30 lines
811 KiB
JavaScript
30 lines
811 KiB
JavaScript
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=511)}([function(e,t,n){"use strict";e.exports=n(505)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ReactCSS=t.loop=t.handleActive=t.handleHover=t.hover=void 0;var r=l(n(446)),o=l(n(373)),i=l(n(348)),a=l(n(347)),s=l(n(346)),u=l(n(345));function l(e){return e&&e.__esModule?e:{default:e}}t.hover=a.default,t.handleHover=a.default,t.handleActive=s.default,t.loop=u.default;var c=t.ReactCSS=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];var s=(0,r.default)(n),u=(0,o.default)(e,s);return(0,i.default)(u)};t.default=c},function(e,t,n){"use strict";"function"==typeof Symbol&&Symbol.iterator;e.exports=n(492)()},function(e,t,n){"use strict";t.__esModule=!0;t.VERSION="4.7.3",t.PI_2=2*Math.PI,t.RAD_TO_DEG=180/Math.PI,t.DEG_TO_RAD=Math.PI/180,t.RENDERER_TYPE={UNKNOWN:0,WEBGL:1,CANVAS:2},t.BLEND_MODES={NORMAL:0,ADD:1,MULTIPLY:2,SCREEN:3,OVERLAY:4,DARKEN:5,LIGHTEN:6,COLOR_DODGE:7,COLOR_BURN:8,HARD_LIGHT:9,SOFT_LIGHT:10,DIFFERENCE:11,EXCLUSION:12,HUE:13,SATURATION:14,COLOR:15,LUMINOSITY:16,NORMAL_NPM:17,ADD_NPM:18,SCREEN_NPM:19},t.DRAW_MODES={POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6},t.SCALE_MODES={LINEAR:0,NEAREST:1},t.WRAP_MODES={CLAMP:0,REPEAT:1,MIRRORED_REPEAT:2},t.GC_MODES={AUTO:0,MANUAL:1},t.URL_FILE_EXTENSION=/\.(\w{3,4})(?:$|\?|#)/i,t.DATA_URI=/^\s*data:(?:([\w-]+)\/([\w+.-]+))?(?:;(charset=[\w-]+|base64))?,(.*)/i,t.SVG_SIZE=/<svg[^>]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*>/i,t.SHAPES={POLY:0,RECT:1,CIRC:2,ELIP:3,RREC:4},t.PRECISION={LOW:"lowp",MEDIUM:"mediump",HIGH:"highp"},t.TRANSFORM_MODE={STATIC:0,DYNAMIC:1},t.TEXT_GRADIENT={LINEAR_VERTICAL:0,LINEAR_HORIZONTAL:1},t.UPDATE_PRIORITY={INTERACTION:50,HIGH:25,NORMAL:0,LOW:-25,UTILITY:-50}},function(e,t,n){"use strict";t.__esModule=!0,t.autoDetectRenderer=t.Application=t.Filter=t.SpriteMaskFilter=t.Quad=t.RenderTarget=t.ObjectRenderer=t.WebGLManager=t.Shader=t.CanvasRenderTarget=t.TextureUvs=t.VideoBaseTexture=t.BaseRenderTexture=t.RenderTexture=t.BaseTexture=t.TextureMatrix=t.Texture=t.Spritesheet=t.CanvasGraphicsRenderer=t.GraphicsRenderer=t.GraphicsData=t.Graphics=t.TextMetrics=t.TextStyle=t.Text=t.SpriteRenderer=t.CanvasTinter=t.CanvasSpriteRenderer=t.Sprite=t.TransformBase=t.TransformStatic=t.Transform=t.Container=t.DisplayObject=t.Bounds=t.glCore=t.WebGLRenderer=t.CanvasRenderer=t.ticker=t.utils=t.settings=void 0;var r=n(3);Object.keys(r).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}})});var o=n(9);Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}})});var i=n(10);Object.defineProperty(t,"glCore",{enumerable:!0,get:function(){return Y(i).default}});var a=n(60);Object.defineProperty(t,"Bounds",{enumerable:!0,get:function(){return Y(a).default}});var s=n(122);Object.defineProperty(t,"DisplayObject",{enumerable:!0,get:function(){return Y(s).default}});var u=n(30);Object.defineProperty(t,"Container",{enumerable:!0,get:function(){return Y(u).default}});var l=n(120);Object.defineProperty(t,"Transform",{enumerable:!0,get:function(){return Y(l).default}});var c=n(121);Object.defineProperty(t,"TransformStatic",{enumerable:!0,get:function(){return Y(c).default}});var d=n(58);Object.defineProperty(t,"TransformBase",{enumerable:!0,get:function(){return Y(d).default}});var f=n(56);Object.defineProperty(t,"Sprite",{enumerable:!0,get:function(){return Y(f).default}});var h=n(259);Object.defineProperty(t,"CanvasSpriteRenderer",{enumerable:!0,get:function(){return Y(h).default}});var p=n(52);Object.defineProperty(t,"CanvasTinter",{enumerable:!0,get:function(){return Y(p).default}});var y=n(256);Object.defineProperty(t,"SpriteRenderer",{enumerable:!0,get:function(){return Y(y).default}});var v=n(240);Object.defineProperty(t,"Text",{enumerable:!0,get:function(){return Y(v).default}});var m=n(106);Object.defineProperty(t,"TextStyle",{enumerable:!0,get:function(){return Y(m).default}});var g=n(105);Object.defineProperty(t,"TextMetrics",{enumerable:!0,get:function(){return Y(g).default}});var b=n(238);Object.defineProperty(t,"Graphics",{enumerable:!0,get:function(){return Y(b).default}});var _=n(104);Object.defineProperty(t,"GraphicsData",{enumerable:!0,get:function(){return Y(_).default}});var x=n(236);Object.defineProperty(t,"GraphicsRenderer",{enumerable:!0,get:function(){return Y(x).default}});var w=n(229);Object.defineProperty(t,"CanvasGraphicsRenderer",{enumerable:!0,get:function(){return Y(w).default}});var E=n(228);Object.defineProperty(t,"Spritesheet",{enumerable:!0,get:function(){return Y(E).default}});var S=n(16);Object.defineProperty(t,"Texture",{enumerable:!0,get:function(){return Y(S).default}});var T=n(108);Object.defineProperty(t,"TextureMatrix",{enumerable:!0,get:function(){return Y(T).default}});var O=n(23);Object.defineProperty(t,"BaseTexture",{enumerable:!0,get:function(){return Y(O).default}});var C=n(53);Object.defineProperty(t,"RenderTexture",{enumerable:!0,get:function(){return Y(C).default}});var P=n(113);Object.defineProperty(t,"BaseRenderTexture",{enumerable:!0,get:function(){return Y(P).default}});var M=n(116);Object.defineProperty(t,"VideoBaseTexture",{enumerable:!0,get:function(){return Y(M).default}});var k=n(115);Object.defineProperty(t,"TextureUvs",{enumerable:!0,get:function(){return Y(k).default}});var A=n(112);Object.defineProperty(t,"CanvasRenderTarget",{enumerable:!0,get:function(){return Y(A).default}});var R=n(27);Object.defineProperty(t,"Shader",{enumerable:!0,get:function(){return Y(R).default}});var I=n(28);Object.defineProperty(t,"WebGLManager",{enumerable:!0,get:function(){return Y(I).default}});var D=n(38);Object.defineProperty(t,"ObjectRenderer",{enumerable:!0,get:function(){return Y(D).default}});var j=n(36);Object.defineProperty(t,"RenderTarget",{enumerable:!0,get:function(){return Y(j).default}});var N=n(107);Object.defineProperty(t,"Quad",{enumerable:!0,get:function(){return Y(N).default}});var L=n(110);Object.defineProperty(t,"SpriteMaskFilter",{enumerable:!0,get:function(){return Y(L).default}});var F=n(109);Object.defineProperty(t,"Filter",{enumerable:!0,get:function(){return Y(F).default}});var B=n(103);Object.defineProperty(t,"Application",{enumerable:!0,get:function(){return Y(B).default}});var U=n(102);Object.defineProperty(t,"autoDetectRenderer",{enumerable:!0,get:function(){return U.autoDetectRenderer}});var H=V(n(5)),W=V(n(54)),z=Y(n(7)),X=Y(n(29)),G=Y(n(37));function V(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function Y(e){return e&&e.__esModule?e:{default:e}}t.settings=z.default,t.utils=H,t.ticker=W,t.CanvasRenderer=X.default,t.WebGLRenderer=G.default},function(e,t,n){"use strict";t.__esModule=!0,t.premultiplyBlendMode=t.BaseTextureCache=t.TextureCache=t.earcut=t.mixins=t.pluginTarget=t.EventEmitter=t.removeItems=t.isMobile=void 0,t.uid=function(){return++p},t.hex2rgb=function(e,t){return(t=t||[])[0]=(e>>16&255)/255,t[1]=(e>>8&255)/255,t[2]=(255&e)/255,t},t.hex2string=function(e){return e=e.toString(16),"#"+(e="000000".substr(0,6-e.length)+e)},t.rgb2hex=function(e){return(255*e[0]<<16)+(255*e[1]<<8)+(255*e[2]|0)},t.getResolutionOfUrl=function(e,t){var n=o.default.RETINA_PREFIX.exec(e);if(n)return parseFloat(n[1]);return void 0!==t?t:1},t.decomposeDataUri=function(e){var t=r.DATA_URI.exec(e);if(t)return{mediaType:t[1]?t[1].toLowerCase():void 0,subType:t[2]?t[2].toLowerCase():void 0,encoding:t[3]?t[3].toLowerCase():void 0,data:t[4]};return},t.getUrlFileExtension=function(e){var t=r.URL_FILE_EXTENSION.exec(e);if(t)return t[1].toLowerCase();return},t.getSvgSize=function(e){var t=r.SVG_SIZE.exec(e),n={};t&&(n[t[1]]=Math.round(parseFloat(t[3])),n[t[5]]=Math.round(parseFloat(t[7])));return n},t.skipHello=function(){y=!0},t.sayHello=function(e){if(y)return;if(navigator.userAgent.toLowerCase().indexOf("chrome")>-1){var t=["\n %c %c %c PixiJS "+r.VERSION+" - ✰ "+e+" ✰ %c %c http://www.pixijs.com/ %c %c ♥%c♥%c♥ \n\n","background: #ff66a5; padding:5px 0;","background: #ff66a5; padding:5px 0;","color: #ff66a5; background: #030307; padding:5px 0;","background: #ff66a5; padding:5px 0;","background: #ffc3dc; padding:5px 0;","background: #ff66a5; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;"];window.console.log.apply(console,t)}else window.console&&window.console.log("PixiJS "+r.VERSION+" - "+e+" - http://www.pixijs.com/");y=!0},t.isWebGLSupported=function(){var e={stencil:!0,failIfMajorPerformanceCaveat:!0};try{if(!window.WebGLRenderingContext)return!1;var t=document.createElement("canvas"),n=t.getContext("webgl",e)||t.getContext("experimental-webgl",e),r=!(!n||!n.getContextAttributes().stencil);if(n){var o=n.getExtension("WEBGL_lose_context");o&&o.loseContext()}return n=null,r}catch(e){return!1}},t.sign=function(e){return 0===e?0:e<0?-1:1},t.destroyTextureCache=function(){var e=void 0;for(e in v)v[e].destroy();for(e in m)m[e].destroy()},t.clearTextureCache=function(){var e=void 0;for(e in v)delete v[e];for(e in m)delete m[e]},t.correctBlendMode=function(e,t){return g[t?1:0][e]},t.premultiplyTint=function(e,t){if(1===t)return(255*t<<24)+e;if(0===t)return 0;var n=e>>16&255,r=e>>8&255,o=255&e;return(255*t<<24)+((n=n*t+.5|0)<<16)+((r=r*t+.5|0)<<8)+(o=o*t+.5|0)},t.premultiplyRgba=function(e,t,n,r){n=n||new Float32Array(4),r||void 0===r?(n[0]=e[0]*t,n[1]=e[1]*t,n[2]=e[2]*t):(n[0]=e[0],n[1]=e[1],n[2]=e[2]);return n[3]=t,n},t.premultiplyTintToRgba=function(e,t,n,r){(n=n||new Float32Array(4))[0]=(e>>16&255)/255,n[1]=(e>>8&255)/255,n[2]=(255&e)/255,(r||void 0===r)&&(n[0]*=t,n[1]*=t,n[2]*=t);return n[3]=t,n};var r=n(3),o=h(n(7)),i=h(n(18)),a=h(n(270)),s=f(n(269)),u=f(n(59)),l=h(n(268)),c=h(n(267)),d=h(n(57));function f(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function h(e){return e&&e.__esModule?e:{default:e}}var p=0,y=!1;t.isMobile=u,t.removeItems=l.default,t.EventEmitter=i.default,t.pluginTarget=a.default,t.mixins=s,t.earcut=d.default;var v=t.TextureCache=Object.create(null),m=t.BaseTextureCache=Object.create(null);var g=t.premultiplyBlendMode=(0,c.default)()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(344);Object.defineProperty(t,"Alpha",{enumerable:!0,get:function(){return d(r).default}});var o=n(138);Object.defineProperty(t,"Checkboard",{enumerable:!0,get:function(){return d(o).default}});var i=n(341);Object.defineProperty(t,"EditableInput",{enumerable:!0,get:function(){return d(i).default}});var a=n(340);Object.defineProperty(t,"Hue",{enumerable:!0,get:function(){return d(a).default}});var s=n(338);Object.defineProperty(t,"Raised",{enumerable:!0,get:function(){return d(s).default}});var u=n(337);Object.defineProperty(t,"Saturation",{enumerable:!0,get:function(){return d(u).default}});var l=n(136);Object.defineProperty(t,"ColorWrap",{enumerable:!0,get:function(){return d(l).default}});var c=n(330);function d(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"Swatch",{enumerable:!0,get:function(){return d(c).default}})},function(e,t,n){"use strict";t.__esModule=!0;var r=i(n(272)),o=i(n(271));function i(e){return e&&e.__esModule?e:{default:e}}t.default={TARGET_FPMS:.06,MIPMAP_TEXTURES:!0,RESOLUTION:1,FILTER_RESOLUTION:1,SPRITE_MAX_TEXTURES:(0,r.default)(32),SPRITE_BATCH_SIZE:4096,RETINA_PREFIX:/@([0-9\.]+)x/,RENDER_OPTIONS:{view:null,antialias:!1,forceFXAA:!1,autoResize:!1,transparent:!1,backgroundColor:0,clearBeforeRender:!0,preserveDrawingBuffer:!1,roundPixels:!1,width:800,height:600,legacy:!1},TRANSFORM_MODE:0,GC_MODE:0,GC_MAX_IDLE:3600,GC_MAX_CHECK_COUNT:600,WRAP_MODE:0,SCALE_MODE:0,PRECISION_VERTEX:"highp",PRECISION_FRAGMENT:"mediump",CAN_UPLOAD_SAME_BUFFER:(0,o.default)(),MESH_CANVAS_PADDING:0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.connect=t.connectAdvanced=t.createProvider=t.Provider=void 0;var r=n(493),o=s(r),i=s(n(181)),a=s(n(487));function s(e){return e&&e.__esModule?e:{default:e}}t.Provider=o.default,t.createProvider=r.createProvider,t.connectAdvanced=i.default,t.connect=a.default},function(e,t,n){"use strict";t.__esModule=!0;var r=n(64);Object.defineProperty(t,"Point",{enumerable:!0,get:function(){return f(r).default}});var o=n(133);Object.defineProperty(t,"ObservablePoint",{enumerable:!0,get:function(){return f(o).default}});var i=n(63);Object.defineProperty(t,"Matrix",{enumerable:!0,get:function(){return f(i).default}});var a=n(132);Object.defineProperty(t,"GroupD8",{enumerable:!0,get:function(){return f(a).default}});var s=n(282);Object.defineProperty(t,"Circle",{enumerable:!0,get:function(){return f(s).default}});var u=n(281);Object.defineProperty(t,"Ellipse",{enumerable:!0,get:function(){return f(u).default}});var l=n(280);Object.defineProperty(t,"Polygon",{enumerable:!0,get:function(){return f(l).default}});var c=n(62);Object.defineProperty(t,"Rectangle",{enumerable:!0,get:function(){return f(c).default}});var d=n(279);function f(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"RoundedRectangle",{enumerable:!0,get:function(){return f(d).default}})},function(e,t,n){"use strict";var r={createContext:n(278),setVertexAttribArrays:n(131),GLBuffer:n(277),GLFramebuffer:n(276),GLShader:n(275),GLTexture:n(130),VertexArrayObject:n(274),shader:n(273)};void 0!==e&&e.exports&&(e.exports=r),"undefined"!=typeof window&&(window.PIXI=window.PIXI||{},window.PIXI.glCore=r)},function(e,t,n){"use strict";var r=Array.isArray;e.exports=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.red=void 0;var r=i(n(332)),o=i(n(172));function i(e){return e&&e.__esModule?e:{default:e}}t.default={simpleCheckForValidColor:function(e){var t=0,n=0;return(0,r.default)(["r","g","b","a","h","s","l","v"],function(r){if(e[r]&&(t+=1,isNaN(e[r])||(n+=1),"s"===r||"l"===r)){/^\d+%$/.test(e[r])&&(n+=1)}}),t===n&&e},toState:function(e,t){var n=e.hex?(0,o.default)(e.hex):(0,o.default)(e),r=n.toHsl(),i=n.toHsv(),a=n.toRgb(),s=n.toHex();return 0===r.s&&(r.h=t||0,i.h=t||0),{hsl:r,hex:"000000"===s&&0===a.a?"transparent":"#"+s,rgb:a,hsv:i,oldHue:e.h||t||r.h,source:e.source}},isValidHex:function(e){var t="#"===String(e).charAt(0)?1:0;return e.length!==4+t&&e.length<7+t&&(0,o.default)(e).isValid()},getContrastingColor:function(e){if(!e)return"#fff";var t=this.toState(e);return"transparent"===t.hex?"rgba(0,0,0,0.4)":(299*t.rgb.r+587*t.rgb.g+114*t.rgb.b)/1e3>=128?"#000":"#fff"}};t.red={hsl:{a:1,h:0,l:.5,s:1},hex:"#ff0000",rgb:{r:255,g:0,b:0,a:1},hsv:{h:0,s:1,v:1,a:1}}},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=n(171),i="object"==("undefined"==typeof self?"undefined":r(self))&&self&&self.Object===Object&&self,a=o||i||Function("return this")();e.exports=a},function(e,t,n){"use strict";(function(e){function n(e,t){for(var n=0,r=e.length-1;r>=0;r--){var o=e[r];"."===o?e.splice(r,1):".."===o?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}var r=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,o=function(e){return r.exec(e).slice(1)};function i(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r<e.length;r++)t(e[r],r,e)&&n.push(e[r]);return n}t.resolve=function(){for(var t="",r=!1,o=arguments.length-1;o>=-1&&!r;o--){var a=o>=0?arguments[o]:e.cwd();if("string"!=typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(t=a+"/"+t,r="/"===a.charAt(0))}return t=n(i(t.split("/"),function(e){return!!e}),!r).join("/"),(r?"/":"")+t||"."},t.normalize=function(e){var r=t.isAbsolute(e),o="/"===a(e,-1);return(e=n(i(e.split("/"),function(e){return!!e}),!r).join("/"))||r||(e="."),e&&o&&(e+="/"),(r?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(i(e,function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))},t.relative=function(e,n){function r(e){for(var t=0;t<e.length&&""===e[t];t++);for(var n=e.length-1;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var o=r(e.split("/")),i=r(n.split("/")),a=Math.min(o.length,i.length),s=a,u=0;u<a;u++)if(o[u]!==i[u]){s=u;break}var l=[];for(u=s;u<o.length;u++)l.push("..");return(l=l.concat(i.slice(s))).join("/")},t.sep="/",t.delimiter=":",t.dirname=function(e){var t=o(e),n=t[0],r=t[1];return n||r?(r&&(r=r.substr(0,r.length-1)),n+r):"."},t.basename=function(e,t){var n=o(e)[2];return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},t.extname=function(e){return o(e)[3]};var a="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(this,n(253))},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};e.exports=function(e){var t=void 0===e?"undefined":r(e);return null!=e&&("object"==t||"function"==t)}},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.__esModule=!0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=f(n(23)),a=f(n(116)),s=f(n(115)),u=f(n(18)),l=n(9),c=n(5),d=f(n(7));function f(e){return e&&e.__esModule?e:{default:e}}var h=function(e){function t(n,o,i,a,s){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var u=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":r(t))&&"function"!=typeof t?e:t}(this,e.call(this));if(u.noFrame=!1,o||(u.noFrame=!0,o=new l.Rectangle(0,0,1,1)),n instanceof t&&(n=n.baseTexture),u.baseTexture=n,u._frame=o,u.trim=a,u.valid=!1,u.requiresUpdate=!1,u._uvs=null,u.orig=i||o,u._rotate=Number(s||0),!0===s)u._rotate=2;else if(u._rotate%2!=0)throw new Error("attempt to use diamond-shaped UVs. If you are sure, set rotation manually");return n.hasLoaded?(u.noFrame&&(o=new l.Rectangle(0,0,n.width,n.height),n.on("update",u.onBaseTextureUpdated,u)),u.frame=o):n.once("loaded",u.onBaseTextureLoaded,u),u._updateID=0,u.transform=null,u.textureCacheIds=[],u}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":r(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.update=function(){this.baseTexture.update()},t.prototype.onBaseTextureLoaded=function(e){this._updateID++,this.noFrame?this.frame=new l.Rectangle(0,0,e.width,e.height):this.frame=this._frame,this.baseTexture.on("update",this.onBaseTextureUpdated,this),this.emit("update",this)},t.prototype.onBaseTextureUpdated=function(e){this._updateID++,this._frame.width=e.width,this._frame.height=e.height,this.emit("update",this)},t.prototype.destroy=function(e){this.baseTexture&&(e&&(c.TextureCache[this.baseTexture.imageUrl]&&t.removeFromCache(this.baseTexture.imageUrl),this.baseTexture.destroy()),this.baseTexture.off("update",this.onBaseTextureUpdated,this),this.baseTexture.off("loaded",this.onBaseTextureLoaded,this),this.baseTexture=null),this._frame=null,this._uvs=null,this.trim=null,this.orig=null,this.valid=!1,t.removeFromCache(this),this.textureCacheIds=null},t.prototype.clone=function(){return new t(this.baseTexture,this.frame,this.orig,this.trim,this.rotate)},t.prototype._updateUvs=function(){this._uvs||(this._uvs=new s.default),this._uvs.set(this._frame,this.baseTexture,this.rotate),this._updateID++},t.fromImage=function(e,n,r,o){var a=c.TextureCache[e];return a||(a=new t(i.default.fromImage(e,n,r,o)),t.addToCache(a,e)),a},t.fromFrame=function(e){var t=c.TextureCache[e];if(!t)throw new Error('The frameId "'+e+'" does not exist in the texture cache');return t},t.fromCanvas=function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"canvas";return new t(i.default.fromCanvas(e,n,r))},t.fromVideo=function(e,n){return"string"==typeof e?t.fromVideoUrl(e,n):new t(a.default.fromVideo(e,n))},t.fromVideoUrl=function(e,n){return new t(a.default.fromUrl(e,n))},t.from=function(e){if("string"==typeof e){var n=c.TextureCache[e];return n||(null!==e.match(/\.(mp4|webm|ogg|h264|avi|mov)$/)?t.fromVideoUrl(e):t.fromImage(e))}return e instanceof HTMLImageElement?new t(i.default.from(e)):e instanceof HTMLCanvasElement?t.fromCanvas(e,d.default.SCALE_MODE,"HTMLCanvasElement"):e instanceof HTMLVideoElement?t.fromVideo(e):e instanceof i.default?new t(e):e},t.fromLoader=function(e,n,r){var o=new i.default(e,void 0,(0,c.getResolutionOfUrl)(n)),a=new t(o);return o.imageUrl=n,r||(r=n),i.default.addToCache(a.baseTexture,r),t.addToCache(a,r),r!==n&&(i.default.addToCache(a.baseTexture,n),t.addToCache(a,n)),a},t.addToCache=function(e,t){t&&(-1===e.textureCacheIds.indexOf(t)&&e.textureCacheIds.push(t),c.TextureCache[t]&&console.warn("Texture added to the cache with an id ["+t+"] that already had an entry"),c.TextureCache[t]=e)},t.removeFromCache=function(e){if("string"==typeof e){var t=c.TextureCache[e];if(t){var n=t.textureCacheIds.indexOf(e);return n>-1&&t.textureCacheIds.splice(n,1),delete c.TextureCache[e],t}}else if(e&&e.textureCacheIds){for(var r=0;r<e.textureCacheIds.length;++r)c.TextureCache[e.textureCacheIds[r]]===e&&delete c.TextureCache[e.textureCacheIds[r]];return e.textureCacheIds.length=0,e}return null},o(t,[{key:"frame",get:function(){return this._frame},set:function(e){this._frame=e,this.noFrame=!1;var t=e.x,n=e.y,r=e.width,o=e.height,i=t+r>this.baseTexture.width,a=n+o>this.baseTexture.height;if(i||a){var s=i&&a?"and":"or",u="X: "+t+" + "+r+" = "+(t+r)+" > "+this.baseTexture.width,l="Y: "+n+" + "+o+" = "+(n+o)+" > "+this.baseTexture.height;throw new Error("Texture Error: frame does not fit inside the base Texture dimensions: "+u+" "+s+" "+l)}this.valid=r&&o&&this.baseTexture.hasLoaded,this.trim||this.rotate||(this.orig=e),this.valid&&this._updateUvs()}},{key:"rotate",get:function(){return this._rotate},set:function(e){this._rotate=e,this.valid&&this._updateUvs()}},{key:"width",get:function(){return this.orig.width}},{key:"height",get:function(){return this.orig.height}}]),t}(u.default);function p(e){e.destroy=function(){},e.on=function(){},e.once=function(){},e.emit=function(){}}t.default=h,h.EMPTY=new h(new i.default),p(h.EMPTY),p(h.EMPTY.baseTexture),h.WHITE=function(){var e=document.createElement("canvas");e.width=10,e.height=10;var t=e.getContext("2d");return t.fillStyle="white",t.fillRect(0,0,10,10),new h(new i.default(e))}(),p(h.WHITE),p(h.WHITE.baseTexture)},function(e,t,n){"use strict";var r=n(161),o=n(431),i=n(375),a=n(11);e.exports=function(e,t){return(a(e)?r:i)(e,o(t,3))}},function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,o="~";function i(){}function a(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function s(){this._events=new i,this._eventsCount=0}Object.create&&(i.prototype=Object.create(null),(new i).__proto__||(o=!1)),s.prototype.eventNames=function(){var e,t,n=[];if(0===this._eventsCount)return n;for(t in e=this._events)r.call(e,t)&&n.push(o?t.slice(1):t);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(e)):n},s.prototype.listeners=function(e,t){var n=o?o+e:e,r=this._events[n];if(t)return!!r;if(!r)return[];if(r.fn)return[r.fn];for(var i=0,a=r.length,s=new Array(a);i<a;i++)s[i]=r[i].fn;return s},s.prototype.emit=function(e,t,n,r,i,a){var s=o?o+e:e;if(!this._events[s])return!1;var u,l,c=this._events[s],d=arguments.length;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),d){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,n),!0;case 4:return c.fn.call(c.context,t,n,r),!0;case 5:return c.fn.call(c.context,t,n,r,i),!0;case 6:return c.fn.call(c.context,t,n,r,i,a),!0}for(l=1,u=new Array(d-1);l<d;l++)u[l-1]=arguments[l];c.fn.apply(c.context,u)}else{var f,h=c.length;for(l=0;l<h;l++)switch(c[l].once&&this.removeListener(e,c[l].fn,void 0,!0),d){case 1:c[l].fn.call(c[l].context);break;case 2:c[l].fn.call(c[l].context,t);break;case 3:c[l].fn.call(c[l].context,t,n);break;case 4:c[l].fn.call(c[l].context,t,n,r);break;default:if(!u)for(f=1,u=new Array(d-1);f<d;f++)u[f-1]=arguments[f];c[l].fn.apply(c[l].context,u)}}return!0},s.prototype.on=function(e,t,n){var r=new a(t,n||this),i=o?o+e:e;return this._events[i]?this._events[i].fn?this._events[i]=[this._events[i],r]:this._events[i].push(r):(this._events[i]=r,this._eventsCount++),this},s.prototype.once=function(e,t,n){var r=new a(t,n||this,!0),i=o?o+e:e;return this._events[i]?this._events[i].fn?this._events[i]=[this._events[i],r]:this._events[i].push(r):(this._events[i]=r,this._eventsCount++),this},s.prototype.removeListener=function(e,t,n,r){var a=o?o+e:e;if(!this._events[a])return this;if(!t)return 0==--this._eventsCount?this._events=new i:delete this._events[a],this;var s=this._events[a];if(s.fn)s.fn!==t||r&&!s.once||n&&s.context!==n||(0==--this._eventsCount?this._events=new i:delete this._events[a]);else{for(var u=0,l=[],c=s.length;u<c;u++)(s[u].fn!==t||r&&!s[u].once||n&&s[u].context!==n)&&l.push(s[u]);l.length?this._events[a]=1===l.length?l[0]:l:0==--this._eventsCount?this._events=new i:delete this._events[a]}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=o?o+e:e,this._events[t]&&(0==--this._eventsCount?this._events=new i:delete this._events[t])):(this._events=new i,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prototype.setMaxListeners=function(){return this},s.prefixed=o,s.EventEmitter=s,e.exports=s},function(e,t,n){"use strict";var r=n(418),o=n(415);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};e.exports=function(e){return null!=e&&"object"==(void 0===e?"undefined":r(e))}},function(e,t,n){"use strict";var r=n(32),o=n(444),i=n(443),a="[object Null]",s="[object Undefined]",u=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?s:a:u&&u in Object(e)?o(e):i(e)}},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o={},i="x",a=[],s=function(e){return a.push(e)};if(e.exports=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.map(function(e){return function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",u=arguments[2];return Object.keys(t).map(function(l){var c=t[l];if(null===c)return"";if("object"===(void 0===c?"undefined":r(c))){var d=/^@/.test(l)?l:null;return e(c,d?n:n+l,d||u)}var f=l+c+n+u;if(o[f])return o[f];var h=i+a.length.toString(36);return s(function(e,t){return t?t+"{"+e+"}":e}(function(e,t,n){return"."+e+"{"+t.replace(/[A-Z]|^ms/g,"-$&").toLowerCase()+":"+n+"}"}(h+n.replace(/&/g,""),l,c),u)),o[f]=h,h}).join(" ")}(e)}).join(" ").trim()},e.exports.css=function(){return a.sort().join("")},e.exports.reset=function(){for(o={};a.length;)a.pop()},e.exports.prefix=function(e){return i=e},"undefined"!=typeof document){var u=document.head.appendChild(document.createElement("style")).sheet;s=function(e){a.push(e),u.insertRule(e,u.cssRules.length)}}},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.__esModule=!0;var o=n(5),i=l(n(7)),a=l(n(18)),s=l(n(119)),u=l(n(55));function l(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(n,a,s){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var u=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":r(t))&&"function"!=typeof t?e:t}(this,e.call(this));return u.uid=(0,o.uid)(),u.touched=0,u.resolution=s||i.default.RESOLUTION,u.width=100,u.height=100,u.realWidth=100,u.realHeight=100,u.scaleMode=void 0!==a?a:i.default.SCALE_MODE,u.hasLoaded=!1,u.isLoading=!1,u.source=null,u.origSource=null,u.imageType=null,u.sourceScale=1,u.premultipliedAlpha=!0,u.imageUrl=null,u.isPowerOfTwo=!1,u.mipmap=i.default.MIPMAP_TEXTURES,u.wrapMode=i.default.WRAP_MODE,u._glTextures={},u._enabled=0,u._virtalBoundId=-1,u._destroyed=!1,u.textureCacheIds=[],n&&u.loadSource(n),u}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":r(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.update=function(){"svg"!==this.imageType&&(this.realWidth=this.source.naturalWidth||this.source.videoWidth||this.source.width,this.realHeight=this.source.naturalHeight||this.source.videoHeight||this.source.height,this._updateDimensions()),this.emit("update",this)},t.prototype._updateDimensions=function(){this.width=this.realWidth/this.resolution,this.height=this.realHeight/this.resolution,this.isPowerOfTwo=u.default.isPow2(this.realWidth)&&u.default.isPow2(this.realHeight)},t.prototype.loadSource=function(e){var t=this.isLoading;this.hasLoaded=!1,this.isLoading=!1,t&&this.source&&(this.source.onload=null,this.source.onerror=null);var n=!this.source;if(this.source=e,(e.src&&e.complete||e.getContext)&&e.width&&e.height)this._updateImageType(),"svg"===this.imageType?this._loadSvgSource():this._sourceLoaded(),n&&this.emit("loaded",this);else if(!e.getContext){this.isLoading=!0;var r=this;if(e.onload=function(){r._updateImageType(),e.onload=null,e.onerror=null,r.isLoading&&(r.isLoading=!1,r._sourceLoaded(),"svg"!==r.imageType?r.emit("loaded",r):r._loadSvgSource())},e.onerror=function(){e.onload=null,e.onerror=null,r.isLoading&&(r.isLoading=!1,r.emit("error",r))},e.complete&&e.src){if(e.onload=null,e.onerror=null,"svg"===r.imageType)return void r._loadSvgSource();this.isLoading=!1,e.width&&e.height?(this._sourceLoaded(),t&&this.emit("loaded",this)):t&&this.emit("error",this)}}},t.prototype._updateImageType=function(){if(this.imageUrl){var e=(0,o.decomposeDataUri)(this.imageUrl),t=void 0;if(e&&"image"===e.mediaType){var n=e.subType.split("+")[0];if(!(t=(0,o.getUrlFileExtension)("."+n)))throw new Error("Invalid image type in data URI.")}else(t=(0,o.getUrlFileExtension)(this.imageUrl))||(t="png");this.imageType=t}},t.prototype._loadSvgSource=function(){if("svg"===this.imageType){var e=(0,o.decomposeDataUri)(this.imageUrl);e?this._loadSvgSourceUsingDataUri(e):this._loadSvgSourceUsingXhr()}},t.prototype._loadSvgSourceUsingDataUri=function(e){var t=void 0;if("base64"===e.encoding){if(!atob)throw new Error("Your browser doesn't support base64 conversions.");t=atob(e.data)}else t=e.data;this._loadSvgSourceUsingString(t)},t.prototype._loadSvgSourceUsingXhr=function(){var e=this,t=new XMLHttpRequest;t.onload=function(){if(t.readyState!==t.DONE||200!==t.status)throw new Error("Failed to load SVG using XHR.");e._loadSvgSourceUsingString(t.response)},t.onerror=function(){return e.emit("error",e)},t.open("GET",this.imageUrl,!0),t.send()},t.prototype._loadSvgSourceUsingString=function(e){var n=(0,o.getSvgSize)(e),r=n.width,i=n.height;if(!r||!i)throw new Error("The SVG image must have width and height defined (in pixels), canvas API needs them.");this.realWidth=Math.round(r*this.sourceScale),this.realHeight=Math.round(i*this.sourceScale),this._updateDimensions();var a=document.createElement("canvas");a.width=this.realWidth,a.height=this.realHeight,a._pixiId="canvas_"+(0,o.uid)(),a.getContext("2d").drawImage(this.source,0,0,r,i,0,0,this.realWidth,this.realHeight),this.origSource=this.source,this.source=a,t.addToCache(this,a._pixiId),this.isLoading=!1,this._sourceLoaded(),this.emit("loaded",this)},t.prototype._sourceLoaded=function(){this.hasLoaded=!0,this.update()},t.prototype.destroy=function(){this.imageUrl&&(delete o.TextureCache[this.imageUrl],this.imageUrl=null,navigator.isCocoonJS||(this.source.src="")),this.source=null,this.dispose(),t.removeFromCache(this),this.textureCacheIds=null,this._destroyed=!0},t.prototype.dispose=function(){this.emit("dispose",this)},t.prototype.updateSourceImage=function(e){this.source.src=e,this.loadSource(this.source)},t.fromImage=function(e,n,r,i){var a=o.BaseTextureCache[e];if(!a){var u=new Image;void 0===n&&0!==e.indexOf("data:")?u.crossOrigin=(0,s.default)(e):n&&(u.crossOrigin="string"==typeof n?n:"anonymous"),(a=new t(u,r)).imageUrl=e,i&&(a.sourceScale=i),a.resolution=(0,o.getResolutionOfUrl)(e),u.src=e,t.addToCache(a,e)}return a},t.fromCanvas=function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"canvas";e._pixiId||(e._pixiId=r+"_"+(0,o.uid)());var i=o.BaseTextureCache[e._pixiId];return i||(i=new t(e,n),t.addToCache(i,e._pixiId)),i},t.from=function(e,n,r){if("string"==typeof e)return t.fromImage(e,void 0,n,r);if(e instanceof HTMLImageElement){var i=e.src,a=o.BaseTextureCache[i];return a||((a=new t(e,n)).imageUrl=i,r&&(a.sourceScale=r),a.resolution=(0,o.getResolutionOfUrl)(i),t.addToCache(a,i)),a}return e instanceof HTMLCanvasElement?t.fromCanvas(e,n):e},t.addToCache=function(e,t){t&&(-1===e.textureCacheIds.indexOf(t)&&e.textureCacheIds.push(t),o.BaseTextureCache[t]&&console.warn("BaseTexture added to the cache with an id ["+t+"] that already had an entry"),o.BaseTextureCache[t]=e)},t.removeFromCache=function(e){if("string"==typeof e){var t=o.BaseTextureCache[e];if(t){var n=t.textureCacheIds.indexOf(e);return n>-1&&t.textureCacheIds.splice(n,1),delete o.BaseTextureCache[e],t}}else if(e&&e.textureCacheIds){for(var r=0;r<e.textureCacheIds.length;++r)delete o.BaseTextureCache[e.textureCacheIds[r]];return e.textureCacheIds.length=0,e}return null},t}(a.default);t.default=c},function(e,t,n){"use strict";var r,o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};r=function(){return this}();try{r=r||Function("return this")()||(0,eval)("this")}catch(e){"object"===("undefined"==typeof window?"undefined":o(window))&&(r=window)}e.exports=r},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.__esModule=!0;var o,i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(4)),s=n(16),u=(o=s)&&o.__esModule?o:{default:o};var l=new a.Point,c=new a.Polygon,d=function(e){function t(n,o,i,s,l){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var c=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":r(t))&&"function"!=typeof t?e:t}(this,e.call(this));return c._texture=n||u.default.EMPTY,c.uvs=i||new Float32Array([0,0,1,0,1,1,0,1]),c.vertices=o||new Float32Array([0,0,100,0,100,100,0,100]),c.indices=s||new Uint16Array([0,1,3,2]),c.dirty=0,c.indexDirty=0,c.blendMode=a.BLEND_MODES.NORMAL,c.canvasPadding=a.settings.MESH_CANVAS_PADDING,c.drawMode=l||t.DRAW_MODES.TRIANGLE_MESH,c.shader=null,c.tintRgb=new Float32Array([1,1,1]),c._glDatas={},c._uvTransform=new a.TextureMatrix(c._texture),c.uploadUvTransform=!1,c.pluginName="mesh",c}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":r(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype._renderWebGL=function(e){this.refresh(),e.setObjectRenderer(e.plugins[this.pluginName]),e.plugins[this.pluginName].render(this)},t.prototype._renderCanvas=function(e){this.refresh(),e.plugins[this.pluginName].render(this)},t.prototype._onTextureUpdate=function(){this._uvTransform.texture=this._texture,this.refresh()},t.prototype.multiplyUvs=function(){this.uploadUvTransform||this._uvTransform.multiplyUvs(this.uvs)},t.prototype.refresh=function(e){this._uvTransform.update(e)&&this._refresh()},t.prototype._refresh=function(){},t.prototype._calculateBounds=function(){this._bounds.addVertices(this.transform,this.vertices,0,this.vertices.length)},t.prototype.containsPoint=function(e){if(!this.getBounds().contains(e.x,e.y))return!1;this.worldTransform.applyInverse(e,l);for(var n=this.vertices,r=c.points,o=this.indices,i=this.indices.length,a=this.drawMode===t.DRAW_MODES.TRIANGLES?3:1,s=0;s+2<i;s+=a){var u=2*o[s],d=2*o[s+1],f=2*o[s+2];if(r[0]=n[u],r[1]=n[u+1],r[2]=n[d],r[3]=n[d+1],r[4]=n[f],r[5]=n[f+1],c.contains(l.x,l.y))return!0}return!1},i(t,[{key:"texture",get:function(){return this._texture},set:function(e){this._texture!==e&&(this._texture=e,e&&(e.baseTexture.hasLoaded?this._onTextureUpdate():e.once("update",this._onTextureUpdate,this)))}},{key:"tint",get:function(){return a.utils.rgb2hex(this.tintRgb)},set:function(e){this.tintRgb=a.utils.hex2rgb(e,this.tintRgb)}}]),t}(a.Container);t.default=d,d.DRAW_MODES={TRIANGLE_MESH:0,TRIANGLES:1}},function(e,t,n){"use strict";var r=n(204).default,o=n(50).default,i=n(87),a=n(86);r.Resource=o,r.async=i,r.base64=a,e.exports=r,e.exports.default=r},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.__esModule=!0;var o,i=n(10),a=n(7),s=(o=a)&&o.__esModule?o:{default:o};function u(e,t){if(e instanceof Array){if("precision"!==e[0].substring(0,9)){var n=e.slice(0);return n.unshift("precision "+t+" float;"),n}}else if("precision"!==e.trim().substring(0,9))return"precision "+t+" float;\n"+e;return e}var l=function(e){function t(n,o,i,a,l){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":r(t))&&"function"!=typeof t?e:t}(this,e.call(this,n,u(o,l||s.default.PRECISION_VERTEX),u(i,l||s.default.PRECISION_FRAGMENT),void 0,a))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":r(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(i.GLShader);t.default=l},function(e,t,n){"use strict";t.__esModule=!0;var r=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.renderer=t,this.renderer.on("context",this.onContextChange,this)}return e.prototype.onContextChange=function(){},e.prototype.destroy=function(){this.renderer.off("context",this.onContextChange,this),this.renderer=null},e}();t.default=r},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.__esModule=!0;var o=d(n(114)),i=d(n(258)),a=d(n(112)),s=d(n(257)),u=n(5),l=n(3),c=d(n(7));function d(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function t(n,o,a){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var u=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":r(t))&&"function"!=typeof t?e:t}(this,e.call(this,"Canvas",n,o,a));return u.type=l.RENDERER_TYPE.CANVAS,u.rootContext=u.view.getContext("2d",{alpha:u.transparent}),u.context=u.rootContext,u.refresh=!0,u.maskManager=new i.default(u),u.smoothProperty="imageSmoothingEnabled",u.rootContext.imageSmoothingEnabled||(u.rootContext.webkitImageSmoothingEnabled?u.smoothProperty="webkitImageSmoothingEnabled":u.rootContext.mozImageSmoothingEnabled?u.smoothProperty="mozImageSmoothingEnabled":u.rootContext.oImageSmoothingEnabled?u.smoothProperty="oImageSmoothingEnabled":u.rootContext.msImageSmoothingEnabled&&(u.smoothProperty="msImageSmoothingEnabled")),u.initPlugins(),u.blendModes=(0,s.default)(),u._activeBlendMode=null,u.renderingToScreen=!1,u.resize(u.options.width,u.options.height),u}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":r(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(e,t,n,r,o){if(this.view){this.renderingToScreen=!t,this.emit("prerender");var i=this.resolution;t?((t=t.baseTexture||t)._canvasRenderTarget||(t._canvasRenderTarget=new a.default(t.width,t.height,t.resolution),t.source=t._canvasRenderTarget.canvas,t.valid=!0),this.context=t._canvasRenderTarget.context,this.resolution=t._canvasRenderTarget.resolution):this.context=this.rootContext;var s=this.context;if(t||(this._lastObjectRendered=e),!o){var u=e.parent,c=this._tempDisplayObjectParent.transform.worldTransform;r?(r.copy(c),this._tempDisplayObjectParent.transform._worldID=-1):c.identity(),e.parent=this._tempDisplayObjectParent,e.updateTransform(),e.parent=u}s.save(),s.setTransform(1,0,0,1,0,0),s.globalAlpha=1,this._activeBlendMode=l.BLEND_MODES.NORMAL,s.globalCompositeOperation=this.blendModes[l.BLEND_MODES.NORMAL],navigator.isCocoonJS&&this.view.screencanvas&&(s.fillStyle="black",s.clear()),(void 0!==n?n:this.clearBeforeRender)&&this.renderingToScreen&&(this.transparent?s.clearRect(0,0,this.width,this.height):(s.fillStyle=this._backgroundColorString,s.fillRect(0,0,this.width,this.height)));var d=this.context;this.context=s,e.renderCanvas(this),this.context=d,s.restore(),this.resolution=i,this.emit("postrender")}},t.prototype.clear=function(e){var t=this.context;e=e||this._backgroundColorString,!this.transparent&&e?(t.fillStyle=e,t.fillRect(0,0,this.width,this.height)):t.clearRect(0,0,this.width,this.height)},t.prototype.setBlendMode=function(e){this._activeBlendMode!==e&&(this._activeBlendMode=e,this.context.globalCompositeOperation=this.blendModes[e])},t.prototype.destroy=function(t){this.destroyPlugins(),e.prototype.destroy.call(this,t),this.context=null,this.refresh=!0,this.maskManager.destroy(),this.maskManager=null,this.smoothProperty=null},t.prototype.resize=function(t,n){e.prototype.resize.call(this,t,n),this.smoothProperty&&(this.rootContext[this.smoothProperty]=c.default.SCALE_MODE===l.SCALE_MODES.LINEAR)},t.prototype.invalidateBlendMode=function(){this._activeBlendMode=this.blendModes.indexOf(this.context.globalCompositeOperation)},t}(o.default);t.default=f,u.pluginTarget.mixin(f)},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.__esModule=!0;var o,i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(5),s=n(122);var u=function(e){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":r(t))&&"function"!=typeof t?e:t}(this,e.call(this));return n.children=[],n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":r(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.onChildrenChange=function(){},t.prototype.addChild=function(e){var t=arguments.length;if(t>1)for(var n=0;n<t;n++)this.addChild(arguments[n]);else e.parent&&e.parent.removeChild(e),e.parent=this,e.transform._parentID=-1,this.children.push(e),this._boundsID++,this.onChildrenChange(this.children.length-1),e.emit("added",this);return e},t.prototype.addChildAt=function(e,t){if(t<0||t>this.children.length)throw new Error(e+"addChildAt: The index "+t+" supplied is out of bounds "+this.children.length);return e.parent&&e.parent.removeChild(e),e.parent=this,e.transform._parentID=-1,this.children.splice(t,0,e),this._boundsID++,this.onChildrenChange(t),e.emit("added",this),e},t.prototype.swapChildren=function(e,t){if(e!==t){var n=this.getChildIndex(e),r=this.getChildIndex(t);this.children[n]=t,this.children[r]=e,this.onChildrenChange(n<r?n:r)}},t.prototype.getChildIndex=function(e){var t=this.children.indexOf(e);if(-1===t)throw new Error("The supplied DisplayObject must be a child of the caller");return t},t.prototype.setChildIndex=function(e,t){if(t<0||t>=this.children.length)throw new Error("The index "+t+" supplied is out of bounds "+this.children.length);var n=this.getChildIndex(e);(0,a.removeItems)(this.children,n,1),this.children.splice(t,0,e),this.onChildrenChange(t)},t.prototype.getChildAt=function(e){if(e<0||e>=this.children.length)throw new Error("getChildAt: Index ("+e+") does not exist.");return this.children[e]},t.prototype.removeChild=function(e){var t=arguments.length;if(t>1)for(var n=0;n<t;n++)this.removeChild(arguments[n]);else{var r=this.children.indexOf(e);if(-1===r)return null;e.parent=null,e.transform._parentID=-1,(0,a.removeItems)(this.children,r,1),this._boundsID++,this.onChildrenChange(r),e.emit("removed",this)}return e},t.prototype.removeChildAt=function(e){var t=this.getChildAt(e);return t.parent=null,t.transform._parentID=-1,(0,a.removeItems)(this.children,e,1),this._boundsID++,this.onChildrenChange(e),t.emit("removed",this),t},t.prototype.removeChildren=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments[1],n=e,r="number"==typeof t?t:this.children.length,o=r-n,i=void 0;if(o>0&&o<=r){i=this.children.splice(n,o);for(var a=0;a<i.length;++a)i[a].parent=null,i[a].transform&&(i[a].transform._parentID=-1);this._boundsID++,this.onChildrenChange(e);for(var s=0;s<i.length;++s)i[s].emit("removed",this);return i}if(0===o&&0===this.children.length)return[];throw new RangeError("removeChildren: numeric values are outside the acceptable range.")},t.prototype.updateTransform=function(){this._boundsID++,this.transform.updateTransform(this.parent.transform),this.worldAlpha=this.alpha*this.parent.worldAlpha;for(var e=0,t=this.children.length;e<t;++e){var n=this.children[e];n.visible&&n.updateTransform()}},t.prototype.calculateBounds=function(){this._bounds.clear(),this._calculateBounds();for(var e=0;e<this.children.length;e++){var t=this.children[e];t.visible&&t.renderable&&(t.calculateBounds(),t._mask?(t._mask.calculateBounds(),this._bounds.addBoundsMask(t._bounds,t._mask._bounds)):t.filterArea?this._bounds.addBoundsArea(t._bounds,t.filterArea):this._bounds.addBounds(t._bounds))}this._lastBoundsID=this._boundsID},t.prototype._calculateBounds=function(){},t.prototype.renderWebGL=function(e){if(this.visible&&!(this.worldAlpha<=0)&&this.renderable)if(this._mask||this._filters)this.renderAdvancedWebGL(e);else{this._renderWebGL(e);for(var t=0,n=this.children.length;t<n;++t)this.children[t].renderWebGL(e)}},t.prototype.renderAdvancedWebGL=function(e){e.flush();var t=this._filters,n=this._mask;if(t){this._enabledFilters||(this._enabledFilters=[]),this._enabledFilters.length=0;for(var r=0;r<t.length;r++)t[r].enabled&&this._enabledFilters.push(t[r]);this._enabledFilters.length&&e.filterManager.pushFilter(this,this._enabledFilters)}n&&e.maskManager.pushMask(this,this._mask),this._renderWebGL(e);for(var o=0,i=this.children.length;o<i;o++)this.children[o].renderWebGL(e);e.flush(),n&&e.maskManager.popMask(this,this._mask),t&&this._enabledFilters&&this._enabledFilters.length&&e.filterManager.popFilter()},t.prototype._renderWebGL=function(e){},t.prototype._renderCanvas=function(e){},t.prototype.renderCanvas=function(e){if(this.visible&&!(this.worldAlpha<=0)&&this.renderable){this._mask&&e.maskManager.pushMask(this._mask),this._renderCanvas(e);for(var t=0,n=this.children.length;t<n;++t)this.children[t].renderCanvas(e);this._mask&&e.maskManager.popMask(e)}},t.prototype.destroy=function(t){e.prototype.destroy.call(this);var n="boolean"==typeof t?t:t&&t.children,r=this.removeChildren(0,this.children.length);if(n)for(var o=0;o<r.length;++o)r[o].destroy(t)},i(t,[{key:"width",get:function(){return this.scale.x*this.getLocalBounds().width},set:function(e){var t=this.getLocalBounds().width;this.scale.x=0!==t?e/t:1,this._width=e}},{key:"height",get:function(){return this.scale.y*this.getLocalBounds().height},set:function(e){var t=this.getLocalBounds().height;this.scale.y=0!==t?e/t:1,this._height=e}}]),t}(((o=s)&&o.__esModule?o:{default:o}).default);t.default=u,u.prototype.containerUpdateTransform=u.prototype.updateTransform},function(e,t,n){"use strict";var r=n(169),o=n(434),i=n(47);e.exports=function(e){return i(e)?r(e):o(e)}},function(e,t,n){"use strict";var r=n(13).Symbol;e.exports=r},function(e,t,n){"use strict";e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(504)},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t,n){e.nativeLines?function(e,t){var n=0,r=e.points;if(0===r.length)return;var i=t.points,a=r.length/2,s=(0,o.hex2rgb)(e.lineColor),u=e.lineAlpha,l=s[0]*u,c=s[1]*u,d=s[2]*u;for(n=1;n<a;n++){var f=r[2*(n-1)],h=r[2*(n-1)+1],p=r[2*n],y=r[2*n+1];i.push(f,h),i.push(l,c,d,u),i.push(p,y),i.push(l,c,d,u)}}(e,n):function(e,t){var n=e.points;if(0===n.length)return;var i=new r.Point(n[0],n[1]),a=new r.Point(n[n.length-2],n[n.length-1]);if(i.x===a.x&&i.y===a.y){(n=n.slice()).pop(),n.pop();var s=(a=new r.Point(n[n.length-2],n[n.length-1])).x+.5*(i.x-a.x),u=a.y+.5*(i.y-a.y);n.unshift(s,u),n.push(s,u)}var l=t.points,c=t.indices,d=n.length/2,f=n.length,h=l.length/6,p=e.lineWidth/2,y=(0,o.hex2rgb)(e.lineColor),v=e.lineAlpha,m=y[0]*v,g=y[1]*v,b=y[2]*v,_=n[0],x=n[1],w=n[2],E=n[3],S=0,T=0,O=-(x-E),C=_-w,P=0,M=0,k=0,A=0,R=Math.sqrt(O*O+C*C);O/=R,C/=R,O*=p,C*=p,l.push(_-O,x-C,m,g,b,v),l.push(_+O,x+C,m,g,b,v);for(var I=1;I<d-1;++I){_=n[2*(I-1)],x=n[2*(I-1)+1],w=n[2*I],E=n[2*I+1],S=n[2*(I+1)],T=n[2*(I+1)+1],O=-(x-E),C=_-w,R=Math.sqrt(O*O+C*C),O/=R,C/=R,O*=p,C*=p,P=-(E-T),M=w-S,R=Math.sqrt(P*P+M*M),P/=R,M/=R;var D=-C+x-(-C+E),j=-O+w-(-O+_),N=(-O+_)*(-C+E)-(-O+w)*(-C+x),L=-(M*=p)+T-(-M+E),F=-(P*=p)+w-(-P+S),B=(-P+S)*(-M+E)-(-P+w)*(-M+T),U=D*F-L*j;if(Math.abs(U)<.1)U+=10.1,l.push(w-O,E-C,m,g,b,v),l.push(w+O,E+C,m,g,b,v);else{var H=(j*B-F*N)/U,W=(L*N-D*B)/U,z=(H-w)*(H-w)+(W-E)*(W-E);z>196*p*p?(k=O-P,A=C-M,R=Math.sqrt(k*k+A*A),k/=R,A/=R,k*=p,A*=p,l.push(w-k,E-A),l.push(m,g,b,v),l.push(w+k,E+A),l.push(m,g,b,v),l.push(w-k,E-A),l.push(m,g,b,v),f++):(l.push(H,W),l.push(m,g,b,v),l.push(w-(H-w),E-(W-E)),l.push(m,g,b,v))}}_=n[2*(d-2)],x=n[2*(d-2)+1],w=n[2*(d-1)],E=n[2*(d-1)+1],O=-(x-E),C=_-w,R=Math.sqrt(O*O+C*C),O/=R,C/=R,O*=p,C*=p,l.push(w-O,E-C),l.push(m,g,b,v),l.push(w+O,E+C),l.push(m,g,b,v),c.push(h);for(var X=0;X<f;++X)c.push(h++);c.push(h-1)}(e,t)};var r=n(9),o=n(5)},function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(9),i=n(3),a=n(7),s=(r=a)&&r.__esModule?r:{default:r},u=n(10);var l=function(){function e(t,n,r,a,l,c){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.gl=t,this.frameBuffer=null,this.texture=null,this.clearColor=[0,0,0,0],this.size=new o.Rectangle(0,0,1,1),this.resolution=l||s.default.RESOLUTION,this.projectionMatrix=new o.Matrix,this.transform=null,this.frame=null,this.defaultFrame=new o.Rectangle,this.destinationFrame=null,this.sourceFrame=null,this.stencilBuffer=null,this.stencilMaskStack=[],this.filterData=null,this.scaleMode=void 0!==a?a:s.default.SCALE_MODE,this.root=c,this.root?(this.frameBuffer=new u.GLFramebuffer(t,100,100),this.frameBuffer.framebuffer=null):(this.frameBuffer=u.GLFramebuffer.createRGBA(t,100,100),this.scaleMode===i.SCALE_MODES.NEAREST?this.frameBuffer.texture.enableNearestScaling():this.frameBuffer.texture.enableLinearScaling(),this.texture=this.frameBuffer.texture),this.setFrame(),this.resize(n,r)}return e.prototype.clear=function(e){var t=e||this.clearColor;this.frameBuffer.clear(t[0],t[1],t[2],t[3])},e.prototype.attachStencilBuffer=function(){this.root||this.frameBuffer.enableStencil()},e.prototype.setFrame=function(e,t){this.destinationFrame=e||this.destinationFrame||this.defaultFrame,this.sourceFrame=t||this.sourceFrame||this.destinationFrame},e.prototype.activate=function(){var e=this.gl;this.frameBuffer.bind(),this.calculateProjection(this.destinationFrame,this.sourceFrame),this.transform&&this.projectionMatrix.append(this.transform),this.destinationFrame!==this.sourceFrame?(e.enable(e.SCISSOR_TEST),e.scissor(0|this.destinationFrame.x,0|this.destinationFrame.y,this.destinationFrame.width*this.resolution|0,this.destinationFrame.height*this.resolution|0)):e.disable(e.SCISSOR_TEST),e.viewport(0|this.destinationFrame.x,0|this.destinationFrame.y,this.destinationFrame.width*this.resolution|0,this.destinationFrame.height*this.resolution|0)},e.prototype.calculateProjection=function(e,t){var n=this.projectionMatrix;t=t||e,n.identity(),this.root?(n.a=1/e.width*2,n.d=-1/e.height*2,n.tx=-1-t.x*n.a,n.ty=1-t.y*n.d):(n.a=1/e.width*2,n.d=1/e.height*2,n.tx=-1-t.x*n.a,n.ty=-1-t.y*n.d)},e.prototype.resize=function(e,t){if(e|=0,t|=0,this.size.width!==e||this.size.height!==t){this.size.width=e,this.size.height=t,this.defaultFrame.width=e,this.defaultFrame.height=t,this.frameBuffer.resize(e*this.resolution,t*this.resolution);var n=this.frame||this.size;this.calculateProjection(n)}},e.prototype.destroy=function(){this.frameBuffer.destroy(),this.frameBuffer=null,this.texture=null},e}();t.default=l},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.__esModule=!0;var o=b(n(114)),i=b(n(255)),a=b(n(252)),s=b(n(251)),u=b(n(36)),l=b(n(38)),c=b(n(249)),d=b(n(23)),f=b(n(248)),h=b(n(247)),p=b(n(245)),y=b(n(244)),v=n(5),m=b(n(10)),g=n(3);function b(e){return e&&e.__esModule?e:{default:e}}var _=0,x=function(e){function t(n,o,s){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var u=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":r(t))&&"function"!=typeof t?e:t}(this,e.call(this,"WebGL",n,o,s));return u.legacy=u.options.legacy,u.legacy&&(m.default.VertexArrayObject.FORCE_NATIVE=!0),u.type=g.RENDERER_TYPE.WEBGL,u.handleContextLost=u.handleContextLost.bind(u),u.handleContextRestored=u.handleContextRestored.bind(u),u.view.addEventListener("webglcontextlost",u.handleContextLost,!1),u.view.addEventListener("webglcontextrestored",u.handleContextRestored,!1),u._contextOptions={alpha:u.transparent,antialias:u.options.antialias,premultipliedAlpha:u.transparent&&"notMultiplied"!==u.transparent,stencil:!0,preserveDrawingBuffer:u.options.preserveDrawingBuffer,powerPreference:u.options.powerPreference},u._backgroundColorRgba[3]=u.transparent?0:1,u.maskManager=new i.default(u),u.stencilManager=new a.default(u),u.emptyRenderer=new l.default(u),u.currentRenderer=u.emptyRenderer,u.textureManager=null,u.filterManager=null,u.initPlugins(),u.options.context&&(0,y.default)(u.options.context),u.gl=u.options.context||m.default.createContext(u.view,u._contextOptions),u.CONTEXT_UID=_++,u.state=new h.default(u.gl),u.renderingToScreen=!0,u.boundTextures=null,u._activeShader=null,u._activeVao=null,u._activeRenderTarget=null,u._initContext(),u.drawModes=(0,p.default)(u.gl),u._nextTextureLocation=0,u.setBlendMode(0),u}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":r(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype._initContext=function(){var e=this.gl;e.isContextLost()&&e.getExtension("WEBGL_lose_context")&&e.getExtension("WEBGL_lose_context").restoreContext();var t=e.getParameter(e.MAX_TEXTURE_IMAGE_UNITS);this._activeShader=null,this._activeVao=null,this.boundTextures=new Array(t),this.emptyTextures=new Array(t),this.textureManager=new c.default(this),this.filterManager=new s.default(this),this.textureGC=new f.default(this),this.state.resetToDefault(),this.rootRenderTarget=new u.default(e,this.width,this.height,null,this.resolution,!0),this.rootRenderTarget.clearColor=this._backgroundColorRgba,this.bindRenderTarget(this.rootRenderTarget);var n=new m.default.GLTexture.fromData(e,null,1,1),r={_glTextures:{}};r._glTextures[this.CONTEXT_UID]={};for(var o=0;o<t;o++){var i=new d.default;i._glTextures[this.CONTEXT_UID]=n,this.boundTextures[o]=r,this.emptyTextures[o]=i,this.bindTexture(null,o)}this.emit("context",e),this.resize(this.screen.width,this.screen.height)},t.prototype.render=function(e,t,n,r,o){if(this.renderingToScreen=!t,this.emit("prerender"),this.gl&&!this.gl.isContextLost()){if(this._nextTextureLocation=0,t||(this._lastObjectRendered=e),!o){var i=e.parent;e.parent=this._tempDisplayObjectParent,e.updateTransform(),e.parent=i}this.bindRenderTexture(t,r),this.currentRenderer.start(),(void 0!==n?n:this.clearBeforeRender)&&this._activeRenderTarget.clear(),e.renderWebGL(this),this.currentRenderer.flush(),this.textureGC.update(),this.emit("postrender")}},t.prototype.setObjectRenderer=function(e){this.currentRenderer!==e&&(this.currentRenderer.stop(),this.currentRenderer=e,this.currentRenderer.start())},t.prototype.flush=function(){this.setObjectRenderer(this.emptyRenderer)},t.prototype.resize=function(e,t){o.default.prototype.resize.call(this,e,t),this.rootRenderTarget.resize(e,t),this._activeRenderTarget===this.rootRenderTarget&&(this.rootRenderTarget.activate(),this._activeShader&&(this._activeShader.uniforms.projectionMatrix=this.rootRenderTarget.projectionMatrix.toArray(!0)))},t.prototype.setBlendMode=function(e){this.state.setBlendMode(e)},t.prototype.clear=function(e){this._activeRenderTarget.clear(e)},t.prototype.setTransform=function(e){this._activeRenderTarget.transform=e},t.prototype.clearRenderTexture=function(e,t){var n=e.baseTexture._glRenderTargets[this.CONTEXT_UID];return n&&n.clear(t),this},t.prototype.bindRenderTexture=function(e,t){var n=void 0;if(e){var r=e.baseTexture;r._glRenderTargets[this.CONTEXT_UID]||this.textureManager.updateTexture(r,0),this.unbindTexture(r),(n=r._glRenderTargets[this.CONTEXT_UID]).setFrame(e.frame)}else n=this.rootRenderTarget;return n.transform=t,this.bindRenderTarget(n),this},t.prototype.bindRenderTarget=function(e){return e!==this._activeRenderTarget&&(this._activeRenderTarget=e,e.activate(),this._activeShader&&(this._activeShader.uniforms.projectionMatrix=e.projectionMatrix.toArray(!0)),this.stencilManager.setMaskStack(e.stencilMaskStack)),this},t.prototype.bindShader=function(e,t){return this._activeShader!==e&&(this._activeShader=e,e.bind(),!1!==t&&(e.uniforms.projectionMatrix=this._activeRenderTarget.projectionMatrix.toArray(!0))),this},t.prototype.bindTexture=function(e,t,n){if((e=(e=e||this.emptyTextures[t]).baseTexture||e).touched=this.textureGC.count,n)t=t||0;else{for(var r=0;r<this.boundTextures.length;r++)if(this.boundTextures[r]===e)return r;void 0===t&&(this._nextTextureLocation++,this._nextTextureLocation%=this.boundTextures.length,t=this.boundTextures.length-this._nextTextureLocation-1)}var o=this.gl,i=e._glTextures[this.CONTEXT_UID];return i?(this.boundTextures[t]=e,o.activeTexture(o.TEXTURE0+t),o.bindTexture(o.TEXTURE_2D,i.texture)):this.textureManager.updateTexture(e,t),t},t.prototype.unbindTexture=function(e){var t=this.gl;e=e.baseTexture||e;for(var n=0;n<this.boundTextures.length;n++)this.boundTextures[n]===e&&(this.boundTextures[n]=this.emptyTextures[n],t.activeTexture(t.TEXTURE0+n),t.bindTexture(t.TEXTURE_2D,this.emptyTextures[n]._glTextures[this.CONTEXT_UID].texture));return this},t.prototype.createVao=function(){return new m.default.VertexArrayObject(this.gl,this.state.attribState)},t.prototype.bindVao=function(e){return this._activeVao===e?this:(e?e.bind():this._activeVao&&this._activeVao.unbind(),this._activeVao=e,this)},t.prototype.reset=function(){this.setObjectRenderer(this.emptyRenderer),this.bindVao(null),this._activeShader=null,this._activeRenderTarget=this.rootRenderTarget;for(var e=0;e<this.boundTextures.length;e++)this.boundTextures[e]=this.emptyTextures[e];return this.rootRenderTarget.activate(),this.state.resetToDefault(),this},t.prototype.handleContextLost=function(e){e.preventDefault()},t.prototype.handleContextRestored=function(){this.textureManager.removeAll(),this.filterManager.destroy(!0),this._initContext()},t.prototype.destroy=function(t){this.destroyPlugins(),this.view.removeEventListener("webglcontextlost",this.handleContextLost),this.view.removeEventListener("webglcontextrestored",this.handleContextRestored),this.textureManager.destroy(),e.prototype.destroy.call(this,t),this.uid=0,this.maskManager.destroy(),this.stencilManager.destroy(),this.filterManager.destroy(),this.maskManager=null,this.filterManager=null,this.textureManager=null,this.currentRenderer=null,this.handleContextLost=null,this.handleContextRestored=null,this._contextOptions=null,this.gl.useProgram(null),this.gl.getExtension("WEBGL_lose_context")&&this.gl.getExtension("WEBGL_lose_context").loseContext(),this.gl=null},t}(o.default);t.default=x,v.pluginTarget.mixin(x)},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.__esModule=!0;var o,i=n(28);var a=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":r(t))&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":r(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.start=function(){},t.prototype.stop=function(){this.flush()},t.prototype.flush=function(){},t.prototype.render=function(e){},t}(((o=i)&&o.__esModule?o:{default:o}).default);t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.randomRange=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=Math.random()*(t-e)+e;r=0===n?Math.floor(r):Math.floor(r*Math.pow(10,n))/Math.pow(10,n);return r};t.scale=function(e,t,n,r){void 0===r&&(r=!0);var o=e+(t-e)*n;return r?Math.round(o):o};t.padZeroes=function(e){return e<10?"0"+e:e},t.setPageZoom=function(e){return document.getElementById("root").style.zoom=e,!0},t.interpolatePoints=function(e,t,n){return{x:e.x+(t.x-e.x)*n,y:e.y+(t.y-e.y)*n}}},function(e,t,n){"use strict";var r=n(143),o=n(142);e.exports=function(e,t,n,i){var a=!n;n||(n={});for(var s=-1,u=t.length;++s<u;){var l=t[s],c=i?i(n[l],e[l],l,n,e):void 0;void 0===c&&(c=e[l]),a?o(n,l,c):r(n,l,c)}return n}},function(e,t,n){"use strict";var r=n(42),o=1/0;e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-o?"-0":t}},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=n(21),i=n(20),a="[object Symbol]";e.exports=function(e){return"symbol"==(void 0===e?"undefined":r(e))||i(e)&&o(e)==a}},function(e,t,n){"use strict";var r=n(406);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},function(e,t,n){"use strict";var r=n(19)(Object,"create");e.exports=r},function(e,t,n){"use strict";var r=n(70);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},function(e,t,n){"use strict";var r=n(428),o=n(427),i=n(426),a=n(425),s=n(424);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=s,e.exports=u},function(e,t,n){"use strict";var r=n(164),o=n(74);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},function(e,t,n){"use strict";function r(e){return function(){return e}}var o=function(){};o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(e){return e},e.exports=o},function(e,t,n){"use strict";t.__esModule=!0;var r,o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(4)),i=n(82),a=(r=i)&&r.__esModule?r:{default:r};var s=o.ticker.shared;o.settings.UPLOADS_PER_FRAME=4;var u=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.limiter=new a.default(o.settings.UPLOADS_PER_FRAME),this.renderer=t,this.uploadHookHelper=null,this.queue=[],this.addHooks=[],this.uploadHooks=[],this.completes=[],this.ticking=!1,this.delayedTick=function(){n.queue&&n.prepareItems()},this.registerFindHook(p),this.registerFindHook(y),this.registerFindHook(l),this.registerFindHook(c),this.registerFindHook(d),this.registerUploadHook(f),this.registerUploadHook(h)}return e.prototype.upload=function(e,t){"function"==typeof e&&(t=e,e=null),e&&this.add(e),this.queue.length?(t&&this.completes.push(t),this.ticking||(this.ticking=!0,s.addOnce(this.tick,this,o.UPDATE_PRIORITY.UTILITY))):t&&t()},e.prototype.tick=function(){setTimeout(this.delayedTick,0)},e.prototype.prepareItems=function(){for(this.limiter.beginFrame();this.queue.length&&this.limiter.allowedToUpload();){var e=this.queue[0],t=!1;if(e&&!e._destroyed)for(var n=0,r=this.uploadHooks.length;n<r;n++)if(this.uploadHooks[n](this.uploadHookHelper,e)){this.queue.shift(),t=!0;break}t||this.queue.shift()}if(this.queue.length)s.addOnce(this.tick,this,o.UPDATE_PRIORITY.UTILITY);else{this.ticking=!1;var i=this.completes.slice(0);this.completes.length=0;for(var a=0,u=i.length;a<u;a++)i[a]()}},e.prototype.registerFindHook=function(e){return e&&this.addHooks.push(e),this},e.prototype.registerUploadHook=function(e){return e&&this.uploadHooks.push(e),this},e.prototype.add=function(e){for(var t=0,n=this.addHooks.length;t<n&&!this.addHooks[t](e,this.queue);t++);if(e instanceof o.Container)for(var r=e.children.length-1;r>=0;r--)this.add(e.children[r]);return this},e.prototype.destroy=function(){this.ticking&&s.remove(this.tick,this),this.ticking=!1,this.addHooks=null,this.uploadHooks=null,this.renderer=null,this.completes=null,this.queue=null,this.limiter=null,this.uploadHookHelper=null},e}();function l(e,t){var n=!1;if(e&&e._textures&&e._textures.length)for(var r=0;r<e._textures.length;r++)if(e._textures[r]instanceof o.Texture){var i=e._textures[r].baseTexture;-1===t.indexOf(i)&&(t.push(i),n=!0)}return n}function c(e,t){return e instanceof o.BaseTexture&&(-1===t.indexOf(e)&&t.push(e),!0)}function d(e,t){if(e._texture&&e._texture instanceof o.Texture){var n=e._texture.baseTexture;return-1===t.indexOf(n)&&t.push(n),!0}return!1}function f(e,t){return t instanceof o.Text&&(t.updateText(!0),!0)}function h(e,t){if(t instanceof o.TextStyle){var n=t.toFontString();return o.TextMetrics.measureFont(n),!0}return!1}function p(e,t){if(e instanceof o.Text){-1===t.indexOf(e.style)&&t.push(e.style),-1===t.indexOf(e)&&t.push(e);var n=e._texture.baseTexture;return-1===t.indexOf(n)&&t.push(n),!0}return!1}function y(e,t){return e instanceof o.TextStyle&&(-1===t.indexOf(e)&&t.push(e),!0)}t.default=u},function(e,t,n){"use strict";t.__esModule=!0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=a(n(88)),i=a(n(89));function a(e){return e&&e.__esModule?e:{default:e}}var s=!(!window.XDomainRequest||"withCredentials"in new XMLHttpRequest),u=null;function l(){}var c=function(){function e(t,n,r){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),"string"!=typeof t||"string"!=typeof n)throw new Error("Both name and url are required for constructing a resource.");r=r||{},this._flags=0,this._setFlag(e.STATUS_FLAGS.DATA_URL,0===n.indexOf("data:")),this.name=t,this.url=n,this.extension=this._getExtension(),this.data=null,this.crossOrigin=!0===r.crossOrigin?"anonymous":r.crossOrigin,this.loadType=r.loadType||this._determineLoadType(),this.xhrType=r.xhrType,this.metadata=r.metadata||{},this.error=null,this.xhr=null,this.children=[],this.type=e.TYPE.UNKNOWN,this.progressChunk=0,this._dequeue=l,this._onLoadBinding=null,this._boundComplete=this.complete.bind(this),this._boundOnError=this._onError.bind(this),this._boundOnProgress=this._onProgress.bind(this),this._boundXhrOnError=this._xhrOnError.bind(this),this._boundXhrOnAbort=this._xhrOnAbort.bind(this),this._boundXhrOnLoad=this._xhrOnLoad.bind(this),this._boundXdrOnTimeout=this._xdrOnTimeout.bind(this),this.onStart=new i.default,this.onProgress=new i.default,this.onComplete=new i.default,this.onAfterMiddleware=new i.default}return e.setExtensionLoadType=function(t,n){d(e._loadTypeMap,t,n)},e.setExtensionXhrType=function(t,n){d(e._xhrTypeMap,t,n)},e.prototype.complete=function(){if(this.data&&this.data.removeEventListener&&(this.data.removeEventListener("error",this._boundOnError,!1),this.data.removeEventListener("load",this._boundComplete,!1),this.data.removeEventListener("progress",this._boundOnProgress,!1),this.data.removeEventListener("canplaythrough",this._boundComplete,!1)),this.xhr&&(this.xhr.removeEventListener?(this.xhr.removeEventListener("error",this._boundXhrOnError,!1),this.xhr.removeEventListener("abort",this._boundXhrOnAbort,!1),this.xhr.removeEventListener("progress",this._boundOnProgress,!1),this.xhr.removeEventListener("load",this._boundXhrOnLoad,!1)):(this.xhr.onerror=null,this.xhr.ontimeout=null,this.xhr.onprogress=null,this.xhr.onload=null)),this.isComplete)throw new Error("Complete called again for an already completed resource.");this._setFlag(e.STATUS_FLAGS.COMPLETE,!0),this._setFlag(e.STATUS_FLAGS.LOADING,!1),this.onComplete.dispatch(this)},e.prototype.abort=function(t){if(!this.error){if(this.error=new Error(t),this.xhr)this.xhr.abort();else if(this.xdr)this.xdr.abort();else if(this.data)if(this.data.src)this.data.src=e.EMPTY_GIF;else for(;this.data.firstChild;)this.data.removeChild(this.data.firstChild);this.complete()}},e.prototype.load=function(t){var n=this;if(!this.isLoading)if(this.isComplete)t&&setTimeout(function(){return t(n)},1);else switch(t&&this.onComplete.once(t),this._setFlag(e.STATUS_FLAGS.LOADING,!0),this.onStart.dispatch(this),!1!==this.crossOrigin&&"string"==typeof this.crossOrigin||(this.crossOrigin=this._determineCrossOrigin(this.url)),this.loadType){case e.LOAD_TYPE.IMAGE:this.type=e.TYPE.IMAGE,this._loadElement("image");break;case e.LOAD_TYPE.AUDIO:this.type=e.TYPE.AUDIO,this._loadSourceElement("audio");break;case e.LOAD_TYPE.VIDEO:this.type=e.TYPE.VIDEO,this._loadSourceElement("video");break;case e.LOAD_TYPE.XHR:default:s&&this.crossOrigin?this._loadXdr():this._loadXhr()}},e.prototype._hasFlag=function(e){return!!(this._flags&e)},e.prototype._setFlag=function(e,t){this._flags=t?this._flags|e:this._flags&~e},e.prototype._loadElement=function(e){this.metadata.loadElement?this.data=this.metadata.loadElement:"image"===e&&void 0!==window.Image?this.data=new Image:this.data=document.createElement(e),this.crossOrigin&&(this.data.crossOrigin=this.crossOrigin),this.metadata.skipSource||(this.data.src=this.url),this.data.addEventListener("error",this._boundOnError,!1),this.data.addEventListener("load",this._boundComplete,!1),this.data.addEventListener("progress",this._boundOnProgress,!1)},e.prototype._loadSourceElement=function(e){if(this.metadata.loadElement?this.data=this.metadata.loadElement:"audio"===e&&void 0!==window.Audio?this.data=new Audio:this.data=document.createElement(e),null!==this.data){if(!this.metadata.skipSource)if(navigator.isCocoonJS)this.data.src=Array.isArray(this.url)?this.url[0]:this.url;else if(Array.isArray(this.url))for(var t=this.metadata.mimeType,n=0;n<this.url.length;++n)this.data.appendChild(this._createSource(e,this.url[n],Array.isArray(t)?t[n]:t));else{var r=this.metadata.mimeType;this.data.appendChild(this._createSource(e,this.url,Array.isArray(r)?r[0]:r))}this.data.addEventListener("error",this._boundOnError,!1),this.data.addEventListener("load",this._boundComplete,!1),this.data.addEventListener("progress",this._boundOnProgress,!1),this.data.addEventListener("canplaythrough",this._boundComplete,!1),this.data.load()}else this.abort("Unsupported element: "+e)},e.prototype._loadXhr=function(){"string"!=typeof this.xhrType&&(this.xhrType=this._determineXhrType());var t=this.xhr=new XMLHttpRequest;t.open("GET",this.url,!0),this.xhrType===e.XHR_RESPONSE_TYPE.JSON||this.xhrType===e.XHR_RESPONSE_TYPE.DOCUMENT?t.responseType=e.XHR_RESPONSE_TYPE.TEXT:t.responseType=this.xhrType,t.addEventListener("error",this._boundXhrOnError,!1),t.addEventListener("abort",this._boundXhrOnAbort,!1),t.addEventListener("progress",this._boundOnProgress,!1),t.addEventListener("load",this._boundXhrOnLoad,!1),t.send()},e.prototype._loadXdr=function(){"string"!=typeof this.xhrType&&(this.xhrType=this._determineXhrType());var e=this.xhr=new XDomainRequest;e.timeout=5e3,e.onerror=this._boundXhrOnError,e.ontimeout=this._boundXdrOnTimeout,e.onprogress=this._boundOnProgress,e.onload=this._boundXhrOnLoad,e.open("GET",this.url,!0),setTimeout(function(){return e.send()},1)},e.prototype._createSource=function(e,t,n){n||(n=e+"/"+this._getExtension(t));var r=document.createElement("source");return r.src=t,r.type=n,r},e.prototype._onError=function(e){this.abort("Failed to load element using: "+e.target.nodeName)},e.prototype._onProgress=function(e){e&&e.lengthComputable&&this.onProgress.dispatch(this,e.loaded/e.total)},e.prototype._xhrOnError=function(){var e=this.xhr;this.abort(f(e)+" Request failed. Status: "+e.status+', text: "'+e.statusText+'"')},e.prototype._xhrOnAbort=function(){this.abort(f(this.xhr)+" Request was aborted by the user.")},e.prototype._xdrOnTimeout=function(){this.abort(f(this.xhr)+" Request timed out.")},e.prototype._xhrOnLoad=function(){var t=this.xhr,n="",r=void 0===t.status?200:t.status;if(""!==t.responseType&&"text"!==t.responseType&&void 0!==t.responseType||(n=t.responseText),0===r&&(n.length>0||t.responseType===e.XHR_RESPONSE_TYPE.BUFFER)?r=200:1223===r&&(r=204),2===(r/100|0)){if(this.xhrType===e.XHR_RESPONSE_TYPE.TEXT)this.data=n,this.type=e.TYPE.TEXT;else if(this.xhrType===e.XHR_RESPONSE_TYPE.JSON)try{this.data=JSON.parse(n),this.type=e.TYPE.JSON}catch(e){return void this.abort("Error trying to parse loaded json: "+e)}else if(this.xhrType===e.XHR_RESPONSE_TYPE.DOCUMENT)try{if(window.DOMParser){var o=new DOMParser;this.data=o.parseFromString(n,"text/xml")}else{var i=document.createElement("div");i.innerHTML=n,this.data=i}this.type=e.TYPE.XML}catch(e){return void this.abort("Error trying to parse loaded xml: "+e)}else this.data=t.response||n;this.complete()}else this.abort("["+t.status+"] "+t.statusText+": "+t.responseURL)},e.prototype._determineCrossOrigin=function(e,t){if(0===e.indexOf("data:"))return"";t=t||window.location,u||(u=document.createElement("a")),u.href=e;var n=!(e=(0,o.default)(u.href,{strictMode:!0})).port&&""===t.port||e.port===t.port,r=e.protocol?e.protocol+":":"";return e.host===t.hostname&&n&&r===t.protocol?"":"anonymous"},e.prototype._determineXhrType=function(){return e._xhrTypeMap[this.extension]||e.XHR_RESPONSE_TYPE.TEXT},e.prototype._determineLoadType=function(){return e._loadTypeMap[this.extension]||e.LOAD_TYPE.XHR},e.prototype._getExtension=function(){var e=this.url,t="";if(this.isDataUrl){var n=e.indexOf("/");t=e.substring(n+1,e.indexOf(";",n))}else{var r=e.indexOf("?"),o=e.indexOf("#"),i=Math.min(r>-1?r:e.length,o>-1?o:e.length);t=(e=e.substring(0,i)).substring(e.lastIndexOf(".")+1)}return t.toLowerCase()},e.prototype._getMimeFromXhrType=function(t){switch(t){case e.XHR_RESPONSE_TYPE.BUFFER:return"application/octet-binary";case e.XHR_RESPONSE_TYPE.BLOB:return"application/blob";case e.XHR_RESPONSE_TYPE.DOCUMENT:return"application/xml";case e.XHR_RESPONSE_TYPE.JSON:return"application/json";case e.XHR_RESPONSE_TYPE.DEFAULT:case e.XHR_RESPONSE_TYPE.TEXT:default:return"text/plain"}},r(e,[{key:"isDataUrl",get:function(){return this._hasFlag(e.STATUS_FLAGS.DATA_URL)}},{key:"isComplete",get:function(){return this._hasFlag(e.STATUS_FLAGS.COMPLETE)}},{key:"isLoading",get:function(){return this._hasFlag(e.STATUS_FLAGS.LOADING)}}]),e}();function d(e,t,n){t&&0===t.indexOf(".")&&(t=t.substring(1)),t&&(e[t]=n)}function f(e){return e.toString().replace("object ","")}t.default=c,c.STATUS_FLAGS={NONE:0,DATA_URL:1,COMPLETE:2,LOADING:4},c.TYPE={UNKNOWN:0,JSON:1,XML:2,IMAGE:3,AUDIO:4,VIDEO:5,TEXT:6},c.LOAD_TYPE={XHR:1,IMAGE:2,AUDIO:3,VIDEO:4},c.XHR_RESPONSE_TYPE={DEFAULT:"text",BUFFER:"arraybuffer",BLOB:"blob",DOCUMENT:"document",JSON:"json",TEXT:"text"},c._loadTypeMap={gif:c.LOAD_TYPE.IMAGE,png:c.LOAD_TYPE.IMAGE,bmp:c.LOAD_TYPE.IMAGE,jpg:c.LOAD_TYPE.IMAGE,jpeg:c.LOAD_TYPE.IMAGE,tif:c.LOAD_TYPE.IMAGE,tiff:c.LOAD_TYPE.IMAGE,webp:c.LOAD_TYPE.IMAGE,tga:c.LOAD_TYPE.IMAGE,svg:c.LOAD_TYPE.IMAGE,"svg+xml":c.LOAD_TYPE.IMAGE,mp3:c.LOAD_TYPE.AUDIO,ogg:c.LOAD_TYPE.AUDIO,wav:c.LOAD_TYPE.AUDIO,mp4:c.LOAD_TYPE.VIDEO,webm:c.LOAD_TYPE.VIDEO},c._xhrTypeMap={xhtml:c.XHR_RESPONSE_TYPE.DOCUMENT,html:c.XHR_RESPONSE_TYPE.DOCUMENT,htm:c.XHR_RESPONSE_TYPE.DOCUMENT,xml:c.XHR_RESPONSE_TYPE.DOCUMENT,tmx:c.XHR_RESPONSE_TYPE.DOCUMENT,svg:c.XHR_RESPONSE_TYPE.DOCUMENT,tsx:c.XHR_RESPONSE_TYPE.DOCUMENT,gif:c.XHR_RESPONSE_TYPE.BLOB,png:c.XHR_RESPONSE_TYPE.BLOB,bmp:c.XHR_RESPONSE_TYPE.BLOB,jpg:c.XHR_RESPONSE_TYPE.BLOB,jpeg:c.XHR_RESPONSE_TYPE.BLOB,tif:c.XHR_RESPONSE_TYPE.BLOB,tiff:c.XHR_RESPONSE_TYPE.BLOB,webp:c.XHR_RESPONSE_TYPE.BLOB,tga:c.XHR_RESPONSE_TYPE.BLOB,json:c.XHR_RESPONSE_TYPE.JSON,text:c.XHR_RESPONSE_TYPE.TEXT,txt:c.XHR_RESPONSE_TYPE.TEXT,ttf:c.XHR_RESPONSE_TYPE.BUFFER,otf:c.XHR_RESPONSE_TYPE.BUFFER},c.EMPTY_GIF="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){for(var t=6*e,n=new Uint16Array(t),r=0,o=0;r<t;r+=6,o+=4)n[r+0]=o+0,n[r+1]=o+1,n[r+2]=o+2,n[r+3]=o+0,n[r+4]=o+2,n[r+5]=o+3;return n}},function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(5),i=n(111);var a={getTintedTexture:function(e,t){var n=e._texture,r="#"+("00000"+(0|(t=a.roundColor(t))).toString(16)).substr(-6);n.tintCache=n.tintCache||{};var o=n.tintCache[r],i=void 0;if(o){if(o.tintId===n._updateID)return n.tintCache[r];i=n.tintCache[r]}else i=a.canvas||document.createElement("canvas");if(a.tintMethod(n,t,i),i.tintId=n._updateID,a.convertTintToImage){var s=new Image;s.src=i.toDataURL(),n.tintCache[r]=s}else n.tintCache[r]=i,a.canvas=null;return i},tintWithMultiply:function(e,t,n){var r=n.getContext("2d"),o=e._frame.clone(),i=e.baseTexture.resolution;o.x*=i,o.y*=i,o.width*=i,o.height*=i,n.width=Math.ceil(o.width),n.height=Math.ceil(o.height),r.save(),r.fillStyle="#"+("00000"+(0|t).toString(16)).substr(-6),r.fillRect(0,0,o.width,o.height),r.globalCompositeOperation="multiply",r.drawImage(e.baseTexture.source,o.x,o.y,o.width,o.height,0,0,o.width,o.height),r.globalCompositeOperation="destination-atop",r.drawImage(e.baseTexture.source,o.x,o.y,o.width,o.height,0,0,o.width,o.height),r.restore()},tintWithOverlay:function(e,t,n){var r=n.getContext("2d"),o=e._frame.clone(),i=e.baseTexture.resolution;o.x*=i,o.y*=i,o.width*=i,o.height*=i,n.width=Math.ceil(o.width),n.height=Math.ceil(o.height),r.save(),r.globalCompositeOperation="copy",r.fillStyle="#"+("00000"+(0|t).toString(16)).substr(-6),r.fillRect(0,0,o.width,o.height),r.globalCompositeOperation="destination-atop",r.drawImage(e.baseTexture.source,o.x,o.y,o.width,o.height,0,0,o.width,o.height),r.restore()},tintWithPerPixel:function(e,t,n){var r=n.getContext("2d"),i=e._frame.clone(),a=e.baseTexture.resolution;i.x*=a,i.y*=a,i.width*=a,i.height*=a,n.width=Math.ceil(i.width),n.height=Math.ceil(i.height),r.save(),r.globalCompositeOperation="copy",r.drawImage(e.baseTexture.source,i.x,i.y,i.width,i.height,0,0,i.width,i.height),r.restore();for(var s=(0,o.hex2rgb)(t),u=s[0],l=s[1],c=s[2],d=r.getImageData(0,0,i.width,i.height),f=d.data,h=0;h<f.length;h+=4)f[h+0]*=u,f[h+1]*=l,f[h+2]*=c;r.putImageData(d,0,0)},roundColor:function(e){var t=a.cacheStepsPerColorChannel,n=(0,o.hex2rgb)(e);return n[0]=Math.min(255,n[0]/t*t),n[1]=Math.min(255,n[1]/t*t),n[2]=Math.min(255,n[2]/t*t),(0,o.rgb2hex)(n)},cacheStepsPerColorChannel:8,convertTintToImage:!1,canUseMultiply:(0,((r=i)&&r.__esModule?r:{default:r}).default)(),tintMethod:0};a.tintMethod=a.canUseMultiply?a.tintWithMultiply:a.tintWithPerPixel,t.default=a},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.__esModule=!0;var o=i(n(113));function i(e){return e&&e.__esModule?e:{default:e}}var a=function(e){function t(n,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=null;if(!(n instanceof o.default)){var s=arguments[1],u=arguments[2],l=arguments[3],c=arguments[4];console.warn("Please use RenderTexture.create("+s+", "+u+") instead of the ctor directly."),a=arguments[0],i=null,n=new o.default(s,u,l,c)}var d=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":r(t))&&"function"!=typeof t?e:t}(this,e.call(this,n,i));return d.legacyRenderer=a,d.valid=!0,d._updateUvs(),d}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":r(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.resize=function(e,t,n){e=Math.ceil(e),t=Math.ceil(t),this.valid=e>0&&t>0,this._frame.width=this.orig.width=e,this._frame.height=this.orig.height=t,n||this.baseTexture.resize(e,t),this._updateUvs()},t.create=function(e,n,r,i){return new t(new o.default(e,n,r,i))},t}(i(n(16)).default);t.default=a},function(e,t,n){"use strict";t.__esModule=!0,t.Ticker=t.shared=void 0;var r,o=n(261),i=(r=o)&&r.__esModule?r:{default:r};var a=new i.default;a.autoStart=!0,a.destroy=function(){},t.shared=a,t.Ticker=i.default},function(e,t,n){"use strict";"use restrict";function r(e){var t=32;return(e&=-e)&&t--,65535&e&&(t-=16),16711935&e&&(t-=8),252645135&e&&(t-=4),858993459&e&&(t-=2),1431655765&e&&(t-=1),t}t.INT_BITS=32,t.INT_MAX=2147483647,t.INT_MIN=-1<<31,t.sign=function(e){return(e>0)-(e<0)},t.abs=function(e){var t=e>>31;return(e^t)-t},t.min=function(e,t){return t^(e^t)&-(e<t)},t.max=function(e,t){return e^(e^t)&-(e<t)},t.isPow2=function(e){return!(e&e-1||!e)},t.log2=function(e){var t,n;return t=(e>65535)<<4,t|=n=((e>>>=t)>255)<<3,t|=n=((e>>>=n)>15)<<2,(t|=n=((e>>>=n)>3)<<1)|(e>>>=n)>>1},t.log10=function(e){return e>=1e9?9:e>=1e8?8:e>=1e7?7:e>=1e6?6:e>=1e5?5:e>=1e4?4:e>=1e3?3:e>=100?2:e>=10?1:0},t.popCount=function(e){return 16843009*((e=(858993459&(e-=e>>>1&1431655765))+(e>>>2&858993459))+(e>>>4)&252645135)>>>24},t.countTrailingZeros=r,t.nextPow2=function(e){return e+=0===e,--e,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,(e|=e>>>16)+1},t.prevPow2=function(e){return e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,(e|=e>>>16)-(e>>>1)},t.parity=function(e){return e^=e>>>16,e^=e>>>8,e^=e>>>4,27030>>>(e&=15)&1};var o=new Array(256);!function(e){for(var t=0;t<256;++t){var n=t,r=t,o=7;for(n>>>=1;n;n>>>=1)r<<=1,r|=1&n,--o;e[t]=r<<o&255}}(o),t.reverse=function(e){return o[255&e]<<24|o[e>>>8&255]<<16|o[e>>>16&255]<<8|o[e>>>24&255]},t.interleave2=function(e,t){return(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e&=65535)|e<<8))|e<<4))|e<<2))|e<<1))|(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t&=65535)|t<<8))|t<<4))|t<<2))|t<<1))<<1},t.deinterleave2=function(e,t){return(e=65535&((e=16711935&((e=252645135&((e=858993459&((e=e>>>t&1431655765)|e>>>1))|e>>>2))|e>>>4))|e>>>16))<<16>>16},t.interleave3=function(e,t,n){return e=1227133513&((e=3272356035&((e=251719695&((e=4278190335&((e&=1023)|e<<16))|e<<8))|e<<4))|e<<2),(e|=(t=1227133513&((t=3272356035&((t=251719695&((t=4278190335&((t&=1023)|t<<16))|t<<8))|t<<4))|t<<2))<<1)|(n=1227133513&((n=3272356035&((n=251719695&((n=4278190335&((n&=1023)|n<<16))|n<<8))|n<<4))|n<<2))<<2},t.deinterleave3=function(e,t){return(e=1023&((e=4278190335&((e=251719695&((e=3272356035&((e=e>>>t&1227133513)|e>>>2))|e>>>4))|e>>>8))|e>>>16))<<22>>22},t.nextCombination=function(e){var t=e|e-1;return t+1|(~t&-~t)-1>>>r(e)+1}},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.__esModule=!0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(9),a=n(5),s=n(3),u=c(n(16)),l=c(n(30));function c(e){return e&&e.__esModule?e:{default:e}}var d=new i.Point,f=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":r(t))&&"function"!=typeof t?e:t}(this,e.call(this));return o._anchor=new i.ObservablePoint(o._onAnchorUpdate,o),o._texture=null,o._width=0,o._height=0,o._tint=null,o._tintRGB=null,o.tint=16777215,o.blendMode=s.BLEND_MODES.NORMAL,o.shader=null,o.cachedTint=16777215,o.texture=n||u.default.EMPTY,o.vertexData=new Float32Array(8),o.vertexTrimmedData=null,o._transformID=-1,o._textureID=-1,o._transformTrimmedID=-1,o._textureTrimmedID=-1,o.pluginName="sprite",o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":r(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype._onTextureUpdate=function(){this._textureID=-1,this._textureTrimmedID=-1,this.cachedTint=16777215,this._width&&(this.scale.x=(0,a.sign)(this.scale.x)*this._width/this._texture.orig.width),this._height&&(this.scale.y=(0,a.sign)(this.scale.y)*this._height/this._texture.orig.height)},t.prototype._onAnchorUpdate=function(){this._transformID=-1,this._transformTrimmedID=-1},t.prototype.calculateVertices=function(){if(this._transformID!==this.transform._worldID||this._textureID!==this._texture._updateID){this._transformID=this.transform._worldID,this._textureID=this._texture._updateID;var e=this._texture,t=this.transform.worldTransform,n=t.a,r=t.b,o=t.c,i=t.d,a=t.tx,s=t.ty,u=this.vertexData,l=e.trim,c=e.orig,d=this._anchor,f=0,h=0,p=0,y=0;l?(f=(h=l.x-d._x*c.width)+l.width,p=(y=l.y-d._y*c.height)+l.height):(f=(h=-d._x*c.width)+c.width,p=(y=-d._y*c.height)+c.height),u[0]=n*h+o*y+a,u[1]=i*y+r*h+s,u[2]=n*f+o*y+a,u[3]=i*y+r*f+s,u[4]=n*f+o*p+a,u[5]=i*p+r*f+s,u[6]=n*h+o*p+a,u[7]=i*p+r*h+s}},t.prototype.calculateTrimmedVertices=function(){if(this.vertexTrimmedData){if(this._transformTrimmedID===this.transform._worldID&&this._textureTrimmedID===this._texture._updateID)return}else this.vertexTrimmedData=new Float32Array(8);this._transformTrimmedID=this.transform._worldID,this._textureTrimmedID=this._texture._updateID;var e=this._texture,t=this.vertexTrimmedData,n=e.orig,r=this._anchor,o=this.transform.worldTransform,i=o.a,a=o.b,s=o.c,u=o.d,l=o.tx,c=o.ty,d=-r._x*n.width,f=d+n.width,h=-r._y*n.height,p=h+n.height;t[0]=i*d+s*h+l,t[1]=u*h+a*d+c,t[2]=i*f+s*h+l,t[3]=u*h+a*f+c,t[4]=i*f+s*p+l,t[5]=u*p+a*f+c,t[6]=i*d+s*p+l,t[7]=u*p+a*d+c},t.prototype._renderWebGL=function(e){this.calculateVertices(),e.setObjectRenderer(e.plugins[this.pluginName]),e.plugins[this.pluginName].render(this)},t.prototype._renderCanvas=function(e){e.plugins[this.pluginName].render(this)},t.prototype._calculateBounds=function(){var e=this._texture.trim,t=this._texture.orig;!e||e.width===t.width&&e.height===t.height?(this.calculateVertices(),this._bounds.addQuad(this.vertexData)):(this.calculateTrimmedVertices(),this._bounds.addQuad(this.vertexTrimmedData))},t.prototype.getLocalBounds=function(t){return 0===this.children.length?(this._bounds.minX=this._texture.orig.width*-this._anchor._x,this._bounds.minY=this._texture.orig.height*-this._anchor._y,this._bounds.maxX=this._texture.orig.width*(1-this._anchor._x),this._bounds.maxY=this._texture.orig.height*(1-this._anchor._y),t||(this._localBoundsRect||(this._localBoundsRect=new i.Rectangle),t=this._localBoundsRect),this._bounds.getRectangle(t)):e.prototype.getLocalBounds.call(this,t)},t.prototype.containsPoint=function(e){this.worldTransform.applyInverse(e,d);var t=this._texture.orig.width,n=this._texture.orig.height,r=-t*this.anchor.x,o=0;return d.x>=r&&d.x<r+t&&(o=-n*this.anchor.y,d.y>=o&&d.y<o+n)},t.prototype.destroy=function(t){if(e.prototype.destroy.call(this,t),this._anchor=null,"boolean"==typeof t?t:t&&t.texture){var n="boolean"==typeof t?t:t&&t.baseTexture;this._texture.destroy(!!n)}this._texture=null,this.shader=null},t.from=function(e){return new t(u.default.from(e))},t.fromFrame=function(e){var n=a.TextureCache[e];if(!n)throw new Error('The frameId "'+e+'" does not exist in the texture cache');return new t(n)},t.fromImage=function(e,n,r){return new t(u.default.fromImage(e,n,r))},o(t,[{key:"width",get:function(){return Math.abs(this.scale.x)*this._texture.orig.width},set:function(e){var t=(0,a.sign)(this.scale.x)||1;this.scale.x=t*e/this._texture.orig.width,this._width=e}},{key:"height",get:function(){return Math.abs(this.scale.y)*this._texture.orig.height},set:function(e){var t=(0,a.sign)(this.scale.y)||1;this.scale.y=t*e/this._texture.orig.height,this._height=e}},{key:"anchor",get:function(){return this._anchor},set:function(e){this._anchor.copy(e)}},{key:"tint",get:function(){return this._tint},set:function(e){this._tint=e,this._tintRGB=(e>>16)+(65280&e)+((255&e)<<16)}},{key:"texture",get:function(){return this._texture},set:function(e){this._texture!==e&&(this._texture=e,this.cachedTint=16777215,this._textureID=-1,this._textureTrimmedID=-1,e&&(e.baseTexture.hasLoaded?this._onTextureUpdate():e.once("update",this._onTextureUpdate,this)))}}]),t}(l.default);t.default=f},function(e,t,n){"use strict";function r(e,t,n){n=n||2;var r,s,u,l,c,h,y,v=t&&t.length,m=v?t[0]*n:e.length,g=o(e,0,m,n,!0),b=[];if(!g)return b;if(v&&(g=function(e,t,n,r){var a,s,u,l,c,h=[];for(a=0,s=t.length;a<s;a++)u=t[a]*r,l=a<s-1?t[a+1]*r:e.length,(c=o(e,u,l,r,!1))===c.next&&(c.steiner=!0),h.push(p(c));for(h.sort(d),a=0;a<h.length;a++)f(h[a],n),n=i(n,n.next);return n}(e,t,g,n)),e.length>80*n){r=u=e[0],s=l=e[1];for(var _=n;_<m;_+=n)c=e[_],h=e[_+1],c<r&&(r=c),h<s&&(s=h),c>u&&(u=c),h>l&&(l=h);y=0!==(y=Math.max(u-r,l-s))?1/y:0}return a(g,b,n,r,s,y),b}function o(e,t,n,r,o){var i,a;if(o===T(e,t,n,r)>0)for(i=t;i<n;i+=r)a=w(i,e[i],e[i+1],a);else for(i=n-r;i>=t;i-=r)a=w(i,e[i],e[i+1],a);return a&&g(a,a.next)&&(E(a),a=a.next),a}function i(e,t){if(!e)return e;t||(t=e);var n,r=e;do{if(n=!1,r.steiner||!g(r,r.next)&&0!==m(r.prev,r,r.next))r=r.next;else{if(E(r),(r=t=r.prev)===r.next)break;n=!0}}while(n||r!==t);return t}function a(e,t,n,r,o,d,f){if(e){!f&&d&&function(e,t,n,r){var o=e;do{null===o.z&&(o.z=h(o.x,o.y,t,n,r)),o.prevZ=o.prev,o.nextZ=o.next,o=o.next}while(o!==e);o.prevZ.nextZ=null,o.prevZ=null,function(e){var t,n,r,o,i,a,s,u,l=1;do{for(n=e,e=null,i=null,a=0;n;){for(a++,r=n,s=0,t=0;t<l&&(s++,r=r.nextZ);t++);for(u=l;s>0||u>0&&r;)0!==s&&(0===u||!r||n.z<=r.z)?(o=n,n=n.nextZ,s--):(o=r,r=r.nextZ,u--),i?i.nextZ=o:e=o,o.prevZ=i,i=o;n=r}i.nextZ=null,l*=2}while(a>1)}(o)}(e,r,o,d);for(var p,y,v=e;e.prev!==e.next;)if(p=e.prev,y=e.next,d?u(e,r,o,d):s(e))t.push(p.i/n),t.push(e.i/n),t.push(y.i/n),E(e),e=y.next,v=y.next;else if((e=y)===v){f?1===f?a(e=l(e,t,n),t,n,r,o,d,2):2===f&&c(e,t,n,r,o,d):a(i(e),t,n,r,o,d,1);break}}}function s(e){var t=e.prev,n=e,r=e.next;if(m(t,n,r)>=0)return!1;for(var o=e.next.next;o!==e.prev;){if(y(t.x,t.y,n.x,n.y,r.x,r.y,o.x,o.y)&&m(o.prev,o,o.next)>=0)return!1;o=o.next}return!0}function u(e,t,n,r){var o=e.prev,i=e,a=e.next;if(m(o,i,a)>=0)return!1;for(var s=o.x<i.x?o.x<a.x?o.x:a.x:i.x<a.x?i.x:a.x,u=o.y<i.y?o.y<a.y?o.y:a.y:i.y<a.y?i.y:a.y,l=o.x>i.x?o.x>a.x?o.x:a.x:i.x>a.x?i.x:a.x,c=o.y>i.y?o.y>a.y?o.y:a.y:i.y>a.y?i.y:a.y,d=h(s,u,t,n,r),f=h(l,c,t,n,r),p=e.prevZ,v=e.nextZ;p&&p.z>=d&&v&&v.z<=f;){if(p!==e.prev&&p!==e.next&&y(o.x,o.y,i.x,i.y,a.x,a.y,p.x,p.y)&&m(p.prev,p,p.next)>=0)return!1;if(p=p.prevZ,v!==e.prev&&v!==e.next&&y(o.x,o.y,i.x,i.y,a.x,a.y,v.x,v.y)&&m(v.prev,v,v.next)>=0)return!1;v=v.nextZ}for(;p&&p.z>=d;){if(p!==e.prev&&p!==e.next&&y(o.x,o.y,i.x,i.y,a.x,a.y,p.x,p.y)&&m(p.prev,p,p.next)>=0)return!1;p=p.prevZ}for(;v&&v.z<=f;){if(v!==e.prev&&v!==e.next&&y(o.x,o.y,i.x,i.y,a.x,a.y,v.x,v.y)&&m(v.prev,v,v.next)>=0)return!1;v=v.nextZ}return!0}function l(e,t,n){var r=e;do{var o=r.prev,i=r.next.next;!g(o,i)&&b(o,r,r.next,i)&&_(o,i)&&_(i,o)&&(t.push(o.i/n),t.push(r.i/n),t.push(i.i/n),E(r),E(r.next),r=e=i),r=r.next}while(r!==e);return r}function c(e,t,n,r,o,s){var u=e;do{for(var l=u.next.next;l!==u.prev;){if(u.i!==l.i&&v(u,l)){var c=x(u,l);return u=i(u,u.next),c=i(c,c.next),a(u,t,n,r,o,s),void a(c,t,n,r,o,s)}l=l.next}u=u.next}while(u!==e)}function d(e,t){return e.x-t.x}function f(e,t){if(t=function(e,t){var n,r=t,o=e.x,i=e.y,a=-1/0;do{if(i<=r.y&&i>=r.next.y&&r.next.y!==r.y){var s=r.x+(i-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(s<=o&&s>a){if(a=s,s===o){if(i===r.y)return r;if(i===r.next.y)return r.next}n=r.x<r.next.x?r:r.next}}r=r.next}while(r!==t);if(!n)return null;if(o===a)return n.prev;var u,l=n,c=n.x,d=n.y,f=1/0;r=n.next;for(;r!==l;)o>=r.x&&r.x>=c&&o!==r.x&&y(i<d?o:a,i,c,d,i<d?a:o,i,r.x,r.y)&&((u=Math.abs(i-r.y)/(o-r.x))<f||u===f&&r.x>n.x)&&_(r,e)&&(n=r,f=u),r=r.next;return n}(e,t)){var n=x(t,e);i(n,n.next)}}function h(e,t,n,r,o){return(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-n)*o)|e<<8))|e<<4))|e<<2))|e<<1))|(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-r)*o)|t<<8))|t<<4))|t<<2))|t<<1))<<1}function p(e){var t=e,n=e;do{t.x<n.x&&(n=t),t=t.next}while(t!==e);return n}function y(e,t,n,r,o,i,a,s){return(o-a)*(t-s)-(e-a)*(i-s)>=0&&(e-a)*(r-s)-(n-a)*(t-s)>=0&&(n-a)*(i-s)-(o-a)*(r-s)>=0}function v(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!function(e,t){var n=e;do{if(n.i!==e.i&&n.next.i!==e.i&&n.i!==t.i&&n.next.i!==t.i&&b(n,n.next,e,t))return!0;n=n.next}while(n!==e);return!1}(e,t)&&_(e,t)&&_(t,e)&&function(e,t){var n=e,r=!1,o=(e.x+t.x)/2,i=(e.y+t.y)/2;do{n.y>i!=n.next.y>i&&n.next.y!==n.y&&o<(n.next.x-n.x)*(i-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next}while(n!==e);return r}(e,t)}function m(e,t,n){return(t.y-e.y)*(n.x-t.x)-(t.x-e.x)*(n.y-t.y)}function g(e,t){return e.x===t.x&&e.y===t.y}function b(e,t,n,r){return!!(g(e,t)&&g(n,r)||g(e,r)&&g(n,t))||m(e,t,n)>0!=m(e,t,r)>0&&m(n,r,e)>0!=m(n,r,t)>0}function _(e,t){return m(e.prev,e,e.next)<0?m(e,t,e.next)>=0&&m(e,e.prev,t)>=0:m(e,t,e.prev)<0||m(e,e.next,t)<0}function x(e,t){var n=new S(e.i,e.x,e.y),r=new S(t.i,t.x,t.y),o=e.next,i=t.prev;return e.next=t,t.prev=e,n.next=o,o.prev=n,r.next=n,n.prev=r,i.next=r,r.prev=i,r}function w(e,t,n,r){var o=new S(e,t,n);return r?(o.next=r.next,o.prev=r,r.next.prev=o,r.next=o):(o.prev=o,o.next=o),o}function E(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function S(e,t,n){this.i=e,this.x=t,this.y=n,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function T(e,t,n,r){for(var o=0,i=t,a=n-r;i<n;i+=r)o+=(e[a]-e[i])*(e[i+1]+e[a+1]),a=i;return o}e.exports=r,e.exports.default=r,r.deviation=function(e,t,n,r){var o=t&&t.length,i=o?t[0]*n:e.length,a=Math.abs(T(e,0,i,n));if(o)for(var s=0,u=t.length;s<u;s++){var l=t[s]*n,c=s<u-1?t[s+1]*n:e.length;a-=Math.abs(T(e,l,c,n))}var d=0;for(s=0;s<r.length;s+=3){var f=r[s]*n,h=r[s+1]*n,p=r[s+2]*n;d+=Math.abs((e[f]-e[p])*(e[h+1]-e[f+1])-(e[f]-e[h])*(e[p+1]-e[f+1]))}return 0===a&&0===d?0:Math.abs((d-a)/a)},r.flatten=function(e){for(var t=e[0][0].length,n={vertices:[],holes:[],dimensions:t},r=0,o=0;o<e.length;o++){for(var i=0;i<e[o].length;i++)for(var a=0;a<t;a++)n.vertices.push(e[o][i][a]);o>0&&(r+=e[o-1].length,n.holes.push(r))}return n}},function(e,t,n){"use strict";t.__esModule=!0;var r=n(9);var o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.worldTransform=new r.Matrix,this.localTransform=new r.Matrix,this._worldID=0,this._parentID=0}return e.prototype.updateLocalTransform=function(){},e.prototype.updateTransform=function(e){var t=e.worldTransform,n=this.worldTransform,r=this.localTransform;n.a=r.a*t.a+r.b*t.c,n.b=r.a*t.b+r.b*t.d,n.c=r.c*t.a+r.d*t.c,n.d=r.c*t.b+r.d*t.d,n.tx=r.tx*t.a+r.ty*t.c+t.tx,n.ty=r.tx*t.b+r.ty*t.d+t.ty,this._worldID++},e}();t.default=o,o.prototype.updateWorldTransform=o.prototype.updateTransform,o.IDENTITY=new o},function(e,t,n){"use strict";var r,o,i,a,s,u,l,c,d,f,h,p,y,v,m,g,b,_,x,w,E,S;
|
||
/**
|
||
* isMobile.js v0.4.1
|
||
*
|
||
* A simple library to detect Apple phones and tablets,
|
||
* Android phones and tablets, other mobile devices (like blackberry, mini-opera and windows phone),
|
||
* and any kind of seven inch device, via user agent sniffing.
|
||
*
|
||
* @author: Kai Mallea (kmallea@gmail.com)
|
||
*
|
||
* @license: http://creativecommons.org/publicdomain/zero/1.0/
|
||
*/
|
||
/**
|
||
* isMobile.js v0.4.1
|
||
*
|
||
* A simple library to detect Apple phones and tablets,
|
||
* Android phones and tablets, other mobile devices (like blackberry, mini-opera and windows phone),
|
||
* and any kind of seven inch device, via user agent sniffing.
|
||
*
|
||
* @author: Kai Mallea (kmallea@gmail.com)
|
||
*
|
||
* @license: http://creativecommons.org/publicdomain/zero/1.0/
|
||
*/
|
||
a=void 0,s=/iPhone/i,u=/iPod/i,l=/iPad/i,c=/(?=.*\bAndroid\b)(?=.*\bMobile\b)/i,d=/Android/i,f=/(?=.*\bAndroid\b)(?=.*\bSD4930UR\b)/i,h=/(?=.*\bAndroid\b)(?=.*\b(?:KFOT|KFTT|KFJWI|KFJWA|KFSOWI|KFTHWI|KFTHWA|KFAPWI|KFAPWA|KFARWI|KFASWI|KFSAWI|KFSAWA)\b)/i,p=/Windows Phone/i,y=/(?=.*\bWindows\b)(?=.*\bARM\b)/i,v=/BlackBerry/i,m=/BB10/i,g=/Opera Mini/i,b=/(CriOS|Chrome)(?=.*\bMobile\b)/i,_=/(?=.*\bFirefox\b)(?=.*\bMobile\b)/i,x=new RegExp("(?:Nexus 7|BNTV250|Kindle Fire|Silk|GT-P1000)","i"),w=function(e,t){return e.test(t)},E=function(e){var t=e||navigator.userAgent,n=t.split("[FBAN");if(void 0!==n[1]&&(t=n[0]),void 0!==(n=t.split("Twitter"))[1]&&(t=n[0]),this.apple={phone:w(s,t),ipod:w(u,t),tablet:!w(s,t)&&w(l,t),device:w(s,t)||w(u,t)||w(l,t)},this.amazon={phone:w(f,t),tablet:!w(f,t)&&w(h,t),device:w(f,t)||w(h,t)},this.android={phone:w(f,t)||w(c,t),tablet:!w(f,t)&&!w(c,t)&&(w(h,t)||w(d,t)),device:w(f,t)||w(h,t)||w(c,t)||w(d,t)},this.windows={phone:w(p,t),tablet:w(y,t),device:w(p,t)||w(y,t)},this.other={blackberry:w(v,t),blackberry10:w(m,t),opera:w(g,t),firefox:w(_,t),chrome:w(b,t),device:w(v,t)||w(m,t)||w(g,t)||w(_,t)||w(b,t)},this.seven_inch=w(x,t),this.any=this.apple.device||this.android.device||this.windows.device||this.other.device||this.seven_inch,this.phone=this.apple.phone||this.android.phone||this.windows.phone,this.tablet=this.apple.tablet||this.android.tablet||this.windows.tablet,"undefined"==typeof window)return this},S=function(){var e=new E;return e.Class=E,e},void 0!==e&&e.exports&&"undefined"==typeof window?e.exports=E:void 0!==e&&e.exports&&"undefined"!=typeof window?e.exports=S():(o=[],r=a.isMobile=S(),void 0===(i="function"==typeof r?r.apply(t,o):r)||(e.exports=i))},function(e,t,n){"use strict";t.__esModule=!0;var r=n(9);var o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0,this.rect=null}return e.prototype.isEmpty=function(){return this.minX>this.maxX||this.minY>this.maxY},e.prototype.clear=function(){this.updateID++,this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0},e.prototype.getRectangle=function(e){return this.minX>this.maxX||this.minY>this.maxY?r.Rectangle.EMPTY:((e=e||new r.Rectangle(0,0,1,1)).x=this.minX,e.y=this.minY,e.width=this.maxX-this.minX,e.height=this.maxY-this.minY,e)},e.prototype.addPoint=function(e){this.minX=Math.min(this.minX,e.x),this.maxX=Math.max(this.maxX,e.x),this.minY=Math.min(this.minY,e.y),this.maxY=Math.max(this.maxY,e.y)},e.prototype.addQuad=function(e){var t=this.minX,n=this.minY,r=this.maxX,o=this.maxY,i=e[0],a=e[1];t=i<t?i:t,n=a<n?a:n,r=i>r?i:r,o=a>o?a:o,i=e[2],a=e[3],t=i<t?i:t,n=a<n?a:n,r=i>r?i:r,o=a>o?a:o,i=e[4],a=e[5],t=i<t?i:t,n=a<n?a:n,r=i>r?i:r,o=a>o?a:o,i=e[6],a=e[7],t=i<t?i:t,n=a<n?a:n,r=i>r?i:r,o=a>o?a:o,this.minX=t,this.minY=n,this.maxX=r,this.maxY=o},e.prototype.addFrame=function(e,t,n,r,o){var i=e.worldTransform,a=i.a,s=i.b,u=i.c,l=i.d,c=i.tx,d=i.ty,f=this.minX,h=this.minY,p=this.maxX,y=this.maxY,v=a*t+u*n+c,m=s*t+l*n+d;f=v<f?v:f,h=m<h?m:h,p=v>p?v:p,y=m>y?m:y,m=s*r+l*n+d,f=(v=a*r+u*n+c)<f?v:f,h=m<h?m:h,p=v>p?v:p,y=m>y?m:y,m=s*t+l*o+d,f=(v=a*t+u*o+c)<f?v:f,h=m<h?m:h,p=v>p?v:p,y=m>y?m:y,m=s*r+l*o+d,f=(v=a*r+u*o+c)<f?v:f,h=m<h?m:h,p=v>p?v:p,y=m>y?m:y,this.minX=f,this.minY=h,this.maxX=p,this.maxY=y},e.prototype.addVertices=function(e,t,n,r){for(var o=e.worldTransform,i=o.a,a=o.b,s=o.c,u=o.d,l=o.tx,c=o.ty,d=this.minX,f=this.minY,h=this.maxX,p=this.maxY,y=n;y<r;y+=2){var v=t[y],m=t[y+1],g=i*v+s*m+l,b=u*m+a*v+c;d=g<d?g:d,f=b<f?b:f,h=g>h?g:h,p=b>p?b:p}this.minX=d,this.minY=f,this.maxX=h,this.maxY=p},e.prototype.addBounds=function(e){var t=this.minX,n=this.minY,r=this.maxX,o=this.maxY;this.minX=e.minX<t?e.minX:t,this.minY=e.minY<n?e.minY:n,this.maxX=e.maxX>r?e.maxX:r,this.maxY=e.maxY>o?e.maxY:o},e.prototype.addBoundsMask=function(e,t){var n=e.minX>t.minX?e.minX:t.minX,r=e.minY>t.minY?e.minY:t.minY,o=e.maxX<t.maxX?e.maxX:t.maxX,i=e.maxY<t.maxY?e.maxY:t.maxY;if(n<=o&&r<=i){var a=this.minX,s=this.minY,u=this.maxX,l=this.maxY;this.minX=n<a?n:a,this.minY=r<s?r:s,this.maxX=o>u?o:u,this.maxY=i>l?i:l}},e.prototype.addBoundsArea=function(e,t){var n=e.minX>t.x?e.minX:t.x,r=e.minY>t.y?e.minY:t.y,o=e.maxX<t.x+t.width?e.maxX:t.x+t.width,i=e.maxY<t.y+t.height?e.maxY:t.y+t.height;if(n<=o&&r<=i){var a=this.minX,s=this.minY,u=this.maxX,l=this.maxY;this.minX=n<a?n:a,this.minY=r<s?r:s,this.maxX=o>u?o:u,this.maxY=i>l?i:l}},e}();t.default=o},function(e,t,n){"use strict";var r=null,o={FLOAT:"float",FLOAT_VEC2:"vec2",FLOAT_VEC3:"vec3",FLOAT_VEC4:"vec4",INT:"int",INT_VEC2:"ivec2",INT_VEC3:"ivec3",INT_VEC4:"ivec4",BOOL:"bool",BOOL_VEC2:"bvec2",BOOL_VEC3:"bvec3",BOOL_VEC4:"bvec4",FLOAT_MAT2:"mat2",FLOAT_MAT3:"mat3",FLOAT_MAT4:"mat4",SAMPLER_2D:"sampler2D"};e.exports=function(e,t){if(!r){var n=Object.keys(o);r={};for(var i=0;i<n.length;++i){var a=n[i];r[e[a]]=o[a]}}return r[t]}},function(e,t,n){"use strict";t.__esModule=!0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(3);var i=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.x=Number(t),this.y=Number(n),this.width=Number(r),this.height=Number(i),this.type=o.SHAPES.RECT}return e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this.width=e.width,this.height=e.height,this},e.prototype.contains=function(e,t){return!(this.width<=0||this.height<=0)&&(e>=this.x&&e<this.x+this.width&&t>=this.y&&t<this.y+this.height)},e.prototype.pad=function(e,t){e=e||0,t=t||(0!==t?e:0),this.x-=e,this.y-=t,this.width+=2*e,this.height+=2*t},e.prototype.fit=function(e){this.x<e.x&&(this.width+=this.x,this.width<0&&(this.width=0),this.x=e.x),this.y<e.y&&(this.height+=this.y,this.height<0&&(this.height=0),this.y=e.y),this.x+this.width>e.x+e.width&&(this.width=e.width-this.x,this.width<0&&(this.width=0)),this.y+this.height>e.y+e.height&&(this.height=e.height-this.y,this.height<0&&(this.height=0))},e.prototype.enlarge=function(e){var t=Math.min(this.x,e.x),n=Math.max(this.x+this.width,e.x+e.width),r=Math.min(this.y,e.y),o=Math.max(this.y+this.height,e.y+e.height);this.x=t,this.width=n-t,this.y=r,this.height=o-r},r(e,[{key:"left",get:function(){return this.x}},{key:"right",get:function(){return this.x+this.width}},{key:"top",get:function(){return this.y}},{key:"bottom",get:function(){return this.y+this.height}}],[{key:"EMPTY",get:function(){return new e(0,0,0,0)}}]),e}();t.default=i},function(e,t,n){"use strict";t.__esModule=!0;var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(64),a=(r=i)&&r.__esModule?r:{default:r},s=n(3);var u=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.a=t,this.b=n,this.c=r,this.d=o,this.tx=i,this.ty=a,this.array=null}return e.prototype.fromArray=function(e){this.a=e[0],this.b=e[1],this.c=e[3],this.d=e[4],this.tx=e[2],this.ty=e[5]},e.prototype.set=function(e,t,n,r,o,i){return this.a=e,this.b=t,this.c=n,this.d=r,this.tx=o,this.ty=i,this},e.prototype.toArray=function(e,t){this.array||(this.array=new Float32Array(9));var n=t||this.array;return e?(n[0]=this.a,n[1]=this.b,n[2]=0,n[3]=this.c,n[4]=this.d,n[5]=0,n[6]=this.tx,n[7]=this.ty,n[8]=1):(n[0]=this.a,n[1]=this.c,n[2]=this.tx,n[3]=this.b,n[4]=this.d,n[5]=this.ty,n[6]=0,n[7]=0,n[8]=1),n},e.prototype.apply=function(e,t){t=t||new a.default;var n=e.x,r=e.y;return t.x=this.a*n+this.c*r+this.tx,t.y=this.b*n+this.d*r+this.ty,t},e.prototype.applyInverse=function(e,t){t=t||new a.default;var n=1/(this.a*this.d+this.c*-this.b),r=e.x,o=e.y;return t.x=this.d*n*r+-this.c*n*o+(this.ty*this.c-this.tx*this.d)*n,t.y=this.a*n*o+-this.b*n*r+(-this.ty*this.a+this.tx*this.b)*n,t},e.prototype.translate=function(e,t){return this.tx+=e,this.ty+=t,this},e.prototype.scale=function(e,t){return this.a*=e,this.d*=t,this.c*=e,this.b*=t,this.tx*=e,this.ty*=t,this},e.prototype.rotate=function(e){var t=Math.cos(e),n=Math.sin(e),r=this.a,o=this.c,i=this.tx;return this.a=r*t-this.b*n,this.b=r*n+this.b*t,this.c=o*t-this.d*n,this.d=o*n+this.d*t,this.tx=i*t-this.ty*n,this.ty=i*n+this.ty*t,this},e.prototype.append=function(e){var t=this.a,n=this.b,r=this.c,o=this.d;return this.a=e.a*t+e.b*r,this.b=e.a*n+e.b*o,this.c=e.c*t+e.d*r,this.d=e.c*n+e.d*o,this.tx=e.tx*t+e.ty*r+this.tx,this.ty=e.tx*n+e.ty*o+this.ty,this},e.prototype.setTransform=function(e,t,n,r,o,i,a,s,u){return this.a=Math.cos(a+u)*o,this.b=Math.sin(a+u)*o,this.c=-Math.sin(a-s)*i,this.d=Math.cos(a-s)*i,this.tx=e-(n*this.a+r*this.c),this.ty=t-(n*this.b+r*this.d),this},e.prototype.prepend=function(e){var t=this.tx;if(1!==e.a||0!==e.b||0!==e.c||1!==e.d){var n=this.a,r=this.c;this.a=n*e.a+this.b*e.c,this.b=n*e.b+this.b*e.d,this.c=r*e.a+this.d*e.c,this.d=r*e.b+this.d*e.d}return this.tx=t*e.a+this.ty*e.c+e.tx,this.ty=t*e.b+this.ty*e.d+e.ty,this},e.prototype.decompose=function(e){var t=this.a,n=this.b,r=this.c,o=this.d,i=-Math.atan2(-r,o),a=Math.atan2(n,t),u=Math.abs(i+a);return u<1e-5||Math.abs(s.PI_2-u)<1e-5?(e.rotation=a,t<0&&o>=0&&(e.rotation+=e.rotation<=0?Math.PI:-Math.PI),e.skew.x=e.skew.y=0):(e.rotation=0,e.skew.x=i,e.skew.y=a),e.scale.x=Math.sqrt(t*t+n*n),e.scale.y=Math.sqrt(r*r+o*o),e.position.x=this.tx,e.position.y=this.ty,e},e.prototype.invert=function(){var e=this.a,t=this.b,n=this.c,r=this.d,o=this.tx,i=e*r-t*n;return this.a=r/i,this.b=-t/i,this.c=-n/i,this.d=e/i,this.tx=(n*this.ty-r*o)/i,this.ty=-(e*this.ty-t*o)/i,this},e.prototype.identity=function(){return this.a=1,this.b=0,this.c=0,this.d=1,this.tx=0,this.ty=0,this},e.prototype.clone=function(){var t=new e;return t.a=this.a,t.b=this.b,t.c=this.c,t.d=this.d,t.tx=this.tx,t.ty=this.ty,t},e.prototype.copy=function(e){return e.a=this.a,e.b=this.b,e.c=this.c,e.d=this.d,e.tx=this.tx,e.ty=this.ty,e},o(e,null,[{key:"IDENTITY",get:function(){return new e}},{key:"TEMP_MATRIX",get:function(){return new e}}]),e}();t.default=u},function(e,t,n){"use strict";t.__esModule=!0;var r=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.x=t,this.y=n}return e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.copy=function(e){this.set(e.x,e.y)},e.prototype.equals=function(e){return e.x===this.x&&e.y===this.y},e.prototype.set=function(e,t){this.x=e||0,this.y=t||(0!==t?this.x:0)},e}();t.default=r},function(e,t,n){"use strict";var r=n(157);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=n(11),i=n(42),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;e.exports=function(e,t){if(o(e))return!1;var n=void 0===e?"undefined":r(e);return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!i(e))||s.test(e)||!a.test(e)||null!=t&&e in Object(t)}},function(e,t,n){"use strict";var r=n(394),o=n(151),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),r(a(e),function(t){return i.call(e,t)}))}:o;e.exports=s},function(e,t,n){"use strict";var r=n(414),o=n(407),i=n(405),a=n(404),s=n(403);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=s,e.exports=u},function(e,t,n){"use strict";var r=n(19)(n(13),"Map");e.exports=r},function(e,t,n){"use strict";e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t,n){"use strict";var r=n(46),o=n(423),i=n(422),a=n(421),s=n(420),u=n(419);function l(e){var t=this.__data__=new r(e);this.size=t.size}l.prototype.clear=o,l.prototype.delete=i,l.prototype.get=a,l.prototype.has=s,l.prototype.set=u,e.exports=l},function(e,t,n){"use strict";var r=n(165)(Object.getPrototypeOf,Object);e.exports=r},function(e,t,n){"use strict";var r=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||r)}},function(e,t,n){"use strict";var r=9007199254740991;e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}},function(e,t,n){"use strict";(function(e){var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=n(13),i=n(438),a="object"==r(t)&&t&&!t.nodeType&&t,s=a&&"object"==r(e)&&e&&!e.nodeType&&e,u=s&&s.exports===a?o.Buffer:void 0,l=(u?u.isBuffer:void 0)||i;e.exports=l}).call(this,n(33)(e))},function(e,t,n){"use strict";var r=n(170),o=n(163);e.exports=function(e,t){return e&&r(e,o(t))}},function(e,t,n){"use strict";if(Object.defineProperty(t,"__esModule",{value:!0}),t.requestSetting=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;if("active"===e)return!1;var n=localStorage.getItem(e);return null===n||void 0===n?t:"true"===n||"false"===n?"true"===n:n},t.saveSetting=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;localStorage.setItem(e,t)},t.getUserThemes=r,t.saveTheme=function(e,t){var n=r();n[e]=t,localStorage.setItem("themes",JSON.stringify(n))},t.deleteTheme=function(e){var t=r();delete t[e],localStorage.setItem("themes",JSON.stringify(t))},!(t.LOCALSTORAGE_ENABLED="undefined"!=typeof Storage))throw window.notifications.generate("localStorage not supported. Theme unable to function!","error"),"localStorage not supported. Theme unable to function!";function r(){var e=localStorage.getItem("themes");return e=null===e||void 0===e?{}:JSON.parse(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(e);try{throw new Error(e)}catch(e){}}},function(e,t,n){"use strict";var r=function(e){};e.exports=function(e,t,n,o,i,a,s,u){if(r(t),!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,o,i,a,s,u],d=0;(l=new Error(t.replace(/%s/g,function(){return c[d++]}))).name="Invariant Violation"}throw l.framesToPop=1,l}}},function(e,t,n){"use strict";
|
||
/*
|
||
object-assign
|
||
(c) Sindre Sorhus
|
||
@license MIT
|
||
*/var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,a,s=function(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),u=1;u<arguments.length;u++){for(var l in n=Object(arguments[u]))o.call(n,l)&&(s[l]=n[l]);if(r){a=r(n);for(var c=0;c<a.length;c++)i.call(n,a[c])&&(s[a[c]]=n[a[c]])}}return s}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsReducer=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.addAdditionalSettings=function(e){var t={active:!1,minimized:!1,distro:!0===window.__debug?"src/test/logos/archlinux.png":"/usr/share/lightdm-webkit/themes/lightdm-webkit-theme-aether/src/img/logos/archlinux.png",page_zoom:1,avatar_enabled:!0,avatar_size:"200px",avatar_shape:"circle",avatar_background_enabled:!0,font_scale:1,date_enabled:!0,date_format:"<em>%A</em>, the <em>%o</em> of <em>%B</em>",experimental_stars_enabled:!1,time_enabled:!0,time_format:"%H:%M",hostname_enabled:!0,user_switcher_enabled:!0,command_shutdown_enabled:!0,command_reboot_enabled:!0,command_hibernate_enabled:!0,command_sleep_enabled:!0,command_icons_enabled:!0,command_text_align:"left",style_command_background_color:"hsla(0, 0%, 22%, 1)",style_command_icon_color:"hsla(349, 98%, 65%, 1)",style_command_text_color:"hsla(0, 100%, 100%, 1)",style_login_border_color:"hsla(0, 100%, 100%, 0.1)",style_login_border_enabled:!0,style_login_button_color:"hsla(0, 100%, 100%, 0.22)",style_login_gradient_top_color:"hsla(18, 100%, 61%, 0.66)",style_login_gradient_bottom_color:"hsla(339, 94%, 64%, 1)",style_login_username_color:"hsla(0, 100%, 100%, 1)",window_border_radius:"4px",window_font_size:"1em"},n={},i=!0,a=!1,s=void 0;try{for(var u,l=Object.keys(t)[Symbol.iterator]();!(i=(u=l.next()).done);i=!0){var c=u.value;n[c]=o.requestSetting(c,t[c])}}catch(e){a=!0,s=e}finally{try{!i&&l.return&&l.return()}finally{if(a)throw s}}return r({},e,{settings:n,cachedSettings:n})};var o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(77)),i=n(39);t.SettingsReducer=function(e,t){switch(t.type){case"SETTINGS_LOGO_CHANGE":var n=r({},e.settings,{distro:t.path});return r({},e,{settings:n});case"SETTINGS_REJECT":n=r({},e.cachedSettings);return window.notifications.generate("Reverted to previous settings, no changes saved.","success"),(0,i.setPageZoom)(n.page_zoom),r({},e,{settings:n});case"SETTINGS_APPLY_THEME":n=r({},e.cachedSettings,t.theme);return window.notifications.generate("Loaded "+t.name+" theme. Remember to save!","success"),(0,i.setPageZoom)(n.page_zoom),r({},e,{settings:n});case"SETTINGS_SAVE":var a=!0,s=!1,u=void 0;try{for(var l,c=Object.keys(e.settings)[Symbol.iterator]();!(a=(l=c.next()).done);a=!0){var d=l.value;o.saveSetting(d,e.settings[d])}}catch(e){s=!0,u=e}finally{try{!a&&c.return&&c.return()}finally{if(s)throw u}}var f=r({},e.settings);return window.notifications.generate("Settings saved.","success"),r({},e,{cachedSettings:f});case"SETTINGS_SET_VALUE":return(n=r({},e.settings))[t.name]=t.value,(0,i.setPageZoom)(n.page_zoom),r({},e,{settings:n});case"SETTINGS_TOGGLE_ACTIVE":n=r({},e.settings,{active:!e.settings.active});var h=document.getElementById("settings");return!0===n.active?h.className=h.className.replace(" hidden",""):h.className+=" hidden",r({},e,{settings:n});case"SETTINGS_TOGGLE_VALUE":return(n=r({},e.settings))[t.name]=!n[t.name],r({},e,{settings:n});case"SETTINGS_WINDOW_MINIMIZE":var p=document.querySelectorAll(".settings-categories")[0],y=document.querySelectorAll(".settings-section")[0];return-1!==p.className.indexOf("minimize")?(p.className=p.className.replace("minimize",""),y.className=y.className.replace("minimize","")):(p.className=p.className+" minimize",y.className=y.className+" minimize"),e;default:return e}}},function(e,t,n){"use strict";t.__esModule=!0;var r=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.maxItemsPerFrame=t,this.itemsLeft=0}return e.prototype.beginFrame=function(){this.itemsLeft=this.maxItemsPerFrame},e.prototype.allowedToUpload=function(){return this.itemsLeft-- >0},e}();t.default=r},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.__esModule=!0;var o,i=n(25),a=(o=i)&&o.__esModule?o:{default:o};var s=function(e){function t(n,o,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var s=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":r(t))&&"function"!=typeof t?e:t}(this,e.call(this,n));return s._ready=!0,s.verticesX=o||10,s.verticesY=i||10,s.drawMode=a.default.DRAW_MODES.TRIANGLES,s.refresh(),s}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":r(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype._refresh=function(){for(var e=this._texture,t=this.verticesX*this.verticesY,n=[],r=[],o=[],i=this.verticesX-1,a=this.verticesY-1,s=e.width/i,u=e.height/a,l=0;l<t;l++){var c=l%this.verticesX,d=l/this.verticesX|0;n.push(c*s,d*u),r.push(c/i,d/a)}for(var f=i*a,h=0;h<f;h++){var p=h%i,y=h/i|0,v=y*this.verticesX+p,m=y*this.verticesX+p+1,g=(y+1)*this.verticesX+p,b=(y+1)*this.verticesX+p+1;o.push(v,m,g),o.push(m,b,g)}this.vertices=new Float32Array(n),this.uvs=new Float32Array(r),this.colors=new Float32Array([]),this.indices=new Uint16Array(o),this.dirty++,this.indexDirty++,this.multiplyUvs()},t.prototype._onTextureUpdate=function(){a.default.prototype._onTextureUpdate.call(this),this._ready&&this.refresh()},t}(a.default);t.default=s},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(){return function(e,t){e.data&&e.type===o.Resource.TYPE.IMAGE&&(e.texture=a.default.fromLoader(e.data,e.url,e.name)),t()}};var r,o=n(26),i=n(16),a=(r=i)&&r.__esModule?r:{default:r}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(){return function(e,t){var n=e.name+"_image";if(e.data&&e.type===o.Resource.TYPE.JSON&&e.data.frames&&!this.resources[n]){var r={crossOrigin:e.crossOrigin,metadata:e.metadata.imageMetadata,parentResource:e},i=u(e,this.baseUrl);this.add(n,i,r,function(n){if(n.error)t(n.error);else{var r=new s.Spritesheet(n.texture.baseTexture,e.data,e.url);r.parse(function(){e.spritesheet=r,e.textures=r.textures,t()})}})}else t()}},t.getResourcePath=u;var r,o=n(26),i=n(118),a=(r=i)&&r.__esModule?r:{default:r},s=n(4);function u(e,t){return e.isDataUrl?e.data.meta.image:a.default.resolve(e.url.replace(t,""),e.data.meta.image)}},function(e,t,n){"use strict";t.__esModule=!0,t.encodeBinary=function(e){var t="",n=0;for(;n<e.length;){for(var o=[0,0,0],i=[0,0,0,0],a=0;a<o.length;++a)n<e.length?o[a]=255&e.charCodeAt(n++):o[a]=0;i[0]=o[0]>>2,i[1]=(3&o[0])<<4|o[1]>>4,i[2]=(15&o[1])<<2|o[2]>>6,i[3]=63&o[2];var s=n-(e.length-1);switch(s){case 2:i[3]=64,i[2]=64;break;case 1:i[3]=64}for(var u=0;u<i.length;++u)t+=r.charAt(i[u])}return t};var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},function(e,t,n){"use strict";function r(){}function o(e){return function(){if(null===e)throw new Error("Callback was already called.");var t=e;e=null,t.apply(this,arguments)}}t.__esModule=!0,t.eachSeries=function(e,t,n,r){var o=0,i=e.length;!function a(s){s||o===i?n&&n(s):r?setTimeout(function(){t(e[o++],a)},1):t(e[o++],a)}()},t.queue=function(e,t){if(null==t)t=1;else if(0===t)throw new Error("Concurrency must not be zero");var n=0,i={_tasks:[],concurrency:t,saturated:r,unsaturated:r,buffer:t/4,empty:r,drain:r,error:r,started:!1,paused:!1,push:function(e,t){a(e,!1,t)},kill:function(){n=0,i.drain=r,i.started=!1,i._tasks=[]},unshift:function(e,t){a(e,!0,t)},process:function(){for(;!i.paused&&n<i.concurrency&&i._tasks.length;){var t=i._tasks.shift();0===i._tasks.length&&i.empty(),(n+=1)===i.concurrency&&i.saturated(),e(t.data,o(s(t)))}},length:function(){return i._tasks.length},running:function(){return n},idle:function(){return i._tasks.length+n===0},pause:function(){!0!==i.paused&&(i.paused=!0)},resume:function(){if(!1!==i.paused){i.paused=!1;for(var e=1;e<=i.concurrency;e++)i.process()}}};function a(e,t,n){if(null!=n&&"function"!=typeof n)throw new Error("task callback must be a function");if(i.started=!0,null==e&&i.idle())setTimeout(function(){return i.drain()},1);else{var o={data:e,callback:"function"==typeof n?n:r};t?i._tasks.unshift(o):i._tasks.push(o),setTimeout(function(){return i.process()},1)}}function s(e){return function(){n-=1,e.callback.apply(e,arguments),null!=arguments[0]&&i.error(arguments[0],e.data),n<=i.concurrency-i.buffer&&i.unsaturated(),i.idle()&&i.drain(),i.process()}}return i}},function(e,t,n){"use strict";e.exports=function(e,t){t=t||{};for(var n={key:["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],q:{name:"queryKey",parser:/(?:^|&)([^&=]*)=?([^&]*)/g},parser:{strict:/^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,loose:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/}},r=n.parser[t.strictMode?"strict":"loose"].exec(e),o={},i=14;i--;)o[n.key[i]]=r[i]||"";return o[n.q.name]={},o[n.key[12]].replace(n.q.parser,function(e,t,r){t&&(o[n.q.name][t]=r)}),o}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=function(){function e(t,n,r){void 0===n&&(n=!1),o(this,e),this._fn=t,this._once=n,this._thisArg=r,this._next=this._prev=this._owner=null}return r(e,[{key:"detach",value:function(){return null!==this._owner&&(this._owner.detach(this),!0)}}]),e}();function a(e,t){return e._head?(e._tail._next=t,t._prev=e._tail,e._tail=t):(e._head=t,e._tail=t),t._owner=e,t}var s=function(){function e(){o(this,e),this._head=this._tail=void 0}return r(e,[{key:"handlers",value:function(){var e=!(arguments.length<=0||void 0===arguments[0])&&arguments[0],t=this._head;if(e)return!!t;for(var n=[];t;)n.push(t),t=t._next;return n}},{key:"has",value:function(e){if(!(e instanceof i))throw new Error("MiniSignal#has(): First arg must be a MiniSignalBinding object.");return e._owner===this}},{key:"dispatch",value:function(){var e=this._head;if(!e)return!1;for(;e;)e._once&&this.detach(e),e._fn.apply(e._thisArg,arguments),e=e._next;return!0}},{key:"add",value:function(e){var t=arguments.length<=1||void 0===arguments[1]?null:arguments[1];if("function"!=typeof e)throw new Error("MiniSignal#add(): First arg must be a Function.");return a(this,new i(e,!1,t))}},{key:"once",value:function(e){var t=arguments.length<=1||void 0===arguments[1]?null:arguments[1];if("function"!=typeof e)throw new Error("MiniSignal#once(): First arg must be a Function.");return a(this,new i(e,!0,t))}},{key:"detach",value:function(e){if(!(e instanceof i))throw new Error("MiniSignal#detach(): First arg must be a MiniSignalBinding object.");return e._owner!==this?this:(e._prev&&(e._prev._next=e._next),e._next&&(e._next._prev=e._prev),e===this._head?(this._head=e._next,null===e._next&&(this._tail=null)):e===this._tail&&(this._tail=e._prev,this._tail._next=null),e._owner=null,this)}},{key:"detachAll",value:function(){var e=this._head;if(!e)return this;for(this._head=this._tail=null;e;)e._owner=null,e=e._next;return this}}]),e}();s.MiniSignalBinding=i,t.default=s,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.parse=s,t.default=function(){return function(e,t){if(e.data&&e.type===i.Resource.TYPE.XML)if(0!==e.data.getElementsByTagName("page").length&&0!==e.data.getElementsByTagName("info").length&&null!==e.data.getElementsByTagName("info")[0].getAttribute("face")){var n=e.isDataUrl?"":r.dirname(e.url);e.isDataUrl&&("."===n&&(n=""),this.baseUrl&&n&&"/"===this.baseUrl.charAt(this.baseUrl.length-1)&&(n+="/")),(n=n.replace(this.baseUrl,""))&&"/"!==n.charAt(n.length-1)&&(n+="/");var a=n+e.data.getElementsByTagName("page")[0].getAttribute("file");if(o.utils.TextureCache[a])s(e,o.utils.TextureCache[a]),t();else{var u={crossOrigin:e.crossOrigin,loadType:i.Resource.LOAD_TYPE.IMAGE,metadata:e.metadata.imageMetadata,parentResource:e};this.add(e.name+"_image",a,u,function(n){s(e,n.texture),t()})}}else t();else t()}};var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(14)),o=n(4),i=n(26),a=n(100);function s(e,t){e.bitmapFont=a.BitmapText.registerFont(e.data,t)}},function(e,t,n){"use strict";t.__esModule=!0,t.default={interactive:!1,interactiveChildren:!0,hitArea:null,get buttonMode(){return"pointer"===this.cursor},set buttonMode(e){e?this.cursor="pointer":"pointer"===this.cursor&&(this.cursor=null)},cursor:null,get trackedPointers(){return void 0===this._trackedPointers&&(this._trackedPointers={}),this._trackedPointers},_trackedPointers:void 0}},function(e,t,n){"use strict";t.__esModule=!0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var o=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._pointerId=t,this._flags=e.FLAGS.NONE}return e.prototype._doSet=function(e,t){this._flags=t?this._flags|e:this._flags&~e},r(e,[{key:"pointerId",get:function(){return this._pointerId}},{key:"flags",get:function(){return this._flags},set:function(e){this._flags=e}},{key:"none",get:function(){return this._flags===this.constructor.FLAGS.NONE}},{key:"over",get:function(){return 0!=(this._flags&this.constructor.FLAGS.OVER)},set:function(e){this._doSet(this.constructor.FLAGS.OVER,e)}},{key:"rightDown",get:function(){return 0!=(this._flags&this.constructor.FLAGS.RIGHT_DOWN)},set:function(e){this._doSet(this.constructor.FLAGS.RIGHT_DOWN,e)}},{key:"leftDown",get:function(){return 0!=(this._flags&this.constructor.FLAGS.LEFT_DOWN)},set:function(e){this._doSet(this.constructor.FLAGS.LEFT_DOWN,e)}}]),e}();t.default=o,o.FLAGS=Object.freeze({NONE:0,OVER:1,LEFT_DOWN:2,RIGHT_DOWN:4})},function(e,t,n){"use strict";t.__esModule=!0;var r=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.stopped=!1,this.target=null,this.currentTarget=null,this.type=null,this.data=null}return e.prototype.stopPropagation=function(){this.stopped=!0},e.prototype.reset=function(){this.stopped=!1,this.currentTarget=null,this.target=null},e}();t.default=r},function(e,t,n){"use strict";t.__esModule=!0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(4));var i=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.global=new o.Point,this.target=null,this.originalEvent=null,this.identifier=null,this.isPrimary=!1,this.button=0,this.buttons=0,this.width=0,this.height=0,this.tiltX=0,this.tiltY=0,this.pointerType=null,this.pressure=0,this.rotationAngle=0,this.twist=0,this.tangentialPressure=0}return e.prototype.getLocalPosition=function(e,t,n){return e.worldTransform.applyInverse(n||this.global,t)},e.prototype.copyEvent=function(e){e.isPrimary&&(this.isPrimary=!0),this.button=e.button,this.buttons=Number.isInteger(e.buttons)?e.buttons:e.which,this.width=e.width,this.height=e.height,this.tiltX=e.tiltX,this.tiltY=e.tiltY,this.pointerType=e.pointerType,this.pressure=e.pressure,this.rotationAngle=e.rotationAngle,this.twist=e.twist||0,this.tangentialPressure=e.tangentialPressure||0},e.prototype.reset=function(){this.isPrimary=!1},r(e,[{key:"pointerId",get:function(){return this.identifier}}]),e}();t.default=i},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.__esModule=!0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(4)),a=l(n(98)),s=l(n(97)),u=l(n(96));function l(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(n,o,u,l){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),l=l||5;var c=(0,a.default)(l,!1),d=(0,s.default)(l),f=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":r(t))&&"function"!=typeof t?e:t}(this,e.call(this,c,d));return f.resolution=u||i.settings.RESOLUTION,f._quality=0,f.quality=o||4,f.strength=n||8,f.firstRun=!0,f}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":r(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.apply=function(e,t,n,r){if(this.firstRun){var o=e.renderer.gl,i=(0,u.default)(o);this.vertexSrc=(0,a.default)(i,!1),this.fragmentSrc=(0,s.default)(i),this.firstRun=!1}if(this.uniforms.strength=1/n.size.height*(n.size.height/t.size.height),this.uniforms.strength*=this.strength,this.uniforms.strength/=this.passes,1===this.passes)e.applyFilter(this,t,n,r);else{for(var l=e.getRenderTarget(!0),c=t,d=l,f=0;f<this.passes-1;f++){e.applyFilter(this,c,d,!0);var h=d;d=c,c=h}e.applyFilter(this,c,n,r),e.returnRenderTarget(l)}},o(t,[{key:"blur",get:function(){return this.strength},set:function(e){this.padding=2*Math.abs(e),this.strength=e}},{key:"quality",get:function(){return this._quality},set:function(e){this._quality=e,this.passes=e}}]),t}(i.Filter);t.default=c},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t=e.getParameter(e.MAX_VARYING_VECTORS),n=15;for(;n>t;)n-=2;return n}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){for(var t=r[e],n=t.length,i=o,a="",s=void 0,u=0;u<e;u++){var l="gl_FragColor += texture2D(uSampler, vBlurTexCoords[%index%]) * %value%;".replace("%index%",u);s=u,u>=n&&(s=e-u-1),l=l.replace("%value%",t[s]),a+=l,a+="\n"}return i=(i=i.replace("%blur%",a)).replace("%size%",e)};var r={5:[.153388,.221461,.250301],7:[.071303,.131514,.189879,.214607],9:[.028532,.067234,.124009,.179044,.20236],11:[.0093,.028002,.065984,.121703,.175713,.198596],13:[.002406,.009255,.027867,.065666,.121117,.174868,.197641],15:[489e-6,.002403,.009246,.02784,.065602,.120999,.174697,.197448]},o=["varying vec2 vBlurTexCoords[%size%];","uniform sampler2D uSampler;","void main(void)","{"," gl_FragColor = vec4(0.0);"," %blur%","}"].join("\n")},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){var n=Math.ceil(e/2),o=r,i="",a=void 0;a=t?"vBlurTexCoords[%index%] = aTextureCoord + vec2(%sampleIndex% * strength, 0.0);":"vBlurTexCoords[%index%] = aTextureCoord + vec2(0.0, %sampleIndex% * strength);";for(var s=0;s<e;s++){var u=a.replace("%index%",s);u=u.replace("%sampleIndex%",s-(n-1)+".0"),i+=u,i+="\n"}return o=(o=o.replace("%blur%",i)).replace("%size%",e)};var r=["attribute vec2 aVertexPosition;","attribute vec2 aTextureCoord;","uniform float strength;","uniform mat3 projectionMatrix;","varying vec2 vBlurTexCoords[%size%];","void main(void)","{","gl_Position = vec4((projectionMatrix * vec3((aVertexPosition), 1.0)).xy, 0.0, 1.0);","%blur%","}"].join("\n")},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.__esModule=!0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(4)),a=l(n(98)),s=l(n(97)),u=l(n(96));function l(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(n,o,u,l){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),l=l||5;var c=(0,a.default)(l,!0),d=(0,s.default)(l),f=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":r(t))&&"function"!=typeof t?e:t}(this,e.call(this,c,d));return f.resolution=u||i.settings.RESOLUTION,f._quality=0,f.quality=o||4,f.strength=n||8,f.firstRun=!0,f}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":r(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.apply=function(e,t,n,r){if(this.firstRun){var o=e.renderer.gl,i=(0,u.default)(o);this.vertexSrc=(0,a.default)(i,!0),this.fragmentSrc=(0,s.default)(i),this.firstRun=!1}if(this.uniforms.strength=1/n.size.width*(n.size.width/t.size.width),this.uniforms.strength*=this.strength,this.uniforms.strength/=this.passes,1===this.passes)e.applyFilter(this,t,n,r);else{for(var l=e.getRenderTarget(!0),c=t,d=l,f=0;f<this.passes-1;f++){e.applyFilter(this,c,d,!0);var h=d;d=c,c=h}e.applyFilter(this,c,n,r),e.returnRenderTarget(l)}},o(t,[{key:"blur",get:function(){return this.strength},set:function(e){this.padding=2*Math.abs(e),this.strength=e}},{key:"quality",get:function(){return this._quality},set:function(e){this._quality=e,this.passes=e}}]),t}(i.Filter);t.default=c},function(e,t,n){"use strict";t.__esModule=!0,t.BitmapText=t.TilingSpriteRenderer=t.TilingSprite=t.AnimatedSprite=void 0;var r=n(221);Object.defineProperty(t,"AnimatedSprite",{enumerable:!0,get:function(){return s(r).default}});var o=n(220);Object.defineProperty(t,"TilingSprite",{enumerable:!0,get:function(){return s(o).default}});var i=n(219);Object.defineProperty(t,"TilingSpriteRenderer",{enumerable:!0,get:function(){return s(i).default}});var a=n(218);function s(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"BitmapText",{enumerable:!0,get:function(){return s(a).default}}),n(217),n(216),n(215)},function(e,t,n){"use strict";t.__esModule=!0,t.default={accessible:!1,accessibleTitle:null,accessibleHint:null,tabIndex:0,_accessibleActive:!1,_accessibleDiv:!1}},function(e,t,n){"use strict";t.__esModule=!0,t.autoDetectRenderer=function(e,t,n,a){var s=e&&e.forceCanvas;void 0!==a&&(s=a);if(!s&&r.isWebGLSupported())return new i.default(e,t,n);return new o.default(e,t,n)};var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(5)),o=a(n(29)),i=a(n(37));function a(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";t.__esModule=!0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(102),i=l(n(30)),a=n(54),s=l(n(7)),u=n(3);function l(e){return e&&e.__esModule?e:{default:e}}var c=function(){function e(t,n,r,u,l){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),"number"==typeof t&&(t=Object.assign({width:t,height:n||s.default.RENDER_OPTIONS.height,forceCanvas:!!u,sharedTicker:!!l},r)),this._options=t=Object.assign({autoStart:!0,sharedTicker:!1,forceCanvas:!1,sharedLoader:!1},t),this.renderer=(0,o.autoDetectRenderer)(t),this.stage=new i.default,this._ticker=null,this.ticker=t.sharedTicker?a.shared:new a.Ticker,t.autoStart&&this.start()}return e.prototype.render=function(){this.renderer.render(this.stage)},e.prototype.stop=function(){this._ticker.stop()},e.prototype.start=function(){this._ticker.start()},e.prototype.destroy=function(e){if(this._ticker){var t=this._ticker;this.ticker=null,t.destroy()}this.stage.destroy(),this.stage=null,this.renderer.destroy(e),this.renderer=null,this._options=null},r(e,[{key:"ticker",set:function(e){this._ticker&&this._ticker.remove(this.render,this),this._ticker=e,e&&e.add(this.render,this,u.UPDATE_PRIORITY.LOW)},get:function(){return this._ticker}},{key:"view",get:function(){return this.renderer.view}},{key:"screen",get:function(){return this.renderer.screen}}]),e}();t.default=c},function(e,t,n){"use strict";t.__esModule=!0;var r=function(){function e(t,n,r,o,i,a,s,u){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.lineWidth=t,this.nativeLines=s,this.lineColor=n,this.lineAlpha=r,this._lineTint=n,this.fillColor=o,this.fillAlpha=i,this._fillTint=o,this.fill=a,this.holes=[],this.shape=u,this.type=u.type}return e.prototype.clone=function(){return new e(this.lineWidth,this.lineColor,this.lineAlpha,this.fillColor,this.fillAlpha,this.fill,this.nativeLines,this.shape)},e.prototype.addHole=function(e){this.holes.push(e)},e.prototype.destroy=function(){this.shape=null,this.holes=null},e}();t.default=r},function(e,t,n){"use strict";t.__esModule=!0;var r=function(){function e(t,n,r,o,i,a,s,u,l){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.text=t,this.style=n,this.width=r,this.height=o,this.lines=i,this.lineWidths=a,this.lineHeight=s,this.maxLineWidth=u,this.fontProperties=l}return e.measureText=function(t,n,r){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e._canvas;r=r||n.wordWrap;var i=n.toFontString(),a=e.measureFont(i),s=o.getContext("2d");s.font=i;for(var u=(r?e.wordWrap(t,n,o):t).split(/(?:\r\n|\r|\n)/),l=new Array(u.length),c=0,d=0;d<u.length;d++){var f=s.measureText(u[d]).width+(u[d].length-1)*n.letterSpacing;l[d]=f,c=Math.max(c,f)}var h=c+n.strokeThickness;n.dropShadow&&(h+=n.dropShadowDistance);var p=n.lineHeight||a.fontSize+n.strokeThickness,y=Math.max(p,a.fontSize+n.strokeThickness)+(u.length-1)*(p+n.leading);return n.dropShadow&&(y+=n.dropShadowDistance),new e(t,n,h,y,u,l,p+n.leading,c,a)},e.wordWrap=function(t,n){for(var r=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:e._canvas).getContext("2d"),o="",i=0,a="",s={},u=n.letterSpacing,l=n.wordWrapWidth+n.letterSpacing,c=e.getFromCache(" ",u,s,r),d=t.split(" "),f=0;f<d.length;f++){var h=d[f],p=e.getFromCache(h,u,s,r);if(p>l)if(n.breakWords)for(var y=(o.length>0?" "+h:h).split(""),v=0;v<y.length;v++){var m=y[v],g=e.getFromCache(m,u,s,r);g+i>l&&(a+=e.addLine(o),o="",i=0),o+=m,i+=g}else o.length>0&&(a+=e.addLine(o),o="",i=0),a+=e.addLine(h),o="",i=0;else p+i>l&&(a+=e.addLine(o),o="",i=0),o.length>0?o+=" "+h:o+=h,i+=p+c}return a+=e.addLine(o,!1)},e.addLine=function(e){return e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1]?e+"\n":e},e.getFromCache=function(e,t,n,r){var o=n[e];if(void 0===o){var i=e.length*t;o=r.measureText(e).width+i,n[e]=o}return o},e.measureFont=function(t){if(e._fonts[t])return e._fonts[t];var n={},r=e._canvas,o=e._context;o.font=t;var i=Math.ceil(o.measureText("|MÉq").width),a=Math.ceil(o.measureText("M").width),s=2*a;a=1.4*a|0,r.width=i,r.height=s,o.fillStyle="#f00",o.fillRect(0,0,i,s),o.font=t,o.textBaseline="alphabetic",o.fillStyle="#000",o.fillText("|MÉq",0,a);var u=o.getImageData(0,0,i,s).data,l=u.length,c=4*i,d=0,f=0,h=!1;for(d=0;d<a;++d){for(var p=0;p<c;p+=4)if(255!==u[f+p]){h=!0;break}if(h)break;f+=c}for(n.ascent=a-d,f=l-c,h=!1,d=s;d>a;--d){for(var y=0;y<c;y+=4)if(255!==u[f+y]){h=!0;break}if(h)break;f-=c}return n.descent=d-a,n.fontSize=n.ascent+n.descent,e._fonts[t]=n,n},e}();t.default=r;var o=document.createElement("canvas");o.width=o.height=10,r._canvas=o,r._context=o.getContext("2d"),r._fonts={}},function(e,t,n){"use strict";t.__esModule=!0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(3),i=n(5);var a={align:"left",breakWords:!1,dropShadow:!1,dropShadowAlpha:1,dropShadowAngle:Math.PI/6,dropShadowBlur:0,dropShadowColor:"black",dropShadowDistance:5,fill:"black",fillGradientType:o.TEXT_GRADIENT.LINEAR_VERTICAL,fillGradientStops:[],fontFamily:"Arial",fontSize:26,fontStyle:"normal",fontVariant:"normal",fontWeight:"normal",letterSpacing:0,lineHeight:0,lineJoin:"miter",miterLimit:10,padding:0,stroke:"black",strokeThickness:0,textBaseline:"alphabetic",trim:!1,wordWrap:!1,wordWrapWidth:100,leading:0},s=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.styleID=0,this.reset(),c(this,t,t)}return e.prototype.clone=function(){var t={};return c(t,this,a),new e(t)},e.prototype.reset=function(){c(this,a,a)},e.prototype.toFontString=function(){var e="number"==typeof this.fontSize?this.fontSize+"px":this.fontSize,t=this.fontFamily;Array.isArray(this.fontFamily)||(t=this.fontFamily.split(","));for(var n=t.length-1;n>=0;n--){var r=t[n].trim();/([\"\'])[^\'\"]+\1/.test(r)||(r='"'+r+'"'),t[n]=r}return this.fontStyle+" "+this.fontVariant+" "+this.fontWeight+" "+e+" "+t.join(",")},r(e,[{key:"align",get:function(){return this._align},set:function(e){this._align!==e&&(this._align=e,this.styleID++)}},{key:"breakWords",get:function(){return this._breakWords},set:function(e){this._breakWords!==e&&(this._breakWords=e,this.styleID++)}},{key:"dropShadow",get:function(){return this._dropShadow},set:function(e){this._dropShadow!==e&&(this._dropShadow=e,this.styleID++)}},{key:"dropShadowAlpha",get:function(){return this._dropShadowAlpha},set:function(e){this._dropShadowAlpha!==e&&(this._dropShadowAlpha=e,this.styleID++)}},{key:"dropShadowAngle",get:function(){return this._dropShadowAngle},set:function(e){this._dropShadowAngle!==e&&(this._dropShadowAngle=e,this.styleID++)}},{key:"dropShadowBlur",get:function(){return this._dropShadowBlur},set:function(e){this._dropShadowBlur!==e&&(this._dropShadowBlur=e,this.styleID++)}},{key:"dropShadowColor",get:function(){return this._dropShadowColor},set:function(e){var t=l(e);this._dropShadowColor!==t&&(this._dropShadowColor=t,this.styleID++)}},{key:"dropShadowDistance",get:function(){return this._dropShadowDistance},set:function(e){this._dropShadowDistance!==e&&(this._dropShadowDistance=e,this.styleID++)}},{key:"fill",get:function(){return this._fill},set:function(e){var t=l(e);this._fill!==t&&(this._fill=t,this.styleID++)}},{key:"fillGradientType",get:function(){return this._fillGradientType},set:function(e){this._fillGradientType!==e&&(this._fillGradientType=e,this.styleID++)}},{key:"fillGradientStops",get:function(){return this._fillGradientStops},set:function(e){(function(e,t){if(!Array.isArray(e)||!Array.isArray(t))return!1;if(e.length!==t.length)return!1;for(var n=0;n<e.length;++n)if(e[n]!==t[n])return!1;return!0})(this._fillGradientStops,e)||(this._fillGradientStops=e,this.styleID++)}},{key:"fontFamily",get:function(){return this._fontFamily},set:function(e){this.fontFamily!==e&&(this._fontFamily=e,this.styleID++)}},{key:"fontSize",get:function(){return this._fontSize},set:function(e){this._fontSize!==e&&(this._fontSize=e,this.styleID++)}},{key:"fontStyle",get:function(){return this._fontStyle},set:function(e){this._fontStyle!==e&&(this._fontStyle=e,this.styleID++)}},{key:"fontVariant",get:function(){return this._fontVariant},set:function(e){this._fontVariant!==e&&(this._fontVariant=e,this.styleID++)}},{key:"fontWeight",get:function(){return this._fontWeight},set:function(e){this._fontWeight!==e&&(this._fontWeight=e,this.styleID++)}},{key:"letterSpacing",get:function(){return this._letterSpacing},set:function(e){this._letterSpacing!==e&&(this._letterSpacing=e,this.styleID++)}},{key:"lineHeight",get:function(){return this._lineHeight},set:function(e){this._lineHeight!==e&&(this._lineHeight=e,this.styleID++)}},{key:"leading",get:function(){return this._leading},set:function(e){this._leading!==e&&(this._leading=e,this.styleID++)}},{key:"lineJoin",get:function(){return this._lineJoin},set:function(e){this._lineJoin!==e&&(this._lineJoin=e,this.styleID++)}},{key:"miterLimit",get:function(){return this._miterLimit},set:function(e){this._miterLimit!==e&&(this._miterLimit=e,this.styleID++)}},{key:"padding",get:function(){return this._padding},set:function(e){this._padding!==e&&(this._padding=e,this.styleID++)}},{key:"stroke",get:function(){return this._stroke},set:function(e){var t=l(e);this._stroke!==t&&(this._stroke=t,this.styleID++)}},{key:"strokeThickness",get:function(){return this._strokeThickness},set:function(e){this._strokeThickness!==e&&(this._strokeThickness=e,this.styleID++)}},{key:"textBaseline",get:function(){return this._textBaseline},set:function(e){this._textBaseline!==e&&(this._textBaseline=e,this.styleID++)}},{key:"trim",get:function(){return this._trim},set:function(e){this._trim!==e&&(this._trim=e,this.styleID++)}},{key:"wordWrap",get:function(){return this._wordWrap},set:function(e){this._wordWrap!==e&&(this._wordWrap=e,this.styleID++)}},{key:"wordWrapWidth",get:function(){return this._wordWrapWidth},set:function(e){this._wordWrapWidth!==e&&(this._wordWrapWidth=e,this.styleID++)}}]),e}();function u(e){return"number"==typeof e?(0,i.hex2string)(e):("string"==typeof e&&0===e.indexOf("0x")&&(e=e.replace("0x","#")),e)}function l(e){if(Array.isArray(e)){for(var t=0;t<e.length;++t)e[t]=u(e[t]);return e}return u(e)}function c(e,t,n){for(var r in n)Array.isArray(t[r])?e[r]=t[r].slice():e[r]=t[r]}t.default=s},function(e,t,n){"use strict";t.__esModule=!0;var r=i(n(10)),o=i(n(51));function i(e){return e&&e.__esModule?e:{default:e}}var a=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.gl=t,this.vertices=new Float32Array([-1,-1,1,-1,1,1,-1,1]),this.uvs=new Float32Array([0,0,1,0,1,1,0,1]),this.interleaved=new Float32Array(16);for(var i=0;i<4;i++)this.interleaved[4*i]=this.vertices[2*i],this.interleaved[4*i+1]=this.vertices[2*i+1],this.interleaved[4*i+2]=this.uvs[2*i],this.interleaved[4*i+3]=this.uvs[2*i+1];this.indices=(0,o.default)(1),this.vertexBuffer=r.default.GLBuffer.createVertexBuffer(t,this.interleaved,t.STATIC_DRAW),this.indexBuffer=r.default.GLBuffer.createIndexBuffer(t,this.indices,t.STATIC_DRAW),this.vao=new r.default.VertexArrayObject(t,n)}return e.prototype.initVao=function(e){this.vao.clear().addIndex(this.indexBuffer).addAttribute(this.vertexBuffer,e.attributes.aVertexPosition,this.gl.FLOAT,!1,16,0).addAttribute(this.vertexBuffer,e.attributes.aTextureCoord,this.gl.FLOAT,!1,16,8)},e.prototype.map=function(e,t){var n=0,r=0;return this.uvs[0]=n,this.uvs[1]=r,this.uvs[2]=n+t.width/e.width,this.uvs[3]=r,this.uvs[4]=n+t.width/e.width,this.uvs[5]=r+t.height/e.height,this.uvs[6]=n,this.uvs[7]=r+t.height/e.height,n=t.x,r=t.y,this.vertices[0]=n,this.vertices[1]=r,this.vertices[2]=n+t.width,this.vertices[3]=r,this.vertices[4]=n+t.width,this.vertices[5]=r+t.height,this.vertices[6]=n,this.vertices[7]=r+t.height,this},e.prototype.upload=function(){for(var e=0;e<4;e++)this.interleaved[4*e]=this.vertices[2*e],this.interleaved[4*e+1]=this.vertices[2*e+1],this.interleaved[4*e+2]=this.uvs[2*e],this.interleaved[4*e+3]=this.uvs[2*e+1];return this.vertexBuffer.upload(this.interleaved),this},e.prototype.destroy=function(){var e=this.gl;e.deleteBuffer(this.vertexBuffer),e.deleteBuffer(this.indexBuffer)},e}();t.default=a},function(e,t,n){"use strict";t.__esModule=!0;var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(63),a=(r=i)&&r.__esModule?r:{default:r};var s=new a.default,u=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._texture=t,this.mapCoord=new a.default,this.uClampFrame=new Float32Array(4),this.uClampOffset=new Float32Array(2),this._lastTextureID=-1,this.clampOffset=0,this.clampMargin=void 0===n?.5:n}return e.prototype.multiplyUvs=function(e,t){void 0===t&&(t=e);for(var n=this.mapCoord,r=0;r<e.length;r+=2){var o=e[r],i=e[r+1];t[r]=o*n.a+i*n.c+n.tx,t[r+1]=o*n.b+i*n.d+n.ty}return t},e.prototype.update=function(e){var t=this._texture;if(!t||!t.valid)return!1;if(!e&&this._lastTextureID===t._updateID)return!1;this._lastTextureID=t._updateID;var n=t._uvs;this.mapCoord.set(n.x1-n.x0,n.y1-n.y0,n.x3-n.x0,n.y3-n.y0,n.x0,n.y0);var r=t.orig,o=t.trim;o&&(s.set(r.width/o.width,0,0,r.height/o.height,-o.x/o.width,-o.y/o.height),this.mapCoord.append(s));var i=t.baseTexture,a=this.uClampFrame,u=this.clampMargin/i.resolution,l=this.clampOffset;return a[0]=(t._frame.x+u+l)/i.width,a[1]=(t._frame.y+u+l)/i.height,a[2]=(t._frame.x+t._frame.width-u+l)/i.width,a[3]=(t._frame.y+t._frame.height-u+l)/i.height,this.uClampOffset[0]=l/i.realWidth,this.uClampOffset[1]=l/i.realHeight,!0},o(e,[{key:"texture",get:function(){return this._texture},set:function(e){this._texture=e,this._lastTextureID=-1}}]),e}();t.default=u},function(e,t,n){"use strict";t.__esModule=!0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=u(n(254)),i=n(5),a=n(3),s=u(n(7));function u(e){return e&&e.__esModule?e:{default:e}}var l={},c=function(){function e(t,n,r){for(var u in function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.vertexSrc=t||e.defaultVertexSrc,this.fragmentSrc=n||e.defaultFragmentSrc,this._blendMode=a.BLEND_MODES.NORMAL,this.uniformData=r||(0,o.default)(this.vertexSrc,this.fragmentSrc,"projectionMatrix|uSampler"),this.uniforms={},this.uniformData)this.uniforms[u]=this.uniformData[u].value,this.uniformData[u].type&&(this.uniformData[u].type=this.uniformData[u].type.toLowerCase());this.glShaders={},l[this.vertexSrc+this.fragmentSrc]||(l[this.vertexSrc+this.fragmentSrc]=(0,i.uid)()),this.glShaderKey=l[this.vertexSrc+this.fragmentSrc],this.padding=4,this.resolution=s.default.FILTER_RESOLUTION,this.enabled=!0,this.autoFit=!0}return e.prototype.apply=function(e,t,n,r,o){e.applyFilter(this,t,n,r)},r(e,[{key:"blendMode",get:function(){return this._blendMode},set:function(e){this._blendMode=e}}],[{key:"defaultVertexSrc",get:function(){return["attribute vec2 aVertexPosition;","attribute vec2 aTextureCoord;","uniform mat3 projectionMatrix;","uniform mat3 filterMatrix;","varying vec2 vTextureCoord;","varying vec2 vFilterCoord;","void main(void){"," gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);"," vFilterCoord = ( filterMatrix * vec3( aTextureCoord, 1.0) ).xy;"," vTextureCoord = aTextureCoord ;","}"].join("\n")}},{key:"defaultFragmentSrc",get:function(){return["varying vec2 vTextureCoord;","varying vec2 vFilterCoord;","uniform sampler2D uSampler;","uniform sampler2D filterSampler;","void main(void){"," vec4 masky = texture2D(filterSampler, vFilterCoord);"," vec4 sample = texture2D(uSampler, vTextureCoord);"," vec4 color;"," if(mod(vFilterCoord.x, 1.0) > 0.5)"," {"," color = vec4(1.0, 0.0, 0.0, 1.0);"," }"," else"," {"," color = vec4(0.0, 1.0, 0.0, 1.0);"," }"," gl_FragColor = mix(sample, masky, 0.5);"," gl_FragColor *= sample.a;","}"].join("\n")}}]),e}();t.default=c},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.__esModule=!0;var o=s(n(109)),i=n(9),a=(n(14),s(n(108)));function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=new i.Matrix,a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":r(t))&&"function"!=typeof t?e:t}(this,e.call(this,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\nuniform mat3 otherMatrix;\n\nvarying vec2 vMaskCoord;\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n\n vTextureCoord = aTextureCoord;\n vMaskCoord = ( otherMatrix * vec3( aTextureCoord, 1.0) ).xy;\n}\n","varying vec2 vMaskCoord;\nvarying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\nuniform sampler2D mask;\nuniform float alpha;\nuniform vec4 maskClamp;\n\nvoid main(void)\n{\n float clip = step(3.5,\n step(maskClamp.x, vMaskCoord.x) +\n step(maskClamp.y, vMaskCoord.y) +\n step(vMaskCoord.x, maskClamp.z) +\n step(vMaskCoord.y, maskClamp.w));\n\n vec4 original = texture2D(uSampler, vTextureCoord);\n vec4 masky = texture2D(mask, vMaskCoord);\n\n original *= (masky.r * masky.a * alpha * clip);\n\n gl_FragColor = original;\n}\n"));return n.renderable=!1,a.maskSprite=n,a.maskMatrix=o,a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":r(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.apply=function(e,t,n){var r=this.maskSprite,o=this.maskSprite.texture;o.valid&&(o.transform||(o.transform=new a.default(o,0)),o.transform.update(),this.uniforms.mask=o,this.uniforms.otherMatrix=e.calculateSpriteMatrix(this.maskMatrix,r).prepend(o.transform.mapCoord),this.uniforms.alpha=r.worldAlpha,this.uniforms.maskClamp=o.transform.uClampFrame,e.applyFilter(this,t,n))},t}(o.default);t.default=u},function(e,t,n){"use strict";function r(e){var t=document.createElement("canvas");t.width=6,t.height=1;var n=t.getContext("2d");return n.fillStyle=e,n.fillRect(0,0,6,1),t}t.__esModule=!0,t.default=function(){if("undefined"==typeof document)return!1;var e=r("#ff00ff"),t=r("#ffff00"),n=document.createElement("canvas");n.width=6,n.height=1;var o=n.getContext("2d");o.globalCompositeOperation="multiply",o.drawImage(e,0,0),o.drawImage(t,2,0);var i=o.getImageData(2,0,1,1);if(!i)return!1;var a=i.data;return 255===a[0]&&0===a[1]&&0===a[2]}},function(e,t,n){"use strict";t.__esModule=!0;var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(7),a=(r=i)&&r.__esModule?r:{default:r};var s=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.canvas=document.createElement("canvas"),this.context=this.canvas.getContext("2d"),this.resolution=r||a.default.RESOLUTION,this.resize(t,n)}return e.prototype.clear=function(){this.context.setTransform(1,0,0,1,0,0),this.context.clearRect(0,0,this.canvas.width,this.canvas.height)},e.prototype.resize=function(e,t){this.canvas.width=e*this.resolution,this.canvas.height=t*this.resolution},e.prototype.destroy=function(){this.context=null,this.canvas=null},o(e,[{key:"width",get:function(){return this.canvas.width},set:function(e){this.canvas.width=e}},{key:"height",get:function(){return this.canvas.height},set:function(e){this.canvas.height=e}}]),e}();t.default=s},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.__esModule=!0;var o=a(n(23)),i=a(n(7));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,a=arguments[2],s=arguments[3];!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var u=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":r(t))&&"function"!=typeof t?e:t}(this,e.call(this,null,a));return u.resolution=s||i.default.RESOLUTION,u.width=Math.ceil(n),u.height=Math.ceil(o),u.realWidth=u.width*u.resolution,u.realHeight=u.height*u.resolution,u.scaleMode=void 0!==a?a:i.default.SCALE_MODE,u.hasLoaded=!0,u._glRenderTargets={},u._canvasRenderTarget=null,u.valid=!1,u}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":r(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.resize=function(e,t){e=Math.ceil(e),t=Math.ceil(t),e===this.width&&t===this.height||(this.valid=e>0&&t>0,this.width=e,this.height=t,this.realWidth=this.width*this.resolution,this.realHeight=this.height*this.resolution,this.valid&&this.emit("update",this))},t.prototype.destroy=function(){e.prototype.destroy.call(this,!0),this.renderer=null},t}(o.default);t.default=s},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.__esModule=!0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(5),a=n(9),s=n(3),u=f(n(7)),l=f(n(30)),c=f(n(53)),d=f(n(18));function f(e){return e&&e.__esModule?e:{default:e}}var h=new a.Matrix,p=function(e){function t(n,o,c,d){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var f=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":r(t))&&"function"!=typeof t?e:t}(this,e.call(this));return(0,i.sayHello)(n),"number"==typeof o&&(o=Object.assign({width:o,height:c||u.default.RENDER_OPTIONS.height},d)),o=Object.assign({},u.default.RENDER_OPTIONS,o),f.options=o,f.type=s.RENDERER_TYPE.UNKNOWN,f.screen=new a.Rectangle(0,0,o.width,o.height),f.view=o.view||document.createElement("canvas"),f.resolution=o.resolution||u.default.RESOLUTION,f.transparent=o.transparent,f.autoResize=o.autoResize||!1,f.blendModes=null,f.preserveDrawingBuffer=o.preserveDrawingBuffer,f.clearBeforeRender=o.clearBeforeRender,f.roundPixels=o.roundPixels,f._backgroundColor=0,f._backgroundColorRgba=[0,0,0,0],f._backgroundColorString="#000000",f.backgroundColor=o.backgroundColor||f._backgroundColor,f._tempDisplayObjectParent=new l.default,f._lastObjectRendered=f._tempDisplayObjectParent,f}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":r(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.resize=function(e,t){this.screen.width=e,this.screen.height=t,this.view.width=e*this.resolution,this.view.height=t*this.resolution,this.autoResize&&(this.view.style.width=e+"px",this.view.style.height=t+"px")},t.prototype.generateTexture=function(e,t,n,r){r=r||e.getLocalBounds();var o=c.default.create(0|r.width,0|r.height,t,n);return h.tx=-r.x,h.ty=-r.y,this.render(e,o,!1,h,!0),o},t.prototype.destroy=function(e){e&&this.view.parentNode&&this.view.parentNode.removeChild(this.view),this.type=s.RENDERER_TYPE.UNKNOWN,this.view=null,this.screen=null,this.resolution=0,this.transparent=!1,this.autoResize=!1,this.blendModes=null,this.options=null,this.preserveDrawingBuffer=!1,this.clearBeforeRender=!1,this.roundPixels=!1,this._backgroundColor=0,this._backgroundColorRgba=null,this._backgroundColorString=null,this._tempDisplayObjectParent=null,this._lastObjectRendered=null},o(t,[{key:"width",get:function(){return this.view.width}},{key:"height",get:function(){return this.view.height}},{key:"backgroundColor",get:function(){return this._backgroundColor},set:function(e){this._backgroundColor=e,this._backgroundColorString=(0,i.hex2string)(e),(0,i.hex2rgb)(e,this._backgroundColorRgba)}}]),t}(d.default);t.default=p},function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(132),i=(r=o)&&r.__esModule?r:{default:r};var a=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.x0=0,this.y0=0,this.x1=1,this.y1=0,this.x2=1,this.y2=1,this.x3=0,this.y3=1,this.uvsUint32=new Uint32Array(4)}return e.prototype.set=function(e,t,n){var r=t.width,o=t.height;if(n){var a=e.width/2/r,s=e.height/2/o,u=e.x/r+a,l=e.y/o+s;n=i.default.add(n,i.default.NW),this.x0=u+a*i.default.uX(n),this.y0=l+s*i.default.uY(n),n=i.default.add(n,2),this.x1=u+a*i.default.uX(n),this.y1=l+s*i.default.uY(n),n=i.default.add(n,2),this.x2=u+a*i.default.uX(n),this.y2=l+s*i.default.uY(n),n=i.default.add(n,2),this.x3=u+a*i.default.uX(n),this.y3=l+s*i.default.uY(n)}else this.x0=e.x/r,this.y0=e.y/o,this.x1=(e.x+e.width)/r,this.y1=e.y/o,this.x2=(e.x+e.width)/r,this.y2=(e.y+e.height)/o,this.x3=e.x/r,this.y3=(e.y+e.height)/o;this.uvsUint32[0]=(65535*this.y0&65535)<<16|65535*this.x0&65535,this.uvsUint32[1]=(65535*this.y1&65535)<<16|65535*this.x1&65535,this.uvsUint32[2]=(65535*this.y2&65535)<<16|65535*this.x2&65535,this.uvsUint32[3]=(65535*this.y3&65535)<<16|65535*this.x3&65535},e}();t.default=a},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.__esModule=!0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=c(n(23)),a=n(5),s=n(54),u=n(3),l=c(n(119));function c(e){return e&&e.__esModule?e:{default:e}}var d=function(e){function t(n,o){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),!n)throw new Error("No video source element specified.");(n.readyState===n.HAVE_ENOUGH_DATA||n.readyState===n.HAVE_FUTURE_DATA)&&n.width&&n.height&&(n.complete=!0);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":r(t))&&"function"!=typeof t?e:t}(this,e.call(this,n,o));return i.width=n.videoWidth,i.height=n.videoHeight,i._autoUpdate=!0,i._isAutoUpdating=!1,i.autoPlay=!0,i.update=i.update.bind(i),i._onCanPlay=i._onCanPlay.bind(i),n.addEventListener("play",i._onPlayStart.bind(i)),n.addEventListener("pause",i._onPlayStop.bind(i)),i.hasLoaded=!1,i.__loaded=!1,i._isSourceReady()?i._onCanPlay():(n.addEventListener("canplay",i._onCanPlay),n.addEventListener("canplaythrough",i._onCanPlay)),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":r(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype._isSourcePlaying=function(){var e=this.source;return e.currentTime>0&&!1===e.paused&&!1===e.ended&&e.readyState>2},t.prototype._isSourceReady=function(){return 3===this.source.readyState||4===this.source.readyState},t.prototype._onPlayStart=function(){this.hasLoaded||this._onCanPlay(),!this._isAutoUpdating&&this.autoUpdate&&(s.shared.add(this.update,this,u.UPDATE_PRIORITY.HIGH),this._isAutoUpdating=!0)},t.prototype._onPlayStop=function(){this._isAutoUpdating&&(s.shared.remove(this.update,this),this._isAutoUpdating=!1)},t.prototype._onCanPlay=function(){this.hasLoaded=!0,this.source&&(this.source.removeEventListener("canplay",this._onCanPlay),this.source.removeEventListener("canplaythrough",this._onCanPlay),this.width=this.source.videoWidth,this.height=this.source.videoHeight,this.__loaded||(this.__loaded=!0,this.emit("loaded",this)),this._isSourcePlaying()?this._onPlayStart():this.autoPlay&&this.source.play())},t.prototype.destroy=function(){this._isAutoUpdating&&s.shared.remove(this.update,this),this.source&&this.source._pixiId&&(i.default.removeFromCache(this.source._pixiId),delete this.source._pixiId,this.source.pause(),this.source.src="",this.source.load()),e.prototype.destroy.call(this)},t.fromVideo=function(e,n){e._pixiId||(e._pixiId="video_"+(0,a.uid)());var r=a.BaseTextureCache[e._pixiId];return r||(r=new t(e,n),i.default.addToCache(r,e._pixiId)),r},t.fromUrl=function(e,n,r){var o=document.createElement("video");o.setAttribute("webkit-playsinline",""),o.setAttribute("playsinline","");var i=Array.isArray(e)?e[0].src||e[0]:e.src||e;if(void 0===r&&0!==i.indexOf("data:")?o.crossOrigin=(0,l.default)(i):r&&(o.crossOrigin="string"==typeof r?r:"anonymous"),Array.isArray(e))for(var a=0;a<e.length;++a)o.appendChild(f(e[a].src||e[a],e[a].mime));else o.appendChild(f(i,e.mime));return o.load(),t.fromVideo(o,n)},o(t,[{key:"autoUpdate",get:function(){return this._autoUpdate},set:function(e){e!==this._autoUpdate&&(this._autoUpdate=e,!this._autoUpdate&&this._isAutoUpdating?(s.shared.remove(this.update,this),this._isAutoUpdating=!1):this._autoUpdate&&!this._isAutoUpdating&&(s.shared.add(this.update,this,u.UPDATE_PRIORITY.HIGH),this._isAutoUpdating=!0))}}]),t}(i.default);function f(e,t){t||(t="video/"+e.substr(e.lastIndexOf(".")+1));var n=document.createElement("source");return n.src=e,n.type=t,n}t.default=d,d.fromUrls=d.fromUrl},function(e,t){(function(t){e.exports=t}).call(this,{})},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=n(266),i=n(265);function a(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=_,t.resolve=function(e,t){return _(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?_(e,!1,!0).resolveObject(t):t},t.format=function(e){i.isString(e)&&(e=_(e));return e instanceof a?e.format():a.prototype.format.call(e)},t.Url=a;var s=/^([a-z0-9.+-]+:)/i,u=/:[0-9]*$/,l=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,c=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),d=["'"].concat(c),f=["%","/","?",";","#"].concat(d),h=["/","?","#"],p=/^[+a-z0-9A-Z_-]{0,63}$/,y=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,v={javascript:!0,"javascript:":!0},m={javascript:!0,"javascript:":!0},g={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},b=n(264);function _(e,t,n){if(e&&i.isObject(e)&&e instanceof a)return e;var r=new a;return r.parse(e,t,n),r}a.prototype.parse=function(e,t,n){if(!i.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+(void 0===e?"undefined":r(e)));var a=e.indexOf("?"),u=-1!==a&&a<e.indexOf("#")?"?":"#",c=e.split(u);c[0]=c[0].replace(/\\/g,"/");var _=e=c.join(u);if(_=_.trim(),!n&&1===e.split("#").length){var x=l.exec(_);if(x)return this.path=_,this.href=_,this.pathname=x[1],x[2]?(this.search=x[2],this.query=t?b.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var w=s.exec(_);if(w){var E=(w=w[0]).toLowerCase();this.protocol=E,_=_.substr(w.length)}if(n||w||_.match(/^\/\/[^@\/]+@[^@\/]+/)){var S="//"===_.substr(0,2);!S||w&&m[w]||(_=_.substr(2),this.slashes=!0)}if(!m[w]&&(S||w&&!g[w])){for(var T,O,C=-1,P=0;P<h.length;P++){-1!==(M=_.indexOf(h[P]))&&(-1===C||M<C)&&(C=M)}-1!==(O=-1===C?_.lastIndexOf("@"):_.lastIndexOf("@",C))&&(T=_.slice(0,O),_=_.slice(O+1),this.auth=decodeURIComponent(T)),C=-1;for(P=0;P<f.length;P++){var M;-1!==(M=_.indexOf(f[P]))&&(-1===C||M<C)&&(C=M)}-1===C&&(C=_.length),this.host=_.slice(0,C),_=_.slice(C),this.parseHost(),this.hostname=this.hostname||"";var k="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!k)for(var A=this.hostname.split(/\./),R=(P=0,A.length);P<R;P++){var I=A[P];if(I&&!I.match(p)){for(var D="",j=0,N=I.length;j<N;j++)I.charCodeAt(j)>127?D+="x":D+=I[j];if(!D.match(p)){var L=A.slice(0,P),F=A.slice(P+1),B=I.match(y);B&&(L.push(B[1]),F.unshift(B[2])),F.length&&(_="/"+F.join(".")+_),this.hostname=L.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),k||(this.hostname=o.toASCII(this.hostname));var U=this.port?":"+this.port:"",H=this.hostname||"";this.host=H+U,this.href+=this.host,k&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==_[0]&&(_="/"+_))}if(!v[E])for(P=0,R=d.length;P<R;P++){var W=d[P];if(-1!==_.indexOf(W)){var z=encodeURIComponent(W);z===W&&(z=escape(W)),_=_.split(W).join(z)}}var X=_.indexOf("#");-1!==X&&(this.hash=_.substr(X),_=_.slice(0,X));var G=_.indexOf("?");if(-1!==G?(this.search=_.substr(G),this.query=_.substr(G+1),t&&(this.query=b.parse(this.query)),_=_.slice(0,G)):t&&(this.search="",this.query={}),_&&(this.pathname=_),g[E]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){U=this.pathname||"";var V=this.search||"";this.path=U+V}return this.href=this.format(),this},a.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",n=this.pathname||"",r=this.hash||"",o=!1,a="";this.host?o=e+this.host:this.hostname&&(o=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(o+=":"+this.port)),this.query&&i.isObject(this.query)&&Object.keys(this.query).length&&(a=b.stringify(this.query));var s=this.search||a&&"?"+a||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||g[t])&&!1!==o?(o="//"+(o||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):o||(o=""),r&&"#"!==r.charAt(0)&&(r="#"+r),s&&"?"!==s.charAt(0)&&(s="?"+s),t+o+(n=n.replace(/[?#]/g,function(e){return encodeURIComponent(e)}))+(s=s.replace("#","%23"))+r},a.prototype.resolve=function(e){return this.resolveObject(_(e,!1,!0)).format()},a.prototype.resolveObject=function(e){if(i.isString(e)){var t=new a;t.parse(e,!1,!0),e=t}for(var n=new a,r=Object.keys(this),o=0;o<r.length;o++){var s=r[o];n[s]=this[s]}if(n.hash=e.hash,""===e.href)return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var u=Object.keys(e),l=0;l<u.length;l++){var c=u[l];"protocol"!==c&&(n[c]=e[c])}return g[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!g[e.protocol]){for(var d=Object.keys(e),f=0;f<d.length;f++){var h=d[f];n[h]=e[h]}return n.href=n.format(),n}if(n.protocol=e.protocol,e.host||m[e.protocol])n.pathname=e.pathname;else{for(var p=(e.pathname||"").split("/");p.length&&!(e.host=p.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==p[0]&&p.unshift(""),p.length<2&&p.unshift(""),n.pathname=p.join("/")}if(n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,n.pathname||n.search){var y=n.pathname||"",v=n.search||"";n.path=y+v}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var b=n.pathname&&"/"===n.pathname.charAt(0),_=e.host||e.pathname&&"/"===e.pathname.charAt(0),x=_||b||n.host&&e.pathname,w=x,E=n.pathname&&n.pathname.split("/")||[],S=(p=e.pathname&&e.pathname.split("/")||[],n.protocol&&!g[n.protocol]);if(S&&(n.hostname="",n.port=null,n.host&&(""===E[0]?E[0]=n.host:E.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===p[0]?p[0]=e.host:p.unshift(e.host)),e.host=null),x=x&&(""===p[0]||""===E[0])),_)n.host=e.host||""===e.host?e.host:n.host,n.hostname=e.hostname||""===e.hostname?e.hostname:n.hostname,n.search=e.search,n.query=e.query,E=p;else if(p.length)E||(E=[]),E.pop(),E=E.concat(p),n.search=e.search,n.query=e.query;else if(!i.isNullOrUndefined(e.search)){if(S)n.hostname=n.host=E.shift(),(M=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=M.shift(),n.host=n.hostname=M.shift());return n.search=e.search,n.query=e.query,i.isNull(n.pathname)&&i.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!E.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var T=E.slice(-1)[0],O=(n.host||e.host||E.length>1)&&("."===T||".."===T)||""===T,C=0,P=E.length;P>=0;P--)"."===(T=E[P])?E.splice(P,1):".."===T?(E.splice(P,1),C++):C&&(E.splice(P,1),C--);if(!x&&!w)for(;C--;C)E.unshift("..");!x||""===E[0]||E[0]&&"/"===E[0].charAt(0)||E.unshift(""),O&&"/"!==E.join("/").substr(-1)&&E.push("");var M,k=""===E[0]||E[0]&&"/"===E[0].charAt(0);S&&(n.hostname=n.host=k?"":E.length?E.shift():"",(M=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=M.shift(),n.host=n.hostname=M.shift()));return(x=x||n.host&&E.length)&&!k&&E.unshift(""),E.length?n.pathname=E.join("/"):(n.pathname=null,n.path=null),i.isNull(n.pathname)&&i.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},a.prototype.parseHost=function(){var e=this.host,t=u.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.location;if(0===e.indexOf("data:"))return"";t=t||window.location,a||(a=document.createElement("a"));a.href=e;var n=!(e=i.default.parse(a.href)).port&&""===t.port||e.port===t.port;if(e.hostname!==t.hostname||!n||e.protocol!==t.protocol)return"anonymous";return""};var r,o=n(118),i=(r=o)&&r.__esModule?r:{default:r};var a=void 0},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.__esModule=!0;var o,i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(9),s=n(58);var u=function(e){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":r(t))&&"function"!=typeof t?e:t}(this,e.call(this));return n.position=new a.Point(0,0),n.scale=new a.Point(1,1),n.skew=new a.ObservablePoint(n.updateSkew,n,0,0),n.pivot=new a.Point(0,0),n._rotation=0,n._cx=1,n._sx=0,n._cy=0,n._sy=1,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":r(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.updateSkew=function(){this._cx=Math.cos(this._rotation+this.skew._y),this._sx=Math.sin(this._rotation+this.skew._y),this._cy=-Math.sin(this._rotation-this.skew._x),this._sy=Math.cos(this._rotation-this.skew._x)},t.prototype.updateLocalTransform=function(){var e=this.localTransform;e.a=this._cx*this.scale.x,e.b=this._sx*this.scale.x,e.c=this._cy*this.scale.y,e.d=this._sy*this.scale.y,e.tx=this.position.x-(this.pivot.x*e.a+this.pivot.y*e.c),e.ty=this.position.y-(this.pivot.x*e.b+this.pivot.y*e.d)},t.prototype.updateTransform=function(e){var t=this.localTransform;t.a=this._cx*this.scale.x,t.b=this._sx*this.scale.x,t.c=this._cy*this.scale.y,t.d=this._sy*this.scale.y,t.tx=this.position.x-(this.pivot.x*t.a+this.pivot.y*t.c),t.ty=this.position.y-(this.pivot.x*t.b+this.pivot.y*t.d);var n=e.worldTransform,r=this.worldTransform;r.a=t.a*n.a+t.b*n.c,r.b=t.a*n.b+t.b*n.d,r.c=t.c*n.a+t.d*n.c,r.d=t.c*n.b+t.d*n.d,r.tx=t.tx*n.a+t.ty*n.c+n.tx,r.ty=t.tx*n.b+t.ty*n.d+n.ty,this._worldID++},t.prototype.setFromMatrix=function(e){e.decompose(this)},i(t,[{key:"rotation",get:function(){return this._rotation},set:function(e){this._rotation=e,this.updateSkew()}}]),t}(((o=s)&&o.__esModule?o:{default:o}).default);t.default=u},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.__esModule=!0;var o,i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(9),s=n(58);var u=function(e){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":r(t))&&"function"!=typeof t?e:t}(this,e.call(this));return n.position=new a.ObservablePoint(n.onChange,n,0,0),n.scale=new a.ObservablePoint(n.onChange,n,1,1),n.pivot=new a.ObservablePoint(n.onChange,n,0,0),n.skew=new a.ObservablePoint(n.updateSkew,n,0,0),n._rotation=0,n._cx=1,n._sx=0,n._cy=0,n._sy=1,n._localID=0,n._currentLocalID=0,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":r(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.onChange=function(){this._localID++},t.prototype.updateSkew=function(){this._cx=Math.cos(this._rotation+this.skew._y),this._sx=Math.sin(this._rotation+this.skew._y),this._cy=-Math.sin(this._rotation-this.skew._x),this._sy=Math.cos(this._rotation-this.skew._x),this._localID++},t.prototype.updateLocalTransform=function(){var e=this.localTransform;this._localID!==this._currentLocalID&&(e.a=this._cx*this.scale._x,e.b=this._sx*this.scale._x,e.c=this._cy*this.scale._y,e.d=this._sy*this.scale._y,e.tx=this.position._x-(this.pivot._x*e.a+this.pivot._y*e.c),e.ty=this.position._y-(this.pivot._x*e.b+this.pivot._y*e.d),this._currentLocalID=this._localID,this._parentID=-1)},t.prototype.updateTransform=function(e){var t=this.localTransform;if(this._localID!==this._currentLocalID&&(t.a=this._cx*this.scale._x,t.b=this._sx*this.scale._x,t.c=this._cy*this.scale._y,t.d=this._sy*this.scale._y,t.tx=this.position._x-(this.pivot._x*t.a+this.pivot._y*t.c),t.ty=this.position._y-(this.pivot._x*t.b+this.pivot._y*t.d),this._currentLocalID=this._localID,this._parentID=-1),this._parentID!==e._worldID){var n=e.worldTransform,r=this.worldTransform;r.a=t.a*n.a+t.b*n.c,r.b=t.a*n.b+t.b*n.d,r.c=t.c*n.a+t.d*n.c,r.d=t.c*n.b+t.d*n.d,r.tx=t.tx*n.a+t.ty*n.c+n.tx,r.ty=t.tx*n.b+t.ty*n.d+n.ty,this._parentID=e._worldID,this._worldID++}},t.prototype.setFromMatrix=function(e){e.decompose(this),this._localID++},i(t,[{key:"rotation",get:function(){return this._rotation},set:function(e){this._rotation=e,this.updateSkew()}}]),t}(((o=s)&&o.__esModule?o:{default:o}).default);t.default=u},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.__esModule=!0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=f(n(18)),a=n(3),s=f(n(7)),u=f(n(121)),l=f(n(120)),c=f(n(60)),d=n(9);function f(e){return e&&e.__esModule?e:{default:e}}var h=function(e){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":r(t))&&"function"!=typeof t?e:t}(this,e.call(this)),o=s.default.TRANSFORM_MODE===a.TRANSFORM_MODE.STATIC?u.default:l.default;return n.tempDisplayObjectParent=null,n.transform=new o,n.alpha=1,n.visible=!0,n.renderable=!0,n.parent=null,n.worldAlpha=1,n.filterArea=null,n._filters=null,n._enabledFilters=null,n._bounds=new c.default,n._boundsID=0,n._lastBoundsID=-1,n._boundsRect=null,n._localBoundsRect=null,n._mask=null,n._destroyed=!1,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":r(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.updateTransform=function(){this.transform.updateTransform(this.parent.transform),this.worldAlpha=this.alpha*this.parent.worldAlpha,this._bounds.updateID++},t.prototype._recursivePostUpdateTransform=function(){this.parent?(this.parent._recursivePostUpdateTransform(),this.transform.updateTransform(this.parent.transform)):this.transform.updateTransform(this._tempDisplayObjectParent.transform)},t.prototype.getBounds=function(e,t){return e||(this.parent?(this._recursivePostUpdateTransform(),this.updateTransform()):(this.parent=this._tempDisplayObjectParent,this.updateTransform(),this.parent=null)),this._boundsID!==this._lastBoundsID&&this.calculateBounds(),t||(this._boundsRect||(this._boundsRect=new d.Rectangle),t=this._boundsRect),this._bounds.getRectangle(t)},t.prototype.getLocalBounds=function(e){var t=this.transform,n=this.parent;this.parent=null,this.transform=this._tempDisplayObjectParent.transform,e||(this._localBoundsRect||(this._localBoundsRect=new d.Rectangle),e=this._localBoundsRect);var r=this.getBounds(!1,e);return this.parent=n,this.transform=t,r},t.prototype.toGlobal=function(e,t){return arguments.length>2&&void 0!==arguments[2]&&arguments[2]||(this._recursivePostUpdateTransform(),this.parent?this.displayObjectUpdateTransform():(this.parent=this._tempDisplayObjectParent,this.displayObjectUpdateTransform(),this.parent=null)),this.worldTransform.apply(e,t)},t.prototype.toLocal=function(e,t,n,r){return t&&(e=t.toGlobal(e,n,r)),r||(this._recursivePostUpdateTransform(),this.parent?this.displayObjectUpdateTransform():(this.parent=this._tempDisplayObjectParent,this.displayObjectUpdateTransform(),this.parent=null)),this.worldTransform.applyInverse(e,n)},t.prototype.renderWebGL=function(e){},t.prototype.renderCanvas=function(e){},t.prototype.setParent=function(e){if(!e||!e.addChild)throw new Error("setParent: Argument must be a Container");return e.addChild(this),e},t.prototype.setTransform=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0,s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:0,u=arguments.length>8&&void 0!==arguments[8]?arguments[8]:0;return this.position.x=e,this.position.y=t,this.scale.x=n||1,this.scale.y=r||1,this.rotation=o,this.skew.x=i,this.skew.y=a,this.pivot.x=s,this.pivot.y=u,this},t.prototype.destroy=function(){this.removeAllListeners(),this.parent&&this.parent.removeChild(this),this.transform=null,this.parent=null,this._bounds=null,this._currentBounds=null,this._mask=null,this.filterArea=null,this.interactive=!1,this.interactiveChildren=!1,this._destroyed=!0},o(t,[{key:"_tempDisplayObjectParent",get:function(){return null===this.tempDisplayObjectParent&&(this.tempDisplayObjectParent=new t),this.tempDisplayObjectParent}},{key:"x",get:function(){return this.position.x},set:function(e){this.transform.position.x=e}},{key:"y",get:function(){return this.position.y},set:function(e){this.transform.position.y=e}},{key:"worldTransform",get:function(){return this.transform.worldTransform}},{key:"localTransform",get:function(){return this.transform.localTransform}},{key:"position",get:function(){return this.transform.position},set:function(e){this.transform.position.copy(e)}},{key:"scale",get:function(){return this.transform.scale},set:function(e){this.transform.scale.copy(e)}},{key:"pivot",get:function(){return this.transform.pivot},set:function(e){this.transform.pivot.copy(e)}},{key:"skew",get:function(){return this.transform.skew},set:function(e){this.transform.skew.copy(e)}},{key:"rotation",get:function(){return this.transform.rotation},set:function(e){this.transform.rotation=e}},{key:"worldVisible",get:function(){var e=this;do{if(!e.visible)return!1;e=e.parent}while(e);return!0}},{key:"mask",get:function(){return this._mask},set:function(e){this._mask&&(this._mask.renderable=!0,this._mask.isMask=!1),this._mask=e,this._mask&&(this._mask.renderable=!1,this._mask.isMask=!0)}},{key:"filters",get:function(){return this._filters&&this._filters.slice()},set:function(e){this._filters=e&&e.slice()}}]),t}(i.default);t.default=h,h.prototype.displayObjectUpdateTransform=h.prototype.updateTransform},function(e,t,n){"use strict";var r=function(e){return function(){return this.data[e].value}},o={float:function(e,t,n){e.uniform1f(t,n)},vec2:function(e,t,n){e.uniform2f(t,n[0],n[1])},vec3:function(e,t,n){e.uniform3f(t,n[0],n[1],n[2])},vec4:function(e,t,n){e.uniform4f(t,n[0],n[1],n[2],n[3])},int:function(e,t,n){e.uniform1i(t,n)},ivec2:function(e,t,n){e.uniform2i(t,n[0],n[1])},ivec3:function(e,t,n){e.uniform3i(t,n[0],n[1],n[2])},ivec4:function(e,t,n){e.uniform4i(t,n[0],n[1],n[2],n[3])},bool:function(e,t,n){e.uniform1i(t,n)},bvec2:function(e,t,n){e.uniform2i(t,n[0],n[1])},bvec3:function(e,t,n){e.uniform3i(t,n[0],n[1],n[2])},bvec4:function(e,t,n){e.uniform4i(t,n[0],n[1],n[2],n[3])},mat2:function(e,t,n){e.uniformMatrix2fv(t,!1,n)},mat3:function(e,t,n){e.uniformMatrix3fv(t,!1,n)},mat4:function(e,t,n){e.uniformMatrix4fv(t,!1,n)},sampler2D:function(e,t,n){e.uniform1i(t,n)}},i={float:function(e,t,n){e.uniform1fv(t,n)},vec2:function(e,t,n){e.uniform2fv(t,n)},vec3:function(e,t,n){e.uniform3fv(t,n)},vec4:function(e,t,n){e.uniform4fv(t,n)},int:function(e,t,n){e.uniform1iv(t,n)},ivec2:function(e,t,n){e.uniform2iv(t,n)},ivec3:function(e,t,n){e.uniform3iv(t,n)},ivec4:function(e,t,n){e.uniform4iv(t,n)},bool:function(e,t,n){e.uniform1iv(t,n)},bvec2:function(e,t,n){e.uniform2iv(t,n)},bvec3:function(e,t,n){e.uniform3iv(t,n)},bvec4:function(e,t,n){e.uniform4iv(t,n)},sampler2D:function(e,t,n){e.uniform1iv(t,n)}};function a(e,t){return function(n){this.data[e].value=n;var r=this.data[e].location;1===t.size?o[t.type](this.gl,r,n):i[t.type](this.gl,r,n)}}function s(e,t){for(var n=t,r=0;r<e.length-1;r++){var o=n[e[r]]||{data:{}};n[e[r]]=o,n=o}return n}e.exports=function(e,t){var n={data:{}};n.gl=e;for(var o=Object.keys(t),i=0;i<o.length;i++){var u=o[i],l=u.split("."),c=l[l.length-1],d=s(l,n),f=t[u];d.data[c]=f,d.gl=e,Object.defineProperty(d,c,{get:r(c),set:a(c,f)})}return n}},function(e,t,n){"use strict";e.exports=function(e,t){return"precision"!==e.substring(0,9)?"precision "+t+" float;\n"+e:e}},function(e,t,n){"use strict";var r=function(e){for(var t=new Array(e),n=0;n<t.length;n++)t[n]=!1;return t};e.exports=function(e,t){switch(e){case"float":return 0;case"vec2":return new Float32Array(2*t);case"vec3":return new Float32Array(3*t);case"vec4":return new Float32Array(4*t);case"int":case"sampler2D":return 0;case"ivec2":return new Int32Array(2*t);case"ivec3":return new Int32Array(3*t);case"ivec4":return new Int32Array(4*t);case"bool":return!1;case"bvec2":return r(2*t);case"bvec3":return r(3*t);case"bvec4":return r(4*t);case"mat2":return new Float32Array([1,0,0,1]);case"mat3":return new Float32Array([1,0,0,0,1,0,0,0,1]);case"mat4":return new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1])}}},function(e,t,n){"use strict";var r=n(61),o=n(125);e.exports=function(e,t){for(var n={},i=e.getProgramParameter(t,e.ACTIVE_UNIFORMS),a=0;a<i;a++){var s=e.getActiveUniform(t,a),u=s.name.replace(/\[.*?\]/,""),l=r(e,s.type);n[u]={type:l,size:s.size,location:e.getUniformLocation(t,u),value:o(l,s.size)}}return n}},function(e,t,n){"use strict";var r={float:1,vec2:2,vec3:3,vec4:4,int:1,ivec2:2,ivec3:3,ivec4:4,bool:1,bvec2:2,bvec3:3,bvec4:4,mat2:4,mat3:9,mat4:16,sampler2D:1};e.exports=function(e){return r[e]}},function(e,t,n){"use strict";var r=n(61),o=n(127),i=function(e,t,n,r){gl.vertexAttribPointer(this.location,this.size,e||gl.FLOAT,t||!1,n||0,r||0)};e.exports=function(e,t){for(var n={},a=e.getProgramParameter(t,e.ACTIVE_ATTRIBUTES),s=0;s<a;s++){var u=e.getActiveAttrib(t,s),l=r(e,u.type);n[u.name]={type:l,size:o(l),location:e.getAttribLocation(t,u.name),pointer:i}}return n}},function(e,t,n){"use strict";var r=function(e,t,n){var r=e.createShader(t);return e.shaderSource(r,n),e.compileShader(r),e.getShaderParameter(r,e.COMPILE_STATUS)?r:(console.log(e.getShaderInfoLog(r)),null)};e.exports=function(e,t,n,o){var i=r(e,e.VERTEX_SHADER,t),a=r(e,e.FRAGMENT_SHADER,n),s=e.createProgram();if(e.attachShader(s,i),e.attachShader(s,a),o)for(var u in o)e.bindAttribLocation(s,o[u],u);return e.linkProgram(s),e.getProgramParameter(s,e.LINK_STATUS)||(console.error("Pixi.js Error: Could not initialize shader."),console.error("gl.VALIDATE_STATUS",e.getProgramParameter(s,e.VALIDATE_STATUS)),console.error("gl.getError()",e.getError()),""!==e.getProgramInfoLog(s)&&console.warn("Pixi.js Warning: gl.getProgramInfoLog()",e.getProgramInfoLog(s)),e.deleteProgram(s),s=null),e.deleteShader(i),e.deleteShader(a),s}},function(e,t,n){"use strict";var r=function(e,t,n,r,o){this.gl=e,this.texture=e.createTexture(),this.mipmap=!1,this.premultiplyAlpha=!1,this.width=t||-1,this.height=n||-1,this.format=r||e.RGBA,this.type=o||e.UNSIGNED_BYTE};r.prototype.upload=function(e){this.bind();var t=this.gl;t.pixelStorei(t.UNPACK_PREMULTIPLY_ALPHA_WEBGL,this.premultiplyAlpha);var n=e.videoWidth||e.width,r=e.videoHeight||e.height;r!==this.height||n!==this.width?t.texImage2D(t.TEXTURE_2D,0,this.format,this.format,this.type,e):t.texSubImage2D(t.TEXTURE_2D,0,0,0,this.format,this.type,e),this.width=n,this.height=r};var o=!1;r.prototype.uploadData=function(e,t,n){this.bind();var r=this.gl;if(e instanceof Float32Array){if(!o){if(!r.getExtension("OES_texture_float"))throw new Error("floating point textures not available");o=!0}this.type=r.FLOAT}else this.type=this.type||r.UNSIGNED_BYTE;r.pixelStorei(r.UNPACK_PREMULTIPLY_ALPHA_WEBGL,this.premultiplyAlpha),t!==this.width||n!==this.height?r.texImage2D(r.TEXTURE_2D,0,this.format,t,n,0,this.format,this.type,e||null):r.texSubImage2D(r.TEXTURE_2D,0,0,0,t,n,this.format,this.type,e||null),this.width=t,this.height=n},r.prototype.bind=function(e){var t=this.gl;void 0!==e&&t.activeTexture(t.TEXTURE0+e),t.bindTexture(t.TEXTURE_2D,this.texture)},r.prototype.unbind=function(){var e=this.gl;e.bindTexture(e.TEXTURE_2D,null)},r.prototype.minFilter=function(e){var t=this.gl;this.bind(),this.mipmap?t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,e?t.LINEAR_MIPMAP_LINEAR:t.NEAREST_MIPMAP_NEAREST):t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,e?t.LINEAR:t.NEAREST)},r.prototype.magFilter=function(e){var t=this.gl;this.bind(),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,e?t.LINEAR:t.NEAREST)},r.prototype.enableMipmap=function(){var e=this.gl;this.bind(),this.mipmap=!0,e.generateMipmap(e.TEXTURE_2D)},r.prototype.enableLinearScaling=function(){this.minFilter(!0),this.magFilter(!0)},r.prototype.enableNearestScaling=function(){this.minFilter(!1),this.magFilter(!1)},r.prototype.enableWrapClamp=function(){var e=this.gl;this.bind(),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE)},r.prototype.enableWrapRepeat=function(){var e=this.gl;this.bind(),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.REPEAT),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.REPEAT)},r.prototype.enableWrapMirrorRepeat=function(){var e=this.gl;this.bind(),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.MIRRORED_REPEAT),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.MIRRORED_REPEAT)},r.prototype.destroy=function(){this.gl.deleteTexture(this.texture)},r.fromSource=function(e,t,n){var o=new r(e);return o.premultiplyAlpha=n||!1,o.upload(t),o},r.fromData=function(e,t,n,o){var i=new r(e);return i.uploadData(t,n,o),i},e.exports=r},function(e,t,n){"use strict";e.exports=function(e,t,n){var r;if(n){var o=n.tempAttribState,i=n.attribState;for(r=0;r<o.length;r++)o[r]=!1;for(r=0;r<t.length;r++)o[t[r].attribute.location]=!0;for(r=0;r<i.length;r++)i[r]!==o[r]&&(i[r]=o[r],n.attribState[r]?e.enableVertexAttribArray(r):e.disableVertexAttribArray(r))}else for(r=0;r<t.length;r++){var a=t[r];e.enableVertexAttribArray(a.attribute.location)}}},function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(63),i=(r=o)&&r.__esModule?r:{default:r};var a=[1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1,0,1],s=[0,1,1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1],u=[0,-1,-1,-1,0,1,1,1,0,1,1,1,0,-1,-1,-1],l=[1,1,0,-1,-1,-1,0,1,-1,-1,0,1,1,1,0,-1],c=[],d=[];function f(e){return e<0?-1:e>0?1:0}!function(){for(var e=0;e<16;e++){var t=[];d.push(t);for(var n=0;n<16;n++)for(var r=f(a[e]*a[n]+u[e]*s[n]),o=f(s[e]*a[n]+l[e]*s[n]),h=f(a[e]*u[n]+u[e]*l[n]),p=f(s[e]*u[n]+l[e]*l[n]),y=0;y<16;y++)if(a[y]===r&&s[y]===o&&u[y]===h&&l[y]===p){t.push(y);break}}for(var v=0;v<16;v++){var m=new i.default;m.set(a[v],s[v],u[v],l[v],0,0),c.push(m)}}();var h={E:0,SE:1,S:2,SW:3,W:4,NW:5,N:6,NE:7,MIRROR_VERTICAL:8,MIRROR_HORIZONTAL:12,uX:function(e){return a[e]},uY:function(e){return s[e]},vX:function(e){return u[e]},vY:function(e){return l[e]},inv:function(e){return 8&e?15&e:7&-e},add:function(e,t){return d[e][t]},sub:function(e,t){return d[e][h.inv(t)]},rotate180:function(e){return 4^e},isVertical:function(e){return 2==(3&e)},byDirection:function(e,t){return 2*Math.abs(e)<=Math.abs(t)?t>=0?h.S:h.N:2*Math.abs(t)<=Math.abs(e)?e>0?h.E:h.W:t>0?e>0?h.SE:h.SW:e>0?h.NE:h.NW},matrixAppendRotationInv:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=c[h.inv(t)];o.tx=n,o.ty=r,e.append(o)}};t.default=h},function(e,t,n){"use strict";t.__esModule=!0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var o=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._x=r,this._y=o,this.cb=t,this.scope=n}return e.prototype.set=function(e,t){var n=e||0,r=t||(0!==t?n:0);this._x===n&&this._y===r||(this._x=n,this._y=r,this.cb.call(this.scope))},e.prototype.copy=function(e){this._x===e.x&&this._y===e.y||(this._x=e.x,this._y=e.y,this.cb.call(this.scope))},r(e,[{key:"x",get:function(){return this._x},set:function(e){this._x!==e&&(this._x=e,this.cb.call(this.scope))}},{key:"y",get:function(){return this._y},set:function(e){this._y!==e&&(this._y=e,this.cb.call(this.scope))}}]),e}();t.default=o},function(e,t,n){"use strict";(function(e){t.__esModule=!0,t.loader=t.prepare=t.particles=t.mesh=t.loaders=t.interaction=t.filters=t.extras=t.extract=t.accessibility=void 0;var r=n(287);Object.keys(r).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}})});var o=n(4);Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}})});var i,a=n(227),s=(i=a)&&i.__esModule?i:{default:i},u=m(n(226)),l=m(n(224)),c=m(n(100)),d=m(n(214)),f=m(n(207)),h=m(n(205)),p=m(n(201)),y=m(n(196)),v=m(n(191));function m(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}o.utils.mixins.performMixins();var g=h.shared||null;t.accessibility=u,t.extract=l,t.extras=c,t.filters=d,t.interaction=f,t.loaders=h,t.mesh=p,t.particles=y,t.prepare=v,t.loader=g,"function"==typeof s.default&&(0,s.default)(t),e.PIXI=t}).call(this,n(24))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=t.red={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",a100:"#ff8a80",a200:"#ff5252",a400:"#ff1744",a700:"#d50000"},o=t.pink={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",a100:"#ff80ab",a200:"#ff4081",a400:"#f50057",a700:"#c51162"},i=t.purple={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",a100:"#ea80fc",a200:"#e040fb",a400:"#d500f9",a700:"#aa00ff"},a=t.deepPurple={50:"#ede7f6",100:"#d1c4e9",200:"#b39ddb",300:"#9575cd",400:"#7e57c2",500:"#673ab7",600:"#5e35b1",700:"#512da8",800:"#4527a0",900:"#311b92",a100:"#b388ff",a200:"#7c4dff",a400:"#651fff",a700:"#6200ea"},s=t.indigo={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",a100:"#8c9eff",a200:"#536dfe",a400:"#3d5afe",a700:"#304ffe"},u=t.blue={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",a100:"#82b1ff",a200:"#448aff",a400:"#2979ff",a700:"#2962ff"},l=t.lightBlue={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",a100:"#80d8ff",a200:"#40c4ff",a400:"#00b0ff",a700:"#0091ea"},c=t.cyan={50:"#e0f7fa",100:"#b2ebf2",200:"#80deea",300:"#4dd0e1",400:"#26c6da",500:"#00bcd4",600:"#00acc1",700:"#0097a7",800:"#00838f",900:"#006064",a100:"#84ffff",a200:"#18ffff",a400:"#00e5ff",a700:"#00b8d4"},d=t.teal={50:"#e0f2f1",100:"#b2dfdb",200:"#80cbc4",300:"#4db6ac",400:"#26a69a",500:"#009688",600:"#00897b",700:"#00796b",800:"#00695c",900:"#004d40",a100:"#a7ffeb",a200:"#64ffda",a400:"#1de9b6",a700:"#00bfa5"},f=t.green={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",a100:"#b9f6ca",a200:"#69f0ae",a400:"#00e676",a700:"#00c853"},h=t.lightGreen={50:"#f1f8e9",100:"#dcedc8",200:"#c5e1a5",300:"#aed581",400:"#9ccc65",500:"#8bc34a",600:"#7cb342",700:"#689f38",800:"#558b2f",900:"#33691e",a100:"#ccff90",a200:"#b2ff59",a400:"#76ff03",a700:"#64dd17"},p=t.lime={50:"#f9fbe7",100:"#f0f4c3",200:"#e6ee9c",300:"#dce775",400:"#d4e157",500:"#cddc39",600:"#c0ca33",700:"#afb42b",800:"#9e9d24",900:"#827717",a100:"#f4ff81",a200:"#eeff41",a400:"#c6ff00",a700:"#aeea00"},y=t.yellow={50:"#fffde7",100:"#fff9c4",200:"#fff59d",300:"#fff176",400:"#ffee58",500:"#ffeb3b",600:"#fdd835",700:"#fbc02d",800:"#f9a825",900:"#f57f17",a100:"#ffff8d",a200:"#ffff00",a400:"#ffea00",a700:"#ffd600"},v=t.amber={50:"#fff8e1",100:"#ffecb3",200:"#ffe082",300:"#ffd54f",400:"#ffca28",500:"#ffc107",600:"#ffb300",700:"#ffa000",800:"#ff8f00",900:"#ff6f00",a100:"#ffe57f",a200:"#ffd740",a400:"#ffc400",a700:"#ffab00"},m=t.orange={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",a100:"#ffd180",a200:"#ffab40",a400:"#ff9100",a700:"#ff6d00"},g=t.deepOrange={50:"#fbe9e7",100:"#ffccbc",200:"#ffab91",300:"#ff8a65",400:"#ff7043",500:"#ff5722",600:"#f4511e",700:"#e64a19",800:"#d84315",900:"#bf360c",a100:"#ff9e80",a200:"#ff6e40",a400:"#ff3d00",a700:"#dd2c00"},b=t.brown={50:"#efebe9",100:"#d7ccc8",200:"#bcaaa4",300:"#a1887f",400:"#8d6e63",500:"#795548",600:"#6d4c41",700:"#5d4037",800:"#4e342e",900:"#3e2723"},_=t.grey={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121"},x=t.blueGrey={50:"#eceff1",100:"#cfd8dc",200:"#b0bec5",300:"#90a4ae",400:"#78909c",500:"#607d8b",600:"#546e7a",700:"#455a64",800:"#37474f",900:"#263238"},w=t.darkText={primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",dividers:"rgba(0, 0, 0, 0.12)"},E=t.lightText={primary:"rgba(255, 255, 255, 1)",secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",dividers:"rgba(255, 255, 255, 0.12)"},S=t.darkIcons={active:"rgba(0, 0, 0, 0.54)",inactive:"rgba(0, 0, 0, 0.38)"},T=t.lightIcons={active:"rgba(255, 255, 255, 1)",inactive:"rgba(255, 255, 255, 0.5)"},O=t.white="#ffffff",C=t.black="#000000";t.default={red:r,pink:o,purple:i,deepPurple:a,indigo:s,blue:u,lightBlue:l,cyan:c,teal:d,green:f,lightGreen:h,lime:p,yellow:y,amber:v,orange:m,deepOrange:g,brown:b,grey:_,blueGrey:x,darkText:w,lightText:E,darkIcons:S,lightIcons:T,white:O,black:C}},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0}),t.ColorWrap=void 0;var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(0),s=c(a),u=c(n(137)),l=c(n(12));function c(e){return e&&e.__esModule?e:{default:e}}var d=t.ColorWrap=function(e){var t=function(t){function n(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":r(t))&&"function"!=typeof t?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));return t.handleChange=function(e,n){if(l.default.simpleCheckForValidColor(e)){var r=l.default.toState(e,e.h||t.state.oldHue);t.setState(r),t.props.onChangeComplete&&t.debounce(t.props.onChangeComplete,r,n),t.props.onChange&&t.props.onChange(r,n)}},t.handleSwatchHover=function(e,n){if(l.default.simpleCheckForValidColor(e)){var r=l.default.toState(e,e.h||t.state.oldHue);t.setState(r),t.props.onSwatchHover&&t.props.onSwatchHover(r,n)}},t.state=o({},l.default.toState(e.color,0)),t.debounce=(0,u.default)(function(e,t,n){e(t,n)},100),t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":r(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,a.PureComponent||a.Component),i(n,[{key:"componentWillReceiveProps",value:function(e){this.setState(o({},l.default.toState(e.color,this.state.oldHue)))}},{key:"render",value:function(){var t={};return this.props.onSwatchHover&&(t.onSwatchHover=this.handleSwatchHover),s.default.createElement(e,o({},this.props,this.state,{onChange:this.handleChange},t))}}]),n}();return t.propTypes=o({},e.propTypes),t.defaultProps=o({},e.defaultProps,{color:{h:250,s:.5,l:.2,a:1}}),t};t.default=d},function(e,t,n){"use strict";var r=n(15),o=n(335),i=n(334),a="Expected a function",s=Math.max,u=Math.min;e.exports=function(e,t,n){var l,c,d,f,h,p,y=0,v=!1,m=!1,g=!0;if("function"!=typeof e)throw new TypeError(a);function b(t){var n=l,r=c;return l=c=void 0,y=t,f=e.apply(r,n)}function _(e){var n=e-p;return void 0===p||n>=t||n<0||m&&e-y>=d}function x(){var e=o();if(_(e))return w(e);h=setTimeout(x,function(e){var n=t-(e-p);return m?u(n,d-(e-y)):n}(e))}function w(e){return h=void 0,g&&l?b(e):(l=c=void 0,f)}function E(){var e=o(),n=_(e);if(l=arguments,c=this,p=e,n){if(void 0===h)return function(e){return y=e,h=setTimeout(x,t),v?b(e):f}(p);if(m)return h=setTimeout(x,t),b(p)}return void 0===h&&(h=setTimeout(x,t)),f}return t=i(t)||0,r(n)&&(v=!!n.leading,d=(m="maxWait"in n)?s(i(n.maxWait)||0,t):d,g="trailing"in n?!!n.trailing:g),E.cancel=function(){void 0!==h&&clearTimeout(h),y=0,l=p=c=h=void 0},E.flush=function(){return void 0===h?f:w(o())},E}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Checkboard=void 0;var r=a(n(0)),o=a(n(1)),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(342));function a(e){return e&&e.__esModule?e:{default:e}}var s=t.Checkboard=function(e){var t=e.white,n=e.grey,a=e.size,s=e.renderers,u=e.borderRadius,l=e.boxShadow,c=(0,o.default)({default:{grid:{borderRadius:u,boxShadow:l,absolute:"0px 0px 0px 0px",background:"url("+i.get(t,n,a,s.canvas)+") center left"}}});return r.default.createElement("div",{style:c.grid})};s.defaultProps={size:8,white:"transparent",grey:"rgba(0,0,0,.08)",renderers:{}},t.default=s},function(e,t,n){"use strict";e.exports=function(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}},function(e,t,n){"use strict";var r=n(152),o=n(72),i=n(67),a=n(151),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,i(e)),e=o(e);return t}:a;e.exports=s},function(e,t,n){"use strict";var r=n(169),o=n(367),i=n(47);e.exports=function(e){return i(e)?r(e,!0):o(e)}},function(e,t,n){"use strict";var r=n(370);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},function(e,t,n){"use strict";var r=n(142),o=n(70),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];i.call(e,t)&&o(a,n)&&(void 0!==n||t in e)||r(e,t,n)}},function(e,t,n){"use strict";e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}},function(e,t,n){"use strict";var r=n(170),o=n(374)(r);e.exports=o},function(e,t,n){"use strict";var r=n(11),o=n(66),i=n(386),a=n(383);e.exports=function(e,t){return r(e)?e:o(e,t)?[e]:i(a(e))}},function(e,t,n){"use strict";var r=n(146),o=n(41);e.exports=function(e,t){for(var n=0,i=(t=r(t,e)).length;null!=e&&n<i;)e=e[o(t[n++])];return n&&n==i?e:void 0}},function(e,t,n){"use strict";e.exports=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}},function(e,t,n){"use strict";var r=n(15);e.exports=function(e){return e==e&&!r(e)}},function(e,t,n){"use strict";var r=n(393),o=n(69),i=n(392),a=n(391),s=n(390),u=n(21),l=n(160),c=l(r),d=l(o),f=l(i),h=l(a),p=l(s),y=u;(r&&"[object DataView]"!=y(new r(new ArrayBuffer(1)))||o&&"[object Map]"!=y(new o)||i&&"[object Promise]"!=y(i.resolve())||a&&"[object Set]"!=y(new a)||s&&"[object WeakMap]"!=y(new s))&&(y=function(e){var t=u(e),n="[object Object]"==t?e.constructor:void 0,r=n?l(n):"";if(r)switch(r){case c:return"[object DataView]";case d:return"[object Map]";case f:return"[object Promise]";case h:return"[object Set]";case p:return"[object WeakMap]"}return t}),e.exports=y},function(e,t,n){"use strict";e.exports=function(){return[]}},function(e,t,n){"use strict";e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},function(e,t,n){"use strict";var r=n(152),o=n(11);e.exports=function(e,t,n){var i=t(e);return o(e)?i:r(i,n(e))}},function(e,t,n){"use strict";var r=n(153),o=n(67),i=n(31);e.exports=function(e){return r(e,i,o)}},function(e,t,n){"use strict";e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}},function(e,t,n){"use strict";e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}},function(e,t,n){"use strict";var r=n(13).Uint8Array;e.exports=r},function(e,t,n){"use strict";var r=n(401),o=n(398),i=n(397),a=1,s=2;e.exports=function(e,t,n,u,l,c){var d=n&a,f=e.length,h=t.length;if(f!=h&&!(d&&h>f))return!1;var p=c.get(e);if(p&&c.get(t))return p==t;var y=-1,v=!0,m=n&s?new r:void 0;for(c.set(e,t),c.set(t,e);++y<f;){var g=e[y],b=t[y];if(u)var _=d?u(b,g,y,t,e,c):u(g,b,y,e,t,c);if(void 0!==_){if(_)continue;v=!1;break}if(m){if(!o(t,function(e,t){if(!i(m,t)&&(g===e||l(g,e,n,u,c)))return m.push(t)})){v=!1;break}}else if(g!==b&&!l(g,b,n,u,c)){v=!1;break}}return c.delete(e),c.delete(t),v}},function(e,t,n){"use strict";var r=n(402),o=n(20);e.exports=function e(t,n,i,a,s){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!=t&&n!=n:r(t,n,i,a,e,s))}},function(e,t,n){"use strict";var r=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return r.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},function(e,t,n){"use strict";e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},function(e,t,n){"use strict";e.exports=function(e){return e}},function(e,t,n){"use strict";var r=n(162);e.exports=function(e){return"function"==typeof e?e:r}},function(e,t,n){"use strict";var r=n(21),o=n(15),i="[object AsyncFunction]",a="[object Function]",s="[object GeneratorFunction]",u="[object Proxy]";e.exports=function(e){if(!o(e))return!1;var t=r(e);return t==a||t==s||t==i||t==u}},function(e,t,n){"use strict";e.exports=function(e,t){return function(n){return e(t(n))}}},function(e,t,n){"use strict";var r=n(437),o=n(436),i=n(435),a=i&&i.isTypedArray,s=a?o(a):r;e.exports=s},function(e,t,n){"use strict";var r=9007199254740991,o=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){return!!(t=null==t?r:t)&&("number"==typeof e||o.test(e))&&e>-1&&e%1==0&&e<t}},function(e,t,n){"use strict";var r=n(439),o=n(20),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(e){return o(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=u},function(e,t,n){"use strict";var r=n(440),o=n(168),i=n(11),a=n(75),s=n(167),u=n(166),l=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),c=!n&&o(e),d=!n&&!c&&a(e),f=!n&&!c&&!d&&u(e),h=n||c||d||f,p=h?r(e.length,String):[],y=p.length;for(var v in e)!t&&!l.call(e,v)||h&&("length"==v||d&&("offset"==v||"parent"==v)||f&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||s(v,y))||p.push(v);return p}},function(e,t,n){"use strict";var r=n(442),o=n(31);e.exports=function(e,t){return e&&r(e,t,o)}},function(e,t,n){"use strict";(function(t){var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r="object"==(void 0===t?"undefined":n(t))&&t&&t.Object===Object&&t;e.exports=r}).call(this,n(24))},function(e,t,n){"use strict";var r,o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(i){var a=/^\s+/,s=/\s+$/,u=0,l=i.round,c=i.min,d=i.max,f=i.random;function h(e,t){if(e=e||"",t=t||{},e instanceof h)return e;if(!(this instanceof h))return new h(e,t);var n=function(e){var t={r:0,g:0,b:0},n=1,r=null,u=null,l=null,f=!1,h=!1;"string"==typeof e&&(e=function(e){e=e.replace(a,"").replace(s,"").toLowerCase();var t,n=!1;if(A[e])e=A[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};if(t=X.rgb.exec(e))return{r:t[1],g:t[2],b:t[3]};if(t=X.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=X.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=X.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=X.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=X.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=X.hex8.exec(e))return{r:N(t[1]),g:N(t[2]),b:N(t[3]),a:U(t[4]),format:n?"name":"hex8"};if(t=X.hex6.exec(e))return{r:N(t[1]),g:N(t[2]),b:N(t[3]),format:n?"name":"hex"};if(t=X.hex4.exec(e))return{r:N(t[1]+""+t[1]),g:N(t[2]+""+t[2]),b:N(t[3]+""+t[3]),a:U(t[4]+""+t[4]),format:n?"name":"hex8"};if(t=X.hex3.exec(e))return{r:N(t[1]+""+t[1]),g:N(t[2]+""+t[2]),b:N(t[3]+""+t[3]),format:n?"name":"hex"};return!1}(e));"object"==(void 0===e?"undefined":o(e))&&(G(e.r)&&G(e.g)&&G(e.b)?(p=e.r,y=e.g,v=e.b,t={r:255*D(p,255),g:255*D(y,255),b:255*D(v,255)},f=!0,h="%"===String(e.r).substr(-1)?"prgb":"rgb"):G(e.h)&&G(e.s)&&G(e.v)?(r=F(e.s),u=F(e.v),t=function(e,t,n){e=6*D(e,360),t=D(t,100),n=D(n,100);var r=i.floor(e),o=e-r,a=n*(1-t),s=n*(1-o*t),u=n*(1-(1-o)*t),l=r%6;return{r:255*[n,s,a,a,u,n][l],g:255*[u,n,n,s,a,a][l],b:255*[a,a,u,n,n,s][l]}}(e.h,r,u),f=!0,h="hsv"):G(e.h)&&G(e.s)&&G(e.l)&&(r=F(e.s),l=F(e.l),t=function(e,t,n){var r,o,i;function a(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=D(e,360),t=D(t,100),n=D(n,100),0===t)r=o=i=n;else{var s=n<.5?n*(1+t):n+t-n*t,u=2*n-s;r=a(u,s,e+1/3),o=a(u,s,e),i=a(u,s,e-1/3)}return{r:255*r,g:255*o,b:255*i}}(e.h,r,l),f=!0,h="hsl"),e.hasOwnProperty("a")&&(n=e.a));var p,y,v;return n=I(n),{ok:f,format:e.format||h,r:c(255,d(t.r,0)),g:c(255,d(t.g,0)),b:c(255,d(t.b,0)),a:n}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=l(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=l(this._r)),this._g<1&&(this._g=l(this._g)),this._b<1&&(this._b=l(this._b)),this._ok=n.ok,this._tc_id=u++}function p(e,t,n){e=D(e,255),t=D(t,255),n=D(n,255);var r,o,i=d(e,t,n),a=c(e,t,n),s=(i+a)/2;if(i==a)r=o=0;else{var u=i-a;switch(o=s>.5?u/(2-i-a):u/(i+a),i){case e:r=(t-n)/u+(t<n?6:0);break;case t:r=(n-e)/u+2;break;case n:r=(e-t)/u+4}r/=6}return{h:r,s:o,l:s}}function y(e,t,n){e=D(e,255),t=D(t,255),n=D(n,255);var r,o,i=d(e,t,n),a=c(e,t,n),s=i,u=i-a;if(o=0===i?0:u/i,i==a)r=0;else{switch(i){case e:r=(t-n)/u+(t<n?6:0);break;case t:r=(n-e)/u+2;break;case n:r=(e-t)/u+4}r/=6}return{h:r,s:o,v:s}}function v(e,t,n,r){var o=[L(l(e).toString(16)),L(l(t).toString(16)),L(l(n).toString(16))];return r&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function m(e,t,n,r){return[L(B(r)),L(l(e).toString(16)),L(l(t).toString(16)),L(l(n).toString(16))].join("")}function g(e,t){t=0===t?0:t||10;var n=h(e).toHsl();return n.s-=t/100,n.s=j(n.s),h(n)}function b(e,t){t=0===t?0:t||10;var n=h(e).toHsl();return n.s+=t/100,n.s=j(n.s),h(n)}function _(e){return h(e).desaturate(100)}function x(e,t){t=0===t?0:t||10;var n=h(e).toHsl();return n.l+=t/100,n.l=j(n.l),h(n)}function w(e,t){t=0===t?0:t||10;var n=h(e).toRgb();return n.r=d(0,c(255,n.r-l(-t/100*255))),n.g=d(0,c(255,n.g-l(-t/100*255))),n.b=d(0,c(255,n.b-l(-t/100*255))),h(n)}function E(e,t){t=0===t?0:t||10;var n=h(e).toHsl();return n.l-=t/100,n.l=j(n.l),h(n)}function S(e,t){var n=h(e).toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,h(n)}function T(e){var t=h(e).toHsl();return t.h=(t.h+180)%360,h(t)}function O(e){var t=h(e).toHsl(),n=t.h;return[h(e),h({h:(n+120)%360,s:t.s,l:t.l}),h({h:(n+240)%360,s:t.s,l:t.l})]}function C(e){var t=h(e).toHsl(),n=t.h;return[h(e),h({h:(n+90)%360,s:t.s,l:t.l}),h({h:(n+180)%360,s:t.s,l:t.l}),h({h:(n+270)%360,s:t.s,l:t.l})]}function P(e){var t=h(e).toHsl(),n=t.h;return[h(e),h({h:(n+72)%360,s:t.s,l:t.l}),h({h:(n+216)%360,s:t.s,l:t.l})]}function M(e,t,n){t=t||6,n=n||30;var r=h(e).toHsl(),o=360/n,i=[h(e)];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(h(r));return i}function k(e,t){t=t||6;for(var n=h(e).toHsv(),r=n.h,o=n.s,i=n.v,a=[],s=1/t;t--;)a.push(h({h:r,s:o,v:i})),i=(i+s)%1;return a}h.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:i.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:i.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:i.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=I(e),this._roundA=l(100*this._a)/100,this},toHsv:function(){var e=y(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=y(this._r,this._g,this._b),t=l(360*e.h),n=l(100*e.s),r=l(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=p(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=p(this._r,this._g,this._b),t=l(360*e.h),n=l(100*e.s),r=l(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return v(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,o){var i=[L(l(e).toString(16)),L(l(t).toString(16)),L(l(n).toString(16)),L(B(r))];if(o&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1))return i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0);return i.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:l(this._r),g:l(this._g),b:l(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+l(this._r)+", "+l(this._g)+", "+l(this._b)+")":"rgba("+l(this._r)+", "+l(this._g)+", "+l(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:l(100*D(this._r,255))+"%",g:l(100*D(this._g,255))+"%",b:l(100*D(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+l(100*D(this._r,255))+"%, "+l(100*D(this._g,255))+"%, "+l(100*D(this._b,255))+"%)":"rgba("+l(100*D(this._r,255))+"%, "+l(100*D(this._g,255))+"%, "+l(100*D(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(R[v(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+m(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var o=h(e);n="#"+m(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return h(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(x,arguments)},brighten:function(){return this._applyModification(w,arguments)},darken:function(){return this._applyModification(E,arguments)},desaturate:function(){return this._applyModification(g,arguments)},saturate:function(){return this._applyModification(b,arguments)},greyscale:function(){return this._applyModification(_,arguments)},spin:function(){return this._applyModification(S,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(M,arguments)},complement:function(){return this._applyCombination(T,arguments)},monochromatic:function(){return this._applyCombination(k,arguments)},splitcomplement:function(){return this._applyCombination(P,arguments)},triad:function(){return this._applyCombination(O,arguments)},tetrad:function(){return this._applyCombination(C,arguments)}},h.fromRatio=function(e,t){if("object"==(void 0===e?"undefined":o(e))){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:F(e[r]));e=n}return h(e,t)},h.equals=function(e,t){return!(!e||!t)&&h(e).toRgbString()==h(t).toRgbString()},h.random=function(){return h.fromRatio({r:f(),g:f(),b:f()})},h.mix=function(e,t,n){n=0===n?0:n||50;var r=h(e).toRgb(),o=h(t).toRgb(),i=n/100;return h({r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a})},h.readability=function(e,t){var n=h(e),r=h(t);return(i.max(n.getLuminance(),r.getLuminance())+.05)/(i.min(n.getLuminance(),r.getLuminance())+.05)},h.isReadable=function(e,t,n){var r,o,i=h.readability(e,t);switch(o=!1,(r=function(e){var t,n;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==n&&"large"!==n&&(n="small");return{level:t,size:n}}(n)).level+r.size){case"AAsmall":case"AAAlarge":o=i>=4.5;break;case"AAlarge":o=i>=3;break;case"AAAsmall":o=i>=7}return o},h.mostReadable=function(e,t,n){var r,o,i,a,s=null,u=0;o=(n=n||{}).includeFallbackColors,i=n.level,a=n.size;for(var l=0;l<t.length;l++)(r=h.readability(e,t[l]))>u&&(u=r,s=h(t[l]));return h.isReadable(e,s,{level:i,size:a})||!o?s:(n.includeFallbackColors=!1,h.mostReadable(e,["#fff","#000"],n))};var A=h.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},R=h.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(A);function I(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function D(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=c(t,d(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),i.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function j(e){return c(1,d(0,e))}function N(e){return parseInt(e,16)}function L(e){return 1==e.length?"0"+e:""+e}function F(e){return e<=1&&(e=100*e+"%"),e}function B(e){return i.round(255*parseFloat(e)).toString(16)}function U(e){return N(e)/255}var H,W,z,X=(W="[\\s|\\(]+("+(H="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+H+")[,|\\s]+("+H+")\\s*\\)?",z="[\\s|\\(]+("+H+")[,|\\s]+("+H+")[,|\\s]+("+H+")[,|\\s]+("+H+")\\s*\\)?",{CSS_UNIT:new RegExp(H),rgb:new RegExp("rgb"+W),rgba:new RegExp("rgba"+z),hsl:new RegExp("hsl"+W),hsla:new RegExp("hsla"+z),hsv:new RegExp("hsv"+W),hsva:new RegExp("hsva"+z),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function G(e){return!!X.CSS_UNIT.exec(e)}void 0!==e&&e.exports?e.exports=h:void 0===(r=function(){return h}.call(t,n,t,e))||(e.exports=r)}(Math)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Checkbox=void 0;var r=i(n(2)),o=i(n(0));function i(e){return e&&e.__esModule?e:{default:e}}var a=t.Checkbox=function(e){var t=e.name,n=e.value,r=e.boundFunction,i="option-"+t.replace(" ","-");return o.default.createElement("li",{className:"settings-item"},o.default.createElement("input",{id:i,type:"checkbox",checked:n,onChange:r}),o.default.createElement("label",{htmlFor:i},t,o.default.createElement("div",{className:"fake-checkbox",onChange:r})))};a.propTypes={name:r.default.string.isRequired,value:r.default.bool.isRequired,boundFunction:r.default.func.isRequired},t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TextField=void 0;var r=i(n(2)),o=i(n(0));function i(e){return e&&e.__esModule?e:{default:e}}var a=t.TextField=function(e){var t=e.name,n=e.value,r=e.boundFunction,i="option-"+t.replace(" ","-");return o.default.createElement("li",{className:"settings-item"},o.default.createElement("label",{htmlFor:i},t),o.default.createElement("input",{id:i,type:"text",onInput:r,defaultValue:n}))};a.propTypes={name:r.default.string.isRequired,value:r.default.oneOfType([r.default.string,r.default.number]).isRequired,boundFunction:r.default.func.isRequired},t.default=a},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(){var t={de_DE:{days:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],shortDays:["So","Mo","Di","Mi","Do","Fr","Sa"],months:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],shortMonths:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],AM:"AM",PM:"PM",am:"am",pm:"pm",formats:{c:"%a %d %b %Y %X %Z",D:"%d.%m.%Y",F:"%Y-%m-%d",R:"%H:%M",r:"%I:%M:%S %p",T:"%H:%M:%S",v:"%e-%b-%Y",X:"%T",x:"%D"}},en_CA:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],ordinalSuffixes:["st","nd","rd","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","st","nd","rd","th","th","th","th","th","th","th","st"],AM:"AM",PM:"PM",am:"am",pm:"pm",formats:{c:"%a %d %b %Y %X %Z",D:"%d/%m/%y",F:"%Y-%m-%d",R:"%H:%M",r:"%I:%M:%S %p",T:"%H:%M:%S",v:"%e-%b-%Y",X:"%r",x:"%D"}},en_US:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],ordinalSuffixes:["st","nd","rd","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","st","nd","rd","th","th","th","th","th","th","th","st"],AM:"AM",PM:"PM",am:"am",pm:"pm",formats:{c:"%a %d %b %Y %X %Z",D:"%m/%d/%y",F:"%Y-%m-%d",R:"%H:%M",r:"%I:%M:%S %p",T:"%H:%M:%S",v:"%e-%b-%Y",X:"%r",x:"%D"}},es_MX:{days:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"],shortDays:["dom","lun","mar","mié","jue","vie","sáb"],months:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre"," diciembre"],shortMonths:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],AM:"AM",PM:"PM",am:"am",pm:"pm",formats:{c:"%a %d %b %Y %X %Z",D:"%d/%m/%Y",F:"%Y-%m-%d",R:"%H:%M",r:"%I:%M:%S %p",T:"%H:%M:%S",v:"%e-%b-%Y",X:"%T",x:"%D"}},fr_FR:{days:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],shortDays:["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],months:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"],shortMonths:["janv.","févr.","mars","avril","mai","juin","juil.","août","sept.","oct.","nov.","déc."],AM:"AM",PM:"PM",am:"am",pm:"pm",formats:{c:"%a %d %b %Y %X %Z",D:"%d/%m/%Y",F:"%Y-%m-%d",R:"%H:%M",r:"%I:%M:%S %p",T:"%H:%M:%S",v:"%e-%b-%Y",X:"%T",x:"%D"}},it_IT:{days:["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"],shortDays:["dom","lun","mar","mer","gio","ven","sab"],months:["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"],shortMonths:["pr","mag","giu","lug","ago","set","ott","nov","dic"],AM:"AM",PM:"PM",am:"am",pm:"pm",formats:{c:"%a %d %b %Y %X %Z",D:"%d/%m/%Y",F:"%Y-%m-%d",R:"%H:%M",r:"%I:%M:%S %p",T:"%H:%M:%S",v:"%e-%b-%Y",X:"%T",x:"%D"}},nl_NL:{days:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"],shortDays:["zo","ma","di","wo","do","vr","za"],months:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"],shortMonths:["jan","feb","mrt","apr","mei","jun","jul","aug","sep","okt","nov","dec"],AM:"AM",PM:"PM",am:"am",pm:"pm",formats:{c:"%a %d %b %Y %X %Z",D:"%d-%m-%y",F:"%Y-%m-%d",R:"%H:%M",r:"%I:%M:%S %p",T:"%H:%M:%S",v:"%e-%b-%Y",X:"%T",x:"%D"}},pt_BR:{days:["domingo","segunda","terça","quarta","quinta","sexta","sábado"],shortDays:["Dom","Seg","Ter","Qua","Qui","Sex","Sáb"],months:["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"],shortMonths:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"],AM:"AM",PM:"PM",am:"am",pm:"pm",formats:{c:"%a %d %b %Y %X %Z",D:"%d-%m-%Y",F:"%Y-%m-%d",R:"%H:%M",r:"%I:%M:%S %p",T:"%H:%M:%S",v:"%e-%b-%Y",X:"%T",x:"%D"}},ru_RU:{days:["Воскресенье","Понедельник","Вторник","Среда","Четверг","Пятница","Суббота"],shortDays:["Вс","Пн","Вт","Ср","Чт","Пт","Сб"],months:["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"],shortMonths:["янв","фев","мар","апр","май","июн","июл","авг","сен","окт","ноя","дек"],AM:"AM",PM:"PM",am:"am",pm:"pm",formats:{c:"%a %d %b %Y %X",D:"%d.%m.%y",F:"%Y-%m-%d",R:"%H:%M",r:"%I:%M:%S %p",T:"%H:%M:%S",v:"%e-%b-%Y",X:"%T",x:"%D"}},tr_TR:{days:["Pazar","Pazartesi","Salı","Çarşamba","Perşembe","Cuma","Cumartesi"],shortDays:["Paz","Pzt","Sal","Çrş","Prş","Cum","Cts"],months:["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık"],shortMonths:["Oca","Şub","Mar","Nis","May","Haz","Tem","Ağu","Eyl","Eki","Kas","Ara"],AM:"ÖÖ",PM:"ÖS",am:"ÖÖ",pm:"ÖS",formats:{c:"%a %d %b %Y %X %Z",D:"%d-%m-%Y",F:"%Y-%m-%d",R:"%H:%M",r:"%I:%M:%S %p",T:"%H:%M:%S",v:"%e-%b-%Y",X:"%T",x:"%D"}},zh_CN:{days:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],shortDays:["日","一","二","三","四","五","六"],months:["一月份","二月份","三月份","四月份","五月份","六月份","七月份","八月份","九月份","十月份","十一月份","十二月份"],shortMonths:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],AM:"上午",PM:"下午",am:"上午",pm:"下午",formats:{c:"%a %d %b %Y %X %Z",D:"%d/%m/%y",F:"%Y-%m-%d",R:"%H:%M",r:"%I:%M:%S %p",T:"%H:%M:%S",v:"%e-%b-%Y",X:"%r",x:"%D"}}},n=t.en_US,o=new function e(o,f,h){var p,y=o||n,v=f||0,m=h||!1,g=0;var b=function(e,t){var n;if(t){if(n=t.getTime(),m){var r=c(t);if(c(t=new Date(n+r+v))!==r){var o=c(t);t=new Date(n+o+v)}}}else{var f=Date.now();f>g?(g=f,p=new Date(g),n=g,m&&(p=new Date(g+c(p)+v))):n=g,t=p}return function e(t,n,r,o){var c="",f=null,h=!1,p=t.length,y=!1;for(var g=0;g<p;g++){var b=t.charCodeAt(g);if(!0!==h)37!==b?c+=t[g]:h=!0;else{if(45===b){f="";continue}if(95===b){f=" ";continue}if(48===b){f="0";continue}if(58===b){y&&d("[WARNING] detected use of unsupported %:: or %::: modifiers to strftime"),y=!0;continue}switch(b){case 37:c+="%";break;case 65:c+=r.days[n.getDay()];break;case 66:c+=r.months[n.getMonth()];break;case 67:c+=i(Math.floor(n.getFullYear()/100),f);break;case 68:c+=e(r.formats.D,n,r,o);break;case 70:c+=e(r.formats.F,n,r,o);break;case 72:c+=i(n.getHours(),f);break;case 73:c+=i(s(n.getHours()),f);break;case 76:c+=a(Math.floor(o%1e3));break;case 77:c+=i(n.getMinutes(),f);break;case 80:c+=n.getHours()<12?r.am:r.pm;break;case 82:c+=e(r.formats.R,n,r,o);break;case 83:c+=i(n.getSeconds(),f);break;case 84:c+=e(r.formats.T,n,r,o);break;case 85:c+=i(u(n,"sunday"),f);break;case 87:c+=i(u(n,"monday"),f);break;case 88:c+=e(r.formats.X,n,r,o);break;case 89:c+=n.getFullYear();break;case 90:if(m&&0===v)c+="GMT";else{var _=n.toString().match(/\(([\w\s]+)\)/);c+=_&&_[1]||""}break;case 97:c+=r.shortDays[n.getDay()];break;case 98:c+=r.shortMonths[n.getMonth()];break;case 99:c+=e(r.formats.c,n,r,o);break;case 100:c+=i(n.getDate(),f);break;case 101:c+=i(n.getDate(),null==f?" ":f);break;case 104:c+=r.shortMonths[n.getMonth()];break;case 106:var x=new Date(n.getFullYear(),0,1),w=Math.ceil((n.getTime()-x.getTime())/864e5);c+=a(w);break;case 107:c+=i(n.getHours(),null==f?" ":f);break;case 108:c+=i(s(n.getHours()),null==f?" ":f);break;case 109:c+=i(n.getMonth()+1,f);break;case 110:c+="\n";break;case 111:var w=n.getDate();r.ordinalSuffixes?c+=String(w)+(r.ordinalSuffixes[w-1]||l(w)):c+=String(w)+l(w);break;case 112:c+=n.getHours()<12?r.AM:r.PM;break;case 114:c+=e(r.formats.r,n,r,o);break;case 115:c+=Math.floor(o/1e3);break;case 116:c+="\t";break;case 117:var w=n.getDay();c+=0===w?7:w;break;case 118:c+=e(r.formats.v,n,r,o);break;case 119:c+=n.getDay();break;case 120:c+=e(r.formats.x,n,r,o);break;case 121:c+=(""+n.getFullYear()).slice(2);break;case 122:if(m&&0===v)c+=y?"+00:00":"+0000";else{var E,S=(E=0!==v?v/6e4:-n.getTimezoneOffset())<0?"-":"+",T=y?":":"",O=Math.floor(Math.abs(E/60)),C=Math.abs(E%60);c+=S+i(O)+T+i(C)}break;default:h&&(c+="%"),c+=t[g]}f=null,h=!1}}return c}(e,t,y,n)};b.localize=function(t){return new e(t||y,v,m)};b.localizeByIdentifier=function(e){var n=t[e];return n?b.localize(n):(d('[WARNING] No locale found with identifier "'+e+'".'),b)};b.timezone=function(t){var n=v,o=m,i=void 0===t?"undefined":r(t);if("number"===i||"string"===i)if(o=!0,"string"===i){var a="-"===t[0]?-1:1,s=parseInt(t.slice(1,3),10),u=parseInt(t.slice(3,5),10);n=a*(60*s+u)*60*1e3}else"number"===i&&(n=60*t*1e3);return new e(y,n,o)};b.utc=function(){return new e(y,v,!0)};return b}(n,0,!1);function i(e,t){return""===t||e>9?e:(null==t&&(t="0"),t+e)}function a(e){return e>99?e:e>9?"0"+e:"00"+e}function s(e){return 0===e?12:e>12?e-12:e}function u(e,t){t=t||"sunday";var n=e.getDay();"monday"===t&&(0===n?n=6:n--);var r=Date.UTC(e.getFullYear(),0,1),o=Date.UTC(e.getFullYear(),e.getMonth(),e.getDate()),i=(Math.floor((o-r)/864e5)+7-n)/7;return Math.floor(i)}function l(e){var t=e%10,n=e%100;if(n>=11&&n<=13||0===t||t>=4)return"th";switch(t){case 1:return"st";case 2:return"nd";case 3:return"rd"}}function c(e){return 6e4*(e.getTimezoneOffset()||0)}function d(e){"undefined"!=typeof console&&"function"==typeof console.warn&&console.warn(e)}void 0!==e?e.exports=o:(function(){return this||(0,eval)("this")}()).strftime=o,"function"!=typeof Date.now&&(Date.now=function(){return+new Date})}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getWallpaperDirectory=function(){if(!0===window.__debug)return"src/test/wallpapers/";var e=window.config.get_str("branding","background_images");"/usr/share/backgrounds"!=e&&"/usr/share/backgrounds/"!=e||(e="/usr/share/lightdm-webkit/themes/lightdm-webkit-theme-aether/src/img/wallpapers/");return e},t.getWallpapers=function(e){if(!0===window.__debug)return["boko.jpg","mountains-2.png","space-1.jpg"];return window.greeterutil.dirlist(e).map(function(e){return e.split("/").pop()})},t.getLogos=function(){if(!0===window.__debug)return[["src/test/logos/archlinux.png","archlinux.png"],["src/test/logos/antergos.png","antergos.png"],["src/test/logos/ubuntu.png","ubuntu.png"]];var e=window.config.get_str("branding","logo"),t=window.greeterutil.dirlist("/usr/share/lightdm-webkit/themes/lightdm-webkit-theme-aether/src/img/logos/");return t.push(e),t.map(function(e){return[e,e.split("/").pop()]})},t.getEnvironments=function(){return window.lightdm.sessions.map(function(e){return{name:e.name,value:e.key}})}},function(e,t,n){"use strict";function r(e,t){return window.notifications.generate(e),setTimeout(function(){t()},1e3),!0}Object.defineProperty(t,"__esModule",{value:!0}),t.handleCommand=function(e){if("shutdown"===e&&window.lightdm.can_shutdown)return r("Shutting down",window.lightdm.shutdown);if("hibernate"===e&&window.lightdm.can_hibernate)return r("Hibernating system.",window.lightdm.hibernate);if("reboot"===e&&window.lightdm.can_restart)return r("Rebooting system.",window.lightdm.restart);if("sleep"===e&&window.lightdm.can_suspend)return r("Suspending system.",window.lightdm.suspend);window.notifications.generate(e+" is disabled on this system.","error")},t.findInitialUser=function(){return!0===window.lightdm.lock_hint?window.lightdm.users.filter(function(e){return e.logged_in})[0]:void 0!==window.lightdm.select_user_hint&&null!==window.lightdm.select_user_hint?window.lightdm.users.filter(function(e){return e.username===window.lightdm.select_user_hint})[0]:window.lightdm.users[0]},t.findInitialSession=function(e){var t=void 0===e?void 0:e.session;return this.findSession(t)||this.findSession(window.lightdm.default_session)||window.lightdm.sessions[0]},t.findSession=function(e){if(void 0===e||null===e)return!1;return window.lightdm.sessions.filter(function(t){return t.name.toLowerCase()===e.toLowerCase()||t.key.toLowerCase()===e.toLowerCase()})[0]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(482);var i=((r=o)&&r.__esModule?r:{default:r}).default.Symbol;t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){(0,r.default)(e)||(0,o.default)(n+"() in "+t+" must return a plain object. Instead received "+e+".")};var r=i(n(484)),o=i(n(78));function i(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.wrapMapToPropsConstant=function(e){return function(t,n){var r=e(t,n);function o(){return r}return o.dependsOnOwnProps=!1,o}},t.getDependsOnOwnProps=i,t.wrapMapToPropsFunc=function(e,t){return function(t,n){n.displayName;var r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=i(e);var o=r(t,n);return"function"==typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=i(o),o=r(t,n)),o},r}};var r,o=n(179);(r=o)&&r.__esModule;function i(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=function(e){var t,n,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},p=l.getDisplayName,y=void 0===p?function(e){return"ConnectAdvanced("+e+")"}:p,v=l.methodName,m=void 0===v?"connectAdvanced":v,g=l.renderCountProp,b=void 0===g?void 0:g,_=l.shouldHandleStateChanges,x=void 0===_||_,w=l.storeKey,E=void 0===w?"store":w,S=l.withRef,T=void 0!==S&&S,O=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(l,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef"]),C=E+"Subscription",P=d++,M=((t={})[E]=u.storeShape,t[C]=u.subscriptionShape,t),k=((n={})[C]=u.subscriptionShape,n);return function(t){(0,i.default)("function"==typeof t,"You must pass a component to the function returned by "+m+". Instead received "+JSON.stringify(t));var n=t.displayName||t.name||"Component",u=y(n),l=c({},O,{getDisplayName:y,methodName:m,renderCountProp:b,shouldHandleStateChanges:x,storeKey:E,withRef:T,displayName:u,wrappedComponentName:n,WrappedComponent:t}),d=function(n){function o(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":r(t))&&"function"!=typeof t?e:t}(this,n.call(this,e,t));return a.version=P,a.state={},a.renderCount=0,a.store=e[E]||t[E],a.propsMode=Boolean(e[E]),a.setWrappedInstance=a.setWrappedInstance.bind(a),(0,i.default)(a.store,'Could not find "'+E+'" in either the context or props of "'+u+'". Either wrap the root component in a <Provider>, or explicitly pass "'+E+'" as a prop to "'+u+'".'),a.initSelector(),a.initSubscription(),a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":r(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(o,n),o.prototype.getChildContext=function(){var e,t=this.propsMode?null:this.subscription;return(e={})[C]=t||this.context[C],e},o.prototype.componentDidMount=function(){x&&(this.subscription.trySubscribe(),this.selector.run(this.props),this.selector.shouldComponentUpdate&&this.forceUpdate())},o.prototype.componentWillReceiveProps=function(e){this.selector.run(e)},o.prototype.shouldComponentUpdate=function(){return this.selector.shouldComponentUpdate},o.prototype.componentWillUnmount=function(){this.subscription&&this.subscription.tryUnsubscribe(),this.subscription=null,this.notifyNestedSubs=h,this.store=null,this.selector.run=h,this.selector.shouldComponentUpdate=!1},o.prototype.getWrappedInstance=function(){return(0,i.default)(T,"To access the wrapped instance, you need to specify { withRef: true } in the options argument of the "+m+"() call."),this.wrappedInstance},o.prototype.setWrappedInstance=function(e){this.wrappedInstance=e},o.prototype.initSelector=function(){var t=e(this.store.dispatch,l);this.selector=function(e,t){var n={run:function(r){try{var o=e(t.getState(),r);(o!==n.props||n.error)&&(n.shouldComponentUpdate=!0,n.props=o,n.error=null)}catch(e){n.shouldComponentUpdate=!0,n.error=e}}};return n}(t,this.store),this.selector.run(this.props)},o.prototype.initSubscription=function(){if(x){var e=(this.propsMode?this.props:this.context)[C];this.subscription=new s.default(this.store,e,this.onStateChange.bind(this)),this.notifyNestedSubs=this.subscription.notifyNestedSubs.bind(this.subscription)}},o.prototype.onStateChange=function(){this.selector.run(this.props),this.selector.shouldComponentUpdate?(this.componentDidUpdate=this.notifyNestedSubsOnComponentDidUpdate,this.setState(f)):this.notifyNestedSubs()},o.prototype.notifyNestedSubsOnComponentDidUpdate=function(){this.componentDidUpdate=void 0,this.notifyNestedSubs()},o.prototype.isSubscribed=function(){return Boolean(this.subscription)&&this.subscription.isSubscribed()},o.prototype.addExtraProps=function(e){if(!(T||b||this.propsMode&&this.subscription))return e;var t=c({},e);return T&&(t.ref=this.setWrappedInstance),b&&(t[b]=this.renderCount++),this.propsMode&&this.subscription&&(t[C]=this.subscription),t},o.prototype.render=function(){var e=this.selector;if(e.shouldComponentUpdate=!1,e.error)throw e.error;return(0,a.createElement)(t,this.addExtraProps(e.props))},o}(a.Component);return d.WrappedComponent=t,d.displayName=u,d.childContextTypes=k,d.contextTypes=M,d.propTypes=M,(0,o.default)(d,t)}};var o=l(n(490)),i=l(n(489)),a=n(0),s=l(n(488)),u=n(182);function l(e){return e&&e.__esModule?e:{default:e}}var c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var d=0,f={};function h(){}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.storeShape=t.subscriptionShape=void 0;var r,o=n(2),i=(r=o)&&r.__esModule?r:{default:r};t.subscriptionShape=i.default.shape({trySubscribe:i.default.func.isRequired,tryUnsubscribe:i.default.func.isRequired,notifyNestedSubs:i.default.func.isRequired,isSubscribed:i.default.func.isRequired}),t.storeShape=i.default.shape({subscribe:i.default.func.isRequired,dispatch:i.default.func.isRequired,getState:i.default.func.isRequired})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.__DO_NOT_USE__ActionTypes=t.compose=t.applyMiddleware=t.bindActionCreators=t.combineReducers=t.createStore=void 0;var r,o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=n(495),a=(r=i)&&r.__esModule?r:{default:r};var s={INIT:"@@redux/INIT"+Math.random().toString(36).substring(7).split("").join("."),REPLACE:"@@redux/REPLACE"+Math.random().toString(36).substring(7).split("").join(".")},u="function"==typeof Symbol&&"symbol"===o(Symbol.iterator)?function(e){return void 0===e?"undefined":o(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":void 0===e?"undefined":o(e)},l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function c(e){if("object"!==(void 0===e?"undefined":u(e))||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function d(e,t){var n=t&&t.type;return"Given "+(n&&'action "'+String(n)+'"'||"an action")+', reducer "'+e+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.'}function f(e,t){return function(){return t(e.apply(this,arguments))}}function h(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce(function(e,t){return function(){return e(t.apply(void 0,arguments))}})}t.createStore=function e(t,n,r){var o;if("function"==typeof n&&void 0===r&&(r=n,n=void 0),void 0!==r){if("function"!=typeof r)throw new Error("Expected the enhancer to be a function.");return r(e)(t,n)}if("function"!=typeof t)throw new Error("Expected the reducer to be a function.");var i=t,l=n,d=[],f=d,h=!1;function p(){f===d&&(f=d.slice())}function y(){if(h)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return l}function v(e){if("function"!=typeof e)throw new Error("Expected the listener to be a function.");if(h)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribe(listener) for more details.");var t=!0;return p(),f.push(e),function(){if(t){if(h)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribe(listener) for more details.");t=!1,p();var n=f.indexOf(e);f.splice(n,1)}}}function m(e){if(!c(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(h)throw new Error("Reducers may not dispatch actions.");try{h=!0,l=i(l,e)}finally{h=!1}for(var t=d=f,n=0;n<t.length;n++)(0,t[n])();return e}return m({type:s.INIT}),(o={dispatch:m,subscribe:v,getState:y,replaceReducer:function(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");i=e,m({type:s.REPLACE})}})[a.default]=function(){var e,t=v;return(e={subscribe:function(e){if("object"!==(void 0===e?"undefined":u(e))||null===e)throw new TypeError("Expected the observer to be an object.");function n(){e.next&&e.next(y())}return n(),{unsubscribe:t(n)}}})[a.default]=function(){return this},e},o},t.combineReducers=function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var o=t[r];"function"==typeof e[o]&&(n[o]=e[o])}var i=Object.keys(n),a=void 0;try{!function(e){Object.keys(e).forEach(function(t){var n=e[t];if(void 0===n(void 0,{type:s.INIT}))throw new Error('Reducer "'+t+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if(void 0===n(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION_"+Math.random().toString(36).substring(7).split("").join(".")}))throw new Error('Reducer "'+t+"\" returned undefined when probed with a random type. Don't try to handle "+s.INIT+' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.')})}(n)}catch(e){a=e}return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(a)throw a;for(var r=!1,o={},s=0;s<i.length;s++){var u=i[s],l=n[u],c=e[u],f=l(c,t);if(void 0===f){var h=d(u,t);throw new Error(h)}o[u]=f,r=r||f!==c}return r?o:e}},t.bindActionCreators=function(e,t){if("function"==typeof e)return f(e,t);if("object"!==(void 0===e?"undefined":u(e))||null===e)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===e?"null":void 0===e?"undefined":u(e))+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');for(var n=Object.keys(e),r={},o=0;o<n.length;o++){var i=n[o],a=e[i];"function"==typeof a&&(r[i]=f(a,t))}return r},t.applyMiddleware=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];var i=e.apply(void 0,r),a=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},s={getState:i.getState,dispatch:function(){return a.apply(void 0,arguments)}},u=t.map(function(e){return e(s)});return a=h.apply(void 0,u)(i.dispatch),l({},i,{dispatch:a})}}},t.compose=h,t.__DO_NOT_USE__ActionTypes=s},function(e,t,n){"use strict";e.exports={}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PrimaryReducer=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.getDefaultState=function(){return{info:{hostname:window.lightdm.hostname,language:window.lightdm.language},user:a.findInitialUser(),session:a.findInitialSession()}};var i=n(81),a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(177));t.PrimaryReducer=function(e,t){if(t.type.startsWith("SETTINGS"))return(0,i.SettingsReducer)(e,t);switch(t.type){case"AUTH_SET_ACTIVE_SESSION":var n=t.session;return(void 0===n?"undefined":o(n))===o(String())&&(n=a.findSession(n)),r({},e,{session:n});case"AUTH_SET_ACTIVE_USER":return r({},e,{user:t.user});default:return e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var o=function(){function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.container=document.querySelectorAll(".notifications-container")[0],!0===window.__debug&&(this.generate("Hey there!","success"),setTimeout(function(){t.generate("TIP: Click the logo to switch wallpapers.")},2e3),setTimeout(function(){t.generate("TIP: Access settings by hovering over the bottom left of your screen!")},5e3))}return r(e,[{key:"generate",value:function(e,t){var n=this;void 0===t&&(t="");var r=document.createElement("div");r.className="notification "+t,r.innerText=e,this.container.appendChild(r),setTimeout(function(){r.className+=" fadeout",setTimeout(function(){n.container.removeChild(r)},500)},5e3)}}]),e}();t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(39),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(134));var a=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.sprite=new i.Sprite(t),this.application=n,this.options=r,this.birthDate=void 0,this.recycle(),this.sprite.anchor.set(0,1),this.application.stage.addChild(this.sprite),this.application.ticker.add(this.step.bind(this))}return r(e,[{key:"recycle",value:function(){var e=this.options.parent[0],t=this.options.parent[1];this.birthDate=Number(new Date),this.velocity=[-e[0]/100,-e[1]/100],this.lifetime=(0,o.randomRange)(this.options.minDecay,this.options.maxDecay,0),this.elapsed=0,this.sprite.scale.set(this.options.startScale),this.sprite.alpha=.05,this.sprite.tint=this.options.startColor,this.sprite.rotation=(0,o.randomRange)(-10,10,0)*Math.PI/180;var n=(0,o.randomRange)(.5,1,2),r=t.interpolate(n);this.sprite.x=r.x+2,this.sprite.y=r.y}},{key:"step",value:function(){if(this.elapsed+=this.application.ticker.elapsedMS,this.elapsed>=this.lifetime)this.recycle();else{var e=this.elapsed/this.lifetime,t=(0,o.scale)(this.options.startScale,this.options.endScale,e,!1);this.sprite.scale.set(t),this.sprite.x+=this.velocity[0],this.sprite.y+=this.velocity[1],this.sprite.alpha=(1-e)/10,this.sprite.tint=this.options.gradientGenerator(e)}}}]),e}();t.default=a},function(e,t,n){"use strict";t.__esModule=!0;var r=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.maxMilliseconds=t,this.frameStart=0}return e.prototype.beginFrame=function(){this.frameStart=Date.now()},e.prototype.allowedToUpload=function(){return Date.now()-this.frameStart<this.maxMilliseconds},e}();t.default=r},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.__esModule=!0;var o,i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(4)),a=n(49);var s=16,u=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":r(t))&&"function"!=typeof t?e:t}(this,e.call(this,n));return o.uploadHookHelper=o,o.canvas=document.createElement("canvas"),o.canvas.width=s,o.canvas.height=s,o.ctx=o.canvas.getContext("2d"),o.registerUploadHook(l),o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":r(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this),this.ctx=null,this.canvas=null},t}(((o=a)&&o.__esModule?o:{default:o}).default);function l(e,t){if(t instanceof i.BaseTexture){var n=t.source,r=0===n.width?e.canvas.width:Math.min(e.canvas.width,n.width),o=0===n.height?e.canvas.height:Math.min(e.canvas.height,n.height);return e.ctx.drawImage(n,0,0,r,o,0,0,e.canvas.width,e.canvas.height),!0}return!1}t.default=u,i.CanvasRenderer.registerPlugin("prepare",u)},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.__esModule=!0;var o,i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(4)),a=n(49);var s=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":r(t))&&"function"!=typeof t?e:t}(this,e.call(this,n));return o.uploadHookHelper=o.renderer,o.registerFindHook(c),o.registerUploadHook(u),o.registerUploadHook(l),o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":r(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((o=a)&&o.__esModule?o:{default:o}).default);function u(e,t){return t instanceof i.BaseTexture&&(t._glTextures[e.CONTEXT_UID]||e.textureManager.updateTexture(t),!0)}function l(e,t){return t instanceof i.Graphics&&((t.dirty||t.clearDirty||!t._webGL[e.plugins.graphics.CONTEXT_UID])&&e.plugins.graphics.updateGraphics(t),!0)}function c(e,t){return e instanceof i.Graphics&&(t.push(e),!0)}t.default=s,i.WebGLRenderer.registerPlugin("prepare",s)},function(e,t,n){"use strict";t.__esModule=!0;var r=n(190);Object.defineProperty(t,"webgl",{enumerable:!0,get:function(){return u(r).default}});var o=n(189);Object.defineProperty(t,"canvas",{enumerable:!0,get:function(){return u(o).default}});var i=n(49);Object.defineProperty(t,"BasePrepare",{enumerable:!0,get:function(){return u(i).default}});var a=n(82);Object.defineProperty(t,"CountLimiter",{enumerable:!0,get:function(){return u(a).default}});var s=n(188);function u(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"TimeLimiter",{enumerable:!0,get:function(){return u(s).default}})},function(e,t,n){"use strict";t.__esModule=!0;var r=i(n(10)),o=i(n(51));function i(e){return e&&e.__esModule?e:{default:e}}var a=function(){function e(t,n,r,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.gl=t,this.size=o,this.dynamicProperties=[],this.staticProperties=[];for(var i=0;i<n.length;++i){var a=n[i];a={attribute:a.attribute,size:a.size,uploadFunction:a.uploadFunction,unsignedByte:a.unsignedByte,offset:a.offset},r[i]?this.dynamicProperties.push(a):this.staticProperties.push(a)}this.staticStride=0,this.staticBuffer=null,this.staticData=null,this.staticDataUint32=null,this.dynamicStride=0,this.dynamicBuffer=null,this.dynamicData=null,this.dynamicDataUint32=null,this._updateID=0,this.initBuffers()}return e.prototype.initBuffers=function(){var e=this.gl,t=0;this.indices=(0,o.default)(this.size),this.indexBuffer=r.default.GLBuffer.createIndexBuffer(e,this.indices,e.STATIC_DRAW),this.dynamicStride=0;for(var n=0;n<this.dynamicProperties.length;++n){var i=this.dynamicProperties[n];i.offset=t,t+=i.size,this.dynamicStride+=i.size}var a=new ArrayBuffer(this.size*this.dynamicStride*4*4);this.dynamicData=new Float32Array(a),this.dynamicDataUint32=new Uint32Array(a),this.dynamicBuffer=r.default.GLBuffer.createVertexBuffer(e,a,e.STREAM_DRAW);var s=0;this.staticStride=0;for(var u=0;u<this.staticProperties.length;++u){var l=this.staticProperties[u];l.offset=s,s+=l.size,this.staticStride+=l.size}var c=new ArrayBuffer(this.size*this.staticStride*4*4);this.staticData=new Float32Array(c),this.staticDataUint32=new Uint32Array(c),this.staticBuffer=r.default.GLBuffer.createVertexBuffer(e,c,e.STATIC_DRAW),this.vao=new r.default.VertexArrayObject(e).addIndex(this.indexBuffer);for(var d=0;d<this.dynamicProperties.length;++d){var f=this.dynamicProperties[d];f.unsignedByte?this.vao.addAttribute(this.dynamicBuffer,f.attribute,e.UNSIGNED_BYTE,!0,4*this.dynamicStride,4*f.offset):this.vao.addAttribute(this.dynamicBuffer,f.attribute,e.FLOAT,!1,4*this.dynamicStride,4*f.offset)}for(var h=0;h<this.staticProperties.length;++h){var p=this.staticProperties[h];p.unsignedByte?this.vao.addAttribute(this.staticBuffer,p.attribute,e.UNSIGNED_BYTE,!0,4*this.staticStride,4*p.offset):this.vao.addAttribute(this.staticBuffer,p.attribute,e.FLOAT,!1,4*this.staticStride,4*p.offset)}},e.prototype.uploadDynamic=function(e,t,n){for(var r=0;r<this.dynamicProperties.length;r++){var o=this.dynamicProperties[r];o.uploadFunction(e,t,n,o.unsignedByte?this.dynamicDataUint32:this.dynamicData,this.dynamicStride,o.offset)}this.dynamicBuffer.upload()},e.prototype.uploadStatic=function(e,t,n){for(var r=0;r<this.staticProperties.length;r++){var o=this.staticProperties[r];o.uploadFunction(e,t,n,o.unsignedByte?this.staticDataUint32:this.staticData,this.staticStride,o.offset)}this.staticBuffer.upload()},e.prototype.destroy=function(){this.dynamicProperties=null,this.dynamicBuffer.destroy(),this.dynamicBuffer=null,this.dynamicData=null,this.dynamicDataUint32=null,this.staticProperties=null,this.staticBuffer.destroy(),this.staticBuffer=null,this.staticData=null,this.staticDataUint32=null},e}();t.default=a},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.__esModule=!0;var o,i=n(27);var a=function(e){function t(n){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":r(t))&&"function"!=typeof t?e:t}(this,e.call(this,n,["attribute vec2 aVertexPosition;","attribute vec2 aTextureCoord;","attribute vec4 aColor;","attribute vec2 aPositionCoord;","attribute float aRotation;","uniform mat3 projectionMatrix;","uniform vec4 uColor;","varying vec2 vTextureCoord;","varying vec4 vColor;","void main(void){"," float x = (aVertexPosition.x) * cos(aRotation) - (aVertexPosition.y) * sin(aRotation);"," float y = (aVertexPosition.x) * sin(aRotation) + (aVertexPosition.y) * cos(aRotation);"," vec2 v = vec2(x, y);"," v = v + aPositionCoord;"," gl_Position = vec4((projectionMatrix * vec3(v, 1.0)).xy, 0.0, 1.0);"," vTextureCoord = aTextureCoord;"," vColor = aColor * uColor;","}"].join("\n"),["varying vec2 vTextureCoord;","varying vec4 vColor;","uniform sampler2D uSampler;","void main(void){"," vec4 color = texture2D(uSampler, vTextureCoord) * vColor;"," gl_FragColor = color;","}"].join("\n")))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":r(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((o=i)&&o.__esModule?o:{default:o}).default);t.default=a},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.__esModule=!0;var o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(4)),i=u(n(193)),a=u(n(192)),s=n(5);function u(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":r(t))&&"function"!=typeof t?e:t}(this,e.call(this,n));return i.shader=null,i.indexBuffer=null,i.properties=null,i.tempMatrix=new o.Matrix,i.CONTEXT_UID=0,i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":r(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.onContextChange=function(){var e=this.renderer.gl;this.CONTEXT_UID=this.renderer.CONTEXT_UID,this.shader=new i.default(e),this.properties=[{attribute:this.shader.attributes.aVertexPosition,size:2,uploadFunction:this.uploadVertices,offset:0},{attribute:this.shader.attributes.aPositionCoord,size:2,uploadFunction:this.uploadPosition,offset:0},{attribute:this.shader.attributes.aRotation,size:1,uploadFunction:this.uploadRotation,offset:0},{attribute:this.shader.attributes.aTextureCoord,size:2,uploadFunction:this.uploadUvs,offset:0},{attribute:this.shader.attributes.aColor,size:1,unsignedByte:!0,uploadFunction:this.uploadTint,offset:0}]},t.prototype.start=function(){this.renderer.bindShader(this.shader)},t.prototype.render=function(e){var t=e.children,n=e._maxSize,r=e._batchSize,i=this.renderer,a=t.length;if(0!==a){a>n&&(a=n);var s=e._glBuffers[i.CONTEXT_UID];s||(s=e._glBuffers[i.CONTEXT_UID]=this.generateBuffers(e));var u=t[0]._texture.baseTexture;this.renderer.setBlendMode(o.utils.correctBlendMode(e.blendMode,u.premultipliedAlpha));var l=i.gl,c=e.worldTransform.copy(this.tempMatrix);c.prepend(i._activeRenderTarget.projectionMatrix),this.shader.uniforms.projectionMatrix=c.toArray(!0),this.shader.uniforms.uColor=o.utils.premultiplyRgba(e.tintRgb,e.worldAlpha,this.shader.uniforms.uColor,u.premultipliedAlpha),this.shader.uniforms.uSampler=i.bindTexture(u);for(var d=!1,f=0,h=0;f<a;f+=r,h+=1){var p=a-f;if(p>r&&(p=r),h>=s.length){if(!e.autoResize)break;s.push(this._generateOneMoreBuffer(e))}var y=s[h];y.uploadDynamic(t,f,p);var v=e._bufferUpdateIDs[f]||0;(d=d||y._updateID<v)&&(y._updateID=e._updateID,y.uploadStatic(t,f,p)),i.bindVao(y.vao),y.vao.draw(l.TRIANGLES,6*p)}}},t.prototype.generateBuffers=function(e){for(var t=this.renderer.gl,n=[],r=e._maxSize,o=e._batchSize,i=e._properties,s=0;s<r;s+=o)n.push(new a.default(t,this.properties,i,o));return n},t.prototype._generateOneMoreBuffer=function(e){var t=this.renderer.gl,n=e._batchSize,r=e._properties;return new a.default(t,this.properties,r,n)},t.prototype.uploadVertices=function(e,t,n,r,o,i){for(var a=0,s=0,u=0,l=0,c=0;c<n;++c){var d=e[t+c],f=d._texture,h=d.scale.x,p=d.scale.y,y=f.trim,v=f.orig;y?(a=(s=y.x-d.anchor.x*v.width)+y.width,u=(l=y.y-d.anchor.y*v.height)+y.height):(a=v.width*(1-d.anchor.x),s=v.width*-d.anchor.x,u=v.height*(1-d.anchor.y),l=v.height*-d.anchor.y),r[i]=s*h,r[i+1]=l*p,r[i+o]=a*h,r[i+o+1]=l*p,r[i+2*o]=a*h,r[i+2*o+1]=u*p,r[i+3*o]=s*h,r[i+3*o+1]=u*p,i+=4*o}},t.prototype.uploadPosition=function(e,t,n,r,o,i){for(var a=0;a<n;a++){var s=e[t+a].position;r[i]=s.x,r[i+1]=s.y,r[i+o]=s.x,r[i+o+1]=s.y,r[i+2*o]=s.x,r[i+2*o+1]=s.y,r[i+3*o]=s.x,r[i+3*o+1]=s.y,i+=4*o}},t.prototype.uploadRotation=function(e,t,n,r,o,i){for(var a=0;a<n;a++){var s=e[t+a].rotation;r[i]=s,r[i+o]=s,r[i+2*o]=s,r[i+3*o]=s,i+=4*o}},t.prototype.uploadUvs=function(e,t,n,r,o,i){for(var a=0;a<n;++a){var s=e[t+a]._texture._uvs;s?(r[i]=s.x0,r[i+1]=s.y0,r[i+o]=s.x1,r[i+o+1]=s.y1,r[i+2*o]=s.x2,r[i+2*o+1]=s.y2,r[i+3*o]=s.x3,r[i+3*o+1]=s.y3,i+=4*o):(r[i]=0,r[i+1]=0,r[i+o]=0,r[i+o+1]=0,r[i+2*o]=0,r[i+2*o+1]=0,r[i+3*o]=0,r[i+3*o+1]=0,i+=4*o)}},t.prototype.uploadTint=function(e,t,n,r,o,i){for(var a=0;a<n;++a){var u=e[t+a],l=u._texture.baseTexture.premultipliedAlpha,c=u.alpha,d=c<1&&l?(0,s.premultiplyTint)(u._tintRGB,c):u._tintRGB+(255*c<<24);r[i]=d,r[i+o]=d,r[i+2*o]=d,r[i+3*o]=d,i+=4*o}},t.prototype.destroy=function(){this.renderer.gl&&this.renderer.gl.deleteBuffer(this.indexBuffer),e.prototype.destroy.call(this),this.shader.destroy(),this.indices=null,this.tempMatrix=null},t}(o.ObjectRenderer);t.default=l,o.WebGLRenderer.registerPlugin("particle",l)},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.__esModule=!0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(4)),a=n(5);var s=function(e){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1500,o=arguments[1],a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:16384,s=arguments.length>3&&void 0!==arguments[3]&&arguments[3];!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var u=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":r(t))&&"function"!=typeof t?e:t}(this,e.call(this));return a>16384&&(a=16384),a>n&&(a=n),u._properties=[!1,!0,!1,!1,!1],u._maxSize=n,u._batchSize=a,u._glBuffers={},u._bufferUpdateIDs=[],u._updateID=0,u.interactiveChildren=!1,u.blendMode=i.BLEND_MODES.NORMAL,u.autoResize=s,u.roundPixels=!0,u.baseTexture=null,u.setProperties(o),u._tint=0,u.tintRgb=new Float32Array(4),u.tint=16777215,u}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":r(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.setProperties=function(e){e&&(this._properties[0]="vertices"in e||"scale"in e?!!e.vertices||!!e.scale:this._properties[0],this._properties[1]="position"in e?!!e.position:this._properties[1],this._properties[2]="rotation"in e?!!e.rotation:this._properties[2],this._properties[3]="uvs"in e?!!e.uvs:this._properties[3],this._properties[4]="tint"in e||"alpha"in e?!!e.tint||!!e.alpha:this._properties[4])},t.prototype.updateTransform=function(){this.displayObjectUpdateTransform()},t.prototype.renderWebGL=function(e){var t=this;this.visible&&!(this.worldAlpha<=0)&&this.children.length&&this.renderable&&(this.baseTexture||(this.baseTexture=this.children[0]._texture.baseTexture,this.baseTexture.hasLoaded||this.baseTexture.once("update",function(){return t.onChildrenChange(0)})),e.setObjectRenderer(e.plugins.particle),e.plugins.particle.render(this))},t.prototype.onChildrenChange=function(e){for(var t=Math.floor(e/this._batchSize);this._bufferUpdateIDs.length<t;)this._bufferUpdateIDs.push(0);this._bufferUpdateIDs[t]=++this._updateID},t.prototype.renderCanvas=function(e){if(this.visible&&!(this.worldAlpha<=0)&&this.children.length&&this.renderable){var t=e.context,n=this.worldTransform,r=!0,o=0,i=0,a=0,s=0;e.setBlendMode(this.blendMode),t.globalAlpha=this.worldAlpha,this.displayObjectUpdateTransform();for(var u=0;u<this.children.length;++u){var l=this.children[u];if(l.visible){var c=l._texture.frame;if(t.globalAlpha=this.worldAlpha*l.alpha,l.rotation%(2*Math.PI)==0)r&&(t.setTransform(n.a,n.b,n.c,n.d,n.tx*e.resolution,n.ty*e.resolution),r=!1),o=l.anchor.x*(-c.width*l.scale.x)+l.position.x+.5,i=l.anchor.y*(-c.height*l.scale.y)+l.position.y+.5,a=c.width*l.scale.x,s=c.height*l.scale.y;else{r||(r=!0),l.displayObjectUpdateTransform();var d=l.worldTransform;e.roundPixels?t.setTransform(d.a,d.b,d.c,d.d,d.tx*e.resolution|0,d.ty*e.resolution|0):t.setTransform(d.a,d.b,d.c,d.d,d.tx*e.resolution,d.ty*e.resolution),o=l.anchor.x*-c.width+.5,i=l.anchor.y*-c.height+.5,a=c.width,s=c.height}var f=l._texture.baseTexture.resolution;t.drawImage(l._texture.baseTexture.source,c.x*f,c.y*f,c.width*f,c.height*f,o*e.resolution,i*e.resolution,a*e.resolution,s*e.resolution)}}}},t.prototype.destroy=function(t){if(e.prototype.destroy.call(this,t),this._buffers)for(var n=0;n<this._buffers.length;++n)this._buffers[n].destroy();this._properties=null,this._buffers=null,this._bufferUpdateIDs=null},o(t,[{key:"tint",get:function(){return this._tint},set:function(e){this._tint=e,(0,a.hex2rgb)(e,this.tintRgb)}}]),t}(i.Container);t.default=s},function(e,t,n){"use strict";t.__esModule=!0;var r=n(195);Object.defineProperty(t,"ParticleContainer",{enumerable:!0,get:function(){return i(r).default}});var o=n(194);function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"ParticleRenderer",{enumerable:!0,get:function(){return i(o).default}})},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.__esModule=!0;var o,i=n(25);var a=function(e){function t(n,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":r(t))&&"function"!=typeof t?e:t}(this,e.call(this,n));return i.points=o,i.vertices=new Float32Array(4*o.length),i.uvs=new Float32Array(4*o.length),i.colors=new Float32Array(2*o.length),i.indices=new Uint16Array(2*o.length),i.autoUpdate=!0,i.refresh(),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":r(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype._refresh=function(){var e=this.points;if(!(e.length<1)&&this._texture._uvs){this.vertices.length/4!==e.length&&(this.vertices=new Float32Array(4*e.length),this.uvs=new Float32Array(4*e.length),this.colors=new Float32Array(2*e.length),this.indices=new Uint16Array(2*e.length));var t=this.uvs,n=this.indices,r=this.colors;t[0]=0,t[1]=0,t[2]=0,t[3]=1,r[0]=1,r[1]=1,n[0]=0,n[1]=1;for(var o=e.length,i=1;i<o;i++){var a=4*i,s=i/(o-1);t[a]=s,t[a+1]=0,t[a+2]=s,t[a+3]=1,r[a=2*i]=1,r[a+1]=1,n[a=2*i]=a,n[a+1]=a+1}this.dirty++,this.indexDirty++,this.multiplyUvs(),this.refreshVertices()}},t.prototype.refreshVertices=function(){var e=this.points;if(!(e.length<1))for(var t=e[0],n=void 0,r=0,o=0,i=this.vertices,a=e.length,s=0;s<a;s++){var u=e[s],l=4*s;o=-((n=s<e.length-1?e[s+1]:u).x-t.x),r=n.y-t.y;var c=10*(1-s/(a-1));c>1&&(c=1);var d=Math.sqrt(r*r+o*o),f=this._texture.height/2;r/=d,o/=d,r*=f,o*=f,i[l]=u.x+r,i[l+1]=u.y+o,i[l+2]=u.x-r,i[l+3]=u.y-o,t=u}},t.prototype.updateTransform=function(){this.autoUpdate&&this.refreshVertices(),this.containerUpdateTransform()},t}(((o=i)&&o.__esModule?o:{default:o}).default);t.default=a},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.__esModule=!0;var o,i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(83);var s=10,u=function(e){function t(n,o,i,a,u){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var l=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":r(t))&&"function"!=typeof t?e:t}(this,e.call(this,n,4,4));return l._origWidth=n.orig.width,l._origHeight=n.orig.height,l._width=l._origWidth,l._height=l._origHeight,l.leftWidth=void 0!==o?o:s,l.rightWidth=void 0!==a?a:s,l.topHeight=void 0!==i?i:s,l.bottomHeight=void 0!==u?u:s,l.refresh(!0),l}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":r(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.updateHorizontalVertices=function(){var e=this.vertices;e[9]=e[11]=e[13]=e[15]=this._topHeight,e[17]=e[19]=e[21]=e[23]=this._height-this._bottomHeight,e[25]=e[27]=e[29]=e[31]=this._height},t.prototype.updateVerticalVertices=function(){var e=this.vertices;e[2]=e[10]=e[18]=e[26]=this._leftWidth,e[4]=e[12]=e[20]=e[28]=this._width-this._rightWidth,e[6]=e[14]=e[22]=e[30]=this._width},t.prototype._renderCanvas=function(e){var t=e.context;t.globalAlpha=this.worldAlpha,e.setBlendMode(this.blendMode);var n=this.worldTransform,r=e.resolution;e.roundPixels?t.setTransform(n.a*r,n.b*r,n.c*r,n.d*r,n.tx*r|0,n.ty*r|0):t.setTransform(n.a*r,n.b*r,n.c*r,n.d*r,n.tx*r,n.ty*r);var o=this._texture.baseTexture,i=o.source,a=o.width*o.resolution,s=o.height*o.resolution;this.drawSegment(t,i,a,s,0,1,10,11),this.drawSegment(t,i,a,s,2,3,12,13),this.drawSegment(t,i,a,s,4,5,14,15),this.drawSegment(t,i,a,s,8,9,18,19),this.drawSegment(t,i,a,s,10,11,20,21),this.drawSegment(t,i,a,s,12,13,22,23),this.drawSegment(t,i,a,s,16,17,26,27),this.drawSegment(t,i,a,s,18,19,28,29),this.drawSegment(t,i,a,s,20,21,30,31)},t.prototype.drawSegment=function(e,t,n,r,o,i,a,s){var u=this.uvs,l=this.vertices,c=(u[a]-u[o])*n,d=(u[s]-u[i])*r,f=l[a]-l[o],h=l[s]-l[i];c<1&&(c=1),d<1&&(d=1),f<1&&(f=1),h<1&&(h=1),e.drawImage(t,u[o]*n,u[i]*r,c,d,l[o],l[i],f,h)},t.prototype._refresh=function(){e.prototype._refresh.call(this);var t=this.uvs,n=this._texture;this._origWidth=n.orig.width,this._origHeight=n.orig.height;var r=1/this._origWidth,o=1/this._origHeight;t[0]=t[8]=t[16]=t[24]=0,t[1]=t[3]=t[5]=t[7]=0,t[6]=t[14]=t[22]=t[30]=1,t[25]=t[27]=t[29]=t[31]=1,t[2]=t[10]=t[18]=t[26]=r*this._leftWidth,t[4]=t[12]=t[20]=t[28]=1-r*this._rightWidth,t[9]=t[11]=t[13]=t[15]=o*this._topHeight,t[17]=t[19]=t[21]=t[23]=1-o*this._bottomHeight,this.updateHorizontalVertices(),this.updateVerticalVertices(),this.dirty++,this.multiplyUvs()},i(t,[{key:"width",get:function(){return this._width},set:function(e){this._width=e,this._refresh()}},{key:"height",get:function(){return this._height},set:function(e){this._height=e,this._refresh()}},{key:"leftWidth",get:function(){return this._leftWidth},set:function(e){this._leftWidth=e,this._refresh()}},{key:"rightWidth",get:function(){return this._rightWidth},set:function(e){this._rightWidth=e,this._refresh()}},{key:"topHeight",get:function(){return this._topHeight},set:function(e){this._topHeight=e,this._refresh()}},{key:"bottomHeight",get:function(){return this._bottomHeight},set:function(e){this._bottomHeight=e,this._refresh()}}]),t}(((o=a)&&o.__esModule?o:{default:o}).default);t.default=u},function(e,t,n){"use strict";t.__esModule=!0;var r,o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(4)),i=n(25),a=(r=i)&&r.__esModule?r:{default:r};var s=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.renderer=t}return e.prototype.render=function(e){var t=this.renderer,n=t.context,r=e.worldTransform,o=t.resolution;t.roundPixels?n.setTransform(r.a*o,r.b*o,r.c*o,r.d*o,r.tx*o|0,r.ty*o|0):n.setTransform(r.a*o,r.b*o,r.c*o,r.d*o,r.tx*o,r.ty*o),t.context.globalAlpha=e.worldAlpha,t.setBlendMode(e.blendMode),e.drawMode===a.default.DRAW_MODES.TRIANGLE_MESH?this._renderTriangleMesh(e):this._renderTriangles(e)},e.prototype._renderTriangleMesh=function(e){for(var t=e.vertices.length/2,n=0;n<t-2;n++){var r=2*n;this._renderDrawTriangle(e,r,r+2,r+4)}},e.prototype._renderTriangles=function(e){for(var t=e.indices,n=t.length,r=0;r<n;r+=3){var o=2*t[r],i=2*t[r+1],a=2*t[r+2];this._renderDrawTriangle(e,o,i,a)}},e.prototype._renderDrawTriangle=function(e,t,n,r){var o=this.renderer.context,i=e.uvs,a=e.vertices,s=e._texture;if(s.valid){var u=s.baseTexture,l=u.source,c=u.width,d=u.height,f=void 0,h=void 0,p=void 0,y=void 0,v=void 0,m=void 0;if(e.uploadUvTransform){var g=e._uvTransform.mapCoord;f=(i[t]*g.a+i[t+1]*g.c+g.tx)*u.width,h=(i[n]*g.a+i[n+1]*g.c+g.tx)*u.width,p=(i[r]*g.a+i[r+1]*g.c+g.tx)*u.width,y=(i[t]*g.b+i[t+1]*g.d+g.ty)*u.height,v=(i[n]*g.b+i[n+1]*g.d+g.ty)*u.height,m=(i[r]*g.b+i[r+1]*g.d+g.ty)*u.height}else f=i[t]*u.width,h=i[n]*u.width,p=i[r]*u.width,y=i[t+1]*u.height,v=i[n+1]*u.height,m=i[r+1]*u.height;var b=a[t],_=a[n],x=a[r],w=a[t+1],E=a[n+1],S=a[r+1],T=e.canvasPadding/this.renderer.resolution;if(T>0){var O=T/Math.abs(e.worldTransform.a),C=T/Math.abs(e.worldTransform.d),P=(b+_+x)/3,M=(w+E+S)/3,k=b-P,A=w-M,R=Math.sqrt(k*k+A*A);b=P+k/R*(R+O),w=M+A/R*(R+C),A=E-M,_=P+(k=_-P)/(R=Math.sqrt(k*k+A*A))*(R+O),E=M+A/R*(R+C),A=S-M,x=P+(k=x-P)/(R=Math.sqrt(k*k+A*A))*(R+O),S=M+A/R*(R+C)}o.save(),o.beginPath(),o.moveTo(b,w),o.lineTo(_,E),o.lineTo(x,S),o.closePath(),o.clip();var I=f*v+y*p+h*m-v*p-y*h-f*m,D=b*v+y*x+_*m-v*x-y*_-b*m,j=f*_+b*p+h*x-_*p-b*h-f*x,N=f*v*x+y*_*p+b*h*m-b*v*p-y*h*x-f*_*m,L=w*v+y*S+E*m-v*S-y*E-w*m,F=f*E+w*p+h*S-E*p-w*h-f*S,B=f*v*S+y*E*p+w*h*m-w*v*p-y*h*S-f*E*m;o.transform(D/I,L/I,j/I,F/I,N/I,B/I),o.drawImage(l,0,0,c*u.resolution,d*u.resolution,0,0,c,d),o.restore(),this.renderer.invalidateBlendMode()}},e.prototype.renderMeshFlat=function(e){var t=this.renderer.context,n=e.vertices,r=n.length/2;t.beginPath();for(var o=1;o<r-2;++o){var i=2*o,a=n[i],s=n[i+1],u=n[i+2],l=n[i+3],c=n[i+4],d=n[i+5];t.moveTo(a,s),t.lineTo(u,l),t.lineTo(c,d)}t.fillStyle="#FF0000",t.fill(),t.closePath()},e.prototype.destroy=function(){this.renderer=null},e}();t.default=s,o.CanvasRenderer.registerPlugin("mesh",s)},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.__esModule=!0;var o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(4)),i=s(n(10)),a=s(n(25));n(14);function s(e){return e&&e.__esModule?e:{default:e}}var u=o.Matrix.IDENTITY,l=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":r(t))&&"function"!=typeof t?e:t}(this,e.call(this,n));return o.shader=null,o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":r(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.onContextChange=function(){var e=this.renderer.gl;this.shader=new o.Shader(e,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\nuniform mat3 translationMatrix;\nuniform mat3 uTransform;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n\n vTextureCoord = (uTransform * vec3(aTextureCoord, 1.0)).xy;\n}\n","varying vec2 vTextureCoord;\nuniform vec4 uColor;\n\nuniform sampler2D uSampler;\n\nvoid main(void)\n{\n gl_FragColor = texture2D(uSampler, vTextureCoord) * uColor;\n}\n")},t.prototype.render=function(e){var t=this.renderer,n=t.gl,r=e._texture;if(r.valid){var s=e._glDatas[t.CONTEXT_UID];s||(t.bindVao(null),(s={shader:this.shader,vertexBuffer:i.default.GLBuffer.createVertexBuffer(n,e.vertices,n.STREAM_DRAW),uvBuffer:i.default.GLBuffer.createVertexBuffer(n,e.uvs,n.STREAM_DRAW),indexBuffer:i.default.GLBuffer.createIndexBuffer(n,e.indices,n.STATIC_DRAW),vao:null,dirty:e.dirty,indexDirty:e.indexDirty}).vao=new i.default.VertexArrayObject(n).addIndex(s.indexBuffer).addAttribute(s.vertexBuffer,s.shader.attributes.aVertexPosition,n.FLOAT,!1,8,0).addAttribute(s.uvBuffer,s.shader.attributes.aTextureCoord,n.FLOAT,!1,8,0),e._glDatas[t.CONTEXT_UID]=s),t.bindVao(s.vao),e.dirty!==s.dirty&&(s.dirty=e.dirty,s.uvBuffer.upload(e.uvs)),e.indexDirty!==s.indexDirty&&(s.indexDirty=e.indexDirty,s.indexBuffer.upload(e.indices)),s.vertexBuffer.upload(e.vertices),t.bindShader(s.shader),s.shader.uniforms.uSampler=t.bindTexture(r),t.state.setBlendMode(o.utils.correctBlendMode(e.blendMode,r.baseTexture.premultipliedAlpha)),s.shader.uniforms.uTransform&&(e.uploadUvTransform?s.shader.uniforms.uTransform=e._uvTransform.mapCoord.toArray(!0):s.shader.uniforms.uTransform=u.toArray(!0)),s.shader.uniforms.translationMatrix=e.worldTransform.toArray(!0),s.shader.uniforms.uColor=o.utils.premultiplyRgba(e.tintRgb,e.worldAlpha,s.shader.uniforms.uColor,r.baseTexture.premultipliedAlpha);var l=e.drawMode===a.default.DRAW_MODES.TRIANGLE_MESH?n.TRIANGLE_STRIP:n.TRIANGLES;s.vao.draw(l,e.indices.length,0)}},t}(o.ObjectRenderer);t.default=l,o.WebGLRenderer.registerPlugin("mesh",l)},function(e,t,n){"use strict";t.__esModule=!0;var r=n(25);Object.defineProperty(t,"Mesh",{enumerable:!0,get:function(){return l(r).default}});var o=n(200);Object.defineProperty(t,"MeshRenderer",{enumerable:!0,get:function(){return l(o).default}});var i=n(199);Object.defineProperty(t,"CanvasMeshRenderer",{enumerable:!0,get:function(){return l(i).default}});var a=n(83);Object.defineProperty(t,"Plane",{enumerable:!0,get:function(){return l(a).default}});var s=n(198);Object.defineProperty(t,"NineSlicePlane",{enumerable:!0,get:function(){return l(s).default}});var u=n(197);function l(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"Rope",{enumerable:!0,get:function(){return l(u).default}})},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.__esModule=!0;var o="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?function(e){return void 0===e?"undefined":r(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":void 0===e?"undefined":r(e)};t.blobMiddlewareFactory=function(){return function(e,t){if(e.data){if(e.xhr&&e.xhrType===i.default.XHR_RESPONSE_TYPE.BLOB)if(window.Blob&&"string"!=typeof e.data){if(0===e.data.type.indexOf("image")){var n=(s=u.createObjectURL(e.data),e.blob=e.data,e.data=new Image,e.data.src=s,e.type=i.default.TYPE.IMAGE,e.data.onload=function(){u.revokeObjectURL(s),e.data.onload=null,t()},{v:void 0});if("object"===(void 0===n?"undefined":o(n)))return n.v}}else{var r=e.xhr.getResponseHeader("content-type");if(r&&0===r.indexOf("image"))return e.data=new Image,e.data.src="data:"+r+";base64,"+a.default.encodeBinary(e.xhr.responseText),e.type=i.default.TYPE.IMAGE,void(e.data.onload=function(){e.data.onload=null,t()})}var s;t()}else t()}};var i=s(n(50)),a=s(n(86));function s(e){return e&&e.__esModule?e:{default:e}}var u=window.URL||window.webkitURL},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.__esModule=!0;var o=c(n(26)),i=n(202),a=c(n(18)),s=c(n(84)),u=c(n(85)),l=c(n(90));function c(e){return e&&e.__esModule?e:{default:e}}var d=function(e){function t(n,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":r(t))&&"function"!=typeof t?e:t}(this,e.call(this,n,o));a.default.call(i);for(var s=0;s<t._pixiMiddleware.length;++s)i.use(t._pixiMiddleware[s]());return i.onStart.add(function(e){return i.emit("start",e)}),i.onProgress.add(function(e,t){return i.emit("progress",e,t)}),i.onError.add(function(e,t,n){return i.emit("error",e,t,n)}),i.onLoad.add(function(e,t){return i.emit("load",e,t)}),i.onComplete.add(function(e,t){return i.emit("complete",e,t)}),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":r(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.addPixiMiddleware=function(e){t._pixiMiddleware.push(e)},t.prototype.destroy=function(){this.removeAllListeners(),this.reset()},t}(o.default);for(var f in t.default=d,a.default.prototype)d.prototype[f]=a.default.prototype[f];d._pixiMiddleware=[i.blobMiddlewareFactory,s.default,u.default,l.default];var h=o.default.Resource;h.setExtensionXhrType("fnt",h.XHR_RESPONSE_TYPE.DOCUMENT)},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.__esModule=!0;var o="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?function(e){return void 0===e?"undefined":r(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":void 0===e?"undefined":r(e)},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=c(n(89)),s=c(n(88)),u=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(87)),l=c(n(50));function c(e){return e&&e.__esModule?e:{default:e}}var d=/(#[\w-]+)?$/,f=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.baseUrl=n,this.progress=0,this.loading=!1,this.defaultQueryString="",this._beforeMiddleware=[],this._afterMiddleware=[],this._resourcesParsing=[],this._boundLoadResource=function(e,n){return t._loadResource(e,n)},this._queue=u.queue(this._boundLoadResource,r),this._queue.pause(),this.resources={},this.onProgress=new a.default,this.onError=new a.default,this.onLoad=new a.default,this.onStart=new a.default,this.onComplete=new a.default}return e.prototype.add=function(e,t,n,r){if(Array.isArray(e)){for(var i=0;i<e.length;++i)this.add(e[i]);return this}if("object"===(void 0===e?"undefined":o(e))&&(r=t||e.callback||e.onComplete,n=e,t=e.url,e=e.name||e.key||e.url),"string"!=typeof t&&(r=n,n=t,t=e),"string"!=typeof t)throw new Error("No url passed to add resource to loader.");if("function"==typeof n&&(r=n,n=null),this.loading&&(!n||!n.parentResource))throw new Error("Cannot add resources while the loader is running.");if(this.resources[e])throw new Error('Resource named "'+e+'" already exists.');if(t=this._prepareUrl(t),this.resources[e]=new l.default(e,t,n),"function"==typeof r&&this.resources[e].onAfterMiddleware.once(r),this.loading){for(var a=n.parentResource,s=[],u=0;u<a.children.length;++u)a.children[u].isComplete||s.push(a.children[u]);var c=a.progressChunk*(s.length+1)/(s.length+2);a.children.push(this.resources[e]),a.progressChunk=c;for(var d=0;d<s.length;++d)s[d].progressChunk=c;this.resources[e].progressChunk=c}return this._queue.push(this.resources[e]),this},e.prototype.pre=function(e){return this._beforeMiddleware.push(e),this},e.prototype.use=function(e){return this._afterMiddleware.push(e),this},e.prototype.reset=function(){for(var e in this.progress=0,this.loading=!1,this._queue.kill(),this._queue.pause(),this.resources){var t=this.resources[e];t._onLoadBinding&&t._onLoadBinding.detach(),t.isLoading&&t.abort()}return this.resources={},this},e.prototype.load=function(e){if("function"==typeof e&&this.onComplete.once(e),this.loading)return this;if(this._queue.idle())this._onStart(),this._onComplete();else{for(var t=100/this._queue._tasks.length,n=0;n<this._queue._tasks.length;++n)this._queue._tasks[n].data.progressChunk=t;this._onStart(),this._queue.resume()}return this},e.prototype._prepareUrl=function(e){var t=(0,s.default)(e,{strictMode:!0}),n=void 0;if(n=t.protocol||!t.path||0===e.indexOf("//")?e:this.baseUrl.length&&this.baseUrl.lastIndexOf("/")!==this.baseUrl.length-1&&"/"!==e.charAt(0)?this.baseUrl+"/"+e:this.baseUrl+e,this.defaultQueryString){var r=d.exec(n)[0];-1!==(n=n.substr(0,n.length-r.length)).indexOf("?")?n+="&"+this.defaultQueryString:n+="?"+this.defaultQueryString,n+=r}return n},e.prototype._loadResource=function(e,t){var n=this;e._dequeue=t,u.eachSeries(this._beforeMiddleware,function(t,r){t.call(n,e,function(){r(e.isComplete?{}:null)})},function(){e.isComplete?n._onLoad(e):(e._onLoadBinding=e.onComplete.once(n._onLoad,n),e.load())},!0)},e.prototype._onStart=function(){this.progress=0,this.loading=!0,this.onStart.dispatch(this)},e.prototype._onComplete=function(){this.progress=100,this.loading=!1,this.onComplete.dispatch(this,this.resources)},e.prototype._onLoad=function(e){var t=this;e._onLoadBinding=null,this._resourcesParsing.push(e),e._dequeue(),u.eachSeries(this._afterMiddleware,function(n,r){n.call(t,e,r)},function(){e.onAfterMiddleware.dispatch(e),t.progress+=e.progressChunk,t.onProgress.dispatch(t,e),e.error?t.onError.dispatch(e.error,t,e):t.onLoad.dispatch(t,e),t._resourcesParsing.splice(t._resourcesParsing.indexOf(e),1),t._queue.idle()&&0===t._resourcesParsing.length&&t._onComplete()},!0)},i(e,[{key:"concurrency",get:function(){return this._queue.concurrency},set:function(e){this._queue.concurrency=e}}]),e}();t.default=f},function(e,t,n){"use strict";t.__esModule=!0,t.shared=t.Resource=t.textureParser=t.getResourcePath=t.spritesheetParser=t.parseBitmapFontData=t.bitmapFontParser=t.Loader=void 0;var r=n(90);Object.defineProperty(t,"bitmapFontParser",{enumerable:!0,get:function(){return l(r).default}}),Object.defineProperty(t,"parseBitmapFontData",{enumerable:!0,get:function(){return r.parse}});var o=n(85);Object.defineProperty(t,"spritesheetParser",{enumerable:!0,get:function(){return l(o).default}}),Object.defineProperty(t,"getResourcePath",{enumerable:!0,get:function(){return o.getResourcePath}});var i=n(84);Object.defineProperty(t,"textureParser",{enumerable:!0,get:function(){return l(i).default}});var a=n(26);Object.defineProperty(t,"Resource",{enumerable:!0,get:function(){return a.Resource}});var s=l(n(103)),u=l(n(203));function l(e){return e&&e.__esModule?e:{default:e}}t.Loader=u.default;var c=new u.default;c.destroy=function(){},t.shared=c;var d=s.default.prototype;d._loader=null,Object.defineProperty(d,"loader",{get:function(){if(!this._loader){var e=this._options.sharedLoader;this._loader=e?c:new u.default}return this._loader}}),d._parentDestroy=d.destroy,d.destroy=function(e){this._loader&&(this._loader.destroy(),this._loader=null),this._parentDestroy(e)}},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.__esModule=!0;var o="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?function(e){return void 0===e?"undefined":r(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":void 0===e?"undefined":r(e)},i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(4)),a=d(n(94)),s=d(n(93)),u=d(n(92)),l=d(n(18)),c=d(n(91));function d(e){return e&&e.__esModule?e:{default:e}}i.utils.mixins.delayMixin(i.DisplayObject.prototype,c.default);var f=1,h={target:null,data:{global:null}},p=function(e){function t(n,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var u=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":r(t))&&"function"!=typeof t?e:t}(this,e.call(this));return o=o||{},u.renderer=n,u.autoPreventDefault=void 0===o.autoPreventDefault||o.autoPreventDefault,u.interactionFrequency=o.interactionFrequency||10,u.mouse=new a.default,u.mouse.identifier=f,u.mouse.global.set(-999999),u.activeInteractionData={},u.activeInteractionData[f]=u.mouse,u.interactionDataPool=[],u.eventData=new s.default,u.interactionDOMElement=null,u.moveWhenInside=!1,u.eventsAdded=!1,u.mouseOverRenderer=!1,u.supportsTouchEvents="ontouchstart"in window,u.supportsPointerEvents=!!window.PointerEvent,u.onPointerUp=u.onPointerUp.bind(u),u.processPointerUp=u.processPointerUp.bind(u),u.onPointerCancel=u.onPointerCancel.bind(u),u.processPointerCancel=u.processPointerCancel.bind(u),u.onPointerDown=u.onPointerDown.bind(u),u.processPointerDown=u.processPointerDown.bind(u),u.onPointerMove=u.onPointerMove.bind(u),u.processPointerMove=u.processPointerMove.bind(u),u.onPointerOut=u.onPointerOut.bind(u),u.processPointerOverOut=u.processPointerOverOut.bind(u),u.onPointerOver=u.onPointerOver.bind(u),u.cursorStyles={default:"inherit",pointer:"pointer"},u.currentCursorMode=null,u.cursor=null,u._tempPoint=new i.Point,u.resolution=1,u.setTargetElement(u.renderer.view,u.renderer.resolution),u}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":r(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.hitTest=function(e,t){return h.target=null,h.data.global=e,t||(t=this.renderer._lastObjectRendered),this.processInteractive(h,t,null,!0),h.target},t.prototype.setTargetElement=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.removeEvents(),this.interactionDOMElement=e,this.resolution=t,this.addEvents()},t.prototype.addEvents=function(){this.interactionDOMElement&&(i.ticker.shared.add(this.update,this,i.UPDATE_PRIORITY.INTERACTION),window.navigator.msPointerEnabled?(this.interactionDOMElement.style["-ms-content-zooming"]="none",this.interactionDOMElement.style["-ms-touch-action"]="none"):this.supportsPointerEvents&&(this.interactionDOMElement.style["touch-action"]="none"),this.supportsPointerEvents?(window.document.addEventListener("pointermove",this.onPointerMove,!0),this.interactionDOMElement.addEventListener("pointerdown",this.onPointerDown,!0),this.interactionDOMElement.addEventListener("pointerleave",this.onPointerOut,!0),this.interactionDOMElement.addEventListener("pointerover",this.onPointerOver,!0),window.addEventListener("pointercancel",this.onPointerCancel,!0),window.addEventListener("pointerup",this.onPointerUp,!0)):(window.document.addEventListener("mousemove",this.onPointerMove,!0),this.interactionDOMElement.addEventListener("mousedown",this.onPointerDown,!0),this.interactionDOMElement.addEventListener("mouseout",this.onPointerOut,!0),this.interactionDOMElement.addEventListener("mouseover",this.onPointerOver,!0),window.addEventListener("mouseup",this.onPointerUp,!0)),this.supportsTouchEvents&&(this.interactionDOMElement.addEventListener("touchstart",this.onPointerDown,!0),this.interactionDOMElement.addEventListener("touchcancel",this.onPointerCancel,!0),this.interactionDOMElement.addEventListener("touchend",this.onPointerUp,!0),this.interactionDOMElement.addEventListener("touchmove",this.onPointerMove,!0)),this.eventsAdded=!0)},t.prototype.removeEvents=function(){this.interactionDOMElement&&(i.ticker.shared.remove(this.update,this),window.navigator.msPointerEnabled?(this.interactionDOMElement.style["-ms-content-zooming"]="",this.interactionDOMElement.style["-ms-touch-action"]=""):this.supportsPointerEvents&&(this.interactionDOMElement.style["touch-action"]=""),this.supportsPointerEvents?(window.document.removeEventListener("pointermove",this.onPointerMove,!0),this.interactionDOMElement.removeEventListener("pointerdown",this.onPointerDown,!0),this.interactionDOMElement.removeEventListener("pointerleave",this.onPointerOut,!0),this.interactionDOMElement.removeEventListener("pointerover",this.onPointerOver,!0),window.removeEventListener("pointercancel",this.onPointerCancel,!0),window.removeEventListener("pointerup",this.onPointerUp,!0)):(window.document.removeEventListener("mousemove",this.onPointerMove,!0),this.interactionDOMElement.removeEventListener("mousedown",this.onPointerDown,!0),this.interactionDOMElement.removeEventListener("mouseout",this.onPointerOut,!0),this.interactionDOMElement.removeEventListener("mouseover",this.onPointerOver,!0),window.removeEventListener("mouseup",this.onPointerUp,!0)),this.supportsTouchEvents&&(this.interactionDOMElement.removeEventListener("touchstart",this.onPointerDown,!0),this.interactionDOMElement.removeEventListener("touchcancel",this.onPointerCancel,!0),this.interactionDOMElement.removeEventListener("touchend",this.onPointerUp,!0),this.interactionDOMElement.removeEventListener("touchmove",this.onPointerMove,!0)),this.interactionDOMElement=null,this.eventsAdded=!1)},t.prototype.update=function(e){if(this._deltaTime+=e,!(this._deltaTime<this.interactionFrequency)&&(this._deltaTime=0,this.interactionDOMElement))if(this.didMove)this.didMove=!1;else{for(var t in this.cursor=null,this.activeInteractionData)if(this.activeInteractionData.hasOwnProperty(t)){var n=this.activeInteractionData[t];if(n.originalEvent&&"touch"!==n.pointerType){var r=this.configureInteractionEventForDOMEvent(this.eventData,n.originalEvent,n);this.processInteractive(r,this.renderer._lastObjectRendered,this.processPointerOverOut,!0)}}this.setCursorMode(this.cursor)}},t.prototype.setCursorMode=function(e){if(e=e||"default",this.currentCursorMode!==e){this.currentCursorMode=e;var t=this.cursorStyles[e];if(t)switch(void 0===t?"undefined":o(t)){case"string":this.interactionDOMElement.style.cursor=t;break;case"function":t(e);break;case"object":Object.assign(this.interactionDOMElement.style,t)}else"string"!=typeof e||Object.prototype.hasOwnProperty.call(this.cursorStyles,e)||(this.interactionDOMElement.style.cursor=e)}},t.prototype.dispatchEvent=function(e,t,n){n.stopped||(n.currentTarget=e,n.type=t,e.emit(t,n),e[t]&&e[t](n))},t.prototype.mapPositionToPoint=function(e,t,n){var r=void 0;r=this.interactionDOMElement.parentElement?this.interactionDOMElement.getBoundingClientRect():{x:0,y:0,width:0,height:0};var o=navigator.isCocoonJS?this.resolution:1/this.resolution;e.x=(t-r.left)*(this.interactionDOMElement.width/r.width)*o,e.y=(n-r.top)*(this.interactionDOMElement.height/r.height)*o},t.prototype.processInteractive=function(e,t,n,r,o){if(!t||!t.visible)return!1;var i=e.data.global,a=!1,s=o=t.interactive||o,u=!0;if(t.hitArea?(r&&(t.worldTransform.applyInverse(i,this._tempPoint),t.hitArea.contains(this._tempPoint.x,this._tempPoint.y)?a=!0:(r=!1,u=!1)),s=!1):t._mask&&r&&(t._mask.containsPoint(i)||(r=!1,u=!1)),u&&t.interactiveChildren&&t.children)for(var l=t.children,c=l.length-1;c>=0;c--){var d=l[c],f=this.processInteractive(e,d,n,r,s);if(f){if(!d.parent)continue;s=!1,f&&(e.target&&(r=!1),a=!0)}}return o&&(r&&!e.target&&!t.hitArea&&t.containsPoint&&t.containsPoint(i)&&(a=!0),t.interactive&&(a&&!e.target&&(e.target=t),n&&n(e,t,!!a))),a},t.prototype.onPointerDown=function(e){if(!this.supportsTouchEvents||"touch"!==e.pointerType){var t=this.normalizeToPointerData(e);this.autoPreventDefault&&t[0].isNormalized&&e.preventDefault();for(var n=t.length,r=0;r<n;r++){var o=t[r],i=this.getInteractionDataForPointerId(o),a=this.configureInteractionEventForDOMEvent(this.eventData,o,i);if(a.data.originalEvent=e,this.processInteractive(a,this.renderer._lastObjectRendered,this.processPointerDown,!0),this.emit("pointerdown",a),"touch"===o.pointerType)this.emit("touchstart",a);else if("mouse"===o.pointerType||"pen"===o.pointerType){var s=2===o.button;this.emit(s?"rightdown":"mousedown",this.eventData)}}}},t.prototype.processPointerDown=function(e,t,n){var r=e.data,o=e.data.identifier;if(n)if(t.trackedPointers[o]||(t.trackedPointers[o]=new u.default(o)),this.dispatchEvent(t,"pointerdown",e),"touch"===r.pointerType)this.dispatchEvent(t,"touchstart",e);else if("mouse"===r.pointerType||"pen"===r.pointerType){var i=2===r.button;i?t.trackedPointers[o].rightDown=!0:t.trackedPointers[o].leftDown=!0,this.dispatchEvent(t,i?"rightdown":"mousedown",e)}},t.prototype.onPointerComplete=function(e,t,n){for(var r=this.normalizeToPointerData(e),o=r.length,i=e.target!==this.interactionDOMElement?"outside":"",a=0;a<o;a++){var s=r[a],u=this.getInteractionDataForPointerId(s),l=this.configureInteractionEventForDOMEvent(this.eventData,s,u);if(l.data.originalEvent=e,this.processInteractive(l,this.renderer._lastObjectRendered,n,t||!i),this.emit(t?"pointercancel":"pointerup"+i,l),"mouse"===s.pointerType||"pen"===s.pointerType){var c=2===s.button;this.emit(c?"rightup"+i:"mouseup"+i,l)}else"touch"===s.pointerType&&(this.emit(t?"touchcancel":"touchend"+i,l),this.releaseInteractionDataForPointerId(s.pointerId,u))}},t.prototype.onPointerCancel=function(e){this.supportsTouchEvents&&"touch"===e.pointerType||this.onPointerComplete(e,!0,this.processPointerCancel)},t.prototype.processPointerCancel=function(e,t){var n=e.data,r=e.data.identifier;void 0!==t.trackedPointers[r]&&(delete t.trackedPointers[r],this.dispatchEvent(t,"pointercancel",e),"touch"===n.pointerType&&this.dispatchEvent(t,"touchcancel",e))},t.prototype.onPointerUp=function(e){this.supportsTouchEvents&&"touch"===e.pointerType||this.onPointerComplete(e,!1,this.processPointerUp)},t.prototype.processPointerUp=function(e,t,n){var r=e.data,o=e.data.identifier,i=t.trackedPointers[o],a="touch"===r.pointerType;if("mouse"===r.pointerType||"pen"===r.pointerType){var s=2===r.button,l=u.default.FLAGS,c=s?l.RIGHT_DOWN:l.LEFT_DOWN,d=void 0!==i&&i.flags&c;n?(this.dispatchEvent(t,s?"rightup":"mouseup",e),d&&this.dispatchEvent(t,s?"rightclick":"click",e)):d&&this.dispatchEvent(t,s?"rightupoutside":"mouseupoutside",e),i&&(s?i.rightDown=!1:i.leftDown=!1)}n?(this.dispatchEvent(t,"pointerup",e),a&&this.dispatchEvent(t,"touchend",e),i&&(this.dispatchEvent(t,"pointertap",e),a&&(this.dispatchEvent(t,"tap",e),i.over=!1))):i&&(this.dispatchEvent(t,"pointerupoutside",e),a&&this.dispatchEvent(t,"touchendoutside",e)),i&&i.none&&delete t.trackedPointers[o]},t.prototype.onPointerMove=function(e){if(!this.supportsTouchEvents||"touch"!==e.pointerType){var t=this.normalizeToPointerData(e);"mouse"!==t[0].pointerType&&"pen"!==t[0].pointerType||(this.didMove=!0,this.cursor=null);for(var n=t.length,r=0;r<n;r++){var o=t[r],i=this.getInteractionDataForPointerId(o),a=this.configureInteractionEventForDOMEvent(this.eventData,o,i);a.data.originalEvent=e;var s="touch"!==o.pointerType||this.moveWhenInside;this.processInteractive(a,this.renderer._lastObjectRendered,this.processPointerMove,s),this.emit("pointermove",a),"touch"===o.pointerType&&this.emit("touchmove",a),"mouse"!==o.pointerType&&"pen"!==o.pointerType||this.emit("mousemove",a)}"mouse"===t[0].pointerType&&this.setCursorMode(this.cursor)}},t.prototype.processPointerMove=function(e,t,n){var r=e.data,o="touch"===r.pointerType,i="mouse"===r.pointerType||"pen"===r.pointerType;i&&this.processPointerOverOut(e,t,n),this.moveWhenInside&&!n||(this.dispatchEvent(t,"pointermove",e),o&&this.dispatchEvent(t,"touchmove",e),i&&this.dispatchEvent(t,"mousemove",e))},t.prototype.onPointerOut=function(e){if(!this.supportsTouchEvents||"touch"!==e.pointerType){var t=this.normalizeToPointerData(e)[0];"mouse"===t.pointerType&&(this.mouseOverRenderer=!1,this.setCursorMode(null));var n=this.getInteractionDataForPointerId(t),r=this.configureInteractionEventForDOMEvent(this.eventData,t,n);r.data.originalEvent=t,this.processInteractive(r,this.renderer._lastObjectRendered,this.processPointerOverOut,!1),this.emit("pointerout",r),"mouse"===t.pointerType||"pen"===t.pointerType?this.emit("mouseout",r):this.releaseInteractionDataForPointerId(n.identifier)}},t.prototype.processPointerOverOut=function(e,t,n){var r=e.data,o=e.data.identifier,i="mouse"===r.pointerType||"pen"===r.pointerType,a=t.trackedPointers[o];n&&!a&&(a=t.trackedPointers[o]=new u.default(o)),void 0!==a&&(n&&this.mouseOverRenderer?(a.over||(a.over=!0,this.dispatchEvent(t,"pointerover",e),i&&this.dispatchEvent(t,"mouseover",e)),i&&null===this.cursor&&(this.cursor=t.cursor)):a.over&&(a.over=!1,this.dispatchEvent(t,"pointerout",this.eventData),i&&this.dispatchEvent(t,"mouseout",e),a.none&&delete t.trackedPointers[o]))},t.prototype.onPointerOver=function(e){var t=this.normalizeToPointerData(e)[0],n=this.getInteractionDataForPointerId(t),r=this.configureInteractionEventForDOMEvent(this.eventData,t,n);r.data.originalEvent=t,"mouse"===t.pointerType&&(this.mouseOverRenderer=!0),this.emit("pointerover",r),"mouse"!==t.pointerType&&"pen"!==t.pointerType||this.emit("mouseover",r)},t.prototype.getInteractionDataForPointerId=function(e){var t=e.pointerId,n=void 0;return t===f||"mouse"===e.pointerType?n=this.mouse:this.activeInteractionData[t]?n=this.activeInteractionData[t]:((n=this.interactionDataPool.pop()||new a.default).identifier=t,this.activeInteractionData[t]=n),n.copyEvent(e),n},t.prototype.releaseInteractionDataForPointerId=function(e){var t=this.activeInteractionData[e];t&&(delete this.activeInteractionData[e],t.reset(),this.interactionDataPool.push(t))},t.prototype.configureInteractionEventForDOMEvent=function(e,t,n){return e.data=n,this.mapPositionToPoint(n.global,t.clientX,t.clientY),navigator.isCocoonJS&&"touch"===t.pointerType&&(n.global.x=n.global.x/this.resolution,n.global.y=n.global.y/this.resolution),"touch"===t.pointerType&&(t.globalX=n.global.x,t.globalY=n.global.y),n.originalEvent=t,e.reset(),e},t.prototype.normalizeToPointerData=function(e){var t=[];if(this.supportsTouchEvents&&e instanceof TouchEvent)for(var n=0,r=e.changedTouches.length;n<r;n++){var o=e.changedTouches[n];void 0===o.button&&(o.button=e.touches.length?1:0),void 0===o.buttons&&(o.buttons=e.touches.length?1:0),void 0===o.isPrimary&&(o.isPrimary=1===e.touches.length&&"touchstart"===e.type),void 0===o.width&&(o.width=o.radiusX||1),void 0===o.height&&(o.height=o.radiusY||1),void 0===o.tiltX&&(o.tiltX=0),void 0===o.tiltY&&(o.tiltY=0),void 0===o.pointerType&&(o.pointerType="touch"),void 0===o.pointerId&&(o.pointerId=o.identifier||0),void 0===o.pressure&&(o.pressure=o.force||.5),o.twist=0,o.tangentialPressure=0,void 0===o.layerX&&(o.layerX=o.offsetX=o.clientX),void 0===o.layerY&&(o.layerY=o.offsetY=o.clientY),o.isNormalized=!0,t.push(o)}else!(e instanceof MouseEvent)||this.supportsPointerEvents&&e instanceof window.PointerEvent?t.push(e):(void 0===e.isPrimary&&(e.isPrimary=!0),void 0===e.width&&(e.width=1),void 0===e.height&&(e.height=1),void 0===e.tiltX&&(e.tiltX=0),void 0===e.tiltY&&(e.tiltY=0),void 0===e.pointerType&&(e.pointerType="mouse"),void 0===e.pointerId&&(e.pointerId=f),void 0===e.pressure&&(e.pressure=.5),e.twist=0,e.tangentialPressure=0,e.isNormalized=!0,t.push(e));return t},t.prototype.destroy=function(){this.removeEvents(),this.removeAllListeners(),this.renderer=null,this.mouse=null,this.eventData=null,this.interactionDOMElement=null,this.onPointerDown=null,this.processPointerDown=null,this.onPointerUp=null,this.processPointerUp=null,this.onPointerCancel=null,this.processPointerCancel=null,this.onPointerMove=null,this.processPointerMove=null,this.onPointerOut=null,this.processPointerOverOut=null,this.onPointerOver=null,this._tempPoint=null},t}(l.default);t.default=p,i.WebGLRenderer.registerPlugin("interaction",p),i.CanvasRenderer.registerPlugin("interaction",p)},function(e,t,n){"use strict";t.__esModule=!0;var r=n(94);Object.defineProperty(t,"InteractionData",{enumerable:!0,get:function(){return u(r).default}});var o=n(206);Object.defineProperty(t,"InteractionManager",{enumerable:!0,get:function(){return u(o).default}});var i=n(91);Object.defineProperty(t,"interactiveTarget",{enumerable:!0,get:function(){return u(i).default}});var a=n(92);Object.defineProperty(t,"InteractionTrackingData",{enumerable:!0,get:function(){return u(a).default}});var s=n(93);function u(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"InteractionEvent",{enumerable:!0,get:function(){return u(s).default}})},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.__esModule=!0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(4));n(14);var a=function(e){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":r(t))&&"function"!=typeof t?e:t}(this,e.call(this,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n}","varying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\nuniform float uAlpha;\n\nvoid main(void)\n{\n gl_FragColor = texture2D(uSampler, vTextureCoord) * uAlpha;\n}\n"));return o.alpha=n,o.glShaderKey="alpha",o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":r(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"alpha",get:function(){return this.uniforms.uAlpha},set:function(e){this.uniforms.uAlpha=e}}]),t}(i.Filter);t.default=a},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.__esModule=!0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(4));n(14);var a=function(e){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":r(t))&&"function"!=typeof t?e:t}(this,e.call(this,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n}","varying vec2 vTextureCoord;\nuniform sampler2D uSampler;\nuniform float m[20];\nuniform float uAlpha;\n\nvoid main(void)\n{\n vec4 c = texture2D(uSampler, vTextureCoord);\n\n if (uAlpha == 0.0) {\n gl_FragColor = c;\n return;\n }\n\n // Un-premultiply alpha before applying the color matrix. See issue #3539.\n if (c.a > 0.0) {\n c.rgb /= c.a;\n }\n\n vec4 result;\n\n result.r = (m[0] * c.r);\n result.r += (m[1] * c.g);\n result.r += (m[2] * c.b);\n result.r += (m[3] * c.a);\n result.r += m[4];\n\n result.g = (m[5] * c.r);\n result.g += (m[6] * c.g);\n result.g += (m[7] * c.b);\n result.g += (m[8] * c.a);\n result.g += m[9];\n\n result.b = (m[10] * c.r);\n result.b += (m[11] * c.g);\n result.b += (m[12] * c.b);\n result.b += (m[13] * c.a);\n result.b += m[14];\n\n result.a = (m[15] * c.r);\n result.a += (m[16] * c.g);\n result.a += (m[17] * c.b);\n result.a += (m[18] * c.a);\n result.a += m[19];\n\n vec3 rgb = mix(c.rgb, result.rgb, uAlpha);\n\n // Premultiply alpha again.\n rgb *= result.a;\n\n gl_FragColor = vec4(rgb, result.a);\n}\n"));return n.uniforms.m=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],n.alpha=1,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":r(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype._loadMatrix=function(e){var t=e;arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&(this._multiply(t,this.uniforms.m,e),t=this._colorMatrix(t)),this.uniforms.m=t},t.prototype._multiply=function(e,t,n){return e[0]=t[0]*n[0]+t[1]*n[5]+t[2]*n[10]+t[3]*n[15],e[1]=t[0]*n[1]+t[1]*n[6]+t[2]*n[11]+t[3]*n[16],e[2]=t[0]*n[2]+t[1]*n[7]+t[2]*n[12]+t[3]*n[17],e[3]=t[0]*n[3]+t[1]*n[8]+t[2]*n[13]+t[3]*n[18],e[4]=t[0]*n[4]+t[1]*n[9]+t[2]*n[14]+t[3]*n[19]+t[4],e[5]=t[5]*n[0]+t[6]*n[5]+t[7]*n[10]+t[8]*n[15],e[6]=t[5]*n[1]+t[6]*n[6]+t[7]*n[11]+t[8]*n[16],e[7]=t[5]*n[2]+t[6]*n[7]+t[7]*n[12]+t[8]*n[17],e[8]=t[5]*n[3]+t[6]*n[8]+t[7]*n[13]+t[8]*n[18],e[9]=t[5]*n[4]+t[6]*n[9]+t[7]*n[14]+t[8]*n[19]+t[9],e[10]=t[10]*n[0]+t[11]*n[5]+t[12]*n[10]+t[13]*n[15],e[11]=t[10]*n[1]+t[11]*n[6]+t[12]*n[11]+t[13]*n[16],e[12]=t[10]*n[2]+t[11]*n[7]+t[12]*n[12]+t[13]*n[17],e[13]=t[10]*n[3]+t[11]*n[8]+t[12]*n[13]+t[13]*n[18],e[14]=t[10]*n[4]+t[11]*n[9]+t[12]*n[14]+t[13]*n[19]+t[14],e[15]=t[15]*n[0]+t[16]*n[5]+t[17]*n[10]+t[18]*n[15],e[16]=t[15]*n[1]+t[16]*n[6]+t[17]*n[11]+t[18]*n[16],e[17]=t[15]*n[2]+t[16]*n[7]+t[17]*n[12]+t[18]*n[17],e[18]=t[15]*n[3]+t[16]*n[8]+t[17]*n[13]+t[18]*n[18],e[19]=t[15]*n[4]+t[16]*n[9]+t[17]*n[14]+t[18]*n[19]+t[19],e},t.prototype._colorMatrix=function(e){var t=new Float32Array(e);return t[4]/=255,t[9]/=255,t[14]/=255,t[19]/=255,t},t.prototype.brightness=function(e,t){var n=[e,0,0,0,0,0,e,0,0,0,0,0,e,0,0,0,0,0,1,0];this._loadMatrix(n,t)},t.prototype.greyscale=function(e,t){var n=[e,e,e,0,0,e,e,e,0,0,e,e,e,0,0,0,0,0,1,0];this._loadMatrix(n,t)},t.prototype.blackAndWhite=function(e){this._loadMatrix([.3,.6,.1,0,0,.3,.6,.1,0,0,.3,.6,.1,0,0,0,0,0,1,0],e)},t.prototype.hue=function(e,t){e=(e||0)/180*Math.PI;var n=Math.cos(e),r=Math.sin(e),o=1/3,i=(0,Math.sqrt)(o),a=[n+(1-n)*o,o*(1-n)-i*r,o*(1-n)+i*r,0,0,o*(1-n)+i*r,n+o*(1-n),o*(1-n)-i*r,0,0,o*(1-n)-i*r,o*(1-n)+i*r,n+o*(1-n),0,0,0,0,0,1,0];this._loadMatrix(a,t)},t.prototype.contrast=function(e,t){var n=(e||0)+1,r=-.5*(n-1),o=[n,0,0,0,r,0,n,0,0,r,0,0,n,0,r,0,0,0,1,0];this._loadMatrix(o,t)},t.prototype.saturate=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments[1],n=2*e/3+1,r=-.5*(n-1),o=[n,r,r,0,0,r,n,r,0,0,r,r,n,0,0,0,0,0,1,0];this._loadMatrix(o,t)},t.prototype.desaturate=function(){this.saturate(-1)},t.prototype.negative=function(e){this._loadMatrix([-1,0,0,1,0,0,-1,0,1,0,0,0,-1,1,0,0,0,0,1,0],e)},t.prototype.sepia=function(e){this._loadMatrix([.393,.7689999,.18899999,0,0,.349,.6859999,.16799999,0,0,.272,.5339999,.13099999,0,0,0,0,0,1,0],e)},t.prototype.technicolor=function(e){this._loadMatrix([1.9125277891456083,-.8545344976951645,-.09155508482755585,0,11.793603434377337,-.3087833385928097,1.7658908555458428,-.10601743074722245,0,-70.35205161461398,-.231103377548616,-.7501899197440212,1.847597816108189,0,30.950940869491138,0,0,0,1,0],e)},t.prototype.polaroid=function(e){this._loadMatrix([1.438,-.062,-.062,0,0,-.122,1.378,-.122,0,0,-.016,-.016,1.483,0,0,0,0,0,1,0],e)},t.prototype.toBGR=function(e){this._loadMatrix([0,0,1,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,1,0],e)},t.prototype.kodachrome=function(e){this._loadMatrix([1.1285582396593525,-.3967382283601348,-.03992559172921793,0,63.72958762196502,-.16404339962244616,1.0835251566291304,-.05498805115633132,0,24.732407896706203,-.16786010706155763,-.5603416277695248,1.6014850761964943,0,35.62982807460946,0,0,0,1,0],e)},t.prototype.browni=function(e){this._loadMatrix([.5997023498159715,.34553243048391263,-.2708298674538042,0,47.43192855600873,-.037703249837783157,.8609577587992641,.15059552388459913,0,-36.96841498319127,.24113635128153335,-.07441037908422492,.44972182064877153,0,-7.562075277591283,0,0,0,1,0],e)},t.prototype.vintage=function(e){this._loadMatrix([.6279345635605994,.3202183420819367,-.03965408211312453,0,9.651285835294123,.02578397704808868,.6441188644374771,.03259127616149294,0,7.462829176470591,.0466055556782719,-.0851232987247891,.5241648018700465,0,5.159190588235296,0,0,0,1,0],e)},t.prototype.colorTone=function(e,t,n,r,o){e=e||.2,t=t||.15;var i=((n=n||16770432)>>16&255)/255,a=(n>>8&255)/255,s=(255&n)/255,u=((r=r||3375104)>>16&255)/255,l=(r>>8&255)/255,c=(255&r)/255,d=[.3,.59,.11,0,0,i,a,s,e,0,u,l,c,t,0,i-u,a-l,s-c,0,0];this._loadMatrix(d,o)},t.prototype.night=function(e,t){var n=[-2*(e=e||.1),-e,0,0,0,-e,0,e,0,0,0,e,2*e,0,0,0,0,0,1,0];this._loadMatrix(n,t)},t.prototype.predator=function(e,t){var n=[11.224130630493164*e,-4.794486999511719*e,-2.8746118545532227*e,0*e,.40342438220977783*e,-3.6330697536468506*e,9.193157196044922*e,-2.951810836791992*e,0*e,-1.316135048866272*e,-3.2184197902679443*e,-4.2375030517578125*e,7.476448059082031*e,0*e,.8044459223747253*e,0,0,0,1,0];this._loadMatrix(n,t)},t.prototype.lsd=function(e){this._loadMatrix([2,-.4,.5,0,0,-.5,2,-.4,0,0,-.4,-.5,3,0,0,0,0,0,1,0],e)},t.prototype.reset=function(){this._loadMatrix([1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],!1)},o(t,[{key:"matrix",get:function(){return this.uniforms.m},set:function(e){this.uniforms.m=e}},{key:"alpha",get:function(){return this.uniforms.uAlpha},set:function(e){this.uniforms.uAlpha=e}}]),t}(i.Filter);t.default=a,a.prototype.grayscale=a.prototype.greyscale},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.__esModule=!0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(4)),a=u(n(99)),s=u(n(95));function u(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(n,o,u,l){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var c=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":r(t))&&"function"!=typeof t?e:t}(this,e.call(this));return c.blurXFilter=new a.default(n,o,u,l),c.blurYFilter=new s.default(n,o,u,l),c.padding=0,c.resolution=u||i.settings.RESOLUTION,c.quality=o||4,c.blur=n||8,c}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":r(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.apply=function(e,t,n){var r=e.getRenderTarget(!0);this.blurXFilter.apply(e,t,r,!0),this.blurYFilter.apply(e,r,n,!1),e.returnRenderTarget(r)},o(t,[{key:"blur",get:function(){return this.blurXFilter.blur},set:function(e){this.blurXFilter.blur=this.blurYFilter.blur=e,this.padding=2*Math.max(Math.abs(this.blurXFilter.strength),Math.abs(this.blurYFilter.strength))}},{key:"quality",get:function(){return this.blurXFilter.quality},set:function(e){this.blurXFilter.quality=this.blurYFilter.quality=e}},{key:"blurX",get:function(){return this.blurXFilter.blur},set:function(e){this.blurXFilter.blur=e,this.padding=2*Math.max(Math.abs(this.blurXFilter.strength),Math.abs(this.blurYFilter.strength))}},{key:"blurY",get:function(){return this.blurYFilter.blur},set:function(e){this.blurYFilter.blur=e,this.padding=2*Math.max(Math.abs(this.blurXFilter.strength),Math.abs(this.blurYFilter.strength))}},{key:"blendMode",get:function(){return this.blurYFilter._blendMode},set:function(e){this.blurYFilter._blendMode=e}}]),t}(i.Filter);t.default=l},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.__esModule=!0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(4));n(14);var a=function(e){function t(n,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=new i.Matrix;n.renderable=!1;var s=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":r(t))&&"function"!=typeof t?e:t}(this,e.call(this,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\nuniform mat3 filterMatrix;\n\nvarying vec2 vTextureCoord;\nvarying vec2 vFilterCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n vFilterCoord = ( filterMatrix * vec3( aTextureCoord, 1.0) ).xy;\n vTextureCoord = aTextureCoord;\n}","varying vec2 vFilterCoord;\nvarying vec2 vTextureCoord;\n\nuniform vec2 scale;\n\nuniform sampler2D uSampler;\nuniform sampler2D mapSampler;\n\nuniform vec4 filterArea;\nuniform vec4 filterClamp;\n\nvoid main(void)\n{\n vec4 map = texture2D(mapSampler, vFilterCoord);\n\n map -= 0.5;\n map.xy *= scale / filterArea.xy;\n\n gl_FragColor = texture2D(uSampler, clamp(vec2(vTextureCoord.x + map.x, vTextureCoord.y + map.y), filterClamp.xy, filterClamp.zw));\n}\n"));return s.maskSprite=n,s.maskMatrix=a,s.uniforms.mapSampler=n._texture,s.uniforms.filterMatrix=a,s.uniforms.scale={x:1,y:1},null!==o&&void 0!==o||(o=20),s.scale=new i.Point(o,o),s}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":r(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.apply=function(e,t,n){this.uniforms.filterMatrix=e.calculateSpriteMatrix(this.maskMatrix,this.maskSprite),this.uniforms.scale.x=this.scale.x,this.uniforms.scale.y=this.scale.y,e.applyFilter(this,t,n)},o(t,[{key:"map",get:function(){return this.uniforms.mapSampler},set:function(e){this.uniforms.mapSampler=e}}]),t}(i.Filter);t.default=a},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.__esModule=!0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(4));n(14);var a=function(e){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.5,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Math.random();!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":r(t))&&"function"!=typeof t?e:t}(this,e.call(this,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n}","precision highp float;\n\nvarying vec2 vTextureCoord;\nvarying vec4 vColor;\n\nuniform float uNoise;\nuniform float uSeed;\nuniform sampler2D uSampler;\n\nfloat rand(vec2 co)\n{\n return fract(sin(dot(co.xy, vec2(12.9898, 78.233))) * 43758.5453);\n}\n\nvoid main()\n{\n vec4 color = texture2D(uSampler, vTextureCoord);\n float randomValue = rand(gl_FragCoord.xy * uSeed);\n float diff = (randomValue - 0.5) * uNoise;\n\n // Un-premultiply alpha before applying the color matrix. See issue #3539.\n if (color.a > 0.0) {\n color.rgb /= color.a;\n }\n\n color.r += diff;\n color.g += diff;\n color.b += diff;\n\n // Premultiply alpha again.\n color.rgb *= color.a;\n\n gl_FragColor = color;\n}\n"));return i.noise=n,i.seed=o,i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":r(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"noise",get:function(){return this.uniforms.uNoise},set:function(e){this.uniforms.uNoise=e}},{key:"seed",get:function(){return this.uniforms.uSeed},set:function(e){this.uniforms.uSeed=e}}]),t}(i.Filter);t.default=a},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.__esModule=!0;var o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(4));n(14);var i=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":r(t))&&"function"!=typeof t?e:t}(this,e.call(this,"\nattribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 v_rgbNW;\nvarying vec2 v_rgbNE;\nvarying vec2 v_rgbSW;\nvarying vec2 v_rgbSE;\nvarying vec2 v_rgbM;\n\nuniform vec4 filterArea;\n\nvarying vec2 vTextureCoord;\n\nvec2 mapCoord( vec2 coord )\n{\n coord *= filterArea.xy;\n coord += filterArea.zw;\n\n return coord;\n}\n\nvec2 unmapCoord( vec2 coord )\n{\n coord -= filterArea.zw;\n coord /= filterArea.xy;\n\n return coord;\n}\n\nvoid texcoords(vec2 fragCoord, vec2 resolution,\n out vec2 v_rgbNW, out vec2 v_rgbNE,\n out vec2 v_rgbSW, out vec2 v_rgbSE,\n out vec2 v_rgbM) {\n vec2 inverseVP = 1.0 / resolution.xy;\n v_rgbNW = (fragCoord + vec2(-1.0, -1.0)) * inverseVP;\n v_rgbNE = (fragCoord + vec2(1.0, -1.0)) * inverseVP;\n v_rgbSW = (fragCoord + vec2(-1.0, 1.0)) * inverseVP;\n v_rgbSE = (fragCoord + vec2(1.0, 1.0)) * inverseVP;\n v_rgbM = vec2(fragCoord * inverseVP);\n}\n\nvoid main(void) {\n\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n\n vTextureCoord = aTextureCoord;\n\n vec2 fragCoord = vTextureCoord * filterArea.xy;\n\n texcoords(fragCoord, filterArea.xy, v_rgbNW, v_rgbNE, v_rgbSW, v_rgbSE, v_rgbM);\n}",'varying vec2 v_rgbNW;\nvarying vec2 v_rgbNE;\nvarying vec2 v_rgbSW;\nvarying vec2 v_rgbSE;\nvarying vec2 v_rgbM;\n\nvarying vec2 vTextureCoord;\nuniform sampler2D uSampler;\nuniform vec4 filterArea;\n\n/**\n Basic FXAA implementation based on the code on geeks3d.com with the\n modification that the texture2DLod stuff was removed since it\'s\n unsupported by WebGL.\n \n --\n \n From:\n https://github.com/mitsuhiko/webgl-meincraft\n \n Copyright (c) 2011 by Armin Ronacher.\n \n Some rights reserved.\n \n Redistribution and use in source and binary forms, with or without\n modification, are permitted provided that the following conditions are\n met:\n \n * Redistributions of source code must retain the above copyright\n notice, this list of conditions and the following disclaimer.\n \n * Redistributions in binary form must reproduce the above\n copyright notice, this list of conditions and the following\n disclaimer in the documentation and/or other materials provided\n with the distribution.\n \n * The names of the contributors may not be used to endorse or\n promote products derived from this software without specific\n prior written permission.\n \n THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\n A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\n OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n */\n\n#ifndef FXAA_REDUCE_MIN\n#define FXAA_REDUCE_MIN (1.0/ 128.0)\n#endif\n#ifndef FXAA_REDUCE_MUL\n#define FXAA_REDUCE_MUL (1.0 / 8.0)\n#endif\n#ifndef FXAA_SPAN_MAX\n#define FXAA_SPAN_MAX 8.0\n#endif\n\n//optimized version for mobile, where dependent\n//texture reads can be a bottleneck\nvec4 fxaa(sampler2D tex, vec2 fragCoord, vec2 resolution,\n vec2 v_rgbNW, vec2 v_rgbNE,\n vec2 v_rgbSW, vec2 v_rgbSE,\n vec2 v_rgbM) {\n vec4 color;\n mediump vec2 inverseVP = vec2(1.0 / resolution.x, 1.0 / resolution.y);\n vec3 rgbNW = texture2D(tex, v_rgbNW).xyz;\n vec3 rgbNE = texture2D(tex, v_rgbNE).xyz;\n vec3 rgbSW = texture2D(tex, v_rgbSW).xyz;\n vec3 rgbSE = texture2D(tex, v_rgbSE).xyz;\n vec4 texColor = texture2D(tex, v_rgbM);\n vec3 rgbM = texColor.xyz;\n vec3 luma = vec3(0.299, 0.587, 0.114);\n float lumaNW = dot(rgbNW, luma);\n float lumaNE = dot(rgbNE, luma);\n float lumaSW = dot(rgbSW, luma);\n float lumaSE = dot(rgbSE, luma);\n float lumaM = dot(rgbM, luma);\n float lumaMin = min(lumaM, min(min(lumaNW, lumaNE), min(lumaSW, lumaSE)));\n float lumaMax = max(lumaM, max(max(lumaNW, lumaNE), max(lumaSW, lumaSE)));\n \n mediump vec2 dir;\n dir.x = -((lumaNW + lumaNE) - (lumaSW + lumaSE));\n dir.y = ((lumaNW + lumaSW) - (lumaNE + lumaSE));\n \n float dirReduce = max((lumaNW + lumaNE + lumaSW + lumaSE) *\n (0.25 * FXAA_REDUCE_MUL), FXAA_REDUCE_MIN);\n \n float rcpDirMin = 1.0 / (min(abs(dir.x), abs(dir.y)) + dirReduce);\n dir = min(vec2(FXAA_SPAN_MAX, FXAA_SPAN_MAX),\n max(vec2(-FXAA_SPAN_MAX, -FXAA_SPAN_MAX),\n dir * rcpDirMin)) * inverseVP;\n \n vec3 rgbA = 0.5 * (\n texture2D(tex, fragCoord * inverseVP + dir * (1.0 / 3.0 - 0.5)).xyz +\n texture2D(tex, fragCoord * inverseVP + dir * (2.0 / 3.0 - 0.5)).xyz);\n vec3 rgbB = rgbA * 0.5 + 0.25 * (\n texture2D(tex, fragCoord * inverseVP + dir * -0.5).xyz +\n texture2D(tex, fragCoord * inverseVP + dir * 0.5).xyz);\n \n float lumaB = dot(rgbB, luma);\n if ((lumaB < lumaMin) || (lumaB > lumaMax))\n color = vec4(rgbA, texColor.a);\n else\n color = vec4(rgbB, texColor.a);\n return color;\n}\n\nvoid main() {\n\n vec2 fragCoord = vTextureCoord * filterArea.xy;\n\n vec4 color;\n\n color = fxaa(uSampler, fragCoord, filterArea.xy, v_rgbNW, v_rgbNE, v_rgbSW, v_rgbSE, v_rgbM);\n\n gl_FragColor = color;\n}\n'))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":r(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(o.Filter);t.default=i},function(e,t,n){"use strict";t.__esModule=!0;var r=n(213);Object.defineProperty(t,"FXAAFilter",{enumerable:!0,get:function(){return d(r).default}});var o=n(212);Object.defineProperty(t,"NoiseFilter",{enumerable:!0,get:function(){return d(o).default}});var i=n(211);Object.defineProperty(t,"DisplacementFilter",{enumerable:!0,get:function(){return d(i).default}});var a=n(210);Object.defineProperty(t,"BlurFilter",{enumerable:!0,get:function(){return d(a).default}});var s=n(99);Object.defineProperty(t,"BlurXFilter",{enumerable:!0,get:function(){return d(s).default}});var u=n(95);Object.defineProperty(t,"BlurYFilter",{enumerable:!0,get:function(){return d(u).default}});var l=n(209);Object.defineProperty(t,"ColorMatrixFilter",{enumerable:!0,get:function(){return d(l).default}});var c=n(208);function d(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"AlphaFilter",{enumerable:!0,get:function(){return d(c).default}})},function(e,t,n){"use strict";var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(4));r.DisplayObject.prototype.getGlobalPosition=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new r.Point,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.parent?this.parent.toGlobal(this.position,e,t):(e.x=this.position.x,e.y=this.position.y),e}},function(e,t,n){"use strict";var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(4));r.DisplayObject.prototype.name=null,r.Container.prototype.getChildByName=function(e){for(var t=0;t<this.children.length;t++)if(this.children[t].name===e)return this.children[t];return null}},function(e,t,n){"use strict";var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(4)),o=s(n(16)),i=s(n(23)),a=n(5);function s(e){return e&&e.__esModule?e:{default:e}}var u=r.DisplayObject,l=new r.Matrix;u.prototype._cacheAsBitmap=!1,u.prototype._cacheData=!1;var c=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.textureCacheId=null,this.originalRenderWebGL=null,this.originalRenderCanvas=null,this.originalCalculateBounds=null,this.originalGetLocalBounds=null,this.originalUpdateTransform=null,this.originalHitTest=null,this.originalDestroy=null,this.originalMask=null,this.originalFilterArea=null,this.sprite=null};Object.defineProperties(u.prototype,{cacheAsBitmap:{get:function(){return this._cacheAsBitmap},set:function(e){if(this._cacheAsBitmap!==e){this._cacheAsBitmap=e;var t=void 0;e?(this._cacheData||(this._cacheData=new c),(t=this._cacheData).originalRenderWebGL=this.renderWebGL,t.originalRenderCanvas=this.renderCanvas,t.originalUpdateTransform=this.updateTransform,t.originalCalculateBounds=this._calculateBounds,t.originalGetLocalBounds=this.getLocalBounds,t.originalDestroy=this.destroy,t.originalContainsPoint=this.containsPoint,t.originalMask=this._mask,t.originalFilterArea=this.filterArea,this.renderWebGL=this._renderCachedWebGL,this.renderCanvas=this._renderCachedCanvas,this.destroy=this._cacheAsBitmapDestroy):((t=this._cacheData).sprite&&this._destroyCachedDisplayObject(),this.renderWebGL=t.originalRenderWebGL,this.renderCanvas=t.originalRenderCanvas,this._calculateBounds=t.originalCalculateBounds,this.getLocalBounds=t.originalGetLocalBounds,this.destroy=t.originalDestroy,this.updateTransform=t.originalUpdateTransform,this.containsPoint=t.originalContainsPoint,this._mask=t.originalMask,this.filterArea=t.originalFilterArea)}}}}),u.prototype._renderCachedWebGL=function(e){!this.visible||this.worldAlpha<=0||!this.renderable||(this._initCachedDisplayObject(e),this._cacheData.sprite._transformID=-1,this._cacheData.sprite.worldAlpha=this.worldAlpha,this._cacheData.sprite._renderWebGL(e))},u.prototype._initCachedDisplayObject=function(e){if(!this._cacheData||!this._cacheData.sprite){var t=this.alpha;this.alpha=1,e.currentRenderer.flush();var n=this.getLocalBounds().clone();if(this._filters){var s=this._filters[0].padding;n.pad(s)}var u=e._activeRenderTarget,c=e.filterManager.filterStack,d=r.RenderTexture.create(0|n.width,0|n.height),f="cacheAsBitmap_"+(0,a.uid)();this._cacheData.textureCacheId=f,i.default.addToCache(d.baseTexture,f),o.default.addToCache(d,f);var h=l;h.tx=-n.x,h.ty=-n.y,this.transform.worldTransform.identity(),this.renderWebGL=this._cacheData.originalRenderWebGL,e.render(this,d,!0,h,!0),e.bindRenderTarget(u),e.filterManager.filterStack=c,this.renderWebGL=this._renderCachedWebGL,this.updateTransform=this.displayObjectUpdateTransform,this._mask=null,this.filterArea=null;var p=new r.Sprite(d);p.transform.worldTransform=this.transform.worldTransform,p.anchor.x=-n.x/n.width,p.anchor.y=-n.y/n.height,p.alpha=t,p._bounds=this._bounds,this._calculateBounds=this._calculateCachedBounds,this.getLocalBounds=this._getCachedLocalBounds,this._cacheData.sprite=p,this.transform._parentID=-1,this.parent?this.updateTransform():(this.parent=e._tempDisplayObjectParent,this.updateTransform(),this.parent=null),this.containsPoint=p.containsPoint.bind(p)}},u.prototype._renderCachedCanvas=function(e){!this.visible||this.worldAlpha<=0||!this.renderable||(this._initCachedDisplayObjectCanvas(e),this._cacheData.sprite.worldAlpha=this.worldAlpha,this._cacheData.sprite.renderCanvas(e))},u.prototype._initCachedDisplayObjectCanvas=function(e){if(!this._cacheData||!this._cacheData.sprite){var t=this.getLocalBounds(),n=this.alpha;this.alpha=1;var s=e.context,u=r.RenderTexture.create(0|t.width,0|t.height),c="cacheAsBitmap_"+(0,a.uid)();this._cacheData.textureCacheId=c,i.default.addToCache(u.baseTexture,c),o.default.addToCache(u,c);var d=l;this.transform.localTransform.copy(d),d.invert(),d.tx-=t.x,d.ty-=t.y,this.renderCanvas=this._cacheData.originalRenderCanvas,e.render(this,u,!0,d,!1),e.context=s,this.renderCanvas=this._renderCachedCanvas,this._calculateBounds=this._calculateCachedBounds,this._mask=null,this.filterArea=null;var f=new r.Sprite(u);f.transform.worldTransform=this.transform.worldTransform,f.anchor.x=-t.x/t.width,f.anchor.y=-t.y/t.height,f._bounds=this._bounds,f.alpha=n,this.parent?this.updateTransform():(this.parent=e._tempDisplayObjectParent,this.updateTransform(),this.parent=null),this.updateTransform=this.displayObjectUpdateTransform,this._cacheData.sprite=f,this.containsPoint=f.containsPoint.bind(f)}},u.prototype._calculateCachedBounds=function(){this._cacheData.sprite._calculateBounds()},u.prototype._getCachedLocalBounds=function(){return this._cacheData.sprite.getLocalBounds()},u.prototype._destroyCachedDisplayObject=function(){this._cacheData.sprite._texture.destroy(!0),this._cacheData.sprite=null,i.default.removeFromCache(this._cacheData.textureCacheId),o.default.removeFromCache(this._cacheData.textureCacheId),this._cacheData.textureCacheId=null},u.prototype._cacheAsBitmapDestroy=function(e){this.cacheAsBitmap=!1,this.destroy(e)}},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.__esModule=!0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(4)),a=l(n(133)),s=n(5),u=l(n(7));function l(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(n){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":r(t))&&"function"!=typeof t?e:t}(this,e.call(this));return i._textWidth=0,i._textHeight=0,i._glyphs=[],i._font={tint:void 0!==o.tint?o.tint:16777215,align:o.align||"left",name:null,size:0},i.font=o.font,i._text=n,i._maxWidth=0,i._maxLineHeight=0,i._anchor=new a.default(function(){i.dirty=!0},i,0,0),i.dirty=!1,i.updateText(),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":r(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.updateText=function(){for(var e=t.fonts[this._font.name],n=this._font.size/e.size,r=new i.Point,o=[],a=[],s=null,u=0,l=0,c=0,d=-1,f=0,h=0,p=0,y=0;y<this.text.length;y++){var v=this.text.charCodeAt(y);if(/(\s)/.test(this.text.charAt(y))&&(d=y,f=u),/(?:\r\n|\r|\n)/.test(this.text.charAt(y)))a.push(u),l=Math.max(l,u),c++,r.x=0,r.y+=e.lineHeight,s=null;else if(-1!==d&&this._maxWidth>0&&r.x*n>this._maxWidth)i.utils.removeItems(o,d-h,y-d),y=d,d=-1,++h,a.push(f),l=Math.max(l,f),c++,r.x=0,r.y+=e.lineHeight,s=null;else{var m=e.chars[v];m&&(s&&m.kerning[s]&&(r.x+=m.kerning[s]),o.push({texture:m.texture,line:c,charCode:v,position:new i.Point(r.x+m.xOffset,r.y+m.yOffset)}),u=r.x+(m.texture.width+m.xOffset),r.x+=m.xAdvance,p=Math.max(p,m.yOffset+m.texture.height),s=v)}}a.push(u),l=Math.max(l,u);for(var g=[],b=0;b<=c;b++){var _=0;"right"===this._font.align?_=l-a[b]:"center"===this._font.align&&(_=(l-a[b])/2),g.push(_)}for(var x=o.length,w=this.tint,E=0;E<x;E++){var S=this._glyphs[E];S?S.texture=o[E].texture:(S=new i.Sprite(o[E].texture),this._glyphs.push(S)),S.position.x=(o[E].position.x+g[o[E].line])*n,S.position.y=o[E].position.y*n,S.scale.x=S.scale.y=n,S.tint=w,S.parent||this.addChild(S)}for(var T=x;T<this._glyphs.length;++T)this.removeChild(this._glyphs[T]);if(this._textWidth=l*n,this._textHeight=(r.y+e.lineHeight)*n,0!==this.anchor.x||0!==this.anchor.y)for(var O=0;O<x;O++)this._glyphs[O].x-=this._textWidth*this.anchor.x,this._glyphs[O].y-=this._textHeight*this.anchor.y;this._maxLineHeight=p*n},t.prototype.updateTransform=function(){this.validate(),this.containerUpdateTransform()},t.prototype.getLocalBounds=function(){return this.validate(),e.prototype.getLocalBounds.call(this)},t.prototype.validate=function(){this.dirty&&(this.updateText(),this.dirty=!1)},t.registerFont=function(e,n){var r={},o=e.getElementsByTagName("info")[0],a=e.getElementsByTagName("common")[0],l=e.getElementsByTagName("page")[0].getAttribute("file"),c=(0,s.getResolutionOfUrl)(l,u.default.RESOLUTION);r.font=o.getAttribute("face"),r.size=parseInt(o.getAttribute("size"),10),r.lineHeight=parseInt(a.getAttribute("lineHeight"),10)/c,r.chars={};for(var d=e.getElementsByTagName("char"),f=0;f<d.length;f++){var h=d[f],p=parseInt(h.getAttribute("id"),10),y=new i.Rectangle(parseInt(h.getAttribute("x"),10)/c+n.frame.x/c,parseInt(h.getAttribute("y"),10)/c+n.frame.y/c,parseInt(h.getAttribute("width"),10)/c,parseInt(h.getAttribute("height"),10)/c);r.chars[p]={xOffset:parseInt(h.getAttribute("xoffset"),10)/c,yOffset:parseInt(h.getAttribute("yoffset"),10)/c,xAdvance:parseInt(h.getAttribute("xadvance"),10)/c,kerning:{},texture:new i.Texture(n.baseTexture,y)}}for(var v=e.getElementsByTagName("kerning"),m=0;m<v.length;m++){var g=v[m],b=parseInt(g.getAttribute("first"),10)/c,_=parseInt(g.getAttribute("second"),10)/c,x=parseInt(g.getAttribute("amount"),10)/c;r.chars[_]&&(r.chars[_].kerning[b]=x)}return t.fonts[r.font]=r,r},o(t,[{key:"tint",get:function(){return this._font.tint},set:function(e){this._font.tint="number"==typeof e&&e>=0?e:16777215,this.dirty=!0}},{key:"align",get:function(){return this._font.align},set:function(e){this._font.align=e||"left",this.dirty=!0}},{key:"anchor",get:function(){return this._anchor},set:function(e){"number"==typeof e?this._anchor.set(e):this._anchor.copy(e)}},{key:"font",get:function(){return this._font},set:function(e){e&&("string"==typeof e?(e=e.split(" "),this._font.name=1===e.length?e[0]:e.slice(1).join(" "),this._font.size=e.length>=2?parseInt(e[0],10):t.fonts[this._font.name].size):(this._font.name=e.name,this._font.size="number"==typeof e.size?e.size:parseInt(e.size,10)),this.dirty=!0)}},{key:"text",get:function(){return this._text},set:function(e){e=e.toString()||" ",this._text!==e&&(this._text=e,this.dirty=!0)}},{key:"maxWidth",get:function(){return this._maxWidth},set:function(e){this._maxWidth!==e&&(this._maxWidth=e,this.dirty=!0)}},{key:"maxLineHeight",get:function(){return this.validate(),this._maxLineHeight}},{key:"textWidth",get:function(){return this.validate(),this._textWidth}},{key:"textHeight",get:function(){return this.validate(),this._textHeight}}]),t}(i.Container);t.default=c,c.fonts={}},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.__esModule=!0;var o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(4)),i=n(3);n(14);var a=new o.Matrix,s=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":r(t))&&"function"!=typeof t?e:t}(this,e.call(this,n));return o.shader=null,o.simpleShader=null,o.quad=null,o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":r(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.onContextChange=function(){var e=this.renderer.gl;this.shader=new o.Shader(e,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\nuniform mat3 translationMatrix;\nuniform mat3 uTransform;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n\n vTextureCoord = (uTransform * vec3(aTextureCoord, 1.0)).xy;\n}\n","varying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\nuniform vec4 uColor;\nuniform mat3 uMapCoord;\nuniform vec4 uClampFrame;\nuniform vec2 uClampOffset;\n\nvoid main(void)\n{\n vec2 coord = mod(vTextureCoord - uClampOffset, vec2(1.0, 1.0)) + uClampOffset;\n coord = (uMapCoord * vec3(coord, 1.0)).xy;\n coord = clamp(coord, uClampFrame.xy, uClampFrame.zw);\n\n vec4 sample = texture2D(uSampler, coord);\n gl_FragColor = sample * uColor;\n}\n"),this.simpleShader=new o.Shader(e,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\nuniform mat3 translationMatrix;\nuniform mat3 uTransform;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n\n vTextureCoord = (uTransform * vec3(aTextureCoord, 1.0)).xy;\n}\n","varying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\nuniform vec4 uColor;\n\nvoid main(void)\n{\n vec4 sample = texture2D(uSampler, vTextureCoord);\n gl_FragColor = sample * uColor;\n}\n"),this.renderer.bindVao(null),this.quad=new o.Quad(e,this.renderer.state.attribState),this.quad.initVao(this.shader)},t.prototype.render=function(e){var t=this.renderer,n=this.quad;t.bindVao(n.vao);var r=n.vertices;r[0]=r[6]=e._width*-e.anchor.x,r[1]=r[3]=e._height*-e.anchor.y,r[2]=r[4]=e._width*(1-e.anchor.x),r[5]=r[7]=e._height*(1-e.anchor.y),e.uvRespectAnchor&&((r=n.uvs)[0]=r[6]=-e.anchor.x,r[1]=r[3]=-e.anchor.y,r[2]=r[4]=1-e.anchor.x,r[5]=r[7]=1-e.anchor.y),n.upload();var s=e._texture,u=s.baseTexture,l=e.tileTransform.localTransform,c=e.uvTransform,d=u.isPowerOfTwo&&s.frame.width===u.width&&s.frame.height===u.height;d&&(u._glTextures[t.CONTEXT_UID]?d=u.wrapMode!==i.WRAP_MODES.CLAMP:u.wrapMode===i.WRAP_MODES.CLAMP&&(u.wrapMode=i.WRAP_MODES.REPEAT));var f=d?this.simpleShader:this.shader;t.bindShader(f);var h=s.width,p=s.height,y=e._width,v=e._height;a.set(l.a*h/y,l.b*h/v,l.c*p/y,l.d*p/v,l.tx/y,l.ty/v),a.invert(),d?a.prepend(c.mapCoord):(f.uniforms.uMapCoord=c.mapCoord.toArray(!0),f.uniforms.uClampFrame=c.uClampFrame,f.uniforms.uClampOffset=c.uClampOffset),f.uniforms.uTransform=a.toArray(!0),f.uniforms.uColor=o.utils.premultiplyTintToRgba(e.tint,e.worldAlpha,f.uniforms.uColor,u.premultipliedAlpha),f.uniforms.translationMatrix=e.transform.worldTransform.toArray(!0),f.uniforms.uSampler=t.bindTexture(s),t.setBlendMode(o.utils.correctBlendMode(e.blendMode,u.premultipliedAlpha)),n.vao.draw(this.renderer.gl.TRIANGLES,6,0)},t}(o.ObjectRenderer);t.default=s,o.WebGLRenderer.registerPlugin("tilingSprite",s)},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.__esModule=!0;var o,i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(4)),s=n(52),u=(o=s)&&o.__esModule?o:{default:o};var l=new a.Point,c=function(e){function t(n){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:100;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var s=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":r(t))&&"function"!=typeof t?e:t}(this,e.call(this,n));return s.tileTransform=new a.TransformStatic,s._width=o,s._height=i,s._canvasPattern=null,s.uvTransform=n.transform||new a.TextureMatrix(n),s.pluginName="tilingSprite",s.uvRespectAnchor=!1,s}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":r(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype._onTextureUpdate=function(){this.uvTransform&&(this.uvTransform.texture=this._texture),this.cachedTint=16777215},t.prototype._renderWebGL=function(e){var t=this._texture;t&&t.valid&&(this.tileTransform.updateLocalTransform(),this.uvTransform.update(),e.setObjectRenderer(e.plugins[this.pluginName]),e.plugins[this.pluginName].render(this))},t.prototype._renderCanvas=function(e){var t=this._texture;if(t.baseTexture.hasLoaded){var n=e.context,r=this.worldTransform,o=e.resolution,i=t.baseTexture,s=i.resolution,l=this.tilePosition.x/this.tileScale.x%t._frame.width*s,c=this.tilePosition.y/this.tileScale.y%t._frame.height*s;if(this._textureID!==this._texture._updateID||this.cachedTint!==this.tint){this._textureID=this._texture._updateID;var d=new a.CanvasRenderTarget(t._frame.width,t._frame.height,s);16777215!==this.tint?(this.tintedTexture=u.default.getTintedTexture(this,this.tint),d.context.drawImage(this.tintedTexture,0,0)):d.context.drawImage(i.source,-t._frame.x*s,-t._frame.y*s),this.cachedTint=this.tint,this._canvasPattern=d.context.createPattern(d.canvas,"repeat")}n.globalAlpha=this.worldAlpha,n.setTransform(r.a*o,r.b*o,r.c*o,r.d*o,r.tx*o,r.ty*o),e.setBlendMode(this.blendMode),n.fillStyle=this._canvasPattern,n.scale(this.tileScale.x/s,this.tileScale.y/s);var f=this.anchor.x*-this._width,h=this.anchor.y*-this._height;this.uvRespectAnchor?(n.translate(l,c),n.fillRect(-l+f,-c+h,this._width/this.tileScale.x*s,this._height/this.tileScale.y*s)):(n.translate(l+f,c+h),n.fillRect(-l,-c,this._width/this.tileScale.x*s,this._height/this.tileScale.y*s))}},t.prototype._calculateBounds=function(){var e=this._width*-this._anchor._x,t=this._height*-this._anchor._y,n=this._width*(1-this._anchor._x),r=this._height*(1-this._anchor._y);this._bounds.addFrame(this.transform,e,t,n,r)},t.prototype.getLocalBounds=function(t){return 0===this.children.length?(this._bounds.minX=this._width*-this._anchor._x,this._bounds.minY=this._height*-this._anchor._y,this._bounds.maxX=this._width*(1-this._anchor._x),this._bounds.maxY=this._height*(1-this._anchor._x),t||(this._localBoundsRect||(this._localBoundsRect=new a.Rectangle),t=this._localBoundsRect),this._bounds.getRectangle(t)):e.prototype.getLocalBounds.call(this,t)},t.prototype.containsPoint=function(e){this.worldTransform.applyInverse(e,l);var t=this._width,n=this._height,r=-t*this.anchor._x;if(l.x>=r&&l.x<r+t){var o=-n*this.anchor._y;if(l.y>=o&&l.y<o+n)return!0}return!1},t.prototype.destroy=function(t){e.prototype.destroy.call(this,t),this.tileTransform=null,this.uvTransform=null},t.from=function(e,n,r){return new t(a.Texture.from(e),n,r)},t.fromFrame=function(e,n,r){var o=a.utils.TextureCache[e];if(!o)throw new Error('The frameId "'+e+'" does not exist in the texture cache '+this);return new t(o,n,r)},t.fromImage=function(e,n,r,o,i){return new t(a.Texture.fromImage(e,o,i),n,r)},i(t,[{key:"clampMargin",get:function(){return this.uvTransform.clampMargin},set:function(e){this.uvTransform.clampMargin=e,this.uvTransform.update(!0)}},{key:"tileScale",get:function(){return this.tileTransform.scale},set:function(e){this.tileTransform.scale.copy(e)}},{key:"tilePosition",get:function(){return this.tileTransform.position},set:function(e){this.tileTransform.position.copy(e)}},{key:"width",get:function(){return this._width},set:function(e){this._width=e}},{key:"height",get:function(){return this._height},set:function(e){this._height=e}}]),t}(a.Sprite);t.default=c},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.__esModule=!0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(4));var a=function(e){function t(n,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":r(t))&&"function"!=typeof t?e:t}(this,e.call(this,n[0]instanceof i.Texture?n[0]:n[0].texture));return a._textures=null,a._durations=null,a.textures=n,a._autoUpdate=!1!==o,a.animationSpeed=1,a.loop=!0,a.onComplete=null,a.onFrameChange=null,a.onLoop=null,a._currentTime=0,a.playing=!1,a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":r(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.stop=function(){this.playing&&(this.playing=!1,this._autoUpdate&&i.ticker.shared.remove(this.update,this))},t.prototype.play=function(){this.playing||(this.playing=!0,this._autoUpdate&&i.ticker.shared.add(this.update,this,i.UPDATE_PRIORITY.HIGH))},t.prototype.gotoAndStop=function(e){this.stop();var t=this.currentFrame;this._currentTime=e,t!==this.currentFrame&&this.updateTexture()},t.prototype.gotoAndPlay=function(e){var t=this.currentFrame;this._currentTime=e,t!==this.currentFrame&&this.updateTexture(),this.play()},t.prototype.update=function(e){var t=this.animationSpeed*e,n=this.currentFrame;if(null!==this._durations){var r=this._currentTime%1*this._durations[this.currentFrame];for(r+=t/60*1e3;r<0;)this._currentTime--,r+=this._durations[this.currentFrame];var o=Math.sign(this.animationSpeed*e);for(this._currentTime=Math.floor(this._currentTime);r>=this._durations[this.currentFrame];)r-=this._durations[this.currentFrame]*o,this._currentTime+=o;this._currentTime+=r/this._durations[this.currentFrame]}else this._currentTime+=t;this._currentTime<0&&!this.loop?(this.gotoAndStop(0),this.onComplete&&this.onComplete()):this._currentTime>=this._textures.length&&!this.loop?(this.gotoAndStop(this._textures.length-1),this.onComplete&&this.onComplete()):n!==this.currentFrame&&(this.loop&&this.onLoop&&(this.animationSpeed>0&&this.currentFrame<n?this.onLoop():this.animationSpeed<0&&this.currentFrame>n&&this.onLoop()),this.updateTexture())},t.prototype.updateTexture=function(){this._texture=this._textures[this.currentFrame],this._textureID=-1,this.cachedTint=16777215,this.onFrameChange&&this.onFrameChange(this.currentFrame)},t.prototype.destroy=function(t){this.stop(),e.prototype.destroy.call(this,t)},t.fromFrames=function(e){for(var n=[],r=0;r<e.length;++r)n.push(i.Texture.fromFrame(e[r]));return new t(n)},t.fromImages=function(e){for(var n=[],r=0;r<e.length;++r)n.push(i.Texture.fromImage(e[r]));return new t(n)},o(t,[{key:"totalFrames",get:function(){return this._textures.length}},{key:"textures",get:function(){return this._textures},set:function(e){if(e[0]instanceof i.Texture)this._textures=e,this._durations=null;else{this._textures=[],this._durations=[];for(var t=0;t<e.length;t++)this._textures.push(e[t].texture),this._durations.push(e[t].time)}this.gotoAndStop(0),this.updateTexture()}},{key:"currentFrame",get:function(){var e=Math.floor(this._currentTime)%this._textures.length;return e<0&&(e+=this._textures.length),e}}]),t}(i.Sprite);t.default=a},function(e,t,n){"use strict";t.__esModule=!0;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(4));var o=new r.Rectangle,i=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.renderer=t,t.extract=this}return e.prototype.image=function(e){var t=new Image;return t.src=this.base64(e),t},e.prototype.base64=function(e){return this.canvas(e).toDataURL()},e.prototype.canvas=function(e){var t=this.renderer,n=void 0,i=void 0,a=void 0,s=void 0;e&&(s=e instanceof r.RenderTexture?e:t.generateTexture(e)),s?(n=s.baseTexture._canvasRenderTarget.context,i=s.baseTexture._canvasRenderTarget.resolution,a=s.frame):(n=t.rootContext,(a=o).width=this.renderer.width,a.height=this.renderer.height);var u=a.width*i,l=a.height*i,c=new r.CanvasRenderTarget(u,l),d=n.getImageData(a.x*i,a.y*i,u,l);return c.context.putImageData(d,0,0),c.canvas},e.prototype.pixels=function(e){var t=this.renderer,n=void 0,i=void 0,a=void 0,s=void 0;return e&&(s=e instanceof r.RenderTexture?e:t.generateTexture(e)),s?(n=s.baseTexture._canvasRenderTarget.context,i=s.baseTexture._canvasRenderTarget.resolution,a=s.frame):(n=t.rootContext,(a=o).width=t.width,a.height=t.height),n.getImageData(0,0,a.width*i,a.height*i).data},e.prototype.destroy=function(){this.renderer.extract=null,this.renderer=null},e}();t.default=i,r.CanvasRenderer.registerPlugin("extract",i)},function(e,t,n){"use strict";t.__esModule=!0;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(4));var o=new r.Rectangle,i=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.renderer=t,t.extract=this}return e.prototype.image=function(e){var t=new Image;return t.src=this.base64(e),t},e.prototype.base64=function(e){return this.canvas(e).toDataURL()},e.prototype.canvas=function(e){var t=this.renderer,n=void 0,i=void 0,a=void 0,s=!1,u=void 0,l=!1;e&&(e instanceof r.RenderTexture?u=e:(u=this.renderer.generateTexture(e),l=!0)),u?(i=(n=u.baseTexture._glRenderTargets[this.renderer.CONTEXT_UID]).resolution,a=u.frame,s=!1):(i=(n=this.renderer.rootRenderTarget).resolution,s=!0,(a=o).width=n.size.width,a.height=n.size.height);var c=a.width*i,d=a.height*i,f=new r.CanvasRenderTarget(c,d);if(n){t.bindRenderTarget(n);var h=new Uint8Array(4*c*d),p=t.gl;p.readPixels(a.x*i,a.y*i,c,d,p.RGBA,p.UNSIGNED_BYTE,h);var y=f.context.getImageData(0,0,c,d);y.data.set(h),f.context.putImageData(y,0,0),s&&(f.context.scale(1,-1),f.context.drawImage(f.canvas,0,-d))}return l&&u.destroy(!0),f.canvas},e.prototype.pixels=function(e){var t=this.renderer,n=void 0,i=void 0,a=void 0,s=void 0,u=!1;e&&(e instanceof r.RenderTexture?s=e:(s=this.renderer.generateTexture(e),u=!0)),s?(i=(n=s.baseTexture._glRenderTargets[this.renderer.CONTEXT_UID]).resolution,a=s.frame):(i=(n=this.renderer.rootRenderTarget).resolution,(a=o).width=n.size.width,a.height=n.size.height);var l=a.width*i,c=a.height*i,d=new Uint8Array(4*l*c);if(n){t.bindRenderTarget(n);var f=t.gl;f.readPixels(a.x*i,a.y*i,l,c,f.RGBA,f.UNSIGNED_BYTE,d)}return u&&s.destroy(!0),d},e.prototype.destroy=function(){this.renderer.extract=null,this.renderer=null},e}();t.default=i,r.WebGLRenderer.registerPlugin("extract",i)},function(e,t,n){"use strict";t.__esModule=!0;var r=n(223);Object.defineProperty(t,"webgl",{enumerable:!0,get:function(){return i(r).default}});var o=n(222);function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"canvas",{enumerable:!0,get:function(){return i(o).default}})},function(e,t,n){"use strict";t.__esModule=!0;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(4)),o=a(n(59)),i=a(n(101));function a(e){return e&&e.__esModule?e:{default:e}}r.utils.mixins.delayMixin(r.DisplayObject.prototype,i.default);var s=100,u=0,l=0,c=2,d=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!o.default.tablet&&!o.default.phone||navigator.isCocoonJS||this.createTouchHook();var n=document.createElement("div");n.style.width=s+"px",n.style.height=s+"px",n.style.position="absolute",n.style.top=u+"px",n.style.left=l+"px",n.style.zIndex=c,this.div=n,this.pool=[],this.renderId=0,this.debug=!1,this.renderer=t,this.children=[],this._onKeyDown=this._onKeyDown.bind(this),this._onMouseMove=this._onMouseMove.bind(this),this.isActive=!1,this.isMobileAccessabillity=!1,window.addEventListener("keydown",this._onKeyDown,!1)}return e.prototype.createTouchHook=function(){var e=this,t=document.createElement("button");t.style.width="1px",t.style.height="1px",t.style.position="absolute",t.style.top="-1000px",t.style.left="-1000px",t.style.zIndex=2,t.style.backgroundColor="#FF0000",t.title="HOOK DIV",t.addEventListener("focus",function(){e.isMobileAccessabillity=!0,e.activate(),document.body.removeChild(t)}),document.body.appendChild(t)},e.prototype.activate=function(){this.isActive||(this.isActive=!0,window.document.addEventListener("mousemove",this._onMouseMove,!0),window.removeEventListener("keydown",this._onKeyDown,!1),this.renderer.on("postrender",this.update,this),this.renderer.view.parentNode&&this.renderer.view.parentNode.appendChild(this.div))},e.prototype.deactivate=function(){this.isActive&&!this.isMobileAccessabillity&&(this.isActive=!1,window.document.removeEventListener("mousemove",this._onMouseMove),window.addEventListener("keydown",this._onKeyDown,!1),this.renderer.off("postrender",this.update),this.div.parentNode&&this.div.parentNode.removeChild(this.div))},e.prototype.updateAccessibleObjects=function(e){if(e.visible){e.accessible&&e.interactive&&(e._accessibleActive||this.addChild(e),e.renderId=this.renderId);for(var t=e.children,n=t.length-1;n>=0;n--)this.updateAccessibleObjects(t[n])}},e.prototype.update=function(){if(this.renderer.renderingToScreen){this.updateAccessibleObjects(this.renderer._lastObjectRendered);var e=this.renderer.view.getBoundingClientRect(),t=e.width/this.renderer.width,n=e.height/this.renderer.height,o=this.div;o.style.left=e.left+"px",o.style.top=e.top+"px",o.style.width=this.renderer.width+"px",o.style.height=this.renderer.height+"px";for(var i=0;i<this.children.length;i++){var a=this.children[i];if(a.renderId!==this.renderId)a._accessibleActive=!1,r.utils.removeItems(this.children,i,1),this.div.removeChild(a._accessibleDiv),this.pool.push(a._accessibleDiv),a._accessibleDiv=null,i--,0===this.children.length&&this.deactivate();else{o=a._accessibleDiv;var s=a.hitArea,u=a.worldTransform;a.hitArea?(o.style.left=(u.tx+s.x*u.a)*t+"px",o.style.top=(u.ty+s.y*u.d)*n+"px",o.style.width=s.width*u.a*t+"px",o.style.height=s.height*u.d*n+"px"):(s=a.getBounds(),this.capHitArea(s),o.style.left=s.x*t+"px",o.style.top=s.y*n+"px",o.style.width=s.width*t+"px",o.style.height=s.height*n+"px")}}this.renderId++}},e.prototype.capHitArea=function(e){e.x<0&&(e.width+=e.x,e.x=0),e.y<0&&(e.height+=e.y,e.y=0),e.x+e.width>this.renderer.width&&(e.width=this.renderer.width-e.x),e.y+e.height>this.renderer.height&&(e.height=this.renderer.height-e.y)},e.prototype.addChild=function(e){var t=this.pool.pop();t||((t=document.createElement("button")).style.width=s+"px",t.style.height=s+"px",t.style.backgroundColor=this.debug?"rgba(255,0,0,0.5)":"transparent",t.style.position="absolute",t.style.zIndex=c,t.style.borderStyle="none",t.addEventListener("click",this._onClick.bind(this)),t.addEventListener("focus",this._onFocus.bind(this)),t.addEventListener("focusout",this._onFocusOut.bind(this))),e.accessibleTitle?t.title=e.accessibleTitle:e.accessibleTitle||e.accessibleHint||(t.title="displayObject "+this.tabIndex),e.accessibleHint&&t.setAttribute("aria-label",e.accessibleHint),e._accessibleActive=!0,e._accessibleDiv=t,t.displayObject=e,this.children.push(e),this.div.appendChild(e._accessibleDiv),e._accessibleDiv.tabIndex=e.tabIndex},e.prototype._onClick=function(e){var t=this.renderer.plugins.interaction;t.dispatchEvent(e.target.displayObject,"click",t.eventData)},e.prototype._onFocus=function(e){var t=this.renderer.plugins.interaction;t.dispatchEvent(e.target.displayObject,"mouseover",t.eventData)},e.prototype._onFocusOut=function(e){var t=this.renderer.plugins.interaction;t.dispatchEvent(e.target.displayObject,"mouseout",t.eventData)},e.prototype._onKeyDown=function(e){9===e.keyCode&&this.activate()},e.prototype._onMouseMove=function(){this.deactivate()},e.prototype.destroy=function(){this.div=null;for(var e=0;e<this.children.length;e++)this.children[e].div=null;window.document.removeEventListener("mousemove",this._onMouseMove),window.removeEventListener("keydown",this._onKeyDown),this.pool=null,this.children=null,this.renderer=null},e}();t.default=d,r.WebGLRenderer.registerPlugin("accessibility",d),r.CanvasRenderer.registerPlugin("accessibility",d)},function(e,t,n){"use strict";t.__esModule=!0;var r=n(101);Object.defineProperty(t,"accessibleTarget",{enumerable:!0,get:function(){return i(r).default}});var o=n(225);function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"AccessibilityManager",{enumerable:!0,get:function(){return i(o).default}})},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t=e.mesh,n=e.particles,r=e.extras,i=e.filters,a=e.prepare,s=e.loaders,u=e.interaction;Object.defineProperties(e,{SpriteBatch:{get:function(){throw new ReferenceError("SpriteBatch does not exist any more, please use the new ParticleContainer instead.")}},AssetLoader:{get:function(){throw new ReferenceError("The loader system was overhauled in PixiJS v3, please see the new PIXI.loaders.Loader class.")}},Stage:{get:function(){return o("You do not need to use a PIXI Stage any more, you can simply render any container."),e.Container}},DisplayObjectContainer:{get:function(){return o("DisplayObjectContainer has been shortened to Container, please use Container from now on."),e.Container}},Strip:{get:function(){return o("The Strip class has been renamed to Mesh and moved to mesh.Mesh, please use mesh.Mesh from now on."),t.Mesh}},Rope:{get:function(){return o("The Rope class has been moved to mesh.Rope, please use mesh.Rope from now on."),t.Rope}},ParticleContainer:{get:function(){return o("The ParticleContainer class has been moved to particles.ParticleContainer, please use particles.ParticleContainer from now on."),n.ParticleContainer}},MovieClip:{get:function(){return o("The MovieClip class has been moved to extras.AnimatedSprite, please use extras.AnimatedSprite."),r.AnimatedSprite}},TilingSprite:{get:function(){return o("The TilingSprite class has been moved to extras.TilingSprite, please use extras.TilingSprite from now on."),r.TilingSprite}},BitmapText:{get:function(){return o("The BitmapText class has been moved to extras.BitmapText, please use extras.BitmapText from now on."),r.BitmapText}},blendModes:{get:function(){return o("The blendModes has been moved to BLEND_MODES, please use BLEND_MODES from now on."),e.BLEND_MODES}},scaleModes:{get:function(){return o("The scaleModes has been moved to SCALE_MODES, please use SCALE_MODES from now on."),e.SCALE_MODES}},BaseTextureCache:{get:function(){return o("The BaseTextureCache class has been moved to utils.BaseTextureCache, please use utils.BaseTextureCache from now on."),e.utils.BaseTextureCache}},TextureCache:{get:function(){return o("The TextureCache class has been moved to utils.TextureCache, please use utils.TextureCache from now on."),e.utils.TextureCache}},math:{get:function(){return o("The math namespace is deprecated, please access members already accessible on PIXI."),e}},AbstractFilter:{get:function(){return o("AstractFilter has been renamed to Filter, please use PIXI.Filter"),e.Filter}},TransformManual:{get:function(){return o("TransformManual has been renamed to TransformBase, please update your pixi-spine"),e.TransformBase}},TARGET_FPMS:{get:function(){return o("PIXI.TARGET_FPMS has been deprecated, please use PIXI.settings.TARGET_FPMS"),e.settings.TARGET_FPMS},set:function(t){o("PIXI.TARGET_FPMS has been deprecated, please use PIXI.settings.TARGET_FPMS"),e.settings.TARGET_FPMS=t}},FILTER_RESOLUTION:{get:function(){return o("PIXI.FILTER_RESOLUTION has been deprecated, please use PIXI.settings.FILTER_RESOLUTION"),e.settings.FILTER_RESOLUTION},set:function(t){o("PIXI.FILTER_RESOLUTION has been deprecated, please use PIXI.settings.FILTER_RESOLUTION"),e.settings.FILTER_RESOLUTION=t}},RESOLUTION:{get:function(){return o("PIXI.RESOLUTION has been deprecated, please use PIXI.settings.RESOLUTION"),e.settings.RESOLUTION},set:function(t){o("PIXI.RESOLUTION has been deprecated, please use PIXI.settings.RESOLUTION"),e.settings.RESOLUTION=t}},MIPMAP_TEXTURES:{get:function(){return o("PIXI.MIPMAP_TEXTURES has been deprecated, please use PIXI.settings.MIPMAP_TEXTURES"),e.settings.MIPMAP_TEXTURES},set:function(t){o("PIXI.MIPMAP_TEXTURES has been deprecated, please use PIXI.settings.MIPMAP_TEXTURES"),e.settings.MIPMAP_TEXTURES=t}},SPRITE_BATCH_SIZE:{get:function(){return o("PIXI.SPRITE_BATCH_SIZE has been deprecated, please use PIXI.settings.SPRITE_BATCH_SIZE"),e.settings.SPRITE_BATCH_SIZE},set:function(t){o("PIXI.SPRITE_BATCH_SIZE has been deprecated, please use PIXI.settings.SPRITE_BATCH_SIZE"),e.settings.SPRITE_BATCH_SIZE=t}},SPRITE_MAX_TEXTURES:{get:function(){return o("PIXI.SPRITE_MAX_TEXTURES has been deprecated, please use PIXI.settings.SPRITE_MAX_TEXTURES"),e.settings.SPRITE_MAX_TEXTURES},set:function(t){o("PIXI.SPRITE_MAX_TEXTURES has been deprecated, please use PIXI.settings.SPRITE_MAX_TEXTURES"),e.settings.SPRITE_MAX_TEXTURES=t}},RETINA_PREFIX:{get:function(){return o("PIXI.RETINA_PREFIX has been deprecated, please use PIXI.settings.RETINA_PREFIX"),e.settings.RETINA_PREFIX},set:function(t){o("PIXI.RETINA_PREFIX has been deprecated, please use PIXI.settings.RETINA_PREFIX"),e.settings.RETINA_PREFIX=t}},DEFAULT_RENDER_OPTIONS:{get:function(){return o("PIXI.DEFAULT_RENDER_OPTIONS has been deprecated, please use PIXI.settings.DEFAULT_RENDER_OPTIONS"),e.settings.RENDER_OPTIONS}}});for(var l=[{parent:"TRANSFORM_MODE",target:"TRANSFORM_MODE"},{parent:"GC_MODES",target:"GC_MODE"},{parent:"WRAP_MODES",target:"WRAP_MODE"},{parent:"SCALE_MODES",target:"SCALE_MODE"},{parent:"PRECISION",target:"PRECISION_FRAGMENT"}],c=function(t){var n=l[t];Object.defineProperty(e[n.parent],"DEFAULT",{get:function(){return o("PIXI."+n.parent+".DEFAULT has been deprecated, please use PIXI.settings."+n.target),e.settings[n.target]},set:function(t){o("PIXI."+n.parent+".DEFAULT has been deprecated, please use PIXI.settings."+n.target),e.settings[n.target]=t}})},d=0;d<l.length;d++)c(d);Object.defineProperties(e.settings,{PRECISION:{get:function(){return o("PIXI.settings.PRECISION has been deprecated, please use PIXI.settings.PRECISION_FRAGMENT"),e.settings.PRECISION_FRAGMENT},set:function(t){o("PIXI.settings.PRECISION has been deprecated, please use PIXI.settings.PRECISION_FRAGMENT"),e.settings.PRECISION_FRAGMENT=t}}}),r.AnimatedSprite&&Object.defineProperties(r,{MovieClip:{get:function(){return o("The MovieClip class has been renamed to AnimatedSprite, please use AnimatedSprite from now on."),r.AnimatedSprite}}});r&&Object.defineProperties(r,{TextureTransform:{get:function(){return o("The TextureTransform class has been renamed to TextureMatrix, please use PIXI.TextureMatrix from now on."),e.TextureMatrix}}});e.DisplayObject.prototype.generateTexture=function(e,t,n){return o("generateTexture has moved to the renderer, please use renderer.generateTexture(displayObject)"),e.generateTexture(this,t,n)},e.Graphics.prototype.generateTexture=function(e,t){return o("graphics generate texture has moved to the renderer. Or to render a graphics to a texture using canvas please use generateCanvasTexture"),this.generateCanvasTexture(e,t)},e.GroupD8.isSwapWidthHeight=function(t){return o("GroupD8.isSwapWidthHeight was renamed to GroupD8.isVertical"),e.GroupD8.isVertical(t)},e.RenderTexture.prototype.render=function(e,t,n,r){this.legacyRenderer.render(e,this,n,t,!r),o("RenderTexture.render is now deprecated, please use renderer.render(displayObject, renderTexture)")},e.RenderTexture.prototype.getImage=function(e){return o("RenderTexture.getImage is now deprecated, please use renderer.extract.image(target)"),this.legacyRenderer.extract.image(e)},e.RenderTexture.prototype.getBase64=function(e){return o("RenderTexture.getBase64 is now deprecated, please use renderer.extract.base64(target)"),this.legacyRenderer.extract.base64(e)},e.RenderTexture.prototype.getCanvas=function(e){return o("RenderTexture.getCanvas is now deprecated, please use renderer.extract.canvas(target)"),this.legacyRenderer.extract.canvas(e)},e.RenderTexture.prototype.getPixels=function(e){return o("RenderTexture.getPixels is now deprecated, please use renderer.extract.pixels(target)"),this.legacyRenderer.pixels(e)},e.Sprite.prototype.setTexture=function(e){this.texture=e,o("setTexture is now deprecated, please use the texture property, e.g : sprite.texture = texture;")},r.BitmapText&&(r.BitmapText.prototype.setText=function(e){this.text=e,o("setText is now deprecated, please use the text property, e.g : myBitmapText.text = 'my text';")});e.Text.prototype.setText=function(e){this.text=e,o("setText is now deprecated, please use the text property, e.g : myText.text = 'my text';")},e.Text.calculateFontProperties=function(t){return o("Text.calculateFontProperties is now deprecated, please use the TextMetrics.measureFont"),e.TextMetrics.measureFont(t)},Object.defineProperties(e.Text,{fontPropertiesCache:{get:function(){return o("Text.fontPropertiesCache is deprecated"),e.TextMetrics._fonts}},fontPropertiesCanvas:{get:function(){return o("Text.fontPropertiesCanvas is deprecated"),e.TextMetrics._canvas}},fontPropertiesContext:{get:function(){return o("Text.fontPropertiesContext is deprecated"),e.TextMetrics._context}}}),e.Text.prototype.setStyle=function(e){this.style=e,o("setStyle is now deprecated, please use the style property, e.g : myText.style = style;")},e.Text.prototype.determineFontProperties=function(t){return o("determineFontProperties is now deprecated, please use TextMetrics.measureFont method"),e.TextMetrics.measureFont(t)},e.Text.getFontStyle=function(t){return o("getFontStyle is now deprecated, please use TextStyle.toFontString() instead"),(t=t||{})instanceof e.TextStyle||(t=new e.TextStyle(t)),t.toFontString()},Object.defineProperties(e.TextStyle.prototype,{font:{get:function(){o("text style property 'font' is now deprecated, please use the 'fontFamily', 'fontSize', 'fontStyle', 'fontVariant' and 'fontWeight' properties from now on");var e="number"==typeof this._fontSize?this._fontSize+"px":this._fontSize;return this._fontStyle+" "+this._fontVariant+" "+this._fontWeight+" "+e+" "+this._fontFamily},set:function(e){o("text style property 'font' is now deprecated, please use the 'fontFamily','fontSize',fontStyle','fontVariant' and 'fontWeight' properties from now on"),e.indexOf("italic")>1?this._fontStyle="italic":e.indexOf("oblique")>-1?this._fontStyle="oblique":this._fontStyle="normal",e.indexOf("small-caps")>-1?this._fontVariant="small-caps":this._fontVariant="normal";var t=e.split(" "),n=-1;this._fontSize=26;for(var r=0;r<t.length;++r)if(t[r].match(/(px|pt|em|%)/)){n=r,this._fontSize=t[r];break}this._fontWeight="normal";for(var i=0;i<n;++i)if(t[i].match(/(bold|bolder|lighter|100|200|300|400|500|600|700|800|900)/)){this._fontWeight=t[i];break}if(n>-1&&n<t.length-1){this._fontFamily="";for(var a=n+1;a<t.length;++a)this._fontFamily+=t[a]+" ";this._fontFamily=this._fontFamily.slice(0,-1)}else this._fontFamily="Arial";this.styleID++}}}),e.Texture.prototype.setFrame=function(e){this.frame=e,o("setFrame is now deprecated, please use the frame property, e.g: myTexture.frame = frame;")},e.Texture.addTextureToCache=function(t,n){e.Texture.addToCache(t,n),o("Texture.addTextureToCache is deprecated, please use Texture.addToCache from now on.")},e.Texture.removeTextureFromCache=function(t){return o("Texture.removeTextureFromCache is deprecated, please use Texture.removeFromCache from now on. Be aware that Texture.removeFromCache does not automatically its BaseTexture from the BaseTextureCache. For that, use BaseTexture.removeFromCache"),e.BaseTexture.removeFromCache(t),e.Texture.removeFromCache(t)},Object.defineProperties(i,{AbstractFilter:{get:function(){return o("AstractFilter has been renamed to Filter, please use PIXI.Filter"),e.AbstractFilter}},SpriteMaskFilter:{get:function(){return o("filters.SpriteMaskFilter is an undocumented alias, please use SpriteMaskFilter from now on."),e.SpriteMaskFilter}},VoidFilter:{get:function(){return o("VoidFilter has been renamed to AlphaFilter, please use PIXI.filters.AlphaFilter"),i.AlphaFilter}}}),e.utils.uuid=function(){return o("utils.uuid() is deprecated, please use utils.uid() from now on."),e.utils.uid()},e.utils.canUseNewCanvasBlendModes=function(){return o("utils.canUseNewCanvasBlendModes() is deprecated, please use CanvasTinter.canUseMultiply from now on"),e.CanvasTinter.canUseMultiply};var f=!0;Object.defineProperty(e.utils,"_saidHello",{set:function(e){e&&(o("PIXI.utils._saidHello is deprecated, please use PIXI.utils.skipHello()"),this.skipHello()),f=e},get:function(){return f}}),a.BasePrepare&&(a.BasePrepare.prototype.register=function(e,t){return o("renderer.plugins.prepare.register is now deprecated, please use renderer.plugins.prepare.registerFindHook & renderer.plugins.prepare.registerUploadHook"),e&&this.registerFindHook(e),t&&this.registerUploadHook(t),this});a.canvas&&Object.defineProperty(a.canvas,"UPLOADS_PER_FRAME",{set:function(){o("PIXI.CanvasPrepare.UPLOADS_PER_FRAME has been removed. Please set renderer.plugins.prepare.limiter.maxItemsPerFrame on your renderer")},get:function(){return o("PIXI.CanvasPrepare.UPLOADS_PER_FRAME has been removed. Please use renderer.plugins.prepare.limiter"),NaN}});a.webgl&&Object.defineProperty(a.webgl,"UPLOADS_PER_FRAME",{set:function(){o("PIXI.WebGLPrepare.UPLOADS_PER_FRAME has been removed. Please set renderer.plugins.prepare.limiter.maxItemsPerFrame on your renderer")},get:function(){return o("PIXI.WebGLPrepare.UPLOADS_PER_FRAME has been removed. Please use renderer.plugins.prepare.limiter"),NaN}});if(s.Loader){var h=s.Resource,p=s.Loader;Object.defineProperties(h.prototype,{isJson:{get:function(){return o("The isJson property is deprecated, please use `resource.type === Resource.TYPE.JSON`."),this.type===h.TYPE.JSON}},isXml:{get:function(){return o("The isXml property is deprecated, please use `resource.type === Resource.TYPE.XML`."),this.type===h.TYPE.XML}},isImage:{get:function(){return o("The isImage property is deprecated, please use `resource.type === Resource.TYPE.IMAGE`."),this.type===h.TYPE.IMAGE}},isAudio:{get:function(){return o("The isAudio property is deprecated, please use `resource.type === Resource.TYPE.AUDIO`."),this.type===h.TYPE.AUDIO}},isVideo:{get:function(){return o("The isVideo property is deprecated, please use `resource.type === Resource.TYPE.VIDEO`."),this.type===h.TYPE.VIDEO}}}),Object.defineProperties(p.prototype,{before:{get:function(){return o("The before() method is deprecated, please use pre()."),this.pre}},after:{get:function(){return o("The after() method is deprecated, please use use()."),this.use}}})}u.interactiveTarget&&Object.defineProperty(u.interactiveTarget,"defaultCursor",{set:function(e){o("Property defaultCursor has been replaced with 'cursor'. "),this.cursor=e},get:function(){return o("Property defaultCursor has been replaced with 'cursor'. "),this.cursor}});u.InteractionManager&&(Object.defineProperty(u.InteractionManager,"defaultCursorStyle",{set:function(e){o("Property defaultCursorStyle has been replaced with 'cursorStyles.default'. "),this.cursorStyles.default=e},get:function(){return o("Property defaultCursorStyle has been replaced with 'cursorStyles.default'. "),this.cursorStyles.default}}),Object.defineProperty(u.InteractionManager,"currentCursorStyle",{set:function(e){o("Property currentCursorStyle has been removed.See the currentCursorMode property, which works differently."),this.currentCursorMode=e},get:function(){return o("Property currentCursorStyle has been removed.See the currentCursorMode property, which works differently."),this.currentCursorMode}}))};var r={};function o(e){if(!r[e]){var t=(new Error).stack;void 0===t?console.warn("Deprecation Warning: ",e):(t=t.split("\n").splice(3).join("\n"),console.groupCollapsed?(console.groupCollapsed("%cDeprecation Warning: %c%s","color:#614108;background:#fffbe6","font-weight:normal;color:#614108;background:#fffbe6",e),console.warn(t),console.groupEnd()):(console.warn("Deprecation Warning: ",e),console.warn(t))),r[e]=!0}}},function(e,t,n){"use strict";t.__esModule=!0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(4),i=n(5);var a=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.baseTexture=t,this.textures={},this.data=n,this.resolution=this._updateResolution(r||this.baseTexture.imageUrl),this._frames=this.data.frames,this._frameKeys=Object.keys(this._frames),this._batchIndex=0,this._callback=null}return r(e,null,[{key:"BATCH_SIZE",get:function(){return 1e3}}]),e.prototype._updateResolution=function(e){var t=this.data.meta.scale,n=(0,i.getResolutionOfUrl)(e,null);return null===n&&(n=void 0!==t?parseFloat(t):1),1!==n&&(this.baseTexture.resolution=n,this.baseTexture.update()),n},e.prototype.parse=function(t){this._batchIndex=0,this._callback=t,this._frameKeys.length<=e.BATCH_SIZE?(this._processFrames(0),this._parseComplete()):this._nextBatch()},e.prototype._processFrames=function(t){for(var n=t,r=e.BATCH_SIZE,i=this.baseTexture.sourceScale;n-t<r&&n<this._frameKeys.length;){var a=this._frameKeys[n],s=this._frames[a],u=s.frame;if(u){var l=null,c=null,d=!1!==s.trimmed&&s.sourceSize?s.sourceSize:s.frame,f=new o.Rectangle(0,0,Math.floor(d.w*i)/this.resolution,Math.floor(d.h*i)/this.resolution);l=s.rotated?new o.Rectangle(Math.floor(u.x*i)/this.resolution,Math.floor(u.y*i)/this.resolution,Math.floor(u.h*i)/this.resolution,Math.floor(u.w*i)/this.resolution):new o.Rectangle(Math.floor(u.x*i)/this.resolution,Math.floor(u.y*i)/this.resolution,Math.floor(u.w*i)/this.resolution,Math.floor(u.h*i)/this.resolution),!1!==s.trimmed&&s.spriteSourceSize&&(c=new o.Rectangle(Math.floor(s.spriteSourceSize.x*i)/this.resolution,Math.floor(s.spriteSourceSize.y*i)/this.resolution,Math.floor(u.w*i)/this.resolution,Math.floor(u.h*i)/this.resolution)),this.textures[a]=new o.Texture(this.baseTexture,l,f,c,s.rotated?2:0),o.Texture.addToCache(this.textures[a],a)}n++}},e.prototype._parseComplete=function(){var e=this._callback;this._callback=null,this._batchIndex=0,e.call(this,this.textures)},e.prototype._nextBatch=function(){var t=this;this._processFrames(this._batchIndex*e.BATCH_SIZE),this._batchIndex++,setTimeout(function(){t._batchIndex*e.BATCH_SIZE<t._frameKeys.length?t._nextBatch():t._parseComplete()},0)},e.prototype.destroy=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];for(var t in this.textures)this.textures[t].destroy();this._frames=null,this._frameKeys=null,this.data=null,this.textures=null,e&&this.baseTexture.destroy(),this.baseTexture=null},e}();t.default=a},function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(29),i=(r=o)&&r.__esModule?r:{default:r},a=n(3);var s=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.renderer=t}return e.prototype.render=function(e){var t=this.renderer,n=t.context,r=e.worldAlpha,o=e.transform.worldTransform,i=t.resolution;this._prevTint!==this.tint&&(this.dirty=!0),n.setTransform(o.a*i,o.b*i,o.c*i,o.d*i,o.tx*i,o.ty*i),e.dirty&&(this.updateGraphicsTint(e),e.dirty=!1),t.setBlendMode(e.blendMode);for(var s=0;s<e.graphicsData.length;s++){var u=e.graphicsData[s],l=u.shape,c=u._fillTint,d=u._lineTint;if(n.lineWidth=u.lineWidth,u.type===a.SHAPES.POLY){n.beginPath(),this.renderPolygon(l.points,l.closed,n);for(var f=0;f<u.holes.length;f++)this.renderPolygon(u.holes[f].points,!0,n);u.fill&&(n.globalAlpha=u.fillAlpha*r,n.fillStyle="#"+("00000"+(0|c).toString(16)).substr(-6),n.fill()),u.lineWidth&&(n.globalAlpha=u.lineAlpha*r,n.strokeStyle="#"+("00000"+(0|d).toString(16)).substr(-6),n.stroke())}else if(u.type===a.SHAPES.RECT)(u.fillColor||0===u.fillColor)&&(n.globalAlpha=u.fillAlpha*r,n.fillStyle="#"+("00000"+(0|c).toString(16)).substr(-6),n.fillRect(l.x,l.y,l.width,l.height)),u.lineWidth&&(n.globalAlpha=u.lineAlpha*r,n.strokeStyle="#"+("00000"+(0|d).toString(16)).substr(-6),n.strokeRect(l.x,l.y,l.width,l.height));else if(u.type===a.SHAPES.CIRC)n.beginPath(),n.arc(l.x,l.y,l.radius,0,2*Math.PI),n.closePath(),u.fill&&(n.globalAlpha=u.fillAlpha*r,n.fillStyle="#"+("00000"+(0|c).toString(16)).substr(-6),n.fill()),u.lineWidth&&(n.globalAlpha=u.lineAlpha*r,n.strokeStyle="#"+("00000"+(0|d).toString(16)).substr(-6),n.stroke());else if(u.type===a.SHAPES.ELIP){var h=2*l.width,p=2*l.height,y=l.x-h/2,v=l.y-p/2;n.beginPath();var m=h/2*.5522848,g=p/2*.5522848,b=y+h,_=v+p,x=y+h/2,w=v+p/2;n.moveTo(y,w),n.bezierCurveTo(y,w-g,x-m,v,x,v),n.bezierCurveTo(x+m,v,b,w-g,b,w),n.bezierCurveTo(b,w+g,x+m,_,x,_),n.bezierCurveTo(x-m,_,y,w+g,y,w),n.closePath(),u.fill&&(n.globalAlpha=u.fillAlpha*r,n.fillStyle="#"+("00000"+(0|c).toString(16)).substr(-6),n.fill()),u.lineWidth&&(n.globalAlpha=u.lineAlpha*r,n.strokeStyle="#"+("00000"+(0|d).toString(16)).substr(-6),n.stroke())}else if(u.type===a.SHAPES.RREC){var E=l.x,S=l.y,T=l.width,O=l.height,C=l.radius,P=Math.min(T,O)/2|0;C=C>P?P:C,n.beginPath(),n.moveTo(E,S+C),n.lineTo(E,S+O-C),n.quadraticCurveTo(E,S+O,E+C,S+O),n.lineTo(E+T-C,S+O),n.quadraticCurveTo(E+T,S+O,E+T,S+O-C),n.lineTo(E+T,S+C),n.quadraticCurveTo(E+T,S,E+T-C,S),n.lineTo(E+C,S),n.quadraticCurveTo(E,S,E,S+C),n.closePath(),(u.fillColor||0===u.fillColor)&&(n.globalAlpha=u.fillAlpha*r,n.fillStyle="#"+("00000"+(0|c).toString(16)).substr(-6),n.fill()),u.lineWidth&&(n.globalAlpha=u.lineAlpha*r,n.strokeStyle="#"+("00000"+(0|d).toString(16)).substr(-6),n.stroke())}}},e.prototype.updateGraphicsTint=function(e){e._prevTint=e.tint;for(var t=(e.tint>>16&255)/255,n=(e.tint>>8&255)/255,r=(255&e.tint)/255,o=0;o<e.graphicsData.length;++o){var i=e.graphicsData[o],a=0|i.fillColor,s=0|i.lineColor;i._fillTint=((a>>16&255)/255*t*255<<16)+((a>>8&255)/255*n*255<<8)+(255&a)/255*r*255,i._lineTint=((s>>16&255)/255*t*255<<16)+((s>>8&255)/255*n*255<<8)+(255&s)/255*r*255}},e.prototype.renderPolygon=function(e,t,n){n.moveTo(e[0],e[1]);for(var r=1;r<e.length/2;++r)n.lineTo(e[2*r],e[2*r+1]);t&&n.closePath()},e.prototype.destroy=function(){this.renderer=null},e}();t.default=s,i.default.registerPlugin("graphics",s)},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t,n){var r=e.shape,o=r.x,u=r.y,l=void 0,c=void 0;e.type===a.SHAPES.CIRC?(l=r.radius,c=r.radius):(l=r.width,c=r.height);if(0===l||0===c)return;var d=Math.floor(30*Math.sqrt(r.radius))||Math.floor(15*Math.sqrt(r.width+r.height)),f=2*Math.PI/d;if(e.fill){var h=(0,s.hex2rgb)(e.fillColor),p=e.fillAlpha,y=h[0]*p,v=h[1]*p,m=h[2]*p,g=t.points,b=t.indices,_=g.length/6;b.push(_);for(var x=0;x<d+1;x++)g.push(o,u,y,v,m,p),g.push(o+Math.sin(f*x)*l,u+Math.cos(f*x)*c,y,v,m,p),b.push(_++,_++);b.push(_-1)}if(e.lineWidth){var w=e.points;e.points=[];for(var E=0;E<d+1;E++)e.points.push(o+Math.sin(f*E)*l,u+Math.cos(f*E)*c);(0,i.default)(e,t,n),e.points=w}};var r,o=n(35),i=(r=o)&&r.__esModule?r:{default:r},a=n(3),s=n(5)},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t,n){var a=e.shape,s=a.x,l=a.y,c=a.width,d=a.height,f=a.radius,h=[];if(h.push(s,l+f),u(s,l+d-f,s,l+d,s+f,l+d,h),u(s+c-f,l+d,s+c,l+d,s+c,l+d-f,h),u(s+c,l+f,s+c,l,s+c-f,l,h),u(s+f,l,s,l,s,l+f+1e-10,h),e.fill){for(var p=(0,i.hex2rgb)(e.fillColor),y=e.fillAlpha,v=p[0]*y,m=p[1]*y,g=p[2]*y,b=t.points,_=t.indices,x=b.length/6,w=(0,r.default)(h,null,2),E=0,S=w.length;E<S;E+=3)_.push(w[E]+x),_.push(w[E]+x),_.push(w[E+1]+x),_.push(w[E+2]+x),_.push(w[E+2]+x);for(var T=0,O=h.length;T<O;T++)b.push(h[T],h[++T],v,m,g,y)}if(e.lineWidth){var C=e.points;e.points=h,(0,o.default)(e,t,n),e.points=C}};var r=a(n(57)),o=a(n(35)),i=n(5);function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t,n){return e+(t-e)*n}function u(e,t,n,r,o,i){for(var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:[],u=0,l=0,c=0,d=0,f=0,h=0,p=0,y=0;p<=20;++p)u=s(e,n,y=p/20),l=s(t,r,y),c=s(n,o,y),d=s(r,i,y),f=s(u,c,y),h=s(l,d,y),a.push(f,h);return a}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t,n){var r=e.shape,o=r.x,s=r.y,u=r.width,l=r.height;if(e.fill){var c=(0,a.hex2rgb)(e.fillColor),d=e.fillAlpha,f=c[0]*d,h=c[1]*d,p=c[2]*d,y=t.points,v=t.indices,m=y.length/6;y.push(o,s),y.push(f,h,p,d),y.push(o+u,s),y.push(f,h,p,d),y.push(o,s+l),y.push(f,h,p,d),y.push(o+u,s+l),y.push(f,h,p,d),v.push(m,m,m+1,m+2,m+3,m+3)}if(e.lineWidth){var g=e.points;e.points=[o,s,o+u,s,o+u,s+l,o,s+l,o,s],(0,i.default)(e,t,n),e.points=g}};var r,o=n(35),i=(r=o)&&r.__esModule?r:{default:r},a=n(5)},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t,n){e.points=e.shape.points.slice();var a=e.points;if(e.fill&&a.length>=6){for(var s=[],u=e.holes,l=0;l<u.length;l++){var c=u[l];s.push(a.length/2),a=a.concat(c.points)}var d=t.points,f=t.indices,h=a.length/2,p=(0,o.hex2rgb)(e.fillColor),y=e.fillAlpha,v=p[0]*y,m=p[1]*y,g=p[2]*y,b=(0,i.default)(a,s,2);if(!b)return;for(var _=d.length/6,x=0;x<b.length;x+=3)f.push(b[x]+_),f.push(b[x]+_),f.push(b[x+1]+_),f.push(b[x+2]+_),f.push(b[x+2]+_);for(var w=0;w<h;w++)d.push(a[2*w],a[2*w+1],v,m,g,y)}e.lineWidth>0&&(0,r.default)(e,t,n)};var r=a(n(35)),o=n(5),i=a(n(57));function a(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.__esModule=!0;var o,i=n(27);var a=function(e){function t(n){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":r(t))&&"function"!=typeof t?e:t}(this,e.call(this,n,["attribute vec2 aVertexPosition;","attribute vec4 aColor;","uniform mat3 translationMatrix;","uniform mat3 projectionMatrix;","uniform float alpha;","uniform vec3 tint;","varying vec4 vColor;","void main(void){"," gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);"," vColor = aColor * vec4(tint * alpha, alpha);","}"].join("\n"),["varying vec4 vColor;","void main(void){"," gl_FragColor = vColor;","}"].join("\n")))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":r(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((o=i)&&o.__esModule?o:{default:o}).default);t.default=a},function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(10),i=(r=o)&&r.__esModule?r:{default:r};var a=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.gl=t,this.color=[0,0,0],this.points=[],this.indices=[],this.buffer=i.default.GLBuffer.createVertexBuffer(t),this.indexBuffer=i.default.GLBuffer.createIndexBuffer(t),this.dirty=!0,this.nativeLines=!1,this.glPoints=null,this.glIndices=null,this.shader=n,this.vao=new i.default.VertexArrayObject(t,r).addIndex(this.indexBuffer).addAttribute(this.buffer,n.attributes.aVertexPosition,t.FLOAT,!1,24,0).addAttribute(this.buffer,n.attributes.aColor,t.FLOAT,!1,24,8)}return e.prototype.reset=function(){this.points.length=0,this.indices.length=0},e.prototype.upload=function(){this.glPoints=new Float32Array(this.points),this.buffer.upload(this.glPoints),this.glIndices=new Uint16Array(this.indices),this.indexBuffer.upload(this.glIndices),this.dirty=!1},e.prototype.destroy=function(){this.color=null,this.points=null,this.indices=null,this.vao.destroy(),this.buffer.destroy(),this.indexBuffer.destroy(),this.gl=null,this.buffer=null,this.indexBuffer=null,this.glPoints=null,this.glIndices=null},e}();t.default=a},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.__esModule=!0;var o=n(5),i=n(3),a=p(n(38)),s=p(n(37)),u=p(n(235)),l=p(n(234)),c=p(n(233)),d=p(n(232)),f=p(n(231)),h=p(n(230));function p(e){return e&&e.__esModule?e:{default:e}}var y=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":r(t))&&"function"!=typeof t?e:t}(this,e.call(this,n));return o.graphicsDataPool=[],o.primitiveShader=null,o.gl=n.gl,o.CONTEXT_UID=0,o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":r(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.onContextChange=function(){this.gl=this.renderer.gl,this.CONTEXT_UID=this.renderer.CONTEXT_UID,this.primitiveShader=new l.default(this.gl)},t.prototype.destroy=function(){a.default.prototype.destroy.call(this);for(var e=0;e<this.graphicsDataPool.length;++e)this.graphicsDataPool[e].destroy();this.graphicsDataPool=null},t.prototype.render=function(e){var t=this.renderer,n=t.gl,r=void 0,i=e._webGL[this.CONTEXT_UID];i&&e.dirty===i.dirty||(this.updateGraphics(e),i=e._webGL[this.CONTEXT_UID]);var a=this.primitiveShader;t.bindShader(a),t.state.setBlendMode(e.blendMode);for(var s=0,u=i.data.length;s<u;s++){var l=(r=i.data[s]).shader;t.bindShader(l),l.uniforms.translationMatrix=e.transform.worldTransform.toArray(!0),l.uniforms.tint=(0,o.hex2rgb)(e.tint),l.uniforms.alpha=e.worldAlpha,t.bindVao(r.vao),r.nativeLines?n.drawArrays(n.LINES,0,r.points.length/6):r.vao.draw(n.TRIANGLE_STRIP,r.indices.length)}},t.prototype.updateGraphics=function(e){var t=this.renderer.gl,n=e._webGL[this.CONTEXT_UID];if(n||(n=e._webGL[this.CONTEXT_UID]={lastIndex:0,data:[],gl:t,clearDirty:-1,dirty:-1}),n.dirty=e.dirty,e.clearDirty!==n.clearDirty){n.clearDirty=e.clearDirty;for(var r=0;r<n.data.length;r++)this.graphicsDataPool.push(n.data[r]);n.data.length=0,n.lastIndex=0}for(var o=void 0,a=void 0,s=n.lastIndex;s<e.graphicsData.length;s++){var u=e.graphicsData[s];o=this.getWebGLData(n,0),u.nativeLines&&u.lineWidth&&(a=this.getWebGLData(n,0,!0),n.lastIndex++),u.type===i.SHAPES.POLY&&(0,c.default)(u,o,a),u.type===i.SHAPES.RECT?(0,d.default)(u,o,a):u.type===i.SHAPES.CIRC||u.type===i.SHAPES.ELIP?(0,h.default)(u,o,a):u.type===i.SHAPES.RREC&&(0,f.default)(u,o,a),n.lastIndex++}this.renderer.bindVao(null);for(var l=0;l<n.data.length;l++)(o=n.data[l]).dirty&&o.upload()},t.prototype.getWebGLData=function(e,t,n){var r=e.data[e.data.length-1];return(!r||r.nativeLines!==n||r.points.length>32e4)&&((r=this.graphicsDataPool.pop()||new u.default(this.renderer.gl,this.primitiveShader,this.renderer.state.attribsState)).nativeLines=n,r.reset(t),e.data.push(r)),r.dirty=!0,r},t}(a.default);t.default=y,s.default.registerPlugin("graphics",y)},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t,n,r,o,i,a,s){var u=arguments.length>8&&void 0!==arguments[8]?arguments[8]:[],l=0,c=0,d=0,f=0,h=0;u.push(e,t);for(var p=1,y=0;p<=20;++p)d=(c=(l=1-(y=p/20))*l)*l,h=(f=y*y)*y,u.push(d*e+3*c*y*n+3*l*f*o+h*a,d*t+3*c*y*r+3*l*f*i+h*s);return u}},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.__esModule=!0;var o=y(n(30)),i=y(n(53)),a=y(n(16)),s=y(n(104)),u=y(n(56)),l=n(9),c=n(5),d=n(3),f=y(n(60)),h=y(n(237)),p=y(n(29));function y(e){return e&&e.__esModule?e:{default:e}}var v=void 0,m=new l.Matrix,g=new l.Point,b=new Float32Array(4),_=new Float32Array(4),x=function(e){function t(){var n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":r(t))&&"function"!=typeof t?e:t}(this,e.call(this));return o.fillAlpha=1,o.lineWidth=0,o.nativeLines=n,o.lineColor=0,o.graphicsData=[],o.tint=16777215,o._prevTint=16777215,o.blendMode=d.BLEND_MODES.NORMAL,o.currentPath=null,o._webGL={},o.isMask=!1,o.boundsPadding=0,o._localBounds=new f.default,o.dirty=0,o.fastRectDirty=-1,o.clearDirty=0,o.boundsDirty=-1,o.cachedSpriteDirty=!1,o._spriteRect=null,o._fastRect=!1,o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":r(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.clone=function(){var e=new t;e.renderable=this.renderable,e.fillAlpha=this.fillAlpha,e.lineWidth=this.lineWidth,e.lineColor=this.lineColor,e.tint=this.tint,e.blendMode=this.blendMode,e.isMask=this.isMask,e.boundsPadding=this.boundsPadding,e.dirty=0,e.cachedSpriteDirty=this.cachedSpriteDirty;for(var n=0;n<this.graphicsData.length;++n)e.graphicsData.push(this.graphicsData[n].clone());return e.currentPath=e.graphicsData[e.graphicsData.length-1],e.updateLocalBounds(),e},t.prototype.lineStyle=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;if(this.lineWidth=e,this.lineColor=t,this.lineAlpha=n,this.currentPath)if(this.currentPath.shape.points.length){var r=new l.Polygon(this.currentPath.shape.points.slice(-2));r.closed=!1,this.drawShape(r)}else this.currentPath.lineWidth=this.lineWidth,this.currentPath.lineColor=this.lineColor,this.currentPath.lineAlpha=this.lineAlpha;return this},t.prototype.moveTo=function(e,t){var n=new l.Polygon([e,t]);return n.closed=!1,this.drawShape(n),this},t.prototype.lineTo=function(e,t){return this.currentPath.shape.points.push(e,t),this.dirty++,this},t.prototype.quadraticCurveTo=function(e,t,n,r){this.currentPath?0===this.currentPath.shape.points.length&&(this.currentPath.shape.points=[0,0]):this.moveTo(0,0);var o=this.currentPath.shape.points,i=0,a=0;0===o.length&&this.moveTo(0,0);for(var s=o[o.length-2],u=o[o.length-1],l=1;l<=20;++l){var c=l/20;i=s+(e-s)*c,a=u+(t-u)*c,o.push(i+(e+(n-e)*c-i)*c,a+(t+(r-t)*c-a)*c)}return this.dirty++,this},t.prototype.bezierCurveTo=function(e,t,n,r,o,i){this.currentPath?0===this.currentPath.shape.points.length&&(this.currentPath.shape.points=[0,0]):this.moveTo(0,0);var a=this.currentPath.shape.points,s=a[a.length-2],u=a[a.length-1];return a.length-=2,(0,h.default)(s,u,e,t,n,r,o,i,a),this.dirty++,this},t.prototype.arcTo=function(e,t,n,r,o){this.currentPath?0===this.currentPath.shape.points.length&&this.currentPath.shape.points.push(e,t):this.moveTo(e,t);var i=this.currentPath.shape.points,a=i[i.length-2],s=i[i.length-1]-t,u=a-e,l=r-t,c=n-e,d=Math.abs(s*c-u*l);if(d<1e-8||0===o)i[i.length-2]===e&&i[i.length-1]===t||i.push(e,t);else{var f=s*s+u*u,h=l*l+c*c,p=s*l+u*c,y=o*Math.sqrt(f)/d,v=o*Math.sqrt(h)/d,m=y*p/f,g=v*p/h,b=y*c+v*u,_=y*l+v*s,x=u*(v+m),w=s*(v+m),E=c*(y+g),S=l*(y+g),T=Math.atan2(w-_,x-b),O=Math.atan2(S-_,E-b);this.arc(b+e,_+t,o,T,O,u*l>c*s)}return this.dirty++,this},t.prototype.arc=function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(r===o)return this;!i&&o<=r?o+=d.PI_2:i&&r<=o&&(r+=d.PI_2);var a=o-r,s=40*Math.ceil(Math.abs(a)/d.PI_2);if(0===a)return this;var u=e+Math.cos(r)*n,l=t+Math.sin(r)*n,c=this.currentPath?this.currentPath.shape.points:null;c?c[c.length-2]===u&&c[c.length-1]===l||c.push(u,l):(this.moveTo(u,l),c=this.currentPath.shape.points);for(var f=a/(2*s),h=2*f,p=Math.cos(f),y=Math.sin(f),v=s-1,m=v%1/v,g=0;g<=v;++g){var b=f+r+h*(g+m*g),_=Math.cos(b),x=-Math.sin(b);c.push((p*_+y*x)*n+e,(p*-x+y*_)*n+t)}return this.dirty++,this},t.prototype.beginFill=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return this.filling=!0,this.fillColor=e,this.fillAlpha=t,this.currentPath&&this.currentPath.shape.points.length<=2&&(this.currentPath.fill=this.filling,this.currentPath.fillColor=this.fillColor,this.currentPath.fillAlpha=this.fillAlpha),this},t.prototype.endFill=function(){return this.filling=!1,this.fillColor=null,this.fillAlpha=1,this},t.prototype.drawRect=function(e,t,n,r){return this.drawShape(new l.Rectangle(e,t,n,r)),this},t.prototype.drawRoundedRect=function(e,t,n,r,o){return this.drawShape(new l.RoundedRectangle(e,t,n,r,o)),this},t.prototype.drawCircle=function(e,t,n){return this.drawShape(new l.Circle(e,t,n)),this},t.prototype.drawEllipse=function(e,t,n,r){return this.drawShape(new l.Ellipse(e,t,n,r)),this},t.prototype.drawPolygon=function(e){var t=e,n=!0;if(t instanceof l.Polygon&&(n=t.closed,t=t.points),!Array.isArray(t)){t=new Array(arguments.length);for(var r=0;r<t.length;++r)t[r]=arguments[r]}var o=new l.Polygon(t);return o.closed=n,this.drawShape(o),this},t.prototype.drawStar=function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;o=o||r/2;for(var a=-1*Math.PI/2+i,s=2*n,u=d.PI_2/s,l=[],c=0;c<s;c++){var f=c%2?o:r,h=c*u+a;l.push(e+f*Math.cos(h),t+f*Math.sin(h))}return this.drawPolygon(l)},t.prototype.clear=function(){return(this.lineWidth||this.filling||this.graphicsData.length>0)&&(this.lineWidth=0,this.filling=!1,this.boundsDirty=-1,this.dirty++,this.clearDirty++,this.graphicsData.length=0),this.currentPath=null,this._spriteRect=null,this},t.prototype.isFastRect=function(){return 1===this.graphicsData.length&&this.graphicsData[0].shape.type===d.SHAPES.RECT&&!this.graphicsData[0].lineWidth},t.prototype._renderWebGL=function(e){this.dirty!==this.fastRectDirty&&(this.fastRectDirty=this.dirty,this._fastRect=this.isFastRect()),this._fastRect?this._renderSpriteRect(e):(e.setObjectRenderer(e.plugins.graphics),e.plugins.graphics.render(this))},t.prototype._renderSpriteRect=function(e){var t=this.graphicsData[0].shape;this._spriteRect||(this._spriteRect=new u.default(new a.default(a.default.WHITE)));var n=this._spriteRect;if(16777215===this.tint)n.tint=this.graphicsData[0].fillColor;else{var r=b,o=_;(0,c.hex2rgb)(this.graphicsData[0].fillColor,r),(0,c.hex2rgb)(this.tint,o),r[0]*=o[0],r[1]*=o[1],r[2]*=o[2],n.tint=(0,c.rgb2hex)(r)}n.alpha=this.graphicsData[0].fillAlpha,n.worldAlpha=this.worldAlpha*n.alpha,n.blendMode=this.blendMode,n._texture._frame.width=t.width,n._texture._frame.height=t.height,n.transform.worldTransform=this.transform.worldTransform,n.anchor.set(-t.x/t.width,-t.y/t.height),n._onAnchorUpdate(),n._renderWebGL(e)},t.prototype._renderCanvas=function(e){!0!==this.isMask&&e.plugins.graphics.render(this)},t.prototype._calculateBounds=function(){this.boundsDirty!==this.dirty&&(this.boundsDirty=this.dirty,this.updateLocalBounds(),this.cachedSpriteDirty=!0);var e=this._localBounds;this._bounds.addFrame(this.transform,e.minX,e.minY,e.maxX,e.maxY)},t.prototype.containsPoint=function(e){this.worldTransform.applyInverse(e,g);for(var t=this.graphicsData,n=0;n<t.length;++n){var r=t[n];if(r.fill&&(r.shape&&r.shape.contains(g.x,g.y))){if(r.holes)for(var o=0;o<r.holes.length;o++){if(r.holes[o].contains(g.x,g.y))return!1}return!0}}return!1},t.prototype.updateLocalBounds=function(){var e=1/0,t=-1/0,n=1/0,r=-1/0;if(this.graphicsData.length)for(var o=0,i=0,a=0,s=0,u=0,l=0;l<this.graphicsData.length;l++){var c=this.graphicsData[l],f=c.type,h=c.lineWidth;if(o=c.shape,f===d.SHAPES.RECT||f===d.SHAPES.RREC)i=o.x-h/2,a=o.y-h/2,s=o.width+h,u=o.height+h,e=i<e?i:e,t=i+s>t?i+s:t,n=a<n?a:n,r=a+u>r?a+u:r;else if(f===d.SHAPES.CIRC)i=o.x,a=o.y,s=o.radius+h/2,u=o.radius+h/2,e=i-s<e?i-s:e,t=i+s>t?i+s:t,n=a-u<n?a-u:n,r=a+u>r?a+u:r;else if(f===d.SHAPES.ELIP)i=o.x,a=o.y,s=o.width+h/2,u=o.height+h/2,e=i-s<e?i-s:e,t=i+s>t?i+s:t,n=a-u<n?a-u:n,r=a+u>r?a+u:r;else for(var p=o.points,y=0,v=0,m=0,g=0,b=0,_=0,x=0,w=0,E=0;E+2<p.length;E+=2)i=p[E],a=p[E+1],y=p[E+2],v=p[E+3],m=Math.abs(y-i),g=Math.abs(v-a),u=h,(s=Math.sqrt(m*m+g*g))<1e-9||(_=(u/s*m+g)/2,w=(v+a)/2,e=(x=(y+i)/2)-(b=(u/s*g+m)/2)<e?x-b:e,t=x+b>t?x+b:t,n=w-_<n?w-_:n,r=w+_>r?w+_:r)}else e=0,t=0,n=0,r=0;var S=this.boundsPadding;this._localBounds.minX=e-S,this._localBounds.maxX=t+S,this._localBounds.minY=n-S,this._localBounds.maxY=r+S},t.prototype.drawShape=function(e){this.currentPath&&this.currentPath.shape.points.length<=2&&this.graphicsData.pop(),this.currentPath=null;var t=new s.default(this.lineWidth,this.lineColor,this.lineAlpha,this.fillColor,this.fillAlpha,this.filling,this.nativeLines,e);return this.graphicsData.push(t),t.type===d.SHAPES.POLY&&(t.shape.closed=t.shape.closed||this.filling,this.currentPath=t),this.dirty++,t},t.prototype.generateCanvasTexture=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=this.getLocalBounds(),r=i.default.create(n.width,n.height,e,t);v||(v=new p.default),this.transform.updateLocalTransform(),this.transform.localTransform.copy(m),m.invert(),m.tx-=n.x,m.ty-=n.y,v.render(this,r,!0,m);var o=a.default.fromCanvas(r.baseTexture._canvasRenderTarget.canvas,e,"graphics");return o.baseTexture.resolution=t,o.baseTexture.update(),o},t.prototype.closePath=function(){var e=this.currentPath;return e&&e.shape&&e.shape.close(),this},t.prototype.addHole=function(){var e=this.graphicsData.pop();return this.currentPath=this.graphicsData[this.graphicsData.length-1],this.currentPath.addHole(e.shape),this.currentPath=null,this},t.prototype.destroy=function(t){e.prototype.destroy.call(this,t);for(var n=0;n<this.graphicsData.length;++n)this.graphicsData[n].destroy();for(var r in this._webgl)for(var o=0;o<this._webgl[r].data.length;++o)this._webgl[r].data[o].destroy();this._spriteRect&&this._spriteRect.destroy(),this.graphicsData=null,this.currentPath=null,this._webgl=null,this._localBounds=null},t}(o.default);t.default=x,x._SPRITE_TEXTURE=null},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t=e.width,n=e.height,r=e.getContext("2d"),o=r.getImageData(0,0,t,n).data,i=o.length,a={top:null,left:null,right:null,bottom:null},s=void 0,u=void 0,l=void 0;for(s=0;s<i;s+=4)0!==o[s+3]&&(u=s/4%t,l=~~(s/4/t),null===a.top&&(a.top=l),null===a.left?a.left=u:u<a.left&&(a.left=u),null===a.right?a.right=u+1:a.right<u&&(a.right=u+1),null===a.bottom?a.bottom=l:a.bottom<l&&(a.bottom=l));t=a.right-a.left,n=a.bottom-a.top+1;var c=r.getImageData(a.left,a.top,t,n);return{height:n,width:t,data:c}}},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.__esModule=!0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=p(n(56)),a=p(n(16)),s=n(9),u=n(5),l=n(3),c=p(n(7)),d=p(n(106)),f=p(n(105)),h=p(n(239));function p(e){return e&&e.__esModule?e:{default:e}}var y={texture:!0,children:!1,baseTexture:!0},v=function(e){function t(n,o,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(i=i||document.createElement("canvas")).width=3,i.height=3;var u=a.default.fromCanvas(i,c.default.SCALE_MODE,"text");u.orig=new s.Rectangle,u.trim=new s.Rectangle;var l=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":r(t))&&"function"!=typeof t?e:t}(this,e.call(this,u));return a.default.addToCache(l._texture,l._texture.baseTexture.textureCacheIds[0]),l.canvas=i,l.context=l.canvas.getContext("2d"),l.resolution=c.default.RESOLUTION,l._text=null,l._style=null,l._styleListener=null,l._font="",l.text=n,l.style=o,l.localStyleID=-1,l}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":r(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.updateText=function(e){var t=this._style;if(this.localStyleID!==t.styleID&&(this.dirty=!0,this.localStyleID=t.styleID),this.dirty||!e){this._font=this._style.toFontString();var n=this.context,r=f.default.measureText(this._text,this._style,this._style.wordWrap,this.canvas),o=r.width,i=r.height,a=r.lines,s=r.lineHeight,u=r.lineWidths,l=r.maxLineWidth,c=r.fontProperties;this.canvas.width=Math.ceil((Math.max(1,o)+2*t.padding)*this.resolution),this.canvas.height=Math.ceil((Math.max(1,i)+2*t.padding)*this.resolution),n.scale(this.resolution,this.resolution),n.clearRect(0,0,this.canvas.width,this.canvas.height),n.font=this._font,n.strokeStyle=t.stroke,n.lineWidth=t.strokeThickness,n.textBaseline=t.textBaseline,n.lineJoin=t.lineJoin,n.miterLimit=t.miterLimit;var d=void 0,h=void 0;if(t.dropShadow){n.fillStyle=t.dropShadowColor,n.globalAlpha=t.dropShadowAlpha,n.shadowBlur=t.dropShadowBlur,t.dropShadowBlur>0&&(n.shadowColor=t.dropShadowColor);for(var p=Math.cos(t.dropShadowAngle)*t.dropShadowDistance,y=Math.sin(t.dropShadowAngle)*t.dropShadowDistance,v=0;v<a.length;v++)d=t.strokeThickness/2,h=t.strokeThickness/2+v*s+c.ascent,"right"===t.align?d+=l-u[v]:"center"===t.align&&(d+=(l-u[v])/2),t.fill&&(this.drawLetterSpacing(a[v],d+p+t.padding,h+y+t.padding),t.stroke&&t.strokeThickness&&(n.strokeStyle=t.dropShadowColor,this.drawLetterSpacing(a[v],d+p+t.padding,h+y+t.padding,!0),n.strokeStyle=t.stroke))}n.shadowBlur=0,n.globalAlpha=1,n.fillStyle=this._generateFillStyle(t,a);for(var m=0;m<a.length;m++)d=t.strokeThickness/2,h=t.strokeThickness/2+m*s+c.ascent,"right"===t.align?d+=l-u[m]:"center"===t.align&&(d+=(l-u[m])/2),t.stroke&&t.strokeThickness&&this.drawLetterSpacing(a[m],d+t.padding,h+t.padding,!0),t.fill&&this.drawLetterSpacing(a[m],d+t.padding,h+t.padding);this.updateTexture()}},t.prototype.drawLetterSpacing=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=this._style.letterSpacing;if(0!==o)for(var i=String.prototype.split.call(e,""),a=t,s=0,u="";s<e.length;)u=i[s++],r?this.context.strokeText(u,a,n):this.context.fillText(u,a,n),a+=this.context.measureText(u).width+o;else r?this.context.strokeText(e,t,n):this.context.fillText(e,t,n)},t.prototype.updateTexture=function(){var e=this.canvas;if(this._style.trim){var t=(0,h.default)(e);e.width=t.width,e.height=t.height,this.context.putImageData(t.data,0,0)}var n=this._texture,r=this._style,o=r.trim?0:r.padding,i=n.baseTexture;i.hasLoaded=!0,i.resolution=this.resolution,i.realWidth=e.width,i.realHeight=e.height,i.width=e.width/this.resolution,i.height=e.height/this.resolution,n.trim.width=n._frame.width=e.width/this.resolution,n.trim.height=n._frame.height=e.height/this.resolution,n.trim.x=-o,n.trim.y=-o,n.orig.width=n._frame.width-2*o,n.orig.height=n._frame.height-2*o,this._onTextureUpdate(),i.emit("update",i),this.dirty=!1},t.prototype.renderWebGL=function(t){this.resolution!==t.resolution&&(this.resolution=t.resolution,this.dirty=!0),this.updateText(!0),e.prototype.renderWebGL.call(this,t)},t.prototype._renderCanvas=function(t){this.resolution!==t.resolution&&(this.resolution=t.resolution,this.dirty=!0),this.updateText(!0),e.prototype._renderCanvas.call(this,t)},t.prototype.getLocalBounds=function(t){return this.updateText(!0),e.prototype.getLocalBounds.call(this,t)},t.prototype._calculateBounds=function(){this.updateText(!0),this.calculateVertices(),this._bounds.addQuad(this.vertexData)},t.prototype._onStyleChange=function(){this.dirty=!0},t.prototype._generateFillStyle=function(e,t){if(!Array.isArray(e.fill))return e.fill;if(navigator.isCocoonJS)return e.fill[0];var n=void 0,r=void 0,o=void 0,i=void 0,a=this.canvas.width/this.resolution,s=this.canvas.height/this.resolution,u=e.fill.slice(),c=e.fillGradientStops.slice();if(!c.length)for(var d=u.length+1,f=1;f<d;++f)c.push(f/d);if(u.unshift(e.fill[0]),c.unshift(0),u.push(e.fill[e.fill.length-1]),c.push(1),e.fillGradientType===l.TEXT_GRADIENT.LINEAR_VERTICAL){n=this.context.createLinearGradient(a/2,0,a/2,s),r=(u.length+1)*t.length,o=0;for(var h=0;h<t.length;h++){o+=1;for(var p=0;p<u.length;p++)i="number"==typeof c[p]?c[p]/t.length+h/t.length:o/r,n.addColorStop(i,u[p]),o++}}else{n=this.context.createLinearGradient(0,s/2,a,s/2),r=u.length+1,o=1;for(var y=0;y<u.length;y++)i="number"==typeof c[y]?c[y]:o/r,n.addColorStop(i,u[y]),o++}return n},t.prototype.destroy=function(t){"boolean"==typeof t&&(t={children:t}),t=Object.assign({},y,t),e.prototype.destroy.call(this,t),this.context=null,this.canvas=null,this._style=null},o(t,[{key:"width",get:function(){return this.updateText(!0),Math.abs(this.scale.x)*this._texture.orig.width},set:function(e){this.updateText(!0);var t=(0,u.sign)(this.scale.x)||1;this.scale.x=t*e/this._texture.orig.width,this._width=e}},{key:"height",get:function(){return this.updateText(!0),Math.abs(this.scale.y)*this._texture.orig.height},set:function(e){this.updateText(!0);var t=(0,u.sign)(this.scale.y)||1;this.scale.y=t*e/this._texture.orig.height,this._height=e}},{key:"style",get:function(){return this._style},set:function(e){(e=e||{})instanceof d.default?this._style=e:this._style=new d.default(e),this.localStyleID=-1,this.dirty=!0}},{key:"text",get:function(){return this._text},set:function(e){e=String(""===e||null===e||void 0===e?" ":e),this._text!==e&&(this._text=e,this.dirty=!0)}}]),t}(i.default);t.default=v},function(e,t,n){"use strict";t.__esModule=!0;var r=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.vertices=new ArrayBuffer(t),this.float32View=new Float32Array(this.vertices),this.uint32View=new Uint32Array(this.vertices)}return e.prototype.destroy=function(){this.vertices=null,this.positions=null,this.uvs=null,this.colors=null},e}();t.default=r},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){var n=!t;if(0===e)throw new Error("Invalid value of `0` passed to `checkMaxIfStatementsInShader`");if(n){var r=document.createElement("canvas");r.width=1,r.height=1,t=i.default.createContext(r)}var o=t.createShader(t.FRAGMENT_SHADER);for(;;){var u=a.replace(/%forloop%/gi,s(e));if(t.shaderSource(o,u),t.compileShader(o),t.getShaderParameter(o,t.COMPILE_STATUS))break;e=e/2|0}n&&t.getExtension("WEBGL_lose_context")&&t.getExtension("WEBGL_lose_context").loseContext();return e};var r,o=n(10),i=(r=o)&&r.__esModule?r:{default:r};var a=["precision mediump float;","void main(void){","float test = 0.1;","%forloop%","gl_FragColor = vec4(0.0);","}"].join("\n");function s(e){for(var t="",n=0;n<e;++n)n>0&&(t+="\nelse "),n<e-1&&(t+="if(test == "+n+".0){}");return t}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){var n=a;n=(n=n.replace(/%count%/gi,t)).replace(/%forloop%/gi,function(e){var t="";t+="\n",t+="\n";for(var n=0;n<e;n++)n>0&&(t+="\nelse "),n<e-1&&(t+="if(textureId == "+n+".0)"),t+="\n{",t+="\n\tcolor = texture2D(uSamplers["+n+"], vTextureCoord);",t+="\n}";return t+="\n",t+="\n"}(t));for(var r=new i.default(e,"precision highp float;\nattribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\nattribute vec4 aColor;\nattribute float aTextureId;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\nvarying vec4 vColor;\nvarying float vTextureId;\n\nvoid main(void){\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n\n vTextureCoord = aTextureCoord;\n vTextureId = aTextureId;\n vColor = aColor;\n}\n",n),o=[],s=0;s<t;s++)o[s]=s;return r.bind(),r.uniforms.uSamplers=o,r};var r,o=n(27),i=(r=o)&&r.__esModule?r:{default:r};n(14);var a=["varying vec2 vTextureCoord;","varying vec4 vColor;","varying float vTextureId;","uniform sampler2D uSamplers[%count%];","void main(void){","vec4 color;","float textureId = floor(vTextureId+0.5);","%forloop%","gl_FragColor = color * vColor;","}"].join("\n")},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){e.getContextAttributes().stencil||console.warn("Provided WebGL context does not have a stencil buffer, masks may not render correctly")}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t[r.DRAW_MODES.POINTS]=e.POINTS,t[r.DRAW_MODES.LINES]=e.LINES,t[r.DRAW_MODES.LINE_LOOP]=e.LINE_LOOP,t[r.DRAW_MODES.LINE_STRIP]=e.LINE_STRIP,t[r.DRAW_MODES.TRIANGLES]=e.TRIANGLES,t[r.DRAW_MODES.TRIANGLE_STRIP]=e.TRIANGLE_STRIP,t[r.DRAW_MODES.TRIANGLE_FAN]=e.TRIANGLE_FAN,t};var r=n(3)},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t[r.BLEND_MODES.NORMAL]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[r.BLEND_MODES.ADD]=[e.ONE,e.DST_ALPHA],t[r.BLEND_MODES.MULTIPLY]=[e.DST_COLOR,e.ONE_MINUS_SRC_ALPHA],t[r.BLEND_MODES.SCREEN]=[e.ONE,e.ONE_MINUS_SRC_COLOR],t[r.BLEND_MODES.OVERLAY]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[r.BLEND_MODES.DARKEN]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[r.BLEND_MODES.LIGHTEN]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[r.BLEND_MODES.COLOR_DODGE]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[r.BLEND_MODES.COLOR_BURN]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[r.BLEND_MODES.HARD_LIGHT]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[r.BLEND_MODES.SOFT_LIGHT]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[r.BLEND_MODES.DIFFERENCE]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[r.BLEND_MODES.EXCLUSION]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[r.BLEND_MODES.HUE]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[r.BLEND_MODES.SATURATION]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[r.BLEND_MODES.COLOR]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[r.BLEND_MODES.LUMINOSITY]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[r.BLEND_MODES.NORMAL_NPM]=[e.SRC_ALPHA,e.ONE_MINUS_SRC_ALPHA,e.ONE,e.ONE_MINUS_SRC_ALPHA],t[r.BLEND_MODES.ADD_NPM]=[e.SRC_ALPHA,e.DST_ALPHA,e.ONE,e.DST_ALPHA],t[r.BLEND_MODES.SCREEN_NPM]=[e.SRC_ALPHA,e.ONE_MINUS_SRC_COLOR,e.ONE,e.ONE_MINUS_SRC_COLOR],t};var r=n(3)},function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(246),i=(r=o)&&r.__esModule?r:{default:r};var a=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.activeState=new Uint8Array(16),this.defaultState=new Uint8Array(16),this.defaultState[0]=1,this.stackIndex=0,this.stack=[],this.gl=t,this.maxAttribs=t.getParameter(t.MAX_VERTEX_ATTRIBS),this.attribState={tempAttribState:new Array(this.maxAttribs),attribState:new Array(this.maxAttribs)},this.blendModes=(0,i.default)(t),this.nativeVaoExtension=t.getExtension("OES_vertex_array_object")||t.getExtension("MOZ_OES_vertex_array_object")||t.getExtension("WEBKIT_OES_vertex_array_object")}return e.prototype.push=function(){var e=this.stack[this.stackIndex];e||(e=this.stack[this.stackIndex]=new Uint8Array(16)),++this.stackIndex;for(var t=0;t<this.activeState.length;t++)e[t]=this.activeState[t]},e.prototype.pop=function(){var e=this.stack[--this.stackIndex];this.setState(e)},e.prototype.setState=function(e){this.setBlend(e[0]),this.setDepthTest(e[1]),this.setFrontFace(e[2]),this.setCullFace(e[3]),this.setBlendMode(e[4])},e.prototype.setBlend=function(e){e=e?1:0,this.activeState[0]!==e&&(this.activeState[0]=e,this.gl[e?"enable":"disable"](this.gl.BLEND))},e.prototype.setBlendMode=function(e){if(e!==this.activeState[4]){this.activeState[4]=e;var t=this.blendModes[e];2===t.length?this.gl.blendFunc(t[0],t[1]):this.gl.blendFuncSeparate(t[0],t[1],t[2],t[3])}},e.prototype.setDepthTest=function(e){e=e?1:0,this.activeState[1]!==e&&(this.activeState[1]=e,this.gl[e?"enable":"disable"](this.gl.DEPTH_TEST))},e.prototype.setCullFace=function(e){e=e?1:0,this.activeState[3]!==e&&(this.activeState[3]=e,this.gl[e?"enable":"disable"](this.gl.CULL_FACE))},e.prototype.setFrontFace=function(e){e=e?1:0,this.activeState[2]!==e&&(this.activeState[2]=e,this.gl.frontFace(this.gl[e?"CW":"CCW"]))},e.prototype.resetAttributes=function(){for(var e=0;e<this.attribState.tempAttribState.length;e++)this.attribState.tempAttribState[e]=0;for(var t=0;t<this.attribState.attribState.length;t++)this.attribState.attribState[t]=0;for(var n=1;n<this.maxAttribs;n++)this.gl.disableVertexAttribArray(n)},e.prototype.resetToDefault=function(){this.nativeVaoExtension&&this.nativeVaoExtension.bindVertexArrayOES(null),this.resetAttributes();for(var e=0;e<this.activeState.length;++e)this.activeState[e]=32;this.gl.pixelStorei(this.gl.UNPACK_FLIP_Y_WEBGL,!1),this.setState(this.defaultState)},e}();t.default=a},function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(3),i=n(7),a=(r=i)&&r.__esModule?r:{default:r};var s=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.renderer=t,this.count=0,this.checkCount=0,this.maxIdle=a.default.GC_MAX_IDLE,this.checkCountMax=a.default.GC_MAX_CHECK_COUNT,this.mode=a.default.GC_MODE}return e.prototype.update=function(){this.count++,this.mode!==o.GC_MODES.MANUAL&&(this.checkCount++,this.checkCount>this.checkCountMax&&(this.checkCount=0,this.run()))},e.prototype.run=function(){for(var e=this.renderer.textureManager,t=e._managedTextures,n=!1,r=0;r<t.length;r++){var o=t[r];!o._glRenderTargets&&this.count-o.touched>this.maxIdle&&(e.destroyTexture(o,!0),t[r]=null,n=!0)}if(n){for(var i=0,a=0;a<t.length;a++)null!==t[a]&&(t[i++]=t[a]);t.length=i}},e.prototype.unload=function(e){var t=this.renderer.textureManager;e._texture&&e._texture._glRenderTargets&&t.destroyTexture(e._texture,!0);for(var n=e.children.length-1;n>=0;n--)this.unload(e.children[n])},e}();t.default=s},function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(10),i=n(3),a=n(36),s=(r=a)&&r.__esModule?r:{default:r},u=n(5);var l=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.renderer=t,this.gl=t.gl,this._managedTextures=[]}return e.prototype.bindTexture=function(){},e.prototype.getTexture=function(){},e.prototype.updateTexture=function(e,t){var n=this.gl,r=!!e._glRenderTargets;if(!e.hasLoaded)return null;var a=this.renderer.boundTextures;if(void 0===t){t=0;for(var u=0;u<a.length;++u)if(a[u]===e){t=u;break}}a[t]=e,n.activeTexture(n.TEXTURE0+t);var l=e._glTextures[this.renderer.CONTEXT_UID];if(l)r?e._glRenderTargets[this.renderer.CONTEXT_UID].resize(e.width,e.height):l.upload(e.source);else{if(r){var c=new s.default(this.gl,e.width,e.height,e.scaleMode,e.resolution);c.resize(e.width,e.height),e._glRenderTargets[this.renderer.CONTEXT_UID]=c,l=c.texture}else(l=new o.GLTexture(this.gl,null,null,null,null)).bind(t),l.premultiplyAlpha=!0,l.upload(e.source);e._glTextures[this.renderer.CONTEXT_UID]=l,e.on("update",this.updateTexture,this),e.on("dispose",this.destroyTexture,this),this._managedTextures.push(e),e.isPowerOfTwo?(e.mipmap&&l.enableMipmap(),e.wrapMode===i.WRAP_MODES.CLAMP?l.enableWrapClamp():e.wrapMode===i.WRAP_MODES.REPEAT?l.enableWrapRepeat():l.enableWrapMirrorRepeat()):l.enableWrapClamp(),e.scaleMode===i.SCALE_MODES.NEAREST?l.enableNearestScaling():l.enableLinearScaling()}return l},e.prototype.destroyTexture=function(e,t){if((e=e.baseTexture||e).hasLoaded){var n=this.renderer.CONTEXT_UID,r=e._glTextures,o=e._glRenderTargets;if(r[n]&&(this.renderer.unbindTexture(e),r[n].destroy(),e.off("update",this.updateTexture,this),e.off("dispose",this.destroyTexture,this),delete r[n],!t)){var i=this._managedTextures.indexOf(e);-1!==i&&(0,u.removeItems)(this._managedTextures,i,1)}o&&o[n]&&(o[n].destroy(),delete o[n])}},e.prototype.removeAll=function(){for(var e=0;e<this._managedTextures.length;++e){var t=this._managedTextures[e];t._glTextures[this.renderer.CONTEXT_UID]&&delete t._glTextures[this.renderer.CONTEXT_UID]}},e.prototype.destroy=function(){for(var e=0;e<this._managedTextures.length;++e){var t=this._managedTextures[e];this.destroyTexture(t,!0),t.off("update",this.updateTexture,this),t.off("dispose",this.destroyTexture,this)}this._managedTextures=null},e}();t.default=l},function(e,t,n){"use strict";t.__esModule=!0,t.calculateScreenSpaceMatrix=function(e,t,n){var r=e.identity();return r.translate(t.x/n.width,t.y/n.height),r.scale(n.width,n.height),r},t.calculateNormalizedScreenSpaceMatrix=function(e,t,n){var r=e.identity();r.translate(t.x/n.width,t.y/n.height);var o=n.width/t.width,i=n.height/t.height;return r.scale(o,i),r},t.calculateSpriteMatrix=function(e,t,n,o){var i=o._texture.orig,a=e.set(n.width,0,0,n.height,t.x,t.y),s=o.worldTransform.copy(r.Matrix.TEMP_MATRIX);return s.invert(),a.prepend(s),a.scale(1/i.width,1/i.height),a.translate(o.anchor.x,o.anchor.y),a};var r=n(9)},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.__esModule=!0;var o=d(n(28)),i=d(n(36)),a=d(n(107)),s=n(9),u=d(n(27)),l=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(250)),c=d(n(55));function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var h=function e(){f(this,e),this.renderTarget=null,this.sourceFrame=new s.Rectangle,this.destinationFrame=new s.Rectangle,this.filters=[],this.target=null,this.resolution=1},p=function(e){function t(n){f(this,t);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":r(t))&&"function"!=typeof t?e:t}(this,e.call(this,n));return o.gl=o.renderer.gl,o.quad=new a.default(o.gl,n.state.attribState),o.shaderCache={},o.pool={},o.filterData=null,o.managedFilters=[],o.renderer.on("prerender",o.onPrerender,o),o._screenWidth=n.view.width,o._screenHeight=n.view.height,o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":r(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.pushFilter=function(e,t){var n=this.renderer,r=this.filterData;if(!r){r=this.renderer._activeRenderTarget.filterStack;var o=new h;o.sourceFrame=o.destinationFrame=this.renderer._activeRenderTarget.size,o.renderTarget=n._activeRenderTarget,this.renderer._activeRenderTarget.filterData=r={index:0,stack:[o]},this.filterData=r}var i=r.stack[++r.index],a=r.stack[0].destinationFrame;i||(i=r.stack[r.index]=new h);var s=e.filterArea&&0===e.filterArea.x&&0===e.filterArea.y&&e.filterArea.width===n.screen.width&&e.filterArea.height===n.screen.height,u=t[0].resolution,l=0|t[0].padding,c=s?n.screen:e.filterArea||e.getBounds(!0),d=i.sourceFrame,f=i.destinationFrame;d.x=(c.x*u|0)/u,d.y=(c.y*u|0)/u,d.width=(c.width*u|0)/u,d.height=(c.height*u|0)/u,s||(r.stack[0].renderTarget.transform||t[0].autoFit&&d.fit(a),d.pad(l)),f.width=d.width,f.height=d.height;var p=this.getPotRenderTarget(n.gl,d.width,d.height,u);i.target=e,i.filters=t,i.resolution=u,i.renderTarget=p,p.setFrame(f,d),n.bindRenderTarget(p),p.clear()},t.prototype.popFilter=function(){var e=this.filterData,t=e.stack[e.index-1],n=e.stack[e.index];this.quad.map(n.renderTarget.size,n.sourceFrame).upload();var r=n.filters;if(1===r.length)r[0].apply(this,n.renderTarget,t.renderTarget,!1,n),this.freePotRenderTarget(n.renderTarget);else{var o=n.renderTarget,i=this.getPotRenderTarget(this.renderer.gl,n.sourceFrame.width,n.sourceFrame.height,n.resolution);i.setFrame(n.destinationFrame,n.sourceFrame),i.clear();var a=0;for(a=0;a<r.length-1;++a){r[a].apply(this,o,i,!0,n);var s=o;o=i,i=s}r[a].apply(this,o,t.renderTarget,!1,n),this.freePotRenderTarget(o),this.freePotRenderTarget(i)}e.index--,0===e.index&&(this.filterData=null)},t.prototype.applyFilter=function(e,t,n,r){var o=this.renderer,i=o.gl,a=e.glShaders[o.CONTEXT_UID];a||(e.glShaderKey?(a=this.shaderCache[e.glShaderKey])||(a=new u.default(this.gl,e.vertexSrc,e.fragmentSrc),e.glShaders[o.CONTEXT_UID]=this.shaderCache[e.glShaderKey]=a,this.managedFilters.push(e)):(a=e.glShaders[o.CONTEXT_UID]=new u.default(this.gl,e.vertexSrc,e.fragmentSrc),this.managedFilters.push(e)),o.bindVao(null),this.quad.initVao(a)),o.bindVao(this.quad.vao),o.bindRenderTarget(n),r&&(i.disable(i.SCISSOR_TEST),o.clear(),i.enable(i.SCISSOR_TEST)),n===o.maskManager.scissorRenderTarget&&o.maskManager.pushScissorMask(null,o.maskManager.scissorData),o.bindShader(a);var s=this.renderer.emptyTextures[0];this.renderer.boundTextures[0]=s,this.syncUniforms(a,e),o.state.setBlendMode(e.blendMode),i.activeTexture(i.TEXTURE0),i.bindTexture(i.TEXTURE_2D,t.texture.texture),this.quad.vao.draw(this.renderer.gl.TRIANGLES,6,0),i.bindTexture(i.TEXTURE_2D,s._glTextures[this.renderer.CONTEXT_UID].texture)},t.prototype.syncUniforms=function(e,t){var n=t.uniformData,r=t.uniforms,o=1,i=void 0;if(e.uniforms.filterArea){i=this.filterData.stack[this.filterData.index];var a=e.uniforms.filterArea;a[0]=i.renderTarget.size.width,a[1]=i.renderTarget.size.height,a[2]=i.sourceFrame.x,a[3]=i.sourceFrame.y,e.uniforms.filterArea=a}if(e.uniforms.filterClamp){i=i||this.filterData.stack[this.filterData.index];var s=e.uniforms.filterClamp;s[0]=0,s[1]=0,s[2]=(i.sourceFrame.width-1)/i.renderTarget.size.width,s[3]=(i.sourceFrame.height-1)/i.renderTarget.size.height,e.uniforms.filterClamp=s}for(var u in n){var l=n[u].type;if("sampler2d"===l&&0!==r[u]){if(r[u].baseTexture)e.uniforms[u]=this.renderer.bindTexture(r[u].baseTexture,o);else{e.uniforms[u]=o;var c=this.renderer.gl;this.renderer.boundTextures[o]=this.renderer.emptyTextures[o],c.activeTexture(c.TEXTURE0+o),r[u].texture.bind()}o++}else if("mat3"===l)void 0!==r[u].a?e.uniforms[u]=r[u].toArray(!0):e.uniforms[u]=r[u];else if("vec2"===l)if(void 0!==r[u].x){var d=e.uniforms[u]||new Float32Array(2);d[0]=r[u].x,d[1]=r[u].y,e.uniforms[u]=d}else e.uniforms[u]=r[u];else"float"===l?e.uniforms.data[u].value!==n[u]&&(e.uniforms[u]=r[u]):e.uniforms[u]=r[u]}},t.prototype.getRenderTarget=function(e,t){var n=this.filterData.stack[this.filterData.index],r=this.getPotRenderTarget(this.renderer.gl,n.sourceFrame.width,n.sourceFrame.height,t||n.resolution);return r.setFrame(n.destinationFrame,n.sourceFrame),r},t.prototype.returnRenderTarget=function(e){this.freePotRenderTarget(e)},t.prototype.calculateScreenSpaceMatrix=function(e){var t=this.filterData.stack[this.filterData.index];return l.calculateScreenSpaceMatrix(e,t.sourceFrame,t.renderTarget.size)},t.prototype.calculateNormalizedScreenSpaceMatrix=function(e){var t=this.filterData.stack[this.filterData.index];return l.calculateNormalizedScreenSpaceMatrix(e,t.sourceFrame,t.renderTarget.size,t.destinationFrame)},t.prototype.calculateSpriteMatrix=function(e,t){var n=this.filterData.stack[this.filterData.index];return l.calculateSpriteMatrix(e,n.sourceFrame,n.renderTarget.size,t)},t.prototype.destroy=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.renderer,n=this.managedFilters;t.off("prerender",this.onPrerender,this);for(var r=0;r<n.length;r++)e||n[r].glShaders[t.CONTEXT_UID].destroy(),delete n[r].glShaders[t.CONTEXT_UID];this.shaderCache={},e?this.pool={}:this.emptyPool()},t.prototype.getPotRenderTarget=function(e,t,n,r){var o="screen";n*=r,(t*=r)===this._screenWidth&&n===this._screenHeight||(o=(65535&(t=c.default.nextPow2(t)))<<16|65535&(n=c.default.nextPow2(n))),this.pool[o]||(this.pool[o]=[]);var a=this.pool[o].pop();if(!a){var s=this.renderer.boundTextures[0];e.activeTexture(e.TEXTURE0),a=new i.default(e,t,n,null,1),e.bindTexture(e.TEXTURE_2D,s._glTextures[this.renderer.CONTEXT_UID].texture)}return a.resolution=r,a.defaultFrame.width=a.size.width=t/r,a.defaultFrame.height=a.size.height=n/r,a},t.prototype.emptyPool=function(){for(var e in this.pool){var t=this.pool[e];if(t)for(var n=0;n<t.length;n++)t[n].destroy(!0)}this.pool={}},t.prototype.freePotRenderTarget=function(e){var t=e.size.width*e.resolution,n=e.size.height*e.resolution,r="screen";t===this._screenWidth&&n===this._screenHeight||(r=(65535&t)<<16|65535&n),this.pool[r].push(e)},t.prototype.onPrerender=function(){if(this._screenWidth!==this.renderer.view.width||this._screenHeight!==this.renderer.view.height){this._screenWidth=this.renderer.view.width,this._screenHeight=this.renderer.view.height;var e=this.pool.screen;if(e)for(var t=0;t<e.length;t++)e[t].destroy(!0);this.pool.screen=[]}},t}(o.default);t.default=p},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.__esModule=!0;var o,i=n(28),a=(o=i)&&o.__esModule?o:{default:o};var s=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":r(t))&&"function"!=typeof t?e:t}(this,e.call(this,n));return o.stencilMaskStack=null,o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":r(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.setMaskStack=function(e){this.stencilMaskStack=e;var t=this.renderer.gl;0===e.length?t.disable(t.STENCIL_TEST):t.enable(t.STENCIL_TEST)},t.prototype.pushStencil=function(e){this.renderer.setObjectRenderer(this.renderer.plugins.graphics),this.renderer._activeRenderTarget.attachStencilBuffer();var t=this.renderer.gl,n=this.stencilMaskStack.length;0===n&&t.enable(t.STENCIL_TEST),this.stencilMaskStack.push(e),t.colorMask(!1,!1,!1,!1),t.stencilFunc(t.EQUAL,n,this._getBitwiseMask()),t.stencilOp(t.KEEP,t.KEEP,t.INCR),this.renderer.plugins.graphics.render(e),this._useCurrent()},t.prototype.popStencil=function(){this.renderer.setObjectRenderer(this.renderer.plugins.graphics);var e=this.renderer.gl,t=this.stencilMaskStack.pop();0===this.stencilMaskStack.length?(e.disable(e.STENCIL_TEST),e.clear(e.STENCIL_BUFFER_BIT),e.clearStencil(0)):(e.colorMask(!1,!1,!1,!1),e.stencilOp(e.KEEP,e.KEEP,e.DECR),this.renderer.plugins.graphics.render(t),this._useCurrent())},t.prototype._useCurrent=function(){var e=this.renderer.gl;e.colorMask(!0,!0,!0,!0),e.stencilFunc(e.EQUAL,this.stencilMaskStack.length,this._getBitwiseMask()),e.stencilOp(e.KEEP,e.KEEP,e.KEEP)},t.prototype._getBitwiseMask=function(){return(1<<this.stencilMaskStack.length)-1},t.prototype.destroy=function(){a.default.prototype.destroy.call(this),this.stencilMaskStack.stencilStack=null},t}(a.default);t.default=s},function(e,t,n){"use strict";var r,o,i=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function u(e){if(r===setTimeout)return setTimeout(e,0);if((r===a||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:a}catch(e){r=a}try{o="function"==typeof clearTimeout?clearTimeout:s}catch(e){o=s}}();var l,c=[],d=!1,f=-1;function h(){d&&l&&(d=!1,l.length?c=l.concat(c):f=-1,c.length&&p())}function p(){if(!d){var e=u(h);d=!0;for(var t=c.length;t;){for(l=c,c=[];++f<t;)l&&l[f].run();f=-1,t=c.length}l=null,d=!1,function(e){if(o===clearTimeout)return clearTimeout(e);if((o===s||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(e);try{o(e)}catch(t){try{return o.call(null,e)}catch(t){return o.call(this,e)}}}(e)}}function y(e,t){this.fun=e,this.array=t}function v(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new y(e,t)),1!==c.length||d||u(p)},y.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=v,i.addListener=v,i.once=v,i.off=v,i.removeListener=v,i.removeAllListeners=v,i.emit=v,i.prependListener=v,i.prependOnceListener=v,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t,n){var r=a(e),o=a(t);return Object.assign(r,o)};var r,o=n(10);var i=((r=o)&&r.__esModule?r:{default:r}).default.shader.defaultValue;function a(e){for(var t=new RegExp("^(projectionMatrix|uSampler|filterArea|filterClamp)$"),n={},r=void 0,o=e.replace(/\s+/g," ").split(/\s*;\s*/),a=0;a<o.length;a++){var s=o[a].trim();if(s.indexOf("uniform")>-1){var u=s.split(" "),l=u[1],c=u[2],d=1;c.indexOf("[")>-1&&(c=(r=c.split(/\[|]/))[0],d*=Number(r[1])),c.match(t)||(n[c]={value:i(l,d),name:c,type:l})}}return n}},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.__esModule=!0;var o=a(n(28)),i=a(n(110));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":r(t))&&"function"!=typeof t?e:t}(this,e.call(this,n));return o.scissor=!1,o.scissorData=null,o.scissorRenderTarget=null,o.enableScissor=!0,o.alphaMaskPool=[],o.alphaMaskIndex=0,o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":r(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.pushMask=function(e,t){if(t.texture)this.pushSpriteMask(e,t);else if(this.enableScissor&&!this.scissor&&this.renderer._activeRenderTarget.root&&!this.renderer.stencilManager.stencilMaskStack.length&&t.isFastRect()){var n=t.worldTransform,r=Math.atan2(n.b,n.a);(r=Math.round(r*(180/Math.PI)))%90?this.pushStencilMask(t):this.pushScissorMask(e,t)}else this.pushStencilMask(t)},t.prototype.popMask=function(e,t){t.texture?this.popSpriteMask(e,t):this.enableScissor&&!this.renderer.stencilManager.stencilMaskStack.length?this.popScissorMask(e,t):this.popStencilMask(e,t)},t.prototype.pushSpriteMask=function(e,t){var n=this.alphaMaskPool[this.alphaMaskIndex];n||(n=this.alphaMaskPool[this.alphaMaskIndex]=[new i.default(t)]),n[0].resolution=this.renderer.resolution,n[0].maskSprite=t,e.filterArea=t.getBounds(!0),this.renderer.filterManager.pushFilter(e,n),this.alphaMaskIndex++},t.prototype.popSpriteMask=function(){this.renderer.filterManager.popFilter(),this.alphaMaskIndex--},t.prototype.pushStencilMask=function(e){this.renderer.currentRenderer.stop(),this.renderer.stencilManager.pushStencil(e)},t.prototype.popStencilMask=function(){this.renderer.currentRenderer.stop(),this.renderer.stencilManager.popStencil()},t.prototype.pushScissorMask=function(e,t){t.renderable=!0;var n=this.renderer._activeRenderTarget,r=t.getBounds();r.fit(n.size),t.renderable=!1,this.renderer.gl.enable(this.renderer.gl.SCISSOR_TEST);var o=this.renderer.resolution;this.renderer.gl.scissor(r.x*o,(n.root?n.size.height-r.y-r.height:r.y)*o,r.width*o,r.height*o),this.scissorRenderTarget=n,this.scissorData=t,this.scissor=!0},t.prototype.popScissorMask=function(){this.scissorRenderTarget=null,this.scissorData=null,this.scissor=!1;var e=this.renderer.gl;e.disable(e.SCISSOR_TEST)},t}(o.default);t.default=s},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.__esModule=!0;var o=p(n(38)),i=p(n(37)),a=p(n(51)),s=p(n(243)),u=p(n(242)),l=p(n(241)),c=p(n(7)),d=n(5),f=p(n(10)),h=p(n(55));function p(e){return e&&e.__esModule?e:{default:e}}var y=0,v=0,m=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":r(t))&&"function"!=typeof t?e:t}(this,e.call(this,n));o.vertSize=5,o.vertByteSize=4*o.vertSize,o.size=c.default.SPRITE_BATCH_SIZE,o.buffers=[];for(var i=1;i<=h.default.nextPow2(o.size);i*=2)o.buffers.push(new l.default(4*i*o.vertByteSize));o.indices=(0,a.default)(o.size),o.shader=null,o.currentIndex=0,o.groups=[];for(var s=0;s<o.size;s++)o.groups[s]={textures:[],textureCount:0,ids:[],size:0,start:0,blend:0};return o.sprites=[],o.vertexBuffers=[],o.vaos=[],o.vaoMax=2,o.vertexCount=0,o.renderer.on("prerender",o.onPrerender,o),o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":r(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.onContextChange=function(){var e=this.renderer.gl;this.renderer.legacy?this.MAX_TEXTURES=1:(this.MAX_TEXTURES=Math.min(e.getParameter(e.MAX_TEXTURE_IMAGE_UNITS),c.default.SPRITE_MAX_TEXTURES),this.MAX_TEXTURES=(0,u.default)(this.MAX_TEXTURES,e)),this.shader=(0,s.default)(e,this.MAX_TEXTURES),this.indexBuffer=f.default.GLBuffer.createIndexBuffer(e,this.indices,e.STATIC_DRAW),this.renderer.bindVao(null);for(var t=this.shader.attributes,n=0;n<this.vaoMax;n++){var r=this.vertexBuffers[n]=f.default.GLBuffer.createVertexBuffer(e,null,e.STREAM_DRAW),o=this.renderer.createVao().addIndex(this.indexBuffer).addAttribute(r,t.aVertexPosition,e.FLOAT,!1,this.vertByteSize,0).addAttribute(r,t.aTextureCoord,e.UNSIGNED_SHORT,!0,this.vertByteSize,8).addAttribute(r,t.aColor,e.UNSIGNED_BYTE,!0,this.vertByteSize,12);t.aTextureId&&o.addAttribute(r,t.aTextureId,e.FLOAT,!1,this.vertByteSize,16),this.vaos[n]=o}this.vao=this.vaos[0],this.currentBlendMode=99999,this.boundTextures=new Array(this.MAX_TEXTURES)},t.prototype.onPrerender=function(){this.vertexCount=0},t.prototype.render=function(e){this.currentIndex>=this.size&&this.flush(),e._texture._uvs&&(this.sprites[this.currentIndex++]=e)},t.prototype.flush=function(){if(0!==this.currentIndex){var e=this.renderer.gl,t=this.MAX_TEXTURES,n=h.default.nextPow2(this.currentIndex),r=h.default.log2(n),o=this.buffers[r],i=this.sprites,a=this.groups,s=o.float32View,u=o.uint32View,l=this.boundTextures,p=this.renderer.boundTextures,m=this.renderer.textureGC.count,g=0,b=void 0,_=void 0,x=1,w=0,E=a[0],S=void 0,T=void 0,O=d.premultiplyBlendMode[i[0]._texture.baseTexture.premultipliedAlpha?1:0][i[0].blendMode];E.textureCount=0,E.start=0,E.blend=O,y++;var C=void 0;for(C=0;C<t;++C){var P=p[C];P._enabled!==y?(l[C]=P,P._virtalBoundId=C,P._enabled=y):l[C]=this.renderer.emptyTextures[C]}for(y++,C=0;C<this.currentIndex;++C){var M=i[C];b=M._texture.baseTexture;var k=d.premultiplyBlendMode[Number(b.premultipliedAlpha)][M.blendMode];if(O!==k&&(O=k,_=null,w=t,y++),_!==b&&(_=b,b._enabled!==y)){if(w===t&&(y++,E.size=C-E.start,w=0,(E=a[x++]).blend=O,E.textureCount=0,E.start=C),b.touched=m,-1===b._virtalBoundId)for(var A=0;A<t;++A){var R=(A+v)%t,I=l[R];if(I._enabled!==y){v++,I._virtalBoundId=-1,b._virtalBoundId=R,l[R]=b;break}}b._enabled=y,E.textureCount++,E.ids[w]=b._virtalBoundId,E.textures[w++]=b}if(S=M.vertexData,T=M._texture._uvs.uvsUint32,this.renderer.roundPixels){var D=this.renderer.resolution;s[g]=(S[0]*D|0)/D,s[g+1]=(S[1]*D|0)/D,s[g+5]=(S[2]*D|0)/D,s[g+6]=(S[3]*D|0)/D,s[g+10]=(S[4]*D|0)/D,s[g+11]=(S[5]*D|0)/D,s[g+15]=(S[6]*D|0)/D,s[g+16]=(S[7]*D|0)/D}else s[g]=S[0],s[g+1]=S[1],s[g+5]=S[2],s[g+6]=S[3],s[g+10]=S[4],s[g+11]=S[5],s[g+15]=S[6],s[g+16]=S[7];u[g+2]=T[0],u[g+7]=T[1],u[g+12]=T[2],u[g+17]=T[3];var j=Math.min(M.worldAlpha,1),N=j<1&&b.premultipliedAlpha?(0,d.premultiplyTint)(M._tintRGB,j):M._tintRGB+(255*j<<24);u[g+3]=u[g+8]=u[g+13]=u[g+18]=N,s[g+4]=s[g+9]=s[g+14]=s[g+19]=b._virtalBoundId,g+=20}if(E.size=C-E.start,c.default.CAN_UPLOAD_SAME_BUFFER)this.vertexBuffers[this.vertexCount].upload(o.vertices,0,!0);else{if(this.vaoMax<=this.vertexCount){this.vaoMax++;var L=this.shader.attributes,F=this.vertexBuffers[this.vertexCount]=f.default.GLBuffer.createVertexBuffer(e,null,e.STREAM_DRAW),B=this.renderer.createVao().addIndex(this.indexBuffer).addAttribute(F,L.aVertexPosition,e.FLOAT,!1,this.vertByteSize,0).addAttribute(F,L.aTextureCoord,e.UNSIGNED_SHORT,!0,this.vertByteSize,8).addAttribute(F,L.aColor,e.UNSIGNED_BYTE,!0,this.vertByteSize,12);L.aTextureId&&B.addAttribute(F,L.aTextureId,e.FLOAT,!1,this.vertByteSize,16),this.vaos[this.vertexCount]=B}this.renderer.bindVao(this.vaos[this.vertexCount]),this.vertexBuffers[this.vertexCount].upload(o.vertices,0,!1),this.vertexCount++}for(C=0;C<t;++C)p[C]._virtalBoundId=-1;for(C=0;C<x;++C){for(var U=a[C],H=U.textureCount,W=0;W<H;W++)_=U.textures[W],p[U.ids[W]]!==_&&this.renderer.bindTexture(_,U.ids[W],!0),_._virtalBoundId=-1;this.renderer.state.setBlendMode(U.blend),e.drawElements(e.TRIANGLES,6*U.size,e.UNSIGNED_SHORT,6*U.start*2)}this.currentIndex=0}},t.prototype.start=function(){this.renderer.bindShader(this.shader),c.default.CAN_UPLOAD_SAME_BUFFER&&(this.renderer.bindVao(this.vaos[this.vertexCount]),this.vertexBuffers[this.vertexCount].bind())},t.prototype.stop=function(){this.flush()},t.prototype.destroy=function(){for(var t=0;t<this.vaoMax;t++)this.vertexBuffers[t]&&this.vertexBuffers[t].destroy(),this.vaos[t]&&this.vaos[t].destroy();this.indexBuffer&&this.indexBuffer.destroy(),this.renderer.off("prerender",this.onPrerender,this),e.prototype.destroy.call(this),this.shader&&(this.shader.destroy(),this.shader=null),this.vertexBuffers=null,this.vaos=null,this.indexBuffer=null,this.indices=null,this.sprites=null;for(var n=0;n<this.buffers.length;++n)this.buffers[n].destroy()},t}(o.default);t.default=m,i.default.registerPlugin("sprite",m)},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];(0,a.default)()?(e[o.BLEND_MODES.NORMAL]="source-over",e[o.BLEND_MODES.ADD]="lighter",e[o.BLEND_MODES.MULTIPLY]="multiply",e[o.BLEND_MODES.SCREEN]="screen",e[o.BLEND_MODES.OVERLAY]="overlay",e[o.BLEND_MODES.DARKEN]="darken",e[o.BLEND_MODES.LIGHTEN]="lighten",e[o.BLEND_MODES.COLOR_DODGE]="color-dodge",e[o.BLEND_MODES.COLOR_BURN]="color-burn",e[o.BLEND_MODES.HARD_LIGHT]="hard-light",e[o.BLEND_MODES.SOFT_LIGHT]="soft-light",e[o.BLEND_MODES.DIFFERENCE]="difference",e[o.BLEND_MODES.EXCLUSION]="exclusion",e[o.BLEND_MODES.HUE]="hue",e[o.BLEND_MODES.SATURATION]="saturate",e[o.BLEND_MODES.COLOR]="color",e[o.BLEND_MODES.LUMINOSITY]="luminosity"):(e[o.BLEND_MODES.NORMAL]="source-over",e[o.BLEND_MODES.ADD]="lighter",e[o.BLEND_MODES.MULTIPLY]="source-over",e[o.BLEND_MODES.SCREEN]="source-over",e[o.BLEND_MODES.OVERLAY]="source-over",e[o.BLEND_MODES.DARKEN]="source-over",e[o.BLEND_MODES.LIGHTEN]="source-over",e[o.BLEND_MODES.COLOR_DODGE]="source-over",e[o.BLEND_MODES.COLOR_BURN]="source-over",e[o.BLEND_MODES.HARD_LIGHT]="source-over",e[o.BLEND_MODES.SOFT_LIGHT]="source-over",e[o.BLEND_MODES.DIFFERENCE]="source-over",e[o.BLEND_MODES.EXCLUSION]="source-over",e[o.BLEND_MODES.HUE]="source-over",e[o.BLEND_MODES.SATURATION]="source-over",e[o.BLEND_MODES.COLOR]="source-over",e[o.BLEND_MODES.LUMINOSITY]="source-over");return e[o.BLEND_MODES.NORMAL_NPM]=e[o.BLEND_MODES.NORMAL],e[o.BLEND_MODES.ADD_NPM]=e[o.BLEND_MODES.ADD],e[o.BLEND_MODES.SCREEN_NPM]=e[o.BLEND_MODES.SCREEN],e};var r,o=n(3),i=n(111),a=(r=i)&&r.__esModule?r:{default:r}},function(e,t,n){"use strict";t.__esModule=!0;var r=n(3);var o=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.renderer=t}return e.prototype.pushMask=function(e){var t=this.renderer;t.context.save();var n=e.alpha,r=e.transform.worldTransform,o=t.resolution;t.context.setTransform(r.a*o,r.b*o,r.c*o,r.d*o,r.tx*o,r.ty*o),e._texture||(this.renderGraphicsShape(e),t.context.clip()),e.worldAlpha=n},e.prototype.renderGraphicsShape=function(e){var t=this.renderer.context,n=e.graphicsData.length;if(0!==n){t.beginPath();for(var o=0;o<n;o++){var i=e.graphicsData[o],a=i.shape;if(i.type===r.SHAPES.POLY){var s=a.points;t.moveTo(s[0],s[1]);for(var u=1;u<s.length/2;u++)t.lineTo(s[2*u],s[2*u+1]);s[0]===s[s.length-2]&&s[1]===s[s.length-1]&&t.closePath()}else if(i.type===r.SHAPES.RECT)t.rect(a.x,a.y,a.width,a.height),t.closePath();else if(i.type===r.SHAPES.CIRC)t.arc(a.x,a.y,a.radius,0,2*Math.PI),t.closePath();else if(i.type===r.SHAPES.ELIP){var l=2*a.width,c=2*a.height,d=a.x-l/2,f=a.y-c/2,h=l/2*.5522848,p=c/2*.5522848,y=d+l,v=f+c,m=d+l/2,g=f+c/2;t.moveTo(d,g),t.bezierCurveTo(d,g-p,m-h,f,m,f),t.bezierCurveTo(m+h,f,y,g-p,y,g),t.bezierCurveTo(y,g+p,m+h,v,m,v),t.bezierCurveTo(m-h,v,d,g+p,d,g),t.closePath()}else if(i.type===r.SHAPES.RREC){var b=a.x,_=a.y,x=a.width,w=a.height,E=a.radius,S=Math.min(x,w)/2|0;E=E>S?S:E,t.moveTo(b,_+E),t.lineTo(b,_+w-E),t.quadraticCurveTo(b,_+w,b+E,_+w),t.lineTo(b+x-E,_+w),t.quadraticCurveTo(b+x,_+w,b+x,_+w-E),t.lineTo(b+x,_+E),t.quadraticCurveTo(b+x,_,b+x-E,_),t.lineTo(b+E,_),t.quadraticCurveTo(b,_,b,_+E),t.closePath()}}}},e.prototype.popMask=function(e){e.context.restore(),e.invalidateBlendMode()},e.prototype.destroy=function(){},e}();t.default=o},function(e,t,n){"use strict";t.__esModule=!0;var r=s(n(29)),o=n(3),i=n(9),a=s(n(52));function s(e){return e&&e.__esModule?e:{default:e}}var u=new i.Matrix,l=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.renderer=t}return e.prototype.render=function(e){var t=e._texture,n=this.renderer,r=t._frame.width,s=t._frame.height,l=e.transform.worldTransform,c=0,d=0;if(!(t.orig.width<=0||t.orig.height<=0)&&t.baseTexture.source&&(n.setBlendMode(e.blendMode),t.valid)){n.context.globalAlpha=e.worldAlpha;var f=t.baseTexture.scaleMode===o.SCALE_MODES.LINEAR;n.smoothProperty&&n.context[n.smoothProperty]!==f&&(n.context[n.smoothProperty]=f),t.trim?(c=t.trim.width/2+t.trim.x-e.anchor.x*t.orig.width,d=t.trim.height/2+t.trim.y-e.anchor.y*t.orig.height):(c=(.5-e.anchor.x)*t.orig.width,d=(.5-e.anchor.y)*t.orig.height),t.rotate&&(l.copy(u),l=u,i.GroupD8.matrixAppendRotationInv(l,t.rotate,c,d),c=0,d=0),c-=r/2,d-=s/2,n.roundPixels?(n.context.setTransform(l.a,l.b,l.c,l.d,l.tx*n.resolution|0,l.ty*n.resolution|0),c|=0,d|=0):n.context.setTransform(l.a,l.b,l.c,l.d,l.tx*n.resolution,l.ty*n.resolution);var h=t.baseTexture.resolution;16777215!==e.tint?(e.cachedTint===e.tint&&e.tintedTexture.tintId===e._texture._updateID||(e.cachedTint=e.tint,e.tintedTexture=a.default.getTintedTexture(e,e.tint)),n.context.drawImage(e.tintedTexture,0,0,r*h,s*h,c*n.resolution,d*n.resolution,r*n.resolution,s*n.resolution)):n.context.drawImage(t.baseTexture.source,t._frame.x*h,t._frame.y*h,r*h,s*h,c*n.resolution,d*n.resolution,r*n.resolution,s*n.resolution)}},e.prototype.destroy=function(){this.renderer=null},e}();t.default=l,r.default.registerPlugin("sprite",l)},function(e,t,n){"use strict";t.__esModule=!0;var r=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.fn=t,this.context=n,this.priority=r,this.once=o,this.next=null,this.previous=null,this._destroyed=!1}return e.prototype.match=function(e,t){return t=t||null,this.fn===e&&this.context===t},e.prototype.emit=function(e){this.fn&&(this.context?this.fn.call(this.context,e):this.fn(e));var t=this.next;return this.once&&this.destroy(!0),this._destroyed&&(this.next=null),t},e.prototype.connect=function(e){this.previous=e,e.next&&(e.next.previous=this),this.next=e.next,e.next=this},e.prototype.destroy=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._destroyed=!0,this.fn=null,this.context=null,this.previous&&(this.previous.next=this.next),this.next&&(this.next.previous=this.previous);var t=this.previous;return this.next=e?null:t,this.previous=null,t},e}();t.default=r},function(e,t,n){"use strict";t.__esModule=!0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=s(n(7)),i=n(3),a=s(n(260));function s(e){return e&&e.__esModule?e:{default:e}}var u=function(){function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._head=new a.default(null,null,1/0),this._requestId=null,this._maxElapsedMS=100,this.autoStart=!1,this.deltaTime=1,this.elapsedMS=1/o.default.TARGET_FPMS,this.lastTime=-1,this.speed=1,this.started=!1,this._tick=function(e){t._requestId=null,t.started&&(t.update(e),t.started&&null===t._requestId&&t._head.next&&(t._requestId=requestAnimationFrame(t._tick)))}}return e.prototype._requestIfNeeded=function(){null===this._requestId&&this._head.next&&(this.lastTime=performance.now(),this._requestId=requestAnimationFrame(this._tick))},e.prototype._cancelIfNeeded=function(){null!==this._requestId&&(cancelAnimationFrame(this._requestId),this._requestId=null)},e.prototype._startIfPossible=function(){this.started?this._requestIfNeeded():this.autoStart&&this.start()},e.prototype.add=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i.UPDATE_PRIORITY.NORMAL;return this._addListener(new a.default(e,t,n))},e.prototype.addOnce=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i.UPDATE_PRIORITY.NORMAL;return this._addListener(new a.default(e,t,n,!0))},e.prototype._addListener=function(e){var t=this._head.next,n=this._head;if(t){for(;t;){if(e.priority>t.priority){e.connect(n);break}n=t,t=t.next}e.previous||e.connect(n)}else e.connect(n);return this._startIfPossible(),this},e.prototype.remove=function(e,t){for(var n=this._head.next;n;)n=n.match(e,t)?n.destroy():n.next;return this._head.next||this._cancelIfNeeded(),this},e.prototype.start=function(){this.started||(this.started=!0,this._requestIfNeeded())},e.prototype.stop=function(){this.started&&(this.started=!1,this._cancelIfNeeded())},e.prototype.destroy=function(){this.stop();for(var e=this._head.next;e;)e=e.destroy(!0);this._head.destroy(),this._head=null},e.prototype.update=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:performance.now(),t=void 0;if(e>this.lastTime){(t=this.elapsedMS=e-this.lastTime)>this._maxElapsedMS&&(t=this._maxElapsedMS),this.deltaTime=t*o.default.TARGET_FPMS*this.speed;for(var n=this._head,r=n.next;r;)r=r.emit(this.deltaTime);n.next||this._cancelIfNeeded()}else this.deltaTime=this.elapsedMS=0;this.lastTime=e},r(e,[{key:"FPS",get:function(){return 1e3/this.elapsedMS}},{key:"minFPS",get:function(){return 1e3/this._maxElapsedMS},set:function(e){var t=Math.min(Math.max(0,e)/1e3,o.default.TARGET_FPMS);this._maxElapsedMS=1/t}}]),e}();t.default=u},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(e){switch(void 0===e?"undefined":r(e)){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,n,u){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"===(void 0===e?"undefined":r(e))?a(s(e),function(r){var s=encodeURIComponent(o(r))+n;return i(e[r])?a(e[r],function(e){return s+encodeURIComponent(o(e))}).join(t):s+encodeURIComponent(o(e[r]))}).join(t):u?encodeURIComponent(o(u))+n+encodeURIComponent(o(e)):""};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function a(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r<e.length;r++)n.push(t(e[r],r));return n}var s=Object.keys||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t}},function(e,t,n){"use strict";function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,n,i){t=t||"&",n=n||"=";var a={};if("string"!=typeof e||0===e.length)return a;var s=/\+/g;e=e.split(t);var u=1e3;i&&"number"==typeof i.maxKeys&&(u=i.maxKeys);var l=e.length;u>0&&l>u&&(l=u);for(var c=0;c<l;++c){var d,f,h,p,y=e[c].replace(s,"%20"),v=y.indexOf(n);v>=0?(d=y.substr(0,v),f=y.substr(v+1)):(d=y,f=""),h=decodeURIComponent(d),p=decodeURIComponent(f),r(a,h)?o(a[h])?a[h].push(p):a[h]=[a[h],p]:a[h]=p}return a};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},function(e,t,n){"use strict";t.decode=t.parse=n(263),t.encode=t.stringify=n(262)},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"===(void 0===e?"undefined":r(e))&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},function(e,t,n){"use strict";(function(e,r){var o,i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(a){var s="object"==i(t)&&t&&!t.nodeType&&t,u="object"==i(e)&&e&&!e.nodeType&&e,l="object"==(void 0===r?"undefined":i(r))&&r;l.global!==l&&l.window!==l&&l.self!==l||(a=l);var c,d,f=2147483647,h=36,p=1,y=26,v=38,m=700,g=72,b=128,_="-",x=/^xn--/,w=/[^\x20-\x7E]/,E=/[\x2E\u3002\uFF0E\uFF61]/g,S={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},T=h-p,O=Math.floor,C=String.fromCharCode;function P(e){throw new RangeError(S[e])}function M(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function k(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+M((e=e.replace(E,".")).split("."),t).join(".")}function A(e){for(var t,n,r=[],o=0,i=e.length;o<i;)(t=e.charCodeAt(o++))>=55296&&t<=56319&&o<i?56320==(64512&(n=e.charCodeAt(o++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),o--):r.push(t);return r}function R(e){return M(e,function(e){var t="";return e>65535&&(t+=C((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=C(e)}).join("")}function I(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function D(e,t,n){var r=0;for(e=n?O(e/m):e>>1,e+=O(e/t);e>T*y>>1;r+=h)e=O(e/T);return O(r+(T+1)*e/(e+v))}function j(e){var t,n,r,o,i,a,s,u,l,c,d,v=[],m=e.length,x=0,w=b,E=g;for((n=e.lastIndexOf(_))<0&&(n=0),r=0;r<n;++r)e.charCodeAt(r)>=128&&P("not-basic"),v.push(e.charCodeAt(r));for(o=n>0?n+1:0;o<m;){for(i=x,a=1,s=h;o>=m&&P("invalid-input"),((u=(d=e.charCodeAt(o++))-48<10?d-22:d-65<26?d-65:d-97<26?d-97:h)>=h||u>O((f-x)/a))&&P("overflow"),x+=u*a,!(u<(l=s<=E?p:s>=E+y?y:s-E));s+=h)a>O(f/(c=h-l))&&P("overflow"),a*=c;E=D(x-i,t=v.length+1,0==i),O(x/t)>f-w&&P("overflow"),w+=O(x/t),x%=t,v.splice(x++,0,w)}return R(v)}function N(e){var t,n,r,o,i,a,s,u,l,c,d,v,m,x,w,E=[];for(v=(e=A(e)).length,t=b,n=0,i=g,a=0;a<v;++a)(d=e[a])<128&&E.push(C(d));for(r=o=E.length,o&&E.push(_);r<v;){for(s=f,a=0;a<v;++a)(d=e[a])>=t&&d<s&&(s=d);for(s-t>O((f-n)/(m=r+1))&&P("overflow"),n+=(s-t)*m,t=s,a=0;a<v;++a)if((d=e[a])<t&&++n>f&&P("overflow"),d==t){for(u=n,l=h;!(u<(c=l<=i?p:l>=i+y?y:l-i));l+=h)w=u-c,x=h-c,E.push(C(I(c+w%x,0))),u=O(w/x);E.push(C(I(u,0))),i=D(n,m,r==o),n=0,++r}++n,++t}return E.join("")}if(c={version:"1.4.1",ucs2:{decode:A,encode:R},decode:j,encode:N,toASCII:function(e){return k(e,function(e){return w.test(e)?"xn--"+N(e):e})},toUnicode:function(e){return k(e,function(e){return x.test(e)?j(e.slice(4).toLowerCase()):e})}},"object"==i(n(117))&&n(117))void 0===(o=function(){return c}.call(t,n,t,e))||(e.exports=o);else if(s&&u)if(e.exports==s)u.exports=c;else for(d in c)c.hasOwnProperty(d)&&(s[d]=c[d]);else a.punycode=c}(void 0)}).call(this,n(33)(e),n(24))},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(){for(var e=[],t=[],n=0;n<32;n++)e[n]=n,t[n]=n;e[r.BLEND_MODES.NORMAL_NPM]=r.BLEND_MODES.NORMAL,e[r.BLEND_MODES.ADD_NPM]=r.BLEND_MODES.ADD,e[r.BLEND_MODES.SCREEN_NPM]=r.BLEND_MODES.SCREEN,t[r.BLEND_MODES.NORMAL]=r.BLEND_MODES.NORMAL_NPM,t[r.BLEND_MODES.ADD]=r.BLEND_MODES.ADD_NPM,t[r.BLEND_MODES.SCREEN]=r.BLEND_MODES.SCREEN_NPM;var o=[];return o.push(t),o.push(e),o};var r=n(3)},function(e,t,n){"use strict";e.exports=function(e,t,n){var r,o=e.length;if(!(t>=o||0===n)){var i=o-(n=t+n>o?o-t:n);for(r=t;r<i;++r)e[r]=e[r+n];e.length=i}}},function(e,t,n){"use strict";function r(e,t){if(e&&t)for(var n=Object.keys(t),r=0;r<n.length;++r){var o=n[r];Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(t,o))}}t.__esModule=!0,t.mixin=r,t.delayMixin=function(e,t){o.push(e,t)},t.performMixins=function(){for(var e=0;e<o.length;e+=2)r(o[e],o[e+1]);o.length=0};var o=[]},function(e,t,n){"use strict";t.__esModule=!0,t.default={mixin:function(e){!function(e){e.__plugins={},e.registerPlugin=function(t,n){e.__plugins[t]=n},e.prototype.initPlugins=function(){for(var t in this.plugins=this.plugins||{},e.__plugins)this.plugins[t]=new e.__plugins[t](this)},e.prototype.destroyPlugins=function(){for(var e in this.plugins)this.plugins[e].destroy(),this.plugins[e]=null;this.plugins=null}}(e)}}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(){return!(navigator.platform&&/iPad|iPhone|iPod/.test(navigator.platform))}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){if(i.default.tablet||i.default.phone)return 4;return e};var r,o=n(59),i=(r=o)&&r.__esModule?r:{default:r}},function(e,t,n){"use strict";e.exports={compileProgram:n(129),defaultValue:n(125),extractAttributes:n(128),extractUniforms:n(126),generateUniformAccessObject:n(123),setPrecision:n(124),mapSize:n(127),mapType:n(61)}},function(e,t,n){"use strict";var r=n(131);function o(e,t){if(this.nativeVaoExtension=null,o.FORCE_NATIVE||(this.nativeVaoExtension=e.getExtension("OES_vertex_array_object")||e.getExtension("MOZ_OES_vertex_array_object")||e.getExtension("WEBKIT_OES_vertex_array_object")),this.nativeState=t,this.nativeVaoExtension){this.nativeVao=this.nativeVaoExtension.createVertexArrayOES();var n=e.getParameter(e.MAX_VERTEX_ATTRIBS);this.nativeState={tempAttribState:new Array(n),attribState:new Array(n)}}this.gl=e,this.attributes=[],this.indexBuffer=null,this.dirty=!1}o.prototype.constructor=o,e.exports=o,o.FORCE_NATIVE=!1,o.prototype.bind=function(){if(this.nativeVao){if(this.nativeVaoExtension.bindVertexArrayOES(this.nativeVao),this.dirty)return this.dirty=!1,this.activate(),this;this.indexBuffer&&this.indexBuffer.bind()}else this.activate();return this},o.prototype.unbind=function(){return this.nativeVao&&this.nativeVaoExtension.bindVertexArrayOES(null),this},o.prototype.activate=function(){for(var e=this.gl,t=null,n=0;n<this.attributes.length;n++){var o=this.attributes[n];t!==o.buffer&&(o.buffer.bind(),t=o.buffer),e.vertexAttribPointer(o.attribute.location,o.attribute.size,o.type||e.FLOAT,o.normalized||!1,o.stride||0,o.start||0)}return r(e,this.attributes,this.nativeState),this.indexBuffer&&this.indexBuffer.bind(),this},o.prototype.addAttribute=function(e,t,n,r,o,i){return this.attributes.push({buffer:e,attribute:t,location:t.location,type:n||this.gl.FLOAT,normalized:r||!1,stride:o||0,start:i||0}),this.dirty=!0,this},o.prototype.addIndex=function(e){return this.indexBuffer=e,this.dirty=!0,this},o.prototype.clear=function(){return this.nativeVao&&this.nativeVaoExtension.bindVertexArrayOES(this.nativeVao),this.attributes.length=0,this.indexBuffer=null,this},o.prototype.draw=function(e,t,n){var r=this.gl;return this.indexBuffer?r.drawElements(e,t||this.indexBuffer.data.length,r.UNSIGNED_SHORT,2*(n||0)):r.drawArrays(e,n,t||this.getSize()),this},o.prototype.destroy=function(){this.gl=null,this.indexBuffer=null,this.attributes=null,this.nativeState=null,this.nativeVao&&this.nativeVaoExtension.deleteVertexArrayOES(this.nativeVao),this.nativeVaoExtension=null,this.nativeVao=null},o.prototype.getSize=function(){var e=this.attributes[0];return e.buffer.data.length/(e.stride/4||e.attribute.size)}},function(e,t,n){"use strict";var r=n(129),o=n(128),i=n(126),a=n(124),s=n(123),u=function(e,t,n,u,l){this.gl=e,u&&(t=a(t,u),n=a(n,u)),this.program=r(e,t,n,l),this.attributes=o(e,this.program),this.uniformData=i(e,this.program),this.uniforms=s(e,this.uniformData)};u.prototype.bind=function(){return this.gl.useProgram(this.program),this},u.prototype.destroy=function(){this.attributes=null,this.uniformData=null,this.uniforms=null,this.gl.deleteProgram(this.program)},e.exports=u},function(e,t,n){"use strict";var r=n(130),o=function(e,t,n){this.gl=e,this.framebuffer=e.createFramebuffer(),this.stencil=null,this.texture=null,this.width=t||100,this.height=n||100};o.prototype.enableTexture=function(e){var t=this.gl;this.texture=e||new r(t),this.texture.bind(),this.bind(),t.framebufferTexture2D(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,this.texture.texture,0)},o.prototype.enableStencil=function(){if(!this.stencil){var e=this.gl;this.stencil=e.createRenderbuffer(),e.bindRenderbuffer(e.RENDERBUFFER,this.stencil),e.framebufferRenderbuffer(e.FRAMEBUFFER,e.DEPTH_STENCIL_ATTACHMENT,e.RENDERBUFFER,this.stencil),e.renderbufferStorage(e.RENDERBUFFER,e.DEPTH_STENCIL,this.width,this.height)}},o.prototype.clear=function(e,t,n,r){this.bind();var o=this.gl;o.clearColor(e,t,n,r),o.clear(o.COLOR_BUFFER_BIT|o.DEPTH_BUFFER_BIT)},o.prototype.bind=function(){var e=this.gl;e.bindFramebuffer(e.FRAMEBUFFER,this.framebuffer)},o.prototype.unbind=function(){var e=this.gl;e.bindFramebuffer(e.FRAMEBUFFER,null)},o.prototype.resize=function(e,t){var n=this.gl;this.width=e,this.height=t,this.texture&&this.texture.uploadData(null,e,t),this.stencil&&(n.bindRenderbuffer(n.RENDERBUFFER,this.stencil),n.renderbufferStorage(n.RENDERBUFFER,n.DEPTH_STENCIL,e,t))},o.prototype.destroy=function(){var e=this.gl;this.texture&&this.texture.destroy(),e.deleteFramebuffer(this.framebuffer),this.gl=null,this.stencil=null,this.texture=null},o.createRGBA=function(e,t,n,i){var a=r.fromData(e,null,t,n);a.enableNearestScaling(),a.enableWrapClamp();var s=new o(e,t,n);return s.enableTexture(a),s.unbind(),s},o.createFloat32=function(e,t,n,i){var a=new r.fromData(e,i,t,n);a.enableNearestScaling(),a.enableWrapClamp();var s=new o(e,t,n);return s.enableTexture(a),s.unbind(),s},e.exports=o},function(e,t,n){"use strict";var r=new ArrayBuffer(0),o=function(e,t,n,o){this.gl=e,this.buffer=e.createBuffer(),this.type=t||e.ARRAY_BUFFER,this.drawType=o||e.STATIC_DRAW,this.data=r,n&&this.upload(n),this._updateID=0};o.prototype.upload=function(e,t,n){n||this.bind();var r=this.gl;e=e||this.data,t=t||0,this.data.byteLength>=e.byteLength?r.bufferSubData(this.type,t,e):r.bufferData(this.type,e,this.drawType),this.data=e},o.prototype.bind=function(){this.gl.bindBuffer(this.type,this.buffer)},o.createVertexBuffer=function(e,t,n){return new o(e,e.ARRAY_BUFFER,t,n)},o.createIndexBuffer=function(e,t,n){return new o(e,e.ELEMENT_ARRAY_BUFFER,t,n)},o.create=function(e,t,n,r){return new o(e,t,n,r)},o.prototype.destroy=function(){this.gl.deleteBuffer(this.buffer)},e.exports=o},function(e,t,n){"use strict";e.exports=function(e,t){var n=e.getContext("webgl",t)||e.getContext("experimental-webgl",t);if(!n)throw new Error("This browser does not support webGL. Try using the canvas renderer");return n}},function(e,t,n){"use strict";t.__esModule=!0;var r=n(3);var o=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:20;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.x=t,this.y=n,this.width=o,this.height=i,this.radius=a,this.type=r.SHAPES.RREC}return e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height,this.radius)},e.prototype.contains=function(e,t){if(this.width<=0||this.height<=0)return!1;if(e>=this.x&&e<=this.x+this.width&&t>=this.y&&t<=this.y+this.height){if(t>=this.y+this.radius&&t<=this.y+this.height-this.radius||e>=this.x+this.radius&&e<=this.x+this.width-this.radius)return!0;var n=e-(this.x+this.radius),r=t-(this.y+this.radius),o=this.radius*this.radius;if(n*n+r*r<=o)return!0;if((n=e-(this.x+this.width-this.radius))*n+r*r<=o)return!0;if(n*n+(r=t-(this.y+this.height-this.radius))*r<=o)return!0;if((n=e-(this.x+this.radius))*n+r*r<=o)return!0}return!1},e}();t.default=o},function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(64),i=(r=o)&&r.__esModule?r:{default:r},a=n(3);var s=function(){function e(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Array.isArray(n[0])&&(n=n[0]),n[0]instanceof i.default){for(var o=[],s=0,u=n.length;s<u;s++)o.push(n[s].x,n[s].y);n=o}this.closed=!0,this.points=n,this.type=a.SHAPES.POLY}return e.prototype.clone=function(){return new e(this.points.slice())},e.prototype.close=function(){var e=this.points;e[0]===e[e.length-2]&&e[1]===e[e.length-1]||e.push(e[0],e[1])},e.prototype.contains=function(e,t){for(var n=!1,r=this.points.length/2,o=0,i=r-1;o<r;i=o++){var a=this.points[2*o],s=this.points[2*o+1],u=this.points[2*i],l=this.points[2*i+1];s>t!=l>t&&e<(t-s)/(l-s)*(u-a)+a&&(n=!n)}return n},e}();t.default=s},function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(62),i=(r=o)&&r.__esModule?r:{default:r},a=n(3);var s=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.x=t,this.y=n,this.width=r,this.height=o,this.type=a.SHAPES.ELIP}return e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.contains=function(e,t){if(this.width<=0||this.height<=0)return!1;var n=(e-this.x)/this.width,r=(t-this.y)/this.height;return(n*=n)+(r*=r)<=1},e.prototype.getBounds=function(){return new i.default(this.x-this.width,this.y-this.height,this.width,this.height)},e}();t.default=s},function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(62),i=(r=o)&&r.__esModule?r:{default:r},a=n(3);var s=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.x=t,this.y=n,this.radius=r,this.type=a.SHAPES.CIRC}return e.prototype.clone=function(){return new e(this.x,this.y,this.radius)},e.prototype.contains=function(e,t){if(this.radius<=0)return!1;var n=this.radius*this.radius,r=this.x-e,o=this.y-t;return(r*=r)+(o*=o)<=n},e.prototype.getBounds=function(){return new i.default(this.x-this.radius,this.y-this.radius,2*this.radius,2*this.radius)},e}();t.default=s},function(e,t,n){"use strict";Number.isInteger||(Number.isInteger=function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e})},function(e,t,n){"use strict";Math.sign||(Math.sign=function(e){return 0===(e=Number(e))||isNaN(e)?e:e>0?1:-1})},function(e,t,n){"use strict";(function(e){if(Date.now&&Date.prototype.getTime||(Date.now=function(){return(new Date).getTime()}),!e.performance||!e.performance.now){var t=Date.now();e.performance||(e.performance={}),e.performance.now=function(){return Date.now()-t}}for(var n=Date.now(),r=["ms","moz","webkit","o"],o=0;o<r.length&&!e.requestAnimationFrame;++o){var i=r[o];e.requestAnimationFrame=e[i+"RequestAnimationFrame"],e.cancelAnimationFrame=e[i+"CancelAnimationFrame"]||e[i+"CancelRequestAnimationFrame"]}e.requestAnimationFrame||(e.requestAnimationFrame=function(e){if("function"!=typeof e)throw new TypeError(e+"is not a function");var t=Date.now(),r=16+n-t;return r<0&&(r=0),n=t,setTimeout(function(){n=Date.now(),e(performance.now())},r)}),e.cancelAnimationFrame||(e.cancelAnimationFrame=function(e){return clearTimeout(e)})}).call(this,n(24))},function(e,t,n){"use strict";var r,o=n(80),i=(r=o)&&r.__esModule?r:{default:r};Object.assign||(Object.assign=i.default)},function(e,t,n){"use strict";n(286),n(285),n(284),n(283),window.ArrayBuffer||(window.ArrayBuffer=Array),window.Float32Array||(window.Float32Array=Array),window.Uint32Array||(window.Uint32Array=Array),window.Uint16Array||(window.Uint16Array=Array)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=f(n(0)),a=f(n(34)),s=f(n(2)),u=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(134)),l=n(8),c=f(n(187)),d=n(39);function f(e){return e&&e.__esModule?e:{default:e}}var h=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={},n.nodes={},n.application=void 0,n.stars=[],n.sparks=[],n.gradientGenerator=void 0,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.default.Component),r(t,[{key:"componentDidMount",value:function(){var e=this;this.application=new u.Application({height:window.innerHeight,width:window.innerWidth,transparent:!0,resolution:this.props.settings.page_zoom}),this.application.autoResize=!0,this.nodes.screen.appendChild(this.application.view),setTimeout(function(){e.startAnimation()},1e3)}},{key:"startAnimation",value:function(){var e=this,t=new u.Graphics;t.beginFill(16777215,1),t.drawCircle(1,1,1),t.cacheAsBitmap=!0;this.gradientGenerator=function(e,t){for(var n={},r=u.utils.hex2rgb(e),i=u.utils.hex2rgb(t),a=0;a<100;a++){var s=a/100,l=o(r,3),c=l[0],f=l[1],h=l[2],p=o(i,3),y=p[0],v=p[1],m=p[2],g=[(0,d.scale)(c,y,s),(0,d.scale)(f,v,s),(0,d.scale)(h,m,s)];n[a]=u.utils.rgb2hex(g)}return function(e){return n[Math.floor(100*e)]}}(13903584,15563577);for(var n=function(n){var r=t.clone();e.stars.push([[-(0,d.randomRange)(1,2,2),(0,d.randomRange)(2,4,2)],r,Number(new Date)+(0,d.randomRange)(1e3,8e3)]),r.blendMode=u.BLEND_MODES.SCREEN,r.alpha=(0,d.randomRange)(.7,1,2),r.x=(0,d.randomRange)(0,window.innerWidth+.2*window.innerWidth),r.y=-20,r.lastX=r.x,r.lastY=r.y,r.interpolate=function(e){return(0,d.interpolatePoints)({x:r.lastX,y:r.lastY},{x:r.x,y:r.y},e)},e.application.stage.addChild(r)},r=0;r<3;r++)n();var i=u.Texture.fromImage("src/img/gl/spark.png");for(r=0;r<3;r++)for(var a={parent:this.stars[r],startColor:13903584,endColor:15563577,minDecay:750,maxDecay:1250,startScale:.001,endScale:.1,gradientGenerator:this.gradientGenerator},s=0;s<100;s++)this.sparks[r]=this.sparks[r]||[],this.sparks[r].push(new c.default(i,this.application,a));this.application.ticker.add(function(){for(var t=Number(new Date),n=0;n<e.stars.length;n++){var r=e.stars[n],i=o(r,3),a=i[0],s=i[1];t>i[2]&&(s.lastX=s.x,s.lastY=s.y,s.x+=a[0],s.y+=a[1],(s.x<-10||s.y>window.innerHeight+10)&&(s.alpha=(0,d.randomRange)(.5,1,2),s.x=(0,d.randomRange)(0,window.innerWidth+.2*window.innerWidth),s.y=-20,s.lastX=s.x,s.lastY=s.y,r[0]=[-(0,d.randomRange)(1,2,2),(0,d.randomRange)(2,4,2)],r[2]=t+(0,d.randomRange)(3e3,8e3)))}})}},{key:"render",value:function(){var e=this;return a.default.createPortal(i.default.createElement("div",{className:"",ref:function(t){return e.nodes.screen=t}}),document.getElementById("experimental-mount"))}}]),t}();h.propTypes={settings:s.default.object.isRequired},t.default=(0,l.connect)(function(e){return{settings:e.settings}},null)(h)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsToggler=void 0;var r=a(n(0)),o=a(n(34)),i=n(8);function a(e){return e&&e.__esModule?e:{default:e}}var s=t.SettingsToggler=function(e){return o.default.createPortal(r.default.createElement("div",{className:["settings-toggler"].join(" "),onClick:function(e){e.dispatch({type:"SETTINGS_TOGGLE_ACTIVE"})}.bind(void 0,e)},"≡"),document.getElementById("settings-toggler-mount"))};t.default=(0,i.connect)(function(e){return{}},null)(s)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=l(n(0)),i=l(n(34)),a=l(n(175)),s=l(n(2)),u=n(8);function l(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={initialized:!1,formattedDate:""},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.default.Component),r(t,[{key:"componentWillMount",value:function(){var e=this;setTimeout(function(){e.setDate()},2e3)}},{key:"setDate",value:function(){var e=this;this.setState({initialized:!0,formattedDate:(0,a.default)(this.props.settings.date_format)}),setTimeout(function(){e.setDate()},1e3)}},{key:"render",value:function(){var e=["date"],t=this.state.formattedDate;return!0===this.state.initialized&&!0===this.props.settings.date_enabled?e.push("loaded"):!1===this.state.date_enabled&&e.push("invisible"),i.default.createPortal(o.default.createElement("div",{className:e.join(" "),dangerouslySetInnerHTML:{__html:t}}),document.getElementById("date-display"))}}]),t}();c.propTypes={settings:s.default.object.isRequired},t.default=(0,u.connect)(function(e){return{settings:e.settings}},null)(c)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SaveDialogue=void 0;var r=a(n(0)),o=a(n(2)),i=n(8);function a(e){return e&&e.__esModule?e:{default:e}}var s=t.SaveDialogue=function(e){return r.default.createElement("div",{className:"save-dialogue"},r.default.createElement("button",{className:"settings-reject",onClick:function(e){e.dispatch({type:"SETTINGS_REJECT"})}.bind(void 0,e)},"revert"),r.default.createElement("button",{className:"settings-save",onClick:function(e){e.dispatch({type:"SETTINGS_SAVE"})}.bind(void 0,e)},"save"))};s.propTypes={dispatch:o.default.func.isRequired},t.default=(0,i.connect)(function(e){return{}},null)(s)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=t.DefaultThemes={Arch:{avatar_enabled:!0,avatar_size:"200px",avatar_shape:"circle",date_enabled:!0,date_format:"<em>%A</em>, the <em>%o</em> of <em>%B</em>",time_enabled:!0,time_format:"%H:%M",hostname_enabled:!0,command_shutdown_enabled:!0,command_reboot_enabled:!0,command_hibernate_enabled:!0,command_sleep_enabled:!0,command_icons_enabled:!0,command_text_align:"left",style_command_background_color:"hsl(201, 48%, 15%)",style_command_icon_color:"hsl(199, 66%, 65%)",style_command_text_color:"hsl(0, 100%, 96%)",style_login_border_color:"hsla(0, 100%, 50%, 0.1)",style_login_border_enabled:!1,style_login_button_color:"hsla(0, 0%, 0%, 0)",style_login_gradient_top_color:"hsl(32, 76%, 76%)",style_login_gradient_bottom_color:"hsl(193, 80%, 71%)",style_login_username_color:"hsla(0, 100%, 100%, 1)",window_border_radius:"4px",window_font_size:"1em"},Default:{avatar_enabled:!1,avatar_size:"200px",avatar_shape:"circle",date_enabled:!0,date_format:"<em>%A</em>, the <em>%o</em> of <em>%B</em>",time_enabled:!0,time_format:"%H:%M",hostname_enabled:!0,command_shutdown_enabled:!0,command_reboot_enabled:!0,command_hibernate_enabled:!0,command_sleep_enabled:!0,command_icons_enabled:!0,command_text_align:"left",style_command_background_color:"hsla(0, 0%, 22%, 1)",style_command_icon_color:"hsla(349, 98%, 65%, 1)",style_command_text_color:"hsla(0, 100%, 100%, 1)",style_login_border_color:"hsla(0, 100%, 100%, 0.1)",style_login_border_enabled:!0,style_login_button_color:"hsla(0, 100%, 100%, 0.22)",style_login_gradient_top_color:"hsla(18, 100%, 61%, 0.66)",style_login_gradient_bottom_color:"hsla(339, 94%, 64%, 1)",style_login_username_color:"hsla(0, 100%, 100%, 1)",window_border_radius:"4px",window_font_size:"1em"},"El Capitan":{avatar_enabled:!0,avatar_size:"200px",avatar_shape:"circle",date_enabled:!0,date_format:"<em>%A</em>, the <em>%o</em> of <em>%B</em>",time_enabled:!0,time_format:"%H:%M",hostname_enabled:!0,command_shutdown_enabled:!0,command_reboot_enabled:!0,command_hibernate_enabled:!0,command_sleep_enabled:!0,command_icons_enabled:!1,command_text_align:"center",style_command_background_color:"hsla(236, 4%, 12%, 0.8)",style_command_icon_color:"hsl(0, 0%, 0%)",style_command_text_color:"hsl(0, 100%, 96%)",style_login_border_color:"hsla(0, 100%, 50%, 0.1)",style_login_border_enabled:!1,style_login_button_color:"hsl(0, 0%, 0%)",style_login_gradient_top_color:"hsla(0, 76%, 76%, 0.94)",style_login_gradient_bottom_color:"hsl(193, 80%, 71%)",style_login_username_color:"hsla(0, 100%, 100%, 1)",window_border_radius:"4px",window_font_size:"1em"},Glass:{avatar_enabled:!1,avatar_size:"200px",avatar_shape:"circle",date_enabled:!0,date_format:"<em>%A</em>, the <em>%o</em> of <em>%B</em>",time_enabled:!0,time_format:"%H:%M",hostname_enabled:!0,command_shutdown_enabled:!0,command_reboot_enabled:!0,command_hibernate_enabled:!0,command_sleep_enabled:!0,command_icons_enabled:!0,command_text_align:"left",style_command_background_color:"hsla(0, 2%, 98%, 0.29)",style_command_icon_color:"hsl(182, 79%, 58%)",style_command_text_color:"hsla(0, 0%, 35%, 0.9)",style_login_border_color:"hsla(0, 0%, 0%, 0)",style_login_border_enabled:!1,style_login_button_color:"hsla(16, 96%, 11%, 0.88)",style_login_gradient_top_color:"hsla(0, 0%, 100%, 0)",style_login_gradient_bottom_color:"hsla(0, 0%, 100%, 0.32)",style_login_username_color:"hsla(0, 100%, 100%, 1)",window_border_radius:"4px",window_font_size:"1em"},Ember:{avatar_enabled:!1,avatar_size:"200px",avatar_shape:"circle",date_enabled:!0,date_format:"<em>%A</em>, the <em>%o</em> of <em>%B</em>",time_enabled:!0,time_format:"%H:%M",hostname_enabled:!0,command_shutdown_enabled:!0,command_reboot_enabled:!0,command_hibernate_enabled:!0,command_sleep_enabled:!0,command_icons_enabled:!0,command_text_align:"left",style_command_background_color:"hsl(0, 80%, 26%)",style_command_icon_color:"hsl(13, 100%, 53%)",style_command_text_color:"hsl(0, 0%, 100%)",style_login_border_color:"hsla(46, 82%, 48%, 0.24)",style_login_border_enabled:!0,style_login_button_color:"hsla(0, 100%, 85%, 0.22)",style_login_gradient_top_color:"hsl(14, 100%, 53%)",style_login_gradient_bottom_color:"hsl(35, 95%, 56%)",style_login_username_color:"hsla(0, 100%, 100%, 1)",window_border_radius:"4px",window_font_size:"1em"},"Material Green":{avatar_enabled:!0,avatar_size:"200px",avatar_shape:"circle",font_scale:"1",date_enabled:!0,date_format:"<em>%A</em>, the <em>%o</em> of <em>%B</em>",time_enabled:!0,time_format:"%H:%M",hostname_enabled:!0,command_shutdown_enabled:!0,command_reboot_enabled:!0,command_hibernate_enabled:!0,command_sleep_enabled:!0,command_icons_enabled:!0,command_text_align:"left",style_command_background_color:"hsl(123, 43%, 39%)",style_command_icon_color:"hsl(88, 50%, 53%)",style_command_text_color:"hsl(0, 0%, 100%)",style_login_border_color:"hsla(0, 0%, 68%, 0.1)",style_login_border_enabled:!0,style_login_button_color:"hsla(0, 0%, 0%, 0.49)",style_login_gradient_top_color:"hsl(122, 39%, 49%)",style_login_gradient_bottom_color:"hsl(122, 39%, 49%)",style_login_username_color:"hsla(0, 100%, 100%, 1)",window_border_radius:"4px",window_font_size:"1em"},"Material Pink":{avatar_enabled:!0,avatar_size:"200px",avatar_shape:"circle",font_scale:"1",date_enabled:!0,date_format:"<em>%A</em>, the <em>%o</em> of <em>%B</em>",time_enabled:!0,time_format:"%H:%M",hostname_enabled:!0,command_shutdown_enabled:!0,command_reboot_enabled:!0,command_hibernate_enabled:!0,command_sleep_enabled:!0,command_icons_enabled:!0,command_text_align:"left",style_command_background_color:"hsl(336, 78%, 43%)",style_command_icon_color:"hsl(340, 100%, 63%)",style_command_text_color:"hsl(0, 0%, 100%)",style_login_border_color:"hsla(0, 0%, 68%, 0.1)",style_login_border_enabled:!0,style_login_button_color:"hsla(0, 0%, 0%, 0.49)",style_login_gradient_top_color:"hsl(340, 82%, 52%)",style_login_gradient_bottom_color:"hsl(340, 82%, 52%)",style_login_username_color:"hsla(0, 100%, 100%, 1)",window_border_radius:"4px",window_font_size:"1em"}};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsThemes=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=d(n(2)),s=d(n(0)),u=n(8),l=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(77)),c=d(n(292));function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function p(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var y=function(e){function t(e){f(this,t);var n=h(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={},n}return p(t,s.default.Component),i(t,[{key:"getColors",value:function(){var e=[],t=!0,n=!1,r=void 0;try{for(var o,i=Object.keys(this.props.theme)[Symbol.iterator]();!(t=(o=i.next()).done);t=!0){var a=o.value;a.startsWith("style")&&-1!==a.indexOf("color")&&e.push([a,this.props.theme[a]])}}catch(e){n=!0,r=e}finally{try{!t&&i.return&&i.return()}finally{if(n)throw r}}return e}},{key:"render",value:function(){var e=this.getColors().map(function(e){var t=o(e,2),n=t[0],r=t[1];return s.default.createElement("li",{key:n,className:"theme-color-block",style:{backgroundColor:r},alt:r,title:r}," ")}),t=!(-1!==Object.keys(c.default).indexOf(this.props.name));return s.default.createElement("div",{className:"theme"},s.default.createElement("div",{className:"upper"},s.default.createElement("h5",{className:"theme-name"},this.props.name),s.default.createElement("button",{onClick:this.props.loadTheme.bind(this,this.props.name,this.props.theme)},"preview"),t?s.default.createElement("button",{className:"delete",onClick:this.props.deleteTheme.bind(this,this.props.name)},"delete"):null),s.default.createElement("ul",null,e))}}]),t}();y.propTypes={name:a.default.string.isRequired,theme:a.default.object.isRequired,loadTheme:a.default.func.isRequired,deleteTheme:a.default.func.isRequired};var v=t.SettingsThemes=function(e){function t(e){f(this,t);var n=h(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={themes:r({},l.getUserThemes(),c.default)},n.nodes={},n}return p(t,s.default.Component),i(t,[{key:"handleDeleteTheme",value:function(e){l.deleteTheme(e),this.setState({themes:r({},l.getUserThemes(),c.default)}),window.notifications.generate("Theme has been deleted!","success")}},{key:"handleLoadTheme",value:function(e,t){this.props.dispatch({type:"SETTINGS_APPLY_THEME",name:e,theme:t})}},{key:"handleSaveTheme",value:function(e){e.preventDefault(),e.stopPropagation();var t=this.nodes.themeName.value;l.saveTheme(t,this.props.settings),this.setState({themes:r({},l.getUserThemes(),c.default)}),window.notifications.generate("Your theme has been saved.","success")}},{key:"render",value:function(){var e=this,t=this.state.themes,n=Object.keys(t).map(function(n){return s.default.createElement(y,{key:n,name:n,theme:t[n],loadTheme:e.handleLoadTheme.bind(e),deleteTheme:e.handleDeleteTheme.bind(e)})});return s.default.createElement("div",{className:"settings-themes"},s.default.createElement("div",{className:"theme-saver"},s.default.createElement("p",null,"Save current settings as a theme?"),s.default.createElement("input",{type:"text",name:"theme-name",defaultValue:"",placeholder:"Theme Name",ref:function(t){return e.nodes.themeName=t}}),s.default.createElement("button",{className:"save-theme",onClick:this.handleSaveTheme.bind(this)},"save theme")),s.default.createElement("div",{className:"theme-list"},n))}}]),t}();v.propTypes={settings:a.default.object.isRequired,dispatch:a.default.func.isRequired},t.default=(0,u.connect)(function(e){return{settings:e.settings}},null)(v)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Dropdown=t.DropdownOption=void 0;var r=i(n(2)),o=i(n(0));function i(e){return e&&e.__esModule?e:{default:e}}var a=t.DropdownOption=function(e){var t=e.name||e,n=e.value||e;return o.default.createElement("option",{key:"key-"+t+"-"+n,value:n},t)},s=t.Dropdown=function(e){var t=e.name,n=e.value,r=e.options,i=e.boundFunction,s="option-"+t.replace(" ","-"),u=r.map(function(e){return a(e)});return o.default.createElement("li",{className:"settings-item"},void 0!==t?o.default.createElement("label",{htmlFor:s},t):null,o.default.createElement("select",{id:s,onChange:i,value:n},u))};s.propTypes={name:r.default.string,value:r.default.oneOfType([r.default.string,r.default.number]).isRequired,options:r.default.arrayOf(r.default.oneOfType([r.default.object,r.default.string,r.default.number])).isRequired,boundFunction:r.default.func.isRequired},t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Twitter=void 0;var r=l(n(0)),o=l(n(2)),i=l(n(1)),a=l(n(17)),s=l(n(12)),u=n(6);function l(e){return e&&e.__esModule?e:{default:e}}var c=t.Twitter=function(e){var t=e.onChange,n=e.onSwatchHover,o=e.hex,l=e.colors,c=e.width,d=e.triangle,f=e.className,h=void 0===f?"":f,p=(0,i.default)({default:{card:{width:c,background:"#fff",border:"0 solid rgba(0,0,0,0.25)",boxShadow:"0 1px 4px rgba(0,0,0,0.25)",borderRadius:"4px",position:"relative"},body:{padding:"15px 9px 9px 15px"},label:{fontSize:"18px",color:"#fff"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent #fff transparent",position:"absolute"},triangleShadow:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent rgba(0,0,0,.1) transparent",position:"absolute"},hash:{background:"#F0F0F0",height:"30px",width:"30px",borderRadius:"4px 0 0 4px",float:"left",color:"#98A1A4",display:"flex",alignItems:"center",justifyContent:"center"},input:{width:"100px",fontSize:"14px",color:"#666",border:"0px",outline:"none",height:"28px",boxShadow:"inset 0 0 0 1px #F0F0F0",boxSizing:"content-box",borderRadius:"0 4px 4px 0",float:"left",paddingLeft:"8px"},swatch:{width:"30px",height:"30px",float:"left",borderRadius:"4px",margin:"0 6px 6px 0"},clear:{clear:"both"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-10px",left:"12px"},triangleShadow:{top:"-11px",left:"12px"}},"top-right-triangle":{triangle:{top:"-10px",right:"12px"},triangleShadow:{top:"-11px",right:"12px"}}},{"hide-triangle":"hide"===d,"top-left-triangle":"top-left"===d,"top-right-triangle":"top-right"===d}),y=function(e,n){s.default.isValidHex(e)&&t({hex:e,source:"hex"},n)};return r.default.createElement("div",{style:p.card,className:"twitter-picker "+h},r.default.createElement("div",{style:p.triangleShadow}),r.default.createElement("div",{style:p.triangle}),r.default.createElement("div",{style:p.body},(0,a.default)(l,function(e,t){return r.default.createElement(u.Swatch,{key:t,color:e,hex:e,style:p.swatch,onClick:y,onHover:n,focusStyle:{boxShadow:"0 0 4px "+e}})}),r.default.createElement("div",{style:p.hash},"#"),r.default.createElement(u.EditableInput,{style:{input:p.input},value:o.replace("#",""),onChange:y}),r.default.createElement("div",{style:p.clear})))};c.propTypes={width:o.default.oneOfType([o.default.string,o.default.number]),triangle:o.default.oneOf(["hide","top-left","top-right"]),colors:o.default.arrayOf(o.default.string)},c.defaultProps={width:276,colors:["#FF6900","#FCB900","#7BDCB5","#00D084","#8ED1FC","#0693E3","#ABB8C3","#EB144C","#F78DA7","#9900EF"],triangle:"top-left"},t.default=(0,u.ColorWrap)(c)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SwatchesColor=void 0;var r=s(n(0)),o=s(n(1)),i=s(n(12)),a=n(6);function s(e){return e&&e.__esModule?e:{default:e}}var u=t.SwatchesColor=function(e){var t=e.color,n=e.onClick,s=void 0===n?function(){}:n,u=e.onSwatchHover,l=e.first,c=e.last,d=e.active,f=(0,o.default)({default:{color:{width:"40px",height:"24px",cursor:"pointer",background:t,marginBottom:"1px"},check:{fill:i.default.getContrastingColor(t),marginLeft:"8px",display:"none"}},first:{color:{overflow:"hidden",borderRadius:"2px 2px 0 0"}},last:{color:{overflow:"hidden",borderRadius:"0 0 2px 2px"}},active:{check:{display:"block"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},check:{fill:"#333"}},transparent:{check:{fill:"#333"}}},{first:l,last:c,active:d,"color-#FFFFFF":"#FFFFFF"===t,transparent:"transparent"===t});return r.default.createElement(a.Swatch,{color:t,style:f.color,onClick:s,onHover:u,focusStyle:{boxShadow:"0 0 4px "+t}},r.default.createElement("div",{style:f.check},r.default.createElement("svg",{style:{width:"24px",height:"24px"},viewBox:"0 0 24 24"},r.default.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))))};t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SwatchesGroup=void 0;var r=s(n(0)),o=s(n(1)),i=s(n(17)),a=s(n(296));function s(e){return e&&e.__esModule?e:{default:e}}var u=t.SwatchesGroup=function(e){var t=e.onClick,n=e.onSwatchHover,s=e.group,u=e.active,l=(0,o.default)({default:{group:{paddingBottom:"10px",width:"40px",float:"left",marginRight:"10px"}}});return r.default.createElement("div",{style:l.group},(0,i.default)(s,function(e,o){return r.default.createElement(a.default,{key:e,color:e,active:e.toLowerCase()===u,first:0===o,last:o===s.length-1,onClick:t,onSwatchHover:n})}))};t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Swatches=void 0;var r=d(n(0)),o=d(n(2)),i=d(n(1)),a=d(n(17)),s=d(n(12)),u=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(135)),l=n(6),c=d(n(297));function d(e){return e&&e.__esModule?e:{default:e}}var f=t.Swatches=function(e){var t=e.width,n=e.height,o=e.onChange,u=e.onSwatchHover,d=e.colors,f=e.hex,h=e.className,p=void 0===h?"":h,y=(0,i.default)({default:{picker:{width:t,height:n},overflow:{height:n,overflowY:"scroll"},body:{padding:"16px 0 6px 16px"},clear:{clear:"both"}}}),v=function(e,t){s.default.isValidHex(e)&&o({hex:e,source:"hex"},t)};return r.default.createElement("div",{style:y.picker,className:"swatches-picker "+p},r.default.createElement(l.Raised,null,r.default.createElement("div",{style:y.overflow},r.default.createElement("div",{style:y.body},(0,a.default)(d,function(e){return r.default.createElement(c.default,{key:e.toString(),group:e,active:f,onClick:v,onSwatchHover:u})}),r.default.createElement("div",{style:y.clear})))))};f.propTypes={width:o.default.oneOfType([o.default.string,o.default.number]),height:o.default.oneOfType([o.default.string,o.default.number]),colors:o.default.arrayOf(o.default.arrayOf(o.default.string))},f.defaultProps={width:320,height:240,colors:[[u.red[900],u.red[700],u.red[500],u.red[300],u.red[100]],[u.pink[900],u.pink[700],u.pink[500],u.pink[300],u.pink[100]],[u.purple[900],u.purple[700],u.purple[500],u.purple[300],u.purple[100]],[u.deepPurple[900],u.deepPurple[700],u.deepPurple[500],u.deepPurple[300],u.deepPurple[100]],[u.indigo[900],u.indigo[700],u.indigo[500],u.indigo[300],u.indigo[100]],[u.blue[900],u.blue[700],u.blue[500],u.blue[300],u.blue[100]],[u.lightBlue[900],u.lightBlue[700],u.lightBlue[500],u.lightBlue[300],u.lightBlue[100]],[u.cyan[900],u.cyan[700],u.cyan[500],u.cyan[300],u.cyan[100]],[u.teal[900],u.teal[700],u.teal[500],u.teal[300],u.teal[100]],["#194D33",u.green[700],u.green[500],u.green[300],u.green[100]],[u.lightGreen[900],u.lightGreen[700],u.lightGreen[500],u.lightGreen[300],u.lightGreen[100]],[u.lime[900],u.lime[700],u.lime[500],u.lime[300],u.lime[100]],[u.yellow[900],u.yellow[700],u.yellow[500],u.yellow[300],u.yellow[100]],[u.amber[900],u.amber[700],u.amber[500],u.amber[300],u.amber[100]],[u.orange[900],u.orange[700],u.orange[500],u.orange[300],u.orange[100]],[u.deepOrange[900],u.deepOrange[700],u.deepOrange[500],u.deepOrange[300],u.deepOrange[100]],[u.brown[900],u.brown[700],u.brown[500],u.brown[300],u.brown[100]],[u.blueGrey[900],u.blueGrey[700],u.blueGrey[500],u.blueGrey[300],u.blueGrey[100]],["#000000","#525252","#969696","#D9D9D9","#FFFFFF"]]},t.default=(0,l.ColorWrap)(f)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SliderPointer=void 0;var r=i(n(0)),o=i(n(1));function i(e){return e&&e.__esModule?e:{default:e}}var a=t.SliderPointer=function(){var e=(0,o.default)({default:{picker:{width:"14px",height:"14px",borderRadius:"6px",transform:"translate(-7px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return r.default.createElement("div",{style:e.picker})};t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SliderSwatch=void 0;var r=i(n(0)),o=i(n(1));function i(e){return e&&e.__esModule?e:{default:e}}var a=t.SliderSwatch=function(e){var t=e.hsl,n=e.offset,i=e.onClick,a=void 0===i?function(){}:i,s=e.active,u=e.first,l=e.last,c=(0,o.default)({default:{swatch:{height:"12px",background:"hsl("+t.h+", 50%, "+100*n+"%)",cursor:"pointer"}},first:{swatch:{borderRadius:"2px 0 0 2px"}},last:{swatch:{borderRadius:"0 2px 2px 0"}},active:{swatch:{transform:"scaleY(1.8)",borderRadius:"3.6px/2px"}}},{active:s,first:u,last:l});return r.default.createElement("div",{style:c.swatch,onClick:function(e){return a({h:t.h,s:.5,l:n,source:"hsl"},e)}})};t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SliderSwatches=void 0;var r=a(n(0)),o=a(n(1)),i=a(n(300));function a(e){return e&&e.__esModule?e:{default:e}}var s=t.SliderSwatches=function(e){var t=e.onClick,n=e.hsl,a=(0,o.default)({default:{swatches:{marginTop:"20px"},swatch:{boxSizing:"border-box",width:"20%",paddingRight:"1px",float:"left"},clear:{clear:"both"}}});return r.default.createElement("div",{style:a.swatches},r.default.createElement("div",{style:a.swatch},r.default.createElement(i.default,{hsl:n,offset:".80",active:Math.round(100*n.l)/100==.8&&Math.round(100*n.s)/100==.5,onClick:t,first:!0})),r.default.createElement("div",{style:a.swatch},r.default.createElement(i.default,{hsl:n,offset:".65",active:Math.round(100*n.l)/100==.65&&Math.round(100*n.s)/100==.5,onClick:t})),r.default.createElement("div",{style:a.swatch},r.default.createElement(i.default,{hsl:n,offset:".50",active:Math.round(100*n.l)/100==.5&&Math.round(100*n.s)/100==.5,onClick:t})),r.default.createElement("div",{style:a.swatch},r.default.createElement(i.default,{hsl:n,offset:".35",active:Math.round(100*n.l)/100==.35&&Math.round(100*n.s)/100==.5,onClick:t})),r.default.createElement("div",{style:a.swatch},r.default.createElement(i.default,{hsl:n,offset:".20",active:Math.round(100*n.l)/100==.2&&Math.round(100*n.s)/100==.5,onClick:t,last:!0})),r.default.createElement("div",{style:a.clear}))};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Slider=void 0;var r=u(n(0)),o=u(n(1)),i=n(6),a=u(n(301)),s=u(n(299));function u(e){return e&&e.__esModule?e:{default:e}}var l=t.Slider=function(e){var t=e.hsl,n=e.onChange,s=e.pointer,u=e.className,l=void 0===u?"":u,c=(0,o.default)({default:{hue:{height:"12px",position:"relative"},Hue:{radius:"2px"}}});return r.default.createElement("div",{className:"slider-picker "+l},r.default.createElement("div",{style:c.hue},r.default.createElement(i.Hue,{style:c.Hue,hsl:t,pointer:s,onChange:n})),r.default.createElement("div",{style:c.swatches},r.default.createElement(a.default,{hsl:t,onClick:n})))};l.defaultProps={pointer:s.default},t.default=(0,i.ColorWrap)(l)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SketchPresetColors=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=u(n(0)),i=u(n(2)),a=u(n(1)),s=n(6);function u(e){return e&&e.__esModule?e:{default:e}}var l=t.SketchPresetColors=function(e){var t=e.colors,n=e.onClick,i=void 0===n?function(){}:n,u=e.onSwatchHover,l=(0,a.default)({default:{colors:{margin:"0 -10px",padding:"10px 0 0 10px",borderTop:"1px solid #eee",display:"flex",flexWrap:"wrap",position:"relative"},swatchWrap:{width:"16px",height:"16px",margin:"0 10px 10px 0"},swatch:{borderRadius:"3px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15)"}},"no-presets":{colors:{display:"none"}}},{"no-presets":!t||!t.length}),c=function(e,t){i({hex:e,source:"hex"},t)};return o.default.createElement("div",{style:l.colors,className:"flexbox-fix"},t.map(function(e){var t="string"==typeof e?{color:e}:e,n=""+t.color+(t.title||"");return o.default.createElement("div",{key:n,style:l.swatchWrap},o.default.createElement(s.Swatch,r({},t,{style:l.swatch,onClick:c,onHover:u,focusStyle:{boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), 0 0 4px "+t.color}})))}))};l.propTypes={colors:i.default.arrayOf(i.default.oneOfType([i.default.string,i.default.shape({color:i.default.string,title:i.default.string})])).isRequired},t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SketchFields=void 0;var r=s(n(0)),o=s(n(1)),i=s(n(12)),a=n(6);function s(e){return e&&e.__esModule?e:{default:e}}var u=t.SketchFields=function(e){var t=e.onChange,n=e.rgb,s=e.hsl,u=e.hex,l=e.disableAlpha,c=(0,o.default)({default:{fields:{display:"flex",paddingTop:"4px"},single:{flex:"1",paddingLeft:"6px"},alpha:{flex:"1",paddingLeft:"6px"},double:{flex:"2"},input:{width:"80%",padding:"4px 10% 3px",border:"none",boxShadow:"inset 0 0 0 1px #ccc",fontSize:"11px"},label:{display:"block",textAlign:"center",fontSize:"11px",color:"#222",paddingTop:"3px",paddingBottom:"4px",textTransform:"capitalize"}},disableAlpha:{alpha:{display:"none"}}},{disableAlpha:l}),d=function(e,r){e.hex?i.default.isValidHex(e.hex)&&t({hex:e.hex,source:"hex"},r):e.r||e.g||e.b?t({r:e.r||n.r,g:e.g||n.g,b:e.b||n.b,a:n.a,source:"rgb"},r):e.a&&(e.a<0?e.a=0:e.a>100&&(e.a=100),e.a/=100,t({h:s.h,s:s.s,l:s.l,a:e.a,source:"rgb"},r))};return r.default.createElement("div",{style:c.fields,className:"flexbox-fix"},r.default.createElement("div",{style:c.double},r.default.createElement(a.EditableInput,{style:{input:c.input,label:c.label},label:"hex",value:u.replace("#",""),onChange:d})),r.default.createElement("div",{style:c.single},r.default.createElement(a.EditableInput,{style:{input:c.input,label:c.label},label:"r",value:n.r,onChange:d,dragLabel:"true",dragMax:"255"})),r.default.createElement("div",{style:c.single},r.default.createElement(a.EditableInput,{style:{input:c.input,label:c.label},label:"g",value:n.g,onChange:d,dragLabel:"true",dragMax:"255"})),r.default.createElement("div",{style:c.single},r.default.createElement(a.EditableInput,{style:{input:c.input,label:c.label},label:"b",value:n.b,onChange:d,dragLabel:"true",dragMax:"255"})),r.default.createElement("div",{style:c.alpha},r.default.createElement(a.EditableInput,{style:{input:c.input,label:c.label},label:"a",value:Math.round(100*n.a),onChange:d,dragLabel:"true",dragMax:"100"})))};t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Sketch=void 0;var r=l(n(0)),o=l(n(2)),i=l(n(1)),a=n(6),s=l(n(304)),u=l(n(303));function l(e){return e&&e.__esModule?e:{default:e}}var c=t.Sketch=function(e){var t=e.width,n=e.rgb,o=e.hex,l=e.hsv,c=e.hsl,d=e.onChange,f=e.onSwatchHover,h=e.disableAlpha,p=e.presetColors,y=e.renderers,v=e.className,m=void 0===v?"":v,g=(0,i.default)({default:{picker:{width:t,padding:"10px 10px 0",boxSizing:"initial",background:"#fff",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.15), 0 8px 16px rgba(0,0,0,.15)"},saturation:{width:"100%",paddingBottom:"75%",position:"relative",overflow:"hidden"},Saturation:{radius:"3px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},controls:{display:"flex"},sliders:{padding:"4px 0",flex:"1"},color:{width:"24px",height:"24px",position:"relative",marginTop:"4px",marginLeft:"4px",borderRadius:"3px"},activeColor:{absolute:"0px 0px 0px 0px",borderRadius:"2px",background:"rgba("+n.r+","+n.g+","+n.b+","+n.a+")",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},hue:{position:"relative",height:"10px",overflow:"hidden"},Hue:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},alpha:{position:"relative",height:"10px",marginTop:"4px",overflow:"hidden"},Alpha:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"}},disableAlpha:{color:{height:"10px"},hue:{height:"10px"},alpha:{display:"none"}}},{disableAlpha:h});return r.default.createElement("div",{style:g.picker,className:"sketch-picker "+m},r.default.createElement("div",{style:g.saturation},r.default.createElement(a.Saturation,{style:g.Saturation,hsl:c,hsv:l,onChange:d})),r.default.createElement("div",{style:g.controls,className:"flexbox-fix"},r.default.createElement("div",{style:g.sliders},r.default.createElement("div",{style:g.hue},r.default.createElement(a.Hue,{style:g.Hue,hsl:c,onChange:d})),r.default.createElement("div",{style:g.alpha},r.default.createElement(a.Alpha,{style:g.Alpha,rgb:n,hsl:c,renderers:y,onChange:d}))),r.default.createElement("div",{style:g.color},r.default.createElement(a.Checkboard,null),r.default.createElement("div",{style:g.activeColor}))),r.default.createElement(s.default,{rgb:n,hsl:c,hex:o,onChange:d,disableAlpha:h}),r.default.createElement(u.default,{colors:p,onClick:d,onSwatchHover:f}))};c.propTypes={disableAlpha:o.default.bool,width:o.default.oneOfType([o.default.string,o.default.number])},c.defaultProps={disableAlpha:!1,width:200,presetColors:["#D0021B","#F5A623","#F8E71C","#8B572A","#7ED321","#417505","#BD10E0","#9013FE","#4A90E2","#50E3C2","#B8E986","#000000","#4A4A4A","#9B9B9B","#FFFFFF"]},t.default=(0,a.ColorWrap)(c)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PhotoshopPreviews=void 0;var r=i(n(0)),o=i(n(1));function i(e){return e&&e.__esModule?e:{default:e}}var a=t.PhotoshopPreviews=function(e){var t=e.rgb,n=e.currentColor,i=(0,o.default)({default:{swatches:{border:"1px solid #B3B3B3",borderBottom:"1px solid #F0F0F0",marginBottom:"2px",marginTop:"1px"},new:{height:"34px",background:"rgb("+t.r+","+t.g+", "+t.b+")",boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 1px 0 #000"},current:{height:"34px",background:n,boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 -1px 0 #000"},label:{fontSize:"14px",color:"#000",textAlign:"center"}}});return r.default.createElement("div",null,r.default.createElement("div",{style:i.label},"new"),r.default.createElement("div",{style:i.swatches},r.default.createElement("div",{style:i.new}),r.default.createElement("div",{style:i.current})),r.default.createElement("div",{style:i.label},"current"))};t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PhotoshopBotton=void 0;var r=i(n(0)),o=i(n(1));function i(e){return e&&e.__esModule?e:{default:e}}var a=t.PhotoshopBotton=function(e){var t=e.onClick,n=e.label,i=e.children,a=e.active,s=(0,o.default)({default:{button:{backgroundImage:"linear-gradient(-180deg, #FFFFFF 0%, #E6E6E6 100%)",border:"1px solid #878787",borderRadius:"2px",height:"20px",boxShadow:"0 1px 0 0 #EAEAEA",fontSize:"14px",color:"#000",lineHeight:"20px",textAlign:"center",marginBottom:"10px",cursor:"pointer"}},active:{button:{boxShadow:"0 0 0 1px #878787"}}},{active:a});return r.default.createElement("div",{style:s.button,onClick:t},n||i)};t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PhotoshopPointerCircle=void 0;var r=i(n(0)),o=i(n(1));function i(e){return e&&e.__esModule?e:{default:e}}var a=t.PhotoshopPointerCircle=function(){var e=(0,o.default)({default:{triangle:{width:0,height:0,borderStyle:"solid",borderWidth:"4px 0 4px 6px",borderColor:"transparent transparent transparent #fff",position:"absolute",top:"1px",left:"1px"},triangleBorder:{width:0,height:0,borderStyle:"solid",borderWidth:"5px 0 5px 8px",borderColor:"transparent transparent transparent #555"},left:{Extend:"triangleBorder",transform:"translate(-13px, -4px)"},leftInside:{Extend:"triangle",transform:"translate(-8px, -5px)"},right:{Extend:"triangleBorder",transform:"translate(20px, -14px) rotate(180deg)"},rightInside:{Extend:"triangle",transform:"translate(-8px, -5px)"}}});return r.default.createElement("div",{style:e.pointer},r.default.createElement("div",{style:e.left},r.default.createElement("div",{style:e.leftInside})),r.default.createElement("div",{style:e.right},r.default.createElement("div",{style:e.rightInside})))};t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PhotoshopPointerCircle=void 0;var r=i(n(0)),o=i(n(1));function i(e){return e&&e.__esModule?e:{default:e}}var a=t.PhotoshopPointerCircle=function(e){var t=e.hsl,n=(0,o.default)({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}},"black-outline":{picker:{boxShadow:"inset 0 0 0 1px #000"}}},{"black-outline":t.l>.5});return r.default.createElement("div",{style:n.picker})};t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PhotoshopPicker=void 0;var r=s(n(0)),o=s(n(1)),i=s(n(12)),a=n(6);function s(e){return e&&e.__esModule?e:{default:e}}var u=t.PhotoshopPicker=function(e){var t=e.onChange,n=e.rgb,s=e.hsv,u=e.hex,l=(0,o.default)({default:{fields:{paddingTop:"5px",paddingBottom:"9px",width:"80px",position:"relative"},divider:{height:"5px"},RGBwrap:{position:"relative"},RGBinput:{marginLeft:"40%",width:"40%",height:"18px",border:"1px solid #888888",boxShadow:"inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",marginBottom:"5px",fontSize:"13px",paddingLeft:"3px",marginRight:"10px"},RGBlabel:{left:"0px",width:"34px",textTransform:"uppercase",fontSize:"13px",height:"18px",lineHeight:"22px",position:"absolute"},HEXwrap:{position:"relative"},HEXinput:{marginLeft:"20%",width:"80%",height:"18px",border:"1px solid #888888",boxShadow:"inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",marginBottom:"6px",fontSize:"13px",paddingLeft:"3px"},HEXlabel:{position:"absolute",top:"0px",left:"0px",width:"14px",textTransform:"uppercase",fontSize:"13px",height:"18px",lineHeight:"22px"},fieldSymbols:{position:"absolute",top:"5px",right:"-7px",fontSize:"13px"},symbol:{height:"20px",lineHeight:"22px",paddingBottom:"7px"}}}),c=function(e,r){e["#"]?i.default.isValidHex(e["#"])&&t({hex:e["#"],source:"hex"},r):e.r||e.g||e.b?t({r:e.r||n.r,g:e.g||n.g,b:e.b||n.b,source:"rgb"},r):(e.h||e.s||e.v)&&t({h:e.h||s.h,s:e.s||s.s,v:e.v||s.v,source:"hsv"},r)};return r.default.createElement("div",{style:l.fields},r.default.createElement(a.EditableInput,{style:{wrap:l.RGBwrap,input:l.RGBinput,label:l.RGBlabel},label:"h",value:Math.round(s.h),onChange:c}),r.default.createElement(a.EditableInput,{style:{wrap:l.RGBwrap,input:l.RGBinput,label:l.RGBlabel},label:"s",value:Math.round(100*s.s),onChange:c}),r.default.createElement(a.EditableInput,{style:{wrap:l.RGBwrap,input:l.RGBinput,label:l.RGBlabel},label:"v",value:Math.round(100*s.v),onChange:c}),r.default.createElement("div",{style:l.divider}),r.default.createElement(a.EditableInput,{style:{wrap:l.RGBwrap,input:l.RGBinput,label:l.RGBlabel},label:"r",value:n.r,onChange:c}),r.default.createElement(a.EditableInput,{style:{wrap:l.RGBwrap,input:l.RGBinput,label:l.RGBlabel},label:"g",value:n.g,onChange:c}),r.default.createElement(a.EditableInput,{style:{wrap:l.RGBwrap,input:l.RGBinput,label:l.RGBlabel},label:"b",value:n.b,onChange:c}),r.default.createElement("div",{style:l.divider}),r.default.createElement(a.EditableInput,{style:{wrap:l.HEXwrap,input:l.HEXinput,label:l.HEXlabel},label:"#",value:u.replace("#",""),onChange:c}),r.default.createElement("div",{style:l.fieldSymbols},r.default.createElement("div",{style:l.symbol},"°"),r.default.createElement("div",{style:l.symbol},"%"),r.default.createElement("div",{style:l.symbol},"%")))};t.default=u},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0}),t.Photoshop=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=p(n(0)),a=p(n(2)),s=p(n(1)),u=n(6),l=p(n(310)),c=p(n(309)),d=p(n(308)),f=p(n(307)),h=p(n(306));function p(e){return e&&e.__esModule?e:{default:e}}var y=t.Photoshop=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":r(t))&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.state={currentColor:e.hex},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":r(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.default.Component),o(t,[{key:"render",value:function(){var e=this.props.className,t=void 0===e?"":e,n=(0,s.default)({default:{picker:{background:"#DCDCDC",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.25), 0 8px 16px rgba(0,0,0,.15)",boxSizing:"initial",width:"513px"},head:{backgroundImage:"linear-gradient(-180deg, #F0F0F0 0%, #D4D4D4 100%)",borderBottom:"1px solid #B1B1B1",boxShadow:"inset 0 1px 0 0 rgba(255,255,255,.2), inset 0 -1px 0 0 rgba(0,0,0,.02)",height:"23px",lineHeight:"24px",borderRadius:"4px 4px 0 0",fontSize:"13px",color:"#4D4D4D",textAlign:"center"},body:{padding:"15px 15px 0",display:"flex"},saturation:{width:"256px",height:"256px",position:"relative",border:"2px solid #B3B3B3",borderBottom:"2px solid #F0F0F0",overflow:"hidden"},hue:{position:"relative",height:"256px",width:"19px",marginLeft:"10px",border:"2px solid #B3B3B3",borderBottom:"2px solid #F0F0F0"},controls:{width:"180px",marginLeft:"10px"},top:{display:"flex"},previews:{width:"60px"},actions:{flex:"1",marginLeft:"20px"}}});return i.default.createElement("div",{style:n.picker,className:"photoshop-picker "+t},i.default.createElement("div",{style:n.head},this.props.header),i.default.createElement("div",{style:n.body,className:"flexbox-fix"},i.default.createElement("div",{style:n.saturation},i.default.createElement(u.Saturation,{hsl:this.props.hsl,hsv:this.props.hsv,pointer:c.default,onChange:this.props.onChange})),i.default.createElement("div",{style:n.hue},i.default.createElement(u.Hue,{direction:"vertical",hsl:this.props.hsl,pointer:d.default,onChange:this.props.onChange})),i.default.createElement("div",{style:n.controls},i.default.createElement("div",{style:n.top,className:"flexbox-fix"},i.default.createElement("div",{style:n.previews},i.default.createElement(h.default,{rgb:this.props.rgb,currentColor:this.state.currentColor})),i.default.createElement("div",{style:n.actions},i.default.createElement(f.default,{label:"OK",onClick:this.props.onAccept,active:!0}),i.default.createElement(f.default,{label:"Cancel",onClick:this.props.onCancel}),i.default.createElement(l.default,{onChange:this.props.onChange,rgb:this.props.rgb,hsv:this.props.hsv,hex:this.props.hex}))))))}}]),t}();y.propTypes={header:a.default.string},y.defaultProps={header:"Color Picker"},t.default=(0,u.ColorWrap)(y)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Material=void 0;var r=s(n(0)),o=s(n(1)),i=s(n(12)),a=n(6);function s(e){return e&&e.__esModule?e:{default:e}}var u=t.Material=function(e){var t=e.onChange,n=e.hex,s=e.rgb,u=e.className,l=void 0===u?"":u,c=(0,o.default)({default:{material:{width:"98px",height:"98px",padding:"16px",fontFamily:"Roboto"},HEXwrap:{position:"relative"},HEXinput:{width:"100%",marginTop:"12px",fontSize:"15px",color:"#333",padding:"0px",border:"0px",borderBottom:"2px solid "+n,outline:"none",height:"30px"},HEXlabel:{position:"absolute",top:"0px",left:"0px",fontSize:"11px",color:"#999999",textTransform:"capitalize"},Hex:{style:{}},RGBwrap:{position:"relative"},RGBinput:{width:"100%",marginTop:"12px",fontSize:"15px",color:"#333",padding:"0px",border:"0px",borderBottom:"1px solid #eee",outline:"none",height:"30px"},RGBlabel:{position:"absolute",top:"0px",left:"0px",fontSize:"11px",color:"#999999",textTransform:"capitalize"},split:{display:"flex",marginRight:"-10px",paddingTop:"11px"},third:{flex:"1",paddingRight:"10px"}}}),d=function(e,n){e.hex?i.default.isValidHex(e.hex)&&t({hex:e.hex,source:"hex"},n):(e.r||e.g||e.b)&&t({r:e.r||s.r,g:e.g||s.g,b:e.b||s.b,source:"rgb"},n)};return r.default.createElement(a.Raised,null,r.default.createElement("div",{style:c.material,className:"material-picker "+l},r.default.createElement(a.EditableInput,{style:{wrap:c.HEXwrap,input:c.HEXinput,label:c.HEXlabel},label:"hex",value:n,onChange:d}),r.default.createElement("div",{style:c.split,className:"flexbox-fix"},r.default.createElement("div",{style:c.third},r.default.createElement(a.EditableInput,{style:{wrap:c.RGBwrap,input:c.RGBinput,label:c.RGBlabel},label:"r",value:s.r,onChange:d})),r.default.createElement("div",{style:c.third},r.default.createElement(a.EditableInput,{style:{wrap:c.RGBwrap,input:c.RGBinput,label:c.RGBlabel},label:"g",value:s.g,onChange:d})),r.default.createElement("div",{style:c.third},r.default.createElement(a.EditableInput,{style:{wrap:c.RGBwrap,input:c.RGBinput,label:c.RGBlabel},label:"b",value:s.b,onChange:d})))))};t.default=(0,a.ColorWrap)(u)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SliderPointer=void 0;var r=i(n(0)),o=i(n(1));function i(e){return e&&e.__esModule?e:{default:e}}var a=t.SliderPointer=function(e){var t=e.direction,n=(0,o.default)({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:"vertical"===t});return r.default.createElement("div",{style:n.picker})};t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HuePicker=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=u(n(0)),i=u(n(1)),a=n(6),s=u(n(313));function u(e){return e&&e.__esModule?e:{default:e}}var l=t.HuePicker=function(e){var t=e.width,n=e.height,s=e.onChange,u=e.hsl,l=e.direction,c=e.pointer,d=e.className,f=void 0===d?"":d,h=(0,i.default)({default:{picker:{position:"relative",width:t,height:n},hue:{radius:"2px"}}});return o.default.createElement("div",{style:h.picker,className:"hue-picker "+f},o.default.createElement(a.Hue,r({},h.hue,{hsl:u,pointer:c,onChange:function(e){return s({a:1,h:e.h,l:.5,s:1})},direction:l})))};l.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:s.default},t.default=(0,a.ColorWrap)(l)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GithubSwatch=void 0;var r=s(n(0)),o=n(1),i=s(o),a=n(6);function s(e){return e&&e.__esModule?e:{default:e}}var u=t.GithubSwatch=function(e){var t=e.hover,n=e.color,o=e.onClick,s=e.onSwatchHover,u={position:"relative",zIndex:"2",outline:"2px solid #fff",boxShadow:"0 0 5px 2px rgba(0,0,0,0.25)"},l=(0,i.default)({default:{swatch:{width:"25px",height:"25px",fontSize:"0"}},hover:{swatch:u}},{hover:t});return r.default.createElement("div",{style:l.swatch},r.default.createElement(a.Swatch,{color:n,onClick:o,onHover:s,focusStyle:u}))};t.default=(0,o.handleHover)(u)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Github=void 0;var r=l(n(0)),o=l(n(2)),i=l(n(1)),a=l(n(17)),s=n(6),u=l(n(315));function l(e){return e&&e.__esModule?e:{default:e}}var c=t.Github=function(e){var t=e.width,n=e.colors,o=e.onChange,s=e.onSwatchHover,l=e.triangle,c=e.className,d=void 0===c?"":c,f=(0,i.default)({default:{card:{width:t,background:"#fff",border:"1px solid rgba(0,0,0,0.2)",boxShadow:"0 3px 12px rgba(0,0,0,0.15)",borderRadius:"4px",position:"relative",padding:"5px",display:"flex",flexWrap:"wrap"},triangle:{position:"absolute",border:"7px solid transparent",borderBottomColor:"#fff"},triangleShadow:{position:"absolute",border:"8px solid transparent",borderBottomColor:"rgba(0,0,0,0.15)"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-14px",left:"10px"},triangleShadow:{top:"-16px",left:"9px"}},"top-right-triangle":{triangle:{top:"-14px",right:"10px"},triangleShadow:{top:"-16px",right:"9px"}},"bottom-left-triangle":{triangle:{top:"35px",left:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",left:"9px",transform:"rotate(180deg)"}},"bottom-right-triangle":{triangle:{top:"35px",right:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",right:"9px",transform:"rotate(180deg)"}}},{"hide-triangle":"hide"===l,"top-left-triangle":"top-left"===l,"top-right-triangle":"top-right"===l,"bottom-left-triangle":"bottom-left"==l,"bottom-right-triangle":"bottom-right"===l}),h=function(e,t){return o({hex:e,source:"hex"},t)};return r.default.createElement("div",{style:f.card,className:"github-picker "+d},r.default.createElement("div",{style:f.triangleShadow}),r.default.createElement("div",{style:f.triangle}),(0,a.default)(n,function(e){return r.default.createElement(u.default,{color:e,key:e,onClick:h,onSwatchHover:s})}))};c.propTypes={width:o.default.oneOfType([o.default.string,o.default.number]),colors:o.default.arrayOf(o.default.string),triangle:o.default.oneOf(["hide","top-left","top-right","bottom-left","bottom-right"])},c.defaultProps={width:200,colors:["#B80000","#DB3E00","#FCCB00","#008B02","#006B76","#1273DE","#004DCF","#5300EB","#EB9694","#FAD0C3","#FEF3BD","#C1E1C5","#BEDADC","#C4DEF6","#BED3F3","#D4C4FB"],triangle:"top-left"},t.default=(0,s.ColorWrap)(c)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompactFields=void 0;var r=a(n(0)),o=a(n(1)),i=n(6);function a(e){return e&&e.__esModule?e:{default:e}}var s=t.CompactFields=function(e){var t=e.hex,n=e.rgb,a=e.onChange,s=(0,o.default)({default:{fields:{display:"flex",paddingBottom:"6px",paddingRight:"5px",position:"relative"},active:{position:"absolute",top:"6px",left:"5px",height:"9px",width:"9px",background:t},HEXwrap:{flex:"6",position:"relative"},HEXinput:{width:"80%",padding:"0px",paddingLeft:"20%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},HEXlabel:{display:"none"},RGBwrap:{flex:"3",position:"relative"},RGBinput:{width:"70%",padding:"0px",paddingLeft:"30%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},RGBlabel:{position:"absolute",top:"3px",left:"0px",lineHeight:"16px",textTransform:"uppercase",fontSize:"12px",color:"#999"}}}),u=function(e,t){e.r||e.g||e.b?a({r:e.r||n.r,g:e.g||n.g,b:e.b||n.b,source:"rgb"},t):a({hex:e.hex,source:"hex"},t)};return r.default.createElement("div",{style:s.fields,className:"flexbox-fix"},r.default.createElement("div",{style:s.active}),r.default.createElement(i.EditableInput,{style:{wrap:s.HEXwrap,input:s.HEXinput,label:s.HEXlabel},label:"hex",value:t,onChange:u}),r.default.createElement(i.EditableInput,{style:{wrap:s.RGBwrap,input:s.RGBinput,label:s.RGBlabel},label:"r",value:n.r,onChange:u}),r.default.createElement(i.EditableInput,{style:{wrap:s.RGBwrap,input:s.RGBinput,label:s.RGBlabel},label:"g",value:n.g,onChange:u}),r.default.createElement(i.EditableInput,{style:{wrap:s.RGBwrap,input:s.RGBinput,label:s.RGBlabel},label:"b",value:n.b,onChange:u}))};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompactColor=void 0;var r=s(n(0)),o=s(n(1)),i=s(n(12)),a=n(6);function s(e){return e&&e.__esModule?e:{default:e}}var u=t.CompactColor=function(e){var t=e.color,n=e.onClick,s=void 0===n?function(){}:n,u=e.onSwatchHover,l=e.active,c=(0,o.default)({default:{color:{background:t,width:"15px",height:"15px",float:"left",marginRight:"5px",marginBottom:"5px",position:"relative",cursor:"pointer"},dot:{absolute:"5px 5px 5px 5px",background:i.default.getContrastingColor(t),borderRadius:"50%",opacity:"0"}},active:{dot:{opacity:"1"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},dot:{background:"#000"}},transparent:{dot:{background:"#000"}}},{active:l,"color-#FFFFFF":"#FFFFFF"===t,transparent:"transparent"===t});return r.default.createElement(a.Swatch,{style:c.color,color:t,onClick:s,onHover:u,focusStyle:{boxShadow:"0 0 4px "+t}},r.default.createElement("div",{style:c.dot}))};t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Compact=void 0;var r=d(n(0)),o=d(n(2)),i=d(n(1)),a=d(n(17)),s=d(n(12)),u=n(6),l=d(n(318)),c=d(n(317));function d(e){return e&&e.__esModule?e:{default:e}}var f=t.Compact=function(e){var t=e.onChange,n=e.onSwatchHover,o=e.colors,d=e.hex,f=e.rgb,h=e.className,p=void 0===h?"":h,y=(0,i.default)({default:{Compact:{background:"#f6f6f6",radius:"4px"},compact:{paddingTop:"5px",paddingLeft:"5px",boxSizing:"initial",width:"240px"},clear:{clear:"both"}}}),v=function(e,n){e.hex?s.default.isValidHex(e.hex)&&t({hex:e.hex,source:"hex"},n):t(e,n)};return r.default.createElement(u.Raised,{style:y.Compact},r.default.createElement("div",{style:y.compact,className:"compact-picker "+p},r.default.createElement("div",null,(0,a.default)(o,function(e){return r.default.createElement(l.default,{key:e,color:e,active:e.toLowerCase()===d,onClick:v,onSwatchHover:n})}),r.default.createElement("div",{style:y.clear})),r.default.createElement(c.default,{hex:d,rgb:f,onChange:v})))};f.propTypes={colors:o.default.arrayOf(o.default.string)},f.defaultProps={colors:["#4D4D4D","#999999","#FFFFFF","#F44E3B","#FE9200","#FCDC00","#DBDF00","#A4DD00","#68CCCA","#73D8FF","#AEA1FF","#FDA1FF","#333333","#808080","#cccccc","#D33115","#E27300","#FCC400","#B0BC00","#68BC00","#16A5A5","#009CE0","#7B64FF","#FA28FF","#000000","#666666","#B3B3B3","#9F0500","#C45100","#FB9E00","#808900","#194D33","#0C797D","#0062B1","#653294","#AB149E"]},t.default=(0,u.ColorWrap)(f)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChromePointerCircle=void 0;var r=i(n(0)),o=i(n(1));function i(e){return e&&e.__esModule?e:{default:e}}var a=t.ChromePointerCircle=function(){var e=(0,o.default)({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}}});return r.default.createElement("div",{style:e.picker})};t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChromePointer=void 0;var r=i(n(0)),o=i(n(1));function i(e){return e&&e.__esModule?e:{default:e}}var a=t.ChromePointer=function(){var e=(0,o.default)({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",transform:"translate(-6px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return r.default.createElement("div",{style:e.picker})};t.default=a},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0}),t.ChromeFields=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=l(n(0)),a=l(n(1)),s=l(n(12)),u=n(6);function l(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":r(t))&&"function"!=typeof t?e:t}var d=t.ChromeFields=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=c(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r.state={view:""},r.toggleViews=function(){"hex"===r.state.view?r.setState({view:"rgb"}):"rgb"===r.state.view?r.setState({view:"hsl"}):"hsl"===r.state.view&&(1===r.props.hsl.a?r.setState({view:"hex"}):r.setState({view:"rgb"}))},r.handleChange=function(e,t){e.hex?s.default.isValidHex(e.hex)&&r.props.onChange({hex:e.hex,source:"hex"},t):e.r||e.g||e.b?r.props.onChange({r:e.r||r.props.rgb.r,g:e.g||r.props.rgb.g,b:e.b||r.props.rgb.b,source:"rgb"},t):e.a?(e.a<0?e.a=0:e.a>1&&(e.a=1),r.props.onChange({h:r.props.hsl.h,s:r.props.hsl.s,l:r.props.hsl.l,a:Math.round(100*e.a)/100,source:"rgb"},t)):(e.h||e.s||e.l)&&r.props.onChange({h:e.h||r.props.hsl.h,s:Number(e.s&&e.s||r.props.hsl.s),l:Number(e.l&&e.l||r.props.hsl.l),source:"hsl"},t)},r.showHighlight=function(e){e.target.style.background="#eee"},r.hideHighlight=function(e){e.target.style.background="transparent"},c(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":r(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.default.Component),o(t,[{key:"componentDidMount",value:function(){1===this.props.hsl.a&&"hex"!==this.state.view?this.setState({view:"hex"}):"rgb"!==this.state.view&&"hsl"!==this.state.view&&this.setState({view:"rgb"})}},{key:"componentWillReceiveProps",value:function(e){1!==e.hsl.a&&"hex"===this.state.view&&this.setState({view:"rgb"})}},{key:"render",value:function(){var e=this,t=(0,a.default)({default:{wrap:{paddingTop:"16px",display:"flex"},fields:{flex:"1",display:"flex",marginLeft:"-6px"},field:{paddingLeft:"6px",width:"100%"},alpha:{paddingLeft:"6px",width:"100%"},toggle:{width:"32px",textAlign:"right",position:"relative"},icon:{marginRight:"-4px",marginTop:"12px",cursor:"pointer",position:"relative"},iconHighlight:{position:"absolute",width:"24px",height:"28px",background:"#eee",borderRadius:"4px",top:"10px",left:"12px",display:"none"},input:{fontSize:"11px",color:"#333",width:"100%",borderRadius:"2px",border:"none",boxShadow:"inset 0 0 0 1px #dadada",height:"21px",textAlign:"center"},label:{textTransform:"uppercase",fontSize:"11px",lineHeight:"11px",color:"#969696",textAlign:"center",display:"block",marginTop:"12px"},svg:{width:"24px",height:"24px",border:"1px transparent solid",borderRadius:"5px"}},disableAlpha:{alpha:{display:"none"}}},this.props,this.state),n=void 0;return"hex"===this.state.view?n=i.default.createElement("div",{style:t.fields,className:"flexbox-fix"},i.default.createElement("div",{style:t.field},i.default.createElement(u.EditableInput,{style:{input:t.input,label:t.label},label:"hex",value:this.props.hex,onChange:this.handleChange}))):"rgb"===this.state.view?n=i.default.createElement("div",{style:t.fields,className:"flexbox-fix"},i.default.createElement("div",{style:t.field},i.default.createElement(u.EditableInput,{style:{input:t.input,label:t.label},label:"r",value:this.props.rgb.r,onChange:this.handleChange})),i.default.createElement("div",{style:t.field},i.default.createElement(u.EditableInput,{style:{input:t.input,label:t.label},label:"g",value:this.props.rgb.g,onChange:this.handleChange})),i.default.createElement("div",{style:t.field},i.default.createElement(u.EditableInput,{style:{input:t.input,label:t.label},label:"b",value:this.props.rgb.b,onChange:this.handleChange})),i.default.createElement("div",{style:t.alpha},i.default.createElement(u.EditableInput,{style:{input:t.input,label:t.label},label:"a",value:this.props.rgb.a,arrowOffset:.01,onChange:this.handleChange}))):"hsl"===this.state.view&&(n=i.default.createElement("div",{style:t.fields,className:"flexbox-fix"},i.default.createElement("div",{style:t.field},i.default.createElement(u.EditableInput,{style:{input:t.input,label:t.label},label:"h",value:Math.round(this.props.hsl.h),onChange:this.handleChange})),i.default.createElement("div",{style:t.field},i.default.createElement(u.EditableInput,{style:{input:t.input,label:t.label},label:"s",value:Math.round(100*this.props.hsl.s)+"%",onChange:this.handleChange})),i.default.createElement("div",{style:t.field},i.default.createElement(u.EditableInput,{style:{input:t.input,label:t.label},label:"l",value:Math.round(100*this.props.hsl.l)+"%",onChange:this.handleChange})),i.default.createElement("div",{style:t.alpha},i.default.createElement(u.EditableInput,{style:{input:t.input,label:t.label},label:"a",value:this.props.hsl.a,arrowOffset:.01,onChange:this.handleChange})))),i.default.createElement("div",{style:t.wrap,className:"flexbox-fix"},n,i.default.createElement("div",{style:t.toggle},i.default.createElement("div",{style:t.icon,onClick:this.toggleViews,ref:function(t){return e.icon=t}},i.default.createElement("svg",{style:t.svg,viewBox:"0 0 24 24",onMouseOver:this.showHighlight,onMouseEnter:this.showHighlight,onMouseOut:this.hideHighlight},i.default.createElement("path",{ref:function(t){return e.iconUp=t},fill:"#333",d:"M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z"}),i.default.createElement("path",{ref:function(t){return e.iconDown=t},fill:"#333",d:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15Z"})))))}}]),t}();t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Chrome=void 0;var r=c(n(0)),o=c(n(2)),i=c(n(1)),a=n(6),s=c(n(322)),u=c(n(321)),l=c(n(320));function c(e){return e&&e.__esModule?e:{default:e}}var d=t.Chrome=function(e){var t=e.onChange,n=e.disableAlpha,o=e.rgb,c=e.hsl,d=e.hsv,f=e.hex,h=e.renderers,p=e.className,y=void 0===p?"":p,v=(0,i.default)({default:{picker:{background:"#fff",borderRadius:"2px",boxShadow:"0 0 2px rgba(0,0,0,.3), 0 4px 8px rgba(0,0,0,.3)",boxSizing:"initial",width:"225px",fontFamily:"Menlo"},saturation:{width:"100%",paddingBottom:"55%",position:"relative",borderRadius:"2px 2px 0 0",overflow:"hidden"},Saturation:{radius:"2px 2px 0 0"},body:{padding:"16px 16px 12px"},controls:{display:"flex"},color:{width:"32px"},swatch:{marginTop:"6px",width:"16px",height:"16px",borderRadius:"8px",position:"relative",overflow:"hidden"},active:{absolute:"0px 0px 0px 0px",borderRadius:"8px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.1)",background:"rgba("+o.r+", "+o.g+", "+o.b+", "+o.a+")",zIndex:"2"},toggles:{flex:"1"},hue:{height:"10px",position:"relative",marginBottom:"8px"},Hue:{radius:"2px"},alpha:{height:"10px",position:"relative"},Alpha:{radius:"2px"}},disableAlpha:{color:{width:"22px"},alpha:{display:"none"},hue:{marginBottom:"0px"},swatch:{width:"10px",height:"10px",marginTop:"0px"}}},{disableAlpha:n});return r.default.createElement("div",{style:v.picker,className:"chrome-picker "+y},r.default.createElement("div",{style:v.saturation},r.default.createElement(a.Saturation,{style:v.Saturation,hsl:c,hsv:d,pointer:l.default,onChange:t})),r.default.createElement("div",{style:v.body},r.default.createElement("div",{style:v.controls,className:"flexbox-fix"},r.default.createElement("div",{style:v.color},r.default.createElement("div",{style:v.swatch},r.default.createElement("div",{style:v.active}),r.default.createElement(a.Checkboard,{renderers:h}))),r.default.createElement("div",{style:v.toggles},r.default.createElement("div",{style:v.hue},r.default.createElement(a.Hue,{style:v.Hue,hsl:c,pointer:u.default,onChange:t})),r.default.createElement("div",{style:v.alpha},r.default.createElement(a.Alpha,{style:v.Alpha,rgb:o,hsl:c,pointer:u.default,renderers:h,onChange:t})))),r.default.createElement(s.default,{rgb:o,hsl:c,hex:f,onChange:t,disableAlpha:n})))};d.propTypes={disableAlpha:o.default.bool},d.defaultProps={disableAlpha:!1},t.default=(0,a.ColorWrap)(d)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CircleSwatch=void 0;var r=s(n(0)),o=n(1),i=s(o),a=n(6);function s(e){return e&&e.__esModule?e:{default:e}}var u=t.CircleSwatch=function(e){var t=e.color,n=e.onClick,o=e.onSwatchHover,s=e.hover,u=e.active,l=e.circleSize,c=e.circleSpacing,d=(0,i.default)({default:{swatch:{width:l,height:l,marginRight:c,marginBottom:c,transform:"scale(1)",transition:"100ms transform ease"},Swatch:{borderRadius:"50%",background:"transparent",boxShadow:"inset 0 0 0 "+l/2+"px "+t,transition:"100ms box-shadow ease"}},hover:{swatch:{transform:"scale(1.2)"}},active:{Swatch:{boxShadow:"inset 0 0 0 3px "+t}}},{hover:s,active:u});return r.default.createElement("div",{style:d.swatch},r.default.createElement(a.Swatch,{style:d.Swatch,color:t,onClick:n,onHover:o,focusStyle:{boxShadow:d.Swatch.boxShadow+", 0 0 5px "+t}}))};u.defaultProps={circleSize:28,circleSpacing:14},t.default=(0,o.handleHover)(u)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Circle=void 0;var r=c(n(0)),o=c(n(2)),i=c(n(1)),a=c(n(17)),s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(135)),u=n(6),l=c(n(324));function c(e){return e&&e.__esModule?e:{default:e}}var d=t.Circle=function(e){var t=e.width,n=e.onChange,o=e.onSwatchHover,s=e.colors,u=e.hex,c=e.circleSize,d=e.circleSpacing,f=e.className,h=void 0===f?"":f,p=(0,i.default)({default:{card:{width:t,display:"flex",flexWrap:"wrap",marginRight:-d,marginBottom:-d}}}),y=function(e,t){return n({hex:e,source:"hex"},t)};return r.default.createElement("div",{style:p.card,className:"circle-picker "+h},(0,a.default)(s,function(e){return r.default.createElement(l.default,{key:e,color:e,onClick:y,onSwatchHover:o,active:u===e.toLowerCase(),circleSize:c,circleSpacing:d})}))};d.propTypes={width:o.default.oneOfType([o.default.string,o.default.number]),circleSize:o.default.number,circleSpacing:o.default.number},d.defaultProps={width:252,circleSize:28,circleSpacing:14,colors:[s.red[500],s.pink[500],s.purple[500],s.deepPurple[500],s.indigo[500],s.blue[500],s.lightBlue[500],s.cyan[500],s.teal[500],s.green[500],s.lightGreen[500],s.lime[500],s.yellow[500],s.amber[500],s.orange[500],s.deepOrange[500],s.brown[500],s.blueGrey[500]]},t.default=(0,u.ColorWrap)(d)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BlockSwatches=void 0;var r=s(n(0)),o=s(n(1)),i=s(n(17)),a=n(6);function s(e){return e&&e.__esModule?e:{default:e}}var u=t.BlockSwatches=function(e){var t=e.colors,n=e.onClick,s=e.onSwatchHover,u=(0,o.default)({default:{swatches:{marginRight:"-10px"},swatch:{width:"22px",height:"22px",float:"left",marginRight:"10px",marginBottom:"10px",borderRadius:"4px"},clear:{clear:"both"}}});return r.default.createElement("div",{style:u.swatches},(0,i.default)(t,function(e){return r.default.createElement(a.Swatch,{key:e,color:e,style:u.swatch,onClick:n,onHover:s,focusStyle:{boxShadow:"0 0 4px "+e}})}),r.default.createElement("div",{style:u.clear}))};t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Block=void 0;var r=l(n(0)),o=l(n(2)),i=l(n(1)),a=l(n(12)),s=n(6),u=l(n(326));function l(e){return e&&e.__esModule?e:{default:e}}var c=t.Block=function(e){var t=e.onChange,n=e.onSwatchHover,o=e.hex,l=e.colors,c=e.width,d=e.triangle,f=e.className,h=void 0===f?"":f,p="transparent"===o,y=function(e,n){a.default.isValidHex(e)&&t({hex:e,source:"hex"},n)},v=(0,i.default)({default:{card:{width:c,background:"#fff",boxShadow:"0 1px rgba(0,0,0,.1)",borderRadius:"6px",position:"relative"},head:{height:"110px",background:o,borderRadius:"6px 6px 0 0",display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},body:{padding:"10px"},label:{fontSize:"18px",color:a.default.getContrastingColor(o),position:"relative"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 10px 10px 10px",borderColor:"transparent transparent "+o+" transparent",position:"absolute",top:"-10px",left:"50%",marginLeft:"-10px"},input:{width:"100%",fontSize:"12px",color:"#666",border:"0px",outline:"none",height:"22px",boxShadow:"inset 0 0 0 1px #ddd",borderRadius:"4px",padding:"0 7px",boxSizing:"border-box"}},"hide-triangle":{triangle:{display:"none"}}},{"hide-triangle":"hide"===d});return r.default.createElement("div",{style:v.card,className:"block-picker "+h},r.default.createElement("div",{style:v.triangle}),r.default.createElement("div",{style:v.head},p&&r.default.createElement(s.Checkboard,{borderRadius:"6px 6px 0 0"}),r.default.createElement("div",{style:v.label},o)),r.default.createElement("div",{style:v.body},r.default.createElement(u.default,{colors:l,onClick:y,onSwatchHover:n}),r.default.createElement(s.EditableInput,{style:{input:v.input},value:o,onChange:y})))};c.propTypes={width:o.default.oneOfType([o.default.string,o.default.number]),colors:o.default.arrayOf(o.default.string),triangle:o.default.oneOf(["top","hide"])},c.defaultProps={width:170,colors:["#D9E3F0","#F47373","#697689","#37D67A","#2CCCE4","#555555","#dce775","#ff8a65","#ba68c8"],triangle:"top"},t.default=(0,s.ColorWrap)(c)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AlphaPointer=void 0;var r=i(n(0)),o=i(n(1));function i(e){return e&&e.__esModule?e:{default:e}}var a=t.AlphaPointer=function(e){var t=e.direction,n=(0,o.default)({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:"vertical"===t});return r.default.createElement("div",{style:n.picker})};t.default=a},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0}),t.handleFocus=void 0;var o,i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(0),u=(o=s)&&o.__esModule?o:{default:o};function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":r(t))&&"function"!=typeof t?e:t}t.handleFocus=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){function o(){var e,t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o);for(var r=arguments.length,i=Array(r),a=0;a<r;a++)i[a]=arguments[a];return t=n=l(this,(e=o.__proto__||Object.getPrototypeOf(o)).call.apply(e,[this].concat(i))),n.state={focus:!1},n.handleFocus=function(){return n.setState({focus:!0})},n.handleBlur=function(){return n.setState({focus:!1})},l(n,t)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":r(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(o,u.default.Component),a(o,[{key:"render",value:function(){return u.default.createElement(t,{onFocus:this.handleFocus,onBlur:this.handleBlur},u.default.createElement(e,i({},this.props,this.state)))}}]),o}()}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Swatch=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=u(n(0)),i=u(n(1)),a=n(329),s=n(6);function u(e){return e&&e.__esModule?e:{default:e}}var l=t.Swatch=function(e){var t=e.color,n=e.style,a=e.onClick,u=void 0===a?function(){}:a,l=e.onHover,c=e.title,d=void 0===c?t:c,f=e.children,h=e.focus,p=e.focusStyle,y=void 0===p?{}:p,v="transparent"===t,m=(0,i.default)({default:{swatch:r({background:t,height:"100%",width:"100%",cursor:"pointer",position:"relative",outline:"none"},n,h?y:{})}}),g={};return l&&(g.onMouseOver=function(e){return l(t,e)}),o.default.createElement("div",r({style:m.swatch,onClick:function(e){return u(t,e)},title:d,tabIndex:0,onKeyDown:function(e){return 13===e.keyCode&&u(t,e)}},g),f,v&&o.default.createElement(s.Checkboard,{borderRadius:m.swatch.borderRadius,boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"}))};t.default=(0,a.handleFocus)(l)},function(e,t,n){"use strict";var r=n(144),o=n(145),i=n(163),a=n(11);e.exports=function(e,t){return(a(e)?r:o)(e,i(t))}},function(e,t,n){"use strict";e.exports=n(331)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.calculateChange=function(e,t,n,r){e.preventDefault();var o=r.getBoundingClientRect(),i=o.width,a=o.height,s="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,u="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,l=s-(r.getBoundingClientRect().left+window.pageXOffset),c=u-(r.getBoundingClientRect().top+window.pageYOffset);l<0?l=0:l>i?l=i:c<0?c=0:c>a&&(c=a);var d=100*l/i,f=-100*c/a+100;return{h:n.hsl.h,s:d,v:f,a:n.hsl.a,source:"rgb"}}},function(e,t,n){"use strict";var r=n(15),o=n(42),i=NaN,a=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return i;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(a,"");var n=u.test(e);return n||l.test(e)?c(e.slice(2),n?2:8):s.test(e)?i:+e}},function(e,t,n){"use strict";var r=n(13);e.exports=function(){return r.Date.now()}},function(e,t,n){"use strict";var r=n(137),o=n(15),i="Expected a function";e.exports=function(e,t,n){var a=!0,s=!0;if("function"!=typeof e)throw new TypeError(i);return o(n)&&(a="leading"in n?!!n.leading:a,s="trailing"in n?!!n.trailing:s),r(e,t,{leading:a,maxWait:t,trailing:s})}},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0}),t.Saturation=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0),a=c(i),s=c(n(1)),u=c(n(336)),l=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(333));function c(e){return e&&e.__esModule?e:{default:e}}var d=t.Saturation=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":r(t))&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleChange=function(e,t){n.props.onChange&&n.throttle(n.props.onChange,l.calculateChange(e,t,n.props,n.container),e)},n.handleMouseDown=function(e){n.handleChange(e,!0),window.addEventListener("mousemove",n.handleChange),window.addEventListener("mouseup",n.handleMouseUp)},n.handleMouseUp=function(){n.unbindEventListeners()},n.throttle=(0,u.default)(function(e,t,n){e(t,n)},50),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":r(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.PureComponent||i.Component),o(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props.style||{},n=t.color,r=t.white,o=t.black,i=t.pointer,u=t.circle,l=(0,s.default)({default:{color:{absolute:"0px 0px 0px 0px",background:"hsl("+this.props.hsl.h+",100%, 50%)",borderRadius:this.props.radius},white:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},black:{absolute:"0px 0px 0px 0px",boxShadow:this.props.shadow,borderRadius:this.props.radius},pointer:{position:"absolute",top:-100*this.props.hsv.v+100+"%",left:100*this.props.hsv.s+"%",cursor:"default"},circle:{width:"4px",height:"4px",boxShadow:"0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3),\n 0 0 1px 2px rgba(0,0,0,.4)",borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},custom:{color:n,white:r,black:o,pointer:i,circle:u}},{custom:!!this.props.style});return a.default.createElement("div",{style:l.color,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},a.default.createElement("style",null,"\n .saturation-white {\n background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));\n background: linear-gradient(to right, #fff, rgba(255,255,255,0));\n }\n .saturation-black {\n background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));\n background: linear-gradient(to top, #000, rgba(0,0,0,0));\n }\n "),a.default.createElement("div",{style:l.white,className:"saturation-white"},a.default.createElement("div",{style:l.black,className:"saturation-black"}),a.default.createElement("div",{style:l.pointer},this.props.pointer?a.default.createElement(this.props.pointer,this.props):a.default.createElement("div",{style:l.circle}))))}}]),t}();t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Raised=void 0;var r=a(n(0)),o=a(n(2)),i=a(n(1));function a(e){return e&&e.__esModule?e:{default:e}}var s=t.Raised=function(e){var t=e.zDepth,n=e.radius,o=e.background,a=e.children,s=(0,i.default)({default:{wrap:{position:"relative",display:"inline-block"},content:{position:"relative"},bg:{absolute:"0px 0px 0px 0px",boxShadow:"0 "+t+"px "+4*t+"px rgba(0,0,0,.24)",borderRadius:n,background:o}},"zDepth-0":{bg:{boxShadow:"none"}},"zDepth-1":{bg:{boxShadow:"0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16)"}},"zDepth-2":{bg:{boxShadow:"0 6px 20px rgba(0,0,0,.19), 0 8px 17px rgba(0,0,0,.2)"}},"zDepth-3":{bg:{boxShadow:"0 17px 50px rgba(0,0,0,.19), 0 12px 15px rgba(0,0,0,.24)"}},"zDepth-4":{bg:{boxShadow:"0 25px 55px rgba(0,0,0,.21), 0 16px 28px rgba(0,0,0,.22)"}},"zDepth-5":{bg:{boxShadow:"0 40px 77px rgba(0,0,0,.22), 0 27px 24px rgba(0,0,0,.2)"}},square:{bg:{borderRadius:"0"}},circle:{bg:{borderRadius:"50%"}}},{"zDepth-1":1===t});return r.default.createElement("div",{style:s.wrap},r.default.createElement("div",{style:s.bg}),r.default.createElement("div",{style:s.content},a))};s.propTypes={background:o.default.string,zDepth:o.default.oneOf([0,1,2,3,4,5]),radius:o.default.number},s.defaultProps={background:"#fff",zDepth:1,radius:2},t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.calculateChange=function(e,t,n,r){e.preventDefault();var o=r.clientWidth,i=r.clientHeight,a="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,s="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,u=a-(r.getBoundingClientRect().left+window.pageXOffset),l=s-(r.getBoundingClientRect().top+window.pageYOffset);if("vertical"===n.direction){var c=void 0;if(l<0)c=359;else if(l>i)c=0;else{c=360*(-100*l/i+100)/100}if(n.hsl.h!==c)return{h:c,s:n.hsl.s,l:n.hsl.l,a:n.hsl.a,source:"rgb"}}else{var d=void 0;if(u<0)d=0;else if(u>o)d=359;else{d=360*(100*u/o)/100}if(n.hsl.h!==d)return{h:d,s:n.hsl.s,l:n.hsl.l,a:n.hsl.a,source:"rgb"}}return null}},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0}),t.Hue=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0),a=l(i),s=l(n(1)),u=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(339));function l(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":r(t))&&"function"!=typeof t?e:t}var d=t.Hue=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=c(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r.handleChange=function(e,t){var n=u.calculateChange(e,t,r.props,r.container);n&&r.props.onChange&&r.props.onChange(n,e)},r.handleMouseDown=function(e){r.handleChange(e,!0),window.addEventListener("mousemove",r.handleChange),window.addEventListener("mouseup",r.handleMouseUp)},r.handleMouseUp=function(){r.unbindEventListeners()},c(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":r(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.PureComponent||i.Component),o(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props.direction,n=void 0===t?"horizontal":t,r=(0,s.default)({default:{hue:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius,boxShadow:this.props.shadow},container:{padding:"0 2px",position:"relative",height:"100%",borderRadius:this.props.radius},pointer:{position:"absolute",left:100*this.props.hsl.h/360+"%"},slider:{marginTop:"1px",width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",transform:"translateX(-2px)"}},vertical:{pointer:{left:"0px",top:-100*this.props.hsl.h/360+100+"%"}}},{vertical:"vertical"===n});return a.default.createElement("div",{style:r.hue},a.default.createElement("div",{className:"hue-"+n,style:r.container,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},a.default.createElement("style",null,"\n .hue-horizontal {\n background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0\n 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n background: -webkit-linear-gradient(to right, #f00 0%, #ff0\n 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n }\n\n .hue-vertical {\n background: linear-gradient(to top, #f00 0%, #ff0 17%, #0f0 33%,\n #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n background: -webkit-linear-gradient(to top, #f00 0%, #ff0 17%,\n #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n }\n "),a.default.createElement("div",{style:r.pointer},this.props.pointer?a.default.createElement(this.props.pointer,this.props):a.default.createElement("div",{style:r.slider}))))}}]),t}();t.default=d},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0}),t.EditableInput=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0),a=u(i),s=u(n(1));function u(e){return e&&e.__esModule?e:{default:e}}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=t.EditableInput=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":r(t))&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.handleBlur=function(){n.state.blurValue&&n.setState({value:n.state.blurValue,blurValue:null})},n.handleChange=function(e){n.props.label?n.props.onChange&&n.props.onChange(l({},n.props.label,e.target.value),e):n.props.onChange&&n.props.onChange(e.target.value,e),n.setState({value:e.target.value})},n.handleKeyDown=function(e){var t=String(e.target.value),r=t.indexOf("%")>-1,o=Number(t.replace(/%/g,""));if(!isNaN(o)){var i=n.props.arrowOffset||1;38===e.keyCode&&(null!==n.props.label?n.props.onChange&&n.props.onChange(l({},n.props.label,o+i),e):n.props.onChange&&n.props.onChange(o+i,e),r?n.setState({value:o+i+"%"}):n.setState({value:o+i})),40===e.keyCode&&(null!==n.props.label?n.props.onChange&&n.props.onChange(l({},n.props.label,o-i),e):n.props.onChange&&n.props.onChange(o-i,e),r?n.setState({value:o-i+"%"}):n.setState({value:o-i}))}},n.handleDrag=function(e){if(n.props.dragLabel){var t=Math.round(n.props.value+e.movementX);t>=0&&t<=n.props.dragMax&&n.props.onChange&&n.props.onChange(l({},n.props.label,t),e)}},n.handleMouseDown=function(e){n.props.dragLabel&&(e.preventDefault(),n.handleDrag(e),window.addEventListener("mousemove",n.handleDrag),window.addEventListener("mouseup",n.handleMouseUp))},n.handleMouseUp=function(){n.unbindEventListeners()},n.unbindEventListeners=function(){window.removeEventListener("mousemove",n.handleDrag),window.removeEventListener("mouseup",n.handleMouseUp)},n.state={value:String(e.value).toUpperCase(),blurValue:String(e.value).toUpperCase()},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":r(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.PureComponent||i.Component),o(t,[{key:"componentWillReceiveProps",value:function(e){var t=this.input;e.value!==this.state.value&&(t===document.activeElement?this.setState({blurValue:String(e.value).toUpperCase()}):this.setState({value:String(e.value).toUpperCase(),blurValue:!this.state.blurValue&&String(e.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var e=this,t=(0,s.default)({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return a.default.createElement("div",{style:t.wrap},a.default.createElement("input",{style:t.input,ref:function(t){return e.input=t},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?a.default.createElement("span",{style:t.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),t}();t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={},o=t.render=function(e,t,n,r){if("undefined"==typeof document&&!r)return null;var o=r?new r:document.createElement("canvas");o.width=2*n,o.height=2*n;var i=o.getContext("2d");return i?(i.fillStyle=e,i.fillRect(0,0,o.width,o.height),i.fillStyle=t,i.fillRect(0,0,n,n),i.translate(n,n),i.fillRect(0,0,n,n),o.toDataURL()):null};t.get=function(e,t,n,i){var a=e+"-"+t+"-"+n+(i?"-server":""),s=o(e,t,n,i);return r[a]?r[a]:(r[a]=s,s)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.calculateChange=function(e,t,n,r){e.preventDefault();var o=r.clientWidth,i=r.clientHeight,a="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,s="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,u=a-(r.getBoundingClientRect().left+window.pageXOffset),l=s-(r.getBoundingClientRect().top+window.pageYOffset);if("vertical"===n.direction){var c=void 0;if(c=l<0?0:l>i?1:Math.round(100*l/i)/100,n.hsl.a!==c)return{h:n.hsl.h,s:n.hsl.s,l:n.hsl.l,a:c,source:"rgb"}}else{var d=void 0;if(d=u<0?0:u>o?1:Math.round(100*u/o)/100,n.a!==d)return{h:n.hsl.h,s:n.hsl.s,l:n.hsl.l,a:d,source:"rgb"}}return null}},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0}),t.Alpha=void 0;var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(0),s=d(a),u=d(n(1)),l=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(343)),c=d(n(138));function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":r(t))&&"function"!=typeof t?e:t}var h=t.Alpha=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=f(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r.handleChange=function(e,t){var n=l.calculateChange(e,t,r.props,r.container);n&&r.props.onChange&&r.props.onChange(n,e)},r.handleMouseDown=function(e){r.handleChange(e,!0),window.addEventListener("mousemove",r.handleChange),window.addEventListener("mouseup",r.handleMouseUp)},r.handleMouseUp=function(){r.unbindEventListeners()},r.unbindEventListeners=function(){window.removeEventListener("mousemove",r.handleChange),window.removeEventListener("mouseup",r.handleMouseUp)},f(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":r(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.PureComponent||a.Component),i(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var e=this,t=this.props.rgb,n=(0,u.default)({default:{alpha:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},checkboard:{absolute:"0px 0px 0px 0px",overflow:"hidden",borderRadius:this.props.radius},gradient:{absolute:"0px 0px 0px 0px",background:"linear-gradient(to right, rgba("+t.r+","+t.g+","+t.b+", 0) 0%,\n rgba("+t.r+","+t.g+","+t.b+", 1) 100%)",boxShadow:this.props.shadow,borderRadius:this.props.radius},container:{position:"relative",height:"100%",margin:"0 3px"},pointer:{position:"absolute",left:100*t.a+"%"},slider:{width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",marginTop:"1px",transform:"translateX(-2px)"}},vertical:{gradient:{background:"linear-gradient(to bottom, rgba("+t.r+","+t.g+","+t.b+", 0) 0%,\n rgba("+t.r+","+t.g+","+t.b+", 1) 100%)"},pointer:{left:0,top:100*t.a+"%"}},overwrite:o({},this.props.style)},{vertical:"vertical"===this.props.direction,overwrite:!0});return s.default.createElement("div",{style:n.alpha},s.default.createElement("div",{style:n.checkboard},s.default.createElement(c.default,{renderers:this.props.renderers})),s.default.createElement("div",{style:n.gradient}),s.default.createElement("div",{style:n.container,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},s.default.createElement("div",{style:n.pointer},this.props.pointer?s.default.createElement(this.props.pointer,this.props):s.default.createElement("div",{style:n.slider}))))}}]),t}();t.default=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=function(e,t){var n={},r=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];n[e]=t};return 0===e&&r("first-child"),e===t-1&&r("last-child"),(0===e||e%2==0)&&r("even"),1===Math.abs(e%2)&&r("odd"),r("nth-child",e),n}},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0}),t.active=void 0;var o,i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n(0),s=(o=a)&&o.__esModule?o:{default:o};function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":r(t))&&"function"!=typeof t?e:t}var l=t.active=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){function o(){var n,r,a;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o);for(var l=arguments.length,c=Array(l),d=0;d<l;d++)c[d]=arguments[d];return r=a=u(this,(n=o.__proto__||Object.getPrototypeOf(o)).call.apply(n,[this].concat(c))),a.state={active:!1},a.handleMouseDown=function(){return a.setState({active:!0})},a.handleMouseUp=function(){return a.setState({active:!1})},a.render=function(){return s.default.createElement(t,{onMouseDown:a.handleMouseDown,onMouseUp:a.handleMouseUp},s.default.createElement(e,i({},a.props,a.state)))},u(a,r)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":r(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(o,s.default.Component),o}()};t.default=l},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0}),t.hover=void 0;var o,i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n(0),s=(o=a)&&o.__esModule?o:{default:o};function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":r(t))&&"function"!=typeof t?e:t}var l=t.hover=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){function o(){var n,r,a;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o);for(var l=arguments.length,c=Array(l),d=0;d<l;d++)c[d]=arguments[d];return r=a=u(this,(n=o.__proto__||Object.getPrototypeOf(o)).call.apply(n,[this].concat(c))),a.state={hover:!1},a.handleMouseOver=function(){return a.setState({hover:!0})},a.handleMouseOut=function(){return a.setState({hover:!1})},a.render=function(){return s.default.createElement(t,{onMouseOver:a.handleMouseOver,onMouseOut:a.handleMouseOut},s.default.createElement(e,i({},a.props,a.state)))},u(a,r)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":r(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(o,s.default.Component),o}()};t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.autoprefix=void 0;var r,o=n(76),i=(r=o)&&r.__esModule?r:{default:r},a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var s={borderRadius:function(e){return{msBorderRadius:e,MozBorderRadius:e,OBorderRadius:e,WebkitBorderRadius:e,borderRadius:e}},boxShadow:function(e){return{msBoxShadow:e,MozBoxShadow:e,OBoxShadow:e,WebkitBoxShadow:e,boxShadow:e}},userSelect:function(e){return{WebkitTouchCallout:e,KhtmlUserSelect:e,MozUserSelect:e,msUserSelect:e,WebkitUserSelect:e,userSelect:e}},flex:function(e){return{WebkitBoxFlex:e,MozBoxFlex:e,WebkitFlex:e,msFlex:e,flex:e}},flexBasis:function(e){return{WebkitFlexBasis:e,flexBasis:e}},justifyContent:function(e){return{WebkitJustifyContent:e,justifyContent:e}},transition:function(e){return{msTransition:e,MozTransition:e,OTransition:e,WebkitTransition:e,transition:e}},transform:function(e){return{msTransform:e,MozTransform:e,OTransform:e,WebkitTransform:e,transform:e}},absolute:function(e){var t=e&&e.split(" ");return{position:"absolute",top:t&&t[0],right:t&&t[1],bottom:t&&t[2],left:t&&t[3]}},extend:function(e,t){var n=t[e];return n||{extend:e}}},u=t.autoprefix=function(e){var t={};return(0,i.default)(e,function(e,n){var r={};(0,i.default)(e,function(e,t){var n=s[t];n?r=a({},r,n(e)):r[t]=e}),t[n]=r}),t};t.default=u},function(e,t,n){"use strict";var r=n(15),o=Object.create,i=function(){function e(){}return function(t){if(!r(t))return{};if(o)return o(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=i},function(e,t,n){"use strict";var r=n(349),o=n(72),i=n(73);e.exports=function(e){return"function"!=typeof e.constructor||i(e)?{}:r(o(e))}},function(e,t,n){"use strict";var r=n(65);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},function(e,t,n){"use strict";var r=n(32),o=r?r.prototype:void 0,i=o?o.valueOf:void 0;e.exports=function(e){return i?Object(i.call(e)):{}}},function(e,t,n){"use strict";e.exports=function(e,t){return e.add(t),e}},function(e,t,n){"use strict";var r=n(353),o=n(139),i=n(155),a=1;e.exports=function(e,t,n){var s=t?n(i(e),a):i(e);return o(s,r,new e.constructor)}},function(e,t,n){"use strict";var r=/\w*$/;e.exports=function(e){var t=new e.constructor(e.source,r.exec(e));return t.lastIndex=e.lastIndex,t}},function(e,t,n){"use strict";e.exports=function(e,t){return e.set(t[0],t[1]),e}},function(e,t,n){"use strict";var r=n(356),o=n(139),i=n(156),a=1;e.exports=function(e,t,n){var s=t?n(i(e),a):i(e);return o(s,r,new e.constructor)}},function(e,t,n){"use strict";var r=n(65);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},function(e,t,n){"use strict";var r=n(65),o=n(358),i=n(357),a=n(355),s=n(354),u=n(352),l=n(351),c="[object Boolean]",d="[object Date]",f="[object Map]",h="[object Number]",p="[object RegExp]",y="[object Set]",v="[object String]",m="[object Symbol]",g="[object ArrayBuffer]",b="[object DataView]",_="[object Float32Array]",x="[object Float64Array]",w="[object Int8Array]",E="[object Int16Array]",S="[object Int32Array]",T="[object Uint8Array]",O="[object Uint8ClampedArray]",C="[object Uint16Array]",P="[object Uint32Array]";e.exports=function(e,t,n,M){var k=e.constructor;switch(t){case g:return r(e);case c:case d:return new k(+e);case b:return o(e,M);case _:case x:case w:case E:case S:case T:case O:case C:case P:return l(e,M);case f:return i(e,M,n);case h:case v:return new k(e);case p:return a(e);case y:return s(e,M,n);case m:return u(e)}}},function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty;e.exports=function(e){var t=e.length,n=e.constructor(t);return t&&"string"==typeof e[0]&&r.call(e,"index")&&(n.index=e.index,n.input=e.input),n}},function(e,t,n){"use strict";var r=n(153),o=n(140),i=n(141);e.exports=function(e){return r(e,i,o)}},function(e,t,n){"use strict";var r=n(40),o=n(140);e.exports=function(e,t){return r(e,o(e),t)}},function(e,t,n){"use strict";var r=n(40),o=n(67);e.exports=function(e,t){return r(e,o(e),t)}},function(e,t,n){"use strict";e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},function(e,t,n){"use strict";(function(e){var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=n(13),i="object"==r(t)&&t&&!t.nodeType&&t,a=i&&"object"==r(e)&&e&&!e.nodeType&&e,s=a&&a.exports===i?o.Buffer:void 0,u=s?s.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=u?u(n):new e.constructor(n);return e.copy(r),r}}).call(this,n(33)(e))},function(e,t,n){"use strict";e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},function(e,t,n){"use strict";var r=n(15),o=n(73),i=n(366),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=o(e),n=[];for(var s in e)("constructor"!=s||!t&&a.call(e,s))&&n.push(s);return n}},function(e,t,n){"use strict";var r=n(40),o=n(141);e.exports=function(e,t){return e&&r(t,o(t),e)}},function(e,t,n){"use strict";var r=n(40),o=n(31);e.exports=function(e,t){return e&&r(t,o(t),e)}},function(e,t,n){"use strict";var r=n(19),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},function(e,t,n){"use strict";var r=n(71),o=n(144),i=n(143),a=n(369),s=n(368),u=n(365),l=n(364),c=n(363),d=n(362),f=n(154),h=n(361),p=n(150),y=n(360),v=n(359),m=n(350),g=n(11),b=n(75),_=n(15),x=n(31),w=1,E=2,S=4,T="[object Arguments]",O="[object Function]",C="[object GeneratorFunction]",P="[object Object]",M={};M[T]=M["[object Array]"]=M["[object ArrayBuffer]"]=M["[object DataView]"]=M["[object Boolean]"]=M["[object Date]"]=M["[object Float32Array]"]=M["[object Float64Array]"]=M["[object Int8Array]"]=M["[object Int16Array]"]=M["[object Int32Array]"]=M["[object Map]"]=M["[object Number]"]=M[P]=M["[object RegExp]"]=M["[object Set]"]=M["[object String]"]=M["[object Symbol]"]=M["[object Uint8Array]"]=M["[object Uint8ClampedArray]"]=M["[object Uint16Array]"]=M["[object Uint32Array]"]=!0,M["[object Error]"]=M[O]=M["[object WeakMap]"]=!1,e.exports=function e(t,n,k,A,R,I){var D,j=n&w,N=n&E,L=n&S;if(k&&(D=R?k(t,A,R,I):k(t)),void 0!==D)return D;if(!_(t))return t;var F=g(t);if(F){if(D=y(t),!j)return l(t,D)}else{var B=p(t),U=B==O||B==C;if(b(t))return u(t,j);if(B==P||B==T||U&&!R){if(D=N||U?{}:m(t),!j)return N?d(t,s(D,t)):c(t,a(D,t))}else{if(!M[B])return R?t:{};D=v(t,B,e,j)}}I||(I=new r);var H=I.get(t);if(H)return H;I.set(t,D);var W=L?N?h:f:N?keysIn:x,z=F?void 0:W(t);return o(z||t,function(r,o){z&&(r=t[o=r]),i(D,o,e(r,n,k,o,t,I))}),D}},function(e,t,n){"use strict";var r=n(371),o=1,i=4;e.exports=function(e){return r(e,o|i)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeClasses=void 0;var r=a(n(76)),o=a(n(372)),i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function a(e){return e&&e.__esModule?e:{default:e}}var s=t.mergeClasses=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e.default&&(0,o.default)(e.default)||{};return t.map(function(t){var o=e[t];return o&&(0,r.default)(o,function(e,t){n[t]||(n[t]={}),n[t]=i({},n[t],o[t])}),t}),n};t.default=s},function(e,t,n){"use strict";var r=n(47);e.exports=function(e,t){return function(n,o){if(null==n)return n;if(!r(n))return e(n,o);for(var i=n.length,a=t?i:-1,s=Object(n);(t?a--:++a<i)&&!1!==o(s[a],a,s););return n}}},function(e,t,n){"use strict";var r=n(145),o=n(47);e.exports=function(e,t){var n=-1,i=o(e)?Array(e.length):[];return r(e,function(e,r,o){i[++n]=t(e,r,o)}),i}},function(e,t,n){"use strict";var r=n(147);e.exports=function(e){return function(t){return r(t,e)}}},function(e,t,n){"use strict";e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},function(e,t,n){"use strict";var r=n(377),o=n(376),i=n(66),a=n(41);e.exports=function(e){return i(e)?r(a(e)):o(e)}},function(e,t,n){"use strict";var r=n(146),o=n(168),i=n(11),a=n(167),s=n(74),u=n(41);e.exports=function(e,t,n){for(var l=-1,c=(t=r(t,e)).length,d=!1;++l<c;){var f=u(t[l]);if(!(d=null!=e&&n(e,f)))break;e=e[f]}return d||++l!=c?d:!!(c=null==e?0:e.length)&&s(c)&&a(f,c)&&(i(e)||o(e))}},function(e,t,n){"use strict";e.exports=function(e,t){return null!=e&&t in Object(e)}},function(e,t,n){"use strict";var r=n(380),o=n(379);e.exports=function(e,t){return null!=e&&o(e,t,r)}},function(e,t,n){"use strict";var r=n(32),o=n(161),i=n(11),a=n(42),s=1/0,u=r?r.prototype:void 0,l=u?u.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return o(t,e)+"";if(a(t))return l?l.call(t):"";var n=t+"";return"0"==n&&1/t==-s?"-0":n}},function(e,t,n){"use strict";var r=n(382);e.exports=function(e){return null==e?"":r(e)}},function(e,t,n){"use strict";var r=n(68),o="Expected a function";function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(o);var n=function n(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(i.Cache||r),n}i.Cache=r,e.exports=i},function(e,t,n){"use strict";var r=n(384),o=500;e.exports=function(e){var t=r(e,function(e){return n.size===o&&n.clear(),e}),n=t.cache;return t}},function(e,t,n){"use strict";var r=/^\./,o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=n(385)(function(e){var t=[];return r.test(e)&&t.push(""),e.replace(o,function(e,n,r,o){t.push(r?o.replace(i,"$1"):n||e)}),t});e.exports=a},function(e,t,n){"use strict";var r=n(147);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},function(e,t,n){"use strict";var r=n(159),o=n(387),i=n(381),a=n(66),s=n(149),u=n(148),l=n(41),c=1,d=2;e.exports=function(e,t){return a(e)&&s(t)?u(l(e),t):function(n){var a=o(n,e);return void 0===a&&a===t?i(n,e):r(t,a,c|d)}}},function(e,t,n){"use strict";var r=n(149),o=n(31);e.exports=function(e){for(var t=o(e),n=t.length;n--;){var i=t[n],a=e[i];t[n]=[i,a,r(a)]}return t}},function(e,t,n){"use strict";var r=n(19)(n(13),"WeakMap");e.exports=r},function(e,t,n){"use strict";var r=n(19)(n(13),"Set");e.exports=r},function(e,t,n){"use strict";var r=n(19)(n(13),"Promise");e.exports=r},function(e,t,n){"use strict";var r=n(19)(n(13),"DataView");e.exports=r},function(e,t,n){"use strict";e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}},function(e,t,n){"use strict";var r=n(154),o=1,i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,a,s,u){var l=n&o,c=r(e),d=c.length;if(d!=r(t).length&&!l)return!1;for(var f=d;f--;){var h=c[f];if(!(l?h in t:i.call(t,h)))return!1}var p=u.get(e);if(p&&u.get(t))return p==t;var y=!0;u.set(e,t),u.set(t,e);for(var v=l;++f<d;){var m=e[h=c[f]],g=t[h];if(a)var b=l?a(g,m,h,t,e,u):a(m,g,h,e,t,u);if(!(void 0===b?m===g||s(m,g,n,a,u):b)){y=!1;break}v||(v="constructor"==h)}if(y&&!v){var _=e.constructor,x=t.constructor;_!=x&&"constructor"in e&&"constructor"in t&&!("function"==typeof _&&_ instanceof _&&"function"==typeof x&&x instanceof x)&&(y=!1)}return u.delete(e),u.delete(t),y}},function(e,t,n){"use strict";var r=n(32),o=n(157),i=n(70),a=n(158),s=n(156),u=n(155),l=1,c=2,d="[object Boolean]",f="[object Date]",h="[object Error]",p="[object Map]",y="[object Number]",v="[object RegExp]",m="[object Set]",g="[object String]",b="[object Symbol]",_="[object ArrayBuffer]",x="[object DataView]",w=r?r.prototype:void 0,E=w?w.valueOf:void 0;e.exports=function(e,t,n,r,w,S,T){switch(n){case x:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case _:return!(e.byteLength!=t.byteLength||!S(new o(e),new o(t)));case d:case f:case y:return i(+e,+t);case h:return e.name==t.name&&e.message==t.message;case v:case g:return e==t+"";case p:var O=s;case m:var C=r&l;if(O||(O=u),e.size!=t.size&&!C)return!1;var P=T.get(e);if(P)return P==t;r|=c,T.set(e,t);var M=a(O(e),O(t),r,w,S,T);return T.delete(e),M;case b:if(E)return E.call(e)==E.call(t)}return!1}},function(e,t,n){"use strict";e.exports=function(e,t){return e.has(t)}},function(e,t,n){"use strict";e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},function(e,t,n){"use strict";e.exports=function(e){return this.__data__.has(e)}},function(e,t,n){"use strict";var r="__lodash_hash_undefined__";e.exports=function(e){return this.__data__.set(e,r),this}},function(e,t,n){"use strict";var r=n(68),o=n(400),i=n(399);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,e.exports=a},function(e,t,n){"use strict";var r=n(71),o=n(158),i=n(396),a=n(395),s=n(150),u=n(11),l=n(75),c=n(166),d=1,f="[object Arguments]",h="[object Array]",p="[object Object]",y=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,v,m,g){var b=u(e),_=u(t),x=b?h:s(e),w=_?h:s(t),E=(x=x==f?p:x)==p,S=(w=w==f?p:w)==p,T=x==w;if(T&&l(e)){if(!l(t))return!1;b=!0,E=!1}if(T&&!E)return g||(g=new r),b||c(e)?o(e,t,n,v,m,g):i(e,t,x,n,v,m,g);if(!(n&d)){var O=E&&y.call(e,"__wrapped__"),C=S&&y.call(t,"__wrapped__");if(O||C){var P=O?e.value():e,M=C?t.value():t;return g||(g=new r),m(P,M,n,v,g)}}return!!T&&(g||(g=new r),a(e,t,n,v,m,g))}},function(e,t,n){"use strict";var r=n(43);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},function(e,t,n){"use strict";var r=n(43);e.exports=function(e){return r(this,e).has(e)}},function(e,t,n){"use strict";var r=n(43);e.exports=function(e){return r(this,e).get(e)}},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};e.exports=function(e){var t=void 0===e?"undefined":r(e);return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},function(e,t,n){"use strict";var r=n(43);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},function(e,t,n){"use strict";var r=n(44),o="__lodash_hash_undefined__";e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?o:t,this}},function(e,t,n){"use strict";var r=n(44),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},function(e,t,n){"use strict";var r=n(44),o="__lodash_hash_undefined__",i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return n===o?void 0:n}return i.call(t,e)?t[e]:void 0}},function(e,t,n){"use strict";e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},function(e,t,n){"use strict";var r=n(44);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(e,t,n){"use strict";var r=n(412),o=n(411),i=n(410),a=n(409),s=n(408);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=s,e.exports=u},function(e,t,n){"use strict";var r=n(413),o=n(46),i=n(69);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},function(e,t,n){"use strict";e.exports=function(e,t){return null==e?void 0:e[t]}},function(e,t,n){"use strict";var r=n(13)["__core-js_shared__"];e.exports=r},function(e,t,n){"use strict";var r,o=n(416),i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!i&&i in e}},function(e,t,n){"use strict";var r=n(164),o=n(417),i=n(15),a=n(160),s=/^\[object .+?Constructor\]$/,u=Function.prototype,l=Object.prototype,c=u.toString,d=l.hasOwnProperty,f=RegExp("^"+c.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(r(e)?f:s).test(a(e))}},function(e,t,n){"use strict";var r=n(46),o=n(69),i=n(68),a=200;e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var s=n.__data__;if(!o||s.length<a-1)return s.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(s)}return n.set(e,t),this.size=n.size,this}},function(e,t,n){"use strict";e.exports=function(e){return this.__data__.has(e)}},function(e,t,n){"use strict";e.exports=function(e){return this.__data__.get(e)}},function(e,t,n){"use strict";e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},function(e,t,n){"use strict";var r=n(46);e.exports=function(){this.__data__=new r,this.size=0}},function(e,t,n){"use strict";var r=n(45);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},function(e,t,n){"use strict";var r=n(45);e.exports=function(e){return r(this.__data__,e)>-1}},function(e,t,n){"use strict";var r=n(45);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},function(e,t,n){"use strict";var r=n(45),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0||(n==t.length-1?t.pop():o.call(t,n,1),--this.size,0))}},function(e,t,n){"use strict";e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){"use strict";var r=n(71),o=n(159),i=1,a=2;e.exports=function(e,t,n,s){var u=n.length,l=u,c=!s;if(null==e)return!l;for(e=Object(e);u--;){var d=n[u];if(c&&d[2]?d[1]!==e[d[0]]:!(d[0]in e))return!1}for(;++u<l;){var f=(d=n[u])[0],h=e[f],p=d[1];if(c&&d[2]){if(void 0===h&&!(f in e))return!1}else{var y=new r;if(s)var v=s(h,p,f,e,t,y);if(!(void 0===v?o(p,h,i|a,s,y):v))return!1}}return!0}},function(e,t,n){"use strict";var r=n(429),o=n(389),i=n(148);e.exports=function(e){var t=o(e);return 1==t.length&&t[0][2]?i(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=n(430),i=n(388),a=n(162),s=n(11),u=n(378);e.exports=function(e){return"function"==typeof e?e:null==e?a:"object"==(void 0===e?"undefined":r(e))?s(e)?i(e[0],e[1]):o(e):u(e)}},function(e,t,n){"use strict";var r=n(21),o=n(72),i=n(20),a="[object Object]",s=Function.prototype,u=Object.prototype,l=s.toString,c=u.hasOwnProperty,d=l.call(Object);e.exports=function(e){if(!i(e)||r(e)!=a)return!1;var t=o(e);if(null===t)return!0;var n=c.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==d}},function(e,t,n){"use strict";var r=n(165)(Object.keys,Object);e.exports=r},function(e,t,n){"use strict";var r=n(73),o=n(433),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},function(e,t,n){"use strict";(function(e){var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=n(171),i="object"==r(t)&&t&&!t.nodeType&&t,a=i&&"object"==r(e)&&e&&!e.nodeType&&e,s=a&&a.exports===i&&o.process,u=function(){try{return s&&s.binding&&s.binding("util")}catch(e){}}();e.exports=u}).call(this,n(33)(e))},function(e,t,n){"use strict";e.exports=function(e){return function(t){return e(t)}}},function(e,t,n){"use strict";var r=n(21),o=n(74),i=n(20),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&o(e.length)&&!!a[r(e)]}},function(e,t,n){"use strict";e.exports=function(){return!1}},function(e,t,n){"use strict";var r=n(21),o=n(20),i="[object Arguments]";e.exports=function(e){return o(e)&&r(e)==i}},function(e,t,n){"use strict";e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},function(e,t,n){"use strict";e.exports=function(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),s=a.length;s--;){var u=a[e?s:++o];if(!1===n(i[u],u,i))break}return t}}},function(e,t,n){"use strict";var r=n(441)();e.exports=r},function(e,t,n){"use strict";var r=Object.prototype.toString;e.exports=function(e){return r.call(e)}},function(e,t,n){"use strict";var r=n(32),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[s]=n:delete e[s]),o}},function(e,t,n){"use strict";var r=n(21),o=n(11),i=n(20),a="[object String]";e.exports=function(e){return"string"==typeof e||!o(e)&&i(e)&&r(e)==a}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.flattenNames=void 0;var r=s(n(445)),o=s(n(76)),i=s(n(432)),a=s(n(17));function s(e){return e&&e.__esModule?e:{default:e}}var u=t.flattenNames=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=[];return(0,a.default)(t,function(t){Array.isArray(t)?e(t).map(function(e){return n.push(e)}):(0,i.default)(t)?(0,o.default)(t,function(e,t){!0===e&&n.push(t),n.push(t+"-"+e)}):(0,r.default)(t)&&n.push(t)}),n};t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AlphaPicker=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=u(n(0)),i=u(n(1)),a=n(6),s=u(n(328));function u(e){return e&&e.__esModule?e:{default:e}}var l=t.AlphaPicker=function(e){var t=e.rgb,n=e.hsl,s=e.width,u=e.height,l=e.onChange,c=e.direction,d=e.style,f=e.renderers,h=e.pointer,p=e.className,y=void 0===p?"":p,v=(0,i.default)({default:{picker:{position:"relative",width:s,height:u},alpha:{radius:"2px",style:d}}});return o.default.createElement("div",{style:v.picker,className:"alpha-picker "+y},o.default.createElement(a.Alpha,r({},v.alpha,{rgb:t,hsl:n,pointer:h,renderers:f,onChange:l,direction:c})))};l.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:s.default},t.default=(0,a.ColorWrap)(l)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CustomPicker=t.TwitterPicker=t.SwatchesPicker=t.SliderPicker=t.SketchPicker=t.PhotoshopPicker=t.MaterialPicker=t.HuePicker=t.GithubPicker=t.CompactPicker=t.ChromePicker=t.default=t.CirclePicker=t.BlockPicker=t.AlphaPicker=void 0;var r=n(447);Object.defineProperty(t,"AlphaPicker",{enumerable:!0,get:function(){return g(r).default}});var o=n(327);Object.defineProperty(t,"BlockPicker",{enumerable:!0,get:function(){return g(o).default}});var i=n(325);Object.defineProperty(t,"CirclePicker",{enumerable:!0,get:function(){return g(i).default}});var a=n(323);Object.defineProperty(t,"ChromePicker",{enumerable:!0,get:function(){return g(a).default}});var s=n(319);Object.defineProperty(t,"CompactPicker",{enumerable:!0,get:function(){return g(s).default}});var u=n(316);Object.defineProperty(t,"GithubPicker",{enumerable:!0,get:function(){return g(u).default}});var l=n(314);Object.defineProperty(t,"HuePicker",{enumerable:!0,get:function(){return g(l).default}});var c=n(312);Object.defineProperty(t,"MaterialPicker",{enumerable:!0,get:function(){return g(c).default}});var d=n(311);Object.defineProperty(t,"PhotoshopPicker",{enumerable:!0,get:function(){return g(d).default}});var f=n(305);Object.defineProperty(t,"SketchPicker",{enumerable:!0,get:function(){return g(f).default}});var h=n(302);Object.defineProperty(t,"SliderPicker",{enumerable:!0,get:function(){return g(h).default}});var p=n(298);Object.defineProperty(t,"SwatchesPicker",{enumerable:!0,get:function(){return g(p).default}});var y=n(295);Object.defineProperty(t,"TwitterPicker",{enumerable:!0,get:function(){return g(y).default}});var v=n(136);Object.defineProperty(t,"CustomPicker",{enumerable:!0,get:function(){return g(v).default}});var m=g(a);function g(e){return e&&e.__esModule?e:{default:e}}t.default=m.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ColorPicker=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=u(n(0)),i=u(n(172)),a=u(n(2)),s=n(448);function u(e){return e&&e.__esModule?e:{default:e}}var l=t.ColorPicker=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={active:!1,color:(0,i.default)(e.value).toHsl()},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.default.Component),r(t,[{key:"handleChange",value:function(e,t){var n=(0,i.default)(e[e.source]).toHslString();this.setState({color:e[e.source]}),this.props.boundFunction(n)}},{key:"handleClose",value:function(e){this.setState({active:!1})}},{key:"handleOpen",value:function(e){this.setState({active:!0})}},{key:"render",value:function(){var e="option-"+this.props.name.replace(" ","-"),t=["swatch-container"],n=!1;return!0===this.state.active&&(t.push("active"),n=o.default.createElement(s.ChromePicker,{color:this.state.color,onChange:this.handleChange.bind(this)})),o.default.createElement("li",{className:"settings-item settings-color"},o.default.createElement("label",{htmlFor:e,title:this.props.name},this.props.name),o.default.createElement("div",{id:e,className:t.join(" ")},o.default.createElement("div",{className:"swatch",onClick:this.handleOpen.bind(this)},o.default.createElement("div",{className:"swatch-fg",style:{backgroundColor:this.props.value}}),o.default.createElement("div",{className:"swatch-bg swatch-bg-black"}),o.default.createElement("div",{className:"swatch-bg swatch-bg-gray"}),o.default.createElement("div",{className:"swatch-bg swatch-bg-white"})),n,o.default.createElement("div",{className:"colorpicker-background",onClick:this.handleClose.bind(this)})))}}]),t}();l.propTypes={value:a.default.string.isRequired,name:a.default.string.isRequired,boundFunction:a.default.func.isRequired},t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StyleSection=void 0;var r=c(n(0)),o=c(n(2)),i=n(8),a=c(n(449)),s=c(n(174)),u=c(n(173)),l=c(n(294));function c(e){return e&&e.__esModule?e:{default:e}}var d=t.StyleSection=function(e){var t=e.settings;return r.default.createElement("div",{className:"settings-style"},r.default.createElement("div",{className:"left"},r.default.createElement("ul",null,r.default.createElement("h4",null,"Window Appearance"),r.default.createElement("hr",null),r.default.createElement(s.default,{name:"Border Radius",value:t.window_border_radius,boundFunction:e.settingsSetValue.bind(void 0,"window_border_radius")}),r.default.createElement(s.default,{name:"Font-Size",value:t.window_font_size,boundFunction:e.settingsSetValue.bind(void 0,"window_font_size")}),r.default.createElement(s.default,{name:"DPI Zoom",value:t.page_zoom,boundFunction:e.settingsSetValue.bind(void 0,"page_zoom")}),r.default.createElement("h4",null,"Eye Candy"),r.default.createElement("hr",null),r.default.createElement(u.default,{name:"Experimental Stars",value:t.experimental_stars_enabled,boundFunction:e.settingsToggleBinary.bind(void 0,"experimental_stars_enabled")}))),r.default.createElement("div",{className:"right"},r.default.createElement("ul",null,r.default.createElement("h4",null,"Command Panel"),r.default.createElement("hr",null),r.default.createElement(u.default,{name:"Icons Enabled",value:t.command_icons_enabled,boundFunction:e.settingsToggleBinary.bind(void 0,"command_icons_enabled")}),r.default.createElement(l.default,{name:"Text Align",value:t.command_text_align,options:["left","center","right"],boundFunction:e.settingsSetValue.bind(void 0,"command_text_align")}),r.default.createElement("div",{className:"color-group"},r.default.createElement(a.default,{name:"Background",value:t.style_command_background_color,boundFunction:e.settingsSetValue.bind(void 0,"style_command_background_color")}),r.default.createElement(a.default,{name:"Icon Color",value:t.style_command_icon_color,boundFunction:e.settingsSetValue.bind(void 0,"style_command_icon_color")}),r.default.createElement(a.default,{name:"Text Color",value:t.style_command_text_color,boundFunction:e.settingsSetValue.bind(void 0,"style_command_text_color")})),r.default.createElement("h4",null,"Login Panel"),r.default.createElement("hr",null),r.default.createElement(u.default,{name:"Border Enabled",value:t.style_login_border_enabled,boundFunction:e.settingsToggleBinary.bind(void 0,"style_login_border_enabled")}),r.default.createElement("div",{className:"color-group"},r.default.createElement(a.default,{name:"Border Color",value:t.style_login_border_color,boundFunction:e.settingsSetValue.bind(void 0,"style_login_border_color")}),r.default.createElement(a.default,{name:"Gradient-Top",value:t.style_login_gradient_top_color,boundFunction:e.settingsSetValue.bind(void 0,"style_login_gradient_top_color")}),r.default.createElement(a.default,{name:"Gradient-Bottom",value:t.style_login_gradient_bottom_color,boundFunction:e.settingsSetValue.bind(void 0,"style_login_gradient_bottom_color")}),r.default.createElement(a.default,{name:"Button Color",value:t.style_login_button_color,boundFunction:e.settingsSetValue.bind(void 0,"style_login_button_color")}),r.default.createElement(a.default,{name:"Username",value:t.style_login_username_color,boundFunction:e.settingsSetValue.bind(void 0,"style_login_username_color")})))))};d.propTypes={settings:o.default.object.isRequired,settingsSetValue:o.default.func.isRequired,settingsToggleBinary:o.default.func.isRequired},t.default=(0,i.connect)(function(e){return{settings:e.settings}},null)(d)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GeneralSection=void 0;var r=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=c(n(2)),i=c(n(0)),a=n(8),s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(176)),u=c(n(174)),l=c(n(173));function c(e){return e&&e.__esModule?e:{default:e}}var d=function(e){var t=s.getLogos(),n=e.settings.distro,o=t.map(function(e){var t=r(e,2),n=t[0],o=t[1];return i.default.createElement("option",{key:o,value:n},o.split(".")[0])}),a=t.filter(function(e){return e[0]===n});return a=a[0]||[""],i.default.createElement("div",null,i.default.createElement("div",{className:"preview-logo"},i.default.createElement("img",{src:a[0]})),i.default.createElement("select",{onChange:function(e,t){e.dispatch({type:"SETTINGS_LOGO_CHANGE",path:t.target.value})}.bind(void 0,e),value:n},o))};d.propTypes={settings:o.default.object.isRequired};var f=t.GeneralSection=function(e){var t=e.settings;return i.default.createElement("div",{className:"settings-general"},i.default.createElement("div",{className:"left"},d(e)),i.default.createElement("div",{className:"right"},i.default.createElement("ul",null,i.default.createElement("h4",null,"User Functionality"),i.default.createElement("hr",null),i.default.createElement(l.default,{name:"Show User Switcher",value:t.user_switcher_enabled,boundFunction:e.settingsToggleBinary.bind(void 0,"user_switcher_enabled")}),i.default.createElement("h4",null,"Date & Time"),i.default.createElement("hr",null),i.default.createElement(l.default,{name:"Date Enabled",value:t.date_enabled,boundFunction:e.settingsToggleBinary.bind(void 0,"date_enabled")}),i.default.createElement(u.default,{name:"Date Format",value:t.date_format,boundFunction:e.settingsSetValue.bind(void 0,"date_format")}),i.default.createElement(l.default,{name:"Time Enabled",value:t.time_enabled,boundFunction:e.settingsToggleBinary.bind(void 0,"time_enabled")}),i.default.createElement(u.default,{name:"Time Format",value:t.time_format,boundFunction:e.settingsSetValue.bind(void 0,"time_format")}),i.default.createElement("h4",null,"Command Visibility"),i.default.createElement("hr",null),i.default.createElement(l.default,{name:"Shutdown Enabled",value:t.command_shutdown_enabled,boundFunction:e.settingsToggleBinary.bind(void 0,"command_shutdown_enabled")}),i.default.createElement(l.default,{name:"Reboot Enabled",value:t.command_reboot_enabled,boundFunction:e.settingsToggleBinary.bind(void 0,"command_reboot_enabled")}),i.default.createElement(l.default,{name:"Hibernate Enabled",value:t.command_hibernate_enabled,boundFunction:e.settingsToggleBinary.bind(void 0,"command_hibernate_enabled")}),i.default.createElement(l.default,{name:"Sleep Enabled",value:t.command_sleep_enabled,boundFunction:e.settingsToggleBinary.bind(void 0,"command_sleep_enabled")}),i.default.createElement("h4",null,"Avatar Visibility"),i.default.createElement("hr",null),i.default.createElement(l.default,{name:"Avatar Enabled",value:t.avatar_enabled,boundFunction:e.settingsToggleBinary.bind(void 0,"avatar_enabled")}),i.default.createElement(l.default,{name:"Background Enabled",value:t.avatar_background_enabled,boundFunction:e.settingsToggleBinary.bind(void 0,"avatar_background_enabled")}),i.default.createElement("h4",null,"Hostname Visibility"),i.default.createElement("hr",null),i.default.createElement(l.default,{name:"Hostname Enabled",value:t.hostname_enabled,boundFunction:e.settingsToggleBinary.bind(void 0,"hostname_enabled")}))))};f.propTypes={settings:o.default.object.isRequired,settingsSetValue:o.default.func.isRequired,settingsToggleBinary:o.default.func.isRequired},t.default=(0,a.connect)(function(e){return{settings:e.settings}},null)(f)},function(e,t,n){"use strict";var r,o,i,a,s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};a=function(){function e(e,t){var n=this,r=u.bind(n.start,n),i=u.bind(n.drag,n),s=u.bind(n.stop,n);if(!o(e))throw new TypeError("Draggable expects argument 0 to be an Element");t=u.assign({},a,t),u.assign(n,{element:e,handle:t.handle&&o(t.handle)?t.handle:e,handlers:{start:{mousedown:r,touchstart:r},move:{mousemove:i,mouseup:s,touchmove:i,touchend:s}},options:t}),n.initialize()}function t(e){return parseInt(e,10)}function n(e){return"currentStyle"in e?e.currentStyle:getComputedStyle(e)}function r(e){return void 0!==e&&null!==e}function o(e){return e instanceof Element||"undefined"!=typeof HTMLDocument&&e instanceof HTMLDocument}function i(){}var a={grid:0,filterTarget:null,limit:{x:null,y:null},threshold:0,setCursor:!1,setPosition:!0,smoothDrag:!0,useGPU:!0,onDrag:i,onDragStart:i,onDragEnd:i},s={transform:function(){for(var e=" -o- -ms- -moz- -webkit-".split(" "),t=document.body.style,n=e.length;n--;){var r=e[n]+"transform";if(r in t)return r}}()},u={assign:function(){for(var e=arguments[0],t=arguments.length,n=1;t>n;n++){var r=arguments[n];for(var o in r)e[o]=r[o]}return e},bind:function(e,t){return function(){e.apply(t,arguments)}},on:function(e,t,n){if(t&&n)u.addEvent(e,t,n);else if(t)for(var r in t)u.addEvent(e,r,t[r])},off:function(e,t,n){if(t&&n)u.removeEvent(e,t,n);else if(t)for(var r in t)u.removeEvent(e,r,t[r])},limit:function(e,t){return function(e){return e instanceof Array}(t)?e<(t=[+t[0],+t[1]])[0]?e=t[0]:e>t[1]&&(e=t[1]):e=+t,e},addEvent:"attachEvent"in Element.prototype?function(e,t,n){e.attachEvent("on"+t,n)}:function(e,t,n){e.addEventListener(t,n,!1)},removeEvent:"attachEvent"in Element.prototype?function(e,t,n){e.detachEvent("on"+t,n)}:function(e,t,n){e.removeEventListener(t,n)}};return u.assign(e.prototype,{setOption:function(e,t){var n=this;return n.options[e]=t,n.initialize(),n},get:function(){var e=this.dragEvent;return{x:e.x,y:e.y}},set:function(e,t){var n=this,r=n.dragEvent;return r.original={x:r.x,y:r.y},n.move(e,t),n},dragEvent:{started:!1,x:0,y:0},initialize:function(){var e,t=this,r=t.element,o=(t.handle,r.style),i=n(r),a=t.options,l=s.transform,c=t._dimensions={height:r.offsetHeight,left:r.offsetLeft,top:r.offsetTop,width:r.offsetWidth};a.useGPU&&l&&("none"===(e=i[l])&&(e=""),o[l]=e+" translate3d(0,0,0)"),a.setPosition&&(o.display="block",o.left=c.left+"px",o.top=c.top+"px",o.bottom=o.right="auto",o.margin=0,o.position="absolute"),a.setCursor&&(o.cursor="move"),t.setLimit(a.limit),u.assign(t.dragEvent,{x:c.left,y:c.top}),u.on(t.handle,t.handlers.start)},start:function(e){var t=this,n=t.getCursor(e),r=t.element;t.useTarget(e.target||e.srcElement)&&(e.preventDefault?e.preventDefault():e.returnValue=!1,t.dragEvent.oldZindex=r.style.zIndex,r.style.zIndex=1e4,t.setCursor(n),t.setPosition(),t.setZoom(),u.on(document,t.handlers.move))},drag:function(e){var t=this,n=t.dragEvent,r=t.element,o=t._cursor,i=t._dimensions,a=t.options,s=i.zoom,u=t.getCursor(e),l=a.threshold,c=(u.x-o.x)/s+i.left,d=(u.y-o.y)/s+i.top;!n.started&&l&&Math.abs(o.x-u.x)<l&&Math.abs(o.y-u.y)<l||(n.original||(n.original={x:c,y:d}),n.started||(a.onDragStart(r,c,d,e),n.started=!0),t.move(c,d)&&a.onDrag(r,n.x,n.y,e))},move:function(e,t){var n=this,r=n.dragEvent,o=n.options,i=o.grid,a=n.element.style,s=n.limit(e,t,r.original.x,r.original.y);return!o.smoothDrag&&i&&(s=n.round(s,i)),(s.x!==r.x||s.y!==r.y)&&(r.x=s.x,r.y=s.y,a.left=s.x+"px",a.top=s.y+"px",!0)},stop:function(e){var t,n=this,r=n.dragEvent,o=n.element,i=n.options,a=i.grid;u.off(document,n.handlers.move),o.style.zIndex=r.oldZindex,i.smoothDrag&&a&&(t=n.round({x:r.x,y:r.y},a),n.move(t.x,t.y),u.assign(n.dragEvent,t)),n.dragEvent.started&&i.onDragEnd(o,r.x,r.y,e),n.reset()},reset:function(){this.dragEvent.started=!1},round:function(e){var t=this.options.grid;return{x:t*Math.round(e.x/t),y:t*Math.round(e.y/t)}},getCursor:function(e){return{x:(e.targetTouches?e.targetTouches[0]:e).clientX,y:(e.targetTouches?e.targetTouches[0]:e).clientY}},setCursor:function(e){this._cursor=e},setLimit:function(e){var t=this,n=function(e,t){return{x:e,y:t}};if(function(e){return e instanceof Function}(e))t.limit=e;else if(o(e)){var i=t._dimensions,a=e.scrollHeight-i.height,s=e.scrollWidth-i.width;t.limit=function(e,t){return{x:u.limit(e,[0,s]),y:u.limit(t,[0,a])}}}else if(e){var l={x:r(e.x),y:r(e.y)};t.limit=l.x||l.y?function(t,n){return{x:l.x?u.limit(t,e.x):t,y:l.y?u.limit(n,e.y):n}}:n}else t.limit=n},setPosition:function(){var e=this.element,n=e.style;u.assign(this._dimensions,{left:t(n.left)||e.offsetLeft,top:t(n.top)||e.offsetTop})},setZoom:function(){for(var e=this.element,t=1;e=e.offsetParent;){var r=n(e).zoom;if(r&&"normal"!==r){t=r;break}}this._dimensions.zoom=t},useTarget:function(e){var t=this.options.filterTarget;return!(t instanceof Function)||t(e)},destroy:function(){u.off(this.handle,this.handlers.start),u.off(document,this.handlers.move)}}),e},"object"==s(t)?e.exports=a():(o=[],void 0===(i="function"==typeof(r=a)?r.apply(t,o):r)||(e.exports=i))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=p(n(0)),i=p(n(34)),a=p(n(452)),s=p(n(2)),u=n(8),l=p(n(451)),c=p(n(450)),d=p(n(293)),f=p(n(291)),h=n(39);function p(e){return e&&e.__esModule?e:{default:e}}var y=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={active:n.props.settings.active,selectedCategory:"general"},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.default.Component),r(t,[{key:"componentDidMount",value:function(){var e=new a.default(document.getElementById("settings"),{handle:this.handle}),t=(window.innerWidth-600)/2,n=(window.innerHeight-300)/2;e.set(t,n);var r=this.props.settings.page_zoom;(0,h.setPageZoom)(r)}},{key:"handleCategoryClick",value:function(e,t){this.setState({selectedCategory:e.toLowerCase()})}},{key:"handleSettingsBinary",value:function(e){this.props.dispatch({type:"SETTINGS_TOGGLE_VALUE",name:e})}},{key:"handleSettingsClose",value:function(){this.props.dispatch({type:"SETTINGS_TOGGLE_ACTIVE"})}},{key:"handleSettingsMinimize",value:function(){this.props.dispatch({type:"SETTINGS_WINDOW_MINIMIZE"})}},{key:"handleSettingsText",value:function(e,t){var n=void 0;try{n=t.target.value}catch(e){n=t}this.props.dispatch({type:"SETTINGS_SET_VALUE",name:e,value:n})}},{key:"generateCategories",value:function(){var e=this,t=["General","Style","Themes"].map(function(t){var n=[];return t.toLowerCase()===e.state.selectedCategory&&n.push("active"),o.default.createElement("li",{key:t,className:n.join(" "),onClick:e.handleCategoryClick.bind(e,t)},t)});return o.default.createElement("ul",null,t)}},{key:"generateSection",value:function(e){var t=e.toLowerCase(),n={settingsToggleBinary:this.handleSettingsBinary.bind(this),settingsSetValue:this.handleSettingsText.bind(this)};return"general"===t?o.default.createElement(l.default,n):"style"===t?o.default.createElement(c.default,n):"themes"===t?o.default.createElement(d.default,n):void 0}},{key:"render",value:function(){var e=this,t=this.generateCategories(),n=this.generateSection(this.state.selectedCategory);return i.default.createPortal(o.default.createElement("div",null,o.default.createElement("div",{className:"settings-handle",ref:function(t){return e.handle=t}},o.default.createElement("ul",null,o.default.createElement("li",{className:"settings-minimize",onClick:this.handleSettingsMinimize.bind(this)},"−"),o.default.createElement("li",{className:"settings-close",onClick:this.handleSettingsClose.bind(this)},"×"))),o.default.createElement("div",{className:"settings-categories"},t),o.default.createElement("div",{className:"settings-section"},n,o.default.createElement(f.default,null))),document.getElementById("settings"))}}]),t}();y.propTypes={dispatch:s.default.func.isRequired,settings:s.default.object.isRequired},t.default=(0,u.connect)(function(e){return{settings:e.settings}},null)(y)},function(e,t){e.exports='<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="626 306 28 28" enable-background="new 626 306 28 28" xml:space="preserve"><g><g><circle cx="640" cy="320"></circle><polygon fill="#FFFFFF" points="636.418,314.791 645.535,320.326 636.418,325.861 638.372,320.326 "></polygon></g></g></svg>'},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(n(2)),o=i(n(0));function i(e){return e&&e.__esModule?e:{default:e}}var a=function(e){var t=["user-password"];return!0===e.passwordFailed&&t.push("error"),o.default.createElement("input",{id:"password-field",type:"password",placeholder:"*******************",className:t.join(" "),value:e.password,onInput:e.handlePasswordInput})};a.propTypes={password:r.default.string.isRequired,passwordFailed:r.default.bool.isRequired,handlePasswordInput:r.default.func.isRequired},t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(n(2)),o=a(n(0)),i=a(n(22));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){var t=["dropdown-item"];return!0===e.active&&(t.push("active"),t.push((0,i.default)({"background-color":e.buttonColor}))),o.default.createElement("div",{className:t.join(" "),key:e.session.key,onClick:function(t){t.preventDefault(),e.handleClick(e.session.key)}},e.session.name)};s.propTypes={active:r.default.bool.isRequired,buttonColor:r.default.string.isRequired,session:r.default.object.isRequired,handleClick:r.default.func.isRequired},t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SessionDropdown=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=u(n(2)),i=u(n(0)),a=n(8),s=u(n(456));function u(e){return e&&e.__esModule?e:{default:e}}var l=t.SessionDropdown=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={dropdownActive:!1},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.default.Component),r(t,[{key:"handleClick",value:function(e){e!==this.props.activeSession&&this.props.setActiveSession(e),this.setState({dropdownActive:!this.state.dropdownActive})}},{key:"handleDropdownLeave",value:function(){this.setState({dropdownActive:!1})}},{key:"render",value:function(){var e=this,t=window.lightdm.sessions.sort(function(e,t){return e.name.toUpperCase()>t.name.toUpperCase()}).sort(function(t,n){return n.key.toLowerCase()===e.props.activeSession.toLowerCase()?1:-1}).map(function(t){return i.default.createElement(s.default,{active:e.props.activeSession===t.key,key:t.key,session:t,buttonColor:e.props.buttonColor,handleClick:e.handleClick.bind(e)})}),n=["dropdown","user-session"];return!0===this.state.dropdownActive&&n.push("active"),i.default.createElement("div",{className:n.join(" "),onMouseLeave:this.handleDropdownLeave.bind(this)},t)}}]),t}();l.propTypes={activeSession:o.default.string.isRequired,setActiveSession:o.default.func.isRequired,buttonColor:o.default.string.isRequired},t.default=(0,a.connect)(function(e){return{activeSession:e.session.key,buttonColor:e.settings.style_login_button_color}},null)(l)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UserPanelForm=void 0;var r=l(n(2)),o=l(n(0)),i=l(n(22)),a=n(8),s=l(n(457)),u=l(n(455));function l(e){return e&&e.__esModule?e:{default:e}}var c=n(454),d=t.UserPanelForm=function(e){var t=["user-username"];t.push((0,i.default)({color:e.settings.style_login_username_color}));var n=["submit-button"];return n.push((0,i.default)({color:e.settings.style_login_button_color})),o.default.createElement("form",{className:"login-form",onSubmit:e.handleLoginSubmit},o.default.createElement("div",{className:t.join(" ")},e.activeUser.display_name),o.default.createElement("div",{className:"user-password-container"},o.default.createElement(u.default,{password:e.password,passwordFailed:e.passwordFailed,handlePasswordInput:e.handlePasswordInput})),o.default.createElement("div",{className:"submit-row-container"},o.default.createElement("div",{className:"submit-row"},o.default.createElement("div",{className:"left"},o.default.createElement(s.default,{activeSession:e.activeSession,setActiveSession:e.setActiveSession})),o.default.createElement("div",{className:"right"},o.default.createElement("label",{className:n.join(" ")},o.default.createElement("input",{type:"submit"}),o.default.createElement("div",{dangerouslySetInnerHTML:{__html:c}}))))))};d.propTypes={activeUser:r.default.object,activeSession:r.default.object,settings:r.default.object.isRequired,password:r.default.string.isRequired,passwordFailed:r.default.bool.isRequired,handleLoginSubmit:r.default.func.isRequired,handlePasswordInput:r.default.func.isRequired,setActiveSession:r.default.func.isRequired},t.default=(0,a.connect)(function(e){return{activeUser:e.user,activeSession:e.session,settings:e.settings}},null)(d)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=s(n(0)),i=s(n(2)),a=n(8);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={fadeOut:!1,selectedUser:n.props.activeUser,selectedUserIndex:window.lightdm.users.indexOf(n.props.activeUser)},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.default.Component),r(t,[{key:"handleBackButton",value:function(e){var t=this;this.props.setActiveUser(this.state.selectedUser),this.setState({fadeOut:!0}),setTimeout(function(){t.setState({fadeOut:!1})},200)}},{key:"handleUserClick",value:function(e){this.setState({selectedUser:window.lightdm.users[e],selectedUserIndex:e})}},{key:"generateUserList",value:function(){var e=this,t=this.state.selectedUserIndex,n=void 0;n=this.props.avatarEnabled?"avatar-background":"avatar-background avatar-background-hidden";var r=window.lightdm.users.map(function(r,i){var a=["avatar-container"];return i===t&&a.push("active"),i===t-1&&a.push("previous"),i===t+1&&a.push("next"),o.default.createElement("li",{className:a.join(" "),onClick:e.handleUserClick.bind(e,i),key:r.display_name||r.real_name},o.default.createElement("div",{className:n},o.default.createElement("div",{className:"avatar-mask"},o.default.createElement("img",{className:"user-avatar",src:r.image}))),o.default.createElement("div",{className:"avatar-name"},o.default.createElement("div",{className:"username"},r.display_name),o.default.createElement("div",{className:"real-name"},r.real_name)))});if(0===t){var i=window.lightdm.users[window.lightdm.users.length-1];r.splice(0,0,o.default.createElement("li",{className:"avatar-container previous",onClick:this.handleUserClick.bind(this,window.lightdm.users.length-1),key:"ecopy1"},o.default.createElement("div",{className:n},o.default.createElement("div",{className:"avatar-mask"},o.default.createElement("img",{className:"user-avatar",src:i.image}))),o.default.createElement("div",{className:"avatar-name"},o.default.createElement("div",{className:"username"},i.display_name),o.default.createElement("div",{className:"real-name"},i.real_name))))}if(t===window.lightdm.users.length-1){var a=window.lightdm.users[0];r.push(o.default.createElement("li",{className:"avatar-container next",onClick:this.handleUserClick.bind(this,0),key:"ecopy2"},o.default.createElement("div",{className:n},o.default.createElement("div",{className:"avatar-mask"},o.default.createElement("img",{className:"user-avatar",src:a.image}))),o.default.createElement("div",{className:"avatar-name"},o.default.createElement("div",{className:"username"},a.display_name),o.default.createElement("div",{className:"real-name"},a.real_name))))}return o.default.createElement("ul",{className:"avatar-slider"},r)}},{key:"render",value:function(){var e=["login-panel-switcher"],t=this.generateUserList(),n=window.lightdm.users.length;return!0===this.props.active?e.push("active"):!0===this.state.fadeOut&&e.push("fadeout"),o.default.createElement("div",{className:e.join(" ")},o.default.createElement("div",{className:"header"},"User ",o.default.createElement("em",null,this.state.selectedUserIndex+1)," of ",o.default.createElement("em",null,n)),t,o.default.createElement("div",{className:"bottom",onClick:this.handleBackButton.bind(this)},o.default.createElement("div",{className:"left"},"BACK")))}}]),t}();u.propTypes={active:i.default.bool.isRequired,activeUser:i.default.object.isRequired,setActiveUser:i.default.func.isRequired,avatarEnabled:i.default.bool.isRequired},t.default=(0,a.connect)(function(e){return{activeUser:e.user,avatarEnabled:e.settings.avatar_background_enabled}},null)(u)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UserSwitchButton=void 0;var r=i(n(0)),o=i(n(2));function i(e){return e&&e.__esModule?e:{default:e}}var a=t.UserSwitchButton=function(e){var t=e.handleSwitcherClick,n=["left"];return window.lightdm.users.length<2&&n.push("disabled"),r.default.createElement("div",{className:n.join(" "),onClick:t},"SWITCH USER")};a.propTypes={handleSwitcherClick:o.default.func.isRequired},t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=d(n(22)),i=d(n(0)),a=d(n(2)),s=n(8),u=d(n(460)),l=d(n(459)),c=d(n(458));function d(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={fadeIn:!1,password:"",passwordFailed:!1,switcherActive:!1},n.CTRL_Pressed=!1,n.A_Pressed=!1,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.default.Component),r(t,[{key:"componentWillMount",value:function(){var e=this;window.show_prompt=function(t,n){"text"===n?window.notifications.generate(t):"password"===n&&window.lightdm.respond(e.state.password)},window.show_message=function(e,t){window.notifications.generate(e,t)},window.authentication_complete=function(){window.lightdm.is_authenticated?window.lightdm.start_session_sync(e.props.activeSession.key):e.rejectPassword()},window.autologin_timer_expired=function(){window.notifications.generate("Autologin expired.")},document.onkeydown=this.onKeyDown.bind(this),document.onkeyup=this.onKeyUp.bind(this)}},{key:"onKeyDown",value:function(e){if(17===e.keyCode&&(this.CTRL_Pressed=!0),65===e.keyCode&&(this.A_Pressed=!0),this.CTRL_Pressed&&this.A_Pressed){e.preventDefault();var t=document.getElementById("password-field");t.focus(),t.select()}}},{key:"onKeyUp",value:function(e){17===e.keyCode&&(this.CTRL_Pressed=!1),65===e.keyCode&&(this.A_Pressed=!1)}},{key:"handleLoginSubmit",value:function(e){e.preventDefault(),!0===window.__debug?"password"!==this.state.password.toLowerCase()?this.rejectPassword():(window.notifications.generate("You are now logged in as "+this.props.activeUser.display_name+" to "+this.props.activeSession.name+".","success"),this.setState({password:""})):window.lightdm.authenticate(this.props.activeUser.username||this.props.activeUser.name)}},{key:"handleSwitcherClick",value:function(e){var t=this;if(window.lightdm.users.length<2)return window.notifications.generate("You are the only user that is able to log in on this system.","error"),!1;if(2===window.lightdm.users.length){var n=window.lightdm.users.filter(function(e){return e.username!==t.props.activeUser.username})[0];this.setActiveUser(n,!0),window.notifications.generate("User has been automatically switched to the only other user on this system.")}else this.setState({switcherActive:!0})}},{key:"handlePasswordInput",value:function(e){this.setState({password:e.target.value})}},{key:"setActiveSession",value:function(e){this.props.dispatch({type:"AUTH_SET_ACTIVE_SESSION",session:e})}},{key:"setActiveUser",value:function(e,t){var n=this;this.props.dispatch({type:"AUTH_SET_ACTIVE_USER",user:e}),!1===t||void 0===t?(this.setState({fadeIn:!0,switcherActive:!1}),setTimeout(function(){n.setState({fadeIn:!1})},200)):this.setState({switcherActive:!1})}},{key:"rejectPassword",value:function(){var e=this;window.notifications.generate("Password incorrect, please try again.","error"),this.setState({password:"",passwordFailed:!0}),setTimeout(function(){e.setState({passwordFailed:!1})},600)}},{key:"render",value:function(){var e=["login-panel-main"],t=["avatar-container"],n=["avatar-background"],r=this.props.settings;!0===this.state.fadeIn&&e.push("fadein"),!0===this.state.switcherActive&&e.push("fadeout"),!1===r.avatar_enabled&&t.push("hidden"),!1===r.avatar_background_enabled&&n.push("avatar-background-hidden");var a={background:"linear-gradient(to bottom, "+r.style_login_gradient_top_color+" 0%, "+r.style_login_gradient_bottom_color+" 100%)","border-color":r.style_login_border_color};!1===r.style_login_border_enabled&&(a.border="none !important");var s=(0,o.default)(a);return i.default.createElement("div",{className:"user-panel "+s},i.default.createElement("div",{className:e.join(" ")},i.default.createElement("div",{className:t.join(" ")},i.default.createElement("div",{className:n.join(" ")},i.default.createElement("div",{className:"avatar-mask"},i.default.createElement("img",{className:"user-avatar",src:this.props.activeUser.image})))),i.default.createElement(c.default,{password:this.state.password,passwordFailed:this.state.passwordFailed,handleLoginSubmit:this.handleLoginSubmit.bind(this),handlePasswordInput:this.handlePasswordInput.bind(this),setActiveSession:this.setActiveSession.bind(this)}),i.default.createElement("div",{className:"bottom"},r.user_switcher_enabled?i.default.createElement(u.default,{handleSwitcherClick:this.handleSwitcherClick.bind(this)}):null)),i.default.createElement(l.default,{active:this.state.switcherActive,setActiveUser:this.setActiveUser.bind(this)}))}}]),t}();f.propTypes={dispatch:a.default.func.isRequired,settings:a.default.object.isRequired,activeUser:a.default.object.isRequired,activeSession:a.default.object.isRequired},t.default=(0,s.connect)(function(e){return{activeUser:e.user,activeSession:e.session,settings:e.settings}},null)(f)},function(e,t){e.exports='<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="353.753 183.973 95 85.665" enable-background="new 353.753 183.973 95 85.665" xml:space="preserve"><g><path d="M399.478,269.638h-45.725l1.771-9.368l36.217-46.844h-25.31l2.47-11.932h43.626l-1.91,9.416l-36.449,46.797h27.78 L399.478,269.638z"></path></g><g><path d="M420.108,243.843h-11.43l0.443-2.343l9.053-11.711h-6.326l0.618-2.983h10.908l-0.478,2.354l-9.112,11.699h6.945 L420.108,243.843z"></path></g><g><path d="M442.228,218.045h-22.862l0.885-4.684l18.108-23.422h-12.655l1.235-5.966h21.813l-0.956,4.708l-18.225,23.398h13.89 L442.228,218.045z"></path></g></svg>'},function(e,t){e.exports='<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="2.501 -1.468 95 102.935" enable-background="new 2.501 -1.468 95 102.935" xml:space="preserve"><g><path d="M83.601,20.359c-1.124-1.122-2.322-2.202-3.555-3.212l-5.1,6.241c1.031,0.839,2.026,1.742,2.962,2.672 c15.384,15.388,15.384,40.428,0,55.815c-15.391,15.387-40.424,15.387-55.815,0C6.708,66.489,6.708,41.449,22.09,26.064 c0.91-0.91,1.873-1.781,2.86-2.591l-5.112-6.229c-1.188,0.976-2.344,2.025-3.441,3.12c-18.529,18.53-18.529,48.678,0,67.208 c9.266,9.265,21.435,13.896,33.604,13.896s24.339-4.631,33.604-13.896C102.133,69.041,102.133,38.893,83.601,20.359z"></path><rect x="45.523" y="-1.468" width="8.058" height="42.072"></rect></g></svg>'},function(e,t){e.exports='<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="264.14 221.317 95 94.964" enable-background="new 264.14 221.317 95 94.964" xml:space="preserve"><path stroke="currentColor" stroke-width="1px" d="M357.133,255.171c-5.879-19.633-24.02-33.854-45.493-33.854c-26.233,0-47.5,21.242-47.5,47.476 c0,26.234,21.267,47.488,47.5,47.488s47.5-21.224,47.5-47.458c0-1.568-0.078-3.257-0.227-4.605h-5.393 c0.167,1.348,0.256,3.028,0.256,4.599c0,23.271-18.865,42.113-42.137,42.113s-42.137-18.877-42.137-42.149 s18.866-42.143,42.137-42.143c14.922,0,28.031,7.756,35.517,19.458l-15.188,0.005l18.711,6.839"></path></svg>'},function(e,t){e.exports='<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="3 31 95 90.5" enable-background="new 3 31 95 90.5" xml:space="preserve"><g><path d="M94,82.983L98,77l-5.655-3.064l-2.017-5.396c-5.227-3.703-11.518-6.015-17.23-8.881c-4.047-2.031-8.242-4.455-12.881-4.638 c-4.547-0.179-9.115,0.845-13.687,0.832c-4.545-0.014-9.225-0.322-13.687-0.177c-5.135,0.167-11.586,0.927-15.257,4.951 C11.58,67.211,3,97,3,97l10,6l2-3l-2.952-3.445l12.727-7.944L34,103h11l19.071-14.362L77,103h11v-3l-4-1l-6-8v-9L94,82.983z M42.712,98.97l-4.208-4.532v-9.226h10.925L42.712,98.97z"></path></g></svg>'},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Item=t.SVGMap=void 0;var r=s(n(2)),o=s(n(0)),i=s(n(22)),a=n(8);function s(e){return e&&e.__esModule?e:{default:e}}var u=t.SVGMap={hibernate:n(465),reboot:n(464),shutdown:n(463),sleep:n(462)},l=t.Item=function(e){var t=e.command,n=e.handleCommand,r=e.settings,a=t.toLowerCase().split(".")[1]||!1,s=["command",t=t.toLowerCase().split(".")[0],a].filter(function(e){return e}),l=["icon-wrapper"];!1===r.command_icons_enabled&&l.push("hidden");var c=(0,i.default)({color:r.style_command_icon_color});l.push(c);var d=(0,i.default)({color:r.style_command_text_color,"text-align":r.command_text_align});return o.default.createElement("div",{className:s.join(" "),onClick:n.bind(void 0,t,a)},o.default.createElement("div",{className:l.join(" "),dangerouslySetInnerHTML:{__html:u[t]}}),o.default.createElement("div",{className:"text "+d},t))};l.propTypes={command:r.default.string.isRequired,handleCommand:r.default.func.isRequired,settings:r.default.object.isRequired},t.default=(0,a.connect)(function(e){return{settings:e.settings}},null)(l)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.List=void 0;var r=a(n(2)),o=a(n(0)),i=a(n(466));function a(e){return e&&e.__esModule?e:{default:e}}var s=t.List=function(e){var t=e.enabledCommands,n=e.handleCommand,r=t.map(function(e){return o.default.createElement(i.default,{key:e,command:e,handleCommand:n})});return o.default.createElement("div",{className:"commands-wrapper"},r)};s.propTypes={enabledCommands:r.default.arrayOf(r.default.string).isRequired,handleCommand:r.default.func.isRequired},t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=u(n(0)),i=u(n(175)),a=u(n(2)),s=n(8);function u(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={initialized:!1,formattedTime:""},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.default.Component),r(t,[{key:"componentDidMount",value:function(){var e=this;setTimeout(function(){e.updateClock(),e.setState({initialized:!0})},1e3)}},{key:"updateClock",value:function(){var e=this;this.setState({formattedTime:(0,i.default)(this.props.settings.time_format)}),setTimeout(function(){e.updateClock()},1e3)}},{key:"render",value:function(){var e=["right","clock"],t=this.state.formattedTime;return!0===this.state.initialized&&!0===this.props.settings.time_enabled?e.push("loaded"):!1===this.props.settings.time_enabled&&e.push("invisible"),o.default.createElement("div",{className:e.join(" ")},t)}}]),t}();l.propTypes={settings:a.default.object.isRequired},t.default=(0,s.connect)(function(e){return{settings:e.settings}},null)(l)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=d(n(22)),i=d(n(0)),a=d(n(2)),s=n(8),u=c(n(176)),l=c(n(77));function c(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function d(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),r=u.getWallpaperDirectory(),o=u.getWallpapers(r);return n.cyclerBackground=void 0,n.cyclerForeground=void 0,n.cyclerPreloader=void 0,n.state={directory:r,wallpapers:o,selectedWallpaper:void 0,savedWallpaper:void 0,switcher:{active:!1,currentlyFading:!1,index:0}},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.default.Component),r(t,[{key:"componentWillMount",value:function(){var e=this.state.directory,t=l.requestSetting("wallpaper","space-1.jpg");this.cyclerBackground=document.querySelectorAll(".wallpaper-background")[0],this.cyclerForeground=document.querySelectorAll(".wallpaper-foreground")[0],this.cyclerPreloader=document.querySelectorAll(".wallpaper-preload")[0],this.cyclerForeground.style.background="url('"+e+t+"')",this.cyclerForeground.style.backgroundSize="cover",document.body.style.background="url('"+e+t+"')",document.body.style.backgroundSize="cover",this.setState({savedWallpaper:t})}},{key:"acceptWallpaper",value:function(){var e=this.state.selectedWallpaper,t=this.state.switcher;l.saveSetting("wallpaper",e),window.notifications.generate("This wallpaper has been saved as your default background.","success"),t.active=!1,t.index=0,this.setState({selectedWallpaper:e,savedWallpaper:e,switcher:t})}},{key:"cycleWallpaper",value:function(){if(!0===this.state.switcher.currentlyFading)return!1;var e=this.state.wallpapers,t=this.state.switcher,n=function(t){return(t+e.length+1)%e.length},r=n(t.index),o=e[r],i=n(r),a=e[i];this.setWallpaper(o,a),t.index=r,this.setState({switcher:t})}},{key:"handleSwitcherActivation",value:function(){var e=this.state.switcher;e.active=!0,this.cycleWallpaper(),this.setState({switcher:e})}},{key:"rejectWallpaper",value:function(){var e=this.state.savedWallpaper,t=this.state.switcher;t.active=!1,t.index=0,this.setState({switcher:t}),this.setWallpaper(e),window.notifications.generate("Wallpaper reset to default, no changes saved.")}},{key:"setWallpaper",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.state.switcher,o=this.state.directory;this.cyclerBackground.style.background="url('"+o+e+"')",this.cyclerBackground.style.backgroundSize="cover",this.cyclerForeground.className+=" fadeout",r.currentlyFading=!0,!1!==n&&(this.cyclerPreloader.style.background="url('"+o+n+"')"),setTimeout(function(){t.cyclerForeground.style.background="url('"+o+e+"')",t.cyclerForeground.style.backgroundSize="cover",t.cyclerForeground.className=t.cyclerForeground.className.replace(" fadeout",""),document.body.style.background="url('"+o+e+"')",document.body.style.backgroundSize="cover";var n=t.state.switcher;n.currentlyFading=!1,t.setState({selectedWallpaper:e,switcher:n})},600)}},{key:"generateOptions",value:function(){var e=["options"];return!0===this.state.switcher.active&&e.push("active"),i.default.createElement("div",{className:"options-wrapper"},i.default.createElement("div",{className:e.join(" ")},i.default.createElement("div",{className:"button-reject",onClick:this.rejectWallpaper.bind(this)},"✕"),i.default.createElement("div",{className:"button-accept",onClick:this.acceptWallpaper.bind(this)},"✓")))}},{key:"render",value:function(){var e=this.generateOptions(),t=(0,o.default)({"background-image":"url("+this.props.distroImage+") !important"});return i.default.createElement("div",{className:"distro-wrapper"},i.default.createElement("div",{className:"distro-logo "+t,onClick:this.handleSwitcherActivation.bind(this)}),e)}}]),t}();f.propTypes={distroImage:a.default.string},t.default=(0,s.connect)(function(e){return{distroImage:e.settings.distro}},null)(f)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=f(n(22)),i=f(n(0)),a=f(n(2)),s=n(8),u=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(177)),l=f(n(469)),c=f(n(468)),d=f(n(467));function f(e){return e&&e.__esModule?e:{default:e}}var h=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.default.Component),r(t,[{key:"handleCommand",value:function(e,t,n){if(n.preventDefault(),!1!==t)return window.notifications.generate(e+" is disabled on this system.","error"),!1;u.handleCommand(e)}},{key:"getEnabledCommands",value:function(){var e={Shutdown:window.lightdm.can_shutdown&&this.props.settings.command_shutdown_enabled,Reboot:window.lightdm.can_restart&&this.props.settings.command_reboot_enabled,Hibernate:window.lightdm.can_hibernate&&this.props.settings.command_hibernate_enabled,Sleep:window.lightdm.can_suspend&&this.props.settings.command_sleep_enabled},t=Object.keys(e).map(function(t){return!!e[t]&&t}).filter(function(e){return!1!==e});return!1===window.lightdm.can_suspend&&!1===window.lightdm.can_hibernate&&t.push("Sleep.disabled"),t}},{key:"render",value:function(){var e=this.props.settings,t=window.lightdm.hostname,n=["left","hostname"],r=!1===e.hostname_enabled,a=this.getEnabledCommands();r&&n.push("invisible");var s=(0,o.default)({background:e.style_command_background_color});return i.default.createElement("div",{className:"command-panel "+s},i.default.createElement(l.default,null),i.default.createElement(d.default,{enabledCommands:a,handleCommand:this.handleCommand.bind(this)}),i.default.createElement("div",{className:"bottom"},i.default.createElement("div",{className:n.join(" ")},t),i.default.createElement(c.default,null)))}}]),t}();h.propTypes={settings:a.default.object.isRequired},t.default=(0,s.connect)(function(e){return{settings:e.settings}},null)(h)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=p(n(22)),i=p(n(0)),a=p(n(2)),s=n(8),u=p(n(470)),l=p(n(461)),c=p(n(453)),d=p(n(290)),f=p(n(289)),h=p(n(288));function p(e){return e&&e.__esModule?e:{default:e}}var y=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.default.Component),r(t,[{key:"componentDidMount",value:function(){document.getElementById("preloader").className+="loaded"}},{key:"render",value:function(){var e=this.props.settings,t=(0,o.default)({"border-radius":e.window_border_radius,"font-size":e.window_font_size});return[i.default.createElement("div",{className:"login-window "+t,key:"login-window"},i.default.createElement(u.default,null),i.default.createElement(l.default,null)),i.default.createElement(d.default,{key:"date-display"}),i.default.createElement(c.default,{key:"settings-window"}),i.default.createElement(f.default,{key:"settings-button"}),this.props.settings.experimental_stars_enabled?i.default.createElement(h.default,{key:"experimental-stars"}):null]}}]),t}();y.propTypes={settings:a.default.object.isRequired},t.default=(0,s.connect)(function(e){return{settings:e.settings}},null)(y)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,r){a(e,"mapStateToProps",r),a(t,"mapDispatchToProps",r),a(n,"mergeProps",r)};var r,o=n(78),i=(r=o)&&r.__esModule?r:{default:r};function a(e,t,n){if(!e)throw new Error("Unexpected value for "+t+" in "+n+".");"mapStateToProps"!==t&&"mapDispatchToProps"!==t||e.hasOwnProperty("dependsOnOwnProps")||(0,i.default)("The selector for "+t+" of "+n+" did not specify a value for dependsOnOwnProps.")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.impureFinalPropsSelectorFactory=i,t.pureFinalPropsSelectorFactory=a,t.default=function(e,t){var n=t.initMapStateToProps,r=t.initMapDispatchToProps,o=t.initMergeProps,s=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),u=n(e,s),l=r(e,s),c=o(e,s);0;return(s.pure?a:i)(u,l,c,e,s)};var r,o=n(472);(r=o)&&r.__esModule;function i(e,t,n,r){return function(o,i){return n(e(o,i),t(r,i),i)}}function a(e,t,n,r,o){var i=o.areStatesEqual,a=o.areOwnPropsEqual,s=o.areStatePropsEqual,u=!1,l=void 0,c=void 0,d=void 0,f=void 0,h=void 0;function p(o,u){var p,y,v=!a(u,c),m=!i(o,l);return l=o,c=u,v&&m?(d=e(l,c),t.dependsOnOwnProps&&(f=t(r,c)),h=n(d,f,c)):v?(e.dependsOnOwnProps&&(d=e(l,c)),t.dependsOnOwnProps&&(f=t(r,c)),h=n(d,f,c)):m?(p=e(l,c),y=!s(p,d),d=p,y&&(h=n(d,f,c)),h):h}return function(o,i){return u?p(o,i):(d=e(l=o,c=i),f=t(r,c),h=n(d,f,c),u=!0,h)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultMergeProps=a,t.wrapMergePropsFunc=s,t.whenMergePropsIsFunction=u,t.whenMergePropsIsOmitted=l;var r,o=n(179);(r=o)&&r.__esModule;var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function a(e,t,n){return i({},n,e,t)}function s(e){return function(t,n){n.displayName;var r=n.pure,o=n.areMergedPropsEqual,i=!1,a=void 0;return function(t,n,s){var u=e(t,n,s);return i?r&&o(u,a)||(a=u):(i=!0,a=u),a}}}function u(e){return"function"==typeof e?s(e):void 0}function l(e){return e?void 0:function(){return a}}t.default=[u,l]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.whenMapStateToPropsIsFunction=o,t.whenMapStateToPropsIsMissing=i;var r=n(180);function o(e){return"function"==typeof e?(0,r.wrapMapToPropsFunc)(e,"mapStateToProps"):void 0}function i(e){return e?void 0:(0,r.wrapMapToPropsConstant)(function(){return{}})}t.default=[o,i]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=function(e){return null!=e&&"object"==(void 0===e?"undefined":r(e))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return function(n){return e(t(n))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(477);var i=(0,((r=o)&&r.__esModule?r:{default:r}).default)(Object.getPrototypeOf,Object);t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.prototype.toString;t.default=function(e){return r.call(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(178),i=(r=o)&&r.__esModule?r:{default:r};var a=Object.prototype,s=a.hasOwnProperty,u=a.toString,l=i.default?i.default.toStringTag:void 0;t.default=function(e){var t=s.call(e,l),n=e[l];try{e[l]=void 0;var r=!0}catch(e){}var o=u.call(e);return r&&(t?e[l]=n:delete e[l]),o}},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r="object"==(void 0===e?"undefined":n(e))&&e&&e.Object===Object&&e;t.default=r}).call(this,n(24))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=n(481),a=(r=i)&&r.__esModule?r:{default:r};var s="object"==("undefined"==typeof self?"undefined":o(self))&&self&&self.Object===Object&&self,u=a.default||s||Function("return this")();t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(n(178)),o=a(n(480)),i=a(n(479));function a(e){return e&&e.__esModule?e:{default:e}}var s="[object Null]",u="[object Undefined]",l=r.default?r.default.toStringTag:void 0;t.default=function(e){return null==e?void 0===e?u:s:l&&l in Object(e)?(0,o.default)(e):(0,i.default)(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(n(483)),o=a(n(478)),i=a(n(476));function a(e){return e&&e.__esModule?e:{default:e}}var s="[object Object]",u=Function.prototype,l=Object.prototype,c=u.toString,d=l.hasOwnProperty,f=c.call(Object);t.default=function(e){if(!(0,i.default)(e)||(0,r.default)(e)!=s)return!1;var t=(0,o.default)(e);if(null===t)return!0;var n=d.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==f}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.whenMapDispatchToPropsIsFunction=a,t.whenMapDispatchToPropsIsMissing=s,t.whenMapDispatchToPropsIsObject=u;var o=n(183),i=n(180);function a(e){return"function"==typeof e?(0,i.wrapMapToPropsFunc)(e,"mapDispatchToProps"):void 0}function s(e){return e?void 0:(0,i.wrapMapToPropsConstant)(function(e){return{dispatch:e}})}function u(e){return e&&"object"===(void 0===e?"undefined":r(e))?(0,i.wrapMapToPropsConstant)(function(t){return(0,o.bindActionCreators)(e,t)}):void 0}t.default=[a,s,u]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=function(e,t){if(i(e,t))return!0;if("object"!==(void 0===e?"undefined":r(e))||null===e||"object"!==(void 0===t?"undefined":r(t))||null===t)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(var s=0;s<n.length;s++)if(!o.call(t,n[s])||!i(e[n[s]],t[n[s]]))return!1;return!0};var o=Object.prototype.hasOwnProperty;function i(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.createConnect=p;var o=c(n(181)),i=c(n(486)),a=c(n(485)),s=c(n(475)),u=c(n(474)),l=c(n(473));function c(e){return e&&e.__esModule?e:{default:e}}var d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function f(e,t,n){for(var o=t.length-1;o>=0;o--){var i=t[o](e);if(i)return i}return function(t,o){throw new Error("Invalid value of type "+(void 0===e?"undefined":r(e))+" for "+n+" argument when connecting component "+o.wrappedComponentName+".")}}function h(e,t){return e===t}function p(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.connectHOC,n=void 0===t?o.default:t,r=e.mapStateToPropsFactories,c=void 0===r?s.default:r,p=e.mapDispatchToPropsFactories,y=void 0===p?a.default:p,v=e.mergePropsFactories,m=void 0===v?u.default:v,g=e.selectorFactory,b=void 0===g?l.default:g;return function(e,t,r){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=o.pure,s=void 0===a||a,u=o.areStatesEqual,l=void 0===u?h:u,p=o.areOwnPropsEqual,v=void 0===p?i.default:p,g=o.areStatePropsEqual,_=void 0===g?i.default:g,x=o.areMergedPropsEqual,w=void 0===x?i.default:x,E=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(o,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),S=f(e,c,"mapStateToProps"),T=f(t,y,"mapDispatchToProps"),O=f(r,m,"mergeProps");return n(b,d({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:S,initMapDispatchToProps:T,initMergeProps:O,pure:s,areStatesEqual:l,areOwnPropsEqual:v,areStatePropsEqual:_,areMergedPropsEqual:w},E))}}t.default=p()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=null,o={notify:function(){}};var i=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.store=t,this.parentSub=n,this.onStateChange=r,this.unsubscribe=null,this.listeners=o}return e.prototype.addNestedSub=function(e){return this.trySubscribe(),this.listeners.subscribe(e)},e.prototype.notifyNestedSubs=function(){this.listeners.notify()},e.prototype.isSubscribed=function(){return Boolean(this.unsubscribe)},e.prototype.trySubscribe=function(){var e,t;this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.onStateChange):this.store.subscribe(this.onStateChange),this.listeners=(e=[],t=[],{clear:function(){t=r,e=r},notify:function(){for(var n=e=t,r=0;r<n.length;r++)n[r]()},get:function(){return t},subscribe:function(n){var o=!0;return t===e&&(t=e.slice()),t.push(n),function(){o&&e!==r&&(o=!1,t===e&&(t=e.slice()),t.splice(t.indexOf(n),1))}}}))},e.prototype.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=o)},e}();t.default=i},function(e,t,n){"use strict";e.exports=function(e,t,n,r,o,i,a,s){if(!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,o,i,a,s],c=0;(u=new Error(t.replace(/%s/g,function(){return l[c++]}))).name="Invariant Violation"}throw u.framesToPop=1,u}}},function(e,t,n){"use strict";var r,o,i,a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};i=function(){var e={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},t={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},n=Object.defineProperty,r=Object.getOwnPropertyNames,o=Object.getOwnPropertySymbols,i=Object.getOwnPropertyDescriptor,a=Object.getPrototypeOf,s=a&&a(Object);return function u(l,c,d){if("string"!=typeof c){if(s){var f=a(c);f&&f!==s&&u(l,f,d)}var h=r(c);o&&(h=h.concat(o(c)));for(var p=0;p<h.length;++p){var y=h[p];if(!(e[y]||t[y]||d&&d[y])){var v=i(c,y);try{n(l,y,v)}catch(e){}}}return l}return l}},"object"===a(t)&&void 0!==e?e.exports=i():void 0===(o="function"==typeof(r=i)?r.call(t,n,t,e):r)||(e.exports=o)},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";var r=n(48),o=n(79),i=n(491);e.exports=function(){function e(e,t,n,r,a,s){s!==i&&o(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.createProvider=u;var o=n(0),i=s(n(2)),a=n(182);s(n(78));function s(e){return e&&e.__esModule?e:{default:e}}function u(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"store",n=arguments[1]||t+"Subscription",s=function(e){function i(n,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":r(t))&&"function"!=typeof t?e:t}(this,e.call(this,n,o));return a[t]=n.store,a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":r(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(i,e),i.prototype.getChildContext=function(){var e;return(e={})[t]=this[t],e[n]=null,e},i.prototype.render=function(){return o.Children.only(this.props.children)},i}(o.Component);return s.propTypes={store:a.storeShape.isRequired,children:i.default.element.isRequired},s.childContextTypes=((e={})[t]=a.storeShape.isRequired,e[n]=a.subscriptionShape,e),s}t.default=u()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n=e.Symbol;"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable";return t}},function(e,t,n){"use strict";(function(e,r){Object.defineProperty(t,"__esModule",{value:!0});var o,i,a=n(494),s=(o=a)&&o.__esModule?o:{default:o};i="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:r;var u=(0,s.default)(i);t.default=u}).call(this,n(24),n(33)(e))},function(e,t,n){"use strict";e.exports=function(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}},function(e,t,n){"use strict";e.exports=function(e){try{e.focus()}catch(e){}}},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};e.exports=function(e){var t=(e?e.ownerDocument||e:document).defaultView||window;return!(!e||!("function"==typeof t.Node?e instanceof t.Node:"object"===(void 0===e?"undefined":r(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}},function(e,t,n){"use strict";var r=n(498);e.exports=function(e){return r(e)&&3==e.nodeType}},function(e,t,n){"use strict";var r=n(499);e.exports=function e(t,n){return!(!t||!n)&&(t===n||!r(t)&&(r(n)?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=Object.prototype.hasOwnProperty;function i(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}e.exports=function(e,t){if(i(e,t))return!0;if("object"!==(void 0===e?"undefined":r(e))||null===e||"object"!==(void 0===t?"undefined":r(t))||null===t)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(var s=0;s<n.length;s++)if(!o.call(t,n[s])||!i(e[n[s]],t[n[s]]))return!1;return!0}},function(e,t,n){"use strict";var r=n(48),o={listen:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!1),{remove:function(){e.removeEventListener(t,n,!1)}}):e.attachEvent?(e.attachEvent("on"+t,n),{remove:function(){e.detachEvent("on"+t,n)}}):void 0},capture:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!0),{remove:function(){e.removeEventListener(t,n,!0)}}):{remove:r}},registerDefault:function(){}};e.exports=o},function(e,t,n){"use strict";var r=!("undefined"==typeof window||!window.document||!window.document.createElement),o={canUseDOM:r,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:r&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:r&&!!window.screen,isInWorker:!r};e.exports=o},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=n(0);n(79);var i=n(503),a=n(80),s=n(502),u=n(48),l=n(184),c=n(501),d=n(500),f=n(497),h=n(496);function p(e){for(var t=arguments.length-1,n="Minified React error #"+e+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+e,r=0;r<t;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);throw(t=Error(n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.")).name="Invariant Violation",t.framesToPop=1,t}function y(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}o||p("227");var v={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"},m=y,g=function(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?y(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e},b=null,_={};function x(){if(b)for(var e in _){var t=_[e],n=b.indexOf(e);if(-1<n||p("96",e),!E.plugins[n])for(var r in t.extractEvents||p("97",e),E.plugins[n]=t,n=t.eventTypes){var o=void 0,i=n[r],a=t,s=r;E.eventNameDispatchConfigs.hasOwnProperty(s)&&p("99",s),E.eventNameDispatchConfigs[s]=i;var u=i.phasedRegistrationNames;if(u){for(o in u)u.hasOwnProperty(o)&&w(u[o],a,s);o=!0}else i.registrationName?(w(i.registrationName,a,s),o=!0):o=!1;o||p("98",r,e)}}}function w(e,t,n){E.registrationNameModules[e]&&p("100",e),E.registrationNameModules[e]=t,E.registrationNameDependencies[e]=t.eventTypes[n].dependencies}var E={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},possibleRegistrationNames:null,injectEventPluginOrder:function(e){b&&p("101"),b=Array.prototype.slice.call(e),x()},injectEventPluginsByName:function(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var r=e[t];_.hasOwnProperty(t)&&_[t]===r||(_[t]&&p("102",t),_[t]=r,n=!0)}n&&x()}},S=E,T={children:!0,dangerouslySetInnerHTML:!0,autoFocus:!0,defaultValue:!0,defaultChecked:!0,innerHTML:!0,suppressContentEditableWarning:!0,style:!0};function O(e,t){return(e&t)===t}var C={MUST_USE_PROPERTY:1,HAS_BOOLEAN_VALUE:4,HAS_NUMERIC_VALUE:8,HAS_POSITIVE_NUMERIC_VALUE:24,HAS_OVERLOADED_BOOLEAN_VALUE:32,HAS_STRING_BOOLEAN_VALUE:64,injectDOMPropertyConfig:function(e){var t=C,n=e.Properties||{},r=e.DOMAttributeNamespaces||{},o=e.DOMAttributeNames||{};for(var i in e=e.DOMMutationMethods||{},n){P.properties.hasOwnProperty(i)&&p("48",i);var a=i.toLowerCase(),s=n[i];1>=(a={attributeName:a,attributeNamespace:null,propertyName:i,mutationMethod:null,mustUseProperty:O(s,t.MUST_USE_PROPERTY),hasBooleanValue:O(s,t.HAS_BOOLEAN_VALUE),hasNumericValue:O(s,t.HAS_NUMERIC_VALUE),hasPositiveNumericValue:O(s,t.HAS_POSITIVE_NUMERIC_VALUE),hasOverloadedBooleanValue:O(s,t.HAS_OVERLOADED_BOOLEAN_VALUE),hasStringBooleanValue:O(s,t.HAS_STRING_BOOLEAN_VALUE)}).hasBooleanValue+a.hasNumericValue+a.hasOverloadedBooleanValue||p("50",i),o.hasOwnProperty(i)&&(a.attributeName=o[i]),r.hasOwnProperty(i)&&(a.attributeNamespace=r[i]),e.hasOwnProperty(i)&&(a.mutationMethod=e[i]),P.properties[i]=a}}},P={ID_ATTRIBUTE_NAME:"data-reactid",ROOT_ATTRIBUTE_NAME:"data-reactroot",ATTRIBUTE_NAME_START_CHAR:":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",ATTRIBUTE_NAME_CHAR:":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",properties:{},shouldSetAttribute:function(e,t){if(P.isReservedProp(e)||!("o"!==e[0]&&"O"!==e[0]||"n"!==e[1]&&"N"!==e[1]))return!1;if(null===t)return!0;switch(void 0===t?"undefined":r(t)){case"boolean":return P.shouldAttributeAcceptBooleanValue(e);case"undefined":case"number":case"string":case"object":return!0;default:return!1}},getPropertyInfo:function(e){return P.properties.hasOwnProperty(e)?P.properties[e]:null},shouldAttributeAcceptBooleanValue:function(e){if(P.isReservedProp(e))return!0;var t=P.getPropertyInfo(e);return t?t.hasBooleanValue||t.hasStringBooleanValue||t.hasOverloadedBooleanValue:"data-"===(e=e.toLowerCase().slice(0,5))||"aria-"===e},isReservedProp:function(e){return T.hasOwnProperty(e)},injection:C},M=P,k=0,A=1,R=2,I=3,D=4,j=5,N=6,L=7,F=8,B=9,U=10,H=1,W=3,z=8,X=9,G=11,V=j,Y=N,q=H,K=z,Z=M.ID_ATTRIBUTE_NAME,$={hasCachedChildNodes:1},J=Math.random().toString(36).slice(2),Q="__reactInternalInstance$"+J,ee="__reactEventHandlers$"+J;function te(e){for(var t;t=e._renderedComponent;)e=t;return e}function ne(e,t){(e=te(e))._hostNode=t,t[Q]=e}function re(e,t){if(!(e._flags&$.hasCachedChildNodes)){var n,r=e._renderedChildren;t=t.firstChild;e:for(n in r)if(r.hasOwnProperty(n)){var o=r[n],i=te(o)._domID;if(0!==i){for(;null!==t;t=t.nextSibling){var a=t,s=i;if(a.nodeType===q&&a.getAttribute(Z)===""+s||a.nodeType===K&&a.nodeValue===" react-text: "+s+" "||a.nodeType===K&&a.nodeValue===" react-empty: "+s+" "){ne(o,t);continue e}}p("32",i)}}e._flags|=$.hasCachedChildNodes}}function oe(e){if(e[Q])return e[Q];for(var t=[];!e[Q];){if(t.push(e),!e.parentNode)return null;e=e.parentNode}var n=e[Q];if(n.tag===V||n.tag===Y)return n;for(;e&&(n=e[Q]);e=t.pop()){var r=n;t.length&&re(n,e)}return r}var ie={getClosestInstanceFromNode:oe,getInstanceFromNode:function(e){var t=e[Q];return t?t.tag===V||t.tag===Y?t:t._hostNode===e?t:null:null!=(t=oe(e))&&t._hostNode===e?t:null},getNodeFromInstance:function(e){if(e.tag===V||e.tag===Y)return e.stateNode;if(void 0===e._hostNode&&p("33"),e._hostNode)return e._hostNode;for(var t=[];!e._hostNode;)t.push(e),e._hostParent||p("34"),e=e._hostParent;for(;t.length;e=t.pop())re(e,e._hostNode);return e._hostNode},precacheChildNodes:re,precacheNode:ne,uncacheNode:function(e){var t=e._hostNode;t&&(delete t[Q],e._hostNode=null)},precacheFiberNode:function(e,t){t[Q]=e},getFiberCurrentPropsFromNode:function(e){return e[ee]||null},updateFiberProps:function(e,t){e[ee]=t}},ae={remove:function(e){e._reactInternalFiber=void 0},get:function(e){return e._reactInternalFiber},has:function(e){return void 0!==e._reactInternalFiber},set:function(e,t){e._reactInternalFiber=t}},se={ReactCurrentOwner:o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner};function ue(e){if("function"==typeof e.getName)return e.getName();if("number"==typeof e.tag){if("string"==typeof(e=e.type))return e;if("function"==typeof e)return e.displayName||e.name}return null}var le=0,ce=1,de=2,fe=4,he=6,pe=8,ye=16,ve=32,me=64,ge=128,be=j,_e=I,xe=D,we=N,Ee=le,Se=de;function Te(e){var t=e;if(e.alternate)for(;t.return;)t=t.return;else{if((t.effectTag&Se)!==Ee)return 1;for(;t.return;)if(((t=t.return).effectTag&Se)!==Ee)return 1}return t.tag===_e?2:3}function Oe(e){2!==Te(e)&&p("188")}function Ce(e){var t=e.alternate;if(!t)return 3===(t=Te(e))&&p("188"),1===t?null:e;for(var n=e,r=t;;){var o=n.return,i=o?o.alternate:null;if(!o||!i)break;if(o.child===i.child){for(var a=o.child;a;){if(a===n)return Oe(o),e;if(a===r)return Oe(o),t;a=a.sibling}p("188")}if(n.return!==r.return)n=o,r=i;else{a=!1;for(var s=o.child;s;){if(s===n){a=!0,n=o,r=i;break}if(s===r){a=!0,r=o,n=i;break}s=s.sibling}if(!a){for(s=i.child;s;){if(s===n){a=!0,n=i,r=o;break}if(s===r){a=!0,r=i,n=o;break}s=s.sibling}a||p("189")}}n.alternate!==r&&p("190")}return n.tag!==_e&&p("188"),n.stateNode.current===n?e:t}var Pe=function(e){return 2===Te(e)},Me=function(e){return!!(e=ae.get(e))&&2===Te(e)},ke=function(e){if(!(e=Ce(e)))return null;for(var t=e;;){if(t.tag===be||t.tag===we)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null},Ae=function(e){if(!(e=Ce(e)))return null;for(var t=e;;){if(t.tag===be||t.tag===we)return t;if(t.child&&t.tag!==xe)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null},Re={_caughtError:null,_hasCaughtError:!1,_rethrowError:null,_hasRethrowError:!1,injection:{injectErrorUtils:function(e){"function"!=typeof e.invokeGuardedCallback&&p("197"),Ie=e.invokeGuardedCallback}},invokeGuardedCallback:function(e,t,n,r,o,i,a,s,u){Ie.apply(Re,arguments)},invokeGuardedCallbackAndCatchFirstError:function(e,t,n,r,o,i,a,s,u){if(Re.invokeGuardedCallback.apply(this,arguments),Re.hasCaughtError()){var l=Re.clearCaughtError();Re._hasRethrowError||(Re._hasRethrowError=!0,Re._rethrowError=l)}},rethrowCaughtError:function(){return function(){if(Re._hasRethrowError){var e=Re._rethrowError;throw Re._rethrowError=null,Re._hasRethrowError=!1,e}}.apply(Re,arguments)},hasCaughtError:function(){return Re._hasCaughtError},clearCaughtError:function(){if(Re._hasCaughtError){var e=Re._caughtError;return Re._caughtError=null,Re._hasCaughtError=!1,e}p("198")}};function Ie(e,t,n,r,o,i,a,s,u){Re._hasCaughtError=!1,Re._caughtError=null;var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(e){Re._caughtError=e,Re._hasCaughtError=!0}}var De,je=Re;function Ne(e,t,n,r){t=e.type||"unknown-event",e.currentTarget=Le.getNodeFromInstance(r),je.invokeGuardedCallbackAndCatchFirstError(t,n,void 0,e),e.currentTarget=null}var Le={isEndish:function(e){return"topMouseUp"===e||"topTouchEnd"===e||"topTouchCancel"===e},isMoveish:function(e){return"topMouseMove"===e||"topTouchMove"===e},isStartish:function(e){return"topMouseDown"===e||"topTouchStart"===e},executeDirectDispatch:function(e){var t=e._dispatchListeners,n=e._dispatchInstances;return Array.isArray(t)&&p("103"),e.currentTarget=t?Le.getNodeFromInstance(n):null,t=t?t(e):null,e.currentTarget=null,e._dispatchListeners=null,e._dispatchInstances=null,t},executeDispatchesInOrder:function(e,t){var n=e._dispatchListeners,r=e._dispatchInstances;if(Array.isArray(n))for(var o=0;o<n.length&&!e.isPropagationStopped();o++)Ne(e,t,n[o],r[o]);else n&&Ne(e,t,n,r);e._dispatchListeners=null,e._dispatchInstances=null},executeDispatchesInOrderStopAtTrue:function(e){e:{var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t)){for(var r=0;r<t.length&&!e.isPropagationStopped();r++)if(t[r](e,n[r])){t=n[r];break e}}else if(t&&t(e,n)){t=n;break e}t=null}return e._dispatchInstances=null,e._dispatchListeners=null,t},hasDispatches:function(e){return!!e._dispatchListeners},getFiberCurrentPropsFromNode:function(e){return De.getFiberCurrentPropsFromNode(e)},getInstanceFromNode:function(e){return De.getInstanceFromNode(e)},getNodeFromInstance:function(e){return De.getNodeFromInstance(e)},injection:{injectComponentTree:function(e){De=e}}},Fe=Le,Be=null,Ue=null,He=null;function We(e){if(e=Fe.getInstanceFromNode(e))if("number"==typeof e.tag){Be&&"function"==typeof Be.restoreControlledState||p("194");var t=Fe.getFiberCurrentPropsFromNode(e.stateNode);Be.restoreControlledState(e.stateNode,e.type,t)}else"function"!=typeof e.restoreControlledState&&p("195"),e.restoreControlledState()}var ze={injection:{injectFiberControlledHostComponent:function(e){Be=e}},enqueueStateRestore:function(e){Ue?He?He.push(e):He=[e]:Ue=e},restoreStateIfNeeded:function(){if(Ue){var e=Ue,t=He;if(He=Ue=null,We(e),t)for(e=0;e<t.length;e++)We(t[e])}}};function Xe(e,t,n,r,o,i){return e(t,n,r,o,i)}function Ge(e,t){return e(t)}function Ve(e,t){return Ge(e,t)}var Ye=!1,qe={batchedUpdates:function(e,t){if(Ye)return Xe(Ve,e,t);Ye=!0;try{return Xe(Ve,e,t)}finally{Ye=!1,ze.restoreStateIfNeeded()}},injection:{injectStackBatchedUpdates:function(e){Xe=e},injectFiberBatchedUpdates:function(e){Ge=e}}},Ke=W;function Ze(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===Ke?e.parentNode:e}var $e=I,Je=[];function Qe(e){var t=e.targetInst;do{if(!t){e.ancestors.push(t);break}var n=t;if("number"==typeof n.tag){for(;n.return;)n=n.return;n=n.tag!==$e?null:n.stateNode.containerInfo}else{for(;n._hostParent;)n=n._hostParent;n=ie.getNodeFromInstance(n).parentNode}if(!n)break;e.ancestors.push(t),t=ie.getClosestInstanceFromNode(n)}while(t);for(n=0;n<e.ancestors.length;n++)t=e.ancestors[n],et._handleTopLevel(e.topLevelType,t,e.nativeEvent,Ze(e.nativeEvent))}var et={_enabled:!0,_handleTopLevel:null,setHandleTopLevel:function(e){et._handleTopLevel=e},setEnabled:function(e){et._enabled=!!e},isEnabled:function(){return et._enabled},trapBubbledEvent:function(e,t,n){return n?s.listen(n,t,et.dispatchEvent.bind(null,e)):null},trapCapturedEvent:function(e,t,n){return n?s.capture(n,t,et.dispatchEvent.bind(null,e)):null},dispatchEvent:function(e,t){if(et._enabled){var n=Ze(t);if(null===(n=ie.getClosestInstanceFromNode(n))||"number"!=typeof n.tag||Pe(n)||(n=null),Je.length){var r=Je.pop();r.topLevelType=e,r.nativeEvent=t,r.targetInst=n,e=r}else e={topLevelType:e,nativeEvent:t,targetInst:n,ancestors:[]};try{qe.batchedUpdates(Qe,e)}finally{e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>Je.length&&Je.push(e)}}}},tt=et;function nt(e,t){return null==t&&p("30"),null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function rt(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var ot=null;function it(e,t){e&&(Fe.executeDispatchesInOrder(e,t),e.isPersistent()||e.constructor.release(e))}function at(e){return it(e,!0)}function st(e){return it(e,!1)}function ut(e,t,n){switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":return!(!n.disabled||"button"!==t&&"input"!==t&&"select"!==t&&"textarea"!==t);default:return!1}}var lt,ct={injection:{injectEventPluginOrder:S.injectEventPluginOrder,injectEventPluginsByName:S.injectEventPluginsByName},getListener:function(e,t){if("number"==typeof e.tag){var n=e.stateNode;if(!n)return null;var o=Fe.getFiberCurrentPropsFromNode(n);if(!o)return null;if(n=o[t],ut(t,e.type,o))return null}else{if("string"==typeof(o=e._currentElement)||"number"==typeof o||!e._rootNodeID)return null;if(n=(e=o.props)[t],ut(t,o.type,e))return null}return n&&"function"!=typeof n&&p("231",t,void 0===n?"undefined":r(n)),n},extractEvents:function(e,t,n,r){for(var o,i=S.plugins,a=0;a<i.length;a++){var s=i[a];s&&(s=s.extractEvents(e,t,n,r))&&(o=nt(o,s))}return o},enqueueEvents:function(e){e&&(ot=nt(ot,e))},processEventQueue:function(e){var t=ot;ot=null,rt(t,e?at:st),ot&&p("95"),je.rethrowCaughtError()}};function dt(e,t){if(!i.canUseDOM||t&&!("addEventListener"in document))return!1;var n=(t="on"+e)in document;return n||((n=document.createElement("div")).setAttribute(t,"return;"),n="function"==typeof n[t]),!n&<&&"wheel"===e&&(n=document.implementation.hasFeature("Events.wheel","3.0")),n}function ft(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n["ms"+e]="MS"+t,n["O"+e]="o"+t.toLowerCase(),n}i.canUseDOM&&(lt=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("",""));var ht={animationend:ft("Animation","AnimationEnd"),animationiteration:ft("Animation","AnimationIteration"),animationstart:ft("Animation","AnimationStart"),transitionend:ft("Transition","TransitionEnd")},pt={},yt={};function vt(e){if(pt[e])return pt[e];if(!ht[e])return e;var t,n=ht[e];for(t in n)if(n.hasOwnProperty(t)&&t in yt)return pt[e]=n[t];return""}i.canUseDOM&&(yt=document.createElement("div").style,"AnimationEvent"in window||(delete ht.animationend.animation,delete ht.animationiteration.animation,delete ht.animationstart.animation),"TransitionEvent"in window||delete ht.transitionend.transition);var mt={topAbort:"abort",topAnimationEnd:vt("animationend")||"animationend",topAnimationIteration:vt("animationiteration")||"animationiteration",topAnimationStart:vt("animationstart")||"animationstart",topBlur:"blur",topCancel:"cancel",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topChange:"change",topClick:"click",topClose:"close",topCompositionEnd:"compositionend",topCompositionStart:"compositionstart",topCompositionUpdate:"compositionupdate",topContextMenu:"contextmenu",topCopy:"copy",topCut:"cut",topDoubleClick:"dblclick",topDrag:"drag",topDragEnd:"dragend",topDragEnter:"dragenter",topDragExit:"dragexit",topDragLeave:"dragleave",topDragOver:"dragover",topDragStart:"dragstart",topDrop:"drop",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topFocus:"focus",topInput:"input",topKeyDown:"keydown",topKeyPress:"keypress",topKeyUp:"keyup",topLoadedData:"loadeddata",topLoad:"load",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topMouseDown:"mousedown",topMouseMove:"mousemove",topMouseOut:"mouseout",topMouseOver:"mouseover",topMouseUp:"mouseup",topPaste:"paste",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topScroll:"scroll",topSeeked:"seeked",topSeeking:"seeking",topSelectionChange:"selectionchange",topStalled:"stalled",topSuspend:"suspend",topTextInput:"textInput",topTimeUpdate:"timeupdate",topToggle:"toggle",topTouchCancel:"touchcancel",topTouchEnd:"touchend",topTouchMove:"touchmove",topTouchStart:"touchstart",topTransitionEnd:vt("transitionend")||"transitionend",topVolumeChange:"volumechange",topWaiting:"waiting",topWheel:"wheel"},gt={},bt=0,_t="_reactListenersID"+(""+Math.random()).slice(2);function xt(e){return Object.prototype.hasOwnProperty.call(e,_t)||(e[_t]=bt++,gt[e[_t]]={}),gt[e[_t]]}var wt=a({},{handleTopLevel:function(e,t,n,r){e=ct.extractEvents(e,t,n,r),ct.enqueueEvents(e),ct.processEventQueue(!1)}},{setEnabled:function(e){tt&&tt.setEnabled(e)},isEnabled:function(){return!(!tt||!tt.isEnabled())},listenTo:function(e,t){var n=xt(t);e=S.registrationNameDependencies[e];for(var r=0;r<e.length;r++){var o=e[r];n.hasOwnProperty(o)&&n[o]||("topWheel"===o?dt("wheel")?tt.trapBubbledEvent("topWheel","wheel",t):dt("mousewheel")?tt.trapBubbledEvent("topWheel","mousewheel",t):tt.trapBubbledEvent("topWheel","DOMMouseScroll",t):"topScroll"===o?tt.trapCapturedEvent("topScroll","scroll",t):"topFocus"===o||"topBlur"===o?(tt.trapCapturedEvent("topFocus","focus",t),tt.trapCapturedEvent("topBlur","blur",t),n.topBlur=!0,n.topFocus=!0):"topCancel"===o?(dt("cancel",!0)&&tt.trapCapturedEvent("topCancel","cancel",t),n.topCancel=!0):"topClose"===o?(dt("close",!0)&&tt.trapCapturedEvent("topClose","close",t),n.topClose=!0):mt.hasOwnProperty(o)&&tt.trapBubbledEvent(o,mt[o],t),n[o]=!0)}},isListeningToAllDependencies:function(e,t){t=xt(t),e=S.registrationNameDependencies[e];for(var n=0;n<e.length;n++){var r=e[n];if(!t.hasOwnProperty(r)||!t[r])return!1}return!0},trapBubbledEvent:function(e,t,n){return tt.trapBubbledEvent(e,t,n)},trapCapturedEvent:function(e,t,n){return tt.trapCapturedEvent(e,t,n)}}),Et={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},St=["Webkit","ms","Moz","O"];Object.keys(Et).forEach(function(e){St.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Et[t]=Et[e]})});var Tt={isUnitlessNumber:Et,shorthandPropertyExpansions:{background:{backgroundAttachment:!0,backgroundColor:!0,backgroundImage:!0,backgroundPositionX:!0,backgroundPositionY:!0,backgroundRepeat:!0},backgroundPosition:{backgroundPositionX:!0,backgroundPositionY:!0},border:{borderWidth:!0,borderStyle:!0,borderColor:!0},borderBottom:{borderBottomWidth:!0,borderBottomStyle:!0,borderBottomColor:!0},borderLeft:{borderLeftWidth:!0,borderLeftStyle:!0,borderLeftColor:!0},borderRight:{borderRightWidth:!0,borderRightStyle:!0,borderRightColor:!0},borderTop:{borderTopWidth:!0,borderTopStyle:!0,borderTopColor:!0},font:{fontStyle:!0,fontVariant:!0,fontWeight:!0,fontSize:!0,lineHeight:!0,fontFamily:!0},outline:{outlineWidth:!0,outlineStyle:!0,outlineColor:!0}}},Ot=Tt.isUnitlessNumber,Ct=!1;if(i.canUseDOM){var Pt=document.createElement("div").style;try{Pt.font=""}catch(on){Ct=!0}}var Mt=function(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=n,i=t[n];if(o=null==i||"boolean"==typeof i||""===i?"":r||"number"!=typeof i||0===i||Ot.hasOwnProperty(o)&&Ot[o]?(""+i).trim():i+"px","float"===n&&(n="cssFloat"),r)e.setProperty(n,o);else if(o)e[n]=o;else if(r=Ct&&Tt.shorthandPropertyExpansions[n])for(var a in r)e[a]="";else e[n]=""}},kt=new RegExp("^["+M.ATTRIBUTE_NAME_START_CHAR+"]["+M.ATTRIBUTE_NAME_CHAR+"]*$"),At={},Rt={};var It={setAttributeForID:function(e,t){e.setAttribute(M.ID_ATTRIBUTE_NAME,t)},setAttributeForRoot:function(e){e.setAttribute(M.ROOT_ATTRIBUTE_NAME,"")},getValueForProperty:function(){},getValueForAttribute:function(){},setValueForProperty:function(e,t,n){var r=M.getPropertyInfo(t);if(r&&M.shouldSetAttribute(t,n)){var o=r.mutationMethod;o?o(e,n):null==n||r.hasBooleanValue&&!n||r.hasNumericValue&&isNaN(n)||r.hasPositiveNumericValue&&1>n||r.hasOverloadedBooleanValue&&!1===n?It.deleteValueForProperty(e,t):r.mustUseProperty?e[r.propertyName]=n:(t=r.attributeName,(o=r.attributeNamespace)?e.setAttributeNS(o,t,""+n):r.hasBooleanValue||r.hasOverloadedBooleanValue&&!0===n?e.setAttribute(t,""):e.setAttribute(t,""+n))}else It.setValueForAttribute(e,t,M.shouldSetAttribute(t,n)?n:null)},setValueForAttribute:function(e,t,n){(function(e){return!!Rt.hasOwnProperty(e)||!At.hasOwnProperty(e)&&(kt.test(e)?Rt[e]=!0:(At[e]=!0,!1))})(t)&&(null==n?e.removeAttribute(t):e.setAttribute(t,""+n))},deleteValueForAttribute:function(e,t){e.removeAttribute(t)},deleteValueForProperty:function(e,t){var n=M.getPropertyInfo(t);n?(t=n.mutationMethod)?t(e,void 0):n.mustUseProperty?e[n.propertyName]=!n.hasBooleanValue&&"":e.removeAttribute(n.attributeName):e.removeAttribute(t)}},Dt=It,jt=se.ReactDebugCurrentFrame;function Nt(){return null}var Lt={current:null,phase:null,resetCurrentFiber:function(){jt.getCurrentStack=null,Lt.current=null,Lt.phase=null},setCurrentFiber:function(e,t){jt.getCurrentStack=Nt,Lt.current=e,Lt.phase=t},getCurrentFiberOwnerName:function(){return null},getCurrentFiberStackAddendum:Nt},Ft=Lt,Bt={getHostProps:function(e,t){var n=t.value,r=t.checked;return a({type:void 0,step:void 0,min:void 0,max:void 0},t,{defaultChecked:void 0,defaultValue:void 0,value:null!=n?n:e._wrapperState.initialValue,checked:null!=r?r:e._wrapperState.initialChecked})},initWrapperState:function(e,t){var n=t.defaultValue;e._wrapperState={initialChecked:null!=t.checked?t.checked:t.defaultChecked,initialValue:null!=t.value?t.value:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}},updateWrapper:function(e,t){var n=t.checked;null!=n&&Dt.setValueForProperty(e,"checked",n||!1),null!=(n=t.value)?0===n&&""===e.value?e.value="0":"number"===t.type?(n!=(t=parseFloat(e.value)||0)||n==t&&e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n):(null==t.value&&null!=t.defaultValue&&e.defaultValue!==""+t.defaultValue&&(e.defaultValue=""+t.defaultValue),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked))},postMountWrapper:function(e,t){switch(t.type){case"submit":case"reset":break;case"color":case"date":case"datetime":case"datetime-local":case"month":case"time":case"week":e.value="",e.value=e.defaultValue;break;default:e.value=e.value}""!==(t=e.name)&&(e.name=""),e.defaultChecked=!e.defaultChecked,e.defaultChecked=!e.defaultChecked,""!==t&&(e.name=t)},restoreControlledState:function(e,t){Bt.updateWrapper(e,t);var n=t.name;if("radio"===t.type&&null!=n){for(t=e;t.parentNode;)t=t.parentNode;for(n=t.querySelectorAll("input[name="+JSON.stringify(""+n)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=ie.getFiberCurrentPropsFromNode(r);o||p("90"),Bt.updateWrapper(r,o)}}}}},Ut=Bt;var Ht=function(){},Wt=function(e,t){null!=t.value&&e.setAttribute("value",t.value)},zt=function(e,t){return e=a({children:void 0},t),(t=function(e){var t="";return o.Children.forEach(e,function(e){null==e||"string"!=typeof e&&"number"!=typeof e||(t+=e)}),t}(t.children))&&(e.children=t),e};function Xt(e,t,n){if(e=e.options,t){t={};for(var r=0;r<n.length;r++)t["$"+n[r]]=!0;for(n=0;n<e.length;n++)r=t.hasOwnProperty("$"+e[n].value),e[n].selected!==r&&(e[n].selected=r)}else{for(n=""+n,t=null,r=0;r<e.length;r++){if(e[r].value===n)return void(e[r].selected=!0);null!==t||e[r].disabled||(t=e[r])}null!==t&&(t.selected=!0)}}var Gt=function(e,t){return a({},t,{value:void 0})},Vt=function(e,t){var n=t.value;e._wrapperState={initialValue:null!=n?n:t.defaultValue,wasMultiple:!!t.multiple}},Yt=function(e,t){e.multiple=!!t.multiple;var n=t.value;null!=n?Xt(e,!!t.multiple,n):null!=t.defaultValue&&Xt(e,!!t.multiple,t.defaultValue)},qt=function(e,t){e._wrapperState.initialValue=void 0;var n=e._wrapperState.wasMultiple;e._wrapperState.wasMultiple=!!t.multiple;var r=t.value;null!=r?Xt(e,!!t.multiple,r):n!==!!t.multiple&&(null!=t.defaultValue?Xt(e,!!t.multiple,t.defaultValue):Xt(e,!!t.multiple,t.multiple?[]:""))},Kt=function(e,t){var n=t.value;null!=n&&Xt(e,!!t.multiple,n)},Zt={getHostProps:function(e,t){return null!=t.dangerouslySetInnerHTML&&p("91"),a({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})},initWrapperState:function(e,t){var n=t.value,r=n;null==n&&(n=t.defaultValue,null!=(t=t.children)&&(null!=n&&p("92"),Array.isArray(t)&&(1>=t.length||p("93"),t=t[0]),n=""+t),null==n&&(n=""),r=n),e._wrapperState={initialValue:""+r}},updateWrapper:function(e,t){var n=t.value;null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&(e.defaultValue=n)),null!=t.defaultValue&&(e.defaultValue=t.defaultValue)},postMountWrapper:function(e){var t=e.textContent;t===e._wrapperState.initialValue&&(e.value=t)},restoreControlledState:function(e,t){Zt.updateWrapper(e,t)}},$t=Zt,Jt=a({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Qt(e,t){t&&(Jt[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML)&&p("137",e,""),null!=t.dangerouslySetInnerHTML&&(null!=t.children&&p("60"),"object"===r(t.dangerouslySetInnerHTML)&&"__html"in t.dangerouslySetInnerHTML||p("61")),null!=t.style&&"object"!==r(t.style)&&p("62",""))}function en(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}var tn={_getTrackerFromNode:function(e){return e._valueTracker},track:function(e){e._valueTracker||(e._valueTracker=function(e){var t=en(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"function"==typeof n.get&&"function"==typeof n.set)return Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:!0,get:function(){return n.get.call(this)},set:function(e){r=""+e,n.set.call(this,e)}}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}(e))},updateValueIfChanged:function(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=en(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)},stopTracking:function(e){(e=e._valueTracker)&&e.stopTracking()}};function nn(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var rn,on,an=v,sn=(on=function(e,t){if(e.namespaceURI!==an.svg||"innerHTML"in e)e.innerHTML=t;else for((rn=rn||document.createElement("div")).innerHTML="<svg>"+t+"</svg>",t=rn.firstChild;t.firstChild;)e.appendChild(t.firstChild)},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction(function(){return on(e,t)})}:on),un=/["'&<>]/,ln=W;function cn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===ln)return void(n.nodeValue=t)}e.textContent=t}i.canUseDOM&&("textContent"in document.documentElement||(cn=function(e,t){if(e.nodeType===ln)e.nodeValue=t;else{if("boolean"==typeof t||"number"==typeof t)t=""+t;else{t=""+t;var n=un.exec(t);if(n){var r,o="",i=0;for(r=n.index;r<t.length;r++){switch(t.charCodeAt(r)){case 34:n=""";break;case 38:n="&";break;case 39:n="'";break;case 60:n="<";break;case 62:n=">";break;default:continue}i!==r&&(o+=t.substring(i,r)),i=r+1,o+=n}t=i!==r?o+t.substring(i,r):o}}sn(e,t)}}));var dn=cn,fn=(Ft.getCurrentFiberOwnerName,X),hn=G,pn=wt.listenTo,yn=S.registrationNameModules,vn=v.html,mn=m;function gn(e,t){pn(t,e.nodeType===fn||e.nodeType===hn?e:e.ownerDocument)}var bn={topAbort:"abort",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topSeeked:"seeked",topSeeking:"seeking",topStalled:"stalled",topSuspend:"suspend",topTimeUpdate:"timeupdate",topVolumeChange:"volumechange",topWaiting:"waiting"},_n={createElement:function(e,t,n,r){return n=n.nodeType===fn?n:n.ownerDocument,r===vn&&(r=mn(e)),r===vn?"script"===e?((e=n.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):e="string"==typeof t.is?n.createElement(e,{is:t.is}):n.createElement(e):e=n.createElementNS(r,e),e},createTextNode:function(e,t){return(t.nodeType===fn?t:t.ownerDocument).createTextNode(e)},setInitialProperties:function(e,t,n,r){var o=nn(t,n);switch(t){case"iframe":case"object":wt.trapBubbledEvent("topLoad","load",e);var i=n;break;case"video":case"audio":for(i in bn)bn.hasOwnProperty(i)&&wt.trapBubbledEvent(i,bn[i],e);i=n;break;case"source":wt.trapBubbledEvent("topError","error",e),i=n;break;case"img":case"image":wt.trapBubbledEvent("topError","error",e),wt.trapBubbledEvent("topLoad","load",e),i=n;break;case"form":wt.trapBubbledEvent("topReset","reset",e),wt.trapBubbledEvent("topSubmit","submit",e),i=n;break;case"details":wt.trapBubbledEvent("topToggle","toggle",e),i=n;break;case"input":Ut.initWrapperState(e,n),i=Ut.getHostProps(e,n),wt.trapBubbledEvent("topInvalid","invalid",e),gn(r,"onChange");break;case"option":Ht(e,n),i=zt(e,n);break;case"select":Vt(e,n),i=Gt(e,n),wt.trapBubbledEvent("topInvalid","invalid",e),gn(r,"onChange");break;case"textarea":$t.initWrapperState(e,n),i=$t.getHostProps(e,n),wt.trapBubbledEvent("topInvalid","invalid",e),gn(r,"onChange");break;default:i=n}Qt(t,i);var a,s=i;for(a in s)if(s.hasOwnProperty(a)){var l=s[a];"style"===a?Mt(e,l):"dangerouslySetInnerHTML"===a?null!=(l=l?l.__html:void 0)&&sn(e,l):"children"===a?"string"==typeof l?dn(e,l):"number"==typeof l&&dn(e,""+l):"suppressContentEditableWarning"!==a&&(yn.hasOwnProperty(a)?null!=l&&gn(r,a):o?Dt.setValueForAttribute(e,a,l):null!=l&&Dt.setValueForProperty(e,a,l))}switch(t){case"input":tn.track(e),Ut.postMountWrapper(e,n);break;case"textarea":tn.track(e),$t.postMountWrapper(e,n);break;case"option":Wt(e,n);break;case"select":Yt(e,n);break;default:"function"==typeof i.onClick&&(e.onclick=u)}},diffProperties:function(e,t,n,r,o){var i,a,s=null;switch(t){case"input":n=Ut.getHostProps(e,n),r=Ut.getHostProps(e,r),s=[];break;case"option":n=zt(e,n),r=zt(e,r),s=[];break;case"select":n=Gt(e,n),r=Gt(e,r),s=[];break;case"textarea":n=$t.getHostProps(e,n),r=$t.getHostProps(e,r),s=[];break;default:"function"!=typeof n.onClick&&"function"==typeof r.onClick&&(e.onclick=u)}for(i in Qt(t,r),e=null,n)if(!r.hasOwnProperty(i)&&n.hasOwnProperty(i)&&null!=n[i])if("style"===i)for(a in t=n[i])t.hasOwnProperty(a)&&(e||(e={}),e[a]="");else"dangerouslySetInnerHTML"!==i&&"children"!==i&&"suppressContentEditableWarning"!==i&&(yn.hasOwnProperty(i)?s||(s=[]):(s=s||[]).push(i,null));for(i in r){var l=r[i];if(t=null!=n?n[i]:void 0,r.hasOwnProperty(i)&&l!==t&&(null!=l||null!=t))if("style"===i)if(t){for(a in t)!t.hasOwnProperty(a)||l&&l.hasOwnProperty(a)||(e||(e={}),e[a]="");for(a in l)l.hasOwnProperty(a)&&t[a]!==l[a]&&(e||(e={}),e[a]=l[a])}else e||(s||(s=[]),s.push(i,e)),e=l;else"dangerouslySetInnerHTML"===i?(l=l?l.__html:void 0,t=t?t.__html:void 0,null!=l&&t!==l&&(s=s||[]).push(i,""+l)):"children"===i?t===l||"string"!=typeof l&&"number"!=typeof l||(s=s||[]).push(i,""+l):"suppressContentEditableWarning"!==i&&(yn.hasOwnProperty(i)?(null!=l&&gn(o,i),s||t===l||(s=[])):(s=s||[]).push(i,l))}return e&&(s=s||[]).push("style",e),s},updateProperties:function(e,t,n,r,o){nn(n,r),r=nn(n,o);for(var i=0;i<t.length;i+=2){var a=t[i],s=t[i+1];"style"===a?Mt(e,s):"dangerouslySetInnerHTML"===a?sn(e,s):"children"===a?dn(e,s):r?null!=s?Dt.setValueForAttribute(e,a,s):Dt.deleteValueForAttribute(e,a):null!=s?Dt.setValueForProperty(e,a,s):Dt.deleteValueForProperty(e,a)}switch(n){case"input":Ut.updateWrapper(e,o),tn.updateValueIfChanged(e);break;case"textarea":$t.updateWrapper(e,o);break;case"select":qt(e,o)}},diffHydratedProperties:function(e,t,n,r,o){switch(t){case"iframe":case"object":wt.trapBubbledEvent("topLoad","load",e);break;case"video":case"audio":for(var i in bn)bn.hasOwnProperty(i)&&wt.trapBubbledEvent(i,bn[i],e);break;case"source":wt.trapBubbledEvent("topError","error",e);break;case"img":case"image":wt.trapBubbledEvent("topError","error",e),wt.trapBubbledEvent("topLoad","load",e);break;case"form":wt.trapBubbledEvent("topReset","reset",e),wt.trapBubbledEvent("topSubmit","submit",e);break;case"details":wt.trapBubbledEvent("topToggle","toggle",e);break;case"input":Ut.initWrapperState(e,n),wt.trapBubbledEvent("topInvalid","invalid",e),gn(o,"onChange");break;case"option":Ht(e,n);break;case"select":Vt(e,n),wt.trapBubbledEvent("topInvalid","invalid",e),gn(o,"onChange");break;case"textarea":$t.initWrapperState(e,n),wt.trapBubbledEvent("topInvalid","invalid",e),gn(o,"onChange")}for(var a in Qt(t,n),r=null,n)n.hasOwnProperty(a)&&(i=n[a],"children"===a?"string"==typeof i?e.textContent!==i&&(r=["children",i]):"number"==typeof i&&e.textContent!==""+i&&(r=["children",""+i]):yn.hasOwnProperty(a)&&null!=i&&gn(o,a));switch(t){case"input":tn.track(e),Ut.postMountWrapper(e,n);break;case"textarea":tn.track(e),$t.postMountWrapper(e,n);break;case"select":case"option":break;default:"function"==typeof n.onClick&&(e.onclick=u)}return r},diffHydratedText:function(e,t){return e.nodeValue!==t},warnForDeletedHydratableElement:function(){},warnForDeletedHydratableText:function(){},warnForInsertedHydratedElement:function(){},warnForInsertedHydratedText:function(){},restoreControlledState:function(e,t,n){switch(t){case"input":Ut.restoreControlledState(e,n);break;case"textarea":$t.restoreControlledState(e,n);break;case"select":Kt(e,n)}}},xn=void 0;if(i.canUseDOM)if("function"!=typeof requestIdleCallback){var wn=null,En=null,Sn=!1,Tn=!1,On=0,Cn=33,Pn=33,Mn={timeRemaining:"object"===("undefined"==typeof performance?"undefined":r(performance))&&"function"==typeof performance.now?function(){return On-performance.now()}:function(){return On-Date.now()}},kn="__reactIdleCallback$"+Math.random().toString(36).slice(2);window.addEventListener("message",function(e){e.source===window&&e.data===kn&&(Sn=!1,e=En,En=null,null!==e&&e(Mn))},!1);var An=function(e){Tn=!1;var t=e-On+Pn;t<Pn&&Cn<Pn?(8>t&&(t=8),Pn=t<Cn?Cn:t):Cn=t,On=e+Pn,Sn||(Sn=!0,window.postMessage(kn,"*")),t=wn,wn=null,null!==t&&t(e)};xn=function(e){return En=e,Tn||(Tn=!0,requestAnimationFrame(An)),0}}else xn=requestIdleCallback;else xn=function(e){return setTimeout(function(){e({timeRemaining:function(){return 1/0}})}),0};var Rn={rIC:xn},In={enableAsyncSubtreeAPI:!0},Dn=0,jn=1,Nn=2,Ln=3,Fn=4,Bn=5,Un=ve,Hn=Dn,Wn=jn,zn=Nn,Xn=R,Gn=I,Vn=void 0,Yn=void 0;function qn(e,t){return e!==zn&&e!==Wn||t!==zn&&t!==Wn?e===Hn&&t!==Hn?-255:e!==Hn&&t===Hn?255:e-t:0}function Kn(e,t,n,r){null!==n?n.next=t:(t.next=e.first,e.first=t),null!==r?t.next=r:e.last=t}function Zn(e,t){t=t.priorityLevel;var n=null;if(null!==e.last&&0>=qn(e.last.priorityLevel,t))n=e.last;else for(e=e.first;null!==e&&0>=qn(e.priorityLevel,t);)n=e,e=e.next;return n}function $n(e,t){var n=e.alternate,r=e.updateQueue;null===r&&(r=e.updateQueue={first:null,last:null,hasForceUpdate:!1,callbackList:null}),null!==n?null===(e=n.updateQueue)&&(e=n.updateQueue={first:null,last:null,hasForceUpdate:!1,callbackList:null}):e=null;var o=Vn=r;n=Yn=e!==r?e:null;var i=Zn(o,t),a=null!==i?i.next:o.first;return null===n?(Kn(o,t,i,a),null):(e=null!==(r=Zn(n,t))?r.next:n.first,Kn(o,t,i,a),a===e&&null!==a||i===r&&null!==i?(null===r&&(n.first=t),null===e&&(n.last=null),null):(Kn(n,t={priorityLevel:t.priorityLevel,partialState:t.partialState,callback:t.callback,isReplace:t.isReplace,isForced:t.isForced,isTopLevelUnmount:t.isTopLevelUnmount,next:null},r,e),t))}function Jn(e,t,n,r){return"function"==typeof(e=e.partialState)?e.call(t,n,r):e}var Qn=function(e,t,n,r){$n(e,{priorityLevel:r,partialState:t,callback:n,isReplace:!1,isForced:!1,isTopLevelUnmount:!1,next:null})},er=function(e,t,n,r){$n(e,{priorityLevel:r,partialState:t,callback:n,isReplace:!0,isForced:!1,isTopLevelUnmount:!1,next:null})},tr=function(e,t,n){$n(e,{priorityLevel:n,partialState:null,callback:t,isReplace:!1,isForced:!0,isTopLevelUnmount:!1,next:null})},nr=function(e){var t=e.updateQueue;return null===t||e.tag!==Xn&&e.tag!==Gn?Hn:null!==t.first?t.first.priorityLevel:Hn},rr=function(e,t,n,r){var o=null===t.element;e=$n(e,t={priorityLevel:r,partialState:t,callback:n,isReplace:!1,isForced:!1,isTopLevelUnmount:o,next:null}),o&&(n=Yn,null!==(o=Vn)&&null!==t.next&&(t.next=null,o.last=t),null!==n&&null!==e&&null!==e.next&&(e.next=null,n.last=t))},or=function(e,t,n,r,o,i,s){null!==e&&e.updateQueue===n&&(n=t.updateQueue={first:n.first,last:n.last,callbackList:null,hasForceUpdate:!1}),e=n.callbackList;for(var u=n.hasForceUpdate,l=!0,c=n.first;null!==c&&0>=qn(c.priorityLevel,s);){var d;n.first=c.next,null===n.first&&(n.last=null),c.isReplace?(o=Jn(c,r,o,i),l=!0):(d=Jn(c,r,o,i))&&(o=l?a({},o,d):a(o,d),l=!1),c.isForced&&(u=!0),null===c.callback||c.isTopLevelUnmount&&null!==c.next||((e=null!==e?e:[]).push(c.callback),t.effectTag|=Un),c=c.next}return n.callbackList=e,n.hasForceUpdate=u,null!==n.first||null!==e||u||(t.updateQueue=null),o},ir=function(e,t,n){if(null!==(e=t.callbackList))for(t.callbackList=null,t=0;t<e.length;t++){var r=e[t];"function"!=typeof r&&p("191",r),r.call(n)}},ar=[],sr=-1,ur=function(e){return{current:e}},lr=function(e){0>sr||(e.current=ar[sr],ar[sr]=null,sr--)},cr=function(e,t){ar[++sr]=e.current,e.current=t},dr=function(){for(;-1<sr;)ar[sr]=null,sr--},fr=Pe,hr=R,pr=I,yr=ur,vr=lr,mr=cr,gr=yr(l),br=yr(!1),_r=l;function xr(e,t,n){(e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=n}function wr(e){return e.tag===hr&&null!=e.type.childContextTypes}function Er(e,t){var n=e.stateNode,r=e.type.childContextTypes;if("function"!=typeof n.getChildContext)return t;for(var o in n=n.getChildContext())o in r||p("108",ue(e)||"Unknown",o);return a({},t,n)}var Sr=function(e){return wr(e)?_r:gr.current},Tr=xr,Or=function(e,t){var n=e.type.contextTypes;if(!n)return l;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&xr(e,t,i),i},Cr=function(){return br.current},Pr=function(e){return e.tag===hr&&null!=e.type.contextTypes},Mr=wr,kr=function(e){wr(e)&&(vr(br,e),vr(gr,e))},Ar=function(e){vr(br,e),vr(gr,e)},Rr=function(e,t,n){null!=gr.cursor&&p("168"),mr(gr,t,e),mr(br,n,e)},Ir=Er,Dr=function(e){if(!wr(e))return!1;var t=e.stateNode;return t=t&&t.__reactInternalMemoizedMergedChildContext||l,_r=gr.current,mr(gr,t,e),mr(br,br.current,e),!0},jr=function(e,t){var n=e.stateNode;if(n||p("169"),t){var r=Er(e,_r);n.__reactInternalMemoizedMergedChildContext=r,vr(br,e),vr(gr,e),mr(gr,r,e)}else vr(br,e);mr(br,t,e)},Nr=function(){_r=l,gr.current=l,br.current=!1},Lr=function(e){for(fr(e)&&e.tag===hr||p("170");e.tag!==pr;){if(wr(e))return e.stateNode.__reactInternalMemoizedMergedChildContext;(e=e.return)||p("171")}return e.stateNode.context},Fr=1,Br=k,Ur=R,Hr=I,Wr=j,zr=N,Xr=D,Gr=L,Vr=B,Yr=U,qr=Dn,Kr=0,Zr=le;function $r(e,t,n){this.tag=e,this.key=t,this.stateNode=this.type=null,this.sibling=this.child=this.return=null,this.index=0,this.memoizedState=this.updateQueue=this.memoizedProps=this.pendingProps=this.ref=null,this.internalContextTag=n,this.effectTag=Zr,this.lastEffect=this.firstEffect=this.nextEffect=null,this.pendingWorkPriority=qr,this.alternate=null}function Jr(e,t,n){var o=void 0;return"function"==typeof e?(o=e.prototype&&e.prototype.isReactComponent?new $r(Ur,t,n):new $r(Br,t,n)).type=e:"string"==typeof e?(o=new $r(Wr,t,n)).type=e:"object"===(void 0===e?"undefined":r(e))&&null!==e&&"number"==typeof e.tag?o=e:p("130",null==e?e:void 0===e?"undefined":r(e),""),o}var Qr,eo,to=function(e,t){var n=e.alternate;return null===n?((n=new $r(e.tag,e.key,e.internalContextTag)).type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.effectTag=Zr,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.pendingWorkPriority=t,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n},no=function(e,t,n){return(t=Jr(e.type,e.key,t)).pendingProps=e.props,t.pendingWorkPriority=n,t},ro=function(e,t,n){return(t=new $r(Yr,null,t)).pendingProps=e,t.pendingWorkPriority=n,t},oo=function(e,t,n){return(t=new $r(zr,null,t)).pendingProps=e,t.pendingWorkPriority=n,t},io=function(){var e=new $r(Wr,null,Kr);return e.type="DELETED",e},ao=function(e,t,n){return(t=new $r(Gr,e.key,t)).type=e.handler,t.pendingProps=e,t.pendingWorkPriority=n,t},so=function(e,t){return new $r(Vr,null,t)},uo=function(e,t,n){return(t=new $r(Xr,e.key,t)).pendingProps=e.children||[],t.pendingWorkPriority=n,t.stateNode={containerInfo:e.containerInfo,implementation:e.implementation},t},lo=function(e,t){return e!==qr&&(t===qr||t>e)?e:t},co=function(){return new $r(Hr,null,Kr)},fo=k,ho=A,po=R,yo=j;"function"==typeof Symbol&&Symbol.for?(Qr=Symbol.for("react.coroutine"),eo=Symbol.for("react.yield")):(Qr=60104,eo=60105);var vo={createCoroutine:function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:Qr,key:null==r?null:""+r,children:e,handler:t,props:n}},createYield:function(e){return{$$typeof:eo,value:e}},isCoroutine:function(e){return"object"===(void 0===e?"undefined":r(e))&&null!==e&&e.$$typeof===Qr},isYield:function(e){return"object"===(void 0===e?"undefined":r(e))&&null!==e&&e.$$typeof===eo},REACT_YIELD_TYPE:eo,REACT_COROUTINE_TYPE:Qr},mo="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.portal")||60106,go={createPortal:function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:mo,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}},isPortal:function(e){return"object"===(void 0===e?"undefined":r(e))&&null!==e&&e.$$typeof===mo},REACT_PORTAL_TYPE:mo},bo=vo.REACT_COROUTINE_TYPE,_o=vo.REACT_YIELD_TYPE,xo=go.REACT_PORTAL_TYPE,wo=to,Eo=no,So=ro,To=oo,Oo=ao,Co=so,Po=uo,Mo=Array.isArray,ko=A,Ao=R,Ro=N,Io=D,Do=L,jo=B,No=U,Lo=le,Fo=de,Bo=pe,Uo="function"==typeof Symbol&&Symbol.iterator,Ho="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;function Wo(e){return null===e||void 0===e?null:"function"==typeof(e=Uo&&e[Uo]||e["@@iterator"])?e:null}function zo(e,t){var n=t.ref;if(null!==n&&"function"!=typeof n){if(t._owner){var r=void 0;(t=t._owner)&&("number"==typeof t.tag?(t.tag!==Ao&&p("110"),r=t.stateNode):r=t.getPublicInstance()),r||p("147",n);var o=""+n;return null!==e&&null!==e.ref&&e.ref._stringRef===o?e.ref:((e=function(e){var t=r.refs===l?r.refs={}:r.refs;null===e?delete t[o]:t[o]=e})._stringRef=o,e)}"string"!=typeof n&&p("148"),t._owner||p("149",n)}return n}function Xo(e,t){"textarea"!==e.type&&p("31","[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,"")}function Go(e,t){function n(n,r){if(t){if(!e){if(null===r.alternate)return;r=r.alternate}var o=n.lastEffect;null!==o?(o.nextEffect=r,n.lastEffect=r):n.firstEffect=n.lastEffect=r,r.nextEffect=null,r.effectTag=Bo}}function o(e,r){if(!t)return null;for(;null!==r;)n(e,r),r=r.sibling;return null}function i(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function a(t,n){return e?((t=wo(t,n)).index=0,t.sibling=null,t):(t.pendingWorkPriority=n,t.effectTag=Lo,t.index=0,t.sibling=null,t)}function s(e,n,r){return e.index=r,t?null!==(r=e.alternate)?(r=r.index)<n?(e.effectTag=Fo,n):r:(e.effectTag=Fo,n):n}function u(e){return t&&null===e.alternate&&(e.effectTag=Fo),e}function l(e,t,n,r){return null===t||t.tag!==Ro?((n=To(n,e.internalContextTag,r)).return=e,n):((t=a(t,r)).pendingProps=n,t.return=e,t)}function c(e,t,n,r){return null===t||t.type!==n.type?((r=Eo(n,e.internalContextTag,r)).ref=zo(t,n),r.return=e,r):((r=a(t,r)).ref=zo(t,n),r.pendingProps=n.props,r.return=e,r)}function d(e,t,n,r){return null===t||t.tag!==Do?((n=Oo(n,e.internalContextTag,r)).return=e,n):((t=a(t,r)).pendingProps=n,t.return=e,t)}function f(e,t,n,r){return null===t||t.tag!==jo?((t=Co(n,e.internalContextTag,r)).type=n.value,t.return=e,t):((t=a(t,r)).type=n.value,t.return=e,t)}function h(e,t,n,r){return null===t||t.tag!==Io||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((n=Po(n,e.internalContextTag,r)).return=e,n):((t=a(t,r)).pendingProps=n.children||[],t.return=e,t)}function y(e,t,n,r){return null===t||t.tag!==No?((n=So(n,e.internalContextTag,r)).return=e,n):((t=a(t,r)).pendingProps=n,t.return=e,t)}function v(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=To(""+t,e.internalContextTag,n)).return=e,t;if("object"===(void 0===t?"undefined":r(t))&&null!==t){switch(t.$$typeof){case Ho:return(n=Eo(t,e.internalContextTag,n)).ref=zo(null,t),n.return=e,n;case bo:return(t=Oo(t,e.internalContextTag,n)).return=e,t;case _o:return(n=Co(t,e.internalContextTag,n)).type=t.value,n.return=e,n;case xo:return(t=Po(t,e.internalContextTag,n)).return=e,t}if(Mo(t)||Wo(t))return(t=So(t,e.internalContextTag,n)).return=e,t;Xo(e,t)}return null}function m(e,t,n,o){var i=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==i?null:l(e,t,""+n,o);if("object"===(void 0===n?"undefined":r(n))&&null!==n){switch(n.$$typeof){case Ho:return n.key===i?c(e,t,n,o):null;case bo:return n.key===i?d(e,t,n,o):null;case _o:return null===i?f(e,t,n,o):null;case xo:return n.key===i?h(e,t,n,o):null}if(Mo(n)||Wo(n))return null!==i?null:y(e,t,n,o);Xo(e,n)}return null}function g(e,t,n,o,i){if("string"==typeof o||"number"==typeof o)return l(t,e=e.get(n)||null,""+o,i);if("object"===(void 0===o?"undefined":r(o))&&null!==o){switch(o.$$typeof){case Ho:return c(t,e=e.get(null===o.key?n:o.key)||null,o,i);case bo:return d(t,e=e.get(null===o.key?n:o.key)||null,o,i);case _o:return f(t,e=e.get(n)||null,o,i);case xo:return h(t,e=e.get(null===o.key?n:o.key)||null,o,i)}if(Mo(o)||Wo(o))return y(t,e=e.get(n)||null,o,i);Xo(t,o)}return null}function b(e,r,a,u){for(var l=null,c=null,d=r,f=r=0,h=null;null!==d&&f<a.length;f++){d.index>f?(h=d,d=null):h=d.sibling;var p=m(e,d,a[f],u);if(null===p){null===d&&(d=h);break}t&&d&&null===p.alternate&&n(e,d),r=s(p,r,f),null===c?l=p:c.sibling=p,c=p,d=h}if(f===a.length)return o(e,d),l;if(null===d){for(;f<a.length;f++)(d=v(e,a[f],u))&&(r=s(d,r,f),null===c?l=d:c.sibling=d,c=d);return l}for(d=i(e,d);f<a.length;f++)(h=g(d,e,f,a[f],u))&&(t&&null!==h.alternate&&d.delete(null===h.key?f:h.key),r=s(h,r,f),null===c?l=h:c.sibling=h,c=h);return t&&d.forEach(function(t){return n(e,t)}),l}function _(e,r,a,u){var l=Wo(a);"function"!=typeof l&&p("150"),null==(a=l.call(a))&&p("151");for(var c=l=null,d=r,f=r=0,h=null,y=a.next();null!==d&&!y.done;f++,y=a.next()){d.index>f?(h=d,d=null):h=d.sibling;var b=m(e,d,y.value,u);if(null===b){d||(d=h);break}t&&d&&null===b.alternate&&n(e,d),r=s(b,r,f),null===c?l=b:c.sibling=b,c=b,d=h}if(y.done)return o(e,d),l;if(null===d){for(;!y.done;f++,y=a.next())null!==(y=v(e,y.value,u))&&(r=s(y,r,f),null===c?l=y:c.sibling=y,c=y);return l}for(d=i(e,d);!y.done;f++,y=a.next())null!==(y=g(d,e,f,y.value,u))&&(t&&null!==y.alternate&&d.delete(null===y.key?f:y.key),r=s(y,r,f),null===c?l=y:c.sibling=y,c=y);return t&&d.forEach(function(t){return n(e,t)}),l}return function(e,t,i,s){var l="object"===(void 0===i?"undefined":r(i))&&null!==i;if(l)switch(i.$$typeof){case Ho:e:{var c=i.key;for(l=t;null!==l;){if(l.key===c){if(l.type===i.type){o(e,l.sibling),(t=a(l,s)).ref=zo(l,i),t.pendingProps=i.props,t.return=e,e=t;break e}o(e,l);break}n(e,l),l=l.sibling}(s=Eo(i,e.internalContextTag,s)).ref=zo(t,i),s.return=e,e=s}return u(e);case bo:e:{for(l=i.key;null!==t;){if(t.key===l){if(t.tag===Do){o(e,t.sibling),(t=a(t,s)).pendingProps=i,t.return=e,e=t;break e}o(e,t);break}n(e,t),t=t.sibling}(i=Oo(i,e.internalContextTag,s)).return=e,e=i}return u(e);case _o:e:{if(null!==t){if(t.tag===jo){o(e,t.sibling),(t=a(t,s)).type=i.value,t.return=e,e=t;break e}o(e,t)}(t=Co(i,e.internalContextTag,s)).type=i.value,t.return=e,e=t}return u(e);case xo:e:{for(l=i.key;null!==t;){if(t.key===l){if(t.tag===Io&&t.stateNode.containerInfo===i.containerInfo&&t.stateNode.implementation===i.implementation){o(e,t.sibling),(t=a(t,s)).pendingProps=i.children||[],t.return=e,e=t;break e}o(e,t);break}n(e,t),t=t.sibling}(i=Po(i,e.internalContextTag,s)).return=e,e=i}return u(e)}if("string"==typeof i||"number"==typeof i)return i=""+i,null!==t&&t.tag===Ro?(o(e,t.sibling),(t=a(t,s)).pendingProps=i,t.return=e,e=t):(o(e,t),(i=To(i,e.internalContextTag,s)).return=e,e=i),u(e);if(Mo(i))return b(e,t,i,s);if(Wo(i))return _(e,t,i,s);if(l&&Xo(e,i),void 0===i)switch(e.tag){case Ao:case ko:p("152",(i=e.type).displayName||i.name||"Component")}return o(e,t)}}var Vo={reconcileChildFibers:Go(!0,!0),reconcileChildFibersInPlace:Go(!1,!0),mountChildFibersInPlace:Go(!1,!1),cloneChildFibers:function(e,t){if(null!==e&&t.child!==e.child&&p("153"),null!==t.child){e=t.child;var n=wo(e,e.pendingWorkPriority);for(n.pendingProps=e.pendingProps,t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=wo(e,e.pendingWorkPriority)).pendingProps=e.pendingProps,n.return=t;n.sibling=null}}},Yo=fe,qo=Fr,Ko=Tr,Zo=Or,$o=Sr,Jo=Pr,Qo=Qn,ei=er,ti=tr,ni=or,ri=Cr,oi=Me;var ii=Vo.mountChildFibersInPlace,ai=Vo.reconcileChildFibers,si=Vo.reconcileChildFibersInPlace,ui=Vo.cloneChildFibers,li=or,ci=Or,di=Sr,fi=Cr,hi=Dr,pi=Rr,yi=jr,vi=k,mi=A,gi=R,bi=I,_i=j,xi=N,wi=D,Ei=L,Si=F,Ti=B,Oi=U,Ci=Dn,Pi=Bn,Mi=ce,ki=de,Ai=ye,Ri=me,Ii=ge,Di=se.ReactCurrentOwner;function ji(e,t,n,o,i){function a(e,t,n){s(e,t,n,t.pendingWorkPriority)}function s(e,t,n,r){t.child=null===e?ii(t,t.child,n,r):e.child===t.child?ai(t,t.child,n,r):si(t,t.child,n,r)}function u(e,t){var n=t.ref;null===n||e&&e.ref===n||(t.effectTag|=Ii)}function d(e,t,n,r){if(u(e,t),!n)return r&&yi(t,!1),h(e,t);n=t.stateNode,Di.current=t;var o=n.render();return t.effectTag|=Mi,a(e,t,o),t.memoizedState=n.state,t.memoizedProps=n.props,r&&yi(t,!0),t.child}function f(e){var t=e.stateNode;t.pendingContext?pi(e,t.pendingContext,t.pendingContext!==t.context):t.context&&pi(e,t.context,!1),_(e,t.containerInfo)}function h(e,t){return ui(e,t),t.child}function y(e,t){switch(t.tag){case bi:f(t);break;case gi:hi(t);break;case wi:_(t,t.stateNode.containerInfo)}return null}var v=e.shouldSetTextContent,m=e.useSyncScheduling,g=e.shouldDeprioritizeSubtree,b=t.pushHostContext,_=t.pushHostContainer,x=n.enterHydrationState,w=n.resetHydrationState,E=n.tryToClaimNextHydratableInstance,S=(e=function(e,t,n,r){function o(e,t){t.updater=i,e.stateNode=t,ae.set(t,e)}var i={isMounted:oi,enqueueSetState:function(n,r,o){n=ae.get(n);var i=t(n,!1);Qo(n,r,void 0===o?null:o,i),e(n,i)},enqueueReplaceState:function(n,r,o){n=ae.get(n);var i=t(n,!1);ei(n,r,void 0===o?null:o,i),e(n,i)},enqueueForceUpdate:function(n,r){n=ae.get(n);var o=t(n,!1);ti(n,void 0===r?null:r,o),e(n,o)}};return{adoptClassInstance:o,constructClassInstance:function(e,t){var n=e.type,r=$o(e),i=Jo(e),a=i?Zo(e,r):l;return o(e,t=new n(t,a)),i&&Ko(e,r,a),t},mountClassInstance:function(e,t){var n=e.alternate,r=e.stateNode,o=r.state||null,a=e.pendingProps;a||p("158");var s=$o(e);r.props=a,r.state=o,r.refs=l,r.context=Zo(e,s),In.enableAsyncSubtreeAPI&&null!=e.type&&null!=e.type.prototype&&!0===e.type.prototype.unstable_isAsyncReactComponent&&(e.internalContextTag|=qo),"function"==typeof r.componentWillMount&&(s=r.state,r.componentWillMount(),s!==r.state&&i.enqueueReplaceState(r,r.state,null),null!==(s=e.updateQueue)&&(r.state=ni(n,e,s,r,o,a,t))),"function"==typeof r.componentDidMount&&(e.effectTag|=Yo)},updateClassInstance:function(e,t,o){var a=t.stateNode;a.props=t.memoizedProps,a.state=t.memoizedState;var s=t.memoizedProps,u=t.pendingProps;u||null==(u=s)&&p("159");var l=a.context,d=$o(t);if(d=Zo(t,d),"function"!=typeof a.componentWillReceiveProps||s===u&&l===d||(l=a.state,a.componentWillReceiveProps(u,d),a.state!==l&&i.enqueueReplaceState(a,a.state,null)),l=t.memoizedState,o=null!==t.updateQueue?ni(e,t,t.updateQueue,a,l,u,o):l,!(s!==u||l!==o||ri()||null!==t.updateQueue&&t.updateQueue.hasForceUpdate))return"function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=Yo),!1;var f=u;if(null===s||null!==t.updateQueue&&t.updateQueue.hasForceUpdate)f=!0;else{var h=t.stateNode,y=t.type;f="function"==typeof h.shouldComponentUpdate?h.shouldComponentUpdate(f,o,d):!(y.prototype&&y.prototype.isPureReactComponent&&c(s,f)&&c(l,o))}return f?("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(u,o,d),"function"==typeof a.componentDidUpdate&&(t.effectTag|=Yo)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=Yo),n(t,u),r(t,o)),a.props=u,a.state=o,a.context=d,f}}}(o,i,function(e,t){e.memoizedProps=t},function(e,t){e.memoizedState=t})).adoptClassInstance,T=e.constructClassInstance,O=e.mountClassInstance,C=e.updateClassInstance;return{beginWork:function(e,t,n){if(t.pendingWorkPriority===Ci||t.pendingWorkPriority>n)return y(0,t);switch(t.tag){case vi:null!==e&&p("155");var o=t.type,i=t.pendingProps,s=di(t);return o=o(i,s=ci(t,s)),t.effectTag|=Mi,"object"===(void 0===o?"undefined":r(o))&&null!==o&&"function"==typeof o.render?(t.tag=gi,i=hi(t),S(t,o),O(t,n),t=d(e,t,!0,i)):(t.tag=mi,a(e,t,o),t.memoizedProps=i,t=t.child),t;case mi:e:{if(i=t.type,n=t.pendingProps,o=t.memoizedProps,fi())null===n&&(n=o);else if(null===n||o===n){t=h(e,t);break e}o=di(t),i=i(n,o=ci(t,o)),t.effectTag|=Mi,a(e,t,i),t.memoizedProps=n,t=t.child}return t;case gi:return i=hi(t),o=void 0,null===e?t.stateNode?p("153"):(T(t,t.pendingProps),O(t,n),o=!0):o=C(e,t,n),d(e,t,o,i);case bi:return f(t),null!==(o=t.updateQueue)?(i=t.memoizedState)===(o=li(e,t,o,null,i,null,n))?(w(),t=h(e,t)):(i=o.element,null!==e&&null!==e.child||!x(t)?(w(),a(e,t,i)):(t.effectTag|=ki,t.child=ii(t,t.child,i,n)),t.memoizedState=o,t=t.child):(w(),t=h(e,t)),t;case _i:b(t),null===e&&E(t),i=t.type;var l=t.memoizedProps;return null===(o=t.pendingProps)&&(null===(o=l)&&p("154")),s=null!==e?e.memoizedProps:null,fi()||null!==o&&l!==o?(l=o.children,v(i,o)?l=null:s&&v(i,s)&&(t.effectTag|=Ai),u(e,t),n!==Pi&&!m&&g(i,o)?(t.pendingWorkPriority=Pi,t=null):(a(e,t,l),t.memoizedProps=o,t=t.child)):t=h(e,t),t;case xi:return null===e&&E(t),null===(e=t.pendingProps)&&(e=t.memoizedProps),t.memoizedProps=e,null;case Si:t.tag=Ei;case Ei:return n=t.pendingProps,fi()?null===n&&(null===(n=e&&e.memoizedProps)&&p("154")):null!==n&&t.memoizedProps!==n||(n=t.memoizedProps),i=n.children,o=t.pendingWorkPriority,t.stateNode=null===e?ii(t,t.stateNode,i,o):e.child===t.child?ai(t,t.stateNode,i,o):si(t,t.stateNode,i,o),t.memoizedProps=n,t.stateNode;case Ti:return null;case wi:e:{if(_(t,t.stateNode.containerInfo),n=t.pendingWorkPriority,i=t.pendingProps,fi())null===i&&(null==(i=e&&e.memoizedProps)&&p("154"));else if(null===i||t.memoizedProps===i){t=h(e,t);break e}null===e?t.child=si(t,t.child,i,n):a(e,t,i),t.memoizedProps=i,t=t.child}return t;case Oi:e:{if(n=t.pendingProps,fi())null===n&&(n=t.memoizedProps);else if(null===n||t.memoizedProps===n){t=h(e,t);break e}a(e,t,n),t.memoizedProps=n,t=t.child}return t;default:p("156")}},beginFailedWork:function(e,t,n){switch(t.tag){case gi:hi(t);break;case bi:f(t);break;default:p("157")}return t.effectTag|=Ri,null===e?t.child=null:t.child!==e.child&&(t.child=e.child),t.pendingWorkPriority===Ci||t.pendingWorkPriority>n?y(0,t):(t.firstEffect=null,t.lastEffect=null,s(e,t,null,n),t.tag===gi&&(e=t.stateNode,t.memoizedProps=e.props,t.memoizedState=e.state),t.child)}}}var Ni=Vo.reconcileChildFibers,Li=kr,Fi=Ar,Bi=k,Ui=A,Hi=R,Wi=I,zi=j,Xi=N,Gi=D,Vi=L,Yi=F,qi=B,Ki=U,Zi=de,$i=ge,Ji=fe,Qi=Bn;var ea=null,ta=null;function na(e){return function(t){try{return e(t)}catch(e){}}}var ra=function(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!t.supportsFiber)return!0;try{var n=t.inject(e);ea=na(function(e){return t.onCommitFiberRoot(n,e)}),ta=na(function(e){return t.onCommitFiberUnmount(n,e)})}catch(e){}return!0},oa=R,ia=I,aa=j,sa=N,ua=D,la=L,ca=ir,da=function(e){"function"==typeof ta&&ta(e)},fa=de,ha=fe,pa=ve,ya=ye;var va=ur,ma=lr,ga=cr,ba={};var _a=j,xa=N,wa=I,Ea=pe,Sa=de,Ta=io;var Oa=kr,Ca=dr,Pa=se.ReactCurrentOwner,Ma=to,ka=lo,Aa=function(e){"function"==typeof ea&&ea(e)},Ra=Dn,Ia=jn,Da=Nn,ja=Ln,Na=Fn,La=Bn,Fa=Fr,Ba=ce,Ua=de,Ha=fe,Wa=he,za=pe,Xa=ye,Ga=ve,Va=me,Ya=ge,qa=I,Ka=j,Za=D,$a=R,Ja=nr,Qa=Nr;function es(e){function t(){for(;null!==G&&G.current.pendingWorkPriority===Ra;){G.isScheduled=!1;var e=G.nextScheduledRoot;if(G.nextScheduledRoot=null,G===V)return V=G=null,W=Ra,null;G=e}e=G;for(var t=null,n=Ra;null!==e;)e.current.pendingWorkPriority!==Ra&&(n===Ra||n>e.current.pendingWorkPriority)&&(n=e.current.pendingWorkPriority,t=e),e=e.nextScheduledRoot;null!==t?(W=n,Ca(),Qa(),x(),H=Ma(t.current,n),t!==re&&(ne=0,re=t)):(W=Ra,re=H=null)}function n(n){Q=!0,X=null;var r=n.stateNode;if(r.current===n&&p("177"),W!==Ia&&W!==Da||ne++,Pa.current=null,n.effectTag>Ba)if(null!==n.lastEffect){n.lastEffect.nextEffect=n;var o=n.firstEffect}else o=n;else o=n.firstEffect;for(D(),z=o;null!==z;){var i=!1,a=void 0;try{for(;null!==z;){var s=z.effectTag;if(s&Xa&&e.resetTextContent(z.stateNode),s&Ya){var u=z.alternate;null!==u&&A(u)}switch(s&~(Ga|Va|Xa|Ya|Ba)){case Ua:O(z),z.effectTag&=~Ua;break;case Wa:O(z),z.effectTag&=~Ua,P(z.alternate,z);break;case Ha:P(z.alternate,z);break;case za:ee=!0,C(z),ee=!1}z=z.nextEffect}}catch(e){i=!0,a=e}i&&(null===z&&p("178"),c(z,a),null!==z&&(z=z.nextEffect))}for(j(),r.current=n,z=o;null!==z;){r=!1,o=void 0;try{for(;null!==z;){var l=z.effectTag;if(l&(Ha|Ga)&&M(z.alternate,z),l&Ya&&k(z),l&Va)switch(i=z,a=void 0,null!==q&&(a=q.get(i),q.delete(i),null==a&&null!==i.alternate&&(i=i.alternate,a=q.get(i),q.delete(i))),null==a&&p("184"),i.tag){case $a:i.stateNode.componentDidCatch(a.error,{componentStack:a.componentStack});break;case qa:null===$&&($=a.error);break;default:p("157")}var d=z.nextEffect;z.nextEffect=null,z=d}}catch(e){r=!0,o=e}r&&(null===z&&p("178"),c(z,o),null!==z&&(z=z.nextEffect))}Q=!1,"function"==typeof Aa&&Aa(n.stateNode),Z&&(Z.forEach(v),Z=null),t()}function r(e){for(;;){var t=T(e.alternate,e,W),n=e.return,r=e.sibling,o=e;if(!(o.pendingWorkPriority!==Ra&&o.pendingWorkPriority>W)){for(var i=Ja(o),a=o.child;null!==a;)i=ka(i,a.pendingWorkPriority),a=a.sibling;o.pendingWorkPriority=i}if(null!==t)return t;if(null!==n&&(null===n.firstEffect&&(n.firstEffect=e.firstEffect),null!==e.lastEffect&&(null!==n.lastEffect&&(n.lastEffect.nextEffect=e.firstEffect),n.lastEffect=e.lastEffect),e.effectTag>Ba&&(null!==n.lastEffect?n.lastEffect.nextEffect=e:n.firstEffect=e,n.lastEffect=e)),null!==r)return r;if(null===n){X=e;break}e=n}return null}function o(e){var t=E(e.alternate,e,W);return null===t&&(t=r(e)),Pa.current=null,t}function i(e){var t=S(e.alternate,e,W);return null===t&&(t=r(e)),Pa.current=null,t}function a(e){l(La,e)}function s(){if(null!==q&&0<q.size&&W===Da)for(;null!==H;){var e=H;if(null===(H=null!==q&&(q.has(e)||null!==e.alternate&&q.has(e.alternate))?i(H):o(H))&&(null===X&&p("179"),N=Da,n(X),N=W,null===q||0===q.size||W!==Da))break}}function u(e,r){if(null!==X?(N=Da,n(X),s()):null===H&&t(),!(W===Ra||W>e)){N=W;e:for(;;){if(W<=Da)for(;null!==H&&!(null===(H=o(H))&&(null===X&&p("179"),N=Da,n(X),N=W,s(),W===Ra||W>e||W>Da)););else if(null!==r)for(;null!==H&&!F;)if(1<r.timeRemaining()){if(null===(H=o(H)))if(null===X&&p("179"),1<r.timeRemaining()){if(N=Da,n(X),N=W,s(),W===Ra||W>e||W<ja)break}else F=!0}else F=!0;switch(W){case Ia:case Da:if(W<=e)continue e;break e;case ja:case Na:case La:if(null===r)break e;if(!F&&W<=e)continue e;break e;case Ra:break e;default:p("181")}}}}function l(e,t){L&&p("182"),L=!0;var n=N,r=!1,o=null;try{u(e,t)}catch(e){r=!0,o=e}for(;r;){if(J){$=o;break}var s=H;if(null===s)J=!0;else{var l=c(s,o);if(null===l&&p("183"),!J){try{r=l,o=e,l=t;for(var d=r;null!==s;){switch(s.tag){case $a:Oa(s);break;case Ka:_(s);break;case qa:b(s);break;case Za:b(s)}if(s===d||s.alternate===d)break;s=s.return}H=i(r),u(o,l)}catch(e){r=!0,o=e;continue}break}}}if(N=n,null!==t&&(Y=!1),W>Da&&!Y&&(R(a),Y=!0),e=$,J=F=L=!1,re=K=q=$=null,ne=0,null!==e)throw e}function c(e,t){var n=Pa.current=null,r=!1,o=!1,i=null;if(e.tag===qa)n=e,d(e)&&(J=!0);else for(var a=e.return;null!==a&&null===n;){if(a.tag===$a?"function"==typeof a.stateNode.componentDidCatch&&(r=!0,i=ue(a),n=a,o=!0):a.tag===qa&&(n=a),d(a)){if(ee||null!==Z&&(Z.has(a)||null!==a.alternate&&Z.has(a.alternate)))return null;n=null,o=!1}a=a.return}if(null!==n){null===K&&(K=new Set),K.add(n);var s="";a=e;do{e:switch(a.tag){case fo:case ho:case po:case yo:var u=a._debugOwner,l=a._debugSource,c=ue(a),f=null;u&&(f=ue(u)),u=l,c="\n in "+(c||"Unknown")+(u?" (at "+u.fileName.replace(/^.*[\\\/]/,"")+":"+u.lineNumber+")":f?" (created by "+f+")":"");break e;default:c=""}s+=c,a=a.return}while(a);a=s,e=ue(e),null===q&&(q=new Map),t={componentName:e,componentStack:a,error:t,errorBoundary:r?n.stateNode:null,errorBoundaryFound:r,errorBoundaryName:i,willRetry:o},q.set(n,t);try{console.error(t.error)}catch(e){console.error(e)}return Q?(null===Z&&(Z=new Set),Z.add(n)):v(n),n}return null===$&&($=t),null}function d(e){return null!==K&&(K.has(e)||null!==e.alternate&&K.has(e.alternate))}function f(e,t){return h(e,t)}function h(e,t){ne>te&&(J=!0,p("185")),!L&&t<=W&&(H=null);for(var n=!0;null!==e&&n;){if(n=!1,(e.pendingWorkPriority===Ra||e.pendingWorkPriority>t)&&(n=!0,e.pendingWorkPriority=t),null!==e.alternate&&(e.alternate.pendingWorkPriority===Ra||e.alternate.pendingWorkPriority>t)&&(n=!0,e.alternate.pendingWorkPriority=t),null===e.return){if(e.tag!==qa)break;var r=e.stateNode;if(t===Ra||r.isScheduled||(r.isScheduled=!0,V?V.nextScheduledRoot=r:G=r,V=r),!L)switch(t){case Ia:l(U?Ia:Da,null);break;case Da:B||p("186");break;default:Y||(R(a),Y=!0)}}e=e.return}}function y(e,t){var n=N;return n===Ra&&(n=!I||e.internalContextTag&Fa||t?Na:Ia),n===Ia&&(L||B)?Da:n}function v(e){h(e,Da)}var m=function(e){function t(e){return e===ba&&p("174"),e}var n=e.getChildHostContext,r=e.getRootHostContext,o=va(ba),i=va(ba),a=va(ba);return{getHostContext:function(){return t(o.current)},getRootHostContainer:function(){return t(a.current)},popHostContainer:function(e){ma(o,e),ma(i,e),ma(a,e)},popHostContext:function(e){i.current===e&&(ma(o,e),ma(i,e))},pushHostContainer:function(e,t){ga(a,t,e),t=r(t),ga(i,e,e),ga(o,t,e)},pushHostContext:function(e){var r=t(a.current),s=t(o.current);s!==(r=n(s,e.type,r))&&(ga(i,e,e),ga(o,r,e))},resetHostContainer:function(){o.current=ba,a.current=ba}}}(e),g=function(e){function t(e,t){var n=Ta();n.stateNode=t,n.return=e,n.effectTag=Ea,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function n(e,t){switch(e.tag){case _a:return i(t,e.type,e.pendingProps);case xa:return a(t,e.pendingProps);default:return!1}}function r(e){for(e=e.return;null!==e&&e.tag!==_a&&e.tag!==wa;)e=e.return;h=e}var o=e.shouldSetTextContent,i=e.canHydrateInstance,a=e.canHydrateTextInstance,s=e.getNextHydratableSibling,u=e.getFirstHydratableChild,l=e.hydrateInstance,c=e.hydrateTextInstance,d=e.didNotHydrateInstance,f=e.didNotFindHydratableInstance;if(e=e.didNotFindHydratableTextInstance,!(i&&a&&s&&u&&l&&c&&d&&f&&e))return{enterHydrationState:function(){return!1},resetHydrationState:function(){},tryToClaimNextHydratableInstance:function(){},prepareToHydrateHostInstance:function(){p("175")},prepareToHydrateHostTextInstance:function(){p("176")},popHydrationState:function(){return!1}};var h=null,y=null,v=!1;return{enterHydrationState:function(e){return y=u(e.stateNode.containerInfo),h=e,v=!0},resetHydrationState:function(){y=h=null,v=!1},tryToClaimNextHydratableInstance:function(e){if(v){var r=y;if(r){if(!n(e,r)){if(!(r=s(r))||!n(e,r))return e.effectTag|=Sa,v=!1,void(h=e);t(h,y)}e.stateNode=r,h=e,y=u(r)}else e.effectTag|=Sa,v=!1,h=e}},prepareToHydrateHostInstance:function(e,t,n){return t=l(e.stateNode,e.type,e.memoizedProps,t,n,e),e.updateQueue=t,null!==t},prepareToHydrateHostTextInstance:function(e){return c(e.stateNode,e.memoizedProps,e)},popHydrationState:function(e){if(e!==h)return!1;if(!v)return r(e),v=!0,!1;var n=e.type;if(e.tag!==_a||"head"!==n&&"body"!==n&&!o(n,e.memoizedProps))for(n=y;n;)t(e,n),n=s(n);return r(e),y=h?s(e.stateNode):null,!0}}}(e),b=m.popHostContainer,_=m.popHostContext,x=m.resetHostContainer,w=ji(e,m,g,f,y),E=w.beginWork,S=w.beginFailedWork,T=function(e,t,n){var r=e.createInstance,o=e.createTextInstance,i=e.appendInitialChild,a=e.finalizeInitialChildren,s=e.prepareUpdate,u=t.getRootHostContainer,l=t.popHostContext,c=t.getHostContext,d=t.popHostContainer,f=n.prepareToHydrateHostInstance,h=n.prepareToHydrateHostTextInstance,y=n.popHydrationState;return{completeWork:function(e,t,n){var v=t.pendingProps;switch(null===v?v=t.memoizedProps:t.pendingWorkPriority===Qi&&n!==Qi||(t.pendingProps=null),t.tag){case Ui:return null;case Hi:return Li(t),null;case Wi:return d(t),Fi(t),(v=t.stateNode).pendingContext&&(v.context=v.pendingContext,v.pendingContext=null),null!==e&&null!==e.child||(y(t),t.effectTag&=~Zi),null;case zi:l(t),n=u();var m=t.type;if(null!==e&&null!=t.stateNode){var g=e.memoizedProps,b=t.stateNode,_=c();v=s(b,m,g,v,n,_),(t.updateQueue=v)&&(t.effectTag|=Ji),e.ref!==t.ref&&(t.effectTag|=$i)}else{if(!v)return null===t.stateNode&&p("166"),null;if(e=c(),y(t))f(t,n,e)&&(t.effectTag|=Ji);else{e=r(m,v,n,e,t);e:for(g=t.child;null!==g;){if(g.tag===zi||g.tag===Xi)i(e,g.stateNode);else if(g.tag!==Gi&&null!==g.child){g=g.child;continue}if(g===t)break e;for(;null===g.sibling;){if(null===g.return||g.return===t)break e;g=g.return}g=g.sibling}a(e,m,v,n)&&(t.effectTag|=Ji),t.stateNode=e}null!==t.ref&&(t.effectTag|=$i)}return null;case Xi:if(e&&null!=t.stateNode)e.memoizedProps!==v&&(t.effectTag|=Ji);else{if("string"!=typeof v)return null===t.stateNode&&p("166"),null;e=u(),n=c(),y(t)?h(t)&&(t.effectTag|=Ji):t.stateNode=o(v,e,n,t)}return null;case Vi:(v=t.memoizedProps)||p("165"),t.tag=Yi,n=[];e:for((m=t.stateNode)&&(m.return=t);null!==m;){if(m.tag===zi||m.tag===Xi||m.tag===Gi)p("164");else if(m.tag===qi)n.push(m.type);else if(null!==m.child){m.child.return=m,m=m.child;continue}for(;null===m.sibling;){if(null===m.return||m.return===t)break e;m=m.return}m.sibling.return=m.return,m=m.sibling}return v=(m=v.handler)(v.props,n),t.child=Ni(t,null!==e?e.child:null,v,t.pendingWorkPriority),t.child;case Yi:return t.tag=Vi,null;case qi:case Ki:return null;case Gi:return t.effectTag|=Ji,d(t),null;case Bi:p("167");default:p("156")}}}}(e,m,g).completeWork,O=(m=function(e,t){function n(e){var n=e.ref;if(null!==n)try{n(null)}catch(n){t(e,n)}}function r(e){return e.tag===aa||e.tag===ia||e.tag===ua}function o(e){for(var t=e;;)if(a(t),null!==t.child&&t.tag!==ua)t.child.return=t,t=t.child;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return;t=t.return}t.sibling.return=t.return,t=t.sibling}}function i(e){for(var t=e,n=!1,r=void 0,i=void 0;;){if(!n){n=t.return;e:for(;;){switch(null===n&&p("160"),n.tag){case aa:r=n.stateNode,i=!1;break e;case ia:case ua:r=n.stateNode.containerInfo,i=!0;break e}n=n.return}n=!0}if(t.tag===aa||t.tag===sa)o(t),i?m(r,t.stateNode):v(r,t.stateNode);else if(t.tag===ua?r=t.stateNode.containerInfo:a(t),null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return;(t=t.return).tag===ua&&(n=!1)}t.sibling.return=t.return,t=t.sibling}}function a(e){switch("function"==typeof da&&da(e),e.tag){case oa:n(e);var r=e.stateNode;if("function"==typeof r.componentWillUnmount)try{r.props=e.memoizedProps,r.state=e.memoizedState,r.componentWillUnmount()}catch(n){t(e,n)}break;case aa:n(e);break;case la:o(e.stateNode);break;case ua:i(e)}}var s=e.commitMount,u=e.commitUpdate,l=e.resetTextContent,c=e.commitTextUpdate,d=e.appendChild,f=e.appendChildToContainer,h=e.insertBefore,y=e.insertInContainerBefore,v=e.removeChild,m=e.removeChildFromContainer,g=e.getPublicInstance;return{commitPlacement:function(e){e:{for(var t=e.return;null!==t;){if(r(t)){var n=t;break e}t=t.return}p("160"),n=void 0}var o=t=void 0;switch(n.tag){case aa:t=n.stateNode,o=!1;break;case ia:case ua:t=n.stateNode.containerInfo,o=!0;break;default:p("161")}n.effectTag&ya&&(l(t),n.effectTag&=~ya);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||r(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==aa&&n.tag!==sa;){if(n.effectTag&fa)continue t;if(null===n.child||n.tag===ua)continue t;n.child.return=n,n=n.child}if(!(n.effectTag&fa)){n=n.stateNode;break e}}for(var i=e;;){if(i.tag===aa||i.tag===sa)n?o?y(t,i.stateNode,n):h(t,i.stateNode,n):o?f(t,i.stateNode):d(t,i.stateNode);else if(i.tag!==ua&&null!==i.child){i.child.return=i,i=i.child;continue}if(i===e)break;for(;null===i.sibling;){if(null===i.return||i.return===e)return;i=i.return}i.sibling.return=i.return,i=i.sibling}},commitDeletion:function(e){i(e),e.return=null,e.child=null,e.alternate&&(e.alternate.child=null,e.alternate.return=null)},commitWork:function(e,t){switch(t.tag){case oa:break;case aa:var n=t.stateNode;if(null!=n){var r=t.memoizedProps;e=null!==e?e.memoizedProps:r;var o=t.type,i=t.updateQueue;t.updateQueue=null,null!==i&&u(n,i,o,e,r,t)}break;case sa:null===t.stateNode&&p("162"),n=t.memoizedProps,c(t.stateNode,null!==e?e.memoizedProps:n,n);break;case ia:case ua:break;default:p("163")}},commitLifeCycles:function(e,t){switch(t.tag){case oa:var n=t.stateNode;if(t.effectTag&ha)if(null===e)n.props=t.memoizedProps,n.state=t.memoizedState,n.componentDidMount();else{var r=e.memoizedProps;e=e.memoizedState,n.props=t.memoizedProps,n.state=t.memoizedState,n.componentDidUpdate(r,e)}t.effectTag&pa&&null!==t.updateQueue&&ca(t,t.updateQueue,n);break;case ia:null!==(e=t.updateQueue)&&ca(t,e,t.child&&t.child.stateNode);break;case aa:n=t.stateNode,null===e&&t.effectTag&ha&&s(n,t.type,t.memoizedProps,t);break;case sa:case ua:break;default:p("163")}},commitAttachRef:function(e){var t=e.ref;if(null!==t){var n=e.stateNode;switch(e.tag){case aa:t(g(n));break;default:t(n)}}},commitDetachRef:function(e){null!==(e=e.ref)&&e(null)}}}(e,c)).commitPlacement,C=m.commitDeletion,P=m.commitWork,M=m.commitLifeCycles,k=m.commitAttachRef,A=m.commitDetachRef,R=e.scheduleDeferredCallback,I=e.useSyncScheduling,D=e.prepareForCommit,j=e.resetAfterCommit,N=Ra,L=!1,F=!1,B=!1,U=!1,H=null,W=Ra,z=null,X=null,G=null,V=null,Y=!1,q=null,K=null,Z=null,$=null,J=!1,Q=!1,ee=!1,te=1e3,ne=0,re=null;return{scheduleUpdate:f,getPriorityContext:y,batchedUpdates:function(e,t){var n=B;B=!0;try{return e(t)}finally{B=n,L||B||l(Da,null)}},unbatchedUpdates:function(e){var t=U,n=B;U=B,B=!1;try{return e()}finally{B=n,U=t}},flushSync:function(e){var t=B,n=N;B=!0,N=Ia;try{return e()}finally{B=t,N=n,L&&p("187"),l(Da,null)}},deferredUpdates:function(e){var t=N;N=Na;try{return e()}finally{N=t}}}}function ts(){p("196")}function ns(e){return e?"number"==typeof(e=ae.get(e)).tag?ts(e):e._processChildContext(e._context):l}ns._injectFiber=function(e){ts=e};var rs=rr,os=Lr,is=Mr,as=Ir,ss=j,us=ke,ls=Ae;ns._injectFiber(function(e){var t=os(e);return is(e)?as(e,t,!1):t});var cs=W;function ds(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function fs(e,t){var n,r=ds(e);for(e=0;r;){if(r.nodeType===cs){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=ds(r)}}var hs=null;function ps(){return!hs&&i.canUseDOM&&(hs="textContent"in document.documentElement?"textContent":"innerText"),hs}var ys=function(e){var t=window.getSelection&&window.getSelection();if(!t||0===t.rangeCount)return null;var n=t.anchorNode,r=t.anchorOffset,o=t.focusNode,i=t.focusOffset,a=t.getRangeAt(0);try{a.startContainer.nodeType,a.endContainer.nodeType}catch(e){return null}t=t.anchorNode===t.focusNode&&t.anchorOffset===t.focusOffset?0:a.toString().length;var s=a.cloneRange();return s.selectNodeContents(e),s.setEnd(a.startContainer,a.startOffset),a=(e=s.startContainer===s.endContainer&&s.startOffset===s.endOffset?0:s.toString().length)+t,(t=document.createRange()).setStart(n,r),t.setEnd(o,i),{start:(n=t.collapsed)?a:e,end:n?e:a}},vs=function(e,t){if(window.getSelection){var n=window.getSelection(),r=e[ps()].length,o=Math.min(t.start,r);if(t=void 0===t.end?o:Math.min(t.end,r),!n.extend&&o>t&&(r=t,t=o,o=r),r=fs(e,o),e=fs(e,t),r&&e){var i=document.createRange();i.setStart(r.node,r.offset),n.removeAllRanges(),o>t?(n.addRange(i),n.extend(e.node,e.offset)):(i.setEnd(e.node,e.offset),n.addRange(i))}}},ms=H,gs={hasSelectionCapabilities:function(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&"text"===e.type||"textarea"===t||"true"===e.contentEditable)},getSelectionInformation:function(){var e=h();return{focusedElem:e,selectionRange:gs.hasSelectionCapabilities(e)?gs.getSelection(e):null}},restoreSelection:function(e){var t=h(),n=e.focusedElem;if(e=e.selectionRange,t!==n&&d(document.documentElement,n)){for(gs.hasSelectionCapabilities(n)&&gs.setSelection(n,e),t=[],e=n;e=e.parentNode;)e.nodeType===ms&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(f(n),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}},getSelection:function(e){return("selectionStart"in e?{start:e.selectionStart,end:e.selectionEnd}:ys(e))||{start:0,end:0}},setSelection:function(e,t){var n=t.start,r=t.end;void 0===r&&(r=n),"selectionStart"in e?(e.selectionStart=n,e.selectionEnd=Math.min(r,e.value.length)):vs(e,t)}},bs=gs,_s=H;function xs(){p("211")}function ws(){p("212")}function Es(e){if(null==e)return null;if(e.nodeType===_s)return e;var t=ae.get(e);if(t)return"number"==typeof t.tag?xs(t):ws(t);"function"==typeof e.render?p("188"):p("213",Object.keys(e))}Es._injectFiber=function(e){xs=e},Es._injectStack=function(e){ws=e};var Ss=j;function Ts(e){if(void 0!==e._hostParent)return e._hostParent;if("number"==typeof e.tag){do{e=e.return}while(e&&e.tag!==Ss);if(e)return e}return null}function Os(e,t){for(var n=0,r=e;r;r=Ts(r))n++;r=0;for(var o=t;o;o=Ts(o))r++;for(;0<n-r;)e=Ts(e),n--;for(;0<r-n;)t=Ts(t),r--;for(;n--;){if(e===t||e===t.alternate)return e;e=Ts(e),t=Ts(t)}return null}var Cs={isAncestor:function(e,t){for(;t;){if(e===t||e===t.alternate)return!0;t=Ts(t)}return!1},getLowestCommonAncestor:Os,getParentInstance:function(e){return Ts(e)},traverseTwoPhase:function(e,t,n){for(var r=[];e;)r.push(e),e=Ts(e);for(e=r.length;0<e--;)t(r[e],"captured",n);for(e=0;e<r.length;e++)t(r[e],"bubbled",n)},traverseEnterLeave:function(e,t,n,r,o){for(var i=e&&t?Os(e,t):null,a=[];e&&e!==i;)a.push(e),e=Ts(e);for(e=[];t&&t!==i;)e.push(t),t=Ts(t);for(t=0;t<a.length;t++)n(a[t],"bubbled",r);for(t=e.length;0<t--;)n(e[t],"captured",o)}},Ps=ct.getListener;function Ms(e,t,n){(t=Ps(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=nt(n._dispatchListeners,t),n._dispatchInstances=nt(n._dispatchInstances,e))}function ks(e){e&&e.dispatchConfig.phasedRegistrationNames&&Cs.traverseTwoPhase(e._targetInst,Ms,e)}function As(e){if(e&&e.dispatchConfig.phasedRegistrationNames){var t=e._targetInst;t=t?Cs.getParentInstance(t):null,Cs.traverseTwoPhase(t,Ms,e)}}function Rs(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=Ps(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=nt(n._dispatchListeners,t),n._dispatchInstances=nt(n._dispatchInstances,e))}function Is(e){e&&e.dispatchConfig.registrationName&&Rs(e._targetInst,null,e)}var Ds={accumulateTwoPhaseDispatches:function(e){rt(e,ks)},accumulateTwoPhaseDispatchesSkipTarget:function(e){rt(e,As)},accumulateDirectDispatches:function(e){rt(e,Is)},accumulateEnterLeaveDispatches:function(e,t,n,r){Cs.traverseEnterLeave(n,r,Rs,e,t)}},js={_root:null,_startText:null,_fallbackText:null},Ns={initialize:function(e){return js._root=e,js._startText=Ns.getText(),!0},reset:function(){js._root=null,js._startText=null,js._fallbackText=null},getData:function(){if(js._fallbackText)return js._fallbackText;var e,t,n=js._startText,r=n.length,o=Ns.getText(),i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return js._fallbackText=o.slice(e,1<t?1-t:void 0),js._fallbackText},getText:function(){return"value"in js._root?js._root.value:js._root[ps()]}},Ls=Ns,Fs="dispatchConfig _targetInst nativeEvent isDefaultPrevented isPropagationStopped _dispatchListeners _dispatchInstances".split(" "),Bs={type:null,target:null,currentTarget:u.thatReturnsNull,eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null};function Us(e,t,n,r){for(var o in this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n,e=this.constructor.Interface)e.hasOwnProperty(o)&&((t=e[o])?this[o]=t(n):"target"===o?this.target=r:this[o]=n[o]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?u.thatReturnsTrue:u.thatReturnsFalse,this.isPropagationStopped=u.thatReturnsFalse,this}function Hs(e,t,n,r){if(this.eventPool.length){var o=this.eventPool.pop();return this.call(o,e,t,n,r),o}return new this(e,t,n,r)}function Ws(e){e instanceof this||p("223"),e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function zs(e){e.eventPool=[],e.getPooled=Hs,e.release=Ws}function Xs(e,t,n,r){return Us.call(this,e,t,n,r)}function Gs(e,t,n,r){return Us.call(this,e,t,n,r)}a(Us.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=u.thatReturnsTrue)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=u.thatReturnsTrue)},persist:function(){this.isPersistent=u.thatReturnsTrue},isPersistent:u.thatReturnsFalse,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;for(t=0;t<Fs.length;t++)this[Fs[t]]=null}}),Us.Interface=Bs,Us.augmentClass=function(e,t){function n(){}n.prototype=this.prototype;var r=new n;a(r,e.prototype),e.prototype=r,e.prototype.constructor=e,e.Interface=a({},this.Interface,t),e.augmentClass=this.augmentClass,zs(e)},zs(Us),Us.augmentClass(Xs,{data:null}),Us.augmentClass(Gs,{data:null});var Vs,Ys=[9,13,27,32],qs=i.canUseDOM&&"CompositionEvent"in window,Ks=null;if(i.canUseDOM&&"documentMode"in document&&(Ks=document.documentMode),Vs=i.canUseDOM&&"TextEvent"in window&&!Ks){var Zs=window.opera;Vs=!("object"===(void 0===Zs?"undefined":r(Zs))&&"function"==typeof Zs.version&&12>=parseInt(Zs.version(),10))}var $s=Vs,Js=i.canUseDOM&&(!qs||Ks&&8<Ks&&11>=Ks),Qs=String.fromCharCode(32),eu={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["topCompositionEnd","topKeyPress","topTextInput","topPaste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"topBlur topCompositionEnd topKeyDown topKeyPress topKeyUp topMouseDown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"topBlur topCompositionStart topKeyDown topKeyPress topKeyUp topMouseDown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"topBlur topCompositionUpdate topKeyDown topKeyPress topKeyUp topMouseDown".split(" ")}},tu=!1;function nu(e,t){switch(e){case"topKeyUp":return-1!==Ys.indexOf(t.keyCode);case"topKeyDown":return 229!==t.keyCode;case"topKeyPress":case"topMouseDown":case"topBlur":return!0;default:return!1}}function ru(e){return"object"===(void 0===(e=e.detail)?"undefined":r(e))&&"data"in e?e.data:null}var ou=!1;var iu={eventTypes:eu,extractEvents:function(e,t,n,r){var o;if(qs)e:{switch(e){case"topCompositionStart":var i=eu.compositionStart;break e;case"topCompositionEnd":i=eu.compositionEnd;break e;case"topCompositionUpdate":i=eu.compositionUpdate;break e}i=void 0}else ou?nu(e,n)&&(i=eu.compositionEnd):"topKeyDown"===e&&229===n.keyCode&&(i=eu.compositionStart);return i?(Js&&(ou||i!==eu.compositionStart?i===eu.compositionEnd&&ou&&(o=Ls.getData()):ou=Ls.initialize(r)),i=Xs.getPooled(i,t,n,r),o?i.data=o:null!==(o=ru(n))&&(i.data=o),Ds.accumulateTwoPhaseDispatches(i),o=i):o=null,(e=$s?function(e,t){switch(e){case"topCompositionEnd":return ru(t);case"topKeyPress":return 32!==t.which?null:(tu=!0,Qs);case"topTextInput":return(e=t.data)===Qs&&tu?null:e;default:return null}}(e,n):function(e,t){if(ou)return"topCompositionEnd"===e||!qs&&nu(e,t)?(e=Ls.getData(),Ls.reset(),ou=!1,e):null;switch(e){case"topPaste":return null;case"topKeyPress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"topCompositionEnd":return Js?null:t.data;default:return null}}(e,n))?((t=Gs.getPooled(eu.beforeInput,t,n,r)).data=e,Ds.accumulateTwoPhaseDispatches(t)):t=null,[o,t]}},au={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function su(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!au[e.type]:"textarea"===t}var uu={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"topBlur topChange topClick topFocus topInput topKeyDown topKeyUp topSelectionChange".split(" ")}};function lu(e,t,n){return(e=Us.getPooled(uu.change,e,t,n)).type="change",ze.enqueueStateRestore(n),Ds.accumulateTwoPhaseDispatches(e),e}var cu=null,du=null;function fu(e){ct.enqueueEvents(e),ct.processEventQueue(!1)}function hu(e){var t=ie.getNodeFromInstance(e);if(tn.updateValueIfChanged(t))return e}function pu(e,t){if("topChange"===e)return t}var yu=!1;function vu(){cu&&(cu.detachEvent("onpropertychange",mu),du=cu=null)}function mu(e){"value"===e.propertyName&&hu(du)&&(e=lu(du,e,Ze(e)),qe.batchedUpdates(fu,e))}function gu(e,t,n){"topFocus"===e?(vu(),du=n,(cu=t).attachEvent("onpropertychange",mu)):"topBlur"===e&&vu()}function bu(e){if("topSelectionChange"===e||"topKeyUp"===e||"topKeyDown"===e)return hu(du)}function _u(e,t){if("topClick"===e)return hu(t)}function xu(e,t){if("topInput"===e||"topChange"===e)return hu(t)}i.canUseDOM&&(yu=dt("input")&&(!document.documentMode||9<document.documentMode));var wu={eventTypes:uu,_isInputEventSupported:yu,extractEvents:function(e,t,n,r){var o=t?ie.getNodeFromInstance(t):window,i=o.nodeName&&o.nodeName.toLowerCase();if("select"===i||"input"===i&&"file"===o.type)var a=pu;else if(su(o))if(yu)a=xu;else{a=bu;var s=gu}else!(i=o.nodeName)||"input"!==i.toLowerCase()||"checkbox"!==o.type&&"radio"!==o.type||(a=_u);if(a&&(a=a(e,t)))return lu(a,n,r);s&&s(e,o,t),"topBlur"===e&&null!=t&&(e=t._wrapperState||o._wrapperState)&&e.controlled&&"number"===o.type&&(e=""+o.value,o.getAttribute("value")!==e&&o.setAttribute("value",e))}};function Eu(e,t,n,r){return Us.call(this,e,t,n,r)}Us.augmentClass(Eu,{view:function(e){return e.view?e.view:(e=Ze(e)).window===e?e:(e=e.ownerDocument)?e.defaultView||e.parentWindow:window},detail:function(e){return e.detail||0}});var Su={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Tu(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Su[e])&&!!t[e]}function Ou(){return Tu}function Cu(e,t,n,r){return Us.call(this,e,t,n,r)}Eu.augmentClass(Cu,{screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:Ou,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)}});var Pu={mouseEnter:{registrationName:"onMouseEnter",dependencies:["topMouseOut","topMouseOver"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["topMouseOut","topMouseOver"]}},Mu={eventTypes:Pu,extractEvents:function(e,t,n,r){if("topMouseOver"===e&&(n.relatedTarget||n.fromElement)||"topMouseOut"!==e&&"topMouseOver"!==e)return null;var o=r.window===r?r:(o=r.ownerDocument)?o.defaultView||o.parentWindow:window;if("topMouseOut"===e?(e=t,t=(t=n.relatedTarget||n.toElement)?ie.getClosestInstanceFromNode(t):null):e=null,e===t)return null;var i=null==e?o:ie.getNodeFromInstance(e);o=null==t?o:ie.getNodeFromInstance(t);var a=Cu.getPooled(Pu.mouseLeave,e,n,r);return a.type="mouseleave",a.target=i,a.relatedTarget=o,(n=Cu.getPooled(Pu.mouseEnter,t,n,r)).type="mouseenter",n.target=o,n.relatedTarget=i,Ds.accumulateEnterLeaveDispatches(a,n,e,t),[a,n]}},ku=X,Au=i.canUseDOM&&"documentMode"in document&&11>=document.documentMode,Ru={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"topBlur topContextMenu topFocus topKeyDown topKeyUp topMouseDown topMouseUp topSelectionChange".split(" ")}},Iu=null,Du=null,ju=null,Nu=!1,Lu=wt.isListeningToAllDependencies;function Fu(e,t){if(Nu||null==Iu||Iu!==h())return null;var n=Iu;return"selectionStart"in n&&bs.hasSelectionCapabilities(n)?n={start:n.selectionStart,end:n.selectionEnd}:window.getSelection?n={anchorNode:(n=window.getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}:n=void 0,ju&&c(ju,n)?null:(ju=n,(e=Us.getPooled(Ru.select,Du,e,t)).type="select",e.target=Iu,Ds.accumulateTwoPhaseDispatches(e),e)}var Bu={eventTypes:Ru,extractEvents:function(e,t,n,r){var o=r.window===r?r.document:r.nodeType===ku?r:r.ownerDocument;if(!o||!Lu("onSelect",o))return null;switch(o=t?ie.getNodeFromInstance(t):window,e){case"topFocus":(su(o)||"true"===o.contentEditable)&&(Iu=o,Du=t,ju=null);break;case"topBlur":ju=Du=Iu=null;break;case"topMouseDown":Nu=!0;break;case"topContextMenu":case"topMouseUp":return Nu=!1,Fu(n,r);case"topSelectionChange":if(Au)break;case"topKeyDown":case"topKeyUp":return Fu(n,r)}return null}};function Uu(e,t,n,r){return Us.call(this,e,t,n,r)}function Hu(e,t,n,r){return Us.call(this,e,t,n,r)}function Wu(e,t,n,r){return Us.call(this,e,t,n,r)}function zu(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,32<=e||13===e?e:0}Us.augmentClass(Uu,{animationName:null,elapsedTime:null,pseudoElement:null}),Us.augmentClass(Hu,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Eu.augmentClass(Wu,{relatedTarget:null});var Xu={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Gu={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"};function Vu(e,t,n,r){return Us.call(this,e,t,n,r)}function Yu(e,t,n,r){return Us.call(this,e,t,n,r)}function qu(e,t,n,r){return Us.call(this,e,t,n,r)}function Ku(e,t,n,r){return Us.call(this,e,t,n,r)}function Zu(e,t,n,r){return Us.call(this,e,t,n,r)}Eu.augmentClass(Vu,{key:function(e){if(e.key){var t=Xu[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=zu(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Gu[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:Ou,charCode:function(e){return"keypress"===e.type?zu(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?zu(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Cu.augmentClass(Yu,{dataTransfer:null}),Eu.augmentClass(qu,{touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Ou}),Us.augmentClass(Ku,{propertyName:null,elapsedTime:null,pseudoElement:null}),Cu.augmentClass(Zu,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null});var $u={},Ju={};"abort animationEnd animationIteration animationStart blur cancel canPlay canPlayThrough click close contextMenu copy cut doubleClick drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error focus input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing progress rateChange reset scroll seeked seeking stalled submit suspend timeUpdate toggle touchCancel touchEnd touchMove touchStart transitionEnd volumeChange waiting wheel".split(" ").forEach(function(e){var t=e[0].toUpperCase()+e.slice(1),n="on"+t;n={phasedRegistrationNames:{bubbled:n,captured:n+"Capture"},dependencies:[t="top"+t]},$u[e]=n,Ju[t]=n});var Qu={eventTypes:$u,extractEvents:function(e,t,n,r){var o=Ju[e];if(!o)return null;switch(e){case"topAbort":case"topCancel":case"topCanPlay":case"topCanPlayThrough":case"topClose":case"topDurationChange":case"topEmptied":case"topEncrypted":case"topEnded":case"topError":case"topInput":case"topInvalid":case"topLoad":case"topLoadedData":case"topLoadedMetadata":case"topLoadStart":case"topPause":case"topPlay":case"topPlaying":case"topProgress":case"topRateChange":case"topReset":case"topSeeked":case"topSeeking":case"topStalled":case"topSubmit":case"topSuspend":case"topTimeUpdate":case"topToggle":case"topVolumeChange":case"topWaiting":var i=Us;break;case"topKeyPress":if(0===zu(n))return null;case"topKeyDown":case"topKeyUp":i=Vu;break;case"topBlur":case"topFocus":i=Wu;break;case"topClick":if(2===n.button)return null;case"topDoubleClick":case"topMouseDown":case"topMouseMove":case"topMouseUp":case"topMouseOut":case"topMouseOver":case"topContextMenu":i=Cu;break;case"topDrag":case"topDragEnd":case"topDragEnter":case"topDragExit":case"topDragLeave":case"topDragOver":case"topDragStart":case"topDrop":i=Yu;break;case"topTouchCancel":case"topTouchEnd":case"topTouchMove":case"topTouchStart":i=qu;break;case"topAnimationEnd":case"topAnimationIteration":case"topAnimationStart":i=Uu;break;case"topTransitionEnd":i=Ku;break;case"topScroll":i=Eu;break;case"topWheel":i=Zu;break;case"topCopy":case"topCut":case"topPaste":i=Hu}return i||p("86",e),e=i.getPooled(o,t,n,r),Ds.accumulateTwoPhaseDispatches(e),e}};tt.setHandleTopLevel(wt.handleTopLevel),ct.injection.injectEventPluginOrder("ResponderEventPlugin SimpleEventPlugin TapEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),Fe.injection.injectComponentTree(ie),ct.injection.injectEventPluginsByName({SimpleEventPlugin:Qu,EnterLeaveEventPlugin:Mu,ChangeEventPlugin:wu,SelectEventPlugin:Bu,BeforeInputEventPlugin:iu});var el=M.injection.MUST_USE_PROPERTY,tl=M.injection.HAS_BOOLEAN_VALUE,nl=M.injection.HAS_NUMERIC_VALUE,rl=M.injection.HAS_POSITIVE_NUMERIC_VALUE,ol=M.injection.HAS_STRING_BOOLEAN_VALUE,il={Properties:{allowFullScreen:tl,allowTransparency:ol,async:tl,autoPlay:tl,capture:tl,checked:el|tl,cols:rl,contentEditable:ol,controls:tl,default:tl,defer:tl,disabled:tl,download:M.injection.HAS_OVERLOADED_BOOLEAN_VALUE,draggable:ol,formNoValidate:tl,hidden:tl,loop:tl,multiple:el|tl,muted:el|tl,noValidate:tl,open:tl,playsInline:tl,readOnly:tl,required:tl,reversed:tl,rows:rl,rowSpan:nl,scoped:tl,seamless:tl,selected:el|tl,size:rl,start:nl,span:rl,spellCheck:ol,style:0,itemScope:tl,acceptCharset:0,className:0,htmlFor:0,httpEquiv:0,value:ol},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},DOMMutationMethods:{value:function(e,t){if(null==t)return e.removeAttribute("value");"number"!==e.type||!1===e.hasAttribute("value")?e.setAttribute("value",""+t):e.validity&&!e.validity.badInput&&e.ownerDocument.activeElement!==e&&e.setAttribute("value",""+t)}}},al=M.injection.HAS_STRING_BOOLEAN_VALUE,sl="http://www.w3.org/1999/xlink",ul="http://www.w3.org/XML/1998/namespace",ll={Properties:{autoReverse:al,externalResourcesRequired:al,preserveAlpha:al},DOMAttributeNames:{autoReverse:"autoReverse",externalResourcesRequired:"externalResourcesRequired",preserveAlpha:"preserveAlpha"},DOMAttributeNamespaces:{xlinkActuate:sl,xlinkArcrole:sl,xlinkHref:sl,xlinkRole:sl,xlinkShow:sl,xlinkTitle:sl,xlinkType:sl,xmlBase:ul,xmlLang:ul,xmlSpace:ul}},cl=/[\-\:]([a-z])/g;function dl(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode x-height xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type xml:base xmlns:xlink xml:lang xml:space".split(" ").forEach(function(e){var t=e.replace(cl,dl);ll.Properties[t]=0,ll.DOMAttributeNames[t]=e}),M.injection.injectDOMPropertyConfig(il),M.injection.injectDOMPropertyConfig(ll);var fl=ra,hl=H,pl=W,yl=z,vl=X,ml=G,gl=M.ROOT_ATTRIBUTE_NAME,bl=g,_l=_n.createElement,xl=_n.createTextNode,wl=_n.setInitialProperties,El=_n.diffProperties,Sl=_n.updateProperties,Tl=_n.diffHydratedProperties,Ol=_n.diffHydratedText,Cl=_n.warnForDeletedHydratableElement,Pl=_n.warnForDeletedHydratableText,Ml=_n.warnForInsertedHydratedElement,kl=_n.warnForInsertedHydratedText,Al=ie.precacheFiberNode,Rl=ie.updateFiberProps;ze.injection.injectFiberControlledHostComponent(_n),Es._injectFiber(function(e){return Nl.findHostInstance(e)});var Il=null,Dl=null;function jl(e){return!(!e||e.nodeType!==hl&&e.nodeType!==vl&&e.nodeType!==ml&&(e.nodeType!==yl||" react-mount-point-unstable "!==e.nodeValue))}var Nl=function(e){var t=e.getPublicInstance,n=(e=es(e)).scheduleUpdate,r=e.getPriorityContext;return{createContainer:function(e){var t=co();return e={current:t,containerInfo:e,isScheduled:!1,nextScheduledRoot:null,context:null,pendingContext:null},t.stateNode=e},updateContainer:function(e,t,o,i){var a=t.current;o=ns(o),null===t.context?t.context=o:t.pendingContext=o,t=i,i=r(a,In.enableAsyncSubtreeAPI&&null!=e&&null!=e.type&&null!=e.type.prototype&&!0===e.type.prototype.unstable_isAsyncReactComponent),rs(a,e={element:e},void 0===t?null:t,i),n(a,i)},batchedUpdates:e.batchedUpdates,unbatchedUpdates:e.unbatchedUpdates,deferredUpdates:e.deferredUpdates,flushSync:e.flushSync,getPublicRootInstance:function(e){if(!(e=e.current).child)return null;switch(e.child.tag){case ss:return t(e.child.stateNode);default:return e.child.stateNode}},findHostInstance:function(e){return null===(e=us(e))?null:e.stateNode},findHostInstanceWithNoPortals:function(e){return null===(e=ls(e))?null:e.stateNode}}}({getRootHostContext:function(e){if(e.nodeType===vl)e=(e=e.documentElement)?e.namespaceURI:bl(null,"");else{var t=e.nodeType===yl?e.parentNode:e;e=t.namespaceURI||null,t=t.tagName,e=bl(e,t)}return e},getChildHostContext:function(e,t){return bl(e,t)},getPublicInstance:function(e){return e},prepareForCommit:function(){Il=wt.isEnabled(),Dl=bs.getSelectionInformation(),wt.setEnabled(!1)},resetAfterCommit:function(){bs.restoreSelection(Dl),Dl=null,wt.setEnabled(Il),Il=null},createInstance:function(e,t,n,r,o){return e=_l(e,t,n,r),Al(o,e),Rl(e,t),e},appendInitialChild:function(e,t){e.appendChild(t)},finalizeInitialChildren:function(e,t,n,r){wl(e,t,n,r);e:{switch(t){case"button":case"input":case"select":case"textarea":e=!!n.autoFocus;break e}e=!1}return e},prepareUpdate:function(e,t,n,r,o){return El(e,t,n,r,o)},commitMount:function(e){e.focus()},commitUpdate:function(e,t,n,r,o){Rl(e,o),Sl(e,t,n,r,o)},shouldSetTextContent:function(e,t){return"textarea"===e||"string"==typeof t.children||"number"==typeof t.children||"object"===r(t.dangerouslySetInnerHTML)&&null!==t.dangerouslySetInnerHTML&&"string"==typeof t.dangerouslySetInnerHTML.__html},resetTextContent:function(e){e.textContent=""},shouldDeprioritizeSubtree:function(e,t){return!!t.hidden},createTextInstance:function(e,t,n,r){return e=xl(e,t),Al(r,e),e},commitTextUpdate:function(e,t,n){e.nodeValue=n},appendChild:function(e,t){e.appendChild(t)},appendChildToContainer:function(e,t){e.nodeType===yl?e.parentNode.insertBefore(t,e):e.appendChild(t)},insertBefore:function(e,t,n){e.insertBefore(t,n)},insertInContainerBefore:function(e,t,n){e.nodeType===yl?e.parentNode.insertBefore(t,n):e.insertBefore(t,n)},removeChild:function(e,t){e.removeChild(t)},removeChildFromContainer:function(e,t){e.nodeType===yl?e.parentNode.removeChild(t):e.removeChild(t)},canHydrateInstance:function(e,t){return e.nodeType===hl&&t===e.nodeName.toLowerCase()},canHydrateTextInstance:function(e,t){return""!==t&&e.nodeType===pl},getNextHydratableSibling:function(e){for(e=e.nextSibling;e&&e.nodeType!==hl&&e.nodeType!==pl;)e=e.nextSibling;return e},getFirstHydratableChild:function(e){for(e=e.firstChild;e&&e.nodeType!==hl&&e.nodeType!==pl;)e=e.nextSibling;return e},hydrateInstance:function(e,t,n,r,o,i){return Al(i,e),Rl(e,n),Tl(e,t,n,o,r)},hydrateTextInstance:function(e,t,n){return Al(n,e),Ol(e,t)},didNotHydrateInstance:function(e,t){1===t.nodeType?Cl(e,t):Pl(e,t)},didNotFindHydratableInstance:function(e,t,n){Ml(e,t,n)},didNotFindHydratableTextInstance:function(e,t){kl(e,t)},scheduleDeferredCallback:Rn.rIC,useSyncScheduling:!0});function Ll(e,t,n,r,o){jl(n)||p("200");var i=n._reactRootContainer;if(i)Nl.updateContainer(t,i,e,o);else{if(!r&&!function(e){return!(!(e=e?e.nodeType===vl?e.documentElement:e.firstChild:null)||e.nodeType!==hl||!e.hasAttribute(gl))}(n))for(r=void 0;r=n.lastChild;)n.removeChild(r);var a=Nl.createContainer(n);i=n._reactRootContainer=a,Nl.unbatchedUpdates(function(){Nl.updateContainer(t,a,e,o)})}return Nl.getPublicRootInstance(i)}function Fl(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;return jl(t)||p("200"),go.createPortal(e,t,null,n)}qe.injection.injectFiberBatchedUpdates(Nl.batchedUpdates);var Bl={createPortal:Fl,hydrate:function(e,t,n){return Ll(null,e,t,!0,n)},render:function(e,t,n){return Ll(null,e,t,!1,n)},unstable_renderSubtreeIntoContainer:function(e,t,n,r){return null!=e&&ae.has(e)||p("38"),Ll(e,t,n,!1,r)},unmountComponentAtNode:function(e){return jl(e)||p("40"),!!e._reactRootContainer&&(Nl.unbatchedUpdates(function(){Ll(null,null,e,!1,function(){e._reactRootContainer=null})}),!0)},findDOMNode:Es,unstable_createPortal:Fl,unstable_batchedUpdates:qe.batchedUpdates,unstable_deferredUpdates:Nl.deferredUpdates,flushSync:Nl.flushSync,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{EventPluginHub:ct,EventPluginRegistry:S,EventPropagators:Ds,ReactControlledComponent:ze,ReactDOMComponentTree:ie,ReactDOMEventListener:tt}};fl({findFiberByHostInstance:ie.getClosestInstanceFromNode,findHostInstanceByFiber:Nl.findHostInstance,bundleType:0,version:"16.0.0",rendererPackageName:"react-dom"}),e.exports=Bl},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=n(80),i=n(184);n(79);var a=n(48);function s(e){for(var t=arguments.length-1,n="Minified React error #"+e+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+e,r=0;r<t;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);throw(t=Error(n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.")).name="Invariant Violation",t.framesToPop=1,t}var u={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}};function l(e,t,n){this.props=e,this.context=t,this.refs=i,this.updater=n||u}function c(e,t,n){this.props=e,this.context=t,this.refs=i,this.updater=n||u}function d(){}l.prototype.isReactComponent={},l.prototype.setState=function(e,t){"object"!==(void 0===e?"undefined":r(e))&&"function"!=typeof e&&null!=e&&s("85"),this.updater.enqueueSetState(this,e,t,"setState")},l.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},d.prototype=l.prototype;var f=c.prototype=new d;function h(e,t,n){this.props=e,this.context=t,this.refs=i,this.updater=n||u}f.constructor=c,o(f,l.prototype),f.isPureReactComponent=!0;var p=h.prototype=new d;p.constructor=h,o(p,l.prototype),p.unstable_isAsyncReactComponent=!0,p.render=function(){return this.props.children};var y={Component:l,PureComponent:c,AsyncComponent:h},v={current:null},m=Object.prototype.hasOwnProperty,g="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,b={key:!0,ref:!0,__self:!0,__source:!0};function _(e,t,n,r,o,i,a){return{$$typeof:g,type:e,key:t,ref:n,props:a,_owner:i}}_.createElement=function(e,t,n){var r,o={},i=null,a=null;if(null!=t)for(r in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(i=""+t.key),void 0===t.__self?null:t.__self,void 0===t.__source?null:t.__source,t)m.call(t,r)&&!b.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(1===s)o.children=n;else if(1<s){for(var u=Array(s),l=0;l<s;l++)u[l]=arguments[l+2];o.children=u}if(e&&e.defaultProps)for(r in s=e.defaultProps)void 0===o[r]&&(o[r]=s[r]);return _(e,i,a,0,0,v.current,o)},_.createFactory=function(e){var t=_.createElement.bind(null,e);return t.type=e,t},_.cloneAndReplaceKey=function(e,t){return _(e.type,t,e.ref,e._self,e._source,e._owner,e.props)},_.cloneElement=function(e,t,n){var r=o({},e.props),i=e.key,a=e.ref,s=(e._self,e._source,e._owner);if(null!=t){if(void 0!==t.ref&&(a=t.ref,s=v.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(l in t)m.call(t,l)&&!b.hasOwnProperty(l)&&(r[l]=void 0===t[l]&&void 0!==u?u[l]:t[l])}var l=arguments.length-2;if(1===l)r.children=n;else if(1<l){u=Array(l);for(var c=0;c<l;c++)u[c]=arguments[c+2];r.children=u}return _(e.type,i,a,0,0,s,r)},_.isValidElement=function(e){return"object"===(void 0===e?"undefined":r(e))&&null!==e&&e.$$typeof===g};var x="function"==typeof Symbol&&Symbol.iterator,w="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;var E=/\/+/g,S=[];function T(e,t,n,r){if(S.length){var o=S.pop();return o.result=e,o.keyPrefix=t,o.func=n,o.context=r,o.count=0,o}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function O(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>S.length&&S.push(e)}function C(e,t,n,o){var i=void 0===e?"undefined":r(e);if("undefined"!==i&&"boolean"!==i||(e=null),null===e||"string"===i||"number"===i||"object"===i&&e.$$typeof===w)return n(o,e,""===t?"."+P(e,0):t),1;var a=0;if(t=""===t?".":t+":",Array.isArray(e))for(var u=0;u<e.length;u++){var l=t+P(i=e[u],u);a+=C(i,l,n,o)}else if("function"==typeof(l=x&&e[x]||e["@@iterator"]))for(e=l.call(e),u=0;!(i=e.next()).done;)a+=C(i=i.value,l=t+P(i,u++),n,o);else"object"===i&&s("31","[object Object]"===(n=""+e)?"object with keys {"+Object.keys(e).join(", ")+"}":n,"");return a}function P(e,t){return"object"===(void 0===e?"undefined":r(e))&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,function(e){return t[e]})}(e.key):t.toString(36)}function M(e,t){e.func.call(e.context,t,e.count++)}function k(e,t,n){var r=e.result,o=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?A(e,r,n,a.thatReturnsArgument):null!=e&&(_.isValidElement(e)&&(e=_.cloneAndReplaceKey(e,o+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(E,"$&/")+"/")+n)),r.push(e))}function A(e,t,n,r,o){var i="";null!=n&&(i=(""+n).replace(E,"$&/")+"/"),t=T(t,i,r,o),null==e||C(e,"",k,t),O(t)}var R={forEach:function(e,t,n){if(null==e)return e;t=T(null,null,t,n),null==e||C(e,"",M,t),O(t)},map:function(e,t,n){if(null==e)return e;var r=[];return A(e,r,null,t,n),r},count:function(e){return null==e?0:C(e,"",a.thatReturnsNull,null)},toArray:function(e){var t=[];return A(e,t,null,a.thatReturnsArgument),t}};e.exports={Children:{map:R.map,forEach:R.forEach,count:R.count,toArray:R.toArray,only:function(e){return _.isValidElement(e)||s("143"),e}},Component:y.Component,PureComponent:y.PureComponent,unstable_AsyncComponent:y.AsyncComponent,createElement:_.createElement,cloneElement:_.cloneElement,isValidElement:_.isValidElement,createFactory:_.createFactory,version:"16.0.0",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:v,assign:o}}},function(e,t,n){"use strict";e.exports=function(e){var t="undefined"!=typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!e||"string"!=typeof e)return e;var n=t.protocol+"//"+t.host,r=n+t.pathname.replace(/\/[^\/]*$/,"/");return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(e,t){var o,i=t.trim().replace(/^"(.*)"$/,function(e,t){return t}).replace(/^'(.*)'$/,function(e,t){return t});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(i)?e:(o=0===i.indexOf("//")?i:0===i.indexOf("/")?n+i:r+i.replace(/^\.\//,""),"url("+JSON.stringify(o)+")")})}},function(e,t,n){var r,o,i={},a=(r=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===o&&(o=r.apply(this,arguments)),o}),s=function(e){var t={};return function(e){if("function"==typeof e)return e();if(void 0===t[e]){var n=function(e){return document.querySelector(e)}.call(this,e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}}(),u=null,l=0,c=[],d=n(506);function f(e,t){for(var n=0;n<e.length;n++){var r=e[n],o=i[r.id];if(o){o.refs++;for(var a=0;a<o.parts.length;a++)o.parts[a](r.parts[a]);for(;a<r.parts.length;a++)o.parts.push(g(r.parts[a],t))}else{var s=[];for(a=0;a<r.parts.length;a++)s.push(g(r.parts[a],t));i[r.id]={id:r.id,refs:1,parts:s}}}}function h(e,t){for(var n=[],r={},o=0;o<e.length;o++){var i=e[o],a=t.base?i[0]+t.base:i[0],s={css:i[1],media:i[2],sourceMap:i[3]};r[a]?r[a].parts.push(s):n.push(r[a]={id:a,parts:[s]})}return n}function p(e,t){var n=s(e.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var r=c[c.length-1];if("top"===e.insertAt)r?r.nextSibling?n.insertBefore(t,r.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),c.push(t);else if("bottom"===e.insertAt)n.appendChild(t);else{if("object"!=typeof e.insertAt||!e.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var o=s(e.insertInto+" "+e.insertAt.before);n.insertBefore(t,o)}}function y(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e);var t=c.indexOf(e);t>=0&&c.splice(t,1)}function v(e){var t=document.createElement("style");return void 0===e.attrs.type&&(e.attrs.type="text/css"),m(t,e.attrs),p(e,t),t}function m(e,t){Object.keys(t).forEach(function(n){e.setAttribute(n,t[n])})}function g(e,t){var n,r,o,i;if(t.transform&&e.css){if(!(i=t.transform(e.css)))return function(){};e.css=i}if(t.singleton){var a=l++;n=u||(u=v(t)),r=x.bind(null,n,a,!1),o=x.bind(null,n,a,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(e){var t=document.createElement("link");return void 0===e.attrs.type&&(e.attrs.type="text/css"),e.attrs.rel="stylesheet",m(t,e.attrs),p(e,t),t}(t),r=function(e,t,n){var r=n.css,o=n.sourceMap,i=void 0===t.convertToAbsoluteUrls&&o;(t.convertToAbsoluteUrls||i)&&(r=d(r));o&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */");var a=new Blob([r],{type:"text/css"}),s=e.href;e.href=URL.createObjectURL(a),s&&URL.revokeObjectURL(s)}.bind(null,n,t),o=function(){y(n),n.href&&URL.revokeObjectURL(n.href)}):(n=v(t),r=function(e,t){var n=t.css,r=t.media;r&&e.setAttribute("media",r);if(e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}.bind(null,n),o=function(){y(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=a()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=h(e,t);return f(n,t),function(e){for(var r=[],o=0;o<n.length;o++){var a=n[o];(s=i[a.id]).refs--,r.push(s)}e&&f(h(e,t),t);for(o=0;o<r.length;o++){var s;if(0===(s=r[o]).refs){for(var u=0;u<s.parts.length;u++)s.parts[u]();delete i[s.id]}}}};var b,_=(b=[],function(e,t){return b[e]=t,b.filter(Boolean).join("\n")});function x(e,t,n,r){var o=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=_(t,o);else{var i=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}},function(e,t,n){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var o=(a=r,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */"),i=r.sources.map(function(e){return"/*# sourceURL="+r.sourceRoot+e+" */"});return[n].concat(i).concat([o]).join("\n")}var a;return[n].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n}).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},o=0;o<this.length;o++){var i=this[o][0];"number"==typeof i&&(r[i]=!0)}for(o=0;o<e.length;o++){var a=e[o];"number"==typeof a[0]&&r[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),t.push(a))}},t}},function(e,t,n){(e.exports=n(508)(!1)).push([e.i,'a,abbr,acronym,address,applet,article,aside,audio,b,big,blockquote,body,canvas,caption,center,cite,code,dd,del,details,dfn,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,i,iframe,img,ins,kbd,label,legend,li,mark,menu,nav,object,ol,output,p,pre,q,ruby,s,samp,section,small,span,strike,strong,sub,summary,sup,table,tbody,td,tfoot,th,thead,time,tr,tt,u,ul,var,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:after,blockquote:before,q:after,q:before{content:"";content:none}table{border-collapse:collapse;border-spacing:0}@font-face{font-family:Open Sans;src:url("src/font/OpenSans-Regular-webfont.woff") format("woff");font-weight:400;font-style:normal}@font-face{font-family:Open Sans;src:url("src/font/OpenSans-Bold-webfont.woff") format("woff");font-weight:700;font-style:normal}@font-face{font-family:Open Sans;src:url("src/font/OpenSans-Italic-webfont.woff") format("woff");font-weight:400;font-style:italic}@font-face{font-family:Open Sans;src:url("src/font/OpenSans-BoldItalic-webfont.woff") format("woff");font-weight:700;font-style:italic}::-webkit-scrollbar{width:6px;background-color:transparent;border-radius:100px;opacity:.2;transition:background-color .3s ease,opacity .5s ease}::-webkit-scrollbar:hover{background-color:rgba(0,0,0,.09);opacity:1}::-webkit-scrollbar-thumb:vertical{background-color:rgba(0,0,0,.5);border-radius:100px;opacity:.2;transition:background-color .3s ease,opacity .5s ease}::-webkit-scrollbar-thumb:vertical:active{background-color:rgba(0,0,0,.61);border-radius:100px;opacity:1}.disabled{opacity:.4}.disabled .disabled:hover{cursor:not-allowed!important}.command-panel .bottom .left,.command-panel .bottom .right,.command-panel .command,.command-panel .command .icon-wrapper,.command-panel .command .text,.date,.noselect,.user-panel .login-panel-main .bottom .left,.user-panel .login-panel-main .login-form .submit-row .left .dropdown,.user-panel .login-panel-main .login-form .user-password::-webkit-input-placeholder,.user-panel .login-panel-main .login-form .user-username,.user-panel .login-panel-switcher .bottom .left{-webkit-user-select:none}.hidden{display:none!important}.invisible{visibility:hidden!important}@keyframes drop-in-notifications{0%{top:-200px}to{top:0}}@keyframes drop-in-options{0%{top:-100px;opacity:0}to{top:0;opacity:1}}@keyframes error-shake{0%{transform:translateX(0) scale(1)}11%{transform:translateX(-10px) scale(1.05)}22%{transform:translateX(10px) scale(1.05)}33%{transform:translateX(-10px) scale(1.05)}44%{transform:translateX(10px) scale(1.05)}55%{transform:translateX(-10px) scale(1.05)}66%{transform:translateX(10px) scale(1.05)}77%{transform:translateX(10px) scale(1.05)}88%{transform:translateX(10px) scale(1)}to{transform:translateX(0)}}@keyframes login-fade-out{0%{opacity:1;transform:translateY(0)}90%{transform:translateY(10px)}to{opacity:0}}@keyframes login-fade-in{0%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}@keyframes switcher-fade-in{0%{opacity:0;transform:translateY(5px) scale(.95)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes switcher-fade-out{0%{opacity:1;transform:translateY(0) scale(1)}to{opacity:0;transform:translateY(-10px) scale(.95)}}@keyframes wallpaper-fade-out{0%{opacity:1}to{opacity:0}}@keyframes window-fade-in{0%{opacity:0;transform:scale(.7)}to{opacity:1;transform:scale(1)}}html{box-sizing:border-box}*,:after,:before{box-sizing:inherit}body{background:#222;font-family:Open Sans;overflow:hidden;height:100vh;width:100vw;text-rendering:optimizeLegibility!important;-webkit-font-smoothing:antialiased!important;-moz-osx-font-smoothing:grayscale!important}.date{color:#fff;opacity:0;font-size:.75em;font-style:italic;text-align:right;letter-spacing:1px;position:absolute;top:50%;left:50%;margin:265px 0 0 -425px;width:850px;transition:all 1s}.date.loaded{opacity:1}.date em{font-weight:700}.notifications-container{position:absolute;top:10px;overflow:hidden;width:100%}.notifications-container .notification{color:#2f0909;background:rgba(252,237,238,.75);border:1px solid hsla(0,0%,100%,.15);position:relative;top:-200px;padding:15px;margin:0 auto 25px;width:80vw;z-index:3;animation:drop-in-notifications .5s forwards;border-radius:2px;transition:opacity .5s}.notifications-container .notification.error{color:#fff;background:rgba(180,30,30,.65)}.notifications-container .notification.success{background:rgba(120,255,64,.65)}.notifications-container .notification.fadeout{opacity:0}.wallpaper-background,.wallpaper-foreground{background-size:cover;overflow:hidden;position:fixed;height:100vh;width:100vw;z-index:-1}.wallpaper-foreground{opacity:1}.wallpaper-foreground.fadeout{animation:wallpaper-fade-out .6s forwards;animation-timing-function:ease-out}.cycler-preloader{display:none}.login-window-container{position:relative;overflow:hidden;height:100vh;width:100vw}.login-window{display:flex}.login-window .command-panel{display:flex;flex-direction:column;width:30%}.login-window .user-panel{border-style:solid;border-bottom:none;border-width:1px;height:100%;width:70%}.login-window{overflow:hidden;opacity:0;position:absolute;top:50%;left:50%;margin:-250px 0 0 -425px;height:500px;width:850px;border-radius:4px;transform:scale(.7);animation:window-fade-in .5s forwards;animation-delay:.2s;animation-timing-function:ease-out}.command-panel,.user-panel{padding:15px 35px}.user-panel .login-panel-main{display:flex;flex-direction:column}.user-panel .login-panel-main .avatar-container.hidden+.login-form{display:flex;flex-direction:column;justify-content:center;height:95%}.user-panel{color:#fff;border-bottom:none}.user-panel>div{height:100%}.user-panel .login-panel-main{position:relative;z-index:2;height:100%}.user-panel .login-panel-main.fadeout{animation:login-fade-out .5s ease forwards;z-index:1}.user-panel .login-panel-main.fadein{animation:login-fade-in .2s ease-out forwards}.user-panel .login-panel-main .avatar-container{height:50%;padding-top:20px;padding-bottom:75px}.user-panel .login-panel-main .avatar-container .avatar-background{background:url("src/img/avatar-background.png") no-repeat 50%;margin:0 auto;height:155px;width:154px;transform:translateX(-10px);transition:all 1s}.user-panel .login-panel-main .avatar-container .avatar-background.avatar-background-hidden{background:transparent}.user-panel .login-panel-main .avatar-container .avatar-mask{border-radius:100%;overflow:hidden;height:125px;width:125px;transform:translate(20px,15px)}.user-panel .login-panel-main .avatar-container .user-avatar{margin:0 auto;height:125px;width:125px}.user-panel .login-panel-main .login-form{height:45%;display:block}.user-panel .login-panel-main .login-form .user-username{text-align:center;text-transform:capitalize;font-size:2.66em;font-style:italic;font-weight:700}.user-panel .login-panel-main .login-form .user-password-container{margin:15px auto;width:200px}.user-panel .login-panel-main .login-form .user-password{color:#fff;background:none;outline:none;border:none;border-bottom:2px solid rgba(0,0,0,.06);font-size:14pt;font-weight:700;letter-spacing:2px;padding-left:.5em;padding-right:.5em;width:100%;transition:opacity 1s,border-bottom .15s ease}.user-panel .login-panel-main .login-form .user-password:active,.user-panel .login-panel-main .login-form .user-password:focus{border-bottom:2px solid hsla(0,0%,100%,.8)}.user-panel .login-panel-main .login-form .user-password::-webkit-input-placeholder{color:hsla(0,0%,100%,.4)}.user-panel .login-panel-main .login-form .user-password.error{animation:error-shake .6s forwards}.user-panel .login-panel-main .login-form .user-password.error,.user-panel .login-panel-main .login-form .user-password.error:active,.user-panel .login-panel-main .login-form .user-password.error:focus{border-bottom:2px solid rgba(175,3,3,.6)}.user-panel .login-panel-main .login-form .user-password.error::-webkit-input-placeholder{color:#af0303}.user-panel .login-panel-main .login-form .submit-row{margin:0 auto;width:200px;position:absolute;left:162.5px}.user-panel .login-panel-main .login-form .submit-row .left,.user-panel .login-panel-main .login-form .submit-row .right{display:inline-block;float:left}.user-panel .login-panel-main .login-form .submit-row .left{width:80%}.user-panel .login-panel-main .login-form .submit-row .left .dropdown{font-size:.75em;width:95%}.user-panel .login-panel-main .login-form .submit-row .left .dropdown:hover{cursor:pointer}.user-panel .login-panel-main .login-form .submit-row .right{width:20%}.user-panel .login-panel-main .login-form .submit-row .right .submit-button{box-shadow:0 2px 3px rgba(0,0,0,.05)}.user-panel .login-panel-main .login-form .submit-row .right .submit-button:hover{cursor:pointer}.user-panel .login-panel-main .login-form .submit-row .right .submit-button:hover polygon{transform:scale(1.1) translateX(2px)}.user-panel .login-panel-main .login-form .submit-row .right .submit-button>div{position:relative;left:8px}.user-panel .login-panel-main .login-form .submit-row .right .submit-button input[type=submit]{display:none}.user-panel .login-panel-main .login-form .submit-row .right .submit-button svg{background-color:currentColor;height:30px;filter:drop-shadow(0 2px 1px rgba(0,0,0,.1));border-radius:4px}.user-panel .login-panel-main .login-form .submit-row .right .submit-button svg circle{r:0}.user-panel .login-panel-main .login-form .submit-row .right .submit-button svg polygon{stroke:rgba(42,19,15,.05);stroke-width:1px;transform:scale(1) translateX(0);transform-origin:center;transition:all .2s cubic-bezier(.64,.15,.18,.52)}.user-panel .login-panel-main .login-form .submit-row-container{position:relative}.user-panel .login-panel-main .login-form .left .dropdown .dropdown-item{color:#525252;display:none;padding:8px 10px;transition:background-position-y .2s ease}.user-panel .login-panel-main .login-form .left .dropdown .dropdown-item:not(.active):hover{background:#fff}.user-panel .login-panel-main .login-form .left .dropdown .dropdown-item:not(.active){background:hsla(0,0%,100%,.9)}.user-panel .login-panel-main .login-form .left .dropdown .dropdown-item.active{color:#fff;display:block;background-image:url("src/img/dropdown-caret.png");background-repeat:no-repeat;background-position:90% 50%;position:relative;font-family:Open Sans;font-weight:700;font-style:italic;line-height:1.2em;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;padding-right:30px;border-radius:2px;box-shadow:0 2px 3px rgba(0,0,0,.05);text-shadow:1px 1px 1px rgba(0,0,0,.12)}.user-panel .login-panel-main .login-form .left .dropdown.active .dropdown-item{display:block}.user-panel .login-panel-main .login-form .left .dropdown.active .dropdown-item.active{background-position:90% 65%}.user-panel .login-panel-switcher{display:block;opacity:0;position:relative;top:-100%;z-index:1;height:100%}.user-panel .login-panel-switcher.active{animation:.2s switcher-fade-in ease-out forwards;animation-delay:.15s;z-index:2}.user-panel .login-panel-switcher.fadeout{animation:.2s switcher-fade-out ease-out forwards}.user-panel .login-panel-switcher ul{list-style-type:none;transform-style:preserve-3d;padding-top:100px;height:95%}.user-panel .login-panel-switcher li{display:inline-block;padding-top:25px;width:33.33%;transition:-webkit-filter .2s,opacity .3s}.user-panel .login-panel-switcher li .avatar-background{background:url("src/img/avatar-background.png") no-repeat 50%;margin:0 auto;height:155px;width:154px;transform:translateX(-10px);transition:all 1s}.user-panel .login-panel-switcher li .avatar-background.avatar-background-hidden{background:transparent}.user-panel .login-panel-switcher li .avatar-mask{border-radius:100%;overflow:hidden;height:125px;width:125px;transform:translate(20px,15px)}.user-panel .login-panel-switcher li .avatar-name{text-align:center}.user-panel .login-panel-switcher li .avatar-name .username{font-size:16pt;font-weight:700}.user-panel .login-panel-switcher li .avatar-name .real-name{font-size:12pt;font-style:italic}.user-panel .login-panel-switcher li .user-avatar{margin:0 auto;height:125px;width:125px}.user-panel .login-panel-switcher li:not(.active){display:none;-webkit-filter:blur(1px)}.user-panel .login-panel-switcher li:not(.active):hover{cursor:pointer;opacity:.9;-webkit-filter:blur(.5px)}.user-panel .login-panel-switcher li.active{transform:translateZ(10px)}.user-panel .login-panel-switcher li.next,.user-panel .login-panel-switcher li.previous{display:inline-block;opacity:.8}.user-panel .login-panel-switcher li.previous{transform:translate3d(50px,0,-10px) scale(.9)}.user-panel .login-panel-switcher li.next{transform:translate3d(-50px,0,-10px) scale(.9)}.user-panel .login-panel-switcher .header{font-size:11pt;font-style:italic;text-align:center;letter-spacing:1px;position:absolute;height:5%;width:100%}.user-panel .login-panel-switcher .header em{font-weight:700}.user-panel .login-panel-main .bottom,.user-panel .login-panel-switcher .bottom{padding-top:15px;height:5%}.user-panel .login-panel-main .bottom .left,.user-panel .login-panel-switcher .bottom .left{color:#fff;float:left;font-size:.75em;letter-spacing:1px;font-weight:700;width:30%}.user-panel .login-panel-main .bottom .left:hover,.user-panel .login-panel-switcher .bottom .left:hover{cursor:pointer}.command-panel{color:#fff;height:100%}.command-panel .distro-logo{background:url("src/img/logos/archlinux.png") no-repeat 50%;margin:0 auto;height:125px;width:125px;transition:opacity .4s}.command-panel .distro-logo:hover{cursor:pointer}.command-panel .distro-logo:active{opacity:.8}.command-panel .distro-wrapper{padding-top:35px;height:52%}.command-panel .distro-wrapper .options{position:relative;top:-100px;opacity:0}.command-panel .distro-wrapper .options.active{animation:drop-in-options .2s forwards;animation-timing-function:ease-out}.command-panel .distro-wrapper .options .button-accept,.command-panel .distro-wrapper .options .button-reject{background:rgba(0,0,0,.2);position:relative;opacity:.4;text-align:center;margin-top:10px;padding:7px 8px;height:30px;width:30px;border-radius:100%}.command-panel .distro-wrapper .options .button-accept:hover,.command-panel .distro-wrapper .options .button-reject:hover{cursor:pointer;opacity:1}.command-panel .distro-wrapper .options .button-accept{float:right;left:-15%}.command-panel .distro-wrapper .options .button-accept:hover{background:#6e9200}.command-panel .distro-wrapper .options .button-reject{float:left;left:15%}.command-panel .distro-wrapper .options .button-reject:hover{background:#b93300}.command-panel .distro-wrapper .options-wrapper{overflow:hidden;height:45px;width:100%}.command-panel .command{display:flex;margin-bottom:25px;transition:all .5s}.command-panel .command:hover{cursor:pointer;opacity:.6}.command-panel .commands-wrapper{height:43%}.command-panel .command .icon-wrapper,.command-panel .command .text{display:inline-block}.command-panel .command .icon-wrapper{margin-right:10px;width:30px}.command-panel .command .icon-wrapper svg{height:20px;width:30px}.command-panel .command .icon-wrapper svg>*{fill:currentColor}.command-panel .command .text{font-size:1.33em;letter-spacing:2px;text-transform:uppercase;vertical-align:2px;width:100%}.command-panel .bottom{height:5%;padding-top:15px}.command-panel .bottom .left,.command-panel .bottom .right{float:left;font-size:.75em;font-weight:700;letter-spacing:1px}.command-panel .bottom .left{color:hsla(0,0%,100%,.65);overflow:hidden;text-overflow:ellipsis;text-transform:uppercase;white-space:nowrap;width:70%}.command-panel .bottom .right{text-align:right;opacity:0;width:30%;transition:opacity 1s}.command-panel .bottom .clock.loaded{opacity:1}.settings{display:flex;position:absolute;width:600px;opacity:1}.settings>div{display:flex;flex-wrap:wrap;width:100%}.settings .settings-categories{width:17%}.settings .settings-section{display:flex;flex-direction:column;width:83%}.settings .settings-section .save-dialogue{display:flex;justify-content:flex-end}.settings .settings-categories ul li{color:#9c9c9c;background:#e0e0e0;font-weight:700;font-variant:small-caps;padding:15px 25px;transition:color .3s ease,background-color .3s ease}.settings .settings-categories ul li:hover{cursor:pointer;color:#4d4d4d;background:#e8e8e8}.settings .settings-categories ul li.active,.settings .settings-categories ul li.active:hover{color:#4d4d4d;background:#fafafa}.settings .settings-handle{background:#222;height:25px;width:100%}.settings .settings-handle:hover{cursor:-webkit-grab}.settings .settings-handle:active,.settings .settings-handle:active:hover{cursor:-webkit-grabbing!important}.settings .settings-handle ul{display:flex;justify-content:flex-end;overflow:hidden;height:100%;width:100%}.settings .settings-handle ul li{color:#000;font-weight:700;padding:5px 15px;height:100%}.settings .settings-handle ul li:hover{cursor:pointer}.settings .settings-handle ul li.settings-minimize{color:#fff;background:#424242}.settings .settings-handle ul li.settings-close{background:#de3838}.settings .settings-section{background:#fafafa}.settings .settings-section ul h4{font-weight:700}.settings .settings-section ul hr{background:#ececec;color:#ececec;border:1px solid #ececec}.settings .settings-section ul li{list-style-type:none;margin-bottom:10px}.settings .settings-section ul li+h4{margin-top:35px}.settings .settings-section ul li input[type=checkbox]{position:absolute;left:-9999px}.settings .settings-section ul li input[type=text]{display:inline-block;padding:5px;margin-top:15px;margin-left:15px;width:50%;border:1px solid #e0e0e0}.settings .settings-section ul li label:hover{cursor:pointer}.settings .settings-section ul li input[type=checkbox]+label .fake-checkbox{color:#4e1d1d;display:inline-block;background:#f2d9d9;font-weight:700;padding:10px;margin-left:10px;position:relative;top:5px;height:15px;width:15px;border:1px solid #e8e8e8;border-radius:4px}.settings .settings-section ul li input[type=checkbox]+label .fake-checkbox:hover{cursor:pointer}.settings .settings-section ul li input[type=checkbox]:checked+label .fake-checkbox{color:#2d4e1d;background:#e1f2d9}.settings .settings-section ul li input[type=checkbox]+label .fake-checkbox:after{display:inline-block;content:"\\D7";font-size:1.4em;position:absolute;top:-.05rem;left:.25rem}.settings .settings-section ul li input[type=checkbox]:checked+label .fake-checkbox:after{display:inline-block;content:"\\2714";font-size:1em;position:absolute;top:.1rem;left:.2rem}.settings .settings-section label+select{margin-left:10px;width:50%}.settings .settings-section select{padding:5px}.settings-section .save-dialogue{background:#f3f3f3;border-top:1px solid #eee;padding:10px 15px}.settings-section .save-dialogue button{outline:none;border:none;padding:5px 8px 8px;margin-left:10px;border-radius:2px}.settings-section .save-dialogue button:hover{cursor:pointer}.settings-section .save-dialogue button.settings-reject{color:#581212;background:#f35e5e}.settings-section .save-dialogue button.settings-save{color:#145a07;background:#84ff93}.settings-toggler{color:#222;background:#fff;opacity:0;font-weight:700;font-size:4em;text-align:center;position:fixed;bottom:25px;left:25px;padding-top:8px;height:85px;width:85px;border-radius:100px;user-select:none;transition:opacity .3s ease}.settings-toggler:hover{cursor:pointer;opacity:1}.settings-general{display:flex;padding:25px}.settings-general .left{padding:15px;width:40%}.settings-general .right{padding:15px;width:60%}.settings-general .left{border-right:2px solid #eee}.settings-general .left h6{font-size:.8em;font-weight:700;margin-top:30px}.settings-general .left li{list-style-type:none}.settings-general .left select{margin:15px 0 0;padding:5px;width:100%}.settings-general .left select:hover,.settings-general .left select option:hover{cursor:pointer}.settings-general .left .preview-logo img{display:block;margin:0 auto}.settings-general .right{height:400px;overflow-y:scroll}.settings-style{display:flex;padding:25px}.settings-style .left,.settings-style .right{padding:25px;width:100%}.settings-style .right .color-group{display:flex;flex-wrap:wrap;justify-content:space-between}.settings-style .right .swatch-container{display:flex;justify-content:space-between;width:100%}.settings-style .right .swatch-container .swatch{display:flex;flex-wrap:wrap}.settings-style .right .swatch-container .swatch .swatch-bg{flex-grow:1}.settings-style .left{border-right:2px solid #eee}.settings-style .left li{display:flex;align-items:center}.settings-style .left li label{flex-grow:2;width:100%}.settings-style .left ul li input[type=text]{flex-shrink:2;margin-top:0}.settings-style .right .color-group .settings-color:last-of-type{margin-bottom:35px}.settings-style .right .settings-item.settings-color{margin-top:15px;width:48%}.settings-style .right .settings-item.settings-color label{display:block;overflow:hidden;font-size:.8em;text-transform:uppercase;text-overflow:ellipsis;white-space:nowrap;width:100%}.settings-style .right .settings-item.settings-color .swatch-container{position:relative;margin-top:10px}.settings-style .right .settings-item.settings-color .swatch-container input[type=text]{display:inline-block;margin-left:0;margin-top:0;width:46%}.settings-style .right .settings-item.settings-color .swatch-container .swatch{border:5px solid #fff;height:35px;width:100%;box-shadow:1px 1px 3px rgba(0,0,0,.15);transition:box-shadow 1s ease}.settings-style .right .settings-item.settings-color .swatch-container .swatch:hover{cursor:pointer;box-shadow:1px 1px 3px rgba(0,0,0,.35)}.settings-style .right .settings-item.settings-color .swatch-container .swatch .swatch-bg{flex-grow:1;position:relative;top:-12.5px;height:12.5px;width:1%;z-index:1}.settings-style .right .settings-item.settings-color .swatch-container .swatch .swatch-bg-black{background:#000}.settings-style .right .settings-item.settings-color .swatch-container .swatch .swatch-bg-white{background:#fff}.settings-style .right .settings-item.settings-color .swatch-container .swatch .swatch-bg-gray{background:gray}.settings-style .right .settings-item.settings-color .swatch-container .swatch .swatch-fg{height:25px;width:100%;z-index:2}.settings-style .right .settings-item.settings-color .swatch-container.active .chrome-picker{position:absolute;left:90px;z-index:4}.settings-style .right .settings-item.settings-color .swatch-container.active .colorpicker-background{position:fixed;top:25px;right:0;bottom:0;left:100px;height:100vh;width:100vw;z-index:3}.settings-themes{max-height:450px;overflow-y:scroll}.settings-themes .theme{margin:15px 0;padding:10px}.settings-themes .theme ul{display:flex;list-style-type:none;margin-top:10px}.settings-themes .theme li.theme-color-block{display:inline-block;border:2.5px solid #fff;margin:5px;height:50px;width:50px;box-shadow:0 2px 3px rgba(0,0,0,.05);transform:translateY(0);transition:transform .25s ease-in,box-shadow .25s ease-in,border .25s ease-in}.settings-themes .theme li.theme-color-block:hover{border:2.5px solid #222;cursor:pointer;box-shadow:0 2px 3px rgba(0,0,0,.4);transform:translateY(-3px)}.settings-themes .theme .upper button{color:#222;background:#eee;outline:none;border:none;padding:5px 8px 8px;margin-left:10px;border-radius:2px}.settings-themes .theme .upper button:hover{cursor:pointer}.settings-themes .theme .upper button.delete{color:#581212;background:#f35e5e}.settings-themes .theme .upper .theme-name{display:inline-block;font-weight:700;margin-right:15px}.settings-themes .theme-saver{background:#eee;border-bottom:1px solid #eaeaea;padding:15px}.settings-themes .theme-saver p{margin-bottom:12px}.settings-themes .theme-saver input{border:1px solid #e0e0e0;margin-right:5px;padding:5px}.settings-themes .theme-saver button{color:#222;outline:none;border:none;padding:5px 8px 8px;margin-left:10px;border-radius:2px}.settings-themes .theme-saver button:hover{cursor:pointer}.minimize{height:0!important;overflow:hidden!important}',""])},function(e,t,n){var r=n(509);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(507)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=f,n(510);var r=d(n(0)),o=d(n(34)),i=n(183),a=n(8),s=d(n(471)),u=d(n(186)),l=n(185),c=n(81);function d(e){return e&&e.__esModule?e:{default:e}}function f(){var e=(0,l.getDefaultState)();e=(0,c.addAdditionalSettings)(e);var t=void 0;t=window.__REDUX_DEVTOOLS_EXTENSION__?(0,i.createStore)(l.PrimaryReducer,e,window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__()):(0,i.createStore)(l.PrimaryReducer,e),o.default.render(r.default.createElement(a.Provider,{store:t},r.default.createElement(s.default,null)),document.getElementById("login-window-mount"))}window.onload=function(e){window.notifications=new u.default;var t=function(){f(),document.getElementById("password-field").focus()};!1===window.__debug&&void 0===window.lightdm?document.addEventListener("GreeterReady",function(){t()}):t()}}]);
|
||
//# sourceMappingURL=Aether.js.map
|