diff --git a/.babelrc b/.babelrc index 3c51e55..0300f0b 100644 --- a/.babelrc +++ b/.babelrc @@ -1,16 +1,15 @@ { + "plugins": [ + "@babel/syntax-dynamic-import", + "jsx-control-statements" + ], "presets": [ [ "@babel/preset-env", { - "targets": { - "browsers": [ "last 2 versions", "chrome >= 46" ] - } + "modules": false } ], "@babel/preset-react" - ], - "plugins": [ - "jsx-control-statements" ] } diff --git a/.eslintrc b/.eslintrc deleted file mode 100644 index 4f0d668..0000000 --- a/.eslintrc +++ /dev/null @@ -1,59 +0,0 @@ -{ - "env": { - "browser": true, - "es6": true - }, - "globals": { - "require": true - }, - "extends": [ - "eslint:recommended", - "plugin:react/recommended", - "plugin:jsx-control-statements/recommended" - ], - "parserOptions": { - "ecmaVersion": 2018, - "ecmaFeatures": { - "jsx": true - }, - "sourceType": "module" - }, - "plugins": [ - "react", - "jsx-control-statements" - ], - "rules": { - "react/jsx-no-undef": [2, { "allowGlobals": true }], - "indent": [ - "error", - 2, - { - "SwitchCase": 1 - } - ], - "linebreak-style": [ - "error", - "unix" - ], - "no-unused-vars" : [ - "warn", - { - "argsIgnorePattern": "_*" - } - ], - "no-warning-comments" : [ - "warn", - { - "terms": [ - "todo", - "fixme", - "hack" - ] - } - ], - "semi": [ - "error", - "always" - ] - } -} diff --git a/.eslintrc.js b/.eslintrc.js new file mode 100644 index 0000000..fe96ac7 --- /dev/null +++ b/.eslintrc.js @@ -0,0 +1,289 @@ +module.exports = { + "env": { + "browser": true, + "es2021": true + }, + "extends": [ + "eslint:recommended", + "plugin:react/recommended" + ], + "parserOptions": { + "ecmaFeatures": { + "jsx": true + }, + "ecmaVersion": 13, + "sourceType": "module" + }, + "plugins": ["react"], + "rules": { + "accessor-pairs": "error", + "array-bracket-newline": "error", + "array-bracket-spacing": "off", + "array-callback-return": "error", + "array-element-newline": "off", + "arrow-body-style": "off", + "arrow-parens": [ + "error", + "always" + ], + "arrow-spacing": [ + "error", + { + "after": true, + "before": true + } + ], + "block-scoped-var": "error", + "block-spacing": "error", + "brace-style": [ + "error", + "1tbs" + ], + "camelcase": "error", + "capitalized-comments": "off", + "class-methods-use-this": "error", + "comma-dangle": "error", + "comma-spacing": [ + "error", + { + "after": true, + "before": false + } + ], + "comma-style": [ + "error", + "last" + ], + "complexity": "error", + "computed-property-spacing": [ + "error", + "never" + ], + "consistent-return": "off", + "consistent-this": "error", + "curly": "error", + "default-case": "error", + "default-case-last": "error", + "default-param-last": "error", + "dot-location": "error", + "dot-notation": "error", + "eol-last": "error", + "eqeqeq": "off", + "func-call-spacing": "error", + "func-name-matching": "error", + "func-names": "error", + "func-style": [ + "error", + "declaration", + { + "allowArrowFunctions": true + } + ], + "function-paren-newline": "off", + "generator-star-spacing": "error", + "grouped-accessor-pairs": "error", + "guard-for-in": "error", + "id-denylist": "error", + "id-length": "off", + "id-match": "error", + "implicit-arrow-linebreak": "off", + "indent": "off", + "init-declarations": "error", + "jsx-quotes": "error", + "key-spacing": "error", + "keyword-spacing": "off", + "line-comment-position": "error", + "linebreak-style": [ + "error", + "unix" + ], + "lines-around-comment": "error", + "lines-between-class-members": [ + "error", + "always" + ], + "max-classes-per-file": "error", + "max-depth": "error", + "max-len": "off", + "max-lines": "error", + "max-lines-per-function": "off", + "max-nested-callbacks": "error", + "max-params": "off", + "max-statements": "off", + "max-statements-per-line": "error", + "multiline-comment-style": [ + "error", + "separate-lines" + ], + "new-parens": "error", + "newline-per-chained-call": "error", + "no-alert": "error", + "no-array-constructor": "error", + "no-await-in-loop": "error", + "no-bitwise": "error", + "no-caller": "error", + "no-confusing-arrow": "error", + "no-console": "off", + "no-constructor-return": "error", + "no-continue": "error", + "no-div-regex": "error", + "no-duplicate-imports": "error", + "no-else-return": "off", + "no-empty-function": "error", + "no-eq-null": "error", + "no-eval": "error", + "no-extend-native": "error", + "no-extra-bind": "error", + "no-extra-label": "error", + "no-extra-parens": "off", + "no-floating-decimal": "error", + "no-implicit-coercion": "error", + "no-implicit-globals": "error", + "no-implied-eval": "error", + "no-inline-comments": "error", + "no-inner-declarations": [ + "error", + "functions" + ], + "no-invalid-this": "error", + "no-iterator": "error", + "no-label-var": "error", + "no-labels": "error", + "no-lone-blocks": "error", + "no-lonely-if": "error", + "no-loop-func": "error", + "no-magic-numbers": "off", + "no-mixed-operators": "off", + "no-multi-assign": "error", + "no-multi-spaces": "error", + "no-multi-str": "error", + "no-multiple-empty-lines": "error", + "no-negated-condition": "off", + "no-nested-ternary": "error", + "no-new": "error", + "no-new-func": "error", + "no-new-object": "error", + "no-new-wrappers": "error", + "no-octal-escape": "error", + "no-param-reassign": "off", + "no-plusplus": "error", + "no-promise-executor-return": "error", + "no-proto": "error", + "no-restricted-exports": "error", + "no-restricted-globals": "error", + "no-restricted-imports": "error", + "no-restricted-properties": "error", + "no-restricted-syntax": "error", + "no-return-assign": "error", + "no-return-await": "error", + "no-script-url": "error", + "no-self-compare": "error", + "no-sequences": "error", + "no-shadow": "error", + "no-tabs": "error", + "no-template-curly-in-string": "error", + "no-ternary": "off", + "no-throw-literal": "off", + "no-trailing-spaces": "error", + "no-undef-init": "error", + "no-undefined": "off", + "no-underscore-dangle": "off", + "no-unmodified-loop-condition": "error", + "no-unneeded-ternary": "off", + "no-unreachable-loop": "error", + "no-unused-expressions": "error", + "no-unused-private-class-members": "error", + "no-use-before-define": "off", + "no-useless-call": "error", + "no-useless-computed-key": "error", + "no-useless-concat": "error", + "no-useless-constructor": "error", + "no-useless-rename": "error", + "no-useless-return": "error", + "no-var": "off", + "no-void": "error", + "no-warning-comments": "error", + "no-whitespace-before-property": "error", + "nonblock-statement-body-position": "error", + "object-curly-newline": "error", + "object-curly-spacing": [ + "error", + "always" + ], + "object-shorthand": "off", + "one-var": "off", + "one-var-declaration-per-line": "error", + "operator-assignment": "off", + "operator-linebreak": "error", + "padded-blocks": "off", + "padding-line-between-statements": "error", + "prefer-arrow-callback": "error", + "prefer-const": "off", + "prefer-destructuring": "off", + "prefer-exponentiation-operator": "off", + "prefer-named-capture-group": "error", + "prefer-numeric-literals": "error", + "prefer-object-spread": "error", + "prefer-promise-reject-errors": "error", + "prefer-regex-literals": "error", + "prefer-rest-params": "error", + "prefer-spread": "error", + "prefer-template": "off", + "quote-props": "error", + "quotes": "off", + "radix": "error", + "require-atomic-updates": "error", + "require-await": "error", + "require-unicode-regexp": "error", + "rest-spread-spacing": [ + "error", + "never" + ], + "semi": "error", + "semi-spacing": "error", + "semi-style": [ + "error", + "last" + ], + "sort-keys": "off", + "sort-vars": "error", + "space-before-blocks": "error", + "space-before-function-paren": "off", + "space-in-parens": [ + "error", + "never" + ], + "space-infix-ops": "off", + "space-unary-ops": [ + "error", + { + "nonwords": false, + "words": false + } + ], + "spaced-comment": [ + "error", + "always" + ], + "strict": "error", + "switch-colon-spacing": "error", + "symbol-description": "error", + "template-curly-spacing": [ + "error", + "always" + ], + "template-tag-spacing": "error", + "unicode-bom": [ + "error", + "never" + ], + "vars-on-top": "off", + "wrap-iife": "error", + "wrap-regex": "error", + "yield-star-spacing": "error", + "yoda": [ + "error", + "never" + ] + } +}; diff --git a/README.md b/README.md index 40b242a..63c82a7 100644 --- a/README.md +++ b/README.md @@ -49,7 +49,7 @@ A Sleek, straightforward Archlinux themed login screen written on lightdm and th ![](../screenshots/wallpaper-switcher.gif) ## Requirements -- [lightdm-webkit2-greeter (aur/lightdm-webkit2-greeter )](https://github.com/Antergos/lightdm-webkit2-greeter) +- [web-greeter](https://github.com/JezerM/web-greeter) or [nody-greeter](https://github.com/JezerM/nody-greeter) ## Installation @@ -63,20 +63,23 @@ pacaur -S lightdm-webkit-theme-aether **Manual Installation** -This assumes that you already have lightdm and lightdm-webkit2-greeter installed (but not configured). +This assumes that you already have lightdm and web-greeter (or nody-greeter) installed (but not configured). -NOTE: Users performing a manual installation directly from Github should replace the `lightdm-webkit-theme-aether` values in the provided sed commands with `Aether` to match the name of the theme directory. Users performing a manual installation from the AUR should make no changes. +NOTE: Users performing a manual installation directly from Github should replace the `web-greeter` values in the provided sed commands with `Aether` to match the name of the theme directory. Users performing a manual installation from the AUR should make no changes. ``` # If you prefer the last stable release, download from the releases page instead: https://github.com/NoiSek/Aether/releases/latest git clone git@github.com:NoiSek/Aether.git -sudo cp --recursive Aether /usr/share/lightdm-webkit/themes/Aether +sudo cp --recursive Aether /usr/share/web-greeter/themes/Aether -# Set default lightdm-webkit2-greeter theme to Aether -sudo sed -i 's/^webkit_theme\s*=\s*\(.*\)/webkit_theme = lightdm-webkit-theme-aether #\1/g' /etc/lightdm/lightdm-webkit2-greeter.conf +# Set default web-greeter theme to Aether +sudo sed 's/ theme:\s*\(.*\)/ theme: Aether #\1/g' -i /etc/lightdm/web-greeter.yml -# Set default lightdm greeter to lightdm-webkit2-greeter -sudo sed -i 's/^\(#?greeter\)-session\s*=\s*\(.*\)/greeter-session = lightdm-webkit2-greeter #\1/ #\2g' /etc/lightdm/lightdm.conf +# Set default lightdm greeter to web-greeter +sudo sed -i 's/^\(#?greeter\)-session\s*=\s*\(.*\)/greeter-session = web-greeter #\1/ #\2g' /etc/lightdm/lightdm.conf + +# Either, set default lightdm greeter to nody-greeter +sudo sed -i 's/^\(#?greeter\)-session\s*=\s*\(.*\)/greeter-session = nody-greeter #\1/ #\2g' /etc/lightdm/lightdm.conf ``` @@ -89,7 +92,7 @@ Hover over the bottom left of your screen to find the settings button. Once acti ![](./src/img/default-user.png) -Once LightDM, LightDM Webkit Greeter, and Aether are installed you will need to set an avatar image for your users. Size is irrelevant, and avatars will be displayed as a 125x125 circle (Yes, square images too). Users that don't have an avatar set will default to the [astronaut](./src/img/default-user.png). +Once LightDM, LightDM Web Greeter, and Aether are installed you will need to set an avatar image for your users. Size is irrelevant, and avatars will be displayed as a 125x125 circle (Yes, square images too). Users that don't have an avatar set will default to the [astronaut](./src/img/default-user.png). To accomplish this, you can do either of the following: - Create an image in your home directory named `.face`. @@ -98,10 +101,10 @@ To accomplish this, you can do either of the following: ### **Using Your Own Wallpapers** #### Method One: -Add and delete wallpapers within the `src/img/wallpapers/` directory as you see fit. By default, you will find this folder at the absolute path: `/usr/share/lightdm-webkit/themes/lightdm-webkit-theme-aether/src/img/wallpapers/`. +Add and delete wallpapers within the `src/img/wallpapers/` directory as you see fit. By default, you will find this folder at the absolute path: `/usr/share/web-greeter/themes/Aether/src/img/wallpapers/`. #### Method Two: -Edit the `background_images` value under `branding` within your lightdm-webkit config file located at `/etc/lightdm/lightdm-webkit2-greeter.conf`. +Edit the `background_images_dir` value under `branding` within your web-greeter config file located at `/etc/lightdm/web-greeter.yml`. *Note: This ignores the default value of /usr/share/backgrounds, as this is always set and would prevent the default wallpapers from working. To use wallpapers from within that directory, create a subdirectory at /usr/share/backgrounds/aether (or any other folder name) and change your config value accordingly.* ### **Modifying Date and Time Format** diff --git a/dist/js/Aether.js b/dist/js/Aether.js index 35bca09..98f85a3 100644 --- a/dist/js/Aether.js +++ b/dist/js/Aether.js @@ -1,40 +1,3 @@ -!function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},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=461)}([function(e,t,n){"use strict";e.exports=n(187)},function(e,t,n){e.exports=n(191)()},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=u(n(201)),i=u(n(272)),o=u(n(292)),a=u(n(293)),s=u(n(294)),l=u(n(295));function u(e){return e&&e.__esModule?e:{default:e}}t.hover=a.default,t.handleHover=a.default,t.handleActive=s.default,t.loop=l.default;var c=t.ReactCSS=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),a=1;a]*(?:\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 i=n(9);Object.keys(i).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}})});var o=n(13);Object.defineProperty(t,"glCore",{enumerable:!0,get:function(){return V(o).default}});var a=n(79);Object.defineProperty(t,"Bounds",{enumerable:!0,get:function(){return V(a).default}});var s=n(139);Object.defineProperty(t,"DisplayObject",{enumerable:!0,get:function(){return V(s).default}});var l=n(33);Object.defineProperty(t,"Container",{enumerable:!0,get:function(){return V(l).default}});var u=n(141);Object.defineProperty(t,"Transform",{enumerable:!0,get:function(){return V(u).default}});var c=n(140);Object.defineProperty(t,"TransformStatic",{enumerable:!0,get:function(){return V(c).default}});var f=n(81);Object.defineProperty(t,"TransformBase",{enumerable:!0,get:function(){return V(f).default}});var h=n(83);Object.defineProperty(t,"Sprite",{enumerable:!0,get:function(){return V(h).default}});var d=n(389);Object.defineProperty(t,"CanvasSpriteRenderer",{enumerable:!0,get:function(){return V(d).default}});var p=n(87);Object.defineProperty(t,"CanvasTinter",{enumerable:!0,get:function(){return V(p).default}});var m=n(392);Object.defineProperty(t,"SpriteRenderer",{enumerable:!0,get:function(){return V(m).default}});var g=n(408);Object.defineProperty(t,"Text",{enumerable:!0,get:function(){return V(g).default}});var v=n(154);Object.defineProperty(t,"TextStyle",{enumerable:!0,get:function(){return V(v).default}});var y=n(155);Object.defineProperty(t,"TextMetrics",{enumerable:!0,get:function(){return V(y).default}});var b=n(410);Object.defineProperty(t,"Graphics",{enumerable:!0,get:function(){return V(b).default}});var _=n(156);Object.defineProperty(t,"GraphicsData",{enumerable:!0,get:function(){return V(_).default}});var x=n(412);Object.defineProperty(t,"GraphicsRenderer",{enumerable:!0,get:function(){return V(x).default}});var w=n(419);Object.defineProperty(t,"CanvasGraphicsRenderer",{enumerable:!0,get:function(){return V(w).default}});var E=n(420);Object.defineProperty(t,"Spritesheet",{enumerable:!0,get:function(){return V(E).default}});var T=n(21);Object.defineProperty(t,"Texture",{enumerable:!0,get:function(){return V(T).default}});var S=n(152);Object.defineProperty(t,"TextureMatrix",{enumerable:!0,get:function(){return V(S).default}});var O=n(27);Object.defineProperty(t,"BaseTexture",{enumerable:!0,get:function(){return V(O).default}});var C=n(86);Object.defineProperty(t,"RenderTexture",{enumerable:!0,get:function(){return V(C).default}});var P=n(147);Object.defineProperty(t,"BaseRenderTexture",{enumerable:!0,get:function(){return V(P).default}});var k=n(144);Object.defineProperty(t,"VideoBaseTexture",{enumerable:!0,get:function(){return V(k).default}});var M=n(145);Object.defineProperty(t,"TextureUvs",{enumerable:!0,get:function(){return V(M).default}});var A=n(148);Object.defineProperty(t,"CanvasRenderTarget",{enumerable:!0,get:function(){return V(A).default}});var R=n(36);Object.defineProperty(t,"Shader",{enumerable:!0,get:function(){return V(R).default}});var D=n(35);Object.defineProperty(t,"WebGLManager",{enumerable:!0,get:function(){return V(D).default}});var I=n(51);Object.defineProperty(t,"ObjectRenderer",{enumerable:!0,get:function(){return V(I).default}});var j=n(53);Object.defineProperty(t,"RenderTarget",{enumerable:!0,get:function(){return V(j).default}});var N=n(153);Object.defineProperty(t,"Quad",{enumerable:!0,get:function(){return V(N).default}});var L=n(150);Object.defineProperty(t,"SpriteMaskFilter",{enumerable:!0,get:function(){return V(L).default}});var F=n(151);Object.defineProperty(t,"Filter",{enumerable:!0,get:function(){return V(F).default}});var B=n(157);Object.defineProperty(t,"Application",{enumerable:!0,get:function(){return V(B).default}});var U=n(158);Object.defineProperty(t,"autoDetectRenderer",{enumerable:!0,get:function(){return U.autoDetectRenderer}});var X=Y(n(5)),H=Y(n(85)),z=V(n(7)),W=V(n(34)),G=V(n(52));function Y(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 V(e){return e&&e.__esModule?e:{default:e}}t.settings=z.default,t.utils=X,t.ticker=H,t.CanvasRenderer=W.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=i.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,charset:t[3]?t[3].toLowerCase():void 0,encoding:t[4]?t[4].toLowerCase():void 0,data:t[5]};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(){m=!0},t.sayHello=function(e){if(m)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/");m=!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 i=n.getExtension("WEBGL_lose_context");i&&i.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 g)g[e].destroy();for(e in v)v[e].destroy()},t.clearTextureCache=function(){var e=void 0;for(e in g)delete g[e];for(e in v)delete v[e]},t.correctBlendMode=function(e,t){return y[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,i=255&e;return(255*t<<24)+((n=n*t+.5|0)<<16)+((r=r*t+.5|0)<<8)+(i=i*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),i=d(n(7)),o=d(n(24)),a=d(n(378)),s=h(n(379)),l=h(n(80)),u=d(n(380)),c=d(n(381)),f=d(n(82));function h(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 p=0,m=!1;t.isMobile=l,t.removeItems=u.default,t.EventEmitter=o.default,t.pluginTarget=a.default,t.mixins=s,t.earcut=f.default;var g=t.TextureCache=Object.create(null),v=t.BaseTextureCache=Object.create(null);var y=t.premultiplyBlendMode=(0,c.default)()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(296);Object.defineProperty(t,"Alpha",{enumerable:!0,get:function(){return f(r).default}});var i=n(74);Object.defineProperty(t,"Checkboard",{enumerable:!0,get:function(){return f(i).default}});var o=n(299);Object.defineProperty(t,"EditableInput",{enumerable:!0,get:function(){return f(o).default}});var a=n(300);Object.defineProperty(t,"Hue",{enumerable:!0,get:function(){return f(a).default}});var s=n(302);Object.defineProperty(t,"Raised",{enumerable:!0,get:function(){return f(s).default}});var l=n(316);Object.defineProperty(t,"Saturation",{enumerable:!0,get:function(){return f(l).default}});var u=n(126);Object.defineProperty(t,"ColorWrap",{enumerable:!0,get:function(){return f(u).default}});var c=n(323);function f(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"Swatch",{enumerable:!0,get:function(){return f(c).default}})},function(e,t,n){"use strict";t.__esModule=!0;var r=o(n(376)),i=o(n(377));function o(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,i.default)(),MESH_CANVAS_PADDING:0}},function(e,t,n){"use strict";var r={},i="x",o=[],a=function(e){return o.push(e)};if(e.exports=function(){for(var e=arguments.length,t=Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:"",s=arguments[2];return Object.keys(t).map(function(l){var u=t[l];if(null===u)return"";if("object"==typeof u){var c=/^@/.test(l)?l:null;return e(u,c?n:n+l,c||s)}var f=l+u+n+s;if(r[f])return r[f];var h=i+o.length.toString(36);return a(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,u),s)),r[f]=h,h}).join(" ")}(e)}).join(" ").trim()},e.exports.css=function(){return o.sort().join("")},e.exports.reset=function(){for(r={};o.length;)o.pop()},e.exports.prefix=function(e){return i=e},"undefined"!=typeof document){var s=document.head.appendChild(document.createElement("style")).sheet;a=function(e){o.push(e),s.insertRule(e,s.cssRules.length)}}},function(e,t,n){"use strict";t.__esModule=!0;var r=n(75);Object.defineProperty(t,"Point",{enumerable:!0,get:function(){return h(r).default}});var i=n(128);Object.defineProperty(t,"ObservablePoint",{enumerable:!0,get:function(){return h(i).default}});var o=n(76);Object.defineProperty(t,"Matrix",{enumerable:!0,get:function(){return h(o).default}});var a=n(129);Object.defineProperty(t,"GroupD8",{enumerable:!0,get:function(){return h(a).default}});var s=n(366);Object.defineProperty(t,"Circle",{enumerable:!0,get:function(){return h(s).default}});var l=n(367);Object.defineProperty(t,"Ellipse",{enumerable:!0,get:function(){return h(l).default}});var u=n(368);Object.defineProperty(t,"Polygon",{enumerable:!0,get:function(){return h(u).default}});var c=n(77);Object.defineProperty(t,"Rectangle",{enumerable:!0,get:function(){return h(c).default}});var f=n(369);function h(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"RoundedRectangle",{enumerable:!0,get:function(){return h(f).default}})},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){var r=n(303),i=n(307)(function(e,t,n){r(e,t,n)});e.exports=i},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){var r={createContext:n(370),setVertexAttribArrays:n(130),GLBuffer:n(371),GLFramebuffer:n(372),GLShader:n(373),GLTexture:n(131),VertexArrayObject:n(374),shader:n(375)};e.exports&&(e.exports=r),"undefined"!=typeof window&&(window.PIXI=window.PIXI||{},window.PIXI.glCore=r)},function(e,t,n){var r=n(94),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.red=void 0;var r=o(n(321)),i=o(n(56));function o(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,i.default)(e.hex):(0,i.default)(e),r=n.toHsl(),o=n.toHsv(),a=n.toRgb(),s=n.toHex();return 0===r.s&&(r.h=t||0,o.h=t||0),{hsl:r,hex:"000000"===s&&0===a.a?"transparent":"#"+s,rgb:a,hsv:o,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,i.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){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){(function(e){function n(e,t){for(var n=0,r=e.length-1;r>=0;r--){var i=e[r];"."===i?e.splice(r,1):".."===i?(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}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,i=function(e){return r.exec(e).slice(1)};function o(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r=-1&&!r;i--){var a=i>=0?arguments[i]: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(r?"/":"")+(t=n(o(t.split("/"),function(e){return!!e}),!r).join("/"))||"."},t.normalize=function(e){var r=t.isAbsolute(e),i="/"===a(e,-1);return(e=n(o(e.split("/"),function(e){return!!e}),!r).join("/"))||r||(e="."),e&&i&&(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(o(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=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 i=r(e.split("/")),o=r(n.split("/")),a=Math.min(i.length,o.length),s=a,l=0;l2&&void 0!==arguments[2]?arguments[2]:"canvas";return new t(i.default.fromCanvas(e,n,r))},t.fromVideo=function(e,n,r,i){return"string"==typeof e?t.fromVideoUrl(e,n,r,i):new t(o.default.fromVideo(e,n,i))},t.fromVideoUrl=function(e,n,r,i){return new t(o.default.fromUrl(e,n,r,i))},t.from=function(e){if("string"==typeof e){var n=u.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,c.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,u.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),u.TextureCache[t]&&console.warn("Texture added to the cache with an id ["+t+"] that already had an entry"),u.TextureCache[t]=e)},t.removeFromCache=function(e){if("string"==typeof e){var t=u.TextureCache[e];if(t){var n=t.textureCacheIds.indexOf(e);return n>-1&&t.textureCacheIds.splice(n,1),delete u.TextureCache[e],t}}else if(e&&e.textureCacheIds){for(var r=0;rthis.baseTexture.width,a=n+i>this.baseTexture.height;if(o||a){var s=o&&a?"and":"or",l="X: "+t+" + "+r+" = "+(t+r)+" > "+this.baseTexture.width,u="Y: "+n+" + "+i+" = "+(n+i)+" > "+this.baseTexture.height;throw new Error("Texture Error: frame does not fit inside the base Texture dimensions: "+l+" "+s+" "+u)}this.valid=r&&i&&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}(s.default);function d(e){e.destroy=function(){},e.on=function(){},e.once=function(){},e.emit=function(){}}t.default=h,h.EMPTY=new h(new i.default),d(h.EMPTY),d(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))}(),d(h.WHITE),d(h.WHITE.baseTexture)},function(e,t,n){var r=n(29),i=n(203),o=n(204),a="[object Null]",s="[object Undefined]",l=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?s:a:l&&l in Object(e)?i(e):o(e)}},function(e,t,n){var r=n(225),i=n(228);e.exports=function(e,t){var n=i(e,t);return r(n)?n:void 0}},function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,i="~";function o(){}function a(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function s(){this._events=new o,this._eventsCount=0}Object.create&&(o.prototype=Object.create(null),(new o).__proto__||(i=!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(i?t.slice(1):t);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(e)):n},s.prototype.listeners=function(e,t){var n=i?i+e:e,r=this._events[n];if(t)return!!r;if(!r)return[];if(r.fn)return[r.fn];for(var o=0,a=r.length,s=new Array(a);o2&&void 0!==arguments[2]?arguments[2]:"canvas";e._pixiId||(e._pixiId=i+"_"+(0,r.uid)());var o=r.BaseTextureCache[e._pixiId];return o||(o=new t(e,n),t.addToCache(o,e._pixiId)),o},t.from=function(e,n,i){if("string"==typeof e)return t.fromImage(e,void 0,n,i);if(e instanceof HTMLImageElement){var o=e.src,a=r.BaseTextureCache[o];return a||((a=new t(e,n)).imageUrl=o,i&&(a.sourceScale=i),a.resolution=(0,r.getResolutionOfUrl)(o),t.addToCache(a,o)),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),r.BaseTextureCache[t]&&console.warn("BaseTexture added to the cache with an id ["+t+"] that already had an entry"),r.BaseTextureCache[t]=e)},t.removeFromCache=function(e){if("string"==typeof e){var t=r.BaseTextureCache[e];if(t){var n=t.textureCacheIds.indexOf(e);return n>-1&&t.textureCacheIds.splice(n,1),delete r.BaseTextureCache[e],t}}else if(e&&e.textureCacheIds){for(var i=0;i1)for(var n=0;nthis.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=this.children.length)throw new Error("The index "+t+" supplied is out of bounds "+this.children.length);var n=this.getChildIndex(e);(0,o.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;n0&&void 0!==arguments[0]?arguments[0]:0,t=arguments[1],n=e,r="number"==typeof t?t:this.children.length,i=r-n,o=void 0;if(i>0&&i<=r){o=this.children.splice(n,i);for(var a=0;a196*p*p?(M=O-P,A=C-k,R=Math.sqrt(M*M+A*A),M/=R,A/=R,M*=p,A*=p,u.push(w-M*I,E-A*I),u.push(v,y,b,g),u.push(w+M*j,E+A*j),u.push(v,y,b,g),u.push(w-M*j*I,E-A*I),u.push(v,y,b,g),h++):(u.push(w+(W-w)*I,E+(G-E)*I),u.push(v,y,b,g),u.push(w-(W-w)*j,E-(G-E)*j),u.push(v,y,b,g))}}_=n[2*(f-2)],x=n[2*(f-2)+1],w=n[2*(f-1)],E=n[2*(f-1)+1],O=-(x-E),C=_-w,R=Math.sqrt(O*O+C*C),O/=R,C/=R,O*=p,C*=p,u.push(w-O*I,E-C*I),u.push(v,y,b,g),u.push(w+O*j,E+C*j),u.push(v,y,b,g),c.push(d);for(var V=0;Vv?(v=h,d=new Date(v),n=v,g&&(d=new Date(v+u(d)+m))):n=v,t=d}return function e(t,n,r,u){var f="",h=null,d=!1,p=t.length,v=!1;for(var y=0;y9?e:(null==t&&(t="0"),t+e)}function o(e){return e>99?e:e>9?"0"+e:"00"+e}function a(e){return 0===e?12:e>12?e-12:e}function s(e,t){t=t||"sunday";var n=e.getDay();"monday"===t&&(0===n?n=6:n--);var r=Date.UTC(e.getFullYear(),0,1),i=Date.UTC(e.getFullYear(),e.getMonth(),e.getDate()),o=(Math.floor((i-r)/864e5)+7-n)/7;return Math.floor(o)}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 u(e){return 6e4*(e.getTimezoneOffset()||0)}function c(e){"undefined"!=typeof console&&"function"==typeof console.warn&&console.warn(e)}void 0!==e?e.exports=r:(function(){return this||(0,eval)("this")}()).strftime=r,"function"!=typeof Date.now&&(Date.now=function(){return+new Date})}()},function(e,t,n){var r;!function(i){var o=/^\s+/,a=/\s+$/,s=0,l=i.round,u=i.min,c=i.max,f=i.random;function h(e,t){if(t=t||{},(e=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,s=null,l=null,f=!1,h=!1;"string"==typeof e&&(e=function(e){e=e.replace(o,"").replace(a,"").toLowerCase();var t,n=!1;if(M[e])e=M[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};if(t=z.rgb.exec(e))return{r:t[1],g:t[2],b:t[3]};if(t=z.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=z.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=z.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=z.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=z.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=z.hex8.exec(e))return{r:j(t[1]),g:j(t[2]),b:j(t[3]),a:B(t[4]),format:n?"name":"hex8"};if(t=z.hex6.exec(e))return{r:j(t[1]),g:j(t[2]),b:j(t[3]),format:n?"name":"hex"};if(t=z.hex4.exec(e))return{r:j(t[1]+""+t[1]),g:j(t[2]+""+t[2]),b:j(t[3]+""+t[3]),a:B(t[4]+""+t[4]),format:n?"name":"hex8"};if(t=z.hex3.exec(e))return{r:j(t[1]+""+t[1]),g:j(t[2]+""+t[2]),b:j(t[3]+""+t[3]),format:n?"name":"hex"};return!1}(e));"object"==typeof e&&(W(e.r)&&W(e.g)&&W(e.b)?(d=e.r,p=e.g,m=e.b,t={r:255*D(d,255),g:255*D(p,255),b:255*D(m,255)},f=!0,h="%"===String(e.r).substr(-1)?"prgb":"rgb"):W(e.h)&&W(e.s)&&W(e.v)?(r=L(e.s),s=L(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),l=n*(1-(1-o)*t),u=r%6;return{r:255*[n,s,a,a,l,n][u],g:255*[l,n,n,s,a,a][u],b:255*[a,a,l,n,n,s][u]}}(e.h,r,s),f=!0,h="hsv"):W(e.h)&&W(e.s)&&W(e.l)&&(r=L(e.s),l=L(e.l),t=function(e,t,n){var r,i,o;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=i=o=n;else{var s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;r=a(l,s,e+1/3),i=a(l,s,e),o=a(l,s,e-1/3)}return{r:255*r,g:255*i,b:255*o}}(e.h,r,l),f=!0,h="hsl"),e.hasOwnProperty("a")&&(n=e.a));var d,p,m;return n=R(n),{ok:f,format:e.format||h,r:u(255,c(t.r,0)),g:u(255,c(t.g,0)),b:u(255,c(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=s++}function d(e,t,n){e=D(e,255),t=D(t,255),n=D(n,255);var r,i,o=c(e,t,n),a=u(e,t,n),s=(o+a)/2;if(o==a)r=i=0;else{var l=o-a;switch(i=s>.5?l/(2-o-a):l/(o+a),o){case e:r=(t-n)/l+(t>1)+720)%360;--t;)r.h=(r.h+i)%360,o.push(h(r));return o}function k(e,t){t=t||6;for(var n=h(e).toHsv(),r=n.h,i=n.s,o=n.v,a=[],s=1/t;t--;)a.push(h({h:r,s:i,v:o})),o=(o+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=R(e),this._roundA=l(100*this._a)/100,this},toHsv:function(){var e=p(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=p(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=d(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=d(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 m(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,i){var o=[N(l(e).toString(16)),N(l(t).toString(16)),N(l(n).toString(16)),N(F(r))];if(i&&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[3].charAt(0)==o[3].charAt(1))return o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0);return o.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)&&(A[m(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+g(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var i=h(e);n="#"+g(i._r,i._g,i._b,i._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(_,arguments)},brighten:function(){return this._applyModification(x,arguments)},darken:function(){return this._applyModification(w,arguments)},desaturate:function(){return this._applyModification(v,arguments)},saturate:function(){return this._applyModification(y,arguments)},greyscale:function(){return this._applyModification(b,arguments)},spin:function(){return this._applyModification(E,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(P,arguments)},complement:function(){return this._applyCombination(T,arguments)},monochromatic:function(){return this._applyCombination(k,arguments)},splitcomplement:function(){return this._applyCombination(C,arguments)},triad:function(){return this._applyCombination(S,arguments)},tetrad:function(){return this._applyCombination(O,arguments)}},h.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:L(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(),i=h(t).toRgb(),o=n/100;return h({r:(i.r-r.r)*o+r.r,g:(i.g-r.g)*o+r.g,b:(i.b-r.b)*o+r.b,a:(i.a-r.a)*o+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,i,o=h.readability(e,t);switch(i=!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":i=o>=4.5;break;case"AAlarge":i=o>=3;break;case"AAAsmall":i=o>=7}return i},h.mostReadable=function(e,t,n){var r,i,o,a,s=null,l=0;i=(n=n||{}).includeFallbackColors,o=n.level,a=n.size;for(var u=0;ul&&(l=r,s=h(t[u]));return h.isReadable(e,s,{level:o,size:a})||!i?s:(n.includeFallbackColors=!1,h.mostReadable(e,["#fff","#000"],n))};var M=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"},A=h.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(M);function R(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=u(t,c(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),i.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function I(e){return u(1,c(0,e))}function j(e){return parseInt(e,16)}function N(e){return 1==e.length?"0"+e:""+e}function L(e){return e<=1&&(e=100*e+"%"),e}function F(e){return i.round(255*parseFloat(e)).toString(16)}function B(e){return j(e)/255}var U,X,H,z=(X="[\\s|\\(]+("+(U="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+U+")[,|\\s]+("+U+")\\s*\\)?",H="[\\s|\\(]+("+U+")[,|\\s]+("+U+")[,|\\s]+("+U+")[,|\\s]+("+U+")\\s*\\)?",{CSS_UNIT:new RegExp(U),rgb:new RegExp("rgb"+X),rgba:new RegExp("rgba"+H),hsl:new RegExp("hsl"+X),hsla:new RegExp("hsla"+H),hsv:new RegExp("hsv"+X),hsva:new RegExp("hsva"+H),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 W(e){return!!z.CSS_UNIT.exec(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-assign -(c) Sindre Sorhus -@license MIT -*/var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=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)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l-1&&e%1==0&&e-1&&e%1==0&&e<=n}},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,n){(function(e){var r=n(94),i=t&&!t.nodeType&&t,o=i&&"object"==typeof e&&e&&!e.nodeType&&e,a=o&&o.exports===i&&r.process,s=function(){try{var e=o&&o.require&&o.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s}).call(this,n(40)(e))},function(e,t){var n=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},function(e,t,n){var r=n(22),i=n(12),o="[object AsyncFunction]",a="[object Function]",s="[object GeneratorFunction]",l="[object Proxy]";e.exports=function(e){if(!i(e))return!1;var t=r(e);return t==a||t==s||t==o||t==l}},function(e,t,n){var r=n(98)(Object.getPrototypeOf,Object);e.exports=r},function(e,t,n){var r=n(23)(n(14),"Map");e.exports=r},function(e,t,n){var r=n(229),i=n(236),o=n(238),a=n(239),s=n(240);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t0&&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";t.__esModule=!0;var r,i=function(){function e(e,t){for(var n=0;n0&&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,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,o=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=i,this.tx=o,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,i,o){return this.a=e,this.b=t,this.c=n,this.d=r,this.tx=i,this.ty=o,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,i=e.y;return t.x=this.d*n*r+-this.c*n*i+(this.ty*this.c-this.tx*this.d)*n,t.y=this.a*n*i+-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,i=this.c,o=this.tx;return this.a=r*t-this.b*n,this.b=r*n+this.b*t,this.c=i*t-this.d*n,this.d=i*n+this.d*t,this.tx=o*t-this.ty*n,this.ty=o*n+this.ty*t,this},e.prototype.append=function(e){var t=this.a,n=this.b,r=this.c,i=this.d;return this.a=e.a*t+e.b*r,this.b=e.a*n+e.b*i,this.c=e.c*t+e.d*r,this.d=e.c*n+e.d*i,this.tx=e.tx*t+e.ty*r+this.tx,this.ty=e.tx*n+e.ty*i+this.ty,this},e.prototype.setTransform=function(e,t,n,r,i,o,a,s,l){return this.a=Math.cos(a+l)*i,this.b=Math.sin(a+l)*i,this.c=-Math.sin(a-s)*o,this.d=Math.cos(a-s)*o,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,i=this.d,o=-Math.atan2(-r,i),a=Math.atan2(n,t),l=Math.abs(o+a);return l<1e-5||Math.abs(s.PI_2-l)<1e-5?(e.rotation=a,t<0&&i>=0&&(e.rotation+=e.rotation<=0?Math.PI:-Math.PI),e.skew.x=e.skew.y=0):(e.rotation=0,e.skew.x=o,e.skew.y=a),e.scale.x=Math.sqrt(t*t+n*n),e.scale.y=Math.sqrt(r*r+i*i),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,i=this.tx,o=e*r-t*n;return this.a=r/o,this.b=-t/o,this.c=-n/o,this.d=e/o,this.tx=(n*this.ty-r*i)/o,this.ty=-(e*this.ty-t*i)/o,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},i(e,null,[{key:"IDENTITY",get:function(){return new e}},{key:"TEMP_MATRIX",get:function(){return new e}}]),e}();t.default=l},function(e,t,n){"use strict";t.__esModule=!0;var r=function(){function e(e,t){for(var n=0;n0&&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=Number(t),this.y=Number(n),this.width=Number(r),this.height=Number(o),this.type=i.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.y&&te.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),i=Math.max(this.y+this.height,e.y+e.height);this.x=t,this.width=n-t,this.y=r,this.height=i-r},e.prototype.ceil=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.001,n=Math.ceil((this.x+this.width-t)*e)/e,r=Math.ceil((this.y+this.height-t)*e)/e;this.x=Math.floor((this.x+t)*e)/e,this.y=Math.floor((this.y+t)*e)/e,this.width=n-this.x,this.height=r-this.y},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=o},function(e,t){var n=null,r={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(!n){var i=Object.keys(r);n={};for(var o=0;othis.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,i=this.maxY,o=e[0],a=e[1];t=or?o:r,i=a>i?a:i,t=(o=e[2])r?o:r,i=a>i?a:i,t=(o=e[4])r?o:r,i=a>i?a:i,t=(o=e[6])r?o:r,i=a>i?a:i,this.minX=t,this.minY=n,this.maxX=r,this.maxY=i},e.prototype.addFrame=function(e,t,n,r,i){var o=e.worldTransform,a=o.a,s=o.b,l=o.c,u=o.d,c=o.tx,f=o.ty,h=this.minX,d=this.minY,p=this.maxX,m=this.maxY,g=a*t+l*n+c,v=s*t+u*n+f;h=gp?g:p,m=v>m?v:m,h=(g=a*r+l*n+c)p?g:p,m=v>m?v:m,h=(g=a*t+l*i+c)p?g:p,m=v>m?v:m,h=(g=a*r+l*i+c)p?g:p,m=v>m?v:m,this.minX=h,this.minY=d,this.maxX=p,this.maxY=m},e.prototype.addVertices=function(e,t,n,r){for(var i=e.worldTransform,o=i.a,a=i.b,s=i.c,l=i.d,u=i.tx,c=i.ty,f=this.minX,h=this.minY,d=this.maxX,p=this.maxY,m=n;md?y:d,p=b>p?b:p}this.minX=f,this.minY=h,this.maxX=d,this.maxY=p},e.prototype.addBounds=function(e){var t=this.minX,n=this.minY,r=this.maxX,i=this.maxY;this.minX=e.minXr?e.maxX:r,this.maxY=e.maxY>i?e.maxY:i},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,i=e.maxXl?i:l,this.maxY=o>u?o:u}},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,i=e.maxXl?i:l,this.maxY=o>u?o:u}},e}();t.default=i},function(e,t,n){var r,i,o;!function(n){var a=/iPhone/i,s=/iPod/i,l=/iPad/i,u=/\bAndroid(?:.+)Mobile\b/i,c=/Android/i,f=/\bAndroid(?:.+)SD4930UR\b/i,h=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,d=/Windows Phone/i,p=/\bWindows(?:.+)ARM\b/i,m=/BlackBerry/i,g=/BB10/i,v=/Opera Mini/i,y=/\b(CriOS|Chrome)(?:.+)Mobile/i,b=/\Mobile(?:.+)Firefox\b/i;function _(e,t){return e.test(t)}function x(e){var t=e||("undefined"!=typeof navigator?navigator.userAgent:""),n=t.split("[FBAN");void 0!==n[1]&&(t=n[0]),void 0!==(n=t.split("Twitter"))[1]&&(t=n[0]);var r={apple:{phone:_(a,t)&&!_(d,t),ipod:_(s,t),tablet:!_(a,t)&&_(l,t)&&!_(d,t),device:(_(a,t)||_(s,t)||_(l,t))&&!_(d,t)},amazon:{phone:_(f,t),tablet:!_(f,t)&&_(h,t),device:_(f,t)||_(h,t)},android:{phone:!_(d,t)&&_(f,t)||!_(d,t)&&_(u,t),tablet:!_(d,t)&&!_(f,t)&&!_(u,t)&&(_(h,t)||_(c,t)),device:!_(d,t)&&(_(f,t)||_(h,t)||_(u,t)||_(c,t))},windows:{phone:_(d,t),tablet:_(p,t),device:_(d,t)||_(p,t)},other:{blackberry:_(m,t),blackberry10:_(g,t),opera:_(v,t),firefox:_(b,t),chrome:_(y,t),device:_(m,t)||_(g,t)||_(v,t)||_(b,t)||_(y,t)}};return r.any=r.apple.device||r.android.device||r.windows.device||r.other.device,r.phone=r.apple.phone||r.android.phone||r.windows.phone,r.tablet=r.apple.tablet||r.android.tablet||r.windows.tablet,r}e.exports&&"undefined"==typeof window?e.exports=x:e.exports&&"undefined"!=typeof window?e.exports=x():(i=[],r=n.isMobile=x(),void 0===(o="function"==typeof r?r.apply(t,i):r)||(e.exports=o))}(this)},function(e,t,n){"use strict";t.__esModule=!0;var r=n(9);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.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=i,i.prototype.updateWorldTransform=i.prototype.updateTransform,i.IDENTITY=new i},function(e,t,n){"use strict";function r(e,t,n){n=n||2;var r,s,l,u,c,d,m,g=t&&t.length,v=g?t[0]*n:e.length,y=i(e,0,v,n,!0),b=[];if(!y||y.next===y.prev)return b;if(g&&(y=function(e,t,n,r){var a,s,l,u,c,d=[];for(a=0,s=t.length;a80*n){r=l=e[0],s=u=e[1];for(var _=n;_l&&(l=c),d>u&&(u=d);m=0!==(m=Math.max(l-r,u-s))?1/m:0}return a(y,b,n,r,s,m),b}function i(e,t,n,r,i){var o,a;if(i===S(e,t,n,r)>0)for(o=t;o=t;o-=r)a=w(o,e[o],e[o+1],a);return a&&y(a,a.next)&&(E(a),a=a.next),a}function o(e,t){if(!e)return e;t||(t=e);var n,r=e;do{if(n=!1,r.steiner||!y(r,r.next)&&0!==v(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,i,f,h){if(e){!h&&f&&function(e,t,n,r){var i=e;do{null===i.z&&(i.z=d(i.x,i.y,t,n,r)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next}while(i!==e);i.prevZ.nextZ=null,i.prevZ=null,function(e){var t,n,r,i,o,a,s,l,u=1;do{for(n=e,e=null,o=null,a=0;n;){for(a++,r=n,s=0,t=0;t0||l>0&&r;)0!==s&&(0===l||!r||n.z<=r.z)?(i=n,n=n.nextZ,s--):(i=r,r=r.nextZ,l--),o?o.nextZ=i:e=i,i.prevZ=o,o=i;n=r}o.nextZ=null,u*=2}while(a>1)}(i)}(e,r,i,f);for(var p,m,g=e;e.prev!==e.next;)if(p=e.prev,m=e.next,f?l(e,r,i,f):s(e))t.push(p.i/n),t.push(e.i/n),t.push(m.i/n),E(e),e=m.next,g=m.next;else if((e=m)===g){h?1===h?a(e=u(e,t,n),t,n,r,i,f,2):2===h&&c(e,t,n,r,i,f):a(o(e),t,n,r,i,f,1);break}}}function s(e){var t=e.prev,n=e,r=e.next;if(v(t,n,r)>=0)return!1;for(var i=e.next.next;i!==e.prev;){if(m(t.x,t.y,n.x,n.y,r.x,r.y,i.x,i.y)&&v(i.prev,i,i.next)>=0)return!1;i=i.next}return!0}function l(e,t,n,r){var i=e.prev,o=e,a=e.next;if(v(i,o,a)>=0)return!1;for(var s=i.xo.x?i.x>a.x?i.x:a.x:o.x>a.x?o.x:a.x,c=i.y>o.y?i.y>a.y?i.y:a.y:o.y>a.y?o.y:a.y,f=d(s,l,t,n,r),h=d(u,c,t,n,r),p=e.prevZ,g=e.nextZ;p&&p.z>=f&&g&&g.z<=h;){if(p!==e.prev&&p!==e.next&&m(i.x,i.y,o.x,o.y,a.x,a.y,p.x,p.y)&&v(p.prev,p,p.next)>=0)return!1;if(p=p.prevZ,g!==e.prev&&g!==e.next&&m(i.x,i.y,o.x,o.y,a.x,a.y,g.x,g.y)&&v(g.prev,g,g.next)>=0)return!1;g=g.nextZ}for(;p&&p.z>=f;){if(p!==e.prev&&p!==e.next&&m(i.x,i.y,o.x,o.y,a.x,a.y,p.x,p.y)&&v(p.prev,p,p.next)>=0)return!1;p=p.prevZ}for(;g&&g.z<=h;){if(g!==e.prev&&g!==e.next&&m(i.x,i.y,o.x,o.y,a.x,a.y,g.x,g.y)&&v(g.prev,g,g.next)>=0)return!1;g=g.nextZ}return!0}function u(e,t,n){var r=e;do{var i=r.prev,o=r.next.next;!y(i,o)&&b(i,r,r.next,o)&&_(i,o)&&_(o,i)&&(t.push(i.i/n),t.push(r.i/n),t.push(o.i/n),E(r),E(r.next),r=e=o),r=r.next}while(r!==e);return r}function c(e,t,n,r,i,s){var l=e;do{for(var u=l.next.next;u!==l.prev;){if(l.i!==u.i&&g(l,u)){var c=x(l,u);return l=o(l,l.next),c=o(c,c.next),a(l,t,n,r,i,s),void a(c,t,n,r,i,s)}u=u.next}l=l.next}while(l!==e)}function f(e,t){return e.x-t.x}function h(e,t){if(t=function(e,t){var n,r=t,i=e.x,o=e.y,a=-1/0;do{if(o<=r.y&&o>=r.next.y&&r.next.y!==r.y){var s=r.x+(o-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(s<=i&&s>a){if(a=s,s===i){if(o===r.y)return r;if(o===r.next.y)return r.next}n=r.x=r.x&&r.x>=c&&i!==r.x&&m(on.x)&&_(r,e)&&(n=r,h=l),r=r.next;return n}(e,t)){var n=x(t,e);o(n,n.next)}}function d(e,t,n,r,i){return(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-n)*i)|e<<8))|e<<4))|e<<2))|e<<1))|(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-r)*i)|t<<8))|t<<4))|t<<2))|t<<1))<<1}function p(e){var t=e,n=e;do{t.x=0&&(e-a)*(r-s)-(n-a)*(t-s)>=0&&(n-a)*(o-s)-(i-a)*(r-s)>=0}function g(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,i=(e.x+t.x)/2,o=(e.y+t.y)/2;do{n.y>o!=n.next.y>o&&n.next.y!==n.y&&i<(n.next.x-n.x)*(o-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next}while(n!==e);return r}(e,t)}function v(e,t,n){return(t.y-e.y)*(n.x-t.x)-(t.x-e.x)*(n.y-t.y)}function y(e,t){return e.x===t.x&&e.y===t.y}function b(e,t,n,r){return!!(y(e,t)&&y(n,r)||y(e,r)&&y(n,t))||v(e,t,n)>0!=v(e,t,r)>0&&v(n,r,e)>0!=v(n,r,t)>0}function _(e,t){return v(e.prev,e,e.next)<0?v(e,t,e.next)>=0&&v(e,e.prev,t)>=0:v(e,t,e.prev)<0||v(e,e.next,t)<0}function x(e,t){var n=new T(e.i,e.x,e.y),r=new T(t.i,t.x,t.y),i=e.next,o=t.prev;return e.next=t,t.prev=e,n.next=i,i.prev=n,r.next=n,n.prev=r,o.next=r,r.prev=o,r}function w(e,t,n,r){var i=new T(e,t,n);return r?(i.next=r.next,i.prev=r,r.next.prev=i,r.next=i):(i.prev=i,i.next=i),i}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 T(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 S(e,t,n,r){for(var i=0,o=t,a=n-r;o0&&(r+=e[i-1].length,n.holes.push(r))}return n}},function(e,t,n){"use strict";t.__esModule=!0;var r=function(){function e(e,t){for(var n=0;n=r&&c.x=i&&c.y>16)+(65280&e)+((255&e)<<16)}},{key:"texture",get:function(){return this._texture},set:function(e){this._texture!==e&&(this._texture=e||s.default.EMPTY,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){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)&-(e65535)<<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 i=new Array(256);!function(e){for(var t=0;t<256;++t){var n=t,r=t,i=7;for(n>>>=1;n;n>>>=1)r<<=1,r|=1&n,--i;e[t]=r<>>8&255]<<16|i[e>>>16&255]<<8|i[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";t.__esModule=!0,t.Ticker=t.shared=void 0;var r,i=n(387),o=(r=i)&&r.__esModule?r:{default:r};var a=new o.default;a.autoStart=!0,a.destroy=function(){},t.shared=a,t.Ticker=o.default},function(e,t,n){"use strict";t.__esModule=!0;var r=i(n(147));function i(e){return e&&e.__esModule?e:{default:e}}var o=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 o=null;if(!(n instanceof r.default)){var a=arguments[1],s=arguments[2],l=arguments[3],u=arguments[4];console.warn("Please use RenderTexture.create("+a+", "+s+") instead of the ctor directly."),o=arguments[0],i=null,n=new r.default(a,s,l,u)}var c=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,e.call(this,n,i));return c.legacyRenderer=o,c.valid=!0,c._updateUvs(),c}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,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,i,o){return new t(new r.default(e,n,i,o))},t}(i(n(21)).default);t.default=o},function(e,t,n){"use strict";t.__esModule=!0;var r,i=n(5),o=n(149);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 i=n.tintCache[r],o=void 0;if(i){if(i.tintId===n._updateID)return n.tintCache[r];o=n.tintCache[r]}else o=a.canvas||document.createElement("canvas");if(a.tintMethod(n,t,o),o.tintId=n._updateID,a.convertTintToImage){var s=new Image;s.src=o.toDataURL(),n.tintCache[r]=s}else n.tintCache[r]=o,a.canvas=null;return o},tintWithMultiply:function(e,t,n){var r=n.getContext("2d"),i=e._frame.clone(),o=e.baseTexture.resolution;i.x*=o,i.y*=o,i.width*=o,i.height*=o,n.width=Math.ceil(i.width),n.height=Math.ceil(i.height),r.save(),r.fillStyle="#"+("00000"+(0|t).toString(16)).substr(-6),r.fillRect(0,0,i.width,i.height),r.globalCompositeOperation="multiply",r.drawImage(e.baseTexture.source,i.x,i.y,i.width,i.height,0,0,i.width,i.height),r.globalCompositeOperation="destination-atop",r.drawImage(e.baseTexture.source,i.x,i.y,i.width,i.height,0,0,i.width,i.height),r.restore()},tintWithOverlay:function(e,t,n){var r=n.getContext("2d"),i=e._frame.clone(),o=e.baseTexture.resolution;i.x*=o,i.y*=o,i.width*=o,i.height*=o,n.width=Math.ceil(i.width),n.height=Math.ceil(i.height),r.save(),r.globalCompositeOperation="copy",r.fillStyle="#"+("00000"+(0|t).toString(16)).substr(-6),r.fillRect(0,0,i.width,i.height),r.globalCompositeOperation="destination-atop",r.drawImage(e.baseTexture.source,i.x,i.y,i.width,i.height,0,0,i.width,i.height),r.restore()},tintWithPerPixel:function(e,t,n){var r=n.getContext("2d"),o=e._frame.clone(),a=e.baseTexture.resolution;o.x*=a,o.y*=a,o.width*=a,o.height*=a,n.width=Math.ceil(o.width),n.height=Math.ceil(o.height),r.save(),r.globalCompositeOperation="copy",r.drawImage(e.baseTexture.source,o.x,o.y,o.width,o.height,0,0,o.width,o.height),r.restore();for(var s=(0,i.hex2rgb)(t),l=s[0],u=s[1],c=s[2],f=r.getImageData(0,0,o.width,o.height),h=f.data,d=0;d0||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 i=new DOMParser;this.data=i.parseFromString(n,"text/xml")}else{var o=document.createElement("div");o.innerHTML=n,this.data=o}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"";if(window.origin!==window.location.origin)return"anonymous";t=t||window.location,l||(l=document.createElement("a")),l.href=e;var n=!(e=(0,i.default)(l.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("?"),i=e.indexOf("#"),o=Math.min(r>-1?r:e.length,i>-1?i:e.length);t=(e=e.substring(0,o)).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 f(e,t,n){t&&0===t.indexOf(".")&&(t=t.substring(1)),t&&(e[t]=n)}function h(e){return e.toString().replace("object ","")}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==",e.exports.default=c},function(e,t,n){"use strict";t.__esModule=!0;var r,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)),o=n(178),a=(r=o)&&r.__esModule?r:{default:r};var s=i.ticker.shared;i.settings.UPLOADS_PER_FRAME=4;var l=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(i.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(m),this.registerFindHook(u),this.registerFindHook(c),this.registerFindHook(f),this.registerUploadHook(h),this.registerUploadHook(d)}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,i.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=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 u(e,t){var n=!1;if(e&&e._textures&&e._textures.length)for(var r=0;rh))return!1;var p=c.get(e);if(p&&c.get(t))return p==t;var m=-1,g=!0,v=n&s?new r:void 0;for(c.set(e,t),c.set(t,e);++m=t||n<0||v&&e-m>=f}function x(){var e=i();if(_(e))return w(e);d=setTimeout(x,function(e){var n=t-(e-p);return v?l(n,f-(e-m)):n}(e))}function w(e){return d=void 0,y&&u?b(e):(u=c=void 0,h)}function E(){var e=i(),n=_(e);if(u=arguments,c=this,p=e,n){if(void 0===d)return function(e){return m=e,d=setTimeout(x,t),g?b(e):h}(p);if(v)return d=setTimeout(x,t),b(p)}return void 0===d&&(d=setTimeout(x,t)),h}return t=o(t)||0,r(n)&&(g=!!n.leading,f=(v="maxWait"in n)?s(o(n.maxWait)||0,t):f,y="trailing"in n?!!n.trailing:y),E.cancel=function(){void 0!==d&&clearTimeout(d),m=0,u=p=c=d=void 0},E.flush=function(){return void 0===d?h:w(i())},E}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ColorWrap=void 0;var r=Object.assign||function(e){for(var t=1;t2&&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=r,this._y=i,this.cb=t,this.scope=n}return e.prototype.clone=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return new e(t||this.cb,n||this.scope,this._x,this._y)},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))},e.prototype.equals=function(e){return e.x===this._x&&e.y===this._y},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=i},function(e,t,n){"use strict";t.__esModule=!0;var r,i=n(76),o=(r=i)&&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],l=[0,-1,-1,-1,0,1,1,1,0,1,1,1,0,-1,-1,-1],u=[1,1,0,-1,-1,-1,0,1,-1,-1,0,1,1,1,0,-1],c=[],f=[];function h(e){return e<0?-1:e>0?1:0}!function(){for(var e=0;e<16;e++){var t=[];f.push(t);for(var n=0;n<16;n++)for(var r=h(a[e]*a[n]+l[e]*s[n]),i=h(s[e]*a[n]+u[e]*s[n]),d=h(a[e]*l[n]+l[e]*u[n]),p=h(s[e]*l[n]+u[e]*u[n]),m=0;m<16;m++)if(a[m]===r&&s[m]===i&&l[m]===d&&u[m]===p){t.push(m);break}}for(var g=0;g<16;g++){var v=new o.default;v.set(a[g],s[g],l[g],u[g],0,0),c.push(v)}}();var d={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 l[e]},vY:function(e){return u[e]},inv:function(e){return 8&e?15&e:7&-e},add:function(e,t){return f[e][t]},sub:function(e,t){return f[e][d.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?d.S:d.N:2*Math.abs(t)<=Math.abs(e)?e>0?d.E:d.W:t>0?e>0?d.SE:d.SW:e>0?d.NE:d.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,i=c[d.inv(t)];i.tx=n,i.ty=r,e.append(i)}};t.default=d},function(e,t){e.exports=function(e,t,n){var r;if(n){var i=n.tempAttribState,o=n.attribState;for(r=0;r2&&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,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=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,l=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=i,this.skew.x=o,this.skew.y=a,this.pivot.x=s,this.pivot.y=l,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},r(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";t.__esModule=!0;var r,i=function(){function e(e,t){for(var n=0;n1&&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=o.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,i=n(143),o=(r=i)&&r.__esModule?r:{default:r};var a=void 0},function(e,t,n){"use strict";var r=n(382),i=n(383);function o(){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=b,t.resolve=function(e,t){return b(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?b(e,!1,!0).resolveObject(t):t},t.format=function(e){i.isString(e)&&(e=b(e));return e instanceof o?e.format():o.prototype.format.call(e)},t.Url=o;var a=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,l=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,u=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),c=["'"].concat(u),f=["%","/","?",";","#"].concat(c),h=["/","?","#"],d=/^[+a-z0-9A-Z_-]{0,63}$/,p=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,m={javascript:!0,"javascript:":!0},g={javascript:!0,"javascript:":!0},v={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},y=n(384);function b(e,t,n){if(e&&i.isObject(e)&&e instanceof o)return e;var r=new o;return r.parse(e,t,n),r}o.prototype.parse=function(e,t,n){if(!i.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var o=e.indexOf("?"),s=-1!==o&&o127?D+="x":D+=R[I];if(!D.match(d)){var N=M.slice(0,C),L=M.slice(C+1),F=R.match(p);F&&(N.push(F[1]),L.unshift(F[2])),L.length&&(b="/"+L.join(".")+b),this.hostname=N.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),k||(this.hostname=r.toASCII(this.hostname));var B=this.port?":"+this.port:"",U=this.hostname||"";this.host=U+B,this.href+=this.host,k&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==b[0]&&(b="/"+b))}if(!m[w])for(C=0,A=c.length;C0)&&n.host.split("@"))&&(n.auth=k.shift(),n.host=n.hostname=k.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 S=E.slice(-1)[0],O=(n.host||e.host||E.length>1)&&("."===S||".."===S)||""===S,C=0,P=E.length;P>=0;P--)"."===(S=E[P])?E.splice(P,1):".."===S?(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 k,M=""===E[0]||E[0]&&"/"===E[0].charAt(0);T&&(n.hostname=n.host=M?"":E.length?E.shift():"",(k=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=k.shift(),n.host=n.hostname=k.shift()));return(x=x||n.host&&E.length)&&!M&&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},o.prototype.parseHost=function(){var e=this.host,t=s.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;var r=function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2])||arguments[2];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 o=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,e.call(this,n,r));return o.width=n.videoWidth,o.height=n.videoHeight,o._autoUpdate=!0,o._isAutoUpdating=!1,o.autoPlay=i,o.update=o.update.bind(o),o._onCanPlay=o._onCanPlay.bind(o),n.addEventListener("play",o._onPlayStart.bind(o)),n.addEventListener("pause",o._onPlayStop.bind(o)),o.hasLoaded=!1,o.__loaded=!1,o._isSourceReady()?o._onCanPlay():(n.addEventListener("canplay",o._onCanPlay),n.addEventListener("canplaythrough",o._onCanPlay)),o}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,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&&(a.shared.add(this.update,this,s.UPDATE_PRIORITY.HIGH),this._isAutoUpdating=!0)},t.prototype._onPlayStop=function(){this._isAutoUpdating&&(a.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&&a.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,r){e._pixiId||(e._pixiId="video_"+(0,o.uid)());var a=o.BaseTextureCache[e._pixiId];return a||(a=new t(e,n,r),i.default.addToCache(a,e._pixiId)),a},t.fromUrl=function(e,n,r,i){var o=document.createElement("video");o.setAttribute("webkit-playsinline",""),o.setAttribute("playsinline","");var a=Array.isArray(e)?e[0].src||e[0]:e.src||e;if(void 0===r&&0!==a.indexOf("data:")?o.crossOrigin=(0,l.default)(a):r&&(o.crossOrigin="string"==typeof r?r:"anonymous"),Array.isArray(e))for(var s=0;s0&&void 0!==arguments[0]?arguments[0]:100,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,o=arguments[2],a=arguments[3];!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"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,null,o));return s.resolution=a||i.default.RESOLUTION,s.width=Math.ceil(n),s.height=Math.ceil(r),s.realWidth=s.width*s.resolution,s.realHeight=s.height*s.resolution,s.scaleMode=void 0!==o?o:i.default.SCALE_MODE,s.hasLoaded=!0,s._glRenderTargets={},s._canvasRenderTarget=null,s.valid=!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 "+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,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}(r.default);t.default=a},function(e,t,n){"use strict";t.__esModule=!0;var r,i=function(){function e(e,t){for(var n=0;n 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";t.__esModule=!0;var r,i=function(){function e(e,t){for(var n=0;n=0;n--){var r=t[n].trim();!/([\"\'])[^\'\"]+\1/.test(r)&&s.indexOf(r)<0&&(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=c(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=c(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;n3&&void 0!==arguments[3]?arguments[3]:e._canvas;r=null==r?n.wordWrap:r;var o=n.toFontString(),a=e.measureFont(o),s=i.getContext("2d");s.font=o;for(var l=(r?e.wordWrap(t,n,i):t).split(/(?:\r\n|\r|\n)/),u=new Array(l.length),c=0,f=0;f2&&void 0!==arguments[2]?arguments[2]:e._canvas).getContext("2d"),i=0,o="",a="",s={},l=n.letterSpacing,u=n.whiteSpace,c=e.collapseSpaces(u),f=e.collapseNewlines(u),h=!c,d=n.wordWrapWidth+l,p=e.tokenize(t),m=0;md)if(""!==o&&(a+=e.addLine(o),o="",i=0),e.canBreakWords(g,n.breakWords))for(var _=g.split(""),x=0;x<_.length;x++){for(var w=_[x],E=1;_[x+E];){var T=_[x+E],S=w[w.length-1];if(e.canBreakChars(S,T,g,x,n.breakWords))break;w+=T,E++}x+=w.length-1;var O=e.getFromCache(w,l,s,r);O+i>d&&(a+=e.addLine(o),h=!1,o="",i=0),o+=w,i+=O}else{o.length>0&&(a+=e.addLine(o),o="",i=0);var C=m===p.length-1;a+=e.addLine(g,!C),h=!1,o="",i=0}else b+i>d&&(h=!1,a+=e.addLine(o),o="",i=0),(o.length>0||!e.isBreakingSpace(g)||h)&&(o+=g,i+=b)}return a+=e.addLine(o,!1)},e.addLine=function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return t=e.trimRight(t),t=n?t+"\n":t},e.getFromCache=function(e,t,n,r){var i=n[e];if(void 0===i){var o=e.length*t;i=r.measureText(e).width+o,n[e]=i}return i},e.collapseSpaces=function(e){return"normal"===e||"pre-line"===e},e.collapseNewlines=function(e){return"normal"===e},e.trimRight=function(t){if("string"!=typeof t)return"";for(var n=t.length-1;n>=0;n--){var r=t[n];if(!e.isBreakingSpace(r))break;t=t.slice(0,-1)}return t},e.isNewline=function(t){return"string"==typeof t&&e._newlines.indexOf(t.charCodeAt(0))>=0},e.isBreakingSpace=function(t){return"string"==typeof t&&e._breakingSpaces.indexOf(t.charCodeAt(0))>=0},e.tokenize=function(t){var n=[],r="";if("string"!=typeof t)return n;for(var i=0;is;--h){for(var g=0;g0&&void 0!==arguments[0]?arguments[0]:"";t?delete e._fonts[t]:e._fonts={}},e}();t.default=r;var i=document.createElement("canvas");i.width=i.height=10,r._canvas=i,r._context=i.getContext("2d"),r._fonts={},r.METRICS_STRING="|Éq",r.BASELINE_SYMBOL="M",r.BASELINE_MULTIPLIER=1.4,r._newlines=[10,13],r._breakingSpaces=[9,32,8192,8193,8194,8195,8196,8197,8198,8200,8201,8202,8287,12288]},function(e,t,n){"use strict";t.__esModule=!0;var r=function(){function e(t,n,r,i,o,a,s,l,u){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.lineWidth=t,this.lineAlignment=u,this.nativeLines=s,this.lineColor=n,this.lineAlpha=r,this._lineTint=n,this.fillColor=i,this.fillAlpha=o,this._fillTint=i,this.fill=a,this.holes=[],this.shape=l,this.type=l.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,this.lineAlignment)},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(e,t){for(var n=0;n=n&&(s=e-l-1),u=u.replace("%value%",t[s]),a+=u,a+="\n"}return o=(o=o.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]},i=["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){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;var r=function(){function e(e,t){for(var n=0;n>2,o[1]=(3&i[0])<<4|i[1]>>4,o[2]=(15&i[1])<<2|i[2]>>6,o[3]=63&i[2],n-(e.length-1)){case 2:o[3]=64,o[2]=64;break;case 1:o[3]=64}for(var s=0;s0},e}();t.default=r},function(e,t,n){"use strict";function r(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}n.d(t,"a",function(){return r})},function(e,t,n){var r,i,o,a;function s(e){return(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})(e)}a=function(){"use strict";function e(e,t){var n=this,r=l.bind(n.start,n),o=l.bind(n.drag,n),s=l.bind(n.stop,n);if(!i(e))throw new TypeError("Draggable expects argument 0 to be an Element");t=l.assign({},a,t),l.assign(n,{element:e,handle:t.handle&&i(t.handle)?t.handle:e,handlers:{start:{mousedown:r,touchstart:r},move:{mousemove:o,mouseup:s,touchmove:o,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 null!=e}function i(e){return e instanceof Element||"undefined"!=typeof HTMLDocument&&e instanceof HTMLDocument}function o(){}var a={grid:0,filterTarget:null,limit:{x:null,y:null},threshold:0,setCursor:!1,setPosition:!0,smoothDrag:!0,useGPU:!0,onDrag:o,onDragStart:o,onDragEnd:o},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}}()},l={assign:function(){for(var e=arguments[0],t=arguments.length,n=1;t>n;n++){var r=arguments[n];for(var i in r)e[i]=r[i]}return e},bind:function(e,t){return function(){e.apply(t,arguments)}},on:function(e,t,n){if(t&&n)l.addEvent(e,t,n);else if(t)for(var r in t)l.addEvent(e,r,t[r])},off:function(e,t,n){if(t&&n)l.removeEvent(e,t,n);else if(t)for(var r in t)l.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 l.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,i=(t.handle,r.style),o=n(r),a=t.options,u=s.transform,c=t._dimensions={height:r.offsetHeight,left:r.offsetLeft,top:r.offsetTop,width:r.offsetWidth};a.useGPU&&u&&("none"===(e=o[u])&&(e=""),i[u]=e+" translate3d(0,0,0)"),a.setPosition&&(i.display="block",i.left=c.left+"px",i.top=c.top+"px",i.bottom=i.right="auto",i.margin=0,i.position="absolute"),a.setCursor&&(i.cursor="move"),t.setLimit(a.limit),l.assign(t.dragEvent,{x:c.left,y:c.top}),l.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(),l.on(document,t.handlers.move))},drag:function(e){var t=this,n=t.dragEvent,r=t.element,i=t._cursor,o=t._dimensions,a=t.options,s=o.zoom,l=t.getCursor(e),u=a.threshold,c=(l.x-i.x)/s+o.left,f=(l.y-i.y)/s+o.top;!n.started&&u&&Math.abs(i.x-l.x)div{height:100%}.user-panel .login-panel-main{position:relative;z-index:2;height:100%}.user-panel .login-panel-main.fadeout{-webkit-animation:login-fade-out .5s ease forwards;animation:login-fade-out .5s ease forwards;z-index:1}.user-panel .login-panel-main.fadein{-webkit-animation:login-fade-in .2s ease-out forwards;animation:login-fade-in .2s ease-out forwards}.user-panel .login-panel-main .avatar-container{height:40%;padding-top:15px;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;-webkit-transform:translateX(-10px);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;-webkit-transform:translate(20px,15px);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 .user-input-container .submit-row .left,.user-panel .login-panel-main .login-session-switcher .login-session-item,.user-panel .login-panel-main .session-button{font-size:.75em;height:30px;font-weight:700;font-style:italic;line-height:1.2em;vertical-align:middle;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;padding-top:8px;padding-left:10px;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 .user-input-container .submit-row .left .text,.user-panel .login-panel-main .login-session-switcher .login-session-item .text,.user-panel .login-panel-main .session-button .text{display:inline-block;-webkit-transform:translateX(0) scale(1);transform:translateX(0) scale(1);transition:-webkit-transform .2s ease-out;transition:transform .2s ease-out;transition:transform .2s ease-out,-webkit-transform .2s ease-out}.user-panel .login-panel-main .login-form .user-input-container .submit-row .left:hover,.user-panel .login-panel-main .login-session-switcher .login-session-item:hover,.user-panel .login-panel-main .session-button:hover{cursor:pointer}.user-panel .login-panel-main .login-form{height:55%;display:block}.user-panel .login-panel-main .login-form .user-username{text-align:center;font-size:2.66em;font-style:italic;font-weight:700}.user-panel .login-panel-main .login-form .user-input-container{-webkit-animation:slide-in-right .2s cubic-bezier(.215,.61,.355,1) both;animation:slide-in-right .2s cubic-bezier(.215,.61,.355,1) both}.user-panel .login-panel-main .login-form .user-input-container.animate-out{-webkit-animation:slide-out-right .2s cubic-bezier(.55,.055,.675,.19) both;animation:slide-out-right .2s cubic-bezier(.55,.055,.675,.19) both;height:0}.user-panel .login-panel-main .login-form .user-input-container .user-password-container{margin:15px auto;width:200px}.user-panel .login-panel-main .login-form .user-input-container .user-password{color:#fff;background:none;outline:none;border:none;border-bottom:2px solid rgba(0,0,0,.06);border-radius:3px;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-input-container .user-password:active,.user-panel .login-panel-main .login-form .user-input-container .user-password:focus{border-bottom:2px solid hsla(0,0%,100%,.6)}.user-panel .login-panel-main .login-form .user-input-container .user-password::-webkit-input-placeholder{color:hsla(0,0%,100%,.4)}.user-panel .login-panel-main .login-form .user-input-container .user-password.error{-webkit-animation:error-shake .6s forwards;animation:error-shake .6s forwards}.user-panel .login-panel-main .login-form .user-input-container .user-password.error,.user-panel .login-panel-main .login-form .user-input-container .user-password.error:active,.user-panel .login-panel-main .login-form .user-input-container .user-password.error:focus{border-bottom:2px solid rgba(175,3,3,.6)}.user-panel .login-panel-main .login-form .user-input-container .user-password.error::-webkit-input-placeholder{color:#af0303}.user-panel .login-panel-main .login-form .user-input-container .submit-row{display:flex;margin:0 auto;width:200px}.user-panel .login-panel-main .login-form .user-input-container .submit-row .left{flex-grow:1;margin-right:15px;background-image:url(src/img/dropdown-caret.png);background-repeat:no-repeat;background-position:90% 50%;transition:background-position .2s ease-in-out}.user-panel .login-panel-main .login-form .user-input-container .submit-row .left:hover{background-position:90% 55%}.user-panel .login-panel-main .login-form .user-input-container .submit-row .right .submit-button{box-shadow:0 2px 3px rgba(0,0,0,.05)}.user-panel .login-panel-main .login-form .user-input-container .submit-row .right .submit-button:hover{cursor:pointer}.user-panel .login-panel-main .login-form .user-input-container .submit-row .right .submit-button:hover polygon{-webkit-transform:translateX(2px);transform:translateX(2px)}.user-panel .login-panel-main .login-form .user-input-container .submit-row .right .submit-button>div{border-radius:4px;height:30px;box-shadow:0 2px 3px rgba(0,0,0,.05)}.user-panel .login-panel-main .login-form .user-input-container .submit-row .right .submit-button input[type=submit]{display:none}.user-panel .login-panel-main .login-form .user-input-container .submit-row .right .submit-button svg{height:30px;-webkit-filter:drop-shadow(0 2px 1px rgba(0,0,0,.1));filter:drop-shadow(0 2px 1px rgba(0,0,0,.1))}.user-panel .login-panel-main .login-form .user-input-container .submit-row .right .submit-button svg circle{r:0}.user-panel .login-panel-main .login-form .user-input-container .submit-row .right .submit-button svg polygon{fill:currentColor;stroke:rgba(42,19,15,.05);stroke-width:1px;-webkit-transform:scale(1) translateX(0);transform:scale(1) translateX(0);-webkit-transform-origin:center;transform-origin:center;transition:all .2s cubic-bezier(.64,.15,.18,.52)}.user-panel .login-panel-main .login-session-switcher{display:flex;flex-wrap:wrap;justify-content:space-between;margin-top:20px}.user-panel .login-panel-main .login-session-switcher.no-justify{justify-content:normal}.user-panel .login-panel-main .login-session-switcher.no-justify .login-session-item{margin-right:10px}.user-panel .login-panel-main .login-session-switcher ._transform-wrapper{-webkit-transform:translateY(0);transform:translateY(0);transition:-webkit-transform .35s cubic-bezier(.4,0,.2,1);transition:transform .35s cubic-bezier(.4,0,.2,1);transition:transform .35s cubic-bezier(.4,0,.2,1),-webkit-transform .35s cubic-bezier(.4,0,.2,1)}.user-panel .login-panel-main .login-session-switcher .login-session-item{opacity:0;margin-bottom:10px;width:125px}.user-panel .login-panel-main .login-session-switcher.active .login-session-item{-webkit-animation:slide-in-left .3s cubic-bezier(.215,.61,.355,1) forwards;animation:slide-in-left .3s cubic-bezier(.215,.61,.355,1) forwards}.user-panel .login-panel-main .login-session-switcher.active ._transform-wrapper:hover{-webkit-transform:translateY(-2px);transform:translateY(-2px)}.user-panel .login-panel-main .login-session-switcher.active ._transform-wrapper:active{-webkit-transform:translateY(2px);transform:translateY(2px)}.user-panel .login-panel-switcher{display:block;opacity:0;position:relative;top:-100%;z-index:1;height:100%}.user-panel .login-panel-switcher.active{-webkit-animation:switcher-fade-in .2s ease-out forwards;animation:switcher-fade-in .2s ease-out forwards;-webkit-animation-delay:.15s;animation-delay:.15s;z-index:2}.user-panel .login-panel-switcher.fadeout{-webkit-animation:switcher-fade-out .2s ease-out forwards;animation:switcher-fade-out .2s ease-out forwards}.user-panel .login-panel-switcher ul{list-style-type:none;-webkit-transform-style:preserve-3d;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;-webkit-transform:translateX(-10px);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;-webkit-transform:translate(20px,15px);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{-webkit-transform:translateZ(10px);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{-webkit-transform:translate3d(50px,0,-10px) scale(.9);transform:translate3d(50px,0,-10px) scale(.9)}.user-panel .login-panel-switcher li.next{-webkit-transform:translate3d(-50px,0,-10px) scale(.9);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{-webkit-animation:drop-in-options .2s forwards;animation:drop-in-options .2s forwards;-webkit-animation-timing-function:ease-out;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;max-width:900px;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:"×";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:"✔";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;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:opacity .3s ease}.settings-toggler:hover{cursor:pointer;opacity:1}.settings-general{display:flex;padding:25px 0}.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 0}.settings-style .left{padding:25px;width:40%}.settings-style .right{display:flex;justify-content:space-between;padding:25px;width:100%}.settings-style .right>ul{width:47%}.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%;display:flex;line-height:1.2em}.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:grey}.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);-webkit-transform:translateY(0);transform:translateY(0);transition:box-shadow .25s ease-in,border .25s ease-in,-webkit-transform .25s ease-in;transition:transform .25s ease-in,box-shadow .25s ease-in,border .25s ease-in;transition:transform .25s ease-in,box-shadow .25s ease-in,border .25s ease-in,-webkit-transform .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);-webkit-transform:translateY(-3px);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){"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 i=(a=r,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */"),o=r.sources.map(function(e){return"/*# sourceURL="+r.sourceRoot+e+" */"});return[n].concat(o).concat([i]).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={},i=0;i=0&&c.splice(t,1)}function g(e){var t=document.createElement("style");if(void 0===e.attrs.type&&(e.attrs.type="text/css"),void 0===e.attrs.nonce){var r=function(){0;return n.nc}();r&&(e.attrs.nonce=r)}return v(t,e.attrs),p(e,t),t}function v(e,t){Object.keys(t).forEach(function(n){e.setAttribute(n,t[n])})}function y(e,t){var n,r,i,o;if(t.transform&&e.css){if(!(o="function"==typeof t.transform?t.transform(e.css):t.transform.default(e.css)))return function(){};e.css=o}if(t.singleton){var a=u++;n=l||(l=g(t)),r=x.bind(null,n,a,!1),i=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",v(t,e.attrs),p(e,t),t}(t),r=function(e,t,n){var r=n.css,i=n.sourceMap,o=void 0===t.convertToAbsoluteUrls&&i;(t.convertToAbsoluteUrls||o)&&(r=f(r));i&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */");var a=new Blob([r],{type:"text/css"}),s=e.href;e.href=URL.createObjectURL(a),s&&URL.revokeObjectURL(s)}.bind(null,n,t),i=function(){m(n),n.href&&URL.revokeObjectURL(n.href)}):(n=g(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),i=function(){m(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 i()}}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=d(e,t);return h(n,t),function(e){for(var r=[],i=0;iA.length&&A.push(e)}function I(e,t,n){return null==e?0:function e(t,n,r,i){var s=typeof t;"undefined"!==s&&"boolean"!==s||(t=null);var l=!1;if(null===t)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(t.$$typeof){case o:case a:l=!0}}if(l)return r(i,t,""===n?"."+j(t,0):n),1;if(l=0,n=""===n?".":n+":",Array.isArray(t))for(var u=0;uthis.eventPool.length&&this.eventPool.push(e)}function fe(e){e.eventPool=[],e.getPooled=ue,e.release=ce}i(le.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=ae)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=ae)},persist:function(){this.isPersistent=ae},isPersistent:se,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=se,this._dispatchInstances=this._dispatchListeners=null}}),le.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},le.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var o=new t;return i(o,n.prototype),n.prototype=o,n.prototype.constructor=n,n.Interface=i({},r.Interface,e),n.extend=r.extend,fe(n),n},fe(le);var he=le.extend({data:null}),de=le.extend({data:null}),pe=[9,13,27,32],me=G&&"CompositionEvent"in window,ge=null;G&&"documentMode"in document&&(ge=document.documentMode);var ve=G&&"TextEvent"in window&&!ge,ye=G&&(!me||ge&&8=ge),be=String.fromCharCode(32),_e={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},xe=!1;function we(e,t){switch(e){case"keyup":return-1!==pe.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function Ee(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Te=!1;var Se={eventTypes:_e,extractEvents:function(e,t,n,r){var i=void 0,o=void 0;if(me)e:{switch(e){case"compositionstart":i=_e.compositionStart;break e;case"compositionend":i=_e.compositionEnd;break e;case"compositionupdate":i=_e.compositionUpdate;break e}i=void 0}else Te?we(e,n)&&(i=_e.compositionEnd):"keydown"===e&&229===n.keyCode&&(i=_e.compositionStart);return i?(ye&&"ko"!==n.locale&&(Te||i!==_e.compositionStart?i===_e.compositionEnd&&Te&&(o=oe()):(re="value"in(ne=r)?ne.value:ne.textContent,Te=!0)),i=he.getPooled(i,t,n,r),o?i.data=o:null!==(o=Ee(n))&&(i.data=o),W(i),o=i):o=null,(e=ve?function(e,t){switch(e){case"compositionend":return Ee(t);case"keypress":return 32!==t.which?null:(xe=!0,be);case"textInput":return(e=t.data)===be&&xe?null:e;default:return null}}(e,n):function(e,t){if(Te)return"compositionend"===e||!me&&we(e,t)?(e=oe(),ie=re=ne=null,Te=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1