!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.spritejs=e():t.spritejs=e()}(this,function(){return function(t){function e(n){if(r[n])return r[n].exports;var i=r[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var r={};return e.m=t,e.c=r,e.i=function(t){return t},e.d=function(t,r,n){e.o(t,r)||Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,"a",r),r},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/js/",e(e.s=149)}([function(t,e){var r=t.exports={version:"2.5.1"};"number"==typeof __e&&(__e=r)},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var i=r(151),o=n(i),a=r(93),u=n(a);e.default=function(){function t(t,e){var r=[],n=!0,i=!1,o=void 0;try{for(var a,s=(0,u.default)(t);!(n=(a=s.next()).done)&&(r.push(a.value),!e||r.length!==e);n=!0);}catch(t){i=!0,o=t}finally{try{!n&&s.return&&s.return()}finally{if(i)throw o}}return r}return function(e,r){if(Array.isArray(e))return e;if((0,o.default)(Object(e)))return t(e,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}()},function(t,e,r){var n=r(9),i=r(0),o=r(21),a=r(23),u=function(t,e,r){var s,l,f,c=t&u.F,h=t&u.G,d=t&u.S,p=t&u.P,v=t&u.B,y=t&u.W,g=h?i:i[e]||(i[e]={}),m=g.prototype,b=h?n:d?n[e]:(n[e]||{}).prototype;h&&(r=e);for(s in r)(l=!c&&b&&void 0!==b[s])&&s in g||(f=l?b[s]:r[s],g[s]=h&&"function"!=typeof b[s]?r[s]:v&&l?o(f,n):y&&b[s]==f?function(t){var e=function(e,r,n){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,r)}return new t(e,r,n)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(f):p&&"function"==typeof f?o(Function.call,f):f,p&&((g.virtual||(g.virtual={}))[s]=f,t&u.R&&m&&!m[s]&&a(m,s,f)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},function(t,e,r){t.exports={default:r(179),__esModule:!0}},function(t,e,r){"use strict";e.__esModule=!0,e.default=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e,r){"use strict";e.__esModule=!0;var n=r(48),i=function(t){return t&&t.__esModule?t:{default:t}}(n);e.default=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),(0,i.default)(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}()},function(t,e,r){"use strict";e.__esModule=!0;var n=r(92),i=function(t){return t&&t.__esModule?t:{default:t}}(n);e.default=function(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e<t.length;e++)r[e]=t[e];return r}return(0,i.default)(t)}},function(t,e,r){var n=r(76)("wks"),i=r(54),o=r(9).Symbol,a="function"==typeof o;(t.exports=function(t){return n[t]||(n[t]=a&&o[t]||(a?o:i)("Symbol."+t))}).store=n},function(t,e,r){t.exports={default:r(167),__esModule:!0}},function(t,e){var r=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},function(t,e,r){"use strict";function n(t){return"[object Array]"===M.call(t)}function i(t){return"[object ArrayBuffer]"===M.call(t)}function o(t){return"undefined"!=typeof FormData&&t instanceof FormData}function a(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer}function u(t){return"string"==typeof t}function s(t){return"number"==typeof t}function l(t){return void 0===t}function f(t){return null!==t&&"object"==typeof t}function c(t){return"[object Date]"===M.call(t)}function h(t){return"[object File]"===M.call(t)}function d(t){return"[object Blob]"===M.call(t)}function p(t){return"[object Function]"===M.call(t)}function v(t){return f(t)&&p(t.pipe)}function y(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams}function g(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")}function m(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)}function b(t,e){if(null!==t&&void 0!==t)if("object"==typeof t||n(t)||(t=[t]),n(t))for(var r=0,i=t.length;r<i;r++)e.call(null,t[r],r,t);else for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.call(null,t[o],o,t)}function _(){function t(t,r){"object"==typeof e[r]&&"object"==typeof t?e[r]=_(e[r],t):e[r]=t}for(var e={},r=0,n=arguments.length;r<n;r++)b(arguments[r],t);return e}function x(t,e,r){return b(e,function(e,n){t[n]=r&&"function"==typeof e?w(e,r):e}),t}var w=r(91),k=r(226),M=Object.prototype.toString;t.exports={isArray:n,isArrayBuffer:i,isBuffer:k,isFormData:o,isArrayBufferView:a,isString:u,isNumber:s,isObject:f,isUndefined:l,isDate:c,isFile:h,isBlob:d,isFunction:p,isStream:v,isURLSearchParams:y,isStandardBrowserEnv:m,forEach:b,merge:_,extend:x,trim:g}},function(t,e,r){t.exports={default:r(173),__esModule:!0}},function(t,e,r){t.exports=!r(27)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,r){var n=r(18),i=r(101),o=r(78),a=Object.defineProperty;e.f=r(12)?Object.defineProperty:function(t,e,r){if(n(t),e=o(e,!0),n(r),i)try{return a(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[e]=r.value),t}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sortOrderedSprites=e.resolveValue=e.parseValue=e.deprecate=e.setDeprecation=e.attr=e.appendUnit=e.rectVertices=e.rectToBox=e.boxUnion=e.boxEqual=e.boxToRect=e.boxIntersect=e.parseStringTransform=e.fourValuesShortCut=e.parseColorString=e.parseStringFloat=e.parseStringInt=e.praseString=e.oneOrTwoValues=e.parseColor=e.Color=e.notice=void 0;var n=r(129),i=r(245);e.notice=n.notice,e.Color=n.Color,e.parseColor=n.parseColor,e.oneOrTwoValues=n.oneOrTwoValues,e.praseString=n.praseString,e.parseStringInt=n.parseStringInt,e.parseStringFloat=n.parseStringFloat,e.parseColorString=n.parseColorString,e.fourValuesShortCut=n.fourValuesShortCut,e.parseStringTransform=n.parseStringTransform,e.boxIntersect=n.boxIntersect,e.boxToRect=n.boxToRect,e.boxEqual=n.boxEqual,e.boxUnion=n.boxUnion,e.rectToBox=n.rectToBox,e.rectVertices=n.rectVertices,e.appendUnit=n.appendUnit,e.attr=i.attr,e.setDeprecation=i.setDeprecation,e.deprecate=i.deprecate,e.parseValue=i.parseValue,e.resolveValue=i.resolveValue,e.sortOrderedSprites=n.sortOrderedSprites},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var i=r(11),o=n(i),a=r(26),u=n(a);e.default=function t(e,r,n){null===e&&(e=Function.prototype);var i=(0,u.default)(e,r);if(void 0===i){var a=(0,o.default)(e);return null===a?void 0:t(a,r,n)}if("value"in i)return i.value;var s=i.get;if(void 0!==s)return s.call(n)}},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var i=r(154),o=n(i),a=r(152),u=n(a),s=r(32),l=n(s);e.default=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":(0,l.default)(e)));t.prototype=(0,u.default)(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(o.default?(0,o.default)(t,e):t.__proto__=e)}},function(t,e,r){"use strict";e.__esModule=!0;var n=r(32),i=function(t){return t&&t.__esModule?t:{default:t}}(n);e.default=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==(void 0===e?"undefined":(0,i.default)(e))&&"function"!=typeof e?t:e}},function(t,e,r){var n=r(19);t.exports=function(t){if(!n(t))throw TypeError(t+" is not an object!");return t}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,r){t.exports={default:r(171),__esModule:!0}},function(t,e,r){var n=r(38);t.exports=function(t,e,r){if(n(t),void 0===e)return t;switch(r){case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,i){return t.call(e,r,n,i)}}return function(){return t.apply(e,arguments)}}},function(t,e,r){t.exports={default:r(177),__esModule:!0}},function(t,e,r){var n=r(13),i=r(42);t.exports=r(12)?function(t,e,r){return n.f(t,e,i(1,r))}:function(t,e,r){return t[e]=r,t}},function(t,e,r){var n=r(67),i=r(64);t.exports=function(t){return n(i(t))}},function(t,e,r){t.exports={default:r(165),__esModule:!0}},function(t,e,r){t.exports={default:r(172),__esModule:!0}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){var r={}.hasOwnProperty;t.exports=function(t,e){return r.call(t,e)}},function(t,e,r){"use strict";var n=r(195)(!0);r(68)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,r=this._i;return r>=e.length?{value:void 0,done:!0}:(t=n(e,r),this._i+=t.length,{value:t,done:!1})})},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function i(t){return t.children.reduce(function(t,e){return e.children?[].concat((0,y.default)(t),[e],(0,y.default)(i(e))):[].concat((0,y.default)(t),[e])},[])}function o(t,e){for(var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,n=[],o=i(t),a=0;a<o.length;a++){var u=o[a];if(e(u)&&(n.push(u),r===n.length))break}return n}function a(t,e){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];Object.defineProperty(e.prototype,"nodeType",{get:function(){return t}}),b.set(t,e),r&&!e.prototype.ownerDocument&&(Object.defineProperty(e.prototype,"ownerDocument",_),e.prototype.namespaceURI="http://spritejs.org/"+t,(0,f.default)(e.prototype,x))}function u(t){var e=b.get(t);if(e){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return new(Function.prototype.bind.apply(e,[null].concat(n)))}return null}function s(t){return b.get(t)}Object.defineProperty(e,"__esModule",{value:!0});var l=r(8),f=n(l),c=r(1),h=n(c),d=r(20),p=n(d),v=r(6),y=n(v),g=r(25),m=n(g);e.registerNodeType=a,e.createNode=u;var b=new m.default,_={get:function(){var t=this;return{createElementNS:function(e,r){var n=u(r);return n?t.appendChild(n):null}}}},x={getElementById:function(t){for(var e=i(this),r=0;r<e.length;r++){var n=e[r];if(n.id===t)return n}return null},getElementsByName:function(t){return i(this).filter(function(e){return e.name===t})},querySelector:function(t){var e=this,r=null;if(t&&"*"!==t)if("string"==typeof t)if(t.startsWith("#"))r=this.getElementById(t.slice(1));else if(t.startsWith(":")){var n=t.slice(1),i=o(this,function(t){return t.name===n},1);i.length&&(r=i[0])}else{var a=s(t);if(a){var u=o(this,function(t){return t instanceof a},1);u.length&&(r=u[0])}}else{var l=o(this,function(r){return(0,p.default)(t).some(function(t){var n=(0,h.default)(t,2),i=n[0],o=n[1],a=s(i);return a&&r instanceof a&&o.call(e,r)})},1);l.length&&(r=l[0])}else r=this.children[0];return r},querySelectorAll:function(t){var e=this,r=[];if(t&&"*"!==t)if("string"==typeof t){if(t.startsWith("#")){var n=this.getElementById(t.slice(1));r=n?[n]:[]}t.startsWith(":")&&(r=this.getElementsByName(t.slice(1)));var a=s(t);a&&(r=o(this,function(t){return t instanceof a}))}else r=o(this,function(r){return(0,p.default)(t).some(function(t){var n=(0,h.default)(t,2),i=n[0],o=n[1],a=s(i);return!!(a&&r instanceof a)&&o.call(e,r)})});else r=i(this);return r}}},function(t,e){t.exports=function(t,e,r,n,i){var o={};return Object.keys(n).forEach(function(t){o[t]=n[t]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce(function(r,n){return n(t,e,r)||r},o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(t,e,o),o=null),o}},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var i=r(156),o=n(i),a=r(3),u=n(a),s="function"==typeof u.default&&"symbol"==typeof o.default?function(t){return typeof t}:function(t){return t&&"function"==typeof u.default&&t.constructor===u.default&&t!==u.default.prototype?"symbol":typeof t};e.default="function"==typeof u.default&&"symbol"===s(o.default)?function(t){return void 0===t?"undefined":s(t)}:function(t){return t&&"function"==typeof u.default&&t.constructor===u.default&&t!==u.default.prototype?"symbol":void 0===t?"undefined":s(t)}},function(t,e){t.exports={}},function(t,e,r){var n=r(110),i=r(66);t.exports=Object.keys||function(t){return n(t,i)}},function(t,e,r){var n=r(64);t.exports=function(t){return Object(n(t))}},function(t,e,r){r(200);for(var n=r(9),i=r(23),o=r(33),a=r(7)("toStringTag"),u="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),s=0;s<u.length;s++){var l=u[s],f=n[l],c=f&&f.prototype;c&&!c[a]&&i(c,a,l),o[l]=o.Array}},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function i(t,e){var r=e.x,n=e.y,i=e.w,o=e.h,a=e.r;t.beginPath(),t.moveTo(r+a,n),t.arcTo(r+i,n,r+i,n+o,a),t.arcTo(r+i,n+o,r,n+o,a),t.arcTo(r,n+o,r,n,a),t.arcTo(r,n,r+i,n,a),t.closePath()}function o(t,e){var r=(0,f.default)(e,4),n=r[0],i=r[1],o=r[2],a=r[3];(t%=360)<0&&(t+=360);var u=[n,i,n+o,i+a];if(t>=0&&t<90){var s=Math.tan(Math.PI*t/180),l=s*o;l<=a?u=[n,i,n+o,i+l]:(l=a/s,u=[n,i,n+l,i+a])}else if(t>=90&&t<180){var c=Math.tan(Math.PI*(t-90)/180),h=c*a;h<=o?u=[n+o,i,n+o-h,i+a]:(h=o/c,u=[n+o,i,n,i+h])}else if(t>=180&&t<270){var d=Math.tan(Math.PI*(t-180)/180),p=d*o;p<=a?u=[n+o,i+a,n,i+a-p]:(p=a/d,u=[n+o,i+a,n+o-p,i])}else if(t>=270&&t<360){var v=Math.tan(Math.PI*(t-270)/180),y=v*a;y<=o?u=[n,i+a,n+y,i]:(y=o/v,u=[n,i+a,n+o,i+a-y])}return u}function a(t,e,r){var n=e.attr("gradients")||{},i="border"===r?e.attr(r).color:e.attr(r),a=void 0;if(n[r]?a=n[r]:"string"!=typeof i&&(a=i),a){var u=a,l=u.colors,f=u.vector,c=u.direction,h=u.rect;if(null!=c){if("border"===r)h=h||[0,0].concat((0,s.default)(e.outerSize));else{var d=e.attr("border"),p=d.width;h=h||[p,p].concat((0,s.default)(e.innerSize))}f=o(c,h)}if(4===f.length)i=t.createLinearGradient.apply(t,(0,s.default)(f));else if(6===f.length)i=t.createRadialGradient.apply(t,(0,s.default)(f));else{if(3!==f.length)throw Error("Invalid gradient vector!");i=t.createCircularGradient.apply(t,(0,s.default)(f))}l.forEach(function(t){i.addColorStop(t.offset,t.color)})}return i}Object.defineProperty(e,"__esModule",{value:!0}),e.cacheContextPool=void 0;var u=r(6),s=n(u),l=r(1),f=n(l);e.drawRadiusBox=i,e.findColor=a;var c=[];e.cacheContextPool={get:function(t){if(c.length>0)return c.pop();var e=t.canvas;if(e&&e.cloneNode){return e.cloneNode().getContext("2d")}},put:function(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];e.every(function(t){return t.canvas.width=0,t.canvas.height=0,c.push(t),c.length<20})},get size(){return c.length}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e){var r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)}},function(t,e,r){var n=r(21),i=r(104),o=r(102),a=r(18),u=r(53),s=r(82),l={},f={},e=t.exports=function(t,e,r,c,h){var d,p,v,y,g=h?function(){return t}:s(t),m=n(r,c,e?2:1),b=0;if("function"!=typeof g)throw TypeError(t+" is not iterable!");if(o(g)){for(d=u(t.length);d>b;b++)if((y=e?m(a(p=t[b])[0],p[1]):m(t[b]))===l||y===f)return y}else for(v=g.call(t);!(p=v.next()).done;)if((y=i(v,m,p.value,e))===l||y===f)return y};e.BREAK=l,e.RETURN=f},function(t,e){e.f={}.propertyIsEnumerable},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,r){var n=r(13).f,i=r(28),o=r(7)("toStringTag");t.exports=function(t,e,r){t&&!i(t=r?t:t.prototype,o)&&n(t,o,{configurable:!0,value:e})}},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i,o,a=r(48),u=n(a),s=r(8),l=n(s),f=r(6),c=n(f),h=r(157),d=n(h),p=r(1),v=n(p),y=r(20),g=n(y),m=r(32),b=n(m),_=r(60),x=n(_),w=r(49),k=n(w),M=r(11),S=n(M),E=r(4),T=n(E),C=r(5),O=n(C),P=r(17),j=n(P),A=r(15),R=n(A),z=r(16),I=n(z),L=r(3),D=n(L),N=r(234),F=n(N),V=r(83),B=n(V),q=r(45),U=r(233),G=n(U),H=r(14),W=r(30),J=r(37),X=r(57),Y=r(124),$=n(Y),K=(0,D.default)("attr"),Q=(0,D.default)("animations"),Z=(0,D.default)("cachePriority"),tt=(0,D.default)("effects"),et=(o=i=function(t){function e(t){(0,T.default)(this,e);var r=(0,j.default)(this,(e.__proto__||(0,S.default)(e)).call(this));return r[K]=new r.constructor.Attr(r),r[Q]=new k.default,r[Z]=0,r.__cachePolicyThreshold=6,t&&r.attr(t),r}return(0,I.default)(e,t),(0,O.default)(e,[{key:"serialize",value:function(){return{nodeType:this.nodeType,attrs:this[K].serialize(),dataset:(0,x.default)(this.dataset),id:this.id}}},{key:"merge",value:function(t){this[K].merge(t)}},{key:"cloneNode",value:function(){var t=new this.constructor;return t.merge(this[K].serialize()),t.data(this.dataset),t}},{key:"getAttribute",value:function(t){return this.attr(t)}},{key:"setAttribute",value:function(t,e){return this.attr(t,e)}},{key:"removeAttribute",value:function(t){return this.attr(t,null)}},{key:"attr",value:function(t,e){var r=this,n=function(t,e){r[K][t]=e,"zIndex"===t&&r.parent&&r.parent.children.sort(function(t,e){return t.zIndex===e.zIndex?t.zOrder-e.zOrder:t.zIndex-e.zIndex})};return"object"===(void 0===t?"undefined":(0,b.default)(t))?((0,g.default)(t).forEach(function(t){var e=(0,v.default)(t,2),n=e[0],i=e[1];r.attr(n,i)}),this):"string"==typeof t?void 0!==e?("function"==typeof e&&(e=e(this[K][t])),e&&"function"==typeof e.then?e.then(function(e){n(t,e)}):(n(t,e),this)):this[K][t]:this[K].attrs}},{key:"isVisible",value:function(){if("none"===this.attr("display"))return!1;if(this.attr("opacity")<=0)return!1;if(this.isVirtual)return!0;var t=(0,v.default)(this.offsetSize,2),e=t[0],r=t[1];return!(e<=0||r<=0)&&(!this.parent||!this.parent.isVisible||this.parent.isVisible())}},{key:"transition",value:function(t){var e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"linear",n=this,i=(0,D.default)("animation");return e={},(0,d.default)(e,i,null),(0,d.default)(e,"end",function(){var t=this[i];!t||"running"!==t.playState&&"pending"!==t.playState||t.finish()}),(0,d.default)(e,"reverse",function(){var t=this[i];if(t)if("running"===t.playState||"pending"===t.playState)t.playbackRate=-t.playbackRate;else{var e=t.timing.direction;t.timing.direction="reverse"===e?"normal":"reverse",t.play()}return t.finished}),(0,d.default)(e,"attr",function(e,o){return this.end(),"string"==typeof e&&(e=(0,d.default)({},e,o)),(0,g.default)(e).forEach(function(t){var r=(0,v.default)(t,2),i=r[0],o=r[1];"function"==typeof o&&(e[i]=o(n.attr(i)))}),this[i]=n.animate([e],{duration:1e3*t,fill:"forwards",easing:r}),this[i].finished}),e}},{key:"animate",value:function(t,e){var r=this,n=new G.default(this,t,e);return this[tt]&&n.applyEffects(this[tt]),this.layer&&(n.baseTimeline=this.layer.timeline,n.play(),n.finished.then(function(){r[Q].delete(n)})),this[Q].add(n),n}},{key:"connect",value:function(t){var r=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(t&&!(t instanceof B.default)){var i=new B.default;i.context=t,i.timeline=new X.Timeline,i.update=function(){var t=this.timeline.currentTime;i.dispatchEvent("update",{target:this,timeline:this.timeline,renderTime:t},!0,!0)},t=i}var o=(0,R.default)(e.prototype.__proto__||(0,S.default)(e.prototype),"connect",this).call(this,t,n);return Object.defineProperty(this,"context",{get:function(){return t.cache||t.context},configurable:!0}),this[Q].forEach(function(e){t.layer&&(e.baseTimeline=t.layer.timeline),e.play(),e.finished.then(function(){r[Q].delete(e)})}),o}},{key:"disconnect",value:function(t){this[Q].forEach(function(t){return t.cancel()}),this.cache&&(this.cache=null);var r=(0,R.default)(e.prototype.__proto__||(0,S.default)(e.prototype),"disconnect",this).call(this,t);return delete this.context,r}},{key:"clearCache",value:function(){this[Z]=0,this.cache=null,this.parent&&this.parent.cache&&(this.parent[Z]=0,this.parent.cache=null)}},{key:"remove",value:function(){return!!this.parent&&(this.parent.removeChild(this),!0)}},{key:"appendTo",value:function(t){t.appendChild(this)}},{key:"forceUpdate",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.isDirty=!0,t&&this.clearCache(),this.parent&&this.parent.update(this)}},{key:"pointToOffset",value:function(t,e){var r=this.attr("pos"),n=(0,v.default)(r,2),i=n[0],o=n[1],a=t-i,u=e-o;return this.transform.inverse().transformPoint(a,u)}},{key:"pointCollision",value:function(t){if(!this.isVisible())return!1;var e=void 0,r=void 0;null!=t.parentX?(e=t.parentX,r=t.parentY):(e=t.layerX,r=t.layerY);var n=this.pointToOffset(e,r),i=(0,v.default)(n,2),o=i[0],a=i[1];t.offsetX=o,t.offsetY=a;var u=(0,v.default)(this.originalRect,4),s=u[0],l=u[1],f=u[2],c=u[3];if(o>=s&&o-s<f&&a>=l&&a-l<c){if(this.context&&this.context.isPointInPath){var h=this.attr("border").width,d=this.attr("borderRadius");if(h||d){var p=(0,v.default)(this.outerSize,2),y=p[0],g=p[1],m=[0,0,y,g,Math.max(0,d+h/2)],b=m[0],_=m[1],x=m[2],w=m[3],k=m[4];return(0,J.drawRadiusBox)(this.context,{x:b,y:_,w:x,h:w,r:k}),this.layer&&this.layer.offset&&(o+=this.layer.offset[0],a+=this.layer.offset[1]),this.context.isPointInPath(o-s,a-l)}}return!0}}},{key:"OBBCollision",value:function(t){function e(t,e){var r=t.map(function(t){return e.dot(new q.Vector(t))}),n=(0,v.default)(r,4),i=n[0],o=n[1],a=n[2],u=n[3];return[Math.min(i,o,a,u),Math.max(i,o,a,u)]}function r(t,e){var r=(t[0]+t[1])/2,n=Math.abs(t[1]-t[0]),i=(e[0]+e[1])/2,o=Math.abs(e[1]-e[0]);return Math.abs(i-r)<=(n+o)/2}var n=(0,v.default)(this.vertices,3),i=n[0],o=n[1],a=n[2],u=(0,v.default)(t.vertices,3),s=u[0],l=u[1],f=u[2],c=new q.Vector(o,i).unit(),h=new q.Vector(a,o).unit(),d=new q.Vector(l,s).unit(),p=new q.Vector(f,l).unit();return r(e(this.vertices,c),e(t.vertices,c))&&r(e(this.vertices,h),e(t.vertices,h))&&r(e(this.vertices,d),e(t.vertices,d))&&r(e(this.vertices,p),e(t.vertices,p))}},{key:"draw",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.context,r=this.originalRect,n=this.cache,i=this.attr("filter"),o=this.attr("shadow");!n&&(i||o||this.cachePriority>this.__cachePolicyThreshold)&&(n=J.cacheContextPool.get(e),n?(n.canvas.width=Math.ceil(r[2])+2,n.canvas.height=Math.ceil(r[3])+2):this.__cachePolicyThreshold=1/0),this[Z]=Math.min(this[Z]+1,10);var a={context:e,cacheContext:n,target:this,renderTime:t,fromCache:!!this.cache};e.save(),e.translate.apply(e,(0,c.default)(this.attr("pos"))),e.transform.apply(e,(0,c.default)(this.transform.m));var u=null!=e.globalAlpha?e.globalAlpha:1;if(e.globalAlpha=u*this.attr("opacity"),n?n.translate(r[0]-Math.floor(r[0])+1,r[1]-Math.floor(r[1])+1):e.translate(r[0],r[1]),this.dispatchEvent("beforedraw",a,!0,!0),n?this.cache||(this.cache=n,this.render(t,n)):this.render(t,e),n&&n.canvas.width>0&&n.canvas.height>0){if(i&&(e.filter=$.default.compile(i)),o){var s=o.blur,l=o.color,f=o.offset;s=s||1,l=l||"rgba(0,0,0,1)",e.shadowBlur=s,e.shadowColor=l,f&&(e.shadowOffsetX=f[0],e.shadowOffsetY=f[1])}e.drawImage(n.canvas,Math.floor(r[0])-1,Math.floor(r[1])-1)}return this.dispatchEvent("afterdraw",a,!0,!0),e.restore(),e}},{key:"render",value:function(t,e){if(this.isVirtual)return!1;var r=this.attr("border"),n=this.attr("borderRadius"),i=this.attr("padding"),o=(0,v.default)(this.offsetSize,2),a=o[0],u=o[1],s=(0,v.default)(this.clientSize,2),l=s[0],f=s[1];if(0!==a&&0!==u){if(r.width<=0&&n<=0&&!this.attr("bgcolor")&&!this.attr("gradients").bgcolor)return e.translate(i[3],i[0]),!1;var c=r.width,h=r.style;if(c){e.lineWidth=c;var d=c/2,p=c/2,y=a-c,g=u-c,m=n;if((0,J.drawRadiusBox)(e,{x:d,y:p,w:y,h:g,r:m}),h&&"solid"!==h){var b=this.attr("dashOffset");e.lineDashOffset=b,"dashed"===h&&(h=[3*c,3*c]),e.setLineDash(h)}e.strokeStyle=(0,J.findColor)(e,this,"border"),e.stroke()}var _=(0,J.findColor)(e,this,"bgcolor");if(null==this.cache||c||n||_){var x=[c,c,l,f,Math.max(0,n-c/2)],w=x[0],k=x[1],M=x[2],S=x[3],E=x[4];(0,J.drawRadiusBox)(e,{x:w,y:k,w:M,h:S,r:E}),_&&(e.fillStyle=_,e.fill()),n&&("sprite"!==this.nodeType||this.textures&&this.textures.length)&&e.clip()}return e.translate(c+i[3],c+i[0]),!0}}},{key:"cachePriority",get:function(){return this.isVirtual?-1:this[Z]},set:function(t){this[Z]=t}},{key:"layer",get:function(){return this.parent&&this.parent.layer}},{key:"id",set:function(t){this.attr("id",t)},get:function(){return this.attr("id")}},{key:"name",set:function(t){this.attr("name",t)},get:function(){return this.attr("name")}},{key:"zIndex",set:function(t){this.attr("zIndex",t)},get:function(){return this.attr("zIndex")}},{key:"attributes",get:function(){return this[K]}},{key:"isVirtual",get:function(){return!1}},{key:"transform",get:function(){var t=new q.Matrix(this[K].get("transformMatrix")),e=this.attr("transformOrigin");if(e){var r=new q.Matrix;return r.translate.apply(r,(0,c.default)(e)),r.multiply(t),r.translate.apply(r,(0,c.default)(e.map(function(t){return-t}))),r}return t}},{key:"contentSize",get:function(){if(this.isVirtual)return[0,0];var t=this.attr("size"),e=(0,v.default)(t,2);return[0|e[0],0|e[1]]}},{key:"clientSize",get:function(){var t=this.attr("padding"),e=(0,v.default)(t,4),r=e[0],n=e[1],i=e[2],o=e[3],a=(0,v.default)(this.contentSize,2);return[o+a[0]+n,r+a[1]+i]}},{key:"offsetSize",get:function(){var t=this.attr("border"),e=t.width,r=(0,v.default)(this.clientSize,2);return[r[0]+2*e,r[1]+2*e]}},{key:"innerSize",get:function(){return this.contentSize}},{key:"outerSize",get:function(){return this.offsetSize}},{key:"boundingRect",get:function(){var t=this.transform,e=(0,v.default)(this.originalRect,2),r=e[0],n=e[1],i=(0,v.default)(this.offsetSize,2),o=i[0],a=i[1],u=[[r,n],[o+r,n],[r,a+n],[o+r,a+n]],s=u.map(function(e){return t.transformPoint(e[0],e[1])}),l=s.map(function(t){return t[0]}),f=s.map(function(t){return t[1]}),h=Math.min.apply(Math,(0,c.default)(l)),d=Math.min.apply(Math,(0,c.default)(f));return[h,d].concat([Math.max.apply(Math,(0,c.default)(l))-h,Math.max.apply(Math,(0,c.default)(f))-d])}},{key:"originalRect",get:function(){var t=(0,v.default)(this.offsetSize,2),e=t[0],r=t[1],n=this.attr("anchor"),i=(0,v.default)(n,2);return[-i[0]*e,-i[1]*r,e,r]}},{key:"originalRenderRect",get:function(){var t=this.originalRect,e=this.attr("pos");return[e[0]+t[0],e[1]+t[1],t[2],t[3]]}},{key:"renderBox",get:function(){var t=this.boundingRect,e=this.attr("pos");return[Math.floor(e[0]+t[0]),Math.floor(e[1]+t[1]),Math.ceil(e[0]+t[0]+t[2]),Math.ceil(e[1]+t[1]+t[3])]}},{key:"renderRect",get:function(){return(0,H.boxToRect)(this.renderBox)}},{key:"vertices",get:function(){var t=(0,H.rectVertices)(this.originalRect),e=this.transform,r=this.attr("pos"),n=(0,v.default)(r,2),i=n[0],o=n[1];return t.map(function(t){var r=e.transformPoint(t[0],t[1]),n=(0,v.default)(r,2),a=n[0],u=n[1];return[i+a,o+u]})}},{key:"cache",set:function(t){this.cacheContext&&t!==this.cacheContext&&J.cacheContextPool.put(this.cacheContext),this.cacheContext=t},get:function(){return this.cacheContext}}],[{key:"setAttributeEffects",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};null==this.prototype[tt]&&(this.prototype[tt]=t),(0,l.default)(this.prototype[tt],t)}},{key:"defineAttributes",value:function(t,e){var r=this;return this.Attr=function(e){function r(e){(0,T.default)(this,r);var n=(0,j.default)(this,(r.__proto__||(0,S.default)(r)).call(this,e));return t.init&&t.init(n,e),n}return(0,I.default)(r,e),r}(this.Attr),(0,g.default)(t).forEach(function(t){var e=(0,v.default)(t,2),n=e[0],i=e[1],o=function(){return this.get(n)};"function"!=typeof i&&i.set&&(o=i.get||o,i=i.set),"init"!==n&&(r.Attr.prototype.__attributeNames.push(n),(0,u.default)(r.Attr.prototype,n,{set:function(t){this.__clearCacheTag=!1,this.__updateTag=!1,i(this,t),this.subject&&this.__updateTag&&this.subject.forceUpdate(this.__clearCacheTag),delete this.__updateTag,delete this.__clearCacheTag},get:o}))}),e&&this.setAttributeEffects(e),this.Attr}}]),e}(B.default),i.Attr=F.default,o);e.default=et,(0,W.registerNodeType)("basesprite",et)},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.Vector=e.Matrix=void 0;var i=r(242),o=n(i),a=r(243),u=n(a);e.Matrix=o.default,e.Vector=u.default},function(t,e,r){"use strict";function n(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:300,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:150,r=document.createElement("canvas");return r.width=t,r.height=e,r}function i(t){var e=document.createElement("img");e.crossOrigin="anonymous";var r=new s.default(function(t){e.addEventListener("load",function(){t(e)})});return e.src=t,r}function o(t){if("string"==typeof t&&(t=document.querySelector(t)),!t)throw new Error("Container is not defined or cannot found.");return t}function a(){try{new window.CustomEvent("T")}catch(e){var t=function(t,e){e=e||{bubbles:!1,cancelable:!1,detail:void 0};var r=document.createEvent("CustomEvent");return r.initCustomEvent(t,e.bubbles,e.cancelable,e.detail),r};t.prototype=window.Event.prototype,window.CustomEvent=t}}Object.defineProperty(e,"__esModule",{value:!0}),e.removeDebugToolsObserver=e.setDebugToolsObserver=e._debugger=void 0;var u=r(22),s=function(t){return t&&t.__esModule?t:{default:t}}(u);e.createCanvas=n,e.loadImage=i,e.getContainer=o,e.shim=a;var l=r(150);e._debugger=l._debugger,e.setDebugToolsObserver=l.setDebugToolsObserver,e.removeDebugToolsObserver=l.removeDebugToolsObserver},function(t,e,r){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.SvgPath=e.Color=e.createNode=e.registerNodeType=e.Easings=e.Effects=e.Group=e.Layer=e.Path=e.Label=e.Sprite=e.Batch=e.BaseSprite=e.BaseNode=e.math=e.utils=void 0;var o=r(44),a=i(o),u=r(241),s=i(u),l=r(238),f=i(l),c=r(239),h=i(c),d=r(125),p=i(d),v=r(83),y=i(v),g=r(240),m=i(g),b=r(123),_=i(b),x=r(30),w=r(57),k=r(84),M=i(k),S=r(37),E=r(14),T=n(E),C=r(45),O=n(C);T.findColor=S.findColor,T.cacheContextPool=S.cacheContextPool;var P=T.Color;e.utils=T,e.math=O,e.BaseNode=y.default,e.BaseSprite=a.default,e.Batch=_.default,e.Sprite=s.default,e.Label=f.default,e.Path=m.default,e.Layer=h.default,e.Group=p.default,e.Effects=w.Effects,e.Easings=w.Easings,e.registerNodeType=x.registerNodeType,e.createNode=x.createNode,e.Color=P,e.SvgPath=M.default},function(t,e,r){t.exports={default:r(170),__esModule:!0}},function(t,e,r){t.exports={default:r(178),__esModule:!0}},function(t,e,r){var n=r(39),i=r(7)("toStringTag"),o="Arguments"==n(function(){return arguments}()),a=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,r,u;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=a(e=Object(t),i))?r:o?n(e):"Object"==(u=n(e))&&"function"==typeof e.callee?"Arguments":u}},function(t,e){t.exports=!0},function(t,e,r){var n=r(18),i=r(107),o=r(66),a=r(75)("IE_PROTO"),u=function(){},s=function(){var t,e=r(65)("iframe"),n=o.length;for(e.style.display="none",r(100).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("<script>document.F=Object<\/script>"),t.close(),s=t.F;n--;)delete s.prototype[o[n]];return s()};t.exports=Object.create||function(t,e){var r;return null!==t?(u.prototype=n(t),r=new u,u.prototype=null,r[a]=t):r=s(),void 0===e?r:i(r,e)}},function(t,e,r){var n=r(77),i=Math.min;t.exports=function(t){return t>0?i(n(t),9007199254740991):0}},function(t,e){var r=0,n=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++r+n).toString(36))}},function(t,e){},function(t,e){function r(){throw new Error("setTimeout has not been defined")}function n(){throw new Error("clearTimeout has not been defined")}function i(t){if(f===setTimeout)return setTimeout(t,0);if((f===r||!f)&&setTimeout)return f=setTimeout,setTimeout(t,0);try{return f(t,0)}catch(e){try{return f.call(null,t,0)}catch(e){return f.call(this,t,0)}}}function o(t){if(c===clearTimeout)return clearTimeout(t);if((c===n||!c)&&clearTimeout)return c=clearTimeout,clearTimeout(t);try{return c(t)}catch(e){try{return c.call(null,t)}catch(e){return c.call(this,t)}}}function a(){v&&d&&(v=!1,d.length?p=d.concat(p):y=-1,p.length&&u())}function u(){if(!v){var t=i(a);v=!0;for(var e=p.length;e;){for(d=p,p=[];++y<e;)d&&d[y].run();y=-1,e=p.length}d=null,v=!1,o(t)}}function s(t,e){this.fun=t,this.array=e}function l(){}var f,c,h=t.exports={};!function(){try{f="function"==typeof setTimeout?setTimeout:r}catch(t){f=r}try{c="function"==typeof clearTimeout?clearTimeout:n}catch(t){c=n}}();var d,p=[],v=!1,y=-1;h.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];p.push(new s(t,e)),1!==p.length||v||i(u)},s.prototype.run=function(){this.fun.apply(null,this.array)},h.title="browser",h.browser=!0,h.env={},h.argv=[],h.version="",h.versions={},h.on=l,h.addListener=l,h.once=l,h.off=l,h.removeListener=l,h.removeAllListeners=l,h.emit=l,h.prependListener=l,h.prependOnceListener=l,h.listeners=function(t){return[]},h.binding=function(t){throw new Error("process.binding is not supported")},h.cwd=function(){return"/"},h.chdir=function(t){throw new Error("process.chdir is not supported")},h.umask=function(){return 0}},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.Timeline=e.Effects=e.Easings=e.Animator=void 0;var i=r(122),o=n(i),a=r(128),u=n(a),s=r(121),l=r(231),f=n(l);e.Animator=f.default,e.Easings=s.Easings,e.Effects=o.default,e.Timeline=u.default},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=r(62),o=n(i),a=r(1),u=n(a),s=r(20),l=n(s),f=r(61),c=n(f),h=r(22),d=n(h),p=r(25),v=n(p),y=r(46),g=r(131),m=new v.default,b={loadTexture:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3e4;"string"==typeof t&&(t={src:t}),t.id||(t.id=t.src);var r=t.id;return m.has(r)?{img:m.get(r),texture:t,fromCache:!0}:new d.default(function(n,i){var o=setTimeout(function(){i(new Error("load img timeout"))},e);(0,y.loadImage)(t.src).then(function(e){n({img:e,texture:t,fromCache:!1}),m.set(r,e),clearTimeout(o)})})},loadFrames:function(){function t(t,r){return e.apply(this,arguments)}var e=(0,c.default)(o.default.mark(function t(e,r){var n,i;return o.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if("string"!=typeof r){t.next=5;break}return t.next=3,g.get(r);case 3:r=t.sent,r=r.data;case 5:return t.next=7,this.loadTexture(e);case 7:return n=t.sent,i=r.frames,(0,l.default)(i).forEach(function(t){var e=(0,u.default)(t,2),r=e[0],i=e[1],o=i.sourceSize,a=o.w,s=o.h,l=(0,y.createCanvas)(a,s),f=i.frame,c=i.spriteSourceSize,h=l.getContext("2d"),d=i.rotated;if(h.save(),d){h.translate(0,s),h.rotate(-.5*Math.PI);var p=c.y;c.y=c.x,c.x=s-f.h-p,h.drawImage(n.img,f.x,f.y,f.h,f.w,c.x,c.y,c.h,c.w)}else h.drawImage(n.img,f.x,f.y,f.w,f.h,c.x,c.y,c.w,c.h);h.restore(),m.set(r,l)}),t.abrupt("return",n);case 11:case"end":return t.stop()}},t,this)}));return t}()};e.default=b},function(t,e,r){"use strict";(function(e){function n(t,e){!i.isUndefined(t)&&i.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var i=r(10),o=r(146),a={"Content-Type":"application/x-www-form-urlencoded"},u={adapter:function(){var t;return"undefined"!=typeof XMLHttpRequest?t=r(87):void 0!==e&&(t=r(87)),t}(),transformRequest:[function(t,e){return o(e,"Content-Type"),i.isFormData(t)||i.isArrayBuffer(t)||i.isBuffer(t)||i.isStream(t)||i.isFile(t)||i.isBlob(t)?t:i.isArrayBufferView(t)?t.buffer:i.isURLSearchParams(t)?(n(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):i.isObject(t)?(n(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"==typeof t)try{t=JSON.parse(t)}catch(t){}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(t){return t>=200&&t<300}};u.headers={common:{Accept:"application/json, text/plain, */*"}},i.forEach(["delete","get","head"],function(t){u.headers[t]={}}),i.forEach(["post","put","patch"],function(t){u.headers[t]=i.merge(a)}),t.exports=u}).call(e,r(56))},function(t,e,r){t.exports={default:r(164),__esModule:!0}},function(t,e,r){"use strict";e.__esModule=!0;var n=r(22),i=function(t){return t&&t.__esModule?t:{default:t}}(n);e.default=function(t){return function(){var e=t.apply(this,arguments);return new i.default(function(t,r){function n(o,a){try{var u=e[o](a),s=u.value}catch(t){return void r(t)}if(!u.done)return i.default.resolve(s).then(function(t){n("next",t)},function(t){n("throw",t)});t(s)}return n("next")})}}},function(t,e,r){t.exports=r(227)},function(t,e){t.exports=function(t,e,r,n){if(!(t instanceof e)||void 0!==n&&n in t)throw TypeError(r+": incorrect invocation!");return t}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on  "+t);return t}},function(t,e,r){var n=r(19),i=r(9).document,o=n(i)&&n(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,r){var n=r(39);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==n(t)?t.split(""):Object(t)}},function(t,e,r){"use strict";var n=r(51),i=r(2),o=r(114),a=r(23),u=r(28),s=r(33),l=r(190),f=r(43),c=r(109),h=r(7)("iterator"),d=!([].keys&&"next"in[].keys()),p=function(){return this};t.exports=function(t,e,r,v,y,g,m){l(r,e,v);var b,_,x,w=function(t){if(!d&&t in E)return E[t];switch(t){case"keys":case"values":return function(){return new r(this,t)}}return function(){return new r(this,t)}},k=e+" Iterator",M="values"==y,S=!1,E=t.prototype,T=E[h]||E["@@iterator"]||y&&E[y],C=T||w(y),O=y?M?w("entries"):C:void 0,P="Array"==e?E.entries||T:T;if(P&&(x=c(P.call(new t)))!==Object.prototype&&x.next&&(f(x,k,!0),n||u(x,h)||a(x,h,p)),M&&T&&"values"!==T.name&&(S=!0,C=function(){return T.call(this)}),n&&!m||!d&&!S&&E[h]||a(E,h,C),s[e]=C,s[k]=p,y)if(b={values:M?C:w("values"),keys:g?C:w("keys"),entries:O},m)for(_ in b)_ in E||o(E,_,b[_]);else i(i.P+i.F*(d||S),e,b);return b}},function(t,e,r){var n=r(54)("meta"),i=r(19),o=r(28),a=r(13).f,u=0,s=Object.isExtensible||function(){return!0},l=!r(27)(function(){return s(Object.preventExtensions({}))}),f=function(t){a(t,n,{value:{i:"O"+ ++u,w:{}}})},c=function(t,e){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,n)){if(!s(t))return"F";if(!e)return"E";f(t)}return t[n].i},h=function(t,e){if(!o(t,n)){if(!s(t))return!0;if(!e)return!1;f(t)}return t[n].w},d=function(t){return l&&p.NEED&&s(t)&&!o(t,n)&&f(t),t},p=t.exports={KEY:n,NEED:!1,fastKey:c,getWeak:h,onFreeze:d}},function(t,e,r){"use strict";function n(t){var e,r;this.promise=new t(function(t,n){if(void 0!==e||void 0!==r)throw TypeError("Bad Promise constructor");e=t,r=n}),this.resolve=i(e),this.reject=i(r)}var i=r(38);t.exports.f=function(t){return new n(t)}},function(t,e,r){var n=r(41),i=r(42),o=r(24),a=r(78),u=r(28),s=r(101),l=Object.getOwnPropertyDescriptor;e.f=r(12)?l:function(t,e){if(t=o(t),e=a(e,!0),s)try{return l(t,e)}catch(t){}if(u(t,e))return i(!n.f.call(t,e),t[e])}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,r){var n=r(2),i=r(0),o=r(27);t.exports=function(t,e){var r=(i.Object||{})[t]||Object[t],a={};a[t]=e(r),n(n.S+n.F*o(function(){r(1)}),"Object",a)}},function(t,e,r){var n=r(23);t.exports=function(t,e,r){for(var i in e)r&&t[i]?t[i]=e[i]:n(t,i,e[i]);return t}},function(t,e,r){var n=r(76)("keys"),i=r(54);t.exports=function(t){return n[t]||(n[t]=i(t))}},function(t,e,r){var n=r(9),i=n["__core-js_shared__"]||(n["__core-js_shared__"]={});t.exports=function(t){return i[t]||(i[t]={})}},function(t,e){var r=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:r)(t)}},function(t,e,r){var n=r(19);t.exports=function(t,e){if(!n(t))return t;var r,i;if(e&&"function"==typeof(r=t.toString)&&!n(i=r.call(t)))return i;if("function"==typeof(r=t.valueOf)&&!n(i=r.call(t)))return i;if(!e&&"function"==typeof(r=t.toString)&&!n(i=r.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},function(t,e,r){var n=r(19);t.exports=function(t,e){if(!n(t)||t._t!==e)throw TypeError("Incompatible receiver, "+e+" required!");return t}},function(t,e,r){var n=r(9),i=r(0),o=r(51),a=r(81),u=r(13).f;t.exports=function(t){var e=i.Symbol||(i.Symbol=o?{}:n.Symbol||{});"_"==t.charAt(0)||t in e||u(e,t,{value:a.f(t)})}},function(t,e,r){e.f=r(7)},function(t,e,r){var n=r(50),i=r(7)("iterator"),o=r(33);t.exports=r(0).getIteratorMethod=function(t){if(void 0!=t)return t[i]||t["@@iterator"]||o[n(t)]}},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(8),o=n(i),a=r(1),u=n(a),s=r(20),l=n(s),f=r(32),c=n(f),h=r(4),d=n(h),p=r(5),v=n(p),y=r(3),g=n(y),m=(0,g.default)("eventHandlers"),b=(0,g.default)("collisionState"),_=(0,g.default)("data"),x=function(){function t(){(0,d.default)(this,t),this[m]={},this[_]={}}return(0,v.default)(t,[{key:"data",value:function(t,e){var r=this;return"object"===(void 0===t?"undefined":(0,c.default)(t))?((0,l.default)(t).forEach(function(t){var e=(0,u.default)(t,2),n=e[0],i=e[1];r.data(n,i)}),this):"string"==typeof t?void 0!==e?("function"==typeof e&&(e=e(this[_][t])),e&&"function"==typeof e.then?e.then(function(e){r[_][t]=e}):(this[_][t]=e,this)):this[_][t]:this[_]}},{key:"getEventHandlers",value:function(t){return null!=t?this[m][t]||[]:this[m]}},{key:"on",value:function(t,e){var r=this;return Array.isArray(t)?t.forEach(function(t){return r.on(t,e)}):(this[m][t]=this[m][t]||[],this[m][t].push(e)),this}},{key:"off",value:function(t,e){var r=this;if(Array.isArray(t))t.forEach(function(t){return r.off(t,e)});else if(e&&this[m][t]){var n=this[m][t].indexOf(e);n>=0&&this[m][t].splice(n,1)}else delete this[m][t];return this}},{key:"addEventListener",value:function(t,e){return this.on(t,e)}},{key:"removeEventListener",value:function(t,e){return this.off(t,e)}},{key:"pointCollision",value:function(t){throw Error("you mast override this method")}},{key:"dispatchEvent",value:function(t,e){var r=this,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!(arguments.length>3&&void 0!==arguments[3]&&arguments[3])||0!==this.getEventHandlers(t).length){e.stopDispatch||(e.stopDispatch=function(){e.terminated=!0}),e.type!==t&&(e.type&&(e.originalType=e.type),e.type=t);var i=n||this.pointCollision(e);if(!e.terminated&&i){e.target=this;var a=this[m][t];if(a&&a.forEach(function(t){return t.call(r,e)}),"mousemove"===t){if(!this[b]){var u=(0,o.default)({},e);u.type="mouseenter",u.terminated=!1,this.dispatchEvent("mouseenter",u,!0)}this[b]=!0}}else if("mousemove"===t){if(this[b]){var s=(0,o.default)({},e);s.type="mouseleave",s.target=this,s.terminated=!1,this.dispatchEvent("mouseleave",s,!0)}this[b]=!1}return i}}},{key:"connect",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.parent&&this.disconnect(this.parent),Object.defineProperty(this,"zOrder",{value:e,writable:!1,configurable:!0}),Object.defineProperty(this,"parent",{get:function(){return t},configurable:!0});var r=this[m].append;return r&&r.length&&this.dispatchEvent("append",{parent:t,zOrder:e},!0,!0),this}},{key:"disconnect",value:function(t){if(!this.parent||t!==this.parent)throw new Error("Invalid node to disconnect");var e=this.zOrder;delete this.zOrder;var r=this[m].remove;return r&&r.length&&this.dispatchEvent("remove",{parent:t,zOrder:e},!0,!0),delete this.parent,this}},{key:"dataset",get:function(){return this[_]}}]),t}();e.default=x},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}var i=r(6),o=n(i),a=r(1),u=n(a),s=r(96),l=n(s),f=r(8),c=n(f),h=r(4),d=n(h),p=r(5),v=n(p),y=r(3),g=n(y),m=r(45),b=r(251),_=r(250),x=r(247),w=r(249),k=r(248),M=(0,g.default)("path"),S=(0,g.default)("bounds"),E=(0,g.default)("savedPaths"),T=(0,g.default)("renderProps"),C=(0,g.default)("beginPath"),O=function(){function t(e){if((0,d.default)(this,t),!k(e))throw new Error("Not an SVG path!");var r=w(x(_(e)));this[M]=r,this[S]=null,this[E]=[],this[T]={},this[C]=!1}return(0,v.default)(t,[{key:"save",value:function(){return this[E].push({path:this[M],bounds:this[S],renderProps:(0,c.default)({},this[T])}),this}},{key:"restore",value:function(){if(this[E].length){var t=this[E].pop(),e=t.path,r=t.bounds,n=t.renderProps;this[M]=e,this[S]=r,this[T]=n}return this}},{key:"isPointInPath",value:function(t,e){return(0,b.isPointInPath)(this,t,e)}},{key:"getPointAtLength",value:function(t){return(0,b.getPointAtLength)(this.d,t)}},{key:"getTotalLength",value:function(){return(0,b.getTotalLength)(this.d)}},{key:"transform",value:function(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];this[S]=null;var n=new m.Matrix(e),i=this[M];return this[M]=i.map(function(t){for(var e=(0,l.default)(t),r=e[0],i=e.slice(1),o=[r],a=0;a<i.length;a+=2){var s=i[a],f=i[a+1],c=n.transformPoint(s,f),h=(0,u.default)(c,2),d=h[0],p=h[1];o.push(d,p)}return o}),this}},{key:"translate",value:function(t,e){var r=(new m.Matrix).translate(t,e);return this.transform.apply(this,(0,o.default)(r.m))}},{key:"rotate",value:function(t){var e=(new m.Matrix).rotate(t);return this.transform.apply(this,(0,o.default)(e.m))}},{key:"scale",value:function(t,e){null==e&&(e=t);var r=(new m.Matrix).scale(t,e);return this.transform.apply(this,(0,o.default)(r.m))}},{key:"skew",value:function(t,e){var r=(new m.Matrix).skew(t,e);return this.transform.apply(this,(0,o.default)(r.m))}},{key:"trim",value:function(){var t=(0,u.default)(this.bounds,2),e=t[0],r=t[1];return this.translate(-e,-r),this}},{key:"beginPath",value:function(){return this[C]=!0,this}},{key:"to",value:function(t){var e=this[M],r=this[T];return e.length&&(this[C]&&t.beginPath(),e.forEach(function(e){var r=(0,l.default)(e),n=r[0],i=r.slice(1);"M"===n?t.moveTo.apply(t,(0,o.default)(i)):t.bezierCurveTo.apply(t,(0,o.default)(i))})),(0,c.default)(t,r),{stroke:function(){return t.stroke(),this},fill:function(){return t.fill(),this}}}},{key:"strokeStyle",value:function(t){return this[T].strokeStyle=t,this}},{key:"fillStyle",value:function(t){return this[T].fillStyle=t,this}},{key:"lineWidth",value:function(t){return this[T].lineWidth=t,this}},{key:"lineCap",value:function(t){return this[T].lineCap=t,this}},{key:"lineJoin",value:function(t){return this[T].lineJoin=t,this}},{key:"bounds",get:function(){if(!this[S]){var t=this[M];if(this[S]=[0,0,0,0],t.length){for(var e=[1/0,1/0,-1/0,-1/0],r=0,n=t.length;r<n;r++)for(var i=t[r].slice(1),o=0;o<i.length;o+=2)i[o+0]<e[0]&&(e[0]=i[o+0]),i[o+1]<e[1]&&(e[1]=i[o+1]),i[o+0]>e[2]&&(e[2]=i[o+0]),i[o+1]>e[3]&&(e[3]=i[o+1]);this[S]=e}}return this[S]}},{key:"size",get:function(){var t=this.bounds;return[t[2]-t[0],t[3]-t[1]]}},{key:"center",get:function(){var t=(0,u.default)(this.bounds,4),e=t[0],r=t[1];return[(e+t[2])/2,(r+t[3])/2]}},{key:"d",get:function(){return this[M].map(function(t){var e=(0,l.default)(t);return e[0]+e.slice(1).join()}).join("")}},{key:"path",get:function(){return this[M]}}]),t}();t.exports=O},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=r(62),o=n(i),a=r(61),u=n(a),s=r(1),l=n(s),f=r(11),c=n(f),h=r(32),d=n(h),p=r(4),v=n(p),y=r(5),g=n(y),m=r(17),b=n(m),_=r(15),x=n(_),w=r(16),k=n(w),M=r(3),S=n(M),E=r(47),T=r(46),C=(0,S.default)("resolution"),O=function(t){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,v.default)(this,e),"object"===(void 0===t?"undefined":(0,d.default)(t))&&(r=t,t=r.id||"id_"+Math.random().toString().slice(2,10));var n=r,i=n.context,o=n.resolution,a=n.handleEvent,u=void 0===a||a,s=n.evaluateFPS,l=void 0!==s&&s,f=n.renderMode,h=void 0===f?"repaintAll":f,p=n.autoRender,y=void 0===p||p;i=i||(0,T.createCanvas)().getContext("2d");var g=i.canvas;g.dataset.layerId=t,g.style.position="absolute";var m=(0,b.default)(this,(e.__proto__||(0,c.default)(e)).call(this,{context:i,handleEvent:u,evaluateFPS:l,renderMode:h,autoRender:y}));return o?m.resolution=o:m[C]=[m.canvas.width,m.canvas.height,0,0],m}return(0,k.default)(e,t),(0,g.default)(e,[{key:"pointCollision",value:function(t){if(this.outputContext.canvas){var e=0|t.layerX,r=0|t.layerY,n=(0,l.default)(this.resolution,4),i=n[0],o=n[1],a=n[2],u=n[3];return e+=a,r+=u,e>=0&&r>=0&&e<i&&r<o}return!0}},{key:"clearContext",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.outputContext;if(t.canvas){var e=this.resolution,r=e[3],n=e[2];t.clearRect(-n,-r,t.canvas.width,t.canvas.height)}}},{key:"isNodeVisible",value:function(t){if(!(0,x.default)(e.prototype.__proto__||(0,c.default)(e.prototype),"isNodeVisible",this).call(this,t))return!1;var r=(0,l.default)(this.resolution,4),n=r[0],i=r[1],o=r[2],a=r[3],u=t.attr("pos"),s=(0,l.default)(u,2),f=s[0],h=s[1],d=(0,l.default)(t.offsetSize,2),p=d[0],v=d[1],y=Math.max(p,v),g=[f-y,h-y,f+y,h+y];return!(g[0]>n-o||g[1]>i-a||g[2]<0||g[3]<0)}},{key:"toLocalPos",value:function(t,e){var r=this.resolution,n=this.viewport;return t=t*r[0]/n[0]-r[2],e=e*r[1]/n[1]-r[3],[t,e]}},{key:"toGlobalPos",value:function(t,e){var r=this.resolution,n=this.viewport;return t=t*n[0]/r[0]+r[2],e=e*n[1]/r[1]+r[3],[t,e]}},{key:"takeSnapshot",value:function(){function t(){return e.apply(this,arguments)}var e=(0,u.default)(o.default.mark(function t(){var e,r,n;return o.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.prepareRender();case 2:return e=this.canvas.cloneNode(!0),r=e.getContext("2d"),r.drawImage(this.canvas,0,0),n=this.children.map(function(t){return t.serialize()}),t.abrupt("return",{context:r,children:n});case 6:case"end":return t.stop()}},t,this)}));return t}()},{key:"putSnapshot",value:function(t){var e=this,r=this.outputContext;this.clearContext(r),r.drawImage(t.context.canvas,0,0),this.clearUpdate(),t.children.forEach(function(t){var r=(0,E.createNode)(t.nodeType);t.id&&(r.id=t.id),r.attr(JSON.parse(t.attrs)),e.appendChild(r,!1)});for(var n=0;n<this.children.length;n++){var i=this.children[n];i.dispatchEvent("update",{target:i,context:i.context,renderBox:i.renderBox,lastRenderBox:i.lastRenderBox},!0),i.lastRenderBox=i.renderBox}return this.children}},{key:"id",get:function(){return this.canvas.dataset.layerId}},{key:"resolution",get:function(){return this[C]},set:function(t){var e=(0,l.default)(t,4),r=e[0],n=e[1],i=e[2],o=e[3],a=this.outputContext.canvas;a.width=r,a.height=n,this.outputContext.clearRect(0,0,r,n),(i||o)&&this.outputContext.translate(i,o),this.children.forEach(function(t){delete t.lastRenderBox,t.forceUpdate()}),this[C]=t,this.dispatchEvent("resolutionChange",{target:this},!0,!0)}},{key:"viewport",get:function(){var t=this.canvas;if(t&&t.clientWidth)return[t.clientWidth,t.clientHeight];if(this.parent)return this.parent.layerViewport;var e=(0,l.default)(this[C],2);return[e[0],e[1]]}},{key:"offset",get:function(){return[this.resolution[2],this.resolution[3]]}},{key:"center",get:function(){var t=(0,l.default)(this.resolution,2);return[t[0]/2,t[1]/2]}},{key:"zIndex",get:function(){return this.canvas.style.zIndex},set:function(t){this.canvas.style.zIndex=t}}]),e}(E.Layer);e.default=O},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i,o,a,u=r(26),s=n(u),l=r(22),f=n(l),c=r(8),h=n(c),d=r(11),p=n(d),v=r(4),y=n(v),g=r(5),m=n(g),b=r(17),_=n(b),x=r(15),w=n(x),k=r(16),M=n(k),S=r(3),E=n(S),T=r(47),C=r(58),O=n(C),P=r(31),j=T.utils.attr,A=(0,E.default)("mapTextures"),R=(0,E.default)("loadTexturePassport"),z=(i=function(t){function e(){return(0,y.default)(this,e),(0,_.default)(this,(e.__proto__||(0,p.default)(e)).apply(this,arguments))}return(0,M.default)(e,t),(0,m.default)(e,[{key:A,value:function(t){var r=!1,n=t.map(function(t){var e=t.img,n=t.texture;return t.fromCache||(r=!0),(0,h.default)({},n,{image:e})});r&&this.subject.forceUpdate(!0),(0,w.default)(e.prototype.__proto__||(0,p.default)(e.prototype),"loadTextures",this).call(this,n)}},{key:"loadTextures",value:function(t){var e=this,r=(0,E.default)("passport");this[R]=r;var n=!1,i=t.map(function(t){if(t.image)return{img:t.image,texture:t};var e=O.default.loadTexture(t);return e instanceof f.default&&(n=!0),e});n?f.default.all(i).then(function(t){e[R]===r&&e[A](t)}):this[A](i)}},{key:"textures",set:function(t){Array.isArray(t)||(t=[t]),t=t.map(function(t){return"string"==typeof t?t={src:t}:t.src||t.id||t.image||(t={image:t}),t}),this.set("textures",t),this.loadTextures(t)}}]),e}(T.Sprite.Attr),P(i.prototype,"textures",[j],(0,s.default)(i.prototype,"textures"),i.prototype),i),I=(a=o=function(t){function e(){return(0,y.default)(this,e),(0,_.default)(this,(e.__proto__||(0,p.default)(e)).apply(this,arguments))}return(0,M.default)(e,t),e}(T.Sprite),o.Attr=z,a);e.default=I},function(t,e,r){"use strict";(function(e){var n=r(10),i=r(138),o=r(141),a=r(147),u=r(145),s=r(90),l="undefined"!=typeof window&&window.btoa&&window.btoa.bind(window)||r(140);t.exports=function(t){return new Promise(function(f,c){var h=t.data,d=t.headers;n.isFormData(h)&&delete d["Content-Type"];var p=new XMLHttpRequest,v="onreadystatechange",y=!1;if("test"===e.env.NODE_ENV||"undefined"==typeof window||!window.XDomainRequest||"withCredentials"in p||u(t.url)||(p=new window.XDomainRequest,v="onload",y=!0,p.onprogress=function(){},p.ontimeout=function(){}),t.auth){var g=t.auth.username||"",m=t.auth.password||"";d.Authorization="Basic "+l(g+":"+m)}if(p.open(t.method.toUpperCase(),o(t.url,t.params,t.paramsSerializer),!0),p.timeout=t.timeout,p[v]=function(){if(p&&(4===p.readyState||y)&&(0!==p.status||p.responseURL&&0===p.responseURL.indexOf("file:"))){var e="getAllResponseHeaders"in p?a(p.getAllResponseHeaders()):null,r=t.responseType&&"text"!==t.responseType?p.response:p.responseText,n={data:r,status:1223===p.status?204:p.status,statusText:1223===p.status?"No Content":p.statusText,headers:e,config:t,request:p};i(f,c,n),p=null}},p.onerror=function(){c(s("Network Error",t,null,p)),p=null},p.ontimeout=function(){c(s("timeout of "+t.timeout+"ms exceeded",t,"ECONNABORTED",p)),p=null},n.isStandardBrowserEnv()){var b=r(143),_=(t.withCredentials||u(t.url))&&t.xsrfCookieName?b.read(t.xsrfCookieName):void 0;_&&(d[t.xsrfHeaderName]=_)}if("setRequestHeader"in p&&n.forEach(d,function(t,e){void 0===h&&"content-type"===e.toLowerCase()?delete d[e]:p.setRequestHeader(e,t)}),t.withCredentials&&(p.withCredentials=!0),t.responseType)try{p.responseType=t.responseType}catch(e){if("json"!==t.responseType)throw e}"function"==typeof t.onDownloadProgress&&p.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&p.upload&&p.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then(function(t){p&&(p.abort(),c(t),p=null)}),void 0===h&&(h=null),p.send(h)})}}).call(e,r(56))},function(t,e,r){"use strict";function n(t){this.message=t}n.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},n.prototype.__CANCEL__=!0,t.exports=n},function(t,e,r){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},function(t,e,r){"use strict";var n=r(137);t.exports=function(t,e,r,i,o){var a=new Error(t);return n(a,e,r,i,o)}},function(t,e,r){"use strict";t.exports=function(t,e){return function(){for(var r=new Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return t.apply(e,r)}}},function(t,e,r){t.exports={default:r(161),__esModule:!0}},function(t,e,r){t.exports={default:r(162),__esModule:!0}},function(t,e,r){t.exports={default:r(166),__esModule:!0}},function(t,e,r){t.exports={default:r(174),__esModule:!0}},function(t,e,r){"use strict";e.__esModule=!0;var n=r(92),i=function(t){return t&&t.__esModule?t:{default:t}}(n);e.default=function(t){return Array.isArray(t)?t:(0,i.default)(t)}},function(t,e,r){"use strict";var n=r(13).f,i=r(52),o=r(74),a=r(21),u=r(63),s=r(40),l=r(68),f=r(106),c=r(117),h=r(12),d=r(69).fastKey,p=r(79),v=h?"_s":"size",y=function(t,e){var r,n=d(e);if("F"!==n)return t._i[n];for(r=t._f;r;r=r.n)if(r.k==e)return r};t.exports={getConstructor:function(t,e,r,l){var f=t(function(t,n){u(t,f,e,"_i"),t._t=e,t._i=i(null),t._f=void 0,t._l=void 0,t[v]=0,void 0!=n&&s(n,r,t[l],t)});return o(f.prototype,{clear:function(){for(var t=p(this,e),r=t._i,n=t._f;n;n=n.n)n.r=!0,n.p&&(n.p=n.p.n=void 0),delete r[n.i];t._f=t._l=void 0,t[v]=0},delete:function(t){var r=p(this,e),n=y(r,t);if(n){var i=n.n,o=n.p;delete r._i[n.i],n.r=!0,o&&(o.n=i),i&&(i.p=o),r._f==n&&(r._f=i),r._l==n&&(r._l=o),r[v]--}return!!n},forEach:function(t){p(this,e);for(var r,n=a(t,arguments.length>1?arguments[1]:void 0,3);r=r?r.n:this._f;)for(n(r.v,r.k,this);r&&r.r;)r=r.p},has:function(t){return!!y(p(this,e),t)}}),h&&n(f.prototype,"size",{get:function(){return p(this,e)[v]}}),f},def:function(t,e,r){var n,i,o=y(t,e);return o?o.v=r:(t._l=o={i:i=d(e,!0),k:e,v:r,p:n=t._l,n:void 0,r:!1},t._f||(t._f=o),n&&(n.n=o),t[v]++,"F"!==i&&(t._i[i]=o)),t},getEntry:y,setStrong:function(t,e,r){l(t,e,function(t,r){this._t=p(t,e),this._k=r,this._l=void 0},function(){for(var t=this,e=t._k,r=t._l;r&&r.r;)r=r.p;return t._t&&(t._l=r=r?r.n:t._t._f)?"keys"==e?f(0,r.k):"values"==e?f(0,r.v):f(0,[r.k,r.v]):(t._t=void 0,f(1))},r?"entries":"values",!r,!0),c(e)}}},function(t,e,r){var n=r(50),i=r(182);t.exports=function(t){return function(){if(n(this)!=t)throw TypeError(t+"#toJSON isn't generic");return i(this)}}},function(t,e,r){"use strict";var n=r(9),i=r(2),o=r(69),a=r(27),u=r(23),s=r(74),l=r(40),f=r(63),c=r(19),h=r(43),d=r(13).f,p=r(184)(0),v=r(12);t.exports=function(t,e,r,y,g,m){var b=n[t],_=b,x=g?"set":"add",w=_&&_.prototype,k={};return v&&"function"==typeof _&&(m||w.forEach&&!a(function(){(new _).entries().next()}))?(_=e(function(e,r){f(e,_,t,"_c"),e._c=new b,void 0!=r&&l(r,g,e[x],e)}),p("add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON".split(","),function(t){var e="add"==t||"set"==t;t in w&&(!m||"clear"!=t)&&u(_.prototype,t,function(r,n){if(f(this,_,t),!e&&m&&!c(r))return"get"==t&&void 0;var i=this._c[t](0===r?0:r,n);return e?this:i})}),m||d(_.prototype,"size",{get:function(){return this._c.size}})):(_=y.getConstructor(e,t,g,x),s(_.prototype,r),o.NEED=!0),h(_,t),k[t]=_,i(i.G+i.W+i.F,k),m||y.setStrong(_,t,g),_}},function(t,e,r){var n=r(9).document;t.exports=n&&n.documentElement},function(t,e,r){t.exports=!r(12)&&!r(27)(function(){return 7!=Object.defineProperty(r(65)("div"),"a",{get:function(){return 7}}).a})},function(t,e,r){var n=r(33),i=r(7)("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(n.Array===t||o[i]===t)}},function(t,e,r){var n=r(39);t.exports=Array.isArray||function(t){return"Array"==n(t)}},function(t,e,r){var n=r(18);t.exports=function(t,e,r,i){try{return i?e(n(r)[0],r[1]):e(r)}catch(e){var o=t.return;throw void 0!==o&&n(o.call(t)),e}}},function(t,e,r){var n=r(7)("iterator"),i=!1;try{var o=[7][n]();o.return=function(){i=!0},Array.from(o,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!i)return!1;var r=!1;try{var o=[7],a=o[n]();a.next=function(){return{done:r=!0}},o[n]=function(){return a},t(o)}catch(t){}return r}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,r){var n=r(13),i=r(18),o=r(34);t.exports=r(12)?Object.defineProperties:function(t,e){i(t);for(var r,a=o(e),u=a.length,s=0;u>s;)n.f(t,r=a[s++],e[r]);return t}},function(t,e,r){var n=r(110),i=r(66).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,i)}},function(t,e,r){var n=r(28),i=r(35),o=r(75)("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),n(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},function(t,e,r){var n=r(28),i=r(24),o=r(183)(!1),a=r(75)("IE_PROTO");t.exports=function(t,e){var r,u=i(t),s=0,l=[];for(r in u)r!=a&&n(u,r)&&l.push(r);for(;e.length>s;)n(u,r=e[s++])&&(~o(l,r)||l.push(r));return l}},function(t,e,r){var n=r(34),i=r(24),o=r(41).f;t.exports=function(t){return function(e){for(var r,a=i(e),u=n(a),s=u.length,l=0,f=[];s>l;)o.call(a,r=u[l++])&&f.push(t?[r,a[r]]:a[r]);return f}}},function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,e,r){var n=r(18),i=r(19),o=r(70);t.exports=function(t,e){if(n(t),i(e)&&e.constructor===t)return e;var r=o.f(t);return(0,r.resolve)(e),r.promise}},function(t,e,r){t.exports=r(23)},function(t,e,r){"use strict";var n=r(2),i=r(38),o=r(21),a=r(40);t.exports=function(t){n(n.S,t,{from:function(t){var e,r,n,u,s=arguments[1];return i(this),e=void 0!==s,e&&i(s),void 0==t?new this:(r=[],e?(n=0,u=o(s,arguments[2],2),a(t,!1,function(t){r.push(u(t,n++))})):a(t,!1,r.push,r),new this(r))}})}},function(t,e,r){"use strict";var n=r(2);t.exports=function(t){n(n.S,t,{of:function(){for(var t=arguments.length,e=Array(t);t--;)e[t]=arguments[t];return new this(e)}})}},function(t,e,r){"use strict";var n=r(9),i=r(0),o=r(13),a=r(12),u=r(7)("species");t.exports=function(t){var e="function"==typeof i[t]?i[t]:n[t];a&&e&&!e[u]&&o.f(e,u,{configurable:!0,get:function(){return this}})}},function(t,e,r){var n=r(18),i=r(38),o=r(7)("species");t.exports=function(t,e){var r,a=n(t).constructor;return void 0===a||void 0==(r=n(a)[o])?e:i(r)}},function(t,e,r){var n,i,o,a=r(21),u=r(189),s=r(100),l=r(65),f=r(9),c=f.process,h=f.setImmediate,d=f.clearImmediate,p=f.MessageChannel,v=f.Dispatch,y=0,g={},m=function(){var t=+this;if(g.hasOwnProperty(t)){var e=g[t];delete g[t],e()}},b=function(t){m.call(t.data)};h&&d||(h=function(t){for(var e=[],r=1;arguments.length>r;)e.push(arguments[r++]);return g[++y]=function(){u("function"==typeof t?t:Function(t),e)},n(y),y},d=function(t){delete g[t]},"process"==r(39)(c)?n=function(t){c.nextTick(a(m,t,1))}:v&&v.now?n=function(t){v.now(a(m,t,1))}:p?(i=new p,o=i.port2,i.port1.onmessage=b,n=a(o.postMessage,o,1)):f.addEventListener&&"function"==typeof postMessage&&!f.importScripts?(n=function(t){f.postMessage(t+"","*")},f.addEventListener("message",b,!1)):n="onreadystatechange"in l("script")?function(t){s.appendChild(l("script")).onreadystatechange=function(){s.removeChild(this),m.call(t)}}:function(t){setTimeout(a(m,t,1),0)}),t.exports={set:h,clear:d}},function(t,e,r){"use strict";(function(e){function n(t){return t&&t.__esModule?t:{default:t}}function i(){if("undefined"!=typeof performance&&performance.now)return performance.now();if(void 0!==e&&e.hrtime){var t=e.hrtime(),r=(0,h.default)(t,2);return 1e3*r[0]+1e-6*r[1]}return Date.now?Date.now():(new Date).getTime()}var o=r(6),a=n(o),u=r(3),s=n(u),l=r(25),f=n(l),c=r(1),h=n(c),d=void 0,p=void 0;"undefined"==typeof requestAnimationFrame?(d=function(t){return setTimeout(function(){t(i())},16)},p=function(t){return clearTimeout(t)}):(d=requestAnimationFrame,p=cancelAnimationFrame);var v=new f.default,y=void 0,g={requestAnimationFrame:function(t){var e=(0,s.default)("requestId");return v.set(e,t),null==y&&(y=d(function(t){y=null,[].concat((0,a.default)(v)).forEach(function(e){var r=(0,h.default)(e,2),n=r[0];(0,r[1])(t),v.delete(n)})})),e},cancelAnimationFrame:function(t){v.delete(t),!v.size&&y&&(p(y),y=null)}};t.exports=g}).call(e,r(56))},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function i(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=v.get(e);return n||(n=p.apply(void 0,e),v.set(e,n),n)}function o(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"end";return function(r,n){for(var i=1;i<n.length;i++){var o=n[i].offset;if(r<=o){var a=n[i-1].offset,u=o,s=(r-a)/(u-a),l=1/t,f=s/l;return f="end"===e?Math.floor(f):Math.ceil(f),l*f*(u-a)+a}}return 0}}function a(t){var e=/^cubic-bezier\((.*)\)/,r=t.match(e);if(r){var n=r[1].trim();return n=n.split(",").map(function(t){return parseFloat(t.trim())}),i.apply(void 0,(0,c.default)(n))}if(e=/^steps\((.*)\)/,r=t.match(e)){var a=r[1].trim();a=a.split(",").map(function(t){return t.trim()});var u=a,s=(0,l.default)(u,2),f=s[0],h=s[1];return o(parseInt(f,10),h)}return t}function u(t){return"string"==typeof t?t=y[t]?y[t]:a(t):"cubic-bezier"===t.type?t=i.apply(void 0,(0,c.default)(t.value)):"steps"===t.type&&(t=o(t.step,t.pos)),t}Object.defineProperty(e,"__esModule",{value:!0}),e.parseEasing=e.Easings=void 0;var s=r(1),l=n(s),f=r(6),c=n(f),h=r(25),d=n(h),p=r(158),v=new d.default,y={linear:function(t){return t},ease:i(.25,.1,.25,1),"ease-in":i(.42,0,1,1),"ease-out":i(0,0,.58,1),"ease-in-out":i(.42,0,.58,1),"step-start":o(1,"start"),"step-end":o(1,"end")};e.Easings=y,e.parseEasing=u},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={default:function(t,e,r,n,i){return"number"==typeof t&&"number"==typeof e?t+(r-n)/(i-n)*(e-t):r-n>i-r?e:t}}},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(6),o=n(i),a=r(49),u=n(a),s=r(4),l=n(s),f=r(5),c=n(f),h=r(3),d=n(h),p=r(37),v=(0,d.default)("batch"),y=function(){function t(e){(0,l.default)(this,t),this.layer=e,this[v]=new u.default,this.cache=null}return(0,c.default)(t,[{key:"add",value:function(){for(var t=this,e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];r.forEach(function(e){if(!e.layer||e.layer!==t.layer)throw new Error("Batch node must append to this layer first!");if(e[v])throw new Error("Node already batched!");var r=t;Object.defineProperty(e,"cache",{configurable:!0,get:function(){return r.cache},set:function(t){if(r.baseNode===this)r.cache&&t!==r.cache&&p.cacheContextPool.put(r.cache),r.cache=t;else if(null==t)throw new Error("Cannot set non-cachable attributes to batch members.Use batch.baseNode.attr(...)")}}),Object.defineProperty(e,"cachePriority",{configurable:!0,get:function(){return 1/0}}),e[v]=t,t[v].add(e)})}},{key:"remove",value:function(){for(var t=this,e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];r.forEach(function(e){t[v].has(e)&&(delete e[v],delete e.cache,t[v].delete(e))})}},{key:"baseNode",get:function(){for(var t=[].concat((0,o.default)(this[v])),e=t[0],r=1/0,n=1/0,i=0;i<t.length;i++){var a=t[i];n>a.zIndex?(n=a.zIndex,r=a.zOrder,e=a):n===a.zIndex&&r>a.zOrder&&(r=a.zOrder,e=a)}return e}}]),t}();e.default=y},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=r(20),o=n(i),a=r(1),u=n(a),s=r(14);e.default={blur:function(t){return"blur("+(0,s.appendUnit)(t)+")"},brightness:function(t){return"brightness("+t+")"},contrast:function(t){return"contrast("+t+")"},dropShadow:function(t){var e=(0,u.default)(t,4),r=e[0],n=e[1],i=e[2],o=e[3];return"drop-shadow("+(0,s.appendUnit)(r)+" "+(0,s.appendUnit)(n)+" "+(0,s.appendUnit)(i)+" "+o+")"},grayscale:function(t){return"grayscale("+t+")"},hueRotate:function(t){return"hue-rotate("+(0,s.appendUnit)(t,"deg")+")"},invert:function(t){return"invert("+t+")"},opacity:function(t){return"opacity("+t+")"},saturate:function(t){return"saturate("+t+")"},sepia:function(t){return"sepia("+t+")"},url:function(t){return"url("+t+")"},compile:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,o.default)(e).reduce(function(e,r){return e.concat(t[r[0]](r[1]))},[]).join(" ")}}},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i,o,a,u=r(1),s=n(u),l=r(8),f=n(l),c=r(15),h=n(c),d=r(26),p=n(d),v=r(11),y=n(v),g=r(4),m=n(g),b=r(5),_=n(b),x=r(17),w=n(x),k=r(16),M=n(k),S=r(3),E=n(S),T=r(44),C=n(T),O=r(30),P=r(14),j=r(127),A=r(126),R=n(A),z=r(31),I=(0,E.default)("children"),L=(0,E.default)("zOrder"),D=(i=function(t){function e(t){(0,m.default)(this,e);var r=(0,w.default)(this,(e.__proto__||(0,y.default)(e)).call(this,t));return r.setDefault({clip:null}),r}return(0,M.default)(e,t),(0,_.default)(e,[{key:"clip",set:function(t){this.clearCache(),t?(t="string"==typeof t?{d:t}:t,this.subject.svg=(0,j.createSvgPath)(t),this.set("clip",t)):(this.subject.svg=null,this.set("clip",null))}}]),e}(C.default.Attr),z(i.prototype,"clip",[P.attr],(0,p.default)(i.prototype,"clip"),i.prototype),i),N=(a=o=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,m.default)(this,e);var r=(0,w.default)(this,(e.__proto__||(0,y.default)(e)).call(this,t));return r[I]=[],r[L]=0,r}return(0,M.default)(e,t),(0,_.default)(e,[{key:"cloneNode",value:function(t){var r=(0,h.default)(e.prototype.__proto__||(0,y.default)(e.prototype),"cloneNode",this).call(this);if(t){this.children.forEach(function(e){var n=e.cloneNode(t);r.append(n)})}return r}},{key:"update",value:function(t){this.forceUpdate(!0)}},{key:"pointCollision",value:function(t){if((0,h.default)(e.prototype.__proto__||(0,y.default)(e.prototype),"pointCollision",this).call(this,t)||this.isVirtual){if(this.svg){var r=t.offsetX,n=t.offsetY,i=this.originalRect;t.isInClip=this.svg.isPointInPath(r-i[0],n-i[1])}return!0}return!1}},{key:"dispatchEvent",value:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!i||0!==this.getEventHandlers(t).length){if(!i&&!r.terminated&&"mouseenter"!==t&&"mouseleave"!==t){var o=n||this.pointCollision(r);if(o){var a=r.offsetX-this.originalRect[0],u=r.offsetY-this.originalRect[1],s=(0,f.default)({},r);s.parentX=a,s.parentY=u;for(var l=this[I].slice(0).reverse(),c=[],d=0;d<l.length&&!1!==r.isInClip;d++){var p=l[d];if(p.dispatchEvent(t,s,n,i)&&c.push(p),r.terminated&&!r.type.startsWith("mouse"))break}return r.targetSprites=c,r.terminated=!1,(0,h.default)(e.prototype.__proto__||(0,y.default)(e.prototype),"dispatchEvent",this).call(this,t,r,o,i)}}return(0,h.default)(e.prototype.__proto__||(0,y.default)(e.prototype),"dispatchEvent",this).call(this,t,r,n,i)}}},{key:"render",value:function(t,r){if(this.attr("clip")&&(this.svg.beginPath().to(r),r.clip()),!this.isVirtual){(0,h.default)(e.prototype.__proto__||(0,y.default)(e.prototype),"render",this).call(this,t,r);var n=this.attr("size"),i=(0,s.default)(n,2),o=i[0],a=i[1];""===o&&""===a||(r.beginPath(),r.rect(0,0,this.contentSize[0],this.contentSize[1]),r.clip())}for(var u=this[I],l=0;l<u.length;l++){var f=u[l];f.isVisible()&&f.draw(t,r),f.isDirty&&(f.isDirty=!1,f.dispatchEvent("update",{target:f,renderTime:t},!0,!0))}}},{key:"isVirtual",get:function(){var t=this.attr("border"),e=t.width,r=this.attr("borderRadius"),n=this.attr("bgcolor"),i=this.attr("gradients"),o=i.bgcolor,a=this.attr("size"),u=(0,s.default)(a,2),l=u[0],f=u[1],c=this.attr("anchor"),h=(0,s.default)(c,2),d=h[0],p=h[1];return!(d||p||l||f||r||e||n||o)}},{key:"children",get:function(){return this[I]}},{key:"contentSize",get:function(){if(this.isVirtual)return[0,0];var t=this.attr("size"),e=(0,s.default)(t,2),r=e[0],n=e[1];if(""===r||""===n)if(this.attr("clip")){var i=this.svg,o=i.bounds;r=o[2],n=o[3]}else{var a=void 0,u=void 0;a=0,u=0,this[I].forEach(function(t){var e=t.renderBox;a=Math.max(a,e[2]),u=Math.max(u,e[3])}),r=a,n=u}return[r,n]}}]),e}(C.default),o.Attr=D,a);e.default=N,(0,f.default)(N.prototype,R.default),(0,O.registerNodeType)("group",N,!0)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(3),i=function(t){return t&&t.__esModule?t:{default:t}}(n),o=(0,i.default)("zOrder");e.default={appendChild:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];t.remove();var r=this.children;r.push(t),this[o]=this[o]||0,t.connect(this,this[o]++);for(var n=r.length-1;n>0;n--){var i=r[n],a=r[n-1];i.zIndex<a.zIndex&&(r[n]=a,r[n-1]=i)}return e&&t.forceUpdate(),t},append:function(){for(var t=this,e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];r.forEach(function(e){return t.appendChild(e)})},removeChild:function(t){var e=this.children.indexOf(t);return-1===e?null:(this.children.splice(e,1),(t.isVisible()||t.lastRenderBox)&&t.forceUpdate(),t.disconnect(this),t)},clear:function(){var t=this;return this.children.slice(0).map(function(e){return t.removeChild(e)})},insertBefore:function(t,e){var r=this.children.indexOf(e);if(r>=0){this.removeChild(t),this.children.splice(r,0,t);var n=e.zOrder;t.connect(this,n),t.forceUpdate();for(var i=0;i<this.children.length;i++)if(i!==r){var a=this.children[i],u=a.zOrder;u>=n&&(delete a.zOrder,Object.defineProperty(a,"zOrder",{value:u+1,writable:!1,configurable:!0}))}this[o]=this[o]||0,this[o]++}return t}}},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function i(t,e){for(var r=0;r<e;r++)!function(e){var r=t[t.length-1],n=[],i=r[0][0],o=r[0][1];r.forEach(function(){n.push([i,o,i,o,i,o,i,o])}),t.push(n)}()}function o(t,e){for(var r=0;r<e;r++)!function(e){var r=t[t.length-1],n=[];r.forEach(function(t){n.push(t.slice(0))}),t.push(n)}()}function a(t,e,r,n,i,o,a,s,l){return{left:u(t,e,r,n,i,o,a,s,l),right:u(a,s,i,o,r,n,t,e,1-l,!0)}}function u(t,e,r,n,i,o,a,u,s,l){var f=(r-t)*s+t,c=(n-e)*s+e,h=(i-r)*s+r,d=(o-n)*s+n,p=(a-i)*s+i,v=(u-o)*s+o,y=(h-f)*s+f,g=(d-c)*s+c,m=(p-h)*s+h,b=(v-d)*s+d,_=(m-y)*s+y,x=(b-g)*s+g;return l?[_,x,y,g,f,c,t,e]:[t,e,f,c,y,g,_,x]}function s(t,e){for(var r=0,n=0;r<e;r++){var i=t[n],o=a(i[0],i[1],i[2],i[3],i[4],i[5],i[6],i[7],.5);t.splice(n,1),t.splice(n,0,o.left,o.right),n+=2,n>=t.length-1&&(n=0)}}function l(t){var e=0,r=0,n=[];return t.forEach(function(t){var i=(0,k.default)(t),o=i[0],a=i.slice(1);"M"===o?(e=a[0],r=a[1]):(n.push([e,r].concat((0,x.default)(a))),e=a[4],r=a[5])}),[n]}function f(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:100,n=l(t.path),a=l(e.path),u=n.length,f=a.length;return u>f?i(a,u-f):u<f&&o(n,f-u),n=(0,M.sort)(n,a),n.forEach(function(t,e){var n=t.length,i=a[e].length;n>i?n<r?(s(t,r-n),s(a[e],r-i)):s(a[e],n-i):n<i&&(i<r?(s(t,r-n),s(a[e],r-i)):s(t,i-n))}),n.forEach(function(t,e){n[e]=(0,M.sortCurves)(t,a[e])}),[n,a]}function c(t,e,r,n,i){return[t+(r-t)*i,e+(n-e)*i]}function h(t,e,r){return c(t[0],t[1],e[0],e[1],r).concat(c(t[2],t[3],e[2],e[3],r)).concat(c(t[4],t[5],e[4],e[5],r)).concat(c(t[6],t[7],e[6],e[7],r))}function d(t,e,r){var n=f(t,e),i=(0,b.default)(n,2),o=i[0],a=i[1];return o.map(function(t,e){var n=a[e];return t.map(function(t,e){var i=n[e],o=h(t,i,r);return 0===e?"M"+o[0]+" "+o[1]+" C"+o[2]+" "+o[3]+", "+o[4]+" "+o[5]+", "+o[6]+" "+o[7]:o[2]+" "+o[3]+", "+o[4]+" "+o[5]+", "+o[6]+" "+o[7]})}).join(" ")+"z"}function p(t,e,r,n,i){var o=(r-n)/(i-n);return o<=0?t:o>=1?e:(t=new E.default(t),e=new E.default(e),d(t,e,o))}function v(t){"string"==typeof t&&(t={d:t});var e=new E.default(t.d);return(t.transform||t.trim)&&(t.transform&&(0,g.default)(t.transform).forEach(function(t){var r=(0,b.default)(t,2),n=r[0],i=r[1];Array.isArray(i)||(i=[i]),e[n].apply(e,(0,x.default)(i))}),t.trim&&e.trim()),e}Object.defineProperty(e,"__esModule",{value:!0});var y=r(20),g=n(y),m=r(1),b=n(m),_=r(6),x=n(_),w=r(96),k=n(w);e.pathEffect=p,e.createSvgPath=v;var M=r(237),S=r(84),E=n(S)},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}var i=r(1),o=n(i),a=r(6),u=n(a),s=r(25),l=n(s),f=r(8),c=n(f),h=r(4),d=n(h),p=r(5),v=n(p),y=r(3),g=n(y),m=r(244),b={originTime:0,playbackRate:1},_=(0,g.default)("timeMark"),x=(0,g.default)("playbackRate"),w=(0,g.default)("timers"),k=(0,g.default)("originTime"),M=(0,g.default)("setTimer"),S=(0,g.default)("parent"),E=(0,g.default)("createTime"),T=function(){function t(e,r){(0,d.default)(this,t),e instanceof t&&(r=e,e={}),e=(0,c.default)({},b,e),r&&(this[S]=r),this[_]=[{globalTime:this.globalTime,localTime:-e.originTime,entropy:-e.originTime,playbackRate:e.playbackRate,globalEntropy:0}],this[E]=(0,m.nowtime)(),this[S]&&(this[_][0].globalEntropy=this[S].entropy),this[k]=e.originTime,this[x]=e.playbackRate,this[w]=new l.default}return(0,v.default)(t,[{key:"markTime",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.time,r=void 0===e?this.currentTime:e,n=t.entropy,i=void 0===n?this.entropy:n,o=t.playbackRate,a=void 0===o?this.playbackRate:o,u={globalTime:this.globalTime,localTime:r,entropy:i,playbackRate:a,globalEntropy:this.globalEntropy};this[_].push(u)}},{key:"fork",value:function(e){return new t(e,this)}},{key:"seekGlobalTime",value:function(t){var e=this.seekTimeMark(t),r=this[_][e],n=r.entropy,i=r.playbackRate;return r.globalTime+(t-n)/Math.abs(i)}},{key:"seekLocalTime",value:function(t){var e=this.seekTimeMark(t),r=this[_][e],n=r.localTime,i=r.entropy;return r.playbackRate>0?n+(t-i):n-(t-i)}},{key:"seekTimeMark",value:function(t){var e=this[_],r=0,n=e.length-1;if(t<=e[r].entropy)return r;if(t>=e[n].entropy)return n;for(var i=Math.floor((r+n)/2);i>r&&i<n;){if(t===e[i].entropy)return i;t<e[i].entropy?n=i:t>e[i].entropy&&(r=i),i=Math.floor((r+n)/2)}return r}},{key:"updateTimers",value:function(){var t=this;[].concat((0,u.default)(this[w])).forEach(function(e){var r=(0,o.default)(e,2),n=r[0],i=r[1];t[M](i.handler,i.time,n)})}},{key:"clearTimeout",value:function(t){function e(e){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}(function(t){var e=this[w].get(t);e&&null!=e.timerID&&(this[S]?this[S].clearTimeout(e.timerID):clearTimeout(e.timerID)),this[w].delete(t)})},{key:"clearInterval",value:function(t){return this.clearTimeout(t)}},{key:"clear",value:function(){var t=this,e=this[w];[].concat((0,u.default)(e.keys())).forEach(function(e){t.clearTimeout(e)})}},{key:"setTimeout",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{delay:0};return this[M](t,e)}},{key:"setInterval",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{delay:0},r=this,n=this[M](function i(){r[M](i,e,n),t()},e);return n}},{key:M,value:function(t,e){var r=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:(0,g.default)("timerID");e=(0,m.formatDelay)(e);var i=this[w].get(n),o=void 0,a=null,u=void 0,s=void 0;i?(this.clearTimeout(n),o=e.isEntropy?(e.delay-(this.entropy-i.startEntropy))/Math.abs(this.playbackRate):(e.delay-(this.currentTime-i.startTime))/this.playbackRate,u=i.startTime,s=i.startEntropy):(o=e.delay/(e.isEntropy?Math.abs(this.playbackRate):this.playbackRate),u=this.currentTime,s=this.entropy);var l=this[S],f=l?l.setTimeout.bind(l):setTimeout,c=e.heading;return!l&&!1===c&&o<0&&(o=1/0),(isFinite(o)||l)&&(o=Math.ceil(o),f!==setTimeout&&(o={delay:o,heading:c}),a=f(function(){r[w].delete(n),t()},o)),this[w].set(n,{timerID:a,handler:t,time:e,startTime:u,startEntropy:s}),n}},{key:"parent",get:function(){return this[S]}},{key:"lastTimeMark",get:function(){return this[_][this[_].length-1]}},{key:"currentTime",get:function(){var t=this.lastTimeMark,e=t.localTime,r=t.globalTime;return e+(this.globalTime-r)*this.playbackRate},set:function(t){var e=this,r=this.currentTime,n=t,i=this[w];this.markTime({time:t}),[].concat((0,u.default)(i)).forEach(function(t){var i=(0,o.default)(t,2),a=i[0],u=i[1],s=u.time,l=s.isEntropy,f=s.delay,c=s.heading,h=u.handler,d=u.startTime;if(l)0===f&&(h(),e.clearTimeout(a));else{var p=d+f;(0===f||!1!==c&&(n-r)*f<0||r<p&&p<n||r>p&&p>n)&&(h(),e.clearTimeout(a))}}),this.updateTimers()}},{key:"entropy",get:function(){var t=this.lastTimeMark,e=t.entropy,r=t.globalEntropy;return e+Math.abs((this.globalEntropy-r)*this.playbackRate)},set:function(t){if(this.entropy>t){var e=this.seekTimeMark(t);this[_].length=e+1}this.markTime({entropy:t}),this.updateTimers()}},{key:"globalEntropy",get:function(){return this[S]?this[S].entropy:(0,m.nowtime)()-this[E]}},{key:"globalTime",get:function(){return this[S]?this[S].currentTime:(0,m.nowtime)()}},{key:"playbackRate",get:function(){return this[x]},set:function(t){t!==this.playbackRate&&(this.markTime({playbackRate:t}),this[x]=t,this.updateTimers())}},{key:"paused",get:function(){if(0===this.playbackRate)return!0;for(var t=this.parent;t;){if(0===t.playbackRate)return!0;t=t.parent}return!1}}]),t}();t.exports=T},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function i(t){return t&&"string"==typeof t?I(t).toString():t}function o(t){if("string"!=typeof t)return t;var e=t.match(/(?:^|\s)+((?:scale|rotate|translate|skew|matrix)\([^()]+\))/g),r={};return e&&e.forEach(function(t){var e=t.match(/(scale|rotate|translate|skew|matrix)\(([^()]+)\)/),n=(0,C.default)(e,3),i=n[1],o=n[2];r[i]="rotate"===i?l(o)[0]:l(o)}),r}function a(t,e){if("string"==typeof t){return t.split(/[\s,]+/g).map(function(t){return e?e(t):t})}return t}function u(t){return a(t)}function s(t){return a(t,parseInt)}function l(t){return a(t,parseFloat)}function f(t){return Array.isArray(t)?1===t.length?[t[0],t[0]]:t:[t,t]}function c(t){return Array.isArray(t)?1===t.length?[t[0],t[0],t[0],t[0]]:2===t.length?[t[0],t[1],t[0],t[1]]:[].concat((0,E.default)(t),[0,0,0,0]).slice(0,4):[t,t,t,t]}function h(t,e){var r=[t[0],t[1],t[2],t[3]],n=r[0],i=r[1],o=r[2],a=r[3],u=[e[0],e[1],e[2],e[3]],s=u[0],l=u[1],f=u[2],c=u[3],h=Math.max(i,l),d=Math.min(o,f),p=Math.min(a,c),v=Math.max(n,s);return p>=h&&d>=v?[v,h,d,p]:null}function d(t){return[t[0],t[1],t[2]-t[0],t[3]-t[1]]}function p(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]}function v(t){return[t[0],t[1],t[0]+t[2],t[1]+t[3]]}function y(t){var e=v(t),r=(0,C.default)(e,4),n=r[0],i=r[1],o=r[2],a=r[3];return[[n,i],[o,i],[o,a],[n,a]]}function g(t,e){return t?e?[Math.min(t[0],e[0]),Math.min(t[1],e[1]),Math.max(t[2],e[2]),Math.max(t[3],e[3])]:t:e}function m(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"px";return""===t?t:"string"==typeof t&&(0,M.default)(Number(t))?t:t+e}function b(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t.sort(function(t,r){if(e){var n=[r,t];t=n[0],r=n[1]}return t.zIndex===r.zIndex?t.zOrder-r.zOrder:t.zIndex-r.zIndex})}function _(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"warn";"undefined"==typeof console||L.has(t)||(console[e](t),L.add(t))}Object.defineProperty(e,"__esModule",{value:!0}),e.sortOrderedSprites=e.appendUnit=e.rectVertices=e.rectToBox=e.boxUnion=e.boxEqual=e.boxToRect=e.boxIntersect=e.parseStringTransform=e.fourValuesShortCut=e.parseColorString=e.parseStringFloat=e.parseStringInt=e.praseString=e.oneOrTwoValues=e.parseColor=e.notice=e.Color=void 0;var x=r(49),w=n(x),k=r(94),M=n(k),S=r(6),E=n(S),T=r(1),C=n(T),O=r(4),P=n(O),j=r(5),A=n(j),R=r(160),z=function(){function t(e){if((0,P.default)(this,t),"string"==typeof e){var r=R.get(e||"rgba(0,0,0,0)"),n=r.model,i=r.value;this.model=n,this.value=i}else this.model=e.model,this.value=e.value}return(0,A.default)(t,[{key:"toString",value:function(){var t=(0,C.default)(this.value,4),e=t[0],r=t[1],n=t[2],i=t[3],o=this.model;return"rgb"===o?o+"a("+e+","+r+","+n+","+i+")":o+"a("+e+","+r+"%,"+n+"%,"+i+")"}},{key:"str",get:function(){return String(this)}}]),t}();e.Color=z;var I=function(t){return new z(t)},L=new w.default;e.notice=_,e.parseColor=I,e.oneOrTwoValues=f,e.praseString=u,e.parseStringInt=s,e.parseStringFloat=l,e.parseColorString=i,e.fourValuesShortCut=c,e.parseStringTransform=o,e.boxIntersect=h,e.boxToRect=d,e.boxEqual=p,e.boxUnion=g,e.rectToBox=v,e.rectVertices=y,e.appendUnit=m,e.sortOrderedSprites=b},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(94),o=n(i),a=r(62),u=n(a),s=r(22),l=n(s),f=r(61),c=n(f),h=r(8),d=n(h),p=r(1),v=n(p),y=r(155),g=n(y),m=r(6),b=n(m),_=r(11),x=n(_),w=r(4),k=n(w),M=r(5),S=n(M),E=r(17),T=n(E),C=r(15),O=n(C),P=r(16),j=n(P),A=r(3),R=n(A),z=r(85),I=n(z),L=r(58),D=n(L),N=r(47),F=r(46),V=N.utils.setDeprecation,B=N.utils.sortOrderedSprites,q=(0,R.default)("layerMap"),U=(0,R.default)("zOrder"),G=(0,R.default)("layers"),H=(0,R.default)("snapshot"),W=(0,R.default)("viewport"),J=(0,R.default)("resolution"),X=(0,R.default)("resizeHandler"),Y=function(t){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,k.default)(this,e);var n=(0,T.default)(this,(e.__proto__||(0,x.default)(e)).call(this));t=(0,F.getContainer)(t),n.container=t,3===arguments.length&&(V("Scene(container, width, height)","Instead use Scene(container, {viewport, resolution})."),r={viewport:[arguments[1],arguments[2]]}),n[U]=0,n[q]={},n[G]=[],n[H]=(0,F.createCanvas)();var i=r.viewport||["",""];n.viewport=i,n.stickMode=r.stickMode||"scale",n.stickExtend=!!r.stickExtend,n.stickOffset=[0,0],n.resolution=r.resolution||[].concat((0,b.default)(n.viewport)),n.namespaceURI="http://spritejs.org/scene";var o=n;return n.ownerDocument={createElementNS:function(t,e){return o.layer(e)}},["mousedown","mouseup","mousemove","touchstart","touchend","touchmove","click","dblclick"].forEach(function(t){return n.delegateEvent(t)}),t.addEventListener("DOMNodeRemovedFromDocument",function(){n[X]&&(window.removeEventListener("resize",n[X]),delete n[X])}),n}return(0,j.default)(e,t),(0,S.default)(e,[{key:"insertBefore",value:function(t,e){var r=this;if(!this.hasLayer(e))throw new Error("Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.");this.appendLayer(t),this.container.insertBefore(t.canvas,e.canvas);var n=void 0;n=this.container.querySelectorAll?this.container.querySelectorAll("canvas"):this.container.children,n.forEach(function(t,e){var n=t.dataset.layerId;if(n){var i=r.layer(n);delete i.zOrder,Object.defineProperty(i,"zOrder",{value:e,writable:!1,configurable:!0})}}),this[G]=B((0,g.default)(this[q]),!0)}},{key:"appendChild",value:function(t){return this.appendLayer(t)}},{key:"removeChild",value:function(t){return this.removeLayer(t)}},{key:"updateViewport",value:function(t){var e=this,r=(0,v.default)(this.layerViewport,2),n=r[0],i=r[1],o=t?[t]:this[G],a=this.stickMode,u=this.stickExtend;return o.forEach(function(t){var r=t.canvas;r.style.width=n+"px",r.style.height=i+"px",(0,d.default)(r.style,{top:"",right:"",bottom:"",left:"",transform:""}),u||"width"!==a&&"height"!==a?u||"right"!==a&&"bottom"!==a?(r.style.top="0",r.style.left="0"):(r.style.right="0",r.style.bottom="0"):(r.style.top="50%",r.style.left="50%",r.style.transform="translate(-50%, -50%)"),u&&(t.resolution=e.layerResolution)}),this.dispatchEvent("viewportChange",{target:this,layers:o}),this}},{key:"updateResolution",value:function(t){var e=this,r=t?[t]:this[G];return r.forEach(function(t){t.resolution=e.layerResolution}),this.dispatchEvent("resolutionChange",{target:this,layers:r}),this}},{key:"setViewport",value:function(t,e){return this.viewport=[t,e],this}},{key:"setResolution",value:function(t,e){return this.resolution=[t,e],this}},{key:"delegateEvent",value:function(t){var e=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.container;"string"==typeof t&&(t={type:t,passive:!0});var n=t,i=n.type,o=n.passive;r.addEventListener(i,function(t){var r=e[G],n={originalEvent:t,type:i,stopDispatch:function(){this.terminated=!0}},o=void 0,a=void 0,u=void 0,s=void 0;if(t instanceof CustomEvent)(0,d.default)(n,t.detail),null!=n.x&&null!=n.y?(u=n.x,s=n.y):null!=n.originalX&&null!=n.originalY&&(o=n.originalX,a=n.originalY);else if(t.target.dataset.layerId&&e[q][t.target.dataset.layerId]){var l=t.target.getBoundingClientRect(),f=l.left,c=l.top,h=t.changedTouches?t.changedTouches[0]:t,p=h.clientX,y=h.clientY;o=Math.round((0|p)-f),a=Math.round((0|y)-c)}for(var g=0;g<r.length;g++){var m=r[g];if(null!=o&&null!=a){var b=m.toLocalPos(o,a),_=(0,v.default)(b,2);u=_[0],s=_[1]}else if(null!=u&&null!=s){var x=m.toGlobalPos(u,s),w=(0,v.default)(x,2);o=w[0],a=w[1]}(0,d.default)(n,{layerX:u,layerY:s,originalX:o,originalY:a,x:u,y:s}),m.handleEvent&&m.dispatchEvent(i,n)}},{passive:o})}},{key:"dispatchEvent",value:function(t,r){this.container.dispatchEvent(new CustomEvent(t,{detail:r})),(0,O.default)(e.prototype.__proto__||(0,x.default)(e.prototype),"dispatchEvent",this).call(this,t,r,!0)}},{key:"preload",value:function(){function t(){return e.apply(this,arguments)}var e=(0,c.default)(u.default.mark(function t(){for(var e=this,r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];var o,a,s,f,c,h,d;return u.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:for(o=[],a=[],s=0;s<n.length;s++)f=n[s],c=void 0,"string"==typeof f?c=D.default.loadTexture(f):Array.isArray(f)?c=D.default.loadFrames.apply(D.default,(0,b.default)(f)):(h=f.id,d=f.src,c=D.default.loadTexture({id:h,src:d})),c instanceof l.default||(c=l.default.resolve(c)),a.push(c.then(function(t){o.push(t),e.dispatchEvent("preload",{target:e,current:t,loaded:o,resources:n})}));return t.next=4,l.default.all(a);case 4:return t.abrupt("return",o);case 5:case"end":return t.stop()}},t,this)}));return t}()},{key:"layer",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{handleEvent:!0};if("number"==typeof e&&(e={zIndex:e}),!this.hasLayer(t)){var r=0;if(null!=e.zIndex&&(r=e.zIndex,delete e.zIndex),"undefined"!=typeof window&&window.getComputedStyle){var n=window.getComputedStyle&&window.getComputedStyle(this.container).position;this.container.style&&"absolute"!==n&&"fixed"!==n&&(this.container.style.position="relative")}this.appendLayer(new I.default(t,e),r)}return this[q][t]}},{key:"appendLayer",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=t.id;if(this.hasLayer(r)&&this[q][r]!==t)throw new Error("layer "+r+" already exists! remove first...");return this.removeLayer(t),this[q][r]=t,t.connect(this,this[U]++,e),this.updateViewport(t),this.stickExtend||(t.resolution=this.layerResolution),this[G]=B((0,g.default)(this[q]),!0),F.setDebugToolsObserver&&"__debuglayer__"!==t.id&&(0,F.setDebugToolsObserver)(this,t),t}},{key:"removeLayer",value:function(t){return"string"==typeof t&&(t=this[q][t]),this.hasLayer(t)?(t.disconnect(this),delete this[q][t.id],this[G]=B((0,g.default)(this[q]),!0),F.removeDebugToolsObserver&&(0,F.removeDebugToolsObserver)(t),t):null}},{key:"hasLayer",value:function(t){var e=void 0;return"string"==typeof t?(e=t,t=this[q][t]):e=t.id,t&&this[q][e]===t}},{key:"snapshot",value:function(){function t(){return e.apply(this,arguments)}var e=(0,c.default)(u.default.mark(function t(){var e,r,n,i,o,a,s,f,c,h,d;return u.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e=(0,v.default)(this.viewport,2),r=e[0],n=e[1],i=this[H],i.width=r,i.height=n,o=(0,v.default)(this.layerViewport,2),a=o[0],s=o[1],f=this[G].slice(0).reverse(),c=i.getContext("2d"),h=f.map(function(t){return t.prepareRender()}),t.next=10,l.default.all(h);case 10:return d=[0,0,a,s],this.stickExtend||("width"===this.stickMode||"height"===this.stickMode?(d[0]=(r-a)/2,d[1]=(n-s)/2):"bottom"!==this.stickMode&&"right"!==this.stickMode||(d[0]=r-a,d[1]=n-s)),f.forEach(function(t){c.drawImage.apply(c,[t.canvas].concat(d))}),t.abrupt("return",i);case 14:case"end":return t.stop()}},t,this)}));return t}()},{key:"width",get:function(){return this.viewport[0]}},{key:"height",get:function(){return this.viewport[1]}},{key:"layerViewport",get:function(){var t=(0,v.default)(this.resolution,2),e=t[0],r=t[1],n=(0,v.default)(this.viewport,2),i=n[0],o=n[1],a=this.stickMode,u=this.stickExtend,s=i,l=o;return u||("width"===a||"top"===a||"bottom"===a?l=i*r/e:"height"!==a&&"left"!==a&&"right"!==a||(s=o*e/r)),[s,l]}},{key:"distortion",get:function(){if("scale"!==this.stickMode)return 1;var t=(0,v.default)(this.resolution,2),e=t[0],r=t[1],n=(0,v.default)(this.viewport,2),i=n[0],o=n[1];return("flex"===e?2:e/i)/("flex"===r?2:r/o)}},{key:"viewport",set:function(t){var e=this;Array.isArray(t)||(t=[t,t]);var r=t,n=(0,v.default)(r,2),i=n[0],o=n[1];this[W]=[i,o],"auto"===i||"auto"===o?this[X]||(this[X]=function(){e.updateViewport(),"flex"!==e.resolution[0]&&"flex"!==e.resolution[1]||e.updateResolution()},window.addEventListener("resize",this[X])):this[X]&&(window.removeEventListener("resize",this[X]),delete this[X]),this[G].length&&this.updateViewport()},get:function(){var t=(0,v.default)(this[W],2),e=t[0],r=t[1];return(""===e||(0,o.default)(Number(e)))&&(e=this.container.clientWidth),(""===r||(0,o.default)(Number(r)))&&(r=this.container.clientHeight),[e,r]}},{key:"layerResolution",get:function(){var t=(0,v.default)(this.resolution,2),e=t[0],r=t[1],n=(0,v.default)(this.viewport,2),i=n[0],o=n[1],a=this.stickMode,u=this.stickExtend;"flex"===e&&(e=2*i),"flex"===r&&(r=2*o);var s=e,l=r,f=0,c=0;if(u)if("width"===a||"top"===a||"bottom"===a){var h=e*o/i;l=h,"width"===a?f=Math.round((h-r)/2):"bottom"===a&&(f=h-r)}else if("height"===a||"left"===a||"right"===a){var d=r*i/o;s=d,"height"===a?c=Math.round((d-e)/2):"right"===a&&(c=d-e)}return this.stickOffset=[c,f],[s,l,c,f]}},{key:"resolution",set:function(t){Array.isArray(t)||(t=[t,t]);var e=t,r=(0,v.default)(e,2),n=r[0],i=r[1];this[J]=[n,i],this.updateResolution()},get:function(){return this[J]}},{key:"layers",get:function(){return this[G]}}]),e}(N.BaseNode);e.default=Y},function(t,e,r){t.exports=r(132)},function(t,e,r){"use strict";function n(t){var e=new a(t),r=o(a.prototype.request,e);return i.extend(r,a.prototype,e),i.extend(r,e),r}var i=r(10),o=r(91),a=r(134),u=r(59),s=n(u);s.Axios=a,s.create=function(t){return n(i.merge(u,t))},s.Cancel=r(88),s.CancelToken=r(133),s.isCancel=r(89),s.all=function(t){return Promise.all(t)},s.spread=r(148),t.exports=s,t.exports.default=s},function(t,e,r){"use strict";function n(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise(function(t){e=t});var r=this;t(function(t){r.reason||(r.reason=new i(t),e(r.reason))})}var i=r(88);n.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},n.source=function(){var t;return{token:new n(function(e){t=e}),cancel:t}},t.exports=n},function(t,e,r){"use strict";function n(t){this.defaults=t,this.interceptors={request:new a,response:new a}}var i=r(59),o=r(10),a=r(135),u=r(136),s=r(144),l=r(142);n.prototype.request=function(t){"string"==typeof t&&(t=o.merge({url:arguments[0]},arguments[1])),t=o.merge(i,this.defaults,{method:"get"},t),t.method=t.method.toLowerCase(),t.baseURL&&!s(t.url)&&(t.url=l(t.baseURL,t.url));var e=[u,void 0],r=Promise.resolve(t);for(this.interceptors.request.forEach(function(t){e.unshift(t.fulfilled,t.rejected)}),this.interceptors.response.forEach(function(t){e.push(t.fulfilled,t.rejected)});e.length;)r=r.then(e.shift(),e.shift());return r},o.forEach(["delete","get","head","options"],function(t){n.prototype[t]=function(e,r){return this.request(o.merge(r||{},{method:t,url:e}))}}),o.forEach(["post","put","patch"],function(t){n.prototype[t]=function(e,r,n){return this.request(o.merge(n||{},{method:t,url:e,data:r}))}}),t.exports=n},function(t,e,r){"use strict";function n(){this.handlers=[]}var i=r(10);n.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},n.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},n.prototype.forEach=function(t){i.forEach(this.handlers,function(e){null!==e&&t(e)})},t.exports=n},function(t,e,r){"use strict";function n(t){t.cancelToken&&t.cancelToken.throwIfRequested()}var i=r(10),o=r(139),a=r(89),u=r(59);t.exports=function(t){return n(t),t.headers=t.headers||{},t.data=o(t.data,t.headers,t.transformRequest),t.headers=i.merge(t.headers.common||{},t.headers[t.method]||{},t.headers||{}),i.forEach(["delete","get","head","post","put","patch","common"],function(e){delete t.headers[e]}),(t.adapter||u.adapter)(t).then(function(e){return n(t),e.data=o(e.data,e.headers,t.transformResponse),e},function(e){return a(e)||(n(t),e&&e.response&&(e.response.data=o(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)})}},function(t,e,r){"use strict";t.exports=function(t,e,r,n,i){return t.config=e,r&&(t.code=r),t.request=n,t.response=i,t}},function(t,e,r){"use strict";var n=r(90);t.exports=function(t,e,r){var i=r.config.validateStatus;r.status&&i&&!i(r.status)?e(n("Request failed with status code "+r.status,r.config,null,r.request,r)):t(r)}},function(t,e,r){"use strict";var n=r(10);t.exports=function(t,e,r){return n.forEach(r,function(r){t=r(t,e)}),t}},function(t,e,r){"use strict";function n(){this.message="String contains an invalid character"}function i(t){for(var e,r,i=String(t),a="",u=0,s=o;i.charAt(0|u)||(s="=",u%1);a+=s.charAt(63&e>>8-u%1*8)){if((r=i.charCodeAt(u+=.75))>255)throw new n;e=e<<8|r}return a}var o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";n.prototype=new Error,n.prototype.code=5,n.prototype.name="InvalidCharacterError",t.exports=i},function(t,e,r){"use strict";function n(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var i=r(10);t.exports=function(t,e,r){if(!e)return t;var o;if(r)o=r(e);else if(i.isURLSearchParams(e))o=e.toString();else{var a=[];i.forEach(e,function(t,e){null!==t&&void 0!==t&&(i.isArray(t)&&(e+="[]"),i.isArray(t)||(t=[t]),i.forEach(t,function(t){i.isDate(t)?t=t.toISOString():i.isObject(t)&&(t=JSON.stringify(t)),a.push(n(e)+"="+n(t))}))}),o=a.join("&")}return o&&(t+=(-1===t.indexOf("?")?"?":"&")+o),t}},function(t,e,r){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},function(t,e,r){"use strict";var n=r(10);t.exports=n.isStandardBrowserEnv()?function(){return{write:function(t,e,r,i,o,a){var u=[];u.push(t+"="+encodeURIComponent(e)),n.isNumber(r)&&u.push("expires="+new Date(r).toGMTString()),n.isString(i)&&u.push("path="+i),n.isString(o)&&u.push("domain="+o),!0===a&&u.push("secure"),document.cookie=u.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},function(t,e,r){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},function(t,e,r){"use strict";var n=r(10);t.exports=n.isStandardBrowserEnv()?function(){function t(t){var e=t;return r&&(i.setAttribute("href",e),e=i.href),i.setAttribute("href",e),{href:i.href,protocol:i.protocol?i.protocol.replace(/:$/,""):"",host:i.host,search:i.search?i.search.replace(/^\?/,""):"",hash:i.hash?i.hash.replace(/^#/,""):"",hostname:i.hostname,port:i.port,pathname:"/"===i.pathname.charAt(0)?i.pathname:"/"+i.pathname}}var e,r=/(msie|trident)/i.test(navigator.userAgent),i=document.createElement("a");return e=t(window.location.href),function(r){var i=n.isString(r)?t(r):r;return i.protocol===e.protocol&&i.host===e.host}}():function(){return function(){return!0}}()},function(t,e,r){"use strict";var n=r(10);t.exports=function(t,e){n.forEach(t,function(r,n){n!==e&&n.toUpperCase()===e.toUpperCase()&&(t[e]=r,delete t[n])})}},function(t,e,r){"use strict";var n=r(10);t.exports=function(t){var e,r,i,o={};return t?(n.forEach(t.split("\n"),function(t){i=t.indexOf(":"),e=n.trim(t.substr(0,i)).toLowerCase(),r=n.trim(t.substr(i+1)),e&&(o[e]=o[e]?o[e]+", "+r:r)}),o):o}},function(t,e,r){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function i(){v("spritejs.Paper2D","Instead use new spritejs.Scene.");for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];return new(Function.prototype.bind.apply(c.default,[null].concat(e)))}Object.defineProperty(e,"__esModule",{value:!0}),e.Effects=e.Resource=e.Color=e.createNode=e.registerNodeType=e.Paper2D=e.Scene=e.Layer=e.Group=e.Path=e.Label=e.Sprite=e.BaseSprite=e.BaseNode=e.utils=e.math=e.version=e._debugger=void 0;var o=r(47),a=r(86),u=n(a),s=r(85),l=n(s),f=r(130),c=n(f),h=r(58),d=n(h),p=r(46),v=o.utils.setDeprecation;p.shim&&(0,p.shim)(),(0,o.registerNodeType)("layer",l.default,!0),(0,o.registerNodeType)("sprite",u.default);e._debugger=p._debugger,e.version="2.3.2",e.math=o.math,e.utils=o.utils,e.BaseNode=o.BaseNode,e.BaseSprite=o.BaseSprite,e.Sprite=u.default,e.Label=o.Label,e.Path=o.Path,e.Group=o.Group,e.Layer=l.default,e.Scene=c.default,e.Paper2D=i,e.registerNodeType=o.registerNodeType,e.createNode=o.createNode,e.Color=o.Color,e.Resource=d.default,e.Effects=o.Effects},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function i(t,e){var r=void 0,n=void 0,i=void 0,o=void 0;e[f]=e[f]||{},e[f].initObserver=function(){function a(){if(h.selectedSprite){h.selectedSprite.off("update",s),h.selectedSprite=null;var t=new CustomEvent("spritejs: observer",{detail:""});document.dispatchEvent(t),i&&i.attr("opacity",0)}}function u(t){var e=t.renderRect;i||(i=new l.default,i.attr({zIndex:1/0,bgcolor:"rgba(0, 0, 0, 0.3)"}),o.append(i)),i.attr({pos:[e[0],e[1]],size:[e[2],e[3]]})}var s=void 0;o=t.layer("__debuglayer__"),o.canvas.style.background="transparent",o.zIndex=2147483647,r=function(t){var e=t.targetSprites;if(e.length){var r=e[0];if(r){if(h.selectedSprite===r)return;if(h.selectedSprite){var n=new CustomEvent("spritejs: observer",{detail:""});document.dispatchEvent(n),h.selectedSprite.off("update",s)}var i=new CustomEvent("spritejs: observer",{detail:r.attr()});document.dispatchEvent(i);var o=function(t){var e=new CustomEvent("spritejs: observer",{detail:t.attr()});document.dispatchEvent(e),u(t)};s=function(t){o(t.target)},o(r),r.on("update",s),h.selectedSprite=r,t.stopDispatch()}}else a()},e.on("click",r),n=function(t){if(!h.selectedSprite){var e=t.targetSprites[0];e?u(e):(o.remove(i),i=null)}},e.on("mousemove",n),c=!0},e[f].removeObserver=function(){r&&(e.off("click",r),r=null),n&&(e.off("mousemove",n),n=null),i&&(e.remove(i),i=null),o&&t.removeLayer(o),h.selectedSprite=null,c=!1},c&&e[f].initObserver(),e[f].attrChange=function(t){var e=t.detail,r=e.key,n=e.value;if(h.selectedSprite){var i=h.selectedSprite,o=r.split("."),a=o[1];if(2===o.length)try{i.attr(a,n)}catch(t){}else{for(var u=i.attr(a),s=2;s<o.length-1;s++)u[o[s]]=u[o[s]]||{};u[o[o.length-1]]=n;try{i.attr(a,u)}catch(t){}}}};var a=e[f];document.addEventListener("spritejs: devtools-opened",a.initObserver),document.addEventListener("spritejs: devtools-closed",a.removeObserver),document.addEventListener("spritejs: attr-change",a.attrChange)}function o(t){var e=t[f];e&&(document.removeEventListener("spritejs: devtools-opened",e.initObserver),document.removeEventListener("spritejs: devtools-closed",e.removeObserver),document.removeEventListener("spritejs: attr-change",e.attrChange))}Object.defineProperty(e,"__esModule",{value:!0}),e._debugger=void 0;var a=r(3),u=n(a);e.setDebugToolsObserver=i,e.removeDebugToolsObserver=o;var s=r(86),l=n(s),f=(0,u.default)("debugToolsHandler"),c=!1,h=e._debugger={selectedSprite:null}},function(t,e,r){t.exports={default:r(163),__esModule:!0}},function(t,e,r){t.exports={default:r(168),__esModule:!0}},function(t,e,r){t.exports={default:r(169),__esModule:!0}},function(t,e,r){t.exports={default:r(175),__esModule:!0}},function(t,e,r){t.exports={default:r(176),__esModule:!0}},function(t,e,r){t.exports={default:r(180),__esModule:!0}},function(t,e,r){"use strict";e.__esModule=!0;var n=r(48),i=function(t){return t&&t.__esModule?t:{default:t}}(n);e.default=function(t,e,r){return e in t?(0,i.default)(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}},function(t,e){function r(t,e){return 1-3*e+3*t}function n(t,e){return 3*e-6*t}function i(t){return 3*t}function o(t,e,o){return((r(e,o)*t+n(e,o))*t+i(e))*t}function a(t,e,o){return 3*r(e,o)*t*t+2*n(e,o)*t+i(e)}function u(t,e,r,n,i){var a,u,s=0;do{u=e+(r-e)/2,a=o(u,n,i)-t,a>0?r=u:e=u}while(Math.abs(a)>c&&++s<h);return u}function s(t,e,r,n){for(var i=0;i<f;++i){var u=a(e,r,n);if(0===u)return e;e-=(o(e,r,n)-t)/u}return e}function l(t){return t}var f=4,c=1e-7,h=10,d=11,p=1/(d-1),v="function"==typeof Float32Array;t.exports=function(t,e,r,n){function i(e){for(var n=0,i=1,o=d-1;i!==o&&f[i]<=e;++i)n+=p;--i;var l=(e-f[i])/(f[i+1]-f[i]),c=n+l*p,h=a(c,t,r);return h>=.001?s(e,c,t,r):0===h?c:u(e,n,n+p,t,r)}if(!(0<=t&&t<=1&&0<=r&&r<=1))throw new Error("bezier x values must be in [0, 1] range");if(t===e&&r===n)return l;for(var f=v?new Float32Array(d):new Array(d),c=0;c<d;++c)f[c]=o(c*p,t,r);return function(t){return 0===t?0:1===t?1:o(i(t),e,n)}}},function(t,e,r){"use strict";t.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},function(t,e,r){function n(t,e,r){return Math.min(Math.max(e,t),r)}function i(t){var e=t.toString(16).toUpperCase();return e.length<2?"0"+e:e}var o=r(159),a=r(229),u={};for(var s in o)o.hasOwnProperty(s)&&(u[o[s]]=s);var l=t.exports={to:{}};l.get=function(t){var e,r,n=t.substring(0,3).toLowerCase();switch(n){case"hsl":e=l.get.hsl(t),r="hsl";break;case"hwb":e=l.get.hwb(t),r="hwb";break;default:e=l.get.rgb(t),r="rgb"}return e?{model:r,value:e}:null},l.get.rgb=function(t){if(!t)return null;var e,r,i,a=/^#([a-f0-9]{3,4})$/i,u=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i,s=/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/,l=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/,f=/(\D+)/,c=[0,0,0,1];if(e=t.match(u)){for(i=e[2],e=e[1],r=0;r<3;r++){var h=2*r;c[r]=parseInt(e.slice(h,h+2),16)}i&&(c[3]=Math.round(parseInt(i,16)/255*100)/100)}else if(e=t.match(a)){for(e=e[1],i=e[3],r=0;r<3;r++)c[r]=parseInt(e[r]+e[r],16);i&&(c[3]=Math.round(parseInt(i+i,16)/255*100)/100)}else if(e=t.match(s)){for(r=0;r<3;r++)c[r]=parseInt(e[r+1],0);e[4]&&(c[3]=parseFloat(e[4]))}else{if(!(e=t.match(l)))return(e=t.match(f))?"transparent"===e[1]?[0,0,0,0]:(c=o[e[1]])?(c[3]=1,c):null:null;for(r=0;r<3;r++)c[r]=Math.round(2.55*parseFloat(e[r+1]));e[4]&&(c[3]=parseFloat(e[4]))}for(r=0;r<3;r++)c[r]=n(c[r],0,255);return c[3]=n(c[3],0,1),c},l.get.hsl=function(t){if(!t)return null;var e=/^hsla?\(\s*([+-]?\d*[\.]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/,r=t.match(e);if(r){var i=parseFloat(r[4]);return[(parseFloat(r[1])%360+360)%360,n(parseFloat(r[2]),0,100),n(parseFloat(r[3]),0,100),n(isNaN(i)?1:i,0,1)]}return null},l.get.hwb=function(t){if(!t)return null;var e=/^hwb\(\s*([+-]?\d*[\.]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/,r=t.match(e);if(r){var i=parseFloat(r[4]);return[(parseFloat(r[1])%360+360)%360,n(parseFloat(r[2]),0,100),n(parseFloat(r[3]),0,100),n(isNaN(i)?1:i,0,1)]}return null},l.to.hex=function(){var t=a(arguments);return"#"+i(t[0])+i(t[1])+i(t[2])+(t[3]<1?i(Math.round(255*t[3])):"")},l.to.rgb=function(){var t=a(arguments);return t.length<4||1===t[3]?"rgb("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+")":"rgba("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+", "+t[3]+")"},l.to.rgb.percent=function(){var t=a(arguments),e=Math.round(t[0]/255*100),r=Math.round(t[1]/255*100),n=Math.round(t[2]/255*100);return t.length<4||1===t[3]?"rgb("+e+"%, "+r+"%, "+n+"%)":"rgba("+e+"%, "+r+"%, "+n+"%, "+t[3]+")"},l.to.hsl=function(){var t=a(arguments);return t.length<4||1===t[3]?"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)":"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+t[3]+")"},l.to.hwb=function(){var t=a(arguments),e="";return t.length>=4&&1!==t[3]&&(e=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+e+")"},l.to.keyword=function(t){return u[t.slice(0,3)]}},function(t,e,r){r(29),r(199),t.exports=r(0).Array.from},function(t,e,r){r(36),r(29),t.exports=r(197)},function(t,e,r){r(36),r(29),t.exports=r(198)},function(t,e,r){var n=r(0),i=n.JSON||(n.JSON={stringify:JSON.stringify});t.exports=function(t){return i.stringify.apply(i,arguments)}},function(t,e,r){r(55),r(29),r(36),r(201),r(216),r(215),r(214),t.exports=r(0).Map},function(t,e,r){r(202),t.exports=r(0).Number.isNaN},function(t,e,r){r(203),t.exports=r(0).Object.assign},function(t,e,r){r(204);var n=r(0).Object;t.exports=function(t,e){return n.create(t,e)}},function(t,e,r){r(205);var n=r(0).Object;t.exports=function(t,e){return n.defineProperties(t,e)}},function(t,e,r){r(206);var n=r(0).Object;t.exports=function(t,e,r){return n.defineProperty(t,e,r)}},function(t,e,r){r(217),t.exports=r(0).Object.entries},function(t,e,r){r(207);var n=r(0).Object;t.exports=function(t,e){return n.getOwnPropertyDescriptor(t,e)}},function(t,e,r){r(208),t.exports=r(0).Object.getPrototypeOf},function(t,e,r){r(209),t.exports=r(0).Object.keys},function(t,e,r){r(210),t.exports=r(0).Object.setPrototypeOf},function(t,e,r){r(218),t.exports=r(0).Object.values},function(t,e,r){r(55),r(29),r(36),r(211),r(219),r(220),t.exports=r(0).Promise},function(t,e,r){r(55),r(29),r(36),r(212),r(223),r(222),r(221),t.exports=r(0).Set},function(t,e,r){r(213),r(55),r(224),r(225),t.exports=r(0).Symbol},function(t,e,r){r(29),r(36),t.exports=r(81).f("iterator")},function(t,e){t.exports=function(){}},function(t,e,r){var n=r(40);t.exports=function(t,e){var r=[];return n(t,!1,r.push,r,e),r}},function(t,e,r){var n=r(24),i=r(53),o=r(196);t.exports=function(t){return function(e,r,a){var u,s=n(e),l=i(s.length),f=o(a,l);if(t&&r!=r){for(;l>f;)if((u=s[f++])!=u)return!0}else for(;l>f;f++)if((t||f in s)&&s[f]===r)return t||f||0;return!t&&-1}}},function(t,e,r){var n=r(21),i=r(67),o=r(35),a=r(53),u=r(186);t.exports=function(t,e){var r=1==t,s=2==t,l=3==t,f=4==t,c=6==t,h=5==t||c,d=e||u;return function(e,u,p){for(var v,y,g=o(e),m=i(g),b=n(u,p,3),_=a(m.length),x=0,w=r?d(e,_):s?d(e,0):void 0;_>x;x++)if((h||x in m)&&(v=m[x],y=b(v,x,g),t))if(r)w[x]=y;else if(y)switch(t){case 3:return!0;case 5:return v;case 6:return x;case 2:w.push(v)}else if(f)return!1;return c?-1:l||f?f:w}}},function(t,e,r){var n=r(19),i=r(103),o=r(7)("species");t.exports=function(t){var e;return i(t)&&(e=t.constructor,"function"!=typeof e||e!==Array&&!i(e.prototype)||(e=void 0),n(e)&&null===(e=e[o])&&(e=void 0)),void 0===e?Array:e}},function(t,e,r){var n=r(185);t.exports=function(t,e){return new(n(t))(e)}},function(t,e,r){"use strict";var n=r(13),i=r(42);t.exports=function(t,e,r){e in t?n.f(t,e,i(0,r)):t[e]=r}},function(t,e,r){var n=r(34),i=r(72),o=r(41);t.exports=function(t){var e=n(t),r=i.f;if(r)for(var a,u=r(t),s=o.f,l=0;u.length>l;)s.call(t,a=u[l++])&&e.push(a);return e}},function(t,e){t.exports=function(t,e,r){var n=void 0===r;switch(e.length){case 0:return n?t():t.call(r);case 1:return n?t(e[0]):t.call(r,e[0]);case 2:return n?t(e[0],e[1]):t.call(r,e[0],e[1]);case 3:return n?t(e[0],e[1],e[2]):t.call(r,e[0],e[1],e[2]);case 4:return n?t(e[0],e[1],e[2],e[3]):t.call(r,e[0],e[1],e[2],e[3])}return t.apply(r,e)}},function(t,e,r){"use strict";var n=r(52),i=r(42),o=r(43),a={};r(23)(a,r(7)("iterator"),function(){return this}),t.exports=function(t,e,r){t.prototype=n(a,{next:i(1,r)}),o(t,e+" Iterator")}},function(t,e,r){var n=r(9),i=r(119).set,o=n.MutationObserver||n.WebKitMutationObserver,a=n.process,u=n.Promise,s="process"==r(39)(a);t.exports=function(){var t,e,r,l=function(){var n,i;for(s&&(n=a.domain)&&n.exit();t;){i=t.fn,t=t.next;try{i()}catch(n){throw t?r():e=void 0,n}}e=void 0,n&&n.enter()};if(s)r=function(){a.nextTick(l)};else if(o){var f=!0,c=document.createTextNode("");new o(l).observe(c,{characterData:!0}),r=function(){c.data=f=!f}}else if(u&&u.resolve){var h=u.resolve();r=function(){h.then(l)}}else r=function(){i.call(n,l)};return function(n){var i={fn:n,next:void 0};e&&(e.next=i),t||(t=i,r()),e=i}}},function(t,e,r){"use strict";var n=r(34),i=r(72),o=r(41),a=r(35),u=r(67),s=Object.assign;t.exports=!s||r(27)(function(){var t={},e={},r=Symbol(),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach(function(t){e[t]=t}),7!=s({},t)[r]||Object.keys(s({},e)).join("")!=n})?function(t,e){for(var r=a(t),s=arguments.length,l=1,f=i.f,c=o.f;s>l;)for(var h,d=u(arguments[l++]),p=f?n(d).concat(f(d)):n(d),v=p.length,y=0;v>y;)c.call(d,h=p[y++])&&(r[h]=d[h]);return r}:s},function(t,e,r){var n=r(24),i=r(108).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],u=function(t){try{return i(t)}catch(t){return a.slice()}};t.exports.f=function(t){return a&&"[object Window]"==o.call(t)?u(t):i(n(t))}},function(t,e,r){var n=r(19),i=r(18),o=function(t,e){if(i(t),!n(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,n){try{n=r(21)(Function.call,r(71).f(Object.prototype,"__proto__").set,2),n(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,r){return o(t,r),e?t.__proto__=r:n(t,r),t}}({},!1):void 0),check:o}},function(t,e,r){var n=r(77),i=r(64);t.exports=function(t){return function(e,r){var o,a,u=String(i(e)),s=n(r),l=u.length;return s<0||s>=l?t?"":void 0:(o=u.charCodeAt(s),o<55296||o>56319||s+1===l||(a=u.charCodeAt(s+1))<56320||a>57343?t?u.charAt(s):o:t?u.slice(s,s+2):a-56320+(o-55296<<10)+65536)}}},function(t,e,r){var n=r(77),i=Math.max,o=Math.min;t.exports=function(t,e){return t=n(t),t<0?i(t+e,0):o(t,e)}},function(t,e,r){var n=r(18),i=r(82);t.exports=r(0).getIterator=function(t){var e=i(t);if("function"!=typeof e)throw TypeError(t+" is not iterable!");return n(e.call(t))}},function(t,e,r){var n=r(50),i=r(7)("iterator"),o=r(33);t.exports=r(0).isIterable=function(t){var e=Object(t);return void 0!==e[i]||"@@iterator"in e||o.hasOwnProperty(n(e))}},function(t,e,r){"use strict";var n=r(21),i=r(2),o=r(35),a=r(104),u=r(102),s=r(53),l=r(187),f=r(82);i(i.S+i.F*!r(105)(function(t){Array.from(t)}),"Array",{from:function(t){var e,r,i,c,h=o(t),d="function"==typeof this?this:Array,p=arguments.length,v=p>1?arguments[1]:void 0,y=void 0!==v,g=0,m=f(h);if(y&&(v=n(v,p>2?arguments[2]:void 0,2)),void 0==m||d==Array&&u(m))for(e=s(h.length),r=new d(e);e>g;g++)l(r,g,y?v(h[g],g):h[g]);else for(c=m.call(h),r=new d;!(i=c.next()).done;g++)l(r,g,y?a(c,v,[i.value,g],!0):i.value);return r.length=g,r}})},function(t,e,r){"use strict";var n=r(181),i=r(106),o=r(33),a=r(24);t.exports=r(68)(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,r=this._i++;return!t||r>=t.length?(this._t=void 0,i(1)):"keys"==e?i(0,r):"values"==e?i(0,t[r]):i(0,[r,t[r]])},"values"),o.Arguments=o.Array,n("keys"),n("values"),n("entries")},function(t,e,r){"use strict";var n=r(97),i=r(79);t.exports=r(99)("Map",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{get:function(t){var e=n.getEntry(i(this,"Map"),t);return e&&e.v},set:function(t,e){return n.def(i(this,"Map"),0===t?0:t,e)}},n,!0)},function(t,e,r){var n=r(2);n(n.S,"Number",{isNaN:function(t){return t!=t}})},function(t,e,r){var n=r(2);n(n.S+n.F,"Object",{assign:r(192)})},function(t,e,r){var n=r(2);n(n.S,"Object",{create:r(52)})},function(t,e,r){var n=r(2);n(n.S+n.F*!r(12),"Object",{defineProperties:r(107)})},function(t,e,r){var n=r(2);n(n.S+n.F*!r(12),"Object",{defineProperty:r(13).f})},function(t,e,r){var n=r(24),i=r(71).f;r(73)("getOwnPropertyDescriptor",function(){return function(t,e){return i(n(t),e)}})},function(t,e,r){var n=r(35),i=r(109);r(73)("getPrototypeOf",function(){return function(t){return i(n(t))}})},function(t,e,r){var n=r(35),i=r(34);r(73)("keys",function(){return function(t){return i(n(t))}})},function(t,e,r){var n=r(2);n(n.S,"Object",{setPrototypeOf:r(194).set})},function(t,e,r){"use strict";var n,i,o,a,u=r(51),s=r(9),l=r(21),f=r(50),c=r(2),h=r(19),d=r(38),p=r(63),v=r(40),y=r(118),g=r(119).set,m=r(191)(),b=r(70),_=r(112),x=r(113),w=s.TypeError,k=s.process,M=s.Promise,S="process"==f(k),E=function(){},T=i=b.f,C=!!function(){try{var t=M.resolve(1),e=(t.constructor={})[r(7)("species")]=function(t){t(E,E)};return(S||"function"==typeof PromiseRejectionEvent)&&t.then(E)instanceof e}catch(t){}}(),O=function(t){var e;return!(!h(t)||"function"!=typeof(e=t.then))&&e},P=function(t,e){if(!t._n){t._n=!0;var r=t._c;m(function(){for(var n=t._v,i=1==t._s,o=0;r.length>o;)!function(e){var r,o,a=i?e.ok:e.fail,u=e.resolve,s=e.reject,l=e.domain;try{a?(i||(2==t._h&&R(t),t._h=1),!0===a?r=n:(l&&l.enter(),r=a(n),l&&l.exit()),r===e.promise?s(w("Promise-chain cycle")):(o=O(r))?o.call(r,u,s):u(r)):s(n)}catch(t){s(t)}}(r[o++]);t._c=[],t._n=!1,e&&!t._h&&j(t)})}},j=function(t){g.call(s,function(){var e,r,n,i=t._v,o=A(t);if(o&&(e=_(function(){S?k.emit("unhandledRejection",i,t):(r=s.onunhandledrejection)?r({promise:t,reason:i}):(n=s.console)&&n.error&&n.error("Unhandled promise rejection",i)}),t._h=S||A(t)?2:1),t._a=void 0,o&&e.e)throw e.v})},A=function(t){if(1==t._h)return!1;for(var e,r=t._a||t._c,n=0;r.length>n;)if(e=r[n++],e.fail||!A(e.promise))return!1;return!0},R=function(t){g.call(s,function(){var e;S?k.emit("rejectionHandled",t):(e=s.onrejectionhandled)&&e({promise:t,reason:t._v})})},z=function(t){var e=this;e._d||(e._d=!0,e=e._w||e,e._v=t,e._s=2,e._a||(e._a=e._c.slice()),P(e,!0))},I=function(t){var e,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===t)throw w("Promise can't be resolved itself");(e=O(t))?m(function(){var n={_w:r,_d:!1};try{e.call(t,l(I,n,1),l(z,n,1))}catch(t){z.call(n,t)}}):(r._v=t,r._s=1,P(r,!1))}catch(t){z.call({_w:r,_d:!1},t)}}};C||(M=function(t){p(this,M,"Promise","_h"),d(t),n.call(this);try{t(l(I,this,1),l(z,this,1))}catch(t){z.call(this,t)}},n=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},n.prototype=r(74)(M.prototype,{then:function(t,e){var r=T(y(this,M));return r.ok="function"!=typeof t||t,r.fail="function"==typeof e&&e,r.domain=S?k.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&P(this,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new n;this.promise=t,this.resolve=l(I,t,1),this.reject=l(z,t,1)},b.f=T=function(t){return t===M||t===a?new o(t):i(t)}),c(c.G+c.W+c.F*!C,{Promise:M}),r(43)(M,"Promise"),r(117)("Promise"),a=r(0).Promise,c(c.S+c.F*!C,"Promise",{reject:function(t){var e=T(this);return(0,e.reject)(t),e.promise}}),c(c.S+c.F*(u||!C),"Promise",{resolve:function(t){return x(u&&this===a?M:this,t)}}),c(c.S+c.F*!(C&&r(105)(function(t){M.all(t).catch(E)})),"Promise",{all:function(t){var e=this,r=T(e),n=r.resolve,i=r.reject,o=_(function(){var r=[],o=0,a=1;v(t,!1,function(t){var u=o++,s=!1;r.push(void 0),a++,e.resolve(t).then(function(t){s||(s=!0,r[u]=t,--a||n(r))},i)}),--a||n(r)});return o.e&&i(o.v),r.promise},race:function(t){var e=this,r=T(e),n=r.reject,i=_(function(){v(t,!1,function(t){e.resolve(t).then(r.resolve,n)})});return i.e&&n(i.v),r.promise}})},function(t,e,r){"use strict";var n=r(97),i=r(79);t.exports=r(99)("Set",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return n.def(i(this,"Set"),t=0===t?0:t,t)}},n)},function(t,e,r){"use strict";var n=r(9),i=r(28),o=r(12),a=r(2),u=r(114),s=r(69).KEY,l=r(27),f=r(76),c=r(43),h=r(54),d=r(7),p=r(81),v=r(80),y=r(188),g=r(103),m=r(18),b=r(24),_=r(78),x=r(42),w=r(52),k=r(193),M=r(71),S=r(13),E=r(34),T=M.f,C=S.f,O=k.f,P=n.Symbol,j=n.JSON,A=j&&j.stringify,R=d("_hidden"),z=d("toPrimitive"),I={}.propertyIsEnumerable,L=f("symbol-registry"),D=f("symbols"),N=f("op-symbols"),F=Object.prototype,V="function"==typeof P,B=n.QObject,q=!B||!B.prototype||!B.prototype.findChild,U=o&&l(function(){return 7!=w(C({},"a",{get:function(){return C(this,"a",{value:7}).a}})).a})?function(t,e,r){var n=T(F,e);n&&delete F[e],C(t,e,r),n&&t!==F&&C(F,e,n)}:C,G=function(t){var e=D[t]=w(P.prototype);return e._k=t,e},H=V&&"symbol"==typeof P.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof P},W=function(t,e,r){return t===F&&W(N,e,r),m(t),e=_(e,!0),m(r),i(D,e)?(r.enumerable?(i(t,R)&&t[R][e]&&(t[R][e]=!1),r=w(r,{enumerable:x(0,!1)})):(i(t,R)||C(t,R,x(1,{})),t[R][e]=!0),U(t,e,r)):C(t,e,r)},J=function(t,e){m(t);for(var r,n=y(e=b(e)),i=0,o=n.length;o>i;)W(t,r=n[i++],e[r]);return t},X=function(t,e){return void 0===e?w(t):J(w(t),e)},Y=function(t){var e=I.call(this,t=_(t,!0));return!(this===F&&i(D,t)&&!i(N,t))&&(!(e||!i(this,t)||!i(D,t)||i(this,R)&&this[R][t])||e)},$=function(t,e){if(t=b(t),e=_(e,!0),t!==F||!i(D,e)||i(N,e)){var r=T(t,e);return!r||!i(D,e)||i(t,R)&&t[R][e]||(r.enumerable=!0),r}},K=function(t){for(var e,r=O(b(t)),n=[],o=0;r.length>o;)i(D,e=r[o++])||e==R||e==s||n.push(e);return n},Q=function(t){for(var e,r=t===F,n=O(r?N:b(t)),o=[],a=0;n.length>a;)!i(D,e=n[a++])||r&&!i(F,e)||o.push(D[e]);return o};V||(P=function(){if(this instanceof P)throw TypeError("Symbol is not a constructor!");var t=h(arguments.length>0?arguments[0]:void 0),e=function(r){this===F&&e.call(N,r),i(this,R)&&i(this[R],t)&&(this[R][t]=!1),U(this,t,x(1,r))};return o&&q&&U(F,t,{configurable:!0,set:e}),G(t)},u(P.prototype,"toString",function(){return this._k}),M.f=$,S.f=W,r(108).f=k.f=K,r(41).f=Y,r(72).f=Q,o&&!r(51)&&u(F,"propertyIsEnumerable",Y,!0),p.f=function(t){return G(d(t))}),a(a.G+a.W+a.F*!V,{Symbol:P});for(var Z="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),tt=0;Z.length>tt;)d(Z[tt++]);for(var et=E(d.store),rt=0;et.length>rt;)v(et[rt++]);a(a.S+a.F*!V,"Symbol",{for:function(t){return i(L,t+="")?L[t]:L[t]=P(t)},keyFor:function(t){if(!H(t))throw TypeError(t+" is not a symbol!");for(var e in L)if(L[e]===t)return e},useSetter:function(){q=!0},useSimple:function(){q=!1}}),a(a.S+a.F*!V,"Object",{create:X,defineProperty:W,defineProperties:J,getOwnPropertyDescriptor:$,getOwnPropertyNames:K,getOwnPropertySymbols:Q}),j&&a(a.S+a.F*(!V||l(function(){var t=P();return"[null]"!=A([t])||"{}"!=A({a:t})||"{}"!=A(Object(t))})),"JSON",{stringify:function(t){if(void 0!==t&&!H(t)){for(var e,r,n=[t],i=1;arguments.length>i;)n.push(arguments[i++]);return e=n[1],"function"==typeof e&&(r=e),!r&&g(e)||(e=function(t,e){if(r&&(e=r.call(this,t,e)),!H(e))return e}),n[1]=e,A.apply(j,n)}}}),P.prototype[z]||r(23)(P.prototype,z,P.prototype.valueOf),c(P,"Symbol"),c(Math,"Math",!0),c(n.JSON,"JSON",!0)},function(t,e,r){r(115)("Map")},function(t,e,r){r(116)("Map")},function(t,e,r){var n=r(2);n(n.P+n.R,"Map",{toJSON:r(98)("Map")})},function(t,e,r){var n=r(2),i=r(111)(!0);n(n.S,"Object",{entries:function(t){return i(t)}})},function(t,e,r){var n=r(2),i=r(111)(!1);n(n.S,"Object",{values:function(t){return i(t)}})},function(t,e,r){"use strict";var n=r(2),i=r(0),o=r(9),a=r(118),u=r(113);n(n.P+n.R,"Promise",{finally:function(t){var e=a(this,i.Promise||o.Promise),r="function"==typeof t;return this.then(r?function(r){return u(e,t()).then(function(){return r})}:t,r?function(r){return u(e,t()).then(function(){throw r})}:t)}})},function(t,e,r){"use strict";var n=r(2),i=r(70),o=r(112);n(n.S,"Promise",{try:function(t){var e=i.f(this),r=o(t);return(r.e?e.reject:e.resolve)(r.v),e.promise}})},function(t,e,r){r(115)("Set")},function(t,e,r){r(116)("Set")},function(t,e,r){var n=r(2);n(n.P+n.R,"Set",{toJSON:r(98)("Set")})},function(t,e,r){r(80)("asyncIterator")},function(t,e,r){r(80)("observable")},function(t,e){function r(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}function n(t){return"function"==typeof t.readFloatLE&&"function"==typeof t.slice&&r(t.slice(0,0))}t.exports=function(t){return null!=t&&(r(t)||n(t)||!!t._isBuffer)}},function(t,e,r){var n=function(){return this}()||Function("return this")(),i=n.regeneratorRuntime&&Object.getOwnPropertyNames(n).indexOf("regeneratorRuntime")>=0,o=i&&n.regeneratorRuntime;if(n.regeneratorRuntime=void 0,t.exports=r(228),i)n.regeneratorRuntime=o;else try{delete n.regeneratorRuntime}catch(t){n.regeneratorRuntime=void 0}},function(t,e){!function(e){"use strict";function r(t,e,r,n){var o=e&&e.prototype instanceof i?e:i,a=Object.create(o.prototype),u=new d(n||[]);return a._invoke=l(t,r,u),a}function n(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}function i(){}function o(){}function a(){}function u(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function s(t){function e(r,i,o,a){var u=n(t[r],t,i);if("throw"!==u.type){var s=u.arg,l=s.value;return l&&"object"==typeof l&&m.call(l,"__await")?Promise.resolve(l.__await).then(function(t){e("next",t,o,a)},function(t){e("throw",t,o,a)}):Promise.resolve(l).then(function(t){s.value=t,o(s)},a)}a(u.arg)}function r(t,r){function n(){return new Promise(function(n,i){e(t,r,n,i)})}return i=i?i.then(n,n):n()}var i;this._invoke=r}function l(t,e,r){var i=S;return function(o,a){if(i===T)throw new Error("Generator is already running");if(i===C){if("throw"===o)throw a;return v()}for(r.method=o,r.arg=a;;){var u=r.delegate;if(u){var s=f(u,r);if(s){if(s===O)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===S)throw i=C,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=T;var l=n(t,e,r);if("normal"===l.type){if(i=r.done?C:E,l.arg===O)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(i=C,r.method="throw",r.arg=l.arg)}}}function f(t,e){var r=t.iterator[e.method];if(r===y){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=y,f(t,e),"throw"===e.method))return O;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return O}var i=n(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,O;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=y),e.delegate=null,O):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,O)}function c(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 h(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function d(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(c,this),this.reset(!0)}function p(t){if(t){var e=t[_];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,n=function e(){for(;++r<t.length;)if(m.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=y,e.done=!0,e};return n.next=n}}return{next:v}}function v(){return{value:y,done:!0}}var y,g=Object.prototype,m=g.hasOwnProperty,b="function"==typeof Symbol?Symbol:{},_=b.iterator||"@@iterator",x=b.asyncIterator||"@@asyncIterator",w=b.toStringTag||"@@toStringTag",k="object"==typeof t,M=e.regeneratorRuntime;if(M)return void(k&&(t.exports=M));M=e.regeneratorRuntime=k?t.exports:{},M.wrap=r;var S="suspendedStart",E="suspendedYield",T="executing",C="completed",O={},P={};P[_]=function(){return this};var j=Object.getPrototypeOf,A=j&&j(j(p([])));A&&A!==g&&m.call(A,_)&&(P=A);var R=a.prototype=i.prototype=Object.create(P);o.prototype=R.constructor=a,a.constructor=o,a[w]=o.displayName="GeneratorFunction",M.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===o||"GeneratorFunction"===(e.displayName||e.name))},M.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,a):(t.__proto__=a,w in t||(t[w]="GeneratorFunction")),t.prototype=Object.create(R),t},M.awrap=function(t){return{__await:t}},u(s.prototype),s.prototype[x]=function(){return this},M.AsyncIterator=s,M.async=function(t,e,n,i){var o=new s(r(t,e,n,i));return M.isGeneratorFunction(e)?o:o.next().then(function(t){return t.done?t.value:o.next()})},u(R),R[w]="Generator",R[_]=function(){return this},R.toString=function(){return"[object Generator]"},M.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},M.values=p,d.prototype={constructor:d,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=y,this.done=!1,this.delegate=null,this.method="next",this.arg=y,this.tryEntries.forEach(h),!t)for(var e in this)"t"===e.charAt(0)&&m.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=y)},stop:function(){this.done=!0;var t=this.tryEntries[0],e=t.completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){function e(e,n){return o.type="throw",o.arg=t,r.next=e,n&&(r.method="next",r.arg=y),!!n}if(this.done)throw t;for(var r=this,n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n],o=i.completion;if("root"===i.tryLoc)return e("end");if(i.tryLoc<=this.prev){var a=m.call(i,"catchLoc"),u=m.call(i,"finallyLoc");if(a&&u){if(this.prev<i.catchLoc)return e(i.catchLoc,!0);if(this.prev<i.finallyLoc)return e(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return e(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return e(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&m.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=t,o.arg=e,i?(this.method="next",this.next=i.finallyLoc,O):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),O},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),h(r),O}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;h(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:p(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=y),O}}}(function(){return this}()||Function("return this")())},function(t,e,r){"use strict";var n=r(230),i=Array.prototype.concat,o=Array.prototype.slice,a=t.exports=function(t){for(var e=[],r=0,a=t.length;r<a;r++){var u=t[r];n(u)?e=i.call(e,o.call(u)):e.push(u)}return e};a.wrap=function(t){return function(){return t(a(arguments))}}},function(t,e){t.exports=function(t){return!(!t||"string"==typeof t)&&(t instanceof Array||Array.isArray(t)||t.length>=0&&(t.splice instanceof Function||Object.getOwnPropertyDescriptor(t,t.length-1)&&"String"!==t.constructor.name))}},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=r(22),o=n(i),a=r(95),u=n(a),s=r(8),l=n(s),f=r(4),c=n(f),h=r(5),d=n(h),p=r(3),v=n(p),y=r(232),g=r(128),m=n(g),b=r(121),_=(0,v.default)("timing"),x=(0,v.default)("keyframes"),w=(0,v.default)("initState"),k=(0,v.default)("readyDefer"),M=(0,v.default)("finishedDefer"),S=(0,v.default)("effects"),E=(0,v.default)("activeReadyTimer"),T=(0,v.default)("activeFinishTimer"),C=(0,v.default)("removeDefer"),O={delay:0,endDelay:0,fill:"auto",iterations:1,playbackRate:1,direction:"normal",easing:"linear",effect:null},P=function(){function t(e,r,n){var i=this;if((0,c.default)(this,t),Array.isArray(e)){var o=[e[0],e,r];e=o[0],r=o[1],n=o[2]}"number"==typeof n&&(n={duration:n}),this[_]=(0,l.default)({},O,n),this[_].easing=(0,b.parseEasing)(this[_].easing),this[x]=(0,y.calculateFramesOffset)(r);var a=this[x][this[x].length-1];this[w]={},(0,u.default)(a).forEach(function(t){Object.prototype.hasOwnProperty.call(e,t)&&(i[w][t]=e[t])}),this[x]=this[x].map(function(t){return(0,l.default)({},i[w],t)}),0!==this[x][0].offset&&this[x].unshift((0,l.default)({},this[w],{offset:0})),a.offset<1&&this[x].push((0,l.default)({},a,{offset:1})),this[S]={},this.timeline=null}return(0,d.default)(t,[{key:"pause",value:function(){this.timeline.playbackRate=0}},{key:E,value:function(){var t=this;this[k]&&!this[k].timerID&&(this.timeline.currentTime<0?this[k].timerID=this.timeline.setTimeout(function(){t[k].resolve(),delete t[k]},{delay:-this.timeline.currentTime,heading:!1}):this[k].timerID=this.timeline.setTimeout(function(){t[k].resolve(),delete t[k]},{delay:0,isEntropy:!0}))}},{key:T,value:function(){var t=this,e=this[_],r=e.duration,n=e.iterations,i=e.endDelay,o=Math.ceil(r*n+i-this.timeline.currentTime)+1;this[M]&&!this[M].timerID&&(this[M].timerID=this.timeline.setTimeout(function(){t[M].resolve(),t[C](k),t[C](M)},{delay:o,heading:!1}),this[M].reverseTimerID=this.timeline.setTimeout(function(){t[M].resolve(),t[C](k),t[C](M),t.timeline=null},{delay:-this[_].delay-1,heading:!1}))}},{key:"play",value:function(){if("finished"===this.playState&&this.cancel(),"idle"===this.playState){if(this.playbackRate<=0)return;var t=this[_],e=t.delay,r=t.playbackRate,n=t.timeline;this.timeline=new m.default({originTime:e,playbackRate:r},n),this[E](),this[T]()}else"paused"===this.playState&&(this.timeline.playbackRate=this.playbackRate,this[E]())}},{key:C,value:function(t){var e=this[t],r=this.timeline;e&&r&&(r.clearTimeout(e.timerID),e.reverseTimerID&&r.clearTimeout(e.reverseTimerID)),delete this[t]}},{key:"cancel",value:function(){this[C](k),this[C](M),this.timeline=null}},{key:"finish",value:function(){this.timeline.currentTime=1/0/this.playbackRate,this[C](k),this[C](M)}},{key:"applyEffects",value:function(t){return(0,l.default)(this[S],t)}},{key:"playbackRate",get:function(){return this[_].playbackRate},set:function(t){this.timeline&&(this.timeline.playbackRate=t),this[_].playbackRate=t}},{key:"playState",get:function(){var t=this.timeline,e=this[_],r=e.iterations,n=e.duration,i=e.endDelay,o="running";if(null==t)o="idle";else if(t.paused)o="paused";else if(t.currentTime<0)o="pending";else{var a=t.currentTime-r*n;a>0&&a<i?o="pending":a>=i&&(o="finished")}return o}},{key:"progress",get:function(){if(!this.timeline)return 0;var t=this[_],e=t.duration,r=t.iterations,n=this.timeline,i=this.playState,o=void 0;if("idle"===i)o=0;else if("paused"===i&&n.currentTime<0)o=0;else if("pending"===i)if(n.currentTime<0)o=0;else{var a=n.seekLocalTime(r*e);o=(0,y.periodicity)(a,e)[1]/e}else"running"!==i&&"paused"!==i||(o=(0,y.periodicity)(n.currentTime,e)[1]/e);return"finished"===i&&(o=(0,y.periodicity)(r,1)[1]),o}},{key:"frame",get:function(){var t=this.playState,e=this[w],r=this[_].fill;if("idle"===t)return e;var n=this.timeline.currentTime,i=this[x].slice(0),o=(0,y.getProgress)(this.timeline,this[_],this.progress),a=o.p,u=o.inverted,s=e;return n<0&&"pending"===t?"backwards"!==r&&"both"!==r||(s=u?i[i.length-1]:i[0]):("pending"!==t&&"finished"!==t||"forwards"===r||"both"===r)&&(s=(0,y.getCurrentFrame)(this[_],i,this[S],a)),s}},{key:"timing",get:function(){return this[_]}},{key:"baseTimeline",set:function(t){this[_].timeline=t},get:function(){return this[_].timeline}},{key:"ready",get:function(){return this[k]?this[k].promise:this.timeline&&this.timeline.currentTime>=0&&"paused"!==this.playState?o.default.resolve():(this[k]=(0,y.defer)(),this.timeline&&this[E](),this[k]?this[k].promise:o.default.resolve())}},{key:"finished",get:function(){return"finished"===this.playState?o.default.resolve():(this[M]||(this[M]=(0,y.defer)(),this.timeline&&this[T]()),this[M].promise)}}]),t}();e.default=P},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function i(){var t={};return t.promise=new b.default(function(e,r){t.resolve=e,t.reject=r}),t}function o(t,e){var r=Math.floor(t/e),n=t-r*e;return 0===n&&r>0&&(n=e,r--),[r,n]}function a(t){t=t.slice(0);var e=t[0],r=t[t.length-1];r.offset=r.offset||1,e.offset=e.offset||0;for(var n=0,i=-1,o=0;o<t.length;o++){var a=t[o];if(null!=a.offset){var u=o-i;if(u>1)for(var s=(a.offset-n)/u,l=0;l<u-1;l++)t[i+l+1].offset=n+s*(l+1);n=a.offset,i=o}o>0&&(t[o]=(0,g.default)({},t[o-1],t[o]))}return t}function u(t,e,r){var n=t.currentTime,i=e.direction,o=e.duration,a=!1;if("reverse"===i)r=1-r,a=!0;else if("alternate"===i||"alternate-reverse"===i){var u=Math.floor(n/o);1===r&&u--,u%2^"alternate-reverse"===i&&(r=1-r,a=!0)}return{p:r,inverted:a}}function s(t,e,r,n){var i={},o=!0,a=!1,u=void 0;try{for(var s,l=(0,d.default)((0,c.default)(e));!(o=(s=l.next()).done);o=!0){var f=s.value,h=(0,v.default)(f,2),p=h[0],y=h[1];if("offset"!==p){var g=r[p]||r.default,m=g(t[p],y,n,t.offset,e.offset);null!=m&&(i[p]=m)}}}catch(t){a=!0,u=t}finally{try{!o&&l.return&&l.return()}finally{if(a)throw u}}return i}function l(t,e,r,n){var i=t.easing,o=t.effect;o||(r=(0,g.default)({},r,x.default));var a={};n=i(n,e);for(var u=1;u<e.length;u++){var l=e[u],f=l.offset;if(f>=n||u===e.length-1){var c=e[u-1],h=c.offset;a=o?o(c,l,n,h,f):s(c,l,r,n);break}}return a}Object.defineProperty(e,"__esModule",{value:!0});var f=r(20),c=n(f),h=r(93),d=n(h),p=r(1),v=n(p),y=r(8),g=n(y),m=r(22),b=n(m);e.defer=i,e.periodicity=o,e.calculateFramesOffset=a,e.getProgress=u,e.getCurrentFrame=l;var _=r(122),x=n(_)},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function i(t,e,r,n,i){return Array.isArray(t)?t.map(function(t,o){return L(t,e[o],r,n,i)}):L(t,e,r,n,i)}function o(t,e,r,n,o){var a=(0,j.default)({},e,t),u=(0,j.default)({},t,e);return(0,O.default)(a).forEach(function(t){var e=(0,T.default)(t,2),s=e[0],l=e[1];a[s]=i(l,u[s],r,n,o)}),a}function a(t){var e=new z.Matrix;return(0,O.default)(t).forEach(function(t){var r=(0,T.default)(t,2),n=r[0],i=r[1];if("matrix"===n)e=new z.Matrix(i);else if(Array.isArray(i)){var o;(o=e)[n].apply(o,(0,S.default)(i))}else"scale"===n?e.scale(i,i):e[n](i)}),e.m}function u(t,e){if(t.length!==e.length)return!1;for(var r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}function s(t,e,r,n,s){return t=(0,I.parseStringTransform)(t),e=(0,I.parseStringTransform)(e),u((0,k.default)(t),(0,k.default)(e))||(t=a(t),e=a(e)),Array.isArray(t)||Array.isArray(e)?i(t,e,r,n,s):o(t,e,r,n,s)}function l(t,e,r,n,o){var a=(0,I.parseColor)(t),u=(0,I.parseColor)(e);return a.model===u.model?(a.value=i(a.value,u.value,r,n,o).map(function(t,e){return e<3?Math.round(t):Math.round(100*t)/100}),a.str):L(t,e,r,n,o)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var f=r(11),c=n(f),h=r(4),d=n(h),p=r(5),v=n(p),y=r(17),g=n(y),m=r(15),b=n(m),_=r(16),x=n(_),w=r(95),k=n(w),M=r(6),S=n(M),E=r(1),T=n(E),C=r(20),O=n(C),P=r(8),j=n(P),A=r(57),R=r(120),z=r(45),I=r(14),L=A.Effects.default;(0,j.default)(A.Effects,{arrayEffect:i,transformEffect:s,colorEffect:l,pos:i,size:i,transform:s,bgcolor:l,border:function(t,e,r,n,o){return{width:L(t.width,e.width,r,n,o),color:l(t.color,e.color,r,n,o),style:i(t.style,e.style,r,n,o)}},scale:i,translate:i,skew:i,color:l,strokeColor:l,fillColor:l});var D=function(t){function e(t,r,n){(0,d.default)(this,e);var i=(0,g.default)(this,(e.__proto__||(0,c.default)(e)).call(this,t.attr(),r,n));return i.target=t,i}return(0,x.default)(e,t),(0,v.default)(e,[{key:"finish",value:function(){(0,b.default)(e.prototype.__proto__||(0,c.default)(e.prototype),"finish",this).call(this),(0,R.cancelAnimationFrame)(this.requestId),this.target.attr(this.frame)}},{key:"play",value:function(){if(this.target.parent&&"running"!==this.playState){(0,b.default)(e.prototype.__proto__||(0,c.default)(e.prototype),"play",this).call(this);var t=this.target;t.attr(this.frame);var r=this;this.ready.then(function(){t.attr(r.frame),r.requestId=(0,R.requestAnimationFrame)(function e(){var n=r.target;if("undefined"!=typeof document&&document.documentElement&&document.documentElement.contains&&n.layer&&n.layer.canvas&&!document.documentElement.contains(n.layer.canvas))return void r.cancel();var i=r.playState;t.attr(r.frame),"idle"!==i&&("running"===i?r.requestId=(0,R.requestAnimationFrame)(e):("paused"===i||"pending"===i&&r.timeline.currentTime<0)&&r.ready.then(function(){t.attr(r.frame),r.requestId=(0,R.requestAnimationFrame)(e)}))})})}}},{key:"cancel",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];(0,R.cancelAnimationFrame)(this.requestId),t?(this.target.attr(this.frame),(0,b.default)(e.prototype.__proto__||(0,c.default)(e.prototype),"cancel",this).call(this)):((0,b.default)(e.prototype.__proto__||(0,c.default)(e.prototype),"cancel",this).call(this),this.target.attr(this.frame))}},{key:"playState",get:function(){return this.target.parent?(0,b.default)(e.prototype.__proto__||(0,c.default)(e.prototype),"playState",this):"idle"}},{key:"finished",get:function(){var t=this,r=this.target;return(0,b.default)(e.prototype.__proto__||(0,c.default)(e.prototype),"finished",this).then(function(){r.attr(t.frame),(0,R.cancelAnimationFrame)(t.requestId)})}}]),e}(A.Animator);e.default=D},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i,o,a,u,s,l,f,c,h,d,p,v,y,g,m,b,_,x=r(26),w=n(x),k=r(6),M=n(k),S=r(48),E=n(S),T=r(60),C=n(T),O=r(32),P=n(O),j=r(153),A=n(j),R=r(1),z=n(R),I=r(20),L=n(I),D=r(8),N=n(D),F=r(25),V=n(F),B=r(4),q=n(B),U=r(5),G=n(U),H=r(3),W=n(H),J=r(45),X=r(14),Y=r(84),$=n(Y),K=r(31),Q=(0,W.default)("attr"),Z=(0,W.default)("store"),tt=(0,W.default)("subject"),et=(0,W.default)("default"),rt=(0,W.default)("props"),nt=(i=(0,X.parseValue)(X.parseStringFloat,X.oneOrTwoValues),o=(0,X.parseValue)(parseFloat),a=(0,X.parseValue)(parseFloat),u=(0,X.parseValue)(X.parseStringInt),s=(0,X.parseValue)(X.parseColorString),l=(0,X.parseValue)(function(t){return t?parseFloat(t):t}),f=(0,X.parseValue)(function(t){return t?parseFloat(t):t}),c=(0,X.parseValue)(X.parseStringInt),h=(0,X.parseValue)(X.parseStringInt,X.fourValuesShortCut),d=(0,X.parseValue)(parseFloat),p=(0,X.parseValue)(parseFloat),v=(0,X.parseValue)(X.parseStringTransform),y=(0,X.parseValue)(parseFloat),g=(0,X.parseValue)(X.parseStringFloat,X.oneOrTwoValues),m=(0,X.deprecate)("Instead use attr.gradients."),b=(0,X.parseValue)(parseFloat),_=function(){function t(e){(0,q.default)(this,t),this[tt]=e,this[et]={},this[Q]={},this[rt]={},this.setDefault({anchor:[0,0],x:0,y:0,opacity:1,width:"",height:"",bgcolor:"",rotate:0,scale:[1,1],translate:[0,0],skew:[0,0],transform:"matrix(1,0,0,1,0,0)",transformOrigin:"",transformMatrix:[1,0,0,1,0,0],border:{width:0,color:"rgba(0,0,0,0)",style:"solid"},borderRadius:0,dashOffset:0,display:"",padding:[0,0,0,0],zIndex:0,offsetRotate:"auto",gradients:{},offsetDistance:0,filter:"",shadow:""},{pos:function(){return[this.x,this.y]},size:function(){return[this.width,this.height]},linearGradients:function(){return this.gradients}}),this[Z]=new V.default}return(0,G.default)(t,[{key:"setDefault",value:function(t){var e=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,N.default)(this[et],t),(0,N.default)(this[Q],t);var n={};(0,L.default)(r).forEach(function(t){var r=(0,z.default)(t,2),i=r[0],o=r[1];n[i]={get:o.bind(e)}}),(0,A.default)(this[Q],n),(0,N.default)(this[rt],n)}},{key:"saveObj",value:function(t,e){this[Z].set(t,e),this.__updateTag=!0}},{key:"loadObj",value:function(t){return this[Z].get(t)}},{key:"quietSet",value:function(t,e){this[Q][t]=e}},{key:"set",value:function(t,e){if(null==e&&(e=this[et][t]),"object"===(void 0===e?"undefined":(0,P.default)(e))){var r=this[Q][t];if(r!==e&&(0,C.default)(e)===(0,C.default)(r))return}this[Q][t]=e,this.__updateTag=!0}},{key:"get",value:function(t){return this[Q][t]}},{key:"clearCache",value:function(){return this.__clearCacheTag=!0,this}},{key:"merge",value:function(t){var e=this;return"string"==typeof t&&(t=JSON.parse(t)),(0,L.default)(t).forEach(function(t){var r=(0,z.default)(t,2),n=r[0],i=r[1];if(e[et][n]!==i)if("offsetPath"!==n&&"offsetDistance"!==n&&"offsetRotate"!==n&&"offsetAngle"!==n&&"offsetPoint"!==n)e[n]=i;else if("offsetPath"===n){var o=new $.default(i);e.set("offsetPath",o.d),e.saveObj("offsetPath",o)}else e.set(n,i)}),this}},{key:"serialize",value:function(){var t=this.attrs;delete t.id;var e=this.get("offsetAngle");null!=e&&(t.offsetAngle=e);var r=this.get("offsetPoint");return null!=r&&(t.offsetPoint=r),(0,C.default)(t)}},{key:"resetOffset",value:function(){var t=this.get("offsetPath"),e=this.offsetDistance;if(t){var r=this.loadObj("offsetPath");r?t=r:(t=new $.default(t),this.saveObj("offsetPath",t))}if(null!=t){var n=e*t.getTotalLength(),i=t.getPointAtLength(n),o=(0,z.default)(i,2),a=o[0],u=o[1],s=this.offsetRotate;if("auto"===s||"reverse"===s){"reverse"===s&&0===n&&(n=1);var l=t.getPointAtLength("auto"===s?n+1:n-1),f=(0,z.default)(l,2),c=f[0],h=f[1];s=c===a&&h===u?this.get("offsetAngle"):180*Math.atan2(h-u,c-a)/Math.PI,"reverse"===this.offsetRotate&&(s=-s)}var d=this.get("offsetAngle");d&&(this.rotate-=d),this.set("offsetAngle",s),this.rotate+=s;var p=this.get("offsetPoint");p&&(this.pos=[this.x-p[0],this.y-p[1]]),this.set("offsetPoint",[a,u]),this.pos=[this.x+a,this.y+u]}}},{key:"attrs",get:function(){var t=this,e={};return this.__attributeNames.forEach(function(r){r in t[rt]?(0,E.default)(e,r,t[rt][r]):e[r]=t[r]}),e}},{key:"subject",get:function(){return this[tt]}},{key:"id",set:function(t){return this.quietSet("id",String(t))}},{key:"name",set:function(t){return this.quietSet("name",String(t))}},{key:"anchor",set:function(t){this.set("anchor",t)}},{key:"display",set:function(t){this.set("display",t)}},{key:"x",set:function(t){this.set("x",t)}},{key:"y",set:function(t){this.set("y",t)}},{key:"pos",set:function(t){null==t&&(t=[0,0]);var e=t,r=(0,z.default)(e,2),n=r[0],i=r[1];this.x=n,this.y=i}},{key:"bgcolor",set:function(t){this.clearCache(),this.set("bgcolor",t)}},{key:"opacity",set:function(t){this.set("opacity",t)}},{key:"width",set:function(t){this.clearCache(),this.set("width",t)}},{key:"height",set:function(t){this.clearCache(),this.set("height",t)}},{key:"size",set:function(t){null==t&&(t=["",""]);var e=t,r=(0,z.default)(e,2),n=r[0],i=r[1];this.width=n,this.height=i}},{key:"border",set:function(t){this.clearCache(),"number"==typeof t||"string"==typeof t?t={width:parseFloat(t)}:Array.isArray(t)?t={width:parseFloat(t[0]),color:(0,X.parseColorString)(t[1]||"#000")}:(t.width=parseFloat(t.width),t.color=(0,X.parseColorString)(t.color||"#000")),t=(0,N.default)({width:1,color:(0,X.parseColorString)("#000"),style:"solid"},t),this.set("border",t)}},{key:"padding",set:function(t){this.clearCache(),this.set("padding",t)}},{key:"borderRadius",set:function(t){this.clearCache(),this.set("borderRadius",t)}},{key:"dashOffset",set:function(t){this.clearCache(),this.set("dashOffset",t)}},{key:"transform",set:function(t){var e=this;if((0,N.default)(this[Q],{rotate:0,scale:[1,1],translate:[0,0],skew:[0,0]}),Array.isArray(t))this.set("transformMatrix",t),this.set("transform","matrix("+t+")");else{this.set("transformMatrix",[1,0,0,1,0,0]);var r=[];(0,L.default)(t).forEach(function(t){var n=(0,z.default)(t,2),i=n[0],o=n[1];"matrix"===i&&Array.isArray(o)?e.set("transformMatrix",new J.Matrix(o).m):e[i]=o,r.push(i+"("+o+")")}),this.set("transform",r.join(" "))}}},{key:"transformOrigin",set:function(t){this.set("transformOrigin",t)}},{key:"rotate",set:function(t){var e=this.get("rotate")-t;this.set("rotate",t);var r=new J.Matrix(this.get("transformMatrix")).rotate(-e);this.set("transformMatrix",r.m)}},{key:"scale",set:function(t){t=(0,X.oneOrTwoValues)(t).map(function(t){return Math.abs(t)>.001?t:1/t>0?.001:-.001});var e=this.get("scale")||[1,1],r=[t[0]/e[0],t[1]/e[1]];this.set("scale",t);var n=this.get("offsetAngle");n&&(this.rotate-=n);var i=new J.Matrix(this.get("transformMatrix"));i.scale.apply(i,r),this.set("transformMatrix",i.m),n&&(this.rotate+=n)}},{key:"translate",set:function(t){var e=this.get("translate")||[0,0],r=[t[0]-e[0],t[1]-e[1]];this.set("translate",t);var n=new J.Matrix(this.get("transformMatrix"));n.translate.apply(n,r),this.set("transformMatrix",n.m)}},{key:"skew",set:function(t){var e,r,n=this.get("skew")||[0,0],i=(e=new J.Matrix).skew.apply(e,(0,M.default)(n)).inverse();this.set("skew",t);var o=new J.Matrix(this.get("transformMatrix"));(r=o.multiply(i)).skew.apply(r,(0,M.default)(t)),this.set("transformMatrix",o.m)}},{key:"zIndex",set:function(t){this.set("zIndex",t)}},{key:"linearGradients",set:function(t){this.gradients=t}},{key:"gradients",set:function(t){this.clearCache(),this.set("gradients",t)}},{key:"offsetPath",set:function(t){var e=new $.default(t);this.set("offsetPath",e.d),this.saveObj("offsetPath",e),this.resetOffset()}},{key:"offsetDistance",set:function(t){this.set("offsetDistance",t),this.resetOffset()}},{key:"offsetRotate",set:function(t){"string"==typeof t&&"auto"!==t&&"reverse"!==t&&(t=parseFloat(t)),this.set("offsetRotate",t),this.resetOffset()}},{key:"filter",set:function(t){this.set("filter",t)}},{key:"shadow",set:function(t){this.set("shadow",t)}}]),t}(),K(_.prototype,"id",[X.attr],(0,w.default)(_.prototype,"id"),_.prototype),K(_.prototype,"name",[X.attr],(0,w.default)(_.prototype,"name"),_.prototype),K(_.prototype,"anchor",[i,X.attr],(0,w.default)(_.prototype,"anchor"),_.prototype),K(_.prototype,"display",[X.attr],(0,w.default)(_.prototype,"display"),_.prototype),K(_.prototype,"x",[o,X.attr],(0,w.default)(_.prototype,"x"),_.prototype),K(_.prototype,"y",[a,X.attr],(0,w.default)(_.prototype,"y"),_.prototype),K(_.prototype,"pos",[u,X.attr],(0,w.default)(_.prototype,"pos"),_.prototype),K(_.prototype,"bgcolor",[s,X.attr],(0,w.default)(_.prototype,"bgcolor"),_.prototype),K(_.prototype,"opacity",[X.attr],(0,w.default)(_.prototype,"opacity"),_.prototype),K(_.prototype,"width",[l,X.attr],(0,w.default)(_.prototype,"width"),_.prototype),K(_.prototype,"height",[f,X.attr],(0,w.default)(_.prototype,"height"),_.prototype),K(_.prototype,"size",[c,X.attr],(0,w.default)(_.prototype,"size"),_.prototype),K(_.prototype,"border",[X.attr],(0,w.default)(_.prototype,"border"),_.prototype),K(_.prototype,"padding",[h,X.attr],(0,w.default)(_.prototype,"padding"),_.prototype),K(_.prototype,"borderRadius",[d,X.attr],(0,w.default)(_.prototype,"borderRadius"),_.prototype),K(_.prototype,"dashOffset",[p,X.attr],(0,w.default)(_.prototype,"dashOffset"),_.prototype),K(_.prototype,"transform",[v,X.attr],(0,w.default)(_.prototype,"transform"),_.prototype),K(_.prototype,"transformOrigin",[X.attr],(0,w.default)(_.prototype,"transformOrigin"),_.prototype),K(_.prototype,"rotate",[y,X.attr],(0,w.default)(_.prototype,"rotate"),_.prototype),K(_.prototype,"scale",[g,X.attr],(0,w.default)(_.prototype,"scale"),_.prototype),K(_.prototype,"translate",[X.attr],(0,w.default)(_.prototype,"translate"),_.prototype),K(_.prototype,"skew",[X.attr],(0,w.default)(_.prototype,"skew"),_.prototype),K(_.prototype,"zIndex",[X.attr],(0,w.default)(_.prototype,"zIndex"),_.prototype),K(_.prototype,"linearGradients",[m,X.attr],(0,w.default)(_.prototype,"linearGradients"),_.prototype),K(_.prototype,"gradients",[X.attr],(0,w.default)(_.prototype,"gradients"),_.prototype),K(_.prototype,"offsetPath",[X.attr],(0,w.default)(_.prototype,"offsetPath"),_.prototype),K(_.prototype,"offsetDistance",[b,X.attr],(0,w.default)(_.prototype,"offsetDistance"),_.prototype),K(_.prototype,"offsetRotate",[X.attr],(0,w.default)(_.prototype,"offsetRotate"),_.prototype),K(_.prototype,"filter",[X.attr],(0,w.default)(_.prototype,"filter"),_.prototype),K(_.prototype,"shadow",[X.attr],(0,w.default)(_.prototype,"shadow"),_.prototype),_);e.default=nt},function(t,e,r){"use strict";function n(t,e,r,n){e=e.map(function(t,e){return e<2?t-1:t+1});var i=(0,u.boxIntersect)(e,[0,0,r,n]);if(i){var o=(0,u.boxToRect)(i);t.rect.apply(t,(0,a.default)(o))}}function i(t,e){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=t.canvas,o=i.width,a=i.height;t.beginPath();for(var s=0;s<e.length;s++){var l=e[s],f=l.renderBox;if(n(t,f,o,a),r){var c=l.lastRenderBox;c&&!(0,u.boxEqual)(c,f)&&n(t,c,o,a)}}t.clip()}Object.defineProperty(e,"__esModule",{value:!0});var o=r(6),a=function(t){return t&&t.__esModule?t:{default:t}}(o);e.clearDirtyRect=n,e.clearDirtyRects=i;var u=r(14)},function(t,e,r){"use strict";var n="'([^']+)'|\"([^\"]+)\"|[\\w-]+",i=new RegExp("(bold|bolder|lighter|[1-9]00) +","i"),o=new RegExp("(italic|oblique) +","i"),a=new RegExp("(small-caps) +","i"),u=new RegExp("(ultra-condensed|extra-condensed|condensed|semi-condensed|semi-expanded|expanded|extra-expanded|ultra-expanded) +","i"),s=new RegExp("([\\d\\.]+)(px|pt|pc|in|cm|mm|%|em|ex|ch|rem|q|vw|vh) *((?:"+n+")( *, *(?:"+n+"))*)"),l={};t.exports=function t(e,r){if(null==r)if("undefined"!=typeof window&&window.getComputedStyle){var n=window.getComputedStyle(document.documentElement).fontSize;r=t(n+" Arial",16).size}else r=16;if(l[e])return l[e];var f=s.exec(e);if(f){var c={weight:"normal",style:"normal",stretch:"normal",variant:"normal",size:parseFloat(f[1]),unit:f[2],family:f[3].replace(/["']/g,"").replace(/ *, */g,",")},h=void 0,d=void 0,p=void 0,v=void 0,y=e.substring(0,f.index);switch((h=i.exec(y))&&(c.weight=h[1]),(d=o.exec(y))&&(c.style=d[1]),(p=a.exec(y))&&(c.variant=p[1]),(v=u.exec(y))&&(c.stretch=v[1]),c.unit){case"pt":c.size/=.75;break;case"pc":c.size*=16;break;case"in":c.size*=96;break;case"cm":c.size*=96/2.54;break;case"mm":c.size*=96/25.4;break;case"%":break;case"em":case"rem":c.size*=r/.75;break;case"q":c.size*=96/25.4/4}if("vw"===c.unit){if("undefined"!=typeof document&&document.documentElement){var g=document.documentElement.clientWidth;c.size=g*c.size/100}}else if("vh"===c.unit&&"undefined"!=typeof document&&document.documentElement){var m=document.documentElement.clientHeight;c.size=m*c.size/100}return l[e]=c}}},function(t,e,r){"use strict";function n(t){var e=t[0][0],r=t[0][1],n=e,i=r;return t.forEach(function(t){var o=t[0],a=t[2],u=t[4],s=t[6],l=t[1],f=t[3],c=t[5],h=t[7];e=Math.min(e,o,a,u,s),r=Math.min(r,l,f,c,h),n=Math.max(n,o,a,u,s),i=Math.max(i,l,f,c,h)}),[e,r,n,i]}function i(t,e){return Math.sqrt(Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2))+Math.sqrt(Math.pow(t[2]-e[2],2)+Math.pow(t[3]-e[3],2))}function o(t,e){var r=t[0],n=t[2],i=t[4],o=t[6],a=t[1],u=t[3],s=t[5],l=t[7],f=e[0],c=e[2],h=e[4],d=e[6],p=e[1],v=e[3],y=e[5],g=e[7];return Math.sqrt(Math.pow(f-r,2)+Math.pow(p-a,2))+Math.sqrt(Math.pow(c-n,2)+Math.pow(v-u,2))+Math.sqrt(Math.pow(h-i,2)+Math.pow(y-s,2))+Math.sqrt(Math.pow(d-o,2)+Math.pow(g-l,2))}function a(t,e){var r=s(t.length),n=[];r.forEach(function(r){var i=0,a=0;r.forEach(function(r){i+=o(t[r],e[a++])}),n.push({index:r,distance:i})}),n.sort(function(t,e){return t.distance-e.distance});var i=[];return n[0].index.forEach(function(e){i.push(t[e])}),i}function u(t,e){var r=l(t.length),o=[];r.forEach(function(r){var a=0;r.forEach(function(r){a+=i(n(t[r]),n(e[r]))}),o.push({index:r,distance:a})}),o.sort(function(t,e){return t.distance-e.distance});var a=[];return o[0].index.forEach(function(e){a.push(t[e])}),a}function s(t){for(var e=[],r=0;r<t;r++){for(var n=[],i=0;i<t;i++){var o=i+r;o>t-1&&(o-=t),n[o]=i}e.push(n)}return e}function l(t){for(var e=[],r=0;r<t;r++)e.push(r);return f(e)}function f(t){function e(t){var i=void 0,o=void 0;for(i=0;i<t.length;i++)o=t.splice(i,1)[0],n.push(o),0===t.length&&r.push(n.slice()),e(t),t.splice(i,0,o),n.pop();return r}var r=[],n=[];return e(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.sort=u,e.sortCurves=a},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function i(t){if(!t.context)return"";var e=t.text,r=t.attr("font"),n=t.attr("lineHeight"),i=e.split(/\n/),o=0,a=0;i.forEach(function(e){var i=D(t,e,r,n),u=(0,E.default)(i,2),s=u[0],l=u[1];o=Math.max(o,s),a+=l}),t[L]=[o,a]}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o,a,u,s,l,f,c=r(15),h=n(c),d=r(26),p=n(d),v=r(11),y=n(v),g=r(4),m=n(g),b=r(5),_=n(b),x=r(17),w=n(x),k=r(16),M=n(k),S=r(1),E=n(S),T=r(3),C=n(T),O=r(44),P=n(O),j=r(14),A=r(30),R=r(37),z=r(31),I=r(236),L=(0,C.default)("boxSize"),D=function(t,e,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",i=t.context;if(!i)return[0,0];i.save(),i.font=r;var o=i.measureText(e),a=o.width;return i.restore(),[a,n||1.2*I(r).size].map(Math.round)},N=(o=(0,j.parseValue)(parseFloat),a=(0,j.parseValue)(j.parseColorString),u=(0,j.parseValue)(j.parseColorString),s=function(t){function e(t){(0,m.default)(this,e);var r=(0,w.default)(this,(e.__proto__||(0,y.default)(e)).call(this,t));return r.setDefault({font:"16px Arial",textAlign:"left",strokeColor:"",fillColor:"",lineHeight:"",text:""},{color:function(){return this.fillColor}}),r}return(0,M.default)(e,t),(0,_.default)(e,[{key:"text",set:function(t){this.clearCache(),t=String(t),delete this.subject[L],this.set("text",t),i(this.subject)}},{key:"font",set:function(t){this.clearCache(),delete this.subject[L],this.set("font",t),i(this.subject)}},{key:"lineHeight",set:function(t){this.clearCache(),delete this.subject[L],this.set("lineHeight",t),i(this.subject)}},{key:"textAlign",set:function(t){this.clearCache(),this.set("textAlign",t),i(this.subject)}},{key:"color",set:function(t){this.fillColor=t}},{key:"strokeColor",set:function(t){this.clearCache(),this.set("strokeColor",t)}},{key:"fillColor",set:function(t){this.clearCache(),this.set("fillColor",t)}}]),e}(P.default.Attr),z(s.prototype,"text",[j.attr],(0,p.default)(s.prototype,"text"),s.prototype),z(s.prototype,"font",[j.attr],(0,p.default)(s.prototype,"font"),s.prototype),z(s.prototype,"lineHeight",[o,j.attr],(0,p.default)(s.prototype,"lineHeight"),s.prototype),z(s.prototype,"textAlign",[j.attr],(0,p.default)(s.prototype,"textAlign"),s.prototype),z(s.prototype,"color",[j.attr],(0,p.default)(s.prototype,"color"),s.prototype),z(s.prototype,"strokeColor",[a,j.attr],(0,p.default)(s.prototype,"strokeColor"),s.prototype),z(s.prototype,"fillColor",[u,j.attr],(0,p.default)(s.prototype,"fillColor"),s.prototype),s),F=(f=l=function(t){function e(t){return(0,m.default)(this,e),"string"==typeof t&&(t={text:t}),(0,w.default)(this,(e.__proto__||(0,y.default)(e)).call(this,t))}return(0,M.default)(e,t),(0,_.default)(e,[{key:"render",value:function(t,r){var n=this;(0,h.default)(e.prototype.__proto__||(0,y.default)(e.prototype),"render",this).call(this,t,r);var i=this.attr("textAlign"),o=this.attr("font"),a=this.attr("lineHeight");if(this.text){var u=(0,E.default)(this.contentSize,2),s=u[0],l=u[1];(this.textboxSize[0]>s||this.textboxSize[1]>l)&&(r.beginPath(),r.rect(0,0,s,l),r.clip()),r.font=o;var f=this.text.split(/\n/);r.textBaseline="top";var c=i;r.textBaseline="middle";var d=(0,R.findColor)(r,this,"strokeColor");d&&(r.strokeStyle=d);var p=(0,R.findColor)(r,this,"fillColor");d||p||(p=(0,j.parseColorString)("black")),p&&(r.fillStyle=p);var v=0,g=0,m=this.contentSize[0];f.forEach(function(t){var e=D(n,t,o,a),i=(0,E.default)(e,2),u=i[0],s=i[1];"center"===c?g+=(m-u)/2:"right"===c&&(g+=m-u),p&&r.fillText(t,g,v+s/2),d&&r.strokeText(t,g,v+s/2),v+=s})}}},{key:"text",set:function(t){this.attr("text",t)},get:function(){return this.attr("text")}},{key:"textboxSize",get:function(){return this[L]||i(this),this[L]}},{key:"contentSize",get:function(){var t=this.attr("size"),e=(0,E.default)(t,2),r=e[0],n=e[1];return""===r||""===n?this.textboxSize||[0,0]:[r,n]}}]),e}(P.default),l.Attr=N,f);e.default=F,(0,A.registerNodeType)("label",F)},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(6),o=n(i),a=r(8),u=n(a),s=r(22),l=n(s),f=r(49),c=n(f),h=r(11),d=n(h),p=r(4),v=n(p),y=r(5),g=n(y),m=r(17),b=n(m),_=r(15),x=n(_),w=r(16),k=n(w),M=r(3),S=n(M),E=r(83),T=n(E),C=r(123),O=n(C),P=r(125),j=n(P),A=r(57),R=r(120),z=r(30),I=r(235),L=r(14),D=r(126),N=n(D),F=(0,S.default)("children"),V=(0,S.default)("updateSet"),B=(0,S.default)("zOrder"),q=(0,S.default)("tRecord"),U=(0,S.default)("timeline"),G=(0,S.default)("renderDeferrer"),H=(0,S.default)("drawTask"),W=(0,S.default)("autoRender"),J=(0,S.default)("adjustTimer"),X=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.context,n=t.handleEvent,i=void 0===n||n,o=t.evaluateFPS,a=void 0!==o&&o,u=t.renderMode,s=void 0===u?"repaintAll":u,l=t.autoRender,f=void 0===l||l;(0,v.default)(this,e);var h=(0,b.default)(this,(e.__proto__||(0,d.default)(e)).call(this));return h.handleEvent=i,h.evaluateFPS=a,h[W]=f,h.renderMode=s,h.outputContext=r,r.canvas&&r.canvas.addEventListener&&r.canvas.addEventListener("DOMNodeRemovedFromDocument",function(){h.timeline.clear(),h.clear()}),h[F]=[],h[V]=new c.default,h[B]=0,h[q]=[],h[U]=new A.Timeline,h[G]=null,h}return(0,k.default)(e,t),(0,g.default)(e,[{key:"clearContext",value:function(t){if(t.canvas){var e=t.canvas,r=e.width,n=e.height;t.clearRect(0,0,r,n)}}},{key:"remove",value:function(){for(var t=this,e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];return 0===r.length?((0,L.setDeprecation)("layer.remove()","Instead use layer.clear()."),this.clear()):r.map(function(e){return t.removeChild(e)})}},{key:"prepareRender",value:function(){var t=this;return this[G]||(this[G]={},this[G].promise=new l.default(function(e,r){(0,u.default)(t[G],{resolve:e,reject:r}),t.autoRender&&(t[H]=(0,R.requestAnimationFrame)(function(){delete t[H],t.draw()}))})),this[G]?this[G].promise:l.default.resolve()}},{key:"draw",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.evaluateFPS&&(this[q].push(Date.now()),this[q]=this[q].slice(-10));var r=void 0;if("repaintDirty"===this.renderMode)r=this.renderRepaintDirty.bind(this);else{if("repaintAll"!==this.renderMode)throw new Error("unknown render mode!");r=this.renderRepaintAll.bind(this)}var n=this.timeline.currentTime;r(n,t),(0,x.default)(e.prototype.__proto__||(0,d.default)(e.prototype),"dispatchEvent",this).call(this,"update",{target:this,timeline:this.timeline,renderTime:n},!0),this[G]&&(this[H]&&((0,R.cancelAnimationFrame)(this[H]),delete this[H]),this[G].resolve(),this[G]=null)}},{key:"update",value:function(t){t&&this[V].has(t)||(t&&this[V].add(t),this.prepareRender())}},{key:"isVisible",value:function(){return!this.canvas||this.canvas.width>0&&this.canvas.height>0}},{key:"isNodeVisible",value:function(t){return!!t.isVisible()&&t.parent===this}},{key:"drawSprites",value:function(t,e){for(var r=0;r<t.length;r++){var n=t[r];if(n.parent===this){var i=this.isNodeVisible(n);i?(n.draw(e),"repaintDirty"===this.renderMode?n.lastRenderBox=n.renderBox:n.lastRenderBox="no-calc"):delete n.lastRenderBox,n.isDirty&&(n.isDirty=!1,n.dispatchEvent("update",{target:n,renderTime:e,isVisible:i},!0,!0))}}}},{key:"renderRepaintAll",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=this[F],n=this.outputContext;e&&this.clearContext(n),this.drawSprites(r,t),this[V].clear()}},{key:"renderRepaintDirty",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=[].concat((0,o.default)(this[V]));if(r.some(function(t){return!!t.attr("filter")||t.isVirtual||"no-calc"===t.lastRenderBox}))return this.renderRepaintAll(t,e);var n=this.outputContext,i=this[F];n.save(),n.beginPath(),(0,I.clearDirtyRects)(n,r,!0),e&&this.clearContext(n),this.drawSprites(i,t),n.restore(),this[V].clear()}},{key:"pointCollision",value:function(t){if(this.outputContext.canvas){var e=t.layerX,r=t.layerY,n=this.outputContext.canvas,i=n.width,o=n.height;return null==e&&null==r||e>=0&&r>=0&&e<i&&r<o}return!0}},{key:"dispatchEvent",value:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!i||0!==this.getEventHandlers(t).length){if(!i&&!r.terminated&&"mouseenter"!==t&&"mouseleave"!==t){var o=n||this.pointCollision(r);if(o){for(var a=this[F].slice(0).reverse(),u=[],s=0;s<a.length;s++){var l=a[s];if(l.dispatchEvent(t,r,n,i)&&u.push(l),r.terminated&&!r.type.startsWith("mouse"))break}return r.targetSprites=u,r.terminated=!1,(0,x.default)(e.prototype.__proto__||(0,d.default)(e.prototype),"dispatchEvent",this).call(this,t,r,o,i)}}return(0,x.default)(e.prototype.__proto__||(0,d.default)(e.prototype),"dispatchEvent",this).call(this,t,r,n,i)}}},{key:"connect",value:function(t,r,n){return(0,x.default)(e.prototype.__proto__||(0,d.default)(e.prototype),"connect",this).call(this,t,r),this.zIndex=n,t&&t.container&&t.container.appendChild(this.outputContext.canvas),this}},{key:"disconnect",value:function(t){return this.canvas&&this.canvas.remove&&this.canvas.remove(),(0,x.default)(e.prototype.__proto__||(0,d.default)(e.prototype),"disconnect",this).call(this,t)}},{key:"group",value:function(){var t=new j.default;return t.append.apply(t,arguments),this.appendChild(t),t}},{key:"batch",value:function(){for(var t=this,e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];r.forEach(function(e){e.layer!==t&&t.appendChild(e)});var i=new O.default(this);return i.add.apply(i,r),i}},{key:"adjust",value:function(t){var e=this;if(!(arguments.length>1&&void 0!==arguments[1])||arguments[1]){var r=this.outputContext,n=this.adjustContext||r.canvas.cloneNode().getContext("2d");this[J]?clearTimeout(this[J]):(this.autoRender=!1,n.clearRect(0,0,n.canvas.width,n.canvas.height),n._clearTag=!1,n.drawImage(r.canvas,0,0),this.adjustContext=n),this[J]=setTimeout(function(){e.autoRender=!0,delete e[J]},100),n.canvas.width>0&&n.canvas.height>0&&(this.clearContext(r),r.save(),t.call(this,r),r.drawImage(n.canvas,0,0),r.restore())}}},{key:"clearUpdate",value:function(){this[V].clear()}},{key:"autoRender",set:function(t){this[W]=t,t&&this.draw()},get:function(){return this[W]}},{key:"layer",get:function(){return this}},{key:"children",get:function(){return this[F]}},{key:"timeline",get:function(){return this[U]}},{key:"context",get:function(){return this.outputContext}},{key:"canvas",get:function(){return this.outputContext.canvas}},{key:"offset",get:function(){return[0,0]}},{key:"fps",get:function(){if(!this.evaluateFPS)return NaN;var t=0,e=this[q].slice(-10),r=e.length;return r<=5?NaN:(e.reduceRight(function(e,r,n){return t+=e-r,r}),Math.round(1e3*(r-1)/t))}}]),e}(T.default);e.default=X,(0,u.default)(X.prototype,N.default),(0,z.registerNodeType)("layer",X,!0)},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i,o,a,u,s,l,f=r(6),c=n(f),h=r(1),d=n(h),p=r(15),v=n(p),y=r(26),g=n(y),m=r(8),b=n(m),_=r(11),x=n(_),w=r(4),k=n(w),M=r(5),S=n(M),E=r(17),T=n(E),C=r(16),O=n(C),P=r(44),j=n(P),A=r(37),R=r(14),z=r(127),I=r(30),L=r(31),D=(i=(0,R.parseValue)(parseFloat),o=(0,R.parseValue)(parseFloat),a=(0,R.deprecate)("Instead use strokeColor."),u=function(t){function e(t){(0,k.default)(this,e);var r=(0,T.default)(this,(e.__proto__||(0,x.default)(e)).call(this,t));return r.setDefault({lineWidth:1,lineDash:null,lineDashOffset:0,lineCap:"butt",lineJoin:"miter",strokeColor:"",fillColor:""},{color:function(){return this.strokeColor},d:function(){return this.path?this.path.d:null}}),r}return(0,O.default)(e,t),(0,S.default)(e,[{key:"path",set:function(t){this.clearCache(),t?(t="string"==typeof t?{d:t}:t,this.subject.svg=(0,z.createSvgPath)(t),this.set("path",t)):(this.subject.svg=null,this.set("path",null))}},{key:"d",set:function(t){if(t){var e=this.get("path");this.path=e?(0,b.default)(e,{d:t}):{d:t}}else this.path=null}},{key:"lineWidth",set:function(t){this.clearCache(),this.set("lineWidth",Math.round(t))}},{key:"lineDash",set:function(t){this.clearCache(),this.set("lineDash",t)}},{key:"lineDashOffset",set:function(t){this.clearCache(),this.set("lineDashOffset",t)}},{key:"lineCap",set:function(t){this.clearCache(),this.set("lineCap",t)}},{key:"lineJoin",set:function(t){this.clearCache(),this.set("lineJoin",t)}},{key:"strokeColor",set:function(t){this.clearCache(),this.set("strokeColor",(0,R.parseColorString)(t))}},{key:"fillColor",set:function(t){this.clearCache(),this.set("fillColor",(0,R.parseColorString)(t))}},{key:"color",set:function(t){this.strokeColor=t}}]),e}(j.default.Attr),L(u.prototype,"path",[R.attr],(0,g.default)(u.prototype,"path"),u.prototype),L(u.prototype,"d",[R.attr],(0,g.default)(u.prototype,"d"),u.prototype),L(u.prototype,"lineWidth",[i,R.attr],(0,g.default)(u.prototype,"lineWidth"),u.prototype),L(u.prototype,"lineDash",[R.attr],(0,g.default)(u.prototype,"lineDash"),u.prototype),L(u.prototype,"lineDashOffset",[o,R.attr],(0,g.default)(u.prototype,"lineDashOffset"),u.prototype),L(u.prototype,"lineCap",[R.attr],(0,g.default)(u.prototype,"lineCap"),u.prototype),L(u.prototype,"lineJoin",[R.attr],(0,g.default)(u.prototype,"lineJoin"),u.prototype),L(u.prototype,"strokeColor",[R.attr],(0,g.default)(u.prototype,"strokeColor"),u.prototype),L(u.prototype,"fillColor",[R.attr],(0,g.default)(u.prototype,"fillColor"),u.prototype),L(u.prototype,"color",[a,R.attr],(0,g.default)(u.prototype,"color"),u.prototype),u),N=(l=s=function(t){function e(t){return(0,k.default)(this,e),"string"==typeof t&&(t={d:t}),(0,T.default)(this,(e.__proto__||(0,x.default)(e)).call(this,t))}return(0,O.default)(e,t),(0,S.default)(e,[{key:"getPointAtLength",value:function(t){return this.svg?this.svg.getPointAtLength(t):[0,0]}},{key:"getPathLength",value:function(){return this.svg?this.svg.getTotalLength():0}},{key:"findPath",value:function(t,e){var r=this.originalRect,n=this.pathOffset;return this.svg&&this.svg.isPointInPath(t-r[0]-n[0],e-r[1]-n[1])?[this.svg]:[]}},{key:"pointCollision",value:function(t){if((0,v.default)(e.prototype.__proto__||(0,x.default)(e.prototype),"pointCollision",this).call(this,t)){var r=t.offsetX,n=t.offsetY,i=this.svg;if(i){var o=i.bounds;r+=Math.min(0,o[0]),n+=Math.min(0,o[1])}return t.targetPaths=this.findPath(r,n),!0}return!1}},{key:"render",value:function(t,r){(0,v.default)(e.prototype.__proto__||(0,x.default)(e.prototype),"render",this).call(this,t,r);var n=this.attr("d"),i=this.attr("lineWidth"),o=this.attr("lineCap"),a=this.attr("lineJoin"),u=this.attr("lineDash");if(n){var s=this.svg,l=(0,d.default)(s.bounds,4),f=l[0],h=l[1],p=l[2],y=l[3],g=(0,d.default)(this.contentSize,2),m=g[0],b=g[1];if((m<p||b<y)&&(r.beginPath(),r.rect(0,0,m,b),r.clip()),(f<0||h<0)&&r.translate(-Math.min(0,f),-Math.min(0,h)),r.translate.apply(r,(0,c.default)(this.pathOffset)),s.beginPath().to(r),r.lineWidth=i,r.lineCap=o,r.lineJoin=a,null!=u){r.setLineDash(u);var _=this.attr("lineDashOffset");r.lineDashOffset=_}var w=(0,A.findColor)(r,this,"fillColor");w&&(r.fillStyle=w);var k=(0,A.findColor)(r,this,"strokeColor");k||w||(k=(0,R.parseColorString)("black")),k&&(r.strokeStyle=k),w&&r.fill(),k&&r.stroke()}}},{key:"path",set:function(t){this.attr("path",t)},get:function(){return this.attr("path")}},{key:"lineWidth",get:function(){var t=this.attr("lineWidth"),e=this.attr("gradients"),r=this.attr("fillColor"),n=this.attr("strokeColor"),i=n||e&&e.strokeColor,o=r||e&&e.fillColor;return!i&&o?0:t}},{key:"pathOffset",get:function(){var t=Math.round(this.lineWidth);return[t,t]}},{key:"pathSize",get:function(){return this.svg?this.svg.size:[0,0]}},{key:"contentSize",get:function(){if(!this.svg)return(0,v.default)(e.prototype.__proto__||(0,x.default)(e.prototype),"contentSize",this);var t=this.svg.bounds,r=this.attr("size"),n=(0,d.default)(r,2),i=n[0],o=n[1],a=this.pathOffset;return""===i&&(i=t[2]-Math.min(0,t[0])+2*a[0]),""===o&&(o=t[3]-Math.min(0,t[1])+2*a[1]),[i,o]}},{key:"originalRect",get:function(){var t=this.svg;if(t){var r=t.bounds,n=this.pathOffset,i=(0,d.default)(this.offsetSize,2),o=i[0],a=i[1],u=this.attr("anchor"),s=(0,d.default)(u,2),l=s[0],f=s[1],c=[0,0,o,a],h=Math.min(0,r[0]),p=Math.min(0,r[1]);return c[0]=h-n[0]-l*(o+h-2*n[0]),c[1]=p-n[1]-f*(a+p-2*n[1]),c}return(0,v.default)(e.prototype.__proto__||(0,x.default)(e.prototype),"originalRect",this)}}]),e}(j.default),s.Attr=D,l);e.default=N,N.setAttributeEffects({d:z.pathEffect,path:function(t,e,r,n,i){return t=(0,z.createSvgPath)(t),e=(0,z.createSvgPath)(e),(0,z.pathEffect)(t.d,e.d,r,n,i)}}),(0,I.registerNodeType)("path",N)},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i,o,a,u=r(60),s=n(u),l=r(6),f=n(l),c=r(1),h=n(c),d=r(25),p=n(d),v=r(15),y=n(v),g=r(26),m=n(g),b=r(11),_=n(b),x=r(4),w=n(x),k=r(5),M=n(k),S=r(17),E=n(S),T=r(16),C=n(T),O=r(3),P=n(O),j=r(44),A=n(j),R=r(124),z=n(R),I=r(14),L=r(30),D=r(37),N=r(31),F=(0,P.default)("_texturesCache"),V=(0,P.default)("_images"),B=(i=function(t){function e(t){(0,w.default)(this,e);var r=(0,E.default)(this,(e.__proto__||(0,_.default)(e)).call(this,t));return r.setDefault({textures:[]}),r}return(0,C.default)(e,t),(0,M.default)(e,[{key:"loadTextures",value:function(t){var e=this.subject,r=0,n=0;return e.images=t.map(function(t){var e=t.image,i=t.rect,o=t.srcRect,a=void 0,u=void 0;return i?(a=i[2]+i[0],u=i[3]+i[1]):o?(a=o[2],u=o[3]):(a=e.width,u=e.height),r<a&&(r=a),n<u&&(n=u),delete t.image,e}),e.texturesSize=[r,n],t}},{key:"textures",set:function(t){Array.isArray(t)||(t=[t]),t=t.map(function(t){return t.image||(t={image:t}),t}),this.loadTextures(t),this.set("textures",t)}}]),e}(A.default.Attr),N(i.prototype,"textures",[I.attr],(0,m.default)(i.prototype,"textures"),i.prototype),i),q=(a=o=function(t){function e(t){(0,w.default)(this,e),t&&t.constructor!==Object&&(t={textures:[t]});var r=(0,E.default)(this,(e.__proto__||(0,_.default)(e)).call(this));return r[F]=new p.default,t&&r.attr(t),r}return(0,C.default)(e,t),(0,M.default)(e,[{key:"cloneNode",value:function(){var t=this,r=(0,y.default)(e.prototype.__proto__||(0,_.default)(e.prototype),"cloneNode",this).call(this);return this.images&&(r.textures=this.textures.map(function(e,r){return e.image=t.images[r],e})),r}},{key:"pointCollision",value:function(t){var r=this;if((0,y.default)(e.prototype.__proto__||(0,_.default)(e.prototype),"pointCollision",this).call(this,t)){var n=this.textures;if(n){var i=t.offsetX,o=t.offsetY;t.targetTextures=[];var a=this.attr("anchor"),u=(0,h.default)(a,2),s=u[0],l=u[1],c=(0,h.default)(this.contentSize,2),d=c[0],p=c[1];i+=d*s,o+=p*l,n.forEach(function(e){var n=e.rect||[0,0].concat((0,f.default)(r.innerSize)),a=(0,h.default)(n,4),u=a[0],s=a[1],l=a[2],c=a[3];i>=u&&i-u<l&&o>=s&&o-s<c&&t.targetTextures.push(e)})}return!0}return!1}},{key:"render",value:function(t,r){var n=this;(0,y.default)(e.prototype.__proto__||(0,_.default)(e.prototype),"render",this).call(this,t,r),!(this.attr("bgcolor")||this.attr("gradients").bgcolor)&&this.textures.length<=1&&(this.cachePriority=0);var i=this.textures,o=!1;this.images&&this.images.length&&i.forEach(function(t,e){var i=n.images[e],a=(0,h.default)(n.contentSize,2),u=a[0],s=a[1],l=t.rect||[0,0,u,s],c=t.srcRect;if(!o&&t.rect&&(l[2]-l[0]>u||l[3]-l[1]>s)&&(o=!0,r.beginPath(),r.rect(0,0,u,s),r.clip()),r.save(),t.filter){(0,I.setDeprecation)("texture.filter","Instead use sprite.attr({filter}).");var d=c?[0,0,c[2],c[3]]:[0,0,i.width,i.height],p=l[2]/d[2],v=l[3]/d[3];r.filter=z.default.compile(t.filter),c?r.drawImage.apply(r,[i].concat((0,f.default)(c),[p*d[0]+l[0],v*d[1]+l[1],p*c[2],v*c[3]])):r.drawImage(i,p*d[0]+l[0],v*d[1]+l[1],p*i.width,v*i.height)}else c?r.drawImage.apply(r,[i].concat((0,f.default)(c),(0,f.default)(l))):r.drawImage.apply(r,[i].concat((0,f.default)(l)));r.restore()})}},{key:"images",set:function(t){this[V]=t},get:function(){return this[V]}},{key:"textures",set:function(t){this.attr("textures",t)},get:function(){return this.attr("textures")}},{key:"contentSize",get:function(){var t=this.attr("size"),e=(0,h.default)(t,2),r=e[0],n=e[1],i=this.texturesSize||[0,0];return""===r&&(r=0|i[0]),""===n&&(n=0|i[1]),[r,n]}},{key:"cache",set:function(t){if(null==t)return D.cacheContextPool.put.apply(D.cacheContextPool,(0,f.default)(this[F].values())),void this[F].clear();var e=(0,s.default)(this.textures),r=this[F];r.has(e)||r.set(e,t)},get:function(){var t=(0,s.default)(this.textures),e=this[F];return e.has(t)?e.get(t):null}}]),e}(A.default),o.Attr=B,a);e.default=q,(0,L.registerNodeType)("sprite",q)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){t=t||[1,0,0,1,0,0],this.m=[t[0],t[1],t[2],t[3],t[4],t[5]]};n.prototype.unit=function(){return this.m=[1,0,0,1,0,0],this},n.prototype.multiply=function(t){var e=this.m,r=void 0;r=t instanceof n?t.m:t;var i=e[0]*r[0]+e[2]*r[1],o=e[1]*r[0]+e[3]*r[1],a=e[0]*r[2]+e[2]*r[3],u=e[1]*r[2]+e[3]*r[3],s=e[0]*r[4]+e[2]*r[5]+e[4],l=e[1]*r[4]+e[3]*r[5]+e[5];return e[0]=i,e[1]=o,e[2]=a,e[3]=u,e[4]=s,e[5]=l,this},n.prototype.inverse=function(){var t=new n(this.m),e=t.m,r=1/(e[0]*e[3]-e[1]*e[2]),i=e[3]*r,o=-e[1]*r,a=-e[2]*r,u=e[0]*r,s=r*(e[2]*e[5]-e[3]*e[4]),l=r*(e[1]*e[4]-e[0]*e[5]);return e[0]=i,e[1]=o,e[2]=a,e[3]=u,e[4]=s,e[5]=l,t},n.prototype.translate=function(t,e){return this.multiply([1,0,0,1,t,e])},n.prototype.rotate=function(t){var e=t*Math.PI/180,r=Math.cos(e),n=Math.sin(e);return this.multiply([r,n,-n,r,0,0])},n.prototype.skew=function(t,e){e|=0;var r=t*Math.PI/180,n=e*Math.PI/180,i=Math.tan(r),o=Math.tan(n);return this.multiply([1,o,i,1,0,0])},n.prototype.scale=function(t,e){return this.multiply([t,0,0,e,0,0])},n.prototype.transformPoint=function(t,e){var r=t,n=e;return t=r*this.m[0]+n*this.m[2]+this.m[4],e=r*this.m[1]+n*this.m[3]+this.m[5],[t,e]},n.prototype.transformVector=function(t,e){var r=t,n=e;return t=r*this.m[0]+n*this.m[2],e=r*this.m[1]+n*this.m[3],[t,e]},e.default=n},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),o=n(i),a=r(4),u=n(a),s=r(5),l=n(s),f=function(){function t(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[0,0,0];(0,u.default)(this,t);var n=(0,o.default)(e,3),i=n[0],a=n[1],s=n[2],l=(0,o.default)(r,3),f=l[0],c=l[1],h=l[2];s=s||0,h=h||0,this.x=i-f,this.y=a-c,this.z=s-h}return(0,l.default)(t,[{key:"unit",value:function(){var e=this.length;return new t([this.x/e,this.y/e,this.z/e])}},{key:"dot",value:function(t){return this.x*t.x+this.y*t.y+this.z*t.z}},{key:"cross",value:function(e){var r=this.x,n=this.y,i=this.z,o=e.x,a=e.y,u=e.z;return new t([n*u-i*a,i*o-r*u,r*a-o*n])}},{key:"length",get:function(){var t=this.x,e=this.y,r=this.z;return Math.sqrt(t*t+e*e+r*r)}}]),t}();e.default=f},function(t,e,r){"use strict";(function(t){function n(){if("undefined"!=typeof performance&&performance.now)return performance.now();if(void 0!==t&&t.hrtime){var e=t.hrtime(),r=(0,a.default)(e,2);return 1e3*r[0]+1e-6*r[1]}return Date.now?Date.now():(new Date).getTime()}function i(t){return"number"==typeof t?t={delay:t}:"entropy"in t&&(t={delay:t.entropy,isEntropy:!0}),t}Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),a=function(t){return t&&t.__esModule?t:{default:t}}(o);e.nowtime=n,e.formatDelay=i}).call(e,r(56))},function(t,e,r){"use strict";function n(t,e,r){if(t.__attributeNames=t.__attributeNames||[],t.__attributeNames.push(e),r.get){var n=r.get;r.get=function(){var t=n.call(this);return null==t&&(t=this.get(e)),t}}else r.get=function(){return this.get(e)};var i=r.set;return r.set=function(t){this.__clearCacheTag=!1,this.__updateTag=!1,i.call(this,t),this.subject&&this.__updateTag&&this.subject.forceUpdate(this.__clearCacheTag),delete this.__updateTag,delete this.__clearCacheTag},r}function i(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";e="[Deprecation] "+t+" has been deprecated."+e,(0,s.notice)(e)}function o(){function t(t,e,r){if(a=a||t.constructor.name+"#"+e,"function"==typeof r.value){var n=r.value;r.value=function(){i(a,o);for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];return n.apply(this,e)}}if(r.set){var u=r.set;r.set=function(t){return i(a,o),u.call(this,t)}}if(r.get){var s=r.get;r.get=function(){return i(a,o),s.call(this)}}}for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];var o="",a="";return 1===r.length?(o=r[0],t):2===r.length?(a=r[0],o=r[1],t):t.apply(void 0,r)}function a(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(t,r,n){var i=n.set;return n.set=function(t){t=e.reduce(function(t,e){return e(t)},t),i.call(this,t)},n}}function u(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(t,r,n){var i=n.get;n.get=function(t){return t=i.call(this),t=e.reduce(function(t,e){return e(t)},t)}}}Object.defineProperty(e,"__esModule",{value:!0}),e.attr=n,e.setDeprecation=i,e.deprecate=o,e.parseValue=a,e.resolveValue=u;var s=r(129)},function(t,e,r){"use strict";function n(t,e,r,n){var i=t*n-e*r<0?-1:1,o=t*r+e*n;return o>1&&(o=1),o<-1&&(o=-1),i*Math.acos(o)}function i(t,e,r,i,o,u,s,l,f,c){var h=c*(t-r)/2+f*(e-i)/2,d=-f*(t-r)/2+c*(e-i)/2,p=s*s,v=l*l,y=h*h,g=d*d,m=p*v-p*g-v*y;m<0&&(m=0),m/=p*g+v*y,m=Math.sqrt(m)*(o===u?-1:1);var b=m*s/l*d,_=m*-l/s*h,x=c*b-f*_+(t+r)/2,w=f*b+c*_+(e+i)/2,k=(h-b)/s,M=(d-_)/l,S=(-h-b)/s,E=(-d-_)/l,T=n(1,0,k,M),C=n(k,M,S,E);return 0===u&&C>0&&(C-=a),1===u&&C<0&&(C+=a),[x,w,T,C]}function o(t,e){var r=4/3*Math.tan(e/4),n=Math.cos(t),i=Math.sin(t),o=Math.cos(t+e),a=Math.sin(t+e);return[n,i,n-i*r,i+n*r,o+a*r,a-o*r,o,a]}var a=2*Math.PI;t.exports=function(t,e,r,n,u,s,l,f,c){var h=Math.sin(c*a/360),d=Math.cos(c*a/360),p=d*(t-r)/2+h*(e-n)/2,v=-h*(t-r)/2+d*(e-n)/2;if(0===p&&0===v)return[];if(0===l||0===f)return[];l=Math.abs(l),f=Math.abs(f);var y=p*p/(l*l)+v*v/(f*f);y>1&&(l*=Math.sqrt(y),f*=Math.sqrt(y));var g=i(t,e,r,n,u,s,l,f,h,d),m=[],b=g[2],_=g[3],x=Math.max(Math.ceil(Math.abs(_)/(a/4)),1);_/=x;for(var w=0;w<x;w++)m.push(o(b,_)),b+=_;return m.map(function(t){for(var e=0;e<t.length;e+=2){var r=t[e+0],n=t[e+1];r*=l,n*=f;var i=d*r-h*n,o=h*r+d*n;t[e+0]=i+g[0],t[e+1]=o+g[1]}return t})}},function(t,e,r){"use strict";function n(t){var e=0,r=0,n=0,i=0;return t.map(function(t){t=t.slice();var o=t[0],a=o.toUpperCase();if(o!=a)switch(t[0]=a,o){case"a":t[6]+=n,t[7]+=i;break;case"v":t[1]+=i;break;case"h":t[1]+=n;break;default:for(var u=1;u<t.length;)t[u++]+=n,t[u++]+=i}switch(a){case"Z":n=e,i=r;break;case"H":n=t[1];break;case"V":i=t[1];break;case"M":n=e=t[1],i=r=t[2];break;default:n=t[t.length-2],i=t[t.length-1]}return t})}t.exports=n},function(t,e,r){"use strict";t.exports=function(t){return"string"==typeof t&&(t=t.trim(),!!(/^[mzlhvcsqta]\s*[-+.0-9][^mlhvzcsqta]+/i.test(t)&&/[\dz]$/i.test(t)&&t.length>4))}},function(t,e,r){"use strict";function n(t){for(var e,r=[],n=0,a=0,l=0,f=0,c=null,h=null,d=0,p=0,v=0,y=t.length;v<y;v++){var g=t[v],m=g[0];switch(m){case"M":l=g[1],f=g[2];break;case"A":var b=s(d,p,g[6],g[7],g[4],g[5],g[1],g[2],g[3]);if(!b.length)continue;b=b.map(function(t){var e=(0,u.default)(t,8);e[0],e[1];return{x1:e[2],y1:e[3],x2:e[4],y2:e[5],x:e[6],y:e[7]}});for(var _,x=0;x<b.length;x++)_=b[x],g=["C",_.x1,_.y1,_.x2,_.y2,_.x,_.y],x<b.length-1&&r.push(g);break;case"S":var w=d,k=p;"C"!=e&&"S"!=e||(w+=w-n,k+=k-a),g=["C",w,k,g[1],g[2],g[3],g[4]];break;case"T":"Q"==e||"T"==e?(c=2*d-c,h=2*p-h):(c=d,h=p),g=o(d,p,c,h,g[1],g[2]);break;case"Q":c=g[1],h=g[2],g=o(d,p,g[1],g[2],g[3],g[4]);break;case"L":g=i(d,p,g[1],g[2]);break;case"H":g=i(d,p,g[1],p);break;case"V":g=i(d,p,d,g[1]);break;case"Z":g=i(d,p,l,f)}e=m,d=g[g.length-2],p=g[g.length-1],g.length>4?(n=g[g.length-4],a=g[g.length-3]):(n=d,a=p),r.push(g)}return r}function i(t,e,r,n){return["C",t,e,r,n,r,n]}function o(t,e,r,n,i,o){return["C",t/3+2/3*r,e/3+2/3*n,i/3+2/3*r,o/3+2/3*n,i,o]}var a=r(1),u=function(t){return t&&t.__esModule?t:{default:t}}(a);t.exports=n;var s=r(246)},function(t,e,r){"use strict";function n(t){var e=[];return t.replace(a,function(t,r,n){var a=r.toLowerCase();for(n=i(n),"m"==a&&n.length>2&&(e.push([r].concat(n.splice(0,2))),a="l",r="m"==r?"l":"L");;){if(n.length==o[a])return n.unshift(r),e.push(n);if(n.length<o[a])throw new Error("malformed path data");e.push([r].concat(n.splice(0,o[a])))}}),e}function i(t){var e=t.match(u);return e?e.map(Number):[]}t.exports=n;var o={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},a=/([astvzqmhlc])([^astvzqmhlc]*)/gi,u=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi},function(t,e,r){"use strict";function n(t){var e=document.createElementNS("http://www.w3.org/2000/svg","path");return e.setAttribute("d",t),e}function i(t,e){var r=n(t),i=r.getPointAtLength(e);return[i.x,i.y]}function o(t,e){return n(t).getTotalLength(e)}function a(t,e,r){var n=t.d,i=new Path2D(n);return document.createElement("canvas").getContext("2d").isPointInPath(i,e,r)}Object.defineProperty(e,"__esModule",{value:!0}),e.getPointAtLength=i,e.getTotalLength=o,e.isPointInPath=a}])});