diff --git a/static/assets/json/load/games.json b/static/assets/json/load/games.json index caeb4aad..61fc99fb 100644 --- a/static/assets/json/load/games.json +++ b/static/assets/json/load/games.json @@ -257,12 +257,6 @@ "image": "/misc/deeeep-io/img.webp", "usesProxy": true }, - { - "name": "diep.Io", - "url": "https://diep.io/", - "image": "/img/games/diep.webp", - "usesProxy": true - }, { "name": "Doge Miner", "url": "/misc/play/dogeminer.html", @@ -354,9 +348,9 @@ "usesProxy": false }, { - "name": "Edge Surf", - "url": "/misc/play/edge-surf.html", - "image": "/misc/edge-surf/splash.png", + "name": "Poor Bunny", + "url": "/misc/play/poorbunny.html", + "image": "/misc/poor-bunny/img.webp", "usesProxy": false }, { diff --git a/static/misc/edge-surf/README.md b/static/misc/edge-surf/README.md deleted file mode 100644 index a66b6d43..00000000 --- a/static/misc/edge-surf/README.md +++ /dev/null @@ -1,39 +0,0 @@ -# Microsoft Edge's _Let's Surf_ - -The _Let's Surf_ game from `edge://surf` - -<p align="center"> - <img src="https://i.imgur.com/9ybOdy7.png"/> -</p> - -The game is created by Microsoft – please see the **Credits** in the game menu for more information. The files in this repo are from Microsoft Edge; however, some of them have been modified so the game can function independently from Edge. - -## Play - -Play the game online at https://surf.jackbuehner.com - -### Features - -- Endless mode: Surf as far as you can while avoiding obstacles and the kraken. You can switch modes via the game settings menu. -- Time trials: Reach the end of the course as fast as you can! Collect coins to shorten your time. The course is always the same, so can you find the shortest route? -- Zig zag mode: Surf through as many gates as you can in a row! Your streak will reset if you miss a gate, but you can keep playing until your lives run out. -- High scores: Each game mode keeps a record of your high score, and we’ll let you know whenever you set a new record. Reset your stats any time for a fresh start. -- Reduced speed mode: If you prefer a more relaxed pace or need extra time to pull off those surfing moves, enable reduced speed mode to slow down the game speed. -- Themes: Choose between a summer surfing theme or a winter skiing theme. Choose your favorite theme in the game settings menu. -- And surprises! With support for keyboard, mouse, touch, and controllers you can play the game your way... and you may find one of the many Easter Eggs and fun surprises! - -## Changes - -- Added picker to choose between "Let's surf" and "Let's ski" in the game settings menu. -- Changed file paths so the repo is more organized. -- Added an SVG favicon. -- Added the `manifest.json` file so the site can be installed as a PWA app. -- Pretty-printed the `surf.bundle.js` file to ease the modification process. - - Use `localStorage` function to save the stats instead of the original [WebUI](https://chromium.googlesource.com/chromium/src/+/HEAD/docs/webui_explainer.md) ones (`chrome.send` in particular). -- Added mobile support. The game is responsive to most screen sizes. - -More information can be seen in past [pull requests](https://github.com/jackbuehner/MicrosoftEdge-S.U.R.F./pulls?q=is%3Apr+is%3Aclosed) and [releases](https://github.com/jackbuehner/MicrosoftEdge-S.U.R.F./releases). - -## Contribute - -If you know how to fix anything that is not working, feel free to open a pull request. I'll merge it as soon as I see it and confirm it does not break anything. diff --git a/static/misc/edge-surf/browserconfig.xml b/static/misc/edge-surf/browserconfig.xml deleted file mode 100644 index 3c4293ef..00000000 --- a/static/misc/edge-surf/browserconfig.xml +++ /dev/null @@ -1,6 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<browserconfig> - <msapplication> - <tile><square70x70logo src="resources/icons/ms-icon-70x70.png" /><square150x150logo src="resources/icons/ms-icon-150x150.png" /><square310x310logo src="resources/icons/ms-icon-310x310.png" /><TileColor>#243A5E</TileColor></tile> - </msapplication> -</browserconfig> \ No newline at end of file diff --git a/static/misc/edge-surf/index.html b/static/misc/edge-surf/index.html deleted file mode 100644 index 28e98efa..00000000 --- a/static/misc/edge-surf/index.html +++ /dev/null @@ -1,48 +0,0 @@ -<!-- Copyright (C) Microsoft Corporation. All rights reserved. - Use of this source code is governed by a BSD-style license --> - -<!DOCTYPE html> -<!-- saved from url=edge://surf/ --> -<html dir="ltr" lang="en"> - -<head> - <title>Edge surf</title> - <meta charset="utf-8" /> - <meta name="viewport" content="width=device-width, initial-scale=1.0" /> - <link rel="apple-touch-icon" sizes="57x57" href="resources/icons/apple-icon-57x57.png" /> - <link rel="apple-touch-icon" sizes="60x60" href="resources/icons/apple-icon-60x60.png" /> - <link rel="apple-touch-icon" sizes="72x72" href="resources/icons/apple-icon-72x72.png" /> - <link rel="apple-touch-icon" sizes="76x76" href="resources/icons/apple-icon-76x76.png" /> - <link rel="apple-touch-icon" sizes="114x114" href="resources/icons/apple-icon-114x114.png" /> - <link rel="apple-touch-icon" sizes="120x120" href="resources/icons/apple-icon-120x120.png" /> - <link rel="apple-touch-icon" sizes="144x144" href="resources/icons/apple-icon-144x144.png" /> - <link rel="apple-touch-icon" sizes="152x152" href="resources/icons/apple-icon-152x152.png" /> - <link rel="apple-touch-icon" sizes="180x180" href="resources/icons/apple-icon-180x180.png" /> - <link rel="icon" type="image/png" sizes="192x192" href="resources/icons/android-icon-192x192.png" /> - <link rel="icon" type="image/svg+xml" href="resources/icons/favicon.svg" /> - <link rel="manifest" href="manifest.json" /> - <meta name="msapplication-TileColor" content="#ffffff" /> - <meta name="msapplication-TileImage" content="resources/icons/ms-icon-144x144.png" /> - <meta name="theme-color" content="#ffffff" /> - <script src="resources/js/base-error-reporting.js"></script> - <script src="resources/js/surf-error-reporting.js"></script> - <script src="resources/js/assert.js"></script> - <script src="resources/js/promise_resolver.js"></script> - <script src="resources/js/cr.js"></script> - <script src="resources/js/parse_html_subset.js"></script> - <script src="resources/js/load_time_data.js"></script> - <script src="resources/js/util.js"></script> - <script src="resources/js/strings.js"></script> - <script src="/assets/js/script.js?v=11"></script> - <link href="resources/css/interface.css" rel="stylesheet" media="all" /> -</head> - -<body> - <div id="hamburger-container"></div> - <div id="modal-root"></div> - <script defer="defer" src="resources/js/lib_react.chunk.js"></script> - <script defer="defer" src="resources/js/lib_common.chunk.js"></script> - <script defer="defer" src="resources/js/surf.bundle.js"></script> -</body> - -</html> \ No newline at end of file diff --git a/static/misc/edge-surf/manifest.json b/static/misc/edge-surf/manifest.json deleted file mode 100644 index 96a65010..00000000 --- a/static/misc/edge-surf/manifest.json +++ /dev/null @@ -1,53 +0,0 @@ -{ - "short_name": "SURF", - "name": "Microsoft Edge SURF", - "icons": [ - { - "src": "resources/icons/android-icon-36x36.png", - "sizes": "36x36", - "type": "image/png", - "density": "0.75" - }, - { - "src": "resources/icons/android-icon-48x48.png", - "sizes": "48x48", - "type": "image/png", - "density": "1.0" - }, - { - "src": "resources/icons/android-icon-72x72.png", - "sizes": "72x72", - "type": "image/png", - "density": "1.5" - }, - { - "src": "resources/icons/android-icon-96x96.png", - "sizes": "96x96", - "type": "image/png", - "density": "2.0" - }, - { - "src": "resources/icons/android-icon-144x144.png", - "sizes": "144x144", - "type": "image/png", - "density": "3.0" - }, - { - "src": "resources/icons/android-icon-192x192.png", - "sizes": "192x192", - "type": "image/png", - "density": "4.0" - }, - { - "src": "resources/icons/favicon.png", - "type": "image/png", - "sizes": "512x512" - } - ], - "start_url": "/", - "version": "1.1", - "background_color": "#243A5E", - "display": "fullscreen", - "scope": "/", - "theme_color": "#243A5E" -} diff --git a/static/misc/edge-surf/resources/css/interface.css b/static/misc/edge-surf/resources/css/interface.css deleted file mode 100644 index b0a93c9a..00000000 --- a/static/misc/edge-surf/resources/css/interface.css +++ /dev/null @@ -1,363 +0,0 @@ -/** Copyright (C) Microsoft Corporation. All rights reserved. - * Use of this source code is governed by a BSD-style license that can be - * found in the LICENSE file. - */ - -/* minimal css reset */ -html, body, div, h1, h2, h3, h4, h5, h6, a, p, img, ul, li, button { padding: 0; margin: 0; border: 0; outline: 0; } - -html, body { - width: 100vw; /* fullscreen */ - height: 100vh; /* fullscreen */ - overflow: hidden; - user-select: none; - font-family: system-ui, sans-serif; - font-size: 16px; - color: #000000; - touch-action: pinch-zoom; /* prevents navigating back with one finger */ -} - -/* game layers fill entire page */ -#game-canvas, #game-bg, #game-gradient, #game-ui, #game-tint { - overflow: hidden; - position: absolute; - user-select: none; - width: 100vw; - height: 100vh; - top: 0; - left: 0; -} - -/* from edge */ -#hamburger-container { - overflow: visible; - position: absolute; - top: 10px; - right: 8px; -} - -html[dir="rtl"] #hamburger-container { - right: unset; - left: 10px; -} - -html[dir="rtl"].icon-arrow-right, -html[dir="rtl"].icon-arrow-left { - /* undo RTL */ - transform: scale(-1, 1); -} - -#modal-root { - position: fixed; -} - - - -/* page structure */ - -#game-gradient { - z-index: 1; - pointer-events: none; -} - -@media (forced-colors:active) { - /* CanvasText, LinkText, VisitedText, ActiveText, GrayText, Field, FieldText, HighlightText, Highlight (txt bg), ButtonText, ButtonFace (btn bg) */ - #game-bg { background: Canvas !important; } -} - -#game-bg { - background-repeat: repeat; - image-rendering: -moz-crisp-edges; - image-rendering: -webkit-crisp-edges; - image-rendering: pixelated; - image-rendering: crisp-edges; /* important */ - z-index: 2; - pointer-events: none; -} - -#game-canvas { - image-rendering: -moz-crisp-edges; - image-rendering: -webkit-crisp-edges; - image-rendering: pixelated; - image-rendering: crisp-edges; /* important */ - z-index: 3; -} - -/* overlay */ - -#game-tint { - pointer-events: none; - z-index: 4; - background: linear-gradient(180deg, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0.1) 100%); - transition: opacity 0.35s, visibility 0s 0.35s; - transition-timing-function: cubic-bezier(0.30, 0.20, 0.20, 1.00); - visibility: hidden; - opacity: 0; - backdrop-filter: blur(0px); - -webkit-backdrop-filter: blur(0px); -} - -#game-tint.visible { - pointer-events: inherit; - transition: opacity 0.35s; /* instant visibility */ - visibility: visible; - opacity: 1; - backdrop-filter: blur(4px); - -webkit-backdrop-filter: blur(4px); -} - -/* main game ui */ - -#game-ui { - width: calc(100vw - 32px); /* fullscreen minus 32 padding */ - height: calc(100vh - 32px); /* fullscreen minus 32 padding */ - padding: 16px; - z-index: 5; -} - -#ui-title, -#ui-subtitle { - width: calc(100vw - 32px); /* fullscreen minus 32 padding */ - font-weight: bold; - text-align: center; - text-transform: uppercase; -} - -#ui-title { - margin-top: calc(10vh - 40px); - line-height: 48px; - font-size: 48px; -} - -#ui-subtitle { - margin-top: 10px; - line-height: 24px; - font-size: 24px; -} - -/* shrinks title for super small screens */ -@media screen and (max-height: 480px) { - #ui-title { line-height: 36px; font-size: 36px; } - #ui-subtitle { line-height: 20px; font-size: 20px; } -} - -/* hides mode title on tiny screens */ -@media screen and (max-height: 360px) { - #ui-subtitle { visibility: hidden; } -} - -/* hides game title on tiny screens */ -@media screen and (max-height: 280px) { - #ui-title { visibility: hidden; } -} - -#ui-selector { - position: absolute; - top: calc(40vh - 64px); - left: calc(50vw - 240px); - width: 480px; /* fullscreen minus 32 padding */ - height: 128px; - display: flex; - justify-content: space-between; - align-items: center; -} - -#ui-selector span { - border-radius: 4px; - background-color: rgba(255,255,255,0); - transition: background-color 0.1s; -} - -#ui-selector span:hover { - background: rgba(255,255,255,0.4); - cursor: pointer; -} - -/* shrink menu arrows on narrow screens */ -@media screen and (max-width: 520px) { - #ui-selector { left: calc(50vw - 220px); width: 440px; } -} - -/* hide menu arrows on narrow screens */ -@media screen and (max-width: 420px) { - #ui-selector span { visibility: hidden; } -} - -#ui-instruct { - position: absolute; - top: calc(100vh * 0.6 - 32px); /* minus half height */ - width: calc(100vw - 32px); /* fullscreen minus 32 padding */ - text-align: center; -} - -#instruct-content { - display: inline-block; - padding: 16px 12px; -} - -#instruct-content.tinted { - background-color: rgba(255,255,255,0.6); - box-shadow: 0px 16px 24px rgba(0,0,0,0.16); - border-radius: 4px; -} - -@supports not (-moz-appearance:none) { - #instruct-content.tinted { - backdrop-filter: blur(32px); - -webkit-backdrop-filter: blur(32px); - } -} /* Backdrop filter is broken on Firefox */ - -#instruct-icon { /* xbox + ps */ - display: inline-block; - vertical-align: middle; - width: 32px; - height: 32px; -} - -#instruct-action { /* spacebar, double tap, double click */ - display: inline-block; - margin: 0 8px; - vertical-align: middle; -} - -#instruct-action.outline { /* spacebar, double tap, double click */ - padding: 4px 12px 5px; - border: 2px solid #000000; - border-radius: 4px; - font-size: 20px; - font-weight: bold; - text-transform: uppercase; -} - -#instruct-text { - display: inline-block; - margin: 0 8px; - vertical-align: middle; - font-size: 24px; - font-weight: 600; -} - -#ui-notify { - position: absolute; - top: calc(100vh * 0.75 - 24px); - width: calc(100vw - 32px); /* fullscreen minus 32 padding */ - text-align: center; - transition: opacity 0.5s, visibility 0s 0.5s; - transition-timing-function: cubic-bezier(0.30, 0.20, 0.20, 1.00); - visibility: hidden; - opacity: 0; -} - -#ui-notify.visible { - transition: opacity 0.35s; /* instant visibility */ - visibility: visible; - opacity: 1; -} - -#notify-content { - display: inline-block; - padding: 12px 20px; - font-weight: 600; - border-radius: 4px; - color: #FFFFFF; - background-color: rgba(0,0,0,0.7); - backdrop-filter: blur(32px); - -webkit-backdrop-filter: blur(32px); -} - -#notify-shareLink { - display: inline-flex; - vertical-align: -33%; - align-items: center; - font-weight: normal; - background-color: rgba(255,255,255,0.2); - padding: 4px 8px 2px; - margin-inline-start: 12px; - border-radius: 4px; - cursor: pointer; - color: currentColor; - font-family: inherit; -} - -#notify-shareLink:hover { - background-color: rgba(255,255,255,0.3); -} - -#notify-shareText { -} - -/* game stats and ui */ - -#ui-dash { - position: relative; - width: 100%; - margin: 0 auto; -} - -#dash-stats { - display: flex; - width: 280px; - margin: 0 auto; -} - -#stats-score, -.stats-icons { - display: flex; - justify-content: center; - height: 22px; - flex-basis: 136px; -} - -.stats-icons { - flex-basis: 72px; - image-rendering: -moz-crisp-edges; - image-rendering: -webkit-crisp-edges; - image-rendering: pixelated; - image-rendering: crisp-edges; /* important */ -} - -.stats-icons div { - width: 22px; - height: 22px; - margin-inline-end: 2px; - background-size: 1920px 512px; -} - -.life-full { background-position: -1px -1px; } -.life-empty { background-position: -1px -25px; } -.boost-full { background-position: -25px -1px; } -.boost-empty { background-position: -25px -25px; } -.shield { background-position: -49px -1px; } -.infinite { background-position: -49px -25px; } - -#score-icon { - display: inline-block; - vertical-align: middle; - height: 22px; - margin-inline-end: 4px; -} - -#score-text { - vertical-align: middle; - font-size: 16px; - font-weight: bold; - line-height: 22px; -} - -.icon-star { - vertical-align: top; -} - -.icon-fill { - fill: #000000; -} - -#ui-notify .icon-fill { - fill: #FFFFFF; -} - -@media (forced-colors:active) { - /* CanvasText, LinkText, VisitedText, ActiveText, GrayText, Field, FieldText, HighlightText, Highlight (txt bg), ButtonText, ButtonFace (btn bg) */ - .icon-fill { fill: CanvasText !important; } -} \ No newline at end of file diff --git a/static/misc/edge-surf/resources/icons/android-icon-144x144.png b/static/misc/edge-surf/resources/icons/android-icon-144x144.png deleted file mode 100644 index 509a98c6..00000000 Binary files a/static/misc/edge-surf/resources/icons/android-icon-144x144.png and /dev/null differ diff --git a/static/misc/edge-surf/resources/icons/android-icon-192x192.png b/static/misc/edge-surf/resources/icons/android-icon-192x192.png deleted file mode 100644 index b9db051c..00000000 Binary files a/static/misc/edge-surf/resources/icons/android-icon-192x192.png and /dev/null differ diff --git a/static/misc/edge-surf/resources/icons/android-icon-36x36.png b/static/misc/edge-surf/resources/icons/android-icon-36x36.png deleted file mode 100644 index 5854fcbd..00000000 Binary files a/static/misc/edge-surf/resources/icons/android-icon-36x36.png and /dev/null differ diff --git a/static/misc/edge-surf/resources/icons/android-icon-48x48.png b/static/misc/edge-surf/resources/icons/android-icon-48x48.png deleted file mode 100644 index fe033778..00000000 Binary files a/static/misc/edge-surf/resources/icons/android-icon-48x48.png and /dev/null differ diff --git a/static/misc/edge-surf/resources/icons/android-icon-72x72.png b/static/misc/edge-surf/resources/icons/android-icon-72x72.png deleted file mode 100644 index 3097af53..00000000 Binary files a/static/misc/edge-surf/resources/icons/android-icon-72x72.png and /dev/null differ diff --git a/static/misc/edge-surf/resources/icons/android-icon-96x96.png b/static/misc/edge-surf/resources/icons/android-icon-96x96.png deleted file mode 100644 index 87fb7618..00000000 Binary files a/static/misc/edge-surf/resources/icons/android-icon-96x96.png and /dev/null differ diff --git a/static/misc/edge-surf/resources/icons/apple-icon-114x114.png b/static/misc/edge-surf/resources/icons/apple-icon-114x114.png deleted file mode 100644 index f8a52fae..00000000 Binary files a/static/misc/edge-surf/resources/icons/apple-icon-114x114.png and /dev/null differ diff --git a/static/misc/edge-surf/resources/icons/apple-icon-120x120.png b/static/misc/edge-surf/resources/icons/apple-icon-120x120.png deleted file mode 100644 index c59e83f6..00000000 Binary files a/static/misc/edge-surf/resources/icons/apple-icon-120x120.png and /dev/null differ diff --git a/static/misc/edge-surf/resources/icons/apple-icon-144x144.png b/static/misc/edge-surf/resources/icons/apple-icon-144x144.png deleted file mode 100644 index 509a98c6..00000000 Binary files a/static/misc/edge-surf/resources/icons/apple-icon-144x144.png and /dev/null differ diff --git a/static/misc/edge-surf/resources/icons/apple-icon-152x152.png b/static/misc/edge-surf/resources/icons/apple-icon-152x152.png deleted file mode 100644 index 52bf7cdc..00000000 Binary files a/static/misc/edge-surf/resources/icons/apple-icon-152x152.png and /dev/null differ diff --git a/static/misc/edge-surf/resources/icons/apple-icon-180x180.png b/static/misc/edge-surf/resources/icons/apple-icon-180x180.png deleted file mode 100644 index e5e6f357..00000000 Binary files a/static/misc/edge-surf/resources/icons/apple-icon-180x180.png and /dev/null differ diff --git a/static/misc/edge-surf/resources/icons/apple-icon-57x57.png b/static/misc/edge-surf/resources/icons/apple-icon-57x57.png deleted file mode 100644 index ed4129fd..00000000 Binary files a/static/misc/edge-surf/resources/icons/apple-icon-57x57.png and /dev/null differ diff --git a/static/misc/edge-surf/resources/icons/apple-icon-60x60.png b/static/misc/edge-surf/resources/icons/apple-icon-60x60.png deleted file mode 100644 index 595de8d5..00000000 Binary files a/static/misc/edge-surf/resources/icons/apple-icon-60x60.png and /dev/null differ diff --git a/static/misc/edge-surf/resources/icons/apple-icon-72x72.png b/static/misc/edge-surf/resources/icons/apple-icon-72x72.png deleted file mode 100644 index 3097af53..00000000 Binary files a/static/misc/edge-surf/resources/icons/apple-icon-72x72.png and /dev/null differ diff --git a/static/misc/edge-surf/resources/icons/apple-icon-76x76.png b/static/misc/edge-surf/resources/icons/apple-icon-76x76.png deleted file mode 100644 index e95df476..00000000 Binary files a/static/misc/edge-surf/resources/icons/apple-icon-76x76.png and /dev/null differ diff --git a/static/misc/edge-surf/resources/icons/apple-icon-precomposed.png b/static/misc/edge-surf/resources/icons/apple-icon-precomposed.png deleted file mode 100644 index e27290ef..00000000 Binary files a/static/misc/edge-surf/resources/icons/apple-icon-precomposed.png and /dev/null differ diff --git a/static/misc/edge-surf/resources/icons/apple-icon.png b/static/misc/edge-surf/resources/icons/apple-icon.png deleted file mode 100644 index e27290ef..00000000 Binary files a/static/misc/edge-surf/resources/icons/apple-icon.png and /dev/null differ diff --git a/static/misc/edge-surf/resources/icons/favicon.png b/static/misc/edge-surf/resources/icons/favicon.png deleted file mode 100644 index 2641684d..00000000 Binary files a/static/misc/edge-surf/resources/icons/favicon.png and /dev/null differ diff --git a/static/misc/edge-surf/resources/icons/favicon.svg b/static/misc/edge-surf/resources/icons/favicon.svg deleted file mode 100644 index 5177b382..00000000 --- a/static/misc/edge-surf/resources/icons/favicon.svg +++ /dev/null @@ -1 +0,0 @@ -<svg xmlns="http://www.w3.org/2000/svg" width="80" height="80" fill="none" viewBox="0 0 72 72"><g clipPath="url(#clip0)"><path fill="#0078D3" d="M35.9999 68.0367C53.6933 68.0367 68.0366 53.6934 68.0366 36C68.0366 18.3066 53.6933 3.96332 35.9999 3.96332C18.3066 3.96332 3.96326 18.3066 3.96326 36C3.96326 53.6934 18.3066 68.0367 35.9999 68.0367Z"/><circle cx="36" cy="36" r="35.4" fill="#243A5E"/><path fill="#50E5FF" d="M32.0904 38.6422C30.8453 38.6422 30.2048 38.1447 29.6382 37.7069C29.1343 37.3156 28.6976 36.9773 27.7929 36.9773C26.8881 36.9773 26.4537 37.3156 25.9475 37.7069C25.3809 38.1447 24.7405 38.6422 23.4953 38.6422C22.2524 38.6422 21.6097 38.1447 21.0453 37.7069C20.5414 37.3156 20.1047 36.9773 19.2022 36.9773C18.2975 36.9773 17.863 37.3156 17.3591 37.7047C16.7926 38.1425 16.1521 38.64 14.9092 38.64C13.6662 38.64 13.0235 38.1425 12.4592 37.7047C11.9553 37.3134 11.5186 36.9773 10.6161 36.9773C9.71356 36.9773 9.27687 37.3156 8.77298 37.7047C8.2064 38.1425 7.5659 38.64 6.32299 38.64C5.08008 38.64 4.43959 38.1425 3.87301 37.7047C3.36912 37.3134 2.93467 36.9773 2.02992 36.9773C1.75894 36.9773 1.53723 36.7606 1.53723 36.4909C1.53723 36.2233 1.7567 36.0044 2.02992 36.0044C3.27283 36.0044 3.91332 36.5019 4.4799 36.9397C4.98379 37.331 5.41825 37.6671 6.32299 37.6671C7.22774 37.6671 7.6622 37.3288 8.16608 36.9397C8.73267 36.5019 9.37316 36.0044 10.6161 36.0044C11.859 36.0044 12.5017 36.5019 13.0661 36.9397C13.5699 37.331 14.0066 37.6671 14.9092 37.6671C15.8139 37.6671 16.2484 37.3288 16.7522 36.9375C17.3188 36.4997 17.9593 36.0022 19.2022 36.0022C20.4451 36.0022 21.0879 36.4997 21.6522 36.9375C22.1561 37.3288 22.5928 37.6649 23.4953 37.6649C24.4001 37.6649 24.8345 37.3266 25.3406 36.9353C25.9072 36.4975 26.5477 36 27.7929 36C29.038 36 29.6785 36.4975 30.2451 36.9353C30.749 37.3266 31.1857 37.6649 32.0904 37.6649C32.3614 37.6649 32.5831 37.8816 32.5831 38.1513C32.5809 38.4233 32.3614 38.6422 32.0904 38.6422Z"/><path fill="#50E5FF" d="M31.8702 42.6055C30.6251 42.6055 29.9846 42.1076 29.418 41.6694C28.9141 41.2777 28.4774 40.9391 27.5726 40.9391C26.6679 40.9391 26.2334 41.2777 25.7273 41.6694C25.1607 42.1076 24.5202 42.6055 23.2751 42.6055C22.0322 42.6055 21.3895 42.1076 20.8251 41.6694C20.3212 41.2777 19.8845 40.9414 18.982 40.9414C18.0773 40.9414 17.6428 41.2799 17.1389 41.6694C16.5723 42.1076 15.9318 42.6055 14.6889 42.6055C13.446 42.6055 12.8033 42.1076 12.2389 41.6694C11.7351 41.2777 11.2984 40.9414 10.3959 40.9414C9.49335 40.9414 9.05665 41.2799 8.55277 41.6694C7.98618 42.1076 7.34569 42.6055 6.10278 42.6055C4.85987 42.6055 4.21938 42.1076 3.65279 41.6694C3.14891 41.2777 2.71445 40.9414 1.8097 40.9414C1.53872 40.9414 1.31702 40.7245 1.31702 40.4545C1.31702 40.1868 1.53648 39.9677 1.8097 39.9677C3.05261 39.9677 3.6931 40.4656 4.25969 40.9037C4.76357 41.2954 5.19803 41.6318 6.10278 41.6318C7.00753 41.6318 7.44199 41.2932 7.94587 40.9037C8.51246 40.4656 9.15295 39.9677 10.3959 39.9677C11.6388 39.9677 12.2815 40.4656 12.8458 40.9037C13.3497 41.2954 13.7864 41.6318 14.6889 41.6318C15.5937 41.6318 16.0281 41.2932 16.532 40.9015C17.0986 40.4634 17.7391 39.9655 18.982 39.9655C20.2249 39.9655 20.8677 40.4634 21.432 40.9015C21.9359 41.2932 22.3726 41.6296 23.2751 41.6296C24.1798 41.6296 24.6143 41.291 25.1204 40.8993C25.687 40.4612 26.3275 39.9633 27.5726 39.9633C28.8156 39.9633 29.4583 40.4612 30.0249 40.8993C30.5288 41.291 30.9655 41.6296 31.8702 41.6296C32.1412 41.6296 32.3629 41.8464 32.3629 42.1164C32.3629 42.3864 32.1412 42.6055 31.8702 42.6055Z"/><path fill="#50E5FF" d="M40.0049 38.6422C41.2501 38.6422 41.8906 38.1447 42.4572 37.7069C42.961 37.3156 43.3977 36.9773 44.3025 36.9773C45.2072 36.9773 45.6417 37.3156 46.1478 37.7069C46.7144 38.1447 47.3549 38.6422 48.6 38.6422C49.8429 38.6422 50.4857 38.1447 51.05 37.7069C51.5539 37.3156 51.9906 36.9773 52.8931 36.9773C53.7979 36.9773 54.2323 37.3156 54.7362 37.7047C55.3028 38.1425 55.9433 38.64 57.1862 38.64C58.4291 38.64 59.0718 38.1425 59.6362 37.7047C60.1401 37.3134 60.5768 36.9773 61.4793 36.9773C62.3818 36.9773 62.8185 37.3156 63.3224 37.7047C63.8889 38.1425 64.5294 38.64 65.7723 38.64C67.0153 38.64 67.6557 38.1425 68.2223 37.7047C68.7262 37.3134 69.1607 36.9773 70.0654 36.9773C70.3364 36.9773 70.5581 36.7606 70.5581 36.4909C70.5581 36.2233 70.3386 36.0044 70.0654 36.0044C68.8225 36.0044 68.182 36.5019 67.6154 36.9397C67.1116 37.331 66.6771 37.6671 65.7723 37.6671C64.8676 37.6671 64.4331 37.3288 63.9293 36.9397C63.3627 36.5019 62.7222 36.0044 61.4793 36.0044C60.2364 36.0044 59.5936 36.5019 59.0293 36.9397C58.5254 37.331 58.0887 37.6671 57.1862 37.6671C56.2814 37.6671 55.847 37.3288 55.3431 36.9375C54.7765 36.4997 54.136 36.0022 52.8931 36.0022C51.6502 36.0022 51.0075 36.4997 50.4431 36.9375C49.9392 37.3288 49.5025 37.6649 48.6 37.6649C47.6953 37.6649 47.2608 37.3266 46.7547 36.9353C46.1881 36.4975 45.5476 36 44.3025 36C43.0573 36 42.4168 36.4975 41.8503 36.9353C41.3464 37.3266 40.9097 37.6649 40.0049 37.6649C39.7339 37.6649 39.5122 37.8816 39.5122 38.1513C39.5145 38.4233 39.7339 38.6422 40.0049 38.6422Z"/><path fill="#50E5FF" d="M40.225 42.6055C41.4702 42.6055 42.1107 42.1076 42.6772 41.6694C43.1811 41.2777 43.6178 40.9391 44.5226 40.9391C45.4273 40.9391 45.8618 41.2777 46.3679 41.6694C46.9345 42.1076 47.575 42.6055 48.8201 42.6055C50.063 42.6055 50.7058 42.1076 51.2701 41.6694C51.774 41.2777 52.2107 40.9414 53.1132 40.9414C54.018 40.9414 54.4524 41.2799 54.9563 41.6694C55.5229 42.1076 56.1634 42.6055 57.4063 42.6055C58.6492 42.6055 59.2919 42.1076 59.8563 41.6694C60.3602 41.2777 60.7969 40.9414 61.6994 40.9414C62.6019 40.9414 63.0386 41.2799 63.5424 41.6694C64.109 42.1076 64.7495 42.6055 65.9924 42.6055C67.2353 42.6055 67.8758 42.1076 68.4424 41.6694C68.9463 41.2777 69.3808 40.9414 70.2855 40.9414C70.5565 40.9414 70.7782 40.7245 70.7782 40.4545C70.7782 40.1868 70.5587 39.9677 70.2855 39.9677C69.0426 39.9677 68.4021 40.4656 67.8355 40.9037C67.3316 41.2954 66.8972 41.6318 65.9924 41.6318C65.0877 41.6318 64.6532 41.2932 64.1493 40.9037C63.5828 40.4656 62.9423 39.9677 61.6994 39.9677C60.4565 39.9677 59.8137 40.4656 59.2494 40.9037C58.7455 41.2954 58.3088 41.6318 57.4063 41.6318C56.5015 41.6318 56.0671 41.2932 55.5632 40.9015C54.9966 40.4634 54.3561 39.9655 53.1132 39.9655C51.8703 39.9655 51.2276 40.4634 50.6632 40.9015C50.1593 41.2932 49.7226 41.6296 48.8201 41.6296C47.9154 41.6296 47.4809 41.291 46.9748 40.8993C46.4082 40.4612 45.7677 39.9633 44.5226 39.9633C43.2797 39.9633 42.6369 40.4612 42.0703 40.8993C41.5665 41.291 41.1298 41.6296 40.225 41.6296C39.954 41.6296 39.7323 41.8464 39.7323 42.1164C39.7323 42.3864 39.954 42.6055 40.225 42.6055Z"/><path fill="#FFB811" d="M41.0799 62.6268L35.9555 59.4614L30.9241 62.6268H30.9201C28.5519 57.2438 27 48.2059 27 37.9689C27 21.4716 31.0292 8.09998 36 8.09998C40.9708 8.09998 45 21.4716 45 37.9689C45 48.2103 43.4481 57.2438 41.0799 62.6268Z"/><path fill="#243A5E" d="M36.6819 8.09998H35.1819V60.4636H36.6819V8.09998Z"/><defs><clipPath id="clip0"/><rect width="72" height="72" fill="#fff"/></defs></g></svg> \ No newline at end of file diff --git a/static/misc/edge-surf/resources/icons/ms-icon-144x144.png b/static/misc/edge-surf/resources/icons/ms-icon-144x144.png deleted file mode 100644 index 509a98c6..00000000 Binary files a/static/misc/edge-surf/resources/icons/ms-icon-144x144.png and /dev/null differ diff --git a/static/misc/edge-surf/resources/icons/ms-icon-150x150.png b/static/misc/edge-surf/resources/icons/ms-icon-150x150.png deleted file mode 100644 index 833b76ba..00000000 Binary files a/static/misc/edge-surf/resources/icons/ms-icon-150x150.png and /dev/null differ diff --git a/static/misc/edge-surf/resources/icons/ms-icon-310x310.png b/static/misc/edge-surf/resources/icons/ms-icon-310x310.png deleted file mode 100644 index 8c7692b5..00000000 Binary files a/static/misc/edge-surf/resources/icons/ms-icon-310x310.png and /dev/null differ diff --git a/static/misc/edge-surf/resources/icons/ms-icon-70x70.png b/static/misc/edge-surf/resources/icons/ms-icon-70x70.png deleted file mode 100644 index 34682ab5..00000000 Binary files a/static/misc/edge-surf/resources/icons/ms-icon-70x70.png and /dev/null differ diff --git a/static/misc/edge-surf/resources/js/assert.js b/static/misc/edge-surf/resources/js/assert.js deleted file mode 100644 index 7c40d465..00000000 --- a/static/misc/edge-surf/resources/js/assert.js +++ /dev/null @@ -1,85 +0,0 @@ -// Copyright (c) 2013 The Chromium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -/** - * @fileoverview Assertion support. - */ - -/** - * Verify |condition| is truthy and return |condition| if so. - * @template T - * @param {T} condition A condition to check for truthiness. Note that this - * may be used to test whether a value is defined or not, and we don't want - * to force a cast to Boolean. - * @param {string=} opt_message A message to show on failure. - * @return {T} A non-null |condition|. - * @closurePrimitive {asserts.truthy} - * @suppress {reportUnknownTypes} because T is not sufficiently constrained. - */ -/* #export */ function assert(condition, opt_message) { - if (!condition) { - let message = 'Assertion failed'; - if (opt_message) { - message = message + ': ' + opt_message; - } - const error = new Error(message); - const global = function() { - const thisOrSelf = this || self; - /** @type {boolean} */ - thisOrSelf.traceAssertionsForTesting; - return thisOrSelf; - }(); - if (global.traceAssertionsForTesting) { - console.warn(error.stack); - } - throw error; - } - return condition; -} - -/** - * Call this from places in the code that should never be reached. - * - * For example, handling all the values of enum with a switch() like this: - * - * function getValueFromEnum(enum) { - * switch (enum) { - * case ENUM_FIRST_OF_TWO: - * return first - * case ENUM_LAST_OF_TWO: - * return last; - * } - * assertNotReached(); - * return document; - * } - * - * This code should only be hit in the case of serious programmer error or - * unexpected input. - * - * @param {string=} opt_message A message to show when this is hit. - * @closurePrimitive {asserts.fail} - */ -/* #export */ function assertNotReached(opt_message) { - assert(false, opt_message || 'Unreachable code hit'); -} - -/** - * @param {*} value The value to check. - * @param {function(new: T, ...)} type A user-defined constructor. - * @param {string=} opt_message A message to show when this is hit. - * @return {T} - * @template T - */ -/* #export */ function assertInstanceof(value, type, opt_message) { - // We don't use assert immediately here so that we avoid constructing an error - // message if we don't have to. - if (!(value instanceof type)) { - assertNotReached( - opt_message || - 'Value ' + value + ' is not a[n] ' + (type.name || typeof type)); - } - return value; -} - -/* #ignore */ console.warn('crbug/1173575, non-JS module files deprecated.'); diff --git a/static/misc/edge-surf/resources/js/base-error-reporting.js b/static/misc/edge-surf/resources/js/base-error-reporting.js deleted file mode 100644 index 05f169a0..00000000 --- a/static/misc/edge-surf/resources/js/base-error-reporting.js +++ /dev/null @@ -1,17 +0,0 @@ -// Copyright (C) Microsoft Corporation. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. -function hookErrorReporting(component) { - window.onerror = (message, source, lineno, columnNumber, error) => { - const errorInfo = { - column: columnNumber, - component, - line: lineno, - message: error.message, - name: error.name, - source_url: source, - stack: error.stack - }; - chrome.errorReporting.reportError(errorInfo); - }; -} diff --git a/static/misc/edge-surf/resources/js/cr.js b/static/misc/edge-surf/resources/js/cr.js deleted file mode 100644 index 83cc6d19..00000000 --- a/static/misc/edge-surf/resources/js/cr.js +++ /dev/null @@ -1,492 +0,0 @@ -// Copyright (c) 2012 The Chromium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -/** @typedef {{eventName: string, uid: number}} */ -// eslint-disable-next-line no-var -var WebUIListener; - -/** Platform, package, object property, and Event support. **/ -// eslint-disable-next-line no-var -var cr = cr || function(global) { - 'use strict'; - - /** - * Builds an object structure for the provided namespace path, - * ensuring that names that already exist are not overwritten. For - * example: - * "a.b.c" -> a = {};a.b={};a.b.c={}; - * @param {string} name Name of the object that this file defines. - * @return {!Object} The last object exported (i.e. exportPath('cr.ui') - * returns a reference to the ui property of window.cr). - * @private - */ - function exportPath(name) { - const parts = name.split('.'); - let cur = global; - - for (let part; parts.length && (part = parts.shift());) { - if (part in cur) { - cur = cur[part]; - } else { - cur = cur[part] = {}; - } - } - return cur; - } - - /** - * Fires a property change event on the target. - * @param {EventTarget} target The target to dispatch the event on. - * @param {string} propertyName The name of the property that changed. - * @param {*} newValue The new value for the property. - * @param {*} oldValue The old value for the property. - */ - function dispatchPropertyChange(target, propertyName, newValue, oldValue) { - const e = new Event(propertyName + 'Change'); - e.propertyName = propertyName; - e.newValue = newValue; - e.oldValue = oldValue; - target.dispatchEvent(e); - } - - /** - * Converts a camelCase javascript property name to a hyphenated-lower-case - * attribute name. - * @param {string} jsName The javascript camelCase property name. - * @return {string} The equivalent hyphenated-lower-case attribute name. - */ - function getAttributeName(jsName) { - return jsName.replace(/([A-Z])/g, '-$1').toLowerCase(); - } - - /** - * The kind of property to define in {@code defineProperty}. - * @enum {string} - * @const - */ - const PropertyKind = { - /** - * Plain old JS property where the backing data is stored as a "private" - * field on the object. - * Use for properties of any type. Type will not be checked. - */ - JS: 'js', - - /** - * The property backing data is stored as an attribute on an element. - * Use only for properties of type {string}. - */ - ATTR: 'attr', - - /** - * The property backing data is stored as an attribute on an element. If the - * element has the attribute then the value is true. - * Use only for properties of type {boolean}. - */ - BOOL_ATTR: 'boolAttr' - }; - - /** - * Helper function for defineProperty that returns the getter to use for the - * property. - * @param {string} name The name of the property. - * @param {PropertyKind} kind The kind of the property. - * @return {function():*} The getter for the property. - */ - function getGetter(name, kind) { - let attributeName; - switch (kind) { - case PropertyKind.JS: - const privateName = name + '_'; - return function() { - return this[privateName]; - }; - case PropertyKind.ATTR: - attributeName = getAttributeName(name); - return function() { - return this.getAttribute(attributeName); - }; - case PropertyKind.BOOL_ATTR: - attributeName = getAttributeName(name); - return function() { - return this.hasAttribute(attributeName); - }; - } - - // TODO(dbeam): replace with assertNotReached() in assert.js when I can coax - // the browser/unit tests to preprocess this file through grit. - throw 'not reached'; - } - - /** - * Helper function for defineProperty that returns the setter of the right - * kind. - * @param {string} name The name of the property we are defining the setter - * for. - * @param {PropertyKind} kind The kind of property we are getting the - * setter for. - * @param {function(*, *):void=} opt_setHook A function to run after the - * property is set, but before the propertyChange event is fired. - * @return {function(*):void} The function to use as a setter. - */ - function getSetter(name, kind, opt_setHook) { - let attributeName; - switch (kind) { - case PropertyKind.JS: - const privateName = name + '_'; - return function(value) { - const oldValue = this[name]; - if (value !== oldValue) { - this[privateName] = value; - if (opt_setHook) { - opt_setHook.call(this, value, oldValue); - } - dispatchPropertyChange(this, name, value, oldValue); - } - }; - - case PropertyKind.ATTR: - attributeName = getAttributeName(name); - return function(value) { - const oldValue = this[name]; - if (value !== oldValue) { - if (value === undefined) { - this.removeAttribute(attributeName); - } else { - this.setAttribute(attributeName, value); - } - if (opt_setHook) { - opt_setHook.call(this, value, oldValue); - } - dispatchPropertyChange(this, name, value, oldValue); - } - }; - - case PropertyKind.BOOL_ATTR: - attributeName = getAttributeName(name); - return function(value) { - const oldValue = this[name]; - if (value !== oldValue) { - if (value) { - this.setAttribute(attributeName, name); - } else { - this.removeAttribute(attributeName); - } - if (opt_setHook) { - opt_setHook.call(this, value, oldValue); - } - dispatchPropertyChange(this, name, value, oldValue); - } - }; - } - - // TODO(dbeam): replace with assertNotReached() in assert.js when I can coax - // the browser/unit tests to preprocess this file through grit. - throw 'not reached'; - } - - /** - * Defines a property on an object. When the setter changes the value a - * property change event with the type {@code name + 'Change'} is fired. - * @param {!Object} obj The object to define the property for. - * @param {string} name The name of the property. - * @param {PropertyKind=} opt_kind What kind of underlying storage to use. - * @param {function(*, *):void=} opt_setHook A function to run after the - * property is set, but before the propertyChange event is fired. - * - * TODO(crbug.com/425829): This function makes use of deprecated getter or - * setter functions. - * @suppress {deprecated} - */ - function defineProperty(obj, name, opt_kind, opt_setHook) { - if (typeof obj === 'function') { - obj = obj.prototype; - } - - const kind = /** @type {PropertyKind} */ (opt_kind || PropertyKind.JS); - - // TODO(crbug.com/425829): Remove above suppression once we no longer use - // deprecated functions lookupGetter, defineGetter, lookupSetter, and - // defineSetter. - // eslint-disable-next-line no-restricted-properties - if (!obj.__lookupGetter__(name)) { - // eslint-disable-next-line no-restricted-properties - obj.__defineGetter__(name, getGetter(name, kind)); - } - - // eslint-disable-next-line no-restricted-properties - if (!obj.__lookupSetter__(name)) { - // eslint-disable-next-line no-restricted-properties - obj.__defineSetter__(name, getSetter(name, kind, opt_setHook)); - } - } - - /** - * Returns a getter and setter to be used as property descriptor in - * Object.defineProperty(). When the setter changes the value a property - * change event with the type {@code name + 'Change'} is fired. - * @param {string} name The name of the property. - * @param {PropertyKind=} opt_kind What kind of underlying storage to use. - * @param {function(*, *):void=} opt_setHook A function to run after the - * property is set, but before the propertyChange event is fired. - */ - function getPropertyDescriptor(name, opt_kind, opt_setHook) { - const kind = /** @type {PropertyKind} */ (opt_kind || PropertyKind.JS); - - const desc = { - get: getGetter(name, kind), - set: getSetter(name, kind, opt_setHook), - }; - return desc; - } - - /** - * Counter for use with createUid - */ - let uidCounter = 1; - - /** - * @return {number} A new unique ID. - */ - function createUid() { - return uidCounter++; - } - - /** - * Dispatches a simple event on an event target. - * @param {!EventTarget} target The event target to dispatch the event on. - * @param {string} type The type of the event. - * @param {boolean=} opt_bubbles Whether the event bubbles or not. - * @param {boolean=} opt_cancelable Whether the default action of the event - * can be prevented. Default is true. - * @return {boolean} If any of the listeners called {@code preventDefault} - * during the dispatch this will return false. - */ - function dispatchSimpleEvent(target, type, opt_bubbles, opt_cancelable) { - const e = new Event(type, { - bubbles: opt_bubbles, - cancelable: opt_cancelable === undefined || opt_cancelable - }); - return target.dispatchEvent(e); - } - - /** - * Calls |fun| and adds all the fields of the returned object to the object - * named by |name|. For example, cr.define('cr.ui', function() { - * function List() { - * ... - * } - * function ListItem() { - * ... - * } - * return { - * List: List, - * ListItem: ListItem, - * }; - * }); - * defines the functions cr.ui.List and cr.ui.ListItem. - * @param {string} name The name of the object that we are adding fields to. - * @param {!Function} fun The function that will return an object containing - * the names and values of the new fields. - */ - function define(name, fun) { - const obj = exportPath(name); - const exports = fun(); - for (const propertyName in exports) { - // Maybe we should check the prototype chain here? The current usage - // pattern is always using an object literal so we only care about own - // properties. - const propertyDescriptor = - Object.getOwnPropertyDescriptor(exports, propertyName); - if (propertyDescriptor) { - Object.defineProperty(obj, propertyName, propertyDescriptor); - } - } - } - - /** - * Adds a {@code getInstance} static method that always return the same - * instance object. - * @param {!Function} ctor The constructor for the class to add the static - * method to. - */ - function addSingletonGetter(ctor) { - ctor.getInstance = function() { - return ctor.instance_ || (ctor.instance_ = new ctor()); - }; - } - - /** - * The mapping used by the sendWithPromise mechanism to tie the Promise - * returned to callers with the corresponding WebUI response. The mapping is - * from ID to the PromiseResolver helper; the ID is generated by - * sendWithPromise and is unique across all invocations of said method. - * @type {!Object<!PromiseResolver>} - */ - const chromeSendResolverMap = {}; - - /** - * The named method the WebUI handler calls directly in response to a - * chrome.send call that expects a response. The handler requires no knowledge - * of the specific name of this method, as the name is passed to the handler - * as the first argument in the arguments list of chrome.send. The handler - * must pass the ID, also sent via the chrome.send arguments list, as the - * first argument of the JS invocation; additionally, the handler may - * supply any number of other arguments that will be included in the response. - * @param {string} id The unique ID identifying the Promise this response is - * tied to. - * @param {boolean} isSuccess Whether the request was successful. - * @param {*} response The response as sent from C++. - */ - function webUIResponse(id, isSuccess, response) { - const resolver = chromeSendResolverMap[id]; - delete chromeSendResolverMap[id]; - - if (isSuccess) { - resolver.resolve(response); - } else { - resolver.reject(response); - } - } - - /** - * A variation of chrome.send, suitable for messages that expect a single - * response from C++. - * @param {string} methodName The name of the WebUI handler API. - * @param {...*} var_args Variable number of arguments to be forwarded to the - * C++ call. - * @return {!Promise} - */ - function sendWithPromise(methodName, var_args) { - const args = Array.prototype.slice.call(arguments, 1); - const promiseResolver = new PromiseResolver(); - const id = methodName + '_' + createUid(); - chromeSendResolverMap[id] = promiseResolver; - chrome.send(methodName, [id].concat(args)); - return promiseResolver.promise; - } - - /** - * A map of maps associating event names with listeners. The 2nd level map - * associates a listener ID with the callback function, such that individual - * listeners can be removed from an event without affecting other listeners of - * the same event. - * @type {!Object<!Object<!Function>>} - */ - const webUIListenerMap = {}; - - /** - * The named method the WebUI handler calls directly when an event occurs. - * The WebUI handler must supply the name of the event as the first argument - * of the JS invocation; additionally, the handler may supply any number of - * other arguments that will be forwarded to the listener callbacks. - * @param {string} event The name of the event that has occurred. - * @param {...*} var_args Additional arguments passed from C++. - */ - function webUIListenerCallback(event, var_args) { - const eventListenersMap = webUIListenerMap[event]; - if (!eventListenersMap) { - // C++ event sent for an event that has no listeners. - // TODO(dpapad): Should a warning be displayed here? - return; - } - - const args = Array.prototype.slice.call(arguments, 1); - for (const listenerId in eventListenersMap) { - eventListenersMap[listenerId].apply(null, args); - } - } - - /** - * Registers a listener for an event fired from WebUI handlers. Any number of - * listeners may register for a single event. - * @param {string} eventName The event to listen to. - * @param {!Function} callback The callback run when the event is fired. - * @return {!WebUIListener} An object to be used for removing a listener via - * cr.removeWebUIListener. Should be treated as read-only. - */ - function addWebUIListener(eventName, callback) { - webUIListenerMap[eventName] = webUIListenerMap[eventName] || {}; - const uid = createUid(); - webUIListenerMap[eventName][uid] = callback; - return {eventName: eventName, uid: uid}; - } - - /** - * Removes a listener. Does nothing if the specified listener is not found. - * @param {!WebUIListener} listener The listener to be removed (as returned by - * addWebUIListener). - * @return {boolean} Whether the given listener was found and actually - * removed. - */ - function removeWebUIListener(listener) { - const listenerExists = webUIListenerMap[listener.eventName] && - webUIListenerMap[listener.eventName][listener.uid]; - if (listenerExists) { - delete webUIListenerMap[listener.eventName][listener.uid]; - return true; - } - return false; - } - - return { - addSingletonGetter: addSingletonGetter, - define: define, - defineProperty: defineProperty, - getPropertyDescriptor: getPropertyDescriptor, - dispatchPropertyChange: dispatchPropertyChange, - dispatchSimpleEvent: dispatchSimpleEvent, - PropertyKind: PropertyKind, - - // C++ <-> JS communication related methods. - addWebUIListener: addWebUIListener, - removeWebUIListener: removeWebUIListener, - sendWithPromise: sendWithPromise, - webUIListenerCallback: webUIListenerCallback, - webUIResponse: webUIResponse, - - /** Whether we are using a Mac or not. */ - get isMac() { - return /Mac/.test(navigator.platform); - }, - - /** Whether this is on the Windows platform or not. */ - get isWindows() { - return /Win/.test(navigator.platform); - }, - - /** Whether this is the ChromeOS/ash web browser. */ - get isChromeOS() { - let returnValue = false; - // TODO(https://crbug.com/1118190): grit conditionals do not work in many - // WebUI tests. - // - return returnValue; - }, - - /** Whether this is the ChromeOS/Lacros web browser. */ - get isLacros() { - let returnValue = false; - // TODO(https://crbug.com/1118190): grit conditionals do not work in many - // WebUI tests. - // - return returnValue; - }, - - /** Whether this is on vanilla Linux (not chromeOS). */ - get isLinux() { - return /Linux/.test(navigator.userAgent); - }, - - /** Whether this is on Android. */ - get isAndroid() { - return /Android/.test(navigator.userAgent); - }, - - /** Whether this is on iOS. */ - get isIOS() { - return /EdgiOS/.test(navigator.userAgent); - } - }; -}(this); diff --git a/static/misc/edge-surf/resources/js/lib_common.chunk.js b/static/misc/edge-surf/resources/js/lib_common.chunk.js deleted file mode 100644 index e5b1fe2f..00000000 --- a/static/misc/edge-surf/resources/js/lib_common.chunk.js +++ /dev/null @@ -1,1958 +0,0 @@ -(self.webpackChunkedge_common=self.webpackChunkedge_common||[]).push([[197],{21480:(t,e,n)=>{"use strict";let r;n.d(e,{G:()=>r,_:()=>i}),function(t){t.HONORIFIC="HONORIFIC",t.FULL_NAME="FULL_NAME",t.COMPANY_NAME="COMPANY_NAME",t.ADDRESS_LINES="ADDRESS_LINES",t.ADDRESS_LEVEL_1="ADDRESS_LEVEL_1",t.ADDRESS_LEVEL_2="ADDRESS_LEVEL_2",t.ADDRESS_LEVEL_3="ADDRESS_LEVEL_3",t.POSTAL_CODE="POSTAL_CODE",t.SORTING_CODE="SORTING_CODE",t.COUNTRY_CODE="COUNTRY_CODE"}(r||(r={}));const i=window.chrome.autofillPrivate},24689:(t,e,n)=>{"use strict";let r;n.d(e,{I:()=>r}),function(t){t.MANAGED="managed"}(r||(r={}));window.chrome.bookmarks},15179:(t,e,n)=>{"use strict";let r,i,o,s,a;n.d(e,{MP:()=>l}),function(t){t.STRING="string",t.TEXT_FILE="textFile",t.JSON_DICTIONARY="jsonDictionary",t.FILE_PATH="filePath",t.WATSON_FILE_PATH="watsonFilePath"}(r||(r={})),function(t){t.REGULAR="regular",t.BASIC="basic",t.SMILE_BUTTON="smileButton",t.SURVEY_NPS="surveyNps",t.SUPPORT="support"}(i||(i={})),function(t){t.CAPTURE_REPRO_VIDEO="captureReproVideo",t.CHROME_DEBUGGER_PROTOCOL="chromeDebuggerProtocol",t.TAKE_SCREENSHOT="takeScreenshot",t.TRACING_CAPTURE="tracingCapture",t.PROFILING_TRACE_CAPTURE="profilingTraceCapture",t.CAPTURE_NTP_ADS="captureNtpAds",t.SHOW_RECREATE_BUTTON="showRecreateButton",t.ADDON_SITE_DIAGNOSTICS="addonSiteDiagnostics"}(o||(o={})),function(t){t.NO_OVERRIDE="noOverride"}(s||(s={})),function(t){t.SUCCESS="success",t.DELAYED="delayed"}(a||(a={}));const l=window.chrome.edgeFeedbackPrivate},39278:(t,e,n)=>{"use strict";let r;n.d(e,{U:()=>r,A:()=>i}),function(t){t.SHOW_IN_TOOLBAR="ShowInToolbar",t.PIN_PERSISTENCE="PinPersistence"}(r||(r={}));const i=window.chrome.hubPrivate},45247:(t,e,n)=>{"use strict";let r;n.d(e,{M:()=>r,d:()=>i}),function(t){t.TOP="TOP",t.UP="UP",t.DOWN="DOWN",t.UNKNOWN="UNKNOWN"}(r||(r={}));const i=window.chrome.languageSettingsPrivate},74714:(t,e,n)=>{"use strict";let r,i,o,s,a;n.d(e,{bJ:()=>r,PO:()=>i,S5:()=>o,qG:()=>a,JN:()=>l}),function(t){t.K_TOP_LEFT="kTopLeft",t.K_TOP_RIGHT="kTopRight",t.K_BOTTOM_LEFT="kBottomLeft",t.K_BOTTOM_RIGHT="kBottomRight"}(r||(r={})),function(t){t.MOUSE="Mouse",t.KEYBOARD="Keyboard"}(i||(i={})),function(t){t.K_ADD_PAGE_ICON="kAddPageIcon",t.K_ADD_FOLDER_ICON="kAddFolderIcon",t.K_SETTINGS_GEAR_ICON="kSettingsGearIcon",t.K_DELETE_ICON="kDeleteIcon",t.K_FOLDER_ICON="kFolderIcon",t.K_LINK_ICON="kLinkIcon",t.K_CLOSE_ICON="kCloseIcon",t.K_REFRESH_ICON="kRefreshIcon",t.K_PLAY_ARROW_ICON="kPlayArrowIcon",t.K_PAUSE_ICON="kPauseIcon",t.K_SAVE_ICON="kSaveIcon",t.K_SAVE_AS_ICON="kSaveAsIcon",t.K_OPEN_FOLDER_ICON="kOpenFolderIcon",t.K_LAUNCH_ICON="kLaunchIcon",t.K_NEW_IN_PRIVATE_WINDOW_ICON="kNewInPrivateWindowIcon",t.K_OPEN_ALL_ICON="kOpenAllIcon",t.K_NEW_WINDOW_ICON="kNewWindowIcon",t.K_EDIT_ICON="kEditIcon",t.K_SORT_ICON="kSortIcon",t.K_RENAME_ICON="kRenameIcon",t.K_PRIVACY_ICON="kPrivacyIcon",t.K_PRIVACY_MODE_ICON="kPrivacyModeIcon",t.K_PASTE_ICON="kPasteIcon",t.K_PLUS_ICON="kPlusIcon",t.K_ARROW_UP_ICON="kArrowUpIcon",t.K_ARROW_DOWN_ICON="kArrowDownIcon",t.K_UPLOAD_ICON="kUploadIcon",t.K_CITATIONS_ICON="kCitationsIcon",t.K_COPY_ICON="kCopyIcon",t.K_COUPON_PROMO_ICON="kCouponPromoIcon",t.K_COMMENT_ICON="kCommentIcon",t.K_ADD_NOTE_ICON="kAddNoteIcon",t.K_SIGN_OUT_ICON="kSignOutIcon",t.K_EXPORT_ICON="kExportIcon",t.K_PROHIBITED_ICON="kProhibitedIcon",t.K_IMPORT_ICON="kImportIcon",t.K_EXCEL_ICON="kExcelIcon",t.K_POWER_POINT_ICON="kPowerPointIcon",t.K_ONE_NOTE_ICON="kOneNoteIcon",t.K_WORD_ICON="kWordIcon",t.K_PINTEREST_ICON="kPinterestIcon",t.K_CHECKMARK_CIRCLE_ICON="kCheckmarkCircleIcon",t.K_CLOCK_ICON="kClockIcon",t.K_QUESTION_ICON="kQuestionIcon",t.K_CALENDAR_ICON="kCalendarIcon",t.K_SHARE_ICON="kShareIcon",t.K_SORT_LINES_ICON="kSortLinesIcon",t.K_RESTORE_ALERT_ICON="kRestoreAlertIcon"}(o||(o={})),function(t){t.PRINT="print",t.SAVE="save"}(s||(s={})),function(t){t.NORMAL="normal",t.CHECKBOX="checkbox",t.RADIO="radio",t.SEPARATOR="separator"}(a||(a={}));const l=window.chrome.menusPrivate},20721:(t,e,n)=>{"use strict";let r;n.d(e,{v:()=>i}),function(t){t.HISTOGRAM_LOG="histogram-log",t.HISTOGRAM_LINEAR="histogram-linear"}(r||(r={}));const i=window.chrome.metricsPrivate},4376:(t,e,n)=>{"use strict";let r,i;n.d(e,{Gj:()=>r,Pc:()=>i,ry:()=>o}),function(t){t.PAGE_INFO_CLOSE="PAGE_INFO_CLOSE",t.PAGE_INFO_CERTIFICATE_VIEWER="PAGE_INFO_CERTIFICATE_VIEWER",t.PAGE_INFO_COOKIE_DIALOG="PAGE_INFO_COOKIE_DIALOG",t.PAGE_INFO_SITE_SETTINGS="PAGE_INFO_SITE_SETTINGS",t.PAGE_INFO_END_VR_SESSION="PAGE_INFO_END_VR_SESSION",t.PAGE_INFO_SMARTSCREEN_REPORT_SITE="PAGE_INFO_SMARTSCREEN_REPORT_SITE",t.PAGE_INFO_SMARTSCREEN_CONTINUE_TO_UNSAFE_SITE="PAGE_INFO_SMARTSCREEN_CONTINUE_TO_UNSAFE_SITE",t.PAGE_INFO_SSL_DECISION_REVOKE="PAGE_INFO_SSL_DECISION_REVOKE",t.PAGE_INFO_OPEN_PRIVACY_SETTINGS="PAGE_INFO_OPEN_PRIVACY_SETTINGS",t.PAGE_INFO_SUGGESTED_URL_NAVIGATION="PAGE_INFO_SUGGESTED_URL_NAVIGATION",t.PAGE_INFO_VIEW_MAIN="PAGE_INFO_VIEW_MAIN",t.PAGE_INFO_VIEW_CONNECTION_DETAILS="PAGE_INFO_VIEW_CONNECTION_DETAILS",t.PAGE_INFO_VIEW_TOP_SITE_INFO="PAGE_INFO_VIEW_TOP_SITE_INFO",t.PAGE_INFO_VIEW_TRACKER_DETAILS="PAGE_INFO_VIEW_TRACKER_DETAILS",t.PAGE_INFO_CERTIFICATE_LEARN_MORE_LINK="PAGE_INFO_CERTIFICATE_LEARN_MORE_LINK",t.PAGE_INFO_TOP_SITE_ATTRIBUTION_LINK="PAGE_INFO_TOP_SITE_ATTRIBUTION_LINK",t.PAGE_INFO_TOP_SITE_SOCIAL_PROFILE_LINK="PAGE_INFO_TOP_SITE_SOCIAL_PROFILE_LINK",t.PAGE_INFO_TOP_SITE_BING_SEARCH_LINK="PAGE_INFO_TOP_SITE_BING_SEARCH_LINK"}(r||(r={})),function(t){t.DEFAULT="DEFAULT",t.INSECURE="INSECURE"}(i||(i={}));const o=window.chrome.pageInfoPrivate},71234:(t,e,n)=>{"use strict";let r,i,o,s,a,l,c,u,d,p,h;n.d(e,{k8:()=>r,_D:()=>i,L8:()=>s,Pg:()=>a,so:()=>l,he:()=>c,Gu:()=>d,hF:()=>p,Wo:()=>h,jy:()=>f}),function(t){t.VIEW="VIEW",t.COPY="COPY",t.EDIT="EDIT"}(r||(r={})),function(t){t.NOT_STARTED="NOT_STARTED",t.IN_PROGRESS="IN_PROGRESS",t.SUCCEEDED="SUCCEEDED",t.FAILED_CANCELLED="FAILED_CANCELLED",t.FAILED_WRITE_FAILED="FAILED_WRITE_FAILED"}(i||(i={})),function(t){t.LEAKED="LEAKED",t.PHISHED="PHISHED",t.PHISHED_AND_LEAKED="PHISHED_AND_LEAKED"}(o||(o={})),function(t){t.STARTED="STARTED",t.STOPPED="STOPPED",t.ERROR="ERROR"}(s||(s={})),function(t){t.NO_AUTH="NO_AUTH",t.FREQUENCY="FREQUENCY"}(a||(a={})),function(t){t.EVERY_TIME="EVERY_TIME",t.ONCE_PER_SESSION="ONCE_PER_SESSION"}(l||(l={})),function(t){t.LEAKED="LEAKED",t.WEAK_AND_REUSED="WEAK_AND_REUSED",t.WEAK="WEAK",t.REUSED="REUSED",t.STRONG="STRONG"}(c||(c={})),function(t){t.IDLE="IDLE",t.RUNNING="RUNNING",t.CANCELED="CANCELED",t.OFFLINE="OFFLINE",t.SIGNED_OUT="SIGNED_OUT",t.NO_PASSWORDS="NO_PASSWORDS",t.QUOTA_LIMIT="QUOTA_LIMIT",t.OTHER_ERROR="OTHER_ERROR"}(u||(u={})),function(t){t.NOT_BREACHED="NOT_BREACHED",t.BREACHED="BREACHED"}(d||(d={})),function(t){t.NOT_IGNORED="NOT_IGNORED",t.IGNORED="IGNORED"}(p||(p={})),function(t){t.NOT_IGNORED="NOT_IGNORED",t.IGNORED="IGNORED"}(h||(h={}));const f=window.chrome.passwordsPrivate},2759:(t,e,n)=>{"use strict";let r,i,o;n.d(e,{nr:()=>r,vq:()=>i,yh:()=>o,_n:()=>s}),function(t){t.BOOLEAN="BOOLEAN",t.NUMBER="NUMBER",t.STRING="STRING",t.URL="URL",t.LIST="LIST",t.DICTIONARY="DICTIONARY"}(r||(r={})),function(t){t.DEVICE_POLICY="DEVICE_POLICY",t.USER_POLICY="USER_POLICY",t.OWNER="OWNER",t.PRIMARY_USER="PRIMARY_USER",t.EXTENSION="EXTENSION",t.PARENT="PARENT",t.CHILD_RESTRICTION="CHILD_RESTRICTION"}(i||(i={})),function(t){t.ENFORCED="ENFORCED",t.RECOMMENDED="RECOMMENDED",t.PARENT_SUPERVISED="PARENT_SUPERVISED"}(o||(o={}));const s=window.chrome.settingsPrivate},11479:(t,e,n)=>{"use strict";if(n.d(e,{je:()=>o,Ly:()=>s}),571==n.j)var r=n(3117);let i;!function(t){t.PROFILE_SHORTCUT_SETTING_HIDDEN="profileShortcutSettingHidden",t.PROFILE_SHORTCUT_NOT_FOUND="profileShortcutNotFound",t.PROFILE_SHORTCUT_FOUND="profileShortcutFound"}(i||(i={}));const o={name:""};class s{static getAvailableIcons(){return r.cr.sendWithPromise("getAvailableIcons")}static setProfileIconToGaiaAvatar(){r.e9.send("setProfileIconToGaiaAvatar")}static setProfileIconToDefaultAvatar(t){r.e9.send("setProfileIconToDefaultAvatar",[t])}static setProfileName(t){r.e9.send("setProfileName",[t])}static getProfileShortcutStatus(){return r.cr.sendWithPromise("requestProfileShortcutStatus")}static addProfileShortcut(){r.e9.send("addProfileShortcut")}static removeProfileShortcut(){r.e9.send("removeProfileShortcut")}static addNewProfile(t,e){r.e9.send("createProfile",[t,e])}static getDefaultProfileInfo(){return r.cr.sendWithPromise("getProfileDefaults")}}},22317:(t,e,n)=>{"use strict";n.d(e,{Z:()=>i});var r=n(3117);const i=new class{getPluralString(t,e){return r.cr.sendWithPromise("getPluralString",t,e)}getPluralStringTupleWithComma(t,e,n,i){return r.cr.sendWithPromise("getPluralStringTupleWithComma",t,e,n,i)}getPluralStringTupleWithPeriods(t,e,n,i){return r.cr.sendWithPromise("getPluralStringTupleWithPeriods",t,e,n,i)}}},70159:(t,e,n)=>{"use strict";if(n.d(e,{Qm:()=>i,SY:()=>o,Hr:()=>s,$f:()=>a,ix:()=>l,Aw:()=>c}),571==n.j)var r=n(3117);let i;!function(t){t.AAD="aad",t.AAD_DEGRADED="aad_degraded",t.MSA="msa",t.ON_PREMISES="on_premises",t.NONE="none"}(i||(i={}));const o={name:"",first_name:"",last_name:"",iconUrl:"",accountType:i.NONE,profileForcedSignOut:!1,profileWasPreviouslySignedIn:!1,previouslySignedInUsername:""},s={shouldShow:!1,value:!1,isManaged:!1},a={shouldShow:!1,value:!1,isManaged:!1},l=/^(145|571)$/.test(n.j)?[]:null;class c{static getActiveProfileInfo(){return r.cr.sendWithPromise("getProfileInfo")}static getInactiveProfileInfo(){return r.cr.sendWithPromise("getNonActiveProfiles")}static openSettingsForProfile(t){r.e9.send("launchProfileSettings",[t])}static dismissProfilePreviousSignIn(){r.e9.send("dismissPreviousSignIn")}static handleChangeProfilePictureLinkClicked(){r.e9.send("handleChangePictureLinkClicked")}}},70582:(t,e,n)=>{"use strict";n.d(e,{gM:()=>I,VT:()=>T,nM:()=>A,o0:()=>D,ei:()=>R,LF:()=>$,ZU:()=>N,wH:()=>F,FH:()=>L});var r=n(3117),i=n(52053),o=n(95236),s=n(99725),a=n(45021),l=n(3275),c=n(49863),u=n(66385),d=n(71461),p=n(63416),h=n(4133),f=n(98036),g=n(69516),v=n(84770),b=n(61083),m=n(98110),y=n(44972),x=n(12403),_=n(68936),w=n(24584),C=n(48454),S=n(11129),E=n(23680),O=n(61105),j=n(440),P=n(75374),k=n(77614);let I,T,A,D,R,$;!function(t){t.EXTENSION="extension",t.PREFERENCE="preference",t.POLICY="policy"}(I||(I={})),function(t){t.DEFAULT="default",t.ALLOW="allow",t.BLOCK="block",t.ASK="ask",t.SESSION_ONLY="session_only",t.IMPORTANT_CONTENT="detect_important_content"}(T||(T={})),function(t){t.COOKIES="cookies",t.IMAGES="images",t.JAVASCRIPT="javascript",t.SOUND="sound",t.POPUPS="popups",t.GEOLOCATION="location",t.NOTIFICATIONS="notifications",t.MIC="media-stream-mic",t.CAMERA="media-stream-camera",t.PROTOCOL_HANDLERS="register-protocol-handler",t.AUTOMATIC_DOWNLOADS="multiple-automatic-downloads",t.BACKGROUND_SYNC="background-sync",t.MIDI_DEVICES="midi-sysex",t.NATIVE_FILE_SYSTEM_WRITE_GUARD="file-system-write",t.USB_DEVICES="usb-devices",t.SERIAL_PORTS="serial-ports",t.ZOOM_LEVELS="zoom-levels",t.PROTECTED_CONTENT="protected-content",t.ADS="ads",t.CLIPBOARD="clipboard",t.SENSORS="sensors",t.PAYMENT_HANDLER="payment-handler",t.MIXEDSCRIPT="mixed-script",t.TRACKERS="trackers",t.AUTOPLAY="autoplay",t.STORAGE_ACCESS="storage-access",t.CLEAR_BROWSING_DATA_COOKIES_EXCEPTIONS="clear-browsing-data-cookies-exceptions",t.VR="vr",t.AR="ar",t.SLEEPING_TABS="sleeping-tabs",t.CAMERA_PAN_TILT_ZOOM="camera-pan-tilt-zoom",t.ACCESSIBILITY_EVENTS="accessibility-events",t.NFC="nfc",t.WINDOW_PLACEMENT="window-placement",t.FONT_ACCESS="font-access",t.FILE_HANDLING="file-handling",t.IDLE_DETECTION="idle-detection"}(A||(A={})),function(t){t.ALLOWLIST="allowlist",t.ADS_FILTER_BLACKLIST="ads-filter-blacklist",t.DEFAULT="default",t.DRM_DISABLED="drm-disabled",t.EMBARGO="embargo",t.EXTENSION="extension",t.INSECURE_ORIGIN="insecure-origin",t.KILL_SWITCH="kill-switch",t.POLICY="policy",t.PREFERENCE="preference"}(D||(D={})),function(t){t.NONE="",t.USB_DEVICES="usb-devices-data",t.SERIAL_PORTS="serial-ports-data"}(R||(R={})),function(t){t.Mic="mic",t.Camera="camera"}($||($={}));const N="*",B=new Map;B.set(A.COOKIES,{type:A.COOKIES,icon:i.V,labelKey:"siteSettingsCookies",flyoutTextKey:"permissionRequestCookies"}),B.set(A.IMAGES,{type:A.IMAGES,icon:o.$,labelKey:"siteSettingsImages"}),B.set(A.JAVASCRIPT,{type:A.JAVASCRIPT,icon:s.t,labelKey:"siteSettingsJavascript"}),B.set(A.SOUND,{type:A.SOUND,icon:a.H,labelKey:"siteSettingsSound"}),B.set(A.POPUPS,{type:A.POPUPS,icon:l.K,labelKey:"siteSettingsPopups"}),B.set(A.GEOLOCATION,{type:A.GEOLOCATION,icon:c.r,labelKey:"siteSettingsLocation",flyoutTextKey:"permissionRequestLocation"}),B.set(A.NOTIFICATIONS,{type:A.NOTIFICATIONS,icon:u.U,labelKey:"siteSettingsNotifications",flyoutTextKey:"permissionRequestNotifications"}),B.set(A.MIC,{type:A.MIC,icon:d.q,labelKey:"siteSettingsMic",flyoutTextKey:"permissionRequestMicrophone"}),B.set(A.CAMERA,{type:A.CAMERA,icon:p.n,labelKey:"siteSettingsCamera",flyoutTextKey:"permissionRequestCamera"}),B.set(A.PROTOCOL_HANDLERS,{type:A.PROTOCOL_HANDLERS,icon:h.f,labelKey:"siteSettingsHandlers"}),B.set(A.FILE_HANDLING,{type:A.FILE_HANDLING,icon:f.U,labelKey:"siteSettingsFileHandling"}),B.set(A.AUTOMATIC_DOWNLOADS,{type:A.AUTOMATIC_DOWNLOADS,icon:g.a,labelKey:"siteSettingsAutomaticDownloads",flyoutTextKey:"permissionRequestAutomaticDownloads"}),B.set(A.BACKGROUND_SYNC,{type:A.BACKGROUND_SYNC,icon:v.b,labelKey:"siteSettingsBackgroundSync"}),B.set(A.MIDI_DEVICES,{type:A.MIDI_DEVICES,icon:b.s,labelKey:"siteSettingsMidiDevices",flyoutTextKey:"permissionRequestMIDI"}),B.set(A.USB_DEVICES,{type:A.USB_DEVICES,icon:m.R,labelKey:"siteSettingsUsbDevices"}),B.set(A.ZOOM_LEVELS,{type:A.ZOOM_LEVELS,icon:y.Q,labelKey:"siteSettingsZoomLevels"}),B.set(A.PROTECTED_CONTENT,{type:A.PROTECTED_CONTENT,icon:x.Y,labelKey:"siteSettingsProtectedContent"}),B.set(A.ADS,{type:A.ADS,icon:_._,labelKey:"siteSettingsAds"}),B.set(A.CLIPBOARD,{type:A.CLIPBOARD,icon:w.Z,labelKey:"siteSettingsClipboard",flyoutTextKey:"permissionRequestClipboard"}),B.set(A.SENSORS,{type:A.SENSORS,icon:C.S,labelKey:"siteSettingsSensors"}),B.set(A.PAYMENT_HANDLER,{type:A.PAYMENT_HANDLER,icon:S.E,labelKey:"siteSettingsPaymentHandler"}),B.set(A.MIXEDSCRIPT,{type:A.MIXEDSCRIPT,icon:E.A,labelKey:"siteSettingsCategoryInsecureContent"}),B.set(A.NATIVE_FILE_SYSTEM_WRITE_GUARD,{type:A.NATIVE_FILE_SYSTEM_WRITE_GUARD,icon:O.C,labelKey:"siteSettingsCategoryFileEditing"}),B.set(A.SERIAL_PORTS,{type:A.SERIAL_PORTS,icon:j.z,labelKey:"siteSettingsCategorySerialPorts"}),B.set(A.VR,{type:A.VR,icon:P._,labelKey:"siteSettingsVr",flyoutTextKey:"permissionRequestVR"}),B.set(A.AR,{type:A.AR,icon:P._,labelKey:"siteSettingsAr",flyoutTextKey:"permissionRequestAR"}),B.set(A.CAMERA_PAN_TILT_ZOOM,{type:A.CAMERA_PAN_TILT_ZOOM,icon:p.n,labelKey:null,flyoutTextKey:"permissionRequestMoveCamera"}),B.set(A.ACCESSIBILITY_EVENTS,{type:A.ACCESSIBILITY_EVENTS,icon:k.L,labelKey:null,flyoutTextKey:"permissionRequestAccessibility"}),B.set(A.NFC,{type:A.NFC,icon:k.L,labelKey:null,flyoutTextKey:"permissionRequestNFC"}),B.set(A.WINDOW_PLACEMENT,{type:A.WINDOW_PLACEMENT,icon:k.L,labelKey:null,flyoutTextKey:"permissionRequestWindowPlacement"}),B.set(A.FONT_ACCESS,{type:A.FONT_ACCESS,icon:k.L,labelKey:null,flyoutTextKey:"permissionRequestFontAccess"}),B.set(A.IDLE_DETECTION,{type:A.IDLE_DETECTION,icon:k.L,labelKey:null,flyoutTextKey:"permissionRequestIdleDetection"}),B.set(A.STORAGE_ACCESS,{type:A.STORAGE_ACCESS,icon:i.V,labelKey:null,flyoutTextKey:"permissionRequestStorage"});const F=/^(145|571|672)$/.test(n.j)?B:null;const L=new class{getValueForSitePermissionType(t){return r.cr.sendWithPromise("getDefaultValueForContentType",t)}setValueForSitePermissionType(t,e){return r.e9.send("setDefaultValueForContentType",[t,e])}getExceptionList(t){return r.cr.sendWithPromise("getExceptionList",t)}getAllSites(){return r.cr.sendWithPromise("getAllSites")}getCategoryList(t){return r.cr.sendWithPromise("getCategoryList",t)}getChooserExceptionList(t){return r.cr.sendWithPromise("getChooserExceptionList",t)}getRecentSitePermissions(t){return r.cr.sendWithPromise("getRecentSitePermissions",t)}getDefaultCaptureDevices(t){r.e9.send("getDefaultCaptureDevices",[t])}getOriginPermissions(t,e){return r.cr.sendWithPromise("getOriginPermissions",t,e)}setOriginPermissions(t,e,n){r.e9.send("setOriginPermissions",[t,e,n])}isOriginValid(t){return r.cr.sendWithPromise("isOriginValid",t)}setDefaultCaptureDevice(t,e){r.e9.send("setDefaultCaptureDevice",[t,e])}setProtocolHandlerDefault(t){r.e9.send("setHandlersEnabled",[t])}observeProtocolHandlers(){r.e9.send("observeProtocolHandlers")}resetSitePermissionForPattern(t,e,n,i){r.e9.send("resetCategoryPermissionForPattern",[t,e,n,i])}resetChooserExceptionForSite(t,e,n,i){r.e9.send("resetChooserExceptionForSite",[t,e,n,i])}setSitePermissionForPattern(t,e,n,i,o){r.e9.send("setCategoryPermissionForPattern",[t,e,n,i,o])}isPatternValidForType(t,e){return r.cr.sendWithPromise("isPatternValidForType",t,e)}updateInPrivateStatus(){r.e9.send("updateIncognitoStatus")}removeProtocolHandler(t,e){r.e9.send("removeHandler",[t,e])}setProtocolDefault(t,e){r.e9.send("setDefault",[t,e])}fetchZoomLevels(){r.e9.send("fetchZoomLevels")}removeZoomLevel(t){r.e9.send("removeZoomLevel",[t])}}},47739:(t,e,n)=>{"use strict";let r,i;n.d(e,{Sh:()=>i,zR:()=>o}),function(t){t.NO_ACTION="noAction",t.REAUTHENTICATE="reauthenticate",t.SIGNOUT_AND_SIGNIN="signOutAndSignIn",t.UPGRADE_CLIENT="upgradeClient",t.ENTER_PASSPHRASE="enterPassphrase",t.CONFIRM_SYNC_SETTINGS="confirmSyncSettings"}(r||(r={})),function(t){t.ADMIN_DISABLED="ADMIN_DISABLED",t.FIXABLE_SYNC_ERROR="FIXABLE_SYNC_ERROR",t.IN_SYNC="IN_SYNC",t.NO_SYNC_STATE="NO_SYNC_STATE",t.UNFIXABLE_SYNC_ERROR="UNFIXABLE_SYNC_ERROR",t.USER_CHOSE_NOT_TO_SYNC="USER_CHOSE_NOT_TO_SYNC",t.USER_INTERACTION_REQUIRED="USER_INTERACTION_REQUIRED",t.SYNC_CONSENT_PENDING="SYNC_CONSENT_PENDING",t.SYNC_NOT_ACTIVE="SYNC_NOT_ACTIVE",t.SYNC_NOT_AVAILABLE="SYNC_NOT_AVAILABLE"}(i||(i={}));const o={childUser:!1,domain:"",edgeSyncState:i.NO_SYNC_STATE,localSyncEnabled:!1,managed:!1,forced:!1,recommendedManaged:!1,savingBrowserHistoryDisabled:!1,signedIn:!1,signedInUsername:"",signinAllowed:!1,signOutAllowed:!1,statusAction:r.NO_ACTION,statusActionText:"",statusText:"",supervisedUser:!1,syncSystemEnabled:!1}},89053:(t,e,n)=>{"use strict";if(n.d(e,{ti:()=>o,gw:()=>s,sh:()=>a,AJ:()=>l,pH:()=>c,CJ:()=>u,qX:()=>d,iC:()=>p,g0:()=>h,qU:()=>f,eH:()=>g,af:()=>v,DO:()=>b}),571==n.j)var r=n(3117);if(571==n.j)var i=n(47739);let o,s,a;!function(t){t.SPINNER="spinner",t.CONFIGURE="configure",t.DONE="done",t.PASSPHRASE_FAILED="passphraseFailed"}(o||(o={})),function(t){t.ADDRESSES_AND_MORE="addressesAndMore",t.FAVORITES="favorites",t.COLLECTIONS="collections",t.EXTENSIONS="extensions",t.PASSWORDS="passwords",t.SETTINGS="settings",t.OPEN_TABS="openTabs",t.HISTORY="history",t.APPS="apps"}(s||(s={})),function(t){t[t.NOT_STARTED=0]="NOT_STARTED",t[t.IN_PROGRESS=1]="IN_PROGRESS",t[t.CLIENT_ERROR=2]="CLIENT_ERROR",t[t.SERVER_ERROR=3]="SERVER_ERROR",t[t.SUCCESS=4]="SUCCESS"}(a||(a={}));const l={appsDisabledByECS:!1,appsEnforced:!1,appsManaged:!1,appsRegistered:!1,appsSynced:!1,addressesAndMoreDisabledByECS:!1,addressesAndMoreEnforced:!1,addressesAndMoreManaged:!1,addressesAndMoreRegistered:!1,addressesAndMoreSynced:!1,collectionsDisabledByECS:!1,collectionsEnforced:!1,collectionsManaged:!1,collectionsRegistered:!1,collectionsSynced:!1,customPassphraseEncryptionDate:"",encryptAllData:!1,encryptAllDataAllowed:!1,extensionsDisabledByECS:!1,extensionsEnforced:!1,extensionsManaged:!1,extensionsRegistered:!1,extensionsSynced:!1,favoritesDisabledByECS:!1,favoritesEnforced:!1,favoritesManaged:!1,favoritesRegistered:!1,favoritesSynced:!1,fullEncryptionBody:"",historyDisabledByECS:!1,historyEnforced:!1,historyManaged:!1,historyRegistered:!1,historySynced:!1,openTabsDisabledByECS:!1,openTabsEnforced:!1,openTabsManaged:!1,openTabsRegistered:!1,openTabsSynced:!1,passphraseRequired:!1,passphraseTypeIsCustom:!1,passwordsDisabledByECS:!1,passwordsEnforced:!1,passwordsManaged:!1,passwordsRegistered:!1,passwordsSynced:!1,paymentsIntegrationEnabled:!1,settingsDisabledByECS:!1,settingsEnforced:!1,settingsManaged:!1,settingsRegistered:!1,settingsSynced:!1,syncAllDataTypes:!1,themesDisabledByECS:!1,themesEnforced:!1,themesManaged:!1,themesRegistered:!1,themesSynced:!1};function c(t,e){const n=e+"DisabledByECS";if(n in t)return!!t[n];const i=`SyncPrefs.${n} and SyncPrefs.`,o={component:"webui-settings-react",message:i,name:"InvalidSyncPrefs",source_url:window.location.href};return console.error(`InvalidSyncPrefs: ${i}`),r.e9.errorReporting.reportError(o),!1}function u(t){const e=[];for(const n of Object.values(s))c(t,n)&&e.push(n);return e}function d(t){const e=t.edgeSyncState;return t.signedIn&&e!==i.Sh.SYNC_NOT_AVAILABLE&&e!==i.Sh.ADMIN_DISABLED&&e!==i.Sh.USER_CHOSE_NOT_TO_SYNC&&e!==i.Sh.SYNC_CONSENT_PENDING}function p(t,e){return!(!t.localSyncEnabled||e===s.FAVORITES||e===s.SETTINGS)}function h(t,e){return!!t[e+"Managed"]}function f(t,e){return!(!t.savingBrowserHistoryDisabled||e!==s.HISTORY&&e!==s.OPEN_TABS)}function g(t,e,n){if(p(t,n)||h(e,n)||f(t,n))return!0;return!e[n+"Registered"]}function v(t,e,n){return!g(t,e,n)&&!!e[n+"Synced"]}class b{static clearServerData(t){r.e9.send("SyncClearServerData",[t])}static onNavigateToSyncSettingsPage(t){r.e9.send("OnNavigateToSyncSettingsPage",[t])}static getSyncStatus(){return r.cr.sendWithPromise("SyncSetupGetSyncStatus")}static restartSync(){r.e9.send("RestartSync")}static sendUpdateSyncPrefs(){r.e9.send("SyncPrefsDispatch")}static setSyncDatatypes(t,e,n){r.cr.sendWithPromise("SyncSetupSetDatatypes",JSON.stringify(t),e,n)}static setSyncEnabled(t){return r.cr.sendWithPromise("SetSyncEnabled",t)}static startSignIn(t="Settings"){r.e9.send("SyncSetupStartSignIn",[t])}static signOut(t){r.e9.send("SyncSetupSignout",[t])}static setSyncBlocked(t){r.e9.send("BlockSync",[t])}static setSyncConsentConfirmed(t){return r.cr.sendWithPromise("SyncConsentConfirmed",t)}static triggerSyncConsentDialog(){r.e9.send("TriggerSyncConsentDialog")}static setSyncDecryptionPassphrase(t){return r.cr.sendWithPromise("SyncSetupSetDecryptionPassphrase",t)}static setSyncEncryptionPassphrase(t){return r.cr.sendWithPromise("SyncSetupSetEncryptionPassphrase",t)}}},88203:(t,e,n)=>{"use strict";n.d(e,{b:()=>r,I:()=>i});const r={actionTitleButton_icon:{height:"20px",width:"20px"},actionTitleButton_label:{marginInlineStart:"6px"}},i={button:{minWidth:"0px"},button_contentRegion:{display:"flex",alignItems:"center"}}},17710:(t,e,n)=>{"use strict";n.d(e,{Z:()=>h});var r=n(89526),i=n(11754),o=n(17332),s=n(2483),a=n(46589),l=n(88203);function c(){return(c=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function u(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class d extends i.Z{constructor(t){super(t),u(this,"handledProps",{label:void 0,icon:void 0,alwaysIconOnly:void 0,managedClasses:void 0}),u(this,"toggleLabel",(()=>{const t=window.innerWidth<a.Wg;this.state.hideLabel!==t&&this.setState({hideLabel:t})})),this.state={hideLabel:!1}}componentDidMount(){window.addEventListener("resize",this.toggleLabel),this.toggleLabel()}componentWillUnmount(){window.removeEventListener("resize",this.toggleLabel)}render(){const t=!this.props.alwaysIconOnly&&!this.state.hideLabel;return r.createElement(s.XC,c({},this.unhandledProps(),{jssStyleSheet:l.I,title:t?null:this.props.label}),r.createElement("div",{"aria-hidden":!0},this.props.icon(this.props.managedClasses.actionTitleButton_icon)),t&&r.createElement("span",{className:this.props.managedClasses.actionTitleButton_label},this.props.label))}}const p=(0,o.ZP)(l.b)(d),h=/^(205|22|885|908|991)$/.test(n.j)?p:null},18734:(t,e,n)=>{"use strict";n.d(e,{Z:()=>f});var r=n(89526),i=n(11754),o=n(17332),s=n(14279),a=n(44907),l=n(46589),c=n(39529),u=n(88203);function d(){return(d=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function p(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class h extends i.Z{render(){const t=!this.props.alwaysIconOnly&&!this.state.hideLabel,e=r.createElement(r.Fragment,null,r.createElement("div",{"aria-hidden":!0},this.props.icon(this.props.managedClasses.actionTitleButton_icon)),t&&r.createElement("span",{className:this.props.managedClasses.actionTitleButton_label},this.props.label));return"function"==typeof this.props.menuItems?r.createElement(c._,d({},this.unhandledProps(),{id:this.props.id,buttonStyleSheet:u.I,menuItems:this.props.menuItems,menuPosition:s.P.TopRight,title:t?null:this.props.label}),e):r.createElement(a.C,d({},this.unhandledProps(),{id:this.props.id,buttonStyleSheet:u.I,menu:this.props.menu,menuPosition:s.P.TopRight,onClick:this.toggleMenu,menuOpen:this.state.menuOpen,"aria-expanded":this.state.menuOpen,onMenuShouldDismiss:this.toggleMenu,title:t?null:this.props.label}),e)}constructor(t){super(t),p(this,"toggleMenu",(()=>{this.setState({menuOpen:!this.state.menuOpen})})),p(this,"handledProps",{menu:void 0,icon:void 0,label:void 0,alwaysIconOnly:void 0,managedClasses:void 0}),p(this,"toggleLabel",(()=>{const t=window.innerWidth<l.Wg;this.state.hideLabel!==t&&this.setState({hideLabel:t})})),this.state={menuOpen:!1,hideLabel:!1}}componentDidMount(){window.addEventListener("resize",this.toggleLabel),this.toggleLabel()}componentWillUnmount(){window.removeEventListener("resize",this.toggleLabel)}}const f=(0,o.ZP)(u.b)(h)},50192:(t,e,n)=>{"use strict";n.d(e,{Z:()=>b});var r=n(89526),i=n(11754),o=n(17332),s=n(92588),a=n(61184),l=n(17657),c=n(42130),u=n(47754),d=n(46589),p=n(38066),h=n(18169);function f(){return(f=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}const g={...u.x,contentHeader:{...u.x.contentHeader,marginInlineStart:"0px",marginInlineEnd:"0px",minWidth:"0px"},sectionHeader:{...u.x.sectionHeader,marginInlineStart:"0px",marginInlineEnd:"0px","& > a":{...(0,p.$Q)()}},actionTitle_headerContainer:{maxWidth:(0,l.a)(d.Aj),minWidth:(0,l.a)(d.XM),marginInlineEnd:(0,l.a)(d.H0),marginInlineStart:(0,l.a)(d.AW),...(0,c.F0)({})},actionTitle_flexContainer:{display:"flex",justifyContent:"space-between"},actionTitle_childrenContainer:{marginTop:(0,l.a)(d.f8),display:"flex","& > *":{...(0,h.ro)(h._p.PAGE_HEADER_ITEMS)}}};class v extends i.Z{constructor(...t){var e,n,r;super(...t),r={heading:void 0,subHeading:void 0,hideChildren:void 0,managedClasses:void 0,subHeadingId:void 0},(n="handledProps")in(e=this)?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r}render(){return r.createElement("div",f({},this.unhandledProps(),{className:this.props.managedClasses.actionTitle_headerContainer,"aria-label":this.props.heading,role:"region"}),r.createElement("div",{className:this.props.managedClasses.actionTitle_flexContainer},r.createElement(s.X6,{tag:d.VP,size:d.$e,className:this.props.managedClasses.contentHeader},this.props.heading),!this.props.hideChildren&&r.createElement("div",{className:this.props.managedClasses.actionTitle_childrenContainer},this.props.children)),!!this.props.subHeading&&r.createElement(a.pm,{tag:d.ZO,size:d.zT,className:this.props.managedClasses.sectionHeader,id:this.props.subHeadingId},this.props.subHeading),this.props.after)}}const b=(0,o.ZP)(g)(v)},15676:(t,e,n)=>{"use strict";n.d(e,{Z:()=>h});var r=n(89526),i=n(61168),o=n(71388),s=n(56909),a=n(17332),l=n(11754),c=n(38681);function u(){return(u=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function d(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class p extends l.Z{constructor(t){super(t),d(this,"toggleDarkModeFunc",void 0),d(this,"handledProps",{children:void 0,managedClasses:void 0}),this.toggleDarkModeFunc=this.toggleDarkmode.bind(this),this.state={isDarkmode:c.fl.matches}}componentDidMount(){c.fl.addEventListener("change",this.toggleDarkModeFunc)}componentWillUnmount(){c.fl.removeEventListener("change",this.toggleDarkModeFunc)}toggleDarkmode(){this.setState({isDarkmode:c.fl.matches})}render(){return r.createElement("div",u({className:this.props.managedClasses.baseProfileCard_cardWrapper},this.unhandledProps()),r.createElement(o.ZP,{value:this.state.isDarkmode?s.z.L1:s.g.L1,drawBackground:!1},r.createElement(i.Zb,{className:this.props.managedClasses.baseProfileCard_card},this.props.children)))}}const h=(0,a.ZP)({baseProfileCard_cardWrapper:{marginBottom:"12px"},baseProfileCard_card:{boxSizing:"border-box",overflow:"hidden"}})(p)},60769:(t,e,n)=>{"use strict";n.d(e,{Z:()=>c});var r=n(89526),i=n(11754),o=n(17332),s=n(3117);function a(){return(a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}class l extends i.Z{constructor(...t){var e,n,r;super(...t),r={managedClasses:void 0},(n="handledProps")in(e=this)?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r}render(){const t=r.Children.toArray(this.props.children);return t.length>2&&console.error(`ButtonSection expected 1 or 2 children, received ${t.length}`),1===t.length?r.createElement("div",a({},this.unhandledProps(),{className:this.props.managedClasses.buttonSection_singleContainer}),this.props.children):t.length>=2?s.pz.valueExists("is_macosx")&&!0===s.pz.getBoolean("is_macosx")?r.createElement("div",a({},this.unhandledProps(),{className:this.props.managedClasses.buttonSection_container}),t[1],t[0]):r.createElement("div",a({},this.unhandledProps(),{className:this.props.managedClasses.buttonSection_container}),t[0],t[1]):null}}const c=(0,o.ZP)({buttonSection_container:{display:"flex","justify-content":"space-between","& > *":{width:"calc(50% - 4px)"},width:"100%"},buttonSection_singleContainer:{display:"flex","justify-content":"flex-end","& > *":{width:"calc(50% - 4px)"},width:"100%"}})(l)},81028:(t,e,n)=>{"use strict";n.d(e,{Z:()=>x});var r=n(89526),i=n(11754),o=n(17332),s=n(40370),a=n(72982),l=n(2483),c=n(89827),u=n(53363),d=n(6098),p=n(3117),h=n(14570),f=n(46589),g=n(84967);function v(){return(v=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}const b={actionDialogCard_buttonContainer:{flex:"1",display:"flex","align-items":"center","margin-inline-end":"13px","justify-content":"space-between",minWidth:"198px"},actionDialogCard_singleButtonContainer:{"margin-inline-end":"13px"},button:{height:"32px","min-width":"95px",...(0,c.cg)(),...(0,u.Sh)("t7")},actionDialogCard_iconButton:{...(0,h.b)(d.fn,f.k8,f.k8)}};function m(t){t.stopPropagation()}class y extends i.Z{constructor(...t){var e,n,r;super(...t),r={description:void 0,primaryButtonIcon:void 0,primaryButtonText:void 0,primaryButtonAriaLabel:void 0,handlePrimaryButtonClick:void 0,secondaryButtonText:void 0,secondaryButtonAriaLabel:void 0,handleSecondaryButtonClick:void 0,customJssInstanceUsed:void 0,isAutoFocused:void 0,managedClasses:void 0},(n="handledProps")in(e=this)?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r}generatePrimaryButton(){return this.props.primaryButtonText?r.createElement(s.zx,{id:"actionDialogCardPrimaryButton",type:"button",jssStyleSheet:b,appearance:a.L.primary,onClick:this.props.handlePrimaryButtonClick,onKeyDown:m,autoFocus:!!this.props.isAutoFocused,"aria-label":this.props.primaryButtonAriaLabel},this.props.primaryButtonText):r.createElement(l.XC,{id:"actionDialogCardPrimaryButton",onClick:this.props.handlePrimaryButtonClick,className:this.props.managedClasses.actionDialogCard_iconButton,"aria-label":this.props.primaryButtonAriaLabel},this.props.primaryButtonIcon(""))}render(){return r.createElement(g.Z,v({},this.unhandledProps(),{customJssInstanceUsed:this.props.customJssInstanceUsed,description:this.props.description}),(t=this.generatePrimaryButton(),e=r.createElement(s.zx,{id:"actionDialogCardSecondaryButton",type:"button",jssStyleSheet:b,onClick:this.props.handleSecondaryButtonClick,onKeyDown:m,"aria-label":this.props.secondaryButtonAriaLabel},this.props.secondaryButtonText),n=this.props.secondaryButtonText,i=this.props.managedClasses,n?p.pz.valueExists("is_macosx")&&!0===p.pz.getBoolean("is_macosx")?r.createElement("div",{className:i.actionDialogCard_buttonContainer},e,t):r.createElement("div",{className:i.actionDialogCard_buttonContainer},t,e):r.createElement("div",{className:i.actionDialogCard_singleButtonContainer},t)));var t,e,n,i}}const x=(0,o.ZP)(b)(y)},84967:(t,e,n)=>{"use strict";n.d(e,{J:()=>g,Z:()=>m});var r=n(89526),i=n(11754),o=n(17332),s=n(9748),a=n(53363),l=n(51094),c=n(61168),u=n(17657),d=n(23366),p=n(6098),h=n(32491);function f(){return(f=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}const g=48,v={baseDialogCard:{display:"flex","border-radius":"4px",transition:"all 200ms linear 0ms","align-items":"center","justify-content":"space-between",height:(0,u.a)(g),width:"unset",...(0,s.XC)(s.Y3.e4,p.fn.uiColor.defaultShadow)(void 0)},baseDialogCard_description:{"margin-left":"14px","margin-right":"14px",...(0,a.Sh)("t7"),display:"flex","align-items":"center",color:l.CH},baseDialogCard_descriptionSnippetCollapsed:{"max-width":"100px",...(0,d.L)(),display:"inline-block"},baseDialogCard_jss:{display:"flex","border-radius":"4px",transition:"all 200ms linear 0ms","align-items":"center","justify-content":"space-between",height:(0,u.a)(g),width:"unset",...(0,s.XC)(s.Y3.e4,p.fn.uiColor.defaultShadow)(void 0)},baseDialogCard_description_jss:{"margin-left":"14px","margin-right":"14px",...(0,a.Sh)("t7"),"align-items":"center",color:l.CH},baseDialogCard_descriptionSnippetCollapsed_jss:{"max-width":"500px",...(0,d.L)(),display:"block"}};class b extends i.Z{constructor(...t){var e,n,r;super(...t),r={description:void 0,customJssInstanceUsed:void 0},(n="handledProps")in(e=this)?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r}getDescription(){return"string"==typeof this.props.description?this.props.description:(0,h.QK)(this.props.description)}render(){const t=this.props.customJssInstanceUsed?this.props.managedClasses.baseDialogCard_jss:this.props.managedClasses.baseDialogCard,e=this.props.customJssInstanceUsed?this.props.managedClasses.baseDialogCard_description_jss:this.props.managedClasses.baseDialogCard_description;return r.createElement(c.Zb,f({},this.unhandledProps(),{className:t}),r.createElement("aside",{className:t},r.createElement("div",{className:e,id:"description"},this.getDescription()),r.createElement("div",{"aria-labelledby":"description"},this.props.children)))}}const m=(0,o.ZP)(v)(b)},25481:(t,e,n)=>{"use strict";n.d(e,{q:()=>f,Z:()=>b});var r=n(89526),i=n(73961);if(/^(205|571|885|908|991)$/.test(n.j))var o=n(71388);var s=n(26007);if(/^(205|571|885|908|991)$/.test(n.j))var a=n(17657);if(/^(205|571|885|908|991)$/.test(n.j))var l=n(46589);if(/^(205|571|885|908|991)$/.test(n.j))var c=n(38681);var u=n(6098);if(/^(205|571|885|908|991)$/.test(n.j))var d=n(91870);if(/^(205|571|885|908|991)$/.test(n.j))var p=n(18169);if(/^(205|571|885|908|991)$/.test(n.j))var h=n(84967);let f;!function(t){t[t.BottomInlineStart=0]="BottomInlineStart",t[t.TopInlineEnd=1]="TopInlineEnd"}(f||(f={}));const g=u.fn.direction===s.N.rtl;class v extends r.Component{constructor(...t){var e,n,r;super(...t),r=()=>{let t=null;for(const e of this.props.layoutQueries){const n=document.querySelector(e);if(n){t=n;break}}if(!t)return;const e=t.getBoundingClientRect();switch(this.props.layoutPosition){case f.BottomInlineStart:g?this.props.rootElement.style.right=(0,a.a)(window.innerWidth-e.right+l.AW):this.props.rootElement.style.left=(0,a.a)(e.left+l.AW),this.props.rootElement.style.bottom=(0,a.a)(l.R3);break;case f.TopInlineEnd:default:{g?this.props.rootElement.style.left=(0,a.a)(e.left):this.props.rootElement.style.right=(0,a.a)(window.innerWidth-e.right);const t=l.Mz+l.f8+l.bn;let n=0;window.innerWidth<l.Wg&&(n+=l.dM+l.mK),document.getElementById("message-bar")&&(n+=d.m),this.props.rootElement.style.top=(0,a.a)(n+(t/2-h.J/2));break}}},(n="updateRoot")in(e=this)?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r}componentDidMount(){this.updateRoot(),window.addEventListener("resize",this.updateRoot),this.props.rootElement.style.zIndex=p._p.DIALOG_NOTIFICATION.toString()}componentWillUnmount(){window.removeEventListener("resize",this.updateRoot)}render(){return i.createPortal(r.createElement(o.ZP,{value:c.dS,tag:null,drawBackground:!1},this.props.children),this.props.rootElement)}}const b=/^(205|571|885|908|991)$/.test(n.j)?v:null},50984:(t,e,n)=>{"use strict";n.d(e,{Z:()=>x});var r=n(89526),i=n(11754),o=n(17332),s=n(40370),a=n(72982),l=n(2483),c=n(89827),u=n(53363),d=n(6098),p=n(3117),h=n(14570),f=n(46589),g=n(84967);function v(){return(v=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}const b={passwordCustomDialogCard_buttonContainer:{flex:"1",display:"flex","align-items":"center","margin-inline-end":"13px","justify-content":"space-between",minWidth:"198px",float:"right",marginInlineStart:"10px"},passwordCustomDialogCard_singleButtonContainer:{"margin-inline-end":"13px"},button:{height:"32px","min-width":"95px",...(0,c.cg)(),...(0,u.Sh)("t7")},passwordCustomDialogCard_iconButton:{...(0,h.b)(d.fn,f.k8,f.k8)}};function m(t){t.stopPropagation()}class y extends i.Z{constructor(...t){var e,n,r;super(...t),r={description:void 0,primaryButtonIcon:void 0,primaryButtonText:void 0,primaryButtonAriaLabel:void 0,handlePrimaryButtonClick:void 0,secondaryButtonText:void 0,secondaryButtonAriaLabel:void 0,handleSecondaryButtonClick:void 0,customJssInstanceUsed:void 0,isAutoFocused:void 0,managedClasses:void 0},(n="handledProps")in(e=this)?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r}generatePrimaryButton(){return this.props.primaryButtonText?r.createElement(s.zx,{id:"passwordCustomDialogCardPrimaryButton",type:"button",jssStyleSheet:b,appearance:a.L.primary,onClick:this.props.handlePrimaryButtonClick,onKeyDown:m,autoFocus:!!this.props.isAutoFocused,"aria-label":this.props.primaryButtonAriaLabel},this.props.primaryButtonText):r.createElement(l.XC,{id:"passwordCustomDialogCardPrimaryButton",onClick:this.props.handlePrimaryButtonClick,className:this.props.managedClasses.passwordCustomDialogCard_iconButton,"aria-label":this.props.primaryButtonAriaLabel},this.props.primaryButtonIcon(""))}render(){return r.createElement(g.Z,v({},this.unhandledProps(),{customJssInstanceUsed:this.props.customJssInstanceUsed,description:this.props.description}),r.createElement("span",null,r.createElement("span",null,this.props.children),r.createElement("span",null,(t=r.createElement(s.zx,{id:"passwordCustomDialogCardSecondaryButton",type:"button",jssStyleSheet:b,onClick:this.props.handleSecondaryButtonClick,onKeyDown:m,"aria-label":this.props.secondaryButtonAriaLabel},this.props.secondaryButtonText),e=this.generatePrimaryButton(),n=this.props.secondaryButtonText,i=this.props.managedClasses,n?p.pz.valueExists("is_macosx")&&!0===p.pz.getBoolean("is_macosx")?r.createElement("div",{className:i.passwordCustomDialogCard_buttonContainer},e,t):r.createElement("div",{className:i.passwordCustomDialogCard_buttonContainer},t,e):r.createElement("div",{className:i.passwordCustomDialogCard_singleButtonContainer},t)))));var t,e,n,i}}const x=(0,o.ZP)(b)(y)},80298:(t,e,n)=>{"use strict";n.d(e,{ZP:()=>u});var r=n(89526);if(/^(205|571|885|908|991)$/.test(n.j))var i=n(81028);if(/^(205|571|885|908|991)$/.test(n.j))var o=n(14893);if(/^(205|571|885|908|991)$/.test(n.j))var s=n(3117);function a(){return(a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function l(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class c extends r.Component{constructor(...t){super(...t),l(this,"interval",void 0),l(this,"state",{isFocused:!1,isHovered:!1}),l(this,"startInterval",(()=>{this.interval=window.setInterval(this.hide,1e4)})),l(this,"restartInterval",(()=>{window.clearInterval(this.interval),this.startInterval()})),l(this,"onFocus",(()=>{this.state.isFocused||this.setState({isFocused:!0})})),l(this,"onBlur",(()=>{this.state.isFocused&&this.setState({isFocused:!1})})),l(this,"onMouseEnter",(()=>{this.state.isHovered||this.setState({isHovered:!0})})),l(this,"onMouseLeave",(()=>{this.state.isHovered&&this.setState({isHovered:!1})})),l(this,"hide",(()=>{this.state.isFocused||this.state.isHovered||this.props.hideDialog()}))}componentDidMount(){this.startInterval()}componentWillUnmount(){window.clearInterval(this.interval)}componentDidUpdate(t,e){const n=e.isHovered||e.isFocused,r=this.state.isHovered||this.state.isFocused;n&&!r&&this.restartInterval()}render(){return r.createElement(i.Z,a({primaryButtonIcon:this.getCancelGlyph,primaryButtonAriaLabel:s.pz.getString("close"),onFocus:this.onFocus,onBlur:this.onBlur,onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave},this.props.dialogProps))}getCancelGlyph(t){return r.createElement("div",{"aria-hidden":"true"},(0,o.p)(t))}}const u=/^(205|571|885|908|991)$/.test(n.j)?c:null},60201:(t,e,n)=>{"use strict";n.d(e,{ZP:()=>l});var r=n(89526);if(/^(205|571)$/.test(n.j))var i=n(81028);function o(){return(o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function s(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class a extends r.Component{constructor(t){super(t),s(this,"interval",void 0),s(this,"startInterval",(()=>{this.interval=window.setInterval(this.hide,1e4)})),s(this,"restartInterval",(()=>{window.clearInterval(this.interval),this.startInterval()})),s(this,"onFocus",(()=>{this.state.isFocused||this.setState({isFocused:!0})})),s(this,"onBlur",(()=>{this.state.isFocused&&this.setState({isFocused:!1})})),s(this,"onMouseEnter",(()=>{this.state.isHovered||this.setState({isHovered:!0})})),s(this,"onMouseLeave",(()=>{this.state.isHovered&&this.setState({isHovered:!1})})),s(this,"hide",(()=>{this.state.isFocused||this.state.isHovered||this.props.hideDialog()})),this.state={isFocused:!1,isHovered:!1}}componentDidMount(){this.startInterval()}componentWillUnmount(){window.clearInterval(this.interval)}componentDidUpdate(t,e){const n=e.isHovered||e.isFocused,r=this.state.isHovered||this.state.isFocused;n&&!r&&this.restartInterval()}render(){return r.createElement(i.Z,o({},this.props.dialogProps,{onFocus:this.onFocus,onBlur:this.onBlur,onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave}))}}const l=/^(205|571)$/.test(n.j)?a:null},86224:(t,e,n)=>{"use strict";n.d(e,{Z:()=>C});var r=n(89526),i=n(17332),o=n(11754),s=n(23366),a=n(48863),l=n(9748),c=n(53363),u=n(51094),d=n(94048),p=n(95046),h=n(89827),f=n(17657),g=n(71388),v=n(87304),b=n(6098),m=n(38681);function y(){return(y=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function x(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const _={dragPreview:{display:"flex",justifyContent:"flex-start",alignItems:"center",height:(0,f.a)(36),borderRadius:"2px",...(0,l.XC)(l.Y3.e8,b.fn.uiColor.defaultShadow)(void 0)},dragPreview_iconContainer:{display:"flex",alignItems:"center",justifyContent:"center",width:(0,f.a)(36),height:(0,f.a)(36),minWidth:(0,f.a)(36)},dragPreview_icon:{width:"16px",height:"16px",backgroundRepeat:"no-repeat",backgroundSize:"16px"},dragPreview_title:{...(0,c.Sh)("t8"),marginInlineEnd:(0,f.a)(10),width:(0,f.a)(120),...(0,s.L)(),color:u.CH},dragPreview_container:{position:"relative","& > *":{position:"absolute"}},dragPreview_badge:{backgroundColor:d.Av,color:p.Q,height:"18px",borderRadius:"9px",display:"flex",alignItems:"center",justifyContent:"center",top:"-9px"},dragPreview_badgeText:{...(0,h.cg)(),...(0,c.Sh)("t8")}};class w extends o.Z{constructor(...t){super(...t),x(this,"handledProps",{title:void 0,faviconImage:void 0,defaultIcon:void 0,count:void 0,managedClasses:void 0}),x(this,"renderBadge",(()=>{if("number"!=typeof this.props.count||this.props.count<=1)return null;const t=10+8*this.props.count.toString().length,e=166-t/2,n=b.fn.direction===a.Nm.rtl;return r.createElement("div",{className:this.props.managedClasses.dragPreview_badge,style:{width:(0,f.a)(t),left:(0,f.a)(n?0:e),right:(0,f.a)(n?e:0)}},r.createElement("p",{className:this.props.managedClasses.dragPreview_badgeText},this.props.count))})),x(this,"renderIcon",(()=>this.props.faviconImage?r.createElement(v.Z,{className:this.props.managedClasses.dragPreview_icon,image:this.props.faviconImage}):this.props.defaultIcon(this.props.managedClasses.dragPreview_icon)))}render(){return r.createElement("div",y({},this.unhandledProps(),{className:this.props.managedClasses.dragPreview_container}),r.createElement(g.ZP,{value:m.dS},r.createElement("div",{className:this.props.managedClasses.dragPreview},r.createElement("div",{className:this.props.managedClasses.dragPreview_iconContainer},this.renderIcon()),r.createElement("div",{className:this.props.managedClasses.dragPreview_title},this.props.title))),this.renderBadge())}}const C=(0,i.ZP)(_)(w)},87304:(t,e,n)=>{"use strict";n.d(e,{Z:()=>l});var r=n(89526),i=n(11754),o=n(17332);function s(){return(s=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}class a extends i.Z{constructor(...t){var e,n,r;super(...t),r={image:void 0,managedClasses:void 0},(n="handledProps")in(e=this)?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r}render(){return r.createElement("div",s({},this.unhandledProps(),{className:this.generateClassNames(),style:{backgroundImage:this.props.image}}))}generateClassNames(t){let e=`${t||""} ${this.props.managedClasses.favicon}`;return"string"==typeof this.props.className&&(e=`${e} ${this.props.className}`),super.generateClassNames(e)}}const l=(0,o.ZP)({favicon:{backgroundRepeat:"no-repeat",backgroundSize:"contain",height:"16px",minHeight:"16px",width:"16px",minWidth:"16px"}})(a)},37800:(t,e,n)=>{"use strict";n.d(e,{eo:()=>d,ZP:()=>h});var r=n(2483),i=n(89526),o=n(11754),s=n(17332),a=n(6098),l=n(14570),c=n(46589);function u(){return(u=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}const d={button:{...(0,l.b)(a.fn,c.k8,c.k8)}};class p extends o.Z{constructor(...t){var e,n,r;super(...t),r={icon:void 0,id:void 0,buttonRef:void 0},(n="handledProps")in(e=this)?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r}render(){return i.createElement(r.XC,u({},this.unhandledProps(),{id:this.props.id,jssStyleSheet:d,ref:this.props.buttonRef}),i.createElement("span",{"aria-hidden":!0,style:{height:"20px"}},this.props.icon))}}const h=(0,s.ZP)({})(p)},42641:(t,e,n)=>{"use strict";n.d(e,{ZP:()=>P});var r=n(41808),i=n(92588),o=n(89526),s=n(73961),a=n(11754),l=n(17332),c=n(53363),u=n(89827),d=n(48863),p=n(23366),h=n(40370),f=n(33832),g=n(6098),v=n(10236),b=n(3031),m=n(37800),y=n(42961),x=n(7194);function _(){return(_=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function w(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const C={hubHeaderContent_flexContainer:{"min-width":"0px",flex:"1","margin-inline-end":"4px"},hubHeaderContent_chevronIcon:{transform:g.fn.direction===d.Nm.ltr?"rotate(180deg)":"unset"},hubHeaderContent_headingWithoutButton:{...(0,p.L)()},hubHeaderContent_headingWithButton:{display:"flex"},hubHeaderContent_backButton:{width:"24px","max-width":"24px","min-width":"24px","margin-inline-start":"-4px","margin-inline-end":"2px"},hubHeaderContent_headingButtonSmall:{"& > *":{...(0,c.Sh)("t7"),...(0,u.cg)()}},hubHeaderContent_headingButtonLarge:{"& > *":{...(0,c.Sh)("t6"),...(0,u.cg)()}}},S={button:{flex:"1","margin-inline-end":"4px",display:"inline","text-align":"start",background:"transparent",padding:"0",height:"28px",width:"100%",...(0,p.L)()}},E={button:{flex:"1",display:"inline","text-align":"start",background:"transparent",padding:"0 5px 0 5px","margin-inline-start":"-7px",cursor:"pointer",height:"28px","max-width":"fit-content",...(0,p.L)()}},O={textField:{padding:"0px",height:"28px",width:"100%","padding-inline-start":"1px",...(0,u.cg)()}};class j extends a.Z{constructor(...t){super(...t),w(this,"searchBoxRef",o.createRef()),w(this,"editBoxRef",o.createRef()),w(this,"defaultEnableModes",[y.QU.SIMPLE]),w(this,"handledProps",{heading:void 0,headingId:void 0,onHeadingClick:void 0,headingTooltip:void 0,enableModes:void 0,editModeProps:void 0,searchModeProps:void 0,mode:void 0,backButtonProps:void 0,managedClasses:void 0,size:void 0}),w(this,"isModeEnabled",(t=>(this.props.enableModes||this.defaultEnableModes).includes(t))),w(this,"renderSimpleContent",(()=>{if(this.isModeEnabled(y.QU.EDIT)){const t=this.props.editModeProps.editBoxProps,e="string"==typeof t.value?t.value:this.props.heading;return this.renderHeading(o.createElement(h.zx,{id:"hub-edit-button",className:this.generateHeadingButtonClassName(),jssStyleSheet:S,onClick:this.props.editModeProps.onStartEdit,onFocus:this.props.editModeProps.onStartEdit,title:this.props.editModeProps.editButtonTooltip},e),!0)}return"function"==typeof this.props.onHeadingClick?this.renderHeading(o.createElement(h.zx,{id:"hub-heading-button",className:this.generateHeadingButtonClassName(),jssStyleSheet:E,title:this.props.headingTooltip,onClick:this.props.onHeadingClick},this.props.heading),!0):this.renderHeading(this.props.heading,!1)})),w(this,"renderSearchContent",(()=>o.createElement(v.Z,_({},this.props.searchModeProps.searchBoxProps,{innerRef:this.searchBoxRef})))),w(this,"renderEditContent",(()=>o.createElement(r.nv,_({},this.props.editModeProps.editBoxProps,{jssStyleSheet:O,innerRef:this.editBoxRef,placeholder:this.props.editModeProps.editButtonTooltip,onBlur:this.props.editModeProps.onBlurEdit,onFocus:this.onEditBoxFocus,onKeyDown:this.onEditBoxKeyDown})))),w(this,"renderHeading",((t,e)=>o.createElement(i.X6,{tag:x.UF,size:(0,y.D6)(this.props.size),className:e?this.props.managedClasses.hubHeaderContent_headingWithButton:this.props.managedClasses.hubHeaderContent_headingWithoutButton,title:this.props.title,id:this.props.headingId},t))),w(this,"maybeRenderBackButton",(()=>{if(this.props.backButtonProps)return o.createElement(m.ZP,_({},this.props.backButtonProps,{id:"hub-layout-back-button",className:this.props.managedClasses.hubHeaderContent_backButton,icon:(0,b.o)(this.props.managedClasses.hubHeaderContent_chevronIcon),onClick:this.props.backButtonProps.onClick,title:this.props.backButtonProps.title}))})),w(this,"generateHeadingButtonClassName",(()=>this.props.size===y.tS.SMALL?this.props.managedClasses.hubHeaderContent_headingButtonSmall:this.props.managedClasses.hubHeaderContent_headingButtonLarge)),w(this,"onEditBoxKeyDown",(t=>{t.keyCode===f.mW.enter?(t.preventDefault(),t.stopPropagation(),this.props.editModeProps.onFinishEdit(t)):t.keyCode===f.mW.escape&&(t.preventDefault(),t.stopPropagation(),this.props.editModeProps.onCancelEdit(t))})),w(this,"onEditBoxFocus",(()=>{if(this.editBoxRef.current){const t=s.findDOMNode(this.editBoxRef.current);t&&t.select()}})),w(this,"focusInputByRef",(t=>{if(t&&t.current){const e=s.findDOMNode(t.current);if(e){const t=e.querySelector("input");t?t.focus():e.focus()}}}))}componentDidUpdate(t){const e=t.mode,n=this.props.mode;e!==n&&(n===y.QU.SEARCH&&this.focusInputByRef(this.searchBoxRef),n===y.QU.EDIT&&this.focusInputByRef(this.editBoxRef))}render(){return o.createElement(o.Fragment,null,this.maybeRenderBackButton(),o.createElement("div",{className:this.props.managedClasses.hubHeaderContent_flexContainer},this.props.mode===y.QU.SIMPLE&&this.renderSimpleContent(),this.props.mode===y.QU.SEARCH&&this.renderSearchContent(),this.props.mode===y.QU.EDIT&&this.renderEditContent()))}}const P=(0,l.ZP)(C)(j)},37351:(t,e,n)=>{"use strict";n.d(e,{ZP:()=>_});var r=n(89526),i=n(11754),o=n(17332),s=n(8215),a=n(9748),l=n(76908),c=n(37834),u=n(64197),d=n(17657),p=n(18169),h=n(42961);function f(){return(f=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}class g extends i.Z{constructor(...t){var e,n,r;super(...t),r={managedClasses:void 0},(n="handledProps")in(e=this)?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r}render(){return this.props.children?r.createElement("div",f({},this.unhandledProps(),{className:this.props.managedClasses.hubHeaderExtraRowContent}),this.props.children):null}}const v=(0,o.ZP)({hubHeaderExtraRowContent:{width:"100%"}})(g);function b(){return(b=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function m(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const y={hubHeaderLayout:{"border-bottom":(0,u.WU)("{0} solid {1}",(()=>(0,d.a)(h.YF)),s.e),"z-index":`${p._p.PAGE_HEADER_ITEMS}`,display:"flex","align-items":"start","padding-inline-start":"16px","padding-inline-end":"12px","flex-direction":"column","justify-content":"start","& > *":{"z-index":`${p._p.PAGE_HEADER_ITEMS}`}},hubHeaderLayout__withElevation:{...(0,a.jf)(a.Y3.e8)},hubHeaderLayout__borderHidden:{"border-bottom":(0,u.WU)("{0} solid {1}",(()=>(0,d.a)(h.YF)),(()=>"transparent")),[l.xE]:{"border-bottom":"unset"}},hubHeaderLayout_mainRow:{display:"flex","flex-direction":"row",width:"100%","align-items":"center"}};class x extends i.Z{componentDidMount(){this.props.scrollElementId&&document.getElementById(this.props.scrollElementId).addEventListener("scroll",this.onScroll)}componentWillUnmount(){this.props.scrollElementId&&document.getElementById(this.props.scrollElementId).removeEventListener("scroll",this.onScroll)}render(){return r.createElement("div",b({},this.unhandledProps(),{className:this.generateHubHeaderLayoutClassNames(),style:this.getTotalHeightStyle(),id:"hub-header"}),r.createElement("div",{className:this.props.managedClasses.hubHeaderLayout_mainRow,style:{minHeight:(0,d.a)((0,h.JS)(this.props.size,this.props.viewType))}},this.props.children),this.maybeRenderExtraRow())}constructor(t){super(t),m(this,"onScroll",(t=>{const e=t.target;if(e.id===this.props.scrollElementId){const t=e.scrollTop;t>0&&!this.state.isScrolledDown&&this.setState({isScrolledDown:!0}),0===t&&this.state.isScrolledDown&&this.setState({isScrolledDown:!1})}})),m(this,"hasExtraRow",(()=>!!this.props.extraRow&&!!this.props.extraRow.content)),m(this,"hasExtraRowHeight",(()=>!!this.props.extraRow&&!!this.props.extraRow.height)),m(this,"maybeRenderExtraRow",(()=>{var t;return this.hasExtraRow()?r.createElement(v,{style:{height:this.hasExtraRowHeight()?(0,d.a)(this.props.extraRow.height):"unset"},jssStyleSheet:this.props.extraRow.styleSheet},null===(t=this.props.extraRow)||void 0===t?void 0:t.content):null})),m(this,"getTotalHeightStyle",(()=>{let t=null;return t=this.hasExtraRow()?this.hasExtraRowHeight()?(0,d.a)((0,h.Jb)(this.props.size,this.props.viewType,this.props.extraRow.height)-h.YF):"unset":(0,d.a)((0,h.Jb)(this.props.size,this.props.viewType)-h.YF),{minHeight:t,marginTop:(0,h.Ts)(this.props.viewType)}})),m(this,"generateHubHeaderLayoutClassNames",(()=>{const t=[this.props.managedClasses.hubHeaderLayout];return this.state.isScrolledDown&&t.push(this.props.managedClasses.hubHeaderLayout__withElevation),this.props.hideBorder&&t.push(this.props.managedClasses.hubHeaderLayout__borderHidden),(0,c.A)(...t)})),m(this,"handledProps",{hideBorder:void 0,extraRow:void 0,scrollElementId:void 0,viewType:void 0,size:void 0,managedClasses:void 0}),this.state={isScrolledDown:!1}}}const _=(0,o.ZP)(y)(x)},97731:(t,e,n)=>{"use strict";n.d(e,{Z:()=>p});var r=n(89526);if(672==n.j)var i=n(14893);if(672==n.j)var o=n(42961);if(672==n.j)var s=n(42641);if(672==n.j)var a=n(37351);if(672==n.j)var l=n(80900);function c(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const u="hub-simple-heading-id";class d extends r.Component{constructor(...t){super(...t),c(this,"getBackButtonProps",(()=>{var t;if(this.props.onBackButtonClick)return{title:null===(t=this.props.tooltips)||void 0===t?void 0:t.backButton,onClick:this.props.onBackButtonClick,autoFocus:!0,id:"hub-simple-heading-back-button"}})),c(this,"getToolbarButtonsProps",(()=>{const t=[];var e;(this.props.buttonsProps&&this.props.buttonsProps.length&&t.push(...this.props.buttonsProps),this.props.onCloseButtonClick)&&t.push({id:"hub-simple-heading-close-button",icon:(0,i.p)(""),onClick:this.props.onCloseButtonClick,title:null===(e=this.props.tooltips)||void 0===e?void 0:e.closeButton,buttonRef:this.props.closeButtonRef});return t}))}render(){return r.createElement(a.ZP,{size:o.tS.SMALL,viewType:o.bW.SQUARE,hideBorder:this.props.hideBorder},r.createElement(s.ZP,{heading:this.props.heading,headingId:u,title:this.props.title,mode:o.QU.SIMPLE,size:o.tS.SMALL,backButtonProps:this.getBackButtonProps()}),r.createElement(l.ZP,{labelledBy:u,buttonsProps:this.getToolbarButtonsProps()}))}}const p=672==n.j?d:null},80900:(t,e,n)=>{"use strict";n.d(e,{ZP:()=>y});var r=n(89526),i=n(11754),o=n(17332),s=n(33832),a=n(37800),l=n(14279),c=n(44907),u=n(95774),d=n(39529);function p(){return(p=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function h(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class f extends i.Z{render(){var t;const e=null!==(t=this.props.buttonStyleSheet)&&void 0!==t?t:a.eo,n=this.props.innerContentOverride||r.createElement("span",{"aria-hidden":!0},(0,u.W)(""));return"function"==typeof this.props.menuItems?r.createElement(d._,p({},this.unhandledProps(),{id:this.props.id,buttonStyleSheet:e,menuItems:this.props.menuItems,menuPosition:l.P.BottomRightMenuRight,extraOnClickData:this.props.extraOnClickData}),n):r.createElement(c.C,p({},this.unhandledProps(),{id:this.props.id,buttonStyleSheet:e,menu:this.props.menu,menuPosition:l.P.BottomRightMenuRight,onClick:this.toggleMenu,menuOpen:this.state.menuOpen,onMenuShouldDismiss:this.toggleMenu,contextMenuParentId:this.props.contextMenuParentId,renderBottomForSmallViewport:this.props.renderBottomForSmallViewport}),n)}componentDidUpdate(t,e){e.menuOpen!==this.state.menuOpen&&"function"==typeof this.props.onMenuOpenChange&&this.props.onMenuOpenChange(this.state.menuOpen)}constructor(t){super(t),h(this,"toggleMenu",(()=>{this.setState({menuOpen:!this.state.menuOpen})})),h(this,"handledProps",{buttonStyleSheet:void 0,onMenuOpenChange:void 0,menu:void 0,contextMenuParentId:void 0,renderBottomForSmallViewport:void 0,menuItems:void 0,extraOnClickData:void 0,innerContentOverride:void 0}),this.state={menuOpen:!1}}}const g=(0,o.ZP)({})(f);function v(){return(v=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function b(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class m extends i.Z{constructor(t){super(t),b(this,"toolbarRef",r.createRef()),b(this,"toolbarButtonQuery","button:enabled"),b(this,"handledProps",{buttonsProps:void 0,managedClasses:void 0,labelledBy:void 0,getPlaceholder:void 0}),b(this,"onFocus",(t=>{const e=t.target,n=t.currentTarget,r=t.relatedTarget;var i;null!=n&&n.contains(r)||this.state.isFocusInToolbar||(this.setState({isFocusInToolbar:!0}),e===n&&(null===(i=this.toolbarRef.current)||void 0===i?void 0:i.querySelector(this.toolbarButtonQuery)).focus())})),b(this,"onBlur",(t=>{const e=t.currentTarget,n=t.relatedTarget;null!=e&&e.contains(n)||!this.state.isFocusInToolbar||this.setState({isFocusInToolbar:!1})})),b(this,"getPlaceholder",(()=>"function"==typeof this.props.getPlaceholder?this.props.getPlaceholder(this.props.buttonsProps.length):null)),b(this,"renderButtons",(()=>this.props.buttonsProps.map(this.renderButton))),b(this,"renderButton",(t=>{const e=t,n=t;return e.menu||e.menuItems?r.createElement(g,v({key:"hub-layout-overflow-button"},e,{tabIndex:-1})):r.createElement(a.ZP,v({},n,{key:t.id,tabIndex:-1}))})),b(this,"onKeyDown",(t=>{switch(t.keyCode){case s.mW.arrowLeft:return t.preventDefault(),t.stopPropagation(),void this.focusNextButton(-1);case s.mW.arrowRight:return t.preventDefault(),t.stopPropagation(),void this.focusNextButton(1)}})),b(this,"focusNextButton",(t=>{if(!this.toolbarRef.current)return;const e=Array.from(this.toolbarRef.current.querySelectorAll(this.toolbarButtonQuery)),n=document.activeElement,r=e.indexOf(n),i=e.length,o=e[(r+t+i)%i];o&&o.focus&&o.focus()})),this.state={isFocusInToolbar:!1}}render(){return r.createElement("div",{id:"hub-toolbar",ref:this.toolbarRef,className:this.props.managedClasses.hubToolbar,onKeyDown:this.onKeyDown,role:"toolbar","aria-labelledby":this.props.labelledBy,"aria-placeholder":this.getPlaceholder(),onFocus:this.onFocus,onBlur:this.onBlur,tabIndex:this.state.isFocusInToolbar?-1:0},this.renderButtons())}}const y=(0,o.ZP)({hubToolbar:{"&>:not(:last-child)":{"margin-inline-end":"4px"}}})(m)},18756:(t,e,n)=>{"use strict";n.d(e,{kl:()=>u,ZP:()=>d});var r=n(89526);if(/^(6(01|72|75)|(20|5|88)5|908)$/.test(n.j))var i=n(71388);if(/^(6(01|72|75)|(20|5|88)5|908)$/.test(n.j))var o=n(6098);if(/^(6(01|72|75)|(20|5|88)5|908)$/.test(n.j))var s=n(20513);function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const l=window.matchMedia("(prefers-color-scheme: dark)");function c(){return l.matches}function u(t){return t?c()?76:0:c()?70:0}const d=/^(6(01|72|75)|(20|5|88)5|908)$/.test(n.j)?function(t){var e,n;return n=e=class extends r.Component{constructor(t){super(t),a(this,"backgroundListener",(()=>{this.setState({backgroundValue:u(null===s.Rg||void 0===s.Rg?void 0:s.Rg.hubPinned)})})),this.state={backgroundValue:u(null===s.Rg||void 0===s.Rg?void 0:s.Rg.hubPinned)}}componentDidMount(){l.addEventListener("change",this.backgroundListener)}componentWillUnmount(){l.removeEventListener("change",this.backgroundListener)}render(){return document.body.style.backgroundColor=o.fn.neutralPalette[this.state.backgroundValue],document.documentElement.style.borderInlineStart="none",r.createElement(i.ZP,{value:this.state.backgroundValue},r.createElement(t,this.props))}},a(e,"displayName",`HubBackground(${t.displayName})`),n}:null},42961:(t,e,n)=>{"use strict";if(n.d(e,{YF:()=>i,vz:()=>o,er:()=>s,QU:()=>a,bW:()=>l,tS:()=>c,D6:()=>u,TQ:()=>d,Ye:()=>p,JS:()=>h,Jb:()=>f,pQ:()=>g,Ts:()=>v}),/^(6(01|72|75)|(20|5|88)5|908)$/.test(n.j))var r=n(90305);const i=1,o=38,s=32;let a,l,c;function u(t){return t===c.SMALL?r.Gm._7:r.Gm._6}function d(t){return t?l.SQUARE:l.ROUNDED}function p(t){return t?c.LARGE:c.SMALL}function h(t,e){let n=t===c.SMALL?36:52;return e===l.ROUNDED&&(n+=4),n}function f(t,e,n=0){return h(t,e)+n+i}function g(t,e=0){return f(p(t),d(t),e)}function v(t){return t===l.ROUNDED?"-4px":"unset"}!function(t){t[t.SIMPLE=0]="SIMPLE",t[t.EDIT=1]="EDIT",t[t.SEARCH=2]="SEARCH"}(a||(a={})),function(t){t[t.ROUNDED=0]="ROUNDED",t[t.SQUARE=1]="SQUARE"}(l||(l={})),function(t){t[t.SMALL=0]="SMALL",t[t.LARGE=1]="LARGE"}(c||(c={}))},4111:(t,e,n)=>{"use strict";n.d(e,{ZP:()=>p});var r=n(89526),i=n(11754),o=n(17332),s=n(76908),a=n(17657);function l(){return(l=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function c(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const u={hubLayoutContent:{overflow:"auto",flex:"1","margin-inline-start":"4px","margin-inline-end":"4px",...(0,n(21733).vh)()},hubLayoutContent_bottomShelf:{position:"fixed",bottom:"0",width:"100%",[s.xE]:{"border-top":`1px solid ${s.YP.text}`}}};class d extends i.Z{constructor(...t){super(...t),c(this,"handledProps",{bottomShelfContent:void 0,bottomShelfHeight:void 0,contentRef:void 0,headerHeight:void 0,isPinned:void 0,disableScroll:void 0,managedClasses:void 0}),c(this,"maybeRenderBottomShelf",(()=>{if(!this.props.bottomShelfContent)return null;const t=this.props.managedClasses.hubLayoutContent_bottomShelf;return r.createElement("div",{className:t,style:{height:(0,a.a)(this.props.bottomShelfHeight)}},this.props.bottomShelfContent)})),c(this,"getStyle",(()=>{const t={},e=!!this.props.bottomShelfContent,n=e?this.props.bottomShelfHeight:0;if(this.props.headerHeight){const e=this.props.headerHeight+n,r=`calc(100% - ${(0,a.a)(e)})`,i="unset",o=this.props.isPinned?i:r;t.height=o,t.maxHeight=o}return e&&(t.marginBottom=(0,a.a)(n)),this.props.disableScroll&&(t.overflow="hidden"),t}))}render(){return r.createElement(r.Fragment,null,r.createElement("div",l({},this.unhandledProps(),{className:this.props.managedClasses.hubLayoutContent,ref:this.props.contentRef,style:this.getStyle()}),this.props.children),this.maybeRenderBottomShelf())}}const p=(0,o.ZP)(u)(d)},73556:(t,e,n)=>{"use strict";n.d(e,{ZP:()=>A});var r=n(89526),i=n(73961),o=n(11754),s=n(17332),a=n(4921),l=n(64197),c=n(17657),u=n(33832),d=n(3117),p=n(21733),h=n(27774),f=n(91242),g=n(14893),v=n(18169),b=n(20513),m=n(74846),y=n(42961),x=n(18756),_=n(28902),w=n(42641),C=n(37351),S=n(80900);function E(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class O extends r.Component{constructor(t){super(t),E(this,"searchButtonRef",r.createRef()),E(this,"headingId","hub-full-heading-id"),E(this,"toolbarRef",r.createRef()),E(this,"getToolbarButtonsProps",(()=>{if(this.state.mode===y.QU.SEARCH)return[];const t=[];var e;(this.props.startButtonsProps&&this.props.startButtonsProps.length&&t.push(...this.props.startButtonsProps),this.isModeEnabled(y.QU.SEARCH))&&t.push({id:"hub-layout-search-button",buttonRef:this.searchButtonRef,icon:(0,_.R)(""),onClick:this.enterSearchMode,title:null===(e=this.props.tooltips)||void 0===e?void 0:e.searchButton});return this.props.overflowButtonProps&&t.push(this.props.overflowButtonProps),this.props.endButtonProps&&t.push(...this.props.endButtonProps),t})),E(this,"isModeEnabled",(t=>this.props.enableModes.includes(t))),E(this,"getBackButtonProps",(()=>{var t,e;return this.props.onBackButtonClick?{onClick:this.props.onBackButtonClick,title:null===(t=this.props.tooltips)||void 0===t?void 0:t.backButton,id:"hub-layout-back-button"}:this.props.useBackButtonForSearch&&this.state.mode===y.QU.SEARCH?{onClick:this.exitSearchMode,title:null===(e=this.props.tooltips)||void 0===e?void 0:e.backButton,id:"hub-layout-back-button"}:null})),E(this,"onEditBoxChange",(t=>{this.setState({editBoxValue:t.target.value})})),E(this,"onSearchModeKeyDown",(t=>{if(t.keyCode===u.mW.escape){if("function"==typeof this.props.shouldExitSearchOnEscape&&!this.props.shouldExitSearchOnEscape(t))return;t.preventDefault(),t.stopPropagation(),this.exitSearchMode()}})),E(this,"enterSearchMode",(()=>{document.addEventListener("keydown",this.onSearchModeKeyDown),this.setState({mode:y.QU.SEARCH})})),E(this,"exitSearchMode",(()=>{document.removeEventListener("keydown",this.onSearchModeKeyDown),this.setState({mode:y.QU.SIMPLE},(()=>this.focusButtonByRef(this.searchButtonRef)))})),E(this,"enterEditMode",(()=>{this.setState({mode:y.QU.EDIT})})),E(this,"finishEdit",(t=>{this.props.onEditFinished&&this.props.onEditFinished(this.state.editBoxValue),this.setState({mode:y.QU.SIMPLE},t)})),E(this,"cancelEdit",(t=>{this.setState({mode:y.QU.SIMPLE,editBoxValue:this.props.heading},t)})),E(this,"onFinishEdit",(()=>{this.finishEdit(this.focusToolbar)})),E(this,"onBlurEdit",(()=>{this.finishEdit()})),E(this,"onCancelEdit",(()=>{this.cancelEdit(this.focusToolbar)})),E(this,"focusToolbar",(()=>{if(this.toolbarRef&&this.toolbarRef.current){const t=i.findDOMNode(this.toolbarRef.current);if(t){const e=t.querySelector("button");e&&e.focus&&e.focus()}}})),E(this,"focusButtonByRef",(t=>{if(t&&t.current){const e=i.findDOMNode(t.current);e&&e.focus&&e.focus()}})),this.state={mode:t.forceMode||y.QU.SIMPLE,editBoxValue:t.heading}}componentDidUpdate(t,e){e.mode!==this.state.mode&&this.props.onModeChange&&this.props.onModeChange(e.mode,this.state.mode),t.heading!==this.props.heading&&this.props.heading!==this.state.editBoxValue&&this.state.mode!==y.QU.EDIT&&this.setState({editBoxValue:this.props.heading}),t.forceMode!==this.props.forceMode&&this.state.mode!==this.props.forceMode&&(this.props.forceMode===y.QU.SEARCH?this.enterSearchMode():this.props.forceMode===y.QU.EDIT?this.enterEditMode():this.setState({mode:y.QU.SIMPLE}))}render(){var t,e;return r.createElement(C.ZP,{id:"hub-header",size:this.props.size,viewType:this.props.viewType,extraRow:this.props.extraRow,scrollElementId:this.props.scrollElementId,hideBorder:this.props.hideBorder},r.createElement(w.ZP,{heading:this.state.editBoxValue,headingId:this.headingId,onHeadingClick:this.props.onHeadingClick,headingTooltip:null===(t=this.props.tooltips)||void 0===t?void 0:t.headingButton,enableModes:this.props.enableModes,editModeProps:{editBoxProps:{...this.props.editBoxProps,value:this.state.editBoxValue,onChange:this.onEditBoxChange},editButtonTooltip:null===(e=this.props.tooltips)||void 0===e?void 0:e.editButton,onStartEdit:this.enterEditMode,onFinishEdit:this.onFinishEdit,onCancelEdit:this.onCancelEdit,onBlurEdit:this.onBlurEdit},searchModeProps:{searchBoxProps:this.props.searchBoxProps},mode:this.state.mode,backButtonProps:this.getBackButtonProps(),size:this.props.size}),r.createElement(S.ZP,{ref:this.toolbarRef,buttonsProps:this.getToolbarButtonsProps(),labelledBy:this.headingId,getPlaceholder:this.props.getToolbarPlaceholder}))}}const j=O;function P(){return(P=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function k(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const I={hubLayout:{display:"flex","flex-direction":"column",width:"100%",height:"100%",position:"absolute","user-select":"none"},hubLayout_content:{overflow:"auto",flex:"1","margin-inline-start":"4px","margin-inline-end":"4px",...(0,p.vh)()},hubLayout_pinnedBorder:{"border-inline-start":(0,l.WU)("{0} solid {1}",(()=>(0,c.a)(y.YF)),a.L$),height:"100%",width:"0px",position:"absolute","z-index":v._p.PAGE_HEADER_ITEMS.toString()},...p.Os};class T extends o.Z{constructor(...t){super(...t),k(this,"closeOrUnpinButtonRef",r.createRef()),k(this,"hubLayoutRef",r.createRef()),k(this,"pinPersistContentTypes",[m.SX.Collections,m.SX.Downloads,m.SX.Favorites,m.SX.History,m.SX.Performance]),k(this,"handledProps",{heading:void 0,onHeadingClick:void 0,contentId:void 0,searchBoxProps:void 0,editBoxProps:void 0,managedClasses:void 0,isPinned:void 0,enableModes:void 0,buttonsProps:void 0,overflowButtonProps:void 0,useBackButtonForSearch:void 0,forceMode:void 0,onModeChange:void 0,tooltips:void 0,onBackButtonClick:void 0,onEditFinished:void 0,topShelfContent:void 0,topShelfStyleSheet:void 0,scrollElementId:void 0,hideBorder:void 0}),k(this,"onDocumentKeyDown",(t=>{const e=t.target;"INPUT"!==e.tagName&&"textbox"!==e.getAttribute("role")&&(t.keyCode!==u.mW.arrowLeft&&t.keyCode!==u.mW.arrowRight||(t.preventDefault(),t.stopPropagation()))})),k(this,"getToolbarPlaceholder",(t=>1===t?b.Rg.hubToolbarDescSingular:d.pz.substituteString(b.Rg.hubToolbarDescPlural,t))),k(this,"shouldExitSearchOnEscape",(t=>{var e,n;const r=t.target;return!(null===(e=this.hubLayoutRef)||void 0===e||null===(n=e.current)||void 0===n||!n.contains(r))})),k(this,"getEndButtonProps",(()=>{if(!this.props.isPinned&&!b.Rg.hubIsInsideWebView2)return[{id:"hub-layout-pin-button",icon:(0,h.P)(""),onClick:this.onPinButtonClick,title:b.Rg.hubPinButtonTooltip}];const t={id:"hub-layout-unpin-button",icon:(0,f.O)(""),onClick:this.onUnpinButtonClick,title:b.Rg.hubUnpinButtonTooltip},e={id:"hub-layout-close-button",icon:(0,g.p)(""),onClick:this.onCloseButtonClick,title:b.Rg.hubCloseButtonTooltip};return this.pinPersistContentTypes.includes(this.props.contentId)&&b.Rg.hubPinPersistEnabled?(t.buttonRef=this.closeOrUnpinButtonRef,[t,e]):(e.buttonRef=this.closeOrUnpinButtonRef,[e])})),k(this,"onModeChange",((t,e)=>{e===y.QU.SEARCH&&(0,b.Ag)(this.props.contentId,m.i8.SEARCH),this.props.onModeChange(t,e)})),k(this,"renderPinnedBorder",(()=>r.createElement("div",{className:this.props.managedClasses.hubLayout_pinnedBorder}))),k(this,"onUnpinButtonClick",(()=>{(0,b.Ag)(this.props.contentId,m.i8.UNPIN),(0,b.Qn)(this.props.contentId)})),k(this,"onPinButtonClick",(()=>{(0,b.Ag)(this.props.contentId,m.i8.PIN),(0,b.Rx)(this.props.contentId)})),k(this,"onCloseButtonClick",(()=>{(0,b.Vs)(this.props.contentId)}))}componentDidMount(){if(this.props.isPinned||(0,b.hD)(),this.props.forceMode===y.QU.SEARCH&&(0,b.Ag)(this.props.contentId,m.i8.SEARCH),this.props.isPinned&&this.closeOrUnpinButtonRef.current){const t=i.findDOMNode(this.closeOrUnpinButtonRef.current);t&&t.focus()}document.addEventListener("keydown",this.onDocumentKeyDown)}componentWillUnmount(){document.removeEventListener("keydown",this.onDocumentKeyDown)}render(){return r.createElement("div",P({},this.unhandledProps(),{className:this.props.managedClasses.hubLayout,ref:this.hubLayoutRef}),r.createElement(j,{heading:this.props.heading,onHeadingClick:this.props.onHeadingClick,enableModes:this.props.enableModes,size:(0,y.Ye)(this.props.isPinned),viewType:(0,y.TQ)(this.props.isPinned),tooltips:this.props.tooltips,startButtonsProps:this.props.buttonsProps,overflowButtonProps:this.props.overflowButtonProps,endButtonProps:this.getEndButtonProps(),extraRow:{content:this.props.topShelfContent,height:y.er,styleSheet:this.props.topShelfStyleSheet},forceMode:this.props.forceMode,onModeChange:this.onModeChange,onBackButtonClick:this.props.onBackButtonClick,useBackButtonForSearch:this.props.useBackButtonForSearch,scrollElementId:this.props.isPinned?this.props.scrollElementId:void 0,onEditFinished:this.props.onEditFinished,editBoxProps:this.props.editBoxProps,searchBoxProps:this.props.searchBoxProps,shouldExitSearchOnEscape:this.shouldExitSearchOnEscape,getToolbarPlaceholder:this.getToolbarPlaceholder,hideBorder:this.props.hideBorder}),this.props.children,this.props.isPinned&&this.renderPinnedBorder())}}const A=(0,x.ZP)((0,s.ZP)(I)(T))},21038:(t,e,n)=>{"use strict";n.d(e,{Z:()=>u});var r=n(89526);if(/^(205|885|908)$/.test(n.j))var i=n(61184);if(/^(205|885|908)$/.test(n.j))var o=n(11754);if(/^(205|885|908)$/.test(n.j))var s=n(7194);function a(){return(a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function l(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class c extends(/^(205|885|908)$/.test(n.j)?o.Z:null){constructor(...t){super(...t),l(this,"handledProps",{numResults:void 0,resultsString:void 0,noResultsString:void 0}),l(this,"getSearchResultsStatusText",(()=>r.createElement("div",a({},this.unhandledProps(),{role:"status",style:{height:"0px",overflow:"hidden"}}),this.props.resultsString))),l(this,"getNoSearchResultsSubheading",(()=>r.createElement(i.pm,a({},this.unhandledProps(),{tag:s.cA,size:s.nH,jssStyleSheet:s.X_,role:"status"}),this.props.noResultsString)))}render(){return 0===this.props.numResults?this.getNoSearchResultsSubheading():this.getSearchResultsStatusText()}}const u=/^(205|885|908)$/.test(n.j)?c:null},7194:(t,e,n)=>{"use strict";n.d(e,{tD:()=>g,uy:()=>b,UF:()=>m,nH:()=>y,KI:()=>x,cA:()=>_,SK:()=>w,gf:()=>C,X_:()=>S,fL:()=>E});var r=n(53363);if(/^(205|222|908)$/.test(n.j))var i=n(47436);if(/^(205|222|672|908)$/.test(n.j))var o=n(76908);if(/^(222|672|908)$/.test(n.j))var s=n(89827);if(/^(222|672|908)$/.test(n.j))var a=n(94048);var l=n(90305),c=n(63650);if(/^(205|222|908)$/.test(n.j))var u=n(23366);var d=n(17657);if(/^(222|672|908)$/.test(n.j))var p=n(64197);if(/^(205|222|908)$/.test(n.j))var h=n(6098);if(/^(222|672|908)$/.test(n.j))var f=n(42961);const g=l.Gm._6,v=l.Gm._7,b=908==n.j?v:null,m=l.lb.h1,y=c.v._6,x=32,_=c.X.h2;(0,r.Sh)("t8");function w(t){return{treeView:{minWidth:t?"unset":"fit-content"}}}function C(t,e,n=!0,s=!1,a=!0){let l=e?"-4px !important":"28px !important";a||e?a&&n||(l="10px !important"):l="0px !important";const c={treeViewItem:{background:"transparent",contentVisibility:"unset"},treeViewItem_innerContentRegion:{marginLeft:"unset !important",marginInlineStart:l,overflow:t?"hidden":"unset",width:"100%",alignItems:"center","& > *":{marginTop:"0px",marginBottom:"0px"}},treeViewItem_textContainer:{width:"100%",marginInlineEnd:"3px",...(0,u.L)(),...(0,r.Sh)("t8")},treeViewItem_expandCollapseButton:{position:"unset !important",left:"unset",minWidth:"32px"}};return s&&(c.treeViewItem_contentRegion={border:`2px solid ${(0,i.F)(h.fn)}`,...o.HC}),c}const S={subheading:{marginInlineStart:"14px",paddingTop:"12px",paddingBottom:"4px",height:(0,d.a)(x)}};function E(t=!1){return{pivot:{"margin-inline-start":"2px"},pivot_tab:{...(0,r.Sh)("t8"),height:(0,d.a)(f.vz),overflow:"hidden"},pivot_tab__active:{...(0,s.cg)(),"& > span":{"border-bottom":(0,p.WU)("solid 3px {0}",a.Av),[o.xE]:{"forced-color-adjust":"none","border-bottom-color":o.YP.selectedBackground}}},pivot_activeIndicator:{top:"30px",display:"none"},pivot_tabList:{height:t?"0px":(0,d.a)(f.vz),width:(0,d.a)(340)}}}},68456:(t,e,n)=>{"use strict";n.d(e,{Z:()=>C});var r=n(89526),i=n(73961),o=n(48527),s=n(11754),a=n(47436),l=n(76908),c=n(51094),u=n(53363),d=n(89827),p=n(17332),h=n(42130),f=n(17657),g=n(33832),v=n(6098),b=n(18169);function m(){return(m=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function y(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const x={iconWithTooltip:{display:"block",height:"20px",width:"20px",...(0,h.F0)({boxShadow:"0px 0px 0px 2px "+(0,a.F)(v.fn)}),padding:"2px",[l.xE]:{"-ms-high-contrast-adjust":"none",background:l.YP.background}},iconWithTooltip_icon:{fill:c.CH,[l.xE]:{fill:l.YP.text}},iconWithTooltip_infoBubble:{maxWidth:"240px",minWidth:"180px",width:"min-content",backgroundColor:"rgb(97, 97, 97)",color:"#FFF",...(0,u.Sh)("t8"),...(0,d.cg)(),position:"fixed",padding:"10px 8px 10px 8px",...(0,b.ro)(b._p.INFO_BUBBLE),whiteSpace:"pre-line",textAlign:"start",[l.xE]:{border:`1px solid ${l.YP.text}`,color:l.YP.text,backgroundColor:l.YP.background}}};class _ extends s.Z{constructor(...t){super(...t),y(this,"state",{showTooltip:!1,tooltipLeft:0,tooltipBottom:0,isHovered:!1,isFocused:!1}),y(this,"handledProps",{bubbleText:void 0,className:void 0,icon:void 0,rootElement:void 0,managedClasses:void 0,ariaLabel:void 0}),y(this,"bubbleId",(0,o.Z)("managed-bubble-")),y(this,"iconRef",r.createRef()),y(this,"tooltipRef",r.createRef()),y(this,"onFocus",(t=>{this.props.onFocus&&this.props.onFocus(t),this.setState({isFocused:!0}),this.showTooltip()})),y(this,"onBlur",(t=>{this.props.onBlur&&this.props.onBlur(t),this.setState({isFocused:!1}),this.state.isHovered||this.hideTooltip()})),y(this,"onMouseEnter",(t=>{this.props.onMouseEnter&&this.props.onMouseEnter(t),this.setState({isHovered:!0}),this.showTooltip()})),y(this,"onMouseLeave",(t=>{this.props.onMouseLeave&&this.props.onMouseLeave(t),this.setState({isHovered:!1}),this.state.isFocused||this.hideTooltip()})),y(this,"onKeyDown",(t=>{"function"==typeof this.props.onKeyDown&&this.props.onKeyDown(t),t.keyCode===g.Lp&&this.state.showTooltip&&this.hideTooltip()})),y(this,"showTooltip",(()=>{this.positionTooltip(),this.setState({showTooltip:!0})})),y(this,"hideTooltip",(()=>{this.setState({showTooltip:!1})}))}render(){return r.createElement(r.Fragment,null,r.createElement("div",m({},this.unhandledProps(),{tabIndex:void 0!==this.props.tabIndex?this.props.tabIndex:0,className:this.generateClassNames(),"aria-label":this.props.ariaLabel||this.props.bubbleText,"aria-labelledby":this.props.ariaLabelledBy,role:this.props.role,ref:this.iconRef,onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown}),this.props.icon(this.props.managedClasses.iconWithTooltip_icon)),this.renderTooltip())}componentDidMount(){this.positionTooltip()}generateClassNames(){return`${this.props.managedClasses.iconWithTooltip} ${this.props.className||""}`}renderTooltip(){const t=r.createElement("div",{className:this.props.managedClasses.iconWithTooltip_infoBubble,id:this.bubbleId,role:"tooltip",ref:this.tooltipRef,style:{left:(0,f.a)(this.state.tooltipLeft),bottom:(0,f.a)(this.state.tooltipBottom),visibility:this.state.showTooltip?"visible":"hidden"},"aria-hidden":"true"},this.props.bubbleText);return this.props.rootElement?i.createPortal(t,this.props.rootElement):t}positionTooltip(){if(!this.iconRef.current||!this.tooltipRef.current)return;const t=this.tooltipRef.current.getBoundingClientRect().width,e=this.iconRef.current.getBoundingClientRect(),n=(e.left+e.right)/2;let r=Math.max(n-t/2,0);r+t>window.innerWidth&&(r=window.innerWidth-t);const i=window.innerHeight-e.top+10;this.setState({tooltipLeft:r,tooltipBottom:i})}}const w=(0,p.ZP)(x)(_),C=/^(22|571|775|885|991)$/.test(n.j)?w:null},86234:(t,e,n)=>{"use strict";n.d(e,{Z:()=>$});var r=n(11754),i=n(17332),o=n(61168),s=n(2483),a=n(48527),l=n(89526),c=n(42130),u=n(23366),d=n(9748),p=n(76908),h=n(29911),f=n(58934),g=n(91030),v=n(47436),b=n(89827),m=n(53363),y=n(51094),x=n(9453),_=n(33832),w=n(37834),C=n(14570),S=n(6098),E=n(18169),O=n(14893),j=n(46589),P=n(32491),k=n(38066),I=n(50529);function T(){return(T=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function A(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const D={listItemCard:{...(0,E.ro)(E._p.CARD),borderRadius:"4px",overflow:"visible",position:"relative",maxWidth:`${j.Aj}px`,minWidth:`${j.XM}px`,transition:"all 50ms linear 0ms","&:not($listItemCard_selected):not($listItemCard_dragHovered):hover":{...(0,d.XC)(d.Y3.e8,S.fn.uiColor.defaultShadow)(void 0),[p.xE]:{boxShadow:"inset 0px 0px 0px 2px "+p.YP.selectedBackground}},[p.xE]:{forcedColorAdjust:"none",background:"Window"},"& $listItemCard_closeIcon":{...(0,k.Zb)()}},listItemCard_selected:{boxShadow:"0px 0px 0px 1.5px "+(0,h.go)(S.fn),backgroundColor:f.Ob,"& $listItemCard_description":{color:(0,g.Q)(f.Ob)},"& $listItemCard_timeDate":{color:(0,g.Q)(f.Ob)},"& $listItemCard_closeIcon":{fill:(0,g.Q)(f.Ob)},[p.xE]:{backgroundColor:"Window",boxShadow:"inset 0px 0px 0px 2px "+p.YP.selectedBackground}},listItemCard_dragHovered:{backgroundColor:f.Ob,boxShadow:"none","& $listItemCard_description":{color:(0,g.Q)(f.Ob)},"& $listItemCard_timeDate":{color:(0,g.Q)(f.Ob)},"& $listItemCard_closeIcon":{fill:(0,g.Q)(f.Ob)}},listItemCard_container:{display:"flex",alignItems:"center",boxSizing:"border-box",...(0,c.F0)({boxShadow:"0px 0px 0px 2px "+(0,v.F)(S.fn),[p.xE]:{boxShadow:"0px 0px 0px 2px Window, 0px 0px 0px 4px "+p.YP.text}})},listItemCard_favIconImage:{display:"flex",alignItems:"center",justifyContent:"center",width:`${j.kC}px`,height:`${j.kC}px`,minWidth:`${j.kC}px`},listItemCard_favIconImage_websiteFavicon:{width:"16px",height:"16px",backgroundRepeat:"no-repeat",backgroundSize:"16px"},listItemCard_titleContainer:{display:"flex",alignItems:"center",flex:"1",minWidth:"0",height:`${j.kC}px`,userSelect:"none"},listItemCard_titleContainerWithSubtitle:{flexDirection:"column",alignItems:"flex-start",justifyContent:"center",height:`${j.rA}px`},listItemCard_title:{...(0,b.cg)(),border:"none",background:"none",...(0,m.Sh)("t8"),color:y.CH,textDecoration:"none",display:"inline-block",cursor:"pointer","&.card_clickable_title:hover":{"text-decoration":"underline"},...(0,c.F0)({border:"0px 0px 0px 2px "+(0,v.F)(S.fn)}),...(0,u.L)(),[p.xE]:{color:p.YP.forcedColorLink},width:"100%"},listItemCard_subtitle:{margin:"2px 0 0 0",userSelect:"none",width:"100%",...(0,m.Sh)("t8"),color:g.Q,...(0,u.L)()},listItemCard_description:{flex:"1",lineHeight:"16px",marginRight:"6px",marginLeft:"6px",marginTop:"0px",marginBottom:"0px",...(0,m.Sh)("t8"),color:g.Q,...(0,u.L)(),userSelect:"none"},listItemCard_descriptionContainer:{display:"flex",flex:"2",margin:"0px 6px",...(0,u.L)(),alignItems:"center"},listItemCard_iconDateTimeContainer__collapsed:{display:"none"},listItemCard_iconDateTimeContainer:{display:"flex",alignItems:"center",marginLeft:"auto"},listItemCard_rightContainer:{display:"flex",justifyContent:"space-between",alignItems:"center",flex:"1",minWidth:"0",height:`${j.kC}px`},listItemCard_timeDate:{lineHeight:"16px",marginLeft:"6px",marginRight:"8px",width:"12ch",textAlign:"center",whiteSpace:"nowrap",...(0,m.Sh)("t8"),color:g.Q,userSelect:"none"},listItemCard_button:{...(0,C.b)(S.fn),margin:"6px","&:hover $listItemCard_closeIcon":{[p.xE]:{fill:p.YP.selectedText}}},listItemCard_closeIcon:{height:"14px",width:"14px",fill:g.Q,[p.xE]:{fill:p.YP.buttonText,"&:hover":{fill:p.YP.selectedText}}},listItemCard_titleHighlight:{backgroundColor:S.fn.uiColor.searchHighlight,color:S.fn.uiColor.searchText},listItemCard_descriptionHighlight:{backgroundColor:S.fn.uiColor.searchHighlight,color:S.fn.uiColor.searchText},listItemCard_fallbackIcon:{fill:y.CH},listItemCard_checkbox:{display:"flex",flex:"0 1 auto",position:"relative",marginInlineStart:"8px",cursor:"pointer"}};class R extends r.Z{constructor(t){super(t),A(this,"inputId",(0,a.Z)("list-item-card-checkbox-input-")),A(this,"handleFocus",(t=>{t.target===t.currentTarget&&this.setState({focusable:!0}),"function"==typeof this.props.handleOnFocus&&this.props.handleOnFocus(t)})),A(this,"handleCloseButtonFocus",(()=>{this.state.focusable||this.setState({focusable:!0})})),A(this,"handleBlur",(t=>{const e=this.props.focusRef.current;(!(0,x.N)()||e&&!e.contains(t.relatedTarget))&&this.setState({focusable:!1})})),A(this,"handleClick",(t=>{this.setState({focusable:!0}),this.props.focusRef&&this.props.focusRef.current&&this.props.focusRef.current.focus(),this.handleSelected(t)})),A(this,"handleKeyDown",(t=>{if(t.target===t.currentTarget){switch(t.keyCode){case _.mW.arrowDown:t.preventDefault(),this.focusNextNode(1,t);break;case _.mW.arrowUp:t.preventDefault(),this.focusNextNode(-1,t);break;case _.mW.space:t.preventDefault(),this.handleSelected(t)}this.props.handleKeyDown(t)}})),A(this,"focusNextNode",((t,e)=>{"function"==typeof this.props.setFocus&&this.props.setFocus(t,e)})),A(this,"handleSelected",(t=>{"function"==typeof this.props.handleSelected&&this.props.handleSelected(t)})),A(this,"renderTitleContent",(()=>{const t="string"==typeof this.props.title;let e;return e=t?(0,P._j)(this.props.title,this.props.highlightText,this.props.managedClasses.listItemCard_titleHighlight):this.props.title,l.createElement("a",{className:`${this.props.managedClasses.listItemCard_title} ${this.props.url?"card_clickable_title":null}`,href:this.props.url,title:t?this.props.title:void 0,tabIndex:-1,onClick:this.props.handleLinkClick,target:this.props.openLinkInNewTab?"_blank":"_self"},e)})),A(this,"renderContentFavIconImage",(()=>this.props.iconUrl?l.createElement("div",{className:this.props.managedClasses.listItemCard_favIconImage_websiteFavicon,style:{backgroundImage:this.props.iconUrl}}):this.props.fallbackIcon(this.props.managedClasses.listItemCard_fallbackIcon))),this.state={focusable:!1}}render(){const t=this.state.focusable?0:-1,e=!!this.props.description||!!this.props.secondaryActionIcon||!!this.props.dateTime,n=this.props.showCheckbox&&!!this.props.handleSelected;return l.createElement(o.Zb,{className:this.generateClassNames()},l.createElement("div",{role:this.props.handleSelected?"option":"listitem",className:this.props.managedClasses.listItemCard_container,ref:this.props.focusRef,tabIndex:t,onFocus:this.handleFocus,onClick:this.handleClick,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,"aria-label":this.props.label,"aria-selected":this.props.handleSelected?this.props.isSelected:null,"aria-setsize":this.props.listSize},n&&l.createElement(I.XZ,{inputId:this.inputId,className:this.props.managedClasses.listItemCard_checkbox,checked:this.props.isSelected,tabIndex:-1,"aria-hidden":"true",onDoubleClick:this.handleDoubleClick}),l.createElement("div",{className:this.props.managedClasses.listItemCard_favIconImage,"aria-hidden":!0},this.renderContentFavIconImage()),l.createElement("div",{className:this.generateTitleContainerClassNames()},this.renderTitleContent(),!!this.props.subtitle&&l.createElement("p",{className:this.props.managedClasses.listItemCard_subtitle,title:this.props.subtitleTooltip},(0,P._j)(this.props.subtitle,this.props.highlightText,this.props.managedClasses.listItemCard_descriptionHighlight))),e&&l.createElement("div",{className:this.props.managedClasses.listItemCard_rightContainer},l.createElement("p",{className:this.props.managedClasses.listItemCard_description,title:this.props.descriptionTooltip?this.props.descriptionTooltip:this.props.description},!!this.props.description&&(this.props.descriptionDisableHighlight?this.props.description:(0,P._j)(this.props.description,this.props.highlightText,this.props.managedClasses.listItemCard_descriptionHighlight))),!!this.props.secondaryDescription&&l.createElement("div",{className:this.props.managedClasses.listItemCard_descriptionContainer},this.props.secondaryDescriptionIcon,l.createElement("p",{className:this.props.managedClasses.listItemCard_description,title:this.props.secondaryDescriptionTooltip?this.props.secondaryDescriptionTooltip:this.props.secondaryDescription},(0,P._j)(this.props.secondaryDescription,this.props.highlightText,this.props.managedClasses.listItemCard_descriptionHighlight))),l.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-end"}},this.props.secondaryActionIcon&&l.createElement(s.XC,{className:`${this.props.managedClasses.listItemCard_button} secondaryButton`,onClick:this.handleButtonClick.bind(this,this.props.handleSecondaryActionClick),onDoubleClick:this.handleDoubleClick,title:this.props.secondaryActionTooltip,tabIndex:t,disabled:!this.props.handleSecondaryActionClick},this.props.secondaryActionIcon),this.props.dateTime&&l.createElement("p",{className:this.props.managedClasses.listItemCard_timeDate,title:this.props.dateTimeTooltip},this.props.dateTime))),this.renderCloseButton(t)))}generateClassNames(){let t=`${this.props.managedClasses.listItemCard} `;return this.props.isSelected&&(t+=`${this.props.managedClasses.listItemCard_selected} `),this.props.isDragHovered&&(t+=`${this.props.managedClasses.listItemCard_dragHovered} `),super.generateClassNames(t)}renderCloseButton(t){const e={className:this.props.managedClasses.listItemCard_button,tabIndex:t,onClick:this.handleButtonClick.bind(this,this.props.handleCloseButtonClick),onDoubleClick:this.handleDoubleClick,onFocus:this.handleCloseButtonFocus};if(this.props.closeButtonOverride)return this.props.closeButtonOverride(e);if(this.props.handleCloseButtonClick){const t=this.props.closeButtonIcon?this.props.closeButtonIcon(this.props.managedClasses.listItemCard_closeIcon):(0,O.p)(this.props.managedClasses.listItemCard_closeIcon);return l.createElement(s.XC,T({},e,{title:this.props.closeButtonTooltip,innerRef:this.props.closeButtonFocusRef}),l.createElement("div",{"aria-hidden":!0},t))}}generateTitleContainerClassNames(){const t=[this.props.managedClasses.listItemCard_titleContainer];return this.props.subtitle&&t.push(this.props.managedClasses.listItemCard_titleContainerWithSubtitle),(0,w.A)(...t)}handleButtonClick(t,e){e.stopPropagation(),t&&t()}handleDoubleClick(t){t.stopPropagation()}}const $=(0,i.ZP)(D)(R)},91870:(t,e,n)=>{"use strict";n.d(e,{m:()=>b,Z:()=>x});var r=n(89526),i=n(17332),o=n(11754),s=n(58934),a=n(76908),l=n(53363),c=n(51094),u=n(17657),d=n(71388),p=n(2483),h=n(64197),f=n(14893),g=n(18169);function v(){return(v=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}const b=36,m={MessageBar_container:{backgroundColor:s.wF,width:"100%",...(0,g.ro)(g._p.MESSAGE_BAR),height:(0,u.a)(b),display:"flex",alignItems:"center",justifyContent:"center",borderBottom:(0,h.WU)("1px solid {0}",s.wF),boxSizing:"border-box",[a.xE]:{borderBottom:`1px solid ${a.YP.text}`}},MessageBar_containerFixed:{position:"fixed"},MessageBar_content:{...(0,l.Sh)("t8")},MessageBar_icon:{fill:"currentColor",padding:"4px 6px 0px 6px"},MessageBar_contentRegion:{color:c.CH,display:"flex",alignItems:"center",justifyContent:"center",width:"100%"},MessageBar_afterContentRegion:{justifyContent:"flex-end"},MessageBar_closeButtonIcon:{color:"inherit",fill:"currentColor"},MessageBar_closeButton:{minWidth:"unset",minHeight:"unset",width:"28px",height:"28px",margin:"4px"}};class y extends o.Z{constructor(...t){var e,n,r;super(...t),r={content:void 0,icon:void 0,iconLabel:void 0,fixed:void 0,handleCloseButton:void 0,closeButtonToolTip:void 0,closeButtonAriaLabel:void 0,managedClasses:void 0},(n="handledProps")in(e=this)?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r}render(){return r.createElement(d.ZP,{value:s.wF},r.createElement("div",v({},this.unhandledProps(),{id:"message-bar",className:this.generateClassNames()}),this.renderContentRegion(),this.renderAfterContentRegion()))}generateClassNames(){let t=this.props.managedClasses.MessageBar_container;return this.props.fixed&&(t+=` ${this.props.managedClasses.MessageBar_containerFixed}`),t}renderIcon(){if(this.props.icon)return this.props.iconLabel?r.createElement("span",{role:"img","aria-label":this.props.iconLabel},this.props.icon(this.props.managedClasses.MessageBar_icon)):r.createElement("div",{"aria-hidden":"true"},this.props.icon(this.props.managedClasses.MessageBar_icon))}renderContentRegion(){return r.createElement("div",{className:this.props.managedClasses.MessageBar_contentRegion},this.renderIcon(),r.createElement("div",{className:this.props.managedClasses.MessageBar_content},this.props.content))}renderAfterContentRegion(){return"function"==typeof this.props.handleCloseButton?r.createElement("div",{className:this.props.managedClasses.MessageBar_afterContentRegion},r.createElement(p.XC,{className:this.props.managedClasses.MessageBar_closeButton,onClick:this.props.handleCloseButton,title:this.props.closeButtonToolTip,"aria-label":this.props.closeButtonAriaLabel},(0,f.p)(this.props.managedClasses.MessageBar_closeButtonIcon))):null}}const x=(0,i.ZP)(m)(y)},40672:(t,e,n)=>{"use strict";n.d(e,{Z:()=>O});var r=n(89526),i=n(73961),o=n(17332),s=n(11754),a=n(96453),l=n(2483);if(/^((18|20|88)5|22|571|908|991)$/.test(n.j))var c=n(71388);var u=n(92588),d=n(90305),p=n(17657),h=n(16438),f=n(14893),g=n(46589),v=n(79171),b=n(96507),m=n(20513);if(/^((18|20|88)5|22|571|908|991)$/.test(n.j))var y=n(38681);if(/^((18|20|88)5|22|571|908|991)$/.test(n.j))var x=n(18756);function _(){return(_=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function w(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class C extends s.Z{componentDidMount(){this.node=i.findDOMNode(this),this.trapFocus(this.node),this.props.isHubPopup&&(0,m.VP)((0,p.a)(this.contentContainerRef.current.offsetHeight),m.qQ.modalHeight)}componentDidUpdate(){this.props.isHubPopup&&this.contentContainerRef.current&&(0,m.VP)((0,p.a)(this.contentContainerRef.current.offsetHeight),m.qQ.modalHeight);const t=this.node.querySelectorAll(b.y),e=t[t.length-1];null!==e&&e!==this.state.lastElement&&this.setState({lastElement:e})}componentWillUnmount(){this.node.removeEventListener("keydown",this.keydownListener),this.returnFocus(),this.props.isHubPopup&&(0,m.VP)(void 0,m.qQ.modalHeight)}render(){let t;t=this.props.heading?r.createElement(r.Fragment,null,this.props.heading):r.createElement(r.Fragment,null,this.props.beforeTitleIcon?r.createElement("span",{className:this.props.managedClasses.baseModal_titleIcon},this.props.beforeTitleIcon):[],this.props.title);let e=this.props.contentWidth||(0,p.a)(g.iF),n=this.props.contentHeight||"auto";return this.props.isHubPopup&&(e=n="100%"),r.createElement(a.Vq,_({},this.unhandledProps(),{onKeyDown:this.handleKeyDown,jssStyleSheet:this.props.dialogStyleSheet||(0,h.V3)(this.props.isHubPopup),contentHeight:n,contentWidth:e,modal:void 0===this.props.modal||this.props.modal,visible:!0,label:this.props.label}),r.createElement("div",{className:this.props.managedClasses.baseModal_contentContainer,ref:this.contentContainerRef},r.createElement("div",{className:this.props.managedClasses.baseModal_headerContainer},(this.props.title||this.props.heading)&&r.createElement(u.X6,{className:this.props.managedClasses.baseModal_title,tag:d.lb.h1,size:d.Gm._5},t),this.renderCloseButton()),r.createElement("div",{className:this.props.managedClasses.baseModal_contentScroll},r.createElement("div",{className:this.props.managedClasses.baseModal_content},this.props.children))))}returnFocus(){this.lastFocusedElement&&this.lastFocusedElement.focus&&setTimeout((()=>this.lastFocusedElement.focus()),0)}trapFocus(t){const e=t.querySelectorAll(b.y),n=e[0],r=e[e.length-1];null!==r&&this.setState({lastElement:r}),t.addEventListener("keydown",this.keydownListener=t=>{t.key!==v.XP.tab||t.ctrlKey||null!==this.state.lastElement&&(t.shiftKey?document.activeElement===n&&(this.state.lastElement.focus(),t.preventDefault()):document.activeElement===this.state.lastElement&&(n.focus(),t.preventDefault()))})}constructor(t){super(t),w(this,"renderCloseButton",(()=>this.props.isHubPopup||"function"!=typeof this.props.onCloseButtonClick?null:r.createElement(l.XC,{className:`${this.props.managedClasses.baseModal_closeButton} ${this.closeButtonStyle}`,title:this.props.closeButtonTooltip,onClick:this.props.onCloseButtonClick,ref:this.props.closeButtonRef},(0,f.p)(this.props.managedClasses.baseModal_closeIcon)))),w(this,"handleKeyDown",(t=>{t.key===v.XP.escape&&"function"==typeof this.props.onCloseButtonClick&&(t.preventDefault(),this.props.onCloseButtonClick(null)),"function"==typeof this.props.onKeyDown&&this.props.onKeyDown(t)})),w(this,"state",{lastElement:void 0}),w(this,"contentContainerRef",r.createRef()),w(this,"handledProps",{title:void 0,beforeTitleIcon:void 0,heading:void 0,label:void 0,onCloseButtonClick:void 0,closeButtonTooltip:void 0,contentHeight:void 0,modal:void 0,lastFocusedElement:void 0,isHubPopup:void 0,closeButtonRef:void 0,managedClasses:void 0,dialogStyleSheet:void 0}),w(this,"node",void 0),w(this,"keydownListener",void 0),w(this,"lastFocusedElement",void 0),w(this,"closeButtonStyle",void 0),this.lastFocusedElement=t.lastFocusedElement||document.activeElement}}const S=(0,o.ZP)(h.Oh)(C);class E extends r.Component{constructor(...t){super(...t),w(this,"getBackgroundValue",(t=>{if(t&&t.neutralPalette)return this.props.isHubPopup?t.neutralPalette[(0,x.kl)(!1)]:t.neutralPalette[y.dS]}))}render(){return r.createElement(c.ZP,{value:this.getBackgroundValue,drawBackground:!1},r.createElement(S,this.props))}}const O=/^((18|20|88)5|22|571|908|991)$/.test(n.j)?E:null},45191:(t,e,n)=>{"use strict";n.d(e,{Z:()=>b});var r=n(89526),i=n(17332),o=n(11754),s=n(40370),a=n(72982),l=n(51094),c=n(53363),u=n(60769),d=n(16438),p=n(40672);function h(){return(h=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}const f={...d.Oh,dialogElement_textContent:{color:l.CH,...(0,c.Sh)("t7"),marginTop:"0px",marginBottom:"18px"}};class g extends o.Z{constructor(...t){var e,n,r;super(...t),r={children:void 0,dialogText:void 0,dialogTextElement:void 0,confirmText:void 0,confirmTextElement:void 0,rejectText:void 0,handleConfirm:void 0,handleReject:void 0,handleClose:void 0,closeButtonTooltip:void 0},(n="handledProps")in(e=this)?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r}render(){return r.createElement(p.Z,h({},this.unhandledProps(),{onCloseButtonClick:this.props.handleClose||this.props.handleReject,closeButtonTooltip:this.props.closeButtonTooltip||this.props.rejectText,label:this.props.title,describedBy:this.props.dialogText?"dialogTextId":this.props.dialogTextElement?"dialogTextElementId":""}),this.props.dialogText&&r.createElement("p",{id:"dialogTextId",className:this.props.managedClasses.baseModal_dialog},this.props.dialogText),!!this.props.dialogTextElement&&r.createElement("p",{id:"dialogTextElementId",className:this.props.managedClasses.dialogElement_textContent},this.props.dialogTextElement),this.props.children,r.createElement(u.Z,null,r.createElement(s.zx,{id:"confirmModalPrimaryButton",type:"button",jssStyleSheet:d.Oh,onClick:this.props.handleConfirm,appearance:a.L.primary,tabIndex:0,autoFocus:!0},!!this.props.confirmText&&this.props.confirmText,!!this.props.confirmTextElement&&this.props.confirmTextElement),r.createElement(s.zx,{id:"confirmModalSecondaryButton",type:"button",jssStyleSheet:d.Oh,onClick:this.props.handleReject,tabIndex:0},this.props.rejectText)))}}const v=(0,i.ZP)(f)(g),b=/^((18|20|88)5|22|571|908|991)$/.test(n.j)?v:null},39529:(t,e,n)=>{"use strict";n.d(e,{_:()=>g});var r=n(89526),i=n(73961),o=n(11754),s=n(2483),a=n(48863),l=n(6098),c=n(54239),u=n(74714),d=n(14279),p=n(44907);function h(){return(h=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function f(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class g extends o.Z{constructor(...t){super(...t),f(this,"buttonRef",r.createRef()),f(this,"handledProps",{extraOnClickData:void 0,menuPosition:void 0,buttonStyleSheet:void 0,buttonComponent:void 0,menuLeftPx:void 0,menuTopPx:void 0,menuItems:void 0,onClick:void 0,showMenu:void 0,onMenuShown:void 0}),f(this,"isRtl",l.fn.direction===a.Nm.rtl),f(this,"onClick",(t=>{this.showMenu(t),"function"==typeof this.props.onClick&&this.props.onClick(t,this.props.extraOnClickData)})),f(this,"showMenu",(t=>{const e=this.getConfig();void 0!==t&&(e.sourceType=(0,c.Cb)(t)),(0,c.C1)(this.props.menuItems(),e,this.props.extraOnClickData),"function"==typeof this.props.onMenuShown&&this.props.onMenuShown()})),f(this,"getConfig",(()=>{const t=i.findDOMNode(this.buttonRef.current).getBoundingClientRect();let e,n=0,r=0;switch(this.props.menuPosition){case d.P.TopRight:case d.P.BottomRight:case d.P.BottomLeftMenuLeft:case d.P.CustomMenuPosition:e=u.bJ.K_TOP_LEFT;break;case d.P.TopLeft:case d.P.BottomLeft:case d.P.BottomRightMenuRight:e=u.bJ.K_TOP_RIGHT}switch(p.C.adjustMenuPositionForRtl(this.props.menuPosition,this.isRtl)){case d.P.TopRight:n=t.right,r=t.top;break;case d.P.BottomRight:n=t.right,r=t.bottom;break;case d.P.TopLeft:n=t.left,r=t.top;break;case d.P.BottomLeft:n=t.left,r=t.bottom;break;case d.P.BottomRightMenuRight:n=t.right,r=t.bottom;break;case d.P.BottomLeftMenuLeft:n=t.left,r=t.bottom;break;case d.P.CustomMenuPosition:n=this.props.menuLeftPx,r=this.props.menuTopPx}return(0,c.mw)(n,r,e)}))}componentDidMount(){this.props.showMenu&&this.showMenu()}componentDidUpdate(t){!t.showMenu&&this.props.showMenu&&this.showMenu()}render(){const t=this.props.buttonComponent;return r.createElement(t,h({},this.unhandledProps(),{onClick:this.onClick,jssStyleSheet:this.props.buttonStyleSheet,innerRef:this.buttonRef,"aria-haspopup":!0,"aria-expanded":!1}),this.props.children)}}f(g,"defaultProps",{menuPosition:d.P.TopRight,buttonComponent:s.XC})},14279:(t,e,n)=>{"use strict";let r;n.d(e,{P:()=>r}),function(t){t[t.TopRight=0]="TopRight",t[t.BottomRight=1]="BottomRight",t[t.TopLeft=2]="TopLeft",t[t.BottomLeft=3]="BottomLeft",t[t.BottomRightMenuRight=4]="BottomRightMenuRight",t[t.BottomLeftMenuLeft=5]="BottomLeftMenuLeft",t[t.CustomMenuPosition=6]="CustomMenuPosition"}(r||(r={}))},44907:(t,e,n)=>{"use strict";n.d(e,{C:()=>m});var r=n(89526),i=n(73961),o=n(48527),s=n(11754),a=n(71388),l=n(2483),c=n(48863),u=n(17657),d=n(6098),p=n(79171),h=n(18169),f=n(38681),g=n(14279);function v(){return(v=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function b(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class m extends s.Z{constructor(...t){super(...t),b(this,"buttonRef",r.createRef()),b(this,"state",{leftPx:0,topPx:0,tabIndex:0,readyToLoadMenu:!0}),b(this,"handledProps",{extraOnClickData:void 0,menu:void 0,menuOpen:void 0,menuPosition:void 0,onClick:void 0,onMenuShouldDismiss:void 0,buttonStyleSheet:void 0,onFocus:void 0,onBlur:void 0,contextMenuParentId:void 0,readyToLoadMenu:void 0,buttonComponent:void 0,menuLeftPx:void 0,menuTopPx:void 0,renderBottomForSmallViewport:void 0}),b(this,"menuRef",r.createRef()),b(this,"menuId",(0,o.Z)("overflow-menu-")),b(this,"isRtl",d.fn.direction===c.Nm.rtl),b(this,"onFocus",(t=>{-1===this.state.tabIndex&&this.setState({tabIndex:0}),"function"==typeof this.props.onFocus&&this.props.onFocus(t)})),b(this,"onBlur",(t=>{this.props.tabIndex&&this.setState({tabIndex:this.unhandledProps().tabIndex}),"function"==typeof this.props.onBlur&&this.props.onBlur(t)})),b(this,"positionMenu",(()=>{const t=i.findDOMNode(this.buttonRef.current),e=i.findDOMNode(this.menuRef.current);if(t instanceof Element&&e instanceof Element){const n=t.getBoundingClientRect(),r=e.getBoundingClientRect();let i,o;switch(m.adjustMenuPositionForRtl(this.props.menuPosition,this.isRtl)){case g.P.TopLeft:i=n.left-r.width,o=n.top;break;case g.P.TopRight:i=n.right,o=n.top;break;case g.P.BottomLeft:i=n.left-r.width,o=n.bottom;break;case g.P.BottomRight:i=n.right,o=n.bottom;break;case g.P.BottomRightMenuRight:i=n.right-r.width,o=n.bottom;break;case g.P.BottomLeftMenuLeft:i=n.left,o=n.bottom;break;case g.P.CustomMenuPosition:i=this.isRtl?this.props.menuLeftPx:this.props.menuLeftPx-r.width,o=this.props.menuTopPx}i<0?i=n.right:i+r.width>window.innerWidth&&(i=n.left-r.width),o+r.height>window.innerHeight&&(o=o-r.height+n.height),o<0&&(o=this.props.renderBottomForSmallViewport?n.bottom:0),this.setState({leftPx:i,topPx:o})}})),b(this,"onClick",(t=>{this.props.menuOpen&&(t.stopPropagation(),t.nativeEvent.stopImmediatePropagation()),"function"==typeof this.props.onClick&&this.props.onClick(t,this.props.extraOnClickData)})),b(this,"onMaybeDismissMenu",(t=>{if("function"==typeof this.props.onMenuShouldDismiss)if(t instanceof KeyboardEvent&&t.key===p.XP.escape&&this.menuRef.current&&this.menuRef.current.contains(t.target)){if(this.props.onMenuShouldDismiss(t,this.props.extraOnClickData),!this.buttonRef.current)return;const e=i.findDOMNode(this.buttonRef.current);e instanceof HTMLElement&&e.focus()}else this.menuRef.current&&!this.menuRef.current.contains(t.target)&&this.props.onMenuShouldDismiss(t,this.props.extraOnClickData)})),b(this,"createDivAndAppendToBodyOrReturnParent",(()=>{if(this.props.contextMenuParentId)return document.getElementById(this.props.contextMenuParentId);const t=document.createElement("div");return document.body.appendChild(t),t}))}static adjustMenuPositionForRtl(t,e){if(e)switch(t){case g.P.TopLeft:return g.P.TopRight;case g.P.TopRight:return g.P.TopLeft;case g.P.BottomLeft:return g.P.BottomRight;case g.P.BottomRight:return g.P.BottomLeft;case g.P.BottomRightMenuRight:return g.P.BottomLeftMenuLeft;case g.P.BottomLeftMenuLeft:return g.P.BottomRightMenuRight;case g.P.CustomMenuPosition:}return t}componentDidMount(){!this.props.readyToLoadMenu&&this.state.readyToLoadMenu&&this.setState({readyToLoadMenu:!1}),this.props.menuOpen&&this.onMenuOpen(),this.unhandledProps().tabIndex&&this.setState({tabIndex:this.unhandledProps().tabIndex})}componentDidUpdate(t){t.menuOpen&&!this.props.menuOpen?this.onMenuClose():!t.menuOpen&&this.props.menuOpen&&this.onMenuOpen(),this.props.tabIndex!==t.tabIndex&&this.setState({tabIndex:this.props.tabIndex})}componentWillUnmount(){this.props.menuOpen&&this.onMenuClose()}render(){const t=this.props.buttonComponent;return r.createElement(t,v({},this.unhandledProps(),{onClick:this.onClick,jssStyleSheet:this.props.buttonStyleSheet,innerRef:this.buttonRef,"aria-haspopup":!0,"aria-expanded":this.props.menuOpen,tabIndex:this.state.tabIndex,onFocus:this.onFocus,onBlur:this.onBlur}),this.props.children,!this.props.readyToLoadMenu&&this.state.readyToLoadMenu?null:this.renderMenu())}renderMenu(){const t={position:"fixed",left:(0,u.a)(this.state.leftPx),top:(0,u.a)(this.state.topPx),...(0,h.ro)(h._p.CONTEXT_MENU)};return i.createPortal(r.createElement("div",{style:{...t},ref:this.menuRef,id:this.menuId},this.props.menuOpen&&r.createElement(a.ZP,{value:f.dS},this.props.menu)),this.createDivAndAppendToBodyOrReturnParent())}onMenuClose(){document.removeEventListener("click",this.onMaybeDismissMenu),document.removeEventListener("contextmenu",this.onMaybeDismissMenu),document.removeEventListener("keydown",this.onMaybeDismissMenu)}onMenuOpen(){document.addEventListener("click",this.onMaybeDismissMenu),document.addEventListener("contextmenu",this.onMaybeDismissMenu),document.addEventListener("keydown",this.onMaybeDismissMenu),this.positionMenu()}}b(m,"defaultProps",{menuPosition:g.P.TopRight,readyToLoadMenu:!0,buttonComponent:l.XC})},9022:(t,e,n)=>{"use strict";n.d(e,{Z:()=>l});var r=n(89526),i=n(11754),o=n(17332),s=n(3117);class a extends i.Z{render(){const t=this.props;return r.createElement("div",{className:t.managedClasses.profileImage_wrapper},r.createElement("img",{"aria-label":`${t.profileInfo.name} ${s.pz.getString("msProfileAvatarIconAccessibleLabel")}`,alt:"",id:t.iconId,src:t.profileInfo.iconUrl,className:this.props.managedClasses.profileImage_image}))}}const l=(0,o.ZP)({profileImage_wrapper:{display:"flex",marginInlineEnd:"20px",position:"relative"},profileImage_image:{borderRadius:"50%",height:"52px",minWidth:"52px",width:"52px"},profileImage_image_placeholder:{background:"grey"}})(a)},13361:(t,e,n)=>{"use strict";n.d(e,{Z:()=>y});var r=n(89526),i=n(11754),o=n(17332),s=n(64197),a=n(94048),l=n(95046),c=n(76908),u=n(57167),d=n(4921),p=n(53363),h=n(89827),f=n(51094);function g(){return(g=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}const v={progressIndicatorStep_container:{marginInlineStart:"14px"},progressIndicatorStep_progressIcon:{height:"30px",width:"30px",marginInlineStart:"-16px",marginInlineEnd:"8px",marginTop:"-4px",position:"relative"},progressIndicatorStep_completedIcon:{fill:a.Av,backgroundColor:a.Av,color:l.Q,[c.xE]:{...c.a8,fill:c.YP.text,color:c.YP.text,backgroundColor:c.YP.background}},progressIndicatorStep_incompleteIcon:{fill:u.Cz,stroke:d.L$,backgroundColor:u.Cz,[c.xE]:{...c.a8,fill:c.YP.background,stroke:c.YP.text,color:c.YP.text,backgroundColor:c.YP.background}},progressIndicatorStep_label:{...(0,p.Sh)("t6"),...(0,h.cg)(),color:f.CH,flex:"1",overflowWrap:"break-word",overflow:"auto"},progressIndicatorStep_labelContainer:{display:"flex","& $progressIndicatorStep_completedIcon":{borderColor:a.Av},"& $progressIndicatorStep_numericIcon":{[c.xE]:{borderColor:c.YP.text}}},progressIndicatorStep_contentContainer:{paddingInlineStart:"22px",paddingTop:"4px",paddingBottom:"22px"},progressIndicatorStep_borderIncomplete:{marginBottom:"2px",borderInlineStart:(0,s.WU)("2px dotted {0}",d.L$),[c.xE]:{...c.a8,borderColor:c.YP.text}},progressIndicatorStep_borderComplete:{borderInlineStart:(0,s.WU)("2px solid {0}",a.Av),[c.xE]:{...c.a8,borderColor:c.YP.text}},progressIndicatorStep_borderLast:{borderInlineStart:"2px solid transparent",[c.xE]:{borderInlineStart:"none",marginInlineStart:"16px"}},progressIndicatorStep_numericIcon:{marginInlineEnd:"8px",marginBottom:"2px",marginInlineStart:"-14px",marginTop:"0px",height:"23px",width:"23px",borderRadius:"13px",textAlign:"center",lineHeight:"21px",border:(0,s.WU)("1px solid {0}",d.L$)}};class b extends i.Z{constructor(...t){var e,n,r;super(...t),r={isStepComplete:void 0,label:void 0,lastStep:void 0,completedIcon:void 0,completedStepDetailsClass:void 0,incompleteIcon:void 0,incompleteStepDetailsClass:void 0,hideCompletedStepDetails:void 0,iconAriaLabel:void 0},(n="handledProps")in(e=this)?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r}render(){return r.createElement("div",g({className:this.getContainerClass()},this.unhandledProps()),r.createElement("div",{className:this.props.managedClasses.progressIndicatorStep_labelContainer},r.createElement("div",{"aria-label":this.props.iconAriaLabel},this.getCircleIcon()),r.createElement("div",{className:this.props.managedClasses.progressIndicatorStep_label},this.props.label)),r.createElement("div",{className:this.props.managedClasses.progressIndicatorStep_contentContainer},this.showChildren()&&this.props.children))}getCircleIcon(){let t=`${this.props.managedClasses.progressIndicatorStep_progressIcon}`;return this.props.numericIcon?(t+=` ${this.props.managedClasses.progressIndicatorStep_numericIcon}`,this.props.isStepComplete?t+=` ${this.props.managedClasses.progressIndicatorStep_completedIcon}`:t+=` ${this.props.managedClasses.progressIndicatorStep_incompleteIcon}`,r.createElement("div",{className:t,"aria-hidden":!0},this.props.numericIcon)):this.props.isStepComplete?(t+=` ${this.props.managedClasses.progressIndicatorStep_completedIcon}`,this.props.completedIcon(t)):(t+=` ${this.props.managedClasses.progressIndicatorStep_incompleteIcon}`,this.props.incompleteIcon(t))}getContainerClass(){let t=`${this.props.managedClasses.progressIndicatorStep_container}`;return this.props.lastStep?t+=` ${this.props.managedClasses.progressIndicatorStep_borderLast}`:this.props.isStepComplete?this.props.completedStepDetailsClass?t+=` ${this.props.completedStepDetailsClass}`:t+=` ${this.props.managedClasses.progressIndicatorStep_borderComplete}`:this.props.incompleteStepDetailsClass?t+=` ${this.props.incompleteStepDetailsClass}`:t+=` ${this.props.managedClasses.progressIndicatorStep_borderIncomplete}`,t}showChildren(){return!this.props.isStepComplete||!this.props.hideCompletedStepDetails}}const m=(0,o.ZP)(v)(b),y=571==n.j?m:null},59378:(t,e,n)=>{"use strict";n.d(e,{Z:()=>c});var r=n(89526),i=n(11754),o=n(17332);function s(){return(s=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}class a extends i.Z{render(){return r.createElement("div",s({className:this.props.managedClasses.progressIndicator_container},this.unhandledProps()),this.props.children)}}const l=(0,o.ZP)({progressIndicator_container:{}})(a),c=571==n.j?l:null},32048:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(89526);function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class o extends r.Component{constructor(t){super(t),i(this,"timeout",null),i(this,"clearState",(()=>{this.setState({alertMessage:null,statusMessage:null})})),this.state={alertMessage:t.alertMessage||void 0,statusMessage:t.statusMessage||void 0}}componentDidUpdate(t){t.alertMessage===this.props.alertMessage&&t.statusMessage===this.props.statusMessage||(this.setState({alertMessage:this.props.alertMessage,statusMessage:this.props.statusMessage}),window.clearTimeout(this.timeout),this.timeout=window.setTimeout(this.clearState,5e3))}render(){return r.createElement("div",{id:"announcement",style:{top:0,position:"fixed",opacity:0}},void 0!==this.state.statusMessage&&r.createElement("div",{role:"status"},this.state.statusMessage),void 0!==this.state.alertMessage&&r.createElement("div",{role:"alert"},this.state.alertMessage))}}const s=/^(2(05|2|22)|5(5|51|71)|9(08|39|91)|32|360|775|885)$/.test(n.j)?o:null},10236:(t,e,n)=>{"use strict";n.d(e,{Z:()=>C});var r=n(89526),i=n(73961),o=n(2483),s=n(87370),a=n(11754),l=n(17332),c=n(3117),u=n(28902),d=n(14893),p=n(46589),h=n(79171),f=n(6098),g=n(14570),v=n(38681),b=n(76908);const m={searchBox:{},searchBox_clearButton:{"& $searchBox_clearIcon":{...(0,n(38066).Zb)()}},searchBox_clearIcon:{},searchBox_searchIcon:{minWidth:"16px",[b.xE]:{fill:b.YP.text}}};function y(){return(y=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function x(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const _={button:{...(0,g.b)(f.fn,p.Qd,p.Qd),margin:"auto 3px"}};class w extends a.Z{constructor(...t){super(...t),x(this,"state",{searchText:this.props.value||""}),x(this,"handledProps",{onSearchTextChange:void 0,onSearchTextClear:void 0,textActionStyle:void 0,placeholder:void 0,managedClasses:void 0}),x(this,"textActionRef",r.createRef()),x(this,"onSearchTextChange",(t=>{this.setState({searchText:t.target.value}),this.props.onSearchTextChange&&this.props.onSearchTextChange(t)})),x(this,"generateSearchIcon",(t=>{const e=`${t} ${this.props.managedClasses.searchBox_searchIcon} `;return r.createElement("div",{"aria-hidden":!0},(0,u.R)(e))})),x(this,"clearSearchText",(()=>{this.focusTextActionInput(),this.setState({searchText:""});const t={target:{value:""}};"function"==typeof this.props.onSearchTextChange&&this.props.onSearchTextChange(t),"function"==typeof this.props.onSearchTextClear&&this.props.onSearchTextClear()})),x(this,"renderClearSearchButton",((t,e)=>{if(!(this.state.searchText.length<=0))return r.createElement(o.XC,{onClick:this.clearSearchText,className:`${t} ${this.props.managedClasses.searchBox_clearButton}`,jssStyleSheet:_,disabled:e,title:c.pz.getString("clearSearch")},(0,d.p)(this.props.managedClasses.searchBox_clearIcon))})),x(this,"onKeyDown",(t=>{t.key===h.XP.escape&&this.clearSearchText(),"function"==typeof this.props.onKeyDown&&this.props.onKeyDown(t)}))}render(){return r.createElement(s.lT,y({},this.unhandledProps(),{innerRef:this.textActionRef,beforeGlyph:this.generateSearchIcon,button:this.renderClearSearchButton,value:this.state.searchText,placeholder:this.props.placeholder,jssStyleSheet:this.props.textActionStyle,onChange:this.onSearchTextChange,onKeyDown:this.onKeyDown}))}componentDidUpdate(t){void 0!==this.props.value&&t.value!==this.props.value&&this.props.value!==this.state.searchText&&this.setState({searchText:this.props.value})}focusTextActionInput(){if(!this.textActionRef.current)return;const t=i.findDOMNode(this.textActionRef.current);if(t instanceof Element){const e=t.querySelector("input");null!==e&&e.focus()}}}const C=(0,v.y2)((0,l.ZP)(m)(w),v.JA.TextInput)},74364:(t,e,n)=>{"use strict";n.d(e,{ZP:()=>j});var r=n(89526),i=n(17332),o=n(11754),s=n(92588),a=n(90305),l=n(82117),c=n(14895),u=n(37834),d=n(17657),p=n(51045),h=n(48863),f=n(53363),g=n(61466),v=n(57167),b=n(76908),m=n(91030),y=n(51094),x=n(54141),_=n(29911);function w(){return(w=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function C(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const S={searchCard:Object.assign({},(0,f.Sh)("t7"),(0,g.u0)(),{background:"transparent","box-sizing":"border-box",width:"100%",height:"100%",overflow:"hidden",padding:(0,d.a)((0,p.Jp)(v._5,2)),transition:"all 0.1s ease-in-out",display:"flex","flex-direction":"column",[b.xE]:Object.assign({},b.a8,{background:b.YP.buttonBackground}),"& $searchCard_glyph, $searchCard_caption, $searchCard_heading, $searchCard_headingInactive":Object.assign({},b.KP)}),searchCard_caption:{"align-self":"center","grid-column":"2/3","grid-row":"1/3"},searchCard_captionInactive:{color:m.Q,"align-self":"center","grid-column":"2/3","grid-row":"1/3"},searchCard_glyph:{fill:y.CH,"margin-left":(0,h.zw)("",(0,x.wb)()),"margin-right":(0,h.zw)((0,x.wb)(),""),"align-self":"flex-start"},searchCard_headingWrapper:{display:"grid","grid-template-columns":"auto 1fr","min-height":"44px","margin-bottom":"2px"},searchCard_headingCaptionWrapper:{overflow:"auto","overflow-wrap":"break-word"},searchCard_heading:{color:_.go,...(0,f.Sh)("t7"),fontWeight:"600",marginTop:"0px",marginBottom:"4px"},searchCard_headingInactive:{color:m.Q,...(0,f.Sh)("t7"),fontWeight:"600",marginTop:"0px",marginBottom:"4px"}};class E extends o.Z{constructor(...t){super(...t),C(this,"handledProps",{caption:void 0,disabled:void 0,glyph:void 0,heading:void 0,managedClasses:void 0}),C(this,"renderHeadingTitle",(()=>this.props.disabled?r.createElement(s.X6,{className:this.props.managedClasses.searchCard_headingInactive,size:a.Gm._4,tag:a.lb.h4},this.props.heading):r.createElement(s.X6,{className:this.props.managedClasses.searchCard_heading,size:a.Gm._4,tag:a.lb.h4},this.props.heading))),C(this,"renderCaptionText",(()=>this.props.disabled?r.createElement(l.ZT,{className:this.props.managedClasses.searchCard_captionInactive,size:c.H._8},this.props.caption):r.createElement(l.ZT,{className:this.props.managedClasses.searchCard_caption,size:c.H._8},this.props.caption)))}render(){return r.createElement("div",w({className:this.generateClassNames()},this.unhandledProps()),r.createElement("div",{className:this.props.managedClasses.searchCard_headingWrapper},this.renderGlyph(),r.createElement("div",{className:this.props.managedClasses.searchCard_headingCaptionWrapper},this.renderHeadingTitle(),this.renderCaptionText())))}generateClassNames(){const{searchCard:t}=this.props.managedClasses;return super.generateClassNames((0,u.A)(t))}renderGlyph(){return"function"==typeof this.props.glyph?this.props.glyph((0,u.A)(this.props.managedClasses.searchCard_glyph)):null}}C(E,"displayName","SearchCard");const O=(0,i.ZP)(S)(E),j=571==n.j?O:null},89210:(t,e,n)=>{"use strict";if(n.d(e,{ZX:()=>i}),/^(5(5|51|71)|205|22|360|885|908|991)$/.test(n.j))var r=n(61512);const i=/^(5(5|51|71)|205|22|360|885|908|991)$/.test(n.j)?r.Z:null},72107:(t,e,n)=>{"use strict";n.d(e,{H:()=>r});const r="search_input"},61512:(t,e,n)=>{"use strict";n.d(e,{Z:()=>St});var r=n(89526),i=n(73961),o=n(59934),s=n(87370),a=n(73252),l=n(2483),c=n(57786),u=n(17450),d=n(11754),p=n(17332),h=n(17657),f=n(53363),g=n(51094),v=n(76908),b=n(4921),m=n(14981);class y extends m.Z{constructor(){super(...arguments),this.handledProps={managedClasses:void 0,titleText:void 0}}render(){return r.createElement("svg",Object.assign({},this.unhandledProps()),this.renderTitleText(this.props),r.createElement("path",{d:"M0 1H16V0H0V1ZM0 9H16V8H0V9ZM0 4.99219H16V4H0V4.99219Z"}))}}y.defaultProps={viewBox:"0 0 16 10",width:"16px",height:"10px",xmlns:"http://www.w3.org/2000/svg"};var x=n(37834);class _ extends d.Z{constructor(){super(...arguments),this.handledProps={managedClasses:void 0}}render(){return r.createElement("div",Object.assign({},this.unhandledProps(),{className:super.generateClassNames((0,x.A)(this.props.managedClasses.container))}),this.props.children)}}_.displayName="Container",_.defaultProps={managedClasses:{}};const w=(0,p.ZP)({container:{display:"flex",width:"100vw",height:"100vh","flex-direction":"column"}})(_);var C,S=n(48885),E=n(33832),O=n(9453);!function(t){t.north="north",t.south="south"}(C||(C={}));const j={row:{position:"relative",display:"flex","flex-direction":"row","flex-basis":"auto"},row__fill:{flex:"1",overflow:"hidden"},row_resizeHandle:{position:"absolute",padding:"0",opacity:"0",left:"0",height:(0,h.a)(8),width:"100%","z-index":"1",transition:"transform .04s ease-in-out",outline:"none",transform:"scale(1, .5)","&:hover":{cursor:"ns-resize"},"&:focus":{opacity:"1",transform:"scale(1)"},"&:active":{opacity:"1",transform:"scale(1)"}},row__resizeNorth:{"& $row_resizeHandle":{top:"-4px"}},row__resizeSouth:{"& $row_resizeHandle":{bottom:"-4px"}},row__overlay:{position:"absolute",width:"100%","z-index":"2"},row__hidden:{display:"none"}};class P extends d.Z{constructor(t){super(t),this.handledProps={collapsed:void 0,collapsedHeight:void 0,fill:void 0,height:void 0,hidden:void 0,id:void 0,initialHeight:void 0,managedClasses:void 0,maxHeight:void 0,minHeight:void 0,onResize:void 0,resizeControl:void 0,overlay:void 0,resizable:void 0,resizeFrom:void 0},this.onKeyDown=t=>{const e=t.shiftKey,n=this.props.resizeFrom===C.north,r=e?10:1;let i=this.getHeight();switch(t.keyCode){case E.Q6:i=n?i-r:i+r;break;case E.$Y:i=n?i+r:i-r}this.setHeight(i),this.onResize(t,i)},this.onMouseDown=t=>{0===t.button&&this.setState({resizing:!0,dragReference:t.pageY})},this.onMouseUp=t=>{0===t.button&&this.setState({resizing:!1,dragReference:null})},this.onMouseMove=t=>{if(!this.state.resizing)return;const e=this.state.dragReference-t.pageY,n="north"===this.props.resizeFrom?this.height()+e:this.height()-e;n<=this.props.minHeight||n>=this.props.maxHeight||(this.onResize(t,n),this.setState({dragReference:t.pageY}),this.setHeight(n))},this.onResize=(t,e)=>{"function"==typeof this.props.onResize&&this.props.onResize(t,e)},this.state={resizing:!1,dragReference:null,height:this.props.initialHeight},this.onResize=(0,S.Z)(this.onResize,16),this.onMouseMove=(0,S.Z)(this.onMouseMove,16),this.rootElement=r.createRef()}height(){return this.props.height||this.state.height}componentDidUpdate(t,e){(0,O.N)()&&(this.state.resizing&&!e.resizing?(document.addEventListener("mouseup",this.onMouseUp),document.addEventListener("mousemove",this.onMouseMove)):!this.state.resizing&&e.resizing&&(document.removeEventListener("mouseup",this.onMouseUp),document.removeEventListener("mousemove",this.onMouseMove)))}getHeight(){return this.props.collapsed?this.props.collapsedHeight:this.height()<=this.props.minHeight?this.props.minHeight:this.height()>=this.props.maxHeight?this.props.maxHeight:this.height()}generateStyleAttribute(){const t=(0,h.a)(this.getHeight()),e={};return e.minHeight=this.props.collapsed?this.props.collapsedHeight:this.props.resizable?(0,h.a)(this.props.minHeight):t,this.props.overlay?e.height=t:e.flexBasis=t,Object.assign(e,this.props.style)}renderResizeControl(){if(!this.props.resizable||this.props.collapsed)return null;const t={className:this.props.managedClasses.row_resizeHandle,onMouseDown:this.onMouseDown,onKeyDown:this.onKeyDown,role:"separator"};return"function"==typeof this.props.resizeControl?this.props.resizeControl(t):r.createElement("button",Object.assign({},t))}setHeight(t){this.setState({height:t})}render(){return r.createElement("div",Object.assign({},this.unhandledProps(),{className:this.generateClassNames(),style:this.generateStyleAttribute(),ref:this.rootElement,id:this.props.id,"aria-hidden":this.props.hidden}),this.props.children,this.renderResizeControl())}generateClassNames(){const{row:t,row__fill:e,row__resizeNorth:n,row__resizeSouth:r,row__overlay:i,row__hidden:o}=this.props.managedClasses,s=this.props.resizeFrom,a=(0,x.A)(t,[n,s===C.north],[r,s===C.south],[i,this.props.overlay],[o,this.props.hidden],[e,this.props.fill]);return super.generateClassNames(a)}}P.displayName="Row",P.defaultProps={fill:!1,initialHeight:40,collapsedHeight:40,minHeight:40,maxHeight:800,resizable:!1,collapsed:!1,overlay:!1,hidden:!1,managedClasses:{}};const k=(0,p.ZP)(j)(P);class I extends d.Z{constructor(){super(...arguments),this.handledProps={minWidth:void 0,managedClasses:void 0}}renderStyleAttribute(){return{minWidth:`${this.props.minWidth}px`}}render(){return r.createElement("div",Object.assign({},this.unhandledProps(),{className:super.generateClassNames((0,x.A)(this.props.managedClasses.canvas)),"data-grid-app":"canvas",style:this.renderStyleAttribute()}),this.props.children)}}I.displayName="Canvas",I.defaultProps={managedClasses:{},minWidth:300};const T=(0,p.ZP)({canvas:{flex:"1",overflow:"hidden"}})(I);var A,D=n(19060),R=n(42130);!function(t){t.east="east",t.west="west"}(A||(A={}));const $={pane:{position:"relative",flex:"0 1 auto",display:"flex","flex-direction":"column"},pane_resizeHandle:Object.assign(Object.assign({position:"absolute",padding:"0",opacity:"0",top:"0",width:(0,h.a)(8),height:"100%","z-index":"1",transition:"transform .04s ease-in-out",outline:"none",transform:"scale(.5, 1)","&:hover":{cursor:"ew-resize"}},(0,R.F0)({opacity:"1",transform:"scale(1)"})),{"&:active":{opacity:"1",transform:"scale(1)"}}),pane__resizeWest:{"& $pane_resizeHandle":{left:"-4px"}},pane__resizeEast:{"& $pane_resizeHandle":{right:"-4px"}},pane__overlay:{position:"absolute",height:"100%","z-index":"2"},pane__hidden:{display:"none"}};class N extends d.Z{constructor(t){super(t),this.handledProps={collapsed:void 0,collapsedWidth:void 0,hidden:void 0,id:void 0,initialWidth:void 0,managedClasses:void 0,maxWidth:void 0,minWidth:void 0,onResize:void 0,overlay:void 0,resizeControl:void 0,resizable:void 0,resizeFrom:void 0,width:void 0},this.onKeyDown=t=>{const e=t.shiftKey?10:1;let n;switch(t.keyCode){case E.BJ:n=this.rootElement.current.clientWidth-e;break;case E.ho:n=this.rootElement.current.clientWidth+e}this.setWidth(n),this.onResize(t,n)},this.onMouseDown=t=>{0===t.button&&this.setState({resizing:!0,dragReference:t.pageX})},this.onMouseUp=t=>{0===t.button&&this.setState({resizing:!1,dragReference:null})},this.onMouseMove=t=>{if(!this.state.resizing)return;const e=this.state.dragReference-t.pageX;let n="west"===this.props.resizeFrom?this.width()+e:this.width()-e;n=Math.max(Math.min(n,this.props.maxWidth),this.props.minWidth),this.onResize(t,n),this.setState({dragReference:t.pageX}),this.setWidth(n)},this.onWindowResize=()=>{this.setWidth(this.rootElement.current.clientWidth)},this.onResize=(t,e)=>{"function"==typeof this.props.onResize&&this.props.onResize(t,e)},this.state={resizing:!1,dragReference:null,width:this.props.initialWidth},this.onResize=(0,S.Z)(this.onResize,16),this.onMouseMove=(0,S.Z)(this.onMouseMove,16),this.onWindowResize=(0,D.Z)(this.onWindowResize),this.rootElement=r.createRef()}width(){return this.props.width||this.state.width}componentDidMount(){(0,O.N)()&&window.addEventListener("resize",this.onWindowResize)}componentWillUnmount(){(0,O.N)()&&window.removeEventListener("resize",this.onWindowResize)}componentDidUpdate(t,e){(0,O.N)()&&(this.state.resizing&&!e.resizing?(document.addEventListener("mouseup",this.onMouseUp),document.addEventListener("mousemove",this.onMouseMove)):!this.state.resizing&&e.resizing&&(document.removeEventListener("mouseup",this.onMouseUp),document.removeEventListener("mousemove",this.onMouseMove)))}getWidth(){return this.props.collapsed?this.props.collapsedWidth:this.width()<this.props.minWidth?this.props.minWidth:this.width()>this.props.maxWidth?this.props.maxWidth:this.width()}generateStyleAttribute(){const t=(0,h.a)(this.getWidth()),e={};return e.minWidth=this.props.collapsed?(0,h.a)(this.props.collapsedWidth):this.props.resizable?(0,h.a)(this.props.minWidth):t,this.props.overlay?e.width=t:e.flexBasis=t,Object.assign(e,this.props.style)}renderResizeControl(){if(!this.props.resizable||this.props.collapsed)return null;const t={className:this.props.managedClasses.pane_resizeHandle,onMouseDown:this.onMouseDown,onKeyDown:this.onKeyDown,role:"separator",valueMin:this.props.minWidth,valueMax:this.props.maxWidth,valueNow:this.state.width};return"function"==typeof this.props.resizeControl?this.props.resizeControl(t):r.createElement("button",{className:t.className,onMouseDown:t.onMouseDown,onKeyDown:t.onKeyDown,role:t.role,"aria-valuemin":t.valueMin,"aria-valuemax":t.valueMax,"aria-valuenow":t.valueNow})}setWidth(t){this.setState({width:t})}render(){return r.createElement("div",Object.assign({},this.unhandledProps(),{className:this.generateClassNames(),style:this.generateStyleAttribute(),ref:this.rootElement,id:this.props.id,"aria-hidden":this.props.hidden}),this.props.children,this.renderResizeControl())}generateClassNames(){const{pane:t,pane__resizeEast:e,pane__resizeWest:n,pane__overlay:r,pane__hidden:i}=this.props.managedClasses,o=this.props.resizeFrom,s=(0,x.A)(t,[e,o===A.east],[n,o===A.west],[r,this.props.overlay],[i,this.props.hidden]);return super.generateClassNames(s)}}N.displayName="Pane",N.defaultProps={initialWidth:300,collapsedWidth:40,minWidth:100,maxWidth:800,resizable:!1,collapsed:!1,overlay:!1,hidden:!1,managedClasses:{}};const B=(0,p.ZP)($)(N);var F=n(71388),L=n(40370),M=n(72982),Z=n(92588),H=n(90305),z=n(18488),U=n(9680),W=n(26007);const G={row_resizeHandle:Object.assign(Object.assign({border:"none",background:"none",transition:"all 0.4s ease-in-out","&::after":{content:'""',position:"absolute",top:"4px",left:"0",width:"100%",height:"1px",background:b.yD,[v.xE]:{background:v.YP.buttonText}},"&:hover":{opacity:"1",transform:"scaleX(1)",cursor:"row-resize"},"&:active":{"&::after":{background:b.tA,[v.xE]:{background:v.YP.buttonText,height:"2px"}}}},(0,R.F0)({[v.xE]:{background:v.YP.buttonText,height:"1px"}})),{[v.xE]:Object.assign(Object.assign({},v.a8),{opacity:"1"})})},V={pane_resizeHandle:Object.assign(Object.assign({border:"none",background:"none",transition:"all 0.4s ease-in-out","&::after":{content:'""',position:"absolute",bottom:"0",left:"4px",width:"1px",height:"100%",background:b.yD,[v.xE]:{background:v.YP.buttonText}},"&:hover":{opacity:"1",transform:"scaleX(1)",cursor:"col-resize"},"&:active":{"&::after":{background:b.tA,[v.xE]:{background:v.YP.buttonText,width:"2px"}}}},(0,R.F0)({[v.xE]:{background:v.YP.buttonText,width:"1px"}})),{[v.xE]:Object.assign(Object.assign({},v.a8),{opacity:"1"})})},q={button:{minWidth:"32px"}};class K extends d.Z{constructor(t){super(t),this.handledProps={title:void 0,textField:void 0,lightDismissEnabled:void 0,mobileNavigationMenuButtonLabel:void 0,mobileNavigationMenuButtonProps:void 0,globalActionsButtonLabel:void 0,globalActionsButtonProps:void 0,navigationMenu:void 0,globalActions:void 0,paneMinWidth:void 0,mobileNavBackgroundValue:void 0,managedClasses:void 0,inPageFlow:void 0,resizable:void 0,mobileNavWindowMaxWidth:void 0,mobileNavOpenGlyph:void 0,mobileNavCloseGlyph:void 0},this.navPaneElement=r.createRef(),this.openMenuButtonElement=r.createRef(),this.closeMenuButtonElement=r.createRef(),this.direction=W.N.ltr,this.handleWindowKeyDown=t=>{this.state.navOpen&&t.keyCode===E.mW.escape&&(this.resetMenus(),this.focusHamburgerMenuButton())},this.toggleGlobalActions=t=>{"function"==typeof(0,U.Z)(this.props,"globalActionsButtonProps.onClick")&&this.props.globalActionsButtonProps.onClick(t),this.setState({menuOpen:!this.state.menuOpen})},this.handleResize=()=>{if((0,O.N)()){const t=window.innerWidth<=this.props.mobileNavWindowMaxWidth;t!==this.state.isResponsive&&this.resetMenus(),this.setState({isResponsive:t})}},this.handleMobileNavigationMenuVisibilityToggle=t=>{"function"==typeof(0,U.Z)(this.props,"mobileNavigationMenuButtonProps.onClick")&&this.props.mobileNavigationMenuButtonProps.onClick(t),this.toggleMobileMenu()},this.toggleMobileMenu=()=>{this.setState({navOpen:!this.state.navOpen},(()=>{const t=i.findDOMNode(this.navPaneElement.current);this.state.navOpen&&t instanceof HTMLElement&&(t.style.display="flex"),this.focusHamburgerMenuButton(),t instanceof HTMLElement&&t.addEventListener("animationend",this.handleNavAnimationEnd)}))},this.handleNavAnimationEnd=t=>{const e=i.findDOMNode(this.navPaneElement.current);e instanceof HTMLElement&&(e.removeEventListener("animationend",this.handleNavAnimationEnd),this.state.navOpen||(e.style.display="none"))},this.updateDirection=()=>{if(null===this.rootElement.current)return;const t=this.rootElement.current.closest("[dir]");this.direction=null!==t&&"rtl"===t.getAttribute("dir")?W.N.rtl:W.N.ltr},this.state={navOpen:!1,menuOpen:!1,isResponsive:!1},window.addEventListener("resize",this.handleResize),this.rootElement=r.createRef()}componentWillUpdate(){this.updateDirection()}componentDidMount(){this.handleResize(),(0,O.N)()&&window.addEventListener("keydown",this.handleWindowKeyDown)}componentWillUnmount(){(0,O.N)()&&(window.removeEventListener("keydown",this.handleWindowKeyDown),window.removeEventListener("resize",this.handleResize))}render(){const{sidePaneLayout_canvas:t,sidePaneLayout_container:e,sidePaneLayout_row:n}=this.props.managedClasses;return r.createElement("div",Object.assign({ref:this.rootElement},this.unhandledProps(),{className:this.generateClassNames()}),r.createElement(w,{className:(0,x.A)(e)},r.createElement(k,{className:(0,x.A)(n),jssStyleSheet:G,fill:!0},this.renderLayout(),r.createElement(T,{className:(0,x.A)(t)},this.props.children),this.renderLightDismiss())))}generateClassNames(){const{sidePaneLayout:t,sidePaneLayout__inPageFlow:e}=this.props.managedClasses;return super.generateClassNames((0,x.A)(t,[e,this.props.inPageFlow]))}generateMobileNavMenuClassNames(){const{sidePaneLayout_mobileNavigationMenu:t,sidePaneLayout_mobileNavigationMenu__open:e,sidePaneLayout_mobileNavigationMenu__close:n}=this.props.managedClasses,r=!!this.state.navOpen;return(0,x.A)(t,[e,r],[n,!r])}generatePaneClassNames(){return(0,x.A)(this.props.managedClasses.sidePaneLayout_pane)}renderLayout(){const{sidePaneLayout_navigation:t,sidePaneLayout_mobileNavigation:e,sidePaneLayout_mobileNavigation_container:n,sidePaneLayout_mobileNavigation_headerContainer:i,sidePaneLayout_navigation_headerContainer:o}=this.props.managedClasses;return this.state.isResponsive?r.createElement("div",null,r.createElement(F.ZP,{value:this.props.mobileNavBackgroundValue,className:this.generateMobileNavMenuClassNames(),"aria-hidden":!this.state.navOpen,ref:this.navPaneElement},r.createElement("div",{className:(0,x.A)(o)},r.createElement("div",{className:(0,x.A)(i)},this.renderHamburgerButton(this.closeMenuButtonElement),this.renderHeading()),this.renderGlobalActionsButton()),r.createElement("div",{className:(0,x.A)(n)},this.renderNavigationMenu((0,x.A)(e),this.toggleMobileMenu))),r.createElement("div",{className:this.generatePaneClassNames()},r.createElement("div",{className:(0,x.A)(o)},this.renderHeader()),this.renderTextField())):r.createElement(B,{resizable:this.props.resizable,resizeFrom:this.direction===W.N.ltr?A.east:A.west,minWidth:this.props.paneMinWidth,jssStyleSheet:V},r.createElement("div",{className:this.generatePaneClassNames()},r.createElement("div",{className:(0,x.A)(o)},this.renderHeader(),this.renderGlobalActionsButton()),this.renderTextField(),this.renderNavigationMenu((0,x.A)(t))))}resetMenus(){this.setState({navOpen:!1,menuOpen:!1})}renderGlobalActionsButton(){const{sidePaneLayout_globalActionsButton:t,sidePaneLayout_mobileNavigationMenu_buttonContainer:e}=this.props.managedClasses;return this.props.globalActions?r.createElement("div",{className:(0,x.A)(e)},r.createElement(L.zx,Object.assign({},this.props.globalActionsButtonProps,{jssStyleSheet:q,appearance:M.L.stealth,"aria-label":this.props.globalActionsButtonLabel||null,className:(0,x.A)(t),onClick:this.toggleGlobalActions}),this.generateIcon("more")),this.showGlobalActions()):null}renderHamburgerButton(t){return r.createElement(L.zx,Object.assign({},this.props.mobileNavigationMenuButtonProps,{jssStyleSheet:q,appearance:M.L.stealth,"aria-label":this.props.mobileNavigationMenuButtonLabel||null,"aria-haspopup":!this.state.navOpen||null,className:(0,x.A)(this.props.managedClasses.sidePaneLayout_mobileNavigationMenu_button),onClick:this.handleMobileNavigationMenuVisibilityToggle,ref:t}),r.createElement("div",{"aria-hidden":"true"},this.state.navOpen?this.renderGlyph(this.props.mobileNavCloseGlyph):this.renderGlyph(this.props.mobileNavOpenGlyph)))}renderGlyph(t){return"function"==typeof t?t((0,x.A)(this.props.managedClasses.sidePaneLayout_icon)):null}generateIcon(t){return r.createElement(y,{titleText:t,className:(0,x.A)(this.props.managedClasses.sidePaneLayout_icon)})}renderLightDismiss(){if(this.state.navOpen&&this.props.lightDismissEnabled)return r.createElement("div",{style:{position:"absolute",border:"none",inset:"0",top:"0",left:"0",right:"0",bottom:"0"},onClick:this.handleMobileNavigationMenuVisibilityToggle})}renderHeading(t=!1){return r.createElement(Z.X6,{className:(0,x.A)(this.props.managedClasses.sidePaneLayout_navigation_headerText),jssStyleSheet:t?{heading_4:{marginTop:"10px"}}:null,tag:H.lb.h1,size:H.Gm._4},this.props.title)}renderHeader(){return r.createElement("div",{className:this.props.managedClasses.sidePaneLayout_navigation_header},this.renderHamburgerButton(this.openMenuButtonElement),this.renderHeading(!0))}showGlobalActions(){if(this.state.menuOpen)return"function"==typeof this.props.globalActions?this.props.globalActions((0,x.A)(this.props.managedClasses.sidePaneLayout_globalActions)):null}renderTextField(){return"function"==typeof this.props.textField?this.props.textField((0,x.A)(this.props.managedClasses.sidePaneLayout_textField)):null}renderNavigationMenu(t,e){return"function"==typeof this.props.navigationMenu?this.props.navigationMenu(t,e):null}focusHamburgerMenuButton(){this.state.navOpen?this.closeMenuButtonElement&&this.closeMenuButtonElement.current&&i.findDOMNode(this.closeMenuButtonElement.current).focus():this.openMenuButtonElement&&this.openMenuButtonElement.current&&i.findDOMNode(this.openMenuButtonElement.current).focus()}}K.defaultProps={title:"Side Pane Title",lightDismissEnabled:!0,mobileNavBackgroundValue:z.Mw,paneMinWidth:406,inPageFlow:!1,managedClasses:{},resizable:!0,mobileNavWindowMaxWidth:1035,mobileNavCloseGlyph:t=>r.createElement(y,{titleText:"menu",className:t}),mobileNavOpenGlyph:t=>r.createElement(y,{titleText:"menu",className:t})};var Y=n(9748),Q=n(48863);const X={"@keyframes SiteNavigationClose":{"0%":{opacity:1,transform:"scaleX(1)"},"100%":{opacity:0,transform:"scaleX(0.93)"}},"@keyframes SiteNavigationOpen":{"0%":{opacity:0,transform:"scaleX(0.93)"},"100%":{opacity:1,transform:"scaleX(1)"}},"@keyframes TitleClose":{"0%":{opacity:1},"100%":{opacity:0}},"@keyframes TitleOpen":{"0%":{opacity:0},"100%":{opacity:1}},sidePaneLayout:{},sidePaneLayout_canvas:{"overflow-y":"auto","padding-top":"30px","padding-left":(0,Q.zw)("44px","84px"),"padding-right":(0,Q.zw)("84px","44px"),color:g.CH,"@media only screen and (max-width: 1035px)":{"padding-left":"46px","padding-right":"46px"}},sidePaneLayout_container:{},sidePaneLayout_mobileNavigationMenu:Object.assign(Object.assign({display:"none","flex-direction":"column",position:"absolute","z-index":"100",top:"0",left:(0,Q.zw)("0","auto"),right:(0,Q.zw)("auto","0"),height:"100vh",width:"320px","padding-top":"20px","padding-left":(0,Q.zw)("40px","20px"),"padding-right":(0,Q.zw)("20px","40px"),"animation-fill-mode":"both","transform-origin":(0,Q.zw)("top left","top right")},(0,Y.jf)(Y.Y3.e4)),{"@media only screen and (max-width: 1035px)":{height:"100%"}}),sidePaneLayout_mobileNavigationMenu__close:{"animation-name":"SiteNavigationClose","animation-duration":".25s","transition-timing-function":"cubic-bezier(.26,1,.48,1)","& $sidePaneLayout_navigation_headerText":{"animation-duration":".25s","animation-name":"TitleClose"}},sidePaneLayout_mobileNavigationMenu__open:{"animation-duration":".25s","animation-name":"SiteNavigationOpen","transition-timing-function":"cubic-bezier(.52,0,.74,0)","& $sidePaneLayout_navigation_headerText":{"animation-duration":".25s","animation-delay":".075s","animation-fill-mode":"both","animation-name":"TitleOpen"}},sidePaneLayout_mobileNavigationMenu_button:{display:"none","min-width":"32px","margin-right":(0,Q.zw)("10px","unset"),"margin-left":(0,Q.zw)("unset","10px"),"@media only screen and (max-width: 1035px)":{display:"block"}},sidePaneLayout_mobileNavigationMenu_buttonContainer:{position:"relative"},sidePaneLayout_icon:{height:"16px",width:"16px"},sidePaneLayout_globalActionsButton:{"min-width":"32px"},sidePaneLayout_globalActions:Object.assign({"z-index":"3",position:"absolute",color:g.CH,background:z.Mw,padding:"4px 4px 4px 3px","min-width":"240px",top:"44px",right:"0"},(0,Y.jf)(Y.Y3.e4)),sidePaneLayout_navigation:{flex:"1","list-style-type":"none",padding:"0","margin-top":"10px","min-width":"280px","overflow-y":"auto","margin-bottom":"40px",color:g.CH,"@media only screen and (max-width: 1035px)":{display:"none"}},sidePaneLayout_mobileNavigation:{display:"none","flex-direction":"column",flex:"1",padding:"0",width:"100%","list-style-type":"none","margin-right":(0,Q.zw)("20px","unset"),"margin-left":(0,Q.zw)("unset","20px"),"margin-top":"10px","min-width":"150px",color:g.CH,"@media only screen and (max-width: 1035px)":{display:"flex"}},sidePaneLayout_mobileNavigation_headerContainer:{display:"flex","margin-bottom":"20px"},sidePaneLayout_mobileNavigation_container:{display:"none","flex-direction":"column",width:"100%",height:"100%","overflow-y":"auto","margin-bottom":"20px","@media only screen and (max-width: 1035px)":{display:"flex"}},sidePaneLayout_navigation_header:{display:"flex"},sidePaneLayout_navigation_headerText:{opacity:"1"},sidePaneLayout_navigation_headerContainer:{display:"flex","align-items":"center","justify-content":"space-between","min-height":"38px"},sidePaneLayout_pane:{display:"flex","flex-direction":"column","padding-top":"30px","padding-left":(0,Q.zw)("84px","42px"),"padding-right":(0,Q.zw)("42px","84px"),height:"100vh","@media only screen and (max-width: 1035px)":{"flex-direction":"row","align-items":"center","padding-left":"46px","padding-right":"46px","max-width":"820px",height:"unset"}},sidePaneLayout_row:{"@media only screen and (max-width: 1035px)":{display:"block","overflow-y":"auto"}},sidePaneLayout_textField:{"margin-top":"10px","@media only screen and (max-width: 1035px)":{"min-width":"240px","margin-right":(0,Q.zw)("unset","auto"),"margin-left":(0,Q.zw)("auto","unset"),"margin-top":"unset"}},sidePaneLayout__inPageFlow:{"& $sidePaneLayout_mobileNavigationMenu, & $sidePaneLayout_pane":{height:"auto"},"& $sidePaneLayout_container":{display:"block",width:"auto",height:"auto"}}},J=(0,p.ZP)(X)(K);var tt=n(47636),et=n(26352),nt=n(14570),rt=n(79171),it=n(45363),ot=n(14893),st=n(28902),at=n(6098),lt=n(3117),ct=n(91870),ut=n(18169),dt=n(46589),pt=n(38681),ht=n(38066),ft=n(72107);function gt(){return(gt=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function vt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const bt={...n(47754).x,ResponsiveSidePaneLayout_mainContainer:{width:"100%",height:"100%"},ResponsiveSidePaneLayout_mainContainer__scrollable:{overflowY:"auto"},ResponsiveSidePaneLayout_afterNavContentContainer:{marginTop:"20px",marginBottom:"20px"},ResponsiveSidePaneLayout_navigationContainer:{position:"relative",marginTop:"10px","flex-grow":"1",height:"100%"},ResponsiveSidePaneLayout_navigationContainer__scrollable:{minHeight:"80px",overflow:"auto"},ResponsiveSidePaneLayout_search:{...(0,f.Sh)("t7"),paddingRight:"0",height:"32px","& #search_input":{padding:"3px 0 5px 0",border:"none",height:"28px",minWidth:"40px",textOverflow:"ellipsis"},[dt.HM]:{maxWidth:(0,h.a)(dt._s-dt.AW-dt.M$),width:"100%"}},ResponsiveSidePaneLayout_clearSearchButton:{...(0,nt.b)(at.fn,dt.Qd,dt.Qd),margin:"4px",color:g.CH,[v.xE]:{"&:hover":{forcedColorAdjust:"none",backgroundColor:v.YP.selectedBackground,color:v.YP.selectedText}},"& $ResponsiveSidePaneLayout_clearSearchIcon":{...(0,ht.Zb)()},"&:hover $ResponsiveSidePaneLayout_clearSearchIcon":{[v.xE]:{fill:v.YP.selectedText}}},ResponsiveSidePaneLayout_clearSearchIcon:{width:"12px",height:"12px",fill:g.CH,[v.xE]:{forcedColorAdjust:"none",fill:v.YP.buttonText,"&:hover":{fill:v.YP.selectedText}}},ResponsiveSidePaneLayout_searchIcon:{margin:"auto",marginLeft:"3px",marginRight:"12px",fill:g.CH,[v.xE]:{forcedColorAdjust:"none",fill:v.YP.text}},ResponsiveSidePaneLayout_searchGlassMacIcon:{transform:"scale(-1,1)"}},mt={sidePaneLayout_row:{...(0,ut.ro)(ut._p.CANVAS),overflowY:"hidden !important",overflowX:"auto",width:"unset",[dt.HM]:{display:"flex",flexDirection:"column"}},sidePaneLayout_canvas:{padding:"0",width:"100%",height:"100%",overflowY:"hidden !important",overflowX:"auto",[dt.HM]:{minWidth:"unset !important",borderTop:`1px solid ${(0,b.L$)(at.fn)}`}},sidePaneLayout_pane:{padding:`${(0,h.a)(dt.mK)} 25px 0px 50px`,borderInlineEnd:`1px solid ${(0,b.L$)(at.fn)}`,overflowY:"auto",[dt.HM]:{paddingTop:"20px",paddingBottom:"5px",minHeight:(0,h.a)(dt.dM),flexWrap:"wrap",alignItems:"flex-start",justifyContent:"space-between",border:"none",maxWidth:(0,h.a)(dt.Aj),minWidth:(0,h.a)(dt.XM),paddingInlineEnd:(0,h.a)(dt.M$),paddingInlineStart:"50px"}},sidePaneLayout_navigation_headerContainer:{marginBottom:"14px",minHeight:"unset",marginInlineEnd:"8px"},sidePaneLayout_mobileNavigationMenu_button:{...(0,nt.b)(at.fn,dt.L_,dt.L_),marginInlineStart:(0,h.a)(dt.P_),marginInlineEnd:"4px",display:"none",[dt.HM]:{display:"flex"}},sidePaneLayout_mobileNavigationMenu__open:{backgroundColor:at.fn.backgroundColor,padding:"20px 50px 0px 50px",width:dt.Hz-100+"px",height:"100%",boxShadow:"0px 1.6px 3.6px rgba(0,0,0,0.20), 0px 0.3px 0.9px rgba(0,0,0,0.11)"},sidePaneLayout_navigation_headerText:{fontSize:"24px",lineHeight:"32px",color:g.CH,marginTop:"0"}},yt=(0,c.Z)((0,u.Z)(mt),{sidePaneLayout_row:{marginTop:(0,h.a)(ct.m)}}),xt=(0,c.Z)((0,u.Z)(mt),{sidePaneLayout_row:{marginTop:(0,h.a)(2*ct.m+1)}}),_t={textAction:{minHeight:"34px"},textAction_beforeGlyph:{marginLeft:"12px"}},wt=(0,pt.y2)(s.lT,pt.JA.TextInput);class Ct extends d.Z{constructor(...t){super(...t),vt(this,"handledProps",{title:void 0,bannerMessage:void 0,bannerIcon:void 0,navItems:void 0,afterNavContent:void 0,searchText:void 0,searchPrompt:void 0,handleSearchTextChange:void 0,handleSearchTextClear:void 0,searchBoxAriaControls:void 0,afterNavTree:void 0,disableMainScrollY:void 0,alertBar:void 0,handleAlertBarClose:void 0,navigationScrollable:void 0,mobileNavigationMenuButtonLabel:void 0,managedClasses:void 0,history:void 0,location:void 0,match:void 0,staticContext:void 0}),vt(this,"emptySearchTextAction",{target:{value:""}}),vt(this,"textActionRef",r.createRef()),vt(this,"generateMainClassNames",(()=>{let t=this.props.managedClasses.ResponsiveSidePaneLayout_mainContainer;return this.props.disableMainScrollY||(t+=` ${this.props.managedClasses.ResponsiveSidePaneLayout_mainContainer__scrollable}`),t})),vt(this,"generateNavigationClassNames",(()=>{let t=this.props.managedClasses.ResponsiveSidePaneLayout_navigationContainer;return this.props.navigationScrollable&&(t+=` ${this.props.managedClasses.ResponsiveSidePaneLayout_navigationContainer__scrollable}`),t})),vt(this,"renderTextField",(()=>r.createElement("div",{role:"search"},r.createElement(wt,{className:this.props.managedClasses.ResponsiveSidePaneLayout_search,jssStyleSheet:_t,id:ft.H,beforeGlyph:this.generateSearchIcon,placeholder:this.props.searchPrompt,value:this.props.searchText,onChange:this.props.handleSearchTextChange,button:this.renderClearSearchButton,autoComplete:"off",onKeyDown:this.onKeyDown,autoFocus:!0,"aria-label":this.props.searchPrompt,innerRef:this.textActionRef})))),vt(this,"renderClearSearchButton",(()=>{if(!(this.props.searchText.length<=0))return r.createElement(l.XC,{className:this.props.managedClasses.ResponsiveSidePaneLayout_clearSearchButton,onClick:this.clearSearchText,title:lt.pz.getString("clearSearch")},(0,ot.p)(this.props.managedClasses.ResponsiveSidePaneLayout_clearSearchIcon))})),vt(this,"onKeyDown",(t=>{t.key===rt.XP.escape&&this.clearSearchText()})),vt(this,"clearSearchText",(()=>{this.focusTextActionInput(),this.props.handleSearchTextChange&&this.props.handleSearchTextChange(this.emptySearchTextAction),this.props.handleSearchTextClear&&this.props.handleSearchTextClear()})),vt(this,"renderNavTree",((t,e)=>r.createElement(r.Fragment,null,r.createElement("div",{role:"navigation",className:this.generateNavigationClassNames()},r.createElement(tt.L,{"aria-label":lt.pz.getString("navTreeLabel"),renderCollapsedNodes:!1},this.props.navItems.map((t=>this.createNavElement(t,e)))),this.props.afterNavTree),this.maybeRenderAfterNavContent()))),vt(this,"generateSearchIcon",(()=>(0,st.R)(this.props.managedClasses.ResponsiveSidePaneLayout_searchIcon)))}render(){let t=mt;return this.props.alertBar&&this.props.bannerMessage?t=xt:(this.props.alertBar||this.props.bannerMessage)&&(t=yt),r.createElement(r.Fragment,null,this.renderMessageBar(),this.props.alertBar,r.createElement(J,gt({},this.unhandledProps(),{title:this.props.title,navigationMenu:this.renderNavTree,textField:this.renderTextField,paneMinWidth:dt._s,mobileNavigationMenuButtonLabel:this.props.mobileNavigationMenuButtonLabel,jssStyleSheet:t,lightDismissEnabled:!0}),r.createElement("div",{role:"main",className:this.generateMainClassNames(),"aria-label":this.props.title},this.props.children)))}renderMessageBar(){return this.props.bannerMessage?r.createElement(ct.Z,{id:"message-bar",content:this.props.bannerMessage,icon:this.props.bannerIcon,fixed:!0}):null}focusTextActionInput(){if(!this.textActionRef.current)return;const t=i.findDOMNode(this.textActionRef.current);if(t instanceof Element){const e=t.querySelector("input");null!==e&&e.focus()}}maybeRenderAfterNavContent(){return this.props.afterNavContent?r.createElement("div",{className:this.props.managedClasses.ResponsiveSidePaneLayout_afterNavContentContainer,role:"complementary"},this.props.afterNavContent):null}createNavElement(t,e){const n=t.isActiveCallback(this.props.location),i=[];return t.drawDividerAbove&&i.push(r.createElement(a.iz,{className:this.props.managedClasses.divider,key:"divider_"+t.id})),i.push(r.createElement(et.A7,{id:t.id,key:t.id,onContextMenu:t.onContextMenu,glyph:t.icon,expandedGlyph:t.expandedIcon?t.expandedIcon:null,expanded:t.defaultExpanded,titleContent:t.title,selected:n,onSelected:(r,i)=>{i&&(i.stopPropagation(),i.preventDefault()),n&&!t.enableNavigationIfSelected||n&&!t.enableNavigationIfSelected(this.props.location)||(t.histogramEntry&&(0,it.et)(t.histogramEntry.name,t.histogramEntry.value,t.histogramEntry.maxValue),t.userActionEntry&&(0,it.f)(t.userActionEntry.name),e&&e(),this.props.history.push(t.link()))},dragDropConfig:t.dragDropConfig,jssStyleSheet:bt},t.children&&t.children.length>0?t.children.map((t=>this.createNavElement(t,e))):void 0)),i}}const St=(0,o.EN)((0,p.ZP)(bt)(Ct))},47754:(t,e,n)=>{"use strict";n.d(e,{x:()=>h});var r=n(23366),i=n(4921),o=n(51094),s=n(53363),a=n(76908),l=n(60685),c=n(6098),u=n(46589),d=n(38066),p=n(18169);const h={...n(21733).Os,divider:{borderTop:`1px solid ${(0,i.L$)(c.fn)}`,marginTop:"8px",paddingTop:"8px"},toggleRow:{display:"flex",width:"100%",alignItems:"center",justifyContent:"space-between",marginBottom:"14px"},toggleRow_text:{color:o.CH,fontSize:(0,s.p0)("t7"),margin:"0px",marginInlineEnd:"8px",flex:"1","& > a":{...(0,d.$Q)()}},toggleRow_toggle:{marginTop:"4px"},navLink:{...(0,l.o)(c.fn)},contentHeader:{color:o.CH,paddingBottom:`${u.bn}px`,paddingTop:`${u.f8}px`,margin:"0",marginLeft:`${u.AW}px`,marginRight:`${u.H0}px`,maxWidth:`${u.Aj}px`,minWidth:`${u.XM}px`,...(0,r.L)(),...(0,p.ro)(p._p.PAGE_HEADER_ITEMS)},sectionHeader:{color:o.CH,margin:"0",userSelect:"none",paddingTop:`${u.QD}px`,paddingBottom:`${u.ic}px`,marginLeft:`${u.AW}px`,marginRight:`${u.H0}px`,maxWidth:`${u.Aj}px`,minWidth:`${u.XM}px`,...(0,p.ro)(p._p.PAGE_HEADER_ITEMS),...(0,r.L)()},itemList:{listStyleType:"none",padding:"0",marginLeft:`${u.AW}px`,marginRight:`${u.AW}px`,marginBottom:`${u.pG}px`},progress:{width:`${u.Aj}px`,minWidth:`${u.XM}px`,maxWidth:`${u.Aj}px`,marginTop:"10px",marginLeft:`${u.AW}px`,marginRight:`${u.AW}px`,transform:"rtl"===c.fn.direction?"scale(-1,1)":""},progress_circularSVG__container:{},progress_circularSVG__page:{},progress_circularSVG__control:{},highlight:{backgroundColor:c.fn.uiColor.searchHighlight,color:c.fn.uiColor.searchText,[a.xE]:{forcedColorAdjust:"none",color:a.YP.selectedText,backgroundColor:a.YP.selectedBackground}},itemList_focusContainer:{width:"100%",height:"100%","&:focus":{outline:"none"}},itemList_container:{width:"100%",height:"100%"}}},325:(t,e,n)=>{"use strict";n.d(e,{S:()=>m});var r=n(17332),i=n(38681),o=n(51094),s=n(89827),a=n(53363),l=n(16438);const c={...l.Oh,baseModal_content:{...l.Oh.baseModal_content,color:o.CH},singleActionModal:{},singleActionModal_primaryButton:{...(0,s.cg)(),...(0,a.Sh)("t7"),height:"32px","padding-inline-start":"12px","padding-inline-end":"12px"}};var u=n(89526),d=n(37834),p=n(11754),h=n(25944),f=n(40672),g=n(60769);function v(){return(v=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}class b extends p.Z{constructor(...t){var e,n,r;super(...t),r={accept:void 0,acceptMessage:void 0,closeButtonToolTip:void 0,content:void 0,dismiss:void 0,label:void 0},(n="handledProps")in(e=this)?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r}render(){const t="function"==typeof this.props.content?this.props.content(this.props.managedClasses):this.props.content;return u.createElement(f.Z,v({},this.unhandledProps(),{title:this.props.label,label:this.props.label,closeButtonTooltip:this.props.closeButtonToolTip,onCloseButtonClick:this.props.dismiss,className:(0,d.A)(this.props.managedClasses.singleActionModal)}),t,u.createElement(g.Z,null,u.createElement(h.EC,{className:this.props.managedClasses.singleActionModal_primaryButton,onClick:this.props.accept,autoFocus:!0},this.props.acceptMessage)))}}const m=(0,i.y2)((0,r.ZP)(c)(b),i.JA.Secondary)},28935:(t,e,n)=>{"use strict";n.d(e,{i:()=>x});var r=n(17332),i=n(83247),o=n(89526),s=n(73961),a=n(33832),l=n(37834),c=n(40081),u=n(44907),d=n(14279),p=n(17990);function h(){return(h=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}const f={buttonComponent:void 0,children:void 0,className:void 0,managedClasses:void 0,mainAction:void 0,menu:void 0,overflowButtonProps:void 0,roleDescription:void 0},g={"aria-hidden":!0};var v=n(39529);function b(){return(b=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}const m={buttonComponent:void 0,children:void 0,className:void 0,managedClasses:void 0,mainAction:void 0,menuItems:void 0,overflowButtonProps:void 0,roleDescription:void 0},y={"aria-hidden":!0};(0,r.ZP)(i.EO)((function(t){const{buttonComponent:e,children:n,className:r,managedClasses:v,mainAction:b,menu:m,overflowButtonProps:y,roleDescription:x}=(0,p.M)(f,t),_=(0,p.X)(f,t),[w,C]=o.useState(!1),S=o.useRef();function E(){if(S.current){const t=(0,s.findDOMNode)(S.current);t instanceof HTMLElement&&t.focus()}}return o.createElement(e,h({},_,{innerRef:S,jssStyleSheet:i.BB,className:(0,l.A)(r,null==v?void 0:v.splitButton),onClick:b,onKeyDown:function(t){t.altKey&&t.keyCode===a.mW.arrowDown?C(!0):t.altKey&&t.keyCode===a.mW.arrowUp&&C(!1)},"aria-haspopup":!0,"aria-expanded":w,"aria-roledescription":x}),o.createElement(e,{tabIndex:-1,onFocus:E,jssStyleSheet:i.$j,className:null==v?void 0:v.splitButton_mainAction,"aria-roledescription":x},n),o.createElement(u.C,h({tabIndex:-1,buttonStyleSheet:i.$j,className:null==v?void 0:v.splitButton_overflowAction,menu:m((function(t){t.altKey&&t.keyCode===a.mW.arrowUp&&(E(),C(!1))})),menuOpen:w,buttonComponent:e,onFocus:E,onClick:function(t){null==t||t.stopPropagation(),C(!w)},onMenuShouldDismiss:function(){C(!1)},menuPosition:d.P.BottomRightMenuRight},y),(0,c.i)("",null,g)))}));const x=(0,r.ZP)(i.EO)((function(t){const{buttonComponent:e,children:n,className:r,managedClasses:u,mainAction:h,overflowButtonProps:f,roleDescription:g,menuItems:x}=(0,p.M)(m,t),_=(0,p.X)(m,t),[w,C]=o.useState(!1),S=o.useRef();function E(){if(S.current){const t=(0,s.findDOMNode)(S.current);t instanceof HTMLElement&&t.focus()}}return o.createElement(e,b({},_,{innerRef:S,jssStyleSheet:i.BB,className:(0,l.A)(r,null==u?void 0:u.splitButton),onClick:h,onKeyDown:function(t){t.altKey&&t.keyCode===a.mW.arrowDown&&C(!0)},"aria-haspopup":!0,"aria-expanded":!1,"aria-roledescription":g}),o.createElement(e,{tabIndex:-1,onFocus:E,jssStyleSheet:i.$j,className:null==u?void 0:u.splitButton_mainAction,"aria-roledescription":g},n),o.createElement(v._,b({tabIndex:-1,buttonStyleSheet:i.$j,className:null==u?void 0:u.splitButton_overflowAction,showMenu:w,onMenuShown:function(){C(!1)},buttonComponent:e,onFocus:E,menuItems:x,onClick:function(t){t.stopPropagation()},menuPosition:d.P.BottomRightMenuRight},f),(0,c.i)("",null,y)))}))},83247:(t,e,n)=>{"use strict";n.d(e,{BB:()=>c,$j:()=>u,EO:()=>d});var r=n(47436),i=n(76908),o=n(42130),s=n(64197),a=n(23366),l=n(48863);const c={button:{padding:"0px",border:"none","box-sizing":"border-box",...(0,o.F0)({border:(0,s.WU)("solid 2px {0}",r.F),[i.xE]:{border:`solid 2px ${i.YP.text}`}})},button_contentRegion:{display:"flex","flex-direction":"row","flex-grow":"1","max-width":"100%","&::before":{display:"none"}}},u={button:{"border-radius":"0"},button_contentRegion:{...(0,a.L)(),"&::before":{display:"none"}}},d={splitButton:{display:"flex","flex-direction":(0,l.zw)("row","row-reverse")},splitButton_mainAction:{"flex-grow":"1","border-radius":"0"},splitButton_overflowAction:{"flex-grow":"0","border-radius":"0","flex-shrink":"0"}}},16254:(t,e,n)=>{"use strict";n.d(e,{ny:()=>h,D1:()=>f,Rq:()=>g,pt:()=>v,OS:()=>b,r1:()=>m,qq:()=>y,BH:()=>x,Li:()=>_,kR:()=>w,mU:()=>C});var r=n(89526),i=n(57786),o=n(17450),s=n(91030),a=n(89827),l=n(17657),c=n(6098),u=n(14570),d=n(46589);if(571==n.j)var p=n(3117);const h={dataGrid:{marginBottom:"0px"},dataGrid_columnHeader:{color:s.Q,...(0,a.Li)(),paddingTop:(0,l.a)(d.un),height:(0,l.a)(d.RK)},dataGrid_header:{border:"none"},dataGrid_row:{border:"none"},dataGrid_cell:{display:"flex",alignItems:"center"}},f={dataGrid:{marginBottom:"0px",paddingInlineEnd:"2px"},dataGrid_columnHeader:{color:s.Q,...(0,a.Li)(),paddingTop:(0,l.a)(d.un),height:(0,l.a)(d.RK)},dataGrid_header:{border:"none"},dataGrid_row:{border:"none"},dataGrid_cell:{display:"flex",alignItems:"center"}},g=(0,i.Z)((0,o.Z)(h),{dataGrid_header:{maxHeight:"0px"}}),v=(0,i.Z)((0,o.Z)(f),{dataGrid_header:{maxHeight:"0px"}}),b={button:{...(0,u.b)(c.fn,d.L_,d.L_)}};function m(t,e,n,r){return{...r,"data-cellid":n,className:e,style:{gridColumn:t.columnIndex}}}function y(t,e,n,r){const i=m(t,e,n,{...r,tabIndex:-1});return{...i,style:{...i.style,border:0,padding:0}}}function x(t,e){return{tabIndex:t.tabIndex||0,innerRef:e}}function _(t,e){return{tabIndex:t.tabIndex||0,ref:e}}function w(t,e,n,i){return r.createElement("div",{style:{opacity:0,gridColumn:n+1},key:e,className:i,role:"columnheader"},t)}function C(t,e,n,i,o){return r.createElement("div",{style:{gridColumn:i+1},className:o,key:n,role:"columnheader",title:"string"==typeof e?p.pz.getString(e):""},"string"==typeof e?t(e):e)}},31775:(t,e,n)=>{"use strict";n.d(e,{XY:()=>f,ZP:()=>m});var r=n(89526),i=n(11754),o=n(89827),s=n(53363),a=n(51094),l=n(91030),c=n(17332),u=n(17657),d=n(46589);function p(){return(p=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function h(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const f={tableLabel_textSection:{visibility:"hidden"}},g={tableLabel:{display:"flex",flexDirection:"row"},tableLabel_buttonSection:{display:"flex",marginTop:"4px"},tableLabel_textSection:{...(0,o.cg)(),...(0,s.Sh)("t7"),color:a.CH,flexGrow:"1",padding:"10px 0"},tableSubLabel:{...(0,o.Li)(),...(0,s.Sh)("t8"),color:l.Q,marginTop:"4px",marginBottom:"0px"},tableLabel_carded:{paddingInlineStart:(0,u.a)(d.bT),paddingInlineEnd:(0,u.a)(d.bT)},tableLabel_cardedIconButton:{paddingInlineStart:(0,u.a)(d.bT),paddingInlineEnd:(0,u.a)(d.n)}};class v extends i.Z{constructor(...t){super(...t),h(this,"handledProps",{buttons:void 0,label:void 0,subLabel:void 0,labelId:void 0,managedClasses:void 0}),h(this,"maybeRenderSublabel",(()=>this.props.subLabel?r.createElement("p",{className:this.props.managedClasses.tableSubLabel},this.props.subLabel):null))}render(){return r.createElement("div",p({},this.unhandledProps(),{className:this.generateClassNames()}),r.createElement("div",{id:this.props.labelId,className:this.props.managedClasses.tableLabel_textSection,role:"heading","aria-level":3},this.props.label,this.maybeRenderSublabel()),this.props.buttons?r.createElement("div",{className:this.props.managedClasses.tableLabel_buttonSection},this.props.buttons):null)}generateClassNames(){let t=this.props.className?this.props.className:"";return this.props.carded&&(this.props.iconButton?t+=` ${this.props.managedClasses.tableLabel_cardedIconButton}`:t+=` ${this.props.managedClasses.tableLabel_carded}`),`${t} ${this.props.managedClasses.tableLabel}`}}const b=(0,c.ZP)(g)(v),m=571==n.j?b:null},37519:(t,e,n)=>{"use strict";n.d(e,{Z:()=>k});var r=n(59934),i=n(89526),o=n(73961),s=n(17332),a=n(17657),l=n(11754),c=n(92588),u=n(2483),d=n(29911),p=n(51094),h=n(76908),f=n(51758),g=n(6098),v=n(76383),b=n(14570),m=n(47754),y=n(46589),x=n(49326),_=n(10236),w=n(3117),C=n(38066);function S(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const E={...m.x,title:{display:"flex",flex:"0 1 auto",flexWrap:"wrap",alignItems:"center",paddingBottom:(0,a.a)(y.bn),margin:"0",maxWidth:(0,a.a)(y.Aj),minWidth:(0,a.a)(y.XM)},title_button:{...(0,b.b)(g.fn,y.L_,y.L_),marginInlineStart:(0,a.a)(y.P_)},title_buttonHeaderWrapper:{flexGrow:"1",display:"flex",alignItems:"center"},title_arrowBack:{height:"20px",width:"20px",fill:d.go,...(0,C.lQ)(),[h.xE]:{forcedColorAdjust:"none",fill:h.YP.buttonText,"&:hover":{fill:h.YP.selectedText}}},title_breadcrumbLink:{color:d.go,paddingInlineStart:"4px",paddingInlineEnd:"6px",textDecoration:"none",cursor:"pointer",whiteSpace:"nowrap",[h.xE]:{forcedColorAdjust:"none",color:h.YP.forcedColorLink}},title_basicTopMargin:{paddingTop:"32px"},title_container:{display:"flex",flexFlow:"row",flexGrow:"1",flexWrap:"wrap",overflow:"hidden",marginInlineEnd:"4px"},title_increasedTopMargin:{paddingTop:`${y.f8}px`},title_searchBox:{},contentHeader:{margin:"0",wordBreak:"break-word",minWidth:"fit-content"},title_iconDiv:{flexShrink:"0",marginInlineEnd:"8px",cursor:"inherit",marginTop:"6px",fill:p.CH,[h.xE]:{forcedColorAdjust:"none",fill:h.YP.text},height:"20px",width:"20px"}},O={textAction:{maxWidth:"200px",marginInlineStart:"auto"}};class j extends l.Z{constructor(t){if(super(t),S(this,"backButtonRef",i.createRef()),S(this,"routeToParent",(()=>{this.props.history&&(this.props.searchTerm&&this.props.searchResultsPathname?this.props.history.push((0,v.DQ)(this.props.searchResultsPathname,{previousLocation:this.props.location,backButtonClicked:!0})()):this.props.preserveNone?this.props.history.push((0,v.zM)(this.props.parentPathname,{previousLocation:this.props.location,backButtonClicked:!0})()):this.props.history.push((0,v.DQ)(this.props.parentPathname,{previousLocation:this.props.location,backButtonClicked:!0})()))})),S(this,"generateTitle",(()=>this.props.parentText?i.createElement("div",{className:this.props.managedClasses.title_buttonHeaderWrapper},this.generateBreadcrumbButton(),i.createElement("nav",{className:this.props.managedClasses.title_container,"aria-label":w.pz.getString("breadcrumbLabel")},this.generateBreadcrumb(),i.createElement(c.X6,{className:this.props.managedClasses.contentHeader,tag:y.VP,size:y.$e},"/ ",this.props.text,this.renderMatches()))):i.createElement("div",{className:this.props.managedClasses.title_container},i.createElement(c.X6,{className:this.props.managedClasses.contentHeader,tag:y.VP,size:y.$e},this.props.text,this.renderMatches())))),S(this,"generateBreadcrumbButton",(()=>i.createElement(u.XC,{className:this.props.managedClasses.title_button,ref:this.backButtonRef,innerRef:this.props.backButtonInnerRef||null,onClick:this.routeToParent,"aria-label":w.pz.getStringF("msBackButtonText",this.props.parentText)},(0,f.N)(this.props.managedClasses.title_arrowBack)))),S(this,"generateBreadcrumb",(()=>{const t=this.props.searchTerm&&this.props.searchResultsPathname?w.pz.getString("searchResultsBreadcrumb"):this.props.parentText;return i.createElement(c.X6,{className:this.props.managedClasses.contentHeader,tag:y.VP,size:y.$e},i.createElement("a",{className:this.props.managedClasses.title_breadcrumbLink,onClick:this.routeToParent},t))})),S(this,"renderMatches",(()=>this.props.matchCount&&this.props.searchTerm&&this.props.searchTerm.length>0?` - ${(0,x.hM)(this.props.matchCount)}`:null)),S(this,"renderBeforeIcon",(()=>this.props.before?i.createElement("div",{"aria-hidden":!0},this.props.before(this.props.managedClasses.title_iconDiv)):null)),t.parentText&&!t.parentPathname||!t.parentText&&t.parentPathname)throw t.parentText?new Error("Invalid parameter: Title cannot have a parentText without a parentPathname"):new Error("Invalid parameter: Title cannot a parentPathname without a parentText")}componentDidMount(){if(this.props.topOfPage&&this.props.parentText&&this.backButtonRef.current){const t=o.findDOMNode(this.backButtonRef.current);t instanceof HTMLElement&&t.focus()}}render(){return i.createElement("div",{className:this.generateClassNames()},this.renderBeforeIcon(),this.generateTitle(),!!this.props.onSearchTextChange&&i.createElement(_.Z,{className:this.props.managedClasses.title_searchBox,innerRef:this.props.searchBoxInnerRef,placeholder:this.props.searchBoxPlaceholderText,onSearchTextChange:this.props.onSearchTextChange,onSearchTextClear:this.props.onSearchTextClear,textActionStyle:O}),this.props.titleControl)}generateClassNames(){let t=`${this.props.managedClasses.title} `;return this.props.topOfPage?t+=`${this.props.managedClasses.title_increasedTopMargin} `:t+=`${this.props.managedClasses.title_basicTopMargin} `,super.generateClassNames(t)}}const P=(0,s.ZP)(E)((0,r.EN)(j)),k=/^(57|99)1$/.test(n.j)?P:null},3117:(t,e,n)=>{"use strict";n.d(e,{pz:()=>r,e9:()=>i,cr:()=>o,HB:()=>s});const r=window.loadTimeData,i=window.chrome;const o=window.cr;function s(t,e,n){return parseToSafeHtml(t,e,n)}},96507:(t,e,n)=>{"use strict";n.d(e,{y:()=>r,t2:()=>i,iJ:()=>a});const r=/^(9(08|37|91)|(14|18|20|77|88)5|22|366|571|813)$/.test(n.j)?'a[href]:not([tabindex="-1"]), button:enabled, textarea, input[type="text"], input[type="password"], div[role="slider"], input[type="radio"]:checked, input[type="checkbox"]:enabled, select:not([style*="display: none"]), details, [tabindex]:not([tabindex="-1"])':null;function i(t){if(t)return[...t.querySelectorAll(r)]}function o(t,e,n){const r=e===s.NextSibling;let i=r?t.nextElementSibling:t.previousElementSibling;for(;i&&!i.matches(n);)i=r?i.nextElementSibling:i.previousElementSibling;return i}let s;function a(t,e){const n=o(t,s.NextSibling,e);return n||o(t,s.PreviousSibling,e)}!function(t){t[t.NextSibling=0]="NextSibling",t[t.PreviousSibling=1]="PreviousSibling"}(s||(s={}))},49326:(t,e,n)=>{"use strict";if(n.d(e,{hM:()=>i,TB:()=>o,FQ:()=>s}),/^(57|99)1$/.test(n.j))var r=n(3117);function i(t){return t<1?null:1===t?r.pz.getStringF("singularMatchCount",t):r.pz.getStringF("pluralMatchCount",t)}function o(t){return t<1?null:1===t?r.pz.getStringF("singularMatchCount",t):r.pz.getStringF("pluralMatchCount",t)}function s(t,e){return e<1?null:1===e?r.pz.getStringF("singularSubpageWithTitleMatchCount",t,e):r.pz.getStringF("pluralSubpageWithTitleMatchCount",t,e)}},76383:(t,e,n)=>{"use strict";function r(t,e){return()=>({pathname:t,state:e||void 0})}function i(t,e,n){return()=>({pathname:t,search:e,state:n||void 0})}function o(t,e){return()=>({pathname:t,search:window.location.search,state:e||void 0})}n.d(e,{zM:()=>r,Vz:()=>i,DQ:()=>o})},26515:(t,e,n)=>{"use strict";function r(t,e,n,r,i,o){t||o(e.id);const s=n.indexOf(e),a=n.indexOf(t),l=Math.min(s,a),c=Math.max(s,a);r(n.filter(((t,e)=>e>=l&&e<=c)));i(n.filter(((t,e)=>e<l||e>c)))}function i(t,e,n,i,o,s,a,l,c){if("contextmenu"===t.type)return;t.stopPropagation();const u=!!t&&t.shiftKey,d=[];n?(d.push(e),l(d)):u?r(s,e,i,a,l,c):(d.push(e),a(d),c(e.id))}n.d(e,{a1:()=>i})},32491:(t,e,n)=>{"use strict";n.d(e,{Ej:()=>s,_j:()=>a,yh:()=>l,UV:()=>c,QK:()=>u});var r=n(89526);if(/^(22|551|571|939)$/.test(n.j))var i=n(3117);function o(t){return t.split("").map((t=>t.charCodeAt(0))).reduce(((t,e)=>t+e),0)}function s(t){return t.split("&").join("")}function a(t,e,n){if(!e)return t;const i=e.toLowerCase(),s=t.toLowerCase(),a=o(i);let l=!1,c=0,u=e.length,d=0;const p=[];let h=o(s.substring(c,u));for(;u<=t.length;)h===a&&s.substring(c,u)===i?(l=!0,p.push(t.substring(d,c)),p.push(t.substring(c,u)),c=d=u,u+=e.length,h=o(s.substring(c,u))):(h=h-s.charCodeAt(c)+s.charCodeAt(u),c++,u++);return d!==t.length&&p.push(t.substring(d,t.length)),l?p.map(((t,e)=>r.createElement("span",{key:e,className:e%2!=0?n:null},t))):t}function l(t,e,n){const o=a(t,e,n);if(o instanceof Array){const e=i.pz.getStringF("searchResultMatch",t),n=r.createElement("div",{style:{opacity:0,position:"absolute",width:"calc(100% + 1ch)",height:"100%",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}},e);return r.createElement("span",{style:{position:"relative"}},n,r.createElement("span",{"aria-hidden":!0},o))}if("string"==typeof o)return o}function c(t,e,n){const i=(t.match(/(\$[1-9])|(([^$]|\$([^1-9]|$))+)/g)||[]).map((function(r){if(!r.match(/^\$[1-9]$/)){if((r.match(/\$/g)||[]).length%2!=0)throw new Error(`Unescaped $ found in localized string "${t}".`);const e=r.replace(/\$\$/g,"$");return{value:n?n(e):e,arg:null}}const i=parseInt(r[1],10)-1;return{value:e[i],arg:r}}));return r.createElement(r.Fragment,null,i.map((t=>t.value)))}function u(t){return t.map((t=>t.value)).join(" ")}},95084:(t,e,n)=>{"use strict";function r(t){return"ContextMenu"===t.key||"F10"===t.key&&t.shiftKey}function i(t){const e=t.ctrlKey||t.metaKey||t.altKey;return 1===t.key.length&&" "!==t.key&&!e}function o(t,e){if(!t||!e)return;const n=document.getElementById(t);if(!n)return;const r=n.getBoundingClientRect(),i=e.getBoundingClientRect();(r.y>i.bottom||r.y<i.top)&&n.scrollIntoView()}function s(t,e){if(!t)return;t.focus();const n=new KeyboardEvent("keydown",{...e});t.dispatchEvent(n)}n.d(e,{r3:()=>r,g:()=>i,cg:()=>o,eP:()=>s})},17990:(t,e,n)=>{"use strict";if(n.d(e,{M:()=>i,X:()=>o}),/^(14|88)5$/.test(n.j))var r=n(19760);function i(t,e){const n=Object.keys(e).filter((e=>t.hasOwnProperty(e)));return(0,r.Z)(e,n)}function o(t,e){const n=Object.keys(e).filter((e=>!t.hasOwnProperty(e)));return(0,r.Z)(e,n)}},18169:(t,e,n)=>{"use strict";let r;function i(t){return{zIndex:t.toString()}}function o(t){return{"z-index":t.toString()}}n.d(e,{_p:()=>r,ro:()=>i,Xy:()=>o}),function(t){t[t.ENUM_START=1]="ENUM_START",t[t.MESSAGE_BAR=2]="MESSAGE_BAR",t[t.CANVAS=3]="CANVAS",t[t.PAGE_HEADER_ITEMS=4]="PAGE_HEADER_ITEMS",t[t.CARD=5]="CARD",t[t.DIALOG_NOTIFICATION=6]="DIALOG_NOTIFICATION",t[t.SEARCH_BUBBLE=7]="SEARCH_BUBBLE",t[t.INFO_BUBBLE=8]="INFO_BUBBLE",t[t.SELECT_MENU=9]="SELECT_MENU",t[t.HEADER_FOOTER=10]="HEADER_FOOTER",t[t.CONTEXT_MENU=11]="CONTEXT_MENU",t[t.DND_PREVIEW=12]="DND_PREVIEW",t[t.MODAL=13]="MODAL",t[t.FRE=14]="FRE",t[t.SPLASH_SCREEN=15]="SPLASH_SCREEN",t[t.ENUM_END=16]="ENUM_END"}(r||(r={}))},62923:(t,e,n)=>{"use strict";n.d(e,{eM:()=>_,ZP:()=>w});var r=n(89526),i=n(17332),o=n(11754),s=n(57518),a=n(86262),l=n(71388),c=n(17657),u=n(18868),d=n(47754),p=n(38681),h=n(3117),f=n(18169),g=n(21733),v=n(96507);function b(){return(b=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function m(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const y="list-focus-container";class x extends o.Z{constructor(...t){super(...t),m(this,"titleRef",r.createRef()),m(this,"listRef",r.createRef()),m(this,"focusRef",r.createRef()),m(this,"titleFocusableElements",void 0),m(this,"outerElementType",r.forwardRef(((t,e)=>r.createElement("div",b({ref:e,role:"presentation"},t))))),m(this,"handledProps",{numRows:void 0,renderRow:void 0,getRowSize:void 0,role:void 0,managedClasses:void 0,listTitle:void 0,listTitleSize:void 0,listClassName:void 0,listFooter:void 0,listFooterSize:void 0,propagateDragEvents:void 0,reload:void 0,focusFallbackId:void 0,resize:void 0,disableFocusHandling:void 0,setBackground:void 0}),m(this,"defaultState",{tabIndex:-1,focusIndex:0,isFocusWithinList:!1}),m(this,"state",this.defaultState),m(this,"resetListPosition",(()=>{var t,e;null===(t=this.listRef.current)||void 0===t||t.scrollTo(0,0),null===(e=this.listRef.current)||void 0===e||e.resetAfterIndex(0),this.updateState({focusIndex:0})})),m(this,"setFocusHandlersOnTitle",(()=>{if(this.props.disableFocusHandling||!this.titleRef.current)return;const t=(0,v.t2)(this.titleRef.current);(0,u.Z)(t,this.titleFocusableElements)||(t.forEach((t=>{t.onfocus=this.onTitleFocus})),this.titleFocusableElements=t)})),m(this,"onTitleFocus",(()=>{this.props.disableFocusHandling||(this.listRef.current.scrollTo(0,0),this.listRef.current.resetAfterIndex(0))})),m(this,"getListElement",(()=>{const t=document.getElementsByClassName(this.props.listClassName);if(!t)return null;return t.item(0)})),m(this,"onTitleWheel",(t=>{const e=this.getListElement();e&&e.scrollBy(t.deltaX,t.deltaY)})),m(this,"onListScroll",(t=>{this.titleRef.current&&(this.titleRef.current.style.top=(0,c.a)(-1*t.scrollOffset))})),m(this,"getRowSize",(t=>0===t?this.props.listTitleSize:this.props.listFooterSize&&t===this.props.numRows+1?this.props.listFooterSize:this.props.getRowSize(t-1))),m(this,"renderRow",(t=>{if(0===t.index)return r.createElement("div",{style:t.style,role:"presentation"});if(this.props.listFooter&&t.index===this.props.numRows+1)return r.createElement("div",{style:t.style,role:"presentation"},this.props.listFooter);const e=t.index-1===this.state.focusIndex&&this.state.isFocusWithinList,n=r.createElement("div",{style:t.style,role:"presentation"},this.props.renderRow(t.index-1,e,this.setFocusIndex,this.ensureFocusability));return this.props.setBackground?r.createElement(l.ZP,{value:p.dS,drawBackground:!1},n):n})),m(this,"onFocus",(t=>{var e,n,r;if(!this.focusRef.current||!this.listRef.current||this.focusRef.current!==t.target)return;if(0===this.props.numRows)return void this.focusFallbackElement();const i=Math.min(this.state.focusIndex,this.props.numRows-1),o=null!==(e=null===(n=this.listRef.current)||void 0===n?void 0:n._outerRef.scrollTop)&&void 0!==e?e:0;null===(r=this.listRef.current)||void 0===r||r.scrollToItem(i+2),window.setTimeout((()=>this.forceScroll(o)),0),this.setFocusIndex(i,0)})),m(this,"forceScroll",(t=>{var e,n;t!==(null===(e=this.listRef.current)||void 0===e?void 0:e._outerRef.scrollTop)&&(null===(n=this.listRef.current)||void 0===n||n._outerRef.scrollBy(0,1))})),m(this,"focusFallbackElement",(()=>{const t=document.getElementById(this.props.focusFallbackId);t&&(t.focus(),this.updateState({tabIndex:this.props.numRows>0?0:-1,isFocusWithinList:!1}))})),m(this,"onBlur",(t=>{this.focusRef.current&&!this.focusRef.current.contains(t.relatedTarget)&&this.setFocusWithinList(!1)})),m(this,"onClick",(t=>{this.props.onClick&&this.props.onClick(t)})),m(this,"onMouseDown",(t=>{this.focusRef.current.blur(),t.stopPropagation(),this.props.propagateDragEvents||t.preventDefault()})),m(this,"ensureFocusability",(()=>{this.updateState({tabIndex:0}),this.focusRef.current.focus()})),m(this,"setFocusIndex",((t,e=0)=>{const n=t+e;n>=0&&n<this.props.numRows&&this.updateState({focusIndex:n,tabIndex:-1,isFocusWithinList:!0})})),m(this,"setFocusWithinList",(t=>{!!this.state.tabIndex===t&&this.state.isFocusWithinList===t||this.updateState({tabIndex:t?-1:0,isFocusWithinList:t})}))}resetAfterIndex(t,e){this.listRef.current&&this.listRef.current.resetAfterIndex(t,!!e)}componentDidMount(){this.props.numRows>0&&this.updateState({tabIndex:0}),this.setFocusHandlersOnTitle()}componentDidUpdate(t,e){const n=this.props.numRows!==t.numRows||this.props.resize!==t.resize;this.listRef.current&&(this.props.reload!==t.reload&&this.resetListPosition(),n&&(this.listRef.current.resetAfterIndex(0),this.props.numRows>0&&0===t.numRows&&this.updateState({tabIndex:0}),0===this.props.numRows&&t.numRows>0&&e.isFocusWithinList&&this.focusFallbackElement())),!t.disableFocusHandling&&this.props.disableFocusHandling&&this.updateState(this.defaultState),this.setFocusHandlersOnTitle()}render(){let t="ltr";return h.pz.valueExists("textdirection")&&(t=h.pz.getString("textdirection")),r.createElement("div",{className:this.props.managedClasses.itemList_container,style:{position:"relative"}},r.createElement("div",{ref:this.titleRef,style:{position:"absolute",top:"0",width:`calc(100% - ${g.Uk.DEFAULT}px)`,zIndex:f._p.PAGE_HEADER_ITEMS},onWheel:this.onTitleWheel},this.props.listTitle),r.createElement("div",b({},this.unhandledProps(),{style:{direction:"ltr"},ref:this.focusRef,className:this.props.managedClasses.itemList_focusContainer,role:this.props.role?this.props.role:"listbox",tabIndex:this.state.tabIndex,onFocus:this.onFocus,onBlur:this.onBlur,onClick:this.onClick,onMouseDown:this.onMouseDown,id:y}),r.createElement(a.Z,null,(e=>r.createElement(s.S_,{className:this.props.listClassName,height:e.height,itemCount:this.props.listFooter?this.props.numRows+2:this.props.numRows+1,itemSize:this.getRowSize,width:e.width,onScroll:this.onListScroll,style:{direction:t,overflowX:"hidden",overflowY:"auto",outline:"none"},ref:this.listRef,outerElementType:this.outerElementType},this.renderRow)))))}updateState(t){this.props.disableFocusHandling?this.setState(this.defaultState):this.setState(t)}}function _(){const t=document.getElementById(y);t&&t.focus&&t.focus()}m(x,"defaultProps",{setBackground:!0});const w=(0,i.ZP)(d.x)(x)},1858:(t,e,n)=>{"use strict";n.d(e,{bQ:()=>r,ZH:()=>i,Xk:()=>o});const r=250,i=15;let o;!function(t){t[t.NEUTRAL=0]="NEUTRAL",t[t.EDGE=1]="EDGE",t[t.IE11=2]="IE11",t[t.IE11APP=3]="IE11APP",t[t.CONFIGURABLE=4]="CONFIGURABLE"}(o||(o={}))},81101:(t,e,n)=>{"use strict";n.d(e,{l:()=>s});var r=n(18064),i=n(27539),o=n(15515);const s={backends:[{backend:r.ZP,transition:o.RY},{backend:i.Z,options:{enableMouseEvents:!0,delay:250},preview:!0,transition:o.R}]}},74846:(t,e,n)=>{"use strict";let r;n.d(e,{SX:()=>r,sF:()=>i,i8:()=>o}),function(t){t[t.Empty=0]="Empty",t[t.Favorites=1]="Favorites",t[t.History=2]="History",t[t.Downloads=3]="Downloads",t[t.Collections=4]="Collections",t[t.GlobalMediaControls=5]="GlobalMediaControls",t[t.Performance=6]="Performance",t[t.MathHelper=7]="MathHelper",t[t.AssistanceHome=8]="AssistanceHome"}(r||(r={}));const i=new Map([[r.Favorites,"Favorites"],[r.History,"History"],[r.Downloads,"Downloads"],[r.Collections,"Collections"],[r.Performance,"Performance"]]);let o;!function(t){t[t.SEARCH=0]="SEARCH",t[t.MANAGE=1]="MANAGE",t[t.PIN=2]="PIN",t[t.HEADER=3]="HEADER",t[t.UNPIN=4]="UNPIN",t[t.NUM_VALUES=5]="NUM_VALUES"}(o||(o={}))},89954:(t,e,n)=>{"use strict";let r,i;function o(t){return t===r.Group5to8?r.Group5to8:r.Group9andOlder}n.d(e,{Qv:()=>r,H3:()=>i,R3:()=>o}),function(t){t[t.Group5to8=0]="Group5to8",t[t.Group9andOlder=1]="Group9andOlder"}(r||(r={})),function(t){t[t.None=0]="None",t[t.FRE=1]="FRE",t[t.Enter=2]="Enter",t[t.Exit=3]="Exit",t[t.Settings=4]="Settings",t[t.MaxValue=4]="MaxValue"}(i||(i={}))},79171:(t,e,n)=>{"use strict";n.d(e,{XP:()=>s,ZP:()=>c});var r=n(89526);if(/^(205|571|908)$/.test(n.j))var i=n(3117);function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}let s,a;!function(t){t.up="ArrowUp",t.down="ArrowDown",t.left="ArrowLeft",t.right="ArrowRight",t.delete="Delete",t.enter="Enter",t.enter2="Return",t.enter3="\n",t.escape="Escape",t.tab="Tab",t.shift="Shift",t[t.space=32]="space",t.spaceKey=" ",t[t.A=65]="A",t[t.Z=90]="Z",t[t.Y=89]="Y",t[t.X=88]="X",t[t.V=86]="V"}(s||(s={})),function(t){t[t.UP=0]="UP",t[t.DOWN=1]="DOWN",t[t.DELETE=2]="DELETE",t[t.ENTER=3]="ENTER",t[t.ESCAPE=4]="ESCAPE",t[t.SELECT_ALL=5]="SELECT_ALL",t[t.UNDO=6]="UNDO",t[t.REDO=7]="REDO",t[t.COPY=8]="COPY",t[t.CUT=9]="CUT",t[t.PASTE=10]="PASTE"}(a||(a={}));class l extends r.Component{constructor(...t){super(...t),o(this,"shortcuts",new Map),o(this,"componentDidMount",(()=>{this.addShortcut(a.DELETE,"Delete","Delete Backspace"),this.addShortcut(a.ENTER,"Enter \n","Return Meta|o"),this.addShortcut(a.SELECT_ALL,"Ctrl|a","Meta|a"),this.addShortcut(a.ESCAPE,"Escape"),this.addShortcut(a.COPY,"Ctrl|c","Meta|c"),this.addShortcut(a.CUT,"Ctrl|x","Meta|x"),this.addShortcut(a.PASTE,"Ctrl|v","Meta|v"),this.addShortcut(a.UNDO,"Ctrl|z","Meta|z"),this.addShortcut(a.REDO,"Ctrl|y Ctrl|Shift|Z","Meta|Shift|Z"),this.addShortcut(a.UP,"ArrowUp Shift|ArrowUp Ctrl|ArrowUp","ArrowUp Shift|ArrowUp Meta|ArrowUp"),this.addShortcut(a.DOWN,"ArrowDown Shift|ArrowDown Ctrl|ArrowDown","ArrowDown Shift|ArrowDown Meta|ArrowDown"),document.addEventListener("keydown",this.keyDown)})),o(this,"componentWillUnmount",(()=>{document.removeEventListener("keydown",this.keyDown)})),o(this,"keyDown",(t=>{for(const e of this.shortcuts){const n=e[0],r=e[1];if("function"==typeof r.matchesEvent&&r.matchesEvent(t))return void this.executeCommand(n,t)}})),o(this,"render",(()=>null))}addShortcut(t,e,n){const r=i.pz.valueExists("is_macosx")&&!0===i.pz.getBoolean("is_macosx")&&n?n:e;this.shortcuts.set(t,new i.cr.ui.KeyboardShortcutList(r))}executeCommand(t,e){if(this.props.rootElement.contains(e.target)||e.target===document.body)switch(t){case a.DELETE:this.props.onDelete&&this.props.onDelete(e);break;case a.ENTER:this.props.onEnter&&this.props.onEnter(e);break;case a.SELECT_ALL:this.props.onSelectAll&&this.props.onSelectAll(e);break;case a.ESCAPE:this.props.onEscape&&this.props.onEscape(e);break;case a.COPY:this.props.onCopy&&this.props.onCopy(e);break;case a.CUT:this.props.onCut&&this.props.onCut(e);break;case a.PASTE:this.props.onPaste&&this.props.onPaste(e);break;case a.UNDO:this.props.onUndo&&this.props.onUndo(e);break;case a.REDO:this.props.onRedo&&this.props.onRedo(e);break;case a.UP:this.props.onUp&&this.props.onUp(e);break;case a.DOWN:this.props.onDown&&this.props.onDown(e)}}}const c=/^(205|571|908)$/.test(n.j)?l:null},47861:(t,e,n)=>{"use strict";n.d(e,{f:()=>a,Z:()=>l});var r=n(89526),i=n(73961),o=n(87958),s=n(18169);class a extends r.Component{componentDidMount(){this.props.rootElement.style.zIndex=s._p.MODAL.toString()}render(){return this.props.modal?i.createPortal(this.props.modal,this.props.rootElement):null}}const l=(0,o.$j)((function(t){return{modal:t.modal}}))(a)},38681:(t,e,n)=>{"use strict";n.d(e,{fl:()=>p,JA:()=>h,PX:()=>a,dS:()=>l,Dc:()=>c,y2:()=>f});var r=n(89526),i=n(56909);if(!/^(2(22|74|96)|8(13|30|82)|145|183|366|580|717|997)$/.test(n.j))var o=n(71388);function s(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}let a=i.g.L1Alt,l=i.g.L1,c=i.g.L2,u=i.g.L1,d=i.g.L1Alt;const p=window.matchMedia("(prefers-color-scheme: dark)");let h;function f(t,e=h.Primary,n={},f){var g,v;return v=g=class extends r.Component{constructor(t){super(t),s(this,"backgroundListener",(()=>{const t=p.matches;a=t?i.z.L2:i.g.L1Alt,l=t?i.z.L1:i.g.L1,c=t?i.z.L3:i.g.L2,u=t?i.z.L3:i.g.L1,d=t?i.z.L1Alt:i.g.L1Alt,this.setState({primarySurfaceBackground:a,secondarySurfaceBackground:l,tertiarySurfaceBackground:c,textInputSurfaceBackground:u,cardContainerSurfaceBackground:d})})),this.state={primarySurfaceBackground:a,secondarySurfaceBackground:l,tertiarySurfaceBackground:c,textInputSurfaceBackground:u,cardContainerSurfaceBackground:d}}componentDidMount(){p.addEventListener("change",this.backgroundListener)}componentWillUnmount(){p.removeEventListener("change",this.backgroundListener)}render(){let i=null;switch(e){case h.Secondary:i=this.state.secondarySurfaceBackground;break;case h.Tertiary:i=this.state.tertiarySurfaceBackground;break;case h.TextInput:i=this.state.textInputSurfaceBackground;break;case h.CardContainer:i=this.state.cardContainerSurfaceBackground;break;case h.Primary:default:i=this.state.primarySurfaceBackground}return r.createElement(o.ZP,{drawBackground:f,value:i,style:n},r.createElement(t,this.props))}},s(g,"displayName",`ResponsiveBackground(${t.displayName})`),v}p.matches&&(a=i.z.L2,l=i.z.L1,c=i.z.L3,u=i.z.L3,d=i.z.L1Alt),function(t){t[t.Primary=0]="Primary",t[t.Secondary=1]="Secondary",t[t.Tertiary=2]="Tertiary",t[t.TextInput=3]="TextInput",t[t.CardContainer=4]="CardContainer"}(h||(h={}))},38066:(t,e,n)=>{"use strict";n.d(e,{lQ:()=>v,JK:()=>b,li:()=>m,$Q:()=>y,pH:()=>x,QA:()=>_,O0:()=>w,gj:()=>C,AP:()=>S,Zb:()=>E});var r=n(89526);if(/^(5(5|51|71)|9(08|39|91)|205|22|32|360|885)$/.test(n.j))var i=n(29911);if(/^(5(5|51|71)|9(08|39|91)|205|22|32|360|885)$/.test(n.j))var o=n(47436);if(571==n.j)var s=n(53363);if(571==n.j)var a=n(89827);if(/^(57|60|99)1$/.test(n.j))var l=n(48863);if(/^(22|939)$/.test(n.j))var c=n(17657);if(/^(22|939)$/.test(n.j))var u=n(51045);if(/^(5(5|51|71)|9(08|39|91)|205|22|32|360|885)$/.test(n.j))var d=n(42130);var p=n(18169);if(/^(67[25]|185|22|571|775|991)$/.test(n.j))var h=n(38681);if(/^(5(5|51|71)|9(08|39|91)|205|22|32|360|601|885)$/.test(n.j))var f=n(6098);if(/^(22|571|672|939)$/.test(n.j))var g=n(46589);function v(){return f.fn.direction===l.Nm.rtl?{transform:"rotate(180deg)"}:{}}function b(){return{maxWidth:`${g.fz}px`,minWidth:`${g.xj}px`}}function m(){return{maxWidth:(0,c.a)((0,u.IH)(g.fz,g._s)),minWidth:`${g.xj}px`}}function y(){return{color:i.go,textDecoration:"none",borderBottom:"1px solid "+(0,i.go)(f.fn),"&:hover":{color:i.D9,borderBottom:"2px solid "+(0,i.D9)(f.fn)},"&:active":{color:i.VN,borderBottom:"2px solid "+(0,i.VN)(f.fn)},...(0,d.F0)({borderBottom:"2px solid "+(0,o.F)(f.fn)})}}function x(){return{...(0,s.Sh)("t8"),...(0,a.cg)(),lineHeight:(0,s.qs)("t8"),minWidth:"0px",padding:"8px 16px"}}function _(){return{backgroundColor:f.fn.uiColor.searchHighlight,color:f.fn.uiColor.searchText}}const w={select_menu:{...(0,p.ro)(p._p.SELECT_MENU),backgroundColor:"inherit"}};function C(t,e,n){const i=(0,h.y2)((()=>r.createElement(r.Fragment,null,n)),h.JA.Secondary);return r.createElement(i,null)}const S={progress:{width:"16px",height:"16px"},progress_circularSVG__container:{width:"16px",height:"16px"}};function E(){return{height:"20px",width:"20px"}}},72080:(t,e,n)=>{"use strict";n.d(e,{Oh:()=>d,gr:()=>p});n(89526);var r=n(9748),i=n(19652),o=n(53363),s=n(4921),a=n(23366);if(908==n.j)var l=n(17657);var c=n(6098),u=n(21733);const d={baseContextMenu_container:{borderRadius:"4px",...(0,r.XC)(r.Y3.e9,c.fn.uiColor.defaultShadow)(void 0),maxWidth:"none",...(0,u.vh)()},baseContextMenu_disabled:{cursor:"default"},baseContextMenu_item:{...(0,o.Sh)("t8"),height:"32px",marginLeft:"0",marginRight:"0",borderRadius:"0"},baseContextMenu_itemTextSnippetContainer:{display:"flex"},baseContextMenu_itemTextSnippet__collapsed:{maxWidth:"100px",display:"inline-block",...(0,a.L)()},baseContextMenu_icon:{justifySelf:"center",width:"20px",height:"20px"},baseContextMenu_divider:{borderTop:"1px solid "+(0,s.L$)(c.fn),margin:"4px 0px 4px 0px"},baseContextMenu_containerAsToolbar:{borderRadius:"4px",...(0,r.XC)(r.Y3.e9,c.fn.uiColor.defaultShadow)(void 0),width:"220px",overflowY:"auto"},baseContextMenu_itemShortcutText:{marginInlineEnd:"16px"},baseContextMenu_itemShortcutIcon:{marginInlineEnd:"12px"},baseContextMenu_itemBackplate:{background:i.sx}};function p(){return{borderWidth:(0,l.a)(1/window.devicePixelRatio)}}},6098:(t,e,n)=>{"use strict";n.d(e,{At:()=>u,fn:()=>d,Gj:()=>p,S6:()=>h,hM:()=>f,$r:()=>g,Fd:()=>v,Iu:()=>b,Cj:()=>m,AG:()=>y,d9:()=>x,S_:()=>_,ti:()=>w,sb:()=>C});var r=n(98415),i=n(46535),o=n(26007);if(/^((18|20|77|88)5|(2|3|67)2|571|908|991)$/.test(n.j))var s=n(14963);if(571==n.j)var a=n(51094);var l=n(3117),c=n(38681);const u={uiColor:{searchHighlight:"#FFEB3B",searchText:"#101010",translucentSearchHighlight:"rgba(255, 235, 59, 0.9)",defaultShadow:"#000",dangerRedDark:"#F28B82",dangerRedLight:"#CC0000",warningYellowLight:"#9D6600",warningYellowDark:"#FFB833",healthyGreenDark:"#98C698",healthyGreenLight:"#107C10",warningRedBackgroundLight:"#F9DFD5",warningRedBackgroundDark:"#5F1A00",black:"#000000",white:"#FFFFFF",warningYellowBackplateLight:"#FFF7E3",warningYellowBackplateDark:"#514935",grayBackplateLight:"#EBEBEB",grayBackplateDark:"#515151",accentBackplateLight:"#E8F5FF",accentBackplateDark:"#4C5963",invalidSignatureLight:"#996F00",invalidSignatureDark:"#FFB900",blueTintLight:"#E8F5FF",darkBlueTint:"#003B68",unknownOrangeSignatureTextLight:"#B65C26",unknownOrangeSignatureTextDark:"#DCB298",unknownOrangeSignatureIconLight:"#D56C2D",unknownOrangeSignatureIconDark:"#C36329",highlightBackgroundLight:"#E3F0FA",highlightBackgroundDark:"#4C5963",profileAlertLight:"#0069B9",edgeDarkGray:"#333333",safetyTipWarningYellowBackground:"#FFD976",translucentHoverFocusBackgroundLight:"rgba(0, 0, 0, 0.07)",translucentHoverFocusBackgroundDark:"rgba(255, 255, 255, 0.07)",noErrorColor:"#0078D4"},direction:l.pz&&l.pz.valueExists("textdirection")&&"rtl"===l.pz.getString("textdirection")?o.N.rtl:o.N.ltr},d=Object.assign({},i.e,u);function p(t){return(0,s.Yc)(t)?d.uiColor.dangerRedDark:d.uiColor.dangerRedLight}function h(t){return(0,s.Yc)(t)?d.uiColor.warningYellowDark:d.uiColor.warningYellowLight}function f(t){return(0,s.Yc)(t)?d.uiColor.darkBlueTint:d.uiColor.blueTintLight}function g(t){return(0,s.Yc)(t)?d.uiColor.highlightBackgroundDark:d.uiColor.highlightBackgroundLight}function v(t){return(0,s.Yc)(t)?d.uiColor.healthyGreenDark:d.uiColor.healthyGreenLight}function b(t){return(0,s.Yc)(t)?d.uiColor.warningRedBackgroundDark:d.uiColor.warningRedBackgroundLight}function m(t){return(0,s.Yc)(t)?d.uiColor.accentBackplateDark:d.uiColor.accentBackplateLight}function y(t){return(0,s.Yc)(t)?d.uiColor.warningYellowBackplateDark:d.uiColor.warningYellowBackplateLight}function x(t){return(0,s.Yc)(t)?(0,a.CH)(t):d.uiColor.profileAlertLight}function _(t){return(0,s.Yc)(t)?d.uiColor.translucentHoverFocusBackgroundDark:d.uiColor.translucentHoverFocusBackgroundLight}function w(){return d.uiColor.noErrorColor}d.backgroundColor=d.neutralPalette[c.PX];const C=(0,r.Z)((t=>Object.assign({},i.e,u,t)))},14570:(t,e,n)=>{"use strict";if(n.d(e,{b:()=>o}),!/^(1(45|54|83)|8(13|30|82)|(71|93|99)7|274|296|32|366|472|580)$/.test(n.j))var r=n(76908);if(!/^(1(45|54|83)|8(13|30|82)|(71|93|99)7|274|296|32|366|472|580)$/.test(n.j))var i=n(46589);function o(t,e=i.k8,n=i.k8){return{"min-width":`${e}px`,"max-width":"unset",height:`${n}px`,width:`${e}px`,padding:"0",margin:"0",transition:"none",background:"transparent","&:hover:not([disabled])":{[r.xE]:{"forced-color-adjust":"none",background:r.YP.selectedBackground,fill:r.YP.selectedText+" !important"}},"& > *":{display:"flex !important"},"&:disabled":{[r.xE]:{"forced-color-adjust":"none",fill:r.YP.disabledText}},[r.xE]:{"forced-color-adjust":"none",fill:r.YP.buttonText}}}},46589:(t,e,n)=>{"use strict";n.d(e,{VP:()=>s,$e:()=>a,ZO:()=>l,zT:()=>c,xj:()=>u,fz:()=>d,_s:()=>p,Hz:()=>h,kC:()=>f,rA:()=>g,TM:()=>v,RK:()=>b,QE:()=>m,tS:()=>y,sP:()=>x,bT:()=>_,n:()=>w,Qt:()=>C,AW:()=>S,oX:()=>E,kt:()=>O,vE:()=>j,un:()=>P,H0:()=>k,M$:()=>I,f8:()=>T,Aj:()=>A,XM:()=>D,pG:()=>R,HC:()=>$,R3:()=>N,Qd:()=>B,k8:()=>F,L_:()=>L,P_:()=>M,Mz:()=>Z,bn:()=>H,Mt:()=>z,Ld:()=>U,hx:()=>W,iF:()=>G,Sd:()=>V,a_:()=>q,QD:()=>K,ic:()=>Y,EC:()=>Q,E8:()=>X,dM:()=>J,mK:()=>tt,F6:()=>et,zd:()=>nt,Wg:()=>rt,HM:()=>it,VY:()=>ot,_b:()=>st,B:()=>lt,bD:()=>ct,S3:()=>ut});var r=n(90305),i=n(63650),o=n(17657);const s=r.lb.h2,a=r.Gm._5,l=i.X.h3,c=i.v._5,u=250,d=820,p=340,h=320,f=40,g=56,v=88,b=40,m=60,y=80,x=4,_=16,w=6,C=20,S=50,E=24,O=12,j=12,P=6,k=50,I=10,T=34,A=820,D=215,R=18,$=10,N=18,B=24,F=28,L=36,M=/^(5(5|51|71)|205|22|360|885|908|991)$/.test(n.j)?-40:null,Z=28,H=16,z=20,U=7,W=18,G=400,V=24,q=560,K=10,Y=4,Q=8,X=14,J=50,tt=30,et=10,nt=32,rt=1035,it=`@media only screen and (max-width: ${(0,o.a)(rt)})`,ot=`@media only screen and (max-width: ${(0,o.a)(1134)})`,st=`@media only screen and (max-width: ${(0,o.a)(755)})`,at=K+20+Y,lt=T+Z+H,ct=lt+at;function ut(t){const e=2*x+t,n=e+R;return{V_SECTION_HEADER:at,V_LIST_ITEM:e,V_LIST_ITEM_WITH_SECTION:e+at,V_LIST_ITEM_WITH_TWO_SECTIONS:e+2*at,V_LIST_ITEM_WITH_BOTTOM_MARGIN:n,V_LIST_ITEM_WITH_SECTION_AND_BOTTOM_MARGIN:at+n,V_HEADER:lt,V_HEADER_WITH_SUBHEADER:ct}}},60685:(t,e,n)=>{"use strict";if(n.d(e,{o:()=>l}),/^(5(5|51|71)|9(08|39|91)|(18|20|77|88)5|22|32|360)$/.test(n.j))var r=n(53363);if(/^(5(5|51|71)|9(08|39|91)|(18|20|77|88)5|22|32|360)$/.test(n.j))var i=n(29911);if(/^(5(5|51|71)|9(08|39|91)|(18|20|77|88)5|22|32|360)$/.test(n.j))var o=n(91030);if(/^(5(5|51|71)|9(08|39|91)|(18|20|77|88)5|22|32|360)$/.test(n.j))var s=n(47436);if(/^(5(5|51|71)|9(08|39|91)|(18|20|77|88)5|22|32|360)$/.test(n.j))var a=n(76908);function l(t){return{minWidth:"unset",...(0,r.Sh)("t7"),height:"unset",borderRadius:"0px",background:"none",border:"none",cursor:"pointer",color:i.go,fill:i.go,display:"block",padding:"0",transition:"none","&:disabled":{cursor:"default !important",color:o.Q,fill:o.Q,opacity:"unset"},"&:hover:enabled":{background:"none",color:i.D9,fill:i.D9,boxShadow:"0px 2px 0px 0px "+(0,i.D9)(t)},"&:focus:enabled":{background:"none",outline:"none",boxShadow:"0px 2px 0px 0px "+(0,s.F)(t)},"&:active:enabled":{background:"none",color:i.VN,fill:i.VN,boxShadow:"0px 2px 0px 0px "+(0,i.VN)(t)},[a.xE]:{forcedColorAdjust:"none",color:a.YP.forcedColorLink,fill:a.YP.forcedColorLink,"&:hover:enabled":{background:"none",color:a.YP.forcedColorLink,fill:a.YP.forcedColorLink,boxShadow:"0px 2px 0px 0px "+a.YP.forcedColorLink},"&:focus:enabled":{boxShadow:"0px 2px 0px 0px "+a.YP.forcedColorLink},"&:active:enabled":{background:"none",color:a.YP.forcedColorLink,fill:a.YP.forcedColorLink,boxShadow:"0px 2px 0px 0px "+a.YP.forcedColorLink}}}}},16438:(t,e,n)=>{"use strict";if(n.d(e,{V3:()=>m,Oh:()=>y,aY:()=>x,fS:()=>_}),/^((18|20|88)5|22|571|908|991)$/.test(n.j))var r=n(9748);var i=n(42130),o=n(48863);if(/^(22|571)$/.test(n.j))var s=n(57786);var a=n(89827),l=n(53363),c=n(51094),u=n(17657);if(/^(22|571)$/.test(n.j))var d=n(33832);var p=n(18169),h=n(6098),f=n(14570),g=n(60685),v=n(38066),b=n(46589);const m=(t=!1)=>({dialog_contentRegion:{"border-radius":t?"0px":"4px",...(0,r.jf)(r.Y3.e9),...(0,i.F0)({}),"max-height":"100%",overflow:t?"hidden":"auto"},dialog_modalOverlay:{...(0,i.F0)({})},dialog_positioningRegion:{overflow:"auto",...(0,p.Xy)(p._p.MODAL)}}),y={baseModal_dialogField:{"margin-inline-end":"4px",...(0,a.cg)()},baseModal_inlineLinkButton:{...(0,g.o)(h.fn),...(0,l.Sh)("t8"),display:"inline","margin-inline-start":"4px"},baseModal_textFieldFlexContainer:{display:"flex","& > :first-child":{"margin-inline-end":"8px"}},button:{height:"32px",flex:"1","max-width":"calc(100% / 2 - 4px)",...(0,a.cg)(),...(0,l.Sh)("t7")},baseModal_content:{"margin-inline-end":(0,u.a)(b.Sd),height:"100%","padding-bottom":"24px","box-sizing":"border-box"},baseModal_contentContainer:{"padding-top":"20px"},baseModal_contentScroll:{height:"100%","max-height":(0,u.a)(b.a_),"padding-inline-start":(0,u.a)(b.Sd),display:"flex","flex-direction":"column"},baseModal_headerContainer:{position:"relative"},baseModal_title:{color:c.CH,"margin-bottom":(0,u.a)(b.hx),"padding-inline-start":(0,u.a)(b.Sd),"padding-inline-end":(0,u.a)(b.Sd),display:"flex"},baseModal_titleIcon:{"margin-inline-end":"20px"},baseModal_dialog:{color:c.CH,...(0,l.Sh)("t7"),"margin-top":"0px","margin-bottom":"18px"},baseModal_select:{"margin-bottom":(0,u.a)(b.hx),...(0,p.ro)(p._p.SELECT_MENU)},baseModal_select__error:{"margin-bottom":"0px",'& [aria-haspopup="true"]':{"border-color":(0,h.Gj)(h.fn),...(0,i.F0)({"box-shadow":`${(0,h.Gj)(h.fn)} 0px 0px 0px 1px inset`,"border-color":(0,h.Gj)(h.fn)}),"&:hover:enabled":{"border-color":(0,h.Gj)(h.fn)},"&:active:enabled":{"border-color":(0,h.Gj)(h.fn)}}},baseModal_textArea:{"margin-bottom":(0,u.a)(b.hx),resize:"vertical","min-height":"32px"},baseModal_textField:{height:"32px",width:"100%",transition:"all 0.2s ease-in-out 0s, margin 0s","margin-bottom":(0,u.a)(b.hx),"margin-top":"0px",...(0,l.Sh)("t7")},baseModal_textField__error:{"border-color":(0,h.Gj)(h.fn),"caret-color":(0,h.Gj)(h.fn),"margin-bottom":"0px",...(0,i.F0)({"box-shadow":`${(0,h.Gj)(h.fn)} 0px 0px 0px 1px inset`,"border-color":(0,h.Gj)(h.fn)}),"&:hover:enabled":{"border-color":(0,h.Gj)(h.fn)},"&:active:enabled":{"border-color":(0,h.Gj)(h.fn)}},baseModal_textField_errorText:{color:(0,h.Gj)(h.fn),...(0,l.Sh)("t8"),height:(0,u.a)(b.hx)},baseModal_label:{color:c.CH,...(0,l.Sh)("t8"),"margin-bottom":"10px"},baseModal_label__error:{color:(0,h.Gj)(h.fn)},baseModal_closeIcon:{height:"14px",width:"14px"},baseModal_closeButton:{...(0,f.b)(h.fn,b.k8,b.k8),position:"absolute",top:(0,u.a)(6-b.k8),margin:"6px","& $baseModal_closeIcon":{...(0,v.Zb)()},right:(0,o.zw)("0","unset"),left:(0,o.zw)("unset","0")},baseModal_inputRow:{display:"flex","flex-direction":"row"},baseModal_inputRow_column:{display:"flex","flex-direction":"column","flex-grow":"1","&:not(:first-child)":{"margin-inline-start":"8px"}}};function x(t,e){return(0,s.Z)({...v.O0,select_menu:{...v.O0.select_menu,width:t,position:"absolute"}},e)}function _(t){t.keyCode===d.Lp&&t.target instanceof HTMLElement&&"option"===t.target.getAttribute("role")&&t.stopPropagation()}},21733:(t,e,n)=>{"use strict";n.d(e,{Uk:()=>c,Os:()=>p,vh:()=>h});var r=n(57167),i=n(76908),o=n(58934),s=n(14963),a=n(93150),l=n(17657);let c;!function(t){t[t.THIN=4]="THIN",t[t.DEFAULT=8]="DEFAULT"}(c||(c={}));const u=(0,s.Ce)(r.Cz)(r.yv)((function(t,e,n){return(0,s.hi)(r.yv,t)(n)}))((function(t,e,n){return(0,s.Yc)(n)?-1:1}))((function(t){return t>3})),d=(0,a.vm)(u),p={"@global":{"::-webkit-scrollbar":{width:(0,l.a)(c.DEFAULT),height:(0,l.a)(c.DEFAULT)},"::-webkit-scrollbar-track":{opacity:"0"},"::-webkit-scrollbar-thumb":{background:d,borderRadius:(0,l.a)(Math.floor(c.DEFAULT/2)),[i.xE]:{forcedColorAdjust:"none",background:i.YP.buttonText}},"::-webkit-scrollbar-thumb:hover":{background:(0,o.Xi)(d),[i.xE]:{forcedColorAdjust:"none",background:i.YP.selectedBackground}},"::-webkit-scrollbar-thumb:active":{background:(0,o.Gy)(d),[i.xE]:{forcedColorAdjust:"none",background:i.YP.selectedBackground}},"::-webkit-scrollbar-corner":{background:"none"}}},h=(t=c.DEFAULT)=>({"&::-webkit-scrollbar":{width:(0,l.a)(t),height:(0,l.a)(t)},"&::-webkit-scrollbar-track":{opacity:"0"},"&::-webkit-scrollbar-thumb":{background:d,"border-radius":(0,l.a)(Math.floor(t/2)),[i.xE]:{"forced-color-adjust":"none",background:i.YP.buttonText}},"&::-webkit-scrollbar-thumb:hover":{background:(0,o.Xi)(d),[i.xE]:{"forced-color-adjust":"none",background:i.YP.selectedBackground}},"&::-webkit-scrollbar-thumb:active":{background:(0,o.Gy)(d),[i.xE]:{"forced-color-adjust":"none",background:i.YP.selectedBackground}},"&::-webkit-scrollbar-corner":{background:"none"}})},50529:(t,e,n)=>{"use strict";n.d(e,{XZ:()=>g});var r=n(89526),i=n(11754);let o;!function(t){t.label="label"}(o||(o={}));var s=n(9680),a=n(27157),l=n(76908),c=n(17332);function u(){return(u=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function d(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class p extends i.Z{static getDerivedStateFromProps(t,e){return"boolean"==typeof t.checked&&t.checked!==e.checked?{checked:t.checked}:null}constructor(t){super(t),d(this,"handledProps",{"aria-describedby":void 0,"aria-label":void 0,checked:void 0,disabled:void 0,inputId:void 0,indeterminate:void 0,managedClasses:void 0,name:void 0,onChange:void 0,value:void 0}),d(this,"inputRef",void 0),d(this,"handleCheckboxChange",(t=>{"boolean"!=typeof this.props.checked&&this.setState({checked:!this.state.checked}),"function"==typeof this.props.onChange&&this.props.onChange(t)})),this.state={checked:this.props.checked||!1},this.inputRef=r.createRef()}componentDidMount(){this.applyIndeterminateState()}componentDidUpdate(){this.applyIndeterminateState()}render(){return r.createElement("div",u({},this.unhandledProps(),{className:this.generateClassNames(),tabIndex:null}),r.createElement("input",{className:(0,s.Z)(this.props,"managedClasses.checkbox_input"),id:this.props.inputId,name:this.props.name,type:"checkbox",ref:this.inputRef,onChange:this.handleCheckboxChange,disabled:this.props.disabled||null,checked:this.state.checked,value:this.props.value,"aria-label":(0,s.Z)(this.props,"aria-label",null),"aria-describedby":(0,s.Z)(this.props,"aria-describedby",null),tabIndex:(0,s.Z)(this.props,"tabIndex",null)||0}),r.createElement("span",{className:(0,s.Z)(this.props,"managedClasses.checkbox_stateIndicator")}),this.renderLabel())}generateClassNames(){let t=(0,s.Z)(this.props,"managedClasses.checkbox","");return this.props.disabled&&(t=`${t} ${(0,s.Z)(this.props,"managedClasses.checkbox__disabled","")}`),this.state.checked&&(t=`${t} ${(0,s.Z)(this.props,"managedClasses.checkbox__checked","")}`),this.props.indeterminate&&(t=`${t} ${(0,s.Z)(this.props,"managedClasses.checkbox__indeterminate","")}`),super.generateClassNames(t)}renderLabel(){return r.Children.map(this.withSlot(o.label),(t=>{let e=(0,s.Z)(this.props,"managedClasses.checkbox_label");if("string"!=typeof e)return t;const n=(0,s.Z)(t,"props.className");return"string"==typeof n&&(e=`${n} ${e}`),r.cloneElement(t,{className:e})}))}applyIndeterminateState(){this.props.indeterminate&&this.inputRef.current&&(this.inputRef.current.indeterminate=this.props.indeterminate)}}d(p,"displayName","MSFTCheckbox");const h=a.Z,f={...h,checkbox_input:{...h.checkbox_input,[l.xE]:{...h.checkbox_input[l.xE],borderColor:l.YP.buttonText}}},g=(0,c.ZP)(f)(p)},70862:(t,e,n)=>{"use strict";n.d(e,{ZD:()=>d});var r=n(89526),i=n(9680),o=n(11754),s=n(17332),a=n(49406);function l(){return(l=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function c(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class u extends o.Z{static getDerivedStateFromProps(t,e){return"boolean"==typeof t.selected&&t.selected!==e.selected?{selected:t.selected}:null}constructor(t){super(t),c(this,"handledProps",{"aria-label":void 0,"aria-labelledby":void 0,managedClasses:void 0,disabled:void 0,inputId:void 0,labelId:void 0,selected:void 0,selectedMessage:void 0,statusMessageId:void 0,unselectedMessage:void 0,onChange:void 0}),c(this,"handleToggleChange",(t=>{"boolean"!=typeof this.props.selected&&this.setState({selected:!this.state.selected}),this.props.onChange&&this.props.onChange(t)})),this.state={selected:this.props.selected||!1}}render(){return r.createElement("div",l({},this.unhandledProps(),{className:this.generateClassNames(),tabIndex:null,"aria-disabled":this.props.disabled||null}),this.generateLabel(),r.createElement("div",{className:(0,i.Z)(this.props,"managedClasses.toggle_toggleButton")},r.createElement("input",{className:(0,i.Z)(this.props,"managedClasses.toggle_input"),type:"checkbox",id:this.props.inputId,"aria-describedby":this.props.statusMessageId,disabled:this.props.disabled,value:this.generateToggleStateLabel(),onChange:this.handleToggleChange,checked:this.state.selected,"aria-label":(0,i.Z)(this.props,"aria-label",null),"aria-labelledby":(0,i.Z)(this.props,"aria-labelledby",null),tabIndex:(0,i.Z)(this.props,"tabIndex",null)||0}),r.createElement("span",{className:(0,i.Z)(this.props,"managedClasses.toggle_stateIndicator")})),this.renderStatusMessage())}generateClassNames(){let t=(0,i.Z)(this.props,"managedClasses.toggle","");return this.props.disabled&&(t=`${t} ${(0,i.Z)(this.props,"managedClasses.toggle__disabled","")}`),this.state.selected&&(t=`${t} ${(0,i.Z)(this.props,"managedClasses.toggle__checked","")}`),super.generateClassNames(t)}generateToggleStateLabel(){return this.state.selected?this.props.selectedMessage:this.props.unselectedMessage}generateLabel(){if(this.props.labelId||this.props.children)return r.createElement("label",{className:(0,i.Z)(this.props,"managedClasses.toggle_label"),id:this.props.labelId,htmlFor:this.props.inputId},this.props.children)}renderStatusMessage(){if(this.props.selectedMessage||this.props.unselectedMessage)return r.createElement("span",{id:this.props.statusMessageId,className:(0,i.Z)(this.props,"managedClasses.toggle_statusMessage")},this.generateToggleStateLabel())}}c(u,"displayName","MSFTToggle");const d=(0,s.ZP)(a.Z)(u)},6905:(t,e,n)=>{"use strict";n.d(e,{b9:()=>i});n(89526);if(205==n.j)var r=n(20513);function i(t){return t.endsWith(r.Rg.hubPath)}},31551:(t,e,n)=>{"use strict";function r(t,e,n){let r;return function(...i){const o=n&&!r;window.clearTimeout(r),r=window.setTimeout((()=>{r=null,n||t.apply(this,i)}),e),o&&t.apply(this,i)}}n.d(e,{D:()=>r})},26085:(t,e,n)=>{"use strict";n.d(e,{n:()=>r}),Error.stackTraceLimit=100;const r=window.chrome.errorReporting},87745:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var r=n(79171),i=n(96507);function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class s{constructor(){o(this,"container",void 0),o(this,"currentFocusElement",void 0),o(this,"initialize",(t=>{this.container=t,this.container.addEventListener("keydown",this.trapFocus)})),o(this,"removeEventListener",(()=>{this.container&&this.container.removeEventListener("keydown",this.trapFocus)})),o(this,"trapFocus",(t=>{if(t.key!==r.XP.tab||t.ctrlKey||!this.container||t.defaultPrevented)return;const e=this.container.querySelectorAll(i.y);if(e&&e.length>0){const n=e[0],r=e[e.length-1];document.activeElement===n&&t.shiftKey?(r.focus(),t.preventDefault()):document.activeElement!==r||t.shiftKey||(n.focus(),t.preventDefault())}}))}static getInstance(){return null===s.currentInstance&&(s.currentInstance=new s),s.currentInstance}makeFocusOnActiveElement(t){if(this.currentFocusElement===document.activeElement)return;const e=t.querySelectorAll(i.y);0!==e.length&&(e.forEach((t=>{document.activeElement!==t||(this.currentFocusElement=t)})),this.currentFocusElement&&this.currentFocusElement.focus())}}o(s,"currentInstance",null);const a=/^((14|20|77|88)5|908|937)$/.test(n.j)?s:null},20513:(t,e,n)=>{"use strict";n.d(e,{Rg:()=>u,qQ:()=>d,VP:()=>f,hD:()=>g,VZ:()=>v,jA:()=>b,C4:()=>m,Qn:()=>y,Rx:()=>x,Vs:()=>_,c:()=>w,ex:()=>C,Vp:()=>S,YR:()=>E,Ag:()=>P,E6:()=>k,Ae:()=>I,Xq:()=>T,zV:()=>A,aV:()=>D,uY:()=>R});var r=n(73961);if(/^((18|20|5|67|88)5|(57|60|99)1|22|908)$/.test(n.j))var i=n(17657);if(/^((20|5|67|88)5|601|908)$/.test(n.j))var o=n(74846);if(/^((20|5|67|88)5|601|908)$/.test(n.j))var s=n(39278);if(/^((20|5|67|88)5|601|908)$/.test(n.j))var a=n(45363);if(/^(205|885|908)$/.test(n.j))var l=n(62588);function c(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}window.hubData={};const u=window.hubData;let d;!function(t){t[t.minimumLevel=0]="minimumLevel",t[t.contentHeight=0]="contentHeight",t[t.contextMenuHeight=1]="contextMenuHeight",t[t.modalHeight=2]="modalHeight",t[t.maximumLevel=2]="maximumLevel"}(d||(d={}));const p={[d.contentHeight]:void 0,[d.contextMenuHeight]:void 0,[d.modalHeight]:void 0};function h(t){return"number"==typeof t&&t>=d.minimumLevel&&t<=d.maximumLevel}function f(t,e=d.contentHeight){void 0===p[d.contentHeight]&&(p[d.contentHeight]=(0,i.a)(u.hubPopupHeight)),p[e]=t;let n=d.contentHeight;for(const t of Object.keys(d)){const e=d[t];h(e)&&"string"==typeof p[e]&&e>n&&(n=e)}const r=p[n];document.body.style.height!==r&&(document.body.style.height=r),document.documentElement.style.height!==r&&(document.documentElement.style.height=r)}function g(){f((0,i.a)(u.hubPopupHeight))}class v{constructor(t){c(this,"splashRendered",void 0),c(this,"contentRendered",void 0),c(this,"contentID",void 0),this.contentRendered=!1,this.splashRendered=!1,this.contentID=t}recordInitialRender(t){var e;this.splashRendered||(this.splashRendered=!0,t||(e=this.contentID,s.A.recordInitialRender(e),l.E.tracingPrivate.endAsync("Hub","Time to initial render",0)))}recordContentRender(t){var e;this.contentRendered||(this.contentRendered=!0,t||(l.E.tracingPrivate.endAsync("Hub","Time to content render",0),e=this.contentID,s.A.recordContentRender(e)))}}function b(t,e){var n;n=e,j(t,s.U.PIN_PERSISTENCE,n),!e&&u.hubPinned?(P(t,o.i8.UNPIN),y(t)):e&&!u.hubPinned&&(P(t,o.i8.PIN),x(t))}function m(t){s.A.enableResize(t)}function y(t){s.A.unpin(t)}function x(t){s.A.pin(t)}function _(t){s.A.close(t)}function w(t){return O(t,s.U.PIN_PERSISTENCE)}function C(t){return O(t,s.U.SHOW_IN_TOOLBAR)}function S(t,e){j(t,s.U.SHOW_IN_TOOLBAR,e)}function E(t){s.A.onHubPrefChanged.addListener(t)}function O(t,e){return new Promise((n=>{s.A.getHubPref(t,e,(t=>n(t)))}))}function j(t,e,n){s.A.setHubPref(t,e,n)}function P(t,e){const n=o.sF.get(t);if(!n)return;const r=`Microsoft.Hub.HeaderActions.${n}`;(0,a.et)(r,e,o.i8.NUM_VALUES)}function k(t){return new Promise((e=>{s.A.getData(t,(t=>{Object.assign(window.hubData,t),e()}))}))}function I(){return window.location.pathname.includes(u.hubPath)}function T(t){return new Promise(((e,n)=>{const i=window.setInterval((()=>{if(!t||!t.current)return window.clearInterval(i),void n();const o=r.findDOMNode(t.current);return o&&o.hasChildNodes?o.hasChildNodes()?(window.clearInterval(i),void e(o)):void 0:(window.clearInterval(i),void n())}),20)}))}function A(){$("splash-content")}function D(){$("splash-header")}function R(){$("splash-root")}function $(t){const e=document.getElementById(t);e&&(e.style.opacity="0")}},53843:(t,e,n)=>{"use strict";n.d(e,{O:()=>r});const r=window.chrome.management},54239:(t,e,n)=>{"use strict";if(n.d(e,{no:()=>i,o8:()=>o,C1:()=>s,Cb:()=>a,mw:()=>l,fU:()=>u}),/^(6(01|72|75)|(14|20|5|88)5|22|571|908|991)$/.test(n.j))var r=n(74714);function i(t,e,n,r){e.preventDefault();const i=c(e);i.location.y=Math.floor(n),s(t,i,r)}function o(t,e,n){e.preventDefault(),s(t,c(e),n)}function s(t,e,n){r.JN.showMenu(t,e,JSON.stringify(n))}function a(t){return 2===t.button?r.PO.MOUSE:r.PO.KEYBOARD}function l(t,e,n){const r={location:{x:Math.floor(t),y:Math.floor(e)}};return void 0!==n&&(r.anchorPosition=n),r}function c(t,e){const n=l(t.clientX,t.clientY,e);return n.sourceType=a(t),n}function u(){return{type:r.qG.SEPARATOR}}},45363:(t,e,n)=>{"use strict";n.d(e,{xV:()=>r,so:()=>i,et:()=>o,f:()=>s,GY:()=>a,nM:()=>l,tK:()=>c});const r=window.chrome;let i;function o(t,e,n){r.metricsPrivate.recordEnumerationValue(t,e,n)}function s(t){r.metricsPrivate.recordUserAction(t)}function a(t,e){r.metricsPrivate.recordCount(t,e)}function l(t,e){r.metricsPrivate.recordBoolean(t,e)}function c(t,e){r.metricsPrivate.recordValue(t,e)}!function(t){t.HISTOGRAM_LOG="histogram-log",t.HISTOGRAM_LINEAR="histogram-linear"}(i||(i={}))},45707:(t,e,n)=>{"use strict";function r(t){const e=parseInt(t,10);return new Date(e/1e3-116444736e5)}n.d(e,{l:()=>r})},62588:(t,e,n)=>{"use strict";n.d(e,{E:()=>r});const r=window.chrome},71979:(t,e,n)=>{"use strict";n.d(e,{E:()=>a,HX:()=>l,be:()=>c,AG:()=>u,Dt:()=>d,OU:()=>p,xA:()=>h,Yo:()=>f,x:()=>g,Ri:()=>v,Bd:()=>b});var r=n(89526);if(/^(205|908)$/.test(n.j))var i=n(45191);if(/^(205|908)$/.test(n.j))var o=n(1858);if(/^(205|908)$/.test(n.j))var s=n(3117);function a(t){chrome.tabs.update({url:t,active:!0})}function l(t,e){chrome.tabs.create({url:t,active:e})}function c(t,e=-1){t.forEach(((t,n)=>{l(t,n===e)}))}function u(t,e=!1){chrome.windows.create({url:t,incognito:e})}function d(t){return t.nativeEvent instanceof MouseEvent&&(2===t.nativeEvent.which||1===t.nativeEvent.button)}let p;function h(t){if(!t)return p.CurrentTab;const e=s.pz.valueExists("is_macosx")&&!0===s.pz.getBoolean("is_macosx"),n=t.ctrlKey,r=t.shiftKey,i=e&&t.metaKey,o=d(t);return n||i||o?r?p.NewTabActive:p.NewTabNotActive:r?p.NewWindow:p.CurrentTab}function f(t,e){const n=t.filter((t=>""!==t&&null!=t));n.length>0&&(e.ctrlKey?c(n):e.shiftKey?u(n):c(n,0))}function g(t,e){const n=h(e);switch(n){case p.NewTabActive:l(t,!0);break;case p.NewTabNotActive:l(t,!1);break;case p.NewWindow:u(t,!1);break;case p.CurrentTab:default:a(t)}return n}function v(t,e){const n=h(e);switch(n){case p.NewTabActive:c(t,t.length-1);break;case p.NewTabNotActive:c(t);break;case p.NewWindow:u(t,!1)}return n}function b(t,e,n,s,a,l,c=!1){t.length>=o.ZH?l(s(r.createElement(i.Z,{title:e.getString("openDialogTitle"),dialogText:e.getStringF("shouldOpenAll",t.length),confirmText:e.getString("confirmMessageBoxYes"),rejectText:e.getString("confirmMessageBoxNo"),handleConfirm:function(){n(),l(a())},handleReject:function(){l(a())},isHubPopup:c}))):n()}!function(t){t[t.NewTabActive=0]="NewTabActive",t[t.NewTabNotActive=1]="NewTabNotActive",t[t.CurrentTab=2]="CurrentTab",t[t.NewWindow=3]="NewWindow"}(p||(p={}))},77462:(t,e,n)=>{"use strict";function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}n.d(e,{Z:()=>r})},61416:(t,e,n)=>{"use strict";function r(){return(r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}n.d(e,{Z:()=>r})},45177:(t,e,n)=>{"use strict";function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}n.d(e,{Z:()=>r})},93661:(t,e,n)=>{"use strict";function r(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}n.d(e,{Z:()=>r})},66856:t=>{t.exports=function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}},34323:(t,e,n)=>{"use strict";n.d(e,{_$:()=>B});var r=n(89526),i=n(64829),o=n(9680),s=n(98415),a=n(18868),l=n(11754),c=n(9453);const u=r.createContext({onCellFocused:null,onCellKeyDown:null,dataGridState:null,dataGridProps:null});var d=n(37834),p=n(73961);class h extends l.Z{constructor(){super(...arguments),this.handledProps={managedClasses:void 0,rowData:void 0,columnDefinition:void 0,columnIndex:void 0},this.focusTarget=r.createRef(),this.defaultCellRenderFunction=(t,e,n,i,o)=>r.createElement("div",Object.assign({},i,{"data-cellid":n,className:e,style:{gridColumn:t.columnIndex}}),t.rowData[t.columnDefinition.columnDataKey]),this.isFocusCell=()=>null!==this.context&&(this.props.rowData[this.context.dataGridProps.dataRowKey]===this.context.dataGridState.focusRowKey&&this.props.columnDefinition.columnDataKey===this.context.dataGridState.focusColumnKey),this.handleKeyDown=t=>{this.context.onCellKeyDown(this.props,t)},this.handleFocus=t=>{const e=this.extractHtmlElement(this.focusTarget);null!==e&&e!==document.activeElement&&e.focus(),this.context.onCellFocused(this.props,t)},this.extractHtmlElement=t=>{if(t instanceof HTMLElement)return t;if(!(0,i.Z)(t.current)){if(t.current instanceof HTMLElement)return t.current;const e=p.findDOMNode(t.current);if(e instanceof HTMLElement)return e}return null}}render(){if((0,i.Z)(this.context)||(0,i.Z)(this.context.dataGridProps)||(0,i.Z)(this.props.columnDefinition))return null;const t={role:"gridcell",tabIndex:this.isFocusCell()?0:-1,onKeyDown:this.handleKeyDown,onFocus:this.handleFocus};return(0,i.Z)(this.props.columnDefinition.cell)?this.defaultCellRenderFunction(this.props,this.generateClassNames(),this.props.columnDefinition.columnDataKey,t,this.focusTarget):this.props.columnDefinition.cell(this.props,this.generateClassNames(),this.props.columnDefinition.columnDataKey,t,this.focusTarget)}generateClassNames(){return super.generateClassNames((0,d.A)(this.props.managedClasses.dataGridCell))}}h.defaultProps={rowData:null,columnDefinition:null,columnIndex:0,managedClasses:{}},h.displayName="DataGridCell",h.contextType=u,h.contextType=u;const f=h;var g=n(17657);class v extends l.Z{constructor(){super(...arguments),this.handledProps={rowData:void 0,gridTemplateColumns:void 0,gridRowPosition:void 0,rowIndex:void 0},this.renderCell=(t,e)=>r.createElement(f,{key:t.columnDataKey,columnDefinition:t,rowData:this.props.rowData,columnIndex:e+1,managedClasses:{dataGridCell:this.props.managedClasses.dataGridRow_cell}})}render(){if((0,i.Z)(this.context)||(0,i.Z)(this.context.dataGridProps))return null;const t=(0,i.Z)(this.props.rowData[this.context.dataGridProps.dataRowKey])?this.props.rowIndex:this.props.rowData[this.context.dataGridProps.dataRowKey];return r.createElement("div",{role:"row",className:this.generateClassNames(),"data-rowid":t,style:{height:(0,g.a)(this.props.gridRowPosition.height),position:"absolute",top:(0,g.a)(this.props.gridRowPosition.top),display:"grid",gridTemplateColumns:this.props.gridTemplateColumns}},this.renderCells())}generateClassNames(){const{dataGridRow:t,dataGridRow__focusWithin:e}=this.props.managedClasses;return super.generateClassNames((0,d.A)(t,[e,this.props.rowData[this.context.dataGridProps.dataRowKey]===this.context.dataGridState.focusRowKey]))}renderCells(){return this.context.dataGridProps.columnDefinitions.map(this.renderCell)}}v.defaultProps={managedClasses:{}},v.displayName="DataGridRow",v.contextType=u,v.contextType=u;const b=v;var m=n(26007),y=n(33832);const x="data-cellid",_="data-rowid";class w extends l.Z{constructor(t){super(t),this.handledProps={dataRowKey:void 0,gridData:void 0,columnDefinitions:void 0,itemHeight:void 0,itemHeightCallback:void 0,preloadBufferLength:void 0,managedClasses:void 0,defaultFocusColumnKey:void 0,defaultFocusRowKey:void 0},this.currentTemplateColumns="",this.openRequestAnimationFrame=null,this.viewportElement=r.createRef(),this.gridContainerElement=r.createRef(),this.direction=m.N.ltr,this.defaultRowIndex=0,this.isFocused=!1,this.focus=()=>{this.focusOnCell(this.state.focusRowKey,this.state.focusColumnKey)},this.renderRows=()=>{const t=[],e=this.state.renderedRangeEndIndex>this.props.gridData.length-1?this.props.gridData.length-1:this.state.renderedRangeEndIndex;for(let n=this.state.renderedRangeStartIndex;n<=e;n++)t.push(this.renderRow(this.props.gridData[n],n));return t},this.renderColumnHeader=(t,e)=>(0,i.Z)(t.header)?this.renderDefaultColumnHeader(t.title,t.columnDataKey,e,(0,o.Z)(this.props.managedClasses,"dataGrid_columnHeader","")):t.header(t.title,t.columnDataKey,e,(0,o.Z)(this.props.managedClasses,"dataGrid_columnHeader","")),this.renderDefaultColumnHeader=(t,e,n,i)=>r.createElement("div",{className:i,role:"columnheader",key:e,style:{gridColumn:n+1}},t),this.renderRow=(t,e)=>{const n=(0,i.Z)(t[this.props.dataRowKey])?e:t[this.props.dataRowKey],{dataGrid_row:o,dataGrid_row__focusWithin:s,dataGrid_cell:a}=this.props.managedClasses;return r.createElement(b,{key:n,rowIndex:e,rowData:t,gridTemplateColumns:this.currentTemplateColumns,gridRowPosition:this.rowPositions[e],managedClasses:{dataGridRow:o,dataGridRow__focusWithin:s,dataGridRow_cell:a}})},this.getRowPositions=t=>{const e=[];let n=0;for(let r=0,i=t.length;r<i;r++){const i="function"==typeof this.props.itemHeightCallback?this.props.itemHeightCallback(t[r],r,this.props.itemHeight):this.props.itemHeight,o=n+i;e.push({height:i,top:n,bottom:o}),n=o}return e},this.getGridTemplateColumns=()=>{let t="";return this.props.columnDefinitions.forEach((e=>{t=`${t} ${e.columnWidth}`})),t},this.requestFrame=()=>{null===this.openRequestAnimationFrame&&(this.openRequestAnimationFrame=window.requestAnimationFrame(this.gotAnimationFrame))},this.gotAnimationFrame=()=>{this.openRequestAnimationFrame=null,this.updateLayout()},this.viewportClientHeight=()=>this.viewportElement.current.clientHeight,this.viewportScrollTop=()=>this.viewportElement.current.scrollTop,this.updateLayout=()=>{if((0,i.Z)(this.viewportElement)||(0,i.Z)(this.viewportElement.current)||(0,i.Z)(this.gridContainerElement)||(0,i.Z)(this.gridContainerElement.current)||this.props.itemHeight<1)return;const t=this.rowPositions.length>0?this.rowPositions[this.rowPositions.length-1].bottom:0,e=this.props.itemHeight*this.getBufferLength();let n=Math.floor(this.viewportScrollTop()-e);const r=this.viewportClientHeight()>=2*this.props.itemHeight?this.viewportClientHeight():2*this.props.itemHeight;let o=Math.floor(this.viewportScrollTop()+r+e);n<0&&(n=0),o>t&&(o=t);const s=this.getThresholdRowIndex(this.rowPositions,0,n),a=this.getThresholdRowIndex(this.rowPositions,s,this.viewportScrollTop()),l=this.getThresholdRowIndex(this.rowPositions,a,this.viewportScrollTop()+this.viewportClientHeight()),c=this.getThresholdRowIndex(this.rowPositions,l,o);let u=this.getRowIndexByKey(this.state.focusRowKey);-1===u&&(u=this.defaultRowIndex);let d=this.getFocusRowKey(this.state.focusRowKey);u>l&&this.props.gridData.length>l?(d=this.props.gridData[l][this.props.dataRowKey],this.blurCurrentFocusCell()):u<a&&this.props.gridData.length>a&&(d=this.props.gridData[a][this.props.dataRowKey],this.blurCurrentFocusCell()),this.isFocused&&this.focusOnCell(d,this.state.focusColumnKey),this.setState({dataContainerHeight:t,focusRowKey:d,renderedRangeStartIndex:s,renderedRangeEndIndex:c,scrollBarWidth:this.viewportElement.current.offsetWidth-this.gridContainerElement.current.scrollWidth,isScrolling:this.viewportElement.current.scrollHeight>this.viewportClientHeight()})},this.blurCurrentFocusCell=()=>{(0,i.Z)(this.dataGridRef.current)||this.dataGridRef.current.contains(document.activeElement)&&document.activeElement.blur()},this.getThresholdRowIndex=(t,e,n)=>{if(0===t.length)return 0;let r=t.length-1;for(let i=e,o=t.length;i<o;i++){if(t[i].bottom>=n){r=i;break}}return r},this.getBufferLength=()=>{if(!(0,i.Z)(this.props.preloadBufferLength)&&this.props.preloadBufferLength>=0)return Math.floor(this.props.preloadBufferLength);if(!(0,i.Z)(this.viewportElement)&&!(0,i.Z)(this.viewportElement.current)){const t=Math.ceil(this.viewportClientHeight()/this.props.itemHeight);return t>1?t:1}return 1},this.handleScroll=()=>{this.requestFrame()},this.handleGridFocus=t=>{this.isFocused||(this.isFocused=!0)},this.handleGridBlur=t=>{const e=this.dataGridRef.current;e&&!e.contains(t.relatedTarget)&&(this.isFocused=!1)},this.handleCellKeyDown=(t,e)=>{if(!e.defaultPrevented)switch(e.keyCode){case y.mW.arrowDown:e.preventDefault(),this.incrementFocusRow(1);break;case y.mW.arrowRight:this.incrementFocusColumn(1),e.preventDefault();break;case y.mW.arrowUp:this.incrementFocusRow(-1),e.preventDefault();break;case y.mW.arrowLeft:this.incrementFocusColumn(-1),e.preventDefault();break;case y.mW.pageDown:this.incrementFocusRow(this.getPageHeightInRows()),e.preventDefault();break;case y.mW.pageUp:this.incrementFocusRow(-this.getPageHeightInRows()),e.preventDefault();break;case y.mW.home:e.ctrlKey?this.incrementFocusRow(-this.props.gridData.length):this.incrementFocusColumn(-this.props.columnDefinitions.length),e.preventDefault();break;case y.mW.end:e.ctrlKey?this.incrementFocusRow(this.props.gridData.length):this.incrementFocusColumn(this.props.columnDefinitions.length),e.preventDefault()}},this.getPageHeightInRows=()=>(0,i.Z)(this.viewportElement.current)?1:Math.ceil(this.viewportClientHeight()/this.props.itemHeight),this.incrementFocusRow=t=>{let e=this.getRowIndexByKey(this.state.focusRowKey);-1===e&&(e=0);let n=e+t;n<0?n=0:n>=this.props.gridData.length&&(n=this.props.gridData.length-1);const r=this.props.gridData[n][this.props.dataRowKey],o=this.domChildren(this.gridContainerElement.current);let s=o.find((t=>t.getAttribute(_)===r));(0,i.Z)(s)&&(s=t>0?o[o.length-1]:o[0]);const a=this.domChildren(s).find((t=>t.getAttribute(x)===this.state.focusColumnKey));(0,i.Z)(a)||a.focus()},this.incrementFocusColumn=t=>{this.updateDirection();const e=this.direction===m.N.ltr?1:-1;let n=this.getColumnIndexByKey(this.state.focusColumnKey);-1===n&&(n=0);let r=n+t*e;r<0?r=0:r>=this.props.columnDefinitions.length&&(r=this.props.columnDefinitions.length-1);const o=this.props.columnDefinitions[r].columnDataKey,s=this.getRowElementByKey(this.state.focusRowKey);if((0,i.Z)(s))return;const a=this.getCellElementByKey(o,s);a instanceof HTMLElement&&a.focus()},this.getRowElementByKey=t=>{if((0,i.Z)(this.gridContainerElement)||(0,i.Z)(this.gridContainerElement.current))return null;return this.domChildren(this.gridContainerElement.current).find((e=>e.getAttribute(_)===t))},this.getCellElementByKey=(t,e)=>{if((0,i.Z)(e))return null;return this.domChildren(e).find((e=>e.getAttribute(x)===t))},this.focusOnCell=(t,e)=>{const n=this.getRowElementByKey(t);if((0,i.Z)(n))return;const r=this.getCellElementByKey(e,n);r instanceof HTMLElement&&r.focus()},this.domChildren=t=>(0,c.N)()&&this.gridContainerElement.current instanceof HTMLElement?Array.from(t.children):[],this.getColumnIndexByKey=t=>this.props.columnDefinitions.findIndex((e=>e.columnDataKey===t)),this.getRowIndexByKey=t=>{const e=this.props.gridData.findIndex((e=>e[this.props.dataRowKey]===t));return-1===e?Math.min(this.defaultRowIndex,this.props.gridData.length-1):e},this.getFocusRowKey=t=>{if(-1===this.props.gridData.findIndex((e=>e[this.props.dataRowKey]===t))&&this.props.gridData.length>0){const t=Math.min(this.defaultRowIndex,this.props.gridData.length-1);return this.props.gridData[t][this.props.dataRowKey]}return t},this.handleCellFocus=(t,e)=>{e.defaultPrevented||(this.defaultRowIndex=this.getRowIndexByKey(t.rowData[this.props.dataRowKey]),this.setState({focusRowKey:t.rowData[this.props.dataRowKey],focusColumnKey:t.columnDefinition.columnDataKey}))},this.updateDirection=()=>{if(null===this.viewportElement.current)return;const t=this.viewportElement.current.closest("[dir]");this.direction=null!==t&&"rtl"===t.getAttribute("dir").toLowerCase()?m.N.rtl:m.N.ltr},this.handleViewportResize=t=>{this.requestFrame()},this.updateRowPositions=(0,s.Z)(this.getRowPositions),this.rowPositions=this.updateRowPositions(this.props.gridData),this.dataGridRef=r.createRef();let e="";this.props.gridData.length>0&&(e=(0,i.Z)(this.props.defaultFocusRowKey)||-1===this.getRowIndexByKey(this.props.defaultFocusRowKey)?this.props.gridData[this.defaultRowIndex][this.props.dataRowKey]:this.props.defaultFocusRowKey);let n="";this.props.columnDefinitions.length>0&&(n=(0,i.Z)(this.props.defaultFocusColumnKey)||-1===this.getColumnIndexByKey(this.props.defaultFocusColumnKey)?this.props.columnDefinitions[0].columnDataKey:this.props.defaultFocusColumnKey),this.state={dataContainerHeight:this.props.gridData.length>0?this.rowPositions[this.rowPositions.length-1].bottom:0,renderedRangeStartIndex:0,renderedRangeEndIndex:0,isScrolling:!1,scrollBarWidth:0,focusColumnKey:n,focusRowKey:e}}render(){const{dataGrid_viewport:t,dataGrid_gridContainer:e}=this.props.managedClasses;return this.currentTemplateColumns=this.getGridTemplateColumns(),this.rowPositions=this.updateRowPositions(this.props.gridData),r.createElement(u.Provider,{value:{onCellFocused:this.handleCellFocus,onCellKeyDown:this.handleCellKeyDown,dataGridState:this.state,dataGridProps:this.props}},r.createElement("div",Object.assign({},this.unhandledProps(),{className:this.generateClassNames(),role:"grid",tabIndex:-1,onFocus:this.handleGridFocus,onBlur:this.handleGridBlur,ref:this.dataGridRef}),this.renderGridHeader(),r.createElement("div",{className:(0,d.A)(t),ref:this.viewportElement},r.createElement("div",{className:(0,d.A)(e),ref:this.gridContainerElement,style:{position:"relative",height:`${this.state.dataContainerHeight}px`}},this.renderRows()))))}componentDidMount(){(0,i.Z)(this.viewportElement.current)||(this.viewportElement.current.addEventListener("scroll",this.handleScroll),window.ResizeObserver&&(this.resizeDetector=new window.ResizeObserver(this.handleViewportResize),this.resizeDetector.observe(this.viewportElement.current))),this.updateLayout()}componentWillUnmount(){(0,i.Z)(this.viewportElement.current)||(this.viewportElement.current.removeEventListener("scroll",this.handleScroll),window.ResizeObserver&&(this.resizeDetector.unobserve(this.viewportElement.current),this.resizeDetector.disconnect(),this.resizeDetector=null))}componentDidUpdate(t){(0,a.Z)(t.gridData,this.props.gridData)&&t.itemHeight===this.props.itemHeight||this.updateLayout()}generateClassNames(){const{dataGrid:t,dataGrid__isScrolling:e}=this.props.managedClasses;return super.generateClassNames((0,d.A)(t,[e,this.state.isScrolling]))}renderGridHeader(){return r.createElement("div",{className:(0,d.A)(this.props.managedClasses.dataGrid_header),role:"row",style:{marginRight:this.state.scrollBarWidth,display:"grid",gridTemplateColumns:this.currentTemplateColumns}},this.props.columnDefinitions.map(this.renderColumnHeader))}}w.defaultProps={itemHeight:33,managedClasses:{}},w.displayName="DataGrid";const C=w;var S=n(76908),E=n(51094),O=n(54141),j=n(53363),P=n(89827),k=n(57167),I=n(4921),T=n(61466),A=n(47436),D=n(64197),R=n(23366),$=n(42130);const N={dataGrid:{display:"flex","flex-direction":"column","justify-content":"flex-start",[S.xE]:Object.assign({},S.a8),"& $dataGrid_header, $dataGrid_cell":Object.assign({},S.KP)},dataGrid_header:Object.assign(Object.assign(Object.assign({color:E.CH,fill:E.CH,height:(0,O.Cb)()},(0,j.Sh)("t7")),(0,P.cg)()),{"border-bottom":(0,D.WU)("{0} solid {1}",(0,g.a)(k.bu),I.L$)}),dataGrid_columnHeader:Object.assign(Object.assign({height:"100%","box-sizing":"border-box",overflow:"hidden",padding:(0,D.WU)("0 {0}",(0,O.wb)(0))},(0,R.L)()),{"line-height":"26px"}),dataGrid_viewport:{height:"100%",width:"100%","overflow-y":"auto","overflow-x":"hidden"},dataGrid_gridContainer:{},dataGrid__isScrolling:{},dataGrid_row:{padding:"1px 0","box-sizing":"border-box",width:"100%","border-bottom":(0,D.WU)("{0} solid {1}",(0,g.a)(k.bu),I.L$)},dataGrid_row__focusWithin:{},dataGrid_cell:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:E.CH,fill:E.CH,"box-sizing":"border-box",overflow:"hidden",padding:(0,D.WU)("0 {0}",(0,O.wb)(0))},(0,R.L)()),(0,j.Sh)("t7")),(0,T.u0)()),(0,T.Ee)()),(0,$.F0)({"border-color":A.F,[S.xE]:{"border-color":S.YP.selectedBackground}})),{"line-height":"26px"})};const B=(0,n(17332).ZP)(N)(C)},46535:(t,e,n)=>{"use strict";n.d(e,{e:()=>o,f:()=>s});var r=n(10384);if(571==n.j)var i=n(60567);const o=Object.assign({},r.ZP,{glyphFontFamily:""}),s=t=>(0,i.b)(o)(t)},3878:(t,e,n)=>{"use strict";if(n.d(e,{MicroFeedback:()=>i.N}),571==n.j)var r=n(93834);if(n.o(r,"MicroFeedback")&&n.d(e,{MicroFeedback:function(){return r.MicroFeedback}}),571==n.j)var i=n(63283)},93834:(t,e,n)=>{"use strict";var r=n(17332),i=n(28850),o=n(29263);if(571==n.j)var s=n(15576);n.o(s,"MicroFeedback")&&n.d(e,{MicroFeedback:function(){return s.MicroFeedback}});(0,r.ZP)(o.Z)(i.Z)},28850:(t,e,n)=>{"use strict";n.d(e,{Z:()=>l});var r=n(89526),i=n(61168),o=n(11754),s=n(37834);class a extends o.Z{constructor(){super(...arguments),this.handledProps={after:void 0,before:void 0,defaultFocus:void 0,focusRef:void 0,isDragHovered:void 0,content:void 0,managedClasses:void 0,selected:void 0,onFocus:void 0},this.renderBeforeSection=()=>"object"==typeof this.props.before&&this.props.before.length?r.createElement("div",{className:(0,s.A)(this.props.managedClasses.listItemCard_beforeContainer)},this.props.before.map((t=>t("")))):null,this.renderMainText=()=>"function"==typeof this.props.content?r.createElement("div",{className:(0,s.A)(this.props.managedClasses.listItemCard_contentContainer)},this.props.content("")):null,this.renderAfterSection=()=>"object"==typeof this.props.after&&this.props.after.length>0?r.createElement("div",{className:(0,s.A)(this.props.managedClasses.listItemCard_afterContainer)},this.props.after.map((t=>t("")))):null}render(){const t=this.props.selected||this.props.defaultFocus?0:-1;return r.createElement(i.Zb,Object.assign({},this.unhandledProps(),{className:this.generateClassNames()}),r.createElement("div",{tabIndex:t,onFocus:this.props.onFocus,className:(0,s.A)(this.props.managedClasses.listItemCard_focusWrapper),ref:this.props.focusRef},this.renderBeforeSection(),this.renderMainText(),this.renderAfterSection()))}generateClassNames(){const{listItemCard:t,listItemCard_selected:e,listItemCard_dragHovered:n}=this.props.managedClasses;return super.generateClassNames((0,s.A)(t,[e,this.props.selected],[n,this.props.isDragHovered]))}}a.defaultProps={managedClasses:{}};const l=571==n.j?a:null},15576:()=>{},29263:(t,e,n)=>{"use strict";if(n.d(e,{Z:()=>p}),571==n.j)var r=n(17657);if(571==n.j)var i=n(64197);if(571==n.j)var o=n(23366);if(571==n.j)var s=n(9748);if(571==n.j)var a=n(76908);if(571==n.j)var l=n(4921);if(571==n.j)var c=n(46535);if(571==n.j)var u=n(61466);if(571==n.j)var d=n(94048);const p=571==n.j?t=>{const e=(0,c.f)(t);return{listItemCard:Object.assign(Object.assign({"z-index":"2"},(0,u.us)()),{"background-color":e.backgroundColor,overflow:"hidden",position:"relative",width:(0,r.a)(820),height:"unset","min-height":(0,r.a)(40),transition:"all 50ms linear 0ms","&:not($listItemCard_selected):not($listItemCard_dragHovered):hover":Object.assign({},(0,s.jf)(s.Y3.e8)),"&:focus":{outline:"none"}}),listItemCard_focusWrapper:{display:"flex","align-items":"center","&:focus":{outline:"none"}},listItemCard_selected:{"box-shadow":"0px 0px 0px 1.5px "+(0,d.Av)(e),[a.xE]:Object.assign(Object.assign({},a.a8),{background:a.YP.buttonBackground,"border-color":a.YP.selectedBackground,"box-shadow":(0,i.WU)(`0 0 0 1.5px ${a.YP.selectedBackground}`)})},listItemCard_dragHovered:{"box-shadow":"0px 0px 35px 1.5px inset "+(0,l.yD)(e)},listItemCard_beforeContainer:{display:"flex","align-items":"center","justify-content":"center",height:(0,r.a)(40),padding:"0 12px 0 12px"},listItemCard_contentContainer:Object.assign({flex:"1",display:"flex"},(0,o.L)()),listItemCard_afterContainer:Object.assign({display:"flex","justify-content":"flex-end","align-items":"center",flex:"1","min-width":"0px"},(0,o.L)())}}:null},63283:(t,e,n)=>{"use strict";n.d(e,{N:()=>ct});var r=n(89526),i=n(73961),o=n(11754),s=n(2483),a=n(82117),l=n(14895),c=n(92588),u=n(90305),d=n(17332),p=n(64197),h=n(17657),f=n(61466),g=n(57167),v=n(9748),b=n(76908),m=n(18488);const y={contextMenu:Object.assign(Object.assign(Object.assign({background:m.s5},(0,f.h9)()),(0,v.jf)(v.Y3.e11)),{margin:"0",padding:(0,p.WU)("{0} 0",(0,h.a)(g._5)),"max-width":"368px","min-width":"64px",transition:"all 0.2s ease-in-out",[b.xE]:Object.assign(Object.assign({},b.a8),{background:b.YP.buttonBackground,border:(0,p.WU)("{0} solid {1}",(0,h.a)(g.bu),(()=>b.YP.buttonText))})})};var x=n(65190),_=n(66399),w=n(71388);class C extends o.Z{constructor(){super(...arguments),this.handledProps={children:void 0,managedClasses:void 0,enableAutoFocus:void 0}}render(){return r.createElement(w.ZP,{value:m.s5,tag:null},r.createElement(x.ZP,Object.assign({},this.unhandledProps(),{enableAutoFocus:this.props.enableAutoFocus,managedClasses:this.props.managedClasses}),this.props.children))}}C.displayName=`${_.k}ContextMenu`,C.defaultProps={managedClasses:{}};const S=C,E=(0,d.ZP)(y)(S);var O=n(51045),j=n(42130),P=n(97682),k=n(51094),I=n(47436),T=n(19652),A=n(54141),D=n(25491),R=n(53363);const $={contextMenuItem:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({"list-style-type":"none","box-sizing":"border-box",height:(0,A.Cb)(),display:"grid","grid-template-columns":(0,p.WU)("{0} auto {0}",(0,h.a)((0,O.IH)((0,A.mw)(-2),16,(0,A.mw)()))),"grid-template-rows":"auto","justify-items":"center","align-items":"center",padding:"0",margin:(0,p.WU)("0 {0}",(0,h.a)(g._5)),color:k.CH,fill:k.CH,"white-space":"nowrap",overflow:"hidden"},(0,P.$C)()),(0,R.Sh)("t7")),(0,f.u0)()),(0,f.Ee)()),(0,j.F0)({"border-color":I.F,[b.xE]:{color:b.YP.selectedText,fill:b.YP.selectedText,background:b.YP.selectedBackground,"box-shadow":(0,p.WU)("0 0 0 {0} inset {1}",(0,h.a)(g.Db),(()=>b.YP.buttonText))}})),{"&:hover":Object.assign({background:T.Qp},b.T),"&:active":Object.assign({background:T.sG},b.T)}),b.D0),contextMenuItem_contentRegion:{"grid-column-start":"2","justify-self":"start",overflow:"hidden","text-overflow":"ellipsis"},contextMenuItem__disabled:Object.assign(Object.assign(Object.assign({},(0,D.M)()),b.C_),{"&:hover":Object.assign({},b.C_)}),contextMenuItem_glyphContainer:{display:"flex","align-items":"center","justify-content":"center","min-width":"20px","min-height":"20px"}};var N=n(81634),B=n(37834);class F extends o.Z{constructor(){super(...arguments),this.handledProps={after:void 0,before:void 0}}render(){return r.createElement(N.ZP,Object.assign({},this.unhandledProps()),void 0!==this.props.before?r.createElement("div",{className:this.props.managedClasses.contextMenuItem_glyphContainer},this.props.before):void 0,r.createElement("span",{className:(0,B.A)(this.props.managedClasses.contextMenuItem_contentRegion)},this.props.children),void 0!==this.props.after?r.createElement("div",{className:this.props.managedClasses.contextMenuItem_glyphContainer},this.props.after):void 0)}}F.displayName=`${_.k}ContextMenuItem`,F.defaultProps={managedClasses:{}};const L=F,M=(0,d.ZP)($)(L);var Z=n(10736),H=n(14981);class z extends H.Z{constructor(){super(...arguments),this.handledProps={managedClasses:void 0,titleText:void 0}}render(){return r.createElement("svg",Object.assign({},this.unhandledProps()),this.renderTitleText(this.props),r.createElement("path",{d:"M1856 640q39 0 74 15t61 41 42 61 15 75q0 32-10 61l-256 768q-10 29-28 53t-42 42-52 26-60 10h-512q-179 0-345-69-72-29-144-44t-151-15H0V768h417q65 0 122-24t104-70l622-621q25-25 50-39t61-14q33 0 62 12t51 35 34 51 13 62q0 81-18 154t-53 146q-20 43-34 87t-19 93h444z"}))}}z.defaultProps={viewBox:"0 0 2048 2048",width:"16px",height:"16px",xmlns:"http://www.w3.org/2000/svg"};class U extends H.Z{constructor(){super(...arguments),this.handledProps={managedClasses:void 0,titleText:void 0}}render(){return r.createElement("svg",Object.assign({},this.unhandledProps()),this.renderTitleText(this.props),r.createElement("path",{d:"M1856 640q39 0 74 15t61 41 42 61 15 75q0 32-10 61l-256 768q-10 29-28 53t-42 42-52 26-60 10h-512q-179 0-345-69-72-29-144-44t-151-15H0V768h417q65 0 122-24t104-70l622-621q25-25 50-39t61-14q33 0 62 12t51 35 34 51 13 62q0 81-18 154t-53 146q-20 43-34 87t-19 93h444zm-256 1024q20 0 37-12t24-32q5-14 18-54t33-96 42-124 46-137 44-134 39-118 27-86 10-39q0-26-19-45t-45-19h-576q0-53 2-98t10-89 22-86 37-91q28-58 42-118t15-126q0-14-9-23t-23-9q-6 0-10 4t-9 9L734 765q-32 32-68 56t-78 41q-80 34-171 34H128v640h320q178 0 345 69 144 59 295 59h512z"}))}}U.defaultProps={viewBox:"0 0 2048 2048",width:"16px",height:"16px",xmlns:"http://www.w3.org/2000/svg"};class W extends H.Z{constructor(){super(...arguments),this.handledProps={managedClasses:void 0,titleText:void 0}}render(){return r.createElement("svg",Object.assign({},this.unhandledProps()),this.renderTitleText(this.props),r.createElement("path",{d:"M960 256q178 0 345 69 72 29 144 44t151 15h448v896h-417q-65 0-122 24t-104 70l-622 621q-25 25-50 39t-61 14q-33 0-62-12t-51-35-34-51-13-62q0-81 18-154t53-146q20-43 34-87t19-93H192q-39 0-74-15t-61-41-42-61-15-75q0-32 10-61l256-768q20-59 70-95t112-36h512z"}))}}W.defaultProps={viewBox:"0 0 2048 2048",width:"16px",height:"16px",xmlns:"http://www.w3.org/2000/svg"};class G extends H.Z{constructor(){super(...arguments),this.handledProps={managedClasses:void 0,titleText:void 0}}render(){return r.createElement("svg",Object.assign({},this.unhandledProps()),this.renderTitleText(this.props),r.createElement("path",{d:"M960 256q178 0 345 69 72 29 144 44t151 15h448v896h-417q-65 0-122 24t-104 70l-622 621q-25 25-50 39t-61 14q-33 0-62-12t-51-35-34-51-13-62q0-81 18-154t53-146q20-43 34-87t19-93H192q-39 0-74-15t-61-41-42-61-15-75q0-32 10-61l256-768q20-59 70-95t112-36h512zm960 256h-320q-179 0-345-69-144-59-295-59H448q-20 0-37 12t-24 32q-5 14-18 54t-33 96-42 124-46 137-44 134-39 118-27 86-10 39q0 26 19 45t45 19h576q0 53-2 98t-10 89-22 86-37 91q-28 58-42 118t-15 126q0 14 9 23t23 9q6 0 10-4t9-9l623-624q32-32 68-56t78-41q80-34 171-34h289V512z"}))}}G.defaultProps={viewBox:"0 0 2048 2048",width:"16px",height:"16px",xmlns:"http://www.w3.org/2000/svg"};var V,q=n(53059),K=n(33832),Y=n(8641),Q=n(78943),X=n.n(Q),J=n(9453);!function(t){t[t.unknown=0]="unknown",t[t.escaped_click=1]="escaped_click",t[t.escaped_keyboard=2]="escaped_keyboard"}(V||(V={}));class tt extends o.Z{constructor(t){super(t),this.handledProps={managedClasses:void 0,hideBeak:void 0,onDismiss:void 0,anchor:void 0,viewport:void 0},this.handleDismiss=t=>{!this.dismissed&&(0,J.N)()&&(this.dismissed=!0,this.props.onDismiss&&"function"==typeof this.props.onDismiss&&this.props.onDismiss(t))},this.handleWindowClick=t=>{const e=this.props.anchor instanceof HTMLElement?this.props.anchor:this.props.anchor.current;"function"!=typeof this.props.onDismiss||i.findDOMNode(this.rootElement.current).contains(t.target)||i.findDOMNode(e).contains(t.target)||this.handleDismiss(V.escaped_click)},this.handleWindowKeyDown=t=>{"function"==typeof this.props.onDismiss&&t.keyCode===K.Lp&&this.handleDismiss(V.escaped_keyboard)},this.focusOnFirstElement=()=>{if(this.rootElement.current instanceof HTMLElement){const t=X()(this.rootElement.current);0===t.length?this.tryFocusOnRootElement():t[0].focus()}},this.tryFocusOnRootElement=()=>{this.rootElement.current instanceof HTMLElement&&this.rootElement.current.focus()},this.rootElement=r.createRef(),this.dismissed=!1}render(){const{callout_container:t,callout_inner:e,callout_main:n}=this.props.managedClasses,{children:i,anchor:o,viewport:s,horizontalPositioningMode:a,verticalPositioningMode:l}=this.props;return r.createElement("div",{className:t},r.createElement(Y.ZP,Object.assign({},this.unhandledProps(),{ref:this.rootElement,verticalPositioningMode:l,horizontalPositioningMode:a,anchor:o,viewport:s,managedClasses:this.generateManagedClassNames()}),r.createElement("div",{className:e},this.renderBeak(),r.createElement(w.ZP,{value:m.s5,drawBackground:!1,role:"listbox",className:n},i))))}componentDidMount(){const{onDismiss:t}=this.props;(0,J.N)()&&(t&&(window.addEventListener("keydown",this.handleWindowKeyDown),window.addEventListener("click",this.handleWindowClick)),this.focusOnFirstElement())}componentDidUpdate(t){(0,J.N)()&&(!t.onDismiss&&this.props.onDismiss?(window.addEventListener("keydown",this.handleWindowKeyDown),window.addEventListener("click",this.handleWindowClick)):t.onDismiss&&!this.props.onDismiss&&(window.removeEventListener("keydown",this.handleWindowKeyDown),window.removeEventListener("click",this.handleWindowClick)))}componentWillUnmount(){(0,J.N)()&&(window.removeEventListener("keydown",this.handleWindowKeyDown),window.removeEventListener("click",this.handleWindowClick),this.handleDismiss(V.unknown))}renderBeak(){const{callout_beakCurtain:t,callout_beak:e}=this.props.managedClasses;return this.props.hideBeak?r.createElement("div",{className:t}):r.createElement(r.Fragment,null,r.createElement("div",{className:e}),r.createElement("div",{className:t}))}generateManagedClassNames(){const{callout:t,callout__top:e,callout__bottom:n,callout__left:r,callout__right:i,callout__horizontalInset:o,callout__verticalInset:s}=this.props.managedClasses;return{viewportPositioner:t,viewportPositioner__top:e,viewportPositioner__bottom:n,viewportPositioner__left:r,viewportPositioner__right:i,viewportPositioner__horizontalInset:o,viewportPositioner__verticalInset:s}}}tt.defaultProps={managedClasses:{},verticalPositioningMode:Z.tg.adjacent,horizontalPositioningMode:Z.tg.inset};const et=tt,nt={"@keyframes slideIn":{from:{opacity:"0"},to:{transform:"translate3d(0, 0, 0)",opacity:1}},callout:{width:"max-content",height:"max-content",contain:"layout"},callout_container:{width:"0",height:"0"},callout_inner:Object.assign(Object.assign(Object.assign({position:"relative","z-index":"1","animation-name":"slideIn","animation-timing-function":"cubic-bezier(.1,.9,.2,1)","animation-duration":"0.367s","animation-fill-mode":"forwards"},b.yf),(0,f.h9)()),(0,v.jf)(v.Y3.e11)),callout_beak:Object.assign({width:(0,h.a)((0,O.cs)((0,A.iY)(),2)),height:(0,h.a)((0,O.cs)((0,A.iY)(),2)),"background-color":m.s5,transform:"rotate(45deg)",position:"absolute",border:"inherit"},(0,v.jf)(v.Y3.e11)),callout__top:{"& $callout_beak":{bottom:(0,h.a)((0,O.cs)((0,A.iY)(),-4))},"& > $callout_inner":{transform:"translate3d(0, 20px, 0)"}},callout__bottom:{"& $callout_beak":{top:(0,h.a)((0,O.cs)((0,A.iY)(),-4))},"& > $callout_inner":{transform:"translate3d(0, -20px, 0)"}},callout__left:{"& $callout_beak":{right:(0,h.a)((0,O.cs)((0,A.iY)(),-4))}},callout__right:{"& $callout_beak":{left:(0,h.a)((0,O.cs)((0,A.iY)(),-4))}},callout__horizontalInset:{"& $callout_beak":{"margin-right":(0,h.a)((0,O.IH)(A.en,g._5)),"margin-left":(0,h.a)((0,O.IH)(A.en,g._5))}},callout__verticalInset:{"& $callout_beak":{"margin-top":(0,h.a)((0,O.cs)((0,A.iY)(),2)),"margin-bottom":(0,h.a)((0,O.cs)((0,A.iY)(),2))}},callout_beakCurtain:Object.assign({position:"absolute","background-color":m.s5,top:"0",bottom:"0",left:"0",right:"0"},(0,f.h9)()),callout_main:{position:"relative",padding:(0,A.wb)(g._5)}},rt=(0,d.ZP)(nt)(et),it={heading:{height:(0,A.Cb)(),display:"grid",userSelect:"all","align-items":"center",margin:(0,p.WU)("0 {0}",(0,A.wb)((0,O.$X)(0,g._5)))}},ot={contextMenu:{"box-shadow":"none",padding:"0",[b.xE]:{border:"0"},'& > [role="menuitem"]':{"white-space":"normal",height:"auto",padding:(0,h.a)(g._5)}}};class st extends o.Z{constructor(t){super(t),this.handledProps={promptId:void 0,managedClasses:void 0,likeButtonTitle:void 0,dislikeButtonTitle:void 0,thanksText:void 0,likeFollowUp:void 0,dislikeFollowUp:void 0,sendFeedback:void 0,sendFollowUpIndex:void 0,onFollowUpCancelled:void 0,renderFollowUp:void 0,vertical:void 0,inline:void 0},this.likeFollowUpId=(0,q.uniqueId)("likeFollowup"),this.dislikeFollowUpId=(0,q.uniqueId)("dislikeFollowup"),this.state={vote:"no_vote",isFollowUpVisible:!1,isThanksVisible:!1,likeButtonRef:r.createRef(),dislikeButtonRef:r.createRef()}}render(){const{likeFollowUp:t,dislikeFollowUp:e}=this.props,{microFeedback_buttonContainer:n}=this.props.managedClasses;return r.createElement("div",Object.assign({className:this.generateClassNames(),role:"group","aria-labelledby":this.props.promptId},this.unhandledProps()),r.createElement("div",{className:n},this.renderVoteButton("like",t)),r.createElement("div",{className:n},this.renderVoteButton("dislike",e)),this.renderThankYou(),this.renderFollowUp())}generateClassNames(){const{microFeedback:t,microFeedback__vertical:e,microFeedback__inline:n}=this.props.managedClasses;return super.generateClassNames((0,B.A)(t,[e,this.props.vertical],[n,this.props.inline]))}renderVoteButton(t,e){const n={style:{pointerEvents:"none"}};let i,o,a,l;"like"===t?(i=this.props.likeButtonTitle,o=this.likeFollowUpId,l=this.state.likeButtonRef,a="like"===this.state.vote?r.createElement(z,Object.assign({},n)):r.createElement(U,Object.assign({},n))):(i=this.props.dislikeButtonTitle,o=this.dislikeFollowUpId,l=this.state.dislikeButtonRef,a="dislike"===this.state.vote?r.createElement(W,Object.assign({},n)):r.createElement(G,Object.assign({},n)));const c=e?{"aria-controls":o}:{},u={button:{"min-width":(0,A.Cb)(),"max-width":"unset",padding:"0",margin:"0",width:(0,A.Cb)(),height:(0,A.Cb)()}};return r.createElement(s.XC,Object.assign({jssStyleSheet:u,title:i,onClick:()=>{this.showThanks(e,t),this.vote(t)},innerRef:l,"aria-pressed":this.state.vote===t},c),a)}vote(t){const{sendFeedback:e}=this.props,{vote:n}=this.state,r=n===t?"no_vote":t;this.setState({vote:r}),"no_vote"!==r?(e&&e(r),this.setState({isFollowUpVisible:!0})):this.setState({isFollowUpVisible:!1})}showThanks(t,e){this.state.isThanksVisible&&this.onThanksDismiss(),t||this.state.vote===e||this.onShowThanks()}calculateToastLength(t){return Math.max(2e3,500*t.split(/\s+/).length)}onShowThanks(){const{thanksText:t}=this.props;this.setState({isThanksVisible:!0}),this.timerHandle=setTimeout(this.hideThanksMessage.bind(this),this.calculateToastLength(t))}hideThanksMessage(){this.setState({isThanksVisible:!1})}onThanksDismiss(){clearTimeout(this.timerHandle),this.hideThanksMessage()}getButtonAnchor(){const{vote:t}=this.state;return"like"===t?this.state.likeButtonRef:this.state.dislikeButtonRef}renderThankYou(){const{thanksText:t}=this.props,{isThanksVisible:e}=this.state,n=this.getButtonAnchor();if(t&&e){const e=(0,q.uniqueId)("thanksText");return r.createElement(rt,Object.assign({hideBeak:!0,anchor:n,"aria-labelledby":e},this.getCalloutPositioningModes()),r.createElement(a.ZT,{id:e,size:l.H._7,jssStyleSheet:it,"aria-live":"assertive",role:"status"},t))}return r.createElement(r.Fragment,null)}renderFollowUp(){const{likeFollowUp:t,dislikeFollowUp:e,renderFollowUp:n}=this.props,{vote:i,isFollowUpVisible:o}=this.state;let s=this.state.likeButtonRef,a=t,l=this.likeFollowUpId;return"dislike"===i&&(s=this.state.dislikeButtonRef,a=e,l=this.dislikeFollowUpId),o&&a?n?n(s,l,a):this.renderDefaultFollowUp(s,l,a):r.createElement(r.Fragment,null)}onHideFollowUp(){this.setState({isFollowUpVisible:!1})}renderDefaultFollowUp(t,e,n){const{sendFollowUpIndex:o,onFollowUpCancelled:s}=this.props,{microFeedback_callout:a}=this.props.managedClasses,l=(t,e)=>{t.preventDefault(),this.onHideFollowUp(),void 0!==e&&n&&(o&&o(n.type,e),this.onShowThanks())},d=(0,q.uniqueId)("followup-heading");return r.createElement(rt,Object.assign({className:a,id:e,onDismiss:()=>{if(s&&(s(this.state.vote),t&&t.current)){const e=i.findDOMNode(t.current);e&&e instanceof HTMLElement&&e.focus()}this.onHideFollowUp()},anchor:t,role:"group","aria-labelledby":d},this.getCalloutPositioningModes()),r.createElement(c.X6,{id:d,size:u.Gm._7,jssStyleSheet:it},n.prompt),r.createElement(E,{jssStyleSheet:ot,enableAutoFocus:!0},n.options.map(((t,e)=>r.createElement(M,{key:e,onInvoke:t=>l(t,e)},t)))))}getCalloutPositioningModes(){const{vertical:t}=this.props;return{verticalPositioningMode:t?Z.tg.inset:Z.tg.adjacent,horizontalPositioningMode:t?Z.tg.adjacent:Z.tg.inset}}}st.defaultProps={managedClasses:{},vertical:!1,likeButtonTitle:"Like",dislikeButtonTitle:"Dislike"};const at=st,lt={microFeedback:{height:(0,A.Cb)()},microFeedback__vertical:{height:(0,A.Cb)(2),width:(0,A.Cb)()},microFeedback__inline:{display:"inline-block"},microFeedback_buttonContainer:{display:"inline-block"},microFeedback_callout:{"z-index":"1"}},ct=(0,d.ZP)(lt)(at)},17485:(t,e,n)=>{"use strict";n.d(e,{_:()=>w});var r=n(17332),i=n(64197),o=n(17657),s=n(42130),a=n(54141),l=n(76908),c=n(97682),u=n(61466),d=n(57167),p=n(4921),h=n(47436),f=n(29911),g=n(25491);const v={radioContainer:Object.assign({position:"relative",display:"inline-flex","min-width":(0,a.Cb)(),"min-height":(0,a.Cb)()},l.Ob),radioContainer_input:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({appearance:"none","-webkit-appearance":"none","-moz-appearance":"none"},(0,c.$C)()),(0,u.u0)()),{background:"transparent",border:(0,i.WU)("{0} solid {1}",(0,o.a)(d.bu),p.L$),"box-sizing":"border-box",width:"100%",height:"100%",margin:"0",overflow:"hidden",padding:"0",position:"absolute",transition:"all 0.1s ease-in-out","z-index":"1","&:hover:enabled":{background:"transparent",border:(0,i.WU)("{0} solid {1}",(0,o.a)(d.bu),p.yD),[l.xE]:{"border-color":l.YP.selectedBackground}},"&:active:enabled":{background:"transparent",border:(0,i.WU)("{0} solid {1}",(0,o.a)(d.bu),p.tA)}}),(0,s.F0)({"border-color":h.F,"box-shadow":(0,i.WU)("inset 0 0 0 1px {0}",h.F),[l.xE]:{border:`1px solid ${l.YP.buttonText}`,"box-shadow":`inset 0 0 0 1px ${l.YP.buttonText}`}})),{[l.xE]:{"border-color":l.YP.buttonText}}),radioContainer__checked:{"& $radioContainer_input":Object.assign(Object.assign({"border-color":f.go,"box-shadow":(0,i.WU)("inset 0 0 0 3px {0}",f.go),"&:hover:enabled":{"border-color":f.D9,"box-shadow":(0,i.WU)("inset 0 0 0 3px {0}",f.D9),[l.xE]:{"border-color":l.YP.selectedBackground,"box-shadow":`inset 0 0 0 3px ${l.YP.selectedBackground}`}}},(0,s.F0)({"border-color":h.F,"box-shadow":(0,i.WU)("inset 0 0 0 3px {0}",h.F),[l.xE]:{border:`1px solid ${l.YP.buttonText}`,"box-shadow":`inset 0 0 0 3px ${l.YP.buttonText}`}})),{[l.xE]:{"border-color":l.YP.selectedBackground,"box-shadow":`inset 0 0 0 3px ${l.YP.selectedBackground}`}})},radioContainer__disabled:Object.assign(Object.assign({},(0,g.M)()),{"& $radioContainer_input":{[l.xE]:Object.assign(Object.assign({opacity:"1"},(0,c.YW)()),{"border-color":l.YP.disabledText})}}),radioContainer_stateIndicator:{},radioContainer_label:{}};var b=n(89526),m=n(11754),y=n(98722);class x extends m.Z{constructor(){super(...arguments),this.handledProps={inputId:void 0,checked:void 0,disabled:void 0,label:void 0,managedClasses:void 0,onChange:void 0,value:void 0,name:void 0}}render(){return b.createElement(y.ZP,{managedClasses:this.generateManagedClasses(),className:super.generateClassNames(),inputId:this.props.inputId,checked:this.props.checked,disabled:this.props.disabled,name:this.props.name,onChange:this.props.onChange},this.props.children)}generateManagedClasses(){return{radio:this.props.managedClasses.radioContainer,radio_input:this.props.managedClasses.radioContainer_input,radio_label:this.props.managedClasses.radioContainer_label,radio_stateIndicator:this.props.managedClasses.radioContainer_stateIndicator,radio__disabled:this.props.managedClasses.radioContainer__disabled,radio__checked:this.props.managedClasses.radioContainer__checked}}}x.displayName="RadioContainer",x.defaultProps={managedClasses:{}};const _=x,w=(0,r.ZP)(v)(_)},8734:(t,e,n)=>{"use strict";n.d(e,{V:()=>S});var r=n(89526),i=n(11754),o=n(82117),s=n(14895),a=n(92588),l=n(90305),c=n(37834);class u extends i.Z{constructor(){super(...arguments),this.handledProps={caption:void 0,descriptiveItems:void 0,disabled:void 0,glyph:void 0,heading:void 0,listStyleImage:void 0,managedClasses:void 0,slot:void 0},this.renderCaptionText=()=>this.props.caption?r.createElement(o.ZT,{className:(0,c.A)(this.props.managedClasses.trackingPreventionCard_caption),size:s.H._9},this.props.caption):null,this.renderDescriptiveItems=()=>{const{trackingPreventionCard_descriptiveItems:t,trackingPreventionCard_description:e}=this.props.managedClasses;if(Array.isArray(this.props.descriptiveItems))return this.props.descriptiveItems.map(((n,i)=>r.createElement("li",{key:i,className:(0,c.A)(t)},this.renderListStyleImage(),r.createElement(o.ZT,{className:(0,c.A)(e),size:s.H._8,children:n.children}))))}}render(){const{trackingPreventionCard_headingWrapper:t,trackingPreventionCard_headingCaptionWrapper:e,trackingPreventionCard_heading:n,trackingPreventionCard_items:i}=this.props.managedClasses;return r.createElement("div",Object.assign({},this.unhandledProps(),{className:this.generateClassNames()}),r.createElement("div",{className:(0,c.A)(t)},this.renderGlyph(),r.createElement("div",{className:(0,c.A)(e)},r.createElement(a.X6,Object.assign({className:(0,c.A)(n)},this.renderHeadingTitle())),this.renderCaptionText())),r.createElement("ul",{className:(0,c.A)(i)},this.renderDescriptiveItems()))}generateClassNames(){const{trackingPreventionCard:t,trackingPreventionCard__disabled:e}=this.props.managedClasses;return super.generateClassNames((0,c.A)(t,[e,this.props.disabled]))}renderHeadingTitle(){return Object.assign({},{size:l.Gm._5},this.props.heading)}renderGlyph(){return"function"==typeof this.props.glyph?this.props.glyph((0,c.A)(this.props.managedClasses.trackingPreventionCard_glyph)):null}renderListStyleImage(){const{trackingPreventionCard_listStyleImage:t,trackingPreventionCard_listStyleImageWrapper:e}=this.props.managedClasses;return"function"!=typeof this.props.listStyleImage?null:r.createElement("div",{"aria-hidden":"true",className:(0,c.A)(e)},this.props.listStyleImage((0,c.A)(t)))}}u.displayName="TrackingPreventionCard",u.defaultProps={managedClasses:{}};const d=u;var p=n(17657),h=n(51045),f=n(48863),g=n(53363),v=n(97682),b=n(61466),m=n(57167),y=n(76908),x=n(51094),_=n(54141),w=n(25491);const C={trackingPreventionCard:Object.assign(Object.assign(Object.assign(Object.assign({},(0,g.Sh)("t7")),(0,v.$C)()),(0,b.u0)()),{background:"transparent","box-sizing":"border-box",width:"100%",height:"100%",overflow:"hidden",padding:(0,p.a)((0,h.Jp)(m._5,4)),transition:"all 0.1s ease-in-out",display:"flex","flex-direction":"column",[y.xE]:Object.assign(Object.assign({},y.a8),{background:y.YP.buttonBackground}),"& $trackingPreventionCard_glyph, $trackingPreventionCard_listStyleImage, $trackingPreventionCard_caption, $trackingPreventionCard_heading, $trackingPreventionCard_description":Object.assign({},y.KP)}),trackingPreventionCard_listStyleImage:{fill:x.CH},trackingPreventionCard_listStyleImageWrapper:{display:"flex","align-items":"center","grid-column":"1/2","grid-row":"1/2","min-width":"16px","min-height":"16px"},trackingPreventionCard_caption:{"white-space":"nowrap"},trackingPreventionCard_descriptiveItems:{color:x.CH,display:"grid","grid-template-columns":"auto 1fr","grid-template-rows":"auto auto","margin-bottom":(0,p.a)((0,h.Jp)(m._5,2))},trackingPreventionCard_glyph:{fill:x.CH,"margin-left":(0,f.zw)("",(0,_.wb)()),"margin-right":(0,f.zw)((0,_.wb)(),""),"align-self":"flex-start"},trackingPreventionCard_headingWrapper:{display:"grid","grid-template-columns":"auto 1fr","min-height":"44px","margin-bottom":"2px"},trackingPreventionCard_headingCaptionWrapper:{overflow:"auto","overflow-wrap":"break-word"},trackingPreventionCard_heading:{},trackingPreventionCard_items:{"list-style-type":"none",margin:"0",padding:"0"},trackingPreventionCard_description:{"align-self":"center","grid-column":"2/3","grid-row":"1/3"},trackingPreventionCard__disabled:Object.assign(Object.assign({},(0,w.M)()),{"& $trackingPreventionCard_glyph, $trackingPreventionCard_listStyleImage, $trackingPreventionCard_caption, $trackingPreventionCard_heading, $trackingPreventionCard_description":Object.assign({},y.He)})};const S=(0,n(17332).ZP)(C)(d)},26352:(t,e,n)=>{"use strict";n.d(e,{A7:()=>w});var r=n(89982),i=n(17657),o=n(51045),s=n(42130),a=n(64197),l=n(48863),c=n(57167),u=n(54141),d=n(51094),p=n(19652),h=n(97682),f=n(47436),g=n(76908),v=n(53363),b=n(89827),m=n(61466),y=n(29911);const x=(0,i.a)((0,o.IH)(c._5,u.en)),_={treeViewItem:Object.assign(Object.assign(Object.assign({position:"relative","content-visibility":"auto","min-height":(0,u.Cb)(),color:d.CH,background:p.jq},(0,h.$C)()),(0,s.F0)(" > $treeViewItem_contentRegion",Object.assign({border:(0,a.WU)("{0} solid {1}",(0,i.a)(c.Db),f.F)},g.HC))),(0,s.F0)(" > $treeViewItem_dndWrapper $treeViewItem_contentRegion",Object.assign({border:(0,a.WU)("{0} solid {1}",(0,i.a)(c.Db),f.F)},g.HC))),treeViewItem_textContainer:Object.assign(Object.assign({"margin-bottom":(0,i.a)((0,o.cs)((0,o.$X)((0,u.iY)(),(0,v.Ht)("t7"),(0,o.Jp)(c.Db,2)),2)),"margin-top":(0,i.a)((0,o.cs)((0,o.$X)((0,u.iY)(),(0,v.Ht)("t7"),(0,o.Jp)(c.Db,2)),2))},(0,v.Sh)("t7")),(0,b.Li)()),treeViewItem_glyph:{fill:d.CH,[g.xE]:{fill:g.YP.buttonText}},treeViewItem_glyphContainer:{"margin-right":(0,l.zw)((0,u.wb)(2),""),"margin-left":(0,l.zw)("",(0,u.wb)(2)),display:"flex","margin-top":(0,i.a)((0,o.cs)((0,o.$X)((0,u.iY)(),20,(0,o.Jp)(c.Db,2)),2))},treeViewItem_contentRegion:Object.assign(Object.assign(Object.assign({display:"flex",position:"relative","box-sizing":"border-box","min-height":(0,u.Cb)()},(0,m.Ee)()),(0,m.u0)()),{"&:hover":Object.assign(Object.assign({background:p.Qp},g.T),{"& $treeViewItem_expandedGlyph,\n & $treeViewItem_glyph":{[g.xE]:{fill:g.YP.selectedText}}}),"&:active":{background:p.sG},"&::before":{content:"''",display:"block",width:"0","flex-shrink":"0"},[g.xE]:{"-ms-high-contrast-adjust":"none",color:"ButtonText",border:(0,a.WU)("{0} solid transparent",(0,i.a)(c.Db))}}),treeViewItem_innerContentRegion:{"margin-left":(0,l.zw)((0,u.wb)(c.Db),""),"margin-right":(0,l.zw)("",(0,u.wb)(c.Db)),display:"flex"},treeViewItem_childNodeRegion:{display:"none","font-size":`calc(1em + ${x()})`,"& $treeViewItem_contentRegion":{"&::before":{width:"1em"}}},treeViewItem_expandCollapseButton:Object.assign({background:"none",border:"none",outline:"none",width:(0,i.a)((0,o.IH)(u.en,(0,o.Jp)(c._5,4))),height:(0,i.a)((0,o.IH)(u.en,(0,o.$X)((0,o.Jp)(c._5,4),(0,o.Jp)(c.Db,2)))),padding:"0",display:"flex","align-items":"center","justify-content":"center"},(0,h.$C)()),treeViewItem_expandedGlyph:{transition:"transform .1s linear",transform:(0,l.zw)("rotate(-45deg)","rotate(135deg)"),"pointer-events":"none",fill:d.CH,[g.xE]:{fill:g.YP.buttonText}},treeViewItem__expanded:{"& > $treeViewItem_contentRegion $treeViewItem_expandedGlyph,\n & > $treeViewItem_dndWrapper $treeViewItem_contentRegion $treeViewItem_expandedGlyph":{transform:(0,l.zw)("rotate(0deg)","rotate(90deg)")},"& > $treeViewItem_childNodeRegion":{display:"block"}},treeViewItem__selected:{"& > $treeViewItem_contentRegion,\n & > $treeViewItem_dndWrapper > $treeViewItem_contentRegion":Object.assign({background:p.sx},g.T),"&::after":Object.assign(Object.assign({content:"''",display:"block",position:"absolute",top:(0,i.a)((0,o.cs)((0,o.$X)((0,u.iY)(),(0,v.Ht)("t7")),2)),width:"3px",height:(0,v.Yy)("t7"),background:y.go,left:(0,l.zw)((0,i.a)(c.Db),"unset"),right:(0,l.zw)("unset",(0,i.a)(c.Db))},(0,m.u0)()),g.YF),"& > $treeViewItem_contentRegion $treeViewItem_glyph,\n & > $treeViewItem_contentRegion $treeViewItem_expandedGlyph,\n & > $treeViewItem_dndWrapper $treeViewItem_expandedGlyph,\n & > $treeViewItem_dndWrapper $treeViewItem_glyph":{[g.xE]:{fill:g.YP.selectedText}}},treeViewItem__dndHover:Object.assign({background:p.Qp},g.Fn),treeViewItem__reorderTopHint:{"border-top":(0,a.WU)("{0} solid {1}",(0,i.a)(c.Db),f.F)},treeViewItem__reorderBottomHint:{"border-bottom":(0,a.WU)("{0} solid {1}",(0,i.a)(c.Db),f.F)},treeViewItem_dndWrapper:{},treeViewItem__nested:{"& $treeViewItem_innerContentRegion":{position:"relative","margin-left":(0,l.zw)((0,i.a)((0,o.IH)(u.en,(0,o.Jp)(c._5,4))),""),"margin-right":(0,l.zw)("",(0,i.a)((0,o.IH)(u.en,(0,o.Jp)(c._5,4)))),"white-space":"nowrap"},"& $treeViewItem_expandCollapseButton":{position:"absolute",left:(0,l.zw)((0,i.a)((0,o.Jp)((0,o.IH)(u.en,(0,o.Jp)(c._5,4)),-1)),""),right:(0,l.zw)("",(0,i.a)((0,o.Jp)((0,o.IH)(u.en,(0,o.Jp)(c._5,4)),-1)))}}};const w=(0,n(17332).ZP)(_)(r.Z)},89982:(t,e,n)=>{"use strict";n.d(e,{Z:()=>O});var r=n(37834),i=n(33832),o=n(89526),s=n(11754),a=n(97032),l=n(47413),c=n(54715),u=n(73961),d=n(60845),p=n(9680),h=n(48527),f=n(64829),g=n(48885),v=n(9453),b=n(59759);class m extends s.Z{constructor(){super(...arguments),this.handledProps={connectDragSource:void 0,managedClasses:void 0,connectDragPreview:void 0,customDragPreviewElement:void 0,onDrag:void 0,onDragEnd:void 0,connectDropTarget:void 0,onDrop:void 0,onDragDropHover:void 0,isDraggable:void 0,isDroppable:void 0,isOver:void 0,draggingItem:void 0,dropTargetBehavior:void 0,reorderLocation:void 0,reorderTargetBehavior:void 0,canDrop:void 0,shouldExpandOnHover:void 0,titleContent:void 0}}render(){return o.createElement("div",Object.assign({},this.unhandledProps(),{className:this.generateClassNames()}),this.props.children)}componentDidUpdate(t){this.props.onDragDropHover&&(t.isOver&&!this.props.isOver?this.props.onDragDropHover(!1):!t.isOver&&this.props.isOver&&this.props.onDragDropHover(!0))}generateClassNames(){const{treeViewItem_contentRegion:t,treeViewItem__reorderTopHint:e,treeViewItem__reorderBottomHint:n,treeViewItem__dndHover:i}=this.props.managedClasses;let o=!0;"function"==typeof this.props.canDrop&&this.props.draggingItem&&(o=this.props.canDrop(this.props.draggingItem,this.props));const s=o?this.props.reorderLocation===c.v1.Top?e:this.props.reorderLocation===c.v1.Bottom?n:this.props.isOver?i:"":"";return(0,r.A)(t,s)}}m.defaultProps={managedClasses:{}};const y={beginDrag:t=>Object.assign(Object.assign({},t.onDrag(t)),t),endDrag(t,e){t.onDragEnd&&t.onDragEnd(t,e)}},x={drop(t,e,n){if(e.didDrop())return;const r=e.getItem();return t.onDrop(r,t,t.reorderLocation)},hover(t,e,n){t.onDragDropHover&&t.onDragDropHover(e.isOver({shallow:!0}),e.getItem(),t.dropTargetBehavior===c.Dj.None?c.HO.None:t.reorderTargetBehavior,t.dropTargetBehavior,e.getClientOffset())},canDrop(t,e){if(e.didDrop())return!1;if("function"==typeof t.canDrop){const n=e.getItem();return t.canDrop(n,t)}return!0}},_=t=>({connectDragSource:t.dragSource(),connectDragPreview:t.dragPreview()}),w=(t,e)=>({connectDropTarget:t.dropTarget(),itemType:e.getItemType(),isOver:e.isOver({shallow:!0}),draggingItem:e.getItem()}),C=(0,a.E)("nav-droppable",y,_)((t=>(t.customDragPreviewElement&&t.connectDragPreview(t.customDragPreviewElement),t.connectDragSource(o.createElement("div",{className:(0,p.Z)(t,"managedClasses.treeViewItem_dndWrapper","")},o.createElement(m,Object.assign({},t))))))),S=(0,l.G)("nav-droppable",x,w)((t=>t.connectDropTarget(o.createElement("div",{className:(0,p.Z)(t,"managedClasses.treeViewItem_dndWrapper","")},o.createElement(m,Object.assign({},t)))))),E=(0,l.G)("nav-droppable",x,w)((0,a.E)("nav-droppable",y,_)((t=>(t.customDragPreviewElement&&t.connectDragPreview(t.customDragPreviewElement),t.connectDropTarget(t.connectDragSource(o.createElement("div",{className:(0,p.Z)(t,"managedClasses.treeViewItem_dndWrapper","")},o.createElement(m,Object.assign({},t)))))))));class O extends s.Z{constructor(t){super(t),this.handledProps={expandedGlyph:void 0,glyph:void 0,titleContent:void 0,children:void 0,managedClasses:void 0,selected:void 0,onExpandedChange:void 0,onSelected:void 0,dragDropConfig:void 0,onContextMenu:void 0,expanded:void 0,tooltip:void 0,isCollapsible:void 0},this.rootElement=o.createRef(),this.hoverExpandTimer=0,this.treeElement=o.createRef(),this.expandCollapseButton=o.createRef(),this.groupElement=o.createRef(),this.itemTitleId=(0,h.Z)("itemTitle"),this.handleContextMenu=t=>{if("function"==typeof this.props.onContextMenu){let e=t.clientY;if(this.state.hasChildNodes&&this.state.expanded){const t=(0,d.xS)(this.treeElement);if(!(0,f.Z)(t)){const n=t.getBoundingClientRect();e=n.top+n.height/2}}this.props.onContextMenu(t,e)}},this.handleFocus=t=>{t.target===t.currentTarget&&(this.setState({focusable:!0}),"function"==typeof this.context.setLastFocused&&this.context.setLastFocused(this.rootElement))},this.handleBlur=t=>{(0,v.N)()&&t.target===t.currentTarget&&this.setState({focusable:!1})},this.getTreeViewElementComponent=()=>{const t=this.props.dragDropConfig;return t?t.isDraggable&&t.isDroppable?E:t.isDraggable?C:t.isDroppable?S:m:m},this.onDragDropHover=(t,e,n,r,i)=>{const o=(0,u.findDOMNode)(this.treeElement.current);if((0,f.Z)(o))return;const s=o.getBoundingClientRect();let a=function(t,e,n,r){const i=t===c.Dj.Both||t===c.Dj.Reorder,o=t===c.Dj.Both||t===c.Dj.Reparent,s=e===c.HO.Both||e===c.HO.Above,a=e===c.HO.Both||e===c.HO.Below;return i&&r?o?s&&r.y<n.top+.3*n.height?c.v1.Top:a&&r.y>n.bottom-.3*n.height?c.v1.Bottom:c.v1.None:s&&a?r.y<n.top+.5*n.height?c.v1.Top:c.v1.Bottom:s?c.v1.Top:a?c.v1.Bottom:c.v1.None:c.v1.None}(r||c.Dj.None,n||c.HO.None,s,i);this.state.expanded&&a===c.v1.Bottom&&(a=c.v1.None);let l=!0;this.props.dragDropConfig.shouldExpandOnHover&&e&&(l=this.props.dragDropConfig.shouldExpandOnHover(e,this.props));const d=t&&a===c.v1.None&&l;d&&!this.hoverExpandTimer?this.hoverExpandTimer=window.setTimeout((()=>this.setExpanded(!0)),500):!d&&this.hoverExpandTimer&&(window.clearTimeout(this.hoverExpandTimer),this.hoverExpandTimer=0),this.setState({reorderLocation:a})},this.handleKeyDown=t=>{if(t.target===t.currentTarget){switch(t.keyCode){case i.mW.arrowLeft:this.handleArrowLeft();break;case i.mW.arrowRight:this.handleArrowRight();break;case i.mW.arrowDown:t.preventDefault(),this.focusNextNode(1);break;case i.mW.arrowUp:t.preventDefault(),this.focusNextNode(-1);break;case i.mW.enter:this.handleSelected(t);break;case i.mW.space:this.handleSpaceBar()}"function"==typeof this.props.onKeyDown&&this.props.onKeyDown(t)}},this.handleExpandCollapseButtonClick=t=>{t.preventDefault(),this.setExpanded(!this.state.expanded)},this.handleSelected=t=>{"function"==typeof this.props.onSelected&&this.props.onSelected(this.props,t)},this.handleClick=t=>{t.defaultPrevented||null!==this.groupElement.current&&(this.groupElement.current===t.target||this.groupElement.current.contains(t.target))||this.handleSelected(t)},this.isCollapsible=()=>this.state.hasChildNodes&&this.props.isCollapsible,this.itemId=(0,h.Z)();const e=O.hasChildNodes(this.props),n=O.getChildrenStatus(this.props,{selectedChildCount:0,expandedChildCount:0});this.onDragDropHover=(0,g.Z)(this.onDragDropHover,200);const r=e&&(this.props.expanded||n.expandedChildCount>0||n.selectedChildCount>0||!this.props.isCollapsible);this.state={hasChildNodes:e,selectedChildCount:n.selectedChildCount,expandedChildCount:n.expandedChildCount,focusable:!1,expanded:r,reorderLocation:c.v1.None}}static hasChildNodes(t){if(!t.children)return!1;return o.Children.toArray(t.children).length>0}static getChildrenStatus(t,e){if(!O.hasChildNodes(t))return e;const n=o.Children.toArray(t.children),r=n.length;for(let t=0;t<r;t++){const r=n[t];o.isValidElement(r)&&(!0===(0,p.Z)(r.props,"selected")&&e.selectedChildCount++,!0===(0,p.Z)(r.props,"expanded")&&e.expandedChildCount++,O.getChildrenStatus(r.props,e))}return e}componentDidMount(){(0,f.Z)(this.rootElement.current)||(0,f.Z)(this.context.registerItem)||this.context.registerItem(this.rootElement.current)}componentWillUnmount(){(0,f.Z)(this.rootElement.current)||(0,f.Z)(this.context.deregisterItem)||this.context.deregisterItem(this.rootElement.current)}componentDidUpdate(t){const e=O.hasChildNodes(this.props);if(e||this.state.hasChildNodes)if(!e&&this.state.hasChildNodes)this.setState({hasChildNodes:e,expanded:!1,selectedChildCount:0,expandedChildCount:0});else{const n=O.getChildrenStatus(this.props,{selectedChildCount:0,expandedChildCount:0});let r=this.state.expanded;this.isCollapsible()?n.selectedChildCount>this.state.selectedChildCount||this.props.expanded&&!t.expanded||n.expandedChildCount>this.state.expandedChildCount?r=!0:!this.props.expanded&&t.expanded&&(r=!1):r=!0,this.state.hasChildNodes===e&&this.state.expanded===r&&this.state.selectedChildCount===n.selectedChildCount&&this.state.expandedChildCount===n.expandedChildCount||this.setState({hasChildNodes:e,expanded:r,selectedChildCount:n.selectedChildCount,expandedChildCount:n.expandedChildCount})}}render(){const t=!this.context.fullyRenderOutOfViewItems&&-1===this.context.visibleItemIds.indexOf(this.itemId),e=this.props.tooltip||("string"==typeof this.props.titleContent?this.props.titleContent:null),n=void 0===this.props.selected?{}:{"aria-selected":this.props.selected};return o.createElement("div",Object.assign({},this.unhandledProps(),{"data-tree-view-item-id":this.itemId,role:"treeitem","aria-expanded":this.isCollapsible()?this.state.expanded:void 0},n,{title:e,tabIndex:this.state.focusable?0:-1,className:this.generateClassNames(),onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,onClick:this.handleClick,onContextMenu:this.handleContextMenu,ref:this.rootElement}),t?null:this.renderTreeElement(),this.renderNestedGroup())}generateClassNames(){const{treeViewItem:t,treeViewItem__expanded:e,treeViewItem__nested:n,treeViewItem__selected:i}=this.props.managedClasses;return super.generateClassNames((0,r.A)(t,[e,this.state.expanded],[n,this.context.nested],[i,this.props.selected]))}handleArrowLeft(){if(this.state.expanded&&this.props.isCollapsible)this.setExpanded(!1);else if((0,v.N)()&&(0,d.Re)(this.rootElement.current)&&(0,d.Re)(this.rootElement.current.parentElement)){const t=this.rootElement.current.parentElement;if((0,d.Re)(t)){const e=t.closest("[role='treeitem']");(0,d.Re)(e)&&e.focus()}}}handleSpaceBar(){"boolean"==typeof this.state.expanded&&this.props.isCollapsible&&this.setExpanded(!this.state.expanded)}handleArrowRight(){"boolean"==typeof this.state.expanded&&(!this.state.expanded&&this.props.isCollapsible?this.setExpanded(!0):this.focusNextNode(1))}focusNextNode(t){if(!(0,v.N)())return;const e=this.getVisibleNodes(),n=e.indexOf(this.rootElement.current);if(-1!==n){const r=e[n+t];(0,d.Re)(r)&&r.focus()}}getVisibleNodes(){return(0,v.N)()?(0,d.UM)(this.getTreeRoot(),"[role='treeitem']"):[]}getTreeRoot(){const t=this.rootElement.current;return(0,d.Re)(t)&&(0,v.N)()?t.closest("[role='tree']"):null}renderTreeElement(){const t=this.getTreeViewElementComponent(),e=this.props.tooltip||("string"==typeof this.props.titleContent?this.props.titleContent:null),n=this.unhandledProps()["aria-hidden"],i=void 0===n||n;return o.createElement(t,Object.assign({},this.props.dragDropConfig,{"aria-hidden":i,title:e,managedClasses:this.props.managedClasses,onDragDropHover:this.onDragDropHover,reorderLocation:this.state.reorderLocation,ref:this.treeElement}),o.createElement("div",{className:(0,r.A)(this.props.managedClasses.treeViewItem_innerContentRegion)},this.renderExpandCollapseButton(),this.renderGlyph(),this.renderText()))}renderNestedGroup(){return this.state.hasChildNodes&&(this.context.renderCollapsedNodes||this.state.expanded)?o.createElement("div",{role:"group","aria-labelledby":this.itemTitleId,ref:this.groupElement,className:(0,r.A)(this.props.managedClasses.treeViewItem_childNodeRegion)},this.props.children):null}renderText(){return o.createElement("div",{id:this.itemTitleId,className:this.props.managedClasses.treeViewItem_textContainer},this.props.titleContent)}generateGlyph(){const t=(0,r.A)(this.props.managedClasses.treeViewItem_glyph);return this.state.hasChildNodes&&this.state.expanded&&"function"==typeof this.props.expandedGlyph?this.props.expandedGlyph(t):this.props.glyph(t)}renderGlyph(){return"function"!=typeof this.props.glyph?null:o.createElement("div",{"aria-hidden":"true",className:(0,r.A)(this.props.managedClasses.treeViewItem_glyphContainer)},this.generateGlyph())}renderExpandCollapseButton(){const{treeViewItem_expandCollapseButton:t,treeViewItem_expandedGlyph:e}=this.props.managedClasses;return this.isCollapsible()?o.createElement("div",{"aria-hidden":!0,className:(0,r.A)(t),onClick:this.handleExpandCollapseButtonClick,ref:this.expandCollapseButton},o.createElement("svg",{className:(0,r.A)(e),width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},o.createElement("path",{d:"M14 6.8a.8.8 0 00-1.36-.57l-6.4 6.41A.8.8 0 006.8 14h6c.67 0 1.2-.53 1.2-1.2v-6z"}))):null}setExpanded(t){this.isCollapsible()&&this.setState({expanded:t},(()=>{"function"==typeof this.props.onExpandedChange&&this.props.onExpandedChange(t,this.props)}))}}O.defaultProps={isCollapsible:!0,expanded:!1,managedClasses:{}},O.contextType=b.d},54715:(t,e,n)=>{"use strict";var r,i,o;n.d(e,{HO:()=>r,Dj:()=>i,v1:()=>o}),function(t){t.Above="Above",t.Below="Below",t.Both="Both",t.None="None"}(r||(r={})),function(t){t.Reorder="Reorder",t.Reparent="Reparent",t.Both="Both",t.None="None"}(i||(i={})),function(t){t.None="None",t.Top="Top",t.Bottom="Bottom"}(o||(o={}))},47636:(t,e,n)=>{"use strict";n.d(e,{L:()=>g});var r=n(89526),i=n(11754),o=n(59759),s=n(89982),a=n(60845),l=n(33832),c=n(37834),u=n(9453),d=n(64829);class p extends i.Z{constructor(t){super(t),this.handledProps={managedClasses:void 0,children:void 0,viewport:void 0,renderCollapsedNodes:void 0},this.rootElement=r.createRef(),this.collisionDetector=null,this.fullyRenderOutOfViewItems=!0,this.visibleItemIds=[],this.itemVisibilityUpdateTimer=null,this.configureCollisionDetector=()=>{if((0,d.Z)(this.props.viewport))return void this.setState({validRefChecksRemaining:0});const t=(0,a.xS)(this.props.viewport);null!==t?(this.fullyRenderOutOfViewItems=!1,this.collisionDetector=new IntersectionObserver(this.handleCollision,{root:t,rootMargin:"100%",threshold:[0,1]}),this.setState({validRefChecksRemaining:0})):this.setState({validRefChecksRemaining:this.state.validRefChecksRemaining-1})},this.registerItem=t=>{if(null===this.collisionDetector)return;null!==t.getAttribute(p.itemIdKey)&&this.collisionDetector.observe(t)},this.deregisterItem=t=>{if(null===this.collisionDetector)return;const e=t.getAttribute(p.itemIdKey);if(null!==e&&null!==this.collisionDetector){this.collisionDetector.unobserve(t);const n=this.visibleItemIds.indexOf(e);-1!==n&&(this.visibleItemIds.splice(n,1),this.setState({visibleItemIds:this.visibleItemIds.slice(0)}))}},this.handleCollision=t=>{t.forEach((t=>{const e=t.target.getAttribute(p.itemIdKey);if(null!==e){const n=this.visibleItemIds.indexOf(e);t.isIntersecting&&-1===n?(this.visibleItemIds.push(e),this.requestVisibilityUpdate()):t.isIntersecting||-1===n||(this.visibleItemIds.splice(n,1),this.requestVisibilityUpdate())}}))},this.requestVisibilityUpdate=()=>{null!==this.itemVisibilityUpdateTimer&&window.clearTimeout(this.itemVisibilityUpdateTimer),this.itemVisibilityUpdateTimer=window.setTimeout((()=>{this.updateVisibleItemState()}),50)},this.updateVisibleItemState=()=>{window.clearTimeout(this.itemVisibilityUpdateTimer),this.itemVisibilityUpdateTimer=null,this.setState({visibleItemIds:this.visibleItemIds.slice(0)})},this.setLastFocused=t=>{this.setState({lastFocused:t})},this.handleBlur=t=>{const e=this.rootElement.current;(0,a.Re)(e)&&!e.contains(t.relatedTarget)&&this.setState({focusable:!0})},this.handleFocus=t=>{if(!(0,u.N)()||!(0,a.Re)(this.rootElement.current))return;const e=this.rootElement.current,n=this.state.lastFocused;if((0,a.Re)(e)&&e===t.target){const t=n?n.current:e.querySelector("[role='treeitem']");(0,a.Re)(t)&&(t.focus(),this.state.focusable&&this.setState({focusable:!1}))}else this.state.focusable&&this.setState({focusable:!1})},this.handleKeyDown=t=>{let e;if((0,u.N)())switch(t.keyCode){case l.mW.home:e=this.getVisibleNodes(),e.length&&e[0].focus();break;case l.mW.end:e=this.getVisibleNodes(),e.length&&e[e.length-1].focus()}"function"==typeof this.props.onKeyDown&&this.props.onKeyDown(t)},this.state={focusable:!0,lastFocused:null,nested:p.isNested(this.props),validRefChecksRemaining:(0,d.Z)(this.props.viewport)?0:2,visibleItemIds:[]}}render(){return r.createElement("div",Object.assign({},this.unhandledProps(),{role:"tree",tabIndex:this.state.focusable?0:-1,className:this.generateClassNames(),ref:this.rootElement,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown}),r.createElement(o.d.Provider,{value:{setLastFocused:this.setLastFocused,nested:this.state.nested,renderCollapsedNodes:this.props.renderCollapsedNodes,visibleItemIds:this.state.visibleItemIds,fullyRenderOutOfViewItems:this.fullyRenderOutOfViewItems,registerItem:this.registerItem,deregisterItem:this.deregisterItem}},(0,d.Z)(this.props.viewport)||0===this.state.validRefChecksRemaining?this.props.children:null))}componentDidMount(){this.configureCollisionDetector()}componentWillUnmount(){null!==this.collisionDetector&&(this.collisionDetector.disconnect(),this.collisionDetector=null)}componentDidUpdate(){this.state.validRefChecksRemaining>0&&this.configureCollisionDetector();const t=p.isNested(this.props);t!==this.state.nested&&this.setState({nested:t}),this.ensureFocusability()}generateClassNames(){return super.generateClassNames((0,c.A)(this.props.managedClasses.treeView))}ensureFocusability(){if((0,u.N)()&&!this.state.focusable&&(0,a.Re)(this.rootElement.current)){const t=this.rootElement.current.querySelector("[role='treeitem'][tabindex='0']");(0,a.Re)(t)||this.setState({focusable:!0})}}getVisibleNodes(){return(0,u.N)()?(0,a.UM)(this.rootElement.current,"[role='treeitem']"):[]}}p.displayName="TreeView",p.defaultProps={managedClasses:{},renderCollapsedNodes:!0},p.itemIdKey="data-tree-view-item-id",p.isNested=t=>{let e=!1;if(t.children){const n=r.Children.toArray(t.children),i=n.length;for(let t=0;t<i;t++){const r=n[t];if(s.Z.hasChildNodes(r.props)){e=!0;break}}}return e};var h=n(42130);const f={treeView:Object.assign({display:"flex","flex-direction":"column","align-items":"stretch","min-width":"fit-content","font-size":"0"},(0,h.F0)({}))};const g=(0,n(17332).ZP)(f)(p)},59759:(t,e,n)=>{"use strict";n.d(e,{d:()=>r});const r=n(89526).createContext({setLastFocused:null,nested:!1,renderCollapsedNodes:!0,visibleItemIds:[],fullyRenderOutOfViewItems:!0,registerItem:null,deregisterItem:null})},60845:(t,e,n)=>{"use strict";if(n.d(e,{Re:()=>o,UM:()=>s,xS:()=>a}),/^(2(05|2|22)|5(5|51|71)|360|885|908|991)$/.test(n.j))var r=n(64829);var i=n(73961);function o(...t){return t.every((t=>t instanceof HTMLElement))}function s(t,e){if(!o(t))return;return Array.from(t.querySelectorAll(e)).filter((t=>null!==t.offsetParent))}function a(t){if(t instanceof HTMLElement)return t;if(!(0,r.Z)(t.current)){if(t.current instanceof HTMLElement)return t.current;const e=i.findDOMNode(t.current);if(e instanceof HTMLElement)return e}return null}},14981:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var r=n(89526),i=n(9680),o=n(11754);class s extends o.Z{renderTitleText(t){return"string"==typeof(0,i.Z)(t,"titleText")?r.createElement("title",null,(0,i.Z)(t,"titleText")):null}}s.defaultProps={viewBox:"0 0 16 16",width:"16px",height:"16px",xmlns:"http://www.w3.org/2000/svg"};const a=/^(5(5|51|71)|205|22|360|885|908|991)$/.test(n.j)?s:null},88655:(t,e,n)=>{"use strict";n.d(e,{G:()=>C});var r=n(33940),i=n(65226),o=n(55319),s=n(58520);class a extends o.o{}(0,r.gn)([s.LO],a.prototype,"childElements",void 0);var l=n(90563),c=n(42968),u=n(14671),d=n(91106),p=n(63243),h=n(53125);const f=l.d` - <template ${(0,c.p)({property:"childElements",filter:(0,u.R)()})}> - <a - class="control" - part="control" - ${(0,d.i)("control")} - download="${t=>t.download}" - href="${t=>t.href}" - hreflang="${t=>t.hreflang}" - ping="${t=>t.ping}" - referrerpolicy="${t=>t.referrerpolicy}" - rel="${t=>t.rel}" - target="${t=>t.target}" - type="${t=>t.type}" - aria-atomic="${t=>t.ariaAtomic}" - aria-busy="${t=>t.ariaBusy}" - aria-controls="${t=>t.ariaControls}" - aria-current="${t=>t.ariaCurrent}" - aria-describedBy="${t=>t.ariaDescribedby}" - aria-details="${t=>t.ariaDetails}" - aria-disabled="${t=>t.ariaDisabled}" - aria-errormessage="${t=>t.ariaErrormessage}" - aria-expanded="${t=>t.ariaExpanded}" - aria-flowto="${t=>t.ariaFlowto}" - aria-haspopup="${t=>t.ariaHaspopup}" - aria-hidden="${t=>t.ariaHidden}" - aria-invalid="${t=>t.ariaInvalid}" - aria-keyshortcuts="${t=>t.ariaKeyshortcuts}" - aria-label="${t=>t.ariaLabel}" - aria-labelledby="${t=>t.ariaLabelledby}" - aria-live="${t=>t.ariaLive}" - aria-owns="${t=>t.ariaOwns}" - aria-relevant="${t=>t.ariaRelevant}" - aria-roledescription="${t=>t.ariaRoledescription}" - > - ${(0,p.g)((t=>(0,h._)("image",t.childElements)),l.d`<span class="image-container" part="image-container"> - <slot name="image"></slot> - </span> `)} - <span part="content" class="content"> - <slot></slot> - </span> - </a> - </template> -`;var g=n(76298),v=n(25914),b=n(45227),m=n(15933),y=n(93718),x=n(67845),_=n(68421);const w=g.i` - ${(0,y.j)("block")} :host { - font-family: var(--body-font); - font-size: var(--type-ramp-minus-1-font-size); - line-height: var(--type-ramp-minus-1-line-height); - background-color: ${v.nE.var}; - border-radius: calc(var(--elevated-corner-radius) * 1px); - fill: currentcolor; - cursor: pointer; - outline: none; - } - - .control { - display: flex; - align-items: center; - min-width: calc(${b.i} * 1px); - font-size: var(--type-ramp-minus-1-font-size); - line-height: var(--type-ramp-minus-1-line-height); - color: ${v.sp.var}; - font-weight: 400; - text-decoration: none; - border-radius: calc(var(--elevated-corner-radius) * 1px); - box-sizing: border-box; - padding: 4px; - outline: none; - min-height: 30px; - } - - .control:hover { - box-shadow: inset 0 0 0 calc((var(--outline-width) * 1px)) ${v.Xt.var}; - } - - .control:${x.b} { - box-shadow: inset 0 0 0 calc((var(--focus-outline-width) * 1px)) ${v.cI.var}; - } - - .content { - overflow: hidden; - white-space: nowrap; - text-overflow: ellipsis; - } - - .image-container { - display: flex; - margin-inline-end: 6px; - } -`.withBehaviors(v.Xt,v.cI,v.nE,v.oK,v.sp,(0,_.vF)(g.i` - :host .control { - forced-color-adjust: none; - color: ${m.H.ButtonText}; - box-shadow: inset 0 0 0 calc((var(--outline-width) * 1px)) ${m.H.ButtonText}; - } - :host .control:hover, - :host .control:${x.b} { - box-shadow: inset 0 0 0 calc((var(--focus-outline-width) * 1px)) ${m.H.ButtonText}; - } - :host([href]) .control { - color: ${m.H.LinkText}; - box-shadow: inset 0 0 0 calc((var(--outline-width) * 1px)) ${m.H.LinkText}; - } - :host([href]) .control:hover, - :host([href]) .control:${x.b} { - box-shadow: inset 0 0 0 calc((var(--focus-outline-width) * 1px)) ${m.H.LinkText}; - } - ::slotted([slot="image"]) { - color: ${m.H.ButtonText}; - fill: currentcolor; - } - `));let C=class extends a{};C=(0,r.gn)([(0,i.M)({name:"msft-ad-link",template:f,styles:w,shadowOptions:{delegatesFocus:!0}})],C)},39196:(t,e,n)=>{"use strict";n.d(e,{L:()=>pt});var r=n(33940),i=n(65226),o=n(29163),s=n(58520);class a extends i.H{}(0,r.gn)([(0,o.Lj)({mode:"fromView"})],a.prototype,"title",void 0),(0,r.gn)([(0,o.Lj)({mode:"fromView",attribute:"sub-title"})],a.prototype,"subTitle",void 0),(0,r.gn)([s.LO],a.prototype,"contentData",void 0),(0,r.gn)([s.LO],a.prototype,"footerSlottedNodes",void 0);var l=n(90563),c=n(45930),u=n(33465),d=n(51306),p=n(49278),h=n(18882);const f=Object.freeze({positioning:!1});function g(t,e,n,r){t.bind(e[n],r)}function v(t,e,n,r){const i=Object.create(r);i.index=n,i.length=e.length,t.bind(e[n],i)}class b{constructor(t,e,n,r,i,o){this.location=t,this.itemsBinding=e,this.templateBinding=r,this.options=o,this.source=null,this.views=[],this.items=null,this.itemsObserver=null,this.originalContext=void 0,this.childContext=void 0,this.bindView=g,this.itemsBindingObserver=s.y$.binding(e,this,n),this.templateBindingObserver=s.y$.binding(r,this,i),o.positioning&&(this.bindView=v)}bind(t,e){this.source=t,this.originalContext=e,this.childContext=Object.create(e),this.childContext.parent=t,this.childContext.parentContext=this.originalContext,this.items=this.itemsBindingObserver.observe(t,this.originalContext),this.template=this.templateBindingObserver.observe(t,this.originalContext),this.observeItems(!0),this.refreshAllViews()}unbind(){this.source=null,this.items=null,null!==this.itemsObserver&&this.itemsObserver.unsubscribe(this),this.unbindAllViews(),this.itemsBindingObserver.disconnect(),this.templateBindingObserver.disconnect()}handleChange(t,e){t===this.itemsBinding?(this.items=this.itemsBindingObserver.observe(this.source,this.originalContext),this.observeItems(),this.refreshAllViews()):t===this.templateBinding?(this.template=this.templateBindingObserver.observe(this.source,this.originalContext),this.refreshAllViews(!0)):this.updateViews(e)}observeItems(t=!1){if(!this.items)return void(this.items=d.o);const e=this.itemsObserver,n=this.itemsObserver=s.y$.getNotifier(this.items),r=e!==n;r&&null!==e&&e.unsubscribe(this),(r||t)&&n.subscribe(this)}updateViews(t){const e=this.childContext,n=this.views,r=[],i=this.bindView;let o=0;for(let e=0,i=t.length;e<i;++e){const i=t[e],s=i.removed;r.push(...n.splice(i.index+o,s.length)),o-=i.addedCount}const s=this.items,a=this.template;for(let o=0,l=t.length;o<l;++o){const l=t[o];let c=l.index;const u=c+l.addedCount;for(;c<u;++c){const t=n[c],o=t?t.firstChild:this.location,l=r.length>0?r.shift():a.create();n.splice(c,0,l),i(l,s,c,e),l.insertBefore(o)}}for(let t=0,e=r.length;t<e;++t)r[t].dispose();if(this.options.positioning)for(let t=0,e=n.length;t<e;++t){const r=n[t].context;r.length=e,r.index=t}}refreshAllViews(t=!1){const e=this.items,n=this.childContext,r=this.template,i=this.location,o=this.bindView;let s=e.length,a=this.views,l=a.length;if((0===s||t)&&(h.b.disposeContiguousBatch(a),l=0),0===l){this.views=a=new Array(s);for(let t=0;t<s;++t){const s=r.create();o(s,e,t,n),a[t]=s,s.insertBefore(i)}}else{let t=0;for(;t<s;++t)if(t<l){o(a[t],e,t,n)}else{const s=r.create();o(s,e,t,n),a.push(s),s.insertBefore(i)}const c=a.splice(t,l-t);for(t=0,s=c.length;t<s;++t)c[t].dispose()}}unbindAllViews(){const t=this.views;for(let e=0,n=t.length;e<n;++e)t[e].unbind()}}class m extends p.m0{constructor(t,e,n){super(),this.itemsBinding=t,this.templateBinding=e,this.options=n,this.createPlaceholder=c.SO.createBlockPlaceholder,(0,u.F)(),this.isItemsBindingVolatile=s.y$.isVolatileBinding(t),this.isTemplateBindingVolatile=s.y$.isVolatileBinding(e)}createBehavior(t){return new b(t,this.itemsBinding,this.isItemsBindingVolatile,this.templateBinding,this.isTemplateBindingVolatile,this.options)}}function y(t,e,n=f){return new m(t,"function"==typeof e?e:()=>e,n)}var x=n(91106),_=n(37955),w=n(2814);class C extends w.x{}var S=n(13709),E=n(76298),O=n(93718);const j=E.i` - ${(0,O.j)("flex")} :host { - box-sizing: border-box; - font-family: var(--body-font); - font-size: var(--type-ramp-minus-1-font-size); - line-height: var(--type-ramp-minus-1-line-height); - height: 100%; - } -`;let P=class extends C{};P=(0,r.gn)([(0,i.M)({name:"msft-info-pane-panel",template:S.Y,styles:j})],P);var k=n(21404);class I extends k.O{}var T=n(3960),A=n(15933),D=n(67845),R=n(68421),$=n(25914);const N=E.i` - ${(0,O.j)("inline-flex")} :host { - box-sizing: border-box; - font-family: var(--body-font); - min-height: 6px; - min-width: 6px; - background-color: ${$.sp.var}; - border-radius: 20px; - opacity: 0.4; - grid-row: 1; - z-index: 1; - margin: 10px 2px; - border: calc(var(--outline-width) * 1px) solid transparent; - } - - :host([aria-selected="true"]) { - z-index: 2; - opacity: 1; - min-width: 30px; - } - - :host(:hover) { - background: ${$.eH.var}; - opacity: 1; - } - - :host(:active) { - background: ${$.EV.var}; - opacity: 1; - } - - :host(:${D.b}) { - outline: none; - box-shadow: 0 0 0 calc((var(--focus-outline-width) - var(--outline-width)) * 1px) var(--background-color), 0 0 0 calc((var(--focus-outline-width) + var(--outline-width)) * 1px) - ${$.cI.var}; - } - - :host(:focus) { - outline: none; - } -`.withBehaviors($.cI,$.a,$.Ep,$.nE,$.cI,$.sp,$.eH,$.EV,(0,R.vF)(E.i` - :host { - forced-color-adjust: none; - background: ${A.H.ButtonText}; - opacity: 1; - } - :host(:hover), - :host([aria-selected="true"]:hover), - :host([aria-selected="true"]) { - background: ${A.H.Highlight}; - } - :host(:${D.b}) { - border-color: ${A.H.ButtonFace}; - box-shadow: 0 0 0 calc((var(--focus-outline-width) - var(--outline-width)) * 1px) - rgba(0,0,0,1), 0 0 0 calc((var(--focus-outline-width) + var(--outline-width)) * 1px) - ${A.H.ButtonText}; - } - `));let B=class extends I{};B=(0,r.gn)([(0,i.M)({name:"msft-info-pane-tab",template:T.O,styles:N})],B);var F,L,M=n(94731),Z=n(56461),H=n(33832),z=n(26007);!function(t){t._1_column="1_column",t._2_column="2_column"}(F||(F={})),function(t){t.vertical="vertical",t.horizontal="horizontal"}(L||(L={}));class U extends i.H{constructor(){super(),this.slideKeyPressHandler=(t,e)=>{this.adjust(e)},this.layout=F._2_column,this.orientation=L.horizontal,this.activeindicator=!1,this.showActiveIndicator=!0,this.prevActiveTabIndex=0,this.activeTabIndex=0,this.ticking=!1,this.change=()=>{this.$emit("change",this.activetab)},this.isDisabledElement=t=>"true"===t.getAttribute("aria-disabled"),this.isFocusableElement=t=>!this.isDisabledElement(t),this.setTabs=()=>{const t=this.isHorizontal()?"gridColumn":"gridRow";this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.activeTabIndex=this.getActiveIndex(),this.tabs.forEach(((e,n)=>{if("tab"===e.slot&&this.isFocusableElement(e)){this.activeindicator&&(this.showActiveIndicator=!0);const t=this.tabIds[n],r=this.tabpanelIds[n];e.setAttribute("id","string"!=typeof t?`tab-${n+1}`:t),e.setAttribute("aria-selected",this.activeTabIndex===n?"true":"false"),e.setAttribute("aria-controls","string"!=typeof r?`panel-${n+1}`:r),e.addEventListener("click",this.handleTabClick),e.addEventListener("keydown",this.handleTabKeyDown),e.setAttribute("tabindex",this.activeTabIndex===n?"0":"-1"),this.activeTabIndex===n&&(this.activetab=e)}else this.showActiveIndicator=!1;e.style[t]=`${n+1}`,this.isHorizontal()?e.classList.remove("vertical"):e.classList.add("vertical")}))},this.setTabPanels=()=>{this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.tabpanels.forEach(((t,e)=>{const n=this.tabIds[e],r=this.tabpanelIds[e];t.setAttribute("id","string"!=typeof r?`panel-${e+1}`:r),t.setAttribute("aria-labelledby","string"!=typeof n?`tab-${e+1}`:n),this.activeTabIndex!==e?t.setAttribute("hidden",""):t.removeAttribute("hidden")}))},this.handleTabClick=t=>{const e=t.currentTarget;1===e.nodeType&&(this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=this.tabs.indexOf(e),this.setComponent())},this.handleTabKeyDown=t=>{const e=t.keyCode;if(this.isHorizontal())switch(e){case H.BJ:t.preventDefault(),this.adjustBackward(t);break;case H.ho:t.preventDefault(),this.adjustForward(t)}else switch(e){case H.$Y:t.preventDefault(),this.adjustBackward(t);break;case H.Q6:t.preventDefault(),this.adjustForward(t)}switch(e){case H.wn:t.preventDefault(),this.adjust(-this.activeTabIndex);break;case H.$B:t.preventDefault(),this.adjust(this.tabs.length-this.activeTabIndex-1)}},this.adjustForward=t=>{const e=this.tabs;let n=0;for(n=this.activetab?e.indexOf(this.activetab)+1:1,n===e.length&&(n=0);n<e.length&&e.length>1;){if(this.isFocusableElement(e[n])){this.moveToTabByIndex(e,n);break}if(this.activetab&&n===e.indexOf(this.activetab))break;n+1>=e.length?n=0:n+=1}},this.adjustBackward=t=>{const e=this.tabs;let n=0;for(n=this.activetab?e.indexOf(this.activetab)-1:0,n=n<0?e.length-1:n;n>=0&&e.length>1;){if(this.isFocusableElement(e[n])){this.moveToTabByIndex(e,n);break}n-1<0?n=e.length-1:n-=1}},this.moveToTabByIndex=(t,e)=>{const n=t[e];this.activetab=n,this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=e,n.focus(),this.setComponent()},this.$fastController.addBehaviors([Z.PC])}handleChange(t,e){this.direction=t[e]}connectedCallback(){var t,e;super.connectedCallback(),this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.activeTabIndex=this.getActiveIndex(),this.direction||(this.direction=(null===(t=this.provider)||void 0===t?void 0:t.designSystem).direction||z.N.ltr);s.y$.getNotifier(null===(e=this.provider)||void 0===e?void 0:e.designSystem).subscribe(this,"direction"),this.activeindicator||(this.activeindicator=!1)}disconnectedCallback(){window.clearTimeout(this.timer)}autoScrollHandler(){this.timer=window.setTimeout((()=>{this.adjust(1,!0),this.autoScrollHandler()}),this.autoScrollIntervalMs||6e3)}autoScrollChanged(t,e){t!==e&&(e?this.autoScrollHandler():window.clearTimeout(this.timer))}activeidChanged(){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}tabsChanged(){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}tabpanelsChanged(){this.$fastController.isConnected&&this.tabpanels.length<=this.tabs.length&&(this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition(),this.$emit("tabpanels-changed",this.tabpanels))}getActiveIndex(){return void 0!==this.activeid?-1===this.tabIds.indexOf(this.activeid)?0:this.tabIds.indexOf(this.activeid):0}getTabIds(){return void 0===this.tabs?[null]:this.tabs.map((t=>t.getAttribute("id")))}getTabPanelIds(){return void 0===this.tabpanels?[null]:this.tabpanels.map((t=>t.getAttribute("id")))}setComponent(t){this.activeTabIndex!==this.prevActiveTabIndex&&(this.activeid=this.tabIds[this.activeTabIndex],this.change(),this.setTabs(),this.handleActiveIndicatorPosition(),this.setTabPanels(),t||this.focusTab(),this.change())}isHorizontal(){return this.orientation===L.horizontal}handleActiveIndicatorPosition(){this.showActiveIndicator&&this.activeindicator&&this.activeTabIndex!==this.prevActiveTabIndex&&(this.ticking?this.ticking=!1:(this.ticking=!0,this.animateActiveIndicator()))}animateActiveIndicator(){this.ticking=!0;const t=this.isHorizontal()?"gridColumn":"gridRow",e=this.isHorizontal()?"translateX":"translateY",n=this.isHorizontal()?"offsetLeft":"offsetTop",r=this.activeIndicatorRef[n];this.activeIndicatorRef.style[t]=`${this.activeTabIndex+1}`;const i=this.activeIndicatorRef[n];this.activeIndicatorRef.style[t]=`${this.prevActiveTabIndex+1}`;const o=i-r;this.activeIndicatorRef.style.transform=`${e}(${o}px)`,this.activeIndicatorRef.classList.add("activeIndicatorTransition"),this.activeIndicatorRef.addEventListener("transitionend",(()=>{this.ticking=!1,this.activeIndicatorRef.style[t]=`${this.activeTabIndex+1}`,this.activeIndicatorRef.style.transform=`${e}(0px)`,this.activeIndicatorRef.classList.remove("activeIndicatorTransition")}))}adjust(t,e){void 0!==this.tabs&&(this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=(0,M.w)(0,this.tabs.length-1,this.activeTabIndex+t),this.setComponent(e))}focusTab(){this.tabs[this.activeTabIndex].focus()}}(0,r.gn)([o.Lj],U.prototype,"layout",void 0),(0,r.gn)([(0,o.Lj)({attribute:"auto-scroll",mode:"boolean"})],U.prototype,"autoScroll",void 0),(0,r.gn)([(0,o.Lj)({attribute:"auto-scroll-interval-ms"})],U.prototype,"autoScrollIntervalMs",void 0),(0,r.gn)([s.LO],U.prototype,"nextFlipperTelemetryTag",void 0),(0,r.gn)([s.LO],U.prototype,"previousFlipperTelemetryTag",void 0),(0,r.gn)([s.LO],U.prototype,"direction",void 0),(0,r.gn)([o.Lj],U.prototype,"orientation",void 0),(0,r.gn)([o.Lj],U.prototype,"activeid",void 0),(0,r.gn)([s.LO],U.prototype,"tabs",void 0),(0,r.gn)([s.LO],U.prototype,"tabpanels",void 0),(0,r.gn)([(0,o.Lj)({mode:"boolean"})],U.prototype,"activeindicator",void 0),(0,r.gn)([s.LO],U.prototype,"activeIndicatorRef",void 0),(0,r.gn)([s.LO],U.prototype,"showActiveIndicator",void 0);var W,G=n(8582),V=n(63243);!function(t){t.next="next",t.previous="previous"}(W||(W={}));class q extends i.H{constructor(){super(...arguments),this.hiddenFromAT=!0,this.direction=W.next}}(0,r.gn)([(0,o.Lj)({mode:"boolean"})],q.prototype,"disabled",void 0),(0,r.gn)([(0,o.Lj)({attribute:"aria-hidden",converter:o.bw})],q.prototype,"hiddenFromAT",void 0),(0,r.gn)([o.Lj],q.prototype,"direction",void 0);const K=l.d` - <template - role="button" - aria-disabled="${t=>!!t.disabled||void 0}" - tabindex="${t=>t.hiddenFromAT?-1:0}" - class="${t=>t.direction} ${t=>t.disabled?"disabled":""}" - > - ${(0,V.g)((t=>t.direction===W.next),l.d` - <span part="next" class="next"> - <slot name="next"> - <svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"> - <path - d="M4.023 15.273L11.29 8 4.023.727l.704-.704L12.71 8l-7.984 7.977-.704-.704z" - /> - </svg> - </slot> - </span> - `)} - ${(0,V.g)((t=>t.direction===W.previous),l.d` - <span part="previous" class="previous"> - <slot name="previous"> - <svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"> - <path - d="M11.273 15.977L3.29 8 11.273.023l.704.704L4.71 8l7.266 7.273-.704.704z" - /> - </svg> - </slot> - </span> - `)} - </template> -`;var Y=n(9817),Q=n(45227);const X=E.i` - ${(0,O.j)("inline-flex")} :host { - width: calc(${Q.i} * 1px); - height: calc(${Q.i} * 1px); - justify-content: center; - align-items: center; - margin: 0; - position: relative; - fill: currentcolor; - color: ${$.sp.var}; - background: transparent; - border: none; - outline: none; - padding: 0; - } - - :host::before { - content: ""; - opacity: 0.8; - background: ${$.Br.var}; - border: calc(var(--outline-width) * 1px) solid ${$.Fv.var}; - border-radius: 50%; - position: absolute; - top: 0; - right: 0; - left: 0; - bottom: 0; - transition: all 0.1s ease-in-out; - } - - .next, - .previous { - position: relative; - ${""} width: 16px; - height: 16px; - } - - :host(.disabled) { - opacity: var(--disabled-opacity); - cursor: ${Y.H}; - } - - :host(:hover) { - cursor: pointer; - } - - :host(:hover)::before { - background: ${$.Cs.var}; - border-color: ${$.Xt.var}; - } - - :host(:${D.b}) { - outline: none; - } - - :host(:${D.b})::before { - box-shadow: 0 0 0 1px ${$.cI.var} inset; - border-color: ${$.cI.var}; - } - - :host(:active)::before { - background: ${$.Nv.var}; - border-color: ${$.i2.var}; - } - - :host::-moz-focus-inner { - border: 0; - } -`.withBehaviors($.Nv,$.Cs,$.Br,$.cI,$.sp,$.i2,$.Xt,$.Fv,(0,R.vF)(E.i` - :host { - background: ${A.H.Canvas}; - } - :host .next, - :host .previous { - color: ${A.H.ButtonText}; - fill: currentcolor; - } - :host::before { - background: ${A.H.Canvas}; - border-color: ${A.H.ButtonText}; - } - :host(:hover)::before { - forced-color-adjust: none; - background: ${A.H.Highlight}; - border-color: ${A.H.ButtonText}; - opacity: 1; - } - :host(:hover) .next, - :host(:hover) .previous { - forced-color-adjust: none; - color: ${A.H.HighlightText}; - fill: currentcolor; - } - :host(.disabled) { - opacity: 1; - } - :host(.disabled)::before, - :host(.disabled:hover)::before, - :host(.disabled) .next, - :host(.disabled) .previous, - :host(.disabled:hover) .next, - :host(.disabled:hover) .previous { - forced-color-adjust: none; - background: ${A.H.Canvas}; - border-color: ${A.H.GrayText}; - color: ${A.H.GrayText}; - fill: ${A.H.GrayText}; - } - :host(:${D.b})::before { - forced-color-adjust: none; - border-color: ${A.H.Highlight}; - box-shadow: 0 0 0 2px ${A.H.Field}, 0 0 0 4px ${A.H.FieldText}; - } - `));let J=class extends q{};J=(0,r.gn)([(0,i.M)({name:"fluent-flipper",template:K,styles:X,shadowOptions:{mode:"closed"}})],J);var tt=n(70188);const et=l.d` - <slot name="previous-flipper"> - <fluent-flipper - part="previous-flipper" - class="previous-flipper" - direction="${t=>t.direction===z.N.rtl?"next":"previous"}" - @keypress="${(t,e)=>t.slideKeyPressHandler(e.event,-1)}" - @click="${(t,e)=>t.slideKeyPressHandler(e.event,-1)}" - ${(0,tt.X)((t=>t.previousFlipperTelemetryTag))} - > - </fluent-flipper> - </slot> - ${G.hX} - <div class="tablist" part="tablist" role="tablist"> - <slot class="tab" name="tab" part="tab" ${(0,_.Q)("tabs")}></slot> - - ${(0,V.g)((t=>t.activeindicator),l.d` - <div - ${(0,x.i)("activeIndicatorRef")} - class="activeIndicator" - part="activeIndicator" - ></div> - `)} - </div> - <slot name="next-flipper"> - <fluent-flipper - part="next-flipper" - class="next-flipper" - direction="${t=>t.direction===z.N.rtl?"previous":"next"}" - @keypress="${(t,e)=>t.slideKeyPressHandler(e.event,1)}" - @click="${(t,e)=>t.slideKeyPressHandler(e.event,1)}" - ${(0,tt.X)((t=>t.nextFlipperTelemetryTag))} - > - </fluent-flipper> - </slot> - - ${G.zq} - <div class="tabpanel"> - <slot name="tabpanel" part="tabpanel" ${(0,_.Q)("tabpanels")}></slot> - </div> -`;var nt=n(7642);const rt=E.i` - ${(0,O.j)("grid")} :host { - --elevation: 4; - box-sizing: border-box; - font-family: var(--body-font); - font-size: var(--type-ramp-base-font-size); - line-height: var(--type-ramp-base-line-height); - color: ${$.sp.var}; - background: ${$.BO.var}; - border-radius: calc(var(--elevated-corner-radius) * 1px); - ${nt.XC}; - overflow: hidden; - height: 100%; - grid-template-columns: auto 1fr auto; - grid-template-rows: auto 1fr; - width: 100%; - } - - :host(:hover) ::slotted([slot="previous-flipper"]), - :host(:hover) .previous-flipper, - :host(:hover) ::slotted([slot="next-flipper"]), - :host(:hover) .next-flipper { - opacity: 1; - transition: opacity 0.2s ease-in-out; - } - - .tablist { - display: grid; - grid-template-rows: auto auto; - grid-template-columns: auto; - position: relative; - width: max-content; - align-self: center; - justify-self: center; - grid-row: 1; - grid-column: 1 / span 3; - z-index: 3; - cursor: pointer; - } - - ::slotted([slot="previous-flipper"]), - .previous-flipper { - margin: 8px; - grid-column: 1; - grid-row: 1 / span 2; - align-self: center; - z-index: 2; - opacity: 0; - } - - ::slotted([slot="next-flipper"]), - .next-flipper { - margin: 8px; - grid-column: 3; - grid-row: 1 / span 2; - align-self: center; - z-index: 2; - opacity: 0; - } - - :host([layout="1-column"]) { - --heading-font-size: var(--type-ramp-base-font-size); - --heading-line-height: var(--type-ramp-base-line-height); - } - - .activeIndicator { - grid-row: 2; - grid-column: 1; - width: 20px; - height: 3px; - border-radius: calc(var(--corner-radius) * 1px); - justify-self: center; - background: ${$.iq.var}; - } - - .activeIndicatorTransition { - transition: transform 0.2s ease-in-out; - } - - .tabpanel { - grid-row: 1/3; - grid-column-start: 1; - grid-column-end: 4; - position: relative; - } -`.withBehaviors($.iq,$.sp,(0,R.vF)(E.i` - .activeIndicator { - forced-color-adjust: none; - background: ${A.H.Highlight}; - } - .tablist { - background: ${A.H.Canvas}; - } - `));let it=class extends U{};it=(0,r.gn)([(0,i.M)({name:"msft-info-pane",template:et,styles:rt})],it);var ot=n(36570);const st=E.i` - .previous-flipper { - left: 8px; - } - - .next-flipper { - right: 8px; - } -`,at=E.i` - .previous-flipper { - right: 8px; - } - - .next-flipper { - left: 8px; - } -`,lt=E.i` - ${(0,O.j)("grid")} :host { - display: grid; - grid-template-columns: auto 1fr auto; - grid-template-rows: auto; - position: relative; - box-sizing: border-box; - color: ${$.sp.var}; - fill: currentcolor; - font-size: var(--type-ramp-base-font-size); - line-height: var(--type-ramp-base-line-height); - --tab-min-height: 8px; - --tab-margin-top: 10px; - } - - .previous-flipper-container, - .next-flipper-container { - position: relative; - height: 100%; - min-width: 32px; - } - - .previous-flipper-container { - grid-column: 1; - grid-row: 1; - } - - .next-flipper-container { - grid-column: 3; - grid-row: 1; - } - - .previous-flipper, - .next-flipper { - position: absolute; - top: calc(var(--banner-image-height) / 2); - z-index: 2; - } - - .next-flipper::before, - .previous-flipper::before { - --elevation: 4; - ${nt.XC}; - } - - .tablist { - display: flex; - width: max-content; - justify-self: center; - z-index: 3; - cursor: pointer; - position: absolute; - top: calc( - var(--banner-image-height, 346px) - var(--tab-min-height) - - var(--tab-margin-top) - ); - transform: translate(0, -50%); - } - - .tabpanels { - grid-row: 1; - grid-column-start: 1; - grid-column-end: 4; - position: relative; - display: flex; - flex-direction: column; - } - - ::slotted([slot="tab"]) { - min-width: 8px; - min-height: var(--tab-min-height); - margin: var(--tab-margin-top) 8px; - } - - ::slotted([slot="tab"][aria-selected="true"]) { - min-width: 8px; - } -`.withBehaviors(new ot.O(st,at),$.sp);let ct=class extends it{constructor(){super(...arguments),this.adjustForward=t=>{const e=this.tabs;let n=0;if(n=this.activetab?e.indexOf(this.activetab)+1:1,n>=e.length)n=e.length-1;else for(n===e.length&&(n=0);n<e.length&&e.length>1;){if(this.isFocusableElement(e[n])){this.moveToTabByIndex(e,n);break}if(this.activetab&&n===e.indexOf(this.activetab))break;n+1>=e.length?n=0:n+=1}},this.adjustBackward=t=>{const e=this.tabs;let n=0;if(n=this.activetab?e.indexOf(this.activetab)-1:0,n<0)n=0;else for(n=n<0?e.length-1:n;n>=0&&e.length>1;){if(this.isFocusableElement(e[n])){this.moveToTabByIndex(e,n);break}n-1<0?n=e.length-1:n-=1}}}adjust(t,e){void 0!==this.tabs&&(this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=(0,M.b)(0,this.tabs.length-1,this.activeTabIndex+t),this.setComponent(e))}toggleFlipperVisibility(){0===this.activeTabIndex?this.previousFlipper.setAttribute("hidden","hidden"):this.previousFlipper.removeAttribute("hidden"),this.activeTabIndex===this.tabs.length-1?this.nextFlipper.setAttribute("hidden","hidden"):this.nextFlipper.removeAttribute("hidden")}setComponent(t){super.setComponent(),this.activeTabIndex!==this.prevActiveTabIndex&&this.toggleFlipperVisibility()}connectedCallback(){super.connectedCallback(),this.toggleFlipperVisibility()}};ct=(0,r.gn)([(0,i.M)({name:"msft-edge-transparent-ad-providers-fre-carousel",template:l.d` - <template> - <div class="previous-flipper-container" part="previous-flipper-container"> - <slot name="previous-flipper"> - <fluent-flipper - part="previous-flipper" - class="previous-flipper" - direction="${t=>t.direction===z.N.rtl?"next":"previous"}" - @keypress="${(t,e)=>t.slideKeyPressHandler(e.event,-1)}" - @click="${(t,e)=>t.slideKeyPressHandler(e.event,-1)}" - ${(0,tt.X)((t=>t.previousFlipperTelemetryTag))} - ${(0,x.i)("previousFlipper")} - > - </fluent-flipper> - </slot> - </div> - <div class="tablist" part="tablist" role="tablist"> - <slot class="tab" name="tab" part="tab" ${(0,_.Q)("tabs")}></slot> - </div> - <div class="next-flipper-container" part="next-flipper-container"> - <slot name="next-flipper"> - <fluent-flipper - part="next-flipper" - class="next-flipper" - direction="${t=>t.direction===z.N.rtl?"previous":"next"}" - @keypress="${(t,e)=>t.slideKeyPressHandler(e.event,1)}" - @click="${(t,e)=>t.slideKeyPressHandler(e.event,1)}" - ${(0,tt.X)((t=>t.nextFlipperTelemetryTag))} - ${(0,x.i)("nextFlipper")} - > - </fluent-flipper> - </slot> - </div> - <div class="tabpanels" part="tabpanels"> - <slot name="tabpanel" part="tabpanel" ${(0,_.Q)("tabpanels")}></slot> - </div> - </template> - `,styles:lt})],ct);const ut=l.d` - <template> - <header class="header" part="header"> - <div class="heading-icon-container" part="heading-icon-container"> - <slot name="heading-icon"></slot> - </div> - <div class="title-container" part="title-container"> - <span class="title" part="title">${t=>t.title}</span> - <span class="sub-title" part="sub-title">${t=>t.subTitle}</span> - </div> - <slot name="close-button"></slot> - </header> - <msft-edge-transparent-ad-providers-fre-carousel> - ${y((t=>t.contentData),l.d` - <msft-info-pane-tab - class="tab" - aria-label="${t=>t.ariaLabel}" - ></msft-info-pane-tab> - `)} - ${y((t=>t.contentData),l.d` - <msft-info-pane-panel class="tabpanel"> - <img class="panel-img" src="${t=>t.imageUrl}" /> - <h1 class="panel-header">${t=>t.title}</h1> - <p class="panel-description">${t=>t.description}</p> - </msft-info-pane-panel> - `)} - </msft-edge-transparent-ad-providers-fre-carousel> - <div class="content" part="content"> - <slot></slot> - </div> - <footer - class="${t=>t.footerSlottedNodes&&t.footerSlottedNodes.length?"footer":"footer__hidden"}" - part="footer" - ${(0,x.i)("footerContainer")} - > - <slot name="footer" ${(0,x.i)("footer")} ${(0,_.Q)("footerSlottedNodes")}></slot> - </footer> - </template> -`,dt=E.i` - ${(0,O.j)("flex")} :host { - flex-direction: column; - box-sizing: border-box; - color: ${$.sp.var}; - fill: currentcolor; - font-size: var(--type-ramp-base-font-size); - line-height: var(--type-ramp-base-line-height); - position: relative; - } - - .header { - display: grid; - grid-template-columns: auto auto 1fr; - align-items: center; - box-sizing: border-box; - font-size: var(--type-ramp-base-font-size); - line-height: var(--type-ramp-base-line-height); - font-weight: 600; - padding-top: 9px; - padding-bottom: 11px; - padding-inline: 11px; - border-bottom: calc(var(--outline-width) * 1px) solid - ${$.I.var}; - } - - ::slotted([slot="heading-icon"]) { - margin-inline-end: 8px; - } - - .heading-icon-container { - display: flex; - } - - ::slotted([slot="close-button"]) { - justify-self: end; - } - - .sub-title { - font-size: var(--type-ramp-minus-1-font-size); - line-height: var(--type-ramp-minus-1-line-height); - } - - .title-container { - display: flex; - flex-direction: column; - } - - .tabpanel { - flex-direction: column; - text-align: center; - } - - .panel-img { - align-self: center; - } - - .panel-header { - font-size: 20px; - line-height: 28px; - font-weight: 400; - margin: 9px 24px; - } - - .panel-description { - font-size: 12px; - line-height: 16px; - margin: 9px 18px; - } - - .footer { - display: flex; - align-items: center; - justify-content: center; - padding: 10px 12px; - margin-top: auto; - } - - .footer__hidden { - display: none; - } -`.withBehaviors($.I,$.sp);let pt=class extends a{};pt=(0,r.gn)([(0,i.M)({name:"msft-edge-transparent-ad-providers-fre",template:ut,styles:dt})],pt)},22132:(t,e,n)=>{"use strict";n.d(e,{z:()=>ot});var r,i=n(33940),o=n(65226),s=n(29163),a=n(58520),l=n(33832),c=n(94731),u=n(8582),d=n(9740);!function(t){t.vertical="vertical",t.horizontal="horizontal"}(r||(r={}));class p extends o.H{constructor(){super(...arguments),this.orientation=r.horizontal,this.activeindicator=!0,this.showActiveIndicator=!0,this.prevActiveTabIndex=0,this.activeTabIndex=0,this.ticking=!1,this.change=()=>{this.$emit("change",this.activetab)},this.isDisabledElement=t=>"true"===t.getAttribute("aria-disabled"),this.isFocusableElement=t=>!this.isDisabledElement(t),this.setTabs=()=>{const t=this.isHorizontal()?"gridColumn":"gridRow";this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.activeTabIndex=this.getActiveIndex(),this.showActiveIndicator=!1,this.tabs.forEach(((e,n)=>{if("tab"===e.slot&&this.isFocusableElement(e)){this.activeindicator&&(this.showActiveIndicator=!0);const t=this.tabIds[n],r=this.tabpanelIds[n];e.setAttribute("id","string"!=typeof t?`tab-${n+1}`:t),e.setAttribute("aria-selected",this.activeTabIndex===n?"true":"false"),e.setAttribute("aria-controls","string"!=typeof r?`panel-${n+1}`:r),e.addEventListener("click",this.handleTabClick),e.addEventListener("keydown",this.handleTabKeyDown),e.setAttribute("tabindex",this.activeTabIndex===n?"0":"-1"),this.activeTabIndex===n&&(this.activetab=e)}e.style[t]=`${n+1}`,this.isHorizontal()?e.classList.remove("vertical"):e.classList.add("vertical")}))},this.setTabPanels=()=>{this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.tabpanels.forEach(((t,e)=>{const n=this.tabIds[e],r=this.tabpanelIds[e];t.setAttribute("id","string"!=typeof r?`panel-${e+1}`:r),t.setAttribute("aria-labelledby","string"!=typeof n?`tab-${e+1}`:n),this.activeTabIndex!==e?t.setAttribute("hidden",""):t.removeAttribute("hidden")}))},this.handleTabClick=t=>{const e=t.currentTarget;1===e.nodeType&&(this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=this.tabs.indexOf(e),this.setComponent())},this.handleTabKeyDown=t=>{const e=t.keyCode;if(this.isHorizontal())switch(e){case l.BJ:t.preventDefault(),this.adjustBackward(t);break;case l.ho:t.preventDefault(),this.adjustForward(t)}else switch(e){case l.$Y:t.preventDefault(),this.adjustBackward(t);break;case l.Q6:t.preventDefault(),this.adjustForward(t)}switch(e){case l.wn:t.preventDefault(),this.adjust(-this.activeTabIndex);break;case l.$B:t.preventDefault(),this.adjust(this.tabs.length-this.activeTabIndex-1)}},this.adjustForward=t=>{const e=this.tabs;let n=0;for(n=this.activetab?e.indexOf(this.activetab)+1:1,n===e.length&&(n=0);n<e.length&&e.length>1;){if(this.isFocusableElement(e[n])){this.moveToTabByIndex(e,n);break}if(this.activetab&&n===e.indexOf(this.activetab))break;n+1>=e.length?n=0:n+=1}},this.adjustBackward=t=>{const e=this.tabs;let n=0;for(n=this.activetab?e.indexOf(this.activetab)-1:0,n=n<0?e.length-1:n;n>=0&&e.length>1;){if(this.isFocusableElement(e[n])){this.moveToTabByIndex(e,n);break}n-1<0?n=e.length-1:n-=1}},this.moveToTabByIndex=(t,e)=>{const n=t[e];this.activetab=n,this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=e,n.focus(),this.setComponent()}}activeidChanged(){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}tabsChanged(){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}tabpanelsChanged(){this.$fastController.isConnected&&this.tabpanels.length<=this.tabs.length&&(this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}getActiveIndex(){return void 0!==this.activeid?-1===this.tabIds.indexOf(this.activeid)?0:this.tabIds.indexOf(this.activeid):0}getTabIds(){return this.tabs.map((t=>t.getAttribute("id")))}getTabPanelIds(){return this.tabpanels.map((t=>t.getAttribute("id")))}setComponent(){this.activeTabIndex!==this.prevActiveTabIndex&&(this.activeid=this.tabIds[this.activeTabIndex],this.change(),this.setTabs(),this.handleActiveIndicatorPosition(),this.setTabPanels(),this.focusTab(),this.change())}isHorizontal(){return this.orientation===r.horizontal}handleActiveIndicatorPosition(){this.showActiveIndicator&&this.activeindicator&&this.activeTabIndex!==this.prevActiveTabIndex&&(this.ticking?this.ticking=!1:(this.ticking=!0,this.animateActiveIndicator()))}animateActiveIndicator(){this.ticking=!0;const t=this.isHorizontal()?"gridColumn":"gridRow",e=this.isHorizontal()?"translateX":"translateY",n=this.isHorizontal()?"offsetLeft":"offsetTop",r=this.activeIndicatorRef[n];this.activeIndicatorRef.style[t]=`${this.activeTabIndex+1}`;const i=this.activeIndicatorRef[n];this.activeIndicatorRef.style[t]=`${this.prevActiveTabIndex+1}`;const o=i-r;this.activeIndicatorRef.style.transform=`${e}(${o}px)`,this.activeIndicatorRef.classList.add("activeIndicatorTransition"),this.activeIndicatorRef.addEventListener("transitionend",(()=>{this.ticking=!1,this.activeIndicatorRef.style[t]=`${this.activeTabIndex+1}`,this.activeIndicatorRef.style.transform=`${e}(0px)`,this.activeIndicatorRef.classList.remove("activeIndicatorTransition")}))}adjust(t){this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=(0,c.w)(0,this.tabs.length-1,this.activeTabIndex+t),this.setComponent()}focusTab(){this.tabs[this.activeTabIndex].focus()}connectedCallback(){super.connectedCallback(),this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.activeTabIndex=this.getActiveIndex()}}(0,i.gn)([s.Lj],p.prototype,"orientation",void 0),(0,i.gn)([s.Lj],p.prototype,"activeid",void 0),(0,i.gn)([a.LO],p.prototype,"tabs",void 0),(0,i.gn)([a.LO],p.prototype,"tabpanels",void 0),(0,i.gn)([(0,s.Lj)({mode:"boolean"})],p.prototype,"activeindicator",void 0),(0,i.gn)([a.LO],p.prototype,"activeIndicatorRef",void 0),(0,i.gn)([a.LO],p.prototype,"showActiveIndicator",void 0),(0,d.e)(p,u.hW);var h=n(90563),f=n(37955),g=n(63243),v=n(91106);const b=h.d` - <template class="${t=>t.orientation}"> - ${u.hX} - <div class="tablist" part="tablist" role="tablist"> - <slot class="tab" name="tab" part="tab" ${(0,f.Q)("tabs")}></slot> - - ${(0,g.g)((t=>t.showActiveIndicator),h.d` - <div - ${(0,v.i)("activeIndicatorRef")} - class="activeIndicator" - part="activeIndicator" - ></div> - `)} - </div> - ${u.zq} - <div class="tabpanel"> - <slot name="tabpanel" part="tabpanel" ${(0,f.Q)("tabpanels")}></slot> - </div> - </template> -`;var m=n(76298),y=n(15933),x=n(93718),_=n(68421),w=n(25914);const C=m.i` - ${(0,x.j)("grid")} :host { - box-sizing: border-box; - font-family: var(--body-font); - font-size: var(--type-ramp-base-font-size); - line-height: var(--type-ramp-base-line-height); - color: ${w.sp.var}; - grid-template-columns: auto 1fr auto; - grid-template-rows: auto 1fr; - } - - .tablist { - display: grid; - grid-template-rows: auto auto; - grid-template-columns: auto; - position: relative; - width: max-content; - align-self: end; - } - - .start, - .end { - align-self: center; - } - - .activeIndicator { - grid-row: 2; - grid-column: 1; - width: 20px; - height: 3px; - border-radius: calc(var(--corner-radius) * 1px); - justify-self: center; - background: ${w.iq.var}; - } - - .activeIndicatorTransition { - transition: transform 0.2s ease-in-out; - } - - .tabpanel { - grid-row: 2; - grid-column-start: 1; - grid-column-end: 4; - position: relative; - } - - :host(.vertical) { - grid-template-rows: auto 1fr auto; - grid-template-columns: auto 1fr; - } - - :host(.vertical) .tablist { - grid-row-start: 2; - grid-row-end: 2; - display: grid; - grid-template-rows: auto; - grid-template-columns: auto 1fr; - position: relative; - width: max-content; - justify-self: end; - width: 100%; - } - - :host(.vertical) .tabpanel { - grid-column: 2; - grid-row-start: 1; - grid-row-end: 4; - } - - :host(.vertical) .end { - grid-row: 3; - } - - :host(.vertical) .activeIndicator { - grid-column: 1; - grid-row: 1; - width: 3px; - height: 20px; - border-radius: calc(var(--corner-radius) * 1px); - align-self: center; - background: ${w.iq.var}; - } - - :host(.vertical) .activeIndicatorTransition { - transition: transform 0.2s linear; - } -`.withBehaviors(w.iq,w.sp,(0,_.vF)(m.i` - .activeIndicator, - :host(.vertical) .activeIndicator { - forced-color-adjust: none; - background: ${y.H.Highlight}; - } - `));let S=class extends p{};S=(0,i.gn)([(0,o.M)({name:"fluent-tabs",template:b,styles:C,shadowOptions:{mode:"closed"}})],S);var E=n(21404),O=n(3960),j=n(67845),P=n(45227);const k=m.i` - ${(0,x.j)("inline-flex")} :host { - box-sizing: border-box; - font-family: var(--body-font); - ${""} font-size: 12px; - font-weight: 400; - line-height: 18px; - height: calc(${P.i} * 1px); - padding: 0 calc((6 + (var(--design-unit) * 2 * var(--density))) * 1px); - color: ${w.sp.var}; - border-radius: calc(var(--corner-radius) * 1px); - border: calc(var(--outline-width) * 1px) solid transparent; - align-items: center; - justify-content: center; - grid-row: 1; - cursor: pointer; - } - - :host([aria-selected="true"]) { - z-index: 2; - } - - :host(:hover) { - color: ${w.eH.var}; - } - - :host(:active) { - color: ${w.EV.var}; - } - - :host(:${j.b}) { - outline: none; - border: calc(var(--outline-width) * 1px) solid ${w.cI.var}; - box-shadow: 0 0 0 calc((var(--focus-outline-width) - var(--outline-width)) * 1px) - ${w.cI.var}; - } - - :host(:focus) { - outline: none; - } - - :host(.vertical) { - justify-content: end; - grid-column: 2 - } - - :host(.vertical[aria-selected="true"]) { - z-index: 2; - } - - :host(.vertical:hover) { - color: ${w.eH.var}; - } - - :host(.vertical:active) { - color: ${w.EV.var}; - } - - :host(.vertical:hover[aria-selected="true"]) { - } -`.withBehaviors(w.cI,w.sp,w.eH,w.EV,(0,_.vF)(m.i` - :host { - forced-color-adjust: none; - border-color: transparent; - color: ${y.H.ButtonText}; - fill: currentcolor; - } - :host(:hover), - :host(.vertical:hover), - :host([aria-selected="true"]:hover) { - background: ${y.H.Highlight}; - color: ${y.H.HighlightText}; - fill: currentcolor; - } - :host([aria-selected="true"]) { - background: ${y.H.HighlightText}; - color: ${y.H.Highlight}; - fill: currentcolor; - } - :host(:${j.b}) { - border-color: ${y.H.ButtonText}; - box-shadow: none; - } - `));let I=class extends E.O{};I=(0,i.gn)([(0,o.M)({name:"fluent-tab",template:O.O,styles:k,shadowOptions:{mode:"closed"}})],I);var T=n(2814),A=n(13709);const D=m.i` - ${(0,x.j)("flex")} :host { - box-sizing: border-box; - font-family: var(--body-font); - ${""} font-size: 12px; - font-weight: 400; - line-height: 18px; - padding: 0 calc((6 + (var(--design-unit) * 2 * var(--density))) * 1px); - } -`;let R=class extends T.x{};R=(0,i.gn)([(0,o.M)({name:"fluent-tab-panel",template:A.Y,styles:D,shadowOptions:{mode:"closed"}})],R);var $=n(45930),N=n(78943);class B extends o.H{constructor(){super(...arguments),this.modal=!0,this.hidden=!1,this.trapFocus=!0,this.onChildListChange=t=>{t.length&&(this.tabbableElements=(0,N.tabbable)(this))},this.trapFocusChanged=()=>{this.trapFocus?(this.tabbableElements=(0,N.tabbable)(this),document.addEventListener("focusin",this.handleDocumentFocus),this.shouldForceFocus(document.activeElement)&&this.focusFirstElement()):document.removeEventListener("focusin",this.handleDocumentFocus)},this.handleDocumentKeydown=t=>{if(!t.defaultPrevented&&!this.hidden)switch(t.keyCode){case l.Lp:this.dismiss();break;case l.RN:this.handleTabKeyDown(t)}},this.handleDocumentFocus=t=>{!t.defaultPrevented&&this.shouldForceFocus(t.target)&&(this.focusFirstElement(),t.preventDefault())},this.handleTabKeyDown=t=>{if(!this.trapFocus)return;const e=this.tabbableElements.length;if(0===e)return this.dialog.focus(),void t.preventDefault();t.shiftKey&&t.target===this.tabbableElements[0]?(this.tabbableElements[e-1].focus(),t.preventDefault()):t.shiftKey||t.target!==this.tabbableElements[e-1]||(this.tabbableElements[0].focus(),t.preventDefault())},this.focusFirstElement=()=>{0===this.tabbableElements.length?this.dialog.focus():this.tabbableElements[0].focus()},this.shouldForceFocus=t=>!this.hidden&&!this.contains(t)}dismiss(){this.$emit("dismiss")}show(){this.hidden=!1}hide(){this.hidden=!0}connectedCallback(){super.connectedCallback(),this.observer=new MutationObserver(this.onChildListChange),this.observer.observe(this,{childList:!0}),document.addEventListener("keydown",this.handleDocumentKeydown),$.SO.queueUpdate(this.trapFocusChanged)}disconnectedCallback(){super.disconnectedCallback(),this.observer.disconnect(),document.removeEventListener("keydown",this.handleDocumentKeydown),this.trapFocus&&document.removeEventListener("focusin",this.handleDocumentFocus)}}(0,i.gn)([(0,s.Lj)({mode:"boolean"})],B.prototype,"modal",void 0),(0,i.gn)([(0,s.Lj)({mode:"boolean"})],B.prototype,"hidden",void 0),(0,i.gn)([(0,s.Lj)({attribute:"trap-focus",mode:"boolean"})],B.prototype,"trapFocus",void 0),(0,i.gn)([(0,s.Lj)({attribute:"aria-describedby"})],B.prototype,"ariaDescribedby",void 0),(0,i.gn)([(0,s.Lj)({attribute:"aria-labelledby"})],B.prototype,"ariaLabelledby",void 0),(0,i.gn)([(0,s.Lj)({attribute:"aria-label"})],B.prototype,"ariaLabel",void 0);const F=h.d` - <div class="positioning-region" part="positioning-region"> - ${(0,g.g)((t=>t.modal),h.d` - <div - class="overlay" - part="overlay" - role="presentation" - tabindex="-1" - @click="${t=>t.dismiss()}" - ></div> - `)} - <div - role="dialog" - class="control" - part="control" - aria-modal="${t=>t.modal}" - aria-describedby="${t=>t.ariaDescribedby}" - aria-labelledby="${t=>t.ariaLabelledby}" - aria-label="${t=>t.ariaLabel}" - ${(0,v.i)("dialog")} - > - <slot></slot> - </div> - </div> -`;var L=n(7642);const M=m.i` - :host([hidden]) { - display: none; - } - - :host { - --elevation: 14; - --dialog-height: 480px; - --dialog-width: 640px; - display: block; - } - - .overlay { - position: fixed; - top: 0; - left: 0; - right: 0; - bottom: 0; - background: rgba(0, 0, 0, 0.3); - touch-action: none; - } - - .positioning-region { - display: flex; - justify-content: center; - position: fixed; - top: 0; - bottom: 0; - left: 0; - right: 0; - overflow: auto; - } - - .control { - ${L.XC} - margin-top: auto; - margin-bottom: auto; - border-radius: calc(var(--elevated-corner-radius) * 1px); - width: var(--dialog-width); - height: var(--dialog-height); - background: var(--background-color); - z-index: 1; - border: calc(var(--outline-width) * 1px) solid transparent; - } -`;let Z=class extends B{};Z=(0,i.gn)([(0,o.M)({name:"fluent-dialog",template:F,styles:M})],Z);const H=M;class z extends Z{connectedCallback(){super.connectedCallback(),null!==this.footerLayout&&void 0!==this.footerLayout||(this.footerLayout="stretch")}}(0,i.gn)([(0,s.Lj)({attribute:"footer-layout",mode:"fromView"})],z.prototype,"footerLayout",void 0),(0,i.gn)([a.LO],z.prototype,"headingSlottedNodes",void 0),(0,i.gn)([a.LO],z.prototype,"closeButtonSlottedNodes",void 0),(0,i.gn)([a.LO],z.prototype,"footerActionNodes",void 0),(0,i.gn)([a.LO],z.prototype,"childElements",void 0);var U=n(42968),W=n(14671),G=n(53125);const V=h.d` - <template ${(0,U.p)({property:"childElements",filter:(0,W.R)()})}> - <div class="positioning-region" part="positioning-region"> - ${(0,g.g)((t=>t.modal),h.d` - <div - class="overlay" - part="overlay" - role="presentation" - tabindex="-1" - @click="${t=>t.dismiss()}" - ></div> - `)} - <div - role="dialog" - class="control" - part="control" - aria-modal="${t=>t.modal}" - aria-describedby="${t=>t.ariaDescribedby}" - aria-labelledby="${t=>t.ariaLabelledby}" - aria-label="${t=>t.ariaLabel}" - ${(0,v.i)("dialog")} - > - <slot name="close-button"></slot> - ${(0,g.g)((t=>(0,G._)("heading",t.childElements)),h.d` - <header class="header" part="header"> - <slot name="heading" ${(0,f.Q)("headingSlottedNodes")}></slot> - </header> - `)} - <div class="content" part="content"> - <slot></slot> - </div> - ${(0,g.g)((t=>(0,G._)("footer-action",t.childElements)),h.d` - <footer class="${t=>`${t.footerLayout} footer`}" part="footer"> - <slot - name="footer-action" - ${(0,f.Q)("footerActionNodes")} - ></slot> - </footer> - `)} - </div> - </div> - </template> -`;var q=n(36570);const K=m.i` - ::slotted([slot="close-button"]) { - right: 12px; - } -`,Y=m.i` - ::slotted([slot="close-button"]) { - left: 12px; - } -`,Q=m.i` - .control { - padding: 24px; - display: flex; - flex-direction: column; - position: relative; - } - - .header { - display: flex; - position: relative; - align-items: center; - margin-bottom: 8px; - } - - ::slotted([slot="heading"]) { - font-size: var(--type-ramp-plus-1-font-size); - line-height: var(--type-ramp-plus-1-line-height); - margin: 0; - font-weight: 600; - } - - ::slotted([slot="close-button"]) { - position: absolute; - top: 12px; - align-items: center; - } - - .content { - flex: 1 1 0; - font-size: var(--type-ramp-minus-1-font-size); - } - - .footer { - display: flex; - align-items: center; - margin-top: 18px; - grid-gap: 8px; - } - - .footer.stretch ::slotted([slot="footer-action"]) { - flex-grow: 1; - } - - .footer.stretch { - justify-content: space-between; - } - - .footer.start { - justify-content: flex-start; - } - - .footer.center { - justify-content: center; - } - - .footer.end { - justify-content: flex-end; - } -`.withBehaviors(new q.O(K,Y),w.I);let X=class extends z{};X=(0,i.gn)([(0,o.M)({name:"msft-edge-dialog",template:V,styles:[H,Q]})],X);var J=n(95659);class tt extends o.H{}(0,i.gn)([(0,s.Lj)({mode:"fromView"})],tt.prototype,"title",void 0),(0,i.gn)([(0,s.Lj)({mode:"fromView",attribute:"sub-title"})],tt.prototype,"subTitle",void 0);const et=h.d` - <header class="header" part="header"> - <div class="heading-icon-container" part="heading-icon-container"> - <slot name="heading-icon"></slot> - </div> - <div class="title-container" part="title-container"> - <span class="title" part="title">${t=>t.title}</span> - <span class="sub-title" part="sub-title">${t=>t.subTitle}</span> - </div> - <slot name="close-button"></slot> - </header> - <div class="content" part="content"> - <slot></slot> - </div> -`,nt=m.i` - .tab-panel { - padding-inline-start: 13px; - padding-inline-end: 11px; - } -`,rt=m.i` - .tab-panel { - padding-inline-end: 13px; - padding-inline-start: 11px; - } -`,it=m.i` - ${(0,x.j)("flex")} :host { - flex-direction: column; - box-sizing: border-box; - color: ${w.sp.var}; - fill: currentcolor; - font-size: var(--type-ramp-base-font-size); - line-height: var(--type-ramp-base-line-height); - position: relative; - } - - .header { - display: grid; - grid-template-columns: auto auto 1fr; - align-items: center; - box-sizing: border-box; - font-size: var(--type-ramp-base-font-size); - line-height: var(--type-ramp-base-line-height); - font-weight: 600; - padding-top: 9px; - padding-bottom: 11px; - padding-inline: 11px; - border-bottom: calc(var(--outline-width) * 1px) solid - ${w.I.var}; - } - - ::slotted([slot="heading-icon"]) { - margin-inline-end: 8px; - } - - .heading-icon-container { - display: flex; - } - - ::slotted([slot="close-button"]) { - justify-self: end; - } - - .sub-title { - font-size: var(--type-ramp-minus-1-font-size); - line-height: var(--type-ramp-minus-1-line-height); - } - - .title-container { - display: flex; - flex-direction: column; - } - - .content { - display: flex; - flex-direction: column; - flex: 1 1 0; - margin: 12px; - font-size: var(--type-ramp-minus-1-font-size); - line-height: var(--type-ramp-minus-1-line-height); - } -`.withBehaviors(new q.O(nt,rt),w.I,w.sp,w.mO);J.s;let ot=class extends tt{};ot=(0,i.gn)([(0,o.M)({name:"msft-edge-transparent-ad-providers",template:et,styles:it})],ot)},95659:(t,e,n)=>{"use strict";n.d(e,{s:()=>A});var r=n(33940),i=n(65226),o=n(58520),s=n(29163),a=n(52502),l=n(56461),c=n(90563);const u=c.d` - <slot></slot> -`;var d=n(15915),p=n(67549),h=n(76298),f=n(93718),g=n(68421),v=n(15933),b=n(7642),m=n(25914);const y=h.i` - ${(0,f.j)("block")} :host { - --elevation: 4; - display: block; - contain: content; - height: var(--card-height, 100%); - width: var(--card-width, 100%); - box-sizing: border-box; - border-radius: calc(var(--elevated-corner-radius) * 1px); - ${b.XC} - } - - :host(:hover) { - --elevation: 8; - } - - :host(:focus-within) { - --elevation: 8; - } - - :host { - content-visibility: auto; - } -`.withBehaviors(m.G$,(0,g.vF)(h.i` - :host { - forced-color-adjust: none; - background: ${v.H.Canvas}; - box-shadow: 0 0 0 1px ${v.H.CanvasText}; - } - `));let x=class extends p.M{cardBackgroundColorChanged(t,e){if(e){null!==(0,a.in)(this.cardBackgroundColor)&&(this.neutralBaseColor=this.cardBackgroundColor,this.backgroundColor=this.cardBackgroundColor)}else this.provider&&this.provider.designSystem&&this.handleChange(this.provider.designSystem,"backgroundColor")}handleChange(t,e){this.cardBackgroundColor||(this.neutralBaseColor?this.backgroundColor=(0,d.t)(this.designSystem):this.backgroundColor=(0,d.t)(t))}connectedCallback(){var t,e;super.connectedCallback();const n=o.y$.getNotifier(null===(t=this.provider)||void 0===t?void 0:t.designSystem);n.subscribe(this,"backgroundColor"),n.subscribe(this,"neutralPalette"),this.handleChange(null===(e=this.provider)||void 0===e?void 0:e.designSystem,"backgroundColor")}};(0,r.gn)([(0,s.Lj)({attribute:"card-background-color",mode:"fromView"})],x.prototype,"cardBackgroundColor",void 0),x=(0,r.gn)([(0,l._1)({name:"fluent-card",template:u,styles:y,shadowOptions:{mode:"closed"}})],x);class _ extends x{handleCardClick(t){return this.$emit("link-invoked",t),!0}}(0,r.gn)([(0,s.Lj)({mode:"fromView"})],_.prototype,"title",void 0),(0,r.gn)([(0,s.Lj)({mode:"fromView",attribute:"card-link-title"})],_.prototype,"cardLinkTitle",void 0),(0,r.gn)([s.Lj],_.prototype,"download",void 0),(0,r.gn)([s.Lj],_.prototype,"href",void 0),(0,r.gn)([s.Lj],_.prototype,"hreflang",void 0),(0,r.gn)([s.Lj],_.prototype,"ping",void 0),(0,r.gn)([s.Lj],_.prototype,"referrerpolicy",void 0),(0,r.gn)([s.Lj],_.prototype,"rel",void 0),(0,r.gn)([s.Lj],_.prototype,"target",void 0),(0,r.gn)([s.Lj],_.prototype,"type",void 0),(0,r.gn)([o.LO],_.prototype,"childElements",void 0);var w=n(42968),C=n(14671),S=n(63243),E=n(53125);const O=c.d` - <template ${(0,w.p)({property:"childElements",filter:(0,C.R)()})}> - <div class="title-container" part="title-container"> - <span class="title" part="title">${t=>t.title}</span> - <a - download="${t=>t.download}" - href="${t=>t.href}" - hreflang="${t=>t.hreflang}" - ping="${t=>t.ping}" - referrerpolicy="${t=>t.referrerpolicy}" - rel="${t=>t.rel}" - target="${t=>t.target}" - type="${t=>t.type}" - class="card-link" - part="card-link" - @click=${(t,e)=>t.handleCardClick(e.event)} - > - ${t=>t.cardLinkTitle} - </a> - </div> - <div class="content" part="content"> - <slot></slot> - </div> - ${(0,S.g)((t=>(0,E._)("link",t.childElements)),c.d` - <div class="links-container" part="links-container"> - <slot name="link"></slot> - </div> - `)} - </template> -`;var j=n(67845),P=n(36570);const k=h.i` - .card-link { - right: 12px; - } -`,I=h.i` - .card-link { - left: 12px; - } -`,T=h.i` - ${(0,f.j)("flex")}:host { - outline: none; - flex-direction: column; - box-sizing: border-box; - text-decoration: none; - justify-content: space-between; - border: calc(var(--outline-width) * 1px) solid ${m.I.var}; - box-sizing: border-box; - border-radius: calc(var(--elevated-corner-radius) * 1px); - color: ${m.sp.var}; - fill: currentcolor; - width: 100%; - padding-top: 8px; - padding-bottom: 13px; - padding-inline-start: 8px; - padding-inline-end: 12px; - font-size: var(--type-ramp-minus-1-font-size); - line-height: var(--type-ramp-minus-1-line-height); - outline: none; - position: relative; - } - - :host(:hover) { - --elevation: 6; - ${b.XC}; - } - :host(:${j.b}) { - box-shadow: 0 0 0 calc((var(--focus-outline-width) - var(--outline-width)) * 1px) ${m.cI.var}; - border-color: ${m.cI.var}; - } - - :host(:hover) .card-link { - opacity: 1; - } - - .title-container { - display: flex; - justify-content: space-between; - height: 23px; - margin-bottom: 3px; - margin-inline-start: 4px; - } - - .title { - font-size: var(--type-ramp-base-font-size); - line-height: var(--type-ramp-base-line-height); - font-weight: 600; - } - - .content { - margin-inline-start: 4px; - } - - .card-link { - opacity: 0; - top: 4px; - font-size: var(--type-ramp-minus-1-font-size); - line-height: var(--type-ramp-minus-1-line-height); - height: 23px; - color: ${m.YK.var}; - text-decoration: none; - outline: none; - } - - .card-link:${j.b} { - text-decoration: underline; - opacity: 1 - } - - .card-link::after { - position: absolute; - top: 0; - right: 0; - bottom: 0; - left: 0; - content: ''; - } - - .links-container { - margin-top: 6px; - display: flex; - align-items: center; - flex-wrap: wrap; - overflow: hidden; - z-index: 1; - } - - ::slotted([slot="link"]) { - ${""} - margin: 4px; - } - -`.withBehaviors(m.YK,m.cI,m.I,m.sp,new P.O(k,I));let A=class extends _{};A=(0,r.gn)([(0,i.M)({name:"msft-transparent-ad-card",template:O,styles:T})],A)},53125:(t,e,n)=>{"use strict";function r(t,e){return e&&e.some((e=>e.slot===t))}n.d(e,{_:()=>r})},70188:(t,e,n)=>{"use strict";if(n.d(e,{X:()=>l}),580==n.j)var r=n(49278);if(580==n.j)var i=n(45930);const o=Object.freeze({bind(){},unbind(){}}),s=Object.freeze({targetIndex:0,createBehavior:()=>o});class a extends(580==n.j?r.m0:null){constructor(t,e){super(),this.metadataOrBinding=t,this.options=e,this._factory=null}get factory(){let t=this._factory;return null===t&&(this._factory=t=this.selectFactory()),t}createBehavior(t){return this.factory.createBehavior(t)}createPlaceholder(t){return i.SO.createCustomAttributePlaceholder("fast-telemetry",t)}static installFactorySelector(t){a.prototype.selectFactory=t}selectFactory(){return s}}function l(t,e){return new a(t,e)}},86979:(t,e,n)=>{"use strict";n.d(e,{Z:()=>u});var r=n(89526),i=n(28407);const o=function(t,e,n){return null==t?t:(0,i.Z)(t,e,n)};var s=n(9680),a=n(22890),l=n(19760);class c extends r.Component{constructor(){super(...arguments),this.referenceResolverStore={},this.referenceStore={}}setRef(...t){const e=this.processStorageKey(t);let n=(0,s.Z)(this.referenceResolverStore,e);if(e&&!(0,a.Z)(n)&&!Array.isArray(n))return"function"==typeof n||(n=t=>{o(this.referenceStore,e,t)},o(this.referenceResolverStore,e,n)),n}getRef(...t){return(0,s.Z)(this.referenceStore,this.processStorageKey(t))}unhandledProps(){const t=Object.keys(this.props).filter((t=>!(c.defaultHandledProps.indexOf(t)>-1)&&this.handledProps&&!this.handledProps.hasOwnProperty(t)));return(0,l.Z)(this.props,t)}generateClassNames(t=""){return t.concat(` ${this.props.className||""}`).trim().replace(/(\s){2,}/g," ")||null}withSlot(t,e=this.props.children){return r.Children.map(e,(e=>this.hasSlot(t,e)?e:null))}withoutSlot(t,e=this.props.children){return r.Children.map(e,(e=>this.hasSlot(t,e)?null:e))}hasSlot(t,e){const n=(0,s.Z)(e,"props.slot");return Array.isArray(t)?-1!==t.indexOf(n):t===n}processStorageKey(t){return t.filter((t=>"string"==typeof t||"number"==typeof t)).map(((t,e)=>0===e?t:`[${t}]`)).join("")}}c.defaultHandledProps=["children"];const u=c},94581:(t,e,n)=>{"use strict";if(n.d(e,{Z:()=>i}),!/^(183|296|580|717|882)$/.test(n.j))var r=n(86979);const i=/^(183|296|580|717|882)$/.test(n.j)?null:r.Z},11754:(t,e,n)=>{"use strict";if(n.d(e,{Z:()=>i}),!/^(183|296|580|717|882)$/.test(n.j))var r=n(94581);const i=/^(183|296|580|717|882)$/.test(n.j)?null:r.Z},25944:(t,e,n)=>{"use strict";n.d(e,{EC:()=>f});var r=n(17332),i=n(42130),o=n(64197),s=n(83868),a=n(95046),l=n(94048),c=n(47436),u=n(76908);const d=Object.assign(Object.assign({},s.p),{button:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,s.$)()),{color:a.Q,fill:a.Q,background:l.Av,"&:hover:enabled, a&:not($button__disabled):hover":Object.assign(Object.assign({background:l.OC},u.aP),{"& $button_beforeContent, & $button_afterContent":Object.assign({},u.Ck)}),"&:active:enabled, a&:not($button__disabled):active":{background:l.UE}}),(0,i.F0)(Object.assign({"border-color":c.F,"box-shadow":(0,o.WU)("0 0 0 2px inset {0}",(0,c.A)(l.Av))},u.HC))),{"&:disabled":Object.assign(Object.assign({},u.Aw),{"& $button_beforeContent, & $button_afterContent":Object.assign({},u.He)}),"& $button_beforeContent, & $button_afterContent":Object.assign({fill:a.Q},u.zW)}),u.dC),{"a&:not($button__disabled)":Object.assign(Object.assign({},u.eI),{"& $button_beforeContent, & $button_afterContent":Object.assign({},u.g0),"&:not($button__disabled):hover":Object.assign(Object.assign({},u.H5),{"& $button_beforeContent, & $button_afterContent":Object.assign({},u.g0)}),"&$button__disabled":Object.assign(Object.assign({},u.Aw),{"& $button_beforeContent, & $button_afterContent":Object.assign({},u.He),"&:hover":{[u.xE]:{"box-shadow":"none !important"},"& $button_beforeContent, & $button_afterContent":Object.assign({},u.He)}})})})});var p=n(7838),h=n(66399);const f=(0,r.ZP)(d)(p.Z);f.displayName=`${h.k}AccentButton`},17665:(t,e,n)=>{"use strict";var r;n.d(e,{i:()=>r}),function(t){t.justified="justified",t.lightweight="lightweight",t.outline="outline",t.primary="primary",t.stealth="stealth"}(r||(r={}))},60395:(t,e,n)=>{"use strict";n.d(e,{px:()=>x});var r=n(17332),i=n(95046),o=n(29911),s=n(51094),a=n(76908);const l={button:{"max-width":"100%","min-width":"initial"},button_contentRegion:{transition:"all 600ms cubic-bezier(0.19, 1, 0.22, 1)",display:"flex","align-items":"center"}},c={actionTrigger:{"& $actionTrigger_glyph":Object.assign({},a.KP),"&:hover:enabled, a&:not($actionTrigger__disabled):hover":{"& $actionTrigger_glyph":{[a.xE]:Object.assign({},a.zW)}},"&$actionTrigger__justified, &$actionTrigger__lightweight":{"&:hover:enabled, a&:not($actionTrigger__disabled):hover":{"& $actionTrigger_glyph":{[a.xE]:{fill:"Highlight !important"}}}}},actionTrigger_glyph:{display:"inline-block",position:"relative","flex-shrink":"0"},actionTrigger__primary:{"& $actionTrigger_glyph":{fill:i.Q,[a.xE]:Object.assign({},a.zW)},"&:hover:enabled, a&:not($actionTrigger__disabled):hover":{"& $actionTrigger_glyph":{[a.xE]:{fill:"Highlight !important"}}},"&$actionTrigger__disabled $actionTrigger_glyph":Object.assign({fill:i.Q},a.He)},actionTrigger__lightweight:{"& $actionTrigger_glyph":{fill:o.go},"&:hover":{"& $actionTrigger_glyph":{fill:o.D9}},"&:active":{"& $actionTrigger_glyph":{fill:o.VN}},"&$actionTrigger__disabled $actionTrigger_glyph":{fill:o.go}},actionTrigger__justified:{"& $actionTrigger_glyph":{fill:o.go},"&:hover":{"& $actionTrigger_glyph":{fill:o.D9}},"&:active":{"& $actionTrigger_glyph":{fill:o.VN}},"&$actionTrigger__disabled $actionTrigger_glyph":{fill:o.go}},actionTrigger__outline:{"& $actionTrigger_glyph":{fill:s.CH},"&$actionTrigger__disabled $actionTrigger_glyph":{fill:s.CH}},actionTrigger__stealth:{"& $actionTrigger_glyph":{fill:s.CH},"&$actionTrigger__disabled $actionTrigger_glyph":Object.assign({fill:s.CH},a.He)},actionTrigger__disabled:{"& $actionTrigger_glyph":Object.assign({},a.He)},actionTrigger__hasGlyphAndContent:{}};var u=n(11754),d=n(37834),p=n(64829),h=n(89526),f=n(40370),g=n(72982),v=n(66399),b=n(17665);class m extends u.Z{constructor(){super(...arguments),this.handledProps={appearance:void 0,href:void 0,managedClasses:void 0,disabled:void 0,glyph:void 0},this.generateGlyph=()=>this.props.glyph((0,d.A)(this.props.managedClasses.actionTrigger_glyph))}render(){return h.createElement(f.zx,Object.assign({},this.unhandledProps(),{className:this.generateClassNames(),disabled:this.props.disabled,href:this.props.href,appearance:g.L[b.i[this.props.appearance]],jssStyleSheet:l,beforeContent:this.generateGlyph}),this.props.children)}generateClassNames(){const{actionTrigger:t,actionTrigger__disabled:e,actionTrigger__hasGlyphAndContent:n}=this.props.managedClasses;return super.generateClassNames((0,d.A)(t,[e,this.props.disabled],[this.props.managedClasses[`actionTrigger__${this.props.appearance}`],"string"==typeof this.props.appearance],[n,this.hasGlyphAndContent()]))}hasGlyphAndContent(){return!(0,p.Z)(this.props.glyph)&&!(0,p.Z)(this.props.children)}}m.displayName=`${v.k}ActionTrigger`,m.defaultProps={managedClasses:{}};const y=m,x=(0,r.ZP)(c)(y)},9466:(t,e,n)=>{"use strict";n.d(e,{B2:()=>I});var r=n(17332),i=n(48863),o=n(64197),s=n(42130),a=n(17657),l=n(23366),c=n(54141),u=n(51094),d=n(19652),p=n(47436),h=n(53363),f=n(61466),g=n(97682),v=n(25491),b=n(57167),m=n(76908);const y={autoSuggestOption:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({"list-style-type":"none",height:(0,c.Cb)(),display:"grid","grid-template-columns":(0,i.zw)((0,o.WU)("{0} auto auto 1fr {0}",(0,c.wb)()),(0,o.WU)("{0} 1fr auto auto {0}",(0,c.wb)())),"grid-template-rows":"auto","align-items":"center",padding:"0",margin:(0,o.WU)("0 {0}",(0,a.a)(b._5)),"white-space":"nowrap",overflow:"hidden"},(0,g.ks)()),{color:u.CH}),(0,h.Sh)("t7")),{background:d.jq}),(0,f.u0)()),(0,f.Ee)()),(0,s.F0)({"border-color":p.F,[m.xE]:{background:m.YP.selectedBackground,color:m.YP.selectedText}})),{"&:hover":Object.assign({background:d.Qp},m.T)}),m.D0),autoSuggestOption_contentRegion:Object.assign({"grid-column-start":"3",overflow:"hidden"},(0,l.L)()),autoSuggestOption__disabled:Object.assign(Object.assign(Object.assign({},(0,v.M)()),m.C_),{"&:hover":Object.assign({background:d.jq},m.C_)}),autoSuggestOption__selected:{background:d.sx,"&:hover":Object.assign({background:d.sx},m.T)}};var x=n(11754),_=n(13236),w=n(22545),C=n(99478),S=n(37834),E=n(64829),O=n(89526),j=n(66399);class P extends x.Z{constructor(){super(...arguments),this.handledProps={value:void 0,id:void 0,displayFormatter:void 0,formatDisplayString:void 0,managedClasses:void 0},this.formatDisplayString=()=>{const t=void 0!==this.props.displayString?this.props.displayString:this.props.value;return this.props.formatDisplayString?"function"==typeof this.props.displayFormatter?this.props.displayFormatter(t,this.context.currentValue):this.defaultDisplayFormatter(t,this.context.currentValue):t},this.defaultDisplayFormatter=(t,e)=>(0,E.Z)(t)||(0,E.Z)(e)||!(0,C.Ny)(t.toLowerCase(),e.toLowerCase())?t:O.createElement("span",null,O.createElement("b",null,t.substring(0,e.length)),t.substring(e.length,t.length))}render(){const{autoSuggestOption:t,autoSuggestOption__selected:e,autoSuggestOption__disabled:n,autoSuggestOption_contentRegion:r}=this.props.managedClasses;return O.createElement(w.ZP,Object.assign({},this.unhandledProps(),{id:this.props.id,value:this.props.value,managedClasses:{listboxItem:(0,S.A)(t),listboxItem__disabled:(0,S.A)(n),listboxItem__selected:(0,S.A)(e)}}),O.createElement("span",{className:(0,S.A)(r)},this.formatDisplayString(),this.props.children))}}P.displayName=`${j.k}AutoSuggestOption`,P.contextType=_.AutoSuggestContext,P.defaultProps={formatDisplayString:!0,managedClasses:{}},P.contextType=_.AutoSuggestContext;const k=P,I=(0,r.ZP)(y)(k)},42646:(t,e,n)=>{"use strict";n.d(e,{J:()=>_});var r=n(17332),i=n(64197),o=n(17657),s=n(51045),a=n(61466),l=n(19652),c=n(54141),u=n(9748),d=n(57167),p=n(76908);const h={autoSuggest:{"min-width":"276px","max-width":"374px"},autoSuggest_menu:Object.assign(Object.assign(Object.assign(Object.assign({},(0,u.jf)(u.Y3.e11)),{background:l.jq,"z-index":"1",position:"absolute",width:"100%",margin:"0",padding:(0,i.WU)("{0} 0",(0,o.a)(d._5)),"margin-top":(0,o.a)(d._5),"max-width":"374px","min-width":"276px","max-height":(0,o.a)((0,s.IH)((0,c.iY)(10),(0,s.Jp)(d._5,2))),overflow:"auto"}),(0,a.h9)()),{[p.xE]:{background:p.YP.buttonBackground,border:(0,i.WU)("{0} solid {1}",(0,o.a)(d.bu),(()=>p.YP.buttonText))}}),autoSuggest__menuOpen:{}};var f=n(11754),g=n(38619),v=n(89526),b=n(87370),m=n(66399);class y extends f.Z{constructor(){super(...arguments),this.handledProps={listboxId:void 0,disabled:void 0,inputRegion:void 0,managedClasses:void 0},this.defaultInputRegionRenderFunction=(t,e,n,r,i)=>v.createElement(b.lT,{disabled:t.disabled,onChange:n,onClick:r,onKeyDown:i,value:e.value,placeholder:t.placeholder,beforeGlyph:this.generateGlyph,role:"textbox","aria-controls":e.isMenuOpen?t.listboxId:null,"aria-autocomplete":t.filterSuggestions?"list":"none"}),this.generateGlyph=t=>v.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",className:t,xmlns:"http://www.w3.org/2000/svg"},v.createElement("path",{d:"M8.5 3a5.5 5.5 0 014.23 9.02l4.12 4.13a.5.5 0 01-.63.76l-.07-.06-4.13-4.12A5.5 5.5 0 118.5 3zm0 1a4.5 4.5 0 100 9 4.5 4.5 0 000-9z",fillRule:"nonzero"}))}render(){return v.createElement(g.ZP,Object.assign({},this.unhandledProps(),{listboxId:this.props.listboxId,managedClasses:this.props.managedClasses,disabled:this.props.disabled,inputRegion:"function"==typeof this.props.inputRegion?this.props.inputRegion:this.defaultInputRegionRenderFunction}),this.props.children)}}y.displayName=`${m.k}AutoSuggest`,y.defaultProps={managedClasses:{}};const x=y,_=(0,r.ZP)(h)(x)},71388:(t,e,n)=>{"use strict";n.d(e,{ZP:()=>f});var r=n(11754),i=n(10384),o=n(18488),s=n(82090),a=n(95462),l=n(2920),c=n(11089);const u=function(t,e){return null!=t&&(0,c.Z)(t,e,l.Z)};var d=n(98415),p=n(9680),h=n(89526);class f extends r.Z{constructor(){super(...arguments),this.handledProps={tag:void 0,value:void 0,drawBackground:void 0,designSystemMergingFunction:void 0},this.getDesignSystemOverrides=(0,d.Z)((t=>({backgroundColor:t}))),this.withContext=t=>{const e=this.props.value,n="string"==typeof e?e:"function"==typeof e?e(t):u(t.neutralPalette,e)?(0,p.Z)(t.neutralPalette,e):i.ZP.neutralPalette[e]||f.defaultProps.value(i.ZP),r=Object.assign({},this.props.style,this.props.drawBackground?{backgroundColor:n}:void 0);return h.createElement(s.h,{designSystem:this.getDesignSystemOverrides(n),designSystemMergingFunction:this.props.designSystemMergingFunction},this.tag&&h.createElement(this.tag,Object.assign({},this.unhandledProps(),{style:r}),this.props.children)||this.props.children)}}render(){return h.createElement(a.$6,null,this.withContext)}get tag(){return this.props.tag}}f.defaultProps={tag:"div",value:o.Mw,drawBackground:!0}},56909:(t,e,n)=>{"use strict";var r,i;n.d(e,{g:()=>r,z:()=>i}),function(t){t[t.L1=0]="L1",t[t.L1Alt=3]="L1Alt",t[t.L2=10]="L2",t[t.L3=13]="L3",t[t.L4=16]="L4"}(r||(r={})),function(t){t[t.L1=76]="L1",t[t.L1Alt=76]="L1Alt",t[t.L2=79]="L2",t[t.L3=82]="L3",t[t.L4=85]="L4"}(i||(i={}))},7838:(t,e,n)=>{"use strict";n.d(e,{Z:()=>u});var r=n(11754),i=n(65173),o=n(37834),s=n(64829),a=n(89526),l=n(66399);class c extends r.Z{constructor(){super(...arguments),this.handledProps={beforeContent:void 0,afterContent:void 0,disabled:void 0,href:void 0,managedClasses:void 0}}render(){const t=this.props.managedClasses;return a.createElement(i.ZP,Object.assign({},this.unhandledProps(),{managedClasses:t,className:this.generateClassNames(),href:this.props.href,disabled:this.props.disabled}),this.generateBeforeContent(),a.createElement("span",{className:(0,o.A)(t.button_contentRegion)},this.props.children),this.generateAfterContent())}generateClassNames(){return super.generateClassNames((0,o.A)([this.props.managedClasses.button__hasBeforeOrAfterAndChildren,this.hasBeforeOrAfterAndChildren()]))}generateBeforeContent(){if("function"==typeof this.props.beforeContent)return a.createElement("div",{className:(0,o.A)(this.props.managedClasses.button_beforeOrAfterContainer,this.props.managedClasses.button_beforeContainer)},this.props.beforeContent((0,o.A)(this.props.managedClasses.button_beforeContent)))}generateAfterContent(){if("function"==typeof this.props.afterContent)return a.createElement("div",{className:(0,o.A)(this.props.managedClasses.button_beforeOrAfterContainer,this.props.managedClasses.button_afterContainer)},this.props.afterContent((0,o.A)(this.props.managedClasses.button_afterContent)))}hasBeforeOrAfterAndChildren(){return!((0,s.Z)(this.props.children)||(0,s.Z)(this.props.beforeContent)&&(0,s.Z)(this.props.afterContent))}}c.displayName=`${l.k}ButtonBase`,c.defaultProps={managedClasses:{}};const u=/^(2(22|74|96)|154|183|32|580|717|830|882|997)$/.test(n.j)?null:c},72982:(t,e,n)=>{"use strict";var r;n.d(e,{L:()=>r}),function(t){t.justified="justified",t.lightweight="lightweight",t.outline="outline",t.primary="primary",t.stealth="stealth"}(r||(r={}))},40370:(t,e,n)=>{"use strict";n.d(e,{zx:()=>F});var r=n(17332),i=n(42130),o=n(17657),s=n(64197),a=n(51045),l=n(48863),c=n(61466),u=n(29911),d=n(51094),p=n(58934),h=n(47436),f=n(95046),g=n(94048),v=n(4921),b=n(19652),m=n(97682),y=n(54141),x=n(57167),_=n(25491),w=n(76908),C=n(53363);const S={"background-color":"transparent"},E=(0,x.Es)("density"),O=Object.assign(Object.assign(Object.assign(Object.assign({color:u.go,fill:u.go},S),(0,i.F0)(Object.assign(Object.assign({"border-color":"transparent","box-shadow":"none"},w.Ck),{"& $button_contentRegion::before":Object.assign({background:d.CH,height:(0,o.a)(x.Db)},w.$n)}))),{"& $button_contentRegion::before":{[w.xE]:{background:w.YP.buttonText}},"&:hover $button_contentRegion::before":Object.assign({background:u.D9},w.$n),"&:hover$button__disabled $button_contentRegion::before":{display:"none"},"&:active $button_contentRegion::before":{background:u.VN},"&$button__disabled, &$button__disabled $button_contentRegion::before":Object.assign({},S),"&:hover:enabled, a&:not($button__disabled):hover":Object.assign(Object.assign(Object.assign({color:u.D9},S),w.Ck),{"& $button_beforeContent, & $button_afterContent":Object.assign({fill:u.D9},w.Ck)}),"&:active:enabled, a&:not($button__disabled):active":Object.assign({color:u.VN,fill:u.VN},S)}),w.D0),j={button:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,C.Sh)("t7")),{"font-family":"inherit"}),(0,m.$C)()),{"box-sizing":"border-box","max-width":"374px","min-width":t=>E(t)<=-2?"28px":"32px",padding:(0,s.WU)("0 {0}",(0,y.wb)((0,a.IH)(x.Db,2))),display:"inline-flex","justify-content":"center","align-items":"center",height:(0,y.Cb)()}),(0,c.Ee)()),(0,c.u0)()),{"line-height":"1",overflow:"hidden","text-decoration":"none","white-space":"nowrap",transition:"all 0.1s ease-in-out",color:d.CH,fill:d.CH,background:p.wF,"&:hover:enabled, a&:not($button__disabled):hover":Object.assign(Object.assign({background:p.Xi},w.T),{"& $button_beforeContent, & $button_afterContent":Object.assign({},w.zW)}),"&:active:enabled, a&:not($button__disabled):active":{background:p.Gy}}),(0,i.F0)(Object.assign(Object.assign({},w.St),{"border-color":h.F}))),{"&:disabled":Object.assign({},w.Aw),"&::-moz-focus-inner":{border:"0"}}),w.Ob),{"a&:not($button__disabled)":Object.assign(Object.assign({},w.eI),{"&:not($button__disabled):hover":Object.assign(Object.assign({},w.H5),{"& $button_beforeContent, & $button_afterContent":Object.assign({},w.g0)}),"&$button__disabled":Object.assign(Object.assign({},w.Aw),{"&:hover":{[w.xE]:{"box-shadow":"none !important"}}})})}),button__primary:Object.assign(Object.assign(Object.assign(Object.assign({color:f.Q,fill:f.Q,background:g.Av,"&:hover:enabled, a&:not($button__disabled):hover":Object.assign({background:g.OC},w.aP),"&:active:enabled, a&:not($button__disabled):active":{background:g.UE}},(0,i.F0)(Object.assign({"border-color":h.F,"box-shadow":(0,s.WU)("0 0 0 {0} inset {1}",(0,o.a)(x.Db),(0,h.A)(g.Av))},w.HC))),{"& $button_beforeContent, & $button_afterContent":{fill:f.Q}}),w.dC),{"a&:not($button__disabled)":{"& $button_beforeContent, & $button_afterContent":Object.assign({},w.g0)}}),button__outline:Object.assign(Object.assign({background:"transparent",border:(0,s.WU)("{0} solid {1}",(0,o.a)(x.bu),v.L$),padding:(0,s.WU)("0 {0}",(0,y.wb)((0,a.IH)(x.bu,2))),"&:hover:enabled, a&:not($button__disabled):hover":Object.assign({background:"transparent",border:(0,s.WU)("{0} solid {1}",(0,o.a)(x.bu),v.yD)},w.T),"&:active:enabled, a&:not($button__disabled):active":{background:"transparent",border:(0,s.WU)("{0} solid {1}",(0,o.a)(x.bu),v.tA)}},(0,i.F0)(Object.assign(Object.assign({},w.St),{"box-shadow":(0,s.WU)("0 0 0 {0} {1} inset",(0,o.a)((0,a.$X)(x.Db,x.bu)),h.F),"border-color":h.F}))),w.Ob),button__lightweight:Object.assign(Object.assign({},O),{"a&:not($button__disabled)":{"&:not($button__disabled):hover":{[w.xE]:{"box-shadow":"none !important",color:w.cy,fill:w.cy},"& $button_contentRegion::before":{[w.xE]:{background:w.cy}}},"&$button__disabled":Object.assign({},w.Aw),"& $button_contentRegion::before":{[w.xE]:{background:"transparent"}}}}),button__justified:Object.assign(Object.assign({},O),{"min-width":"74px","padding-left":"0","padding-right":"0","border-width":"0","justify-content":"flex-start","a&:not($button__disabled)":{"&:not($button__disabled):hover":{[w.xE]:{"box-shadow":"none !important",color:w.cy,fill:w.cy},"& $button_contentRegion::before":{[w.xE]:{background:w.cy}}},"&$button__disabled":Object.assign({},w.Aw)}}),button__stealth:Object.assign(Object.assign({background:b.jq,"&:hover:enabled, a&:not($button__disabled):hover":Object.assign({"background-color":b.Qp},w.T),"&:active:enabled, a&:not($button__disabled):active":{"background-color":b.sG}},(0,i.F0)(Object.assign(Object.assign({},w.St),{"border-color":h.F}))),w.D0),button_contentRegion:{position:"relative","&::before":{content:"''",display:"block",height:(0,o.a)(x.bu),position:"absolute",bottom:"-3px",width:"100%",left:(0,l.zw)("0",""),right:(0,l.zw)("","0")},"& svg":{}},button__disabled:Object.assign(Object.assign(Object.assign({},(0,_.M)()),w.Aw),{"& $button_beforeContent, & $button_afterContent":Object.assign({},w.He)}),button_beforeOrAfterContainer:{display:"flex","align-items":"center","justify-content":"center","min-width":"20px","min-height":"20px"},button_beforeContainer:{},button_afterContainer:{},button_beforeContent:{},button_afterContent:{},button__hasBeforeOrAfterAndChildren:{"& $button_beforeContainer":{"margin-right":(0,l.zw)((0,y.wb)(2),""),"margin-left":(0,l.zw)("",(0,y.wb)(2))},"& $button_afterContainer":{"margin-right":(0,l.zw)("",(0,y.wb)(2)),"margin-left":(0,l.zw)((0,y.wb)(2),"")}}};var P,k=n(11754),I=n(65173),T=n(37834),A=n(89526),D=n(64829),R=n(66399),$=n(72982);!function(t){t.before="before",t.after="after"}(P||(P={}));class N extends k.Z{constructor(){super(...arguments),this.handledProps={appearance:void 0,beforeContent:void 0,afterContent:void 0,disabled:void 0,href:void 0,managedClasses:void 0}}render(){const t=this.props.managedClasses;return A.createElement(I.ZP,Object.assign({},this.unhandledProps(),{className:this.generateClassNames(),managedClasses:t,href:this.props.href,disabled:this.props.disabled}),this.withSlot(P.before),this.generateBeforeContent(),A.createElement("span",{className:(0,T.A)(t.button_contentRegion)},this.withoutSlot([P.before,P.after])),this.withSlot(P.after),this.generateAfterContent())}generateClassNames(){return super.generateClassNames((0,T.A)([this.props.managedClasses[`button__${$.L[this.props.appearance]}`],"string"==typeof this.props.appearance],[this.props.managedClasses.button__hasBeforeOrAfterAndChildren,this.hasBeforeOrAfterAndChildren()]))}generateBeforeContent(){if("function"==typeof this.props.beforeContent)return A.createElement("div",{className:(0,T.A)(this.props.managedClasses.button_beforeOrAfterContainer,this.props.managedClasses.button_beforeContainer)},this.props.beforeContent((0,T.A)(this.props.managedClasses.button_beforeContent)))}generateAfterContent(){if("function"==typeof this.props.afterContent)return A.createElement("div",{className:(0,T.A)(this.props.managedClasses.button_beforeOrAfterContainer,this.props.managedClasses.button_afterContainer)},this.props.afterContent((0,T.A)(this.props.managedClasses.button_afterContent)))}hasBeforeOrAfterAndChildren(){return!((0,D.Z)(this.props.children)||(0,D.Z)(this.props.beforeContent)&&(0,D.Z)(this.props.afterContent))}}N.displayName=`${R.k}Button`,N.defaultProps={managedClasses:{}};const B=N,F=(0,r.ZP)(j)(B)},5730:(t,e,n)=>{"use strict";var r,i;n.d(e,{P:()=>r,T:()=>i}),function(t){t[t._1=1]="_1",t[t._2=2]="_2"}(r||(r={})),function(t){t.p="p",t.span="span",t.caption="caption",t.figcaption="figcaption"}(i||(i={}))},5809:(t,e,n)=>{"use strict";n.d(e,{YS:()=>f});var r=n(17332);const i={caption:{},caption__1:{},caption__2:{}};var o=n(11754),s=n(14895),a=n(37834),l=n(89526),c=n(82117),u=n(66399),d=n(5730);class p extends o.Z{constructor(){super(...arguments),this.handledProps={size:void 0,managedClasses:void 0,tag:void 0}}render(){return l.createElement(c.ZT,Object.assign({},this.unhandledProps(),{tag:s.l[this.props.tag],size:this.size(),className:this.generateClassNames()}),this.props.children)}generateClassNames(){return super.generateClassNames((0,a.A)(this.props.managedClasses.caption,[this.props.managedClasses[`caption__${this.props.size}`],!0]))}size(){return this.props.size===d.P._2?s.H._9:s.H._8}}p.defaultProps={tag:d.T.p,size:d.P._1,managedClasses:{}},p.displayName=`${u.k}Caption`;const h=p,f=(0,r.ZP)(i)(h)},61168:(t,e,n)=>{"use strict";n.d(e,{Zb:()=>u});var r=n(11413),i=n(17332),o=n(61466),s=n(9748),a=n(57167),l=n(76908);const c={card:Object.assign(Object.assign(Object.assign(Object.assign({width:"100%",height:"100%",background:a.Cz},(0,o.h9)()),(0,s.jf)(s.Y3.e4)),{transition:"all 0.2s ease-in-out"}),l.yf)},u=(0,i.ZP)(c)(r.ZP)},44173:(t,e,n)=>{"use strict";n.d(e,{XZ:()=>s});var r=n(21093),i=n(17332),o=n(27157);const s=(0,i.ZP)(o.Z)(r.ZP)},96453:(t,e,n)=>{"use strict";n.d(e,{Vq:()=>u});var r=n(46076),i=n(17332),o=n(61466),s=n(57167),a=n(9748),l=n(76908);const c={dialog:{display:"none",'&[aria-hidden="false"]':{display:"block"}},dialog_positioningRegion:{display:"flex","justify-content":"center",position:"fixed",top:"0",bottom:"0",left:"0",right:"0",overflow:"auto"},dialog_modalOverlay:{position:"fixed",top:"0",left:"0",right:"0",bottom:"0",background:"rgba(0, 0, 0, 0.3)"},dialog_contentRegion:Object.assign(Object.assign(Object.assign(Object.assign({"margin-top":"auto","margin-bottom":"auto",background:s.Cz},(0,o.h9)()),(0,a.jf)(a.Y3.e14)),{"z-index":"1"}),l.yf)},u=(0,i.ZP)(c)(r.ZP)},73252:(t,e,n)=>{"use strict";n.d(e,{iz:()=>d});var r=n(2057),i=n(17332),o=n(64197),s=n(17657),a=n(57167),l=n(8215),c=n(76908);const u={divider:Object.assign({"box-sizing":"content-box",height:"0",margin:"0",border:"none","border-top":(0,o.WU)("{0} solid {1}",(0,s.a)(a.bu),l.e),transition:"all 0.2s ease-in-out"},c.xU)},d=(0,i.ZP)(u)(r.ZP)},99683:(t,e,n)=>{"use strict";var r,i,o;n.d(e,{xN:()=>r,_k:()=>i,Lc:()=>o}),function(t){t.left="left",t.right="right",t.uncontrolled="uncontrolled"}(r||(r={})),function(t){t.top="top",t.bottom="bottom",t.uncontrolled="uncontrolled"}(i||(i={})),function(t){t.uncontrolled="uncontrolled",t.adjacent="adjacent",t.inset="inset"}(o||(o={}))},49838:(t,e,n)=>{"use strict";n.d(e,{zg:()=>x});var r=n(17332),i=n(61466),o=n(57167),s=n(9748),a=n(76908);const l={flyout:Object.assign(Object.assign(Object.assign(Object.assign({background:o.Cz},(0,i.us)()),(0,s.jf)(s.Y3.e14)),{"z-index":"1"}),a.yf),flyout__top:{},flyout__bottom:{},flyout__left:{},flyout__right:{},flyout__horizontalInset:{},flyout__verticalInset:{}};var c=n(11754),u=n(8641),d=n(10736),p=n(33832),h=n(9453),f=n(89526),g=n(73961),v=n(66399),b=n(99683);class m extends c.Z{constructor(t){super(t),this.handledProps={anchor:void 0,children:void 0,defaultHorizontalPosition:void 0,defaultVerticalPosition:void 0,describedBy:void 0,visible:void 0,fixedAfterInitialPlacement:void 0,height:void 0,horizontalAlwaysInView:void 0,horizontalLockToDefault:void 0,horizontalPositioningMode:void 0,horizontalThreshold:void 0,label:void 0,labelledBy:void 0,managedClasses:void 0,onDismiss:void 0,verticalAlwaysInView:void 0,verticalLockToDefault:void 0,verticalPositioningMode:void 0,verticalThreshold:void 0,viewport:void 0,width:void 0,delayContentInstanciation:void 0,scaleToFit:void 0},this.handleWindowClick=t=>{const e=this.props.anchor instanceof HTMLElement?this.props.anchor:this.props.anchor.current;"function"!=typeof this.props.onDismiss||!this.props.visible||g.findDOMNode(this.rootEl.current).contains(t.target)||g.findDOMNode(e).contains(t.target)||this.props.onDismiss(t)},this.handleWindowKeyDown=t=>{"function"==typeof this.props.onDismiss&&this.props.visible&&t.keyCode===p.Lp&&this.props.onDismiss(t)},this.rootEl=f.createRef()}render(){return f.createElement(u.ZP,Object.assign({},this.unhandledProps(),{ref:this.rootEl,role:"dialog","aria-label":this.props.label,"aria-labelledby":this.props.labelledBy,"aria-describedby":this.props.describedBy,"aria-hidden":!this.props.visible,anchor:this.props.anchor,defaultHorizontalPosition:d.kv[b.xN[this.props.defaultHorizontalPosition]],defaultVerticalPosition:d.Lp[b._k[this.props.defaultVerticalPosition]],disabled:!this.props.visible,fixedAfterInitialPlacement:this.props.fixedAfterInitialPlacement,horizontalAlwaysInView:this.props.horizontalAlwaysInView,horizontalPositioningMode:d.tg[b.Lc[this.props.horizontalPositioningMode]],horizontalThreshold:this.props.horizontalThreshold,horizontalLockToDefault:this.props.horizontalLockToDefault,managedClasses:this.generateManagedClassNames(),verticalAlwaysInView:this.props.verticalAlwaysInView,verticalPositioningMode:d.tg[b.Lc[this.props.verticalPositioningMode]],verticalThreshold:this.props.verticalThreshold,verticalLockToDefault:this.props.verticalLockToDefault,viewport:this.props.viewport,delayContentInstanciation:this.props.delayContentInstanciation,style:{height:this.props.height,width:this.props.width,display:this.props.visible?"block":"none"}}),this.props.children)}componentDidMount(){(0,h.N)()&&this.props.onDismiss&&(window.addEventListener("keydown",this.handleWindowKeyDown),window.addEventListener("click",this.handleWindowClick))}componentDidUpdate(t){(0,h.N)()&&(!t.onDismiss&&this.props.onDismiss?(window.addEventListener("keydown",this.handleWindowKeyDown),window.addEventListener("click",this.handleWindowClick)):t.onDismiss&&!this.props.onDismiss&&(window.removeEventListener("keydown",this.handleWindowKeyDown),window.removeEventListener("click",this.handleWindowClick)))}componentWillUnmount(){(0,h.N)()&&this.props.onDismiss&&(window.removeEventListener("keydown",this.handleWindowKeyDown),window.removeEventListener("click",this.handleWindowClick))}generateManagedClassNames(){const{flyout:t,flyout__left:e,flyout__right:n,flyout__top:r,flyout__bottom:i,flyout__horizontalInset:o,flyout__verticalInset:s}=this.props.managedClasses;return{viewportPositioner:t,viewportPositioner__left:e,viewportPositioner__right:n,viewportPositioner__top:r,viewportPositioner__bottom:i,viewportPositioner__horizontalInset:o,viewportPositioner__verticalInset:s}}}m.displayName=`${v.k}Flyout`,m.defaultProps={visible:!1,horizontalPositioningMode:b.Lc.uncontrolled,defaultHorizontalPosition:b.xN.uncontrolled,verticalPositioningMode:b.Lc.adjacent,defaultVerticalPosition:b._k.bottom,horizontalAlwaysInView:!1,verticalAlwaysInView:!1,fixedAfterInitialPlacement:!1,height:"128px",width:"280px",managedClasses:{}};const y=m,x=(0,r.ZP)(l)(y)},90305:(t,e,n)=>{"use strict";var r,i,o;n.d(e,{Gm:()=>i,lb:()=>o}),function(t){t.small="small",t.large="large"}(r||(r={})),function(t){t[t._1=1]="_1",t[t._2=2]="_2",t[t._3=3]="_3",t[t._4=4]="_4",t[t._5=5]="_5",t[t._6=6]="_6",t[t._7=7]="_7"}(i||(i={})),function(t){t.h1="h1",t.h2="h2",t.h3="h3",t.h4="h4",t.h5="h5",t.h6="h6",t.p="p"}(o||(o={}))},92588:(t,e,n)=>{"use strict";n.d(e,{X6:()=>v});var r=n(17332),i=n(89827),o=n(97682);const s={heading:{"&$heading__1, &$heading__2, &$heading__3, &$heading__4, &$heading__5, &$heading__6, &$heading__7":Object.assign(Object.assign({},(0,o.ks)()),(0,i.cg)())},heading__1:{},heading__2:{},heading__3:{},heading__4:{},heading__5:{},heading__6:{},heading__7:{}};var a=n(11754),l=n(14895),c=n(37834),u=n(89526),d=n(82117),p=n(66399),h=n(90305);class f extends a.Z{constructor(){super(...arguments),this.handledProps={size:void 0,managedClasses:void 0,tag:void 0}}get tag(){return this.props.tag?l.l[this.props.tag]:l.l.h1}get size(){return l.H[`_${this.props.size}`]}render(){return u.createElement(d.ZT,Object.assign({},this.unhandledProps(),{tag:this.tag,size:this.size,className:this.generateClassNames()}),this.props.children)}generateClassNames(){const t=this.props.managedClasses;return super.generateClassNames((0,c.A)(t.heading,t[`heading__${this.props.size}`]))}}f.displayName=`${p.k}Heading`,f.defaultProps={size:h.Gm._1,managedClasses:{}};const g=f,v=(0,r.ZP)(s)(g)},61999:(t,e,n)=>{"use strict";n.d(e,{WK:()=>s});var r=n(78636),i=n(17332),o=n(19898);const s=(0,i.ZP)(o.Z)(r.ZP)},46081:(t,e,n)=>{"use strict";n.d(e,{Ee:()=>s});var r=n(22449),i=n(17332);const o={image:Object.assign({},{display:"block",margin:"0","max-width":"100%",height:"auto"}),image__picture:{display:"block"},image_img:Object.assign({},{display:"block",margin:"0","max-width":"100%",height:"auto"})},s=(0,i.ZP)(o)(r.Z)},57880:(t,e,n)=>{"use strict";n.d(e,{__:()=>l});var r=n(67483),i=n(17332);var o=n(51094),s=n(53363);const a={label:Object.assign(Object.assign({},(0,s.Sh)("t7")),{display:"inline-block",color:o.CH,padding:"0"}),label__hidden:Object.assign({},{position:"absolute",overflow:"hidden",clip:"rect(1px, 1px, 1px, 1px)",width:"1px",height:"1px",border:"0",padding:"0",margin:"0"})},l=(0,i.ZP)(a)(r.ZP)},12994:(t,e,n)=>{"use strict";n.d(e,{Of:()=>f});var r=n(17332),i=n(42130),o=n(17657),s=n(83868),a=n(29911),l=n(51094),c=n(57167),u=n(76908);const d=Object.assign(Object.assign({},s.p),{button:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,s.$)()),{padding:"0",border:"0","justify-content":"flex-start","background-color":"transparent",color:a.go,fill:a.go}),(0,i.F0)(Object.assign(Object.assign({"border-color":"transparent","box-shadow":"none"},u.Ck),{"& $button_contentRegion::before":Object.assign({background:l.CH,height:(0,o.a)(c.Db)},u.$n)}))),{"a&, button&":{},"& $button_contentRegion::before":{[u.xE]:{background:u.YP.buttonText}},"&:hover $button_contentRegion::before":Object.assign({background:a.D9},u.$n),"&:hover$button__disabled $button_contentRegion::before":{display:"none"},"&:active $button_contentRegion::before":Object.assign({background:a.VN},u.$n),"&$button__disabled, &$button__disabled $button_contentRegion::before":Object.assign({"background-color":"transparent"},u.He),"&:hover:enabled, a&:not($button__disabled):hover":Object.assign({color:a.D9,fill:a.D9,"background-color":"transparent"},u.Ck),"&:active:enabled, a&:not($button__disabled):active":{color:a.VN,fill:a.VN,"background-color":"transparent"}}),u.D0),{"a&:not($button__disabled)":{[u.xE]:{background:u.YP.background,color:u.cy,fill:u.cy},"&:not($button__disabled):hover":Object.assign({},u.g0),"&:hover $button_contentRegion::before":{[u.xE]:{background:u.cy}},"& $button_contentRegion::before":{[u.xE]:{background:"transparent"}}}})});var p=n(7838),h=n(66399);const f=(0,r.ZP)(d)(p.Z);f.displayName=`${h.k}LightweightButton`},37879:(t,e,n)=>{"use strict";n.d(e,{ER:()=>h});var r=n(17332),i=n(42130),o=n(83868),s=n(51094),a=n(58934),l=n(47436),c=n(76908);const u=Object.assign(Object.assign({},o.p),{button:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,o.$)()),{color:s.CH,fill:s.CH,background:a.wF,"&:hover:enabled, a&:not($button__disabled):hover":Object.assign({background:a.Xi},c.T),"&:active:enabled, a&:not($button__disabled):active":{background:a.Gy}}),(0,i.F0)(Object.assign({"border-color":l.F},c.St))),{"&:disabled":Object.assign({},c.Aw),"&::-moz-focus-inner":{border:"0"}}),c.Ob),{"a&:not($button__disabled)":Object.assign(Object.assign({},c.eI),{"&:not($button__disabled):hover":Object.assign({},c.H5),"&$button__disabled":Object.assign({},c.Aw)})})});var d=n(7838),p=n(66399);const h=(0,r.ZP)(u)(d.Z);h.displayName=`${p.k}NeutralButton`},31582:(t,e,n)=>{"use strict";n.d(e,{f5:()=>m});var r=n(17332),i=n(64197),o=n(17657),s=n(51045),a=n(42130),l=n(83868),c=n(51094),u=n(4921),d=n(47436),p=n(54141),h=n(57167),f=n(76908);const g=Object.assign(Object.assign({},l.p),{button:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,l.$)()),{color:c.CH,fill:c.CH,background:"transparent",border:(0,i.WU)("{0} solid {1}",(0,o.a)(h.bu),u.L$),padding:(0,i.WU)("0 {0}",(0,p.wb)((0,s.IH)(h.bu,2))),"&:hover:enabled, a&:not($button__disabled):hover":Object.assign({background:"transparent",border:(0,i.WU)("{0} solid {1}",(0,o.a)(h.bu),u.yD)},f.T),"&:active:enabled, a&:not($button__disabled):active":{background:"transparent",border:(0,i.WU)("{0} solid {1}",(0,o.a)(h.bu),u.tA)}}),(0,a.F0)(Object.assign({"box-shadow":(0,i.WU)("0 0 0 {0} {1} inset",(0,o.a)((0,s.$X)(h.Db,h.bu)),d.F),"border-color":d.F},f.St))),{"&:disabled":Object.assign({},f.Aw)}),f.Ob),{"a&:not($button__disabled)":Object.assign(Object.assign({},f.eI),{"&:not($button__disabled):hover":Object.assign({},f.H5),"&$button__disabled":Object.assign({},f.Aw)})})});var v=n(7838),b=n(66399);const m=(0,r.ZP)(g)(v.Z);m.displayName=`${b.k}OutlineButton`},87841:(t,e,n)=>{"use strict";n.d(e,{nv:()=>v});var r=n(17332),i=n(89827),o=n(97682);const s={paragraph:Object.assign(Object.assign({},(0,o.ks)()),(0,i.Li)()),paragraph__1:{},paragraph__2:{},paragraph__3:{}};var a=n(11754),l=n(14895),c=n(37834),u=n(89526),d=n(82117),p=n(66399),h=n(95275);class f extends a.Z{constructor(){super(...arguments),this.handledProps={size:void 0,managedClasses:void 0}}render(){return u.createElement(d.ZT,Object.assign({},this.unhandledProps(),{tag:l.l.p,size:this.size,className:this.generateClassNames()}),this.props.children)}generateClassNames(){const t=this.props.managedClasses;return super.generateClassNames((0,c.A)(t.paragraph,t[`paragraph__${this.props.size}`]))}get size(){switch(this.props.size){case h.S._1:return l.H._5;case h.S._2:return l.H._6;default:return l.H._7}}}f.defaultProps={size:h.S._3,managedClasses:{}},f.displayName=`${p.k}Paragraph`;const g=f,v=(0,r.ZP)(s)(g)},95275:(t,e,n)=>{"use strict";var r;n.d(e,{S:()=>r}),function(t){t[t._1=1]="_1",t[t._2=2]="_2",t[t._3=3]="_3"}(r||(r={}))},35250:(t,e,n)=>{"use strict";n.d(e,{o1:()=>I});var r=n(17332),i=n(64197),o=n(42130),s=n(17657),a=n(51045),l=n(48863),c=n(54141),u=n(51094),d=n(47436),p=n(94048),h=n(61466),f=n(53363),g=n(57167),v=n(97682),b=n(76908);const m={pivot:{position:"relative",overflow:"hidden",color:u.CH,transition:"all 0.2s ease-in-out",[b.xE]:Object.assign({},b.a8)},pivot_tabList:{display:"flex","box-sizing":"border-box"},pivot_tab:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,v.$C)()),{height:(0,c.Cb)(),padding:(0,i.WU)("0 {0}",(0,c.wb)(g.Db)),"white-space":"nowrap",display:"flex"}),(0,h.Ee)()),{"align-items":"center","box-sizing":"border-box","user-select":"none",color:u.CH}),(0,h.u0)()),{"&:hover":Object.assign({color:u.QP},b.KP),"&:active":{color:u.Tt}}),(0,o.F0)(Object.assign({"border-color":d.F},b.xU))),b.KP),pivot_tab__active:Object.assign({},b.KP),pivot_tabContent:Object.assign(Object.assign({},(0,f.Sh)("t7")),{position:"relative",top:"-2px"}),pivot_activeIndicator:Object.assign(Object.assign(Object.assign({position:"absolute"},(0,h.u0)()),{top:(0,s.a)((0,a.$X)((0,c.iY)(1),3,g.Db)),left:"-10px",transition:"0.2s ease-in-out",width:"20px",height:(0,s.a)(3),display:"block",background:p.Av}),b.$n),pivot_tabPanel:{display:"block"},pivot_tabPanel__hidden:{display:"none"},pivot_tabPanels:{"animation-timing-function":"cubic-bezier(0.4, 0.0, 0.6, 1.0)"},pivot_tabPanels__animatePrevious:{animation:(0,i.WU)("{0} 0.2s",(0,l.zw)("fromLeft","fromRight"))},pivot_tabPanels__animateNext:{animation:(0,i.WU)("{0} 0.2s",(0,l.zw)("fromRight","fromLeft"))},pivot_tabPanelContent:{},"@keyframes fromRight":{"0%":{opacity:"0",transform:"translateX(-50px)"},"100%":{opacity:"1",transform:"translateX(0)"}},"@keyframes fromLeft":{"0%":{opacity:"0",transform:"translateX(50px)"},"100%":{transform:"translateX(0)",opacity:"1"}}};var y=n(11754),x=n(80852),_=n(37834),w=n(26007),C=n(9453),S=n(9680),E=n(89526),O=n(73961),j=n(66399);class P extends y.Z{constructor(t){super(t),this.handledProps={label:void 0,items:void 0,managedClasses:void 0},this.handleTabsUpdate=t=>{this.setState({activeId:t}),"function"==typeof this.props.onUpdate&&this.props.onUpdate(t)},Array.isArray(this.props.items)&&(this.state={offsetX:0,tabPanelIndex:0,activeId:"string"==typeof this.props.activeId?this.props.activeId:(0,S.Z)(this.props.items[0],"id","")}),this.tabsRef=E.createRef()}static getDerivedStateFromProps(t,e){return t.activeId&&t.activeId!==e.activeId?{activeId:t.activeId}:null}componentDidMount(){this.ltr=this.getLTR(),this.setActiveIndicatorOffset(),this.prevTabPanelIndex=this.state.tabPanelIndex}componentDidUpdate(t,e){this.ltr!==this.getLTR()&&(this.setActiveIndicatorOffset(),this.ltr=this.getLTR()),this.state.activeId!==e.activeId&&(this.setActiveIndicatorOffset(),this.updateTabPanelIndex()),this.state.tabPanelIndex!==e.tabPanelIndex&&(this.prevTabPanelIndex=this.state.tabPanelIndex)}render(){return E.createElement(x.ZP,Object.assign({},this.unhandledProps(),{ref:this.tabsRef,managedClasses:this.generatePivotClassNames(),activeId:this.state.activeId,onUpdate:this.handleTabsUpdate,orientation:this.props.orientation,items:this.props.items,label:this.props.label}),E.createElement("span",{style:{transform:`translateX(${(0,s.a)(this.state.offsetX)})`},className:(0,_.A)(this.props.managedClasses.pivot_activeIndicator)}))}generatePivotClassNames(){const{pivot:t,pivot_tabList:e,pivot_tabContent:n,pivot_tabPanelContent:r,pivot_tab:i,pivot_tab__active:o,pivot_tabPanel:s,pivot_tabPanel__hidden:a}=this.props.managedClasses;return{tabs:t,tabs_tabPanels:this.generateTabPanelsClassNames(),tabs_tabList:e,tabs_tabContent:n,tabs_tabPanelContent:r,tab:i,tab__active:o,tabPanel:s,tabPanel__hidden:a}}isSelected(t){return"true"===t.attributes["aria-selected"].value}updateTabPanelIndex(){if((0,C.N)()&&this.tabsRef.current&&Array.isArray(this.props.items)){const t=O.findDOMNode(this.tabsRef.current),e=Array.prototype.slice.call(t.querySelectorAll("[role='tab']"));this.setState({tabPanelIndex:e.findIndex(this.isSelected)})}}generateTabPanelsClassNames(){const{pivot_tabPanels:t,pivot_tabPanels__animatePrevious:e,pivot_tabPanels__animateNext:n}=this.props.managedClasses,r=this.state.tabPanelIndex===this.prevTabPanelIndex,i=this.state.tabPanelIndex<this.prevTabPanelIndex;return(0,_.A)(t,[e,i],[n,!i&&!r])}setActiveIndicatorOffset(){if((0,C.N)()&&this.tabsRef.current&&Array.isArray(this.props.items)){const t=O.findDOMNode(this.tabsRef.current),e=t.querySelector("[aria-selected='true']");if(null!==e&&null!==t){const n=e.getBoundingClientRect().width/2,r=e.getBoundingClientRect().left-t.getBoundingClientRect().left+n;r!==this.state.offsetX&&this.setState({offsetX:r})}}}getLTR(){if((0,C.N)()){const t=O.findDOMNode(this.tabsRef.current);return t&&getComputedStyle(t).direction===w.N.rtl?w.N.rtl:w.N.ltr}}}P.displayName=`${j.k}Pivot`,P.defaultProps={managedClasses:{}};const k=P,I=(0,r.ZP)(m)(k)},63479:(t,e,n)=>{"use strict";n.d(e,{Ex:()=>S});var r=n(17332),i=n(17657),o=n(48863),s=n(51045),a=n(64197),l=n(29911),c=n(58934),u=n(91030),d=n(57167),p=n(54141),h=n(76908);const f={progress:{display:"flex",width:"100%","align-items":"center",height:(0,i.a)(d._5),"text-align":"left",[h.xE]:Object.assign({},h.a8)},progress__circular:{height:"unset",width:"unset",display:"inline-block","& $progress_valueIndicator, & $progress_indicator":{fill:"none","stroke-width":"2px","stroke-linecap":"round","transform-origin":"50% 50%",transform:"rotate(-90deg)",transition:"all 0.2s ease-in-out"},"& $progress_valueIndicator":{stroke:l.go,transform:(0,o.zw)("","scale(1)"),[h.xE]:{stroke:h.YP.buttonText}},"& $progress_valueIndicator__indeterminate":{animation:"spin-infinite 2s linear infinite"},"& $progress_indicator":{stroke:c.wF,[h.xE]:{stroke:h.YP.buttonBackground}}},progress__paused:{"& $progress_valueIndicator":{background:u.Q,stroke:u.Q,[h.xE]:{background:h.YP.disabledText,stroke:h.YP.disabledText}},"& $progress_dot":{"background-color":c.wF,[h.xE]:{"background-color":h.YP.disabledText}},"& $progress_dot__1":{"animation-play-state":"paused"},"& $progress_dot__2":{"animation-play-state":"paused"},"& $progress_valueIndicator__indeterminate":{"animation-play-state":"paused",stroke:c.wF,[h.xE]:{stroke:h.YP.disabledText}}},progress_circularSVG__control:{height:p.iD,width:p.iD},progress_circularSVG__container:{height:(0,p.Cb)(),width:(0,p.Cb)()},progress_circularSVG__page:{height:(0,i.a)((0,s.Jp)((0,p.iY)(),2)),width:(0,i.a)((0,s.Jp)((0,p.iY)(),2))},progress_valueIndicator:Object.assign({background:l.go,"border-radius":"100px",height:"100%",transition:"all 0.2s ease-in-out"},h.cx),progress_valueIndicator__indeterminate:{},progress_indicator:{position:"relative",display:"flex","align-items":"center",width:"100%",overflow:"hidden","border-radius":"100px",height:(0,i.a)(d._5),background:c.wF,transition:"all 0.2s ease-in-out","-webkit-mask-image":"-webkit-radial-gradient(white, black)","mask-image":"-webkit-radial-gradient(white, black)",[h.xE]:{background:h.YP.buttonBackground,border:(0,a.WU)("{0} solid {1}",(0,i.a)(d.bu),(()=>h.YP.buttonText))}},progress_indicator__determinate:{height:(0,i.a)(d._5),"border-radius":"2px",[h.xE]:{background:h.YP.buttonBackground,border:(0,a.WU)("{0} solid {1}",(0,i.a)(d.bu),(()=>h.YP.buttonText))}},progress_dot:{position:"absolute",opacity:"0",height:"100%","background-color":l.go,"border-radius":"100px","animation-timing-function":"cubic-bezier(0.4, 0.0, 0.6, 1.0)",[h.xE]:{background:h.YP.buttonText,opacity:"1 !important"}},progress_dot__1:{width:"40%",animation:"indeterminate-1 2s infinite"},progress_dot__2:{width:"60%",animation:"indeterminate-2 2s infinite"},"@keyframes spin-infinite":{"0%":{"stroke-dasharray":"0.01px 43.97px",transform:(0,o.zw)("rotate(0deg)","rotate(1080deg)")},"50%":{"stroke-dasharray":"21.99px 21.99px",transform:"rotate(450deg)"},"100%":{"stroke-dasharray":".01px 43.97px",transform:(0,o.zw)("rotate(1080deg)","rotate(0deg)")}},"@keyframes indeterminate-1":{"0%":{opacity:"1",transform:(0,o.zw)("translateX(-100%)","translateX(100%)")},"70%":{opacity:"1",transform:(0,o.zw)("translateX(300%)","translateX(-300%)")},"70.01%":{opacity:"0"},"100%":{opacity:"0",transform:(0,o.zw)("translateX(300%)","translateX(-300%)")}},"@keyframes indeterminate-2":{"0%":{opacity:"0",transform:(0,o.zw)("translateX(-150%)","translateX(150%)")},"29.99%":{opacity:"0"},"30%":{opacity:"1",transform:(0,o.zw)("translateX(-150%)","translateX(150%)")},"100%":{transform:(0,o.zw)("translateX(166.66%)","translateX(-166.66%)"),opacity:"1"}}};var g=n(11754),v=n(13236),b=n(87164),m=n(37834),y=n(89526),x=n(66399),_=n(11541);class w extends g.Z{constructor(){super(...arguments),this.handledProps={children:void 0,value:void 0,minValue:void 0,maxValue:void 0,managedClasses:void 0,circular:void 0,paused:void 0,size:void 0}}render(){return y.createElement(b.ZP,Object.assign({},this.unhandledProps(),{className:this.generateClassNames(),managedClasses:this.props.managedClasses,value:this.props.value,minValue:this.props.minValue,maxValue:this.props.maxValue}),this.renderProgress())}generateClassNames(){const{progress:t,progress__circular:e,progress__paused:n}=this.props.managedClasses;return super.generateClassNames((0,m.A)(t,[e,this.props.circular],[n,this.props.paused]))}generateCircularValueIndicatorClassNames(){const{progress_valueIndicator:t,progress_valueIndicator__indeterminate:e}=this.props.managedClasses;return(0,m.A)(t,[e,!this.props.value])}generateSVGClassNames(){return(0,m.A)(this.props.managedClasses[`progress_circularSVG__${this.props.size}`])}progressIndicatorClasses(){const{progress_indicator:t,progress_indicator__determinate:e}=this.props.managedClasses;return(0,m.A)(t,e)}renderIndeterminateItems(){const t=this.props.managedClasses,e=t.progress_dot;return new Array(w.indicatorCount).fill(void 0).map(((n,r)=>y.createElement("span",{className:(0,m.A)(e,t[`progress_dot__${r+1}`]),key:r})))}renderCircle(t,e){return y.createElement("circle",{className:t,style:e,cx:"8px",cy:"8px",r:"7px"})}renderCircularBackground(){return this.renderCircle((0,m.A)(this.props.managedClasses.progress_indicator))}renderProgress(){const{progress_valueIndicator:t,progress_indicator:e}=this.props.managedClasses;if(this.props.circular){const t=44*this.props.value/100;return[y.createElement("div",{slot:v.ProgressType.determinate,key:"0"},y.createElement("svg",{className:this.generateSVGClassNames(),viewBox:"0 0 16 16"},this.renderCircularBackground(),this.renderCircle(this.generateCircularValueIndicatorClassNames(),{strokeDasharray:`${t}px 44px`}))),y.createElement("div",{slot:v.ProgressType.indeterminate,key:"1"},y.createElement("svg",{className:this.generateSVGClassNames(),viewBox:"0 0 16 16"},this.renderCircularBackground(),this.renderCircle(this.generateCircularValueIndicatorClassNames())))]}return[y.createElement("div",{className:this.progressIndicatorClasses(),slot:v.ProgressType.determinate,key:"0"},y.createElement("div",{className:(0,m.A)(t),style:{width:`${this.props.value}%`}})),y.createElement("div",{slot:v.ProgressType.indeterminate,className:(0,m.A)(e),key:"1"},this.renderIndeterminateItems())]}}w.defaultProps={minValue:0,maxValue:100,circular:!1,paused:!1,size:_.L.container,managedClasses:{}},w.displayName=`${x.k}Progress`,w.indicatorCount=2;const C=w,S=(0,r.ZP)(f)(C)},11541:(t,e,n)=>{"use strict";var r;n.d(e,{L:()=>r}),function(t){t.control="control",t.container="container",t.page="page"}(r||(r={}))},36681:(t,e,n)=>{"use strict";n.d(e,{Y8:()=>C});var r=n(98722),i=n(17332),o=n(17657),s=n(51045),a=n(64197),l=n(42130),c=n(48863),u=n(48540),d=n(40359),p=n(51094),h=n(54141),f=n(25491),g=n(53363),v=n(57167),b=n(97682),m=n(76908),y=n(80369);const x=(0,o.a)((0,s.IH)((0,s.cs)((0,h.iY)(),2),v._5)),_=(0,o.a)((0,s.IH)(v._5,(0,h.ty)(0,1,2))),w={radio:{position:"relative",display:"inline-flex","flex-direction":"row","align-items":"center",transition:"all 0.2s ease-in-out"},radio_input:Object.assign(Object.assign({position:"absolute",width:x,height:x,appearance:"none","-webkit-appearance":"none","-moz-appearance":"none","border-radius":"50%",margin:"0","z-index":"1",background:u._B,transition:"all 0.2s ease-in-out",border:(0,a.WU)("{0} solid {1}",(0,o.a)(v.bu),d.sK),"&:enabled":Object.assign({},(0,b.$C)()),"&:hover:enabled":{background:u.Tm,"border-color":d.AP,[m.xE]:{background:"transparent",border:(0,a.WU)("{0} solid {1}",(0,o.a)(v.bu),(()=>m.YP.selectedBackground))}},"&:active:enabled":{background:u.Iu,"border-color":d.IY}},(0,l.F0)(Object.assign(Object.assign({},y.t1),m.vy))),{[m.xE]:Object.assign(Object.assign({},m.a8),{background:"transparent",border:(0,a.WU)("{0} solid {1}",(0,o.a)(v.bu),(()=>m.YP.buttonText))})}),radio_stateIndicator:{position:"relative","border-radius":"50%",display:"inline-block",width:x,height:x,"flex-shrink":"0","&::before":{"pointer-events":"none",position:"absolute","z-index":"1",content:'""',"border-radius":"50%",top:_,left:_,bottom:_,right:_,background:"transparent"},[m.xE]:Object.assign({},m.a8)},radio_label:Object.assign(Object.assign(Object.assign(Object.assign({},(0,b.$C)()),{color:p.CH}),(0,g.Sh)("t7")),{"margin-left":(0,c.zw)((0,h.wb)(2),""),"margin-right":(0,c.zw)("",(0,h.wb)(2))}),radio__checked:{"& $radio_stateIndicator":{"&::before":{background:v.Cz,[m.xE]:{background:m.YP.selectedBackground}}},"&:hover $radio_stateIndicator::before":Object.assign({},m.YF),"& $radio_input":Object.assign(Object.assign({"background-color":d.sK},m.YF),{"&:hover:enabled":Object.assign({"background-color":d.AP},m.$n),"&:active:enabled":{"background-color":d.IY}})},radio__disabled:Object.assign(Object.assign({},(0,f.M)()),{"& $radio_input, & $radio_label":Object.assign(Object.assign({},(0,b.YW)()),{[m.xE]:Object.assign(Object.assign({},m.a8),{background:(0,a.ef)(m.YP.buttonBackground),color:(0,a.ef)(m.YP.disabledText),fill:(0,a.ef)(m.YP.disabledText),"border-color":(0,a.ef)(m.YP.disabledText)})})})},C=(0,i.ZP)(w)(r.ZP)},20917:(t,e,n)=>{"use strict";n.d(e,{$m:()=>j});var r=n(17332),i=n(64197),o=n(17657),s=n(42130),a=n(23366),l=n(48863),c=n(61466),u=n(51094),d=n(19652),p=n(47436),h=n(97682),f=n(54141),g=n(57167),v=n(25491),b=n(53363),m=n(76908);const y={selectOption:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({"list-style-type":"none","box-sizing":"border-box",height:(0,f.Cb)(),display:"flex","align-items":"center",padding:(0,i.WU)("0 {0}",(0,f.wb)(g.Db)),margin:(0,i.WU)("0 {0}",(0,o.a)(g._5)),color:u.CH,fill:u.CH,"white-space":"nowrap",overflow:"hidden"},(0,h.ks)()),(0,b.Sh)("t7")),{background:d.jq}),(0,h.$C)()),(0,c.u0)()),(0,c.Ee)()),(0,s.F0)(Object.assign({"border-color":p.F},m.St))),{"&:hover":Object.assign({background:d.Qp},m.T)}),m.D0),selectOption_contentRegion:Object.assign({overflow:"hidden"},(0,a.L)()),selectOption_glyphContainer:{display:"flex","align-items":"center","justify-content":"center",position:"relative","min-width":"20px","min-height":"20px","flex-shrink":"0",margin:(0,l.zw)((0,i.WU)("0 {0} 0 0",(0,f.wb)(2)),(0,i.WU)("0 0 0 {0}",(0,f.wb)(2)))},selectOption_glyph:{display:"inline-block"},selectOption__disabled:Object.assign(Object.assign(Object.assign({},(0,v.M)()),m.Aw),{"&, &:hover":{background:d.jq}}),selectOption__selected:{[m.xE]:{background:(0,i.ef)(m.YP.selectedBackground),"border-color":(0,i.ef)(m.YP.buttonText),color:(0,i.ef)(m.YP.selectedText),fill:(0,i.ef)(m.YP.selectedText)},background:d.sx,"&:hover":{background:d.sx}}};var x=n(11754),_=n(22545),w=n(37834),C=n(89526),S=n(66399);class E extends x.Z{constructor(){super(...arguments),this.handledProps={glyph:void 0,value:void 0,id:void 0,managedClasses:void 0}}render(){const{selectOption:t,selectOption__disabled:e,selectOption__selected:n,selectOption_contentRegion:r}=this.props.managedClasses;return C.createElement(_.ZP,Object.assign({},this.unhandledProps(),{id:this.props.id,displayString:this.props.displayString,value:this.props.value,managedClasses:{listboxItem:t,listboxItem__disabled:e,listboxItem__selected:n}}),this.renderGlyph(),C.createElement("span",{className:(0,w.A)(r)},this.props.displayString,this.props.children))}renderGlyph(){return"function"==typeof this.props.glyph?C.createElement("div",{className:this.props.managedClasses.selectOption_glyphContainer},this.props.glyph((0,w.A)(this.props.managedClasses.selectOption_glyph))):null}}E.displayName=`${S.k}SelectOption`,E.defaultProps={managedClasses:{}};const O=E,j=(0,r.ZP)(y)(O)},18158:(t,e,n)=>{"use strict";n.d(e,{Ph:()=>k});var r=n(17332),i=n(23366),o=n(48863),s=n(64197),a=n(17657),l=n(51094),c=n(18488),u=n(4921),d=n(54141),p=n(9748),h=n(10384),f=n(61466),g=n(57167),v=n(80369),b=n(97682),m=n(76908);const y={select:{"max-width":"374px",height:(0,d.Cb)()},select_button:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,b.$C)()),{height:(0,d.Cb)(),width:"100%"}),(0,v.gM)()),m.Ob),{"&:disabled > span > svg":Object.assign({},m.He)}),select_buttonContentRegion:{display:"grid","grid-template-columns":"1fr auto","align-items":"center","justify-items":"start"},select_buttonDisplayText:Object.assign(Object.assign({},(0,i.L)()),{"text-align":(0,o.zw)("left","right"),width:"100%"}),select_toggleGlyph:Object.assign({margin:t=>(0,o.BO)(t&&t.direction||h.ZP.direction)((0,s.WU)("0 0 0 {0}",(0,d.wb)(2))(t)),fill:l.CH,"grid-column-start":"2"},m.KP),select_menu:Object.assign(Object.assign(Object.assign({background:c.s5},(0,f.h9)()),(0,p.jf)(p.Y3.e11)),{position:"relative",width:"100%",margin:"0",padding:(0,s.WU)("{0} 0",(0,a.a)(g._5)),"max-height":"328px",overflow:"auto",[m.xE]:Object.assign(Object.assign({},m.a8),{background:m.YP.buttonBackground,border:(0,s.WU)("{0} solid {1}",(0,a.a)(g.bu),(()=>m.YP.buttonText))})}),select__multiSelectable:{"& $select_menu":{position:"static","box-shadow":"none",border:"1px solid","border-color":u.L$}},select__menuPositioningRegion:{display:"grid","grid-template-columns":"1fr","grid-template-rows":"1fr"},select__menuPositionLeft:{"grid-template-columns":"1fr auto","& $select_menu":{"grid-column":"2"}},select__menuPositionRight:{"grid-template-columns":"auto 1fr","& $select_menu":{"grid-column":"1"}},select__menuPositionTop:{"grid-template-rows":"1fr auto","& $select_menu":{"grid-row":"2"}},select__menuPositionBottom:{"grid-template-rows":"auto 1fr","& $select_menu":{"grid-row":"1"}}};var x=n(11754),_=n(79389),w=n(37834),C=n(89526),S=n(64829),E=n(66399),O=n(71388);class j extends x.Z{constructor(){super(...arguments),this.handledProps={disabled:void 0,managedClasses:void 0,menu:void 0},this.defaultTriggerRenderFunction=(t,e,n)=>{if(t.multiselectable)return null;const{select_button:r,select_buttonContentRegion:i,select_buttonDisplayText:o}=this.props.managedClasses,s=`${(0,S.Z)(this.props.labelledBy)?"":`${this.props.labelledBy} `}${n}`,a=""+((0,S.Z)(this.props.describedBy)?"":`${this.props.describedBy}`);return C.createElement("button",{id:n,disabled:t.disabled,className:(0,w.A)(r),"aria-haspopup":"listbox","aria-labelledby":s,"aria-describedby":a,"aria-expanded":e.isMenuOpen},C.createElement("span",{className:(0,w.A)(i)},C.createElement("div",{className:(0,w.A)(o)},e.displayString),this.generateGlyph()))},this.defaultMenuRenderFunction=(t,e,n)=>C.createElement(O.ZP,{value:c.s5,tag:null},n),this.generateGlyph=()=>C.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",className:(0,w.A)(this.props.managedClasses.select_toggleGlyph),"aria-hidden":!0,xmlns:"http://www.w3.org/2000/svg"},C.createElement("path",{d:"M15.85 7.65c.2.2.2.5 0 .7l-5.46 5.49a.55.55 0 01-.78 0L4.15 8.35a.5.5 0 01.7-.7L10 12.8l5.15-5.16c.2-.2.5-.2.7 0z"}))}render(){return C.createElement(_.ZP,Object.assign({},this.unhandledProps(),{managedClasses:this.props.managedClasses,disabled:this.props.disabled,menu:"function"==typeof this.props.menu?this.props.menu:this.defaultMenuRenderFunction,trigger:"function"==typeof this.props.trigger?this.props.trigger:this.defaultTriggerRenderFunction}),this.props.children)}}j.displayName=`${E.k}Select`,j.defaultProps={managedClasses:{}};const P=j,k=(0,r.ZP)(y)(P)},52293:(t,e,n)=>{"use strict";n.d(e,{PQ:()=>E});var r=n(17332),i=n(17657),o=n(51045),s=n(51094),a=n(4921),l=n(97682),c=n(54141),u=n(57167),d=n(53363),p=n(76908);const h=(0,i.a)((0,o.Jp)((0,o.cs)((0,c.iY)(),4),-1)),f={sliderLabel:Object.assign(Object.assign({display:"grid"},(0,l.ks)()),{[p.xE]:Object.assign({},p.a8)}),sliderLabel_positioningRegion:{display:"grid"},sliderLabel_label:Object.assign(Object.assign(Object.assign({},(0,d.Sh)("t9")),{"white-space":"nowrap",color:s.CH}),p.qZ),sliderLabel_tickMark:Object.assign({background:a.L$},p.cx),sliderLabel__positionMin:{},sliderLabel__positionMax:{},sliderLabel__horizontal:{"&$sliderLabel":{"align-self":"start","grid-row":"2","margin-top":"-2px"},"& $sliderLabel_positioningRegion":{"grid-template-columns":"0","grid-template-rows":"auto auto",width:"0","justify-self":"center","&$sliderLabel__positionMin":{"& $sliderLabel_label":{"margin-left":h,"justify-self":"start"}},"&$sliderLabel__positionMax":{"& $sliderLabel_label":{"margin-right":h,"justify-self":"end"}}},"& $sliderLabel_label":{"justify-self":"center","grid-row":"2"},"& $sliderLabel_tickMark":{height:(0,i.a)(u._5),width:"2px","justify-self":"center"}},sliderLabel__vertical:{"&$sliderLabel":{"grid-column":"2","margin-left":"-2px"},"& $sliderLabel_positioningRegion":{"grid-template-columns":"auto auto","grid-template-rows":"0",height:"2px","align-self":"center"},"& $sliderLabel_label":{"grid-column":"2","align-self":"center",margin:"2px"},"& $sliderLabel_tickMark":{height:"2px",width:(0,i.a)(u._5),"align-self":"center"}},sliderLabel__rtl:{"&$sliderLabel__horizontal":{"& $sliderLabel_positioningRegion":{"&$sliderLabel__positionMin":{"& $sliderLabel_label":{"margin-right":"0","margin-left":h,"justify-self":"end"}},"&$sliderLabel__positionMax":{"& $sliderLabel_label":{"margin-right":"0","margin-left":h,"justify-self":"start"}}}}}};var g=n(11754),v=n(24295),b=n(39078),m=n(87915),y=n(37834),x=n(26007),_=n(89526),w=n(66399);class C extends g.Z{constructor(){super(...arguments),this.handledProps={showTickmark:void 0,label:void 0,valuePositionBinding:void 0,managedClasses:void 0},this.renderLabel=()=>void 0===this.props.label?null:_.createElement("span",{className:(0,y.A)(this.props.managedClasses.sliderLabel_label)},this.props.label),this.renderTickmark=()=>{if(this.props.showTickmark)return _.createElement("div",{className:(0,y.A)(this.props.managedClasses.sliderLabel_tickMark)})}}render(){const{sliderLabel:t,sliderLabel__horizontal:e,sliderLabel__vertical:n}=this.props.managedClasses;return _.createElement(v.ZP,Object.assign({},this.unhandledProps(),{minValuePositionBinding:this.props.valuePositionBinding,maxValuePositionBinding:this.props.valuePositionBinding,managedClasses:{sliderTrackItem:t,sliderTrackItem_horizontal:e,sliderTrackItem_vertical:n}}),_.createElement("div",{className:this.generatePositioningPanelClassNames()},this.renderLabel(),this.renderTickmark(),this.props.children))}generatePositioningPanelClassNames(){const{sliderLabel_positioningRegion:t,sliderLabel__positionMax:e,sliderLabel__positionMin:n,sliderLabel__rtl:r}=this.props.managedClasses,i=this.props.valuePositionBinding;return(0,y.A)(t,[e,i===b.U.totalRangeMax],[n,i===b.U.totalRangeMin],[r,this.context.sliderDirection===x.N.rtl])}}C.displayName=`${w.k}SliderLabel`,C.contextType=m.y,C.defaultProps={showTickmark:!0,managedClasses:{}},C.contextType=m.y;const S=C,E=(0,r.ZP)(f)(S)},69207:(t,e,n)=>{"use strict";n.d(e,{iR:()=>R});var r=n(17332),i=n(51045),o=n(17657),s=n(42130),a=n(64197),l=n(97682),c=n(61466),u=n(51094),d=n(4921),p=n(91030),h=n(54141),f=n(57167),g=n(25491),v=n(76908),b=n(80369);const m=(0,i.cs)((0,h.iY)(),2),y=(0,o.a)(m),x=(0,o.a)((0,i.cs)(m,2)),_=(0,h.ty)((0,i.cs)(f._5,2),f._5,(0,i.Jp)(f._5,1.5)),w=(0,o.a)(_),C=(0,o.a)((0,i.cs)((0,i.$X)(m,_),2)),S=(0,o.a)((0,i.Jp)((0,i.cs)(f._5,2),-1)),E="50px",O={slider:Object.assign(Object.assign({display:"inline-grid"},(0,l.$C)()),{[v.xE]:Object.assign({},v.a8)}),slider_layoutRegion:{display:"grid"},slider_thumb:Object.assign(Object.assign({height:y,width:y,border:"none",background:u.CH,"border-radius":"50%",transition:"all 0.2s ease"},(0,s.F0)(Object.assign(Object.assign({},b.t1),v.vy))),{"&:hover":{background:u.QP},"&:active":{background:u.Tt},[v.xE]:{background:v.YP.buttonText,"&:hover, &:active":{background:v.YP.selectedBackground}}}),slider_thumb__lowerValue:{},slider_thumb__upperValue:{},slider_track:{},slider_backgroundTrack:Object.assign(Object.assign(Object.assign({},(0,c.$C)()),{background:d.L$}),v.cx),slider_foregroundTrack:Object.assign(Object.assign(Object.assign({},(0,c.$C)()),{background:p.Q,transition:"all 0.2s ease"}),v.$n),slider__disabled:Object.assign(Object.assign({},(0,g.M)()),{"& $slider_thumb, & $slider_backgroundTrack":Object.assign(Object.assign({},v.Od),{"&:hover":{background:u.CH},"&:active":{background:u.CH}}),"& $slider_layoutRegion":{"& div > span":{color:(0,a.ef)(v.YP.disabledText)},"& div > div":{background:(0,a.ef)(v.YP.disabledText)}}}),slider__dragging:{"& $slider_thumb":{transition:"none"},"& $slider_foregroundTrack":{transition:"none"}},slider__incrementing:{"& $slider_thumb":{transition:"all 0.10s linear"},"& $slider_foregroundTrack":{transition:"all 0.10s linear"}},slider__horizontal:{"&$slider":{width:"100%","min-height":y,"min-width":E},"& $slider_layoutRegion":{margin:(0,a.WU)("0 {0}",x),"grid-template-rows":(0,a.WU)("{0} 1fr",y)},"& $slider_thumb":{"align-self":"start"},"& $slider_thumb__upperValue":{transform:(0,a.WU)("translateX({0})",x)},"& $slider_thumb__lowerValue":{transform:(0,a.WU)("translateX(-{0})",x)},"& $slider_track":{"align-self":"start",height:y,width:"100%"},"& $slider_backgroundTrack":{"margin-top":C,"align-self":"start",height:w,left:S,right:S},"& $slider_foregroundTrack":{"margin-top":C,"align-self":"start",height:w},"&$slider__modeAdjustLower":{"& $slider_foregroundTrack":{"margin-right":S}},"&$slider__modeAdjustUpper":{"& $slider_foregroundTrack":{"margin-left":S}}},slider__vertical:{"&$slider":{height:"100%","min-height":E,"min-width":y},"& $slider_thumb":{"justify-self":"start"},"& $slider_layoutRegion":{margin:(0,a.WU)("{0} 0",x),"grid-template-columns":(0,a.WU)("{0} 1fr",y)},"& $slider_thumb__upperValue":{transform:(0,a.WU)("translateY(-{0})",x)},"& $slider_thumb__lowerValue":{transform:(0,a.WU)("translateY({0})",x)},"& $slider_track":{"justify-self":"start","margin-left":C,width:w,height:"100%"},"& $slider_backgroundTrack":{"justify-self":"start","margin-left":C,width:w,top:S,bottom:S},"& $slider_foregroundTrack":{"justify-self":"start","margin-left":C,width:w},"&$slider__modeAdjustLower":{"& $slider_foregroundTrack":{"margin-top":S}},"&$slider__modeAdjustUpper":{"& $slider_foregroundTrack":{"margin-bottom":S}}},slider__rtl:{"&$slider__horizontal":{"& $slider_thumb__upperValue":{transform:(0,a.WU)("translateX(-{0})",x)},"& $slider_thumb__lowerValue":{transform:(0,a.WU)("translateX({0})",x)},"&$slider__modeAdjustLower":{"& $slider_foregroundTrack":{"margin-right":"0","margin-left":S}},"&$slider__modeAdjustUpper":{"& $slider_foregroundTrack":{"margin-right":S,"margin-left":"0"}}},"&$slider__vertical":{"& $slider_backgroundTrack":{"margin-right":C,"margin-left":"0"},"& $slider_foregroundTrack":{"margin-right":C,"margin-left":"0"}}},slider__modeSingle:{"& $slider_foregroundTrack":{display:"none"}},slider__modeAdjustLower:{},slider__modeAdjustUpper:{},slider__modeAdjustBoth:{"&$slider__horizontal":{"& $slider_thumb__upperValue":{width:x,"border-radius":(0,a.WU)("0px {0} {0} 0px",x)},"& $slider_thumb__lowerValue":{width:x,"border-radius":(0,a.WU)("{0} 0px 0px {0}",x)},"&$slider__rtl":{"& $slider_thumb__upperValue":{"border-radius":(0,a.WU)("{0} 0px 0px {0}",x)},"& $slider_thumb__lowerValue":{"border-radius":(0,a.WU)("0px {0} {0} 0px",x)}}},"&$slider__vertical":{"& $slider_thumb__upperValue":{height:x,"border-radius":(0,a.WU)("{0} {0} 0px 0px",x)},"& $slider_thumb__lowerValue":{height:x,"border-radius":(0,a.WU)("0px 0px {0} {0}",x)}},"& $slider_foregroundTrack":{"border-radius":"0"}}};var j=n(11754),P=n(38959),k=n(95462),I=n(89526),T=n(66399);class A extends j.Z{constructor(){super(...arguments),this.handledProps={managedClasses:void 0}}render(){return I.createElement(k.$6,null,(t=>{let e;return void 0!==t&&void 0!==t.direction&&(e=t.direction),I.createElement(P.ZP,Object.assign({},this.unhandledProps(),{dir:e||null,managedClasses:this.props.managedClasses}),this.props.children)}))}}A.displayName=`${T.k}Slider`;const D=A,R=(0,r.ZP)(O)(D)},2483:(t,e,n)=>{"use strict";n.d(e,{XC:()=>h});var r=n(17332),i=n(42130),o=n(51094),s=n(19652),a=n(47436),l=n(83868),c=n(76908);const u=Object.assign(Object.assign({},l.p),{button:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,l.$)()),{color:o.CH,fill:o.CH,background:s.jq,"&:hover:enabled, a&:not($button__disabled):hover":Object.assign({"background-color":s.Qp},c.T),"&:active:enabled, a&:not($button__disabled):active":{"background-color":s.sG}}),(0,i.F0)(Object.assign({"border-color":a.F},c.St))),{"&:disabled":Object.assign({},c.Aw)}),c.D0),{"a&:not($button__disabled)":Object.assign(Object.assign({},c.eI),{"&:not($button__disabled):hover":Object.assign({},c.H5),"&$button__disabled":Object.assign({},c.Aw)})})});var d=n(7838),p=n(66399);const h=(0,r.ZP)(u)(d.Z);h.displayName=`${p.k}StealthButton`},61184:(t,e,n)=>{"use strict";n.d(e,{pm:()=>v});var r=n(17332),i=n(89827),o=n(97682);const s={subheading:{"&$subheading__1, &$subheading__2, &$subheading__3, &$subheading__4, &$subheading__5, &$subheading__6, &$subheading__7":Object.assign(Object.assign({},(0,o.ks)()),(0,i.Li)())},subheading__1:{},subheading__2:{},subheading__3:{},subheading__4:{},subheading__5:{},subheading__6:{},subheading__7:{}};var a=n(11754),l=n(14895),c=n(37834),u=n(89526),d=n(82117),p=n(66399),h=n(63650);class f extends a.Z{constructor(){super(...arguments),this.handledProps={size:void 0,managedClasses:void 0,tag:void 0}}get size(){switch(this.props.size){case h.v._1:return l.H._3;case h.v._2:return l.H._4;case h.v._3:return l.H._5;case h.v._4:return l.H._6;case h.v._5:return l.H._7;case h.v._6:return l.H._8;case h.v._7:return l.H._9}}render(){return u.createElement(d.ZT,Object.assign({},this.unhandledProps(),{tag:l.l[this.props.tag],size:this.size,className:this.generateClassNames()}),this.props.children)}generateClassNames(){const t=this.props.managedClasses;return super.generateClassNames((0,c.A)(t.subheading,t[`subheading__${this.props.size}`]))}}f.defaultProps={size:h.v._1,tag:h.X.h3,managedClasses:{}},f.displayName=`${p.k}Subheading`;const g=f,v=(0,r.ZP)(s)(g)},63650:(t,e,n)=>{"use strict";var r,i;n.d(e,{v:()=>r,X:()=>i}),function(t){t[t._1=1]="_1",t[t._2=2]="_2",t[t._3=3]="_3",t[t._4=4]="_4",t[t._5=5]="_5",t[t._6=6]="_6",t[t._7=7]="_7"}(r||(r={})),function(t){t.h1="h1",t.h2="h2",t.h3="h3",t.h4="h4",t.h5="h5",t.h6="h6",t.p="p"}(i||(i={}))},87370:(t,e,n)=>{"use strict";n.d(e,{lT:()=>T});var r=n(17332),i=n(64197),o=n(17657),s=n(51045),a=n(48863),l=n(42130),c=n(61466),u=n(51094),d=n(4921),p=n(48540),h=n(58934),f=n(47436),g=n(54141),v=n(57167),b=n(25491),m=n(76908);const y={textField:Object.assign({height:"calc(100% - 4px)",margin:"2px 1px",border:"none",flex:"1 0 0px",background:"transparent","min-width":"inherit","&:hover, &:hover:enabled, &:disabled, &:active, &:active:enabled, &:focus, &:focus:enabled":Object.assign({background:"none",border:"none","box-shadow":"none"},m.Ds)},m.KP)},x=Object.assign({margin:"auto",fill:u.CH},m.KP),_={textAction:Object.assign(Object.assign(Object.assign({"box-sizing":"border-box",position:"relative",height:(0,g.Cb)(),margin:"0","min-width":"92px",border:(0,i.WU)("{0} solid {1}",(0,o.a)(v.bu),d.L$),background:p._B},(0,c.u0)()),{display:"flex","flex-direction":"row",transition:"all 0.2s ease-in-out","&:hover":{background:p.Tm,"border-color":d.yD,[m.xE]:{background:"transparent","border-color":m.YP.selectedBackground}},"&:active":{background:p.Iu,"border-color":d.tA}}),m.Ob),textAction__filled:{background:h.wF,border:(0,i.WU)("{0} solid transparent",(0,o.a)(v.bu)),"&:hover":{background:h.Xi,"border-color":"transparent",[m.xE]:{background:m.YP.buttonBackground,"border-color":m.YP.selectedBackground}},"&:active":{background:h.Gy,"border-color":"transparent"},[m.xE]:{background:m.YP.buttonBackground,border:(0,i.WU)("{0} solid {1}",(0,o.a)(v.bu),(()=>m.YP.buttonText))}},textAction__outline:{},textAction__focus:{"&, &:hover":{"box-shadow":(0,i.WU)("0 0 0 {0} {1} inset",(0,o.a)((0,s.$X)(v.Db,v.bu)),f.F),border:(0,i.WU)("{0} solid {1}",(0,o.a)(v.bu),f.F)},[m.xE]:{"&, &:hover":{"box-shadow":(0,i.WU)("0 0 0 {0} {1} inset",(0,o.a)((0,s.$X)(v.Db,v.bu)),(()=>m.YP.buttonText)),border:(0,i.WU)("{0} solid {1}",(0,o.a)(v.bu),(()=>m.YP.buttonText))}}},textAction__disabled:Object.assign(Object.assign(Object.assign({},(0,b.M)()),m.Aw),{"&:hover":{background:p._B,"border-color":d.L$},"&:active":{background:p._B,"border-color":d.L$},"& $textAction_beforeGlyph, & $textAction_afterGlyph":Object.assign({},m.He)}),textAction_button:Object.assign({"border-color":"transparent",color:u.CH,fill:u.CH,height:(0,i.WU)("calc({0} - 6px)",(0,g.Cb)()),"min-width":"fit-content",margin:"2px",padding:"0 3px",left:(0,a.zw)("0",""),right:(0,a.zw)("","0"),top:"0",transition:"color .1s, background-color .1s, border-color 0.2s ease-in-out",flex:"0 0 auto",cursor:"pointer",[m.xE]:{background:m.YP.buttonBackground,fill:m.YP.buttonText},"&:hover":Object.assign({},m.T),"&:active":Object.assign({},m.T),"&:disabled":{}},(0,l.F0)({[m.xE]:{background:m.YP.selectedBackground,fill:m.YP.selectedText,"border-color":(0,i.ef)(m.YP.buttonText),"box-shadow":(0,i.WU)("0 0 0 {0} inset {1}",(0,o.a)(v.Db),(()=>m.YP.buttonBackground))}})),textAction_glyphContainer:{display:"flex","align-items":"center","justify-content":"center","min-width":"20px","min-height":"20px"},textAction_beforeGlyphContainer:{"margin-left":(0,a.zw)((0,g.wb)(3),""),"margin-right":(0,a.zw)("",(0,g.wb)(3))},textAction_afterGlyphContainer:{"margin-left":(0,a.zw)("",(0,g.wb)(3)),"margin-right":(0,a.zw)((0,g.wb)(3),"")},textAction_beforeGlyph:Object.assign({},x),textAction_afterGlyph:Object.assign({},x)};var w=n(11754),C=n(37834),S=n(9680),E=n(89526),O=n(41808),j=n(66399),P=n(62650);class k extends w.Z{constructor(t){super(t),this.handledProps={appearance:void 0,afterGlyph:void 0,beforeGlyph:void 0,button:void 0,buttonPosition:void 0,className:void 0,managedClasses:void 0},this.handleOnFocus=t=>{this.setState({focused:!0}),"function"==typeof this.props.onFocus&&this.props.onFocus(t)},this.handleOnBlur=t=>{this.setState({focused:!1}),"function"==typeof this.props.onBlur&&this.props.onBlur(t)},this.state={focused:!1}}render(){return E.createElement("div",{className:this.generateClassNames()},this.buttonExists()&&this.props.buttonPosition===P.K.before?this.generateButton():null,this.generateBeforeGlyph(),E.createElement(O.nv,Object.assign({},this.unhandledProps(),{disabled:(0,S.Z)(this.props,"disabled",null),placeholder:(0,S.Z)(this.props,"placeholder",null),jssStyleSheet:y,onBlur:this.handleOnBlur,onFocus:this.handleOnFocus})),this.generateAfterGlyph(),this.buttonExists()&&this.props.buttonPosition===P.K.after?this.generateButton():null)}generateClassNames(){const{textAction:t,textAction__disabled:e,textAction__focus:n}=this.props.managedClasses;return super.generateClassNames((0,C.A)(t,[this.props.managedClasses[`textAction__${P.e[this.props.appearance]}`],!!this.props.appearance],[e,this.props.disabled],[n,this.state.focused]))}buttonExists(){return"function"==typeof this.props.button}generateButton(){return this.props.button((0,C.A)(this.props.managedClasses.textAction_button),this.props.disabled)}generateAfterGlyph(){if("function"==typeof this.props.afterGlyph)return E.createElement("div",{className:(0,C.A)(this.props.managedClasses.textAction_glyphContainer,this.props.managedClasses.textAction_afterGlyphContainer)},this.props.afterGlyph((0,C.A)(this.props.managedClasses.textAction_afterGlyph)))}generateBeforeGlyph(){if("function"==typeof this.props.beforeGlyph)return E.createElement("div",{className:(0,C.A)(this.props.managedClasses.textAction_glyphContainer,this.props.managedClasses.textAction_beforeGlyphContainer)},this.props.beforeGlyph((0,C.A)(this.props.managedClasses.textAction_beforeGlyph)))}}k.displayName=`${j.k}TextAction`,k.defaultProps={buttonPosition:P.K.after,managedClasses:{}};const I=k,T=(0,r.ZP)(_)(I)},62650:(t,e,n)=>{"use strict";var r,i;n.d(e,{e:()=>r,K:()=>i}),function(t){t.filled="filled",t.outline="outline"}(r||(r={})),function(t){t.before="before",t.after="after"}(i||(i={}))},17350:(t,e,n)=>{"use strict";n.d(e,{K:()=>d});var r=n(74781),i=n(17332),o=n(17657),s=n(51045),a=n(54141),l=n(80369),c=n(57167);const u={textArea:Object.assign(Object.assign({},(0,l.gM)()),{height:(0,a.Cb)(2),"padding-top":(0,o.a)((0,s.Jp)(c._5,1.5)),"padding-bottom":(0,o.a)((0,s.Jp)(c._5,1.5)),"max-width":"100%"})},d=(0,i.ZP)(u)(r.Z)},41808:(t,e,n)=>{"use strict";n.d(e,{nv:()=>g});var r=n(17332),i=n(54141),o=n(80369);const s={textField:Object.assign(Object.assign({},(0,o.gM)()),{height:(0,i.Cb)()}),textField__filled:Object.assign({},(0,o.UX)())};var a,l=n(11754),c=n(58979),u=n(37834),d=n(89526),p=n(66399);!function(t){t.filled="filled",t.outline="outline"}(a||(a={}));class h extends l.Z{constructor(){super(...arguments),this.handledProps={appearance:void 0,managedClasses:void 0}}render(){return d.createElement(c.ZP,Object.assign({},this.unhandledProps(),{className:this.generateClassNames(),managedClasses:this.props.managedClasses}))}generateClassNames(){return super.generateClassNames((0,u.A)([this.props.managedClasses[`textField__${a[this.props.appearance]}`],!!this.props.appearance]))}}h.displayName=`${p.k}TextField`,h.defaultProps={managedClasses:{}};const f=h,g=(0,r.ZP)(s)(f)},98401:(t,e,n)=>{"use strict";n.d(e,{ZD:()=>s});var r=n(87472),i=n(17332),o=n(49406);const s=(0,i.ZP)(o.Z)(r.ZP)},82117:(t,e,n)=>{"use strict";n.d(e,{ZT:()=>a});var r=n(61341),i=n(17332),o=n(53363);const s={typography:{color:n(51094).CH,"margin-top":"0","margin-bottom":"0",transition:"all 0.2s ease-in-out"},typography__1:Object.assign({},(0,o.Sh)("t1")),typography__2:Object.assign({},(0,o.Sh)("t2")),typography__3:Object.assign({},(0,o.Sh)("t3")),typography__4:Object.assign({},(0,o.Sh)("t4")),typography__5:Object.assign({},(0,o.Sh)("t5")),typography__6:Object.assign({},(0,o.Sh)("t6")),typography__7:Object.assign({},(0,o.Sh)("t7")),typography__8:Object.assign({},(0,o.Sh)("t8")),typography__9:Object.assign({},(0,o.Sh)("t9"))},a=(0,i.ZP)(s)(r.ZP)},66399:(t,e,n)=>{"use strict";n.d(e,{k:()=>r});const r="MSFT"},27157:(t,e,n)=>{"use strict";n.d(e,{Z:()=>P});var r=n(17657),i=n(51045),o=n(48863),s=n(64197),a=n(42130),l=n(57167),c=n(93150),u=n(81839);const d=(0,c.vm)((0,u.r)(l.yv,4.5,0,l.OK,l.d0,l.G)),p=(0,c.mq)(c.lB.rest,d),h=(0,c.mq)(c.lB.hover,d),f=(0,c.mq)(c.lB.active,d);(0,c.mq)(c.lB.focus,d);var g=n(48540),v=n(40359),b=n(51094),m=n(61466),y=n(54141),x=n(25491),_=n(53363),w=n(97682),C=n(76908),S=n(80369);const E=(0,r.a)((0,i.IH)((0,i.cs)((0,y.iY)(),2),l._5)),O=(0,r.a)((0,i.IH)(l._5,(0,y.ty)(0,1,2))),j=t=>e=>{const n="string"==typeof t?t:t(e);return`<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path fill="${encodeURIComponent(n)}" fill-rule="evenodd" clip-rule="evenodd" d="M8.143 12.6697L15.235 4.5L16.8 5.90363L8.23812 15.7667L3.80005 11.2556L5.27591 9.7555L8.143 12.6697Z"/></svg>`},P={checkbox:{position:"relative",display:"inline-flex","flex-direction":"row","align-items":"center",transition:"all 0.2s ease-in-out","& $checkbox_label":{"padding-left":(0,o.zw)((0,y.wb)(2),""),"padding-right":(0,o.zw)("",(0,y.wb)(2))},[C.xE]:Object.assign({},C.a8)},checkbox_input:Object.assign(Object.assign(Object.assign(Object.assign({position:"absolute",width:E,height:E,appearance:"none","-webkit-appearance":"none","-moz-appearance":"none"},(0,m.u0)()),{"box-sizing":"border-box",margin:"0","z-index":"1",background:g._B,transition:"all 0.2s ease-in-out",border:(0,s.WU)("{0} solid {1}",(0,r.a)(l.bu),v.sK),"&:enabled":Object.assign({},(0,w.$C)()),"&:hover:enabled":{background:g.Tm,"border-color":v.AP,[C.xE]:{background:C.YP.background,"border-color":C.YP.selectedBackground}},"&:active:enabled":{background:g.Iu,"border-color":v.IY}}),(0,a.F0)(Object.assign(Object.assign({},S.t1),C.vy))),C.Fn),checkbox_stateIndicator:Object.assign(Object.assign({position:"relative"},(0,m.u0)()),{display:"inline-block",width:E,height:E,"flex-shrink":"0","&::before":{content:"''","pointer-events":"none",position:"absolute","z-index":"1",top:"0",left:"0",width:E,height:E}}),checkbox_label:Object.assign(Object.assign(Object.assign(Object.assign({},(0,w.$C)()),{color:b.CH}),(0,_.Sh)("t7")),C.qZ),checkbox__checked:{"& $checkbox_stateIndicator":{"&::before":{background:(0,s.WU)("url('data:image/svg+xml;utf8,{0}')",j(l.Cz)),[C.xE]:{background:(0,s.WU)("url('data:image/svg+xml;utf8,{0}')",j(C.YP.selectedText))}}},"&:hover":{"& $checkbox_stateIndicator":{"&::before":{[C.xE]:{background:(0,s.WU)("url('data:image/svg+xml;utf8,{0}')",j(C.YP.selectedBackground))}}}},"& $checkbox_input":Object.assign(Object.assign({background:p,"border-color":"transparent"},C.$n),{"&:hover":Object.assign({background:h},C.YF),"&:active":{background:f}})},checkbox__indeterminate:{"& $checkbox_stateIndicator":{"&::before":Object.assign(Object.assign({},(0,m.u0)()),{transform:"none",top:O,right:O,bottom:O,left:O,width:"auto",height:"auto",background:b.CH,[C.xE]:{backgroundColor:C.YP.selectedBackground}})}},checkbox__disabled:Object.assign(Object.assign({},(0,x.M)()),{"& $checkbox_input, & $checkbox_label":Object.assign(Object.assign({},(0,w.YW)()),C.Aw)})}},10384:(t,e,n)=>{"use strict";n.d(e,{DO:()=>s,ZP:()=>a});var r=n(26007),i=n(64702);const o={backgroundColor:n(21019).ix,contrast:0,density:0,designUnit:4,baseHeightMultiplier:8,baseHorizontalSpacingMultiplier:3,direction:r.N.ltr,cornerRadius:2,elevatedCornerRadius:4,focusOutlineWidth:2,fontWeight:{light:100,semilight:200,normal:400,semibold:600,bold:700},disabledOpacity:.3,outlineWidth:1,neutralPalette:["#FFFFFF","#FCFCFC","#FAFAFA","#F7F7F7","#F5F5F5","#F2F2F2","#EFEFEF","#EDEDED","#EAEAEA","#E8E8E8","#E5E5E5","#E2E2E2","#E0E0E0","#DDDDDD","#DBDBDB","#D8D8D8","#D6D6D6","#D3D3D3","#D0D0D0","#CECECE","#CBCBCB","#C9C9C9","#C6C6C6","#C3C3C3","#C1C1C1","#BEBEBE","#BCBCBC","#B9B9B9","#B6B6B6","#B4B4B4","#B1B1B1","#AFAFAF","#ACACAC","#A9A9A9","#A7A7A7","#A4A4A4","#A2A2A2","#9F9F9F","#9D9D9D","#9A9A9A","#979797","#959595","#929292","#909090","#8D8D8D","#8A8A8A","#888888","#858585","#838383","#808080","#7D7D7D","#7B7B7B","#787878","#767676","#737373","#717171","#6E6E6E","#6B6B6B","#696969","#666666","#646464","#616161","#5F5F5F","#5C5C5C","#5A5A5A","#575757","#545454","#525252","#4F4F4F","#4D4D4D","#4A4A4A","#484848","#454545","#424242","#404040","#3D3D3D","#3B3B3B","#383838","#363636","#333333","#313131","#2E2E2E","#2B2B2B","#292929","#262626","#242424","#212121","#1E1E1E","#1B1B1B","#181818","#151515","#121212","#101010","#000000"],accentPalette:["#FFFFFF","#FBFDFE","#F6FAFE","#F2F8FD","#EEF6FC","#E9F4FB","#E5F1FB","#E1EFFA","#DCEDF9","#D8EAF8","#D4E8F8","#CFE6F7","#CBE4F6","#C7E1F6","#C2DFF5","#BEDDF4","#BADAF3","#B6D8F3","#B1D6F2","#ADD4F1","#A9D1F0","#A4CFF0","#A0CDEF","#9CCAEE","#97C8EE","#93C6ED","#8FC4EC","#8AC1EB","#86BFEB","#82BDEA","#7DBAE9","#79B8E8","#75B6E8","#70B3E7","#6CB1E6","#68AFE5","#63ADE5","#5FAAE4","#5BA8E3","#56A6E3","#52A3E2","#4EA1E1","#499FE0","#459DE0","#419ADF","#3D98DE","#3896DD","#3493DD","#3091DC","#2B8FDB","#278DDB","#238ADA","#1E88D9","#1A86D8","#1683D8","#1181D7","#0D7FD6","#097DD5","#047AD5","#0078D4","#0075CF","#0072C9","#006FC4","#006CBE","#0069B9","#0066B4","#0063AE","#0060A9","#005CA3","#00599E","#005699","#005393","#00508E","#004D88","#004A83","#00477D","#004478","#004173","#003E6D","#003B68","#003862","#00355D","#003258","#002F52","#002B4D","#002847","#002542","#00223C","#001F36","#001B30","#00182B","#001525","#00121F","#000000"],accentBaseColor:"#0078D4",accentFillRestDelta:0,accentFillHoverDelta:4,accentFillActiveDelta:-5,accentFillFocusDelta:0,accentFillSelectedDelta:12,accentForegroundRestDelta:0,accentForegroundHoverDelta:6,accentForegroundActiveDelta:-4,accentForegroundFocusDelta:0,neutralFillRestDelta:7,neutralFillHoverDelta:10,neutralFillActiveDelta:5,neutralFillFocusDelta:0,neutralFillSelectedDelta:7,neutralFillInputRestDelta:0,neutralFillInputHoverDelta:0,neutralFillInputActiveDelta:0,neutralFillInputFocusDelta:0,neutralFillInputSelectedDelta:0,neutralFillStealthRestDelta:0,neutralFillStealthHoverDelta:5,neutralFillStealthActiveDelta:3,neutralFillStealthFocusDelta:0,neutralFillStealthSelectedDelta:7,neutralFillToggleHoverDelta:8,neutralFillToggleActiveDelta:-5,neutralFillToggleFocusDelta:0,baseLayerLuminance:-1,neutralFillCardDelta:3,neutralForegroundDarkIndex:93,neutralForegroundLightIndex:0,neutralForegroundHoverDelta:0,neutralForegroundActiveDelta:0,neutralForegroundFocusDelta:0,neutralDividerRestDelta:8,neutralOutlineRestDelta:25,neutralOutlineHoverDelta:40,neutralOutlineActiveDelta:16,neutralOutlineFocusDelta:25};function s(t,e){return(0,i.Z)(t)?t(e):t}const a=o},19898:(t,e,n)=>{"use strict";n.d(e,{Z:()=>p});var r=n(64197),i=n(17657),o=n(42130),s=n(51094),a=n(29911),l=n(47436),c=n(57167),u=n(76908);const d={hypertext:{outline:"none","text-decoration":"none",color:s.CH,transition:"all 0.2s ease-in-out, border 0.03s ease-in-out","&:link, &:visited":Object.assign(Object.assign({"border-bottom":(0,r.WU)("{0} solid {1}",(0,i.a)(c.bu),a.go),color:a.go,"&:hover":{"border-bottom-color":a.D9,color:a.D9,[u.xE]:{"border-bottom-color":u.cy,color:u.cy}},"&:active":{"border-bottom-color":a.VN,color:a.VN}},(0,o.F0)({"border-bottom":(0,r.WU)("{0} solid {1}",(0,i.a)(c.Db),l.F),[u.xE]:{"border-bottom-color":u.cy,color:u.cy}})),{[u.xE]:{color:u.cy,"border-bottom-color":u.cy}}),[u.xE]:Object.assign(Object.assign({},u.a8),{color:u.YP.text})}},p=/^(67[25]|(14|20|77|88)5|(2|3|47)2|571|939|991)$/.test(n.j)?d:null},83868:(t,e,n)=>{"use strict";if(n.d(e,{$:()=>h,p:()=>f}),!/^(2(22|74|96)|154|183|32|580|717|830|882|997)$/.test(n.j))var r=n(64197);if(!/^(2(22|74|96)|154|183|32|580|717|830|882|997)$/.test(n.j))var i=n(51045);var o=n(17657),s=n(48863);if(!/^(2(22|74|96)|154|183|32|580|717|830|882|997)$/.test(n.j))var a=n(61466);if(!/^(2(22|74|96)|154|183|32|580|717|830|882|997)$/.test(n.j))var l=n(97682);var c=n(54141),u=n(57167),d=n(25491);if(!/^(2(22|74|96)|154|183|32|580|717|830|882|997)$/.test(n.j))var p=n(53363);function h(){return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,p.Sh)("t7")),(0,l.$C)()),(0,a.Ee)()),(0,a.u0)()),{"font-family":"inherit","box-sizing":"border-box","max-width":"374px","min-width":(0,c.Cb)(),padding:(0,r.WU)("0 {0}",(0,c.wb)((0,i.IH)(u.Db,2))),display:"inline-flex","justify-content":"center","align-items":"center",height:(0,c.Cb)(),"line-height":"1",overflow:"hidden","text-decoration":"none","white-space":"nowrap",transition:"all 0.1s ease-in-out","&::-moz-focus-inner":{border:"0"}})}const f={button_contentRegion:{position:"relative","&::before":{content:"''",display:"block",height:(0,o.a)(u.bu),position:"absolute",bottom:"-3px",width:"100%",left:(0,s.zw)("0",""),right:(0,s.zw)("","0")},"& svg":{}},button__disabled:Object.assign({},(0,d.M)()),button_beforeOrAfterContainer:{display:"flex","align-items":"center","justify-content":"center","min-width":"20px","min-height":"20px"},button_beforeContainer:{},button_afterContainer:{},button_beforeContent:{},button_afterContent:{},button__hasBeforeOrAfterAndChildren:{"& $button_beforeContainer":{"margin-right":(0,s.zw)((0,c.wb)(2),""),"margin-left":(0,s.zw)("",(0,c.wb)(2))},"& $button_afterContainer":{"margin-right":(0,s.zw)("",(0,c.wb)(2)),"margin-left":(0,s.zw)((0,c.wb)(2),"")}}}},80369:(t,e,n)=>{"use strict";n.d(e,{gM:()=>y,UX:()=>x,t1:()=>_});var r=n(64197),i=n(17657),o=n(51045);if(/^(5(5|51|71)|6(01|72|75)|9(08|39|91)|(18|20|77|88)5|22|360)$/.test(n.j))var s=n(61466);if(/^(5(5|51|71)|6(01|72|75)|9(08|39|91)|(18|20|77|88)5|22|360)$/.test(n.j))var a=n(48540);if(/^(5(5|51|71)|6(01|72|75)|9(08|39|91)|(18|20|77|88)5|22|360)$/.test(n.j))var l=n(4921);if(/^(5(5|51|71)|6(01|72|75)|9(08|39|91)|(18|20|77|88)5|22|360)$/.test(n.j))var c=n(51094);var u=n(47436);if(/^(5(5|51|71)|6(01|72|75)|9(08|39|91)|(18|20|77|88)5|22|360)$/.test(n.j))var d=n(91030);if(/^(5(5|51|71)|6(01|72|75)|9(08|39|91)|(20|77|88)5|22|360)$/.test(n.j))var p=n(58934);if(/^(5(5|51|71)|6(01|72|75)|9(08|39|91)|(18|20|77|88)5|22|360)$/.test(n.j))var h=n(54141);if(/^(5(5|51|71)|6(01|72|75)|9(08|39|91)|(18|20|77|88)5|22|360)$/.test(n.j))var f=n(25491);if(/^(5(5|51|71)|6(01|72|75)|9(08|39|91)|(18|20|77|88)5|22|360)$/.test(n.j))var g=n(53363);if(/^(5(5|51|71)|6(01|72|75)|9(08|39|91)|(18|20|77|88)5|22|360)$/.test(n.j))var v=n(89827);var b=n(57167);if(/^(5(5|51|71)|6(01|72|75)|9(08|39|91)|(18|20|77|88)5|22|360)$/.test(n.j))var m=n(76908);function y(t){return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,g.Sh)("t7")),(0,v.Li)()),{background:a._B,border:(0,r.WU)("{0} solid {1}",(0,i.a)(b.bu),l.L$),color:c.CH,"font-family":"inherit","box-sizing":"border-box",padding:(0,r.WU)("0 {0}",(0,h.wb)(b.bu))}),(0,s.u0)()),{margin:"0",transition:"all 0.2s ease-in-out","&:hover:enabled":{background:a.Tm,"border-color":l.yD,[m.xE]:{background:m.YP.buttonBackground,border:(0,r.WU)("{0} solid {1}",(0,i.a)(b.bu),(()=>m.YP.selectedBackground))}},"&:active:enabled":{background:a.Iu,"border-color":l.tA},"&:focus:enabled":Object.assign({"box-shadow":(0,r.WU)("0 0 0 1px {0} inset",u.F),"border-color":u.F,outline:"none"},m.St),"&:disabled":Object.assign(Object.assign({},(0,f.M)()),m.Aw),"&::placeholder":{color:(0,d.Q)(a._B),[m.xE]:{color:m.YP.disabledText}},[m.xE]:Object.assign(Object.assign({},m.a8),{background:m.YP.buttonBackground,"border-color":m.YP.buttonText,color:m.YP.buttonText})})}function x(){return Object.assign(Object.assign({},y()),{background:p.wF,border:(0,r.WU)("{0} solid transparent",(0,i.a)(b.bu)),"&:hover:enabled":{background:p.Xi,"border-color":"transparent",[m.xE]:{background:m.YP.buttonBackground,border:(0,r.WU)("{0} solid {1}",(0,i.a)(b.bu),(()=>m.YP.selectedBackground))}},"&:active:enabled":{"border-color":"transparent"},"&:focus:enabled":{"border-color":u.F},"&::placeholder":{color:(0,d.Q)(p.wF),[m.xE]:{color:m.YP.disabledText}},[m.xE]:Object.assign(Object.assign({},m.a8),{background:m.YP.buttonBackground,"border-color":m.YP.buttonText})})}const _={"box-shadow":(0,r.WU)("0 0 0 2px {0}, 0 0 0 {2} {1}",b.Cz,u.F,(0,i.a)((0,o.IH)(b.Db,2)))}},49406:(t,e,n)=>{"use strict";n.d(e,{Z:()=>O});var r=n(51045),i=n(48863),o=n(17657),s=n(64197),a=n(42130),l=n(53363),c=n(51094),u=n(48540),d=n(40359),p=n(94048),h=n(95046),f=n(25491),g=n(54141),v=n(57167),b=n(97682),m=n(76908),y=n(80369);const x=(0,r.IH)((0,r.cs)((0,g.iY)(),2),v._5),_=(0,r.Jp)(x,2),w=(0,r.IH)(v._5,(0,g.ty)(0,1,2)),C=(0,r.$X)(x,(0,r.Jp)(w,2)),S=(0,r.$X)(_,w,C),E={toggle:{display:"inline-block",color:c.CH,transition:"all 0.2s ease-in-out",[m.xE]:Object.assign({},m.a8)},toggle_label:Object.assign(Object.assign(Object.assign({},(0,b.$C)()),(0,l.Sh)("t7")),{display:"block","padding-bottom":"7px",clear:"both"}),toggle_toggleButton:Object.assign(Object.assign({},(0,b.$C)()),{position:"relative","margin-top":"0",float:(0,i.zw)("left","right")}),toggle_stateIndicator:{position:"absolute","pointer-events":"none",top:(0,o.a)(w),left:(0,i.zw)((0,o.a)(w),"unset"),right:(0,i.zw)("unset",(0,o.a)(w)),transition:"all .1s ease","border-radius":(0,o.a)(C),width:(0,o.a)(C),height:(0,o.a)(C),background:c.CH},toggle_input:Object.assign(Object.assign(Object.assign(Object.assign({},(0,b.$C)()),{display:"block",position:"relative",margin:"0",width:(0,o.a)(_),height:(0,o.a)(x),background:u._B,border:(0,s.WU)("{0} solid {1}",(0,o.a)(v.bu),d.sK),"border-radius":(0,o.a)(x),appearance:"none","-webkit-appearance":"none","-moz-appearance":"none",outline:"none","&:active":{background:u.Iu,"border-color":d.IY,[m.xE]:{background:m.YP.selectedBackground,"border-color":m.YP.selectedText,"& + span":{background:m.YP.selectedText}}},"&:hover":{background:u.Tm,"border-color":d.AP,[m.xE]:{background:m.YP.background,"border-color":m.YP.selectedBackground,"& + span":{background:m.YP.selectedBackground}}}}),(0,a.F0)(Object.assign(Object.assign({},y.t1),m.vy))),{[m.xE]:{background:m.YP.background,"border-color":m.YP.buttonText,"& + span":{background:m.YP.buttonText}}}),toggle__checked:{"& $toggle_input":{background:p.Av,"border-color":p.Av,"&:disabled":{"& $toggle_input, & $toggle_label, & $toggle_statusMessage":{[m.xE]:{background:"transparent","border-color":(0,s.ef)(m.YP.disabledText),color:(0,s.ef)(m.YP.disabledText),"& + span":{background:(0,s.ef)(m.YP.disabledText)}}}},"&:hover":{[m.xE]:{background:m.YP.selectedText,"border-color":m.YP.selectedBackground,"& + span":{background:m.YP.selectedBackground}}},"&:active":{[m.xE]:{background:(0,s.ef)(m.YP.selectedBackground),"border-color":(0,s.ef)(m.YP.selectedBackground),"& + span":{background:(0,s.ef)(m.YP.selectedText)}}},[m.xE]:{background:m.YP.selectedBackground,"border-color":m.YP.selectedBackground,"& + span":{background:m.YP.selectedText}}},"& $toggle_stateIndicator":{left:(0,i.zw)((0,o.a)(S),"unset"),right:(0,i.zw)("unset",(0,o.a)(S)),background:h.Q}},toggle__disabled:Object.assign(Object.assign({},(0,f.M)()),{"& $toggle_input, & $toggle_label, & $toggle_statusMessage":Object.assign(Object.assign({},(0,b.YW)()),{[m.xE]:{background:"transparent","border-color":(0,s.ef)(m.YP.disabledText),color:(0,s.ef)(m.YP.disabledText),"& + span":{background:(0,s.ef)(m.YP.disabledText)}}})}),toggle_statusMessage:Object.assign(Object.assign(Object.assign({},(0,l.Sh)("t7")),{"line-height":(0,o.a)(x),float:(0,i.zw)("left","right"),"padding-left":(0,i.zw)("6px",""),"padding-right":(0,i.zw)("","6px"),"user-select":"none","margin-top":"0","padding-bottom":"0"}),m.qZ)},O=/^(67[25]|185|472|571|991)$/.test(n.j)?E:null},61466:(t,e,n)=>{"use strict";if(n.d(e,{u0:()=>a,us:()=>l,h9:()=>c,$C:()=>u,Ee:()=>d}),!/^(183|274|296|580|717|830|882|997)$/.test(n.j))var r=n(17657);if(!/^(183|274|296|580|717|830|882|997)$/.test(n.j))var i=n(64197);if(!/^(183|274|296|580|717|830|882|997)$/.test(n.j))var o=n(57167);function s(t){return{"border-radius":t}}function a(){return s((0,r.a)(o.Ri))}function l(){return s((0,r.a)(o.al))}function c(){return l()}function u(){return s("999px")}function d(t){return{border:(0,i.WU)("{0} solid transparent",(0,r.a)(o.Db))}}},94048:(t,e,n)=>{"use strict";n.d(e,{Av:()=>p,OC:()=>h,UE:()=>f,NU:()=>g});var r=n(67099),i=n(57167),o=n(95046),s=n(93150),a=n(14963);const l=(0,s.K2)(i.MY,i.jW,i.hD);function c(t){return e=>{const n=(0,i.au)(e),c=n.length,u=(0,i.R6)(e),d=(0,o.Q)(Object.assign({},e,{backgroundColor:u})),p=(0,i.B2)(e),h=(0,a.BD)(e)>=l(e)?-1:1,f=c-1,g=(0,a.hi)(i.au,u)(e);let v=0;for(;v<h*p&&(0,r.Z)(g+v+h,0,c)&&(0,s.$p)(n[g+v+h],d)>=t&&(0,r.Z)(g+v+h+h,0,f);)v+=h;const b=g+v,m=b+-1*h*p,y=m+h*(0,i.Wo)(e),x=m+h*(0,i.v$)(e);return{rest:(0,a.qZ)(m,n),hover:(0,a.qZ)(b,n),active:(0,a.qZ)(y,n),focus:(0,a.qZ)(x,n),selected:(0,a.qZ)(m+((0,a.Yc)(e)?-1*(0,i.bX)(e):(0,i.bX)(e)),n)}}}const u=(0,s.vm)(c(4.5)),d=(0,s.vm)(c(3)),p=(0,s.mq)(s.lB.rest,u),h=(0,s.mq)(s.lB.hover,u),f=(0,s.mq)(s.lB.active,u),g=((0,s.mq)(s.lB.focus,u),(0,s.mq)(s.lB.selected,u));(0,s.mq)(s.lB.rest,d),(0,s.mq)(s.lB.hover,d),(0,s.mq)(s.lB.active,d),(0,s.mq)(s.lB.focus,d),(0,s.mq)(s.lB.selected,d)},95046:(t,e,n)=>{"use strict";n.d(e,{Q:()=>l});var r=n(57167),i=n(21019),o=n(93150);const s=(t,e)=>(0,o.$p)(i.ix,t)>=e?i.ix:i.Sn;function a(t){return function(e){return"function"==typeof e?n=>s(e(n),t):s((0,r.R6)(e),t)}}const l=a(4.5);a(3)},29911:(t,e,n)=>{"use strict";n.d(e,{go:()=>c,D9:()=>u,VN:()=>d});var r=n(57167),i=n(14963),o=n(93150);function s(t){return e=>{const n=(0,r.au)(e),o=(0,r.R6)(e),s=(0,i.hi)(r.au,o)(e),a={rest:(0,r.kp)(e),hover:(0,r.L8)(e),active:(0,r.kb)(e),focus:(0,r.nd)(e)},l=(0,i.Yc)(e)?-1:1,c=s+(1===l?Math.min(a.rest,a.hover):Math.max(l*a.rest,l*a.hover)),u=(0,i.Ce)(r.Cz)(r.au)((()=>c))((()=>l))((e=>e>=t))(e),d=(0,i.Ik)(r.au,u)(e),p=d+l*Math.abs(a.rest-a.hover),h=1===l?a.rest<a.hover:l*a.rest>l*a.hover,f=h?d:p,g=h?p:d,v=f+l*a.active,b=f+l*a.focus;return{rest:(0,i.qZ)(f,n),hover:(0,i.qZ)(g,n),active:(0,i.qZ)(v,n),focus:(0,i.qZ)(b,n)}}}const a=(0,o.vm)(s(4.5)),l=(0,o.vm)(s(3)),c=(0,o.mq)(o.lB.rest,a),u=(0,o.mq)(o.lB.hover,a),d=(0,o.mq)(o.lB.active,a);(0,o.mq)(o.lB.focus,a),(0,o.mq)(o.lB.rest,l),(0,o.mq)(o.lB.hover,l),(0,o.mq)(o.lB.active,l),(0,o.mq)(o.lB.focus,l)},81839:(t,e,n)=>{"use strict";if(n.d(e,{r:()=>s}),!/^(183|296|580|717|882)$/.test(n.j))var r=n(10384);if(!/^(183|296|580|717|882)$/.test(n.j))var i=n(57167);if(!/^(183|296|580|717|882)$/.test(n.j))var o=n(14963);function s(t,e,n,s,a,l){return c=>{const u=(0,r.DO)(t,c),d=(0,o.Yc)(c)?-1:1,p=(0,o.Ce)(i.Cz)(u)(o.Tq)((()=>d))((0,o.iC)((0,r.DO)(e,c)))(c),h=(0,o.Ik)(t,p)(c),f=(0,r.DO)(n,c),g=(0,r.DO)(s,c),v=(0,r.DO)(a,c),b=(0,r.DO)(l,c);return function(t,e,n,r,i,s,a){const l=t+n*Math.abs(r-i),c=1===n?r<i:n*r>n*i,u=c?t:l,d=c?l:t,p=u+n*s,h=u+n*a;return{rest:(0,o.qZ)(u,e),hover:(0,o.qZ)(d,e),active:(0,o.qZ)(p,e),focus:(0,o.qZ)(h,e)}}(h,u,d,f,g,v,b)}}},21019:(t,e,n)=>{"use strict";n.d(e,{ix:()=>i,Sn:()=>o});var r=n(52502);const i="#FFFFFF",o="#000000",s={steps:94,clipLight:0,clipDark:0};Object.assign({},s),Object.assign(Object.assign({},s),{baseColor:(0,r.in)("#0078D4")})},93150:(t,e,n)=>{"use strict";n.d(e,{lB:()=>r,vm:()=>a,mq:()=>l,WV:()=>c,Kf:()=>u,ET:()=>d,$p:()=>p,sF:()=>h,K2:()=>f,uZ:()=>g});var r,i=n(52502),o=n(81562),s=n(98415);function a(t){const e=(0,s.Z)(t);return function(t){return"function"==typeof t?n=>e(Object.assign({},n,{backgroundColor:t(n)})):e(t)}}function l(t,e){const n=(0,s.Z)(e);return e=>"function"==typeof e?r=>n(Object.assign({},r,{backgroundColor:e(r)}))[t]:n(e)[t]}!function(t){t.rest="rest",t.hover="hover",t.active="active",t.focus="focus",t.selected="selected"}(r||(r={}));const c=(0,s.Z)((t=>{let e=(0,i.in)(t);if(null!==e)return e;if(e=(0,i.hg)(t),null!==e)return e;throw new Error(`${t} cannot be converted to a ColorRGBA64. Color strings must be one of the following formats: "#RGB", "#RRGGBB", or "rgb(r, g, b)"`)}));function u(t){return(0,i.pJ)(t)||(0,i.b4)(t)}function d(t,e){return c(t).equalValue(c(e))}const p=(0,s.Z)(((t,e)=>(0,o.wo)(c(t),c(e))),((t,e)=>t+e));function h(t){return(0,o.hM)(c(t))}function f(...t){return e=>Math.max.apply(null,t.map((t=>t(e))))}const g=(t,e,n)=>Math.min(Math.max(t,e),n)},57481:(t,e,n)=>{"use strict";if(n.d(e,{D:()=>i}),/^(185|366|813|937)$/.test(n.j))var r=n(73446);function i(t){return new r.b({baseColor:t}).palette.map((t=>t.toStringHexRGB().toUpperCase()))}},8215:(t,e,n)=>{"use strict";n.d(e,{e:()=>o});var r=n(57167),i=n(14963);const o=(0,n(93150).vm)((t=>{const e=(0,r.yv)(t),n=(0,i.BD)(t),o=(0,r.yI)(t),s=n+((0,i.Yc)(t)?-1:1)*o;return(0,i.qZ)(s,e)}))},48540:(t,e,n)=>{"use strict";n.d(e,{_B:()=>a,Tm:()=>l,Iu:()=>c});var r=n(57167),i=n(14963),o=n(93150);function s(t){return e=>{const n=(0,i.Yc)(e)?-1:1;return(0,i.qZ)((0,i.BD)(e)-t(e)*n,(0,r.yv)(e))}}const a=(0,o.vm)(s(r.ef)),l=(0,o.vm)(s(r.EL)),c=(0,o.vm)(s(r.q_)),u=(0,o.vm)(s(r.Zb)),d=(0,o.vm)(s(r.VI));(0,o.vm)((t=>({rest:a(t),hover:l(t),active:c(t),focus:u(t),selected:d(t)})))},19652:(t,e,n)=>{"use strict";n.d(e,{jq:()=>l,Qp:()=>c,sG:()=>u,sx:()=>p});var r=n(57167),i=n(93150),o=n(14963);const s=(0,i.K2)(r.MY,r.jW,r.hD,r.VQ,r.qD,r.fq,r.gs,r.IU);function a(t){return e=>{const n=(0,o.BD)(e),i=n>=s(e)?-1:1;return(0,o.qZ)(n+i*t(e),(0,r.yv)(e))}}const l=(0,i.vm)(a(r.qD)),c=(0,i.vm)(a(r.fq)),u=(0,i.vm)(a(r.gs)),d=(0,i.vm)(a(r.IU)),p=(0,i.vm)(a(r.Uy));(0,i.vm)((t=>({rest:l(t),hover:c(t),active:u(t),focus:d(t),selected:p(t)})))},58934:(t,e,n)=>{"use strict";n.d(e,{wF:()=>l,Xi:()=>c,Gy:()=>u,Ob:()=>p});var r=n(57167),i=n(93150),o=n(14963);const s=(0,i.K2)(r.MY,r.jW,r.hD,r.VQ);function a(t){return e=>{const n=(0,o.BD)(e),i=n>=s(e)?-1:1;return(0,o.qZ)(n+i*t(e),(0,r.yv)(e))}}const l=(0,i.vm)(a(r.MY)),c=(0,i.vm)(a(r.jW)),u=(0,i.vm)(a(r.hD)),d=(0,i.vm)(a(r.VQ)),p=(0,i.vm)(a(r.y$));(0,i.vm)((t=>({rest:l(t),hover:c(t),active:u(t),focus:d(t),selected:p(t)})))},47436:(t,e,n)=>{"use strict";n.d(e,{F:()=>l,A:()=>u});var r=n(57167),i=n(14963),o=n(93150);function s(t){return t>3.5}const a=(0,i.Ce)(r.Cz)(r.yv)((function(t,e,n){return(0,i.hi)(r.yv,t)(n)}))((function(t,e,n){return(0,i.Yc)(n)?-1:1}))(s),l=(0,o.vm)(a);function c(t,e,n){return(0,i.Yc)(n)?1:-1}function u(t){return(0,i.Ce)(l)(r.au)(function(t){return(e,n,r)=>n.indexOf(t(r))}(t))(c)(s)}},91030:(t,e,n)=>{"use strict";n.d(e,{Q:()=>a});var r=n(57167),i=n(93150),o=n(81839);function s(t){return(0,o.r)(r.yv,t,0,0,0,0)}const a=(0,i.mq)(i.lB.rest,(0,i.vm)(s(4.5)));(0,i.mq)(i.lB.rest,(0,i.vm)(s(3)))},51094:(t,e,n)=>{"use strict";n.d(e,{CH:()=>a,QP:()=>l,Tt:()=>c});var r=n(57167),i=n(93150),o=n(81839);const s=(0,i.vm)((0,o.r)(r.yv,14,0,r.Ax,r.Nt,r.Cv)),a=(0,i.mq)(i.lB.rest,s),l=(0,i.mq)(i.lB.hover,s),c=(0,i.mq)(i.lB.active,s);(0,i.mq)(i.lB.focus,s)},18488:(t,e,n)=>{"use strict";n.d(e,{s5:()=>m,A4:()=>y,$B:()=>x,Mw:()=>_});var r,i,o,s=n(51045),a=n(57653),l=n(92764),c=n(57167),u=n(14963),d=n(93150);function p(t,e){return n=>-1===(0,c.q2)(n)?e(n):t(n)}!function(t){t[t.L1=0]="L1",t[t.L1Alt=3]="L1Alt",t[t.L2=10]="L2",t[t.L3=13]="L3",t[t.L4=16]="L4"}(r||(r={})),function(t){t[t.L1=76]="L1",t[t.L1Alt=76]="L1Alt",t[t.L2=79]="L2",t[t.L3=82]="L3",t[t.L4=85]="L4"}(i||(i={})),function(t){t[t.LightMode=1]="LightMode",t[t.DarkMode=.23]="DarkMode"}(o||(o={}));const h=(0,u.hi)(c.yv,(t=>{const e=(0,c.q2)(t);return new a.h(e,e,e,1).toStringHexRGB()})),f=t=>(0,l.uZ)((0,s.$X)(h,c.Dk)(t),0,(0,c.yv)(t).length-1),g=(0,d.K2)(c.MY,c.jW,c.hD),v=(0,d.K2)((0,s.IH)(h,c.Dk),g),b=t=>{const e=.14,n=new a.h(e,e,e,1);return(0,u.hi)(c.yv,n.toStringHexRGB())(t)},m=(0,d.vm)(p((0,u.qZ)((0,s.$X)(f,c.Dk),c.yv),(0,u.Qs)(c.yv)(0,(0,s.$X)(b,(0,s.Jp)(c.Dk,5))))),y=(0,d.vm)(p((0,u.qZ)(f,c.yv),(0,u.Qs)(c.yv)(0,(0,s.$X)(b,(0,s.Jp)(c.Dk,4))))),x=(0,d.vm)(p((0,u.qZ)((0,s.IH)(f,c.Dk),c.yv),(0,u.Qs)(c.yv)(c.Dk,(0,s.$X)(b,(0,s.Jp)(c.Dk,3))))),_=(0,d.vm)(p((0,u.qZ)(h,c.yv),(0,u.Qs)(c.yv)(0,(0,s.$X)(b,(0,s.Jp)(c.Dk,3)))));(0,d.vm)(p((0,u.qZ)(v,c.yv),(0,u.Qs)(c.yv)(g,(0,s.$X)(b,(0,s.Jp)(c.Dk,2))))),(0,d.vm)(p((0,u.qZ)((0,s.IH)(v,c.Dk),c.yv),(0,u.Qs)(c.yv)((0,s.IH)(g,c.Dk),(0,s.$X)(b,c.Dk)))),(0,d.vm)(p((0,u.qZ)((0,s.IH)(v,(0,s.Jp)(c.Dk,2)),c.yv),(0,u.Qs)(c.yv)((0,s.IH)(g,(0,s.Jp)(c.Dk,2)),b)))},40359:(t,e,n)=>{"use strict";n.d(e,{sK:()=>c,AP:()=>u,IY:()=>d});var r=n(51045),i=n(57167),o=n(93150),s=n(81839);const a=(0,o.vm)((0,s.r)(i.yv,3,0,(0,r.$X)(i.k9,i.Kp),(0,r.$X)(i.KS,i.Kp),(0,r.$X)(i.OD,i.Kp))),l=(0,o.vm)(a),c=(0,o.mq)(o.lB.rest,l),u=(0,o.mq)(o.lB.hover,l),d=(0,o.mq)(o.lB.active,l);(0,o.mq)(o.lB.focus,l)},4921:(t,e,n)=>{"use strict";n.d(e,{L$:()=>a,yD:()=>l,tA:()=>c});var r=n(57167),i=n(14963),o=n(93150);const s=(0,o.vm)((t=>{const e=(0,r.yv)(t),n=(0,i.BD)(t),o=(0,i.Yc)(t)?-1:1,s=(0,r.Kp)(t),a=n+o*s,l=a+o*((0,r.k9)(t)-s),c=a+o*((0,r.KS)(t)-s),u=a+o*((0,r.OD)(t)-s);return{rest:(0,i.qZ)(a,e),hover:(0,i.qZ)(l,e),active:(0,i.qZ)(c,e),focus:(0,i.qZ)(u,e)}})),a=(0,o.mq)(o.lB.rest,s),l=(0,o.mq)(o.lB.hover,s),c=(0,o.mq)(o.lB.active,s);(0,o.mq)(o.lB.focus,s)},14963:(t,e,n)=>{"use strict";if(n.d(e,{Ik:()=>a,hi:()=>l,Yc:()=>c,L_:()=>u,qZ:()=>d,Qs:()=>p,Ce:()=>f,Tq:()=>g,BD:()=>v,iC:()=>b}),!/^(183|296|580|717|882)$/.test(n.j))var r=n(10384);if(!/^(183|296|580|717|882)$/.test(n.j))var i=n(57167);if(!/^(183|296|580|717|882)$/.test(n.j))var o=n(93150);var s;function a(t,e){return n=>{if(!(0,o.Kf)(e))return-1;const i=(0,r.DO)(t,n),s=i.indexOf(e);return-1!==s?s:i.findIndex((t=>(0,o.Kf)(t)&&(0,o.ET)(e,t)))}}function l(t,e){return n=>{const i=(0,r.DO)(t,n),s=(0,r.DO)(e,n),l=a(i,s)(n);let c;if(-1!==l)return l;try{c=(0,o.sF)(s)}catch(t){c=-1}return-1===c?0:i.map(((t,e)=>({luminance:(0,o.sF)(t),index:e}))).reduce(((t,e)=>Math.abs(e.luminance-c)<Math.abs(t.luminance-c)?e:t)).index}}function c(t){return(0,o.sF)((0,i.Cz)(t))<=(-.1+Math.sqrt(.21))/2}function u(t){return!c(t)}function d(t,e){return"function"==typeof t?n=>e(n)[(0,o.uZ)(t(n),0,e(n).length-1)]:e[(0,o.uZ)(t,0,e.length-1)]}function p(t){return(e,n)=>i=>d(c(i)?(0,r.DO)(n,i):(0,r.DO)(e,i),t(i))}function h(t,e,n=0,r=t.length-1){if(r===n)return t[n];const i=Math.floor((r-n)/2)+n;return e(t[i])?h(t,e,n,i):h(t,e,i+1,r)}function f(t){return e=>n=>i=>s=>a=>{const l=(0,r.DO)(t,a),c=(0,r.DO)(e,a),u=c.length,d=(0,o.uZ)(n(l,c,a),0,u-1),p=i(d,c,a);const f=[].concat(c),g=u-1;let v=d;return-1===p&&(f.reverse(),v=g-v),h(f,(function(t){return s((0,o.$p)(l,t))}),v,g)}}function g(t,e,n){return l(e,t)(n)}function v(t){return l(i.yv,(0,i.Cz)(t))(t)}function b(t){return e=>e>=t}!function(t){t.neutral="neutral",t.accent="accent"}(s||(s={}))},97682:(t,e,n)=>{"use strict";function r(t){return{cursor:t}}function i(){return r("default")}function o(){return r("not-allowed !important")}function s(){return r("pointer")}n.d(e,{ks:()=>i,YW:()=>o,$C:()=>s})},54141:(t,e,n)=>{"use strict";if(n.d(e,{iY:()=>a,Cb:()=>l,ty:()=>c,mw:()=>u,wb:()=>d,en:()=>p,iD:()=>h}),!/^(183|274|296|580|717|830|882|997)$/.test(n.j))var r=n(17657);if(!/^(183|296|580|717|882)$/.test(n.j))var i=n(10384);if(!/^(183|296|580|717|882)$/.test(n.j))var o=n(57167);var s;function a(t=1){return e=>((0,o.nf)(e)+(0,o.Es)("density")(e))*(0,o._5)(e)*t}function l(t=1,e){return n=>(0,r.n)(e)(a(t)(n))}function c(t,e,n){return r=>{const a=function(t){const e=(0,o.Es)("density")(t);return e>=2?s.spacious:e<=-2?s.compact:s.normal}(r);return(0,i.DO)(a===s.compact?t:a===s.spacious?n:e,r)}}function u(t=0){return e=>((0,o.LQ)(e)+c(-1,0,1)(e))*(0,o._5)(e)-t}function d(t=0,e){return n=>(0,r.n)(e)(u((0,i.DO)(t,n))(n))}function p(t){const e=(0,o._5)(t)/2,n=c(-1*e,0,e)(t);return(0,o.nf)(t)/2*(0,o._5)(t)+n}function h(t){return"string"==typeof t?e=>(0,r.n)(t)(p(e)):(0,r.a)(p(t))}!function(t){t.compact="compact",t.normal="normal",t.spacious="spacious"}(s||(s={}))},57167:(t,e,n)=>{"use strict";n.d(e,{Es:()=>i,Cz:()=>o,R6:()=>s,Ri:()=>a,al:()=>l,yv:()=>c,au:()=>u,_5:()=>d,nf:()=>p,LQ:()=>h,bu:()=>f,Db:()=>g,VF:()=>v,B2:()=>b,Wo:()=>m,v$:()=>y,bX:()=>x,kp:()=>_,L8:()=>w,kb:()=>C,nd:()=>S,MY:()=>E,jW:()=>O,hD:()=>j,VQ:()=>P,y$:()=>k,ef:()=>I,EL:()=>T,q_:()=>A,Zb:()=>D,VI:()=>R,qD:()=>$,fq:()=>N,gs:()=>B,IU:()=>F,Uy:()=>L,OK:()=>M,d0:()=>Z,G:()=>H,q2:()=>z,Dk:()=>U,Ax:()=>W,Nt:()=>G,Cv:()=>V,yI:()=>q,Kp:()=>K,k9:()=>Y,KS:()=>Q,On:()=>X,OD:()=>J});var r=n(10384);function i(t){return e=>e&&void 0!==e[t]?e[t]:r.ZP[t]}const o=i("backgroundColor"),s=i("accentBaseColor"),a=i("cornerRadius"),l=i("elevatedCornerRadius"),c=i("neutralPalette"),u=i("accentPalette"),d=(i("contrast"),i("designUnit")),p=i("baseHeightMultiplier"),h=i("baseHorizontalSpacingMultiplier"),f=(i("direction"),i("outlineWidth")),g=i("focusOutlineWidth"),v=i("disabledOpacity"),b=(i("accentFillRestDelta"),i("accentFillHoverDelta")),m=i("accentFillActiveDelta"),y=i("accentFillFocusDelta"),x=i("accentFillSelectedDelta"),_=i("accentForegroundRestDelta"),w=i("accentForegroundHoverDelta"),C=i("accentForegroundActiveDelta"),S=i("accentForegroundFocusDelta"),E=i("neutralFillRestDelta"),O=i("neutralFillHoverDelta"),j=i("neutralFillActiveDelta"),P=i("neutralFillFocusDelta"),k=i("neutralFillSelectedDelta"),I=i("neutralFillInputRestDelta"),T=i("neutralFillInputHoverDelta"),A=i("neutralFillInputActiveDelta"),D=i("neutralFillInputFocusDelta"),R=i("neutralFillInputSelectedDelta"),$=i("neutralFillStealthRestDelta"),N=i("neutralFillStealthHoverDelta"),B=i("neutralFillStealthActiveDelta"),F=i("neutralFillStealthFocusDelta"),L=i("neutralFillStealthSelectedDelta"),M=i("neutralFillToggleHoverDelta"),Z=i("neutralFillToggleActiveDelta"),H=i("neutralFillToggleFocusDelta"),z=i("baseLayerLuminance"),U=i("neutralFillCardDelta"),W=(i("neutralForegroundDarkIndex"),i("neutralForegroundLightIndex"),i("neutralForegroundHoverDelta")),G=i("neutralForegroundActiveDelta"),V=i("neutralForegroundFocusDelta"),q=i("neutralDividerRestDelta"),K=i("neutralOutlineRestDelta"),Y=i("neutralOutlineHoverDelta"),Q=i("neutralOutlineActiveDelta"),X=i("fontWeight"),J=i("neutralOutlineFocusDelta")},25491:(t,e,n)=>{"use strict";if(n.d(e,{M:()=>a}),!/^(183|274|296|580|717|830|882|997)$/.test(n.j))var r=n(64197);if(!/^(183|274|296|580|717|830|882|997)$/.test(n.j))var i=n(57167);if(!/^(183|274|296|580|717|830|882|997)$/.test(n.j))var o=n(97682);if(!/^(183|274|296|580|717|830|882|997)$/.test(n.j))var s=n(76908);function a(t){return Object.assign(Object.assign({opacity:(0,r.BB)(i.VF)},(0,o.YW)()),{[s.xE]:{opacity:"1",color:s.YP.disabledText}})}},9748:(t,e,n)=>{"use strict";if(n.d(e,{Y3:()=>c,jf:()=>f,XC:()=>g}),!/^(2(22|74|96)|(71|93|99)7|154|183|580|830|882)$/.test(n.j))var r=n(17657);if(!/^(2(22|74|96)|(71|93|99)7|154|183|580|830|882)$/.test(n.j))var i=n(81562);if(!/^(2(22|74|96)|(71|93|99)7|154|183|580|830|882)$/.test(n.j))var o=n(57653);if(!/^(2(22|74|96)|(71|93|99)7|154|183|580|830|882)$/.test(n.j))var s=n(21019);if(!/^(2(22|74|96)|(71|93|99)7|154|183|580|830|882)$/.test(n.j))var a=n(93150);if(!/^(2(22|74|96)|(71|93|99)7|154|183|580|830|882)$/.test(n.j))var l=n(57167);var c;!function(t){t[t.e1=1]="e1",t[t.e2=2]="e2",t[t.e3=3]="e3",t[t.e4=4]="e4",t[t.e5=6]="e5",t[t.e6=8]="e6",t[t.e7=9]="e7",t[t.e8=12]="e8",t[t.e9=16]="e9",t[t.e10=24]="e10",t[t.e11=32]="e11",t[t.e12=40]="e12",t[t.e13=48]="e13",t[t.e14=64]="e14",t[t.e15=80]="e15",t[t.e16=96]="e16",t[t.e17=192]="e17"}(c||(c={}));const u={blurMultiplier:.225,blurBase:2,xOffsetMultiplier:0,yOffsetMultiplier:0,opacity:.11},d={blurMultiplier:.9,blurBase:0,xOffsetMultiplier:0,yOffsetMultiplier:.4,opacity:.13};function p(t,e,n){return s=>{const{r:c,g:u,b:d}=(0,a.WV)(e),{xOffsetMultiplier:p,yOffsetMultiplier:h,opacity:f,blurMultiplier:g,blurBase:v=0}=n,b=2-(0,i.hM)((0,a.WV)((0,l.Cz)(s)));return[p,h].map((e=>parseFloat((e*t).toFixed(1)))).concat(v+g*t).map(r.a).concat(new o.h(c,u,d,f*b).toStringWebRGBA()).join(" ")}}function h(t,e=s.Sn){return n=>{const r=p.bind(null,t,e);return[d,u].map((t=>r(t)(n))).join(", ")}}function f(t){return{"box-shadow":h(t)}}function g(t,e=s.Sn){return n=>({"box-shadow":h(t,e)})}},89827:(t,e,n)=>{"use strict";if(n.d(e,{Li:()=>s,cg:()=>a,bz:()=>l}),!/^(183|296|472|580|717|882)$/.test(n.j))var r=n(57167);function i(t){return e=>(0,r.On)(e)[t].toString()}function o(t){return{"font-weight":t}}function s(){return o(i("normal"))}function a(){return o(i("semibold"))}function l(){return o(i("bold"))}},76908:(t,e,n)=>{"use strict";n.d(e,{xE:()=>l,YP:()=>c,a8:()=>u,cy:()=>d,D0:()=>p,Ob:()=>h,dC:()=>f,eI:()=>g,C_:()=>v,Aw:()=>b,He:()=>m,Od:()=>y,St:()=>x,vy:()=>_,HC:()=>w,T:()=>C,aP:()=>S,qZ:()=>E,KP:()=>O,zW:()=>j,Ck:()=>P,g0:()=>k,yf:()=>I,xU:()=>T,H5:()=>A,Fn:()=>D,cx:()=>R,Ds:()=>$,YF:()=>N,$n:()=>B});var r=n(64197),i=n(17657),o=n(51045),s=n(5346),a=n(57167);const l="@media (-ms-high-contrast:active)";var c;!function(t){t.text="WindowText",t.forcedColorLink="LinkText",t.msLink="-ms-hotlight",t.disabledText="GrayText",t.selectedText="HighlightText",t.selectedBackground="Highlight",t.buttonText="ButtonText",t.buttonBackground="ButtonFace",t.background="Window"}(c||(c={}));const u={"-ms-high-contrast-adjust":"none"};const d=(0,s.B7)()?"LinkText !important":"-ms-hotlight !important",p={[l]:Object.assign({background:c.buttonBackground,border:"none",color:c.buttonText,fill:c.buttonText},u)},h={[l]:Object.assign({background:c.buttonBackground,"border-color":c.buttonText,color:c.buttonText,fill:c.buttonText},u)},f={[l]:Object.assign({background:c.selectedBackground,"border-color":c.selectedBackground,color:c.selectedText,fill:c.selectedText},u)},g={[l]:{background:c.background,"border-color":d,color:d,fill:d}},v={[l]:{opacity:"1",background:(0,r.ef)(c.buttonBackground),color:(0,r.ef)(c.disabledText),fill:(0,r.ef)(c.disabledText)}},b={[l]:{opacity:"1",background:(0,r.ef)(c.buttonBackground),color:(0,r.ef)(c.disabledText),fill:(0,r.ef)(c.disabledText),"border-color":(0,r.ef)(c.disabledText)}},m={[l]:{opacity:"1",color:(0,r.ef)(c.disabledText),fill:(0,r.ef)(c.disabledText)}},y={[l]:{opacity:"1",background:(0,r.ef)(c.disabledText)}},x={[l]:{"border-color":c.buttonText,"box-shadow":(0,r.WU)("0 0 0 {0} inset {1}",(0,i.a)(a.bu),(()=>c.buttonText))}},_={[l]:{"box-shadow":(0,r.WU)("0 0 0 2px {2}, 0 0 0 {0} {1}",(0,i.a)((0,o.IH)(a.Db,2)),(()=>c.buttonText),(()=>c.buttonBackground))}},w={[l]:{"border-color":(0,r.ef)(c.buttonText),"box-shadow":(0,r.WU)("0 0 0 {0} inset {1}",(0,i.a)(a.Db),(()=>c.buttonBackground))}},C={[l]:{background:c.selectedBackground,color:c.selectedText,fill:c.selectedText}},S={[l]:{background:c.selectedText,"border-color":c.selectedBackground,color:c.selectedBackground,fill:c.selectedBackground}},E={[l]:{color:(0,r.ef)(c.text),fill:(0,r.ef)(c.text)}},O={[l]:{color:(0,r.ef)(c.buttonText),fill:(0,r.ef)(c.buttonText)}},j={[l]:{color:(0,r.ef)(c.selectedText),fill:(0,r.ef)(c.selectedText)}},P={[l]:{color:(0,r.ef)(c.selectedBackground),fill:(0,r.ef)(c.selectedBackground)}},k={[l]:{color:d,fill:d}},I={[l]:{border:(0,r.WU)("{0} solid {1}",(0,i.a)(a.bu),(()=>c.text))}},T={[l]:{"border-color":c.buttonText}},A={[l]:{background:c.buttonBackground,"box-shadow":(0,r.WU)("0 0 0 {0} inset {1}",(0,i.a)(a.bu),(()=>d))}},D={[l]:{background:c.background}},R={[l]:{background:c.buttonText}},$={[l]:{background:c.buttonBackground}},N={[l]:{background:c.selectedText}},B={[l]:{background:c.selectedBackground}};c.buttonBackground,c.selectedText,c.selectedBackground,c.selectedText},53363:(t,e,n)=>{"use strict";n.d(e,{p0:()=>h,qs:()=>v,Yy:()=>b,Sh:()=>y,Ht:()=>g});var r=n(17657),i=n(79063),o=n(36986);const s=function(t,e,n){return void 0===n&&(n=e,e=void 0),void 0!==n&&(n=(n=(0,o.Z)(n))==n?n:0),void 0!==e&&(e=(e=(0,o.Z)(e))==e?e:0),(0,i.Z)((0,o.Z)(t),e,n)};var a=n(54141);const l=[[60,72],[46,56],[34,44],[28,36],[20,28],[16,24],[14,20],[12,16],[10,16]].reduce(((t,e,n)=>Object.assign(t,{[`t${n+1}`]:{fontSize:e[0],lineHeight:e[1]}})),{});function c(t){return l.hasOwnProperty(t)?t:"t7"}function u(t){return e=>{const n=parseInt(t.replace("t",""),10),r=(0,a.ty)(-1,0,1)(e),i=s(n-r,1,9);return c("t".concat(i.toString()))}}function d(t){return l[c(t)].fontSize}function p(t){return l[c(t)].lineHeight}function h(t){return(0,r.a)(d(t))}function f(t){return(0,r.a)(p(t))}function g(t){return e=>p(u(t)(e))}function v(t){return e=>h(u(t)(e))}function b(t){return e=>f(u(t)(e))}function m(t,e){return n=>({"font-size":t(n),"line-height":e(n)})}m(h,f);const y=m(v,b)},95462:(t,e,n)=>{"use strict";n.d(e,{zt:()=>i,$6:()=>o,UE:()=>r});const r=n(89526).createContext({}),{Provider:i,Consumer:o}=r},82090:(t,e,n)=>{"use strict";n.d(e,{h:()=>s});var r=n(89526),i=n(34445),o=n(95462);class s extends r.Component{constructor(t,e){super(t),this.updateDownstreamDesignSystem()}render(){return this.updateDownstreamDesignSystem(),r.createElement(o.zt,{value:this.downstreamDesignSystem},this.props.children)}updateDownstreamDesignSystem(){let t=!1;this.upstreamDesignSystem!==this.context&&(this.upstreamDesignSystem=this.context,t=!0),this.designSystemOverrides!==this.props.designSystem&&(this.designSystemOverrides=this.props.designSystem,t=!0),t&&(this.downstreamDesignSystem=this.createDesignSystem())}createDesignSystem(){return"function"==typeof this.props.designSystemMergingFunction?this.props.designSystemMergingFunction(this.upstreamDesignSystem,this.designSystemOverrides):(0,i.L)(this.upstreamDesignSystem,this.designSystemOverrides)}}s.contextType=o.UE},17332:(t,e,n)=>{"use strict";if(n.d(e,{ZP:()=>i}),!/^(183|296|580|717|882)$/.test(n.j))var r=n(42077);const i=/^(183|296|580|717|882)$/.test(n.j)?null:r.n},77598:(t,e,n)=>{"use strict";n.d(e,{v:()=>l});var r=n(61713),i=n(89526),o=n(95462),s=n(76492);function a(t,e){return"string"==typeof t&&"string"==typeof e?t.concat(" ",e):"string"==typeof t?t:"string"==typeof e?e:void 0}class l extends i.Component{constructor(t,e){super(t,e),this.hasCreatedIntialStyleSheets=!1,this.index=l.index-=1,this.designSystem=e}static set jss(t){l.sheetManager.jss=t}static get jss(){return l.sheetManager.jss}static subscribe(t){return l.sheetManager.subscribe(t)}static unsubscribe(t){l.sheetManager.unsubscribe(t)}render(){if(!this.hasCreatedIntialStyleSheets){if(this.styles){const t={meta:this.managedComponent.displayName||this.managedComponent.name,index:this.index};"function"==typeof l.createGenerateClassName&&(t.generateClassName=l.createGenerateClassName(this.designSystem)),l.sheetManager.add(this.styles,this.designSystem,t)}this.props.jssStyleSheet&&this.createPropStyleSheet(),this.hasCreatedIntialStyleSheets=!0}return i.createElement(this.managedComponent,this.managedComponentProps())}componentDidUpdate(t){const e=!!this.props.jssStyleSheet,n=!!t.jssStyleSheet;this.designSystem!==this.context?(this.styles&&(l.sheetManager.update(this.styles,this.designSystem,this.context),this.forceUpdate()),n&&e?(t.jssStyleSheet===this.props.jssStyleSheet?l.sheetManager.update(this.props.jssStyleSheet,this.designSystem,this.context):(l.sheetManager.remove(t.jssStyleSheet,this.designSystem),this.createPropStyleSheet(this.context)),this.forceUpdate()):n&&!e?l.sheetManager.remove(t.jssStyleSheet,this.designSystem):!n&&e&&(this.createPropStyleSheet(this.context),this.forceUpdate()),this.designSystem=this.context):n&&e&&t.jssStyleSheet!==this.props.jssStyleSheet&&(l.sheetManager.remove(t.jssStyleSheet,this.designSystem),this.createPropStyleSheet(),this.forceUpdate()),n&&!e?l.sheetManager.remove(t.jssStyleSheet,this.designSystem):!n&&e&&(this.createPropStyleSheet(),this.forceUpdate())}componentWillUnmount(){this.styles&&l.sheetManager.remove(this.styles,this.designSystem),this.props.jssStyleSheet&&l.sheetManager.remove(this.props.jssStyleSheet,this.designSystem),l.index++,this.hasCreatedIntialStyleSheets=!1}primaryStyleSheet(){if(this.styles)return l.sheetManager.get(this.styles,this.designSystem)}secondaryStyleSheet(){if(this.props.jssStyleSheet)return l.sheetManager.get(this.props.jssStyleSheet,this.designSystem)}managedComponentProps(){const t=Object.assign(Object.assign({},this.props),{managedClasses:this.getManagedClassNames(),ref:this.props.innerRef});return delete t.jssStyleSheet,delete t.innerRef,t}getManagedClassNames(){let t={},e={};const n=this.primaryStyleSheet(),i=this.secondaryStyleSheet();return n&&n.hasOwnProperty("classes")&&(t=Object.assign({},n.classes)),i&&i.hasOwnProperty("classes")&&(e=Object.assign({},i.classes)),(0,r.Z)(t,e,a)}createPropStyleSheet(t=this.designSystem){const e=this.primaryStyleSheet(),n={meta:`${this.managedComponent.displayName||this.managedComponent.name} - jssStyleSheet`,index:e?e.options.index+1:this.index+1};"function"==typeof l.createGenerateClassName&&(n.generateClassName=l.createGenerateClassName(t)),l.sheetManager.add(this.props.jssStyleSheet,t,n)}}l.contextType=o.UE,l.index=-1e3,l.sheetManager=new class{constructor(){this.jss=s.Kl,this.registry=new WeakMap}add(t,e,n){const r=this.getTracker(t,e);if(Array.isArray(r))return void r[1]++;let i=this.registry.get(t);void 0===i&&(i=new WeakMap,this.registry.set(t,i)),this.registry.get(t).set(e,[this.createStyleSheet(t,e,n),1])}get(t,e){const n=this.getTracker(t,e);if(Array.isArray(n)&&n[0])return n[0]}update(t,e,n){const r=this.getTracker(t,e);if(r)if(1===r[1]&&!this.get(t,n)&&t&&"object"==typeof t){const i=r[0];i.update(n),this.notify("update",i),this.registry.get(t).delete(e),this.registry.get(t).set(n,r)}else this.remove(t,e),this.add(t,n,r[0].options)}remove(t,e){const n=this.getTracker(t,e);if(Array.isArray(n)&&(n[1]--,0===n[1])){const r=n[0];this.jss.removeStyleSheet(r),s.Z0.remove(r),this.notify("remove",r),this.registry.get(t).delete(e)}}count(t,e){const n=this.getTracker(t,e);return Array.isArray(n)?n[1]:-1}clean(){this.registry=new WeakMap}getTracker(t,e){const n=this.registry.get(t);if(n instanceof WeakMap){const t=n.get(e);if(Array.isArray(t))return t}}createStyleSheet(t,e,n={}){const r="function"==typeof t?t(e):t,i=this.jss.createStyleSheet(r,Object.assign({link:!0},n));return i.update(e).attach(),s.Z0.add(i),this.notify("add",i),i}notify(t,e){Array.isArray(this.subscribers)&&this.subscribers.forEach((n=>n({type:t,sheet:e})))}subscribe(t){return Array.isArray(this.subscribers)||(this.subscribers=[]),-1===this.subscribers.indexOf(t)&&this.subscribers.push(t),()=>{this.unsubscribe(t)}}unsubscribe(t){if(Array.isArray(this.subscribers)){const e=this.subscribers.indexOf(t);-1!==e&&this.subscribers.splice(e,1)}}}},76492:(t,e,n)=>{"use strict";n.d(e,{Kl:()=>o,Z0:()=>s});var r=n(67514),i=n(54716);const o=(0,r.create)((0,i.Z)()),s=(new r.SheetsManager,new r.SheetsRegistry)},42077:(t,e,n)=>{"use strict";if(n.d(e,{n:()=>o}),!/^(183|296|580|717|882)$/.test(n.j))var r=n(77598);const i=n(41281);function o(t){return function(e){class n extends r.v{constructor(){super(...arguments),this.styles=t,this.managedComponent=e}}return n.displayName=`withJSS(${e.displayName||e.name})`,i(n,e)}}},34445:(t,e,n)=>{"use strict";if(n.d(e,{L:()=>i}),!/^(183|296|580|717|830|882|997)$/.test(n.j))var r=n(61713);function i(t,e){return(0,r.Z)({},t,e,((t,e)=>{if(Array.isArray(e))return e}))}},42130:(t,e,n)=>{"use strict";if(n.d(e,{F0:()=>s}),!/^(183|274|296|580|717|830|882|997)$/.test(n.j))var r=n(5346);function i(t=""){return`&:focus-visible${t}`}function o(t=""){return`body:not(.js-focus-visible) &:focus${t}, .js-focus-visible &.focus-visible${t}, .js-focus-visible [data-focus-visible-added]&${t}`}function s(t,e){let n,s;if("object"==typeof t&&null!==t)s="",n=t;else{if("string"!=typeof t)return{};s=t,n=e}return Object.assign({"&:focus":{outline:"none"}},(0,r.Zm)()?{[i(s)]:n}:{[o(s)]:n})}},64197:(t,e,n)=>{"use strict";if(n.d(e,{WU:()=>i,BB:()=>o,ef:()=>s}),!/^(183|274|296|580|717|830|882|997)$/.test(n.j))var r=n(86072);function i(t,...e){return n=>e.reduce(((t,e,r)=>t.replace(new RegExp(`\\{${r}\\}`,"g"),e(n))),t)}function o(t){return e=>String(t(e))}function s(t){return(0,r.Z)(t)?`${t} !important`:e=>s(t(e))}},48863:(t,e,n)=>{"use strict";var r;function i(t){return e=>{if("string"!=typeof e)return"";const n=e.split(" ");return 4!==n.length?e:t===r.rtl?[n[0],n[3],n[2],n[1]].join(" "):e}}function o(t,e,n){return n===r.ltr?t:e}function s(t,e){return n=>{const i=(n&&n.direction?n.direction:r.ltr)===r.rtl?e:t;return"function"==typeof i?i(n):i}}n.d(e,{Nm:()=>r,BO:()=>i,Ih:()=>o,zw:()=>s}),function(t){t.ltr="ltr",t.rtl="rtl"}(r||(r={}))},51045:(t,e,n)=>{"use strict";function r(t){return(...e)=>n=>{const r=e[0];let i="function"==typeof r?r(n):r;for(let r=1;r<e.length;r++){const o=e[r];i=t(i,"function"==typeof o?o(n):o)}return i}}n.d(e,{IH:()=>l,$X:()=>c,Jp:()=>u,cs:()=>d});const i=r(((t,e)=>t+e)),o=r(((t,e)=>t-e)),s=r(((t,e)=>t*e)),a=r(((t,e)=>t/e));function l(...t){return i.apply(this,t)}function c(...t){return o.apply(this,t)}function u(...t){return s.apply(this,t)}function d(...t){return a.apply(this,t)}},23366:(t,e,n)=>{"use strict";function r(){return{"white-space":"nowrap",overflow:"hidden","text-overflow":"ellipsis"}}n.d(e,{L:()=>r})},17657:(t,e,n)=>{"use strict";if(n.d(e,{n:()=>i,a:()=>s}),!/^(183|296|580|717|882)$/.test(n.j))var r=n(64702);function i(t="px"){return e=>e+t}const o=i();function s(t){return(0,r.Z)(t)?e=>o(t(e)):o(t)}},60567:(t,e,n)=>{"use strict";if(n.d(e,{b:()=>o}),571==n.j)var r=n(98415);if(571==n.j)var i=n(34445);function o(t){return(0,r.Z)((e=>(0,i.L)(t,e)))}},86577:(t,e,n)=>{"use strict";n.d(e,{x:()=>o});var r=n(73961);if(/^(67[25]|(18|20|77|88)5|22|366|472|571|813|908|991)$/.test(n.j))var i=n(64829);function o(t){if(t instanceof HTMLElement)return t;if(!(0,i.Z)(t.current)){if(t.current instanceof HTMLElement)return t.current;const e=r.findDOMNode(t.current);if(e instanceof HTMLElement||e instanceof Text)return e}return null}},55319:(t,e,n)=>{"use strict";n.d(e,{o:()=>x});var r=n(33940),i=n(29163),o=n(65226),s=n(58520),a=n(6545),l=n(8582),c=n(9740);class u extends o.H{}(0,r.gn)([i.Lj],u.prototype,"download",void 0),(0,r.gn)([i.Lj],u.prototype,"href",void 0),(0,r.gn)([i.Lj],u.prototype,"hreflang",void 0),(0,r.gn)([i.Lj],u.prototype,"ping",void 0),(0,r.gn)([i.Lj],u.prototype,"referrerpolicy",void 0),(0,r.gn)([i.Lj],u.prototype,"rel",void 0),(0,r.gn)([i.Lj],u.prototype,"target",void 0),(0,r.gn)([i.Lj],u.prototype,"type",void 0),(0,r.gn)([s.LO],u.prototype,"defaultSlottedContent",void 0);class d{}(0,r.gn)([(0,i.Lj)({attribute:"aria-expanded",mode:"fromView"})],d.prototype,"ariaExpanded",void 0),(0,c.e)(d,a.v),(0,c.e)(u,l.hW,d);var p=n(90563),h=n(91106),f=n(37955);const g=p.d` - <a - class="control" - part="control" - download="${t=>t.download}" - href="${t=>t.href}" - hreflang="${t=>t.hreflang}" - ping="${t=>t.ping}" - referrerpolicy="${t=>t.referrerpolicy}" - rel="${t=>t.rel}" - target="${t=>t.target}" - type="${t=>t.type}" - aria-atomic="${t=>t.ariaAtomic}" - aria-busy="${t=>t.ariaBusy}" - aria-controls="${t=>t.ariaControls}" - aria-current="${t=>t.ariaCurrent}" - aria-describedBy="${t=>t.ariaDescribedby}" - aria-details="${t=>t.ariaDetails}" - aria-disabled="${t=>t.ariaDisabled}" - aria-errormessage="${t=>t.ariaErrormessage}" - aria-expanded="${t=>t.ariaExpanded}" - aria-flowto="${t=>t.ariaFlowto}" - aria-haspopup="${t=>t.ariaHaspopup}" - aria-hidden="${t=>t.ariaHidden}" - aria-invalid="${t=>t.ariaInvalid}" - aria-keyshortcuts="${t=>t.ariaKeyshortcuts}" - aria-label="${t=>t.ariaLabel}" - aria-labelledby="${t=>t.ariaLabelledby}" - aria-live="${t=>t.ariaLive}" - aria-owns="${t=>t.ariaOwns}" - aria-relevant="${t=>t.ariaRelevant}" - aria-roledescription="${t=>t.ariaRoledescription}" - ${(0,h.i)("control")} - > - ${l.hX} - <span class="content" part="content"> - <slot ${(0,f.Q)("defaultSlottedContent")}></slot> - </span> - ${l.zq} - </a> -`;var v=n(76298),b=n(18967),m=n(96566);const y=v.i` - ${b.G6} -`.withBehaviors((0,m.H)("accent",b.jQ),(0,m.H)("hypertext",b.Xu),(0,m.H)("lightweight",b.vt),(0,m.H)("outline",b.O8),(0,m.H)("stealth",b.cg));let x=class extends u{appearanceChanged(t,e){t!==e&&(this.classList.add(e),this.classList.remove(t))}connectedCallback(){super.connectedCallback(),this.appearance||(this.appearance="neutral")}defaultSlottedContentChanged(){const t=this.defaultSlottedContent.filter((t=>t.nodeType===Node.ELEMENT_NODE));1===t.length&&t[0]instanceof SVGElement?this.control.classList.add("icon-only"):this.control.classList.remove("icon-only")}};(0,r.gn)([i.Lj],x.prototype,"appearance",void 0),x=(0,r.gn)([(0,o.M)({name:"fluent-anchor",template:g,styles:y,shadowOptions:{delegatesFocus:!0,mode:"closed"}})],x)},91727:(t,e,n)=>{"use strict";n.d(e,{X:()=>D});var r=n(33940),i=n(29163),o=n(65226),s=n(58520),a=n(6545),l=n(8582),c=n(9740),u=n(51306),d=n(45930),p=n(33832);const h="form-associated-proxy",f="ElementInternals",g=f in window&&"setFormValue"in window.ElementInternals.prototype,v=new Map;class b extends o.H{}class m extends(function(t){const e=class extends t{constructor(...t){super(...t),this.dirtyValue=!1,this.disabled=!1,this.proxyEventsToBlock=["change","click"],this.formDisabledCallback=t=>{this.disabled=t},this.formResetCallback=()=>{this.value=this.initialValue,this.dirtyValue=!1},this.proxyInitialized=!1,this.required=!1,this.initialValue=this.initialValue||""}static get formAssociated(){return g}get validity(){return this.elementInternals?this.elementInternals.validity:this.proxy.validity}get form(){return this.elementInternals?this.elementInternals.form:this.proxy.form}get validationMessage(){return this.elementInternals?this.elementInternals.validationMessage:this.proxy.validationMessage}get willValidate(){return this.elementInternals?this.elementInternals.willValidate:this.proxy.willValidate}get labels(){if(this.elementInternals)return Object.freeze(Array.from(this.elementInternals.labels));if(this.proxy instanceof HTMLElement&&this.proxy.ownerDocument&&this.id){const t=this.proxy.labels,e=Array.from(this.proxy.getRootNode().querySelectorAll(`[for='${this.id}']`)),n=t?e.concat(Array.from(t)):e;return Object.freeze(n)}return u.o}valueChanged(t,e){this.dirtyValue=!0,this.proxy instanceof HTMLElement&&(this.proxy.value=this.value),this.setFormValue(this.value),this.validate()}initialValueChanged(t,e){this.dirtyValue||(this.value=this.initialValue,this.dirtyValue=!1)}disabledChanged(t,e){this.proxy instanceof HTMLElement&&(this.proxy.disabled=this.disabled),d.SO.queueUpdate((()=>this.classList.toggle("disabled",this.disabled)))}nameChanged(t,e){this.proxy instanceof HTMLElement&&(this.proxy.name=this.name)}requiredChanged(t,e){this.proxy instanceof HTMLElement&&(this.proxy.required=this.required),d.SO.queueUpdate((()=>this.classList.toggle("required",this.required))),this.validate()}get elementInternals(){if(!g)return null;let t=v.get(this);return t||(t=this.attachInternals(),v.set(this,t)),t}connectedCallback(){super.connectedCallback(),this.addEventListener("keypress",this._keypressHandler),this.value||(this.value=this.initialValue,this.dirtyValue=!1),this.elementInternals||this.attachProxy(),this.form&&this.form.addEventListener("reset",this.formResetCallback)}disconnectedCallback(){this.proxyEventsToBlock.forEach((t=>this.proxy.removeEventListener(t,this.stopPropagation))),this.form&&this.form.removeEventListener("reset",this.formResetCallback)}checkValidity(){return this.elementInternals?this.elementInternals.checkValidity():this.proxy.checkValidity()}reportValidity(){return this.elementInternals?this.elementInternals.reportValidity():this.proxy.reportValidity()}setValidity(t,e,n){this.elementInternals?this.elementInternals.setValidity(t,e,n):"string"==typeof e&&this.proxy.setCustomValidity(e)}attachProxy(){var t;this.proxyInitialized||(this.proxyInitialized=!0,this.proxy.style.display="none",this.proxyEventsToBlock.forEach((t=>this.proxy.addEventListener(t,this.stopPropagation))),this.proxy.disabled=this.disabled,this.proxy.required=this.required,"string"==typeof this.name&&(this.proxy.name=this.name),"string"==typeof this.value&&(this.proxy.value=this.value),this.proxy.setAttribute("slot",h),this.proxySlot=document.createElement("slot"),this.proxySlot.setAttribute("name",h)),null===(t=this.shadowRoot)||void 0===t||t.appendChild(this.proxySlot),this.appendChild(this.proxy)}detachProxy(){var t;this.removeChild(this.proxy),null===(t=this.shadowRoot)||void 0===t||t.removeChild(this.proxySlot)}validate(){this.proxy instanceof HTMLElement&&this.setValidity(this.proxy.validity,this.proxy.validationMessage)}setFormValue(t,e){this.elementInternals&&this.elementInternals.setFormValue(t,e||t)}_keypressHandler(t){switch(t.keyCode){case p.bq:if(this.form instanceof HTMLFormElement){const t=this.form.querySelector("[type=submit]");null==t||t.click()}}}stopPropagation(t){t.stopPropagation()}};return(0,i.Lj)({mode:"boolean"})(e.prototype,"disabled"),(0,i.Lj)({mode:"fromView",attribute:"value"})(e.prototype,"initialValue"),(0,i.Lj)(e.prototype,"name"),(0,i.Lj)({mode:"boolean"})(e.prototype,"required"),(0,s.LO)(e.prototype,"value"),e}(b)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}class y extends m{constructor(){super(...arguments),this.handleSubmission=()=>{if(!this.form)return;const t=this.proxy.isConnected;t||this.attachProxy(),"function"==typeof this.form.requestSubmit?this.form.requestSubmit(this.proxy):this.proxy.click(),t||this.detachProxy()},this.handleFormReset=()=>{var t;null===(t=this.form)||void 0===t||t.reset()}}formactionChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formAction=this.formaction)}formenctypeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formEnctype=this.formenctype)}formmethodChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formMethod=this.formmethod)}formnovalidateChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formNoValidate=this.formnovalidate)}formtargetChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formTarget=this.formtarget)}typeChanged(t,e){this.proxy instanceof HTMLInputElement&&(this.proxy.type=this.type),"submit"===e&&this.addEventListener("click",this.handleSubmission),"submit"===t&&this.removeEventListener("click",this.handleSubmission),"reset"===e&&this.addEventListener("click",this.handleFormReset),"reset"===t&&this.removeEventListener("click",this.handleFormReset)}connectedCallback(){super.connectedCallback(),this.proxy.setAttribute("type",this.type)}get root(){return this.control}}(0,r.gn)([(0,i.Lj)({mode:"boolean"})],y.prototype,"autofocus",void 0),(0,r.gn)([(0,i.Lj)({attribute:"form"})],y.prototype,"formId",void 0),(0,r.gn)([i.Lj],y.prototype,"formaction",void 0),(0,r.gn)([i.Lj],y.prototype,"formenctype",void 0),(0,r.gn)([i.Lj],y.prototype,"formmethod",void 0),(0,r.gn)([(0,i.Lj)({mode:"boolean"})],y.prototype,"formnovalidate",void 0),(0,r.gn)([i.Lj],y.prototype,"formtarget",void 0),(0,r.gn)([i.Lj],y.prototype,"type",void 0),(0,r.gn)([s.LO],y.prototype,"defaultSlottedContent",void 0);class x{}(0,r.gn)([(0,i.Lj)({attribute:"aria-expanded",mode:"fromView"})],x.prototype,"ariaExpanded",void 0),(0,r.gn)([(0,i.Lj)({attribute:"aria-pressed",mode:"fromView"})],x.prototype,"ariaPressed",void 0),(0,c.e)(x,a.v),(0,c.e)(y,l.hW,x);var _=n(90563),w=n(91106),C=n(37955);const S=_.d` - <button - class="control" - part="control" - ?autofocus="${t=>t.autofocus}" - ?disabled="${t=>t.disabled}" - form="${t=>t.formId}" - formaction="${t=>t.formaction}" - formenctype="${t=>t.formenctype}" - formmethod="${t=>t.formmethod}" - formnovalidate="${t=>t.formnovalidate}" - formtarget="${t=>t.formtarget}" - name="${t=>t.name}" - type="${t=>t.type}" - value="${t=>t.value}" - aria-atomic="${t=>t.ariaAtomic}" - aria-busy="${t=>t.ariaBusy}" - aria-controls="${t=>t.ariaControls}" - aria-current="${t=>t.ariaCurrent}" - aria-describedBy="${t=>t.ariaDescribedby}" - aria-details="${t=>t.ariaDetails}" - aria-disabled="${t=>t.ariaDisabled}" - aria-errormessage="${t=>t.ariaErrormessage}" - aria-expanded="${t=>t.ariaExpanded}" - aria-flowto="${t=>t.ariaFlowto}" - aria-haspopup="${t=>t.ariaHaspopup}" - aria-hidden="${t=>t.ariaHidden}" - aria-invalid="${t=>t.ariaInvalid}" - aria-keyshortcuts="${t=>t.ariaKeyshortcuts}" - aria-label="${t=>t.ariaLabel}" - aria-labelledby="${t=>t.ariaLabelledby}" - aria-live="${t=>t.ariaLive}" - aria-owns="${t=>t.ariaOwns}" - aria-pressed="${t=>t.ariaPressed}" - aria-relevant="${t=>t.ariaRelevant}" - aria-roledescription="${t=>t.ariaRoledescription}" - ${(0,w.i)("control")} - > - ${l.hX} - <span class="content" part="content"> - <slot ${(0,C.Q)("defaultSlottedContent")}></slot> - </span> - ${l.zq} - </button> -`;var E=n(76298),O=n(9817),j=n(68421),P=n(15933),k=n(25914),I=n(18967),T=n(96566);const A=E.i` - :host([disabled]), - :host([disabled]:hover), - :host([disabled]:active) { - opacity: var(--disabled-opacity); - background-color: ${k.nE.var}; - cursor: ${O.H}; - } - - ${I.G6} -`.withBehaviors((0,j.vF)(E.i` - :host([disabled]), - :host([disabled]:hover), - :host([disabled]:active), - :host([disabled]) .control, - :host([disabled]) .control:hover, - :host([appearance='neutral'][disabled]:hover) .control { - forced-color-adjust: none; - background-color: ${P.H.ButtonFace}; - border-color: ${P.H.GrayText}; - color: ${P.H.GrayText}; - opacity: 1; - } - `),(0,T.H)("accent",E.i` - :host([appearance='accent'][disabled]), - :host([appearance='accent'][disabled]:hover), - :host([appearance='accent'][disabled]:active) { - background: ${k.iq.var}; - } - - ${I.jQ} - `.withBehaviors((0,j.vF)(E.i` - :host([appearance='accent'][disabled]) .control, - :host([appearance='accent'][disabled]) .control:hover { - background: ${P.H.ButtonFace}; - border-color: ${P.H.GrayText}; - color: ${P.H.GrayText}; - } - `))),(0,T.H)("lightweight",E.i` - :host([appearance='lightweight'][disabled]:hover), - :host([appearance='lightweight'][disabled]:active) { - background-color: transparent; - color: ${k.YK.var}; - } - - :host([appearance='lightweight'][disabled]) .content::before, - :host([appearance='lightweight'][disabled]:hover) .content::before, - :host([appearance='lightweight'][disabled]:active) .content::before { - background: transparent; - } - - ${I.vt} - `.withBehaviors((0,j.vF)(E.i` - :host([appearance='lightweight'][disabled]) .control { - forced-color-adjust: none; - color: ${P.H.GrayText}; - } - - :host([appearance='lightweight'][disabled]) .control:hover .content::before { - background: none; - } - `))),(0,T.H)("outline",E.i` - :host([appearance='outline'][disabled]:hover), - :host([appearance='outline'][disabled]:active) { - background: transparent; - border-color: ${k.Fv.var}; - } - - ${I.O8} - `.withBehaviors((0,j.vF)(E.i` - :host([appearance='outline'][disabled]) .control { - border-color: ${P.H.GrayText}; - } - `))),(0,T.H)("stealth",E.i` - :host([appearance='stealth'][disabled]), - :host([appearance='stealth'][disabled]:hover), - :host([appearance='stealth'][disabled]:active) { - background: ${k.Br.var}; - } - - ${I.cg} - `.withBehaviors((0,j.vF)(E.i` - :host([appearance='stealth'][disabled]), - :host([appearance='stealth'][disabled]:hover) { - background: ${P.H.ButtonFace}; - } - - :host([appearance='stealth'][disabled]) .control { - background: ${P.H.ButtonFace}; - border-color: transparent; - color: ${P.H.GrayText}; - } - `))));let D=class extends y{appearanceChanged(t,e){t!==e&&(this.classList.add(e),this.classList.remove(t))}connectedCallback(){super.connectedCallback(),this.appearance||(this.appearance="neutral")}defaultSlottedContentChanged(){const t=this.defaultSlottedContent.filter((t=>t.nodeType===Node.ELEMENT_NODE));1===t.length&&t[0]instanceof SVGElement?this.control.classList.add("icon-only"):this.control.classList.remove("icon-only")}};(0,r.gn)([i.Lj],D.prototype,"appearance",void 0),D=(0,r.gn)([(0,o.M)({name:"fluent-button",template:S,styles:A,shadowOptions:{delegatesFocus:!0,mode:"closed"}})],D)},66701:(t,e,n)=>{"use strict";if(n.d(e,{r:()=>o}),580==n.j)var r=n(27230);if(580==n.j)var i=n(91460);function o(t,e,n,o,s,a){return l=>{const c=(0,r.$p)(t,l),u=(0,i.Yc)(l)?-1:1,d=(0,i.Ce)(r.Cz)(c)(i.Tq)((()=>u))((0,i.iC)((0,r.$p)(e,l)))(l),p=(0,i.Ik)(t,d)(l),h=(0,r.$p)(n,l),f=(0,r.$p)(o,l),g=(0,r.$p)(s,l),v=(0,r.$p)(a,l);return function(t,e,n,r,o,s,a){const l=t+n*Math.abs(r-o),c=1===n?r<o:n*r>n*o,u=c?t:l,d=c?l:t,p=u+n*s,h=u+n*a;return{rest:(0,i.qZ)(u,e),hover:(0,i.qZ)(d,e),active:(0,i.qZ)(p,e),focus:(0,i.qZ)(h,e)}}(p,c,u,h,f,g,v)}}},19987:(t,e,n)=>{"use strict";n.d(e,{lB:()=>r,vm:()=>a,mq:()=>l,Kf:()=>d,ET:()=>p,$p:()=>h,sF:()=>f,K2:()=>g,uZ:()=>v});var r,i=n(52502),o=n(81562),s=n(98415);function a(t){const e=(0,s.Z)(t);return function(t){return"function"==typeof t?n=>e(Object.assign({},n,{backgroundColor:t(n)})):e(t)}}function l(t,e){const n=(0,s.Z)(e);return e=>"function"==typeof e?r=>n(Object.assign({},r,{backgroundColor:e(r)}))[t]:n(e)[t]}!function(t){t.rest="rest",t.hover="hover",t.active="active",t.focus="focus",t.selected="selected"}(r||(r={}));const c=new Map;function u(t){const e=c.get(t);if(!e){let e=(0,i.in)(t);if(null===e&&(e=(0,i.hg)(t)),null===e)throw new Error(`${t} cannot be converted to a ColorRGBA64. Color strings must be one of the following formats: "#RGB", "#RRGGBB", or "rgb(r, g, b)"`);return c.set(t,e),e}return e}function d(t){return(0,i.pJ)(t)||(0,i.b4)(t)}function p(t,e){return u(t).equalValue(u(e))}const h=(0,s.Z)(((t,e)=>(0,o.wo)(u(t),u(e))),((t,e)=>t+e));function f(t){return(0,o.hM)(u(t))}function g(...t){return e=>Math.max.apply(null,t.map((t=>t(e))))}const v=(t,e,n)=>Math.min(Math.max(t,e),n)},15915:(t,e,n)=>{"use strict";if(n.d(e,{t:()=>s}),580==n.j)var r=n(27230);if(580==n.j)var i=n(91460);const o=t=>{const e=(0,r.Dk)(t),n=(0,i.hi)(r.yv,(0,r.Cz)(t))(t);return(0,i.qZ)(n-e,(0,r.yv)(t))};function s(t){return"function"==typeof t?e=>o(Object.assign({},e,{backgroundColor:t(e)})):o(t)}},49552:(t,e,n)=>{"use strict";n.d(e,{DZ:()=>s,CH:()=>a});var r=n(27230),i=n(19987),o=n(66701);const s=(0,i.vm)((0,o.r)(r.yv,14,0,r.Ax,r.Nt,r.Cv)),a=(0,i.mq)(i.lB.rest,s);(0,i.mq)(i.lB.hover,s),(0,i.mq)(i.lB.active,s),(0,i.mq)(i.lB.focus,s)},91460:(t,e,n)=>{"use strict";if(n.d(e,{Ik:()=>s,hi:()=>a,Yc:()=>l,qZ:()=>c,Qs:()=>u,Ce:()=>p,Tq:()=>h,BD:()=>f,iC:()=>g}),580==n.j)var r=n(27230);if(580==n.j)var i=n(19987);var o;function s(t,e){return n=>{if(!(0,i.Kf)(e))return-1;const o=(0,r.$p)(t,n),s=o.indexOf(e);return-1!==s?s:o.findIndex((t=>(0,i.Kf)(t)&&(0,i.ET)(e,t)))}}function a(t,e){return n=>{const o=(0,r.$p)(t,n),a=(0,r.$p)(e,n),l=s(o,a)(n);let c;if(-1!==l)return l;try{c=(0,i.sF)(a)}catch(t){c=-1}return-1===c?0:o.map(((t,e)=>({luminance:(0,i.sF)(t),index:e}))).reduce(((t,e)=>Math.abs(e.luminance-c)<Math.abs(t.luminance-c)?e:t)).index}}function l(t){return(0,i.sF)((0,r.Cz)(t))<=(-.1+Math.sqrt(.21))/2}function c(t,e){return"function"==typeof t?n=>e(n)[(0,i.uZ)(t(n),0,e(n).length-1)]:e[(0,i.uZ)(t,0,e.length-1)]}function u(t){return(e,n)=>i=>c(l(i)?(0,r.$p)(n,i):(0,r.$p)(e,i),t(i))}function d(t,e,n=0,r=t.length-1){if(r===n)return t[n];const i=Math.floor((r-n)/2)+n;return e(t[i])?d(t,e,n,i):d(t,e,i+1,r)}function p(t){return e=>n=>o=>s=>a=>{const l=(0,r.$p)(t,a),c=(0,r.$p)(e,a),u=c.length,p=(0,i.uZ)(n(l,c,a),0,u-1),h=o(p,c,a);const f=[].concat(c),g=u-1;let v=p;return-1===h&&(f.reverse(),v=g-v),d(f,(function(t){return s((0,i.$p)(l,t))}),v,g)}}function h(t,e,n){return a(e,t)(n)}function f(t){return a(r.yv,(0,r.Cz)(t))(t)}function g(t){return e=>e>=t}!function(t){t.neutral="neutral",t.accent="accent"}(o||(o={}))},67549:(t,e,n)=>{"use strict";n.d(e,{M:()=>w});var r=n(33940),i=n(76298),o=n(29163),s=n(15933),a=n(58520);function l(t){return(e,n)=>{((t,e,n)=>{const{cssCustomProperty:r,attribute:i}=n;t.designSystemProperties||(t.designSystemProperties={}),!1===i?(0,a.LO)(t,e):(void 0===n.mode&&(n=Object.assign(Object.assign({},n),{mode:"fromView"})),(0,o.Lj)(n)(t,e)),t.designSystemProperties[e]={cssCustomProperty:!1!==r&&("string"==typeof r?r:"string"==typeof i?i:e),default:n.default}})(e,n,t)}}const c=n(90563).d` - <slot></slot> -`;var u=n(8126),d=n(68421),p=n(56461),h=n(52502),f=n(73446);function g(t){return new f.b({baseColor:t}).palette.map((t=>t.toStringHexRGB().toUpperCase()))}var v=n(49552),b=n(27230),m=n(93718);const y=i.i` - ${(0,m.j)("block")}; -`,x=new u.j("neutral-foreground-rest",v.CH,(t=>t)),_=i.i` - :host { - background-color: var(--background-color); - color: ${x.var}; - } -`.withBehaviors(x,(0,d.vF)(i.i` - :host { - background-color: ${s.H.ButtonFace}; - box-shadow: 0 0 0 1px ${s.H.CanvasText}; - color: ${s.H.ButtonText}; - } - `));let w=class extends p.hO{constructor(){super(...arguments),this.noPaint=!1}noPaintChanged(){this.noPaint||void 0===this.backgroundColor?this.$fastController.removeStyles(_):this.$fastController.addStyles(_)}backgroundColorChanged(){this.noPaintChanged()}neutralBaseColorChanged(t,e){const n=(0,h.in)(e);n&&(this.neutralPalette=g(n))}accentBaseColorChanged(t,e){const n=(0,h.in)(e);n&&(this.accentPalette=g(n))}};(0,r.gn)([(0,o.Lj)({attribute:"no-paint",mode:"boolean"})],w.prototype,"noPaint",void 0),(0,r.gn)([l({attribute:"background-color",default:b.GD.backgroundColor})],w.prototype,"backgroundColor",void 0),(0,r.gn)([l({attribute:"neutral-base-color",cssCustomProperty:!1,default:b.GD.neutralBaseColor})],w.prototype,"neutralBaseColor",void 0),(0,r.gn)([l({attribute:"accent-base-color",cssCustomProperty:!1,default:b.GD.accentBaseColor})],w.prototype,"accentBaseColor",void 0),(0,r.gn)([l({attribute:!1,cssCustomProperty:!1,default:b.GD.neutralPalette})],w.prototype,"neutralPalette",void 0),(0,r.gn)([l({attribute:!1,cssCustomProperty:!1,default:b.GD.accentPalette})],w.prototype,"accentPalette",void 0),(0,r.gn)([l({default:b.GD.density,converter:o.Id})],w.prototype,"density",void 0),(0,r.gn)([l({attribute:"design-unit",converter:o.Id,default:b.GD.designUnit})],w.prototype,"designUnit",void 0),(0,r.gn)([l({attribute:"direction",cssCustomProperty:!1,default:b.GD.direction})],w.prototype,"direction",void 0),(0,r.gn)([l({attribute:"base-height-multiplier",default:b.GD.baseHeightMultiplier,converter:o.Id})],w.prototype,"baseHeightMultiplier",void 0),(0,r.gn)([l({attribute:"base-horizontal-spacing-multiplier",converter:o.Id,default:b.GD.baseHorizontalSpacingMultiplier})],w.prototype,"baseHorizontalSpacingMultiplier",void 0),(0,r.gn)([l({attribute:"corner-radius",converter:o.Id,default:b.GD.cornerRadius})],w.prototype,"cornerRadius",void 0),(0,r.gn)([l({attribute:"elevated-corner-radius",converter:o.Id,default:b.GD.elevatedCornerRadius})],w.prototype,"elevatedCornerRadius",void 0),(0,r.gn)([l({attribute:"outline-width",converter:o.Id,default:b.GD.outlineWidth})],w.prototype,"outlineWidth",void 0),(0,r.gn)([l({attribute:"focus-outline-width",converter:o.Id,default:b.GD.focusOutlineWidth})],w.prototype,"focusOutlineWidth",void 0),(0,r.gn)([l({attribute:"disabled-opacity",converter:o.Id,default:b.GD.disabledOpacity})],w.prototype,"disabledOpacity",void 0),(0,r.gn)([l({attribute:"type-ramp-minus-2-font-size",default:b.GD.typeRampMinus2FontSize})],w.prototype,"typeRampMinus2FontSize",void 0),(0,r.gn)([l({attribute:"type-ramp-minus-2-line-height",default:b.GD.typeRampMinus2LineHeight})],w.prototype,"typeRampMinus2LineHeight",void 0),(0,r.gn)([l({attribute:"type-ramp-minus-1-font-size",default:b.GD.typeRampMinus1FontSize})],w.prototype,"typeRampMinus1FontSize",void 0),(0,r.gn)([l({attribute:"type-ramp-minus-1-line-height",default:b.GD.typeRampMinus1LineHeight})],w.prototype,"typeRampMinus1LineHeight",void 0),(0,r.gn)([l({attribute:"type-ramp-base-font-size",default:b.GD.typeRampBaseFontSize})],w.prototype,"typeRampBaseFontSize",void 0),(0,r.gn)([l({attribute:"type-ramp-base-line-height",default:b.GD.typeRampBaseLineHeight})],w.prototype,"typeRampBaseLineHeight",void 0),(0,r.gn)([l({attribute:"type-ramp-plus-1-font-size",default:b.GD.typeRampPlus1FontSize})],w.prototype,"typeRampPlus1FontSize",void 0),(0,r.gn)([l({attribute:"type-ramp-plus-1-line-height",default:b.GD.typeRampPlus1LineHeight})],w.prototype,"typeRampPlus1LineHeight",void 0),(0,r.gn)([l({attribute:"type-ramp-plus-2-font-size",default:b.GD.typeRampPlus2FontSize})],w.prototype,"typeRampPlus2FontSize",void 0),(0,r.gn)([l({attribute:"type-ramp-plus-2-line-height",default:b.GD.typeRampPlus2LineHeight})],w.prototype,"typeRampPlus2LineHeight",void 0),(0,r.gn)([l({attribute:"type-ramp-plus-3-font-size",default:b.GD.typeRampPlus3FontSize})],w.prototype,"typeRampPlus3FontSize",void 0),(0,r.gn)([l({attribute:"type-ramp-plus-3-line-height",default:b.GD.typeRampPlus3LineHeight})],w.prototype,"typeRampPlus3LineHeight",void 0),(0,r.gn)([l({attribute:"type-ramp-plus-4-font-size",default:b.GD.typeRampPlus4FontSize})],w.prototype,"typeRampPlus4FontSize",void 0),(0,r.gn)([l({attribute:"type-ramp-plus-4-line-height",default:b.GD.typeRampPlus4LineHeight})],w.prototype,"typeRampPlus4LineHeight",void 0),(0,r.gn)([l({attribute:"type-ramp-plus-5-font-size",default:b.GD.typeRampPlus5FontSize})],w.prototype,"typeRampPlus5FontSize",void 0),(0,r.gn)([l({attribute:"type-ramp-plus-5-line-height",default:b.GD.typeRampPlus5LineHeight})],w.prototype,"typeRampPlus5LineHeight",void 0),(0,r.gn)([l({attribute:"type-ramp-plus-6-font-size",default:b.GD.typeRampPlus6FontSize})],w.prototype,"typeRampPlus6FontSize",void 0),(0,r.gn)([l({attribute:"type-ramp-plus-6-line-height",default:b.GD.typeRampPlus6LineHeight})],w.prototype,"typeRampPlus6LineHeight",void 0),(0,r.gn)([l({attribute:"accent-fill-rest-delta",converter:o.Id,cssCustomProperty:!1,default:b.GD.accentFillRestDelta})],w.prototype,"accentFillRestDelta",void 0),(0,r.gn)([l({attribute:"accent-fill-hover-delta",converter:o.Id,cssCustomProperty:!1,default:b.GD.accentFillHoverDelta})],w.prototype,"accentFillHoverDelta",void 0),(0,r.gn)([l({attribute:"accent-fill-active-delta",cssCustomProperty:!1,converter:o.Id,default:b.GD.accentFillActiveDelta})],w.prototype,"accentFillActiveDelta",void 0),(0,r.gn)([l({attribute:"accent-fill-focus-delta",converter:o.Id,cssCustomProperty:!1,default:b.GD.accentFillFocusDelta})],w.prototype,"accentFillFocusDelta",void 0),(0,r.gn)([l({attribute:"accent-fill-selected-delta",converter:o.Id,cssCustomProperty:!1,default:b.GD.accentFillSelectedDelta})],w.prototype,"accentFillSelectedDelta",void 0),(0,r.gn)([l({attribute:"accent-foreground-rest-delta",converter:o.Id,cssCustomProperty:!1,default:b.GD.accentForegroundRestDelta})],w.prototype,"accentForegroundRestDelta",void 0),(0,r.gn)([l({attribute:"accent-foreground-hover-delta",converter:o.Id,cssCustomProperty:!1,default:b.GD.accentForegroundHoverDelta})],w.prototype,"accentForegroundHoverDelta",void 0),(0,r.gn)([l({attribute:"accent-foreground-active-delta",converter:o.Id,cssCustomProperty:!1,default:b.GD.accentForegroundActiveDelta})],w.prototype,"accentForegroundActiveDelta",void 0),(0,r.gn)([l({attribute:"accent-foreground-focus-delta",converter:o.Id,cssCustomProperty:!1,default:b.GD.accentForegroundFocusDelta})],w.prototype,"accentForegroundFocusDelta",void 0),(0,r.gn)([l({attribute:"neutral-fill-rest-delta",converter:o.Id,cssCustomProperty:!1,default:b.GD.neutralFillRestDelta})],w.prototype,"neutralFillRestDelta",void 0),(0,r.gn)([l({attribute:"neutral-fill-hover-delta",converter:o.Id,cssCustomProperty:!1,default:b.GD.neutralFillHoverDelta})],w.prototype,"neutralFillHoverDelta",void 0),(0,r.gn)([l({attribute:"neutral-fill-active-delta",converter:o.Id,cssCustomProperty:!1,default:b.GD.neutralFillActiveDelta})],w.prototype,"neutralFillActiveDelta",void 0),(0,r.gn)([l({attribute:"neutral-fill-focus-delta",converter:o.Id,cssCustomProperty:!1,default:b.GD.neutralFillFocusDelta})],w.prototype,"neutralFillFocusDelta",void 0),(0,r.gn)([l({attribute:"neutral-fill-selected-delta",converter:o.Id,cssCustomProperty:!1,default:b.GD.neutralFillSelectedDelta})],w.prototype,"neutralFillSelectedDelta",void 0),(0,r.gn)([l({attribute:"neutral-fill-input-rest-delta",converter:o.Id,cssCustomProperty:!1,default:b.GD.neutralFillInputRestDelta})],w.prototype,"neutralFillInputRestDelta",void 0),(0,r.gn)([l({attribute:"neutral-fill-input-hover-delta",converter:o.Id,cssCustomProperty:!1,default:b.GD.neutralFillInputHoverDelta})],w.prototype,"neutralFillInputHoverDelta",void 0),(0,r.gn)([l({attribute:"neutral-fill-input-active-delta",converter:o.Id,cssCustomProperty:!1,default:b.GD.neutralFillInputActiveDelta})],w.prototype,"neutralFillInputActiveDelta",void 0),(0,r.gn)([l({attribute:"neutral-fill-input-focus-delta",converter:o.Id,cssCustomProperty:!1,default:b.GD.neutralFillInputFocusDelta})],w.prototype,"neutralFillInputFocusDelta",void 0),(0,r.gn)([l({attribute:"neutral-fill-input-selected-delta",converter:o.Id,cssCustomProperty:!1,default:b.GD.neutralFillInputSelectedDelta})],w.prototype,"neutralFillInputSelectedDelta",void 0),(0,r.gn)([l({attribute:"neutral-fill-stealth-rest-delta",converter:o.Id,cssCustomProperty:!1,default:b.GD.neutralFillStealthRestDelta})],w.prototype,"neutralFillStealthRestDelta",void 0),(0,r.gn)([l({attribute:"neutral-fill-stealth-hover-delta",converter:o.Id,cssCustomProperty:!1,default:b.GD.neutralFillStealthHoverDelta})],w.prototype,"neutralFillStealthHoverDelta",void 0),(0,r.gn)([l({attribute:"neutral-fill-stealth-active-delta",converter:o.Id,cssCustomProperty:!1,default:b.GD.neutralFillStealthActiveDelta})],w.prototype,"neutralFillStealthActiveDelta",void 0),(0,r.gn)([l({attribute:"neutral-fill-stealth-focus-delta",converter:o.Id,cssCustomProperty:!1,default:b.GD.neutralFillStealthFocusDelta})],w.prototype,"neutralFillStealthFocusDelta",void 0),(0,r.gn)([l({attribute:"neutral-fill-stealth-selected-delta",converter:o.Id,cssCustomProperty:!1,default:b.GD.neutralFillStealthSelectedDelta})],w.prototype,"neutralFillStealthSelectedDelta",void 0),(0,r.gn)([l({attribute:"neutral-fill-toggle-hover-delta",converter:o.Id,cssCustomProperty:!1,default:b.GD.neutralFillToggleHoverDelta})],w.prototype,"neutralFillToggleHoverDelta",void 0),(0,r.gn)([l({attribute:"neutral-fill-toggle-hover-active",converter:o.Id,cssCustomProperty:!1,default:b.GD.neutralFillToggleActiveDelta})],w.prototype,"neutralFillToggleActiveDelta",void 0),(0,r.gn)([l({attribute:"neutral-fill-toggle-hover-focus",converter:o.Id,cssCustomProperty:!1,default:b.GD.neutralFillToggleFocusDelta})],w.prototype,"neutralFillToggleFocusDelta",void 0),(0,r.gn)([l({attribute:"base-layer-luminance",converter:o.Id,cssCustomProperty:!1,default:b.GD.baseLayerLuminance})],w.prototype,"baseLayerLuminance",void 0),(0,r.gn)([l({attribute:"neutral-fill-card-delta",converter:o.Id,cssCustomProperty:!1,default:b.GD.neutralFillCardDelta})],w.prototype,"neutralFillCardDelta",void 0),(0,r.gn)([l({attribute:"neutral-foreground-hover-delta",converter:o.Id,cssCustomProperty:!1,default:b.GD.neutralForegroundHoverDelta})],w.prototype,"neutralForegroundHoverDelta",void 0),(0,r.gn)([l({attribute:"neutral-foreground-active-delta",converter:o.Id,cssCustomProperty:!1,default:b.GD.neutralForegroundActiveDelta})],w.prototype,"neutralForegroundActiveDelta",void 0),(0,r.gn)([l({attribute:"neutral-foreground-focus-delta",converter:o.Id,cssCustomProperty:!1,default:b.GD.neutralForegroundFocusDelta})],w.prototype,"neutralForegroundFocusDelta",void 0),(0,r.gn)([l({attribute:"neutral-divider-rest-delta",converter:o.Id,cssCustomProperty:!1,default:b.GD.neutralDividerRestDelta})],w.prototype,"neutralDividerRestDelta",void 0),(0,r.gn)([l({attribute:"neutral-outline-rest-delta",converter:o.Id,cssCustomProperty:!1,default:b.GD.neutralOutlineRestDelta})],w.prototype,"neutralOutlineRestDelta",void 0),(0,r.gn)([l({attribute:"neutral-outline-hover-delta",converter:o.Id,cssCustomProperty:!1,default:b.GD.neutralOutlineHoverDelta})],w.prototype,"neutralOutlineHoverDelta",void 0),(0,r.gn)([l({attribute:"neutral-outline-active-delta",converter:o.Id,cssCustomProperty:!1,default:b.GD.neutralOutlineActiveDelta})],w.prototype,"neutralOutlineActiveDelta",void 0),(0,r.gn)([l({attribute:"neutral-outline-focus-delta",converter:o.Id,cssCustomProperty:!1,default:b.GD.neutralOutlineFocusDelta})],w.prototype,"neutralOutlineFocusDelta",void 0),(0,r.gn)([l({attribute:"neutral-contrast-fill-rest-delta",converter:o.Id,cssCustomProperty:!1,default:b.GD.neutralContrastFillRestDelta})],w.prototype,"neutralContrastFillRestDelta",void 0),(0,r.gn)([l({attribute:"neutral-contrast-fill-hover-delta",converter:o.Id,cssCustomProperty:!1,default:b.GD.neutralContrastFillHoverDelta})],w.prototype,"neutralContrastFillHoverDelta",void 0),(0,r.gn)([l({attribute:"neutral-contrast-fill-active-delta",converter:o.Id,cssCustomProperty:!1,default:b.GD.neutralContrastFillActiveDelta})],w.prototype,"neutralContrastFillActiveDelta",void 0),(0,r.gn)([l({attribute:"neutral-contrast-fill-focus-delta",converter:o.Id,cssCustomProperty:!1,default:b.GD.neutralContrastFillFocusDelta})],w.prototype,"neutralContrastFillFocusDelta",void 0),w=(0,r.gn)([(0,p._1)({name:"fluent-design-system-provider",template:c,styles:y,shadowOptions:{mode:"closed"}})],w)},27230:(t,e,n)=>{"use strict";n.d(e,{GD:()=>r,R6:()=>a,Wo:()=>p,v$:()=>h,B2:()=>d,bX:()=>f,kb:()=>b,nd:()=>m,L8:()=>v,kp:()=>g,au:()=>c,Cz:()=>s,q2:()=>B,o7:()=>u,$p:()=>i,db:()=>q,DI:()=>K,UB:()=>V,yI:()=>H,hD:()=>_,Dk:()=>F,VQ:()=>w,jW:()=>x,q_:()=>O,Zb:()=>j,EL:()=>E,ef:()=>S,VI:()=>P,MY:()=>y,y$:()=>C,gs:()=>T,IU:()=>A,fq:()=>I,qD:()=>k,Uy:()=>D,d0:()=>$,G:()=>N,OK:()=>R,Nt:()=>M,Cv:()=>Z,Ax:()=>L,KS:()=>W,OD:()=>G,k9:()=>U,Kp:()=>z,yv:()=>l});const r={typeRampMinus2FontSize:"10px",typeRampMinus2LineHeight:"16px",typeRampMinus1FontSize:"12px",typeRampMinus1LineHeight:"16px",typeRampBaseFontSize:"14px",typeRampBaseLineHeight:"20px",typeRampPlus1FontSize:"16px",typeRampPlus1LineHeight:"24px",typeRampPlus2FontSize:"20px",typeRampPlus2LineHeight:"28px",typeRampPlus3FontSize:"28px",typeRampPlus3LineHeight:"36px",typeRampPlus4FontSize:"34px",typeRampPlus4LineHeight:"44px",typeRampPlus5FontSize:"46px",typeRampPlus5LineHeight:"56px",typeRampPlus6FontSize:"60px",typeRampPlus6LineHeight:"72px",accentBaseColor:"#0078D4",accentPalette:["#FFFFFF","#FBFDFE","#F6FAFE","#F2F8FD","#EEF6FC","#E9F4FB","#E5F1FB","#E1EFFA","#DCEDF9","#D8EAF8","#D4E8F8","#CFE6F7","#CBE4F6","#C7E1F6","#C2DFF5","#BEDDF4","#BADAF3","#B6D8F3","#B1D6F2","#ADD4F1","#A9D1F0","#A4CFF0","#A0CDEF","#9CCAEE","#97C8EE","#93C6ED","#8FC4EC","#8AC1EB","#86BFEB","#82BDEA","#7DBAE9","#79B8E8","#75B6E8","#70B3E7","#6CB1E6","#68AFE5","#63ADE5","#5FAAE4","#5BA8E3","#56A6E3","#52A3E2","#4EA1E1","#499FE0","#459DE0","#419ADF","#3D98DE","#3896DD","#3493DD","#3091DC","#2B8FDB","#278DDB","#238ADA","#1E88D9","#1A86D8","#1683D8","#1181D7","#0D7FD6","#097DD5","#047AD5","#0078D4","#0075CF","#0072C9","#006FC4","#006CBE","#0069B9","#0066B4","#0063AE","#0060A9","#005CA3","#00599E","#005699","#005393","#00508E","#004D88","#004A83","#00477D","#004478","#004173","#003E6D","#003B68","#003862","#00355D","#003258","#002F52","#002B4D","#002847","#002542","#00223C","#001F36","#001B30","#00182B","#001525","#00121F","#000000"],backgroundColor:"#FFFFFF",baseHeightMultiplier:8,baseHorizontalSpacingMultiplier:3,cornerRadius:2,elevatedCornerRadius:4,density:0,designUnit:4,direction:n(26007).N.ltr,disabledOpacity:.3,focusOutlineWidth:2,neutralBaseColor:"#808080",neutralPalette:["#FFFFFF","#FCFCFC","#FAFAFA","#F7F7F7","#F5F5F5","#F2F2F2","#EFEFEF","#EDEDED","#EAEAEA","#E8E8E8","#E5E5E5","#E2E2E2","#E0E0E0","#DDDDDD","#DBDBDB","#D8D8D8","#D6D6D6","#D3D3D3","#D0D0D0","#CECECE","#CBCBCB","#C9C9C9","#C6C6C6","#C3C3C3","#C1C1C1","#BEBEBE","#BCBCBC","#B9B9B9","#B6B6B6","#B4B4B4","#B1B1B1","#AFAFAF","#ACACAC","#A9A9A9","#A7A7A7","#A4A4A4","#A2A2A2","#9F9F9F","#9D9D9D","#9A9A9A","#979797","#959595","#929292","#909090","#8D8D8D","#8A8A8A","#888888","#858585","#838383","#808080","#7D7D7D","#7B7B7B","#787878","#767676","#737373","#717171","#6E6E6E","#6B6B6B","#696969","#666666","#646464","#616161","#5F5F5F","#5C5C5C","#5A5A5A","#575757","#545454","#525252","#4F4F4F","#4D4D4D","#4A4A4A","#484848","#454545","#424242","#404040","#3D3D3D","#3B3B3B","#383838","#363636","#333333","#313131","#2E2E2E","#2B2B2B","#292929","#262626","#242424","#212121","#1E1E1E","#1B1B1B","#181818","#151515","#121212","#101010","#000000"],outlineWidth:1,accentFillRestDelta:0,accentFillHoverDelta:4,accentFillActiveDelta:-5,accentFillFocusDelta:0,accentFillSelectedDelta:12,accentForegroundRestDelta:0,accentForegroundHoverDelta:6,accentForegroundActiveDelta:-4,accentForegroundFocusDelta:0,neutralFillRestDelta:7,neutralFillHoverDelta:10,neutralFillActiveDelta:5,neutralFillFocusDelta:0,neutralFillSelectedDelta:7,neutralFillInputRestDelta:0,neutralFillInputHoverDelta:0,neutralFillInputActiveDelta:0,neutralFillInputFocusDelta:0,neutralFillInputSelectedDelta:0,neutralFillStealthRestDelta:0,neutralFillStealthHoverDelta:5,neutralFillStealthActiveDelta:3,neutralFillStealthFocusDelta:0,neutralFillStealthSelectedDelta:7,neutralFillToggleHoverDelta:8,neutralFillToggleActiveDelta:-5,neutralFillToggleFocusDelta:0,baseLayerLuminance:-1,neutralFillCardDelta:3,neutralForegroundHoverDelta:0,neutralForegroundActiveDelta:0,neutralForegroundFocusDelta:0,neutralDividerRestDelta:8,neutralOutlineRestDelta:25,neutralOutlineHoverDelta:40,neutralOutlineActiveDelta:16,neutralOutlineFocusDelta:25,neutralContrastFillRestDelta:0,neutralContrastFillHoverDelta:-3,neutralContrastFillActiveDelta:7,neutralContrastFillFocusDelta:0};function i(t,e){return"function"==typeof t?t(e):t}function o(t){return e=>e&&void 0!==e[t]?e[t]:r[t]}const s=o("backgroundColor"),a=(o("neutralBaseColor"),o("accentBaseColor")),l=(o("cornerRadius"),o("neutralPalette")),c=o("accentPalette"),u=(o("designUnit"),o("baseHeightMultiplier"),o("baseHorizontalSpacingMultiplier"),o("outlineWidth"),o("focusOutlineWidth"),o("disabledOpacity"),o("direction")),d=(o("accentFillRestDelta"),o("accentFillHoverDelta")),p=o("accentFillActiveDelta"),h=o("accentFillFocusDelta"),f=o("accentFillSelectedDelta"),g=o("accentForegroundRestDelta"),v=o("accentForegroundHoverDelta"),b=o("accentForegroundActiveDelta"),m=o("accentForegroundFocusDelta"),y=o("neutralFillRestDelta"),x=o("neutralFillHoverDelta"),_=o("neutralFillActiveDelta"),w=o("neutralFillFocusDelta"),C=o("neutralFillSelectedDelta"),S=o("neutralFillInputRestDelta"),E=o("neutralFillInputHoverDelta"),O=o("neutralFillInputActiveDelta"),j=o("neutralFillInputFocusDelta"),P=o("neutralFillInputSelectedDelta"),k=o("neutralFillStealthRestDelta"),I=o("neutralFillStealthHoverDelta"),T=o("neutralFillStealthActiveDelta"),A=o("neutralFillStealthFocusDelta"),D=o("neutralFillStealthSelectedDelta"),R=o("neutralFillToggleHoverDelta"),$=o("neutralFillToggleActiveDelta"),N=o("neutralFillToggleFocusDelta"),B=o("baseLayerLuminance"),F=o("neutralFillCardDelta"),L=o("neutralForegroundHoverDelta"),M=o("neutralForegroundActiveDelta"),Z=o("neutralForegroundFocusDelta"),H=o("neutralDividerRestDelta"),z=o("neutralOutlineRestDelta"),U=o("neutralOutlineHoverDelta"),W=o("neutralOutlineActiveDelta"),G=o("neutralOutlineFocusDelta"),V=(o("neutralContrastFillRestDelta"),o("neutralContrastFillHoverDelta")),q=o("neutralContrastFillActiveDelta"),K=o("neutralContrastFillFocusDelta")},25914:(t,e,n)=>{"use strict";n.d(e,{fE:()=>Qt,En:()=>Yt,iq:()=>Kt,_c:()=>Zt,Jd:()=>Ht,gt:()=>Mt,YK:()=>Lt,I:()=>ne,a:()=>Wt,G$:()=>Xt,Ep:()=>Ut,nE:()=>zt,Nv:()=>qt,Cs:()=>Vt,Br:()=>Gt,cI:()=>oe,Kt:()=>se,EV:()=>Bt,oK:()=>Ft,eH:()=>Nt,sp:()=>$t,BO:()=>re,mO:()=>ie,i2:()=>ee,Xt:()=>te,Fv:()=>Jt});var r=n(8126),i=n(26007);const o="#FFFFFF",s="#000000";var a=n(19987),l=n(27230),c=n(66701);const u=(0,a.vm)((0,c.r)(l.yv,4.5,0,l.OK,l.d0,l.G)),d=(0,a.mq)(a.lB.rest,u),p=((0,a.mq)(a.lB.hover,u),(0,a.mq)(a.lB.active,u),(0,a.mq)(a.lB.focus,u),(t,e)=>(0,a.$p)(o,t)>=e?o:s);function h(t){return function(e){return"function"==typeof e?n=>p(e(n),t):p(d(e),t)}}const f=h(4.5),g=h(3);function v(t){return(0,c.r)(l.yv,t,0,0,0,0)}const b=(0,a.mq)(a.lB.rest,(0,a.vm)(v(4.5))),m=(0,a.mq)(a.lB.rest,(0,a.vm)(v(3)));var y=n(91460);function x(t){return e=>{const n=(0,l.au)(e),r=(0,l.R6)(e),i=(0,y.hi)(l.au,r)(e),o={rest:(0,l.kp)(e),hover:(0,l.L8)(e),active:(0,l.kb)(e),focus:(0,l.nd)(e)},s=(0,y.Yc)(e)?-1:1,a=i+(1===s?Math.min(o.rest,o.hover):Math.max(s*o.rest,s*o.hover)),c=(0,y.Ce)(l.Cz)(l.au)((()=>a))((()=>s))((e=>e>=t))(e),u=(0,y.Ik)(l.au,c)(e),d=u+s*Math.abs(o.rest-o.hover),p=1===s?o.rest<o.hover:s*o.rest>s*o.hover,h=p?u:d,f=p?d:u,g=h+s*o.active,v=h+s*o.focus;return{rest:(0,y.qZ)(h,n),hover:(0,y.qZ)(f,n),active:(0,y.qZ)(g,n),focus:(0,y.qZ)(v,n)}}}const _=(0,a.vm)(x(4.5)),w=(0,a.vm)(x(3)),C=((0,a.mq)(a.lB.rest,_),(0,a.mq)(a.lB.hover,_),(0,a.mq)(a.lB.active,_),(0,a.mq)(a.lB.focus,_),(0,a.mq)(a.lB.rest,w),(0,a.mq)(a.lB.hover,w),(0,a.mq)(a.lB.active,w),(0,a.mq)(a.lB.focus,w),(t,e)=>(0,a.$p)(o,t)>=e?o:s);function S(t){return function(e){return"function"==typeof e?n=>C(e(n),t):C((0,l.R6)(e),t)}}const E=S(4.5),O=(S(3),(0,a.K2)(l.MY,l.jW,l.hD,l.VQ));function j(t){return e=>{const n=(0,y.BD)(e),r=n>=O(e)?-1:1;return(0,y.qZ)(n+r*t(e),(0,l.yv)(e))}}const P=(0,a.vm)(j(l.MY)),k=(0,a.vm)(j(l.jW)),I=(0,a.vm)(j(l.hD)),T=(0,a.vm)(j(l.VQ)),A=(0,a.vm)(j(l.y$)),D=(0,a.vm)((t=>({rest:P(t),hover:k(t),active:I(t),focus:T(t),selected:A(t)}))),R=(0,a.K2)(l.MY,l.jW,l.hD,l.VQ,l.qD,l.fq,l.gs,l.IU);function $(t){return e=>{const n=(0,y.BD)(e),r=n>=R(e)?-1:1;return(0,y.qZ)(n+r*t(e),(0,l.yv)(e))}}const N=(0,a.vm)($(l.qD)),B=(0,a.vm)($(l.fq)),F=(0,a.vm)($(l.gs)),L=(0,a.vm)($(l.IU)),M=(0,a.vm)($(l.Uy)),Z=(0,a.vm)((t=>({rest:N(t),hover:B(t),active:F(t),focus:L(t),selected:M(t)})));function H(t){return e=>{const n=(0,y.Yc)(e)?-1:1;return(0,y.qZ)((0,y.BD)(e)-t(e)*n,(0,l.yv)(e))}}const z=(0,a.vm)(H(l.ef)),U=(0,a.vm)(H(l.EL)),W=(0,a.vm)(H(l.q_)),G=(0,a.vm)(H(l.Zb)),V=(0,a.vm)(H(l.VI)),q=(0,a.vm)((t=>({rest:z(t),hover:U(t),active:W(t),focus:G(t),selected:V(t)})));var K=n(67099);const Y=(0,a.K2)(l.MY,l.jW,l.hD);function Q(t){return e=>{const n=(0,l.au)(e),r=n.length,i=(0,l.R6)(e),o=E(Object.assign({},e,{backgroundColor:i})),s=(0,l.B2)(e),c=(0,y.BD)(e)>=Y(e)?-1:1,u=r-1,d=(0,y.hi)(l.au,i)(e);let p=0;for(;p<c*s&&(0,K.Z)(d+p+c,0,r)&&(0,a.$p)(n[d+p+c],o)>=t&&(0,K.Z)(d+p+c+c,0,u);)p+=c;const h=d+p,f=h+-1*c*s,g=f+c*(0,l.Wo)(e),v=f+c*(0,l.v$)(e);return{rest:(0,y.qZ)(f,n),hover:(0,y.qZ)(h,n),active:(0,y.qZ)(g,n),focus:(0,y.qZ)(v,n),selected:(0,y.qZ)(f+((0,y.Yc)(e)?-1*(0,l.bX)(e):(0,l.bX)(e)),n)}}}const X=(0,a.vm)(Q(4.5)),J=(0,a.vm)(Q(3)),tt=((0,a.mq)(a.lB.rest,X),(0,a.mq)(a.lB.hover,X),(0,a.mq)(a.lB.active,X),(0,a.mq)(a.lB.focus,X),(0,a.mq)(a.lB.selected,X),(0,a.mq)(a.lB.rest,J),(0,a.mq)(a.lB.hover,J),(0,a.mq)(a.lB.active,J),(0,a.mq)(a.lB.focus,J),(0,a.mq)(a.lB.selected,J),(0,a.vm)((t=>{const e=(0,l.yv)(t),n=(0,y.BD)(t),r=(0,y.Yc)(t)?-1:1,i=(0,l.Kp)(t),o=n+r*i,s=o+r*((0,l.k9)(t)-i),a=o+r*((0,l.KS)(t)-i),c=o+r*((0,l.OD)(t)-i);return{rest:(0,y.qZ)(o,e),hover:(0,y.qZ)(s,e),active:(0,y.qZ)(a,e),focus:(0,y.qZ)(c,e)}}))),et=((0,a.mq)(a.lB.rest,tt),(0,a.mq)(a.lB.hover,tt),(0,a.mq)(a.lB.active,tt),(0,a.mq)(a.lB.focus,tt),(0,a.vm)((t=>{const e=(0,l.yv)(t),n=(0,y.BD)(t),r=(0,l.yI)(t),i=n+((0,y.Yc)(t)?-1:1)*r;return(0,y.qZ)(i,e)})));var nt=n(57653),rt=n(92764);function it(t){return(...e)=>n=>{const r=e[0];let i="function"==typeof r?r(n):r;for(let r=1;r<e.length;r++){const o=e[r];i=t(i,"function"==typeof o?o(n):o)}return i}}const ot=it(((t,e)=>t+e)),st=it(((t,e)=>t-e)),at=it(((t,e)=>t*e));it(((t,e)=>t/e));function lt(...t){return ot.apply(this,t)}function ct(...t){return st.apply(this,t)}function ut(...t){return at.apply(this,t)}var dt;function pt(t,e){return n=>-1===(0,l.q2)(n)?e(n):t(n)}!function(t){t[t.LightMode=1]="LightMode",t[t.DarkMode=.23]="DarkMode"}(dt||(dt={}));const ht=(0,y.hi)(l.yv,(t=>{const e=(0,l.q2)(t);return new nt.h(e,e,e,1).toStringHexRGB()})),ft=t=>(0,rt.uZ)(ct(ht,l.Dk)(t),0,(0,l.yv)(t).length-1),gt=(0,a.K2)(l.MY,l.jW,l.hD),vt=(0,a.K2)(lt(ht,l.Dk),gt),bt=t=>{const e=.14,n=new nt.h(e,e,e,1);return(0,y.hi)(l.yv,n.toStringHexRGB())(t)},mt=(0,a.vm)(pt((0,y.qZ)(ct(ft,l.Dk),l.yv),(0,y.Qs)(l.yv)(0,ct(bt,ut(l.Dk,5))))),yt=(0,a.vm)(pt((0,y.qZ)(ft,l.yv),(0,y.Qs)(l.yv)(0,ct(bt,ut(l.Dk,4))))),xt=(0,a.vm)(pt((0,y.qZ)(lt(ft,l.Dk),l.yv),(0,y.Qs)(l.yv)(l.Dk,ct(bt,ut(l.Dk,3))))),_t=(0,a.vm)(pt((0,y.qZ)(ht,l.yv),(0,y.Qs)(l.yv)(0,ct(bt,ut(l.Dk,3))))),wt=xt,Ct=(0,a.vm)(pt((0,y.qZ)(vt,l.yv),(0,y.Qs)(l.yv)(gt,ct(bt,ut(l.Dk,2))))),St=(0,a.vm)(pt((0,y.qZ)(lt(vt,l.Dk),l.yv),(0,y.Qs)(l.yv)(lt(gt,l.Dk),ct(bt,l.Dk)))),Et=(0,a.vm)(pt((0,y.qZ)(lt(vt,ut(l.Dk,2)),l.yv),(0,y.Qs)(l.yv)(lt(gt,ut(l.Dk,2)),bt)));function Ot(t){return t>3.5}const jt=(0,y.Ce)(l.Cz)(l.yv)((function(t,e,n){return(0,y.hi)(l.yv,t)(n)}))((function(t,e,n){return(0,y.Yc)(n)?-1:1}))(Ot),Pt=(0,a.vm)(jt);function kt(t,e,n){return(0,y.Yc)(n)?1:-1}const It=(0,a.vm)((0,c.r)(l.yv,14,0,l.UB,l.db,l.DI)),Tt=(0,a.mq)(a.lB.rest,It);(0,a.mq)(a.lB.hover,It),(0,a.mq)(a.lB.active,It),(0,a.mq)(a.lB.focus,It);var At=n(49552),Dt=n(15915),Rt=n(67549);const $t=(0,r.Q)("neutral-foreground-rest",(t=>(0,At.DZ)(t).rest),Rt.M.findProvider),Nt=(0,r.Q)("neutral-foreground-hover",(t=>(0,At.DZ)(t).hover),Rt.M.findProvider),Bt=(0,r.Q)("neutral-foreground-active",(t=>(0,At.DZ)(t).active),Rt.M.findProvider),Ft=((0,r.Q)("neutral-foreground-focus",(t=>(0,At.DZ)(t).focus),Rt.M.findProvider),(0,r.Q)("neutral-foreground-toggle",f,Rt.M.findProvider),(0,r.Q)("neutral-foreground-toggle-large",g,Rt.M.findProvider),(0,r.Q)("neutral-foreground-hint",b,Rt.M.findProvider)),Lt=((0,r.Q)("neutral-foreground-hint-large",m,Rt.M.findProvider),(0,r.Q)("accent-foreground-rest",(t=>_(t).rest),Rt.M.findProvider)),Mt=(0,r.Q)("accent-foreground-hover",(t=>_(t).hover),Rt.M.findProvider),Zt=(0,r.Q)("accent-foreground-active",(t=>_(t).active),Rt.M.findProvider),Ht=((0,r.Q)("accent-foreground-focus",(t=>_(t).focus),Rt.M.findProvider),(0,r.Q)("accent-foreground-cut-rest",(t=>E(t)),Rt.M.findProvider)),zt=((0,r.Q)("accent-foreground-large-rest",(t=>w(t).rest),Rt.M.findProvider),(0,r.Q)("accent-foreground-large-hover",(t=>w(t).hover),Rt.M.findProvider),(0,r.Q)("accent-foreground-large-active",(t=>w(t).active),Rt.M.findProvider),(0,r.Q)("accent-foreground-large-focus",(t=>w(t).focus),Rt.M.findProvider),(0,r.Q)("neutral-fill-rest",(t=>D(t).rest),Rt.M.findProvider)),Ut=(0,r.Q)("neutral-fill-hover",(t=>D(t).hover),Rt.M.findProvider),Wt=(0,r.Q)("neutral-fill-active",(t=>D(t).active),Rt.M.findProvider),Gt=((0,r.Q)("neutral-fill-focus",(t=>D(t).focus),Rt.M.findProvider),(0,r.Q)("neutral-fill-selected",(t=>D(t).selected),Rt.M.findProvider),(0,r.Q)("neutral-fill-stealth-rest",(t=>Z(t).rest),Rt.M.findProvider)),Vt=(0,r.Q)("neutral-fill-stealth-hover",(t=>Z(t).hover),Rt.M.findProvider),qt=(0,r.Q)("neutral-fill-stealth-active",(t=>Z(t).active),Rt.M.findProvider),Kt=((0,r.Q)("neutral-fill-stealth-focus",(t=>Z(t).focus),Rt.M.findProvider),(0,r.Q)("neutral-fill-stealth-selected",(t=>Z(t).selected),Rt.M.findProvider),(0,r.Q)("neutral-fill-toggle-rest",(t=>u(t).rest),Rt.M.findProvider),(0,r.Q)("neutral-fill-toggle-hover",(t=>u(t).hover),Rt.M.findProvider),(0,r.Q)("neutral-fill-toggle-active",(t=>u(t).active),Rt.M.findProvider),(0,r.Q)("neutral-fill-toggle-focus",(t=>u(t).focus),Rt.M.findProvider),(0,r.Q)("neutral-fill-input-rest",(t=>q(t).rest),Rt.M.findProvider),(0,r.Q)("neutral-fill-input-hover",(t=>q(t).hover),Rt.M.findProvider),(0,r.Q)("neutral-fill-input-active",(t=>q(t).active),Rt.M.findProvider),(0,r.Q)("neutral-fill-input-focus",(t=>q(t).focus),Rt.M.findProvider),(0,r.Q)("accent-fill-rest",(t=>X(t).rest),Rt.M.findProvider)),Yt=(0,r.Q)("accent-fill-hover",(t=>X(t).hover),Rt.M.findProvider),Qt=(0,r.Q)("accent-fill-active",(t=>X(t).active),Rt.M.findProvider),Xt=((0,r.Q)("accent-fill-focus",(t=>X(t).focus),Rt.M.findProvider),(0,r.Q)("accent-fill-selected",(t=>X(t).selected),Rt.M.findProvider),(0,r.Q)("accent-fill-large-rest",(t=>J(t).rest),Rt.M.findProvider),(0,r.Q)("accent-fill-large-hover",(t=>J(t).hover),Rt.M.findProvider),(0,r.Q)("accent-fill-large-active",(t=>J(t).active),Rt.M.findProvider),(0,r.Q)("accent-fill-large-focus",(t=>J(t).focus),Rt.M.findProvider),(0,r.Q)("accent-fill-large-selected",(t=>J(t).selected),Rt.M.findProvider),(0,r.Q)("neutral-fill-card-rest",(t=>(0,Dt.t)(t)),Rt.M.findProvider)),Jt=(0,r.Q)("neutral-outline-rest",(t=>tt(t).rest),Rt.M.findProvider),te=(0,r.Q)("neutral-outline-hover",(t=>tt(t).hover),Rt.M.findProvider),ee=(0,r.Q)("neutral-outline-active",(t=>tt(t).active),Rt.M.findProvider),ne=((0,r.Q)("neutral-outline-focus",(t=>tt(t).focus),Rt.M.findProvider),(0,r.Q)("neutral-divider-rest",et,Rt.M.findProvider)),re=((0,r.Q)("neutral-layer-floating",mt,Rt.M.findProvider),(0,r.Q)("neutral-layer-card",yt,Rt.M.findProvider)),ie=(0,r.Q)("neutral-layer-card-container",xt,Rt.M.findProvider),oe=((0,r.Q)("neutral-layer-l1",_t,Rt.M.findProvider),(0,r.Q)("neutral-layer-l1-alt",wt,Rt.M.findProvider),(0,r.Q)("neutral-layer-l2",Ct,Rt.M.findProvider),(0,r.Q)("neutral-layer-l3",St,Rt.M.findProvider),(0,r.Q)("neutral-layer-l4",Et,Rt.M.findProvider),(0,r.Q)("neutral-focus",Pt,Rt.M.findProvider)),se=(0,r.Q)("neutral-focus-inner-accent",(ae=l.R6,(0,y.Ce)(Pt)(l.au)(function(t){return(e,n,r)=>n.indexOf(t(r))}(ae))(kt)(Ot)),Rt.M.findProvider);var ae;(0,r.Q)("neutral-contrast-foreground-rest",(t=>(0,At.CH)(Tt)(t)),Rt.M.findProvider),(0,r.Q)("neutral-contrast-fill-rest",(t=>It(t).rest),Rt.M.findProvider),(0,r.Q)("neutral-contrast-fill-hover",(t=>It(t).hover),Rt.M.findProvider),(0,r.Q)("neutral-contrast-fill-active",(t=>It(t).active),Rt.M.findProvider),(0,r.Q)("neutral-contrast-fill-focus",(t=>It(t).focus),Rt.M.findProvider),(0,r.Q)("inline-start",(t=>(0,l.o7)(t)===i.N.ltr?"left":"right"),Rt.M.findProvider),(0,r.Q)("inline-end",(t=>(0,l.o7)(t)===i.N.ltr?"right":"left"),Rt.M.findProvider)},7642:(t,e,n)=>{"use strict";n.d(e,{XC:()=>r});const r="box-shadow: 0 0 calc((var(--elevation) * 0.225px) + 2px) rgba(0, 0, 0, calc(.11 * (2 - var(--background-luminance, 1)))), 0 calc(var(--elevation) * 0.4px) calc((var(--elevation) * 0.9px)) rgba(0, 0, 0, calc(.13 * (2 - var(--background-luminance, 1))));"},18967:(t,e,n)=>{"use strict";n.d(e,{G6:()=>u,jQ:()=>d,Xu:()=>p,vt:()=>h,O8:()=>f,cg:()=>g});var r=n(76298),i=n(15933),o=n(93718),s=n(67845),a=n(68421),l=n(45227),c=n(25914);const u=r.i` - ${(0,o.j)("inline-flex")} :host { - font-family: var(--body-font); - outline: none; - font-size: var(--type-ramp-base-font-size); - line-height: var(--type-ramp-base-line-height); - height: calc(${l.i} * 1px); - min-width: calc(${l.i} * 1px); - background-color: ${c.nE.var}; - color: ${c.sp.var}; - border-radius: calc(var(--corner-radius) * 1px); - fill: currentcolor; - cursor: pointer; - } - - .control { - background: transparent; - height: inherit; - flex-grow: 1; - box-sizing: border-box; - display: inline-flex; - justify-content: center; - align-items: center; - padding: 0 calc((10 + (var(--design-unit) * 2 * var(--density))) * 1px); - white-space: nowrap; - outline: none; - text-decoration: none; - border: calc(var(--outline-width) * 1px) solid transparent; - color: inherit; - border-radius: inherit; - fill: inherit; - cursor: inherit; - font-family: inherit; - } - - .control, - .end, - .start { - font: inherit; - } - - .control.icon-only { - padding: 0; - line-height: 0; - } - - :host(:hover) { - background-color: ${c.Ep.var}; - } - - :host(:active) { - background-color: ${c.a.var}; - } - - .control:${s.b} { - border: calc(var(--outline-width) * 1px) solid ${c.cI.var}; - box-shadow: 0 0 0 calc((var(--focus-outline-width) - var(--outline-width)) * 1px) ${c.cI.var}; - } - - .control::-moz-focus-inner { - border: 0; - } - - .content { - pointer-events: none; - } - - .start, - .end { - display: flex; - pointer-events: none; - } - - ::slotted(svg) { - ${""} width: 16px; - height: 16px; - pointer-events: none; - } - - .start { - margin-inline-end: 11px; - } - - .end { - margin-inline-start: 11px; - } -`.withBehaviors(c.nE,c.cI,c.sp,c.Ep,c.a,(0,a.vF)(r.i` - :host, - :host([appearance="neutral"]) .control { - background-color: ${i.H.ButtonFace}; - border-color: ${i.H.ButtonText}; - color: ${i.H.ButtonText}; - fill: currentcolor; - } - - :host(:not([disabled][href]):hover), - :host([appearance="neutral"]:not([disabled]):hover) .control { - forced-color-adjust: none; - background-color: ${i.H.Highlight}; - color: ${i.H.HighlightText}; - } - - .control:${s.b}, - :host([appearance="outline"]) .control:${s.b}, - :host([appearance="neutral"]:${s.b}) .control { - forced-color-adjust: none; - background-color: ${i.H.Highlight}; - border-color: ${i.H.ButtonText}; - box-shadow: 0 0 0 calc((var(--focus-outline-width) - var(--outline-width)) * 1px) ${i.H.ButtonText}; - color: ${i.H.HighlightText}; - } - - .control:not([disabled]):hover, - :host([appearance="outline"]) .control:hover { - border-color: ${i.H.ButtonText}; - } - - :host([href]) .control { - border-color: ${i.H.LinkText}; - color: ${i.H.LinkText}; - } - - :host([href]) .control:hover, - :host(.neutral[href]) .control:hover, - :host(.outline[href]) .control:hover, - :host([href]) .control:${s.b}{ - forced-color-adjust: none; - background: ${i.H.ButtonFace}; - border-color: ${i.H.LinkText}; - box-shadow: 0 0 0 1px ${i.H.LinkText} inset; - color: ${i.H.LinkText}; - fill: currentcolor; - } - `)),d=r.i` - :host([appearance="accent"]) { - background: ${c.iq.var}; - color: ${c.Jd.var}; - } - - :host([appearance="accent"]:hover) { - background: ${c.En.var}; - } - - :host([appearance="accent"]:active) .control:active { - background: ${c.fE.var}; - } - - :host([appearance="accent"]) .control:${s.b} { - box-shadow: 0 0 0 calc(var(--focus-outline-width) * 1px) inset ${c.Kt.var}, 0 0 0 calc((var(--focus-outline-width) - var(--outline-width)) * 1px) ${c.cI.var} - } -`.withBehaviors(c.iq,c.Jd,c.En,c.fE,c.Kt,(0,a.vF)(r.i` - :host([appearance="accent"]) .control { - forced-color-adjust: none; - background: ${i.H.Highlight}; - color: ${i.H.HighlightText}; - } - - :host([appearance="accent"]) .control:hover, - :host([appearance="accent"]:active) .control:active { - background: ${i.H.HighlightText}; - border-color: ${i.H.Highlight}; - color: ${i.H.Highlight}; - } - - :host([appearance="accent"]) .control:${s.b} { - border-color: ${i.H.ButtonText}; - box-shadow: 0 0 0 2px ${i.H.HighlightText} inset; - } - - :host([appearance="accent"][href]) .control{ - background: ${i.H.LinkText}; - color: ${i.H.HighlightText}; - } - - :host([appearance="accent"][href]) .control:hover { - background: ${i.H.ButtonFace}; - border-color: ${i.H.LinkText}; - box-shadow: none; - color: ${i.H.LinkText}; - fill: currentcolor; - } - - :host([appearance="accent"][href]) .control:${s.b} { - border-color: ${i.H.LinkText}; - box-shadow: 0 0 0 2px ${i.H.HighlightText} inset; - } - `)),p=r.i` - :host([appearance="hypertext"]) { - height: auto; - font-size: inherit; - line-height: inherit; - background: transparent; - min-width: 0; - } - - :host([appearance="hypertext"]) .control { - display: inline; - padding: 0; - border: none; - box-shadow: none; - border-radius: 0; - line-height: 1; - } - :host a.control:not(:link) { - background-color: transparent; - cursor: default; - } - :host([appearance="hypertext"]) .control:link, - :host([appearance="hypertext"]) .control:visited { - background: transparent; - color: ${c.YK.var}; - border-bottom: calc(var(--outline-width) * 1px) solid ${c.YK.var}; - } - :host([appearance="hypertext"]) .control:hover { - border-bottom-color: ${c.gt.var}; - } - :host([appearance="hypertext"]) .control:active { - border-bottom-color: ${c._c.var}; - } - :host([appearance="hypertext"]) .control:${s.b} { - border-bottom: calc(var(--focus-outline-width) * 1px) solid ${c.cI.var}; - margin-bottom: calc(calc(var(--outline-width) - var(--focus-outline-width)) * 1px); - } -`.withBehaviors(c.YK,c.gt,c._c,c.cI,(0,a.vF)(r.i` - :host([appearance="hypertext"]) .control:${s.b} { - color: ${i.H.LinkText}; - border-bottom-color: ${i.H.LinkText}; - } - `)),h=r.i` - :host([appearance="lightweight"]) { - background: transparent; - color: ${c.YK.var}; - } - - :host([appearance="lightweight"]) .control { - padding: 0; - height: initial; - border: none; - box-shadow: none; - border-radius: 0; - } - - :host([appearance="lightweight"]:hover) { - color: ${c.gt.var}; - } - - :host([appearance="lightweight"]:active) { - color: ${c._c.var}; - } - - :host([appearance="lightweight"]) .content { - position: relative; - } - - :host([appearance="lightweight"]) .content::before { - content: ""; - display: block; - height: calc(var(--outline-width) * 1px); - position: absolute; - top: calc(1em + 3px); - width: 100%; - } - - :host([appearance="lightweight"]:hover) .content::before { - background: ${c.gt.var}; - } - - :host([appearance="lightweight"]:active) .content::before { - background: ${c._c.var}; - } - - :host([appearance="lightweight"]) .control:${s.b} .content::before { - background: ${c.sp.var}; - height: calc(var(--focus-outline-width) * 1px); - } -`.withBehaviors(c.YK,c.gt,c._c,c.gt,c.sp,(0,a.vF)(r.i` - :host([appearance="lightweight"]) { - color: ${i.H.ButtonText}; - } - :host([appearance="lightweight"]) .control:hover, - :host([appearance="lightweight"]) .control:${s.b} { - forced-color-adjust: none; - background: ${i.H.ButtonFace}; - color: ${i.H.Highlight}; - } - :host([appearance="lightweight"]) .control:hover .content::before, - :host([appearance="lightweight"]) .control:${s.b} .content::before { - background: ${i.H.Highlight}; - } - - :host([appearance="lightweight"][href]) .control:hover, - :host([appearance="lightweight"][href]) .control:${s.b} { - background: ${i.H.ButtonFace}; - box-shadow: none; - color: ${i.H.LinkText}; - } - - :host([appearance="lightweight"][href]) .control:hover .content::before, - :host([appearance="lightweight"][href]) .control:${s.b} .content::before { - background: ${i.H.LinkText}; - } - `)),f=r.i` - :host([appearance="outline"]) { - background: transparent; - border-color: ${c.Fv.var}; - } - - :host([appearance="outline"]:hover) { - border-color: ${c.Xt.var}; - } - - :host([appearance="outline"]:active) { - border-color: ${c.i2.var}; - } - - :host([appearance="outline"]) .control { - border-color: inherit; - } - - :host([appearance="outline"]) .control:${s.b} { - box-shadow: 0 0 0 calc((var(--focus-outline-width) - var(--outline-width)) * 1px) ${c.cI.var}; - border-color: ${c.cI.var}; - } -`.withBehaviors(c.Fv,c.Xt,c.i2,c.cI,(0,a.vF)(r.i` - :host([appearance='outline']) { - border-color: ${i.H.ButtonText}; - } - :host([appearance='outline'][href]) { - border-color: ${i.H.LinkText}; - } - `)),g=r.i` - :host([appearance='stealth']) { - background: ${c.Br.var}; - } - - :host([appearance='stealth']:hover) { - background: ${c.Cs.var}; - } - - :host([appearance='stealth']:active) { - background: ${c.Nv.var}; - } -`.withBehaviors(c.Br,c.Cs,c.Nv,(0,a.vF)(r.i` - :host([appearance="stealth"]), - :host([appearance="stealth"]) .control { - forced-color-adjust: none; - background: ${i.H.ButtonFace}; - border-color: transparent; - color: ${i.H.ButtonText}; - fill: currentcolor; - } - - :host([appearance="stealth"]:hover) .control { - background: ${i.H.Highlight}; - border-color: ${i.H.Highlight}; - color: ${i.H.HighlightText}; - fill: currentcolor; - } - - :host([appearance="stealth"]:${s.b}) .control { - background: ${i.H.Highlight}; - box-shadow: 0 0 0 1px ${i.H.Highlight}; - color: ${i.H.HighlightText}; - fill: currentcolor; - } - - :host([appearance="stealth"][href]) .control { - color: ${i.H.LinkText}; - } - - :host([appearance="stealth"]:hover[href]) .control, - :host([appearance="stealth"]:${s.b}[href]) .control { - background: ${i.H.LinkText}; - border-color: ${i.H.LinkText}; - color: ${i.H.HighlightText}; - fill: currentcolor; - } - - :host([appearance="stealth"]:${s.b}[href]) .control { - box-shadow: 0 0 0 1px ${i.H.LinkText}; - } - `))},45227:(t,e,n)=>{"use strict";n.d(e,{i:()=>r});const r="(var(--base-height-multiplier) + var(--density)) * var(--design-unit)"},96566:(t,e,n)=>{"use strict";if(n.d(e,{H:()=>i}),580==n.j)var r=n(45536);function i(t,e){return new r.w("appearance",t,e)}},83763:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var r=n(89526),i=n(9453);class o extends r.Component{constructor(t){super(t),this.updateBreakpoint=()=>{const t=function(t,e){for(let n=e.length-1;n>=0;n--)if(t>=e[n])return n}(window.innerWidth,o.breakpoints);this.state.activeBreakpoint!==t&&this.setState({activeBreakpoint:t}),this.openRequestAnimationFrame=!1},this.requestFrame=()=>{this.openRequestAnimationFrame||(this.openRequestAnimationFrame=!0,window.requestAnimationFrame(this.updateBreakpoint))},this.state={activeBreakpoint:null}}componentDidMount(){(0,i.N)()&&(this.updateBreakpoint(),window.addEventListener("resize",this.requestFrame))}componentWillUnmount(){(0,i.N)()&&window.removeEventListener("resize",this.requestFrame)}render(){return this.props.render(this.state.activeBreakpoint)}}o.breakpoints=[0,540,768,1084,1400,1779]},34391:(t,e,n)=>{"use strict";if(n.d(e,{ZP:()=>i}),571==n.j)var r=n(83763);const i=571==n.j?r.Z:null},81562:(t,e,n)=>{"use strict";if(n.d(e,{rp:()=>u,hM:()=>d,wo:()=>h,lw:()=>f,hP:()=>g,T8:()=>v,iI:()=>b,zP:()=>m,rD:()=>y,v1:()=>x,DR:()=>_,$2:()=>w,KW:()=>C}),/^(185|366|580|813|937)$/.test(n.j))var r=n(43184);if(/^(185|366|580|813|937)$/.test(n.j))var i=n(87041);if(/^(185|366|580|813|937)$/.test(n.j))var o=n(25699);if(/^(185|366|580|813|937)$/.test(n.j))var s=n(91728);if(!/^(183|296|717|882)$/.test(n.j))var a=n(57653);if(/^(185|366|580|813|937)$/.test(n.j))var l=n(10251);if(/^(185|366|580|813|937)$/.test(n.j))var c=n(92764);function u(t){return.2126*t.r+.7152*t.g+.0722*t.b}function d(t){function e(t){return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}return u(new a.h(e(t.r),e(t.g),e(t.b),1))}const p=(t,e)=>(t+.05)/(e+.05);function h(t,e){const n=d(t),r=d(e);return n>r?p(n,r):p(r,n)}function f(t){const e=Math.max(t.r,t.g,t.b),n=Math.min(t.r,t.g,t.b),i=e-n;let o=0;0!==i&&(o=e===t.r?(t.g-t.b)/i%6*60:e===t.g?60*((t.b-t.r)/i+2):60*((t.r-t.g)/i+4)),o<0&&(o+=360);const s=(e+n)/2;let a=0;return 0!==i&&(a=i/(1-Math.abs(2*s-1))),new r.H(o,a,s)}function g(t,e=1){const n=(1-Math.abs(2*t.l-1))*t.s,r=n*(1-Math.abs(t.h/60%2-1)),i=t.l-n/2;let o=0,s=0,l=0;return t.h<60?(o=n,s=r,l=0):t.h<120?(o=r,s=n,l=0):t.h<180?(o=0,s=n,l=r):t.h<240?(o=0,s=r,l=n):t.h<300?(o=r,s=0,l=n):t.h<360&&(o=n,s=0,l=r),new a.h(o+i,s+i,l+i,e)}function v(t){const e=Math.max(t.r,t.g,t.b),n=e-Math.min(t.r,t.g,t.b);let r=0;0!==n&&(r=e===t.r?(t.g-t.b)/n%6*60:e===t.g?60*((t.b-t.r)/n+2):60*((t.r-t.g)/n+4)),r<0&&(r+=360);let o=0;return 0!==e&&(o=n/e),new i.T(r,o,e)}function b(t,e=1){const n=t.s*t.v,r=n*(1-Math.abs(t.h/60%2-1)),i=t.v-n;let o=0,s=0,l=0;return t.h<60?(o=n,s=r,l=0):t.h<120?(o=r,s=n,l=0):t.h<180?(o=0,s=n,l=r):t.h<240?(o=0,s=r,l=n):t.h<300?(o=r,s=0,l=n):t.h<360&&(o=n,s=0,l=r),new a.h(o+i,s+i,l+i,e)}function m(t){function e(t){return t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}const n=e(t.r),r=e(t.g),i=e(t.b),o=.4124564*n+.3575761*r+.1804375*i,s=.2126729*n+.7151522*r+.072175*i,a=.0193339*n+.119192*r+.9503041*i;return new l.x(o,s,a)}function y(t,e=1){function n(t){return t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055}const r=n(3.2404542*t.x-1.5371385*t.y-.4985314*t.z),i=n(-.969266*t.x+1.8760108*t.y+.041556*t.z),o=n(.0556434*t.x-.2040259*t.y+1.0572252*t.z);return new a.h(r,i,o,e)}function x(t){return function(t){function e(t){return t>o.R.epsilon?Math.pow(t,1/3):(o.R.kappa*t+16)/116}const n=e(t.x/l.x.whitePoint.x),r=e(t.y/l.x.whitePoint.y),i=116*r-16,s=500*(n-r),a=200*(r-e(t.z/l.x.whitePoint.z));return new o.R(i,s,a)}(m(t))}function _(t,e=1){return y(function(t){const e=(t.l+16)/116,n=e+t.a/500,r=e-t.b/200,i=Math.pow(n,3),s=Math.pow(e,3),a=Math.pow(r,3);let c=0;c=i>o.R.epsilon?i:(116*n-16)/o.R.kappa;let u=0;u=t.l>o.R.epsilon*o.R.kappa?s:t.l/o.R.kappa;let d=0;return d=a>o.R.epsilon?a:(116*r-16)/o.R.kappa,c=l.x.whitePoint.x*c,u=l.x.whitePoint.y*u,d=l.x.whitePoint.z*d,new l.x(c,u,d)}(t),e)}function w(t){return function(t){let e=0;(Math.abs(t.b)>.001||Math.abs(t.a)>.001)&&(e=(0,c.vi)(Math.atan2(t.b,t.a))),e<0&&(e+=360);const n=Math.sqrt(t.a*t.a+t.b*t.b);return new s.t(t.l,n,e)}(x(t))}function C(t,e=1){return _(function(t){let e=0,n=0;return 0!==t.h&&(e=Math.cos((0,c.Ht)(t.h))*t.c,n=Math.sin((0,c.Ht)(t.h))*t.c),new o.R(t.l,e,n)}(t),e)}},43184:(t,e,n)=>{"use strict";if(n.d(e,{H:()=>i}),/^(185|366|580|813|937)$/.test(n.j))var r=n(92764);class i{constructor(t,e,n){this.h=t,this.s=e,this.l=n}static fromObject(t){return!t||isNaN(t.h)||isNaN(t.s)||isNaN(t.l)?null:new i(t.h,t.s,t.l)}equalValue(t){return this.h===t.h&&this.s===t.s&&this.l===t.l}roundToPrecision(t){return new i((0,r.fZ)(this.h,t),(0,r.fZ)(this.s,t),(0,r.fZ)(this.l,t))}toObject(){return{h:this.h,s:this.s,l:this.l}}}},87041:(t,e,n)=>{"use strict";if(n.d(e,{T:()=>i}),/^(185|366|580|813|937)$/.test(n.j))var r=n(92764);class i{constructor(t,e,n){this.h=t,this.s=e,this.v=n}static fromObject(t){return!t||isNaN(t.h)||isNaN(t.s)||isNaN(t.v)?null:new i(t.h,t.s,t.v)}equalValue(t){return this.h===t.h&&this.s===t.s&&this.v===t.v}roundToPrecision(t){return new i((0,r.fZ)(this.h,t),(0,r.fZ)(this.s,t),(0,r.fZ)(this.v,t))}toObject(){return{h:this.h,s:this.s,v:this.v}}}},25919:(t,e,n)=>{"use strict";if(n.d(e,{Lm:()=>d,JN:()=>p}),/^(185|366|580|813|937)$/.test(n.j))var r=n(81562);if(/^(185|366|580|813|937)$/.test(n.j))var i=n(43184);if(/^(185|366|580|813|937)$/.test(n.j))var o=n(87041);if(/^(185|366|580|813|937)$/.test(n.j))var s=n(25699);if(/^(185|366|580|813|937)$/.test(n.j))var a=n(91728);if(/^(185|366|580|813|937)$/.test(n.j))var l=n(57653);if(/^(185|366|580|813|937)$/.test(n.j))var c=n(10251);if(/^(185|366|580|813|937)$/.test(n.j))var u=n(92764);var d;function p(t,e,n,p){if(isNaN(t)||t<=0)return n;if(t>=1)return p;switch(e){case d.HSL:return(0,r.hP)(function(t,e,n){return isNaN(t)||t<=0?e:t>=1?n:new i.H((0,u.AG)(t,e.h,n.h),(0,u.t7)(t,e.s,n.s),(0,u.t7)(t,e.l,n.l))}(t,(0,r.lw)(n),(0,r.lw)(p)));case d.HSV:return(0,r.iI)(function(t,e,n){return isNaN(t)||t<=0?e:t>=1?n:new o.T((0,u.AG)(t,e.h,n.h),(0,u.t7)(t,e.s,n.s),(0,u.t7)(t,e.v,n.v))}(t,(0,r.T8)(n),(0,r.T8)(p)));case d.XYZ:return(0,r.rD)(function(t,e,n){return isNaN(t)||t<=0?e:t>=1?n:new c.x((0,u.t7)(t,e.x,n.x),(0,u.t7)(t,e.y,n.y),(0,u.t7)(t,e.z,n.z))}(t,(0,r.zP)(n),(0,r.zP)(p)));case d.LAB:return(0,r.DR)(function(t,e,n){return isNaN(t)||t<=0?e:t>=1?n:new s.R((0,u.t7)(t,e.l,n.l),(0,u.t7)(t,e.a,n.a),(0,u.t7)(t,e.b,n.b))}(t,(0,r.v1)(n),(0,r.v1)(p)));case d.LCH:return(0,r.KW)(function(t,e,n){return isNaN(t)||t<=0?e:t>=1?n:new a.t((0,u.t7)(t,e.l,n.l),(0,u.t7)(t,e.c,n.c),(0,u.AG)(t,e.h,n.h))}(t,(0,r.$2)(n),(0,r.$2)(p)));default:return function(t,e,n){return isNaN(t)||t<=0?e:t>=1?n:new l.h((0,u.t7)(t,e.r,n.r),(0,u.t7)(t,e.g,n.g),(0,u.t7)(t,e.b,n.b),(0,u.t7)(t,e.a,n.a))}(t,n,p)}}!function(t){t[t.RGB=0]="RGB",t[t.HSL=1]="HSL",t[t.HSV=2]="HSV",t[t.XYZ=3]="XYZ",t[t.LAB=4]="LAB",t[t.LCH=5]="LCH"}(d||(d={}))},25699:(t,e,n)=>{"use strict";n.d(e,{R:()=>i});var r=n(92764);class i{constructor(t,e,n){this.l=t,this.a=e,this.b=n}static fromObject(t){return!t||isNaN(t.l)||isNaN(t.a)||isNaN(t.b)?null:new i(t.l,t.a,t.b)}equalValue(t){return this.l===t.l&&this.a===t.a&&this.b===t.b}roundToPrecision(t){return new i((0,r.fZ)(this.l,t),(0,r.fZ)(this.a,t),(0,r.fZ)(this.b,t))}toObject(){return{l:this.l,a:this.a,b:this.b}}}i.epsilon=216/24389,i.kappa=24389/27},91728:(t,e,n)=>{"use strict";if(n.d(e,{t:()=>i}),/^(185|366|580|813|937)$/.test(n.j))var r=n(92764);class i{constructor(t,e,n){this.l=t,this.c=e,this.h=n}static fromObject(t){return!t||isNaN(t.l)||isNaN(t.c)||isNaN(t.h)?null:new i(t.l,t.c,t.h)}equalValue(t){return this.l===t.l&&this.c===t.c&&this.h===t.h}roundToPrecision(t){return new i((0,r.fZ)(this.l,t),(0,r.fZ)(this.c,t),(0,r.fZ)(this.h,t))}toObject(){return{l:this.l,c:this.c,h:this.h}}}},57653:(t,e,n)=>{"use strict";if(n.d(e,{h:()=>i}),!/^(183|296|717|882)$/.test(n.j))var r=n(92764);class i{constructor(t,e,n,r){this.r=t,this.g=e,this.b=n,this.a="number"!=typeof r||isNaN(r)?1:r}static fromObject(t){return!t||isNaN(t.r)||isNaN(t.g)||isNaN(t.b)?null:new i(t.r,t.g,t.b,t.a)}equalValue(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}toStringHexRGB(){return"#"+[this.r,this.g,this.b].map(this.formatHexValue).join("")}toStringHexRGBA(){return this.toStringHexRGB()+this.formatHexValue(this.a)}toStringHexARGB(){return"#"+[this.a,this.r,this.g,this.b].map(this.formatHexValue).join("")}toStringWebRGB(){return`rgb(${Math.round((0,r.cY)(this.r,0,255))},${Math.round((0,r.cY)(this.g,0,255))},${Math.round((0,r.cY)(this.b,0,255))})`}toStringWebRGBA(){return`rgba(${Math.round((0,r.cY)(this.r,0,255))},${Math.round((0,r.cY)(this.g,0,255))},${Math.round((0,r.cY)(this.b,0,255))},${(0,r.uZ)(this.a,0,1)})`}roundToPrecision(t){return new i((0,r.fZ)(this.r,t),(0,r.fZ)(this.g,t),(0,r.fZ)(this.b,t),(0,r.fZ)(this.a,t))}clamp(){return new i((0,r.uZ)(this.r,0,1),(0,r.uZ)(this.g,0,1),(0,r.uZ)(this.b,0,1),(0,r.uZ)(this.a,0,1))}toObject(){return{r:this.r,g:this.g,b:this.b,a:this.a}}formatHexValue(t){return(0,r.yi)((0,r.cY)(t,0,255))}}},10251:(t,e,n)=>{"use strict";n.d(e,{x:()=>i});var r=n(92764);class i{constructor(t,e,n){this.x=t,this.y=e,this.z=n}static fromObject(t){return!t||isNaN(t.x)||isNaN(t.y)||isNaN(t.z)?null:new i(t.x,t.y,t.z)}equalValue(t){return this.x===t.x&&this.y===t.y&&this.z===t.z}roundToPrecision(t){return new i((0,r.fZ)(this.x,t),(0,r.fZ)(this.y,t),(0,r.fZ)(this.z,t))}toObject(){return{x:this.x,y:this.y,z:this.z}}}i.whitePoint=new i(.95047,1,1.08883)},73446:(t,e,n)=>{"use strict";n.d(e,{b:()=>m});var r,i=n(57653),o=n(81562),s=n(91728),a=n(92764);function l(t,e,n=18){const r=(0,o.$2)(t);let i=r.c+e*n;return i<0&&(i=0),(0,o.KW)(new s.t(r.l,i,r.h))}function c(t,e){return t*e}function u(t,e){return new i.h(c(t.r,e.r),c(t.g,e.g),c(t.b,e.b),1)}function d(t,e){return t<.5?(0,a.uZ)(2*e*t,0,1):(0,a.uZ)(1-2*(1-e)*(1-t),0,1)}function p(t,e){return new i.h(d(t.r,e.r),d(t.g,e.g),d(t.b,e.b),1)}!function(t){t[t.Burn=0]="Burn",t[t.Color=1]="Color",t[t.Darken=2]="Darken",t[t.Dodge=3]="Dodge",t[t.Lighten=4]="Lighten",t[t.Multiply=5]="Multiply",t[t.Overlay=6]="Overlay",t[t.Screen=7]="Screen"}(r||(r={}));var h=n(25919);class f{constructor(t){if(null==t||0===t.length)throw new Error("The stops argument must be non-empty");this.stops=this.sortColorScaleStops(t)}static createBalancedColorScale(t){if(null==t||0===t.length)throw new Error("The colors argument must be non-empty");const e=new Array(t.length);for(let n=0;n<t.length;n++)0===n?e[n]={color:t[n],position:0}:n===t.length-1?e[n]={color:t[n],position:1}:e[n]={color:t[n],position:n*(1/(t.length-1))};return new f(e)}getColor(t,e=h.Lm.RGB){if(1===this.stops.length)return this.stops[0].color;if(t<=0)return this.stops[0].color;if(t>=1)return this.stops[this.stops.length-1].color;let n=0;for(let e=0;e<this.stops.length;e++)this.stops[e].position<=t&&(n=e);let r=n+1;r>=this.stops.length&&(r=this.stops.length-1);const i=(t-this.stops[n].position)*(1/(this.stops[r].position-this.stops[n].position));return(0,h.JN)(i,e,this.stops[n].color,this.stops[r].color)}trim(t,e,n=h.Lm.RGB){if(t<0||e>1||e<t)throw new Error("Invalid bounds");if(t===e)return new f([{color:this.getColor(t,n),position:0}]);const r=[];for(let n=0;n<this.stops.length;n++)this.stops[n].position>=t&&this.stops[n].position<=e&&r.push(this.stops[n]);if(0===r.length)return new f([{color:this.getColor(t),position:t},{color:this.getColor(e),position:e}]);r[0].position!==t&&r.unshift({color:this.getColor(t),position:t}),r[r.length-1].position!==e&&r.push({color:this.getColor(e),position:e});const i=e-t,o=new Array(r.length);for(let e=0;e<r.length;e++)o[e]={color:r[e].color,position:(r[e].position-t)/i};return new f(o)}findNextColor(t,e,n=!1,r=h.Lm.RGB,i=.005,s=32){isNaN(t)||t<=0?t=0:t>=1&&(t=1);const a=this.getColor(t,r),l=n?0:1,c=this.getColor(l,r);if((0,o.wo)(a,c)<=e)return l;let u=n?0:t,d=n?t:0,p=l,f=0;for(;f<=s;){p=Math.abs(d-u)/2+u;const t=this.getColor(p,r),s=(0,o.wo)(a,t);if(Math.abs(s-e)<=i)return p;s>e?n?u=p:d=p:n?d=p:u=p,f++}return p}clone(){const t=new Array(this.stops.length);for(let e=0;e<t.length;e++)t[e]={color:this.stops[e].color,position:this.stops[e].position};return new f(t)}sortColorScaleStops(t){return t.sort(((t,e)=>{const n=t.position,r=e.position;return n<r?-1:n>r?1:0}))}}var g=n(52502);class v{constructor(t){this.config=Object.assign({},v.defaultPaletteConfig,t),this.palette=[],this.updatePaletteColors()}updatePaletteGenerationValues(t){let e=!1;for(const n in t)this.config[n]&&(this.config[n].equalValue?this.config[n].equalValue(t[n])||(this.config[n]=t[n],e=!0):t[n]!==this.config[n]&&(this.config[n]=t[n],e=!0));return e&&this.updatePaletteColors(),e}updatePaletteColors(){const t=this.generatePaletteColorScale();for(let e=0;e<this.config.steps;e++)this.palette[e]=t.getColor(e/(this.config.steps-1),this.config.interpolationMode)}generatePaletteColorScale(){const t=(0,o.lw)(this.config.baseColor),e=new f([{position:0,color:this.config.scaleColorLight},{position:.5,color:this.config.baseColor},{position:1,color:this.config.scaleColorDark}]).trim(this.config.clipLight,1-this.config.clipDark);let n=e.getColor(0),r=e.getColor(1);if(t.s>=this.config.saturationAdjustmentCutoff&&(n=l(n,this.config.saturationLight),r=l(r,this.config.saturationDark)),0!==this.config.multiplyLight){const t=u(this.config.baseColor,n);n=(0,h.JN)(this.config.multiplyLight,this.config.interpolationMode,n,t)}if(0!==this.config.multiplyDark){const t=u(this.config.baseColor,r);r=(0,h.JN)(this.config.multiplyDark,this.config.interpolationMode,r,t)}if(0!==this.config.overlayLight){const t=p(this.config.baseColor,n);n=(0,h.JN)(this.config.overlayLight,this.config.interpolationMode,n,t)}if(0!==this.config.overlayDark){const t=p(this.config.baseColor,r);r=(0,h.JN)(this.config.overlayDark,this.config.interpolationMode,r,t)}return this.config.baseScalePosition?this.config.baseScalePosition<=0?new f([{position:0,color:this.config.baseColor},{position:1,color:r.clamp()}]):this.config.baseScalePosition>=1?new f([{position:0,color:n.clamp()},{position:1,color:this.config.baseColor}]):new f([{position:0,color:n.clamp()},{position:this.config.baseScalePosition,color:this.config.baseColor},{position:1,color:r.clamp()}]):new f([{position:0,color:n.clamp()},{position:.5,color:this.config.baseColor},{position:1,color:r.clamp()}])}}v.defaultPaletteConfig={baseColor:(0,g.in)("#808080"),steps:11,interpolationMode:h.Lm.RGB,scaleColorLight:new i.h(1,1,1,1),scaleColorDark:new i.h(0,0,0,1),clipLight:.185,clipDark:.16,saturationAdjustmentCutoff:.05,saturationLight:.35,saturationDark:1.25,overlayLight:0,overlayDark:.25,multiplyLight:0,multiplyDark:0,baseScalePosition:.5},v.greyscalePaletteConfig={baseColor:(0,g.in)("#808080"),steps:11,interpolationMode:h.Lm.RGB,scaleColorLight:new i.h(1,1,1,1),scaleColorDark:new i.h(0,0,0,1),clipLight:0,clipDark:0,saturationAdjustmentCutoff:0,saturationLight:0,saturationDark:0,overlayLight:0,overlayDark:0,multiplyLight:0,multiplyDark:0,baseScalePosition:.5};v.defaultPaletteConfig.scaleColorLight,v.defaultPaletteConfig.scaleColorDark;var b=n(43184);class m{constructor(t){this.palette=[],this.config=Object.assign({},m.defaultPaletteConfig,t),this.regenPalettes()}regenPalettes(){let t=this.config.steps;(isNaN(t)||t<3)&&(t=3);const e=.14,n=new i.h(e,e,e,1),r=new v(Object.assign(Object.assign({},v.greyscalePaletteConfig),{baseColor:n,baseScalePosition:86/94,steps:t})).palette,s=((0,o.rp)(this.config.baseColor)+(0,o.lw)(this.config.baseColor).l)/2,a=this.matchRelativeLuminanceIndex(s,r)/(t-1),l=this.matchRelativeLuminanceIndex(e,r)/(t-1),c=(0,o.lw)(this.config.baseColor),u=(0,o.hP)(b.H.fromObject({h:c.h,s:c.s,l:e})),d=(0,o.hP)(b.H.fromObject({h:c.h,s:c.s,l:.06})),p=new Array(5);p[0]={position:0,color:new i.h(1,1,1,1)},p[1]={position:a,color:this.config.baseColor},p[2]={position:l,color:u},p[3]={position:.99,color:d},p[4]={position:1,color:new i.h(0,0,0,1)};const g=new f(p);this.palette=new Array(t);for(let e=0;e<t;e++){const n=g.getColor(e/(t-1),h.Lm.RGB);this.palette[e]=n}}matchRelativeLuminanceIndex(t,e){let n=Number.MAX_VALUE,r=0,i=0;const s=e.length;for(;i<s;i++){const s=Math.abs((0,o.rp)(e[i])-t);s<n&&(n=s,r=i)}return r}}m.defaultPaletteConfig={baseColor:(0,g.in)("#808080"),steps:94}},92764:(t,e,n)=>{"use strict";function r(t,e,n){return isNaN(t)||t<=e?e:t>=n?n:t}function i(t,e,n){return isNaN(t)||t<=e?0:t>=n?1:t/(n-e)}function o(t,e,n){return isNaN(t)?e:e+t*(n-e)}function s(t){return t*(Math.PI/180)}function a(t){return t*(180/Math.PI)}function l(t){const e=Math.round(r(t,0,255)).toString(16);return 1===e.length?"0"+e:e}function c(t,e,n){return isNaN(t)||t<=0?e:t>=1?n:e+t*(n-e)}function u(t,e,n){if(t<=0)return e%360;if(t>=1)return n%360;const r=(e-n+360)%360;return r<=(n-e+360)%360?(e-r*t+360)%360:(e+r*t+360)%360}n.d(e,{uZ:()=>r,Fv:()=>i,cY:()=>o,Ht:()=>s,vi:()=>a,yi:()=>l,t7:()=>c,AG:()=>u,fZ:()=>d});Math.PI;function d(t,e){const n=Math.pow(10,e);return Math.round(t*n)/n}},52502:(t,e,n)=>{"use strict";if(n.d(e,{pJ:()=>a,b4:()=>l,in:()=>c,hg:()=>u}),!/^(183|296|717|882)$/.test(n.j))var r=n(57653);if(!/^(183|296|717|882)$/.test(n.j))var i=n(92764);const o=/^rgb\(\s*((?:(?:25[0-5]|2[0-4]\d|1\d\d|\d{1,2})\s*,\s*){2}(?:25[0-5]|2[0-4]\d|1\d\d|\d{1,2})\s*)\)$/i,s=/^#((?:[0-9a-f]{6}|[0-9a-f]{3}))$/i;function a(t){return s.test(t)}function l(t){return o.test(t)}function c(t){const e=s.exec(t);if(null===e)return null;let n=e[1];if(3===n.length){const t=n.charAt(0),e=n.charAt(1),r=n.charAt(2);n=t.concat(t,e,e,r,r)}const o=parseInt(n,16);return isNaN(o)?null:new r.h((0,i.Fv)((16711680&o)>>>16,0,255),(0,i.Fv)((65280&o)>>>8,0,255),(0,i.Fv)(255&o,0,255),1)}function u(t){const e=o.exec(t);if(null===e)return null;const n=e[1].split(",");return new r.h((0,i.Fv)(Number(n[0]),0,255),(0,i.Fv)(Number(n[1]),0,255),(0,i.Fv)(Number(n[2]),0,255),1)}},29163:(t,e,n)=>{"use strict";if(n.d(e,{bw:()=>o,Id:()=>s,so:()=>a,Lj:()=>l}),580==n.j)var r=n(58520);if(580==n.j)var i=n(45930);const o={toView:t=>t?"true":"false",fromView:t=>null!=t&&"false"!==t&&!1!==t&&0!==t},s={toView(t){if(null==t)return null;const e=1*t;return isNaN(e)?null:e.toString()},fromView(t){if(null==t)return null;const e=1*t;return isNaN(e)?null:e}};class a{constructor(t,e,n=e.toLowerCase(),r="reflect",i){this.guards=new Set,this.Owner=t,this.name=e,this.attribute=n,this.mode=r,this.converter=i,this.fieldName=`_${e}`,this.callbackName=`${e}Changed`,this.hasCallback=this.callbackName in t.prototype,"boolean"===r&&void 0===i&&(this.converter=o)}setValue(t,e){const n=t[this.fieldName],r=this.converter;void 0!==r&&(e=r.fromView(e)),n!==e&&(t[this.fieldName]=e,this.tryReflectToAttribute(t),this.hasCallback&&t[this.callbackName](n,e),t.$fastController.notify(this.name))}getValue(t){return r.y$.track(t,this.name),t[this.fieldName]}onAttributeChangedCallback(t,e){this.guards.has(t)||(this.guards.add(t),this.setValue(t,e),this.guards.delete(t))}tryReflectToAttribute(t){const e=this.mode,n=this.guards;n.has(t)||"fromView"===e||i.SO.queueUpdate((()=>{n.add(t);const r=t[this.fieldName];switch(e){case"reflect":const e=this.converter;i.SO.setAttribute(t,this.attribute,void 0!==e?e.toView(r):r);break;case"boolean":i.SO.setBooleanAttribute(t,this.attribute,r)}n.delete(t)}))}static collect(t,...e){const n=[];e.push(t.attributes);for(let r=0,i=e.length;r<i;++r){const i=e[r];if(void 0!==i)for(let e=0,r=i.length;e<r;++e){const r=i[e];"string"==typeof r?n.push(new a(t,r)):n.push(new a(t,r.property,r.attribute,r.mode,r.converter))}}return n}}function l(t,e){let n;function r(t,e){arguments.length>1&&(n.property=e);const r=t.constructor.attributes||(t.constructor.attributes=[]);r.push(n)}return arguments.length>1?(n={},void r(t,e)):(n=void 0===t?{}:t,r)}},32164:(t,e,n)=>{"use strict";if(n.d(e,{W:()=>c}),580==n.j)var r=n(58520);if(580==n.j)var i=n(78497);if(580==n.j)var o=n(29163);const s={mode:"open"},a={},l=new Map;class c{constructor(t,e=t.definition){"string"==typeof e&&(e={name:e}),this.type=t,this.name=e.name,this.template=e.template;const n=o.so.collect(t,e.attributes),r=new Array(n.length),l={},c={};for(let t=0,e=n.length;t<e;++t){const e=n[t];r[t]=e.attribute,l[e.name]=e,c[e.attribute]=e}this.attributes=n,this.observedAttributes=r,this.propertyLookup=l,this.attributeLookup=c,this.shadowOptions=void 0===e.shadowOptions?s:null===e.shadowOptions?void 0:Object.assign(Object.assign({},s),e.shadowOptions),this.elementOptions=void 0===e.elementOptions?a:Object.assign(Object.assign({},a),e.elementOptions),this.styles=void 0===e.styles?void 0:Array.isArray(e.styles)?i.XL.create(e.styles):e.styles instanceof i.XL?e.styles:i.XL.create([e.styles])}define(t=customElements){const e=this.type;if(!this.isDefined){const t=this.attributes,n=e.prototype;for(let e=0,i=t.length;e<i;++e)r.y$.defineProperty(n,t[e]);Reflect.defineProperty(e,"observedAttributes",{value:this.observedAttributes,enumerable:!0}),l.set(e,this),this.isDefined=!0}return t.get(this.name)||t.define(this.name,e,this.elementOptions),this}static forType(t){return l.get(t)}}},65226:(t,e,n)=>{"use strict";n.d(e,{H:()=>p,M:()=>h});var r=n(45930),i=n(81249),o=n(58520),s=n(32164);const a=new WeakMap,l={bubbles:!0,composed:!0,cancelable:!0};function c(t){return t.shadowRoot||a.get(t)||null}class u extends i.A{constructor(t,e){super(t),this.boundObservables=null,this.behaviors=null,this.needsInitialization=!0,this._template=null,this._styles=null,this._isConnected=!1,this.view=null,this.element=t,this.definition=e;const n=e.shadowOptions;if(void 0!==n){const e=t.attachShadow(n);"closed"===n.mode&&a.set(t,e)}const r=o.y$.getAccessors(t);if(r.length>0){const e=this.boundObservables=Object.create(null);for(let n=0,i=r.length;n<i;++n){const i=r[n].name,o=t[i];void 0!==o&&(delete t[i],e[i]=o)}}}get isConnected(){return o.y$.track(this,"isConnected"),this._isConnected}setIsConnected(t){this._isConnected=t,o.y$.notify(this,"isConnected")}get template(){return this._template}set template(t){this._template!==t&&(this._template=t,this.needsInitialization||this.renderTemplate(t))}get styles(){return this._styles}set styles(t){this._styles!==t&&(null!==this._styles&&this.removeStyles(this._styles),this._styles=t,this.needsInitialization||null===t||this.addStyles(t))}addStyles(t){const e=c(this.element)||this.element.getRootNode();if(t instanceof HTMLStyleElement)e.prepend(t);else if(!t.isAttachedTo(e)){const n=t.behaviors;t.addStylesTo(e),null!==n&&this.addBehaviors(n)}}removeStyles(t){const e=c(this.element)||this.element.getRootNode();if(t instanceof HTMLStyleElement)e.removeChild(t);else if(t.isAttachedTo(e)){const n=t.behaviors;t.removeStylesFrom(e),null!==n&&this.removeBehaviors(n)}}addBehaviors(t){const e=this.behaviors||(this.behaviors=new Map),n=t.length,r=[];for(let i=0;i<n;++i){const n=t[i];e.has(n)?e.set(n,e.get(n)+1):(e.set(n,1),r.push(n))}if(this._isConnected){const t=this.element;for(let e=0;e<r.length;++e)r[e].bind(t,o.Wp)}}removeBehaviors(t,e=!1){const n=this.behaviors;if(null===n)return;const r=t.length,i=[];for(let o=0;o<r;++o){const r=t[o];if(n.has(r)){const t=n.get(r)-1;0===t||e?n.delete(r)&&i.push(r):n.set(r,t)}}if(this._isConnected){const t=this.element;for(let e=0;e<i.length;++e)i[e].unbind(t)}}onConnectedCallback(){if(this._isConnected)return;const t=this.element;this.needsInitialization?this.finishInitialization():null!==this.view&&this.view.bind(t,o.Wp);const e=this.behaviors;if(null!==e)for(const[n]of e)n.bind(t,o.Wp);this.setIsConnected(!0)}onDisconnectedCallback(){if(!this._isConnected)return;this.setIsConnected(!1);const t=this.view;null!==t&&t.unbind();const e=this.behaviors;if(null!==e){const t=this.element;for(const[n]of e)n.unbind(t)}}onAttributeChangedCallback(t,e,n){const r=this.definition.attributeLookup[t];void 0!==r&&r.onAttributeChangedCallback(this.element,n)}emit(t,e,n){return!!this._isConnected&&this.element.dispatchEvent(new CustomEvent(t,Object.assign(Object.assign({detail:e},l),n)))}finishInitialization(){const t=this.element,e=this.boundObservables;if(null!==e){const n=Object.keys(e);for(let r=0,i=n.length;r<i;++r){const i=n[r];t[i]=e[i]}this.boundObservables=null}const n=this.definition;null===this._template&&(this.element.resolveTemplate?this._template=this.element.resolveTemplate():n.template&&(this._template=n.template||null)),null!==this._template&&this.renderTemplate(this._template),null===this._styles&&(this.element.resolveStyles?this._styles=this.element.resolveStyles():n.styles&&(this._styles=n.styles||null)),null!==this._styles&&this.addStyles(this._styles),this.needsInitialization=!1}renderTemplate(t){const e=this.element,n=c(e)||e;null!==this.view?(this.view.dispose(),this.view=null):this.needsInitialization||r.SO.removeChildNodes(n),t&&(this.view=t.render(e,n,e))}static forCustomElement(t){const e=t.$fastController;if(void 0!==e)return e;const n=s.W.forType(t.constructor);if(void 0===n)throw new Error("Missing FASTElement definition.");return t.$fastController=new u(t,n)}}function d(t){return class extends t{constructor(){super(),u.forCustomElement(this)}$emit(t,e,n){return this.$fastController.emit(t,e,n)}connectedCallback(){this.$fastController.onConnectedCallback()}disconnectedCallback(){this.$fastController.onDisconnectedCallback()}attributeChangedCallback(t,e,n){this.$fastController.onAttributeChangedCallback(t,e,n)}}}const p=Object.assign(d(HTMLElement),{from:t=>d(t),define:(t,e)=>new s.W(t,e).define().type});function h(t){return function(e){new s.W(e,t).define()}}},45930:(t,e,n)=>{"use strict";n.d(e,{pc:()=>c,Yl:()=>u,SO:()=>d});var r=n(51306);const i=[],o=r.P.trustedTypes.createPolicy("fast-html",{createHTML:t=>t});let s=o;function a(){let t=0;for(;t<i.length;){if(i[t].call(),t++,t>1024){for(let e=0,n=i.length-t;e<n;e++)i[e]=i[e+t];i.length-=t,t=0}}i.length=0}const l=`fast-${Math.random().toString(36).substring(2,8)}`,c=`${l}{`,u=`}${l}`,d=Object.freeze({supportsAdoptedStyleSheets:Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype,setHTMLPolicy(t){if(s!==o)throw new Error("The HTML policy can only be set once.");s=t},createHTML:t=>s.createHTML(t),isMarker:t=>t&&8===t.nodeType&&t.data.startsWith(l),extractDirectiveIndexFromMarker:t=>parseInt(t.data.replace(`${l}:`,"")),createInterpolationPlaceholder:t=>`${c}${t}${u}`,createCustomAttributePlaceholder(t,e){return`${t}="${this.createInterpolationPlaceholder(e)}"`},createBlockPlaceholder:t=>`\x3c!--${l}:${t}--\x3e`,queueUpdate(t){i.length<1&&window.requestAnimationFrame(a),i.push(t)},nextUpdate:()=>new Promise((t=>{d.queueUpdate(t)})),setAttribute(t,e,n){null==n?t.removeAttribute(e):t.setAttribute(e,n)},setBooleanAttribute(t,e,n){n?t.setAttribute(e,""):t.removeAttribute(e)},removeChildNodes(t){for(let e=t.firstChild;null!==e;e=t.firstChild)t.removeChild(e)},createTemplateWalker:t=>document.createTreeWalker(t,133,null,!1)})},7164:(t,e,n)=>{"use strict";if(n.d(e,{i_:()=>i,Ll:()=>o,av:()=>l}),580==n.j)var r=n(51306);function i(t,e,n){return{index:t,removed:e,addedCount:n}}function o(t,e,n,o,s,a){let l=0,c=0;const u=Math.min(n-e,a-s);if(0===e&&0===s&&(l=function(t,e,n){for(let r=0;r<n;++r)if(t[r]!==e[r])return r;return n}(t,o,u)),n===t.length&&a===o.length&&(c=function(t,e,n){let r=t.length,i=e.length,o=0;for(;o<n&&t[--r]===e[--i];)o++;return o}(t,o,u-l)),s+=l,a-=c,(n-=c)-(e+=l)==0&&a-s==0)return r.o;if(e===n){const t=i(e,[],0);for(;s<a;)t.removed.push(o[s++]);return[t]}if(s===a)return[i(e,[],n-e)];const d=function(t){let e=t.length-1,n=t[0].length-1,r=t[e][n];const i=[];for(;e>0||n>0;){if(0===e){i.push(2),n--;continue}if(0===n){i.push(3),e--;continue}const o=t[e-1][n-1],s=t[e-1][n],a=t[e][n-1];let l;l=s<a?s<o?s:o:a<o?a:o,l===o?(o===r?i.push(0):(i.push(1),r=o),e--,n--):l===s?(i.push(3),e--,r=s):(i.push(2),n--,r=a)}return i.reverse(),i}(function(t,e,n,r,i,o){const s=o-i+1,a=n-e+1,l=new Array(s);let c,u;for(let t=0;t<s;++t)l[t]=new Array(a),l[t][0]=t;for(let t=0;t<a;++t)l[0][t]=t;for(let n=1;n<s;++n)for(let o=1;o<a;++o)t[e+o-1]===r[i+n-1]?l[n][o]=l[n-1][o-1]:(c=l[n-1][o]+1,u=l[n][o-1]+1,l[n][o]=c<u?c:u);return l}(t,e,n,o,s,a)),p=[];let h,f=e,g=s;for(let t=0;t<d.length;++t)switch(d[t]){case 0:void 0!==h&&(p.push(h),h=void 0),f++,g++;break;case 1:void 0===h&&(h=i(f,[],0)),h.addedCount++,f++,h.removed.push(o[g]),g++;break;case 2:void 0===h&&(h=i(f,[],0)),h.addedCount++,f++;break;case 3:void 0===h&&(h=i(f,[],0)),h.removed.push(o[g]),g++}return void 0!==h&&p.push(h),p}const s=Array.prototype.push;function a(t,e,n,r){const o=i(e,n,r);let a=!1,l=0;for(let e=0;e<t.length;e++){const n=t[e];if(n.index+=l,a)continue;const r=(c=o.index,u=o.index+o.removed.length,d=n.index,p=n.index+n.addedCount,u<d||p<c?-1:u===d||p===c?0:c<d?u<p?u-d:p-d:p<u?p-c:u-c);if(r>=0){t.splice(e,1),e--,l-=n.addedCount-n.removed.length,o.addedCount+=n.addedCount-r;const i=o.removed.length+n.removed.length-r;if(o.addedCount||i){let t=n.removed;if(o.index<n.index){const e=o.removed.slice(0,n.index-o.index);s.apply(e,t),t=e}if(o.index+o.removed.length>n.index+n.addedCount){const e=o.removed.slice(n.index+n.addedCount-o.index);s.apply(t,e)}o.removed=t,n.index<o.index&&(o.index=n.index)}else a=!0}else if(o.index<n.index){a=!0,t.splice(e,0,o),e++;const r=o.addedCount-o.removed.length;n.index+=r,l+=r}}var c,u,d,p;a||t.push(o)}function l(t,e){let n=[];const r=function(t){const e=[];for(let n=0,r=t.length;n<r;n++){const r=t[n];a(e,r.index,r.removed,r.addedCount)}return e}(e);for(let e=0,i=r.length;e<i;++e){const i=r[e];1!==i.addedCount||1!==i.removed.length?n=n.concat(o(t,i.index,i.index+i.addedCount,i.removed,0,i.removed.length)):i.removed[0]!==t[i.index]&&n.push(i)}return n}},33465:(t,e,n)=>{"use strict";if(n.d(e,{F:()=>u}),580==n.j)var r=n(45930);if(580==n.j)var i=n(7164);if(580==n.j)var o=n(81249);if(580==n.j)var s=n(58520);let a=!1;function l(t,e){let n=t.index;const r=e.length;return n>r?n=r-t.addedCount:n<0&&(n=r+t.removed.length+n-t.addedCount),n<0&&(n=0),t.index=n,t}class c extends(580==n.j?o.q:null){constructor(t){super(t),this.oldCollection=void 0,this.splices=void 0,this.needsQueue=!0,this.call=this.flush,t.$fastController=this}addSplice(t){void 0===this.splices?this.splices=[t]:this.splices.push(t),this.needsQueue&&(this.needsQueue=!1,r.SO.queueUpdate(this))}reset(t){this.oldCollection=t,this.needsQueue&&(this.needsQueue=!1,r.SO.queueUpdate(this))}flush(){const t=this.splices,e=this.oldCollection;if(void 0===t&&void 0===e)return;this.needsQueue=!0,this.splices=void 0,this.oldCollection=void 0;const n=void 0===e?(0,i.av)(this.source,t):(0,i.Ll)(this.source,0,this.source.length,e,0,e.length);this.notify(n)}}function u(){if(a)return;a=!0,s.y$.setArrayObserverFactory((t=>new c(t)));const t=Array.prototype,e=t.pop,n=t.push,r=t.reverse,o=t.shift,u=t.sort,d=t.splice,p=t.unshift;t.pop=function(){const t=this.length>0,n=e.apply(this,arguments),r=this.$fastController;return void 0!==r&&t&&r.addSplice((0,i.i_)(this.length,[n],0)),n},t.push=function(){const t=n.apply(this,arguments),e=this.$fastController;return void 0!==e&&e.addSplice(l((0,i.i_)(this.length-arguments.length,[],arguments.length),this)),t},t.reverse=function(){let t;const e=this.$fastController;void 0!==e&&(e.flush(),t=this.slice());const n=r.apply(this,arguments);return void 0!==e&&e.reset(t),n},t.shift=function(){const t=this.length>0,e=o.apply(this,arguments),n=this.$fastController;return void 0!==n&&t&&n.addSplice((0,i.i_)(0,[e],0)),e},t.sort=function(){let t;const e=this.$fastController;void 0!==e&&(e.flush(),t=this.slice());const n=u.apply(this,arguments);return void 0!==e&&e.reset(t),n},t.splice=function(){const t=d.apply(this,arguments),e=this.$fastController;return void 0!==e&&e.addSplice(l((0,i.i_)(+arguments[0],t,arguments.length>2?arguments.length-2:0),this)),t},t.unshift=function(){const t=p.apply(this,arguments),e=this.$fastController;return void 0!==e&&e.addSplice(l((0,i.i_)(0,[],arguments.length),this)),t}}},81249:(t,e,n)=>{"use strict";function r(t){const e=this.spillover;-1===e.indexOf(t)&&e.push(t)}function i(t){const e=this.spillover,n=e.indexOf(t);-1!==n&&e.splice(n,1)}function o(t){const e=this.spillover,n=this.source;for(let r=0,i=e.length;r<i;++r)e[r].handleChange(n,t)}function s(t){return-1!==this.spillover.indexOf(t)}n.d(e,{q:()=>a,A:()=>l});class a{constructor(t,e){this.sub1=void 0,this.sub2=void 0,this.spillover=void 0,this.source=t,this.sub1=e}has(t){return this.sub1===t||this.sub2===t}subscribe(t){this.has(t)||(void 0!==this.sub1?void 0!==this.sub2?(this.spillover=[this.sub1,this.sub2,t],this.subscribe=r,this.unsubscribe=i,this.notify=o,this.has=s,this.sub1=void 0,this.sub2=void 0):this.sub2=t:this.sub1=t)}unsubscribe(t){this.sub1===t?this.sub1=void 0:this.sub2===t&&(this.sub2=void 0)}notify(t){const e=this.sub1,n=this.sub2,r=this.source;void 0!==e&&e.handleChange(r,t),void 0!==n&&n.handleChange(r,t)}}class l{constructor(t){this.subscribers={},this.source=t}notify(t){const e=this.subscribers[t];void 0!==e&&e.notify(t)}subscribe(t,e){let n=this.subscribers[e];void 0===n&&(this.subscribers[e]=n=new a(this.source)),n.subscribe(t)}unsubscribe(t,e){const n=this.subscribers[e];void 0!==n&&n.unsubscribe(t)}}},58520:(t,e,n)=>{"use strict";n.d(e,{y$:()=>d,LO:()=>f,z8:()=>v,Wp:()=>m});var r=n(45930),i=n(81249);const o=/(:|&&|\|\||if)/,s=new WeakMap,a=new WeakMap;let l,c=t=>{throw new Error("Must call enableArrayObservation before observing arrays.")};class u{constructor(t){this.name=t,this.field=`_${t}`,this.callback=`${t}Changed`}getValue(t){return void 0!==l&&l.watch(t,this.name),t[this.field]}setValue(t,e){const n=this.field,r=t[n];if(r!==e){t[n]=e;const i=t[this.callback];"function"==typeof i&&i.call(t,r,e),p(t).notify(this.name)}}}const d=Object.freeze({setArrayObserverFactory(t){c=t},getNotifier(t){let e=t.$fastController||s.get(t);return void 0===e&&(Array.isArray(t)?e=c(t):s.set(t,e=new i.A(t))),e},track(t,e){void 0!==l&&l.watch(t,e)},trackVolatile(){void 0!==l&&(l.needsRefresh=!0)},notify(t,e){p(t).notify(e)},defineProperty(t,e){"string"==typeof e&&(e=new u(e)),this.getAccessors(t).push(e),Reflect.defineProperty(t,e.name,{enumerable:!0,get:function(){return e.getValue(this)},set:function(t){e.setValue(this,t)}})},getAccessors(t){let e=a.get(t);if(void 0===e){let n=Reflect.getPrototypeOf(t);for(;void 0===e&&null!==n;)e=a.get(n),n=Reflect.getPrototypeOf(n);e=void 0===e?[]:e.slice(0),a.set(t,e)}return e},binding(t,e,n=this.isVolatileBinding(t)){return new y(t,e,n)},isVolatileBinding:t=>o.test(t.toString())}),p=d.getNotifier,h=(d.trackVolatile,r.SO.queueUpdate);function f(t,e){d.defineProperty(t,e)}let g=null;function v(t){g=t}class b{constructor(){this.index=0,this.length=0,this.parent=null,this.parentContext=null}get event(){return g}get isEven(){return this.index%2==0}get isOdd(){return this.index%2!=0}get isFirst(){return 0===this.index}get isInMiddle(){return!this.isFirst&&!this.isLast}get isLast(){return this.index===this.length-1}}d.defineProperty(b.prototype,"index"),d.defineProperty(b.prototype,"length");const m=Object.seal(new b);class y extends i.q{constructor(t,e,n=!1){super(t,e),this.binding=t,this.isVolatileBinding=n,this.needsRefresh=!0,this.needsQueue=!0,this.first=this,this.last=null,this.propertySource=void 0,this.propertyName=void 0,this.notifier=void 0,this.next=void 0}observe(t,e){this.needsRefresh&&null!==this.last&&this.disconnect();const n=l;l=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;const r=this.binding(t,e);return l=n,r}disconnect(){if(null!==this.last){let t=this.first;for(;void 0!==t;)t.notifier.unsubscribe(this,t.propertyName),t=t.next;this.last=null,this.needsRefresh=this.needsQueue=!0}}watch(t,e){const n=this.last,r=p(t),i=null===n?this.first:{};if(i.propertySource=t,i.propertyName=e,i.notifier=r,r.subscribe(this,e),null!==n){if(!this.needsRefresh){l=void 0;const e=n.propertySource[n.propertyName];l=this,t===e&&(this.needsRefresh=!0)}n.next=i}this.last=i}handleChange(){this.needsQueue&&(this.needsQueue=!1,h(this))}call(){null!==this.last&&(this.needsQueue=!0,this.notify(this))}records(){let t=this.first;return{next:()=>{const e=t;return void 0===e?{value:void 0,done:!0}:(t=t.next,{value:e,done:!1})},[Symbol.iterator]:function(){return this}}}}},51306:(t,e,n)=>{"use strict";n.d(e,{P:()=>r,o:()=>i});const r=function(){if("undefined"!=typeof globalThis)return globalThis;if(void 0!==n.g)return n.g;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;try{return new Function("return this")()}catch(t){return{}}}();void 0===r.trustedTypes&&(r.trustedTypes={createPolicy:(t,e)=>e});const i=Object.freeze([])},31804:(t,e,n)=>{"use strict";n.d(e,{v:()=>r});class r{createCSS(){return""}createBehavior(){}}},76298:(t,e,n)=>{"use strict";if(n.d(e,{i:()=>s}),580==n.j)var r=n(31804);if(580==n.j)var i=n(78497);function o(t,e){const n=[];let o="";const s=[];for(let a=0,l=t.length-1;a<l;++a){o+=t[a];let l=e[a];if(l instanceof r.v){const t=l.createBehavior();l=l.createCSS(),t&&s.push(t)}l instanceof i.XL||l instanceof CSSStyleSheet?(""!==o.trim()&&(n.push(o),o=""),n.push(l)):o+=l}return o+=t[t.length-1],""!==o.trim()&&n.push(o),{styles:n,behaviors:s}}function s(t,...e){const{styles:n,behaviors:r}=o(t,e),s=i.XL.create(n);return r.length&&s.withBehaviors(...r),s}},78497:(t,e,n)=>{"use strict";n.d(e,{XL:()=>i});var r=n(45930);class i{constructor(){this.targets=new WeakSet,this.behaviors=null}addStylesTo(t){this.targets.add(t)}removeStylesFrom(t){this.targets.delete(t)}isAttachedTo(t){return this.targets.has(t)}withBehaviors(...t){return this.behaviors=null===this.behaviors?t:this.behaviors.concat(t),this}}function o(t){return t.map((t=>t instanceof i?o(t.styles):[t])).reduce(((t,e)=>t.concat(e)),[])}function s(t){return t.map((t=>t instanceof i?t.behaviors:null)).reduce(((t,e)=>null===e?t:(null===t&&(t=[]),t.concat(e))),null)}i.create=(()=>{if(r.SO.supportsAdoptedStyleSheets){const t=new Map;return e=>new a(e,t)}return t=>new c(t)})();class a extends i{constructor(t,e){super(),this.styles=t,this.styleSheetCache=e,this._styleSheets=void 0,this.behaviors=s(t)}get styleSheets(){if(void 0===this._styleSheets){const t=this.styles,e=this.styleSheetCache;this._styleSheets=o(t).map((t=>{if(t instanceof CSSStyleSheet)return t;let n=e.get(t);return void 0===n&&(n=new CSSStyleSheet,n.replaceSync(t),e.set(t,n)),n}))}return this._styleSheets}addStylesTo(t){t.adoptedStyleSheets=[...t.adoptedStyleSheets,...this.styleSheets],super.addStylesTo(t)}removeStylesFrom(t){const e=this.styleSheets;t.adoptedStyleSheets=t.adoptedStyleSheets.filter((t=>-1===e.indexOf(t))),super.removeStylesFrom(t)}}let l=0;class c extends i{constructor(t){super(),this.styles=t,this.behaviors=null,this.behaviors=s(t),this.styleSheets=o(t),this.styleClass="fast-style-class-"+ ++l}addStylesTo(t){const e=this.styleSheets,n=this.styleClass;t=this.normalizeTarget(t);for(let r=e.length-1;r>-1;--r){const i=document.createElement("style");i.innerHTML=e[r],i.className=n,t.prepend(i)}super.addStylesTo(t)}removeStylesFrom(t){const e=(t=this.normalizeTarget(t)).querySelectorAll(`.${this.styleClass}`);for(let n=0,r=e.length;n<r;++n)t.removeChild(e[n]);super.removeStylesFrom(t)}isAttachedTo(t){return super.isAttachedTo(this.normalizeTarget(t))}normalizeTarget(t){return t===document?document.body:t}}},66773:(t,e,n)=>{"use strict";if(n.d(e,{R:()=>v}),580==n.j)var r=n(45930);if(580==n.j)var i=n(58520);if(580==n.j)var o=n(49278);function s(t,e){this.source=t,this.context=e,null===this.bindingObserver&&(this.bindingObserver=i.y$.binding(this.binding,this,this.isBindingVolatile)),this.updateTarget(this.bindingObserver.observe(t,e))}function a(t,e){this.source=t,this.context=e,this.target.addEventListener(this.targetName,this)}function l(){this.bindingObserver.disconnect(),this.source=null,this.context=null}function c(){this.bindingObserver.disconnect(),this.source=null,this.context=null;const t=this.target.$fastView;void 0!==t&&t.isComposed&&(t.unbind(),t.needsBindOnly=!0)}function u(){this.target.removeEventListener(this.targetName,this),this.source=null,this.context=null}function d(t){r.SO.setAttribute(this.target,this.targetName,t)}function p(t){r.SO.setBooleanAttribute(this.target,this.targetName,t)}function h(t){if(null==t&&(t=""),t.create){this.target.textContent="";let e=this.target.$fastView;void 0===e?e=t.create():this.target.$fastTemplate!==t&&(e.isComposed&&(e.remove(),e.unbind()),e=t.create()),e.isComposed?e.needsBindOnly&&(e.needsBindOnly=!1,e.bind(this.source,this.context)):(e.isComposed=!0,e.bind(this.source,this.context),e.insertBefore(this.target),this.target.$fastView=e,this.target.$fastTemplate=t)}else{const e=this.target.$fastView;void 0!==e&&e.isComposed&&(e.isComposed=!1,e.remove(),e.needsBindOnly?e.needsBindOnly=!1:e.unbind()),this.target.textContent=t}}function f(t){this.target[this.targetName]=t}function g(t){const e=this.classVersions||Object.create(null),n=this.target;let r=this.version||0;if(null!=t&&t.length){const i=t.split(/\s+/);for(let t=0,o=i.length;t<o;++t){const o=i[t];""!==o&&(e[o]=r,n.classList.add(o))}}if(this.classVersions=e,this.version=r+1,0!==r){r-=1;for(const t in e)e[t]===r&&n.classList.remove(t)}}class v extends(580==n.j?o.d$:null){constructor(t){super(),this.binding=t,this.bind=s,this.unbind=l,this.updateTarget=d,this.isBindingVolatile=i.y$.isVolatileBinding(this.binding)}get targetName(){return this.originalTargetName}set targetName(t){if(this.originalTargetName=t,void 0!==t)switch(t[0]){case":":if(this.cleanedTargetName=t.substr(1),this.updateTarget=f,"innerHTML"===this.cleanedTargetName){const t=this.binding;this.binding=(e,n)=>r.SO.createHTML(t(e,n))}break;case"?":this.cleanedTargetName=t.substr(1),this.updateTarget=p;break;case"@":this.cleanedTargetName=t.substr(1),this.bind=a,this.unbind=u;break;default:this.cleanedTargetName=t,"class"===t&&(this.updateTarget=g)}}targetAtContent(){this.updateTarget=h,this.unbind=c}createBehavior(t){return new b(t,this.binding,this.isBindingVolatile,this.bind,this.unbind,this.updateTarget,this.cleanedTargetName)}}class b{constructor(t,e,n,r,i,o,s){this.source=null,this.context=null,this.bindingObserver=null,this.target=t,this.binding=e,this.isBindingVolatile=n,this.bind=r,this.unbind=i,this.updateTarget=o,this.targetName=s}handleChange(){this.updateTarget(this.bindingObserver.observe(this.source,this.context))}handleEvent(t){(0,i.z8)(t);const e=this.binding(this.source,this.context);(0,i.z8)(null),!0!==e&&t.preventDefault()}}},42968:(t,e,n)=>{"use strict";if(n.d(e,{p:()=>s}),580==n.j)var r=n(49278);if(580==n.j)var i=n(14671);class o extends(580==n.j?i.x:null){constructor(t,e){super(t,e),this.observer=null,e.childList=!0}observe(){null===this.observer&&(this.observer=new MutationObserver(this.handleEvent.bind(this))),this.observer.observe(this.target,this.options)}disconnect(){this.observer.disconnect()}getNodes(){return"subtree"in this.options?Array.from(this.target.querySelectorAll(this.options.selector)):Array.from(this.target.childNodes)}}function s(t){return"string"==typeof t&&(t={property:t}),new r.ON("fast-children",o,t)}},7935:(t,e,n)=>{"use strict";n.d(e,{_:()=>p});var r=n(45930);if(580==n.j)var i=n(66773);let o=null;class s{addFactory(t){t.targetIndex=this.targetIndex,this.behaviorFactories.push(t)}captureContentBinding(t){t.targetAtContent(),this.addFactory(t)}reset(){this.behaviorFactories=[],this.targetIndex=-1}release(){o=this}static borrow(t){const e=o||new s;return e.directives=t,e.reset(),o=null,e}}function a(t){if(1===t.length)return t[0];let e;const n=t.length,r=t.map((t=>"string"==typeof t?()=>t:(e=t.targetName||e,t.binding))),o=new i.R(((t,e)=>{let i="";for(let o=0;o<n;++o)i+=r[o](t,e);return i}));return o.targetName=e,o}const l=r.Yl.length;function c(t,e){const n=e.split(r.pc);if(1===n.length)return null;const i=[];for(let e=0,o=n.length;e<o;++e){const o=n[e],s=o.indexOf(r.Yl);let a;if(-1===s)a=o;else{const e=parseInt(o.substring(0,s));i.push(t.directives[e]),a=o.substring(s+l)}""!==a&&i.push(a)}return i}function u(t,e,n=!1){const r=e.attributes;for(let o=0,s=r.length;o<s;++o){const l=r[o],u=l.value,d=c(t,u);let p=null;null===d?n&&(p=new i.R((()=>u)),p.targetName=l.name):p=a(d),null!==p&&(e.removeAttributeNode(l),o--,s--,t.addFactory(p))}}function d(t,e,n){const r=c(t,e.textContent);if(null!==r){let i=e;for(let o=0,s=r.length;o<s;++o){const s=r[o],a=0===o?e:i.parentNode.insertBefore(document.createTextNode(""),i.nextSibling);"string"==typeof s?a.textContent=s:(a.textContent=" ",t.captureContentBinding(s)),i=a,t.targetIndex++,a!==e&&n.nextNode()}t.targetIndex--}}function p(t,e){const n=t.content;document.adoptNode(n);const i=s.borrow(e);u(i,t,!0);const o=i.behaviorFactories;i.reset();const a=r.SO.createTemplateWalker(n);let l;for(;l=a.nextNode();)switch(i.targetIndex++,l.nodeType){case 1:u(i,l);break;case 3:d(i,l,a);break;case 8:r.SO.isMarker(l)&&i.addFactory(e[r.SO.extractDirectiveIndexFromMarker(l)])}let c=0;(r.SO.isMarker(n.firstChild)||1===n.childNodes.length&&e.length)&&(n.insertBefore(document.createComment(""),n.firstChild),c=-1);const p=i.behaviorFactories;return i.release(),{fragment:n,viewBehaviorFactories:p,hostBehaviorFactories:o,targetOffset:c}}},49278:(t,e,n)=>{"use strict";if(n.d(e,{m0:()=>i,d$:()=>o,ON:()=>s}),580==n.j)var r=n(45930);class i{constructor(){this.targetIndex=0}}class o extends(580==n.j?i:null){constructor(){super(...arguments),this.createPlaceholder=r.SO.createInterpolationPlaceholder}}class s extends(580==n.j?i:null){constructor(t,e,n){super(),this.name=t,this.behavior=e,this.options=n}createPlaceholder(t){return r.SO.createCustomAttributePlaceholder(this.name,t)}createBehavior(t){return new this.behavior(t,this.options)}}},14671:(t,e,n)=>{"use strict";if(n.d(e,{R:()=>o,x:()=>s}),580==n.j)var r=n(58520);if(580==n.j)var i=n(51306);function o(t){return t?function(e,n,r){return 1===e.nodeType&&e.matches(t)}:function(t,e,n){return 1===t.nodeType}}class s{constructor(t,e){this.target=t,this.options=e,this.source=null}bind(t){const e=this.options.property;this.shouldUpdate=r.y$.getAccessors(t).some((t=>t.name===e)),this.source=t,this.updateTarget(this.computeNodes()),this.shouldUpdate&&this.observe()}unbind(){this.updateTarget(i.o),this.source=null,this.shouldUpdate&&this.disconnect()}handleEvent(){this.updateTarget(this.computeNodes())}computeNodes(){let t=this.getNodes();return void 0!==this.options.filter&&(t=t.filter(this.options.filter)),t}updateTarget(t){this.source[this.options.property]=t}}},91106:(t,e,n)=>{"use strict";if(n.d(e,{i:()=>o}),580==n.j)var r=n(49278);class i{constructor(t,e){this.target=t,this.propertyName=e}bind(t){t[this.propertyName]=this.target}unbind(){}}function o(t){return new r.ON("fast-ref",i,t)}},37955:(t,e,n)=>{"use strict";if(n.d(e,{Q:()=>s}),580==n.j)var r=n(49278);if(580==n.j)var i=n(14671);class o extends(580==n.j?i.x:null){constructor(t,e){super(t,e)}observe(){this.target.addEventListener("slotchange",this)}disconnect(){this.target.removeEventListener("slotchange",this)}getNodes(){return this.target.assignedNodes(this.options)}}function s(t){return"string"==typeof t&&(t={property:t}),new r.ON("fast-slotted",o,t)}},90563:(t,e,n)=>{"use strict";if(n.d(e,{d:()=>d}),580==n.j)var r=n(45930);if(580==n.j)var i=n(58520);if(580==n.j)var o=n(7935);if(580==n.j)var s=n(18882);if(580==n.j)var a=n(49278);if(580==n.j)var l=n(66773);class c{constructor(t,e){this.behaviorCount=0,this.hasHostBehaviors=!1,this.fragment=null,this.targetOffset=0,this.viewBehaviorFactories=null,this.hostBehaviorFactories=null,this.html=t,this.directives=e}create(t){if(null===this.fragment){let t;const e=this.html;if("string"==typeof e){t=document.createElement("template"),t.innerHTML=r.SO.createHTML(e);const n=t.content.firstElementChild;null!==n&&"TEMPLATE"===n.tagName&&(t=n)}else t=e;const n=(0,o._)(t,this.directives);this.fragment=n.fragment,this.viewBehaviorFactories=n.viewBehaviorFactories,this.hostBehaviorFactories=n.hostBehaviorFactories,this.targetOffset=n.targetOffset,this.behaviorCount=this.viewBehaviorFactories.length+this.hostBehaviorFactories.length,this.hasHostBehaviors=this.hostBehaviorFactories.length>0}const e=this.fragment.cloneNode(!0),n=this.viewBehaviorFactories,i=new Array(this.behaviorCount),a=r.SO.createTemplateWalker(e);let l=0,c=this.targetOffset,u=a.nextNode();for(let t=n.length;l<t;++l){const t=n[l],e=t.targetIndex;for(;null!==u;){if(c===e){i[l]=t.createBehavior(u);break}u=a.nextNode(),c++}}if(this.hasHostBehaviors){const e=this.hostBehaviorFactories;for(let n=0,r=e.length;n<r;++n,++l)i[l]=e[n].createBehavior(t)}return new s.b(e,i)}render(t,e,n){"string"==typeof e&&(e=document.getElementById(e)),void 0===n&&(n=e);const r=this.create(n);return r.bind(t,i.Wp),r.appendTo(e),r}}const u=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/;function d(t,...e){const n=[];let r="";for(let i=0,o=t.length-1;i<o;++i){const o=t[i];let s=e[i];if(r+=o,s instanceof c){const t=s;s=()=>t}if("function"==typeof s&&(s=new l.R(s)),s instanceof a.d$){const t=u.exec(o);null!==t&&(s.targetName=t[2])}s instanceof a.m0?(r+=s.createPlaceholder(n.length),n.push(s)):r+=s}return r+=t[t.length-1],new c(r,n)}},18882:(t,e,n)=>{"use strict";n.d(e,{b:()=>i});const r=document.createRange();class i{constructor(t,e){this.fragment=t,this.behaviors=e,this.source=null,this.context=null,this.firstChild=t.firstChild,this.lastChild=t.lastChild}appendTo(t){t.appendChild(this.fragment)}insertBefore(t){if(this.fragment.hasChildNodes())t.parentNode.insertBefore(this.fragment,t);else{const e=t.parentNode,n=this.lastChild;let r,i=this.firstChild;for(;i!==n;)r=i.nextSibling,e.insertBefore(i,t),i=r;e.insertBefore(n,t)}}remove(){const t=this.fragment,e=this.lastChild;let n,r=this.firstChild;for(;r!==e;)n=r.nextSibling,t.appendChild(r),r=n;t.appendChild(e)}dispose(){const t=this.firstChild.parentNode,e=this.lastChild;let n,r=this.firstChild;for(;r!==e;)n=r.nextSibling,t.removeChild(r),r=n;t.removeChild(e);const i=this.behaviors,o=this.source;for(let t=0,e=i.length;t<e;++t)i[t].unbind(o)}bind(t,e){const n=this.behaviors;if(this.source!==t)if(null!==this.source){const r=this.source;this.source=t,this.context=e;for(let i=0,o=n.length;i<o;++i){const o=n[i];o.unbind(r),o.bind(t,e)}}else{this.source=t,this.context=e;for(let r=0,i=n.length;r<i;++r)n[r].bind(t,e)}}unbind(){if(null===this.source)return;const t=this.behaviors,e=this.source;for(let n=0,r=t.length;n<r;++n)t[n].unbind(e);this.source=null}static disposeContiguousBatch(t){if(0!==t.length){r.setStartBefore(t[0].firstChild),r.setEndAfter(t[t.length-1].lastChild),r.deleteContents();for(let e=0,n=t.length;e<n;++e){const n=t[e],r=n.behaviors,i=n.source;for(let t=0,e=r.length;t<e;++t)r[t].unbind(i)}}}}},63243:(t,e,n)=>{"use strict";function r(t,e){const n="function"==typeof e?e:()=>e;return(e,r)=>t(e,r)?n(e,r):null}n.d(e,{g:()=>r})},8126:(t,e,n)=>{"use strict";n.d(e,{j:()=>r,Q:()=>i});class r{constructor(t,e,n){this.name=t,this.value=e,this.host=n,this.propertyName=`--${t}`,this.var=`var(${this.propertyName})`}bind(t){const e=this.host(t);null!==e&&("function"==typeof e.registerCSSCustomProperty?e.registerCSSCustomProperty(this):(Array.isArray(e.disconnectedCSSCustomPropertyRegistry)||(e.disconnectedCSSCustomPropertyRegistry=[]),e.disconnectedCSSCustomPropertyRegistry.push(this)))}unbind(t){const e=this.host(t);null!==e&&"function"==typeof e.unregisterCSSCustomProperty&&e.unregisterCSSCustomProperty(this)}}function i(t,e,n){return new r(t,e,n)}},56461:(t,e,n)=>{"use strict";n.d(e,{hO:()=>v,PC:()=>g,_1:()=>b});var r=n(33940),i=n(65226),o=n(45930),s=n(58520),a=n(29163),l=n(78497);const c=":host{}";class u{constructor(){this.queue=new Set,this.customPropertyTarget=null,this._owner=null,this.ticking=!1,this.cssCustomPropertyDefinitions=new Map}get owner(){return this._owner}register(t){const e=this.cssCustomPropertyDefinitions.get(t.name);e?e.count+=1:(this.cssCustomPropertyDefinitions.set(t.name,Object.assign(Object.assign({},t),{count:1})),this.set(t))}unregister(t){const e=this.cssCustomPropertyDefinitions.get(t);e&&(e.count-=1,0===e.count&&(this.cssCustomPropertyDefinitions.delete(t),this.remove(t)))}set(t){this.owner&&(this.customPropertyTarget?this.customPropertyTarget.setProperty(`--${t.name}`,this.owner.evaluate(t)):this.queue.add(this.set.bind(this,t)))}remove(t){this.customPropertyTarget?this.customPropertyTarget.removeProperty(`--${t}`):this.queue.add(this.remove.bind(this,t))}setAll(){this.ticking||(this.ticking=!0,o.SO.queueUpdate((()=>{this.ticking=!1,this.cssCustomPropertyDefinitions.forEach((t=>{this.set(t)}))})))}}class d extends u{constructor(t){super(),this.subscribers=new Set,this.sheet=t,this.styles=l.XL.create([t]),this.customPropertyTarget=t.cssRules[t.insertRule(c)].style}subscribe(t){this.subscribers.add(t),1===this.subscribers.size&&(this._owner=t),t.cssCustomPropertyDefinitions.forEach((t=>{this.register(t)})),t.$fastController.addStyles(this.styles)}unsubscribe(t){this.subscribers.delete(t),t.cssCustomPropertyDefinitions.forEach((t=>this.unregister(t.name))),this.owner===t&&(this._owner=this.subscribers.size?this.subscribers.values().next().value:null),!this.sheet.ownerNode&&this.styles&&t.$fastController.removeStyles(this.styles)}isSubscribed(t){return this.subscribers.has(t)}}class p extends u{constructor(t,e){super(),this._sheet=null,this.handleConnection={handleChange:()=>{var t;this._sheet=this.styles.sheet;const e=this.sheet.insertRule(c);this.customPropertyTarget=this.sheet.rules[e].style,s.y$.getNotifier(null===(t=this._owner)||void 0===t?void 0:t.$fastController).unsubscribe(this.handleConnection,"isConnected")}};const n=e.$fastController;n.addStyles(t),this.styles=t,this._owner=e,e.isConnected?this.handleConnection.handleChange():s.y$.getNotifier(n).subscribe(this.handleConnection,"isConnected"),e.cssCustomPropertyDefinitions.forEach((t=>{this.register(t)}))}get sheet(){return this._sheet}customPropertyTargetChanged(t,e){!t&&this.queue.size&&(this.queue.forEach((t=>t())),this.queue.clear())}}function h(t){const e=t.parentElement;if(e)return e;{const e=t.getRootNode();if(e.host instanceof HTMLElement)return e.host}return null}function f(t){const e=t.provider;return null!=e&&v.isDesignSystemProvider(e)}(0,r.gn)([s.LO],p.prototype,"customPropertyTarget",void 0);const g={bind(t){t.provider=v.findProvider(t)},unbind(t){}};class v extends i.H{constructor(){super(),this.isDesignSystemProvider=!0,this.designSystem={},this.useDefaults=!1,this.provider=null,this.cssCustomPropertyDefinitions=new Map,this.attributeChangeHandler={handleChange:(t,e)=>{const n=this[e],r=this.customPropertyManager;if(this.isValidDesignSystemValue(n)){this.designSystem[e]=n;const t=this.designSystemProperties[e];t&&t.cssCustomProperty&&r&&r.set({name:t.cssCustomProperty,value:n})}else{this.syncDesignSystemWithProvider();const t=this.designSystemProperties[e].cssCustomProperty;r&&("string"==typeof t&&r.remove(t),r.setAll())}}},this.localDesignSystemChangeHandler={handleChange:()=>{const t=this.customPropertyManager;t&&t.owner===this&&t.setAll()}},this.providerDesignSystemChangeHandler={handleChange:(t,e)=>{t[e]===this.designSystem[e]||this.isValidDesignSystemValue(this[e])||(this.designSystem[e]=t[e])}},o.SO.supportsAdoptedStyleSheets?this.customPropertyManager=new d(new CSSStyleSheet):this.customPropertyManager=new p(document.createElement("style"),this),void 0===this.designSystemProperties&&(this.designSystemProperties={}),this.$fastController.addBehaviors([g])}static get tagNames(){return v._tagNames}static isDesignSystemProvider(t){return t.isDesignSystemProvider||-1!==v.tagNames.indexOf(t.tagName)}static findProvider(t){if(f(t))return t.provider;let e=h(t);for(;null!==e;){if(v.isDesignSystemProvider(e))return t.provider=e,e;if(f(e))return t.provider=e.provider,e.provider;e=h(e)}return null}static registerTagName(t){const e=t.toUpperCase();-1===v.tagNames.indexOf(e)&&v._tagNames.push(e)}useDefaultsChanged(){if(this.useDefaults){const t=this.designSystemProperties;Object.keys(t).forEach((e=>{void 0===this[e]&&(this[e]=t[e].default)}))}}providerChanged(t,e){if(t instanceof HTMLElement){const e=s.y$.getNotifier(t.designSystem);s.y$.getAccessors(t.designSystem).forEach((t=>{e.unsubscribe(this.providerDesignSystemChangeHandler,t.name)}))}if(e instanceof HTMLElement&&v.isDesignSystemProvider(e)){const t=s.y$.getNotifier(e.designSystem),n=s.y$.getAccessors(this.designSystem).reduce(((t,e)=>Object.assign(Object.assign({},t),{[e.name]:e})),{}),r=s.y$.getNotifier(this.designSystem);s.y$.getAccessors(e.designSystem).forEach((e=>{t.subscribe(this.providerDesignSystemChangeHandler,e.name),n[e.name]||((0,s.LO)(this.designSystem,e.name),r.subscribe(this.localDesignSystemChangeHandler,e.name))})),this.syncDesignSystemWithProvider()}}customPropertyManagerChanged(t,e){t&&t.unsubscribe&&t.unsubscribe(this),e.subscribe&&e.subscribe(this)}connectedCallback(){super.connectedCallback(),this.customPropertyManager.subscribe&&this.customPropertyManager.isSubscribed&&!this.customPropertyManager.isSubscribed(this)&&this.customPropertyManager.subscribe(this);const t=s.y$.getNotifier(this),e=s.y$.getNotifier(this.designSystem);if(Object.keys(this.designSystemProperties).forEach((n=>{(0,s.LO)(this.designSystem,n),t.subscribe(this.attributeChangeHandler,n),e.subscribe(this.localDesignSystemChangeHandler,n);const r=this[n];if(this.isValidDesignSystemValue(r)){this.designSystem[n]=r;const{cssCustomProperty:t}=this.designSystemProperties[n];"string"==typeof t&&this.customPropertyManager&&this.customPropertyManager.owner===this&&this.customPropertyManager.set({name:t,value:this[n]})}})),Array.isArray(this.disconnectedCSSCustomPropertyRegistry)){for(let t=0;t<this.disconnectedCSSCustomPropertyRegistry.length;t++)this.registerCSSCustomProperty(this.disconnectedCSSCustomPropertyRegistry[t]);delete this.disconnectedCSSCustomPropertyRegistry}if(Array.isArray(this.disconnectedRegistry)){for(let t=0;t<this.disconnectedRegistry.length;t++)this.disconnectedRegistry[t](this);delete this.disconnectedRegistry}}disconnectedCallback(){super.disconnectedCallback(),this.customPropertyManager.unsubscribe&&this.customPropertyManager.unsubscribe(this)}registerCSSCustomProperty(t){this.cssCustomPropertyDefinitions.set(t.name,t),this.customPropertyManager.register(t)}unregisterCSSCustomProperty(t){this.cssCustomPropertyDefinitions.delete(t.name),this.customPropertyManager.unregister(t.name)}evaluate(t){return"function"==typeof t.value?t.value(Object.assign({},this.designSystem)):t.value}syncDesignSystemWithProvider(){if(this.provider){const t=s.y$.getAccessors(this.designSystem).reduce(((t,e)=>(t[e.name]=e,t)),{});s.y$.getAccessors(this.provider.designSystem).forEach((e=>{var n;this.designSystemProperties.hasOwnProperty(e.name)&&this.isValidDesignSystemValue(this[e.name])||!this.isValidDesignSystemValue(null===(n=this.provider)||void 0===n?void 0:n.designSystem[e.name])||(t[e.name]||s.y$.defineProperty(this.designSystem,e.name),this.designSystem[e.name]=this.provider.designSystem[e.name])}))}}isValidDesignSystemValue(t){return null!=t}}v._tagNames=[],(0,r.gn)([(0,a.Lj)({attribute:"use-defaults",mode:"boolean"})],v.prototype,"useDefaults",void 0),(0,r.gn)([s.LO],v.prototype,"provider",void 0),(0,r.gn)([s.LO],v.prototype,"customPropertyManager",void 0);const b=function(t){return e=>{(0,i.M)(t)(e),e.registerTagName("string"==typeof t?t:t.name)}}},6545:(t,e,n)=>{"use strict";n.d(e,{v:()=>o});var r=n(33940),i=n(29163);class o{}(0,r.gn)([(0,i.Lj)({attribute:"aria-atomic",mode:"fromView"})],o.prototype,"ariaAtomic",void 0),(0,r.gn)([(0,i.Lj)({attribute:"aria-busy",mode:"fromView"})],o.prototype,"ariaBusy",void 0),(0,r.gn)([(0,i.Lj)({attribute:"aria-controls",mode:"fromView"})],o.prototype,"ariaControls",void 0),(0,r.gn)([(0,i.Lj)({attribute:"aria-current",mode:"fromView"})],o.prototype,"ariaCurrent",void 0),(0,r.gn)([(0,i.Lj)({attribute:"aria-describedby",mode:"fromView"})],o.prototype,"ariaDescribedby",void 0),(0,r.gn)([(0,i.Lj)({attribute:"aria-details",mode:"fromView"})],o.prototype,"ariaDetails",void 0),(0,r.gn)([(0,i.Lj)({attribute:"aria-disabled",mode:"fromView"})],o.prototype,"ariaDisabled",void 0),(0,r.gn)([(0,i.Lj)({attribute:"aria-errormessage",mode:"fromView"})],o.prototype,"ariaErrormessage",void 0),(0,r.gn)([(0,i.Lj)({attribute:"aria-flowto",mode:"fromView"})],o.prototype,"ariaFlowto",void 0),(0,r.gn)([(0,i.Lj)({attribute:"aria-haspopup",mode:"fromView"})],o.prototype,"ariaHaspopup",void 0),(0,r.gn)([(0,i.Lj)({attribute:"aria-hidden",mode:"fromView"})],o.prototype,"ariaHidden",void 0),(0,r.gn)([(0,i.Lj)({attribute:"aria-invalid",mode:"fromView"})],o.prototype,"ariaInvalid",void 0),(0,r.gn)([(0,i.Lj)({attribute:"aria-keyshortcuts",mode:"fromView"})],o.prototype,"ariaKeyshortcuts",void 0),(0,r.gn)([(0,i.Lj)({attribute:"aria-label",mode:"fromView"})],o.prototype,"ariaLabel",void 0),(0,r.gn)([(0,i.Lj)({attribute:"aria-labelledby",mode:"fromView"})],o.prototype,"ariaLabelledby",void 0),(0,r.gn)([(0,i.Lj)({attribute:"aria-live",mode:"fromView"})],o.prototype,"ariaLive",void 0),(0,r.gn)([(0,i.Lj)({attribute:"aria-owns",mode:"fromView"})],o.prototype,"ariaOwns",void 0),(0,r.gn)([(0,i.Lj)({attribute:"aria-relevant",mode:"fromView"})],o.prototype,"ariaRelevant",void 0),(0,r.gn)([(0,i.Lj)({attribute:"aria-roledescription",mode:"fromView"})],o.prototype,"ariaRoledescription",void 0)},8582:(t,e,n)=>{"use strict";n.d(e,{hW:()=>o,zq:()=>s,hX:()=>a});var r=n(90563),i=n(91106);class o{handleStartContentChange(){this.startContainer.classList.toggle("start",this.start.assignedNodes().length>0)}handleEndContentChange(){this.endContainer.classList.toggle("end",this.end.assignedNodes().length>0)}}const s=r.d` - <span part="end" ${(0,i.i)("endContainer")}> - <slot - name="end" - ${(0,i.i)("end")} - @slotchange="${t=>t.handleEndContentChange()}" - ></slot> - </span> -`,a=r.d` - <span part="start" ${(0,i.i)("startContainer")}> - <slot - name="start" - ${(0,i.i)("start")} - @slotchange="${t=>t.handleStartContentChange()}" - ></slot> - </span> -`},2814:(t,e,n)=>{"use strict";if(n.d(e,{x:()=>i}),580==n.j)var r=n(65226);class i extends(580==n.j?r.H:null){}},13709:(t,e,n)=>{"use strict";n.d(e,{Y:()=>r});const r=n(90563).d` - <template slot="tabpanel" role="tabpanel"> - <slot></slot> - </template> -`},21404:(t,e,n)=>{"use strict";n.d(e,{O:()=>s});var r=n(33940),i=n(65226),o=n(29163);class s extends i.H{}(0,r.gn)([(0,o.Lj)({mode:"boolean"})],s.prototype,"disabled",void 0)},3960:(t,e,n)=>{"use strict";n.d(e,{O:()=>r});const r=n(90563).d` - <template slot="tab" role="tab" aria-disabled="${t=>t.disabled}"> - <slot></slot> - </template> -`},9740:(t,e,n)=>{"use strict";function r(t,...e){e.forEach((e=>{if(Object.getOwnPropertyNames(e.prototype).forEach((n=>{Object.defineProperty(t.prototype,n,Object.getOwnPropertyDescriptor(e.prototype,n))})),e.attributes){const n=t.attributes||[];t.attributes=n.concat(e.attributes)}}))}n.d(e,{e:()=>r})},68421:(t,e,n)=>{"use strict";n.d(e,{vF:()=>i});class r extends class{constructor(t){this.listenerCache=new WeakMap,this.query=t}bind(t){const{query:e}=this,n=this.constructListener(t);n.bind(e)(),e.addListener(n),this.listenerCache.set(t,n)}unbind(t){const e=this.listenerCache.get(t);e&&(this.query.removeListener(e),this.listenerCache.delete(t))}}{constructor(t,e){super(t),this.styles=e}static with(t){return e=>new r(t,e)}constructListener(t){let e=!1;const n=this.styles;return function(){const{matches:r}=this;r&&!e?(t.$fastController.addStyles(n),e=r):!r&&e&&(t.$fastController.removeStyles(n),e=r)}}unbind(t){super.unbind(t),t.$fastController.removeStyles(this.styles)}}const i=r.with(window.matchMedia("(forced-colors)"));r.with(window.matchMedia("(prefers-color-scheme: dark)")),r.with(window.matchMedia("(prefers-color-scheme: light)"))},45536:(t,e,n)=>{"use strict";if(n.d(e,{w:()=>i}),580==n.j)var r=n(58520);class i{constructor(t,e,n){this.propertyName=t,this.value=e,this.styles=n}bind(t){r.y$.getNotifier(t).subscribe(this,this.propertyName),this.handleChange(t,this.propertyName)}unbind(t){r.y$.getNotifier(t).unsubscribe(this,this.propertyName),t.$fastController.removeStyles(this.styles)}handleChange(t,e){t[e]===this.value?t.$fastController.addStyles(this.styles):t.$fastController.removeStyles(this.styles)}}},36570:(t,e,n)=>{"use strict";if(n.d(e,{O:()=>o}),580==n.j)var r=n(58520);if(580==n.j)var i=n(56461);class o{constructor(t,e){this.cache=new WeakMap,this.ltr=t,this.rtl=e}bind(t){const e=i.hO.findProvider(t);null!==e&&(e.$fastController&&e.$fastController.isConnected?this.attach(t,e):(Array.isArray(e.disconnectedRegistry)||(e.disconnectedRegistry=[]),e.disconnectedRegistry.push(this.attach.bind(this,t))))}unbind(t){const e=this.cache.get(t);e&&r.y$.getNotifier(e[0].designSystem).unsubscribe(e[1])}attach(t,e){const n=new s(this.ltr,this.rtl,t);r.y$.getNotifier(e.designSystem).subscribe(n,"direction"),n.attach(e.designSystem.direction),this.cache.set(t,[e,n])}}class s{constructor(t,e,n){this.ltr=t,this.rtl=e,this.source=n,this.attached=null}handleChange(t){this.attach(t.direction)}attach(t){this.attached!==this[t]&&(null!==this.attached&&this.source.$fastController.removeStyles(this.attached),this.attached=this[t],null!==this.attached&&this.source.$fastController.addStyles(this.attached))}}},9817:(t,e,n)=>{"use strict";n.d(e,{H:()=>r});const r="not-allowed"},93718:(t,e,n)=>{"use strict";n.d(e,{j:()=>i});const r=580==n.j?":host([hidden]){display:none}":null;function i(t){return`${r}:host{display:${t}}`}},67845:(t,e,n)=>{"use strict";n.d(e,{b:()=>r});const r=(0,n(5346).Zm)()?"focus-visible":"focus"},45846:(t,e,n)=>{"use strict";var r;n.d(e,{i:()=>r}),function(t){t.horizontal="horizontal",t.vertical="vertical"}(r||(r={}))},37834:(t,e,n)=>{"use strict";if(n.d(e,{A:()=>o}),!/^(183|296|580|717|882)$/.test(n.j))var r=n(64702);if(!/^(183|296|580|717|882)$/.test(n.j))var i=n(86072);function o(...t){return t.reduce(((t,e)=>{const n=t.length?" ":"",s=Array.isArray(e)&&e[1]?o.call(null,e[0]):(0,r.Z)(e)?e():(0,i.Z)(e)?e:"";return s.length?t+n+s:t}),"")}},5346:(t,e,n)=>{"use strict";if(n.d(e,{Re:()=>o,UM:()=>s,Zm:()=>l,B7:()=>c}),!/^(183|274|296|717|830|882|997)$/.test(n.j))var r=n(9453);if(!/^(183|274|296|717|830|882|997)$/.test(n.j))var i=n(97321);function o(...t){return t.every((t=>t instanceof HTMLElement))}function s(t,e){if(!o(t))return;return Array.from(t.querySelectorAll(e)).filter((t=>null!==t.offsetParent))}let a;function l(){if((0,i.Z)(a))return a;if(!(0,r.N)())return a=!1,a;const t=document.createElement("style"),e=function(){const t=document.querySelector('meta[property="csp-nonce"]');return t?t.getAttribute("content"):null}();null!==e&&t.setAttribute("nonce",e),document.head.appendChild(t);try{t.sheet.insertRule("foo:focus-visible {color:inherit}",0),a=!0}catch(t){a=!1}finally{document.head.removeChild(t)}return a}function c(){return(0,r.N)()&&(window.matchMedia("(forced-colors: none)").matches||window.matchMedia("(forced-colors: active)").matches)}},34980:(t,e,n)=>{"use strict";function r(t,e){if(t&&e)return parseInt(t.getPropertyValue(e).substring(0,t.getPropertyValue(e).length-2),10)}function i(t){if(!t)return;const e=t.getBoundingClientRect(),n=window.getComputedStyle(t,null),i={width:e.width,height:e.height,top:e.top,bottom:e.bottom,left:e.left,right:e.right};return i.width+=r(n,"margin-left"),i.width+=r(n,"margin-right"),i.height+=r(n,"margin-top"),i.height+=r(n,"margin-bottom"),i}n.d(e,{u:()=>i})},33832:(t,e,n)=>{"use strict";var r;n.d(e,{mW:()=>r,Q6:()=>i,BJ:()=>o,ho:()=>s,$Y:()=>a,$B:()=>l,bq:()=>c,Lp:()=>u,wn:()=>d,SV:()=>p,zI:()=>h,ei:()=>f,RN:()=>g}),function(t){t[t.alt=18]="alt",t[t.arrowDown=40]="arrowDown",t[t.arrowLeft=37]="arrowLeft",t[t.arrowRight=39]="arrowRight",t[t.arrowUp=38]="arrowUp",t[t.back=8]="back",t[t.backSlash=220]="backSlash",t[t.break=19]="break",t[t.capsLock=20]="capsLock",t[t.closeBracket=221]="closeBracket",t[t.colon=186]="colon",t[t.colon2=59]="colon2",t[t.comma=188]="comma",t[t.ctrl=17]="ctrl",t[t.delete=46]="delete",t[t.end=35]="end",t[t.enter=13]="enter",t[t.equals=187]="equals",t[t.equals2=61]="equals2",t[t.equals3=107]="equals3",t[t.escape=27]="escape",t[t.forwardSlash=191]="forwardSlash",t[t.function1=112]="function1",t[t.function10=121]="function10",t[t.function11=122]="function11",t[t.function12=123]="function12",t[t.function2=113]="function2",t[t.function3=114]="function3",t[t.function4=115]="function4",t[t.function5=116]="function5",t[t.function6=117]="function6",t[t.function7=118]="function7",t[t.function8=119]="function8",t[t.function9=120]="function9",t[t.home=36]="home",t[t.insert=45]="insert",t[t.menu=93]="menu",t[t.minus=189]="minus",t[t.minus2=109]="minus2",t[t.numLock=144]="numLock",t[t.numPad0=96]="numPad0",t[t.numPad1=97]="numPad1",t[t.numPad2=98]="numPad2",t[t.numPad3=99]="numPad3",t[t.numPad4=100]="numPad4",t[t.numPad5=101]="numPad5",t[t.numPad6=102]="numPad6",t[t.numPad7=103]="numPad7",t[t.numPad8=104]="numPad8",t[t.numPad9=105]="numPad9",t[t.numPadDivide=111]="numPadDivide",t[t.numPadDot=110]="numPadDot",t[t.numPadMinus=109]="numPadMinus",t[t.numPadMultiply=106]="numPadMultiply",t[t.numPadPlus=107]="numPadPlus",t[t.openBracket=219]="openBracket",t[t.pageDown=34]="pageDown",t[t.pageUp=33]="pageUp",t[t.period=190]="period",t[t.print=44]="print",t[t.quote=222]="quote",t[t.scrollLock=145]="scrollLock",t[t.shift=16]="shift",t[t.space=32]="space",t[t.tab=9]="tab",t[t.tilde=192]="tilde",t[t.windowsLeft=91]="windowsLeft",t[t.windowsOpera=219]="windowsOpera",t[t.windowsRight=92]="windowsRight"}(r||(r={}));const i=40,o=37,s=39,a=38,l=35,c=13,u=27,d=36,p=34,h=33,f=32,g=9},26007:(t,e,n)=>{"use strict";var r;n.d(e,{N:()=>r}),function(t){t.ltr="ltr",t.rtl="rtl"}(r||(r={}))},94731:(t,e,n)=>{"use strict";function r(t,e,n){return n<t?e:n>e?t:n}function i(t,e,n){return Math.min(Math.max(n,t),e)}n.d(e,{w:()=>r,b:()=>i})},70517:(t,e,n)=>{"use strict";n.d(e,{C:()=>o});var r=n(9453),i=n(26007);class o{static getScrollLeft(t,e){return e===i.N.rtl?o.getRtlScrollLeftConverter(t):t.scrollLeft}static setScrollLeft(t,e,n){n!==i.N.rtl?t.scrollLeft=e:o.setRtlScrollLeftConverter(t,e)}static initialGetRtlScrollConverter(t){return o.initializeRtlScrollConverters(),o.getRtlScrollLeftConverter(t)}static directGetRtlScrollConverter(t){return t.scrollLeft}static invertedGetRtlScrollConverter(t){return-Math.abs(t.scrollLeft)}static reverseGetRtlScrollConverter(t){return t.scrollLeft-(t.scrollWidth-t.clientWidth)}static initialSetRtlScrollConverter(t,e){o.initializeRtlScrollConverters(),o.setRtlScrollLeftConverter(t,e)}static directSetRtlScrollConverter(t,e){t.scrollLeft=e}static invertedSetRtlScrollConverter(t,e){t.scrollLeft=Math.abs(e)}static reverseSetRtlScrollConverter(t,e){const n=t.scrollWidth-t.clientWidth;t.scrollLeft=n+e}static initializeRtlScrollConverters(){if(!(0,r.N)())return void o.applyDirectScrollConverters();const t=o.getTestElement();document.body.appendChild(t),o.checkForScrollType(t),document.body.removeChild(t)}static checkForScrollType(t){o.isReverse(t)?o.applyReverseScrollConverters():o.isDirect(t)?o.applyDirectScrollConverters():o.applyInvertedScrollConverters()}static isReverse(t){return t.scrollLeft>0}static isDirect(t){return t.scrollLeft=-1,t.scrollLeft<0}static applyDirectScrollConverters(){o.setRtlScrollLeftConverter=o.directSetRtlScrollConverter,o.getRtlScrollLeftConverter=o.directGetRtlScrollConverter}static applyInvertedScrollConverters(){o.setRtlScrollLeftConverter=o.invertedSetRtlScrollConverter,o.getRtlScrollLeftConverter=o.invertedGetRtlScrollConverter}static applyReverseScrollConverters(){o.setRtlScrollLeftConverter=o.reverseSetRtlScrollConverter,o.getRtlScrollLeftConverter=o.reverseGetRtlScrollConverter}static getTestElement(){const t=document.createElement("div");return t.appendChild(document.createTextNode("ABCD")),t.dir="rtl",t.style.fontSize="14px",t.style.width="4px",t.style.height="1px",t.style.position="absolute",t.style.top="-1000px",t.style.overflow="scroll",t}}o.getRtlScrollLeftConverter=o.initialGetRtlScrollConverter,o.setRtlScrollLeftConverter=o.initialSetRtlScrollConverter},99478:(t,e,n)=>{"use strict";function r(t,e,n=0){return!(!t||!e)&&t.substr(n,e.length)===e}n.d(e,{Ny:()=>r})},15933:(t,e,n)=>{"use strict";var r;n.d(e,{H:()=>r}),function(t){t.Canvas="Canvas",t.CanvasText="CanvasText",t.LinkText="LinkText",t.VisitedText="VisitedText",t.ActiveText="ActiveText",t.ButtonFace="ButtonFace",t.ButtonText="ButtonText",t.Field="Field",t.FieldText="FieldText",t.Highlight="Highlight",t.HighlightText="HighlightText",t.GrayText="GrayText"}(r||(r={}))},94111:(t,e,n)=>{"use strict";function r(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];if(!t){var o;if(void 0===e)o=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=0;(o=new Error(e.replace(/%s/g,(function(){return r[s++]})))).name="Invariant Violation"}throw o.framesToPop=1,o}}n.d(e,{k:()=>r})},39292:(t,e,n)=>{"use strict";function r(t,e,n,r){var i=n?n.call(r,t,e):void 0;if(void 0!==i)return!!i;if(t===e)return!0;if("object"!=typeof t||!t||"object"!=typeof e||!e)return!1;var o=Object.keys(t),s=Object.keys(e);if(o.length!==s.length)return!1;for(var a=Object.prototype.hasOwnProperty.bind(e),l=0;l<o.length;l++){var c=o[l];if(!a(c))return!1;var u=t[c],d=e[c];if(!1===(i=n?n.call(r,u,d,c):void 0)||void 0===i&&u!==d)return!1}return!0}n.d(e,{w:()=>r})},69854:t=>{t.exports=function(t,n,r){if(t.filter)return t.filter(n,r);if(null==t)throw new TypeError;if("function"!=typeof n)throw new TypeError;for(var i=[],o=0;o<t.length;o++)if(e.call(t,o)){var s=t[o];n.call(r,s,o,t)&&i.push(s)}return i};var e=Object.prototype.hasOwnProperty},76118:(t,e,n)=>{"use strict";var r=n(82530);function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o,s,a=n(78619).codes,l=a.ERR_AMBIGUOUS_ARGUMENT,c=a.ERR_INVALID_ARG_TYPE,u=a.ERR_INVALID_ARG_VALUE,d=a.ERR_INVALID_RETURN_VALUE,p=a.ERR_MISSING_ARGS,h=n(66979),f=n(85663).inspect,g=n(85663).types,v=g.isPromise,b=g.isRegExp,m=Object.assign?Object.assign:n(61662).assign,y=Object.is?Object.is:n(7402);new Map;function x(){var t=n(61667);o=t.isDeepEqual,s=t.isDeepStrictEqual}var _=!1,w=t.exports=O,C={};function S(t){if(t.message instanceof Error)throw t.message;throw new h(t)}function E(t,e,n,r){if(!n){var i=!1;if(0===e)i=!0,r="No value argument passed to `assert.ok()`";else if(r instanceof Error)throw r;var o=new h({actual:n,expected:!0,message:r,operator:"==",stackStartFn:t});throw o.generatedMessage=i,o}}function O(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];E.apply(void 0,[O,e.length].concat(e))}w.fail=function t(e,n,i,o,s){var a,l=arguments.length;if(0===l)a="Failed";else if(1===l)i=e,e=void 0;else{if(!1===_){_=!0;var c=r.emitWarning?r.emitWarning:console.warn.bind(console);c("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")}2===l&&(o="!=")}if(i instanceof Error)throw i;var u={actual:e,expected:n,operator:void 0===o?"fail":o,stackStartFn:s||t};void 0!==i&&(u.message=i);var d=new h(u);throw a&&(d.message=a,d.generatedMessage=!0),d},w.AssertionError=h,w.ok=O,w.equal=function t(e,n,r){if(arguments.length<2)throw new p("actual","expected");e!=n&&S({actual:e,expected:n,message:r,operator:"==",stackStartFn:t})},w.notEqual=function t(e,n,r){if(arguments.length<2)throw new p("actual","expected");e==n&&S({actual:e,expected:n,message:r,operator:"!=",stackStartFn:t})},w.deepEqual=function t(e,n,r){if(arguments.length<2)throw new p("actual","expected");void 0===o&&x(),o(e,n)||S({actual:e,expected:n,message:r,operator:"deepEqual",stackStartFn:t})},w.notDeepEqual=function t(e,n,r){if(arguments.length<2)throw new p("actual","expected");void 0===o&&x(),o(e,n)&&S({actual:e,expected:n,message:r,operator:"notDeepEqual",stackStartFn:t})},w.deepStrictEqual=function t(e,n,r){if(arguments.length<2)throw new p("actual","expected");void 0===o&&x(),s(e,n)||S({actual:e,expected:n,message:r,operator:"deepStrictEqual",stackStartFn:t})},w.notDeepStrictEqual=function t(e,n,r){if(arguments.length<2)throw new p("actual","expected");void 0===o&&x();s(e,n)&&S({actual:e,expected:n,message:r,operator:"notDeepStrictEqual",stackStartFn:t})},w.strictEqual=function t(e,n,r){if(arguments.length<2)throw new p("actual","expected");y(e,n)||S({actual:e,expected:n,message:r,operator:"strictEqual",stackStartFn:t})},w.notStrictEqual=function t(e,n,r){if(arguments.length<2)throw new p("actual","expected");y(e,n)&&S({actual:e,expected:n,message:r,operator:"notStrictEqual",stackStartFn:t})};var j=function t(e,n,r){var i=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),n.forEach((function(t){t in e&&(void 0!==r&&"string"==typeof r[t]&&b(e[t])&&e[t].test(r[t])?i[t]=r[t]:i[t]=e[t])}))};function P(t,e,n,r,i,o){if(!(n in t)||!s(t[n],e[n])){if(!r){var a=new j(t,i),l=new j(e,i,t),c=new h({actual:a,expected:l,operator:"deepStrictEqual",stackStartFn:o});throw c.actual=t,c.expected=e,c.operator=o.name,c}S({actual:t,expected:e,message:r,operator:o.name,stackStartFn:o})}}function k(t,e,n,r){if("function"!=typeof e){if(b(e))return e.test(t);if(2===arguments.length)throw new c("expected",["Function","RegExp"],e);if("object"!==i(t)||null===t){var s=new h({actual:t,expected:e,message:n,operator:"deepStrictEqual",stackStartFn:r});throw s.operator=r.name,s}var a=Object.keys(e);if(e instanceof Error)a.push("name","message");else if(0===a.length)throw new u("error",e,"may not be an empty object");return void 0===o&&x(),a.forEach((function(i){"string"==typeof t[i]&&b(e[i])&&e[i].test(t[i])||P(t,e,i,n,a,r)})),!0}return void 0!==e.prototype&&t instanceof e||!Error.isPrototypeOf(e)&&!0===e.call({},t)}function I(t){if("function"!=typeof t)throw new c("fn","Function",t);try{t()}catch(t){return t}return C}function T(t){return v(t)||null!==t&&"object"===i(t)&&"function"==typeof t.then&&"function"==typeof t.catch}function A(t){return Promise.resolve().then((function(){var e;if("function"==typeof t){if(!T(e=t()))throw new d("instance of Promise","promiseFn",e)}else{if(!T(t))throw new c("promiseFn",["Function","Promise"],t);e=t}return Promise.resolve().then((function(){return e})).then((function(){return C})).catch((function(t){return t}))}))}function D(t,e,n,r){if("string"==typeof n){if(4===arguments.length)throw new c("error",["Object","Error","Function","RegExp"],n);if("object"===i(e)&&null!==e){if(e.message===n)throw new l("error/message",'The error message "'.concat(e.message,'" is identical to the message.'))}else if(e===n)throw new l("error/message",'The error "'.concat(e,'" is identical to the message.'));r=n,n=void 0}else if(null!=n&&"object"!==i(n)&&"function"!=typeof n)throw new c("error",["Object","Error","Function","RegExp"],n);if(e===C){var o="";n&&n.name&&(o+=" (".concat(n.name,")")),o+=r?": ".concat(r):".";var s="rejects"===t.name?"rejection":"exception";S({actual:void 0,expected:n,operator:t.name,message:"Missing expected ".concat(s).concat(o),stackStartFn:t})}if(n&&!k(e,n,r,t))throw e}function R(t,e,n,r){if(e!==C){if("string"==typeof n&&(r=n,n=void 0),!n||k(e,n)){var i=r?": ".concat(r):".",o="doesNotReject"===t.name?"rejection":"exception";S({actual:e,expected:n,operator:t.name,message:"Got unwanted ".concat(o).concat(i,"\n")+'Actual message: "'.concat(e&&e.message,'"'),stackStartFn:t})}throw e}}function $(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];E.apply(void 0,[$,e.length].concat(e))}w.throws=function t(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];D.apply(void 0,[t,I(e)].concat(r))},w.rejects=function t(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return A(e).then((function(e){return D.apply(void 0,[t,e].concat(r))}))},w.doesNotThrow=function t(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];R.apply(void 0,[t,I(e)].concat(r))},w.doesNotReject=function t(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return A(e).then((function(e){return R.apply(void 0,[t,e].concat(r))}))},w.ifError=function t(e){if(null!=e){var n="ifError got unwanted exception: ";"object"===i(e)&&"string"==typeof e.message?0===e.message.length&&e.constructor?n+=e.constructor.name:n+=e.message:n+=f(e);var r=new h({actual:e,expected:null,operator:"ifError",message:n,stackStartFn:t}),o=e.stack;if("string"==typeof o){var s=o.split("\n");s.shift();for(var a=r.stack.split("\n"),l=0;l<s.length;l++){var c=a.indexOf(s[l]);if(-1!==c){a=a.slice(0,c);break}}r.stack="".concat(a.join("\n"),"\n").concat(s.join("\n"))}throw r}},w.strict=m($,w,{equal:w.strictEqual,deepEqual:w.deepStrictEqual,notEqual:w.notStrictEqual,notDeepEqual:w.notDeepStrictEqual}),w.strict.strict=w.strict},66979:(t,e,n)=>{"use strict";var r=n(82530);function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function s(t,e){return!e||"object"!==h(e)&&"function"!=typeof e?a(t):e}function a(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function l(t){var e="function"==typeof Map?new Map:void 0;return(l=function(t){if(null===t||(n=t,-1===Function.toString.call(n).indexOf("[native code]")))return t;var n;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return u(t,arguments,p(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),d(r,t)})(t)}function c(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function u(t,e,n){return(u=c()?Reflect.construct:function(t,e,n){var r=[null];r.push.apply(r,e);var i=new(Function.bind.apply(t,r));return n&&d(i,n.prototype),i}).apply(null,arguments)}function d(t,e){return(d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function p(t){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function h(t){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var f=n(85663).inspect,g=n(78619).codes.ERR_INVALID_ARG_TYPE;function v(t,e,n){return(void 0===n||n>t.length)&&(n=t.length),t.substring(n-e.length,n)===e}var b="",m="",y="",x="",_={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function w(t){var e=Object.keys(t),n=Object.create(Object.getPrototypeOf(t));return e.forEach((function(e){n[e]=t[e]})),Object.defineProperty(n,"message",{value:t.message}),n}function C(t){return f(t,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function S(t,e,n){var i="",o="",s=0,a="",l=!1,c=C(t),u=c.split("\n"),d=C(e).split("\n"),p=0,f="";if("strictEqual"===n&&"object"===h(t)&&"object"===h(e)&&null!==t&&null!==e&&(n="strictEqualObject"),1===u.length&&1===d.length&&u[0]!==d[0]){var g=u[0].length+d[0].length;if(g<=10){if(!("object"===h(t)&&null!==t||"object"===h(e)&&null!==e||0===t&&0===e))return"".concat(_[n],"\n\n")+"".concat(u[0]," !== ").concat(d[0],"\n")}else if("strictEqualObject"!==n){if(g<(r.stderr&&r.stderr.isTTY?r.stderr.columns:80)){for(;u[0][p]===d[0][p];)p++;p>2&&(f="\n ".concat(function(t,e){if(e=Math.floor(e),0==t.length||0==e)return"";var n=t.length*e;for(e=Math.floor(Math.log(e)/Math.log(2));e;)t+=t,e--;return t+t.substring(0,n-t.length)}(" ",p),"^"),p=0)}}}for(var w=u[u.length-1],S=d[d.length-1];w===S&&(p++<2?a="\n ".concat(w).concat(a):i=w,u.pop(),d.pop(),0!==u.length&&0!==d.length);)w=u[u.length-1],S=d[d.length-1];var E=Math.max(u.length,d.length);if(0===E){var O=c.split("\n");if(O.length>30)for(O[26]="".concat(b,"...").concat(x);O.length>27;)O.pop();return"".concat(_.notIdentical,"\n\n").concat(O.join("\n"),"\n")}p>3&&(a="\n".concat(b,"...").concat(x).concat(a),l=!0),""!==i&&(a="\n ".concat(i).concat(a),i="");var j=0,P=_[n]+"\n".concat(m,"+ actual").concat(x," ").concat(y,"- expected").concat(x),k=" ".concat(b,"...").concat(x," Lines skipped");for(p=0;p<E;p++){var I=p-s;if(u.length<p+1)I>1&&p>2&&(I>4?(o+="\n".concat(b,"...").concat(x),l=!0):I>3&&(o+="\n ".concat(d[p-2]),j++),o+="\n ".concat(d[p-1]),j++),s=p,i+="\n".concat(y,"-").concat(x," ").concat(d[p]),j++;else if(d.length<p+1)I>1&&p>2&&(I>4?(o+="\n".concat(b,"...").concat(x),l=!0):I>3&&(o+="\n ".concat(u[p-2]),j++),o+="\n ".concat(u[p-1]),j++),s=p,o+="\n".concat(m,"+").concat(x," ").concat(u[p]),j++;else{var T=d[p],A=u[p],D=A!==T&&(!v(A,",")||A.slice(0,-1)!==T);D&&v(T,",")&&T.slice(0,-1)===A&&(D=!1,A+=","),D?(I>1&&p>2&&(I>4?(o+="\n".concat(b,"...").concat(x),l=!0):I>3&&(o+="\n ".concat(u[p-2]),j++),o+="\n ".concat(u[p-1]),j++),s=p,o+="\n".concat(m,"+").concat(x," ").concat(A),i+="\n".concat(y,"-").concat(x," ").concat(T),j+=2):(o+=i,i="",1!==I&&0!==p||(o+="\n ".concat(A),j++))}if(j>20&&p<E-2)return"".concat(P).concat(k,"\n").concat(o,"\n").concat(b,"...").concat(x).concat(i,"\n")+"".concat(b,"...").concat(x)}return"".concat(P).concat(l?k:"","\n").concat(o).concat(i).concat(a).concat(f)}var E=function(t){function e(t){var n;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),"object"!==h(t)||null===t)throw new g("options","Object",t);var i=t.message,o=t.operator,l=t.stackStartFn,c=t.actual,u=t.expected,d=Error.stackTraceLimit;if(Error.stackTraceLimit=0,null!=i)n=s(this,p(e).call(this,String(i)));else if(r.stderr&&r.stderr.isTTY&&(r.stderr&&r.stderr.getColorDepth&&1!==r.stderr.getColorDepth()?(b="[34m",m="[32m",x="[39m",y="[31m"):(b="",m="",x="",y="")),"object"===h(c)&&null!==c&&"object"===h(u)&&null!==u&&"stack"in c&&c instanceof Error&&"stack"in u&&u instanceof Error&&(c=w(c),u=w(u)),"deepStrictEqual"===o||"strictEqual"===o)n=s(this,p(e).call(this,S(c,u,o)));else if("notDeepStrictEqual"===o||"notStrictEqual"===o){var f=_[o],v=C(c).split("\n");if("notStrictEqual"===o&&"object"===h(c)&&null!==c&&(f=_.notStrictEqualObject),v.length>30)for(v[26]="".concat(b,"...").concat(x);v.length>27;)v.pop();n=1===v.length?s(this,p(e).call(this,"".concat(f," ").concat(v[0]))):s(this,p(e).call(this,"".concat(f,"\n\n").concat(v.join("\n"),"\n")))}else{var E=C(c),O="",j=_[o];"notDeepEqual"===o||"notEqual"===o?(E="".concat(_[o],"\n\n").concat(E)).length>1024&&(E="".concat(E.slice(0,1021),"...")):(O="".concat(C(u)),E.length>512&&(E="".concat(E.slice(0,509),"...")),O.length>512&&(O="".concat(O.slice(0,509),"...")),"deepEqual"===o||"equal"===o?E="".concat(j,"\n\n").concat(E,"\n\nshould equal\n\n"):O=" ".concat(o," ").concat(O)),n=s(this,p(e).call(this,"".concat(E).concat(O)))}return Error.stackTraceLimit=d,n.generatedMessage=!i,Object.defineProperty(a(n),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),n.code="ERR_ASSERTION",n.actual=c,n.expected=u,n.operator=o,Error.captureStackTrace&&Error.captureStackTrace(a(n),l),n.stack,n.name="AssertionError",s(n)}var n,l,c;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&d(t,e)}(e,t),n=e,(l=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:f.custom,value:function(t,e){return f(this,function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){i(t,e,n[e])}))}return t}({},e,{customInspect:!1,depth:0}))}}])&&o(n.prototype,l),c&&o(n,c),e}(l(Error));t.exports=E},78619:(t,e,n)=>{"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function o(t){return(o=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var a,l,c={};function u(t,e,n){n||(n=Error);var r=function(n){function r(n,s,a){var l;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r),(l=i(this,o(r).call(this,function(t,n,r){return"string"==typeof e?e:e(t,n,r)}(n,s,a)))).code=t,l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&s(t,e)}(r,n),r}(n);c[t]=r}function d(t,e){if(Array.isArray(t)){var n=t.length;return t=t.map((function(t){return String(t)})),n>2?"one of ".concat(e," ").concat(t.slice(0,n-1).join(", "),", or ")+t[n-1]:2===n?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}u("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),u("ERR_INVALID_ARG_TYPE",(function(t,e,i){var o,s,l,c;if(void 0===a&&(a=n(76118)),a("string"==typeof t,"'name' must be a string"),"string"==typeof e&&(s="not ",e.substr(!l||l<0?0:+l,s.length)===s)?(o="must not be",e=e.replace(/^not /,"")):o="must be",function(t,e,n){return(void 0===n||n>t.length)&&(n=t.length),t.substring(n-e.length,n)===e}(t," argument"))c="The ".concat(t," ").concat(o," ").concat(d(e,"type"));else{var u=function(t,e,n){return"number"!=typeof n&&(n=0),!(n+e.length>t.length)&&-1!==t.indexOf(e,n)}(t,".")?"property":"argument";c='The "'.concat(t,'" ').concat(u," ").concat(o," ").concat(d(e,"type"))}return c+=". Received type ".concat(r(i))}),TypeError),u("ERR_INVALID_ARG_VALUE",(function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===l&&(l=n(85663));var i=l.inspect(e);return i.length>128&&(i="".concat(i.slice(0,128),"...")),"The argument '".concat(t,"' ").concat(r,". Received ").concat(i)}),TypeError,RangeError),u("ERR_INVALID_RETURN_VALUE",(function(t,e,n){var i;return i=n&&n.constructor&&n.constructor.name?"instance of ".concat(n.constructor.name):"type ".concat(r(n)),"Expected ".concat(t,' to be returned from the "').concat(e,'"')+" function but got ".concat(i,".")}),TypeError),u("ERR_MISSING_ARGS",(function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];void 0===a&&(a=n(76118)),a(e.length>0,"At least one arg needs to be specified");var i="The ",o=e.length;switch(e=e.map((function(t){return'"'.concat(t,'"')})),o){case 1:i+="".concat(e[0]," argument");break;case 2:i+="".concat(e[0]," and ").concat(e[1]," arguments");break;default:i+=e.slice(0,o-1).join(", "),i+=", and ".concat(e[o-1]," arguments")}return"".concat(i," must be specified")}),TypeError),t.exports.codes=c},61667:(t,e,n)=>{"use strict";function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var s,a=t[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==a.return||a.return()}finally{if(i)throw o}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o=void 0!==/a/g.flags,s=function(t){var e=[];return t.forEach((function(t){return e.push(t)})),e},a=function(t){var e=[];return t.forEach((function(t,n){return e.push([n,t])})),e},l=Object.is?Object.is:n(7402),c=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},u=Number.isNaN?Number.isNaN:n(98622);function d(t){return t.call.bind(t)}var p=d(Object.prototype.hasOwnProperty),h=d(Object.prototype.propertyIsEnumerable),f=d(Object.prototype.toString),g=n(85663).types,v=g.isAnyArrayBuffer,b=g.isArrayBufferView,m=g.isDate,y=g.isMap,x=g.isRegExp,_=g.isSet,w=g.isNativeError,C=g.isBoxedPrimitive,S=g.isNumberObject,E=g.isStringObject,O=g.isBooleanObject,j=g.isBigIntObject,P=g.isSymbolObject,k=g.isFloat32Array,I=g.isFloat64Array;function T(t){if(0===t.length||t.length>10)return!0;for(var e=0;e<t.length;e++){var n=t.charCodeAt(e);if(n<48||n>57)return!0}return 10===t.length&&t>=Math.pow(2,32)}function A(t){return Object.keys(t).filter(T).concat(c(t).filter(Object.prototype.propertyIsEnumerable.bind(t)))} -/*! - * The buffer module from node.js, for the browser. - * - * @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org> - * @license MIT - */function D(t,e){if(t===e)return 0;for(var n=t.length,r=e.length,i=0,o=Math.min(n,r);i<o;++i)if(t[i]!==e[i]){n=t[i],r=e[i];break}return n<r?-1:r<n?1:0}function R(t,e,n,r){if(t===e)return 0!==t||(!n||l(t,e));if(n){if("object"!==i(t))return"number"==typeof t&&u(t)&&u(e);if("object"!==i(e)||null===t||null===e)return!1;if(Object.getPrototypeOf(t)!==Object.getPrototypeOf(e))return!1}else{if(null===t||"object"!==i(t))return(null===e||"object"!==i(e))&&t==e;if(null===e||"object"!==i(e))return!1}var s,a,c,d,p=f(t);if(p!==f(e))return!1;if(Array.isArray(t)){if(t.length!==e.length)return!1;var h=A(t),g=A(e);return h.length===g.length&&N(t,e,n,r,1,h)}if("[object Object]"===p&&(!y(t)&&y(e)||!_(t)&&_(e)))return!1;if(m(t)){if(!m(e)||Date.prototype.getTime.call(t)!==Date.prototype.getTime.call(e))return!1}else if(x(t)){if(!x(e)||(c=t,d=e,!(o?c.source===d.source&&c.flags===d.flags:RegExp.prototype.toString.call(c)===RegExp.prototype.toString.call(d))))return!1}else if(w(t)||t instanceof Error){if(t.message!==e.message||t.name!==e.name)return!1}else{if(b(t)){if(n||!k(t)&&!I(t)){if(!function(t,e){return t.byteLength===e.byteLength&&0===D(new Uint8Array(t.buffer,t.byteOffset,t.byteLength),new Uint8Array(e.buffer,e.byteOffset,e.byteLength))}(t,e))return!1}else if(!function(t,e){if(t.byteLength!==e.byteLength)return!1;for(var n=0;n<t.byteLength;n++)if(t[n]!==e[n])return!1;return!0}(t,e))return!1;var T=A(t),R=A(e);return T.length===R.length&&N(t,e,n,r,0,T)}if(_(t))return!(!_(e)||t.size!==e.size)&&N(t,e,n,r,2);if(y(t))return!(!y(e)||t.size!==e.size)&&N(t,e,n,r,3);if(v(t)){if(a=e,(s=t).byteLength!==a.byteLength||0!==D(new Uint8Array(s),new Uint8Array(a)))return!1}else if(C(t)&&!function(t,e){return S(t)?S(e)&&l(Number.prototype.valueOf.call(t),Number.prototype.valueOf.call(e)):E(t)?E(e)&&String.prototype.valueOf.call(t)===String.prototype.valueOf.call(e):O(t)?O(e)&&Boolean.prototype.valueOf.call(t)===Boolean.prototype.valueOf.call(e):j(t)?j(e)&&BigInt.prototype.valueOf.call(t)===BigInt.prototype.valueOf.call(e):P(e)&&Symbol.prototype.valueOf.call(t)===Symbol.prototype.valueOf.call(e)}(t,e))return!1}return N(t,e,n,r,0)}function $(t,e){return e.filter((function(e){return h(t,e)}))}function N(t,e,n,r,i,o){if(5===arguments.length){o=Object.keys(t);var s=Object.keys(e);if(o.length!==s.length)return!1}for(var a=0;a<o.length;a++)if(!p(e,o[a]))return!1;if(n&&5===arguments.length){var l=c(t);if(0!==l.length){var u=0;for(a=0;a<l.length;a++){var d=l[a];if(h(t,d)){if(!h(e,d))return!1;o.push(d),u++}else if(h(e,d))return!1}var f=c(e);if(l.length!==f.length&&$(e,f).length!==u)return!1}else{var g=c(e);if(0!==g.length&&0!==$(e,g).length)return!1}}if(0===o.length&&(0===i||1===i&&0===t.length||0===t.size))return!0;if(void 0===r)r={val1:new Map,val2:new Map,position:0};else{var v=r.val1.get(t);if(void 0!==v){var b=r.val2.get(e);if(void 0!==b)return v===b}r.position++}r.val1.set(t,r.position),r.val2.set(e,r.position);var m=H(t,e,n,o,r,i);return r.val1.delete(t),r.val2.delete(e),m}function B(t,e,n,r){for(var i=s(t),o=0;o<i.length;o++){var a=i[o];if(R(e,a,n,r))return t.delete(a),!0}return!1}function F(t){switch(i(t)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":t=+t;case"number":if(u(t))return!1}return!0}function L(t,e,n){var r=F(n);return null!=r?r:e.has(r)&&!t.has(r)}function M(t,e,n,r,i){var o=F(n);if(null!=o)return o;var s=e.get(o);return!(void 0===s&&!e.has(o)||!R(r,s,!1,i))&&(!t.has(o)&&R(r,s,!1,i))}function Z(t,e,n,r,i,o){for(var a=s(t),l=0;l<a.length;l++){var c=a[l];if(R(n,c,i,o)&&R(r,e.get(c),i,o))return t.delete(c),!0}return!1}function H(t,e,n,o,l,c){var u=0;if(2===c){if(!function(t,e,n,r){for(var o=null,a=s(t),l=0;l<a.length;l++){var c=a[l];if("object"===i(c)&&null!==c)null===o&&(o=new Set),o.add(c);else if(!e.has(c)){if(n)return!1;if(!L(t,e,c))return!1;null===o&&(o=new Set),o.add(c)}}if(null!==o){for(var u=s(e),d=0;d<u.length;d++){var p=u[d];if("object"===i(p)&&null!==p){if(!B(o,p,n,r))return!1}else if(!n&&!t.has(p)&&!B(o,p,n,r))return!1}return 0===o.size}return!0}(t,e,n,l))return!1}else if(3===c){if(!function(t,e,n,o){for(var s=null,l=a(t),c=0;c<l.length;c++){var u=r(l[c],2),d=u[0],p=u[1];if("object"===i(d)&&null!==d)null===s&&(s=new Set),s.add(d);else{var h=e.get(d);if(void 0===h&&!e.has(d)||!R(p,h,n,o)){if(n)return!1;if(!M(t,e,d,p,o))return!1;null===s&&(s=new Set),s.add(d)}}}if(null!==s){for(var f=a(e),g=0;g<f.length;g++){var v=r(f[g],2),b=(d=v[0],v[1]);if("object"===i(d)&&null!==d){if(!Z(s,t,d,b,n,o))return!1}else if(!(n||t.has(d)&&R(t.get(d),b,!1,o)||Z(s,t,d,b,!1,o)))return!1}return 0===s.size}return!0}(t,e,n,l))return!1}else if(1===c)for(;u<t.length;u++){if(!p(t,u)){if(p(e,u))return!1;for(var d=Object.keys(t);u<d.length;u++){var h=d[u];if(!p(e,h)||!R(t[h],e[h],n,l))return!1}return d.length===Object.keys(e).length}if(!p(e,u)||!R(t[u],e[u],n,l))return!1}for(u=0;u<o.length;u++){var f=o[u];if(!R(t[f],e[f],n,l))return!1}return!0}t.exports={isDeepEqual:function(t,e){return R(t,e,false)},isDeepStrictEqual:function(t,e){return R(t,e,true)}}},48455:(t,e,n)=>{"use strict";var r=n(69854);t.exports=function(){return r(["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],(function(t){return"function"==typeof n.g[t]}))}},97615:(t,e,n)=>{"use strict";var r=n(31801),i=n(12550),o=i(r("String.prototype.indexOf"));t.exports=function(t,e){var n=r(t,!!e);return"function"==typeof n&&o(t,".prototype.")>-1?i(n):n}},12550:(t,e,n)=>{"use strict";var r=n(21930),i=n(31801),o=i("%Function.prototype.apply%"),s=i("%Function.prototype.call%"),a=i("%Reflect.apply%",!0)||r.call(s,o),l=i("%Object.defineProperty%",!0);if(l)try{l({},"a",{value:1})}catch(t){l=null}t.exports=function(){return a(r,s,arguments)};var c=function(){return a(r,o,arguments)};l?l(t.exports,"apply",{value:c}):t.exports.apply=c},96499:t=>{t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=function(t,e){var n=t[1]||"",r=t[3];if(!r)return n;if(e&&"function"==typeof btoa){var i=(s=r,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(s))))+" */"),o=r.sources.map((function(t){return"/*# sourceURL="+r.sourceRoot+t+" */"}));return[n].concat(o).concat([i]).join("\n")}var s;return[n].join("\n")}(e,t);return e[2]?"@media "+e[2]+"{"+n+"}":n})).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var r={},i=0;i<this.length;i++){var o=this[i][0];"number"==typeof o&&(r[o]=!0)}for(i=0;i<t.length;i++){var s=t[i];"number"==typeof s[0]&&r[s[0]]||(n&&!s[2]?s[2]=n:n&&(s[2]="("+s[2]+") and ("+n+")"),e.push(s))}},e}},1852:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return t.replace(n,r)};var n=/[-\s]+(.)?/g;function r(t,e){return e?e.toUpperCase():""}},24893:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.supportedValue=e.supportedProperty=e.prefix=void 0;var r=s(n(80811)),i=s(n(50965)),o=s(n(83537));function s(t){return t&&t.__esModule?t:{default:t}}e.default={prefix:r.default,supportedProperty:i.default,supportedValue:o.default}, -/** - * CSS Vendor prefix detection and property feature testing. - * - * @copyright Oleg Slobodskoi 2015 - * @website https://github.com/jsstyles/css-vendor - * @license MIT - */ -e.prefix=r.default,e.supportedProperty=i.default,e.supportedValue=o.default},80811:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(60307);var o="",s="";if(((r=i)&&r.__esModule?r:{default:r}).default){var a={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},l=document.createElement("p").style;for(var c in a)if(c+"Transform"in l){o=c,s=a[c];break}}e.default={js:o,css:s}},50965:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){if(!a)return t;if(null!=l[t])return l[t];(0,o.default)(t)in a.style?l[t]=t:i.default.js+(0,o.default)("-"+t)in a.style?l[t]=i.default.css+t:l[t]=!1;return l[t]};var r=s(n(60307)),i=s(n(80811)),o=s(n(1852));function s(t){return t&&t.__esModule?t:{default:t}}var a=void 0,l={};if(r.default){a=document.createElement("p");var c=window.getComputedStyle(document.documentElement,"");for(var u in c)isNaN(u)||(l[c[u]]=c[u])}},83537:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){if(!a)return e;if("string"!=typeof e||!isNaN(parseInt(e,10)))return e;var n=t+e;if(null!=s[n])return s[n];try{a.style[t]=e}catch(t){return s[n]=!1,!1}""!==a.style[t]?s[n]=e:("-ms-flex"===(e=i.default.css+e)&&(e="-ms-flexbox"),a.style[t]=e,""!==a.style[t]&&(s[n]=e));s[n]||(s[n]=!1);return a.style[t]="",s[n]};var r=o(n(60307)),i=o(n(80811));function o(t){return t&&t.__esModule?t:{default:t}}var s={},a=void 0;r.default&&(a=document.createElement("p"))},19170:(t,e,n)=>{"use strict";var r=n(806),i="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),o=Object.prototype.toString,s=Array.prototype.concat,a=Object.defineProperty,l=a&&function(){var t={};try{for(var e in a(t,"x",{enumerable:!1,value:t}),t)return!1;return t.x===t}catch(t){return!1}}(),c=function(t,e,n,r){var i;(!(e in t)||"function"==typeof(i=r)&&"[object Function]"===o.call(i)&&r())&&(l?a(t,e,{configurable:!0,enumerable:!1,value:n,writable:!0}):t[e]=n)},u=function(t,e){var n=arguments.length>2?arguments[2]:{},o=r(e);i&&(o=s.call(o,Object.getOwnPropertySymbols(e)));for(var a=0;a<o.length;a+=1)c(t,o[a],e[o[a]],n[o[a]])};u.supportsDescriptors=!!l,t.exports=u},87153:(t,e,n)=>{"use strict";if(n.d(e,{Z:()=>d}),/^(205|55|991)$/.test(n.j))var r=n(27670);if(/^(205|55|991)$/.test(n.j))var i=n(27581);if(/^(205|55|991)$/.test(n.j))var o=n(23157);if(/^(205|55|991)$/.test(n.j))var s=n(52852);if(/^(205|55|991)$/.test(n.j))var a=n(86503);function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function u(t){var e="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__;return(0,r.MT)(i.Z,t&&e&&e({name:"dnd-core",instanceId:"dnd-core"}))}var d=/^(205|55|991)$/.test(n.j)?function(){function t(){var e=this,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];l(this,t),this.isSetUp=!1,this.handleRefCountChange=function(){var t=e.store.getState().refCount>0;e.backend&&(t&&!e.isSetUp?(e.backend.setup(),e.isSetUp=!0):!t&&e.isSetUp&&(e.backend.teardown(),e.isSetUp=!1))};var r=u(n);this.store=r,this.monitor=new s.Z(r,new a.Z(r)),r.subscribe(this.handleRefCountChange)}var e,n,r;return e=t,(n=[{key:"receiveBackend",value:function(t){this.backend=t}},{key:"getMonitor",value:function(){return this.monitor}},{key:"getBackend",value:function(){return this.backend}},{key:"getRegistry",value:function(){return this.monitor.registry}},{key:"getActions",value:function(){var t=this,e=this.store.dispatch,n=(0,o.ZP)(this);return Object.keys(n).reduce((function(r,i){var o,s=n[i];return r[i]=(o=s,function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];var s=o.apply(t,r);void 0!==s&&e(s)}),r}),{})}},{key:"dispatch",value:function(t){this.store.dispatch(t)}}])&&c(e.prototype,n),r&&c(e,r),t}():null},52852:(t,e,n)=>{"use strict";if(n.d(e,{Z:()=>l}),/^(205|55|991)$/.test(n.j))var r=n(94111);if(/^(205|55|991)$/.test(n.j))var i=n(82038);if(/^(205|55|991)$/.test(n.j))var o=n(35457);if(/^(205|55|991)$/.test(n.j))var s=n(30845);function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var l=/^(205|55|991)$/.test(n.j)?function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.store=e,this.registry=n}var e,n,l;return e=t,(n=[{key:"subscribeToStateChange",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{handlerIds:void 0},i=n.handlerIds;(0,r.k)("function"==typeof t,"listener must be a function."),(0,r.k)(void 0===i||Array.isArray(i),"handlerIds, when specified, must be an array of strings.");var o=this.store.getState().stateId,a=function(){var n=e.store.getState(),r=n.stateId;try{r===o||r===o+1&&!(0,s.co)(n.dirtyHandlerIds,i)||t()}finally{o=r}};return this.store.subscribe(a)}},{key:"subscribeToOffsetChange",value:function(t){var e=this;(0,r.k)("function"==typeof t,"listener must be a function.");var n=this.store.getState().dragOffset;return this.store.subscribe((function(){var r=e.store.getState().dragOffset;r!==n&&(n=r,t())}))}},{key:"canDragSource",value:function(t){if(!t)return!1;var e=this.registry.getSource(t);return(0,r.k)(e,"Expected to find a valid source."),!this.isDragging()&&e.canDrag(this,t)}},{key:"canDropOnTarget",value:function(t){if(!t)return!1;var e=this.registry.getTarget(t);if((0,r.k)(e,"Expected to find a valid target."),!this.isDragging()||this.didDrop())return!1;var n=this.registry.getTargetType(t),o=this.getItemType();return(0,i.Z)(n,o)&&e.canDrop(this,t)}},{key:"isDragging",value:function(){return Boolean(this.getItemType())}},{key:"isDraggingSource",value:function(t){if(!t)return!1;var e=this.registry.getSource(t,!0);return(0,r.k)(e,"Expected to find a valid source."),!(!this.isDragging()||!this.isSourcePublic())&&this.registry.getSourceType(t)===this.getItemType()&&e.isDragging(this,t)}},{key:"isOverTarget",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{shallow:!1};if(!t)return!1;var n=e.shallow;if(!this.isDragging())return!1;var r=this.registry.getTargetType(t),o=this.getItemType();if(o&&!(0,i.Z)(r,o))return!1;var s=this.getTargetIds();if(!s.length)return!1;var a=s.indexOf(t);return n?a===s.length-1:a>-1}},{key:"getItemType",value:function(){return this.store.getState().dragOperation.itemType}},{key:"getItem",value:function(){return this.store.getState().dragOperation.item}},{key:"getSourceId",value:function(){return this.store.getState().dragOperation.sourceId}},{key:"getTargetIds",value:function(){return this.store.getState().dragOperation.targetIds}},{key:"getDropResult",value:function(){return this.store.getState().dragOperation.dropResult}},{key:"didDrop",value:function(){return this.store.getState().dragOperation.didDrop}},{key:"isSourcePublic",value:function(){return this.store.getState().dragOperation.isSourcePublic}},{key:"getInitialClientOffset",value:function(){return this.store.getState().dragOffset.initialClientOffset}},{key:"getInitialSourceClientOffset",value:function(){return this.store.getState().dragOffset.initialSourceClientOffset}},{key:"getClientOffset",value:function(){return this.store.getState().dragOffset.clientOffset}},{key:"getSourceClientOffset",value:function(){return(0,o.YY)(this.store.getState().dragOffset)}},{key:"getDifferenceFromInitialOffset",value:function(){return(0,o.ar)(this.store.getState().dragOffset)}}])&&a(e.prototype,n),l&&a(e,l),t}():null},86503:(t,e,n)=>{"use strict";n.d(e,{Z:()=>P});var r=n(94111),i=n(33284),o=n(4282),s=n(94379),a=n(27703);function l(t){u.length||(c(),!0),u[u.length]=t}var c,u=[],d=0;function p(){for(;d<u.length;){var t=d;if(d+=1,u[t].call(),d>1024){for(var e=0,n=u.length-d;e<n;e++)u[e]=u[e+d];u.length-=d,d=0}}u.length=0,d=0,!1}var h,f,g,v=void 0!==n.g?n.g:self,b=v.MutationObserver||v.WebKitMutationObserver;function m(t){return function(){var e=setTimeout(r,0),n=setInterval(r,50);function r(){clearTimeout(e),clearInterval(n),t()}}}"function"==typeof b?(h=1,f=new b(p),g=document.createTextNode(""),f.observe(g,{characterData:!0}),c=function(){h=-h,g.data=h}):c=m(p),l.requestFlush=c,l.makeRequestCallFromTimer=m;var y=[],x=[],_=l.makeRequestCallFromTimer((function(){if(x.length)throw x.shift()}));function w(t){var e;(e=y.length?y.pop():new C).task=t,l(e)}var C=function(){function t(){}return t.prototype.call=function(){try{this.task.call()}catch(t){w.onerror?w.onerror(t):(x.push(t),_())}finally{this.task=null,y[y.length]=this}},t}();function S(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function E(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if(!(Symbol.iterator in Object(t))&&"[object Arguments]"!==Object.prototype.toString.call(t))return;var n=[],r=!0,i=!1,o=void 0;try{for(var s,a=t[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==a.return||a.return()}finally{if(i)throw o}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function O(t){switch(t[0]){case"S":return s.t.SOURCE;case"T":return s.t.TARGET;default:(0,r.k)(!1,"Cannot parse handler ID: ".concat(t))}}function j(t,e){var n=t.entries(),r=!1;do{var i=n.next(),o=i.done;if(E(i.value,2)[1]===e)return!0;r=!!o}while(!r);return!1}var P=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=e}var e,n,l;return e=t,(n=[{key:"addSource",value:function(t,e){(0,a.sM)(t),(0,a.up)(e);var n=this.addHandler(s.t.SOURCE,t,e);return this.store.dispatch((0,i.j1)(n)),n}},{key:"addTarget",value:function(t,e){(0,a.sM)(t,!0),(0,a.JP)(e);var n=this.addHandler(s.t.TARGET,t,e);return this.store.dispatch((0,i.jn)(n)),n}},{key:"containsHandler",value:function(t){return j(this.dragSources,t)||j(this.dropTargets,t)}},{key:"getSource",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];(0,r.k)(this.isSourceId(t),"Expected a valid source ID.");var n=e&&t===this.pinnedSourceId,i=n?this.pinnedSource:this.dragSources.get(t);return i}},{key:"getTarget",value:function(t){return(0,r.k)(this.isTargetId(t),"Expected a valid target ID."),this.dropTargets.get(t)}},{key:"getSourceType",value:function(t){return(0,r.k)(this.isSourceId(t),"Expected a valid source ID."),this.types.get(t)}},{key:"getTargetType",value:function(t){return(0,r.k)(this.isTargetId(t),"Expected a valid target ID."),this.types.get(t)}},{key:"isSourceId",value:function(t){return O(t)===s.t.SOURCE}},{key:"isTargetId",value:function(t){return O(t)===s.t.TARGET}},{key:"removeSource",value:function(t){var e=this;(0,r.k)(this.getSource(t),"Expected an existing source."),this.store.dispatch((0,i.wZ)(t)),w((function(){e.dragSources.delete(t),e.types.delete(t)}))}},{key:"removeTarget",value:function(t){(0,r.k)(this.getTarget(t),"Expected an existing target."),this.store.dispatch((0,i.BT)(t)),this.dropTargets.delete(t),this.types.delete(t)}},{key:"pinSource",value:function(t){var e=this.getSource(t);(0,r.k)(e,"Expected an existing source."),this.pinnedSourceId=t,this.pinnedSource=e}},{key:"unpinSource",value:function(){(0,r.k)(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}},{key:"addHandler",value:function(t,e,n){var r=function(t){var e=(0,o.Z)().toString();switch(t){case s.t.SOURCE:return"S".concat(e);case s.t.TARGET:return"T".concat(e);default:throw new Error("Unknown Handler Role: ".concat(t))}}(t);return this.types.set(r,e),t===s.t.SOURCE?this.dragSources.set(r,n):t===s.t.TARGET&&this.dropTargets.set(r,n),r}}])&&S(e.prototype,n),l&&S(e,l),t}()},27091:(t,e,n)=>{"use strict";if(n.d(e,{Z:()=>l}),/^(205|55|991)$/.test(n.j))var r=n(94111);if(/^(205|55|991)$/.test(n.j))var i=n(96626);if(/^(205|55|991)$/.test(n.j))var o=n(10908);var s=n(33862),a={type:s.TL,payload:{clientOffset:null,sourceClientOffset:null}};function l(t){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{publishSource:!0},r=n.publishSource,o=void 0===r||r,l=n.clientOffset,h=n.getSourceClientOffset,f=t.getMonitor(),g=t.getRegistry();t.dispatch((0,i.T)(l)),c(e,f,g);var v=p(e,f);if(null!==v){var b=null;l&&(u(h),b=h(v)),t.dispatch((0,i.T)(l,b));var m=g.getSource(v),y=m.beginDrag(f,v);d(y),g.pinSource(v);var x=g.getSourceType(v);return{type:s.qu,payload:{itemType:x,item:y,sourceId:v,clientOffset:l||null,sourceClientOffset:b||null,isSourcePublic:!!o}}}t.dispatch(a)}}function c(t,e,n){(0,r.k)(!e.isDragging(),"Cannot call beginDrag while dragging."),t.forEach((function(t){(0,r.k)(n.getSource(t),"Expected sourceIds to be registered.")}))}function u(t){(0,r.k)("function"==typeof t,"When clientOffset is provided, getSourceClientOffset must be a function.")}function d(t){(0,r.k)((0,o.Kn)(t),"Item must be an object.")}function p(t,e){for(var n=null,r=t.length-1;r>=0;r--)if(e.canDragSource(t[r])){n=t[r];break}return n}},3980:(t,e,n)=>{"use strict";if(n.d(e,{Z:()=>c}),/^(205|55|991)$/.test(n.j))var r=n(94111);if(/^(205|55|991)$/.test(n.j))var i=n(33862);if(/^(205|55|991)$/.test(n.j))var o=n(10908);function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){l(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function l(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c(t){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.getMonitor(),r=t.getRegistry();u(n);var o=p(n);o.forEach((function(o,s){var l=d(o,s,r,n),c={type:i.rp,payload:{dropResult:a({},e,{},l)}};t.dispatch(c)}))}}function u(t){(0,r.k)(t.isDragging(),"Cannot call drop while not dragging."),(0,r.k)(!t.didDrop(),"Cannot call drop twice during one drag operation.")}function d(t,e,n,i){var s=n.getTarget(t),a=s?s.drop(i,t):void 0;return function(t){(0,r.k)(void 0===t||(0,o.Kn)(t),"Drop result must either be an object or undefined.")}(a),void 0===a&&(a=0===e?{}:i.getDropResult()),a}function p(t){var e=t.getTargetIds().filter(t.canDropOnTarget,t);return e.reverse(),e}},19017:(t,e,n)=>{"use strict";if(n.d(e,{Z:()=>o}),/^(205|55|991)$/.test(n.j))var r=n(94111);if(/^(205|55|991)$/.test(n.j))var i=n(33862);function o(t){return function(){var e=t.getMonitor(),n=t.getRegistry();!function(t){(0,r.k)(t.isDragging(),"Cannot call endDrag while not dragging.")}(e);var o=e.getSourceId();return n.getSource(o,!0).endDrag(e,o),n.unpinSource(),{type:i.Bs}}}},82863:(t,e,n)=>{"use strict";if(n.d(e,{Z:()=>s}),/^(205|55|991)$/.test(n.j))var r=n(94111);if(/^(205|55|991)$/.test(n.j))var i=n(82038);if(/^(205|55|991)$/.test(n.j))var o=n(33862);function s(t){return function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.clientOffset;a(e);var i=e.slice(0),s=t.getMonitor(),d=t.getRegistry();l(i,s,d);var p=s.getItemType();return c(i,d,p),u(i,s,d),{type:o.$T,payload:{targetIds:i,clientOffset:r||null}}}}function a(t){(0,r.k)(Array.isArray(t),"Expected targetIds to be an array.")}function l(t,e,n){(0,r.k)(e.isDragging(),"Cannot call hover while not dragging."),(0,r.k)(!e.didDrop(),"Cannot call hover after drop.");for(var i=0;i<t.length;i++){var o=t[i];(0,r.k)(t.lastIndexOf(o)===i,"Expected targetIds to be unique in the passed array.");var s=n.getTarget(o);(0,r.k)(s,"Expected targetIds to be registered.")}}function c(t,e,n){for(var r=t.length-1;r>=0;r--){var o=t[r],s=e.getTargetType(o);(0,i.Z)(s,n)||t.splice(r,1)}}function u(t,e,n){t.forEach((function(t){n.getTarget(t).hover(e,t)}))}},23157:(t,e,n)=>{"use strict";if(n.d(e,{ZP:()=>l}),/^(205|55|991)$/.test(n.j))var r=n(27091);if(/^(205|55|991)$/.test(n.j))var i=n(81743);if(/^(205|55|991)$/.test(n.j))var o=n(82863);if(/^(205|55|991)$/.test(n.j))var s=n(3980);if(/^(205|55|991)$/.test(n.j))var a=n(19017);function l(t){return{beginDrag:(0,r.Z)(t),publishDragSource:(0,i.Z)(t),hover:(0,o.Z)(t),drop:(0,s.Z)(t),endDrag:(0,a.Z)(t)}}},96626:(t,e,n)=>{"use strict";if(n.d(e,{T:()=>i}),/^(205|55|991)$/.test(n.j))var r=n(33862);function i(t,e){return{type:r.TL,payload:{sourceClientOffset:e||null,clientOffset:t||null}}}},81743:(t,e,n)=>{"use strict";if(n.d(e,{Z:()=>i}),/^(205|55|991)$/.test(n.j))var r=n(33862);function i(t){return function(){if(t.getMonitor().isDragging())return{type:r.js}}}},33862:(t,e,n)=>{"use strict";n.d(e,{TL:()=>r,qu:()=>i,js:()=>o,$T:()=>s,rp:()=>a,Bs:()=>l});var r="dnd-core/INIT_COORDS",i="dnd-core/BEGIN_DRAG",o="dnd-core/PUBLISH_DRAG_SOURCE",s="dnd-core/HOVER",a="dnd-core/DROP",l="dnd-core/END_DRAG"},33284:(t,e,n)=>{"use strict";n.d(e,{fu:()=>r,Rd:()=>i,SG:()=>o,IS:()=>s,j1:()=>a,jn:()=>l,wZ:()=>c,BT:()=>u});var r="dnd-core/ADD_SOURCE",i="dnd-core/ADD_TARGET",o="dnd-core/REMOVE_SOURCE",s="dnd-core/REMOVE_TARGET";function a(t){return{type:r,payload:{sourceId:t}}}function l(t){return{type:i,payload:{targetId:t}}}function c(t){return{type:o,payload:{sourceId:t}}}function u(t){return{type:s,payload:{targetId:t}}}},27703:(t,e,n)=>{"use strict";if(n.d(e,{up:()=>o,JP:()=>s,sM:()=>a}),/^(205|55|991)$/.test(n.j))var r=n(94111);function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t){(0,r.k)("function"==typeof t.canDrag,"Expected canDrag to be a function."),(0,r.k)("function"==typeof t.beginDrag,"Expected beginDrag to be a function."),(0,r.k)("function"==typeof t.endDrag,"Expected endDrag to be a function.")}function s(t){(0,r.k)("function"==typeof t.canDrop,"Expected canDrop to be a function."),(0,r.k)("function"==typeof t.hover,"Expected hover to be a function."),(0,r.k)("function"==typeof t.drop,"Expected beginDrag to be a function.")}function a(t,e){e&&Array.isArray(t)?t.forEach((function(t){return a(t,!1)})):(0,r.k)("string"==typeof t||"symbol"===i(t),e?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}},28710:(t,e,n)=>{"use strict";if(n.d(e,{i:()=>i}),/^(205|55|991)$/.test(n.j))var r=n(87153);function i(t,e,n,i){var o=new r.Z(i),s=t(o,e,n);return o.receiveBackend(s),o}},94379:(t,e,n)=>{"use strict";var r;n.d(e,{t:()=>r}),function(t){t.SOURCE="SOURCE",t.TARGET="TARGET"}(r||(r={}))},84757:(t,e,n)=>{"use strict";if(n.d(e,{Z:()=>l}),/^(205|55|991)$/.test(n.j))var r=n(33862);if(/^(205|55|991)$/.test(n.j))var i=n(33284);if(/^(205|55|991)$/.test(n.j))var o=n(13951);if(/^(205|55|991)$/.test(n.j))var s=n(30845);if(/^(205|55|991)$/.test(n.j))var a=n(10908);function l(){arguments.length>0&&void 0!==arguments[0]||s.Hn;var t=arguments.length>1?arguments[1]:void 0;switch(t.type){case r.$T:break;case i.fu:case i.Rd:case i.IS:case i.SG:return s.Hn;case r.qu:case r.js:case r.Bs:case r.rp:default:return s.QN}var e=t.payload,n=e.targetIds,l=void 0===n?[]:n,c=e.prevTargetIds,u=void 0===c?[]:c,d=(0,a.dl)(l,u),p=d.length>0||!(0,o.Hj)(l,u);if(!p)return s.Hn;var h=u[u.length-1],f=l[l.length-1];return h!==f&&(h&&d.push(h),f&&d.push(f)),d}},15246:(t,e,n)=>{"use strict";if(n.d(e,{Z:()=>c}),/^(205|55|991)$/.test(n.j))var r=n(33862);if(/^(205|55|991)$/.test(n.j))var i=n(13951);function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){a(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var l={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function c(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l,e=arguments.length>1?arguments[1]:void 0,n=e.payload;switch(e.type){case r.TL:case r.qu:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case r.$T:return(0,i.YJ)(t.clientOffset,n.clientOffset)?t:s({},t,{clientOffset:n.clientOffset});case r.Bs:case r.rp:return l;default:return t}}},42378:(t,e,n)=>{"use strict";if(n.d(e,{Z:()=>u}),/^(205|55|991)$/.test(n.j))var r=n(33862);if(/^(205|55|991)$/.test(n.j))var i=n(33284);if(/^(205|55|991)$/.test(n.j))var o=n(10908);function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){l(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function l(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var c={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function u(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c,e=arguments.length>1?arguments[1]:void 0,n=e.payload;switch(e.type){case r.qu:return a({},t,{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case r.js:return a({},t,{isSourcePublic:!0});case r.$T:return a({},t,{targetIds:n.targetIds});case i.IS:return-1===t.targetIds.indexOf(n.targetId)?t:a({},t,{targetIds:(0,o.zu)(t.targetIds,n.targetId)});case r.rp:return a({},t,{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case r.Bs:return a({},t,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return t}}},27581:(t,e,n)=>{"use strict";if(n.d(e,{Z:()=>p}),/^(205|55|991)$/.test(n.j))var r=n(15246);if(/^(205|55|991)$/.test(n.j))var i=n(42378);if(/^(205|55|991)$/.test(n.j))var o=n(97197);if(/^(205|55|991)$/.test(n.j))var s=n(84757);if(/^(205|55|991)$/.test(n.j))var a=n(98743);if(/^(205|55|991)$/.test(n.j))var l=n(10908);function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){d(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function d(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function p(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return{dirtyHandlerIds:(0,s.Z)(t.dirtyHandlerIds,{type:e.type,payload:u({},e.payload,{prevTargetIds:(0,l.U2)(t,"dragOperation.targetIds",[])})}),dragOffset:(0,r.Z)(t.dragOffset,e),refCount:(0,o.Z)(t.refCount,e),dragOperation:(0,i.Z)(t.dragOperation,e),stateId:(0,a.Z)(t.stateId)}}},97197:(t,e,n)=>{"use strict";if(n.d(e,{Z:()=>i}),/^(205|55|991)$/.test(n.j))var r=n(33284);function i(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case r.fu:case r.Rd:return t+1;case r.SG:case r.IS:return t-1;default:return t}}},98743:(t,e,n)=>{"use strict";function r(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return t+1}n.d(e,{Z:()=>r})},35457:(t,e,n)=>{"use strict";function r(t,e){return{x:t.x-e.x,y:t.y-e.y}}function i(t){var e,n,i=t.clientOffset,o=t.initialClientOffset,s=t.initialSourceClientOffset;return i&&o&&s?r((n=s,{x:(e=i).x+n.x,y:e.y+n.y}),o):null}function o(t){var e=t.clientOffset,n=t.initialClientOffset;return e&&n?r(e,n):null}n.d(e,{YY:()=>i,ar:()=>o})},30845:(t,e,n)=>{"use strict";if(n.d(e,{Hn:()=>i,QN:()=>o,co:()=>s}),/^(205|55|991)$/.test(n.j))var r=n(10908);var i=[],o=[];function s(t,e){return t!==i&&(t===o||void 0===e||(0,r.jV)(e,t).length>0)}i.__IS_NONE__=!0,o.__IS_ALL__=!0},13951:(t,e,n)=>{"use strict";n.d(e,{YJ:()=>i,Hj:()=>o});var r=function(t,e){return t===e};function i(t,e){return!t&&!e||!(!t||!e)&&(t.x===e.x&&t.y===e.y)}function o(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r;if(t.length!==e.length)return!1;for(var i=0;i<t.length;++i)if(!n(t[i],e[i]))return!1;return!0}},4282:(t,e,n)=>{"use strict";n.d(e,{Z:()=>i});var r=0;function i(){return r++}},10908:(t,e,n)=>{"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e,n){return e.split(".").reduce((function(t,e){return t&&t[e]?t[e]:n||null}),t)}function o(t,e){return t.filter((function(t){return t!==e}))}function s(t){return"object"===r(t)}function a(t,e){var n=new Map,r=function(t){return n.set(t,n.has(t)?n.get(t)+1:1)};t.forEach(r),e.forEach(r);var i=[];return n.forEach((function(t,e){1===t&&i.push(e)})),i}function l(t,e){return t.filter((function(t){return e.indexOf(t)>-1}))}n.d(e,{U2:()=>i,zu:()=>o,Kn:()=>s,dl:()=>a,jV:()=>l})},82038:(t,e,n)=>{"use strict";function r(t,e){return null===e?null===t:Array.isArray(t)?t.some((function(t){return t===e})):t===e}n.d(e,{Z:()=>r})},16768:(t,e,n)=>{"use strict";n.d(e,{RY:()=>o,li:()=>c,R:()=>i,ZP:()=>d});const r=function(t,e){return{_isMBTransition:!0,event:t,check:e}};var i=r("touchstart",(function(t){return null!=t.touches})),o=(r("dragstart",(function(t){return!!t.type&&(-1!==t.type.indexOf("drag")||-1!==t.type.indexOf("drop"))})),r("mousedown",(function(t){return!!t.type&&(-1===t.type.indexOf("touch")&&-1!==t.type.indexOf("mouse"))}))),s=n(67115);function a(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var c=new function t(){var e=this;l(this,t),this.register=function(t){e.previews.push(t)},this.unregister=function(t){for(var n;-1!==(n=e.previews.indexOf(t));)e.previews.splice(n,1)},this.backendChanged=function(t){var n=!0,r=!1,i=void 0;try{for(var o,s=e.previews[Symbol.iterator]();!(n=(o=s.next()).done);n=!0){o.value.backendChanged(t)}}catch(t){r=!0,i=t}finally{try{n||null==s.return||s.return()}finally{if(r)throw i}}},this.previews=[]},u=function t(e,n,r){var i=this;l(this,t),this.setup=function(){if("undefined"!=typeof window){if(i.constructor.isSetUp)throw new Error("Cannot have two MultiBackends at the same time.");i.constructor.isSetUp=!0,i.addEventListeners(window),i.backends[i.current].instance.setup()}},this.teardown=function(){"undefined"!=typeof window&&(i.constructor.isSetUp=!1,i.removeEventListeners(window),i.backends[i.current].instance.teardown())},this.connectDragSource=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return i.connectBackend("connectDragSource",e)},this.connectDragPreview=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return i.connectBackend("connectDragPreview",e)},this.connectDropTarget=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return i.connectBackend("connectDropTarget",e)},this.previewEnabled=function(){return i.backends[i.current].preview},this.addEventListeners=function(t){i.backends.forEach((function(e){e.transition&&t.addEventListener(e.transition.event,i.backendSwitcher,!0)}))},this.removeEventListeners=function(t){i.backends.forEach((function(e){e.transition&&t.removeEventListener(e.transition.event,i.backendSwitcher,!0)}))},this.backendSwitcher=function(t){var e=i.current,n=0;if(i.backends.some((function(e){return n!==i.current&&e.transition&&e.transition.check(t)?(i.current=n,!0):(n+=1,!1)})),i.current!==e){i.backends[e].instance.teardown(),Object.keys(i.nodes).forEach((function(t){var e=i.nodes[t];e.handler(),e.handler=i.callBackend(e.func,e.args)})),c.backendChanged(i);var r=i.backends[i.current];if(r.instance.setup(),r.skipDispatchOnTransition)return;var o=null;try{o=new t.constructor(t.type,t)}catch(e){(o=document.createEvent("Event")).initEvent(t.type,t.bubbles,t.cancelable)}t.target.dispatchEvent(o)}},this.callBackend=function(t,e){var n;return(n=i.backends[i.current].instance)[t].apply(n,a(e))},this.connectBackend=function(t,e){var n="".concat(t,"_").concat(e[0]),r=i.callBackend(t,e);return i.nodes[n]={func:t,args:e,handler:r},function(){var t,e=(t=i.nodes[n]).handler.apply(t,arguments);return delete i.nodes[n],e}};var o=(0,s.Z)({backends:[]},r||{});if(o.backends.length<1)throw new Error("You must specify at least one Backend, if you are coming from 2.x.x (or don't understand this error)\n see this guide: https://github.com/louisbrunner/dnd-multi-backend/tree/master/packages/react-dnd-multi-backend#migrating-from-2xx");this.current=0,this.backends=[],o.backends.forEach((function(t){if(!t.backend)throw new Error("You must specify a 'backend' property in your Backend entry: ".concat(t));var r=t.transition;if(r&&!r._isMBTransition)throw new Error("You must specify a valid 'transition' property (either undefined or the return of 'createTransition') in your Backend entry: ".concat(t));i.backends.push({instance:t.backend(e,n,t.options),preview:t.preview||!1,transition:r,skipDispatchOnTransition:Boolean(t.skipDispatchOnTransition)})})),this.nodes={}};const d=function(t,e,n){return new u(t,e,n)}},67115:(t,e,n)=>{"use strict";function r(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return n.forEach((function(e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})),t}n.d(e,{Z:()=>r})},83245:function(t){ -/*! @license DOMPurify | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.2.2/LICENSE */ -t.exports=function(){"use strict";function t(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}var e=Object.hasOwnProperty,n=Object.setPrototypeOf,r=Object.isFrozen,i=Object.getPrototypeOf,o=Object.getOwnPropertyDescriptor,s=Object.freeze,a=Object.seal,l=Object.create,c="undefined"!=typeof Reflect&&Reflect,u=c.apply,d=c.construct;u||(u=function(t,e,n){return t.apply(e,n)}),s||(s=function(t){return t}),a||(a=function(t){return t}),d||(d=function(e,n){return new(Function.prototype.bind.apply(e,[null].concat(t(n))))});var p=w(Array.prototype.forEach),h=w(Array.prototype.pop),f=w(Array.prototype.push),g=w(String.prototype.toLowerCase),v=w(String.prototype.match),b=w(String.prototype.replace),m=w(String.prototype.indexOf),y=w(String.prototype.trim),x=w(RegExp.prototype.test),_=C(TypeError);function w(t){return function(e){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return u(t,e,r)}}function C(t){return function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return d(t,n)}}function S(t,e){n&&n(t,null);for(var i=e.length;i--;){var o=e[i];if("string"==typeof o){var s=g(o);s!==o&&(r(e)||(e[i]=s),o=s)}t[o]=!0}return t}function E(t){var n=l(null),r=void 0;for(r in t)u(e,t,[r])&&(n[r]=t[r]);return n}function O(t,e){for(;null!==t;){var n=o(t,e);if(n){if(n.get)return w(n.get);if("function"==typeof n.value)return w(n.value)}t=i(t)}function r(t){return console.warn("fallback value for",t),null}return r}var j=s(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),P=s(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),k=s(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),I=s(["animate","color-profile","cursor","discard","fedropshadow","feimage","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),T=s(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),A=s(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),D=s(["#text"]),R=s(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns"]),$=s(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),N=s(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),B=s(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),F=a(/\{\{[\s\S]*|[\s\S]*\}\}/gm),L=a(/<%[\s\S]*|[\s\S]*%>/gm),M=a(/^data-[\-\w.\u00B7-\uFFFF]/),Z=a(/^aria-[\-\w]+$/),H=a(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),z=a(/^(?:\w+script|data):/i),U=a(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),W="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};function G(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}var V=function(){return"undefined"==typeof window?null:window},q=function(t,e){if("object"!==(void 0===t?"undefined":W(t))||"function"!=typeof t.createPolicy)return null;var n=null,r="data-tt-policy-suffix";e.currentScript&&e.currentScript.hasAttribute(r)&&(n=e.currentScript.getAttribute(r));var i="dompurify"+(n?"#"+n:"");try{return t.createPolicy(i,{createHTML:function(t){return t}})}catch(t){return console.warn("TrustedTypes policy "+i+" could not be created."),null}};function K(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:V(),e=function(t){return K(t)};if(e.version="2.2.7",e.removed=[],!t||!t.document||9!==t.document.nodeType)return e.isSupported=!1,e;var n=t.document,r=t.document,i=t.DocumentFragment,o=t.HTMLTemplateElement,a=t.Node,l=t.Element,c=t.NodeFilter,u=t.NamedNodeMap,d=void 0===u?t.NamedNodeMap||t.MozNamedAttrMap:u,w=t.Text,C=t.Comment,Y=t.DOMParser,Q=t.trustedTypes,X=l.prototype,J=O(X,"cloneNode"),tt=O(X,"nextSibling"),et=O(X,"childNodes"),nt=O(X,"parentNode");if("function"==typeof o){var rt=r.createElement("template");rt.content&&rt.content.ownerDocument&&(r=rt.content.ownerDocument)}var it=q(Q,n),ot=it&&Bt?it.createHTML(""):"",st=r,at=st.implementation,lt=st.createNodeIterator,ct=st.getElementsByTagName,ut=st.createDocumentFragment,dt=n.importNode,pt={};try{pt=E(r).documentMode?r.documentMode:{}}catch(t){}var ht={};e.isSupported="function"==typeof nt&&at&&void 0!==at.createHTMLDocument&&9!==pt;var ft=F,gt=L,vt=M,bt=Z,mt=z,yt=U,xt=H,_t=null,wt=S({},[].concat(G(j),G(P),G(k),G(T),G(D))),Ct=null,St=S({},[].concat(G(R),G($),G(N),G(B))),Et=null,Ot=null,jt=!0,Pt=!0,kt=!1,It=!1,Tt=!1,At=!1,Dt=!1,Rt=!1,$t=!1,Nt=!0,Bt=!1,Ft=!0,Lt=!0,Mt=!1,Zt={},Ht=S({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),zt=null,Ut=S({},["audio","video","img","source","image","track"]),Wt=null,Gt=S({},["alt","class","for","id","label","name","pattern","placeholder","summary","title","value","style","xmlns"]),Vt=null,qt=r.createElement("form"),Kt=function(t){Vt&&Vt===t||(t&&"object"===(void 0===t?"undefined":W(t))||(t={}),t=E(t),_t="ALLOWED_TAGS"in t?S({},t.ALLOWED_TAGS):wt,Ct="ALLOWED_ATTR"in t?S({},t.ALLOWED_ATTR):St,Wt="ADD_URI_SAFE_ATTR"in t?S(E(Gt),t.ADD_URI_SAFE_ATTR):Gt,zt="ADD_DATA_URI_TAGS"in t?S(E(Ut),t.ADD_DATA_URI_TAGS):Ut,Et="FORBID_TAGS"in t?S({},t.FORBID_TAGS):{},Ot="FORBID_ATTR"in t?S({},t.FORBID_ATTR):{},Zt="USE_PROFILES"in t&&t.USE_PROFILES,jt=!1!==t.ALLOW_ARIA_ATTR,Pt=!1!==t.ALLOW_DATA_ATTR,kt=t.ALLOW_UNKNOWN_PROTOCOLS||!1,It=t.SAFE_FOR_TEMPLATES||!1,Tt=t.WHOLE_DOCUMENT||!1,Rt=t.RETURN_DOM||!1,$t=t.RETURN_DOM_FRAGMENT||!1,Nt=!1!==t.RETURN_DOM_IMPORT,Bt=t.RETURN_TRUSTED_TYPE||!1,Dt=t.FORCE_BODY||!1,Ft=!1!==t.SANITIZE_DOM,Lt=!1!==t.KEEP_CONTENT,Mt=t.IN_PLACE||!1,xt=t.ALLOWED_URI_REGEXP||xt,It&&(Pt=!1),$t&&(Rt=!0),Zt&&(_t=S({},[].concat(G(D))),Ct=[],!0===Zt.html&&(S(_t,j),S(Ct,R)),!0===Zt.svg&&(S(_t,P),S(Ct,$),S(Ct,B)),!0===Zt.svgFilters&&(S(_t,k),S(Ct,$),S(Ct,B)),!0===Zt.mathMl&&(S(_t,T),S(Ct,N),S(Ct,B))),t.ADD_TAGS&&(_t===wt&&(_t=E(_t)),S(_t,t.ADD_TAGS)),t.ADD_ATTR&&(Ct===St&&(Ct=E(Ct)),S(Ct,t.ADD_ATTR)),t.ADD_URI_SAFE_ATTR&&S(Wt,t.ADD_URI_SAFE_ATTR),Lt&&(_t["#text"]=!0),Tt&&S(_t,["html","head","body"]),_t.table&&(S(_t,["tbody"]),delete Et.tbody),s&&s(t),Vt=t)},Yt=S({},["mi","mo","mn","ms","mtext"]),Qt=S({},["foreignobject","desc","title","annotation-xml"]),Xt=S({},P);S(Xt,k),S(Xt,I);var Jt=S({},T);S(Jt,A);var te="http://www.w3.org/1998/Math/MathML",ee="http://www.w3.org/2000/svg",ne="http://www.w3.org/1999/xhtml",re=function(t){var e=nt(t);e&&e.tagName||(e={namespaceURI:ne,tagName:"template"});var n=g(t.tagName),r=g(e.tagName);if(t.namespaceURI===ee)return e.namespaceURI===ne?"svg"===n:e.namespaceURI===te?"svg"===n&&("annotation-xml"===r||Yt[r]):Boolean(Xt[n]);if(t.namespaceURI===te)return e.namespaceURI===ne?"math"===n:e.namespaceURI===ee?"math"===n&&Qt[r]:Boolean(Jt[n]);if(t.namespaceURI===ne){if(e.namespaceURI===ee&&!Qt[r])return!1;if(e.namespaceURI===te&&!Yt[r])return!1;var i=S({},["title","style","font","a","script"]);return!Jt[n]&&(i[n]||!Xt[n])}return!1},ie=function(t){f(e.removed,{element:t});try{t.parentNode.removeChild(t)}catch(e){try{t.outerHTML=ot}catch(e){t.remove()}}},oe=function(t,n){try{f(e.removed,{attribute:n.getAttributeNode(t),from:n})}catch(t){f(e.removed,{attribute:null,from:n})}if(n.removeAttribute(t),"is"===t&&!Ct[t])if(Rt||$t)try{ie(n)}catch(t){}else try{n.setAttribute(t,"")}catch(t){}},se=function(t){var e=void 0,n=void 0;if(Dt)t="<remove></remove>"+t;else{var i=v(t,/^[\r\n\t ]+/);n=i&&i[0]}var o=it?it.createHTML(t):t;try{e=(new Y).parseFromString(o,"text/html")}catch(t){}if(!e||!e.documentElement){var s=(e=at.createHTMLDocument("")).body;s.parentNode.removeChild(s.parentNode.firstElementChild),s.outerHTML=o}return t&&n&&e.body.insertBefore(r.createTextNode(n),e.body.childNodes[0]||null),ct.call(e,Tt?"html":"body")[0]},ae=function(t){return lt.call(t.ownerDocument||t,t,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT,(function(){return c.FILTER_ACCEPT}),!1)},le=function(t){return!(t instanceof w||t instanceof C||"string"==typeof t.nodeName&&"string"==typeof t.textContent&&"function"==typeof t.removeChild&&t.attributes instanceof d&&"function"==typeof t.removeAttribute&&"function"==typeof t.setAttribute&&"string"==typeof t.namespaceURI&&"function"==typeof t.insertBefore)},ce=function(t){return"object"===(void 0===a?"undefined":W(a))?t instanceof a:t&&"object"===(void 0===t?"undefined":W(t))&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},ue=function(t,n,r){ht[t]&&p(ht[t],(function(t){t.call(e,n,r,Vt)}))},de=function(t){var n=void 0;if(ue("beforeSanitizeElements",t,null),le(t))return ie(t),!0;if(v(t.nodeName,/[\u0080-\uFFFF]/))return ie(t),!0;var r=g(t.nodeName);if(ue("uponSanitizeElement",t,{tagName:r,allowedTags:_t}),!ce(t.firstElementChild)&&(!ce(t.content)||!ce(t.content.firstElementChild))&&x(/<[/\w]/g,t.innerHTML)&&x(/<[/\w]/g,t.textContent))return ie(t),!0;if(!_t[r]||Et[r]){if(Lt&&!Ht[r]){var i=nt(t),o=et(t);if(o&&i)for(var s=o.length-1;s>=0;--s)i.insertBefore(J(o[s],!0),tt(t))}return ie(t),!0}return t instanceof l&&!re(t)?(ie(t),!0):"noscript"!==r&&"noembed"!==r||!x(/<\/no(script|embed)/i,t.innerHTML)?(It&&3===t.nodeType&&(n=t.textContent,n=b(n,ft," "),n=b(n,gt," "),t.textContent!==n&&(f(e.removed,{element:t.cloneNode()}),t.textContent=n)),ue("afterSanitizeElements",t,null),!1):(ie(t),!0)},pe=function(t,e,n){if(Ft&&("id"===e||"name"===e)&&(n in r||n in qt))return!1;if(Pt&&x(vt,e));else if(jt&&x(bt,e));else{if(!Ct[e]||Ot[e])return!1;if(Wt[e]);else if(x(xt,b(n,yt,"")));else if("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==m(n,"data:")||!zt[t])if(kt&&!x(mt,b(n,yt,"")));else if(n)return!1}return!0},he=function(t){var n=void 0,r=void 0,i=void 0,o=void 0;ue("beforeSanitizeAttributes",t,null);var s=t.attributes;if(s){var a={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ct};for(o=s.length;o--;){var l=n=s[o],c=l.name,u=l.namespaceURI;if(r=y(n.value),i=g(c),a.attrName=i,a.attrValue=r,a.keepAttr=!0,a.forceKeepAttr=void 0,ue("uponSanitizeAttribute",t,a),r=a.attrValue,!a.forceKeepAttr&&(oe(c,t),a.keepAttr))if(x(/\/>/i,r))oe(c,t);else{It&&(r=b(r,ft," "),r=b(r,gt," "));var d=t.nodeName.toLowerCase();if(pe(d,i,r))try{u?t.setAttributeNS(u,c,r):t.setAttribute(c,r),h(e.removed)}catch(t){}}}ue("afterSanitizeAttributes",t,null)}},fe=function t(e){var n=void 0,r=ae(e);for(ue("beforeSanitizeShadowDOM",e,null);n=r.nextNode();)ue("uponSanitizeShadowNode",n,null),de(n)||(n.content instanceof i&&t(n.content),he(n));ue("afterSanitizeShadowDOM",e,null)};return e.sanitize=function(r,o){var s=void 0,l=void 0,c=void 0,u=void 0,d=void 0;if(r||(r="\x3c!--\x3e"),"string"!=typeof r&&!ce(r)){if("function"!=typeof r.toString)throw _("toString is not a function");if("string"!=typeof(r=r.toString()))throw _("dirty is not a string, aborting")}if(!e.isSupported){if("object"===W(t.toStaticHTML)||"function"==typeof t.toStaticHTML){if("string"==typeof r)return t.toStaticHTML(r);if(ce(r))return t.toStaticHTML(r.outerHTML)}return r}if(At||Kt(o),e.removed=[],"string"==typeof r&&(Mt=!1),Mt);else if(r instanceof a)1===(l=(s=se("\x3c!----\x3e")).ownerDocument.importNode(r,!0)).nodeType&&"BODY"===l.nodeName||"HTML"===l.nodeName?s=l:s.appendChild(l);else{if(!Rt&&!It&&!Tt&&-1===r.indexOf("<"))return it&&Bt?it.createHTML(r):r;if(!(s=se(r)))return Rt?null:ot}s&&Dt&&ie(s.firstChild);for(var p=ae(Mt?r:s);c=p.nextNode();)3===c.nodeType&&c===u||de(c)||(c.content instanceof i&&fe(c.content),he(c),u=c);if(u=null,Mt)return r;if(Rt){if($t)for(d=ut.call(s.ownerDocument);s.firstChild;)d.appendChild(s.firstChild);else d=s;return Nt&&(d=dt.call(n,d,!0)),d}var h=Tt?s.outerHTML:s.innerHTML;return It&&(h=b(h,ft," "),h=b(h,gt," ")),it&&Bt?it.createHTML(h):h},e.setConfig=function(t){Kt(t),At=!0},e.clearConfig=function(){Vt=null,At=!1},e.isValidAttribute=function(t,e,n){Vt||Kt({});var r=g(t),i=g(e);return pe(r,i,n)},e.addHook=function(t,e){"function"==typeof e&&(ht[t]=ht[t]||[],f(ht[t],e))},e.removeHook=function(t){ht[t]&&h(ht[t])},e.removeHooks=function(t){ht[t]&&(ht[t]=[])},e.removeAllHooks=function(){ht={}},e}return K()}()},27124:(t,e,n)=>{"use strict";var r,i=TypeError,o=Object.getOwnPropertyDescriptor;if(o)try{o({},"")}catch(t){o=null}var s=function(){throw new i},a=o?function(){try{return s}catch(t){try{return o(arguments,"callee").get}catch(t){return s}}}():s,l=n(99905)(),c=Object.getPrototypeOf||function(t){return t.__proto__},u=r,d=r,p=r,h=r,f="undefined"==typeof Uint8Array?r:c(Uint8Array),g={"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayBufferPrototype%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer.prototype,"%ArrayIteratorPrototype%":l?c([][Symbol.iterator]()):r,"%ArrayPrototype%":Array.prototype,"%ArrayProto_entries%":Array.prototype.entries,"%ArrayProto_forEach%":Array.prototype.forEach,"%ArrayProto_keys%":Array.prototype.keys,"%ArrayProto_values%":Array.prototype.values,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":d,"%AsyncFunctionPrototype%":r,"%AsyncGenerator%":r,"%AsyncGeneratorFunction%":p,"%AsyncGeneratorPrototype%":r,"%AsyncIteratorPrototype%":h&&l&&Symbol.asyncIterator?h[Symbol.asyncIterator]():r,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%Boolean%":Boolean,"%BooleanPrototype%":Boolean.prototype,"%DataView%":"undefined"==typeof DataView?r:DataView,"%DataViewPrototype%":"undefined"==typeof DataView?r:DataView.prototype,"%Date%":Date,"%DatePrototype%":Date.prototype,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%ErrorPrototype%":Error.prototype,"%eval%":eval,"%EvalError%":EvalError,"%EvalErrorPrototype%":EvalError.prototype,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float32ArrayPrototype%":"undefined"==typeof Float32Array?r:Float32Array.prototype,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%Float64ArrayPrototype%":"undefined"==typeof Float64Array?r:Float64Array.prototype,"%Function%":Function,"%FunctionPrototype%":Function.prototype,"%Generator%":r,"%GeneratorFunction%":u,"%GeneratorPrototype%":r,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int8ArrayPrototype%":"undefined"==typeof Int8Array?r:Int8Array.prototype,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int16ArrayPrototype%":"undefined"==typeof Int16Array?r:Int8Array.prototype,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%Int32ArrayPrototype%":"undefined"==typeof Int32Array?r:Int32Array.prototype,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":l?c(c([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%JSONParse%":"object"==typeof JSON?JSON.parse:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&l?c((new Map)[Symbol.iterator]()):r,"%MapPrototype%":"undefined"==typeof Map?r:Map.prototype,"%Math%":Math,"%Number%":Number,"%NumberPrototype%":Number.prototype,"%Object%":Object,"%ObjectPrototype%":Object.prototype,"%ObjProto_toString%":Object.prototype.toString,"%ObjProto_valueOf%":Object.prototype.valueOf,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%PromisePrototype%":"undefined"==typeof Promise?r:Promise.prototype,"%PromiseProto_then%":"undefined"==typeof Promise?r:Promise.prototype.then,"%Promise_all%":"undefined"==typeof Promise?r:Promise.all,"%Promise_reject%":"undefined"==typeof Promise?r:Promise.reject,"%Promise_resolve%":"undefined"==typeof Promise?r:Promise.resolve,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":RangeError,"%RangeErrorPrototype%":RangeError.prototype,"%ReferenceError%":ReferenceError,"%ReferenceErrorPrototype%":ReferenceError.prototype,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%RegExpPrototype%":RegExp.prototype,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&l?c((new Set)[Symbol.iterator]()):r,"%SetPrototype%":"undefined"==typeof Set?r:Set.prototype,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%SharedArrayBufferPrototype%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer.prototype,"%String%":String,"%StringIteratorPrototype%":l?c(""[Symbol.iterator]()):r,"%StringPrototype%":String.prototype,"%Symbol%":l?Symbol:r,"%SymbolPrototype%":l?Symbol.prototype:r,"%SyntaxError%":SyntaxError,"%SyntaxErrorPrototype%":SyntaxError.prototype,"%ThrowTypeError%":a,"%TypedArray%":f,"%TypedArrayPrototype%":f?f.prototype:r,"%TypeError%":i,"%TypeErrorPrototype%":i.prototype,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ArrayPrototype%":"undefined"==typeof Uint8Array?r:Uint8Array.prototype,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint8ClampedArrayPrototype%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray.prototype,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint16ArrayPrototype%":"undefined"==typeof Uint16Array?r:Uint16Array.prototype,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%Uint32ArrayPrototype%":"undefined"==typeof Uint32Array?r:Uint32Array.prototype,"%URIError%":URIError,"%URIErrorPrototype%":URIError.prototype,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakMapPrototype%":"undefined"==typeof WeakMap?r:WeakMap.prototype,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet,"%WeakSetPrototype%":"undefined"==typeof WeakSet?r:WeakSet.prototype},v=n(21930).call(Function.call,String.prototype.replace),b=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,m=/\\(\\)?/g,y=function(t){var e=[];return v(t,b,(function(t,n,r,i){e[e.length]=r?v(i,m,"$1"):n||t})),e},x=function(t,e){if(!(t in g))throw new SyntaxError("intrinsic "+t+" does not exist!");if(void 0===g[t]&&!e)throw new i("intrinsic "+t+" exists, but is not available. Please file an issue!");return g[t]};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new TypeError("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new TypeError('"allowMissing" argument must be a boolean');for(var n=y(t),r=x("%"+(n.length>0?n[0]:"")+"%",e),s=1;s<n.length;s+=1)if(null!=r)if(o&&s+1>=n.length){var a=o(r,n[s]);if(!e&&!(n[s]in r))throw new i("base intrinsic for "+t+" exists, but the property is not available.");r=a?a.get||a.value:r[n[s]]}else r=r[n[s]];return r}},18711:(t,e,n)=>{"use strict";var r=n(27124)("%Object.getOwnPropertyDescriptor%");if(r)try{r([],"length")}catch(t){r=null}t.exports=r},61662:t=>{"use strict";function e(t,e){if(null==t)throw new TypeError("Cannot convert first argument to object");for(var n=Object(t),r=1;r<arguments.length;r++){var i=arguments[r];if(null!=i)for(var o=Object.keys(Object(i)),s=0,a=o.length;s<a;s++){var l=o[s],c=Object.getOwnPropertyDescriptor(i,l);void 0!==c&&c.enumerable&&(n[l]=i[l])}}return n}t.exports={assign:e,polyfill:function(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:e})}}},9453:(t,e,n)=>{"use strict";function r(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}n.d(e,{N:()=>r})},24175:t=>{var e=Object.prototype.hasOwnProperty,n=Object.prototype.toString;t.exports=function(t,r,i){if("[object Function]"!==n.call(r))throw new TypeError("iterator must be a function");var o=t.length;if(o===+o)for(var s=0;s<o;s++)r.call(i,t[s],s,t);else for(var a in t)e.call(t,a)&&r.call(i,t[a],a,t)}},19930:t=>{"use strict";var e="Function.prototype.bind called on incompatible ",n=Array.prototype.slice,r=Object.prototype.toString,i="[object Function]";t.exports=function(t){var o=this;if("function"!=typeof o||r.call(o)!==i)throw new TypeError(e+o);for(var s,a=n.call(arguments,1),l=function(){if(this instanceof s){var e=o.apply(this,a.concat(n.call(arguments)));return Object(e)===e?e:this}return o.apply(t,a.concat(n.call(arguments)))},c=Math.max(0,o.length-a.length),u=[],d=0;d<c;d++)u.push("$"+d);if(s=Function("binder","return function ("+u.join(",")+"){ return binder.apply(this,arguments); }")(l),o.prototype){var p=function(){};p.prototype=o.prototype,s.prototype=new p,p.prototype=null}return s}},21930:(t,e,n)=>{"use strict";var r=n(19930);t.exports=Function.prototype.bind||r},31801:(t,e,n)=>{"use strict";var r,i=SyntaxError,o=Function,s=TypeError,a=function(t){try{return Function('"use strict"; return ('+t+").constructor;")()}catch(t){}},l=Object.getOwnPropertyDescriptor;if(l)try{l({},"")}catch(t){l=null}var c=function(){throw new s},u=l?function(){try{return c}catch(t){try{return l(arguments,"callee").get}catch(t){return c}}}():c,d=n(99905)(),p=Object.getPrototypeOf||function(t){return t.__proto__},h=a("async function* () {}"),f=h?h.prototype:r,g=f?f.prototype:r,v="undefined"==typeof Uint8Array?r:p(Uint8Array),b={"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":d?p([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":a("async function () {}"),"%AsyncGenerator%":f,"%AsyncGeneratorFunction%":h,"%AsyncIteratorPrototype%":g?p(g):r,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":a("function* () {}"),"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":d?p(p([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&d?p((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&d?p((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":d?p(""[Symbol.iterator]()):r,"%Symbol%":d?Symbol:r,"%SyntaxError%":i,"%ThrowTypeError%":u,"%TypedArray%":v,"%TypeError%":s,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet},m={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},y=n(21930),x=n(79284),_=y.call(Function.call,Array.prototype.concat),w=y.call(Function.apply,Array.prototype.splice),C=y.call(Function.call,String.prototype.replace),S=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,E=/\\(\\)?/g,O=function(t){var e=[];return C(t,S,(function(t,n,r,i){e[e.length]=r?C(i,E,"$1"):n||t})),e},j=function(t,e){var n,r=t;if(x(m,r)&&(r="%"+(n=m[r])[0]+"%"),x(b,r)){var o=b[r];if(void 0===o&&!e)throw new s("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new i("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new s("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new s('"allowMissing" argument must be a boolean');var n=O(t),r=n.length>0?n[0]:"",i=j("%"+r+"%",e),o=i.name,a=i.value,c=!1,u=i.alias;u&&(r=u[0],w(n,_([0,1],u)));for(var d=1,p=!0;d<n.length;d+=1){var h=n[d];if("constructor"!==h&&p||(c=!0),x(b,o="%"+(r+="."+h)+"%"))a=b[o];else if(null!=a){if(l&&d+1>=n.length){var f=l(a,h);if(p=!!f,!e&&!(h in a))throw new s("base intrinsic for "+t+" exists, but the property is not available.");a=p&&"get"in f&&!("originalValue"in f.get)?f.get:a[h]}else p=x(a,h),a=a[h];p&&!c&&(b[o]=a)}}return a}},17769:(t,e,n)=>{"use strict";var r="__global_unique_id__";t.exports=function(){return n.g[r]=(n.g[r]||0)+1}},99905:(t,e,n)=>{"use strict";var r=n.g.Symbol,i=n(65682);t.exports=function(){return"function"==typeof r&&("function"==typeof Symbol&&("symbol"==typeof r("foo")&&("symbol"==typeof Symbol("bar")&&i())))}},65682:t=>{"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),n=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(e in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var r=Object.getOwnPropertySymbols(t);if(1!==r.length||r[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(t,e);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},79284:(t,e,n)=>{"use strict";var r=n(21930);t.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},88824:(t,e,n)=>{"use strict";if(n.d(e,{lX:()=>x,q_:()=>O,PP:()=>P,ob:()=>p,Hp:()=>h,Ep:()=>d}),/^(5(5|51|71)|9(08|37|91)|154|205|22|360|885)$/.test(n.j))var r=n(61416);if(/^(5(5|51|71)|9(08|37|91)|154|205|22|360|885)$/.test(n.j))var i=n(99337);if(/^(5(5|51|71)|9(08|37|91)|205|22|885)$/.test(n.j))var o=n(56233);if(/^(5(5|51|71)|9(08|37|91)|154|205|22|360|885)$/.test(n.j))var s=n(53499);function a(t){return"/"===t.charAt(0)?t:"/"+t}function l(t){return"/"===t.charAt(0)?t.substr(1):t}function c(t,e){return function(t,e){return 0===t.toLowerCase().indexOf(e.toLowerCase())&&-1!=="/?#".indexOf(t.charAt(e.length))}(t,e)?t.substr(e.length):t}function u(t){return"/"===t.charAt(t.length-1)?t.slice(0,-1):t}function d(t){var e=t.pathname,n=t.search,r=t.hash,i=e||"/";return n&&"?"!==n&&(i+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(i+="#"===r.charAt(0)?r:"#"+r),i}function p(t,e,n,o){var s;"string"==typeof t?(s=function(t){var e=t||"/",n="",r="",i=e.indexOf("#");-1!==i&&(r=e.substr(i),e=e.substr(0,i));var o=e.indexOf("?");return-1!==o&&(n=e.substr(o),e=e.substr(0,o)),{pathname:e,search:"?"===n?"":n,hash:"#"===r?"":r}}(t)).state=e:(void 0===(s=(0,r.Z)({},t)).pathname&&(s.pathname=""),s.search?"?"!==s.search.charAt(0)&&(s.search="?"+s.search):s.search="",s.hash?"#"!==s.hash.charAt(0)&&(s.hash="#"+s.hash):s.hash="",void 0!==e&&void 0===s.state&&(s.state=e));try{s.pathname=decodeURI(s.pathname)}catch(t){throw t instanceof URIError?new URIError('Pathname "'+s.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):t}return n&&(s.key=n),o?s.pathname?"/"!==s.pathname.charAt(0)&&(s.pathname=(0,i.Z)(s.pathname,o.pathname)):s.pathname=o.pathname:s.pathname||(s.pathname="/"),s}function h(t,e){return t.pathname===e.pathname&&t.search===e.search&&t.hash===e.hash&&t.key===e.key&&(0,o.Z)(t.state,e.state)}function f(){var t=null;var e=[];return{setPrompt:function(e){return t=e,function(){t===e&&(t=null)}},confirmTransitionTo:function(e,n,r,i){if(null!=t){var o="function"==typeof t?t(e,n):t;"string"==typeof o?"function"==typeof r?r(o,i):i(!0):i(!1!==o)}else i(!0)},appendListener:function(t){var n=!0;function r(){n&&t.apply(void 0,arguments)}return e.push(r),function(){n=!1,e=e.filter((function(t){return t!==r}))}},notifyListeners:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];e.forEach((function(t){return t.apply(void 0,n)}))}}}var g=!("undefined"==typeof window||!window.document||!window.document.createElement);function v(t,e){e(window.confirm(t))}var b="popstate",m="hashchange";function y(){try{return window.history.state||{}}catch(t){return{}}}function x(t){void 0===t&&(t={}),g||(0,s.Z)(!1);var e,n=window.history,i=(-1===(e=window.navigator.userAgent).indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,o=!(-1===window.navigator.userAgent.indexOf("Trident")),l=t,h=l.forceRefresh,x=void 0!==h&&h,_=l.getUserConfirmation,w=void 0===_?v:_,C=l.keyLength,S=void 0===C?6:C,E=t.basename?u(a(t.basename)):"";function O(t){var e=t||{},n=e.key,r=e.state,i=window.location,o=i.pathname+i.search+i.hash;return E&&(o=c(o,E)),p(o,r,n)}function j(){return Math.random().toString(36).substr(2,S)}var P=f();function k(t){(0,r.Z)(Z,t),Z.length=n.length,P.notifyListeners(Z.location,Z.action)}function I(t){(function(t){return void 0===t.state&&-1===navigator.userAgent.indexOf("CriOS")})(t)||D(O(t.state))}function T(){D(O(y()))}var A=!1;function D(t){if(A)A=!1,k();else{P.confirmTransitionTo(t,"POP",w,(function(e){e?k({action:"POP",location:t}):function(t){var e=Z.location,n=$.indexOf(e.key);-1===n&&(n=0);var r=$.indexOf(t.key);-1===r&&(r=0);var i=n-r;i&&(A=!0,B(i))}(t)}))}}var R=O(y()),$=[R.key];function N(t){return E+d(t)}function B(t){n.go(t)}var F=0;function L(t){1===(F+=t)&&1===t?(window.addEventListener(b,I),o&&window.addEventListener(m,T)):0===F&&(window.removeEventListener(b,I),o&&window.removeEventListener(m,T))}var M=!1;var Z={length:n.length,action:"POP",location:R,createHref:N,push:function(t,e){var r="PUSH",o=p(t,e,j(),Z.location);P.confirmTransitionTo(o,r,w,(function(t){if(t){var e=N(o),s=o.key,a=o.state;if(i)if(n.pushState({key:s,state:a},null,e),x)window.location.href=e;else{var l=$.indexOf(Z.location.key),c=$.slice(0,l+1);c.push(o.key),$=c,k({action:r,location:o})}else window.location.href=e}}))},replace:function(t,e){var r="REPLACE",o=p(t,e,j(),Z.location);P.confirmTransitionTo(o,r,w,(function(t){if(t){var e=N(o),s=o.key,a=o.state;if(i)if(n.replaceState({key:s,state:a},null,e),x)window.location.replace(e);else{var l=$.indexOf(Z.location.key);-1!==l&&($[l]=o.key),k({action:r,location:o})}else window.location.replace(e)}}))},go:B,goBack:function(){B(-1)},goForward:function(){B(1)},block:function(t){void 0===t&&(t=!1);var e=P.setPrompt(t);return M||(L(1),M=!0),function(){return M&&(M=!1,L(-1)),e()}},listen:function(t){var e=P.appendListener(t);return L(1),function(){L(-1),e()}}};return Z}var _="hashchange",w={hashbang:{encodePath:function(t){return"!"===t.charAt(0)?t:"!/"+l(t)},decodePath:function(t){return"!"===t.charAt(0)?t.substr(1):t}},noslash:{encodePath:l,decodePath:a},slash:{encodePath:a,decodePath:a}};function C(t){var e=t.indexOf("#");return-1===e?t:t.slice(0,e)}function S(){var t=window.location.href,e=t.indexOf("#");return-1===e?"":t.substring(e+1)}function E(t){window.location.replace(C(window.location.href)+"#"+t)}function O(t){void 0===t&&(t={}),g||(0,s.Z)(!1);var e=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),t),i=n.getUserConfirmation,o=void 0===i?v:i,l=n.hashType,h=void 0===l?"slash":l,b=t.basename?u(a(t.basename)):"",m=w[h],y=m.encodePath,x=m.decodePath;function O(){var t=x(S());return b&&(t=c(t,b)),p(t)}var j=f();function P(t){(0,r.Z)(M,t),M.length=e.length,j.notifyListeners(M.location,M.action)}var k=!1,I=null;function T(){var t,e,n=S(),r=y(n);if(n!==r)E(r);else{var i=O(),s=M.location;if(!k&&(e=i,(t=s).pathname===e.pathname&&t.search===e.search&&t.hash===e.hash))return;if(I===d(i))return;I=null,function(t){if(k)k=!1,P();else{var e="POP";j.confirmTransitionTo(t,e,o,(function(n){n?P({action:e,location:t}):function(t){var e=M.location,n=$.lastIndexOf(d(e));-1===n&&(n=0);var r=$.lastIndexOf(d(t));-1===r&&(r=0);var i=n-r;i&&(k=!0,N(i))}(t)}))}}(i)}}var A=S(),D=y(A);A!==D&&E(D);var R=O(),$=[d(R)];function N(t){e.go(t)}var B=0;function F(t){1===(B+=t)&&1===t?window.addEventListener(_,T):0===B&&window.removeEventListener(_,T)}var L=!1;var M={length:e.length,action:"POP",location:R,createHref:function(t){var e=document.querySelector("base"),n="";return e&&e.getAttribute("href")&&(n=C(window.location.href)),n+"#"+y(b+d(t))},push:function(t,e){var n="PUSH",r=p(t,void 0,void 0,M.location);j.confirmTransitionTo(r,n,o,(function(t){if(t){var e=d(r),i=y(b+e);if(S()!==i){I=e,function(t){window.location.hash=t}(i);var o=$.lastIndexOf(d(M.location)),s=$.slice(0,o+1);s.push(e),$=s,P({action:n,location:r})}else P()}}))},replace:function(t,e){var n="REPLACE",r=p(t,void 0,void 0,M.location);j.confirmTransitionTo(r,n,o,(function(t){if(t){var e=d(r),i=y(b+e);S()!==i&&(I=e,E(i));var o=$.indexOf(d(M.location));-1!==o&&($[o]=e),P({action:n,location:r})}}))},go:N,goBack:function(){N(-1)},goForward:function(){N(1)},block:function(t){void 0===t&&(t=!1);var e=j.setPrompt(t);return L||(F(1),L=!0),function(){return L&&(L=!1,F(-1)),e()}},listen:function(t){var e=j.appendListener(t);return F(1),function(){F(-1),e()}}};return M}function j(t,e,n){return Math.min(Math.max(t,e),n)}function P(t){void 0===t&&(t={});var e=t,n=e.getUserConfirmation,i=e.initialEntries,o=void 0===i?["/"]:i,s=e.initialIndex,a=void 0===s?0:s,l=e.keyLength,c=void 0===l?6:l,u=f();function h(t){(0,r.Z)(x,t),x.length=x.entries.length,u.notifyListeners(x.location,x.action)}function g(){return Math.random().toString(36).substr(2,c)}var v=j(a,0,o.length-1),b=o.map((function(t){return p(t,void 0,"string"==typeof t?g():t.key||g())})),m=d;function y(t){var e=j(x.index+t,0,x.entries.length-1),r=x.entries[e];u.confirmTransitionTo(r,"POP",n,(function(t){t?h({action:"POP",location:r,index:e}):h()}))}var x={length:b.length,action:"POP",location:b[v],index:v,entries:b,createHref:m,push:function(t,e){var r="PUSH",i=p(t,e,g(),x.location);u.confirmTransitionTo(i,r,n,(function(t){if(t){var e=x.index+1,n=x.entries.slice(0);n.length>e?n.splice(e,n.length-e,i):n.push(i),h({action:r,location:i,index:e,entries:n})}}))},replace:function(t,e){var r="REPLACE",i=p(t,e,g(),x.location);u.confirmTransitionTo(i,r,n,(function(t){t&&(x.entries[x.index]=i,h({action:r,location:i}))}))},go:y,goBack:function(){y(-1)},goForward:function(){y(1)},canGo:function(t){var e=x.index+t;return e>=0&&e<x.entries.length},block:function(t){return void 0===t&&(t=!1),u.setPrompt(t)},listen:function(t){return u.appendListener(t)}};return x}},41281:(t,e,n)=>{"use strict";var r=n(338),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function l(t){return r.isMemo(t)?s:a[t.$$typeof]||i}a[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0};var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,f=Object.prototype;t.exports=function t(e,n,r){if("string"!=typeof n){if(f){var i=h(n);i&&i!==f&&t(e,i,r)}var s=u(n);d&&(s=s.concat(d(n)));for(var a=l(e),g=l(n),v=0;v<s.length;++v){var b=s[v];if(!(o[b]||r&&r[b]||g&&g[b]||a&&a[b])){var m=p(n,b);try{c(e,b,m)}catch(t){}}}return e}return e}},75029:t=>{"use strict";var e=/[A-Z]/g,n=/^ms-/,r={};t.exports=function(t){return t in r?r[t]:r[t]=t.replace(e,"-$&").toLowerCase().replace(n,"-ms-")}},48575:t=>{"function"==typeof Object.create?t.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}},77092:(t,e,n)=>{"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,i=n(97615)("Object.prototype.toString"),o=function(t){return!(r&&t&&"object"==typeof t&&Symbol.toStringTag in t)&&"[object Arguments]"===i(t)},s=function(t){return!!o(t)||null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Array]"!==i(t)&&"[object Function]"===i(t.callee)},a=function(){return o(arguments)}();o.isLegacyArguments=s,t.exports=a?o:s},97427:t=>{"use strict";var e=Object.prototype.toString,n=Function.prototype.toString,r=/^\s*(?:function)?\*/,i="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,o=Object.getPrototypeOf,s=function(){if(!i)return!1;try{return Function("return function*() {}")()}catch(t){}}(),a=!(!o||!s)&&o(s);t.exports=function(t){return"function"==typeof t&&(!!r.test(n.call(t))||(i?o&&o(t)===a:"[object GeneratorFunction]"===e.call(t)))}},60307:(t,e,n)=>{"use strict";n.r(e),n.d(e,{isBrowser:()=>i,default:()=>o});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i="object"===("undefined"==typeof window?"undefined":r(window))&&"object"===("undefined"==typeof document?"undefined":r(document))&&9===document.nodeType;const o=/^(183|296|580|717|882)$/.test(n.j)?null:i},82100:t=>{"use strict";t.exports=function(t){return t!=t}},98622:(t,e,n)=>{"use strict";var r=n(12550),i=n(19170),o=n(82100),s=n(64358),a=n(6232),l=r(s(),Number);i(l,{getPolyfill:s,implementation:o,shim:a}),t.exports=l},64358:(t,e,n)=>{"use strict";var r=n(82100);t.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:r}},6232:(t,e,n)=>{"use strict";var r=n(19170),i=n(64358);t.exports=function(){var t=i();return r(Number,{isNaN:t},{isNaN:function(){return Number.isNaN!==t}}),t}},82527:(t,e,n)=>{"use strict";var r=n(24175),i=n(48455),o=n(97615),s=o("Object.prototype.toString"),a=n(99905)()&&"symbol"==typeof Symbol.toStringTag,l=i(),c=o("Array.prototype.indexOf",!0)||function(t,e){for(var n=0;n<t.length;n+=1)if(t[n]===e)return n;return-1},u=o("String.prototype.slice"),d={},p=n(18711),h=Object.getPrototypeOf;a&&p&&h&&r(l,(function(t){var e=new n.g[t];if(!(Symbol.toStringTag in e))throw new EvalError("this engine has support for Symbol.toStringTag, but "+t+" does not have the property! Please report this.");var r=h(e),i=p(r,Symbol.toStringTag);if(!i){var o=h(r);i=p(o,Symbol.toStringTag)}d[t]=i.get}));t.exports=function(t){if(!t||"object"!=typeof t)return!1;if(!a){var e=u(s(t),8,-1);return c(l,e)>-1}return!!p&&function(t){var e=!1;return r(d,(function(n,r){if(!e)try{e=n.call(t)===r}catch(t){}})),e}(t)}},87955:t=>{var e={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==e.call(t)}},54943:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){return{onProcessStyle:function(t){if(Array.isArray(t)){for(var e=0;e<t.length;e++)t[e]=s(t[e]);return t}return s(t)},onChangeValue:function(t,e,n){var r=(0,o.default)(e);return e===r?t:(n.prop(r,t),null)}}};var r,i=n(75029),o=(r=i)&&r.__esModule?r:{default:r};function s(t){var e={};for(var n in t)e[(0,o.default)(n)]=t[n];return t.fallbacks&&(Array.isArray(t.fallbacks)?e.fallbacks=t.fallbacks.map(s):e.fallbacks=s(t.fallbacks)),e}},41837:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){return{onProcessStyle:function(t,e){return t.composes?(s(e,t.composes),delete t.composes,t):t}}};var r,i=n(89198),o=(r=i)&&r.__esModule?r:{default:r};function s(t,e){if(!e)return!0;if(Array.isArray(e)){for(var n=0;n<e.length;n++){if(!s(t,e[n]))return!1}return!0}if(e.indexOf(" ")>-1)return s(t,e.split(" "));var r=t.options.parent;if("$"===e[0]){var i=r.getRule(e.substr(1));return i?i===t?((0,o.default)(!1,"[JSS] Cyclic composition detected. \r\n%s",t),!1):(r.classes[t.key]+=" "+r.classes[i.key],!0):((0,o.default)(!1,"[JSS] Referenced rule is not defined. \r\n%s",t),!1)}return t.options.parent.classes[t.key]+=" "+e,!0}},7277:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={"animation-delay":"ms","animation-duration":"ms","background-position":"px","background-position-x":"px","background-position-y":"px","background-size":"px",border:"px","border-bottom":"px","border-bottom-left-radius":"px","border-bottom-right-radius":"px","border-bottom-width":"px","border-left":"px","border-left-width":"px","border-radius":"px","border-right":"px","border-right-width":"px","border-spacing":"px","border-top":"px","border-top-left-radius":"px","border-top-right-radius":"px","border-top-width":"px","border-width":"px","border-after-width":"px","border-before-width":"px","border-end-width":"px","border-horizontal-spacing":"px","border-start-width":"px","border-vertical-spacing":"px",bottom:"px","box-shadow":"px","column-gap":"px","column-rule":"px","column-rule-width":"px","column-width":"px","flex-basis":"px","font-size":"px","font-size-delta":"px",height:"px",left:"px","letter-spacing":"px","logical-height":"px","logical-width":"px",margin:"px","margin-after":"px","margin-before":"px","margin-bottom":"px","margin-left":"px","margin-right":"px","margin-top":"px","max-height":"px","max-width":"px","margin-end":"px","margin-start":"px","mask-position-x":"px","mask-position-y":"px","mask-size":"px","max-logical-height":"px","max-logical-width":"px","min-height":"px","min-width":"px","min-logical-height":"px","min-logical-width":"px",motion:"px","motion-offset":"px",outline:"px","outline-offset":"px","outline-width":"px",padding:"px","padding-bottom":"px","padding-left":"px","padding-right":"px","padding-top":"px","padding-after":"px","padding-before":"px","padding-end":"px","padding-start":"px","perspective-origin-x":"%","perspective-origin-y":"%",perspective:"px",right:"px","shape-margin":"px",size:"px","text-indent":"px","text-stroke":"px","text-stroke-width":"px",top:"px","transform-origin":"%","transform-origin-x":"%","transform-origin-y":"%","transform-origin-z":"%","transition-delay":"ms","transition-duration":"ms","vertical-align":"px",width:"px","word-spacing":"px","box-shadow-x":"px","box-shadow-y":"px","box-shadow-blur":"px","box-shadow-spread":"px","font-line-height":"px","text-shadow-x":"px","text-shadow-y":"px","text-shadow-blur":"px"}},44525:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=s(t);function n(t,n){if("style"!==n.type)return t;for(var r in t)t[r]=l(r,t[r],e);return t}function r(t,n){return l(n,t,e)}return{onProcessStyle:n,onChangeValue:r}};var i,o=n(7277);function s(t){var e=/(-[a-z])/g,n=function(t){return t[1].toUpperCase()},r={};for(var i in t)r[i]=t[i],r[i.replace(e,n)]=t[i];return r}var a=s(((i=o)&&i.__esModule?i:{default:i}).default);function l(t,e,n){if(!e)return e;var i=e,o=void 0===e?"undefined":r(e);switch("object"===o&&Array.isArray(e)&&(o="array"),o){case"object":if("fallbacks"===t){for(var s in e)e[s]=l(s,e[s],n);break}for(var c in e)e[c]=l(t+"-"+c,e[c],n);break;case"array":for(var u=0;u<e.length;u++)e[u]=l(t,e[u],n);break;case"number":0!==e&&(i=e+(n[t]||a[t]||""))}return i}},69930:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.default=function(){return{onProcessStyle:function(t,e){if(!t||"style"!==e.type)return t;if(Array.isArray(t)){for(var n=0;n<t.length;n++)t[n]=l(t[n],e);return t}return l(t,e)}}};var i=n(67152);function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function s(t,e,n,i){return null==n[e]?t:0===t.length?[]:Array.isArray(t[0])?s(t[0],e,n):"object"===r(t[0])?function(t,e,n){return t.map((function(t){return a(t,e,n,!1,!0)}))}(t,e,i):[t]}function a(t,e,n,r,s){if(!i.propObj[e]&&!i.customPropObj[e])return[];var a=[];if(i.customPropObj[e]&&(t=function(t,e,n,r){for(var i in n){var s=n[i];if(void 0!==t[i]&&(r||!e.prop(s))){var a=l(o({},s,t[i]),e)[s];r?e.style.fallbacks[s]=a:e.style[s]=a}delete t[i]}return t}(t,n,i.customPropObj[e],r)),Object.keys(t).length)for(var c in i.propObj[e])t[c]?Array.isArray(t[c])?a.push(null===i.propArrayInObj[c]?t[c]:t[c].join(" ")):a.push(t[c]):null!=i.propObj[e][c]&&a.push(i.propObj[e][c]);return!a.length||s?a:[a]}function l(t,e,n){for(var o in t){var c=t[o];if(Array.isArray(c)){if(!Array.isArray(c[0])){if("fallbacks"===o){for(var u=0;u<t.fallbacks.length;u++)t.fallbacks[u]=l(t.fallbacks[u],e,!0);continue}t[o]=s(c,o,i.propArray),t[o].length||delete t[o]}}else if("object"===(void 0===c?"undefined":r(c))){if("fallbacks"===o){t.fallbacks=l(t.fallbacks,e,!0);continue}t[o]=a(c,o,e,n),t[o].length||delete t[o]}else""===t[o]&&delete t[o]}return t}},67152:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.propArray={"background-size":!0,"background-position":!0,border:!0,"border-bottom":!0,"border-left":!0,"border-top":!0,"border-right":!0,"border-radius":!0,"border-image":!0,"border-width":!0,"border-style":!0,"border-color":!0,"box-shadow":!0,flex:!0,margin:!0,padding:!0,outline:!0,"transform-origin":!0,transform:!0,transition:!0},e.propArrayInObj={position:!0,size:!0},e.propObj={padding:{top:0,right:0,bottom:0,left:0},margin:{top:0,right:0,bottom:0,left:0},background:{attachment:null,color:null,image:null,position:null,repeat:null},border:{width:null,style:null,color:null},"border-top":{width:null,style:null,color:null},"border-right":{width:null,style:null,color:null},"border-bottom":{width:null,style:null,color:null},"border-left":{width:null,style:null,color:null},outline:{width:null,style:null,color:null},"list-style":{type:null,position:null,image:null},transition:{property:null,duration:null,"timing-function":null,timingFunction:null,delay:null},animation:{name:null,duration:null,"timing-function":null,timingFunction:null,delay:null,"iteration-count":null,iterationCount:null,direction:null,"fill-mode":null,fillMode:null,"play-state":null,playState:null},"box-shadow":{x:0,y:0,blur:0,spread:0,color:null,inset:null},"text-shadow":{x:0,y:0,blur:null,color:null}},e.customPropObj={border:{radius:"border-radius",image:"border-image",width:"border-width",style:"border-style",color:"border-color"},background:{size:"background-size",image:"background-image"},font:{style:"font-style",variant:"font-variant",weight:"font-weight",stretch:"font-stretch",size:"font-size",family:"font-family",lineHeight:"line-height","line-height":"line-height"},flex:{grow:"flex-grow",basis:"flex-basis",direction:"flex-direction",wrap:"flex-wrap",flow:"flex-flow",shrink:"flex-shrink"},align:{self:"align-self",items:"align-items",content:"align-content"},grid:{"template-columns":"grid-template-columns",templateColumns:"grid-template-columns","template-rows":"grid-template-rows",templateRows:"grid-template-rows","template-areas":"grid-template-areas",templateAreas:"grid-template-areas",template:"grid-template","auto-columns":"grid-auto-columns",autoColumns:"grid-auto-columns","auto-rows":"grid-auto-rows",autoRows:"grid-auto-rows","auto-flow":"grid-auto-flow",autoFlow:"grid-auto-flow",row:"grid-row",column:"grid-column","row-start":"grid-row-start",rowStart:"grid-row-start","row-end":"grid-row-end",rowEnd:"grid-row-end","column-start":"grid-column-start",columnStart:"grid-column-start","column-end":"grid-column-end",columnEnd:"grid-column-end",area:"grid-area",gap:"grid-gap","row-gap":"grid-row-gap",rowGap:"grid-row-gap","column-gap":"grid-column-gap",columnGap:"grid-column-gap"}}},57421:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.default=function(){return{onProcessStyle:function(t,e,n){return"extend"in t?d(t,e,n):t},onChangeValue:function(t,e,n){if("extend"!==e)return t;if(null==t||!1===t){for(var r in n[l])n.prop(r,null);return n[l]=null,null}for(var i in t)n.prop(i,t[i]);return n[l]=t,null}}};var i,o=n(89198),s=(i=o)&&i.__esModule?i:{default:i};var a=function(t){return t&&"object"===(void 0===t?"undefined":r(t))&&!Array.isArray(t)},l="extendCurrValue"+Date.now();function c(t,e,n,i){if("string"!==r(t.extend))if(Array.isArray(t.extend))for(var o=0;o<t.extend.length;o++)d(t.extend[o],e,n,i);else for(var l in t.extend)"extend"!==l?a(t.extend[l])?(l in i||(i[l]={}),d(t.extend[l],e,n,i[l])):i[l]=t.extend[l]:d(t.extend.extend,e,n,i);else{if(!n)return;var c=n.getRule(t.extend);if(!c)return;if(c===e)return void(0,s.default)(!1,"[JSS] A rule tries to extend itself \r\n%s",e);var u=c.options.parent;u&&d(u.rules.raw[t.extend],e,n,i)}}function u(t,e,n,r){for(var i in t)"extend"!==i&&(a(r[i])&&a(t[i])?d(t[i],e,n,r[i]):a(t[i])?r[i]=d(t[i],e,n):r[i]=t[i])}function d(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return c(t,e,n,r),u(t,e,n,r),r}},80179:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();e.default=function(){return{onCreateRule:function(t,e,n){if(t===a)return new c(t,e,n);if("@"===t[0]&&t.substr(0,l.length)===l)return new u(t,e,n);var r=n.parent;return r&&("global"!==r.type&&"global"!==r.options.parent.type||(n.global=!0)),n.global&&(n.selector=t),null},onProcessRule:function(t){"style"===t.type&&(function(t){var e=t.options,n=t.style,i=n[a];if(i){for(var o in i)e.sheet.addRule(o,i[o],r({},e,{selector:p(o,t.selector)}));delete n[a]}}(t),function(t){var e=t.options,n=t.style;for(var i in n)if(i.substr(0,a.length)===a){var o=p(i.substr(a.length),t.selector);e.sheet.addRule(o,n[i],r({},e,{selector:o})),delete n[i]}}(t))}}};var o=n(67514);function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var a="@global",l="@global ",c=function(){function t(e,n,i){for(var a in s(this,t),this.type="global",this.key=e,this.options=i,this.rules=new o.RuleList(r({},i,{parent:this})),n)this.rules.add(a,n[a],{selector:a});this.rules.process()}return i(t,[{key:"getRule",value:function(t){return this.rules.get(t)}},{key:"addRule",value:function(t,e,n){var r=this.rules.add(t,e,n);return this.options.jss.plugins.onProcessRule(r),r}},{key:"indexOf",value:function(t){return this.rules.indexOf(t)}},{key:"toString",value:function(){return this.rules.toString()}}]),t}(),u=function(){function t(e,n,i){s(this,t),this.name=e,this.options=i;var o=e.substr(l.length);this.rule=i.jss.createRule(o,n,r({},i,{parent:this,selector:o}))}return i(t,[{key:"toString",value:function(t){return this.rule.toString(t)}}]),t}(),d=/\s*,\s*/g;function p(t,e){for(var n=t.split(d),r="",i=0;i<n.length;i++)r+=e+" "+n[i].trim(),n[i+1]&&(r+=", ");return r}},41116:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t};e.default=function(){function t(t){return function(e,n){var r=t.getRule(n);return r?r.selector:((0,s.default)(!1,"[JSS] Could not find the referenced rule %s in %s.",n,t.options.meta||t),n)}}var e=function(t){return-1!==t.indexOf("&")};function n(t,n){for(var r=n.split(a),i=t.split(a),o="",s=0;s<r.length;s++)for(var c=r[s],u=0;u<i.length;u++){var d=i[u];o&&(o+=", "),o+=e(d)?d.replace(l,c):c+" "+d}return o}function i(t,e,n){if(n)return r({},n,{index:n.index+1});var i=t.options.nestingLevel;return i=void 0===i?1:i+1,r({},t.options,{nestingLevel:i,index:e.indexOf(t)+1})}return{onProcessStyle:function(o,s){if("style"!==s.type)return o;var a=s.options.parent,l=void 0,u=void 0;for(var d in o){var p=e(d),h="@"===d[0];if(p||h){if(l=i(s,a,l),p){var f=n(d,s.selector);u||(u=t(a)),f=f.replace(c,u),a.addRule(f,o[d],r({},l,{selector:f}))}else h&&a.addRule(d,null,l).addRule(s.key,o[d],{selector:s.selector});delete o[d]}}return o}}};var i,o=n(89198),s=(i=o)&&i.__esModule?i:{default:i};var a=/\s*,\s*/g,l=/&/g,c=/\$([\w-]+)/g},54716:(t,e,n)=>{"use strict";var r=h(n(65194)),i=h(n(80179)),o=h(n(57421)),s=h(n(41116)),a=h(n(41837)),l=h(n(54943)),c=h(n(44525)),u=h(n(69930)),d=h(n(55154)),p=h(n(24847));function h(t){return t&&t.__esModule?t:{default:t}}e.Z=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{plugins:[(0,r.default)(t.template),(0,i.default)(t.global),(0,o.default)(t.extend),(0,s.default)(t.nested),(0,a.default)(t.compose),(0,l.default)(t.camelCase),(0,c.default)(t.defaultUnit),(0,u.default)(t.expand),(0,d.default)(t.vendorPrefixer),(0,p.default)(t.propsSort)]}}},24847:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){function t(t,e){return t.length-e.length}return{onProcessStyle:function(e,n){if("style"!==n.type)return e;var r={},i=Object.keys(e).sort(t);for(var o in i)r[i[o]]=e[i[o]];return r}}}},65194:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(99341),o=(r=i)&&r.__esModule?r:{default:r};var s=function(t){"string"==typeof t.style&&(t.style=(0,o.default)(t.style))};e.default=function(){return{onProcessRule:s}}},99341:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(89198),o=(r=i)&&r.__esModule?r:{default:r};var s=/;\n/;e.default=function(t){for(var e={},n=t.split(s),r=0;r<n.length;r++){var i=(n[r]||"").trim();if(i){var a=i.indexOf(":");if(-1!==a){var l=i.substr(0,a).trim(),c=i.substr(a+1).trim();e[l]=c}else(0,o.default)(!1,'Malformed CSS string "%s"',i)}}return e}},55154:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){return{onProcessRule:function(t){"keyframes"===t.type&&(t.key="@"+r.prefix.css+t.key.substr(1))},onProcessStyle:function(t,e){if("style"!==e.type)return t;for(var n in t){var i=t[n],o=!1,s=r.supportedProperty(n);s&&s!==n&&(o=!0);var a=!1,l=r.supportedValue(s,i);l&&l!==i&&(a=!0),(o||a)&&(o&&delete t[n],t[s||n]=l||i)}return t},onChangeValue:function(t,e){return r.supportedValue(e,t)}}};var r=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(24893))},74009:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),s=m(n(60307)),a=m(n(83103)),l=m(n(56763)),c=m(n(60623)),u=m(n(90282)),d=m(n(88151)),p=m(n(96913)),h=m(n(84546)),f=m(n(75347)),g=m(n(76558)),v=m(n(30418)),b=m(n(31510));function m(t){return t&&t.__esModule?t:{default:t}}var y=c.default.concat([u.default,d.default]),x=0,_=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.id=x++,this.version="9.8.7",this.plugins=new l.default,this.options={createGenerateClassName:f.default,Renderer:s.default?v.default:b.default,plugins:[]},this.generateClassName=(0,f.default)(),this.use.apply(this,y),this.setup(e)}return o(t,[{key:"setup",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t.createGenerateClassName&&(this.options.createGenerateClassName=t.createGenerateClassName,this.generateClassName=t.createGenerateClassName()),null!=t.insertionPoint&&(this.options.insertionPoint=t.insertionPoint),(t.virtual||t.Renderer)&&(this.options.Renderer=t.Renderer||(t.virtual?b.default:v.default)),t.plugins&&this.use.apply(this,t.plugins),this}},{key:"createStyleSheet",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.index;"number"!=typeof n&&(n=0===p.default.index?0:p.default.index+1);var r=new a.default(t,i({},e,{jss:this,generateClassName:e.generateClassName||this.generateClassName,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:n}));return this.plugins.onProcessSheet(r),r}},{key:"removeStyleSheet",value:function(t){return t.detach(),p.default.remove(t),this}},{key:"createRule",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};"object"===(void 0===t?"undefined":r(t))&&(n=e,e=t,t=void 0);var i=n;i.jss=this,i.Renderer=this.options.Renderer,i.generateClassName||(i.generateClassName=this.generateClassName),i.classes||(i.classes={});var o=(0,g.default)(t,e,i);return!i.selector&&o instanceof h.default&&(o.selector="."+i.generateClassName(o)),this.plugins.onProcessRule(o),o}},{key:"use",value:function(){for(var t=this,e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return n.forEach((function(e){-1===t.options.plugins.indexOf(e)&&(t.options.plugins.push(e),t.plugins.use(e))})),this}}]),t}();e.default=_},56763:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=n(89198),s=(r=o)&&r.__esModule?r:{default:r};var a=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.hooks={onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}}return i(t,[{key:"onCreateRule",value:function(t,e,n){for(var r=0;r<this.hooks.onCreateRule.length;r++){var i=this.hooks.onCreateRule[r](t,e,n);if(i)return i}return null}},{key:"onProcessRule",value:function(t){if(!t.isProcessed){for(var e=t.options.sheet,n=0;n<this.hooks.onProcessRule.length;n++)this.hooks.onProcessRule[n](t,e);t.style&&this.onProcessStyle(t.style,t,e),t.isProcessed=!0}}},{key:"onProcessStyle",value:function(t,e,n){for(var r=t,i=0;i<this.hooks.onProcessStyle.length;i++)r=this.hooks.onProcessStyle[i](r,e,n),e.style=r}},{key:"onProcessSheet",value:function(t){for(var e=0;e<this.hooks.onProcessSheet.length;e++)this.hooks.onProcessSheet[e](t)}},{key:"onUpdate",value:function(t,e,n){for(var r=0;r<this.hooks.onUpdate.length;r++)this.hooks.onUpdate[r](t,e,n)}},{key:"onChangeValue",value:function(t,e,n){for(var r=t,i=0;i<this.hooks.onChangeValue.length;i++)r=this.hooks.onChangeValue[i](r,e,n);return r}},{key:"use",value:function(t){for(var e in t)this.hooks[e]?this.hooks[e].push(t[e]):(0,s.default)(!1,'[JSS] Unknown hook "%s".',e)}}]),t}();e.default=a},37009:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=c(n(76558)),s=c(n(24906)),a=c(n(84546)),l=c(n(15653));function c(t){return t&&t.__esModule?t:{default:t}}var u=function(){function t(e){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.map={},this.raw={},this.index=[],this.update=function(t,e){var r=n.options,i=r.jss.plugins,o=r.sheet;if("string"==typeof t)i.onUpdate(e,n.get(t),o);else for(var s=0;s<n.index.length;s++)i.onUpdate(t,n.index[s],o)},this.options=e,this.classes=e.classes}return i(t,[{key:"add",value:function(t,e,n){var i=this.options,s=i.parent,c=i.sheet,u=i.jss,d=i.Renderer,p=i.generateClassName;!(n=r({classes:this.classes,parent:s,sheet:c,jss:u,Renderer:d,generateClassName:p},n)).selector&&this.classes[t]&&(n.selector="."+(0,l.default)(this.classes[t])),this.raw[t]=e;var h=(0,o.default)(t,e,n),f=void 0;!n.selector&&h instanceof a.default&&(f=p(h,c),h.selector="."+(0,l.default)(f)),this.register(h,f);var g=void 0===n.index?this.index.length:n.index;return this.index.splice(g,0,h),h}},{key:"get",value:function(t){return this.map[t]}},{key:"remove",value:function(t){this.unregister(t),this.index.splice(this.indexOf(t),1)}},{key:"indexOf",value:function(t){return this.index.indexOf(t)}},{key:"process",value:function(){var t=this.options.jss.plugins;this.index.slice(0).forEach(t.onProcessRule,t)}},{key:"register",value:function(t,e){this.map[t.key]=t,t instanceof a.default&&(this.map[t.selector]=t,e&&(this.classes[t.key]=e))}},{key:"unregister",value:function(t){delete this.map[t.key],t instanceof a.default&&(delete this.map[t.selector],delete this.classes[t.key])}},{key:"link",value:function(t){for(var e=this.options.sheet.renderer.getUnescapedKeysMap(this.index),n=0;n<t.length;n++){var r=t[n],i=this.options.sheet.renderer.getKey(r);e[i]&&(i=e[i]);var o=this.map[i];o&&(0,s.default)(o,r)}}},{key:"toString",value:function(t){for(var e="",n=this.options.sheet,r=!!n&&n.options.link,i=0;i<this.index.length;i++){var o=this.index[i].toString(t);(o||r)&&(e&&(e+="\n"),e+=o)}return e}}]),t}();e.default=u},11749:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=n(89198),s=(r=o)&&r.__esModule?r:{default:r};var a=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.sheets=[],this.refs=[],this.keys=[]}return i(t,[{key:"get",value:function(t){var e=this.keys.indexOf(t);return this.sheets[e]}},{key:"add",value:function(t,e){var n=this.sheets,r=this.refs,i=this.keys,o=n.indexOf(e);return-1!==o?o:(n.push(e),r.push(0),i.push(t),n.length-1)}},{key:"manage",value:function(t){var e=this.keys.indexOf(t),n=this.sheets[e];return 0===this.refs[e]&&n.attach(),this.refs[e]++,this.keys[e]||this.keys.splice(e,0,t),n}},{key:"unmanage",value:function(t){var e=this.keys.indexOf(t);-1!==e?this.refs[e]>0&&(this.refs[e]--,0===this.refs[e]&&this.sheets[e].detach()):(0,s.default)(!1,"SheetsManager: can't find sheet to unmanage")}},{key:"size",get:function(){return this.keys.length}}]),t}();e.default=a},28665:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();var r=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.registry=[]}return n(t,[{key:"add",value:function(t){var e=this.registry,n=t.options.index;if(-1===e.indexOf(t))if(0===e.length||n>=this.index)e.push(t);else for(var r=0;r<e.length;r++)if(e[r].options.index>n)return void e.splice(r,0,t)}},{key:"reset",value:function(){this.registry=[]}},{key:"remove",value:function(t){var e=this.registry.indexOf(t);this.registry.splice(e,1)}},{key:"toString",value:function(t){return this.registry.filter((function(t){return t.attached})).map((function(e){return e.toString(t)})).join("\n")}},{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),t}();e.default=r},83103:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=a(n(24906)),s=a(n(37009));function a(t){return t&&t.__esModule?t:{default:t}}var l=function(){function t(e,n){var i=this;for(var o in function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.update=function(t,e){return"string"==typeof t?i.rules.update(t,e):i.rules.update(t),i},this.attached=!1,this.deployed=!1,this.linked=!1,this.classes={},this.options=r({},n,{sheet:this,parent:this,classes:this.classes}),this.renderer=new n.Renderer(this),this.rules=new s.default(this.options),e)this.rules.add(o,e[o]);this.rules.process()}return i(t,[{key:"attach",value:function(){return this.attached||(this.deployed||this.deploy(),this.renderer.attach(),!this.linked&&this.options.link&&this.link(),this.attached=!0),this}},{key:"detach",value:function(){return this.attached?(this.renderer.detach(),this.attached=!1,this):this}},{key:"addRule",value:function(t,e,n){var r=this.queue;this.attached&&!r&&(this.queue=[]);var i=this.rules.add(t,e,n);return this.options.jss.plugins.onProcessRule(i),this.attached?this.deployed?(r?r.push(i):(this.insertRule(i),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),i):i:(this.deployed=!1,i)}},{key:"insertRule",value:function(t){var e=this.renderer.insertRule(t);e&&this.options.link&&(0,o.default)(t,e)}},{key:"addRules",value:function(t,e){var n=[];for(var r in t)n.push(this.addRule(r,t[r],e));return n}},{key:"getRule",value:function(t){return this.rules.get(t)}},{key:"deleteRule",value:function(t){var e=this.rules.get(t);return!!e&&(this.rules.remove(e),!this.attached||!e.renderable||this.renderer.deleteRule(e.renderable))}},{key:"indexOf",value:function(t){return this.rules.indexOf(t)}},{key:"deploy",value:function(){return this.renderer.deploy(),this.deployed=!0,this}},{key:"link",value:function(){var t=this.renderer.getRules();return t&&this.rules.link(t),this.linked=!0,this}},{key:"toString",value:function(t){return this.rules.toString(t)}}]),t}();e.default=l},67514:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.create=e.createGenerateClassName=e.sheets=e.RuleList=e.SheetsManager=e.SheetsRegistry=e.toCssValue=e.getDynamicStyles=void 0;var r=n(3558);Object.defineProperty(e,"getDynamicStyles",{enumerable:!0,get:function(){return d(r).default}});var i=n(44396);Object.defineProperty(e,"toCssValue",{enumerable:!0,get:function(){return d(i).default}});var o=n(28665);Object.defineProperty(e,"SheetsRegistry",{enumerable:!0,get:function(){return d(o).default}});var s=n(11749);Object.defineProperty(e,"SheetsManager",{enumerable:!0,get:function(){return d(s).default}});var a=n(37009);Object.defineProperty(e,"RuleList",{enumerable:!0,get:function(){return d(a).default}});var l=n(96913);Object.defineProperty(e,"sheets",{enumerable:!0,get:function(){return d(l).default}});var c=n(75347);Object.defineProperty(e,"createGenerateClassName",{enumerable:!0,get:function(){return d(c).default}});var u=d(n(74009));function d(t){return t&&t.__esModule?t:{default:t}}var p=e.create=function(t){return new u.default(t)};e.default=p()},88151:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=s(n(37009)),i=s(n(84546)),o=s(n(76558));function s(t){return t&&t.__esModule?t:{default:t}}var a=Date.now(),l="fnValues"+a,c="fnStyle"+ ++a;e.default={onCreateRule:function(t,e,n){if("function"!=typeof e)return null;var r=(0,o.default)(t,{},n);return r[c]=e,r},onProcessStyle:function(t,e){var n={};for(var r in t){var i=t[r];"function"==typeof i&&(delete t[r],n[r]=i)}return(e=e)[l]=n,t},onUpdate:function(t,e){if(e.rules instanceof r.default)e.rules.update(t);else if(e instanceof i.default){if((e=e)[l])for(var n in e[l])e.prop(n,e[l][n](t));var o=(e=e)[c];if(o){var s=o(t);for(var a in s)e.prop(a,s[a])}}}}},90282:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=s(n(84546)),i=s(n(76558)),o=s(n(78021));function s(t){return t&&t.__esModule?t:{default:t}}e.default={onCreateRule:function(t,e,n){if(!(0,o.default)(e))return null;var r=e,s=(0,i.default)(t,{},n);return r.subscribe((function(t){for(var e in t)s.prop(e,t[e])})),s},onProcessRule:function(t){if(t instanceof r.default){var e=t,n=e.style,i=function(t){var r=n[t];if(!(0,o.default)(r))return"continue";delete n[t],r.subscribe({next:function(n){e.prop(t,n)}})};for(var s in n)i(s)}}}},60623:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=l(n(83524)),i=l(n(2824)),o=l(n(27836)),s=l(n(39134)),a=l(n(76444));function l(t){return t&&t.__esModule?t:{default:t}}var c={"@charset":r.default,"@import":r.default,"@namespace":r.default,"@keyframes":i.default,"@media":o.default,"@supports":o.default,"@font-face":s.default,"@viewport":a.default,"@-ms-viewport":a.default},u=Object.keys(c).map((function(t){var e=new RegExp("^"+t),n=c[t];return{onCreateRule:function(t,r,i){return e.test(t)?new n(t,r,i):null}}}));e.default=u},30418:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=l(n(89198)),o=l(n(96913)),s=l(n(84546)),a=l(n(44396));function l(t){return t&&t.__esModule?t:{default:t}}var c=function(t){var e=void 0;return function(){return e||(e=t()),e}};function u(t,e){try{return t.style.getPropertyValue(e)}catch(t){return""}}function d(t,e,n){try{var r=n;if(Array.isArray(n)&&(r=(0,a.default)(n,!0),"!important"===n[n.length-1]))return t.style.setProperty(e,r,"important"),!0;t.style.setProperty(e,r)}catch(t){return!1}return!0}function p(t,e){try{t.style.removeProperty(e)}catch(t){(0,i.default)(!1,'[JSS] DOMException "%s" was thrown. Tried to remove property "%s".',t.message,e)}}var h,f=1,g=7,v=(h=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t.substr(e,t.indexOf("{")-1)},function(t){if(t.type===f)return t.selectorText;if(t.type===g){var e=t.name;if(e)return"@keyframes "+e;var n=t.cssText;return"@"+h(n,n.indexOf("keyframes"))}return h(t.cssText)});function b(t,e){return t.selectorText=e,t.selectorText===e}var m,y,x=c((function(){return document.head||document.getElementsByTagName("head")[0]})),_=(m=void 0,y=!1,function(t){var e={};m||(m=document.createElement("style"));for(var n=0;n<t.length;n++){var r=t[n];if(r instanceof s.default){var i=r.selector;if(i&&-1!==i.indexOf("\\")){y||(x().appendChild(m),y=!0),m.textContent=i+" {}";var o=m.sheet;if(o){var a=o.cssRules;a&&(e[a[0].selectorText]=r.key)}}}}return y&&(x().removeChild(m),y=!1),e});function w(t){var e=o.default.registry;if(e.length>0){var n=function(t,e){for(var n=0;n<t.length;n++){var r=t[n];if(r.attached&&r.options.index>e.index&&r.options.insertionPoint===e.insertionPoint)return r}return null}(e,t);if(n)return n.renderer.element;if(n=function(t,e){for(var n=t.length-1;n>=0;n--){var r=t[n];if(r.attached&&r.options.insertionPoint===e.insertionPoint)return r}return null}(e,t))return n.renderer.element.nextElementSibling}var r=t.insertionPoint;if(r&&"string"==typeof r){var s=function(t){for(var e=x(),n=0;n<e.childNodes.length;n++){var r=e.childNodes[n];if(8===r.nodeType&&r.nodeValue.trim()===t)return r}return null}(r);if(s)return s.nextSibling;(0,i.default)("jss"===r,'[JSS] Insertion point "%s" not found.',r)}return null}var C=c((function(){var t=document.querySelector('meta[property="csp-nonce"]');return t?t.getAttribute("content"):null})),S=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.getPropertyValue=u,this.setProperty=d,this.removeProperty=p,this.setSelector=b,this.getKey=v,this.getUnescapedKeysMap=_,this.hasInsertedRules=!1,e&&o.default.add(e),this.sheet=e;var n=this.sheet?this.sheet.options:{},r=n.media,i=n.meta,s=n.element;this.element=s||document.createElement("style"),this.element.setAttribute("data-jss",""),r&&this.element.setAttribute("media",r),i&&this.element.setAttribute("data-meta",i);var a=C();a&&this.element.setAttribute("nonce",a)}return r(t,[{key:"attach",value:function(){!this.element.parentNode&&this.sheet&&(this.hasInsertedRules&&(this.deploy(),this.hasInsertedRules=!1),function(t,e){var n=e.insertionPoint,r=w(e);if(r){var o=r.parentNode;o&&o.insertBefore(t,r)}else if(n&&"number"==typeof n.nodeType){var s=n,a=s.parentNode;a?a.insertBefore(t,s.nextSibling):(0,i.default)(!1,"[JSS] Insertion point is not in the DOM.")}else x().insertBefore(t,r)}(this.element,this.sheet.options))}},{key:"detach",value:function(){this.element.parentNode.removeChild(this.element)}},{key:"deploy",value:function(){this.sheet&&(this.element.textContent="\n"+this.sheet.toString()+"\n")}},{key:"insertRule",value:function(t,e){var n=this.element.sheet,r=n.cssRules,o=t.toString();if(e||(e=r.length),!o)return!1;try{n.insertRule(o,e)}catch(e){return(0,i.default)(!1,"[JSS] Can not insert an unsupported rule \n\r%s",t),!1}return this.hasInsertedRules=!0,r[e]}},{key:"deleteRule",value:function(t){var e=this.element.sheet,n=this.indexOf(t);return-1!==n&&(e.deleteRule(n),!0)}},{key:"indexOf",value:function(t){for(var e=this.element.sheet.cssRules,n=0;n<e.length;n++)if(t===e[n])return n;return-1}},{key:"replaceRule",value:function(t,e){var n=this.indexOf(t),r=this.insertRule(e,n);return this.element.sheet.deleteRule(n),r}},{key:"getRules",value:function(){return this.element.sheet.cssRules}}]),t}();e.default=S},31510:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();var r=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return n(t,[{key:"setProperty",value:function(){return!0}},{key:"getPropertyValue",value:function(){return""}},{key:"removeProperty",value:function(){}},{key:"setSelector",value:function(){return!0}},{key:"getKey",value:function(){return""}},{key:"attach",value:function(){}},{key:"detach",value:function(){}},{key:"deploy",value:function(){}},{key:"insertRule",value:function(){return!1}},{key:"deleteRule",value:function(){return!0}},{key:"replaceRule",value:function(){return!1}},{key:"getRules",value:function(){}},{key:"indexOf",value:function(){return-1}}]),t}();e.default=r},27836:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),s=n(37009),a=(r=s)&&r.__esModule?r:{default:r};var l=function(){function t(e,n,r){for(var o in function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.type="conditional",this.isProcessed=!1,this.key=e,this.options=r,this.rules=new a.default(i({},r,{parent:this})),n)this.rules.add(o,n[o]);this.rules.process()}return o(t,[{key:"getRule",value:function(t){return this.rules.get(t)}},{key:"indexOf",value:function(t){return this.rules.indexOf(t)}},{key:"addRule",value:function(t,e,n){var r=this.rules.add(t,e,n);return this.options.jss.plugins.onProcessRule(r),r}},{key:"toString",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{indent:1},e=this.rules.toString(t);return e?this.key+" {\n"+e+"\n}":""}}]),t}();e.default=l},39134:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=n(76139),s=(r=o)&&r.__esModule?r:{default:r};var a=function(){function t(e,n,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.type="font-face",this.isProcessed=!1,this.key=e,this.style=n,this.options=r}return i(t,[{key:"toString",value:function(t){if(Array.isArray(this.style)){for(var e="",n=0;n<this.style.length;n++)e+=(0,s.default)(this.key,this.style[n]),this.style[n+1]&&(e+="\n");return e}return(0,s.default)(this.key,this.style,t)}}]),t}();e.default=a},2824:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),s=n(37009),a=(r=s)&&r.__esModule?r:{default:r};var l=function(){function t(e,n,r){for(var o in function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.type="keyframes",this.isProcessed=!1,this.key=e,this.options=r,this.rules=new a.default(i({},r,{parent:this})),n)this.rules.add(o,n[o],i({},this.options,{parent:this,selector:o}));this.rules.process()}return o(t,[{key:"toString",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{indent:1},e=this.rules.toString(t);return e&&(e+="\n"),this.key+" {\n"+e+"}"}}]),t}();e.default=l},83524:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();var r=function(){function t(e,n,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.type="simple",this.isProcessed=!1,this.key=e,this.value=n,this.options=r}return n(t,[{key:"toString",value:function(t){if(Array.isArray(this.value)){for(var e="",n=0;n<this.value.length;n++)e+=this.key+" "+this.value[n]+";",this.value[n+1]&&(e+="\n");return e}return this.key+" "+this.value+";"}}]),t}();e.default=r},84546:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),s=c(n(89198)),a=c(n(76139)),l=c(n(44396));function c(t){return t&&t.__esModule?t:{default:t}}var u=function(){function t(e,n,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.type="style",this.isProcessed=!1;var i=r.sheet,o=r.Renderer,s=r.selector;this.key=e,this.options=r,this.style=n,s&&(this.selectorText=s),this.renderer=i?i.renderer:new o}return o(t,[{key:"prop",value:function(t,e){if(void 0===e)return this.style[t];if(this.style[t]===e)return this;var n=null==(e=this.options.jss.plugins.onChangeValue(e,t,this))||!1===e,r=t in this.style;if(n&&!r)return this;var i=n&&r;if(i?delete this.style[t]:this.style[t]=e,this.renderable)return i?this.renderer.removeProperty(this.renderable,t):this.renderer.setProperty(this.renderable,t,e),this;var o=this.options.sheet;return o&&o.attached&&(0,s.default)(!1,'Rule is not linked. Missing sheet option "link: true".'),this}},{key:"applyTo",value:function(t){var e=this.toJSON();for(var n in e)this.renderer.setProperty(t,n,e[n]);return this}},{key:"toJSON",value:function(){var t={};for(var e in this.style){var n=this.style[e];"object"!==(void 0===n?"undefined":i(n))?t[e]=n:Array.isArray(n)&&(t[e]=(0,l.default)(n))}return t}},{key:"toString",value:function(t){var e=this.options.sheet,n=!!e&&e.options.link?r({},t,{allowEmpty:!0}):t;return(0,a.default)(this.selector,this.style,n)}},{key:"selector",set:function(t){if(t!==this.selectorText&&(this.selectorText=t,this.renderable&&!this.renderer.setSelector(this.renderable,t)&&this.renderable)){var e=this.renderer.replaceRule(this.renderable,this);e&&(this.renderable=e)}},get:function(){return this.selectorText}}]),t}();e.default=u},76444:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=n(76139),s=(r=o)&&r.__esModule?r:{default:r};var a=function(){function t(e,n,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.type="viewport",this.isProcessed=!1,this.key=e,this.style=n,this.options=r}return i(t,[{key:"toString",value:function(t){return(0,s.default)(this.key,this.style,t)}}]),t}();e.default=a},96913:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(28665),o=(r=i)&&r.__esModule?r:{default:r};e.default=new o.default},37281:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.default=function t(e){if(null==e)return e;var n=void 0===e?"undefined":r(e);if("string"===n||"number"===n||"function"===n)return e;if(a(e))return e.map(t);if((0,s.default)(e))return e;var i={};for(var o in e){var l=e[o];"object"!==(void 0===l?"undefined":r(l))?i[o]=l:i[o]=t(l)}return i};var i,o=n(78021),s=(i=o)&&i.__esModule?i:{default:i};var a=Array.isArray},75347:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=o(n(89198)),i=(o(n(83103)),o(n(6166)));function o(t){return t&&t.__esModule?t:{default:t}}e.default=function(){var t=0;return function(e,n){(t+=1)>1e10&&(0,r.default)(!1,"[JSS] You might have a memory leak. Rule counter is at %s.",t);var o="c",s="";return n&&(o=n.options.classNamePrefix||"c",null!=n.options.jss.id&&(s+=n.options.jss.id)),""+o+i.default+s+t}}},76558:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"unnamed",e=arguments[1],n=arguments[2],s=n.jss,a=(0,o.default)(e),l=s.plugins.onCreateRule(t,a,n);if(l)return l;"@"===t[0]&&(0,r.default)(!1,"[JSS] Unknown at-rule %s",t);return new i.default(t,a,n)};var r=s(n(89198)),i=s(n(84546)),o=s(n(37281));function s(t){return t&&t.__esModule?t:{default:t}}},15653:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});n.g.CSS;e.default=function(t){return t}},3558:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.default=function t(e){var r=null;for(var i in e){var o=e[i],s=void 0===o?"undefined":n(o);if("function"===s)r||(r={}),r[i]=o;else if("object"===s&&null!==o&&!Array.isArray(o)){var a=t(o);a&&(r||(r={}),r[i]=a)}}return r}},78021:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(35934),o=(r=i)&&r.__esModule?r:{default:r};e.default=function(t){return t&&t[o.default]&&t===t[o.default]()}},24906:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){t.renderable=e,t.rules&&e.cssRules&&t.rules.link(e.cssRules)}},6166:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r="2f1acc6c3a606b082e5eef5e54414ffb";null==n.g[r]&&(n.g[r]=0),e.default=n.g[r]++},76139:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r="";if(!e)return r;var i=n.indent,a=void 0===i?0:i,l=e.fallbacks;if(a++,l)if(Array.isArray(l))for(var c=0;c<l.length;c++){var u=l[c];for(var d in u){var p=u[d];null!=p&&(r+="\n"+s(d+": "+(0,o.default)(p)+";",a))}}else for(var h in l){var f=l[h];null!=f&&(r+="\n"+s(h+": "+(0,o.default)(f)+";",a))}for(var g in e){var v=e[g];null!=v&&"fallbacks"!==g&&(r+="\n"+s(g+": "+(0,o.default)(v)+";",a))}return r||n.allowEmpty?(a--,r=s(t+" {"+r+"\n",a)+s("}",a)):r};var r,i=n(44396),o=(r=i)&&r.__esModule?r:{default:r};function s(t,e){for(var n="",r=0;r<e;r++)n+=" ";return n+t}},44396:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!Array.isArray(t))return t;var r="";if(Array.isArray(t[0]))for(var i=0;i<t.length&&"!important"!==t[i];i++)r&&(r+=", "),r+=n(t[i]," ");else r=n(t,", ");e||"!important"!==t[t.length-1]||(r+=" !important");return r};var n=function(t,e){for(var n="",r=0;r<t.length&&"!important"!==t[r];r++)n&&(n+=e),n+=t[r];return n}},13579:(t,e,n)=>{"use strict";n.d(e,{Z:()=>p});var r=n(90059);const i=function(){this.__data__=r.Z?(0,r.Z)(null):{},this.size=0};const o=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var s=Object.prototype.hasOwnProperty;const a=function(t){var e=this.__data__;if(r.Z){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return s.call(e,t)?e[t]:void 0};var l=Object.prototype.hasOwnProperty;const c=function(t){var e=this.__data__;return r.Z?void 0!==e[t]:l.call(e,t)};const u=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=r.Z&&void 0===e?"__lodash_hash_undefined__":e,this};function d(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}d.prototype.clear=i,d.prototype.delete=o,d.prototype.get=a,d.prototype.has=c,d.prototype.set=u;const p=d},14937:(t,e,n)=>{"use strict";n.d(e,{Z:()=>d});const r=function(){this.__data__=[],this.size=0};var i=n(17791),o=Array.prototype.splice;const s=function(t){var e=this.__data__,n=(0,i.Z)(e,t);return!(n<0)&&(n==e.length-1?e.pop():o.call(e,n,1),--this.size,!0)};const a=function(t){var e=this.__data__,n=(0,i.Z)(e,t);return n<0?void 0:e[n][1]};const l=function(t){return(0,i.Z)(this.__data__,t)>-1};const c=function(t,e){var n=this.__data__,r=(0,i.Z)(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=s,u.prototype.get=a,u.prototype.has=l,u.prototype.set=c;const d=u},21575:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(50500),i=n(21985),o=(0,r.Z)(i.Z,"Map");const s=/^(183|296|717|882)$/.test(n.j)?null:o},53323:(t,e,n)=>{"use strict";n.d(e,{Z:()=>h});var r=n(13579),i=n(14937),o=n(21575);const s=function(){this.size=0,this.__data__={hash:new r.Z,map:new(o.Z||i.Z),string:new r.Z}};var a=n(69069);const l=function(t){var e=(0,a.Z)(this,t).delete(t);return this.size-=e?1:0,e};const c=function(t){return(0,a.Z)(this,t).get(t)};const u=function(t){return(0,a.Z)(this,t).has(t)};const d=function(t,e){var n=(0,a.Z)(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};function p(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}p.prototype.clear=s,p.prototype.delete=l,p.prototype.get=c,p.prototype.has=u,p.prototype.set=d;const h=p},98085:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(50500),i=n(21985),o=(0,r.Z)(i.Z,"Set");const s=/^(1(45|54|83)|8(13|30|82)|9(37|39|97)|274|296|32|580|601|717)$/.test(n.j)?null:o},96939:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var r=n(53323);const i=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const o=function(t){return this.__data__.has(t)};function s(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new r.Z;++e<n;)this.add(t[e])}s.prototype.add=s.prototype.push=i,s.prototype.has=o;const a=s},32729:(t,e,n)=>{"use strict";n.d(e,{Z:()=>p});var r=n(14937);const i=function(){this.__data__=new r.Z,this.size=0};const o=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const s=function(t){return this.__data__.get(t)};const a=function(t){return this.__data__.has(t)};var l=n(21575),c=n(53323);const u=function(t,e){var n=this.__data__;if(n instanceof r.Z){var i=n.__data__;if(!l.Z||i.length<199)return i.push([t,e]),this.size=++n.size,this;n=this.__data__=new c.Z(i)}return n.set(t,e),this.size=n.size,this};function d(t){var e=this.__data__=new r.Z(t);this.size=e.size}d.prototype.clear=i,d.prototype.delete=o,d.prototype.get=s,d.prototype.has=a,d.prototype.set=u;const p=d},86100:(t,e,n)=>{"use strict";n.d(e,{Z:()=>i});var r=n(21985).Z.Symbol;const i=/^(183|296|717|882)$/.test(n.j)?null:r},77604:(t,e,n)=>{"use strict";n.d(e,{Z:()=>i});var r=n(21985).Z.Uint8Array;const i=/^(183|296|580|717|882)$/.test(n.j)?null:r},90643:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});const r=/^(183|296|580|717|882)$/.test(n.j)?null:function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}},52116:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});const r=/^(2(05|2|22)|5(5|51|71)|360|672|775|885|908|991)$/.test(n.j)?function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}:null},39440:(t,e,n)=>{"use strict";if(n.d(e,{Z:()=>i}),/^(205|908)$/.test(n.j))var r=n(15803);const i=/^(205|908)$/.test(n.j)?function(t,e){return!!(null==t?0:t.length)&&(0,r.Z)(t,e,0)>-1}:null},53721:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});const r=/^(205|908)$/.test(n.j)?function(t,e,n){for(var r=-1,i=null==t?0:t.length;++r<i;)if(n(e,t[r]))return!0;return!1}:null},58781:(t,e,n)=>{"use strict";if(n.d(e,{Z:()=>u}),!/^(183|296|580|717|882)$/.test(n.j))var r=n(84623);if(!/^(183|296|580|717|882)$/.test(n.j))var i=n(60880);if(!/^(183|296|580|717|882)$/.test(n.j))var o=n(49903);if(!/^(183|296|580|717|882)$/.test(n.j))var s=n(79142);if(!/^(183|296|580|717|882)$/.test(n.j))var a=n(45671);if(!/^(183|296|580|717|882)$/.test(n.j))var l=n(37376);var c=Object.prototype.hasOwnProperty;const u=/^(183|296|580|717|882)$/.test(n.j)?null:function(t,e){var n=(0,o.Z)(t),u=!n&&(0,i.Z)(t),d=!n&&!u&&(0,s.Z)(t),p=!n&&!u&&!d&&(0,l.Z)(t),h=n||u||d||p,f=h?(0,r.Z)(t.length,String):[],g=f.length;for(var v in t)!e&&!c.call(t,v)||h&&("length"==v||d&&("offset"==v||"parent"==v)||p&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||(0,a.Z)(v,g))||f.push(v);return f}},14212:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});const r=/^(183|296|580|717|882)$/.test(n.j)?null:function(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}},17619:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});const r=/^(183|296|580|717|882)$/.test(n.j)?null:function(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}},68124:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});const r=/^(2(05|2|22)|67[25]|(18|77|88)5|366|472|571|908|991)$/.test(n.j)?function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}:null},93179:(t,e,n)=>{"use strict";if(n.d(e,{Z:()=>o}),!/^(183|296|580|717|882)$/.test(n.j))var r=n(13130);if(!/^(183|296|580|717|882)$/.test(n.j))var i=n(81229);const o=/^(183|296|580|717|882)$/.test(n.j)?null:function(t,e,n){(void 0!==n&&!(0,i.Z)(t[e],n)||void 0===n&&!(e in t))&&(0,r.Z)(t,e,n)}},39868:(t,e,n)=>{"use strict";if(n.d(e,{Z:()=>s}),!/^(183|296|580|717|882)$/.test(n.j))var r=n(13130);if(!/^(183|296|580|717|882)$/.test(n.j))var i=n(81229);var o=Object.prototype.hasOwnProperty;const s=/^(183|296|580|717|882)$/.test(n.j)?null:function(t,e,n){var s=t[e];o.call(t,e)&&(0,i.Z)(s,n)&&(void 0!==n||e in t)||(0,r.Z)(t,e,n)}},17791:(t,e,n)=>{"use strict";if(n.d(e,{Z:()=>i}),!/^(183|296|717|882)$/.test(n.j))var r=n(81229);const i=/^(183|296|717|882)$/.test(n.j)?null:function(t,e){for(var n=t.length;n--;)if((0,r.Z)(t[n][0],e))return n;return-1}},27815:(t,e,n)=>{"use strict";if(n.d(e,{Z:()=>o}),/^(2(05|2|22)|5(5|51|71)|360|672|775|885|908|991)$/.test(n.j))var r=n(5443);if(/^(2(05|2|22)|5(5|51|71)|360|672|775|885|908|991)$/.test(n.j))var i=n(27211);const o=/^(2(05|2|22)|5(5|51|71)|360|672|775|885|908|991)$/.test(n.j)?function(t,e){return t&&(0,r.Z)(e,(0,i.Z)(e),t)}:null},81978:(t,e,n)=>{"use strict";if(n.d(e,{Z:()=>o}),/^(2(05|2|22)|5(5|51|71)|360|672|775|885|908|991)$/.test(n.j))var r=n(5443);if(/^(2(05|2|22)|5(5|51|71)|360|672|775|885|908|991)$/.test(n.j))var i=n(12166);const o=/^(2(05|2|22)|5(5|51|71)|360|672|775|885|908|991)$/.test(n.j)?function(t,e){return t&&(0,r.Z)(e,(0,i.Z)(e),t)}:null},13130:(t,e,n)=>{"use strict";if(n.d(e,{Z:()=>i}),!/^(183|296|580|717|882)$/.test(n.j))var r=n(76521);const i=/^(183|296|580|717|882)$/.test(n.j)?null:function(t,e,n){"__proto__"==e&&r.Z?(0,r.Z)(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},79063:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});const r=/^(183|296|580|717|882)$/.test(n.j)?null:function(t,e,n){return t==t&&(void 0!==n&&(t=t<=n?t:n),void 0!==e&&(t=t>=e?t:e)),t}},7685:(t,e,n)=>{"use strict";if(n.d(e,{Z:()=>k}),/^(2(05|2|22)|5(5|51|71)|360|672|775|885|908|991)$/.test(n.j))var r=n(32729);if(/^(2(05|2|22)|5(5|51|71)|360|672|775|885|908|991)$/.test(n.j))var i=n(52116);if(/^(2(05|2|22)|5(5|51|71)|360|672|775|885|908|991)$/.test(n.j))var o=n(39868);if(/^(2(05|2|22)|5(5|51|71)|360|672|775|885|908|991)$/.test(n.j))var s=n(27815);if(/^(2(05|2|22)|5(5|51|71)|360|672|775|885|908|991)$/.test(n.j))var a=n(81978);if(/^(2(05|2|22)|5(5|51|71)|360|672|775|885|908|991)$/.test(n.j))var l=n(7805);if(/^(2(05|2|22)|5(5|51|71)|360|672|775|885|908|991)$/.test(n.j))var c=n(39486);if(/^(2(05|2|22)|5(5|51|71)|360|672|775|885|908|991)$/.test(n.j))var u=n(63803);if(/^(2(05|2|22)|5(5|51|71)|360|672|775|885|908|991)$/.test(n.j))var d=n(71293);if(/^(2(05|2|22)|5(5|51|71)|360|672|775|885|908|991)$/.test(n.j))var p=n(73209);if(/^(2(05|2|22)|5(5|51|71)|360|672|775|885|908|991)$/.test(n.j))var h=n(80427);if(/^(2(05|2|22)|5(5|51|71)|360|672|775|885|908|991)$/.test(n.j))var f=n(11487);if(/^(2(05|2|22)|5(5|51|71)|360|672|775|885|908|991)$/.test(n.j))var g=n(7698);if(/^(2(05|2|22)|5(5|51|71)|360|672|775|885|908|991)$/.test(n.j))var v=n(44885);if(/^(2(05|2|22)|5(5|51|71)|360|672|775|885|908|991)$/.test(n.j))var b=n(89604);if(/^(2(05|2|22)|5(5|51|71)|360|672|775|885|908|991)$/.test(n.j))var m=n(49903);if(/^(2(05|2|22)|5(5|51|71)|360|672|775|885|908|991)$/.test(n.j))var y=n(79142);if(/^(2(05|2|22)|5(5|51|71)|360|672|775|885|908|991)$/.test(n.j))var x=n(27650);if(/^(2(05|2|22)|5(5|51|71)|360|672|775|885|908|991)$/.test(n.j))var _=n(27698);if(/^(2(05|2|22)|5(5|51|71)|360|672|775|885|908|991)$/.test(n.j))var w=n(55294);if(/^(2(05|2|22)|5(5|51|71)|360|672|775|885|908|991)$/.test(n.j))var C=n(27211);if(/^(2(05|2|22)|5(5|51|71)|360|672|775|885|908|991)$/.test(n.j))var S=n(12166);var E="[object Arguments]",O="[object Function]",j="[object Object]",P={};P[E]=P["[object Array]"]=P["[object ArrayBuffer]"]=P["[object DataView]"]=P["[object Boolean]"]=P["[object Date]"]=P["[object Float32Array]"]=P["[object Float64Array]"]=P["[object Int8Array]"]=P["[object Int16Array]"]=P["[object Int32Array]"]=P["[object Map]"]=P["[object Number]"]=P[j]=P["[object RegExp]"]=P["[object Set]"]=P["[object String]"]=P["[object Symbol]"]=P["[object Uint8Array]"]=P["[object Uint8ClampedArray]"]=P["[object Uint16Array]"]=P["[object Uint32Array]"]=!0,P["[object Error]"]=P[O]=P["[object WeakMap]"]=!1;const k=/^(2(05|2|22)|5(5|51|71)|360|672|775|885|908|991)$/.test(n.j)?function t(e,n,k,I,T,A){var D,R=1&n,$=2&n,N=4&n;if(k&&(D=T?k(e,I,T,A):k(e)),void 0!==D)return D;if(!(0,_.Z)(e))return e;var B=(0,m.Z)(e);if(B){if(D=(0,g.Z)(e),!R)return(0,c.Z)(e,D)}else{var F=(0,f.Z)(e),L=F==O||"[object GeneratorFunction]"==F;if((0,y.Z)(e))return(0,l.Z)(e,R);if(F==j||F==E||L&&!T){if(D=$||L?{}:(0,b.Z)(e),!R)return $?(0,d.Z)(e,(0,a.Z)(D,e)):(0,u.Z)(e,(0,s.Z)(D,e))}else{if(!P[F])return T?e:{};D=(0,v.Z)(e,F,R)}}A||(A=new r.Z);var M=A.get(e);if(M)return M;A.set(e,D),(0,w.Z)(e)?e.forEach((function(r){D.add(t(r,n,k,r,e,A))})):(0,x.Z)(e)&&e.forEach((function(r,i){D.set(i,t(r,n,k,i,e,A))}));var Z=N?$?h.Z:p.Z:$?S.Z:C.Z,H=B?void 0:Z(e);return(0,i.Z)(H||e,(function(r,i){H&&(r=e[i=r]),(0,o.Z)(D,i,t(r,n,k,i,e,A))})),D}:null},62512:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(27698),i=Object.create,o=function(){function t(){}return function(e){if(!(0,r.Z)(e))return{};if(i)return i(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const s=/^(183|296|580|717|882)$/.test(n.j)?null:o},99956:(t,e,n)=>{"use strict";if(n.d(e,{Z:()=>c}),/^(205|908)$/.test(n.j))var r=n(96939);if(/^(205|908)$/.test(n.j))var i=n(39440);if(/^(205|908)$/.test(n.j))var o=n(53721);if(/^(205|908)$/.test(n.j))var s=n(14212);if(/^(205|908)$/.test(n.j))var a=n(83481);if(/^(205|908)$/.test(n.j))var l=n(94933);const c=/^(205|908)$/.test(n.j)?function(t,e,n,c){var u=-1,d=i.Z,p=!0,h=t.length,f=[],g=e.length;if(!h)return f;n&&(e=(0,s.Z)(e,(0,a.Z)(n))),c?(d=o.Z,p=!1):e.length>=200&&(d=l.Z,p=!1,e=new r.Z(e));t:for(;++u<h;){var v=t[u],b=null==n?v:n(v);if(v=c||0!==v?v:0,p&&b==b){for(var m=g;m--;)if(e[m]===b)continue t;f.push(v)}else d(e,b,c)||f.push(v)}return f}:null},72141:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});const r=/^(205|908)$/.test(n.j)?function(t,e,n,r){for(var i=t.length,o=n+(r?1:-1);r?o--:++o<i;)if(e(t[o],o,t))return o;return-1}:null},83279:(t,e,n)=>{"use strict";if(n.d(e,{Z:()=>o}),!/^(183|296|580|717|882)$/.test(n.j))var r=n(17619);if(!/^(183|296|580|717|882)$/.test(n.j))var i=n(186);const o=/^(183|296|580|717|882)$/.test(n.j)?null:function t(e,n,o,s,a){var l=-1,c=e.length;for(o||(o=i.Z),a||(a=[]);++l<c;){var u=e[l];n>0&&o(u)?n>1?t(u,n-1,o,s,a):(0,r.Z)(a,u):s||(a[a.length]=u)}return a}},55290:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});const r=function(t){return function(e,n,r){for(var i=-1,o=Object(e),s=r(e),a=s.length;a--;){var l=s[t?a:++i];if(!1===n(o[l],l,o))break}return e}}()},70483:(t,e,n)=>{"use strict";if(n.d(e,{Z:()=>o}),/^((20|77|88)5|22|366|472|571|991)$/.test(n.j))var r=n(55290);if(/^((20|77|88)5|22|366|472|571|991)$/.test(n.j))var i=n(27211);const o=/^((20|77|88)5|22|366|472|571|991)$/.test(n.j)?function(t,e){return t&&(0,r.Z)(t,e,i.Z)}:null},4150:(t,e,n)=>{"use strict";if(n.d(e,{Z:()=>o}),!/^(183|296|580|717|882)$/.test(n.j))var r=n(94018);if(!/^(183|296|580|717|882)$/.test(n.j))var i=n(76490);const o=/^(183|296|580|717|882)$/.test(n.j)?null:function(t,e){for(var n=0,o=(e=(0,r.Z)(e,t)).length;null!=t&&n<o;)t=t[(0,i.Z)(e[n++])];return n&&n==o?t:void 0}},91623:(t,e,n)=>{"use strict";if(n.d(e,{Z:()=>o}),!/^(1(45|54|83)|8(13|30|82)|9(37|39|97)|274|296|32|580|601|717)$/.test(n.j))var r=n(17619);if(!/^(1(45|54|83)|8(13|30|82)|9(37|39|97)|274|296|32|580|601|717)$/.test(n.j))var i=n(49903);const o=/^(1(45|54|83)|8(13|30|82)|9(37|39|97)|274|296|32|580|601|717)$/.test(n.j)?null:function(t,e,n){var o=e(t);return(0,i.Z)(t)?o:(0,r.Z)(o,n(t))}},797:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var r=n(86100);if(!/^(183|296|717|882)$/.test(n.j))var i=n(52228);if(!/^(183|296|717|882)$/.test(n.j))var o=n(67398);var s=r.Z?r.Z.toStringTag:void 0;const a=/^(183|296|717|882)$/.test(n.j)?null:function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":s&&s in Object(t)?(0,i.Z)(t):(0,o.Z)(t)}},2920:(t,e,n)=>{"use strict";n.d(e,{Z:()=>i});var r=Object.prototype.hasOwnProperty;const i=/^(183|296|580|717|830|882|997)$/.test(n.j)?null:function(t,e){return null!=t&&r.call(t,e)}},91754:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});const r=/^(183|296|580|717|882)$/.test(n.j)?null:function(t,e){return null!=t&&e in Object(t)}},37569:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var r=Math.max,i=Math.min;const o=/^(8(13|30|82)|183|296|717|997)$/.test(n.j)?null:function(t,e,n){return t>=i(e,n)&&t<r(e,n)}},15803:(t,e,n)=>{"use strict";if(n.d(e,{Z:()=>s}),/^(205|908)$/.test(n.j))var r=n(72141);if(/^(205|908)$/.test(n.j))var i=n(67993);if(/^(205|908)$/.test(n.j))var o=n(81442);const s=/^(205|908)$/.test(n.j)?function(t,e,n){return e==e?(0,o.Z)(t,e,n):(0,r.Z)(t,i.Z,n)}:null},86975:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});const r=205==n.j?function(t,e,n,r){for(var i=n-1,o=t.length;++i<o;)if(r(t[i],e))return i;return-1}:null},82712:(t,e,n)=>{"use strict";if(n.d(e,{Z:()=>i}),/^((20|77|88)5|22|366|472|571|991)$/.test(n.j))var r=n(70483);const i=/^((20|77|88)5|22|366|472|571|991)$/.test(n.j)?function(t,e,n,i){return(0,r.Z)(t,(function(t,r,o){e(i,n(t),r,o)})),i}:null},3920:(t,e,n)=>{"use strict";if(n.d(e,{Z:()=>o}),/^(2(05|2|22)|67[25]|(18|77|88)5|366|472|571|908|991)$/.test(n.j))var r=n(71361);if(/^(2(05|2|22)|67[25]|(18|77|88)5|366|472|571|908|991)$/.test(n.j))var i=n(60276);const o=/^(2(05|2|22)|67[25]|(18|77|88)5|366|472|571|908|991)$/.test(n.j)?function t(e,n,o,s,a){return e===n||(null==e||null==n||!(0,i.Z)(e)&&!(0,i.Z)(n)?e!=e&&n!=n:(0,r.Z)(e,n,o,s,t,a))}:null},71361:(t,e,n)=>{"use strict";if(n.d(e,{Z:()=>g}),/^(2(05|2|22)|67[25]|(18|77|88)5|366|472|571|908|991)$/.test(n.j))var r=n(32729);if(/^(2(05|2|22)|67[25]|(18|77|88)5|366|472|571|908|991)$/.test(n.j))var i=n(63702);if(/^(2(05|2|22)|67[25]|(18|77|88)5|366|472|571|908|991)$/.test(n.j))var o=n(12816);if(/^(2(05|2|22)|67[25]|(18|77|88)5|366|472|571|908|991)$/.test(n.j))var s=n(4016);if(/^(2(05|2|22)|67[25]|(18|77|88)5|366|472|571|908|991)$/.test(n.j))var a=n(11487);if(/^(2(05|2|22)|67[25]|(18|77|88)5|366|472|571|908|991)$/.test(n.j))var l=n(49903);if(/^(2(05|2|22)|67[25]|(18|77|88)5|366|472|571|908|991)$/.test(n.j))var c=n(79142);if(/^(2(05|2|22)|67[25]|(18|77|88)5|366|472|571|908|991)$/.test(n.j))var u=n(37376);var d="[object Arguments]",p="[object Array]",h="[object Object]",f=Object.prototype.hasOwnProperty;const g=/^(2(05|2|22)|67[25]|(18|77|88)5|366|472|571|908|991)$/.test(n.j)?function(t,e,n,g,v,b){var m=(0,l.Z)(t),y=(0,l.Z)(e),x=m?p:(0,a.Z)(t),_=y?p:(0,a.Z)(e),w=(x=x==d?h:x)==h,C=(_=_==d?h:_)==h,S=x==_;if(S&&(0,c.Z)(t)){if(!(0,c.Z)(e))return!1;m=!0,w=!1}if(S&&!w)return b||(b=new r.Z),m||(0,u.Z)(t)?(0,i.Z)(t,e,n,g,v,b):(0,o.Z)(t,e,x,n,g,v,b);if(!(1&n)){var E=w&&f.call(t,"__wrapped__"),O=C&&f.call(e,"__wrapped__");if(E||O){var j=E?t.value():t,P=O?e.value():e;return b||(b=new r.Z),v(j,P,n,g,b)}}return!!S&&(b||(b=new r.Z),(0,s.Z)(t,e,n,g,v,b))}:null},25971:(t,e,n)=>{"use strict";if(n.d(e,{Z:()=>o}),885==n.j)var r=n(32729);if(885==n.j)var i=n(3920);const o=885==n.j?function(t,e,n,o){var s=n.length,a=s,l=!o;if(null==t)return!a;for(t=Object(t);s--;){var c=n[s];if(l&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++s<a;){var u=(c=n[s])[0],d=t[u],p=c[1];if(l&&c[2]){if(void 0===d&&!(u in t))return!1}else{var h=new r.Z;if(o)var f=o(d,p,u,t,e,h);if(!(void 0===f?(0,i.Z)(p,d,3,o,h):f))return!1}}return!0}:null},67993:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});const r=/^(205|908)$/.test(n.j)?function(t){return t!=t}:null},4146:(t,e,n)=>{"use strict";if(n.d(e,{Z:()=>h}),!/^(183|296|717|882)$/.test(n.j))var r=n(64702);if(!/^(183|296|717|882)$/.test(n.j))var i=n(81471);if(!/^(183|296|717|882)$/.test(n.j))var o=n(27698);if(!/^(183|296|717|882)$/.test(n.j))var s=n(39864);var a=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,d=c.hasOwnProperty,p=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const h=/^(183|296|717|882)$/.test(n.j)?null:function(t){return!(!(0,o.Z)(t)||(0,i.Z)(t))&&((0,r.Z)(t)?p:a).test((0,s.Z)(t))}},91945:(t,e,n)=>{"use strict";if(n.d(e,{Z:()=>l}),885==n.j)var r=n(3460);if(885==n.j)var i=n(37081);if(885==n.j)var o=n(12763);if(885==n.j)var s=n(49903);if(885==n.j)var a=n(20850);const l=885==n.j?function(t){return"function"==typeof t?t:null==t?o.Z:"object"==typeof t?(0,s.Z)(t)?(0,i.Z)(t[0],t[1]):(0,r.Z)(t):(0,a.Z)(t)}:null},84111:(t,e,n)=>{"use strict";if(n.d(e,{Z:()=>s}),!/^(1(45|54|83)|8(13|30|82)|9(37|39|97)|274|296|32|580|601|717)$/.test(n.j))var r=n(31377);if(!/^(1(45|54|83)|8(13|30|82)|9(37|39|97)|274|296|32|580|601|717)$/.test(n.j))var i=n(94224);var o=Object.prototype.hasOwnProperty;const s=/^(1(45|54|83)|8(13|30|82)|9(37|39|97)|274|296|32|580|601|717)$/.test(n.j)?null:function(t){if(!(0,r.Z)(t))return(0,i.Z)(t);var e=[];for(var n in Object(t))o.call(t,n)&&"constructor"!=n&&e.push(n);return e}},29105:(t,e,n)=>{"use strict";if(n.d(e,{Z:()=>a}),!/^(183|296|580|717|882)$/.test(n.j))var r=n(27698);if(!/^(183|296|580|717|882)$/.test(n.j))var i=n(31377);if(!/^(183|296|580|717|882)$/.test(n.j))var o=n(36847);var s=Object.prototype.hasOwnProperty;const a=/^(183|296|580|717|882)$/.test(n.j)?null:function(t){if(!(0,r.Z)(t))return(0,o.Z)(t);var e=(0,i.Z)(t),n=[];for(var a in t)("constructor"!=a||!e&&s.call(t,a))&&n.push(a);return n}},3460:(t,e,n)=>{"use strict";if(n.d(e,{Z:()=>s}),885==n.j)var r=n(25971);if(885==n.j)var i=n(52658);if(885==n.j)var o=n(18164);const s=885==n.j?function(t){var e=(0,i.Z)(t);return 1==e.length&&e[0][2]?(0,o.Z)(e[0][0],e[0][1]):function(n){return n===t||(0,r.Z)(n,t,e)}}:null},37081:(t,e,n)=>{"use strict";if(n.d(e,{Z:()=>u}),885==n.j)var r=n(3920);if(885==n.j)var i=n(9680);if(885==n.j)var o=n(67289);if(885==n.j)var s=n(25279);if(885==n.j)var a=n(70854);if(885==n.j)var l=n(18164);if(885==n.j)var c=n(76490);const u=885==n.j?function(t,e){return(0,s.Z)(t)&&(0,a.Z)(e)?(0,l.Z)((0,c.Z)(t),e):function(n){var s=(0,i.Z)(n,t);return void 0===s&&s===e?(0,o.Z)(n,t):(0,r.Z)(e,s,3)}}:null},97270:(t,e,n)=>{"use strict";if(n.d(e,{Z:()=>u}),!/^(183|296|580|717|882)$/.test(n.j))var r=n(32729);if(!/^(183|296|580|717|882)$/.test(n.j))var i=n(93179);if(!/^(183|296|580|717|882)$/.test(n.j))var o=n(55290);if(!/^(183|296|580|717|882)$/.test(n.j))var s=n(26923);if(!/^(183|296|580|717|882)$/.test(n.j))var a=n(27698);if(!/^(183|296|580|717|882)$/.test(n.j))var l=n(12166);if(!/^(183|296|580|717|882)$/.test(n.j))var c=n(88980);const u=/^(183|296|580|717|882)$/.test(n.j)?null:function t(e,n,u,d,p){e!==n&&(0,o.Z)(n,(function(o,l){if(p||(p=new r.Z),(0,a.Z)(o))(0,s.Z)(e,n,l,u,t,d,p);else{var h=d?d((0,c.Z)(e,l),o,l+"",e,n,p):void 0;void 0===h&&(h=o),(0,i.Z)(e,l,h)}}),l.Z)}},26923:(t,e,n)=>{"use strict";if(n.d(e,{Z:()=>m}),!/^(183|296|580|717|882)$/.test(n.j))var r=n(93179);if(!/^(183|296|580|717|882)$/.test(n.j))var i=n(7805);if(!/^(183|296|580|717|882)$/.test(n.j))var o=n(49633);if(!/^(183|296|580|717|882)$/.test(n.j))var s=n(39486);if(!/^(183|296|580|717|882)$/.test(n.j))var a=n(89604);if(!/^(183|296|580|717|882)$/.test(n.j))var l=n(60880);if(!/^(183|296|580|717|882)$/.test(n.j))var c=n(49903);if(!/^(183|296|580|717|882)$/.test(n.j))var u=n(32276);if(!/^(183|296|580|717|882)$/.test(n.j))var d=n(79142);if(!/^(183|296|580|717|882)$/.test(n.j))var p=n(64702);if(!/^(183|296|580|717|882)$/.test(n.j))var h=n(27698);if(!/^(183|296|580|717|882)$/.test(n.j))var f=n(22890);if(!/^(183|296|580|717|882)$/.test(n.j))var g=n(37376);if(!/^(183|296|580|717|882)$/.test(n.j))var v=n(88980);if(!/^(183|296|580|717|882)$/.test(n.j))var b=n(2073);const m=/^(183|296|580|717|882)$/.test(n.j)?null:function(t,e,n,m,y,x,_){var w=(0,v.Z)(t,n),C=(0,v.Z)(e,n),S=_.get(C);if(S)(0,r.Z)(t,n,S);else{var E=x?x(w,C,n+"",t,e,_):void 0,O=void 0===E;if(O){var j=(0,c.Z)(C),P=!j&&(0,d.Z)(C),k=!j&&!P&&(0,g.Z)(C);E=C,j||P||k?(0,c.Z)(w)?E=w:(0,u.Z)(w)?E=(0,s.Z)(w):P?(O=!1,E=(0,i.Z)(C,!0)):k?(O=!1,E=(0,o.Z)(C,!0)):E=[]:(0,f.Z)(C)||(0,l.Z)(C)?(E=w,(0,l.Z)(w)?E=(0,b.Z)(w):(0,h.Z)(w)&&!(0,p.Z)(w)||(E=(0,a.Z)(C))):O=!1}O&&(_.set(C,E),y(E,C,m,x,_),_.delete(C)),(0,r.Z)(t,n,E)}}},2869:(t,e,n)=>{"use strict";if(n.d(e,{Z:()=>s}),!/^(183|296|580|717|882)$/.test(n.j))var r=n(4150);if(!/^(183|296|580|717|882)$/.test(n.j))var i=n(28407);if(!/^(183|296|580|717|882)$/.test(n.j))var o=n(94018);const s=/^(183|296|580|717|882)$/.test(n.j)?null:function(t,e,n){for(var s=-1,a=e.length,l={};++s<a;){var c=e[s],u=(0,r.Z)(t,c);n(u,c)&&(0,i.Z)(l,(0,o.Z)(c,t),u)}return l}},1225:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});const r=885==n.j?function(t){return function(e){return null==e?void 0:e[t]}}:null},87050:(t,e,n)=>{"use strict";if(n.d(e,{Z:()=>i}),885==n.j)var r=n(4150);const i=885==n.j?function(t){return function(e){return(0,r.Z)(e,t)}}:null},70789:(t,e,n)=>{"use strict";if(n.d(e,{Z:()=>c}),205==n.j)var r=n(14212);if(205==n.j)var i=n(15803);if(205==n.j)var o=n(86975);if(205==n.j)var s=n(83481);if(205==n.j)var a=n(39486);var l=Array.prototype.splice;const c=205==n.j?function(t,e,n,c){var u=c?o.Z:i.Z,d=-1,p=e.length,h=t;for(t===e&&(e=(0,a.Z)(e)),n&&(h=(0,r.Z)(t,(0,s.Z)(n)));++d<p;)for(var f=0,g=e[d],v=n?n(g):g;(f=u(h,v,f,c))>-1;)h!==t&&l.call(h,f,1),l.call(t,f,1);return t}:null},67249:(t,e,n)=>{"use strict";if(n.d(e,{Z:()=>s}),!/^(183|296|580|717|882)$/.test(n.j))var r=n(12763);if(!/^(183|296|580|717|882)$/.test(n.j))var i=n(2526);if(!/^(183|296|580|717|882)$/.test(n.j))var o=n(80861);const s=/^(183|296|580|717|882)$/.test(n.j)?null:function(t,e){return(0,o.Z)((0,i.Z)(t,e,r.Z),t+"")}},28407:(t,e,n)=>{"use strict";if(n.d(e,{Z:()=>l}),!/^(183|296|580|717|882)$/.test(n.j))var r=n(39868);if(!/^(183|296|580|717|882)$/.test(n.j))var i=n(94018);if(!/^(183|296|580|717|882)$/.test(n.j))var o=n(45671);if(!/^(183|296|580|717|882)$/.test(n.j))var s=n(27698);if(!/^(183|296|580|717|882)$/.test(n.j))var a=n(76490);const l=/^(183|296|580|717|882)$/.test(n.j)?null:function(t,e,n,l){if(!(0,s.Z)(t))return t;for(var c=-1,u=(e=(0,i.Z)(e,t)).length,d=u-1,p=t;null!=p&&++c<u;){var h=(0,a.Z)(e[c]),f=n;if("__proto__"===h||"constructor"===h||"prototype"===h)return t;if(c!=d){var g=p[h];void 0===(f=l?l(g,h,p):void 0)&&(f=(0,s.Z)(g)?g:(0,o.Z)(e[c+1])?[]:{})}(0,r.Z)(p,h,f),p=p[h]}return t}},39046:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});const r=885==n.j?function(t,e){for(var n,r=-1,i=t.length;++r<i;){var o=e(t[r]);void 0!==o&&(n=void 0===n?o:n+o)}return n}:null},84623:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});const r=/^(183|296|580|717|882)$/.test(n.j)?null:function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}},40507:(t,e,n)=>{"use strict";n.d(e,{Z:()=>u});var r=n(86100);if(!/^(183|296|580|717|882)$/.test(n.j))var i=n(14212);if(!/^(183|296|580|717|882)$/.test(n.j))var o=n(49903);if(!/^(183|296|580|717|882)$/.test(n.j))var s=n(20303);var a=/^(183|296|580|717|882)$/.test(n.j)?null:1/0,l=r.Z?r.Z.prototype:void 0,c=l?l.toString:void 0;const u=/^(183|296|580|717|882)$/.test(n.j)?null:function t(e){if("string"==typeof e)return e;if((0,o.Z)(e))return(0,i.Z)(e,t)+"";if((0,s.Z)(e))return c?c.call(e):"";var n=e+"";return"0"==n&&1/e==-a?"-0":n}},5665:(t,e,n)=>{"use strict";if(n.d(e,{Z:()=>o}),!/^(183|296|717|882)$/.test(n.j))var r=n(95901);var i=/^\s+/;const o=/^(183|296|717|882)$/.test(n.j)?null:function(t){return t?t.slice(0,(0,r.Z)(t)+1).replace(i,""):t}},83481:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});const r=/^(183|296|580|717|882)$/.test(n.j)?null:function(t){return function(e){return t(e)}}},94933:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});const r=/^(2(05|2|22)|67[25]|(18|77|88)5|366|472|571|908|991)$/.test(n.j)?function(t,e){return t.has(e)}:null},94018:(t,e,n)=>{"use strict";if(n.d(e,{Z:()=>a}),!/^(183|296|580|717|882)$/.test(n.j))var r=n(49903);if(!/^(183|296|580|717|882)$/.test(n.j))var i=n(25279);if(!/^(183|296|580|717|882)$/.test(n.j))var o=n(73491);if(!/^(183|296|580|717|882)$/.test(n.j))var s=n(61187);const a=/^(183|296|580|717|882)$/.test(n.j)?null:function(t,e){return(0,r.Z)(t)?t:(0,i.Z)(t,e)?[t]:(0,o.Z)((0,s.Z)(t))}},58581:(t,e,n)=>{"use strict";if(n.d(e,{Z:()=>i}),!/^(183|296|580|717|882)$/.test(n.j))var r=n(77604);const i=/^(183|296|580|717|882)$/.test(n.j)?null:function(t){var e=new t.constructor(t.byteLength);return new r.Z(e).set(new r.Z(t)),e}},7805:(t,e,n)=>{"use strict";n.d(e,{Z:()=>l});var r=n(21985),i="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=i&&"object"==typeof module&&module&&!module.nodeType&&module,s=o&&o.exports===i?r.Z.Buffer:void 0,a=s?s.allocUnsafe:void 0;const l=/^(183|296|580|717|882)$/.test(n.j)?null:function(t,e){if(e)return t.slice();var n=t.length,r=a?a(n):new t.constructor(n);return t.copy(r),r}},76746:(t,e,n)=>{"use strict";if(n.d(e,{Z:()=>i}),/^(2(05|2|22)|5(5|51|71)|360|672|775|885|908|991)$/.test(n.j))var r=n(58581);const i=/^(2(05|2|22)|5(5|51|71)|360|672|775|885|908|991)$/.test(n.j)?function(t,e){var n=e?(0,r.Z)(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}:null},37775:(t,e,n)=>{"use strict";n.d(e,{Z:()=>i});var r=/\w*$/;const i=/^(2(05|2|22)|5(5|51|71)|360|672|775|885|908|991)$/.test(n.j)?function(t){var e=new t.constructor(t.source,r.exec(t));return e.lastIndex=t.lastIndex,e}:null},7768:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(86100),i=r.Z?r.Z.prototype:void 0,o=i?i.valueOf:void 0;const s=/^(2(05|2|22)|5(5|51|71)|360|672|775|885|908|991)$/.test(n.j)?function(t){return o?Object(o.call(t)):{}}:null},49633:(t,e,n)=>{"use strict";if(n.d(e,{Z:()=>i}),!/^(183|296|580|717|882)$/.test(n.j))var r=n(58581);const i=/^(183|296|580|717|882)$/.test(n.j)?null:function(t,e){var n=e?(0,r.Z)(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}},39486:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});const r=/^(183|296|580|717|882)$/.test(n.j)?null:function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}},5443:(t,e,n)=>{"use strict";if(n.d(e,{Z:()=>o}),!/^(183|296|580|717|882)$/.test(n.j))var r=n(39868);if(!/^(183|296|580|717|882)$/.test(n.j))var i=n(13130);const o=/^(183|296|580|717|882)$/.test(n.j)?null:function(t,e,n,o){var s=!n;n||(n={});for(var a=-1,l=e.length;++a<l;){var c=e[a],u=o?o(n[c],t[c],c,n,t):void 0;void 0===u&&(u=t[c]),s?(0,i.Z)(n,c,u):(0,r.Z)(n,c,u)}return n}},63803:(t,e,n)=>{"use strict";if(n.d(e,{Z:()=>o}),/^(2(05|2|22)|5(5|51|71)|360|672|775|885|908|991)$/.test(n.j))var r=n(5443);if(/^(2(05|2|22)|5(5|51|71)|360|672|775|885|908|991)$/.test(n.j))var i=n(55413);const o=/^(2(05|2|22)|5(5|51|71)|360|672|775|885|908|991)$/.test(n.j)?function(t,e){return(0,r.Z)(t,(0,i.Z)(t),e)}:null},71293:(t,e,n)=>{"use strict";if(n.d(e,{Z:()=>o}),/^(2(05|2|22)|5(5|51|71)|360|672|775|885|908|991)$/.test(n.j))var r=n(5443);if(/^(2(05|2|22)|5(5|51|71)|360|672|775|885|908|991)$/.test(n.j))var i=n(29170);const o=/^(2(05|2|22)|5(5|51|71)|360|672|775|885|908|991)$/.test(n.j)?function(t,e){return(0,r.Z)(t,(0,i.Z)(t),e)}:null},96900:(t,e,n)=>{"use strict";if(n.d(e,{Z:()=>o}),!/^(183|296|580|717|882)$/.test(n.j))var r=n(67249);if(!/^(183|296|580|717|882)$/.test(n.j))var i=n(56331);const o=/^(183|296|580|717|882)$/.test(n.j)?null:function(t){return(0,r.Z)((function(e,n){var r=-1,o=n.length,s=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(s=t.length>3&&"function"==typeof s?(o--,s):void 0,a&&(0,i.Z)(n[0],n[1],a)&&(s=o<3?void 0:s,o=1),e=Object(e);++r<o;){var l=n[r];l&&t(e,l,r,s)}return e}))}},78120:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(98085);const i=function(){};var o=n(98705);const s=r.Z&&1/(0,o.Z)(new r.Z([,-0]))[1]==1/0?function(t){return new r.Z(t)}:i},76521:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var r=n(50500),i=function(){try{var t=(0,r.Z)(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const o=/^(183|296|580|717|882)$/.test(n.j)?null:i},63702:(t,e,n)=>{"use strict";if(n.d(e,{Z:()=>s}),/^(2(05|2|22)|67[25]|(18|77|88)5|366|472|571|908|991)$/.test(n.j))var r=n(96939);if(/^(2(05|2|22)|67[25]|(18|77|88)5|366|472|571|908|991)$/.test(n.j))var i=n(68124);if(/^(2(05|2|22)|67[25]|(18|77|88)5|366|472|571|908|991)$/.test(n.j))var o=n(94933);const s=/^(2(05|2|22)|67[25]|(18|77|88)5|366|472|571|908|991)$/.test(n.j)?function(t,e,n,s,a,l){var c=1&n,u=t.length,d=e.length;if(u!=d&&!(c&&d>u))return!1;var p=l.get(t),h=l.get(e);if(p&&h)return p==e&&h==t;var f=-1,g=!0,v=2&n?new r.Z:void 0;for(l.set(t,e),l.set(e,t);++f<u;){var b=t[f],m=e[f];if(s)var y=c?s(m,b,f,e,t,l):s(b,m,f,t,e,l);if(void 0!==y){if(y)continue;g=!1;break}if(v){if(!(0,i.Z)(e,(function(t,e){if(!(0,o.Z)(v,e)&&(b===t||a(b,t,n,s,l)))return v.push(e)}))){g=!1;break}}else if(b!==m&&!a(b,m,n,s,l)){g=!1;break}}return l.delete(t),l.delete(e),g}:null},12816:(t,e,n)=>{"use strict";n.d(e,{Z:()=>d});var r=n(86100);if(/^(2(05|2|22)|67[25]|(18|77|88)5|366|472|571|908|991)$/.test(n.j))var i=n(77604);if(/^(2(05|2|22)|67[25]|(18|77|88)5|366|472|571|908|991)$/.test(n.j))var o=n(81229);if(/^(2(05|2|22)|67[25]|(18|77|88)5|366|472|571|908|991)$/.test(n.j))var s=n(63702);if(/^(2(05|2|22)|67[25]|(18|77|88)5|366|472|571|908|991)$/.test(n.j))var a=n(86716);if(/^(2(05|2|22)|67[25]|(18|77|88)5|366|472|571|908|991)$/.test(n.j))var l=n(98705);var c=r.Z?r.Z.prototype:void 0,u=c?c.valueOf:void 0;const d=/^(2(05|2|22)|67[25]|(18|77|88)5|366|472|571|908|991)$/.test(n.j)?function(t,e,n,r,c,d,p){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!d(new i.Z(t),new i.Z(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return(0,o.Z)(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var h=a.Z;case"[object Set]":var f=1&r;if(h||(h=l.Z),t.size!=e.size&&!f)return!1;var g=p.get(t);if(g)return g==e;r|=2,p.set(t,e);var v=(0,s.Z)(h(t),h(e),r,c,d,p);return p.delete(t),v;case"[object Symbol]":if(u)return u.call(t)==u.call(e)}return!1}:null},4016:(t,e,n)=>{"use strict";if(n.d(e,{Z:()=>o}),/^(2(05|2|22)|67[25]|(18|77|88)5|366|472|571|908|991)$/.test(n.j))var r=n(73209);var i=Object.prototype.hasOwnProperty;const o=/^(2(05|2|22)|67[25]|(18|77|88)5|366|472|571|908|991)$/.test(n.j)?function(t,e,n,o,s,a){var l=1&n,c=(0,r.Z)(t),u=c.length;if(u!=(0,r.Z)(e).length&&!l)return!1;for(var d=u;d--;){var p=c[d];if(!(l?p in e:i.call(e,p)))return!1}var h=a.get(t),f=a.get(e);if(h&&f)return h==e&&f==t;var g=!0;a.set(t,e),a.set(e,t);for(var v=l;++d<u;){var b=t[p=c[d]],m=e[p];if(o)var y=l?o(m,b,p,e,t,a):o(b,m,p,t,e,a);if(!(void 0===y?b===m||s(b,m,n,o,a):y)){g=!1;break}v||(v="constructor"==p)}if(g&&!v){var x=t.constructor,_=e.constructor;x==_||!("constructor"in t)||!("constructor"in e)||"function"==typeof x&&x instanceof x&&"function"==typeof _&&_ instanceof _||(g=!1)}return a.delete(t),a.delete(e),g}:null},57014:(t,e,n)=>{"use strict";n.d(e,{Z:()=>i});var r="object"==typeof global&&global&&global.Object===Object&&global;const i=/^(183|296|717|882)$/.test(n.j)?null:r},73209:(t,e,n)=>{"use strict";if(n.d(e,{Z:()=>s}),!/^(1(45|54|83)|8(13|30|82)|9(37|39|97)|274|296|32|580|601|717)$/.test(n.j))var r=n(91623);if(!/^(1(45|54|83)|8(13|30|82)|9(37|39|97)|274|296|32|580|601|717)$/.test(n.j))var i=n(55413);if(!/^(1(45|54|83)|8(13|30|82)|9(37|39|97)|274|296|32|580|601|717)$/.test(n.j))var o=n(27211);const s=/^(1(45|54|83)|8(13|30|82)|9(37|39|97)|274|296|32|580|601|717)$/.test(n.j)?null:function(t){return(0,r.Z)(t,o.Z,i.Z)}},80427:(t,e,n)=>{"use strict";if(n.d(e,{Z:()=>s}),/^(2(05|2|22)|5(5|51|71)|360|672|775|885|908|991)$/.test(n.j))var r=n(91623);if(/^(2(05|2|22)|5(5|51|71)|360|672|775|885|908|991)$/.test(n.j))var i=n(29170);if(/^(2(05|2|22)|5(5|51|71)|360|672|775|885|908|991)$/.test(n.j))var o=n(12166);const s=/^(2(05|2|22)|5(5|51|71)|360|672|775|885|908|991)$/.test(n.j)?function(t){return(0,r.Z)(t,o.Z,i.Z)}:null},69069:(t,e,n)=>{"use strict";if(n.d(e,{Z:()=>i}),!/^(183|296|717|882)$/.test(n.j))var r=n(10529);const i=/^(183|296|717|882)$/.test(n.j)?null:function(t,e){var n=t.__data__;return(0,r.Z)(e)?n["string"==typeof e?"string":"hash"]:n.map}},52658:(t,e,n)=>{"use strict";if(n.d(e,{Z:()=>o}),885==n.j)var r=n(70854);if(885==n.j)var i=n(27211);const o=885==n.j?function(t){for(var e=(0,i.Z)(t),n=e.length;n--;){var o=e[n],s=t[o];e[n]=[o,s,(0,r.Z)(s)]}return e}:null},50500:(t,e,n)=>{"use strict";if(n.d(e,{Z:()=>o}),!/^(183|296|717|882)$/.test(n.j))var r=n(4146);if(!/^(183|296|717|882)$/.test(n.j))var i=n(63519);const o=/^(183|296|717|882)$/.test(n.j)?null:function(t,e){var n=(0,i.Z)(t,e);return(0,r.Z)(n)?n:void 0}},77934:(t,e,n)=>{"use strict";n.d(e,{Z:()=>i});var r=(0,n(43242).Z)(Object.getPrototypeOf,Object);const i=/^(183|296|580|717|882)$/.test(n.j)?null:r},52228:(t,e,n)=>{"use strict";n.d(e,{Z:()=>l});var r=n(86100),i=Object.prototype,o=i.hasOwnProperty,s=i.toString,a=r.Z?r.Z.toStringTag:void 0;const l=/^(183|296|717|882)$/.test(n.j)?null:function(t){var e=o.call(t,a),n=t[a];try{t[a]=void 0;var r=!0}catch(t){}var i=s.call(t);return r&&(e?t[a]=n:delete t[a]),i}},55413:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});const r=function(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var s=t[n];e(s,n,t)&&(o[i++]=s)}return o};var i=n(78772),o=Object.prototype.propertyIsEnumerable,s=Object.getOwnPropertySymbols;const a=s?function(t){return null==t?[]:(t=Object(t),r(s(t),(function(e){return o.call(t,e)})))}:i.Z},29170:(t,e,n)=>{"use strict";n.d(e,{Z:()=>l});var r=n(17619),i=n(77934),o=n(55413),s=n(78772),a=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)(0,r.Z)(e,(0,o.Z)(t)),t=(0,i.Z)(t);return e}:s.Z;const l=/^(2(05|2|22)|5(5|51|71)|360|672|775|885|908|991)$/.test(n.j)?a:null},11487:(t,e,n)=>{"use strict";n.d(e,{Z:()=>C});var r=n(50500),i=n(21985);const o=(0,r.Z)(i.Z,"DataView");var s=n(21575);const a=(0,r.Z)(i.Z,"Promise");var l=n(98085);const c=(0,r.Z)(i.Z,"WeakMap");var u=n(797),d=n(39864),p="[object Map]",h="[object Promise]",f="[object Set]",g="[object WeakMap]",v="[object DataView]",b=(0,d.Z)(o),m=(0,d.Z)(s.Z),y=(0,d.Z)(a),x=(0,d.Z)(l.Z),_=(0,d.Z)(c),w=u.Z;(o&&w(new o(new ArrayBuffer(1)))!=v||s.Z&&w(new s.Z)!=p||a&&w(a.resolve())!=h||l.Z&&w(new l.Z)!=f||c&&w(new c)!=g)&&(w=function(t){var e=(0,u.Z)(t),n="[object Object]"==e?t.constructor:void 0,r=n?(0,d.Z)(n):"";if(r)switch(r){case b:return v;case m:return p;case y:return h;case x:return f;case _:return g}return e});const C=w},63519:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});const r=/^(183|296|717|882)$/.test(n.j)?null:function(t,e){return null==t?void 0:t[e]}},11089:(t,e,n)=>{"use strict";if(n.d(e,{Z:()=>c}),!/^(183|296|580|717|882)$/.test(n.j))var r=n(94018);if(!/^(183|296|580|717|882)$/.test(n.j))var i=n(60880);if(!/^(183|296|580|717|882)$/.test(n.j))var o=n(49903);if(!/^(183|296|580|717|882)$/.test(n.j))var s=n(45671);if(!/^(183|296|580|717|882)$/.test(n.j))var a=n(66600);if(!/^(183|296|580|717|882)$/.test(n.j))var l=n(76490);const c=/^(183|296|580|717|882)$/.test(n.j)?null:function(t,e,n){for(var c=-1,u=(e=(0,r.Z)(e,t)).length,d=!1;++c<u;){var p=(0,l.Z)(e[c]);if(!(d=null!=t&&n(t,p)))break;t=t[p]}return d||++c!=u?d:!!(u=null==t?0:t.length)&&(0,a.Z)(u)&&(0,s.Z)(p,u)&&((0,o.Z)(t)||(0,i.Z)(t))}},7698:(t,e,n)=>{"use strict";n.d(e,{Z:()=>i});var r=Object.prototype.hasOwnProperty;const i=/^(2(05|2|22)|5(5|51|71)|360|672|775|885|908|991)$/.test(n.j)?function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&r.call(t,"index")&&(n.index=t.index,n.input=t.input),n}:null},44885:(t,e,n)=>{"use strict";if(n.d(e,{Z:()=>l}),/^(2(05|2|22)|5(5|51|71)|360|672|775|885|908|991)$/.test(n.j))var r=n(58581);if(/^(2(05|2|22)|5(5|51|71)|360|672|775|885|908|991)$/.test(n.j))var i=n(76746);if(/^(2(05|2|22)|5(5|51|71)|360|672|775|885|908|991)$/.test(n.j))var o=n(37775);if(/^(2(05|2|22)|5(5|51|71)|360|672|775|885|908|991)$/.test(n.j))var s=n(7768);if(/^(2(05|2|22)|5(5|51|71)|360|672|775|885|908|991)$/.test(n.j))var a=n(49633);const l=/^(2(05|2|22)|5(5|51|71)|360|672|775|885|908|991)$/.test(n.j)?function(t,e,n){var l=t.constructor;switch(e){case"[object ArrayBuffer]":return(0,r.Z)(t);case"[object Boolean]":case"[object Date]":return new l(+t);case"[object DataView]":return(0,i.Z)(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return(0,a.Z)(t,n);case"[object Map]":return new l;case"[object Number]":case"[object String]":return new l(t);case"[object RegExp]":return(0,o.Z)(t);case"[object Set]":return new l;case"[object Symbol]":return(0,s.Z)(t)}}:null},89604:(t,e,n)=>{"use strict";if(n.d(e,{Z:()=>s}),!/^(183|296|580|717|882)$/.test(n.j))var r=n(62512);if(!/^(183|296|580|717|882)$/.test(n.j))var i=n(77934);if(!/^(183|296|580|717|882)$/.test(n.j))var o=n(31377);const s=/^(183|296|580|717|882)$/.test(n.j)?null:function(t){return"function"!=typeof t.constructor||(0,o.Z)(t)?{}:(0,r.Z)((0,i.Z)(t))}},186:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var r=n(86100);if(!/^(183|296|580|717|882)$/.test(n.j))var i=n(60880);if(!/^(183|296|580|717|882)$/.test(n.j))var o=n(49903);var s=r.Z?r.Z.isConcatSpreadable:void 0;const a=/^(183|296|580|717|882)$/.test(n.j)?null:function(t){return(0,o.Z)(t)||(0,i.Z)(t)||!!(s&&t&&t[s])}},45671:(t,e,n)=>{"use strict";n.d(e,{Z:()=>i});var r=/^(?:0|[1-9]\d*)$/;const i=/^(183|296|580|717|882)$/.test(n.j)?null:function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&r.test(t))&&t>-1&&t%1==0&&t<e}},56331:(t,e,n)=>{"use strict";if(n.d(e,{Z:()=>a}),!/^(183|296|580|717|882)$/.test(n.j))var r=n(81229);if(!/^(183|296|580|717|882)$/.test(n.j))var i=n(90650);if(!/^(183|296|580|717|882)$/.test(n.j))var o=n(45671);if(!/^(183|296|580|717|882)$/.test(n.j))var s=n(27698);const a=/^(183|296|580|717|882)$/.test(n.j)?null:function(t,e,n){if(!(0,s.Z)(n))return!1;var a=typeof e;return!!("number"==a?(0,i.Z)(n)&&(0,o.Z)(e,n.length):"string"==a&&e in n)&&(0,r.Z)(n[e],t)}},25279:(t,e,n)=>{"use strict";if(n.d(e,{Z:()=>a}),!/^(183|296|580|717|882)$/.test(n.j))var r=n(49903);if(!/^(183|296|580|717|882)$/.test(n.j))var i=n(20303);var o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;const a=/^(183|296|580|717|882)$/.test(n.j)?null:function(t,e){if((0,r.Z)(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!(0,i.Z)(t))||(s.test(t)||!o.test(t)||null!=e&&t in Object(e))}},10529:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});const r=/^(183|296|717|882)$/.test(n.j)?null:function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},81471:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});const r=n(21985).Z["__core-js_shared__"];var i,o=(i=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||""))?"Symbol(src)_1."+i:"";const s=function(t){return!!o&&o in t}},31377:(t,e,n)=>{"use strict";n.d(e,{Z:()=>i});var r=Object.prototype;const i=/^(183|296|580|717|882)$/.test(n.j)?null:function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||r)}},70854:(t,e,n)=>{"use strict";if(n.d(e,{Z:()=>i}),885==n.j)var r=n(27698);const i=885==n.j?function(t){return t==t&&!(0,r.Z)(t)}:null},86716:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});const r=/^(2(05|2|22)|67[25]|(18|77|88)5|366|472|571|908|991)$/.test(n.j)?function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}:null},18164:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});const r=885==n.j?function(t,e){return function(n){return null!=n&&(n[t]===e&&(void 0!==e||t in Object(n)))}}:null},90059:(t,e,n)=>{"use strict";n.d(e,{Z:()=>i});var r=(0,n(50500).Z)(Object,"create");const i=/^(183|296|717|882)$/.test(n.j)?null:r},94224:(t,e,n)=>{"use strict";n.d(e,{Z:()=>i});var r=(0,n(43242).Z)(Object.keys,Object);const i=/^(1(45|54|83)|8(13|30|82)|9(37|39|97)|274|296|32|580|601|717)$/.test(n.j)?null:r},36847:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});const r=/^(183|296|580|717|882)$/.test(n.j)?null:function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}},80277:(t,e,n)=>{"use strict";n.d(e,{Z:()=>l});var r=n(57014),i="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=i&&"object"==typeof module&&module&&!module.nodeType&&module,s=o&&o.exports===i&&r.Z.process,a=function(){try{var t=o&&o.require&&o.require("util").types;return t||s&&s.binding&&s.binding("util")}catch(t){}}();const l=/^(183|296|580|717|882)$/.test(n.j)?null:a},67398:(t,e,n)=>{"use strict";n.d(e,{Z:()=>i});var r=Object.prototype.toString;const i=/^(183|296|717|882)$/.test(n.j)?null:function(t){return r.call(t)}},43242:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});const r=/^(183|296|580|717|882)$/.test(n.j)?null:function(t,e){return function(n){return t(e(n))}}},2526:(t,e,n)=>{"use strict";if(n.d(e,{Z:()=>o}),!/^(183|296|580|717|882)$/.test(n.j))var r=n(90643);var i=Math.max;const o=/^(183|296|580|717|882)$/.test(n.j)?null:function(t,e,n){return e=i(void 0===e?t.length-1:e,0),function(){for(var o=arguments,s=-1,a=i(o.length-e,0),l=Array(a);++s<a;)l[s]=o[e+s];s=-1;for(var c=Array(e+1);++s<e;)c[s]=o[s];return c[e]=n(l),(0,r.Z)(t,this,c)}}},21985:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(57014),i="object"==typeof self&&self&&self.Object===Object&&self,o=r.Z||i||Function("return this")();const s=/^(183|296|717|882)$/.test(n.j)?null:o},88980:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});const r=/^(183|296|580|717|882)$/.test(n.j)?null:function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}},98705:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});const r=/^(2(05|2|22)|67[25]|(18|77|88)5|366|472|571|908|991)$/.test(n.j)?function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}:null},80861:(t,e,n)=>{"use strict";n.d(e,{Z:()=>l});var r=n(25642),i=n(76521),o=n(12763);const s=i.Z?function(t,e){return(0,i.Z)(t,"toString",{configurable:!0,enumerable:!1,value:(0,r.Z)(e),writable:!0})}:o.Z;var a=Date.now;const l=function(t){var e=0,n=0;return function(){var r=a(),i=16-(r-n);if(n=r,i>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(s)},81442:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});const r=/^(205|908)$/.test(n.j)?function(t,e,n){for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}:null},73491:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(98415);var i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g;const s=function(t){var e=(0,r.Z)(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(i,(function(t,n,r,i){e.push(r?i.replace(o,"$1"):n||t)})),e}))},76490:(t,e,n)=>{"use strict";if(n.d(e,{Z:()=>o}),!/^(183|296|580|717|882)$/.test(n.j))var r=n(20303);var i=/^(183|296|580|717|882)$/.test(n.j)?null:1/0;const o=/^(183|296|580|717|882)$/.test(n.j)?null:function(t){if("string"==typeof t||(0,r.Z)(t))return t;var e=t+"";return"0"==e&&1/t==-i?"-0":e}},39864:(t,e,n)=>{"use strict";n.d(e,{Z:()=>i});var r=Function.prototype.toString;const i=/^(183|296|717|882)$/.test(n.j)?null:function(t){if(null!=t){try{return r.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},95901:(t,e,n)=>{"use strict";n.d(e,{Z:()=>i});var r=/\s/;const i=/^(183|296|717|882)$/.test(n.j)?null:function(t){for(var e=t.length;e--&&r.test(t.charAt(e)););return e}},17450:(t,e,n)=>{"use strict";if(n.d(e,{Z:()=>i}),/^(2(05|2|22)|5(5|51|71)|360|672|775|885|908|991)$/.test(n.j))var r=n(7685);const i=/^(2(05|2|22)|5(5|51|71)|360|672|775|885|908|991)$/.test(n.j)?function(t){return(0,r.Z)(t,5)}:null},25642:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});const r=/^(183|296|580|717|882)$/.test(n.j)?null:function(t){return function(){return t}}},76813:(t,e,n)=>{"use strict";if(n.d(e,{Z:()=>l}),/^(2(05|2|22)|5(5|51|71)|360|885|908|991)$/.test(n.j))var r=n(27698);if(/^(2(05|2|22)|5(5|51|71)|360|885|908|991)$/.test(n.j))var i=n(70528);if(/^(2(05|2|22)|5(5|51|71)|360|885|908|991)$/.test(n.j))var o=n(36986);var s=Math.max,a=Math.min;const l=/^(2(05|2|22)|5(5|51|71)|360|885|908|991)$/.test(n.j)?function(t,e,n){var l,c,u,d,p,h,f=0,g=!1,v=!1,b=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function m(e){var n=l,r=c;return l=c=void 0,f=e,d=t.apply(r,n)}function y(t){return f=t,p=setTimeout(_,e),g?m(t):d}function x(t){var n=t-h;return void 0===h||n>=e||n<0||v&&t-f>=u}function _(){var t=(0,i.Z)();if(x(t))return w(t);p=setTimeout(_,function(t){var n=e-(t-h);return v?a(n,u-(t-f)):n}(t))}function w(t){return p=void 0,b&&l?m(t):(l=c=void 0,d)}function C(){var t=(0,i.Z)(),n=x(t);if(l=arguments,c=this,h=t,n){if(void 0===p)return y(h);if(v)return clearTimeout(p),p=setTimeout(_,e),m(h)}return void 0===p&&(p=setTimeout(_,e)),d}return e=(0,o.Z)(e)||0,(0,r.Z)(n)&&(g=!!n.leading,u=(v="maxWait"in n)?s((0,o.Z)(n.maxWait)||0,e):u,b="trailing"in n?!!n.trailing:b),C.cancel=function(){void 0!==p&&clearTimeout(p),f=0,l=h=c=p=void 0},C.flush=function(){return void 0===p?d:w((0,i.Z)())},C}:null},40088:(t,e,n)=>{"use strict";n.d(e,{Z:()=>l});var r=n(99956),i=n(83279),o=n(67249),s=n(32276);const a=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const l=(0,o.Z)((function(t,e){var n=a(e);return(0,s.Z)(n)&&(n=void 0),(0,s.Z)(t)?(0,r.Z)(t,(0,i.Z)(e,1,s.Z,!0),void 0,n):[]}))},81229:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});const r=/^(183|296|717|882)$/.test(n.j)?null:function(t,e){return t===e||t!=t&&e!=e}},87016:(t,e,n)=>{"use strict";if(n.d(e,{Z:()=>i}),!/^(183|296|580|717|882)$/.test(n.j))var r=n(83279);const i=/^(183|296|580|717|882)$/.test(n.j)?null:function(t){return(null==t?0:t.length)?(0,r.Z)(t,1):[]}},9680:(t,e,n)=>{"use strict";if(n.d(e,{Z:()=>i}),!/^(183|296|580|717|882)$/.test(n.j))var r=n(4150);const i=/^(183|296|580|717|882)$/.test(n.j)?null:function(t,e,n){var i=null==t?void 0:(0,r.Z)(t,e);return void 0===i?n:i}},67289:(t,e,n)=>{"use strict";if(n.d(e,{Z:()=>o}),!/^(183|296|580|717|882)$/.test(n.j))var r=n(91754);if(!/^(183|296|580|717|882)$/.test(n.j))var i=n(11089);const o=/^(183|296|580|717|882)$/.test(n.j)?null:function(t,e){return null!=t&&(0,i.Z)(t,e,r.Z)}},12763:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});const r=/^(183|296|580|717|882)$/.test(n.j)?null:function(t){return t}},67099:(t,e,n)=>{"use strict";if(n.d(e,{Z:()=>s}),!/^(8(13|30|82)|183|296|717|997)$/.test(n.j))var r=n(37569);if(!/^(8(13|30|82)|183|296|717|997)$/.test(n.j))var i=n(25741);if(!/^(8(13|30|82)|183|296|717|997)$/.test(n.j))var o=n(36986);const s=/^(8(13|30|82)|183|296|717|997)$/.test(n.j)?null:function(t,e,n){return e=(0,i.Z)(e),void 0===n?(n=e,e=0):n=(0,i.Z)(n),t=(0,o.Z)(t),(0,r.Z)(t,e,n)}},27912:(t,e,n)=>{"use strict";n.d(e,{Z:()=>l});var r=n(25642),i=n(82712);const o=function(t,e){return function(n,r){return(0,i.Z)(n,t,e(r),{})}};var s=n(12763),a=Object.prototype.toString;const l=o((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=a.call(e)),t[e]=n}),(0,r.Z)(s.Z))},60880:(t,e,n)=>{"use strict";n.d(e,{Z:()=>c});var r=n(797),i=n(60276);const o=function(t){return(0,i.Z)(t)&&"[object Arguments]"==(0,r.Z)(t)};var s=Object.prototype,a=s.hasOwnProperty,l=s.propertyIsEnumerable;const c=o(function(){return arguments}())?o:function(t){return(0,i.Z)(t)&&a.call(t,"callee")&&!l.call(t,"callee")}},49903:(t,e,n)=>{"use strict";n.d(e,{Z:()=>i});var r=Array.isArray;const i=/^(183|296|580|717|882)$/.test(n.j)?null:r},90650:(t,e,n)=>{"use strict";if(n.d(e,{Z:()=>o}),!/^(183|296|580|717|882)$/.test(n.j))var r=n(64702);if(!/^(183|296|580|717|882)$/.test(n.j))var i=n(66600);const o=/^(183|296|580|717|882)$/.test(n.j)?null:function(t){return null!=t&&(0,i.Z)(t.length)&&!(0,r.Z)(t)}},32276:(t,e,n)=>{"use strict";if(n.d(e,{Z:()=>o}),!/^(183|296|580|717|882)$/.test(n.j))var r=n(90650);if(!/^(183|296|580|717|882)$/.test(n.j))var i=n(60276);const o=/^(183|296|580|717|882)$/.test(n.j)?null:function(t){return(0,i.Z)(t)&&(0,r.Z)(t)}},97321:(t,e,n)=>{"use strict";if(n.d(e,{Z:()=>o}),!/^(183|274|296|717|830|882|997)$/.test(n.j))var r=n(797);if(!/^(183|274|296|717|830|882|997)$/.test(n.j))var i=n(60276);const o=/^(183|274|296|717|830|882|997)$/.test(n.j)?null:function(t){return!0===t||!1===t||(0,i.Z)(t)&&"[object Boolean]"==(0,r.Z)(t)}},79142:(t,e,n)=>{"use strict";n.d(e,{Z:()=>l});var r=n(21985);const i=function(){return!1};var o="object"==typeof exports&&exports&&!exports.nodeType&&exports,s=o&&"object"==typeof module&&module&&!module.nodeType&&module,a=s&&s.exports===o?r.Z.Buffer:void 0;const l=(a?a.isBuffer:void 0)||i},83761:(t,e,n)=>{"use strict";if(n.d(e,{Z:()=>p}),55==n.j)var r=n(84111);if(55==n.j)var i=n(11487);if(55==n.j)var o=n(60880);if(55==n.j)var s=n(49903);if(55==n.j)var a=n(90650);if(55==n.j)var l=n(79142);if(55==n.j)var c=n(31377);if(55==n.j)var u=n(37376);var d=Object.prototype.hasOwnProperty;const p=55==n.j?function(t){if(null==t)return!0;if((0,a.Z)(t)&&((0,s.Z)(t)||"string"==typeof t||"function"==typeof t.splice||(0,l.Z)(t)||(0,u.Z)(t)||(0,o.Z)(t)))return!t.length;var e=(0,i.Z)(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if((0,c.Z)(t))return!(0,r.Z)(t).length;for(var n in t)if(d.call(t,n))return!1;return!0}:null},18868:(t,e,n)=>{"use strict";if(n.d(e,{Z:()=>i}),/^(2(05|2|22)|67[25]|(18|77|88)5|366|472|571|908|991)$/.test(n.j))var r=n(3920);const i=/^(2(05|2|22)|67[25]|(18|77|88)5|366|472|571|908|991)$/.test(n.j)?function(t,e){return(0,r.Z)(t,e)}:null},64702:(t,e,n)=>{"use strict";if(n.d(e,{Z:()=>o}),!/^(183|296|717|882)$/.test(n.j))var r=n(797);if(!/^(183|296|717|882)$/.test(n.j))var i=n(27698);const o=/^(183|296|717|882)$/.test(n.j)?null:function(t){if(!(0,i.Z)(t))return!1;var e=(0,r.Z)(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},66600:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});const r=/^(183|296|580|717|882)$/.test(n.j)?null:function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},27650:(t,e,n)=>{"use strict";n.d(e,{Z:()=>c});var r=n(11487),i=n(60276);const o=function(t){return(0,i.Z)(t)&&"[object Map]"==(0,r.Z)(t)};var s=n(83481),a=n(80277),l=a.Z&&a.Z.isMap;const c=l?(0,s.Z)(l):o},64829:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});const r=/^(183|274|296|580|717|830|882|997)$/.test(n.j)?null:function(t){return null==t}},27698:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});const r=/^(183|296|717|882)$/.test(n.j)?null:function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},60276:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});const r=/^(183|296|717|882)$/.test(n.j)?null:function(t){return null!=t&&"object"==typeof t}},22890:(t,e,n)=>{"use strict";if(n.d(e,{Z:()=>d}),!/^(183|296|580|717|882)$/.test(n.j))var r=n(797);if(!/^(183|296|580|717|882)$/.test(n.j))var i=n(77934);if(!/^(183|296|580|717|882)$/.test(n.j))var o=n(60276);var s=Function.prototype,a=Object.prototype,l=s.toString,c=a.hasOwnProperty,u=l.call(Object);const d=/^(183|296|580|717|882)$/.test(n.j)?null:function(t){if(!(0,o.Z)(t)||"[object Object]"!=(0,r.Z)(t))return!1;var e=(0,i.Z)(t);if(null===e)return!0;var n=c.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==u}},55294:(t,e,n)=>{"use strict";n.d(e,{Z:()=>c});var r=n(11487),i=n(60276);const o=function(t){return(0,i.Z)(t)&&"[object Set]"==(0,r.Z)(t)};var s=n(83481),a=n(80277),l=a.Z&&a.Z.isSet;const c=l?(0,s.Z)(l):o},86072:(t,e,n)=>{"use strict";if(n.d(e,{Z:()=>s}),!/^(183|296|580|717|882)$/.test(n.j))var r=n(797);if(!/^(183|296|580|717|882)$/.test(n.j))var i=n(49903);if(!/^(183|296|580|717|882)$/.test(n.j))var o=n(60276);const s=/^(183|296|580|717|882)$/.test(n.j)?null:function(t){return"string"==typeof t||!(0,i.Z)(t)&&(0,o.Z)(t)&&"[object String]"==(0,r.Z)(t)}},20303:(t,e,n)=>{"use strict";if(n.d(e,{Z:()=>o}),!/^(183|296|717|882)$/.test(n.j))var r=n(797);if(!/^(183|296|717|882)$/.test(n.j))var i=n(60276);const o=/^(183|296|717|882)$/.test(n.j)?null:function(t){return"symbol"==typeof t||(0,i.Z)(t)&&"[object Symbol]"==(0,r.Z)(t)}},37376:(t,e,n)=>{"use strict";n.d(e,{Z:()=>d});var r=n(797),i=n(66600),o=n(60276),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1;const a=function(t){return(0,o.Z)(t)&&(0,i.Z)(t.length)&&!!s[(0,r.Z)(t)]};var l=n(83481),c=n(80277),u=c.Z&&c.Z.isTypedArray;const d=u?(0,l.Z)(u):a},57872:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});const r=/^(9(08|39|91)|(14|18|20|77)5|(2|3|47)2|366|571)$/.test(n.j)?function(t){return void 0===t}:null},27211:(t,e,n)=>{"use strict";if(n.d(e,{Z:()=>s}),!/^(1(45|54|83)|8(13|30|82)|9(37|39|97)|274|296|32|580|601|717)$/.test(n.j))var r=n(58781);if(!/^(1(45|54|83)|8(13|30|82)|9(37|39|97)|274|296|32|580|601|717)$/.test(n.j))var i=n(84111);if(!/^(1(45|54|83)|8(13|30|82)|9(37|39|97)|274|296|32|580|601|717)$/.test(n.j))var o=n(90650);const s=/^(1(45|54|83)|8(13|30|82)|9(37|39|97)|274|296|32|580|601|717)$/.test(n.j)?null:function(t){return(0,o.Z)(t)?(0,r.Z)(t):(0,i.Z)(t)}},12166:(t,e,n)=>{"use strict";if(n.d(e,{Z:()=>s}),!/^(183|296|580|717|882)$/.test(n.j))var r=n(58781);if(!/^(183|296|580|717|882)$/.test(n.j))var i=n(29105);if(!/^(183|296|580|717|882)$/.test(n.j))var o=n(90650);const s=/^(183|296|580|717|882)$/.test(n.j)?null:function(t){return(0,o.Z)(t)?(0,r.Z)(t,!0):(0,i.Z)(t)}},98415:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var r=n(53323);function i(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=t.apply(this,r);return n.cache=o.set(i,s)||o,s};return n.cache=new(i.Cache||r.Z),n}i.Cache=r.Z;const o=/^(183|296|717|882)$/.test(n.j)?null:i},57786:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var r=n(97270),i=(0,n(96900).Z)((function(t,e,n){(0,r.Z)(t,e,n)}));const o=/^(2(05|2|22)|36[06]|5(5|51|71)|[46]72|775|885|908|991)$/.test(n.j)?i:null},61713:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var r=n(97270),i=(0,n(96900).Z)((function(t,e,n,i){(0,r.Z)(t,e,n,i)}));const o=/^(183|296|580|717|882)$/.test(n.j)?null:i},70528:(t,e,n)=>{"use strict";if(n.d(e,{Z:()=>i}),/^(2(05|2|22)|5(5|51|71)|360|885|908|991)$/.test(n.j))var r=n(21985);const i=/^(2(05|2|22)|5(5|51|71)|360|885|908|991)$/.test(n.j)?function(){return r.Z.Date.now()}:null},19760:(t,e,n)=>{"use strict";n.d(e,{Z:()=>c});var r=n(2869),i=n(67289);const o=function(t,e){return(0,r.Z)(t,e,(function(e,n){return(0,i.Z)(t,n)}))};var s=n(87016),a=n(2526),l=n(80861);const c=function(t){return(0,l.Z)((0,a.Z)(t,void 0,s.Z),t+"")}((function(t,e){return null==t?{}:o(t,e)}))},20850:(t,e,n)=>{"use strict";if(n.d(e,{Z:()=>a}),885==n.j)var r=n(1225);if(885==n.j)var i=n(87050);if(885==n.j)var o=n(25279);if(885==n.j)var s=n(76490);const a=885==n.j?function(t){return(0,o.Z)(t)?(0,r.Z)((0,s.Z)(t)):(0,i.Z)(t)}:null},40106:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(67249),i=n(720),o=(0,r.Z)(i.Z);const s=205==n.j?o:null},720:(t,e,n)=>{"use strict";if(n.d(e,{Z:()=>i}),205==n.j)var r=n(70789);const i=205==n.j?function(t,e){return t&&t.length&&e&&e.length?(0,r.Z)(t,e):t}:null},78772:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});const r=/^(1(45|54|83)|8(13|30|82)|9(37|39|97)|274|296|32|580|601|717)$/.test(n.j)?null:function(){return[]}},39009:(t,e,n)=>{"use strict";if(n.d(e,{Z:()=>o}),885==n.j)var r=n(91945);if(885==n.j)var i=n(39046);const o=885==n.j?function(t,e){return t&&t.length?(0,i.Z)(t,(0,r.Z)(e,2)):0}:null},48885:(t,e,n)=>{"use strict";if(n.d(e,{Z:()=>o}),/^(2(05|2|22)|5(5|51|71)|360|885|908|991)$/.test(n.j))var r=n(76813);if(/^(2(05|2|22)|5(5|51|71)|360|885|908|991)$/.test(n.j))var i=n(27698);const o=/^(2(05|2|22)|5(5|51|71)|360|885|908|991)$/.test(n.j)?function(t,e,n){var o=!0,s=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return(0,i.Z)(n)&&(o="leading"in n?!!n.leading:o,s="trailing"in n?!!n.trailing:s),(0,r.Z)(t,e,{leading:o,maxWait:e,trailing:s})}:null},25741:(t,e,n)=>{"use strict";if(n.d(e,{Z:()=>o}),!/^(8(13|30|82)|183|296|717|997)$/.test(n.j))var r=n(36986);var i=/^(8(13|30|82)|183|296|717|997)$/.test(n.j)?null:1/0;const o=/^(8(13|30|82)|183|296|717|997)$/.test(n.j)?null:function(t){return t?(t=(0,r.Z)(t))===i||t===-i?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}},36986:(t,e,n)=>{"use strict";if(n.d(e,{Z:()=>d}),!/^(183|296|717|882)$/.test(n.j))var r=n(5665);if(!/^(183|296|717|882)$/.test(n.j))var i=n(27698);if(!/^(183|296|717|882)$/.test(n.j))var o=n(20303);var s=/^(183|296|717|882)$/.test(n.j)?null:NaN,a=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt;const d=/^(183|296|717|882)$/.test(n.j)?null:function(t){if("number"==typeof t)return t;if((0,o.Z)(t))return s;if((0,i.Z)(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=(0,i.Z)(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=(0,r.Z)(t);var n=l.test(t);return n||c.test(t)?u(t.slice(2),n?2:8):a.test(t)?s:+t}},2073:(t,e,n)=>{"use strict";if(n.d(e,{Z:()=>o}),!/^(183|296|580|717|882)$/.test(n.j))var r=n(5443);if(!/^(183|296|580|717|882)$/.test(n.j))var i=n(12166);const o=/^(183|296|580|717|882)$/.test(n.j)?null:function(t){return(0,r.Z)(t,(0,i.Z)(t))}},61187:(t,e,n)=>{"use strict";if(n.d(e,{Z:()=>i}),!/^(183|296|580|717|882)$/.test(n.j))var r=n(40507);const i=/^(183|296|580|717|882)$/.test(n.j)?null:function(t){return null==t?"":(0,r.Z)(t)}},34905:(t,e,n)=>{"use strict";n.d(e,{Z:()=>h});var r=n(83279),i=n(67249),o=n(96939),s=n(39440),a=n(53721),l=n(94933),c=n(78120),u=n(98705);const d=function(t,e,n){var r=-1,i=s.Z,d=t.length,p=!0,h=[],f=h;if(n)p=!1,i=a.Z;else if(d>=200){var g=e?null:(0,c.Z)(t);if(g)return(0,u.Z)(g);p=!1,i=l.Z,f=new o.Z}else f=e?[]:h;t:for(;++r<d;){var v=t[r],b=e?e(v):v;if(v=n||0!==v?v:0,p&&b==b){for(var m=f.length;m--;)if(f[m]===b)continue t;e&&f.push(b),h.push(v)}else i(f,b,n)||(f!==h&&f.push(b),h.push(v))}return h};var p=n(32276);const h=(0,i.Z)((function(t){return d((0,r.Z)(t,1,p.Z,!0))}))},48527:(t,e,n)=>{"use strict";if(n.d(e,{Z:()=>o}),!/^(8(13|30|82)|9(37|39|97)|154|183|274|296|580|717)$/.test(n.j))var r=n(61187);var i=0;const o=/^(8(13|30|82)|9(37|39|97)|154|183|274|296|580|717)$/.test(n.j)?null:function(t){var e=++i;return(0,r.Z)(t)+e}},82421:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var r=n(99956),i=n(67249),o=n(32276),s=(0,i.Z)((function(t,e){return(0,o.Z)(t)?(0,r.Z)(t,e):[]}));const a=205==n.j?s:null},53059:function(t,e,n){var r; -/** - * @license - * Lodash <https://lodash.com/> - * Copyright OpenJS Foundation and other contributors <https://openjsf.org/> - * Released under MIT license <https://lodash.com/license> - * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE> - * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */t=n.nmd(t),function(){var i,o="Expected a function",s="__lodash_hash_undefined__",a="__lodash_placeholder__",l=16,c=32,u=64,d=128,p=256,h=1/0,f=9007199254740991,g=NaN,v=4294967295,b=[["ary",d],["bind",1],["bindKey",2],["curry",8],["curryRight",l],["flip",512],["partial",c],["partialRight",u],["rearg",p]],m="[object Arguments]",y="[object Array]",x="[object Boolean]",_="[object Date]",w="[object Error]",C="[object Function]",S="[object GeneratorFunction]",E="[object Map]",O="[object Number]",j="[object Object]",P="[object Promise]",k="[object RegExp]",I="[object Set]",T="[object String]",A="[object Symbol]",D="[object WeakMap]",R="[object ArrayBuffer]",$="[object DataView]",N="[object Float32Array]",B="[object Float64Array]",F="[object Int8Array]",L="[object Int16Array]",M="[object Int32Array]",Z="[object Uint8Array]",H="[object Uint8ClampedArray]",z="[object Uint16Array]",U="[object Uint32Array]",W=/\b__p \+= '';/g,G=/\b(__p \+=) '' \+/g,V=/(__e\(.*?\)|\b__t\)) \+\n'';/g,q=/&(?:amp|lt|gt|quot|#39);/g,K=/[&<>"']/g,Y=RegExp(q.source),Q=RegExp(K.source),X=/<%-([\s\S]+?)%>/g,J=/<%([\s\S]+?)%>/g,tt=/<%=([\s\S]+?)%>/g,et=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,nt=/^\w*$/,rt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,it=/[\\^$.*+?()[\]{}|]/g,ot=RegExp(it.source),st=/^\s+|\s+$/g,at=/^\s+/,lt=/\s+$/,ct=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ut=/\{\n\/\* \[wrapped with (.+)\] \*/,dt=/,? & /,pt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ht=/\\(\\)?/g,ft=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,gt=/\w*$/,vt=/^[-+]0x[0-9a-f]+$/i,bt=/^0b[01]+$/i,mt=/^\[object .+?Constructor\]$/,yt=/^0o[0-7]+$/i,xt=/^(?:0|[1-9]\d*)$/,_t=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,wt=/($^)/,Ct=/['\n\r\u2028\u2029\\]/g,St="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Et="\\u2700-\\u27bf",Ot="a-z\\xdf-\\xf6\\xf8-\\xff",jt="A-Z\\xc0-\\xd6\\xd8-\\xde",Pt="\\ufe0e\\ufe0f",kt="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",It="['’]",Tt="[\\ud800-\\udfff]",At="["+kt+"]",Dt="["+St+"]",Rt="\\d+",$t="[\\u2700-\\u27bf]",Nt="["+Ot+"]",Bt="[^\\ud800-\\udfff"+kt+Rt+Et+Ot+jt+"]",Ft="\\ud83c[\\udffb-\\udfff]",Lt="[^\\ud800-\\udfff]",Mt="(?:\\ud83c[\\udde6-\\uddff]){2}",Zt="[\\ud800-\\udbff][\\udc00-\\udfff]",Ht="["+jt+"]",zt="(?:"+Nt+"|"+Bt+")",Ut="(?:"+Ht+"|"+Bt+")",Wt="(?:['’](?:d|ll|m|re|s|t|ve))?",Gt="(?:['’](?:D|LL|M|RE|S|T|VE))?",Vt="(?:"+Dt+"|"+Ft+")"+"?",qt="[\\ufe0e\\ufe0f]?",Kt=qt+Vt+("(?:\\u200d(?:"+[Lt,Mt,Zt].join("|")+")"+qt+Vt+")*"),Yt="(?:"+[$t,Mt,Zt].join("|")+")"+Kt,Qt="(?:"+[Lt+Dt+"?",Dt,Mt,Zt,Tt].join("|")+")",Xt=RegExp(It,"g"),Jt=RegExp(Dt,"g"),te=RegExp(Ft+"(?="+Ft+")|"+Qt+Kt,"g"),ee=RegExp([Ht+"?"+Nt+"+"+Wt+"(?="+[At,Ht,"$"].join("|")+")",Ut+"+"+Gt+"(?="+[At,Ht+zt,"$"].join("|")+")",Ht+"?"+zt+"+"+Wt,Ht+"+"+Gt,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Rt,Yt].join("|"),"g"),ne=RegExp("[\\u200d\\ud800-\\udfff"+St+Pt+"]"),re=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ie=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],oe=-1,se={};se[N]=se[B]=se[F]=se[L]=se[M]=se[Z]=se[H]=se[z]=se[U]=!0,se[m]=se[y]=se[R]=se[x]=se[$]=se[_]=se[w]=se[C]=se[E]=se[O]=se[j]=se[k]=se[I]=se[T]=se[D]=!1;var ae={};ae[m]=ae[y]=ae[R]=ae[$]=ae[x]=ae[_]=ae[N]=ae[B]=ae[F]=ae[L]=ae[M]=ae[E]=ae[O]=ae[j]=ae[k]=ae[I]=ae[T]=ae[A]=ae[Z]=ae[H]=ae[z]=ae[U]=!0,ae[w]=ae[C]=ae[D]=!1;var le={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ce=parseFloat,ue=parseInt,de="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,pe="object"==typeof self&&self&&self.Object===Object&&self,he=de||pe||Function("return this")(),fe=e&&!e.nodeType&&e,ge=fe&&t&&!t.nodeType&&t,ve=ge&&ge.exports===fe,be=ve&&de.process,me=function(){try{var t=ge&&ge.require&&ge.require("util").types;return t||be&&be.binding&&be.binding("util")}catch(t){}}(),ye=me&&me.isArrayBuffer,xe=me&&me.isDate,_e=me&&me.isMap,we=me&&me.isRegExp,Ce=me&&me.isSet,Se=me&&me.isTypedArray;function Ee(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function Oe(t,e,n,r){for(var i=-1,o=null==t?0:t.length;++i<o;){var s=t[i];e(r,s,n(s),t)}return r}function je(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}function Pe(t,e){for(var n=null==t?0:t.length;n--&&!1!==e(t[n],n,t););return t}function ke(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(!e(t[n],n,t))return!1;return!0}function Ie(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var s=t[n];e(s,n,t)&&(o[i++]=s)}return o}function Te(t,e){return!!(null==t?0:t.length)&&Ze(t,e,0)>-1}function Ae(t,e,n){for(var r=-1,i=null==t?0:t.length;++r<i;)if(n(e,t[r]))return!0;return!1}function De(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}function Re(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}function $e(t,e,n,r){var i=-1,o=null==t?0:t.length;for(r&&o&&(n=t[++i]);++i<o;)n=e(n,t[i],i,t);return n}function Ne(t,e,n,r){var i=null==t?0:t.length;for(r&&i&&(n=t[--i]);i--;)n=e(n,t[i],i,t);return n}function Be(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}var Fe=We("length");function Le(t,e,n){var r;return n(t,(function(t,n,i){if(e(t,n,i))return r=n,!1})),r}function Me(t,e,n,r){for(var i=t.length,o=n+(r?1:-1);r?o--:++o<i;)if(e(t[o],o,t))return o;return-1}function Ze(t,e,n){return e==e?function(t,e,n){var r=n-1,i=t.length;for(;++r<i;)if(t[r]===e)return r;return-1}(t,e,n):Me(t,ze,n)}function He(t,e,n,r){for(var i=n-1,o=t.length;++i<o;)if(r(t[i],e))return i;return-1}function ze(t){return t!=t}function Ue(t,e){var n=null==t?0:t.length;return n?qe(t,e)/n:g}function We(t){return function(e){return null==e?i:e[t]}}function Ge(t){return function(e){return null==t?i:t[e]}}function Ve(t,e,n,r,i){return i(t,(function(t,i,o){n=r?(r=!1,t):e(n,t,i,o)})),n}function qe(t,e){for(var n,r=-1,o=t.length;++r<o;){var s=e(t[r]);s!==i&&(n=n===i?s:n+s)}return n}function Ke(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}function Ye(t){return function(e){return t(e)}}function Qe(t,e){return De(e,(function(e){return t[e]}))}function Xe(t,e){return t.has(e)}function Je(t,e){for(var n=-1,r=t.length;++n<r&&Ze(e,t[n],0)>-1;);return n}function tn(t,e){for(var n=t.length;n--&&Ze(e,t[n],0)>-1;);return n}function en(t,e){for(var n=t.length,r=0;n--;)t[n]===e&&++r;return r}var nn=Ge({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),rn=Ge({"&":"&","<":"<",">":">",'"':""","'":"'"});function on(t){return"\\"+le[t]}function sn(t){return ne.test(t)}function an(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function ln(t,e){return function(n){return t(e(n))}}function cn(t,e){for(var n=-1,r=t.length,i=0,o=[];++n<r;){var s=t[n];s!==e&&s!==a||(t[n]=a,o[i++]=n)}return o}function un(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}function dn(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=[t,t]})),n}function pn(t){return sn(t)?function(t){var e=te.lastIndex=0;for(;te.test(t);)++e;return e}(t):Fe(t)}function hn(t){return sn(t)?function(t){return t.match(te)||[]}(t):function(t){return t.split("")}(t)}var fn=Ge({"&":"&","<":"<",">":">",""":'"',"'":"'"});var gn=function t(e){var n,r=(e=null==e?he:gn.defaults(he.Object(),e,gn.pick(he,ie))).Array,St=e.Date,Et=e.Error,Ot=e.Function,jt=e.Math,Pt=e.Object,kt=e.RegExp,It=e.String,Tt=e.TypeError,At=r.prototype,Dt=Ot.prototype,Rt=Pt.prototype,$t=e["__core-js_shared__"],Nt=Dt.toString,Bt=Rt.hasOwnProperty,Ft=0,Lt=(n=/[^.]+$/.exec($t&&$t.keys&&$t.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Mt=Rt.toString,Zt=Nt.call(Pt),Ht=he._,zt=kt("^"+Nt.call(Bt).replace(it,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ut=ve?e.Buffer:i,Wt=e.Symbol,Gt=e.Uint8Array,Vt=Ut?Ut.allocUnsafe:i,qt=ln(Pt.getPrototypeOf,Pt),Kt=Pt.create,Yt=Rt.propertyIsEnumerable,Qt=At.splice,te=Wt?Wt.isConcatSpreadable:i,ne=Wt?Wt.iterator:i,le=Wt?Wt.toStringTag:i,de=function(){try{var t=ho(Pt,"defineProperty");return t({},"",{}),t}catch(t){}}(),pe=e.clearTimeout!==he.clearTimeout&&e.clearTimeout,fe=St&&St.now!==he.Date.now&&St.now,ge=e.setTimeout!==he.setTimeout&&e.setTimeout,be=jt.ceil,me=jt.floor,Fe=Pt.getOwnPropertySymbols,Ge=Ut?Ut.isBuffer:i,vn=e.isFinite,bn=At.join,mn=ln(Pt.keys,Pt),yn=jt.max,xn=jt.min,_n=St.now,wn=e.parseInt,Cn=jt.random,Sn=At.reverse,En=ho(e,"DataView"),On=ho(e,"Map"),jn=ho(e,"Promise"),Pn=ho(e,"Set"),kn=ho(e,"WeakMap"),In=ho(Pt,"create"),Tn=kn&&new kn,An={},Dn=Mo(En),Rn=Mo(On),$n=Mo(jn),Nn=Mo(Pn),Bn=Mo(kn),Fn=Wt?Wt.prototype:i,Ln=Fn?Fn.valueOf:i,Mn=Fn?Fn.toString:i;function Zn(t){if(ra(t)&&!Gs(t)&&!(t instanceof Wn)){if(t instanceof Un)return t;if(Bt.call(t,"__wrapped__"))return Zo(t)}return new Un(t)}var Hn=function(){function t(){}return function(e){if(!na(e))return{};if(Kt)return Kt(e);t.prototype=e;var n=new t;return t.prototype=i,n}}();function zn(){}function Un(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=i}function Wn(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=v,this.__views__=[]}function Gn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Vn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function qn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Kn(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new qn;++e<n;)this.add(t[e])}function Yn(t){var e=this.__data__=new Vn(t);this.size=e.size}function Qn(t,e){var n=Gs(t),r=!n&&Ws(t),i=!n&&!r&&Ys(t),o=!n&&!r&&!i&&da(t),s=n||r||i||o,a=s?Ke(t.length,It):[],l=a.length;for(var c in t)!e&&!Bt.call(t,c)||s&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||xo(c,l))||a.push(c);return a}function Xn(t){var e=t.length;return e?t[Kr(0,e-1)]:i}function Jn(t,e){return Bo(Ii(t),lr(e,0,t.length))}function tr(t){return Bo(Ii(t))}function er(t,e,n){(n!==i&&!Hs(t[e],n)||n===i&&!(e in t))&&sr(t,e,n)}function nr(t,e,n){var r=t[e];Bt.call(t,e)&&Hs(r,n)&&(n!==i||e in t)||sr(t,e,n)}function rr(t,e){for(var n=t.length;n--;)if(Hs(t[n][0],e))return n;return-1}function ir(t,e,n,r){return hr(t,(function(t,i,o){e(r,t,n(t),o)})),r}function or(t,e){return t&&Ti(e,Da(e),t)}function sr(t,e,n){"__proto__"==e&&de?de(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function ar(t,e){for(var n=-1,o=e.length,s=r(o),a=null==t;++n<o;)s[n]=a?i:Pa(t,e[n]);return s}function lr(t,e,n){return t==t&&(n!==i&&(t=t<=n?t:n),e!==i&&(t=t>=e?t:e)),t}function cr(t,e,n,r,o,s){var a,l=1&e,c=2&e,u=4&e;if(n&&(a=o?n(t,r,o,s):n(t)),a!==i)return a;if(!na(t))return t;var d=Gs(t);if(d){if(a=function(t){var e=t.length,n=new t.constructor(e);e&&"string"==typeof t[0]&&Bt.call(t,"index")&&(n.index=t.index,n.input=t.input);return n}(t),!l)return Ii(t,a)}else{var p=vo(t),h=p==C||p==S;if(Ys(t))return Si(t,l);if(p==j||p==m||h&&!o){if(a=c||h?{}:mo(t),!l)return c?function(t,e){return Ti(t,go(t),e)}(t,function(t,e){return t&&Ti(e,Ra(e),t)}(a,t)):function(t,e){return Ti(t,fo(t),e)}(t,or(a,t))}else{if(!ae[p])return o?t:{};a=function(t,e,n){var r=t.constructor;switch(e){case R:return Ei(t);case x:case _:return new r(+t);case $:return function(t,e){var n=e?Ei(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,n);case N:case B:case F:case L:case M:case Z:case H:case z:case U:return Oi(t,n);case E:return new r;case O:case T:return new r(t);case k:return function(t){var e=new t.constructor(t.source,gt.exec(t));return e.lastIndex=t.lastIndex,e}(t);case I:return new r;case A:return i=t,Ln?Pt(Ln.call(i)):{}}var i}(t,p,l)}}s||(s=new Yn);var f=s.get(t);if(f)return f;s.set(t,a),la(t)?t.forEach((function(r){a.add(cr(r,e,n,r,t,s))})):ia(t)&&t.forEach((function(r,i){a.set(i,cr(r,e,n,i,t,s))}));var g=d?i:(u?c?oo:io:c?Ra:Da)(t);return je(g||t,(function(r,i){g&&(r=t[i=r]),nr(a,i,cr(r,e,n,i,t,s))})),a}function ur(t,e,n){var r=n.length;if(null==t)return!r;for(t=Pt(t);r--;){var o=n[r],s=e[o],a=t[o];if(a===i&&!(o in t)||!s(a))return!1}return!0}function dr(t,e,n){if("function"!=typeof t)throw new Tt(o);return Do((function(){t.apply(i,n)}),e)}function pr(t,e,n,r){var i=-1,o=Te,s=!0,a=t.length,l=[],c=e.length;if(!a)return l;n&&(e=De(e,Ye(n))),r?(o=Ae,s=!1):e.length>=200&&(o=Xe,s=!1,e=new Kn(e));t:for(;++i<a;){var u=t[i],d=null==n?u:n(u);if(u=r||0!==u?u:0,s&&d==d){for(var p=c;p--;)if(e[p]===d)continue t;l.push(u)}else o(e,d,r)||l.push(u)}return l}Zn.templateSettings={escape:X,evaluate:J,interpolate:tt,variable:"",imports:{_:Zn}},Zn.prototype=zn.prototype,Zn.prototype.constructor=Zn,Un.prototype=Hn(zn.prototype),Un.prototype.constructor=Un,Wn.prototype=Hn(zn.prototype),Wn.prototype.constructor=Wn,Gn.prototype.clear=function(){this.__data__=In?In(null):{},this.size=0},Gn.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Gn.prototype.get=function(t){var e=this.__data__;if(In){var n=e[t];return n===s?i:n}return Bt.call(e,t)?e[t]:i},Gn.prototype.has=function(t){var e=this.__data__;return In?e[t]!==i:Bt.call(e,t)},Gn.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=In&&e===i?s:e,this},Vn.prototype.clear=function(){this.__data__=[],this.size=0},Vn.prototype.delete=function(t){var e=this.__data__,n=rr(e,t);return!(n<0)&&(n==e.length-1?e.pop():Qt.call(e,n,1),--this.size,!0)},Vn.prototype.get=function(t){var e=this.__data__,n=rr(e,t);return n<0?i:e[n][1]},Vn.prototype.has=function(t){return rr(this.__data__,t)>-1},Vn.prototype.set=function(t,e){var n=this.__data__,r=rr(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this},qn.prototype.clear=function(){this.size=0,this.__data__={hash:new Gn,map:new(On||Vn),string:new Gn}},qn.prototype.delete=function(t){var e=uo(this,t).delete(t);return this.size-=e?1:0,e},qn.prototype.get=function(t){return uo(this,t).get(t)},qn.prototype.has=function(t){return uo(this,t).has(t)},qn.prototype.set=function(t,e){var n=uo(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this},Kn.prototype.add=Kn.prototype.push=function(t){return this.__data__.set(t,s),this},Kn.prototype.has=function(t){return this.__data__.has(t)},Yn.prototype.clear=function(){this.__data__=new Vn,this.size=0},Yn.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},Yn.prototype.get=function(t){return this.__data__.get(t)},Yn.prototype.has=function(t){return this.__data__.has(t)},Yn.prototype.set=function(t,e){var n=this.__data__;if(n instanceof Vn){var r=n.__data__;if(!On||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new qn(r)}return n.set(t,e),this.size=n.size,this};var hr=Ri(_r),fr=Ri(wr,!0);function gr(t,e){var n=!0;return hr(t,(function(t,r,i){return n=!!e(t,r,i)})),n}function vr(t,e,n){for(var r=-1,o=t.length;++r<o;){var s=t[r],a=e(s);if(null!=a&&(l===i?a==a&&!ua(a):n(a,l)))var l=a,c=s}return c}function br(t,e){var n=[];return hr(t,(function(t,r,i){e(t,r,i)&&n.push(t)})),n}function mr(t,e,n,r,i){var o=-1,s=t.length;for(n||(n=yo),i||(i=[]);++o<s;){var a=t[o];e>0&&n(a)?e>1?mr(a,e-1,n,r,i):Re(i,a):r||(i[i.length]=a)}return i}var yr=$i(),xr=$i(!0);function _r(t,e){return t&&yr(t,e,Da)}function wr(t,e){return t&&xr(t,e,Da)}function Cr(t,e){return Ie(e,(function(e){return Js(t[e])}))}function Sr(t,e){for(var n=0,r=(e=xi(e,t)).length;null!=t&&n<r;)t=t[Lo(e[n++])];return n&&n==r?t:i}function Er(t,e,n){var r=e(t);return Gs(t)?r:Re(r,n(t))}function Or(t){return null==t?t===i?"[object Undefined]":"[object Null]":le&&le in Pt(t)?function(t){var e=Bt.call(t,le),n=t[le];try{t[le]=i;var r=!0}catch(t){}var o=Mt.call(t);r&&(e?t[le]=n:delete t[le]);return o}(t):function(t){return Mt.call(t)}(t)}function jr(t,e){return t>e}function Pr(t,e){return null!=t&&Bt.call(t,e)}function kr(t,e){return null!=t&&e in Pt(t)}function Ir(t,e,n){for(var o=n?Ae:Te,s=t[0].length,a=t.length,l=a,c=r(a),u=1/0,d=[];l--;){var p=t[l];l&&e&&(p=De(p,Ye(e))),u=xn(p.length,u),c[l]=!n&&(e||s>=120&&p.length>=120)?new Kn(l&&p):i}p=t[0];var h=-1,f=c[0];t:for(;++h<s&&d.length<u;){var g=p[h],v=e?e(g):g;if(g=n||0!==g?g:0,!(f?Xe(f,v):o(d,v,n))){for(l=a;--l;){var b=c[l];if(!(b?Xe(b,v):o(t[l],v,n)))continue t}f&&f.push(v),d.push(g)}}return d}function Tr(t,e,n){var r=null==(t=ko(t,e=xi(e,t)))?t:t[Lo(Xo(e))];return null==r?i:Ee(r,t,n)}function Ar(t){return ra(t)&&Or(t)==m}function Dr(t,e,n,r,o){return t===e||(null==t||null==e||!ra(t)&&!ra(e)?t!=t&&e!=e:function(t,e,n,r,o,s){var a=Gs(t),l=Gs(e),c=a?y:vo(t),u=l?y:vo(e),d=(c=c==m?j:c)==j,p=(u=u==m?j:u)==j,h=c==u;if(h&&Ys(t)){if(!Ys(e))return!1;a=!0,d=!1}if(h&&!d)return s||(s=new Yn),a||da(t)?no(t,e,n,r,o,s):function(t,e,n,r,i,o,s){switch(n){case $:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case R:return!(t.byteLength!=e.byteLength||!o(new Gt(t),new Gt(e)));case x:case _:case O:return Hs(+t,+e);case w:return t.name==e.name&&t.message==e.message;case k:case T:return t==e+"";case E:var a=an;case I:var l=1&r;if(a||(a=un),t.size!=e.size&&!l)return!1;var c=s.get(t);if(c)return c==e;r|=2,s.set(t,e);var u=no(a(t),a(e),r,i,o,s);return s.delete(t),u;case A:if(Ln)return Ln.call(t)==Ln.call(e)}return!1}(t,e,c,n,r,o,s);if(!(1&n)){var f=d&&Bt.call(t,"__wrapped__"),g=p&&Bt.call(e,"__wrapped__");if(f||g){var v=f?t.value():t,b=g?e.value():e;return s||(s=new Yn),o(v,b,n,r,s)}}if(!h)return!1;return s||(s=new Yn),function(t,e,n,r,o,s){var a=1&n,l=io(t),c=l.length,u=io(e).length;if(c!=u&&!a)return!1;var d=c;for(;d--;){var p=l[d];if(!(a?p in e:Bt.call(e,p)))return!1}var h=s.get(t),f=s.get(e);if(h&&f)return h==e&&f==t;var g=!0;s.set(t,e),s.set(e,t);var v=a;for(;++d<c;){var b=t[p=l[d]],m=e[p];if(r)var y=a?r(m,b,p,e,t,s):r(b,m,p,t,e,s);if(!(y===i?b===m||o(b,m,n,r,s):y)){g=!1;break}v||(v="constructor"==p)}if(g&&!v){var x=t.constructor,_=e.constructor;x==_||!("constructor"in t)||!("constructor"in e)||"function"==typeof x&&x instanceof x&&"function"==typeof _&&_ instanceof _||(g=!1)}return s.delete(t),s.delete(e),g}(t,e,n,r,o,s)}(t,e,n,r,Dr,o))}function Rr(t,e,n,r){var o=n.length,s=o,a=!r;if(null==t)return!s;for(t=Pt(t);o--;){var l=n[o];if(a&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}for(;++o<s;){var c=(l=n[o])[0],u=t[c],d=l[1];if(a&&l[2]){if(u===i&&!(c in t))return!1}else{var p=new Yn;if(r)var h=r(u,d,c,t,e,p);if(!(h===i?Dr(d,u,3,r,p):h))return!1}}return!0}function $r(t){return!(!na(t)||(e=t,Lt&&Lt in e))&&(Js(t)?zt:mt).test(Mo(t));var e}function Nr(t){return"function"==typeof t?t:null==t?ol:"object"==typeof t?Gs(t)?Hr(t[0],t[1]):Zr(t):fl(t)}function Br(t){if(!Eo(t))return mn(t);var e=[];for(var n in Pt(t))Bt.call(t,n)&&"constructor"!=n&&e.push(n);return e}function Fr(t){if(!na(t))return function(t){var e=[];if(null!=t)for(var n in Pt(t))e.push(n);return e}(t);var e=Eo(t),n=[];for(var r in t)("constructor"!=r||!e&&Bt.call(t,r))&&n.push(r);return n}function Lr(t,e){return t<e}function Mr(t,e){var n=-1,i=qs(t)?r(t.length):[];return hr(t,(function(t,r,o){i[++n]=e(t,r,o)})),i}function Zr(t){var e=po(t);return 1==e.length&&e[0][2]?jo(e[0][0],e[0][1]):function(n){return n===t||Rr(n,t,e)}}function Hr(t,e){return wo(t)&&Oo(e)?jo(Lo(t),e):function(n){var r=Pa(n,t);return r===i&&r===e?ka(n,t):Dr(e,r,3)}}function zr(t,e,n,r,o){t!==e&&yr(e,(function(s,a){if(o||(o=new Yn),na(s))!function(t,e,n,r,o,s,a){var l=To(t,n),c=To(e,n),u=a.get(c);if(u)return void er(t,n,u);var d=s?s(l,c,n+"",t,e,a):i,p=d===i;if(p){var h=Gs(c),f=!h&&Ys(c),g=!h&&!f&&da(c);d=c,h||f||g?Gs(l)?d=l:Ks(l)?d=Ii(l):f?(p=!1,d=Si(c,!0)):g?(p=!1,d=Oi(c,!0)):d=[]:sa(c)||Ws(c)?(d=l,Ws(l)?d=ya(l):na(l)&&!Js(l)||(d=mo(c))):p=!1}p&&(a.set(c,d),o(d,c,r,s,a),a.delete(c));er(t,n,d)}(t,e,a,n,zr,r,o);else{var l=r?r(To(t,a),s,a+"",t,e,o):i;l===i&&(l=s),er(t,a,l)}}),Ra)}function Ur(t,e){var n=t.length;if(n)return xo(e+=e<0?n:0,n)?t[e]:i}function Wr(t,e,n){e=e.length?De(e,(function(t){return Gs(t)?function(e){return Sr(e,1===t.length?t[0]:t)}:t})):[ol];var r=-1;return e=De(e,Ye(co())),function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}(Mr(t,(function(t,n,i){return{criteria:De(e,(function(e){return e(t)})),index:++r,value:t}})),(function(t,e){return function(t,e,n){var r=-1,i=t.criteria,o=e.criteria,s=i.length,a=n.length;for(;++r<s;){var l=ji(i[r],o[r]);if(l)return r>=a?l:l*("desc"==n[r]?-1:1)}return t.index-e.index}(t,e,n)}))}function Gr(t,e,n){for(var r=-1,i=e.length,o={};++r<i;){var s=e[r],a=Sr(t,s);n(a,s)&&ti(o,xi(s,t),a)}return o}function Vr(t,e,n,r){var i=r?He:Ze,o=-1,s=e.length,a=t;for(t===e&&(e=Ii(e)),n&&(a=De(t,Ye(n)));++o<s;)for(var l=0,c=e[o],u=n?n(c):c;(l=i(a,u,l,r))>-1;)a!==t&&Qt.call(a,l,1),Qt.call(t,l,1);return t}function qr(t,e){for(var n=t?e.length:0,r=n-1;n--;){var i=e[n];if(n==r||i!==o){var o=i;xo(i)?Qt.call(t,i,1):pi(t,i)}}return t}function Kr(t,e){return t+me(Cn()*(e-t+1))}function Yr(t,e){var n="";if(!t||e<1||e>f)return n;do{e%2&&(n+=t),(e=me(e/2))&&(t+=t)}while(e);return n}function Qr(t,e){return Ro(Po(t,e,ol),t+"")}function Xr(t){return Xn(Ha(t))}function Jr(t,e){var n=Ha(t);return Bo(n,lr(e,0,n.length))}function ti(t,e,n,r){if(!na(t))return t;for(var o=-1,s=(e=xi(e,t)).length,a=s-1,l=t;null!=l&&++o<s;){var c=Lo(e[o]),u=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return t;if(o!=a){var d=l[c];(u=r?r(d,c,l):i)===i&&(u=na(d)?d:xo(e[o+1])?[]:{})}nr(l,c,u),l=l[c]}return t}var ei=Tn?function(t,e){return Tn.set(t,e),t}:ol,ni=de?function(t,e){return de(t,"toString",{configurable:!0,enumerable:!1,value:nl(e),writable:!0})}:ol;function ri(t){return Bo(Ha(t))}function ii(t,e,n){var i=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(n=n>o?o:n)<0&&(n+=o),o=e>n?0:n-e>>>0,e>>>=0;for(var s=r(o);++i<o;)s[i]=t[i+e];return s}function oi(t,e){var n;return hr(t,(function(t,r,i){return!(n=e(t,r,i))})),!!n}function si(t,e,n){var r=0,i=null==t?r:t.length;if("number"==typeof e&&e==e&&i<=2147483647){for(;r<i;){var o=r+i>>>1,s=t[o];null!==s&&!ua(s)&&(n?s<=e:s<e)?r=o+1:i=o}return i}return ai(t,e,ol,n)}function ai(t,e,n,r){var o=0,s=null==t?0:t.length;if(0===s)return 0;for(var a=(e=n(e))!=e,l=null===e,c=ua(e),u=e===i;o<s;){var d=me((o+s)/2),p=n(t[d]),h=p!==i,f=null===p,g=p==p,v=ua(p);if(a)var b=r||g;else b=u?g&&(r||h):l?g&&h&&(r||!f):c?g&&h&&!f&&(r||!v):!f&&!v&&(r?p<=e:p<e);b?o=d+1:s=d}return xn(s,4294967294)}function li(t,e){for(var n=-1,r=t.length,i=0,o=[];++n<r;){var s=t[n],a=e?e(s):s;if(!n||!Hs(a,l)){var l=a;o[i++]=0===s?0:s}}return o}function ci(t){return"number"==typeof t?t:ua(t)?g:+t}function ui(t){if("string"==typeof t)return t;if(Gs(t))return De(t,ui)+"";if(ua(t))return Mn?Mn.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function di(t,e,n){var r=-1,i=Te,o=t.length,s=!0,a=[],l=a;if(n)s=!1,i=Ae;else if(o>=200){var c=e?null:Yi(t);if(c)return un(c);s=!1,i=Xe,l=new Kn}else l=e?[]:a;t:for(;++r<o;){var u=t[r],d=e?e(u):u;if(u=n||0!==u?u:0,s&&d==d){for(var p=l.length;p--;)if(l[p]===d)continue t;e&&l.push(d),a.push(u)}else i(l,d,n)||(l!==a&&l.push(d),a.push(u))}return a}function pi(t,e){return null==(t=ko(t,e=xi(e,t)))||delete t[Lo(Xo(e))]}function hi(t,e,n,r){return ti(t,e,n(Sr(t,e)),r)}function fi(t,e,n,r){for(var i=t.length,o=r?i:-1;(r?o--:++o<i)&&e(t[o],o,t););return n?ii(t,r?0:o,r?o+1:i):ii(t,r?o+1:0,r?i:o)}function gi(t,e){var n=t;return n instanceof Wn&&(n=n.value()),$e(e,(function(t,e){return e.func.apply(e.thisArg,Re([t],e.args))}),n)}function vi(t,e,n){var i=t.length;if(i<2)return i?di(t[0]):[];for(var o=-1,s=r(i);++o<i;)for(var a=t[o],l=-1;++l<i;)l!=o&&(s[o]=pr(s[o]||a,t[l],e,n));return di(mr(s,1),e,n)}function bi(t,e,n){for(var r=-1,o=t.length,s=e.length,a={};++r<o;){var l=r<s?e[r]:i;n(a,t[r],l)}return a}function mi(t){return Ks(t)?t:[]}function yi(t){return"function"==typeof t?t:ol}function xi(t,e){return Gs(t)?t:wo(t,e)?[t]:Fo(xa(t))}var _i=Qr;function wi(t,e,n){var r=t.length;return n=n===i?r:n,!e&&n>=r?t:ii(t,e,n)}var Ci=pe||function(t){return he.clearTimeout(t)};function Si(t,e){if(e)return t.slice();var n=t.length,r=Vt?Vt(n):new t.constructor(n);return t.copy(r),r}function Ei(t){var e=new t.constructor(t.byteLength);return new Gt(e).set(new Gt(t)),e}function Oi(t,e){var n=e?Ei(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function ji(t,e){if(t!==e){var n=t!==i,r=null===t,o=t==t,s=ua(t),a=e!==i,l=null===e,c=e==e,u=ua(e);if(!l&&!u&&!s&&t>e||s&&a&&c&&!l&&!u||r&&a&&c||!n&&c||!o)return 1;if(!r&&!s&&!u&&t<e||u&&n&&o&&!r&&!s||l&&n&&o||!a&&o||!c)return-1}return 0}function Pi(t,e,n,i){for(var o=-1,s=t.length,a=n.length,l=-1,c=e.length,u=yn(s-a,0),d=r(c+u),p=!i;++l<c;)d[l]=e[l];for(;++o<a;)(p||o<s)&&(d[n[o]]=t[o]);for(;u--;)d[l++]=t[o++];return d}function ki(t,e,n,i){for(var o=-1,s=t.length,a=-1,l=n.length,c=-1,u=e.length,d=yn(s-l,0),p=r(d+u),h=!i;++o<d;)p[o]=t[o];for(var f=o;++c<u;)p[f+c]=e[c];for(;++a<l;)(h||o<s)&&(p[f+n[a]]=t[o++]);return p}function Ii(t,e){var n=-1,i=t.length;for(e||(e=r(i));++n<i;)e[n]=t[n];return e}function Ti(t,e,n,r){var o=!n;n||(n={});for(var s=-1,a=e.length;++s<a;){var l=e[s],c=r?r(n[l],t[l],l,n,t):i;c===i&&(c=t[l]),o?sr(n,l,c):nr(n,l,c)}return n}function Ai(t,e){return function(n,r){var i=Gs(n)?Oe:ir,o=e?e():{};return i(n,t,co(r,2),o)}}function Di(t){return Qr((function(e,n){var r=-1,o=n.length,s=o>1?n[o-1]:i,a=o>2?n[2]:i;for(s=t.length>3&&"function"==typeof s?(o--,s):i,a&&_o(n[0],n[1],a)&&(s=o<3?i:s,o=1),e=Pt(e);++r<o;){var l=n[r];l&&t(e,l,r,s)}return e}))}function Ri(t,e){return function(n,r){if(null==n)return n;if(!qs(n))return t(n,r);for(var i=n.length,o=e?i:-1,s=Pt(n);(e?o--:++o<i)&&!1!==r(s[o],o,s););return n}}function $i(t){return function(e,n,r){for(var i=-1,o=Pt(e),s=r(e),a=s.length;a--;){var l=s[t?a:++i];if(!1===n(o[l],l,o))break}return e}}function Ni(t){return function(e){var n=sn(e=xa(e))?hn(e):i,r=n?n[0]:e.charAt(0),o=n?wi(n,1).join(""):e.slice(1);return r[t]()+o}}function Bi(t){return function(e){return $e(Ja(Wa(e).replace(Xt,"")),t,"")}}function Fi(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n=Hn(t.prototype),r=t.apply(n,e);return na(r)?r:n}}function Li(t){return function(e,n,r){var o=Pt(e);if(!qs(e)){var s=co(n,3);e=Da(e),n=function(t){return s(o[t],t,o)}}var a=t(e,n,r);return a>-1?o[s?e[a]:a]:i}}function Mi(t){return ro((function(e){var n=e.length,r=n,s=Un.prototype.thru;for(t&&e.reverse();r--;){var a=e[r];if("function"!=typeof a)throw new Tt(o);if(s&&!l&&"wrapper"==ao(a))var l=new Un([],!0)}for(r=l?r:n;++r<n;){var c=ao(a=e[r]),u="wrapper"==c?so(a):i;l=u&&Co(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?l[ao(u[0])].apply(l,u[3]):1==a.length&&Co(a)?l[c]():l.thru(a)}return function(){var t=arguments,r=t[0];if(l&&1==t.length&&Gs(r))return l.plant(r).value();for(var i=0,o=n?e[i].apply(this,t):r;++i<n;)o=e[i].call(this,o);return o}}))}function Zi(t,e,n,o,s,a,l,c,u,p){var h=e&d,f=1&e,g=2&e,v=24&e,b=512&e,m=g?i:Fi(t);return function i(){for(var d=arguments.length,y=r(d),x=d;x--;)y[x]=arguments[x];if(v)var _=lo(i),w=en(y,_);if(o&&(y=Pi(y,o,s,v)),a&&(y=ki(y,a,l,v)),d-=w,v&&d<p){var C=cn(y,_);return qi(t,e,Zi,i.placeholder,n,y,C,c,u,p-d)}var S=f?n:this,E=g?S[t]:t;return d=y.length,c?y=Io(y,c):b&&d>1&&y.reverse(),h&&u<d&&(y.length=u),this&&this!==he&&this instanceof i&&(E=m||Fi(E)),E.apply(S,y)}}function Hi(t,e){return function(n,r){return function(t,e,n,r){return _r(t,(function(t,i,o){e(r,n(t),i,o)})),r}(n,t,e(r),{})}}function zi(t,e){return function(n,r){var o;if(n===i&&r===i)return e;if(n!==i&&(o=n),r!==i){if(o===i)return r;"string"==typeof n||"string"==typeof r?(n=ui(n),r=ui(r)):(n=ci(n),r=ci(r)),o=t(n,r)}return o}}function Ui(t){return ro((function(e){return e=De(e,Ye(co())),Qr((function(n){var r=this;return t(e,(function(t){return Ee(t,r,n)}))}))}))}function Wi(t,e){var n=(e=e===i?" ":ui(e)).length;if(n<2)return n?Yr(e,t):e;var r=Yr(e,be(t/pn(e)));return sn(e)?wi(hn(r),0,t).join(""):r.slice(0,t)}function Gi(t){return function(e,n,o){return o&&"number"!=typeof o&&_o(e,n,o)&&(n=o=i),e=ga(e),n===i?(n=e,e=0):n=ga(n),function(t,e,n,i){for(var o=-1,s=yn(be((e-t)/(n||1)),0),a=r(s);s--;)a[i?s:++o]=t,t+=n;return a}(e,n,o=o===i?e<n?1:-1:ga(o),t)}}function Vi(t){return function(e,n){return"string"==typeof e&&"string"==typeof n||(e=ma(e),n=ma(n)),t(e,n)}}function qi(t,e,n,r,o,s,a,l,d,p){var h=8&e;e|=h?c:u,4&(e&=~(h?u:c))||(e&=-4);var f=[t,e,o,h?s:i,h?a:i,h?i:s,h?i:a,l,d,p],g=n.apply(i,f);return Co(t)&&Ao(g,f),g.placeholder=r,$o(g,t,e)}function Ki(t){var e=jt[t];return function(t,n){if(t=ma(t),(n=null==n?0:xn(va(n),292))&&vn(t)){var r=(xa(t)+"e").split("e");return+((r=(xa(e(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return e(t)}}var Yi=Pn&&1/un(new Pn([,-0]))[1]==h?function(t){return new Pn(t)}:ul;function Qi(t){return function(e){var n=vo(e);return n==E?an(e):n==I?dn(e):function(t,e){return De(e,(function(e){return[e,t[e]]}))}(e,t(e))}}function Xi(t,e,n,s,h,f,g,v){var b=2&e;if(!b&&"function"!=typeof t)throw new Tt(o);var m=s?s.length:0;if(m||(e&=-97,s=h=i),g=g===i?g:yn(va(g),0),v=v===i?v:va(v),m-=h?h.length:0,e&u){var y=s,x=h;s=h=i}var _=b?i:so(t),w=[t,e,n,s,h,y,x,f,g,v];if(_&&function(t,e){var n=t[1],r=e[1],i=n|r,o=i<131,s=r==d&&8==n||r==d&&n==p&&t[7].length<=e[8]||384==r&&e[7].length<=e[8]&&8==n;if(!o&&!s)return t;1&r&&(t[2]=e[2],i|=1&n?0:4);var l=e[3];if(l){var c=t[3];t[3]=c?Pi(c,l,e[4]):l,t[4]=c?cn(t[3],a):e[4]}(l=e[5])&&(c=t[5],t[5]=c?ki(c,l,e[6]):l,t[6]=c?cn(t[5],a):e[6]);(l=e[7])&&(t[7]=l);r&d&&(t[8]=null==t[8]?e[8]:xn(t[8],e[8]));null==t[9]&&(t[9]=e[9]);t[0]=e[0],t[1]=i}(w,_),t=w[0],e=w[1],n=w[2],s=w[3],h=w[4],!(v=w[9]=w[9]===i?b?0:t.length:yn(w[9]-m,0))&&24&e&&(e&=-25),e&&1!=e)C=8==e||e==l?function(t,e,n){var o=Fi(t);return function s(){for(var a=arguments.length,l=r(a),c=a,u=lo(s);c--;)l[c]=arguments[c];var d=a<3&&l[0]!==u&&l[a-1]!==u?[]:cn(l,u);return(a-=d.length)<n?qi(t,e,Zi,s.placeholder,i,l,d,i,i,n-a):Ee(this&&this!==he&&this instanceof s?o:t,this,l)}}(t,e,v):e!=c&&33!=e||h.length?Zi.apply(i,w):function(t,e,n,i){var o=1&e,s=Fi(t);return function e(){for(var a=-1,l=arguments.length,c=-1,u=i.length,d=r(u+l),p=this&&this!==he&&this instanceof e?s:t;++c<u;)d[c]=i[c];for(;l--;)d[c++]=arguments[++a];return Ee(p,o?n:this,d)}}(t,e,n,s);else var C=function(t,e,n){var r=1&e,i=Fi(t);return function e(){return(this&&this!==he&&this instanceof e?i:t).apply(r?n:this,arguments)}}(t,e,n);return $o((_?ei:Ao)(C,w),t,e)}function Ji(t,e,n,r){return t===i||Hs(t,Rt[n])&&!Bt.call(r,n)?e:t}function to(t,e,n,r,o,s){return na(t)&&na(e)&&(s.set(e,t),zr(t,e,i,to,s),s.delete(e)),t}function eo(t){return sa(t)?i:t}function no(t,e,n,r,o,s){var a=1&n,l=t.length,c=e.length;if(l!=c&&!(a&&c>l))return!1;var u=s.get(t),d=s.get(e);if(u&&d)return u==e&&d==t;var p=-1,h=!0,f=2&n?new Kn:i;for(s.set(t,e),s.set(e,t);++p<l;){var g=t[p],v=e[p];if(r)var b=a?r(v,g,p,e,t,s):r(g,v,p,t,e,s);if(b!==i){if(b)continue;h=!1;break}if(f){if(!Be(e,(function(t,e){if(!Xe(f,e)&&(g===t||o(g,t,n,r,s)))return f.push(e)}))){h=!1;break}}else if(g!==v&&!o(g,v,n,r,s)){h=!1;break}}return s.delete(t),s.delete(e),h}function ro(t){return Ro(Po(t,i,Vo),t+"")}function io(t){return Er(t,Da,fo)}function oo(t){return Er(t,Ra,go)}var so=Tn?function(t){return Tn.get(t)}:ul;function ao(t){for(var e=t.name+"",n=An[e],r=Bt.call(An,e)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==t)return i.name}return e}function lo(t){return(Bt.call(Zn,"placeholder")?Zn:t).placeholder}function co(){var t=Zn.iteratee||sl;return t=t===sl?Nr:t,arguments.length?t(arguments[0],arguments[1]):t}function uo(t,e){var n,r,i=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof e?"string":"hash"]:i.map}function po(t){for(var e=Da(t),n=e.length;n--;){var r=e[n],i=t[r];e[n]=[r,i,Oo(i)]}return e}function ho(t,e){var n=function(t,e){return null==t?i:t[e]}(t,e);return $r(n)?n:i}var fo=Fe?function(t){return null==t?[]:(t=Pt(t),Ie(Fe(t),(function(e){return Yt.call(t,e)})))}:bl,go=Fe?function(t){for(var e=[];t;)Re(e,fo(t)),t=qt(t);return e}:bl,vo=Or;function bo(t,e,n){for(var r=-1,i=(e=xi(e,t)).length,o=!1;++r<i;){var s=Lo(e[r]);if(!(o=null!=t&&n(t,s)))break;t=t[s]}return o||++r!=i?o:!!(i=null==t?0:t.length)&&ea(i)&&xo(s,i)&&(Gs(t)||Ws(t))}function mo(t){return"function"!=typeof t.constructor||Eo(t)?{}:Hn(qt(t))}function yo(t){return Gs(t)||Ws(t)||!!(te&&t&&t[te])}function xo(t,e){var n=typeof t;return!!(e=null==e?f:e)&&("number"==n||"symbol"!=n&&xt.test(t))&&t>-1&&t%1==0&&t<e}function _o(t,e,n){if(!na(n))return!1;var r=typeof e;return!!("number"==r?qs(n)&&xo(e,n.length):"string"==r&&e in n)&&Hs(n[e],t)}function wo(t,e){if(Gs(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!ua(t))||(nt.test(t)||!et.test(t)||null!=e&&t in Pt(e))}function Co(t){var e=ao(t),n=Zn[e];if("function"!=typeof n||!(e in Wn.prototype))return!1;if(t===n)return!0;var r=so(n);return!!r&&t===r[0]}(En&&vo(new En(new ArrayBuffer(1)))!=$||On&&vo(new On)!=E||jn&&vo(jn.resolve())!=P||Pn&&vo(new Pn)!=I||kn&&vo(new kn)!=D)&&(vo=function(t){var e=Or(t),n=e==j?t.constructor:i,r=n?Mo(n):"";if(r)switch(r){case Dn:return $;case Rn:return E;case $n:return P;case Nn:return I;case Bn:return D}return e});var So=$t?Js:ml;function Eo(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Rt)}function Oo(t){return t==t&&!na(t)}function jo(t,e){return function(n){return null!=n&&(n[t]===e&&(e!==i||t in Pt(n)))}}function Po(t,e,n){return e=yn(e===i?t.length-1:e,0),function(){for(var i=arguments,o=-1,s=yn(i.length-e,0),a=r(s);++o<s;)a[o]=i[e+o];o=-1;for(var l=r(e+1);++o<e;)l[o]=i[o];return l[e]=n(a),Ee(t,this,l)}}function ko(t,e){return e.length<2?t:Sr(t,ii(e,0,-1))}function Io(t,e){for(var n=t.length,r=xn(e.length,n),o=Ii(t);r--;){var s=e[r];t[r]=xo(s,n)?o[s]:i}return t}function To(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}var Ao=No(ei),Do=ge||function(t,e){return he.setTimeout(t,e)},Ro=No(ni);function $o(t,e,n){var r=e+"";return Ro(t,function(t,e){var n=e.length;if(!n)return t;var r=n-1;return e[r]=(n>1?"& ":"")+e[r],e=e.join(n>2?", ":" "),t.replace(ct,"{\n/* [wrapped with "+e+"] */\n")}(r,function(t,e){return je(b,(function(n){var r="_."+n[0];e&n[1]&&!Te(t,r)&&t.push(r)})),t.sort()}(function(t){var e=t.match(ut);return e?e[1].split(dt):[]}(r),n)))}function No(t){var e=0,n=0;return function(){var r=_n(),o=16-(r-n);if(n=r,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(i,arguments)}}function Bo(t,e){var n=-1,r=t.length,o=r-1;for(e=e===i?r:e;++n<e;){var s=Kr(n,o),a=t[s];t[s]=t[n],t[n]=a}return t.length=e,t}var Fo=function(t){var e=Ns(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(rt,(function(t,n,r,i){e.push(r?i.replace(ht,"$1"):n||t)})),e}));function Lo(t){if("string"==typeof t||ua(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function Mo(t){if(null!=t){try{return Nt.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Zo(t){if(t instanceof Wn)return t.clone();var e=new Un(t.__wrapped__,t.__chain__);return e.__actions__=Ii(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}var Ho=Qr((function(t,e){return Ks(t)?pr(t,mr(e,1,Ks,!0)):[]})),zo=Qr((function(t,e){var n=Xo(e);return Ks(n)&&(n=i),Ks(t)?pr(t,mr(e,1,Ks,!0),co(n,2)):[]})),Uo=Qr((function(t,e){var n=Xo(e);return Ks(n)&&(n=i),Ks(t)?pr(t,mr(e,1,Ks,!0),i,n):[]}));function Wo(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:va(n);return i<0&&(i=yn(r+i,0)),Me(t,co(e,3),i)}function Go(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=r-1;return n!==i&&(o=va(n),o=n<0?yn(r+o,0):xn(o,r-1)),Me(t,co(e,3),o,!0)}function Vo(t){return(null==t?0:t.length)?mr(t,1):[]}function qo(t){return t&&t.length?t[0]:i}var Ko=Qr((function(t){var e=De(t,mi);return e.length&&e[0]===t[0]?Ir(e):[]})),Yo=Qr((function(t){var e=Xo(t),n=De(t,mi);return e===Xo(n)?e=i:n.pop(),n.length&&n[0]===t[0]?Ir(n,co(e,2)):[]})),Qo=Qr((function(t){var e=Xo(t),n=De(t,mi);return(e="function"==typeof e?e:i)&&n.pop(),n.length&&n[0]===t[0]?Ir(n,i,e):[]}));function Xo(t){var e=null==t?0:t.length;return e?t[e-1]:i}var Jo=Qr(ts);function ts(t,e){return t&&t.length&&e&&e.length?Vr(t,e):t}var es=ro((function(t,e){var n=null==t?0:t.length,r=ar(t,e);return qr(t,De(e,(function(t){return xo(t,n)?+t:t})).sort(ji)),r}));function ns(t){return null==t?t:Sn.call(t)}var rs=Qr((function(t){return di(mr(t,1,Ks,!0))})),is=Qr((function(t){var e=Xo(t);return Ks(e)&&(e=i),di(mr(t,1,Ks,!0),co(e,2))})),os=Qr((function(t){var e=Xo(t);return e="function"==typeof e?e:i,di(mr(t,1,Ks,!0),i,e)}));function ss(t){if(!t||!t.length)return[];var e=0;return t=Ie(t,(function(t){if(Ks(t))return e=yn(t.length,e),!0})),Ke(e,(function(e){return De(t,We(e))}))}function as(t,e){if(!t||!t.length)return[];var n=ss(t);return null==e?n:De(n,(function(t){return Ee(e,i,t)}))}var ls=Qr((function(t,e){return Ks(t)?pr(t,e):[]})),cs=Qr((function(t){return vi(Ie(t,Ks))})),us=Qr((function(t){var e=Xo(t);return Ks(e)&&(e=i),vi(Ie(t,Ks),co(e,2))})),ds=Qr((function(t){var e=Xo(t);return e="function"==typeof e?e:i,vi(Ie(t,Ks),i,e)})),ps=Qr(ss);var hs=Qr((function(t){var e=t.length,n=e>1?t[e-1]:i;return n="function"==typeof n?(t.pop(),n):i,as(t,n)}));function fs(t){var e=Zn(t);return e.__chain__=!0,e}function gs(t,e){return e(t)}var vs=ro((function(t){var e=t.length,n=e?t[0]:0,r=this.__wrapped__,o=function(e){return ar(e,t)};return!(e>1||this.__actions__.length)&&r instanceof Wn&&xo(n)?((r=r.slice(n,+n+(e?1:0))).__actions__.push({func:gs,args:[o],thisArg:i}),new Un(r,this.__chain__).thru((function(t){return e&&!t.length&&t.push(i),t}))):this.thru(o)}));var bs=Ai((function(t,e,n){Bt.call(t,n)?++t[n]:sr(t,n,1)}));var ms=Li(Wo),ys=Li(Go);function xs(t,e){return(Gs(t)?je:hr)(t,co(e,3))}function _s(t,e){return(Gs(t)?Pe:fr)(t,co(e,3))}var ws=Ai((function(t,e,n){Bt.call(t,n)?t[n].push(e):sr(t,n,[e])}));var Cs=Qr((function(t,e,n){var i=-1,o="function"==typeof e,s=qs(t)?r(t.length):[];return hr(t,(function(t){s[++i]=o?Ee(e,t,n):Tr(t,e,n)})),s})),Ss=Ai((function(t,e,n){sr(t,n,e)}));function Es(t,e){return(Gs(t)?De:Mr)(t,co(e,3))}var Os=Ai((function(t,e,n){t[n?0:1].push(e)}),(function(){return[[],[]]}));var js=Qr((function(t,e){if(null==t)return[];var n=e.length;return n>1&&_o(t,e[0],e[1])?e=[]:n>2&&_o(e[0],e[1],e[2])&&(e=[e[0]]),Wr(t,mr(e,1),[])})),Ps=fe||function(){return he.Date.now()};function ks(t,e,n){return e=n?i:e,e=t&&null==e?t.length:e,Xi(t,d,i,i,i,i,e)}function Is(t,e){var n;if("function"!=typeof e)throw new Tt(o);return t=va(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=i),n}}var Ts=Qr((function(t,e,n){var r=1;if(n.length){var i=cn(n,lo(Ts));r|=c}return Xi(t,r,e,n,i)})),As=Qr((function(t,e,n){var r=3;if(n.length){var i=cn(n,lo(As));r|=c}return Xi(e,r,t,n,i)}));function Ds(t,e,n){var r,s,a,l,c,u,d=0,p=!1,h=!1,f=!0;if("function"!=typeof t)throw new Tt(o);function g(e){var n=r,o=s;return r=s=i,d=e,l=t.apply(o,n)}function v(t){return d=t,c=Do(m,e),p?g(t):l}function b(t){var n=t-u;return u===i||n>=e||n<0||h&&t-d>=a}function m(){var t=Ps();if(b(t))return y(t);c=Do(m,function(t){var n=e-(t-u);return h?xn(n,a-(t-d)):n}(t))}function y(t){return c=i,f&&r?g(t):(r=s=i,l)}function x(){var t=Ps(),n=b(t);if(r=arguments,s=this,u=t,n){if(c===i)return v(u);if(h)return Ci(c),c=Do(m,e),g(u)}return c===i&&(c=Do(m,e)),l}return e=ma(e)||0,na(n)&&(p=!!n.leading,a=(h="maxWait"in n)?yn(ma(n.maxWait)||0,e):a,f="trailing"in n?!!n.trailing:f),x.cancel=function(){c!==i&&Ci(c),d=0,r=u=s=c=i},x.flush=function(){return c===i?l:y(Ps())},x}var Rs=Qr((function(t,e){return dr(t,1,e)})),$s=Qr((function(t,e,n){return dr(t,ma(e)||0,n)}));function Ns(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new Tt(o);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=t.apply(this,r);return n.cache=o.set(i,s)||o,s};return n.cache=new(Ns.Cache||qn),n}function Bs(t){if("function"!=typeof t)throw new Tt(o);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}Ns.Cache=qn;var Fs=_i((function(t,e){var n=(e=1==e.length&&Gs(e[0])?De(e[0],Ye(co())):De(mr(e,1),Ye(co()))).length;return Qr((function(r){for(var i=-1,o=xn(r.length,n);++i<o;)r[i]=e[i].call(this,r[i]);return Ee(t,this,r)}))})),Ls=Qr((function(t,e){var n=cn(e,lo(Ls));return Xi(t,c,i,e,n)})),Ms=Qr((function(t,e){var n=cn(e,lo(Ms));return Xi(t,u,i,e,n)})),Zs=ro((function(t,e){return Xi(t,p,i,i,i,e)}));function Hs(t,e){return t===e||t!=t&&e!=e}var zs=Vi(jr),Us=Vi((function(t,e){return t>=e})),Ws=Ar(function(){return arguments}())?Ar:function(t){return ra(t)&&Bt.call(t,"callee")&&!Yt.call(t,"callee")},Gs=r.isArray,Vs=ye?Ye(ye):function(t){return ra(t)&&Or(t)==R};function qs(t){return null!=t&&ea(t.length)&&!Js(t)}function Ks(t){return ra(t)&&qs(t)}var Ys=Ge||ml,Qs=xe?Ye(xe):function(t){return ra(t)&&Or(t)==_};function Xs(t){if(!ra(t))return!1;var e=Or(t);return e==w||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!sa(t)}function Js(t){if(!na(t))return!1;var e=Or(t);return e==C||e==S||"[object AsyncFunction]"==e||"[object Proxy]"==e}function ta(t){return"number"==typeof t&&t==va(t)}function ea(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=f}function na(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function ra(t){return null!=t&&"object"==typeof t}var ia=_e?Ye(_e):function(t){return ra(t)&&vo(t)==E};function oa(t){return"number"==typeof t||ra(t)&&Or(t)==O}function sa(t){if(!ra(t)||Or(t)!=j)return!1;var e=qt(t);if(null===e)return!0;var n=Bt.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Nt.call(n)==Zt}var aa=we?Ye(we):function(t){return ra(t)&&Or(t)==k};var la=Ce?Ye(Ce):function(t){return ra(t)&&vo(t)==I};function ca(t){return"string"==typeof t||!Gs(t)&&ra(t)&&Or(t)==T}function ua(t){return"symbol"==typeof t||ra(t)&&Or(t)==A}var da=Se?Ye(Se):function(t){return ra(t)&&ea(t.length)&&!!se[Or(t)]};var pa=Vi(Lr),ha=Vi((function(t,e){return t<=e}));function fa(t){if(!t)return[];if(qs(t))return ca(t)?hn(t):Ii(t);if(ne&&t[ne])return function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}(t[ne]());var e=vo(t);return(e==E?an:e==I?un:Ha)(t)}function ga(t){return t?(t=ma(t))===h||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function va(t){var e=ga(t),n=e%1;return e==e?n?e-n:e:0}function ba(t){return t?lr(va(t),0,v):0}function ma(t){if("number"==typeof t)return t;if(ua(t))return g;if(na(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=na(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(st,"");var n=bt.test(t);return n||yt.test(t)?ue(t.slice(2),n?2:8):vt.test(t)?g:+t}function ya(t){return Ti(t,Ra(t))}function xa(t){return null==t?"":ui(t)}var _a=Di((function(t,e){if(Eo(e)||qs(e))Ti(e,Da(e),t);else for(var n in e)Bt.call(e,n)&&nr(t,n,e[n])})),wa=Di((function(t,e){Ti(e,Ra(e),t)})),Ca=Di((function(t,e,n,r){Ti(e,Ra(e),t,r)})),Sa=Di((function(t,e,n,r){Ti(e,Da(e),t,r)})),Ea=ro(ar);var Oa=Qr((function(t,e){t=Pt(t);var n=-1,r=e.length,o=r>2?e[2]:i;for(o&&_o(e[0],e[1],o)&&(r=1);++n<r;)for(var s=e[n],a=Ra(s),l=-1,c=a.length;++l<c;){var u=a[l],d=t[u];(d===i||Hs(d,Rt[u])&&!Bt.call(t,u))&&(t[u]=s[u])}return t})),ja=Qr((function(t){return t.push(i,to),Ee(Na,i,t)}));function Pa(t,e,n){var r=null==t?i:Sr(t,e);return r===i?n:r}function ka(t,e){return null!=t&&bo(t,e,kr)}var Ia=Hi((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Mt.call(e)),t[e]=n}),nl(ol)),Ta=Hi((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Mt.call(e)),Bt.call(t,e)?t[e].push(n):t[e]=[n]}),co),Aa=Qr(Tr);function Da(t){return qs(t)?Qn(t):Br(t)}function Ra(t){return qs(t)?Qn(t,!0):Fr(t)}var $a=Di((function(t,e,n){zr(t,e,n)})),Na=Di((function(t,e,n,r){zr(t,e,n,r)})),Ba=ro((function(t,e){var n={};if(null==t)return n;var r=!1;e=De(e,(function(e){return e=xi(e,t),r||(r=e.length>1),e})),Ti(t,oo(t),n),r&&(n=cr(n,7,eo));for(var i=e.length;i--;)pi(n,e[i]);return n}));var Fa=ro((function(t,e){return null==t?{}:function(t,e){return Gr(t,e,(function(e,n){return ka(t,n)}))}(t,e)}));function La(t,e){if(null==t)return{};var n=De(oo(t),(function(t){return[t]}));return e=co(e),Gr(t,n,(function(t,n){return e(t,n[0])}))}var Ma=Qi(Da),Za=Qi(Ra);function Ha(t){return null==t?[]:Qe(t,Da(t))}var za=Bi((function(t,e,n){return e=e.toLowerCase(),t+(n?Ua(e):e)}));function Ua(t){return Xa(xa(t).toLowerCase())}function Wa(t){return(t=xa(t))&&t.replace(_t,nn).replace(Jt,"")}var Ga=Bi((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()})),Va=Bi((function(t,e,n){return t+(n?" ":"")+e.toLowerCase()})),qa=Ni("toLowerCase");var Ka=Bi((function(t,e,n){return t+(n?"_":"")+e.toLowerCase()}));var Ya=Bi((function(t,e,n){return t+(n?" ":"")+Xa(e)}));var Qa=Bi((function(t,e,n){return t+(n?" ":"")+e.toUpperCase()})),Xa=Ni("toUpperCase");function Ja(t,e,n){return t=xa(t),(e=n?i:e)===i?function(t){return re.test(t)}(t)?function(t){return t.match(ee)||[]}(t):function(t){return t.match(pt)||[]}(t):t.match(e)||[]}var tl=Qr((function(t,e){try{return Ee(t,i,e)}catch(t){return Xs(t)?t:new Et(t)}})),el=ro((function(t,e){return je(e,(function(e){e=Lo(e),sr(t,e,Ts(t[e],t))})),t}));function nl(t){return function(){return t}}var rl=Mi(),il=Mi(!0);function ol(t){return t}function sl(t){return Nr("function"==typeof t?t:cr(t,1))}var al=Qr((function(t,e){return function(n){return Tr(n,t,e)}})),ll=Qr((function(t,e){return function(n){return Tr(t,n,e)}}));function cl(t,e,n){var r=Da(e),i=Cr(e,r);null!=n||na(e)&&(i.length||!r.length)||(n=e,e=t,t=this,i=Cr(e,Da(e)));var o=!(na(n)&&"chain"in n&&!n.chain),s=Js(t);return je(i,(function(n){var r=e[n];t[n]=r,s&&(t.prototype[n]=function(){var e=this.__chain__;if(o||e){var n=t(this.__wrapped__),i=n.__actions__=Ii(this.__actions__);return i.push({func:r,args:arguments,thisArg:t}),n.__chain__=e,n}return r.apply(t,Re([this.value()],arguments))})})),t}function ul(){}var dl=Ui(De),pl=Ui(ke),hl=Ui(Be);function fl(t){return wo(t)?We(Lo(t)):function(t){return function(e){return Sr(e,t)}}(t)}var gl=Gi(),vl=Gi(!0);function bl(){return[]}function ml(){return!1}var yl=zi((function(t,e){return t+e}),0),xl=Ki("ceil"),_l=zi((function(t,e){return t/e}),1),wl=Ki("floor");var Cl,Sl=zi((function(t,e){return t*e}),1),El=Ki("round"),Ol=zi((function(t,e){return t-e}),0);return Zn.after=function(t,e){if("function"!=typeof e)throw new Tt(o);return t=va(t),function(){if(--t<1)return e.apply(this,arguments)}},Zn.ary=ks,Zn.assign=_a,Zn.assignIn=wa,Zn.assignInWith=Ca,Zn.assignWith=Sa,Zn.at=Ea,Zn.before=Is,Zn.bind=Ts,Zn.bindAll=el,Zn.bindKey=As,Zn.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Gs(t)?t:[t]},Zn.chain=fs,Zn.chunk=function(t,e,n){e=(n?_o(t,e,n):e===i)?1:yn(va(e),0);var o=null==t?0:t.length;if(!o||e<1)return[];for(var s=0,a=0,l=r(be(o/e));s<o;)l[a++]=ii(t,s,s+=e);return l},Zn.compact=function(t){for(var e=-1,n=null==t?0:t.length,r=0,i=[];++e<n;){var o=t[e];o&&(i[r++]=o)}return i},Zn.concat=function(){var t=arguments.length;if(!t)return[];for(var e=r(t-1),n=arguments[0],i=t;i--;)e[i-1]=arguments[i];return Re(Gs(n)?Ii(n):[n],mr(e,1))},Zn.cond=function(t){var e=null==t?0:t.length,n=co();return t=e?De(t,(function(t){if("function"!=typeof t[1])throw new Tt(o);return[n(t[0]),t[1]]})):[],Qr((function(n){for(var r=-1;++r<e;){var i=t[r];if(Ee(i[0],this,n))return Ee(i[1],this,n)}}))},Zn.conforms=function(t){return function(t){var e=Da(t);return function(n){return ur(n,t,e)}}(cr(t,1))},Zn.constant=nl,Zn.countBy=bs,Zn.create=function(t,e){var n=Hn(t);return null==e?n:or(n,e)},Zn.curry=function t(e,n,r){var o=Xi(e,8,i,i,i,i,i,n=r?i:n);return o.placeholder=t.placeholder,o},Zn.curryRight=function t(e,n,r){var o=Xi(e,l,i,i,i,i,i,n=r?i:n);return o.placeholder=t.placeholder,o},Zn.debounce=Ds,Zn.defaults=Oa,Zn.defaultsDeep=ja,Zn.defer=Rs,Zn.delay=$s,Zn.difference=Ho,Zn.differenceBy=zo,Zn.differenceWith=Uo,Zn.drop=function(t,e,n){var r=null==t?0:t.length;return r?ii(t,(e=n||e===i?1:va(e))<0?0:e,r):[]},Zn.dropRight=function(t,e,n){var r=null==t?0:t.length;return r?ii(t,0,(e=r-(e=n||e===i?1:va(e)))<0?0:e):[]},Zn.dropRightWhile=function(t,e){return t&&t.length?fi(t,co(e,3),!0,!0):[]},Zn.dropWhile=function(t,e){return t&&t.length?fi(t,co(e,3),!0):[]},Zn.fill=function(t,e,n,r){var o=null==t?0:t.length;return o?(n&&"number"!=typeof n&&_o(t,e,n)&&(n=0,r=o),function(t,e,n,r){var o=t.length;for((n=va(n))<0&&(n=-n>o?0:o+n),(r=r===i||r>o?o:va(r))<0&&(r+=o),r=n>r?0:ba(r);n<r;)t[n++]=e;return t}(t,e,n,r)):[]},Zn.filter=function(t,e){return(Gs(t)?Ie:br)(t,co(e,3))},Zn.flatMap=function(t,e){return mr(Es(t,e),1)},Zn.flatMapDeep=function(t,e){return mr(Es(t,e),h)},Zn.flatMapDepth=function(t,e,n){return n=n===i?1:va(n),mr(Es(t,e),n)},Zn.flatten=Vo,Zn.flattenDeep=function(t){return(null==t?0:t.length)?mr(t,h):[]},Zn.flattenDepth=function(t,e){return(null==t?0:t.length)?mr(t,e=e===i?1:va(e)):[]},Zn.flip=function(t){return Xi(t,512)},Zn.flow=rl,Zn.flowRight=il,Zn.fromPairs=function(t){for(var e=-1,n=null==t?0:t.length,r={};++e<n;){var i=t[e];r[i[0]]=i[1]}return r},Zn.functions=function(t){return null==t?[]:Cr(t,Da(t))},Zn.functionsIn=function(t){return null==t?[]:Cr(t,Ra(t))},Zn.groupBy=ws,Zn.initial=function(t){return(null==t?0:t.length)?ii(t,0,-1):[]},Zn.intersection=Ko,Zn.intersectionBy=Yo,Zn.intersectionWith=Qo,Zn.invert=Ia,Zn.invertBy=Ta,Zn.invokeMap=Cs,Zn.iteratee=sl,Zn.keyBy=Ss,Zn.keys=Da,Zn.keysIn=Ra,Zn.map=Es,Zn.mapKeys=function(t,e){var n={};return e=co(e,3),_r(t,(function(t,r,i){sr(n,e(t,r,i),t)})),n},Zn.mapValues=function(t,e){var n={};return e=co(e,3),_r(t,(function(t,r,i){sr(n,r,e(t,r,i))})),n},Zn.matches=function(t){return Zr(cr(t,1))},Zn.matchesProperty=function(t,e){return Hr(t,cr(e,1))},Zn.memoize=Ns,Zn.merge=$a,Zn.mergeWith=Na,Zn.method=al,Zn.methodOf=ll,Zn.mixin=cl,Zn.negate=Bs,Zn.nthArg=function(t){return t=va(t),Qr((function(e){return Ur(e,t)}))},Zn.omit=Ba,Zn.omitBy=function(t,e){return La(t,Bs(co(e)))},Zn.once=function(t){return Is(2,t)},Zn.orderBy=function(t,e,n,r){return null==t?[]:(Gs(e)||(e=null==e?[]:[e]),Gs(n=r?i:n)||(n=null==n?[]:[n]),Wr(t,e,n))},Zn.over=dl,Zn.overArgs=Fs,Zn.overEvery=pl,Zn.overSome=hl,Zn.partial=Ls,Zn.partialRight=Ms,Zn.partition=Os,Zn.pick=Fa,Zn.pickBy=La,Zn.property=fl,Zn.propertyOf=function(t){return function(e){return null==t?i:Sr(t,e)}},Zn.pull=Jo,Zn.pullAll=ts,Zn.pullAllBy=function(t,e,n){return t&&t.length&&e&&e.length?Vr(t,e,co(n,2)):t},Zn.pullAllWith=function(t,e,n){return t&&t.length&&e&&e.length?Vr(t,e,i,n):t},Zn.pullAt=es,Zn.range=gl,Zn.rangeRight=vl,Zn.rearg=Zs,Zn.reject=function(t,e){return(Gs(t)?Ie:br)(t,Bs(co(e,3)))},Zn.remove=function(t,e){var n=[];if(!t||!t.length)return n;var r=-1,i=[],o=t.length;for(e=co(e,3);++r<o;){var s=t[r];e(s,r,t)&&(n.push(s),i.push(r))}return qr(t,i),n},Zn.rest=function(t,e){if("function"!=typeof t)throw new Tt(o);return Qr(t,e=e===i?e:va(e))},Zn.reverse=ns,Zn.sampleSize=function(t,e,n){return e=(n?_o(t,e,n):e===i)?1:va(e),(Gs(t)?Jn:Jr)(t,e)},Zn.set=function(t,e,n){return null==t?t:ti(t,e,n)},Zn.setWith=function(t,e,n,r){return r="function"==typeof r?r:i,null==t?t:ti(t,e,n,r)},Zn.shuffle=function(t){return(Gs(t)?tr:ri)(t)},Zn.slice=function(t,e,n){var r=null==t?0:t.length;return r?(n&&"number"!=typeof n&&_o(t,e,n)?(e=0,n=r):(e=null==e?0:va(e),n=n===i?r:va(n)),ii(t,e,n)):[]},Zn.sortBy=js,Zn.sortedUniq=function(t){return t&&t.length?li(t):[]},Zn.sortedUniqBy=function(t,e){return t&&t.length?li(t,co(e,2)):[]},Zn.split=function(t,e,n){return n&&"number"!=typeof n&&_o(t,e,n)&&(e=n=i),(n=n===i?v:n>>>0)?(t=xa(t))&&("string"==typeof e||null!=e&&!aa(e))&&!(e=ui(e))&&sn(t)?wi(hn(t),0,n):t.split(e,n):[]},Zn.spread=function(t,e){if("function"!=typeof t)throw new Tt(o);return e=null==e?0:yn(va(e),0),Qr((function(n){var r=n[e],i=wi(n,0,e);return r&&Re(i,r),Ee(t,this,i)}))},Zn.tail=function(t){var e=null==t?0:t.length;return e?ii(t,1,e):[]},Zn.take=function(t,e,n){return t&&t.length?ii(t,0,(e=n||e===i?1:va(e))<0?0:e):[]},Zn.takeRight=function(t,e,n){var r=null==t?0:t.length;return r?ii(t,(e=r-(e=n||e===i?1:va(e)))<0?0:e,r):[]},Zn.takeRightWhile=function(t,e){return t&&t.length?fi(t,co(e,3),!1,!0):[]},Zn.takeWhile=function(t,e){return t&&t.length?fi(t,co(e,3)):[]},Zn.tap=function(t,e){return e(t),t},Zn.throttle=function(t,e,n){var r=!0,i=!0;if("function"!=typeof t)throw new Tt(o);return na(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Ds(t,e,{leading:r,maxWait:e,trailing:i})},Zn.thru=gs,Zn.toArray=fa,Zn.toPairs=Ma,Zn.toPairsIn=Za,Zn.toPath=function(t){return Gs(t)?De(t,Lo):ua(t)?[t]:Ii(Fo(xa(t)))},Zn.toPlainObject=ya,Zn.transform=function(t,e,n){var r=Gs(t),i=r||Ys(t)||da(t);if(e=co(e,4),null==n){var o=t&&t.constructor;n=i?r?new o:[]:na(t)&&Js(o)?Hn(qt(t)):{}}return(i?je:_r)(t,(function(t,r,i){return e(n,t,r,i)})),n},Zn.unary=function(t){return ks(t,1)},Zn.union=rs,Zn.unionBy=is,Zn.unionWith=os,Zn.uniq=function(t){return t&&t.length?di(t):[]},Zn.uniqBy=function(t,e){return t&&t.length?di(t,co(e,2)):[]},Zn.uniqWith=function(t,e){return e="function"==typeof e?e:i,t&&t.length?di(t,i,e):[]},Zn.unset=function(t,e){return null==t||pi(t,e)},Zn.unzip=ss,Zn.unzipWith=as,Zn.update=function(t,e,n){return null==t?t:hi(t,e,yi(n))},Zn.updateWith=function(t,e,n,r){return r="function"==typeof r?r:i,null==t?t:hi(t,e,yi(n),r)},Zn.values=Ha,Zn.valuesIn=function(t){return null==t?[]:Qe(t,Ra(t))},Zn.without=ls,Zn.words=Ja,Zn.wrap=function(t,e){return Ls(yi(e),t)},Zn.xor=cs,Zn.xorBy=us,Zn.xorWith=ds,Zn.zip=ps,Zn.zipObject=function(t,e){return bi(t||[],e||[],nr)},Zn.zipObjectDeep=function(t,e){return bi(t||[],e||[],ti)},Zn.zipWith=hs,Zn.entries=Ma,Zn.entriesIn=Za,Zn.extend=wa,Zn.extendWith=Ca,cl(Zn,Zn),Zn.add=yl,Zn.attempt=tl,Zn.camelCase=za,Zn.capitalize=Ua,Zn.ceil=xl,Zn.clamp=function(t,e,n){return n===i&&(n=e,e=i),n!==i&&(n=(n=ma(n))==n?n:0),e!==i&&(e=(e=ma(e))==e?e:0),lr(ma(t),e,n)},Zn.clone=function(t){return cr(t,4)},Zn.cloneDeep=function(t){return cr(t,5)},Zn.cloneDeepWith=function(t,e){return cr(t,5,e="function"==typeof e?e:i)},Zn.cloneWith=function(t,e){return cr(t,4,e="function"==typeof e?e:i)},Zn.conformsTo=function(t,e){return null==e||ur(t,e,Da(e))},Zn.deburr=Wa,Zn.defaultTo=function(t,e){return null==t||t!=t?e:t},Zn.divide=_l,Zn.endsWith=function(t,e,n){t=xa(t),e=ui(e);var r=t.length,o=n=n===i?r:lr(va(n),0,r);return(n-=e.length)>=0&&t.slice(n,o)==e},Zn.eq=Hs,Zn.escape=function(t){return(t=xa(t))&&Q.test(t)?t.replace(K,rn):t},Zn.escapeRegExp=function(t){return(t=xa(t))&&ot.test(t)?t.replace(it,"\\$&"):t},Zn.every=function(t,e,n){var r=Gs(t)?ke:gr;return n&&_o(t,e,n)&&(e=i),r(t,co(e,3))},Zn.find=ms,Zn.findIndex=Wo,Zn.findKey=function(t,e){return Le(t,co(e,3),_r)},Zn.findLast=ys,Zn.findLastIndex=Go,Zn.findLastKey=function(t,e){return Le(t,co(e,3),wr)},Zn.floor=wl,Zn.forEach=xs,Zn.forEachRight=_s,Zn.forIn=function(t,e){return null==t?t:yr(t,co(e,3),Ra)},Zn.forInRight=function(t,e){return null==t?t:xr(t,co(e,3),Ra)},Zn.forOwn=function(t,e){return t&&_r(t,co(e,3))},Zn.forOwnRight=function(t,e){return t&&wr(t,co(e,3))},Zn.get=Pa,Zn.gt=zs,Zn.gte=Us,Zn.has=function(t,e){return null!=t&&bo(t,e,Pr)},Zn.hasIn=ka,Zn.head=qo,Zn.identity=ol,Zn.includes=function(t,e,n,r){t=qs(t)?t:Ha(t),n=n&&!r?va(n):0;var i=t.length;return n<0&&(n=yn(i+n,0)),ca(t)?n<=i&&t.indexOf(e,n)>-1:!!i&&Ze(t,e,n)>-1},Zn.indexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:va(n);return i<0&&(i=yn(r+i,0)),Ze(t,e,i)},Zn.inRange=function(t,e,n){return e=ga(e),n===i?(n=e,e=0):n=ga(n),function(t,e,n){return t>=xn(e,n)&&t<yn(e,n)}(t=ma(t),e,n)},Zn.invoke=Aa,Zn.isArguments=Ws,Zn.isArray=Gs,Zn.isArrayBuffer=Vs,Zn.isArrayLike=qs,Zn.isArrayLikeObject=Ks,Zn.isBoolean=function(t){return!0===t||!1===t||ra(t)&&Or(t)==x},Zn.isBuffer=Ys,Zn.isDate=Qs,Zn.isElement=function(t){return ra(t)&&1===t.nodeType&&!sa(t)},Zn.isEmpty=function(t){if(null==t)return!0;if(qs(t)&&(Gs(t)||"string"==typeof t||"function"==typeof t.splice||Ys(t)||da(t)||Ws(t)))return!t.length;var e=vo(t);if(e==E||e==I)return!t.size;if(Eo(t))return!Br(t).length;for(var n in t)if(Bt.call(t,n))return!1;return!0},Zn.isEqual=function(t,e){return Dr(t,e)},Zn.isEqualWith=function(t,e,n){var r=(n="function"==typeof n?n:i)?n(t,e):i;return r===i?Dr(t,e,i,n):!!r},Zn.isError=Xs,Zn.isFinite=function(t){return"number"==typeof t&&vn(t)},Zn.isFunction=Js,Zn.isInteger=ta,Zn.isLength=ea,Zn.isMap=ia,Zn.isMatch=function(t,e){return t===e||Rr(t,e,po(e))},Zn.isMatchWith=function(t,e,n){return n="function"==typeof n?n:i,Rr(t,e,po(e),n)},Zn.isNaN=function(t){return oa(t)&&t!=+t},Zn.isNative=function(t){if(So(t))throw new Et("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return $r(t)},Zn.isNil=function(t){return null==t},Zn.isNull=function(t){return null===t},Zn.isNumber=oa,Zn.isObject=na,Zn.isObjectLike=ra,Zn.isPlainObject=sa,Zn.isRegExp=aa,Zn.isSafeInteger=function(t){return ta(t)&&t>=-9007199254740991&&t<=f},Zn.isSet=la,Zn.isString=ca,Zn.isSymbol=ua,Zn.isTypedArray=da,Zn.isUndefined=function(t){return t===i},Zn.isWeakMap=function(t){return ra(t)&&vo(t)==D},Zn.isWeakSet=function(t){return ra(t)&&"[object WeakSet]"==Or(t)},Zn.join=function(t,e){return null==t?"":bn.call(t,e)},Zn.kebabCase=Ga,Zn.last=Xo,Zn.lastIndexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=r;return n!==i&&(o=(o=va(n))<0?yn(r+o,0):xn(o,r-1)),e==e?function(t,e,n){for(var r=n+1;r--;)if(t[r]===e)return r;return r}(t,e,o):Me(t,ze,o,!0)},Zn.lowerCase=Va,Zn.lowerFirst=qa,Zn.lt=pa,Zn.lte=ha,Zn.max=function(t){return t&&t.length?vr(t,ol,jr):i},Zn.maxBy=function(t,e){return t&&t.length?vr(t,co(e,2),jr):i},Zn.mean=function(t){return Ue(t,ol)},Zn.meanBy=function(t,e){return Ue(t,co(e,2))},Zn.min=function(t){return t&&t.length?vr(t,ol,Lr):i},Zn.minBy=function(t,e){return t&&t.length?vr(t,co(e,2),Lr):i},Zn.stubArray=bl,Zn.stubFalse=ml,Zn.stubObject=function(){return{}},Zn.stubString=function(){return""},Zn.stubTrue=function(){return!0},Zn.multiply=Sl,Zn.nth=function(t,e){return t&&t.length?Ur(t,va(e)):i},Zn.noConflict=function(){return he._===this&&(he._=Ht),this},Zn.noop=ul,Zn.now=Ps,Zn.pad=function(t,e,n){t=xa(t);var r=(e=va(e))?pn(t):0;if(!e||r>=e)return t;var i=(e-r)/2;return Wi(me(i),n)+t+Wi(be(i),n)},Zn.padEnd=function(t,e,n){t=xa(t);var r=(e=va(e))?pn(t):0;return e&&r<e?t+Wi(e-r,n):t},Zn.padStart=function(t,e,n){t=xa(t);var r=(e=va(e))?pn(t):0;return e&&r<e?Wi(e-r,n)+t:t},Zn.parseInt=function(t,e,n){return n||null==e?e=0:e&&(e=+e),wn(xa(t).replace(at,""),e||0)},Zn.random=function(t,e,n){if(n&&"boolean"!=typeof n&&_o(t,e,n)&&(e=n=i),n===i&&("boolean"==typeof e?(n=e,e=i):"boolean"==typeof t&&(n=t,t=i)),t===i&&e===i?(t=0,e=1):(t=ga(t),e===i?(e=t,t=0):e=ga(e)),t>e){var r=t;t=e,e=r}if(n||t%1||e%1){var o=Cn();return xn(t+o*(e-t+ce("1e-"+((o+"").length-1))),e)}return Kr(t,e)},Zn.reduce=function(t,e,n){var r=Gs(t)?$e:Ve,i=arguments.length<3;return r(t,co(e,4),n,i,hr)},Zn.reduceRight=function(t,e,n){var r=Gs(t)?Ne:Ve,i=arguments.length<3;return r(t,co(e,4),n,i,fr)},Zn.repeat=function(t,e,n){return e=(n?_o(t,e,n):e===i)?1:va(e),Yr(xa(t),e)},Zn.replace=function(){var t=arguments,e=xa(t[0]);return t.length<3?e:e.replace(t[1],t[2])},Zn.result=function(t,e,n){var r=-1,o=(e=xi(e,t)).length;for(o||(o=1,t=i);++r<o;){var s=null==t?i:t[Lo(e[r])];s===i&&(r=o,s=n),t=Js(s)?s.call(t):s}return t},Zn.round=El,Zn.runInContext=t,Zn.sample=function(t){return(Gs(t)?Xn:Xr)(t)},Zn.size=function(t){if(null==t)return 0;if(qs(t))return ca(t)?pn(t):t.length;var e=vo(t);return e==E||e==I?t.size:Br(t).length},Zn.snakeCase=Ka,Zn.some=function(t,e,n){var r=Gs(t)?Be:oi;return n&&_o(t,e,n)&&(e=i),r(t,co(e,3))},Zn.sortedIndex=function(t,e){return si(t,e)},Zn.sortedIndexBy=function(t,e,n){return ai(t,e,co(n,2))},Zn.sortedIndexOf=function(t,e){var n=null==t?0:t.length;if(n){var r=si(t,e);if(r<n&&Hs(t[r],e))return r}return-1},Zn.sortedLastIndex=function(t,e){return si(t,e,!0)},Zn.sortedLastIndexBy=function(t,e,n){return ai(t,e,co(n,2),!0)},Zn.sortedLastIndexOf=function(t,e){if(null==t?0:t.length){var n=si(t,e,!0)-1;if(Hs(t[n],e))return n}return-1},Zn.startCase=Ya,Zn.startsWith=function(t,e,n){return t=xa(t),n=null==n?0:lr(va(n),0,t.length),e=ui(e),t.slice(n,n+e.length)==e},Zn.subtract=Ol,Zn.sum=function(t){return t&&t.length?qe(t,ol):0},Zn.sumBy=function(t,e){return t&&t.length?qe(t,co(e,2)):0},Zn.template=function(t,e,n){var r=Zn.templateSettings;n&&_o(t,e,n)&&(e=i),t=xa(t),e=Ca({},e,r,Ji);var o,s,a=Ca({},e.imports,r.imports,Ji),l=Da(a),c=Qe(a,l),u=0,d=e.interpolate||wt,p="__p += '",h=kt((e.escape||wt).source+"|"+d.source+"|"+(d===tt?ft:wt).source+"|"+(e.evaluate||wt).source+"|$","g"),f="//# sourceURL="+(Bt.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++oe+"]")+"\n";t.replace(h,(function(e,n,r,i,a,l){return r||(r=i),p+=t.slice(u,l).replace(Ct,on),n&&(o=!0,p+="' +\n__e("+n+") +\n'"),a&&(s=!0,p+="';\n"+a+";\n__p += '"),r&&(p+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),u=l+e.length,e})),p+="';\n";var g=Bt.call(e,"variable")&&e.variable;g||(p="with (obj) {\n"+p+"\n}\n"),p=(s?p.replace(W,""):p).replace(G,"$1").replace(V,"$1;"),p="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var v=tl((function(){return Ot(l,f+"return "+p).apply(i,c)}));if(v.source=p,Xs(v))throw v;return v},Zn.times=function(t,e){if((t=va(t))<1||t>f)return[];var n=v,r=xn(t,v);e=co(e),t-=v;for(var i=Ke(r,e);++n<t;)e(n);return i},Zn.toFinite=ga,Zn.toInteger=va,Zn.toLength=ba,Zn.toLower=function(t){return xa(t).toLowerCase()},Zn.toNumber=ma,Zn.toSafeInteger=function(t){return t?lr(va(t),-9007199254740991,f):0===t?t:0},Zn.toString=xa,Zn.toUpper=function(t){return xa(t).toUpperCase()},Zn.trim=function(t,e,n){if((t=xa(t))&&(n||e===i))return t.replace(st,"");if(!t||!(e=ui(e)))return t;var r=hn(t),o=hn(e);return wi(r,Je(r,o),tn(r,o)+1).join("")},Zn.trimEnd=function(t,e,n){if((t=xa(t))&&(n||e===i))return t.replace(lt,"");if(!t||!(e=ui(e)))return t;var r=hn(t);return wi(r,0,tn(r,hn(e))+1).join("")},Zn.trimStart=function(t,e,n){if((t=xa(t))&&(n||e===i))return t.replace(at,"");if(!t||!(e=ui(e)))return t;var r=hn(t);return wi(r,Je(r,hn(e))).join("")},Zn.truncate=function(t,e){var n=30,r="...";if(na(e)){var o="separator"in e?e.separator:o;n="length"in e?va(e.length):n,r="omission"in e?ui(e.omission):r}var s=(t=xa(t)).length;if(sn(t)){var a=hn(t);s=a.length}if(n>=s)return t;var l=n-pn(r);if(l<1)return r;var c=a?wi(a,0,l).join(""):t.slice(0,l);if(o===i)return c+r;if(a&&(l+=c.length-l),aa(o)){if(t.slice(l).search(o)){var u,d=c;for(o.global||(o=kt(o.source,xa(gt.exec(o))+"g")),o.lastIndex=0;u=o.exec(d);)var p=u.index;c=c.slice(0,p===i?l:p)}}else if(t.indexOf(ui(o),l)!=l){var h=c.lastIndexOf(o);h>-1&&(c=c.slice(0,h))}return c+r},Zn.unescape=function(t){return(t=xa(t))&&Y.test(t)?t.replace(q,fn):t},Zn.uniqueId=function(t){var e=++Ft;return xa(t)+e},Zn.upperCase=Qa,Zn.upperFirst=Xa,Zn.each=xs,Zn.eachRight=_s,Zn.first=qo,cl(Zn,(Cl={},_r(Zn,(function(t,e){Bt.call(Zn.prototype,e)||(Cl[e]=t)})),Cl),{chain:!1}),Zn.VERSION="4.17.19",je(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){Zn[t].placeholder=Zn})),je(["drop","take"],(function(t,e){Wn.prototype[t]=function(n){n=n===i?1:yn(va(n),0);var r=this.__filtered__&&!e?new Wn(this):this.clone();return r.__filtered__?r.__takeCount__=xn(n,r.__takeCount__):r.__views__.push({size:xn(n,v),type:t+(r.__dir__<0?"Right":"")}),r},Wn.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),je(["filter","map","takeWhile"],(function(t,e){var n=e+1,r=1==n||3==n;Wn.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:co(t,3),type:n}),e.__filtered__=e.__filtered__||r,e}})),je(["head","last"],(function(t,e){var n="take"+(e?"Right":"");Wn.prototype[t]=function(){return this[n](1).value()[0]}})),je(["initial","tail"],(function(t,e){var n="drop"+(e?"":"Right");Wn.prototype[t]=function(){return this.__filtered__?new Wn(this):this[n](1)}})),Wn.prototype.compact=function(){return this.filter(ol)},Wn.prototype.find=function(t){return this.filter(t).head()},Wn.prototype.findLast=function(t){return this.reverse().find(t)},Wn.prototype.invokeMap=Qr((function(t,e){return"function"==typeof t?new Wn(this):this.map((function(n){return Tr(n,t,e)}))})),Wn.prototype.reject=function(t){return this.filter(Bs(co(t)))},Wn.prototype.slice=function(t,e){t=va(t);var n=this;return n.__filtered__&&(t>0||e<0)?new Wn(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==i&&(n=(e=va(e))<0?n.dropRight(-e):n.take(e-t)),n)},Wn.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Wn.prototype.toArray=function(){return this.take(v)},_r(Wn.prototype,(function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),o=Zn[r?"take"+("last"==e?"Right":""):e],s=r||/^find/.test(e);o&&(Zn.prototype[e]=function(){var e=this.__wrapped__,a=r?[1]:arguments,l=e instanceof Wn,c=a[0],u=l||Gs(e),d=function(t){var e=o.apply(Zn,Re([t],a));return r&&p?e[0]:e};u&&n&&"function"==typeof c&&1!=c.length&&(l=u=!1);var p=this.__chain__,h=!!this.__actions__.length,f=s&&!p,g=l&&!h;if(!s&&u){e=g?e:new Wn(this);var v=t.apply(e,a);return v.__actions__.push({func:gs,args:[d],thisArg:i}),new Un(v,p)}return f&&g?t.apply(this,a):(v=this.thru(d),f?r?v.value()[0]:v.value():v)})})),je(["pop","push","shift","sort","splice","unshift"],(function(t){var e=At[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);Zn.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var i=this.value();return e.apply(Gs(i)?i:[],t)}return this[n]((function(n){return e.apply(Gs(n)?n:[],t)}))}})),_r(Wn.prototype,(function(t,e){var n=Zn[e];if(n){var r=n.name+"";Bt.call(An,r)||(An[r]=[]),An[r].push({name:e,func:n})}})),An[Zi(i,2).name]=[{name:"wrapper",func:i}],Wn.prototype.clone=function(){var t=new Wn(this.__wrapped__);return t.__actions__=Ii(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Ii(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Ii(this.__views__),t},Wn.prototype.reverse=function(){if(this.__filtered__){var t=new Wn(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},Wn.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=Gs(t),r=e<0,i=n?t.length:0,o=function(t,e,n){var r=-1,i=n.length;for(;++r<i;){var o=n[r],s=o.size;switch(o.type){case"drop":t+=s;break;case"dropRight":e-=s;break;case"take":e=xn(e,t+s);break;case"takeRight":t=yn(t,e-s)}}return{start:t,end:e}}(0,i,this.__views__),s=o.start,a=o.end,l=a-s,c=r?a:s-1,u=this.__iteratees__,d=u.length,p=0,h=xn(l,this.__takeCount__);if(!n||!r&&i==l&&h==l)return gi(t,this.__actions__);var f=[];t:for(;l--&&p<h;){for(var g=-1,v=t[c+=e];++g<d;){var b=u[g],m=b.iteratee,y=b.type,x=m(v);if(2==y)v=x;else if(!x){if(1==y)continue t;break t}}f[p++]=v}return f},Zn.prototype.at=vs,Zn.prototype.chain=function(){return fs(this)},Zn.prototype.commit=function(){return new Un(this.value(),this.__chain__)},Zn.prototype.next=function(){this.__values__===i&&(this.__values__=fa(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?i:this.__values__[this.__index__++]}},Zn.prototype.plant=function(t){for(var e,n=this;n instanceof zn;){var r=Zo(n);r.__index__=0,r.__values__=i,e?o.__wrapped__=r:e=r;var o=r;n=n.__wrapped__}return o.__wrapped__=t,e},Zn.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof Wn){var e=t;return this.__actions__.length&&(e=new Wn(this)),(e=e.reverse()).__actions__.push({func:gs,args:[ns],thisArg:i}),new Un(e,this.__chain__)}return this.thru(ns)},Zn.prototype.toJSON=Zn.prototype.valueOf=Zn.prototype.value=function(){return gi(this.__wrapped__,this.__actions__)},Zn.prototype.first=Zn.prototype.head,ne&&(Zn.prototype[ne]=function(){return this}),Zn}();he._=gn,(r=function(){return gn}.call(e,n,e,t))===i||(t.exports=r)}.call(this)},21850:(t,e,n)=>{"use strict";function r(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}n.d(e,{Z:()=>i});const i=/^((20|5|88)5|22|571|908|991)$/.test(n.j)?function(t,e){var n;void 0===e&&(e=r);var i,o=[],s=!1;return function(){for(var r=[],a=0;a<arguments.length;a++)r[a]=arguments[a];return s&&n===this&&e(r,o)||(i=t.apply(this,r),s=!0,n=this,o=r),i}}:null},47905:(t,e,n)=>{"use strict";n.d(e,{Z:()=>h});var r=n(89526),i=n(66856),o=n.n(i),s=n(2652),a=n.n(s),l=n(17769),c=n.n(l),u=1073741823;function d(t){var e=[];return{on:function(t){e.push(t)},off:function(t){e=e.filter((function(e){return e!==t}))},get:function(){return t},set:function(n,r){t=n,e.forEach((function(e){return e(t,r)}))}}}var p=r.createContext||function(t,e){var n,i,s="__create-react-context-"+c()()+"__",l=function(t){function n(){var e;return(e=t.apply(this,arguments)||this).emitter=d(e.props.value),e}o()(n,t);var r=n.prototype;return r.getChildContext=function(){var t;return(t={})[s]=this.emitter,t},r.componentWillReceiveProps=function(t){if(this.props.value!==t.value){var n,r=this.props.value,i=t.value;((o=r)===(s=i)?0!==o||1/o==1/s:o!=o&&s!=s)?n=0:(n="function"==typeof e?e(r,i):u,0!==(n|=0)&&this.emitter.set(t.value,n))}var o,s},r.render=function(){return this.props.children},n}(r.Component);l.childContextTypes=((n={})[s]=a().object.isRequired,n);var p=function(e){function n(){var t;return(t=e.apply(this,arguments)||this).state={value:t.getValue()},t.onUpdate=function(e,n){0!=((0|t.observedBits)&n)&&t.setState({value:t.getValue()})},t}o()(n,e);var r=n.prototype;return r.componentWillReceiveProps=function(t){var e=t.observedBits;this.observedBits=null==e?u:e},r.componentDidMount=function(){this.context[s]&&this.context[s].on(this.onUpdate);var t=this.props.observedBits;this.observedBits=null==t?u:t},r.componentWillUnmount=function(){this.context[s]&&this.context[s].off(this.onUpdate)},r.getValue=function(){return this.context[s]?this.context[s].get():t},r.render=function(){return(t=this.props.children,Array.isArray(t)?t[0]:t)(this.state.value);var t},n}(r.Component);return p.contextTypes=((i={})[s]=a().object,i),{Provider:l,Consumer:p}};const h=/^(5(5|51|71)|9(08|37|91)|154|205|22|360|885)$/.test(n.j)?p:null},99813:t=>{"use strict"; -/* -object-assign -(c) Sindre Sorhus -@license MIT -*/var e=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function i(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(t){r[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(t,o){for(var s,a,l=i(t),c=1;c<arguments.length;c++){for(var u in s=Object(arguments[c]))n.call(s,u)&&(l[u]=s[u]);if(e){a=e(s);for(var d=0;d<a.length;d++)r.call(s,a[d])&&(l[a[d]]=s[a[d]])}}return l}},7402:t=>{"use strict";var e=function(t){return t!=t};t.exports=function(t,n){return 0===t&&0===n?1/t==1/n:t===n||!(!e(t)||!e(n))}},806:(t,e,n)=>{"use strict";var r=Object.prototype.hasOwnProperty,i=Object.prototype.toString,o=Array.prototype.slice,s=n(84418),a=Object.prototype.propertyIsEnumerable,l=!a.call({toString:null},"toString"),c=a.call((function(){}),"prototype"),u=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],d=function(t){var e=t.constructor;return e&&e.prototype===t},p={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},h=function(){if("undefined"==typeof window)return!1;for(var t in window)try{if(!p["$"+t]&&r.call(window,t)&&null!==window[t]&&"object"==typeof window[t])try{d(window[t])}catch(t){return!0}}catch(t){return!0}return!1}(),f=function(t){var e=null!==t&&"object"==typeof t,n="[object Function]"===i.call(t),o=s(t),a=e&&"[object String]"===i.call(t),p=[];if(!e&&!n&&!o)throw new TypeError("Object.keys called on a non-object");var f=c&&n;if(a&&t.length>0&&!r.call(t,0))for(var g=0;g<t.length;++g)p.push(String(g));if(o&&t.length>0)for(var v=0;v<t.length;++v)p.push(String(v));else for(var b in t)f&&"prototype"===b||!r.call(t,b)||p.push(String(b));if(l)for(var m=function(t){if("undefined"==typeof window||!h)return d(t);try{return d(t)}catch(t){return!1}}(t),y=0;y<u.length;++y)m&&"constructor"===u[y]||!r.call(t,u[y])||p.push(u[y]);return p};f.shim=function(){if(Object.keys){if(!function(){return 2===(Object.keys(arguments)||"").length}(1,2)){var t=Object.keys;Object.keys=function(e){return s(e)?t(o.call(e)):t(e)}}}else Object.keys=f;return Object.keys||f},t.exports=f},84418:t=>{"use strict";var e=Object.prototype.toString;t.exports=function(t){var n=e.call(t),r="[object Arguments]"===n;return r||(r="[object Array]"!==n&&null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Function]"===e.call(t.callee)),r}},39455:(t,e,n)=>{var r=n(87955);t.exports=h,t.exports.parse=o,t.exports.compile=function(t,e){return a(o(t,e),e)},t.exports.tokensToFunction=a,t.exports.tokensToRegExp=p;var i=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function o(t,e){for(var n,r=[],o=0,s=0,a="",u=e&&e.delimiter||"/";null!=(n=i.exec(t));){var d=n[0],p=n[1],h=n.index;if(a+=t.slice(s,h),s=h+d.length,p)a+=p[1];else{var f=t[s],g=n[2],v=n[3],b=n[4],m=n[5],y=n[6],x=n[7];a&&(r.push(a),a="");var _=null!=g&&null!=f&&f!==g,w="+"===y||"*"===y,C="?"===y||"*"===y,S=n[2]||u,E=b||m;r.push({name:v||o++,prefix:g||"",delimiter:S,optional:C,repeat:w,partial:_,asterisk:!!x,pattern:E?c(E):x?".*":"[^"+l(S)+"]+?"})}}return s<t.length&&(a+=t.substr(s)),a&&r.push(a),r}function s(t){return encodeURI(t).replace(/[\/?#]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()}))}function a(t,e){for(var n=new Array(t.length),i=0;i<t.length;i++)"object"==typeof t[i]&&(n[i]=new RegExp("^(?:"+t[i].pattern+")$",d(e)));return function(e,i){for(var o="",a=e||{},l=(i||{}).pretty?s:encodeURIComponent,c=0;c<t.length;c++){var u=t[c];if("string"!=typeof u){var d,p=a[u.name];if(null==p){if(u.optional){u.partial&&(o+=u.prefix);continue}throw new TypeError('Expected "'+u.name+'" to be defined')}if(r(p)){if(!u.repeat)throw new TypeError('Expected "'+u.name+'" to not repeat, but received `'+JSON.stringify(p)+"`");if(0===p.length){if(u.optional)continue;throw new TypeError('Expected "'+u.name+'" to not be empty')}for(var h=0;h<p.length;h++){if(d=l(p[h]),!n[c].test(d))throw new TypeError('Expected all "'+u.name+'" to match "'+u.pattern+'", but received `'+JSON.stringify(d)+"`");o+=(0===h?u.prefix:u.delimiter)+d}}else{if(d=u.asterisk?encodeURI(p).replace(/[?#]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})):l(p),!n[c].test(d))throw new TypeError('Expected "'+u.name+'" to match "'+u.pattern+'", but received "'+d+'"');o+=u.prefix+d}}else o+=u}return o}}function l(t){return t.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function c(t){return t.replace(/([=!:$\/()])/g,"\\$1")}function u(t,e){return t.keys=e,t}function d(t){return t&&t.sensitive?"":"i"}function p(t,e,n){r(e)||(n=e||n,e=[]);for(var i=(n=n||{}).strict,o=!1!==n.end,s="",a=0;a<t.length;a++){var c=t[a];if("string"==typeof c)s+=l(c);else{var p=l(c.prefix),h="(?:"+c.pattern+")";e.push(c),c.repeat&&(h+="(?:"+p+h+")*"),s+=h=c.optional?c.partial?p+"("+h+")?":"(?:"+p+"("+h+"))?":p+"("+h+")"}}var f=l(n.delimiter||"/"),g=s.slice(-f.length)===f;return i||(s=(g?s.slice(0,-f.length):s)+"(?:"+f+"(?=$))?"),s+=o?"$":i&&g?"":"(?="+f+"|$)",u(new RegExp("^"+s,d(n)),e)}function h(t,e,n){return r(e)||(n=e||n,e=[]),n=n||{},t instanceof RegExp?function(t,e){var n=t.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)e.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return u(t,e)}(t,e):r(t)?function(t,e,n){for(var r=[],i=0;i<t.length;i++)r.push(h(t[i],e,n).source);return u(new RegExp("(?:"+r.join("|")+")",d(n)),e)}(t,e,n):function(t,e,n){return p(o(t,n),e,n)}(t,e,n)}},82530:t=>{var e,n,r=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(t){if(e===setTimeout)return setTimeout(t,0);if((e===i||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(n){try{return e.call(null,t,0)}catch(n){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:i}catch(t){e=i}try{n="function"==typeof clearTimeout?clearTimeout:o}catch(t){n=o}}();var a,l=[],c=!1,u=-1;function d(){c&&a&&(c=!1,a.length?l=a.concat(l):u=-1,l.length&&p())}function p(){if(!c){var t=s(d);c=!0;for(var e=l.length;e;){for(a=l,l=[];++u<e;)a&&a[u].run();u=-1,e=l.length}a=null,c=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===o||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(t)}}function h(t,e){this.fun=t,this.array=e}function f(){}r.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];l.push(new h(t,e)),1!==l.length||c||s(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=f,r.addListener=f,r.once=f,r.off=f,r.removeListener=f,r.removeAllListeners=f,r.emit=f,r.prependListener=f,r.prependOnceListener=f,r.listeners=function(t){return[]},r.binding=function(t){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(t){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},5372:(t,e,n)=>{"use strict";var r=n(49567);function i(){}function o(){}o.resetWarningCache=i,t.exports=function(){function t(t,e,n,i,o,s){if(s!==r){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function e(){return t}t.isRequired=t;var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},2652:(t,e,n)=>{t.exports=n(5372)()},49567:t=>{"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},19060:(t,e)=>{"use strict";e.Z=function(t){var e=void 0,n=function(n,r){return function(){e=null,t.apply(n,r)}},r=function(){if(null==e){for(var t=arguments.length,r=Array(t),i=0;i<t;i++)r[i]=arguments[i];e=requestAnimationFrame(n(this,r))}};return r.cancel=function(){return cancelAnimationFrame(e)},r}},99337:(t,e,n)=>{"use strict";function r(t){return"/"===t.charAt(0)}function i(t,e){for(var n=e,r=n+1,i=t.length;r<i;n+=1,r+=1)t[n]=t[r];t.pop()}n.d(e,{Z:()=>o});const o=/^(5(5|51|71)|9(08|37|91)|154|205|22|360|885)$/.test(n.j)?function(t,e){void 0===e&&(e="");var n,o=t&&t.split("/")||[],s=e&&e.split("/")||[],a=t&&r(t),l=e&&r(e),c=a||l;if(t&&r(t)?s=o:o.length&&(s.pop(),s=s.concat(o)),!s.length)return"/";if(s.length){var u=s[s.length-1];n="."===u||".."===u||""===u}else n=!1;for(var d=0,p=s.length;p>=0;p--){var h=s[p];"."===h?i(s,p):".."===h?(i(s,p),d++):d&&(i(s,p),d--)}if(!c)for(;d--;d)s.unshift("..");!c||""===s[0]||s[0]&&r(s[0])||s.unshift("");var f=s.join("/");return n&&"/"!==f.substr(-1)&&(f+="/"),f}:null},41196:(t,e)=>{"use strict"; -/** @license React v0.19.1 - * scheduler.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var n,r,i,o,s;if("undefined"==typeof window||"function"!=typeof MessageChannel){var a=null,l=null,c=function(){if(null!==a)try{var t=e.unstable_now();a(!0,t),a=null}catch(t){throw setTimeout(c,0),t}},u=Date.now();e.unstable_now=function(){return Date.now()-u},n=function(t){null!==a?setTimeout(n,0,t):(a=t,setTimeout(c,0))},r=function(t,e){l=setTimeout(t,e)},i=function(){clearTimeout(l)},o=function(){return!1},s=e.unstable_forceFrameRate=function(){}}else{var d=window.performance,p=window.Date,h=window.setTimeout,f=window.clearTimeout;if("undefined"!=typeof console){var g=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof g&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"==typeof d&&"function"==typeof d.now)e.unstable_now=function(){return d.now()};else{var v=p.now();e.unstable_now=function(){return p.now()-v}}var b=!1,m=null,y=-1,x=5,_=0;o=function(){return e.unstable_now()>=_},s=function(){},e.unstable_forceFrameRate=function(t){0>t||125<t?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):x=0<t?Math.floor(1e3/t):5};var w=new MessageChannel,C=w.port2;w.port1.onmessage=function(){if(null!==m){var t=e.unstable_now();_=t+x;try{m(!0,t)?C.postMessage(null):(b=!1,m=null)}catch(t){throw C.postMessage(null),t}}else b=!1},n=function(t){m=t,b||(b=!0,C.postMessage(null))},r=function(t,n){y=h((function(){t(e.unstable_now())}),n)},i=function(){f(y),y=-1}}function S(t,e){var n=t.length;t.push(e);t:for(;;){var r=n-1>>>1,i=t[r];if(!(void 0!==i&&0<j(i,e)))break t;t[r]=e,t[n]=i,n=r}}function E(t){return void 0===(t=t[0])?null:t}function O(t){var e=t[0];if(void 0!==e){var n=t.pop();if(n!==e){t[0]=n;t:for(var r=0,i=t.length;r<i;){var o=2*(r+1)-1,s=t[o],a=o+1,l=t[a];if(void 0!==s&&0>j(s,n))void 0!==l&&0>j(l,s)?(t[r]=l,t[a]=n,r=a):(t[r]=s,t[o]=n,r=o);else{if(!(void 0!==l&&0>j(l,n)))break t;t[r]=l,t[a]=n,r=a}}}return e}return null}function j(t,e){var n=t.sortIndex-e.sortIndex;return 0!==n?n:t.id-e.id}var P=[],k=[],I=1,T=null,A=3,D=!1,R=!1,$=!1;function N(t){for(var e=E(k);null!==e;){if(null===e.callback)O(k);else{if(!(e.startTime<=t))break;O(k),e.sortIndex=e.expirationTime,S(P,e)}e=E(k)}}function B(t){if($=!1,N(t),!R)if(null!==E(P))R=!0,n(F);else{var e=E(k);null!==e&&r(B,e.startTime-t)}}function F(t,n){R=!1,$&&($=!1,i()),D=!0;var s=A;try{for(N(n),T=E(P);null!==T&&(!(T.expirationTime>n)||t&&!o());){var a=T.callback;if(null!==a){T.callback=null,A=T.priorityLevel;var l=a(T.expirationTime<=n);n=e.unstable_now(),"function"==typeof l?T.callback=l:T===E(P)&&O(P),N(n)}else O(P);T=E(P)}if(null!==T)var c=!0;else{var u=E(k);null!==u&&r(B,u.startTime-n),c=!1}return c}finally{T=null,A=s,D=!1}}function L(t){switch(t){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var M=s;e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(t){t.callback=null},e.unstable_continueExecution=function(){R||D||(R=!0,n(F))},e.unstable_getCurrentPriorityLevel=function(){return A},e.unstable_getFirstCallbackNode=function(){return E(P)},e.unstable_next=function(t){switch(A){case 1:case 2:case 3:var e=3;break;default:e=A}var n=A;A=e;try{return t()}finally{A=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=M,e.unstable_runWithPriority=function(t,e){switch(t){case 1:case 2:case 3:case 4:case 5:break;default:t=3}var n=A;A=t;try{return e()}finally{A=n}},e.unstable_scheduleCallback=function(t,o,s){var a=e.unstable_now();if("object"==typeof s&&null!==s){var l=s.delay;l="number"==typeof l&&0<l?a+l:a,s="number"==typeof s.timeout?s.timeout:L(t)}else s=L(t),l=a;return t={id:I++,callback:o,priorityLevel:t,startTime:l,expirationTime:s=l+s,sortIndex:-1},l>a?(t.sortIndex=l,S(k,t),null===E(P)&&t===E(k)&&($?i():$=!0,r(B,l-a))):(t.sortIndex=s,S(P,t),R||D||(R=!0,n(F))),t},e.unstable_shouldYield=function(){var t=e.unstable_now();N(t);var n=E(P);return n!==T&&null!==T&&null!==n&&null!==n.callback&&n.startTime<=t&&n.expirationTime<T.expirationTime||o()},e.unstable_wrapCallback=function(t){var e=A;return function(){var n=A;A=e;try{return t.apply(this,arguments)}finally{A=n}}}},72851:(t,e,n)=>{"use strict";t.exports=n(41196)},75701:(t,e,n)=>{"use strict";var r,i=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},o=function(){var t={};return function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}t[e]=n}return t[e]}}(),s=[];function a(t){for(var e=-1,n=0;n<s.length;n++)if(s[n].identifier===t){e=n;break}return e}function l(t,e){for(var n={},r=[],i=0;i<t.length;i++){var o=t[i],l=e.base?o[0]+e.base:o[0],c=n[l]||0,u="".concat(l," ").concat(c);n[l]=c+1;var d=a(u),p={css:o[1],media:o[2],sourceMap:o[3]};-1!==d?(s[d].references++,s[d].updater(p)):s.push({identifier:u,updater:v(p,e),references:1}),r.push(u)}return r}function c(t){var e=document.createElement("style"),r=t.attributes||{};if(void 0===r.nonce){var i=n.nc;i&&(r.nonce=i)}if(Object.keys(r).forEach((function(t){e.setAttribute(t,r[t])})),"function"==typeof t.insert)t.insert(e);else{var s=o(t.insert||"head");if(!s)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");s.appendChild(e)}return e}var u,d=(u=[],function(t,e){return u[t]=e,u.filter(Boolean).join("\n")});function p(t,e,n,r){var i=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(t.styleSheet)t.styleSheet.cssText=d(e,i);else{var o=document.createTextNode(i),s=t.childNodes;s[e]&&t.removeChild(s[e]),s.length?t.insertBefore(o,s[e]):t.appendChild(o)}}function h(t,e,n){var r=n.css,i=n.media,o=n.sourceMap;if(i?t.setAttribute("media",i):t.removeAttribute("media"),o&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleSheet)t.styleSheet.cssText=r;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(r))}}var f=null,g=0;function v(t,e){var n,r,i;if(e.singleton){var o=g++;n=f||(f=c(e)),r=p.bind(null,n,o,!1),i=p.bind(null,n,o,!0)}else n=c(e),r=h.bind(null,n,e),i=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(n)};return r(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;r(t=e)}else i()}}t.exports=function(t,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=i());var n=l(t=t||[],e);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var r=0;r<n.length;r++){var i=a(n[r]);s[i].references--}for(var o=l(t,e),c=0;c<n.length;c++){var u=a(n[c]);0===s[u].references&&(s[u].updater(),s.splice(u,1))}n=o}}}},35934:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r}),t=n.hmd(t);const r=function(t){var e,n=t.Symbol;return"function"==typeof n?n.observable?e=n.observable:(e=n("observable"),n.observable=e):e="@@observable",e}("undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:t)},78943:t=>{var e=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'],n=e.join(","),r="undefined"==typeof Element?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;function i(t,e){e=e||{};var i,s,a,u=[],d=[],p=t.querySelectorAll(n);for(e.includeContainer&&r.call(t,n)&&(p=Array.prototype.slice.apply(p)).unshift(t),i=0;i<p.length;i++)o(s=p[i])&&(0===(a=l(s))?u.push(s):d.push({documentOrder:i,tabIndex:a,node:s}));return d.sort(c).map((function(t){return t.node})).concat(u)}function o(t){return!(!s(t)||function(t){return function(t){return u(t)&&"radio"===t.type}(t)&&!function(t){if(!t.name)return!0;var e=function(t){for(var e=0;e<t.length;e++)if(t[e].checked)return t[e]}(t.ownerDocument.querySelectorAll('input[type="radio"][name="'+t.name+'"]'));return!e||e===t}(t)}(t)||l(t)<0)}function s(t){return!(t.disabled||function(t){return u(t)&&"hidden"===t.type}(t)||function(t){return null===t.offsetParent||"hidden"===getComputedStyle(t).visibility}(t))}i.isTabbable=function(t){if(!t)throw new Error("No node provided");return!1!==r.call(t,n)&&o(t)},i.isFocusable=function(t){if(!t)throw new Error("No node provided");return!1!==r.call(t,a)&&s(t)};var a=e.concat("iframe").join(",");function l(t){var e=parseInt(t.getAttribute("tabindex"),10);return isNaN(e)?function(t){return"true"===t.contentEditable}(t)?0:t.tabIndex:e}function c(t,e){return t.tabIndex===e.tabIndex?t.documentOrder-e.documentOrder:t.tabIndex-e.tabIndex}function u(t){return"INPUT"===t.tagName}t.exports=i},53499:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var r=!!/^(5(5|51|71)|9(08|37|91)|154|205|22|360|885)$/.test(n.j)||null,i="Invariant failed";const o=/^(5(5|51|71)|9(08|37|91)|154|205|22|360|885)$/.test(n.j)?function(t,e){if(!t){if(r)throw new Error(i);throw new Error(i+": "+(e||""))}}:null},33940:(t,e,n)=>{"use strict";n.d(e,{gn:()=>r});function r(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s}},79397:t=>{t.exports=function(t){return t&&"object"==typeof t&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}},64489:(t,e,n)=>{"use strict";var r=n(77092),i=n(97427),o=n(54010),s=n(82527);function a(t){return t.call.bind(t)}var l="undefined"!=typeof BigInt,c="undefined"!=typeof Symbol,u=a(Object.prototype.toString),d=a(Number.prototype.valueOf),p=a(String.prototype.valueOf),h=a(Boolean.prototype.valueOf);if(l)var f=a(BigInt.prototype.valueOf);if(c)var g=a(Symbol.prototype.valueOf);function v(t,e){if("object"!=typeof t)return!1;try{return e(t),!0}catch(t){return!1}}function b(t){return"[object Map]"===u(t)}function m(t){return"[object Set]"===u(t)}function y(t){return"[object WeakMap]"===u(t)}function x(t){return"[object WeakSet]"===u(t)}function _(t){return"[object ArrayBuffer]"===u(t)}function w(t){return"undefined"!=typeof ArrayBuffer&&(_.working?_(t):t instanceof ArrayBuffer)}function C(t){return"[object DataView]"===u(t)}function S(t){return"undefined"!=typeof DataView&&(C.working?C(t):t instanceof DataView)}function E(t){return"[object SharedArrayBuffer]"===u(t)}function O(t){return"undefined"!=typeof SharedArrayBuffer&&(E.working?E(t):t instanceof SharedArrayBuffer)}function j(t){return v(t,d)}function P(t){return v(t,p)}function k(t){return v(t,h)}function I(t){return l&&v(t,f)}function T(t){return c&&v(t,g)}e.isArgumentsObject=r,e.isGeneratorFunction=i,e.isTypedArray=s,e.isPromise=function(t){return"undefined"!=typeof Promise&&t instanceof Promise||null!==t&&"object"==typeof t&&"function"==typeof t.then&&"function"==typeof t.catch},e.isArrayBufferView=function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):s(t)||S(t)},e.isUint8Array=function(t){return"Uint8Array"===o(t)},e.isUint8ClampedArray=function(t){return"Uint8ClampedArray"===o(t)},e.isUint16Array=function(t){return"Uint16Array"===o(t)},e.isUint32Array=function(t){return"Uint32Array"===o(t)},e.isInt8Array=function(t){return"Int8Array"===o(t)},e.isInt16Array=function(t){return"Int16Array"===o(t)},e.isInt32Array=function(t){return"Int32Array"===o(t)},e.isFloat32Array=function(t){return"Float32Array"===o(t)},e.isFloat64Array=function(t){return"Float64Array"===o(t)},e.isBigInt64Array=function(t){return"BigInt64Array"===o(t)},e.isBigUint64Array=function(t){return"BigUint64Array"===o(t)},b.working="undefined"!=typeof Map&&b(new Map),e.isMap=function(t){return"undefined"!=typeof Map&&(b.working?b(t):t instanceof Map)},m.working="undefined"!=typeof Set&&m(new Set),e.isSet=function(t){return"undefined"!=typeof Set&&(m.working?m(t):t instanceof Set)},y.working="undefined"!=typeof WeakMap&&y(new WeakMap),e.isWeakMap=function(t){return"undefined"!=typeof WeakMap&&(y.working?y(t):t instanceof WeakMap)},x.working="undefined"!=typeof WeakSet&&x(new WeakSet),e.isWeakSet=function(t){return x(t)},_.working="undefined"!=typeof ArrayBuffer&&_(new ArrayBuffer),e.isArrayBuffer=w,C.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&C(new DataView(new ArrayBuffer(1),0,1)),e.isDataView=S,E.working="undefined"!=typeof SharedArrayBuffer&&E(new SharedArrayBuffer),e.isSharedArrayBuffer=O,e.isAsyncFunction=function(t){return"[object AsyncFunction]"===u(t)},e.isMapIterator=function(t){return"[object Map Iterator]"===u(t)},e.isSetIterator=function(t){return"[object Set Iterator]"===u(t)},e.isGeneratorObject=function(t){return"[object Generator]"===u(t)},e.isWebAssemblyCompiledModule=function(t){return"[object WebAssembly.Module]"===u(t)},e.isNumberObject=j,e.isStringObject=P,e.isBooleanObject=k,e.isBigIntObject=I,e.isSymbolObject=T,e.isBoxedPrimitive=function(t){return j(t)||P(t)||k(t)||I(t)||T(t)},e.isAnyArrayBuffer=function(t){return"undefined"!=typeof Uint8Array&&(w(t)||O(t))},["isProxy","isExternal","isModuleNamespaceObject"].forEach((function(t){Object.defineProperty(e,t,{enumerable:!1,value:function(){throw new Error(t+" is not supported in userland")}})}))},85663:(t,e,n)=>{var r=n(82530),i=Object.getOwnPropertyDescriptors||function(t){for(var e=Object.keys(t),n={},r=0;r<e.length;r++)n[e[r]]=Object.getOwnPropertyDescriptor(t,e[r]);return n},o=/%[sdj%]/g;e.format=function(t){if(!y(t)){for(var e=[],n=0;n<arguments.length;n++)e.push(c(arguments[n]));return e.join(" ")}n=1;for(var r=arguments,i=r.length,s=String(t).replace(o,(function(t){if("%%"===t)return"%";if(n>=i)return t;switch(t){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(t){return"[Circular]"}default:return t}})),a=r[n];n<i;a=r[++n])b(a)||!w(a)?s+=" "+a:s+=" "+c(a);return s},e.deprecate=function(t,n){if(void 0!==r&&!0===r.noDeprecation)return t;if(void 0===r)return function(){return e.deprecate(t,n).apply(this,arguments)};var i=!1;return function(){if(!i){if(r.throwDeprecation)throw new Error(n);r.traceDeprecation?console.trace(n):console.error(n),i=!0}return t.apply(this,arguments)}};var s={},a=/^$/;if(r.env.NODE_DEBUG){var l=r.env.NODE_DEBUG;l=l.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),a=new RegExp("^"+l+"$","i")}function c(t,n){var r={seen:[],stylize:d};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),v(n)?r.showHidden=n:n&&e._extend(r,n),x(r.showHidden)&&(r.showHidden=!1),x(r.depth)&&(r.depth=2),x(r.colors)&&(r.colors=!1),x(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=u),p(r,t,r.depth)}function u(t,e){var n=c.styles[e];return n?"["+c.colors[n][0]+"m"+t+"["+c.colors[n][1]+"m":t}function d(t,e){return t}function p(t,n,r){if(t.customInspect&&n&&E(n.inspect)&&n.inspect!==e.inspect&&(!n.constructor||n.constructor.prototype!==n)){var i=n.inspect(r,t);return y(i)||(i=p(t,i,r)),i}var o=function(t,e){if(x(e))return t.stylize("undefined","undefined");if(y(e)){var n="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(n,"string")}if(m(e))return t.stylize(""+e,"number");if(v(e))return t.stylize(""+e,"boolean");if(b(e))return t.stylize("null","null")}(t,n);if(o)return o;var s=Object.keys(n),a=function(t){var e={};return t.forEach((function(t,n){e[t]=!0})),e}(s);if(t.showHidden&&(s=Object.getOwnPropertyNames(n)),S(n)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return h(n);if(0===s.length){if(E(n)){var l=n.name?": "+n.name:"";return t.stylize("[Function"+l+"]","special")}if(_(n))return t.stylize(RegExp.prototype.toString.call(n),"regexp");if(C(n))return t.stylize(Date.prototype.toString.call(n),"date");if(S(n))return h(n)}var c,u="",d=!1,w=["{","}"];(g(n)&&(d=!0,w=["[","]"]),E(n))&&(u=" [Function"+(n.name?": "+n.name:"")+"]");return _(n)&&(u=" "+RegExp.prototype.toString.call(n)),C(n)&&(u=" "+Date.prototype.toUTCString.call(n)),S(n)&&(u=" "+h(n)),0!==s.length||d&&0!=n.length?r<0?_(n)?t.stylize(RegExp.prototype.toString.call(n),"regexp"):t.stylize("[Object]","special"):(t.seen.push(n),c=d?function(t,e,n,r,i){for(var o=[],s=0,a=e.length;s<a;++s)I(e,String(s))?o.push(f(t,e,n,r,String(s),!0)):o.push("");return i.forEach((function(i){i.match(/^\d+$/)||o.push(f(t,e,n,r,i,!0))})),o}(t,n,r,a,s):s.map((function(e){return f(t,n,r,a,e,d)})),t.seen.pop(),function(t,e,n){if(t.reduce((function(t,e){return e.indexOf("\n")>=0&&0,t+e.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60)return n[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+n[1];return n[0]+e+" "+t.join(", ")+" "+n[1]}(c,u,w)):w[0]+u+w[1]}function h(t){return"["+Error.prototype.toString.call(t)+"]"}function f(t,e,n,r,i,o){var s,a,l;if((l=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]}).get?a=l.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):l.set&&(a=t.stylize("[Setter]","special")),I(r,i)||(s="["+i+"]"),a||(t.seen.indexOf(l.value)<0?(a=b(n)?p(t,l.value,null):p(t,l.value,n-1)).indexOf("\n")>-1&&(a=o?a.split("\n").map((function(t){return" "+t})).join("\n").substr(2):"\n"+a.split("\n").map((function(t){return" "+t})).join("\n")):a=t.stylize("[Circular]","special")),x(s)){if(o&&i.match(/^\d+$/))return a;(s=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=t.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=t.stylize(s,"string"))}return s+": "+a}function g(t){return Array.isArray(t)}function v(t){return"boolean"==typeof t}function b(t){return null===t}function m(t){return"number"==typeof t}function y(t){return"string"==typeof t}function x(t){return void 0===t}function _(t){return w(t)&&"[object RegExp]"===O(t)}function w(t){return"object"==typeof t&&null!==t}function C(t){return w(t)&&"[object Date]"===O(t)}function S(t){return w(t)&&("[object Error]"===O(t)||t instanceof Error)}function E(t){return"function"==typeof t}function O(t){return Object.prototype.toString.call(t)}function j(t){return t<10?"0"+t.toString(10):t.toString(10)}e.debuglog=function(t){if(t=t.toUpperCase(),!s[t])if(a.test(t)){var n=r.pid;s[t]=function(){var r=e.format.apply(e,arguments);console.error("%s %d: %s",t,n,r)}}else s[t]=function(){};return s[t]},e.inspect=c,c.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},c.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.types=n(64489),e.isArray=g,e.isBoolean=v,e.isNull=b,e.isNullOrUndefined=function(t){return null==t},e.isNumber=m,e.isString=y,e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=x,e.isRegExp=_,e.types.isRegExp=_,e.isObject=w,e.isDate=C,e.types.isDate=C,e.isError=S,e.types.isNativeError=S,e.isFunction=E,e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},e.isBuffer=n(79397);var P=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function k(){var t=new Date,e=[j(t.getHours()),j(t.getMinutes()),j(t.getSeconds())].join(":");return[t.getDate(),P[t.getMonth()],e].join(" ")}function I(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){console.log("%s - %s",k(),e.format.apply(e,arguments))},e.inherits=n(48575),e._extend=function(t,e){if(!e||!w(e))return t;for(var n=Object.keys(e),r=n.length;r--;)t[n[r]]=e[n[r]];return t};var T="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function A(t,e){if(!t){var n=new Error("Promise was rejected with a falsy value");n.reason=t,t=n}return e(t)}e.promisify=function(t){if("function"!=typeof t)throw new TypeError('The "original" argument must be of type Function');if(T&&t[T]){var e;if("function"!=typeof(e=t[T]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(e,T,{value:e,enumerable:!1,writable:!1,configurable:!0}),e}function e(){for(var e,n,r=new Promise((function(t,r){e=t,n=r})),i=[],o=0;o<arguments.length;o++)i.push(arguments[o]);i.push((function(t,r){t?n(t):e(r)}));try{t.apply(this,i)}catch(t){n(t)}return r}return Object.setPrototypeOf(e,Object.getPrototypeOf(t)),T&&Object.defineProperty(e,T,{value:e,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(e,i(t))},e.promisify.custom=T,e.callbackify=function(t){if("function"!=typeof t)throw new TypeError('The "original" argument must be of type Function');function e(){for(var e=[],n=0;n<arguments.length;n++)e.push(arguments[n]);var i=e.pop();if("function"!=typeof i)throw new TypeError("The last argument must be of type Function");var o=this,s=function(){return i.apply(o,arguments)};t.apply(this,e).then((function(t){r.nextTick(s.bind(null,null,t))}),(function(t){r.nextTick(A.bind(null,t,s))}))}return Object.setPrototypeOf(e,Object.getPrototypeOf(t)),Object.defineProperties(e,i(t)),e}},56233:(t,e,n)=>{"use strict";function r(t){return t.valueOf?t.valueOf():Object.prototype.valueOf.call(t)}n.d(e,{Z:()=>i});const i=/^(5(5|51|71)|9(08|37|91)|205|22|885)$/.test(n.j)?function t(e,n){if(e===n)return!0;if(null==e||null==n)return!1;if(Array.isArray(e))return Array.isArray(n)&&e.length===n.length&&e.every((function(e,r){return t(e,n[r])}));if("object"==typeof e||"object"==typeof n){var i=r(e),o=r(n);return i!==e||o!==n?t(i,o):Object.keys(Object.assign({},e,n)).every((function(r){return t(e[r],n[r])}))}return!1}:null},89198:t=>{"use strict";t.exports=function(){}},54010:(t,e,n)=>{"use strict";var r=n(24175),i=n(48455),o=n(97615),s=o("Object.prototype.toString"),a=n(99905)()&&"symbol"==typeof Symbol.toStringTag,l=i(),c=o("String.prototype.slice"),u={},d=n(18711),p=Object.getPrototypeOf;a&&d&&p&&r(l,(function(t){if("function"==typeof n.g[t]){var e=new n.g[t];if(!(Symbol.toStringTag in e))throw new EvalError("this engine has support for Symbol.toStringTag, but "+t+" does not have the property! Please report this.");var r=p(e),i=d(r,Symbol.toStringTag);if(!i){var o=p(r);i=d(o,Symbol.toStringTag)}u[t]=i.get}}));var h=n(82527);t.exports=function(t){return!!h(t)&&(a?function(t){var e=!1;return r(u,(function(n,r){if(!e)try{var i=n.call(t);i===r&&(e=i)}catch(t){}})),e}(t):c(s(t),8,-1))}}}]); \ No newline at end of file diff --git a/static/misc/edge-surf/resources/js/lib_react.chunk.js b/static/misc/edge-surf/resources/js/lib_react.chunk.js deleted file mode 100644 index 56cf7507..00000000 --- a/static/misc/edge-surf/resources/js/lib_react.chunk.js +++ /dev/null @@ -1,25 +0,0 @@ -(self.webpackChunkedge_common=self.webpackChunkedge_common||[]).push([[692],{40885:(e,t,n)=>{"use strict";n.d(t,{v:()=>o,G:()=>i});var r=n(3588),o=(0,r.HP)((function(){return/firefox/i.test(navigator.userAgent)})),i=(0,r.HP)((function(){return Boolean(window.safari)}))},77922:(e,t,n)=>{"use strict";if(n.d(t,{Z:()=>i}),/^(205|55|991)$/.test(n.j))var r=n(3588);function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var i=/^(205|55|991)$/.test(n.j)?function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.entered=[],this.isNodeInDocument=t}var t,n,i;return t=e,(n=[{key:"enter",value:function(e){var t=this,n=this.entered.length;return this.entered=(0,r.G0)(this.entered.filter((function(n){return t.isNodeInDocument(n)&&(!n.contains||n.contains(e))})),[e]),0===n&&this.entered.length>0}},{key:"leave",value:function(e){var t=this.entered.length;return this.entered=(0,r.zu)(this.entered.filter(this.isNodeInDocument),e),t>0&&0===this.entered.length}},{key:"reset",value:function(){this.entered=[]}}])&&o(t.prototype,n),i&&o(t,i),e}():null},82112:(e,t,n)=>{"use strict";if(n.d(t,{Z:()=>p}),/^(205|55|991)$/.test(n.j))var r=n(77922);if(/^(205|55|991)$/.test(n.j))var o=n(40885);if(/^(205|55|991)$/.test(n.j))var i=n(52385);if(/^(205|55|991)$/.test(n.j))var a=n(19191);if(/^(205|55|991)$/.test(n.j))var u=n(14281);if(/^(205|55|991)$/.test(n.j))var l=n(78499);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var p=/^(205|55|991)$/.test(n.j)?function(){function e(t,n){var u=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.getSourceClientOffset=function(e){return(0,i.g2)(u.sourceNodes.get(e))},this.endDragNativeItem=function(){u.isDraggingNativeItem()&&(u.actions.endDrag(),u.registry.removeSource(u.currentNativeHandle),u.currentNativeHandle=null,u.currentNativeSource=null)},this.isNodeInDocument=function(e){return u.document&&u.document.body&&document.body.contains(e)},this.endDragIfSourceWasRemovedFromDOM=function(){var e=u.currentDragSourceNode;u.isNodeInDocument(e)||u.clearCurrentDragSourceNode()&&u.actions.endDrag()},this.handleTopDragStartCapture=function(){u.clearCurrentDragSourceNode(),u.dragStartSourceIds=[]},this.handleTopDragStart=function(e){if(!e.defaultPrevented){var t=u.dragStartSourceIds;u.dragStartSourceIds=null;var n=(0,i.K5)(e);u.monitor.isDragging()&&u.actions.endDrag(),u.actions.beginDrag(t||[],{publishSource:!1,getSourceClientOffset:u.getSourceClientOffset,clientOffset:n});var r=e.dataTransfer,o=(0,a.w)(r);if(u.monitor.isDragging()){if(r&&"function"==typeof r.setDragImage){var l=u.monitor.getSourceId(),s=u.sourceNodes.get(l),c=u.sourcePreviewNodes.get(l)||s;if(c){var f=u.getCurrentSourcePreviewNodeOptions(),d={anchorX:f.anchorX,anchorY:f.anchorY},p={offsetX:f.offsetX,offsetY:f.offsetY},h=(0,i.rK)(s,c,n,d,p);r.setDragImage(c,h.x,h.y)}}try{r.setData("application/json",{})}catch(e){}u.setCurrentDragSourceNode(e.target),u.getCurrentSourcePreviewNodeOptions().captureDraggingState?u.actions.publishDragSource():setTimeout((function(){return u.actions.publishDragSource()}),0)}else if(o)u.beginDragNativeItem(o);else{if(r&&!r.types&&(e.target&&!e.target.hasAttribute||!e.target.hasAttribute("draggable")))return;e.preventDefault()}}},this.handleTopDragEndCapture=function(){u.clearCurrentDragSourceNode()&&u.actions.endDrag()},this.handleTopDragEnterCapture=function(e){if(u.dragEnterTargetIds=[],u.enterLeaveCounter.enter(e.target)&&!u.monitor.isDragging()){var t=e.dataTransfer,n=(0,a.w)(t);n&&u.beginDragNativeItem(n,t)}},this.handleTopDragEnter=function(e){var t=u.dragEnterTargetIds;(u.dragEnterTargetIds=[],u.monitor.isDragging())&&(u.altKeyPressed=e.altKey,(0,o.v)()||u.actions.hover(t,{clientOffset:(0,i.K5)(e)}),t.some((function(e){return u.monitor.canDropOnTarget(e)}))&&(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=u.getCurrentDropEffect())))},this.handleTopDragOverCapture=function(){u.dragOverTargetIds=[]},this.handleTopDragOver=function(e){var t=u.dragOverTargetIds;if(u.dragOverTargetIds=[],!u.monitor.isDragging())return e.preventDefault(),void(e.dataTransfer&&(e.dataTransfer.dropEffect="none"));u.altKeyPressed=e.altKey,u.actions.hover(t||[],{clientOffset:(0,i.K5)(e)}),(t||[]).some((function(e){return u.monitor.canDropOnTarget(e)}))?(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=u.getCurrentDropEffect())):u.isDraggingNativeItem()?e.preventDefault():(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=function(e){u.isDraggingNativeItem()&&e.preventDefault(),u.enterLeaveCounter.leave(e.target)&&u.isDraggingNativeItem()&&u.endDragNativeItem()},this.handleTopDropCapture=function(e){u.dropTargetIds=[],e.preventDefault(),u.isDraggingNativeItem()&&u.currentNativeSource.loadDataTransfer(e.dataTransfer),u.enterLeaveCounter.reset()},this.handleTopDrop=function(e){var t=u.dropTargetIds;u.dropTargetIds=[],u.actions.hover(t,{clientOffset:(0,i.K5)(e)}),u.actions.drop({dropEffect:u.getCurrentDropEffect()}),u.isDraggingNativeItem()?u.endDragNativeItem():u.endDragIfSourceWasRemovedFromDOM()},this.handleSelectStart=function(e){var t=e.target;"function"==typeof t.dragDrop&&("INPUT"===t.tagName||"SELECT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable||(e.preventDefault(),t.dragDrop()))},this.options=new l.r(n),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.registry=t.getRegistry(),this.enterLeaveCounter=new r.Z(this.isNodeInDocument)}var t,n,s;return t=e,(n=[{key:"setup",value:function(){if(void 0!==this.window){if(this.window.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");this.window.__isReactDndBackendSetUp=!0,this.addEventListeners(this.window)}}},{key:"teardown",value:function(){void 0!==this.window&&(this.window.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.window),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId&&this.window.cancelAnimationFrame(this.asyncEndDragFrameId))}},{key:"connectDragPreview",value:function(e,t,n){var r=this;return this.sourcePreviewNodeOptions.set(e,n),this.sourcePreviewNodes.set(e,t),function(){r.sourcePreviewNodes.delete(e),r.sourcePreviewNodeOptions.delete(e)}}},{key:"connectDragSource",value:function(e,t,n){var r=this;this.sourceNodes.set(e,t),this.sourceNodeOptions.set(e,n);var o=function(t){return r.handleDragStart(t,e)},i=function(e){return r.handleSelectStart(e)};return t.setAttribute("draggable","true"),t.addEventListener("dragstart",o),t.addEventListener("selectstart",i),function(){r.sourceNodes.delete(e),r.sourceNodeOptions.delete(e),t.removeEventListener("dragstart",o),t.removeEventListener("selectstart",i),t.setAttribute("draggable","false")}}},{key:"connectDropTarget",value:function(e,t){var n=this,r=function(t){return n.handleDragEnter(t,e)},o=function(t){return n.handleDragOver(t,e)},i=function(t){return n.handleDrop(t,e)};return t.addEventListener("dragenter",r),t.addEventListener("dragover",o),t.addEventListener("drop",i),function(){t.removeEventListener("dragenter",r),t.removeEventListener("dragover",o),t.removeEventListener("drop",i)}}},{key:"addEventListeners",value:function(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))}},{key:"removeEventListeners",value:function(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))}},{key:"getCurrentSourceNodeOptions",value:function(){var e=this.monitor.getSourceId(),t=this.sourceNodeOptions.get(e);return c({dropEffect:this.altKeyPressed?"copy":"move"},t||{})}},{key:"getCurrentDropEffect",value:function(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}},{key:"getCurrentSourcePreviewNodeOptions",value:function(){var e=this.monitor.getSourceId();return c({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(e)||{})}},{key:"isDraggingNativeItem",value:function(){var e=this.monitor.getItemType();return Object.keys(u).some((function(t){return u[t]===e}))}},{key:"beginDragNativeItem",value:function(e,t){this.clearCurrentDragSourceNode(),this.currentNativeSource=(0,a.f)(e,t),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}},{key:"setCurrentDragSourceNode",value:function(e){var t=this;this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e,this.mouseMoveTimeoutTimer=setTimeout((function(){return t.window&&t.window.addEventListener("mousemove",t.endDragIfSourceWasRemovedFromDOM,!0)}),1e3)}},{key:"clearCurrentDragSourceNode",value:function(){return!!this.currentDragSourceNode&&(this.currentDragSourceNode=null,this.window&&(this.window.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.window.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)),this.mouseMoveTimeoutTimer=null,!0)}},{key:"handleDragStart",value:function(e,t){e.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(t))}},{key:"handleDragEnter",value:function(e,t){this.dragEnterTargetIds.unshift(t)}},{key:"handleDragOver",value:function(e,t){null===this.dragOverTargetIds&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(t)}},{key:"handleDrop",value:function(e,t){this.dropTargetIds.unshift(t)}},{key:"window",get:function(){return this.options.window}},{key:"document",get:function(){return this.options.document}}])&&d(t.prototype,n),s&&d(t,s),e}():null},1900:(e,t,n)=>{"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}n.d(t,{Z:()=>o});var o=/^(205|55|991)$/.test(n.j)?function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=t.length,o=[],i=0;i<r;i++)o.push(i);o.sort((function(e,n){return t[e]<t[n]?-1:1}));for(var a,u,l=[],s=[],c=[],f=0;f<r-1;f++)a=t[f+1]-t[f],u=n[f+1]-n[f],s.push(a),l.push(u),c.push(u/a);for(var d=[c[0]],p=0;p<s.length-1;p++){var h=c[p],v=c[p+1];if(h*v<=0)d.push(0);else{a=s[p];var g=s[p+1],m=a+g;d.push(3*m/((m+g)/h+(m+a)/v))}}d.push(c[c.length-1]);for(var y,b=[],w=[],S=0;S<d.length-1;S++){y=c[S];var T=d[S],k=1/s[S],E=T+d[S+1]-y-y;b.push((y-T-E)*k),w.push(E*k*k)}this.xs=t,this.ys=n,this.c1s=d,this.c2s=b,this.c3s=w}var t,n,o;return t=e,(n=[{key:"interpolate",value:function(e){var t=this.xs,n=this.ys,r=this.c1s,o=this.c2s,i=this.c3s,a=t.length-1;if(e===t[a])return n[a];for(var u,l=0,s=i.length-1;l<=s;){var c=t[u=Math.floor(.5*(l+s))];if(c<e)l=u+1;else{if(!(c>e))return n[u];s=u-1}}var f=e-t[a=Math.max(0,s)],d=f*f;return n[a]+r[a]*f+o[a]*d+i[a]*f*d}}])&&r(t.prototype,n),o&&r(t,o),e}():null},71274:(e,t,n)=>{"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}n.d(t,{p:()=>o});var o=/^(205|55|991)$/.test(n.j)?function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.config=t,this.item={},this.initializeExposedProperties()}var t,n,o;return t=e,(n=[{key:"initializeExposedProperties",value:function(){var e=this;Object.keys(this.config.exposeProperties).forEach((function(t){Object.defineProperty(e.item,t,{configurable:!0,enumerable:!0,get:function(){return console.warn("Browser doesn't allow reading \"".concat(t,'" until the drop event.')),null}})}))}},{key:"loadDataTransfer",value:function(e){var t=this;if(e){var n={};Object.keys(this.config.exposeProperties).forEach((function(r){n[r]={value:t.config.exposeProperties[r](e,t.config.matchesTypes),configurable:!0,enumerable:!0}})),Object.defineProperties(this.item,n)}}},{key:"canDrag",value:function(){return!0}},{key:"beginDrag",value:function(){return this.item}},{key:"isDragging",value:function(e,t){return t===e.getSourceId()}},{key:"endDrag",value:function(){}}])&&r(t.prototype,n),o&&r(t,o),e}():null},19191:(e,t,n)=>{"use strict";if(n.d(t,{f:()=>i,w:()=>a}),/^(205|55|991)$/.test(n.j))var r=n(74838);if(/^(205|55|991)$/.test(n.j))var o=n(71274);function i(e,t){var n=new o.p(r.s[e]);return n.loadDataTransfer(t),n}function a(e){if(!e)return null;var t=Array.prototype.slice.call(e.types||[]);return Object.keys(r.s).filter((function(e){return r.s[e].matchesTypes.some((function(e){return t.indexOf(e)>-1}))}))[0]||null}},74838:(e,t,n)=>{"use strict";n.d(t,{s:()=>u});var r,o=n(14281);function i(e,t,n){var r=t.reduce((function(t,n){return t||e.getData(n)}),"");return null!=r?r:n}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u=(a(r={},o.FILE,{exposeProperties:{files:function(e){return Array.prototype.slice.call(e.files)},items:function(e){return e.items}},matchesTypes:["Files"]}),a(r,o.URL,{exposeProperties:{urls:function(e,t){return i(e,t,"").split("\n")}},matchesTypes:["Url","text/uri-list"]}),a(r,o.TEXT,{exposeProperties:{text:function(e,t){return i(e,t,"")}},matchesTypes:["Text","text/plain"]}),r)},14281:(e,t,n)=>{"use strict";n.r(t),n.d(t,{FILE:()=>r,URL:()=>o,TEXT:()=>i});var r="__NATIVE_FILE__",o="__NATIVE_URL__",i="__NATIVE_TEXT__"},52385:(e,t,n)=>{"use strict";if(n.d(t,{g2:()=>i,K5:()=>a,rK:()=>u}),/^(205|55|991)$/.test(n.j))var r=n(40885);if(/^(205|55|991)$/.test(n.j))var o=n(1900);function i(e){var t=1===e.nodeType?e:e.parentElement;if(!t)return null;var n=t.getBoundingClientRect(),r=n.top;return{x:n.left,y:r}}function a(e){return{x:e.clientX,y:e.clientY}}function u(e,t,n,a,u){var l,s,c="IMG"===(l=t).nodeName&&((0,r.v)()||!document.documentElement.contains(l)),f=i(c?e:t),d={x:n.x-f.x,y:n.y-f.y},p=e.offsetWidth,h=e.offsetHeight,v=a.anchorX,g=a.anchorY,m=function(e,t,n,o){var i=e?t.width:n,a=e?t.height:o;return(0,r.G)()&&e&&(a/=window.devicePixelRatio,i/=window.devicePixelRatio),{dragPreviewWidth:i,dragPreviewHeight:a}}(c,t,p,h),y=m.dragPreviewWidth,b=m.dragPreviewHeight,w=u.offsetX,S=u.offsetY,T=0===S||S;return{x:0===w||w?w:new o.Z([0,.5,1],[d.x,d.x/p*y,d.x+y-p]).interpolate(v),y:T?S:(s=new o.Z([0,.5,1],[d.y,d.y/h*b,d.y+b-h]).interpolate(g),(0,r.G)()&&c&&(s+=(window.devicePixelRatio-1)*b),s)}}},78499:(e,t,n)=>{"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}n.d(t,{r:()=>o});var o=/^(205|55|991)$/.test(n.j)?function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.globalContext=t}var t,n,o;return t=e,(n=[{key:"window",get:function(){return this.globalContext?this.globalContext:"undefined"!=typeof window?window:void 0}},{key:"document",get:function(){if(this.window)return this.window.document}}])&&r(t.prototype,n),o&&r(t,o),e}():null},15488:(e,t,n)=>{"use strict";var r;function o(){return r||((r=new Image).src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),r}n.d(t,{r:()=>o})},18064:(e,t,n)=>{"use strict";if(n.d(t,{ZP:()=>o}),/^(205|55|991)$/.test(n.j))var r=n(82112);const o=/^(205|55|991)$/.test(n.j)?function(e,t){return new r.Z(e,t)}:null},3588:(e,t,n)=>{"use strict";function r(e){var t=null;return function(){return null==t&&(t=e()),t}}function o(e,t){return e.filter((function(e){return e!==t}))}function i(e,t){var n=new Set,r=function(e){return n.add(e)};e.forEach(r),t.forEach(r);var o=[];return n.forEach((function(e){return o.push(e)})),o}n.d(t,{HP:()=>r,zu:()=>o,G0:()=>i})},15515:(e,t,n)=>{"use strict";n.d(t,{RY:()=>r.RY,R:()=>r.R,ZP:()=>r.ZP});var r=n(16768),o=n(89526),i=n(2652),a=n.n(i),u=n(17615),l=n(58675);function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e))&&"[object Arguments]"!==Object.prototype.toString.call(e))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var c=o.createContext(),f=function(e){var t,n,r,i,a,f=(t=function(e){return{currentOffset:e.getSourceClientOffset(),isDragging:e.isDragging(),itemType:e.getItemType(),item:e.getItem()}},n=(0,u.N)().getMonitor(),r=s((0,l.r)(n,t),2),i=r[0],a=r[1],(0,o.useEffect)((function(){return n.subscribeToOffsetChange(a)})),(0,o.useEffect)((function(){return n.subscribeToStateChange(a)})),i);if(!f.isDragging||null===f.currentOffset)return null;var d,p,h,v={itemType:f.itemType,item:f.item,style:(d=f.currentOffset,p="translate(".concat(d.x,"px, ").concat(d.y,"px)"),{pointerEvents:"none",position:"fixed",top:0,left:0,transform:p,WebkitTransform:p})};return h=e.children&&"function"==typeof e.children?e.children(v):e.children?e.children:e.generator(v),o.createElement(c.Provider,{value:v},h)};f.propTypes={generator:a().func,children:a().oneOfType([a().node,a().func])};const d=f;function p(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e))&&"[object Arguments]"!==Object.prototype.toString.call(e))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var h=function(e){var t=p((0,o.useState)(!1),2),n=t[0],i=t[1];return(0,o.useEffect)((function(){var e={backendChanged:function(e){i(e.previewEnabled())}};return r.li.register(e),function(){r.li.unregister(e)}})),n?o.createElement(d,e):null};h.Context=c,h.propTypes=d.propTypes},56706:(e,t,n)=>{"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}n.d(t,{r:()=>o});var o=/^(205|55|991)$/.test(n.j)?function(){function e(t,n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.enableTouchEvents=!0,this.enableMouseEvents=!1,this.enableKeyboardEvents=!1,this.ignoreContextMenu=!1,this.enableHoverOutsideTarget=!1,this.touchSlop=0,this.scrollAngleRanges=void 0,this.context=n,this.delayTouchStart=t.delayTouchStart||t.delay||0,this.delayMouseStart=t.delayMouseStart||t.delay||0,Object.keys(t).forEach((function(e){null!=t[e]&&(r[e]=t[e])}))}var t,n,o;return t=e,(n=[{key:"window",get:function(){return this.context&&this.context.window?this.context.window:"undefined"!=typeof window?window:void 0}},{key:"document",get:function(){if(this.window)return this.window.document}}])&&r(t.prototype,n),o&&r(t,o),e}():null},21740:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var r,o=n(94111);!function(e){e.mouse="mouse",e.touch="touch",e.keyboard="keyboard"}(r||(r={}));var i,a=n(41029),u=n(73273),l=n(97034),s=n(49),c=n(56706);function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p=(d(i={},r.mouse,{start:"mousedown",move:"mousemove",end:"mouseup",contextmenu:"contextmenu"}),d(i,r.touch,{start:"touchstart",move:"touchmove",end:"touchend"}),d(i,r.keyboard,{keydown:"keydown"}),i),h=function(){function e(t,n,o){var i=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.getSourceClientOffset=function(e){return(0,u.g2)(i.sourceNodes[e])},this.handleTopMoveStartCapture=function(e){(0,a.YY)(e)&&(i.moveStartSourceIds=[])},this.handleMoveStart=function(e){Array.isArray(i.moveStartSourceIds)&&i.moveStartSourceIds.unshift(e)},this.handleTopMoveStart=function(e){if((0,a.YY)(e)){var t=(0,u.K5)(e);t&&((0,a.z6)(e)&&(i.lastTargetTouchFallback=e.targetTouches[0]),i._mouseClientOffset=t),i.waitingForDelay=!1}},this.handleTopMoveStartDelay=function(e){if((0,a.YY)(e)){var t=e.type===p.touch.start?i.options.delayTouchStart:i.options.delayMouseStart;i.timeout=setTimeout(i.handleTopMoveStart.bind(i,e),t),i.waitingForDelay=!0}},this.handleTopMoveCapture=function(){i.dragOverTargetIds=[]},this.handleMove=function(e,t){i.dragOverTargetIds&&i.dragOverTargetIds.unshift(t)},this.handleTopMove=function(e){if(i.timeout&&clearTimeout(i.timeout),i.document&&!i.waitingForDelay){var t=i.moveStartSourceIds,n=i.dragOverTargetIds,r=i.options.enableHoverOutsideTarget,o=(0,u.K5)(e,i.lastTargetTouchFallback);if(o)if(i._isScrolling||!i.monitor.isDragging()&&(0,l.x)(i._mouseClientOffset.x||0,i._mouseClientOffset.y||0,o.x,o.y,i.options.scrollAngleRanges))i._isScrolling=!0;else if(!i.monitor.isDragging()&&i._mouseClientOffset.hasOwnProperty("x")&&t&&(0,l.T)(i._mouseClientOffset.x||0,i._mouseClientOffset.y||0,o.x,o.y)>(i.options.touchSlop?i.options.touchSlop:0)&&(i.moveStartSourceIds=void 0,i.actions.beginDrag(t,{clientOffset:i._mouseClientOffset,getSourceClientOffset:i.getSourceClientOffset,publishSource:!1})),i.monitor.isDragging()){var a=i.sourceNodes[i.monitor.getSourceId()];i.installSourceNodeRemovalObserver(a),i.actions.publishDragSource(),e.preventDefault();var s=(n||[]).map((function(e){return i.targetNodes[e]})),c=i.options.getDropTargetElementsAtPoint?i.options.getDropTargetElementsAtPoint(o.x,o.y,s):i.document.elementsFromPoint(o.x,o.y),f=[];for(var d in c)if(c.hasOwnProperty(d)){var p=c[d];for(f.push(p);p;)p=p.parentElement,-1===f.indexOf(p)&&f.push(p)}var h=f.filter((function(e){return s.indexOf(e)>-1})).map((function(e){for(var t in i.targetNodes)if(e===i.targetNodes[t])return t})).filter((function(e){return!!e})).filter((function(e,t,n){return n.indexOf(e)===t}));if(r)for(var v in i.targetNodes)if(i.targetNodes[v]&&i.targetNodes[v].contains(a)&&-1===h.indexOf(v)){h.unshift(v);break}h.reverse(),i.actions.hover(h,{clientOffset:o})}}},this.handleTopMoveEndCapture=function(e){i._isScrolling=!1,i.lastTargetTouchFallback=void 0,(0,a.$W)(e)&&(i.monitor.isDragging()&&!i.monitor.didDrop()?(e.preventDefault(),i._mouseClientOffset={},i.uninstallSourceNodeRemovalObserver(),i.actions.drop(),i.actions.endDrag()):i.moveStartSourceIds=void 0)},this.handleCancelOnEscape=function(e){"Escape"===e.key&&i.monitor.isDragging()&&(i._mouseClientOffset={},i.uninstallSourceNodeRemovalObserver(),i.actions.endDrag())},this.options=new c.r(o,n),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.sourceNodes={},this.sourcePreviewNodes={},this.sourcePreviewNodeOptions={},this.targetNodes={},this.listenerTypes=[],this._mouseClientOffset={},this._isScrolling=!1,this.options.enableMouseEvents&&this.listenerTypes.push(r.mouse),this.options.enableTouchEvents&&this.listenerTypes.push(r.touch),this.options.enableKeyboardEvents&&this.listenerTypes.push(r.keyboard)}var t,n,i;return t=e,(n=[{key:"setup",value:function(){this.window&&((0,o.k)(!e.isSetUp,"Cannot have two Touch backends at the same time."),e.isSetUp=!0,this.addEventListener(this.window,"start",this.getTopMoveStartHandler()),this.addEventListener(this.window,"start",this.handleTopMoveStartCapture,!0),this.addEventListener(this.window,"move",this.handleTopMove),this.addEventListener(this.window,"move",this.handleTopMoveCapture,!0),this.addEventListener(this.window,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.addEventListener(this.window,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.addEventListener(this.window,"keydown",this.handleCancelOnEscape,!0))}},{key:"teardown",value:function(){this.window&&(e.isSetUp=!1,this._mouseClientOffset={},this.removeEventListener(this.window,"start",this.handleTopMoveStartCapture,!0),this.removeEventListener(this.window,"start",this.handleTopMoveStart),this.removeEventListener(this.window,"move",this.handleTopMoveCapture,!0),this.removeEventListener(this.window,"move",this.handleTopMove),this.removeEventListener(this.window,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.removeEventListener(this.window,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.removeEventListener(this.window,"keydown",this.handleCancelOnEscape,!0),this.uninstallSourceNodeRemovalObserver())}},{key:"addEventListener",value:function(e,t,n,r){var o=s.Z?{capture:r,passive:!1}:r;this.listenerTypes.forEach((function(r){var i=p[r][t];i&&e.addEventListener(i,n,o)}))}},{key:"removeEventListener",value:function(e,t,n,r){var o=s.Z?{capture:r,passive:!1}:r;this.listenerTypes.forEach((function(r){var i=p[r][t];i&&e.removeEventListener(i,n,o)}))}},{key:"connectDragSource",value:function(e,t){var n=this,r=this.handleMoveStart.bind(this,e);return this.sourceNodes[e]=t,this.addEventListener(t,"start",r),function(){delete n.sourceNodes[e],n.removeEventListener(t,"start",r)}}},{key:"connectDragPreview",value:function(e,t,n){var r=this;return this.sourcePreviewNodeOptions[e]=n,this.sourcePreviewNodes[e]=t,function(){delete r.sourcePreviewNodes[e],delete r.sourcePreviewNodeOptions[e]}}},{key:"connectDropTarget",value:function(e,t){var n=this;if(!this.document)return function(){return null};var r=function(r){if(n.document&&n.monitor.isDragging()){var o;switch(r.type){case p.mouse.move:o={x:r.clientX,y:r.clientY};break;case p.touch.move:o={x:r.touches[0].clientX,y:r.touches[0].clientY}}var i=null!=o?n.document.elementFromPoint(o.x,o.y):void 0,a=i&&t.contains(i);return i===t||a?n.handleMove(r,e):void 0}};return this.addEventListener(this.document.body,"move",r),this.targetNodes[e]=t,function(){n.document&&(delete n.targetNodes[e],n.removeEventListener(n.document.body,"move",r))}}},{key:"getTopMoveStartHandler",value:function(){return this.options.delayTouchStart||this.options.delayMouseStart?this.handleTopMoveStartDelay:this.handleTopMoveStart}},{key:"installSourceNodeRemovalObserver",value:function(e){var t=this;this.uninstallSourceNodeRemovalObserver(),this.draggedSourceNode=e,this.draggedSourceNodeRemovalObserver=new MutationObserver((function(){e&&!e.parentElement&&(t.resurrectSourceNode(),t.uninstallSourceNodeRemovalObserver())})),e&&e.parentElement&&this.draggedSourceNodeRemovalObserver.observe(e.parentElement,{childList:!0})}},{key:"resurrectSourceNode",value:function(){this.document&&this.draggedSourceNode&&(this.draggedSourceNode.style.display="none",this.draggedSourceNode.removeAttribute("data-reactid"),this.document.body.appendChild(this.draggedSourceNode))}},{key:"uninstallSourceNodeRemovalObserver",value:function(){this.draggedSourceNodeRemovalObserver&&this.draggedSourceNodeRemovalObserver.disconnect(),this.draggedSourceNodeRemovalObserver=void 0,this.draggedSourceNode=void 0}},{key:"window",get:function(){return this.options.window}},{key:"document",get:function(){if(this.window)return this.window.document}}])&&f(t.prototype,n),i&&f(t,i),e}()},27539:(e,t,n)=>{"use strict";if(n.d(t,{Z:()=>o}),/^(205|55|991)$/.test(n.j))var r=n(21740);const o=/^(205|55|991)$/.test(n.j)?function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return new r.Z(e,t,n)}:null},97034:(e,t,n)=>{"use strict";function r(e,t,n,r){return Math.sqrt(Math.pow(Math.abs(n-e),2)+Math.pow(Math.abs(r-t),2))}function o(e,t,n,r,o){if(!o)return!1;for(var i=180*Math.atan2(r-t,n-e)/Math.PI+180,a=0;a<o.length;++a)if((null==o[a].start||i>=o[a].start)&&(null==o[a].end||i<=o[a].end))return!0;return!1}n.d(t,{T:()=>r,x:()=>o})},73273:(e,t,n)=>{"use strict";if(n.d(t,{g2:()=>o,K5:()=>i}),/^(205|55|991)$/.test(n.j))var r=n(41029);function o(e){var t=1===e.nodeType?e:e.parentElement;if(t){var n=t.getBoundingClientRect(),r=n.top;return{x:n.left,y:r}}}function i(e,t){return(0,r.z6)(e)?function(e,t){return 1===e.targetTouches.length?i(e.targetTouches[0]):t&&1===e.touches.length&&e.touches[0].target===t.target?i(e.touches[0]):void 0}(e,t):{x:e.clientX,y:e.clientY}}},41029:(e,t,n)=>{"use strict";n.d(t,{YY:()=>i,$W:()=>a,z6:()=>u});var r=1,o=0;function i(e){return void 0===e.button||e.button===o}function a(e){return void 0===e.buttons||0==(e.buttons&r)}function u(e){return!!e.targetTouches}},49:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=function(){var e=!1;try{addEventListener("test",(function(){}),Object.defineProperty({},"passive",{get:function(){return e=!0,!0}}))}catch(e){}return e}();const o=/^(205|55|991)$/.test(n.j)?r:null},10829:(e,t,n)=>{"use strict";n.d(t,{L:()=>i,W:()=>a});var r=n(89526);if(/^(205|55|991)$/.test(n.j))var o=n(28710);var i=r.createContext({dragDropManager:void 0});function a(e,t,n,r){return{dragDropManager:(0,o.i)(e,t,n,r)}}},38594:(e,t,n)=>{"use strict";n.d(t,{W:()=>l});var r=n(89526),o=n(10829);function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e))&&"[object Arguments]"!==Object.prototype.toString.call(e))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function a(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var u=0,l=(0,r.memo)((function(e){var t=e.children,n=i(function(e){if("manager"in e){return[{dragDropManager:e.manager},!1]}var t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c(),n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,i=t;i[s]||(i[s]=(0,o.W)(e,t,n,r));return i[s]}(e.backend,e.context,e.options,e.debugMode),n=!e.context;return[t,n]}(a(e,["children"])),2),l=n[0],f=n[1];return r.useEffect((function(){return f&&u++,function(){f&&(0===--u&&(c()[s]=null))}}),[]),r.createElement(o.L.Provider,{value:l},t)}));l.displayName="DndProvider";var s=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");function c(){return void 0!==n.g?n.g:window}},51099:(e,t,n)=>{"use strict";if(n.d(t,{p:()=>u}),/^(2(05|2|22)|5(5|51|71)|360|885|908|991)$/.test(n.j))var r=n(94111);function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var i=!1,a=!1,u=/^(2(05|2|22)|5(5|51|71)|360|885|908|991)$/.test(n.j)?function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.sourceId=null,this.internalMonitor=t.getMonitor()}var t,n,u;return t=e,(n=[{key:"receiveHandlerId",value:function(e){this.sourceId=e}},{key:"getHandlerId",value:function(){return this.sourceId}},{key:"canDrag",value:function(){(0,r.k)(!i,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return i=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{i=!1}}},{key:"isDragging",value:function(){if(!this.sourceId)return!1;(0,r.k)(!a,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return a=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{a=!1}}},{key:"subscribeToStateChange",value:function(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}},{key:"isDraggingSource",value:function(e){return this.internalMonitor.isDraggingSource(e)}},{key:"isOverTarget",value:function(e,t){return this.internalMonitor.isOverTarget(e,t)}},{key:"getTargetIds",value:function(){return this.internalMonitor.getTargetIds()}},{key:"isSourcePublic",value:function(){return this.internalMonitor.isSourcePublic()}},{key:"getSourceId",value:function(){return this.internalMonitor.getSourceId()}},{key:"subscribeToOffsetChange",value:function(e){return this.internalMonitor.subscribeToOffsetChange(e)}},{key:"canDragSource",value:function(e){return this.internalMonitor.canDragSource(e)}},{key:"canDropOnTarget",value:function(e){return this.internalMonitor.canDropOnTarget(e)}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}])&&o(t.prototype,n),u&&o(t,u),e}():null},46339:(e,t,n)=>{"use strict";if(n.d(t,{H:()=>a}),/^(2(05|2|22)|5(5|51|71)|360|885|908|991)$/.test(n.j))var r=n(94111);function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var i=!1,a=/^(2(05|2|22)|5(5|51|71)|360|885|908|991)$/.test(n.j)?function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.targetId=null,this.internalMonitor=t.getMonitor()}var t,n,a;return t=e,(n=[{key:"receiveHandlerId",value:function(e){this.targetId=e}},{key:"getHandlerId",value:function(){return this.targetId}},{key:"subscribeToStateChange",value:function(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}},{key:"canDrop",value:function(){if(!this.targetId)return!1;(0,r.k)(!i,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return i=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{i=!1}}},{key:"isOver",value:function(e){return!!this.targetId&&this.internalMonitor.isOverTarget(this.targetId,e)}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}])&&o(t.prototype,n),a&&o(t,a),e}():null},13024:(e,t,n)=>{"use strict";if(n.d(t,{x:()=>u}),/^(2(05|2|22)|5(5|51|71)|360|885|908|991)$/.test(n.j))var r=n(74843);if(/^(2(05|2|22)|5(5|51|71)|360|885|908|991)$/.test(n.j))var o=n(20258);if(/^(2(05|2|22)|5(5|51|71)|360|885|908|991)$/.test(n.j))var i=n(39292);function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var u=/^(2(05|2|22)|5(5|51|71)|360|885|908|991)$/.test(n.j)?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.hooks=(0,r.Z)({dragSource:function(e,t){n.clearDragSource(),n.dragSourceOptions=t||null,(0,o.d)(e)?n.dragSourceRef=e:n.dragSourceNode=e,n.reconnectDragSource()},dragPreview:function(e,t){n.clearDragPreview(),n.dragPreviewOptions=t||null,(0,o.d)(e)?n.dragPreviewRef=e:n.dragPreviewNode=e,n.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=t}var t,n,u;return t=e,(n=[{key:"receiveHandlerId",value:function(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())}},{key:"reconnect",value:function(){this.reconnectDragSource(),this.reconnectDragPreview()}},{key:"reconnectDragSource",value:function(){var e=this.dragSource,t=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();t&&this.disconnectDragSource(),this.handlerId&&(e?t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=e,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,e,this.dragSourceOptions)):this.lastConnectedDragSource=e)}},{key:"reconnectDragPreview",value:function(){var e=this.dragPreview,t=this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();this.handlerId?this.dragPreview&&t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=e,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.disconnectDragPreview(),this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,e,this.dragPreviewOptions)):this.disconnectDragPreview()}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didConnectedDragSourceChange",value:function(){return this.lastConnectedDragSource!==this.dragSource}},{key:"didConnectedDragPreviewChange",value:function(){return this.lastConnectedDragPreview!==this.dragPreview}},{key:"didDragSourceOptionsChange",value:function(){return!(0,i.w)(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}},{key:"didDragPreviewOptionsChange",value:function(){return!(0,i.w)(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}},{key:"disconnectDragSource",value:function(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}},{key:"disconnectDragPreview",value:function(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}},{key:"clearDragSource",value:function(){this.dragSourceNode=null,this.dragSourceRef=null}},{key:"clearDragPreview",value:function(){this.dragPreviewNode=null,this.dragPreviewRef=null}},{key:"connectTarget",get:function(){return this.dragSource}},{key:"dragSourceOptions",get:function(){return this.dragSourceOptionsInternal},set:function(e){this.dragSourceOptionsInternal=e}},{key:"dragPreviewOptions",get:function(){return this.dragPreviewOptionsInternal},set:function(e){this.dragPreviewOptionsInternal=e}},{key:"dragSource",get:function(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}},{key:"dragPreview",get:function(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}}])&&a(t.prototype,n),u&&a(t,u),e}():null},98402:(e,t,n)=>{"use strict";if(n.d(t,{Y:()=>u}),/^(2(05|2|22)|5(5|51|71)|360|885|908|991)$/.test(n.j))var r=n(39292);if(/^(2(05|2|22)|5(5|51|71)|360|885|908|991)$/.test(n.j))var o=n(74843);if(/^(2(05|2|22)|5(5|51|71)|360|885|908|991)$/.test(n.j))var i=n(20258);function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var u=/^(2(05|2|22)|5(5|51|71)|360|885|908|991)$/.test(n.j)?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.hooks=(0,o.Z)({dropTarget:function(e,t){n.clearDropTarget(),n.dropTargetOptions=t,(0,i.d)(e)?n.dropTargetRef=e:n.dropTargetNode=e,n.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=t}var t,n,u;return t=e,(n=[{key:"reconnect",value:function(){var e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();var t=this.dropTarget;this.handlerId&&(t?e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=t,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,t,this.dropTargetOptions)):this.lastConnectedDropTarget=t)}},{key:"receiveHandlerId",value:function(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didDropTargetChange",value:function(){return this.lastConnectedDropTarget!==this.dropTarget}},{key:"didOptionsChange",value:function(){return!(0,r.w)(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}},{key:"disconnectDropTarget",value:function(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}},{key:"clearDropTarget",value:function(){this.dropTargetRef=null,this.dropTargetNode=null}},{key:"connectTarget",get:function(){return this.dropTarget}},{key:"dropTargetOptions",get:function(){return this.dropTargetOptionsInternal},set:function(e){this.dropTargetOptionsInternal=e}},{key:"dropTarget",get:function(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}}])&&a(t.prototype,n),u&&a(t,u),e}():null},83396:(e,t,n)=>{"use strict";function r(e,t,n){var r=n.getRegistry(),o=r.addTarget(e,t);return[o,function(){return r.removeTarget(o)}]}function o(e,t,n){var r=n.getRegistry(),o=r.addSource(e,t);return[o,function(){return r.removeSource(o)}]}n.d(t,{n:()=>r,w:()=>o})},74843:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(89526);if(/^(2(05|2|22)|5(5|51|71)|360|885|908|991)$/.test(n.j))var o=n(1954);function i(e){if("string"!=typeof e.type){var t=e.type.displayName||e.type.name||"the component";throw new Error("Only native element nodes can now be passed to React DnD connectors."+"You can either wrap ".concat(t," into a <div>, or turn it into a ")+"drag source or a drop target itself.")}}function a(e){var t={};return Object.keys(e).forEach((function(n){var a=e[n];if(n.endsWith("Ref"))t[n]=e[n];else{var u=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!(0,r.isValidElement)(t)){var a=t;return e(a,n),a}var u=t;i(u);var l=n?function(t){return e(t,n)}:e;return(0,o.j)(u,l)}}(a);t[n]=function(){return u}}})),t}},51414:(e,t,n)=>{"use strict";n.d(t,{r:()=>b});var r=n(89526);if(/^(20|5)5$/.test(n.j))var o=n(39292);var i=n(41281),a=n.n(i);if(/^(20|5)5$/.test(n.j))var u=n(94111);if(/^(20|5)5$/.test(n.j))var l=n(10829);if(/^(20|5)5$/.test(n.j))var s=n(22341);if(/^(20|5)5$/.test(n.j))var c=n(97248);function f(e){return(f="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)}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t,n){return t&&p(e.prototype,t),n&&p(e,n),e}function v(e,t){return!t||"object"!==f(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function m(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&y(e,t)}function y(e,t){return(y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function b(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,c.U9)("DragLayer","collect[, options]",e,t),(0,u.k)("function"==typeof e,'Expected "collect" provided as the first argument to DragLayer to be a function that collects props to inject into the component. ',"Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-layer",e),(0,u.k)((0,s.PO)(t),'Expected "options" provided as the second argument to DragLayer to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-layer',t),function(n){var i=n,s=t.arePropsEqual,p=void 0===s?o.w:s,y=i.displayName||i.name||"Component",b=function(t){function n(){var e;return d(this,n),(e=v(this,g(n).apply(this,arguments))).isCurrentlyMounted=!1,e.ref=r.createRef(),e.handleChange=function(){if(e.isCurrentlyMounted){var t=e.getCurrentState();(0,o.w)(t,e.state)||e.setState(t)}},e}return m(n,t),h(n,[{key:"getDecoratedComponentInstance",value:function(){return(0,u.k)(this.ref.current,"In order to access an instance of the decorated component, it must either be a class component or use React.forwardRef()"),this.ref.current}},{key:"shouldComponentUpdate",value:function(e,t){return!p(e,this.props)||!(0,o.w)(t,this.state)}},{key:"componentDidMount",value:function(){this.isCurrentlyMounted=!0,this.handleChange()}},{key:"componentWillUnmount",value:function(){this.isCurrentlyMounted=!1,this.unsubscribeFromOffsetChange&&(this.unsubscribeFromOffsetChange(),this.unsubscribeFromOffsetChange=void 0),this.unsubscribeFromStateChange&&(this.unsubscribeFromStateChange(),this.unsubscribeFromStateChange=void 0)}},{key:"render",value:function(){var e=this;return r.createElement(l.L.Consumer,null,(function(t){var n=t.dragDropManager;return void 0===n?null:(e.receiveDragDropManager(n),e.isCurrentlyMounted?r.createElement(i,Object.assign({},e.props,e.state,{ref:(0,c.J7)(i)?e.ref:null})):null)}))}},{key:"receiveDragDropManager",value:function(e){if(void 0===this.manager){this.manager=e,(0,u.k)("object"===f(e),"Could not find the drag and drop manager in the context of %s. Make sure to render a DndProvider component in your top-level component. Read more: http://react-dnd.github.io/react-dnd/docs/troubleshooting#could-not-find-the-drag-and-drop-manager-in-the-context",y,y);var t=this.manager.getMonitor();this.unsubscribeFromOffsetChange=t.subscribeToOffsetChange(this.handleChange),this.unsubscribeFromStateChange=t.subscribeToStateChange(this.handleChange)}}},{key:"getCurrentState",value:function(){if(!this.manager)return{};var t=this.manager.getMonitor();return e(t,this.props)}}]),n}(r.Component);return b.displayName="DragLayer(".concat(y,")"),b.DecoratedComponent=n,a()(b,n)}}},97032:(e,t,n)=>{"use strict";if(n.d(t,{E:()=>d}),/^(2(05|2|22)|5(5|51|71)|360|885|908|991)$/.test(n.j))var r=n(94111);if(/^(2(05|2|22)|5(5|51|71)|360|885|908|991)$/.test(n.j))var o=n(22341);if(/^(2(05|2|22)|5(5|51|71)|360|885|908|991)$/.test(n.j))var i=n(97248);if(/^(2(05|2|22)|5(5|51|71)|360|885|908|991)$/.test(n.j))var a=n(49285);if(/^(2(05|2|22)|5(5|51|71)|360|885|908|991)$/.test(n.j))var u=n(83396);if(/^(2(05|2|22)|5(5|51|71)|360|885|908|991)$/.test(n.j))var l=n(51099);if(/^(2(05|2|22)|5(5|51|71)|360|885|908|991)$/.test(n.j))var s=n(13024);if(/^(2(05|2|22)|5(5|51|71)|360|885|908|991)$/.test(n.j))var c=n(7489);if(/^(2(05|2|22)|5(5|51|71)|360|885|908|991)$/.test(n.j))var f=n(42340);function d(e,t,n){var d=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};(0,i.U9)("DragSource","type, spec, collect[, options]",e,t,n,d);var p=e;"function"!=typeof e&&((0,r.k)((0,c.m)(e),'Expected "type" provided as the first argument to DragSource to be a string, or a function that returns a string given the current props. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',e),p=function(){return e}),(0,r.k)((0,o.PO)(t),'Expected "spec" provided as the second argument to DragSource to be a plain object. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',t);var h=(0,f.Z)(t);return(0,r.k)("function"==typeof n,'Expected "collect" provided as the third argument to DragSource to be a function that returns a plain object of props to inject. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',n),(0,r.k)((0,o.PO)(d),'Expected "options" provided as the fourth argument to DragSource to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',n),function(e){return(0,a.Z)({containerDisplayName:"DragSource",createHandler:h,registerHandler:u.w,createConnector:function(e){return new s.x(e)},createMonitor:function(e){return new l.p(e)},DecoratedComponent:e,getType:p,collect:n,options:d})}}},47413:(e,t,n)=>{"use strict";if(n.d(t,{G:()=>d}),/^(2(05|2|22)|5(5|51|71)|360|885|908|991)$/.test(n.j))var r=n(94111);if(/^(2(05|2|22)|5(5|51|71)|360|885|908|991)$/.test(n.j))var o=n(22341);if(/^(2(05|2|22)|5(5|51|71)|360|885|908|991)$/.test(n.j))var i=n(83396);if(/^(2(05|2|22)|5(5|51|71)|360|885|908|991)$/.test(n.j))var a=n(7489);if(/^(2(05|2|22)|5(5|51|71)|360|885|908|991)$/.test(n.j))var u=n(98402);if(/^(2(05|2|22)|5(5|51|71)|360|885|908|991)$/.test(n.j))var l=n(46339);if(/^(2(05|2|22)|5(5|51|71)|360|885|908|991)$/.test(n.j))var s=n(97248);if(/^(2(05|2|22)|5(5|51|71)|360|885|908|991)$/.test(n.j))var c=n(49285);if(/^(2(05|2|22)|5(5|51|71)|360|885|908|991)$/.test(n.j))var f=n(8292);function d(e,t,n){var d=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};(0,s.U9)("DropTarget","type, spec, collect[, options]",e,t,n,d);var p=e;"function"!=typeof e&&((0,r.k)((0,a.m)(e,!0),'Expected "type" provided as the first argument to DropTarget to be a string, an array of strings, or a function that returns either given the current props. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',e),p=function(){return e}),(0,r.k)((0,o.PO)(t),'Expected "spec" provided as the second argument to DropTarget to be a plain object. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',t);var h=(0,f.Z)(t);return(0,r.k)("function"==typeof n,'Expected "collect" provided as the third argument to DropTarget to be a function that returns a plain object of props to inject. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',n),(0,r.k)((0,o.PO)(d),'Expected "options" provided as the fourth argument to DropTarget to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',n),function(e){return(0,c.Z)({containerDisplayName:"DropTarget",createHandler:h,registerHandler:i.n,createMonitor:function(e){return new l.H(e)},createConnector:function(e){return new u.Y(e)},DecoratedComponent:e,getType:p,collect:n,options:d})}}},42340:(e,t,n)=>{"use strict";if(n.d(t,{Z:()=>s}),/^(2(05|2|22)|5(5|51|71)|360|885|908|991)$/.test(n.j))var r=n(94111);if(/^(2(05|2|22)|5(5|51|71)|360|885|908|991)$/.test(n.j))var o=n(97248);function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var a=/^(2(05|2|22)|5(5|51|71)|360|885|908|991)$/.test(n.j)?["canDrag","beginDrag","isDragging","endDrag"]:null,u=/^(2(05|2|22)|5(5|51|71)|360|885|908|991)$/.test(n.j)?["beginDrag"]:null,l=/^(2(05|2|22)|5(5|51|71)|360|885|908|991)$/.test(n.j)?function(){function e(t,n,r){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.props=null,this.beginDrag=function(){if(o.props)return o.spec.beginDrag(o.props,o.monitor,o.ref.current)},this.spec=t,this.monitor=n,this.ref=r}var t,n,r;return t=e,(n=[{key:"receiveProps",value:function(e){this.props=e}},{key:"canDrag",value:function(){return!!this.props&&(!this.spec.canDrag||this.spec.canDrag(this.props,this.monitor))}},{key:"isDragging",value:function(e,t){return!!this.props&&(this.spec.isDragging?this.spec.isDragging(this.props,this.monitor):t===e.getSourceId())}},{key:"endDrag",value:function(){this.props&&this.spec.endDrag&&this.spec.endDrag(this.props,this.monitor,(0,o.Al)(this.ref))}}])&&i(t.prototype,n),r&&i(t,r),e}():null;function s(e){return Object.keys(e).forEach((function(t){(0,r.k)(a.indexOf(t)>-1,'Expected the drag source specification to only have some of the following keys: %s. Instead received a specification with an unexpected "%s" key. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',a.join(", "),t),(0,r.k)("function"==typeof e[t],"Expected %s in the drag source specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source",t,t,e[t])})),u.forEach((function(t){(0,r.k)("function"==typeof e[t],"Expected %s in the drag source specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source",t,t,e[t])})),function(t,n){return new l(e,t,n)}}},8292:(e,t,n)=>{"use strict";if(n.d(t,{Z:()=>l}),/^(2(05|2|22)|5(5|51|71)|360|885|908|991)$/.test(n.j))var r=n(94111);if(/^(2(05|2|22)|5(5|51|71)|360|885|908|991)$/.test(n.j))var o=n(97248);function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var a=/^(2(05|2|22)|5(5|51|71)|360|885|908|991)$/.test(n.j)?["canDrop","hover","drop"]:null,u=/^(2(05|2|22)|5(5|51|71)|360|885|908|991)$/.test(n.j)?function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.props=null,this.spec=t,this.monitor=n,this.ref=r}var t,n,r;return t=e,(n=[{key:"receiveProps",value:function(e){this.props=e}},{key:"receiveMonitor",value:function(e){this.monitor=e}},{key:"canDrop",value:function(){return!this.spec.canDrop||this.spec.canDrop(this.props,this.monitor)}},{key:"hover",value:function(){this.spec.hover&&this.spec.hover(this.props,this.monitor,(0,o.Al)(this.ref))}},{key:"drop",value:function(){if(this.spec.drop)return this.spec.drop(this.props,this.monitor,this.ref.current)}}])&&i(t.prototype,n),r&&i(t,r),e}():null;function l(e){return Object.keys(e).forEach((function(t){(0,r.k)(a.indexOf(t)>-1,'Expected the drop target specification to only have some of the following keys: %s. Instead received a specification with an unexpected "%s" key. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',a.join(", "),t),(0,r.k)("function"==typeof e[t],"Expected %s in the drop target specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target",t,t,e[t])})),function(t,n){return new u(e,t,n)}}},49285:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var r=n(89526);if(/^(2(05|2|22)|5(5|51|71)|360|885|908|991)$/.test(n.j))var o=n(39292);if(/^(2(05|2|22)|5(5|51|71)|360|885|908|991)$/.test(n.j))var i=n(94111);var a=n(41281),u=n.n(a);if(/^(2(05|2|22)|5(5|51|71)|360|885|908|991)$/.test(n.j))var l=n(10829);if(/^(2(05|2|22)|5(5|51|71)|360|885|908|991)$/.test(n.j))var s=n(50482);if(/^(2(05|2|22)|5(5|51|71)|360|885|908|991)$/.test(n.j))var c=n(97248);function f(e){return(f="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)}function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e))&&"[object Arguments]"!==Object.prototype.toString.call(e))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t){return!t||"object"!==f(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function g(e,t){return(g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(e){var t=e.DecoratedComponent,n=e.createHandler,a=e.createMonitor,f=e.createConnector,m=e.registerHandler,y=e.containerDisplayName,b=e.getType,w=e.collect,S=e.options.arePropsEqual,T=void 0===S?o.w:S,k=t,E=t.displayName||t.name||"Component",x=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=h(this,v(t).call(this,e))).decoratedRef=r.createRef(),n.handleChange=function(){var e=n.getCurrentState();(0,o.w)(e,n.state)||n.setState(e)},n.disposable=new s.M$,n.receiveProps(e),n.dispose(),n}var u,y,S;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&g(e,t)}(t,e),u=t,(y=[{key:"getHandlerId",value:function(){return this.handlerId}},{key:"getDecoratedComponentInstance",value:function(){return(0,i.k)(this.decoratedRef.current,"In order to access an instance of the decorated component, it must either be a class component or use React.forwardRef()"),this.decoratedRef.current}},{key:"shouldComponentUpdate",value:function(e,t){return!T(e,this.props)||!(0,o.w)(t,this.state)}},{key:"componentDidMount",value:function(){this.disposable=new s.M$,this.currentType=void 0,this.receiveProps(this.props),this.handleChange()}},{key:"componentDidUpdate",value:function(e){T(this.props,e)||(this.receiveProps(this.props),this.handleChange())}},{key:"componentWillUnmount",value:function(){this.dispose()}},{key:"receiveProps",value:function(e){this.handler&&(this.handler.receiveProps(e),this.receiveType(b(e)))}},{key:"receiveType",value:function(e){if(this.handlerMonitor&&this.manager&&this.handlerConnector&&e!==this.currentType){this.currentType=e;var t=d(m(e,this.handler,this.manager),2),n=t[0],r=t[1];this.handlerId=n,this.handlerMonitor.receiveHandlerId(n),this.handlerConnector.receiveHandlerId(n);var o=this.manager.getMonitor().subscribeToStateChange(this.handleChange,{handlerIds:[n]});this.disposable.setDisposable(new s.Xz(new s.JT(o),new s.JT(r)))}}},{key:"dispose",value:function(){this.disposable.dispose(),this.handlerConnector&&this.handlerConnector.receiveHandlerId(null)}},{key:"getCurrentState",value:function(){return this.handlerConnector?w(this.handlerConnector.hooks,this.handlerMonitor,this.props):{}}},{key:"render",value:function(){var e=this;return r.createElement(l.L.Consumer,null,(function(t){var n=t.dragDropManager;return e.receiveDragDropManager(n),"undefined"!=typeof requestAnimationFrame&&requestAnimationFrame((function(){return e.handlerConnector.reconnect()})),r.createElement(k,Object.assign({},e.props,e.getCurrentState(),{ref:(0,c.J7)(k)?e.decoratedRef:null}))}))}},{key:"receiveDragDropManager",value:function(e){void 0===this.manager&&((0,i.k)(void 0!==e,"Could not find the drag and drop manager in the context of %s. Make sure to render a DndProvider component in your top-level component. Read more: http://react-dnd.github.io/react-dnd/docs/troubleshooting#could-not-find-the-drag-and-drop-manager-in-the-context",E,E),void 0!==e&&(this.manager=e,this.handlerMonitor=a(e),this.handlerConnector=f(e.getBackend()),this.handler=n(this.handlerMonitor,this.decoratedRef)))}}])&&p(u.prototype,y),S&&p(u,S),t}(r.Component);return x.DecoratedComponent=t,x.displayName="".concat(y,"(").concat(E,")"),u()(x,t)}},50482:(e,t,n)=>{"use strict";n.d(t,{JT:()=>u,Xz:()=>l,M$:()=>s});var r=n(22341);function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}var u=function(){function e(t){o(this,e),this.isDisposed=!1,this.action=(0,r.mf)(t)?t:r.ZT}return a(e,[{key:"dispose",value:function(){this.isDisposed||(this.action(),this.isDisposed=!0)}}],[{key:"isDisposable",value:function(e){return e&&(0,r.mf)(e.dispose)}},{key:"_fixup",value:function(t){return e.isDisposable(t)?t:e.empty}},{key:"create",value:function(t){return new e(t)}}]),e}();u.empty={dispose:r.ZT};var l=/^(2(05|2|22)|5(5|51|71)|360|885|908|991)$/.test(n.j)?function(){function e(){o(this,e),this.isDisposed=!1;for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];this.disposables=n}return a(e,[{key:"add",value:function(e){this.isDisposed?e.dispose():this.disposables.push(e)}},{key:"remove",value:function(e){var t=!1;if(!this.isDisposed){var n=this.disposables.indexOf(e);-1!==n&&(t=!0,this.disposables.splice(n,1),e.dispose())}return t}},{key:"clear",value:function(){if(!this.isDisposed){for(var e=this.disposables.length,t=new Array(e),n=0;n<e;n++)t[n]=this.disposables[n];this.disposables=[];for(var r=0;r<e;r++)t[r].dispose()}}},{key:"dispose",value:function(){if(!this.isDisposed){this.isDisposed=!0;for(var e=this.disposables.length,t=new Array(e),n=0;n<e;n++)t[n]=this.disposables[n];this.disposables=[];for(var r=0;r<e;r++)t[r].dispose()}}}]),e}():null,s=/^(2(05|2|22)|5(5|51|71)|360|885|908|991)$/.test(n.j)?function(){function e(){o(this,e),this.isDisposed=!1}return a(e,[{key:"getDisposable",value:function(){return this.current}},{key:"setDisposable",value:function(e){var t=this.isDisposed;if(!t){var n=this.current;this.current=e,n&&n.dispose()}t&&e&&e.dispose()}},{key:"dispose",value:function(){if(!this.isDisposed){this.isDisposed=!0;var e=this.current;this.current=void 0,e&&e.dispose()}}}]),e}():null},97248:(e,t,n)=>{"use strict";function r(e){var t=e.current;return null==t?null:t.decoratedRef?t.decoratedRef.current:t}function o(e){return(t=e)&&t.prototype&&"function"==typeof t.prototype.render||function(e){return e&&e.$$typeof&&"Symbol(react.forward_ref)"===e.$$typeof.toString()}(e);var t}function i(e,t){}n.d(t,{Al:()=>r,J7:()=>o,U9:()=>i})},58675:(e,t,n)=>{"use strict";if(n.d(t,{r:()=>u}),/^(205|55|991)$/.test(n.j))var r=n(39292);var o=n(89526);if(/^(205|55|991)$/.test(n.j))var i=n(56895);function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e))&&"[object Arguments]"!==Object.prototype.toString.call(e))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function u(e,t,n){var u=a((0,o.useState)((function(){return t(e)})),2),l=u[0],s=u[1],c=(0,o.useCallback)((function(){var o=t(e);(0,r.w)(l,o)||(s(o),n&&n())}),[l,e,n]);return(0,i.L)(c,[]),[l,c]}},17615:(e,t,n)=>{"use strict";n.d(t,{N:()=>a});var r=n(89526);if(/^(205|55|991)$/.test(n.j))var o=n(94111);if(/^(205|55|991)$/.test(n.j))var i=n(10829);function a(){var e=(0,r.useContext)(i.L).dragDropManager;return(0,o.k)(null!=e,"Expected drag drop context"),e}},56895:(e,t,n)=>{"use strict";n.d(t,{L:()=>o});var r=n(89526),o="undefined"!=typeof window?r.useLayoutEffect:r.useEffect},1954:(e,t,n)=>{"use strict";n.d(t,{j:()=>a});var r=n(89526);if(/^(2(05|2|22)|5(5|51|71)|360|885|908|991)$/.test(n.j))var o=n(94111);function i(e,t){"function"==typeof e?e(t):e.current=t}function a(e,t){var n=e.ref;return(0,o.k)("string"!=typeof n,"Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://facebook.github.io/react/docs/more-about-refs.html#the-ref-callback-attribute"),n?(0,r.cloneElement)(e,{ref:function(e){i(n,e),i(t,e)}}):(0,r.cloneElement)(e,{ref:t})}},20258:(e,t,n)=>{"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e){return null!==e&&"object"===r(e)&&e.hasOwnProperty("current")}n.d(t,{d:()=>o})},7489:(e,t,n)=>{"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){return"string"==typeof e||"symbol"===r(e)||!!t&&Array.isArray(e)&&e.every((function(e){return o(e,!1)}))}n.d(t,{m:()=>o})},22341:(e,t,n)=>{"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e){return"function"==typeof e}function i(){}function a(e){if(!function(e){return"object"===r(e)&&null!==e}(e))return!1;if(null===Object.getPrototypeOf(e))return!0;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}n.d(t,{mf:()=>o,ZT:()=>i,PO:()=>a})},57799:(e,t,n)=>{"use strict"; -/** @license React v16.13.1 - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var r=n(89526),o=n(99813),i=n(72851);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(a(227));function u(e,t,n,r,o,i,a,u,l){var s=Array.prototype.slice.call(arguments,3);try{t.apply(n,s)}catch(e){this.onError(e)}}var l=!1,s=null,c=!1,f=null,d={onError:function(e){l=!0,s=e}};function p(e,t,n,r,o,i,a,c,f){l=!1,s=null,u.apply(d,arguments)}var h=null,v=null,g=null;function m(e,t,n){var r=e.type||"unknown-event";e.currentTarget=g(n),function(e,t,n,r,o,i,u,d,h){if(p.apply(this,arguments),l){if(!l)throw Error(a(198));var v=s;l=!1,s=null,c||(c=!0,f=v)}}(r,t,void 0,e),e.currentTarget=null}var y=null,b={};function w(){if(y)for(var e in b){var t=b[e],n=y.indexOf(e);if(!(-1<n))throw Error(a(96,e));if(!T[n]){if(!t.extractEvents)throw Error(a(97,e));for(var r in T[n]=t,n=t.eventTypes){var o=void 0,i=n[r],u=t,l=r;if(k.hasOwnProperty(l))throw Error(a(99,l));k[l]=i;var s=i.phasedRegistrationNames;if(s){for(o in s)s.hasOwnProperty(o)&&S(s[o],u,l);o=!0}else i.registrationName?(S(i.registrationName,u,l),o=!0):o=!1;if(!o)throw Error(a(98,r,e))}}}}function S(e,t,n){if(E[e])throw Error(a(100,e));E[e]=t,x[e]=t.eventTypes[n].dependencies}var T=[],k={},E={},x={};function C(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var r=e[t];if(!b.hasOwnProperty(t)||b[t]!==r){if(b[t])throw Error(a(102,t));b[t]=r,n=!0}}n&&w()}var _=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),O=null,P=null,D=null;function I(e){if(e=v(e)){if("function"!=typeof O)throw Error(a(280));var t=e.stateNode;t&&(t=h(t),O(e.stateNode,e.type,t))}}function N(e){P?D?D.push(e):D=[e]:P=e}function M(){if(P){var e=P,t=D;if(D=P=null,I(e),t)for(e=0;e<t.length;e++)I(t[e])}}function R(e,t){return e(t)}function j(e,t,n,r,o){return e(t,n,r,o)}function z(){}var L=R,A=!1,F=!1;function $(){null===P&&null===D||(z(),M())}function U(e,t,n){if(F)return e(t,n);F=!0;try{return L(e,t,n)}finally{F=!1,$()}}var W=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,H=Object.prototype.hasOwnProperty,Z={},V={};function B(e,t,n,r,o,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i}var K={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){K[e]=new B(e,0,!1,e,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];K[t]=new B(t,1,!1,e[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){K[e]=new B(e,2,!1,e.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){K[e]=new B(e,2,!1,e,null,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){K[e]=new B(e,3,!1,e.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(e){K[e]=new B(e,3,!0,e,null,!1)})),["capture","download"].forEach((function(e){K[e]=new B(e,4,!1,e,null,!1)})),["cols","rows","size","span"].forEach((function(e){K[e]=new B(e,6,!1,e,null,!1)})),["rowSpan","start"].forEach((function(e){K[e]=new B(e,5,!1,e.toLowerCase(),null,!1)}));var q=/[\-:]([a-z])/g;function Q(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(q,Q);K[t]=new B(t,1,!1,e,null,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(q,Q);K[t]=new B(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(q,Q);K[t]=new B(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(e){K[e]=new B(e,1,!1,e.toLowerCase(),null,!1)})),K.xlinkHref=new B("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(e){K[e]=new B(e,1,!1,e.toLowerCase(),null,!0)}));var Y=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function X(e,t,n,r){var o=K.hasOwnProperty(t)?K[t]:null;(null!==o?0===o.type:!r&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!H.call(V,e)||!H.call(Z,e)&&(W.test(e)?V[e]=!0:(Z[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}Y.hasOwnProperty("ReactCurrentDispatcher")||(Y.ReactCurrentDispatcher={current:null}),Y.hasOwnProperty("ReactCurrentBatchConfig")||(Y.ReactCurrentBatchConfig={suspense:null});var G=/^(.*)[\\\/]/,J="function"==typeof Symbol&&Symbol.for,ee=J?Symbol.for("react.element"):60103,te=J?Symbol.for("react.portal"):60106,ne=J?Symbol.for("react.fragment"):60107,re=J?Symbol.for("react.strict_mode"):60108,oe=J?Symbol.for("react.profiler"):60114,ie=J?Symbol.for("react.provider"):60109,ae=J?Symbol.for("react.context"):60110,ue=J?Symbol.for("react.concurrent_mode"):60111,le=J?Symbol.for("react.forward_ref"):60112,se=J?Symbol.for("react.suspense"):60113,ce=J?Symbol.for("react.suspense_list"):60120,fe=J?Symbol.for("react.memo"):60115,de=J?Symbol.for("react.lazy"):60116,pe=J?Symbol.for("react.block"):60121,he="function"==typeof Symbol&&Symbol.iterator;function ve(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=he&&e[he]||e["@@iterator"])?e:null}function ge(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case ne:return"Fragment";case te:return"Portal";case oe:return"Profiler";case re:return"StrictMode";case se:return"Suspense";case ce:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case ae:return"Context.Consumer";case ie:return"Context.Provider";case le:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case fe:return ge(e.type);case pe:return ge(e.render);case de:if(e=1===e._status?e._result:null)return ge(e)}return null}function me(e){var t="";do{e:switch(e.tag){case 3:case 4:case 6:case 7:case 10:case 9:var n="";break e;default:var r=e._debugOwner,o=e._debugSource,i=ge(e.type);n=null,r&&(n=ge(r.type)),r=i,i="",o?i=" (at "+o.fileName.replace(G,"")+":"+o.lineNumber+")":n&&(i=" (created by "+n+")"),n="\n in "+(r||"Unknown")+i}t+=n,e=e.return}while(e);return t}function ye(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function be(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function we(e){e._valueTracker||(e._valueTracker=function(e){var t=be(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Se(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=be(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Te(e,t){var n=t.checked;return o({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function ke(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=ye(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Ee(e,t){null!=(t=t.checked)&&X(e,"checked",t,!1)}function xe(e,t){Ee(e,t);var n=ye(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?_e(e,t.type,n):t.hasOwnProperty("defaultValue")&&_e(e,t.type,ye(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Ce(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function _e(e,t,n){"number"===t&&e.ownerDocument.activeElement===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function Oe(e,t){return e=o({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function Pe(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+ye(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function De(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return o({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Ie(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:ye(n)}}function Ne(e,t){var n=ye(t.value),r=ye(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function Me(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var Re="http://www.w3.org/1999/xhtml",je="http://www.w3.org/2000/svg";function ze(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?ze(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var Ae,Fe,$e=(Fe=function(e,t){if(e.namespaceURI!==je||"innerHTML"in e)e.innerHTML=t;else{for((Ae=Ae||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Ae.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return Fe(e,t)}))}:Fe);function Ue(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}function We(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var He={animationend:We("Animation","AnimationEnd"),animationiteration:We("Animation","AnimationIteration"),animationstart:We("Animation","AnimationStart"),transitionend:We("Transition","TransitionEnd")},Ze={},Ve={};function Be(e){if(Ze[e])return Ze[e];if(!He[e])return e;var t,n=He[e];for(t in n)if(n.hasOwnProperty(t)&&t in Ve)return Ze[e]=n[t];return e}_&&(Ve=document.createElement("div").style,"AnimationEvent"in window||(delete He.animationend.animation,delete He.animationiteration.animation,delete He.animationstart.animation),"TransitionEvent"in window||delete He.transitionend.transition);var Ke=Be("animationend"),qe=Be("animationiteration"),Qe=Be("animationstart"),Ye=Be("transitionend"),Xe="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Ge=new("function"==typeof WeakMap?WeakMap:Map);function Je(e){var t=Ge.get(e);return void 0===t&&(t=new Map,Ge.set(e,t)),t}function et(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).effectTag)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function tt(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function nt(e){if(et(e)!==e)throw Error(a(188))}function rt(e){if(!(e=function(e){var t=e.alternate;if(!t){if(null===(t=et(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(r=o.return)){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return nt(o),e;if(i===r)return nt(o),t;i=i.sibling}throw Error(a(188))}if(n.return!==r.return)n=o,r=i;else{for(var u=!1,l=o.child;l;){if(l===n){u=!0,n=o,r=i;break}if(l===r){u=!0,r=o,n=i;break}l=l.sibling}if(!u){for(l=i.child;l;){if(l===n){u=!0,n=i,r=o;break}if(l===r){u=!0,r=i,n=o;break}l=l.sibling}if(!u)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function ot(e,t){if(null==t)throw Error(a(30));return null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function it(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var at=null;function ut(e){if(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var r=0;r<t.length&&!e.isPropagationStopped();r++)m(e,t[r],n[r]);else t&&m(e,t,n);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}function lt(e){if(null!==e&&(at=ot(at,e)),e=at,at=null,e){if(it(e,ut),at)throw Error(a(95));if(c)throw e=f,c=!1,f=null,e}}function st(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function ct(e){if(!_)return!1;var t=(e="on"+e)in document;return t||((t=document.createElement("div")).setAttribute(e,"return;"),t="function"==typeof t[e]),t}var ft=[];function dt(e){e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>ft.length&&ft.push(e)}function pt(e,t,n,r){if(ft.length){var o=ft.pop();return o.topLevelType=e,o.eventSystemFlags=r,o.nativeEvent=t,o.targetInst=n,o}return{topLevelType:e,eventSystemFlags:r,nativeEvent:t,targetInst:n,ancestors:[]}}function ht(e){var t=e.targetInst,n=t;do{if(!n){e.ancestors.push(n);break}var r=n;if(3===r.tag)r=r.stateNode.containerInfo;else{for(;r.return;)r=r.return;r=3!==r.tag?null:r.stateNode.containerInfo}if(!r)break;5!==(t=n.tag)&&6!==t||e.ancestors.push(n),n=In(r)}while(n);for(n=0;n<e.ancestors.length;n++){t=e.ancestors[n];var o=st(e.nativeEvent);r=e.topLevelType;var i=e.nativeEvent,a=e.eventSystemFlags;0===n&&(a|=64);for(var u=null,l=0;l<T.length;l++){var s=T[l];s&&(s=s.extractEvents(r,t,i,o,a))&&(u=ot(u,s))}lt(u)}}function vt(e,t,n){if(!n.has(e)){switch(e){case"scroll":Qt(t,"scroll",!0);break;case"focus":case"blur":Qt(t,"focus",!0),Qt(t,"blur",!0),n.set("blur",null),n.set("focus",null);break;case"cancel":case"close":ct(e)&&Qt(t,e,!0);break;case"invalid":case"submit":case"reset":break;default:-1===Xe.indexOf(e)&&qt(e,t)}n.set(e,null)}}var gt,mt,yt,bt=!1,wt=[],St=null,Tt=null,kt=null,Et=new Map,xt=new Map,Ct=[],_t="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput close cancel copy cut paste click change contextmenu reset submit".split(" "),Ot="focus blur dragenter dragleave mouseover mouseout pointerover pointerout gotpointercapture lostpointercapture".split(" ");function Pt(e,t,n,r,o){return{blockedOn:e,topLevelType:t,eventSystemFlags:32|n,nativeEvent:o,container:r}}function Dt(e,t){switch(e){case"focus":case"blur":St=null;break;case"dragenter":case"dragleave":Tt=null;break;case"mouseover":case"mouseout":kt=null;break;case"pointerover":case"pointerout":Et.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":xt.delete(t.pointerId)}}function It(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e=Pt(t,n,r,o,i),null!==t&&(null!==(t=Nn(t))&&mt(t)),e):(e.eventSystemFlags|=r,e)}function Nt(e){var t=In(e.target);if(null!==t){var n=et(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=tt(n)))return e.blockedOn=t,void i.unstable_runWithPriority(e.priority,(function(){yt(n)}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Mt(e){if(null!==e.blockedOn)return!1;var t=Jt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);if(null!==t){var n=Nn(t);return null!==n&&mt(n),e.blockedOn=t,!1}return!0}function Rt(e,t,n){Mt(e)&&n.delete(t)}function jt(){for(bt=!1;0<wt.length;){var e=wt[0];if(null!==e.blockedOn){null!==(e=Nn(e.blockedOn))&>(e);break}var t=Jt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);null!==t?e.blockedOn=t:wt.shift()}null!==St&&Mt(St)&&(St=null),null!==Tt&&Mt(Tt)&&(Tt=null),null!==kt&&Mt(kt)&&(kt=null),Et.forEach(Rt),xt.forEach(Rt)}function zt(e,t){e.blockedOn===t&&(e.blockedOn=null,bt||(bt=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,jt)))}function Lt(e){function t(t){return zt(t,e)}if(0<wt.length){zt(wt[0],e);for(var n=1;n<wt.length;n++){var r=wt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==St&&zt(St,e),null!==Tt&&zt(Tt,e),null!==kt&&zt(kt,e),Et.forEach(t),xt.forEach(t),n=0;n<Ct.length;n++)(r=Ct[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Ct.length&&null===(n=Ct[0]).blockedOn;)Nt(n),null===n.blockedOn&&Ct.shift()}var At={},Ft=new Map,$t=new Map,Ut=["abort","abort",Ke,"animationEnd",qe,"animationIteration",Qe,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Ye,"transitionEnd","waiting","waiting"];function Wt(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],o=e[n+1],i="on"+(o[0].toUpperCase()+o.slice(1));i={phasedRegistrationNames:{bubbled:i,captured:i+"Capture"},dependencies:[r],eventPriority:t},$t.set(r,t),Ft.set(r,i),At[o]=i}}Wt("blur blur cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focus focus input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Wt("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Wt(Ut,2);for(var Ht="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Zt=0;Zt<Ht.length;Zt++)$t.set(Ht[Zt],0);var Vt=i.unstable_UserBlockingPriority,Bt=i.unstable_runWithPriority,Kt=!0;function qt(e,t){Qt(t,e,!1)}function Qt(e,t,n){var r=$t.get(t);switch(void 0===r?2:r){case 0:r=Yt.bind(null,t,1,e);break;case 1:r=Xt.bind(null,t,1,e);break;default:r=Gt.bind(null,t,1,e)}n?e.addEventListener(t,r,!0):e.addEventListener(t,r,!1)}function Yt(e,t,n,r){A||z();var o=Gt,i=A;A=!0;try{j(o,e,t,n,r)}finally{(A=i)||$()}}function Xt(e,t,n,r){Bt(Vt,Gt.bind(null,e,t,n,r))}function Gt(e,t,n,r){if(Kt)if(0<wt.length&&-1<_t.indexOf(e))e=Pt(null,e,t,n,r),wt.push(e);else{var o=Jt(e,t,n,r);if(null===o)Dt(e,r);else if(-1<_t.indexOf(e))e=Pt(o,e,t,n,r),wt.push(e);else if(!function(e,t,n,r,o){switch(t){case"focus":return St=It(St,e,t,n,r,o),!0;case"dragenter":return Tt=It(Tt,e,t,n,r,o),!0;case"mouseover":return kt=It(kt,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Et.set(i,It(Et.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,xt.set(i,It(xt.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r)){Dt(e,r),e=pt(e,r,null,t);try{U(ht,e)}finally{dt(e)}}}}function Jt(e,t,n,r){if(null!==(n=In(n=st(r)))){var o=et(n);if(null===o)n=null;else{var i=o.tag;if(13===i){if(null!==(n=tt(o)))return n;n=null}else if(3===i){if(o.stateNode.hydrate)return 3===o.tag?o.stateNode.containerInfo:null;n=null}else o!==n&&(n=null)}}e=pt(e,r,n,t);try{U(ht,e)}finally{dt(e)}return null}var en={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},tn=["Webkit","ms","Moz","O"];function nn(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||en.hasOwnProperty(e)&&en[e]?(""+t).trim():t+"px"}function rn(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=nn(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(en).forEach((function(e){tn.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),en[t]=en[e]}))}));var on=o({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function an(e,t){if(t){if(on[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e,""));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(a(62,""))}}function un(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ln=Re;function sn(e,t){var n=Je(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=x[t];for(var r=0;r<t.length;r++)vt(t[r],e,n)}function cn(){}function fn(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function dn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function pn(e,t){var n,r=dn(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=dn(r)}}function hn(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?hn(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function vn(){for(var e=window,t=fn();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=fn((e=t.contentWindow).document)}return t}function gn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var mn="$?",yn="$!",bn=null,wn=null;function Sn(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Tn(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var kn="function"==typeof setTimeout?setTimeout:void 0,En="function"==typeof clearTimeout?clearTimeout:void 0;function xn(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Cn(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||n===yn||n===mn){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var _n=Math.random().toString(36).slice(2),On="__reactInternalInstance$"+_n,Pn="__reactEventHandlers$"+_n,Dn="__reactContainere$"+_n;function In(e){var t=e[On];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Dn]||n[On]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Cn(e);null!==e;){if(n=e[On])return n;e=Cn(e)}return t}n=(e=n).parentNode}return null}function Nn(e){return!(e=e[On]||e[Dn])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Mn(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function Rn(e){return e[Pn]||null}function jn(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function zn(e,t){var n=e.stateNode;if(!n)return null;var r=h(n);if(!r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(a(231,t,typeof n));return n}function Ln(e,t,n){(t=zn(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=ot(n._dispatchListeners,t),n._dispatchInstances=ot(n._dispatchInstances,e))}function An(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=jn(t);for(t=n.length;0<t--;)Ln(n[t],"captured",e);for(t=0;t<n.length;t++)Ln(n[t],"bubbled",e)}}function Fn(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=zn(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=ot(n._dispatchListeners,t),n._dispatchInstances=ot(n._dispatchInstances,e))}function $n(e){e&&e.dispatchConfig.registrationName&&Fn(e._targetInst,null,e)}function Un(e){it(e,An)}var Wn=null,Hn=null,Zn=null;function Vn(){if(Zn)return Zn;var e,t,n=Hn,r=n.length,o="value"in Wn?Wn.value:Wn.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return Zn=o.slice(e,1<t?1-t:void 0)}function Bn(){return!0}function Kn(){return!1}function qn(e,t,n,r){for(var o in this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n,e=this.constructor.Interface)e.hasOwnProperty(o)&&((t=e[o])?this[o]=t(n):"target"===o?this.target=r:this[o]=n[o]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?Bn:Kn,this.isPropagationStopped=Kn,this}function Qn(e,t,n,r){if(this.eventPool.length){var o=this.eventPool.pop();return this.call(o,e,t,n,r),o}return new this(e,t,n,r)}function Yn(e){if(!(e instanceof this))throw Error(a(279));e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function Xn(e){e.eventPool=[],e.getPooled=Qn,e.release=Yn}o(qn.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Bn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Bn)},persist:function(){this.isPersistent=Bn},isPersistent:Kn,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=Kn,this._dispatchInstances=this._dispatchListeners=null}}),qn.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},qn.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var i=new t;return o(i,n.prototype),n.prototype=i,n.prototype.constructor=n,n.Interface=o({},r.Interface,e),n.extend=r.extend,Xn(n),n},Xn(qn);var Gn=qn.extend({data:null}),Jn=qn.extend({data:null}),er=[9,13,27,32],tr=_&&"CompositionEvent"in window,nr=null;_&&"documentMode"in document&&(nr=document.documentMode);var rr=_&&"TextEvent"in window&&!nr,or=_&&(!tr||nr&&8<nr&&11>=nr),ir=String.fromCharCode(32),ar={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(" ")}},ur=!1;function lr(e,t){switch(e){case"keyup":return-1!==er.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function sr(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var cr=!1;var fr={eventTypes:ar,extractEvents:function(e,t,n,r){var o;if(tr)e:{switch(e){case"compositionstart":var i=ar.compositionStart;break e;case"compositionend":i=ar.compositionEnd;break e;case"compositionupdate":i=ar.compositionUpdate;break e}i=void 0}else cr?lr(e,n)&&(i=ar.compositionEnd):"keydown"===e&&229===n.keyCode&&(i=ar.compositionStart);return i?(or&&"ko"!==n.locale&&(cr||i!==ar.compositionStart?i===ar.compositionEnd&&cr&&(o=Vn()):(Hn="value"in(Wn=r)?Wn.value:Wn.textContent,cr=!0)),i=Gn.getPooled(i,t,n,r),o?i.data=o:null!==(o=sr(n))&&(i.data=o),Un(i),o=i):o=null,(e=rr?function(e,t){switch(e){case"compositionend":return sr(t);case"keypress":return 32!==t.which?null:(ur=!0,ir);case"textInput":return(e=t.data)===ir&&ur?null:e;default:return null}}(e,n):function(e,t){if(cr)return"compositionend"===e||!tr&&lr(e,t)?(e=Vn(),Zn=Hn=Wn=null,cr=!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<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return or&&"ko"!==t.locale?null:t.data;default:return null}}(e,n))?((t=Jn.getPooled(ar.beforeInput,t,n,r)).data=e,Un(t)):t=null,null===o?t:null===t?o:[o,t]}},dr={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function pr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!dr[e.type]:"textarea"===t}var hr={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function vr(e,t,n){return(e=qn.getPooled(hr.change,e,t,n)).type="change",N(n),Un(e),e}var gr=null,mr=null;function yr(e){lt(e)}function br(e){if(Se(Mn(e)))return e}function wr(e,t){if("change"===e)return t}var Sr=!1;function Tr(){gr&&(gr.detachEvent("onpropertychange",kr),mr=gr=null)}function kr(e){if("value"===e.propertyName&&br(mr))if(e=vr(mr,e,st(e)),A)lt(e);else{A=!0;try{R(yr,e)}finally{A=!1,$()}}}function Er(e,t,n){"focus"===e?(Tr(),mr=n,(gr=t).attachEvent("onpropertychange",kr)):"blur"===e&&Tr()}function xr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return br(mr)}function Cr(e,t){if("click"===e)return br(t)}function _r(e,t){if("input"===e||"change"===e)return br(t)}_&&(Sr=ct("input")&&(!document.documentMode||9<document.documentMode));var Or={eventTypes:hr,_isInputEventSupported:Sr,extractEvents:function(e,t,n,r){var o=t?Mn(t):window,i=o.nodeName&&o.nodeName.toLowerCase();if("select"===i||"input"===i&&"file"===o.type)var a=wr;else if(pr(o))if(Sr)a=_r;else{a=xr;var u=Er}else(i=o.nodeName)&&"input"===i.toLowerCase()&&("checkbox"===o.type||"radio"===o.type)&&(a=Cr);if(a&&(a=a(e,t)))return vr(a,n,r);u&&u(e,o,t),"blur"===e&&(e=o._wrapperState)&&e.controlled&&"number"===o.type&&_e(o,"number",o.value)}},Pr=qn.extend({view:null,detail:null}),Dr={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ir(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Dr[e])&&!!t[e]}function Nr(){return Ir}var Mr=0,Rr=0,jr=!1,zr=!1,Lr=Pr.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:Nr,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},movementX:function(e){if("movementX"in e)return e.movementX;var t=Mr;return Mr=e.screenX,jr?"mousemove"===e.type?e.screenX-t:0:(jr=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=Rr;return Rr=e.screenY,zr?"mousemove"===e.type?e.screenY-t:0:(zr=!0,0)}}),Ar=Lr.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),Fr={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},$r={eventTypes:Fr,extractEvents:function(e,t,n,r,o){var i="mouseover"===e||"pointerover"===e,a="mouseout"===e||"pointerout"===e;if(i&&0==(32&o)&&(n.relatedTarget||n.fromElement)||!a&&!i)return null;(i=r.window===r?r:(i=r.ownerDocument)?i.defaultView||i.parentWindow:window,a)?(a=t,null!==(t=(t=n.relatedTarget||n.toElement)?In(t):null)&&(t!==et(t)||5!==t.tag&&6!==t.tag)&&(t=null)):a=null;if(a===t)return null;if("mouseout"===e||"mouseover"===e)var u=Lr,l=Fr.mouseLeave,s=Fr.mouseEnter,c="mouse";else"pointerout"!==e&&"pointerover"!==e||(u=Ar,l=Fr.pointerLeave,s=Fr.pointerEnter,c="pointer");if(e=null==a?i:Mn(a),i=null==t?i:Mn(t),(l=u.getPooled(l,a,n,r)).type=c+"leave",l.target=e,l.relatedTarget=i,(n=u.getPooled(s,t,n,r)).type=c+"enter",n.target=i,n.relatedTarget=e,c=t,(r=a)&&c)e:{for(s=c,a=0,e=u=r;e;e=jn(e))a++;for(e=0,t=s;t;t=jn(t))e++;for(;0<a-e;)u=jn(u),a--;for(;0<e-a;)s=jn(s),e--;for(;a--;){if(u===s||u===s.alternate)break e;u=jn(u),s=jn(s)}u=null}else u=null;for(s=u,u=[];r&&r!==s&&(null===(a=r.alternate)||a!==s);)u.push(r),r=jn(r);for(r=[];c&&c!==s&&(null===(a=c.alternate)||a!==s);)r.push(c),c=jn(c);for(c=0;c<u.length;c++)Fn(u[c],"bubbled",l);for(c=r.length;0<c--;)Fn(r[c],"captured",n);return 0==(64&o)?[l]:[l,n]}};var Ur="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},Wr=Object.prototype.hasOwnProperty;function Hr(e,t){if(Ur(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!Wr.call(t,n[r])||!Ur(e[n[r]],t[n[r]]))return!1;return!0}var Zr=_&&"documentMode"in document&&11>=document.documentMode,Vr={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Br=null,Kr=null,qr=null,Qr=!1;function Yr(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return Qr||null==Br||Br!==fn(n)?null:("selectionStart"in(n=Br)&&gn(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},qr&&Hr(qr,n)?null:(qr=n,(e=qn.getPooled(Vr.select,Kr,e,t)).type="select",e.target=Br,Un(e),e))}var Xr={eventTypes:Vr,extractEvents:function(e,t,n,r,o,i){if(!(i=!(o=i||(r.window===r?r.document:9===r.nodeType?r:r.ownerDocument)))){e:{o=Je(o),i=x.onSelect;for(var a=0;a<i.length;a++)if(!o.has(i[a])){o=!1;break e}o=!0}i=!o}if(i)return null;switch(o=t?Mn(t):window,e){case"focus":(pr(o)||"true"===o.contentEditable)&&(Br=o,Kr=t,qr=null);break;case"blur":qr=Kr=Br=null;break;case"mousedown":Qr=!0;break;case"contextmenu":case"mouseup":case"dragend":return Qr=!1,Yr(n,r);case"selectionchange":if(Zr)break;case"keydown":case"keyup":return Yr(n,r)}return null}},Gr=qn.extend({animationName:null,elapsedTime:null,pseudoElement:null}),Jr=qn.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),eo=Pr.extend({relatedTarget:null});function to(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}var no={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ro={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},oo=Pr.extend({key:function(e){if(e.key){var t=no[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=to(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?ro[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:Nr,charCode:function(e){return"keypress"===e.type?to(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?to(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),io=Lr.extend({dataTransfer:null}),ao=Pr.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Nr}),uo=qn.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),lo=Lr.extend({deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null}),so={eventTypes:At,extractEvents:function(e,t,n,r){var o=Ft.get(e);if(!o)return null;switch(e){case"keypress":if(0===to(n))return null;case"keydown":case"keyup":e=oo;break;case"blur":case"focus":e=eo;break;case"click":if(2===n.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":e=Lr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=io;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=ao;break;case Ke:case qe:case Qe:e=Gr;break;case Ye:e=uo;break;case"scroll":e=Pr;break;case"wheel":e=lo;break;case"copy":case"cut":case"paste":e=Jr;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=Ar;break;default:e=qn}return Un(t=e.getPooled(o,t,n,r)),t}};if(y)throw Error(a(101));y=Array.prototype.slice.call("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),w(),h=Rn,v=Nn,g=Mn,C({SimpleEventPlugin:so,EnterLeaveEventPlugin:$r,ChangeEventPlugin:Or,SelectEventPlugin:Xr,BeforeInputEventPlugin:fr});var co=[],fo=-1;function po(e){0>fo||(e.current=co[fo],co[fo]=null,fo--)}function ho(e,t){fo++,co[fo]=e.current,e.current=t}var vo={},go={current:vo},mo={current:!1},yo=vo;function bo(e,t){var n=e.type.contextTypes;if(!n)return vo;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function wo(e){return null!=(e=e.childContextTypes)}function So(){po(mo),po(go)}function To(e,t,n){if(go.current!==vo)throw Error(a(168));ho(go,t),ho(mo,n)}function ko(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in e))throw Error(a(108,ge(t)||"Unknown",i));return o({},n,{},r)}function Eo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||vo,yo=go.current,ho(go,e),ho(mo,mo.current),!0}function xo(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=ko(e,t,yo),r.__reactInternalMemoizedMergedChildContext=e,po(mo),po(go),ho(go,e)):po(mo),ho(mo,n)}var Co=i.unstable_runWithPriority,_o=i.unstable_scheduleCallback,Oo=i.unstable_cancelCallback,Po=i.unstable_requestPaint,Do=i.unstable_now,Io=i.unstable_getCurrentPriorityLevel,No=i.unstable_ImmediatePriority,Mo=i.unstable_UserBlockingPriority,Ro=i.unstable_NormalPriority,jo=i.unstable_LowPriority,zo=i.unstable_IdlePriority,Lo={},Ao=i.unstable_shouldYield,Fo=void 0!==Po?Po:function(){},$o=null,Uo=null,Wo=!1,Ho=Do(),Zo=1e4>Ho?Do:function(){return Do()-Ho};function Vo(){switch(Io()){case No:return 99;case Mo:return 98;case Ro:return 97;case jo:return 96;case zo:return 95;default:throw Error(a(332))}}function Bo(e){switch(e){case 99:return No;case 98:return Mo;case 97:return Ro;case 96:return jo;case 95:return zo;default:throw Error(a(332))}}function Ko(e,t){return e=Bo(e),Co(e,t)}function qo(e,t,n){return e=Bo(e),_o(e,t,n)}function Qo(e){return null===$o?($o=[e],Uo=_o(No,Xo)):$o.push(e),Lo}function Yo(){if(null!==Uo){var e=Uo;Uo=null,Oo(e)}Xo()}function Xo(){if(!Wo&&null!==$o){Wo=!0;var e=0;try{var t=$o;Ko(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),$o=null}catch(t){throw null!==$o&&($o=$o.slice(e+1)),_o(No,Yo),t}finally{Wo=!1}}}function Go(e,t,n){return 1073741821-(1+((1073741821-e+t/10)/(n/=10)|0))*n}function Jo(e,t){if(e&&e.defaultProps)for(var n in t=o({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}var ei={current:null},ti=null,ni=null,ri=null;function oi(){ri=ni=ti=null}function ii(e){var t=ei.current;po(ei),e.type._context._currentValue=t}function ai(e,t){for(;null!==e;){var n=e.alternate;if(e.childExpirationTime<t)e.childExpirationTime=t,null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t);else{if(!(null!==n&&n.childExpirationTime<t))break;n.childExpirationTime=t}e=e.return}}function ui(e,t){ti=e,ri=ni=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(e.expirationTime>=t&&(Ra=!0),e.firstContext=null)}function li(e,t){if(ri!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(ri=e,t=1073741823),t={context:e,observedBits:t,next:null},null===ni){if(null===ti)throw Error(a(308));ni=t,ti.dependencies={expirationTime:0,firstContext:t,responders:null}}else ni=ni.next=t;return e._currentValue}var si=!1;function ci(e){e.updateQueue={baseState:e.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function fi(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,baseQueue:e.baseQueue,shared:e.shared,effects:e.effects})}function di(e,t){return(e={expirationTime:e,suspenseConfig:t,tag:0,payload:null,callback:null,next:null}).next=e}function pi(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function hi(e,t){var n=e.alternate;null!==n&&fi(n,e),null===(n=(e=e.updateQueue).baseQueue)?(e.baseQueue=t.next=t,t.next=t):(t.next=n.next,n.next=t)}function vi(e,t,n,r){var i=e.updateQueue;si=!1;var a=i.baseQueue,u=i.shared.pending;if(null!==u){if(null!==a){var l=a.next;a.next=u.next,u.next=l}a=u,i.shared.pending=null,null!==(l=e.alternate)&&(null!==(l=l.updateQueue)&&(l.baseQueue=u))}if(null!==a){l=a.next;var s=i.baseState,c=0,f=null,d=null,p=null;if(null!==l)for(var h=l;;){if((u=h.expirationTime)<r){var v={expirationTime:h.expirationTime,suspenseConfig:h.suspenseConfig,tag:h.tag,payload:h.payload,callback:h.callback,next:null};null===p?(d=p=v,f=s):p=p.next=v,u>c&&(c=u)}else{null!==p&&(p=p.next={expirationTime:1073741823,suspenseConfig:h.suspenseConfig,tag:h.tag,payload:h.payload,callback:h.callback,next:null}),pl(u,h.suspenseConfig);e:{var g=e,m=h;switch(u=t,v=n,m.tag){case 1:if("function"==typeof(g=m.payload)){s=g.call(v,s,u);break e}s=g;break e;case 3:g.effectTag=-4097&g.effectTag|64;case 0:if(null==(u="function"==typeof(g=m.payload)?g.call(v,s,u):g))break e;s=o({},s,u);break e;case 2:si=!0}}null!==h.callback&&(e.effectTag|=32,null===(u=i.effects)?i.effects=[h]:u.push(h))}if(null===(h=h.next)||h===l){if(null===(u=i.shared.pending))break;h=a.next=u.next,u.next=l,i.baseQueue=a=u,i.shared.pending=null}}null===p?f=s:p.next=d,i.baseState=f,i.baseQueue=p,hl(c),e.expirationTime=c,e.memoizedState=s}}function gi(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=o,o=n,"function"!=typeof r)throw Error(a(191,r));r.call(o)}}}var mi=Y.ReactCurrentBatchConfig,yi=(new r.Component).refs;function bi(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:o({},t,n),e.memoizedState=n,0===e.expirationTime&&(e.updateQueue.baseState=n)}var wi={isMounted:function(e){return!!(e=e._reactInternalFiber)&&et(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var r=el(),o=mi.suspense;(o=di(r=tl(r,e,o),o)).payload=t,null!=n&&(o.callback=n),pi(e,o),nl(e,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var r=el(),o=mi.suspense;(o=di(r=tl(r,e,o),o)).tag=1,o.payload=t,null!=n&&(o.callback=n),pi(e,o),nl(e,r)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=el(),r=mi.suspense;(r=di(n=tl(n,e,r),r)).tag=2,null!=t&&(r.callback=t),pi(e,r),nl(e,n)}};function Si(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!Hr(n,r)||!Hr(o,i))}function Ti(e,t,n){var r=!1,o=vo,i=t.contextType;return"object"==typeof i&&null!==i?i=li(i):(o=wo(t)?yo:go.current,i=(r=null!=(r=t.contextTypes))?bo(e,o):vo),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=wi,e.stateNode=t,t._reactInternalFiber=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function ki(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&wi.enqueueReplaceState(t,t.state,null)}function Ei(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=yi,ci(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=li(i):(i=wo(t)?yo:go.current,o.context=bo(e,i)),vi(e,n,o,r),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(bi(e,t,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&wi.enqueueReplaceState(o,o.state,null),vi(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.effectTag|=4)}var xi=Array.isArray;function Ci(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var o=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===o?t.ref:((t=function(e){var t=r.refs;t===yi&&(t=r.refs={}),null===e?delete t[o]:t[o]=e})._stringRef=o,t)}if("string"!=typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function _i(e,t){if("textarea"!==e.type)throw Error(a(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,""))}function Oi(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Rl(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.effectTag=2,n):r:(t.effectTag=2,n):n}function u(t){return e&&null===t.alternate&&(t.effectTag=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Ll(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function s(e,t,n,r){return null!==t&&t.elementType===n.type?((r=o(t,n.props)).ref=Ci(e,t,n),r.return=e,r):((r=jl(n.type,n.key,n.props,null,e.mode,r)).ref=Ci(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Al(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function f(e,t,n,r,i){return null===t||7!==t.tag?((t=zl(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=Ll(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case ee:return(n=jl(t.type,t.key,t.props,null,e.mode,n)).ref=Ci(e,null,t),n.return=e,n;case te:return(t=Al(t,e.mode,n)).return=e,t}if(xi(t)||ve(t))return(t=zl(t,e.mode,n,null)).return=e,t;_i(e,t)}return null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==o?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case ee:return n.key===o?n.type===ne?f(e,t,n.props.children,r,o):s(e,t,n,r):null;case te:return n.key===o?c(e,t,n,r):null}if(xi(n)||ve(n))return null!==o?null:f(e,t,n,r,null);_i(e,n)}return null}function h(e,t,n,r,o){if("string"==typeof r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case ee:return e=e.get(null===r.key?n:r.key)||null,r.type===ne?f(t,e,r.props.children,o,r.key):s(t,e,r,o);case te:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o)}if(xi(r)||ve(r))return f(t,e=e.get(n)||null,r,o,null);_i(t,r)}return null}function v(o,a,u,l){for(var s=null,c=null,f=a,v=a=0,g=null;null!==f&&v<u.length;v++){f.index>v?(g=f,f=null):g=f.sibling;var m=p(o,f,u[v],l);if(null===m){null===f&&(f=g);break}e&&f&&null===m.alternate&&t(o,f),a=i(m,a,v),null===c?s=m:c.sibling=m,c=m,f=g}if(v===u.length)return n(o,f),s;if(null===f){for(;v<u.length;v++)null!==(f=d(o,u[v],l))&&(a=i(f,a,v),null===c?s=f:c.sibling=f,c=f);return s}for(f=r(o,f);v<u.length;v++)null!==(g=h(f,o,v,u[v],l))&&(e&&null!==g.alternate&&f.delete(null===g.key?v:g.key),a=i(g,a,v),null===c?s=g:c.sibling=g,c=g);return e&&f.forEach((function(e){return t(o,e)})),s}function g(o,u,l,s){var c=ve(l);if("function"!=typeof c)throw Error(a(150));if(null==(l=c.call(l)))throw Error(a(151));for(var f=c=null,v=u,g=u=0,m=null,y=l.next();null!==v&&!y.done;g++,y=l.next()){v.index>g?(m=v,v=null):m=v.sibling;var b=p(o,v,y.value,s);if(null===b){null===v&&(v=m);break}e&&v&&null===b.alternate&&t(o,v),u=i(b,u,g),null===f?c=b:f.sibling=b,f=b,v=m}if(y.done)return n(o,v),c;if(null===v){for(;!y.done;g++,y=l.next())null!==(y=d(o,y.value,s))&&(u=i(y,u,g),null===f?c=y:f.sibling=y,f=y);return c}for(v=r(o,v);!y.done;g++,y=l.next())null!==(y=h(v,o,g,y.value,s))&&(e&&null!==y.alternate&&v.delete(null===y.key?g:y.key),u=i(y,u,g),null===f?c=y:f.sibling=y,f=y);return e&&v.forEach((function(e){return t(o,e)})),c}return function(e,r,i,l){var s="object"==typeof i&&null!==i&&i.type===ne&&null===i.key;s&&(i=i.props.children);var c="object"==typeof i&&null!==i;if(c)switch(i.$$typeof){case ee:e:{for(c=i.key,s=r;null!==s;){if(s.key===c){switch(s.tag){case 7:if(i.type===ne){n(e,s.sibling),(r=o(s,i.props.children)).return=e,e=r;break e}break;default:if(s.elementType===i.type){n(e,s.sibling),(r=o(s,i.props)).ref=Ci(e,s,i),r.return=e,e=r;break e}}n(e,s);break}t(e,s),s=s.sibling}i.type===ne?((r=zl(i.props.children,e.mode,l,i.key)).return=e,e=r):((l=jl(i.type,i.key,i.props,null,e.mode,l)).ref=Ci(e,r,i),l.return=e,e=l)}return u(e);case te:e:{for(s=i.key;null!==r;){if(r.key===s){if(4===r.tag&&r.stateNode.containerInfo===i.containerInfo&&r.stateNode.implementation===i.implementation){n(e,r.sibling),(r=o(r,i.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Al(i,e.mode,l)).return=e,e=r}return u(e)}if("string"==typeof i||"number"==typeof i)return i=""+i,null!==r&&6===r.tag?(n(e,r.sibling),(r=o(r,i)).return=e,e=r):(n(e,r),(r=Ll(i,e.mode,l)).return=e,e=r),u(e);if(xi(i))return v(e,r,i,l);if(ve(i))return g(e,r,i,l);if(c&&_i(e,i),void 0===i&&!s)switch(e.tag){case 1:case 0:throw e=e.type,Error(a(152,e.displayName||e.name||"Component"))}return n(e,r)}}var Pi=Oi(!0),Di=Oi(!1),Ii={},Ni={current:Ii},Mi={current:Ii},Ri={current:Ii};function ji(e){if(e===Ii)throw Error(a(174));return e}function zi(e,t){switch(ho(Ri,t),ho(Mi,e),ho(Ni,Ii),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Le(null,"");break;default:t=Le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}po(Ni),ho(Ni,t)}function Li(){po(Ni),po(Mi),po(Ri)}function Ai(e){ji(Ri.current);var t=ji(Ni.current),n=Le(t,e.type);t!==n&&(ho(Mi,e),ho(Ni,n))}function Fi(e){Mi.current===e&&(po(Ni),po(Mi))}var $i={current:0};function Ui(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||n.data===mn||n.data===yn))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.effectTag))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function Wi(e,t){return{responder:e,props:t}}var Hi=Y.ReactCurrentDispatcher,Zi=Y.ReactCurrentBatchConfig,Vi=0,Bi=null,Ki=null,qi=null,Qi=!1;function Yi(){throw Error(a(321))}function Xi(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ur(e[n],t[n]))return!1;return!0}function Gi(e,t,n,r,o,i){if(Vi=i,Bi=t,t.memoizedState=null,t.updateQueue=null,t.expirationTime=0,Hi.current=null===e||null===e.memoizedState?Sa:Ta,e=n(r,o),t.expirationTime===Vi){i=0;do{if(t.expirationTime=0,!(25>i))throw Error(a(301));i+=1,qi=Ki=null,t.updateQueue=null,Hi.current=ka,e=n(r,o)}while(t.expirationTime===Vi)}if(Hi.current=wa,t=null!==Ki&&null!==Ki.next,Vi=0,qi=Ki=Bi=null,Qi=!1,t)throw Error(a(300));return e}function Ji(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===qi?Bi.memoizedState=qi=e:qi=qi.next=e,qi}function ea(){if(null===Ki){var e=Bi.alternate;e=null!==e?e.memoizedState:null}else e=Ki.next;var t=null===qi?Bi.memoizedState:qi.next;if(null!==t)qi=t,Ki=e;else{if(null===e)throw Error(a(310));e={memoizedState:(Ki=e).memoizedState,baseState:Ki.baseState,baseQueue:Ki.baseQueue,queue:Ki.queue,next:null},null===qi?Bi.memoizedState=qi=e:qi=qi.next=e}return qi}function ta(e,t){return"function"==typeof t?t(e):t}function na(e){var t=ea(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=Ki,o=r.baseQueue,i=n.pending;if(null!==i){if(null!==o){var u=o.next;o.next=i.next,i.next=u}r.baseQueue=o=i,n.pending=null}if(null!==o){o=o.next,r=r.baseState;var l=u=i=null,s=o;do{var c=s.expirationTime;if(c<Vi){var f={expirationTime:s.expirationTime,suspenseConfig:s.suspenseConfig,action:s.action,eagerReducer:s.eagerReducer,eagerState:s.eagerState,next:null};null===l?(u=l=f,i=r):l=l.next=f,c>Bi.expirationTime&&(Bi.expirationTime=c,hl(c))}else null!==l&&(l=l.next={expirationTime:1073741823,suspenseConfig:s.suspenseConfig,action:s.action,eagerReducer:s.eagerReducer,eagerState:s.eagerState,next:null}),pl(c,s.suspenseConfig),r=s.eagerReducer===e?s.eagerState:e(r,s.action);s=s.next}while(null!==s&&s!==o);null===l?i=r:l.next=u,Ur(r,t.memoizedState)||(Ra=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=l,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function ra(e){var t=ea(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(null!==o){n.pending=null;var u=o=o.next;do{i=e(i,u.action),u=u.next}while(u!==o);Ur(i,t.memoizedState)||(Ra=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function oa(e){var t=Ji();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:ta,lastRenderedState:e}).dispatch=ba.bind(null,Bi,e),[t.memoizedState,e]}function ia(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Bi.updateQueue)?(t={lastEffect:null},Bi.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function aa(){return ea().memoizedState}function ua(e,t,n,r){var o=Ji();Bi.effectTag|=e,o.memoizedState=ia(1|t,n,void 0,void 0===r?null:r)}function la(e,t,n,r){var o=ea();r=void 0===r?null:r;var i=void 0;if(null!==Ki){var a=Ki.memoizedState;if(i=a.destroy,null!==r&&Xi(r,a.deps))return void ia(t,n,i,r)}Bi.effectTag|=e,o.memoizedState=ia(1|t,n,i,r)}function sa(e,t){return ua(516,4,e,t)}function ca(e,t){return la(516,4,e,t)}function fa(e,t){return la(4,2,e,t)}function da(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function pa(e,t,n){return n=null!=n?n.concat([e]):null,la(4,2,da.bind(null,t,e),n)}function ha(){}function va(e,t){return Ji().memoizedState=[e,void 0===t?null:t],e}function ga(e,t){var n=ea();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Xi(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ma(e,t){var n=ea();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Xi(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function ya(e,t,n){var r=Vo();Ko(98>r?98:r,(function(){e(!0)})),Ko(97<r?97:r,(function(){var r=Zi.suspense;Zi.suspense=void 0===t?null:t;try{e(!1),n()}finally{Zi.suspense=r}}))}function ba(e,t,n){var r=el(),o=mi.suspense;o={expirationTime:r=tl(r,e,o),suspenseConfig:o,action:n,eagerReducer:null,eagerState:null,next:null};var i=t.pending;if(null===i?o.next=o:(o.next=i.next,i.next=o),t.pending=o,i=e.alternate,e===Bi||null!==i&&i===Bi)Qi=!0,o.expirationTime=Vi,Bi.expirationTime=Vi;else{if(0===e.expirationTime&&(null===i||0===i.expirationTime)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,u=i(a,n);if(o.eagerReducer=i,o.eagerState=u,Ur(u,a))return}catch(e){}nl(e,r)}}var wa={readContext:li,useCallback:Yi,useContext:Yi,useEffect:Yi,useImperativeHandle:Yi,useLayoutEffect:Yi,useMemo:Yi,useReducer:Yi,useRef:Yi,useState:Yi,useDebugValue:Yi,useResponder:Yi,useDeferredValue:Yi,useTransition:Yi},Sa={readContext:li,useCallback:va,useContext:li,useEffect:sa,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,ua(4,2,da.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ua(4,2,e,t)},useMemo:function(e,t){var n=Ji();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ji();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=ba.bind(null,Bi,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Ji().memoizedState=e},useState:oa,useDebugValue:ha,useResponder:Wi,useDeferredValue:function(e,t){var n=oa(e),r=n[0],o=n[1];return sa((function(){var n=Zi.suspense;Zi.suspense=void 0===t?null:t;try{o(e)}finally{Zi.suspense=n}}),[e,t]),r},useTransition:function(e){var t=oa(!1),n=t[0];return t=t[1],[va(ya.bind(null,t,e),[t,e]),n]}},Ta={readContext:li,useCallback:ga,useContext:li,useEffect:ca,useImperativeHandle:pa,useLayoutEffect:fa,useMemo:ma,useReducer:na,useRef:aa,useState:function(){return na(ta)},useDebugValue:ha,useResponder:Wi,useDeferredValue:function(e,t){var n=na(ta),r=n[0],o=n[1];return ca((function(){var n=Zi.suspense;Zi.suspense=void 0===t?null:t;try{o(e)}finally{Zi.suspense=n}}),[e,t]),r},useTransition:function(e){var t=na(ta),n=t[0];return t=t[1],[ga(ya.bind(null,t,e),[t,e]),n]}},ka={readContext:li,useCallback:ga,useContext:li,useEffect:ca,useImperativeHandle:pa,useLayoutEffect:fa,useMemo:ma,useReducer:ra,useRef:aa,useState:function(){return ra(ta)},useDebugValue:ha,useResponder:Wi,useDeferredValue:function(e,t){var n=ra(ta),r=n[0],o=n[1];return ca((function(){var n=Zi.suspense;Zi.suspense=void 0===t?null:t;try{o(e)}finally{Zi.suspense=n}}),[e,t]),r},useTransition:function(e){var t=ra(ta),n=t[0];return t=t[1],[ga(ya.bind(null,t,e),[t,e]),n]}},Ea=null,xa=null,Ca=!1;function _a(e,t){var n=Nl(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Oa(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);case 13:default:return!1}}function Pa(e){if(Ca){var t=xa;if(t){var n=t;if(!Oa(e,t)){if(!(t=xn(n.nextSibling))||!Oa(e,t))return e.effectTag=-1025&e.effectTag|2,Ca=!1,void(Ea=e);_a(Ea,n)}Ea=e,xa=xn(t.firstChild)}else e.effectTag=-1025&e.effectTag|2,Ca=!1,Ea=e}}function Da(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Ea=e}function Ia(e){if(e!==Ea)return!1;if(!Ca)return Da(e),Ca=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Tn(t,e.memoizedProps))for(t=xa;t;)_a(e,t),t=xn(t.nextSibling);if(Da(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){xa=xn(e.nextSibling);break e}t--}else"$"!==n&&n!==yn&&n!==mn||t++}e=e.nextSibling}xa=null}}else xa=Ea?xn(e.stateNode.nextSibling):null;return!0}function Na(){xa=Ea=null,Ca=!1}var Ma=Y.ReactCurrentOwner,Ra=!1;function ja(e,t,n,r){t.child=null===e?Di(t,null,n,r):Pi(t,e.child,n,r)}function za(e,t,n,r,o){n=n.render;var i=t.ref;return ui(t,o),r=Gi(e,t,n,r,i,o),null===e||Ra?(t.effectTag|=1,ja(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=o&&(e.expirationTime=0),Ga(e,t,o))}function La(e,t,n,r,o,i){if(null===e){var a=n.type;return"function"!=typeof a||Ml(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=jl(n.type,null,r,null,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Aa(e,t,a,r,o,i))}return a=e.child,o<i&&(o=a.memoizedProps,(n=null!==(n=n.compare)?n:Hr)(o,r)&&e.ref===t.ref)?Ga(e,t,i):(t.effectTag|=1,(e=Rl(a,r)).ref=t.ref,e.return=t,t.child=e)}function Aa(e,t,n,r,o,i){return null!==e&&Hr(e.memoizedProps,r)&&e.ref===t.ref&&(Ra=!1,o<i)?(t.expirationTime=e.expirationTime,Ga(e,t,i)):$a(e,t,n,r,i)}function Fa(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function $a(e,t,n,r,o){var i=wo(n)?yo:go.current;return i=bo(t,i),ui(t,o),n=Gi(e,t,n,r,i,o),null===e||Ra?(t.effectTag|=1,ja(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=o&&(e.expirationTime=0),Ga(e,t,o))}function Ua(e,t,n,r,o){if(wo(n)){var i=!0;Eo(t)}else i=!1;if(ui(t,o),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),Ti(t,n,r),Ei(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,u=t.memoizedProps;a.props=u;var l=a.context,s=n.contextType;"object"==typeof s&&null!==s?s=li(s):s=bo(t,s=wo(n)?yo:go.current);var c=n.getDerivedStateFromProps,f="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;f||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(u!==r||l!==s)&&ki(t,a,r,s),si=!1;var d=t.memoizedState;a.state=d,vi(t,r,a,o),l=t.memoizedState,u!==r||d!==l||mo.current||si?("function"==typeof c&&(bi(t,n,c,r),l=t.memoizedState),(u=si||Si(t,n,u,r,d,l,s))?(f||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.effectTag|=4)):("function"==typeof a.componentDidMount&&(t.effectTag|=4),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=s,r=u):("function"==typeof a.componentDidMount&&(t.effectTag|=4),r=!1)}else a=t.stateNode,fi(e,t),u=t.memoizedProps,a.props=t.type===t.elementType?u:Jo(t.type,u),l=a.context,"object"==typeof(s=n.contextType)&&null!==s?s=li(s):s=bo(t,s=wo(n)?yo:go.current),(f="function"==typeof(c=n.getDerivedStateFromProps)||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(u!==r||l!==s)&&ki(t,a,r,s),si=!1,l=t.memoizedState,a.state=l,vi(t,r,a,o),d=t.memoizedState,u!==r||l!==d||mo.current||si?("function"==typeof c&&(bi(t,n,c,r),d=t.memoizedState),(c=si||Si(t,n,u,r,l,d,s))?(f||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,d,s),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,d,s)),"function"==typeof a.componentDidUpdate&&(t.effectTag|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!=typeof a.componentDidUpdate||u===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||u===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=256),t.memoizedProps=r,t.memoizedState=d),a.props=r,a.state=d,a.context=s,r=c):("function"!=typeof a.componentDidUpdate||u===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||u===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=256),r=!1);return Wa(e,t,n,r,i,o)}function Wa(e,t,n,r,o,i){Fa(e,t);var a=0!=(64&t.effectTag);if(!r&&!a)return o&&xo(t,n,!1),Ga(e,t,i);r=t.stateNode,Ma.current=t;var u=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.effectTag|=1,null!==e&&a?(t.child=Pi(t,e.child,null,i),t.child=Pi(t,null,u,i)):ja(e,t,u,i),t.memoizedState=r.state,o&&xo(t,n,!0),t.child}function Ha(e){var t=e.stateNode;t.pendingContext?To(0,t.pendingContext,t.pendingContext!==t.context):t.context&&To(0,t.context,!1),zi(e,t.containerInfo)}var Za,Va,Ba,Ka={dehydrated:null,retryTime:0};function qa(e,t,n){var r,o=t.mode,i=t.pendingProps,a=$i.current,u=!1;if((r=0!=(64&t.effectTag))||(r=0!=(2&a)&&(null===e||null!==e.memoizedState)),r?(u=!0,t.effectTag&=-65):null!==e&&null===e.memoizedState||void 0===i.fallback||!0===i.unstable_avoidThisFallback||(a|=1),ho($i,1&a),null===e){if(void 0!==i.fallback&&Pa(t),u){if(u=i.fallback,(i=zl(null,o,0,null)).return=t,0==(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,i.child=e;null!==e;)e.return=i,e=e.sibling;return(n=zl(u,o,n,null)).return=t,i.sibling=n,t.memoizedState=Ka,t.child=i,n}return o=i.children,t.memoizedState=null,t.child=Di(t,null,o,n)}if(null!==e.memoizedState){if(o=(e=e.child).sibling,u){if(i=i.fallback,(n=Rl(e,e.pendingProps)).return=t,0==(2&t.mode)&&(u=null!==t.memoizedState?t.child.child:t.child)!==e.child)for(n.child=u;null!==u;)u.return=n,u=u.sibling;return(o=Rl(o,i)).return=t,n.sibling=o,n.childExpirationTime=0,t.memoizedState=Ka,t.child=n,o}return n=Pi(t,e.child,i.children,n),t.memoizedState=null,t.child=n}if(e=e.child,u){if(u=i.fallback,(i=zl(null,o,0,null)).return=t,i.child=e,null!==e&&(e.return=i),0==(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,i.child=e;null!==e;)e.return=i,e=e.sibling;return(n=zl(u,o,n,null)).return=t,i.sibling=n,n.effectTag|=2,i.childExpirationTime=0,t.memoizedState=Ka,t.child=i,n}return t.memoizedState=null,t.child=Pi(t,e,i.children,n)}function Qa(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t),ai(e.return,t)}function Ya(e,t,n,r,o,i){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailExpiration:0,tailMode:o,lastEffect:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailExpiration=0,a.tailMode=o,a.lastEffect=i)}function Xa(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(ja(e,t,r.children,n),0!=(2&(r=$i.current)))r=1&r|2,t.effectTag|=64;else{if(null!==e&&0!=(64&e.effectTag))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Qa(e,n);else if(19===e.tag)Qa(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ho($i,r),0==(2&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===Ui(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Ya(t,!1,o,n,i,t.lastEffect);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===Ui(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Ya(t,!0,n,null,i,t.lastEffect);break;case"together":Ya(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function Ga(e,t,n){null!==e&&(t.dependencies=e.dependencies);var r=t.expirationTime;if(0!==r&&hl(r),t.childExpirationTime<n)return null;if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=Rl(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Rl(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Ja(e,t){switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function eu(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return wo(t.type)&&So(),null;case 3:return Li(),po(mo),po(go),(n=t.stateNode).pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||!Ia(t)||(t.effectTag|=4),null;case 5:Fi(t),n=ji(Ri.current);var i=t.type;if(null!==e&&null!=t.stateNode)Va(e,t,i,r,n),e.ref!==t.ref&&(t.effectTag|=128);else{if(!r){if(null===t.stateNode)throw Error(a(166));return null}if(e=ji(Ni.current),Ia(t)){r=t.stateNode,i=t.type;var u=t.memoizedProps;switch(r[On]=t,r[Pn]=u,i){case"iframe":case"object":case"embed":qt("load",r);break;case"video":case"audio":for(e=0;e<Xe.length;e++)qt(Xe[e],r);break;case"source":qt("error",r);break;case"img":case"image":case"link":qt("error",r),qt("load",r);break;case"form":qt("reset",r),qt("submit",r);break;case"details":qt("toggle",r);break;case"input":ke(r,u),qt("invalid",r),sn(n,"onChange");break;case"select":r._wrapperState={wasMultiple:!!u.multiple},qt("invalid",r),sn(n,"onChange");break;case"textarea":Ie(r,u),qt("invalid",r),sn(n,"onChange")}for(var l in an(i,u),e=null,u)if(u.hasOwnProperty(l)){var s=u[l];"children"===l?"string"==typeof s?r.textContent!==s&&(e=["children",s]):"number"==typeof s&&r.textContent!==""+s&&(e=["children",""+s]):E.hasOwnProperty(l)&&null!=s&&sn(n,l)}switch(i){case"input":we(r),Ce(r,u,!0);break;case"textarea":we(r),Me(r);break;case"select":case"option":break;default:"function"==typeof u.onClick&&(r.onclick=cn)}n=e,t.updateQueue=n,null!==n&&(t.effectTag|=4)}else{switch(l=9===n.nodeType?n:n.ownerDocument,e===ln&&(e=ze(i)),e===ln?"script"===i?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=l.createElement(i,{is:r.is}):(e=l.createElement(i),"select"===i&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,i),e[On]=t,e[Pn]=r,Za(e,t),t.stateNode=e,l=un(i,r),i){case"iframe":case"object":case"embed":qt("load",e),s=r;break;case"video":case"audio":for(s=0;s<Xe.length;s++)qt(Xe[s],e);s=r;break;case"source":qt("error",e),s=r;break;case"img":case"image":case"link":qt("error",e),qt("load",e),s=r;break;case"form":qt("reset",e),qt("submit",e),s=r;break;case"details":qt("toggle",e),s=r;break;case"input":ke(e,r),s=Te(e,r),qt("invalid",e),sn(n,"onChange");break;case"option":s=Oe(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},s=o({},r,{value:void 0}),qt("invalid",e),sn(n,"onChange");break;case"textarea":Ie(e,r),s=De(e,r),qt("invalid",e),sn(n,"onChange");break;default:s=r}an(i,s);var c=s;for(u in c)if(c.hasOwnProperty(u)){var f=c[u];"style"===u?rn(e,f):"dangerouslySetInnerHTML"===u?null!=(f=f?f.__html:void 0)&&$e(e,f):"children"===u?"string"==typeof f?("textarea"!==i||""!==f)&&Ue(e,f):"number"==typeof f&&Ue(e,""+f):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(E.hasOwnProperty(u)?null!=f&&sn(n,u):null!=f&&X(e,u,f,l))}switch(i){case"input":we(e),Ce(e,r,!1);break;case"textarea":we(e),Me(e);break;case"option":null!=r.value&&e.setAttribute("value",""+ye(r.value));break;case"select":e.multiple=!!r.multiple,null!=(n=r.value)?Pe(e,!!r.multiple,n,!1):null!=r.defaultValue&&Pe(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof s.onClick&&(e.onclick=cn)}Sn(i,r)&&(t.effectTag|=4)}null!==t.ref&&(t.effectTag|=128)}return null;case 6:if(e&&null!=t.stateNode)Ba(0,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(a(166));n=ji(Ri.current),ji(Ni.current),Ia(t)?(n=t.stateNode,r=t.memoizedProps,n[On]=t,n.nodeValue!==r&&(t.effectTag|=4)):((n=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[On]=t,t.stateNode=n)}return null;case 13:return po($i),r=t.memoizedState,0!=(64&t.effectTag)?(t.expirationTime=n,t):(n=null!==r,r=!1,null===e?void 0!==t.memoizedProps.fallback&&Ia(t):(r=null!==(i=e.memoizedState),n||null===i||null!==(i=e.child.sibling)&&(null!==(u=t.firstEffect)?(t.firstEffect=i,i.nextEffect=u):(t.firstEffect=t.lastEffect=i,i.nextEffect=null),i.effectTag=8)),n&&!r&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&$i.current)?ju===Ou&&(ju=Pu):(ju!==Ou&&ju!==Pu||(ju=Du),0!==$u&&null!==Nu&&(Ul(Nu,Ru),Wl(Nu,$u)))),(n||r)&&(t.effectTag|=4),null);case 4:return Li(),null;case 10:return ii(t),null;case 17:return wo(t.type)&&So(),null;case 19:if(po($i),null===(r=t.memoizedState))return null;if(i=0!=(64&t.effectTag),null===(u=r.rendering)){if(i)Ja(r,!1);else if(ju!==Ou||null!==e&&0!=(64&e.effectTag))for(u=t.child;null!==u;){if(null!==(e=Ui(u))){for(t.effectTag|=64,Ja(r,!1),null!==(i=e.updateQueue)&&(t.updateQueue=i,t.effectTag|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=t.child;null!==r;)u=n,(i=r).effectTag&=2,i.nextEffect=null,i.firstEffect=null,i.lastEffect=null,null===(e=i.alternate)?(i.childExpirationTime=0,i.expirationTime=u,i.child=null,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null):(i.childExpirationTime=e.childExpirationTime,i.expirationTime=e.expirationTime,i.child=e.child,i.memoizedProps=e.memoizedProps,i.memoizedState=e.memoizedState,i.updateQueue=e.updateQueue,u=e.dependencies,i.dependencies=null===u?null:{expirationTime:u.expirationTime,firstContext:u.firstContext,responders:u.responders}),r=r.sibling;return ho($i,1&$i.current|2),t.child}u=u.sibling}}else{if(!i)if(null!==(e=Ui(u))){if(t.effectTag|=64,i=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.effectTag|=4),Ja(r,!0),null===r.tail&&"hidden"===r.tailMode&&!u.alternate)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Zo()-r.renderingStartTime>r.tailExpiration&&1<n&&(t.effectTag|=64,i=!0,Ja(r,!1),t.expirationTime=t.childExpirationTime=n-1);r.isBackwards?(u.sibling=t.child,t.child=u):(null!==(n=r.last)?n.sibling=u:t.child=u,r.last=u)}return null!==r.tail?(0===r.tailExpiration&&(r.tailExpiration=Zo()+500),n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Zo(),n.sibling=null,t=$i.current,ho($i,i?1&t|2:1&t),n):null}throw Error(a(156,t.tag))}function tu(e){switch(e.tag){case 1:wo(e.type)&&So();var t=e.effectTag;return 4096&t?(e.effectTag=-4097&t|64,e):null;case 3:if(Li(),po(mo),po(go),0!=(64&(t=e.effectTag)))throw Error(a(285));return e.effectTag=-4097&t|64,e;case 5:return Fi(e),null;case 13:return po($i),4096&(t=e.effectTag)?(e.effectTag=-4097&t|64,e):null;case 19:return po($i),null;case 4:return Li(),null;case 10:return ii(e),null;default:return null}}function nu(e,t){return{value:e,source:t,stack:me(t)}}Za=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Va=function(e,t,n,r,i){var a=e.memoizedProps;if(a!==r){var u,l,s=t.stateNode;switch(ji(Ni.current),e=null,n){case"input":a=Te(s,a),r=Te(s,r),e=[];break;case"option":a=Oe(s,a),r=Oe(s,r),e=[];break;case"select":a=o({},a,{value:void 0}),r=o({},r,{value:void 0}),e=[];break;case"textarea":a=De(s,a),r=De(s,r),e=[];break;default:"function"!=typeof a.onClick&&"function"==typeof r.onClick&&(s.onclick=cn)}for(u in an(n,r),n=null,a)if(!r.hasOwnProperty(u)&&a.hasOwnProperty(u)&&null!=a[u])if("style"===u)for(l in s=a[u])s.hasOwnProperty(l)&&(n||(n={}),n[l]="");else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(E.hasOwnProperty(u)?e||(e=[]):(e=e||[]).push(u,null));for(u in r){var c=r[u];if(s=null!=a?a[u]:void 0,r.hasOwnProperty(u)&&c!==s&&(null!=c||null!=s))if("style"===u)if(s){for(l in s)!s.hasOwnProperty(l)||c&&c.hasOwnProperty(l)||(n||(n={}),n[l]="");for(l in c)c.hasOwnProperty(l)&&s[l]!==c[l]&&(n||(n={}),n[l]=c[l])}else n||(e||(e=[]),e.push(u,n)),n=c;else"dangerouslySetInnerHTML"===u?(c=c?c.__html:void 0,s=s?s.__html:void 0,null!=c&&s!==c&&(e=e||[]).push(u,c)):"children"===u?s===c||"string"!=typeof c&&"number"!=typeof c||(e=e||[]).push(u,""+c):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(E.hasOwnProperty(u)?(null!=c&&sn(i,u),e||s===c||(e=[])):(e=e||[]).push(u,c))}n&&(e=e||[]).push("style",n),i=e,(t.updateQueue=i)&&(t.effectTag|=4)}},Ba=function(e,t,n,r){n!==r&&(t.effectTag|=4)};var ru="function"==typeof WeakSet?WeakSet:Set;function ou(e,t){var n=t.source,r=t.stack;null===r&&null!==n&&(r=me(n)),null!==n&&ge(n.type),t=t.value,null!==e&&1===e.tag&&ge(e.type);try{console.error(t)}catch(e){setTimeout((function(){throw e}))}}function iu(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Cl(e,t)}else t.current=null}function au(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(256&t.effectTag&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:Jo(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:case 5:case 6:case 4:case 17:return}throw Error(a(163))}function uu(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.destroy;n.destroy=void 0,void 0!==r&&r()}n=n.next}while(n!==t)}}function lu(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function su(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:return void lu(3,n);case 1:if(e=n.stateNode,4&n.effectTag)if(null===t)e.componentDidMount();else{var r=n.elementType===n.type?t.memoizedProps:Jo(n.type,t.memoizedProps);e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate)}return void(null!==(t=n.updateQueue)&&gi(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}gi(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.effectTag&&Sn(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&Lt(n)))));case 19:case 17:case 20:case 21:return}throw Error(a(163))}function cu(e,t,n){switch("function"==typeof Dl&&Dl(t),t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var r=e.next;Ko(97<n?97:n,(function(){var e=r;do{var n=e.destroy;if(void 0!==n){var o=t;try{n()}catch(e){Cl(o,e)}}e=e.next}while(e!==r)}))}break;case 1:iu(t),"function"==typeof(n=t.stateNode).componentWillUnmount&&function(e,t){try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(t){Cl(e,t)}}(t,n);break;case 5:iu(t);break;case 4:gu(e,t,n)}}function fu(e){var t=e.alternate;e.return=null,e.child=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.alternate=null,e.firstEffect=null,e.lastEffect=null,e.pendingProps=null,e.memoizedProps=null,e.stateNode=null,null!==t&&fu(t)}function du(e){return 5===e.tag||3===e.tag||4===e.tag}function pu(e){e:{for(var t=e.return;null!==t;){if(du(t)){var n=t;break e}t=t.return}throw Error(a(160))}switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(a(161))}16&n.effectTag&&(Ue(t,""),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||du(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.effectTag)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break e}}r?hu(e,n,t):vu(e,n,t)}function hu(e,t,n){var r=e.tag,o=5===r||6===r;if(o)e=o?e.stateNode:e.stateNode.instance,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=cn));else if(4!==r&&null!==(e=e.child))for(hu(e,t,n),e=e.sibling;null!==e;)hu(e,t,n),e=e.sibling}function vu(e,t,n){var r=e.tag,o=5===r||6===r;if(o)e=o?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(vu(e,t,n),e=e.sibling;null!==e;)vu(e,t,n),e=e.sibling}function gu(e,t,n){for(var r,o,i=t,u=!1;;){if(!u){u=i.return;e:for(;;){if(null===u)throw Error(a(160));switch(r=u.stateNode,u.tag){case 5:o=!1;break e;case 3:case 4:r=r.containerInfo,o=!0;break e}u=u.return}u=!0}if(5===i.tag||6===i.tag){e:for(var l=e,s=i,c=n,f=s;;)if(cu(l,f,c),null!==f.child&&4!==f.tag)f.child.return=f,f=f.child;else{if(f===s)break e;for(;null===f.sibling;){if(null===f.return||f.return===s)break e;f=f.return}f.sibling.return=f.return,f=f.sibling}o?(l=r,s=i.stateNode,8===l.nodeType?l.parentNode.removeChild(s):l.removeChild(s)):r.removeChild(i.stateNode)}else if(4===i.tag){if(null!==i.child){r=i.stateNode.containerInfo,o=!0,i.child.return=i,i=i.child;continue}}else if(cu(e,i,n),null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;4===(i=i.return).tag&&(u=!1)}i.sibling.return=i.return,i=i.sibling}}function mu(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void uu(3,t);case 1:return;case 5:var n=t.stateNode;if(null!=n){var r=t.memoizedProps,o=null!==e?e.memoizedProps:r;e=t.type;var i=t.updateQueue;if(t.updateQueue=null,null!==i){for(n[Pn]=r,"input"===e&&"radio"===r.type&&null!=r.name&&Ee(n,r),un(e,o),t=un(e,r),o=0;o<i.length;o+=2){var u=i[o],l=i[o+1];"style"===u?rn(n,l):"dangerouslySetInnerHTML"===u?$e(n,l):"children"===u?Ue(n,l):X(n,u,l,t)}switch(e){case"input":xe(n,r);break;case"textarea":Ne(n,r);break;case"select":t=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(e=r.value)?Pe(n,!!r.multiple,e,!1):t!==!!r.multiple&&(null!=r.defaultValue?Pe(n,!!r.multiple,r.defaultValue,!0):Pe(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(a(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((t=t.stateNode).hydrate&&(t.hydrate=!1,Lt(t.containerInfo)));case 12:return;case 13:if(n=t,null===t.memoizedState?r=!1:(r=!0,n=t.child,Wu=Zo()),null!==n)e:for(e=n;;){if(5===e.tag)i=e.stateNode,r?"function"==typeof(i=i.style).setProperty?i.setProperty("display","none","important"):i.display="none":(i=e.stateNode,o=null!=(o=e.memoizedProps.style)&&o.hasOwnProperty("display")?o.display:null,i.style.display=nn("display",o));else if(6===e.tag)e.stateNode.nodeValue=r?"":e.memoizedProps;else{if(13===e.tag&&null!==e.memoizedState&&null===e.memoizedState.dehydrated){(i=e.child.sibling).return=e,e=i;continue}if(null!==e.child){e.child.return=e,e=e.child;continue}}if(e===n)break;for(;null===e.sibling;){if(null===e.return||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}return void yu(t);case 19:return void yu(t);case 17:return}throw Error(a(163))}function yu(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new ru),t.forEach((function(t){var r=Ol.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}var bu="function"==typeof WeakMap?WeakMap:Map;function wu(e,t,n){(n=di(n,null)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Zu||(Zu=!0,Vu=r),ou(e,t)},n}function Su(e,t,n){(n=di(n,null)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return ou(e,t),r(o)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Bu?Bu=new Set([this]):Bu.add(this),ou(e,t));var n=t.stack;this.componentDidCatch(t.value,{componentStack:null!==n?n:""})}),n}var Tu,ku=Math.ceil,Eu=Y.ReactCurrentDispatcher,xu=Y.ReactCurrentOwner,Cu=16,_u=32,Ou=0,Pu=3,Du=4,Iu=0,Nu=null,Mu=null,Ru=0,ju=Ou,zu=null,Lu=1073741823,Au=1073741823,Fu=null,$u=0,Uu=!1,Wu=0,Hu=null,Zu=!1,Vu=null,Bu=null,Ku=!1,qu=null,Qu=90,Yu=null,Xu=0,Gu=null,Ju=0;function el(){return 0!=(48&Iu)?1073741821-(Zo()/10|0):0!==Ju?Ju:Ju=1073741821-(Zo()/10|0)}function tl(e,t,n){if(0==(2&(t=t.mode)))return 1073741823;var r=Vo();if(0==(4&t))return 99===r?1073741823:1073741822;if(0!=(Iu&Cu))return Ru;if(null!==n)e=Go(e,0|n.timeoutMs||5e3,250);else switch(r){case 99:e=1073741823;break;case 98:e=Go(e,150,100);break;case 97:case 96:e=Go(e,5e3,250);break;case 95:e=2;break;default:throw Error(a(326))}return null!==Nu&&e===Ru&&--e,e}function nl(e,t){if(50<Xu)throw Xu=0,Gu=null,Error(a(185));if(null!==(e=rl(e,t))){var n=Vo();1073741823===t?0!=(8&Iu)&&0==(48&Iu)?ul(e):(il(e),0===Iu&&Yo()):il(e),0==(4&Iu)||98!==n&&99!==n||(null===Yu?Yu=new Map([[e,t]]):(void 0===(n=Yu.get(e))||n>t)&&Yu.set(e,t))}}function rl(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t);var r=e.return,o=null;if(null===r&&3===e.tag)o=e.stateNode;else for(;null!==r;){if(n=r.alternate,r.childExpirationTime<t&&(r.childExpirationTime=t),null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t),null===r.return&&3===r.tag){o=r.stateNode;break}r=r.return}return null!==o&&(Nu===o&&(hl(t),ju===Du&&Ul(o,Ru)),Wl(o,t)),o}function ol(e){var t=e.lastExpiredTime;if(0!==t)return t;if(!$l(e,t=e.firstPendingTime))return t;var n=e.lastPingedTime;return 2>=(e=n>(e=e.nextKnownPendingLevel)?n:e)&&t!==e?0:e}function il(e){if(0!==e.lastExpiredTime)e.callbackExpirationTime=1073741823,e.callbackPriority=99,e.callbackNode=Qo(ul.bind(null,e));else{var t=ol(e),n=e.callbackNode;if(0===t)null!==n&&(e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90);else{var r=el();if(1073741823===t?r=99:1===t||2===t?r=95:r=0>=(r=10*(1073741821-t)-10*(1073741821-r))?99:250>=r?98:5250>=r?97:95,null!==n){var o=e.callbackPriority;if(e.callbackExpirationTime===t&&o>=r)return;n!==Lo&&Oo(n)}e.callbackExpirationTime=t,e.callbackPriority=r,t=1073741823===t?Qo(ul.bind(null,e)):qo(r,al.bind(null,e),{timeout:10*(1073741821-t)-Zo()}),e.callbackNode=t}}}function al(e,t){if(Ju=0,t)return Hl(e,t=el()),il(e),null;var n=ol(e);if(0!==n){if(t=e.callbackNode,0!=(48&Iu))throw Error(a(327));if(kl(),e===Nu&&n===Ru||cl(e,n),null!==Mu){var r=Iu;Iu|=Cu;for(var o=dl();;)try{gl();break}catch(t){fl(e,t)}if(oi(),Iu=r,Eu.current=o,1===ju)throw t=zu,cl(e,n),Ul(e,n),il(e),t;if(null===Mu)switch(o=e.finishedWork=e.current.alternate,e.finishedExpirationTime=n,r=ju,Nu=null,r){case Ou:case 1:throw Error(a(345));case 2:Hl(e,2<n?2:n);break;case Pu:if(Ul(e,n),n===(r=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=bl(o)),1073741823===Lu&&10<(o=Wu+500-Zo())){if(Uu){var i=e.lastPingedTime;if(0===i||i>=n){e.lastPingedTime=n,cl(e,n);break}}if(0!==(i=ol(e))&&i!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}e.timeoutHandle=kn(wl.bind(null,e),o);break}wl(e);break;case Du:if(Ul(e,n),n===(r=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=bl(o)),Uu&&(0===(o=e.lastPingedTime)||o>=n)){e.lastPingedTime=n,cl(e,n);break}if(0!==(o=ol(e))&&o!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}if(1073741823!==Au?r=10*(1073741821-Au)-Zo():1073741823===Lu?r=0:(r=10*(1073741821-Lu)-5e3,0>(r=(o=Zo())-r)&&(r=0),(n=10*(1073741821-n)-o)<(r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*ku(r/1960))-r)&&(r=n)),10<r){e.timeoutHandle=kn(wl.bind(null,e),r);break}wl(e);break;case 5:if(1073741823!==Lu&&null!==Fu){i=Lu;var u=Fu;if(0>=(r=0|u.busyMinDurationMs)?r=0:(o=0|u.busyDelayMs,r=(i=Zo()-(10*(1073741821-i)-(0|u.timeoutMs||5e3)))<=o?0:o+r-i),10<r){Ul(e,n),e.timeoutHandle=kn(wl.bind(null,e),r);break}}wl(e);break;default:throw Error(a(329))}if(il(e),e.callbackNode===t)return al.bind(null,e)}}return null}function ul(e){var t=e.lastExpiredTime;if(t=0!==t?t:1073741823,0!=(48&Iu))throw Error(a(327));if(kl(),e===Nu&&t===Ru||cl(e,t),null!==Mu){var n=Iu;Iu|=Cu;for(var r=dl();;)try{vl();break}catch(t){fl(e,t)}if(oi(),Iu=n,Eu.current=r,1===ju)throw n=zu,cl(e,t),Ul(e,t),il(e),n;if(null!==Mu)throw Error(a(261));e.finishedWork=e.current.alternate,e.finishedExpirationTime=t,Nu=null,wl(e),il(e)}return null}function ll(e,t){var n=Iu;Iu|=1;try{return e(t)}finally{0===(Iu=n)&&Yo()}}function sl(e,t){var n=Iu;Iu&=-2,Iu|=8;try{return e(t)}finally{0===(Iu=n)&&Yo()}}function cl(e,t){e.finishedWork=null,e.finishedExpirationTime=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,En(n)),null!==Mu)for(n=Mu.return;null!==n;){var r=n;switch(r.tag){case 1:null!=(r=r.type.childContextTypes)&&So();break;case 3:Li(),po(mo),po(go);break;case 5:Fi(r);break;case 4:Li();break;case 13:case 19:po($i);break;case 10:ii(r)}n=n.return}Nu=e,Mu=Rl(e.current,null),Ru=t,ju=Ou,zu=null,Au=Lu=1073741823,Fu=null,$u=0,Uu=!1}function fl(e,t){for(;;){try{if(oi(),Hi.current=wa,Qi)for(var n=Bi.memoizedState;null!==n;){var r=n.queue;null!==r&&(r.pending=null),n=n.next}if(Vi=0,qi=Ki=Bi=null,Qi=!1,null===Mu||null===Mu.return)return ju=1,zu=t,Mu=null;e:{var o=e,i=Mu.return,a=Mu,u=t;if(t=Ru,a.effectTag|=2048,a.firstEffect=a.lastEffect=null,null!==u&&"object"==typeof u&&"function"==typeof u.then){var l=u;if(0==(2&a.mode)){var s=a.alternate;s?(a.updateQueue=s.updateQueue,a.memoizedState=s.memoizedState,a.expirationTime=s.expirationTime):(a.updateQueue=null,a.memoizedState=null)}var c=0!=(1&$i.current),f=i;do{var d;if(d=13===f.tag){var p=f.memoizedState;if(null!==p)d=null!==p.dehydrated;else{var h=f.memoizedProps;d=void 0!==h.fallback&&(!0!==h.unstable_avoidThisFallback||!c)}}if(d){var v=f.updateQueue;if(null===v){var g=new Set;g.add(l),f.updateQueue=g}else v.add(l);if(0==(2&f.mode)){if(f.effectTag|=64,a.effectTag&=-2981,1===a.tag)if(null===a.alternate)a.tag=17;else{var m=di(1073741823,null);m.tag=2,pi(a,m)}a.expirationTime=1073741823;break e}u=void 0,a=t;var y=o.pingCache;if(null===y?(y=o.pingCache=new bu,u=new Set,y.set(l,u)):void 0===(u=y.get(l))&&(u=new Set,y.set(l,u)),!u.has(a)){u.add(a);var b=_l.bind(null,o,l,a);l.then(b,b)}f.effectTag|=4096,f.expirationTime=t;break e}f=f.return}while(null!==f);u=Error((ge(a.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."+me(a))}5!==ju&&(ju=2),u=nu(u,a),f=i;do{switch(f.tag){case 3:l=u,f.effectTag|=4096,f.expirationTime=t,hi(f,wu(f,l,t));break e;case 1:l=u;var w=f.type,S=f.stateNode;if(0==(64&f.effectTag)&&("function"==typeof w.getDerivedStateFromError||null!==S&&"function"==typeof S.componentDidCatch&&(null===Bu||!Bu.has(S)))){f.effectTag|=4096,f.expirationTime=t,hi(f,Su(f,l,t));break e}}f=f.return}while(null!==f)}Mu=yl(Mu)}catch(e){t=e;continue}break}}function dl(){var e=Eu.current;return Eu.current=wa,null===e?wa:e}function pl(e,t){e<Lu&&2<e&&(Lu=e),null!==t&&e<Au&&2<e&&(Au=e,Fu=t)}function hl(e){e>$u&&($u=e)}function vl(){for(;null!==Mu;)Mu=ml(Mu)}function gl(){for(;null!==Mu&&!Ao();)Mu=ml(Mu)}function ml(e){var t=Tu(e.alternate,e,Ru);return e.memoizedProps=e.pendingProps,null===t&&(t=yl(e)),xu.current=null,t}function yl(e){Mu=e;do{var t=Mu.alternate;if(e=Mu.return,0==(2048&Mu.effectTag)){if(t=eu(t,Mu,Ru),1===Ru||1!==Mu.childExpirationTime){for(var n=0,r=Mu.child;null!==r;){var o=r.expirationTime,i=r.childExpirationTime;o>n&&(n=o),i>n&&(n=i),r=r.sibling}Mu.childExpirationTime=n}if(null!==t)return t;null!==e&&0==(2048&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=Mu.firstEffect),null!==Mu.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=Mu.firstEffect),e.lastEffect=Mu.lastEffect),1<Mu.effectTag&&(null!==e.lastEffect?e.lastEffect.nextEffect=Mu:e.firstEffect=Mu,e.lastEffect=Mu))}else{if(null!==(t=tu(Mu)))return t.effectTag&=2047,t;null!==e&&(e.firstEffect=e.lastEffect=null,e.effectTag|=2048)}if(null!==(t=Mu.sibling))return t;Mu=e}while(null!==Mu);return ju===Ou&&(ju=5),null}function bl(e){var t=e.expirationTime;return t>(e=e.childExpirationTime)?t:e}function wl(e){var t=Vo();return Ko(99,Sl.bind(null,e,t)),null}function Sl(e,t){do{kl()}while(null!==qu);if(0!=(48&Iu))throw Error(a(327));var n=e.finishedWork,r=e.finishedExpirationTime;if(null===n)return null;if(e.finishedWork=null,e.finishedExpirationTime=0,n===e.current)throw Error(a(177));e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90,e.nextKnownPendingLevel=0;var o=bl(n);if(e.firstPendingTime=o,r<=e.lastSuspendedTime?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:r<=e.firstSuspendedTime&&(e.firstSuspendedTime=r-1),r<=e.lastPingedTime&&(e.lastPingedTime=0),r<=e.lastExpiredTime&&(e.lastExpiredTime=0),e===Nu&&(Mu=Nu=null,Ru=0),1<n.effectTag?null!==n.lastEffect?(n.lastEffect.nextEffect=n,o=n.firstEffect):o=n:o=n.firstEffect,null!==o){var i=Iu;Iu|=_u,xu.current=null,bn=Kt;var u=vn();if(gn(u)){if("selectionStart"in u)var l={start:u.selectionStart,end:u.selectionEnd};else e:{var s=(l=(l=u.ownerDocument)&&l.defaultView||window).getSelection&&l.getSelection();if(s&&0!==s.rangeCount){l=s.anchorNode;var c=s.anchorOffset,f=s.focusNode;s=s.focusOffset;try{l.nodeType,f.nodeType}catch(e){l=null;break e}var d=0,p=-1,h=-1,v=0,g=0,m=u,y=null;t:for(;;){for(var b;m!==l||0!==c&&3!==m.nodeType||(p=d+c),m!==f||0!==s&&3!==m.nodeType||(h=d+s),3===m.nodeType&&(d+=m.nodeValue.length),null!==(b=m.firstChild);)y=m,m=b;for(;;){if(m===u)break t;if(y===l&&++v===c&&(p=d),y===f&&++g===s&&(h=d),null!==(b=m.nextSibling))break;y=(m=y).parentNode}m=b}l=-1===p||-1===h?null:{start:p,end:h}}else l=null}l=l||{start:0,end:0}}else l=null;wn={activeElementDetached:null,focusedElem:u,selectionRange:l},Kt=!1,Hu=o;do{try{Tl()}catch(e){if(null===Hu)throw Error(a(330));Cl(Hu,e),Hu=Hu.nextEffect}}while(null!==Hu);Hu=o;do{try{for(u=e,l=t;null!==Hu;){var w=Hu.effectTag;if(16&w&&Ue(Hu.stateNode,""),128&w){var S=Hu.alternate;if(null!==S){var T=S.ref;null!==T&&("function"==typeof T?T(null):T.current=null)}}switch(1038&w){case 2:pu(Hu),Hu.effectTag&=-3;break;case 6:pu(Hu),Hu.effectTag&=-3,mu(Hu.alternate,Hu);break;case 1024:Hu.effectTag&=-1025;break;case 1028:Hu.effectTag&=-1025,mu(Hu.alternate,Hu);break;case 4:mu(Hu.alternate,Hu);break;case 8:gu(u,c=Hu,l),fu(c)}Hu=Hu.nextEffect}}catch(e){if(null===Hu)throw Error(a(330));Cl(Hu,e),Hu=Hu.nextEffect}}while(null!==Hu);if(T=wn,S=vn(),w=T.focusedElem,l=T.selectionRange,S!==w&&w&&w.ownerDocument&&hn(w.ownerDocument.documentElement,w)){null!==l&&gn(w)&&(S=l.start,void 0===(T=l.end)&&(T=S),"selectionStart"in w?(w.selectionStart=S,w.selectionEnd=Math.min(T,w.value.length)):(T=(S=w.ownerDocument||document)&&S.defaultView||window).getSelection&&(T=T.getSelection(),c=w.textContent.length,u=Math.min(l.start,c),l=void 0===l.end?u:Math.min(l.end,c),!T.extend&&u>l&&(c=l,l=u,u=c),c=pn(w,u),f=pn(w,l),c&&f&&(1!==T.rangeCount||T.anchorNode!==c.node||T.anchorOffset!==c.offset||T.focusNode!==f.node||T.focusOffset!==f.offset)&&((S=S.createRange()).setStart(c.node,c.offset),T.removeAllRanges(),u>l?(T.addRange(S),T.extend(f.node,f.offset)):(S.setEnd(f.node,f.offset),T.addRange(S))))),S=[];for(T=w;T=T.parentNode;)1===T.nodeType&&S.push({element:T,left:T.scrollLeft,top:T.scrollTop});for("function"==typeof w.focus&&w.focus(),w=0;w<S.length;w++)(T=S[w]).element.scrollLeft=T.left,T.element.scrollTop=T.top}Kt=!!bn,wn=bn=null,e.current=n,Hu=o;do{try{for(w=e;null!==Hu;){var k=Hu.effectTag;if(36&k&&su(w,Hu.alternate,Hu),128&k){S=void 0;var E=Hu.ref;if(null!==E){var x=Hu.stateNode;switch(Hu.tag){case 5:S=x;break;default:S=x}"function"==typeof E?E(S):E.current=S}}Hu=Hu.nextEffect}}catch(e){if(null===Hu)throw Error(a(330));Cl(Hu,e),Hu=Hu.nextEffect}}while(null!==Hu);Hu=null,Fo(),Iu=i}else e.current=n;if(Ku)Ku=!1,qu=e,Qu=t;else for(Hu=o;null!==Hu;)t=Hu.nextEffect,Hu.nextEffect=null,Hu=t;if(0===(t=e.firstPendingTime)&&(Bu=null),1073741823===t?e===Gu?Xu++:(Xu=0,Gu=e):Xu=0,"function"==typeof Pl&&Pl(n.stateNode,r),il(e),Zu)throw Zu=!1,e=Vu,Vu=null,e;return 0!=(8&Iu)||Yo(),null}function Tl(){for(;null!==Hu;){var e=Hu.effectTag;0!=(256&e)&&au(Hu.alternate,Hu),0==(512&e)||Ku||(Ku=!0,qo(97,(function(){return kl(),null}))),Hu=Hu.nextEffect}}function kl(){if(90!==Qu){var e=97<Qu?97:Qu;return Qu=90,Ko(e,El)}}function El(){if(null===qu)return!1;var e=qu;if(qu=null,0!=(48&Iu))throw Error(a(331));var t=Iu;for(Iu|=_u,e=e.current.firstEffect;null!==e;){try{var n=e;if(0!=(512&n.effectTag))switch(n.tag){case 0:case 11:case 15:case 22:uu(5,n),lu(5,n)}}catch(t){if(null===e)throw Error(a(330));Cl(e,t)}n=e.nextEffect,e.nextEffect=null,e=n}return Iu=t,Yo(),!0}function xl(e,t,n){pi(e,t=wu(e,t=nu(n,t),1073741823)),null!==(e=rl(e,1073741823))&&il(e)}function Cl(e,t){if(3===e.tag)xl(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){xl(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Bu||!Bu.has(r))){pi(n,e=Su(n,e=nu(t,e),1073741823)),null!==(n=rl(n,1073741823))&&il(n);break}}n=n.return}}function _l(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),Nu===e&&Ru===n?ju===Du||ju===Pu&&1073741823===Lu&&Zo()-Wu<500?cl(e,Ru):Uu=!0:$l(e,n)&&(0!==(t=e.lastPingedTime)&&t<n||(e.lastPingedTime=n,il(e)))}function Ol(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(t=tl(t=el(),e,null)),null!==(e=rl(e,t))&&il(e)}Tu=function(e,t,n){var r=t.expirationTime;if(null!==e){var o=t.pendingProps;if(e.memoizedProps!==o||mo.current)Ra=!0;else{if(r<n){switch(Ra=!1,t.tag){case 3:Ha(t),Na();break;case 5:if(Ai(t),4&t.mode&&1!==n&&o.hidden)return t.expirationTime=t.childExpirationTime=1,null;break;case 1:wo(t.type)&&Eo(t);break;case 4:zi(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value,o=t.type._context,ho(ei,o._currentValue),o._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!==(r=t.child.childExpirationTime)&&r>=n?qa(e,t,n):(ho($i,1&$i.current),null!==(t=Ga(e,t,n))?t.sibling:null);ho($i,1&$i.current);break;case 19:if(r=t.childExpirationTime>=n,0!=(64&e.effectTag)){if(r)return Xa(e,t,n);t.effectTag|=64}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null),ho($i,$i.current),!r)return null}return Ga(e,t,n)}Ra=!1}}else Ra=!1;switch(t.expirationTime=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,o=bo(t,go.current),ui(t,n),o=Gi(null,t,r,e,o,n),t.effectTag|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,wo(r)){var i=!0;Eo(t)}else i=!1;t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,ci(t);var u=r.getDerivedStateFromProps;"function"==typeof u&&bi(t,r,u,e),o.updater=wi,t.stateNode=o,o._reactInternalFiber=t,Ei(t,r,e,n),t=Wa(null,t,r,!0,i,n)}else t.tag=0,ja(null,t,o,n),t=t.child;return t;case 16:e:{if(o=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,function(e){if(-1===e._status){e._status=0;var t=e._ctor;t=t(),e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}}(o),1!==o._status)throw o._result;switch(o=o._result,t.type=o,i=t.tag=function(e){if("function"==typeof e)return Ml(e)?1:0;if(null!=e){if((e=e.$$typeof)===le)return 11;if(e===fe)return 14}return 2}(o),e=Jo(o,e),i){case 0:t=$a(null,t,o,e,n);break e;case 1:t=Ua(null,t,o,e,n);break e;case 11:t=za(null,t,o,e,n);break e;case 14:t=La(null,t,o,Jo(o.type,e),r,n);break e}throw Error(a(306,o,""))}return t;case 0:return r=t.type,o=t.pendingProps,$a(e,t,r,o=t.elementType===r?o:Jo(r,o),n);case 1:return r=t.type,o=t.pendingProps,Ua(e,t,r,o=t.elementType===r?o:Jo(r,o),n);case 3:if(Ha(t),r=t.updateQueue,null===e||null===r)throw Error(a(282));if(r=t.pendingProps,o=null!==(o=t.memoizedState)?o.element:null,fi(e,t),vi(t,r,null,n),(r=t.memoizedState.element)===o)Na(),t=Ga(e,t,n);else{if((o=t.stateNode.hydrate)&&(xa=xn(t.stateNode.containerInfo.firstChild),Ea=t,o=Ca=!0),o)for(n=Di(t,null,r,n),t.child=n;n;)n.effectTag=-3&n.effectTag|1024,n=n.sibling;else ja(e,t,r,n),Na();t=t.child}return t;case 5:return Ai(t),null===e&&Pa(t),r=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,u=o.children,Tn(r,o)?u=null:null!==i&&Tn(r,i)&&(t.effectTag|=16),Fa(e,t),4&t.mode&&1!==n&&o.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(ja(e,t,u,n),t=t.child),t;case 6:return null===e&&Pa(t),null;case 13:return qa(e,t,n);case 4:return zi(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Pi(t,null,r,n):ja(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,za(e,t,r,o=t.elementType===r?o:Jo(r,o),n);case 7:return ja(e,t,t.pendingProps,n),t.child;case 8:case 12:return ja(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,o=t.pendingProps,u=t.memoizedProps,i=o.value;var l=t.type._context;if(ho(ei,l._currentValue),l._currentValue=i,null!==u)if(l=u.value,0===(i=Ur(l,i)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(l,i):1073741823))){if(u.children===o.children&&!mo.current){t=Ga(e,t,n);break e}}else for(null!==(l=t.child)&&(l.return=t);null!==l;){var s=l.dependencies;if(null!==s){u=l.child;for(var c=s.firstContext;null!==c;){if(c.context===r&&0!=(c.observedBits&i)){1===l.tag&&((c=di(n,null)).tag=2,pi(l,c)),l.expirationTime<n&&(l.expirationTime=n),null!==(c=l.alternate)&&c.expirationTime<n&&(c.expirationTime=n),ai(l.return,n),s.expirationTime<n&&(s.expirationTime=n);break}c=c.next}}else u=10===l.tag&&l.type===t.type?null:l.child;if(null!==u)u.return=l;else for(u=l;null!==u;){if(u===t){u=null;break}if(null!==(l=u.sibling)){l.return=u.return,u=l;break}u=u.return}l=u}ja(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=(i=t.pendingProps).children,ui(t,n),r=r(o=li(o,i.unstable_observedBits)),t.effectTag|=1,ja(e,t,r,n),t.child;case 14:return i=Jo(o=t.type,t.pendingProps),La(e,t,o,i=Jo(o.type,i),r,n);case 15:return Aa(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Jo(r,o),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,wo(r)?(e=!0,Eo(t)):e=!1,ui(t,n),Ti(t,r,o),Ei(t,r,o,n),Wa(null,t,r,!0,e,n);case 19:return Xa(e,t,n)}throw Error(a(156,t.tag))};var Pl=null,Dl=null;function Il(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function Nl(e,t,n,r){return new Il(e,t,n,r)}function Ml(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Rl(e,t){var n=e.alternate;return null===n?((n=Nl(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.effectTag=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childExpirationTime=e.childExpirationTime,n.expirationTime=e.expirationTime,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{expirationTime:t.expirationTime,firstContext:t.firstContext,responders:t.responders},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function jl(e,t,n,r,o,i){var u=2;if(r=e,"function"==typeof e)Ml(e)&&(u=1);else if("string"==typeof e)u=5;else e:switch(e){case ne:return zl(n.children,o,i,t);case ue:u=8,o|=7;break;case re:u=8,o|=1;break;case oe:return(e=Nl(12,n,t,8|o)).elementType=oe,e.type=oe,e.expirationTime=i,e;case se:return(e=Nl(13,n,t,o)).type=se,e.elementType=se,e.expirationTime=i,e;case ce:return(e=Nl(19,n,t,o)).elementType=ce,e.expirationTime=i,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case ie:u=10;break e;case ae:u=9;break e;case le:u=11;break e;case fe:u=14;break e;case de:u=16,r=null;break e;case pe:u=22;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=Nl(u,n,t,o)).elementType=e,t.type=r,t.expirationTime=i,t}function zl(e,t,n,r){return(e=Nl(7,e,r,t)).expirationTime=n,e}function Ll(e,t,n){return(e=Nl(6,e,null,t)).expirationTime=n,e}function Al(e,t,n){return(t=Nl(4,null!==e.children?e.children:[],e.key,t)).expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Fl(e,t,n){this.tag=t,this.current=null,this.containerInfo=e,this.pingCache=this.pendingChildren=null,this.finishedExpirationTime=0,this.finishedWork=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=90,this.lastExpiredTime=this.lastPingedTime=this.nextKnownPendingLevel=this.lastSuspendedTime=this.firstSuspendedTime=this.firstPendingTime=0}function $l(e,t){var n=e.firstSuspendedTime;return e=e.lastSuspendedTime,0!==n&&n>=t&&e<=t}function Ul(e,t){var n=e.firstSuspendedTime,r=e.lastSuspendedTime;n<t&&(e.firstSuspendedTime=t),(r>t||0===n)&&(e.lastSuspendedTime=t),t<=e.lastPingedTime&&(e.lastPingedTime=0),t<=e.lastExpiredTime&&(e.lastExpiredTime=0)}function Wl(e,t){t>e.firstPendingTime&&(e.firstPendingTime=t);var n=e.firstSuspendedTime;0!==n&&(t>=n?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:t>=e.lastSuspendedTime&&(e.lastSuspendedTime=t+1),t>e.nextKnownPendingLevel&&(e.nextKnownPendingLevel=t))}function Hl(e,t){var n=e.lastExpiredTime;(0===n||n>t)&&(e.lastExpiredTime=t)}function Zl(e,t,n,r){var o=t.current,i=el(),u=mi.suspense;i=tl(i,o,u);e:if(n){t:{if(et(n=n._reactInternalFiber)!==n||1!==n.tag)throw Error(a(170));var l=n;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(wo(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(null!==l);throw Error(a(171))}if(1===n.tag){var s=n.type;if(wo(s)){n=ko(n,s,l);break e}}n=l}else n=vo;return null===t.context?t.context=n:t.pendingContext=n,(t=di(i,u)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),pi(o,t),nl(o,i),i}function Vl(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function Bl(e,t){null!==(e=e.memoizedState)&&null!==e.dehydrated&&e.retryTime<t&&(e.retryTime=t)}function Kl(e,t){Bl(e,t),(e=e.alternate)&&Bl(e,t)}function ql(e,t,n){var r=new Fl(e,t,n=null!=n&&!0===n.hydrate),o=Nl(3,null,null,2===t?7:1===t?3:0);r.current=o,o.stateNode=r,ci(o),e[Dn]=r.current,n&&0!==t&&function(e,t){var n=Je(t);_t.forEach((function(e){vt(e,t,n)})),Ot.forEach((function(e){vt(e,t,n)}))}(0,9===e.nodeType?e:e.ownerDocument),this._internalRoot=r}function Ql(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Yl(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i._internalRoot;if("function"==typeof o){var u=o;o=function(){var e=Vl(a);u.call(e)}}Zl(t,a,e,o)}else{if(i=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new ql(e,0,t?{hydrate:!0}:void 0)}(n,r),a=i._internalRoot,"function"==typeof o){var l=o;o=function(){var e=Vl(a);l.call(e)}}sl((function(){Zl(t,a,e,o)}))}return Vl(a)}function Xl(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:te,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function Gl(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Ql(t))throw Error(a(200));return Xl(e,t,null,n)}ql.prototype.render=function(e){Zl(e,this._internalRoot,null,null)},ql.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Zl(null,e,null,(function(){t[Dn]=null}))},gt=function(e){if(13===e.tag){var t=Go(el(),150,100);nl(e,t),Kl(e,t)}},mt=function(e){13===e.tag&&(nl(e,3),Kl(e,3))},yt=function(e){if(13===e.tag){var t=el();nl(e,t=tl(t,e,null)),Kl(e,t)}},O=function(e,t,n){switch(t){case"input":if(xe(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=Rn(r);if(!o)throw Error(a(90));Se(r),xe(r,o)}}}break;case"textarea":Ne(e,n);break;case"select":null!=(t=n.value)&&Pe(e,!!n.multiple,t,!1)}},R=ll,j=function(e,t,n,r,o){var i=Iu;Iu|=4;try{return Ko(98,e.bind(null,t,n,r,o))}finally{0===(Iu=i)&&Yo()}},z=function(){0==(49&Iu)&&(function(){if(null!==Yu){var e=Yu;Yu=null,e.forEach((function(e,t){Hl(t,e),il(t)})),Yo()}}(),kl())},L=function(e,t){var n=Iu;Iu|=2;try{return e(t)}finally{0===(Iu=n)&&Yo()}};var Jl={Events:[Nn,Mn,Rn,C,k,Un,function(e){it(e,$n)},N,M,Gt,lt,kl,{current:!1}]};!function(e){var t=e.findFiberByHostInstance;(function(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var n=t.inject(e);Pl=function(e){try{t.onCommitFiberRoot(n,e,void 0,64==(64&e.current.effectTag))}catch(e){}},Dl=function(e){try{t.onCommitFiberUnmount(n,e)}catch(e){}}}catch(e){}})(o({},e,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Y.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=rt(e))?null:e.stateNode},findFiberByHostInstance:function(e){return t?t(e):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null}))}({findFiberByHostInstance:In,bundleType:0,version:"16.13.1",rendererPackageName:"react-dom"}),t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Jl,t.createPortal=Gl,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternalFiber;if(void 0===t){if("function"==typeof e.render)throw Error(a(188));throw Error(a(268,Object.keys(e)))}return e=null===(e=rt(t))?null:e.stateNode},t.flushSync=function(e,t){if(0!=(48&Iu))throw Error(a(187));var n=Iu;Iu|=1;try{return Ko(99,e.bind(null,t))}finally{Iu=n,Yo()}},t.hydrate=function(e,t,n){if(!Ql(t))throw Error(a(200));return Yl(null,e,t,!0,n)},t.render=function(e,t,n){if(!Ql(t))throw Error(a(200));return Yl(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Ql(e))throw Error(a(40));return!!e._reactRootContainer&&(sl((function(){Yl(null,null,e,!1,(function(){e._reactRootContainer=null,e[Dn]=null}))})),!0)},t.unstable_batchedUpdates=ll,t.unstable_createPortal=function(e,t){return Gl(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Ql(n))throw Error(a(200));if(null==e||void 0===e._reactInternalFiber)throw Error(a(38));return Yl(e,t,n,!1,r)},t.version="16.13.1"},73961:(e,t,n)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(57799)},24821:(e,t)=>{"use strict"; -/** @license React v16.8.6 - * react-is.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */Object.defineProperty(t,"__esModule",{value:!0});var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,u=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,s=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,f=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.memo"):60115,v=n?Symbol.for("react.lazy"):60116;function g(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case f:case i:case u:case a:case p:return e;default:switch(e=e&&e.$$typeof){case s:case d:case l:return e;default:return t}}case v:case h:case o:return t}}}function m(e){return g(e)===f}t.typeOf=g,t.AsyncMode=c,t.ConcurrentMode=f,t.ContextConsumer=s,t.ContextProvider=l,t.Element=r,t.ForwardRef=d,t.Fragment=i,t.Lazy=v,t.Memo=h,t.Portal=o,t.Profiler=u,t.StrictMode=a,t.Suspense=p,t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===f||e===u||e===a||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===h||e.$$typeof===l||e.$$typeof===s||e.$$typeof===d)},t.isAsyncMode=function(e){return m(e)||g(e)===c},t.isConcurrentMode=m,t.isContextConsumer=function(e){return g(e)===s},t.isContextProvider=function(e){return g(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return g(e)===d},t.isFragment=function(e){return g(e)===i},t.isLazy=function(e){return g(e)===v},t.isMemo=function(e){return g(e)===h},t.isPortal=function(e){return g(e)===o},t.isProfiler=function(e){return g(e)===u},t.isStrictMode=function(e){return g(e)===a},t.isSuspense=function(e){return g(e)===p}},338:(e,t,n)=>{"use strict";e.exports=n(24821)},61208:(e,t,n)=>{"use strict";if(n.d(t,{ZP:()=>a}),!/^(1(45|54|83)|8(13|30|82)|(71|93|99)7|274|296|366|601)$/.test(n.j))var r=n(93661);function o(e,t,n,r){return function(o,i){return n(e(o,i),t(r,i),i)}}function i(e,t,n,r,o){var i,a,u,l,s,c=o.areStatesEqual,f=o.areOwnPropsEqual,d=o.areStatePropsEqual,p=!1;function h(o,p){var h,v,g=!f(p,a),m=!c(o,i);return i=o,a=p,g&&m?(u=e(i,a),t.dependsOnOwnProps&&(l=t(r,a)),s=n(u,l,a)):g?(e.dependsOnOwnProps&&(u=e(i,a)),t.dependsOnOwnProps&&(l=t(r,a)),s=n(u,l,a)):m?(h=e(i,a),v=!d(h,u),u=h,v&&(s=n(u,l,a)),s):s}return function(o,c){return p?h(o,c):(u=e(i=o,a=c),l=t(r,a),s=n(u,l,a),p=!0,s)}}function a(e,t){var n=t.initMapStateToProps,a=t.initMapDispatchToProps,u=t.initMergeProps,l=(0,r.Z)(t,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),s=n(e,l),c=a(e,l),f=u(e,l);return(l.pure?i:o)(s,c,f,e,l)}},87958:(e,t,n)=>{"use strict";n.d(t,{zt:()=>l,$j:()=>j,I0:()=>X,v9:()=>J});var r=n(89526),o=(n(2652),r.createContext(null));var i=n(55599),a={notify:function(){}};var u=function(){function e(e,t){this.store=e,this.parentSub=t,this.unsubscribe=null,this.listeners=a,this.handleChangeWrapper=this.handleChangeWrapper.bind(this)}var t=e.prototype;return t.addNestedSub=function(e){return this.trySubscribe(),this.listeners.subscribe(e)},t.notifyNestedSubs=function(){this.listeners.notify()},t.handleChangeWrapper=function(){this.onStateChange&&this.onStateChange()},t.isSubscribed=function(){return Boolean(this.unsubscribe)},t.trySubscribe=function(){var e,t,n;this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.handleChangeWrapper):this.store.subscribe(this.handleChangeWrapper),this.listeners=(e=(0,i.k)(),t=null,n=null,{clear:function(){t=null,n=null},notify:function(){e((function(){for(var e=t;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],n=t;n;)e.push(n),n=n.next;return e},subscribe:function(e){var r=!0,o=n={callback:e,next:null,prev:n};return o.prev?o.prev.next=o:t=o,function(){r&&null!==t&&(r=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}))},t.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=a)},e}();const l=function(e){var t=e.store,n=e.context,i=e.children,a=(0,r.useMemo)((function(){var e=new u(t);return e.onStateChange=e.notifyNestedSubs,{store:t,subscription:e}}),[t]),l=(0,r.useMemo)((function(){return t.getState()}),[t]);(0,r.useEffect)((function(){var e=a.subscription;return e.trySubscribe(),l!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[a,l]);var s=n||o;return r.createElement(s.Provider,{value:a},i)};if(601!=n.j)var s=n(61416);if(601!=n.j)var c=n(93661);var f=n(41281),d=n.n(f),p=n(338),h="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect,v=601!=n.j?[]:null,g=601!=n.j?[null,null]:null;function m(e,t){var n=e[1];return[t.payload,n+1]}function y(e,t,n){h((function(){return e.apply(void 0,t)}),n)}function b(e,t,n,r,o,i,a){e.current=r,t.current=o,n.current=!1,i.current&&(i.current=null,a())}function w(e,t,n,r,o,i,a,u,l,s){if(e){var c=!1,f=null,d=function(){if(!c){var e,n,d=t.getState();try{e=r(d,o.current)}catch(e){n=e,f=e}n||(f=null),e===i.current?a.current||l():(i.current=e,u.current=e,a.current=!0,s({type:"STORE_UPDATED",payload:{error:n}}))}};n.onStateChange=d,n.trySubscribe(),d();return function(){if(c=!0,n.tryUnsubscribe(),n.onStateChange=null,f)throw f}}}var S=function(){return[null,0]};function T(e,t){void 0===t&&(t={});var n=t,i=n.getDisplayName,a=void 0===i?function(e){return"ConnectAdvanced("+e+")"}:i,l=n.methodName,f=void 0===l?"connectAdvanced":l,h=n.renderCountProp,T=void 0===h?void 0:h,k=n.shouldHandleStateChanges,E=void 0===k||k,x=n.storeKey,C=void 0===x?"store":x,_=(n.withRef,n.forwardRef),O=void 0!==_&&_,P=n.context,D=void 0===P?o:P,I=(0,c.Z)(n,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"]),N=D;return function(t){var n=t.displayName||t.name||"Component",o=a(n),i=(0,s.Z)({},I,{getDisplayName:a,methodName:f,renderCountProp:T,shouldHandleStateChanges:E,storeKey:C,displayName:o,wrappedComponentName:n,WrappedComponent:t}),l=I.pure;var h=l?r.useMemo:function(e){return e()};function k(n){var o=(0,r.useMemo)((function(){var e=n.reactReduxForwardedRef,t=(0,c.Z)(n,["reactReduxForwardedRef"]);return[n.context,e,t]}),[n]),a=o[0],l=o[1],f=o[2],d=(0,r.useMemo)((function(){return a&&a.Consumer&&(0,p.isContextConsumer)(r.createElement(a.Consumer,null))?a:N}),[a,N]),T=(0,r.useContext)(d),k=Boolean(n.store)&&Boolean(n.store.getState)&&Boolean(n.store.dispatch);Boolean(T)&&Boolean(T.store);var x=k?n.store:T.store,C=(0,r.useMemo)((function(){return function(t){return e(t.dispatch,i)}(x)}),[x]),_=(0,r.useMemo)((function(){if(!E)return g;var e=new u(x,k?null:T.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[x,k,T]),O=_[0],P=_[1],D=(0,r.useMemo)((function(){return k?T:(0,s.Z)({},T,{subscription:O})}),[k,T,O]),I=(0,r.useReducer)(m,v,S),M=I[0][0],R=I[1];if(M&&M.error)throw M.error;var j=(0,r.useRef)(),z=(0,r.useRef)(f),L=(0,r.useRef)(),A=(0,r.useRef)(!1),F=h((function(){return L.current&&f===z.current?L.current:C(x.getState(),f)}),[x,M,f]);y(b,[z,j,A,f,F,L,P]),y(w,[E,x,O,C,z,j,A,L,P,R],[x,O,C]);var $=(0,r.useMemo)((function(){return r.createElement(t,(0,s.Z)({},F,{ref:l}))}),[l,t,F]);return(0,r.useMemo)((function(){return E?r.createElement(d.Provider,{value:D},$):$}),[d,$,D])}var x=l?r.memo(k):k;if(x.WrappedComponent=t,x.displayName=o,O){var _=r.forwardRef((function(e,t){return r.createElement(x,(0,s.Z)({},e,{reactReduxForwardedRef:t}))}));return _.displayName=o,_.WrappedComponent=t,d()(_,t)}return d()(x,t)}}if(601!=n.j)var k=n(12047);var E=n(27670);function x(e){return function(t,n){var r=e(t,n);function o(){return r}return o.dependsOnOwnProps=!1,o}}function C(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function _(e,t){return function(t,n){n.displayName;var r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=C(e);var o=r(t,n);return"function"==typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=C(o),o=r(t,n)),o},r}}const O=[function(e){return"function"==typeof e?_(e):void 0},function(e){return e?void 0:x((function(e){return{dispatch:e}}))},function(e){return e&&"object"==typeof e?x((function(t){return(0,E.DE)(e,t)})):void 0}];const P=[function(e){return"function"==typeof e?_(e):void 0},function(e){return e?void 0:x((function(){return{}}))}];if(601==n.j)s=n(61416);function D(e,t,n){return(0,s.Z)({},n,{},e,{},t)}const I=[function(e){return"function"==typeof e?function(e){return function(t,n){n.displayName;var r,o=n.pure,i=n.areMergedPropsEqual,a=!1;return function(t,n,u){var l=e(t,n,u);return a?o&&i(l,r)||(r=l):(a=!0,r=l),r}}}(e):void 0},function(e){return e?void 0:function(){return D}}];if(601!=n.j)var N=n(61208);function M(e,t,n){for(var r=t.length-1;r>=0;r--){var o=t[r](e);if(o)return o}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function R(e,t){return e===t}const j=601!=n.j?(A=(L=void 0===z?{}:z).connectHOC,F=void 0===A?T:A,$=L.mapStateToPropsFactories,U=void 0===$?P:$,W=L.mapDispatchToPropsFactories,H=void 0===W?O:W,Z=L.mergePropsFactories,V=void 0===Z?I:Z,B=L.selectorFactory,K=void 0===B?N.ZP:B,function(e,t,n,r){void 0===r&&(r={});var o=r,i=o.pure,a=void 0===i||i,u=o.areStatesEqual,l=void 0===u?R:u,f=o.areOwnPropsEqual,d=void 0===f?k.Z:f,p=o.areStatePropsEqual,h=void 0===p?k.Z:p,v=o.areMergedPropsEqual,g=void 0===v?k.Z:v,m=(0,c.Z)(o,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),y=M(e,U,"mapStateToProps"),b=M(t,H,"mapDispatchToProps"),w=M(n,V,"mergeProps");return F(K,(0,s.Z)({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:y,initMapDispatchToProps:b,initMergeProps:w,pure:a,areStatesEqual:l,areOwnPropsEqual:d,areStatePropsEqual:h,areMergedPropsEqual:g},m))}):null;var z,L,A,F,$,U,W,H,Z,V,B,K;function q(){return(0,r.useContext)(o)}function Q(e){void 0===e&&(e=o);var t=e===o?q:function(){return(0,r.useContext)(e)};return function(){return t().store}}var Y=/^(20|88)5$/.test(n.j)?Q():null;var X=/^(20|88)5$/.test(n.j)?function(e){void 0===e&&(e=o);var t=e===o?Y:Q(e);return function(){return t().dispatch}}():null,G=function(e,t){return e===t};var J=/^(205|571|601|885)$/.test(n.j)?function(e){void 0===e&&(e=o);var t=e===o?q:function(){return(0,r.useContext)(e)};return function(e,n){void 0===n&&(n=G);var o=t(),i=function(e,t,n,o){var i,a=(0,r.useReducer)((function(e){return e+1}),0)[1],l=(0,r.useMemo)((function(){return new u(n,o)}),[n,o]),s=(0,r.useRef)(),c=(0,r.useRef)(),f=(0,r.useRef)(),d=(0,r.useRef)(),p=n.getState();try{i=e!==c.current||p!==f.current||s.current?e(p):d.current}catch(e){throw s.current&&(e.message+="\nThe error may be correlated with this previous error:\n"+s.current.stack+"\n\n"),e}return h((function(){c.current=e,f.current=p,d.current=i,s.current=void 0})),h((function(){function e(){try{var e=c.current(n.getState());if(t(e,d.current))return;d.current=e}catch(e){s.current=e}a()}return l.onStateChange=e,l.trySubscribe(),e(),function(){return l.tryUnsubscribe()}}),[n,l]),i}(e,n,o.store,o.subscription);return(0,r.useDebugValue)(i),i}}():null,ee=n(73961);(0,i.F)(ee.unstable_batchedUpdates)},55599:(e,t,n)=>{"use strict";n.d(t,{F:()=>o,k:()=>i});var r=/^(1(45|54|83)|8(13|30|82)|(71|93|99)7|274|296|366)$/.test(n.j)?null:function(e){e()},o=function(e){return r=e},i=function(){return r}},12047:(e,t,n)=>{"use strict";function r(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function o(e,t){if(r(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(var i=0;i<n.length;i++)if(!Object.prototype.hasOwnProperty.call(t,n[i])||!r(e[n[i]],t[n[i]]))return!1;return!0}n.d(t,{Z:()=>o})},565:(e,t,n)=>{"use strict";n.d(t,{VK:()=>c});var r=n(59934),o=n(45177),i=n(89526),a=n(88824),u=(n(2652),n(61416)),l=n(93661),s=n(53499),c=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).history=(0,a.lX)(t.props),t}return(0,o.Z)(t,e),t.prototype.render=function(){return i.createElement(r.F0,{history:this.history,children:this.props.children})},t}(i.Component);i.Component;var f=function(e,t){return"function"==typeof e?e(t):e},d=function(e,t){return"string"==typeof e?(0,a.ob)(e,null,null,t):e},p=function(e){return e},h=i.forwardRef;void 0===h&&(h=p);var v=h((function(e,t){var n=e.innerRef,r=e.navigate,o=e.onClick,a=(0,l.Z)(e,["innerRef","navigate","onClick"]),s=a.target,c=(0,u.Z)({},a,{onClick:function(e){try{o&&o(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||s&&"_self"!==s||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),r())}});return c.ref=p!==h&&t||n,i.createElement("a",c)}));var g=h((function(e,t){var n=e.component,o=void 0===n?v:n,a=e.replace,c=e.to,g=e.innerRef,m=(0,l.Z)(e,["component","replace","to","innerRef"]);return i.createElement(r.s6.Consumer,null,(function(e){e||(0,s.Z)(!1);var n=e.history,r=d(f(c,e.location),e.location),l=r?n.createHref(r):"",v=(0,u.Z)({},m,{href:l,navigate:function(){var t=f(c,e.location);(a?n.replace:n.push)(t)}});return p!==h?v.ref=t||g:v.innerRef=g,i.createElement(o,v)}))})),m=function(e){return e},y=i.forwardRef;void 0===y&&(y=m);y((function(e,t){var n=e["aria-current"],o=void 0===n?"page":n,a=e.activeClassName,c=void 0===a?"active":a,p=e.activeStyle,h=e.className,v=e.exact,b=e.isActive,w=e.location,S=e.strict,T=e.style,k=e.to,E=e.innerRef,x=(0,l.Z)(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","strict","style","to","innerRef"]);return i.createElement(r.s6.Consumer,null,(function(e){e||(0,s.Z)(!1);var n=w||e.location,a=d(f(k,n),n),l=a.pathname,C=l&&l.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),_=C?(0,r.LX)(n.pathname,{path:C,exact:v,strict:S}):null,O=!!(b?b(_,n):_),P=O?function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((function(e){return e})).join(" ")}(h,c):h,D=O?(0,u.Z)({},T,{},p):T,I=(0,u.Z)({"aria-current":O&&o||null,className:P,style:D,to:a},x);return m!==y?I.ref=t||E:I.innerRef=E,i.createElement(g,I)}))}))},59934:(e,t,n)=>{"use strict";n.d(t,{l_:()=>w,AW:()=>E,F0:()=>v,rs:()=>D,s6:()=>h,LX:()=>k,k6:()=>M,TH:()=>R,UO:()=>j,EN:()=>I});var r=n(45177),o=n(89526),i=(n(2652),n(88824)),a=n(47905),u=n(53499),l=n(61416),s=n(39455),c=n.n(s),f=(n(338),n(93661)),d=n(41281),p=n.n(d),h=function(e){var t=(0,a.Z)();return t.displayName=e,t}("Router"),v=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._isMounted?n.setState({location:e}):n._pendingLocation=e}))),n}(0,r.Z)(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&this.unlisten()},n.render=function(){return o.createElement(h.Provider,{children:this.props.children||null,value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}})},t}(o.Component);o.Component;var g=function(e){function t(){return e.apply(this,arguments)||this}(0,r.Z)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},n.componentDidUpdate=function(e){this.props.onUpdate&&this.props.onUpdate.call(this,this,e)},n.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},n.render=function(){return null},t}(o.Component);var m={},y=0;function b(e,t){return void 0===e&&(e="/"),void 0===t&&(t={}),"/"===e?e:function(e){if(m[e])return m[e];var t=c().compile(e);return y<1e4&&(m[e]=t,y++),t}(e)(t,{pretty:!0})}function w(e){var t=e.computedMatch,n=e.to,r=e.push,a=void 0!==r&&r;return o.createElement(h.Consumer,null,(function(e){e||(0,u.Z)(!1);var r=e.history,s=e.staticContext,c=a?r.push:r.replace,f=(0,i.ob)(t?"string"==typeof n?b(n,t.params):(0,l.Z)({},n,{pathname:b(n.pathname,t.params)}):n);return s?(c(f),null):o.createElement(g,{onMount:function(){c(f)},onUpdate:function(e,t){var n=(0,i.ob)(t.to);(0,i.Hp)(n,(0,l.Z)({},f,{key:n.key}))||c(f)},to:n})}))}var S={},T=0;function k(e,t){void 0===t&&(t={}),("string"==typeof t||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,o=n.exact,i=void 0!==o&&o,a=n.strict,u=void 0!==a&&a,l=n.sensitive,s=void 0!==l&&l;return[].concat(r).reduce((function(t,n){if(!n&&""!==n)return null;if(t)return t;var r=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=S[n]||(S[n]={});if(r[e])return r[e];var o=[],i={regexp:c()(e,o,t),keys:o};return T<1e4&&(r[e]=i,T++),i}(n,{end:i,strict:u,sensitive:s}),o=r.regexp,a=r.keys,l=o.exec(e);if(!l)return null;var f=l[0],d=l.slice(1),p=e===f;return i&&!p?null:{path:n,url:"/"===n&&""===f?"/":f,isExact:p,params:a.reduce((function(e,t,n){return e[t.name]=d[n],e}),{})}}),null)}var E=function(e){function t(){return e.apply(this,arguments)||this}return(0,r.Z)(t,e),t.prototype.render=function(){var e=this;return o.createElement(h.Consumer,null,(function(t){t||(0,u.Z)(!1);var n=e.props.location||t.location,r=e.props.computedMatch?e.props.computedMatch:e.props.path?k(n.pathname,e.props):t.match,i=(0,l.Z)({},t,{location:n,match:r}),a=e.props,s=a.children,c=a.component,f=a.render;return Array.isArray(s)&&0===s.length&&(s=null),o.createElement(h.Provider,{value:i},i.match?s?"function"==typeof s?s(i):s:c?o.createElement(c,i):f?f(i):null:"function"==typeof s?s(i):null)}))},t}(o.Component);function x(e){return"/"===e.charAt(0)?e:"/"+e}function C(e,t){if(!e)return t;var n=x(e);return 0!==t.pathname.indexOf(n)?t:(0,l.Z)({},t,{pathname:t.pathname.substr(n.length)})}function _(e){return"string"==typeof e?e:(0,i.Ep)(e)}function O(e){return function(){(0,u.Z)(!1)}}function P(){}o.Component;var D=function(e){function t(){return e.apply(this,arguments)||this}return(0,r.Z)(t,e),t.prototype.render=function(){var e=this;return o.createElement(h.Consumer,null,(function(t){t||(0,u.Z)(!1);var n,r,i=e.props.location||t.location;return o.Children.forEach(e.props.children,(function(e){if(null==r&&o.isValidElement(e)){n=e;var a=e.props.path||e.props.from;r=a?k(i.pathname,(0,l.Z)({},e.props,{path:a})):t.match}})),r?o.cloneElement(n,{location:i,computedMatch:r}):null}))},t}(o.Component);function I(e){var t="withRouter("+(e.displayName||e.name)+")",n=function(t){var n=t.wrappedComponentRef,r=(0,f.Z)(t,["wrappedComponentRef"]);return o.createElement(h.Consumer,null,(function(t){return t||(0,u.Z)(!1),o.createElement(e,(0,l.Z)({},r,t,{ref:n}))}))};return n.displayName=t,n.WrappedComponent=e,p()(n,e)}var N=o.useContext;function M(){return N(h).history}function R(){return N(h).location}function j(){var e=N(h).match;return e?e.params:{}}},86262:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(89526);function o(e){var t;t="undefined"!=typeof window?window:"undefined"!=typeof self?self:n.g;var r,o,i="undefined"!=typeof document&&document.attachEvent;if(!i){var a=(o=t.requestAnimationFrame||t.mozRequestAnimationFrame||t.webkitRequestAnimationFrame||function(e){return t.setTimeout(e,20)},function(e){return o(e)}),u=(r=t.cancelAnimationFrame||t.mozCancelAnimationFrame||t.webkitCancelAnimationFrame||t.clearTimeout,function(e){return r(e)}),l=function(e){var t=e.__resizeTriggers__,n=t.firstElementChild,r=t.lastElementChild,o=n.firstElementChild;r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,o.style.width=n.offsetWidth+1+"px",o.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},s=function(e){if(!(e.target.className&&"function"==typeof e.target.className.indexOf&&e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)){var t=this;l(this),this.__resizeRAF__&&u(this.__resizeRAF__),this.__resizeRAF__=a((function(){(function(e){return e.offsetWidth!=e.__resizeLast__.width||e.offsetHeight!=e.__resizeLast__.height})(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach((function(n){n.call(t,e)})))}))}},c=!1,f="",d="animationstart",p="Webkit Moz O ms".split(" "),h="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),v=document.createElement("fakeelement");if(void 0!==v.style.animationName&&(c=!0),!1===c)for(var g=0;g<p.length;g++)if(void 0!==v.style[p[g]+"AnimationName"]){f="-"+p[g].toLowerCase()+"-",d=h[g],c=!0;break}var m="resizeanim",y="@"+f+"keyframes "+m+" { from { opacity: 0; } to { opacity: 0; } } ",b=f+"animation: 1ms "+m+"; "}return{addResizeListener:function(n,r){if(i)n.attachEvent("onresize",r);else{if(!n.__resizeTriggers__){var o=n.ownerDocument,a=t.getComputedStyle(n);a&&"static"==a.position&&(n.style.position="relative"),function(t){if(!t.getElementById("detectElementResize")){var n=(y||"")+".resize-triggers { "+(b||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',r=t.head||t.getElementsByTagName("head")[0],o=t.createElement("style");o.id="detectElementResize",o.type="text/css",null!=e&&o.setAttribute("nonce",e),o.styleSheet?o.styleSheet.cssText=n:o.appendChild(t.createTextNode(n)),r.appendChild(o)}}(o),n.__resizeLast__={},n.__resizeListeners__=[],(n.__resizeTriggers__=o.createElement("div")).className="resize-triggers";var u=o.createElement("div");u.className="expand-trigger",u.appendChild(o.createElement("div"));var c=o.createElement("div");c.className="contract-trigger",n.__resizeTriggers__.appendChild(u),n.__resizeTriggers__.appendChild(c),n.appendChild(n.__resizeTriggers__),l(n),n.addEventListener("scroll",s,!0),d&&(n.__resizeTriggers__.__animationListener__=function(e){e.animationName==m&&l(n)},n.__resizeTriggers__.addEventListener(d,n.__resizeTriggers__.__animationListener__))}n.__resizeListeners__.push(r)}},removeResizeListener:function(e,t){if(i)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",s,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(d,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}var i=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=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},s=function(e){function t(){var e,n,r;i(this,t);for(var o=arguments.length,a=Array(o),u=0;u<o;u++)a[u]=arguments[u];return n=r=l(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),r.state={height:r.props.defaultHeight||0,width:r.props.defaultWidth||0},r._onResize=function(){var e=r.props,t=e.disableHeight,n=e.disableWidth,o=e.onResize;if(r._parentNode){var i=r._parentNode.offsetHeight||0,a=r._parentNode.offsetWidth||0,u=window.getComputedStyle(r._parentNode)||{},l=parseInt(u.paddingLeft,10)||0,s=parseInt(u.paddingRight,10)||0,c=parseInt(u.paddingTop,10)||0,f=parseInt(u.paddingBottom,10)||0,d=i-c-f,p=a-l-s;(!t&&r.state.height!==d||!n&&r.state.width!==p)&&(r.setState({height:i-c-f,width:a-l-s}),o({height:i,width:a}))}},r._setRef=function(e){r._autoSizer=e},l(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+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),a(t,[{key:"componentDidMount",value:function(){var e=this.props.nonce;this._autoSizer&&this._autoSizer.parentNode&&this._autoSizer.parentNode.ownerDocument&&this._autoSizer.parentNode.ownerDocument.defaultView&&this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=this._autoSizer.parentNode,this._detectElementResize=o(e),this._detectElementResize.addResizeListener(this._parentNode,this._onResize),this._onResize())}},{key:"componentWillUnmount",value:function(){this._detectElementResize&&this._parentNode&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize)}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,o=e.disableHeight,i=e.disableWidth,a=e.style,l=this.state,s=l.height,c=l.width,f={overflow:"visible"},d={},p=!1;return o||(0===s&&(p=!0),f.height=0,d.height=s),i||(0===c&&(p=!0),f.width=0,d.width=c),(0,r.createElement)("div",{className:n,ref:this._setRef,style:u({},f,a)},!p&&t(d))}}]),t}(r.PureComponent);s.defaultProps={onResize:function(){},disableHeight:!1,disableWidth:!1,style:{}};const c=/^((20|5|88)5|908|991)$/.test(n.j)?s:null},57518:(e,t,n)=>{"use strict";n.d(t,{S_:()=>E,Ym:()=>x});var r=n(61416),o=n(45177),i=n(77462),a=n(21850),u=n(89526),l="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function s(e){cancelAnimationFrame(e.id)}function c(e,t){var n=l();var r={id:requestAnimationFrame((function o(){l()-n>=t?e.call(null):r.id=requestAnimationFrame(o)}))};return r}var f=-1;var d=null;function p(e){if(void 0===e&&(e=!1),null===d||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),o=r.style;return o.width="100px",o.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?d="positive-descending":(t.scrollLeft=1,d=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),d}return d}var h=function(e){var t=e.columnIndex;e.data;return e.rowIndex+":"+t};function v(e){var t,n,l=e.getColumnOffset,d=e.getColumnStartIndexForOffset,v=e.getColumnStopIndexForStartIndex,m=e.getColumnWidth,y=e.getEstimatedTotalHeight,b=e.getEstimatedTotalWidth,w=e.getOffsetForColumnAndAlignment,S=e.getOffsetForRowAndAlignment,T=e.getRowHeight,k=e.getRowOffset,E=e.getRowStartIndexForOffset,x=e.getRowStopIndexForStartIndex,C=e.initInstanceProps,_=e.shouldResetStyleCacheOnItemSizeChange,O=e.validateProps;return n=t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=C(n.props,(0,i.Z)((0,i.Z)(n))),n._resetIsScrollingTimeoutId=null,n._outerRef=void 0,n.state={instance:(0,i.Z)((0,i.Z)(n)),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof n.props.initialScrollLeft?n.props.initialScrollLeft:0,scrollTop:"number"==typeof n.props.initialScrollTop?n.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},n._callOnItemsRendered=void 0,n._callOnItemsRendered=(0,a.Z)((function(e,t,r,o,i,a,u,l){return n.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:r,overscanRowStopIndex:o,visibleColumnStartIndex:i,visibleColumnStopIndex:a,visibleRowStartIndex:u,visibleRowStopIndex:l})})),n._callOnScroll=void 0,n._callOnScroll=(0,a.Z)((function(e,t,r,o,i){return n.props.onScroll({horizontalScrollDirection:r,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:i})})),n._getItemStyle=void 0,n._getItemStyle=function(e,t){var r,o,i=n.props,a=i.columnWidth,u=i.direction,s=i.rowHeight,c=n._getItemStyleCache(_&&a,_&&u,_&&s),f=e+":"+t;c.hasOwnProperty(f)?r=c[f]:c[f]=((o={position:"absolute"})["rtl"===u?"right":"left"]=l(n.props,t,n._instanceProps),o.top=k(n.props,e,n._instanceProps),o.height=T(n.props,e,n._instanceProps),o.width=m(n.props,t,n._instanceProps),r=o);return r},n._getItemStyleCache=void 0,n._getItemStyleCache=(0,a.Z)((function(e,t,n){return{}})),n._onScroll=function(e){var t=e.currentTarget,r=t.clientHeight,o=t.clientWidth,i=t.scrollLeft,a=t.scrollTop,u=t.scrollHeight,l=t.scrollWidth;n.setState((function(e){if(e.scrollLeft===i&&e.scrollTop===a)return null;var t=n.props.direction,s=i;if("rtl"===t)switch(p()){case"negative":s=-i;break;case"positive-descending":s=l-o-i}s=Math.max(0,Math.min(s,l-o));var c=Math.max(0,Math.min(a,u-r));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<i?"forward":"backward",scrollLeft:s,scrollTop:c,verticalScrollDirection:e.scrollTop<a?"forward":"backward",scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&s(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=c(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1)}))},n}(0,o.Z)(t,e),t.getDerivedStateFromProps=function(e,t){return g(e,t),O(e),null};var n=t.prototype;return n.scrollTo=function(e){var t=e.scrollLeft,n=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==n&&(n=Math.max(0,n)),this.setState((function(e){return void 0===t&&(t=e.scrollLeft),void 0===n&&(n=e.scrollTop),e.scrollLeft===t&&e.scrollTop===n?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:n,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<n?"forward":"backward"}}),this._resetIsScrollingDebounced)},n.scrollToItem=function(e){var t=e.align,n=void 0===t?"auto":t,r=e.columnIndex,o=e.rowIndex,i=this.props,a=i.columnCount,u=i.height,l=i.rowCount,s=i.width,c=this.state,d=c.scrollLeft,p=c.scrollTop,h=function(e){if(void 0===e&&(e=!1),-1===f||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),f=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return f}();void 0!==r&&(r=Math.max(0,Math.min(r,a-1))),void 0!==o&&(o=Math.max(0,Math.min(o,l-1)));var v=y(this.props,this._instanceProps),g=b(this.props,this._instanceProps)>s?h:0,m=v>u?h:0;this.scrollTo({scrollLeft:void 0!==r?w(this.props,r,n,d,this._instanceProps,m):d,scrollTop:void 0!==o?S(this.props,o,n,p,this._instanceProps,g):p})},n.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,n=e.initialScrollTop;if(null!=this._outerRef){var r=this._outerRef;"number"==typeof t&&(r.scrollLeft=t),"number"==typeof n&&(r.scrollTop=n)}this._callPropsCallbacks()},n.componentDidUpdate=function(){var e=this.props.direction,t=this.state,n=t.scrollLeft,r=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(p()){case"negative":o.scrollLeft=-n;break;case"positive-ascending":o.scrollLeft=n;break;default:var i=o.clientWidth,a=o.scrollWidth;o.scrollLeft=a-i-n}else o.scrollLeft=Math.max(0,n);o.scrollTop=Math.max(0,r)}this._callPropsCallbacks()},n.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&s(this._resetIsScrollingTimeoutId)},n.render=function(){var e=this.props,t=e.children,n=e.className,o=e.columnCount,i=e.direction,a=e.height,l=e.innerRef,s=e.innerElementType,c=e.innerTagName,f=e.itemData,d=e.itemKey,p=void 0===d?h:d,v=e.outerElementType,g=e.outerTagName,m=e.rowCount,w=e.style,S=e.useIsScrolling,T=e.width,k=this.state.isScrolling,E=this._getHorizontalRangeToRender(),x=E[0],C=E[1],_=this._getVerticalRangeToRender(),O=_[0],P=_[1],D=[];if(o>0&&m)for(var I=O;I<=P;I++)for(var N=x;N<=C;N++)D.push((0,u.createElement)(t,{columnIndex:N,data:f,isScrolling:S?k:void 0,key:p({columnIndex:N,data:f,rowIndex:I}),rowIndex:I,style:this._getItemStyle(I,N)}));var M=y(this.props,this._instanceProps),R=b(this.props,this._instanceProps);return(0,u.createElement)(v||g||"div",{className:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:(0,r.Z)({position:"relative",height:a,width:T,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:i},w)},(0,u.createElement)(s||c||"div",{children:D,ref:l,style:{height:M,pointerEvents:k?"none":void 0,width:R}}))},n._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,n=e.onItemsRendered,r=e.onScroll,o=e.rowCount;if("function"==typeof n&&t>0&&o>0){var i=this._getHorizontalRangeToRender(),a=i[0],u=i[1],l=i[2],s=i[3],c=this._getVerticalRangeToRender(),f=c[0],d=c[1],p=c[2],h=c[3];this._callOnItemsRendered(a,u,f,d,l,s,p,h)}if("function"==typeof r){var v=this.state,g=v.horizontalScrollDirection,m=v.scrollLeft,y=v.scrollTop,b=v.scrollUpdateWasRequested,w=v.verticalScrollDirection;this._callOnScroll(m,y,g,w,b)}},n._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanColumnCount,r=e.overscanColumnsCount,o=e.overscanCount,i=e.rowCount,a=this.state,u=a.horizontalScrollDirection,l=a.isScrolling,s=a.scrollLeft,c=n||r||o||1;if(0===t||0===i)return[0,0,0,0];var f=d(this.props,s,this._instanceProps),p=v(this.props,f,s,this._instanceProps),h=l&&"backward"!==u?1:Math.max(1,c),g=l&&"forward"!==u?1:Math.max(1,c);return[Math.max(0,f-h),Math.max(0,Math.min(t-1,p+g)),f,p]},n._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanCount,r=e.overscanRowCount,o=e.overscanRowsCount,i=e.rowCount,a=this.state,u=a.isScrolling,l=a.verticalScrollDirection,s=a.scrollTop,c=r||o||n||1;if(0===t||0===i)return[0,0,0,0];var f=E(this.props,s,this._instanceProps),d=x(this.props,f,s,this._instanceProps),p=u&&"backward"!==l?1:Math.max(1,c),h=u&&"forward"!==l?1:Math.max(1,c);return[Math.max(0,f-p),Math.max(0,Math.min(i-1,d+h)),f,d]},t}(u.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},n}var g=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},m=function(e,t){return e};function y(e){var t,n,l=e.getItemOffset,f=e.getEstimatedTotalSize,d=e.getItemSize,h=e.getOffsetForIndexAndAlignment,v=e.getStartIndexForOffset,g=e.getStopIndexForStartIndex,y=e.initInstanceProps,w=e.shouldResetStyleCacheOnItemSizeChange,S=e.validateProps;return n=t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=y(n.props,(0,i.Z)((0,i.Z)(n))),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:(0,i.Z)((0,i.Z)(n)),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=(0,a.Z)((function(e,t,r,o){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:r,visibleStopIndex:o})})),n._callOnScroll=void 0,n._callOnScroll=(0,a.Z)((function(e,t,r){return n.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:r})})),n._getItemStyle=void 0,n._getItemStyle=function(e){var t,r=n.props,o=r.direction,i=r.itemSize,a=r.layout,u=n._getItemStyleCache(w&&i,w&&a,w&&o);if(u.hasOwnProperty(e))t=u[e];else{var s,c=l(n.props,e,n._instanceProps),f=d(n.props,e,n._instanceProps),p="horizontal"===o||"horizontal"===a;u[e]=((s={position:"absolute"})["rtl"===o?"right":"left"]=p?c:0,s.top=p?0:c,s.height=p?"100%":f,s.width=p?f:"100%",t=s)}return t},n._getItemStyleCache=void 0,n._getItemStyleCache=(0,a.Z)((function(e,t,n){return{}})),n._onScrollHorizontal=function(e){var t=e.currentTarget,r=t.clientWidth,o=t.scrollLeft,i=t.scrollWidth;n.setState((function(e){if(e.scrollOffset===o)return null;var t=n.props.direction,a=o;if("rtl"===t)switch(p()){case"negative":a=-o;break;case"positive-descending":a=i-r-o}return a=Math.max(0,Math.min(a,i-r)),{isScrolling:!0,scrollDirection:e.scrollOffset<o?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._onScrollVertical=function(e){var t=e.currentTarget,r=t.clientHeight,o=t.scrollHeight,i=t.scrollTop;n.setState((function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,o-r));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&s(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=c(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1,null)}))},n}(0,o.Z)(t,e),t.getDerivedStateFromProps=function(e,t){return b(e,t),S(e),null};var n=t.prototype;return n.scrollTo=function(e){e=Math.max(0,e),this.setState((function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}}),this._resetIsScrollingDebounced)},n.scrollToItem=function(e,t){void 0===t&&(t="auto");var n=this.props.itemCount,r=this.state.scrollOffset;e=Math.max(0,Math.min(e,n-1)),this.scrollTo(h(this.props,e,t,r,this._instanceProps))},n.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,r=e.layout;if("number"==typeof n&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===r?o.scrollLeft=n:o.scrollTop=n}this._callPropsCallbacks()},n.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,r=this.state,o=r.scrollOffset;if(r.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(p()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var a=i.clientWidth,u=i.scrollWidth;i.scrollLeft=u-a-o}else i.scrollLeft=o;else i.scrollTop=o}this._callPropsCallbacks()},n.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&s(this._resetIsScrollingTimeoutId)},n.render=function(){var e=this.props,t=e.children,n=e.className,o=e.direction,i=e.height,a=e.innerRef,l=e.innerElementType,s=e.innerTagName,c=e.itemCount,d=e.itemData,p=e.itemKey,h=void 0===p?m:p,v=e.layout,g=e.outerElementType,y=e.outerTagName,b=e.style,w=e.useIsScrolling,S=e.width,T=this.state.isScrolling,k="horizontal"===o||"horizontal"===v,E=k?this._onScrollHorizontal:this._onScrollVertical,x=this._getRangeToRender(),C=x[0],_=x[1],O=[];if(c>0)for(var P=C;P<=_;P++)O.push((0,u.createElement)(t,{data:d,key:h(P,d),index:P,isScrolling:w?T:void 0,style:this._getItemStyle(P)}));var D=f(this.props,this._instanceProps);return(0,u.createElement)(g||y||"div",{className:n,onScroll:E,ref:this._outerRefSetter,style:(0,r.Z)({position:"relative",height:i,width:S,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},(0,u.createElement)(l||s||"div",{children:O,ref:a,style:{height:k?"100%":D,pointerEvents:T?"none":void 0,width:k?D:"100%"}}))},n._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],r=e[2],o=e[3];this._callOnItemsRendered(t,n,r,o)}if("function"==typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,u=i.scrollOffset,l=i.scrollUpdateWasRequested;this._callOnScroll(a,u,l)}},n._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,o=r.isScrolling,i=r.scrollDirection,a=r.scrollOffset;if(0===t)return[0,0,0,0];var u=v(this.props,a,this._instanceProps),l=g(this.props,u,a,this._instanceProps),s=o&&"backward"!==i?1:Math.max(1,n),c=o&&"forward"!==i?1:Math.max(1,n);return[Math.max(0,u-s),Math.max(0,Math.min(t-1,l+c)),u,l]},t}(u.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},n}var b=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},w=function(e,t,n){var r=e.itemSize,o=n.itemMetadataMap,i=n.lastMeasuredIndex;if(t>i){var a=0;if(i>=0){var u=o[i];a=u.offset+u.size}for(var l=i+1;l<=t;l++){var s=r(l);o[l]={offset:a,size:s},a+=s}n.lastMeasuredIndex=t}return o[t]},S=function(e,t,n,r,o){for(;r<=n;){var i=r+Math.floor((n-r)/2),a=w(e,i,t).offset;if(a===o)return i;a<o?r=i+1:a>o&&(n=i-1)}return r>0?r-1:0},T=function(e,t,n,r){for(var o=e.itemCount,i=1;n<o&&w(e,n,t).offset<r;)n+=i,i*=2;return S(e,t,Math.min(n,o-1),Math.floor(n/2),r)},k=function(e,t){var n=e.itemCount,r=t.itemMetadataMap,o=t.estimatedItemSize,i=t.lastMeasuredIndex,a=0;if(i>=n&&(i=n-1),i>=0){var u=r[i];a=u.offset+u.size}return a+(n-i-1)*o},E=y({getItemOffset:function(e,t,n){return w(e,t,n).offset},getItemSize:function(e,t,n){return n.itemMetadataMap[t].size},getEstimatedTotalSize:k,getOffsetForIndexAndAlignment:function(e,t,n,r,o){var i=e.direction,a=e.height,u=e.layout,l=e.width,s="horizontal"===i||"horizontal"===u?l:a,c=w(e,t,o),f=k(e,o),d=Math.max(0,Math.min(f-s,c.offset)),p=Math.max(0,c.offset-s+c.size);switch("smart"===n&&(n=r>=p-s&&r<=d+s?"auto":"center"),n){case"start":return d;case"end":return p;case"center":return Math.round(p+(d-p)/2);case"auto":default:return r>=p&&r<=d?r:r<p?p:d}},getStartIndexForOffset:function(e,t,n){return function(e,t,n){var r=t.itemMetadataMap,o=t.lastMeasuredIndex;return(o>0?r[o].offset:0)>=n?S(e,t,o,0,n):T(e,t,Math.max(0,o),n)}(e,n,t)},getStopIndexForStartIndex:function(e,t,n,r){for(var o=e.direction,i=e.height,a=e.itemCount,u=e.layout,l=e.width,s="horizontal"===o||"horizontal"===u?l:i,c=w(e,t,r),f=n+s,d=c.offset+c.size,p=t;p<a-1&&d<f;)p++,d+=w(e,p,r).size;return p},initInstanceProps:function(e,t){var n={itemMetadataMap:{},estimatedItemSize:e.estimatedItemSize||50,lastMeasuredIndex:-1};return t.resetAfterIndex=function(e,r){void 0===r&&(r=!0),n.lastMeasuredIndex=Math.min(n.lastMeasuredIndex,e-1),t._getItemStyleCache(-1),r&&t.forceUpdate()},n},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.itemSize}}),x=v({getColumnOffset:function(e,t){return t*e.columnWidth},getColumnWidth:function(e,t){return e.columnWidth},getRowOffset:function(e,t){return t*e.rowHeight},getRowHeight:function(e,t){return e.rowHeight},getEstimatedTotalHeight:function(e){var t=e.rowCount;return e.rowHeight*t},getEstimatedTotalWidth:function(e){var t=e.columnCount;return e.columnWidth*t},getOffsetForColumnAndAlignment:function(e,t,n,r,o,i){var a=e.columnCount,u=e.columnWidth,l=e.width,s=Math.max(0,a*u-l),c=Math.min(s,t*u),f=Math.max(0,t*u-l+i+u);switch("smart"===n&&(n=r>=f-l&&r<=c+l?"auto":"center"),n){case"start":return c;case"end":return f;case"center":var d=Math.round(f+(c-f)/2);return d<Math.ceil(l/2)?0:d>s+Math.floor(l/2)?s:d;case"auto":default:return r>=f&&r<=c?r:f>c||r<f?f:c}},getOffsetForRowAndAlignment:function(e,t,n,r,o,i){var a=e.rowHeight,u=e.height,l=e.rowCount,s=Math.max(0,l*a-u),c=Math.min(s,t*a),f=Math.max(0,t*a-u+i+a);switch("smart"===n&&(n=r>=f-u&&r<=c+u?"auto":"center"),n){case"start":return c;case"end":return f;case"center":var d=Math.round(f+(c-f)/2);return d<Math.ceil(u/2)?0:d>s+Math.floor(u/2)?s:d;case"auto":default:return r>=f&&r<=c?r:f>c||r<f?f:c}},getColumnStartIndexForOffset:function(e,t){var n=e.columnWidth,r=e.columnCount;return Math.max(0,Math.min(r-1,Math.floor(t/n)))},getColumnStopIndexForStartIndex:function(e,t,n){var r=e.columnWidth,o=e.columnCount,i=e.width,a=t*r,u=Math.ceil((i+n-a)/r);return Math.max(0,Math.min(o-1,t+u-1))},getRowStartIndexForOffset:function(e,t){var n=e.rowHeight,r=e.rowCount;return Math.max(0,Math.min(r-1,Math.floor(t/n)))},getRowStopIndexForStartIndex:function(e,t,n){var r=e.rowHeight,o=e.rowCount,i=e.height,a=t*r,u=Math.ceil((i+n-a)/r);return Math.max(0,Math.min(o-1,t+u-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.columnWidth,e.rowHeight}})},13218:(e,t,n)=>{"use strict"; -/** @license React v16.13.1 - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var r=n(99813),o="function"==typeof Symbol&&Symbol.for,i=o?Symbol.for("react.element"):60103,a=o?Symbol.for("react.portal"):60106,u=o?Symbol.for("react.fragment"):60107,l=o?Symbol.for("react.strict_mode"):60108,s=o?Symbol.for("react.profiler"):60114,c=o?Symbol.for("react.provider"):60109,f=o?Symbol.for("react.context"):60110,d=o?Symbol.for("react.forward_ref"):60112,p=o?Symbol.for("react.suspense"):60113,h=o?Symbol.for("react.memo"):60115,v=o?Symbol.for("react.lazy"):60116,g="function"==typeof Symbol&&Symbol.iterator;function m(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b={};function w(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||y}function S(){}function T(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||y}w.prototype.isReactComponent={},w.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(m(85));this.updater.enqueueSetState(this,e,t,"setState")},w.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},S.prototype=w.prototype;var k=T.prototype=new S;k.constructor=T,r(k,w.prototype),k.isPureReactComponent=!0;var E={current:null},x=Object.prototype.hasOwnProperty,C={key:!0,ref:!0,__self:!0,__source:!0};function _(e,t,n){var r,o={},a=null,u=null;if(null!=t)for(r in void 0!==t.ref&&(u=t.ref),void 0!==t.key&&(a=""+t.key),t)x.call(t,r)&&!C.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(1===l)o.children=n;else if(1<l){for(var s=Array(l),c=0;c<l;c++)s[c]=arguments[c+2];o.children=s}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===o[r]&&(o[r]=l[r]);return{$$typeof:i,type:e,key:a,ref:u,props:o,_owner:E.current}}function O(e){return"object"==typeof e&&null!==e&&e.$$typeof===i}var P=/\/+/g,D=[];function I(e,t,n,r){if(D.length){var o=D.pop();return o.result=e,o.keyPrefix=t,o.func=n,o.context=r,o.count=0,o}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function N(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>D.length&&D.push(e)}function M(e,t,n,r){var o=typeof e;"undefined"!==o&&"boolean"!==o||(e=null);var u=!1;if(null===e)u=!0;else switch(o){case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case i:case a:u=!0}}if(u)return n(r,e,""===t?"."+j(e,0):t),1;if(u=0,t=""===t?".":t+":",Array.isArray(e))for(var l=0;l<e.length;l++){var s=t+j(o=e[l],l);u+=M(o,s,n,r)}else if(null===e||"object"!=typeof e?s=null:s="function"==typeof(s=g&&e[g]||e["@@iterator"])?s:null,"function"==typeof s)for(e=s.call(e),l=0;!(o=e.next()).done;)u+=M(o=o.value,s=t+j(o,l++),n,r);else if("object"===o)throw n=""+e,Error(m(31,"[object Object]"===n?"object with keys {"+Object.keys(e).join(", ")+"}":n,""));return u}function R(e,t,n){return null==e?0:M(e,"",t,n)}function j(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,(function(e){return t[e]}))}(e.key):t.toString(36)}function z(e,t){e.func.call(e.context,t,e.count++)}function L(e,t,n){var r=e.result,o=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?A(e,r,n,(function(e){return e})):null!=e&&(O(e)&&(e=function(e,t){return{$$typeof:i,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,o+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(P,"$&/")+"/")+n)),r.push(e))}function A(e,t,n,r,o){var i="";null!=n&&(i=(""+n).replace(P,"$&/")+"/"),R(e,L,t=I(t,i,r,o)),N(t)}var F={current:null};function $(){var e=F.current;if(null===e)throw Error(m(321));return e}var U={ReactCurrentDispatcher:F,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:E,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:function(e,t,n){if(null==e)return e;var r=[];return A(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;R(e,z,t=I(null,null,t,n)),N(t)},count:function(e){return R(e,(function(){return null}),null)},toArray:function(e){var t=[];return A(e,t,null,(function(e){return e})),t},only:function(e){if(!O(e))throw Error(m(143));return e}},t.Component=w,t.Fragment=u,t.Profiler=s,t.PureComponent=T,t.StrictMode=l,t.Suspense=p,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=U,t.cloneElement=function(e,t,n){if(null==e)throw Error(m(267,e));var o=r({},e.props),a=e.key,u=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(u=t.ref,l=E.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(c in t)x.call(t,c)&&!C.hasOwnProperty(c)&&(o[c]=void 0===t[c]&&void 0!==s?s[c]:t[c])}var c=arguments.length-2;if(1===c)o.children=n;else if(1<c){s=Array(c);for(var f=0;f<c;f++)s[f]=arguments[f+2];o.children=s}return{$$typeof:i,type:e.type,key:a,ref:u,props:o,_owner:l}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:f,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:c,_context:e},e.Consumer=e},t.createElement=_,t.createFactory=function(e){var t=_.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:d,render:e}},t.isValidElement=O,t.lazy=function(e){return{$$typeof:v,_ctor:e,_status:-1,_result:null}},t.memo=function(e,t){return{$$typeof:h,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return $().useCallback(e,t)},t.useContext=function(e,t){return $().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return $().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return $().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return $().useLayoutEffect(e,t)},t.useMemo=function(e,t){return $().useMemo(e,t)},t.useReducer=function(e,t,n){return $().useReducer(e,t,n)},t.useRef=function(e){return $().useRef(e)},t.useState=function(e){return $().useState(e)},t.version="16.13.1"},89526:(e,t,n)=>{"use strict";e.exports=n(13218)},16441:(e,t,n)=>{"use strict";function r(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(o){return"function"==typeof o?o(n,r,e):t(o)}}}}n.d(t,{Z:()=>i});var o=r();o.withExtraArgument=r;const i=/^(5(5|51|71)|9(08|39|91)|(20|77|88)5|(2|3|67)2|360)$/.test(n.j)?o:null},27670:(e,t,n)=>{"use strict";n.d(t,{md:()=>g,DE:()=>f,UY:()=>s,MT:()=>u});var r=n(35934),o=function(){return Math.random().toString(36).substring(7).split("").join(".")},i={INIT:"@@redux/INIT"+o(),REPLACE:"@@redux/REPLACE"+o(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+o()}};function a(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function u(e,t,n){var o;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function.");if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error("Expected the enhancer to be a function.");return n(u)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var l=e,s=t,c=[],f=c,d=!1;function p(){f===c&&(f=c.slice())}function h(){if(d)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return s}function v(e){if("function"!=typeof e)throw new Error("Expected the listener to be a function.");if(d)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribelistener for more details.");var t=!0;return p(),f.push(e),function(){if(t){if(d)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribelistener for more details.");t=!1,p();var n=f.indexOf(e);f.splice(n,1),c=null}}}function g(e){if(!a(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(d)throw new Error("Reducers may not dispatch actions.");try{d=!0,s=l(s,e)}finally{d=!1}for(var t=c=f,n=0;n<t.length;n++){(0,t[n])()}return e}function m(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");l=e,g({type:i.REPLACE})}function y(){var e,t=v;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new TypeError("Expected the observer to be an object.");function n(){e.next&&e.next(h())}return n(),{unsubscribe:t(n)}}})[r.default]=function(){return this},e}return g({type:i.INIT}),(o={dispatch:g,subscribe:v,getState:h,replaceReducer:m})[r.default]=y,o}function l(e,t){var n=t&&t.type;return"Given "+(n&&'action "'+String(n)+'"'||"an action")+', reducer "'+e+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.'}function s(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var o=t[r];0,"function"==typeof e[o]&&(n[o]=e[o])}var a,u=Object.keys(n);try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if(void 0===n(void 0,{type:i.INIT}))throw new Error('Reducer "'+t+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if(void 0===n(void 0,{type:i.PROBE_UNKNOWN_ACTION()}))throw new Error('Reducer "'+t+"\" returned undefined when probed with a random type. Don't try to handle "+i.INIT+' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.')}))}(n)}catch(e){a=e}return function(e,t){if(void 0===e&&(e={}),a)throw a;for(var r=!1,o={},i=0;i<u.length;i++){var s=u[i],c=n[s],f=e[s],d=c(f,t);if(void 0===d){var p=l(s,t);throw new Error(p)}o[s]=d,r=r||d!==f}return(r=r||u.length!==Object.keys(e).length)?o:e}}function c(e,t){return function(){return t(e.apply(this,arguments))}}function f(e,t){if("function"==typeof e)return c(e,t);if("object"!=typeof e||null===e)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===e?"null":typeof e)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');var n={};for(var r in e){var o=e[r];"function"==typeof o&&(n[r]=c(o,t))}return n}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e,t){var n=Object.keys(e);return Object.getOwnPropertySymbols&&n.push.apply(n,Object.getOwnPropertySymbols(e)),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(n,!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function v(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function g(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},o={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},i=t.map((function(e){return e(o)}));return h({},n,{dispatch:r=v.apply(void 0,i)(n.dispatch)})}}}}}]); \ No newline at end of file diff --git a/static/misc/edge-surf/resources/js/load_time_data.js b/static/misc/edge-surf/resources/js/load_time_data.js deleted file mode 100644 index 5d00a171..00000000 --- a/static/misc/edge-surf/resources/js/load_time_data.js +++ /dev/null @@ -1,226 +0,0 @@ -// Copyright (c) 2012 The Chromium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -/** - * @fileoverview This file defines a singleton which provides access to all data - * that is available as soon as the page's resources are loaded (before DOM - * content has finished loading). This data includes both localized strings and - * any data that is important to have ready from a very early stage (e.g. things - * that must be displayed right away). - * - * Note that loadTimeData is not guaranteed to be consistent between page - * refreshes (https://crbug.com/740629) and should not contain values that might - * change if the page is re-opened later. - */ - -/** @type {!LoadTimeData} */ -// eslint-disable-next-line no-var -var loadTimeData; - -class LoadTimeData { - constructor() { - /** @type {?Object} */ - this.data_ = null; - } - - /** - * Sets the backing object. - * - * Note that there is no getter for |data_| to discourage abuse of the form: - * - * var value = loadTimeData.data()['key']; - * - * @param {Object} value The de-serialized page data. - */ - set data(value) { - expect(!this.data_, 'Re-setting data.'); - this.data_ = value; - } - - /** - * @param {string} id An ID of a value that might exist. - * @return {boolean} True if |id| is a key in the dictionary. - */ - valueExists(id) { - return id in this.data_; - } - - /** - * Fetches a value, expecting that it exists. - * @param {string} id The key that identifies the desired value. - * @return {*} The corresponding value. - */ - getValue(id) { - expect(this.data_, 'No data. Did you remember to include strings.js?'); - const value = this.data_[id]; - expect(typeof value !== 'undefined', 'Could not find value for ' + id); - return value; - } - - /** - * As above, but also makes sure that the value is a string. - * @param {string} id The key that identifies the desired string. - * @return {string} The corresponding string value. - */ - getString(id) { - const value = this.getValue(id); - expectIsType(id, value, 'string'); - return /** @type {string} */ (value); - } - - /** - * Returns a formatted localized string where $1 to $9 are replaced by the - * second to the tenth argument. - * @param {string} id The ID of the string we want. - * @param {...(string|number)} var_args The extra values to include in the - * formatted output. - * @return {string} The formatted string. - */ - getStringF(id, var_args) { - const value = this.getString(id); - if (!value) { - return ''; - } - - const args = Array.prototype.slice.call(arguments); - args[0] = value; - return this.substituteString.apply(this, args); - } - - /** - * Returns a formatted localized string where $1 to $9 are replaced by the - * second to the tenth argument. Any standalone $ signs must be escaped as - * $$. - * @param {string} label The label to substitute through. - * This is not an resource ID. - * @param {...(string|number)} var_args The extra values to include in the - * formatted output. - * @return {string} The formatted string. - */ - substituteString(label, var_args) { - const varArgs = arguments; - return label.replace(/\$(.|$|\n)/g, function(m) { - expect(m.match(/\$[$1-9]/), 'Unescaped $ found in localized string.'); - return m === '$$' ? '$' : varArgs[m[1]]; - }); - } - - /** - * Returns a formatted string where $1 to $9 are replaced by the second to - * tenth argument, split apart into a list of pieces describing how the - * substitution was performed. Any standalone $ signs must be escaped as $$. - * @param {string} label A localized string to substitute through. - * This is not an resource ID. - * @param {...(string|number)} var_args The extra values to include in the - * formatted output. - * @return {!Array<!{value: string, arg: (null|string)}>} The formatted - * string pieces. - */ - getSubstitutedStringPieces(label, var_args) { - const varArgs = arguments; - // Split the string by separately matching all occurrences of $1-9 and of - // non $1-9 pieces. - const pieces = (label.match(/(\$[1-9])|(([^$]|\$([^1-9]|$))+)/g) || - []).map(function(p) { - // Pieces that are not $1-9 should be returned after replacing $$ - // with $. - if (!p.match(/^\$[1-9]$/)) { - expect( - (p.match(/\$/g) || []).length % 2 === 0, - 'Unescaped $ found in localized string.'); - return {value: p.replace(/\$\$/g, '$'), arg: null}; - } - - // Otherwise, return the substitution value. - return {value: varArgs[p[1]], arg: p}; - }); - - return pieces; - } - - /** - * As above, but also makes sure that the value is a boolean. - * @param {string} id The key that identifies the desired boolean. - * @return {boolean} The corresponding boolean value. - */ - getBoolean(id) { - const value = this.getValue(id); - expectIsType(id, value, 'boolean'); - return /** @type {boolean} */ (value); - } - - /** - * As above, but also makes sure that the value is an integer. - * @param {string} id The key that identifies the desired number. - * @return {number} The corresponding number value. - */ - getInteger(id) { - const value = this.getValue(id); - expectIsType(id, value, 'number'); - expect(value === Math.floor(value), 'Number isn\'t integer: ' + value); - return /** @type {number} */ (value); - } - - /** - * Override values in loadTimeData with the values found in |replacements|. - * @param {Object} replacements The dictionary object of keys to replace. - */ - overrideValues(replacements) { - expect( - typeof replacements === 'object', - 'Replacements must be a dictionary object.'); - for (const key in replacements) { - this.data_[key] = replacements[key]; - } - } - - /** - * Reset loadTimeData's data. Should only be used in tests. - * @param {?Object} newData The data to restore to, when null restores to - * unset state. - */ - resetForTesting(newData = null) { - this.data_ = newData; - } - - /** - * @return {boolean} Whether loadTimeData.data has been set. - */ - isInitialized() { - return this.data_ !== null; - } -} - - /** - * Checks condition, throws error message if expectation fails. - * @param {*} condition The condition to check for truthiness. - * @param {string} message The message to display if the check fails. - */ - function expect(condition, message) { - if (!condition) { - throw new Error( - 'Unexpected condition on ' + document.location.href + ': ' + message); - } - } - - /** - * Checks that the given value has the given type. - * @param {string} id The id of the value (only used for error message). - * @param {*} value The value to check the type on. - * @param {string} type The type we expect |value| to be. - */ - function expectIsType(id, value, type) { - expect( - typeof value === type, '[' + value + '] (' + id + ') is not a ' + type); - } - - expect(!loadTimeData, 'should only include this file once'); - loadTimeData = new LoadTimeData; - - // Expose |loadTimeData| directly on |window|, since within a JS module the - // scope is local and not all files have been updated to import the exported - // |loadTimeData| explicitly. - window.loadTimeData = loadTimeData; - - console.warn('crbug/1173575, non-JS module files deprecated.'); \ No newline at end of file diff --git a/static/misc/edge-surf/resources/js/parse_html_subset.js b/static/misc/edge-surf/resources/js/parse_html_subset.js deleted file mode 100644 index 19b98836..00000000 --- a/static/misc/edge-surf/resources/js/parse_html_subset.js +++ /dev/null @@ -1,247 +0,0 @@ -// Copyright (c) 2012 The Chromium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -/** - * This function maps a given string to a TrustedHTML object - * without performing any validation. Callsites must ensure - * that the resulting TrustedHTML will only be used in inert - * documents or sanitize the input before passing to this function. - * @param {string} s The string to convert. - * @return {!TrustedHTML} A TrustedHTML containing input string. - */ -const toTrustedHtml = (function() { - /** @type {!TrustedTypePolicy} */ - let unsanitizedPolicy; - - return function(s) { - if (!unsanitizedPolicy) { - unsanitizedPolicy = trustedTypes.createPolicy( - 'parse-html-subset', - {createHTML: unsanitizedHtml => unsanitizedHtml}); - } - return unsanitizedPolicy.createHTML(s); - }; -})(); - -/** - * @typedef {{ - * substitutions: (!Array<string>|undefined), - * attrs: (!Array<string>|undefined), - * tags: (!Array<string>|undefined), - * }} - */ -/* #export */ let SanitizeInnerHtmlOpts; - -/** - * Make a string safe for Polymer bindings that are inner-h-t-m-l or other - * innerHTML use. - * @param {string} rawString The unsanitized string - * @param {SanitizeInnerHtmlOpts=} opts Optional additional allowed tags and - * attributes. - * @return {string} - */ -/* #export */ const sanitizeInnerHtml = function(rawString, opts) { - opts = opts || {}; - return parseHtmlSubset('<b>' + rawString + '</b>', opts.tags, opts.attrs) - .firstChild.innerHTML; -}; - - -/** - * Parses a very small subset of HTML. This ensures that insecure HTML / - * javascript cannot be injected into WebUI. - * @param {string} s The string to parse. - * @param {!Array<string>=} opt_extraTags Optional extra allowed tags. - * @param {!Array<string>=} opt_extraAttrs - * Optional extra allowed attributes (all tags are run through these). - * @throws {Error} In case of non supported markup. - * @return {!DocumentFragment} A document fragment containing the DOM tree. - */ -/* #export */ const parseHtmlSubset = (function() { - 'use strict'; - - /** @typedef {function(!Node, string):boolean} */ - let AllowFunction; - - /** @type {!AllowFunction} */ - const allowAttribute = (node, value) => true; - - /** - * Allow-list of attributes in parseHtmlSubset. - * @type {!Map<string, !AllowFunction>} - * @const - */ - const allowedAttributes = new Map([ - [ - 'href', - (node, value) => { - // Only allow a[href] starting with edge:// or https:// or equaling - // to #. - return node.tagName === 'A' && - (value.startsWith('edge://') || value.startsWith('https://') || - value === '#'); - } - ], - [ - 'target', - (node, value) => { - // Only allow a[target='_blank']. - // TODO(dbeam): are there valid use cases for target !== '_blank'? - return node.tagName === 'A' && value === '_blank'; - } - ], - ]); - - /** - * Allow-list of optional attributes in parseHtmlSubset. - * @type {!Map<string, !AllowFunction>} - * @const - */ - const allowedOptionalAttributes = new Map([ - ['class', allowAttribute], - ['id', allowAttribute], - ['is', (node, value) => value === 'action-link' || value === ''], - ['role', (node, value) => value === 'link'], - [ - 'src', - (node, value) => { - // Only allow img[src] starting with edge:// - return node.tagName === 'IMG' && value.startsWith('edge://'); - } - ], - ['tabindex', allowAttribute], - ['aria-hidden', allowAttribute], - ['aria-labelledby', allowAttribute], - ]); - - /** - * Allow-list of tag names in parseHtmlSubset. - * @type {!Set<string>} - * @const - */ - const allowedTags = - new Set(['A', 'B', 'BR', 'DIV', 'KBD', 'P', 'PRE', 'SPAN', 'STRONG']); - - /** - * Allow-list of optional tag names in parseHtmlSubset. - * @type {!Set<string>} - * @const - */ - const allowedOptionalTags = new Set(['IMG', 'LI', 'UL']); - - /** - * @param {!Array<string>} optTags an Array to merge. - * @return {!Set<string>} Set of allowed tags. - */ - function mergeTags(optTags) { - const clone = new Set(allowedTags); - optTags.forEach(str => { - const tag = str.toUpperCase(); - if (allowedOptionalTags.has(tag)) { - clone.add(tag); - } - }); - return clone; - } - - /** - * @param {!Array<string>} optAttrs an Array to merge. - * @return {!Map<string, !AllowFunction>} Map of allowed - * attributes. - */ - function mergeAttrs(optAttrs) { - const clone = new Map([...allowedAttributes]); - optAttrs.forEach(key => { - if (allowedOptionalAttributes.has(key)) { - clone.set(key, allowedOptionalAttributes.get(key)); - } - }); - return clone; - } - - function walk(n, f) { - f(n); - for (let i = 0; i < n.childNodes.length; i++) { - walk(n.childNodes[i], f); - } - } - - function assertElement(tags, node) { - if (!tags.has(node.tagName)) { - throw Error(node.tagName + ' is not supported'); - } - } - - function assertAttribute(attrs, attrNode, node) { - const n = attrNode.nodeName; - const v = attrNode.nodeValue; - if (!attrs.has(n) || !attrs.get(n)(node, v)) { - throw Error(node.tagName + '[' + n + '="' + v + '"] is not supported'); - } - } - - return function(s, opt_extraTags, opt_extraAttrs) { - const tags = opt_extraTags ? mergeTags(opt_extraTags) : allowedTags; - const attrs = - opt_extraAttrs ? mergeAttrs(opt_extraAttrs) : allowedAttributes; - - const doc = document.implementation.createHTMLDocument(''); - const r = doc.createRange(); - r.selectNode(doc.body); - - if (window.trustedTypes) { - s = toTrustedHtml(s); - } - - // This does not execute any scripts because the document has no view. - const df = r.createContextualFragment(s); - walk(df, function(node) { - switch (node.nodeType) { - case Node.ELEMENT_NODE: - assertElement(tags, node); - const nodeAttrs = node.attributes; - for (let i = 0; i < nodeAttrs.length; ++i) { - assertAttribute(attrs, nodeAttrs[i], node); - } - break; - - case Node.COMMENT_NODE: - case Node.DOCUMENT_FRAGMENT_NODE: - case Node.TEXT_NODE: - break; - - default: - throw Error('Node type ' + node.nodeType + ' is not supported'); - } - }); - return df; - }; -})(); - -/* #ignore */ console.warn('crbug/1173575, non-JS module files deprecated.'); - -/** - * Parses a very small subset of HTML. This ensures that insecure HTML / - * javascript cannot be injected into WebUI. Returns HTML instead of - * DocumentFragment. - * @param {string} s The string to parse. - * @param {!Array<string>=} opt_extraTags Optional extra allowed tags. - * @param {!Array<string>=} opt_extraAttrs - * Optional extra allowed attributes (all tags are run through these). - * @throws {Error} In case of non supported markup. - * @return {string|!TrustedHTML} a sanitized HTML. - */ -/* #export */ const parseToSafeHtml = (function() { - 'use strict'; - - return function(s, opt_extraTags, opt_extraAttrs) { - const div = document.createElement('div'); - div.appendChild(parseHtmlSubset(s, opt_extraTags, opt_extraAttrs)); - if (!window.trustedTypes) { - return div.innerHTML; - } - - return toTrustedHtml(div.innerHTML); - }; -})(); diff --git a/static/misc/edge-surf/resources/js/promise_resolver.js b/static/misc/edge-surf/resources/js/promise_resolver.js deleted file mode 100644 index cd78115b..00000000 --- a/static/misc/edge-surf/resources/js/promise_resolver.js +++ /dev/null @@ -1,84 +0,0 @@ -// Copyright 2016 The Chromium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -// #import {assertNotReached} from './assert.m.js'; - -/** - * @fileoverview PromiseResolver is a helper class that allows creating a - * Promise that will be fulfilled (resolved or rejected) some time later. - * - * Example: - * var resolver = new PromiseResolver(); - * resolver.promise.then(function(result) { - * console.log('resolved with', result); - * }); - * ... - * ... - * resolver.resolve({hello: 'world'}); - */ - -/** @template T */ -// eslint-disable-next-line no-var -/* #export */ var PromiseResolver = class { - constructor() { - /** @private {function(T=): void} */ - this.resolve_; - - /** @private {function(*=): void} */ - this.reject_; - - /** @private {boolean} */ - this.isFulfilled_ = false; - - /** @private {!Promise<T>} */ - this.promise_ = new Promise((resolve, reject) => { - this.resolve_ = /** @param {T=} resolution */ (resolution) => { - resolve(resolution); - this.isFulfilled_ = true; - }; - this.reject_ = /** @param {*=} reason */ (reason) => { - reject(reason); - this.isFulfilled_ = true; - }; - }); - } - - /** @return {boolean} Whether this resolver has been resolved or rejected. */ - get isFulfilled() { - return this.isFulfilled_; - } - - set isFulfilled(i) { - assertNotReached(); - } - - /** @return {!Promise<T>} */ - get promise() { - return this.promise_; - } - - set promise(p) { - assertNotReached(); - } - - /** @return {function(T=): void} */ - get resolve() { - return this.resolve_; - } - - set resolve(r) { - assertNotReached(); - } - - /** @return {function(*=): void} */ - get reject() { - return this.reject_; - } - - set reject(s) { - assertNotReached(); - } -}; - -/* #ignore */ console.warn('crbug/1173575, non-JS module files deprecated.'); diff --git a/static/misc/edge-surf/resources/js/strings.js b/static/misc/edge-surf/resources/js/strings.js deleted file mode 100644 index 4a05013b..00000000 --- a/static/misc/edge-surf/resources/js/strings.js +++ /dev/null @@ -1,87 +0,0 @@ -loadTimeData.data = { - bestScore: "Best $1 $2 $3", - bestScoreFlyout: "Best score: $1", - bestScoreMenuDisplay: "$1 $2", - cancel: "Cancel", - close: "Close", - code: "Cheat code activated!", - codeCheat: "Cheat code activated! $1", - codeScoring: "Scoring turned off for this round.", - endlessBestScore: -1, - endlessDescriptor: "distance", - endlessModeTitleInline: "Endless:", - endlessTitle: "Endless", - endlessUnit: "m", - fontfamily: "system-ui, sans-serif", - fontsize: "75%", - gameCreditsButton: "Game credits", - gameCreditsDialogTitle: "Game credits", - gameMode: "Game mode changed to $1", - gameModeSelectLabel: "Game mode", - gameModeSelectLabelDisabled: "Game mode (start new game to change)", - gameSettings: "Game settings", - highVisibilityActive: false, - highVisiblityModeToggleLabel: "High visiblity", - howToPlayButton: "How to play", - howToPlayControllerBoost: "Press RT to use your speed boost", - howToPlayControllerMovement: "Use the thumbstick or D-pad to steer", - howToPlayControllerRefresh: "Press LB+RB to restart the game", - howToPlayDialogTitle: "How to play", - howToPlayEndless: - "Travel as far as you can and rescue a friend for help with enemies", - howToPlayKeyboardBoost: "Press `F` to use your speed boost", - howToPlayKeyboardMovement: "Use the arrow or `WASD` keys to steer", - howToPlayKeyboardRefresh: "Refresh the page to restart the game", - howToPlayMouseBoost: "Right-click to use your speed boost", - howToPlayMouseMovement: "Move the mouse to steer", - howToPlayMouseRefresh: "Refresh the page to restart the game", - howToPlayTimeTrial: - "Reach the end as fast as you can and collect coins to subtract time", - howToPlayTouchBoost: "Swipe down twice to use your speed boost", - howToPlayTouchMovement: "Swipe or tap to steer", - howToPlayTouchRefresh: "Refresh the page to restart the game", - howToPlayZigZag: "Pass through as many gates as you can in a row", - is_windows_xbox_sku: "false", - keyboardAction: "spacebar", - language: "en", - lastSelectedMode: "endless", - lastSelectedPlayer: 4, - lastSelectedTheme: "surf", - menuInfo: "to start playing", - mouseAction: "double click", - newBestScore: "New best $1 $2 $3", - newGame: "Start new game", - off: "Off", - on: "On", - overInfo: "to play again", - overTitle: "Nice try!", - pauseInfo: "to resume playing", - pauseTitle: "Game paused", - reducedSpeedActive: false, - reducedSpeedModeToggleLabel: "Reduced speed", - resetAllStats: "Reset all stats", - resetAllStatsDialogText: - "Are you sure you want to reset all your game stats, including your high scores?", - resetAllStatsDialogTitle: "Reset all stats", - share: "Share with a friend", - shareCopy: "Copy", - shareLink: "edge://surf", - shareLinkCopied: "Copied!", - skiTheme: "Let's ski", - specialThanks: "Special thanks:", - surfTheme: "Let's surf", - textdirection: "ltr", - theme: "Theme changed to $1", - themeSelectLabel: "Theme", - timetrialBestScore: -1, - timetrialDescriptor: "time", - timetrialModeTitleInline: "Time trial:", - timetrialTitle: "Time trial", - timetrialUnit: "s", - touchAction: "double tap", - zigzagBestScore: -1, - zigzagDescriptor: "streak", - zigzagModeTitleInline: "Zig zag:", - zigzagTitle: "Zig zag", - zigzagUnit: "gates", -}; diff --git a/static/misc/edge-surf/resources/js/surf-error-reporting.js b/static/misc/edge-surf/resources/js/surf-error-reporting.js deleted file mode 100644 index cb6e436f..00000000 --- a/static/misc/edge-surf/resources/js/surf-error-reporting.js +++ /dev/null @@ -1,5 +0,0 @@ -// Copyright (C) Microsoft Corporation. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -hookErrorReporting('webui-surf-game'); \ No newline at end of file diff --git a/static/misc/edge-surf/resources/js/surf.bundle.js b/static/misc/edge-surf/resources/js/surf.bundle.js deleted file mode 100644 index b196f4da..00000000 --- a/static/misc/edge-surf/resources/js/surf.bundle.js +++ /dev/null @@ -1,13440 +0,0 @@ -(() => { - var e, - t = { - 14893: (e, t, s) => { - "use strict"; - s.d(t, { - p: () => a, - }); - var i = s(89526); - - function a(e) { - return i.createElement( - "svg", - { - width: 20, - height: 20, - viewBox: "0 0 20 20", - className: e, - }, - i.createElement("path", { - d: "M4.09 4.22l.06-.07a.5.5 0 01.63-.06l.07.06L10 9.29l5.15-5.14a.5.5 0 01.63-.06l.07.06c.18.17.2.44.06.63l-.06.07L10.71 10l5.14 5.15c.18.17.2.44.06.63l-.06.07a.5.5 0 01-.63.06l-.07-.06L10 10.71l-5.15 5.14a.5.5 0 01-.63.06l-.07-.06a.5.5 0 01-.06-.63l.06-.07L9.29 10 4.15 4.85a.5.5 0 01-.06-.63l.06-.07-.06.07z", - fillRule: "nonzero", - }) - ); - } - }, - 13695: (e, t, s) => { - "use strict"; - var i = s(73961), - a = s(89526), - o = s(87958), - n = s(82090), - r = s(47861), - l = s(6098), - h = s(18169), - c = s(17332), - d = s(48863), - p = s(51094), - b = s(46589), - g = s(38066), - u = s(14570); - const m = { - toggle_toggleButton: { - float: (0, d.zw)("right", "left"), - marginInlineStart: "5px", - }, - toggle_statusMessage: { - paddingInlineStart: "0px", - }, - }, - y = { - button: { - height: "fit-content", - overflow: "visible", - marginBottom: "16px", - }, - }, - f = { - button: { - height: "28px", - width: "fit-content", - }, - }, - w = { - settingsHamburgerMenu: { - display: "block", - marginInlineStart: "auto", - marginBottom: "4px", - backgroundColor: "transparent", - }, - settingsHamburgerMenu_settingsButton: { - height: "20px", - width: "20px", - color: "currentColor", - fill: "currentColor", - }, - settingsHamburgerMenu_closeButton: { - ...(0, u.b)(l.fn, b.k8, b.k8), - position: "absolute", - top: "0", - margin: "6px", - [(0, d.Ih)("right", "left", l.fn.direction)]: "0", - "& $settingsHamburgerMenu_closeButton_icon": { - ...(0, g.Zb)(), - }, - }, - settingsHamburgerMenu_closeButton_icon: {}, - settingsHamburgerMenu_flyout_buttonSection: { - display: "flex", - flexDirection: "column", - }, - settingsHamburgerMenu_flyout_divider: { - margin: "4px -16px", - }, - settingsHamburgerMenu_flyout: { - padding: "16px", - }, - settingsHamburgerMenu_flyout_label: { - margin: "0 0 0.5em", - display: "block", - }, - settingsHamburgerMenu_flyout_row: { - padding: "6px 0", - display: "block", - }, - settingsHamburgerMenu_flyout_score: { - marginTop: "2px", - paddingBottom: "6px", - display: "flex", - alignItems: "center", - }, - settingsHamburgerMenu_flyout_scoreStar: { - height: "16px", - width: "16px", - color: "currentColor", - fill: "currentColor", - marginInlineEnd: "4px", - }, - settingsHamburgerMenu_flyout_shareRow: { - display: "flex", - flexDirection: "row", - justifyContent: "space-between", - alignItems: "center", - padding: "6px 0", - }, - settingsHamburgerMenu_flyout_toggleRow: { - display: "flex", - flexDirection: "row", - justifyContent: "space-between", - padding: "6px 0", - }, - settingsHamburgerMenu_centered: { - margin: "0 auto", - }, - settingsHamburgerMenu_icon: { - color: p.CH, - fill: "currentColor", - }, - settingsHamburgerMenu_creditsTable: { - margin: "0 auto", - color: p.CH, - }, - settingsHamburgerMenu_creditsTable_specialThanks: { - marginTop: "8px", - marginBottom: "4px", - }, - }; - var v = s(71388), - x = s(87841), - S = s(92588), - C = s(90305), - k = s(2483), - T = s(49838), - M = s(99683), - I = s(12994), - P = s(73252), - E = s(57880), - z = s(18158), - L = s(20917), - D = s(98401), - _ = s(37879), - O = s(11754), - R = s(37834), - H = s(52502), - A = s(57481), - N = s(45191); - var F = s(14893); - - function B(e) { - return a.createElement( - "svg", - { - "aria-hidden": "true", - width: 20, - height: 20, - viewBox: "0 0 20 20", - className: e, - }, - a.createElement("path", { - d: "M3.37 10.17a.5.5 0 00-.74.66l4 4.5c.19.22.52.23.72.02l10.5-10.5a.5.5 0 00-.7-.7L7.02 14.27l-3.65-4.1z", - }) - ); - } - - function V(e) { - return a.createElement( - "svg", - { - width: 20, - height: 20, - viewBox: "0 0 20 20", - className: e, - }, - a.createElement("path", { - d: "M8 6a.5.5 0 01.09 1H6a3 3 0 00-.2 6H8a.5.5 0 01.09 1H6a4 4 0 01-.22-8H8zm6 0a4 4 0 01.22 8H12a.5.5 0 01-.09-1H14a3 3 0 00.2-6H12a.5.5 0 01-.09-1H14zM6 9.5h8a.5.5 0 01.09 1H6a.5.5 0 01-.09-1H14 6z", - fillRule: "nonzero", - }) - ); - } - var Z = s(3117); - - function j(e) { - switch (e) { - case "timetrial": - case "SPEED": - return q.TimeTrial; - case "BUOY": - case "zigzag": - return q.ZigZag; - case "CLASSIC": - case "endless": - default: - return q.Endless; - } - } - let q; - !(function (e) { - (e.ZigZag = "zigzag"), - (e.Endless = "endless"), - (e.TimeTrial = "timetrial"); - })(q || (q = {})); - const G = { - ski: { - gradient: { - start: [244, 244, 244], - end: [222, 222, 222], - }, - hitbox: { - crash: "#000000", - boost: "#00FF00", - avoid: "#FF0000", - }, - boundary: [0, 0, 0, 0.1], - accent: [216, 140, 249], - folder: "resources/ski", - }, - surf: { - gradient: { - start: [56, 194, 238], - end: [46, 195, 208], - }, - hitbox: { - crash: "#000000", - boost: "#00FF00", - avoid: "#FF0000", - }, - boundary: [255, 255, 255, 0.2], - accent: [141, 249, 196], - folder: "resources/surf", - }, - }; - - function K(e) { - return e in G ? e : "surf"; - } - var U = s(27670); - - function W(e) { - if ("number" != typeof e) return "----"; - let t = 14, - s = 8; - return ( - e < 0 && (e = 3599), - e >= 3600 && ((t = 12), (s = 10)), - new Date(1e3 * e).toISOString().substr(t, s) - ); - } - - function $(e) { - navigator.clipboard.writeText(e); - } - - function X(e, t, s) { - return ( - t in e - ? Object.defineProperty(e, t, { - value: s, - enumerable: !0, - configurable: !0, - writable: !0, - }) - : (e[t] = s), - e - ); - } - class Y { - constructor() { - if ((X(this, "localData", void 0), Y.offline)) return Y.offline; - (Y.offline = this), - this.loadData(), - re.subscribe(this.loadData.bind(this)); - } - loadData() { - const e = re.getState(); - this.localData = { - settings: { - character: e.currentCharacter, - theme: e.theme, - mode: e.mode, - hitbox: e.highVisibilityMode, - gameSpeed: e.gameSpeed, - }, - bestScore: { - endless: e.endless_bestScore, - timetrial: e.timetrial_bestScore, - zigzag: e.zigzag_bestScore, - }, - }; - } - saveData(e) { - re.dispatch(oe(e)), - he.saveZigZagHighScore(e.zigzag_bestScore), - he.saveEndlessHighScore(e.endless_bestScore), - he.saveTimeTrialHighScore(e.timetrial_bestScore), - he.saveGameMode(e.mode), - he.saveHighVisibilityMode(e.highVisibilityMode), - he.saveReducedSpeedMode(e.gameSpeed < se), - he.saveDefaultCharacter(e.currentCharacter), - he.saveDefaultTheme(e.theme); - } - resetData() { - re.dispatch(ne()), he.resetAllStats(); - } - getCommonStats(e, t) { - const s = te.sys.game; - return { - gameMode: e, - score: e === q.TimeTrial ? Math.floor(1e3 * t) : t, - konamiCodeUsed: s.cheat.used, - msftCodeUsed: s.cheat.lives, - edgeCodeUsed: s.cheat.boosts, - powerUpsUsed: s.boosts.numUsed, - powerUpsCollected: s.boosts.numCollected, - }; - } - storeEndlessStats() { - const e = te.sys.getCurrentScore(), - t = te.sys.session.bestScore.endless, - s = te.sys.game; - he.recordGameEnd({ - ...this.getCommonStats(q.Endless, e), - loseCondition: s.caught ? "kraken" : "lives", - dogCollected: s.friend, - }), - !s.cheat.used && - e > t && - ((te.sys.session.bestScore.endless = e), - (s.highScore = !0), - this.saveData({ - ...re.getState(), - endless_bestScore: e, - })); - } - storeTimeTrialStats() { - const e = te.sys.getCurrentScore(), - t = te.sys.session.bestScore.timetrial, - s = te.sys.game; - he.recordGameEnd({ - ...this.getCommonStats(q.TimeTrial, e), - livesCollected: s.lives.numCollected, - }), - !s.cheat.used && - (e < t || t < 0) && - s.finish && - ((te.sys.session.bestScore.timetrial = e), - (s.highScore = !0), - this.saveData({ - ...re.getState(), - timetrial_bestScore: e, - })); - } - storeZigZagStreak() { - const e = te.sys.getCurrentScore(), - t = te.sys.session.bestScore.zigzag, - s = te.sys.game; - he.recordGameEnd(this.getCommonStats(q.ZigZag, e)), - !s.cheat.used && - e > t && - ((te.sys.session.bestScore.zigzag = e), - (s.highScore = !0), - this.saveData({ - ...re.getState(), - zigzag_bestScore: e, - })); - } - } - - function J(e, t, s) { - return ( - t in e - ? Object.defineProperty(e, t, { - value: s, - enumerable: !0, - configurable: !0, - writable: !0, - }) - : (e[t] = s), - e - ); - } - let Q, ee; - X(Y, "offline", void 0), - (function (e) { - (e.Menu = "menu"), - (e.Play = "play"), - (e.Pause = "pause"), - (e.Over = "over"); - })(Q || (Q = {})), - (function (e) { - (e.Keyboard = "keyboard"), - (e.Mouse = "mouse"), - (e.Touch = "touch"), - (e.Xbox = "xbox"), - (e.Ps = "ps"); - })(ee || (ee = {})); - class te { - constructor() { - if ((J(this, "session", void 0), J(this, "game", void 0), te.sys)) - return te.sys; - (te.sys = this), - this.defineSessionSettings(), - this.resetGameData(), - re.subscribe(this.loadSessionSettings.bind(this)); - } - defineSessionSettings() { - const e = re.getState(); - this.session = { - settings: { - mode: e.mode, - theme: e.theme, - character: e.currentCharacter, - hitbox: e.highVisibilityMode, - gameSpeed: e.gameSpeed, - }, - bestScore: { - endless: e.endless_bestScore, - timetrial: e.timetrial_bestScore, - zigzag: e.zigzag_bestScore, - }, - state: Q.Menu, - flyoutActive: !1, - forcedColors: !1, - inputType: ee.Keyboard, - w: 0, - h: 0, - x: 0, - y: 0, - }; - } - saveSessionSettings() { - Y.offline.saveData({ - mode: this.session.settings.mode, - theme: this.session.settings.theme, - currentCharacter: this.session.settings.character, - highVisibilityMode: this.session.settings.hitbox, - gameSpeed: this.session.settings.gameSpeed, - endless_bestScore: this.session.bestScore.endless, - zigzag_bestScore: this.session.bestScore.zigzag, - timetrial_bestScore: this.session.bestScore.timetrial, - gameState: this.session.state, - }); - } - loadSessionSettings() { - const e = re.getState(); - (this.session.settings.mode = e.mode), - (this.session.settings.theme = e.theme), - (this.session.settings.character = e.currentCharacter), - (this.session.settings.hitbox = e.highVisibilityMode), - (this.session.settings.gameSpeed = e.gameSpeed), - (this.session.bestScore.endless = e.endless_bestScore), - (this.session.bestScore.timetrial = e.timetrial_bestScore), - (this.session.bestScore.zigzag = e.zigzag_bestScore); - } - saveGameStats() { - switch (this.session.settings.mode) { - case q.Endless: - Y.offline.storeEndlessStats(); - break; - case q.TimeTrial: - Y.offline.storeTimeTrialStats(); - break; - case q.ZigZag: - Y.offline.storeZigZagStreak(); - } - } - getCurrentScore() { - switch (this.session.settings.mode) { - case q.Endless: - return Math.floor(this.game.dist.unit); - case q.TimeTrial: - return this.game.time.elapsed - 2 * this.game.coins; - case q.ZigZag: - return this.game.gates; - } - } - getCurrentScoreFormatted() { - const e = this.getCurrentScore(); - switch (this.session.settings.mode) { - case q.Endless: - case q.ZigZag: - return e.toString(); - case q.TimeTrial: - return W(e); - } - } - getHighScore(e) { - switch (e) { - case q.Endless: - return Math.max(this.session.bestScore.endless, 0).toString(); - case q.TimeTrial: - return W(this.session.bestScore.timetrial); - case q.ZigZag: - return Math.max(this.session.bestScore.zigzag, 0).toString(); - } - } - resetGameData() { - this.game = { - time: { - loop: 0, - elapsed: 0, - scale: 0, - }, - dist: { - unit: 0, - x: 0, - y: 0, - }, - lives: { - current: 3, - max: 3, - numCollected: 0, - }, - boosts: { - current: 0, - max: 3, - numCollected: 0, - numUsed: 0, - }, - shields: { - current: 0, - max: 3, - }, - gates: 0, - coins: 0, - finish: !1, - friend: !1, - caught: !1, - highScore: !1, - cheat: { - used: !1, - lives: !1, - boosts: !1, - safety: !1, - }, - }; - } - update(e) { - (this.game.time.loop = e / 1e3), - (this.game.time.elapsed += this.game.time.loop), - (this.game.time.scale = - 60 * this.game.time.loop * this.session.settings.gameSpeed); - } - updateDistances(e, t) { - (this.game.dist.x += e), - (this.game.dist.y += t), - (this.game.dist.unit += t / 10); - } - rand(e, t) { - return Math.floor(e + (t + 1 - e) * Math.random()); - } - randIndex(e) { - if (!Array.isArray(e)) return e; - return e[Math.floor(Math.random() * e.length)]; - } - } - J(te, "sys", void 0); - const se = 1, - ie = { - currentCharacter: Z.pz.getInteger("lastSelectedPlayer"), - highVisibilityMode: Z.pz.getBoolean("highVisibilityActive"), - gameSpeed: Z.pz.getBoolean("reducedSpeedActive") ? 0.5 : se, - mode: j(Z.pz.getString("lastSelectedMode")), - theme: K(Z.pz.getString("lastSelectedTheme")), - gameState: Q.Menu, - endless_bestScore: Z.pz.getInteger("endlessBestScore"), - timetrial_bestScore: - Z.pz.getInteger("timetrialBestScore") < 0 - ? -1 - : Z.pz.getInteger("timetrialBestScore") / 1e3, - zigzag_bestScore: Z.pz.getInteger("zigzagBestScore"), - }; - var ae; - - function oe(e) { - return { - type: ae.UPDATE_STATS, - ...e, - }; - } - - function ne() { - return { - type: ae.RESET_STATS, - endless_bestScore: -1, - zigzag_bestScore: -1, - timetrial_bestScore: -1, - currentCharacter: 1, - theme: new Date().getMonth() === 11 ? "ski" : "surf", - }; - } - !(function (e) { - (e.RESET_STATS = "RESET_STATS"), - (e.UPDATE_GAME_STATE = "UPDATE_GAME_STATE"), - (e.UPDATE_STATS = "UPDATE_STATS"); - })(ae || (ae = {})); - const re = (0, U.MT)(function (e = ie, t) { - switch (t.type) { - case ae.UPDATE_STATS: { - const s = t; - return { - ...e, - currentCharacter: t.currentCharacter, - mode: s.mode, - highVisibilityMode: s.highVisibilityMode, - gameSpeed: s.gameSpeed, - theme: s.theme, - endless_bestScore: Math.max( - e.endless_bestScore, - s.endless_bestScore - ), - zigzag_bestScore: Math.max( - e.zigzag_bestScore, - s.zigzag_bestScore - ), - timetrial_bestScore: - e.timetrial_bestScore < 0 - ? s.timetrial_bestScore - : Math.min(e.timetrial_bestScore, s.timetrial_bestScore), - }; - } - case ae.UPDATE_GAME_STATE: - return { - ...e, - gameState: t.gameState, - }; - case ae.RESET_STATS: - return { - ...e, - endless_bestScore: t.endless_bestScore, - zigzag_bestScore: t.zigzag_bestScore, - timetrial_bestScore: t.timetrial_bestScore, - currentCharacter: t.currentCharacter, - theme: t.theme, - }; - default: - return e; - } - }, ie); - - function le(e, t, s) { - return ( - t in e - ? Object.defineProperty(e, t, { - value: s, - enumerable: !0, - configurable: !0, - writable: !0, - }) - : (e[t] = s), - e - ); - } - class he { - static recordNewGame(e) { - switch (e) { - case q.ZigZag: - he.numZigZagGames += 1; - break; - case q.Endless: - he.numEndlessGames += 1; - break; - case q.TimeTrial: - he.numTimeTrialGames += 1; - } - } - static defaultStats() { - // newly added, these are not present in the original but from old code - return { - endless_bestScore: -1, - zigzag_bestScore: -1, - timetrial_bestScore: -1, - currentCharacter: 1, - theme: new Date().getMonth() === 11 ? "ski" : "surf", - mode: "endless", - highVisibilityMode: false, - reducedSpeedMode: false, - }; - } - static async getAllStats() { - // const e = await Z.cr.sendWithPromise("get-stats"); - - return "undefined" != typeof Z.e9 && - "function" == typeof Z.e9.send && - "undefined" != typeof Z.cr && - "function" == typeof Z.cr.sendWithPromise - ? Z.cr.sendWithPromise("get-stats") - : Promise.resolve( - JSON.parse(localStorage.getItem("stats")) || he.defaultStats() - ); - } // this part is a little bit different from the original code - static resetAllStats() { - // Z.e9.send("reset-stats") - "undefined" != typeof Z.e9 && "function" == typeof Z.e9.send - ? Z.e9.send("reset-stats") - : localStorage.removeItem("stats"); - } - static saveEndlessHighScore(e) { - // Z.e9.send("set-high-score", [q.Endless, Math.floor(e)]) - if ("undefined" != typeof Z.e9 && "function" == typeof Z.e9.send) { - Z.e9.send("set-high-score", [q.Endless, Math.floor(e)]); - } else { - localStorage.setItem( - "stats", - JSON.stringify( - Object.assign( - Object.assign( - {}, - JSON.parse(localStorage.getItem("stats")) - ), - { - endless_bestScore: e, - } - ) - ) - ); - } - } - static saveZigZagHighScore(e) { - // Z.e9.send("set-high-score", [q.ZigZag, Math.floor(e)]) - if ("undefined" != typeof Z.e9 && "function" == typeof Z.e9.send) { - Z.e9.send("set-high-score", [q.ZigZag, Math.floor(e)]); - } else { - localStorage.setItem( - "stats", - JSON.stringify( - Object.assign( - Object.assign( - {}, - JSON.parse(localStorage.getItem("stats")) - ), - { - zigzag_bestScore: e, - } - ) - ) - ); - } - } - static saveTimeTrialHighScore(e) { - let t = e; - // e > 0 && (t *= 1e3), Z.e9.send("set-high-score", [q.TimeTrial, Math.floor(t)]) - if ("undefined" != typeof Z.e9 && "function" == typeof Z.e9.send) { - e > 0 && (t *= 1e3), - Z.e9.send("set-high-score", [q.TimeTrial, Math.floor(t)]); - } else { - e > 0 && (t *= 1e3); - localStorage.setItem( - "stats", - JSON.stringify( - Object.assign( - Object.assign( - {}, - JSON.parse(localStorage.getItem("stats")) - ), - { - timetrial_bestScore: t, - } - ) - ) - ); - } - } - static saveGameMode(e) { - // Z.e9.send("save-game-mode", [e]) - if ("undefined" != typeof Z.e9 && "function" == typeof Z.e9.send) { - Z.e9.send("save-game-mode", [e]); - } else { - localStorage.setItem( - "stats", - JSON.stringify( - Object.assign( - Object.assign( - {}, - JSON.parse(localStorage.getItem("stats")) - ), - { - mode: e, - } - ) - ) - ); - } - } - static saveGameTheme(e) { - // Z.e9.send("save-game-mode", [e]) - if ("undefined" != typeof Z.e9 && "function" == typeof Z.e9.send) { - Z.e9.send("save-game-mode", [e]); - } else { - localStorage.setItem( - "stats", - JSON.stringify( - Object.assign( - Object.assign( - {}, - JSON.parse(localStorage.getItem("stats")) - ), - { - theme: e, - } - ) - ) - ); - } - } - static saveHighVisibilityMode(e) { - // Z.e9.send("save-high-visibility-mode", [e]) - if ("undefined" != typeof Z.e9 && "function" == typeof Z.e9.send) { - Z.e9.send("save-high-visibility-mode", [e]); - } else { - localStorage.setItem( - "stats", - JSON.stringify( - Object.assign( - Object.assign( - {}, - JSON.parse(localStorage.getItem("stats")) - ), - { - highVisibilityMode: e, - } - ) - ) - ); - } - } - static saveReducedSpeedMode(e) { - // Z.e9.send("save-reduced-speed-mode", [e]) - if ("undefined" != typeof Z.e9 && "function" == typeof Z.e9.send) { - Z.e9.send("save-reduced-speed-mode", [e]); - } else { - localStorage.setItem( - "stats", - JSON.stringify( - Object.assign( - Object.assign( - {}, - JSON.parse(localStorage.getItem("stats")) - ), - { - reducedSpeedMode: e, - } - ) - ) - ); - } - } - static saveDefaultCharacter(e) { - // Z.e9.send("save-selected-character", [e]) - if ("undefined" != typeof Z.e9 && "function" == typeof Z.e9.send) { - Z.e9.send("save-selected-character", [e]); - } else { - localStorage.setItem( - "stats", - JSON.stringify( - Object.assign( - Object.assign( - {}, - JSON.parse(localStorage.getItem("stats")) - ), - { - currentCharacter: e, - } - ) - ) - ); - } - } - static saveDefaultTheme(e) { - // Z.e9.send("save-selected-theme", [e]) - if ("undefined" != typeof Z.e9 && "function" == typeof Z.e9.send) { - Z.e9.send("save-selected-theme", [e]); - } else { - localStorage.setItem( - "stats", - JSON.stringify( - Object.assign( - Object.assign( - {}, - JSON.parse(localStorage.getItem("stats")) - ), - { - theme: e, - } - ) - ) - ); - } - } - static recordUnload() { - const e = Math.floor(Date.now() - he.sessionStartTime) || 0, - t = { - zigzagGamesPlayed: he.numZigZagGames, - endlessGamesPlayed: he.numEndlessGames, - timetrialGamesPlayed: he.numTimeTrialGames, - }; - // Z.e9.send("record-unload", [t, e]), he.numZigZagGames = 0, he.numEndlessGames = 0, he.numTimeTrialGames = 0, he.sessionStartTime = Date.now() - if ("undefined" != typeof Z.e9 && "function" == typeof Z.e9.send) { - Z.e9.send("record-unload", [t, e]), - (he.numZigZagGames = 0), - (he.numEndlessGames = 0), - (he.numTimeTrialGames = 0), - (he.sessionStartTime = Date.now()); - } - } - static recordGameEnd(e) { - const t = { - ...e, - score: Math.floor(e.score), - }; - // Z.e9.send("record-game-end", [t]) - if ("undefined" != typeof Z.e9 && "function" == typeof Z.e9.send) { - Z.e9.send("record-game-end", [t]); - } - } - } - - function ce(e, t, s) { - return ( - t in e - ? Object.defineProperty(e, t, { - value: s, - enumerable: !0, - configurable: !0, - writable: !0, - }) - : (e[t] = s), - e - ); - } - le(he, "numTimeTrialGames", 0), - le(he, "numEndlessGames", 0), - le(he, "numZigZagGames", 0), - le(he, "sessionStartTime", Date.now()); - class de { - constructor() { - if ( - (ce(this, "canvas", void 0), - ce(this, "ctx", void 0), - ce(this, "gradient", void 0), - ce(this, "bg", void 0), - ce(this, "offset", void 0), - de.sys) - ) - return de.sys; - de.sys = this; - } - createBackground() { - (this.canvas = ue.sys.createNewCanvas()), - (this.ctx = this.canvas.getContext("2d")), - (this.gradient = ue.sys.createNew( - "div", - document.body, - "game-gradient" - )), - (this.bg = ue.sys.createNew("div", document.body, "game-bg")), - (this.offset = { - x: 0, - y: 0, - }); - } - updateBackground(e = 0, t = 0, s) { - (this.offset.x = this.offset.x + (s.x - e)), - (this.offset.y = this.offset.y + (s.y - t)), - (this.bg.style.backgroundPosition = - -this.offset.x + "px " + -this.offset.y + "px"); - } - defineCanvas() { - const e = window.getComputedStyle(this.canvas.parentNode); - (te.sys.session.w = parseInt(e.getPropertyValue("width"), 10)), - (te.sys.session.h = parseInt(e.getPropertyValue("height"), 10)), - (this.canvas.style.width = te.sys.session.w + "px"), - (this.canvas.style.height = te.sys.session.h + "px"), - (this.canvas.width = te.sys.session.w), - (this.canvas.height = te.sys.session.h), - (te.sys.session.x = Math.floor(0.5 * te.sys.session.w)), - (te.sys.session.y = Math.floor(0.4 * te.sys.session.h)), - (this.ctx.imageSmoothingEnabled = !1); - } - clearCanvas() { - this.ctx.clearRect(0, 0, te.sys.session.w, te.sys.session.h); - } - drawFx(e = 0, t = 0, s = 0) { - const i = be.sys.sheet.fx, - a = i.poseData.effect, - o = Math.floor(e * i.fps) % a.length; - this.draw(pe.sys.objectsImg, i, t, s, a[o]); - } - drawPlayerSprite(e, t = 0, s = 0, i = 0, a = 1) { - const o = be.sys.sheet.player, - n = te.sys.game.caught ? o.poseData.end : o.poseData[e], - r = Math.floor(t * o.fps) % 3; - this.drawScaled( - be.sys.playerSprite, - o, - s, - i, - { - x: n, - y: o.mount[r], - }, - a - ); - } - drawPlayerMenu(e, t, s = 0, i = 0, a = 1) { - const o = be.sys.sheet.player, - n = o.character[e], - r = o.poseData[t]; - this.drawScaled( - pe.sys.playerImg, - o, - s, - i, - { - x: r, - y: 0, - }, - a - ), - this.drawScaled( - pe.sys.playerImg, - o, - s, - i, - { - x: r, - y: n, - }, - a - ); - } - drawNpc(e, t, s, i) { - const a = be.sys.sheet.npc, - o = { - x: a.poseData[e], - y: 64 * t, - }; - this.draw(pe.sys.objectsImg, a, s, i, o); - } - drawLayer(e, t, s = 0, i = 0, a = 0, o = "looping", n) { - if ("hidden" === o) return; - const r = be.sys.sheet[e], - l = r.poseData[t] || [], - h = Math.floor(a * r.fps) % l.length; - if ( - (this.draw(pe.sys.objectsImg, r, s, i, l[h]), - ("oneshot" === o || "ending" === o) && - Math.ceil(a * r.fps) > l.length - 1) - ) - switch (o) { - case "oneshot": - n.anim = "paused"; - break; - case "ending": - n.sleep = !0; - } - } - drawShadow(e, t, s) { - const i = de.sys.ctx; - i.beginPath(), - i.arc(e, t + s, 20 - s / 12, 0, 2 * Math.PI), - (i.fillStyle = "rgba(0,0,0," + (0.6 - s / 200) + ")"), - i.fill(); - } - drawBoost(e) { - const t = de.sys.ctx; - (t.strokeStyle = "rgba(" + pe.sys.accent + ",0.5)"), - (t.lineCap = "round"), - t.setLineDash([]), - e.forEach((e) => { - const s = 0.5 - e.time; - (t.lineWidth = 6 * s), - t.beginPath(), - t.moveTo(e.start.x, e.start.y), - t.lineTo(e.end.x, e.end.y), - t.stroke(); - }); - } - drawShield(e, t) { - const s = - te.sys.game.shields.current / te.sys.game.shields.max / 2 + 0.5, - i = Math.cos(4 * te.sys.game.time.elapsed) + 3, - a = Math.cos(4 * (te.sys.game.time.elapsed + 2)) + 3, - o = (32 + 4 * i) * s, - n = (50 + 5 * a) * s, - r = de.sys.ctx; - r.beginPath(), - r.ellipse(e, t, o, 0.7 * o, 0, 0, 2 * Math.PI), - (r.strokeStyle = - "rgba(" + pe.sys.accent + "," + (6 - i) / 4 + ")"), - (r.lineWidth = 6 - i), - r.stroke(), - r.beginPath(), - r.ellipse(e, t, n / 2, (n / 2) * 0.7, 0, 0, 2 * Math.PI), - (r.fillStyle = "rgba(" + pe.sys.accent + "," + a / 8 + ")"), - r.fill(); - } - drawPickup(e) { - if (e.time >= 1) return (e.pickup = !1), void (e.sleep = !0); - const t = e.time % 1, - s = (e.h / 2) * (t / 1.5 + 0.5), - i = e.h * Math.min(t, 0.5), - a = de.sys.ctx; - a.beginPath(), - a.arc(e.x, e.y, s, 0, 2 * Math.PI), - (a.strokeStyle = "rgba(" + pe.sys.accent + "," + (1 - t) + ")"), - (a.lineWidth = 6 * (1 - t)), - a.stroke(), - a.beginPath(), - a.arc(e.x, e.y, i, 0, 2 * Math.PI), - (a.strokeStyle = - "rgba(" + pe.sys.accent + "," + (1 - 2 * t) + ")"), - (a.lineWidth = 6 * (1 - 2 * t)), - a.stroke(); - } - drawHitbox(e, t) { - const s = be.sys.sheet[e].str; - if (void 0 === s) return; - const i = "crash" !== s; - let a = pe.sys.hitbox[s]; - if (te.sys.session.forcedColors) - switch (s) { - case "crash": - a = "CanvasText"; - break; - case "boost": - a = "GrayText"; - break; - case "avoid": - a = "LinkText"; - } - const o = de.sys.ctx; - o.beginPath(), - (o.lineWidth = 4), - (o.strokeStyle = a + ""), - i ? o.setLineDash([8]) : o.setLineDash([]), - o.strokeRect( - Math.floor(t.x) + 1, - Math.floor(t.y) + 1, - t.w - 2, - t.h - 2 - ); - } - drawBoundaries() { - const e = te.sys.session.x - te.sys.game.dist.x, - t = be.sys.boundary[te.sys.session.settings.mode], - s = de.sys.ctx; - s.beginPath(), - s.rect(0, 0, e - t, te.sys.session.h), - s.rect(e + t, 0, te.sys.session.w, te.sys.session.h), - (s.fillStyle = "rgba(" + pe.sys.boundary + ")"), - s.fill(); - } - drawScaled(e, t, s, i, a, o = 1) { - de.sys.ctx.drawImage( - e, - a.x, - a.y, - t.w, - t.h, - Math.floor(s - t.w / (2 / o)), - Math.floor(i - t.h / (2 / o)), - t.w * o, - t.h * o - ); - } - draw(e, t, s, i, a) { - de.sys.ctx.drawImage( - e, - a.x, - a.y, - t.w, - t.h, - Math.floor(s - t.w / 2), - Math.floor(i - t.h / 2), - t.w, - t.h - ); - } - } - ce(de, "sys", null); - class pe { - constructor() { - if ( - (ce(this, "objectsImg", null), - ce(this, "playerImg", null), - ce(this, "bgImg", null), - ce(this, "bgSize", void 0), - ce(this, "objectsTemp", null), - ce(this, "playerTemp", null), - ce(this, "bgTemp", null), - ce(this, "gradient", void 0), - ce(this, "hitbox", void 0), - ce(this, "boundary", void 0), - ce(this, "accent", void 0), - pe.sys) - ) - return pe.sys; - (pe.sys = this), this.setupImages(); - } - setupImages() { - (this.objectsImg = new Image()), - (this.playerImg = new Image()), - (this.bgImg = new Image()), - (this.bgSize = 256); - } - loadNewTheme(e) { - const t = pe.allThemes[e]; - (this.objectsTemp = new Image()), - (this.objectsTemp.src = t.folder + "/objects.png"), - (this.playerTemp = new Image()), - (this.playerTemp.src = t.folder + "/player.png"), - (this.bgTemp = new Image()), - (this.bgTemp.src = t.folder + "/bg.png"); - } - setNewTheme(e) { - const t = pe.allThemes[e]; - (this.objectsImg.src = this.objectsTemp.src), - (this.playerImg.src = this.playerTemp.src), - (this.bgImg.src = this.bgTemp.src), - (this.gradient = t.gradient), - (this.hitbox = t.hitbox), - (this.boundary = t.boundary), - (this.accent = t.accent), - (de.sys.bg.style.backgroundImage = "url(" + this.bgImg.src + ")"), - (de.sys.bg.style.backgroundSize = - this.bgSize + "px " + this.bgSize + "px"); - const s = this.gradient.start.join(", "), - i = this.gradient.end.join(", "); - (de.sys.gradient.style.background = - "linear-gradient(180deg, rgb(" + - s + - ") 0%, rgb(" + - i + - ") 100%)"), - (te.sys.session.settings.theme = e), - be.sys.createPlayerSprite(), - te.sys.saveSessionSettings(), - delete this.objectsTemp, - delete this.playerTemp, - delete this.bgTemp; - } - } - ce(pe, "sys", null), - ce(pe, "allThemes", { - ...G, - }); - class be { - constructor() { - if ( - (ce(this, "playerSprite", new Image()), - ce(this, "sheet", { - player: { - w: 64, - h: 64, - fps: 6, - str: "crash", - hitbox: { - x: 20, - y: 32, - w: 24, - h: 24, - }, - poseData: { - stop: 0, - left: 64, - downleft: 128, - down: 192, - downright: 256, - right: 320, - crash: 384, - end: 448, - air1: 512, - air2: 576, - chase: 192, - }, - mount: [0, 64, 128], - friend: 192, - character: { - player1: 256, - player2: 320, - player3: 384, - player4: 448, - player5: 512, - player6: 576, - player7: 640, - konami: 704, - special: 768, - }, - }, - npc: { - w: 64, - h: 64, - fps: 0, - str: "crash", - group: "npc", - hitbox: { - x: 20, - y: 32, - w: 24, - h: 24, - }, - poseData: { - left: 1152, - right: 1216, - crash: 1280, - }, - }, - foe: { - w: 128, - h: 128, - fps: 6, - str: "crash", - group: "foe", - hitbox: { - x: 32, - y: 80, - w: 64, - h: 40, - }, - poseData: { - chase: [ - { - x: 1152, - y: 256, - }, - { - x: 1280, - y: 256, - }, - { - x: 1408, - y: 256, - }, - { - x: 1536, - y: 256, - }, - ], - crash: [ - { - x: 1664, - y: 256, - }, - { - x: 1792, - y: 256, - }, - ], - end: [ - { - x: 1152, - y: 384, - }, - { - x: 1280, - y: 384, - }, - { - x: 1408, - y: 384, - }, - { - x: 1536, - y: 384, - }, - { - x: 1664, - y: 384, - }, - { - x: 1792, - y: 384, - }, - ], - }, - }, - wall: { - w: 64, - h: 64, - fps: 0, - str: "crash", - fx: 12, - group: "top", - hitbox: { - x: 6, - y: 16, - w: 52, - h: 32, - }, - poseData: { - sw: [ - { - x: 0, - y: 448, - }, - ], - s: [ - { - x: 64, - y: 448, - }, - ], - se: [ - { - x: 128, - y: 448, - }, - ], - w: [ - { - x: 192, - y: 448, - }, - ], - e: [ - { - x: 256, - y: 448, - }, - ], - n: [ - { - x: 320, - y: 448, - }, - ], - b: [ - { - x: 384, - y: 448, - }, - ], - f1: [ - { - x: 448, - y: 448, - }, - ], - f2: [ - { - x: 512, - y: 448, - }, - ], - f3: [ - { - x: 576, - y: 448, - }, - ], - }, - }, - wallDecor: { - w: 32, - h: 32, - fps: 0, - poseData: { - a: [ - { - x: 384, - y: 416, - }, - ], - b: [ - { - x: 416, - y: 416, - }, - ], - c: [ - { - x: 448, - y: 416, - }, - ], - d: [ - { - x: 480, - y: 416, - }, - ], - e: [ - { - x: 512, - y: 416, - }, - ], - f: [ - { - x: 544, - y: 416, - }, - ], - g: [ - { - x: 576, - y: 416, - }, - ], - h: [ - { - x: 608, - y: 416, - }, - ], - }, - }, - snag: { - w: 64, - h: 64, - fps: 6, - str: "crash", - fx: 12, - group: "top", - hitbox: { - x: 16, - y: 36, - w: 32, - h: 20, - }, - poseData: { - side1: [ - { - x: 0, - y: 64, - }, - ], - side2: [ - { - x: 64, - y: 64, - }, - ], - hurdle1: [ - { - x: 128, - y: 64, - }, - ], - hurdle2: [ - { - x: 192, - y: 64, - }, - ], - vehicle1: [ - { - x: 256, - y: 64, - }, - ], - vehicle2: [ - { - x: 320, - y: 64, - }, - ], - common1: [ - { - x: 384, - y: 64, - }, - ], - common2: [ - { - x: 448, - y: 64, - }, - ], - common3: [ - { - x: 512, - y: 64, - }, - ], - common4: [ - { - x: 576, - y: 64, - }, - ], - common5: [ - { - x: 640, - y: 64, - }, - ], - warn1: [ - { - x: 704, - y: 64, - }, - ], - isle1: [ - { - x: 768, - y: 64, - }, - ], - isle2: [ - { - x: 832, - y: 64, - }, - ], - isle3: [ - { - x: 896, - y: 64, - }, - ], - special1: [ - { - x: 1536, - y: 192, - }, - ], - special2: [ - { - x: 1600, - y: 192, - }, - ], - special3: [ - { - x: 1664, - y: 192, - }, - ], - special4: [ - { - x: 1728, - y: 192, - }, - ], - }, - }, - snagsml: { - w: 64, - h: 64, - fps: 6, - str: "crash", - fx: 12, - group: "top", - hitbox: { - x: 22, - y: 36, - w: 20, - h: 20, - }, - poseData: { - debris1: [ - { - x: 384, - y: 0, - }, - ], - debris2: [ - { - x: 448, - y: 0, - }, - ], - beacon1: [ - { - x: 512, - y: 0, - }, - ], - point1: [ - { - x: 576, - y: 0, - }, - ], - rare1: [ - { - x: 640, - y: 0, - }, - ], - decor1: [ - { - x: 704, - y: 0, - }, - ], - decor2: [ - { - x: 768, - y: 0, - }, - ], - decor3: [ - { - x: 832, - y: 0, - }, - ], - decor4: [ - { - x: 896, - y: 0, - }, - ], - }, - }, - snagtall: { - w: 64, - h: 128, - fps: 6, - str: "crash", - fx: 36, - group: "top", - hitbox: { - x: 12, - y: 88, - w: 40, - h: 24, - }, - poseData: { - tall1: [ - { - x: 640, - y: 384, - }, - ], - tall2: [ - { - x: 704, - y: 384, - }, - ], - tall3: [ - { - x: 768, - y: 384, - }, - ], - tall4: [ - { - x: 832, - y: 384, - }, - ], - tall5: [ - { - x: 896, - y: 384, - }, - ], - tall6: [ - { - x: 768, - y: 256, - }, - ], - tall7: [ - { - x: 832, - y: 256, - }, - ], - tall8: [ - { - x: 896, - y: 256, - }, - ], - }, - }, - spin: { - w: 32, - h: 32, - fps: 0, - str: "avoid", - fx: 4, - group: "top", - hitbox: { - x: 8, - y: 20, - w: 16, - h: 12, - }, - poseData: { - spin1: [ - { - x: 384, - y: 384, - }, - ], - spin2: [ - { - x: 416, - y: 384, - }, - ], - spin3: [ - { - x: 448, - y: 384, - }, - ], - spin4: [ - { - x: 480, - y: 384, - }, - ], - spin5: [ - { - x: 512, - y: 384, - }, - ], - }, - }, - spiral: { - w: 128, - h: 128, - fps: 6, - str: "avoid", - group: "btm", - hitbox: { - x: 16, - y: 32, - w: 96, - h: 64, - }, - poseData: { - spiral1: [ - { - x: 0, - y: 128, - }, - { - x: 128, - y: 128, - }, - { - x: 256, - y: 128, - }, - ], - }, - }, - block: { - w: 128, - h: 128, - fps: 0, - str: "crash", - group: "top", - hitbox: { - x: 24, - y: 64, - w: 80, - h: 40, - }, - poseData: { - block1: [ - { - x: 384, - y: 256, - }, - ], - block2: [ - { - x: 512, - y: 256, - }, - ], - block3: [ - { - x: 640, - y: 256, - }, - ], - }, - }, - blockbig: { - w: 192, - h: 128, - fps: 0, - str: "crash", - group: "top", - hitbox: { - x: 24, - y: 64, - w: 144, - h: 40, - }, - poseData: { - blockbig1: [ - { - x: 384, - y: 128, - }, - ], - blockbig2: [ - { - x: 576, - y: 128, - }, - ], - blockbig3: [ - { - x: 768, - y: 128, - }, - ], - }, - }, - marker: { - w: 64, - h: 64, - fps: 0, - str: "crash", - fx: 12, - group: "top", - hitbox: { - x: 20, - y: 36, - w: 24, - h: 20, - }, - poseData: { - default: [ - { - x: 1792, - y: 192, - }, - ], - pass: [ - { - x: 1856, - y: 192, - }, - ], - fail: [ - { - x: 1792, - y: 192, - }, - ], - }, - }, - guide: { - w: 32, - h: 32, - fps: 0, - str: "avoid", - fx: 4, - group: "top", - hitbox: { - x: 4, - y: 20, - w: 24, - h: 12, - }, - poseData: { - default: [ - { - x: 544, - y: 384, - }, - ], - pass: [ - { - x: 576, - y: 384, - }, - ], - fail: [ - { - x: 608, - y: 384, - }, - ], - }, - }, - slow: { - w: 64, - h: 64, - fps: 6, - str: "avoid", - group: "btm", - hitbox: { - x: 4, - y: 8, - w: 56, - h: 48, - }, - poseData: { - slow1: [ - { - x: 1536, - y: 0, - }, - { - x: 1536, - y: 64, - }, - { - x: 1536, - y: 128, - }, - ], - slow2: [ - { - x: 1600, - y: 0, - }, - { - x: 1600, - y: 64, - }, - { - x: 1600, - y: 128, - }, - ], - slow3: [ - { - x: 1664, - y: 0, - }, - { - x: 1664, - y: 64, - }, - { - x: 1664, - y: 128, - }, - ], - }, - }, - slowbig: { - w: 192, - h: 64, - fps: 6, - str: "avoid", - group: "btm", - hitbox: { - x: 8, - y: 8, - w: 176, - h: 48, - }, - poseData: { - slowbig1: [ - { - x: 1536, - y: 0, - }, - { - x: 1536, - y: 64, - }, - { - x: 1536, - y: 128, - }, - ], - }, - }, - bump: { - w: 64, - h: 64, - fps: 6, - str: "avoid", - group: "btm", - hitbox: { - x: 4, - y: 8, - w: 56, - h: 48, - }, - poseData: { - bump1: [ - { - x: 1728, - y: 0, - }, - { - x: 1728, - y: 64, - }, - { - x: 1728, - y: 128, - }, - ], - bump2: [ - { - x: 1792, - y: 0, - }, - { - x: 1792, - y: 64, - }, - { - x: 1792, - y: 128, - }, - ], - bump3: [ - { - x: 1856, - y: 0, - }, - { - x: 1856, - y: 64, - }, - { - x: 1856, - y: 128, - }, - ], - }, - }, - bumpbig: { - w: 192, - h: 64, - fps: 6, - str: "avoid", - group: "btm", - hitbox: { - x: 8, - y: 8, - w: 176, - h: 48, - }, - poseData: { - bumpbig1: [ - { - x: 1728, - y: 0, - }, - { - x: 1728, - y: 64, - }, - { - x: 1728, - y: 128, - }, - ], - }, - }, - ramp: { - w: 64, - h: 64, - fps: 6, - str: "boost", - fx: 12, - group: "top", - hitbox: { - x: 8, - y: 8, - w: 48, - h: 24, - }, - poseData: { - ramp: [ - { - x: 960, - y: 0, - }, - { - x: 960, - y: 64, - }, - { - x: 960, - y: 128, - }, - { - x: 960, - y: 192, - }, - ], - }, - }, - boost: { - w: 64, - h: 64, - fps: 6, - str: "boost", - fx: 12, - group: "top", - hitbox: { - x: 0, - y: 0, - w: 64, - h: 64, - }, - poseData: { - boost: [ - { - x: 1024, - y: 0, - }, - { - x: 1024, - y: 64, - }, - { - x: 1024, - y: 128, - }, - { - x: 1024, - y: 192, - }, - ], - }, - }, - life: { - w: 64, - h: 64, - fps: 6, - str: "boost", - fx: 12, - group: "top", - hitbox: { - x: 0, - y: 0, - w: 64, - h: 64, - }, - poseData: { - life: [ - { - x: 1088, - y: 0, - }, - { - x: 1088, - y: 64, - }, - { - x: 1088, - y: 128, - }, - { - x: 1088, - y: 192, - }, - ], - }, - }, - coin: { - w: 64, - h: 64, - fps: 6, - str: "boost", - fx: 12, - group: "top", - hitbox: { - x: 0, - y: 0, - w: 64, - h: 64, - }, - poseData: { - coin: [ - { - x: 960, - y: 256, - }, - { - x: 960, - y: 320, - }, - { - x: 960, - y: 384, - }, - { - x: 960, - y: 448, - }, - ], - }, - }, - friend: { - w: 64, - h: 64, - fps: 6, - str: "boost", - fx: 12, - group: "top", - hitbox: { - x: -32, - y: -32, - w: 128, - h: 128, - }, - poseData: { - friend: [ - { - x: 1024, - y: 256, - }, - { - x: 1024, - y: 320, - }, - { - x: 1024, - y: 384, - }, - { - x: 1024, - y: 448, - }, - ], - crash: [ - { - x: 1024, - y: 256, - }, - ], - }, - }, - lure: { - w: 64, - h: 64, - fps: 6, - str: "avoid", - fx: 12, - group: "top", - hitbox: { - x: -64, - y: -64, - w: 192, - h: 192, - }, - poseData: { - lure: [ - { - x: 1088, - y: 256, - }, - { - x: 1088, - y: 320, - }, - { - x: 1088, - y: 384, - }, - { - x: 1088, - y: 448, - }, - ], - }, - }, - ambient: { - w: 64, - h: 64, - fps: 6, - fx: 12, - group: "btm", - hitbox: { - x: 0, - y: 0, - w: 64, - h: 64, - }, - poseData: { - ambient1: [ - { - x: 1344, - y: 0, - }, - { - x: 1344, - y: 64, - }, - { - x: 1344, - y: 128, - }, - { - x: 1344, - y: 192, - }, - ], - ambient2: [ - { - x: 1408, - y: 0, - }, - { - x: 1408, - y: 64, - }, - { - x: 1408, - y: 128, - }, - { - x: 1408, - y: 192, - }, - ], - ambient3: [ - { - x: 1472, - y: 0, - }, - { - x: 1472, - y: 64, - }, - { - x: 1472, - y: 128, - }, - { - x: 1472, - y: 192, - }, - ], - }, - }, - finish: { - w: 384, - h: 192, - fps: 0, - str: "boost", - group: "top", - hitbox: { - x: 0, - y: 128, - w: 384, - h: 192, - }, - poseData: { - default: [ - { - x: 0, - y: 256, - }, - ], - }, - }, - checkpoint: { - w: 384, - h: 192, - fps: 0, - str: "boost", - group: "top", - hitbox: { - x: 64, - y: 128, - w: 256, - h: 64, - }, - poseData: { - default: [ - { - x: 0, - y: 256, - }, - ], - }, - }, - gate: { - w: 192, - h: 64, - str: "boost", - group: "btm", - hitbox: { - x: 0, - y: 0, - w: 192, - h: 64, - }, - }, - swap: { - w: 256, - h: 256, - str: "boost", - group: "btm", - hitbox: { - x: 0, - y: 0, - w: 256, - h: 256, - }, - }, - fx: { - w: 96, - h: 64, - fps: 6, - poseData: { - effect: [ - { - x: 96, - y: 0, - }, - { - x: 192, - y: 0, - }, - { - x: 288, - y: 0, - }, - ], - }, - }, - }), - ce(this, "boundary", { - [q.ZigZag]: 960, - [q.TimeTrial]: 576, - [q.Endless]: void 0, - }), - ce(this, "characterList", void 0), - ce(this, "selectionList", void 0), - be.sys) - ) - return be.sys; - (be.sys = this), - (this.characterList = Object.keys(this.sheet.player.character)), - (this.selectionList = [ - "player1", - "player2", - "player3", - "player4", - "player5", - "player6", - "player7", - ]); - } - createPlayerSprite() { - const e = 640, - t = document.createElement("canvas"); - (t.width = e), (t.height = 192); - const s = t.getContext("2d"); - (s.imageSmoothingEnabled = !1), - s.drawImage(pe.sys.playerImg, 0, 0, e, 192, 0, 0, e, 192); - const i = document.createElement("canvas"); - (i.width = e), (i.height = 64); - i.getContext("2d").imageSmoothingEnabled = !1; - const a = be.sys.characterList[te.sys.session.settings.character], - o = this.sheet.player.character[a]; - if ( - (this.applyLayers(s, pe.sys.playerImg, o, e, 64), - te.sys.game.friend) - ) { - const t = this.sheet.player.friend; - this.applyLayers(s, pe.sys.playerImg, t, e, 64); - } - const n = new Image(); - (n.src = t.toDataURL("image/png")), - (async () => { - await n.decode(), (this.playerSprite.src = n.src); - })(); - } - applyLayers(e, t, s, i, a) { - e.drawImage(t, 0, s, i, a, 0, 0, i, a), - e.drawImage(t, 0, s, i, a, 0, a, i, a), - e.drawImage(t, 0, s, i, a, 0, 2 * a, i, a); - } - } - - function ge(e, t, s) { - return ( - t in e - ? Object.defineProperty(e, t, { - value: s, - enumerable: !0, - configurable: !0, - writable: !0, - }) - : (e[t] = s), - e - ); - } - ce(be, "sys", null); - class ue { - constructor() { - if ( - (ge(this, "ui", void 0), - ge(this, "tint", void 0), - ge(this, "topui", void 0), - ge(this, "livesDisplay", void 0), - ge(this, "score", void 0), - ge(this, "scoreIcon", void 0), - ge(this, "scoreText", void 0), - ge(this, "boostDisplay", void 0), - ge(this, "title", void 0), - ge(this, "subtitle", void 0), - ge(this, "instruct", void 0), - ge(this, "instructAction", void 0), - ge(this, "instructContent", void 0), - ge(this, "instructText", void 0), - ge(this, "notify", void 0), - ge(this, "notifyContent", void 0), - ge(this, "notifyTimer", void 0), - ge(this, "icons", void 0), - ge(this, "selector", void 0), - ue.sys) - ) - return ue.sys; - (ue.sys = this), - this.defineIcons(), - this.buildInterface(), - (this.notifyTimer = void 0), - re.subscribe(this.updateScore.bind(this)); - } - buildInterface() { - (this.ui = this.createNew("div", document.body, "game-ui")), - (this.tint = this.createNew("div", document.body, "game-tint")), - (this.topui = this.createNew("div", this.ui)); - const e = this.createNew("div", this.topui, "dash-stats"); - this.livesDisplay = this.createNew("div", e, void 0, "stats-icons"); - const t = this.createNew("div", e, "stats-score"); - (this.score = this.createNew("div", t)), - (this.scoreIcon = this.createNew( - "span", - this.score, - "score-icon" - )), - (this.scoreText = this.createNew( - "span", - this.score, - "score-text" - )), - (this.boostDisplay = this.createNew( - "div", - e, - void 0, - "stats-icons" - )), - (this.title = this.createNew("p", this.ui, "ui-title")), - (this.subtitle = this.createNew("p", this.ui, "ui-subtitle")), - (this.selector = this.createNew("div", this.ui, "ui-selector")); - const s = this.createNew("span", this.selector, "selector-left"); - this.createIconSVG(s, "leftArrow", 44); - const i = this.createNew("span", this.selector, "selector-right"); - this.createIconSVG(i, "rightArrow", 44), - s.addEventListener( - "click", - function () { - ze.sys.changeCharacter(-1); - }, - !1 - ), - i.addEventListener( - "click", - function () { - ze.sys.changeCharacter(1); - }, - !1 - ), - (this.instruct = this.createNew("div", this.ui, "ui-instruct")), - (this.instructContent = this.createNew( - "div", - this.instruct, - "instruct-content" - )), - (this.instructAction = this.createNew( - "div", - this.instructContent, - "instruct-action" - )), - (this.instructText = this.createNew( - "p", - this.instructContent, - "instruct-text" - )), - (this.notify = this.createNew("div", this.ui, "ui-notify")), - (this.notifyContent = this.createNew( - "div", - this.notify, - "notify-content" - )), - this.hideNotification(); - } - refreshDisplay() { - this.updateIcons(), this.updateScore(), this.checkHighScoreIcon(); - } - hideOverlayUI() { - this.tintScreen(), - (this.title.style.visibility = "hidden"), - (this.subtitle.style.visibility = "hidden"), - (this.selector.style.visibility = "hidden"), - (this.instructContent.style.visibility = "hidden"); - } - updateGameTitleUI() { - const e = te.sys.session.settings.theme; - this.title.style.removeProperty("visibility"), - (this.title.textContent = Z.pz.getString(e + "Theme")); - } - updateGameModeUI() { - const e = te.sys.session.settings.mode; - this.subtitle.style.removeProperty("visibility"), - (this.subtitle.textContent = Z.pz.getString(e + "Title")), - this.updateScore(); - } - updateInputTypeUI() { - const e = te.sys.session.state; - if (e === Q.Play) return; - const t = te.sys.session.inputType.valueOf(); - switch (t) { - case ee.Mouse: - case ee.Touch: - case ee.Keyboard: - this.instructAction.classList.add("outline"), - (this.instructAction.textContent = Z.pz.getString( - t + "Action" - )); - break; - case ee.Ps: - case ee.Xbox: { - const e = t + "Action"; - this.instructAction.classList.remove("outline"), - (this.instructAction.textContent = ""), - this.createIconSVG(this.instructAction, e, 32); - break; - } - } - (this.instructText.textContent = Z.pz.getString(e + "Info")), - this.instructContent.style.removeProperty("visibility"), - e !== Q.Menu - ? this.instructContent.classList.add("tinted") - : this.instructContent.classList.remove("tinted"); - } - tintScreen() { - te.sys.session.state === Q.Pause - ? this.tint.classList.add("visible") - : this.tint.classList.remove("visible"); - } - showPauseScreen() { - this.tintScreen(), - this.updateGameTitleUI(), - this.updateGameModeUI(), - this.updateInputTypeUI(), - this.refreshDisplay(); - } - showOverScreen() { - this.tintScreen(), - this.updateGameTitleUI(), - this.updateInputTypeUI(), - this.refreshDisplay(); - } - showMenuScreen() { - this.showPauseScreen(), - this.selector.style.removeProperty("visibility"); - } - sendNotification(e, t = 5e3) { - const s = te.sys.session.settings.mode, - i = te.sys.session.settings.theme; - switch (((this.notifyContent.textContent = ""), e)) { - case "mode": - this.notifyContent.textContent = Z.pz.getStringF( - "gameMode", - Z.pz.getString(s + "Title") - ); - break; - case "theme": - this.notifyContent.textContent = Z.pz.getStringF( - "theme", - Z.pz.getString(i + "Theme") - ); - break; - case "score": { - const e = te.sys.getHighScore(s); - (this.notifyContent.textContent = Z.pz.getStringF( - "newBestScore", - Z.pz.getString(s + "Descriptor"), - e, - Z.pz.getString(s + "Unit") - )), - this.createIconSVG( - this.notifyContent, - "star", - 20, - "0 4px 0 0" - ); - break; - } - case "cheatcode": - this.notifyContent.textContent = Z.pz.getStringF( - "codeCheat", - Z.pz.getString("codeScoring") - ); - break; - case "code": - this.notifyContent.textContent = Z.pz.getString("code"); - break; - case "cheat": - this.notifyContent.textContent = Z.pz.getString("codeScoring"); - break; - case "share": - this.notifyContent.textContent = Z.pz.getString("share"); - } - clearTimeout(this.notifyTimer), - (this.notifyTimer = window.setTimeout(function () { - ue.sys.hideNotification(); - }, t)), - "share" === e && this.createShareLink(), - this.showNotification(); - } - createShareLink() { - const e = this.createNew( - "button", - this.notifyContent, - "notify-shareLink" - ); - e.onclick = this.copyShareLink.bind(this); - (this.createNew("p", e, "notify-shareText").textContent = - Z.pz.getString("shareCopy")), - this.createIconSVG(e, "link", 20, "0 4px 0 0"); - } - copyShareLink() { - $(Z.pz.getString("shareLink")), - (this.notifyContent.textContent = - Z.pz.getString("shareLinkCopied")); - } - showNotification() { - this.notify.classList.add("visible"); - } - hideNotification() { - this.notify.classList.remove("visible"); - } - checkHighScoreIcon() { - const e = te.sys.session.state; - (this.scoreIcon.textContent = ""), - (e === Q.Menu || te.sys.game.highScore) && - this.createIconSVG(this.scoreIcon, "star", 20); - } - updateScore() { - const e = te.sys.session.settings.mode; - if (te.sys.session.state === Q.Menu) { - const t = te.sys.getHighScore(e); - this.scoreText.textContent = Z.pz.getStringF( - "bestScoreMenuDisplay", - t, - Z.pz.getString(e + "Unit") - ); - } else { - const t = te.sys.getCurrentScoreFormatted(); - this.scoreText.textContent = t + " " + Z.pz.getString(e + "Unit"); - } - } - updateIcons() { - const e = [], - t = [], - s = te.sys.game.cheat; - if (s.lives || s.safety) - s.safety && e.push("shield"), - e.push("life-full"), - e.push("infinite"); - else - for (let t = 1; t <= te.sys.game.lives.max; t++) { - let s = "life-empty"; - t <= te.sys.game.shields.current - ? (s = "shield") - : t <= te.sys.game.lives.current && (s = "life-full"), - e.push(s); - } - if (s.boosts) t.push("boost-full"), t.push("infinite"); - else - for (let e = 1; e <= te.sys.game.boosts.max; e++) { - const s = - e <= te.sys.game.boosts.current - ? "boost-full" - : "boost-empty"; - t.push(s); - } - (this.livesDisplay.textContent = ""), - (this.boostDisplay.textContent = ""); - const i = "url(" + pe.sys.objectsImg.src + ")"; - e.forEach((e) => { - this.createNew( - "div", - this.livesDisplay, - void 0, - e - ).style.backgroundImage = i; - }), - t.forEach((e) => { - this.createNew( - "div", - this.boostDisplay, - void 0, - e - ).style.backgroundImage = i; - }); - } - createIconSVG(e, t, s, i = "0 0 0 0") { - const a = document.createElementNS( - "http://www.w3.org/2000/svg", - "svg" - ); - a.classList.add("icon-" + t), - (a.style.margin = i), - (a.style.display = "inline-block"), - a.setAttribute("width", s + "px"), - a.setAttribute("height", s + "px"), - a.setAttribute("viewBox", this.icons[t].viewbox); - const o = document.createElementNS( - "http://www.w3.org/2000/svg", - "path" - ); - a.insertAdjacentElement("beforeend", o), - o.classList.add("icon-fill"), - o.setAttribute("d", this.icons[t].path), - e.insertAdjacentElement("afterbegin", a), - a.insertAdjacentElement("afterbegin", o); - } - defineIcons() { - this.icons = { - leftArrow: { - path: "M12.2676 15.793C11.9677 16.0787 11.493 16.0672 11.2073 15.7672L6.20597 10.5168C5.93004 10.2271 5.93004 9.77187 6.20597 9.4822L11.2073 4.23173C11.493 3.93181 11.9677 3.92028 12.2676 4.20597C12.5676 4.49166 12.5791 4.96639 12.2934 5.26631L7.78483 9.99949L12.2934 14.7327C12.5791 15.0326 12.5676 15.5073 12.2676 15.793Z", - viewbox: "0 0 20 20", - }, - rightArrow: { - path: "M7.73271 4.20694C8.03263 3.92125 8.50737 3.93279 8.79306 4.23271L13.7944 9.48318C14.0703 9.77285 14.0703 10.2281 13.7944 10.5178L8.79306 15.7682C8.50737 16.0681 8.03263 16.0797 7.73271 15.794C7.43279 15.5083 7.42125 15.0336 7.70694 14.7336L12.2155 10.0005L7.70694 5.26729C7.42125 4.96737 7.43279 4.49264 7.73271 4.20694Z", - viewbox: "0 0 20 20", - }, - star: { - path: "M9.10433 2.89874C9.47114 2.15549 10.531 2.1555 10.8978 2.89874L12.8282 6.81024L17.1448 7.43748C17.9651 7.55666 18.2926 8.56464 17.699 9.14317L14.5755 12.1878L15.3129 16.487C15.453 17.3039 14.5956 17.9269 13.8619 17.5412L10.0011 15.5114L6.14018 17.5412C5.40655 17.9269 4.54913 17.3039 4.68924 16.487L5.4266 12.1878L2.30308 9.14317C1.70956 8.56463 2.03708 7.55666 2.8573 7.43748L7.17389 6.81024L9.10433 2.89874Z", - viewbox: "0 0 20 20", - }, - link: { - path: "M14 6C16.2091 6 18 7.79086 18 10C18 12.1422 16.316 13.8911 14.1996 13.9951L14 14H12C11.5858 14 11.25 13.6642 11.25 13.25C11.25 12.8703 11.5322 12.5565 11.8982 12.5068L12 12.5H14C15.3807 12.5 16.5 11.3807 16.5 10C16.5 8.67452 15.4685 7.58996 14.1644 7.50532L14 7.5H12C11.5858 7.5 11.25 7.16421 11.25 6.75C11.25 6.3703 11.5322 6.05651 11.8982 6.00685L12 6H14ZM8 6C8.41421 6 8.75 6.33579 8.75 6.75C8.75 7.1297 8.46785 7.44349 8.10177 7.49315L8 7.5H6C4.61929 7.5 3.5 8.61929 3.5 10C3.5 11.3255 4.53154 12.41 5.83562 12.4947L6 12.5H8C8.41421 12.5 8.75 12.8358 8.75 13.25C8.75 13.6297 8.46785 13.9435 8.10177 13.9932L8 14H6C3.79086 14 2 12.2091 2 10C2 7.8578 3.68397 6.10892 5.80036 6.0049L6 6H8ZM6.25 9.25H13.75C14.1642 9.25 14.5 9.58579 14.5 10C14.5 10.3797 14.2178 10.6935 13.8518 10.7432L13.75 10.75H6.25C5.83579 10.75 5.5 10.4142 5.5 10C5.5 9.6203 5.78215 9.30651 6.14823 9.25685L6.25 9.25H13.75H6.25Z", - viewbox: "0 0 20 20", - }, - xboxAction: { - path: "M11.5,11.5H9.7L9.2,9.9H6.7l-0.5,1.6H4.5l2.5-7H9L11.5,11.5z M8.9,8.7L8.1,6.4C8.1,6.2,8,6,8,5.7h0C8,6,7.9,6.2,7.8,6.4 L7.1,8.7H8.9z M8,16c-4.4,0-8-3.6-8-8s3.6-8,8-8s8,3.6,8,8S12.4,16,8,16z M8,1C4.1,1,1,4.1,1,8s3.1,7,7,7s7-3.1,7-7S11.9,1,8,1z", - viewbox: "0 0 16 16", - }, - psAction: { - path: "M8,0C3.6,0,0,3.6,0,8s3.6,8,8,8s8-3.6,8-8S12.4,0,8,0z M8,15c-3.9,0-7-3.1-7-7s3.1-7,7-7s7,3.1,7,7S11.9,15,8,15z M12,5 l-3,3l3,3L11,12l-3-3l-3,3L4,11l3-3L4,5L5,4l3,3l3-3L12,5z", - viewbox: "0 0 16 16", - }, - }; - } - createNew(e, t, s, i) { - const a = document.createElement(e); - return ( - void 0 !== t && t.insertAdjacentElement("beforeend", a), - void 0 !== s && (a.id = s), - void 0 !== i && a.classList.add(i), - a - ); - } - createNewCanvas() { - const e = document.createElement("canvas"); - return ( - document.body.insertAdjacentElement("beforeend", e), - (e.id = "game-canvas"), - e - ); - } - } - - function me(e, t, s) { - return ( - t in e - ? Object.defineProperty(e, t, { - value: s, - enumerable: !0, - configurable: !0, - writable: !0, - }) - : (e[t] = s), - e - ); - } - ge(ue, "sys", null); - class ye { - constructor() { - if ( - (me(this, "legend", void 0), - me(this, "spawnSingle", void 0), - me(this, "library", void 0), - ye.sys) - ) - return ye.sys; - (ye.sys = this), this.defineLegend(), this.defineClusters(); - } - defineLegend() { - (this.legend = { - wall: { - sw: ["sw"], - s: ["s"], - se: ["se"], - w: ["w"], - e: ["e"], - n: ["n"], - b: ["b"], - f1: ["f1"], - f2: ["f2"], - f3: ["f3"], - f: ["f1", "f2", "f3"], - }, - snag: { - b1: ["side1", "side2"], - b2: ["hurdle1", "hurdle2"], - b3: ["vehicle1", "vehicle2"], - b4: ["common1", "common2", "common3", "common4", "common5"], - b5: ["warn1"], - b6: ["isle1", "isle2", "isle3"], - b7: ["special1", "special2", "special3", "special4"], - }, - snagsml: { - c1: ["debris1", "debris2"], - c2: ["beacon1"], - c3: ["point1"], - c4: ["rare1"], - c5: ["decor1", "decor2", "decor3", "decor4"], - }, - snagtall: { - t1: ["tall1", "tall2"], - t2: ["tall3"], - t3: ["tall4", "tall5", "tall6", "tall7", "tall8"], - }, - spin: { - o: ["spin1", "spin2", "spin3", "spin4", "spin5"], - }, - ramp: { - i1: ["ramp"], - }, - lure: { - i2: ["lure"], - }, - boost: { - i3: ["boost"], - }, - life: { - i4: ["life"], - }, - coin: { - i5: ["coin"], - }, - friend: { - i6: ["friend"], - }, - ambient: { - a: ["ambient1", "ambient2", "ambient3"], - }, - slow: { - s1: ["slow1", "slow2", "slow3"], - }, - bump: { - s2: ["bump1", "bump2", "bump3"], - }, - slowbig: { - s3: ["slowbig1"], - }, - bumpbig: { - s4: ["bumpbig1"], - }, - spiral: { - s5: ["spiral1"], - }, - block: { - m1: ["block1", "block2", "block3"], - }, - blockbig: { - m2: ["blockbig1", "blockbig2", "blockbig3"], - }, - marker: { - z1: ["default"], - }, - guide: { - z2: ["default"], - }, - gate: { - z3: [""], - }, - swap: { - z4: [""], - }, - finish: { - f1: ["default"], - }, - checkpoint: { - p1: ["default"], - }, - }), - (this.spawnSingle = { - snag: [ - "side1", - "side2", - "hurdle1", - "hurdle2", - "common1", - "common2", - "common3", - "common4", - "common5", - "isle1", - "isle2", - "isle3", - "vehicle1", - "vehicle2", - ], - ambient: ["ambient1", "ambient2", "ambient3"], - slow: ["slow1", "slow2", "slow3"], - bump: ["bump1", "bump2", "bump3"], - slowbig: ["slowbig1"], - bumpbig: ["bumpbig1"], - spiral: ["spiral1"], - block: ["block1", "block2", "block3"], - snagsml: [ - "rare1", - "point1", - "decor1", - "decor2", - "decor3", - "decor4", - ], - snagtall: [ - "tall3", - "tall4", - "tall5", - "tall6", - "tall7", - "tall8", - ], - spin: ["spin1", "spin2", "spin3", "spin4", "spin5"], - }); - } - defineClusters() { - this.library = { - endlessStarts: { - start1: { - snagtall: [ - [14, 21, "t2"], - [-14, 14, "t1"], - [24, 6, "t1"], - [-32, 6, "t1"], - ], - bump: [ - [31, 11], - [-34, 22], - [-12, 18], - [14, 18], - [28, 18], - [40, 16], - [22, 10], - [40, 8], - [-40, 4], - [-42, 10], - [-24, 18], - [-33, 12], - ], - slow: [ - [14, 10], - [-14, 10], - ], - snagsml: [ - [-12, 27, "c3"], - [8, 20, "c3"], - [9, 11, "c3"], - [-8, 20, "c3"], - [-9, 11, "c3"], - [12, 27, "c3"], - ], - boost: [ - [-4, 2], - [4, 2], - ], - slowbig: [ - [22, 26], - [35, 21], - [-20, 21], - [-36, 16], - [26, 2], - [-26, 3], - ], - wall: [ - [36, 8, "se"], - [-26, 16, "sw"], - [-22, 16, "s"], - [-10, 16, "se"], - [10, 16, "sw"], - [18, 16, "s"], - [-18, 16, "f"], - [14, 16, "f"], - [22, 16, "f"], - [26, 16, "se"], - [-26, 12, "n"], - [26, 12, "n"], - [-36, 8, "sw"], - [-24, 8, "s"], - [-20, 8, "se"], - [20, 8, "sw"], - [32, 8, "s"], - [28, 8, "f"], - [-36, 4, "n"], - [36, 4, "n"], - [-28, 8, "f"], - ], - snag: [ - [15, 11, "b2"], - [37, 12, "b1"], - [41, 11, "b4"], - [-31, 13, "b4"], - [-22, 12, "b4"], - [-40, 12, "b2"], - [-17, 22, "b4"], - [-22, 24, "b4"], - [-32, 20, "b1"], - [36, 17, "b4"], - [20, 12, "b4"], - [-39, 18, "b4"], - [31, 14, "b4"], - [18, 21, "b4"], - ], - }, - start2: { - block: [[-28, 13]], - bump: [ - [-35, 7], - [-12, 12], - [12, 6], - [32, 4], - [-37, 14], - [-17, 22], - [-32, 23], - [38, 9], - [37, 14], - [-12, 19], - ], - wall: [ - [34, 12, "se"], - [22, 8, "s"], - [14, 8, "w"], - [14, 16, "se"], - [30, 12, "sw"], - [14, 12, "n"], - [-34, 20, "sw"], - [-26, 20, "s"], - [-14, 16, "f"], - [10, 16, "sw"], - [-10, 16, "se"], - [-22, 16, "w"], - [-22, 20, "se"], - [-30, 20, "s"], - [-34, 16, "n"], - [30, 8, "e"], - [26, 8, "f"], - ], - boost: [ - [4, 2], - [-4, 2], - ], - blockbig: [ - [-19, 8], - [22, 11], - ], - snagtall: [ - [-42, 8, "t2"], - [-18, 14, "t1"], - [18, 6, "t1"], - [-31, 6, "t3"], - [-27, 8, "t3"], - [28, 13, "t3"], - ], - slowbig: [ - [39, 28], - [45, 16], - [23, 3], - [-28, 3], - [-36, 28], - [-20, 31], - [22, 32], - ], - bumpbig: [[-24, 24]], - snag: [ - [18, 15, "b6"], - [33, 15, "b4"], - [-34, 11, "b6"], - [-16, 19, "b1"], - [28, 3, "b6"], - [40, 11, "b3"], - [-25, 26, "b2"], - [-36, 23, "b4"], - [-39, 19, "b3"], - [-14, 21, "b4"], - [-41, 17, "b4"], - [35, 7, "b1"], - [-18, 4, "b6"], - [37, 17, "b4"], - [-39, 8, "b4"], - ], - slow: [ - [-47, 15], - [-44, 23], - [42, 6], - [-40, 5], - [41, 22], - ], - snagsml: [ - [33, 22, "c5"], - [32, 26, "c5"], - [21, 20, "c5"], - [30, 19, "c5"], - [-12, 27, "c3"], - [9, 11, "c3"], - [8, 20, "c3"], - [-8, 20, "c3"], - [-9, 11, "c3"], - [12, 27, "c3"], - [26, 23, "c4"], - [25, 18, "c5"], - ], - }, - start3: { - snagtall: [ - [35, 7, "t3"], - [-33, 4, "t3"], - [-39, 17, "t3"], - [-17, 20, "t3"], - [21, 14, "t3"], - [30, 17, "t3"], - ], - slowbig: [ - [30, 5], - [37, 22], - [22, 25], - [-43, 25], - [-28, 20], - ], - bump: [ - [13, 21], - [15, 12], - [-39, 13], - [-32, 26], - [-41, 20], - [-30, 7], - [43, 16], - ], - snag: [ - [17, 19, "b6"], - [-17, 5, "b5"], - [-41, 10, "b4"], - [31, 11, "b3"], - [-44, 17, "b4"], - [-42, 15, "b4"], - [-29, 8, "b4"], - [19, 13, "b6"], - [-27, 5, "b4"], - [-36, 8, "b4"], - [-43, 12, "b4"], - [-37, 16, "b4"], - [-31, 24, "b5"], - [-23, 13, "b4"], - [43, 18, "b1"], - [-12, 20, "b6"], - [-13, 9, "b4"], - [-40, 7, "b6"], - [-25, 7, "b4"], - [27, 17, "b4"], - ], - bumpbig: [ - [-18, 12], - [31, 15], - ], - blockbig: [ - [-15, 16], - [23, 9], - ], - snagsml: [ - [12, 27, "c3"], - [9, 11, "c3"], - [-9, 11, "c3"], - [-8, 20, "c3"], - [8, 20, "c3"], - [-12, 27, "c3"], - ], - slow: [ - [47, 14], - [-48, 11], - [-30, 15], - [23, 20], - [-22, 25], - ], - wall: [[38, 17, "b"]], - block: [ - [14, 15], - [40, 11], - ], - lure: [[-34, 11]], - boost: [ - [-4, 2], - [4, 2], - ], - }, - }, - endlessSwap: { - swap: { - swap: [[0, 26]], - spiral: [ - [2, 22], - [-6, 26], - [6, 30], - ], - block: [ - [-32, 24], - [25, 38], - ], - blockbig: [[-25, 13]], - lure: [ - [18, 26, ["lure"]], - [-2, 14, ["lure"]], - [-10, 16, ["lure"]], - [-16, 20, ["lure"]], - [-18, 26, ["lure"]], - [16, 32, ["lure"]], - [10, 36, ["lure"]], - [-16, 33, ["lure"]], - ], - slowbig: [ - [30, 19], - [-11, 2], - [-26, 42], - [34, 44], - [-29, 8], - [20, 53], - [13, 7], - [-3, 51], - ], - bump: [ - [-37, 37], - [15, 44], - [30, 32], - [-17, 15], - [-30, 32], - [-28, 21], - [31, 39], - [35, 25], - [22, 47], - [10, 49], - ], - snag: [ - [-33, 19, "b4"], - [-23, 32, "b4"], - [-29, 38, "b3"], - [9, 51, "b4"], - [26, 46, "b4"], - [11, 3, "b5"], - [-3, 5, "b4"], - [-6, 10, "b4"], - [-15, 11, "b4"], - [29, 24, "b4"], - [11, 43, "b4"], - [27, 30, "b4"], - [-21, 17, "b4"], - [-26, 30, "b4"], - [16, 47, "b4"], - [-35, 15, "b6"], - [-11, 5, "b4"], - [-12, 9, "b6"], - [35, 37, "b4"], - [36, 28, "b4"], - [-26, 24, "b4"], - [-38, 26, "b4"], - [-40, 28, "b4"], - [-36, 30, "b4"], - [37, 32, "b4"], - [-16, 6, "b4"], - [-25, 18, "b4"], - [26, 34, "b4"], - [-18, 8, "b4"], - [2, 9, "b4"], - [31, 15, "b5"], - [31, 35, "b4"], - [24, 43, "b4"], - [5, 48, "b4"], - [33, 30, "b6"], - [19, 44, "b6"], - ], - wall: [[-33, 36, "b"]], - snagtall: [ - [-24, 33, "t3"], - [-9, 6, "t3"], - [20, 40, "t3"], - [-31, 16, "t3"], - [31, 26, "t3"], - [25, 19, "t2"], - [-20, 35, "t2"], - ], - slow: [ - [6, 17], - [2, 36], - [-21, 23], - [14, 24], - [40, 36], - [-10, 32], - [-8, 20], - [-38, 19], - ], - bumpbig: [ - [7, 46], - [-1, 8], - [-29, 29], - ], - snagsml: [ - [-29, 34, "c1"], - [-35, 32, "c1"], - [29, 21, "c1"], - [25, 23, "c1"], - ], - }, - }, - endlessLives: { - life1: { - bump: [ - [10, 12], - [-5, 14], - [0, 1], - ], - snag: [ - [17, 8, "b6"], - [-1, 3, "b6"], - [-16, 13, "b6"], - [-11, 15, "b6"], - ], - slow: [ - [-20, 8], - [-4, 6], - [-3, 19], - [7, 17], - [12, 5], - ], - blockbig: [[-11, 9]], - life: [[1, 12]], - snagtall: [ - [-8, 16, "t3"], - [-10, 4, "t3"], - [-3, 0, "t3"], - [14, 9, "t3"], - ], - slowbig: [[-19, 18]], - block: [[9, 7]], - }, - life2: { - snagtall: [ - [-4, 0, "t3"], - [-15, 6, "t3"], - [-9, 15, "t3"], - [10, 9, "t3"], - ], - bump: [[-11, 23]], - snagsml: [[-8, 20, "c1"]], - slowbig: [ - [7, 23], - [13, 8], - [-21, 20], - ], - slow: [ - [18, 15], - [-22, 8], - [-12, 5], - ], - spin: [[-4, 20]], - wall: [[-12, 20, "b"]], - life: [[-2, 13]], - blockbig: [ - [9, 15], - [-14, 11], - ], - snag: [ - [-20, 15, "b6"], - [3, 2, "b6"], - ], - block: [[-1, 5]], - }, - }, - endlessFriends: { - friend1: { - snag: [ - [20, 5, "b6"], - [11, 15, "b1"], - [-8, 14, "b4"], - [6, 12, "b4"], - [15, 13, "b2"], - ], - slow: [ - [-18, 3], - [7, 19], - ], - bump: [ - [-10, 4], - [-11, 16], - [10, 13], - [-15, 8], - ], - spin: [[4, 9]], - snagtall: [ - [6, 5, "t3"], - [-20, 10, "t1"], - ], - wall: [ - [-12, 12, "se"], - [-16, 12, "f"], - [-8, 8, "se"], - [-12, 8, "w"], - ], - blockbig: [[14, 8]], - bumpbig: [[11, 4]], - snagsml: [[-18, 15, "c1"]], - friend: [[-1, 12]], - }, - friend2: { - slow: [ - [-11, 18], - [13, 2], - ], - snag: [ - [-1, 1, "b4"], - [-18, 14, "b1"], - [18, 10, "b4"], - [14, 6, "b4"], - [8, 8, "b4"], - [-10, 11, "b6"], - [-7, 13, "b4"], - [17, 14, "b4"], - ], - slowbig: [ - [-18, 3], - [12, 19], - ], - bump: [ - [-16, 12], - [15, 11], - [-7, 8], - [2, 2], - ], - snagtall: [ - [11, 9, "t2"], - [-20, 8, "t3"], - ], - snagsml: [[8, 12, "c1"]], - block: [[-13, 7]], - friend: [[1, 9]], - }, - }, - endlessBoosts: { - boost1: { - spin: [[-15, 8]], - spiral: [[-2, 12]], - boost: [[-4, 19]], - slowbig: [[8, 8]], - blockbig: [ - [9, 14], - [-7, 4], - ], - snagsml: [ - [-20, 14, "c1"], - [-14, 20, "c1"], - ], - bump: [ - [5, 22], - [-10, 13], - [-11, 19], - [2, 3], - [-15, 5], - [16, 19], - ], - snag: [ - [-13, 14, "b4"], - [-10, 16, "b4"], - [-13, 1, "b6"], - [-9, 8, "b6"], - [4, 18, "b6"], - ], - snagtall: [ - [-16, 15, "t2"], - [17, 14, "t3"], - [8, 18, "t3"], - ], - }, - boost2: { - boost: [[-9, 16]], - snagsml: [[-10, 9, "c1"]], - bumpbig: [[-3, 2]], - snagtall: [[-7, 4, "t1"]], - bump: [ - [-5, 22], - [15, 20], - [17, 12], - [-15, 6], - [15, 4], - ], - wall: [ - [5, 22, "se"], - [1, 22, "sw"], - [1, 18, "e"], - [-3, 18, "sw"], - [13, 16, "b"], - [13, 12, "n"], - [9, 8, "sw"], - [-3, 6, "se"], - [-11, 6, "sw"], - [13, 8, "e"], - ], - snag: [ - [11, 3, "b1"], - [18, 15, "b2"], - [-6, 8, "b4"], - [-14, 14, "b4"], - [-6, 24, "b2"], - ], - }, - boost3: { - slowbig: [[-10, 3]], - snag: [ - [-14, 5, "b2"], - [7, 5, "b6"], - [-6, 12, "b1"], - [4, 2, "b4"], - [-10, 8, "b4"], - [10, 14, "b4"], - [8, 22, "b4"], - [-8, 22, "b4"], - [7, 19, "b4"], - [-17, 7, "b4"], - ], - bump: [ - [-12, 22], - [12, 20], - [16, 2], - [8, 2], - [-14, 10], - [-10, 14], - [14, 13], - [12, 3], - ], - slow: [ - [16, 8], - [-2, 23], - [-3, 9], - ], - block: [[10, 8]], - boost: [[4, 14]], - bumpbig: [[-10, 18]], - wall: [[-4, 16, "b"]], - }, - boost4: { - bumpbig: [[7, 19]], - snagsml: [[6, 6, "c1"]], - boost: [ - [4, 10], - [-4, 10], - ], - snagtall: [[7, 14, "t3"]], - snag: [ - [-10, 5, "b4"], - [8, 8, "b4"], - [-6, 16, "b1"], - [-4, 4, "b4"], - [-8, 8, "b4"], - [-8, 13, "b2"], - [4, 4, "b4"], - [9, 12, "b4"], - [-6, 6, "b6"], - ], - bump: [ - [12, 8], - [-12, 18], - [-8, 20], - [8, 23], - ], - slow: [ - [-15, 15], - [14, 15], - [16, 10], - [-14, 9], - ], - spin: [ - [-7, 2], - [10, 3], - ], - }, - boost5: { - boost: [[-1, 12]], - bump: [ - [11, 8], - [-8, 22], - [14, 16], - [-6, 16], - [-6, 8], - [-14, 6], - [-2, 4], - ], - wall: [ - [13, 12, "f"], - [-4, 20, "se"], - [-8, 20, "f"], - [-16, 20, "sw"], - [-12, 20, "s"], - [-12, 16, "n"], - [-8, 12, "se"], - [-12, 12, "w"], - [-10, 6, "b"], - [-2, 2, "se"], - [9, 12, "sw"], - [-10, 2, "w"], - ], - snag: [ - [-16, 10, "b4"], - [-12, 8, "b4"], - [-6, 4, "b2"], - [5, 10, "b4"], - [-1, 23, "b4"], - ], - spin: [ - [9, 17], - [7, 7], - [15, 5], - [1, 2], - ], - snagtall: [ - [17, 10, "t1"], - [-6, 0, "t1"], - ], - }, - boost6: { - snagtall: [[-6, 10, "t1"]], - spin: [ - [6, 0], - [-4, 2], - [6, 16], - [-2, 18], - ], - boost: [[2, 14]], - snag: [ - [-18, 11, "b1"], - [-12, 4, "b4"], - [14, 12, "b1"], - [-4, 7, "b4"], - ], - wall: [ - [14, 4, "n"], - [-14, 8, "sw"], - [-10, 8, "e"], - [6, 8, "w"], - [14, 8, "se"], - [-10, 12, "sw"], - [-2, 12, "se"], - [6, 12, "b"], - [-14, 18, "b"], - [10, 8, "f"], - ], - bump: [ - [-16, 2], - [18, 6], - [10, 14], - [-12, 22], - [-14, 13], - ], - }, - boost7: { - boost: [[4, 14]], - snagtall: [ - [-6, 4, "t3"], - [11, 1, "t3"], - ], - snag: [ - [10, 7, "b4"], - [-9, 8, "b2"], - [4, 0, "b4"], - [-8, 14, "b4"], - [-4, 12, "b6"], - [6, 4, "b1"], - ], - bump: [ - [-3, 9], - [-8, 12], - [5, 7], - ], - }, - boost8: { - spin: [ - [0, 3], - [7, 13], - ], - snag: [ - [10, 4, "b4"], - [-6, 4, "b4"], - [-10, 6, "b4"], - [4, 14, "b4"], - [-10, 2, "b2"], - ], - bump: [ - [-4, 8], - [6, 8], - [-8, 12], - ], - boost: [[-2, 14]], - }, - boost9: { - snagtall: [[10, 0, "t1"]], - boost: [[0, 10]], - bump: [ - [-13, 6], - [-4, 14], - [4, 6], - ], - snag: [ - [12, 12, "b3"], - [6, 12, "b4"], - [-8, 4, "b4"], - ], - wall: [ - [-10, 12, "sw"], - [-6, 12, "se"], - [8, 10, "b"], - [-10, 8, "n"], - [2, 2, "sw"], - [6, 2, "f"], - ], - snagsml: [[-8, 15, "c1"]], - }, - boost10: { - bumpbig: [[10, 6]], - snag: [ - [5, 11, "b1"], - [11, 9, "b4"], - [-8, 14, "b4"], - [-4, 12, "b4"], - [-10, 12, "b4"], - [8, 13, "b4"], - ], - bump: [ - [8, 10], - [11, 1], - [4, 3], - ], - spiral: [[-7, 4]], - boost: [[0, 9]], - }, - boost11: { - snag: [ - [-14, 8, "b6"], - [-12, 6, "b4"], - ], - snagtall: [[13, 3, "t3"]], - boost: [[2, 8]], - wall: [ - [-4, 10, "se"], - [-8, 10, "sw"], - [8, 6, "b"], - [-8, 6, "n"], - [8, 2, "e"], - [4, 2, "sw"], - ], - spin: [[-5, 1]], - snagsml: [[-5, 13, "c1"]], - bump: [ - [11, 8], - [-4, 6], - [-12, 11], - ], - }, - }, - endlessRamps: { - ramp1: { - boost: [[-2, 11]], - slowbig: [[-3, 2]], - wall: [ - [-6, 21, "b"], - [6, 17, "se"], - [-6, 17, "e"], - [-10, 17, "f"], - [-14, 17, "sw"], - [2, 17, "sw"], - [10, 13, "f"], - [6, 13, "w"], - ], - snag: [ - [12, 8, "b4"], - [-10, 19, "b4"], - [3, 19, "b1"], - [-16, 13, "b4"], - [-3, 4, "b1"], - ], - snagtall: [[14, 11, "t1"]], - bump: [ - [-16, 20], - [16, 5], - [11, 17], - [-17, 7], - ], - spin: [ - [-15, 5], - [14, 3], - ], - ramp: [ - [8, 9], - [-12, 13], - [-2, 16], - ], - }, - ramp2: { - snagtall: [ - [11, 10, "t3"], - [-11, 6, "t3"], - ], - spin: [ - [-2, 2], - [2, 10], - ], - slow: [ - [3, 2], - [16, 13], - [-4, 13], - [6, 17], - ], - block: [[-6, 4]], - slowbig: [ - [-17, 8], - [-11, 18], - ], - blockbig: [[9, 7]], - snag: [ - [-6, 9, "b4"], - [8, 13, "b4"], - [-13, 3, "b6"], - [9, 2, "b6"], - ], - bump: [ - [-10, 13], - [10, 16], - ], - ramp: [[0, 17]], - }, - ramp3: { - slow: [ - [14, 6], - [-18, 8], - [17, 16], - ], - snag: [ - [11, 8, "b3"], - [13, 11, "b1"], - [16, 9, "b6"], - ], - snagtall: [ - [-15, 9, "t3"], - [0, 21, "t3"], - [-4, 10, "t1"], - ], - bump: [ - [0, 12], - [-12, 13], - [-5, 20], - ], - wall: [ - [-8, 16, "sw"], - [-4, 16, "s"], - [0, 16, "f"], - [4, 16, "s"], - [8, 16, "f"], - [-8, 12, "w"], - [12, 16, "se"], - ], - slowbig: [ - [0, 2], - [-12, 19], - ], - blockbig: [ - [-8, 6], - [8, 19], - ], - ramp: [[6, 12]], - }, - ramp4: { - slow: [ - [3, 22], - [14, 10], - [-15, 8], - [-12, 4], - [14, 2], - [-7, 20], - ], - snag: [ - [-9, 7, "b3"], - [-8, 15, "b4"], - [13, 14, "b4"], - [-10, 12, "b4"], - [4, 12, "b4"], - [-4, 12, "b4"], - [6, 8, "b4"], - [8, 4, "b4"], - [-8, 4, "b4"], - [-6, 8, "b1"], - [11, 11, "b6"], - [8, 14, "b2"], - ], - bump: [ - [5, 17], - [-4, 16], - [-12, 14], - [8, 12], - [-10, 10], - ], - snagtall: [[10, 5, "t3"]], - ramp: [[0, 14]], - }, - ramp5: { - snagtall: [[-4, 11, "t3"]], - ramp: [ - [-8, 4], - [8, 2], - ], - bump: [ - [9, 6], - [-5, 5], - [-11, 6], - [5, 11], - ], - slowbig: [[-1, 9]], - snag: [ - [8, 10, "b4"], - [-10, 8, "b4"], - [6, 5, "b4"], - [-1, 4, "b6"], - ], - }, - ramp6: { - bump: [ - [-8, 6], - [-13, 14], - [9, 14], - ], - snagtall: [ - [-13, 9, "t3"], - [5, 13, "t3"], - [-9, 12, "t2"], - ], - slow: [ - [8, 8], - [-8, 3], - ], - blockbig: [[-2, 9]], - snag: [ - [1, 13, "b4"], - [6, 11, "b4"], - [3, 5, "b6"], - [-11, 8, "b4"], - ], - ramp: [[-2, 3]], - slowbig: [[-4, 18]], - }, - ramp7: { - snag: [ - [10, 8, "b4"], - [-1, 4, "b4"], - [1, 1, "b6"], - [0, 11, "b1"], - [-3, 2, "b4"], - ], - wall: [ - [8, 12, "w"], - [-8, 14, "se"], - [8, 16, "b"], - [12, 12, "se"], - ], - snagsml: [[14, 14, "c1"]], - ramp: [ - [4, 13], - [-4, 13], - ], - slow: [ - [14, 4], - [-10, 4], - ], - bump: [ - [-14, 11], - [-9, 17], - [1, 15], - [10, 18], - ], - snagtall: [[-12, 12, "t1"]], - }, - ramp8: { - slowbig: [[0, 19]], - snagsml: [[8, 12, "c1"]], - wall: [[6, 10, "b"]], - slow: [ - [-7, 12], - [5, 4], - ], - ramp: [[-1, 13]], - snag: [ - [-9, 6, "b4"], - [-8, 3, "b4"], - [-4, 0, "b4"], - [10, 9, "b4"], - [8, 6, "b2"], - [-10, 1, "b2"], - ], - bump: [ - [10, 4], - [-4, 4], - [-11, 7], - ], - }, - }, - endlessLures: { - lure1: { - slowbig: [ - [10, 13], - [-17, 9], - [0, 7], - ], - snag: [ - [-1, 3, "b4"], - [-3, 0, "b4"], - [2, 1, "b5"], - ], - slow: [ - [-8, 14], - [16, 2], - ], - spiral: [ - [11, 7], - [-13, 3], - ], - lure: [[-2, 11]], - }, - lure2: { - bump: [ - [21, 6], - [7, 21], - [-1, 12], - [21, 18], - [8, 13], - [-20, 16], - ], - wall: [ - [12, 10, "w"], - [12, 14, "w"], - [12, 18, "b"], - [4, 14, "b"], - [16, 14, "f"], - [4, 10, "n"], - [16, 10, "se"], - ], - snag: [ - [-17, 14, "b4"], - [-18, 7, "b4"], - [-14, 16, "b5"], - [-16, 10, "b1"], - [1, 20, "b4"], - [18, 17, "b4"], - [0, 8, "b5"], - [-20, 12, "b6"], - [13, 6, "b4"], - [18, 4, "b4"], - ], - snagtall: [ - [-21, 8, "t3"], - [20, 12, "t1"], - ], - slow: [[-10, 9]], - slowbig: [ - [4, 5], - [-16, 22], - ], - bumpbig: [[1, 17]], - snagsml: [[14, 3, "c1"]], - lure: [[-8, 13]], - }, - lure3: { - snagtall: [ - [-8, 9, "t3"], - [15, 2, "t2"], - ], - slow: [[0, 7]], - bump: [ - [21, 7], - [12, 2], - [-16, 13], - ], - snagsml: [[17, 6, "c1"]], - snag: [ - [9, 4, "b4"], - [-7, 0, "b4"], - [-5, 3, "b5"], - [-16, 9, "b4"], - [-17, 6, "b4"], - [-11, 8, "b3"], - [-2, 1, "b1"], - [7, 1, "b5"], - [19, 3, "b4"], - [-12, 12, "b4"], - ], - spin: [[6, 10]], - slowbig: [ - [-15, 3], - [-4, 17], - [16, 13], - ], - lure: [[2, 11]], - }, - lure4: { - snagtall: [[-12, 5, "t3"]], - slowbig: [[0, 5]], - lure: [[2, 9]], - snag: [ - [13, 12, "b2"], - [10, 7, "b4"], - [9, 3, "b5"], - [-7, 7, "b4"], - [-10, 9, "b6"], - [-15, 8, "b1"], - [-7, 2, "b5"], - [12, 5, "b4"], - ], - bump: [ - [-14, 12], - [-6, 11], - [14, 9], - ], - slow: [ - [8, 12], - [-1, 15], - ], - }, - lure5: { - slowbig: [ - [-11, 11], - [-3, 2], - ], - snagtall: [[8, 5, "t2"]], - lure: [[-2, 7]], - snagsml: [[-13, 7, "c1"]], - snag: [ - [4, 3, "b5"], - [-11, 2, "b5"], - [-9, 6, "b4"], - [11, 9, "b4"], - [-17, 5, "b2"], - ], - bump: [ - [-14, 5], - [8, 11], - [5, 6], - ], - slow: [[0, 13]], - }, - }, - endlessCheckpoints: { - checkpoint1: { - snag: [ - [25, 16, "b4"], - [22, 9, "b4"], - [17, 4, "b4"], - [-24, 14, "b4"], - [-25, 18, "b4"], - [-22, 16, "b4"], - [18, 7, "b4"], - [23, 18, "b6"], - ], - slow: [ - [20, 2], - [-22, 22], - ], - slowbig: [ - [-18, 2], - [16, 25], - [-15, 26], - ], - snagtall: [ - [-24, 2, "t3"], - [16, 17, "t1"], - [-18, 10, "t1"], - [-26, 7, "t2"], - [-20, 6, "t3"], - [-29, 4, "t3"], - [22, 3, "t3"], - ], - boost: [ - [2, 19], - [-2, 26], - [2, 32], - ], - bump: [ - [19, 12], - [11, 19], - [-17, 16], - [27, 19], - ], - wall: [ - [14, 16, "f"], - [14, 12, "se"], - [-10, 16, "se"], - [-14, 16, "w"], - [-14, 12, "f"], - [-14, 20, "b"], - [10, 16, "sw"], - [18, 16, "se"], - ], - checkpoint: [[0, 8]], - life: [ - [3, 1], - [-3, 1], - ], - }, - checkpoint2: { - blockbig: [[19, 6]], - block: [[-22, 9]], - checkpoint: [[0, 8]], - slowbig: [ - [-23, 2], - [21, 25], - [-20, 26], - ], - boost: [ - [2, 26], - [-2, 20], - [-2, 33], - ], - snagtall: [ - [-14, 10, "t1"], - [18, 18, "t1"], - [-20, 5, "t3"], - [14, 2, "t3"], - [22, 9, "t3"], - ], - wall: [ - [10, 20, "sw"], - [-18, 20, "b"], - [-14, 16, "f"], - [10, 16, "n"], - [14, 12, "se"], - [-10, 16, "se"], - [-18, 16, "w"], - [14, 20, "f"], - ], - life: [ - [3, 1], - [-3, 1], - ], - snag: [ - [-24, 14, "b4"], - [22, 18, "b4"], - [-15, 3, "b4"], - [22, 1, "b6"], - [-26, 5, "b6"], - [-29, 8, "b4"], - [24, 15, "b4"], - ], - bump: [ - [-27, 11], - [16, 15], - [-13, 19], - [12, 23], - [26, 19], - ], - slow: [ - [28, 9], - [-29, 15], - ], - snagsml: [[-23, 17, "c1"]], - }, - checkpoint3: { - wall: [ - [14, 20, "se"], - [-18, 12, "sw"], - [-14, 20, "f"], - [-10, 16, "n"], - [-14, 8, "n"], - [18, 8, "n"], - [18, 12, "se"], - [10, 20, "sw"], - [10, 16, "n"], - [14, 12, "f"], - [-14, 12, "s"], - [-10, 20, "se"], - [-26, 8, "b"], - ], - snagsml: [[-21, 6, "c1"]], - snag: [ - [23, 8, "b6"], - [-28, 4, "b4"], - [-31, 7, "b4"], - [-27, 13, "b6"], - [-32, 11, "b6"], - [21, 3, "b4"], - [16, 4, "b2"], - ], - snagtall: [ - [21, 14, "t3"], - [-24, 9, "t3"], - [-18, 18, "t1"], - ], - slowbig: [ - [-22, 4], - [19, 25], - ], - life: [ - [-3, 1], - [3, 1], - ], - checkpoint: [[0, 8]], - boost: [[0, 19]], - ramp: [ - [4, 27], - [0, 25], - [-4, 27], - ], - bump: [ - [-14, 16], - [17, 16], - [-28, 10], - ], - slow: [ - [-22, 17], - [27, 7], - ], - block: [[26, 11]], - }, - }, - allNormal: { - large1: { - slowbig: [[7, 21]], - blockbig: [ - [10, 3], - [-16, 12], - ], - wall: [ - [-12, 8, "f"], - [13, 8, "n"], - [-8, 8, "se"], - [5, 12, "sw"], - [13, 12, "se"], - [9, 12, "f"], - [-6, 14, "n"], - [-6, 18, "b"], - ], - bumpbig: [[11, 15]], - snagtall: [ - [-22, 8, "t3"], - [17, 5, "t3"], - [-16, 6, "t1"], - ], - bump: [ - [-19, 7], - [3, 9], - [-5, 11], - [-15, 18], - [-12, 4], - [18, 10], - ], - snag: [ - [19, 4, "b6"], - [7, 8, "b1"], - [-11, 17, "b1"], - [-19, 17, "b6"], - ], - slow: [ - [-23, 20], - [22, 16], - [-26, 6], - [23, 8], - ], - snagsml: [ - [18, 12, "c1"], - [-6, 1, "c2"], - ], - }, - large2: { - blockbig: [[-6, 8]], - bumpbig: [[-7, 18]], - wall: [ - [1, 20, "b"], - [1, 16, "e"], - [-3, 16, "f"], - [9, 12, "se"], - [5, 12, "f"], - [1, 12, "w"], - ], - slowbig: [ - [20, 10], - [-15, 6], - ], - slow: [ - [-12, 23], - [14, 17], - [-22, 16], - [1, 2], - ], - bump: [ - [15, 2], - [-4, 22], - [4, 20], - [6, 15], - [-15, 14], - [-3, 12], - ], - snagtall: [ - [-7, 14, "t1"], - [2, 6, "t3"], - ], - snag: [ - [18, 1, "b4"], - [17, 5, "b4"], - [-3, 2, "b6"], - [8, 18, "b2"], - [-13, 12, "b1"], - [-1, 4, "b4"], - [-9, 3, "b2"], - [14, 3, "b4"], - ], - }, - large3: { - snagtall: [ - [21, 5, "t3"], - [-3, 7, "t3"], - ], - snag: [ - [8, 12, "b6"], - [-10, 3, "b4"], - [17, 4, "b4"], - [-5, 6, "b4"], - [-10, 8, "b1"], - [11, 8, "b4"], - [-19, 9, "b4"], - [-6, 11, "b4"], - [5, 14, "b4"], - [-5, 14, "b2"], - [-11, 18, "b4"], - [9, 18, "b2"], - [14, 21, "b4"], - ], - snagsml: [ - [12, 11, "c1"], - [11, 2, "c2"], - [-15, 10, "c1"], - ], - bumpbig: [ - [-6, 3], - [-14, 7], - ], - slow: [ - [-22, 3], - [23, 3], - [-2, 22], - ], - bump: [ - [16, 8], - [-9, 16], - [5, 19], - [7, 10], - ], - slowbig: [ - [-18, 14], - [17, 15], - ], - }, - large4: { - bump: [ - [10, 6], - [-11, 11], - [14, 10], - ], - snag: [ - [-10, 14, "b6"], - [-10, 17, "b2"], - [10, 15, "b4"], - [12, 12, "b1"], - [11, 8, "b4"], - [-12, 4, "b4"], - [-9, 2, "b4"], - [9, 1, "b4"], - [-4, 6, "b6"], - ], - slow: [ - [-4, 3], - [-4, 22], - [10, 21], - [17, 15], - [-17, 8], - ], - slowbig: [[-15, 17]], - blockbig: [[-4, 10]], - snagsml: [[13, 16, "c1"]], - snagtall: [ - [-15, 12, "t3"], - [13, 5, "t3"], - ], - bumpbig: [[-2, 16]], - }, - large5: { - bump: [ - [14, 12], - [-9, 3], - [-3, 5], - [-10, 15], - ], - slow: [ - [19, 5], - [-9, 9], - [-17, 13], - [14, 17], - ], - blockbig: [[7, 5]], - wall: [ - [4, 10, "n"], - [-8, 14, "sw"], - [0, 14, "f"], - [8, 14, "se"], - [4, 14, "s"], - ], - slowbig: [[-6, 21]], - snag: [ - [-13, 4, "b4"], - [1, 2, "b6"], - [-15, 2, "b4"], - [10, 10, "b1"], - [-2, 17, "b1"], - ], - snagtall: [ - [-4, 12, "t1"], - [14, 7, "t3"], - [-1, 8, "t3"], - ], - snagsml: [ - [5, 16, "c1"], - [-17, 5, "c1"], - ], - }, - large6: { - snagtall: [ - [10, 8, "t3"], - [-10, 7, "t3"], - ], - spin: [ - [-3, 1], - [5, 12], - ], - slow: [ - [5, 3], - [-24, 6], - [25, 8], - [-2, 15], - ], - bump: [ - [-7, 7], - [-12, 4], - [-4, 4], - [20, 6], - [-14, 12], - [16, 13], - [6, 16], - [-3, 23], - ], - bumpbig: [[10, 8]], - slowbig: [ - [-15, 19], - [14, 21], - ], - snag: [ - [-10, 14, "b1"], - [-10, 2, "b4"], - [-6, 4, "b4"], - [-15, 6, "b3"], - [6, 6, "b4"], - [16, 8, "b1"], - [-19, 9, "b4"], - [19, 11, "b4"], - [9, 13, "b4"], - [-3, 19, "b4"], - [0, 22, "b1"], - [-12, 11, "b6"], - [12, 11, "b6"], - [10, 4, "b2"], - ], - snagsml: [ - [-5, 8, "c1"], - [-18, 4, "c1"], - ], - }, - medium1: { - snagsml: [[8, 1, "c1"]], - bump: [ - [10, 14], - [-10, 10], - ], - wall: [ - [-2, 14, "sw"], - [6, 14, "se"], - [2, 14, "f"], - [-2, 10, "n"], - ], - slowbig: [[4, 6]], - slow: [[-2, 2]], - snagtall: [[-7, 4, "t3"]], - snag: [ - [8, 16, "b2"], - [-6, 12, "b1"], - [-9, 8, "b6"], - [4, 10, "b4"], - [5, 1, "b1"], - ], - }, - medium2: { - snag: [ - [12, 5, "b6"], - [7, 14, "b1"], - [10, 3, "b2"], - [-5, 3, "b4"], - [-9, 4, "b4"], - [-2, 7, "b4"], - [2, 9, "b1"], - [-8, 11, "b4"], - [-10, 15, "b4"], - [-4, 15, "b4"], - ], - bump: [ - [-1, 4], - [-11, 12], - [5, 15], - ], - snagsml: [[-6, 13, "c1"]], - snagtall: [ - [-7, 5, "t3"], - [14, 1, "t3"], - ], - slow: [ - [12, 10], - [0, 14], - ], - }, - medium3: { - slow: [ - [13, 8], - [-3, 16], - [-15, 14], - ], - snag: [ - [-11, 18, "b4"], - [3, 17, "b2"], - [0, 10, "b4"], - [-10, 10, "b6"], - [7, 16, "b6"], - ], - snagtall: [ - [4, 0, "t3"], - [-13, 7, "t3"], - [-2, 4, "t1"], - ], - spin: [ - [11, 3], - [11, 13], - [9, 8], - ], - bump: [ - [-9, 4], - [2, 9], - ], - wall: [ - [-11, 6, "b"], - [6, 6, "e"], - [2, 6, "f"], - [6, 10, "n"], - [2, 14, "sw"], - [6, 14, "se"], - ], - snagsml: [[-9, 16, "c1"]], - }, - medium4: { - wall: [ - [-8, 10, "b"], - [-8, 6, "e"], - ], - snagtall: [ - [-12, 4, "t1"], - [1, 6, "t3"], - ], - bump: [ - [-16, 7], - [5, 11], - [17, 6], - ], - snag: [ - [10, 7, "b1"], - [12, 5, "b4"], - [4, 4, "b4"], - [3, 13, "b4"], - [-14, 9, "b4"], - [-1, 5, "b6"], - [12, 9, "b2"], - ], - slow: [ - [9, 3], - [14, 13], - [-12, 14], - ], - }, - medium5: { - snagsml: [[4, 16, "c1"]], - blockbig: [[-5, 7]], - slow: [ - [-18, 6], - [14, 10], - ], - bump: [ - [8, 7], - [-11, 10], - [9, 14], - ], - wall: [ - [-2, 13, "sw"], - [2, 13, "f"], - ], - slowbig: [[-9, 18]], - snagtall: [ - [1, 3, "t3"], - [6, 11, "t1"], - [-6, 10, "t3"], - ], - snag: [ - [-10, 14, "b4"], - [6, 3, "b4"], - [3, 8, "b6"], - ], - }, - small1: { - spin: [[2, 1]], - slowbig: [ - [-4, 4], - [11, 9], - ], - bump: [[7, 4]], - blockbig: [[-4, 8]], - slow: [[3, 14]], - snagtall: [ - [-12, 7, "t3"], - [-6, 3, "t3"], - ], - snag: [ - [11, 3, "b4"], - [-11, 11, "b6"], - ], - }, - small2: { - spin: [[-11, 3]], - bumpbig: [[-2, 2]], - bump: [[4, 6]], - slow: [[9, 9]], - slowbig: [[-5, 10]], - snag: [ - [-1, 6, "b4"], - [8, 3, "b4"], - [1, 4, "b1"], - [-6, 4, "b2"], - ], - }, - small3: { - bumpbig: [[2, 10]], - snagtall: [[-2, 5, "t3"]], - snag: [[8, 4, "b4"]], - wall: [[-6, 8, "b"]], - slow: [[-11, 10]], - bump: [ - [5, 3], - [-8, 5], - ], - }, - small4: { - slowbig: [[7, 9]], - bump: [[-3, 4]], - slow: [[-13, 4]], - snag: [ - [0, 10, "b1"], - [-10, 7, "b4"], - [3, 6, "b4"], - [1, 4, "b4"], - [-8, 4, "b2"], - [-9, 2, "b4"], - [8, 2, "b4"], - ], - }, - small5: { - snag: [ - [-7, 11, "b4"], - [-10, 9, "b4"], - [11, 7, "b4"], - [-4, 6, "b4"], - ], - block: [ - [7, 4], - [-7, 2], - ], - bump: [ - [-2, 10], - [8, 8], - [-8, 7], - [12, 3], - ], - spin: [[2, 1]], - }, - small6: { - slow: [ - [-2, 2], - [2, 8], - [-4, 11], - ], - snag: [ - [6, 2, "b4"], - [-7, 3, "b4"], - [-4, 4, "b1"], - [4, 5, "b4"], - [8, 7, "b4"], - [-6, 7, "b4"], - [3, 11, "b2"], - ], - bump: [ - [10, 4], - [-10, 6], - ], - }, - small7: { - snag: [ - [-6, 9, "b4"], - [6, 8, "b4"], - [0, 5, "b4"], - [5, 2, "b4"], - [-8, 2, "b4"], - ], - slow: [ - [2, 10], - [-2, 8], - [-8, 6], - [6, 6], - [-4, 2], - ], - }, - small8: { - wall: [ - [-2, 10, "sw"], - [2, 10, "se"], - [2, 6, "n"], - ], - bump: [ - [-8, 8], - [6, 4], - ], - snag: [ - [7, 8, "b4"], - [-4, 6, "b1"], - [-2, 2, "b4"], - ], - }, - small9: { - snag: [ - [5, 9, "b4"], - [-6, 2, "b4"], - ], - slow: [ - [-14, 8], - [9, 3], - ], - wall: [ - [4, 2, "n"], - [0, 10, "se"], - [-4, 10, "s"], - [-8, 10, "sw"], - [-8, 6, "w"], - [4, 6, "se"], - [0, 6, "f"], - ], - snagtall: [[-4, 4, "t1"]], - bump: [ - [-10, 3], - [8, 9], - ], - slowbig: [[-5, 16]], - }, - small10: { - slow: [ - [12, 10], - [-9, 9], - ], - bump: [ - [6, 8], - [-6, 4], - ], - snag: [ - [2, 9, "b4"], - [-3, 8, "b4"], - [-3, 4, "b4"], - [6, 4, "b4"], - [2, 2, "b4"], - ], - snagtall: [[1, 4, "t3"]], - }, - small11: { - snagsml: [[-6, 2, "c1"]], - snag: [ - [-7, 8, "b4"], - [2, 1, "b4"], - ], - wall: [ - [-4, 6, "sw"], - [0, 6, "f"], - [4, 6, "se"], - ], - bump: [[0, 8]], - snagtall: [[6, 7, "t3"]], - }, - small12: { - slowbig: [[4, 9]], - blockbig: [[1, 4]], - slow: [ - [-9, 4], - [6, 2], - ], - snag: [ - [-8, 7, "b4"], - [9, 2, "b4"], - [-5, 1, "b4"], - ], - }, - small13: { - wall: [ - [-4, 10, "b"], - [4, 6, "se"], - [0, 6, "f"], - [-4, 6, "w"], - ], - snag: [ - [6, 9, "b4"], - [0, 8, "b4"], - [3, 2, "b4"], - ], - bump: [ - [2, 10], - [-8, 8], - [-2, 2], - ], - spin: [[7, 1]], - snagsml: [[-9, 3, "c2"]], - }, - small14: { - snag: [ - [-5, 5, "b3"], - [2, 6, "b4"], - ], - bump: [ - [-9, 8], - [6, 6], - [3, 2], - ], - bumpbig: [ - [-3, 4], - [-1, 10], - ], - snagsml: [[-3, 7, "c1"]], - }, - small15: { - snag: [ - [6, 1, "b4"], - [-5, 2, "b4"], - [10, 3, "b2"], - [-5, 6, "b1"], - [-6, 9, "b4"], - [-8, 4, "b6"], - ], - bump: [ - [7, 4], - [-2, 4], - [-10, 8], - ], - }, - small16: { - bump: [ - [-4, 6], - [4, 4], - ], - snag: [ - [-6, 8, "b2"], - [-1, 5, "b4"], - [-9, 4, "b4"], - [7, 3, "b4"], - ], - snagsml: [[4, 7, "c1"]], - snagtall: [[-4, 1, "t3"]], - }, - tiny1: { - snag: [ - [-4, 3, "b4"], - [4, 2, "b1"], - ], - bumpbig: [[1, 5]], - }, - tiny2: { - snag: [ - [2, 7, "b4"], - [0, 4, "b2"], - ], - bump: [ - [-4, 4], - [4, 2], - ], - }, - tiny3: { - spin: [[-3, 7]], - snag: [ - [0, 3, "b2"], - [3, 5, "b4"], - ], - bumpbig: [[0, 3]], - }, - tiny4: { - snag: [[4, 2, "b4"]], - bump: [ - [-1, 4], - [4, 5], - ], - snagtall: [[-3, 3, "t3"]], - }, - tiny5: { - spin: [[-2, 6]], - slow: [[-4, 4]], - bump: [ - [4, 6], - [2, 2], - ], - }, - tiny6: { - bumpbig: [[0, 6]], - wall: [[2, 4, "b"]], - bump: [[0, 2]], - }, - tiny7: { - snag: [ - [4, 5, "b4"], - [-1, 4, "b2"], - [0, 1, "b4"], - ], - snagtall: [[-4, 1, "t3"]], - }, - tiny8: { - snag: [ - [1, 4, "b6"], - [-4, 2, "b4"], - [-2, 6, "b1"], - [5, 2, "b1"], - [6, 6, "b4"], - ], - }, - tiny9: { - snag: [ - [0, 2, "b4"], - [-3, 3, "b2"], - [5, 3, "b4"], - [1, 5, "b2"], - ], - bump: [ - [5, 6], - [-4, 6], - ], - }, - tiny10: { - snagtall: [[0, 3, "t3"]], - snag: [ - [4, 2, "b4"], - [2, 6, "b4"], - [-3, 2, "b6"], - ], - bump: [[-3, 6]], - }, - tiny11: { - bump: [[4, 8]], - wall: [ - [0, 6, "se"], - [-4, 6, "sw"], - ], - snag: [[-5, 2, "b4"]], - spin: [[0, 1]], - snagsml: [[5, 3, "c2"]], - }, - tiny12: { - snag: [ - [-4, 1, "b6"], - [4, 2, "b4"], - [0, 3, "b1"], - [-5, 5, "b4"], - ], - bump: [[2, 6]], - }, - tiny13: { - snag: [ - [3, 6, "b4"], - [-4, 4, "b4"], - [0, 3, "b1"], - [4, 1, "b3"], - ], - snagtall: [[-3, 0, "t3"]], - }, - tiny14: { - snag: [ - [-4, 1, "b4"], - [4, 3, "b4"], - [-7, 4, "b6"], - ], - slowbig: [[-2, 4]], - }, - tiny15: { - bump: [[7, 9]], - snagsml: [[3, 9, "c1"]], - wall: [ - [4, 6, "f"], - [8, 6, "se"], - [-4, 6, "sw"], - [8, 2, "n"], - ], - snagtall: [[0, 4, "t1"]], - snag: [[-5, 2, "b4"]], - slow: [[-8, 10]], - }, - tiny16: { - snag: [ - [3, 4, "b4"], - [0, 2, "b1"], - ], - slow: [ - [-2, 6], - [4, 2], - [-4, 2], - ], - }, - tiny17: { - snagtall: [[-1, 3, "t3"]], - bump: [[1, 2]], - snag: [ - [4, 2, "b4"], - [2, 6, "b1"], - [-3, 1, "b4"], - ], - }, - tiny18: { - bump: [[2, 6]], - snag: [ - [4, 1, "b4"], - [0, 3, "b1"], - [-5, 2, "b4"], - ], - snagsml: [[-2, 5, "c1"]], - slow: [[-3, 0]], - }, - }, - allPassive: { - passive1: { - spiral: [[0, 6]], - slow: [ - [6, 12], - [-7, 4], - ], - spin: [ - [6, 7], - [-1, 10], - [-3, 1], - [-7, 7], - [4, 2], - ], - }, - passive2: { - bumpbig: [[1, 7]], - bump: [ - [11, 9], - [-8, 10], - [5, 2], - [-10, 3], - ], - spin: [ - [-6, 4], - [10, 5], - ], - slowbig: [[3, 13]], - slow: [ - [14, 3], - [-1, 2], - [-13, 7], - ], - }, - passive3: { - slowbig: [[-1, 14]], - bumpbig: [[1, 6]], - slow: [ - [9, 4], - [1, 10], - [-11, 10], - [-9, 5], - ], - bump: [ - [-4, 4], - [-6, 8], - [7, 9], - [2, 3], - ], - }, - passive4: { - slowbig: [ - [1, 13], - [4, 2], - ], - bumpbig: [[-2, 7]], - spin: [ - [10, 4], - [-12, 2], - ], - bump: [ - [4, 5], - [-3, 4], - [5, 9], - ], - slow: [ - [-7, 3], - [-9, 10], - [10, 9], - ], - }, - passive5: { - slow: [ - [-3, 7], - [-10, 9], - ], - slowbig: [ - [-2, 13], - [6, 10], - [3, 2], - ], - spiral: [ - [-8, 4], - [7, 6], - ], - }, - }, - zigzagGates: { - gateFirst: { - guide: [ - [-13, -10], - [13, -10], - [5, 8], - [-9, -6], - [-8, -4], - [8, 2], - [8, -4], - [-11, -8], - [7, 5], - [9, -6], - [-9, 2], - [11, -8], - ], - marker: [ - [8, -1], - [-8, -1], - ], - gate: [[0, 1]], - }, - gateLeft: { - guide: [ - [-7, 5], - [-5, -10], - [-8, -4], - [9, -6], - [9, 2], - [8, -4], - [-7, -7], - [-8, 2], - [-5, 8], - [-2, 12], - ], - marker: [ - [8, -1], - [-8, -1], - ], - gate: [[0, 1]], - }, - gateRight: { - guide: [ - [7, -7], - [2, 12], - [7, 5], - [-9, 2], - [-8, -4], - [8, -4], - [8, 2], - [5, 8], - [-9, -6], - [5, -10], - ], - marker: [ - [8, -1], - [-8, -1], - ], - gate: [[0, 1]], - }, - }, - zigzagGateScenes: { - center1: { - snag: [ - [8, 9, "b4"], - [-10, 9, "b4"], - [-4, 7, "b4"], - [16, -1, "b4"], - [-16, -3, "b4"], - [0, -7, "b4"], - [6, -9, "b4"], - [-6, -11, "b4"], - ], - }, - center2: { - snag: [ - [4, 10, "b4"], - [-2, 8, "b4"], - [-16, 6, "b4"], - [16, 4, "b4"], - [6, -8, "b4"], - [-2, -10, "b4"], - ], - }, - center3: { - snag: [ - [0, -11, "b4"], - [6, -10, "b4"], - [-4, -10, "b4"], - [14, -2, "b4"], - [-16, -2, "b4"], - [16, 2, "b4"], - [-4, 8, "b4"], - [4, 10, "b4"], - ], - }, - center4: { - snag: [ - [-2, 9, "b4"], - [14, 5, "b4"], - [-16, 1, "b4"], - [-4, -9, "b4"], - [6, -11, "b4"], - ], - }, - center5: { - snag: [ - [-2, 10, "b4"], - [6, 10, "b4"], - [0, 8, "b4"], - [-14, 2, "b4"], - [14, 0, "b4"], - [-16, -2, "b4"], - [16, -4, "b4"], - [2, -10, "b4"], - [-4, -12, "b4"], - ], - }, - center6: { - snag: [ - [-14, 2, "b4"], - [-16, -1, "b4"], - [-2, 9, "b4"], - [12, 1, "b4"], - [14, -5, "b4"], - [-6, -9, "b4"], - [2, -11, "b4"], - ], - }, - }, - timetrialScenes: { - start: { - snagtall: [ - [-17, 45, "t3"], - [16, 47, "t3"], - [-20, 22, "t1"], - ], - snag: [ - [22, 20, "b4"], - [-14, 20, "b4"], - [-28, 22, "b4"], - [18, 26, "b4"], - [-20, 26, "b4"], - [30, 28, "b4"], - [-34, 28, "b4"], - [-16, 30, "b4"], - [20, 32, "b4"], - [30, 34, "b4"], - [-30, 36, "b4"], - [22, 40, "b4"], - [-20, 56, "b2"], - ], - bump: [ - [-26, 20], - [28, 24], - [14, 26], - [-16, 26], - [-28, 28], - [20, 30], - [-22, 34], - [26, 42], - [10, 48], - [22, 50], - [-8, 50], - [-26, 52], - [-12, 56], - [-16, 58], - ], - wall: [ - [12, 24, "sw"], - [16, 24, "f"], - [20, 24, "se"], - [-12, 24, "se"], - [-16, 24, "f"], - [-24, 24, "w"], - [24, 28, "n"], - [-24, 28, "n"], - [16, 30, "b"], - [24, 32, "sw"], - [28, 32, "f"], - [32, 32, "se"], - [-20, 32, "se"], - [-24, 32, "s"], - [-28, 32, "f"], - [-32, 32, "sw"], - ], - ramp: [ - [14, 40], - [-14, 40], - ], - spin: [ - [-12, 44], - [12, 52], - ], - blockbig: [ - [-16, 50], - [17, 44], - ], - slow: [ - [-28, 50], - [28, 52], - [-4, 52], - [6, 54], - [-26, 58], - [-21, 45], - ], - snagsml: [[-24, 46, "c5"]], - coin: [[0, 60]], - }, - intro: { - ramp: [[0, 54]], - coin: [[22, 44]], - boost: [[-22, 44]], - bumpbig: [ - [-20, 20], - [18, 18], - ], - slow: [ - [8, 46], - [-4, 44], - [-34, 42], - [34, 36], - [8, 36], - [30, 34], - [-18, 24], - [18, 22], - [-32, 22], - [-12, 20], - [-30, 18], - [24, 16], - ], - spin: [ - [20, 26], - [-22, 26], - [-10, 20], - [32, 18], - [-32, 18], - [12, 14], - ], - bump: [ - [-8, 62], - [8, 60], - [-30, 48], - [12, 46], - [-8, 46], - [-34, 46], - [30, 44], - [-14, 44], - [32, 40], - [26, 34], - [-26, 34], - [-14, 24], - [30, 22], - [12, 22], - [-28, 22], - [28, 18], - [-2, 10], - [6, 8], - [-6, 6], - [2, 4], - ], - block: [[-9, 38]], - snagtall: [[14, 37, "t3"]], - snagsml: [ - [30, 36, "c2"], - [-4, 6, "c2"], - [10, 42, "c4"], - [-28, 38, "c1"], - ], - snag: [ - [-4, 60, "b2"], - [1, 6, "b2"], - [4, 60, "b4"], - [-2, 58, "b4"], - [16, 42, "b4"], - [-30, 42, "b4"], - [-8, 42, "b4"], - [26, 40, "b4"], - [-16, 40, "b4"], - [12, 36, "b4"], - [-14, 36, "b4"], - [-10, 34, "b4"], - [2, 8, "b4"], - [-2, 4, "b4"], - [24, 36, "b6"], - [-26, 36, "b3"], - ], - }, - act1a: { - snagsml: [ - [-18, 11, "c1"], - [5, 46, "c1"], - ], - bump: [ - [-17, 32], - [-6, 57], - [-14, 56], - [10, 60], - [16, 56], - [6, 50], - [-34, 48], - [30, 48], - [-4, 46], - [-32, 42], - [-22, 40], - [-12, 40], - [34, 40], - [10, 38], - [-30, 34], - [32, 34], - [18, 30], - [-26, 24], - [30, 24], - [14, 18], - [-20, 16], - [20, 16], - [-10, 14], - [14, 12], - [-14, 10], - ], - snag: [ - [7, 55, "b6"], - [12, 58, "b4"], - [14, 56, "b2"], - [-6, 48, "b4"], - [-10, 40, "b4"], - [12, 40, "b4"], - [-18, 34, "b2"], - [18, 28, "b4"], - [16, 16, "b4"], - [-16, 14, "b4"], - [-12, 12, "b4"], - [18, 12, "b4"], - [-7, 54, "b6"], - [-9, 58, "b1"], - [12, 14, "b1"], - ], - wall: [ - [-26, 48, "b"], - [-10, 52, "se"], - [-14, 52, "sw"], - [10, 52, "sw"], - [14, 52, "se"], - [-10, 48, "n"], - [10, 48, "n"], - [26, 48, "b"], - [-26, 44, "n"], - [-6, 44, "se"], - [-10, 44, "w"], - [6, 44, "sw"], - [10, 44, "e"], - [26, 44, "n"], - [-26, 40, "n"], - [-6, 40, "n"], - [6, 40, "n"], - [26, 40, "n"], - [-22, 36, "se"], - [-26, 36, "w"], - [-6, 36, "n"], - [6, 36, "n"], - [22, 36, "sw"], - [26, 36, "e"], - [-22, 32, "n"], - [-6, 32, "n"], - [6, 32, "n"], - [22, 32, "n"], - [-18, 28, "se"], - [-22, 28, "w"], - [-6, 28, "n"], - [6, 28, "n"], - [-18, 24, "n"], - ], - life: [[-20, 48]], - bumpbig: [ - [32, 52], - [-32, 30], - [32, 30], - [-29, 54], - ], - coin: [[24, 14]], - spiral: [ - [6, 8], - [-6, 6], - ], - }, - act1b: { - snag: [ - [4, 32, "b4"], - [8, 36, "b2"], - [-8, 46, "b1"], - [-6, 44, "b7"], - [-10, 40, "b4"], - [-22, 38, "b4"], - [-4, 36, "b3"], - [-28, 28, "b2"], - [28, 8, "b4"], - [2, 6, "b4"], - [0, 4, "b4"], - [11, 34, "b6"], - [26, 27, "b2"], - ], - bump: [ - [-3, 40], - [0, 60], - [2, 50], - [-24, 48], - [-32, 46], - [34, 46], - [-30, 42], - [6, 40], - [20, 40], - [32, 38], - [-20, 36], - [-8, 34], - [-32, 34], - [30, 34], - [8, 32], - [-30, 30], - [-22, 24], - [24, 24], - [-34, 24], - [30, 10], - [-28, 10], - [0, 8], - [32, 25], - ], - snagtall: [ - [-6, 37, "t3"], - [10, 39, "t3"], - [-22, 30, "t1"], - [0, 56, "t1"], - ], - spiral: [ - [-2, 26], - [6, 22], - ], - bumpbig: [ - [32, 18], - [-32, 16], - ], - ramp: [ - [-16, 14], - [16, 14], - ], - wall: [ - [-4, 58, "sw"], - [4, 58, "se"], - [4, 54, "n"], - [-26, 44, "sw"], - [-22, 44, "se"], - [26, 44, "se"], - [22, 44, "sw"], - [-26, 40, "n"], - [26, 40, "n"], - [-26, 36, "n"], - [22, 36, "sw"], - [26, 36, "e"], - [-18, 32, "se"], - [-26, 32, "w"], - [22, 32, "n"], - [-18, 28, "n"], - [18, 28, "s"], - [14, 28, "sw"], - [22, 28, "e"], - [-18, 24, "w"], - [-10, 24, "se"], - [-14, 24, "f"], - [18, 24, "n"], - [-22, 20, "sw"], - [-18, 20, "e"], - [22, 20, "se"], - [18, 20, "w"], - [-22, 16, "n"], - [22, 16, "n"], - [-22, 12, "n"], - [22, 12, "n"], - ], - coin: [[3, 36]], - }, - act2a: { - snag: [ - [8, 41, "b2"], - [7, 46, "b6"], - [12, 54, "b2"], - [28, 52, "b2"], - [30, 48, "b4"], - [28, 42, "b4"], - [12, 42, "b4"], - [24, 38, "b4"], - [-6, 26, "b4"], - [-13, 18, "b4"], - [5, 12, "b6"], - [10, 44, "b4"], - [-6, 55, "b4"], - ], - snagtall: [ - [30, 43, "t2"], - [-16, 22, "t1"], - [16, 10, "t3"], - [9, 47, "t3"], - ], - snagsml: [ - [10, 15, "c4"], - [12, 12, "c5"], - [9, 11, "c5"], - [25, 40, "c1"], - ], - blockbig: [[10, 7]], - boost: [[24, 48]], - spin: [ - [10, 38], - [20, 34], - [6, 32], - [-6, 30], - ], - wall: [ - [4, 40, "b"], - [4, 36, "e"], - [0, 36, "sw"], - [-10, 36, "b"], - [-10, 32, "n"], - [-8, 24, "se"], - [-12, 24, "f"], - ], - bumpbig: [ - [-18, 46], - [32, 38], - [-20, 38], - [32, 30], - [-24, 30], - [-26, 22], - [-28, 14], - ], - bump: [ - [12, 58], - [8, 56], - [2, 56], - [34, 54], - [-22, 54], - [4, 52], - [-20, 50], - [36, 48], - [34, 42], - [-12, 42], - [-18, 42], - [0, 40], - [-28, 40], - [8, 36], - [32, 34], - [-22, 34], - [-28, 34], - [-14, 32], - [-36, 30], - [-32, 28], - [32, 26], - [-12, 26], - [-26, 26], - [28, 24], - [34, 24], - [34, 20], - [-36, 18], - [-22, 18], - [-30, 18], - [30, 16], - [-36, 12], - [-28, 10], - [-22, 8], - [-26, 6], - ], - coin: [[14, 19]], - }, - act2b: { - snagtall: [ - [-20, 26, "t1"], - [4, 6, "t1"], - [6, 48, "t1"], - [-8, 46, "t2"], - ], - wall: [ - [-4, 4, "e"], - [-8, 4, "sw"], - [-24, 6, "se"], - [12, 8, "e"], - [8, 8, "f"], - [0, 8, "f"], - [-4, 8, "sw"], - [-32, 10, "w"], - [-28, 10, "se"], - [12, 12, "b"], - [-32, 14, "n"], - [-32, 18, "b"], - [-12, 28, "se"], - [-16, 28, "f"], - [-4, 42, "b"], - [2, 50, "f"], - [-2, 50, "w"], - [-26, 50, "n"], - [-2, 54, "n"], - [-26, 54, "b"], - [-2, 58, "se"], - [-6, 58, "sw"], - [-28, 6, "w"], - ], - bump: [ - [16, 6], - [-10, 8], - [-36, 8], - [18, 12], - [6, 16], - [12, 16], - [-28, 18], - [8, 20], - [32, 20], - [4, 22], - [10, 24], - [24, 24], - [36, 28], - [12, 30], - [8, 32], - [-16, 32], - [2, 34], - [0, 42], - [6, 42], - [-6, 52], - [-30, 52], - [30, 54], - [4, 54], - [-22, 54], - [-28, 56], - [32, 60], - [-8, 60], - [-26, 60], - [24, 62], - ], - snag: [ - [-6, 10, "b4"], - [32, 12, "b4"], - [-36, 12, "b4"], - [-26, 14, "b4"], - [34, 16, "b4"], - [32, 22, "b4"], - [28, 24, "b4"], - [34, 24, "b4"], - [-12, 24, "b4"], - [-8, 26, "b1"], - [-24, 26, "b1"], - [30, 26, "b4"], - [32, 28, "b4"], - [26, 28, "b4"], - [-14, 34, "b4"], - [30, 36, "b4"], - [-10, 44, "b4"], - [-24, 46, "b4"], - [32, 56, "b4"], - [30, 58, "b4"], - [26, 60, "b4"], - ], - ramp: [ - [-16, 12], - [26, 16], - ], - bumpbig: [ - [4, 28], - [4, 38], - [0, 46], - ], - coin: [[-30, 34]], - life: [[24, 34]], - }, - act3a: { - blockbig: [[0, 52]], - block: [ - [-36, 34], - [-14, 11], - ], - ramp: [ - [20, 6], - [8, 6], - [-18, 6], - [-10, 30], - [14, 54], - [-24, 54], - ], - bumpbig: [ - [-8, 8], - [24, 24], - [-6, 34], - [36, 42], - [-36, 46], - [36, 58], - [-10, 58], - ], - boost: [ - [-10, 22], - [26, 56], - ], - snagsml: [[25, 27, "c1"]], - snagtall: [ - [0, 30, "t2"], - [-23, 12, "t3"], - [3, 55, "t3"], - [32, 30, "t3"], - [30, 26, "t3"], - [-31, 37, "t3"], - ], - bump: [ - [-26, 4], - [-20, 12], - [-22, 18], - [-4, 26], - [-34, 26], - [22, 28], - [-18, 32], - [-32, 32], - [32, 36], - [-8, 38], - [0, 46], - [36, 54], - [20, 54], - [-36, 54], - [-2, 60], - [-10, 15], - [-35, 39], - ], - snag: [ - [28, 30, "b6"], - [-8, 51, "b6"], - [-24, 2, "b4"], - [-8, 6, "b4"], - [-26, 8, "b4"], - [-28, 10, "b4"], - [-8, 12, "b4"], - [-16, 14, "b4"], - [28, 18, "b4"], - [12, 18, "b4"], - [22, 20, "b4"], - [0, 24, "b4"], - [-36, 28, "b4"], - [-2, 28, "b4"], - [2, 28, "b4"], - [-34, 30, "b4"], - [-20, 30, "b4"], - [-6, 30, "b4"], - [36, 32, "b4"], - [26, 34, "b4"], - [28, 36, "b4"], - [-6, 36, "b4"], - [-36, 42, "b4"], - [32, 44, "b4"], - [34, 48, "b4"], - [-34, 48, "b4"], - [2, 48, "b4"], - [32, 50, "b4"], - [18, 56, "b4"], - [-8, 56, "b4"], - [-4, 58, "b4"], - [36, 60, "b4"], - [-6, 49, "b4"], - [10, 16, "b6"], - ], - }, - act3b: { - snag: [ - [31, 50, "b6"], - [-8, 34, "b3"], - [-33, 32, "b6"], - [-22, 60, "b4"], - [-26, 58, "b4"], - [32, 58, "b4"], - [-28, 56, "b4"], - [26, 56, "b4"], - [-36, 54, "b4"], - [-24, 54, "b4"], - [-34, 50, "b4"], - [14, 48, "b4"], - [-16, 44, "b4"], - [12, 44, "b4"], - [36, 42, "b4"], - [34, 36, "b4"], - [-36, 34, "b4"], - [0, 32, "b4"], - [-32, 24, "b4"], - [28, 24, "b4"], - [32, 20, "b4"], - [-34, 18, "b4"], - [0, 16, "b4"], - [30, 16, "b4"], - [-16, 14, "b4"], - [34, 14, "b4"], - [26, 12, "b4"], - [-24, 10, "b4"], - [12, 10, "b4"], - [22, 10, "b4"], - [16, 8, "b4"], - [30, 8, "b4"], - [-20, 6, "b4"], - [-26, 4, "b2"], - ], - bump: [ - [32, 46], - [-32, 52], - [8, 48], - [16, 46], - [-10, 38], - [24, 38], - [-30, 34], - [-4, 32], - [4, 30], - [-32, 28], - [30, 26], - [-2, 20], - [-6, 18], - [28, 18], - [-36, 16], - [22, 16], - [-18, 12], - [32, 10], - [34, 6], - ], - snagsml: [ - [18, 42, "c2"], - [15, 13, "c1"], - ], - snagtall: [ - [-36, 27, "t3"], - [10, 45, "t3"], - [20, 11, "t3"], - [34, 46, "t3"], - ], - life: [[-26, 46]], - coin: [[22, 22]], - bumpbig: [ - [-32, 62], - [34, 60], - [30, 54], - [-16, 42], - [-38, 22], - [32, 18], - [-20, 8], - ], - ramp: [ - [-18, 38], - [14, 38], - [-4, 14], - [28, 4], - ], - }, - act4a: { - snagsml: [ - [6, 57, "c1"], - [14, 23, "c1"], - ], - snag: [ - [-16, 52, "b6"], - [-26, 5, "b4"], - [42, 52, "b4"], - [38, 46, "b4"], - [31, 42, "b4"], - [-34, 52, "b4"], - [-37, 49, "b4"], - [-12, 62, "b4"], - [14, 58, "b4"], - [-14, 58, "b4"], - [38, 54, "b4"], - [-10, 50, "b4"], - [42, 50, "b4"], - [32, 46, "b4"], - [-34, 46, "b4"], - [30, 44, "b4"], - [-32, 44, "b4"], - [12, 42, "b4"], - [-34, 42, "b4"], - [-42, 42, "b4"], - [34, 40, "b4"], - [-36, 40, "b4"], - [-40, 40, "b4"], - [16, 38, "b4"], - [10, 36, "b4"], - [6, 34, "b4"], - [18, 30, "b4"], - [-8, 30, "b4"], - [-10, 26, "b4"], - [-32, 26, "b4"], - [-14, 24, "b4"], - [10, 22, "b4"], - [-10, 20, "b4"], - [-14, 20, "b4"], - [-32, 16, "b4"], - [-12, 8, "b4"], - [-28, 8, "b4"], - [6, 6, "b4"], - [-10, 6, "b4"], - [34, 4, "b4"], - [30, 2, "b4"], - [-12, 2, "b4"], - [-41, 45, "b4"], - [-39, 47, "b4"], - [-32, 54, "b4"], - [40, 48, "b4"], - [35, 47, "b4"], - [-26, 14, "b6"], - [2, 8, "b6"], - [8, 61, "b3"], - [-13, 54, "b1"], - ], - snagtall: [ - [14, 33, "t3"], - [-12, 27, "t3"], - [-30, 5, "t3"], - [7, 23, "t2"], - [32, 10, "t3"], - ], - bump: [ - [5, 24], - [-43, 42], - [-34, 49], - [10, 62], - [4, 60], - [-16, 60], - [10, 56], - [-10, 56], - [40, 54], - [-30, 54], - [-12, 48], - [36, 46], - [-42, 46], - [36, 40], - [-38, 40], - [14, 40], - [6, 38], - [18, 34], - [4, 32], - [10, 28], - [16, 26], - [-16, 26], - [-34, 24], - [18, 22], - [-8, 22], - [-30, 18], - [-36, 18], - [30, 10], - [-14, 6], - [6, 4], - [-8, 4], - [-28, 4], - [29, 42], - [-17, 55], - ], - boost: [ - [18, 46], - [-28, 40], - ], - bumpbig: [ - [-10, 32], - [-30, 12], - [32, 6], - ], - ramp: [ - [24, 22], - [-24, 22], - [0, 4], - ], - }, - act4b: { - slowbig: [ - [-16, 42], - [-14, 32], - [17, 43], - [30, 39], - [-32, 26], - [-31, 37], - ], - ramp: [ - [22, 18], - [0, 8], - [-22, 12], - ], - snag: [ - [15, 34, "b4"], - [-9, 58, "b6"], - [-6, 10, "b4"], - [34, 62, "b4"], - [-32, 62, "b4"], - [-30, 60, "b4"], - [32, 58, "b4"], - [8, 58, "b4"], - [12, 56, "b4"], - [-12, 56, "b4"], - [-34, 56, "b4"], - [36, 54, "b4"], - [28, 40, ["special4"]], - [18, 38, ["special3"]], - [-28, 38, ["special1"]], - [-16, 36, ["special2"]], - [-6, 30, "b4"], - [26, 28, "b4"], - [-4, 28, "b4"], - [-8, 28, "b4"], - [-24, 28, "b3"], - [16, 26, "b4"], - [-12, 26, "b4"], - [28, 24, "b4"], - [14, 24, "b4"], - [-18, 22, "b4"], - [26, 20, "b4"], - [12, 20, "b4"], - [-16, 20, "b4"], - [-20, 20, "b4"], - [8, 18, "b4"], - [32, 16, "b4"], - [-24, 16, "b4"], - [2, 14, "b4"], - [-26, 14, "b4"], - [30, 12, "b4"], - [-2, 12, "b4"], - [-28, 12, "b4"], - [-30, 10, "b4"], - [32, 8, "b4"], - [34, 6, "b4"], - [-12, 6, "b4"], - [-34, 6, "b4"], - [30, 4, "b4"], - [-10, 4, "b4"], - [16, 2, "b4"], - [-14, 2, "b4"], - [-30, 2, "b4"], - [-34, 0, "b4"], - [-8, 8, "b6"], - [-1, 30, "b6"], - [0, 33, "b4"], - ], - snagtall: [ - [-32, 57, "t3"], - [18, 29, "t3"], - [-14, 22, "t3"], - [-28, 5, "t3"], - [13, 3, "t3"], - [30, 17, "t3"], - [4, 14, "t3"], - [-26, 17, "t3"], - ], - blockbig: [ - [26, 34], - [-26, 32], - ], - coin: [[6, 28]], - friend: [[-8, 18]], - bumpbig: [ - [-32, 18], - [34, 16], - [32, 10], - [7, 18], - ], - bump: [ - [30, 62], - [10, 62], - [-10, 62], - [-36, 62], - [36, 60], - [-14, 58], - [-30, 58], - [32, 56], - [10, 54], - [14, 32], - [-4, 32], - [22, 28], - [-10, 26], - [-18, 26], - [16, 24], - [10, 22], - [-22, 22], - [-32, 22], - [28, 18], - [-20, 18], - [-30, 14], - [-10, 10], - [16, 6], - [-32, 4], - [32, 2], - [12, 2], - ], - snagsml: [[14, 60, "c1"]], - }, - act5a: { - spiral: [ - [10, 36], - [0, 32], - ], - coin: [[6, 30]], - slow: [ - [0, 36], - [12, 24], - [0, 24], - ], - snag: [ - [22, 50, "b4"], - [-14, 44, "b4"], - [-8, 42, "b4"], - [-12, 40, "b4"], - [-22, 20, "b2"], - ], - snagsml: [ - [-18, 50, "c5"], - [16, 48, "c5"], - [8, 46, "c5"], - [10, 42, "c5"], - [-12, 20, "c5"], - [26, 16, "c5"], - [16, 14, "c5"], - [-6, 12, "c5"], - [-18, 12, "c5"], - ], - bump: [ - [-18, 58], - [-22, 52], - [10, 50], - [-10, 46], - [20, 16], - [-6, 16], - [-28, 16], - [28, 14], - [-10, 14], - [14, 12], - ], - blockbig: [ - [-14, 52], - [16, 44], - [-18, 16], - [24, 10], - ], - spin: [ - [-2, 48], - [18, 4], - ], - slowbig: [ - [32, 36], - [-20, 30], - [12, 28], - [-2, 28], - [-8, 6], - [12, 2], - ], - }, - act5b: { - bumpbig: [[0, 17]], - blockbig: [ - [-10, 51], - [-28, 36], - [17, 32], - ], - slowbig: [ - [-31, 52], - [-22, 32], - [-24, 14], - [24, 16], - [-10, 24], - [21, 45], - ], - bump: [ - [-20, 37], - [10, 38], - [28, 2], - [-30, 10], - [-34, 46], - [33, 41], - [3, 10], - [-5, 49], - ], - wall: [ - [20, 40, "f"], - [0, 6, "se"], - [-4, 6, "w"], - [-4, 10, "n"], - [4, 14, "se"], - [-4, 14, "s"], - [-8, 14, "sw"], - [24, 36, "n"], - [28, 40, "se"], - [24, 40, "s"], - [12, 40, "sw"], - [-24, 40, "n"], - [-28, 44, "w"], - [-24, 44, "se"], - [10, 46, "b"], - [-8, 48, "b"], - [-28, 48, "b"], - ], - snagtall: [ - [16, 38, "t1"], - [0, 12, "t1"], - [-9, 42, "t3"], - ], - snag: [ - [-23, 47, "b1"], - [30, 4, "b4"], - [-26, 4, "b4"], - [-32, 6, "b4"], - [26, 10, "b4"], - [8, 16, "b1"], - [-12, 46, "b1"], - [29, 35, "b1"], - [25, 6, "b6"], - ], - snagsml: [ - [21, 2, "c2"], - [32, 38, "c1"], - [10, 34, "c5"], - [-26, 8, "c4"], - [24, 30, "c5"], - [-30, 39, "c5"], - [-20, 40, "c5"], - [-14, 49, "c5"], - [34, 8, "c2"], - [-20, 8, "c2"], - [-34, 10, "c2"], - ], - life: [[2, 42]], - coin: [[-22, 54]], - }, - act6a: { - snagtall: [ - [14, 45, "t3"], - [30, 33, "t3"], - [-7, 30, "t3"], - [-30, 35, "t3"], - [-14, 8, "t3"], - [-44, 20, "t3"], - [28, 27, "t2"], - ], - snag: [ - [12, 44, "b4"], - [-20, 50, "b6"], - [-25, 4, "b2"], - [16, 58, "b6"], - [34, 41, "b4"], - [-8, 14, "b6"], - [12, 60, "b4"], - [-18, 54, "b4"], - [12, 54, "b4"], - [-12, 52, "b4"], - [-16, 48, "b4"], - [34, 48, "b4"], - [10, 48, "b4"], - [30, 44, "b4"], - [18, 44, "b4"], - [16, 42, "b4"], - [28, 40, "b4"], - [-34, 38, "b4"], - [-4, 38, "b4"], - [-32, 34, "b4"], - [-26, 34, "b4"], - [-10, 34, "b4"], - [32, 32, "b4"], - [8, 30, "b4"], - [4, 28, "b4"], - [0, 26, "b4"], - [32, 26, "b4"], - [14, 14, "b4"], - [18, 12, "b4"], - [24, 10, "b4"], - [-24, 8, "b4"], - [-28, 6, "b4"], - [-22, 6, "b4"], - [-8, 6, "b4"], - [-43, 14, "b6"], - [-10, 11, "b4"], - [-12, 13, "b4"], - [14, 56, "b3"], - [-28, 39, "b6"], - [16, 49, "b4"], - ], - snagsml: [ - [26, 22, "c1"], - [6, 34, "c2"], - [-8, 40, "c1"], - ], - bumpbig: [ - [-18, 14], - [22, 16], - ], - coin: [[22, 58]], - life: [[-26, 48]], - ramp: [[4, 20]], - bump: [ - [8, 58], - [-22, 54], - [10, 52], - [-14, 50], - [30, 48], - [-4, 42], - [16, 40], - [-24, 38], - [-10, 38], - [-36, 34], - [36, 28], - [4, 26], - [30, 24], - [22, 20], - [-12, 18], - [-28, 12], - [-20, 10], - [-16, 6], - ], - }, - act6b: { - slowbig: [ - [-12, 49], - [-27, 4], - [31, 49], - [40, 21], - [16, 5], - [2, 42], - [4, 2], - [35, 15], - [-38, 13], - [-18, 39], - [-33, 43], - ], - block: [ - [-27, 12], - [28, 38], - ], - slow: [ - [-35, 20], - [-14, 24], - [8, 16], - [-8, 18], - [14, 22], - [-2, 30], - [42, 42], - [-24, 27], - ], - snagtall: [ - [15, 12, "t3"], - [-14, 5, "t3"], - [-19, 13, "t3"], - [-42, 19, "t3"], - [17, 43, "t3"], - ], - snagsml: [[-26, 22, "c1"]], - snag: [ - [-20, 4, "b4"], - [-2, 4, "b4"], - [-22, 6, "b2"], - [-24, 8, "b4"], - [-18, 8, "b4"], - [-20, 10, "b4"], - [-14, 10, "b4"], - [-26, 16, "b4"], - [-32, 16, "b2"], - [-30, 20, "b4"], - [32, 24, "b4"], - [-38, 24, "b4"], - [-40, 26, "b4"], - [24, 28, "b4"], - [-36, 28, "b4"], - [-20, 30, "b4"], - [38, 30, "b2"], - [26, 32, "b4"], - [-22, 32, "b4"], - [30, 34, "b4"], - [36, 36, "b4"], - [16, 40, "b4"], - [20, 42, "b4"], - [12, 42, "b4"], - [24, 44, "b4"], - [4, 50, "b2"], - [14, 52, "b4"], - [28, 29, "b3"], - [1, 8, "b6"], - [22, 38, "b6"], - ], - bump: [ - [-16, 4], - [4, 10], - [-22, 12], - [-16, 12], - [-28, 18], - [-24, 20], - [40, 24], - [-30, 24], - [34, 26], - [38, 28], - [-32, 28], - [-26, 30], - [34, 32], - [26, 32], - [-36, 36], - [34, 38], - [16, 38], - [20, 40], - [10, 42], - [20, 46], - [10, 50], - [0, 52], - [-12, 9], - ], - bumpbig: [ - [0, 6], - [8, 46], - ], - spiral: [ - [-6, 30], - [6, 38], - [2, 23], - ], - ramp: [[18, 34]], - boost: [[-14, 32]], - coin: [[-28, 50]], - }, - act7a: { - snag: [ - [33, 39, "b6"], - [-12, 12, "b4"], - [12, 14, "b2"], - [4, 22, "b1"], - [-34, 26, "b2"], - [18, 28, "b2"], - [-18, 30, "b1"], - [2, 56, "b4"], - [-12, 58, "b2"], - [28, 30, "b4"], - ], - snagsml: [[-10, 22, "c1"]], - snagtall: [ - [0, 58, "t1"], - [20, 32, "t1"], - [-28, 32, "t1"], - [-30, 37, "t3"], - [0, 18, "t1"], - ], - wall: [ - [24, 34, "f"], - [8, 12, "n"], - [8, 16, "se"], - [-8, 16, "n"], - [-4, 20, "f"], - [-8, 20, "sw"], - [8, 24, "b"], - [32, 30, "n"], - [-32, 30, "n"], - [32, 34, "se"], - [28, 34, "f"], - [-20, 34, "se"], - [-24, 34, "f"], - [-32, 34, "sw"], - [18, 38, "b"], - [-12, 52, "b"], - [8, 60, "se"], - [4, 60, "f"], - [-8, 60, "sw"], - [-4, 60, "f"], - [4, 16, "sw"], - ], - ramp: [ - [0, 10], - [24, 28], - [-24, 28], - [6, 54], - [-6, 54], - ], - bump: [ - [-6, 12], - [-12, 16], - [12, 18], - [6, 20], - [-4, 22], - [20, 30], - [-28, 30], - [-36, 32], - [36, 34], - [16, 34], - [28, 36], - [-18, 36], - [-10, 56], - [10, 58], - [0, 62], - ], - slowbig: [ - [-28, 12], - [-2, 32], - [-24, 48], - [24, 56], - [32, 19], - ], - }, - act7b: { - snagtall: [ - [14, 46, "t3"], - [24, 16, "t1"], - [-4, 42, "t1"], - [-16, 16, "t1"], - [14, 13, "t3"], - ], - coin: [[0, 8]], - bump: [ - [-26, 10], - [12, 16], - [-32, 18], - [-12, 18], - [-24, 20], - [28, 22], - [0, 32], - [2, 34], - [-24, 38], - [2, 42], - [18, 42], - [12, 46], - [-4, 48], - [10, 54], - ], - ramp: [ - [-20, 12], - [20, 12], - [0, 28], - ], - wall: [ - [-28, 14, "n"], - [28, 14, "n"], - [-28, 18, "sw"], - [-24, 18, "f"], - [28, 18, "se"], - [16, 18, "w"], - [16, 22, "sw"], - [20, 22, "s"], - [24, 22, "se"], - [-30, 24, "b"], - [-12, 44, "sw"], - [-8, 44, "f"], - [8, 44, "w"], - [12, 44, "f"], - [16, 44, "se"], - [4, 48, "sw"], - [8, 48, "se"], - [-20, 18, "s"], - [20, 18, "f"], - ], - snag: [ - [-34, 14, "b4"], - [-14, 14, "b4"], - [32, 16, "b4"], - [30, 24, "b4"], - [2, 32, "b3"], - [-26, 40, "b4"], - [4, 44, "b4"], - [-8, 46, "b4"], - [-10, 50, "b2"], - ], - slowbig: [ - [-14, 24], - [16, 32], - [-28, 44], - [28, 50], - [-6, 60], - ], - snagsml: [[12, 20, "c1"]], - }, - finish: { - bumpbig: [ - [-28, 26], - [15, 40], - [26, 26], - ], - finish: [[0, 29, ["default"]]], - coin: [[0, 5]], - snagtall: [ - [-22, 19, "t3"], - [-27, 37, "t3"], - [16, 19, "t3"], - [24, 45, "t3"], - [19, 48, "t3"], - [-31, 40, "t3"], - [-14, 31, "t1"], - [14, 31, "t1"], - [-36, 23, "t3"], - ], - snagsml: [ - [41, 24, "c1"], - [20, 5, "c3"], - [15, 10, "c3"], - [11, 19, "c3"], - [-11, 19, "c3"], - [12, 15, "c3"], - [-12, 15, "c3"], - [-15, 10, "c3"], - [-20, 5, "c3"], - [-36, 38, "c1"], - [36, 40, "c1"], - ], - bump: [ - [-39, 28], - [-18, 41], - [29, 47], - [-7, 47], - [7, 43], - [37, 34], - [-17, 31], - [33, 30], - [13, 27], - [35, 23], - [-37, 34], - [26, 38], - ], - wall: [ - [32, 46, "b"], - [-6, 45, "se"], - [-14, 45, "sw"], - [-10, 45, "f"], - [-10, 41, "se"], - [-14, 41, "w"], - [22, 41, "b"], - [-10, 37, "e"], - [-14, 37, "s"], - [-18, 37, "f"], - [30, 37, "sw"], - [14, 37, "f"], - [22, 37, "e"], - [18, 37, "s"], - [10, 37, "sw"], - [-22, 37, "sw"], - [34, 37, "se"], - [30, 33, "f"], - [-22, 33, "e"], - [-30, 33, "s"], - [26, 33, "s"], - [22, 33, "s"], - [-34, 33, "sw"], - [18, 33, "f"], - [34, 33, "e"], - [-34, 29, "n"], - [26, 29, "n"], - [34, 29, "n"], - [-26, 33, "f"], - ], - block: [ - [-23, 42], - [19, 27], - [-30, 20], - ], - blockbig: [ - [14, 43], - [26, 21], - [-20, 26], - ], - snag: [ - [-43, 22, "b3"], - [-29, 28, "b2"], - [28, 43, "b3"], - [-18, 33, "b1"], - [30, 29, "b1"], - [-26, 46, "b6"], - [-33, 36, "b1"], - [33, 18, "b3"], - [-42, 31, "b2"], - [40, 30, "b2"], - ], - slow: [ - [-11, 52], - [-10, 23], - [31, 53], - [-40, 16], - [9, 23], - [-45, 38], - ], - slowbig: [ - [-44, 47], - [44, 28], - [31, 14], - [12, 52], - [41, 44], - [-25, 14], - [-47, 28], - [-27, 52], - ], - }, - }, - }; - } - } - - function fe(e, t, s) { - return ( - t in e - ? Object.defineProperty(e, t, { - value: s, - enumerable: !0, - configurable: !0, - writable: !0, - }) - : (e[t] = s), - e - ); - } - me(ye, "sys", null); - class we { - constructor(e, t, s) { - fe(this, "type", void 0), - fe(this, "x", void 0), - fe(this, "y", void 0), - fe(this, "w", void 0), - fe(this, "h", void 0), - fe(this, "hit", void 0), - fe(this, "fx", void 0), - fe(this, "hitbox", void 0), - (this.type = e), - (this.x = t), - (this.y = s), - this.reset(); - } - reset() { - const e = be.sys.sheet[this.type]; - (this.w = e.w), - (this.h = e.h), - (this.fx = e.fx), - (this.hit = !1), - (this.hitbox = { - x: this.x - this.w / 2 + e.hitbox.x, - y: this.y - this.h / 2 + e.hitbox.y, - w: e.hitbox.w, - h: e.hitbox.h, - }); - } - move(e) { - this.shift(-e.x, -e.y); - } - shift(e = 0, t = 0) { - (this.x += e), - (this.hitbox.x += e), - (this.y += t), - (this.hitbox.y += t); - } - update() {} - draw() {} - } - class ve extends we { - constructor(e, t, s, i) { - super(e, t, s), - fe(this, "pose", void 0), - fe(this, "time", void 0), - fe(this, "sleep", void 0), - fe(this, "anim", void 0), - fe(this, "pickup", void 0), - fe(this, "decor", void 0), - fe(this, "gateId", void 0), - (this.pose = i), - this.reset(); - } - reset() { - super.reset(), - (this.time = 0), - (this.sleep = !1), - (this.anim = "looping"), - (this.pickup = !1), - (this.decor = void 0), - (this.gateId = void 0); - } - update() { - "paused" !== this.anim && (this.time += te.sys.game.time.loop); - } - draw() { - this.pickup - ? de.sys.drawPickup(this) - : (void 0 !== this.fx && - "hidden" !== this.anim && - de.sys.drawFx(this.time, this.x, this.y + this.fx), - de.sys.drawLayer( - this.type, - this.pose, - this.x, - this.y, - this.time, - this.anim, - this - ), - void 0 !== this.decor && - de.sys.drawLayer( - "wallDecor", - this.decor, - this.x, - this.y - 24 - )); - } - } - class xe extends ve { - constructor(e, t, s, i) { - super(e, t, s, i), - fe(this, "angle", void 0), - fe(this, "pose", void 0), - fe(this, "speed", null), - fe(this, "objectsHit", void 0), - fe(this, "timer", null), - fe(this, "style", void 0), - fe(this, "state", void 0), - this.reset(); - } - reset() { - super.reset(), - (this.objectsHit = []), - (this.angle = 0), - (this.speed = { - current: 6, - raw: 6, - max: 13, - accel: 0.025, - }), - (this.timer = { - crash: 0, - dir: 0, - }), - (this.style = te.sys.rand(0, 3)), - this.changeState("crash"), - this.resume(); - } - update() { - super.update(), - this.isCrashed() || - (this.updateDirection(), - this.updateSpeed(), - this.updatePosition()); - } - crash() { - this.changeState("crash"); - } - resume() { - const e = Math.random() > 0.5 ? "right" : "left"; - (this.timer.crash = 0), (this.timer.dir = 1), this.changeState(e); - } - slow() { - this.speed.raw *= 0.5; - } - isCrashed() { - return ( - !(this.timer.crash <= 0) && - ((this.timer.crash -= - te.sys.game.time.loop * te.sys.game.time.scale), - !(this.timer.crash <= 0) || (this.resume(), !1)) - ); - } - changeState(e) { - if (this.state === e) return; - let t; - switch (((this.state = e), e)) { - case "left": - t = -65; - break; - case "right": - t = -115; - break; - case "crash": - t = 90; - } - (this.pose = e), - (this.angle = (t * Math.PI) / 180), - "crash" === e && - ((this.timer.crash += 1.5), (this.speed.raw = 0)); - } - updateDirection() { - if ( - ((this.timer.dir -= - te.sys.game.time.loop * te.sys.game.time.scale), - this.timer.dir <= 0) - ) { - this.timer.dir = te.sys.rand(50, 200) / 100; - const e = "left" === this.state ? "right" : "left"; - this.changeState(e); - } - } - updateSpeed() { - const e = this.speed, - t = e.accel * te.sys.game.time.scale; - (this.speed.raw = e.raw <= e.max ? (e.raw += t) : (e.raw -= t)), - (this.speed.current = e.raw * te.sys.game.time.scale); - } - updatePosition() { - const e = this.speed.current * -Math.cos(this.angle), - t = this.speed.current * -Math.sin(this.angle); - this.shift(e, t); - } - draw() { - de.sys.drawNpc(this.pose, this.style, this.x, this.y); - } - } - class Se extends ve { - constructor(e, t, s, i) { - super(e, t, s, i), - fe(this, "angle", void 0), - fe(this, "dist", void 0), - fe(this, "speed", null), - fe(this, "objectsHit", void 0), - fe(this, "timer", null), - fe(this, "state", void 0), - this.reset(); - } - reset() { - super.reset(), - (this.objectsHit = []), - (this.angle = 0), - (this.dist = 0), - (this.speed = { - current: 3, - raw: 3, - max: 9, - accel: 0.05, - }), - this.changeState("chase"); - } - update() { - super.update(), - this.hit - ? this.updateEnding() - : this.isCrashed() || - (this.updateDirection(), - this.updateSpeed(), - this.updatePosition()); - } - updateEnding() { - const e = { - x: te.sys.session.x - this.x, - y: te.sys.session.y - 64 - this.y, - }; - if (Math.hypot(e.x, e.y) < 8) - this.shift(e.x, e.y), - this.changeState("end"), - (te.sys.game.caught = !0); - else { - const t = Math.atan2(e.y, e.x), - s = Math.cos(t), - i = Math.sin(t); - this.shift(s, i); - } - } - crash() { - this.changeState("crash"); - } - resume() { - this.changeState("chase"); - } - slow() { - this.speed.raw *= 0.5; - } - ending() { - this.hit = !0; - } - isCrashed() { - return ( - !(this.timer.crash <= 0) && - ((this.timer.crash -= - te.sys.game.time.loop * te.sys.game.time.scale), - !(this.timer.crash <= 0) || (this.resume(), !1)) - ); - } - changeState(e) { - if (this.state !== e) { - switch ( - ((this.state = e), - (this.timer = { - crash: 0, - dir: 0, - }), - e) - ) { - case "chase": - break; - case "crash": - (this.timer.crash += 1.25), (this.speed.raw = 0); - break; - case "end": - (this.anim = "oneshot"), - (this.time = 0), - (this.speed.current = 0), - (this.speed.raw = 0), - (this.speed.max = 0); - } - this.pose = e; - } - } - updateDirection() { - if ( - ((this.dist = Math.hypot( - te.sys.session.x - this.x, - te.sys.session.y - this.y - )), - (this.timer.dir -= - te.sys.game.time.loop * te.sys.game.time.scale), - this.timer.dir <= 0) - ) { - this.timer.dir += - (te.sys.rand(25, 100) / 100) * (this.dist / te.sys.session.y); - const e = te.sys.session.x - this.x, - t = te.sys.session.y - this.y, - s = (180 * Math.atan2(t, e)) / Math.PI; - this.angle = (s * Math.PI) / 180; - } - } - updateSpeed() { - const e = this.speed, - t = e.accel * te.sys.game.time.scale, - s = this.y >= te.sys.session.y; - e.raw < e.max && !s - ? (this.speed.raw += t) - : s - ? (this.speed.raw -= t) - : (this.speed.raw = e.max), - (this.speed.current = e.raw * te.sys.game.time.scale); - } - updatePosition() { - const e = (this.dist / te.sys.session.y) * 15, - t = (Math.cos(16 * this.time) * e * Math.PI) / 180, - s = this.speed.current * Math.cos(this.angle + t), - i = this.speed.current * Math.sin(this.angle + t); - this.shift(s, i); - } - draw() { - de.sys.drawLayer( - this.type, - this.pose, - this.x, - this.y, - this.time, - this.anim, - this - ); - } - } - - function Ce(e, t, s) { - return ( - t in e - ? Object.defineProperty(e, t, { - value: s, - enumerable: !0, - configurable: !0, - writable: !0, - }) - : (e[t] = s), - e - ); - } - class ke { - constructor() { - if ( - (Ce(this, "all", void 0), - Ce(this, "top", void 0), - Ce(this, "btm", void 0), - Ce(this, "npc", void 0), - Ce(this, "foe", void 0), - Ce(this, "endingFoe", void 0), - Ce(this, "swapBuilt", void 0), - Ce(this, "sleeping", void 0), - Ce(this, "prevClusters", void 0), - Ce(this, "startingObjects", void 0), - Ce(this, "endless", void 0), - Ce(this, "timetrial", void 0), - Ce(this, "zigzag", void 0), - Ce(this, "grid", void 0), - ke.sys) - ) - return ke.sys; - (ke.sys = this), - new ye(), - new ze("player", te.sys.session.x, te.sys.session.y, "down"), - this.reset(), - this.createSleepingObjects(); - } - reset() { - void 0 === this.sleeping - ? (this.sleeping = []) - : (this.sleeping = this.sleeping - .concat(this.top) - .concat(this.btm) - .concat(this.npc) - .concat(this.foe)), - (this.grid = { - size: 16, - gap: 1024, - slots: 3, - }), - (this.endless = { - row: { - next: 0, - inc: 800, - }, - foe: { - next: 1e3, - inc: 480, - }, - npc: { - next: 30, - inc: 100, - }, - ramp: { - next: 500, - inc: 500, - }, - boost: { - next: 650, - inc: 500, - }, - lure: { - next: 700, - inc: 500, - }, - friend: { - next: 3e3, - inc: 3e3, - }, - life: { - next: 2e3, - inc: 1e3, - }, - checkpoint: { - next: 5e3, - inc: 5e3, - }, - }), - (this.timetrial = { - row: { - next: 0, - inc: 1088, - }, - counter: 0, - clusterList: [ - "start", - "intro", - "act1a", - "act1b", - "act2a", - "act2b", - "act3a", - "act3b", - "act4a", - "act4b", - "act5a", - "act5b", - "act6a", - "act6b", - "act7a", - "act7b", - "finish", - ], - }), - (this.zigzag = { - row: { - next: 0, - inc: 1200, - }, - life: { - next: 1500, - inc: 3e3, - }, - boost: { - next: 3e3, - inc: 3e3, - }, - counter: 0, - clusterList: [ - "small1", - "small2", - "small3", - "small4", - "small5", - "small6", - "small7", - "small8", - "small9", - "small10", - "small11", - "small12", - "small13", - "small14", - "small15", - "small16", - ], - }), - (this.all = []), - (this.top = []), - (this.btm = []), - (this.npc = []), - (this.foe = []), - (this.prevClusters = []), - (this.swapBuilt = !1), - (this.endingFoe = void 0), - this.calcClusterSlots(), - ze.sys.reset(), - this.all.push(ze.sys); - } - calcClusterSlots() { - this.grid.slots = - 2 * - Math.ceil( - (te.sys.session.h - te.sys.session.y) / this.grid.gap - ) + - 3; - } - createSleepingObjects() { - this.startingObjects = { - wall: 40, - snag: 40, - snagsml: 20, - snagtall: 5, - spin: 10, - ramp: 6, - lure: 3, - slow: 20, - slowbig: 10, - bump: 20, - bumpbig: 10, - coin: 2, - boost: 2, - life: 1, - spiral: 5, - ambient: 10, - blockbig: 6, - block: 4, - friend: 1, - foe: 2, - npc: 10, - }; - for (const e in this.startingObjects) - if (this.startingObjects.hasOwnProperty(e)) { - const t = this.startingObjects[e]; - for (let s = 0; s < t; s++) { - const t = this.createObject(e, 0, 0, void 0); - this.sleeping.push(t); - } - } - } - createNpc() { - const e = te.sys.rand(1, 13), - t = (Math.random() / 2 + 0.25) * te.sys.session.w, - s = e < ze.sys.speed.raw ? te.sys.session.h + 24 : -24; - this.buildObject("npc", t, s, "left").speed.max = e; - } - createFoe() { - const e = (Math.random() / 2 + 0.25) * te.sys.session.w; - this.buildObject("foe", e, -32, "chase").speed.raw = - ze.sys.speed.raw + 1; - } - buildStartScene() { - switch (te.sys.session.settings.mode) { - case q.Endless: - this.createEndlessStart(); - break; - case q.TimeTrial: - this.createTimeTrialAct(); - break; - case q.ZigZag: - this.createZigZagStart(); - } - } - update() { - switch ((this.putToSleep(), te.sys.session.settings.mode)) { - case q.Endless: - this.updateEndlessMode(); - break; - case q.TimeTrial: - this.updateTimeTrialMode(); - break; - case q.ZigZag: - this.updateZigZagMode(); - } - this.mergeAll(); - } - nextReady(e, t = !0) { - let s; - return ( - (s = t - ? te.sys.game.dist.unit - : te.sys.game.dist.y + (te.sys.session.h - te.sys.session.y)), - e.next < s && ((e.next += e.inc), !0) - ); - } - calcSpawnHeight(e) { - return e - te.sys.game.dist.y + te.sys.session.y; - } - updateEndlessMode() { - this.nextReady(this.endless.row, !1) && this.createEndlessRow(), - this.nextReady(this.endless.foe) && this.createFoe(), - this.nextReady(this.endless.npc) && this.createNpc(); - } - updateTimeTrialMode() { - this.nextReady(this.timetrial.row, !1) && - this.timetrial.counter < this.timetrial.clusterList.length && - this.createTimeTrialAct(); - } - updateZigZagMode() { - this.nextReady(this.zigzag.row, !1) && this.createZigZagGate(); - } - createEndlessStart() { - this.buildCluster( - "endlessStarts", - te.sys.session.x, - te.sys.session.y + 128 - ); - } - createEndlessRow() { - const e = ze.sys, - t = this.endless, - s = this.calcSpawnHeight(t.row.next), - i = Math.floor(this.grid.slots / 2); - let a = -i; - for (; a <= i; a++) { - let i, - o, - n = "allNormal"; - if (0 === a) - if (((i = 0), (o = 0), "air" in e.dist)) n = "allPassive"; - else { - if (this.nextReady(t.checkpoint)) - return void this.buildCheckpoint(te.sys.session.x, s); - this.nextReady(t.life) - ? (n = "endlessLives") - : this.nextReady(t.friend) - ? (n = "endlessFriends") - : this.nextReady(t.boost) - ? (n = "endlessBoosts") - : this.nextReady(t.ramp) - ? (n = "endlessRamps") - : this.nextReady(t.lure) && (n = "endlessLures"); - } - else - (i = te.sys.rand(-20, 20) * this.grid.size), - (o = te.sys.rand(0, 32) * this.grid.size); - let r = 0; - "left" === e.dir || "downleft" === e.dir - ? (r = -this.grid.gap / 4) - : ("right" !== e.dir && "downright" !== e.dir) || - (r = this.grid.gap / 4); - const l = te.sys.session.x + a * this.grid.gap + i + r, - h = s + o; - this.buildCluster(n, l, h), this.buildEndlessRandomSnags(l, h); - } - } - buildEndlessRandomSnags(e, t) { - const s = this.grid.gap, - i = this.endless.row.inc / 2, - a = [ - [-s / 2, 0], - [-s / 4, i], - [s / 4, i], - ], - o = a.length; - for (let s = 0; s < o; s++) { - if (Math.random() < 0.33) continue; - const i = a[s][0] + te.sys.rand(-8, 8) * this.grid.size, - o = a[s][1] + te.sys.rand(-8, 8) * this.grid.size; - let n = "snag"; - Math.random() < 0.5 && - (n = te.sys.randIndex(Object.keys(ye.sys.spawnSingle))); - const r = ye.sys.spawnSingle[n], - l = te.sys.randIndex(r); - this.buildObject(n, e + i, t + o, l); - } - } - createTimeTrialAct() { - const e = this.timetrial.clusterList[this.timetrial.counter], - t = te.sys.session.x - te.sys.game.dist.x, - s = this.calcSpawnHeight(this.timetrial.row.next); - this.buildCluster("timetrialScenes", t, s, e), - (this.timetrial.counter += 1); - } - createZigZagStart() { - this.buildCluster( - "zigzagGates", - te.sys.session.x, - te.sys.session.y + 512, - "gateFirst" - ), - (this.zigzag.counter += 1); - } - createZigZagGate() { - const e = te.sys.session.x - te.sys.game.dist.x, - t = this.calcSpawnHeight(this.zigzag.row.next), - s = this.zigzag.counter % 2 != 0; - s - ? this.buildCluster("zigzagGates", e - 320, t, "gateLeft") - : this.buildCluster("zigzagGates", e + 320, t, "gateRight"), - (this.zigzag.counter += 1), - this.createGateClusters(e, t, s); - } - createGateClusters(e, t, s) { - const i = s ? e + 64 : e - 64; - this.buildCluster( - "allNormal", - i, - t - 128, - te.sys.randIndex(this.zigzag.clusterList) - ); - const a = t + 0.5 * this.zigzag.row.inc; - if ( - (this.buildCluster("zigzagGateScenes", e, a), - this.nextReady(this.zigzag.life)) - ) - this.buildObject("life", e, a, "life"); - else if (this.nextReady(this.zigzag.boost)) - this.buildObject("boost", e, a, "boost"); - else if (Math.random() < 0.1) - this.buildObject("spiral", e, a, "spiral1"); - else if (Math.random() < 0.4) { - const t = Math.random() > 0.5 ? "slowbig" : "bumpbig"; - this.buildObject(t, e, a, t + "1"); - } - const o = t + 0.25 * this.zigzag.row.inc; - this.buildCluster( - "allNormal", - e - 560, - o + te.sys.rand(0, 32) * this.grid.size, - te.sys.randIndex(this.zigzag.clusterList) - ), - this.buildCluster( - "allNormal", - e + 560, - o + te.sys.rand(0, 32) * this.grid.size, - te.sys.randIndex(this.zigzag.clusterList) - ); - } - confirmGate(e) { - this.all - .filter((t) => t.gateId === e) - .forEach((e) => { - e.pose = "pass"; - }); - } - denyGate(e) { - this.all - .filter((t) => t.gateId === e) - .forEach((e) => { - e.pose = "fail"; - }); - } - buildCluster(e, t, s, i) { - if (!i) { - const t = Object.keys(ye.sys.library[e]).filter( - (e) => !this.prevClusters.includes(e) - ); - i = te.sys.randIndex(t); - } - const a = ye.sys.library[e][i]; - this.prevClusters.unshift(i), - this.prevClusters.length > 14 && this.prevClusters.pop(); - for (const e in a) - if (a.hasOwnProperty(e)) { - const i = a[e], - o = i.length; - for (let a = 0; a < o; a++) { - const o = i[a]; - let n; - if (o.length > 2) { - const t = o[2]; - n = - "string" == typeof t - ? te.sys.randIndex(ye.sys.legend[e][t]) - : t[0]; - } else { - const t = this.randKey(ye.sys.legend[e], !0); - n = te.sys.randIndex(ye.sys.legend[e][t]); - } - const r = t + o[0] * this.grid.size, - l = s + o[1] * this.grid.size; - this.buildObject(e, r, l, n); - } - } - } - randKey(e, t = !1) { - const s = Object.keys(e), - i = e[s[(s.length * Math.random()) << 0]], - a = s.find((t) => e[t] === i); - if (t) return a; - { - const e = {}; - return (e[a] = i), e; - } - } - buildCrashedFriend(e, t) { - (this.buildObject("friend", e, t, "crash").hit = !0), - (this.endless.friend.next = - te.sys.game.dist.unit + this.endless.friend.inc); - } - buildCheckpoint(e, t) { - (this.endless.row.next += this.endless.row.inc), - (this.top = this.sleep(this.top, -64, te.sys.session.h + 64)), - this.buildCluster("endlessCheckpoints", e, t); - } - buildSwap() { - (this.swapBuilt = !0), - (this.endless.row.next += 1280), - (this.top = this.sleep(this.top, -64, te.sys.session.h + 64)), - this.buildCluster( - "endlessSwap", - te.sys.session.x - (te.sys.session.h - te.sys.session.y) - 256, - te.sys.session.h + 256 - ); - } - buildObject(e, t, s, i) { - (t = - Math.floor(t) + - (te.sys.game.dist.x - Math.floor(te.sys.game.dist.x))), - (s = - Math.floor(s) + - (te.sys.game.dist.y - Math.floor(te.sys.game.dist.y))); - let a = this.wake(e, t, s, i); - switch ((a || (a = this.createObject(e, t, s, i)), a.type)) { - case "wall": - !["f1", "f2", "f3"].includes(i) && - Math.random() < 0.5 && - (a.decor = te.sys.randIndex([ - "a", - "b", - "c", - "d", - "e", - "f", - "g", - "h", - ])); - break; - case "ambient": - a.anim = "hidden"; - break; - case "marker": - case "guide": - case "gate": - a.gateId = this.zigzag.counter; - } - a.time = Math.random(); - switch (be.sys.sheet[e].group) { - case "top": - this.top.push(a); - break; - case "btm": - this.btm.push(a); - break; - case "npc": - this.npc.push(a); - break; - case "foe": - this.foe.push(a); - } - return a; - } - createObject(e, t, s, i) { - switch (e) { - case "gate": - case "swap": - return new we(e, t, s); - case "foe": - return new Se(e, t, s, i); - case "npc": - return new xe(e, t, s, i); - default: - return new ve(e, t, s, i); - } - } - mergeAll() { - const e = this.top.concat(this.npc).concat(this.foe); - - function t(e, t) { - return e.hitbox.y + e.hitbox.h - (t.hitbox.y + t.hitbox.h); - } - "air" in ze.sys.dist - ? (e.sort((e, s) => t(e, s)), e.push(ze.sys)) - : (e.push(ze.sys), e.sort((e, s) => t(e, s))), - (this.all = this.btm.concat(e)); - } - wake(e, t, s, i) { - let a; - const o = this.wakeFromSleep(e, i); - return o - ? ((a = o), a.shift(t - a.x, s - a.y), a.reset(), a) - : null; - } - wakeFromSleep(e, t) { - let s = this.sleeping; - const i = s.length; - for (let a = 0; a < i; a++) - if (s[a].type === e) - return (s[a].pose = t), (s = s.splice(a, 1)), s[a]; - return null; - } - putToSleep() { - (this.top = this.sleep(this.top)), - (this.btm = this.sleep(this.btm)), - (this.npc = this.sleep(this.npc, -64, te.sys.session.h + 64)), - (this.foe = this.sleep(this.foe, -256)); - } - sleep(e, t = -64, s = 1e4) { - function i(e) { - return e.y > t && e.y < s && !e.sleep; - } - const a = e.filter((e) => !i(e)); - return ( - (this.sleeping = this.sleeping.concat(a)), e.filter((e) => i(e)) - ); - } - } - - function Te(e, t, s) { - return ( - t in e - ? Object.defineProperty(e, t, { - value: s, - enumerable: !0, - configurable: !0, - writable: !0, - }) - : (e[t] = s), - e - ); - } - Ce(ke, "sys", null); - class Me { - constructor() { - if ( - (Te(this, "indexList", void 0), - Te(this, "buttonMap", void 0), - Te(this, "last", void 0), - Te(this, "vib", void 0), - Te(this, "vibCurrent", void 0), - Te(this, "timer", void 0), - Te(this, "linkedPad", void 0), - Me.sys) - ) - return Me.sys; - (Me.sys = this), - window.addEventListener("gamepadconnected", (e) => - Me.sys.onGamepadConnected(e) - ), - window.addEventListener("gamepaddisconnected", (e) => - Me.sys.onGamepadDisconnected(e) - ), - (this.indexList = []), - (this.buttonMap = [ - "a", - "b", - "x", - "y", - "lb", - "rb", - "lt", - "rt", - "select", - "start", - "lstick", - "rstick", - "up", - "down", - "left", - "right", - "home", - "touchpad", - ]), - (this.linkedPad = { - index: void 0, - pad: void 0, - pressed: {}, - }), - this.defineVibrations(), - this.setVibration(), - this.reset(); - } - reset() { - this.last = void 0; - } - defineVibrations() { - this.vib = { - default: { - dur: 0, - weak: 0.4, - strong: 0.4, - }, - tiny: { - dur: 100, - weak: 0.05, - strong: 0, - }, - small: { - dur: 100, - weak: 0.15, - strong: 0, - }, - big: { - dur: 600, - weak: 0.5, - strong: 0, - }, - boost: { - dur: 3e3, - weak: 0, - strong: 0.25, - }, - pickup: { - dur: 200, - weak: 0.2, - strong: 0, - }, - ramp: { - dur: 200, - weak: 0, - strong: 0.15, - }, - slow: { - dur: 400, - weak: 0, - strong: 0.15, - }, - crash: { - dur: 300, - weak: 0.4, - strong: 0.4, - }, - }; - } - setVibration(e = "default") { - (this.vibCurrent = this.vib[e]), (this.timer = this.vibCurrent.dur); - } - vibrateController() { - const e = te.sys.session.inputType; - if (e === ee.Xbox || e === ee.Ps) { - const e = this.vibCurrent, - t = this.timer / e.dur; - this.linkedPad.pad.vibrationActuator.playEffect("dual-rumble", { - startDelay: 0, - duration: e.dur, - weakMagnitude: t * e.weak, - strongMagnitude: t * e.strong, - }); - } - } - onGamepadConnected(e) { - Me.sys.indexList.push(e.gamepad.index); - } - onGamepadDisconnected(e) { - const t = Me.sys.indexList.indexOf(e.gamepad.index); - t > -1 && Me.sys.indexList.splice(t, 1), - (this.linkedPad = { - index: void 0, - pad: void 0, - pressed: {}, - }); - const s = te.sys.session.inputType; - (s !== ee.Xbox && s !== ee.Ps) || - Ae.sys.changeInputMethod(ee.Keyboard); - } - setController(e, t) { - (this.linkedPad = { - index: e, - pad: t, - pressed: {}, - }), - this.changeControllerType(t); - } - update() { - const e = this.indexList.length; - if (!(e <= 0)) - if (void 0 === this.linkedPad.index) - for (let t = 0; t < e; t++) { - const e = navigator.getGamepads()[this.indexList[t]]; - if (void 0 !== e) { - const s = this.checkJoysticks(e), - i = this.checkButtons(e); - (void 0 === s && void 0 === i) || - this.setController(this.indexList[t], e); - } - } - else { - this.timer > 0 && this.checkVibrations(); - const e = navigator.getGamepads()[this.linkedPad.index]; - void 0 !== e && (this.checkJoysticks(e), this.checkButtons(e)); - } - } - checkVibrations() { - this.vibrateController(), - (this.timer -= 1e3 * te.sys.game.time.loop), - this.timer <= 0 && this.setVibration(); - } - changeControllerType(e) { - const t = e.id.toLowerCase().includes("054c") ? ee.Ps : ee.Xbox; - Ae.sys.changeInputMethod(t); - } - checkJoysticks(e) { - const t = 0.5, - s = e.axes[0] > t || e.axes[2] > t, - i = e.axes[0] < -0.5 || e.axes[2] < -0.5, - a = e.axes[1] > t || e.axes[3] > t, - o = e.axes[1] < -0.5 || e.axes[3] < -0.5; - let n; - if ( - (s || i || o || a - ? (this.changeControllerType(e), - !o || s || i - ? !a || s || i - ? !i || o || a - ? !s || o || a - ? s && o - ? (n = He.Right) - : s && a - ? (n = He.DownRight) - : i && o - ? (n = He.Left) - : i && a && (n = He.DownLeft) - : (n = He.Right) - : (n = He.Left) - : (n = He.Down) - : (n = He.Stop)) - : (this.last = void 0), - this.last !== n) - ) { - if (((this.last = n), n)) - if (te.sys.session.flyoutActive) - switch (n) { - case He.Stop: - this.focusNextElement(-1); - break; - case He.Down: - this.focusNextElement(1); - } - else Ae.sys.routeInput(n, !0, !1); - return n; - } - } - checkButtons(e) { - function t(e) { - return "object" == typeof e ? e.pressed : 1 === e; - } - if (t(e.buttons[4]) && t(e.buttons[5])) - return ( - Ae.sys.routeInput(He.Reset), - (this.linkedPad.pressed.lb = !0), - void (this.linkedPad.pressed.rb = !0) - ); - let s; - const i = e.buttons.length; - for (let a = 0; a < i; a++) - if (t(e.buttons[a])) { - if (this.linkedPad.pressed[this.buttonMap[a]]) return; - if ( - ((this.linkedPad.pressed[this.buttonMap[a]] = !0), - this.changeControllerType(e), - te.sys.session.flyoutActive && - ["a", "b", "up", "down"].includes(this.buttonMap[a])) - ) { - switch (this.buttonMap[a]) { - case "a": - document.activeElement.click(); - break; - case "b": - Ae.sys.routeInput(He.Settings, !1, !1); - break; - case "up": - this.focusNextElement(-1); - break; - case "down": - this.focusNextElement(1); - } - return; - } - switch (this.buttonMap[a]) { - case "a": - s = He.Toggle; - break; - case "lb": - s = He.Left; - break; - case "rb": - s = He.Right; - break; - case "lt": - case "rt": - s = He.Boost; - break; - case "up": - s = He.Stop; - break; - case "down": - s = He.Down; - break; - case "left": - s = He.Left; - break; - case "right": - s = He.Right; - break; - case "select": - case "start": - case "home": - case "touchpad": - s = He.Settings; - } - Ae.sys.routeInput(s, !1, !1), Ae.sys.checkCheatCode(s); - } else this.linkedPad.pressed[this.buttonMap[a]] = !1; - return s; - } - focusNextElement(e = 1) { - const t = Array.from( - document.querySelectorAll( - 'a:not([disabled]), select:not([disabled]), div[role="option"]:not([disabled]), input:not([disabled]), button:not([disabled]), [tabindex]:not([disabled]):not([tabindex="-1"])' - ) - ).filter( - (e) => - e.offsetWidth > 0 || - e.offsetHeight > 0 || - e === document.activeElement - ), - s = t.indexOf(document.activeElement) || 0; - (t[s + e] || t[0]).focus(); - } - } - - function Ie(e, t, s) { - return ( - t in e - ? Object.defineProperty(e, t, { - value: s, - enumerable: !0, - configurable: !0, - writable: !0, - }) - : (e[t] = s), - e - ); - } - Te(Me, "sys", null); - class Pe { - constructor() { - if ((Ie(this, "mousePos", void 0), Pe.sys)) return Pe.sys; - (Pe.sys = this), - window.addEventListener( - "click", - function (e) { - Pe.sys.onClick(e); - }, - !1 - ), - window.addEventListener( - "mousemove", - function (e) { - Pe.sys.onMouseMove(e); - }, - !1 - ), - window.addEventListener( - "contextmenu", - function (e) { - Pe.sys.onContextMenu(e); - }, - !1 - ), - this.reset(); - } - reset() { - this.mousePos = void 0; - } - onClick(e) { - if (te.sys.session.flyoutActive) return; - Ae.sys.changeInputMethod(ee.Mouse); - const t = ue.sys.selector || null; - (t && t.contains(e.target)) || Ae.sys.routeInput(He.Toggle); - } - onMouseMove(e) { - if (te.sys.session.state === Q.Play) { - const t = this.checkAngle(te.sys.session, e); - this.mousePos !== t && - ((this.mousePos = t), Ae.sys.routeInput(t, !0, !1)); - } - } - onContextMenu(e) { - e.preventDefault(), - te.sys.session.state === Q.Play && - Ae.sys.routeInput(He.Boost, !1, !1); - } - checkAngle(e, t) { - const s = - (180 * Math.atan2(e.y - t.clientY, e.x - t.clientX)) / Math.PI; - return s <= 0 && s >= -55 - ? He.Left - : s >= -180 && s <= -125 - ? He.Right - : s < -55 && s > -75 - ? He.DownLeft - : s > -125 && s < -105 - ? He.DownRight - : s > 0 && s < 180 - ? He.Stop - : He.Down; - } - } - - function Ee(e, t, s) { - return ( - t in e - ? Object.defineProperty(e, t, { - value: s, - enumerable: !0, - configurable: !0, - writable: !0, - }) - : (e[t] = s), - e - ); - } - Ie(Pe, "sys", null); - class ze extends ve { - constructor(e, t, s, i) { - if ( - (super(e, t, s, i), - Ee(this, "pose", void 0), - Ee(this, "speed", void 0), - Ee(this, "timer", void 0), - Ee(this, "dist", void 0), - Ee(this, "angle", void 0), - Ee(this, "dir", void 0), - Ee(this, "scale", void 0), - Ee(this, "swapped", void 0), - Ee(this, "trick", void 0), - Ee(this, "shadow", void 0), - Ee(this, "boostFx", void 0), - Ee(this, "previousGate", void 0), - Ee(this, "skins", void 0), - ze.sys) - ) - return ze.sys; - (ze.sys = this), this.reset(); - } - reset() { - super.reset(), - (this.speed = { - current: 0, - x: 0, - y: 0, - raw: 0, - min: 1, - max: 7.5, - base: 7.5, - accel: 0.02, - airAdd: 2.5, - boostAdd: 5, - }), - (this.timer = { - crash: 0, - }), - (this.dist = {}), - (this.angle = 0), - (this.dir = "stop"), - (this.trick = 0), - (this.shadow = 0), - (this.scale = 1), - (this.boostFx = []), - (this.swapped = !1), - (this.previousGate = -1), - (this.skins = { - render: [], - zoom: [0.2, 0.5, 1, 0.5, 0.2], - poses: [ - "left", - "left", - "left", - "downleft", - "down", - "downright", - "right", - "right", - "right", - "downright", - "down", - "downleft", - ], - }), - this.changeCharacter(te.sys.session.settings.character, !0); - } - move() {} - unlockForNewGame() { - this.changeDirection("down"), Me.sys.setVibration("big"); - } - update() { - super.update(), - (this.speed.x = this.speed.current * -Math.cos(this.angle)), - (this.speed.y = this.speed.current * -Math.sin(this.angle)), - this.checkBoundaries(), - this.updateTrackers(), - this.updateBoostFx(), - "stop" === this.dir || this.timer.crash || this.updateSpeed(); - } - checkBoundaries() { - const e = te.sys.game.dist, - t = te.sys.session.settings.mode; - switch (t) { - case q.TimeTrial: - case q.ZigZag: - Math.abs(e.x) > be.sys.boundary[t] && this.bounce(); - break; - case q.Endless: - e.y < 8e3 && - e.x < -6400 && - !ke.sys.swapBuilt && - ke.sys.buildSwap(), - !te.sys.game.highScore && - e.unit > te.sys.session.bestScore.endless && - !te.sys.game.cheat.used && - ((te.sys.game.highScore = !0), - ue.sys.refreshDisplay(), - e.unit > 100 && ue.sys.sendNotification("score")); - } - } - changeCharacter(e, t = !1) { - t && - !be.sys.selectionList.includes(be.sys.characterList[e]) && - be.sys.selectionList.push(be.sys.characterList[e]); - const s = be.sys.selectionList; - t || - (e = - (s.length + te.sys.session.settings.character + e) % s.length), - (this.skins.render = []); - const i = this.skins.zoom.length; - for (let t = 0; t < i; t++) { - const a = (s.length + e + (t - Math.floor(i / 2))) % s.length; - this.skins.render[t] = a; - } - (te.sys.session.settings.character = e), - te.sys.saveSessionSettings(), - be.sys.createPlayerSprite(), - Me.sys.setVibration("small"); - } - routeAction(e, t = !1) { - if ( - !( - te.sys.session.state !== Q.Play || - this.timer.crash || - "bounce" in this.dist || - ("air" in this.dist && e !== He.Down) - ) - ) - switch (e) { - case He.Stop: - this.stop(); - break; - case He.Down: - this.down(); - break; - case He.Left: - case He.Right: - case He.DownLeft: - case He.DownRight: - this.changeDirection(e, t); - break; - case He.Boost: - this.boost(); - } - } - changeDirection(e, t = !1) { - if ( - this.timer.crash || - "bounce" in this.dist || - ("air" in this.dist && "down" !== e) - ) - return; - let s; - switch ( - (t || "left" !== e || "left" === this.dir - ? t || - "right" !== e || - "right" === this.dir || - (e = "downright" === this.dir ? "right" : "downright") - : (e = "downleft" === this.dir ? "left" : "downleft"), - e) - ) { - case "left": - s = -42; - break; - case "right": - s = -138; - break; - case "downleft": - s = -60; - break; - case "downright": - s = -120; - break; - case "down": - s = -90; - break; - case "stop": - s = 90; - } - (this.dir = e), - this.changePose(e), - (this.angle = (s * Math.PI) / 180); - } - changePose(e) { - this.swapped && (e = "stop" === e ? "crash" : "chase"), - (this.pose = e); - } - updateTrackers() { - this.timer.crash && - ((this.timer.crash -= - te.sys.game.time.loop * te.sys.game.time.scale), - this.timer.crash < 0 && - ((this.timer.crash = void 0), this.stop(), Pe.sys.reset())); - for (const e in this.dist) - (this.dist[e] -= this.speed.current), - this.dist[e] <= 0 && - (delete this.dist[e], this.endDistTracker(e)); - } - updateSpeed() { - let e = 1; - const t = this.speed; - ("air" in this.dist || "boost" in this.dist) && (e = 8), - this.setMinPlayerSpeed(); - const s = t.accel * e * te.sys.game.time.scale; - (this.speed.raw = t.raw <= t.max ? (t.raw += s) : (t.raw -= s)), - (this.speed.current = t.raw * te.sys.game.time.scale); - } - stop() { - this.changeDirection("stop"), - this.stopPlayerSpeed(), - Me.sys.setVibration("tiny"); - } - down() { - "air" in this.dist - ? ((this.trick = (this.trick % 2) + 1), - 1 === this.trick - ? this.changePose("air1") - : this.changePose("air2"), - Me.sys.setVibration("small")) - : this.changeDirection("down"); - } - slow() { - (this.speed.raw *= 0.7), Me.sys.setVibration("slow"); - } - crash() { - if ("immune" in this.dist) return; - const e = te.sys.game.cheat; - te.sys.game.friend && - !e.safety && - (this.removeFriend(), - ke.sys.buildCrashedFriend( - this.x + 48 * (Math.random() - 0.5), - this.y + 32 - )), - e.lives || e.safety || (te.sys.game.lives.current -= 1), - ue.sys.refreshDisplay(), - te.sys.game.lives.current <= 0 - ? this.lose() - : ((this.timer.crash = 1), - this.stopPlayerSpeed(), - (this.dist.immune = 96), - this.changePose("crash"), - Me.sys.setVibration("crash")); - } - air(e) { - this.timer.crash || - (this.changeDirection("down"), - "boost" in this.dist && (this.dist.boost += e), - (this.dist.air = e), - (this.trick = te.sys.rand(1, 2)), - (this.speed.max = this.speed.base + this.speed.airAdd), - (this.shadow = 0), - this.down(), - Me.sys.setVibration("ramp")); - } - boost(e = !1) { - (!e && (te.sys.game.boosts.current <= 0 || "boost" in this.dist)) || - (e || - te.sys.game.cheat.boosts || - (te.sys.game.boosts.current -= 1), - (this.dist.boost = 2e3), - (this.speed.max = this.speed.base + this.speed.boostAdd), - ue.sys.refreshDisplay(), - Me.sys.setVibration("boost")); - } - bounce() { - this.spin(), (this.dist.bounce = 32); - } - endDistTracker(e) { - switch (e) { - case "air": - (this.dist.immune = 256), - Pe.sys.reset(), - "boost" in this.dist || (this.speed.max = this.speed.base), - this.down(), - Me.sys.setVibration("slow"); - break; - case "boost": - (this.speed.max = this.speed.base), Me.sys.setVibration("tiny"); - } - } - swap() { - this.removeFriend(!0), - (this.swapped = !0), - this.changePose("chase"), - (this.speed.base += 3), - (this.speed.max = this.speed.base), - (this.hitbox.x -= 32), - (this.hitbox.y -= 32), - (this.hitbox.w += 64), - (this.hitbox.h += 64), - ke.sys.top - .filter((e) => "lure" === e.type) - .forEach((e) => { - ke.sys.buildObject("foe", e.x, e.y, "chase"), (e.sleep = !0); - }), - (te.sys.game.cheat.used = !0), - ue.sys.sendNotification("cheat"), - Me.sys.setVibration("big"); - } - spin() { - const e = Math.random() > 0.5; - switch (this.dir) { - case "downright": - case "right": - this.changeDirection(e ? "left" : "downleft", !0); - break; - case "downleft": - case "left": - this.changeDirection(e ? "right" : "downright", !0); - break; - default: - this.changeDirection(e ? "left" : "right", !0); - } - (this.speed.raw *= 0.9), Me.sys.setVibration("slow"); - } - collectBoost() { - te.sys.game.boosts.current < te.sys.game.boosts.max && - ((te.sys.game.boosts.current += 1), ue.sys.refreshDisplay()), - Me.sys.setVibration("pickup"); - } - collectLife() { - te.sys.game.lives.current < te.sys.game.lives.max && - ((te.sys.game.lives.current += 1), ue.sys.refreshDisplay()), - Me.sys.setVibration("pickup"); - } - collectCoin() { - (te.sys.game.coins += 1), Me.sys.setVibration("pickup"); - } - collectFriend() { - (te.sys.game.friend = !0), - be.sys.createPlayerSprite(), - te.sys.session.settings.mode === q.Endless && - ((te.sys.game.shields.current = te.sys.game.shields.max), - ue.sys.refreshDisplay()), - Me.sys.setVibration("pickup"); - } - removeFriend(e = !1) { - !te.sys.game.friend || - te.sys.game.cheat.safety || - e || - ((te.sys.game.friend = !1), - be.sys.createPlayerSprite(), - (te.sys.game.shields.current = 0), - ue.sys.refreshDisplay()); - } - useShield() { - te.sys.game.cheat.safety || - ((te.sys.game.shields.current -= 1), - ue.sys.refreshDisplay(), - Me.sys.setVibration("small")); - } - lose() { - (te.sys.game.lives.current = 0), - (te.sys.game.shields.current = 0), - (this.dist.immune = 0), - this.stopPlayerSpeed(), - this.changePose("crash"), - (this.boostFx = []), - Ze.sys.changeGameState(Q.Over), - Me.sys.setVibration("big"); - } - finishline() { - (te.sys.game.finish = !0), - this.stopPlayerSpeed(), - this.changePose("stop"), - (this.boostFx = []), - Ze.sys.changeGameState(Q.Over), - Me.sys.setVibration("big"); - } - passGate(e) { - e - 1 === this.previousGate && (te.sys.game.gates += 1), - (this.previousGate = e), - te.sys.saveGameStats(), - ue.sys.refreshDisplay(), - Me.sys.setVibration("small"); - } - failGate(e) { - te.sys.game.highScore && - (ue.sys.sendNotification("score"), (te.sys.game.highScore = !1)), - (te.sys.game.gates = 0), - (this.previousGate = e), - ue.sys.refreshDisplay(), - Me.sys.setVibration("slow"); - } - stopPlayerSpeed() { - (this.speed.current = 0), - (this.speed.raw = 0), - (this.speed.max = 0), - (this.speed.x = 0), - (this.speed.y = 0); - } - setMinPlayerSpeed() { - (this.speed.raw = Math.max(this.speed.raw, this.speed.min)), - (this.speed.max = Math.max(this.speed.max, this.speed.base)); - } - updateBoostFx() { - if ( - (this.boostFx.length > 0 && - (this.boostFx.forEach((e) => { - (e.start.x -= 0.8 * this.speed.x), - (e.end.x -= this.speed.x), - (e.start.y -= 0.8 * this.speed.y), - (e.end.y -= this.speed.y), - (e.time += te.sys.game.time.loop); - }), - (this.boostFx = this.boostFx.filter((e) => e.time < 0.5))), - "boost" in this.dist && this.speed.current > 0) - ) { - const e = 16 - 32 * Math.random(); - this.boostFx.push({ - start: { - x: this.x + e, - y: this.y + 8, - }, - end: { - x: this.x + e - 3 * this.speed.x, - y: this.y + 8 - 3 * this.speed.y, - }, - time: 0.01, - }); - } - } - renderCharacterSelection() { - const e = te.sys.game.time.elapsed, - t = this.skins.render.length, - s = Math.floor(t / 2), - i = - Math.floor(e * be.sys.sheet.player.fps) % - this.skins.poses.length, - a = de.sys.ctx; - a.save(); - for (let o = 0; o < t; o++) { - let t = 80, - n = 1; - const r = this.skins.zoom[o]; - let l = this.skins.poses[i]; - (o !== s - 1 && o !== s + 1) || (t = 96), (a.globalAlpha = r); - const h = be.sys.characterList[this.skins.render[o]]; - if (o !== s) - (l = "down"), - de.sys.drawPlayerMenu( - h, - l, - te.sys.session.x + t * (o - s), - te.sys.session.y, - n + r - ); - else { - n = this.scale; - te.sys.game.shields.current / te.sys.game.shields.max > 0 && - de.sys.drawShield(this.x, this.y + 16), - de.sys.drawPlayerSprite( - l, - e, - te.sys.session.x + t * (o - s), - te.sys.session.y, - n + r - ); - } - } - a.restore(); - } - draw() { - if ( - (this.boostFx.length > 0 && de.sys.drawBoost(this.boostFx), - this.swapped) - ) - de.sys.drawLayer( - "foe", - this.pose, - this.x, - this.y, - this.time, - this.anim - ); - else { - const e = te.sys.game.time.elapsed; - te.sys.game.shields.current / te.sys.game.shields.max > 0 && - de.sys.drawShield(this.x, this.y + 16), - "air" in this.dist && - (this.dist.air < 256 - ? (this.shadow = this.dist.air / 4) - : this.shadow < 64 - ? (this.shadow += 3 * te.sys.game.time.scale) - : (this.shadow = 64), - de.sys.drawShadow(this.x, this.y + 16, this.shadow)), - "immune" in this.dist && - (de.sys.ctx.save(), - (de.sys.ctx.globalAlpha = - Math.floor(4 * e) % 2 == 0 ? 0.4 : 0.7)), - de.sys.drawPlayerSprite( - this.pose, - e, - this.x, - this.y, - this.scale - ), - "immune" in this.dist && de.sys.ctx.restore(); - } - } - } - - function Le(e, t, s) { - return ( - t in e - ? Object.defineProperty(e, t, { - value: s, - enumerable: !0, - configurable: !0, - writable: !0, - }) - : (e[t] = s), - e - ); - } - Ee(ze, "sys", null); - class De { - constructor() { - if ((Le(this, "pressed", void 0), De.sys)) return De.sys; - (De.sys = this), - window.addEventListener( - "keydown", - (e) => De.sys.onKeydown(e), - !1 - ), - window.addEventListener("keyup", (e) => De.sys.onKeyup(e), !1), - (this.pressed = {}); - } - onKeydown(e) { - const t = e.key.toLowerCase(); - if ((Ae.sys.changeInputMethod(ee.Keyboard), !this.pressed[t])) { - switch (((this.pressed[t] = !0), t)) { - case "arrowdown": - case "s": - Ae.sys.routeInput(He.Down); - break; - case "arrowleft": - case "a": - Ae.sys.routeInput(He.Left); - break; - case "arrowright": - case "d": - Ae.sys.routeInput(He.Right); - break; - case "arrowup": - case "w": - Ae.sys.routeInput(He.Stop); - break; - case "enter": - case " ": - Ae.sys.routeInput(He.Toggle); - break; - case "escape": - Ae.sys.routeInput(He.Settings, !1, !1); - break; - case "f": - Ae.sys.routeInput(He.Boost, !1, !1); - } - Ae.sys.checkCheatCode(t); - } - } - onKeyup(e) { - const t = e.key.toLowerCase(); - delete this.pressed[t]; - } - } - - function _e(e, t, s) { - return ( - t in e - ? Object.defineProperty(e, t, { - value: s, - enumerable: !0, - configurable: !0, - writable: !0, - }) - : (e[t] = s), - e - ); - } - Le(De, "sys", null); - class Oe { - constructor() { - if ( - (_e(this, "swipeStart", void 0), - _e(this, "swipeDelta", void 0), - _e(this, "touchData", void 0), - _e(this, "touchPos", void 0), - Oe.sys) - ) - return Oe.sys; - (Oe.sys = this), - window.addEventListener( - "touchstart", - (e) => Oe.sys.onTouchStart(e), - !1 - ), - window.addEventListener( - "touchmove", - (e) => Oe.sys.onTouchMove(e), - !1 - ), - window.addEventListener( - "touchend", - (e) => Oe.sys.onTouchEnd(e), - !1 - ), - this.reset(); - } - reset() { - (this.swipeStart = 0), - (this.swipeDelta = 400), - (this.touchData = { - down: { - x: 0, - y: 0, - }, - move: { - x: 0, - y: 0, - }, - }); - } - onTouchStart(e) { - if ( - !this.interact(e) && - (Ae.sys.changeInputMethod(ee.Touch), e.targetTouches) - ) { - const t = e.targetTouches[0]; - (this.swipeStart = Date.now()), - (this.touchPos = void 0), - (this.touchData = { - down: { - x: t.clientX, - y: t.clientY, - }, - move: { - x: t.clientX, - y: t.clientY, - }, - }); - } - } - onTouchMove(e) { - if (this.interact(e)) return; - const t = e.targetTouches[0]; - if ( - ((this.touchData.move = { - x: t.clientX, - y: t.clientY, - }), - te.sys.session.state === Q.Play && - Date.now() - this.swipeStart > 80) - ) { - const e = this.checkAngle(te.sys.session, this.touchData.move); - this.touchPos !== e && - ((this.touchPos = e), Ae.sys.routeInput(e, !0, !1)); - } - } - onTouchEnd(e) { - if (this.interact(e)) return; - const t = this.touchData.move.x - this.touchData.down.x, - s = this.touchData.move.y - this.touchData.down.y; - if ( - ((this.touchPos = void 0), Math.abs(t) < 10 && Math.abs(s) < 10) - ) { - const e = { - x: te.sys.session.x, - y: te.sys.session.y, - }, - t = this.checkAngle(e, this.touchData.down); - te.sys.session.state === Q.Menu - ? t === He.Left || t === He.Right - ? Ae.sys.routeInput(t, !0, !1) - : Ae.sys.routeInput(He.Toggle) - : Ae.sys.routeInput(t, !0, !0), - Ae.sys.checkCheatCode(t); - } else if (Date.now() - this.swipeStart <= this.swipeDelta) { - let e = this.checkAngle(this.touchData.down, this.touchData.move); - if (te.sys.session.state === Q.Menu) - switch (e) { - case He.Right: - e = He.Left; - break; - case He.Left: - e = He.Right; - } - const t = e === He.Down; - Ae.sys.routeInput(e, !1, t); - } - } - checkAngle(e, t) { - const s = (180 * Math.atan2(e.y - t.y, e.x - t.x)) / Math.PI; - return s <= 30 && s >= -55 - ? He.Left - : s >= 150 || (s >= -180 && s <= -125) - ? He.Right - : s < -55 && s > -75 - ? He.DownLeft - : s > -125 && s < -105 - ? He.DownRight - : s > 30 && s < 150 - ? He.Stop - : He.Down; - } - interact(e) { - const t = e.target; - return ( - !(!te.sys.session.flyoutActive && !t.closest("button")) || - (e.cancelable && e.preventDefault(), !1) - ); - } - } - - function Re(e, t, s) { - return ( - t in e - ? Object.defineProperty(e, t, { - value: s, - enumerable: !0, - configurable: !0, - writable: !0, - }) - : (e[t] = s), - e - ); - } - let He; - _e(Oe, "sys", null), - (function (e) { - (e.Settings = "settings"), - (e.Left = "left"), - (e.Right = "right"), - (e.Down = "down"), - (e.Stop = "stop"), - (e.DownLeft = "downleft"), - (e.DownRight = "downright"), - (e.Boost = "boost"), - (e.Toggle = "toggle"), - (e.Reset = "reset"); - })(He || (He = {})); - class Ae { - constructor() { - if ( - (Re(this, "codes", void 0), - Re(this, "lastTime", void 0), - Re(this, "thisTime", void 0), - Re(this, "lastInput", void 0), - Re(this, "lastInputTime", void 0), - Re(this, "doubleDelta", void 0), - Re(this, "codesPossible", void 0), - Ae.sys) - ) - return Ae.sys; - (Ae.sys = this), - new Me(), - new De(), - new Pe(), - new Oe(), - this.defineCodes(), - this.reset(); - } - reset() { - Me.sys.reset(), - Pe.sys.reset(), - Oe.sys.reset(), - (this.lastTime = 0), - (this.thisTime = 0), - (this.lastInput = void 0), - (this.lastInputTime = Date.now()), - (this.doubleDelta = 300), - (this.codesPossible = []); - } - update() { - Me.sys.update(); - } - defineCodes() { - this.codes = { - keyboard: [ - ["m", "i", "c", "r", "o", "s", "o", "f", "t"], - ["e", "d", "g", "e"], - ["s", "a", "f", "e"], - [ - "arrowup", - "arrowup", - "arrowdown", - "arrowdown", - "arrowleft", - "arrowright", - "arrowleft", - "arrowright", - "b", - "a", - ], - ["b", "i", "g"], - ], - directional: [ - [ - "left", - "down", - "right", - "stop", - "left", - "down", - "right", - "stop", - ], - ["stop", "down", "stop", "down"], - ["stop", "right", "down", "left"], - [ - "stop", - "stop", - "down", - "down", - "left", - "right", - "left", - "right", - ], - ["stop", "stop", "stop", "stop"], - ], - }; - } - routeInput(e, t = !1, s = !0) { - if (te.sys.session.flyoutActive) - return void (e === He.Settings && this.inputSettings()); - const i = te.sys.session.inputType; - let a = !1; - if ( - (s && (a = this.registerDoubleInput(e)), - (i !== ee.Mouse && i !== ee.Touch) || e !== He.Toggle || a) - ) - if ( - ((i !== ee.Keyboard && i !== ee.Touch) || - e !== He.Down || - t || - !a - ? i === ee.Touch && a && (e = He.Toggle) - : (e = He.Boost), - te.sys.session.state !== Q.Menu || - (e !== He.Left && e !== He.Right)) - ) - switch (e) { - case He.Toggle: - this.inputToggle(); - break; - case He.Settings: - this.inputSettings(); - break; - case He.Reset: - Ze.sys.changeGameState(Q.Menu); - break; - default: - ze.sys.routeAction(e, t); - } - else - switch (e) { - case He.Left: - ze.sys.changeCharacter(-1); - break; - case He.Right: - ze.sys.changeCharacter(1); - } - } - registerDoubleInput(e) { - this.thisTime = Date.now(); - let t = !1; - return ( - this.thisTime - this.lastTime <= this.doubleDelta && - this.lastInput === e && - ((t = !0), (e = void 0)), - (this.lastTime = this.thisTime), - (this.lastInput = e), - t - ); - } - changeInputMethod(e) { - te.sys.session.inputType === e || - this.lastInputTime + 100 > Date.now() || - ((this.lastInputTime = Date.now()), - (te.sys.session.inputType = e), - ue.sys.updateInputTypeUI()); - } - inputToggle() { - const e = te.sys.session.state; - e === Q.Play - ? Ze.sys.changeGameState(Q.Pause) - : e === Q.Pause || e === Q.Menu - ? Ze.sys.changeGameState(Q.Play) - : e === Q.Over && Ze.sys.changeGameState(Q.Menu); - } - inputSettings() { - te.sys.session.state === Q.Play && Ze.sys.changeGameState(Q.Pause), - document.dispatchEvent(new CustomEvent(lt)); - } - checkCheatCode(e) { - const t = te.sys.session.inputType; - if (te.sys.session.state !== Q.Menu) return; - const s = - t === ee.Keyboard ? this.codes.keyboard : this.codes.directional; - (this.codesPossible = this.codesPossible.filter( - (t) => e === s[t.idx][t.pos] - )), - s - .filter((t) => e === t[0]) - .forEach((e) => { - this.codesPossible.push({ - idx: s.indexOf(e), - pos: 0, - }); - }), - this.codesPossible.some((e) => { - if ((e.pos++, e.pos === s[e.idx].length)) { - let t = "code"; - switch (e.idx) { - case 0: - this.cheat("lives"), (t = "cheatcode"); - break; - case 1: - this.cheat("boosts"), (t = "cheatcode"); - break; - case 2: - this.cheat("safety"), (t = "cheatcode"); - break; - case 3: - ze.sys.changeCharacter(7, !0); - break; - case 4: - ze.sys.scale = 2; - } - ue.sys.sendNotification(t); - } - }); - } - cheat(e, t = !0) { - const s = te.sys.game.cheat; - if (t && te.sys.session.state === Q.Menu) - switch (((s.used = !0), (s[e] = !0), e)) { - case "lives": - case "boosts": - te.sys.game[e].current = 3; - break; - case "safety": - ze.sys.collectFriend(); - } - else - switch (((s[e] = !1), e)) { - case "boosts": - te.sys.game[e].current = 0; - break; - case "safety": - ze.sys.removeFriend(); - } - s.lives || s.boosts || s.safety || (s.used = !1), - ue.sys.updateIcons(); - } - } - Re(Ae, "sys", null); - class Ne { - constructor() { - if (Ne.sys) return Ne.sys; - Ne.sys = this; - } - update() { - this.checkCollisions(); - } - checkCollisions() { - const e = ze.sys, - t = "air" in e.dist, - s = "boost" in e.dist, - i = this.filterVisible(ke.sys.top.concat(ke.sys.btm)), - a = i.length; - - function o(e, t) { - if ( - !(e.y < 16) && - Ne.sys.collision(t, e) && - !t.objectsHit.includes(e) - ) - switch ((t.objectsHit.push(e), e.type)) { - case "wall": - case "snag": - case "snagsml": - case "snagtall": - case "block": - case "blockbig": - case "ramp": - return void t.crash(); - default: - return void t.slow(); - } - } - for (let n = 0; n < a; n++) { - const a = i[n]; - if (!this.collision(e, a) || a.hit || t) - "gate" === a.type && !a.hit && a.y < e.y - ? (e.failGate(a.gateId), - ke.sys.denyGate(a.gateId), - (a.hit = !0)) - : "ambient" === a.type && - "hidden" === a.anim && - a.y + 32 < e.y - ? ((a.anim = "oneshot"), (a.time = 0)) - : "lure" === a.type && - a.hit && - a.y + 192 < e.y && - (ke.sys.buildObject("foe", a.x, a.y + 32, "chase"), - (a.sleep = !0)); - else { - if (((a.hit = !0), e.swapped)) - return ( - "lure" === a.type && - ke.sys.buildObject("foe", a.x, a.y, "chase"), - void (a.sleep = !0) - ); - switch (a.type) { - case "wall": - case "snag": - case "snagsml": - case "snagtall": - case "block": - case "blockbig": - case "marker": - e.crash(); - break; - case "slow": - case "slowbig": - case "bump": - case "bumpbig": - e.slow(); - break; - case "spin": - case "spiral": - case "guide": - e.spin(); - break; - case "boost": - e.collectBoost(), this.collectAnim(a); - break; - case "ramp": - s && te.sys.session.settings.mode !== q.TimeTrial - ? e.air(1600) - : te.sys.session.settings.mode === q.TimeTrial - ? e.air(576) - : e.air(1080); - break; - case "life": - e.collectLife(), this.collectAnim(a); - break; - case "coin": - e.collectCoin(), this.collectAnim(a); - break; - case "friend": - e.collectFriend(), this.collectAnim(a); - break; - case "gate": { - e.passGate(a.gateId); - const t = ke.sys.buildObject("ambient", e.x, e.y); - (t.hit = !0), - this.collectAnim(t), - ke.sys.confirmGate(a.gateId); - break; - } - case "finish": - e.finishline(); - break; - case "checkpoint": - ke.sys.npc.forEach((e) => { - e.crash(); - }), - ke.sys.foe.forEach((e) => { - e.crash(); - }), - te.sys.saveGameStats(), - e.boost(!0); - break; - case "swap": - e.swap(); - } - } - ke.sys.npc.forEach((e) => { - o(a, e); - }), - ke.sys.foe.forEach((e) => { - o(a, e); - }); - } - const n = ke.sys.foe.length, - r = ke.sys.npc.length; - for (let t = 0; t < n; t++) { - const s = ke.sys.foe[t]; - this.collision(s, e) && - !s.hit && - s.timer.crash <= 0 && - (te.sys.game.shields.current > 0 - ? (s.crash(), e.useShield()) - : e.swapped - ? s.crash() - : (s.ending(), (ke.sys.endingFoe = s), e.lose())); - for (let e = 0; e < r; e++) { - const t = ke.sys.npc[e]; - this.collision(s, t) && t.timer.crash <= 0 && t.crash(); - } - } - if (!t) - for (let t = 0; t < r; t++) { - const i = ke.sys.npc[t]; - this.collision(i, e) && - i.timer.crash <= 0 && - (s || e.swapped - ? i.crash() - : te.sys.game.shields.current > 0 - ? (i.crash(), e.useShield()) - : e.crash()); - } - } - filterVisible(e) { - return e.filter((e) => - (function (e) { - return ( - (e.y > -64 && - e.y < te.sys.session.h + 64 && - e.x > -64 && - e.x < te.sys.session.w + 64) || - "gate" === e.type - ); - })(e) - ); - } - collectAnim(e) { - (e.pickup = !0), (e.time = 0), (e.anim = "ending"), (e.fx = void 0); - } - collision(e, t) { - return ( - !(t.hitbox.x + t.hitbox.w < e.hitbox.x) && - !(e.hitbox.x + e.hitbox.w < t.hitbox.x) && - !(t.hitbox.y + t.hitbox.h < e.hitbox.y) && - !(e.hitbox.y + e.hitbox.h < t.hitbox.y) - ); - } - } - var Fe, Be, Ve; - (Ve = null), - (Be = "sys") in (Fe = Ne) - ? Object.defineProperty(Fe, Be, { - value: Ve, - enumerable: !0, - configurable: !0, - writable: !0, - }) - : (Fe[Be] = Ve); - class Ze { - constructor() { - if (Ze.sys) return Ze.sys; - (Ze.sys = this), - new te(), - new Y(), - new Ae(), - new pe(), - new be(), - new de(), - new ke(), - new Ne(), - new ue(), - de.sys.createBackground(), - this.updateTheme(te.sys.session.settings.theme, !1), - this.reflowCanvas(), - this.changeGameState(Q.Menu); - } - gameLoop(e) { - if ((Ae.sys.update(), te.sys.session.state !== Q.Pause)) - switch ((te.sys.update(e), te.sys.session.state)) { - case Q.Play: - this.updatePlay(); - break; - case Q.Menu: - this.updateMenu(); - break; - case Q.Over: - this.updateOver(); - } - } - changeGameState(e) { - const t = te.sys.session.state; - switch (((te.sys.session.state = e), e)) { - case Q.Pause: - this.triggerPause(); - break; - case Q.Play: - this.triggerPlay(t); - break; - case Q.Menu: - this.triggerMenu(); - break; - case Q.Over: - this.triggerOver(); - } - this.checkForcedColors(), - re.dispatch( - (function (e) { - return { - type: ae.UPDATE_GAME_STATE, - gameState: e, - }; - })(e) - ); - } - triggerMenu() { - ue.sys.hideNotification(), - te.sys.saveGameStats(), - te.sys.resetGameData(), - de.sys.defineCanvas(), - de.sys.clearCanvas(), - ke.sys.reset(), - ue.sys.showMenuScreen(), - Ae.sys.reset(); - } - triggerPlay(e) { - e === Q.Menu && this.triggerStart(), - ue.sys.hideOverlayUI(), - ue.sys.refreshDisplay(); - } - triggerStart() { - (te.sys.game.time.elapsed = 0), - ze.sys.unlockForNewGame(), - ke.sys.buildStartScene(), - ue.sys.hideNotification(); - } - triggerPause() { - ue.sys.showPauseScreen(); - } - triggerOver() { - ke.sys.all.forEach((e) => { - "ending" === e.anim && (e.sleep = !0); - }), - ue.sys.showOverScreen(), - (te.sys.session.settings.mode !== q.TimeTrial || - te.sys.game.finish) && - te.sys.saveGameStats(); - const e = te.sys.game.highScore ? "score" : "share"; - ue.sys.sendNotification(e, 1e4); - } - updateMenu() { - this.render(); - } - updatePlay() { - Ne.sys.update(), - ke.sys.update(), - ke.sys.all.forEach((e) => { - e.update(); - }), - ke.sys.all.forEach((e) => { - e.move(ze.sys.speed); - }), - ue.sys.updateScore(), - te.sys.updateDistances(ze.sys.speed.x, ze.sys.speed.y), - de.sys.updateBackground(0, 0, ze.sys.speed), - this.render(); - } - updateOver() { - const e = ke.sys.endingFoe; - e && e.hit && "paused" !== e.anim && (e.update(), this.render()); - } - updateMode() { - ue.sys.updateGameModeUI(), ue.sys.sendNotification("mode"); - } - updateTheme(e, t = !1) { - pe.sys.loadNewTheme(e), - (async () => { - await pe.sys.objectsTemp.decode(), - await pe.sys.playerTemp.decode(), - await pe.sys.bgTemp.decode(), - pe.sys.setNewTheme(e), - ue.sys.updateIcons(), - ue.sys.updateGameTitleUI(), - t && ue.sys.sendNotification("theme"); - })(); - } - reflowCanvas() { - te.sys.session.state === Q.Play && this.changeGameState(Q.Pause); - const e = te.sys.session.x, - t = te.sys.session.y; - de.sys.defineCanvas(); - const s = te.sys.session.x - e, - i = te.sys.session.y - t; - ke.sys.calcClusterSlots(), - ke.sys.all.forEach((e) => { - e.shift(s, i); - }), - de.sys.updateBackground(s, i, { - x: 0, - y: 0, - }), - this.render(); - } - checkForcedColors() { - const e = window.matchMedia("(forced-colors:active)"); - te.sys.session.forcedColors = e.matches; - } - render() { - if ((de.sys.clearCanvas(), te.sys.session.state === Q.Menu)) - return void ze.sys.renderCharacterSelection(); - const e = ke.sys.all.filter(function (e) { - return ( - e.x > -96 && - e.x < te.sys.session.w + 96 && - e.y < te.sys.session.h + 96 - ); - }); - e.forEach((e) => { - e.draw(); - }), - te.sys.session.settings.hitbox && - e.forEach((e) => { - de.sys.drawHitbox(e.type, e.hitbox); - }), - te.sys.session.settings.mode !== q.Endless && - de.sys.drawBoundaries(); - } - } - !(function (e, t, s) { - t in e - ? Object.defineProperty(e, t, { - value: s, - enumerable: !0, - configurable: !0, - writable: !0, - }) - : (e[t] = s); - })(Ze, "sys", null); - var je = s(325), - qe = s(33832); - - function Ge(e) { - return a.createElement( - "svg", - { - className: e, - xmlns: "https://www.w3.org/2000/svg", - viewBox: "0 0 2048 2048", - width: "16", - height: "16", - }, - a.createElement("path", { - d: "M1783 384q30 0 55 12t43 31 28 46 11 55v864q0 29-10 55t-29 45-43 32-55 12H137q-30 0-55-12t-43-31-28-46-11-55V528q0-28 10-54t29-46 43-32 55-12h1646zm9 144q0-11-9-16H137q-9 5-9 16v864q0 11 9 16h1646q9-5 9-16V528zM384 768H256V640h128v128zM256 896h256v128H256V896zm1152 0h256v128h-256V896zm0 256h256v128h-256v-128zm-1152 0h256v128H256v-128zm384 0h640v128H640v-128zm0-384H512V640h128v128zm0 128h128v128H640V896zm256 0h128v128H896V896zm256 0h128v128h-128V896zM896 768H768V640h128v128zm256 0h-128V640h128v128zm256 0h-128V640h128v128zm128-128h128v128h-128V640z", - }) - ); - } - - function Ke(e) { - return a.createElement( - "svg", - { - className: e, - xmlns: "https://www.w3.org/2000/svg", - viewBox: "0 0 2048 2048", - width: "16", - height: "16", - }, - a.createElement("path", { - d: "M1184 0q100 0 187 37t153 103 102 152 38 188v864q0 97-25 187t-71 168-110 143-142 110-169 71-187 25q-97 0-187-25t-168-71-143-110-110-142-71-169-25-187V480q0-100 37-187t103-153T548 38 736 0h448zm352 480q0-73-27-137t-76-112-112-75-137-28h-160v640H896V128H736q-73 0-137 27t-112 76-75 112-28 137v864q0 119 45 224t124 183 183 123 224 46q119 0 224-45t183-124 123-183 46-224V480z", - }) - ); - } - - function Ue(e) { - return a.createElement( - "svg", - { - className: e, - xmlns: "https://www.w3.org/2000/svg", - viewBox: "0 0 2048 2048", - width: "16", - height: "16", - }, - a.createElement("path", { - d: "M1600 896q40 0 75 15t61 41 41 61 15 75v384q0 119-45 224t-124 183-183 123-224 46q-144 0-268-55t-226-156l-472-472q-28-28-43-65t-15-76q0-42 16-78t43-64 63-42 78-16q82 0 141 59l107 106V853q-59-28-106-70t-80-95-52-114-18-126q0-93 35-174t96-143 142-96T832 0q93 0 174 35t143 96 96 142 35 175q0 93-37 178t-105 149q35 9 63 30t49 52q45-25 94-25 50 0 93 23t69 66q45-25 94-25zM512 448q0 75 34 143t94 113V448q0-40 15-75t41-61 61-41 75-15q40 0 75 15t61 41 41 61 15 75v256q60-45 94-113t34-143q0-66-25-124t-69-101-102-69-124-26q-66 0-124 25t-102 69-69 102-25 124zm1152 640q0-26-19-45t-45-19q-34 0-47 19t-16 47-1 62 0 61-16 48-48 19q-37 0-50-23t-16-60 2-77 2-77-15-59-51-24q-34 0-47 19t-16 47-1 62 0 61-16 48-48 19q-37 0-50-23t-16-60 2-77 2-77-15-59-51-24q-34 0-47 19t-16 47-1 62 0 61-16 48-48 19q-26 0-45-19t-19-45V448q0-26-19-45t-45-19q-26 0-45 19t-19 45v787q0 23-8 42t-23 35-35 23-42 9q-22 0-42-8t-37-24l-139-139q-21-21-50-21t-50 21-22 51q0 29 21 50l472 473q84 84 184 128t219 45q93 0 174-35t142-96 96-142 36-175v-384z", - }) - ); - } - - function We(e) { - return a.createElement( - "svg", - { - className: e, - xmlns: "https://www.w3.org/2000/svg", - viewBox: "0 0 2048 2048", - width: "16", - height: "16", - }, - a.createElement("path", { - d: "M1728 480q17 14 31 31t26 38q35 68 64 139t59 142q37 92 70 186t52 193q8 44 13 88t5 89q0 59-13 115t-45 107q-15 22-37 44t-48 39-56 28-57 11q-31 0-69-27t-77-64-71-76-54-62q-22-25-46-55t-52-49l-24-17q-20-14-42-21t-46-10-48-3-47-1H785q-24 0-47 4t-46 10-43 21l-24 17q-27 20-51 49t-47 55q-21 23-54 62t-71 76-76 64-70 27q-28 0-57-11t-55-28-49-39-37-44q-32-51-45-107T0 1386q0-45 5-89t13-88q8-46 23-100t36-114 43-120 48-119 49-110 46-96q11-20 25-37t32-33v-25q0-12 2-22t9-20 20-18q11-7 35-15t52-17 54-15 40-10q38-8 77-12t77-4q15 0 33 1t33 9h1q23 12 45 25t45 26h362q23-13 40-24t34-19 36-13 47-5q38 0 77 4t77 12q14 3 40 9t53 15 52 17 36 16q25 17 28 37t3 48zm69 1120q36-10 60-32t38-51 19-63 6-67q0-39-4-78t-12-78q-20-106-58-208t-80-202q-23-54-45-108t-50-106q-8-15-20-23t-23-18-20-20-8-32v-20q-57-20-115-32t-119-12h-11q-6 0-11 1-38 22-57 34t-37 18-38 7-61 1H897q-40 0-61-1t-38-7-37-18-57-34q-5-1-11-1t-11 0q-60 0-118 12t-116 32q0 28-5 44t-30 33q-11 6-20 15t-16 21q-28 51-50 105t-45 109q-41 99-79 201t-59 209q-8 38-12 77t-4 79q0 33 5 66t20 63 37 51 60 33q15-9 40-32t52-52 51-56 38-44q10-11 26-30t35-38 35-36 31-25q5-3 9-6t9-6q28-21 59-32t63-17 66-7 68-2h384q34 0 67 1t66 7 64 17 59 33q5 3 9 6t9 6q13 8 30 24t36 36 34 39 27 30q15 17 38 44t49 54 51 51 42 35zm-773-960q26 0 45 19t19 45q0 26-19 45t-45 19q-26 0-45-19t-19-45q0-26 19-45t45-19z", - }) - ); - } - - function $e() { - return ($e = - Object.assign || - function (e) { - for (var t = 1; t < arguments.length; t++) { - var s = arguments[t]; - for (var i in s) - Object.prototype.hasOwnProperty.call(s, i) && (e[i] = s[i]); - } - return e; - }).apply(this, arguments); - } - - function Xe(e, t, s) { - return ( - t in e - ? Object.defineProperty(e, t, { - value: s, - enumerable: !0, - configurable: !0, - writable: !0, - }) - : (e[t] = s), - e - ); - } - - function Ye(e) { - e.stopPropagation(); - } - class Je extends O.Z { - constructor(...e) { - super(...e), - Xe(this, "handledProps", { - managedClasses: void 0, - }), - Xe( - this, - "inputRefMap", - new Map([ - ["keyboard", a.createRef()], - ["mouse", a.createRef()], - ["touch", a.createRef()], - ["controller", a.createRef()], - ]) - ), - Xe(this, "state", { - selectedInput: "keyboard", - }), - Xe(this, "renderHowToPlayContent", () => - a.createElement( - a.Fragment, - null, - a.createElement( - x.nv, - { - className: - this.props.managedClasses.howToPlayModal_paragraph, - }, - a.createElement( - "strong", - null, - Z.pz.getString("endlessModeTitleInline") - ), - " ", - Z.pz.getString("howToPlayEndless") - ), - a.createElement( - x.nv, - { - className: - this.props.managedClasses.howToPlayModal_paragraph, - }, - a.createElement( - "strong", - null, - Z.pz.getString("timetrialModeTitleInline") - ), - " ", - Z.pz.getString("howToPlayTimeTrial") - ), - a.createElement( - x.nv, - { - className: - this.props.managedClasses.howToPlayModal_paragraph, - }, - a.createElement( - "strong", - null, - Z.pz.getString("zigzagModeTitleInline") - ), - " ", - Z.pz.getString("howToPlayZigZag") - ), - this.renderInputSection() - ) - ), - Xe(this, "onInputIconKeydown", (e) => { - let t = this.state.selectedInput; - if ( - e.keyCode === qe.mW.arrowLeft || - e.keyCode === qe.mW.arrowUp - ) - switch (this.state.selectedInput) { - case "keyboard": - return; - case "mouse": - t = "keyboard"; - break; - case "touch": - t = "mouse"; - break; - case "controller": - t = "touch"; - } - else { - if ( - e.keyCode !== qe.mW.arrowRight && - e.keyCode !== qe.mW.arrowDown - ) - return; - switch (this.state.selectedInput) { - case "keyboard": - t = "mouse"; - break; - case "mouse": - t = "touch"; - break; - case "touch": - t = "controller"; - break; - case "controller": - return; - } - } - e.stopPropagation(), - this.setState({ - selectedInput: t, - }); - }); - } - render() { - return a.createElement( - je.S, - $e({}, this.unhandledProps(), { - onKeyDown: Ye, - content: this.renderHowToPlayContent, - }) - ); - } - componentDidUpdate(e, t) { - if (t.selectedInput !== this.state.selectedInput) { - const e = this.inputRefMap.get(this.state.selectedInput); - if (e.current) { - const t = (0, i.findDOMNode)(e.current); - t && "function" == typeof t.focus && t.focus(); - } - } - } - renderInputSection() { - return a.createElement( - "div", - null, - this.renderInputIcons(), - this.getInputDescription(this.state.selectedInput) - ); - } - getInputDescription(e) { - const t = this.props.managedClasses.howToPlayModal_icon, - s = this.props.managedClasses.howToPlayModal_iconContainer, - i = this.props.managedClasses.howToPlayModal_listItem; - let o, n, r; - switch (e) { - case "touch": - (o = "howToPlayTouchMovement"), - (n = "howToPlayTouchBoost"), - (r = "howToPlayTouchRefresh"); - break; - case "mouse": - (o = "howToPlayMouseMovement"), - (n = "howToPlayMouseBoost"), - (r = "howToPlayMouseRefresh"); - break; - case "controller": - (o = "howToPlayControllerMovement"), - (n = "howToPlayControllerBoost"), - (r = "howToPlayControllerRefresh"); - break; - default: - case "keyboard": - (o = "howToPlayKeyboardMovement"), - (n = "howToPlayKeyboardBoost"), - (r = "howToPlayKeyboardRefresh"); - } - return a.createElement( - "ul", - { - className: - this.props.managedClasses.howToPlayModal_bulletedList, - }, - a.createElement( - "li", - { - className: i, - }, - a.createElement( - "div", - { - "aria-hidden": !0, - className: s, - }, - ((l = t), - a.createElement( - "svg", - { - width: 20, - height: 20, - viewBox: "0 0 20 20", - className: l, - }, - a.createElement("path", { - d: "M7.15 4.35c.2.2.5.2.7 0L9.5 2.71V6.5a.5.5 0 001 0V2.7l1.65 1.65a.5.5 0 00.7-.7l-2.5-2.5a.5.5 0 00-.7 0l-2.5 2.5a.5.5 0 000 .7z", - }), - a.createElement("path", { - d: "M4.35 7.85a.5.5 0 10-.7-.7l-2.5 2.5a.5.5 0 000 .7l2.5 2.5a.5.5 0 00.7-.7L2.71 10.5H6.5a.5.5 0 000-1H2.7l1.65-1.65z", - }), - a.createElement("path", { - d: "M15.65 7.85a.5.5 0 01.7-.7l2.5 2.5c.2.2.2.5 0 .7l-2.5 2.5a.5.5 0 01-.7-.7l1.64-1.65H13.5a.5.5 0 010-1h3.8l-1.65-1.65z", - }), - a.createElement("path", { - d: "M7.85 15.65a.5.5 0 00-.7.7l2.5 2.5c.2.2.5.2.7 0l2.5-2.5a.5.5 0 00-.7-.7l-1.65 1.64V13.5a.5.5 0 00-1 0v3.8l-1.65-1.65z", - }) - )) - ), - Z.pz.getString(o) - ), - a.createElement( - "li", - { - className: i, - }, - a.createElement( - "div", - { - "aria-hidden": !0, - className: s, - }, - (function (e) { - return a.createElement( - "svg", - { - width: "28", - height: "28", - viewBox: "0 0 28 28", - className: e, - xmlns: "http://www.w3.org/2000/svg", - }, - a.createElement("path", { - d: "M9.28568 2.52142C9.38509 2.21078 9.67385 2 10 2H18.75C18.998 2 19.23 2.12264 19.3697 2.32761C19.5094 2.53258 19.5388 2.79337 19.4481 3.02424L17.1004 8.99999H22.25C22.5476 8.99999 22.8171 9.17598 22.9367 9.44849C23.0564 9.72101 23.0035 10.0385 22.8021 10.2576L8.55213 25.7576C8.32001 26.0101 7.94619 26.0729 7.64426 25.9102C7.34233 25.7476 7.18921 25.4008 7.2724 25.0681L9.53942 16H6C5.76052 16 5.53543 15.8856 5.39423 15.6922C5.25303 15.4987 5.2127 15.2495 5.28569 15.0214L9.28568 2.52142Z", - }) - ); - })(t) - ), - Z.pz.getString(n) - ), - a.createElement( - "li", - { - className: i, - }, - a.createElement( - "div", - { - "aria-hidden": !0, - className: s, - }, - (function (e) { - return a.createElement( - "svg", - { - width: 20, - height: 20, - viewBox: "0 0 20 20", - className: e, - }, - a.createElement("path", { - d: "M3.07 9.05a7 7 0 0112.55-3.22l.13.17H12.5a.5.5 0 100 1h4a.5.5 0 00.5-.5v-4a.5.5 0 00-1 0v2.2a8 8 0 101.99 4.77.5.5 0 00-1 .08 7 7 0 11-13.92-.5z", - }) - ); - })(t) - ), - Z.pz.getString(r) - ) - ); - var l; - } - renderInputIcons() { - const e = [ - [Ge, "keyboard"], - [Ke, "mouse"], - [Ue, "touch"], - [We, "controller"], - ].map((e) => { - const t = e[0], - s = e[1], - i = this.state.selectedInput === s; - let o = this.props.managedClasses.howToPlayModal_inputButton; - return ( - i && - (o += ` ${this.props.managedClasses.howToPlayModal_inputButton__selected}`), - a.createElement( - k.XC, - { - role: "radio", - key: s, - innerRef: this.inputRefMap.get(s), - onClick: () => - this.setState({ - selectedInput: s, - }), - onKeyDown: this.onInputIconKeydown, - className: o, - "aria-checked": i, - tabIndex: i ? 0 : -1, - }, - t("") - ) - ); - }); - return a.createElement( - "div", - { - className: - this.props.managedClasses.howToPlayModal_inputButtonGroup, - role: "radiogroup", - }, - e - ); - } - } - var Qe = s(53363), - et = s(58934); - const tt = { - howToPlayModal: {}, - howToPlayModal_bulletedList: { - listStyle: "none", - color: p.CH, - }, - howToPlayModal_listItem: { - ...(0, Qe.Sh)("t7"), - display: "flex", - alignItems: "center", - marginBottom: "0.25em", - }, - howToPlayModal_icon: { - color: p.CH, - fill: "currentColor", - padding: "4px", - height: "16px", - width: "16px", - }, - howToPlayModal_iconContainer: { - marginInlineEnd: "12px", - display: "inline-block", - }, - howToPlayModal_inputButton: {}, - howToPlayModal_inputButton__selected: { - backgroundColor: et.Ob, - }, - howToPlayModal_inputButtonGroup: { - display: "flex", - alignItems: "center", - justifyContent: "center", - marginTop: "12px", - marginBottom: "8px", - }, - howToPlayModal_paragraph: { - marginBottom: "0.5em", - }, - }, - st = (0, c.ZP)(tt)(Je); - - function it() { - return (it = - Object.assign || - function (e) { - for (var t = 1; t < arguments.length; t++) { - var s = arguments[t]; - for (var i in s) - Object.prototype.hasOwnProperty.call(s, i) && (e[i] = s[i]); - } - return e; - }).apply(this, arguments); - } - - function at(e, t, s) { - return ( - t in e - ? Object.defineProperty(e, t, { - value: s, - enumerable: !0, - configurable: !0, - writable: !0, - }) - : (e[t] = s), - e - ); - } - - function ot(e) { - e.stopPropagation(); - } - const nt = "#38c2ee", - rt = { - ...l.fn, - neutralPalette: (0, A.D)((0, H.in)(nt)), - }, - lt = "toggleSettingsMenu"; - class ht extends O.Z { - constructor(e) { - super(e), - at(this, "handledProps", { - setModal: void 0, - dispatch: void 0, - currentCharacter: void 0, - gameState: void 0, - highVisibilityMode: void 0, - gameSpeed: void 0, - mode: void 0, - theme: void 0, - endless_bestScore: void 0, - timetrial_bestScore: void 0, - zigzag_bestScore: void 0, - }), - at(this, "buttonRef", a.createRef()), - at(this, "onHighVisiblityModeChange", () => { - const e = !this.props.highVisibilityMode; - he.saveHighVisibilityMode(e), - this.props.dispatch( - oe({ - ...re.getState(), - highVisibilityMode: e, - }) - ), - (te.sys.session.settings.hitbox = e), - Ze.sys.render(); - }), - at(this, "onReducedSpeedModeChange", () => { - const e = this.props.gameSpeed === se ? 0.5 : se; - he.saveReducedSpeedMode(e !== se), - this.props.dispatch( - oe({ - ...re.getState(), - gameSpeed: e, - }) - ); - }), - at(this, "onGameModeChange", (e) => { - this.props.dispatch( - oe({ - ...re.getState(), - mode: e, - }) - ), - Ze.sys.changeGameState(Q.Menu), - Ze.sys.updateMode(), - he.saveGameMode(e); - }), - at(this, "onGameThemeChange", (newTheme) => { - this.props.dispatch( - oe({ - ...re.getState(), - theme: newTheme, - }) - ), - Ze.sys.updateTheme(newTheme), - he.saveGameTheme(newTheme); - }), - at(this, "onNewGameClick", () => { - Ze.sys.changeGameState(Q.Menu); - }), - at(this, "copyShareLinkToClipboard", () => { - $(Z.pz.getString("shareLink")), - this.setState({ - shareLinkCopied: !0, - }); - }), - at(this, "onHamburgerMenuClick", (e) => { - "function" == typeof this.props.onClick && - this.props.onClick(e), - this.toggleSettingsMenu(); - }), - at(this, "toggleSettingsMenu", () => { - this.state.menuOpen || - this.props.gameState !== Q.Play || - Ze.sys.changeGameState(Q.Pause), - this.setState({ - menuOpen: !this.state.menuOpen, - shareLinkCopied: !1, - }), - (te.sys.session.flyoutActive = !te.sys.session.flyoutActive); - }), - at(this, "dismissMenu", () => { - this.setState({ - menuOpen: !1, - shareLinkCopied: !1, - }), - (te.sys.session.flyoutActive = !1); - }), - at(this, "closeModal", () => { - this.props.setModal(null); - }), - at(this, "openHowToPlayModal", () => { - this.props.setModal( - a.createElement(st, { - onClick: ot, - label: Z.pz.getString("howToPlayDialogTitle"), - accept: this.closeModal, - acceptMessage: Z.pz.getString("close"), - dismiss: this.closeModal, - closeButtonToolTip: Z.pz.getString("close"), - }) - ); - }), - at(this, "openGameCreditsModal", () => { - this.props.setModal( - a.createElement(je.S, { - onClick: ot, - label: Z.pz.getString("gameCreditsDialogTitle"), - accept: this.closeModal, - acceptMessage: Z.pz.getString("close"), - dismiss: this.closeModal, - closeButtonToolTip: Z.pz.getString("close"), - content: this.getGameCreditsModalBody, - }) - ); - }), - at(this, "getGameCreditsModalBody", () => - a.createElement( - a.Fragment, - null, - a.createElement( - x.nv, - null, - "Parker Young, Scott Porterfield, Patrick Evan Little, Connor Smith, William Devereux, Adina Shanholtz" - ), - a.createElement( - S.X6, - { - className: - this.props.managedClasses - .settingsHamburgerMenu_creditsTable_specialThanks, - size: C.Gm._7, - tag: C.lb.h3, - }, - Z.pz.getString("specialThanks") - ), - a.createElement( - x.nv, - null, - "Jonathan Merrin, Charles Duval, Addison Kaufmann, Rachel Weil, Joseph Oak, Amanda Velasco Gallardo, Ramya Challa, Chris Pirih" - ) - ) - ), - at(this, "confirmResetStats", () => { - this.props.setModal( - a.createElement(N.Z, { - title: Z.pz.getString("resetAllStatsDialogTitle"), - closeButtonTooltip: Z.pz.getString("close"), - dialogText: Z.pz.getString("resetAllStatsDialogText"), - confirmText: Z.pz.getString("resetAllStats"), - rejectText: Z.pz.getString("cancel"), - handleConfirm: this.resetStats, - handleReject: this.closeModal, - onClick: ot, - }) - ); - }), - at(this, "resetStats", () => { - this.props.dispatch(ne()), - he.resetAllStats(), - ue.sys.refreshDisplay(), - this.closeModal(); - location.reload(); // reload after stats are reset so that stale stats are not displayed - }), - (this.state = { - menuOpen: !1, - shareLinkCopied: !1, - }); - } - componentDidMount() { - document.addEventListener(lt, this.toggleSettingsMenu); - } - componentWillUnmount() { - document.removeEventListener(lt, this.toggleSettingsMenu); - } - render() { - return a.createElement( - a.Fragment, - null, - a.createElement( - n.h, - { - designSystem: rt, - }, - a.createElement( - v.ZP, - { - value: nt, - tag: null, - drawBackground: !1, - }, - a.createElement( - k.XC, - it({}, this.unhandledProps(), { - ref: this.buttonRef, - onClick: this.onHamburgerMenuClick, - className: (0, R.A)( - this.props.managedClasses.settingsHamburgerMenu - ), - }), - ((e = - this.props.managedClasses - .settingsHamburgerMenu_settingsButton), - a.createElement( - "svg", - { - width: 24, - height: 24, - viewBox: "0 0 24 24", - className: e, - xmlns: "http://www.w3.org/2000/svg", - }, - a.createElement("path", { - d: "M12.0124 2.25C12.7464 2.25846 13.4775 2.34326 14.1939 2.50304C14.5067 2.57279 14.7406 2.83351 14.7761 3.15196L14.9463 4.67881C15.0233 5.37986 15.6152 5.91084 16.3209 5.91158C16.5105 5.91188 16.6982 5.87238 16.8734 5.79483L18.2741 5.17956C18.5654 5.05159 18.9057 5.12136 19.1232 5.35362C20.1354 6.43464 20.8892 7.73115 21.3279 9.14558C21.4225 9.45058 21.3137 9.78203 21.0566 9.9715L19.8151 10.8866C19.461 11.1468 19.2518 11.56 19.2518 11.9995C19.2518 12.4389 19.461 12.8521 19.8159 13.1129L21.0585 14.0283C21.3156 14.2177 21.4246 14.5492 21.3299 14.8543C20.8914 16.2685 20.138 17.5649 19.1264 18.6461C18.9091 18.8783 18.569 18.9483 18.2777 18.8206L16.8714 18.2045C16.4691 18.0284 16.007 18.0542 15.6268 18.274C15.2466 18.4937 14.9935 18.8812 14.9452 19.3177L14.7761 20.8444C14.7413 21.1592 14.5124 21.4182 14.2043 21.4915C12.7558 21.8361 11.2467 21.8361 9.79828 21.4915C9.49015 21.4182 9.26129 21.1592 9.22643 20.8444L9.0576 19.32C9.00802 18.8843 8.75459 18.498 8.37467 18.279C7.99475 18.06 7.53345 18.0343 7.13244 18.2094L5.72582 18.8256C5.43446 18.9533 5.09428 18.8833 4.87703 18.6509C3.86487 17.5685 3.11144 16.2705 2.67344 14.8548C2.57911 14.5499 2.68811 14.2186 2.94509 14.0293L4.18842 13.1133C4.54256 12.8531 4.75172 12.4399 4.75172 12.0005C4.75172 11.561 4.54256 11.1478 4.18796 10.8873L2.94541 9.97285C2.68804 9.78345 2.57894 9.45178 2.67361 9.14658C3.11236 7.73215 3.86619 6.43564 4.87837 5.35462C5.09584 5.12236 5.43618 5.05259 5.72749 5.18056L7.12786 5.79572C7.53081 5.97256 7.99404 5.94585 8.37601 5.72269C8.75633 5.50209 9.00953 5.11422 9.05841 4.67764L9.22849 3.15196C9.26401 2.83335 9.49811 2.57254 9.81105 2.50294C10.5283 2.34342 11.2602 2.25865 12.0124 2.25ZM11.9999 8.99995C10.3431 8.99995 8.99994 10.3431 8.99994 12C8.99994 13.6568 10.3431 15 11.9999 15C13.6568 15 14.9999 13.6568 14.9999 12C14.9999 10.3431 13.6568 8.99995 11.9999 8.99995Z", - }) - )) - ) - ) - ), - this.renderMenu() - ); - var e; - } - getHighScoreString() { - return Z.pz.getStringF( - "bestScoreMenuDisplay", - te.sys.getHighScore(te.sys.session.settings.mode), - Z.pz.getString(te.sys.session.settings.mode + "Unit") - ); - } - - /** - * Renders the settings menu. - */ - renderMenu() { - const e = this.getHighScoreString(); - return a.createElement( - T.zg, - { - className: - this.props.managedClasses.settingsHamburgerMenu_flyout, - width: "280px", - height: "fit-content", - defaultVerticalPosition: M._k.bottom, - defaultHorizontalPosition: M.xN.left, - verticalPositioningMode: M.Lc.adjacent, - visible: this.state.menuOpen, - anchor: this.buttonRef, - onDismiss: this.dismissMenu, - onClick: ot, - }, - - // close menu button - this.renderCloseButton(), - - // new game button - a.createElement( - I.Of, - { - jssStyleSheet: y, - onClick: this.onNewGameClick, - }, - Z.pz.getString("newGame") - ), - a.createElement(P.iz, { - className: - this.props.managedClasses - .settingsHamburgerMenu_flyout_divider, - }), - - // game mode picker - this.renderGameModePicker(), - a.createElement( - x.nv, - { - className: - this.props.managedClasses - .settingsHamburgerMenu_flyout_score, - }, - ((t = - this.props.managedClasses - .settingsHamburgerMenu_flyout_scoreStar), - a.createElement( - "svg", - { - width: 20, - height: 20, - viewBox: "0 0 20 20", - className: t, - }, - a.createElement("path", { - d: "M9.1 2.9a1 1 0 011.8 0l1.93 3.91 4.31.63a1 1 0 01.56 1.7l-3.13 3.05.74 4.3a1 1 0 01-1.45 1.05L10 15.51l-3.86 2.03a1 1 0 01-1.45-1.05l.74-4.3L2.3 9.14a1 1 0 01.56-1.7l4.31-.63L9.1 2.9z", - }) - )), - Z.pz.getStringF("bestScoreFlyout", e) - ), - a.createElement(P.iz, { - className: - this.props.managedClasses - .settingsHamburgerMenu_flyout_divider, - }), - - // game theme settings - this.renderGameThemePicker(), - a.createElement(P.iz, { - className: - this.props.managedClasses - .settingsHamburgerMenu_flyout_divider, - }), - - // share game section - this.renderShareSection(), - a.createElement(P.iz, { - className: - this.props.managedClasses - .settingsHamburgerMenu_flyout_divider, - }), - - // game settings toggles - this.renderToggleSection(), - a.createElement(P.iz, { - className: - this.props.managedClasses - .settingsHamburgerMenu_flyout_divider, - }), - - // game tips, info, and reset - this.renderButtonSection() - ); - var t; - } - renderCloseButton() { - return a.createElement( - k.XC, - { - className: - this.props.managedClasses.settingsHamburgerMenu_closeButton, - title: Z.pz.getString("close"), - onClick: this.dismissMenu, - }, - (0, F.p)( - this.props.managedClasses.settingsHamburgerMenu_closeButton_icon - ) - ); - } - renderGameModePicker() { - const e = Z.pz.getString("zigzagTitle"), - t = Z.pz.getString("endlessTitle"), - s = Z.pz.getString("timetrialTitle"), - i = this.props.mode, - o = - this.props.gameState === Q.Pause || - this.props.gameState === Q.Play; - return a.createElement( - "div", - { - className: - this.props.managedClasses.settingsHamburgerMenu_flyout_row, - }, - a.createElement( - E.__, - { - className: - this.props.managedClasses - .settingsHamburgerMenu_flyout_label, - }, - o - ? Z.pz.getString("gameModeSelectLabelDisabled") - : Z.pz.getString("gameModeSelectLabel") - ), - a.createElement( - z.Ph, - { - jssStyleSheet: g.O0, - menu: g.gj, - onValueChange: this.onGameModeChange, - selectedItems: [i], - disabled: o, - }, - a.createElement(L.$m, { - id: q.Endless, - value: q.Endless, - displayString: t, - }), - a.createElement(L.$m, { - id: q.TimeTrial, - value: q.TimeTrial, - displayString: s, - }), - a.createElement(L.$m, { - id: q.ZigZag, - value: q.ZigZag, - displayString: e, - }) - ) - ); - } - /** - * Componment for the game theme picker. (e.g. surf vs ski) - * - * _Allows for theme change at any point in gameplay._ - */ - renderGameThemePicker() { - return a.createElement( - "div", - { - className: - this.props.managedClasses.settingsHamburgerMenu_flyout_row, - }, - a.createElement( - E.__, - { - className: - this.props.managedClasses - .settingsHamburgerMenu_flyout_label, - }, - Z.pz.getString("themeSelectLabel") - ), - a.createElement( - z.Ph, - { - jssStyleSheet: g.O0, - menu: g.gj, - onValueChange: this.onGameThemeChange, - selectedItems: [this.props.theme], - }, - a.createElement(L.$m, { - id: "surf", - value: "surf", - displayString: Z.pz.getString("surfTheme"), - }), - a.createElement(L.$m, { - id: "ski", - value: "ski", - displayString: Z.pz.getString("skiTheme"), - }) - ) - ); - } - renderToggleSection() { - const e = Z.pz.getString("on"), - t = Z.pz.getString("off"); - return a.createElement( - a.Fragment, - null, - a.createElement( - "div", - { - className: - this.props.managedClasses - .settingsHamburgerMenu_flyout_toggleRow, - }, - a.createElement( - E.__, - { - htmlFor: "highVisibilityMode", - }, - Z.pz.getString("highVisiblityModeToggleLabel") - ), - a.createElement(D.ZD, { - jssStyleSheet: m, - inputId: "highVisibilityMode", - selectedMessage: e, - unselectedMessage: t, - selected: this.props.highVisibilityMode, - onChange: this.onHighVisiblityModeChange, - }) - ), - a.createElement( - "div", - { - className: - this.props.managedClasses - .settingsHamburgerMenu_flyout_toggleRow, - }, - a.createElement( - E.__, - { - htmlFor: "reducedSpeedMode", - }, - Z.pz.getString("reducedSpeedModeToggleLabel") - ), - a.createElement(D.ZD, { - jssStyleSheet: m, - inputId: "reducedSpeedMode", - defaultChecked: !0, - selectedMessage: e, - unselectedMessage: t, - selected: this.props.gameSpeed !== se, - onChange: this.onReducedSpeedModeChange, - }) - ) - ); - } - renderShareSection() { - return a.createElement( - "div", - { - className: - this.props.managedClasses - .settingsHamburgerMenu_flyout_shareRow, - }, - a.createElement( - E.__, - { - htmlFor: "shareButton", - }, - Z.pz.getString("share") - ), - a.createElement( - _.ER, - { - id: "shareButton", - jssStyleSheet: f, - onClick: this.copyShareLinkToClipboard, - beforeContent: this.state.shareLinkCopied ? B : V, - }, - this.state.shareLinkCopied - ? Z.pz.getString("shareLinkCopied") - : Z.pz.getString("shareCopy") - ) - ); - } - renderButtonSection() { - return a.createElement( - "div", - { - className: - this.props.managedClasses - .settingsHamburgerMenu_flyout_buttonSection, - }, - a.createElement( - I.Of, - { - jssStyleSheet: f, - onClick: this.openHowToPlayModal, - }, - Z.pz.getString("howToPlayButton") - ), - a.createElement( - I.Of, - { - jssStyleSheet: f, - onClick: this.openGameCreditsModal, - }, - Z.pz.getString("gameCreditsButton") - ), - a.createElement( - I.Of, - { - jssStyleSheet: f, - onClick: this.confirmResetStats, - }, - Z.pz.getString("resetAllStats") - ) - ); - } - } - s(73120); - const ct = (0, o.$j)(function (e) { - return e; - })((0, c.ZP)(w)(ht)); - - function dt() { - const [e, t] = a.useState(null); - return a.createElement( - a.Fragment, - null, - a.createElement(ct, { - setModal: t, - }), - a.createElement(r.f, { - modal: e, - rootElement: document.getElementById("modal-root"), - }) - ); - } - window.addEventListener("beforeunload", () => { - he.recordUnload(); - }), - (window.onload = async function () { - await (async function () { - const e = await he.getAllStats(); - re.dispatch( - oe({ - zigzag_bestScore: e.zigzag_bestScore, - endless_bestScore: e.endless_bestScore, - highVisibilityMode: e.highVisibilityMode, - currentCharacter: e.currentCharacter, - mode: e.mode, - timetrial_bestScore: - e.timetrial_bestScore < 0 - ? -1 - : e.timetrial_bestScore / 1e3, - gameSpeed: e.reducedSpeedMode ? 0.5 : se, - mode: j(e.mode), - theme: K(e.theme), // newly added, these are from the old code - }) - ); - })(), - (function () { - const e = new Ze(); - let t = window.performance.now(); - const s = () => { - requestAnimationFrame(s); - const i = window.performance.now() - t; - e.gameLoop(i), (t = window.performance.now()); - }; - requestAnimationFrame(s), - (function (e, t) { - let s; - window.addEventListener("resize", function () { - void 0 !== s && (clearTimeout(s), (s = void 0)), - (s = window.setTimeout(function () { - (s = void 0), e(); - }, t)); - }); - })(function () { - e.reflowCanvas(); - }, 10), - document.addEventListener("visibilitychange", function () { - e.reflowCanvas(); - }); - })(), - (function () { - const e = document.getElementById("hamburger-container"); - (e.style.zIndex = h._p.CONTEXT_MENU.toString()), - i.render( - a.createElement( - o.zt, - { - store: re, - }, - a.createElement( - n.h, - { - designSystem: l.fn, - }, - a.createElement(dt, null) - ) - ), - e - ); - })(); - }); - }, - 73120: () => {}, - 81164: (e, t, s) => { - "use strict"; - s.d(t, { - C: () => h, - }); - var i, - a = s(11754), - o = s(37834), - n = s(89526), - r = s(12468); - !(function (e) { - (e.a = "a"), (e.button = "button"); - })(i || (i = {})); - class l extends a.Z { - constructor() { - super(...arguments), - (this.handledProps = { - disabled: void 0, - href: void 0, - managedClasses: void 0, - }); - } - render() { - return n.createElement( - this.tag, - Object.assign( - {}, - this.unhandledProps(), - { - className: this.generateClassNames(), - href: this.props.href || null, - }, - this.renderDisabledAttribute() - ), - this.props.children - ); - } - generateClassNames() { - const { button: e, button__disabled: t } = - this.props.managedClasses; - return super.generateClassNames( - (0, o.A)(e, [t, this.props.disabled]) - ); - } - renderDisabledAttribute() { - if (!0 === this.props.disabled) - return this.tag === i.a - ? { - "aria-disabled": !0, - } - : { - disabled: !0, - }; - } - get tag() { - return "string" == typeof this.props.href ? i.a : i.button; - } - } - (l.displayName = `${r.k}Button`), - (l.defaultProps = { - managedClasses: {}, - }); - const h = l; - }, - 65173: (e, t, s) => { - "use strict"; - s.d(t, { - ZP: () => i, - }); - const i = s(81164).C; - }, - 81545: (e, t, s) => { - "use strict"; - s.d(t, { - Z: () => u, - }); - var i = s(11754), - a = s(33832), - o = s(37834), - n = s(9453), - r = s(89526), - l = s(86577), - h = s(64829), - c = s(64702), - d = s(78943), - p = s.n(d), - b = s(12468); - class g extends i.Z { - constructor() { - super(...arguments), - (this.handledProps = { - describedBy: void 0, - label: void 0, - labelledBy: void 0, - contentWidth: void 0, - contentHeight: void 0, - modal: void 0, - managedClasses: void 0, - onDismiss: void 0, - visible: void 0, - focusTargetOnClose: void 0, - }), - (this.rootElement = r.createRef()), - (this.shouldAddKeyListener = (e) => !(!e.modal && !e.onDismiss)), - (this.handleDocumentKeyDown = (e) => { - if (!e.defaultPrevented && this.props.visible) - switch (e.keyCode) { - case a.Lp: - this.checkForSoftDismiss(e); - break; - case a.RN: - this.handleTabKeyDown(e); - } - }), - (this.checkForSoftDismiss = (e) => { - this.props.onDismiss && - "function" == typeof this.props.onDismiss && - this.props.visible && - this.props.onDismiss(e); - }), - (this.handleTabKeyDown = (e) => { - if (!this.props.modal) return; - const t = p()(this.rootElement.current), - s = t.length; - if (0 === s) - return this.tryFocusOnRootElement(), void e.preventDefault(); - e.shiftKey && e.target === t[0] - ? (t[s - 1].focus(), e.preventDefault()) - : e.shiftKey || - e.target !== t[s - 1] || - (t[0].focus(), e.preventDefault()); - }), - (this.handleDocumentFocus = (e) => { - !e.defaultPrevented && - this.shouldForceFocus(e.target) && - (this.focusOnFirstElement(), e.preventDefault()); - }), - (this.shouldForceFocus = (e) => - this.props.visible && - this.rootElement.current instanceof HTMLElement && - !this.rootElement.current.contains(e)), - (this.focusOnFirstElement = () => { - if ( - (0, n.N)() && - this.rootElement.current instanceof HTMLElement - ) { - const e = p()(this.rootElement.current); - 0 === e.length ? this.tryFocusOnRootElement() : e[0].focus(); - } - }), - (this.tryFocusOnRootElement = () => { - this.rootElement.current instanceof HTMLElement && - this.rootElement.current.focus(); - }), - (this.invokeFocusOnCloseTarget = () => { - if ((0, h.Z)(this.props.focusTargetOnClose)) return; - if ((0, c.Z)(this.props.focusTargetOnClose)) - return void this.props.focusTargetOnClose(); - const e = (0, l.x)(this.props.focusTargetOnClose); - e instanceof HTMLElement && e.focus(); - }); - } - render() { - const { dialog_positioningRegion: e, dialog_contentRegion: t } = - this.props.managedClasses; - return r.createElement( - "div", - Object.assign( - { - ref: this.rootElement, - }, - this.unhandledProps(), - { - className: this.generateClassNames(), - "aria-hidden": !this.props.visible, - } - ), - r.createElement( - "div", - { - className: (0, o.A)(e), - }, - this.renderModalOverlay(), - r.createElement( - "div", - { - role: "dialog", - "aria-modal": this.props.modal, - tabIndex: -1, - className: (0, o.A)(t), - style: { - height: this.props.contentHeight, - width: this.props.contentWidth, - }, - "aria-describedby": this.props.describedBy, - "aria-labelledby": this.props.labelledBy, - "aria-label": this.props.label, - }, - this.props.children - ) - ) - ); - } - componentDidMount() { - (0, n.N)() && - (this.shouldAddKeyListener(this.props) && - document.addEventListener( - "keydown", - this.handleDocumentKeyDown - ), - this.props.modal && - (document.addEventListener("focusin", this.handleDocumentFocus), - this.shouldForceFocus(document.activeElement) && - this.focusOnFirstElement())); - } - componentDidUpdate(e) { - (0, n.N)() && - (!e.modal && this.props.modal - ? (document.addEventListener( - "focusin", - this.handleDocumentFocus - ), - this.focusOnFirstElement()) - : e.modal && - !this.props.modal && - document.removeEventListener( - "focusin", - this.handleDocumentFocus - ), - !this.shouldAddKeyListener(e) && - this.shouldAddKeyListener(this.props) - ? document.addEventListener( - "keydown", - this.handleDocumentKeyDown - ) - : this.shouldAddKeyListener(e) && - !this.shouldAddKeyListener(this.props) && - document.removeEventListener( - "keydown", - this.handleDocumentKeyDown - )); - } - componentWillUnmount() { - (0, n.N)() && - (this.shouldAddKeyListener(this.props) && - document.removeEventListener( - "keydown", - this.handleDocumentKeyDown - ), - this.props.modal && - document.removeEventListener( - "focusin", - this.handleDocumentFocus - ), - this.invokeFocusOnCloseTarget()); - } - generateClassNames() { - return super.generateClassNames( - (0, o.A)(this.props.managedClasses.dialog) - ); - } - renderModalOverlay() { - if (this.props.modal) - return r.createElement("div", { - className: (0, o.A)( - this.props.managedClasses.dialog_modalOverlay - ), - onClick: this.checkForSoftDismiss, - onTouchStart: this.checkForSoftDismiss, - role: "presentation", - tabIndex: -1, - style: { - touchAction: "none", - }, - }); - } - } - (g.defaultProps = { - contentHeight: "480px", - contentWidth: "640px", - visible: !1, - managedClasses: {}, - }), - (g.displayName = `${b.k}Dialog`); - const u = g; - }, - 46076: (e, t, s) => { - "use strict"; - s.d(t, { - ZP: () => i, - }); - const i = s(81545).Z; - }, - 2057: (e, t, s) => { - "use strict"; - s.d(t, { - ZP: () => h, - }); - var i, - a = s(11754), - o = s(37834), - n = s(89526), - r = s(12468); - !(function (e) { - (e.presentation = "presentation"), (e.separator = "separator"); - })(i || (i = {})); - class l extends a.Z { - constructor() { - super(...arguments), - (this.handledProps = { - managedClasses: void 0, - role: void 0, - }); - } - render() { - return n.createElement( - "hr", - Object.assign( - {}, - this.unhandledProps(), - this.generateAttributes(), - { - className: this.generateClassNames(), - } - ) - ); - } - generateAttributes() { - if (this.props.role && this.props.role !== i.separator) - return { - role: i[this.props.role], - }; - } - generateClassNames() { - return super.generateClassNames( - (0, o.A)(this.props.managedClasses.divider) - ); - } - } - (l.displayName = `${r.k}Divider`), - (l.defaultProps = { - managedClasses: {}, - }); - const h = l; - }, - 67483: (e, t, s) => { - "use strict"; - s.d(t, { - ZP: () => c, - }); - var i, - a = s(11754), - o = s(37834), - n = s(57872), - r = s(89526), - l = s(12468); - !(function (e) { - (e.label = "label"), (e.legend = "legend"); - })(i || (i = {})); - class h extends a.Z { - constructor() { - super(...arguments), - (this.handledProps = { - hidden: void 0, - managedClasses: void 0, - tag: void 0, - }); - } - get tag() { - return (0, n.Z)(i[this.props.tag]) ? i.label : i[this.props.tag]; - } - render() { - return r.createElement( - this.tag, - Object.assign({}, this.unhandledProps(), { - className: this.generateClassNames(), - }), - this.props.children - ); - } - generateClassNames() { - const { label: e, label__hidden: t } = this.props.managedClasses; - return super.generateClassNames( - (0, o.A)(e, [t, this.props.hidden]) - ); - } - } - (h.displayName = `${l.k}Label`), - (h.defaultProps = { - tag: i.label, - managedClasses: {}, - }); - const c = h; - }, - 22545: (e, t, s) => { - "use strict"; - s.d(t, { - ZP: () => i, - }); - const i = s(28293).Z; - }, - 28293: (e, t, s) => { - "use strict"; - s.d(t, { - Z: () => c, - }); - var i = s(11754), - a = s(33832), - o = s(37834), - n = s(89526), - r = s(97084), - l = s(12468); - class h extends i.Z { - constructor() { - super(...arguments), - (this.handledProps = { - disabled: void 0, - displayString: void 0, - managedClasses: void 0, - id: void 0, - onInvoke: void 0, - value: void 0, - }), - (this.isItemSelected = () => { - let e = !1; - return ( - void 0 !== this.context.listboxSelectedItems && - (e = - 1 === - this.context.listboxSelectedItems.filter( - (e) => e.id === this.props.id - ).length), - e - ); - }), - (this.handleKeyDown = (e) => { - if ( - !this.props.disabled && - ("function" == typeof this.props.onKeyDown && - this.props.onKeyDown(e), - !e.defaultPrevented) - ) - switch (e.keyCode) { - case a.bq: - case a.ei: - this.invokeOption(e); - } - }), - (this.handleClick = (e) => { - this.props.disabled || - ("function" == typeof this.props.onClick && - this.props.onClick(e), - e.defaultPrevented || this.invokeOption(e)); - }), - (this.handleFocus = (e) => { - this.props.disabled || - ("function" == typeof this.context.listboxItemFocused && - this.context.listboxItemFocused(this.props, e), - "function" == typeof this.props.onFocus && - this.props.onFocus(e)); - }); - } - render() { - return n.createElement( - "div", - Object.assign({}, this.unhandledProps(), { - className: this.generateClassNames(), - role: "option", - id: this.props.id, - "aria-selected": this.isItemSelected(), - "aria-disabled": this.props.disabled, - onClick: this.handleClick, - onFocus: this.handleFocus, - onKeyDown: this.handleKeyDown, - }), - this.props.children - ); - } - generateClassNames() { - const { - listboxItem: e, - listboxItem__disabled: t, - listboxItem__selected: s, - } = this.props.managedClasses; - return super.generateClassNames( - (0, o.A)(e, [t, this.props.disabled], [s, this.isItemSelected()]) - ); - } - invokeOption(e) { - this.context.listboxItemInvoked && - this.context.listboxItemInvoked(this.props, e), - "function" == typeof this.props.onInvoke && - this.props.onInvoke(e, this.props); - } - } - (h.displayName = `${l.k}ListboxItem`), - (h.contextType = r.R), - (h.defaultProps = { - disabled: !1, - managedClasses: {}, - }), - (h.contextType = r.R); - const c = h; - }, - 18078: (e, t, s) => { - "use strict"; - s.d(t, { - ZP: () => i, - }); - const i = s(42999).Z; - }, - 97084: (e, t, s) => { - "use strict"; - s.d(t, { - R: () => i, - }); - const i = s(89526).createContext({ - listboxItemInvoked: null, - listboxItemFocused: null, - listboxSelectedItems: [], - listboxMultiselectable: !1, - }); - }, - 42999: (e, t, s) => { - "use strict"; - s.d(t, { - Z: () => u, - }); - var i = s(11754), - a = s(33832), - o = s(99478), - n = s(37834), - r = s(9453), - l = s(18868), - h = s(64829), - c = s(67099), - d = s(89526), - p = s(12468), - b = s(97084); - class g extends i.Z { - constructor(e) { - super(e), - (this.handledProps = { - children: void 0, - defaultSelection: void 0, - disabled: void 0, - labelledBy: void 0, - describedBy: void 0, - managedClasses: void 0, - multiselectable: void 0, - onItemInvoked: void 0, - onSelectedItemsChanged: void 0, - selectedItems: void 0, - typeAheadEnabled: void 0, - typeAheadPropertyKey: void 0, - focusItemOnMount: void 0, - selectOnFocus: void 0, - tabbableItems: void 0, - }), - (this.rootElement = d.createRef()), - (this.typeAheadString = ""), - (this.shiftRangeSelectStartIndex = -1), - (this.renderChild = (e, t) => - d.cloneElement(e, { - tabIndex: - this.props.tabbableItems && t === this.state.focusIndex - ? 0 - : -1, - })), - (this.isFocusableElement = (e) => - e instanceof HTMLElement && - "option" === e.getAttribute("role") && - !this.isDisabledElement(e) && - !this.props.disabled), - (this.isDisabledElement = (e) => - e instanceof HTMLElement && - "true" === e.getAttribute("aria-disabled")), - (this.setInitialFocus = (e, t) => { - let s = -1; - for (let t = 0; t < e.length; t++) - s = g.getItemIndexById(e[t].id, this.props.children); - -1 === s && - (s = this.domChildren().findIndex(this.isFocusableElement)), - this.props.focusItemOnMount && t && -1 !== s - ? this.setFocus(s, 1) - : this.setState({ - focusIndex: s, - }); - }), - (this.getInitialSelection = () => { - let e; - return ( - (e = - void 0 !== this.props.selectedItems - ? g.getListboxItemDataFromIds( - this.props.selectedItems, - this.props.children - ) - : g.getListboxItemDataFromIds( - this.props.defaultSelection, - this.props.children - )), - !this.props.multiselectable && - e.length > 1 && - (e = e.slice(0, 1)), - e - ); - }), - (this.listboxItemfocused = (e, t) => { - if (this.props.disabled) return; - const s = t.currentTarget, - i = this.domChildren().indexOf(s); - this.isDisabledElement(s) - ? s.blur() - : (this.setState({ - focusIndex: i, - focussedItemId: e.id, - }), - !this.props.multiselectable && - this.props.selectOnFocus && - this.updateSelection([e])); - }), - (this.handleMenuKeyDown = (e) => { - if ( - ("function" == typeof this.props.onKeyDown && - this.props.onKeyDown(e), - e.defaultPrevented || this.props.disabled) - ) - return; - let t; - switch (e.keyCode) { - case a.Lp: - case a.bq: - case a.ei: - case a.RN: - return; - case a.Q6: - case a.ho: - if ( - ((t = this.setFocus(this.state.focusIndex + 1, 1)), - this.props.multiselectable && e.shiftKey && "" !== t) - ) { - const e = g.getItemPropsById(t, this.props.children); - null !== e && this.toggleItem(e); - } - e.preventDefault(); - break; - case a.$Y: - case a.BJ: - if ( - ((t = this.setFocus(this.state.focusIndex - 1, -1)), - this.props.multiselectable && e.shiftKey && "" !== t) - ) { - const e = g.getItemPropsById(t, this.props.children); - null !== e && this.toggleItem(e); - } - e.preventDefault(); - break; - case a.$B: - this.props.multiselectable && - e.shiftKey && - e.ctrlKey && - this.selectRange( - this.state.focusIndex, - this.domChildren().length - 1 - ), - this.setFocus(this.domChildren().length - 1, -1), - e.preventDefault(); - break; - case a.wn: - this.props.multiselectable && - e.shiftKey && - e.ctrlKey && - this.selectRange(0, this.state.focusIndex), - this.setFocus(0, 1), - e.preventDefault(); - break; - default: - "A" === e.key - ? this.selectRange(0, this.domChildren().length) - : !e.ctrlKey && - this.props.typeAheadEnabled && - this.processTypeAhead(e); - } - }), - (this.processTypeAhead = (e) => { - clearTimeout(this.typeAheadTimer), - (this.typeAheadString = - this.typeAheadString + e.key.toLowerCase()); - let t = -1; - d.Children.toArray(this.props.children).some( - (e, s) => - void 0 !== e.props[this.props.typeAheadPropertyKey] && - ((0, o.Ny)( - e.props[this.props.typeAheadPropertyKey].toLowerCase(), - this.typeAheadString - ) - ? ((t = s), !0) - : void 0) - ), - -1 !== t - ? ((this.typeAheadTimer = setTimeout(() => { - this.typeAheadTimerExpired(); - }, 1e3)), - this.setFocus(t, 1)) - : (this.typeAheadString = ""); - }), - (this.typeAheadTimerExpired = () => { - (this.typeAheadString = ""), clearTimeout(this.typeAheadTimer); - }), - (this.listboxItemInvoked = (e, t) => { - if (this.props.disabled) return; - "function" == typeof this.props.onItemInvoked && - this.props.onItemInvoked(e); - const s = t.currentTarget, - i = this.domChildren().indexOf(s); - this.props.multiselectable && "click" === t.type - ? ((t.shiftKey && -1 !== this.shiftRangeSelectStartIndex) || - (this.shiftRangeSelectStartIndex = i), - t.ctrlKey - ? this.toggleItem(e) - : t.shiftKey - ? this.selectRange(this.shiftRangeSelectStartIndex, i) - : this.updateSelection([e])) - : this.props.multiselectable && "keydown" === t.type - ? t.shiftKey - ? this.selectRange(this.shiftRangeSelectStartIndex, i) - : this.toggleItem(e) - : this.updateSelection([e]); - }), - (this.toggleItem = (e) => { - const t = this.state.selectedItems.filter((t) => t.id !== e.id); - if (t.length < this.state.selectedItems.length) - this.updateSelection(t); - else { - const t = this.state.selectedItems.concat([e]); - this.updateSelection(t); - } - }), - (this.selectRange = (e, t) => { - const s = d.Children.toArray(this.props.children) - .slice(e >= t ? t : e, e >= t ? e + 1 : t + 1) - .map((e) => e.props); - this.updateSelection(s); - }), - (this.updateSelection = (e) => { - const t = g.validateSelection(e, this.props.children); - return ( - (0, l.Z)(t, this.state.selectedItems) || - (void 0 === this.props.selectedItems && - this.setState({ - selectedItems: t, - }), - this.props.onSelectedItemsChanged && - this.props.onSelectedItemsChanged(t)), - t - ); - }), - (this.state = { - focusIndex: -1, - focussedItemId: "", - selectedItems: this.getInitialSelection(), - }); - } - static getListboxItemDataFromIds(e, t) { - return g.validateSelection(e, t); - } - static getItemIndexById(e, t) { - return d.Children.toArray(t).findIndex( - (t) => - void 0 !== t.props[g.idPropertyKey] && - t.props[g.idPropertyKey] === e - ); - } - static isValidSelectedItem(e) { - return ( - void 0 !== e && - !0 !== e.props[g.disabledPropertyKey] && - void 0 !== e.props[g.valuePropertyKey] - ); - } - static getNodeById(e, t) { - return d.Children.toArray(t).find( - (t) => - void 0 !== t.props[g.idPropertyKey] && - t.props[g.idPropertyKey] === e - ); - } - static getItemPropsById(e, t) { - const s = this.getNodeById(e, t); - return void 0 !== s ? s.props : null; - } - static validateSelection(e, t) { - return e - .map((e) => { - let s = ""; - s = "string" == typeof e ? e : e.id; - const i = this.getNodeById(s, t); - return g.isValidSelectedItem(i) ? i.props : null; - }) - .filter((e) => null !== e); - } - render() { - return d.createElement( - "div", - Object.assign({}, this.unhandledProps(), { - ref: this.rootElement, - role: "listbox", - "aria-disabled": this.props.disabled || null, - "aria-multiselectable": this.props.multiselectable || null, - "aria-activedescendant": this.state.focussedItemId, - "aria-labelledby": this.props.labelledBy || null, - "aria-describedby": this.props.describedBy || null, - className: this.generateClassNames(), - onKeyDown: this.handleMenuKeyDown, - }), - d.createElement( - b.R.Provider, - { - value: { - listboxSelectedItems: this.state.selectedItems, - listboxItemFocused: this.listboxItemfocused, - listboxItemInvoked: this.listboxItemInvoked, - listboxMultiselectable: this.props.multiselectable, - }, - }, - this.renderChildren() - ) - ); - } - componentDidUpdate(e) { - let t = null; - if ( - ((0, l.Z)(e.defaultSelection, this.props.defaultSelection) || - void 0 !== this.props.selectedItems || - (t = this.updateSelection(this.getInitialSelection())), - e.children !== this.props.children) - ) { - t = - null === t - ? this.updateSelection(this.state.selectedItems.slice(0)) - : t; - const e = this.domChildren(); - if ( - !(0, h.Z)(this.rootElement.current) && - this.rootElement.current.contains(document.activeElement) - ) - return void this.setState({ - focusIndex: e.indexOf(document.activeElement), - }); - (e.length <= this.state.focusIndex || - !this.isFocusableElement(e[this.state.focusIndex])) && - this.setInitialFocus(t, !1); - } - } - componentDidMount() { - this.setInitialFocus(this.state.selectedItems, !0); - } - componentWillUnmount() { - clearTimeout(this.typeAheadTimer); - } - generateClassNames() { - const { listbox: e, listbox__disabled: t } = - this.props.managedClasses; - return super.generateClassNames( - (0, n.A)(e, [t, this.props.disabled]) - ); - } - renderChildren() { - return d.Children.map(this.props.children, this.renderChild); - } - domChildren() { - return (0, r.N)() && this.rootElement.current instanceof HTMLElement - ? Array.from(this.rootElement.current.children) - : []; - } - setFocus(e, t) { - const s = this.domChildren(); - let i = ""; - for (; (0, c.Z)(e, s.length); ) { - const a = s[e]; - if (((i = a.id), this.isFocusableElement(a))) { - this.props.disabled || a.focus(); - break; - } - e += t; - } - return i; - } - } - (g.displayName = `${p.k}Listbox`), - (g.defaultProps = { - multiselectable: !1, - defaultSelection: [], - typeAheadPropertyKey: "displayString", - typeAheadEnabled: !0, - focusItemOnMount: !1, - managedClasses: {}, - selectOnFocus: !0, - tabbableItems: !0, - }), - (g.getFirstValidOptionInRange = (e, t, s, i) => { - for (let a = e; a !== t + i; a += i) { - const e = s[a]; - return g.isValidSelectedItem(e) ? e : null; - } - }), - (g.getValidOptions = (e) => - e.filter((e) => g.isValidSelectedItem(e))), - (g.valuePropertyKey = "value"), - (g.idPropertyKey = "id"), - (g.disabledPropertyKey = "disabled"); - const u = g; - }, - 79389: (e, t, s) => { - "use strict"; - s.d(t, { - ZP: () => i, - }); - const i = s(63566).Z; - }, - 63566: (e, t, s) => { - "use strict"; - s.d(t, { - Z: () => y, - }); - var i = s(11754), - a = s(33832), - o = s(5346), - n = s(37834), - r = s(9453), - l = s(48527), - h = s(18868), - c = s(64829), - d = s(9680), - p = s(89526), - b = s(18078), - g = s(12468), - u = s(8641); - class m extends i.Z { - constructor(e) { - super(e), - (this.handledProps = { - isMenuOpen: void 0, - disabled: void 0, - displayStringFormatter: void 0, - form: void 0, - labelledBy: void 0, - describedBy: void 0, - multiselectable: void 0, - trigger: void 0, - menu: void 0, - required: void 0, - managedClasses: void 0, - selectedItems: void 0, - defaultSelection: void 0, - onValueChange: void 0, - placeholder: void 0, - autoFocus: void 0, - menuFlyoutConfig: void 0, - onMenuSelectionChange: void 0, - }), - (this.rootElement = p.createRef()), - (this.triggerId = (0, l.Z)(m.triggerUniqueIdPrefix)), - (this.checkPropsForMenuState = () => { - let e = !1; - return ( - void 0 !== this.props.isMenuOpen - ? (e = this.props.isMenuOpen) - : !0 === this.props.multiselectable && (e = !0), - e - ); - }), - (this.onSelectValueChange = (e) => null), - (this.menuSelectionChange = (e) => { - "function" == typeof this.props.onMenuSelectionChange && - this.props.onMenuSelectionChange(e), - this.updateSelection(e); - }), - (this.updateSelection = (e) => { - e = this.trimSelection(e); - const t = this.getValueFromSelection(e); - if (this.state.value === t) return; - const s = this.getFormattedDisplayString(e); - if ( - ("function" != typeof this.props.onValueChange || - (0, h.Z)(e, this.state.selectedItems) || - this.props.onValueChange(t, e, s), - void 0 === this.props.selectedItems) - ) { - const i = this.getValidOptions(); - this.setState({ - selectedItems: e, - value: t, - displayString: s, - selectedItemIndex: this.getSelectedItemPosInSet(i, e), - selectableItemCount: i.length, - }); - } - }), - (this.updateSelectionFromProps = () => { - const e = this.trimSelection( - b.ZP.getListboxItemDataFromIds( - this.props.selectedItems, - this.props.children - ) - ); - this.setState({ - selectedItems: e, - value: this.getValueFromSelection(e), - displayString: this.getFormattedDisplayString(e), - }); - }), - (this.trimSelection = (e) => - !1 === this.props.multiselectable && e.length > 1 - ? [this.state.selectedItems[0]] - : e), - (this.getValueFromSelection = (e) => - this.props.multiselectable - ? e.map((e) => e.value) - : 0 === e.length - ? "" - : e[0].value), - (this.getSelectedItemPosInSet = (e, t) => { - if (!this.props.multiselectable && 1 === t.length) { - const s = t[0].id, - i = e.length; - for (let t = 0; t < i; t++) - if (e[t].props[m.idPropertyKey] === s) return t + 1; - } - return 0; - }), - (this.defaultTriggerRenderFunction = (e, t, s) => { - if (e.multiselectable) return null; - const i = `${ - (0, c.Z)(this.props.labelledBy) - ? "" - : `${this.props.labelledBy} ` - }${s}`, - a = - "" + - ((0, c.Z)(this.props.describedBy) - ? "" - : `${this.props.describedBy}`); - return p.createElement( - "button", - { - disabled: e.disabled, - id: s, - "aria-haspopup": "listbox", - "aria-labelledby": i, - "aria-describedby": a, - "aria-expanded": t.isMenuOpen, - }, - t.displayString - ); - }), - (this.defaultDisplayStringFormatter = (e, t) => { - const s = e.map((e) => e.displayString || e.value); - return e.length > 0 ? s.join(", ") : t; - }), - (this.handleClick = (e) => { - "function" == typeof this.props.onClick && - this.props.onClick(e), - this.props.disabled || - e.defaultPrevented || - (e.preventDefault(), - this.toggleMenu(!this.state.isMenuOpen), - !1 === this.validateMenuState(!this.state.isMenuOpen) && - this.focusTriggerElement()); - }), - (this.handleKeydown = (e) => { - if ( - ("function" == typeof this.props.onKeyDown && - this.props.onKeyDown(e), - !this.props.disabled && !e.defaultPrevented) - ) - switch (e.keyCode) { - case a.bq: - case a.ei: - e.preventDefault(), - this.toggleMenu(!this.state.isMenuOpen), - !1 === this.validateMenuState(!this.state.isMenuOpen) && - this.focusTriggerElement(); - break; - case a.Lp: - e.preventDefault(), - this.toggleMenu(!1), - this.focusTriggerElement(); - break; - case a.Q6: - case a.ho: - e.preventDefault(), - this.props.multiselectable || - this.state.isMenuOpen || - this.incrementSelectedOption(1); - break; - case a.$Y: - case a.BJ: - e.preventDefault(), - this.props.multiselectable || - this.state.isMenuOpen || - this.incrementSelectedOption(-1); - } - }), - (this.incrementSelectedOption = (e) => { - const t = p.Children.toArray(this.props.children); - if (1 === this.state.selectedItems.length) { - const s = b.ZP.getItemIndexById( - this.state.selectedItems[0].id, - this.props.children - ); - if (-1 !== s) { - const i = s + e, - a = e > -1 ? t.length - 1 : 0; - this.selectItemInRange(i, a, t, e); - } - } else { - const s = e > -1, - i = t.length - 1; - this.selectItemInRange(s ? 0 : i, s ? i : 0, t, e); - } - }), - (this.selectItemInRange = (e, t, s, i) => { - const a = b.ZP.getFirstValidOptionInRange(e, t, s, i); - (0, c.Z)(a) || this.updateSelection([a.props]); - }), - (this.toggleMenu = (e) => { - const t = this.validateMenuState(e); - t !== this.state.isMenuOpen && - this.setState({ - isMenuOpen: t, - }); - }), - (this.validateMenuState = (e) => { - let t = e; - return ( - void 0 !== this.props.isMenuOpen - ? (t = this.props.isMenuOpen) - : !0 === this.props.multiselectable && (t = !0), - t - ); - }), - (this.handleMenuBlur = (e) => { - this.state.isMenuOpen && - !this.props.multiselectable && - null !== this.rootElement.current && - (!this.rootElement.current.contains(e.relatedTarget) || - ((0, o.Re)(e.relatedTarget) && - e.relatedTarget.id === this.triggerId)) && - this.toggleMenu(!1); - }), - (this.getFormattedDisplayString = (e) => - void 0 === this.props.displayStringFormatter - ? this.defaultDisplayStringFormatter( - e, - this.props.placeholder - ) - : this.props.displayStringFormatter( - e, - this.props.placeholder - )), - (this.isFocusableButton = (e) => - e instanceof HTMLButtonElement && - "true" !== e.getAttribute("aria-disabled")), - (this.focusTriggerElement = () => { - const e = this.getTriggerButton(); - null !== e && e.focus(); - }), - (this.getValidOptions = () => - b.ZP.getValidOptions(p.Children.toArray(this.props.children))); - let t = this.trimSelection( - b.ZP.getListboxItemDataFromIds( - void 0 !== this.props.selectedItems - ? this.props.selectedItems - : this.props.defaultSelection, - this.props.children - ) - ); - !this.props.multiselectable && t.length > 1 && (t = t.slice(0, 1)); - const s = this.getValidOptions(); - this.state = { - selectedItems: t, - value: this.getValueFromSelection(t), - displayString: this.getFormattedDisplayString(t), - isMenuOpen: this.validateMenuState(!1), - selectedItemIndex: this.getSelectedItemPosInSet(s, t), - selectableItemCount: s.length, - }; - } - componentDidUpdate(e) { - let t = !1, - s = this.state.isMenuOpen; - e.multiselectable !== this.props.multiselectable && - ((t = !0), (s = this.checkPropsForMenuState())), - e.isMenuOpen !== this.props.isMenuOpen && - (s = this.checkPropsForMenuState()), - s !== this.state.isMenuOpen && this.toggleMenu(s), - e.selectedItems === this.props.selectedItems - ? t && - this.updateSelection(this.state.selectedItems.map((e) => e)) - : this.updateSelectionFromProps(); - } - componentDidMount() { - this.toggleMenu(this.checkPropsForMenuState()), - !this.props.autoFocus || - this.state.isMenuOpen || - this.props.multiselectable || - this.focusTriggerElement(); - } - render() { - return p.createElement( - "div", - Object.assign({}, this.unhandledProps(), { - ref: this.rootElement, - className: this.generateClassNames(), - onKeyDown: this.handleKeydown, - onClick: this.handleClick, - }), - this.renderTrigger(), - this.renderHiddenSelectElement(), - this.renderMenu() - ); - } - generateClassNames() { - const { - select: e, - select__scaleToFit: t, - select__disabled: s, - select_menu__open: i, - select__multiSelectable: a, - } = this.props.managedClasses; - return super.generateClassNames( - (0, n.A)( - e, - [ - t, - !(0, c.Z)(this.props.menuFlyoutConfig) && - this.props.menuFlyoutConfig.scaleToFit, - ], - [s, this.props.disabled], - [i, this.state.isMenuOpen], - [a, this.props.multiselectable] - ) - ); - } - renderHiddenSelectElement() { - return p.createElement("select", { - required: this.props.required || null, - name: this.props.name || null, - form: this.props.form || null, - value: this.state.value, - multiple: this.props.multiselectable || null, - disabled: this.props.disabled || null, - onChange: this.onSelectValueChange, - style: { - display: "none", - }, - }); - } - renderTrigger() { - return void 0 !== this.props.trigger - ? this.props.trigger(this.props, this.state, this.triggerId) - : this.defaultTriggerRenderFunction( - this.props, - this.state, - this.triggerId - ); - } - renderMenu() { - if (!this.state.isMenuOpen) return; - let e = !this.props.multiselectable; - this.props.multiselectable && - this.props.autoFocus && - (e = this.props.multiselectable); - const t = p.createElement( - b.ZP, - { - labelledBy: this.props.labelledBy, - describedBy: this.props.describedBy, - disabled: this.props.disabled, - focusItemOnMount: e, - multiselectable: this.props.multiselectable, - defaultSelection: this.state.selectedItems, - selectedItems: this.props.selectedItems, - onSelectedItemsChanged: this.menuSelectionChange, - onBlur: this.handleMenuBlur, - selectOnFocus: !1, - tabIndex: -1, - managedClasses: { - listbox: (0, d.Z)( - this.props.managedClasses, - "select_menu", - "" - ), - listbox__disabled: (0, d.Z)( - this.props.managedClasses, - "select_menuDisabled", - "" - ), - }, - }, - this.props.children - ), - s = - "function" == typeof this.props.menu - ? this.props.menu(this.props, this.state, t) - : t; - return (0, c.Z)(this.props.menuFlyoutConfig) - ? s - : p.createElement( - u.ZP, - Object.assign( - { - anchor: this.rootElement, - }, - this.props.menuFlyoutConfig, - { - managedClasses: - this.generateViewportPositionerClassNames(), - } - ), - s - ); - } - generateViewportPositionerClassNames() { - const { - select__menuPositioningRegion: e, - select__menuPositionLeft: t, - select__menuPositionRight: s, - select__menuPositionTop: i, - select__menuPositionBottom: a, - select__menuPositionHorizontalInset: o, - select__menuPositionVerticalInset: n, - } = this.props.managedClasses; - return { - viewportPositioner: e, - viewportPositioner__left: t, - viewportPositioner__right: s, - viewportPositioner__top: i, - viewportPositioner__bottom: a, - viewportPositioner__horizontalInset: o, - viewportPositioner__verticalInset: n, - }; - } - getTriggerButton() { - const e = - (0, r.N)() && this.rootElement.current instanceof HTMLElement - ? Array.from(this.rootElement.current.children) - : [], - t = e.findIndex(this.isFocusableButton); - return -1 !== t ? e[t] : null; - } - } - (m.displayName = `${g.k}Select`), - (m.defaultProps = { - multiselectable: !1, - disabled: !1, - defaultSelection: [], - placeholder: "", - managedClasses: {}, - }), - (m.idPropertyKey = "id"), - (m.triggerUniqueIdPrefix = "selecttrigger-"); - const y = m; - }, - 87472: (e, t, s) => { - "use strict"; - s.d(t, { - ZP: () => i, - }); - const i = s(39093).Z; - }, - 39093: (e, t, s) => { - "use strict"; - s.d(t, { - Z: () => l, - }); - var i = s(11754), - a = s(37834), - o = s(89526), - n = s(12468); - class r extends i.Z { - constructor(e) { - super(e), - (this.handledProps = { - managedClasses: void 0, - disabled: void 0, - inputId: void 0, - labelId: void 0, - name: void 0, - selected: void 0, - selectedMessage: void 0, - statusMessageId: void 0, - unselectedMessage: void 0, - onChange: void 0, - }), - (this.handleToggleChange = (e) => { - "boolean" != typeof this.props.selected && - this.setState({ - selected: !this.state.selected, - }), - this.props.onChange && this.props.onChange(e); - }), - (this.state = { - selected: this.props.selected || !1, - }); - } - static getDerivedStateFromProps(e, t) { - return "boolean" == typeof e.selected && e.selected !== t.selected - ? { - selected: e.selected, - } - : null; - } - render() { - const { - toggle_toggleButton: e, - toggle_input: t, - toggle_stateIndicator: s, - } = this.props.managedClasses; - return o.createElement( - "div", - Object.assign({}, this.unhandledProps(), { - className: this.generateClassNames(), - "aria-disabled": this.props.disabled || null, - }), - this.generateLabel(), - o.createElement( - "div", - { - className: (0, a.A)(e), - }, - o.createElement("input", { - className: (0, a.A)(t), - type: "checkbox", - id: this.props.inputId, - "aria-describedby": this.props.statusMessageId, - disabled: this.props.disabled, - name: this.props.name, - value: this.generateToggleStateLabel(), - onChange: this.handleToggleChange, - checked: this.state.selected, - }), - o.createElement("span", { - className: (0, a.A)(s), - }) - ), - this.renderStatusMessage() - ); - } - generateClassNames() { - const { - toggle: e, - toggle__disabled: t, - toggle__checked: s, - } = this.props.managedClasses; - return super.generateClassNames( - (0, a.A)(e, [t, this.props.disabled], [s, this.state.selected]) - ); - } - generateToggleStateLabel() { - return this.state.selected - ? this.props.selectedMessage - : this.props.unselectedMessage; - } - generateLabel() { - if (this.props.labelId || this.props.children) - return o.createElement( - "label", - { - className: (0, a.A)(this.props.managedClasses.toggle_label), - id: this.props.labelId, - htmlFor: this.props.inputId, - }, - this.props.children - ); - } - renderStatusMessage() { - if (this.props.selectedMessage || this.props.unselectedMessage) - return o.createElement( - "span", - { - id: this.props.statusMessageId, - className: (0, a.A)( - this.props.managedClasses.toggle_statusMessage - ), - }, - this.generateToggleStateLabel() - ); - } - } - (r.displayName = `${n.k}Toggle`), - (r.defaultProps = { - managedClasses: {}, - }); - const l = r; - }, - 61341: (e, t, s) => { - "use strict"; - s.d(t, { - ZP: () => h, - }); - var i = s(11754), - a = s(37834), - o = s(89526), - n = s(12468), - r = s(14895); - class l extends i.Z { - constructor() { - super(...arguments), - (this.handledProps = { - managedClasses: void 0, - tag: void 0, - size: void 0, - }); - } - get tag() { - return this.generateHTMLTag(); - } - render() { - return o.createElement( - this.tag, - Object.assign({}, this.unhandledProps(), { - className: this.generateClassNames(), - }), - this.props.children - ); - } - generateClassNames() { - const e = this.props.managedClasses; - return super.generateClassNames( - (0, a.A)(e.typography, e[`typography__${this.props.size}`]) - ); - } - generateHTMLTag() { - return r.l[this.props.tag] || r.l.p; - } - } - (l.defaultProps = { - tag: r.l.p, - size: r.H._1, - managedClasses: {}, - }), - (l.displayName = `${n.k}Typography`); - const h = l; - }, - 14895: (e, t, s) => { - "use strict"; - var i, a; - s.d(t, { - l: () => i, - H: () => a, - }), - (function (e) { - (e.caption = "caption"), - (e.h1 = "h1"), - (e.h2 = "h2"), - (e.h3 = "h3"), - (e.h4 = "h4"), - (e.h5 = "h5"), - (e.h6 = "h6"), - (e.p = "p"), - (e.span = "span"), - (e.figcaption = "figcaption"); - })(i || (i = {})), - (function (e) { - (e[(e._1 = 1)] = "_1"), - (e[(e._2 = 2)] = "_2"), - (e[(e._3 = 3)] = "_3"), - (e[(e._4 = 4)] = "_4"), - (e[(e._5 = 5)] = "_5"), - (e[(e._6 = 6)] = "_6"), - (e[(e._7 = 7)] = "_7"), - (e[(e._8 = 8)] = "_8"), - (e[(e._9 = 9)] = "_9"); - })(a || (a = {})); - }, - 12468: (e, t, s) => { - "use strict"; - s.d(t, { - k: () => i, - }); - const i = "Base"; - }, - 8641: (e, t, s) => { - "use strict"; - s.d(t, { - ZP: () => m, - }); - var i = s(11754), - a = s(37834), - o = s(86577), - n = s(9453), - r = s(9680), - l = s(64829), - h = s(89526), - c = s(12468), - d = s(10736); - const p = h.createContext({ - viewport: null, - }); - var b, g; - !(function (e) { - (e.left = "left"), - (e.insetLeft = "insetLeft"), - (e.insetRight = "insetRight"), - (e.right = "right"), - (e[void 0] = "undefined"); - })(b || (b = {})), - (function (e) { - (e.top = "top"), - (e.insetTop = "insetTop"), - (e.insetBottom = "insetBottom"), - (e.bottom = "bottom"), - (e[void 0] = "undefined"); - })(g || (g = {})); - class u extends i.Z { - constructor(e) { - super(e), - (this.handledProps = { - managedClasses: void 0, - anchor: void 0, - viewport: void 0, - horizontalPositioningMode: void 0, - defaultHorizontalPosition: void 0, - horizontalThreshold: void 0, - horizontalAlwaysInView: void 0, - horizontalLockToDefault: void 0, - verticalPositioningMode: void 0, - defaultVerticalPosition: void 0, - verticalThreshold: void 0, - verticalAlwaysInView: void 0, - verticalLockToDefault: void 0, - fixedAfterInitialPlacement: void 0, - scaleToFit: void 0, - delayContentInstanciation: void 0, - disabled: void 0, - }), - (this.rootElement = h.createRef()), - (this.openRequestAnimationFrame = null), - (this.anchorTop = 0), - (this.anchorRight = 0), - (this.anchorBottom = 0), - (this.anchorLeft = 0), - (this.anchorHeight = 0), - (this.anchorWidth = 0), - (this.scrollTop = 0), - (this.scrollLeft = 0), - (this.baseHorizontalOffset = 0), - (this.baseVerticalOffset = 0), - (this.getPositioningStyles = () => { - const e = (0, r.Z)(this.props, "style"); - return Object.assign( - Object.assign( - Object.assign( - {}, - this.props.scaleToFit - ? { - height: `${this.state.verticalSelectedPositionHeight}px`, - width: `${this.state.horizontalSelectedPositionWidth}px`, - } - : {} - ), - { - opacity: - this.props.disabled || this.state.initialLayoutComplete - ? void 0 - : 0, - position: "relative", - transformOrigin: `${this.state.xTransformOrigin} ${this.state.yTransformOrigin}`, - transform: `translate(\n ${Math.floor( - this.state.xTranslate - )}px, \n ${Math.floor( - this.state.yTranslate - )}px\n )`, - top: - null === this.state.top ? null : `${this.state.top}px`, - right: - null === this.state.right - ? null - : `${this.state.right}px`, - bottom: - null === this.state.bottom - ? null - : `${this.state.bottom}px`, - left: - null === this.state.left - ? null - : `${this.state.left}px`, - } - ), - e - ); - }), - (this.updateDisabledState = () => { - (0, n.N)() && !0 !== this.props.disabled - ? (null === this.getAnchorElement() || - null === this.getViewportElement(this.props.viewport)) && - this.state.validRefChecksRemaining > 0 - ? this.setState({ - validRefChecksRemaining: - this.state.validRefChecksRemaining - 1, - initialLayoutComplete: - this.state.validRefChecksRemaining <= 1, - }) - : this.enableComponent() - : this.disable(); - }), - (this.enableComponent = () => { - const e = this.getViewportElement(this.props.viewport), - t = this.getAnchorElement(); - !this.state.disabled || - this.props.disabled || - (0, l.Z)(t) || - (0, l.Z)(e) || - (0, l.Z)(this.rootElement.current) || - (window.IntersectionObserver && window.ResizeObserver - ? (this.setState({ - disabled: !1, - noObserverMode: !1, - validRefChecksRemaining: 0, - }), - (this.collisionDetector = new window.IntersectionObserver( - this.handleCollision, - { - root: e, - rootMargin: "0px", - threshold: [0, 1], - } - )), - this.collisionDetector.observe(this.rootElement.current), - this.collisionDetector.observe(t), - (this.resizeDetector = new window.ResizeObserver( - this.handleResize - )), - this.resizeDetector.observe(t), - this.resizeDetector.observe(this.rootElement.current), - e.addEventListener("scroll", this.handleScroll)) - : this.setNoObserverMode()); - }), - (this.setNoObserverMode = () => { - const e = this.getViewportElement(this.props.viewport), - t = this.getAnchorElement(); - if ((0, l.Z)(e) || (0, l.Z)(t)) return; - const s = this.rootElement.current.getBoundingClientRect(); - (this.positionerDimension = { - height: s.height, - width: s.width, - }), - (this.viewportRect = e.getBoundingClientRect()); - const i = t.getBoundingClientRect(); - (this.anchorTop = i.top), - (this.anchorRight = i.right), - (this.anchorBottom = i.bottom), - (this.anchorLeft = i.left), - (this.anchorWidth = i.width), - (this.anchorHeight = i.height), - this.updatePositionerOffset(s), - this.setState({ - validRefChecksRemaining: 0, - disabled: !1, - noObserverMode: !0, - }), - this.requestFrame(); - }), - (this.disable = () => { - this.state.disabled || - (this.detachListeners(this.props.viewport), - this.setState({ - disabled: !0, - validRefChecksRemaining: 0, - })); - }), - (this.detachListeners = (e) => { - const t = this.getViewportElement(e); - (0, l.Z)(t) || - t.removeEventListener("scroll", this.handleScroll), - this.collisionDetector && - "function" == typeof this.collisionDetector.disconnect && - (this.collisionDetector.disconnect(), - (this.collisionDetector = null)), - this.resizeDetector && - "function" == typeof this.resizeDetector.disconnect && - (this.resizeDetector.disconnect(), - (this.resizeDetector = null)); - }), - (this.getHorizontalPositioningOptions = () => { - switch (this.props.horizontalPositioningMode) { - case d.tg.inset: - return [b.insetLeft, b.insetRight]; - case d.tg.adjacent: - return [b.left, b.right]; - } - }), - (this.getVerticalPositioningOptions = () => { - switch (this.props.verticalPositioningMode) { - case d.tg.inset: - return [g.insetTop, g.insetBottom]; - case d.tg.adjacent: - return [g.top, g.bottom]; - } - }), - (this.getAvailableWidth = (e) => { - const t = this.anchorLeft - this.viewportRect.left, - s = - this.viewportRect.right - - (this.anchorLeft + this.anchorWidth); - switch (e) { - case b.left: - return t; - case b.insetLeft: - return t + this.anchorWidth; - case b.insetRight: - return s + this.anchorWidth; - case b.right: - return s; - } - }), - (this.getAvailableHeight = (e) => { - const t = this.anchorTop - this.viewportRect.top, - s = - this.viewportRect.bottom - - (this.anchorTop + this.anchorHeight); - switch (e) { - case g.top: - return t; - case g.insetTop: - return t + this.anchorHeight; - case g.insetBottom: - return s + this.anchorHeight; - case g.bottom: - return s; - } - }), - (this.handleScroll = () => { - this.requestFrame(); - }), - (this.handleResize = (e) => { - e.forEach((e) => { - e.target === this.rootElement.current - ? this.handlePositionerResize(e) - : this.handleAnchorResize(e); - }); - }), - (this.handlePositionerResize = (e) => { - this.props.scaleToFit || - ((this.positionerDimension = { - height: e.contentRect.height, - width: e.contentRect.width, - }), - this.requestFrame()); - }), - (this.handleAnchorResize = (e) => { - (this.anchorHeight = e.contentRect.height), - (this.anchorWidth = e.contentRect.width), - this.state.currentVerticalPosition === g.top || - this.state.currentVerticalPosition === g.insetTop - ? (this.anchorBottom = this.anchorTop + this.anchorHeight) - : (this.anchorTop = this.anchorBottom - this.anchorHeight), - this.state.currentHorizontalPosition === b.left || - this.state.currentHorizontalPosition === b.insetLeft - ? (this.anchorRight = this.anchorLeft + this.anchorWidth) - : (this.anchorLeft = this.anchorRight - this.anchorWidth), - this.requestFrame(); - }), - (this.handleCollision = (e, t) => { - let s = null; - e.forEach((t) => { - t.target === this.rootElement.current - ? (this.handlePositionerCollision(t, 1 === e.length), - (s = t.boundingClientRect)) - : this.handleAnchorCollision(t); - }); - const i = this.getViewportElement(this.props.viewport); - (0, l.Z)(i) || - ((this.scrollTop = i.scrollTop), - (this.scrollLeft = i.scrollLeft)), - 2 === e.length && - null !== s && - this.updatePositionerOffset(s), - this.requestFrame(); - }), - (this.handleAnchorCollision = (e) => { - (this.viewportRect = e.rootBounds), - (this.anchorTop = e.boundingClientRect.top), - (this.anchorRight = e.boundingClientRect.right), - (this.anchorBottom = e.boundingClientRect.bottom), - (this.anchorLeft = e.boundingClientRect.left), - (this.anchorHeight = e.boundingClientRect.height), - (this.anchorWidth = e.boundingClientRect.width); - }), - (this.handlePositionerCollision = (e, t) => { - this.viewportRect = e.rootBounds; - const s = e.boundingClientRect; - if ( - ((this.positionerDimension = { - height: s.height, - width: s.width, - }), - t) - ) { - switch (this.state.currentVerticalPosition) { - case g.top: - (this.anchorTop = s.bottom - this.state.yTranslate), - (this.anchorBottom = - this.anchorTop + this.anchorHeight); - break; - case g.insetTop: - (this.anchorBottom = s.bottom - this.state.yTranslate), - (this.anchorTop = - this.anchorBottom - this.anchorHeight); - break; - case g.insetBottom: - (this.anchorTop = s.top - this.state.yTranslate), - (this.anchorBottom = - this.anchorTop + this.anchorHeight); - break; - case g.bottom: - (this.anchorBottom = s.top - this.state.yTranslate), - (this.anchorTop = - this.anchorBottom - this.anchorHeight); - } - switch (this.state.currentHorizontalPosition) { - case b.left: - (this.anchorLeft = s.right - this.state.xTranslate), - (this.anchorRight = this.anchorLeft + this.anchorWidth); - break; - case b.insetLeft: - (this.anchorRight = s.right - this.state.xTranslate), - (this.anchorLeft = this.anchorRight - this.anchorWidth); - break; - case b.insetRight: - (this.anchorLeft = s.left - this.state.xTranslate), - (this.anchorRight = this.anchorLeft + this.anchorWidth); - break; - case b.right: - (this.anchorRight = s.left - this.state.xTranslate), - (this.anchorLeft = this.anchorRight - this.anchorWidth); - } - } - }), - (this.updatePositionerOffset = (e) => { - if (this.props.horizontalPositioningMode === d.tg.uncontrolled) - this.baseHorizontalOffset = this.anchorLeft - e.left; - else - switch (this.state.currentHorizontalPosition) { - case b.undefined: - this.baseHorizontalOffset = - this.anchorLeft + this.state.xTranslate - e.left; - break; - case b.left: - this.baseHorizontalOffset = - this.baseHorizontalOffset + - (this.anchorLeft + this.state.xTranslate - e.right); - break; - case b.insetLeft: - this.baseHorizontalOffset = - this.baseHorizontalOffset + - (this.anchorRight + this.state.xTranslate - e.right); - break; - case b.insetRight: - this.baseHorizontalOffset = - this.baseHorizontalOffset + - (this.anchorLeft + this.state.xTranslate - e.left); - break; - case b.right: - this.baseHorizontalOffset = - this.baseHorizontalOffset + - (this.anchorRight + this.state.xTranslate - e.left); - } - if (this.props.verticalPositioningMode === d.tg.uncontrolled) - this.baseVerticalOffset = this.anchorBottom - e.top; - else - switch (this.state.currentVerticalPosition) { - case g.undefined: - this.baseVerticalOffset = - this.anchorBottom + this.state.yTranslate - e.top; - break; - case g.top: - this.baseVerticalOffset = - this.baseVerticalOffset + - (this.anchorTop + this.state.yTranslate - e.bottom); - break; - case g.insetTop: - this.baseVerticalOffset = - this.baseVerticalOffset + - (this.anchorBottom + this.state.yTranslate - e.bottom); - break; - case g.insetBottom: - this.baseVerticalOffset = - this.baseVerticalOffset + - (this.anchorTop + this.state.yTranslate - e.top); - break; - case g.bottom: - this.baseVerticalOffset = - this.baseVerticalOffset + - (this.anchorBottom + this.state.yTranslate - e.top); - } - }), - (this.updateForScrolling = () => { - const e = this.getViewportElement(this.props.viewport); - if ((0, l.Z)(e) || isNaN(e.scrollTop)) return; - const t = e.scrollTop, - s = e.scrollLeft; - if (this.scrollTop !== t) { - const e = this.scrollTop - t; - (this.scrollTop = t), - (this.anchorTop = this.anchorTop + e), - (this.anchorBottom = this.anchorBottom + e); - } - if (this.scrollLeft !== s) { - const e = this.scrollLeft - s; - (this.scrollLeft = s), - (this.anchorLeft = this.anchorLeft + e), - (this.anchorRight = this.anchorRight + e); - } - }), - (this.updateLayout = () => { - if ( - ((this.openRequestAnimationFrame = null), - this.state.disabled || - (0, l.Z)(this.viewportRect) || - (0, l.Z)(this.positionerDimension) || - (this.props.fixedAfterInitialPlacement && - this.state.initialLayoutComplete) || - (this.state.noObserverMode && - this.state.initialLayoutComplete)) - ) - return; - this.updateForScrolling(); - let e = g.undefined, - t = b.undefined; - if ( - this.props.horizontalPositioningMode !== d.tg.uncontrolled - ) { - const e = this.getHorizontalPositioningOptions(); - t = this.state.defaultHorizontalPosition; - const s = - void 0 !== this.props.horizontalThreshold - ? this.props.horizontalThreshold - : this.positionerDimension.width; - (t === b.undefined || - (!this.props.horizontalLockToDefault && - this.getAvailableWidth(t) < s)) && - (t = - this.getAvailableWidth(e[0]) > - this.getAvailableWidth(e[1]) - ? e[0] - : e[1]); - } - if (this.props.verticalPositioningMode !== d.tg.uncontrolled) { - const t = this.getVerticalPositioningOptions(); - e = this.state.defaultVerticalPosition; - const s = - void 0 !== this.props.verticalThreshold - ? this.props.verticalThreshold - : this.positionerDimension.height; - (e === g.undefined || - (!this.props.verticalLockToDefault && - this.getAvailableHeight(e) < s)) && - (e = - this.getAvailableHeight(t[0]) > - this.getAvailableHeight(t[1]) - ? t[0] - : t[1]); - } - const s = this.getNextPositionerDimension(t, e); - this.setState( - Object.assign( - { - xTranslate: this.getHorizontalTranslate(t), - yTranslate: this.getVerticalTranslate(e), - initialLayoutComplete: !0, - }, - this.getHorizontalPositioningState(t, s), - this.getVerticalPositioningState(e, s) - ) - ); - }), - (this.getNextPositionerDimension = (e, t) => { - const s = { - height: this.positionerDimension.height, - width: this.positionerDimension.width, - }; - return ( - this.props.scaleToFit && - ((s.height = Math.max( - Math.min( - this.getAvailableHeight(t), - this.viewportRect.height - ), - (0, l.Z)(this.props.verticalThreshold) - ? 0 - : this.props.verticalThreshold - )), - (s.width = Math.max( - Math.min( - this.getAvailableWidth(e), - this.viewportRect.width - ), - (0, l.Z)(this.props.horizontalThreshold) - ? 0 - : this.props.horizontalThreshold - ))), - s - ); - }), - (this.getHorizontalPositioningState = (e, t) => { - let s = null, - i = null, - a = "left"; - switch (e) { - case b.left: - (a = "right"), (s = t.width - this.baseHorizontalOffset); - break; - case b.insetLeft: - (a = "right"), - (s = - t.width - this.anchorWidth - this.baseHorizontalOffset); - break; - case b.insetRight: - (a = "left"), (i = this.baseHorizontalOffset); - break; - case b.right: - (a = "left"), - (i = this.anchorWidth + this.baseHorizontalOffset); - } - return { - xTransformOrigin: a, - right: s, - left: i, - currentHorizontalPosition: e, - horizontalSelectedPositionWidth: t.width, - }; - }), - (this.getVerticalPositioningState = (e, t) => { - let s = null, - i = null, - a = "top"; - switch (e) { - case g.top: - (a = "bottom"), - (i = - t.height + this.anchorHeight - this.baseVerticalOffset); - break; - case g.insetTop: - (a = "bottom"), (i = t.height - this.baseVerticalOffset); - break; - case g.insetBottom: - (a = "top"), - (s = this.baseVerticalOffset - this.anchorHeight); - break; - case g.bottom: - (a = "top"), (s = this.baseVerticalOffset); - } - return { - yTransformOrigin: a, - top: s, - bottom: i, - currentVerticalPosition: e, - verticalSelectedPositionHeight: t.height, - }; - }), - (this.getHorizontalTranslate = (e) => { - if (!this.props.horizontalAlwaysInView || this.state.disabled) - return 0; - let t = 0; - switch (e) { - case b.left: - (t = this.viewportRect.right - this.anchorLeft), - (t = t < 0 ? t - 1 : 0); - break; - case b.insetLeft: - (t = this.viewportRect.right - this.anchorRight), - (t = t < 0 ? t - 1 : 0); - break; - case b.insetRight: - (t = this.viewportRect.left - this.anchorLeft), - (t = t > 0 ? t + 1 : 0); - break; - case b.right: - (t = this.viewportRect.left - this.anchorRight), - (t = t > 0 ? t + 1 : 0); - } - return t; - }), - (this.getVerticalTranslate = (e) => { - if (!this.props.verticalAlwaysInView || this.state.disabled) - return 0; - let t = 0; - switch (e) { - case g.top: - (t = this.viewportRect.bottom - this.anchorTop), - (t = t < 0 ? t - 1 : 0); - break; - case g.insetTop: - (t = this.viewportRect.bottom - this.anchorBottom), - (t = t < 0 ? t - 1 : 0); - break; - case g.insetBottom: - (t = this.viewportRect.top - this.anchorTop), - (t = t < 0 ? 0 : t + 1); - break; - case g.bottom: - (t = this.viewportRect.top - this.anchorBottom), - (t = t < 0 ? 0 : t + 1); - } - return t; - }), - (this.requestFrame = () => { - null === this.openRequestAnimationFrame && - (this.openRequestAnimationFrame = - window.requestAnimationFrame(this.updateLayout)); - }), - (this.getAnchorElement = () => - (0, l.Z)(this.props.anchor) - ? null - : this.extractElement(this.props.anchor)), - (this.getViewportElement = (e) => { - if (!(0, l.Z)(e)) { - const t = this.extractElement(e); - return null !== t ? t : null; - } - if (!(0, l.Z)(this.context.viewport)) { - const e = this.extractElement(this.context.viewport); - return null !== e ? e : null; - } - return document.scrollingElement instanceof HTMLElement - ? document.scrollingElement - : null; - }), - (this.extractElement = (e) => { - const t = (0, o.x)(e); - return t instanceof HTMLElement ? t : null; - }), - (this.getHorizontalPositionToLabel = (e, t) => { - switch (e) { - case d.tg.inset: - if (t === d.kv.left) return b.insetLeft; - if (t === d.kv.right) return b.insetRight; - case d.tg.adjacent: - if (t === d.kv.left) return b.left; - if (t === d.kv.right) return b.right; - case d.tg.uncontrolled: - return b.undefined; - } - }), - (this.getVerticalPositionToLabel = (e, t) => { - switch (e) { - case d.tg.inset: - if (t === d.Lp.top) return g.insetTop; - if (t === d.Lp.bottom) return g.insetBottom; - case d.tg.adjacent: - if (t === d.Lp.top) return g.top; - if (t === d.Lp.bottom) return g.bottom; - case d.tg.uncontrolled: - return g.undefined; - } - }), - (this.generateInitialState = () => ({ - disabled: !0, - noObserverMode: !1, - xTransformOrigin: "left", - yTransformOrigin: "top", - xTranslate: 0, - yTranslate: 0, - top: null, - right: null, - bottom: null, - left: null, - currentHorizontalPosition: b.undefined, - currentVerticalPosition: g.undefined, - defaultHorizontalPosition: this.getHorizontalPositionToLabel( - this.props.horizontalPositioningMode, - this.props.defaultHorizontalPosition - ), - defaultVerticalPosition: this.getVerticalPositionToLabel( - this.props.verticalPositioningMode, - this.props.defaultVerticalPosition - ), - horizontalSelectedPositionWidth: null, - verticalSelectedPositionHeight: null, - initialLayoutComplete: !1, - validRefChecksRemaining: 2, - })), - (this.state = this.generateInitialState()); - } - componentDidMount() { - this.updateDisabledState(), this.requestFrame(); - } - componentWillUnmount() { - this.state.disabled || this.detachListeners(this.props.viewport); - } - componentDidUpdate(e) { - if (e !== this.props) { - if ( - e.anchor !== this.props.anchor || - e.viewport !== this.props.viewport - ) - return ( - this.detachListeners(e.viewport), - void this.setState(this.generateInitialState()) - ); - this.requestFrame(); - } - (e.disabled !== this.props.disabled || - this.state.validRefChecksRemaining > 0) && - this.updateDisabledState(); - } - render() { - return h.createElement( - "div", - Object.assign({}, this.unhandledProps(), { - ref: this.rootElement, - className: this.generateClassNames(), - style: this.getPositioningStyles(), - }), - this.props.disabled || - this.state.initialLayoutComplete || - !this.props.delayContentInstanciation - ? this.props.children - : null - ); - } - generateClassNames() { - const { - viewportPositioner: e, - viewportPositioner__left: t, - viewportPositioner__right: s, - viewportPositioner__top: i, - viewportPositioner__bottom: o, - viewportPositioner__horizontalInset: n, - viewportPositioner__verticalInset: r, - } = this.props.managedClasses, - l = this.state.currentHorizontalPosition, - h = this.state.currentVerticalPosition, - c = h === g.insetTop || h === g.insetBottom, - d = l === b.insetLeft || l === b.insetRight; - return super.generateClassNames( - (0, a.A)( - e, - [t, l === b.left || l === b.insetLeft], - [s, l === b.right || l === b.insetRight], - [n, d], - [i, h === g.top || h === g.insetTop], - [o, h === g.bottom || h === g.insetBottom], - [r, c] - ) - ); - } - } - (u.displayName = `${c.k}ViewportPositioner`), - (u.contextType = p), - (u.defaultProps = { - horizontalPositioningMode: d.tg.uncontrolled, - defaultHorizontalPosition: d.kv.uncontrolled, - verticalPositioningMode: d.tg.adjacent, - defaultVerticalPosition: d.Lp.bottom, - horizontalAlwaysInView: !1, - verticalAlwaysInView: !1, - verticalLockToDefault: !1, - horizontalLockToDefault: !1, - fixedAfterInitialPlacement: !1, - scaleToFit: !1, - delayContentInstanciation: !1, - managedClasses: {}, - }), - (u.contextType = p); - const m = u; - }, - 10736: (e, t, s) => { - "use strict"; - var i, a, o; - s.d(t, { - kv: () => i, - Lp: () => a, - tg: () => o, - }), - (function (e) { - (e.left = "left"), - (e.right = "right"), - (e.uncontrolled = "uncontrolled"); - })(i || (i = {})), - (function (e) { - (e.top = "top"), - (e.bottom = "bottom"), - (e.uncontrolled = "uncontrolled"); - })(a || (a = {})), - (function (e) { - (e.uncontrolled = "uncontrolled"), - (e.adjacent = "adjacent"), - (e.inset = "inset"); - })(o || (o = {})); - }, - }, - s = {}; - - function i(e) { - var a = s[e]; - if (void 0 !== a) return a.exports; - var o = (s[e] = { - id: e, - loaded: !1, - exports: {}, - }); - return t[e].call(o.exports, o, o.exports, i), (o.loaded = !0), o.exports; - } - (i.m = t), - (e = []), - (i.O = (t, s, a, o) => { - if (!s) { - var n = 1 / 0; - for (h = 0; h < e.length; h++) { - for (var [s, a, o] = e[h], r = !0, l = 0; l < s.length; l++) - (!1 & o || n >= o) && Object.keys(i.O).every((e) => i.O[e](s[l])) - ? s.splice(l--, 1) - : ((r = !1), o < n && (n = o)); - r && (e.splice(h--, 1), (t = a())); - } - return t; - } - o = o || 0; - for (var h = e.length; h > 0 && e[h - 1][2] > o; h--) e[h] = e[h - 1]; - e[h] = [s, a, o]; - }), - (i.n = (e) => { - var t = e && e.__esModule ? () => e.default : () => e; - return ( - i.d(t, { - a: t, - }), - t - ); - }), - (i.d = (e, t) => { - for (var s in t) - i.o(t, s) && - !i.o(e, s) && - Object.defineProperty(e, s, { - enumerable: !0, - get: t[s], - }); - }), - (i.g = (function () { - if ("object" == typeof globalThis) return globalThis; - try { - return this || new Function("return this")(); - } catch (e) { - if ("object" == typeof window) return window; - } - })()), - (i.hmd = (e) => ( - (e = Object.create(e)).children || (e.children = []), - Object.defineProperty(e, "exports", { - enumerable: !0, - set: () => { - throw new Error( - "ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: " + - e.id - ); - }, - }), - e - )), - (i.o = (e, t) => Object.prototype.hasOwnProperty.call(e, t)), - (i.r = (e) => { - "undefined" != typeof Symbol && - Symbol.toStringTag && - Object.defineProperty(e, Symbol.toStringTag, { - value: "Module", - }), - Object.defineProperty(e, "__esModule", { - value: !0, - }); - }), - (i.nmd = (e) => ((e.paths = []), e.children || (e.children = []), e)), - (i.j = 185), - (() => { - var e = { - 185: 0, - }; - i.O.j = (t) => 0 === e[t]; - var t = (t, s) => { - var a, - o, - [n, r, l] = s, - h = 0; - for (a in r) i.o(r, a) && (i.m[a] = r[a]); - if (l) var c = l(i); - for (t && t(s); h < n.length; h++) - (o = n[h]), i.o(e, o) && e[o] && e[o][0](), (e[n[h]] = 0); - return i.O(c); - }, - s = (self.webpackChunkedge_common = self.webpackChunkedge_common || []); - s.forEach(t.bind(null, 0)), (s.push = t.bind(null, s.push.bind(s))); - })(); - var a = i.O(void 0, [692, 197], () => i(13695)); - a = i.O(a); -})(); diff --git a/static/misc/edge-surf/resources/js/util.js b/static/misc/edge-surf/resources/js/util.js deleted file mode 100644 index cb03ad96..00000000 --- a/static/misc/edge-surf/resources/js/util.js +++ /dev/null @@ -1,320 +0,0 @@ -// Copyright (c) 2012 The Chromium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -// #import {assertInstanceof} from './assert.m.js'; -// #import {dispatchSimpleEvent} from './cr.m.js'; - -/** - * Alias for document.getElementById. Found elements must be HTMLElements. - * @param {string} id The ID of the element to find. - * @return {HTMLElement} The found element or null if not found. - */ -/* #export */ function $(id) { - // Disable getElementById restriction here, since we are instructing other - // places to re-use the $() that is defined here. - // eslint-disable-next-line no-restricted-properties - const el = document.getElementById(id); - return el ? assertInstanceof(el, HTMLElement) : null; -} - -// TODO(devlin): This should return SVGElement, but closure compiler is missing -// those externs. -/** - * Alias for document.getElementById. Found elements must be SVGElements. - * @param {string} id The ID of the element to find. - * @return {Element} The found element or null if not found. - */ -/* #export */ function getSVGElement(id) { - // Disable getElementById restriction here, since it is not suitable for SVG - // elements. - // eslint-disable-next-line no-restricted-properties - const el = document.getElementById(id); - return el ? assertInstanceof(el, Element) : null; -} - -/** - * @return {?Element} The currently focused element (including elements that are - * behind a shadow root), or null if nothing is focused. - */ -/* #export */ function getDeepActiveElement() { - let a = document.activeElement; - while (a && a.shadowRoot && a.shadowRoot.activeElement) { - a = a.shadowRoot.activeElement; - } - return a; -} - -// - -/** - * @param {Node} el A node to search for ancestors with |className|. - * @param {string} className A class to search for. - * @return {Element} A node with class of |className| or null if none is found. - */ -/* #export */ function findAncestorByClass(el, className) { - return /** @type {Element} */ (findAncestor(el, function(el) { - return el.classList && el.classList.contains(className); - })); -} - -/** - * Return the first ancestor for which the {@code predicate} returns true. - * @param {Node} node The node to check. - * @param {function(Node):boolean} predicate The function that tests the - * nodes. - * @param {boolean=} includeShadowHosts - * @return {Node} The found ancestor or null if not found. - */ -/* #export */ function findAncestor(node, predicate, includeShadowHosts) { - while (node !== null) { - if (predicate(node)) { - break; - } - node = includeShadowHosts && node instanceof ShadowRoot ? node.host : - node.parentNode; - } - return node; -} - -/** - * Disables text selection and dragging, with optional callbacks to specify - * overrides. - * @param {function(Event):boolean=} opt_allowSelectStart Unless this function - * is defined and returns true, the onselectionstart event will be - * suppressed. - * @param {function(Event):boolean=} opt_allowDragStart Unless this function - * is defined and returns true, the ondragstart event will be suppressed. - */ -/* #export */ function disableTextSelectAndDrag( - opt_allowSelectStart, opt_allowDragStart) { - // Disable text selection. - document.onselectstart = function(e) { - if (!(opt_allowSelectStart && opt_allowSelectStart.call(this, e))) { - e.preventDefault(); - } - }; - - // Disable dragging. - document.ondragstart = function(e) { - if (!(opt_allowDragStart && opt_allowDragStart.call(this, e))) { - e.preventDefault(); - } - }; -} - -/** - * Check the directionality of the page. - * @return {boolean} True if Chrome is running an RTL UI. - */ -/* #export */ function isRTL() { - return document.documentElement.dir === 'rtl'; -} - -/** - * Get an element that's known to exist by its ID. We use this instead of just - * calling getElementById and not checking the result because this lets us - * satisfy the JSCompiler type system. - * @param {string} id The identifier name. - * @return {!HTMLElement} the Element. - */ -/* #export */ function getRequiredElement(id) { - return assertInstanceof( - $(id), HTMLElement, 'Missing required element: ' + id); -} - -/** - * Query an element that's known to exist by a selector. We use this instead of - * just calling querySelector and not checking the result because this lets us - * satisfy the JSCompiler type system. - * @param {string} selectors CSS selectors to query the element. - * @param {(!Document|!DocumentFragment|!Element)=} opt_context An optional - * context object for querySelector. - * @return {!HTMLElement} the Element. - */ -/* #export */ function queryRequiredElement(selectors, opt_context) { - const element = (opt_context || document).querySelector(selectors); - return assertInstanceof( - element, HTMLElement, 'Missing required element: ' + selectors); -} - -/** - * Creates a new URL which is the old URL with a GET param of key=value. - * @param {string} url The base URL. There is not sanity checking on the URL so - * it must be passed in a proper format. - * @param {string} key The key of the param. - * @param {string} value The value of the param. - * @return {string} The new URL. - */ -/* #export */ function appendParam(url, key, value) { - const param = encodeURIComponent(key) + '=' + encodeURIComponent(value); - - if (url.indexOf('?') === -1) { - return url + '?' + param; - } - return url + '&' + param; -} - -/** - * Creates an element of a specified type with a specified class name. - * @param {string} type The node type. - * @param {string} className The class name to use. - * @return {Element} The created element. - */ -/* #export */ function createElementWithClassName(type, className) { - const elm = document.createElement(type); - elm.className = className; - return elm; -} - -/** - * transitionend does not always fire (e.g. when animation is aborted - * or when no paint happens during the animation). This function sets up - * a timer and emulate the event if it is not fired when the timer expires. - * @param {!HTMLElement} el The element to watch for transitionend. - * @param {number=} opt_timeOut The maximum wait time in milliseconds for the - * transitionend to happen. If not specified, it is fetched from |el| - * using the transitionDuration style value. - */ -/* #export */ function ensureTransitionEndEvent(el, opt_timeOut) { - if (opt_timeOut === undefined) { - const style = getComputedStyle(el); - opt_timeOut = parseFloat(style.transitionDuration) * 1000; - - // Give an additional 50ms buffer for the animation to complete. - opt_timeOut += 50; - } - - let fired = false; - el.addEventListener('transitionend', function f(e) { - el.removeEventListener('transitionend', f); - fired = true; - }); - window.setTimeout(function() { - if (!fired) { - cr.dispatchSimpleEvent(el, 'transitionend', true); - } - }, opt_timeOut); -} - -/** - * Alias for document.scrollTop getter. - * @param {!HTMLDocument} doc The document node where information will be - * queried from. - * @return {number} The Y document scroll offset. - */ -/* #export */ function scrollTopForDocument(doc) { - return doc.documentElement.scrollTop || doc.body.scrollTop; -} - -/** - * Alias for document.scrollTop setter. - * @param {!HTMLDocument} doc The document node where information will be - * queried from. - * @param {number} value The target Y scroll offset. - */ -/* #export */ function setScrollTopForDocument(doc, value) { - doc.documentElement.scrollTop = doc.body.scrollTop = value; -} - -/** - * Alias for document.scrollLeft getter. - * @param {!HTMLDocument} doc The document node where information will be - * queried from. - * @return {number} The X document scroll offset. - */ -/* #export */ function scrollLeftForDocument(doc) { - return doc.documentElement.scrollLeft || doc.body.scrollLeft; -} - -/** - * Alias for document.scrollLeft setter. - * @param {!HTMLDocument} doc The document node where information will be - * queried from. - * @param {number} value The target X scroll offset. - */ -/* #export */ function setScrollLeftForDocument(doc, value) { - doc.documentElement.scrollLeft = doc.body.scrollLeft = value; -} - -/** - * Replaces '&', '<', '>', '"', and ''' characters with their HTML encoding. - * @param {string} original The original string. - * @return {string} The string with all the characters mentioned above replaced. - */ -/* #export */ function HTMLEscape(original) { - return original.replace(/&/g, '&') - .replace(/</g, '<') - .replace(/>/g, '>') - .replace(/"/g, '"') - .replace(/'/g, '''); -} - -/** - * Shortens the provided string (if necessary) to a string of length at most - * |maxLength|. - * @param {string} original The original string. - * @param {number} maxLength The maximum length allowed for the string. - * @return {string} The original string if its length does not exceed - * |maxLength|. Otherwise the first |maxLength| - 1 characters with '...' - * appended. - */ -/* #export */ function elide(original, maxLength) { - if (original.length <= maxLength) { - return original; - } - return original.substring(0, maxLength - 1) + '\u2026'; -} - -/** - * Quote a string so it can be used in a regular expression. - * @param {string} str The source string. - * @return {string} The escaped string. - */ -/* #export */ function quoteString(str) { - return str.replace(/([\\\.\+\*\?\[\^\]\$\(\)\{\}\=\!\<\>\|\:])/g, '\\$1'); -} - -/** - * Calls |callback| and stops listening the first time any event in |eventNames| - * is triggered on |target|. - * @param {!EventTarget} target - * @param {!Array<string>|string} eventNames Array or space-delimited string of - * event names to listen to (e.g. 'click mousedown'). - * @param {function(!Event)} callback Called at most once. The - * optional return value is passed on by the listener. - */ -/* #export */ function listenOnce(target, eventNames, callback) { - if (!Array.isArray(eventNames)) { - eventNames = eventNames.split(/ +/); - } - - const removeAllAndCallCallback = function(event) { - eventNames.forEach(function(eventName) { - target.removeEventListener(eventName, removeAllAndCallCallback, false); - }); - return callback(event); - }; - - eventNames.forEach(function(eventName) { - target.addEventListener(eventName, removeAllAndCallCallback, false); - }); -} - -/** - * @param {!Event} e - * @return {boolean} Whether a modifier key was down when processing |e|. - */ -/* #export */ function hasKeyModifiers(e) { - return !!(e.altKey || e.ctrlKey || e.metaKey || e.shiftKey); -} - -/** - * @param {!Element} el - * @return {boolean} Whether the element is interactive via text input. - */ -/* #export */ function isTextInputElement(el) { - return el.tagName === 'INPUT' || el.tagName === 'TEXTAREA'; -} - -/* #ignore */ console.warn('crbug/1173575, non-JS module files deprecated.'); diff --git a/static/misc/edge-surf/resources/ski/bg.png b/static/misc/edge-surf/resources/ski/bg.png deleted file mode 100644 index e4343990..00000000 Binary files a/static/misc/edge-surf/resources/ski/bg.png and /dev/null differ diff --git a/static/misc/edge-surf/resources/ski/objects.png b/static/misc/edge-surf/resources/ski/objects.png deleted file mode 100644 index 7803809f..00000000 Binary files a/static/misc/edge-surf/resources/ski/objects.png and /dev/null differ diff --git a/static/misc/edge-surf/resources/ski/player.png b/static/misc/edge-surf/resources/ski/player.png deleted file mode 100644 index 4def3db4..00000000 Binary files a/static/misc/edge-surf/resources/ski/player.png and /dev/null differ diff --git a/static/misc/edge-surf/resources/surf/bg.png b/static/misc/edge-surf/resources/surf/bg.png deleted file mode 100644 index aab6d9c3..00000000 Binary files a/static/misc/edge-surf/resources/surf/bg.png and /dev/null differ diff --git a/static/misc/edge-surf/resources/surf/objects.png b/static/misc/edge-surf/resources/surf/objects.png deleted file mode 100644 index e5417fcc..00000000 Binary files a/static/misc/edge-surf/resources/surf/objects.png and /dev/null differ diff --git a/static/misc/edge-surf/resources/surf/player.png b/static/misc/edge-surf/resources/surf/player.png deleted file mode 100644 index 7d23e87d..00000000 Binary files a/static/misc/edge-surf/resources/surf/player.png and /dev/null differ diff --git a/static/misc/edge-surf/splash.png b/static/misc/edge-surf/splash.png deleted file mode 100644 index 07c4ddf5..00000000 Binary files a/static/misc/edge-surf/splash.png and /dev/null differ diff --git a/static/misc/play/poorbunny.html b/static/misc/play/poorbunny.html new file mode 100644 index 00000000..f0cb6d5f --- /dev/null +++ b/static/misc/play/poorbunny.html @@ -0,0 +1,86 @@ +<!DOCTYPE html> +<html lang="en"> + +<head> + <link rel="icon" type="image/x-icon" href="/img/favicon.ico" /> + <script src="/assets/js/font.js"></script> + <meta name="google" content="notranslate" /> + <link rel="stylesheet" type="text/css" href="/assets/css/style.css" /> + <link rel="stylesheet" href="/assets/css/nav.css?v=3" /> + <title>Google</title> + <meta name="viewport" content="width=device-width, initial-scale=1.0" /> + <meta name="author" content="Rednotsus" /> + <meta http-equiv="Cache-control" content="public"> + <meta charset="utf-8"> + <meta name="description" + content="Canvas LMS is an open and reliable web-based software that allows institutions to manage digital learning, educators to create and present online learning materials and assess student learning, and students to engage in courses and receive feedback about skill development and learning achievement." /> + <meta name="keywords" + content="unblocked games, 55gms tk, 55gms, reds exploit corner, games, unblocked, site, lanier, lanier middle school, gg, Minecraft, discord, chromebook, chromeos, rednotsus, vanillacraft, eaglercraft unblocked, resent client unblocked, fun, cool, proxy, slope unblocked, free, unblocked monkey mart, 555gms, 5gms, school" /> + <link rel="stylesheet" href="/assets/css/gameframe.css" /> + <script src="/assets/js/script.js?v=11"></script> +</head> + +<body> + <nav> + <div class="navbar"> + <a id="nav-title" href="/">Reds Exploit Corner</a> + <a href="/g"><i class="fa-solid fa-gamepad"> </i>Games</a> + <a href="/a"><i class="fa-solid fa-box-archive"> </i>Apps</a> + <a href="/-"><i class="fa-solid fa-tv"> </i>Media</a> + <a href="/e"><i class="fa-solid fa-robot"></i> </i>AI</a> + <a href="/s"><i class="fa-solid fa-gears"> </i>Settings</a> + <a href="/profile"><i class="fa-solid fa-user"></i></a> + </div> + </nav> + + <div id="gameframe"> + <div class="gameDisplay"> + <div class="game"> + <iframe id="iframe" src="/misc/poor-bunny/index.html"></iframe> + </div> + <div class="options"> + <div class="left"> + <div class="gametext"> + <img src="/misc/poor-bunny/img.webp" class="gameicon" /> + <div class="margin"> + <div class="flex"> + <h1 class="titletext">Poor Bunny</h1> + </div> + <span class="bytext">By Jussi Simpanen</span> + </div> + </div> + </div> + <div class="right"> + <i class="fa-solid fa-rotate-right reloadbtn" id="reloadbtn"></i> + <i class="fa-solid fa-expand fullscreenbtn" onclick="fullscreen();"></i> + </div> + </div> + </div> + </div> + <div class="addisplay" id="addisplay"> + <ins id="adElement"></ins> + <div class="script-container"></div> + <div class="ad1">Advertisement</div> + + </div> + <script> + var elem = document.getElementById("iframe"); + + function fullscreen() { + if (elem.requestFullscreen) { + elem.requestFullscreen(); + } else if (elem.webkitRequestFullscreen) { + elem.webkitRequestFullscreen(); + } else if (elem.msRequestFullscreen) { + elem.msRequestFullscreen(); + } + } + function reload() { + document.getElementById("iframe").src += ""; + } + reloadbtn.onclick = reload; + </script> + <script src="/assets/js/ad.js?v=1"></script> +</body> + +</html> \ No newline at end of file diff --git a/static/misc/poor-bunny/Poor Bunny.js b/static/misc/poor-bunny/Poor Bunny.js new file mode 100644 index 00000000..4c538de9 --- /dev/null +++ b/static/misc/poor-bunny/Poor Bunny.js @@ -0,0 +1,5371 @@ +/* + howler.js v2.1.1 | (c) 2013-2018, James Simpson of GoldFire Studios | MIT License | howlerjs.com Spatial Plugin @source http://purl.eligrey.com/github/FileSaver.js/blob/master/FileSaver.js */ +var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.checkStringArgs=function(ma,y,Q){if(null==ma)throw new TypeError("The 'this' value for String.prototype."+Q+" must not be null or undefined");if(y instanceof RegExp)throw new TypeError("First argument to String.prototype."+Q+" must not be a regular expression");return ma+""};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1; +$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(ma,y,Q){ma!=Array.prototype&&ma!=Object.prototype&&(ma[y]=Q.value)};$jscomp.getGlobal=function(ma){ma=["object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global,ma];for(var y=0;y<ma.length;++y){var Q=ma[y];if(Q&&Q.Math==Math)return Q}throw Error("Cannot find global object");};$jscomp.global=$jscomp.getGlobal(this); +$jscomp.polyfill=function(ma,y,Q,M){if(y){Q=$jscomp.global;ma=ma.split(".");for(M=0;M<ma.length-1;M++){var T=ma[M];T in Q||(Q[T]={});Q=Q[T]}ma=ma[ma.length-1];M=Q[ma];y=y(M);y!=M&&null!=y&&$jscomp.defineProperty(Q,ma,{configurable:!0,writable:!0,value:y})}}; +$jscomp.polyfill("String.prototype.endsWith",function(ma){return ma?ma:function(y,Q){var M=$jscomp.checkStringArgs(this,y,"endsWith");y+="";void 0===Q&&(Q=M.length);Q=Math.max(0,Math.min(Q|0,M.length));for(var T=y.length;0<T&&0<Q;)if(M[--Q]!=y[--T])return!1;return 0>=T}},"es6","es3"); +$jscomp.polyfill("String.fromCodePoint",function(ma){return ma?ma:function(y){for(var Q="",M=0;M<arguments.length;M++){var T=Number(arguments[M]);if(0>T||1114111<T||T!==Math.floor(T))throw new RangeError("invalid_code_point "+T);65535>=T?Q+=String.fromCharCode(T):(T-=65536,Q+=String.fromCharCode(T>>>10&1023|55296),Q+=String.fromCharCode(T&1023|56320))}return Q}},"es6","es3");$jscomp.arrayIteratorImpl=function(ma){var y=0;return function(){return y<ma.length?{done:!1,value:ma[y++]}:{done:!0}}}; +$jscomp.arrayIterator=function(ma){return{next:$jscomp.arrayIteratorImpl(ma)}};$jscomp.SYMBOL_PREFIX="jscomp_symbol_";$jscomp.initSymbol=function(){$jscomp.initSymbol=function(){};$jscomp.global.Symbol||($jscomp.global.Symbol=$jscomp.Symbol)};$jscomp.SymbolClass=function(ma,y){this.$jscomp$symbol$id_=ma;$jscomp.defineProperty(this,"description",{configurable:!0,writable:!0,value:y})};$jscomp.SymbolClass.prototype.toString=function(){return this.$jscomp$symbol$id_}; +$jscomp.Symbol=function(){function ma(Q){if(this instanceof ma)throw new TypeError("Symbol is not a constructor");return new $jscomp.SymbolClass($jscomp.SYMBOL_PREFIX+(Q||"")+"_"+y++,Q)}var y=0;return ma}(); +$jscomp.initSymbolIterator=function(){$jscomp.initSymbol();var ma=$jscomp.global.Symbol.iterator;ma||(ma=$jscomp.global.Symbol.iterator=$jscomp.global.Symbol("Symbol.iterator"));"function"!=typeof Array.prototype[ma]&&$jscomp.defineProperty(Array.prototype,ma,{configurable:!0,writable:!0,value:function(){return $jscomp.iteratorPrototype($jscomp.arrayIteratorImpl(this))}});$jscomp.initSymbolIterator=function(){}}; +$jscomp.initSymbolAsyncIterator=function(){$jscomp.initSymbol();var ma=$jscomp.global.Symbol.asyncIterator;ma||(ma=$jscomp.global.Symbol.asyncIterator=$jscomp.global.Symbol("Symbol.asyncIterator"));$jscomp.initSymbolAsyncIterator=function(){}};$jscomp.iteratorPrototype=function(ma){$jscomp.initSymbolIterator();ma={next:ma};ma[$jscomp.global.Symbol.iterator]=function(){return this};return ma}; +$jscomp.iteratorFromArray=function(ma,y){$jscomp.initSymbolIterator();ma instanceof String&&(ma+="");var Q=0,M={next:function(){if(Q<ma.length){var T=Q++;return{value:y(T,ma[T]),done:!1}}M.next=function(){return{done:!0,value:void 0}};return M.next()}};M[Symbol.iterator]=function(){return M};return M};$jscomp.polyfill("Array.prototype.keys",function(ma){return ma?ma:function(){return $jscomp.iteratorFromArray(this,function(y){return y})}},"es6","es3"); +$jscomp.polyfill("String.prototype.startsWith",function(ma){return ma?ma:function(y,Q){var M=$jscomp.checkStringArgs(this,y,"startsWith");y+="";var T=M.length,na=y.length;Q=Math.max(0,Math.min(Q|0,M.length));for(var u=0;u<na&&Q<T;)if(M[Q++]!=y[u++])return!1;return u>=na}},"es6","es3");$jscomp.polyfill("Array.prototype.values",function(ma){return ma?ma:function(){return $jscomp.iteratorFromArray(this,function(y,Q){return Q})}},"es8","es3"); +$jscomp.polyfill("String.prototype.codePointAt",function(ma){return ma?ma:function(y){var Q=$jscomp.checkStringArgs(this,null,"codePointAt"),M=Q.length;y=Number(y)||0;if(0<=y&&y<M){y|=0;var T=Q.charCodeAt(y);if(55296>T||56319<T||y+1===M)return T;y=Q.charCodeAt(y+1);return 56320>y||57343<y?T:1024*(T-55296)+y+9216}}},"es6","es3"); +$jscomp.polyfill("Array.prototype.fill",function(ma){return ma?ma:function(y,Q,M){var T=this.length||0;0>Q&&(Q=Math.max(0,T+Q));if(null==M||M>T)M=T;M=Number(M);0>M&&(M=Math.max(0,T+M));for(Q=Number(Q||0);Q<M;Q++)this[Q]=y;return this}},"es6","es3"); +$jscomp.polyfill("String.prototype.repeat",function(ma){return ma?ma:function(y){var Q=$jscomp.checkStringArgs(this,null,"repeat");if(0>y||1342177279<y)throw new RangeError("Invalid count value");y|=0;for(var M="";y;)if(y&1&&(M+=Q),y>>>=1)Q+=Q;return M}},"es6","es3"); +(function(ma,y){ma.lime=ma.lime||{};ma.lime.$scripts=ma.lime.$scripts||{};ma.lime.$scripts["Poor Bunny"]=function(y,M){(function(y,Q){function u(a,b){a=Object.create(a);for(var c in b)a[c]=b[c];b.toString!==Object.prototype.toString&&(a.toString=b.toString);return a}function M(a){return a instanceof Array?new ue(a):a.iterator()}function q(a,b){if(null==b)return null;null==b.__id__&&(b.__id__=Q.$haxeUID++);var c;null==a.hx__closures__?a.hx__closures__={}:c=a.hx__closures__[b.__id__];null==c&&(c=b.bind(a), +a.hx__closures__[b.__id__]=c);return c}y.lime=y.lime||{};var k={},v=function(){return O.__string_rec(this,"")},E=E||{},N,ya=function(){};k.ApplicationMain=ya;ya.__name__="ApplicationMain";ya.main=function(){da.am=ya;da.setupTracing(!0);ja.load();K.loadInputConfig();da.setupTracing();Pa.__registerEntryPoint("Poor Bunny",ya.create);Da.get_current()};ya.reloadGame=function(){for(var a=0,b=ya.reloadListeners;a<b.length;){var c=b[a];++a;c()}f.resetStatics();Jd.resetStatics();tb.resetStatics();Ke.resetStatics(); +va.resetStatics();Wa.resetStatics();Ub.resetStatics();me.resetStatics();qc.resetStatics();Kd.resetStatics();Af.resetStatics();ie.resetStatics();jb.resetStatics();S.resetStatics();ic.resetStatics();K.resetStatics();h.resetStatics();Da.get_current().removeChild(ya.universal);K.loadInputConfig();ya.universal=new da;Da.get_current().addChild(ya.universal);ya.universal.preloaderComplete()};ya.create=function(a){ya.app=new jj;na.init(a);ya.app.meta.h.build="1";ya.app.meta.h.company="Stencyl";ya.app.meta.h.file= +"Poor Bunny";ya.app.meta.h.name="Poor Bunny";ya.app.meta.h.packageName="com.example.myapp";ya.app.meta.h.version="1.0.0";var b={allowHighDPI:!1,alwaysOnTop:!1,borderless:!1,element:null,frameRate:65,height:480,hidden:!1,maximized:!1,minimized:!1,parameters:{},resizable:!0,title:"Poor Bunny",width:852,x:null,y:null};b.context={antialiasing:ja.antialias?2:0,background:0,colorDepth:32,depth:!0,hardware:!0,stencil:!0,type:null,vsync:!0};if(null==ya.app.__window&&null!=a)for(var c=0,d=W.fields(a);c<d.length;){var e= +d[c];++c;Object.prototype.hasOwnProperty.call(b,e)?b[e]=W.field(a,e):Object.prototype.hasOwnProperty.call(b.context,e)&&(b.context[e]=W.field(a,e))}ya.app.createWindow(b);ja.releaseMode||Da.get_current().get_loaderInfo().uncaughtErrorEvents.addEventListener("uncaughtError",ya.uncaughtErrorHandler);da.initWindow(ya.app.__window);ya.universal=new da;Da.get_current().addChild(ya.universal);pa.start(!1,function(){pa.gameLoadingStart();var a=new tk;a.onComplete.add((N=ya.universal,q(N,N.preloaderComplete))); +ya.app.__preloader.onProgress.add(q(a,a.onUpdate));ya.app.__preloader.onComplete.add(q(a,a.onLoaded));ya.app.__preloader.onProgress.add(ya.onUpdate);ya.app.__preloader.onComplete.add(ya.onLoaded);a=0;for(var b=na.preloadLibraries;a<b.length;){var c=b[a];++a;ya.app.__preloader.addLibrary(c)}a=0;for(b=na.preloadLibraryNames;a<b.length;)c=b[a],++a,ya.app.__preloader.addLibraryName(c);ya.app.__preloader.load();ya.app.exec()})};ya.onUpdate=function(a,b){pa.gameLoadingProgress(a/b,a,b)};ya.onLoaded=function(){pa.gameLoadingFinished()}; +ya.uncaughtErrorHandler=function(a){};var Z=function(a,b){this.r=new RegExp(a,b.split("u").join(""))};k.EReg=Z;Z.__name__="EReg";Z.prototype={r:null,match:function(a){this.r.global&&(this.r.lastIndex=0);this.r.m=this.r.exec(a);this.r.s=a;return null!=this.r.m},matched:function(a){if(null!=this.r.m&&0<=a&&a<this.r.m.length)return this.r.m[a];throw R.thrown("EReg::matched");},matchedRight:function(){if(null==this.r.m)throw R.thrown("No string matched");var a=this.r.m.index+this.r.m[0].length;return F.substr(this.r.s, +a,this.r.s.length-a)},matchedPos:function(){if(null==this.r.m)throw R.thrown("No string matched");return{pos:this.r.m.index,len:this.r.m[0].length}},matchSub:function(a,b,c){null==c&&(c=-1);if(this.r.global){if(this.r.lastIndex=b,this.r.m=this.r.exec(0>c?a:F.substr(a,0,b+c)),c=null!=this.r.m)this.r.s=a}else if(c=this.match(0>c?F.substr(a,b,null):F.substr(a,b,c)))this.r.s=a,this.r.m.index+=b;return c},split:function(a){return a.replace(this.r,"#__delim__#").split("#__delim__#")},map:function(a,b){for(var c= +0,d="";!(c>=a.length);){if(!this.matchSub(a,c)){d+=n.string(F.substr(a,c,null));break}var e=this.matchedPos();d+=n.string(F.substr(a,c,e.pos-c));d+=n.string(b(this));0==e.len?(d+=n.string(F.substr(a,e.pos,1)),c=e.pos+1):c=e.pos+e.len;if(!this.r.global)break}!this.r.global&&0<c&&c<a.length&&(d+=n.string(F.substr(a,c,null)));return d},__class__:Z};var F=function(){};k.HxOverrides=F;F.__name__="HxOverrides";F.strDate=function(a){switch(a.length){case 8:a=a.split(":");var b=new Date;b.setTime(0);b.setUTCHours(a[0]); +b.setUTCMinutes(a[1]);b.setUTCSeconds(a[2]);return b;case 10:return a=a.split("-"),new Date(a[0],a[1]-1,a[2],0,0,0);case 19:return a=a.split(" "),b=a[0].split("-"),a=a[1].split(":"),new Date(b[0],b[1]-1,b[2],a[0],a[1],a[2]);default:throw R.thrown("Invalid date format : "+a);}};F.cca=function(a,b){a=a.charCodeAt(b);if(a==a)return a};F.substr=function(a,b,c){if(null==c)c=a.length;else if(0>c)if(0==b)c=a.length+c;else return"";return a.substr(b,c)};F.remove=function(a,b){b=a.indexOf(b);if(-1==b)return!1; +a.splice(b,1);return!0};F.now=function(){return Date.now()};var T=function(a,b){this.min=a;this.max=b};k.IntIterator=T;T.__name__="IntIterator";T.prototype={min:null,max:null,hasNext:function(){return this.min<this.max},next:function(){return this.min++},__class__:T};var Qc=function(){};k.Lambda=Qc;Qc.__name__="Lambda";Qc.array=function(a){var b=[];for(a=M(a);a.hasNext();){var c=a.next();b.push(c)}return b};Qc.count=function(a,b){var c=0;if(null==b)for(b=M(a);b.hasNext();)b.next(),++c;else for(a= +M(a);a.hasNext();){var d=a.next();b(d)&&++c}return c};Qc.indexOf=function(a,b){var c=0;for(a=M(a);a.hasNext();){var d=a.next();if(b==d)return c;++c}return-1};var na=function(){};k.ManifestResources=na;na.__name__="ManifestResources";na.init=function(a){na.preloadLibraries=[];na.preloadLibraryNames=[];na.rootPath=null;null!=a&&Object.prototype.hasOwnProperty.call(a,"rootPath")&&(na.rootPath=W.field(a,"rootPath"),J.endsWith(na.rootPath,"/")||(na.rootPath+="/"));null==na.rootPath&&(na.rootPath="./"); +a=Fc.parse('{"name":null,"assets":"aoy8:positioni15y4:sizezy4:typey4:TEXTy2:idy37:assets%2Fgraphics%2F1x%2Ffont-579.fnty6:lengthi1060goR0i1075R1zR2y5:IMAGER4y37:assets%2Fgraphics%2F1x%2Ffont-579.pngR6i1324y7:preloadtgoR0i2399R1zR2R3R4y37:assets%2Fgraphics%2F1x%2Ffont-581.fntR6i448goR0i2847R1zR2R7R4y37:assets%2Fgraphics%2F1x%2Ffont-581.pngR6i199R9tgoR0i3046R1zR2R3R4y37:assets%2Fgraphics%2F1x%2Ffont-729.fntR6i454goR0i3500R1zR2R7R4y37:assets%2Fgraphics%2F1x%2Ffont-729.pngR6i241R9tgoR0i3741R1zR2R3R4y37:assets%2Fgraphics%2F1x%2Ffont-735.fntR6i657goR0i4398R1zR2R7R4y37:assets%2Fgraphics%2F1x%2Ffont-735.pngR6i402R9tgoR0i4800R1zR2R3R4y37:assets%2Fgraphics%2F1x%2Ffont-766.fntR6i1053goR0i5853R1zR2R7R4y37:assets%2Fgraphics%2F1x%2Ffont-766.pngR6i1099R9tgoR0i6952R1zR2R3R4y37:assets%2Fgraphics%2F1x%2Ffont-818.fntR6i1054goR0i8006R1zR2R7R4y37:assets%2Fgraphics%2F1x%2Ffont-818.pngR6i1107R9tgoR0i9113R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-480-0.pngR6i372R9tgoR0i9485R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-480-1.pngR6i372R9tgoR0i9857R1zR2R7R4y42:assets%2Fgraphics%2F1x%2Fsprite-480-12.pngR6i282R9tgoR0i10139R1zR2R7R4y42:assets%2Fgraphics%2F1x%2Fsprite-480-13.pngR6i283R9tgoR0i10422R1zR2R7R4y42:assets%2Fgraphics%2F1x%2Fsprite-480-14.pngR6i300R9tgoR0i10722R1zR2R7R4y42:assets%2Fgraphics%2F1x%2Fsprite-480-15.pngR6i290R9tgoR0i11012R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-480-2.pngR6i619R9tgoR0i11631R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-480-3.pngR6i635R9tgoR0i12266R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-480-8.pngR6i286R9tgoR0i12552R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-480-9.pngR6i287R9tgoR0i12839R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-485-0.pngR6i98R9tgoR0i12937R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-487-0.pngR6i98R9tgoR0i13035R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-489-0.pngR6i1027R9tgoR0i14062R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-489-2.pngR6i387R9tgoR0i14449R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-491-0.pngR6i201R9tgoR0i14650R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-491-1.pngR6i210R9tgoR0i14860R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-491-2.pngR6i228R9tgoR0i15088R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-491-3.pngR6i228R9tgoR0i15316R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-495-0.pngR6i924R9tgoR0i16240R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-495-1.pngR6i919R9tgoR0i17159R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-495-2.pngR6i924R9tgoR0i18083R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-498-0.pngR6i349R9tgoR0i18432R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-498-1.pngR6i551R9tgoR0i18983R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-498-2.pngR6i911R9tgoR0i19894R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-498-3.pngR6i310R9tgoR0i20204R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-500-0.pngR6i504R9tgoR0i20708R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-500-1.pngR6i229R9tgoR0i20937R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-502-0.pngR6i418R9tgoR0i21355R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-504-0.pngR6i387R9tgoR0i21742R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-504-1.pngR6i374R9tgoR0i22116R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-506-0.pngR6i273R9tgoR0i22389R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-506-1.pngR6i278R9tgoR0i22667R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-508-0.pngR6i256R9tgoR0i22923R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-508-1.pngR6i263R9tgoR0i23186R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-510-0.pngR6i348R9tgoR0i23534R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-510-1.pngR6i320R9tgoR0i23854R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-512-0.pngR6i317R9tgoR0i24171R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-512-1.pngR6i285R9tgoR0i24456R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-516-0.pngR6i289R9tgoR0i24745R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-516-1.pngR6i299R9tgoR0i25044R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-518-0.pngR6i270R9tgoR0i25314R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-518-1.pngR6i259R9tgoR0i25573R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-520-0.pngR6i173R9tgoR0i25746R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-520-1.pngR6i209R9tgoR0i25955R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-522-0.pngR6i200R9tgoR0i26155R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-522-1.pngR6i225R9tgoR0i26380R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-526-2.pngR6i328R9tgoR0i26708R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-528-0.pngR6i971R9tgoR0i27679R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-530-0.pngR6i178R9tgoR0i27857R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-530-1.pngR6i212R9tgoR0i28069R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-534-0.pngR6i1478R9tgoR0i29547R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-538-0.pngR6i294R9tgoR0i29841R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-540-0.pngR6i256R9tgoR0i30097R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-542-0.pngR6i204R9tgoR0i30301R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-544-0.pngR6i1527R9tgoR0i31828R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-550-0.pngR6i153R9tgoR0i31981R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-550-1.pngR6i218R9tgoR0i32199R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-552-0.pngR6i579R9tgoR0i32778R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-556-0.pngR6i597R9tgoR0i33375R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-559-0.pngR6i351R9tgoR0i33726R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-559-1.pngR6i552R9tgoR0i34278R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-559-2.pngR6i917R9tgoR0i35195R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-559-3.pngR6i304R9tgoR0i35499R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-561-0.pngR6i88R9tgoR0i35587R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-566-0.pngR6i1033R9tgoR0i36620R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-566-2.pngR6i379R9tgoR0i36999R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-569-0.pngR6i129R9tgoR0i37128R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-569-1.pngR6i141R9tgoR0i37269R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-571-1.pngR6i259R9tgoR0i37528R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-573-0.pngR6i708R9tgoR0i38236R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-576-0.pngR6i597R9tgoR0i38833R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-576-1.pngR6i646R9tgoR0i39479R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-578-0.pngR6i467R9tgoR0i39946R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-578-1.pngR6i562R9tgoR0i40508R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-578-2.pngR6i500R9tgoR0i41008R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-583-0.pngR6i195R9tgoR0i41203R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-585-0.pngR6i185R9tgoR0i41388R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-587-0.pngR6i105R9tgoR0i41493R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-589-0.pngR6i258R9tgoR0i41751R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-589-1.pngR6i243R9tgoR0i41994R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-591-0.pngR6i249R9tgoR0i42243R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-591-1.pngR6i240R9tgoR0i42483R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-593-0.pngR6i266R9tgoR0i42749R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-593-1.pngR6i251R9tgoR0i43000R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-596-0.pngR6i266R9tgoR0i43266R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-596-1.pngR6i251R9tgoR0i43517R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-598-0.pngR6i329R9tgoR0i43846R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-600-0.pngR6i1899R9tgoR0i45745R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-600-1.pngR6i1419R9tgoR0i47164R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-602-0.pngR6i450R9tgoR0i47614R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-602-1.pngR6i416R9tgoR0i48030R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-604-1.pngR6i256R9tgoR0i48286R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-607-0.pngR6i258R9tgoR0i48544R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-607-1.pngR6i235R9tgoR0i48779R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-607-2.pngR6i275R9tgoR0i49054R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-607-3.pngR6i259R9tgoR0i49313R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-609-0.pngR6i243R9tgoR0i49556R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-609-1.pngR6i229R9tgoR0i49785R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-609-2.pngR6i286R9tgoR0i50071R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-609-3.pngR6i280R9tgoR0i50351R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-611-0.pngR6i126R9tgoR0i50477R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-611-1.pngR6i132R9tgoR0i50609R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-611-2.pngR6i129R9tgoR0i50738R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-611-3.pngR6i131R9tgoR0i50869R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-611-4.pngR6i137R9tgoR0i51006R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-611-5.pngR6i138R9tgoR0i51144R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-613-0.pngR6i183R9tgoR0i51327R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-613-1.pngR6i186R9tgoR0i51513R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-613-2.pngR6i171R9tgoR0i51684R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-613-3.pngR6i183R9tgoR0i51867R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-622-0.pngR6i258R9tgoR0i52125R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-622-1.pngR6i243R9tgoR0i52368R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-624-0.pngR6i626R9tgoR0i52994R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-629-0.pngR6i88R9tgoR0i53082R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-653-0.pngR6i372R9tgoR0i53454R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-653-1.pngR6i372R9tgoR0i53826R1zR2R7R4y42:assets%2Fgraphics%2F1x%2Fsprite-653-12.pngR6i282R9tgoR0i54108R1zR2R7R4y42:assets%2Fgraphics%2F1x%2Fsprite-653-13.pngR6i283R9tgoR0i54391R1zR2R7R4y42:assets%2Fgraphics%2F1x%2Fsprite-653-14.pngR6i300R9tgoR0i54691R1zR2R7R4y42:assets%2Fgraphics%2F1x%2Fsprite-653-15.pngR6i290R9tgoR0i54981R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-653-2.pngR6i619R9tgoR0i55600R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-653-3.pngR6i635R9tgoR0i56235R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-653-8.pngR6i286R9tgoR0i56521R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-653-9.pngR6i287R9tgoR0i56808R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-655-0.pngR6i174R9tgoR0i56982R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-657-1.pngR6i162R9tgoR0i57144R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-659-0.pngR6i340R9tgoR0i57484R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-659-1.pngR6i309R9tgoR0i57793R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-661-0.pngR6i296R9tgoR0i58089R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-661-1.pngR6i277R9tgoR0i58366R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-663-0.pngR6i311R9tgoR0i58677R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-663-1.pngR6i299R9tgoR0i58976R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-665-0.pngR6i558R9tgoR0i59534R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-665-1.pngR6i491R9tgoR0i60025R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-669-0.pngR6i334R9tgoR0i60359R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-669-1.pngR6i304R9tgoR0i60663R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-671-0.pngR6i289R9tgoR0i60952R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-671-1.pngR6i277R9tgoR0i61229R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-673-0.pngR6i322R9tgoR0i61551R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-673-1.pngR6i308R9tgoR0i61859R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-675-0.pngR6i748R9tgoR0i62607R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-677-0.pngR6i185R9tgoR0i62792R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-679-0.pngR6i593R9tgoR0i63385R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-679-1.pngR6i547R9tgoR0i63932R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-682-0.pngR6i504R9tgoR0i64436R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-682-1.pngR6i229R9tgoR0i64665R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-685-0.pngR6i932R9tgoR0i65597R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-687-0.pngR6i671R9tgoR0i66268R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-689-0.pngR6i685R9tgoR0i66953R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-691-0.pngR6i359R9tgoR0i67312R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-691-1.pngR6i367R9tgoR0i67679R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-691-2.pngR6i274R9tgoR0i67953R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-693-0.pngR6i292R9tgoR0i68245R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-693-1.pngR6i307R9tgoR0i68552R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-695-0.pngR6i307R9tgoR0i68859R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-699-0.pngR6i146R9tgoR0i69005R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-703-0.pngR6i181R9tgoR0i69186R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-703-1.pngR6i169R9tgoR0i69355R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-703-2.pngR6i186R9tgoR0i69541R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-705-0.pngR6i292R9tgoR0i69833R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-705-1.pngR6i283R9tgoR0i70116R1zR2R7R4y42:assets%2Fgraphics%2F1x%2Fsprite-705-10.pngR6i289R9tgoR0i70405R1zR2R7R4y43:assets%2Fgraphics%2F1x%2Fsprite-705-100.pngR6i284R9tgoR0i70689R1zR2R7R4y43:assets%2Fgraphics%2F1x%2Fsprite-705-101.pngR6i314R9tgoR0i71003R1zR2R7R4y43:assets%2Fgraphics%2F1x%2Fsprite-705-103.pngR6i318R9tgoR0i71321R1zR2R7R4y43:assets%2Fgraphics%2F1x%2Fsprite-705-104.pngR6i285R9tgoR0i71606R1zR2R7R4y43:assets%2Fgraphics%2F1x%2Fsprite-705-105.pngR6i318R9tgoR0i71924R1zR2R7R4y43:assets%2Fgraphics%2F1x%2Fsprite-705-106.pngR6i295R9tgoR0i72219R1zR2R7R4y43:assets%2Fgraphics%2F1x%2Fsprite-705-107.pngR6i326R9tgoR0i72545R1zR2R7R4y43:assets%2Fgraphics%2F1x%2Fsprite-705-108.pngR6i381R9tgoR0i72926R1zR2R7R4y43:assets%2Fgraphics%2F1x%2Fsprite-705-109.pngR6i351R9tgoR0i73277R1zR2R7R4y42:assets%2Fgraphics%2F1x%2Fsprite-705-11.pngR6i315R9tgoR0i73592R1zR2R7R4y43:assets%2Fgraphics%2F1x%2Fsprite-705-110.pngR6i243R9tgoR0i73835R1zR2R7R4y42:assets%2Fgraphics%2F1x%2Fsprite-705-12.pngR6i297R9tgoR0i74132R1zR2R7R4y42:assets%2Fgraphics%2F1x%2Fsprite-705-13.pngR6i347R9tgoR0i74479R1zR2R7R4y42:assets%2Fgraphics%2F1x%2Fsprite-705-14.pngR6i297R9tgoR0i74776R1zR2R7R4y42:assets%2Fgraphics%2F1x%2Fsprite-705-15.pngR6i296R9tgoR0i75072R1zR2R7R4y42:assets%2Fgraphics%2F1x%2Fsprite-705-16.pngR6i296R9tgoR0i75368R1zR2R7R4y42:assets%2Fgraphics%2F1x%2Fsprite-705-17.pngR6i295R9tgoR0i75663R1zR2R7R4y42:assets%2Fgraphics%2F1x%2Fsprite-705-18.pngR6i296R9tgoR0i75959R1zR2R7R4y42:assets%2Fgraphics%2F1x%2Fsprite-705-19.pngR6i292R9tgoR0i76251R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-705-2.pngR6i226R9tgoR0i76477R1zR2R7R4y42:assets%2Fgraphics%2F1x%2Fsprite-705-20.pngR6i294R9tgoR0i76771R1zR2R7R4y42:assets%2Fgraphics%2F1x%2Fsprite-705-21.pngR6i293R9tgoR0i77064R1zR2R7R4y42:assets%2Fgraphics%2F1x%2Fsprite-705-22.pngR6i295R9tgoR0i77359R1zR2R7R4y42:assets%2Fgraphics%2F1x%2Fsprite-705-23.pngR6i292R9tgoR0i77651R1zR2R7R4y42:assets%2Fgraphics%2F1x%2Fsprite-705-24.pngR6i292R9tgoR0i77943R1zR2R7R4y42:assets%2Fgraphics%2F1x%2Fsprite-705-25.pngR6i292R9tgoR0i78235R1zR2R7R4y42:assets%2Fgraphics%2F1x%2Fsprite-705-26.pngR6i294R9tgoR0i78529R1zR2R7R4y42:assets%2Fgraphics%2F1x%2Fsprite-705-27.pngR6i296R9tgoR0i78825R1zR2R7R4y42:assets%2Fgraphics%2F1x%2Fsprite-705-28.pngR6i289R9tgoR0i79114R1zR2R7R4y42:assets%2Fgraphics%2F1x%2Fsprite-705-29.pngR6i290R9tgoR0i79404R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-705-3.pngR6i295R9tgoR0i79699R1zR2R7R4y42:assets%2Fgraphics%2F1x%2Fsprite-705-30.pngR6i323R9tgoR0i80022R1zR2R7R4y42:assets%2Fgraphics%2F1x%2Fsprite-705-31.pngR6i323R9tgoR0i80345R1zR2R7R4y42:assets%2Fgraphics%2F1x%2Fsprite-705-32.pngR6i329R9tgoR0i80674R1zR2R7R4y42:assets%2Fgraphics%2F1x%2Fsprite-705-33.pngR6i327R9tgoR0i81001R1zR2R7R4y42:assets%2Fgraphics%2F1x%2Fsprite-705-34.pngR6i328R9tgoR0i81329R1zR2R7R4y42:assets%2Fgraphics%2F1x%2Fsprite-705-35.pngR6i303R9tgoR0i81632R1zR2R7R4y42:assets%2Fgraphics%2F1x%2Fsprite-705-36.pngR6i346R9tgoR0i81978R1zR2R7R4y42:assets%2Fgraphics%2F1x%2Fsprite-705-37.pngR6i334R9tgoR0i82312R1zR2R7R4y42:assets%2Fgraphics%2F1x%2Fsprite-705-38.pngR6i338R9tgoR0i82650R1zR2R7R4y42:assets%2Fgraphics%2F1x%2Fsprite-705-39.pngR6i334R9tgoR0i82984R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-705-4.pngR6i298R9tgoR0i83282R1zR2R7R4y42:assets%2Fgraphics%2F1x%2Fsprite-705-40.pngR6i287R9tgoR0i83569R1zR2R7R4y42:assets%2Fgraphics%2F1x%2Fsprite-705-41.pngR6i298R9tgoR0i83867R1zR2R7R4y42:assets%2Fgraphics%2F1x%2Fsprite-705-42.pngR6i316R9tgoR0i84183R1zR2R7R4y42:assets%2Fgraphics%2F1x%2Fsprite-705-43.pngR6i313R9tgoR0i84496R1zR2R7R4y42:assets%2Fgraphics%2F1x%2Fsprite-705-44.pngR6i286R9tgoR0i84782R1zR2R7R4y42:assets%2Fgraphics%2F1x%2Fsprite-705-45.pngR6i330R9tgoR0i85112R1zR2R7R4y42:assets%2Fgraphics%2F1x%2Fsprite-705-46.pngR6i336R9tgoR0i85448R1zR2R7R4y42:assets%2Fgraphics%2F1x%2Fsprite-705-47.pngR6i305R9tgoR0i85753R1zR2R7R4y42:assets%2Fgraphics%2F1x%2Fsprite-705-48.pngR6i307R9tgoR0i86060R1zR2R7R4y42:assets%2Fgraphics%2F1x%2Fsprite-705-49.pngR6i269R9tgoR0i86329R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-705-5.pngR6i295R9tgoR0i86624R1zR2R7R4y42:assets%2Fgraphics%2F1x%2Fsprite-705-50.pngR6i295R9tgoR0i86919R1zR2R7R4y42:assets%2Fgraphics%2F1x%2Fsprite-705-51.pngR6i309R9tgoR0i87228R1zR2R7R4y42:assets%2Fgraphics%2F1x%2Fsprite-705-52.pngR6i239R9tgoR0i87467R1zR2R7R4y42:assets%2Fgraphics%2F1x%2Fsprite-705-53.pngR6i320R9tgoR0i87787R1zR2R7R4y42:assets%2Fgraphics%2F1x%2Fsprite-705-54.pngR6i314R9tgoR0i88101R1zR2R7R4y42:assets%2Fgraphics%2F1x%2Fsprite-705-55.pngR6i229R9tgoR0i88330R1zR2R7R4y42:assets%2Fgraphics%2F1x%2Fsprite-705-56.pngR6i305R9tgoR0i88635R1zR2R7R4y42:assets%2Fgraphics%2F1x%2Fsprite-705-57.pngR6i270R9tgoR0i88905R1zR2R7R4y42:assets%2Fgraphics%2F1x%2Fsprite-705-58.pngR6i302R9tgoR0i89207R1zR2R7R4y42:assets%2Fgraphics%2F1x%2Fsprite-705-59.pngR6i236R9tgoR0i89443R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-705-6.pngR6i328R9tgoR0i89771R1zR2R7R4y42:assets%2Fgraphics%2F1x%2Fsprite-705-60.pngR6i349R9tgoR0i90120R1zR2R7R4y42:assets%2Fgraphics%2F1x%2Fsprite-705-61.pngR6i324R9tgoR0i90444R1zR2R7R4y42:assets%2Fgraphics%2F1x%2Fsprite-705-62.pngR6i359R9tgoR0i90803R1zR2R7R4y42:assets%2Fgraphics%2F1x%2Fsprite-705-63.pngR6i325R9tgoR0i91128R1zR2R7R4y42:assets%2Fgraphics%2F1x%2Fsprite-705-64.pngR6i371R9tgoR0i91499R1zR2R7R4y42:assets%2Fgraphics%2F1x%2Fsprite-705-65.pngR6i326R9tgoR0i91825R1zR2R7R4y42:assets%2Fgraphics%2F1x%2Fsprite-705-66.pngR6i337R9tgoR0i92162R1zR2R7R4y42:assets%2Fgraphics%2F1x%2Fsprite-705-67.pngR6i332R9tgoR0i92494R1zR2R7R4y42:assets%2Fgraphics%2F1x%2Fsprite-705-68.pngR6i314R9tgoR0i92808R1zR2R7R4y42:assets%2Fgraphics%2F1x%2Fsprite-705-69.pngR6i330R9tgoR0i93138R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-705-7.pngR6i328R9tgoR0i93466R1zR2R7R4y42:assets%2Fgraphics%2F1x%2Fsprite-705-70.pngR6i336R9tgoR0i93802R1zR2R7R4y42:assets%2Fgraphics%2F1x%2Fsprite-705-71.pngR6i361R9tgoR0i94163R1zR2R7R4y42:assets%2Fgraphics%2F1x%2Fsprite-705-72.pngR6i308R9tgoR0i94471R1zR2R7R4y42:assets%2Fgraphics%2F1x%2Fsprite-705-73.pngR6i352R9tgoR0i94823R1zR2R7R4y42:assets%2Fgraphics%2F1x%2Fsprite-705-74.pngR6i324R9tgoR0i95147R1zR2R7R4y42:assets%2Fgraphics%2F1x%2Fsprite-705-75.pngR6i433R9tgoR0i95580R1zR2R7R4y42:assets%2Fgraphics%2F1x%2Fsprite-705-76.pngR6i353R9tgoR0i95933R1zR2R7R4y42:assets%2Fgraphics%2F1x%2Fsprite-705-77.pngR6i332R9tgoR0i96265R1zR2R7R4y42:assets%2Fgraphics%2F1x%2Fsprite-705-78.pngR6i301R9tgoR0i96566R1zR2R7R4y42:assets%2Fgraphics%2F1x%2Fsprite-705-79.pngR6i361R9tgoR0i96927R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-705-8.pngR6i327R9tgoR0i97254R1zR2R7R4y42:assets%2Fgraphics%2F1x%2Fsprite-705-80.pngR6i368R9tgoR0i97622R1zR2R7R4y42:assets%2Fgraphics%2F1x%2Fsprite-705-81.pngR6i366R9tgoR0i97988R1zR2R7R4y42:assets%2Fgraphics%2F1x%2Fsprite-705-83.pngR6i397R9tgoR0i98385R1zR2R7R4y42:assets%2Fgraphics%2F1x%2Fsprite-705-84.pngR6i462R9tgoR0i98847R1zR2R7R4y42:assets%2Fgraphics%2F1x%2Fsprite-705-85.pngR6i369R9tgoR0i99216R1zR2R7R4y42:assets%2Fgraphics%2F1x%2Fsprite-705-86.pngR6i393R9tgoR0i99609R1zR2R7R4y42:assets%2Fgraphics%2F1x%2Fsprite-705-87.pngR6i390R9tgoR0i99999R1zR2R7R4y42:assets%2Fgraphics%2F1x%2Fsprite-705-88.pngR6i390R9tgoR0i100389R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-705-9.pngR6i294R9tgoR0i100683R1zR2R7R4y42:assets%2Fgraphics%2F1x%2Fsprite-705-90.pngR6i371R9tgoR0i101054R1zR2R7R4y42:assets%2Fgraphics%2F1x%2Fsprite-705-91.pngR6i250R9tgoR0i101304R1zR2R7R4y42:assets%2Fgraphics%2F1x%2Fsprite-705-92.pngR6i413R9tgoR0i101717R1zR2R7R4y42:assets%2Fgraphics%2F1x%2Fsprite-705-93.pngR6i352R9tgoR0i102069R1zR2R7R4y42:assets%2Fgraphics%2F1x%2Fsprite-705-94.pngR6i1271R9tgoR0i103340R1zR2R7R4y42:assets%2Fgraphics%2F1x%2Fsprite-705-95.pngR6i318R9tgoR0i103658R1zR2R7R4y42:assets%2Fgraphics%2F1x%2Fsprite-705-96.pngR6i319R9tgoR0i103977R1zR2R7R4y42:assets%2Fgraphics%2F1x%2Fsprite-705-97.pngR6i330R9tgoR0i104307R1zR2R7R4y42:assets%2Fgraphics%2F1x%2Fsprite-705-98.pngR6i365R9tgoR0i104672R1zR2R7R4y42:assets%2Fgraphics%2F1x%2Fsprite-705-99.pngR6i325R9tgoR0i104997R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-707-0.pngR6i258R9tgoR0i105255R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-709-0.pngR6i259R9tgoR0i105514R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-711-0.pngR6i181R9tgoR0i105695R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-711-1.pngR6i169R9tgoR0i105864R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-713-0.pngR6i262R9tgoR0i106126R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-713-1.pngR6i244R9tgoR0i106370R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-715-0.pngR6i247R9tgoR0i106617R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-715-1.pngR6i233R9tgoR0i106850R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-717-0.pngR6i215R9tgoR0i107065R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-717-1.pngR6i216R9tgoR0i107281R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-717-2.pngR6i219R9tgoR0i107500R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-717-3.pngR6i191R9tgoR0i107691R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-719-0.pngR6i140R9tgoR0i107831R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-719-1.pngR6i143R9tgoR0i107974R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-719-2.pngR6i143R9tgoR0i108117R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-719-3.pngR6i140R9tgoR0i108257R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-719-4.pngR6i148R9tgoR0i108405R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-719-5.pngR6i151R9tgoR0i108556R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-719-6.pngR6i137R9tgoR0i108693R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-721-0.pngR6i285R9tgoR0i108978R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-721-1.pngR6i169R9tgoR0i109147R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-721-2.pngR6i186R9tgoR0i109333R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-723-0.pngR6i236R9tgoR0i109569R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-723-1.pngR6i165R9tgoR0i109734R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-725-3.pngR6i191R9tgoR0i109925R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-725-4.pngR6i193R9tgoR0i110118R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-731-0.pngR6i1487R9tgoR0i111605R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-733-0.pngR6i646R9tgoR0i112251R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-737-0.pngR6i163R9tgoR0i112414R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-739-0.pngR6i150R9tgoR0i112564R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-741-0.pngR6i115R9tgoR0i112679R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-743-0.pngR6i156R9tgoR0i112835R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-743-1.pngR6i151R9tgoR0i112986R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-745-0.pngR6i133R9tgoR0i113119R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-747-0.pngR6i132R9tgoR0i113251R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-749-0.pngR6i107R9tgoR0i113358R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-751-0.pngR6i150R9tgoR0i113508R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-753-1.pngR6i141R9tgoR0i113649R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-753-2.pngR6i157R9tgoR0i113806R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-755-1.pngR6i137R9tgoR0i113943R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-755-2.pngR6i162R9tgoR0i114105R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-755-3.pngR6i162R9tgoR0i114267R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-755-4.pngR6i163R9tgoR0i114430R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-755-5.pngR6i153R9tgoR0i114583R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-757-0.pngR6i246R9tgoR0i114829R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-759-4.pngR6i162R9tgoR0i114991R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-759-5.pngR6i164R9tgoR0i115155R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-759-6.pngR6i118R9tgoR0i115273R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-759-7.pngR6i154R9tgoR0i115427R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-761-0.pngR6i6257R9tgoR0i121684R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-763-0.pngR6i126R9tgoR0i121810R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-763-1.pngR6i124R9tgoR0i121934R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-765-0.pngR6i108R9tgoR0i122042R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-768-0.pngR6i120R9tgoR0i122162R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-768-1.pngR6i153R9tgoR0i122315R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-770-0.pngR6i128R9tgoR0i122443R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-772-0.pngR6i279R9tgoR0i122722R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-772-1.pngR6i226R9tgoR0i122948R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-772-2.pngR6i235R9tgoR0i123183R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-776-0.pngR6i1900R9tgoR0i125083R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-778-0.pngR6i5272R9tgoR0i130355R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-780-0.pngR6i286R9tgoR0i130641R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-780-1.pngR6i274R9tgoR0i130915R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-782-0.pngR6i227R9tgoR0i131142R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-782-1.pngR6i209R9tgoR0i131351R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-784-0.pngR6i264R9tgoR0i131615R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-784-1.pngR6i276R9tgoR0i131891R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-790-0.pngR6i294R9tgoR0i132185R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-792-0.pngR6i241R9tgoR0i132426R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-792-1.pngR6i234R9tgoR0i132660R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-792-2.pngR6i265R9tgoR0i132925R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-792-3.pngR6i263R9tgoR0i133188R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-794-0.pngR6i233R9tgoR0i133421R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-794-1.pngR6i227R9tgoR0i133648R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-794-2.pngR6i254R9tgoR0i133902R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-794-3.pngR6i251R9tgoR0i134153R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-796-0.pngR6i216R9tgoR0i134369R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-796-1.pngR6i213R9tgoR0i134582R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-798-0.pngR6i143R9tgoR0i134725R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-800-0.pngR6i141R9tgoR0i134866R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-805-1.pngR6i422R9tgoR0i135288R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-805-2.pngR6i409R9tgoR0i135697R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-805-3.pngR6i426R9tgoR0i136123R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-807-0.pngR6i426R9tgoR0i136549R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-807-1.pngR6i373R9tgoR0i136922R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-809-0.pngR6i362R9tgoR0i137284R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-809-1.pngR6i349R9tgoR0i137633R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-809-2.pngR6i314R9tgoR0i137947R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-809-3.pngR6i307R9tgoR0i138254R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-811-0.pngR6i301R9tgoR0i138555R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-811-1.pngR6i286R9tgoR0i138841R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-811-2.pngR6i292R9tgoR0i139133R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-811-3.pngR6i265R9tgoR0i139398R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-811-4.pngR6i263R9tgoR0i139661R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-811-5.pngR6i262R9tgoR0i139923R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-811-6.pngR6i268R9tgoR0i140191R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-813-0.pngR6i457R9tgoR0i140648R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-813-1.pngR6i273R9tgoR0i140921R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-813-2.pngR6i349R9tgoR0i141270R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-813-3.pngR6i454R9tgoR0i141724R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-815-0.pngR6i972R9tgoR0i142696R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-815-1.pngR6i460R9tgoR0i143156R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-817-0.pngR6i441R9tgoR0i143597R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-817-1.pngR6i410R9tgoR0i144007R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-820-0.pngR6i324R9tgoR0i144331R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-820-1.pngR6i294R9tgoR0i144625R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-822-0.pngR6i408R9tgoR0i145033R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-822-1.pngR6i389R9tgoR0i145422R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-822-2.pngR6i410R9tgoR0i145832R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-822-3.pngR6i394R9tgoR0i146226R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-822-4.pngR6i301R9tgoR0i146527R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-824-0.pngR6i286R9tgoR0i146813R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-824-1.pngR6i277R9tgoR0i147090R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-826-0.pngR6i245R9tgoR0i147335R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-826-1.pngR6i230R9tgoR0i147565R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-830-0.pngR6i323R9tgoR0i147888R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-830-1.pngR6i301R9tgoR0i148189R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-830-2.pngR6i304R9tgoR0i148493R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-830-3.pngR6i322R9tgoR0i148815R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-830-4.pngR6i304R9tgoR0i149119R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-832-1.pngR6i390R9tgoR0i149509R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-832-2.pngR6i426R9tgoR0i149935R1zR2R7R4y41:assets%2Fgraphics%2F1x%2Fsprite-834-0.pngR6i244R9tgoR0i150179R1zR2R7R4y40:assets%2Fgraphics%2F1x%2Ftileset-546.pngR6i7494R9tgoR0i157673R1zR2R3R4y36:assets%2Fgraphics%2Fdefault-font.fntR6i1057goR0i158730R1zR2R7R4y36:assets%2Fgraphics%2Fdefault-font.pngR6i1759R9tgoR1i1293373R2y5:MUSICR4y30:assets%2Fmusic%2Fsound-554.mp3y9:pathGroupaR414y30:assets%2Fmusic%2Fsound-554.ogghR9tgoR1i1879R2R413R4y30:assets%2Fmusic%2Fsound-627.mp3R415aR417y30:assets%2Fmusic%2Fsound-627.ogghR9tgoR1i993761R2R413R4R416R415aR414R416hgoR1i4230R2R413R4R418R415aR417R418hgoR1i2506R2y5:SOUNDR4y28:assets%2Fsfx%2Fsound-261.mp3R415aR420y28:assets%2Fsfx%2Fsound-261.ogghR9tgoR1i19643R2R419R4y28:assets%2Fsfx%2Fsound-496.mp3R415aR422y28:assets%2Fsfx%2Fsound-496.ogghR9tgoR1i5014R2R419R4y28:assets%2Fsfx%2Fsound-553.mp3R415aR424y28:assets%2Fsfx%2Fsound-553.ogghR9tgoR1i21941R2R419R4y28:assets%2Fsfx%2Fsound-557.mp3R415aR426y28:assets%2Fsfx%2Fsound-557.ogghR9tgoR1i5641R2R419R4y28:assets%2Fsfx%2Fsound-562.mp3R415aR428y28:assets%2Fsfx%2Fsound-562.ogghR9tgoR1i19434R2R419R4y28:assets%2Fsfx%2Fsound-574.mp3R415aR430y28:assets%2Fsfx%2Fsound-574.ogghR9tgoR1i10030R2R419R4y28:assets%2Fsfx%2Fsound-594.mp3R415aR432y28:assets%2Fsfx%2Fsound-594.ogghR9tgoR1i19434R2R419R4y28:assets%2Fsfx%2Fsound-605.mp3R415aR434y28:assets%2Fsfx%2Fsound-605.ogghR9tgoR1i82128R2R419R4y28:assets%2Fsfx%2Fsound-614.mp3R415aR436y28:assets%2Fsfx%2Fsound-614.ogghR9tgoR1i16926R2R419R4y28:assets%2Fsfx%2Fsound-625.mp3R415aR438y28:assets%2Fsfx%2Fsound-625.ogghR9tgoR1i596217R2R419R4y28:assets%2Fsfx%2Fsound-626.mp3R415aR440y28:assets%2Fsfx%2Fsound-626.ogghR9tgoR1i10866R2R419R4y28:assets%2Fsfx%2Fsound-680.mp3R415aR442y28:assets%2Fsfx%2Fsound-680.ogghR9tgoR1i66454R2R419R4y28:assets%2Fsfx%2Fsound-683.mp3R415aR444y28:assets%2Fsfx%2Fsound-683.ogghR9tgoR1i53915R2R419R4y28:assets%2Fsfx%2Fsound-734.mp3R415aR446y28:assets%2Fsfx%2Fsound-734.ogghR9tgoR1i5158R2R419R4R421R415aR420R421hgoR1i16662R2R419R4R423R415aR422R423hgoR1i5605R2R419R4R425R415aR424R425hgoR1i14527R2R419R4R427R415aR426R427hgoR1i5777R2R419R4R429R415aR428R429hgoR1i22802R2R419R4R431R415aR430R431hgoR1i8140R2R419R4R433R415aR432R433hgoR1i12230R2R419R4R435R415aR434R435hgoR1i93300R2R419R4R437R415aR436R437hgoR1i20209R2R419R4R439R415aR438R439hgoR1i417040R2R419R4R441R415aR440R441hgoR1i14603R2R419R4R443R415aR442R443hgoR1i65025R2R419R4R445R415aR444R445hgoR1i30348R2R419R4R447R415aR446R447hgoR0i160489R1zR2R7R4y33:assets%2Fdata%2F1_skin0_white.pngR6i1330R9tgoR0i161819R1zR2R7R4y36:assets%2Fdata%2F1_skin100_domino.pngR6i1586R9tgoR0i163405R1zR2R7R4y37:assets%2Fdata%2F1_skin100_domino2.pngR6i1564R9tgoR0i164969R1zR2R7R4y39:assets%2Fdata%2F1_skin101_disguised.pngR6i1794R9tgoR0i166763R1zR2R7R4y39:assets%2Fdata%2F1_skin102_monstrous.pngR6i2051R9tgoR0i168814R1zR2R7R4y39:assets%2Fdata%2F1_skin103_carbuncle.pngR6i2225R9tgoR0i171039R1zR2R7R4y38:assets%2Fdata%2F1_skin104_phosphor.pngR6i1037R9tgoR0i172076R1zR2R7R4y40:assets%2Fdata%2F1_skin10_californian.pngR6i1851R9tgoR0i173927R1zR2R7R4y38:assets%2Fdata%2F1_skin11_chocolate.pngR6i1684R9tgoR0i175611R1zR2R7R4y37:assets%2Fdata%2F1_skin12_tricolor.pngR6i1956R9tgoR0i177567R1zR2R7R4y39:assets%2Fdata%2F1_skin13_blackotter.pngR6i1832R9tgoR0i179399R1zR2R7R4y32:assets%2Fdata%2F1_skin14_red.pngR6i1416R9tgoR0i180815R1zR2R7R4y35:assets%2Fdata%2F1_skin15_castor.pngR6i1478R9tgoR0i182293R1zR2R7R4y33:assets%2Fdata%2F1_skin16_gray.pngR6i1464R9tgoR0i183757R1zR2R7R4y33:assets%2Fdata%2F1_skin17_moss.pngR6i1469R9tgoR0i185226R1zR2R7R4y33:assets%2Fdata%2F1_skin18_pink.pngR6i1422R9tgoR0i186648R1zR2R7R4y34:assets%2Fdata%2F1_skin19_green.pngR6i1460R9tgoR0i188108R1zR2R7R4y32:assets%2Fdata%2F1_skin1_navy.pngR6i1453R9tgoR0i189561R1zR2R7R4y38:assets%2Fdata%2F1_skin20_lightblue.pngR6i1438R9tgoR0i190999R1zR2R7R4y35:assets%2Fdata%2F1_skin21_purple.pngR6i1455R9tgoR0i192454R1zR2R7R4y35:assets%2Fdata%2F1_skin22_yellow.pngR6i1452R9tgoR0i193906R1zR2R7R4y36:assets%2Fdata%2F1_skin23_scarlet.pngR6i1422R9tgoR0i195328R1zR2R7R4y33:assets%2Fdata%2F1_skin24_blue.pngR6i1434R9tgoR0i196762R1zR2R7R4y33:assets%2Fdata%2F1_skin25_lime.pngR6i1457R9tgoR0i198219R1zR2R7R4y33:assets%2Fdata%2F1_skin26_cyan.pngR6i1439R9tgoR0i199658R1zR2R7R4y35:assets%2Fdata%2F1_skin27_orange.pngR6i1479R9tgoR0i201137R1zR2R7R4y36:assets%2Fdata%2F1_skin28_magenta.pngR6i1453R9tgoR0i202590R1zR2R7R4y32:assets%2Fdata%2F1_skin29_rgb.pngR6i1931R9tgoR0i204521R1zR2R7R4y33:assets%2Fdata%2F1_skin2_brown.pngR6i1786R9tgoR0i206307R1zR2R7R4y34:assets%2Fdata%2F1_skin30_tiger.pngR6i1934R9tgoR0i208241R1zR2R7R4y36:assets%2Fdata%2F1_skin31_pumpkin.pngR6i1838R9tgoR0i210079R1zR2R7R4y34:assets%2Fdata%2F1_skin32_robot.pngR6i1804R9tgoR0i211883R1zR2R7R4y38:assets%2Fdata%2F1_skin33_steampunk.pngR6i1872R9tgoR0i213755R1zR2R7R4y34:assets%2Fdata%2F1_skin34_water.pngR6i1617R9tgoR0i215372R1zR2R7R4y33:assets%2Fdata%2F1_skin35_camo.pngR6i1833R9tgoR0i217205R1zR2R7R4y33:assets%2Fdata%2F1_skin36_wood.pngR6i1857R9tgoR0i219062R1zR2R7R4y34:assets%2Fdata%2F1_skin37_stone.pngR6i1756R9tgoR0i220818R1zR2R7R4y33:assets%2Fdata%2F1_skin38_fire.pngR6i1786R9tgoR0i222604R1zR2R7R4y37:assets%2Fdata%2F1_skin39_negative.pngR6i1390R9tgoR0i223994R1zR2R7R4y33:assets%2Fdata%2F1_skin3_black.pngR6i1447R9tgoR0i225441R1zR2R7R4y40:assets%2Fdata%2F1_skin40_transparent.pngR6i1334R9tgoR0i226775R1zR2R7R4y34:assets%2Fdata%2F1_skin41_angel.pngR6i1832R9tgoR0i228607R1zR2R7R4y32:assets%2Fdata%2F1_skin42_imp.pngR6i1719R9tgoR0i230326R1zR2R7R4y31:assets%2Fdata%2F1_skin43_gb.pngR6i1704R9tgoR0i232030R1zR2R7R4y35:assets%2Fdata%2F1_skin44_frozen.pngR6i2263R9tgoR0i234293R1zR2R7R4y36:assets%2Fdata%2F1_skin45_rainbow.pngR6i1983R9tgoR0i236276R1zR2R7R4y34:assets%2Fdata%2F1_skin46_alien.pngR6i1673R9tgoR0i237949R1zR2R7R4y40:assets%2Fdata%2F1_skin47_fluffywhite.pngR6i1498R9tgoR0i239447R1zR2R7R4y39:assets%2Fdata%2F1_skin48_upsidedown.pngR6i1538R9tgoR0i240985R1zR2R7R4y33:assets%2Fdata%2F1_skin49_dark.pngR6i1665R9tgoR0i242650R1zR2R7R4y40:assets%2Fdata%2F1_skin49_fluffybrown.pngR6i1618R9tgoR0i244268R1zR2R7R4y33:assets%2Fdata%2F1_skin4_beige.pngR6i1421R9tgoR0i245689R1zR2R7R4y35:assets%2Fdata%2F1_skin50_chonky.pngR6i1648R9tgoR0i247337R1zR2R7R4y33:assets%2Fdata%2F1_skin51_mini.pngR6i1490R9tgoR0i248827R1zR2R7R4y39:assets%2Fdata%2F1_skin52_sabretooth.pngR6i2010R9tgoR0i250837R1zR2R7R4y37:assets%2Fdata%2F1_skin53_electric.pngR6i1742R9tgoR0i252579R1zR2R7R4y39:assets%2Fdata%2F1_skin54_silhouette.pngR6i939R9tgoR0i253518R1zR2R7R4y33:assets%2Fdata%2F1_skin55_frog.pngR6i1593R9tgoR0i255111R1zR2R7R4y34:assets%2Fdata%2F1_skin55_gooey.pngR6i1746R9tgoR0i256857R1zR2R7R4y32:assets%2Fdata%2F1_skin56_pig.pngR6i1737R9tgoR0i258594R1zR2R7R4y33:assets%2Fdata%2F1_skin56_snow.pngR6i1362R9tgoR0i259956R1zR2R7R4y34:assets%2Fdata%2F1_skin57_mouse.pngR6i1778R9tgoR0i261734R1zR2R7R4y36:assets%2Fdata%2F1_skin57_vampire.pngR6i1778R9tgoR0i263512R1zR2R7R4y32:assets%2Fdata%2F1_skin58_cat.pngR6i1737R9tgoR0i265249R1zR2R7R4y35:assets%2Fdata%2F1_skin58_cosmic.pngR6i1110R9tgoR0i266359R1zR2R7R4y37:assets%2Fdata%2F1_skin59_capybara.pngR6i1622R9tgoR0i267981R1zR2R7R4y35:assets%2Fdata%2F1_skin59_silver.pngR6i1740R9tgoR0i269721R1zR2R7R4y37:assets%2Fdata%2F1_skin5_brownspot.pngR6i1911R9tgoR0i271632R1zR2R7R4y36:assets%2Fdata%2F1_skin60_psychic.pngR6i1904R9tgoR0i273536R1zR2R7R4y39:assets%2Fdata%2F1_skin61_jackrabbit.pngR6i2171R9tgoR0i275707R1zR2R7R4y34:assets%2Fdata%2F1_skin62_shark.pngR6i2374R9tgoR0i278081R1zR2R7R4y38:assets%2Fdata%2F1_skin63_jackalope.pngR6i2281R9tgoR0i280362R1zR2R7R4y37:assets%2Fdata%2F1_skin64_usadachi.pngR6i1782R9tgoR0i282144R1zR2R7R4y33:assets%2Fdata%2F1_skin65_punk.pngR6i1930R9tgoR0i284074R1zR2R7R4y33:assets%2Fdata%2F1_skin66_goth.pngR6i1896R9tgoR0i285970R1zR2R7R4y33:assets%2Fdata%2F1_skin67_moon.pngR6i1727R9tgoR0i287697R1zR2R7R4y39:assets%2Fdata%2F1_skin68_caerbannog.pngR6i1790R9tgoR0i289487R1zR2R7R4y34:assets%2Fdata%2F1_skin69_foxxy.pngR6i2217R9tgoR0i291704R1zR2R7R4y36:assets%2Fdata%2F1_skin6_bluespot.pngR6i1738R9tgoR0i293442R1zR2R7R4y33:assets%2Fdata%2F1_skin70_dust.pngR6i2365R9tgoR0i295807R1zR2R7R4y33:assets%2Fdata%2F1_skin71_kami.pngR6i1841R9tgoR0i297648R1zR2R7R4y36:assets%2Fdata%2F1_skin72_almiraj.pngR6i2025R9tgoR0i299673R1zR2R7R4y36:assets%2Fdata%2F1_skin73_skvader.pngR6i2066R9tgoR0i301739R1zR2R7R4y40:assets%2Fdata%2F1_skin74_warcriminal.pngR6i2362R9tgoR0i304101R1zR2R7R4y35:assets%2Fdata%2F1_skin75_golden.pngR6i1625R9tgoR0i305726R1zR2R7R4y35:assets%2Fdata%2F1_skin76_divine.pngR6i1704R9tgoR0i307430R1zR2R7R4y40:assets%2Fdata%2F1_skin77_neutronized.pngR6i1732R9tgoR0i309162R1zR2R7R4y35:assets%2Fdata%2F1_skin78_carrot.pngR6i2236R9tgoR0i311398R1zR2R7R4y41:assets%2Fdata%2F1_skin79_goldencarrot.pngR6i1955R9tgoR0i313353R1zR2R7R4y37:assets%2Fdata%2F1_skin7_blackspot.pngR6i1713R9tgoR0i315066R1zR2R7R4y36:assets%2Fdata%2F1_skin80_chester.pngR6i2153R9tgoR0i317219R1zR2R7R4y34:assets%2Fdata%2F1_skin81_timmy.pngR6i2325R9tgoR0i319544R1zR2R7R4y39:assets%2Fdata%2F1_skin82_dashington.pngR6i2110R9tgoR0i321654R1zR2R7R4y34:assets%2Fdata%2F1_skin83_heart.pngR6i2124R9tgoR0i323778R1zR2R7R4y33:assets%2Fdata%2F1_skin84_star.pngR6i2071R9tgoR0i325849R1zR2R7R4y33:assets%2Fdata%2F1_skin85_mage.pngR6i2194R9tgoR0i328043R1zR2R7R4y35:assets%2Fdata%2F1_skin86_knight.pngR6i2628R9tgoR0i330671R1zR2R7R4y35:assets%2Fdata%2F1_skin87_ranger.pngR6i3013R9tgoR0i333684R1zR2R7R4y33:assets%2Fdata%2F1_skin88_king.pngR6i2246R9tgoR0i335930R1zR2R7R4y37:assets%2Fdata%2F1_skin89_original.pngR6i1489R9tgoR0i337419R1zR2R7R4y38:assets%2Fdata%2F1_skin8_chinchilla.pngR6i1361R9tgoR0i338780R1zR2R7R4y34:assets%2Fdata%2F1_skin90_fairy.pngR6i1679R9tgoR0i340459R1zR2R7R4y34:assets%2Fdata%2F1_skin91_pixie.pngR6i1837R9tgoR0i342296R1zR2R7R4y34:assets%2Fdata%2F1_skin92_ninja.pngR6i2116R9tgoR0i344412R1zR2R7R4y37:assets%2Fdata%2F1_skin93_infernal.pngR6i1917R9tgoR0i346329R1zR2R7R4y37:assets%2Fdata%2F1_skin94_ethereal.pngR6i1410R9tgoR0i347739R1zR2R7R4y35:assets%2Fdata%2F1_skin95_zombie.pngR6i2136R9tgoR0i349875R1zR2R7R4y37:assets%2Fdata%2F1_skin96_triplets.pngR6i2292R9tgoR0i352167R1zR2R7R4y34:assets%2Fdata%2F1_skin97_ghost.pngR6i1563R9tgoR0i353730R1zR2R7R4y36:assets%2Fdata%2F1_skin98_crystal.pngR6i2003R9tgoR0i355733R1zR2R7R4y35:assets%2Fdata%2F1_skin99_astral.pngR6i1752R9tgoR0i357485R1zR2R7R4y36:assets%2Fdata%2F1_skin9_cinnamon.pngR6i1746R9tgoR0i359231R1zR2R7R4y33:assets%2Fdata%2F2_skin0_white.pngR6i2048R9tgoR0i361279R1zR2R7R4y36:assets%2Fdata%2F2_skin100_domino.pngR6i2555R9tgoR0i363834R1zR2R7R4y37:assets%2Fdata%2F2_skin100_domino2.pngR6i2585R9tgoR0i366419R1zR2R7R4y39:assets%2Fdata%2F2_skin101_disguised.pngR6i2708R9tgoR0i369127R1zR2R7R4y39:assets%2Fdata%2F2_skin102_monstrous.pngR6i2993R9tgoR0i372120R1zR2R7R4y39:assets%2Fdata%2F2_skin103_carbuncle.pngR6i3243R9tgoR0i375363R1zR2R7R4y38:assets%2Fdata%2F2_skin104_phosphor.pngR6i1678R9tgoR0i377041R1zR2R7R4y40:assets%2Fdata%2F2_skin10_californian.pngR6i2777R9tgoR0i379818R1zR2R7R4y38:assets%2Fdata%2F2_skin11_chocolate.pngR6i2350R9tgoR0i382168R1zR2R7R4y37:assets%2Fdata%2F2_skin12_tricolor.pngR6i2977R9tgoR0i385145R1zR2R7R4y39:assets%2Fdata%2F2_skin13_blackotter.pngR6i2709R9tgoR0i387854R1zR2R7R4y32:assets%2Fdata%2F2_skin14_red.pngR6i2292R9tgoR0i390146R1zR2R7R4y35:assets%2Fdata%2F2_skin15_castor.pngR6i2254R9tgoR0i392400R1zR2R7R4y33:assets%2Fdata%2F2_skin16_gray.pngR6i2241R9tgoR0i394641R1zR2R7R4y33:assets%2Fdata%2F2_skin17_moss.pngR6i2275R9tgoR0i396916R1zR2R7R4y33:assets%2Fdata%2F2_skin18_pink.pngR6i2280R9tgoR0i399196R1zR2R7R4y34:assets%2Fdata%2F2_skin19_green.pngR6i2323R9tgoR0i401519R1zR2R7R4y32:assets%2Fdata%2F2_skin1_navy.pngR6i2245R9tgoR0i403764R1zR2R7R4y38:assets%2Fdata%2F2_skin20_lightblue.pngR6i2279R9tgoR0i406043R1zR2R7R4y35:assets%2Fdata%2F2_skin21_purple.pngR6i2284R9tgoR0i408327R1zR2R7R4y35:assets%2Fdata%2F2_skin22_yellow.pngR6i2342R9tgoR0i410669R1zR2R7R4y36:assets%2Fdata%2F2_skin23_scarlet.pngR6i2306R9tgoR0i412975R1zR2R7R4y33:assets%2Fdata%2F2_skin24_blue.pngR6i2290R9tgoR0i415265R1zR2R7R4y33:assets%2Fdata%2F2_skin25_lime.pngR6i2383R9tgoR0i417648R1zR2R7R4y33:assets%2Fdata%2F2_skin26_cyan.pngR6i2374R9tgoR0i420022R1zR2R7R4y35:assets%2Fdata%2F2_skin27_orange.pngR6i2380R9tgoR0i422402R1zR2R7R4y36:assets%2Fdata%2F2_skin28_magenta.pngR6i2334R9tgoR0i424736R1zR2R7R4y32:assets%2Fdata%2F2_skin29_rgb.pngR6i3334R9tgoR0i428070R1zR2R7R4y33:assets%2Fdata%2F2_skin2_brown.pngR6i2291R9tgoR0i430361R1zR2R7R4y34:assets%2Fdata%2F2_skin30_tiger.pngR6i2976R9tgoR0i433337R1zR2R7R4y36:assets%2Fdata%2F2_skin31_pumpkin.pngR6i2864R9tgoR0i436201R1zR2R7R4y34:assets%2Fdata%2F2_skin32_robot.pngR6i2726R9tgoR0i438927R1zR2R7R4y38:assets%2Fdata%2F2_skin33_steampunk.pngR6i2973R9tgoR0i441900R1zR2R7R4y34:assets%2Fdata%2F2_skin34_water.pngR6i2600R9tgoR0i444500R1zR2R7R4y33:assets%2Fdata%2F2_skin35_camo.pngR6i2710R9tgoR0i447210R1zR2R7R4y33:assets%2Fdata%2F2_skin36_wood.pngR6i2743R9tgoR0i449953R1zR2R7R4y34:assets%2Fdata%2F2_skin37_stone.pngR6i2790R9tgoR0i452743R1zR2R7R4y33:assets%2Fdata%2F2_skin38_fire.pngR6i2831R9tgoR0i455574R1zR2R7R4y37:assets%2Fdata%2F2_skin39_negative.pngR6i2191R9tgoR0i457765R1zR2R7R4y33:assets%2Fdata%2F2_skin3_black.pngR6i2227R9tgoR0i459992R1zR2R7R4y40:assets%2Fdata%2F2_skin40_transparent.pngR6i2132R9tgoR0i462124R1zR2R7R4y34:assets%2Fdata%2F2_skin41_angel.pngR6i2791R9tgoR0i464915R1zR2R7R4y32:assets%2Fdata%2F2_skin42_imp.pngR6i2777R9tgoR0i467692R1zR2R7R4y31:assets%2Fdata%2F2_skin43_gb.pngR6i2341R9tgoR0i470033R1zR2R7R4y35:assets%2Fdata%2F2_skin44_frozen.pngR6i3245R9tgoR0i473278R1zR2R7R4y36:assets%2Fdata%2F2_skin45_rainbow.pngR6i3233R9tgoR0i476511R1zR2R7R4y34:assets%2Fdata%2F2_skin46_alien.pngR6i2658R9tgoR0i479169R1zR2R7R4y40:assets%2Fdata%2F2_skin47_fluffywhite.pngR6i2405R9tgoR0i481574R1zR2R7R4y39:assets%2Fdata%2F2_skin48_upsidedown.pngR6i2296R9tgoR0i483870R1zR2R7R4y33:assets%2Fdata%2F2_skin49_dark.pngR6i2537R9tgoR0i486407R1zR2R7R4y40:assets%2Fdata%2F2_skin49_fluffybrown.pngR6i2606R9tgoR0i489013R1zR2R7R4y33:assets%2Fdata%2F2_skin4_beige.pngR6i2294R9tgoR0i491307R1zR2R7R4y35:assets%2Fdata%2F2_skin50_chonky.pngR6i2673R9tgoR0i493980R1zR2R7R4y33:assets%2Fdata%2F2_skin51_mini.pngR6i1943R9tgoR0i495923R1zR2R7R4y39:assets%2Fdata%2F2_skin52_sabretooth.pngR6i3125R9tgoR0i499048R1zR2R7R4y37:assets%2Fdata%2F2_skin53_electric.pngR6i2460R9tgoR0i501508R1zR2R7R4y39:assets%2Fdata%2F2_skin54_silhouette.pngR6i1461R9tgoR0i502969R1zR2R7R4y33:assets%2Fdata%2F2_skin55_frog.pngR6i1593R9tgoR0i504562R1zR2R7R4y34:assets%2Fdata%2F2_skin55_gooey.pngR6i2731R9tgoR0i507293R1zR2R7R4y32:assets%2Fdata%2F2_skin56_pig.pngR6i2610R9tgoR0i509903R1zR2R7R4y33:assets%2Fdata%2F2_skin56_snow.pngR6i2078R9tgoR0i511981R1zR2R7R4y34:assets%2Fdata%2F2_skin57_mouse.pngR6i2808R9tgoR0i514789R1zR2R7R4y36:assets%2Fdata%2F2_skin57_vampire.pngR6i2683R9tgoR0i517472R1zR2R7R4y32:assets%2Fdata%2F2_skin58_cat.pngR6i2620R9tgoR0i520092R1zR2R7R4y35:assets%2Fdata%2F2_skin58_cosmic.pngR6i1699R9tgoR0i521791R1zR2R7R4y37:assets%2Fdata%2F2_skin59_capybara.pngR6i2523R9tgoR0i524314R1zR2R7R4y35:assets%2Fdata%2F2_skin59_silver.pngR6i2779R9tgoR0i527093R1zR2R7R4y37:assets%2Fdata%2F2_skin5_brownspot.pngR6i2758R9tgoR0i529851R1zR2R7R4y36:assets%2Fdata%2F2_skin60_psychic.pngR6i2807R9tgoR0i532658R1zR2R7R4y39:assets%2Fdata%2F2_skin61_jackrabbit.pngR6i3649R9tgoR0i536307R1zR2R7R4y34:assets%2Fdata%2F2_skin62_shark.pngR6i3381R9tgoR0i539688R1zR2R7R4y38:assets%2Fdata%2F2_skin63_jackalope.pngR6i3627R9tgoR0i543315R1zR2R7R4y37:assets%2Fdata%2F2_skin64_usadachi.pngR6i2670R9tgoR0i545985R1zR2R7R4y33:assets%2Fdata%2F2_skin65_punk.pngR6i3008R9tgoR0i548993R1zR2R7R4y33:assets%2Fdata%2F2_skin66_goth.pngR6i2939R9tgoR0i551932R1zR2R7R4y33:assets%2Fdata%2F2_skin67_moon.pngR6i2733R9tgoR0i554665R1zR2R7R4y39:assets%2Fdata%2F2_skin68_caerbannog.pngR6i2785R9tgoR0i557450R1zR2R7R4y34:assets%2Fdata%2F2_skin69_foxxy.pngR6i3340R9tgoR0i560790R1zR2R7R4y36:assets%2Fdata%2F2_skin6_bluespot.pngR6i2737R9tgoR0i563527R1zR2R7R4y33:assets%2Fdata%2F2_skin70_dust.pngR6i3843R9tgoR0i567370R1zR2R7R4y33:assets%2Fdata%2F2_skin71_kami.pngR6i2639R9tgoR0i570009R1zR2R7R4y36:assets%2Fdata%2F2_skin72_almiraj.pngR6i3026R9tgoR0i573035R1zR2R7R4y36:assets%2Fdata%2F2_skin73_skvader.pngR6i3172R9tgoR0i576207R1zR2R7R4y40:assets%2Fdata%2F2_skin74_warcriminal.pngR6i4501R9tgoR0i580708R1zR2R7R4y35:assets%2Fdata%2F2_skin75_golden.pngR6i2719R9tgoR0i583427R1zR2R7R4y35:assets%2Fdata%2F2_skin76_divine.pngR6i2595R9tgoR0i586022R1zR2R7R4y40:assets%2Fdata%2F2_skin77_neutronized.pngR6i2674R9tgoR0i588696R1zR2R7R4y35:assets%2Fdata%2F2_skin78_carrot.pngR6i3413R9tgoR0i592109R1zR2R7R4y41:assets%2Fdata%2F2_skin79_goldencarrot.pngR6i2810R9tgoR0i594919R1zR2R7R4y37:assets%2Fdata%2F2_skin7_blackspot.pngR6i2685R9tgoR0i597604R1zR2R7R4y36:assets%2Fdata%2F2_skin80_chester.pngR6i3708R9tgoR0i601312R1zR2R7R4y34:assets%2Fdata%2F2_skin81_timmy.pngR6i3961R9tgoR0i605273R1zR2R7R4y39:assets%2Fdata%2F2_skin82_dashington.pngR6i3416R9tgoR0i608689R1zR2R7R4y34:assets%2Fdata%2F2_skin83_heart.pngR6i3450R9tgoR0i612139R1zR2R7R4y33:assets%2Fdata%2F2_skin84_star.pngR6i3525R9tgoR0i615664R1zR2R7R4y33:assets%2Fdata%2F2_skin85_mage.pngR6i3705R9tgoR0i619369R1zR2R7R4y35:assets%2Fdata%2F2_skin86_knight.pngR6i3932R9tgoR0i623301R1zR2R7R4y35:assets%2Fdata%2F2_skin87_ranger.pngR6i4749R9tgoR0i628050R1zR2R7R4y33:assets%2Fdata%2F2_skin88_king.pngR6i3327R9tgoR0i631377R1zR2R7R4y37:assets%2Fdata%2F2_skin89_original.pngR6i2141R9tgoR0i633518R1zR2R7R4y38:assets%2Fdata%2F2_skin8_chinchilla.pngR6i2190R9tgoR0i635708R1zR2R7R4y34:assets%2Fdata%2F2_skin90_fairy.pngR6i2718R9tgoR0i638426R1zR2R7R4y34:assets%2Fdata%2F2_skin91_pixie.pngR6i2774R9tgoR0i641200R1zR2R7R4y34:assets%2Fdata%2F2_skin92_ninja.pngR6i3323R9tgoR0i644523R1zR2R7R4y37:assets%2Fdata%2F2_skin93_infernal.pngR6i3009R9tgoR0i647532R1zR2R7R4y37:assets%2Fdata%2F2_skin94_ethereal.pngR6i2214R9tgoR0i649746R1zR2R7R4y35:assets%2Fdata%2F2_skin95_zombie.pngR6i3035R9tgoR0i652781R1zR2R7R4y37:assets%2Fdata%2F2_skin96_triplets.pngR6i3395R9tgoR0i656176R1zR2R7R4y34:assets%2Fdata%2F2_skin97_ghost.pngR6i2128R9tgoR0i658304R1zR2R7R4y36:assets%2Fdata%2F2_skin98_crystal.pngR6i3086R9tgoR0i661390R1zR2R7R4y35:assets%2Fdata%2F2_skin99_astral.pngR6i2773R9tgoR0i664163R1zR2R7R4y36:assets%2Fdata%2F2_skin9_cinnamon.pngR6i2365R9tgoR0i666528R1zR2R7R4y33:assets%2Fdata%2F3_skin0_white.pngR6i2282R9tgoR0i668810R1zR2R7R4y36:assets%2Fdata%2F3_skin100_domino.pngR6i2908R9tgoR0i671718R1zR2R7R4y37:assets%2Fdata%2F3_skin100_domino2.pngR6i2944R9tgoR0i674662R1zR2R7R4y39:assets%2Fdata%2F3_skin101_disguised.pngR6i3085R9tgoR0i677747R1zR2R7R4y39:assets%2Fdata%2F3_skin102_monstrous.pngR6i3374R9tgoR0i681121R1zR2R7R4y39:assets%2Fdata%2F3_skin103_carbuncle.pngR6i3734R9tgoR0i684855R1zR2R7R4y38:assets%2Fdata%2F3_skin104_phosphor.pngR6i1865R9tgoR0i686720R1zR2R7R4y40:assets%2Fdata%2F3_skin10_californian.pngR6i3252R9tgoR0i689972R1zR2R7R4y38:assets%2Fdata%2F3_skin11_chocolate.pngR6i2646R9tgoR0i692618R1zR2R7R4y37:assets%2Fdata%2F3_skin12_tricolor.pngR6i3359R9tgoR0i695977R1zR2R7R4y39:assets%2Fdata%2F3_skin13_blackotter.pngR6i3106R9tgoR0i699083R1zR2R7R4y32:assets%2Fdata%2F3_skin14_red.pngR6i2627R9tgoR0i701710R1zR2R7R4y35:assets%2Fdata%2F3_skin15_castor.pngR6i2574R9tgoR0i704284R1zR2R7R4y33:assets%2Fdata%2F3_skin16_gray.pngR6i2534R9tgoR0i706818R1zR2R7R4y33:assets%2Fdata%2F3_skin17_moss.pngR6i2579R9tgoR0i709397R1zR2R7R4y33:assets%2Fdata%2F3_skin18_pink.pngR6i2587R9tgoR0i711984R1zR2R7R4y34:assets%2Fdata%2F3_skin19_green.pngR6i2607R9tgoR0i714591R1zR2R7R4y32:assets%2Fdata%2F3_skin1_navy.pngR6i2548R9tgoR0i717139R1zR2R7R4y38:assets%2Fdata%2F3_skin20_lightblue.pngR6i2577R9tgoR0i719716R1zR2R7R4y35:assets%2Fdata%2F3_skin21_purple.pngR6i2591R9tgoR0i722307R1zR2R7R4y35:assets%2Fdata%2F3_skin22_yellow.pngR6i2694R9tgoR0i725001R1zR2R7R4y36:assets%2Fdata%2F3_skin23_scarlet.pngR6i2658R9tgoR0i727659R1zR2R7R4y33:assets%2Fdata%2F3_skin24_blue.pngR6i2598R9tgoR0i730257R1zR2R7R4y33:assets%2Fdata%2F3_skin25_lime.pngR6i2653R9tgoR0i732910R1zR2R7R4y33:assets%2Fdata%2F3_skin26_cyan.pngR6i2693R9tgoR0i735603R1zR2R7R4y35:assets%2Fdata%2F3_skin27_orange.pngR6i2689R9tgoR0i738292R1zR2R7R4y36:assets%2Fdata%2F3_skin28_magenta.pngR6i2642R9tgoR0i740934R1zR2R7R4y32:assets%2Fdata%2F3_skin29_rgb.pngR6i3830R9tgoR0i744764R1zR2R7R4y33:assets%2Fdata%2F3_skin2_brown.pngR6i2616R9tgoR0i747380R1zR2R7R4y34:assets%2Fdata%2F3_skin30_tiger.pngR6i3487R9tgoR0i750867R1zR2R7R4y36:assets%2Fdata%2F3_skin31_pumpkin.pngR6i3266R9tgoR0i754133R1zR2R7R4y34:assets%2Fdata%2F3_skin32_robot.pngR6i3133R9tgoR0i757266R1zR2R7R4y38:assets%2Fdata%2F3_skin33_steampunk.pngR6i3446R9tgoR0i760712R1zR2R7R4y34:assets%2Fdata%2F3_skin34_water.pngR6i2887R9tgoR0i763599R1zR2R7R4y33:assets%2Fdata%2F3_skin35_camo.pngR6i3073R9tgoR0i766672R1zR2R7R4y33:assets%2Fdata%2F3_skin36_wood.pngR6i3103R9tgoR0i769775R1zR2R7R4y34:assets%2Fdata%2F3_skin37_stone.pngR6i3166R9tgoR0i772941R1zR2R7R4y33:assets%2Fdata%2F3_skin38_fire.pngR6i3301R9tgoR0i776242R1zR2R7R4y37:assets%2Fdata%2F3_skin39_negative.pngR6i2502R9tgoR0i778744R1zR2R7R4y33:assets%2Fdata%2F3_skin3_black.pngR6i2576R9tgoR0i781320R1zR2R7R4y40:assets%2Fdata%2F3_skin40_transparent.pngR6i2359R9tgoR0i783679R1zR2R7R4y34:assets%2Fdata%2F3_skin41_angel.pngR6i3139R9tgoR0i786818R1zR2R7R4y32:assets%2Fdata%2F3_skin42_imp.pngR6i3188R9tgoR0i790006R1zR2R7R4y31:assets%2Fdata%2F3_skin43_gb.pngR6i2651R9tgoR0i792657R1zR2R7R4y35:assets%2Fdata%2F3_skin44_frozen.pngR6i3822R9tgoR0i796479R1zR2R7R4y36:assets%2Fdata%2F3_skin45_rainbow.pngR6i3503R9tgoR0i799982R1zR2R7R4y34:assets%2Fdata%2F3_skin46_alien.pngR6i2973R9tgoR0i802955R1zR2R7R4y40:assets%2Fdata%2F3_skin47_fluffywhite.pngR6i2733R9tgoR0i805688R1zR2R7R4y39:assets%2Fdata%2F3_skin48_upsidedown.pngR6i2603R9tgoR0i808291R1zR2R7R4y33:assets%2Fdata%2F3_skin49_dark.pngR6i2867R9tgoR0i811158R1zR2R7R4y40:assets%2Fdata%2F3_skin49_fluffybrown.pngR6i2991R9tgoR0i814149R1zR2R7R4y33:assets%2Fdata%2F3_skin4_beige.pngR6i2538R9tgoR0i816687R1zR2R7R4y35:assets%2Fdata%2F3_skin50_chonky.pngR6i2965R9tgoR0i819652R1zR2R7R4y33:assets%2Fdata%2F3_skin51_mini.pngR6i2269R9tgoR0i821921R1zR2R7R4y39:assets%2Fdata%2F3_skin52_sabretooth.pngR6i3595R9tgoR0i825516R1zR2R7R4y37:assets%2Fdata%2F3_skin53_electric.pngR6i2748R9tgoR0i828264R1zR2R7R4y39:assets%2Fdata%2F3_skin54_silhouette.pngR6i1569R9tgoR0i829833R1zR2R7R4y33:assets%2Fdata%2F3_skin55_frog.pngR6i1593R9tgoR0i831426R1zR2R7R4y34:assets%2Fdata%2F3_skin55_gooey.pngR6i3014R9tgoR0i834440R1zR2R7R4y32:assets%2Fdata%2F3_skin56_pig.pngR6i3036R9tgoR0i837476R1zR2R7R4y33:assets%2Fdata%2F3_skin56_snow.pngR6i2379R9tgoR0i839855R1zR2R7R4y34:assets%2Fdata%2F3_skin57_mouse.pngR6i3204R9tgoR0i843059R1zR2R7R4y36:assets%2Fdata%2F3_skin57_vampire.pngR6i3111R9tgoR0i846170R1zR2R7R4y32:assets%2Fdata%2F3_skin58_cat.pngR6i2991R9tgoR0i849161R1zR2R7R4y35:assets%2Fdata%2F3_skin58_cosmic.pngR6i1923R9tgoR0i851084R1zR2R7R4y37:assets%2Fdata%2F3_skin59_capybara.pngR6i2785R9tgoR0i853869R1zR2R7R4y35:assets%2Fdata%2F3_skin59_silver.pngR6i3261R9tgoR0i857130R1zR2R7R4y37:assets%2Fdata%2F3_skin5_brownspot.pngR6i3188R9tgoR0i860318R1zR2R7R4y36:assets%2Fdata%2F3_skin60_psychic.pngR6i3208R9tgoR0i863526R1zR2R7R4y39:assets%2Fdata%2F3_skin61_jackrabbit.pngR6i4051R9tgoR0i867577R1zR2R7R4y34:assets%2Fdata%2F3_skin62_shark.pngR6i3848R9tgoR0i871425R1zR2R7R4y38:assets%2Fdata%2F3_skin63_jackalope.pngR6i4131R9tgoR0i875556R1zR2R7R4y37:assets%2Fdata%2F3_skin64_usadachi.pngR6i3021R9tgoR0i878577R1zR2R7R4y33:assets%2Fdata%2F3_skin65_punk.pngR6i1930R9tgoR0i880507R1zR2R7R4y33:assets%2Fdata%2F3_skin66_goth.pngR6i3374R9tgoR0i883881R1zR2R7R4y33:assets%2Fdata%2F3_skin67_moon.pngR6i3116R9tgoR0i886997R1zR2R7R4y39:assets%2Fdata%2F3_skin68_caerbannog.pngR6i3151R9tgoR0i890148R1zR2R7R4y34:assets%2Fdata%2F3_skin69_foxxy.pngR6i3761R9tgoR0i893909R1zR2R7R4y36:assets%2Fdata%2F3_skin6_bluespot.pngR6i3138R9tgoR0i897047R1zR2R7R4y33:assets%2Fdata%2F3_skin70_dust.pngR6i4496R9tgoR0i901543R1zR2R7R4y33:assets%2Fdata%2F3_skin71_kami.pngR6i2972R9tgoR0i904515R1zR2R7R4y36:assets%2Fdata%2F3_skin72_almiraj.pngR6i3464R9tgoR0i907979R1zR2R7R4y36:assets%2Fdata%2F3_skin73_skvader.pngR6i3635R9tgoR0i911614R1zR2R7R4y40:assets%2Fdata%2F3_skin74_warcriminal.pngR6i5087R9tgoR0i916701R1zR2R7R4y35:assets%2Fdata%2F3_skin75_golden.pngR6i3053R9tgoR0i919754R1zR2R7R4y35:assets%2Fdata%2F3_skin76_divine.pngR6i2946R9tgoR0i922700R1zR2R7R4y40:assets%2Fdata%2F3_skin77_neutronized.pngR6i2971R9tgoR0i925671R1zR2R7R4y35:assets%2Fdata%2F3_skin78_carrot.pngR6i3945R9tgoR0i929616R1zR2R7R4y41:assets%2Fdata%2F3_skin79_goldencarrot.pngR6i3101R9tgoR0i932717R1zR2R7R4y37:assets%2Fdata%2F3_skin7_blackspot.pngR6i3104R9tgoR0i935821R1zR2R7R4y36:assets%2Fdata%2F3_skin80_chester.pngR6i4165R9tgoR0i939986R1zR2R7R4y34:assets%2Fdata%2F3_skin81_timmy.pngR6i4524R9tgoR0i944510R1zR2R7R4y39:assets%2Fdata%2F3_skin82_dashington.pngR6i3910R9tgoR0i948420R1zR2R7R4y34:assets%2Fdata%2F3_skin83_heart.pngR6i4007R9tgoR0i952427R1zR2R7R4y33:assets%2Fdata%2F3_skin84_star.pngR6i4024R9tgoR0i956451R1zR2R7R4y33:assets%2Fdata%2F3_skin85_mage.pngR6i4285R9tgoR0i960736R1zR2R7R4y35:assets%2Fdata%2F3_skin86_knight.pngR6i4588R9tgoR0i965324R1zR2R7R4y35:assets%2Fdata%2F3_skin87_ranger.pngR6i5404R9tgoR0i970728R1zR2R7R4y33:assets%2Fdata%2F3_skin88_king.pngR6i3808R9tgoR0i974536R1zR2R7R4y37:assets%2Fdata%2F3_skin89_original.pngR6i2382R9tgoR0i976918R1zR2R7R4y38:assets%2Fdata%2F3_skin8_chinchilla.pngR6i2466R9tgoR0i979384R1zR2R7R4y34:assets%2Fdata%2F3_skin90_fairy.pngR6i3044R9tgoR0i982428R1zR2R7R4y34:assets%2Fdata%2F3_skin91_pixie.pngR6i3184R9tgoR0i985612R1zR2R7R4y34:assets%2Fdata%2F3_skin92_ninja.pngR6i3732R9tgoR0i989344R1zR2R7R4y37:assets%2Fdata%2F3_skin93_infernal.pngR6i3508R9tgoR0i992852R1zR2R7R4y37:assets%2Fdata%2F3_skin94_ethereal.pngR6i2487R9tgoR0i995339R1zR2R7R4y35:assets%2Fdata%2F3_skin95_zombie.pngR6i3552R9tgoR0i998891R1zR2R7R4y37:assets%2Fdata%2F3_skin96_triplets.pngR6i3879R9tgoR0i1002770R1zR2R7R4y34:assets%2Fdata%2F3_skin97_ghost.pngR6i2504R9tgoR0i1005274R1zR2R7R4y36:assets%2Fdata%2F3_skin98_crystal.pngR6i3494R9tgoR0i1008768R1zR2R7R4y35:assets%2Fdata%2F3_skin99_astral.pngR6i3208R9tgoR0i1011976R1zR2R7R4y36:assets%2Fdata%2F3_skin9_cinnamon.pngR6i2687R9tgoR0i1014663R1zR2R7R4y33:assets%2Fdata%2F4_skin0_white.pngR6i2451R9tgoR0i1017114R1zR2R7R4y36:assets%2Fdata%2F4_skin100_domino.pngR6i3204R9tgoR0i1020318R1zR2R7R4y37:assets%2Fdata%2F4_skin100_domino2.pngR6i3159R9tgoR0i1023477R1zR2R7R4y39:assets%2Fdata%2F4_skin101_disguised.pngR6i3415R9tgoR0i1026892R1zR2R7R4y39:assets%2Fdata%2F4_skin102_monstrous.pngR6i3571R9tgoR0i1030463R1zR2R7R4y39:assets%2Fdata%2F4_skin103_carbuncle.pngR6i3982R9tgoR0i1034445R1zR2R7R4y38:assets%2Fdata%2F4_skin104_phosphor.pngR6i2075R9tgoR0i1036520R1zR2R7R4y40:assets%2Fdata%2F4_skin10_californian.pngR6i3475R9tgoR0i1039995R1zR2R7R4y38:assets%2Fdata%2F4_skin11_chocolate.pngR6i3334R9tgoR0i1043329R1zR2R7R4y37:assets%2Fdata%2F4_skin12_tricolor.pngR6i3631R9tgoR0i1046960R1zR2R7R4y39:assets%2Fdata%2F4_skin13_blackotter.pngR6i3421R9tgoR0i1050381R1zR2R7R4y32:assets%2Fdata%2F4_skin14_red.pngR6i2846R9tgoR0i1053227R1zR2R7R4y35:assets%2Fdata%2F4_skin15_castor.pngR6i2755R9tgoR0i1055982R1zR2R7R4y33:assets%2Fdata%2F4_skin16_gray.pngR6i2788R9tgoR0i1058770R1zR2R7R4y33:assets%2Fdata%2F4_skin17_moss.pngR6i2812R9tgoR0i1061582R1zR2R7R4y33:assets%2Fdata%2F4_skin18_pink.pngR6i2738R9tgoR0i1064320R1zR2R7R4y34:assets%2Fdata%2F4_skin19_green.pngR6i2803R9tgoR0i1067123R1zR2R7R4y32:assets%2Fdata%2F4_skin1_navy.pngR6i2752R9tgoR0i1069875R1zR2R7R4y38:assets%2Fdata%2F4_skin20_lightblue.pngR6i2774R9tgoR0i1072649R1zR2R7R4y35:assets%2Fdata%2F4_skin21_purple.pngR6i2767R9tgoR0i1075416R1zR2R7R4y35:assets%2Fdata%2F4_skin22_yellow.pngR6i2894R9tgoR0i1078310R1zR2R7R4y36:assets%2Fdata%2F4_skin23_scarlet.pngR6i2852R9tgoR0i1081162R1zR2R7R4y33:assets%2Fdata%2F4_skin24_blue.pngR6i2748R9tgoR0i1083910R1zR2R7R4y33:assets%2Fdata%2F4_skin25_lime.pngR6i2856R9tgoR0i1086766R1zR2R7R4y33:assets%2Fdata%2F4_skin26_cyan.pngR6i2855R9tgoR0i1089621R1zR2R7R4y35:assets%2Fdata%2F4_skin27_orange.pngR6i2829R9tgoR0i1092450R1zR2R7R4y36:assets%2Fdata%2F4_skin28_magenta.pngR6i2801R9tgoR0i1095251R1zR2R7R4y32:assets%2Fdata%2F4_skin29_rgb.pngR6i4059R9tgoR0i1099310R1zR2R7R4y33:assets%2Fdata%2F4_skin2_brown.pngR6i2777R9tgoR0i1102087R1zR2R7R4y34:assets%2Fdata%2F4_skin30_tiger.pngR6i3682R9tgoR0i1105769R1zR2R7R4y36:assets%2Fdata%2F4_skin31_pumpkin.pngR6i3578R9tgoR0i1109347R1zR2R7R4y34:assets%2Fdata%2F4_skin32_robot.pngR6i3389R9tgoR0i1112736R1zR2R7R4y38:assets%2Fdata%2F4_skin33_steampunk.pngR6i3699R9tgoR0i1116435R1zR2R7R4y34:assets%2Fdata%2F4_skin34_water.pngR6i3133R9tgoR0i1119568R1zR2R7R4y33:assets%2Fdata%2F4_skin35_camo.pngR6i3313R9tgoR0i1122881R1zR2R7R4y33:assets%2Fdata%2F4_skin36_wood.pngR6i3377R9tgoR0i1126258R1zR2R7R4y34:assets%2Fdata%2F4_skin37_stone.pngR6i3471R9tgoR0i1129729R1zR2R7R4y33:assets%2Fdata%2F4_skin38_fire.pngR6i3594R9tgoR0i1133323R1zR2R7R4y37:assets%2Fdata%2F4_skin39_negative.pngR6i2722R9tgoR0i1136045R1zR2R7R4y33:assets%2Fdata%2F4_skin3_black.pngR6i2738R9tgoR0i1138783R1zR2R7R4y40:assets%2Fdata%2F4_skin40_transparent.pngR6i2657R9tgoR0i1141440R1zR2R7R4y34:assets%2Fdata%2F4_skin41_angel.pngR6i3362R9tgoR0i1144802R1zR2R7R4y32:assets%2Fdata%2F4_skin42_imp.pngR6i3417R9tgoR0i1148219R1zR2R7R4y31:assets%2Fdata%2F4_skin43_gb.pngR6i3179R9tgoR0i1151398R1zR2R7R4y35:assets%2Fdata%2F4_skin44_frozen.pngR6i4118R9tgoR0i1155516R1zR2R7R4y36:assets%2Fdata%2F4_skin45_rainbow.pngR6i3840R9tgoR0i1159356R1zR2R7R4y34:assets%2Fdata%2F4_skin46_alien.pngR6i3240R9tgoR0i1162596R1zR2R7R4y40:assets%2Fdata%2F4_skin47_fluffywhite.pngR6i3025R9tgoR0i1165621R1zR2R7R4y39:assets%2Fdata%2F4_skin48_upsidedown.pngR6i2789R9tgoR0i1168410R1zR2R7R4y33:assets%2Fdata%2F4_skin49_dark.pngR6i3087R9tgoR0i1171497R1zR2R7R4y40:assets%2Fdata%2F4_skin49_fluffybrown.pngR6i3206R9tgoR0i1174703R1zR2R7R4y33:assets%2Fdata%2F4_skin4_beige.pngR6i2806R9tgoR0i1177509R1zR2R7R4y35:assets%2Fdata%2F4_skin50_chonky.pngR6i3194R9tgoR0i1180703R1zR2R7R4y33:assets%2Fdata%2F4_skin51_mini.pngR6i2765R9tgoR0i1183468R1zR2R7R4y39:assets%2Fdata%2F4_skin52_sabretooth.pngR6i3890R9tgoR0i1187358R1zR2R7R4y37:assets%2Fdata%2F4_skin53_electric.pngR6i3518R9tgoR0i1190876R1zR2R7R4y39:assets%2Fdata%2F4_skin54_silhouette.pngR6i1821R9tgoR0i1192697R1zR2R7R4y33:assets%2Fdata%2F4_skin55_frog.pngR6i3020R9tgoR0i1195717R1zR2R7R4y34:assets%2Fdata%2F4_skin55_gooey.pngR6i3309R9tgoR0i1199026R1zR2R7R4y32:assets%2Fdata%2F4_skin56_pig.pngR6i3260R9tgoR0i1202286R1zR2R7R4y33:assets%2Fdata%2F4_skin56_snow.pngR6i2564R9tgoR0i1204850R1zR2R7R4y34:assets%2Fdata%2F4_skin57_mouse.pngR6i3476R9tgoR0i1208326R1zR2R7R4y36:assets%2Fdata%2F4_skin57_vampire.pngR6i3279R9tgoR0i1211605R1zR2R7R4y32:assets%2Fdata%2F4_skin58_cat.pngR6i3167R9tgoR0i1214772R1zR2R7R4y35:assets%2Fdata%2F4_skin58_cosmic.pngR6i2143R9tgoR0i1216915R1zR2R7R4y37:assets%2Fdata%2F4_skin59_capybara.pngR6i3105R9tgoR0i1220020R1zR2R7R4y35:assets%2Fdata%2F4_skin59_silver.pngR6i3513R9tgoR0i1223533R1zR2R7R4y37:assets%2Fdata%2F4_skin5_brownspot.pngR6i3444R9tgoR0i1226977R1zR2R7R4y36:assets%2Fdata%2F4_skin60_psychic.pngR6i3410R9tgoR0i1230387R1zR2R7R4y39:assets%2Fdata%2F4_skin61_jackrabbit.pngR6i4382R9tgoR0i1234769R1zR2R7R4y34:assets%2Fdata%2F4_skin62_shark.pngR6i4070R9tgoR0i1238839R1zR2R7R4y38:assets%2Fdata%2F4_skin63_jackalope.pngR6i4418R9tgoR0i1243257R1zR2R7R4y37:assets%2Fdata%2F4_skin64_usadachi.pngR6i3236R9tgoR0i1246493R1zR2R7R4y33:assets%2Fdata%2F4_skin65_punk.pngR6i3729R9tgoR0i1250222R1zR2R7R4y33:assets%2Fdata%2F4_skin66_goth.pngR6i3687R9tgoR0i1253909R1zR2R7R4y33:assets%2Fdata%2F4_skin67_moon.pngR6i3351R9tgoR0i1257260R1zR2R7R4y39:assets%2Fdata%2F4_skin68_caerbannog.pngR6i3425R9tgoR0i1260685R1zR2R7R4y34:assets%2Fdata%2F4_skin69_foxxy.pngR6i4038R9tgoR0i1264723R1zR2R7R4y36:assets%2Fdata%2F4_skin6_bluespot.pngR6i3392R9tgoR0i1268115R1zR2R7R4y33:assets%2Fdata%2F4_skin70_dust.pngR6i4759R9tgoR0i1272874R1zR2R7R4y33:assets%2Fdata%2F4_skin71_kami.pngR6i3214R9tgoR0i1276088R1zR2R7R4y36:assets%2Fdata%2F4_skin72_almiraj.pngR6i3831R9tgoR0i1279919R1zR2R7R4y36:assets%2Fdata%2F4_skin73_skvader.pngR6i3775R9tgoR0i1283694R1zR2R7R4y40:assets%2Fdata%2F4_skin74_warcriminal.pngR6i5472R9tgoR0i1289166R1zR2R7R4y35:assets%2Fdata%2F4_skin75_golden.pngR6i3309R9tgoR0i1292475R1zR2R7R4y35:assets%2Fdata%2F4_skin76_divine.pngR6i3212R9tgoR0i1295687R1zR2R7R4y40:assets%2Fdata%2F4_skin77_neutronized.pngR6i3212R9tgoR0i1298899R1zR2R7R4y35:assets%2Fdata%2F4_skin78_carrot.pngR6i4270R9tgoR0i1303169R1zR2R7R4y41:assets%2Fdata%2F4_skin79_goldencarrot.pngR6i3913R9tgoR0i1307082R1zR2R7R4y37:assets%2Fdata%2F4_skin7_blackspot.pngR6i3344R9tgoR0i1310426R1zR2R7R4y36:assets%2Fdata%2F4_skin80_chester.pngR6i4505R9tgoR0i1314931R1zR2R7R4y34:assets%2Fdata%2F4_skin81_timmy.pngR6i4793R9tgoR0i1319724R1zR2R7R4y39:assets%2Fdata%2F4_skin82_dashington.pngR6i4096R9tgoR0i1323820R1zR2R7R4y34:assets%2Fdata%2F4_skin83_heart.pngR6i4350R9tgoR0i1328170R1zR2R7R4y33:assets%2Fdata%2F4_skin84_star.pngR6i4300R9tgoR0i1332470R1zR2R7R4y33:assets%2Fdata%2F4_skin85_mage.pngR6i4546R9tgoR0i1337016R1zR2R7R4y35:assets%2Fdata%2F4_skin86_knight.pngR6i4870R9tgoR0i1341886R1zR2R7R4y35:assets%2Fdata%2F4_skin87_ranger.pngR6i5847R9tgoR0i1347733R1zR2R7R4y33:assets%2Fdata%2F4_skin88_king.pngR6i4113R9tgoR0i1351846R1zR2R7R4y37:assets%2Fdata%2F4_skin89_original.pngR6i2623R9tgoR0i1354469R1zR2R7R4y38:assets%2Fdata%2F4_skin8_chinchilla.pngR6i2632R9tgoR0i1357101R1zR2R7R4y34:assets%2Fdata%2F4_skin90_fairy.pngR6i3329R9tgoR0i1360430R1zR2R7R4y34:assets%2Fdata%2F4_skin91_pixie.pngR6i3454R9tgoR0i1363884R1zR2R7R4y34:assets%2Fdata%2F4_skin92_ninja.pngR6i4064R9tgoR0i1367948R1zR2R7R4y37:assets%2Fdata%2F4_skin93_infernal.pngR6i3659R9tgoR0i1371607R1zR2R7R4y37:assets%2Fdata%2F4_skin94_ethereal.pngR6i2680R9tgoR0i1374287R1zR2R7R4y35:assets%2Fdata%2F4_skin95_zombie.pngR6i3844R9tgoR0i1378131R1zR2R7R4y37:assets%2Fdata%2F4_skin96_triplets.pngR6i4150R9tgoR0i1382281R1zR2R7R4y34:assets%2Fdata%2F4_skin97_ghost.pngR6i2677R9tgoR0i1384958R1zR2R7R4y36:assets%2Fdata%2F4_skin98_crystal.pngR6i3758R9tgoR0i1388716R1zR2R7R4y35:assets%2Fdata%2F4_skin99_astral.pngR6i3461R9tgoR0i1392177R1zR2R7R4y36:assets%2Fdata%2F4_skin9_cinnamon.pngR6i3275R9tgoR0i1395452R1zR2y6:BINARYR4y29:assets%2Fdata%2Fbehaviors.mbsR6i60245goR0i1455697R1zR2R896R4y24:assets%2Fdata%2Fgame.mbsR6i2818goR0i1458515R1zR2R7R4y34:assets%2Fdata%2Finner-joystick.pngR6i902R9tgoR0i1459417R1zR2R7R4y34:assets%2Fdata%2Fouter-joystick.pngR6i1974R9tgoR0i1461391R1zR2R896R4y29:assets%2Fdata%2Fresources.mbsR6i29847goR0i1491238R1zR2R896R4y28:assets%2Fdata%2Fscene-10.mbsR6i227goR0i1491465R1zR2R896R4y28:assets%2Fdata%2Fscene-10.scnR6i26goR0i1491491R1zR2R896R4y28:assets%2Fdata%2Fscene-11.mbsR6i669goR0i1492160R1zR2R896R4y28:assets%2Fdata%2Fscene-11.scnR6i393goR0i1492553R1zR2R896R4y28:assets%2Fdata%2Fscene-12.mbsR6i791goR0i1493344R1zR2R896R4y28:assets%2Fdata%2Fscene-12.scnR6i393goR0i1493737R1zR2R896R4y28:assets%2Fdata%2Fscene-13.mbsR6i873goR0i1494610R1zR2R896R4y28:assets%2Fdata%2Fscene-13.scnR6i393goR0i1495003R1zR2R896R4y28:assets%2Fdata%2Fscene-14.mbsR6i1182goR0i1496185R1zR2R896R4y28:assets%2Fdata%2Fscene-14.scnR6i393goR0i1496578R1zR2R896R4y28:assets%2Fdata%2Fscene-15.mbsR6i1183goR0i1497761R1zR2R896R4y28:assets%2Fdata%2Fscene-15.scnR6i393goR0i1498154R1zR2R896R4y28:assets%2Fdata%2Fscene-16.mbsR6i1183goR0i1499337R1zR2R896R4y28:assets%2Fdata%2Fscene-16.scnR6i393goR0i1499730R1zR2R896R4y28:assets%2Fdata%2Fscene-17.mbsR6i1185goR0i1500915R1zR2R896R4y28:assets%2Fdata%2Fscene-17.scnR6i393goR0i1501308R1zR2R896R4y28:assets%2Fdata%2Fscene-18.mbsR6i1186goR0i1502494R1zR2R896R4y28:assets%2Fdata%2Fscene-18.scnR6i393goR0i1502887R1zR2R896R4y28:assets%2Fdata%2Fscene-19.mbsR6i1186goR0i1504073R1zR2R896R4y28:assets%2Fdata%2Fscene-19.scnR6i393goR0i1504466R1zR2R896R4y28:assets%2Fdata%2Fscene-20.mbsR6i668goR0i1505134R1zR2R896R4y28:assets%2Fdata%2Fscene-20.scnR6i399goR0i1505533R1zR2R896R4y28:assets%2Fdata%2Fscene-21.mbsR6i543goR0i1506076R1zR2R896R4y28:assets%2Fdata%2Fscene-21.scnR6i393goR0i1506469R1zR2R896R4y28:assets%2Fdata%2Fscene-22.mbsR6i1185goR0i1507654R1zR2R896R4y28:assets%2Fdata%2Fscene-22.scnR6i393goR0i1508047R1zR2R896R4y28:assets%2Fdata%2Fscene-23.mbsR6i688goR0i1508735R1zR2R896R4y28:assets%2Fdata%2Fscene-23.scnR6i393goR0i1509128R1zR2R896R4y28:assets%2Fdata%2Fscene-24.mbsR6i891goR0i1510019R1zR2R896R4y28:assets%2Fdata%2Fscene-24.scnR6i393goR0i1510412R1zR2R896R4y27:assets%2Fdata%2Fscene-9.mbsR6i888goR0i1511300R1zR2R896R4y27:assets%2Fdata%2Fscene-9.scnR6i393goR0i1511693R1zR2R896R4y26:assets%2Fdata%2Fscenes.mbsR6i295gh","rootPath":null,"version":2,"libraryArgs":["lib/default.pak","gzip"],"libraryType":"lime.utils.PackedAssetLibrary"}', +na.rootPath);a=vb.fromManifest(a);wa.registerLibrary("default",a);a=wa.getLibrary("default");null!=a?na.preloadLibraries.push(a):na.preloadLibraryNames.push("default")};Math.__name__="Math";var pa=function(){};k.PokiWraper=pa;pa.__name__="PokiWraper";pa.start=function(a,b){null==pa.instance&&(pa.adBlocked=!1,pa.instance=new yn(a,b))};pa.IsVideoPlaying=function(){return pa.instance.IsVideoPlaying()};pa.moveBanner=function(a){pa.instance.moveBanner(a)};pa.isMobileGame=function(){return pa.instance.isMobileGame()}; +pa.showBanner=function(a,b,c,d){null==d&&(d=!1);pa.instance.showBanner(a,b,c,d)};pa.killBanner=function(){pa.instance.killBanner()};pa.gameLoadingStart=function(){pa.instance.gameLoadingStart()};pa.gameLoadingFinished=function(){pa.instance.gameLoadingFinished()};pa.gameLoadingProgress=function(a,b,c){pa.instance.gameLoadingProgress({percentageDone:a,bytesLoaded:b,bytesTotal:c})};pa.commercialBreak=function(a){pa.instance.commercialBreak(a)};pa.rewardedBreak=function(a){pa.instance.rewardedBreak(a)}; +pa.sendHappyTime=function(a){pa.instance.sendHappyTime(a)};pa.sendGameplayStart=function(){pa.instance.sendGameplayStart()};pa.sendGameplayStop=function(){pa.instance.sendGameplayStop()};var W=function(){};k.Reflect=W;W.__name__="Reflect";W.field=function(a,b){try{return a[b]}catch(c){return sa.lastError=c,null}};W.getProperty=function(a,b){var c;if(null==a)return null;var d=a.__properties__?c=a.__properties__["get_"+b]:!1;return d?a[c]():a[b]};W.setProperty=function(a,b,c){var d;var e=a.__properties__? +d=a.__properties__["set_"+b]:!1;if(e)a[d](c);else a[b]=c};W.fields=function(a){var b=[];if(null!=a){var c=Object.prototype.hasOwnProperty,d;for(d in a)"__id__"!=d&&"hx__closures__"!=d&&c.call(a,d)&&b.push(d)}return b};W.isFunction=function(a){return"function"==typeof a?!(a.__name__||a.__ename__):!1};W.compare=function(a,b){return a==b?0:a>b?1:-1};W.compareMethods=function(a,b){return a==b?!0:W.isFunction(a)&&W.isFunction(b)?a.scope==b.scope&&a.method==b.method?null!=a.method:!1:!1};W.isEnumValue= +function(a){return null!=a?null!=a.__enum__:!1};W.deleteField=function(a,b){if(!Object.prototype.hasOwnProperty.call(a,b))return!1;delete a[b];return!0};W.makeVarArgs=function(a){return function(){var b=Array.prototype.slice.call(arguments);return a(b)}};var n=function(){};k.Std=n;n.__name__="Std";n.string=function(a){return O.__string_rec(a,"")};n.parseInt=function(a){if(null!=a)for(var b=0,c=a.length;b<c;){var d=b++,e=a.charCodeAt(d);if(8>=e||14<=e&&32!=e&&45!=e)if(b=a.charCodeAt(d+1),a=parseInt(a, +120==b||88==b?16:10),isNaN(a))break;else return a}return null};var ma=function(){};k["_String.String_Impl_"]=ma;ma.__name__="_String.String_Impl_";ma.fromCharCode=function(a){return String.fromCodePoint(a)};var oc=function(){this.b=""};k.StringBuf=oc;oc.__name__="StringBuf";oc.prototype={b:null,__class__:oc};var J=function(){};k.StringTools=J;J.__name__="StringTools";J.htmlEscape=function(a,b){for(var c="",d=0,e=a;d<e.length;){a=e;var g=d++,x=a.charCodeAt(g);55296<=x&&56319>=x&&(x=x-55232<<10|a.charCodeAt(g+ +1)&1023);a=x;65536<=a&&++d;switch(a){case 34:c=b?c+""":c+String.fromCodePoint(a);break;case 38:c+="&";break;case 39:c=b?c+"'":c+String.fromCodePoint(a);break;case 60:c+="<";break;case 62:c+=">";break;default:c+=String.fromCodePoint(a)}}return c};J.htmlUnescape=function(a){return a.split(">").join(">").split("<").join("<").split(""").join('"').split("'").join("'").split("&").join("&")};J.startsWith=function(a,b){return a.length>=b.length?0==a.lastIndexOf(b,0): +!1};J.endsWith=function(a,b){var c=b.length,d=a.length;return d>=c?a.indexOf(b,d-c)==d-c:!1};J.isSpace=function(a,b){a=F.cca(a,b);return 8<a&&14>a?!0:32==a};J.ltrim=function(a){for(var b=a.length,c=0;c<b&&J.isSpace(a,c);)++c;return 0<c?F.substr(a,c,b-c):a};J.rtrim=function(a){for(var b=a.length,c=0;c<b&&J.isSpace(a,b-c-1);)++c;return 0<c?F.substr(a,0,b-c):a};J.trim=function(a){return J.ltrim(J.rtrim(a))};J.rpad=function(a,b,c){if(0>=b.length)return a;for(a=null==a?"null":""+a;a.length<c;)a+=null== +b?"null":""+b;return a};J.replace=function(a,b,c){return a.split(b).join(c)};J.hex=function(a,b){for(var c="";c="0123456789ABCDEF".charAt(a&15)+c,a>>>=4,0<a;);if(null!=b)for(;c.length<b;)c="0"+c;return c};var Fa=E.ValueType={__ename__:"ValueType",__constructs__:null,TNull:{_hx_name:"TNull",_hx_index:0,__enum__:"ValueType",toString:v},TInt:{_hx_name:"TInt",_hx_index:1,__enum__:"ValueType",toString:v},TFloat:{_hx_name:"TFloat",_hx_index:2,__enum__:"ValueType",toString:v},TBool:{_hx_name:"TBool",_hx_index:3, +__enum__:"ValueType",toString:v},TObject:{_hx_name:"TObject",_hx_index:4,__enum__:"ValueType",toString:v},TFunction:{_hx_name:"TFunction",_hx_index:5,__enum__:"ValueType",toString:v},TClass:(N=function(a){return{_hx_index:6,c:a,__enum__:"ValueType",toString:v}},N._hx_name="TClass",N.__params__=["c"],N),TEnum:(N=function(a){return{_hx_index:7,e:a,__enum__:"ValueType",toString:v}},N._hx_name="TEnum",N.__params__=["e"],N),TUnknown:{_hx_name:"TUnknown",_hx_index:8,__enum__:"ValueType",toString:v}};Fa.__constructs__= +[Fa.TNull,Fa.TInt,Fa.TFloat,Fa.TBool,Fa.TObject,Fa.TFunction,Fa.TClass,Fa.TEnum,Fa.TUnknown];var Za=function(){};k.Type=Za;Za.__name__="Type";Za.resolveEnum=function(a){return E[a]};Za.createInstance=function(a,b){return new (Function.prototype.bind.apply(a,[null].concat(b)))};Za.createEnum=function(a,b,c){var d=W.field(a,b);if(null==d)throw R.thrown("No such constructor "+b);if(W.isFunction(d)){if(null==c)throw R.thrown("Constructor "+b+" need parameters");return d.apply(a,c)}if(null!=c&&0!=c.length)throw R.thrown("Constructor "+ +b+" does not need parameters");return d};Za.getInstanceFields=function(a){var b=[],c;for(c in a.prototype)b.push(c);F.remove(b,"__class__");F.remove(b,"__properties__");return b};Za.typeof=function(a){switch(typeof a){case "boolean":return Fa.TBool;case "function":return a.__name__||a.__ename__?Fa.TObject:Fa.TFunction;case "number":return Math.ceil(a)==a%2147483648?Fa.TInt:Fa.TFloat;case "object":if(null==a)return Fa.TNull;var b=a.__enum__;if(null!=b)return Fa.TEnum(E[b]);a=O.getClass(a);return null!= +a?Fa.TClass(a):Fa.TObject;case "string":return Fa.TClass(String);case "undefined":return Fa.TNull;default:return Fa.TUnknown}};Za.enumParameters=function(a){var b=E[a.__enum__].__constructs__[a._hx_index].__params__;if(null!=b){for(var c=[],d=0;d<b.length;){var e=b[d];++d;c.push(a[e])}return c}return[]};var ca={gt:function(a,b){var c=0>a;return c!=0>b?c:a>b},toFloat:function(a){return 0>a?4294967296+a:a+0}},Pb=function(){};k["openfl.events.IEventDispatcher"]=Pb;Pb.__name__="openfl.events.IEventDispatcher"; +Pb.__isInterface__=!0;Pb.prototype={addEventListener:null,dispatchEvent:null,hasEventListener:null,removeEventListener:null,willTrigger:null,__class__:Pb};var fb=function(a){null!=a&&(this.__targetDispatcher=a)};k["openfl.events.EventDispatcher"]=fb;fb.__name__="openfl.events.EventDispatcher";fb.__interfaces__=[Pb];fb.prototype={__eventMap:null,__iterators:null,__targetDispatcher:null,addEventListener:function(a,b,c,d,e){null==d&&(d=0);null==c&&(c=!1);if(null!=b)if(null==this.__eventMap&&(this.__eventMap= +new V,this.__iterators=new V),Object.prototype.hasOwnProperty.call(this.__eventMap.h,a)){f=this.__eventMap.h[a];e=0;for(var g=f.length;e<g;){var x=e++;if(f[x].match(b,c))return}a=this.__iterators.h[a];for(e=0;e<a.length;)g=a[e],++e,g.active&&g.copy();this.__addListenerByPriority(f,new kj(b,c,d))}else{var f=[];f.push(new kj(b,c,d));g=new lj(f);this.__eventMap.h[a]=f;this.__iterators.h[a]=[g]}},dispatchEvent:function(a){a.target=null!=this.__targetDispatcher?this.__targetDispatcher:this;return this.__dispatchEvent(a)}, +hasEventListener:function(a){return null==this.__eventMap?!1:Object.prototype.hasOwnProperty.call(this.__eventMap.h,a)},removeEventListener:function(a,b,c){null==c&&(c=!1);if(null!=this.__eventMap&&null!=b){var d=this.__eventMap.h[a];if(null!=d){for(var e=this.__iterators.h[a],g=0,x=d.length;g<x;){var f=g++;if(d[f].match(b,c)){for(b=0;b<e.length;)c=e[b],++b,c.remove(d[f],f);d.splice(f,1);break}}0==d.length&&(d=this.__eventMap,e=a,Object.prototype.hasOwnProperty.call(d.h,e)&&delete d.h[e],d=this.__iterators, +e=a,Object.prototype.hasOwnProperty.call(d.h,e)&&delete d.h[e]);0>=Object.keys(this.__eventMap.h).length&&(this.__iterators=this.__eventMap=null)}}},toString:function(){return"[object "+O.getClass(this).__name__.split(".").pop()+"]"},willTrigger:function(a){return this.hasEventListener(a)},__dispatchEvent:function(a){if(null==this.__eventMap||null==a)return!0;var b=a.type,c=this.__eventMap.h[b];if(null==c)return!0;null==a.target&&(a.target=null!=this.__targetDispatcher?this.__targetDispatcher:this); +a.currentTarget=this;var d=1==a.eventPhase;b=this.__iterators.h[b];var e=b[0];e.active&&(e=new lj(c),b.push(e));e.start();for(var g=e;g.hasNext();){var x=g.next();if(null!=x&&x.useCapture==d&&(x.callback(a),a.__isCanceledNow))break}e.stop();e!=b[0]?F.remove(b,e):e.reset(c);return!a.isDefaultPrevented()},__removeAllListeners:function(){this.__iterators=this.__eventMap=null},__addListenerByPriority:function(a,b){for(var c=a.length,d=c,e=0;e<c;){var g=e++;if(a[g].priority<b.priority){d=g;break}}a.splice(d, +0,b)},__class__:fb};var Zd=function(){};k["openfl.display.IBitmapDrawable"]=Zd;Zd.__name__="openfl.display.IBitmapDrawable";Zd.__isInterface__=!0;Zd.prototype={__blendMode:null,__drawableType:null,__isMask:null,__renderable:null,__renderTransform:null,__transform:null,__worldAlpha:null,__worldColorTransform:null,__worldTransform:null,__getBounds:null,__update:null,__updateTransforms:null,__mask:null,__scrollRect:null,__class__:Zd};var ub={__properties__:{set_length:"set_length",get_length:"get_length", +set_fixed:"set_fixed",get_fixed:"get_fixed"},concat:function(a,b){return a.concat(b)},copy:function(a){return a.copy()},every:function(a,b,c){for(var d=0,e=a.get_length();d<e;){var g=d++;a.__tempIndex=g;if(null!=c){if(0==b.apply(c,[a.get(g),g,a]))break}else if(0==b(a.get(g),g,a))break}return a.__tempIndex==a.get_length()-1},filter:function(a,b){return a.filter(b)},get:function(a,b){return a.get(b)},indexOf:function(a,b,c){null==c&&(c=0);return a.indexOf(b,c)},insertAt:function(a,b,c){a.insertAt(b, +c)},iterator:function(a){return a.iterator()},join:function(a,b){null==b&&(b=",");return a.join(b)},lastIndexOf:function(a,b,c){return a.lastIndexOf(b,c)},pop:function(a){return a.pop()},push:function(a,b){return a.push(b)},removeAt:function(a,b){return a.removeAt(b)},reverse:function(a){return a.reverse()},set:function(a,b,c){return a.set(b,c)},shift:function(a){return a.shift()},slice:function(a,b,c){null==b&&(b=0);return a.slice(b,c)},some:function(a,b,c){for(var d=0,e=a.get_length();d<e;){var g= +d++;a.__tempIndex=g;if(null!=c){if(1==b.apply(c,[a.get(g),g,a]))break}else if(b(a.get(g),g,a))break;g==a.get_length()-1&&a.__tempIndex++}return a.__tempIndex<a.get_length()-1},sort:function(a,b){a.sort(b)},splice:function(a,b,c){for(var d=arguments.length,e=Array(3<d?d-3:0),g=3;g<d;++g)e[g-3]=arguments[g];a.__tempIndex=b;for(d=0;d<e.length;)g=e[d++],a.insertAt(a.__tempIndex,g),a.__tempIndex++;return a.splice(a.__tempIndex,c)},toString:function(a){return null!=a?a.toString():null},unshift:function(a, +b){a.unshift(b)},convert:function(a){return a},toBoolVector:function(a,b,c,d){return new Bf(b,c,d)},toIntVector:function(a,b,c,d){return new Cf(b,c,d)},toFloatVector:function(a,b,c,d){return new Df(b,c,d,!0)},toFunctionVector:function(a,b,c,d){return new Ef(b,c,d)},toObjectVector:function(a,b,c,d){return new of(b,c,d,!0)},toNullVector:function(a,b,c,d){return new of(b,c,d,!0)},fromBoolVector:function(a){return a},fromIntVector:function(a){return a},fromFloatVector:function(a){return a},fromFunctionVector:function(a){return a}, +fromObjectVector:function(a){return a},get_fixed:function(a){return a.fixed},set_fixed:function(a,b){return a.fixed=b},get_length:function(a){return a.get_length()},set_length:function(a,b){return a.set_length(b)}},Qd=function(a,b,c){this.__pool=new ac;this.inactiveObjects=this.activeObjects=0;this.__inactiveObject1=this.__inactiveObject0=null;this.__inactiveObjectList=new id;null!=a&&(this.create=a);null!=b&&(this.clean=b);null!=c&&this.set_size(c)};k["lime.utils.ObjectPool"]=Qd;Qd.__name__="lime.utils.ObjectPool"; +Qd.prototype={activeObjects:null,inactiveObjects:null,__inactiveObject0:null,__inactiveObject1:null,__inactiveObjectList:null,__pool:null,__size:null,add:function(a){this.__pool.exists(a)||(this.__pool.set(a,!1),this.clean(a),this.__pool.set(a,!1),null==this.__inactiveObject0?this.__inactiveObject0=a:null==this.__inactiveObject1?this.__inactiveObject1=a:this.__inactiveObjectList.add(a),this.inactiveObjects++)},clean:function(a){},clear:function(){this.__pool=new ac;this.inactiveObjects=this.activeObjects= +0;this.__inactiveObject1=this.__inactiveObject0=null;this.__inactiveObjectList.clear()},create:function(){return null},get:function(){var a=null;if(0<this.inactiveObjects)null!=this.__inactiveObject0?(a=this.__inactiveObject0,this.__inactiveObject0=null):null!=this.__inactiveObject1?(a=this.__inactiveObject1,this.__inactiveObject1=null):(a=this.__inactiveObjectList.pop(),0<this.__inactiveObjectList.length&&(this.__inactiveObject0=this.__inactiveObjectList.pop()),0<this.__inactiveObjectList.length&& +(this.__inactiveObject1=this.__inactiveObjectList.pop())),this.__pool.set(a,!0),this.inactiveObjects--,this.activeObjects++;else if(null==this.__size||this.activeObjects<this.__size)a=this.create(),null!=a&&(this.__pool.set(a,!0),this.activeObjects++);return a},release:function(a){this.__pool.exists(a)?this.__pool.get(a)||Ga.error("Object has already been released",{fileName:"lime/utils/ObjectPool.hx",lineNumber:106,className:"lime.utils.ObjectPool",methodName:"release"}):Ga.error("Object is not a member of the pool", +{fileName:"lime/utils/ObjectPool.hx",lineNumber:102,className:"lime.utils.ObjectPool",methodName:"release"});this.activeObjects--;null==this.__size||this.activeObjects+this.inactiveObjects<this.__size?(this.clean(a),this.__pool.set(a,!1),null==this.__inactiveObject0?this.__inactiveObject0=a:null==this.__inactiveObject1?this.__inactiveObject1=a:this.__inactiveObjectList.add(a),this.inactiveObjects++):this.__pool.remove(a)},remove:function(a){this.__pool.exists(a)&&(this.__pool.remove(a),this.__inactiveObject0== +a?(this.__inactiveObject0=null,this.inactiveObjects--):this.__inactiveObject1==a?(this.__inactiveObject1=null,this.inactiveObjects--):this.__inactiveObjectList.remove(a)?this.inactiveObjects--:this.activeObjects--)},__addInactive:function(a){this.__pool.set(a,!1);null==this.__inactiveObject0?this.__inactiveObject0=a:null==this.__inactiveObject1?this.__inactiveObject1=a:this.__inactiveObjectList.add(a);this.inactiveObjects++},__getInactive:function(){if(null!=this.__inactiveObject0){var a=this.__inactiveObject0; +this.__inactiveObject0=null}else null!=this.__inactiveObject1?(a=this.__inactiveObject1,this.__inactiveObject1=null):(a=this.__inactiveObjectList.pop(),0<this.__inactiveObjectList.length&&(this.__inactiveObject0=this.__inactiveObjectList.pop()),0<this.__inactiveObjectList.length&&(this.__inactiveObject1=this.__inactiveObjectList.pop()));this.__pool.set(a,!0);this.inactiveObjects--;this.activeObjects++;return a},__removeInactive:function(a){if(!(0>=a||0==this.inactiveObjects)&&(null!=this.__inactiveObject0&& +(this.__pool.remove(this.__inactiveObject0),this.__inactiveObject0=null,this.inactiveObjects--,--a),0!=a&&0!=this.inactiveObjects&&(null!=this.__inactiveObject1&&(this.__pool.remove(this.__inactiveObject1),this.__inactiveObject1=null,this.inactiveObjects--,--a),0!=a&&0!=this.inactiveObjects)))for(var b=this.__inactiveObjectList.h;null!=b;){var c=b.item;b=b.next;this.__pool.remove(c);this.__inactiveObjectList.remove(c);this.inactiveObjects--;--a;if(0==a||0==this.inactiveObjects)break}},get_size:function(){return this.__size}, +set_size:function(a){if(null==a)this.__size=null;else{var b=this.inactiveObjects+this.activeObjects;this.__size=a;if(b>a)this.__removeInactive(b-a);else if(a>b)for(var c=0,d=a-b;c<d;)if(c++,b=this.create(),null!=b)this.__pool.set(b,!1),this.__inactiveObjectList.add(b),this.inactiveObjects++;else break}return a},__class__:Qd,__properties__:{set_size:"set_size",get_size:"get_size"}};var jd=function(){};k["haxe.IMap"]=jd;jd.__name__="haxe.IMap";jd.__isInterface__=!0;jd.prototype={get:null,set:null,exists:null, +remove:null,keys:null,iterator:null,keyValueIterator:null,__class__:jd};var ac=function(){this.h={__keys__:{}}};k["haxe.ds.ObjectMap"]=ac;ac.__name__="haxe.ds.ObjectMap";ac.__interfaces__=[jd];ac.prototype={h:null,set:function(a,b){var c=a.__id__;null==c&&(c=a.__id__=Q.$haxeUID++);this.h[c]=b;this.h.__keys__[c]=a},get:function(a){return this.h[a.__id__]},exists:function(a){return null!=this.h.__keys__[a.__id__]},remove:function(a){a=a.__id__;if(null==this.h.__keys__[a])return!1;delete this.h[a];delete this.h.__keys__[a]; +return!0},keys:function(){var a=[],b;for(b in this.h.__keys__)this.h.hasOwnProperty(b)&&a.push(this.h.__keys__[b]);return new ue(a)},iterator:function(){return{ref:this.h,it:this.keys(),hasNext:function(){return this.it.hasNext()},next:function(){var a=this.it.next();return this.ref[a.__id__]}}},keyValueIterator:function(){return new fh(this)},toString:function(){var a="{";for(var b=this.keys();b.hasNext();){var c=b.next();a+=n.string(n.string(c));a+=" => ";a+=n.string(n.string(this.h[c.__id__])); +b.hasNext()&&(a+=", ")}return a+"}"},__class__:ac};var id=function(){this.length=0};k["haxe.ds.List"]=id;id.__name__="haxe.ds.List";id.prototype={h:null,q:null,length:null,add:function(a){a=new uk(a,null);null==this.h?this.h=a:this.q.next=a;this.q=a;this.length++},push:function(a){this.h=a=new uk(a,this.h);null==this.q&&(this.q=a);this.length++},pop:function(){if(null==this.h)return null;var a=this.h.item;this.h=this.h.next;null==this.h&&(this.q=null);this.length--;return a},clear:function(){this.q= +this.h=null;this.length=0},remove:function(a){for(var b=null,c=this.h;null!=c;){if(c.item==a)return null==b?this.h=c.next:b.next=c.next,this.q==c&&(this.q=b),this.length--,!0;b=c;c=c.next}return!1},iterator:function(){return new zn(this.h)},__class__:id};var A=function(){fb.call(this);this.__alpha=this.__drawableType=1;this.__blendMode=10;this.__cacheAsBitmap=!1;this.__transform=new Aa;this.__visible=!0;this.__rotationSine=this.__rotation=0;this.__worldAlpha=this.__scaleY=this.__scaleX=this.__rotationCosine= +1;this.__worldBlendMode=10;this.__worldTransform=new Aa;this.__worldColorTransform=new Gc;this.__renderTransform=new Aa;this.__worldVisible=!0;this.set_name("instance"+ ++A.__instanceCount);null!=A.__initStage&&(this.stage=A.__initStage,A.__initStage=null,this.stage.addChild(this))};k["openfl.display.DisplayObject"]=A;A.__name__="openfl.display.DisplayObject";A.__interfaces__=[Zd];A.__calculateAbsoluteTransform=function(a,b,c){c.a=a.a*b.a+a.b*b.c;c.b=a.a*b.b+a.b*b.d;c.c=a.c*b.a+a.d*b.c;c.d=a.c*b.b+ +a.d*b.d;c.tx=a.tx*b.a+a.ty*b.c+b.tx;c.ty=a.tx*b.b+a.ty*b.d+b.ty};A.__super__=fb;A.prototype=u(fb.prototype,{opaqueBackground:null,parent:null,stage:null,__alpha:null,__blendMode:null,__cacheAsBitmap:null,__cacheAsBitmapMatrix:null,__cacheBitmap:null,__cacheBitmapBackground:null,__cacheBitmapColorTransform:null,__cacheBitmapData:null,__cacheBitmapData2:null,__cacheBitmapData3:null,__cacheBitmapMatrix:null,__cacheBitmapRenderer:null,__cairo:null,__children:null,__customRenderClear:null,__customRenderEvent:null, +__drawableType:null,__filters:null,__graphics:null,__interactive:null,__isCacheBitmapRender:null,__isMask:null,__loaderInfo:null,__mask:null,__maskTarget:null,__name:null,__objectTransform:null,__renderable:null,__renderDirty:null,__renderParent:null,__renderTransform:null,__renderTransformCache:null,__renderTransformChanged:null,__rotation:null,__rotationCosine:null,__rotationSine:null,__scale9Grid:null,__scaleX:null,__scaleY:null,__scrollRect:null,__shader:null,__tempPoint:null,__transform:null, +__transformDirty:null,__visible:null,__worldAlpha:null,__worldAlphaChanged:null,__worldBlendMode:null,__worldClip:null,__worldClipChanged:null,__worldColorTransform:null,__worldShader:null,__worldScale9Grid:null,__worldTransform:null,__worldVisible:null,__worldVisibleChanged:null,__worldTransformInvalid:null,__worldZ:null,__canvas:null,__context:null,__style:null,addEventListener:function(a,b,c,d,e){null==e&&(e=!1);null==d&&(d=0);null==c&&(c=!1);switch(a){case "activate":case "deactivate":case "enterFrame":case "exitFrame":case "frameConstructed":case "render":Object.prototype.hasOwnProperty.call(A.__broadcastEvents.h, +a)||(A.__broadcastEvents.h[a]=[]);var g=A.__broadcastEvents.h[a];-1==g.indexOf(this)&&g.push(this);break;case "clearDOM":case "renderCairo":case "renderCanvas":case "renderDOM":case "renderOpenGL":null==this.__customRenderEvent&&(this.__customRenderEvent=new pg(null),this.__customRenderEvent.objectColorTransform=new Gc,this.__customRenderEvent.objectMatrix=new Aa,this.__customRenderClear=!0)}fb.prototype.addEventListener.call(this,a,b,c,d,e)},dispatchEvent:function(a){if(a instanceof Ib){var b=this.__getRenderTransform(); +a.stageX=a.localX*b.a+a.localY*b.c+b.tx;b=this.__getRenderTransform();a.stageY=a.localX*b.b+a.localY*b.d+b.ty}else a instanceof Rd&&(b=this.__getRenderTransform(),a.stageX=a.localX*b.a+a.localY*b.c+b.tx,b=this.__getRenderTransform(),a.stageY=a.localX*b.b+a.localY*b.d+b.ty);a.target=this;return this.__dispatchWithCapture(a)},getBounds:function(a){var b=Aa.__pool.get();if(null!=a&&a!=this){b.copyFrom(this.__getWorldTransform());var c=Aa.__pool.get();c.copyFrom(a.__getWorldTransform());c.invert();b.concat(c); +Aa.__pool.release(c)}else b.identity();a=new fa;this.__getBounds(a,b);Aa.__pool.release(b);return a},getRect:function(a){return this.getBounds(a)},globalToLocal:function(a){return this.__globalToLocal(a,new oa)},hitTestObject:function(a){if(null!=a&&null!=a.parent&&null!=this.parent){var b=this.getBounds(this);a=a.getBounds(this);return b.intersects(a)}return!1},hitTestPoint:function(a,b,c){null==c&&(c=!1);return null!=this.stage?this.__hitTest(a,b,c,null,!1,this):!1},invalidate:function(){this.__renderDirty|| +(this.__renderDirty=!0,this.__setParentRenderDirty())},localToGlobal:function(a){return this.__getRenderTransform().transformPoint(a)},removeEventListener:function(a,b,c){null==c&&(c=!1);fb.prototype.removeEventListener.call(this,a,b,c);switch(a){case "activate":case "deactivate":case "enterFrame":case "exitFrame":case "frameConstructed":case "render":this.hasEventListener(a)||Object.prototype.hasOwnProperty.call(A.__broadcastEvents.h,a)&&F.remove(A.__broadcastEvents.h[a],this);break;case "clearDOM":case "renderCairo":case "renderCanvas":case "renderDOM":case "renderOpenGL":this.hasEventListener("clearDOM")|| +this.hasEventListener("renderCairo")||this.hasEventListener("renderCanvas")||this.hasEventListener("renderDOM")||this.hasEventListener("renderOpenGL")||(this.__customRenderEvent=null)}},__cleanup:function(){this.__context=this.__canvas=this.__cairo=null;null!=this.__graphics&&this.__graphics.__cleanup();null!=this.__cacheBitmap&&(this.__cacheBitmap.__cleanup(),this.__cacheBitmap=null);null!=this.__cacheBitmapData&&(this.__cacheBitmapData.dispose(),this.__cacheBitmapData=null)},__dispatch:function(a){if(null!= +this.__eventMap&&this.hasEventListener(a.type)){var b=fb.prototype.__dispatchEvent.call(this,a);return a.__isCanceled?!0:b}return!0},__dispatchChildren:function(a){},__dispatchEvent:function(a){var b=a.bubbles?this.parent:null,c=fb.prototype.__dispatchEvent.call(this,a);if(a.__isCanceled)return!0;null!=b&&b!=this&&(a.eventPhase=3,null==a.target&&(a.target=this),b.__dispatchEvent(a));return c},__dispatchWithCapture:function(a){null==a.target&&(a.target=this);if(null!=this.parent)if(a.eventPhase=1, +this.parent==this.stage)this.parent.__dispatch(a);else{for(var b=A.__tempStack.get(),c=this.parent,d=0;null!=c;)b.set(d,c),c=c.parent,++d;c=0;for(var e=d;c<e;){var g=c++;b.get(d-g-1).__dispatch(a)}A.__tempStack.release(b)}a.eventPhase=2;return this.__dispatchEvent(a)},__enterFrame:function(a){},__getBounds:function(a,b){null!=this.__graphics&&this.__graphics.__getBounds(a,b)},__getCursor:function(){return null},__getFilterBounds:function(a,b){this.__getRenderBounds(a,b);if(null!=this.__filters){b= +fa.__pool.get();for(var c=0,d=this.__filters;c<d.length;){var e=d[c];++c;b.__expand(-e.__leftExtension,-e.__topExtension,e.__leftExtension+e.__rightExtension,e.__topExtension+e.__bottomExtension)}a.width+=b.width;a.height+=b.height;a.x+=b.x;a.y+=b.y;fa.__pool.release(b)}},__getInteractive:function(a){return!1},__getLocalBounds:function(a){this.__getBounds(a,this.__transform);a.x-=this.__transform.tx;a.y-=this.__transform.ty},__getRenderBounds:function(a,b){if(null==this.__scrollRect)this.__getBounds(a, +b);else{var c=fa.__pool.get();c.copyFrom(this.__scrollRect);c.__transform(c,b);a.__expand(c.x,c.y,c.width,c.height);fa.__pool.release(c)}},__getRenderTransform:function(){this.__getWorldTransform();return this.__renderTransform},__getWorldTransform:function(){if(this.__transformDirty||this.__worldTransformInvalid){var a=[],b=this;if(null==this.parent)this.__update(!0,!1);else for(;b!=this.stage&&(a.push(b),b=b.parent,null!=b););for(var c=a.length;0<=--c;)b=a[c],b.__update(!0,!1)}return this.__worldTransform}, +__globalToLocal:function(a,b){this.__getRenderTransform();if(a==b){var c=this.__renderTransform,d=c.a*c.d-c.b*c.c;if(0==d)a.x=-c.tx,a.y=-c.ty;else{var e=1/d*(c.c*(c.ty-a.y)+c.d*(a.x-c.tx));a.y=1/d*(c.a*(a.y-c.ty)+c.b*(c.tx-a.x));a.x=e}}else c=this.__renderTransform,d=c.a*c.d-c.b*c.c,b.x=0==d?-c.tx:1/d*(c.c*(c.ty-a.y)+c.d*(a.x-c.tx)),c=this.__renderTransform,d=c.a*c.d-c.b*c.c,b.y=0==d?-c.ty:1/d*(c.a*(a.y-c.ty)+c.b*(c.tx-a.x));return b},__hitTest:function(a,b,c,d,e,g){if(null!=this.__graphics){if(!g.__visible|| +this.__isMask||null!=this.get_mask()&&!this.get_mask().__hitTestMask(a,b))return!1;if(this.__graphics.__hitTest(a,b,c,this.__getRenderTransform()))return null==d||e||d.push(g),!0}return!1},__hitTestMask:function(a,b){return null!=this.__graphics&&this.__graphics.__hitTest(a,b,!0,this.__getRenderTransform())?!0:!1},__readGraphicsData:function(a,b){null!=this.__graphics&&this.__graphics.__readGraphicsData(a)},__setParentRenderDirty:function(){var a=null!=this.__renderParent?this.__renderParent:this.parent; +null==a||a.__renderDirty||(a.__renderDirty=!0,a.__setParentRenderDirty())},__setRenderDirty:function(){this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty())},__setStageReference:function(a){this.stage=a},__setTransformDirty:function(){this.__transformDirty||(this.__transformDirty=!0,this.__setWorldTransformInvalid(),this.__setParentRenderDirty())},__setWorldTransformInvalid:function(){this.__worldTransformInvalid=!0},__stopAllMovieClips:function(){},__update:function(a,b){var c= +null!=this.__renderParent?this.__renderParent:this.parent;this.__isMask&&null==c&&(c=this.__maskTarget);this.__renderable=this.__visible&&0!=this.__scaleX&&0!=this.__scaleY&&!this.__isMask&&(null==c||!c.__isMask);this.__updateTransforms();this.__worldTransformInvalid=this.__transformDirty=!1;if(!a)if(A.__supportDOM&&(this.__renderTransformChanged=!this.__renderTransform.equals(this.__renderTransformCache),null==this.__renderTransformCache?this.__renderTransformCache=this.__renderTransform.clone(): +this.__renderTransformCache.copyFrom(this.__renderTransform)),null!=c){if(A.__supportDOM){var d=c.__worldVisible&&this.__visible;this.__worldVisibleChanged=this.__worldVisible!=d;this.__worldVisible=d;d=this.get_alpha()*c.__worldAlpha;this.__worldAlphaChanged=this.__worldAlpha!=d;this.__worldAlpha=d}else this.__worldAlpha=this.get_alpha()*c.__worldAlpha;null!=this.__objectTransform?(this.__worldColorTransform.__copyFrom(this.__objectTransform.__colorTransform),this.__worldColorTransform.__combine(c.__worldColorTransform)): +this.__worldColorTransform.__copyFrom(c.__worldColorTransform);this.__worldBlendMode=null==this.__blendMode||10==this.__blendMode?c.__worldBlendMode:this.__blendMode;this.__worldShader=null==this.__shader?c.__shader:this.__shader;this.__worldScale9Grid=null==this.__scale9Grid?c.__scale9Grid:this.__scale9Grid}else this.__worldAlpha=this.get_alpha(),A.__supportDOM&&(this.__worldVisibleChanged=this.__worldVisible!=this.__visible,this.__worldVisible=this.__visible,this.__worldAlphaChanged=this.__worldAlpha!= +this.get_alpha()),null!=this.__objectTransform?this.__worldColorTransform.__copyFrom(this.__objectTransform.__colorTransform):this.__worldColorTransform.__identity(),this.__worldBlendMode=this.__blendMode,this.__worldShader=this.__shader,this.__worldScale9Grid=this.__scale9Grid;b&&null!=this.get_mask()&&this.get_mask().__update(a,!0)},__updateTransforms:function(a){var b=null!=a;a=b?a:this.__transform;null==this.__worldTransform&&(this.__worldTransform=new Aa);null==this.__renderTransform&&(this.__renderTransform= +new Aa);var c=null!=this.__renderParent?this.__renderParent:this.parent;if(b||null==this.parent)this.__worldTransform.copyFrom(a);else{var d=this.parent.__worldTransform,e=this.__worldTransform;e.a=a.a*d.a+a.b*d.c;e.b=a.a*d.b+a.b*d.d;e.c=a.c*d.a+a.d*d.c;e.d=a.c*d.b+a.d*d.d;e.tx=a.tx*d.a+a.ty*d.c+d.tx;e.ty=a.tx*d.b+a.ty*d.d+d.ty}b||null==c?this.__renderTransform.copyFrom(a):(d=c.__renderTransform,e=this.__renderTransform,e.a=a.a*d.a+a.b*d.c,e.b=a.a*d.b+a.b*d.d,e.c=a.c*d.a+a.d*d.c,e.d=a.c*d.b+a.d*d.d, +e.tx=a.tx*d.a+a.ty*d.c+d.tx,e.ty=a.tx*d.b+a.ty*d.d+d.ty);null!=this.__scrollRect&&(b=this.__renderTransform,a=-this.__scrollRect.x,c=-this.__scrollRect.y,b.tx=a*b.a+c*b.c+b.tx,b.ty=a*b.b+c*b.d+b.ty)},get_alpha:function(){return this.__alpha},set_alpha:function(a){1<a&&(a=1);0>a&&(a=0);a==this.__alpha||this.get_cacheAsBitmap()||this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty());return this.__alpha=a},get_blendMode:function(){return this.__blendMode},set_blendMode:function(a){null== +a&&(a=10);a==this.__blendMode||this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty());return this.__blendMode=a},get_cacheAsBitmap:function(){return null==this.__filters?this.__cacheAsBitmap:!0},set_cacheAsBitmap:function(a){a==this.__cacheAsBitmap||this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty());return this.__cacheAsBitmap=a},get_cacheAsBitmapMatrix:function(){return this.__cacheAsBitmapMatrix},set_cacheAsBitmapMatrix:function(a){this.__renderDirty||(this.__renderDirty= +!0,this.__setParentRenderDirty());return this.__cacheAsBitmapMatrix=null!=a?a.clone():a},get_filters:function(){return null==this.__filters?[]:this.__filters.slice()},set_filters:function(a){if(null!=a&&0<a.length){for(var b=[],c=0;c<a.length;){var d=a[c];++c;d=d.clone();d.__renderDirty=!0;b.push(d)}this.__filters=b;this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty())}else null!=this.__filters&&(this.__filters=null,this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty())); +return a},get_height:function(){var a=fa.__pool.get();this.__getLocalBounds(a);var b=a.height;fa.__pool.release(a);return b},set_height:function(a){var b=fa.__pool.get(),c=Aa.__pool.get();c.identity();this.__getBounds(b,c);a!=b.height?this.set_scaleY(a/b.height):this.set_scaleY(1);fa.__pool.release(b);Aa.__pool.release(c);return a},get_loaderInfo:function(){return null!=this.stage?zc.current.__loaderInfo:null},get_mask:function(){return this.__mask},set_mask:function(a){if(a==this.__mask)return a; +a!=this.__mask&&(this.__setTransformDirty(),this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty()));if(null!=this.__mask){this.__mask.__isMask=!1;this.__mask.__maskTarget=null;this.__mask.__setTransformDirty();var b=this.__mask;b.__renderDirty||(b.__renderDirty=!0,b.__setParentRenderDirty())}null!=a&&(a.__isMask=!0,a.__maskTarget=this,a.__setWorldTransformInvalid());null!=this.__cacheBitmap&&this.__cacheBitmap.get_mask()!=a&&this.__cacheBitmap.set_mask(a);return this.__mask=a}, +get_mouseX:function(){var a=null!=this.stage?this.stage.__mouseX:zc.current.stage.__mouseX,b=null!=this.stage?this.stage.__mouseY:zc.current.stage.__mouseY,c=this.__getRenderTransform(),d=c.a*c.d-c.b*c.c;return 0==d?-c.tx:1/d*(c.c*(c.ty-b)+c.d*(a-c.tx))},get_mouseY:function(){var a=null!=this.stage?this.stage.__mouseX:zc.current.stage.__mouseX,b=null!=this.stage?this.stage.__mouseY:zc.current.stage.__mouseY,c=this.__getRenderTransform(),d=c.a*c.d-c.b*c.c;return 0==d?-c.ty:1/d*(c.a*(b-c.ty)+c.b*(c.tx- +a))},get_name:function(){return this.__name},set_name:function(a){return this.__name=a},get_root:function(){return null!=this.stage?zc.current:null},get_rotation:function(){return this.__rotation},set_rotation:function(a){if(a!=this.__rotation){this.__rotation=a;var b=Math.PI/180*this.__rotation;this.__rotationSine=Math.sin(b);this.__rotationCosine=Math.cos(b);this.__transform.a=this.__rotationCosine*this.__scaleX;this.__transform.b=this.__rotationSine*this.__scaleX;this.__transform.c=-this.__rotationSine* +this.__scaleY;this.__transform.d=this.__rotationCosine*this.__scaleY;this.__setTransformDirty()}return a},get_scale9Grid:function(){return null==this.__scale9Grid?null:this.__scale9Grid.clone()},set_scale9Grid:function(a){if(null==a&&null==this.__scale9Grid||null!=a&&null!=this.__scale9Grid&&this.__scale9Grid.equals(a))return a;null!=a?(null==this.__scale9Grid&&(this.__scale9Grid=new fa),this.__scale9Grid.copyFrom(a)):this.__scale9Grid=null;this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty()); +return a},get_scaleX:function(){return this.__scaleX},set_scaleX:function(a){if(a!=this.__scaleX)if(this.__scaleX=a,0==this.__transform.b)a!=this.__transform.a&&this.__setTransformDirty(),this.__transform.a=a;else{var b=this.__rotationCosine*a,c=this.__rotationSine*a;this.__transform.a==b&&this.__transform.b==c||this.__setTransformDirty();this.__transform.a=b;this.__transform.b=c}return a},get_scaleY:function(){return this.__scaleY},set_scaleY:function(a){if(a!=this.__scaleY)if(this.__scaleY=a,0== +this.__transform.c)a!=this.__transform.d&&this.__setTransformDirty(),this.__transform.d=a;else{var b=-this.__rotationSine*a,c=this.__rotationCosine*a;this.__transform.d==c&&this.__transform.c==b||this.__setTransformDirty();this.__transform.c=b;this.__transform.d=c}return a},get_scrollRect:function(){return null==this.__scrollRect?null:this.__scrollRect.clone()},set_scrollRect:function(a){if(null==a&&null==this.__scrollRect||null!=a&&null!=this.__scrollRect&&this.__scrollRect.equals(a))return a;null!= +a?(null==this.__scrollRect&&(this.__scrollRect=new fa),this.__scrollRect.copyFrom(a)):this.__scrollRect=null;this.__setTransformDirty();A.__supportDOM&&!this.__renderDirty&&(this.__renderDirty=!0,this.__setParentRenderDirty());return a},get_shader:function(){return this.__shader},set_shader:function(a){this.__shader=a;this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty());return a},get_transform:function(){null==this.__objectTransform&&(this.__objectTransform=new vk(this));return this.__objectTransform}, +set_transform:function(a){if(null==a)throw new Eh("Parameter transform must be non-null.");null==this.__objectTransform&&(this.__objectTransform=new vk(this));this.__setTransformDirty();this.__objectTransform.set_matrix(a.get_matrix());if(!this.__objectTransform.__colorTransform.__equals(a.__colorTransform,!0)||!this.get_cacheAsBitmap()&&this.__objectTransform.__colorTransform.alphaMultiplier!=a.__colorTransform.alphaMultiplier)this.__objectTransform.__colorTransform.__copyFrom(a.get_colorTransform()), +this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty());return this.__objectTransform},get_visible:function(){return this.__visible},set_visible:function(a){a==this.__visible||this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty());return this.__visible=a},get_width:function(){var a=fa.__pool.get();this.__getLocalBounds(a);var b=a.width;fa.__pool.release(a);return b},set_width:function(a){var b=fa.__pool.get(),c=Aa.__pool.get();c.identity();this.__getBounds(b,c); +a!=b.width?this.set_scaleX(a/b.width):this.set_scaleX(1);fa.__pool.release(b);Aa.__pool.release(c);return a},get_x:function(){return this.__transform.tx},set_x:function(a){a!=this.__transform.tx&&this.__setTransformDirty();return this.__transform.tx=a},get_y:function(){return this.__transform.ty},set_y:function(a){a!=this.__transform.ty&&this.__setTransformDirty();return this.__transform.ty=a},__class__:A,__properties__:{set_y:"set_y",get_y:"get_y",set_x:"set_x",get_x:"get_x",set_width:"set_width", +get_width:"get_width",set_visible:"set_visible",get_visible:"get_visible",set_transform:"set_transform",get_transform:"get_transform",set_shader:"set_shader",get_shader:"get_shader",set_scrollRect:"set_scrollRect",get_scrollRect:"get_scrollRect",set_scaleY:"set_scaleY",get_scaleY:"get_scaleY",set_scaleX:"set_scaleX",get_scaleX:"get_scaleX",set_scale9Grid:"set_scale9Grid",get_scale9Grid:"get_scale9Grid",set_rotation:"set_rotation",get_rotation:"get_rotation",get_root:"get_root",set_name:"set_name", +get_name:"get_name",get_mouseY:"get_mouseY",get_mouseX:"get_mouseX",set_mask:"set_mask",get_mask:"get_mask",get_loaderInfo:"get_loaderInfo",set_height:"set_height",get_height:"get_height",set_filters:"set_filters",get_filters:"get_filters",set_cacheAsBitmapMatrix:"set_cacheAsBitmapMatrix",get_cacheAsBitmapMatrix:"get_cacheAsBitmapMatrix",set_cacheAsBitmap:"set_cacheAsBitmap",get_cacheAsBitmap:"get_cacheAsBitmap",set_blendMode:"set_blendMode",get_blendMode:"get_blendMode",set_alpha:"set_alpha",get_alpha:"get_alpha"}}); +var ob=function(){A.call(this);this.doubleClickEnabled=!1;this.mouseEnabled=!0;this.needsSoftKeyboard=!1;this.__tabEnabled=null;this.__tabIndex=-1};k["openfl.display.InteractiveObject"]=ob;ob.__name__="openfl.display.InteractiveObject";ob.__super__=A;ob.prototype=u(A.prototype,{doubleClickEnabled:null,focusRect:null,mouseEnabled:null,needsSoftKeyboard:null,softKeyboardInputAreaOfInterest:null,__tabEnabled:null,__tabIndex:null,requestSoftKeyboard:function(){zc.notImplemented({fileName:"openfl/display/InteractiveObject.hx", +lineNumber:1251,className:"openfl.display.InteractiveObject",methodName:"requestSoftKeyboard"});return!1},__allowMouseFocus:function(){return this.mouseEnabled?this.get_tabEnabled():!1},__getInteractive:function(a){null!=a&&(a.push(this),null!=this.parent&&this.parent.__getInteractive(a));return!0},__hitTest:function(a,b,c,d,e,g){return!g.get_visible()||this.__isMask||e&&!this.mouseEnabled?!1:A.prototype.__hitTest.call(this,a,b,c,d,e,g)},__tabTest:function(a){this.get_tabEnabled()&&a.push(this)}, +get_tabEnabled:function(){return 1==this.__tabEnabled?!0:!1},set_tabEnabled:function(a){this.__tabEnabled!=a&&(this.__tabEnabled=a,this.dispatchEvent(new la("tabEnabledChange",!0,!1)));return this.__tabEnabled},get_tabIndex:function(){return this.__tabIndex},set_tabIndex:function(a){if(this.__tabIndex!=a){if(-1>a)throw new Fh("Parameter tabIndex must be a non-negative number; got "+a);this.__tabIndex=a;this.dispatchEvent(new la("tabIndexChange",!0,!1))}return this.__tabIndex},__class__:ob,__properties__:u(A.prototype.__properties__, +{set_tabIndex:"set_tabIndex",get_tabIndex:"get_tabIndex",set_tabEnabled:"set_tabEnabled",get_tabEnabled:"get_tabEnabled"})});var Jb=function(){ob.call(this);this.__tabChildren=this.mouseChildren=!0;this.__children=[];this.__removedChildren=ub.toObjectVector(null)};k["openfl.display.DisplayObjectContainer"]=Jb;Jb.__name__="openfl.display.DisplayObjectContainer";Jb.__super__=ob;Jb.prototype=u(ob.prototype,{mouseChildren:null,__removedChildren:null,__tabChildren:null,addChild:function(a){return this.addChildAt(a, +this.get_numChildren())},addChildAt:function(a,b){if(null==a)throw a=new Eh("Error #2007: Parameter child must be non-null."),a.errorID=2007,a;if(a.stage==a)throw a=new ni("Error #3783: A Stage object cannot be added as the child of another object."),a.errorID=3783,a;if(b>this.__children.length||0>b)throw R.thrown("Invalid index position "+b);if(a.parent==this)this.__children[b]!=a&&(F.remove(this.__children,a),this.__children.splice(b,0,a),this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty())); +else{null!=a.parent&&a.parent.removeChild(a);this.__children.splice(b,0,a);a.parent=this;(b=null!=this.stage&&null==a.stage)&&a.__setStageReference(this.stage);a.__setTransformDirty();a.__renderDirty||(a.__renderDirty=!0,a.__setParentRenderDirty());this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty());var c=new la("added");c.bubbles=!0;c.target=a;a.__dispatchWithCapture(c);b&&(c=new la("addedToStage",!1,!1),a.__dispatchWithCapture(c),a.__dispatchChildren(c))}return a},areInaccessibleObjectsUnderPoint:function(a){return!1}, +contains:function(a){for(;a!=this&&null!=a;)a=a.parent;return a==this},getChildAt:function(a){return 0<=a&&a<this.__children.length?this.__children[a]:null},getChildByName:function(a){for(var b=0,c=this.__children;b<c.length;){var d=c[b];++b;if(d.get_name()==a)return d}return null},getChildIndex:function(a){for(var b=0,c=this.__children.length;b<c;){var d=b++;if(this.__children[d]==a)return d}return-1},getObjectsUnderPoint:function(a){var b=[];this.__hitTest(a.x,a.y,!1,b,!1,this);b.reverse();return b}, +removeChild:function(a){if(null!=a&&a.parent==this){a.__setTransformDirty();a.__renderDirty||(a.__renderDirty=!0,a.__setParentRenderDirty());this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty());var b=new la("removed",!0);a.__dispatchWithCapture(b);null!=this.stage&&(null!=a.stage&&this.stage.get_focus()==a&&this.stage.set_focus(null),b=new la("removedFromStage",!1,!1),a.__dispatchWithCapture(b),a.__dispatchChildren(b),a.__setStageReference(null));a.parent=null;F.remove(this.__children, +a);this.__removedChildren.push(a);a.__setTransformDirty()}return a},removeChildAt:function(a){return 0<=a&&a<this.__children.length?this.removeChild(this.__children[a]):null},removeChildren:function(a,b){null==b&&(b=2147483647);null==a&&(a=0);if(2147483647==b&&(b=this.__children.length-1,0>b))return;if(!(a>this.__children.length-1)){if(b<a||0>a||b>this.__children.length)throw new Fh("The supplied index is out of bounds.");for(b-=a;0<=b;)this.removeChildAt(a),--b}},resolve:function(a){if(null==this.__children)return null; +for(var b=0,c=this.__children;b<c.length;){var d=c[b];++b;if(d.get_name()==a)return d}return null},setChildIndex:function(a,b){0<=b&&b<=this.__children.length&&a.parent==this&&(F.remove(this.__children,a),this.__children.splice(b,0,a))},stopAllMovieClips:function(){this.__stopAllMovieClips()},swapChildren:function(a,b){if(a.parent==this&&b.parent==this){var c=this.__children.indexOf(a),d=this.__children.indexOf(b);this.__children[c]=b;this.__children[d]=a;this.__renderDirty||(this.__renderDirty=!0, +this.__setParentRenderDirty())}},swapChildrenAt:function(a,b){var c=this.__children[a];this.__children[a]=this.__children[b];this.__children[b]=c;this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty())},__cleanup:function(){ob.prototype.__cleanup.call(this);for(var a=0,b=this.__children;a<b.length;){var c=b[a];++a;c.__cleanup()}for(a=this.__removedChildren.iterator();a.hasNext();)b=a.next(),null==b.stage&&b.__cleanup();this.__removedChildren.set_length(0)},__cleanupRemovedChildren:function(){for(var a= +this.__removedChildren.iterator();a.hasNext();){var b=a.next();null==b.stage&&b.__cleanup()}this.__removedChildren.set_length(0)},__dispatchChildren:function(a){if(null!=this.__children)for(var b=0,c=this.__children;b<c.length;){var d=c[b];++b;a.target=d;if(!d.__dispatchWithCapture(a))break;d.__dispatchChildren(a)}},__enterFrame:function(a){for(var b=0,c=this.__children;b<c.length;){var d=c[b];++b;d.__enterFrame(a)}},__getBounds:function(a,b){ob.prototype.__getBounds.call(this,a,b);if(0!=this.__children.length){for(var c= +Aa.__pool.get(),d=0,e=this.__children;d<e.length;){var g=e[d];++d;if(0!=g.__scaleX&&0!=g.__scaleY){var x=g.__transform;c.a=x.a*b.a+x.b*b.c;c.b=x.a*b.b+x.b*b.d;c.c=x.c*b.a+x.d*b.c;c.d=x.c*b.b+x.d*b.d;c.tx=x.tx*b.a+x.ty*b.c+b.tx;c.ty=x.tx*b.b+x.ty*b.d+b.ty;g.__getBounds(a,c)}}Aa.__pool.release(c)}},__getFilterBounds:function(a,b){ob.prototype.__getFilterBounds.call(this,a,b);if(null==this.__scrollRect&&0!=this.__children.length){for(var c=Aa.__pool.get(),d=0,e=this.__children;d<e.length;){var g=e[d]; +++d;if(0!=g.__scaleX&&0!=g.__scaleY&&!g.__isMask){var x=g.__transform;c.a=x.a*b.a+x.b*b.c;c.b=x.a*b.b+x.b*b.d;c.c=x.c*b.a+x.d*b.c;c.d=x.c*b.b+x.d*b.d;c.tx=x.tx*b.a+x.ty*b.c+b.tx;c.ty=x.tx*b.b+x.ty*b.d+b.ty;x=fa.__pool.get();g.__getFilterBounds(x,c);a.__expand(x.x,x.y,x.width,x.height);fa.__pool.release(x)}}Aa.__pool.release(c)}},__getRenderBounds:function(a,b){if(null!=this.__scrollRect)ob.prototype.__getRenderBounds.call(this,a,b);else if(ob.prototype.__getBounds.call(this,a,b),0!=this.__children.length){for(var c= +Aa.__pool.get(),d=0,e=this.__children;d<e.length;){var g=e[d];++d;if(0!=g.__scaleX&&0!=g.__scaleY&&!g.__isMask){var x=g.__transform;c.a=x.a*b.a+x.b*b.c;c.b=x.a*b.b+x.b*b.d;c.c=x.c*b.a+x.d*b.c;c.d=x.c*b.b+x.d*b.d;c.tx=x.tx*b.a+x.ty*b.c+b.tx;c.ty=x.tx*b.b+x.ty*b.d+b.ty;g.__getRenderBounds(a,c)}}Aa.__pool.release(c)}},__hitTest:function(a,b,c,d,e,g){if(!g.get_visible()||this.__isMask||e&&!this.mouseEnabled&&!this.mouseChildren||null!=this.get_mask()&&!this.get_mask().__hitTestMask(a,b))return!1;if(null!= +this.__scrollRect){var x=oa.__pool.get();x.setTo(a,b);var f=this.__getRenderTransform(),t=f.a*f.d-f.b*f.c;if(0==t)x.x=-f.tx,x.y=-f.ty;else{var m=1/t*(f.c*(f.ty-x.y)+f.d*(x.x-f.tx));x.y=1/t*(f.a*(x.y-f.ty)+f.b*(f.tx-x.x));x.x=m}if(!this.__scrollRect.containsPoint(x))return oa.__pool.release(x),!1;oa.__pool.release(x)}x=this.__children.length;if(e)if(null==d||!this.mouseChildren)for(;0<=--x;){if(this.__children[x].__hitTest(a,b,c,null,!0,this.__children[x]))return null!=d&&d.push(g),!0}else{if(null!= +d){e=d.length;for(t=!1;0<=--x&&!(((f=this.__children[x].__getInteractive(null))||this.mouseEnabled&&!t)&&this.__children[x].__hitTest(a,b,c,d,!0,this.__children[x])&&(t=!0,f&&d.length>e)););if(t)return d.splice(e,0,g),!0}}else{for(t=!1;0<=--x&&(!this.__children[x].__hitTest(a,b,c,d,!1,this.__children[x])||(t=!0,null!=d)););return t}return!1},__hitTestMask:function(a,b){for(var c=this.__children.length;0<=--c;)if(this.__children[c].__hitTestMask(a,b))return!0;return!1},__readGraphicsData:function(a, +b){ob.prototype.__readGraphicsData.call(this,a,b);if(b)for(var c=0,d=this.__children;c<d.length;){var e=d[c];++c;e.__readGraphicsData(a,b)}},__setStageReference:function(a){ob.prototype.__setStageReference.call(this,a);if(null!=this.__children)for(var b=0,c=this.__children;b<c.length;){var d=c[b];++b;d.__setStageReference(a)}},__setWorldTransformInvalid:function(){if(!this.__worldTransformInvalid&&(this.__worldTransformInvalid=!0,null!=this.__children))for(var a=0,b=this.__children;a<b.length;){var c= +b[a];++a;c.__setWorldTransformInvalid()}},__stopAllMovieClips:function(){for(var a=0,b=this.__children;a<b.length;){var c=b[a];++a;c.__stopAllMovieClips()}},__tabTest:function(a){ob.prototype.__tabTest.call(this,a);if(this.get_tabChildren())for(var b,c=0,d=this.__children;c<d.length;){var e=d[c];++c;if(b=e.__getInteractive(null))b=e,b.__tabTest(a)}},__update:function(a,b){ob.prototype.__update.call(this,a,b);if(b){b=0;for(var c=this.__children;b<c.length;){var d=c[b];++b;d.__update(a,!0)}}},get_numChildren:function(){return this.__children.length}, +get_tabChildren:function(){return this.__tabChildren},set_tabChildren:function(a){this.__tabChildren!=a&&(this.__tabChildren=a,this.dispatchEvent(new la("tabChildrenChange",!0,!1)));return this.__tabChildren},__class__:Jb,__properties__:u(ob.prototype.__properties__,{set_tabChildren:"set_tabChildren",get_tabChildren:"get_tabChildren",get_numChildren:"get_numChildren"})});var ta=function(){Jb.call(this);this.__drawableType=4;this.__buttonMode=!1;this.useHandCursor=!0;if(null!=this.__pendingBindLibrary){var a= +this.__pendingBindLibrary,b=this.__pendingBindClassName;this.__pendingBindClassName=this.__pendingBindLibrary=null;a.bind(b,this)}else null!=ta.__constructor&&(a=ta.__constructor,ta.__constructor=null,a(this))};k["openfl.display.Sprite"]=ta;ta.__name__="openfl.display.Sprite";ta.fromTimeline=function(a){var b=new ta;a.initializeSprite(b);return b};ta.__super__=Jb;ta.prototype=u(Jb.prototype,{dropTarget:null,hitArea:null,useHandCursor:null,__buttonMode:null,__pendingBindClassName:null,__pendingBindLibrary:null, +startDrag:function(a,b){null==a&&(a=!1);null!=this.stage&&this.stage.__startDrag(this,a,b)},stopDrag:function(){null!=this.stage&&this.stage.__stopDrag(this)},__bind:function(a,b){null==this.__worldTransform?(this.__pendingBindLibrary=a,this.__pendingBindClassName=b):null!=a&&null!=b&&a.bind(b,this)||Ga.error('Cannot bind class name "'+b+'"',{fileName:"openfl/display/Sprite.hx",lineNumber:281,className:"openfl.display.Sprite",methodName:"__bind"})},__getCursor:function(){return this.__buttonMode&& +this.useHandCursor?"button":null},__hitTest:function(a,b,c,d,e,g){if(e&&!this.mouseEnabled&&!this.mouseChildren)return!1;if(!g.get_visible()||this.__isMask||null!=this.get_mask()&&!this.get_mask().__hitTestMask(a,b))return this.__hitTestHitArea(a,b,c,d,e,g);if(null!=this.__scrollRect){var x=oa.__pool.get();x.setTo(a,b);var f=this.__getRenderTransform(),t=f.a*f.d-f.b*f.c;if(0==t)x.x=-f.tx,x.y=-f.ty;else{var m=1/t*(f.c*(f.ty-x.y)+f.d*(x.x-f.tx));x.y=1/t*(f.a*(x.y-f.ty)+f.b*(f.tx-x.x));x.x=m}if(!this.__scrollRect.containsPoint(x))return oa.__pool.release(x), +this.__hitTestHitArea(a,b,c,d,!0,g);oa.__pool.release(x)}return Jb.prototype.__hitTest.call(this,a,b,c,d,e,g)?null!=d?e:!0:null==this.hitArea&&null!=this.__graphics&&this.__graphics.__hitTest(a,b,c,this.__getRenderTransform())?(null==d||e&&!this.mouseEnabled||d.push(g),!0):this.__hitTestHitArea(a,b,c,d,e,g)},__hitTestHitArea:function(a,b,c,d,e,g){return null==this.hitArea||this.hitArea.mouseEnabled?!1:(this.hitArea.mouseEnabled=!0,a=this.hitArea.__hitTest(a,b,c,null,!0,g),this.hitArea.mouseEnabled= +!1,null!=d&&a&&(d[d.length]=g),a)},__hitTestMask:function(a,b){return Jb.prototype.__hitTestMask.call(this,a,b)||null!=this.__graphics&&this.__graphics.__hitTest(a,b,!0,this.__getRenderTransform())?!0:!1},get_graphics:function(){null==this.__graphics&&(this.__graphics=new Ue(this));return this.__graphics},get_tabEnabled:function(){return null==this.__tabEnabled?this.__buttonMode:this.__tabEnabled},get_buttonMode:function(){return this.__buttonMode},set_buttonMode:function(a){return this.__buttonMode= +a},__class__:ta,__properties__:u(Jb.prototype.__properties__,{get_graphics:"get_graphics",set_buttonMode:"set_buttonMode",get_buttonMode:"get_buttonMode"})});var da=function(){ta.call(this);this.set_name("Root");this.addEventListener("addedToStage",q(this,this.onAdded))};k.Universal=da;da.__name__="Universal";da.initWindow=function(a){da.window=a;a.stage.align=6;a.stage.set_scaleMode(2)};da.setupTracing=function(a){null==a&&(a=!1);null==da.oldTrace&&(da.oldTrace=gh.trace);a||!ja.releaseMode?(gh.trace= +da.oldTrace,Ga.level=5):(gh.trace=function(a,c){},Ga.level=0)};da.reloadGame=function(){W.field(da.am,"reloadGame").apply(da.am,[])};da.addReloadListener=function(a){W.field(da.am,"reloadListeners").push(a)};da.__super__=ta;da.prototype=u(ta.prototype,{maskLayer:null,onAdded:function(a){this.removeEventListener("addedToStage",q(this,this.onAdded));this.initServices();this.maskLayer=new Me;this.maskLayer.set_name("Mask Layer");this.initScreen(ja.startInFullScreen)},initServices:function(){},initScreen:function(a){a= +!1;this.stage.set_displayState(a?1:2);this.stage.__setLogicalSize(0,0);Da.get_current().set_x(0);Da.get_current().set_y(0);Da.get_current().set_scaleX(1);Da.get_current().set_scaleY(1);this.set_x(0);this.set_y(0);this.set_scaleX(1);this.set_scaleY(1);h.stage=this.stage;for(var b=new ac,c=0,d=ja.scales;c<d.length;){var e=d[c];++c;b.set(e,!0)}da.windowWidth=a?ca.toFloat(this.stage.get_fullScreenWidth()):ja.stageWidth*ja.gameScale;da.windowHeight=a?ca.toFloat(this.stage.get_fullScreenHeight()):ja.stageHeight* +ja.gameScale;c=this.getDesiredScale(da.windowWidth,da.windowHeight,ja.stageWidth,ja.stageHeight);d=this.getDesiredScale(ca.toFloat(this.stage.get_fullScreenWidth()),ca.toFloat(this.stage.get_fullScreenHeight()),ja.stageWidth,ja.stageHeight);d=ja.forceHiResAssets?d:c;4==d&&null!=b.h.__keys__[zd._4X.__id__]?(h.SCALE=4,h.IMG_BASE="4x"):3<=d&&null!=b.h.__keys__[zd._3X.__id__]?(h.SCALE=3,h.IMG_BASE="3x"):2<=d&&null!=b.h.__keys__[zd._2X.__id__]?(h.SCALE=2,h.IMG_BASE="2x"):1.5<=d&&null!=b.h.__keys__[zd._1_5X.__id__]? +(h.SCALE=1.5,h.IMG_BASE="1.5x"):(h.SCALE=1,h.IMG_BASE="1x");b=ja.stageWidth*h.SCALE;d=ja.stageHeight*h.SCALE;e=da.windowWidth/b;var g=da.windowHeight/d;if(ja.forceHiResAssets||da.windowWidth!=ja.stageWidth||da.windowHeight!=ja.stageHeight)1==ja.scaleMode?h.SCALE!=c&&(this.set_scaleX(c/h.SCALE),this.set_scaleY(this.get_scaleX())):2==ja.scaleMode?(this.set_scaleX(e),this.set_scaleY(g)):3==ja.scaleMode||5==ja.scaleMode?(this.set_scaleX(Math.min(e,g)),this.set_scaleY(this.get_scaleX())):4==ja.scaleMode? +(this.set_scaleX(Math.max(e,g)),this.set_scaleY(this.get_scaleX())):0==ja.scaleMode&&h.SCALE!=c&&(this.set_scaleX(c/h.SCALE),this.set_scaleY(this.get_scaleX())),5!=ja.scaleMode&&1!=ja.scaleMode&&(this.set_x(this.get_x()+(da.windowWidth-b*this.get_scaleX())/2),this.set_y(this.get_y()+(da.windowHeight-d*this.get_scaleY())/2));da.logicalWidth=ja.stageWidth;da.logicalHeight=ja.stageHeight;!a||5!=ja.scaleMode&&1!=ja.scaleMode||(da.logicalWidth=da.windowWidth/this.get_scaleX()/h.SCALE,da.logicalHeight= +da.windowHeight/this.get_scaleY()/h.SCALE,(da.logicalWidth|0)==da.logicalWidth&&(da.logicalHeight|0)==da.logicalHeight)||(da.logicalWidth|=0,da.logicalHeight|=0,this.set_scaleX(da.windowWidth/h.SCALE/da.logicalWidth),this.set_scaleY(da.windowHeight/h.SCALE/da.logicalHeight));h.screenScaleX=this.get_scaleX();h.screenScaleY=this.get_scaleY();this.maskLayer.get_graphics().clear();!a||3!=ja.scaleMode&&0!=ja.scaleMode||(a=this.get_x()/this.get_scaleX(),c=this.get_y()/this.get_scaleY(),e=da.windowWidth/ +this.get_scaleX(),this.maskLayer.get_graphics().beginFill(this.stage.get_color()),this.maskLayer.get_graphics().drawRect(-a,-c,e,c),this.maskLayer.get_graphics().drawRect(-a,0,a,d),this.maskLayer.get_graphics().drawRect(b,0,a,d),this.maskLayer.get_graphics().drawRect(-a,d,e,c),this.maskLayer.get_graphics().endFill())},getDesiredScale:function(a,b,c,d){var e=2*c,g=2*d;c*=3;d*=3;return a>=2*e&&b>=2*g?4:a>=c&&b>=d?3:a>=e&&b>=g?2:a>=c/2&&b>=d/2?1.5:1},preloaderComplete:function(){try{new h(this)}catch(b){sa.lastError= +b;var a=R.caught(b).unwrap();this.stage.__handleError(a)}},__class__:da});var Ea={toString:function(a){switch(a){case 0:return"Element";case 1:return"PCData";case 2:return"CData";case 3:return"Comment";case 4:return"DocType";case 5:return"ProcessingInstruction";case 6:return"Document"}}},U=function(a){this.nodeType=a;this.children=[];this.attributeMap=new V};k.Xml=U;U.__name__="Xml";U.parse=function(a){return hh.parse(a)};U.createElement=function(a){var b=new U(U.Element);if(b.nodeType!=U.Element)throw R.thrown("Bad node type, expected Element but found "+ +(null==b.nodeType?"null":Ea.toString(b.nodeType)));b.nodeName=a;return b};U.createPCData=function(a){var b=new U(U.PCData);if(b.nodeType==U.Document||b.nodeType==U.Element)throw R.thrown("Bad node type, unexpected "+(null==b.nodeType?"null":Ea.toString(b.nodeType)));b.nodeValue=a;return b};U.createCData=function(a){var b=new U(U.CData);if(b.nodeType==U.Document||b.nodeType==U.Element)throw R.thrown("Bad node type, unexpected "+(null==b.nodeType?"null":Ea.toString(b.nodeType)));b.nodeValue=a;return b}; +U.createComment=function(a){var b=new U(U.Comment);if(b.nodeType==U.Document||b.nodeType==U.Element)throw R.thrown("Bad node type, unexpected "+(null==b.nodeType?"null":Ea.toString(b.nodeType)));b.nodeValue=a;return b};U.createDocType=function(a){var b=new U(U.DocType);if(b.nodeType==U.Document||b.nodeType==U.Element)throw R.thrown("Bad node type, unexpected "+(null==b.nodeType?"null":Ea.toString(b.nodeType)));b.nodeValue=a;return b};U.createProcessingInstruction=function(a){var b=new U(U.ProcessingInstruction); +if(b.nodeType==U.Document||b.nodeType==U.Element)throw R.thrown("Bad node type, unexpected "+(null==b.nodeType?"null":Ea.toString(b.nodeType)));b.nodeValue=a;return b};U.createDocument=function(){return new U(U.Document)};U.prototype={nodeType:null,nodeName:null,nodeValue:null,parent:null,children:null,attributeMap:null,get:function(a){if(this.nodeType!=U.Element)throw R.thrown("Bad node type, expected Element but found "+(null==this.nodeType?"null":Ea.toString(this.nodeType)));return this.attributeMap.h[a]}, +set:function(a,b){if(this.nodeType!=U.Element)throw R.thrown("Bad node type, expected Element but found "+(null==this.nodeType?"null":Ea.toString(this.nodeType)));this.attributeMap.h[a]=b},exists:function(a){if(this.nodeType!=U.Element)throw R.thrown("Bad node type, expected Element but found "+(null==this.nodeType?"null":Ea.toString(this.nodeType)));return Object.prototype.hasOwnProperty.call(this.attributeMap.h,a)},attributes:function(){if(this.nodeType!=U.Element)throw R.thrown("Bad node type, expected Element but found "+ +(null==this.nodeType?"null":Ea.toString(this.nodeType)));return new mj(this.attributeMap.h)},elements:function(){if(this.nodeType!=U.Document&&this.nodeType!=U.Element)throw R.thrown("Bad node type, expected Element or Document but found "+(null==this.nodeType?"null":Ea.toString(this.nodeType)));for(var a=[],b=0,c=this.children;b<c.length;){var d=c[b];++b;d.nodeType==U.Element&&a.push(d)}return new ue(a)},elementsNamed:function(a){if(this.nodeType!=U.Document&&this.nodeType!=U.Element)throw R.thrown("Bad node type, expected Element or Document but found "+ +(null==this.nodeType?"null":Ea.toString(this.nodeType)));for(var b=[],c=0,d=this.children;c<d.length;){var e=d[c];++c;if(e.nodeType==U.Element){if(e.nodeType!=U.Element)throw R.thrown("Bad node type, expected Element but found "+(null==e.nodeType?"null":Ea.toString(e.nodeType)));var g=e.nodeName==a}else g=!1;g&&b.push(e)}return new ue(b)},firstElement:function(){if(this.nodeType!=U.Document&&this.nodeType!=U.Element)throw R.thrown("Bad node type, expected Element or Document but found "+(null==this.nodeType? +"null":Ea.toString(this.nodeType)));for(var a=0,b=this.children;a<b.length;){var c=b[a];++a;if(c.nodeType==U.Element)return c}return null},addChild:function(a){if(this.nodeType!=U.Document&&this.nodeType!=U.Element)throw R.thrown("Bad node type, expected Element or Document but found "+(null==this.nodeType?"null":Ea.toString(this.nodeType)));null!=a.parent&&a.parent.removeChild(a);this.children.push(a);a.parent=this},removeChild:function(a){if(this.nodeType!=U.Document&&this.nodeType!=U.Element)throw R.thrown("Bad node type, expected Element or Document but found "+ +(null==this.nodeType?"null":Ea.toString(this.nodeType)));return F.remove(this.children,a)?(a.parent=null,!0):!1},toString:function(){return nj.print(this)},__class__:U};var ka=function(){this.lowerBound=new z;this.upperBound=new z};k["box2D.collision.B2AABB"]=ka;ka.__name__="box2D.collision.B2AABB";ka.prototype={isValid:function(){var a=this.upperBound.y-this.lowerBound.y;return 0<=this.upperBound.x-this.lowerBound.x&&0<=a&&this.lowerBound.isValid()&&this.upperBound.isValid()},getCenter:function(){return new z((this.lowerBound.x+ +this.upperBound.x)/2,(this.lowerBound.y+this.upperBound.y)/2)},getExtents:function(){return new z((this.upperBound.x-this.lowerBound.x)/2,(this.upperBound.y-this.lowerBound.y)/2)},contains:function(a){var b;return b=(b=(b=(b=this.lowerBound.x<=a.lowerBound.x)&&this.lowerBound.y<=a.lowerBound.y)&&a.upperBound.x<=this.upperBound.x)&&a.upperBound.y<=this.upperBound.y},rayCast:function(a,b){var c=-Number.MAX_VALUE,d=Number.MAX_VALUE,e=b.p1.x,g=b.p1.y,x=b.p2.x-b.p1.x;b=b.p2.y-b.p1.y;var f=Math.abs(b), +t=a.normal;if(Math.abs(x)<Number.MIN_VALUE){if(e<this.lowerBound.x||this.upperBound.x<e)return!1}else{var m=1/x;x=(this.lowerBound.x-e)*m;e=(this.upperBound.x-e)*m;m=-1;x>e&&(m=x,x=e,e=m,m=1);x>c&&(t.x=m,t.y=0,c=x);d=Math.min(d,e);if(c>d)return!1}if(f<Number.MIN_VALUE){if(g<this.lowerBound.y||this.upperBound.y<g)return!1}else if(m=1/b,x=(this.lowerBound.y-g)*m,e=(this.upperBound.y-g)*m,m=-1,x>e&&(m=x,x=e,e=m,m=1),x>c&&(t.y=m,t.x=0,c=x),d=Math.min(d,e),c>d)return!1;a.fraction=c;return!0},testOverlap:function(a){var b= +a.lowerBound.y-this.upperBound.y,c=this.lowerBound.y-a.upperBound.y;return 0<a.lowerBound.x-this.upperBound.x||0<b||0<this.lowerBound.x-a.upperBound.x||0<c?!1:!0},combine:function(a,b){this.lowerBound.x=Math.min(a.lowerBound.x,b.lowerBound.x);this.lowerBound.y=Math.min(a.lowerBound.y,b.lowerBound.y);this.upperBound.x=Math.max(a.upperBound.x,b.upperBound.x);this.upperBound.y=Math.max(a.upperBound.y,b.upperBound.y)},reset:function(){this.lowerBound.x=0;this.lowerBound.y=0;this.upperBound.x=0;this.upperBound.y= +0},setTo:function(a){this.lowerBound.x=a.lowerBound.x;this.lowerBound.y=a.lowerBound.y;this.upperBound.x=a.upperBound.x;this.upperBound.y=a.upperBound.y},lowerBound:null,upperBound:null,__class__:ka};var z=function(a,b){null==b&&(b=0);null==a&&(a=0);this.x=a;this.y=b};k["box2D.common.math.B2Vec2"]=z;z.__name__="box2D.common.math.B2Vec2";z.make=function(a,b){return new z(a,b)};z.freePool=function(){z.pooli=0};z.getFromPool=function(){500<z.pooli&&(z.pooli=0);if(z.pooli<z.pool.length){var a=z.pool[z.pooli]; +a.x=0;a.y=0}else a=new z,z.pool.push(a);z.pooli++;return a};z.prototype={setZero:function(){this.y=this.x=0},set:function(a,b){null==b&&(b=0);null==a&&(a=0);this.x=a;this.y=b},setV:function(a){this.x=a.x;this.y=a.y},getNegative:function(){return new z(-this.x,-this.y)},getNegativePooled:function(){var a=z.getFromPool();a.x=-this.x;a.y=-this.y;return a},negativeSelf:function(){this.x=-this.x;this.y=-this.y},copy:function(a){null==a&&(a=!1);if(a){a=z.getFromPool();var b=this.x,c=this.y;null==c&&(c= +0);null==b&&(b=0);a.x=b;a.y=c}else a=new z(this.x,this.y);return a},add:function(a){this.x+=a.x;this.y+=a.y},subtract:function(a){this.x-=a.x;this.y-=a.y},multiply:function(a){this.x*=a;this.y*=a},mulM:function(a){var b=this.x;this.x=a.col1.x*b+a.col2.x*this.y;this.y=a.col1.y*b+a.col2.y*this.y},mulTM:function(a){var b=P.dot(this,a.col1);this.y=P.dot(this,a.col2);this.x=b},crossVF:function(a){var b=this.x;this.x=a*this.y;this.y=-a*b},crossFV:function(a){var b=this.x;this.x=-a*this.y;this.y=a*b},minV:function(a){this.x= +this.x<a.x?this.x:a.x;this.y=this.y<a.y?this.y:a.y},maxV:function(a){this.x=this.x>a.x?this.x:a.x;this.y=this.y>a.y?this.y:a.y},abs:function(){0>this.x&&(this.x=-this.x);0>this.y&&(this.y=-this.y)},length:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},lengthSquared:function(){return this.x*this.x+this.y*this.y},normalize:function(){var a=Math.sqrt(this.x*this.x+this.y*this.y);if(a<Number.MIN_VALUE)return 0;var b=1/a;this.x*=b;this.y*=b;return a},perpDot:function(a){return-this.y*a.x+this.x* +a.y},winding:function(a,b){var c=a.copy();c.subtract(this);b=b.copy();b.subtract(a);return c.perpDot(b)},isValid:function(){return P.isValid(this.x)?P.isValid(this.y):!1},x:null,y:null,toString:function(){return"("+this.x+", "+this.y+")"},reset:function(){this.y=this.x=0},__class__:z};var ve=function(){this.v=new z;this.id=new qb};k["box2D.collision.ClipVertex"]=ve;ve.__name__="box2D.collision.ClipVertex";ve.prototype={set:function(a){var b=this.v,c=a.v;b.x=c.x;b.y=c.y;this.id.set(a.id)},v:null,id:null, +__class__:ve};var qb=function(){this.features=new pd;this.features._m_id=this};k["box2D.collision.B2ContactID"]=qb;qb.__name__="box2D.collision.B2ContactID";qb.prototype={set:function(a){this.set_key(a._key)},copy:function(){var a=new qb;a.set_key(this.get_key());return a},get_key:function(){return this._key},set_key:function(a){this._key=a;this.features._referenceEdge=this._key&255;this.features._incidentEdge=(this._key&65280)>>8&255;this.features._incidentVertex=(this._key&16711680)>>16&255;this.features._flip= +(this._key&-16777216)>>24&255;return this._key},features:null,_key:null,indexA:null,indexB:null,typeA:null,typeB:null,__class__:qb,__properties__:{set_key:"set_key",get_key:"get_key"}};var pd=function(){};k["box2D.collision.Features"]=pd;pd.__name__="box2D.collision.Features";pd.prototype={get_referenceEdge:function(){return this._referenceEdge},set_referenceEdge:function(a){this._referenceEdge=a;this._m_id._key=this._m_id._key&-256|this._referenceEdge&255;return a},_referenceEdge:null,get_incidentEdge:function(){return this._incidentEdge}, +set_incidentEdge:function(a){this._incidentEdge=a;this._m_id._key=this._m_id._key&-65281|this._incidentEdge<<8&65280;return a},_incidentEdge:null,get_incidentVertex:function(){return this._incidentVertex},set_incidentVertex:function(a){this._incidentVertex=a;this._m_id._key=this._m_id._key&-16711681|this._incidentVertex<<16&16711680;return a},_incidentVertex:null,get_flip:function(){return this._flip},set_flip:function(a){this._flip=a;this._m_id._key=this._m_id._key&16777215|this._flip<<24&-16777216; +return a},_flip:null,_m_id:null,__class__:pd,__properties__:{set_flip:"set_flip",get_flip:"get_flip",set_incidentVertex:"set_incidentVertex",get_incidentVertex:"get_incidentVertex",set_incidentEdge:"set_incidentEdge",get_incidentEdge:"get_incidentEdge",set_referenceEdge:"set_referenceEdge",get_referenceEdge:"get_referenceEdge"}};var Ma=function(){};k["box2D.collision.B2Collision"]=Ma;Ma.__name__="box2D.collision.B2Collision";Ma.clipSegmentToLine=function(a,b,c,d){var e=0,g=b[0],x=g.v;g=b[1];var f= +g.v,t=c.x*x.x+c.y*x.y-d;g=c.x*f.x+c.y*f.y-d;0>=t&&a[e++].set(b[0]);0>=g&&a[e++].set(b[1]);0>t*g&&(c=t/(t-g),g=a[e],g=g.v,g.x=x.x+c*(f.x-x.x),g.y=x.y+c*(f.y-x.y),g=a[e],g.id=(0<t?b[0]:b[1]).id,++e);return e};Ma.edgeSeparation=function(a,b,c,d,e){var g=a.m_vertices,x=d.m_vertexCount;d=d.m_vertices;var f=b.R,t=a.m_normals[c];a=f.col1.x*t.x+f.col2.x*t.y;var m=f.col1.y*t.x+f.col2.y*t.y;f=e.R;var h=f.col1.x*a+f.col1.y*m;f=f.col2.x*a+f.col2.y*m;for(var p=0,n=Number.MAX_VALUE,k=0;k<x;){var r=k++;t=d[r];t= +t.x*h+t.y*f;t<n&&(n=t,p=r)}t=g[c];f=b.R;c=b.position.x+(f.col1.x*t.x+f.col2.x*t.y);b=b.position.y+(f.col1.y*t.x+f.col2.y*t.y);t=d[p];f=e.R;return(e.position.x+(f.col1.x*t.x+f.col2.x*t.y)-c)*a+(e.position.y+(f.col1.y*t.x+f.col2.y*t.y)-b)*m};Ma.findMaxSeparation=function(a,b,c,d,e){var g=b.m_vertexCount,x=b.m_normals,f=e.R,t=d.m_centroid,m=e.position.x+(f.col1.x*t.x+f.col2.x*t.y),h=e.position.y+(f.col1.y*t.x+f.col2.y*t.y);f=c.R;t=b.m_centroid;m-=c.position.x+(f.col1.x*t.x+f.col2.x*t.y);h-=c.position.y+ +(f.col1.y*t.x+f.col2.y*t.y);f=m*c.R.col1.x+h*c.R.col1.y;h=m*c.R.col2.x+h*c.R.col2.y;m=0;for(var p=-Number.MAX_VALUE,n=0;n<g;){var k=n++;t=x[k];t=t.x*f+t.y*h;t>p&&(p=t,m=k)}x=Ma.edgeSeparation(b,c,m,d,e);p=0<=m-1?m-1:g-1;f=Ma.edgeSeparation(b,c,p,d,e);n=m+1<g?m+1:0;h=Ma.edgeSeparation(b,c,n,d,e);if(f>x&&f>h)t=-1;else if(h>x)t=1,p=n,f=h;else return a[0]=m,x;for(;;)if(m=-1==t?0<=p-1?p-1:g-1:p+1<g?p+1:0,x=Ma.edgeSeparation(b,c,m,d,e),x>f)p=m,f=x;else break;a[0]=p;return f};Ma.findIncidentEdge=function(a, +b,c,d,e,g){var x=e.m_vertexCount,f=e.m_vertices;e=e.m_normals;var t=c.R;b=b.m_normals[d];c=t.col1.x*b.x+t.col2.x*b.y;var m=t.col1.y*b.x+t.col2.y*b.y;t=g.R;b=t.col1.x*c+t.col1.y*m;m=t.col2.x*c+t.col2.y*m;c=b;t=0;for(var h=Number.MAX_VALUE,p=0;p<x;){var n=p++;b=e[n];b=c*b.x+m*b.y;b<h&&(h=b,t=n)}e=t;x=e+1<x?e+1:0;c=a[0];b=f[e];t=g.R;c.v.x=g.position.x+(t.col1.x*b.x+t.col2.x*b.y);c.v.y=g.position.y+(t.col1.y*b.x+t.col2.y*b.y);c.id.features.set_referenceEdge(d);c.id.features.set_incidentEdge(e);c.id.features.set_incidentVertex(0); +c=a[1];b=f[x];t=g.R;c.v.x=g.position.x+(t.col1.x*b.x+t.col2.x*b.y);c.v.y=g.position.y+(t.col1.y*b.x+t.col2.y*b.y);c.id.features.set_referenceEdge(d);c.id.features.set_incidentEdge(x);c.id.features.set_incidentVertex(1)};Ma.makeClipPointVector=function(){var a=[];a[0]=new ve;a[1]=new ve;return a};Ma.collidePolygons=function(a,b,c,d,e){a.m_pointCount=0;var g=b.m_radius+d.m_radius;Ma.s_edgeAO[0]=0;var x=Ma.findMaxSeparation(Ma.s_edgeAO,b,c,d,e);var f=Ma.s_edgeAO[0];if(!(x>g)){Ma.s_edgeBO[0]=0;var t= +Ma.findMaxSeparation(Ma.s_edgeBO,d,e,b,c);var m=Ma.s_edgeBO[0];if(!(t>g)){t>.98*x+.001?(x=d,d=b,b=e,e=m,a.m_type=4,f=1):(x=b,b=c,c=e,e=f,a.m_type=2,f=0);m=Ma.s_incidentEdge;Ma.findIncidentEdge(m,x,b,e,d,c);t=x.m_vertices;d=t[e];var h=e+1<x.m_vertexCount?t[e+1]:t[0];x=Ma.s_localTangent;e=h.x-d.x;var p=h.y-d.y;null==p&&(p=0);null==e&&(e=0);x.x=e;x.y=p;x.normalize();t=Ma.s_localNormal;t.x=x.y;t.y=-x.x;var n=Ma.s_planePoint;e=.5*(d.x+h.x);p=.5*(d.y+h.y);null==p&&(p=0);null==e&&(e=0);n.x=e;n.y=p;p=Ma.s_tangent; +e=b.R;p.x=e.col1.x*x.x+e.col2.x*x.y;p.y=e.col1.y*x.x+e.col2.y*x.y;var k=Ma.s_tangent2;k.x=-p.x;k.y=-p.y;x=Ma.s_normal;x.x=p.y;x.y=-p.x;var r=Ma.s_v11,rb=Ma.s_v12;r.x=b.position.x+(e.col1.x*d.x+e.col2.x*d.y);r.y=b.position.y+(e.col1.y*d.x+e.col2.y*d.y);rb.x=b.position.x+(e.col1.x*h.x+e.col2.x*h.y);rb.y=b.position.y+(e.col1.y*h.x+e.col2.y*h.y);b=x.x*r.x+x.y*r.y;e=p.x*rb.x+p.y*rb.y+g;h=Ma.s_clipPoints1;d=Ma.s_clipPoints2;m=Ma.clipSegmentToLine(h,m,k,-p.x*r.x-p.y*r.y+g);if(!(2>m||(m=Ma.clipSegmentToLine(d, +h,p,e),2>m))){m=a.m_localPlaneNormal;m.x=t.x;m.y=t.y;m=a.m_localPoint;m.x=n.x;m.y=n.y;t=m=0;for(n=aa.b2_maxManifoldPoints;t<n;)e=t++,p=d[e],x.x*p.v.x+x.y*p.v.y-b<=g&&(k=a.m_points[m],e=c.R,r=p.v.x-c.position.x,h=p.v.y-c.position.y,k.m_localPoint.x=r*e.col1.x+h*e.col1.y,k.m_localPoint.y=r*e.col2.x+h*e.col2.y,k.m_id.set(p.id),k.m_id.features.set_flip(f),++m);a.m_pointCount=m}}}};Ma.collideCircles=function(a,b,c,d,e){a.m_pointCount=0;var g=c.R,x=b.m_p,f=c.position.x+(g.col1.x*x.x+g.col2.x*x.y);c=c.position.y+ +(g.col1.y*x.x+g.col2.y*x.y);g=e.R;x=d.m_p;f=e.position.x+(g.col1.x*x.x+g.col2.x*x.y)-f;e=e.position.y+(g.col1.y*x.x+g.col2.y*x.y)-c;g=b.m_radius+d.m_radius;f*f+e*e>g*g||(a.m_type=1,e=a.m_localPoint,b=b.m_p,e.x=b.x,e.y=b.y,e=a.m_localPlaneNormal,e.x=0,e.y=0,a.m_pointCount=1,e=a.m_points[0].m_localPoint,b=d.m_p,e.x=b.x,e.y=b.y,a.m_points[0].m_id.set_key(0))};Ma.collidePolygonAndCircle=function(a,b,c,d,e){a.m_pointCount=0;var g=e.R,x=d.m_p,f=e.position.x+(g.col1.x*x.x+g.col2.x*x.y)-c.position.x,t=e.position.y+ +(g.col1.y*x.x+g.col2.y*x.y)-c.position.y;g=c.R;c=f*g.col1.x+t*g.col1.y;g=f*g.col2.x+t*g.col2.y;var m=0,h=-Number.MAX_VALUE;e=b.m_radius+d.m_radius;var p=b.m_vertexCount,n=b.m_vertices;b=b.m_normals;for(var k=0;k<p;){var r=k++;x=n[r];f=c-x.x;t=g-x.y;x=b[r];x=x.x*f+x.y*t;if(x>e)return;x>h&&(h=x,m=r)}f=m;x=n[f];p=n[f+1<p?f+1:0];if(h<Number.MIN_VALUE)a.m_pointCount=1,a.m_type=2,c=a.m_localPlaneNormal,g=b[m],c.x=g.x,c.y=g.y,a.m_localPoint.x=.5*(x.x+p.x),a.m_localPoint.y=.5*(x.y+p.y);else if(h=(c-p.x)* +(x.x-p.x)+(g-p.y)*(x.y-p.y),0>=(c-x.x)*(p.x-x.x)+(g-x.y)*(p.y-x.y)){if((c-x.x)*(c-x.x)+(g-x.y)*(g-x.y)>e*e)return;a.m_pointCount=1;a.m_type=2;a.m_localPlaneNormal.x=c-x.x;a.m_localPlaneNormal.y=g-x.y;a.m_localPlaneNormal.normalize();c=a.m_localPoint;c.x=x.x;c.y=x.y}else if(0>=h){if((c-p.x)*(c-p.x)+(g-p.y)*(g-p.y)>e*e)return;a.m_pointCount=1;a.m_type=2;a.m_localPlaneNormal.x=c-p.x;a.m_localPlaneNormal.y=g-p.y;a.m_localPlaneNormal.normalize();c=a.m_localPoint;c.x=p.x;c.y=p.y}else{m=.5*(x.x+p.x);x=.5* +(x.y+p.y);h=(c-m)*b[f].x+(g-x)*b[f].y;if(h>e)return;a.m_pointCount=1;a.m_type=2;a.m_localPlaneNormal.x=b[f].x;a.m_localPlaneNormal.y=b[f].y;a.m_localPlaneNormal.normalize();c=a.m_localPoint;g=m;e=x;null==e&&(e=0);null==g&&(g=0);c.x=g;c.y=e}c=a.m_points[0].m_localPoint;g=d.m_p;c.x=g.x;c.y=g.y;a.m_points[0].m_id.set_key(0)};Ma.testOverlap=function(a,b){var c=b.lowerBound,d=a.upperBound,e=c.x-d.x,g=c.y-d.y;c=a.lowerBound;d=b.upperBound;a=c.y-d.y;return 0<e||0<g||0<c.x-d.x||0<a?!1:!0};var B=function(){this.position= +new z;this.velocity=new z;this.normal=new z;this.id=new qb};k["box2D.collision.B2ContactPoint"]=B;B.__name__="box2D.collision.B2ContactPoint";B.prototype={shape1:null,shape2:null,position:null,velocity:null,normal:null,separation:null,friction:null,restitution:null,id:null,__class__:B};var pf=function(){this.m_v1=new Ha;this.m_v2=new Ha;this.m_v3=new Ha;this.m_vertices=[];this.m_vertices[0]=this.m_v1;this.m_vertices[1]=this.m_v2;this.m_vertices[2]=this.m_v3};k["box2D.collision.B2Simplex"]=pf;pf.__name__= +"box2D.collision.B2Simplex";pf.prototype={readCache:function(a,b,c,d,e){aa.b2Assert(0<=a.count&&3>=a.count);this.m_count=a.count;var g=this.m_vertices;if(a.useCache){for(var x=0,f=this.m_count;x<f;){var t=x++;var m=g[t];m.indexA=a.indexA[t];m.indexB=a.indexB[t];t=b.getVertex(m.indexA);var h=d.getVertex(m.indexB);m.wA=P.mulX(c,t,!0);m.wB=P.mulX(e,h,!0);m.w=P.subtractVVPooled(m.wB,m.wA);m.a=0}1<this.m_count&&(a=a.metric,m=this.getMetric(),m<.5*a||2*a<m||m<Number.MIN_VALUE)&&(this.m_count=0)}0==this.m_count&& +(m=g[0],m.indexA=0,m.indexB=0,t=b.getVertex(0),h=d.getVertex(0),m.wA=P.mulX(c,t,!0),m.wB=P.mulX(e,h,!0),m.w=P.subtractVVPooled(m.wB,m.wA),this.m_count=1)},writeCache:function(a){if(a.useCache){a.metric=this.getMetric();a.count=this.m_count;for(var b=this.m_vertices,c=0,d=this.m_count;c<d;){var e=c++;a.indexA[e]=b[e].indexA;a.indexB[e]=b[e].indexB}}},getSearchDirection:function(){switch(this.m_count){case 1:return this.m_v1.w.getNegativePooled();case 2:var a=P.subtractVVPooled(this.m_v2.w,this.m_v1.w); +return 0<P.crossVV(a,this.m_v1.w.getNegativePooled())?P.crossFV(1,a,!0):P.crossVF(a,1,!0);default:return aa.b2Assert(!1),z.getFromPool()}},getClosestPoint:function(){switch(this.m_count){case 0:return aa.b2Assert(!1),z.getFromPool();case 1:return this.m_v1.w;case 2:var a=z.getFromPool();a.x=this.m_v1.a*this.m_v1.w.x+this.m_v2.a*this.m_v2.w.x;a.y=this.m_v1.a*this.m_v1.w.y+this.m_v2.a*this.m_v2.w.y;return a;default:return aa.b2Assert(!1),z.getFromPool()}},getWitnessPoints:function(a,b){switch(this.m_count){case 0:aa.b2Assert(!1); +break;case 1:var c=this.m_v1.wA;a.x=c.x;a.y=c.y;c=this.m_v1.wB;b.x=c.x;b.y=c.y;break;case 2:a.x=this.m_v1.a*this.m_v1.wA.x+this.m_v2.a*this.m_v2.wA.x;a.y=this.m_v1.a*this.m_v1.wA.y+this.m_v2.a*this.m_v2.wA.y;b.x=this.m_v1.a*this.m_v1.wB.x+this.m_v2.a*this.m_v2.wB.x;b.y=this.m_v1.a*this.m_v1.wB.y+this.m_v2.a*this.m_v2.wB.y;break;case 3:b.x=a.x=this.m_v1.a*this.m_v1.wA.x+this.m_v2.a*this.m_v2.wA.x+this.m_v3.a*this.m_v3.wA.x;b.y=a.y=this.m_v1.a*this.m_v1.wA.y+this.m_v2.a*this.m_v2.wA.y+this.m_v3.a*this.m_v3.wA.y; +break;default:aa.b2Assert(!1)}},getMetric:function(){switch(this.m_count){case 0:return aa.b2Assert(!1),0;case 1:return 0;case 2:return P.subtractVVPooled(this.m_v1.w,this.m_v2.w).length();case 3:return P.crossVV(P.subtractVVPooled(this.m_v2.w,this.m_v1.w),P.subtractVVPooled(this.m_v3.w,this.m_v1.w));default:return aa.b2Assert(!1),0}},solve2:function(){var a=this.m_v1.w,b=this.m_v2.w,c=P.subtractVVPooled(b,a);a=-(a.x*c.x+a.y*c.y);0>=a?this.m_count=this.m_v1.a=1:(b=b.x*c.x+b.y*c.y,0>=b?(this.m_count= +this.m_v2.a=1,this.m_v1.set(this.m_v2)):(c=1/(b+a),this.m_v1.a=b*c,this.m_v2.a=a*c,this.m_count=2))},solve3:function(){var a=this.m_v1.w,b=this.m_v2.w,c=this.m_v3.w,d=P.subtractVVPooled(b,a),e=P.dot(a,d),g=P.dot(b,d);e=-e;var x=P.subtractVVPooled(c,a),f=P.dot(a,x),t=P.dot(c,x);f=-f;var m=P.subtractVVPooled(c,b),h=P.dot(b,m);m=P.dot(c,m);h=-h;x=P.crossVV(d,x);d=x*P.crossVV(b,c);c=x*P.crossVV(c,a);a=x*P.crossVV(a,b);0>=e&&0>=f?this.m_count=this.m_v1.a=1:0<g&&0<e&&0>=a?(t=1/(g+e),this.m_v1.a=g*t,this.m_v2.a= +e*t,this.m_count=2):0<t&&0<f&&0>=c?(g=1/(t+f),this.m_v1.a=t*g,this.m_v3.a=f*g,this.m_count=2,this.m_v2.set(this.m_v3)):0>=g&&0>=h?(this.m_count=this.m_v2.a=1,this.m_v1.set(this.m_v2)):0>=t&&0>=m?(this.m_count=this.m_v3.a=1,this.m_v1.set(this.m_v3)):0<m&&0<h&&0>=d?(g=1/(m+h),this.m_v2.a=m*g,this.m_v3.a=h*g,this.m_count=2,this.m_v1.set(this.m_v3)):(g=1/(d+c+a),this.m_v1.a=d*g,this.m_v2.a=c*g,this.m_v3.a=a*g,this.m_count=3)},m_v1:null,m_v2:null,m_v3:null,m_vertices:null,m_count:null,__class__:pf};var Ha= +function(){};k["box2D.collision.B2SimplexVertex"]=Ha;Ha.__name__="box2D.collision.B2SimplexVertex";Ha.prototype={set:function(a){var b=this.wA,c=a.wA;b.x=c.x;b.y=c.y;b=this.wB;c=a.wB;b.x=c.x;b.y=c.y;b=this.w;c=a.w;b.x=c.x;b.y=c.y;this.a=a.a;this.indexA=a.indexA;this.indexB=a.indexB},wA:null,wB:null,w:null,a:null,indexA:null,indexB:null,__class__:Ha};var C=function(){};k["box2D.collision.B2Distance"]=C;C.__name__="box2D.collision.B2Distance";C.distance=function(a,b,c){++C.b2_gjkCalls;var d=c.proxyA, +e=c.proxyB,g=c.transformA,x=c.transformB,f=C.s_simplex;f.readCache(b,d,g,e,x);var t=f.m_vertices,m=C.s_saveA,h=C.s_saveB;f.getClosestPoint().lengthSquared();for(var p,n=0;20>n;){var k=f.m_count;for(var r=0,rb=k;r<rb;)p=r++,m[p]=t[p].indexA,h[p]=t[p].indexB;switch(f.m_count){case 1:break;case 2:f.solve2();break;case 3:f.solve3();break;default:aa.b2Assert(!1)}if(3==f.m_count)break;p=f.getClosestPoint();p.lengthSquared();r=f.getSearchDirection();if(r.lengthSquared()<Number.MIN_VALUE*Number.MIN_VALUE)break; +p=t[f.m_count];p.indexA=d.getSupport(P.mulTMV(g.R,r.getNegativePooled(),!0))|0;p.wA=P.mulX(g,d.getVertex(p.indexA),!0);p.indexB=e.getSupport(P.mulTMV(x.R,r,!0))|0;p.wB=P.mulX(x,e.getVertex(p.indexB),!0);p.w=P.subtractVVPooled(p.wB,p.wA);++n;++C.b2_gjkIters;r=!1;for(rb=0;rb<k;){var q=rb++;if(p.indexA==m[q]&&p.indexB==h[q]){r=!0;break}}if(r)break;++f.m_count}C.b2_gjkMaxIters=P.max(C.b2_gjkMaxIters,n)|0;f.getWitnessPoints(a.pointA,a.pointB);a.distance=P.subtractVVPooled(a.pointA,a.pointB).length();a.iterations= +n;f.writeCache(b);c.useRadii&&(b=d.m_radius,e=e.m_radius,a.distance>b+e&&a.distance>Number.MIN_VALUE?(a.distance-=b+e,c=P.subtractVVPooled(a.pointB,a.pointA),c.normalize(),a.pointA.x+=b*c.x,a.pointA.y+=b*c.y,a.pointB.x-=e*c.x,a.pointB.y-=e*c.y):(p=z.getFromPool(),p.x=.5*(a.pointA.x+a.pointB.x),p.y=.5*(a.pointA.y+a.pointB.y),a.pointA.x=a.pointB.x=p.x,a.pointA.y=a.pointB.y=p.y,a.distance=0))};var Hh=function(){};k["box2D.collision.B2DistanceInput"]=Hh;Hh.__name__="box2D.collision.B2DistanceInput";Hh.prototype= +{proxyA:null,proxyB:null,transformA:null,transformB:null,useRadii:null,__class__:Hh};var ne=function(){this.pointA=new z;this.pointB=new z};k["box2D.collision.B2DistanceOutput"]=ne;ne.__name__="box2D.collision.B2DistanceOutput";ne.prototype={pointA:null,pointB:null,distance:null,iterations:null,__class__:ne};var df=function(){this.m_internalVertices=[]};k["box2D.collision.B2DistanceProxy"]=df;df.__name__="box2D.collision.B2DistanceProxy";df.prototype={set:function(a){switch(a.getType()){case 0:a= +O.__cast(a,Hc);for(this.m_vertices=this.m_internalVertices;1<this.m_vertices.length;)this.m_vertices.pop();this.m_vertices[0]=a.m_p;this.m_count=1;this.m_radius=a.m_radius;break;case 1:a=O.__cast(a,Bb);this.m_vertices=a.m_vertices;this.m_count=a.m_vertexCount;this.m_radius=a.m_radius;break;case 2:a=O.__cast(a,qg);for(this.m_vertices=this.m_internalVertices;2<this.m_vertices.length;)this.m_vertices.pop();this.m_vertices[0]=a.m_v1;this.m_vertices[1]=a.m_v2;this.m_count=2;this.m_radius=a.m_radius;break; +default:aa.b2Assert(!1)}},getSupport:function(a){for(var b=0,c=this.m_vertices[0].x*a.x+this.m_vertices[0].y*a.y,d=1,e=this.m_count;d<e;){var g=d++,x=this.m_vertices[g].x*a.x+this.m_vertices[g].y*a.y;x>c&&(b=g,c=x)}return b},getSupportVertex:function(a){for(var b=0,c=this.m_vertices[0].x*a.x+this.m_vertices[0].y*a.y,d=1,e=this.m_count;d<e;){var g=d++,x=this.m_vertices[g].x*a.x+this.m_vertices[g].y*a.y;x>c&&(b=g,c=x)}return this.m_vertices[b]},getVertexCount:function(){return this.m_count},getVertex:function(a){aa.b2Assert(0<= +a&&a<this.m_count);return this.m_vertices[a]},m_internalVertices:null,m_vertices:null,m_count:null,m_radius:null,__class__:df};var rg=function(){this.oldAABB=new ka;this.stackQueue=[];this.stackQueuePos=0;this.m_freeList=this.m_root=null;this.m_insertionCount=this.m_path=0};k["box2D.collision.B2DynamicTree"]=rg;rg.__name__="box2D.collision.B2DynamicTree";rg.prototype={createProxy:function(a,b){var c=this.allocateNode(),d=aa.b2_aabbExtension,e=aa.b2_aabbExtension;c.aabb.lowerBound.x=a.lowerBound.x- +d;c.aabb.lowerBound.y=a.lowerBound.y-e;c.aabb.upperBound.x=a.upperBound.x+d;c.aabb.upperBound.y=a.upperBound.y+e;c.userData=b;this.insertLeaf(c);return c},destroyProxy:function(a){this.removeLeaf(a);this.freeNode(a)},moveProxy:function(a,b,c){aa.b2Assert(a.isLeaf());if(a.aabb.contains(b))return!1;this.removeLeaf(a);var d=aa.b2_aabbExtension+aa.b2_aabbMultiplier*(0<c.x?c.x:-c.x);c=aa.b2_aabbExtension+aa.b2_aabbMultiplier*(0<c.y?c.y:-c.y);a.aabb.lowerBound.x=b.lowerBound.x-d;a.aabb.lowerBound.y=b.lowerBound.y- +c;a.aabb.upperBound.x=b.upperBound.x+d;a.aabb.upperBound.y=b.upperBound.y+c;this.insertLeaf(a);return!0},rebalance:function(a){if(null!=this.m_root)for(var b=0;b<a;){b++;for(var c=this.m_root,d=0;0==c.isLeaf();)c=0!=(this.m_path>>d&1)?c.child2:c.child1,d=d+1&31;++this.m_path;this.removeLeaf(c);this.insertLeaf(c)}},getFatAABB:function(a){return a.aabb},getUserData:function(a){return a.userData},stackQueuePos:null,stackQueue:null,query:function(a,b){if(null!=this.m_root){null==this.stackQueue[this.stackQueuePos]&& +(this.stackQueue[this.stackQueuePos]=[]);var c=this.stackQueue[this.stackQueuePos++],d=0;for(c[d++]=this.m_root;0<d;){var e=c[--d];if(e.aabb.testOverlap(b))if(e.isLeaf()){if(!a.queryCallback(e))break}else c[d++]=e.child1,c[d++]=e.child2}for(d=c.length;0<d--;)c.pop();--this.stackQueuePos}},rayCast:function(a,b){if(null!=this.m_root){var c=b.p1,d=b.p2,e=P.subtractVVPooled(c,d);e.normalize();e=P.crossFV(1,e);var g=P.absV(e),x=b.maxFraction,f=new ka;var t=c.x+x*(d.x-c.x);x=c.y+x*(d.y-c.y);f.lowerBound.x= +Math.min(c.x,t);f.lowerBound.y=Math.min(c.y,x);f.upperBound.x=Math.max(c.x,t);f.upperBound.y=Math.max(c.y,x);var m=[],h=0;for(m[h++]=this.m_root;0<h;)if(t=m[--h],0!=t.aabb.testOverlap(f)){x=t.aabb.getCenter();var p=t.aabb.getExtents();if(!(0<Math.abs(e.x*(c.x-x.x)+e.y*(c.y-x.y))-g.x*p.x-g.y*p.y))if(t.isLeaf()){x=new wk;x.p1=b.p1;x.p2=b.p2;x.maxFraction=b.maxFraction;x=a(x,t);if(0==x)break;t=c.x+x*(d.x-c.x);x=c.y+x*(d.y-c.y);f.lowerBound.x=Math.min(c.x,t);f.lowerBound.y=Math.min(c.y,x);f.upperBound.x= +Math.max(c.x,t);f.upperBound.y=Math.max(c.y,x)}else m[h++]=t.child1,m[h++]=t.child2}}},allocateNode:function(){if(null!=this.m_freeList){var a=this.m_freeList;this.m_freeList=a.parent;a.parent=null;a.child1=null;a.child2=null;return a}return new oj},freeNode:function(a){a.parent=this.m_freeList;this.m_freeList=a},insertLeaf:function(a){++this.m_insertionCount;if(null==this.m_root)this.m_root=a,this.m_root.parent=null;else{var b=this.m_root;if(0==b.isLeaf())for(var c=(a.aabb.lowerBound.x+a.aabb.upperBound.x)/ +2,d=(a.aabb.lowerBound.y+a.aabb.upperBound.y)/2;;){var e=b.child1;b=b.child2;b=Math.abs((e.aabb.lowerBound.x+e.aabb.upperBound.x)/2-c)+Math.abs((e.aabb.lowerBound.y+e.aabb.upperBound.y)/2-d)<Math.abs((b.aabb.lowerBound.x+b.aabb.upperBound.x)/2-c)+Math.abs((b.aabb.lowerBound.y+b.aabb.upperBound.y)/2-d)?e:b;if(0!=b.isLeaf())break}c=b.parent;d=this.allocateNode();d.parent=c;d.userData=null;d.aabb.combine(a.aabb,b.aabb);if(null!=c)for(b.parent.child1==b?c.child1=d:c.child2=d,d.child1=b,d.child2=a,b.parent= +d,a.parent=d;!c.aabb.contains(d.aabb)&&(c.aabb.combine(c.child1.aabb,c.child2.aabb),d=c,c=c.parent,null!=c););else d.child1=b,d.child2=a,b.parent=d,this.m_root=a.parent=d}},oldAABB:null,removeLeaf:function(a){if(a==this.m_root)this.m_root=null;else{var b=a.parent,c=b.parent;a=b.child1==a?b.child2:b.child1;if(null!=c)for(c.child1==b?c.child1=a:c.child2=a,a.parent=c,this.freeNode(b);null!=c;){this.oldAABB.setTo(c.aabb);c.aabb.combine(c.child1.aabb,c.child2.aabb);if(this.oldAABB.contains(c.aabb))break; +c=c.parent}else this.m_root=a,a.parent=null,this.freeNode(b)}},m_root:null,m_freeList:null,m_path:null,m_insertionCount:null,__class__:rg};var Ih=function(){};k["box2D.collision.QueryCallback"]=Ih;Ih.__name__="box2D.collision.QueryCallback";Ih.__isInterface__=!0;Ih.prototype={queryCallback:null,__class__:Ih};var Zf=function(){};k["box2D.collision.IBroadPhase"]=Zf;Zf.__name__="box2D.collision.IBroadPhase";Zf.__isInterface__=!0;Zf.prototype={createProxy:null,destroyProxy:null,moveProxy:null,testOverlap:null, +getUserData:null,getFatAABB:null,getProxyCount:null,updatePairs:null,query:null,rayCast:null,validate:null,rebalance:null,__class__:Zf};var xk=function(){this.m_tree=new rg;this.m_moveBuffer=[];this.m_pairBuffer=[];this.m_proxyCount=this.m_pairCount=0};k["box2D.collision.B2DynamicTreeBroadPhase"]=xk;xk.__name__="box2D.collision.B2DynamicTreeBroadPhase";xk.__interfaces__=[Ih,Zf];xk.prototype={createProxy:function(a,b){a=this.m_tree.createProxy(a,b);++this.m_proxyCount;this.bufferMove(a);return a}, +destroyProxy:function(a){this.unBufferMove(a);--this.m_proxyCount;this.m_tree.destroyProxy(a)},moveProxy:function(a,b,c){this.m_tree.moveProxy(a,b,c)&&this.bufferMove(a)},testOverlap:function(a,b){a=this.m_tree.getFatAABB(a);b=this.m_tree.getFatAABB(b);return a.testOverlap(b)},getUserData:function(a){return this.m_tree.getUserData(a)},getFatAABB:function(a){return this.m_tree.getFatAABB(a)},getProxyCount:function(){return this.m_proxyCount},updatePairs:function(a){for(var b=this.m_pairCount=0,c=this.m_moveBuffer;b< +c.length;){var d=c[b];++b;this.cur_queryProxy=d;d=this.m_tree.getFatAABB(d);this.m_tree.query(this,d)}this.cur_queryProxy=null;for(b=this.m_moveBuffer.length;0<=--b;)this.m_moveBuffer.pop();c=!0;for(b=0;c;)if(b>=this.m_pairCount)c=!1;else for(d=this.m_pairBuffer[b],a.addPair(this.m_tree.getUserData(d.proxyA),this.m_tree.getUserData(d.proxyB)),++b;b<this.m_pairCount;){var e=this.m_pairBuffer[b];if(e.proxyA!=d.proxyA||e.proxyB!=d.proxyB)break;++b}},queryCallback:function(a){if(a==this.cur_queryProxy)return!0; +this.m_pairCount==this.m_pairBuffer.length&&(this.m_pairBuffer[this.m_pairCount]=new An);var b=this.m_pairBuffer[this.m_pairCount];a.id<this.cur_queryProxy.id?(b.proxyA=a,b.proxyB=this.cur_queryProxy):(b.proxyA=this.cur_queryProxy,b.proxyB=a);++this.m_pairCount;return!0},query:function(a,b){this.m_tree.query(a,b)},rayCast:function(a,b){this.m_tree.rayCast(a,b)},validate:function(){},rebalance:function(a){this.m_tree.rebalance(a)},bufferMove:function(a){this.m_moveBuffer[this.m_moveBuffer.length]= +a},unBufferMove:function(a){F.remove(this.m_moveBuffer,a)},comparePairs:function(a,b){return 0},m_tree:null,m_proxyCount:null,m_moveBuffer:null,m_pairBuffer:null,m_pairCount:null,cur_queryProxy:null,__class__:xk};var oj=function(){this.aabb=new ka;this.id=oj.currentID++};k["box2D.collision.B2DynamicTreeNode"]=oj;oj.__name__="box2D.collision.B2DynamicTreeNode";oj.prototype={id:null,isLeaf:function(){return null==this.child1},userData:null,aabb:null,parent:null,child1:null,child2:null,__class__:oj}; +var An=function(){};k["box2D.collision.B2DynamicTreePair"]=An;An.__name__="box2D.collision.B2DynamicTreePair";An.prototype={proxyA:null,proxyB:null,__class__:An};var ih=function(){this.m_pointCount=0;this.m_points=[];for(var a=0,b=aa.b2_maxManifoldPoints;a<b;){var c=a++;this.m_points[c]=new Bn}this.m_localPlaneNormal=new z;this.m_localPoint=new z};k["box2D.collision.B2Manifold"]=ih;ih.__name__="box2D.collision.B2Manifold";ih.prototype={reset:function(){for(var a=0,b=aa.b2_maxManifoldPoints;a<b;){var c= +a++;this.m_points[c].reset()}a=this.m_localPlaneNormal;a.x=0;a.y=0;a=this.m_localPoint;a.x=0;this.m_pointCount=this.m_type=a.y=0},set:function(a){this.m_pointCount=a.m_pointCount;for(var b=0,c=aa.b2_maxManifoldPoints;b<c;){var d=b++;this.m_points[d].set(a.m_points[d])}b=this.m_localPlaneNormal;c=a.m_localPlaneNormal;b.x=c.x;b.y=c.y;b=this.m_localPoint;c=a.m_localPoint;b.x=c.x;b.y=c.y;this.m_type=a.m_type},copy:function(){var a=new ih;a.set(this);return a},m_points:null,m_localPlaneNormal:null,m_localPoint:null, +m_type:null,m_pointCount:null,__class__:ih};var Bn=function(){this.m_localPoint=new z;this.m_id=new qb;this.reset()};k["box2D.collision.B2ManifoldPoint"]=Bn;Bn.__name__="box2D.collision.B2ManifoldPoint";Bn.prototype={reset:function(){var a=this.m_localPoint;a.x=0;this.m_tangentImpulse=this.m_normalImpulse=a.y=0;this.m_id.set_key(0)},set:function(a){var b=this.m_localPoint,c=a.m_localPoint;b.x=c.x;b.y=c.y;this.m_normalImpulse=a.m_normalImpulse;this.m_tangentImpulse=a.m_tangentImpulse;this.m_id.set(a.m_id)}, +m_localPoint:null,m_normalImpulse:null,m_tangentImpulse:null,m_id:null,__class__:Bn};var ut=function(){this.R=new vc;this.center=new z;this.extents=new z};k["box2D.collision.B2OBB"]=ut;ut.__name__="box2D.collision.B2OBB";ut.prototype={R:null,center:null,extents:null,__class__:ut};var wk=function(a,b,c){null==c&&(c=1);this.p1=new z;this.p2=new z;if(null!=a){var d=this.p1;d.x=a.x;d.y=a.y}null!=b&&(d=this.p2,d.x=b.x,d.y=b.y);this.maxFraction=c};k["box2D.collision.B2RayCastInput"]=wk;wk.__name__="box2D.collision.B2RayCastInput"; +wk.prototype={p1:null,p2:null,maxFraction:null,__class__:wk};var Cn=function(){this.normal=new z};k["box2D.collision.B2RayCastOutput"]=Cn;Cn.__name__="box2D.collision.B2RayCastOutput";Cn.prototype={normal:null,fraction:null,__class__:Cn};var ef=function(){this.m_localPoint=new z;this.m_axis=new z};k["box2D.collision.B2SeparationFunction"]=ef;ef.__name__="box2D.collision.B2SeparationFunction";ef.prototype={initialize:function(a,b,c,d,e){this.m_proxyA=b;this.m_proxyB=d;b=a.count;aa.b2Assert(0<b&&3> +b);if(1==b){this.m_type=ef.e_points;var g=this.m_proxyA.getVertex(a.indexA[0]);a=this.m_proxyB.getVertex(a.indexB[0]);var x=g;var f=c.R;g=c.position.x+(f.col1.x*x.x+f.col2.x*x.y);c=c.position.y+(f.col1.y*x.x+f.col2.y*x.y);x=a;f=e.R;a=e.position.x+(f.col1.x*x.x+f.col2.x*x.y);e=e.position.y+(f.col1.y*x.x+f.col2.y*x.y);this.m_axis.x=a-g;this.m_axis.y=e-c;this.m_axis.normalize()}else if(a.indexB[0]==a.indexB[1]){this.m_type=ef.e_faceA;b=this.m_proxyA.getVertex(a.indexA[0]);d=this.m_proxyA.getVertex(a.indexA[1]); +a=this.m_proxyB.getVertex(a.indexB[0]);this.m_localPoint.x=.5*(b.x+d.x);this.m_localPoint.y=.5*(b.y+d.y);var t=this.m_axis;b=P.crossVF(P.subtractVVPooled(d,b),1,!0);t.x=b.x;t.y=b.y;this.m_axis.normalize();x=this.m_axis;f=c.R;b=f.col1.x*x.x+f.col2.x*x.y;d=f.col1.y*x.x+f.col2.y*x.y;x=this.m_localPoint;f=c.R;g=c.position.x+(f.col1.x*x.x+f.col2.x*x.y);c=c.position.y+(f.col1.y*x.x+f.col2.y*x.y);x=a;f=e.R;a=e.position.x+(f.col1.x*x.x+f.col2.x*x.y);e=e.position.y+(f.col1.y*x.x+f.col2.y*x.y);0>(a-g)*b+(e- +c)*d&&(t=this.m_axis,t.x=-t.x,t.y=-t.y)}else if(a.indexA[0]==a.indexA[0])this.m_type=ef.e_faceB,f=this.m_proxyB.getVertex(a.indexB[0]),x=this.m_proxyB.getVertex(a.indexB[1]),g=this.m_proxyA.getVertex(a.indexA[0]),this.m_localPoint.x=.5*(f.x+x.x),this.m_localPoint.y=.5*(f.y+x.y),t=this.m_axis,b=P.crossVF(P.subtractVVPooled(x,f),1,!0),t.x=b.x,t.y=b.y,this.m_axis.normalize(),x=this.m_axis,f=e.R,b=f.col1.x*x.x+f.col2.x*x.y,d=f.col1.y*x.x+f.col2.y*x.y,x=this.m_localPoint,f=e.R,a=e.position.x+(f.col1.x* +x.x+f.col2.x*x.y),e=e.position.y+(f.col1.y*x.x+f.col2.y*x.y),x=g,f=c.R,g=c.position.x+(f.col1.x*x.x+f.col2.x*x.y),c=c.position.y+(f.col1.y*x.x+f.col2.y*x.y),0>(g-a)*b+(c-e)*d&&(t=this.m_axis,t.x=-t.x,t.y=-t.y);else{b=this.m_proxyA.getVertex(a.indexA[0]);d=this.m_proxyA.getVertex(a.indexA[1]);f=this.m_proxyB.getVertex(a.indexB[0]);x=this.m_proxyB.getVertex(a.indexB[1]);var m=P.mulMV(c.R,P.subtractVVPooled(d,b),!0);e=P.mulMV(e.R,P.subtractVVPooled(x,f),!0);c=m.x*m.x+m.y*m.y;g=e.x*e.x+e.y*e.y;t=P.subtractVVPooled(e, +m);a=m.x*t.x+m.y*t.y;t=e.x*t.x+e.y*t.y;m=m.x*e.x+m.y*e.y;var h=c*g-m*m;e=0;0!=h&&(e=P.clamp((m*t-a*g)/h,0,1));0>(m*e+t)/g&&(e=P.clamp((m-a)/c,0,1));g=z.getFromPool();g.x=b.x+e*(d.x-b.x);g.y=b.y+e*(d.y-b.y);a=z.getFromPool();a.x=f.x+e*(x.x-f.x);a.y=f.y+e*(x.y-f.y);0==e||1==e?(this.m_type=ef.e_faceB,t=this.m_axis,b=P.crossVF(P.subtractVVPooled(x,f),1,!0),t.x=b.x,t.y=b.y,this.m_axis.normalize(),t=this.m_localPoint,t.x=a.x,t.y=a.y):(this.m_type=ef.e_faceA,t=this.m_axis,b=P.crossVF(P.subtractVVPooled(d, +b),1,!0),t.x=b.x,t.y=b.y,t=this.m_localPoint,t.x=g.x,t.y=g.y);0>e&&(t=this.m_axis,t.x=-t.x,t.y=-t.y)}},evaluate:function(a,b){var c;if(this.m_type==ef.e_points){var d=P.mulTMV(a.R,this.m_axis,!0);var e=P.mulTMV(b.R,this.m_axis.getNegativePooled(),!0);d=this.m_proxyA.getSupportVertex(d);e=this.m_proxyB.getSupportVertex(e);a=P.mulX(a,d,!0);b=P.mulX(b,e,!0);return c=(b.x-a.x)*this.m_axis.x+(b.y-a.y)*this.m_axis.y}if(this.m_type==ef.e_faceA)return c=P.mulMV(a.R,this.m_axis,!0),a=P.mulX(a,this.m_localPoint, +!0),e=P.mulTMV(b.R,c.getNegativePooled(),!0),e=this.m_proxyB.getSupportVertex(e),b=P.mulX(b,e,!0),c=(b.x-a.x)*c.x+(b.y-a.y)*c.y;if(this.m_type==ef.e_faceB)return c=P.mulMV(b.R,this.m_axis,!0),b=P.mulX(b,this.m_localPoint,!0),d=P.mulTMV(a.R,c.getNegativePooled(),!0),d=this.m_proxyA.getSupportVertex(d),a=P.mulX(a,d,!0),c=(a.x-b.x)*c.x+(a.y-b.y)*c.y;aa.b2Assert(!1);return 0},m_proxyA:null,m_proxyB:null,m_type:null,m_localPoint:null,m_axis:null,__class__:ef};var yk=function(){this.useCache=!1;this.indexA= +[];this.indexB=[]};k["box2D.collision.B2SimplexCache"]=yk;yk.__name__="box2D.collision.B2SimplexCache";yk.prototype={metric:null,count:null,indexA:null,indexB:null,useCache:null,__class__:yk};var Dn=function(){this.proxyA=new df;this.proxyB=new df;this.sweepA=new jh;this.sweepB=new jh};k["box2D.collision.B2TOIInput"]=Dn;Dn.__name__="box2D.collision.B2TOIInput";Dn.prototype={proxyA:null,proxyB:null,sweepA:null,sweepB:null,tolerance:null,__class__:Dn};var Ve=function(a,b){this.position=new z;this.R= +new vc;if(null!=a){var c=this.position;c.x=a.x;c.y=a.y;this.R.setM(b)}};k["box2D.common.math.B2Transform"]=Ve;Ve.__name__="box2D.common.math.B2Transform";Ve.prototype={initialize:function(a,b){var c=this.position;c.x=a.x;c.y=a.y;this.R.setM(b)},setIdentity:function(){var a=this.position;a.x=0;a.y=0;this.R.setIdentity()},set:function(a){var b=this.position,c=a.position;b.x=c.x;b.y=c.y;this.R.setM(a.R)},getAngle:function(){return Math.atan2(this.R.col1.y,this.R.col1.x)},multiply:function(a){a=this.R.multiplyV(a); +a.add(this.position);return a},multiplyInPlace:function(a){this.R.multiplyVInPlace(a);a.add(this.position)},position:null,R:null,__class__:Ve};var vc=function(){this.col1=new z(0,1);this.col2=new z(0,1)};k["box2D.common.math.B2Mat22"]=vc;vc.__name__="box2D.common.math.B2Mat22";vc.fromAngle=function(a){var b=new vc;b.set(a);return b};vc.fromVV=function(a,b){var c=new vc;c.setVV(a,b);return c};vc.prototype={set:function(a){var b=Math.cos(a);a=Math.sin(a);this.col1.x=b;this.col2.x=-a;this.col1.y=a;this.col2.y= +b},setVV:function(a,b){var c=this.col1;c.x=a.x;c.y=a.y;c=this.col2;c.x=b.x;c.y=b.y},copy:function(){var a=new vc;a.setM(this);return a},setM:function(a){var b=this.col1,c=a.col1;b.x=c.x;b.y=c.y;b=this.col2;c=a.col2;b.x=c.x;b.y=c.y},addM:function(a){this.col1.x+=a.col1.x;this.col1.y+=a.col1.y;this.col2.x+=a.col2.x;this.col2.y+=a.col2.y},multiplyV:function(a){return new z(this.col1.x*a.x+this.col2.x*a.y,this.col1.y*a.x+this.col2.y*a.y)},multiplyVInPlace:function(a){var b=this.col1.x*a.x+this.col2.x* +a.y,c=this.col1.y*a.x+this.col2.y*a.y;null==c&&(c=0);null==b&&(b=0);a.x=b;a.y=c},setIdentity:function(){this.col1.x=1;this.col2.x=0;this.col1.y=0;this.col2.y=1},setZero:function(){this.col1.x=0;this.col2.x=0;this.col1.y=0;this.col2.y=0},setAngle:function(a){this.col1.x=Math.cos(a);this.col1.y=Math.sin(a);this.col2.x=-this.col1.y;this.col2.y=this.col1.x},getAngle:function(){return Math.atan2(this.col1.y,this.col1.x)},getInverse:function(a){var b=this.col1.x,c=this.col2.x,d=this.col1.y,e=this.col2.y, +g=b*e-c*d;0!=g&&(g=1/g);a.col1.x=g*e;a.col2.x=-g*c;a.col1.y=-g*d;a.col2.y=g*b;return a},solve:function(a,b,c){var d=this.col1.x,e=this.col2.x,g=this.col1.y,x=this.col2.y,f=d*x-e*g;0!=f&&(f=1/f);a.x=f*(x*b-e*c);a.y=f*(d*c-g*b);return a},abs:function(){this.col1.abs();this.col2.abs()},col1:null,col2:null,__class__:vc};var Gb=function(){};k["box2D.collision.B2TimeOfImpact"]=Gb;Gb.__name__="box2D.collision.B2TimeOfImpact";Gb.timeOfImpact=function(a){++Gb.b2_toiCalls;var b=a.proxyA,c=a.proxyB,d=a.sweepA, +e=a.sweepB;aa.b2Assert(d.t0==e.t0);aa.b2Assert(1-d.t0>Number.MIN_VALUE);var g=b.m_radius+c.m_radius;a=a.tolerance;var x=0,f=0,t=0;Gb.s_cache.count=0;for(Gb.s_distanceInput.useRadii=!1;;){d.getTransform(Gb.s_xfA,x);e.getTransform(Gb.s_xfB,x);Gb.s_distanceInput.proxyA=b;Gb.s_distanceInput.proxyB=c;Gb.s_distanceInput.transformA=Gb.s_xfA;Gb.s_distanceInput.transformB=Gb.s_xfB;C.distance(Gb.s_distanceOutput,Gb.s_cache,Gb.s_distanceInput);if(0>=Gb.s_distanceOutput.distance){x=1;break}Gb.s_fcn.initialize(Gb.s_cache, +b,Gb.s_xfA,c,Gb.s_xfB);var m=Gb.s_fcn.evaluate(Gb.s_xfA,Gb.s_xfB);if(0>=m){x=1;break}0==f&&(t=m>g?P.max(g-a,.75*g):P.max(m-a,.02*g));if(m-t<.5*a){if(0==f){x=1;break}break}var h=x,p=x,n=1;d.getTransform(Gb.s_xfA,n);e.getTransform(Gb.s_xfB,n);var k=Gb.s_fcn.evaluate(Gb.s_xfA,Gb.s_xfB);if(k>=t){x=1;break}for(var r=0;;){var rb=0!=(r&1)?p+(t-m)*(n-p)/(k-m):.5*(p+n);d.getTransform(Gb.s_xfA,rb);e.getTransform(Gb.s_xfB,rb);var q=Gb.s_fcn.evaluate(Gb.s_xfA,Gb.s_xfB);if(P.abs(q-t)<.025*a){h=rb;break}q>t?(p= +rb,m=q):(n=rb,k=q);++r;++Gb.b2_toiRootIters;if(50==r)break}Gb.b2_toiMaxRootIters=P.max(Gb.b2_toiMaxRootIters,r)|0;if(h<(1+100*Number.MIN_VALUE)*x)break;x=h;++f;++Gb.b2_toiIters;if(1E3==f)break}Gb.b2_toiMaxIters=P.max(Gb.b2_toiMaxIters,f)|0;return x};var pj=function(){this.m_normal=new z;this.m_points=[];for(var a=0,b=aa.b2_maxManifoldPoints;a<b;){var c=a++;this.m_points[c]=new z}};k["box2D.collision.B2WorldManifold"]=pj;pj.__name__="box2D.collision.B2WorldManifold";pj.prototype={reset:function(){var a= +this.m_normal;a.x=0;for(var b=a.y=0,c=aa.b2_maxManifoldPoints;b<c;)a=b++,a=this.m_points[a],a.x=0,a.y=0},initialize:function(a,b,c,d,e){if(0!=a.m_pointCount){var g=this.m_normal;g.x=0;for(var x=g.y=0,f=aa.b2_maxManifoldPoints;x<f;){var t=x++;g=this.m_points[t];g.x=0;g.y=0}switch(a.m_type){case 1:var m=b.R;g=a.m_localPoint;x=b.position.x+m.col1.x*g.x+m.col2.x*g.y;b=b.position.y+m.col1.y*g.x+m.col2.y*g.y;m=d.R;g=a.m_points[0].m_localPoint;a=d.position.x+m.col1.x*g.x+m.col2.x*g.y;d=d.position.y+m.col1.y* +g.x+m.col2.y*g.y;g=a-x;m=d-b;f=g*g+m*m;f>Number.MIN_VALUE*Number.MIN_VALUE?(f=Math.sqrt(f),this.m_normal.x=g/f,this.m_normal.y=m/f):(this.m_normal.x=1,this.m_normal.y=0);b+=c*this.m_normal.y;d-=e*this.m_normal.y;this.m_points[0].x=.5*(x+c*this.m_normal.x+(a-e*this.m_normal.x));this.m_points[0].y=.5*(b+d);break;case 2:m=b.R;g=a.m_localPlaneNormal;var h=m.col1.x*g.x+m.col2.x*g.y;var p=m.col1.y*g.x+m.col2.y*g.y;m=b.R;g=a.m_localPoint;var n=b.position.x+m.col1.x*g.x+m.col2.x*g.y;var k=b.position.y+m.col1.y* +g.x+m.col2.y*g.y;this.m_normal.x=h;this.m_normal.y=p;x=0;for(f=a.m_pointCount;x<f;){t=x++;m=d.R;g=a.m_points[t].m_localPoint;var r=d.position.x+m.col1.x*g.x+m.col2.x*g.y;g=d.position.y+m.col1.y*g.x+m.col2.y*g.y;this.m_points[t].x=r+.5*(c-(r-n)*h-(g-k)*p-e)*h;this.m_points[t].y=g+.5*(c-(r-n)*h-(g-k)*p-e)*p}break;case 4:for(m=d.R,g=a.m_localPlaneNormal,h=m.col1.x*g.x+m.col2.x*g.y,p=m.col1.y*g.x+m.col2.y*g.y,m=d.R,g=a.m_localPoint,n=d.position.x+m.col1.x*g.x+m.col2.x*g.y,k=d.position.y+m.col1.y*g.x+ +m.col2.y*g.y,this.m_normal.x=-h,this.m_normal.y=-p,x=0,f=a.m_pointCount;x<f;)t=x++,m=b.R,g=a.m_points[t].m_localPoint,r=b.position.x+m.col1.x*g.x+m.col2.x*g.y,g=b.position.y+m.col1.y*g.x+m.col2.y*g.y,this.m_points[t].x=r+.5*(e-(r-n)*h-(g-k)*p-c)*h,this.m_points[t].y=g+.5*(e-(r-n)*h-(g-k)*p-c)*p}}},getPoint:function(){return 0==this.m_points.length?null:1==this.m_points.length?this.m_points[0]:new z((this.m_points[0].x+this.m_points[1].x)/2,(this.m_points[0].y+this.m_points[1].y)/2)},m_normal:null, +m_points:null,__class__:pj};var Tb=function(){this.m_type=-1;this.m_radius=aa.b2_linearSlop};k["box2D.collision.shapes.B2Shape"]=Tb;Tb.__name__="box2D.collision.shapes.B2Shape";Tb.testOverlap=function(a,b,c,d){Tb.initialized||(Tb.distanceInput.proxyA=Tb.proxyA,Tb.distanceInput.proxyB=Tb.proxyB,Tb.distanceInput.useRadii=!0,Tb.initialized=!0);Tb.proxyA.set(a);Tb.proxyB.set(c);Tb.distanceInput.transformA=b;Tb.distanceInput.transformB=d;Tb.simplexCache.count=0;C.distance(Tb.distanceOutput,Tb.simplexCache, +Tb.distanceInput);return Tb.distanceOutput.distance<10*Number.MIN_VALUE};Tb.prototype={copy:function(){return null},set:function(a){this.m_radius=a.m_radius},getType:function(){return this.m_type},testPoint:function(a,b){return!1},rayCast:function(a,b,c){return!1},computeAABB:function(a,b){},computeMass:function(a,b){},computeSubmergedArea:function(a,b,c,d){return 0},m_type:null,m_radius:null,__class__:Tb};var Hc=function(a){null==a&&(a=0);Tb.call(this);this.m_p=new z;this.m_type=0;this.m_radius= +a};k["box2D.collision.shapes.B2CircleShape"]=Hc;Hc.__name__="box2D.collision.shapes.B2CircleShape";Hc.__super__=Tb;Hc.prototype=u(Tb.prototype,{copy:function(){var a=new Hc;a.set(this);return a},set:function(a){Tb.prototype.set.call(this,a);if(a instanceof Hc){var b=O.__cast(a,Hc);a=this.m_p;b=b.m_p;a.x=b.x;a.y=b.y}},testPoint:function(a,b){var c=a.R,d=a.position.x+(c.col1.x*this.m_p.x+c.col2.x*this.m_p.y);a=a.position.y+(c.col1.y*this.m_p.x+c.col2.y*this.m_p.y);d=b.x-d;a=b.y-a;return d*d+a*a<=this.m_radius* +this.m_radius},rayCast:function(a,b,c){var d=c.R,e=b.p1.x-(c.position.x+(d.col1.x*this.m_p.x+d.col2.x*this.m_p.y));c=b.p1.y-(c.position.y+(d.col1.y*this.m_p.x+d.col2.y*this.m_p.y));d=b.p2.x-b.p1.x;var g=b.p2.y-b.p1.y,x=e*d+c*g,f=d*d+g*g,t=x*x-f*(e*e+c*c-this.m_radius*this.m_radius);if(0>t||f<Number.MIN_VALUE)return!1;x=-(x+Math.sqrt(t));return 0<=x&&x<=b.maxFraction*f?(x/=f,a.fraction=x,a.normal.x=e+x*d,a.normal.y=c+x*g,a.normal.normalize(),!0):!1},computeAABB:function(a,b){var c=b.R,d=b.position.x+ +(c.col1.x*this.m_p.x+c.col2.x*this.m_p.y);b=b.position.y+(c.col1.y*this.m_p.x+c.col2.y*this.m_p.y);c=a.lowerBound;var e=d-this.m_radius,g=b-this.m_radius;null==g&&(g=0);null==e&&(e=0);c.x=e;c.y=g;c=a.upperBound;e=d+this.m_radius;g=b+this.m_radius;null==g&&(g=0);null==e&&(e=0);c.x=e;c.y=g},computeMass:function(a,b){a.mass=b*aa.b2_pi*this.m_radius*this.m_radius;b=a.center;var c=this.m_p;b.x=c.x;b.y=c.y;a.I=a.mass*(.5*this.m_radius*this.m_radius+(this.m_p.x*this.m_p.x+this.m_p.y*this.m_p.y))},computeSubmergedArea:function(a, +b,c,d){c=P.mulX(c,this.m_p,!0);var e=-(P.dot(a,c)-b);if(e<-this.m_radius+Number.MIN_VALUE)return 0;if(e>this.m_radius)return d.x=c.x,d.y=c.y,Math.PI*this.m_radius*this.m_radius;b=this.m_radius*this.m_radius;var g=e*e;e=b*(Math.asin(e/this.m_radius)+Math.PI/2)+e*Math.sqrt(b-g);b=-.6666666666666666*Math.pow(b-g,1.5)/e;d.x=c.x+a.x*b;d.y=c.y+a.y*b;return e},getLocalPosition:function(){return this.m_p},setLocalPosition:function(a){var b=this.m_p;b.x=a.x;b.y=a.y},getRadius:function(){return this.m_radius}, +setRadius:function(a){this.m_radius=a},m_p:null,__class__:Hc});var qg=function(a,b){Tb.call(this);this.s_supportVec=new z;this.m_v1=new z;this.m_v2=new z;this.m_v0=new z;this.m_v3=new z;this.m_hasVertex3=this.m_hasVertex0=!1;this.m_coreV1=new z;this.m_coreV2=new z;this.m_normal=new z;this.m_direction=new z;this.m_cornerDir1=new z;this.m_cornerDir2=new z;this.m_type=2;this.m_nextEdge=this.m_prevEdge=null;this.m_v1=a;this.m_v2=b;a=this.m_direction;b=this.m_v2.x-this.m_v1.x;var c=this.m_v2.y-this.m_v1.y; +null==c&&(c=0);null==b&&(b=0);a.x=b;a.y=c;this.m_length=this.m_direction.normalize();a=this.m_normal;b=this.m_direction.y;c=-this.m_direction.x;null==c&&(c=0);null==b&&(b=0);a.x=b;a.y=c;a=this.m_coreV1;b=-aa.b2_toiSlop*(this.m_normal.x-this.m_direction.x)+this.m_v1.x;c=-aa.b2_toiSlop*(this.m_normal.y-this.m_direction.y)+this.m_v1.y;null==c&&(c=0);null==b&&(b=0);a.x=b;a.y=c;a=this.m_coreV2;b=-aa.b2_toiSlop*(this.m_normal.x+this.m_direction.x)+this.m_v2.x;c=-aa.b2_toiSlop*(this.m_normal.y+this.m_direction.y)+ +this.m_v2.y;null==c&&(c=0);null==b&&(b=0);a.x=b;a.y=c;this.m_cornerDir1=this.m_normal;a=this.m_cornerDir2;b=-this.m_normal.x;c=-this.m_normal.y;null==c&&(c=0);null==b&&(b=0);a.x=b;a.y=c};k["box2D.collision.shapes.B2EdgeShape"]=qg;qg.__name__="box2D.collision.shapes.B2EdgeShape";qg.__super__=Tb;qg.prototype=u(Tb.prototype,{testPoint:function(a,b){return!1},rayCast:function(a,b,c){var d=b.p2.x-b.p1.x,e=b.p2.y-b.p1.y,g=c.R,x=c.position.x+(g.col1.x*this.m_v1.x+g.col2.x*this.m_v1.y),f=c.position.y+(g.col1.y* +this.m_v1.x+g.col2.y*this.m_v1.y),t=c.position.y+(g.col1.y*this.m_v2.x+g.col2.y*this.m_v2.y)-f;c=-(c.position.x+(g.col1.x*this.m_v2.x+g.col2.x*this.m_v2.y)-x);g=100*Number.MIN_VALUE;var m=-(d*t+e*c);if(m>g){x=b.p1.x-x;var h=b.p1.y-f;f=x*t+h*c;if(0<=f&&f<=b.maxFraction*m&&(b=-d*h+e*x,-g*m<=b&&b<=m*(1+g)))return a.fraction=f/m,b=Math.sqrt(t*t+c*c),a.normal.x=t/b,a.normal.y=c/b,!0}return!1},computeAABB:function(a,b){var c=b.R,d=b.position.x+(c.col1.x*this.m_v1.x+c.col2.x*this.m_v1.y),e=b.position.y+ +(c.col1.y*this.m_v1.x+c.col2.y*this.m_v1.y),g=b.position.x+(c.col1.x*this.m_v2.x+c.col2.x*this.m_v2.y);b=b.position.y+(c.col1.y*this.m_v2.x+c.col2.y*this.m_v2.y);d<g?(a.lowerBound.x=d,a.upperBound.x=g):(a.lowerBound.x=g,a.upperBound.x=d);e<b?(a.lowerBound.y=e,a.upperBound.y=b):(a.lowerBound.y=b,a.upperBound.y=e)},computeMass:function(a,b){a.mass=0;b=a.center;var c=this.m_v1;b.x=c.x;b.y=c.y;a.I=0},computeSubmergedArea:function(a,b,c,d){var e=new z(a.x*b,a.y*b),g=P.mulX(c,this.m_v1,!0);c=P.mulX(c,this.m_v2, +!0);var x=P.dot(a,g)-b;a=P.dot(a,c)-b;if(0<x){if(0<a)return 0;g.x=-a/(x-a)*g.x+x/(x-a)*c.x;g.y=-a/(x-a)*g.y+x/(x-a)*c.y}else 0<a&&(c.x=-a/(x-a)*g.x+x/(x-a)*c.x,c.y=-a/(x-a)*g.y+x/(x-a)*c.y);d.x=(e.x+g.x+c.x)/3;d.y=(e.y+g.y+c.y)/3;return.5*((g.x-e.x)*(c.y-e.y)-(g.y-e.y)*(c.x-e.x))},getLength:function(){return this.m_length},getVertex1:function(){return this.m_v1},getVertex2:function(){return this.m_v2},getCoreVertex1:function(){return this.m_coreV1},getCoreVertex2:function(){return this.m_coreV2}, +getNormalVector:function(){return this.m_normal},getDirectionVector:function(){return this.m_direction},getCorner1Vector:function(){return this.m_cornerDir1},getCorner2Vector:function(){return this.m_cornerDir2},corner1IsConvex:function(){return this.m_cornerConvex1},corner2IsConvex:function(){return this.m_cornerConvex2},getFirstVertex:function(a){var b=a.R;return new z(a.position.x+(b.col1.x*this.m_coreV1.x+b.col2.x*this.m_coreV1.y),a.position.y+(b.col1.y*this.m_coreV1.x+b.col2.y*this.m_coreV1.y))}, +getNextEdge:function(){return this.m_nextEdge},getPrevEdge:function(){return this.m_prevEdge},s_supportVec:null,support:function(a,b,c){var d=a.R,e=a.position.x+(d.col1.x*this.m_coreV1.x+d.col2.x*this.m_coreV1.y),g=a.position.y+(d.col1.y*this.m_coreV1.x+d.col2.y*this.m_coreV1.y),x=a.position.x+(d.col1.x*this.m_coreV2.x+d.col2.x*this.m_coreV2.y);a=a.position.y+(d.col1.y*this.m_coreV2.x+d.col2.y*this.m_coreV2.y);e*b+g*c>x*b+a*c?(this.s_supportVec.x=e,this.s_supportVec.y=g):(this.s_supportVec.x=x,this.s_supportVec.y= +a);return this.s_supportVec},copy:function(){var a=new qg(this.m_v1,this.m_v2);a.set(this);var b=O.__cast(a,qg),c=b.m_v0,d=this.m_v0;c.x=d.x;c.y=d.y;c=b.m_v3;d=this.m_v3;c.x=d.x;c.y=d.y;b.m_hasVertex0=this.m_hasVertex0;b.m_hasVertex3=this.m_hasVertex3;return a},setPrevEdge:function(a,b,c,d){this.m_prevEdge=a;this.m_coreV1=b;this.m_cornerDir1=c;this.m_cornerConvex1=d},setNextEdge:function(a,b,c,d){this.m_nextEdge=a;this.m_coreV2=b;this.m_cornerDir2=c;this.m_cornerConvex2=d},m_v1:null,m_v2:null,m_v0:null, +m_v3:null,m_hasVertex0:null,m_hasVertex3:null,m_coreV1:null,m_coreV2:null,m_length:null,m_normal:null,m_direction:null,m_cornerDir1:null,m_cornerDir2:null,m_cornerConvex1:null,m_cornerConvex2:null,m_nextEdge:null,m_prevEdge:null,__class__:qg});var qj=function(){this.mass=0;this.center=new z(0,0);this.I=0};k["box2D.collision.shapes.B2MassData"]=qj;qj.__name__="box2D.collision.shapes.B2MassData";qj.prototype={mass:null,center:null,I:null,__class__:qj};var Bb=function(){Tb.call(this);this.m_type=1;this.m_centroid= +new z;this.m_vertices=[];this.m_normals=[]};k["box2D.collision.shapes.B2PolygonShape"]=Bb;Bb.__name__="box2D.collision.shapes.B2PolygonShape";Bb.asArray=function(a,b){var c=new Bb;c.setAsArray(a,b);return c};Bb.asVector=function(a,b){var c=new Bb;c.setAsVector(a,b);return c};Bb.asBox=function(a,b){var c=new Bb;c.setAsBox(a,b);return c};Bb.asOrientedBox=function(a,b,c,d){null==d&&(d=0);var e=new Bb;e.setAsOrientedBox(a,b,c,d);return e};Bb.asEdge=function(a,b){var c=new Bb;c.setAsEdge(a,b);return c}; +Bb.computeCentroid=function(a,b){for(var c=new z,d=0,e=0;e<b;){var g=e++,x=a[g];g=g+1<b?a[g+1|0]:a[0];var f=.5*((x.x-0)*(g.y-0)-(x.y-0)*(g.x-0));d+=f;c.x+=.3333333333333333*f*(0+x.x+g.x);c.y+=.3333333333333333*f*(0+x.y+g.y)}c.x*=1/d;c.y*=1/d;return c};Bb.computeOBB=function(a,b,c){for(var d,e=[],g=0,x=c;g<x;)d=g++,e[d]=b[d];e[c]=e[0];b=Number.MAX_VALUE;g=1;for(x=c+1;g<x;){d=g++;var f=e[d-1|0],t=e[d].x-f.x,m=e[d].y-f.y;d=Math.sqrt(t*t+m*m);t/=d;m/=d;for(var h=-m,p=t,n=d=Number.MAX_VALUE,k=-Number.MAX_VALUE, +r=-Number.MAX_VALUE,rb=0,q=c;rb<q;){var v=rb++,u=e[v].x-f.x,w=e[v].y-f.y;v=t*u+m*w;u=h*u+p*w;v<d&&(d=v);u<n&&(n=u);v>k&&(k=v);u>r&&(r=u)}rb=(k-d)*(r-n);rb<.95*b&&(b=rb,a.R.col1.x=t,a.R.col1.y=m,a.R.col2.x=h,a.R.col2.y=p,t=.5*(d+k),m=.5*(n+r),h=a.R,a.center.x=f.x+(h.col1.x*t+h.col2.x*m),a.center.y=f.y+(h.col1.y*t+h.col2.y*m),a.extents.x=.5*(k-d),a.extents.y=.5*(r-n))}};Bb.__super__=Tb;Bb.prototype=u(Tb.prototype,{copy:function(){var a=new Bb;a.set(this);return a},set:function(a){Tb.prototype.set.call(this, +a);if(a instanceof Bb){a=O.__cast(a,Bb);var b=this.m_centroid,c=a.m_centroid;b.x=c.x;b.y=c.y;this.m_vertexCount=a.m_vertexCount;this.reserve(this.m_vertexCount);for(var d=0,e=this.m_vertexCount;d<e;){var g=d++;b=this.m_vertices[g];c=a.m_vertices[g];b.x=c.x;b.y=c.y;b=this.m_normals[g];g=a.m_normals[g];b.x=g.x;b.y=g.y}}},setAsArray:function(a,b){null==b&&(b=0);for(var c=[],d=0;d<a.length;){var e=a[d];++d;c.push(e)}this.setAsVector(c,b)},setAsVector:function(a,b){null==b&&(b=0);0==b&&(b=a.length);aa.b2Assert(2<= +b);this.m_vertexCount=b;this.reserve(b);for(var c=0,d=this.m_vertexCount;c<d;){b=c++;var e=this.m_vertices[b],g=a[b];e.x=g.x;e.y=g.y}c=0;for(d=this.m_vertexCount;c<d;)b=c++,a=P.subtractVVPooled(this.m_vertices[b+1<this.m_vertexCount?b+1:0],this.m_vertices[b]),aa.b2Assert(a.lengthSquared()>Number.MIN_VALUE),e=this.m_normals[b],g=P.crossVF(a,1,!0),e.x=g.x,e.y=g.y,this.m_normals[b].normalize();this.m_centroid=Bb.computeCentroid(this.m_vertices,this.m_vertexCount)},setAsBox:function(a,b){this.m_vertexCount= +4;this.reserve(4);var c=this.m_vertices[0],d=-a,e=-b;null==e&&(e=0);null==d&&(d=0);c.x=d;c.y=e;c=this.m_vertices[1];d=a;e=-b;null==e&&(e=0);null==d&&(d=0);c.x=d;c.y=e;c=this.m_vertices[2];d=a;e=b;null==e&&(e=0);null==d&&(d=0);c.x=d;c.y=e;c=this.m_vertices[3];d=-a;e=b;null==e&&(e=0);null==d&&(d=0);c.x=d;c.y=e;c=this.m_normals[0];d=0;e=-1;null==e&&(e=0);null==d&&(d=0);c.x=d;c.y=e;c=this.m_normals[1];d=1;e=0;null==e&&(e=0);null==d&&(d=0);c.x=d;c.y=e;c=this.m_normals[2];d=0;e=1;null==e&&(e=0);null==d&& +(d=0);c.x=d;c.y=e;c=this.m_normals[3];d=-1;e=0;null==e&&(e=0);null==d&&(d=0);c.x=d;c.y=e;c=this.m_centroid;c.x=0;c.y=0},setAsOrientedBox:function(a,b,c,d){null==d&&(d=0);this.m_vertexCount=4;this.reserve(4);var e=this.m_vertices[0],g=-a,x=-b;null==x&&(x=0);null==g&&(g=0);e.x=g;e.y=x;e=this.m_vertices[1];g=a;x=-b;null==x&&(x=0);null==g&&(g=0);e.x=g;e.y=x;e=this.m_vertices[2];g=a;x=b;null==x&&(x=0);null==g&&(g=0);e.x=g;e.y=x;e=this.m_vertices[3];g=-a;x=b;null==x&&(x=0);null==g&&(g=0);e.x=g;e.y=x;e= +this.m_normals[0];g=0;x=-1;null==x&&(x=0);null==g&&(g=0);e.x=g;e.y=x;e=this.m_normals[1];g=1;x=0;null==x&&(x=0);null==g&&(g=0);e.x=g;e.y=x;e=this.m_normals[2];g=0;x=1;null==x&&(x=0);null==g&&(g=0);e.x=g;e.y=x;e=this.m_normals[3];g=-1;x=0;null==x&&(x=0);null==g&&(g=0);e.x=g;e.y=x;this.m_centroid=c;a=new Ve;a.position=c;a.R.set(d);c=0;for(d=this.m_vertexCount;c<d;)b=c++,this.m_vertices[b]=P.mulX(a,this.m_vertices[b]),this.m_normals[b]=P.mulMV(a.R,this.m_normals[b])},setAsEdge:function(a,b){this.m_vertexCount= +2;this.reserve(2);var c=this.m_vertices[0];c.x=a.x;c.y=a.y;c=this.m_vertices[1];c.x=b.x;c.y=b.y;this.m_centroid.x=.5*(a.x+b.x);this.m_centroid.y=.5*(a.y+b.y);this.m_normals[0]=P.crossVF(P.subtractVV(b,a),1);this.m_normals[0].normalize();this.m_normals[1].x=-this.m_normals[0].x;this.m_normals[1].y=-this.m_normals[0].y},testPoint:function(a,b){var c=a.R;var d=b.x-a.position.x;a=b.y-a.position.y;b=d*c.col1.x+a*c.col1.y;for(var e=d*c.col2.x+a*c.col2.y,g=0,x=this.m_vertexCount;g<x;){var f=g++;c=this.m_vertices[f]; +d=b-c.x;a=e-c.y;c=this.m_normals[f];if(0<c.x*d+c.y*a)return!1}return!0},rayCast:function(a,b,c){var d=0,e=b.maxFraction,g=b.p1.x-c.position.x,x=b.p1.y-c.position.y,f=c.R,t=g*f.col1.x+x*f.col1.y,m=g*f.col2.x+x*f.col2.y;g=b.p2.x-c.position.x;x=b.p2.y-c.position.y;f=c.R;b=g*f.col1.x+x*f.col1.y-t;f=g*f.col2.x+x*f.col2.y-m;for(var h=-1,p=0,n=this.m_vertexCount;p<n;){var k=p++;var r=this.m_vertices[k];g=r.x-t;x=r.y-m;r=this.m_normals[k];g=r.x*g+r.y*x;r=r.x*b+r.y*f;if(0==r){if(0>g)return!1}else 0>r&&g<d* +r?(d=g/r,h=k):0<r&&g<e*r&&(e=g/r);if(e<d-Number.MIN_VALUE)return!1}return 0<=h?(a.fraction=d,f=c.R,r=this.m_normals[h],a.normal.x=f.col1.x*r.x+f.col2.x*r.y,a.normal.y=f.col1.y*r.x+f.col2.y*r.y,!0):!1},computeAABB:function(a,b){for(var c=b.R,d=this.m_vertices[0],e=b.position.x+(c.col1.x*d.x+c.col2.x*d.y),g=b.position.y+(c.col1.y*d.x+c.col2.y*d.y),x=e,f=g,t=1,m=this.m_vertexCount;t<m;){var h=t++;d=this.m_vertices[h];h=b.position.x+(c.col1.x*d.x+c.col2.x*d.y);d=b.position.y+(c.col1.y*d.x+c.col2.y*d.y); +e<h||(e=h);g<d||(g=d);x>h||(x=h);f>d||(f=d)}a.lowerBound.x=e-this.m_radius;a.lowerBound.y=g-this.m_radius;a.upperBound.x=x+this.m_radius;a.upperBound.y=f+this.m_radius},computeMass:function(a,b){if(2==this.m_vertexCount)a.center.x=.5*(this.m_vertices[0].x+this.m_vertices[1].x),a.center.y=.5*(this.m_vertices[0].y+this.m_vertices[1].y),a.mass=0,a.I=0;else{for(var c=0,d=0,e=0,g=0,x=0,f=this.m_vertexCount;x<f;){var t=x++,m=this.m_vertices[t],h=t+1<this.m_vertexCount?this.m_vertices[t+1|0]:this.m_vertices[0], +p=m.x-0,n=m.y-0,k=h.x-0,r=h.y-0;t=p*r-n*k;var rb=.5*t;e+=rb;c+=.3333333333333333*rb*(0+m.x+h.x);d+=.3333333333333333*rb*(0+m.y+h.y);m=p;g+=t*(.3333333333333333*(.25*(m*m+k*m+k*k)+(0*m+0*k))+.3333333333333333*(.25*(n*n+r*n+r*r)+(0*n+0*r)))}a.mass=b*e;x=a.center;c*=1/e;d*=1/e;null==d&&(d=0);null==c&&(c=0);x.x=c;x.y=d;a.I=b*g}},computeSubmergedArea:function(a,b,c,d){var e=P.mulTMV(c.R,a,!0),g=b-P.dot(a,c.position),x=[],f=0,t=-1;b=-1;for(var m=!1,h=0,p=this.m_vertexCount;h<p;){a=h++;x[a]=P.dot(e,this.m_vertices[a])- +g;var n=x[a]<-Number.MIN_VALUE;0<a&&(n?m||(t=a-1,++f):m&&(b=a-1,++f));m=n}switch(f){case 0:return m?(a=new qj,this.computeMass(a,1),c=P.mulX(c,a.center),d.x=c.x,d.y=c.y,a.mass):0;case 1:-1==t?t=this.m_vertexCount-1:b=this.m_vertexCount-1}a=(t+1)%this.m_vertexCount;e=(b+1)%this.m_vertexCount;g=(0-x[t])/(x[a]-x[t]);x=(0-x[b])/(x[e]-x[b]);t=new z(this.m_vertices[t].x*(1-g)+this.m_vertices[a].x*g,this.m_vertices[t].y*(1-g)+this.m_vertices[a].y*g);x=new z(this.m_vertices[b].x*(1-x)+this.m_vertices[e].x* +x,this.m_vertices[b].y*(1-x)+this.m_vertices[e].y*x);b=0;g=new z;for(f=this.m_vertices[a];a!=e;)a=(a+1)%this.m_vertexCount,m=a==e?x:this.m_vertices[a],h=.5*((f.x-t.x)*(m.y-t.y)-(f.y-t.y)*(m.x-t.x)),b+=h,g.x+=h*(t.x+f.x+m.x)/3,g.y+=h*(t.y+f.y+m.y)/3,f=m;g.multiply(1/b);c=P.mulX(c,g);d.x=c.x;d.y=c.y;return b},getVertexCount:function(){return this.m_vertexCount},getVertices:function(){return this.m_vertices},getNormals:function(){return this.m_normals},getSupport:function(a){for(var b=0,c=this.m_vertices[0].x* +a.x+this.m_vertices[0].y*a.y,d=1,e=this.m_vertexCount;d<e;){var g=d++,x=this.m_vertices[g].x*a.x+this.m_vertices[g].y*a.y;x>c&&(b=g,c=x)}return b},getSupportVertex:function(a){for(var b=0,c=this.m_vertices[0].x*a.x+this.m_vertices[0].y*a.y,d=1,e=this.m_vertexCount;d<e;){var g=d++,x=this.m_vertices[g].x*a.x+this.m_vertices[g].y*a.y;x>c&&(b=g,c=x)}return this.m_vertices[b]},validate:function(){return!1},reserve:function(a){for(var b=this.m_vertices.length;b<a;){var c=b++;this.m_vertices[c]=new z;this.m_normals[c]= +new z}},m_centroid:null,m_vertices:null,m_normals:null,m_vertexCount:null,__class__:Bb});var zk=function(a,b,c){this._r=255*P.clamp(a,0,1)|0;this._g=255*P.clamp(b,0,1)|0;this._b=255*P.clamp(c,0,1)|0};k["box2D.common.B2Color"]=zk;zk.__name__="box2D.common.B2Color";zk.prototype={set:function(a,b,c){this._r=255*P.clamp(a,0,1)|0;this._g=255*P.clamp(b,0,1)|0;this._b=255*P.clamp(c,0,1)|0},r:null,g:null,b:null,color:null,set_r:function(a){return this._r=255*P.clamp(a,0,1)|0},set_g:function(a){return this._g= +255*P.clamp(a,0,1)|0},set_b:function(a){return this._b=255*P.clamp(a,0,1)|0},get_color:function(){return this._r<<16|this._g<<8|this._b},_r:null,_g:null,_b:null,__class__:zk,__properties__:{get_color:"get_color",set_b:"set_b",set_g:"set_g",set_r:"set_r"}};var aa=function(){};k["box2D.common.B2Settings"]=aa;aa.__name__="box2D.common.B2Settings";aa.b2MixFriction=function(a,b){return Math.sqrt(a*b)};aa.b2MixRestitution=function(a,b){return a>b?a:b};aa.b2Assert=function(a){if(!a)throw R.thrown("Assertion Failed"); +};var Jh=function(a,b,c){this.col1=new We;this.col2=new We;this.col3=new We;null==a&&null==b&&null==c?(this.col1.setZero(),this.col2.setZero(),this.col3.setZero()):(this.col1.setV(a),this.col2.setV(b),this.col3.setV(c))};k["box2D.common.math.B2Mat33"]=Jh;Jh.__name__="box2D.common.math.B2Mat33";Jh.prototype={setVVV:function(a,b,c){this.col1.setV(a);this.col2.setV(b);this.col3.setV(c)},copy:function(){return new Jh(this.col1,this.col2,this.col3)},setM:function(a){this.col1.setV(a.col1);this.col2.setV(a.col2); +this.col3.setV(a.col3)},addM:function(a){this.col1.x+=a.col1.x;this.col1.y+=a.col1.y;this.col1.z+=a.col1.z;this.col2.x+=a.col2.x;this.col2.y+=a.col2.y;this.col2.z+=a.col2.z;this.col3.x+=a.col3.x;this.col3.y+=a.col3.y;this.col3.z+=a.col3.z},setIdentity:function(){this.col1.x=1;this.col2.x=0;this.col3.x=0;this.col1.y=0;this.col2.y=1;this.col3.y=0;this.col1.z=0;this.col2.z=0;this.col3.z=1},setZero:function(){this.col1.x=0;this.col2.x=0;this.col3.x=0;this.col1.y=0;this.col2.y=0;this.col3.y=0;this.col1.z= +0;this.col2.z=0;this.col3.z=0},solve22:function(a,b,c){var d=this.col1.x,e=this.col2.x,g=this.col1.y,x=this.col2.y,f=d*x-e*g;0!=f&&(f=1/f);a.x=f*(x*b-e*c);a.y=f*(d*c-g*b);return a},solve33:function(a,b,c,d){var e=this.col1.x,g=this.col1.y,x=this.col1.z,f=this.col2.x,t=this.col2.y,m=this.col2.z,h=this.col3.x,p=this.col3.y,n=this.col3.z,k=e*(t*n-m*p)+g*(m*h-f*n)+x*(f*p-t*h);0!=k&&(k=1/k);a.x=k*(b*(t*n-m*p)+c*(m*h-f*n)+d*(f*p-t*h));a.y=k*(e*(c*n-d*p)+g*(d*h-b*n)+x*(b*p-c*h));a.z=k*(e*(t*d-m*c)+g*(m* +b-f*d)+x*(f*c-t*b));return a},col1:null,col2:null,col3:null,__class__:Jh};var P=function(){};k["box2D.common.math.B2Math"]=P;P.__name__="box2D.common.math.B2Math";P.__properties__={get_MIN_VALUE:"get_MIN_VALUE",get_MAX_VALUE:"get_MAX_VALUE"};P.isValid=function(a){return isNaN(a)||-Infinity==a||Infinity==a?!1:!0};P.dot=function(a,b){return a.x*b.x+a.y*b.y};P.crossVV=function(a,b){return a.x*b.y-a.y*b.x};P.crossVF=function(a,b,c){null==c&&(c=!1);if(c){c=z.getFromPool();var d=b*a.y;a=-b*a.x;null==a&& +(a=0);null==d&&(d=0);c.x=d;c.y=a}else c=new z(b*a.y,-b*a.x);return c};P.crossFV=function(a,b,c){null==c&&(c=!1);if(c){c=z.getFromPool();var d=-a*b.y;a*=b.x;null==a&&(a=0);null==d&&(d=0);c.x=d;c.y=a}else c=new z(-a*b.y,a*b.x);return c};P.mulMV=function(a,b,c){null==c&&(c=!1);if(c){c=z.getFromPool();var d=a.col1.x*b.x+a.col2.x*b.y;a=a.col1.y*b.x+a.col2.y*b.y;null==a&&(a=0);null==d&&(d=0);c.x=d;c.y=a}else c=new z(a.col1.x*b.x+a.col2.x*b.y,a.col1.y*b.x+a.col2.y*b.y);return c};P.mulTMV=function(a,b,c){null== +c&&(c=!1);if(c){c=z.getFromPool();var d=P.dot(b,a.col1);a=P.dot(b,a.col2);null==a&&(a=0);null==d&&(d=0);c.x=d;c.y=a}else c=new z(P.dot(b,a.col1),P.dot(b,a.col2));return c};P.mulX=function(a,b,c){null==c&&(c=!1);b=P.mulMV(a.R,b,c);b.x+=a.position.x;b.y+=a.position.y;return b};P.mulXT=function(a,b,c){b=P.subtractVVPooled(b,a.position);c=b.x*a.R.col1.x+b.y*a.R.col1.y;b.y=b.x*a.R.col2.x+b.y*a.R.col2.y;b.x=c;return b};P.addVV=function(a,b){return new z(a.x+b.x,a.y+b.y)};P.subtractVV=function(a,b){return new z(a.x- +b.x,a.y-b.y)};P.subtractVVPooled=function(a,b){var c=z.getFromPool(),d=a.x-b.x;a=a.y-b.y;null==a&&(a=0);null==d&&(d=0);c.x=d;c.y=a;return c};P.distance=function(a,b){var c=a.x-b.x;a=a.y-b.y;return Math.sqrt(c*c+a*a)};P.distanceSquared=function(a,b){var c=a.x-b.x;a=a.y-b.y;return c*c+a*a};P.mulFV=function(a,b){return new z(a*b.x,a*b.y)};P.addMM=function(a,b){return vc.fromVV(P.addVV(a.col1,b.col1),P.addVV(a.col2,b.col2))};P.mulMM=function(a,b){return vc.fromVV(P.mulMV(a,b.col1),P.mulMV(a,b.col2))}; +P.mulTMM=function(a,b){var c=new z(P.dot(a.col1,b.col1),P.dot(a.col2,b.col1));a=new z(P.dot(a.col1,b.col2),P.dot(a.col2,b.col2));return vc.fromVV(c,a)};P.abs=function(a){return 0<a?a:-a};P.absV=function(a){return new z(P.abs(a.x),P.abs(a.y))};P.absM=function(a){return vc.fromVV(P.absV(a.col1),P.absV(a.col2))};P.min=function(a,b){return a<b?a:b};P.minV=function(a,b){return new z(P.min(a.x,b.x),P.min(a.y,b.y))};P.max=function(a,b){return a>b?a:b};P.maxV=function(a,b){return new z(P.max(a.x,b.x),P.max(a.y, +b.y))};P.clamp=function(a,b,c){return a<b?b:a>c?c:a};P.clampV=function(a,b,c){return P.maxV(b,P.minV(a,c))};P.swap=function(a,b){var c=a[0];a[0]=b[0];b[0]=c};P.random=function(){return 2*Math.random()-1};P.randomRange=function(a,b){return(b-a)*Math.random()+a};P.nextPowerOfTwo=function(a){a|=a>>1&2147483647;a|=a>>2&1073741823;a|=a>>4&268435455;a|=a>>8&16777215;return(a|a>>16&65535)+1};P.isPowerOfTwo=function(a){return 0<a&&0==(a&a-1)};P.get_MAX_VALUE=function(){return Number.MAX_VALUE};P.get_MIN_VALUE= +function(){return Number.MIN_VALUE};var jh=function(){this.localCenter=new z;this.c0=new z;this.c=new z};k["box2D.common.math.B2Sweep"]=jh;jh.__name__="box2D.common.math.B2Sweep";jh.prototype={set:function(a){var b=this.localCenter,c=a.localCenter;b.x=c.x;b.y=c.y;b=this.c0;c=a.c0;b.x=c.x;b.y=c.y;b=this.c;c=a.c;b.x=c.x;b.y=c.y;this.a0=a.a0;this.a=a.a;this.t0=a.t0},copy:function(){var a=new jh,b=a.localCenter,c=this.localCenter;b.x=c.x;b.y=c.y;b=a.c0;c=this.c0;b.x=c.x;b.y=c.y;b=a.c;c=this.c;b.x=c.x; +b.y=c.y;a.a0=this.a0;a.a=this.a;a.t0=this.t0;return a},getTransform:function(a,b){a.position.x=(1-b)*this.c0.x+b*this.c.x;a.position.y=(1-b)*this.c0.y+b*this.c.y;a.R.set((1-b)*this.a0+b*this.a);b=a.R;a.position.x-=b.col1.x*this.localCenter.x+b.col2.x*this.localCenter.y;a.position.y-=b.col1.y*this.localCenter.x+b.col2.y*this.localCenter.y},advance:function(a){if(this.t0<a&&1-this.t0>Number.MIN_VALUE){var b=(a-this.t0)/(1-this.t0);this.c0.x=(1-b)*this.c0.x+b*this.c.x;this.c0.y=(1-b)*this.c0.y+b*this.c.y; +this.a0=(1-b)*this.a0+b*this.a;this.t0=a}},localCenter:null,c0:null,c:null,a0:null,a:null,t0:null,__class__:jh};var We=function(a,b,c){null==c&&(c=0);null==b&&(b=0);null==a&&(a=0);this.x=a;this.y=b;this.z=c};k["box2D.common.math.B2Vec3"]=We;We.__name__="box2D.common.math.B2Vec3";We.prototype={setZero:function(){this.x=this.y=this.z=0},set:function(a,b,c){this.x=a;this.y=b;this.z=c},setV:function(a){this.x=a.x;this.y=a.y;this.z=a.z},getNegative:function(){return new We(-this.x,-this.y,-this.z)},negativeSelf:function(){this.x= +-this.x;this.y=-this.y;this.z=-this.z},copy:function(){return new We(this.x,this.y,this.z)},add:function(a){this.x+=a.x;this.y+=a.y;this.z+=a.z},subtract:function(a){this.x-=a.x;this.y-=a.y;this.z-=a.z},multiply:function(a){this.x*=a;this.y*=a;this.z*=a},x:null,y:null,z:null,__class__:We};var ua=function(a,b){this.m_xf=new Ve;this.m_sweep=new jh;this.m_linearVelocity=new z;this.m_force=new z;this.m_flags=0;a.bullet&&(this.m_flags|=ua.e_bulletFlag);a.fixedRotation&&(this.m_flags|=ua.e_fixedRotationFlag); +a.allowSleep&&(this.m_flags|=ua.e_allowSleepFlag);a.awake&&(this.m_flags|=ua.e_awakeFlag);a.active&&(this.m_flags|=ua.e_activeFlag);a.ignoreGravity&&(this.m_flags|=ua.e_ignoreGravityFlag);this.m_world=b;b=this.m_xf.position;var c=a.position;b.x=c.x;b.y=c.y;this.m_xf.R.set(a.angle);b=this.m_sweep.localCenter;b.x=0;b.y=0;this.m_sweep.t0=1;this.m_sweep.a0=this.m_sweep.a=a.angle;b=this.m_xf.R;c=this.m_sweep.localCenter;this.m_sweep.c.x=b.col1.x*c.x+b.col2.x*c.y;this.m_sweep.c.y=b.col1.y*c.x+b.col2.y* +c.y;this.m_sweep.c.x+=this.m_xf.position.x;this.m_sweep.c.y+=this.m_xf.position.y;b=this.m_sweep.c0;c=this.m_sweep.c;b.x=c.x;b.y=c.y;this.m_contactList=this.m_controllerList=this.m_jointList=null;this.m_controllerCount=0;this.m_next=this.m_prev=null;b=this.m_linearVelocity;c=a.linearVelocity;b.x=c.x;b.y=c.y;this.m_angularVelocity=a.angularVelocity;this.m_linearDamping=a.linearDamping;this.m_angularDamping=a.angularDamping;b=this.m_force;var d=c=0;null==d&&(d=0);null==c&&(c=0);b.x=c;b.y=d;this.m_sleepTime= +this.m_torque=0;this.m_type=a.type;this.m_invMass=this.m_type==ua.b2_dynamicBody?this.m_mass=1:this.m_mass=0;this.m_invI=this.m_I=0;this.m_inertiaScale=a.inertiaScale;this.m_userData=a.userData;this.m_fixtureList=null;this.m_fixtureCount=0;this.groupID=a.groupID;this.origin=new z;this.size=new z};k["box2D.dynamics.B2Body"]=ua;ua.__name__="box2D.dynamics.B2Body";ua.prototype={connectEdges:function(a,b,c){var d=Math.atan2(b.getDirectionVector().y,b.getDirectionVector().x);c=P.mulFV(Math.tan(.5*(d-c)), +b.getDirectionVector());c=P.subtractVV(c,b.getNormalVector());c=P.mulFV(aa.b2_toiSlop,c);c=P.addVV(c,b.getVertex1());var e=P.addVV(a.getDirectionVector(),b.getDirectionVector());e.normalize();var g=0<P.dot(a.getDirectionVector(),b.getNormalVector());a.setNextEdge(b,c,e,g);b.setPrevEdge(a,c,e,g);return d},createFixture:function(a){if(1==this.m_world.isLocked())return null;var b=new Ff;b.create(this,this.m_xf,a);0!=(this.m_flags&ua.e_activeFlag)&&b.createProxy(this.m_world.m_contactManager.m_broadPhase, +this.m_xf);b.m_next=this.m_fixtureList;this.m_fixtureList=b;++this.m_fixtureCount;b.m_body=this;0<b.m_density&&this.resetMassData();this.m_world.m_flags|=bc.e_newFixture;return b},createFixture2:function(a,b){null==b&&(b=0);var c=new Gf;c.shape=a;c.density=b;return this.createFixture(c)},DestroyFixture:function(a){if(1!=this.m_world.isLocked()){for(var b=this.m_fixtureList,c=null;null!=b;){if(b==a){null!=c?c.m_next=a.m_next:this.m_fixtureList=a.m_next;break}c=b;b=b.m_next}for(b=this.m_contactList;null!= +b;){c=b.contact;b=b.next;var d=c.getFixtureA(),e=c.getFixtureB();a!=d&&a!=e||this.m_world.m_contactManager.destroy(c)}0!=(this.m_flags&ua.e_activeFlag)&&a.destroyProxy(this.m_world.m_contactManager.m_broadPhase);a.destroy();a.m_body=null;a.m_next=null;--this.m_fixtureCount;this.resetMassData()}},setPositionAndAngle:function(a,b){if(1!=this.m_world.isLocked()){this.m_xf.R.set(b);var c=this.m_xf.position;c.x=a.x;c.y=a.y;c=this.m_xf.R;a=this.m_sweep.localCenter;this.m_sweep.c.x=c.col1.x*a.x+c.col2.x* +a.y;this.m_sweep.c.y=c.col1.y*a.x+c.col2.y*a.y;this.m_sweep.c.x+=this.m_xf.position.x;this.m_sweep.c.y+=this.m_xf.position.y;c=this.m_sweep.c0;a=this.m_sweep.c;c.x=a.x;c.y=a.y;this.m_sweep.a0=this.m_sweep.a=b;b=this.m_world.m_contactManager.m_broadPhase;for(c=this.m_fixtureList;null!=c;)c.synchronize(b,this.m_xf,this.m_xf),c=c.m_next;this.m_world.m_contactManager.findNewContacts()}},setPositionFast:function(a){if(1!=this.m_world.isLocked()){var b=this.m_xf.position;b.x=a.x;b.y=a.y;b=this.m_xf.R;a= +this.m_sweep.localCenter;this.m_sweep.c.x=b.col1.x*a.x+b.col2.x*a.y;this.m_sweep.c.y=b.col1.y*a.x+b.col2.y*a.y;this.m_sweep.c.x+=this.m_xf.position.x;this.m_sweep.c.y+=this.m_xf.position.y;b=this.m_sweep.c0;a=this.m_sweep.c;b.x=a.x;b.y=a.y}},setTransform:function(a){this.setPositionAndAngle(a.position,a.getAngle())},getTransform:function(){return this.m_xf},getPosition:function(){return this.m_xf.position},setPosition:function(a){this.setPositionAndAngle(a,this.getAngle())},getAngle:function(){return this.m_sweep.a}, +setAngle:function(a){this.setPositionAndAngle(this.getPosition(),a)},getWorldCenter:function(){return this.m_sweep.c},getLocalCenter:function(){return this.m_sweep.localCenter},setLinearVelocity:function(a){if(this.m_type!=ua.b2_staticBody){var b=this.m_linearVelocity;b.x=a.x;b.y=a.y}},getLinearVelocity:function(){return this.m_linearVelocity},setAngularVelocity:function(a){this.m_type!=ua.b2_staticBody&&(this.m_angularVelocity=a)},getAngularVelocity:function(){return this.m_angularVelocity},getDefinition:function(){var a= +new oi;a.type=this.getType();a.allowSleep=(this.m_flags&ua.e_allowSleepFlag)==ua.e_allowSleepFlag;a.angle=this.getAngle();a.angularDamping=this.m_angularDamping;a.angularVelocity=this.m_angularVelocity;a.fixedRotation=(this.m_flags&ua.e_fixedRotationFlag)==ua.e_fixedRotationFlag;a.bullet=(this.m_flags&ua.e_bulletFlag)==ua.e_bulletFlag;a.awake=(this.m_flags&ua.e_awakeFlag)==ua.e_awakeFlag;a.linearDamping=this.m_linearDamping;var b=a.linearVelocity,c=this.getLinearVelocity();b.x=c.x;b.y=c.y;a.position= +this.getPosition();a.userData=this.getUserData();return a},applyForce:function(a,b){this.m_type==ua.b2_dynamicBody&&(0==this.isAwake()&&this.setAwake(!0),this.m_force.x+=a.x,this.m_force.y+=a.y,this.m_torque+=(b.x-this.m_sweep.c.x)*a.y-(b.y-this.m_sweep.c.y)*a.x)},applyTorque:function(a){this.m_type==ua.b2_dynamicBody&&(0==this.isAwake()&&this.setAwake(!0),this.m_torque+=a)},applyImpulse:function(a,b){this.m_type==ua.b2_dynamicBody&&(0==this.isAwake()&&this.setAwake(!0),this.m_linearVelocity.x+=this.m_invMass* +a.x,this.m_linearVelocity.y+=this.m_invMass*a.y,this.m_angularVelocity+=this.m_invI*((b.x-this.m_sweep.c.x)*a.y-(b.y-this.m_sweep.c.y)*a.x))},split:function(a){for(var b=this.getLinearVelocity().copy(),c=this.getAngularVelocity(),d=this.getWorldCenter(),e=this.m_world.createBody(this.getDefinition()),g=null,x=this.m_fixtureList;null!=x;)if(a(x)){var f=x.m_next;null!=g?g.m_next=f:this.m_fixtureList=f;this.m_fixtureCount--;x.m_next=e.m_fixtureList;e.m_fixtureList=x;e.m_fixtureCount++;x.m_body=e;x=f}else g= +x,x=x.m_next;this.resetMassData();e.resetMassData();g=this.getWorldCenter();a=e.getWorldCenter();g=P.addVV(b,P.crossFV(c,P.subtractVV(g,d)));b=P.addVV(b,P.crossFV(c,P.subtractVV(a,d)));this.setLinearVelocity(g);e.setLinearVelocity(b);this.setAngularVelocity(c);e.setAngularVelocity(c);this.synchronizeFixtures();e.synchronizeFixtures();return e},merge:function(a){for(var b=a.m_fixtureList;null!=b;){var c=b.m_next;a.m_fixtureCount--;b.m_next=this.m_fixtureList;this.m_fixtureList=b;this.m_fixtureCount++; +b.m_body=a;b=c}this.m_fixtureCount=0;this.getWorldCenter();a.getWorldCenter();this.getLinearVelocity().copy();a.getLinearVelocity().copy();this.getAngularVelocity();a.getAngularVelocity();this.resetMassData();this.synchronizeFixtures()},getMass:function(){return this.m_mass},getInertia:function(){return this.m_I},getMassData:function(a){a.mass=this.m_mass;a.I=this.m_I;a=a.center;var b=this.m_sweep.localCenter;a.x=b.x;a.y=b.y},setMassData:function(a){aa.b2Assert(0==this.m_world.isLocked());if(1!=this.m_world.isLocked()&& +this.m_type==ua.b2_dynamicBody){this.m_invI=this.m_I=this.m_invMass=0;this.m_mass=a.mass;0>=this.m_mass&&(this.m_mass=1);this.m_invMass=1/this.m_mass;0<a.I&&0==(this.m_flags&ua.e_fixedRotationFlag)&&(this.m_I=a.I-this.m_mass*(a.center.x*a.center.x+a.center.y*a.center.y),this.m_invI=1/this.m_I);var b=this.m_sweep.c.copy(),c=this.m_sweep.localCenter;a=a.center;c.x=a.x;c.y=a.y;c=this.m_sweep.c0;a=P.mulX(this.m_xf,this.m_sweep.localCenter);c.x=a.x;c.y=a.y;c=this.m_sweep.c;a=this.m_sweep.c0;c.x=a.x;c.y= +a.y;this.m_linearVelocity.x+=this.m_angularVelocity*-(this.m_sweep.c.y-b.y);this.m_linearVelocity.y+=this.m_angularVelocity*(this.m_sweep.c.x-b.x)}},resetMassData:function(){this.m_invI=this.m_I=this.m_invMass=this.m_mass=0;var a=this.m_sweep.localCenter;a.x=0;a.y=0;if(this.m_type!=ua.b2_staticBody&&this.m_type!=ua.b2_kinematicBody){var b=z.make(0,0);for(a=this.m_fixtureList;null!=a;)if(0!=a.m_density){var c=a.getMassData();this.m_mass+=c.mass;b.x+=c.center.x*c.mass;b.y+=c.center.y*c.mass;this.m_I+= +c.I;a=a.m_next}0<this.m_mass?(this.m_invMass=1/this.m_mass,b.x*=this.m_invMass,b.y*=this.m_invMass):this.m_invMass=this.m_mass=1;0<this.m_I&&0==(this.m_flags&ua.e_fixedRotationFlag)?(this.m_I-=this.m_mass*(b.x*b.x+b.y*b.y),this.m_I*=this.m_inertiaScale,aa.b2Assert(0<this.m_I),this.m_invI=1/this.m_I):this.m_invI=this.m_I=0;c=this.m_sweep.c.copy();a=this.m_sweep.localCenter;a.x=b.x;a.y=b.y;a=this.m_sweep.c0;b=P.mulX(this.m_xf,this.m_sweep.localCenter);a.x=b.x;a.y=b.y;a=this.m_sweep.c;b=this.m_sweep.c0; +a.x=b.x;a.y=b.y;this.m_linearVelocity.x+=this.m_angularVelocity*-(this.m_sweep.c.y-c.y);this.m_linearVelocity.y+=this.m_angularVelocity*(this.m_sweep.c.x-c.x)}},getWorldPoint:function(a){var b=this.m_xf.R;a=new z(b.col1.x*a.x+b.col2.x*a.y,b.col1.y*a.x+b.col2.y*a.y);a.x+=this.m_xf.position.x;a.y+=this.m_xf.position.y;return a},getWorldVector:function(a){return P.mulMV(this.m_xf.R,a)},getLocalPoint:function(a){return P.mulXT(this.m_xf,a)},getLocalVector:function(a){return P.mulTMV(this.m_xf.R,a)},getLinearVelocityFromWorldPoint:function(a){return new z(this.m_linearVelocity.x- +this.m_angularVelocity*(a.y-this.m_sweep.c.y),this.m_linearVelocity.y+this.m_angularVelocity*(a.x-this.m_sweep.c.x))},getLinearVelocityFromLocalPoint:function(a){var b=this.m_xf.R;a=new z(b.col1.x*a.x+b.col2.x*a.y,b.col1.y*a.x+b.col2.y*a.y);a.x+=this.m_xf.position.x;a.y+=this.m_xf.position.y;return new z(this.m_linearVelocity.x-this.m_angularVelocity*(a.y-this.m_sweep.c.y),this.m_linearVelocity.y+this.m_angularVelocity*(a.x-this.m_sweep.c.x))},getLinearDamping:function(){return this.m_linearDamping}, +setLinearDamping:function(a){this.m_linearDamping=a},getAngularDamping:function(){return this.m_angularDamping},setAngularDamping:function(a){this.m_angularDamping=a},setType:function(a){if(this.m_type!=a)for(this.m_type=a,this.resetMassData(),this.m_type==ua.b2_staticBody&&(a=this.m_linearVelocity,a.x=0,this.m_angularVelocity=a.y=0),this.setAwake(!0),a=this.m_force,a.x=0,this.m_torque=a.y=0,a=this.m_contactList;null!=a;)a.contact.flagForFiltering(),a=a.next},getType:function(){return this.m_type}, +setBullet:function(a){this.m_flags=a?this.m_flags|ua.e_bulletFlag:this.m_flags&~ua.e_bulletFlag},isBullet:function(){return(this.m_flags&ua.e_bulletFlag)==ua.e_bulletFlag},setSleepingAllowed:function(a){a?this.m_flags|=ua.e_allowSleepFlag:(this.m_flags&=~ua.e_allowSleepFlag,this.setAwake(!0))},setAwake:function(a){a?(this.m_flags|=ua.e_awakeFlag,this.m_sleepTime=0):(this.m_flags&=~ua.e_awakeFlag,this.m_sleepTime=0,a=this.m_linearVelocity,a.x=0,this.m_angularVelocity=a.y=0,a=this.m_force,a.x=0,this.m_torque= +a.y=0)},isAwake:function(){return(this.m_flags&ua.e_awakeFlag)==ua.e_awakeFlag},setFixedRotation:function(a){this.m_flags=a?this.m_flags|ua.e_fixedRotationFlag:this.m_flags&~ua.e_fixedRotationFlag;this.resetMassData()},isFixedRotation:function(){return(this.m_flags&ua.e_fixedRotationFlag)==ua.e_fixedRotationFlag},setActive:function(a){if(a!=this.isActive()){var b;if(a)for(this.m_flags|=ua.e_activeFlag,a=this.m_world.m_contactManager.m_broadPhase,b=this.m_fixtureList;null!=b;)b.createProxy(a,this.m_xf), +b=b.m_next;else{this.m_flags&=~ua.e_activeFlag;a=this.m_world.m_contactManager.m_broadPhase;for(b=this.m_fixtureList;null!=b;)b.destroyProxy(a),b=b.m_next;for(a=this.m_contactList;null!=a;)b=a,a=a.next,this.m_world.m_contactManager.destroy(b.contact);this.m_contactList=null}}},isActive:function(){return(this.m_flags&ua.e_activeFlag)==ua.e_activeFlag},isSleepingAllowed:function(){return(this.m_flags&ua.e_allowSleepFlag)==ua.e_allowSleepFlag},getFixtureList:function(){return this.m_fixtureList},getJointList:function(){return this.m_jointList}, +getControllerList:function(){return this.m_controllerList},getContactList:function(){return this.m_contactList},getNext:function(){return this.m_next},getUserData:function(){return this.m_userData},setUserData:function(a){this.m_userData=a},getWorld:function(){return this.m_world},setFriction:function(a){for(var b=this.m_fixtureList;null!=b;)b.m_friction=a,b=b.m_next},setBounciness:function(a){for(var b=this.m_fixtureList;null!=b;)b.m_restitution=a,b=b.m_next},setPaused:function(a){this.m_flags=a? +this.m_flags|ua.e_pausedFlag:this.m_flags&~ua.e_pausedFlag},isPaused:function(){return(this.m_flags&ua.e_pausedFlag)==ua.e_pausedFlag},setIgnoreGravity:function(a){this.m_flags=a?this.m_flags|ua.e_ignoreGravityFlag:this.m_flags&~ua.e_ignoreGravityFlag},isIgnoringGravity:function(){return(this.m_flags&ua.e_ignoreGravityFlag)==ua.e_ignoreGravityFlag},setAlwaysActive:function(a){this.m_flags=a?this.m_flags|ua.e_alwaysActiveFlag:this.m_flags&~ua.e_alwaysActiveFlag},isAlwaysActive:function(){return(this.m_flags& +ua.e_alwaysActiveFlag)==ua.e_alwaysActiveFlag},synchronizeFixtures:function(){var a=ua.s_xf1;a.R.set(this.m_sweep.a0);var b=a.R,c=this.m_sweep.localCenter;a.position.x=this.m_sweep.c0.x-(b.col1.x*c.x+b.col2.x*c.y);a.position.y=this.m_sweep.c0.y-(b.col1.y*c.x+b.col2.y*c.y);b=this.m_world.m_contactManager.m_broadPhase;for(c=this.m_fixtureList;null!=c;)c.synchronize(b,a,this.m_xf),c=c.m_next},synchronizeTransform:function(){this.m_xf.R.set(this.m_sweep.a);var a=this.m_xf.R,b=this.m_sweep.localCenter; +this.m_xf.position.x=this.m_sweep.c.x-(a.col1.x*b.x+a.col2.x*b.y);this.m_xf.position.y=this.m_sweep.c.y-(a.col1.y*b.x+a.col2.y*b.y)},shouldCollide:function(a){if(this.m_type!=ua.b2_dynamicBody&&a.m_type!=ua.b2_dynamicBody)return!1;for(var b=this.m_jointList;null!=b;){if(b.other==a&&0==b.joint.m_collideConnected)return!1;b=b.next}return!0},advance:function(a){this.m_sweep.advance(a);a=this.m_sweep.c;var b=this.m_sweep.c0;a.x=b.x;a.y=b.y;this.m_sweep.a=this.m_sweep.a0;this.synchronizeTransform()},m_flags:null, +m_type:null,m_islandIndex:null,m_xf:null,m_sweep:null,m_linearVelocity:null,m_angularVelocity:null,m_force:null,m_torque:null,m_world:null,m_prev:null,m_next:null,m_fixtureList:null,m_fixtureCount:null,m_controllerList:null,m_controllerCount:null,m_jointList:null,m_contactList:null,m_mass:null,m_invMass:null,m_I:null,m_invI:null,m_inertiaScale:null,m_linearDamping:null,m_angularDamping:null,m_sleepTime:null,m_userData:null,groupID:null,origin:null,size:null,__class__:ua};var oi=function(){this.position= +new z;this.linearVelocity=new z;this.userData=null;this.angularDamping=this.linearDamping=this.angularVelocity=this.angle=0;this.awake=this.allowSleep=!0;this.bullet=this.fixedRotation=!1;this.type=ua.b2_staticBody;this.active=!0;this.inertiaScale=1;this.groupID=3};k["box2D.dynamics.B2BodyDef"]=oi;oi.__name__="box2D.dynamics.B2BodyDef";oi.prototype={type:null,position:null,angle:null,linearVelocity:null,angularVelocity:null,linearDamping:null,angularDamping:null,allowSleep:null,awake:null,fixedRotation:null, +bullet:null,active:null,userData:null,inertiaScale:null,groupID:null,ignoreGravity:null,friction:null,bounciness:null,mass:null,aMass:null,__class__:oi};var sj=function(){};k["box2D.dynamics.B2ContactFilter"]=sj;sj.__name__="box2D.dynamics.B2ContactFilter";sj.prototype={shouldCollide:function(a,b){var c=a.m_body.groupID,d=b.m_body.groupID;a=a.groupID;b=b.groupID;-1E3!=a&&(c=a);-1E3!=b&&(d=b);return-1==c||-1==d?!1:-2==c||-2==d?1==c||1==d?!1:!0:va.collisionMap[c][d]},rayCollide:function(a,b){return null== +a?!0:this.shouldCollide(O.__cast(a,Ff),b)},__class__:sj};var En=function(){this.normalImpulses=[];this.tangentImpulses=[]};k["box2D.dynamics.B2ContactImpulse"]=En;En.__name__="box2D.dynamics.B2ContactImpulse";En.prototype={normalImpulses:null,tangentImpulses:null,__class__:En};var Lg=function(){};k["box2D.dynamics.B2ContactListener"]=Lg;Lg.__name__="box2D.dynamics.B2ContactListener";Lg.prototype={beginContact:function(a){2147483647<Lg.KEY_LOCK&&(Lg.KEY_LOCK=-2147483648);a.key=Lg.KEY_LOCK++;var b= +a.getFixtureA().getUserData(),c=a.getFixtureB().getUserData(),d=b instanceof kd,e=c instanceof kd;!d||e||c instanceof Mg?!e||d||b instanceof Mg?(null!=b.contacts&&(b.contacts.set(a.key,a),b.contactCount++),null!=c.contacts&&(c.contacts.set(a.key,a),c.contactCount++)):(O.__cast(c,kd).addActor(b),null!=b.regionContacts&&b.regionContacts.set(a.key,a)):(O.__cast(b,kd).addActor(c),null!=c.regionContacts&&c.regionContacts.set(a.key,a))},endContact:function(a){var b=a.getFixtureA().getUserData(),c=a.getFixtureB().getUserData(), +d=b instanceof kd,e=c instanceof kd;if(d&&!e){d=!1;null!=c.regionContacts&&c.regionContacts.unset(a.key);for(a=c.regionContacts.iterator();a.hasNext();){e=a.next();if(e.getFixtureA().getUserData()instanceof kd&&e.getFixtureA().getUserData()==b){d=!0;break}if(e.getFixtureB().getUserData()instanceof kd&&e.getFixtureB().getUserData()==b){d=!0;break}}d&&!c.recycled||O.__cast(b,kd).removeActor(c)}else if(e&&!d){d=!1;null!=b.regionContacts&&b.regionContacts.unset(a.key);for(a=b.regionContacts.iterator();a.hasNext();){e= +a.next();if(e.getFixtureA().getUserData()instanceof kd&&e.getFixtureA().getUserData()==c){d=!0;break}if(e.getFixtureB().getUserData()instanceof kd&&e.getFixtureB().getUserData()==c){d=!0;break}}d&&!b.recycled||O.__cast(c,kd).removeActor(b)}else{if(null!=b.collisions){d=b.collisions;e=a.key;var g=d.mH,x=g.mHash[73856093*e&g.mMask];if(-1==x)e=-2147483648;else if(g=g.mData,g[x]==e)e=g[x+1];else{var f=-2147483648;for(x=g[x+2];-1!=x;){if(g[x]==e){f=g[x+1];break}x=g[x+2]}e=f}g=-2147483648==e?null:d.mVals[e]; +if(null!=g)for(b.collisions.unset(a.key),b.collisionsCount--;0<g.points.length;)Kd.free(g.points.pop())}null!=b.contacts&&b.contacts.unset(a.key)&&b.contactCount--;if(null!=c.collisions){d=c.collisions;e=a.key;g=d.mH;x=g.mHash[73856093*e&g.mMask];if(-1==x)e=-2147483648;else if(g=g.mData,g[x]==e)e=g[x+1];else{f=-2147483648;for(x=g[x+2];-1!=x;){if(g[x]==e){f=g[x+1];break}x=g[x+2]}e=f}g=-2147483648==e?null:d.mVals[e];if(null!=g)for(c.collisions.unset(a.key),c.collisionsCount--;0<g.points.length;)Kd.free(g.points.pop())}null!= +c.contacts&&c.contacts.unset(a.key)&&c.contactCount--}},preSolve:function(a,b){qc.preSolve(a,b)},postSolve:function(a,b){},__class__:Lg};var Ak=function(){this.m_world=null;this.m_contactCount=0;this.m_contactFilter=sj.b2_defaultFilter;this.m_contactListener=Lg.b2_defaultListener;this.m_contactFactory=new Fn(this.m_allocator);this.m_broadPhase=new xk};k["box2D.dynamics.B2ContactManager"]=Ak;Ak.__name__="box2D.dynamics.B2ContactManager";Ak.prototype={addPair:function(a,b){var c=a.getBody(),d=b.getBody(); +if(c!=d){for(var e=d.getContactList();null!=e;){if(e.other==c){var g=e.contact.getFixtureA(),x=e.contact.getFixtureB();if(g==a&&x==b||g==b&&x==a)return}e=e.next}0!=d.shouldCollide(c)&&0!=this.m_contactFilter.shouldCollide(a,b)&&(e=this.m_contactFactory.create(a,b),a=e.getFixtureA(),b=e.getFixtureB(),c=a.m_body,d=b.m_body,e.m_prev=null,e.m_next=this.m_world.m_contactList,null!=this.m_world.m_contactList&&(this.m_world.m_contactList.m_prev=e),this.m_world.m_contactList=e,e.m_nodeA.contact=e,e.m_nodeA.other= +d,e.m_nodeA.prev=null,e.m_nodeA.next=c.m_contactList,null!=c.m_contactList&&(c.m_contactList.prev=e.m_nodeA),c.m_contactList=e.m_nodeA,e.m_nodeB.contact=e,e.m_nodeB.other=c,e.m_nodeB.prev=null,e.m_nodeB.next=d.m_contactList,null!=d.m_contactList&&(d.m_contactList.prev=e.m_nodeB),d.m_contactList=e.m_nodeB,++this.m_world.m_contactCount)}},findNewContacts:function(){this.m_broadPhase.updatePairs(this)},destroy:function(a){var b=a.getFixtureA(),c=a.getFixtureB();b=b.getBody();c=c.getBody();a.isTouching()&& +this.m_contactListener.endContact(a);null!=a.m_prev&&(a.m_prev.m_next=a.m_next);null!=a.m_next&&(a.m_next.m_prev=a.m_prev);a==this.m_world.m_contactList&&(this.m_world.m_contactList=a.m_next);null!=a.m_nodeA.prev&&(a.m_nodeA.prev.next=a.m_nodeA.next);null!=a.m_nodeA.next&&(a.m_nodeA.next.prev=a.m_nodeA.prev);a.m_nodeA==b.m_contactList&&(b.m_contactList=a.m_nodeA.next);null!=a.m_nodeB.prev&&(a.m_nodeB.prev.next=a.m_nodeB.next);null!=a.m_nodeB.next&&(a.m_nodeB.next.prev=a.m_nodeB.prev);a.m_nodeB==c.m_contactList&& +(c.m_contactList=a.m_nodeB.next);this.m_contactFactory.destroy(a);--this.m_contactCount},collide:function(){for(var a=this.m_world.m_contactList;null!=a;){var b=a.getFixtureA(),c=a.getFixtureB(),d=b.getBody(),e=c.getBody();if(0==d.isAwake()&&0==e.isAwake())a=a.getNext();else{if(0!=(a.m_flags&Xa.e_filterFlag)){if(0==e.shouldCollide(d)){b=a;a=b.getNext();this.destroy(b);continue}if(0==this.m_contactFilter.shouldCollide(b,c)){b=a;a=b.getNext();this.destroy(b);continue}a.m_flags&=~Xa.e_filterFlag}0== +this.m_broadPhase.testOverlap(b.m_proxy,c.m_proxy)?(b=a,a=b.getNext(),this.destroy(b)):(a.update(this.m_contactListener),a=a.getNext())}}},m_world:null,m_broadPhase:null,m_contactList:null,m_contactCount:null,m_contactFilter:null,m_contactListener:null,m_contactFactory:null,m_allocator:null,__class__:Ak};var De=function(){this.m_xformScale=this.m_fillAlpha=this.m_alpha=this.m_lineThickness=this.m_drawScale=1;this.m_drawFlags=0};k["box2D.dynamics.B2DebugDraw"]=De;De.__name__="box2D.dynamics.B2DebugDraw"; +De.prototype={setFlags:function(a){this.m_drawFlags=a},getFlags:function(){return this.m_drawFlags},appendFlags:function(a){this.m_drawFlags|=a},clearFlags:function(a){this.m_drawFlags&=~a},setSprite:function(a){this.m_sprite=a},getSprite:function(){return this.m_sprite},setDrawScale:function(a){this.m_drawScale=a},getDrawScale:function(){return this.m_drawScale},setLineThickness:function(a){this.m_lineThickness=a},getLineThickness:function(){return this.m_lineThickness},setAlpha:function(a){this.m_alpha= +a},getAlpha:function(){return this.m_alpha},setFillAlpha:function(a){this.m_fillAlpha=a},getFillAlpha:function(){return this.m_fillAlpha},setXFormScale:function(a){this.m_xformScale=a},getXFormScale:function(){return this.m_xformScale},drawPolygon:function(a,b,c){this.m_sprite.get_graphics().lineStyle(this.m_lineThickness,c.get_color(),this.m_alpha);this.m_sprite.get_graphics().moveTo(a[0].x*this.m_drawScale,a[0].y*this.m_drawScale);for(c=0;c<b;){var d=c++;this.m_sprite.get_graphics().lineTo(a[d].x* +this.m_drawScale,a[d].y*this.m_drawScale)}this.m_sprite.get_graphics().lineTo(a[0].x*this.m_drawScale,a[0].y*this.m_drawScale)},drawSolidPolygon:function(a,b,c){this.m_sprite.get_graphics().lineStyle(this.m_lineThickness,c.get_color(),this.m_alpha);this.m_sprite.get_graphics().moveTo(a[0].x*this.m_drawScale,a[0].y*this.m_drawScale);this.m_sprite.get_graphics().beginFill(c.get_color(),this.m_fillAlpha);for(c=0;c<b;){var d=c++;this.m_sprite.get_graphics().lineTo(a[d].x*this.m_drawScale,a[d].y*this.m_drawScale)}this.m_sprite.get_graphics().lineTo(a[0].x* +this.m_drawScale,a[0].y*this.m_drawScale);this.m_sprite.get_graphics().endFill()},drawCircle:function(a,b,c){this.m_sprite.get_graphics().lineStyle(this.m_lineThickness,c.get_color(),this.m_alpha);this.m_sprite.get_graphics().drawCircle(a.x*this.m_drawScale,a.y*this.m_drawScale,b*this.m_drawScale)},drawSolidCircle:function(a,b,c,d){this.m_sprite.get_graphics().lineStyle(this.m_lineThickness,d.get_color(),this.m_alpha);this.m_sprite.get_graphics().moveTo(0,0);this.m_sprite.get_graphics().beginFill(d.get_color(), +this.m_fillAlpha);this.m_sprite.get_graphics().drawCircle(a.x*this.m_drawScale,a.y*this.m_drawScale,b*this.m_drawScale);this.m_sprite.get_graphics().endFill();this.m_sprite.get_graphics().moveTo(a.x*this.m_drawScale,a.y*this.m_drawScale);this.m_sprite.get_graphics().lineTo((a.x+c.x*b)*this.m_drawScale,(a.y+c.y*b)*this.m_drawScale)},drawSegment:function(a,b,c){this.m_sprite.get_graphics().lineStyle(this.m_lineThickness,c.get_color(),this.m_alpha);this.m_sprite.get_graphics().moveTo(a.x*this.m_drawScale, +a.y*this.m_drawScale);this.m_sprite.get_graphics().lineTo(b.x*this.m_drawScale,b.y*this.m_drawScale)},drawTransform:function(a){this.m_sprite.get_graphics().lineStyle(this.m_lineThickness,16711680,this.m_alpha);this.m_sprite.get_graphics().moveTo(a.position.x*this.m_drawScale,a.position.y*this.m_drawScale);this.m_sprite.get_graphics().lineTo((a.position.x+this.m_xformScale*a.R.col1.x)*this.m_drawScale,(a.position.y+this.m_xformScale*a.R.col1.y)*this.m_drawScale);this.m_sprite.get_graphics().lineStyle(this.m_lineThickness, +65280,this.m_alpha);this.m_sprite.get_graphics().moveTo(a.position.x*this.m_drawScale,a.position.y*this.m_drawScale);this.m_sprite.get_graphics().lineTo((a.position.x+this.m_xformScale*a.R.col2.x)*this.m_drawScale,(a.position.y+this.m_xformScale*a.R.col2.y)*this.m_drawScale)},m_drawFlags:null,m_sprite:null,m_drawScale:null,m_lineThickness:null,m_alpha:null,m_fillAlpha:null,m_xformScale:null,__class__:De};var vt=function(){};k["box2D.dynamics.B2DestructionListener"]=vt;vt.__name__="box2D.dynamics.B2DestructionListener"; +vt.prototype={sayGoodbyeJoint:function(a){},sayGoodbyeFixture:function(a){},__class__:vt};var tj=function(){this.categoryBits=1;this.maskBits=65535;this.groupIndex=0};k["box2D.dynamics.B2FilterData"]=tj;tj.__name__="box2D.dynamics.B2FilterData";tj.prototype={copy:function(){var a=new tj;a.categoryBits=this.categoryBits;a.maskBits=this.maskBits;a.groupIndex=this.groupIndex;return a},categoryBits:null,maskBits:null,groupIndex:null,__class__:tj};var Ff=function(){this.m_filter=new tj;this.m_aabb=new ka; +this.m_shape=this.m_next=this.m_body=this.m_userData=null;this.m_restitution=this.m_friction=this.m_density=0;this.groupID=3};k["box2D.dynamics.B2Fixture"]=Ff;Ff.__name__="box2D.dynamics.B2Fixture";Ff.prototype={getType:function(){return this.m_shape.getType()},getShape:function(){return this.m_shape},setSensor:function(a){if(this.m_isSensor!=a&&(this.m_isSensor=a,null!=this.m_body))for(a=this.m_body.getContactList();null!=a;){var b=a.contact,c=b.getFixtureA(),d=b.getFixtureB();c!=this&&d!=this|| +b.setSensor(c.isSensor()||d.isSensor());a=a.next}},isSensor:function(){return this.m_isSensor},setFilterData:function(a){this.m_filter=a.copy();if(null==this.m_body)for(a=this.m_body.getContactList();null!=a;){var b=a.contact,c=b.getFixtureA(),d=b.getFixtureB();c!=this&&d!=this||b.flagForFiltering();a=a.next}},getFilterData:function(){return this.m_filter.copy()},getBody:function(){return this.m_body},getNext:function(){return this.m_next},getUserData:function(){return this.m_userData},SetUserData:function(a){this.m_userData= +a},testPoint:function(a){return this.m_shape.testPoint(this.m_body.getTransform(),a)},rayCast:function(a,b){return this.m_shape.rayCast(a,b,this.m_body.getTransform())},getMassData:function(a){null==a&&(a=new qj);this.m_shape.computeMass(a,this.m_density);return a},setDensity:function(a){this.m_density=a},getDensity:function(){return this.m_density},getFriction:function(){return this.m_friction},setFriction:function(a){this.m_friction=a},getRestitution:function(){return this.m_restitution},setRestitution:function(a){this.m_restitution= +a},getAABB:function(){return this.m_aabb},create:function(a,b,c){this.m_userData=c.userData;this.m_friction=c.friction;this.m_restitution=c.restitution;this.m_body=a;this.m_next=null;this.m_filter=c.filter.copy();this.m_isSensor=c.isSensor;this.m_shape=c.shape.copy();this.m_density=c.density;this.groupID=c.groupID},destroy:function(){this.m_shape=null},createProxy:function(a,b){this.m_shape.computeAABB(this.m_aabb,b);this.m_proxy=a.createProxy(this.m_aabb,this)},destroyProxy:function(a){null!=this.m_proxy&& +(a.destroyProxy(this.m_proxy),this.m_proxy=null)},synchronize:function(a,b,c){null!=this.m_proxy&&(this.m_shape.computeAABB(Ff.tempAABB1,b),this.m_shape.computeAABB(Ff.tempAABB2,c),this.m_aabb.combine(Ff.tempAABB1,Ff.tempAABB2),b=P.subtractVVPooled(c.position,b.position),a.moveProxy(this.m_proxy,this.m_aabb,b))},m_massData:null,m_aabb:null,m_density:null,m_next:null,m_body:null,m_shape:null,m_friction:null,m_restitution:null,m_proxy:null,m_filter:null,m_isSensor:null,m_userData:null,groupID:null, +__class__:Ff};var Gf=function(){this.filter=new tj;this.userData=this.shape=null;this.friction=.2;this.density=this.restitution=0;this.filter.categoryBits=1;this.filter.maskBits=65535;this.filter.groupIndex=0;this.isSensor=!1;this.groupID=3};k["box2D.dynamics.B2FixtureDef"]=Gf;Gf.__name__="box2D.dynamics.B2FixtureDef";Gf.prototype={shape:null,userData:null,friction:null,restitution:null,density:null,isSensor:null,filter:null,groupID:null,__class__:Gf};var Kh=function(){this.m_bodies=[];this.m_contacts= +[];this.m_joints=[]};k["box2D.dynamics.B2Island"]=Kh;Kh.__name__="box2D.dynamics.B2Island";Kh.prototype={initialize:function(a,b,c,d,e,g){this.m_bodyCapacity=a;this.m_contactCapacity=b;this.m_jointCapacity=c;this.m_jointCount=this.m_contactCount=this.m_bodyCount=0;this.m_allocator=d;this.m_listener=e;this.m_contactSolver=g;d=this.m_bodies.length;for(e=a;d<e;)a=d++,this.m_bodies[a]=null;d=this.m_contacts.length;for(e=b;d<e;)a=d++,this.m_contacts[a]=null;d=this.m_joints.length;for(e=c;d<e;)a=d++,this.m_joints[a]= +null},clear:function(){this.m_jointCount=this.m_contactCount=this.m_bodyCount=0},solve:function(a,b,c){for(var d,e,g=0,x=this.m_bodyCount;g<x;)d=g++,d=this.m_bodies[d],d.getType()==ua.b2_dynamicBody&&(d.isIgnoringGravity()?(d.m_linearVelocity.x+=a.dt*d.m_invMass*d.m_force.x,d.m_linearVelocity.y+=a.dt*d.m_invMass*d.m_force.y):(d.m_linearVelocity.x+=a.dt*(b.x+d.m_invMass*d.m_force.x),d.m_linearVelocity.y+=a.dt*(b.y+d.m_invMass*d.m_force.y)),d.m_angularVelocity+=a.dt*d.m_invI*d.m_torque,d.m_linearVelocity.multiply(P.clamp(1- +a.dt*d.m_linearDamping,0,1)),d.m_angularVelocity*=P.clamp(1-a.dt*d.m_angularDamping,0,1));this.m_contactSolver.initialize(a,this.m_contacts,this.m_contactCount,this.m_allocator);b=this.m_contactSolver;b.initVelocityConstraints(a);g=0;for(x=this.m_jointCount;g<x;)d=g++,e=this.m_joints[d],e.initVelocityConstraints(a);g=0;for(x=a.velocityIterations;g<x;){g++;d=0;for(var f=this.m_jointCount;d<f;)e=d++,e=this.m_joints[e],e.solveVelocityConstraints(a);b.solveVelocityConstraints()}g=0;for(x=this.m_jointCount;g< +x;)d=g++,e=this.m_joints[d],e.finalizeVelocityConstraints();b.finalizeVelocityConstraints();g=0;for(x=this.m_bodyCount;g<x;)if(d=g++,d=this.m_bodies[d],d.getType()!=ua.b2_staticBody){f=a.dt*d.m_linearVelocity.x;var t=a.dt*d.m_linearVelocity.y;f*f+t*t>aa.b2_maxTranslationSquared&&(d.m_linearVelocity.normalize(),d.m_linearVelocity.x=d.m_linearVelocity.x*aa.b2_maxTranslation*a.inv_dt,d.m_linearVelocity.y=d.m_linearVelocity.y*aa.b2_maxTranslation*a.inv_dt);f=a.dt*d.m_angularVelocity;f*f>aa.b2_maxRotationSquared&& +(d.m_angularVelocity=0>d.m_angularVelocity?-aa.b2_maxRotation*a.inv_dt:aa.b2_maxRotation*a.inv_dt);f=d.m_sweep.c0;t=d.m_sweep.c;f.x=t.x;f.y=t.y;d.m_sweep.a0=d.m_sweep.a;d.m_sweep.c.x+=a.dt*d.m_linearVelocity.x;d.m_sweep.c.y+=a.dt*d.m_linearVelocity.y;d.m_sweep.a+=a.dt*d.m_angularVelocity;d.synchronizeTransform()}g=0;for(x=a.positionIterations;g<x;){g++;t=b.solvePositionConstraints(aa.b2_contactBaumgarte);var m=!0;d=0;for(f=this.m_jointCount;d<f;)e=d++,e=this.m_joints[e],e=e.solvePositionConstraints(aa.b2_contactBaumgarte), +m=m&&e;if(t&&m)break}this.report(b.m_constraints);if(c){c=Number.MAX_VALUE;b=aa.b2_linearSleepTolerance*aa.b2_linearSleepTolerance;f=aa.b2_angularSleepTolerance*aa.b2_angularSleepTolerance;g=0;for(x=this.m_bodyCount;g<x;)d=g++,d=this.m_bodies[d],d.getType()!=ua.b2_staticBody&&(0==(d.m_flags&ua.e_allowSleepFlag)&&(c=d.m_sleepTime=0),0==(d.m_flags&ua.e_allowSleepFlag)||d.m_angularVelocity*d.m_angularVelocity>f||P.dot(d.m_linearVelocity,d.m_linearVelocity)>b?c=d.m_sleepTime=0:(d.m_sleepTime+=a.dt,c= +P.min(c,d.m_sleepTime)));if(c>=aa.b2_timeToSleep)for(g=0,x=this.m_bodyCount;g<x;)d=g++,d=this.m_bodies[d],d.setAwake(!1)}},solveTOI:function(a){this.m_contactSolver.initialize(a,this.m_contacts,this.m_contactCount,this.m_allocator);for(var b=this.m_contactSolver,c=0,d=this.m_jointCount;c<d;){var e=c++;this.m_joints[e].initVelocityConstraints(a)}c=0;for(d=a.velocityIterations;c<d;){c++;b.solveVelocityConstraints();e=0;for(var g=this.m_jointCount;e<g;){var x=e++;this.m_joints[x].solveVelocityConstraints(a)}}c= +0;for(d=this.m_bodyCount;c<d;)e=c++,e=this.m_bodies[e],e.getType()!=ua.b2_staticBody&&(g=a.dt*e.m_linearVelocity.x,x=a.dt*e.m_linearVelocity.y,g*g+x*x>aa.b2_maxTranslationSquared&&(e.m_linearVelocity.normalize(),e.m_linearVelocity.x=e.m_linearVelocity.x*aa.b2_maxTranslation*a.inv_dt,e.m_linearVelocity.y=e.m_linearVelocity.y*aa.b2_maxTranslation*a.inv_dt),g=a.dt*e.m_angularVelocity,g*g>aa.b2_maxRotationSquared&&(e.m_angularVelocity=0>e.m_angularVelocity?-aa.b2_maxRotation*a.inv_dt:aa.b2_maxRotation* +a.inv_dt),g=e.m_sweep.c0,x=e.m_sweep.c,g.x=x.x,g.y=x.y,e.m_sweep.a0=e.m_sweep.a,e.m_sweep.c.x+=a.dt*e.m_linearVelocity.x,e.m_sweep.c.y+=a.dt*e.m_linearVelocity.y,e.m_sweep.a+=a.dt*e.m_angularVelocity,e.synchronizeTransform());c=0;for(d=a.positionIterations;c<d;){c++;a=b.solvePositionConstraints(.75);var f=!0;e=0;for(g=this.m_jointCount;e<g;)x=e++,x=this.m_joints[x].solvePositionConstraints(aa.b2_contactBaumgarte),f=f&&x;if(a&&f)break}this.report(b.m_constraints)},report:function(a){if(null!=this.m_listener)for(var b= +0,c=this.m_contactCount;b<c;){var d=b++,e=this.m_contacts[d];d=a[d];for(var g=0,x=d.pointCount;g<x;){var f=g++;Kh.s_impulse.normalImpulses[f]=d.points[f].normalImpulse;Kh.s_impulse.tangentImpulses[f]=d.points[f].tangentImpulse}this.m_listener.postSolve(e,Kh.s_impulse)}},addBody:function(a){a.m_islandIndex=this.m_bodyCount;this.m_bodies[this.m_bodyCount++]=a},addContact:function(a){this.m_contacts[this.m_contactCount++]=a},addJoint:function(a){this.m_joints[this.m_jointCount++]=a},m_allocator:null, +m_listener:null,m_contactSolver:null,m_bodies:null,m_contacts:null,m_joints:null,m_bodyCount:null,m_jointCount:null,m_contactCount:null,m_bodyCapacity:null,m_contactCapacity:null,m_jointCapacity:null,__class__:Kh};var uj=function(){};k["box2D.dynamics.B2TimeStep"]=uj;uj.__name__="box2D.dynamics.B2TimeStep";uj.prototype={set:function(a){this.dt=a.dt;this.inv_dt=a.inv_dt;this.positionIterations=a.positionIterations;this.velocityIterations=a.velocityIterations;this.warmStarting=a.warmStarting},dt:null, +inv_dt:null,dtRatio:null,velocityIterations:null,positionIterations:null,warmStarting:null,__class__:uj};var bc=function(a,b){this.pointQueryCallback=new Bk;this.shapeQueryCallback=new Ck;this.aabbQueryCallback=new Dk;this.s_stack=[];this.m_contactManager=new Ak;this.m_contactSolver=new Ee;this.m_island=new Kh;this.m_controllerList=this.m_jointList=this.m_contactList=this.m_bodyList=this.m_debugDraw=this.m_destructionListener=null;this.m_controllerCount=this.m_jointCount=this.m_contactCount=this.m_bodyCount= +0;bc.m_warmStarting=!0;bc.m_continuousPhysics=!1;this.m_allowSleep=b;this.m_gravity=a;this.m_flags=this.m_inv_dt0=0;this.m_contactManager.m_world=this;a=new oi;this.m_groundBody=this.createBody(a)};k["box2D.dynamics.B2World"]=bc;bc.__name__="box2D.dynamics.B2World";bc.prototype={setDestructionListener:function(a){this.m_destructionListener=a},setContactFilter:function(a){this.m_contactManager.m_contactFilter=a},setContactListener:function(a){this.m_contactManager.m_contactListener=a},setDebugDraw:function(a){this.m_debugDraw= +a},setBroadPhase:function(a){var b=this.m_contactManager.m_broadPhase;this.m_contactManager.m_broadPhase=a;for(var c=this.m_bodyList;null!=c;){for(var d=c.m_fixtureList;null!=d;)d.m_proxy=a.createProxy(b.getFatAABB(d.m_proxy),d),d=d.m_next;c=c.m_next}},validate:function(){this.m_contactManager.m_broadPhase.validate()},getProxyCount:function(){return this.m_contactManager.m_broadPhase.getProxyCount()},createBody:function(a){if(1==this.isLocked())return null;a=new ua(a,this);a.m_prev=null;a.m_next= +this.m_bodyList;null!=this.m_bodyList&&(this.m_bodyList.m_prev=a);this.m_bodyList=a;++this.m_bodyCount;return a},destroyBody:function(a){if(1!=this.isLocked()){for(var b=a.m_jointList;null!=b;){var c=b;b=b.next;null!=this.m_destructionListener&&this.m_destructionListener.sayGoodbyeJoint(c.joint);this.destroyJoint(c.joint)}for(b=a.m_controllerList;null!=b;)c=b,b=b.nextController,c.controller.removeBody(a);for(b=a.m_contactList;null!=b;)c=b,b=b.next,this.m_contactManager.destroy(c.contact);a.m_contactList= +null;for(b=a.m_fixtureList;null!=b;)c=b,b=b.m_next,null!=this.m_destructionListener&&this.m_destructionListener.sayGoodbyeFixture(c),c.destroyProxy(this.m_contactManager.m_broadPhase),c.destroy();a.m_fixtureList=null;a.m_fixtureCount=0;null!=a.m_prev&&(a.m_prev.m_next=a.m_next);null!=a.m_next&&(a.m_next.m_prev=a.m_prev);a==this.m_bodyList&&(this.m_bodyList=a.m_next);--this.m_bodyCount}},createJoint:function(a){var b=Qb.create(a,null);b.m_prev=null;b.m_next=this.m_jointList;null!=this.m_jointList&& +(this.m_jointList.m_prev=b);this.m_jointList=b;++this.m_jointCount;b.m_edgeA.joint=b;b.m_edgeA.other=b.m_bodyB;b.m_edgeA.prev=null;b.m_edgeA.next=b.m_bodyA.m_jointList;null!=b.m_bodyA.m_jointList&&(b.m_bodyA.m_jointList.prev=b.m_edgeA);b.m_bodyA.m_jointList=b.m_edgeA;b.m_edgeB.joint=b;b.m_edgeB.other=b.m_bodyA;b.m_edgeB.prev=null;b.m_edgeB.next=b.m_bodyB.m_jointList;null!=b.m_bodyB.m_jointList&&(b.m_bodyB.m_jointList.prev=b.m_edgeB);b.m_bodyB.m_jointList=b.m_edgeB;var c=a.bodyA,d=a.bodyB;if(0==a.collideConnected)for(a= +d.getContactList();null!=a;)a.other==c&&a.contact.flagForFiltering(),a=a.next;return b},destroyJoint:function(a){var b=a.m_collideConnected;null!=a.m_prev&&(a.m_prev.m_next=a.m_next);null!=a.m_next&&(a.m_next.m_prev=a.m_prev);a==this.m_jointList&&(this.m_jointList=a.m_next);var c=a.m_bodyA,d=a.m_bodyB;c.setAwake(!0);d.setAwake(!0);null!=a.m_edgeA.prev&&(a.m_edgeA.prev.next=a.m_edgeA.next);null!=a.m_edgeA.next&&(a.m_edgeA.next.prev=a.m_edgeA.prev);a.m_edgeA==c.m_jointList&&(c.m_jointList=a.m_edgeA.next); +a.m_edgeA.prev=null;a.m_edgeA.next=null;null!=a.m_edgeB.prev&&(a.m_edgeB.prev.next=a.m_edgeB.next);null!=a.m_edgeB.next&&(a.m_edgeB.next.prev=a.m_edgeB.prev);a.m_edgeB==d.m_jointList&&(d.m_jointList=a.m_edgeB.next);a.m_edgeB.prev=null;a.m_edgeB.next=null;Qb.destroy(a,null);--this.m_jointCount;if(0==b)for(a=d.getContactList();null!=a;)a.other==c&&a.contact.flagForFiltering(),a=a.next},addController:function(a){a.m_next=this.m_controllerList;a.m_prev=null;this.m_controllerList=a;a.m_world=this;this.m_controllerCount++; +return a},removeController:function(a){null!=a.m_prev&&(a.m_prev.m_next=a.m_next);null!=a.m_next&&(a.m_next.m_prev=a.m_prev);this.m_controllerList==a&&(this.m_controllerList=a.m_next);this.m_controllerCount--},createController:function(a){if(a.m_world!=this)throw R.thrown("Controller can only be a member of one world");a.m_next=this.m_controllerList;a.m_prev=null;null!=this.m_controllerList&&(this.m_controllerList.m_prev=a);this.m_controllerList=a;++this.m_controllerCount;a.m_world=this;return a}, +destroyController:function(a){a.clear();null!=a.m_next&&(a.m_next.m_prev=a.m_prev);null!=a.m_prev&&(a.m_prev.m_next=a.m_next);a==this.m_controllerList&&(this.m_controllerList=a.m_next);--this.m_controllerCount},setWarmStarting:function(a){bc.m_warmStarting=a},setContinuousPhysics:function(a){bc.m_continuousPhysics=a},getBodyCount:function(){return this.m_bodyCount},getJointCount:function(){return this.m_jointCount},getContactCount:function(){return this.m_contactCount},setGravity:function(a){this.m_gravity= +a},getGravity:function(){return this.m_gravity},getGroundBody:function(){return this.m_groundBody},step:function(a,b,c){z.freePool();0!=(this.m_flags&bc.e_newFixture)&&(this.m_contactManager.findNewContacts(),this.m_flags&=~bc.e_newFixture);this.m_flags|=bc.e_locked;var d=bc.s_timestep2;d.dt=a;d.velocityIterations=b;d.positionIterations=c;d.inv_dt=0<a?1/a:0;d.dtRatio=this.m_inv_dt0*a;d.warmStarting=bc.m_warmStarting;this.m_contactManager.collide();0<d.dt&&this.solve(d);bc.m_continuousPhysics&&0<d.dt&& +this.solveTOI(d);0<d.dt&&(this.m_inv_dt0=d.inv_dt);this.m_flags&=~bc.e_locked},clearForces:function(){for(var a=this.m_bodyList;null!=a;){var b=a.m_force;b.x=0;b.y=0;a.m_torque=0;a=a.m_next}},drawDebugData:function(){if(null!=this.m_debugDraw){this.m_debugDraw.m_sprite.get_graphics().clear();var a=this.m_debugDraw.getFlags(),b,c;new z;new z;new z;new ka;new ka;new z;new z;new z;new z;var d=new zk(0,0,0);if(0!=(a&De.e_shapeBit))for(b=this.m_bodyList;null!=b;){var e=b.m_xf;for(c=b.getFixtureList();null!= +c;){var g=c.getShape();0==b.isActive()?d.set(.5,.5,.3):b.getType()==ua.b2_staticBody?d.set(.5,.9,.5):b.getType()==ua.b2_kinematicBody?d.set(.5,.5,.9):0==b.isAwake()?d.set(.6,.6,.6):d.set(.9,.7,.7);this.drawShape(g,e,d);c=c.m_next}b=b.m_next}if(0!=(a&De.e_jointBit))for(b=this.m_jointList;null!=b;)this.drawJoint(b),b=b.m_next;if(0!=(a&De.e_controllerBit))for(b=this.m_controllerList;null!=b;)b.draw(this.m_debugDraw),b=b.m_next;if(0!=(a&De.e_pairBit))for(d.set(.3,.9,.9),b=this.m_contactManager.m_contactList;null!= +b;)g=b.getFixtureA(),c=b.getFixtureB(),g=g.getAABB().getCenter(),c=c.getAABB().getCenter(),this.m_debugDraw.drawSegment(g,c,d),b=b.getNext();if(0!=(a&De.e_aabbBit))for(g=this.m_contactManager.m_broadPhase,e=[new z,new z,new z,new z],b=this.m_bodyList;null!=b;){if(0!=b.isActive())for(c=b.getFixtureList();null!=c;){var x=g.getFatAABB(c.m_proxy),f=e[0],t=x.lowerBound.x,m=x.lowerBound.y;null==m&&(m=0);null==t&&(t=0);f.x=t;f.y=m;f=e[1];t=x.upperBound.x;m=x.lowerBound.y;null==m&&(m=0);null==t&&(t=0);f.x= +t;f.y=m;f=e[2];t=x.upperBound.x;m=x.upperBound.y;null==m&&(m=0);null==t&&(t=0);f.x=t;f.y=m;f=e[3];t=x.lowerBound.x;x=x.upperBound.y;null==x&&(x=0);null==t&&(t=0);f.x=t;f.y=x;this.m_debugDraw.drawPolygon(e,4,d);c=c.getNext()}b=b.getNext()}if(0!=(a&De.e_centerOfMassBit))for(b=this.m_bodyList;null!=b;)e=bc.s_xf,e.R=b.m_xf.R,e.position=b.getWorldCenter(),this.m_debugDraw.drawTransform(e),b=b.m_next}},queryAABB:function(a,b){this.aabbQueryCallback.broadPhase=this.m_contactManager.m_broadPhase;this.aabbQueryCallback.callbackMethod= +a;this.m_contactManager.m_broadPhase.query(this.aabbQueryCallback,b)},queryShape:function(a,b,c){this.shapeQueryCallback.broadPhase=this.m_contactManager.m_broadPhase;this.shapeQueryCallback.callbackMethod=a;null==c&&(c=new Ve,c.setIdentity());this.shapeQueryCallback.transform=c;a=new ka;b.computeAABB(a,c);this.shapeQueryCallback.shape=b;this.m_contactManager.m_broadPhase.query(this.shapeQueryCallback,a)},queryPoint:function(a,b){this.pointQueryCallback.broadPhase=this.m_contactManager.m_broadPhase; +this.pointQueryCallback.callbackMethod=a;this.pointQueryCallback.p=b;a=new ka;var c=a.lowerBound,d=b.x-aa.b2_linearSlop,e=b.y-aa.b2_linearSlop;null==e&&(e=0);null==d&&(d=0);c.x=d;c.y=e;c=a.upperBound;d=b.x+aa.b2_linearSlop;e=b.y+aa.b2_linearSlop;null==e&&(e=0);null==d&&(d=0);c.x=d;c.y=e;this.m_contactManager.m_broadPhase.query(this.pointQueryCallback,a)},rayCast:function(a,b,c){var d=this.m_contactManager.m_broadPhase,e=new Cn,g=new wk(b,c);d.rayCast(function(g,f){f=d.getUserData(f);f=O.__cast(f, +Ff);if(f.rayCast(e,g)){g=e.fraction;var x=new z((1-g)*b.x+g*c.x,(1-g)*b.y+g*c.y);return a(f,x,e.normal,g)}return g.maxFraction},g)},rayCastOne:function(a,b){var c;this.rayCast(function(a,b,g,x){c=a;return x},a,b);return c},rayCastAll:function(a,b){var c=[];this.rayCast(function(a,b,g,x){c[c.length]=a;return 1},a,b);return c},getBodyList:function(){return this.m_bodyList},getJointList:function(){return this.m_jointList},getContactList:function(){return this.m_contactList},isLocked:function(){return 0< +(this.m_flags&bc.e_locked)},s_stack:null,solve:function(a){for(var b=this.m_controllerList;null!=b;)b.step(a),b=b.m_next;b=this.m_island;b.initialize(this.m_bodyCount,this.m_contactCount,this.m_jointCount,null,this.m_contactManager.m_contactListener,this.m_contactSolver);for(var c=this.m_bodyList;null!=c;)c.m_flags&=~ua.e_islandFlag,c=c.m_next;for(var d=this.m_contactList;null!=d;)d.m_flags&=~Xa.e_islandFlag,d=d.m_next;for(d=this.m_jointList;null!=d;)d.m_islandFlag=!1,d=d.m_next;d=this.s_stack;for(var e= +this.m_bodyList;null!=e;){if(0==(e.m_flags&ua.e_islandFlag)&&(!e.isActive()&&!e.isAlwaysActive()&&e.m_xf.position.x+e.origin.x+e.size.x>=this.m_aabb.lowerBound.x&&e.m_xf.position.y+e.origin.y+e.size.y>=this.m_aabb.lowerBound.y&&e.m_xf.position.x+e.origin.x<=this.m_aabb.upperBound.x&&e.m_xf.position.y+e.origin.y<=this.m_aabb.upperBound.y&&(e.setActive(!0),e.setAwake(!0)),0!=e.isAwake()&&0!=e.isActive()&&!e.isPaused()&&e.getType()!=ua.b2_staticBody))if(e.isActive()&&!e.isAlwaysActive()&&(e.m_xf.position.x+ +e.origin.x+e.size.x<this.m_aabb.lowerBound.x||e.m_xf.position.y+e.origin.y+e.size.y<this.m_aabb.lowerBound.y||e.m_xf.position.x+e.origin.x>this.m_aabb.upperBound.x||e.m_xf.position.y+e.origin.y>this.m_aabb.upperBound.y))e.setAwake(!1),e.setActive(!1);else{b.clear();var g=0;d[g++]=e;for(e.m_flags|=ua.e_islandFlag;0<g;)if(c=d[--g],b.addBody(c),0==c.isAwake()&&c.setAwake(!0),c.getType()!=ua.b2_staticBody){for(var x,f=c.m_contactList;null!=f;)0==(f.contact.m_flags&Xa.e_islandFlag)&&1!=f.contact.isSensor()&& +0!=f.contact.isEnabled()&&0!=f.contact.isTouching()&&(b.addContact(f.contact),f.contact.m_flags|=Xa.e_islandFlag,x=f.other,0==(x.m_flags&ua.e_islandFlag)&&(d[g++]=x,x.m_flags|=ua.e_islandFlag)),f=f.next;for(c=c.m_jointList;null!=c;)1!=c.joint.m_islandFlag&&(x=c.other,0!=x.isActive()&&(b.addJoint(c.joint),c.joint.m_islandFlag=!0,0==(x.m_flags&ua.e_islandFlag)&&(d[g++]=x,x.m_flags|=ua.e_islandFlag))),c=c.next}b.solve(a,this.m_gravity,this.m_allowSleep);g=0;for(x=b.m_bodyCount;g<x;)c=g++,c=b.m_bodies[c], +c.getType()==ua.b2_staticBody&&(c.m_flags&=~ua.e_islandFlag)}e=e.m_next}g=0;for(x=d.length;g<x;){c=g++;if(null==d[c])break;d[c]=null}for(c=this.m_bodyList;null!=c;)0!=c.isAwake()&&0!=c.isActive()&&c.getType()!=ua.b2_staticBody&&c.synchronizeFixtures(),c=c.m_next;this.m_contactManager.findNewContacts()},solveTOI:function(a){var b,c=this.m_island;c.initialize(this.m_bodyCount,aa.b2_maxTOIContactsPerIsland,aa.b2_maxTOIJointsPerIsland,null,this.m_contactManager.m_contactListener,this.m_contactSolver); +for(var d=bc.s_queue,e=this.m_bodyList;null!=e;)e.m_flags&=~ua.e_islandFlag,e.m_sweep.t0=0,e=e.m_next;for(b=this.m_contactList;null!=b;)b.m_flags&=~(Xa.e_toiFlag|Xa.e_islandFlag),b=b.m_next;for(e=this.m_jointList;null!=e;)e.m_islandFlag=!1,e=e.m_next;for(;;){e=null;var g=1;for(b=this.m_contactList;null!=b;){if(1!=b.isSensor()&&0!=b.isEnabled()&&0!=b.isContinuous()){if(0!=(b.m_flags&Xa.e_toiFlag))var x=b.m_toi;else{x=b.m_fixtureA;var f=b.m_fixtureB;x=x.m_body;f=f.m_body;if(!(x.getType()==ua.b2_dynamicBody&& +0!=x.isAwake()||f.getType()==ua.b2_dynamicBody&&0!=f.isAwake())){b=b.m_next;continue}var t=x.m_sweep.t0;x.m_sweep.t0<f.m_sweep.t0?(t=f.m_sweep.t0,x.m_sweep.advance(t)):f.m_sweep.t0<x.m_sweep.t0&&(t=x.m_sweep.t0,f.m_sweep.advance(t));x=b.computeTOI(x.m_sweep,f.m_sweep);aa.b2Assert(0<=x&&1>=x);0<x&&1>x&&(x=(1-x)*t+x,1<x&&(x=1));b.m_toi=x;b.m_flags|=Xa.e_toiFlag}Number.MIN_VALUE<x&&x<g&&(e=b,g=x)}b=b.m_next}if(null==e||1-100*Number.MIN_VALUE<g)break;x=e.m_fixtureA;f=e.m_fixtureB;x=x.m_body;f=f.m_body; +bc.s_backupA.set(x.m_sweep);bc.s_backupB.set(f.m_sweep);x.advance(g);f.advance(g);e.update(this.m_contactManager.m_contactListener);e.m_flags&=~Xa.e_toiFlag;if(1==e.isSensor()||0==e.isEnabled())x.m_sweep.set(bc.s_backupA),f.m_sweep.set(bc.s_backupB),x.synchronizeTransform(),f.synchronizeTransform();else if(0!=e.isTouching()){b=x;b.getType()!=ua.b2_dynamicBody&&(b=f);c.clear();f=x=0;d[x+f++]=b;for(b.m_flags|=ua.e_islandFlag;0<f;)if(e=d[x++],--f,c.addBody(e),0==e.isAwake()&&e.setAwake(!0),e.getType()== +ua.b2_dynamicBody){for(b=e.m_contactList;null!=b&&c.m_contactCount!=c.m_contactCapacity;)0==(b.contact.m_flags&Xa.e_islandFlag)&&1!=b.contact.isSensor()&&0!=b.contact.isEnabled()&&0!=b.contact.isTouching()&&(c.addContact(b.contact),b.contact.m_flags|=Xa.e_islandFlag,t=b.other,0==(t.m_flags&ua.e_islandFlag)&&(t.getType()!=ua.b2_staticBody&&(t.advance(g),t.setAwake(!0)),d[x+f]=t,++f,t.m_flags|=ua.e_islandFlag)),b=b.next;for(b=e.m_jointList;null!=b;)c.m_jointCount!=c.m_jointCapacity&&1!=b.joint.m_islandFlag&& +(t=b.other,0!=t.isActive()&&(c.addJoint(b.joint),b.joint.m_islandFlag=!0,0==(t.m_flags&ua.e_islandFlag)&&(t.getType()!=ua.b2_staticBody&&(t.advance(g),t.setAwake(!0)),d[x+f]=t,++f,t.m_flags|=ua.e_islandFlag))),b=b.next}b=bc.s_timestep;b.warmStarting=!1;b.dt=(1-g)*a.dt;b.inv_dt=1/b.dt;b.dtRatio=0;b.velocityIterations=a.velocityIterations;b.positionIterations=a.positionIterations;c.solveTOI(b);g=0;for(x=c.m_bodyCount;g<x;)if(b=g++,e=c.m_bodies[b],e.m_flags&=~ua.e_islandFlag,0!=e.isAwake()&&e.getType()== +ua.b2_dynamicBody)for(e.synchronizeFixtures(),b=e.m_contactList;null!=b;)b.contact.m_flags&=~Xa.e_toiFlag,b=b.next;g=0;for(e=c.m_contactCount;g<e;)b=g++,b=c.m_contacts[b],b.m_flags&=~(Xa.e_toiFlag|Xa.e_islandFlag);g=0;for(b=c.m_jointCount;g<b;)e=g++,e=c.m_joints[e],e.m_islandFlag=!1;this.m_contactManager.findNewContacts()}}},drawJoint:function(a){var b=a.getBodyA(),c=a.getBodyB(),d=b.m_xf.position,e=c.m_xf.position,g=a.getAnchorA(),x=a.getAnchorB(),f=bc.s_jointColor;switch(a.m_type){case 3:this.m_debugDraw.drawSegment(g, +x,f);break;case 4:b=O.__cast(a,sg);a=b.getGroundAnchorA();b=b.getGroundAnchorB();this.m_debugDraw.drawSegment(a,g,f);this.m_debugDraw.drawSegment(b,x,f);this.m_debugDraw.drawSegment(a,b,f);break;case 5:this.m_debugDraw.drawSegment(g,x,f);break;default:b!=this.m_groundBody&&this.m_debugDraw.drawSegment(d,g,f),this.m_debugDraw.drawSegment(g,x,f),c!=this.m_groundBody&&this.m_debugDraw.drawSegment(e,x,f)}},drawShape:function(a,b,c){switch(a.m_type){case 0:a=O.__cast(a,Hc);var d=P.mulX(b,a.m_p);this.m_debugDraw.drawSolidCircle(d, +a.m_radius,b.R.col1,c);break;case 1:d=O.__cast(a,Bb);a=d.getVertexCount();for(var e=d.getVertices(),g=[],x=0;x<a;)d=x++,g[d]=P.mulX(b,e[d]);this.m_debugDraw.drawSolidPolygon(g,a,c);break;case 2:a=O.__cast(a,qg),this.m_debugDraw.drawSegment(P.mulX(b,a.getVertex1()),P.mulX(b,a.getVertex2()),c)}},m_aabb:null,setScreenBounds:function(a){this.m_aabb=a},getScreenBounds:function(){return this.m_aabb},m_flags:null,m_contactManager:null,m_contactSolver:null,m_island:null,m_bodyList:null,m_jointList:null,m_contactList:null, +m_bodyCount:null,m_contactCount:null,m_jointCount:null,m_controllerList:null,m_controllerCount:null,m_gravity:null,m_allowSleep:null,m_groundBody:null,m_destructionListener:null,m_debugDraw:null,m_inv_dt0:null,aabbQueryCallback:null,shapeQueryCallback:null,pointQueryCallback:null,__class__:bc};var Dk=function(){};k["box2D.dynamics.AABBQueryCallback"]=Dk;Dk.__name__="box2D.dynamics.AABBQueryCallback";Dk.__interfaces__=[Ih];Dk.prototype={broadPhase:null,callbackMethod:null,queryCallback:function(a){return this.callbackMethod(this.broadPhase.getUserData(a))}, +__class__:Dk};var Ck=function(){};k["box2D.dynamics.ShapeQueryCallback"]=Ck;Ck.__name__="box2D.dynamics.ShapeQueryCallback";Ck.__interfaces__=[Ih];Ck.prototype={broadPhase:null,shape:null,transform:null,callbackMethod:null,queryCallback:function(a){a=this.broadPhase.getUserData(a);return Tb.testOverlap(this.shape,this.transform,a.getShape(),a.getBody().getTransform())?this.callbackMethod(a):!0},__class__:Ck};var Bk=function(){};k["box2D.dynamics.PointQueryCallback"]=Bk;Bk.__name__="box2D.dynamics.PointQueryCallback"; +Bk.__interfaces__=[Ih];Bk.prototype={broadPhase:null,callbackMethod:null,p:null,queryCallback:function(a){a=this.broadPhase.getUserData(a);return a.testPoint(this.p)?this.callbackMethod(a):!0},__class__:Bk};var Xa=function(){this.m_nodeA=new Ek;this.m_nodeB=new Ek;this.m_manifold=new ih;this.m_oldManifold=new ih};k["box2D.dynamics.contacts.B2Contact"]=Xa;Xa.__name__="box2D.dynamics.contacts.B2Contact";Xa.prototype={getManifold:function(){return this.m_manifold},getWorldManifold:function(a){var b= +this.m_fixtureA.getBody(),c=this.m_fixtureB.getBody(),d=this.m_fixtureA.getShape(),e=this.m_fixtureB.getShape();a.initialize(this.m_manifold,b.getTransform(),d.m_radius,c.getTransform(),e.m_radius)},isTouching:function(){return(this.m_flags&Xa.e_touchingFlag)==Xa.e_touchingFlag},isContinuous:function(){return(this.m_flags&Xa.e_continuousFlag)==Xa.e_continuousFlag},setSensor:function(a){this.m_flags=a?this.m_flags|Xa.e_sensorFlag:this.m_flags&~Xa.e_sensorFlag},isSensor:function(){return(this.m_flags& +Xa.e_sensorFlag)==Xa.e_sensorFlag},setEnabled:function(a){this.m_flags=a?this.m_flags|Xa.e_enabledFlag:this.m_flags&~Xa.e_enabledFlag},isEnabled:function(){return(this.m_flags&Xa.e_enabledFlag)==Xa.e_enabledFlag},getNext:function(){return this.m_next},getFixtureA:function(){return this.m_fixtureA},getFixtureB:function(){return this.m_fixtureB},flagForFiltering:function(){this.m_flags|=Xa.e_filterFlag},reset:function(a,b){this.m_flags=Xa.e_enabledFlag;if(null==a||null==b)this.m_fixtureB=this.m_fixtureA= +null;else{if(a.isSensor()||b.isSensor())this.m_flags|=Xa.e_sensorFlag;var c=a.getBody(),d=b.getBody();if(c.getType()!=ua.b2_dynamicBody||c.isBullet()||d.getType()!=ua.b2_dynamicBody||d.isBullet())this.m_flags|=Xa.e_continuousFlag;this.m_fixtureA=a;this.m_fixtureB=b;this.m_manifold.m_pointCount=0;this.m_next=this.m_prev=null;this.m_nodeA.contact=null;this.m_nodeA.prev=null;this.m_nodeA.next=null;this.m_nodeA.other=null;this.m_nodeB.contact=null;this.m_nodeB.prev=null;this.m_nodeB.next=null;this.m_nodeB.other= +null}},update:function(a){var b=this.m_oldManifold;this.m_oldManifold=this.m_manifold;this.m_manifold=b;this.m_flags|=Xa.e_enabledFlag;var c=!1;b=(this.m_flags&Xa.e_touchingFlag)==Xa.e_touchingFlag;var d=this.m_fixtureA.m_body,e=this.m_fixtureB.m_body,g=this.m_fixtureA.m_aabb.testOverlap(this.m_fixtureB.m_aabb);if(0!=(this.m_flags&Xa.e_sensorFlag))g&&(c=this.m_fixtureA.getShape(),g=this.m_fixtureB.getShape(),d=d.getTransform(),e=e.getTransform(),c=Tb.testOverlap(c,d,g,e)),this.m_manifold.m_pointCount= +0;else{d.getType()!=ua.b2_dynamicBody||d.isBullet()||e.getType()!=ua.b2_dynamicBody||e.isBullet()?this.m_flags|=Xa.e_continuousFlag:this.m_flags&=~Xa.e_continuousFlag;if(g){this.evaluate();c=0<this.m_manifold.m_pointCount;g=0;for(var x=this.m_manifold.m_pointCount;g<x;){var f=g++;f=this.m_manifold.m_points[f];f.m_normalImpulse=0;f.m_tangentImpulse=0;for(var t=f.m_id,m=0,h=this.m_oldManifold.m_pointCount;m<h;){var p=m++;p=this.m_oldManifold.m_points[p];if(p.m_id.get_key()==t.get_key()){f.m_normalImpulse= +p.m_normalImpulse;f.m_tangentImpulse=p.m_tangentImpulse;break}}}}else this.m_manifold.m_pointCount=0;c!=b&&(d.setAwake(!0),e.setAwake(!0))}this.m_flags=c?this.m_flags|Xa.e_touchingFlag:this.m_flags&~Xa.e_touchingFlag;0==b&&1==c&&a.beginContact(this);1==b&&0==c&&a.endContact(this);0==(this.m_flags&Xa.e_sensorFlag)&&a.preSolve(this,this.m_oldManifold)},evaluate:function(){},computeTOI:function(a,b){Xa.s_input.proxyA.set(this.m_fixtureA.getShape());Xa.s_input.proxyB.set(this.m_fixtureB.getShape());Xa.s_input.sweepA= +a;Xa.s_input.sweepB=b;Xa.s_input.tolerance=aa.b2_linearSlop;return Gb.timeOfImpact(Xa.s_input)},m_flags:null,m_prev:null,m_next:null,m_nodeA:null,m_nodeB:null,m_fixtureA:null,m_fixtureB:null,m_manifold:null,m_oldManifold:null,m_toi:null,key:null,__class__:Xa};var kh=function(){Xa.call(this)};k["box2D.dynamics.contacts.B2CircleContact"]=kh;kh.__name__="box2D.dynamics.contacts.B2CircleContact";kh.create=function(a){return new kh};kh.destroy=function(a,b){};kh.__super__=Xa;kh.prototype=u(Xa.prototype, +{reset:function(a,b){Xa.prototype.reset.call(this,a,b)},evaluate:function(){var a=this.m_fixtureA.getBody(),b=this.m_fixtureB.getBody();Ma.collideCircles(this.m_manifold,O.__cast(this.m_fixtureA.getShape(),Hc),a.m_xf,O.__cast(this.m_fixtureB.getShape(),Hc),b.m_xf)},__class__:kh});var Hn=function(){this.localPlaneNormal=new z;this.localPoint=new z;this.normal=new z;this.normalMass=new vc;this.K=new vc;this.points=[];for(var a=0,b=aa.b2_maxManifoldPoints;a<b;){var c=a++;this.points[c]=new Gn}};k["box2D.dynamics.contacts.B2ContactConstraint"]= +Hn;Hn.__name__="box2D.dynamics.contacts.B2ContactConstraint";Hn.prototype={points:null,localPlaneNormal:null,localPoint:null,normal:null,normalMass:null,K:null,bodyA:null,bodyB:null,type:null,radius:null,friction:null,restitution:null,pointCount:null,manifold:null,__class__:Hn};var Gn=function(){this.localPoint=new z;this.rA=new z;this.rB=new z};k["box2D.dynamics.contacts.B2ContactConstraintPoint"]=Gn;Gn.__name__="box2D.dynamics.contacts.B2ContactConstraintPoint";Gn.prototype={localPoint:null,rA:null, +rB:null,normalImpulse:null,tangentImpulse:null,normalMass:null,tangentMass:null,equalizedMass:null,velocityBias:null,__class__:Gn};var Ek=function(){};k["box2D.dynamics.contacts.B2ContactEdge"]=Ek;Ek.__name__="box2D.dynamics.contacts.B2ContactEdge";Ek.prototype={other:null,contact:null,prev:null,next:null,__class__:Ek};var Fn=function(a){this.m_allocator=a;this.initializeRegisters()};k["box2D.dynamics.contacts.B2ContactFactory"]=Fn;Fn.__name__="box2D.dynamics.contacts.B2ContactFactory";Fn.prototype= +{addType:function(a,b,c,d){this.m_registers[c][d].createFcn=a;this.m_registers[c][d].destroyFcn=b;this.m_registers[c][d].primary=c},initializeRegisters:function(){this.m_registers=[];this.m_registers[0]=[];this.m_registers[0][0]=null;this.m_registers[0][1]=null;this.m_registers[0][2]=null;this.m_registers[1]=[];this.m_registers[1][0]=null;this.m_registers[1][1]=null;this.m_registers[1][2]=null;this.m_registers[2]=[];this.m_registers[2][0]=null;this.m_registers[2][1]=null;this.m_registers[2][2]=null; +null==this.m_registers[0][0]&&(this.m_registers[0][0]=new $f);null==this.m_registers[0][1]&&(this.m_registers[0][1]=new $f,this.m_registers[1][0]=this.m_registers[0][1]);null==this.m_registers[0][2]&&(this.m_registers[0][2]=new $f,this.m_registers[2][0]=this.m_registers[0][2]);null==this.m_registers[1][0]&&(this.m_registers[1][0]=new $f,this.m_registers[0][1]=this.m_registers[1][0]);null==this.m_registers[1][1]&&(this.m_registers[1][1]=new $f);null==this.m_registers[1][2]&&(this.m_registers[1][2]= +new $f,this.m_registers[2][1]=this.m_registers[1][2]);null==this.m_registers[2][0]&&(this.m_registers[2][0]=new $f,this.m_registers[0][2]=this.m_registers[2][0]);null==this.m_registers[2][1]&&(this.m_registers[2][1]=new $f,this.m_registers[1][2]=this.m_registers[2][1]);null==this.m_registers[2][2]&&(this.m_registers[2][2]=new $f);this.addType(kh.create,kh.destroy,0,0);this.addType(lh.create,lh.destroy,1,0);this.addType(mh.create,mh.destroy,1,1);this.addType(Oa.create,Oa.destroy,2,0);this.addType(G.create, +G.destroy,1,2)},create:function(a,b){var c=a.getType(),d=b.getType();d=this.m_registers[c][d];if(null!=d.pool){var e=d.pool;d.pool=e.m_next;d.poolCount--;d.primary==c?e.reset(a,b):e.reset(b,a);return e}e=d.createFcn;return null!=e?(d.primary==c?(e=e(this.m_allocator),e.reset(a,b)):(e=e(this.m_allocator),e.reset(b,a)),e):null},destroy:function(a){0<a.m_manifold.m_pointCount&&(a.m_fixtureA.m_body.setAwake(!0),a.m_fixtureB.m_body.setAwake(!0));var b=a.m_fixtureA.getType(),c=a.m_fixtureB.getType();b= +this.m_registers[b][c];b.poolCount++;a.m_next=b.pool;b.pool=a;b=b.destroyFcn;b(a,this.m_allocator)},m_registers:null,m_allocator:null,__class__:Fn};var $f=function(){};k["box2D.dynamics.contacts.B2ContactRegister"]=$f;$f.__name__="box2D.dynamics.contacts.B2ContactRegister";$f.prototype={createFcn:null,destroyFcn:null,primary:null,pool:null,poolCount:null,__class__:$f};var vj=function(){this.m_normal=new z;this.m_separations=[];this.m_points=[];for(var a=0,b=aa.b2_maxManifoldPoints;a<b;){var c=a++; +this.m_points[c]=new z}};k["box2D.dynamics.contacts.B2PositionSolverManifold"]=vj;vj.__name__="box2D.dynamics.contacts.B2PositionSolverManifold";vj.prototype={initialize:function(a){aa.b2Assert(0<a.pointCount);switch(a.type){case 1:var b=a.bodyA.m_xf.R;var c=a.localPoint;var d=a.bodyA.m_xf.position.x+(b.col1.x*c.x+b.col2.x*c.y);var e=a.bodyA.m_xf.position.y+(b.col1.y*c.x+b.col2.y*c.y);b=a.bodyB.m_xf.R;c=a.points[0].localPoint;var g=a.bodyB.m_xf.position.x+(b.col1.x*c.x+b.col2.x*c.y);b=a.bodyB.m_xf.position.y+ +(b.col1.y*c.x+b.col2.y*c.y);var x=g-d;c=b-e;var f=x*x+c*c;f>Number.MIN_VALUE*Number.MIN_VALUE?(f=Math.sqrt(f),this.m_normal.x=x/f,this.m_normal.y=c/f):(this.m_normal.x=1,this.m_normal.y=0);this.m_points[0].x=.5*(d+g);this.m_points[0].y=.5*(e+b);this.m_separations[0]=x*this.m_normal.x+c*this.m_normal.y-a.radius;break;case 2:b=a.bodyA.m_xf.R;c=a.localPlaneNormal;this.m_normal.x=b.col1.x*c.x+b.col2.x*c.y;this.m_normal.y=b.col1.y*c.x+b.col2.y*c.y;b=a.bodyA.m_xf.R;c=a.localPoint;d=a.bodyA.m_xf.position.x+ +(b.col1.x*c.x+b.col2.x*c.y);e=a.bodyA.m_xf.position.y+(b.col1.y*c.x+b.col2.y*c.y);b=a.bodyB.m_xf.R;g=0;for(x=a.pointCount;g<x;){var t=g++;c=a.points[t].localPoint;f=a.bodyB.m_xf.position.x+(b.col1.x*c.x+b.col2.x*c.y);c=a.bodyB.m_xf.position.y+(b.col1.y*c.x+b.col2.y*c.y);this.m_separations[t]=(f-d)*this.m_normal.x+(c-e)*this.m_normal.y-a.radius;this.m_points[t].x=f;this.m_points[t].y=c}break;case 4:b=a.bodyB.m_xf.R;c=a.localPlaneNormal;this.m_normal.x=b.col1.x*c.x+b.col2.x*c.y;this.m_normal.y=b.col1.y* +c.x+b.col2.y*c.y;b=a.bodyB.m_xf.R;c=a.localPoint;d=a.bodyB.m_xf.position.x+(b.col1.x*c.x+b.col2.x*c.y);e=a.bodyB.m_xf.position.y+(b.col1.y*c.x+b.col2.y*c.y);b=a.bodyA.m_xf.R;g=0;for(x=a.pointCount;g<x;)t=g++,c=a.points[t].localPoint,f=a.bodyA.m_xf.position.x+(b.col1.x*c.x+b.col2.x*c.y),c=a.bodyA.m_xf.position.y+(b.col1.y*c.x+b.col2.y*c.y),this.m_separations[t]=(f-d)*this.m_normal.x+(c-e)*this.m_normal.y-a.radius,t=this.m_points[t],null==c&&(c=0),null==f&&(f=0),t.x=f,t.y=c;this.m_normal.x*=-1;this.m_normal.y*= +-1}},m_normal:null,m_points:null,m_separations:null,__class__:vj};var Ee=function(){this.m_step=new uj;this.m_constraints=[]};k["box2D.dynamics.contacts.B2ContactSolver"]=Ee;Ee.__name__="box2D.dynamics.contacts.B2ContactSolver";Ee.prototype={initialize:function(a,b,c,d){this.m_step.set(a);this.m_allocator=d;for(this.m_constraintCount=c;this.m_constraints.length<this.m_constraintCount;)this.m_constraints[this.m_constraints.length]=new Hn;for(a=0;a<c;){d=a++;var e=b[d];var g=e.m_fixtureA,x=e.m_fixtureB, +f=g.m_shape.m_radius,t=x.m_shape.m_radius,m=g.m_body,h=x.m_body;e=e.getManifold();var p=aa.b2MixFriction(g.getFriction(),x.getFriction()),n=aa.b2MixRestitution(g.getRestitution(),x.getRestitution()),k=m.m_linearVelocity.x,r=m.m_linearVelocity.y,rb=h.m_linearVelocity.x,q=h.m_linearVelocity.y,v=m.m_angularVelocity,u=h.m_angularVelocity;aa.b2Assert(0<e.m_pointCount);Ee.s_worldManifold.initialize(e,m.m_xf,f,h.m_xf,t);g=Ee.s_worldManifold.m_normal.x;x=Ee.s_worldManifold.m_normal.y;d=this.m_constraints[d]; +d.bodyA=m;d.bodyB=h;d.manifold=e;d.normal.x=g;d.normal.y=x;d.pointCount=e.m_pointCount;d.friction=p;d.restitution=n;d.localPlaneNormal.x=e.m_localPlaneNormal.x;d.localPlaneNormal.y=e.m_localPlaneNormal.y;d.localPoint.x=e.m_localPoint.x;d.localPoint.y=e.m_localPoint.y;d.radius=f+t;d.type=e.m_type;f=0;for(t=d.pointCount;f<t;){var w=f++,B=e.m_points[w];p=d.points[w];p.normalImpulse=B.m_normalImpulse;p.tangentImpulse=B.m_tangentImpulse;n=p.localPoint;B=B.m_localPoint;n.x=B.x;n.y=B.y;n=p.rA.x=Ee.s_worldManifold.m_points[w].x- +m.m_sweep.c.x;B=p.rA.y=Ee.s_worldManifold.m_points[w].y-m.m_sweep.c.y;var N=p.rB.x=Ee.s_worldManifold.m_points[w].x-h.m_sweep.c.x;w=p.rB.y=Ee.s_worldManifold.m_points[w].y-h.m_sweep.c.y;var C=n*x-B*g,E=N*x-w*g;C*=C;E*=E;p.normalMass=1/(m.m_invMass+h.m_invMass+m.m_invI*C+h.m_invI*E);var z=m.m_mass*m.m_invMass+h.m_mass*h.m_invMass;z+=m.m_mass*m.m_invI*C+h.m_mass*h.m_invI*E;p.equalizedMass=1/z;E=x;z=-g;C=n*z-B*E;E=N*z-w*E;C*=C;E*=E;p.tangentMass=1/(m.m_invMass+h.m_invMass+m.m_invI*C+h.m_invI*E);p.velocityBias= +0;n=d.normal.x*(rb+-u*w-k- -v*B)+d.normal.y*(q+u*N-r-v*n);n<-aa.b2_velocityThreshold&&(p.velocityBias+=-d.restitution*n)}2==d.pointCount&&(q=d.points[0],rb=d.points[1],e=m.m_invMass,m=m.m_invI,k=h.m_invMass,h=h.m_invI,r=q.rA.x*x-q.rA.y*g,q=q.rB.x*x-q.rB.y*g,v=rb.rA.x*x-rb.rA.y*g,rb=rb.rB.x*x-rb.rB.y*g,x=e+k+m*r*r+h*q*q,g=e+k+m*v*v+h*rb*rb,h=e+k+m*r*v+h*q*rb,x*x<100*(x*g-h*h)?(m=d.K.col1,e=h,null==e&&(e=0),null==x&&(x=0),m.x=x,m.y=e,x=d.K.col2,null==g&&(g=0),null==h&&(h=0),x.x=h,x.y=g,d.K.getInverse(d.normalMass)): +d.pointCount=1)}},initVelocityConstraints:function(a){for(var b=0,c=this.m_constraintCount;b<c;){var d=b++;d=this.m_constraints[d];var e=d.bodyA,g=d.bodyB,x=e.m_invMass,f=e.m_invI,t=g.m_invMass,m=g.m_invI,h=d.normal.x,p=d.normal.y,n=p,k=-h;if(a.warmStarting){var r=d.pointCount;for(var rb=0;rb<r;){var q=rb++;q=d.points[q];q.normalImpulse*=a.dtRatio;q.tangentImpulse*=a.dtRatio;var v=q.normalImpulse*h+q.tangentImpulse*n,u=q.normalImpulse*p+q.tangentImpulse*k;e.m_angularVelocity-=f*(q.rA.x*u-q.rA.y*v); +e.m_linearVelocity.x-=x*v;e.m_linearVelocity.y-=x*u;g.m_angularVelocity+=m*(q.rB.x*u-q.rB.y*v);g.m_linearVelocity.x+=t*v;g.m_linearVelocity.y+=t*u}}else for(r=d.pointCount,e=0,g=r;e<g;)x=e++,x=d.points[x],x.normalImpulse=0,x.tangentImpulse=0}},solveVelocityConstraints:function(){for(var a,b,c,d,e,g,x,f,t,m,h=0,p=this.m_constraintCount;h<p;){var n=h++;d=this.m_constraints[n];n=d.bodyA;var k=d.bodyB,r=n.m_angularVelocity,rb=k.m_angularVelocity,q=n.m_linearVelocity,v=k.m_linearVelocity,u=n.m_invMass, +w=n.m_invI,B=k.m_invMass,N=k.m_invI;f=d.normal.x;var E=t=d.normal.y,C=-f;m=d.friction;x=0;for(g=d.pointCount;x<g;)a=x++,a=d.points[a],b=v.x-rb*a.rB.y-q.x+r*a.rA.y,c=v.y+rb*a.rB.x-q.y-r*a.rA.x,b=b*E+c*C,b=a.tangentMass*-b,c=m*a.normalImpulse,c=P.clamp(a.tangentImpulse+b,-c,c),b=c-a.tangentImpulse,e=b*E,b*=C,q.x-=u*e,q.y-=u*b,r-=w*(a.rA.x*b-a.rA.y*e),v.x+=B*e,v.y+=B*b,rb+=N*(a.rB.x*b-a.rB.y*e),a.tangentImpulse=c;if(1==d.pointCount)a=d.points[0],b=v.x+-rb*a.rB.y-q.x- -r*a.rA.y,c=v.y+rb*a.rB.x-q.y-r* +a.rA.x,d=b*f+c*t,b=-a.normalMass*(d-a.velocityBias),c=a.normalImpulse+b,0<c||(c=0),b=c-a.normalImpulse,e=b*f,b*=t,q.x-=u*e,q.y-=u*b,r-=w*(a.rA.x*b-a.rA.y*e),v.x+=B*e,v.y+=B*b,rb+=N*(a.rB.x*b-a.rB.y*e),a.normalImpulse=c;else{a=d.points[0];E=d.points[1];g=a.normalImpulse;x=E.normalImpulse;e=(v.x-rb*a.rB.y-q.x+r*a.rA.y)*f+(v.y+rb*a.rB.x-q.y-r*a.rA.x)*t;var z=(v.x-rb*E.rB.y-q.x+r*E.rA.y)*f+(v.y+rb*E.rB.x-q.y-r*E.rA.x)*t;b=e-a.velocityBias;c=z-E.velocityBias;m=d.K;b-=m.col1.x*g+m.col2.x*x;for(c-=m.col1.y* +g+m.col2.y*x;;){m=d.normalMass;C=-(m.col1.x*b+m.col2.x*c);m=-(m.col1.y*b+m.col2.y*c);if(0<=C&&0<=m){g=C-g;x=m-x;d=g*f;g*=t;f*=x;t*=x;q.x-=u*(d+f);q.y-=u*(g+t);r-=w*(a.rA.x*g-a.rA.y*d+E.rA.x*t-E.rA.y*f);v.x+=B*(d+f);v.y+=B*(g+t);rb+=N*(a.rB.x*g-a.rB.y*d+E.rB.x*t-E.rB.y*f);a.normalImpulse=C;E.normalImpulse=m;break}C=-a.normalMass*b;m=0;z=d.K.col1.y*C+c;if(0<=C&&0<=z){g=C-g;x=m-x;d=g*f;g*=t;f*=x;t*=x;q.x-=u*(d+f);q.y-=u*(g+t);r-=w*(a.rA.x*g-a.rA.y*d+E.rA.x*t-E.rA.y*f);v.x+=B*(d+f);v.y+=B*(g+t);rb+=N* +(a.rB.x*g-a.rB.y*d+E.rB.x*t-E.rB.y*f);a.normalImpulse=C;E.normalImpulse=m;break}C=0;m=-E.normalMass*c;e=d.K.col2.x*m+b;if(0<=m&&0<=e){g=C-g;x=m-x;d=g*f;g*=t;f*=x;t*=x;q.x-=u*(d+f);q.y-=u*(g+t);r-=w*(a.rA.x*g-a.rA.y*d+E.rA.x*t-E.rA.y*f);v.x+=B*(d+f);v.y+=B*(g+t);rb+=N*(a.rB.x*g-a.rB.y*d+E.rB.x*t-E.rB.y*f);a.normalImpulse=C;E.normalImpulse=m;break}m=C=0;e=b;z=c;if(0<=e&&0<=z){g=C-g;x=m-x;d=g*f;g*=t;f*=x;t*=x;q.x-=u*(d+f);q.y-=u*(g+t);r-=w*(a.rA.x*g-a.rA.y*d+E.rA.x*t-E.rA.y*f);v.x+=B*(d+f);v.y+=B*(g+ +t);rb+=N*(a.rB.x*g-a.rB.y*d+E.rB.x*t-E.rB.y*f);a.normalImpulse=C;E.normalImpulse=m;break}break}}n.m_angularVelocity=r;k.m_angularVelocity=rb}},finalizeVelocityConstraints:function(){for(var a=0,b=this.m_constraintCount;a<b;){var c=a++;c=this.m_constraints[c];for(var d=c.manifold,e=0,g=c.pointCount;e<g;){var f=e++,l=d.m_points[f];f=c.points[f];l.m_normalImpulse=f.normalImpulse;l.m_tangentImpulse=f.tangentImpulse}}},solvePositionConstraints:function(a){for(var b=0,c=0,d=this.m_constraintCount;c<d;){var e= +c++;e=this.m_constraints[e];var g=e.bodyA,f=e.bodyB,l=g.m_mass*g.m_invMass,t=g.m_mass*g.m_invI,m=f.m_mass*f.m_invMass,h=f.m_mass*f.m_invI;Ee.s_psm.initialize(e);for(var p=Ee.s_psm.m_normal,n=0,k=e.pointCount;n<k;){var r=n++,q=e.points[r],v=Ee.s_psm.m_points[r],u=Ee.s_psm.m_separations[r];r=v.x-g.m_sweep.c.x;var oe=v.y-g.m_sweep.c.y,w=v.x-f.m_sweep.c.x;v=v.y-f.m_sweep.c.y;b<u||(b=u);u=P.clamp(a*(u+aa.b2_linearSlop),-aa.b2_maxLinearCorrection,0);u*=-q.equalizedMass;q=u*p.x;u*=p.y;g.m_sweep.c.x-=l*q; +g.m_sweep.c.y-=l*u;g.m_sweep.a-=t*(r*u-oe*q);g.synchronizeTransform();f.m_sweep.c.x+=m*q;f.m_sweep.c.y+=m*u;f.m_sweep.a+=h*(w*u-v*q);f.synchronizeTransform()}}return b>-1.5*aa.b2_linearSlop},m_step:null,m_allocator:null,m_constraints:null,m_constraintCount:null,__class__:Ee};var Oa=function(){Xa.call(this)};k["box2D.dynamics.contacts.B2EdgeAndCircleContact"]=Oa;Oa.__name__="box2D.dynamics.contacts.B2EdgeAndCircleContact";Oa.create=function(a){return new Oa};Oa.destroy=function(a,b){};Oa.__super__= +Xa;Oa.prototype=u(Xa.prototype,{m_v0:null,m_v1:null,m_v2:null,m_v3:null,reset:function(a,b){Xa.prototype.reset.call(this,a,b)},evaluate:function(){var a=this.m_fixtureA.getBody(),b=this.m_fixtureB.getBody();this.b2CollideEdgeAndCircle(this.m_manifold,O.__cast(this.m_fixtureA.getShape(),qg),a.m_xf,O.__cast(this.m_fixtureB.getShape(),Hc),b.m_xf)},b2CollideEdgeAndCircle:function(a,b,c,d,e){a.m_pointCount=0;this.multiplyTransformVector(e,d.m_p,Oa.temp1);e=Oa.q;var g=P.mulXT(c,Oa.temp1);e.x=g.x;e.y=g.y; +this.m_v0=b.m_v0;this.m_v1=b.m_v1;this.m_v2=b.m_v2;this.m_v3=b.m_v3;e=Oa.e;g=this.m_v2.x-this.m_v1.x;var f=this.m_v2.y-this.m_v1.y;null==f&&(f=0);null==g&&(g=0);e.x=g;e.y=f;e=Oa.temp1;g=this.m_v2.x-Oa.q.x;f=this.m_v2.y-Oa.q.y;null==f&&(f=0);null==g&&(g=0);e.x=g;e.y=f;var l=P.dot(Oa.e,Oa.temp1);e=Oa.temp1;g=Oa.q.x-this.m_v1.x;f=Oa.q.y-this.m_v1.y;null==f&&(f=0);null==g&&(g=0);e.x=g;e.y=f;g=P.dot(Oa.e,Oa.temp1);c=b.m_radius+d.m_radius;if(0>=g){if(e=Oa.p,l=this.m_v1,e.x=l.x,e.y=l.y,e=Oa.temp1,g=Oa.q.x- +Oa.p.x,f=Oa.q.y-Oa.p.y,null==f&&(f=0),null==g&&(g=0),e.x=g,e.y=f,e=P.dot(Oa.temp1,Oa.temp1),!(e>c*c)){if(b.m_hasVertex0&&(e=Oa.temp1,g=this.m_v1.x-this.m_v0.x,f=this.m_v1.y-this.m_v0.y,null==f&&(f=0),null==g&&(g=0),e.x=g,e.y=f,e=Oa.temp2,g=this.m_v1.x-Oa.q.x,f=this.m_v1.y-Oa.q.y,null==f&&(f=0),null==g&&(g=0),e.x=g,e.y=f,0<P.dot(Oa.temp1,Oa.temp2)))return;a.m_pointCount=1;a.m_type=1;e=a.m_localPlaneNormal;e.x=0;e.y=0;e=a.m_localPoint;l=Oa.p;e.x=l.x;e.y=l.y;a.m_points[0].m_id.set_key(0);a.m_points[0].m_id.indexA= +0;a.m_points[0].m_id.indexB=0;a.m_points[0].m_id.typeA=qb.VERTEX;a.m_points[0].m_id.typeB=qb.VERTEX;e=a.m_points[0].m_localPoint;l=d.m_p;e.x=l.x;e.y=l.y}}else if(0>=l){if(e=Oa.p,l=this.m_v2,e.x=l.x,e.y=l.y,e=Oa.temp1,g=Oa.q.x-Oa.p.x,f=Oa.q.y-Oa.p.y,null==f&&(f=0),null==g&&(g=0),e.x=g,e.y=f,e=P.dot(Oa.temp1,Oa.temp1),!(e>c*c)){if(b.m_hasVertex3&&(e=Oa.temp1,g=this.m_v3.x-this.m_v2.x,f=this.m_v3.y-this.m_v2.y,null==f&&(f=0),null==g&&(g=0),e.x=g,e.y=f,e=Oa.temp2,g=Oa.q.x-this.m_v2.x,f=Oa.q.y-this.m_v2.y, +null==f&&(f=0),null==g&&(g=0),e.x=g,e.y=f,0<P.dot(Oa.temp1,Oa.temp2)))return;a.m_pointCount=1;a.m_type=1;e=a.m_localPlaneNormal;e.x=0;e.y=0;e=a.m_localPoint;l=Oa.p;e.x=l.x;e.y=l.y;a.m_points[0].m_id.set_key(0);a.m_points[0].m_id.indexA=1;a.m_points[0].m_id.indexB=0;a.m_points[0].m_id.typeA=qb.VERTEX;a.m_points[0].m_id.typeB=qb.VERTEX;e=a.m_points[0].m_localPoint;l=d.m_p;e.x=l.x;e.y=l.y}}else b=P.dot(Oa.e,Oa.e),aa.b2Assert(0<b),Oa.p.x=1/b*(this.m_v1.x*l+this.m_v2.x*g),Oa.p.y=1/b*(this.m_v1.y*l+this.m_v2.y* +g),Oa.temp1.x=Oa.q.x-Oa.p.x,Oa.temp1.y=Oa.q.y-Oa.p.y,e=P.dot(Oa.temp1,Oa.temp1),e>c*c||(e=Oa.temp1,g=-Oa.e.y,f=Oa.e.x,null==f&&(f=0),null==g&&(g=0),e.x=g,e.y=f,e=Oa.temp2,g=Oa.q.x-this.m_v1.x,f=Oa.q.y-this.m_v1.y,null==f&&(f=0),null==g&&(g=0),e.x=g,e.y=f,0>P.dot(Oa.temp1,Oa.temp2)&&(e=Oa.temp1,e.x=-e.x,e.y=-e.y),Oa.temp1.normalize(),a.m_pointCount=1,a.m_type=2,e=a.m_localPlaneNormal,g=Oa.temp1,e.x=g.x,e.y=g.y,e=a.m_localPoint,g=this.m_v1,e.x=g.x,e.y=g.y,a.m_points[0].m_id.set_key(0),a.m_points[0].m_id.indexA= +0,a.m_points[0].m_id.indexB=0,a.m_points[0].m_id.typeA=qb.FACE,a.m_points[0].m_id.typeB=qb.VERTEX,e=a.m_points[0].m_localPoint,g=d.m_p,e.x=g.x,e.y=g.y)},multiplyTransformsInverse:function(a,b,c){this.multiplyRotationsInverse(a.R,b.R,Oa.mat);var d=Oa.temp2;b=b.position;d.x=b.x;d.y=b.y;Oa.temp2.subtract(a.position);this.multiplyRotationVectorInverse(a.R,Oa.temp2,c.position);d=c.R.col1;b=Oa.mat.col1;d.x=b.x;d.y=b.y;d=c.R.col2;b=Oa.mat.col2;d.x=b.x;d.y=b.y},multiplyRotationsInverse:function(a,b,c){c.col1.x= +a.col1.x*b.col1.x+a.col1.y*b.col1.y;c.col1.y=a.col2.x*b.col1.x+a.col2.y*b.col1.y;c.col2.x=a.col1.x*b.col2.x+a.col1.y*b.col2.y;c.col2.y=a.col2.x*b.col2.x+a.col2.y*b.col2.y},multiplyRotationVector:function(a,b,c){c.x=a.col1.x*b.x+a.col2.x*b.y;c.y=a.col1.y*b.x+a.col2.y*b.y},multiplyRotationVectorInverse:function(a,b,c){c.x=a.col1.x*b.x+a.col1.y*b.y;c.y=a.col2.x*b.x+a.col2.y*b.y},multiplyTransformVector:function(a,b,c){c.x=a.R.col1.x*b.x+a.R.col2.x*b.y+a.position.x;c.y=a.R.col1.y*b.x+a.R.col2.y*b.y+a.position.y}, +__class__:Oa});var lh=function(){Xa.call(this)};k["box2D.dynamics.contacts.B2PolyAndCircleContact"]=lh;lh.__name__="box2D.dynamics.contacts.B2PolyAndCircleContact";lh.create=function(a){return new lh};lh.destroy=function(a,b){};lh.__super__=Xa;lh.prototype=u(Xa.prototype,{reset:function(a,b){Xa.prototype.reset.call(this,a,b);aa.b2Assert(1==a.getType());aa.b2Assert(0==b.getType())},evaluate:function(){var a=this.m_fixtureA.m_body,b=this.m_fixtureB.m_body;Ma.collidePolygonAndCircle(this.m_manifold, +O.__cast(this.m_fixtureA.getShape(),Bb),a.m_xf,O.__cast(this.m_fixtureB.getShape(),Hc),b.m_xf)},__class__:lh});var nh=function(){this.v=new z;this.id=new qb};k["box2D.dynamics.contacts.ClipVertex"]=nh;nh.__name__="box2D.dynamics.contacts.ClipVertex";nh.prototype={v:null,id:null,set:function(a){var b=this.v,c=a.v;b.x=c.x;b.y=c.y;this.id.set(a.id)},__class__:nh};var Fk=function(){};k["box2D.dynamics.contacts.EPAxis"]=Fk;Fk.__name__="box2D.dynamics.contacts.EPAxis";Fk.prototype={type:null,index:null, +separation:null,__class__:Fk};var In=function(){this.vertices=[];this.normals=[];for(var a=0;32>a;)a++,this.vertices.push(new z),this.normals.push(new z)};k["box2D.dynamics.contacts.TempPolygon"]=In;In.__name__="box2D.dynamics.contacts.TempPolygon";In.prototype={vertices:null,normals:null,count:null,__class__:In};var Jn=function(){this.v1=new z;this.v2=new z;this.normal=new z;this.sideNormal1=new z;this.sideNormal2=new z};k["box2D.dynamics.contacts.ReferenceFace"]=Jn;Jn.__name__="box2D.dynamics.contacts.ReferenceFace"; +Jn.prototype={i1:null,i2:null,v1:null,v2:null,normal:null,sideNormal1:null,sideNormal2:null,sideOffset1:null,sideOffset2:null,__class__:Jn};var G=function(){Xa.call(this)};k["box2D.dynamics.contacts.B2PolyAndEdgeContact"]=G;G.__name__="box2D.dynamics.contacts.B2PolyAndEdgeContact";G.create=function(a){return new G};G.destroy=function(a,b){};G.clipSegmentToLine=function(a,b,c,d,e){var g=0,f=P.dot(c,b[0].v)-d;c=P.dot(c,b[1].v)-d;0>=f&&a[g++].set(b[0]);0>=c&&a[g++].set(b[1]);0>f*c&&(f/=f-c,c=a[g].v, +d=b[1].v,c.x=d.x,c.y=d.y,a[g].v.subtract(b[0].v),a[g].v.multiply(f),a[g].v.add(b[0].v),a[g].id.indexA=e,a[g].id.indexB=b[0].id.indexB,a[g].id.typeA=qb.VERTEX,a[g].id.typeB=qb.FACE,++g);return g};G.__super__=Xa;G.prototype=u(Xa.prototype,{m_v0:null,m_v1:null,m_v2:null,m_v3:null,m_front:null,m_radius:null,reset:function(a,b){a.getShape()instanceof Bb?(Xa.prototype.reset.call(this,b,a),aa.b2Assert(1==a.getType()),aa.b2Assert(2==b.getType())):(Xa.prototype.reset.call(this,a,b),aa.b2Assert(2==a.getType()), +aa.b2Assert(1==b.getType()))},evaluate:function(){var a=this.m_fixtureA.getBody(),b=this.m_fixtureB.getBody();this.b2CollidePolyAndEdge(this.m_manifold,O.__cast(this.m_fixtureA.getShape(),qg),a.m_xf,O.__cast(this.m_fixtureB.getShape(),Bb),b.m_xf)},b2CollidePolyAndEdge:function(a,b,c,d,e){this.multiplyTransformsInverse(c,e,G.m_xf);this.multiplyTransformVector(G.m_xf,d.m_centroid,G.temp);e=G.m_centroidB;var g=G.temp;e.x=g.x;e.y=g.y;this.m_v0=b.m_v0;this.m_v1=b.m_v1;this.m_v2=b.m_v2;this.m_v3=b.m_v3; +c=b.m_hasVertex0;b=b.m_hasVertex3;e=G.edge1;g=this.m_v2;e.x=g.x;e.y=g.y;G.edge1.subtract(this.m_v1);G.edge1.normalize();e=G.m_normal1;g=G.edge1.y;var f=-G.edge1.x;null==f&&(f=0);null==g&&(g=0);e.x=g;e.y=f;e=G.temp;g=G.m_centroidB;e.x=g.x;e.y=g.y;G.temp.subtract(this.m_v1);var l=P.dot(G.m_normal1,G.temp),t=0,m=0,h=!1,p=!1;c&&(e=G.edge0,g=this.m_v1,e.x=g.x,e.y=g.y,G.edge0.subtract(this.m_v0),G.edge0.normalize(),e=G.m_normal0,g=G.edge0.y,f=-G.edge0.x,null==f&&(f=0),null==g&&(g=0),e.x=g,e.y=f,h=0<=P.crossVV(G.edge0, +G.edge1),e=G.temp,g=G.m_centroidB,e.x=g.x,e.y=g.y,G.temp.subtract(this.m_v0),t=P.dot(G.m_normal0,G.temp));b&&(e=G.edge2,g=this.m_v3,e.x=g.x,e.y=g.y,G.edge2.subtract(this.m_v2),G.edge2.normalize(),e=G.m_normal2,g=G.edge2.y,f=-G.edge2.x,null==f&&(f=0),null==g&&(g=0),e.x=g,e.y=f,p=0<P.crossVV(G.edge1,G.edge2),e=G.temp,g=G.m_centroidB,e.x=g.x,e.y=g.y,G.temp.subtract(this.m_v2),m=P.dot(G.m_normal2,G.temp));c&&b?h&&p?(this.m_front=0<=t||0<=l||0<=m)?(e=G.m_normal,g=G.m_normal1,e.x=g.x,e.y=g.y,e=G.m_lowerLimit, +g=G.m_normal0,e.x=g.x,e.y=g.y,e=G.m_upperLimit,g=G.m_normal2,e.x=g.x,e.y=g.y):(e=G.m_normal,g=G.m_normal1,e.x=g.x,e.y=g.y,e=G.m_normal,e.x=-e.x,e.y=-e.y,e=G.m_lowerLimit,g=G.m_normal1,e.x=g.x,e.y=g.y,e=G.m_lowerLimit,e.x=-e.x,e.y=-e.y,e=G.m_upperLimit,g=G.m_normal1,e.x=g.x,e.y=g.y,e=G.m_upperLimit,e.x=-e.x,e.y=-e.y):h?(this.m_front=0<=t||0<=l&&0<=m)?(e=G.m_normal,g=G.m_normal1,e.x=g.x,e.y=g.y,e=G.m_lowerLimit,g=G.m_normal0,e.x=g.x,e.y=g.y,e=G.m_upperLimit,g=G.m_normal1,e.x=g.x,e.y=g.y):(e=G.m_normal, +g=G.m_normal1,e.x=g.x,e.y=g.y,e=G.m_normal,e.x=-e.x,e.y=-e.y,e=G.m_lowerLimit,g=G.m_normal2,e.x=g.x,e.y=g.y,e=G.m_lowerLimit,e.x=-e.x,e.y=-e.y,e=G.m_upperLimit,g=G.m_normal1,e.x=g.x,e.y=g.y,e=G.m_upperLimit,e.x=-e.x,e.y=-e.y):p?(this.m_front=0<=m||0<=t&&0<=l)?(e=G.m_normal,g=G.m_normal1,e.x=g.x,e.y=g.y,e=G.m_lowerLimit,g=G.m_normal1,e.x=g.x,e.y=g.y,e=G.m_upperLimit,g=G.m_normal2,e.x=g.x,e.y=g.y):(e=G.m_normal,g=G.m_normal1,e.x=g.x,e.y=g.y,e=G.m_normal,e.x=-e.x,e.y=-e.y,e=G.m_lowerLimit,g=G.m_normal1, +e.x=g.x,e.y=g.y,e=G.m_lowerLimit,e.x=-e.x,e.y=-e.y,e=G.m_upperLimit,g=G.m_normal0,e.x=g.x,e.y=g.y,e=G.m_upperLimit,e.x=-e.x,e.y=-e.y):(this.m_front=0<=t&&0<=l&&0<=m)?(e=G.m_normal,g=G.m_normal1,e.x=g.x,e.y=g.y,e=G.m_lowerLimit,g=G.m_normal1,e.x=g.x,e.y=g.y,e=G.m_upperLimit,g=G.m_normal1,e.x=g.x,e.y=g.y):(e=G.m_normal,g=G.m_normal1,e.x=g.x,e.y=g.y,e=G.m_normal,e.x=-e.x,e.y=-e.y,e=G.m_lowerLimit,g=G.m_normal2,e.x=g.x,e.y=g.y,e=G.m_lowerLimit,e.x=-e.x,e.y=-e.y,e=G.m_upperLimit,g=G.m_normal0,e.x=g.x, +e.y=g.y,e=G.m_upperLimit,e.x=-e.x,e.y=-e.y):c?(h?((this.m_front=0<=t||0<=l)?(e=G.m_normal,g=G.m_normal1,e.x=g.x,e.y=g.y,e=G.m_lowerLimit,g=G.m_normal0):(e=G.m_normal,g=G.m_normal1,e.x=g.x,e.y=g.y,e=G.m_normal,e.x=-e.x,e.y=-e.y,e=G.m_lowerLimit,g=G.m_normal1),e.x=g.x,e.y=g.y,e=G.m_upperLimit,g=G.m_normal1):(this.m_front=0<=t&&0<=l)?(e=G.m_normal,g=G.m_normal1,e.x=g.x,e.y=g.y,e=G.m_lowerLimit,g=G.m_normal1,e.x=g.x,e.y=g.y,e=G.m_upperLimit,g=G.m_normal1):(e=G.m_normal,g=G.m_normal1,e.x=g.x,e.y=g.y,e= +G.m_normal,e.x=-e.x,e.y=-e.y,e=G.m_lowerLimit,g=G.m_normal1,e.x=g.x,e.y=g.y,e=G.m_upperLimit,g=G.m_normal0),e.x=g.x,e.y=g.y,e=G.m_upperLimit,e.x=-e.x,e.y=-e.y):b?(p?(this.m_front=0<=l||0<=m)?(e=G.m_normal,g=G.m_normal1,e.x=g.x,e.y=g.y,e=G.m_lowerLimit,g=G.m_normal1,e.x=g.x,e.y=g.y,e=G.m_lowerLimit,e.x=-e.x,e.y=-e.y,e=G.m_upperLimit,g=G.m_normal2):(e=G.m_normal,g=G.m_normal1,e.x=g.x,e.y=g.y,e=G.m_normal,e.x=-e.x,e.y=-e.y,e=G.m_lowerLimit,g=G.m_normal1,e.x=g.x,e.y=g.y,e=G.m_lowerLimit,e.x=-e.x,e.y= +-e.y,e=G.m_upperLimit,g=G.m_normal1):((this.m_front=0<=l&&0<=m)?(e=G.m_normal,g=G.m_normal1,e.x=g.x,e.y=g.y,e=G.m_lowerLimit,g=G.m_normal1):(e=G.m_normal,g=G.m_normal1,e.x=g.x,e.y=g.y,e=G.m_normal,e.x=-e.x,e.y=-e.y,e=G.m_lowerLimit,g=G.m_normal2),e.x=g.x,e.y=g.y,e=G.m_lowerLimit,e.x=-e.x,e.y=-e.y,e=G.m_upperLimit,g=G.m_normal1),e.x=g.x,e.y=g.y):(this.m_front=0<=l)?(e=G.m_normal,g=G.m_normal1,e.x=g.x,e.y=g.y,e=G.m_lowerLimit,g=G.m_normal1,e.x=g.x,e.y=g.y,e=G.m_lowerLimit,e.x=-e.x,e.y=-e.y,e=G.m_upperLimit, +g=G.m_normal1,e.x=g.x,e.y=g.y,e=G.m_upperLimit,e.x=-e.x,e.y=-e.y):(e=G.m_normal,g=G.m_normal1,e.x=g.x,e.y=g.y,e=G.m_normal,e.x=-e.x,e.y=-e.y,e=G.m_lowerLimit,g=G.m_normal1,e.x=g.x,e.y=g.y,e=G.m_upperLimit,g=G.m_normal1,e.x=g.x,e.y=g.y);G.m_polygonB.count=d.m_vertexCount;b=0;for(f=d.m_vertexCount;b<f;)l=b++,this.multiplyTransformVector(G.m_xf,d.m_vertices[l],G.temp),e=G.m_polygonB.vertices[l],g=G.temp,e.x=g.x,e.y=g.y,this.multiplyRotationVector(G.m_xf.R,d.m_normals[l],G.temp),g=G.m_polygonB.normals[l], +t=G.temp,g.x=t.x,g.y=t.y;this.m_radius=2*aa.b2_polygonRadius;a.m_pointCount=0;this.computeEdgeSeparation(G.edgeAxis);if(!(G.edgeAxis.type==Hf.UNKNOWN||G.edgeAxis.separation>this.m_radius||(this.computePolygonSeparation(G.polygonAxis),G.polygonAxis.type!=Hf.UNKNOWN&&G.polygonAxis.separation>this.m_radius))){c=G.polygonAxis.type==Hf.UNKNOWN?G.edgeAxis:G.polygonAxis.separation>.98*G.edgeAxis.separation+.001?G.polygonAxis:G.edgeAxis;if(c.type==Hf.EDGE_A){a.m_type=2;e=0;g=P.dot(G.m_normal,G.m_polygonB.normals[0]); +b=1;for(f=G.m_polygonB.count;b<f;)l=b++,t=P.dot(G.m_normal,G.m_polygonB.normals[l]),t<g&&(g=t,e=l);b=e;f=b+1<G.m_polygonB.count?b+1:0;e=G.ie[0].v;g=G.m_polygonB.vertices[b];e.x=g.x;e.y=g.y;G.ie[0].id.indexA=0;G.ie[0].id.indexB=b;G.ie[0].id.typeA=qb.FACE;G.ie[0].id.typeB=qb.VERTEX;e=G.ie[1].v;g=G.m_polygonB.vertices[f];e.x=g.x;e.y=g.y;G.ie[1].id.indexA=0;G.ie[1].id.indexB=f;G.ie[1].id.typeA=qb.FACE;G.ie[1].id.typeB=qb.VERTEX;this.m_front?(G.rf.i1=0,G.rf.i2=1,e=G.rf.v1,g=this.m_v1,e.x=g.x,e.y=g.y,e= +G.rf.v2,g=this.m_v2,e.x=g.x,e.y=g.y,e=G.rf.normal,g=G.m_normal1,e.x=g.x,e.y=g.y):(G.rf.i1=1,G.rf.i2=0,e=G.rf.v1,g=this.m_v2,e.x=g.x,e.y=g.y,e=G.rf.v2,g=this.m_v1,e.x=g.x,e.y=g.y,e=G.rf.normal,g=G.m_normal1,e.x=g.x,e.y=g.y,e=G.rf.normal,e.x=-e.x,e.y=-e.y)}else a.m_type=4,e=G.ie[0].v,g=this.m_v1,e.x=g.x,e.y=g.y,G.ie[0].id.indexA=0,G.ie[0].id.indexB=c.index,G.ie[0].id.typeA=qb.VERTEX,G.ie[0].id.typeB=qb.FACE,e=G.ie[1].v,g=this.m_v2,e.x=g.x,e.y=g.y,G.ie[1].id.indexA=0,G.ie[1].id.indexB=c.index,G.ie[1].id.typeA= +qb.VERTEX,G.ie[1].id.typeB=qb.FACE,G.rf.i1=c.index,G.rf.i2=G.rf.i1+1<G.m_polygonB.count?G.rf.i1+1:0,e=G.rf.v1,g=G.m_polygonB.vertices[G.rf.i1],e.x=g.x,e.y=g.y,e=G.rf.v2,g=G.m_polygonB.vertices[G.rf.i2],e.x=g.x,e.y=g.y,e=G.rf.normal,g=G.m_polygonB.normals[G.rf.i1],e.x=g.x,e.y=g.y;e=G.rf.sideNormal1;g=G.rf.normal.y;f=-G.rf.normal.x;null==f&&(f=0);null==g&&(g=0);e.x=g;e.y=f;e=G.rf.sideNormal2;g=G.rf.sideNormal1;e.x=g.x;e.y=g.y;e=G.rf.sideNormal2;e.x=-e.x;e.y=-e.y;G.rf.sideOffset1=P.dot(G.rf.sideNormal1, +G.rf.v1);G.rf.sideOffset2=P.dot(G.rf.sideNormal2,G.rf.v2);e=G.clipSegmentToLine(G.clipPoints1,G.ie,G.rf.sideNormal1,G.rf.sideOffset1,G.rf.i1);if(!(e<aa.b2_maxManifoldPoints||(e=G.clipSegmentToLine(G.clipPoints2,G.clipPoints1,G.rf.sideNormal2,G.rf.sideOffset2,G.rf.i2),e<aa.b2_maxManifoldPoints))){c.type==Hf.EDGE_A?(e=a.m_localPlaneNormal,g=G.rf.normal,e.x=g.x,e.y=g.y,e=a.m_localPoint,g=G.rf.v1):(e=a.m_localPlaneNormal,g=d.m_normals[G.rf.i1],e.x=g.x,e.y=g.y,e=a.m_localPoint,g=d.m_vertices[G.rf.i1]); +e.x=g.x;e.y=g.y;b=d=0;for(f=aa.b2_maxManifoldPoints;b<f;)l=b++,e=G.temp,g=G.clipPoints2[l].v,e.x=g.x,e.y=g.y,G.temp.subtract(G.rf.v1),P.dot(G.rf.normal,G.temp)<=this.m_radius&&(e=a.m_points[d],c.type==Hf.EDGE_A?(g=e.m_localPoint,t=P.mulXT(G.m_xf,G.clipPoints2[l].v),g.x=t.x,g.y=t.y,e.m_id.set(G.clipPoints2[l].id)):(g=e.m_localPoint,t=G.clipPoints2[l].v,g.x=t.x,g.y=t.y,e.m_id.typeA=G.clipPoints2[l].id.typeB,e.m_id.typeB=G.clipPoints2[l].id.typeA,e.m_id.indexA=G.clipPoints2[l].id.indexB,e.m_id.indexB= +G.clipPoints2[l].id.indexA),++d);a.m_pointCount=d}}},computeEdgeSeparation:function(a){a.type=Hf.EDGE_A;a.index=this.m_front?0:1;a.separation=Number.MAX_VALUE;for(var b=0,c=G.m_polygonB.count;b<c;){var d=b++,e=G.temp;d=G.m_polygonB.vertices[d];e.x=d.x;e.y=d.y;G.temp.subtract(this.m_v1);e=P.dot(G.m_normal,G.temp);e<a.separation&&(a.separation=e)}},computePolygonSeparation:function(a){a.type=Hf.UNKNOWN;a.index=-1;a.separation=-Number.MAX_VALUE;var b=G.perp,c=-G.m_normal.y,d=G.m_normal.x;null==d&&(d= +0);null==c&&(c=0);b.x=c;b.y=d;c=0;for(d=G.m_polygonB.count;c<d;){var e=c++;b=G.n;var g=G.m_polygonB.normals[e];b.x=g.x;b.y=g.y;b=G.n;b.x=-b.x;b.y=-b.y;b=G.temp;g=G.m_polygonB.vertices[e];b.x=g.x;b.y=g.y;G.temp.subtract(this.m_v1);b=P.dot(G.n,G.temp);g=G.temp;var f=G.m_polygonB.vertices[e];g.x=f.x;g.y=f.y;G.temp.subtract(this.m_v2);g=P.dot(G.n,G.temp);b=Math.min(b,g);if(b>this.m_radius){a.type=Hf.EDGE_B;a.index=e;a.separation=b;break}0<=P.dot(G.n,G.perp)?(g=G.temp,f=G.n,g.x=f.x,g.y=f.y,G.temp.subtract(G.m_upperLimit)): +(g=G.temp,f=G.n,g.x=f.x,g.y=f.y,G.temp.subtract(G.m_lowerLimit));!(P.dot(G.temp,G.m_normal)<-aa.b2_angularSlop)&&b>a.separation&&(a.type=Hf.EDGE_B,a.index=e,a.separation=b)}},multiplyTransformsInverse:function(a,b,c){this.multiplyRotationsInverse(a.R,b.R,G.mat);var d=G.temp2;b=b.position;d.x=b.x;d.y=b.y;G.temp2.subtract(a.position);this.multiplyRotationVectorInverse(a.R,G.temp2,c.position);d=c.R.col1;b=G.mat.col1;d.x=b.x;d.y=b.y;d=c.R.col2;b=G.mat.col2;d.x=b.x;d.y=b.y},multiplyRotationsInverse:function(a, +b,c){c.col1.x=a.col1.x*b.col1.x+a.col1.y*b.col1.y;c.col1.y=a.col2.x*b.col1.x+a.col2.y*b.col1.y;c.col2.x=a.col1.x*b.col2.x+a.col1.y*b.col2.y;c.col2.y=a.col2.x*b.col2.x+a.col2.y*b.col2.y},multiplyRotationVector:function(a,b,c){c.x=a.col1.x*b.x+a.col2.x*b.y;c.y=a.col1.y*b.x+a.col2.y*b.y},multiplyRotationVectorInverse:function(a,b,c){c.x=a.col1.x*b.x+a.col1.y*b.y;c.y=a.col2.x*b.x+a.col2.y*b.y},multiplyTransformVector:function(a,b,c){c.x=a.R.col1.x*b.x+a.R.col2.x*b.y+a.position.x;c.y=a.R.col1.y*b.x+a.R.col2.y* +b.y+a.position.y},__class__:G});var Hf=E["box2D.dynamics.contacts.Type"]={__ename__:"box2D.dynamics.contacts.Type",__constructs__:null,UNKNOWN:{_hx_name:"UNKNOWN",_hx_index:0,__enum__:"box2D.dynamics.contacts.Type",toString:v},EDGE_A:{_hx_name:"EDGE_A",_hx_index:1,__enum__:"box2D.dynamics.contacts.Type",toString:v},EDGE_B:{_hx_name:"EDGE_B",_hx_index:2,__enum__:"box2D.dynamics.contacts.Type",toString:v}};Hf.__constructs__=[Hf.UNKNOWN,Hf.EDGE_A,Hf.EDGE_B];var mh=function(){Xa.call(this)};k["box2D.dynamics.contacts.B2PolygonContact"]= +mh;mh.__name__="box2D.dynamics.contacts.B2PolygonContact";mh.create=function(a){return new mh};mh.destroy=function(a,b){};mh.__super__=Xa;mh.prototype=u(Xa.prototype,{reset:function(a,b){Xa.prototype.reset.call(this,a,b)},evaluate:function(){var a=this.m_fixtureA.getBody(),b=this.m_fixtureB.getBody();Ma.collidePolygons(this.m_manifold,O.__cast(this.m_fixtureA.getShape(),Bb),a.m_xf,O.__cast(this.m_fixtureB.getShape(),Bb),b.m_xf)},__class__:mh});var wt=function(){};k["box2D.dynamics.controllers.B2Controller"]= +wt;wt.__name__="box2D.dynamics.controllers.B2Controller";wt.prototype={step:function(a){},draw:function(a){},addBody:function(a){var b=new Kn;b.controller=this;b.body=a;b.nextBody=this.m_bodyList;b.prevBody=null;this.m_bodyList=b;null!=b.nextBody&&(b.nextBody.prevBody=b);this.m_bodyCount++;b.nextController=a.m_controllerList;b.prevController=null;a.m_controllerList=b;null!=b.nextController&&(b.nextController.prevController=b);a.m_controllerCount++},removeBody:function(a){for(var b=a.m_controllerList;null!= +b&&b.controller!=this;)b=b.nextController;null!=b.prevBody&&(b.prevBody.nextBody=b.nextBody);null!=b.nextBody&&(b.nextBody.prevBody=b.prevBody);null!=b.nextController&&(b.nextController.prevController=b.prevController);null!=b.prevController&&(b.prevController.nextController=b.nextController);this.m_bodyList==b&&(this.m_bodyList=b.nextBody);a.m_controllerList==b&&(a.m_controllerList=b.nextController);a.m_controllerCount--;this.m_bodyCount--},clear:function(){for(;null!=this.m_bodyList;)this.removeBody(this.m_bodyList.body)}, +getNext:function(){return this.m_next},getWorld:function(){return this.m_world},getBodyList:function(){return this.m_bodyList},m_next:null,m_prev:null,m_bodyList:null,m_bodyCount:null,m_world:null,__class__:wt};var Kn=function(){};k["box2D.dynamics.controllers.B2ControllerEdge"]=Kn;Kn.__name__="box2D.dynamics.controllers.B2ControllerEdge";Kn.prototype={controller:null,body:null,prevBody:null,nextBody:null,prevController:null,nextController:null,__class__:Kn};var Qb=function(a){this.m_edgeA=new Gk; +this.m_edgeB=new Gk;this.m_localCenterA=new z;this.m_localCenterB=new z;aa.b2Assert(a.bodyA!=a.bodyB);this.m_type=a.type;this.m_next=this.m_prev=null;this.m_bodyA=a.bodyA;this.m_bodyB=a.bodyB;this.m_collideConnected=a.collideConnected;this.m_islandFlag=!1;this.m_userData=a.userData};k["box2D.dynamics.joints.B2Joint"]=Qb;Qb.__name__="box2D.dynamics.joints.B2Joint";Qb.create=function(a,b){b=null;3==a.type?b=new pi(O.__cast(a,Lh)):5==a.type?b=new Hk(O.__cast(a,Ik)):2==a.type?b=new qi(O.__cast(a,Jk)): +1==a.type?b=new ag(O.__cast(a,Mh)):4==a.type?b=new sg(O.__cast(a,Kk)):6==a.type?b=new Lk(O.__cast(a,Mk)):7==a.type?b=new wj(O.__cast(a,Nh)):8==a.type?b=new Nk(O.__cast(a,Ok)):9==a.type&&(b=new Pk(O.__cast(a,Qk)));return b};Qb.destroy=function(a,b){};Qb.prototype={getType:function(){return this.m_type},getAnchorA:function(){return null},getAnchorB:function(){return null},getReactionForce:function(a){return null},getReactionTorque:function(a){return 0},getBodyA:function(){return this.m_bodyA},getBodyB:function(){return this.m_bodyB}, +getNext:function(){return this.m_next},getUserData:function(){return this.m_userData},setUserData:function(a){this.m_userData=a},isActive:function(){return this.m_bodyA.isActive()?this.m_bodyB.isActive():!1},initVelocityConstraints:function(a){},solveVelocityConstraints:function(a){},finalizeVelocityConstraints:function(){},solvePositionConstraints:function(a){return!1},m_type:null,m_prev:null,m_next:null,m_edgeA:null,m_edgeB:null,m_bodyA:null,m_bodyB:null,m_islandFlag:null,m_collideConnected:null, +m_userData:null,m_localCenterA:null,m_localCenterB:null,m_invMassA:null,m_invMassB:null,m_invIA:null,m_invIB:null,ID:null,__class__:Qb};var pi=function(a){Qb.call(this,a);this.m_localAnchor1=new z;this.m_localAnchor2=new z;this.m_u=new z;var b=this.m_localAnchor1,c=a.localAnchorA;b.x=c.x;b.y=c.y;b=this.m_localAnchor2;c=a.localAnchorB;b.x=c.x;b.y=c.y;this.m_length=a.length;this.m_frequencyHz=a.frequencyHz;this.m_dampingRatio=a.dampingRatio;this.m_bias=this.m_gamma=this.m_impulse=0};k["box2D.dynamics.joints.B2DistanceJoint"]= +pi;pi.__name__="box2D.dynamics.joints.B2DistanceJoint";pi.__super__=Qb;pi.prototype=u(Qb.prototype,{getAnchorA:function(){return this.m_bodyA.getWorldPoint(this.m_localAnchor1)},getAnchorB:function(){return this.m_bodyB.getWorldPoint(this.m_localAnchor2)},getReactionForce:function(a){return new z(a*this.m_impulse*this.m_u.x,a*this.m_impulse*this.m_u.y)},getReactionTorque:function(a){return 0},getLength:function(){return this.m_length},setLength:function(a){this.m_length=a},getFrequency:function(){return this.m_frequencyHz}, +setFrequency:function(a){this.m_frequencyHz=a},getDampingRatio:function(){return this.m_dampingRatio},setDampingRatio:function(a){this.m_dampingRatio=a},initVelocityConstraints:function(a){var b=this.m_bodyA,c=this.m_bodyB,d=b.m_xf.R,e=this.m_localAnchor1.x-b.m_sweep.localCenter.x,g=this.m_localAnchor1.y-b.m_sweep.localCenter.y,f=d.col1.x*e+d.col2.x*g;g=d.col1.y*e+d.col2.y*g;e=f;d=c.m_xf.R;var l=this.m_localAnchor2.x-c.m_sweep.localCenter.x,t=this.m_localAnchor2.y-c.m_sweep.localCenter.y;f=d.col1.x* +l+d.col2.x*t;t=d.col1.y*l+d.col2.y*t;l=f;this.m_u.x=c.m_sweep.c.x+l-b.m_sweep.c.x-e;this.m_u.y=c.m_sweep.c.y+t-b.m_sweep.c.y-g;d=Math.sqrt(this.m_u.x*this.m_u.x+this.m_u.y*this.m_u.y);d>aa.b2_linearSlop?this.m_u.multiply(1/d):(f=this.m_u,f.x=0,f.y=0);f=e*this.m_u.y-g*this.m_u.x;var m=l*this.m_u.y-t*this.m_u.x;f=b.m_invMass+b.m_invI*f*f+c.m_invMass+c.m_invI*m*m;this.m_mass=0!=f?1/f:0;if(0<this.m_frequencyHz){d-=this.m_length;m=2*Math.PI*this.m_frequencyHz;var h=this.m_mass*m*m;this.m_gamma=a.dt*(2* +this.m_mass*this.m_dampingRatio*m+a.dt*h);this.m_gamma=0!=this.m_gamma?1/this.m_gamma:0;this.m_bias=d*a.dt*h*this.m_gamma;this.m_mass=f+this.m_gamma;this.m_mass=0!=this.m_mass?1/this.m_mass:0}a.warmStarting?(this.m_impulse*=a.dtRatio,a=this.m_impulse*this.m_u.x,d=this.m_impulse*this.m_u.y,b.m_linearVelocity.x-=b.m_invMass*a,b.m_linearVelocity.y-=b.m_invMass*d,b.m_angularVelocity-=b.m_invI*(e*d-g*a),c.m_linearVelocity.x+=c.m_invMass*a,c.m_linearVelocity.y+=c.m_invMass*d,c.m_angularVelocity+=c.m_invI* +(l*d-t*a)):this.m_impulse=0},solveVelocityConstraints:function(a){a=this.m_bodyA;var b=this.m_bodyB,c=a.m_xf.R,d=this.m_localAnchor1.x-a.m_sweep.localCenter.x,e=this.m_localAnchor1.y-a.m_sweep.localCenter.y,g=c.col1.x*d+c.col2.x*e;e=c.col1.y*d+c.col2.y*e;d=g;c=b.m_xf.R;var f=this.m_localAnchor2.x-b.m_sweep.localCenter.x,l=this.m_localAnchor2.y-b.m_sweep.localCenter.y;g=c.col1.x*f+c.col2.x*l;l=c.col1.y*f+c.col2.y*l;f=g;g=-this.m_mass*(this.m_u.x*(b.m_linearVelocity.x+-b.m_angularVelocity*l-(a.m_linearVelocity.x+ +-a.m_angularVelocity*e))+this.m_u.y*(b.m_linearVelocity.y+b.m_angularVelocity*f-(a.m_linearVelocity.y+a.m_angularVelocity*d))+this.m_bias+this.m_gamma*this.m_impulse);this.m_impulse+=g;c=g*this.m_u.x;g*=this.m_u.y;a.m_linearVelocity.x-=a.m_invMass*c;a.m_linearVelocity.y-=a.m_invMass*g;a.m_angularVelocity-=a.m_invI*(d*g-e*c);b.m_linearVelocity.x+=b.m_invMass*c;b.m_linearVelocity.y+=b.m_invMass*g;b.m_angularVelocity+=b.m_invI*(f*g-l*c)},solvePositionConstraints:function(a){if(0<this.m_frequencyHz)return!0; +a=this.m_bodyA;var b=this.m_bodyB,c=a.m_xf.R,d=this.m_localAnchor1.x-a.m_sweep.localCenter.x,e=this.m_localAnchor1.y-a.m_sweep.localCenter.y,g=c.col1.x*d+c.col2.x*e;e=c.col1.y*d+c.col2.y*e;d=g;c=b.m_xf.R;var f=this.m_localAnchor2.x-b.m_sweep.localCenter.x,l=this.m_localAnchor2.y-b.m_sweep.localCenter.y;g=c.col1.x*f+c.col2.x*l;l=c.col1.y*f+c.col2.y*l;f=g;var t=b.m_sweep.c.x+f-a.m_sweep.c.x-d,m=b.m_sweep.c.y+l-a.m_sweep.c.y-e;c=Math.sqrt(t*t+m*m);t/=c;m/=c;c-=this.m_length;c=P.clamp(c,-aa.b2_maxLinearCorrection, +aa.b2_maxLinearCorrection);g=-this.m_mass*c;var h=this.m_u;null==m&&(m=0);null==t&&(t=0);h.x=t;h.y=m;m=g*this.m_u.x;g*=this.m_u.y;a.m_sweep.c.x-=a.m_invMass*m;a.m_sweep.c.y-=a.m_invMass*g;a.m_sweep.a-=a.m_invI*(d*g-e*m);b.m_sweep.c.x+=b.m_invMass*m;b.m_sweep.c.y+=b.m_invMass*g;b.m_sweep.a+=b.m_invI*(f*g-l*m);a.synchronizeTransform();b.synchronizeTransform();return P.abs(c)<aa.b2_linearSlop},m_localAnchor1:null,m_localAnchor2:null,m_u:null,m_frequencyHz:null,m_dampingRatio:null,m_gamma:null,m_bias:null, +m_impulse:null,m_mass:null,m_length:null,__class__:pi});var Rc=function(){this.type=0;this.bodyB=this.bodyA=this.userData=null;this.collideConnected=!1};k["box2D.dynamics.joints.B2JointDef"]=Rc;Rc.__name__="box2D.dynamics.joints.B2JointDef";Rc.prototype={type:null,userData:null,bodyA:null,bodyB:null,collideConnected:null,ID:null,actor1:null,actor2:null,__class__:Rc};var Lh=function(){Rc.call(this);this.localAnchorA=new z;this.localAnchorB=new z;this.type=3;this.length=1;this.dampingRatio=this.frequencyHz= +0};k["box2D.dynamics.joints.B2DistanceJointDef"]=Lh;Lh.__name__="box2D.dynamics.joints.B2DistanceJointDef";Lh.__super__=Rc;Lh.prototype=u(Rc.prototype,{initialize:function(a,b,c,d){this.bodyA=a;this.bodyB=b;a=this.localAnchorA;b=this.bodyA.getLocalPoint(c);a.x=b.x;a.y=b.y;a=this.localAnchorB;b=this.bodyB.getLocalPoint(d);a.x=b.x;a.y=b.y;a=d.x-c.x;c=d.y-c.y;this.length=Math.sqrt(a*a+c*c);this.dampingRatio=this.frequencyHz=0},localAnchorA:null,localAnchorB:null,length:null,frequencyHz:null,dampingRatio:null, +__class__:Lh});var Pk=function(a){Qb.call(this,a);this.m_localAnchorA=new z;this.m_localAnchorB=new z;this.m_linearMass=new vc;this.m_linearImpulse=new z;var b=this.m_localAnchorA,c=a.localAnchorA;b.x=c.x;b.y=c.y;b=this.m_localAnchorB;c=a.localAnchorB;b.x=c.x;b.y=c.y;this.m_linearMass.setZero();this.m_angularMass=0;b=this.m_linearImpulse;b.x=0;this.m_angularImpulse=b.y=0;this.m_maxForce=a.maxForce;this.m_maxTorque=a.maxTorque};k["box2D.dynamics.joints.B2FrictionJoint"]=Pk;Pk.__name__="box2D.dynamics.joints.B2FrictionJoint"; +Pk.__super__=Qb;Pk.prototype=u(Qb.prototype,{getAnchorA:function(){return this.m_bodyA.getWorldPoint(this.m_localAnchorA)},getAnchorB:function(){return this.m_bodyB.getWorldPoint(this.m_localAnchorB)},getReactionForce:function(a){return new z(a*this.m_linearImpulse.x,a*this.m_linearImpulse.y)},getReactionTorque:function(a){return a*this.m_angularImpulse},setMaxForce:function(a){this.m_maxForce=a},getMaxForce:function(){return this.m_maxForce},setMaxTorque:function(a){this.m_maxTorque=a},getMaxTorque:function(){return this.m_maxTorque}, +initVelocityConstraints:function(a){var b=this.m_bodyA,c=this.m_bodyB,d=b.m_xf.R,e=this.m_localAnchorA.x-b.m_sweep.localCenter.x,g=this.m_localAnchorA.y-b.m_sweep.localCenter.y,f=d.col1.x*e+d.col2.x*g;g=d.col1.y*e+d.col2.y*g;e=f;d=c.m_xf.R;var l=this.m_localAnchorB.x-c.m_sweep.localCenter.x,t=this.m_localAnchorB.y-c.m_sweep.localCenter.y;f=d.col1.x*l+d.col2.x*t;t=d.col1.y*l+d.col2.y*t;l=f;d=b.m_invMass;f=c.m_invMass;var m=b.m_invI,h=c.m_invI,p=new vc;p.col1.x=d+f;p.col2.x=0;p.col1.y=0;p.col2.y=d+ +f;p.col1.x+=m*g*g;p.col2.x+=-m*e*g;p.col1.y+=-m*e*g;p.col2.y+=m*e*e;p.col1.x+=h*t*t;p.col2.x+=-h*l*t;p.col1.y+=-h*l*t;p.col2.y+=h*l*l;p.getInverse(this.m_linearMass);this.m_angularMass=m+h;0<this.m_angularMass&&(this.m_angularMass=1/this.m_angularMass);a.warmStarting?(this.m_linearImpulse.x*=a.dtRatio,this.m_linearImpulse.y*=a.dtRatio,this.m_angularImpulse*=a.dtRatio,a=this.m_linearImpulse,b.m_linearVelocity.x-=d*a.x,b.m_linearVelocity.y-=d*a.y,b.m_angularVelocity-=m*(e*a.y-g*a.x+this.m_angularImpulse), +c.m_linearVelocity.x+=f*a.x,c.m_linearVelocity.y+=f*a.y,c.m_angularVelocity+=h*(l*a.y-t*a.x+this.m_angularImpulse)):(b=this.m_linearImpulse,b.x=0,this.m_angularImpulse=b.y=0)},solveVelocityConstraints:function(a){var b=this.m_bodyA,c=this.m_bodyB,d=b.m_linearVelocity,e=b.m_angularVelocity,g=c.m_linearVelocity,f=c.m_angularVelocity,l=b.m_invMass,t=c.m_invMass,m=b.m_invI,h=c.m_invI,p=b.m_xf.R,n=this.m_localAnchorA.x-b.m_sweep.localCenter.x,k=this.m_localAnchorA.y-b.m_sweep.localCenter.y,r=p.col1.x* +n+p.col2.x*k;k=p.col1.y*n+p.col2.y*k;n=r;p=c.m_xf.R;var q=this.m_localAnchorB.x-c.m_sweep.localCenter.x,v=this.m_localAnchorB.y-c.m_sweep.localCenter.y;r=p.col1.x*q+p.col2.x*v;v=p.col1.y*q+p.col2.y*v;q=r;r=-this.m_angularMass*(f-e);var u=this.m_angularImpulse;p=a.dt*this.m_maxTorque;this.m_angularImpulse=P.clamp(this.m_angularImpulse+r,-p,p);r=this.m_angularImpulse-u;e-=m*r;f+=h*r;p=P.mulMV(this.m_linearMass,new z(-(g.x-f*v-d.x+e*k),-(g.y+f*q-d.y-e*n)));r=this.m_linearImpulse.copy();this.m_linearImpulse.add(p); +p=a.dt*this.m_maxForce;this.m_linearImpulse.lengthSquared()>p*p&&(this.m_linearImpulse.normalize(),this.m_linearImpulse.multiply(p));p=P.subtractVV(this.m_linearImpulse,r);d.x-=l*p.x;d.y-=l*p.y;e-=m*(n*p.y-k*p.x);g.x+=t*p.x;g.y+=t*p.y;f+=h*(q*p.y-v*p.x);b.m_angularVelocity=e;c.m_angularVelocity=f},solvePositionConstraints:function(a){return!0},m_localAnchorA:null,m_localAnchorB:null,m_linearMass:null,m_angularMass:null,m_linearImpulse:null,m_angularImpulse:null,m_maxForce:null,m_maxTorque:null,__class__:Pk}); +var Qk=function(){Rc.call(this);this.localAnchorA=new z;this.localAnchorB=new z;this.type=9;this.maxTorque=this.maxForce=0};k["box2D.dynamics.joints.B2FrictionJointDef"]=Qk;Qk.__name__="box2D.dynamics.joints.B2FrictionJointDef";Qk.__super__=Rc;Qk.prototype=u(Rc.prototype,{initialize:function(a,b,c){this.bodyA=a;this.bodyB=b;a=this.localAnchorA;b=this.bodyA.getLocalPoint(c);a.x=b.x;a.y=b.y;a=this.localAnchorB;b=this.bodyB.getLocalPoint(c);a.x=b.x;a.y=b.y},localAnchorA:null,localAnchorB:null,maxForce:null, +maxTorque:null,__class__:Qk});var Lk=function(a){Qb.call(this,a);this.m_groundAnchor1=new z;this.m_groundAnchor2=new z;this.m_localAnchor1=new z;this.m_localAnchor2=new z;this.m_J=new Ln;var b=a.joint1.m_type,c=a.joint2.m_type;this.m_prismatic2=this.m_revolute2=this.m_prismatic1=this.m_revolute1=null;this.m_ground1=a.joint1.getBodyA();this.m_bodyA=a.joint1.getBodyB();if(1==b){this.m_revolute1=O.__cast(a.joint1,ag);var d=this.m_groundAnchor1,e=this.m_revolute1.m_localAnchor1;d.x=e.x;d.y=e.y;d=this.m_localAnchor1; +e=this.m_revolute1.m_localAnchor2;d.x=e.x;d.y=e.y;b=this.m_revolute1.getJointAngle()}else this.m_prismatic1=O.__cast(a.joint1,qi),d=this.m_groundAnchor1,e=this.m_prismatic1.m_localAnchor1,d.x=e.x,d.y=e.y,d=this.m_localAnchor1,e=this.m_prismatic1.m_localAnchor2,d.x=e.x,d.y=e.y,b=this.m_prismatic1.getJointTranslation();this.m_ground2=a.joint2.getBodyA();this.m_bodyB=a.joint2.getBodyB();1==c?(this.m_revolute2=O.__cast(a.joint2,ag),d=this.m_groundAnchor2,e=this.m_revolute2.m_localAnchor1,d.x=e.x,d.y= +e.y,d=this.m_localAnchor2,e=this.m_revolute2.m_localAnchor2,d.x=e.x,d.y=e.y,c=this.m_revolute2.getJointAngle()):(this.m_prismatic2=O.__cast(a.joint2,qi),d=this.m_groundAnchor2,e=this.m_prismatic2.m_localAnchor1,d.x=e.x,d.y=e.y,d=this.m_localAnchor2,e=this.m_prismatic2.m_localAnchor2,d.x=e.x,d.y=e.y,c=this.m_prismatic2.getJointTranslation());this.m_ratio=a.ratio;this.m_constant=b+this.m_ratio*c;this.m_impulse=0};k["box2D.dynamics.joints.B2GearJoint"]=Lk;Lk.__name__="box2D.dynamics.joints.B2GearJoint"; +Lk.__super__=Qb;Lk.prototype=u(Qb.prototype,{getAnchorA:function(){return this.m_bodyA.getWorldPoint(this.m_localAnchor1)},getAnchorB:function(){return this.m_bodyB.getWorldPoint(this.m_localAnchor2)},getReactionForce:function(a){return new z(a*this.m_impulse*this.m_J.linearB.x,a*this.m_impulse*this.m_J.linearB.y)},getReactionTorque:function(a){var b=this.m_bodyB.m_xf.R,c=this.m_localAnchor1.x-this.m_bodyB.m_sweep.localCenter.x,d=this.m_localAnchor1.y-this.m_bodyB.m_sweep.localCenter.y,e=b.col1.x* +c+b.col2.x*d;d=b.col1.y*c+b.col2.y*d;return a*(this.m_impulse*this.m_J.angularB-e*this.m_impulse*this.m_J.linearB.y+d*this.m_impulse*this.m_J.linearB.x)},getRatio:function(){return this.m_ratio},setRatio:function(a){this.m_ratio=a},initVelocityConstraints:function(a){var b=this.m_ground1,c=this.m_ground2,d=this.m_bodyA,e=this.m_bodyB,g=0;this.m_J.setZero();if(null!=this.m_revolute1)this.m_J.angularA=-1,g+=d.m_invI;else{var f=b.m_xf.R;var l=this.m_prismatic1.m_localXAxis1;b=f.col1.x*l.x+f.col2.x*l.y; +l=f.col1.y*l.x+f.col2.y*l.y;f=d.m_xf.R;var t=this.m_localAnchor1.x-d.m_sweep.localCenter.x;var m=this.m_localAnchor1.y-d.m_sweep.localCenter.y;var h=f.col1.x*t+f.col2.x*m;m=f.col1.y*t+f.col2.y*m;f=h*l-m*b;t=this.m_J.linearA;b=-b;l=-l;null==l&&(l=0);null==b&&(b=0);t.x=b;t.y=l;this.m_J.angularA=-f;g+=d.m_invMass+d.m_invI*f*f}null!=this.m_revolute2?(this.m_J.angularB=-this.m_ratio,g+=this.m_ratio*this.m_ratio*e.m_invI):(f=c.m_xf.R,l=this.m_prismatic2.m_localXAxis1,b=f.col1.x*l.x+f.col2.x*l.y,l=f.col1.y* +l.x+f.col2.y*l.y,f=e.m_xf.R,t=this.m_localAnchor2.x-e.m_sweep.localCenter.x,m=this.m_localAnchor2.y-e.m_sweep.localCenter.y,h=f.col1.x*t+f.col2.x*m,m=f.col1.y*t+f.col2.y*m,f=h*l-m*b,t=this.m_J.linearB,b*=-this.m_ratio,l*=-this.m_ratio,null==l&&(l=0),null==b&&(b=0),t.x=b,t.y=l,this.m_J.angularB=-this.m_ratio*f,g+=this.m_ratio*this.m_ratio*(e.m_invMass+e.m_invI*f*f));this.m_mass=0<g?1/g:0;a.warmStarting?(d.m_linearVelocity.x+=d.m_invMass*this.m_impulse*this.m_J.linearA.x,d.m_linearVelocity.y+=d.m_invMass* +this.m_impulse*this.m_J.linearA.y,d.m_angularVelocity+=d.m_invI*this.m_impulse*this.m_J.angularA,e.m_linearVelocity.x+=e.m_invMass*this.m_impulse*this.m_J.linearB.x,e.m_linearVelocity.y+=e.m_invMass*this.m_impulse*this.m_J.linearB.y,e.m_angularVelocity+=e.m_invI*this.m_impulse*this.m_J.angularB):this.m_impulse=0},solveVelocityConstraints:function(a){a=this.m_bodyA;var b=this.m_bodyB,c=this.m_J.compute(a.m_linearVelocity,a.m_angularVelocity,b.m_linearVelocity,b.m_angularVelocity);c*=-this.m_mass;this.m_impulse+= +c;a.m_linearVelocity.x+=a.m_invMass*c*this.m_J.linearA.x;a.m_linearVelocity.y+=a.m_invMass*c*this.m_J.linearA.y;a.m_angularVelocity+=a.m_invI*c*this.m_J.angularA;b.m_linearVelocity.x+=b.m_invMass*c*this.m_J.linearB.x;b.m_linearVelocity.y+=b.m_invMass*c*this.m_J.linearB.y;b.m_angularVelocity+=b.m_invI*c*this.m_J.angularB},solvePositionConstraints:function(a){a=this.m_bodyA;var b=this.m_bodyB;var c=null!=this.m_revolute1?this.m_revolute1.getJointAngle():this.m_prismatic1.getJointTranslation();var d= +null!=this.m_revolute2?this.m_revolute2.getJointAngle():this.m_prismatic2.getJointTranslation();c=-this.m_mass*(this.m_constant-(c+this.m_ratio*d));a.m_sweep.c.x+=a.m_invMass*c*this.m_J.linearA.x;a.m_sweep.c.y+=a.m_invMass*c*this.m_J.linearA.y;a.m_sweep.a+=a.m_invI*c*this.m_J.angularA;b.m_sweep.c.x+=b.m_invMass*c*this.m_J.linearB.x;b.m_sweep.c.y+=b.m_invMass*c*this.m_J.linearB.y;b.m_sweep.a+=b.m_invI*c*this.m_J.angularB;a.synchronizeTransform();b.synchronizeTransform();return 0<aa.b2_linearSlop}, +m_ground1:null,m_ground2:null,m_revolute1:null,m_prismatic1:null,m_revolute2:null,m_prismatic2:null,m_groundAnchor1:null,m_groundAnchor2:null,m_localAnchor1:null,m_localAnchor2:null,m_J:null,m_constant:null,m_ratio:null,m_mass:null,m_impulse:null,__class__:Lk});var Mk=function(){Rc.call(this);this.type=6;this.joint2=this.joint1=null;this.ratio=1};k["box2D.dynamics.joints.B2GearJointDef"]=Mk;Mk.__name__="box2D.dynamics.joints.B2GearJointDef";Mk.__super__=Rc;Mk.prototype=u(Rc.prototype,{joint1:null, +joint2:null,ratio:null,__class__:Mk});var Ln=function(){this.linearA=new z;this.linearB=new z};k["box2D.dynamics.joints.B2Jacobian"]=Ln;Ln.__name__="box2D.dynamics.joints.B2Jacobian";Ln.prototype={linearA:null,angularA:null,linearB:null,angularB:null,setZero:function(){var a=this.linearA;a.x=0;this.angularA=a.y=0;a=this.linearB;a.x=0;this.angularB=a.y=0},set:function(a,b,c,d){var e=this.linearA;e.x=a.x;e.y=a.y;this.angularA=b;e=this.linearB;e.x=c.x;e.y=c.y;this.angularB=d},compute:function(a,b,c, +d){return this.linearA.x*a.x+this.linearA.y*a.y+this.angularA*b+(this.linearB.x*c.x+this.linearB.y*c.y)+this.angularB*d},__class__:Ln};var Gk=function(){};k["box2D.dynamics.joints.B2JointEdge"]=Gk;Gk.__name__="box2D.dynamics.joints.B2JointEdge";Gk.prototype={other:null,joint:null,prev:null,next:null,__class__:Gk};var wj=function(a){Qb.call(this,a);this.m_localAnchor1=new z;this.m_localAnchor2=new z;this.m_localXAxis1=new z;this.m_localYAxis1=new z;this.m_axis=new z;this.m_perp=new z;this.m_K=new vc; +this.m_impulse=new z;var b=this.m_localAnchor1,c=a.localAnchorA;b.x=c.x;b.y=c.y;b=this.m_localAnchor2;c=a.localAnchorB;b.x=c.x;b.y=c.y;b=this.m_localXAxis1;c=a.localAxisA;b.x=c.x;b.y=c.y;this.m_localYAxis1.x=-this.m_localXAxis1.y;this.m_localYAxis1.y=this.m_localXAxis1.x;b=this.m_impulse;b.x=0;this.m_motorImpulse=this.m_motorMass=b.y=0;this.m_lowerTranslation=a.lowerTranslation;this.m_upperTranslation=a.upperTranslation;this.m_maxMotorForce=a.maxMotorForce;this.m_motorSpeed=a.motorSpeed;this.m_enableLimit= +a.enableLimit;this.m_enableMotor=a.enableMotor;this.m_limitState=0;b=this.m_axis;b.x=0;b.y=0;b=this.m_perp;b.x=0;b.y=0};k["box2D.dynamics.joints.B2LineJoint"]=wj;wj.__name__="box2D.dynamics.joints.B2LineJoint";wj.__super__=Qb;wj.prototype=u(Qb.prototype,{getAnchorA:function(){return this.m_bodyA.getWorldPoint(this.m_localAnchor1)},getAnchorB:function(){return this.m_bodyB.getWorldPoint(this.m_localAnchor2)},getReactionForce:function(a){return new z(a*(this.m_impulse.x*this.m_perp.x+(this.m_motorImpulse+ +this.m_impulse.y)*this.m_axis.x),a*(this.m_impulse.x*this.m_perp.y+(this.m_motorImpulse+this.m_impulse.y)*this.m_axis.y))},getReactionTorque:function(a){return a*this.m_impulse.y},getJointTranslation:function(){var a=this.m_bodyA,b=this.m_bodyB,c=a.getWorldPoint(this.m_localAnchor1),d=b.getWorldPoint(this.m_localAnchor2);b=d.x-c.x;c=d.y-c.y;a=a.getWorldVector(this.m_localXAxis1);return a.x*b+a.y*c},getJointSpeed:function(){var a=this.m_bodyA,b=this.m_bodyB,c=a.m_xf.R,d=this.m_localAnchor1.x-a.m_sweep.localCenter.x, +e=this.m_localAnchor1.y-a.m_sweep.localCenter.y,g=c.col1.x*d+c.col2.x*e;e=c.col1.y*d+c.col2.y*e;d=g;c=b.m_xf.R;var f=this.m_localAnchor2.x-b.m_sweep.localCenter.x,l=this.m_localAnchor2.y-b.m_sweep.localCenter.y;g=c.col1.x*f+c.col2.x*l;l=c.col1.y*f+c.col2.y*l;f=g;c=b.m_sweep.c.x+f-(a.m_sweep.c.x+d);g=b.m_sweep.c.y+l-(a.m_sweep.c.y+e);var t=a.getWorldVector(this.m_localXAxis1),m=a.m_linearVelocity,h=b.m_linearVelocity;a=a.m_angularVelocity;b=b.m_angularVelocity;return c*-a*t.y+g*a*t.x+(t.x*(h.x+-b* +l-m.x- -a*e)+t.y*(h.y+b*f-m.y-a*d))},isLimitEnabled:function(){return this.m_enableLimit},enableLimit:function(a){this.m_bodyA.setAwake(!0);this.m_bodyB.setAwake(!0);this.m_enableLimit=a},getLowerLimit:function(){return this.m_lowerTranslation},getUpperLimit:function(){return this.m_upperTranslation},setLimits:function(a,b){this.m_bodyA.setAwake(!0);this.m_bodyB.setAwake(!0);this.m_lowerTranslation=a;this.m_upperTranslation=b},isMotorEnabled:function(){return this.m_enableMotor},enableMotor:function(a){this.m_bodyA.setAwake(!0); +this.m_bodyB.setAwake(!0);this.m_enableMotor=a},setMotorSpeed:function(a){this.m_bodyA.setAwake(!0);this.m_bodyB.setAwake(!0);this.m_motorSpeed=a},getMotorSpeed:function(){return this.m_motorSpeed},setMaxMotorForce:function(a){this.m_bodyA.setAwake(!0);this.m_bodyB.setAwake(!0);this.m_maxMotorForce=a},getMaxMotorForce:function(){return this.m_maxMotorForce},getMotorForce:function(){return this.m_motorImpulse},initVelocityConstraints:function(a){var b=this.m_bodyA,c=this.m_bodyB,d=this.m_localCenterA, +e=b.getLocalCenter();d.x=e.x;d.y=e.y;d=this.m_localCenterB;e=c.getLocalCenter();d.x=e.x;d.y=e.y;var g=b.getTransform();c.getTransform();var f=b.m_xf.R,l=this.m_localAnchor1.x-this.m_localCenterA.x,t=this.m_localAnchor1.y-this.m_localCenterA.y,m=f.col1.x*l+f.col2.x*t;t=f.col1.y*l+f.col2.y*t;l=m;f=c.m_xf.R;var h=this.m_localAnchor2.x-this.m_localCenterB.x,p=this.m_localAnchor2.y-this.m_localCenterB.y;m=f.col1.x*h+f.col2.x*p;p=f.col1.y*h+f.col2.y*p;h=m;f=c.m_sweep.c.x+h-b.m_sweep.c.x-l;m=c.m_sweep.c.y+ +p-b.m_sweep.c.y-t;this.m_invMassA=b.m_invMass;this.m_invMassB=c.m_invMass;this.m_invIA=b.m_invI;this.m_invIB=c.m_invI;d=this.m_axis;e=P.mulMV(g.R,this.m_localXAxis1);d.x=e.x;d.y=e.y;this.m_a1=(f+l)*this.m_axis.y-(m+t)*this.m_axis.x;this.m_a2=h*this.m_axis.y-p*this.m_axis.x;this.m_motorMass=this.m_invMassA+this.m_invMassB+this.m_invIA*this.m_a1*this.m_a1+this.m_invIB*this.m_a2*this.m_a2;this.m_motorMass=this.m_motorMass>Number.MIN_VALUE?1/this.m_motorMass:0;d=this.m_perp;e=P.mulMV(g.R,this.m_localYAxis1); +d.x=e.x;d.y=e.y;this.m_s1=(f+l)*this.m_perp.y-(m+t)*this.m_perp.x;this.m_s2=h*this.m_perp.y-p*this.m_perp.x;g=this.m_invMassA;l=this.m_invMassB;t=this.m_invIA;h=this.m_invIB;this.m_K.col1.x=g+l+t*this.m_s1*this.m_s1+h*this.m_s2*this.m_s2;this.m_K.col1.y=t*this.m_s1*this.m_a1+h*this.m_s2*this.m_a2;this.m_K.col2.x=this.m_K.col1.y;this.m_K.col2.y=g+l+t*this.m_a1*this.m_a1+h*this.m_a2*this.m_a2;this.m_enableLimit?(f=this.m_axis.x*f+this.m_axis.y*m,P.abs(this.m_upperTranslation-this.m_lowerTranslation)< +2*aa.b2_linearSlop?this.m_limitState=3:f<=this.m_lowerTranslation?1!=this.m_limitState&&(this.m_limitState=1,this.m_impulse.y=0):f>=this.m_upperTranslation?2!=this.m_limitState&&(this.m_limitState=2,this.m_impulse.y=0):(this.m_limitState=0,this.m_impulse.y=0)):this.m_limitState=0;0==this.m_enableMotor&&(this.m_motorImpulse=0);a.warmStarting?(this.m_impulse.x*=a.dtRatio,this.m_impulse.y*=a.dtRatio,this.m_motorImpulse*=a.dtRatio,a=this.m_impulse.x*this.m_perp.x+(this.m_motorImpulse+this.m_impulse.y)* +this.m_axis.x,f=this.m_impulse.x*this.m_perp.y+(this.m_motorImpulse+this.m_impulse.y)*this.m_axis.y,m=this.m_impulse.x*this.m_s1+(this.m_motorImpulse+this.m_impulse.y)*this.m_a1,g=this.m_impulse.x*this.m_s2+(this.m_motorImpulse+this.m_impulse.y)*this.m_a2,b.m_linearVelocity.x-=this.m_invMassA*a,b.m_linearVelocity.y-=this.m_invMassA*f,b.m_angularVelocity-=this.m_invIA*m,c.m_linearVelocity.x+=this.m_invMassB*a,c.m_linearVelocity.y+=this.m_invMassB*f,c.m_angularVelocity+=this.m_invIB*g):(d=this.m_impulse, +d.x=0,this.m_motorImpulse=d.y=0)},solveVelocityConstraints:function(a){var b=this.m_bodyA,c=this.m_bodyB,d=b.m_linearVelocity,e=b.m_angularVelocity,g=c.m_linearVelocity,f=c.m_angularVelocity;if(this.m_enableMotor&&3!=this.m_limitState){var l=this.m_motorMass*(this.m_motorSpeed-(this.m_axis.x*(g.x-d.x)+this.m_axis.y*(g.y-d.y)+this.m_a2*f-this.m_a1*e));var t=this.m_motorImpulse;a=a.dt*this.m_maxMotorForce;this.m_motorImpulse=P.clamp(this.m_motorImpulse+l,-a,a);l=this.m_motorImpulse-t;t=l*this.m_axis.x; +a=l*this.m_axis.y;var m=l*this.m_a1;l*=this.m_a2;d.x-=this.m_invMassA*t;d.y-=this.m_invMassA*a;e-=this.m_invIA*m;g.x+=this.m_invMassB*t;g.y+=this.m_invMassB*a;f+=this.m_invIB*l}a=this.m_perp.x*(g.x-d.x)+this.m_perp.y*(g.y-d.y)+this.m_s2*f-this.m_s1*e;this.m_enableLimit&&0!=this.m_limitState?(m=this.m_axis.x*(g.x-d.x)+this.m_axis.y*(g.y-d.y)+this.m_a2*f-this.m_a1*e,t=this.m_impulse.copy(),l=this.m_K.solve(new z,-a,-m),this.m_impulse.add(l),1==this.m_limitState?this.m_impulse.y=P.max(this.m_impulse.y, +0):2==this.m_limitState&&(this.m_impulse.y=P.min(this.m_impulse.y,0)),a=-a-(this.m_impulse.y-t.y)*this.m_K.col2.x,this.m_impulse.x=0!=this.m_K.col1.x?a/this.m_K.col1.x+t.x:t.x,l.x=this.m_impulse.x-t.x,l.y=this.m_impulse.y-t.y,t=l.x*this.m_perp.x+l.y*this.m_axis.x,a=l.x*this.m_perp.y+l.y*this.m_axis.y,m=l.x*this.m_s1+l.y*this.m_a1,l=l.x*this.m_s2+l.y*this.m_a2):(l=0!=this.m_K.col1.x?-a/this.m_K.col1.x:0,this.m_impulse.x+=l,t=l*this.m_perp.x,a=l*this.m_perp.y,m=l*this.m_s1,l*=this.m_s2);d.x-=this.m_invMassA* +t;d.y-=this.m_invMassA*a;e-=this.m_invIA*m;g.x+=this.m_invMassB*t;g.y+=this.m_invMassB*a;f+=this.m_invIB*l;t=b.m_linearVelocity;t.x=d.x;t.y=d.y;b.m_angularVelocity=e;t=c.m_linearVelocity;t.x=g.x;t.y=g.y;c.m_angularVelocity=f},solvePositionConstraints:function(a){a=this.m_bodyA;var b=this.m_bodyB,c=a.m_sweep.c,d=a.m_sweep.a,e=b.m_sweep.c,g=b.m_sweep.a,f=0;var l=!1;var t=0,m=vc.fromAngle(d);var h=vc.fromAngle(g);var p=m,n=this.m_localAnchor1.x-this.m_localCenterA.x;var k=this.m_localAnchor1.y-this.m_localCenterA.y; +var r=p.col1.x*n+p.col2.x*k;k=p.col1.y*n+p.col2.y*k;n=r;p=h;h=this.m_localAnchor2.x-this.m_localCenterB.x;var q=this.m_localAnchor2.y-this.m_localCenterB.y;r=p.col1.x*h+p.col2.x*q;q=p.col1.y*h+p.col2.y*q;h=r;p=e.x+h-c.x-n;r=e.y+q-c.y-k;if(this.m_enableLimit){this.m_axis=P.mulMV(m,this.m_localXAxis1);this.m_a1=(p+n)*this.m_axis.y-(r+k)*this.m_axis.x;this.m_a2=h*this.m_axis.y-q*this.m_axis.x;var v=this.m_axis.x*p+this.m_axis.y*r;P.abs(this.m_upperTranslation-this.m_lowerTranslation)<2*aa.b2_linearSlop? +(t=P.clamp(v,-aa.b2_maxLinearCorrection,aa.b2_maxLinearCorrection),f=P.abs(v),l=!0):v<=this.m_lowerTranslation?(t=P.clamp(v-this.m_lowerTranslation+aa.b2_linearSlop,-aa.b2_maxLinearCorrection,0),f=this.m_lowerTranslation-v,l=!0):v>=this.m_upperTranslation&&(t=P.clamp(v-this.m_upperTranslation+aa.b2_linearSlop,0,aa.b2_maxLinearCorrection),f=v-this.m_upperTranslation,l=!0)}this.m_perp=P.mulMV(m,this.m_localYAxis1);this.m_s1=(p+n)*this.m_perp.y-(r+k)*this.m_perp.x;this.m_s2=h*this.m_perp.y-q*this.m_perp.x; +m=new z;n=this.m_perp.x*p+this.m_perp.y*r;f=P.max(f,P.abs(n));l?(l=this.m_invMassA,k=this.m_invMassB,h=this.m_invIA,q=this.m_invIB,this.m_K.col1.x=l+k+h*this.m_s1*this.m_s1+q*this.m_s2*this.m_s2,this.m_K.col1.y=h*this.m_s1*this.m_a1+q*this.m_s2*this.m_a2,this.m_K.col2.x=this.m_K.col1.y,this.m_K.col2.y=l+k+h*this.m_a1*this.m_a1+q*this.m_a2*this.m_a2,this.m_K.solve(m,-n,-t)):(l=this.m_invMassA,k=this.m_invMassB,h=this.m_invIA,q=this.m_invIB,t=l+k+h*this.m_s1*this.m_s1+q*this.m_s2*this.m_s2,m.x=0!=t? +-n/t:0,m.y=0);t=m.x*this.m_perp.x+m.y*this.m_axis.x;l=m.x*this.m_perp.y+m.y*this.m_axis.y;n=m.x*this.m_s1+m.y*this.m_a1;m=m.x*this.m_s2+m.y*this.m_a2;c.x-=this.m_invMassA*t;c.y-=this.m_invMassA*l;d-=this.m_invIA*n;e.x+=this.m_invMassB*t;e.y+=this.m_invMassB*l;g+=this.m_invIB*m;a.m_sweep.a=d;b.m_sweep.a=g;a.synchronizeTransform();b.synchronizeTransform();return f<=aa.b2_linearSlop?0<=aa.b2_angularSlop:!1},m_localAnchor1:null,m_localAnchor2:null,m_localXAxis1:null,m_localYAxis1:null,m_axis:null,m_perp:null, +m_s1:null,m_s2:null,m_a1:null,m_a2:null,m_K:null,m_impulse:null,m_motorMass:null,m_motorImpulse:null,m_lowerTranslation:null,m_upperTranslation:null,m_maxMotorForce:null,m_motorSpeed:null,m_enableLimit:null,m_enableMotor:null,m_limitState:null,__class__:wj});var Nh=function(){Rc.call(this);this.localAnchorA=new z;this.localAnchorB=new z;this.localAxisA=new z;this.type=7;var a=this.localAxisA,b=1,c=0;null==c&&(c=0);null==b&&(b=0);a.x=b;a.y=c;this.enableLimit=!1;this.upperTranslation=this.lowerTranslation= +0;this.enableMotor=!1;this.motorSpeed=this.maxMotorForce=0};k["box2D.dynamics.joints.B2LineJointDef"]=Nh;Nh.__name__="box2D.dynamics.joints.B2LineJointDef";Nh.__super__=Rc;Nh.prototype=u(Rc.prototype,{initialize:function(a,b,c,d){this.bodyA=a;this.bodyB=b;this.localAnchorA=this.bodyA.getLocalPoint(c);this.localAnchorB=this.bodyB.getLocalPoint(c);this.localAxisA=this.bodyA.getLocalVector(d)},localAnchorA:null,localAnchorB:null,localAxisA:null,enableLimit:null,lowerTranslation:null,upperTranslation:null, +enableMotor:null,maxMotorForce:null,motorSpeed:null,__class__:Nh});var Hk=function(a){Qb.call(this,a);this.K=new vc;this.K1=new vc;this.K2=new vc;this.m_localAnchor=new z;this.m_target=new z;this.m_impulse=new z;this.m_mass=new vc;this.m_C=new z;var b=this.m_target,c=a.target;b.x=c.x;b.y=c.y;b=this.m_target.x-this.m_bodyB.m_xf.position.x;c=this.m_target.y-this.m_bodyB.m_xf.position.y;var d=this.m_bodyB.m_xf.R;this.m_localAnchor.x=b*d.col1.x+c*d.col1.y;this.m_localAnchor.y=b*d.col2.x+c*d.col2.y;this.m_maxForce= +a.maxForce;b=this.m_impulse;b.x=0;b.y=0;this.m_frequencyHz=a.frequencyHz;this.m_dampingRatio=a.dampingRatio;this.m_gamma=this.m_beta=0};k["box2D.dynamics.joints.B2MouseJoint"]=Hk;Hk.__name__="box2D.dynamics.joints.B2MouseJoint";Hk.__super__=Qb;Hk.prototype=u(Qb.prototype,{getAnchorA:function(){return this.m_target},getAnchorB:function(){return this.m_bodyB.getWorldPoint(this.m_localAnchor)},getReactionForce:function(a){return new z(a*this.m_impulse.x,a*this.m_impulse.y)},getReactionTorque:function(a){return 0}, +getTarget:function(){return this.m_target},setTarget:function(a){0==this.m_bodyB.isAwake()&&this.m_bodyB.setAwake(!0);this.m_target=a},getMaxForce:function(){return this.m_maxForce},setMaxForce:function(a){this.m_maxForce=a},getFrequency:function(){return this.m_frequencyHz},setFrequency:function(a){this.m_frequencyHz=a},getDampingRatio:function(){return this.m_dampingRatio},setDampingRatio:function(a){this.m_dampingRatio=a},K:null,K1:null,K2:null,initVelocityConstraints:function(a){var b=this.m_bodyB, +c=b.getMass(),d=2*Math.PI*this.m_frequencyHz,e=c*d*d;this.m_gamma=a.dt*(2*c*this.m_dampingRatio*d+a.dt*e);this.m_gamma=0!=this.m_gamma?1/this.m_gamma:0;this.m_beta=a.dt*e*this.m_gamma;e=b.m_xf.R;c=this.m_localAnchor.x-b.m_sweep.localCenter.x;d=this.m_localAnchor.y-b.m_sweep.localCenter.y;var g=e.col1.x*c+e.col2.x*d;d=e.col1.y*c+e.col2.y*d;c=g;e=b.m_invMass;g=b.m_invI;this.K1.col1.x=e;this.K1.col2.x=0;this.K1.col1.y=0;this.K1.col2.y=e;this.K2.col1.x=g*d*d;this.K2.col2.x=-g*c*d;this.K2.col1.y=-g*c* +d;this.K2.col2.y=g*c*c;this.K.setM(this.K1);this.K.addM(this.K2);this.K.col1.x+=this.m_gamma;this.K.col2.y+=this.m_gamma;this.K.getInverse(this.m_mass);this.m_C.x=b.m_sweep.c.x+c-this.m_target.x;this.m_C.y=b.m_sweep.c.y+d-this.m_target.y;b.m_angularVelocity*=.98;this.m_impulse.x*=a.dtRatio;this.m_impulse.y*=a.dtRatio;b.m_linearVelocity.x+=e*this.m_impulse.x;b.m_linearVelocity.y+=e*this.m_impulse.y;b.m_angularVelocity+=g*(c*this.m_impulse.y-d*this.m_impulse.x)},solveVelocityConstraints:function(a){var b= +this.m_bodyB,c=b.m_xf.R,d=this.m_localAnchor.x-b.m_sweep.localCenter.x,e=this.m_localAnchor.y-b.m_sweep.localCenter.y,g=c.col1.x*d+c.col2.x*e;e=c.col1.y*d+c.col2.y*e;d=g;g=b.m_linearVelocity.x+-b.m_angularVelocity*e;var f=b.m_linearVelocity.y+b.m_angularVelocity*d;c=this.m_mass;g=g+this.m_beta*this.m_C.x+this.m_gamma*this.m_impulse.x;var l=f+this.m_beta*this.m_C.y+this.m_gamma*this.m_impulse.y;f=-(c.col1.x*g+c.col2.x*l);l=-(c.col1.y*g+c.col2.y*l);c=this.m_impulse.x;g=this.m_impulse.y;this.m_impulse.x+= +f;this.m_impulse.y+=l;a=a.dt*this.m_maxForce;this.m_impulse.lengthSquared()>a*a&&this.m_impulse.multiply(a/this.m_impulse.length());f=this.m_impulse.x-c;l=this.m_impulse.y-g;b.m_linearVelocity.x+=b.m_invMass*f;b.m_linearVelocity.y+=b.m_invMass*l;b.m_angularVelocity+=b.m_invI*(d*l-e*f)},solvePositionConstraints:function(a){return!0},m_localAnchor:null,m_target:null,m_impulse:null,m_mass:null,m_C:null,m_maxForce:null,m_frequencyHz:null,m_dampingRatio:null,m_beta:null,m_gamma:null,__class__:Hk});var Ik= +function(){Rc.call(this);this.target=new z;this.type=5;this.maxForce=0;this.frequencyHz=5;this.dampingRatio=.7};k["box2D.dynamics.joints.B2MouseJointDef"]=Ik;Ik.__name__="box2D.dynamics.joints.B2MouseJointDef";Ik.__super__=Rc;Ik.prototype=u(Rc.prototype,{target:null,maxForce:null,frequencyHz:null,dampingRatio:null,__class__:Ik});var qi=function(a){Qb.call(this,a);this.m_localAnchor1=new z;this.m_localAnchor2=new z;this.m_localXAxis1=new z;this.m_localYAxis1=new z;this.m_axis=new z;this.m_perp=new z; +this.m_K=new Jh;this.m_impulse=new We;var b=this.m_localAnchor1,c=a.localAnchorA;b.x=c.x;b.y=c.y;b=this.m_localAnchor2;c=a.localAnchorB;b.x=c.x;b.y=c.y;b=this.m_localXAxis1;c=a.localAxisA;b.x=c.x;b.y=c.y;this.m_localYAxis1.x=-this.m_localXAxis1.y;this.m_localYAxis1.y=this.m_localXAxis1.x;this.m_refAngle=a.referenceAngle;this.m_impulse.setZero();this.m_motorImpulse=this.m_motorMass=0;this.m_lowerTranslation=a.lowerTranslation;this.m_upperTranslation=a.upperTranslation;this.m_maxMotorForce=a.maxMotorForce; +this.m_motorSpeed=a.motorSpeed;this.m_enableLimit=a.enableLimit;this.m_enableMotor=a.enableMotor;this.m_limitState=0;b=this.m_axis;b.x=0;b.y=0;b=this.m_perp;b.x=0;b.y=0};k["box2D.dynamics.joints.B2PrismaticJoint"]=qi;qi.__name__="box2D.dynamics.joints.B2PrismaticJoint";qi.__super__=Qb;qi.prototype=u(Qb.prototype,{getAnchorA:function(){return this.m_bodyA.getWorldPoint(this.m_localAnchor1)},getAnchorB:function(){return this.m_bodyB.getWorldPoint(this.m_localAnchor2)},getReactionForce:function(a){return new z(a* +(this.m_impulse.x*this.m_perp.x+(this.m_motorImpulse+this.m_impulse.z)*this.m_axis.x),a*(this.m_impulse.x*this.m_perp.y+(this.m_motorImpulse+this.m_impulse.z)*this.m_axis.y))},getReactionTorque:function(a){return a*this.m_impulse.y},getJointTranslation:function(){var a=this.m_bodyA,b=this.m_bodyB,c=a.getWorldPoint(this.m_localAnchor1),d=b.getWorldPoint(this.m_localAnchor2);b=d.x-c.x;c=d.y-c.y;a=a.getWorldVector(this.m_localXAxis1);return a.x*b+a.y*c},getJointSpeed:function(){var a=this.m_bodyA,b= +this.m_bodyB,c=a.m_xf.R,d=this.m_localAnchor1.x-a.m_sweep.localCenter.x,e=this.m_localAnchor1.y-a.m_sweep.localCenter.y,g=c.col1.x*d+c.col2.x*e;e=c.col1.y*d+c.col2.y*e;d=g;c=b.m_xf.R;var f=this.m_localAnchor2.x-b.m_sweep.localCenter.x,l=this.m_localAnchor2.y-b.m_sweep.localCenter.y;g=c.col1.x*f+c.col2.x*l;l=c.col1.y*f+c.col2.y*l;f=g;c=b.m_sweep.c.x+f-(a.m_sweep.c.x+d);g=b.m_sweep.c.y+l-(a.m_sweep.c.y+e);var t=a.getWorldVector(this.m_localXAxis1),m=a.m_linearVelocity,h=b.m_linearVelocity;a=a.m_angularVelocity; +b=b.m_angularVelocity;return c*-a*t.y+g*a*t.x+(t.x*(h.x+-b*l-m.x- -a*e)+t.y*(h.y+b*f-m.y-a*d))},isLimitEnabled:function(){return this.m_enableLimit},enableLimit:function(a){this.m_bodyA.setAwake(!0);this.m_bodyB.setAwake(!0);this.m_enableLimit=a},getLowerLimit:function(){return this.m_lowerTranslation},getUpperLimit:function(){return this.m_upperTranslation},setLimits:function(a,b){this.m_bodyA.setAwake(!0);this.m_bodyB.setAwake(!0);this.m_lowerTranslation=a;this.m_upperTranslation=b},isMotorEnabled:function(){return this.m_enableMotor}, +enableMotor:function(a){this.m_bodyA.setAwake(!0);this.m_bodyB.setAwake(!0);this.m_enableMotor=a},setMotorSpeed:function(a){this.m_bodyA.setAwake(!0);this.m_bodyB.setAwake(!0);this.m_motorSpeed=a},getMotorSpeed:function(){return this.m_motorSpeed},setMaxMotorForce:function(a){this.m_bodyA.setAwake(!0);this.m_bodyB.setAwake(!0);this.m_maxMotorForce=a},getMotorForce:function(){return this.m_motorImpulse},initVelocityConstraints:function(a){var b=this.m_bodyA,c=this.m_bodyB,d=this.m_localCenterA,e=b.getLocalCenter(); +d.x=e.x;d.y=e.y;d=this.m_localCenterB;e=c.getLocalCenter();d.x=e.x;d.y=e.y;var g=b.getTransform();c.getTransform();var f=b.m_xf.R,l=this.m_localAnchor1.x-this.m_localCenterA.x,t=this.m_localAnchor1.y-this.m_localCenterA.y,m=f.col1.x*l+f.col2.x*t;t=f.col1.y*l+f.col2.y*t;l=m;f=c.m_xf.R;var h=this.m_localAnchor2.x-this.m_localCenterB.x,p=this.m_localAnchor2.y-this.m_localCenterB.y;m=f.col1.x*h+f.col2.x*p;p=f.col1.y*h+f.col2.y*p;h=m;f=c.m_sweep.c.x+h-b.m_sweep.c.x-l;m=c.m_sweep.c.y+p-b.m_sweep.c.y-t; +this.m_invMassA=b.m_invMass;this.m_invMassB=c.m_invMass;this.m_invIA=b.m_invI;this.m_invIB=c.m_invI;d=this.m_axis;e=P.mulMV(g.R,this.m_localXAxis1);d.x=e.x;d.y=e.y;this.m_a1=(f+l)*this.m_axis.y-(m+t)*this.m_axis.x;this.m_a2=h*this.m_axis.y-p*this.m_axis.x;this.m_motorMass=this.m_invMassA+this.m_invMassB+this.m_invIA*this.m_a1*this.m_a1+this.m_invIB*this.m_a2*this.m_a2;this.m_motorMass>Number.MIN_VALUE&&(this.m_motorMass=1/this.m_motorMass);d=this.m_perp;e=P.mulMV(g.R,this.m_localYAxis1);d.x=e.x;d.y= +e.y;this.m_s1=(f+l)*this.m_perp.y-(m+t)*this.m_perp.x;this.m_s2=h*this.m_perp.y-p*this.m_perp.x;g=this.m_invMassA;l=this.m_invMassB;t=this.m_invIA;h=this.m_invIB;this.m_K.col1.x=g+l+t*this.m_s1*this.m_s1+h*this.m_s2*this.m_s2;this.m_K.col1.y=t*this.m_s1+h*this.m_s2;this.m_K.col1.z=t*this.m_s1*this.m_a1+h*this.m_s2*this.m_a2;this.m_K.col2.x=this.m_K.col1.y;this.m_K.col2.y=t+h;this.m_K.col2.z=t*this.m_a1+h*this.m_a2;this.m_K.col3.x=this.m_K.col1.z;this.m_K.col3.y=this.m_K.col2.z;this.m_K.col3.z=g+l+ +t*this.m_a1*this.m_a1+h*this.m_a2*this.m_a2;this.m_enableLimit?(f=this.m_axis.x*f+this.m_axis.y*m,P.abs(this.m_upperTranslation-this.m_lowerTranslation)<2*aa.b2_linearSlop?this.m_limitState=3:f<=this.m_lowerTranslation?1!=this.m_limitState&&(this.m_limitState=1,this.m_impulse.z=0):f>=this.m_upperTranslation?2!=this.m_limitState&&(this.m_limitState=2,this.m_impulse.z=0):(this.m_limitState=0,this.m_impulse.z=0)):this.m_limitState=0;0==this.m_enableMotor&&(this.m_motorImpulse=0);a.warmStarting?(this.m_impulse.x*= +a.dtRatio,this.m_impulse.y*=a.dtRatio,this.m_motorImpulse*=a.dtRatio,a=this.m_impulse.x*this.m_perp.x+(this.m_motorImpulse+this.m_impulse.z)*this.m_axis.x,f=this.m_impulse.x*this.m_perp.y+(this.m_motorImpulse+this.m_impulse.z)*this.m_axis.y,m=this.m_impulse.x*this.m_s1+this.m_impulse.y+(this.m_motorImpulse+this.m_impulse.z)*this.m_a1,g=this.m_impulse.x*this.m_s2+this.m_impulse.y+(this.m_motorImpulse+this.m_impulse.z)*this.m_a2,b.m_linearVelocity.x-=this.m_invMassA*a,b.m_linearVelocity.y-=this.m_invMassA* +f,b.m_angularVelocity-=this.m_invIA*m,c.m_linearVelocity.x+=this.m_invMassB*a,c.m_linearVelocity.y+=this.m_invMassB*f,c.m_angularVelocity+=this.m_invIB*g):(this.m_impulse.setZero(),this.m_motorImpulse=0)},solveVelocityConstraints:function(a){var b=this.m_bodyA,c=this.m_bodyB,d=b.m_linearVelocity,e=b.m_angularVelocity,g=c.m_linearVelocity,f=c.m_angularVelocity;if(this.m_enableMotor&&3!=this.m_limitState){var l=this.m_motorMass*(this.m_motorSpeed-(this.m_axis.x*(g.x-d.x)+this.m_axis.y*(g.y-d.y)+this.m_a2* +f-this.m_a1*e));var t=this.m_motorImpulse;a=a.dt*this.m_maxMotorForce;this.m_motorImpulse=P.clamp(this.m_motorImpulse+l,-a,a);l=this.m_motorImpulse-t;t=l*this.m_axis.x;a=l*this.m_axis.y;var m=l*this.m_a1;l*=this.m_a2;d.x-=this.m_invMassA*t;d.y-=this.m_invMassA*a;e-=this.m_invIA*m;g.x+=this.m_invMassB*t;g.y+=this.m_invMassB*a;f+=this.m_invIB*l}m=this.m_perp.x*(g.x-d.x)+this.m_perp.y*(g.y-d.y)+this.m_s2*f-this.m_s1*e;a=f-e;this.m_enableLimit&&0!=this.m_limitState?(l=this.m_axis.x*(g.x-d.x)+this.m_axis.y* +(g.y-d.y)+this.m_a2*f-this.m_a1*e,t=this.m_impulse.copy(),l=this.m_K.solve33(new We,-m,-a,-l),this.m_impulse.add(l),1==this.m_limitState?this.m_impulse.z=P.max(this.m_impulse.z,0):2==this.m_limitState&&(this.m_impulse.z=P.min(this.m_impulse.z,0)),m=-m-(this.m_impulse.z-t.z)*this.m_K.col3.x,a=-a-(this.m_impulse.z-t.z)*this.m_K.col3.y,a=this.m_K.solve22(new z,m,a),a.x+=t.x,a.y+=t.y,this.m_impulse.x=a.x,this.m_impulse.y=a.y,l.x=this.m_impulse.x-t.x,l.y=this.m_impulse.y-t.y,l.z=this.m_impulse.z-t.z,t= +l.x*this.m_perp.x+l.z*this.m_axis.x,a=l.x*this.m_perp.y+l.z*this.m_axis.y,m=l.x*this.m_s1+l.y+l.z*this.m_a1,l=l.x*this.m_s2+l.y+l.z*this.m_a2):(l=this.m_K.solve22(new z,-m,-a),this.m_impulse.x+=l.x,this.m_impulse.y+=l.y,t=l.x*this.m_perp.x,a=l.x*this.m_perp.y,m=l.x*this.m_s1+l.y,l=l.x*this.m_s2+l.y);d.x-=this.m_invMassA*t;d.y-=this.m_invMassA*a;e-=this.m_invIA*m;g.x+=this.m_invMassB*t;g.y+=this.m_invMassB*a;f+=this.m_invIB*l;l=b.m_linearVelocity;l.x=d.x;l.y=d.y;b.m_angularVelocity=e;l=c.m_linearVelocity; +l.x=g.x;l.y=g.y;c.m_angularVelocity=f},solvePositionConstraints:function(a){a=this.m_bodyA;var b=this.m_bodyB,c=a.m_sweep.c,d=a.m_sweep.a,e=b.m_sweep.c,g=b.m_sweep.a,f=0;var l=!1;var t=0,m=vc.fromAngle(d),h=vc.fromAngle(g);var p=m;var n=this.m_localAnchor1.x-this.m_localCenterA.x;var k=this.m_localAnchor1.y-this.m_localCenterA.y;var r=p.col1.x*n+p.col2.x*k;k=p.col1.y*n+p.col2.y*k;n=r;p=h;h=this.m_localAnchor2.x-this.m_localCenterB.x;var q=this.m_localAnchor2.y-this.m_localCenterB.y;r=p.col1.x*h+p.col2.x* +q;q=p.col1.y*h+p.col2.y*q;h=r;p=e.x+h-c.x-n;r=e.y+q-c.y-k;if(this.m_enableLimit){this.m_axis=P.mulMV(m,this.m_localXAxis1);this.m_a1=(p+n)*this.m_axis.y-(r+k)*this.m_axis.x;this.m_a2=h*this.m_axis.y-q*this.m_axis.x;var v=this.m_axis.x*p+this.m_axis.y*r;P.abs(this.m_upperTranslation-this.m_lowerTranslation)<2*aa.b2_linearSlop?(t=P.clamp(v,-aa.b2_maxLinearCorrection,aa.b2_maxLinearCorrection),f=P.abs(v),l=!0):v<=this.m_lowerTranslation?(t=P.clamp(v-this.m_lowerTranslation+aa.b2_linearSlop,-aa.b2_maxLinearCorrection, +0),f=this.m_lowerTranslation-v,l=!0):v>=this.m_upperTranslation&&(t=P.clamp(v-this.m_upperTranslation+aa.b2_linearSlop,0,aa.b2_maxLinearCorrection),f=v-this.m_upperTranslation,l=!0)}this.m_perp=P.mulMV(m,this.m_localYAxis1);this.m_s1=(p+n)*this.m_perp.y-(r+k)*this.m_perp.x;this.m_s2=h*this.m_perp.y-q*this.m_perp.x;m=new We;k=this.m_perp.x*p+this.m_perp.y*r;h=g-d-this.m_refAngle;f=P.max(f,P.abs(k));n=P.abs(h);l?(l=this.m_invMassA,q=this.m_invMassB,p=this.m_invIA,r=this.m_invIB,this.m_K.col1.x=l+q+ +p*this.m_s1*this.m_s1+r*this.m_s2*this.m_s2,this.m_K.col1.y=p*this.m_s1+r*this.m_s2,this.m_K.col1.z=p*this.m_s1*this.m_a1+r*this.m_s2*this.m_a2,this.m_K.col2.x=this.m_K.col1.y,this.m_K.col2.y=p+r,this.m_K.col2.z=p*this.m_a1+r*this.m_a2,this.m_K.col3.x=this.m_K.col1.z,this.m_K.col3.y=this.m_K.col2.z,this.m_K.col3.z=l+q+p*this.m_a1*this.m_a1+r*this.m_a2*this.m_a2,this.m_K.solve33(m,-k,-h,-t)):(l=this.m_invMassA,q=this.m_invMassB,p=this.m_invIA,r=this.m_invIB,t=p*this.m_s1+r*this.m_s2,v=p+r,this.m_K.col1.set(l+ +q+p*this.m_s1*this.m_s1+r*this.m_s2*this.m_s2,t,0),this.m_K.col2.set(t,v,0),t=this.m_K.solve22(new z,-k,-h),m.x=t.x,m.y=t.y,m.z=0);t=m.x*this.m_perp.x+m.z*this.m_axis.x;l=m.x*this.m_perp.y+m.z*this.m_axis.y;k=m.x*this.m_s1+m.y+m.z*this.m_a1;m=m.x*this.m_s2+m.y+m.z*this.m_a2;c.x-=this.m_invMassA*t;c.y-=this.m_invMassA*l;d-=this.m_invIA*k;e.x+=this.m_invMassB*t;e.y+=this.m_invMassB*l;g+=this.m_invIB*m;a.m_sweep.a=d;b.m_sweep.a=g;a.synchronizeTransform();b.synchronizeTransform();return f<=aa.b2_linearSlop? +n<=aa.b2_angularSlop:!1},m_localAnchor1:null,m_localAnchor2:null,m_localXAxis1:null,m_localYAxis1:null,m_refAngle:null,m_axis:null,m_perp:null,m_s1:null,m_s2:null,m_a1:null,m_a2:null,m_K:null,m_impulse:null,m_motorMass:null,m_motorImpulse:null,m_lowerTranslation:null,m_upperTranslation:null,m_maxMotorForce:null,m_motorSpeed:null,m_enableLimit:null,m_enableMotor:null,m_limitState:null,__class__:qi});var Jk=function(){Rc.call(this);this.localAnchorA=new z;this.localAnchorB=new z;this.localAxisA=new z; +this.type=2;var a=this.localAxisA,b=1,c=0;null==c&&(c=0);null==b&&(b=0);a.x=b;a.y=c;this.referenceAngle=0;this.enableLimit=!1;this.upperTranslation=this.lowerTranslation=0;this.enableMotor=!1;this.motorSpeed=this.maxMotorForce=0};k["box2D.dynamics.joints.B2PrismaticJointDef"]=Jk;Jk.__name__="box2D.dynamics.joints.B2PrismaticJointDef";Jk.__super__=Rc;Jk.prototype=u(Rc.prototype,{initialize:function(a,b,c,d){this.bodyA=a;this.bodyB=b;this.localAnchorA=this.bodyA.getLocalPoint(c);this.localAnchorB=this.bodyB.getLocalPoint(c); +this.localAxisA=this.bodyA.getLocalVector(d);this.referenceAngle=this.bodyB.getAngle()-this.bodyA.getAngle()},localAnchorA:null,localAnchorB:null,localAxisA:null,referenceAngle:null,enableLimit:null,lowerTranslation:null,upperTranslation:null,enableMotor:null,maxMotorForce:null,motorSpeed:null,__class__:Jk});var sg=function(a){Qb.call(this,a);this.m_groundAnchor1=new z;this.m_groundAnchor2=new z;this.m_localAnchor1=new z;this.m_localAnchor2=new z;this.m_u1=new z;this.m_u2=new z;this.m_ground=this.m_bodyA.m_world.m_groundBody; +this.m_groundAnchor1.x=a.groundAnchorA.x-this.m_ground.m_xf.position.x;this.m_groundAnchor1.y=a.groundAnchorA.y-this.m_ground.m_xf.position.y;this.m_groundAnchor2.x=a.groundAnchorB.x-this.m_ground.m_xf.position.x;this.m_groundAnchor2.y=a.groundAnchorB.y-this.m_ground.m_xf.position.y;var b=this.m_localAnchor1,c=a.localAnchorA;b.x=c.x;b.y=c.y;b=this.m_localAnchor2;c=a.localAnchorB;b.x=c.x;b.y=c.y;this.m_ratio=a.ratio;this.m_constant=a.lengthA+this.m_ratio*a.lengthB;this.m_maxLength1=P.min(a.maxLengthA, +this.m_constant-this.m_ratio*sg.b2_minPulleyLength);this.m_maxLength2=P.min(a.maxLengthB,(this.m_constant-sg.b2_minPulleyLength)/this.m_ratio);this.m_limitImpulse2=this.m_limitImpulse1=this.m_impulse=0};k["box2D.dynamics.joints.B2PulleyJoint"]=sg;sg.__name__="box2D.dynamics.joints.B2PulleyJoint";sg.__super__=Qb;sg.prototype=u(Qb.prototype,{getAnchorA:function(){return this.m_bodyA.getWorldPoint(this.m_localAnchor1)},getAnchorB:function(){return this.m_bodyB.getWorldPoint(this.m_localAnchor2)},getReactionForce:function(a){return new z(a* +this.m_impulse*this.m_u2.x,a*this.m_impulse*this.m_u2.y)},getReactionTorque:function(a){return 0},getGroundAnchorA:function(){var a=this.m_ground.m_xf.position.copy();a.add(this.m_groundAnchor1);return a},getGroundAnchorB:function(){var a=this.m_ground.m_xf.position.copy();a.add(this.m_groundAnchor2);return a},getLength1:function(){var a=this.m_bodyA.getWorldPoint(this.m_localAnchor1),b=a.x-(this.m_ground.m_xf.position.x+this.m_groundAnchor1.x);a=a.y-(this.m_ground.m_xf.position.y+this.m_groundAnchor1.y); +return Math.sqrt(b*b+a*a)},getLength2:function(){var a=this.m_bodyB.getWorldPoint(this.m_localAnchor2),b=a.x-(this.m_ground.m_xf.position.x+this.m_groundAnchor2.x);a=a.y-(this.m_ground.m_xf.position.y+this.m_groundAnchor2.y);return Math.sqrt(b*b+a*a)},getRatio:function(){return this.m_ratio},initVelocityConstraints:function(a){var b=this.m_bodyA,c=this.m_bodyB,d=b.m_xf.R,e=this.m_localAnchor1.x-b.m_sweep.localCenter.x,g=this.m_localAnchor1.y-b.m_sweep.localCenter.y,f=d.col1.x*e+d.col2.x*g;g=d.col1.y* +e+d.col2.y*g;e=f;d=c.m_xf.R;var l=this.m_localAnchor2.x-c.m_sweep.localCenter.x,t=this.m_localAnchor2.y-c.m_sweep.localCenter.y;f=d.col1.x*l+d.col2.x*t;t=d.col1.y*l+d.col2.y*t;l=f;f=c.m_sweep.c.x+l;var m=c.m_sweep.c.y+t,h=this.m_ground.m_xf.position.x+this.m_groundAnchor2.x,p=this.m_ground.m_xf.position.y+this.m_groundAnchor2.y;d=this.m_u1;var n=b.m_sweep.c.x+e-(this.m_ground.m_xf.position.x+this.m_groundAnchor1.x),k=b.m_sweep.c.y+g-(this.m_ground.m_xf.position.y+this.m_groundAnchor1.y);null==k&& +(k=0);null==n&&(n=0);d.x=n;d.y=k;d=this.m_u2;n=f-h;k=m-p;null==k&&(k=0);null==n&&(n=0);d.x=n;d.y=k;f=this.m_u1.length();m=this.m_u2.length();f>aa.b2_linearSlop?this.m_u1.multiply(1/f):(d=this.m_u1,d.x=0,d.y=0);m>aa.b2_linearSlop?this.m_u2.multiply(1/m):(d=this.m_u2,d.x=0,d.y=0);0<this.m_constant-f-this.m_ratio*m?this.m_impulse=this.m_state=0:this.m_state=2;f<this.m_maxLength1?this.m_limitImpulse1=this.m_limitState1=0:this.m_limitState1=2;m<this.m_maxLength2?this.m_limitImpulse2=this.m_limitState2= +0:this.m_limitState2=2;d=e*this.m_u1.y-g*this.m_u1.x;f=l*this.m_u2.y-t*this.m_u2.x;this.m_limitMass1=b.m_invMass+b.m_invI*d*d;this.m_limitMass2=c.m_invMass+c.m_invI*f*f;this.m_pulleyMass=this.m_limitMass1+this.m_ratio*this.m_ratio*this.m_limitMass2;this.m_limitMass1=1/this.m_limitMass1;this.m_limitMass2=1/this.m_limitMass2;this.m_pulleyMass=1/this.m_pulleyMass;a.warmStarting?(this.m_impulse*=a.dtRatio,this.m_limitImpulse1*=a.dtRatio,this.m_limitImpulse2*=a.dtRatio,a=(-this.m_impulse-this.m_limitImpulse1)* +this.m_u1.x,d=(-this.m_impulse-this.m_limitImpulse1)*this.m_u1.y,f=(-this.m_ratio*this.m_impulse-this.m_limitImpulse2)*this.m_u2.x,m=(-this.m_ratio*this.m_impulse-this.m_limitImpulse2)*this.m_u2.y,b.m_linearVelocity.x+=b.m_invMass*a,b.m_linearVelocity.y+=b.m_invMass*d,b.m_angularVelocity+=b.m_invI*(e*d-g*a),c.m_linearVelocity.x+=c.m_invMass*f,c.m_linearVelocity.y+=c.m_invMass*m,c.m_angularVelocity+=c.m_invI*(l*m-t*f)):this.m_limitImpulse2=this.m_limitImpulse1=this.m_impulse=0},solveVelocityConstraints:function(a){a= +this.m_bodyA;var b=this.m_bodyB,c=a.m_xf.R,d=this.m_localAnchor1.x-a.m_sweep.localCenter.x,e=this.m_localAnchor1.y-a.m_sweep.localCenter.y,g=c.col1.x*d+c.col2.x*e;e=c.col1.y*d+c.col2.y*e;d=g;c=b.m_xf.R;var f=this.m_localAnchor2.x-b.m_sweep.localCenter.x,l=this.m_localAnchor2.y-b.m_sweep.localCenter.y;g=c.col1.x*f+c.col2.x*l;l=c.col1.y*f+c.col2.y*l;f=g;if(2==this.m_state){c=a.m_linearVelocity.x+-a.m_angularVelocity*e;g=a.m_linearVelocity.y+a.m_angularVelocity*d;var t=b.m_linearVelocity.x+-b.m_angularVelocity* +l;var m=b.m_linearVelocity.y+b.m_angularVelocity*f;c=-(this.m_u1.x*c+this.m_u1.y*g)-this.m_ratio*(this.m_u2.x*t+this.m_u2.y*m);m=this.m_pulleyMass*-c;c=this.m_impulse;this.m_impulse=P.max(0,this.m_impulse+m);m=this.m_impulse-c;c=-m*this.m_u1.x;g=-m*this.m_u1.y;t=-this.m_ratio*m*this.m_u2.x;m=-this.m_ratio*m*this.m_u2.y;a.m_linearVelocity.x+=a.m_invMass*c;a.m_linearVelocity.y+=a.m_invMass*g;a.m_angularVelocity+=a.m_invI*(d*g-e*c);b.m_linearVelocity.x+=b.m_invMass*t;b.m_linearVelocity.y+=b.m_invMass* +m;b.m_angularVelocity+=b.m_invI*(f*m-l*t)}2==this.m_limitState1&&(c=a.m_linearVelocity.x+-a.m_angularVelocity*e,g=a.m_linearVelocity.y+a.m_angularVelocity*d,c=-(this.m_u1.x*c+this.m_u1.y*g),m=-this.m_limitMass1*c,c=this.m_limitImpulse1,this.m_limitImpulse1=P.max(0,this.m_limitImpulse1+m),m=this.m_limitImpulse1-c,c=-m*this.m_u1.x,g=-m*this.m_u1.y,a.m_linearVelocity.x+=a.m_invMass*c,a.m_linearVelocity.y+=a.m_invMass*g,a.m_angularVelocity+=a.m_invI*(d*g-e*c));2==this.m_limitState2&&(t=b.m_linearVelocity.x+ +-b.m_angularVelocity*l,m=b.m_linearVelocity.y+b.m_angularVelocity*f,c=-(this.m_u2.x*t+this.m_u2.y*m),m=-this.m_limitMass2*c,c=this.m_limitImpulse2,this.m_limitImpulse2=P.max(0,this.m_limitImpulse2+m),m=this.m_limitImpulse2-c,t=-m*this.m_u2.x,m=-m*this.m_u2.y,b.m_linearVelocity.x+=b.m_invMass*t,b.m_linearVelocity.y+=b.m_invMass*m,b.m_angularVelocity+=b.m_invI*(f*m-l*t))},solvePositionConstraints:function(a){a=this.m_bodyA;var b=this.m_bodyB,c=this.m_ground.m_xf.position.x+this.m_groundAnchor1.x,d= +this.m_ground.m_xf.position.y+this.m_groundAnchor1.y,e=this.m_ground.m_xf.position.x+this.m_groundAnchor2.x,g=this.m_ground.m_xf.position.y+this.m_groundAnchor2.y,f=0;if(2==this.m_state){var l=a.m_xf.R;var t=this.m_localAnchor1.x-a.m_sweep.localCenter.x;var m=this.m_localAnchor1.y-a.m_sweep.localCenter.y;var h=l.col1.x*t+l.col2.x*m;m=l.col1.y*t+l.col2.y*m;t=h;l=b.m_xf.R;var p=this.m_localAnchor2.x-b.m_sweep.localCenter.x;var n=this.m_localAnchor2.y-b.m_sweep.localCenter.y;h=l.col1.x*p+l.col2.x*n; +n=l.col1.y*p+l.col2.y*n;p=h;var k=a.m_sweep.c.x+t;var r=a.m_sweep.c.y+m;h=b.m_sweep.c.x+p;var q=b.m_sweep.c.y+n;l=this.m_u1;k-=c;r-=d;null==r&&(r=0);null==k&&(k=0);l.x=k;l.y=r;l=this.m_u2;k=h-e;r=q-g;null==r&&(r=0);null==k&&(k=0);l.x=k;l.y=r;h=this.m_u1.length();r=this.m_u2.length();h>aa.b2_linearSlop?this.m_u1.multiply(1/h):(l=this.m_u1,l.x=0,l.y=0);r>aa.b2_linearSlop?this.m_u2.multiply(1/r):(l=this.m_u2,l.x=0,l.y=0);l=this.m_constant-h-this.m_ratio*r;f=P.max(f,-l);l=P.clamp(l+aa.b2_linearSlop,-aa.b2_maxLinearCorrection, +0);l*=-this.m_pulleyMass;k=-l*this.m_u1.x;r=-l*this.m_u1.y;h=-this.m_ratio*l*this.m_u2.x;q=-this.m_ratio*l*this.m_u2.y;a.m_sweep.c.x+=a.m_invMass*k;a.m_sweep.c.y+=a.m_invMass*r;a.m_sweep.a+=a.m_invI*(t*r-m*k);b.m_sweep.c.x+=b.m_invMass*h;b.m_sweep.c.y+=b.m_invMass*q;b.m_sweep.a+=b.m_invI*(p*q-n*h);a.synchronizeTransform();b.synchronizeTransform()}2==this.m_limitState1&&(l=a.m_xf.R,t=this.m_localAnchor1.x-a.m_sweep.localCenter.x,m=this.m_localAnchor1.y-a.m_sweep.localCenter.y,h=l.col1.x*t+l.col2.x* +m,m=l.col1.y*t+l.col2.y*m,t=h,k=a.m_sweep.c.x+t,r=a.m_sweep.c.y+m,l=this.m_u1,k-=c,r-=d,null==r&&(r=0),null==k&&(k=0),l.x=k,l.y=r,h=this.m_u1.length(),h>aa.b2_linearSlop?(this.m_u1.x*=1/h,this.m_u1.y*=1/h):(l=this.m_u1,l.x=0,l.y=0),l=this.m_maxLength1-h,f=P.max(f,-l),l=P.clamp(l+aa.b2_linearSlop,-aa.b2_maxLinearCorrection,0),l*=-this.m_limitMass1,k=-l*this.m_u1.x,r=-l*this.m_u1.y,a.m_sweep.c.x+=a.m_invMass*k,a.m_sweep.c.y+=a.m_invMass*r,a.m_sweep.a+=a.m_invI*(t*r-m*k),a.synchronizeTransform());2== +this.m_limitState2&&(l=b.m_xf.R,p=this.m_localAnchor2.x-b.m_sweep.localCenter.x,n=this.m_localAnchor2.y-b.m_sweep.localCenter.y,h=l.col1.x*p+l.col2.x*n,n=l.col1.y*p+l.col2.y*n,p=h,h=b.m_sweep.c.x+p,q=b.m_sweep.c.y+n,l=this.m_u2,k=h-e,r=q-g,null==r&&(r=0),null==k&&(k=0),l.x=k,l.y=r,r=this.m_u2.length(),r>aa.b2_linearSlop?(this.m_u2.x*=1/r,this.m_u2.y*=1/r):(l=this.m_u2,l.x=0,l.y=0),l=this.m_maxLength2-r,f=P.max(f,-l),l=P.clamp(l+aa.b2_linearSlop,-aa.b2_maxLinearCorrection,0),l*=-this.m_limitMass2, +h=-l*this.m_u2.x,q=-l*this.m_u2.y,b.m_sweep.c.x+=b.m_invMass*h,b.m_sweep.c.y+=b.m_invMass*q,b.m_sweep.a+=b.m_invI*(p*q-n*h),b.synchronizeTransform());return f<aa.b2_linearSlop},m_ground:null,m_groundAnchor1:null,m_groundAnchor2:null,m_localAnchor1:null,m_localAnchor2:null,m_u1:null,m_u2:null,m_constant:null,m_ratio:null,m_maxLength1:null,m_maxLength2:null,m_pulleyMass:null,m_limitMass1:null,m_limitMass2:null,m_impulse:null,m_limitImpulse1:null,m_limitImpulse2:null,m_state:null,m_limitState1:null, +m_limitState2:null,__class__:sg});var Kk=function(){Rc.call(this);this.groundAnchorA=new z;this.groundAnchorB=new z;this.localAnchorA=new z;this.localAnchorB=new z;this.type=4;var a=this.groundAnchorA,b=-1,c=1;null==c&&(c=0);null==b&&(b=0);a.x=b;a.y=c;a=this.groundAnchorB;c=b=1;null==c&&(c=0);null==b&&(b=0);a.x=b;a.y=c;a=this.localAnchorA;b=-1;c=0;null==c&&(c=0);null==b&&(b=0);a.x=b;a.y=c;a=this.localAnchorB;b=1;c=0;null==c&&(c=0);null==b&&(b=0);a.x=b;a.y=c;this.maxLengthB=this.lengthB=this.maxLengthA= +this.lengthA=0;this.ratio=1;this.collideConnected=!0};k["box2D.dynamics.joints.B2PulleyJointDef"]=Kk;Kk.__name__="box2D.dynamics.joints.B2PulleyJointDef";Kk.__super__=Rc;Kk.prototype=u(Rc.prototype,{initialize:function(a,b,c,d,e,g,f){this.bodyA=a;this.bodyB=b;a=this.groundAnchorA;a.x=c.x;a.y=c.y;a=this.groundAnchorB;a.x=d.x;a.y=d.y;this.localAnchorA=this.bodyA.getLocalPoint(e);this.localAnchorB=this.bodyB.getLocalPoint(g);a=e.x-c.x;c=e.y-c.y;this.lengthA=Math.sqrt(a*a+c*c);c=g.x-d.x;d=g.y-d.y;this.lengthB= +Math.sqrt(c*c+d*d);this.ratio=f;f=this.lengthA+this.ratio*this.lengthB;this.maxLengthA=f-this.ratio*sg.b2_minPulleyLength;this.maxLengthB=(f-sg.b2_minPulleyLength)/this.ratio},groundAnchorA:null,groundAnchorB:null,localAnchorA:null,localAnchorB:null,lengthA:null,maxLengthA:null,lengthB:null,maxLengthB:null,ratio:null,__class__:Kk});var ag=function(a){Qb.call(this,a);this.K=new vc;this.K1=new vc;this.K2=new vc;this.K3=new vc;this.impulse3=new We;this.impulse2=new z;this.reduced=new z;this.m_localAnchor1= +new z;this.m_localAnchor2=new z;this.m_impulse=new We;this.m_mass=new Jh;var b=this.m_localAnchor1,c=a.localAnchorA;b.x=c.x;b.y=c.y;b=this.m_localAnchor2;c=a.localAnchorB;b.x=c.x;b.y=c.y;this.m_referenceAngle=a.referenceAngle;this.m_impulse.setZero();this.m_motorImpulse=0;this.m_lowerAngle=a.lowerAngle;this.m_upperAngle=a.upperAngle;this.m_maxMotorTorque=a.maxMotorTorque;this.m_motorSpeed=a.motorSpeed;this.m_enableLimit=a.enableLimit;this.m_enableMotor=a.enableMotor;this.m_limitState=0};k["box2D.dynamics.joints.B2RevoluteJoint"]= +ag;ag.__name__="box2D.dynamics.joints.B2RevoluteJoint";ag.__super__=Qb;ag.prototype=u(Qb.prototype,{getAnchorA:function(){return this.m_bodyA.getWorldPoint(this.m_localAnchor1)},getAnchorB:function(){return this.m_bodyB.getWorldPoint(this.m_localAnchor2)},getReactionForce:function(a){return new z(a*this.m_impulse.x,a*this.m_impulse.y)},getReactionTorque:function(a){return a*this.m_impulse.z},getJointAngle:function(){return this.m_bodyB.m_sweep.a-this.m_bodyA.m_sweep.a-this.m_referenceAngle},getJointSpeed:function(){return this.m_bodyB.m_angularVelocity- +this.m_bodyA.m_angularVelocity},isLimitEnabled:function(){return this.m_enableLimit},enableLimit:function(a){this.m_enableLimit=a},getLowerLimit:function(){return this.m_lowerAngle},getUpperLimit:function(){return this.m_upperAngle},setLimits:function(a,b){this.m_lowerAngle=a;this.m_upperAngle=b},isMotorEnabled:function(){this.m_bodyA.setAwake(!0);this.m_bodyB.setAwake(!0);return this.m_enableMotor},enableMotor:function(a){this.m_enableMotor=a},setMotorSpeed:function(a){this.m_bodyA.setAwake(!0); +this.m_bodyB.setAwake(!0);this.m_motorSpeed=a},getMotorSpeed:function(){return this.m_motorSpeed},setMaxMotorTorque:function(a){this.m_maxMotorTorque=a},getMotorTorque:function(){return this.m_maxMotorTorque},K:null,K1:null,K2:null,K3:null,initVelocityConstraints:function(a){var b=this.m_bodyA,c=this.m_bodyB,d=b.m_xf.R,e=this.m_localAnchor1.x-b.m_sweep.localCenter.x,g=this.m_localAnchor1.y-b.m_sweep.localCenter.y,f=d.col1.x*e+d.col2.x*g;g=d.col1.y*e+d.col2.y*g;e=f;d=c.m_xf.R;var l=this.m_localAnchor2.x- +c.m_sweep.localCenter.x,t=this.m_localAnchor2.y-c.m_sweep.localCenter.y;f=d.col1.x*l+d.col2.x*t;t=d.col1.y*l+d.col2.y*t;l=f;d=b.m_invMass;f=c.m_invMass;var m=b.m_invI,h=c.m_invI;this.m_mass.col1.x=d+f+g*g*m+t*t*h;this.m_mass.col2.x=-g*e*m-t*l*h;this.m_mass.col3.x=-g*m-t*h;this.m_mass.col1.y=this.m_mass.col2.x;this.m_mass.col2.y=d+f+e*e*m+l*l*h;this.m_mass.col3.y=e*m+l*h;this.m_mass.col1.z=this.m_mass.col3.x;this.m_mass.col2.z=this.m_mass.col3.y;this.m_mass.col3.z=m+h;this.m_motorMass=1/(m+h);0==this.m_enableMotor&& +(this.m_motorImpulse=0);if(this.m_enableLimit){var p=c.m_sweep.a-b.m_sweep.a-this.m_referenceAngle;P.abs(this.m_upperAngle-this.m_lowerAngle)<2*aa.b2_angularSlop?this.m_limitState=3:p<=this.m_lowerAngle?(1!=this.m_limitState&&(this.m_impulse.z=0),this.m_limitState=1):p>=this.m_upperAngle?(2!=this.m_limitState&&(this.m_impulse.z=0),this.m_limitState=2):(this.m_limitState=0,this.m_impulse.z=0)}else this.m_limitState=0;a.warmStarting?(this.m_impulse.x*=a.dtRatio,this.m_impulse.y*=a.dtRatio,this.m_motorImpulse*= +a.dtRatio,a=this.m_impulse.x,p=this.m_impulse.y,b.m_linearVelocity.x-=d*a,b.m_linearVelocity.y-=d*p,b.m_angularVelocity-=m*(e*p-g*a+this.m_motorImpulse+this.m_impulse.z),c.m_linearVelocity.x+=f*a,c.m_linearVelocity.y+=f*p,c.m_angularVelocity+=h*(l*p-t*a+this.m_motorImpulse+this.m_impulse.z)):(this.m_impulse.setZero(),this.m_motorImpulse=0)},impulse3:null,impulse2:null,reduced:null,solveVelocityConstraints:function(a){var b=this.m_bodyA,c=this.m_bodyB,d=b.m_linearVelocity,e=b.m_angularVelocity,g=c.m_linearVelocity, +f=c.m_angularVelocity,l=b.m_invMass,t=c.m_invMass,m=b.m_invI,h=c.m_invI;if(this.m_enableMotor&&3!=this.m_limitState){var p=this.m_motorMass*-(f-e-this.m_motorSpeed);var n=this.m_motorImpulse;a=a.dt*this.m_maxMotorTorque;this.m_motorImpulse=P.clamp(this.m_motorImpulse+p,-a,a);p=this.m_motorImpulse-n;e-=m*p;f+=h*p}if(this.m_enableLimit&&0!=this.m_limitState){var k=b.m_xf.R;p=this.m_localAnchor1.x-b.m_sweep.localCenter.x;n=this.m_localAnchor1.y-b.m_sweep.localCenter.y;var r=k.col1.x*p+k.col2.x*n;n=k.col1.y* +p+k.col2.y*n;p=r;k=c.m_xf.R;a=this.m_localAnchor2.x-c.m_sweep.localCenter.x;var q=this.m_localAnchor2.y-c.m_sweep.localCenter.y;r=k.col1.x*a+k.col2.x*q;q=k.col1.y*a+k.col2.y*q;a=r;r=g.x+-f*q-d.x- -e*n;var v=g.y+f*a-d.y-e*p;this.m_mass.solve33(this.impulse3,-r,-v,-(f-e));3==this.m_limitState?this.m_impulse.add(this.impulse3):1==this.m_limitState?(k=this.m_impulse.z+this.impulse3.z,0>k&&(this.m_mass.solve22(this.reduced,-r,-v),this.impulse3.x=this.reduced.x,this.impulse3.y=this.reduced.y,this.impulse3.z= +-this.m_impulse.z,this.m_impulse.x+=this.reduced.x,this.m_impulse.y+=this.reduced.y,this.m_impulse.z=0)):2==this.m_limitState&&(k=this.m_impulse.z+this.impulse3.z,0<k&&(this.m_mass.solve22(this.reduced,-r,-v),this.impulse3.x=this.reduced.x,this.impulse3.y=this.reduced.y,this.impulse3.z=-this.m_impulse.z,this.m_impulse.x+=this.reduced.x,this.m_impulse.y+=this.reduced.y,this.m_impulse.z=0));d.x-=l*this.impulse3.x;d.y-=l*this.impulse3.y;e-=m*(p*this.impulse3.y-n*this.impulse3.x+this.impulse3.z);g.x+= +t*this.impulse3.x;g.y+=t*this.impulse3.y;f+=h*(a*this.impulse3.y-q*this.impulse3.x+this.impulse3.z)}else k=b.m_xf.R,p=this.m_localAnchor1.x-b.m_sweep.localCenter.x,n=this.m_localAnchor1.y-b.m_sweep.localCenter.y,r=k.col1.x*p+k.col2.x*n,n=k.col1.y*p+k.col2.y*n,p=r,k=c.m_xf.R,a=this.m_localAnchor2.x-c.m_sweep.localCenter.x,q=this.m_localAnchor2.y-c.m_sweep.localCenter.y,r=k.col1.x*a+k.col2.x*q,q=k.col1.y*a+k.col2.y*q,a=r,this.m_mass.solve22(this.impulse2,-(g.x+-f*q-d.x- -e*n),-(g.y+f*a-d.y-e*p)),this.m_impulse.x+= +this.impulse2.x,this.m_impulse.y+=this.impulse2.y,d.x-=l*this.impulse2.x,d.y-=l*this.impulse2.y,e-=m*(p*this.impulse2.y-n*this.impulse2.x),g.x+=t*this.impulse2.x,g.y+=t*this.impulse2.y,f+=h*(a*this.impulse2.y-q*this.impulse2.x);l=b.m_linearVelocity;l.x=d.x;l.y=d.y;b.m_angularVelocity=e;l=c.m_linearVelocity;l.x=g.x;l.y=g.y;c.m_angularVelocity=f},solvePositionConstraints:function(a){a=this.m_bodyA;var b=this.m_bodyB,c=0;if(this.m_enableLimit&&0!=this.m_limitState){var d=b.m_sweep.a-a.m_sweep.a-this.m_referenceAngle; +var e=0;3==this.m_limitState?(d=P.clamp(d-this.m_lowerAngle,-aa.b2_maxAngularCorrection,aa.b2_maxAngularCorrection),e=-this.m_motorMass*d,c=P.abs(d)):1==this.m_limitState?(d-=this.m_lowerAngle,c=-d,d=P.clamp(d+aa.b2_angularSlop,-aa.b2_maxAngularCorrection,0),e=-this.m_motorMass*d):2==this.m_limitState&&(c=d-=this.m_upperAngle,d=P.clamp(d-aa.b2_angularSlop,0,aa.b2_maxAngularCorrection),e=-this.m_motorMass*d);a.m_sweep.a-=a.m_invI*e;b.m_sweep.a+=b.m_invI*e;a.synchronizeTransform();b.synchronizeTransform()}var g= +a.m_xf.R;e=this.m_localAnchor1.x-a.m_sweep.localCenter.x;d=this.m_localAnchor1.y-a.m_sweep.localCenter.y;var f=g.col1.x*e+g.col2.x*d;d=g.col1.y*e+g.col2.y*d;e=f;g=b.m_xf.R;var l=this.m_localAnchor2.x-b.m_sweep.localCenter.x,t=this.m_localAnchor2.y-b.m_sweep.localCenter.y;f=g.col1.x*l+g.col2.x*t;t=g.col1.y*l+g.col2.y*t;l=f;var m=b.m_sweep.c.x+l-a.m_sweep.c.x-e;var h=b.m_sweep.c.y+t-a.m_sweep.c.y-d;var p=m*m+h*h;g=Math.sqrt(p);f=a.m_invMass;var n=b.m_invMass,k=a.m_invI,r=b.m_invI,q=10*aa.b2_linearSlop; +p>q*q&&(p=1/(f+n),m=p*-m,h=p*-h,a.m_sweep.c.x-=.5*f*m,a.m_sweep.c.y-=.5*f*h,b.m_sweep.c.x+=.5*n*m,b.m_sweep.c.y+=.5*n*h,m=b.m_sweep.c.x+l-a.m_sweep.c.x-e,h=b.m_sweep.c.y+t-a.m_sweep.c.y-d);this.K1.col1.x=f+n;this.K1.col2.x=0;this.K1.col1.y=0;this.K1.col2.y=f+n;this.K2.col1.x=k*d*d;this.K2.col2.x=-k*e*d;this.K2.col1.y=-k*e*d;this.K2.col2.y=k*e*e;this.K3.col1.x=r*t*t;this.K3.col2.x=-r*l*t;this.K3.col1.y=-r*l*t;this.K3.col2.y=r*l*l;this.K.setM(this.K1);this.K.addM(this.K2);this.K.addM(this.K3);this.K.solve(ag.tImpulse, +-m,-h);m=ag.tImpulse.x;h=ag.tImpulse.y;a.m_sweep.c.x-=a.m_invMass*m;a.m_sweep.c.y-=a.m_invMass*h;a.m_sweep.a-=a.m_invI*(e*h-d*m);b.m_sweep.c.x+=b.m_invMass*m;b.m_sweep.c.y+=b.m_invMass*h;b.m_sweep.a+=b.m_invI*(l*h-t*m);a.synchronizeTransform();b.synchronizeTransform();return g<=aa.b2_linearSlop?c<=aa.b2_angularSlop:!1},m_localAnchor1:null,m_localAnchor2:null,m_impulse:null,m_motorImpulse:null,m_mass:null,m_motorMass:null,m_enableMotor:null,m_maxMotorTorque:null,m_motorSpeed:null,m_enableLimit:null, +m_referenceAngle:null,m_lowerAngle:null,m_upperAngle:null,m_limitState:null,__class__:ag});var Mh=function(){Rc.call(this);this.localAnchorA=new z;this.localAnchorB=new z;this.type=1;var a=this.localAnchorA,b=0,c=0;null==c&&(c=0);null==b&&(b=0);a.x=b;a.y=c;a=this.localAnchorB;c=b=0;null==c&&(c=0);null==b&&(b=0);a.x=b;a.y=c;this.motorSpeed=this.maxMotorTorque=this.upperAngle=this.lowerAngle=this.referenceAngle=0;this.enableMotor=this.enableLimit=!1};k["box2D.dynamics.joints.B2RevoluteJointDef"]=Mh; +Mh.__name__="box2D.dynamics.joints.B2RevoluteJointDef";Mh.__super__=Rc;Mh.prototype=u(Rc.prototype,{initialize:function(a,b,c){this.bodyA=a;this.bodyB=b;this.localAnchorA=this.bodyA.getLocalPoint(c);this.localAnchorB=this.bodyB.getLocalPoint(c);this.referenceAngle=this.bodyB.getAngle()-this.bodyA.getAngle()},localAnchorA:null,localAnchorB:null,referenceAngle:null,enableLimit:null,lowerAngle:null,upperAngle:null,enableMotor:null,motorSpeed:null,maxMotorTorque:null,__class__:Mh});var Nk=function(a){Qb.call(this, +a);this.m_localAnchorA=new z;this.m_localAnchorB=new z;this.m_impulse=new We;this.m_mass=new Jh;var b=this.m_localAnchorA,c=a.localAnchorA;b.x=c.x;b.y=c.y;b=this.m_localAnchorB;c=a.localAnchorB;b.x=c.x;b.y=c.y;this.m_referenceAngle=a.referenceAngle;this.m_impulse.setZero();this.m_mass=new Jh};k["box2D.dynamics.joints.B2WeldJoint"]=Nk;Nk.__name__="box2D.dynamics.joints.B2WeldJoint";Nk.__super__=Qb;Nk.prototype=u(Qb.prototype,{getAnchorA:function(){return this.m_bodyA.getWorldPoint(this.m_localAnchorA)}, +getAnchorB:function(){return this.m_bodyB.getWorldPoint(this.m_localAnchorB)},getReactionForce:function(a){return new z(a*this.m_impulse.x,a*this.m_impulse.y)},getReactionTorque:function(a){return a*this.m_impulse.z},initVelocityConstraints:function(a){var b=this.m_bodyA,c=this.m_bodyB,d=b.m_xf.R,e=this.m_localAnchorA.x-b.m_sweep.localCenter.x,g=this.m_localAnchorA.y-b.m_sweep.localCenter.y,f=d.col1.x*e+d.col2.x*g;g=d.col1.y*e+d.col2.y*g;e=f;d=c.m_xf.R;var l=this.m_localAnchorB.x-c.m_sweep.localCenter.x, +t=this.m_localAnchorB.y-c.m_sweep.localCenter.y;f=d.col1.x*l+d.col2.x*t;t=d.col1.y*l+d.col2.y*t;l=f;d=b.m_invMass;f=c.m_invMass;var m=b.m_invI,h=c.m_invI;this.m_mass.col1.x=d+f+g*g*m+t*t*h;this.m_mass.col2.x=-g*e*m-t*l*h;this.m_mass.col3.x=-g*m-t*h;this.m_mass.col1.y=this.m_mass.col2.x;this.m_mass.col2.y=d+f+e*e*m+l*l*h;this.m_mass.col3.y=e*m+l*h;this.m_mass.col1.z=this.m_mass.col3.x;this.m_mass.col2.z=this.m_mass.col3.y;this.m_mass.col3.z=m+h;a.warmStarting?(this.m_impulse.x*=a.dtRatio,this.m_impulse.y*= +a.dtRatio,this.m_impulse.z*=a.dtRatio,b.m_linearVelocity.x-=d*this.m_impulse.x,b.m_linearVelocity.y-=d*this.m_impulse.y,b.m_angularVelocity-=m*(e*this.m_impulse.y-g*this.m_impulse.x+this.m_impulse.z),c.m_linearVelocity.x+=f*this.m_impulse.x,c.m_linearVelocity.y+=f*this.m_impulse.y,c.m_angularVelocity+=h*(l*this.m_impulse.y-t*this.m_impulse.x+this.m_impulse.z)):this.m_impulse.setZero()},solveVelocityConstraints:function(a){a=this.m_bodyA;var b=this.m_bodyB,c=a.m_linearVelocity,d=a.m_angularVelocity, +e=b.m_linearVelocity,g=b.m_angularVelocity,f=a.m_invMass,l=b.m_invMass,t=a.m_invI,m=b.m_invI,h=a.m_xf.R,p=this.m_localAnchorA.x-a.m_sweep.localCenter.x,n=this.m_localAnchorA.y-a.m_sweep.localCenter.y,k=h.col1.x*p+h.col2.x*n;n=h.col1.y*p+h.col2.y*n;p=k;h=b.m_xf.R;var r=this.m_localAnchorB.x-b.m_sweep.localCenter.x,q=this.m_localAnchorB.y-b.m_sweep.localCenter.y;k=h.col1.x*r+h.col2.x*q;q=h.col1.y*r+h.col2.y*q;r=k;h=e.x-g*q-c.x+d*n;k=e.y+g*r-c.y-d*p;var v=g-d,u=new We;this.m_mass.solve33(u,-h,-k,-v); +this.m_impulse.add(u);c.x-=f*u.x;c.y-=f*u.y;d-=t*(p*u.y-n*u.x+u.z);e.x+=l*u.x;e.y+=l*u.y;g+=m*(r*u.y-q*u.x+u.z);a.m_angularVelocity=d;b.m_angularVelocity=g},solvePositionConstraints:function(a){a=this.m_bodyA;var b=this.m_bodyB,c=a.m_xf.R,d=this.m_localAnchorA.x-a.m_sweep.localCenter.x,e=this.m_localAnchorA.y-a.m_sweep.localCenter.y,g=c.col1.x*d+c.col2.x*e;e=c.col1.y*d+c.col2.y*e;d=g;c=b.m_xf.R;var f=this.m_localAnchorB.x-b.m_sweep.localCenter.x,l=this.m_localAnchorB.y-b.m_sweep.localCenter.y;g=c.col1.x* +f+c.col2.x*l;l=c.col1.y*f+c.col2.y*l;f=g;c=a.m_invMass;g=b.m_invMass;var t=a.m_invI,m=b.m_invI,h=b.m_sweep.c.x+f-a.m_sweep.c.x-d,p=b.m_sweep.c.y+l-a.m_sweep.c.y-e,n=b.m_sweep.a-a.m_sweep.a-this.m_referenceAngle,k=10*aa.b2_linearSlop,r=Math.sqrt(h*h+p*p),q=P.abs(n);r>k&&(t*=1,m*=1);this.m_mass.col1.x=c+g+e*e*t+l*l*m;this.m_mass.col2.x=-e*d*t-l*f*m;this.m_mass.col3.x=-e*t-l*m;this.m_mass.col1.y=this.m_mass.col2.x;this.m_mass.col2.y=c+g+d*d*t+f*f*m;this.m_mass.col3.y=d*t+f*m;this.m_mass.col1.z=this.m_mass.col3.x; +this.m_mass.col2.z=this.m_mass.col3.y;this.m_mass.col3.z=t+m;k=new We;this.m_mass.solve33(k,-h,-p,-n);a.m_sweep.c.x-=c*k.x;a.m_sweep.c.y-=c*k.y;a.m_sweep.a-=t*(d*k.y-e*k.x+k.z);b.m_sweep.c.x+=g*k.x;b.m_sweep.c.y+=g*k.y;b.m_sweep.a+=m*(f*k.y-l*k.x+k.z);a.synchronizeTransform();b.synchronizeTransform();return r<=aa.b2_linearSlop?q<=aa.b2_angularSlop:!1},m_localAnchorA:null,m_localAnchorB:null,m_referenceAngle:null,m_impulse:null,m_mass:null,__class__:Nk});var Ok=function(){Rc.call(this);this.localAnchorA= +new z;this.localAnchorB=new z;this.type=8;this.referenceAngle=0};k["box2D.dynamics.joints.B2WeldJointDef"]=Ok;Ok.__name__="box2D.dynamics.joints.B2WeldJointDef";Ok.__super__=Rc;Ok.prototype=u(Rc.prototype,{initialize:function(a,b,c){this.bodyA=a;this.bodyB=b;a=this.localAnchorA;b=this.bodyA.getLocalPoint(c);a.x=b.x;a.y=b.y;a=this.localAnchorB;b=this.bodyB.getLocalPoint(c);a.x=b.x;a.y=b.y;this.referenceAngle=this.bodyB.getAngle()-this.bodyA.getAngle()},localAnchorA:null,localAnchorB:null,referenceAngle:null, +__class__:Ok});var Mn=function(){this.stringMapCloner=new Rk(this,V);this.intMapCloner=new Rk(this,Sa);this.classHandles=new V;this.classHandles.h.String=q(this,this.returnString);this.classHandles.h.Array=q(this,this.cloneArray);this.classHandles.h["haxe.ds.StringMap"]=(N=this.stringMapCloner,q(N,N.clone));this.classHandles.h["haxe.ds.IntMap"]=(N=this.intMapCloner,q(N,N.clone))};k["cloner.Cloner"]=Mn;Mn.__name__="cloner.Cloner";Mn.prototype={cache:null,classHandles:null,stringMapCloner:null,intMapCloner:null, +depth:null,returnString:function(a){return a},clone:function(a){this.cache=new ac;this.depth=0;++this.depth;a=this.__clone(a);--this.depth;this.cache=null;return a},_clone:function(a){++this.depth;a=this.__clone(a);--this.depth;return a},__clone:function(a){if(30<this.depth)throw R.thrown("deep clone");if("string"==typeof a)return a;try{if(null!=a.__name__)return a}catch(c){sa.lastError=c}var b=Za.typeof(a);switch(b._hx_index){case 0:return null;case 1:return a;case 2:return a;case 3:return a;case 4:return this.handleAnonymous(a); +case 5:return null;case 6:return b=b.c,null==this.cache.h.__keys__[a.__id__]&&this.cache.set(a,this.handleClass(b,a)),this.cache.h[a.__id__];case 7:return a;case 8:return null}},handleAnonymous:function(a){for(var b=W.fields(a),c={},d=0,e=b.length;d<e;){var g=d++;g=b[g];var f=W.getProperty(a,g);++this.depth;f=this.__clone(f);--this.depth;c[g]=f}return c},handleClass:function(a,b){a=this.classHandles.h[a.__name__];null==a&&(a=q(this,this.cloneClass));return a(b)},cloneArray:function(a){a=a.slice(); +for(var b=0,c=a.length;b<c;){var d=b++;++this.depth;var e=this.__clone(a[d]);--this.depth;a[d]=e}return a},cloneClass:function(a){for(var b=Object.create(O.getClass(a).prototype),c=W.fields(a),d=0,e=c.length;d<e;){var g=d++;g=c[g];var f=W.getProperty(a,g);++this.depth;f=this.__clone(f);--this.depth;b[g]=f}return b},__class__:Mn};var Rk=function(a,b){this.cloner=a;this.type=b;this.noArgs=[]};k["cloner.MapCloner"]=Rk;Rk.__name__="cloner.MapCloner";Rk.prototype={cloner:null,type:null,noArgs:null,clone:function(a){for(var b= +Za.createInstance(this.type,this.noArgs),c=a.keys();c.hasNext();){var d=c.next(),e=this.cloner,g=a.get(d);++e.depth;g=e.__clone(g);--e.depth;b.set(d,g)}return b},__class__:Rk};var Ng=function(a){null==a&&(a=!0);ta.call(this);this.alignRight=a;this.start=!0;this.fps=this.mem_max=0;this.text=new ff;this.text.set_defaultTextFormat(new tg("_sans",10,16777215));this.text.set_wordWrap(!0);this.text.set_multiline(!0);this.text.set_width(70);this.text.set_height(50);this.text.set_selectable(!1);this.text.mouseEnabled= +!1;this.rectangle=new fa(69,0,1,50);this.addEventListener("addedToStage",q(this,this.init),!1,0,!0);this.addEventListener("removedFromStage",q(this,this.destroy),!1,0,!0)};k["com.nmefermmmtools.debug.Stats"]=Ng;Ng.__name__="com.nmefermmmtools.debug.Stats";Ng.__super__=ta;Ng.prototype=u(ta.prototype,{text:null,timer:null,fps:null,ms:null,ms_prev:null,mem:null,mem_max:null,graph:null,rectangle:null,alignRight:null,start:null,fps_graph:null,mem_graph:null,ms_graph:null,mem_max_graph:null,_stage:null, +fpsStr:null,memStr:null,memMaxStr:null,msStr:null,init:function(a){this._stage=Da.get_current().stage;this.get_graphics().beginFill(51);this.get_graphics().drawRect(0,0,70,50);this.get_graphics().endFill();this.addChild(this.text);this.graph=new Ja(70,50,!1,51);this.addEventListener("enterFrame",q(this,this.update))},destroy:function(a){for(this.get_graphics().clear();0<this.get_numChildren();)this.removeChildAt(0);this.graph.dispose();this.removeEventListener("enterFrame",q(this,this.update))},update:function(a){this.start&& +this.alignRight&&(this.set_x(this._stage.stageWidth-this.get_width()),this.start=!1);this.timer=Da.getTimer();this.timer-1E3>this.ms_prev?(this.mem=9.54E-7*bg.get_totalMemory(),this.mem_max=this.mem_max>this.mem?this.mem_max:this.mem,this.fps_graph=50-(Math.min(50,this.fps/this._stage.get_frameRate()*50)|0),this.mem_graph=50-this.normalizeMem(this.mem),this.mem_max_graph=50-this.normalizeMem(this.mem_max),this.ms_graph=50-(this.timer-this.ms>>1)|0,this.graph.scroll(-1,0),this.get_graphics().clear(), +this.get_graphics().beginFill(51),this.get_graphics().drawRect(0,0,70,50),this.get_graphics().endFill(),this.get_graphics().beginBitmapFill(this.graph,new Aa(1,0,0,1,0,50)),this.get_graphics().drawRect(0,50,70,50),this.get_graphics().endFill(),this.graph.fillRect(this.rectangle,51),this.graph.lock(),this.graph.setPixel(69,this.fps_graph,16776960),this.graph.setPixel(69,this.mem_graph,65535),this.graph.setPixel(69,this.mem_max_graph,16711792),this.graph.setPixel(69,this.ms_graph,65280),this.graph.unlock(), +60<this.fps&&(this.fps=60),this.fpsStr="FPS: "+this.fps+" / 60",this.memStr="MEM: "+Math.round(this.mem),this.memMaxStr="MAX: "+Math.round(this.mem_max),this.fps=0,this.ms_prev=this.timer,this.text.set_htmlText("<font color='#ffff00'>"+this.fpsStr+"</font><br><font color='#00ffff'>"+this.memStr+"</font><br><font color='#ff0070'>"+this.memMaxStr+"</font>")):(this.fps++,this.ms=this.timer)},normalizeMem:function(a){return Math.min(50,Math.sqrt(Math.sqrt(5E3*a)))-2|0},__class__:Ng});var ug=function(){}; +k["com.nmefermmmtools.debug.Colors"]=ug;ug.__name__="com.nmefermmmtools.debug.Colors";var vg=function(){};k["com.stencyl.APIKeys"]=vg;vg.__name__="com.stencyl.APIKeys";var ja=function(){};k["com.stencyl.Config"]=ja;ja.__name__="com.stencyl.Config";ja.load=function(){var a=S.getConfigText("config/game-config.json");ja.loadFromString(a)};ja.loadMap=function(a,b){for(var c=0,d=W.fields(a);c<d.length;){var e=d[c];++c;J.startsWith(e,"config-")?Object.prototype.hasOwnProperty.call(ja.defines.h,F.substr(e, +7,null))&&ja.loadMap(W.field(a,e),b):b[e]=W.field(a,e)}return b};ja.loadFromString=function(a,b){null==b&&(b=!0);if(null!=ja.data&&b){b=ja.data;ja.data=ja.loadMap(JSON.parse(a),{});ja.setStaticFields();for(var c=a=!1,d=0,e=W.fields(b);d<e.length;){var g=e[d];++d;var f=W.field(b,g),l=W.field(ja.data,g);if(f!=l)switch(g){case "debugDraw":(h.DEBUG_DRAW=ja.debugDraw)||null!=h.debugDrawer&&null!=h.debugDrawer.m_sprite&&h.debugDrawer.m_sprite.get_graphics().clear();break;case "disposeImages":case "physicsMode":c= +!0;break;case "antialias":case "forceHiResAssets":case "gameScale":case "scaleMode":case "scales":case "stageHeight":case "stageWidth":a=!0;break;case "keys":K.loadInputConfig();break;case "releaseMode":case "useGciLogging":da.setupTracing(!ja.releaseMode);break;case "showConsole":h.engine.setStatsVisible(ja.showConsole)}}c?da.reloadGame():a&&h.engine.reloadScreen()}else ja.data=ja.loadMap(JSON.parse(a),{}),ja.setStaticFields()};ja.setStaticFields=function(){ja.landscape=ja.data.landscape;ja.autorotate= +ja.data.autorotate;ja.scaleMode=xj.fromString(ja.data.scaleMode);ja.stageWidth=ja.data.stageWidth;ja.stageHeight=ja.data.stageHeight;ja.initSceneID=ja.data.initSceneID;ja.physicsMode=Nn.fromString(ja.data.physicsMode);ja.gameScale=ja.data.gameScale;ja.forceHiResAssets=ja.data.forceHiResAssets;ja.antialias=ja.data.antialias;ja.pixelsnap=ja.data.pixelsnap;ja.startInFullScreen=ja.data.startInFullScreen;ja.disposeImages=ja.data.disposeImages;ja.adPositionBottom=ja.data.adPositionBottom;ja.testAds=ja.data.testAds; +ja.releaseMode=ja.data.releaseMode;ja.showConsole=ja.data.showConsole;ja.debugDraw=ja.data.debugDraw;ja.disableBackButton=ja.data.disableBackButton;ja.useGciLogging=ja.data.useGciLogging;ja.keys=ja.asMap(ja.data.keys);for(var a=ja.data.scales,b=zd.fromString,c=Array(a.length),d=0,e=a.length;d<e;){var g=d++;c[g]=b(a[g])}ja.scales=Qc.array(c);ja.toolsetInterfaceHost=ja.data.toolsetInterfaceHost;ja.toolsetInterfacePort=ja.data.toolsetInterfacePort;ja.projectName=ja.data.projectName;ja.buildConfig=ja.data.buildConfig}; +ja.asMap=function(a){for(var b=new V,c=0,d=W.fields(a);c<d.length;){var e=d[c];++c;b.h[e]=W.field(a,e)}return b};var ic=function(){this.actorTypesLoaded=!1;this.resourceLookup=this.resourceNameLookup=this.behaviorLookup=this.behaviorReader=this.resourceReaderPool=null;if(null==qa.getBytes("assets/data/game.mbs"))throw R.thrown("Data.hx - Could not load game. Check your logs for a possible cause.");};k["com.stencyl.Data"]=ic;ic.__name__="com.stencyl.Data";ic.get=function(){null==ic.instance&&(ic.instance= +new ic,ic.instance.loadAll());return ic.instance};ic.resetStatics=function(){ic.instance=null};ic.prototype={readers:null,gameMbs:null,resourceListMbs:null,sceneListMbs:null,behaviorListMbs:null,resources:null,resourceMap:null,behaviors:null,resourceLookup:null,resourceNameLookup:null,behaviorLookup:null,behaviorReader:null,resourceReaderPool:null,loadAll:function(){this.gameMbs=new Og(gf.get(),!1,!0);this.gameMbs.readData(yb.toBytes(qa.getBytes("assets/data/game.mbs")));this.sceneListMbs=new Og(gf.get(), +!1,!0);this.sceneListMbs.readData(yb.toBytes(qa.getBytes("assets/data/scenes.mbs")));this.resourceListMbs=new Og(gf.get(),!1,!1);this.resourceListMbs.readData(yb.toBytes(qa.getBytes("assets/data/resources.mbs")));this.behaviorListMbs=new Og(gf.get(),!1,!1);this.behaviorListMbs.readData(yb.toBytes(qa.getBytes("assets/data/behaviors.mbs")));this.behaviors=new Sk(new Sa,q(this,this.loadBehaviorFromMbs));this.resources=new Sk(new Sa,q(this,this.loadResourceFromMbs));this.resourceMap=new On(new V,q(this, +this.loadResourceFromMbsByName));this.loadReaders();this.scanBehaviorMbs();this.scanResourceMbs()},readGameMbs:function(){var a=new Og(gf.get(),!1,!0);a.readData(yb.toBytes(qa.getBytes("assets/data/game.mbs")));return a.getRoot()},loadReaders:function(){this.readers=[];this.readers.push(new Tk);this.readers.push(new Uk);this.readers.push(new Vk);this.readers.push(new Wk);this.readers.push(new Xk);this.readers.push(new Yk)},scanBehaviorMbs:function(){this.behaviorLookup=new Sa;for(var a=this.behaviorListMbs.getRoot(), +b=0,c=a.length();b<c;){b++;var d=a.elementAddress;this.behaviorReader=a.getNextObject();var e=this.behaviorLookup,g=this.behaviorReader.getId();e.h[g]=d}},scanResourceMbs:function(){this.resourceLookup=new Sa;this.resourceNameLookup=new V;var a=this.resourceListMbs.getRoot();this.resourceReaderPool=$d.createObjectPool(this.resourceListMbs);for(var b=new mb(this.resourceListMbs),c=L.INTEGER.getSize(),d=0,e=a.length();d<e;){d++;var g=a.elementAddress,f=this.resourceListMbs.readInt(g+c);a.elementAddress+= +a.elementSize;b.setAddress(f);f=this.resourceLookup;var l=b.getId();f.h[l]=g;this.resourceListMbs.readTypecode(g)==nc.MBS_SPRITE?(g=this.resourceNameLookup,f="Sprite_"+b.getName(),l=b.getId(),g.h[f]=l):(g=this.resourceNameLookup,f=b.getName(),l=b.getId(),g.h[f]=l)}},loadResourceFromMbsByName:function(a){a=this.resourceNameLookup.h[a];return null==a?null:this.loadResourceFromMbs(a)},loadResourceFromMbs:function(a){a=this.resourceLookup.h[a];if(null==a)return null;a=$d.readDynamicUsingPool(this.resourceListMbs, +a,this.resourceReaderPool);a=this.readResource(a.getMbsType().getName(),a);null!=a&&(this.resources.map.h[a.ID]=a,a instanceof ri?this.resourceMap.map.h["Sprite_"+a.name]=a:this.resourceMap.map.h[a.name]=a);return a},loadAllResourcesOfType:function(a){var b=this.resourceListMbs.getRoot(),c=new mb(this.resourceListMbs),d=L.INTEGER.getSize();b.elementAddress=b.getAddress()+2*d;for(var e=0,g=b.length();e<g;){e++;var f=b.elementAddress;this.resourceListMbs.readTypecode(f)==a&&(f=this.resourceListMbs.readInt(f+ +d),c.setAddress(f),this.loadResourceFromMbs(c.getId()));b.elementAddress+=b.elementSize}},loadBehaviorFromMbs:function(a){a=this.behaviorLookup.h[a];if(null==a)return null;this.behaviorReader.setAddress(a);return si.readBehavior(this.behaviorReader)},readResource:function(a,b){for(var c=0,d=this.readers;c<d.length;){var e=d[c];++c;if(e.accepts(a))return e.read(b)}return null},actorTypesLoaded:null,getAllActorTypes:function(){this.actorTypesLoaded||(this.loadAllResourcesOfType(Na.MBS_ACTOR_TYPE),this.actorTypesLoaded= +!0);for(var a=[],b=this.resources.map.iterator();b.hasNext();){var c=b.next();c instanceof cg&&a.push(O.__cast(c,cg))}return a},loadAtlas:function(a){var b=va.get().atlases.h[a];if(null!=b&&!b.active)for(b.active=!0,a=0,b=b.members;a<b.length;){var c=b[a];++a;c=this.resources.get(c);null!=c&&c.loadGraphics()}},unloadAtlas:function(a){},reloadScaledResources:function(){for(var a=this.resources.map.iterator();a.hasNext();){var b=a.next();null!=b&&(b instanceof Oh||b instanceof cg||b.isAtlasActive()&& +b.reloadGraphics(-1))}},__class__:ic};var Zc=function(){var a=this.eventTable=new Sa,b=Zc.TYPE_ADS,c=[];a.h[b]=c;a=this.eventTable;b=Zc.TYPE_PURCHASES;c=[];a.h[b]=c;a=this.eventTable;b=Zc.TYPE_GAMECENTER;c=[];a.h[b]=c;a=this.eventTable;b=Zc.TYPE_KEYBOARD;c=[];a.h[b]=c};k["com.stencyl.event.EventMaster"]=Zc;Zc.__name__="com.stencyl.event.EventMaster";Zc.prototype={eventTable:null,addAdEvent:function(a){this.eventTable.h[Zc.TYPE_ADS].push(a)},addPurchaseEvent:function(a){this.eventTable.h[Zc.TYPE_PURCHASES].push(a)}, +addGameCenterEvent:function(a){this.eventTable.h[Zc.TYPE_GAMECENTER].push(a)},addKeyboardEvent:function(a){this.eventTable.h[Zc.TYPE_KEYBOARD].push(a)},clear:function(){this.eventTable.h[Zc.TYPE_ADS].length=0;this.eventTable.h[Zc.TYPE_PURCHASES].length=0;this.eventTable.h[Zc.TYPE_GAMECENTER].length=0;this.eventTable.h[Zc.TYPE_KEYBOARD].length=0},__class__:Zc};var h=function(a){this.isHUDZoomable=this.sceneInitialized=this.keyPollOccurred=this.isFullScreen=this.ignoreResize=!1;this.zoomMultiplier= +1;"opengl"!=h.stage.window.context.type&&"opengles"!=h.stage.window.context.type&&"webgl"!=h.stage.window.context.type||$c.initialize();ld.get_isSupported()&&(this.shaderLayer=new ta,this.shaderLayer.set_name("Shader Layer"));a.mouseChildren=!1;a.mouseEnabled=!1;ja.debugDraw&&(h.DEBUG_DRAW=!0);h.engine=this;f.engine=this;this.root=a;this.isFullScreen=ja.startInFullScreen;h.screenScaleX=h.unzoomedScaleX=a.get_scaleX();h.screenScaleY=h.unzoomedScaleY=a.get_scaleY();h.screenOffsetX=a.get_x()|0;h.screenOffsetY= +a.get_y()|0;h.NO_PHYSICS=1==ja.physicsMode;h.stage.addEventListener("enterFrame",q(this,this.onUpdate));h.stage.addEventListener("deactivate",q(this,this.onFocusLost));h.stage.addEventListener("activate",q(this,this.onFocus));h.stage.addEventListener("resize",q(this,this.onWindowResize));h.stage.window.onRestore.add(q(this,this.onWindowRestore));h.stage.window.onMaximize.add(q(this,this.onWindowMaximize));h.stage.window.onFullscreen.add(q(this,this.onWindowFullScreen));this.isFullScreen&&!h.stage.window.__fullscreen&& +(h.stage.window.__fullscreen=!0);this.begin(ja.initSceneID)};k["com.stencyl.Engine"]=h;h.__name__="com.stencyl.Engine";h.resetStatics=function(){h.stage.removeEventListener("enterFrame",(N=h.engine,q(N,N.onUpdate)));h.stage.removeEventListener("deactivate",(N=h.engine,q(N,N.onFocusLost)));h.stage.removeEventListener("activate",(N=h.engine,q(N,N.onFocus)));h.stage.removeEventListener("resize",(N=h.engine,q(N,N.onWindowResize)));h.stage.window.onRestore.remove((N=h.engine,q(N,N.onWindowRestore)));h.stage.window.onMaximize.remove((N= +h.engine,q(N,N.onWindowMaximize)));h.stage.window.onFullscreen.remove((N=h.engine,q(N,N.onWindowFullScreen)));null!=h.engine.stats&&h.stage.removeChild(h.engine.stats);h.NO_PHYSICS=!1;h.DEBUG_DRAW=!1;h.IMG_BASE="";h.SCALE=1;h.checkedWideScreen=!1;h.isStandardIOS=!1;h.isExtendedIOS=!1;h.isIPhone6=!1;h.isIPhone6Plus=!1;h.isTabletIOS=!1;h.engine=null;h.landscape=!1;h.cameraX=0;h.cameraY=0;h.screenScaleX=0;h.screenScaleY=0;h.unzoomedScaleX=0;h.unzoomedScaleY=0;h.screenOffsetX=0;h.screenOffsetY=0;h.screenWidth= +0;h.screenHeight=0;h.sceneWidth=0;h.sceneHeight=0;h.screenWidthHalf=0;h.screenHeightHalf=0;h.paused=!1;h.started=!1;h.events=new Zc;h.ITERATIONS=3;h.physicsScale=10;h.preservePadding=!1;h.paddingLeft=0;h.paddingRight=0;h.paddingTop=0;h.paddingBottom=0;h.ngID="";h.ngKey="";h.movieClip=null;h.stage=null;h.STEP_SIZE=10;h.MS_PER_SEC=1E3;h.elapsedTime=0;h.timeScale=1;h.totalElapsedTime=0;h.debug=!1;h.debugDrawer=null};h.initBehaviors=function(a,b,c,d,e){if(null!=b){var g=b.h;b=g;for(var f=Object.keys(g), +l=f.length,t=0;t<l;){var m=b[f[t++]];if(null!=m&&m.enabled){var h=ic.get().behaviors.get(m.behaviorID),p=new V;if(null!=h){if(h.isEvent){g=h.attributes.h;g=Object.keys(g);for(var k=g.length,n=0;n<k;){var r=g[n++],q=h.attributes.h[r];if(null!=q){var v=q.type,u=q.ID;"list"==v?(q=new ti(u,q.fieldName,q.fullName,[],v,null,q.hidden),p.h[r]=q):"map"==v&&(q=new ti(u,q.fieldName,q.fullName,new V,v,null,q.hidden),p.h[r]=q)}}}g=Object.keys(m.values.h);k=g.length;for(n=0;n<k;)r=g[n++],q=h.attributes.h[r],null!= +q&&(q=new ti(q.ID,q.fieldName,q.fullName,m.values.h[r],q.type,null,q.hidden),p.h[r]=q);m=new Zk(c,d,h.ID,h.name,h.classname,!0,!1,p,h.type,h.isEvent);a.add(m)}}}e&&a.initScripts()}};h.toPhysicalUnits=function(a){return a/=h.physicsScale};h.toPixelUnits=function(a){return a*=h.physicsScale};h.vToPhysicalUnits=function(a){a.x=h.toPhysicalUnits(a.x);a.y=h.toPhysicalUnits(a.y);return a};h.vToPixelUnits=function(a){a.x=h.toPixelUnits(a.x);a.y=h.toPixelUnits(a.y);return a};h.prototype={zoomMultiplier:null, +isHUDZoomable:null,world:null,gravityX:null,gravityY:null,physicalWidth:null,physicalHeight:null,leave:null,enter:null,sceneToEnter:null,shakeTimer:null,shakeIntensity:null,isShaking:null,scene:null,camera:null,sceneInitialized:null,channels:null,tasks:null,regions:null,terrainRegions:null,joints:null,root:null,colorLayer:null,maskLayer:null,master:null,hudLayer:null,transitionLayer:null,debugLayer:null,g:null,groups:null,reverseGroups:null,allActors:null,nextID:null,actorsOfType:null,recycledActorsOfType:null, +actorsToCreateInNextScene:null,layers:null,layersByName:null,interactiveLayers:null,backgroundLayers:null,dynamicTiles:null,animatedTiles:null,topLayer:null,bottomLayer:null,middleLayer:null,layersToDraw:null,tileUpdated:null,loadedAtlases:null,atlasesToLoad:null,atlasesToUnload:null,actorsToCreate:null,gameAttributes:null,savableAttributes:null,behaviors:null,lastTime:null,acc:null,mx:null,my:null,collisionPairs:null,disableCollisionList:null,keyPollOccurred:null,whenKeyPressedEvents:null,whenAnyKeyPressed:null, +whenAnyKeyReleased:null,whenAnyGamepadPressed:null,whenAnyGamepadReleased:null,whenTypeGroupCreatedEvents:null,whenTypeGroupKilledEvents:null,whenTypeGroupPositionStateChangedEvents:null,whenCollidedEvents:null,whenSoundEndedEvents:null,whenChannelEndedEvents:null,whenUpdated:null,whenDrawing:null,whenMousePressed:null,whenMouseReleased:null,whenMouseMoved:null,whenMouseDragged:null,whenPaused:null,whenFullscreenChanged:null,whenScreenSizeChanged:null,whenGameScaleChanged:null,whenSwiped:null,whenMTStarted:null, +whenMTDragged:null,whenMTEnded:null,whenFocusChanged:null,nativeListeners:null,shader:null,shaderLayer:null,shaders:null,isFullScreen:null,ignoreResize:null,stats:null,onKeyDown:function(a){this.isFullScreen&&27==a.keyCode&&this.setFullScreen(!1)},onWindowResize:function(a){!this.isFullScreen||h.stage.window.__fullscreen||h.stage.window.__minimized||this.ignoreResize||this.setFullScreen(!1)},onWindowRestore:function(){this.isFullScreen&&!h.stage.window.__fullscreen&&(h.stage.window.__fullscreen=!0)}, +onWindowMaximize:function(){this.isFullScreen&&!h.stage.window.__fullscreen&&(h.stage.window.__fullscreen=!0)},onWindowFullScreen:function(){this.isFullScreen||this.setFullScreen(!0)},isInFullScreen:function(){return 1==Da.get_current().stage.get_displayState()},setFullScreen:function(a){if(this.isFullScreen!=a){this.ignoreResize=!0;this.isFullScreen=a;this.reloadScreen();if(0<this.whenFullscreenChanged.length)for(this.whenFullscreenChanged._dispatchIndex=0;this.whenFullscreenChanged._dispatchIndex< +this.whenFullscreenChanged.length;){try{this.whenFullscreenChanged.listeners[this.whenFullscreenChanged._dispatchIndex]()}catch(b){sa.lastError=b}++this.whenFullscreenChanged._dispatchIndex}this.ignoreResize=!1}},toggleFullScreen:function(){this.setFullScreen(!this.isFullScreen)},reloadScreen:function(){var a=h.IMG_BASE,b=h.SCALE,c=h.screenWidth,d=h.screenHeight;this.root.initScreen(this.isFullScreen);h.screenWidth=da.logicalWidth|0;h.screenWidthHalf=h.screenWidth/2|0;h.screenHeight=da.logicalHeight| +0;h.screenHeightHalf=h.screenHeight/2|0;this.setColorBackground(this.scene.colorBackground);c=h.screenWidth!=c||h.screenHeight!=d;d=b!=h.SCALE;a!=h.IMG_BASE&&ic.get().reloadScaledResources();if(b!=h.SCALE){null!=h.debugDrawer&&h.debugDrawer.setDrawScale(10*h.SCALE);this.g.scaleX=this.g.scaleY=h.SCALE;S.applyToAllChildren(this.root,function(a){O.__implements(a,oh)&&O.__cast(a,oh).updateScale()});for(a=this.allActors.iterator();a.hasNext();)b=a.next(),null==b||b.dead||b.recycled||(b.updateMatrix=!0); +for(b=this.recycledActorsOfType.iterator();b.hasNext();)for(var e=b.next(),g=0;g<e.length;)a=e[g],++g,null!=a.currAnimation&&a.currAnimation.framesUpdated(),a.updateMatrix=!0;this.g.resetFont();this.moveCamera(this.camera.realX,this.camera.realY)}h.unzoomedScaleX=h.screenScaleX=this.root.get_scaleX();h.unzoomedScaleY=h.screenScaleY=this.root.get_scaleY();h.screenOffsetX=this.root.get_x()|0;h.screenOffsetY=this.root.get_y()|0;null!=this.stats&&(this.stats.set_x(h.stage.stageWidth-this.stats.get_width()), +this.stats.set_y(0));this.resetShaders();if(d&&0<this.whenGameScaleChanged.length)for(this.whenGameScaleChanged._dispatchIndex=0;this.whenGameScaleChanged._dispatchIndex<this.whenGameScaleChanged.length;){try{this.whenGameScaleChanged.listeners[this.whenGameScaleChanged._dispatchIndex]()}catch(x){sa.lastError=x}++this.whenGameScaleChanged._dispatchIndex}if(c&&0<this.whenScreenSizeChanged.length)for(this.whenScreenSizeChanged._dispatchIndex=0;this.whenScreenSizeChanged._dispatchIndex<this.whenScreenSizeChanged.length;){try{this.whenScreenSizeChanged.listeners[this.whenScreenSizeChanged._dispatchIndex]()}catch(x){sa.lastError= +x}++this.whenScreenSizeChanged._dispatchIndex}},addShader:function(a){if(ld.get_isSupported()){a=a.basicShader;null!=this.shaders&&this.clearShaders();this.shaders=[a.model];for(a=a.multipassParent;null!=a;)this.shaders.splice(0,0,a.model),a=a.multipassParent;a=0;for(var b=this.shaders;a<b.length;){var c=b[a];++a;this.shaderLayer.addChild(c)}}},clearShaders:function(){S.removeAllChildren(this.shaderLayer);h.stage.context3D.setRenderToBackBuffer();this.shaders=[]},toggleShadersForHUD:function(){null!= +this.shaderLayer&&null!=this.hudLayer&&null!=this.root&&this.root.swapChildren(this.shaderLayer,this.hudLayer)},resetShaders:function(){if(null!=this.shaders)for(var a=0,b=this.shaders;a<b.length;){var c=b[a];++a;c.rebuild()}},begin:function(a){this.loadedAtlases=new Sa;this.atlasesToLoad=new Sa;this.atlasesToUnload=new Sa;K.enable();K.define("iSHIFT",[16]);K.define("iCTRL",[17]);K.define("iCOMMAND",[15]);h.landscape=ja.landscape;var b=da.logicalWidth,c=da.logicalHeight;h.screenWidth=b|0;h.screenHeight= +c|0;h.screenWidthHalf=b/2|0;h.screenHeightHalf=c/2|0;ic.get();va.get().loadScenes();this.g=new Jd;h.started=!0;this.tileUpdated=!1;this.shakeTimer=0;this.shakeIntensity=.01;this.isShaking=!1;this.enter=this.leave=null;h.cameraX=0;this.acc=h.cameraY=0;this.lastTime=Da.getTimer();h.sceneWidth=b|0;h.sceneHeight=c|0;this.colorLayer=new Me;this.colorLayer.set_name("Color Layer");this.root.addChild(this.colorLayer);this.master=new ta;this.master.set_name("Master");this.root.addChild(this.master);this.hudLayer= +new Ac(-1,"__hud__",-1,0,0,1,10,null);this.hudLayer.set_name("HUD Layer");this.root.addChild(this.hudLayer);this.transitionLayer=new ta;this.transitionLayer.set_name("Transition Layer");this.root.addChild(this.transitionLayer);this.debugLayer=new ta;this.debugLayer.set_name("Debug Layer");this.root.addChild(this.debugLayer);ld.get_isSupported()&&this.root.addChild(this.shaderLayer);this.root.addChild(this.root.maskLayer);this.actorsToCreateInNextScene=[];this.gameAttributes=new V;this.savableAttributes= +new V;this.setStatsVisible(ja.showConsole);b=va.get().gameAttributes.h;b=Object.keys(b);c=b.length;for(var d=0;d<c;){var e=b[d++],g=va.get().gameAttributes.h[e];this.gameAttributes.h[e]=g}this.channels=[];this.channels.push(new Ub(this,0));this.channels.push(new Ub(this,1));this.channels.push(new Ub(this,2));this.channels.push(new Ub(this,3));this.channels.push(new Ub(this,4));this.channels.push(new Ub(this,5));this.channels.push(new Ub(this,6));this.channels.push(new Ub(this,7));this.channels.push(new Ub(this, +8));this.channels.push(new Ub(this,9));this.channels.push(new Ub(this,10));this.channels.push(new Ub(this,11));this.channels.push(new Ub(this,12));this.channels.push(new Ub(this,13));this.channels.push(new Ub(this,14));this.channels.push(new Ub(this,15));this.channels.push(new Ub(this,16));this.channels.push(new Ub(this,17));this.channels.push(new Ub(this,18));this.channels.push(new Ub(this,19));this.channels.push(new Ub(this,20));this.channels.push(new Ub(this,21));this.channels.push(new Ub(this, +22));this.channels.push(new Ub(this,23));this.channels.push(new Ub(this,24));this.channels.push(new Ub(this,25));this.channels.push(new Ub(this,26));this.channels.push(new Ub(this,27));this.channels.push(new Ub(this,28));this.channels.push(new Ub(this,29));this.channels.push(new Ub(this,30));this.channels.push(new Ub(this,31));this.sceneToEnter=a;this.loadScene(a);this.sceneInitialized=!0},setStatsVisible:function(a){a!=(null!=this.stats)&&(a?(this.stats=new Ng,h.stage.addChild(this.stats),this.stats.set_x(h.stage.stageWidth- +this.stats.get_width()),this.stats.set_y(0)):(h.stage.removeChild(this.stats),this.stats=null))},loadScene:function(a){this.collisionPairs=new we(32);h.preservePadding||(h.paddingTop=0,h.paddingLeft=0,h.paddingBottom=0,h.paddingRight=0);this.tasks=[];this.scene=va.get().scenes.h[a];if(-1==a||null==this.scene)if(this.scene=va.get().scenes.h[ja.initSceneID],null==this.scene){h.stage.removeEventListener("enterFrame",q(this,this.onUpdate));return}this.scene.load();a=new Sa;if(this.scene.retainsAtlases)for(var b= +this.loadedAtlases.iterator();b.hasNext();){var c=b.next();a.h[c]=c}else{for(b=this.loadedAtlases.iterator();b.hasNext();)c=b.next(),va.get().atlases.h[c].allScenes&&(a.h[c]=c);c=0;for(var d=this.scene.atlases;c<d.length;)b=d[c],++c,a.h[b]=b}for(c=this.atlasesToLoad.iterator();c.hasNext();)d=c.next(),a.h[d]=d;for(c=this.atlasesToUnload.iterator();c.hasNext();)d=c.next(),a.remove(d);for(c=this.loadedAtlases.iterator();c.hasNext();)d=c.next(),a.h.hasOwnProperty(d)||(ic.get().unloadAtlas(d),this.loadedAtlases.remove(d)); +for(c=a.iterator();c.hasNext();)d=c.next(),this.loadedAtlases.h.hasOwnProperty(d)||(ic.get().loadAtlas(d),this.loadedAtlases.h[d]=d);this.atlasesToLoad=new Sa;this.atlasesToUnload=new Sa;h.sceneWidth=this.scene.sceneWidth;h.sceneHeight=this.scene.sceneHeight;this.behaviors=new yj;this.groups=new Sa;this.reverseGroups=new V;c=0;for(d=va.get().groups;c<d.length;)a=d[c],++c,b=new xe(a.ID,a.name),this.groups.h[a.ID]=b,this.reverseGroups.h[a.name]=b,b.name=a.name;a=new xe(-2,"Regions");this.groups.h[-2]= +a;this.reverseGroups.h.Regions=a;this.disableCollisionList=[];this.actorsOfType=new Sa;this.recycledActorsOfType=new Sa;this.regions=new we(32);this.regions.reuseIterator=!0;this.terrainRegions=new Sa;this.joints=new Sa;this.dynamicTiles=new V;this.animatedTiles=[];this.allActors=new we(256);this.allActors.reuseIterator=!0;this.nextID=0;this.whenKeyPressedEvents=new Pn;this.whenAnyKeyPressed=new Bc;this.whenAnyKeyReleased=new Bc;this.whenAnyGamepadPressed=new Bc;this.whenAnyGamepadReleased=new Bc; +this.whenTypeGroupCreatedEvents=new ac;this.whenTypeGroupKilledEvents=new ac;this.whenTypeGroupPositionStateChangedEvents=new Sa;this.whenCollidedEvents=new Sa;this.whenSoundEndedEvents=new ac;this.whenChannelEndedEvents=new Sa;this.nativeListeners=[];this.whenUpdated=new Bc;this.whenDrawing=new Bc;this.whenMousePressed=new Bc;this.whenMouseReleased=new Bc;this.whenMouseMoved=new Bc;this.whenMouseDragged=new Bc;this.whenPaused=new Bc;this.whenSwiped=new Bc;this.whenMTStarted=new Bc;this.whenMTDragged= +new Bc;this.whenMTEnded=new Bc;this.whenFocusChanged=new Bc;this.whenFullscreenChanged=new Bc;this.whenScreenSizeChanged=new Bc;this.whenGameScaleChanged=new Bc;h.NO_PHYSICS||this.initPhysics();this.gravityX=this.scene.gravityX;this.gravityY=this.scene.gravityY;this.loadTerrain();this.loadRegions();this.loadTerrainRegions();this.loadActors();this.loadCamera();this.loadJoints();this.loadDeferredActors();h.initBehaviors(this.behaviors,this.scene.behaviorValues,this,this,!0);this.initActorScripts()}, +initPhysics:function(){var a=new z(this.scene.gravityX,this.scene.gravityY);this.world=new bc(a,!1);bc.m_continuousPhysics=!1;bc.m_warmStarting=!0;a=new ka;a.lowerBound.x=0;a.lowerBound.y=0;a.upperBound.x=h.screenWidth/h.physicsScale;a.upperBound.y=h.screenHeight/h.physicsScale;this.world.setScreenBounds(a);h.debugDrawer=new De;h.debugDrawer.setSprite(this.debugLayer);h.debugDrawer.setLineThickness(3);h.debugDrawer.setDrawScale(10*h.SCALE);h.debugDrawer.setFillAlpha(0);h.debugDrawer.setFlags(De.e_shapeBit| +De.e_jointBit);this.world.setDebugDraw(h.debugDrawer)},loadActors:function(){this.actorsToCreate=[];for(var a=this.scene.actors.iterator();a.hasNext();){var b=a.next();this.actorsToCreate.push(this.createActor(b,!0))}a=0;for(b=this.interactiveLayers;a<b.length;){var c=b[a];++a;for(var d=0,e=c.actorContainer.get_numChildren();d<e;){var g=d++,f=c.actorContainer.getChildAt(g);for(f=this.scene.actors.h[f.ID];f.orderInLayer!=g;)c.actorContainer.swapChildrenAt(g,f.orderInLayer),f=c.actorContainer.getChildAt(g), +f=this.scene.actors.h[f.ID]}}},loadDeferredActors:function(){for(var a=0,b=this.actorsToCreateInNextScene;a<b.length;){var c=b[a];++a;f.lastCreatedActor=this.createActorOfType(c.type,c.x,c.y,c.layer)}this.actorsToCreateInNextScene=[]},initActorScripts:function(){for(var a=0,b=this.actorsToCreate;a<b.length;){var c=b[a];++a;c.initScripts()}this.actorsToCreate=null},loadCamera:function(){this.camera=new tb(this,-1,2,0,0,-1,2,2,null,null,null,null,!0,!1,!0,!1,null,!0,!1);this.camera.set_name("Camera"); +this.camera.isCamera=!0;h.cameraX=0;h.cameraY=0},loadRegions:function(){this.regions=new we(32);this.regions.reuseIterator=!0;for(var a=this.scene.regions.iterator();a.hasNext();){var b=a.next(),c=new kd(this,b.x,b.y,b.shapes,b.simpleBounds);c.set_name(b.name);h.NO_PHYSICS||c.setXY(b.x+c.regionWidth/2,b.y+c.regionHeight/2);c.ID=b.ID;this.addRegion(c)}},loadTerrainRegions:function(){this.terrainRegions=new Sa;if(!h.NO_PHYSICS)for(var a=this.scene.terrainRegions.iterator();a.hasNext();){var b=a.next(), +c=new Mg(this,b.x,b.y,b.shapes,b.groupID,b.fillColor);c.set_name(b.name);c.setX(h.toPixelUnits(b.x)+c.regionWidth/2);c.setY(h.toPixelUnits(b.y)+c.regionHeight/2);c.ID=b.ID;this.addTerrainRegion(c)}},loadJoints:function(){if(!h.NO_PHYSICS)for(var a=this.scene.joints.iterator();a.hasNext();){var b=a.next(),c=b.actor1,d=b.actor2,e=b.collideConnected;if(3==b.type){var g=this.joints;var f=b.ID;b=this.createStickJoint(this.getActor(c).body,this.getActor(d).body,b.ID,e);g.h[f]=b}else if(1==b.type){f=O.__cast(b, +Mh);g=this.getActor(c).body.getLocalCenter().copy();g.x=h.toPixelUnits(g.x);g.y=h.toPixelUnits(g.y);c=this.getActor(c).body;d=-1==d?this.world.m_groundBody:this.getActor(d).body;var l=this.joints,t=b.ID;b=this.createHingeJoint(c,d,g,b.ID,e,f.enableLimit,f.enableMotor,f.lowerAngle,f.upperAngle,f.maxMotorTorque,-f.motorSpeed);l.h[t]=b}else if(2==b.type||7==b.type)f=O.__cast(b,Nh),g=this.getActor(c).body.getLocalCenter().copy(),g.x=h.toPixelUnits(g.x),g.y=h.toPixelUnits(g.y),c=this.getActor(c).body, +d=-1==d?this.world.m_groundBody:this.getActor(d).body,g=this.joints,l=b.ID,b=this.createSlidingJoint(c,d,f.localAxisA,b.ID,e,f.enableLimit,f.enableMotor,f.lowerTranslation,f.upperTranslation,f.maxMotorForce,f.motorSpeed),g.h[l]=b}},loadTerrain:function(){this.initLayers();for(var a=0,b=this.scene.wireframes;a<b.length;){var c=b[a];++a;var d=null;h.NO_PHYSICS||(d=new tb(this,1E8,1,c.x,c.y,-1,c.width|0,c.height|0,null,new V,null,null,!1,!0,!1,!1,c.shape));d.set_name("Terrain");d.typeID=-1;d.set_visible(!1); +this.getGroup(1).addChild(d)}},initLayers:function(){this.setColorBackground(this.scene.colorBackground);this.animatedTiles=this.scene.animatedTiles;if(null!=this.animatedTiles)for(var a=0,b=this.animatedTiles;a<b.length;){var c=b[a];++a;c.currFrame=0;c.currTime=0;c.updateSource=!0}this.layers=this.scene.layers;this.layersToDraw=new Sa;this.layersByName=new V;this.interactiveLayers=[];this.backgroundLayers=[];var d=c=!1,e=0,g=-1,f={};if(0==this.layers.mSize){a=new ie(0,this.scene,this.scene.sceneWidth/ +this.scene.tileWidth|0,this.scene.sceneHeight/this.scene.tileHeight|0);var l=new Ac(0,"default",0,1,1,1,10,a);this.layers.set(l.ID,l)}for(l=this.layers.iterator();l.hasNext();)a=l.next(),g=Math.max(g,a.order)|0,f[a.order]=a,this.layersByName.h[a.layerName]=a,a instanceof Ac?this.interactiveLayers.push(O.__cast(a,Ac)):a instanceof Sd&&this.backgroundLayers.push(O.__cast(a,Sd));a=0;for(b=g+1;a<b;){l=a++;var t=g-l;l=f[l];l.order=t;this.layersToDraw.h[t]=l}a=0;for(b=g+1;a<b;)l=a++,l=this.layersToDraw.h[l], +l instanceof Sd?(l=O.__cast(l,Sd),l.load(),this.master.addChild(l)):l instanceof Ac&&(g=O.__cast(l,Ac),c||(c=!0,this.bottomLayer=g),d||e!=Math.floor(this.interactiveLayers.length/2)||(d=!0,this.middleLayer=g),this.master.addChild(g),this.topLayer=g,g.tiles.mountGrid(),++e)},setColorBackground:function(a){a.draw(this.colorLayer.get_graphics(),0,0,h.screenWidth*h.SCALE|0,h.screenHeight*h.SCALE|0)},optimizePool:function(){for(var a=this.recycledActorsOfType.iterator();a.hasNext();){for(var b=a.next(), +c=[],d=0;d<b.length;){var e=b[d];++d;null!=e&&e.recycled&&c.push(e)}for(d=0;d<c.length;)e=c[d],++d,F.remove(b,e),this.removeActor(e)}},cleanup:function(){null!=h.debugDrawer&&null!=h.debugDrawer.m_sprite&&h.debugDrawer.m_sprite.get_graphics().clear();for(var a=0,b=this.interactiveLayers;a<b.length;){var c=b[a];++a;c.clear()}this.hudLayer.clear();S.removeAllChildren(this.master);this.behaviors.destroy();this.camera.destroy();this.camera=null;if(null!=this.world){a=this.world.getBodyList();for(b=this.world.getJointList();null!= +b;)this.world.destroyJoint(b),b=b.getNext();for(;null!=a;)this.world.destroyBody(a),a=a.getNext()}for(a=this.actorsOfType.iterator();a.hasNext();)b=a.next(),b.length=0;for(b=this.recycledActorsOfType.iterator();b.hasNext();)for(c=b.next(),a=0;a<c.length;){var d=c[a];++a;d.destroyed||d.destroy()}for(a=this.recycledActorsOfType.iterator();a.hasNext();)b=a.next(),b.length=0;for(d=this.allActors.iterator();d.hasNext();)d.next().destroy();for(;0<Qc.count(this.allActors);)for(a=this.allActors.keys();a.hasNext();)b= +a.next(),this.allActors.unset(b);this.scene.unload();this.nativeListeners=this.whenFocusChanged=this.whenMTEnded=this.whenMTDragged=this.whenMTStarted=this.whenSwiped=this.whenGameScaleChanged=this.whenScreenSizeChanged=this.whenFullscreenChanged=this.whenPaused=this.whenMouseDragged=this.whenMouseMoved=this.whenMouseReleased=this.whenMousePressed=this.whenDrawing=this.whenUpdated=this.whenChannelEndedEvents=this.whenSoundEndedEvents=this.whenCollidedEvents=this.whenTypeGroupPositionStateChangedEvents= +this.whenTypeGroupKilledEvents=this.whenTypeGroupCreatedEvents=this.whenAnyGamepadReleased=this.whenAnyGamepadPressed=this.whenAnyKeyReleased=this.whenAnyKeyPressed=this.whenKeyPressedEvents=this.disableCollisionList=this.collisionPairs=this.tasks=this.scene=this.allActors=this.reverseGroups=this.groups=this.joints=this.terrainRegions=this.regions=this.animatedTiles=this.dynamicTiles=this.layersToDraw=this.backgroundLayers=this.interactiveLayers=this.layersByName=this.layers=this.recycledActorsOfType= +this.actorsOfType=null;f.lastCreatedActor=null;f.lastCreatedJoint=null;f.lastCreatedRegion=null;f.lastCreatedTerrainRegion=null;K.update();this.world=null},switchScene:function(a,b,c){if(!this.isTransitioning()){null!=b&&b.isComplete()&&b.reset();if(null==b||0==b.duration)b=new pb(0);if(null==c||0==c.duration)c=new pb(1);this.leave=b;this.enter=c;this.leave.isComplete()||this.leave.start();this.sceneToEnter=a}},enterScene:function(){this.enter.isComplete()||(this.enter.start(),null!=this.leave&&this.leave.cleanup()); +this.leave=null;this.sceneInitialized=!1;this.cleanup();this.loadScene(this.sceneToEnter);this.sceneInitialized=!0},isTransitioning:function(){return null!=this.enter&&this.enter.isActive()||null!=this.leave&&this.leave.isActive()?!0:!1},isTransitioningOut:function(){return null!=this.leave&&this.leave.isActive()?!0:!1},createActorInNextScene:function(a,b,c,d){this.actorsToCreateInNextScene.push(new Qn(a,b,c,d))},createActor:function(a,b){b=O.__cast(ic.get().resources.get(a.actorType.spriteID),ri); +b=new tb(this,a.elementID,a.groupID,a.x,a.y,a.layerID,-1,-1,b,a.behaviorValues,a.actorType,h.NO_PHYSICS?null:a.actorType.bodyDef,!1,!1,!1,!1,null,a.actorType.autoScale,a.actorType.ignoreGravity,a.actorType.physicsMode);if(0!=a.angle)if(0!=b.currOffset.x||0!=b.currOffset.y){var c=b.currOrigin.x|0,d=b.currOrigin.y|0;b.setOriginPoint(b.cacheWidth/2|0,b.cacheHeight/2|0);b.setAngle(a.angle,!1);b.setOriginPoint(c,d)}else b.setAngle(a.angle,!1);if(1!=a.scaleX||1!=a.scaleY){var e=b.cacheWidth/2|0,g=b.cacheHeight/ +2|0;if(b.currOrigin.x!=e||b.currOrigin.y!=g)c=Math.sin(.01745329251994278*a.angle),d=Math.cos(.01745329251994278*a.angle),e=(b.currOrigin.x-e)*a.scaleX-b.currOffset.x,g=(b.currOrigin.y-g)*a.scaleY-b.currOffset.y,b.setX(b.getX(!1)+e*d-g*c),b.setY(b.getY(!1)+e*c+g*d);b.growTo(a.scaleX,a.scaleY,0)}b.set_name(a.actorType.name);null==this.recycledActorsOfType.h[a.actorType.ID]&&(this.recycledActorsOfType.h[a.actorType.ID]=[]);c=this.recycledActorsOfType.h[a.actorType.ID];c.push(b);2!=a.actorType.physicsMode&& +(c=this.groups.h[a.groupID],null!=c&&c.addChild(b));1E8==a.elementID?(this.nextID++,b.ID=this.nextID,this.allActors.set(b.ID,b)):(this.allActors.set(b.ID,b),this.nextID=Math.max(b.ID,this.nextID)|0);b.internalUpdate(0,!1);b.updateDrawingMatrix();null!=a.actorType&&-1!=a.actorType.ID&&(c=this.actorsOfType.h[a.actorType.ID],null==c&&(c=[],this.actorsOfType.h[a.actorType.ID]=c),null!=c&&c.push(b));return f.lastCreatedActor=b},removeActor:function(a){this.allActors.unset(a.ID);this.removeActorFromLayer(a, +a.layer);var b=this.groups,c=a.getGroupID();b.h[c].removeChild(a);a.destroy();null!=a.type&&-1!=a.typeID&&(b=this.actorsOfType.h[a.typeID],null!=b&&F.remove(b,a))},removeActorFromLayer:function(a,b){null!=b&&a.layer==b&&(b==this.hudLayer&&(0==a.physicsMode&&a.body.setAlwaysActive(a.alwaysSimulate),a.isHUD=!1,a.cachedLayer=null),b.actorContainer.contains(a)&&(b.actorContainer.removeChild(a),a.layer=null))},moveActorToLayer:function(a,b){if(a.layer!=b&&null!=b){if(null==a.layer||a.layer.scrollFactorX!= +b.scrollFactorX||a.layer.scrollFactorY!=b.scrollFactorY)a.updateMatrix=!0;b==this.hudLayer&&(0==a.physicsMode&&a.body.setAlwaysActive(!0),a.isHUD=!0,a.cachedLayer=a.layer);null!=a.layer&&this.removeActorFromLayer(a,a.layer);b.actorContainer.addChild(a);a.layer=b}},recycleActor:function(a){if(null!=a&&!a.recycled){var b=h.engine.whenTypeGroupKilledEvents,c=a.getType(),d=b.h[c.__id__];b=h.engine.whenTypeGroupKilledEvents;c=a.getGroup();b=b.h[c.__id__];if(0<a.whenKilled.length)for(a.whenKilled._dispatchIndex= +0;a.whenKilled._dispatchIndex<a.whenKilled.length;){try{a.whenKilled.listeners[a.whenKilled._dispatchIndex]()}catch(e){sa.lastError=e}++a.whenKilled._dispatchIndex}if(null!=d&&0<d.length)for(d._dispatchIndex=0;d._dispatchIndex<d.length;){try{d.listeners[d._dispatchIndex](a)}catch(e){sa.lastError=e}++d._dispatchIndex}if(null!=b&&0<b.length)for(b._dispatchIndex=0;b._dispatchIndex<b.length;){try{b.listeners[b._dispatchIndex](a)}catch(e){sa.lastError=e}++b._dispatchIndex}a.isHUD&&a.unanchorFromScreen(); +a.alwaysSimulate&&a.makeSometimesSimulate(!1);a.firstMove=!1;a.setXY(1E6,1E6,!1,!0);a.colX=1E6;a.colY=1E6;a.recycled=!0;a.killLeaveScreen=!1;a.lastScreenState=!1;a.lastSceneState=!1;a.cancelTweens();a.clearFilters();a.resetBlendMode();a.set_alpha(1);a.realScaleX=1;a.realScaleY=1;a.switchToDefaultAnimation();a.disableActorDrawing();a.removeAttachedImages();if(0==a.physicsMode&&null!=a.body)for(d=a.body.getContactList();null!=d;)h.engine.world.m_contactManager.m_contactListener.endContact(d.contact), +d=d.next;a.removeAllListeners();a.resetListeners();this.removeActorFromLayer(a,a.layer);0==a.physicsMode&&(a.body.setActive(!1),a.body.setAwake(!1),a.body.setBullet(a.type.bodyDef.bullet),null!=a.body.m_prev&&(a.body.m_prev.m_next=a.body.m_next),null!=a.body.m_next&&(a.body.m_next.m_prev=a.body.m_prev),a.body==this.world.m_bodyList&&(this.world.m_bodyList=a.body.m_next),a.body.m_prev=null,a.body.m_next=null,--this.world.m_bodyCount);a.xSpeed=0;a.ySpeed=0;a.rSpeed=0;a.continuousCollision=!1;d=0;for(b= +this.tasks;d<b.length;)c=b[d],++d,c.actor==a&&this.removeTask(c);this.allActors.unset(a.ID)}},getRecycledActorOfType:function(a,b,c,d){a=this.getRecycledActorOfTypeOnLayer(a,b,c,this.getLayerByOrder(d).ID);h.paused&&(a.updateDrawingMatrix(),a.pause());return a},getRecycledActorOfTypeOnLayer:function(a,b,c,d){var e=null;if(null==this.recycledActorsOfType.h[a.ID]){var g=a.ID;this.recycledActorsOfType.h[g]=[]}g=this.recycledActorsOfType.h[a.ID];if(null!=g){for(var f=0;f<g.length;)if(e=g[f],++f,null!= +e&&e.recycled){e.createTime=Da.getTimer();this.allActors.set(e.ID,e);e.dead=!1;e.dying=!1;e.recycled=!1;e.killLeaveScreen=!1;e.switchToDefaultAnimation();e.customizedBehaviors?(e.customizedBehaviors=!1,e.behaviors=new yj,h.initBehaviors(e.behaviors,a.behaviorValues,e,this,!1)):e.enableAllBehaviors();0==e.physicsMode&&(e.body.setActive(!0),e.body.setAwake(!0),e.body.m_prev=null,e.body.m_next=this.world.m_bodyList,null!=this.world.m_bodyList&&(this.world.m_bodyList.m_prev=e.body),this.world.m_bodyList= +e.body,++this.world.m_bodyCount);e.registry=new V;e.enableActorDrawing();e.setXY(b,c,!1,!0);0==e.physicsMode&&(e.colX=b,e.colY=c);e.setAngle(0,!1);e.setIgnoreGravity(e.defaultGravity);e.set_alpha(1);e.realScaleX=1;e.realScaleY=1;null!=e.bodyDef&&(e.continuousCollision=e.bodyDef.bullet);e.updateDrawingMatrix(!0);this.moveActorToLayer(e,this.getLayerById(d));e.initScripts();a=this.whenTypeGroupCreatedEvents.h[a.__id__];b=this.whenTypeGroupCreatedEvents;g=e.getGroup();b=b.h[g.__id__];if(null!=a&&0<a.length)for(a._dispatchIndex= +0;a._dispatchIndex<a.length;){try{a.listeners[a._dispatchIndex](e)}catch(l){sa.lastError=l}++a._dispatchIndex}if(null!=b&&0<b.length)for(b._dispatchIndex=0;b._dispatchIndex<b.length;){try{b.listeners[b._dispatchIndex](e)}catch(l){sa.lastError=l}++b._dispatchIndex}return e}e=this.createActorOfType(a,b,c,d)}return e},createActorOfType:function(a,b,c,d){if(null==a)return null;b=new $k(1E8,b|0,c|0,1,1,d,-1,0,a.groupID,a.ID,null,!1);b=this.createActor(b,!0);b.initScripts();a=this.whenTypeGroupCreatedEvents.h[a.__id__]; +c=this.whenTypeGroupCreatedEvents;d=b.getGroup();c=c.h[d.__id__];if(null!=a&&0<a.length)for(a._dispatchIndex=0;a._dispatchIndex<a.length;){try{a.listeners[a._dispatchIndex](b)}catch(e){sa.lastError=e}++a._dispatchIndex}if(null!=c&&0<c.length)for(c._dispatchIndex=0;c._dispatchIndex<c.length;){try{c.listeners[c._dispatchIndex](b)}catch(e){sa.lastError=e}++c._dispatchIndex}return b},getTopLayer:function(){return this.topLayer.ID},getBottomLayer:function(){return this.bottomLayer.ID},getMiddleLayer:function(){return this.middleLayer.ID}, +update:function(a){if(null!=this.scene){jb.update(a|0);if(!h.NO_PHYSICS){var b=this.world.getScreenBounds();b.lowerBound.x=(h.cameraX/h.SCALE-h.paddingLeft)/h.physicsScale;b.lowerBound.y=(h.cameraY/h.SCALE-h.paddingTop)/h.physicsScale;b.upperBound.x=b.lowerBound.x+(h.screenWidth+h.paddingRight+h.paddingLeft)/h.physicsScale;b.upperBound.y=b.lowerBound.y+(h.screenHeight+h.paddingBottom+h.paddingTop)/h.physicsScale}b=K.mouseX/h.SCALE|0;var c=K.mouseY/h.SCALE|0;if(K.mousePressed&&(f.mpx=b,f.mpy=c,0<this.whenMousePressed.length))for(this.whenMousePressed._dispatchIndex= +0;this.whenMousePressed._dispatchIndex<this.whenMousePressed.length;){try{this.whenMousePressed.listeners[this.whenMousePressed._dispatchIndex]()}catch(x){sa.lastError=x}++this.whenMousePressed._dispatchIndex}if(K.mouseReleased&&(f.mrx=b,f.mry=c,0<this.whenMouseReleased.length))for(this.whenMouseReleased._dispatchIndex=0;this.whenMouseReleased._dispatchIndex<this.whenMouseReleased.length;){try{this.whenMouseReleased.listeners[this.whenMouseReleased._dispatchIndex]()}catch(x){sa.lastError=x}++this.whenMouseReleased._dispatchIndex}if(this.mx!= +b||this.my!=c){this.mx=b;this.my=c;if(0<this.whenMouseMoved.length)for(this.whenMouseMoved._dispatchIndex=0;this.whenMouseMoved._dispatchIndex<this.whenMouseMoved.length;){try{this.whenMouseMoved.listeners[this.whenMouseMoved._dispatchIndex]()}catch(x){sa.lastError=x}++this.whenMouseMoved._dispatchIndex}if(K.mouseDown&&!K.mousePressed&&0<this.whenMouseDragged.length)for(this.whenMouseDragged._dispatchIndex=0;this.whenMouseDragged._dispatchIndex<this.whenMouseDragged.length;){try{this.whenMouseDragged.listeners[this.whenMouseDragged._dispatchIndex]()}catch(x){sa.lastError= +x}++this.whenMouseDragged._dispatchIndex}}for(var d=0;d<this.tasks.length;)b=this.tasks[d],b.done||b.update(h.STEP_SIZE),b.done&&(F.remove(this.tasks,b),--d),++d;if(0<this.whenKeyPressedEvents.keys.length){b=0;for(c=this.whenKeyPressedEvents.keys.length;b<c;){d=b++;var e=this.whenKeyPressedEvents.keys[d];d=K.pressed(e);var g=K.released(e);if(d||g)if(e=this.whenKeyPressedEvents.map.get(e),0<e.length)for(e._dispatchIndex=0;e._dispatchIndex<e.length;){try{e.listeners[e._dispatchIndex](d,g)}catch(x){sa.lastError= +x}++e._dispatchIndex}}this.keyPollOccurred=!0}if(0<this.whenUpdated.length)for(this.whenUpdated._dispatchIndex=0;this.whenUpdated._dispatchIndex<this.whenUpdated.length;){try{this.whenUpdated.listeners[this.whenUpdated._dispatchIndex](a)}catch(x){sa.lastError=x}++this.whenUpdated._dispatchIndex}h.NO_PHYSICS||(this.world.step(.01,3,3),this.world.clearForces(),h.DEBUG_DRAW&&this.world.drawDebugData());if(0!=this.regions.mSize)for(b=this.regions.iterator();b.hasNext();)c=b.next(),null!=c&&c.innerUpdate(a, +!0);for(;0<this.disableCollisionList.length;)this.disableCollisionList.pop();if(0!=this.collisionPairs.mSize)for(b=this.collisionPairs.keys();b.hasNext();)c=b.next(),this.collisionPairs.unset(c);me.updateAll(a);if(0!=this.allActors.mSize)for(d=this.allActors.iterator();d.hasNext();)b=d.next(),null==b||b.dead||b.recycled||(c=(0!=b.physicsMode||b.body.isActive())&&b.colX+b.cacheWidth*b.realScaleX>=h.cameraX/h.SCALE-h.paddingLeft&&b.colY+b.cacheHeight*b.realScaleY>=h.cameraY/h.SCALE-h.paddingTop&&b.colX< +h.cameraX/h.SCALE+h.screenWidth+h.paddingRight&&b.colY<h.cameraY/h.SCALE+h.screenHeight+h.paddingBottom,b.isOnScreenCache=c||b.isHUD,0==b.physicsMode&&null!=b.body?b.killLeaveScreen&&!c?this.recycleActor(b):(b.body.isActive()||b.alwaysSimulate||b.isHUD)&&b.innerUpdate(a,!1):0!=b.physicsMode&&(b.killLeaveScreen&&!c?this.recycleActor(b):(c||b.alwaysSimulate||b.isHUD)&&b.innerUpdate(a,!1)),b.dead&&this.disableCollisionList.push(b));this.keyPollOccurred=!1;b=0;for(c=this.disableCollisionList.length;b< +c;)d=b++,d=this.disableCollisionList[d],null!=d&&(d.handlesCollisions=!1);b=0;for(c=this.animatedTiles.length;b<c;)d=b++,d=this.animatedTiles[d],d.update(a),this.tileUpdated=this.tileUpdated||d.updateSource;null!=this.leave&&this.leave.isActive()?this.leave.update(a):null!=this.enter&&this.enter.isActive()&&this.enter.update(a);for(b=this.layers.iterator();b.hasNext();)b.next().updatePosition(h.cameraX,h.cameraY,a);!h.NO_PHYSICS&&h.DEBUG_DRAW&&(this.debugLayer.set_x(-h.cameraX),this.debugLayer.set_y(-h.cameraY)); +this.isShaking&&(this.shakeTimer-=h.STEP_SIZE,0>=this.shakeTimer?this.stopShakingScreen():(a=-this.shakeIntensity*h.screenHeight+2*Math.random()*this.shakeIntensity*h.screenHeight,this.master.set_x((-this.shakeIntensity*h.screenWidth+2*Math.random()*this.shakeIntensity*h.screenWidth)*h.SCALE),this.master.set_y(a*h.SCALE)))}},onUpdate:function(a){a=Da.getTimer();var b=a-this.lastTime;200<=b&&(b=200);this.acc+=b;h.elapsedTime=b;h.totalElapsedTime+=b|0;null!=this.leave?(this.leave.isComplete()&&(this.leave.deactivate(), +this.enterScene()),this.postUpdate(a)):(null!=this.enter&&this.enter.isComplete()&&(this.enter.deactivate(),this.enter.cleanup(),this.enter=null),this.sceneInitialized&&this.postUpdate(a))},postUpdate:function(a){for(;this.acc>h.STEP_SIZE;)this.update(h.STEP_SIZE),this.acc-=h.STEP_SIZE,K.update();this.lastTime=a;if(0!=this.allActors.mSize)for(a=this.allActors.iterator();a.hasNext();){var b=a.next();null==b||0==b.physicsMode&&null==b.body||(b.dead||b.dying?this.removeActor(b):b.updateMatrix||b.resetOrigin? +(b.updateDrawingMatrix(),b.updateMatrix=!1,b.resetOrigin=!1):b.smoothMove&&(b.drawX!=b.realX||b.drawY!=b.realY)&&b.updateDrawingMatrix())}this.draw()},onFocus:function(a){h.inFocus||(h.inFocus=!0,this.focusChanged(!1))},onFocusLost:function(a){h.inFocus&&(h.inFocus=!1,this.focusChanged(!0))},focusChanged:function(a){if(null!=this.whenFocusChanged&&0<this.whenFocusChanged.length)for(this.whenFocusChanged._dispatchIndex=0;this.whenFocusChanged._dispatchIndex<this.whenFocusChanged.length;){try{this.whenFocusChanged.listeners[this.whenFocusChanged._dispatchIndex](a)}catch(b){sa.lastError= +b}++this.whenFocusChanged._dispatchIndex}},handleCollision:function(a,b){var c=a.typeID,d=b.otherActor.typeID;if(h.NO_PHYSICS){var e=1E6+b.thisActor.groupID;var g=1E6+b.otherActor.groupID}else{if(null!=b.thisShape){g=b.thisShape.groupID;if(-1E3==g){var f=b.thisShape.getBody();null!=f&&(g=f.getUserData().groupID)}e=1E6+g}else e=1E6+b.thisActor.groupID;null!=b.otherShape?(g=b.otherShape.groupID,-1E3==g&&(f=b.otherShape.getBody(),null!=f&&(g=f.getUserData().groupID)),g=1E6+g):g=1E6+b.otherActor.groupID}if(null!= +this.collisionPairs){f=a.ID;var l=this.collisionPairs.mH,t=l.mHash[73856093*f&l.mMask];if(-1==t)f=!1;else{var m=l.mData;if(m[t]==f)f=!0;else{l=!1;for(t=m[t+2];-1!=t;){if(m[t]==f){l=!0;break}t=m[t+2]}f=l}}f||this.collisionPairs.set(a.ID,new Sa);f=b.otherActor.ID;l=this.collisionPairs.mH;t=l.mHash[73856093*f&l.mMask];if(-1==t)f=!1;else if(m=l.mData,m[t]==f)f=!0;else{l=!1;for(t=m[t+2];-1!=t;){if(m[t]==f){l=!0;break}t=m[t+2]}f=l}f||this.collisionPairs.set(b.otherActor.ID,new Sa);l=this.collisionPairs; +f=a.ID;m=l.mH;t=m.mHash[73856093*f&m.mMask];if(-1==t)f=-2147483648;else if(m=m.mData,m[t]==f)f=m[t+1];else{var k=-2147483648;for(t=m[t+2];-1!=t;){if(m[t]==f){k=m[t+1];break}t=m[t+2]}f=k}if((-2147483648==f?null:l.mVals[f]).h.hasOwnProperty(b.otherActor.ID))f=!0;else{l=this.collisionPairs;f=b.otherActor.ID;m=l.mH;t=m.mHash[73856093*f&m.mMask];if(-1==t)f=-2147483648;else if(m=m.mData,m[t]==f)f=m[t+1];else{k=-2147483648;for(t=m[t+2];-1!=t;){if(m[t]==f){k=m[t+1];break}t=m[t+2]}f=k}f=(-2147483648==f?null: +l.mVals[f]).h.hasOwnProperty(a.ID)}if(f)return}if(-1<c||-1<d){if(!b.otherCollidedWithTerrain&&this.whenCollidedEvents.h.hasOwnProperty(c)&&this.whenCollidedEvents.h[c].h.hasOwnProperty(d)){f=this.whenCollidedEvents.h[c].h[d];if(0<f.length)for(f._dispatchIndex=0;f._dispatchIndex<f.length;){try{f.listeners[f._dispatchIndex](b)}catch(p){sa.lastError=p}++f._dispatchIndex}0==f.length&&this.whenCollidedEvents.h[c].remove(d)}if(c!=d&&this.whenCollidedEvents.h.hasOwnProperty(d)&&this.whenCollidedEvents.h[d].h.hasOwnProperty(c)){f= +this.whenCollidedEvents.h[d].h[c];l=b.switchData(qc.get());if(0<f.length)for(f._dispatchIndex=0;f._dispatchIndex<f.length;){try{f.listeners[f._dispatchIndex](l)}catch(p){sa.lastError=p}++f._dispatchIndex}0==f.length&&this.whenCollidedEvents.h[d].remove(c)}}if(0<e&&0<g){if(this.whenCollidedEvents.h.hasOwnProperty(e)&&this.whenCollidedEvents.h[e].h.hasOwnProperty(g)){f=this.whenCollidedEvents.h[e].h[g];if(0<f.length)for(f._dispatchIndex=0;f._dispatchIndex<f.length;){try{f.listeners[f._dispatchIndex](b)}catch(p){sa.lastError= +p}++f._dispatchIndex}0==f.length&&this.whenCollidedEvents.h[e].remove(g)}if(e!=g&&this.whenCollidedEvents.h.hasOwnProperty(g)&&this.whenCollidedEvents.h[g].h.hasOwnProperty(e)){f=this.whenCollidedEvents.h[g].h[e];l=b.switchData(qc.get());if(0<f.length)for(f._dispatchIndex=0;f._dispatchIndex<f.length;){try{f.listeners[f._dispatchIndex](l)}catch(p){sa.lastError=p}++f._dispatchIndex}0==f.length&&this.whenCollidedEvents.h[g].remove(e)}}if(null!=this.collisionPairs){l=this.collisionPairs;f=a.ID;m=l.mH; +t=m.mHash[73856093*f&m.mMask];if(-1==t)f=-2147483648;else if(m=m.mData,m[t]==f)f=m[t+1];else{k=-2147483648;for(t=m[t+2];-1!=t;){if(m[t]==f){k=m[t+1];break}t=m[t+2]}f=k}(-2147483648==f?null:l.mVals[f]).h[b.otherActor.ID]=!1;l=this.collisionPairs;f=b.otherActor.ID;m=l.mH;t=m.mHash[73856093*f&m.mMask];if(-1==t)f=-2147483648;else if(m=m.mData,m[t]==f)f=m[t+1];else{k=-2147483648;for(t=m[t+2];-1!=t;){if(m[t]==f){k=m[t+1];break}t=m[t+2]}f=k}(-2147483648==f?null:l.mVals[f]).h[a.ID]=!1}},soundFinished:function(a){var b= +O.__cast(this.channels[a],Ub);if(null!=this.whenSoundEndedEvents){var c=this.whenSoundEndedEvents.h[b.currentClip.__id__];b.currentSound=null;if(null!=c&&0<c.length)for(c._dispatchIndex=0;c._dispatchIndex<c.length;){try{c.listeners[c._dispatchIndex]()}catch(d){sa.lastError=d}++c._dispatchIndex}}else b.currentSound=null;if(null!=this.whenChannelEndedEvents&&(a=this.whenChannelEndedEvents.h[a],null!=a&&0<a.length))for(a._dispatchIndex=0;a._dispatchIndex<a.length;){try{a.listeners[a._dispatchIndex]()}catch(d){sa.lastError= +d}++a._dispatchIndex}},addTask:function(a){this.tasks.push(a)},removeTask:function(a){F.remove(this.tasks,a)},shakeScreen:function(a,b){this.shakeTimer=h.MS_PER_SEC*b|0;this.isShaking=!0;this.shakeIntensity=a},stopShakingScreen:function(){this.shakeTimer=0;this.isShaking=!1;this.master.set_x(0);this.master.set_y(0)},cameraFollow:function(a,b,c){this.moveCamera(a.colX+a.cacheWidth/2,a.colY+a.cacheHeight/2)},moveCamera:function(a,b){this.camera.setLocation(a,b);h.cameraX=this.camera.realX-h.screenWidthHalf; +h.cameraY=this.camera.realY-h.screenHeightHalf;h.limitCameraToScene&&(h.cameraX=Math.max(0,Math.min(h.sceneWidth-h.screenWidth,h.cameraX)),h.cameraY=Math.max(0,Math.min(h.sceneHeight-h.screenHeight,h.cameraY)));h.cameraX*=h.SCALE;h.cameraY*=h.SCALE;1!=this.zoomMultiplier&&this.isHUDZoomable&&(this.hudLayer.set_x(-f.getScreenX()),this.hudLayer.set_y(-f.getScreenY()))},setZoom:function(a,b){null==b&&(b=!0);0>=a||this.zoomMultiplier==a||(this.zoomMultiplier=a,this.root.set_scaleX(h.screenScaleX=a*h.unzoomedScaleX), +this.root.set_scaleY(h.screenScaleY=a*h.unzoomedScaleY),b&&(h.screenWidth=1/a*da.logicalWidth|0,h.screenWidthHalf=h.screenWidth/2|0,h.screenHeight=1/a*da.logicalHeight|0,h.screenHeightHalf=h.screenHeight/2|0),this.setColorBackground(this.scene.colorBackground),this.root.set_scrollRect(new fa(0,0,h.screenWidth*h.SCALE,h.screenHeight*h.SCALE)),this.moveCamera(this.camera.realX,this.camera.realY),this.isHUDZoomable||(this.hudLayer.set_scaleX(1/a),this.hudLayer.set_scaleY(1/a)))},pause:function(){if(!this.isTransitioning()){h.paused= +!0;if(0!=this.allActors.mSize)for(var a=this.allActors.keys();a.hasNext();){var b=a.next(),c=this.allActors,d=c.mH,e=d.mHash[73856093*b&d.mMask];if(-1==e)b=-2147483648;else if(d=d.mData,d[e]==b)b=d[e+1];else{var g=-2147483648;for(e=d[e+2];-1!=e;){if(d[e]==b){g=d[e+1];break}e=d[e+2]}b=g}c=-2147483648==b?null:c.mVals[b];null!=c&&c.pause()}if(0<this.whenPaused.length)for(this.whenPaused._dispatchIndex=0;this.whenPaused._dispatchIndex<this.whenPaused.length;){try{this.whenPaused.listeners[this.whenPaused._dispatchIndex](!0)}catch(x){sa.lastError= +x}++this.whenPaused._dispatchIndex}}},unpause:function(){h.paused=!1;if(0!=this.allActors.mSize)for(var a=this.allActors.keys();a.hasNext();){var b=a.next(),c=this.allActors,d=c.mH,e=d.mHash[73856093*b&d.mMask];if(-1==e)b=-2147483648;else if(d=d.mData,d[e]==b)b=d[e+1];else{var g=-2147483648;for(e=d[e+2];-1!=e;){if(d[e]==b){g=d[e+1];break}e=d[e+2]}b=g}c=-2147483648==b?null:c.mVals[b];null!=c&&c.unpause()}if(0<this.whenPaused.length)for(this.whenPaused._dispatchIndex=0;this.whenPaused._dispatchIndex< +this.whenPaused.length;){try{this.whenPaused.listeners[this.whenPaused._dispatchIndex](!1)}catch(x){sa.lastError=x}++this.whenPaused._dispatchIndex}},isPaused:function(){return h.paused},draw:function(){for(var a=0,b=this.interactiveLayers;a<b.length;){var c=b[a];++a;c.overlay.get_graphics().clear()}this.hudLayer.overlay.get_graphics().clear();this.g.graphics=this.transitionLayer.get_graphics();this.g.graphics.clear();this.g.resetGraphicsSettings();if(0!=this.allActors.mSize)for(a=this.allActors.iterator();a.hasNext();)if(b= +a.next(),0<b.whenDrawing.length&&null!=b.layer&&(this.g.graphics=b.layer.overlay.get_graphics(),this.g.translateToActor(b),this.g.resetGraphicsSettings(),0<b.whenDrawing.length))for(b.whenDrawing._dispatchIndex=0;b.whenDrawing._dispatchIndex<b.whenDrawing.length;){try{b.whenDrawing.listeners[b.whenDrawing._dispatchIndex](this.g,0,0)}catch(d){sa.lastError=d}++b.whenDrawing._dispatchIndex}a=0;for(b=this.interactiveLayers;a<b.length;)if(c=b[a],++a,c.cameraMoved||this.tileUpdated)c.tiles.draw(h.cameraX* +c.scrollFactorX|0,h.cameraY*c.scrollFactorY|0),c.cameraMoved=!1;this.tileUpdated=!1;this.g.graphics=this.transitionLayer.get_graphics();this.g.translateToScreen();this.g.resetGraphicsSettings();if(0<this.whenDrawing.length)for(this.whenDrawing._dispatchIndex=0;this.whenDrawing._dispatchIndex<this.whenDrawing.length;){try{this.whenDrawing.listeners[this.whenDrawing._dispatchIndex](this.g,0,0)}catch(d){sa.lastError=d}++this.whenDrawing._dispatchIndex}Jd.visitStringCache();null!=this.leave&&this.leave.isActive()? +this.leave.draw(null):null!=this.enter&&this.enter.isActive()&&this.enter.draw(null);null!=this.shaders&&0<this.shaders.length&&this.shaders[0].capture()},getValue:function(a,b){return this.behaviors.getAttribute(a,b)},setValue:function(a,b,c){this.behaviors.setAttribute(a,b,c)},say:function(a,b,c){return this.behaviors.call2(a,b,c)},shout:function(a,b){return this.behaviors.call(a,b)},getActor:function(a){var b=this.allActors,c=b.mH,d=c.mHash[73856093*a&c.mMask];if(-1==d)a=-2147483648;else if(c= +c.mData,c[d]==a)a=c[d+1];else{var e=-2147483648;for(d=c[d+2];-1!=d;){if(c[d]==a){e=c[d+1];break}d=c[d+2]}a=e}return-2147483648==a?null:b.mVals[a]},getActorsOfType:function(a){return null==a?[]:null!=this.actorsOfType.h[a.ID]?this.actorsOfType.h[a.ID]:[]},getRecycledActorsOfType:function(a){return this.recycledActorsOfType.h[a.ID]},getLayer:function(a,b){return 0==a?this.getLayerById(n.parseInt(b)):this.getLayerByName(b)},getLayerById:function(a,b){null==b&&(b=!0);if(-1==a)return null;var c=h.engine.layers, +d=c.mH,e=d.mHash[73856093*a&d.mMask];if(-1==e)a=-2147483648;else if(d=d.mData,d[e]==a)a=d[e+1];else{var g=-2147483648;for(e=d[e+2];-1!=e;){if(d[e]==a){g=d[e+1];break}e=d[e+2]}a=g}c=-2147483648==a?null:c.mVals[a];null==c&&b&&(c=this.topLayer);return c},getLayerByName:function(a,b){null==b&&(b=!0);a=h.engine.layersByName.h[a];null==a&&b&&(a=this.topLayer);return a},getLayerByOrder:function(a){switch(a){case 0:return this.topLayer;case 1:return this.middleLayer;case 2:return this.bottomLayer;default:return this.topLayer}}, +sendToBack:function(a){a.isHUD||this.moveActorToLayer(a,this.bottomLayer)},sendBackward:function(a){if(!a.isHUD)for(var b=a.layer.order;this.layersToDraw.h.hasOwnProperty(--b);)if(this.layersToDraw.h[b]instanceof Ac){this.moveActorToLayer(a,this.layersToDraw.h[b]);break}},bringToFront:function(a){a.isHUD||this.moveActorToLayer(a,this.topLayer)},bringForward:function(a){if(!a.isHUD)for(var b=a.layer.order;this.layersToDraw.h.hasOwnProperty(++b);)if(this.layersToDraw.h[b]instanceof Ac){this.moveActorToLayer(a, +this.layersToDraw.h[b]);break}},getNumberOfActorsWithinLayer:function(a){return a instanceof Ac?O.__cast(a,Ac).actorContainer.get_numChildren():0},getNumberOfLayers:function(){return this.master.get_numChildren()},getOrderOfLayer:function(a){return a.order},moveLayerToOrder:function(a,b){0>b&&(b=0);b>this.master.get_numChildren()-1&&(b=this.master.get_numChildren()-1);a.order!=b&&(this.master.setChildIndex(a,b),this.refreshLayers())},getNextLayerID:function(){for(var a=-1,b=this.layers.iterator();b.hasNext();){var c= +b.next();a=Math.max(a,c.ID)|0}return a+1},insertLayer:function(a,b){this.master.addChildAt(a,b);a instanceof Sd?this.backgroundLayers.push(O.__cast(a,Sd)):a instanceof Ac&&this.interactiveLayers.push(O.__cast(a,Ac));this.layers.set(a.ID,a);this.layersByName.h[a.layerName]=a;this.refreshLayers()},removeLayer:function(a){this.master.removeChild(a);a instanceof Sd?F.remove(this.backgroundLayers,O.__cast(a,Sd)):a instanceof Ac&&F.remove(this.interactiveLayers,O.__cast(a,Ac));this.layers.unset(a.ID);a= +a.layerName;var b=this.layersByName;Object.prototype.hasOwnProperty.call(b.h,a)&&delete b.h[a];this.refreshLayers()},refreshLayers:function(){for(var a=!1,b=!1,c=0,d=0,e=this.master.get_numChildren();d<e;){var g=d++,f=O.__cast(this.master.getChildAt(g),wg);this.layersToDraw.h[g]=f;f.order=g;f instanceof Ac&&(a||(a=!0,this.bottomLayer=f),b||c!=Math.floor(this.interactiveLayers.length/2)||(b=!0,this.middleLayer=f),this.topLayer=f,++c)}},getPhysicalWidth:function(){return this.physicalWidth},getPhysicalHeight:function(){return this.physicalHeight}, +enableGlobalSleeping:function(){this.world.m_allowSleep=!0},disableGlobalSleeping:function(){this.world.m_allowSleep=!1},getGroup:function(a,b){return-1E3==a&&null!=b?(a=this.groups,b=b.getGroupID(),a.h[b]):this.groups.h[a]},getGroupByName:function(a){a=this.reverseGroups.h[a];return null==a?this.groups.h[3]:a},nextJointID:function(){for(var a=-1,b=this.joints.iterator();b.hasNext();){var c=b.next();null!=c&&(a=Math.max(a,c.ID)|0)}return a+1},addJoint:function(a){var b=this.nextJointID();a.ID=b;this.joints.h[b]= +a},getJoint:function(a){return this.joints.h[a]},destroyJoint:function(a){this.joints.remove(a.ID);this.world.destroyJoint(a)},createStickJoint:function(a,b,c,d,e,g){null==g&&(g=0);null==e&&(e=0);null==d&&(d=!1);null==c&&(c=-1);var f=a.getLocalCenter(),l=b.getLocalCenter();0==a.getType()&&(f.x=a.getUserData().getPhysicsWidth()/2,f.y=a.getUserData().getPhysicsHeight()/2);0==b.getType()&&(l.x=b.getUserData().getPhysicsWidth()/2,l.y=b.getUserData().getPhysicsHeight()/2);f=a.getWorldPoint(f);l=b.getWorldPoint(l); +var t=new Lh;t.initialize(a,b,f,l);t.collideConnected=d;t.dampingRatio=e;t.frequencyHz=g;a=this.world.createJoint(t);-1==c?this.addJoint(a):(this.joints.h[c]=a,a.ID=c);return O.__cast(a,pi)},createCustomStickJoint:function(a,b,c,d,e,g){b=new z(b,c);e=new z(e,g);b.x=h.toPhysicalUnits(b.x);b.y=h.toPhysicalUnits(b.y);e.x=h.toPhysicalUnits(e.x);e.y=h.toPhysicalUnits(e.y);b=a.getWorldPoint(b);e=d.getWorldPoint(e);g=new Lh;g.initialize(a,d,b,e);a=this.world.createJoint(g);this.addJoint(a);return O.__cast(a, +pi)},createHingeJoint:function(a,b,c,d,e,g,f,l,t,m,k){null==k&&(k=0);null==m&&(m=0);null==t&&(t=0);null==l&&(l=0);null==f&&(f=!1);null==g&&(g=!1);null==e&&(e=!1);null==d&&(d=-1);null==b&&(b=this.world.m_groundBody);null==c&&(c=a.getLocalCenter());var x=new Mh;x.bodyA=a;x.bodyB=b;c.x=h.toPhysicalUnits(c.x);c.y=h.toPhysicalUnits(c.y);x.localAnchorA=c;x.localAnchorB=b.getLocalPoint(a.getWorldPoint(c));x.collideConnected=e;x.enableLimit=g;x.enableMotor=f;x.lowerAngle=l;x.upperAngle=t;x.maxMotorTorque= +m;x.motorSpeed=k;a=this.world.createJoint(x);-1==d?this.addJoint(a):(this.joints.h[d]=a,a.ID=d);return O.__cast(a,ag)},createSlidingJoint:function(a,b,c,d,e,g,f,l,t,m,k){null==k&&(k=0);null==m&&(m=0);null==t&&(t=0);null==l&&(l=0);null==f&&(f=!1);null==g&&(g=!1);null==e&&(e=!1);null==d&&(d=-1);null==b&&(b=this.world.m_groundBody);null==c&&(c=new z(1,0));c.normalize();var x=a.getWorldCenter(),n=b.getWorldCenter();0==a.getType()&&null!=a.getUserData()&&(x.x=a.getUserData().getPhysicsWidth()/2,x.y=a.getUserData().getPhysicsHeight()/ +2,x=a.getWorldPoint(x));0==b.getType()&&null!=b.getUserData()&&(n.x=b.getUserData().getPhysicsWidth()/2,n.y=b.getUserData().getPhysicsHeight()/2,b.getWorldPoint(n));n=new Nh;n.initialize(a,b,x,c);n.collideConnected=e;n.enableLimit=g;n.enableMotor=f;n.lowerTranslation=h.toPhysicalUnits(l);n.upperTranslation=h.toPhysicalUnits(t);n.maxMotorForce=m;n.motorSpeed=h.toPhysicalUnits(k);a=this.world.createJoint(n);-1==d?this.addJoint(a):(this.joints.h[d]=a,a.ID=d);return O.__cast(a,wj)},createRegion:function(a, +b,c,d){null==d&&(d=!1);var e=[];e.push(c);c=new kd(this,a,b,e);d&&c.setXY(a+c.regionWidth/2,b+c.regionHeight/2);this.addRegion(c);return c},createBoxRegion:function(a,b,c,d){if(h.NO_PHYSICS)return a=new kd(this,a,b,[],new fa(0,0,c,d)),this.addRegion(a),a;c=h.toPhysicalUnits(c);d=h.toPhysicalUnits(d);var e=new Bb;e.setAsBox(c/2,d/2);return this.createRegion(a,b,e,!0)},createCircularRegion:function(a,b,c){if(h.NO_PHYSICS)return a=new kd(this,a,b,[],new fa(0,0,2*c,2*c)),this.addRegion(a),a;c=h.toPhysicalUnits(c); +var d=new Hc;d.m_radius=c;return this.createRegion(a,b,d,!0)},addRegion:function(a){-1==a.ID&&(a.ID=this.nextRegionID());this.regions.set(a.ID,a);h.NO_PHYSICS&&this.groups.h[-2].addChild(a)},removeRegion:function(a){a=this.getRegion(a);this.regions.unset(a.ID);a.destroy();h.NO_PHYSICS&&this.groups.h[-2].removeChild(a)},getRegion:function(a){var b=this.regions,c=b.mH,d=c.mHash[73856093*a&c.mMask];if(-1==d)a=-2147483648;else if(c=c.mData,c[d]==a)a=c[d+1];else{var e=-2147483648;for(d=c[d+2];-1!=d;){if(c[d]== +a){e=c[d+1];break}d=c[d+2]}a=e}return-2147483648==a?null:b.mVals[a]},getRegions:function(){return this.regions},nextRegionID:function(){for(var a=-1,b=this.regions.iterator();b.hasNext();){var c=b.next();null!=c&&(a=Math.max(a,c.ID)|0)}return a+1},isInRegion:function(a,b){if(null!=b){var c=this.regions;var d=b.getID(),e=c.mH,g=e.mHash[73856093*d&e.mMask];if(-1==g)d=-2147483648;else if(e=e.mData,e[g]==d)d=e[g+1];else{var f=-2147483648;for(g=e[g+2];-1!=g;){if(e[g]==d){f=e[g+1];break}g=e[g+2]}d=f}c= +null!=(-2147483648==d?null:c.mVals[d])}else c=!1;return c?b.containsActor(a):!1},createTerrainRegion:function(a,b,c,d,e){null==e&&(e=1);null==d&&(d=!1);var g=[];g.push(c);c=new Mg(this,a,b,g,e);d&&c.setXY(a+c.regionWidth/2,b+c.regionHeight/2);this.addTerrainRegion(c);return c},createBoxTerrainRegion:function(a,b,c,d,e){null==e&&(e=1);c=h.toPhysicalUnits(c);d=h.toPhysicalUnits(d);var g=new Bb;g.setAsBox(c/2,d/2);return this.createTerrainRegion(a,b,g,!0,e)},createCircularTerrainRegion:function(a,b, +c,d){null==d&&(d=1);c=h.toPhysicalUnits(c);var e=new Hc;e.m_radius=c;return this.createTerrainRegion(a,b,e,!0,d)},addTerrainRegion:function(a){-1==a.ID&&(a.ID=this.nextTerrainRegionID());this.terrainRegions.h[a.ID]=a},removeTerrainRegion:function(a){var b=this.getTerrainRegion(a);this.terrainRegions.remove(a);b.destroy()},getTerrainRegion:function(a){return this.terrainRegions.h[a]},getTerrainRegions:function(){return this.terrainRegions},nextTerrainRegionID:function(){for(var a=-1,b=this.terrainRegions.iterator();b.hasNext();){var c= +b.next();null!=c&&(a=Math.max(a,c.ID)|0)}return a+1},setGameAttribute:function(a,b){this.gameAttributes.h[a]=b},getGameAttribute:function(a){return this.gameAttributes.h[a]},restoreGameAttributes:function(){var a=ic.get().readGameMbs();a=pe.readMap(a.getGameAttributes());this.gameAttributes.h=Object.create(null);for(var b=Object.keys(a.h),c=b.length,d=0;d<c;){var e=b[d++];this.gameAttributes.h[e]=a.h[e]}},setOffscreenTolerance:function(a,b,c,d){h.paddingTop=a;h.paddingLeft=b;h.paddingBottom=c;h.paddingRight= +d},setScrollFactor:function(a,b,c){this.setLayerScrollFactor(this.getLayerById(a),b,c)},setLayerScrollFactor:function(a,b,c){null==c&&(c=b);a.scrollFactorX=b;a.scrollFactorY=c},__class__:h};var Rn=function(a,b){this.inputControlMap=a;this.getInputs=b};k["com.stencyl.InputMethod_Int"]=Rn;Rn.__name__="com.stencyl.InputMethod_Int";Rn.prototype={inputControlMap:null,getInputs:null,mapInputToControl:function(a,b){this.inputControlMap.exists(a)||this.inputControlMap.set(a,[]);for(var c=this.inputControlMap.get(a), +d=0;d<c.length;){var e=c[d];++d;e!=b&&(F.remove(this.getInputs(e),a),K.controlStateUpdated(e))}-1==this.getInputs(b).indexOf(a)&&(this.getInputs(b).push(a),c.push(b),K.controlStateUpdated(b))},unmapInput:function(a){var b=this.inputControlMap.get(a);if(null!=b)for(var c=0;c<b.length;){var d=b[c];++c;F.remove(this.getInputs(d),a);K.controlStateUpdated(d)}this.inputControlMap.remove(a)},addInputToControl:function(a,b){-1==this.getInputs(b).indexOf(a)&&(this.getInputs(b).push(a),K.controlStateUpdated(b), +this.inputControlMap.exists(a)||this.inputControlMap.set(a,[]),this.inputControlMap.get(a).push(b))},removeInputFromControl:function(a,b){if(-1!=this.getInputs(b).indexOf(a)){F.remove(this.getInputs(b),a);K.controlStateUpdated(b);var c=this.inputControlMap.get(a);F.remove(c,b);0==c.length&&this.inputControlMap.remove(a)}},getInputsForControl:function(a){return null!=a?this.getInputs(a):null},removeAllInputsFromControl:function(a){for(var b=this.getInputs(a);0<b.length;){var c=b.pop(),d=this.inputControlMap.get(c); +F.remove(d,a);0==d.length&&this.inputControlMap.remove(c)}K.controlStateUpdated(a)},__class__:Rn};var K=function(){};k["com.stencyl.Input"]=K;K.__name__="com.stencyl.Input";K.resetStatics=function(){h.stage.removeEventListener("keyDown",K.onKeyDown);h.stage.removeEventListener("keyUp",K.onKeyUp);h.stage.removeEventListener("mouseDown",K.onMouseDown);h.stage.removeEventListener("mouseUp",K.onMouseUp);h.stage.removeEventListener("mouseWheel",K.onMouseWheel);h.stage.removeEventListener("rightMouseDown", +K.onRightMouseDown);h.stage.removeEventListener("rightMouseUp",K.onRightMouseUp);h.stage.removeEventListener("middleMouseDown",K.onMiddleMouseDown);h.stage.removeEventListener("middleMouseUp",K.onMiddleMouseUp);qe.get_supportsTouchEvents()&&(h.stage.removeEventListener("touchBegin",K.onTouchBegin),h.stage.removeEventListener("touchMove",K.onTouchMove),h.stage.removeEventListener("touchEnd",K.onTouchEnd));K._roxAgent.detach();h.engine.root.removeEventListener("rox_gesture_swipe",K.onSwipe);K.mouseX= +0;K.mouseY=0;K.mouseDown=K.mousePressed=K.mouseReleased=K.mouseWheel=!1;K.rightMouseDown=K.rightMousePressed=K.rightMouseReleased=!1;K.middleMouseDown=K.middleMousePressed=K.middleMouseReleased=!1;K.mouseWheelDelta=0;K.accelX=K.accelY=K.accelZ=0;K.multiTouchPoints=null;K.numTouches=0;K._swipeDirection=0;K.swipedUp=K.swipedDown=K.swipedRight=K.swipedLeft=!1;K._roxAgent=null;K._enabled=!1;K._key=[];K._keyInput.inputControlMap=new Sa;K._controlMap=new V;K._controlsToReset=[]};K.define=function(a,b){if(null== +K._controlMap.h[a]){var c=K._controlMap,d=new al(a);c.h[a]=d}else K.unmapControl(a);for(c=0;c<b.length;)d=b[c],++c,K.addKeyToControl(d,a)};K.mapKey=function(a,b){K._keyInput.mapInputToControl(a,K._controlMap.h[b])};K.unmapKey=function(a){K._keyInput.unmapInput(a)};K.addKeyToControl=function(a,b){K._keyInput.addInputToControl(a,K._controlMap.h[b])};K.removeKeyFromControl=function(a,b){K._keyInput.removeInputFromControl(a,K._controlMap.h[b])};K.getKeys=function(a){return K._keyInput.getInputsForControl(K._controlMap.h[a])}; +K.mapJoystickButton=function(a,b){};K.unmapJoystickButton=function(a){};K.addJoystickButtonToControl=function(a,b){};K.removeJoystickButtonFromControl=function(a,b){};K.getJoystickButtons=function(a){return null};K.unmapControl=function(a){K._keyInput.removeAllInputsFromControl(K._controlMap.h[a])};K.unmapKeyboardFromControl=function(a){K._keyInput.removeAllInputsFromControl(K._controlMap.h[a])};K.unmapJoystickFromControl=function(a){};K.setJoySensitivity=function(a){};K.saveJoystickConfig=function(a){}; +K.loadJoystickConfig=function(a){};K.clearJoystickConfig=function(){};K.loadInputConfig=function(){for(var a=Object.keys(ja.keys.h),b=a.length,c=0;c<b;){for(var d=a[c++],e=ja.keys.h[d],g=[],f=0;f<e.length;){var l=e[f];++f;g.push(Ka.keyFromName(l))}e=g;g=new al(d);K._controlMap.h[d]=g;for(d=0;d<e.length;)f=e[d],++d,K._keyInput.addInputToControl(f,g)}};K.check=function(a){a=K._controlMap.h[a];return null!=a?a.down:!1};K.pressed=function(a){a=K._controlMap.h[a];return null!=a?a.pressed:!1};K.released= +function(a){a=K._controlMap.h[a];return null!=a?a.released:!1};K.getButtonPressure=function(a){a=K._controlMap.h[a];return null!=a?a.pressure:0};K.simulateKeyPress=function(a){K.controlPressed(K._controlMap.h[a],1)};K.simulateKeyRelease=function(a){K.controlReleased(K._controlMap.h[a])};K.enableJoystick=function(){};K.enable=function(){K._enabled||null==h.stage||(h.stage.addEventListener("keyDown",K.onKeyDown,!1,2),h.stage.addEventListener("keyUp",K.onKeyUp,!1,2),h.stage.addEventListener("mouseDown", +K.onMouseDown,!1,2),h.stage.addEventListener("mouseUp",K.onMouseUp,!1,2),h.stage.addEventListener("mouseWheel",K.onMouseWheel,!1,2),h.stage.addEventListener("rightMouseDown",K.onRightMouseDown,!1,2),h.stage.addEventListener("rightMouseUp",K.onRightMouseUp,!1,2),h.stage.addEventListener("middleMouseDown",K.onMiddleMouseDown,!1,2),h.stage.addEventListener("middleMouseUp",K.onMiddleMouseUp,!1,2),qe.get_supportsTouchEvents()&&(K.multiTouchPoints=new V,qe.inputMode=2,h.stage.addEventListener("touchBegin", +K.onTouchBegin),h.stage.addEventListener("touchMove",K.onTouchMove),h.stage.addEventListener("touchEnd",K.onTouchEnd)),K._roxAgent=new sb(h.engine.root,2),h.engine.root.addEventListener("rox_gesture_swipe",K.onSwipe),K._swipeDirection=-1,K.swipedLeft=!1,K.swipedRight=!1,K.swipedUp=!1,K.swipedDown=!1,K.mouseX=0,K.mouseY=0,K.accelX=0,K.accelY=0,K.accelZ=0,K.numTouches=0,K._enabled=!0)};K.update=function(){K.swipedLeft=!1;K.swipedRight=!1;K.swipedUp=!1;K.swipedDown=!1;if(-1<K._swipeDirection){switch(K._swipeDirection){case 0:K.swipedLeft= +!0;break;case 1:K.swipedRight=!0;break;case 2:K.swipedUp=!0;break;case 3:K.swipedDown=!0}if(null!=h.engine.whenSwiped&&0<h.engine.whenSwiped.length)for(h.engine.whenSwiped._dispatchIndex=0;h.engine.whenSwiped._dispatchIndex<h.engine.whenSwiped.length;){try{h.engine.whenSwiped.listeners[h.engine.whenSwiped._dispatchIndex]()}catch(c){sa.lastError=c}++h.engine.whenSwiped._dispatchIndex}K._swipeDirection=-1}K.mouseX=(h.stage.get_mouseX()-h.screenOffsetX)/h.screenScaleX;K.mouseY=(h.stage.get_mouseY()- +h.screenOffsetY)/h.screenScaleY;for(var a=K._controlsToReset.length;0<=--a;){var b=K._controlsToReset.pop();b.pressed=!1;b.released=!1}K.mousePressed&&(K.mousePressed=!1);K.mouseReleased&&(K.mouseReleased=!1);K.rightMousePressed&&(K.rightMousePressed=!1);K.rightMouseReleased&&(K.rightMouseReleased=!1);K.middleMousePressed&&(K.middleMousePressed=!1);K.middleMouseReleased&&(K.middleMouseReleased=!1);K.mouseWheelDelta=0};K.onSwipe=function(a){a=O.__cast(a.extra,oa);Math.abs(a.x)<=Math.abs(a.y)?K._swipeDirection= +0>=a.y?2:3:Math.abs(a.x)>Math.abs(a.y)&&(K._swipeDirection=0>=a.x?0:1)};K.controlsPressed=function(a,b){if(null!=a)for(var c=0;c<a.length;){var d=a[c];++c;K.controlPressed(d,b)}};K.controlsReleased=function(a){if(null!=a)for(var b=0;b<a.length;){var c=a[b];++b;K.controlReleased(c)}};K.controlPressed=function(a,b){if(null!=a)if(a.down)a.pressure=b;else if(a.down=!0,a.pressed=!0,a.pressure=b,K._controlsToReset.push(a),h.engine.keyPollOccurred&&(a=h.engine.whenKeyPressedEvents.map.get(a.name),null!= +a&&0<a.length))for(a._dispatchIndex=0;a._dispatchIndex<a.length;){try{a.listeners[a._dispatchIndex](!0,!1)}catch(c){sa.lastError=c}++a._dispatchIndex}};K.controlReleased=function(a){if(null!=a&&a.down&&(a.down=!1,a.released=!0,a.pressure=0,K._controlsToReset.push(a),h.engine.keyPollOccurred&&(a=h.engine.whenKeyPressedEvents.map.get(a.name),null!=a&&0<a.length)))for(a._dispatchIndex=0;a._dispatchIndex<a.length;){try{a.listeners[a._dispatchIndex](!1,!0)}catch(b){sa.lastError=b}++a._dispatchIndex}}; +K.controlStateUpdated=function(a){for(var b=0,c=0,d=a.keys;c<d.length;){var e=d[c];++c;K._key[e]&&(b=1)}a.pressure=b;0<b&&!a.down?K.controlPressed(a,b):0==b&&a.down&&K.controlReleased(a)};K.onKeyDown=function(a){var b=a.keyCode;if(!(7E3<b)){if(!K._key[b]&&(K._key[b]=!0,b=K._keyInput.inputControlMap.h[b],null!=b))for(var c=0;c<b.length;){var d=b[c];++c;K.controlPressed(d,1)}if(0<h.engine.whenAnyKeyPressed.length)for(h.engine.whenAnyKeyPressed._dispatchIndex=0;h.engine.whenAnyKeyPressed._dispatchIndex< +h.engine.whenAnyKeyPressed.length;){try{h.engine.whenAnyKeyPressed.listeners[h.engine.whenAnyKeyPressed._dispatchIndex](a)}catch(e){sa.lastError=e}++h.engine.whenAnyKeyPressed._dispatchIndex}}};K.onKeyUp=function(a){var b=a.keyCode;if(!(7E3<b)){if(K._key[b]&&(K._key[b]=!1,b=K._keyInput.inputControlMap.h[b],null!=b))for(var c=0;c<b.length;){var d=b[c];++c;K.controlReleased(d)}if(0<h.engine.whenAnyKeyReleased.length)for(h.engine.whenAnyKeyReleased._dispatchIndex=0;h.engine.whenAnyKeyReleased._dispatchIndex< +h.engine.whenAnyKeyReleased.length;){try{h.engine.whenAnyKeyReleased.listeners[h.engine.whenAnyKeyReleased._dispatchIndex](a)}catch(e){sa.lastError=e}++h.engine.whenAnyKeyReleased._dispatchIndex}}};K.onMouseDown=function(a){K.mouseX=(h.stage.get_mouseX()-h.screenOffsetX)/h.screenScaleX;K.mouseY=(h.stage.get_mouseY()-h.screenOffsetY)/h.screenScaleY;K.mouseDown||(K.mouseDown=!0,K.mousePressed=!0)};K.onMouseUp=function(a){K.mouseX=(h.stage.get_mouseX()-h.screenOffsetX)/h.screenScaleX;K.mouseY=(h.stage.get_mouseY()- +h.screenOffsetY)/h.screenScaleY;K.mouseDown=!1;K.mouseReleased=!0};K.onRightMouseDown=function(a){K.rightMouseDown||(K.rightMouseDown=!0,K.rightMousePressed=!0)};K.onRightMouseUp=function(a){K.rightMouseDown=!1;K.rightMouseReleased=!0};K.onMiddleMouseDown=function(a){K.middleMouseDown||(K.middleMouseDown=!0,K.middleMousePressed=!0)};K.onMiddleMouseUp=function(a){K.middleMouseDown=!1;K.middleMouseReleased=!0};K.onMouseWheel=function(a){K.mouseWheel=!0;K.mouseWheelDelta=a.delta};K.onTouchBegin=function(a){if(0< +h.engine.whenMTStarted.length)for(h.engine.whenMTStarted._dispatchIndex=0;h.engine.whenMTStarted._dispatchIndex<h.engine.whenMTStarted.length;){try{h.engine.whenMTStarted.listeners[h.engine.whenMTStarted._dispatchIndex](a)}catch(b){sa.lastError=b}++h.engine.whenMTStarted._dispatchIndex}K.multiTouchPoints.h[null==a.touchPointID?"null":""+a.touchPointID]=a;K.numTouches++};K.onTouchMove=function(a){if(0<h.engine.whenMTDragged.length)for(h.engine.whenMTDragged._dispatchIndex=0;h.engine.whenMTDragged._dispatchIndex< +h.engine.whenMTDragged.length;){try{h.engine.whenMTDragged.listeners[h.engine.whenMTDragged._dispatchIndex](a)}catch(b){sa.lastError=b}++h.engine.whenMTDragged._dispatchIndex}K.multiTouchPoints.h[null==a.touchPointID?"null":""+a.touchPointID]=a};K.onTouchEnd=function(a){if(0<h.engine.whenMTEnded.length)for(h.engine.whenMTEnded._dispatchIndex=0;h.engine.whenMTEnded._dispatchIndex<h.engine.whenMTEnded.length;){try{h.engine.whenMTEnded.listeners[h.engine.whenMTEnded._dispatchIndex](a)}catch(c){sa.lastError= +c}++h.engine.whenMTEnded._dispatchIndex}a=null==a.touchPointID?"null":""+a.touchPointID;var b=K.multiTouchPoints;Object.prototype.hasOwnProperty.call(b.h,a)&&delete b.h[a];K.numTouches--};var al=function(a){this.pressure=0;this.name=a;this.keys=[]};k["com.stencyl.Control"]=al;al.__name__="com.stencyl.Control";al.prototype={name:null,keys:null,pressed:null,released:null,down:null,pressure:null,__class__:al};var xt=function(a,b){this.inputControlMap=a;this.getInputs=b};k["com.stencyl.InputMethod"]= +xt;xt.__name__="com.stencyl.InputMethod";xt.prototype={inputControlMap:null,getInputs:null,mapInputToControl:function(a,b){this.inputControlMap.exists(a)||this.inputControlMap.set(a,[]);for(var c=this.inputControlMap.get(a),d=0;d<c.length;){var e=c[d];++d;e!=b&&(F.remove(this.getInputs(e),a),K.controlStateUpdated(e))}-1==this.getInputs(b).indexOf(a)&&(this.getInputs(b).push(a),c.push(b),K.controlStateUpdated(b))},unmapInput:function(a){var b=this.inputControlMap.get(a);if(null!=b)for(var c=0;c<b.length;){var d= +b[c];++c;F.remove(this.getInputs(d),a);K.controlStateUpdated(d)}this.inputControlMap.remove(a)},addInputToControl:function(a,b){-1==this.getInputs(b).indexOf(a)&&(this.getInputs(b).push(a),K.controlStateUpdated(b),this.inputControlMap.exists(a)||this.inputControlMap.set(a,[]),this.inputControlMap.get(a).push(b))},removeInputFromControl:function(a,b){if(-1!=this.getInputs(b).indexOf(a)){F.remove(this.getInputs(b),a);K.controlStateUpdated(b);var c=this.inputControlMap.get(a);F.remove(c,b);0==c.length&& +this.inputControlMap.remove(a)}},getInputsForControl:function(a){return null!=a?this.getInputs(a):null},removeAllInputsFromControl:function(a){for(var b=this.getInputs(a);0<b.length;){var c=b.pop(),d=this.inputControlMap.get(c);F.remove(d,a);0==d.length&&this.inputControlMap.remove(c)}K.controlStateUpdated(a)},__class__:xt};var Ka=function(){};k["com.stencyl.Key"]=Ka;Ka.__name__="com.stencyl.Key";Ka.nameOfKey=function(a){if(97<=a&&122>=a)return String.fromCodePoint(a);if(112<=a&&126>=a)return"F"+ +n.string(a-111);if(96<=a&&105>=a)return"NUMPAD "+n.string(a-96);switch(a){case 8:return"BACKSPACE";case 9:return"TAB";case 13:return"ENTER";case 15:return"COMMAND";case 16:return"SHIFT";case 17:return"CONTROL";case 20:return"CAPS LOCK";case 27:return"ESCAPE";case 32:return"SPACE";case 33:return"PAGE UP";case 34:return"PAGE DOWN";case 35:return"END";case 36:return"HOME";case 37:return"LEFT";case 38:return"UP";case 39:return"RIGHT";case 40:return"DOWN";case 45:return"INSERT";case 46:return"DELETE"; +case 106:return"NUMPAD MULTIPLY";case 107:return"NUMPAD ADD";case 108:return"NUMPAD ENTER";case 109:return"NUMPAD SUBTRACT";case 110:return"NUMPAD DECIMAL";case 111:return"NUMPAD DIVIDE";default:return String.fromCodePoint(a)}};Ka.keyFromName=function(a){return Ka.keyboardNameMap.h[a]};var oa=function(a,b){null==b&&(b=0);null==a&&(a=0);this.x=a;this.y=b};k["openfl.geom.Point"]=oa;oa.__name__="openfl.geom.Point";oa.distance=function(a,b){var c=a.x-b.x;a=a.y-b.y;return Math.sqrt(c*c+a*a)};oa.interpolate= +function(a,b,c){return new oa(b.x+c*(a.x-b.x),b.y+c*(a.y-b.y))};oa.polar=function(a,b){return new oa(a*Math.cos(b),a*Math.sin(b))};oa.prototype={x:null,y:null,add:function(a){return new oa(a.x+this.x,a.y+this.y)},clone:function(){return new oa(this.x,this.y)},copyFrom:function(a){this.x=a.x;this.y=a.y},equals:function(a){return null!=a&&a.x==this.x?a.y==this.y:!1},normalize:function(a){if(0!=this.x||0!=this.y)a/=Math.sqrt(this.x*this.x+this.y*this.y),this.x*=a,this.y*=a},offset:function(a,b){this.x+= +a;this.y+=b},setTo:function(a,b){this.x=a;this.y=b},subtract:function(a){return new oa(this.x-a.x,this.y-a.y)},toString:function(){return"(x="+this.x+", y="+this.y+")"},__toLimeVector2:function(){null==oa.__limeVector2&&(oa.__limeVector2=new Td);var a=oa.__limeVector2;a.x=this.x;a.y=this.y;return oa.__limeVector2},get_length:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},__class__:oa,__properties__:{get_length:"get_length"}};var fa=function(a,b,c,d){null==d&&(d=0);null==c&&(c=0);null== +b&&(b=0);null==a&&(a=0);this.x=a;this.y=b;this.width=c;this.height=d};k["openfl.geom.Rectangle"]=fa;fa.__name__="openfl.geom.Rectangle";fa.prototype={height:null,width:null,x:null,y:null,clone:function(){return new fa(this.x,this.y,this.width,this.height)},contains:function(a,b){return a>=this.x&&b>=this.y&&a<this.get_right()?b<this.get_bottom():!1},containsPoint:function(a){return this.contains(a.x,a.y)},containsRect:function(a){return 0>=a.width||0>=a.height?a.x>this.x&&a.y>this.y&&a.get_right()< +this.get_right()?a.get_bottom()<this.get_bottom():!1:a.x>=this.x&&a.y>=this.y&&a.get_right()<=this.get_right()?a.get_bottom()<=this.get_bottom():!1},copyFrom:function(a){this.x=a.x;this.y=a.y;this.width=a.width;this.height=a.height},equals:function(a){return a==this?!0:null!=a&&this.x==a.x&&this.y==a.y&&this.width==a.width?this.height==a.height:!1},inflate:function(a,b){this.x-=a;this.width+=2*a;this.y-=b;this.height+=2*b},inflatePoint:function(a){this.inflate(a.x,a.y)},intersection:function(a){var b= +this.x<a.x?a.x:this.x,c=this.get_right()>a.get_right()?a.get_right():this.get_right();if(c<=b)return new fa;var d=this.y<a.y?a.y:this.y;a=this.get_bottom()>a.get_bottom()?a.get_bottom():this.get_bottom();return a<=d?new fa:new fa(b,d,c-b,a-d)},intersects:function(a){var b=this.x<a.x?a.x:this.x;if((this.get_right()>a.get_right()?a.get_right():this.get_right())<=b)return!1;b=this.y<a.y?a.y:this.y;return(this.get_bottom()>a.get_bottom()?a.get_bottom():this.get_bottom())>b},isEmpty:function(){return 0>= +this.width?!0:0>=this.height},offset:function(a,b){this.x+=a;this.y+=b},offsetPoint:function(a){this.x+=a.x;this.y+=a.y},setEmpty:function(){this.x=this.y=this.width=this.height=0},setTo:function(a,b,c,d){this.x=a;this.y=b;this.width=c;this.height=d},toString:function(){return"(x="+this.x+", y="+this.y+", width="+this.width+", height="+this.height+")"},union:function(a){if(0==this.width||0==this.height)return a.clone();if(0==a.width||0==a.height)return this.clone();var b=this.x>a.x?a.x:this.x,c=this.get_right()< +a.get_right()?a.get_right():this.get_right(),d=this.y>a.y?a.y:this.y;a=this.get_bottom()<a.get_bottom()?a.get_bottom():this.get_bottom();return new fa(b,d,c-b,a-d)},__contract:function(a,b,c,d){if(0!=this.width||0!=this.height){var e=0,g=0,f=0,l=0;this.x<a&&(e=a-this.x);this.y<b&&(g=b-this.y);this.get_right()>a+c&&(f=a+c-this.get_right());this.get_bottom()>b+d&&(l=b+d-this.get_bottom());this.x+=e;this.y+=g;this.width+=f-e;this.height+=l-g}},__expand:function(a,b,c,d){if(0==this.width&&0==this.height)this.x= +a,this.y=b,this.width=c,this.height=d;else{var e=this.get_right(),g=this.get_bottom();this.x>a&&(this.x=a,this.width=e-a);this.y>b&&(this.y=b,this.height=g-b);e<a+c&&(this.width=a+c-this.x);g<b+d&&(this.height=b+d-this.y)}},__toLimeRectangle:function(){null==fa.__limeRectangle&&(fa.__limeRectangle=new Ad);fa.__limeRectangle.setTo(this.x,this.y,this.width,this.height);return fa.__limeRectangle},__transform:function(a,b){var c=b.a*this.x+b.c*this.y,d=c,e=b.b*this.x+b.d*this.y,g=e,f=b.a*(this.x+this.width)+ +b.c*this.y,l=b.b*(this.x+this.width)+b.d*this.y;f<c&&(c=f);l<e&&(e=l);f>d&&(d=f);l>g&&(g=l);f=b.a*(this.x+this.width)+b.c*(this.y+this.height);l=b.b*(this.x+this.width)+b.d*(this.y+this.height);f<c&&(c=f);l<e&&(e=l);f>d&&(d=f);l>g&&(g=l);f=b.a*this.x+b.c*(this.y+this.height);l=b.b*this.x+b.d*(this.y+this.height);f<c&&(c=f);l<e&&(e=l);f>d&&(d=f);l>g&&(g=l);a.setTo(c+b.tx,e+b.ty,d-c,g-e)},get_bottom:function(){return this.y+this.height},set_bottom:function(a){this.height=a-this.y;return a},get_bottomRight:function(){return new oa(this.x+ +this.width,this.y+this.height)},set_bottomRight:function(a){this.width=a.x-this.x;this.height=a.y-this.y;return a.clone()},get_left:function(){return this.x},set_left:function(a){this.width-=a-this.x;return this.x=a},get_right:function(){return this.x+this.width},set_right:function(a){this.width=a-this.x;return a},get_size:function(){return new oa(this.width,this.height)},set_size:function(a){this.width=a.x;this.height=a.y;return a.clone()},get_top:function(){return this.y},set_top:function(a){this.height-= +a-this.y;return this.y=a},get_topLeft:function(){return new oa(this.x,this.y)},set_topLeft:function(a){this.x=a.x;this.y=a.y;return a.clone()},__class__:fa,__properties__:{set_topLeft:"set_topLeft",get_topLeft:"get_topLeft",set_top:"set_top",get_top:"get_top",set_size:"set_size",get_size:"get_size",set_right:"set_right",get_right:"get_right",set_left:"set_left",get_left:"get_left",set_bottomRight:"set_bottomRight",get_bottomRight:"get_bottomRight",set_bottom:"set_bottom",get_bottom:"get_bottom"}}; +var f=function(){this.checkProperties=this.scriptInit=!1;this.nameMap=new V;this.propertyChangeEvents=new V;this.equalityPairs=new ac;this.attributeTweens=new V};k["com.stencyl.behavior.Script"]=f;f.__name__="com.stencyl.behavior.Script";f.resetStatics=function(){f.engine=null;f.lastCreatedActor=null;f.lastCreatedJoint=null;f.lastCreatedRegion=null;f.lastCreatedTerrainRegion=null;f.mpx=0;f.mpy=0;f.mrx=0;f.mry=0;f.imageApiAutoscale=!0};f.sameAs=function(a,b){return a==b};f.sameAsAny=function(a,b,c){return a!= +b?a==c:!0};f.asBoolean=function(a){return 1==a?!0:"true"==a?!0:!1};f.strCompare=function(a,b,c){return 0>c?a<b:a>b};f.strCompareBefore=function(a,b){return a<b};f.strCompareAfter=function(a,b){return a>b};f.asNumber=function(a){return null==a?0:"number"==typeof a?O.__cast(a,gu):"number"==typeof a&&(a|0)===a?O.__cast(a,ui):"boolean"==typeof a?O.__cast(a,hu)?1:0:"string"==typeof a?parseFloat(a):parseFloat(n.string(a))};f.hasValue=function(a){return f.isPrimitive(a)?!0:"string"==typeof a?""!=O.__cast(a, +String):null!=a};f.isPrimitive=function(a){return"boolean"==typeof a||"number"==typeof a||"number"==typeof a&&(a|0)===a?!0:!1};f.getDefaultValue=function(a){return"boolean"==typeof a?!1:"number"==typeof a||"number"==typeof a&&(a|0)===a?0:"string"==typeof a?"":null};f.getGroupByName=function(a){return f.engine.getGroupByName(a)};f.getLastCreatedRegion=function(){return f.lastCreatedRegion};f.getAllRegions=function(){for(var a=[],b=f.engine.regions.iterator();b.hasNext();){var c=b.next();null!=c&&a.push(c)}return a}; +f.getRegion=function(a){return f.engine.getRegion(a)};f.removeRegion=function(a){f.engine.removeRegion(a)};f.createBoxRegion=function(a,b,c,d){return f.lastCreatedRegion=f.engine.createBoxRegion(a,b,c,d)};f.createCircularRegion=function(a,b,c){return f.lastCreatedRegion=f.engine.createCircularRegion(a,b,c)};f.isInRegion=function(a,b){return f.engine.isInRegion(a,b)};f.getActorsInRegion=function(a){var b=[];for(a=a.getContainedActors().iterator();a.hasNext();){var c=a.next();b.push(f.engine.getActor(c))}return b}; +f.sceneHasBehavior=function(a){return f.engine.behaviors.hasBehavior(a)};f.enableBehaviorForScene=function(a){f.engine.behaviors.enableBehavior(a)};f.disableBehaviorForScene=function(a){f.engine.behaviors.disableBehavior(a)};f.isBehaviorEnabledForScene=function(a){return f.engine.behaviors.isBehaviorEnabled(a)};f.getValueForScene=function(a,b){return f.engine.getValue(a,b)};f.setValueForScene=function(a,b,c){f.engine.setValue(a,b,c)};f.shoutToScene=function(a,b){return f.engine.shout(a,b)};f.sayToScene= +function(a,b,c){return f.engine.say(a,b,c)};f.setGameAttribute=function(a,b){f.engine.gameAttributes.h[a]=b};f.getGameAttribute=function(a){return f.engine.getGameAttribute(a)};f.setSavable=function(a,b){f.engine.savableAttributes.h[a]=b};f.runLater=function(a,b,c){a=new bl(b,a|0,!1,c);f.engine.addTask(a);return a};f.runPeriodically=function(a,b,c){a=new bl(b,a|0,!0,c);f.engine.addTask(a);return a};f.getStepSize=function(){return h.STEP_SIZE};f.getScene=function(){return f.engine.scene};f.getCurrentScene= +function(){return f.getScene().ID};f.getIDForScene=function(a){for(var b=va.get().scenes.iterator();b.hasNext();){var c=b.next();if(a==c.name)return c.ID}return-1};f.getCurrentSceneName=function(){return f.getScene().name};f.getSceneWidth=function(){return f.getScene().sceneWidth};f.getSceneHeight=function(){return f.getScene().sceneHeight};f.getTileWidth=function(){return f.getScene().tileWidth};f.getTileHeight=function(){return f.getScene().tileHeight};f.reloadCurrentScene=function(a,b){f.engine.switchScene(f.getCurrentScene(), +a,b)};f.switchScene=function(a,b,c){f.engine.switchScene(a,b,c)};f.createPixelizeOut=function(a,b){return new zj(a,1,15)};f.createPixelizeIn=function(a,b){return new zj(a,15,1)};f.createBubblesOut=function(a,b){null==b&&(b=-16777216);return new Aj(pb.OUT,a,50,b)};f.createBubblesIn=function(a,b){null==b&&(b=-16777216);return new Aj(pb.IN,a,50,b)};f.createBlindsOut=function(a,b){null==b&&(b=-16777216);return new Bj(pb.OUT,a,10,b)};f.createBlindsIn=function(a,b){null==b&&(b=-16777216);return new Bj(pb.IN, +a,10,b)};f.createRectangleOut=function(a,b){null==b&&(b=-16777216);return new Cj(pb.OUT,a,b)};f.createRectangleIn=function(a,b){null==b&&(b=-16777216);return new Cj(pb.IN,a,b)};f.createSlideTransition=function(a,b){return new Ne(f.engine.master,f.engine.colorLayer,a,b)};f.createSlideUpTransition=function(a){return f.createSlideTransition(a,Ne.SLIDE_UP)};f.createSlideDownTransition=function(a){return f.createSlideTransition(a,Ne.SLIDE_DOWN)};f.createSlideLeftTransition=function(a){return f.createSlideTransition(a, +Ne.SLIDE_LEFT)};f.createSlideRightTransition=function(a){return f.createSlideTransition(a,Ne.SLIDE_RIGHT)};f.createCrossfadeTransition=function(a){return new cl(f.engine.root,a)};f.createFadeOut=function(a,b){null==b&&(b=-16777216);return new dl(a,b)};f.createFadeIn=function(a,b){null==b&&(b=-16777216);return new el(a,b)};f.createCircleOut=function(a,b){null==b&&(b=-16777216);return new Dj(pb.OUT,a,b)};f.createCircleIn=function(a,b){null==b&&(b=-16777216);return new Dj(pb.IN,a,b)};f.setBlendModeForLayer= +function(a,b){a.set_blendMode(b);a instanceof Ac&&O.__cast(a,Ac).tiles.set_blendMode(b)};f.showTileLayer=function(a){a.set_alpha(1)};f.hideTileLayer=function(a){a.set_alpha(0)};f.fadeTileLayerTo=function(a,b,c,d){null==a.alphaTween&&(a.alphaTween=(new tc).doOnUpdate(function(){a.set_alpha(a.alphaTween.value)}));a.alphaTween.tween(a.get_alpha(),b,d,1E3*c|0)};f.getTileLayerOpacity=function(a){return 100*a.get_alpha()};f.setDrawingLayer=function(a){a instanceof Ac&&(h.engine.g.graphics=a.overlay.get_graphics())}; +f.setDrawingLayerToActorLayer=function(a){null!=a&&(h.engine.g.graphics=a.layer.overlay.get_graphics())};f.setDrawingLayerToSceneLayer=function(){h.engine.g.graphics=h.engine.transitionLayer.get_graphics()};f.getScreenX=function(){return h.cameraX/h.SCALE};f.getScreenY=function(){return h.cameraY/h.SCALE};f.getScreenXCenter=function(){return h.cameraX/h.SCALE+h.screenWidth/2};f.getScreenYCenter=function(){return h.cameraY/h.SCALE+h.screenHeight/2};f.getCamera=function(){return f.engine.camera};f.isCtrlDown= +function(){return K.check("iCTRL")?!0:K.check("iCOMMAND")};f.isShiftDown=function(){return K.check("iSHIFT")};f.simulateKeyPress=function(a){K.simulateKeyPress(a)};f.simulateKeyRelease=function(a){K.simulateKeyRelease(a)};f.isKeyDown=function(a){return K.check(a)};f.isKeyPressed=function(a){return K.pressed(a)};f.isKeyReleased=function(a){return K.released(a)};f.isMouseDown=function(){return K.mouseDown};f.isMousePressed=function(){return K.mousePressed};f.isMouseReleased=function(){return K.mouseReleased}; +f.getMouseX=function(){return K.mouseX/h.SCALE};f.getMouseY=function(){return K.mouseY/h.SCALE};f.getMouseWorldX=function(){return K.mouseX/h.SCALE+h.cameraX};f.getMouseWorldY=function(){return K.mouseY/h.SCALE+h.cameraY};f.getMousePressedX=function(){return f.mpx};f.getMousePressedY=function(){return f.mpy};f.getMouseReleasedX=function(){return f.mrx};f.getMouseReleasedY=function(){return f.mry};f.showCursor=function(){je.show()};f.hideCursor=function(){je.hide()};f.charFromCharCode=function(a){return 32> +a||126<a&&160>a?"":String.fromCodePoint(a)};f.getLastCreatedActor=function(){return f.lastCreatedActor};f.createActor=function(a,b,c,d){a=f.engine.createActorOfType(a,b,c,d);return f.lastCreatedActor=a};f.createRecycledActor=function(a,b,c,d){a=f.engine.getRecycledActorOfType(a,b,c,d);return f.lastCreatedActor=a};f.createRecycledActorOnLayer=function(a,b,c,d){a=f.engine.getRecycledActorOfTypeOnLayer(a,b,c,d.ID);return f.lastCreatedActor=a};f.recycleActor=function(a){f.engine.recycleActor(a)};f.createActorInNextScene= +function(a,b,c,d){f.engine.createActorInNextScene(a,b,c,d)};f.getActorTypeByName=function(a){return ic.get().resourceMap.get(a)};f.getActorType=function(a){return ic.get().resources.get(a)};f.getAllActorTypes=function(){return ic.get().getAllActorTypes()};f.getActorsOfType=function(a){return f.engine.getActorsOfType(a)};f.getActor=function(a){return f.engine.getActor(a)};f.getActorGroup=function(a){return f.engine.getGroup(a)};f.setGravity=function(a,b){f.engine.gravityX=a;f.engine.gravityY=b;null!= +f.engine.world&&f.engine.world.setGravity(new z(a,b))};f.getGravity=function(){return null==f.engine.world?(f.dummyVec.x=f.engine.gravityX,f.dummyVec.y=f.engine.gravityY,f.dummyVec):f.engine.world.getGravity()};f.enableContinuousCollisions=function(){bc.m_continuousPhysics=!0};f.toPhysicalUnits=function(a){return h.toPhysicalUnits(a)};f.toPixelUnits=function(a){return h.toPixelUnits(a)};f.makeActorNotPassThroughTerrain=function(a){h.NO_PHYSICS?null!=a&&1==a.physicsMode&&(a.continuousCollision=!0): +(bc.m_continuousPhysics=!0,null!=a&&0==a.physicsMode&&a.body.setBullet(!0))};f.makeActorPassThroughTerrain=function(a){if(h.NO_PHYSICS)null!=a&&1==a.physicsMode&&(a.continuousCollision=!1);else if(null!=a&&0==a.physicsMode){a.body.setBullet(!1);a=!1;for(var b=f.engine.allActors.iterator();b.hasNext();){var c=b.next();if(null!=c.body&&c.body.isBullet()){a=!0;break}}a||(bc.m_continuousPhysics=!1)}};f.mute=function(){};f.unmute=function(){};f.getSound=function(a){return ic.get().resources.get(a)};f.getSoundByName= +function(a){return ic.get().resourceMap.get(a)};f.playSound=function(a){if(null!=a)for(var b=0;32>b;){var c=b++;c=f.engine.channels[c];if(null==c.currentSound){c.playSound(a);c.setVolume(1);c.setPanning(0);break}}};f.loopSound=function(a){if(null!=a)for(var b=0;32>b;){var c=b++;c=f.engine.channels[c];if(null==c.currentSound){c.loopSound(a);c.setVolume(1);c.setPanning(0);break}}};f.playSoundOnChannel=function(a,b){b=f.engine.channels[b];b.playSound(a);b.setVolume(1);b.setPanning(0)};f.loopSoundOnChannel= +function(a,b){b=f.engine.channels[b];b.loopSound(a);b.setVolume(1);b.setPanning(0)};f.stopSoundOnChannel=function(a){f.engine.channels[a].stopSound()};f.pauseSoundOnChannel=function(a){f.engine.channels[a].setPause(!0)};f.resumeSoundOnChannel=function(a){f.engine.channels[a].setPause(!1)};f.setVolumeForChannel=function(a,b){f.engine.channels[b].setVolume(a)};f.setPanningForChannel=function(a,b){f.engine.channels[b].setPanning(a)};f.stopAllSounds=function(){for(var a=0;32>a;){var b=a++;f.engine.channels[b].stopSound()}}; +f.setVolumeForAllSounds=function(a){Ub.masterVolume=a;for(a=0;32>a;){var b=a++;b=f.engine.channels[b];b.setVolume(b.volume)}};f.fadeInSoundOnChannel=function(a,b){f.engine.channels[a].fadeInSound(b)};f.fadeOutSoundOnChannel=function(a,b){f.engine.channels[a].fadeOutSound(b)};f.fadeSoundOnChannel=function(a,b,c){f.engine.channels[a].fadeSound(b,c/100)};f.fadeInForAllSounds=function(a){for(var b=0;32>b;){var c=b++;f.engine.channels[c].fadeInSound(a)}};f.fadeOutForAllSounds=function(a){for(var b=0;32> +b;){var c=b++;f.engine.channels[c].fadeOutSound(a)}};f.fadeForAllSounds=function(a,b){for(var c=0;32>c;){var d=c++;f.engine.channels[d].fadeSound(a,b/100)}};f.getPositionForChannel=function(a){a=f.engine.channels[a];return null!=a&&null!=a.currentSound?a.paused?a.position:a.currentSound.get_position():0};f.setPositionForChannel=function(a,b){a=f.engine.channels[a];null!=a&&null!=a.currentSound&&(a.paused?a.position=b:a.looping?a.loopSound(a.currentClip,b):a.playSound(a.currentClip,b))};f.getSoundLengthForChannel= +function(a){a=f.engine.channels[a];return null!=a&&null!=a.currentSource?a.currentSource.get_length():0};f.getSoundLength=function(a){return null!=a&&null!=a.src?a.src.get_length():0};f.setColorBackground=function(a,b){null==b&&(b=-2);f.engine.colorLayer.get_graphics().clear();a!=If.TRANSPARENT&&(b==If.TRANSPARENT?f.engine.setColorBackground(new If(a)):f.engine.setColorBackground(new vi(a,b)))};f.setScrollSpeedForBackground=function(a,b,c){if(null==a){a=0;for(var d=h.engine.backgroundLayers;a<d.length;){var e= +d[a];++a;e.setScrollSpeed(b,c)}}else a instanceof Sd&&O.__cast(a,Sd).setScrollSpeed(b,c)};f.setScrollFactorForLayer=function(a,b,c){a instanceof Sd?O.__cast(a,Sd).setScrollFactor(b,c):a instanceof Ac&&(a.scrollFactorX=b,a.scrollFactorY=c)};f.changeBackground=function(a,b){b=ic.get().resourceMap.get(b);null!=b&&a instanceof Sd&&O.__cast(a,Sd).reload(b.ID)};f.changeBackgroundImage=function(a,b){null!=b&&a instanceof Sd&&O.__cast(a,Sd).setImage(b)};f.addBackground=function(a,b,c){a=ic.get().resourceMap.get(a); +b=new Sd(f.engine.getNextLayerID(),b,c,0,0,1,10,a.ID,!1);b.load();f.engine.insertLayer(b,c)};f.addBackgroundFromImage=function(a,b,c,d){c=new Sd(f.engine.getNextLayerID(),c,d,0,0,1,10,-1,!1);c.loadFromImg(a,b);f.engine.insertLayer(c,d)};f.addTileLayer=function(a,b){var c=f.engine.scene.sceneWidth/f.engine.scene.tileWidth|0,d=f.engine.scene.sceneHeight/f.engine.scene.tileHeight|0,e=f.engine.getNextLayerID();c=new ie(e,f.engine.scene,c,d);c.set_name(a);a=new Ac(e,a,b,1,1,1,10,c);f.engine.insertLayer(a, +b)};f.newImage=function(a,b){return f.imageApiAutoscale?new Ja(a*h.SCALE|0,b*h.SCALE|0,!0,0):new Ja(a,b,!0,0)};f.captureScreenshot=function(){var a=new Ja(f.getStageWidth()|0,f.getStageHeight()|0);a.draw(Da.get_current().stage,null,null,null,null,ja.antialias);return a};f.getImageForActor=function(a){return a.getCurrentImage()};f.getExternalImage=function(a){return qa.getBitmapData("assets/data/"+a,!1)};f.loadImageFromURL=function(a,b){var c=new Ej;c.contentLoaderInfo.addEventListener("complete", +function(a){a=O.__cast(O.__cast(a.currentTarget,Jf).content,Vb).get_bitmapData();b(a)});c.load(new Pg(a))};f.getSubImage=function(a,b,c,d,e){f.imageApiAutoscale&&(b=b*h.SCALE|0,c=c*h.SCALE|0,d=d*h.SCALE|0,e=e*h.SCALE|0);if(null!=a&&0<=b&&0<=c&&0<d&&0<e&&b<a.width&&c<a.height){var g=new Ja(d,e);f.dummyRect.x=b;f.dummyRect.y=c;f.dummyRect.width=d;f.dummyRect.height=e;f.dummyPoint.x=0;f.dummyPoint.y=0;g.copyPixels(a,f.dummyRect,f.dummyPoint);return g}return new Ja(1,1)};f.setOrderForImage=function(a, +b){null!=a&&null!=a.parent&&0<=b&&b<a.parent.get_numChildren()&&a.parent.setChildIndex(a,b)};f.getOrderForImage=function(a){return null!=a&&null!=a.parent?a.parent.getChildIndex(a):-1};f.bringImageBack=function(a){null!=a&&null!=a.parent&&f.setOrderForImage(a,a.parent.getChildIndex(a)-1)};f.bringImageForward=function(a){null!=a&&null!=a.parent&&f.setOrderForImage(a,a.parent.getChildIndex(a)+1)};f.bringImageToBack=function(a){null!=a&&null!=a.parent&&f.setOrderForImage(a,0)};f.bringImageToFront=function(a){null!= +a&&null!=a.parent&&f.setOrderForImage(a,a.parent.get_numChildren()-1)};f.attachImageToActor=function(a,b,c,d,e){null==e&&(e=1);null!=a&&(null!=a.parent&&f.removeImage(a),2==e?(b.addChild(a),b.setChildIndex(a,0)):b.addChild(a),a.cacheParentAnchor=b.cacheAnchor,a.set_imgX(c),a.set_imgY(d),a.set_smoothing(ja.antialias),b.attachedImages.push(a))};f.attachImageToHUD=function(a,b,c){null!=a&&(null!=a.parent&&f.removeImage(a),f.engine.hudLayer.addChild(a),f.engine.hudLayer.attachedImages.push(a),a.set_imgX(b), +a.set_imgY(c),a.set_smoothing(ja.antialias))};f.attachImageToLayer=function(a,b,c,d,e){null==e&&(e=1);null!=a&&(null!=a.parent&&f.removeImage(a),2==e?b.addChildAt(a,0):b.addChild(a),-1==b.attachedImages.indexOf(a)&&b.attachedImages.push(a),a.set_imgX(c),a.set_imgY(d),a.set_smoothing(ja.antialias))};f.removeImage=function(a){null!=a&&null!=a.parent&&(a.parent instanceof tb?F.remove(O.__cast(a.parent,tb).attachedImages,a):a.parent instanceof Ac&&F.remove(O.__cast(a.parent,Ac).attachedImages,a),a.parent.removeChild(a))}; +f.resizeImage=function(a,b,c,d){null==d&&(d=!0);null==c&&(c=1);null==b&&(b=1);var e=new Aa;e.scale(b,c);b=new Ja(a.width*b|0,a.height*c|0,!0,0);b.draw(a,e,null,null,null,d);return b};f.drawImageOnImage=function(a,b,c,d,e){f.imageApiAutoscale&&(c=c*h.SCALE|0,d=d*h.SCALE|0);if(null!=a&&null!=b)if(f.dummyPoint.x=c,f.dummyPoint.y=d,10==e)b.copyPixels(a,a.rect,f.dummyPoint,null,null,!0);else{var g=new Aa;g.identity();g.translate(c,d);b.draw(a,g,null,e)}};f.drawTextOnImage=function(a,b,c,d,e){f.imageApiAutoscale&& +(c=c*h.SCALE|0,d=d*h.SCALE|0);null!=a&&e.font.renderToImg(a,b,0,1,c,d,e.fontScale,0,!1)};f.clearImagePartially=function(a,b,c,d,e){f.imageApiAutoscale&&(b=b*h.SCALE|0,c=c*h.SCALE|0,d=d*h.SCALE|0,e=e*h.SCALE|0);null!=a&&(f.dummyRect.x=b,f.dummyRect.y=c,f.dummyRect.width=d,f.dummyRect.height=e,a.fillRect(f.dummyRect,0))};f.clearImage=function(a){null!=a&&a.fillRect(a.rect,0)};f.clearImageUsingMask=function(a,b,c,d){f.imageApiAutoscale&&(c=c*h.SCALE|0,d=d*h.SCALE|0);var e=b.width,g=b.height,x=0,l=0; +0>c?(e=c>a.width-e?a.width:e+c,x-=c,c=0):c>a.width-e&&(e-=c-(a.width-e),c=a.width-e);0>d?(g=d>a.height-g?a.height:g+d,l-=d,d=0):d>a.height-g&&(g-=d-(a.height-g),d=a.height-g);if(!(0>=e||0>=g)){x=new fa(x,l,e,g);b=b.getPixels(x);c=new fa(c,d,e,g);d=a.getPixels(c);x=0;for(e*=g;x<e;){g=x++;b.position=4*g;d.position=4*g;l=b.readUnsignedByte();var t=d.readUnsignedByte();l=(256-l)*t>>8;d.position=4*g;d.writeByte(l)}b.position=0;d.position=0;a.setPixels(c,d)}};f.retainImageUsingMask=function(a,b,c,d){f.imageApiAutoscale&& +(c=c*h.SCALE|0,d=d*h.SCALE|0);f.dummyPoint.x=c;f.dummyPoint.y=d;a.copyChannel(b,b.rect,f.dummyPoint,8,8)};f.fillImage=function(a,b){null!=a&&a.fillRect(a.rect,-16777216|b)};f.filterImage=function(a,b){null!=a&&(f.dummyPoint.x=0,f.dummyPoint.y=0,a.applyFilter(a,a.rect,f.dummyPoint,b))};f.imageSetPixel=function(a,b,c,d){if(null!=a)if(f.imageApiAutoscale&&1!=h.SCALE){var e=(b+1)*h.SCALE|0,g=(c+1)*h.SCALE|0;b=b*h.SCALE|0;for(c=c*h.SCALE|0;b<e;)for(var x=b++,l=c,t=g;l<t;){var m=l++;a.setPixel32(x,m,d| +-16777216)}}else a.setPixel32(b,c,d|-16777216)};f.imageGetPixel=function(a,b,c){return null!=a?(f.imageApiAutoscale&&(b=b*h.SCALE|0,c=c*h.SCALE|0),a.getPixel(b,c)):0};f.imageSwapColor=function(a,b,c){null!=a&&(f.dummyPoint.x=0,f.dummyPoint.y=0,a.threshold(a,a.rect,f.dummyPoint,"==",-16777216|b,-16777216|c,-1,!0))};f.flipImageHorizontal=function(a){var b=new Aa;b.scale(-1,1);b.translate(a.width,0);var c=new Ja(a.width,a.height,!0,0);c.draw(a,b);f.dummyPoint.x=0;f.dummyPoint.y=0;a.copyPixels(c,c.rect, +f.dummyPoint)};f.flipImageVertical=function(a){var b=new Aa;b.scale(1,-1);b.translate(0,a.height);var c=new Ja(a.width,a.height,!0,0);c.draw(a,b);f.dummyPoint.x=0;f.dummyPoint.y=0;a.copyPixels(c,c.rect,f.dummyPoint)};f.setXForImage=function(a,b){null!=a&&a.set_imgX(b)};f.setYForImage=function(a,b){null!=a&&a.set_imgY(b)};f.fadeImageTo=function(a,b,c,d){null==c&&(c=1);a.get_tweenProps().alpha.tween(a.get_alpha(),b,d,1E3*c|0)};f.setOriginForImage=function(a,b,c){a.setOrigin(b,c)};f.growImageTo=function(a, +b,c,d,e){null==d&&(d=1);null==c&&(c=1);null==b&&(b=1);a.get_tweenProps().scaleXY.tween(a.get_scaleX(),b,a.get_scaleY(),c,e,1E3*d|0)};f.spinImageTo=function(a,b,c,d){null==c&&(c=1);a.get_tweenProps().angle.tween(a.get_rotation(),b,d,1E3*c|0)};f.moveImageTo=function(a,b,c,d,e){null==d&&(d=1);a.get_tweenProps().xy.tween(a.get_imgX(),b,a.get_imgY(),c,e,1E3*d|0)};f.spinImageBy=function(a,b,c,d){null==c&&(c=1);f.spinImageTo(a,a.get_rotation()+b,c,d)};f.moveImageBy=function(a,b,c,d,e){null==d&&(d=1);f.moveImageTo(a, +a.get_imgX()+b,a.get_imgY()+c,d,e)};f.setFilterForImage=function(a,b){null!=a&&a.set_filters(a.get_filters().concat([b]))};f.clearFiltersForImage=function(a){null!=a&&a.set_filters([])};f.imageToText=function(a){var b=a.getPixels(a.rect);return a.width+";"+a.height+";"+f.toBase64(cb.ofData(yb.toArrayBuffer(b)))};f.imageFromText=function(a){var b=a.split(";");a=n.parseInt(b[0]);var c=n.parseInt(b[1]),d=f.fromBase64(b[2]);b=new kc(0);for(var e=0,g=d.length;e<g;){var x=e++;b.writeByte(d.b[x])}b.position= +0;b.__endian=0;a=new Ja(a,c,!0,0);a.setPixels(a.rect,b);return a};f.toBase64=function(a){var b=cb.ofString("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/");a=(new Fj(b)).encodeBytes(a).toString();b=a.length%4;1<b&&(a+="=");2==b&&(a+="=");return a};f.fromBase64=function(a){var b=-1;"="==a.charAt(a.length-2)?b=2:"="==a.charAt(a.length-1)&&(b=1);-1!=b&&(a=F.substr(a,0,a.length-b));b=cb.ofString("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/");return(new Fj(b)).decodeBytes(cb.ofString(a))}; +f.startShakingScreen=function(a,b){null==b&&(b=.5);null==a&&(a=.05);f.engine.shakeScreen(a,b)};f.stopShakingScreen=function(){f.engine.stopShakingScreen()};f.getTopLayer=function(){return f.engine.getTopLayer()};f.getBottomLayer=function(){return f.engine.getBottomLayer()};f.getMiddleLayer=function(){return f.engine.getMiddleLayer()};f.getTileLayerAt=function(a){return null!=a&&a instanceof Ac?O.__cast(a,Ac).tiles:null};f.getTilesetIDByName=function(a){a=ic.get().resourceMap.get(a);return a instanceof +qf?a.ID:-1};f.setTileAt=function(a,b,c,d,e){if(null!=c&&c instanceof Ac){f.removeTileAt(a,b,c);var g=O.__cast(c,Ac).tiles;d=ic.get().resources.get(d).tiles[e];g.setTileAt(a,b,d);null==d||null==d.pixels||S.contains(f.engine.animatedTiles,d)||1<d.durations.length&&f.engine.animatedTiles.push(d);if(null!=d&&-1!=d.collisionID){d=va.get().shapes.h[d.collisionID];g=d.getVertices();d=d.getVertexCount();g=Bb.asArray(g,d);d=0;for(e=g.getVertices();d<e.length;){var x=e[d];++d;x.x*=f.engine.scene.tileWidth/ +32;x.y*=f.engine.scene.tileHeight/32}d=b*f.engine.scene.tileWidth;e=a*f.engine.scene.tileHeight;h.NO_PHYSICS||null==g?null!=g&&f.getTileLayerAt(c).grid.setTile(b,a):f.createDynamicTile(g,d,e,c.ID,f.engine.scene.tileWidth,f.engine.scene.tileHeight)}f.engine.tileUpdated=!0}};f.tileExistsAt=function(a,b,c){return null!=f.getTileAt(a,b,c)};f.tileCollisionAt=function(a,b,c){if(null==c){c=0;for(var d=f.engine.interactiveLayers;c<d.length;){var e=d[c];++c;e=e.tiles.getTileAt(a,b);if(null!=e&&-1!=e.collisionID)return!0}return!1}e= +f.getTileAt(a,b,c);return null==e||-1==e.collisionID?!1:!0};f.getTilePosition=function(a,b){var c=f.engine.scene.tileHeight,d=f.engine.scene.tileWidth;return 0==a?Math.floor(b/d):Math.floor(b/c)};f.getTileIDAt=function(a,b,c){a=f.getTileAt(a,b,c);return null==a?-1:a.tileID};f.getTileColIDAt=function(a,b,c){a=f.getTileAt(a,b,c);return null==a?-1:a.collisionID};f.getTileDataAt=function(a,b,c){a=f.getTileAt(a,b,c);return null==a?"":a.metadata};f.getTilesetIDAt=function(a,b,c){a=f.getTileAt(a,b,c);return null== +a?-1:a.parent.ID};f.getTileAt=function(a,b,c){c=f.getTileLayerAt(c);return null==c?null:c.getTileAt(a,b)};f.removeTileAt=function(a,b,c){if(null!=c&&c instanceof Ac){var d=O.__cast(c,Ac).tiles,e=f.getTileAt(a,b,c);null!=e&&(h.NO_PHYSICS||-1==e.collisionID?-1!=e.collisionID&&(c=b,e=a,null==e&&(e=0),null==c&&(c=0),d.grid.setTile(c,e,!1)):(c="ID-"+b*f.engine.scene.tileWidth+"-"+a*f.engine.scene.tileHeight+"-"+c.ID,e=f.engine.dynamicTiles.h[c],null!=e&&(f.engine.removeActor(e),e=f.engine.dynamicTiles, +Object.prototype.hasOwnProperty.call(e.h,c)&&delete e.h[c])),d.setTileAt(a,b,null),f.engine.tileUpdated=!0)}};f.getTileForCollision=function(a,b){if(a.thisCollidedWithTile||a.otherCollidedWithTile){var c=Math.round(h.toPixelUnits(b.normalX)),d=Math.round(h.toPixelUnits(b.normalY)),e=Math.round(h.toPixelUnits(b.x));b=Math.round(h.toPixelUnits(b.y));a.thisCollidedWithTile&&(c=-c,d=-d);0>c&&0==e%f.engine.scene.tileWidth&&--e;0>d&&0==b%f.engine.scene.tileHeight&&--b;e=f.getTilePosition(0,e);b=f.getTilePosition(1, +b);a=0;for(c=f.engine.interactiveLayers;a<c.length;)if(d=c[a],++a,d=d.tiles.getTileAt(b,e),null!=d&&-1!=d.collisionID)return d}return null};f.getTileDataForCollision=function(a,b){a=f.getTileForCollision(a,b);return null!=a?a.metadata:""};f.getTilePositionForCollision=function(a,b,c){if(b.thisCollidedWithTile||b.otherCollidedWithTile){var d=Math.round(h.toPixelUnits(c.normalX)),e=Math.round(h.toPixelUnits(c.normalY)),g=Math.round(h.toPixelUnits(c.x));c=Math.round(h.toPixelUnits(c.y));b.thisCollidedWithTile&& +(d=-d,e=-e);0>d&&0==g%f.engine.scene.tileWidth&&--g;0>e&&0==c%f.engine.scene.tileHeight&&--c;g=f.getTilePosition(0,g);c=f.getTilePosition(1,c);return 0==a?g:c}return-1};f.createDynamicTile=function(a,b,c,d,e,g){a=new tb(f.engine,1E8,1,b,c,d,e,g,null,null,null,null,!1,!0,!1,!1,a,!1,!1);a.set_name("Terrain");a.set_visible(!1);f.engine.dynamicTiles.h["ID-"+b+"-"+c+"-"+d]=a};f.getFont=function(a){return ic.get().resources.get(a)};f.pause=function(){f.engine.pause()};f.unpause=function(){f.engine.unpause()}; +f.toggleFullScreen=function(){h.engine.toggleFullScreen()};f.pauseAll=function(){h.paused=!0};f.unpauseAll=function(){h.paused=!1};f.getScreenWidth=function(){return h.screenWidth};f.getScreenHeight=function(){return h.screenHeight};f.getStageWidth=function(){return h.stage.stageWidth};f.getStageHeight=function(){return h.stage.stageHeight};f.setOffscreenTolerance=function(a,b,c,d){h.paddingTop=a;h.paddingLeft=b;h.paddingBottom=c;h.paddingRight=d};f.isTransitioning=function(){return f.engine.isTransitioning()}; +f.setTimeScale=function(a){h.timeScale=a};f.randomFloat=function(){return Math.random()};f.randomFloatBetween=function(a,b){return a<=b?a+Math.random()*(b-a):b+Math.random()*(a-b)};f.randomInt=function(a,b){return a<=b?a+Math.floor(Math.random()*(b-a+1)):b+Math.floor(Math.random()*(a-b+1))};f.saveGame=function(a,b){a=ed.getLocal(a,md.current.meta.h.localSavePath);for(var c=Object.keys(f.engine.gameAttributes.h),d=c.length,e=0;e<d;){var g=c[e++];0!=f.engine.savableAttributes.h[g]&&S.saveToSharedObject(a, +g,f.engine.gameAttributes.h[g])}S.flushSharedObject(a,b)};f.loadGame=function(a,b){a=ed.getLocal(a,md.current.meta.h.localSavePath);for(var c=0,d=W.fields(a.data);c<d.length;){var e=d[c];++c;var g=f.engine.gameAttributes,x=S.loadFromSharedObject(a,e);g.h[e]=x}null!=b&&b(!0)};f.saveData=function(a,b,c,d){a=ed.getLocal(a,md.current.meta.h.localSavePath);S.saveToSharedObject(a,b,c);S.flushSharedObject(a,d)};f.loadData=function(a,b,c){a=ed.getLocal(a,md.current.meta.h.localSavePath);b=S.loadFromSharedObject(a, +b);null!=c&&c(!0);return b};f.checkData=function(a,b){a=ed.getLocal(a,md.current.meta.h.localSavePath);return null!=W.field(a.data,b)};f.defaultURLHandler=function(a){new ph(a.target)};f.openURLInBrowser=function(a){Da.getURL(new Pg(a))};f.visitURL=function(a,b){null==b&&(b=f.defaultURLHandler);try{var c=new Pg(a);c.method="GET";(new ph(c)).addEventListener("complete",b)}catch(d){if(sa.lastError=d,"string"!=typeof R.caught(d).unwrap())throw d;}};f.postToURL=function(a,b,c){null==c&&(c=f.defaultURLHandler); +a=new Pg(a);a.method="POST";null!=b&&(a.data=iu._new(b));try{var d=new ph(a);d.addEventListener("complete",c);f.runLater(500,function(a){d.close()})}catch(e){if(sa.lastError=e,"string"!=typeof R.caught(e).unwrap())throw e;}};f.convertToPseudoUnicode=function(a){return a};f.simpleTweet=function(a,b){f.openURLInBrowser("http://twitter.com/home?status="+encodeURIComponent(a+" "+b))};f.newgroundsShowAd=function(){};f.newgroundsSetMedalPosition=function(a,b){};f.newgroundsUnlockMedal=function(a){};f.newgroundsSubmitScore= +function(a,b){};f.newgroundsShowScore=function(a){};f.newgroundsHelper=function(a){};f.kongregateInitAPI=function(){};f.kongregateSubmitStat=function(a,b){};f.kongregateIsGuest=function(){return!0};f.kongregateGetUsername=function(){return"Guest"};f.kongregateGetUserID=function(){return 0};f.loadAtlas=function(a){f.engine.atlasesToLoad.h[a]=a};f.unloadAtlas=function(a){f.engine.atlasesToUnload.h[a]=a};f.atlasIsLoaded=function(a){a=va.get().atlases.h[a];return null!=a?a.active:!1};f.initGooglePlayGames= +function(){};f.stopGooglePlayGames=function(){};f.getGPGConnectionInfo=function(a){return!1};f.showGPGAchievements=function(){};f.showGPGLeaderboards=function(){};f.showGPGLeaderboard=function(a){};f.showGPGQuests=function(){};f.unlockGPGAchievement=function(a){};f.incrementGPGAchievement=function(a,b){};f.submitGPGScore=function(a,b){};f.updateGPGEvent=function(a,b){};f.getCompletedGPGQuests=function(){return[]};f.gameCenterInitialize=function(){};f.gameCenterIsAuthenticated=function(){return!1}; +f.gameCenterGetPlayerName=function(){return"None"};f.gameCenterGetPlayerID=function(){return"None"};f.gameCenterShowLeaderboard=function(a){};f.gameCenterShowAchievements=function(){};f.gameCenterSubmitScore=function(a,b){};f.gameCenterSubmitAchievement=function(a,b){};f.gameCenterResetAchievements=function(){};f.gameCenterShowBanner=function(a,b){};f.purchasesAreInitialized=function(){return!1};f.purchasesRestore=function(){};f.purchasesBuy=function(a){};f.purchasesHasBought=function(a){return!1}; +f.purchasesGetTitle=function(a){return""};f.purchasesGetDescription=function(a){return""};f.purchasesGetPrice=function(a){return""};f.purchasesRequestProductInfo=function(a){};f.purchasesUse=function(a){};f.purchasesGetQuantity=function(a){return 0};f.showAlert=function(a,b){};f.vibrate=function(a){};f.showKeyboard=function(){};f.hideKeyboard=function(){};f.setKeyboardText=function(a){};f.setIconBadgeNumber=function(a){};f.enableDebugDrawing=function(){h.DEBUG_DRAW=!0;h.NO_PHYSICS||h.debugDrawer.m_sprite.get_graphics().clear()}; +f.disableDebugDrawing=function(){h.DEBUG_DRAW=!1;h.NO_PHYSICS||h.debugDrawer.m_sprite.get_graphics().clear()};f.gameURL=function(){return""};f.exitGame=function(){};f.createGrayscaleFilter=function(){var a=[];a=a.concat([.5,.5,.5,0,0]);a=a.concat([.5,.5,.5,0,0]);a=a.concat([.5,.5,.5,0,0]);a=a.concat([0,0,0,1,0]);return new dg(a)};f.createSepiaFilter=function(){var a=[];a=a.concat([.34,.33,.33,0,30]);a=a.concat([.33,.34,.33,0,20]);a=a.concat([.33,.33,.34,0,0]);a=a.concat([0,0,0,1,0]);return new dg(a)}; +f.createNegativeFilter=function(){var a=[];a=a.concat([-1,0,0,0,255]);a=a.concat([0,-1,0,0,255]);a=a.concat([0,0,-1,0,255]);a=a.concat([0,0,0,1,0]);return new dg(a)};f.createTintFilter=function(a,b){null==b&&(b=1);var c=new Ta;c.colorize(a,b);return c.getFilter()};f.createHueFilter=function(a){var b=new Ta;b.adjustHue(a);b.adjustSaturation(1);return b.getFilter()};f.createSaturationFilter=function(a){var b=new Ta;b.adjustSaturation(a/100);return b.getFilter()};f.createBrightnessFilter=function(a){var b= +new Ta;b.adjustBrightness(a/100);return b.getFilter()};f.prototype={wrapper:null,propertyChangeEvents:null,equalityPairs:null,checkProperties:null,nameMap:null,attributeTweens:null,scriptInit:null,toInternalName:function(a){if(null==this.nameMap)return a;var b=this.nameMap.h[a];return null==b?a:b},forwardMessage:function(a){},clearListeners:function(){this.propertyChangeEvents=new V},internalGetGroup:function(a,b,c){if(h.NO_PHYSICS)return b=O.__cast(c,qc),a==b.actorA?f.engine.getGroup(b.groupA):f.engine.getGroup(b.groupB); +b=O.__cast(b,Ff);if(null==b)return O.__cast(a,tb).getGroup();a=b.groupID;return-1E3==a&&(b=b.getBody(),null!=b)?f.engine.getGroup(b.getUserData().groupID):f.engine.getGroup(a)},init:function(){},addMobileKeyboardListener:function(a,b){a=new wi(Zc.TYPE_KEYBOARD,a,b);f.engine.nativeListeners.push(a)},addMobileAdListener:function(a,b){a=new wi(Zc.TYPE_ADS,a,b);f.engine.nativeListeners.push(a)},addGameCenterListener:function(a,b){a=new wi(Zc.TYPE_GAMECENTER,a,b);f.engine.nativeListeners.push(a)},addPurchaseListener:function(a, +b){a=new wi(Zc.TYPE_PURCHASES,a,b);f.engine.nativeListeners.push(a)},addListener:function(a,b){a.add(b);this instanceof w&&O.__cast(this,w).actor.registerListener(a,b)},addListenerWithKey:function(a,b,c){a.exists(b)||a.set(b,new Bc);a=a.get(b);a.add(c);this instanceof w&&O.__cast(this,w).actor.registerListener(a,c)},addListenerWithKey2:function(a,b,c,d){if(!a.h.hasOwnProperty(b)){var e=new Sa;a.h[b]=e}if(!a.h[b].h.hasOwnProperty(c)){var g=a.h[b];e=new Bc;g.h[c]=e}a=a.h[b].h[c];a.add(d);this instanceof +w&&O.__cast(this,w).actor.registerListener(a,d)},addWhenCreatedListener:function(a,b){null!=a&&this.addListener(a.whenCreated,function(){b(null)})},addWhenKilledListener:function(a,b){null!=a&&this.addListener(a.whenKilled,function(){b(null)})},addWhenUpdatedListener:function(a,b){var c=this instanceof w;null==a&&c&&(a=O.__cast(this,w).actor);null!=a?(c=function(a){b(a,null)},this.addListener(a.whenUpdated,c)):(c=function(a){b(a,null)},this.addListener(f.engine.whenUpdated,c))},addWhenDrawingListener:function(a, +b){var c=this instanceof w;null==a&&c&&(a=O.__cast(this,w).actor);null!=a?(c=function(a,c,g){b(a,c,g,null)},this.addListener(a.whenDrawing,c)):(c=function(a,c,g){b(a,c,g,null)},this.addListener(f.engine.whenDrawing,c))},addActorEntersRegionListener:function(a,b){null!=a&&this.addListener(a.whenActorEntered,function(a){b(a,null)})},addActorExitsRegionListener:function(a,b){null!=a&&this.addListener(a.whenActorExited,function(a){b(a,null)})},addActorPositionListener:function(a,b){null!=a&&this.addListener(a.whenPositionStateChanged, +function(a,d,e,g){b(a,d,e,g,null)})},addActorTypeGroupPositionListener:function(a,b){this.addListenerWithKey(f.engine.whenTypeGroupPositionStateChangedEvents,a,function(a,d,e,g,f){b(a,d,e,g,f,null)})},addSwipeListener:function(a){this.addListener(f.engine.whenSwiped,function(){a(null)})},addMultiTouchStartListener:function(a){this.addListener(f.engine.whenMTStarted,function(b){a(b,null)})},addMultiTouchMoveListener:function(a){this.addListener(f.engine.whenMTDragged,function(b){a(b,null)})},addMultiTouchEndListener:function(a){this.addListener(f.engine.whenMTEnded, +function(b){a(b,null)})},addKeyStateListener:function(a,b){this.addListener(f.engine.whenKeyPressedEvents.getOrCreateEvent(a),function(a,d){b(a,d,null)})},addAnyKeyPressedListener:function(a){this.addListener(f.engine.whenAnyKeyPressed,function(b){a(b,null)})},addAnyKeyReleasedListener:function(a){this.addListener(f.engine.whenAnyKeyReleased,function(b){a(b,null)})},addAnyGamepadPressedListener:function(a){this.addListener(f.engine.whenAnyGamepadPressed,function(b){a(b,null)})},addAnyGamepadReleasedListener:function(a){this.addListener(f.engine.whenAnyGamepadReleased, +function(b){a(b,null)})},addMousePressedListener:function(a){this.addListener(f.engine.whenMousePressed,function(){a(null)})},addMouseReleasedListener:function(a){this.addListener(f.engine.whenMouseReleased,function(){a(null)})},addMouseMovedListener:function(a){this.addListener(f.engine.whenMouseMoved,function(){a(null)})},addMouseDraggedListener:function(a){this.addListener(f.engine.whenMouseDragged,function(){a(null)})},addMouseOverActorListener:function(a,b){null!=a&&this.addListener(a.whenMousedOver, +function(a){b(a,null)})},addPropertyChangeListener:function(a,b,c){var d=function(){c(null,null)};this.addListenerWithKey(this.propertyChangeEvents,a,d);null!=b&&this.addListenerWithKey(this.propertyChangeEvents,b,d);this.checkProperties=!0},propertyChanged:function(a){if(this.checkProperties&&(a=this.propertyChangeEvents.h[a],null!=a&&0<a.length))for(a._dispatchIndex=0;a._dispatchIndex<a.length;){try{a.listeners[a._dispatchIndex]()}catch(b){sa.lastError=b}++a._dispatchIndex}},addCollisionListener:function(a, +b){null!=a&&this.addListener(a.whenCollided,function(a){b(a,null)})},addSceneCollisionListener:function(a,b,c){this.addListenerWithKey2(f.engine.whenCollidedEvents,a,b,function(a){c(a,null)})},addWhenTypeGroupCreatedListener:function(a,b){this.addListenerWithKey(f.engine.whenTypeGroupCreatedEvents,a,function(a){b(a,null)})},addWhenTypeGroupKilledListener:function(a,b){this.addListenerWithKey(f.engine.whenTypeGroupKilledEvents,a,function(a){b(a,null)})},addSoundListener:function(a,b){a instanceof Oh? +this.addListenerWithKey(f.engine.whenSoundEndedEvents,a,function(){b(null)}):this.addListenerWithKey(f.engine.whenChannelEndedEvents,a,function(){b(null)})},addFocusChangeListener:function(a){this.addListener(f.engine.whenFocusChanged,function(b){a(b,null)})},addPauseListener:function(a){this.addListener(f.engine.whenPaused,function(b){a(b,null)})},addFullscreenListener:function(a){this.addListener(f.engine.whenFullscreenChanged,function(){a(null)})},addGameScaleListener:function(a){this.addListener(f.engine.whenGameScaleChanged, +function(){a(null)})},addScreenSizeListener:function(a){this.addListener(f.engine.whenScreenSizeChanged,function(){a(null)})},disableThisBehavior:function(){f.engine.behaviors.disableBehavior(this.wrapper.name)},tweenNumber:function(a,b,c,d){null==c&&(c=1);var e=this,g=this.attributeTweens.h[a];null==g&&(g=new tc,g.doOnUpdate(function(){e[a]=g.value}),this.attributeTweens.h[a]=g);g.tween(W.field(this,a),b,d,1E3*c|0)},abortTweenNumber:function(a){a=this.attributeTweens.h[a];null!=a&&jb.cancel(a)}, +pauseTweens:function(){for(var a=this.attributeTweens.h,b=Object.keys(a),c=b.length,d=0;d<c;)a[b[d++]].paused=!0},unpauseTweens:function(){for(var a=this.attributeTweens.h,b=Object.keys(a),c=b.length,d=0;d<c;)a[b[d++]].paused=!1},__class__:f};var w=function(a){f.call(this);this.actor=a};k["com.stencyl.behavior.ActorScript"]=w;w.__name__="com.stencyl.behavior.ActorScript";w.__super__=f;w.prototype=u(f.prototype,{actor:null,getValue:function(a,b){return this.actor.getValue(a,b)},setValue:function(a, +b,c){this.actor.setValue(a,b,c)},shout:function(a,b){return this.actor.shout(a,b)},disableThisBehavior:function(){this.actor.disableBehavior(this.wrapper.name)},__class__:w});var ti=function(a,b,c,d,e,g,f){this.ID=a;this.fieldName=b;this.fullName=c;this.type=e;this.value=d;this.realValue=null;this.hidden=f};k["com.stencyl.behavior.Attribute"]=ti;ti.__name__="com.stencyl.behavior.Attribute";ti.prototype={ID:null,fieldName:null,fullName:null,type:null,defaultValue:null,value:null,realValue:null,hidden:null, +getRealValue:function(){null==this.realValue&&("int"==this.type?this.realValue=this.value:"float"==this.type||"number"==this.type?this.realValue=this.value:"bool"==this.type||"boolean"==this.type?this.realValue=this.value:"color"==this.type?this.realValue=this.value:"sound"==this.type||"actortype"==this.type||"font"==this.type?(this.realValue=-1==this.value?null:ic.get().resources.get(this.value),"font"!=this.type||this.realValue instanceof Ke||(this.realValue=null),"sound"!=this.type||this.realValue instanceof +Oh||(this.realValue=null),"actortype"!=this.type||this.realValue instanceof cg||(this.realValue=null)):"actorgroup"==this.type?this.realValue=this.value:"control"==this.type?this.realValue=this.value:"animation"==this.type?this.realValue=this.value:"game-attribute"==this.type?this.realValue=this.value:"scene"==this.type?this.realValue=va.get().scenes.h[this.value]:"text"==this.type?this.realValue=this.value:"list"==this.type?(this.realValue=this.value,null==this.value&&(this.realValue=[])):"map"== +this.type?(this.realValue=this.value,null==this.value&&(this.realValue=new V)):null!=this.value&&"actor"==this.type?this.realValue=this.value:null!=this.value&&"joint"==this.type?this.realValue=this.value:null!=this.value&&"region"==this.type&&(this.realValue=this.value));return this.realValue},__class__:ti};var Zk=function(a,b,c,d,e,g,f,l,t,m){this.isEvent=m;this.parent=a;this.engine=b;this.classname=e;if(null!=b)try{this.cls=k[e]}catch(Ce){if(sa.lastError=Ce,"string"!=typeof R.caught(Ce).unwrap())throw Ce; +}this.enabled=g;this.drawable=f;this.ID=c;this.name=d;this.type=t;this.attributes=l};k["com.stencyl.behavior.Behavior"]=Zk;Zk.__name__="com.stencyl.behavior.Behavior";Zk.prototype={parent:null,engine:null,enabled:null,drawable:null,isEvent:null,ID:null,name:null,type:null,classname:null,cls:null,script:null,attributes:null,initScript:function(a){null==a&&(a=!1);if(null==this.cls)this.script=new gb;else{if("actor"==this.type){if(O.getClass(this.parent)==h){this.script=new gb;return}this.script=Za.createInstance(this.cls, +[0,this.parent,null])}else{if(O.getClass(this.parent)==tb){this.script=new gb;return}this.script=Za.createInstance(this.cls,[0,null])}this.script.wrapper=this;this.initAttributes();if(!a)try{this.script.init(),this.script.scriptInit=!0}catch(b){if(sa.lastError=b,"string"!=typeof R.caught(b).unwrap())throw b;}}},initAttributes:function(){for(var a=this.attributes.h,b=Object.keys(a),c=b.length,d=0;d<c;){var e=a[b[d++]];try{if(!(e.hidden||"actor"==e.type&&"actor"==e.fieldName&&this.script instanceof +w)){var g=this.script.toInternalName(e.fieldName);if("actor"==e.type||"joint"==e.type||"region"==e.type){var f=e.getRealValue();"actor"==e.type?this.script[g]=this.engine.getActor(f):"joint"!=e.type&&"region"==e.type&&(this.script[g]=this.engine.getRegion(f))}else if("actorgroup"==e.type){var l=e.getRealValue();this.script[g]=this.engine.getGroup(l)}else{var t=e.getRealValue();if("list"==e.type){e=null;if(null!=t){e=O.__cast(t,Array);for(var m=[],h=0;h<e.length;){var p=e[h];++h;m.push(p)}e=m}else e= +[];this.script[g]=e}else if("map"==e.type){e=null;if(null!=t){m=t;e=new V;for(var k=m.keys();k.hasNext();){var n=k.next(),r=m.get(n);e.h[n]=r}}else e=new V;this.script[g]=e}else this.script[g]=t}}}catch(rb){if(sa.lastError=rb,"string"!=typeof R.caught(rb).unwrap())throw rb;}}},__class__:Zk};var Gj=function(a,b){this.behaviorID=a;this.values=b;this.enabled=!0};k["com.stencyl.behavior.BehaviorInstance"]=Gj;Gj.__name__="com.stencyl.behavior.BehaviorInstance";Gj.prototype={behaviorID:null,values:null, +enabled:null,__class__:Gj};var yj=function(){this.behaviors=[];this.cache=new V};k["com.stencyl.behavior.BehaviorManager"]=yj;yj.__name__="com.stencyl.behavior.BehaviorManager";yj.prototype={behaviors:null,cache:null,destroy:function(){this.cache=this.behaviors=null},add:function(a){this.cache.h[a.name]=a;this.behaviors.push(a)},hasBehavior:function(a){return null==this.cache?!1:null!=this.cache.h[a]},enableBehavior:function(a){if(this.hasBehavior(a)){a=this.cache.h[a];if(null!=a.script&&!a.script.scriptInit)try{a.script.init(), +a.script.scriptInit=!0}catch(b){if(sa.lastError=b,"string"!=typeof R.caught(b).unwrap())throw b;}a.enabled=!0}},disableBehavior:function(a){this.hasBehavior(a)&&(this.cache.h[a].enabled=!1)},isBehaviorEnabled:function(a){return this.hasBehavior(a)?this.cache.h[a].enabled:!1},initScripts:function(){for(var a=0,b=this.behaviors.length;a<b;){var c=a++;c=this.behaviors[c];c.initScript(!c.enabled)}},getAttribute:function(a,b){a=this.cache.h[a];if(null!=a&&null!=a.script){b=a.script.toInternalName(b);var c= +W.field(a.script,b);null!=c||qh.hasField(a.script.wrapper.classname,b);return c}return null},setAttribute:function(a,b,c){a=this.cache.h[a];null!=a&&null!=a.script&&qh.hasField(a.script.wrapper.classname,b)&&(a.script[b]=c,a.script.propertyChanged(b))},call:function(a,b){if(null==this.cache)return null;for(var c=null,d=0,e=this.behaviors.length;d<e;){var g=d++;g=this.behaviors[g];if(g.enabled&&null!=g.script)try{var f=W.field(g.script,a);null!=f?c=f.apply(g.script,b):g.script.forwardMessage(a)}catch(l){if(sa.lastError= +l,"string"==typeof R.caught(l).unwrap())g.script.forwardMessage(a);else throw l;}}return c},call2:function(a,b,c){if(null==this.cache)return null;var d=null;a=this.cache.h[a];if(null!=a){if(!a.enabled||null==a.script)return d;try{var e=W.field(a.script,b);null!=e?d=e.apply(a.script,c):a.script.forwardMessage(b)}catch(g){if(sa.lastError=g,"string"==typeof R.caught(g).unwrap())a.script.forwardMessage(b);else throw g;}}return d},__class__:yj};var qh=function(){};k["com.stencyl.behavior.ReflectionHelper"]= +qh;qh.__name__="com.stencyl.behavior.ReflectionHelper";qh.getFieldMap=function(a){var b=qh.fieldMaps.h[a];if(null==b)try{for(var c=Za.getInstanceFields(k[a]),d=new V,e=0;e<c.length;){var g=c[e];++e;d.h[g]=!0}b=d;qh.fieldMaps.h[a]=b}catch(x){if(sa.lastError=x,"string"!=typeof R.caught(x).unwrap())throw x;}return b};qh.hasField=function(a,b){a=qh.getFieldMap(a);return null==a?!1:Object.prototype.hasOwnProperty.call(a.h,b)};var gb=function(){f.call(this)};k["com.stencyl.behavior.SceneScript"]=gb;gb.__name__= +"com.stencyl.behavior.SceneScript";gb.__super__=f;gb.prototype=u(f.prototype,{__class__:gb});var bl=function(a,b,c,d){this.toExecute=a;this.interval=b;this.repeats=c;this.actor=d;this.done=!1;this.timer=b};k["com.stencyl.behavior.TimedTask"]=bl;bl.__name__="com.stencyl.behavior.TimedTask";bl.prototype={toExecute:null,interval:null,repeats:null,actor:null,timer:null,done:null,actorCreateTime:null,update:function(a){null==this.actor||this.actor.isAlive()?null==this.actor&&h.engine.isPaused()||null!= +this.actor&&this.actor.isPaused()||(this.timer-=a,0>=this.timer&&(this.toExecute(this),this.done=!this.repeats,this.repeats&&(this.timer+=this.interval))):this.done=!0},__class__:bl};var Bc=function(){this._dispatchIndex=-1;this.listeners=[];this.length=0};k["com.stencyl.event.Event"]=Bc;Bc.__name__="com.stencyl.event.Event";Bc.prototype={listeners:null,length:null,_dispatchIndex:null,add:function(a){this.listeners.push(a);++this.length},has:function(a){for(var b=0,c=this.listeners;b<c.length;){var d= +c[b];++b;if(W.compareMethods(d,a))return!0}return!1},remove:function(a){for(var b=this.listeners.length;0<=--b;)W.compareMethods(this.listeners[b],a)&&(this.listeners.splice(b,1),--this.length,this._dispatchIndex>=b&&--this._dispatchIndex)},removeAll:function(){this.listeners.splice(0,this.length);this._dispatchIndex=this.length=0},__class__:Bc};var su=function(){};k["com.stencyl.event.EventDispatcher"]=su;su.__name__="com.stencyl.event.EventDispatcher";var Pn=function(){this.keys=[];this.map=new V}; +k["com.stencyl.event.EventMap_String_func_Bool_Bool_Void"]=Pn;Pn.__name__="com.stencyl.event.EventMap_String_func_Bool_Bool_Void";Pn.prototype={keys:null,map:null,hasEvents:function(){return 0<this.keys.length},getOrCreateEvent:function(a){var b=this.map.get(a);null==b&&(b=new Bc,this.map.set(a,b),this.keys.push(a));return b},getEvent:function(a){return this.map.get(a)},__class__:Pn};var wi=function(a,b,c){this.metaType=a;this.type=b;this.fn=c};k["com.stencyl.event.NativeListener"]=wi;wi.__name__= +"com.stencyl.event.NativeListener";wi.prototype={metaType:null,type:null,fn:null,checkEvents:function(a){a=a.eventTable.h[this.metaType];if(null!=a)for(var b=0;b<a.length;){var c=a[b];++b;c.type==this.type&&(this.metaType==Zc.TYPE_ADS?this.fn():this.metaType==Zc.TYPE_PURCHASES?this.fn(c.data1):this.metaType==Zc.TYPE_GAMECENTER?this.fn(c.data1):this.metaType==Zc.TYPE_KEYBOARD&&this.fn(c.data1))}},__class__:wi};var Oc=function(a,b){null==b&&(b="");this.type=a;this.data1=b};k["com.stencyl.event.StencylEvent"]= +Oc;Oc.__name__="com.stencyl.event.StencylEvent";Oc.prototype={type:null,data1:null,__class__:Oc};var sb=function(a,b){null==b&&(b=2);this.swipeTimeout=.1;this.longPressDelay=1;var c=this;if(!sb.initialized){sb.initialized=!0;var d=Da.get_current().stage;sb.moveToleSqr=.008*(new oa(d.stageWidth,d.stageHeight)).get_length();sb.moveToleSqr*=sb.moveToleSqr;qe.get_supportsTouchEvents()&&(qe.inputMode=2)}this.owner=a;this.mode=b;a=qe.get_supportsTouchEvents();this.owner.mouseEnabled=!0;this.listenEvents= +1==this.mode?a?sb.touchEvents:sb.mouseEvents:a?sb.geTouchEvents:sb.geMouseEvents;this.handler=1==this.mode?a?q(this,this.convertTouch):q(this,this.convertMouse):a?q(this,this.onTouch):q(this,this.onMouse);a=0;for(b=this.listenEvents;a<b.length;)d=b[a],++a,this.owner.addEventListener(d,this.handler);3==this.mode&&Da.get_current().stage.addEventListener("resize",function(a){c.overlay=null});this.touchList=new id;this.setReady()};k["com.stencyl.gestures.RoxGestureAgent"]=sb;sb.__name__="com.stencyl.gestures.RoxGestureAgent"; +sb.__properties__={get_multitouchSupported:"get_multitouchSupported"};sb.init=function(){if(!sb.initialized){sb.initialized=!0;var a=Da.get_current().stage;sb.moveToleSqr=.008*(new oa(a.stageWidth,a.stageHeight)).get_length();sb.moveToleSqr*=sb.moveToleSqr;qe.get_supportsTouchEvents()&&(qe.inputMode=2)}};sb.localOffset=function(a,b){var c=a.parent.localToGlobal(new oa(a.get_x(),a.get_y()));c.offset(b.x,b.y);c=a.parent.globalToLocal(c);c.offset(-a.get_x(),-a.get_y());return c};sb.get_multitouchSupported= +function(){return qe.get_supportsTouchEvents()?1<qe.maxTouchPoints:!1};sb.initTypeMap=function(){for(var a=new V,b=0,c=sb.MAP.length>>1;b<c;){var d=b++;a.h[sb.MAP[d<<1]]=sb.MAP[(d<<1)+1]}return a};sb.prototype={mode:null,longPressDelay:null,swipeTimeout:null,owner:null,touch0:null,touch1:null,touchList:null,listenEvents:null,handler:null,longPressTimer:null,tweener:null,overlay:null,state:null,detach:function(){null!=this.tweener&&(jb.cancel(this.tweener),this.tweener=null);this.setReady();for(var a= +0,b=this.listenEvents;a<b.length;){var c=b[a];++a;this.owner.removeEventListener(c,this.handler)}this.overlay=this.owner=null},getHandler:function(a){null==a&&(a=3);var b=q(this,this.handleEvent),c=a;return function(a){b(c,a)}},startTweenXY:function(a,b,c,d){var e=this;this.tweener=new Kf;this.tweener.tween(a.get_x(),c,a.get_y(),d,ia.linear,1E3*b|0).doOnUpdate(function(){a.set_x(e.tweener.value1);a.set_y(e.tweener.value2)})},stopTween:function(){null!=this.tweener&&(jb.cancel(this.tweener),this.tweener= +null)},handleEvent:function(a,b){var c=b.target;if(c==this.owner)switch(b.type){case "rox_gesture_pan":b=b.extra;var d=c.parent.localToGlobal(new oa(c.get_x(),c.get_y()));d.offset(b.x,b.y);d=c.parent.globalToLocal(d);d.offset(-c.get_x(),-c.get_y());b=d;0!=(a&1)&&c.set_x(c.get_x()+b.x);0!=(a&2)&&c.set_y(c.get_y()+b.y);break;case "rox_gesture_pinch":d=b.extra;var e=c.parent.localToGlobal(new oa(c.get_x(),c.get_y())),g=e.x-b.stageX;e=e.y-b.stageY;a=Math.atan2(e,g);g=(new oa(g,e)).get_length();g=oa.polar(g* +d,a);g.offset(b.stageX,b.stageY);g=c.parent.globalToLocal(g);c.set_scaleX(c.get_scaleX()*d);c.set_scaleY(c.get_scaleY()*d);c.set_x(g.x);c.set_y(g.y);break;case "rox_gesture_rotation":a=b.extra;e=c.parent.localToGlobal(new oa(c.get_x(),c.get_y()));g=e.x-b.stageX;e=e.y-b.stageY;d=Math.atan2(e,g);g=(new oa(g,e)).get_length();g=oa.polar(g,d+a);g.offset(b.stageX,b.stageY);g=c.parent.globalToLocal(g);c.set_rotation(c.get_rotation()+sb.R2D*a);c.set_x(g.x);c.set_y(g.y);break;case "rox_gesture_swipe":b=new oa(2* +b.extra.x,2*b.extra.y);d=c.parent.localToGlobal(new oa(c.get_x(),c.get_y()));d.offset(b.x,b.y);d=c.parent.globalToLocal(d);d.offset(-c.get_x(),-c.get_y());b=d;a=c.get_x()+b.x;b=c.get_y()+b.y;var f=this;this.tweener=new Kf;this.tweener.tween(c.get_x(),a,c.get_y(),b,ia.linear,2E3).doOnUpdate(function(){c.set_x(f.tweener.value1);c.set_y(f.tweener.value2)})}},convertTouch:function(a){this.owner.dispatchEvent(new Sc(sb.typeMap.h[a.type],a.bubbles,a.cancelable,a.localX,a.localY,a.stageX,a.stageY,a.touchPointID, +this))},convertMouse:function(a){var b=a.type;("mouseDown"==b||"mouseUp"==b||"click"==b||a.buttonDown)&&this.owner.dispatchEvent(new Sc(sb.typeMap.h[b],a.bubbles,a.cancelable,a.localX,a.localY,a.stageX,a.stageY,0,this))},onTouch:function(a){var b=a.touchPointID,c=null==this.touch0||this.touch0.tid==b;(c||null!=this.touch1&&this.touch1.tid==b||null!=this.touch0&&null==this.touch1&&this.touch0.tid!=b)&&this.handleTouch(sb.typeMap.h[a.type],a,c,b)},onMouse:function(a){var b=a.type;("mouseDown"==b||"mouseUp"== +b||a.buttonDown)&&this.handleTouch(sb.typeMap.h[b],a,!0,0)},handleTouch:function(a,b,c,d){var e=new Sn(this.owner,b,d);d=c?this.touch0:this.touch1;if("rox_touch_move"==a&&null!=d){var g=d.sx-e.sx;var f=d.sy-e.sy;g=g*g+f*f<sb.moveToleSqr}else g=!1;if(g)return!1;d=!0;switch(this.state){case 0:if(c&&"rox_touch_begin"==a){this.state=1;this.touch0=e;var l=q(this,this.sendLongPress);g=function(){l(e)};this.longPressTimer=jb.timer(1E3*this.longPressDelay|0).doOnComplete(g);null!=this.tweener&&(jb.cancel(this.tweener), +this.tweener=null);if(3==this.mode)for(c=Da.get_current().stage,null==this.overlay&&(this.overlay=new ta,this.overlay.set_name("overlay"),this.overlay.get_graphics().beginFill(16777215,.00392156862745098),this.overlay.get_graphics().drawRect(0,0,c.stageWidth,c.stageHeight)),c.addChild(this.overlay),c=0,a=this.listenEvents;c<a.length;)g=a[c],++c,this.overlay.addEventListener(g,this.handler)}else d=!1;break;case 1:c&&"rox_touch_end"==a?(this.owner.dispatchEvent(new Sc("rox_gesture_tap",null,null,e.lx, +e.ly,e.sx,e.sy,null,this)),this.setReady()):c&&"rox_touch_move"==a?(c=new oa(e.sx-this.touch0.sx,e.sy-this.touch0.sy),this.owner.dispatchEvent(new Sc("rox_gesture_pan",null,null,e.lx,e.ly,e.sx,e.sy,null,this,c)),this.state=4,null!=this.touch0&&this.touchList.push(this.touch0),this.touch0=e,null!=this.longPressTimer&&(jb.cancel(this.longPressTimer),this.longPressTimer=null)):c||"rox_touch_begin"!=a?d=!1:(this.state=2,this.touch1=e,null!=this.longPressTimer&&(jb.cancel(this.longPressTimer),this.longPressTimer= +null));break;case 2:"rox_touch_end"==a?(this.owner.dispatchEvent(new Sc("rox_gesture_end",null,null,e.lx,e.ly,e.sx,e.sy,null,this)),this.setReady()):"rox_touch_move"==a?(b=c?this.touch1:this.touch0,f=c?this.touch0:this.touch1,g=oa.distance(e.spt,b.spt)/oa.distance(f.spt,b.spt),a=Math.atan2(e.sy-b.sy,e.sx-b.sx)-Math.atan2(f.sy-b.sy,f.sx-b.sx),b=oa.interpolate(b.lpt,f.lpt,.5),f=this.owner.localToGlobal(b),1!=g&&this.owner.dispatchEvent(new Sc("rox_gesture_pinch",null,null,b.x,b.y,f.x,f.y,null,this, +g)),0!=a&&this.owner.dispatchEvent(new Sc("rox_gesture_rotation",null,null,b.x,b.y,f.x,f.y,null,this,a)),c?this.touch0=e:this.touch1=e):d=!1;break;case 4:if(c&&"rox_touch_move"==a)c=new oa(e.sx-this.touch0.sx,e.sy-this.touch0.sy),this.owner.dispatchEvent(new Sc("rox_gesture_pan",null,null,e.lx,e.ly,e.sx,e.sy,null,this,c)),this.state=4,null!=this.touch0&&this.touchList.push(this.touch0),this.touch0=e,null!=this.longPressTimer&&(jb.cancel(this.longPressTimer),this.longPressTimer=null);else if(c&&("rox_touch_end"== +a||3!=this.mode&&"rox_touch_out"==a&&b.target==this.owner)){if(0>=this.swipeTimeout||e.time-this.touch0.time<this.swipeTimeout){c=this.touchList.pop();b=null;for(a=this.touchList.h;null!=a;){g=a.item;a=a.next;if(.2<c.time-g.time)break;b=g}null!=b&&(f=c.sy-b.sy,g=c.sx-b.sx,a=Math.atan2(f,g),c=oa.polar((new oa(g,f)).get_length()/(c.time-b.time)*.25,a),this.owner.dispatchEvent(new Sc("rox_gesture_swipe",null,null,e.lx,e.ly,e.sx,e.sy,null,this,c)))}this.setReady()}else c||"rox_touch_begin"!=a?d=!1:(this.owner.dispatchEvent(new Sc("rox_gesture_begin", +null,null,e.lx,e.ly,e.sx,e.sy,null,this)),this.state=2,this.touch1=e,null!=this.longPressTimer&&(jb.cancel(this.longPressTimer),this.longPressTimer=null))}return d},sendLongPress:function(a){this.owner.dispatchEvent(new Sc("rox_gesture_long_press",null,null,a.lx,a.ly,a.sx,a.sy,null,this));this.setReady()},setReady:function(){this.state=0;this.touch0=this.touch1=null;this.touchList.clear();null!=this.longPressTimer&&(jb.cancel(this.longPressTimer),this.longPressTimer=null);if(null!=this.overlay&&3== +this.mode){for(var a=0,b=this.listenEvents;a<b.length;){var c=b[a];++a;this.overlay.removeEventListener(c,this.handler)}Da.get_current().stage.removeChild(this.overlay)}},setMove:function(a){this.state=4;null!=this.touch0&&this.touchList.push(this.touch0);this.touch0=a;null!=this.longPressTimer&&(jb.cancel(this.longPressTimer),this.longPressTimer=null)},setTwoFingerMove:function(a){this.state=2;this.touch1=a;null!=this.longPressTimer&&(jb.cancel(this.longPressTimer),this.longPressTimer=null)},cancelLongPress:function(){null!= +this.longPressTimer&&(jb.cancel(this.longPressTimer),this.longPressTimer=null)},__class__:sb};var Sn=function(a,b,c){this.tid=c;this.sx=b.stageX;this.sy=b.stageY;this.spt=new oa(this.sx,this.sy);this.lpt=a.globalToLocal(this.spt);this.lx=this.lpt.x;this.ly=this.lpt.y;this.time=(new Date).getTime()/1E3};k["com.stencyl.gestures._RoxGestureAgent.TouchPoint"]=Sn;Sn.__name__="com.stencyl.gestures._RoxGestureAgent.TouchPoint";Sn.prototype={tid:null,lx:null,ly:null,sx:null,sy:null,lpt:null,spt:null,time:null, +distSqr:function(a){var b=a.sx-this.sx;a=a.sy-this.sy;return b*b+a*a},__class__:Sn};var la=function(a,b,c){null==c&&(c=!1);null==b&&(b=!1);this.type=a;this.bubbles=b;this.cancelable=c;this.eventPhase=2};k["openfl.events.Event"]=la;la.__name__="openfl.events.Event";la.prototype={bubbles:null,cancelable:null,currentTarget:null,eventPhase:null,target:null,type:null,__isCanceled:null,__isCanceledNow:null,__preventDefault:null,clone:function(){var a=new la(this.type,this.bubbles,this.cancelable);a.eventPhase= +this.eventPhase;a.target=this.target;a.currentTarget=this.currentTarget;return a},formatToString:function(a,b,c,d,e,g){var f=[];null!=b&&f.push(b);null!=c&&f.push(c);null!=d&&f.push(d);null!=e&&f.push(e);null!=g&&f.push(g);return q(this,this.__formatToString).apply(this,[a,f])},isDefaultPrevented:function(){return this.__preventDefault},preventDefault:function(){this.cancelable&&(this.__preventDefault=!0)},stopImmediatePropagation:function(){this.__isCanceledNow=this.__isCanceled=!0},stopPropagation:function(){this.__isCanceled= +!0},toString:function(){return this.__formatToString("Event",["type","bubbles","cancelable"])},__formatToString:function(a,b){a="["+a;for(var c,d=0;d<b.length;){var e=b[d];++d;c=W.field(this,e);a="string"==typeof c?a+(" "+e+'="'+n.string(c)+'"'):a+(" "+e+"="+n.string(c))}return a+"]"},__init:function(){this.currentTarget=this.target=null;this.cancelable=this.bubbles=!1;this.eventPhase=2;this.__preventDefault=this.__isCanceledNow=this.__isCanceled=!1},__class__:la};var Sc=function(a,b,c,d,e,g,f,l, +t,m){null==l&&(l=0);null==c&&(c=!1);null==b&&(b=!0);la.call(this,a,b,c);this.localX=d;this.localY=e;this.stageX=g;this.stageY=f;this.touchPointID=l;this.agent=t;this.extra=m};k["com.stencyl.gestures.RoxGestureEvent"]=Sc;Sc.__name__="com.stencyl.gestures.RoxGestureEvent";Sc.__super__=la;Sc.prototype=u(la.prototype,{localX:null,localY:null,stageX:null,stageY:null,touchPointID:null,agent:null,extra:null,toString:function(){return this.type+"("+this.touchPointID+"): local=("+this.localX+","+this.localY+ +"), stage=("+this.stageX+","+this.stageY+"), extra="+(this.extra instanceof oa?"Point("+n.string(this.extra.x)+","+n.string(this.extra.y)+")":this.extra)},__class__:Sc});var fl=function(){};k["com.stencyl.graphics.AbstractAnimation"]=fl;fl.__name__="com.stencyl.graphics.AbstractAnimation";fl.__isInterface__=!0;fl.prototype={update:null,getCurrentFrame:null,getNumFrames:null,setFrame:null,isFinished:null,activate:null,reset:null,draw:null,getFrameDurations:null,setFrameDurations:null,setFrameDuration:null, +getCurrentImage:null,__class__:fl};var Vb=function(a,b,c){null==c&&(c=!1);A.call(this);this.__drawableType=2;this.__bitmapData=a;this.pixelSnapping=b;this.smoothing=c;null==b&&(this.pixelSnapping=1)};k["openfl.display.Bitmap"]=Vb;Vb.__name__="openfl.display.Bitmap";Vb.__super__=A;Vb.prototype=u(A.prototype,{pixelSnapping:null,smoothing:null,__image:null,__bitmapData:null,__imageVersion:null,__enterFrame:function(a){null==this.__bitmapData||null==this.__bitmapData.image||this.__bitmapData.image.version== +this.__imageVersion||this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty())},__getBounds:function(a,b){var c=fa.__pool.get();null!=this.__bitmapData?c.setTo(0,0,this.__bitmapData.width,this.__bitmapData.height):c.setTo(0,0,0,0);c.__transform(c,b);a.__expand(c.x,c.y,c.width,c.height);fa.__pool.release(c)},__hitTest:function(a,b,c,d,e,g){if(!g.get_visible()||this.__isMask||null==this.__bitmapData||null!=this.get_mask()&&!this.get_mask().__hitTestMask(a,b))return!1;this.__getRenderTransform(); +var f=this.__renderTransform,l=f.a*f.d-f.b*f.c;c=0==l?-f.tx:1/l*(f.c*(f.ty-b)+f.d*(a-f.tx));f=this.__renderTransform;l=f.a*f.d-f.b*f.c;a=0==l?-f.ty:1/l*(f.a*(b-f.ty)+f.b*(f.tx-a));if(0<c&&0<a&&c<=this.__bitmapData.width&&a<=this.__bitmapData.height){if(null!=this.__scrollRect&&!this.__scrollRect.contains(c,a))return!1;null==d||e||d.push(g);return!0}return!1},__hitTestMask:function(a,b){if(null==this.__bitmapData)return!1;this.__getRenderTransform();var c=this.__renderTransform,d=c.a*c.d-c.b*c.c,e= +0==d?-c.tx:1/d*(c.c*(c.ty-b)+c.d*(a-c.tx));c=this.__renderTransform;d=c.a*c.d-c.b*c.c;a=0==d?-c.ty:1/d*(c.a*(b-c.ty)+c.b*(c.tx-a));return 0<e&&0<a&&e<=this.__bitmapData.width&&a<=this.__bitmapData.height?!0:!1},get_bitmapData:function(){return this.__bitmapData},set_bitmapData:function(a){this.__bitmapData=a;this.smoothing=!1;this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty());this.__imageVersion=-1;return this.__bitmapData},set_height:function(a){null!=this.__bitmapData?this.set_scaleY(a/ +this.__bitmapData.height):this.set_scaleY(0);return a},set_width:function(a){null!=this.__bitmapData?this.set_scaleX(a/this.__bitmapData.width):this.set_scaleX(0);return a},__class__:Vb,__properties__:u(A.prototype.__properties__,{set_bitmapData:"set_bitmapData",get_bitmapData:"get_bitmapData"})});var Hj=function(a){Vb.call(this,a.frames[0]);this.model=a;this.set_x(Math.round(-a.frameWidth/2*h.SCALE));this.set_y(Math.round(-a.frameHeight/2*h.SCALE));this.frameIndex=this.timer=0;this.individualDurations= +!1;this.durations=a.durations;this.numFrames=this.durations.length;this.smoothing=ja.antialias;this.finished=1>=this.numFrames;null!=this.filter?(this.filteredFrames[this.frameIndex]||(this.frames[this.frameIndex]=this.applyFilters(this.frames[this.frameIndex],this.model.frames[this.frameIndex],this.filter),this.filteredFrames[this.frameIndex]=!0),this.set_bitmapData(this.frames[this.frameIndex])):this.set_bitmapData(this.model.frames[this.frameIndex]);this.smoothing=ja.antialias};k["com.stencyl.graphics.BitmapAnimation"]= +Hj;Hj.__name__="com.stencyl.graphics.BitmapAnimation";Hj.__interfaces__=[fl];Hj.__super__=Vb;Hj.prototype=u(Vb.prototype,{model:null,frameIndex:null,timer:null,finished:null,durations:null,individualDurations:null,frames:null,numFrames:null,filter:null,filteredFrames:null,update:function(a){this.model.sync&&this.model.looping?(a=this.frameIndex,this.timer=this.model.sharedTimer,this.frameIndex=this.model.sharedFrameIndex,a!=this.frameIndex&&(null!=this.filter?(this.filteredFrames[this.frameIndex]|| +(this.frames[this.frameIndex]=this.applyFilters(this.frames[this.frameIndex],this.model.frames[this.frameIndex],this.filter),this.filteredFrames[this.frameIndex]=!0),this.set_bitmapData(this.frames[this.frameIndex])):this.set_bitmapData(this.model.frames[this.frameIndex]),this.smoothing=ja.antialias)):(this.timer+=a,0<this.numFrames&&this.timer>this.durations[this.frameIndex]&&(a=this.frameIndex,this.timer-=this.durations[this.frameIndex],this.frameIndex++,this.frameIndex>=this.numFrames&&(this.model.looping? +this.frameIndex=0:(this.finished=!0,this.frameIndex--)),a!=this.frameIndex&&(null!=this.filter?(this.filteredFrames[this.frameIndex]||(this.frames[this.frameIndex]=this.applyFilters(this.frames[this.frameIndex],this.model.frames[this.frameIndex],this.filter),this.filteredFrames[this.frameIndex]=!0),this.set_bitmapData(this.frames[this.frameIndex])):this.set_bitmapData(this.model.frames[this.frameIndex]),this.smoothing=ja.antialias)))},getCurrentFrame:function(){return this.frameIndex},getNumFrames:function(){return this.numFrames}, +setFrame:function(a){if(0>a||a>=this.numFrames)a=0;a!=this.frameIndex&&(this.frameIndex=a,null!=this.filter?(this.filteredFrames[this.frameIndex]||(this.frames[this.frameIndex]=this.applyFilters(this.frames[this.frameIndex],this.model.frames[this.frameIndex],this.filter),this.filteredFrames[this.frameIndex]=!0),this.set_bitmapData(this.frames[this.frameIndex])):this.set_bitmapData(this.model.frames[this.frameIndex]),this.smoothing=ja.antialias);this.timer=0;this.finished=!1},isFinished:function(){return this.finished}, +reset:function(){this.frameIndex=this.timer=0;this.finished=!1;null!=this.filter?(this.filteredFrames[this.frameIndex]||(this.frames[this.frameIndex]=this.applyFilters(this.frames[this.frameIndex],this.model.frames[this.frameIndex],this.filter),this.filteredFrames[this.frameIndex]=!0),this.set_bitmapData(this.frames[this.frameIndex])):this.set_bitmapData(this.model.frames[this.frameIndex]);this.smoothing=ja.antialias},updateBitmap:function(){null!=this.filter?(this.filteredFrames[this.frameIndex]|| +(this.frames[this.frameIndex]=this.applyFilters(this.frames[this.frameIndex],this.model.frames[this.frameIndex],this.filter),this.filteredFrames[this.frameIndex]=!0),this.set_bitmapData(this.frames[this.frameIndex])):this.set_bitmapData(this.model.frames[this.frameIndex]);this.smoothing=ja.antialias},set_filter:function(a){this.filter=a;for(var b=[],c=0,d=this.numFrames;c<d;)c++,b.push(!1);this.filteredFrames=b;b=[];c=0;for(d=this.numFrames;c<d;)c++,b.push(null);this.frames=b;null!=this.filter?(this.filteredFrames[this.frameIndex]|| +(this.frames[this.frameIndex]=this.applyFilters(this.frames[this.frameIndex],this.model.frames[this.frameIndex],this.filter),this.filteredFrames[this.frameIndex]=!0),this.set_bitmapData(this.frames[this.frameIndex])):this.set_bitmapData(this.model.frames[this.frameIndex]);this.smoothing=ja.antialias;return a},applyFilters:function(a,b,c){null==a&&(a=new Ja(b.width,b.height));for(var d=0;d<c.length;){var e=c[d];++d;b=e.__applyFilter(a,b,b.rect,S.zero)}return a},draw:function(a,b,c,d,e){ja.disposeImages&& +!this.model.checkImageReadable()||a.drawImage(this.get_bitmapData(),b,c,d)},getFrameDurations:function(){return this.durations},setFrameDurations:function(a){if(null!=this.durations){for(var b=[],c=0,d=this.durations.length;c<d;)c++,b.push(a);this.durations=b;this.individualDurations=!0}},setFrameDuration:function(a,b){if(!this.individualDurations){for(var c=[],d=0,e=this.durations.length;d<e;){var g=d++;c.push(this.durations[g])}this.durations=c;this.individualDurations=!0}0<=a&&a<this.durations.length&& +(this.durations[a]=b)},framesUpdated:function(){this.set_x(Math.round(-this.model.frameWidth/2*h.SCALE));this.set_y(Math.round(-this.model.frameHeight/2*h.SCALE));null!=this.filter?(this.filteredFrames[this.frameIndex]||(this.frames[this.frameIndex]=this.applyFilters(this.frames[this.frameIndex],this.model.frames[this.frameIndex],this.filter),this.filteredFrames[this.frameIndex]=!0),this.set_bitmapData(this.frames[this.frameIndex])):this.set_bitmapData(this.model.frames[this.frameIndex]);this.smoothing= +ja.antialias},getCurrentImage:function(){return ja.disposeImages&&!this.model.checkImageReadable()?me.UNLOADED:this.get_bitmapData()},getCurrentImageInstance:function(){return new ke(null,this.get_bitmapData())},activate:function(){},__class__:Hj,__properties__:u(Vb.prototype.__properties__,{set_filter:"set_filter"})});var oh=function(){};k["com.stencyl.graphics.EngineScaleUpdateListener"]=oh;oh.__name__="com.stencyl.graphics.EngineScaleUpdateListener";oh.__isInterface__=!0;oh.prototype={updateScale:null, +__class__:oh};var ke=function(a,b){this.cacheParentAnchor=S.zero;ta.call(this);this.offsetY=this.offsetX=0;null!=a?this.initializeFromBitmap(a):null!=b&&this.initializeFromBitmapData(b)};k["com.stencyl.graphics.BitmapWrapper"]=ke;ke.__name__="com.stencyl.graphics.BitmapWrapper";ke.__interfaces__=[oh];ke.__super__=ta;ke.prototype=u(ta.prototype,{img:null,offsetX:null,offsetY:null,cacheParentAnchor:null,smoothing:null,imgX:null,imgY:null,tweenProps:null,initializeFromBitmap:function(a){this.img=a;this.addChild(a)}, +initializeFromBitmapData:function(a){this.initializeFromBitmap(new Vb(a))},set_imgX:function(a){this.set_x((a+this.offsetX)*h.SCALE-this.cacheParentAnchor.x);return this.imgX=a},get_imgX:function(){return this.imgX},set_imgY:function(a){this.set_y((a+this.offsetY)*h.SCALE-this.cacheParentAnchor.y);return this.imgY=a},get_imgY:function(){return this.imgY},set_smoothing:function(a){return this.img.smoothing=a},get_smoothing:function(){return this.img.smoothing},setOrigin:function(a,b){this.set_x(this.get_x()+ +(a-this.offsetX)*h.SCALE);this.set_y(this.get_y()+(b-this.offsetY)*h.SCALE);this.offsetX=a;this.offsetY=b;this.img.set_x(-a*h.SCALE);this.img.set_y(-b*h.SCALE)},updateScale:function(){this.updatePosition()},updatePosition:function(){this.set_x((this.get_imgX()+this.offsetX)*h.SCALE-this.cacheParentAnchor.x);this.set_y((this.get_imgY()+this.offsetY)*h.SCALE-this.cacheParentAnchor.y)},get_tweenProps:function(){null==this.tweenProps&&(this.tweenProps=new Tn(this));return this.tweenProps},__class__:ke, +__properties__:u(ta.prototype.__properties__,{get_tweenProps:"get_tweenProps",set_imgY:"set_imgY",get_imgY:"get_imgY",set_imgX:"set_imgX",get_imgX:"get_imgX",set_smoothing:"set_smoothing",get_smoothing:"get_smoothing"})});var Tn=function(a){this.bmp=a;this.xy=(new Kf).doOnUpdate(q(this,this.onUpdateXY));this.angle=(new tc).doOnUpdate(q(this,this.onUpdateAngle));this.alpha=(new tc).doOnUpdate(q(this,this.onUpdateAlpha));this.scaleXY=(new Kf).doOnUpdate(q(this,this.onUpdateScaleXY))};k["com.stencyl.graphics.BitmapTweenProperties"]= +Tn;Tn.__name__="com.stencyl.graphics.BitmapTweenProperties";Tn.prototype={xy:null,angle:null,alpha:null,scaleXY:null,bmp:null,pause:function(){this.xy.paused=!0;this.angle.paused=!0;this.alpha.paused=!0;this.scaleXY.paused=!0},unpause:function(){this.xy.paused=!1;this.angle.paused=!1;this.alpha.paused=!1;this.scaleXY.paused=!1},cancel:function(){this.xy.active&&jb.cancel(this.xy);this.angle.active&&jb.cancel(this.angle);this.alpha.active&&jb.cancel(this.alpha);this.scaleXY.active&&jb.cancel(this.scaleXY)}, +onUpdateXY:function(){this.bmp.set_imgX(this.xy.value1);this.bmp.set_imgY(this.xy.value2)},onUpdateAngle:function(){this.bmp.set_rotation(this.angle.value)},onUpdateAlpha:function(){this.bmp.set_alpha(this.alpha.value)},onUpdateScaleXY:function(){this.bmp.set_scaleX(this.scaleXY.value1);this.bmp.set_scaleY(this.scaleXY.value2)},__class__:Tn};var gl=function(){};k["com.stencyl.graphics.BlendModes"]=gl;gl.__name__="com.stencyl.graphics.BlendModes";gl.get=function(a){return gl.stringBlendMap.h[a]};var Jd= +function(){this.drawActor=!1;this.x=this.y=0;this.scaleX=this.scaleY=h.SCALE;this.alpha=1;this.blendMode=10;this.strokeColor=this.fillColor=this.strokeSize=0;this.rect=new fa;this.rect2=new fa;this.point=new oa;this.point2=new oa;this.data=[0,0,0];this.drawPoly=!1;this.firstY=this.firstX=this.pointCounter=0;this.font=this.defaultFont=new Ke(-1,0,"",!0);this.mtx=new Aa};k["com.stencyl.graphics.G"]=Jd;Jd.__name__="com.stencyl.graphics.G";Jd.resetStatics=function(){Jd.fontCache=null};Jd.visitStringCache= +function(){for(var a=Jd.drawnStringCacheKeys.length;0<a--;){var b=Jd.drawnStringCache.h[Jd.drawnStringCacheKeys[a]];--b.lifetime;if(0==b.lifetime){b.img.dispose();b=Jd.drawnStringCacheKeys[a];var c=Jd.drawnStringCache;Object.prototype.hasOwnProperty.call(c.h,b)&&delete c.h[b];Jd.drawnStringCacheKeys[a]=Jd.drawnStringCacheKeys[Jd.drawnStringCacheKeys.length-1];Jd.drawnStringCacheKeys.pop()}}};Jd.prototype={defaultFont:null,graphics:null,x:null,y:null,scaleX:null,scaleY:null,alpha:null,blendMode:null, +strokeSize:null,fillColor:null,strokeColor:null,font:null,fontData:null,mtx:null,rect:null,rect2:null,point:null,point2:null,data:null,drawPoly:null,pointCounter:null,firstX:null,firstY:null,drawActor:null,actor:null,resetGraphicsSettings:function(){this.alpha=1;this.strokeColor=this.fillColor=this.strokeSize=0;this.font=this.defaultFont},setFont:function(a){null!=a&&a!=this.font&&(this.font=a)},startGraphics:function(){!this.drawActor||null!=this.actor&&this.actor.isHUD||(this.x-=h.cameraX,this.y-= +h.cameraY);0==this.strokeSize?this.graphics.lineStyle():this.graphics.lineStyle(this.strokeSize*h.SCALE,this.strokeColor,this.alpha)},endGraphics:function(){this.drawActor&&!this.actor.isHUD&&(this.x+=h.cameraX,this.y+=h.cameraY);this.graphics.lineStyle()},translate:function(a,b){this.x+=a*this.scaleX;this.y+=b*this.scaleY},moveTo:function(a,b){this.drawActor?(null!=this.actor&&this.translateToActor(this.actor),this.x+=a*this.scaleX,this.y+=b*this.scaleY):(this.x=a*this.scaleX,this.y=b*this.scaleY)}, +translateToScreen:function(){this.drawActor=!1;this.actor=null;this.y=this.x=0},translateToActor:function(a){this.drawActor=!0;this.actor=a;if(a.smoothMove){var b=a.drawY-Math.floor(a.cacheHeight/2)-a.currOffset.y;this.x=(a.drawX-Math.floor(a.cacheWidth/2)-a.currOffset.x)*this.scaleX;this.y=b*this.scaleY}else this.x=a.colX*this.scaleX,this.y=a.colY*this.scaleY},getCacheKey:function(a,b,c){return a+":"+b.ID+":"+c+":"+h.SCALE+":"+b.get_letterSpacing()},drawString:function(a,b,c){null==this.font&&this.resetFont(); +this.drawActor?null!=this.actor&&this.actor.isHUD?(b=this.x+b*this.scaleX,c=this.y+c*this.scaleY):(b=this.x+b*this.scaleX-h.cameraX,c=this.y+c*this.scaleY-h.cameraY):(b=this.x+b*this.scaleX,c=this.y+c*this.scaleY);this.mtx.identity();this.mtx.translate(b,c);var d=null,e=this.font;e=a+":"+e.ID+":"+this.alpha+":"+h.SCALE+":"+e.get_letterSpacing();if(Object.prototype.hasOwnProperty.call(Jd.drawnStringCache.h,e))a=Jd.drawnStringCache.h[e],a.lifetime=5,d=a.img;else{var g=this.font.font.getTextWidth(a, +this.font.fontScale),f=this.font.font.getFontHeight()*this.font.fontScale|0;0<g&&0<f&&(d=new Ja(g,f,!0,0),this.font.font.renderToImg(d,a,0,this.alpha,0,0,this.font.fontScale,0,!1),a=new Un,a.img=d,a.lifetime=5,Jd.drawnStringCache.h[e]=a,Jd.drawnStringCacheKeys.push(e))}null!=d&&(this.graphics.beginBitmapFill(d,this.mtx,!1,ja.antialias),this.graphics.drawRect(b,c,d.width,d.height),this.graphics.endFill())},drawLine:function(a,b,c,d){a*=this.scaleX;b*=this.scaleY;c*=this.scaleX;d*=this.scaleY;this.startGraphics(); +this.graphics.moveTo(this.x+a,this.y+b);this.graphics.lineTo(this.x+c,this.y+d);this.endGraphics()},fillPixel:function(a,b){this.startGraphics();this.graphics.lineStyle();this.graphics.beginFill(this.fillColor,this.alpha);this.graphics.drawRect(this.x+(a*h.SCALE|0),this.y+(b*h.SCALE|0),h.SCALE|0,h.SCALE|0);this.graphics.endFill();this.endGraphics()},drawRect:function(a,b,c,d){a*=this.scaleX;b*=this.scaleY;c*=this.scaleX;d*=this.scaleY;this.startGraphics();this.graphics.drawRect(this.x+a,this.y+b, +c,d);this.endGraphics()},fillRect:function(a,b,c,d){a*=this.scaleX;b*=this.scaleY;c*=this.scaleX;d*=this.scaleY;this.startGraphics();this.graphics.beginFill(this.fillColor,this.alpha);this.graphics.drawRect(this.x+a,this.y+b,c,d);this.graphics.endFill();this.endGraphics()},drawRoundRect:function(a,b,c,d,e){a*=this.scaleX;b*=this.scaleY;c*=this.scaleX;d*=this.scaleY;this.startGraphics();this.graphics.drawRoundRect(this.x+a,this.y+b,c,d,e,e);this.endGraphics()},fillRoundRect:function(a,b,c,d,e){a*= +this.scaleX;b*=this.scaleY;c*=this.scaleX;d*=this.scaleY;this.startGraphics();this.graphics.beginFill(this.fillColor,this.alpha);this.graphics.drawRoundRect(this.x+a,this.y+b,c,d,e,e);this.graphics.endFill();this.endGraphics()},drawCircle:function(a,b,c){a*=this.scaleX;b*=this.scaleY;c*=this.scaleX;this.startGraphics();this.graphics.drawCircle(this.x+a,this.y+b,c);this.endGraphics()},fillCircle:function(a,b,c){a*=this.scaleX;b*=this.scaleY;c*=this.scaleX;this.startGraphics();this.graphics.beginFill(this.fillColor, +this.alpha);this.graphics.drawCircle(this.x+a,this.y+b,c);this.graphics.endFill();this.endGraphics()},beginFillPolygon:function(){this.drawPoly=!1;this.startGraphics();this.graphics.moveTo(this.x,this.y);this.pointCounter=0},endDrawingPolygon:function(){2<=this.pointCounter&&(this.drawPoly?this.graphics.lineTo(this.x+this.firstX,this.y+this.firstY):(this.graphics.lineTo(this.x+this.firstX,this.y+this.firstY),this.graphics.endFill()),this.endGraphics())},beginDrawPolygon:function(){this.drawPoly=!0; +this.startGraphics();this.graphics.moveTo(this.x,this.y);this.pointCounter=0},addPointToPolygon:function(a,b){a*=this.scaleX;b*=this.scaleY;0==this.pointCounter&&(this.firstX=a,this.firstY=b,this.graphics.moveTo(this.x+a,this.y+b),this.drawPoly||this.graphics.beginFill(this.fillColor,this.alpha));this.pointCounter++;this.graphics.lineTo(this.x+a,this.y+b)},drawImage:function(a,b,c,d,e){null==d&&(d=0);b*=this.scaleX;c*=this.scaleY;this.rect.x=0;this.rect.y=0;this.rect.width=a.width;this.rect.height= +a.height;this.drawActor?null!=this.actor&&this.actor.isHUD?(this.point.x=this.x+b,this.point.y=this.y+c):(this.point.x=this.x+b-h.cameraX,this.point.y=this.y+c-h.cameraY):(this.point.x=this.x+b,this.point.y=this.y+c);this.mtx.identity();this.mtx.rotate(d);this.mtx.translate(this.point.x,this.point.y);0==d?(1!=this.alpha&&(this.point2.x=0,this.point2.y=0,this.rect2.width=a.width,this.rect2.height=a.height,b=new Ja(a.width,a.height,!0,this.toARGB(0,255*this.alpha|0)),c=new Ja(a.width,a.height,!0,0), +c.copyPixels(a,this.rect2,this.point2,b,null,!0),a=c),this.graphics.beginBitmapFill(a,this.mtx),this.graphics.drawRect(this.point.x,this.point.y,a.width,a.height)):(1!=this.alpha&&(this.point2.x=0,this.point2.y=0,this.rect2.width=a.width,this.rect2.height=a.height,b=new Ja(a.width,a.height,!0,this.toARGB(0,255*this.alpha|0)),c=new Ja(a.width,a.height,!0,0),c.copyPixels(a,this.rect2,this.point2,b,null,!0),a=c),b=new Ja(a.width+2,a.height+2,!0,0),c=Math.sqrt(Math.pow(b.width,2)+Math.pow(b.height,2))| +0,d=new fa(0,0,a.width,a.height),e=new oa(1,1),b.copyPixels(a,d,e),this.graphics.beginBitmapFill(b,this.mtx,!1,ja.antialias),this.graphics.drawRect(this.x-(c-a.width)/2,this.y-(c-a.height)/2,c,c));this.graphics.endFill()},toARGB:function(a,b){return a+(b<<24)},resetFont:function(){this.font=this.defaultFont;this.font.fontScale!=h.SCALE&&(this.font.fontScale=h.SCALE)},__class__:Jd};var Un=function(){};k["com.stencyl.graphics._G.TemporaryImage"]=Un;Un.__name__="com.stencyl.graphics._G.TemporaryImage"; +Un.prototype={lifetime:null,img:null,__class__:Un};var $c=function(){};k["com.stencyl.graphics.GLUtil"]=$c;$c.__name__="com.stencyl.graphics.GLUtil";$c.initialize=function(){null==$c.gl&&($c.context=h.stage.window.context,$c.context3D=h.stage.context3D,$c.gl=Yb.fromRenderContext($c.context),$c.renderer=h.stage.__renderer,$c.textureMaxSize=$c.gl.getParameter($c.gl.MAX_TEXTURE_SIZE),$c.textureMaxSize=$c.textureMaxSize/2|0,$c.textureMaxSize>$c.MAX_TEXTURE_CAP&&($c.textureMaxSize=$c.MAX_TEXTURE_CAP), +null==Zb.__supportsBGRA&&(new Ja(1,1,!0,0)).getTexture($c.context3D))};$c.uploadTexture=function(a,b){a.getTexture($c.context3D);b&&$c.disposeSoftwareBuffer(a)};$c.disposeSoftwareBuffer=function(a){a.image.buffer.__srcCanvas=null;a.image.buffer.__srcContext=null;a.image=null;a.readable=!1;a.__surface=null;a.__vertexBuffer=null;a.__framebuffer=null;a.__framebufferContext=null};$c.createNewTexture=function(a){var b=$c.context3D.createRectangleTexture(a,a,1,!1);b.uploadFromTypedArray(null);var c=new Ja(0, +0,!0,0);c.__resize(a,a);c.readable=!1;c.__texture=b;c.__textureContext=$c.context;c.__isValid=!0;c.image=null;return c};$c.clearTexture=function(a){a.__texture.uploadFromTypedArray(null)};var zd=function(a){this.value=a};k["com.stencyl.graphics.Scale"]=zd;zd.__name__="com.stencyl.graphics.Scale";zd.fromString=function(a){switch(a){case "1.5x":return zd._1_5X;case "1x":return zd._1X;case "2x":return zd._2X;case "3x":return zd._3X;case "4x":return zd._4X;default:return zd._1X}};zd.prototype={value:null, +toString:function(){return 1==this.value?"1x":1.5==this.value?"1.5x":2==this.value?"2x":3==this.value?"3x":4==this.value?"4x":""},__class__:zd};var xj={_new:function(a){return a},fromString:function(a){switch(a){case "FULLSCREEN":return 1;case "NO_SCALING":return 0;case "SCALE_TO_FIT_FILL":return 4;case "SCALE_TO_FIT_FULLSCREEN":return 5;case "SCALE_TO_FIT_LETTERBOX":return 3;case "STRETCH_TO_FIT":return 2;default:return 0}},toString:function(a){switch(a){case 0:return"NO_SCALING";case 1:return"FULLSCREEN"; +case 2:return"STRETCH_TO_FIT";case 3:return"SCALE_TO_FIT_LETTERBOX";case 4:return"SCALE_TO_FIT_FILL";case 5:return"SCALE_TO_FIT_FULLSCREEN";default:return"NO_SCALING"}}},xg=function(){this.xSpacing=this.ySpacing=this.lineHeight=this.baseline=0;this.isDefault=!1;this._point=new oa;this._glyphs=new Sa;this._num_letters=0};k["com.stencyl.graphics.fonts.BitmapFont"]=xg;xg.__name__="com.stencyl.graphics.fonts.BitmapFont";xg.store=function(a,b){xg._storedFonts.h[a]=b};xg.fetch=function(a){return xg._storedFonts.h[a]}; +xg.prototype={_glyphs:null,_num_letters:null,_tileset:null,_glyphString:null,_point:null,isDefault:null,xSpacing:null,ySpacing:null,lineHeight:null,baseline:null,loadAngelCode:function(a,b){this.reset();if(null!=a){this._glyphString="";var c=new fa,d=0;this._tileset=new xi(a);a=null;for(b=b.elements();b.hasNext();){var e=b.next();if(e.nodeType!=U.Element)throw R.thrown("Bad node type, expected Element but found "+(null==e.nodeType?"null":Ea.toString(e.nodeType)));if("font"==e.nodeName)for(e=e.elements();e.hasNext();){var g= +e.next();if(g.nodeType!=U.Element)throw R.thrown("Bad node type, expected Element but found "+(null==g.nodeType?"null":Ea.toString(g.nodeType)));if("info"==g.nodeName){var f=[];var l=0;for(g=g.get("spacing").split(",");l<g.length;){var t=g[l];++l;f.push(n.parseInt(t))}this.xSpacing=f[0];this.ySpacing=f[1]}else{if(g.nodeType!=U.Element)throw R.thrown("Bad node type, expected Element but found "+(null==g.nodeType?"null":Ea.toString(g.nodeType)));if("common"==g.nodeName)this.lineHeight=n.parseInt(g.get("lineHeight")), +this.baseline=n.parseInt(g.get("base"));else{if(g.nodeType!=U.Element)throw R.thrown("Bad node type, expected Element but found "+(null==g.nodeType?"null":Ea.toString(g.nodeType)));"chars"==g.nodeName&&(a=g)}}}}if(null!=a)for(b=a.elements();b.hasNext();){e=b.next();if(e.nodeType!=U.Element)throw R.thrown("Bad node type, expected Element but found "+(null==e.nodeType?"null":Ea.toString(e.nodeType)));"char"==e.nodeName&&(a=new Vn,a.tileID=d,a.xoffset=n.parseInt(e.get("xoffset")),a.yoffset=n.parseInt(e.get("yoffset")), +a.xadvance=n.parseInt(e.get("xadvance")),c.x=n.parseInt(e.get("x")),c.y=n.parseInt(e.get("y")),c.width=n.parseInt(e.get("width")),c.height=n.parseInt(e.get("height")),e=n.parseInt(e.get("id")),f=String.fromCodePoint(e),this._glyphString+=f,a.tileID=" "!=f&&""!=f&&0<c.width&&0<c.height?this._tileset.addRect(c):-1,this._glyphs.h[e]=a,this._num_letters++,++d)}}return this},reset:function(){this.dispose();this._glyphs=new Sa;this._num_letters=0;this._glyphString=""},prepareBitmapData:function(a,b){for(var c= +a.getPixel(0,0),d=0,e;d<a.height;){var g=0;for(e=0;e<a.width;){if((a.getPixel(e,d)|0)!=c){for(var f=e,l=d;(a.getPixel(f,d)|0)!=c;)++f;for(;(a.getPixel(e,l)|0)!=c;)++l;f-=e;l-=d;b.push(new fa(e,d,f,l));l>g&&(g=l);e+=f}++e}d+=g+1}b=a.clone();g=a.getPixel32(0,0);for(d=0;d<a.height;){for(e=0;e<a.width;)c=a.getPixel32(e,d),c==g&&b.setPixel32(e,d,0),++e;++d}return b},dispose:function(){this._tileset=null;this._num_letters=0;this._glyphs=null},render:function(a,b,c,d,e,g,f){f=0;for(var x=b.length;f<x;){var t= +f++;t=F.cca(b,t);t=this._glyphs.h[t];if(null!=t){this._point.x=d+t.xoffset*g;this._point.y=e+t.yoffset*g;if(-1!=t.tileID){var m=new eg(t.tileID,this._point.x,this._point.y);m.set_scaleX(g);m.set_scaleY(g);m.set_alpha(c);a.addTile(m)}d+=(t.xadvance+this.xSpacing)*g}}},renderToImg:function(a,b,c,d,e,g,f,l,t){null==t&&(t=!0);null==l&&(l=0);var x=new fg(a.width,a.height,this._tileset,ja.antialias);this.render(x,b,d,e,g,f,l);t?a.draw(x,null,new Gc((c>>16&255)/255,(c>>8&255)/255,(c&255)/255)):a.draw(x); +x.removeTiles()},toARGB:function(a,b){return a+(b<<24)},getTextWidth:function(a,b){null==b&&(b=1);for(var c=0,d=a.length,e=0;e<d;){var g=e++;g=F.cca(a,g);g=this._glyphs.h[g];null!=g&&(c+=g.xadvance)}1<d&&(c+=(d-1)*this.xSpacing);return c*b|0},getFontHeight:function(a){null==a&&(a=1);return this.lineHeight*a|0},numLetters:null,get_numLetters:function(){return this._num_letters},containsCharacter:function(a){return 0<=this._glyphString.indexOf(a)},getTileset:function(){return this._tileset},__class__:xg, +__properties__:{get_numLetters:"get_numLetters"}};var Vn=function(){};k["com.stencyl.graphics.fonts.FontSymbol"]=Vn;Vn.__name__="com.stencyl.graphics.fonts.FontSymbol";Vn.prototype={tileID:null,xoffset:null,yoffset:null,xadvance:null,__class__:Vn};var hl=function(a){this.cacheParentAnchor=S.zero;ta.call(this);this._text="";this._color=0;this._useColor=!0;this._outline=!1;this._outlineColor=0;this._shadow=!1;this._shadowColor=0;this._background=!1;this._backgroundColor=16777215;this._alignment=1;this._padding= +0;this._pendingTextChange=!1;this._fieldWidth=1;this._multiLine=!1;this._fontScale=1;this._autoUpperCase=!1;this._wordWrap=this._fixedWidth=!0;this._alpha=1;null==a||a==Ke.defaultFont?(this._font=Ke.defaultFont,this._fontScale=h.SCALE):this._font=a;this.set_cacheAsBitmap(!0);this._pendingTextChange=!0;this.update()};k["com.stencyl.graphics.fonts.Label"]=hl;hl.__name__="com.stencyl.graphics.fonts.Label";hl.__interfaces__=[oh];hl.__super__=ta;hl.prototype=u(ta.prototype,{_stencylFont:null,_font:null, +_text:null,_color:null,_useColor:null,_outline:null,_outlineColor:null,_shadow:null,_shadowColor:null,_background:null,_backgroundColor:null,_alignment:null,_padding:null,_fontScale:null,_autoUpperCase:null,_wordWrap:null,_fixedWidth:null,_pendingTextChange:null,_fieldWidth:null,_multiLine:null,_alpha:null,labelX:null,labelY:null,_shadowTilemap:null,_outlineTilemap:null,_characterTilemap:null,cacheParentAnchor:null,destroy:function(){this._font=this._stencylFont=null;this.removeChildren();this._characterTilemap= +this._shadowTilemap=this._outlineTilemap=null},get_text:function(){return this._text},set_text:function(a){a.split("\\n").join("\n")!=this._text&&(this._text=a,this._text=this._text.split("\\n").join("\n"),this._autoUpperCase&&(this._text=this._text.toUpperCase()),this._pendingTextChange=!0,this.update());return this._text},updateBitmapData:function(){if(null!=this._font){var a=this._fieldWidth*h.SCALE|0,b=this._padding*h.SCALE|0,c=a,d=[],e=this._alignment,g=this._text.split("\n"),f=-1;this._multiLine|| +(g=[g[0]]);for(var l,t;++f<g.length;)if(this._fixedWidth){var m=!1;var k=g[f].split(" ");if(0<k.length)for(var p=0,n="";!m;){t=k[p];var r=n+t+" ",q=!1;if(this._wordWrap)this._font.getTextWidth(r,this._fontScale)>a?(""==n?k.splice(0,1):d.push(F.substr(n,0,n.length-1)),n="",this._multiLine?k.splice(0,p):k.splice(0,k.length),p=0,q=!0):(n+=t+" ",++p);else if(this._font.getTextWidth(r,this._fontScale)>a){var v=0;for(l=t.length;v<l;)r=n+t.charAt(v),this._font.getTextWidth(r,this._fontScale)>a?(d.push(F.substr(n, +0,n.length-1)),t=n="",p=k.length,v=l,q=!0):n+=t.charAt(v),++v}else n+=t+" ",++p;p>=k.length&&(q||(m=F.substr(n,0,n.length-1),c=Math.floor(Math.max(c,this._font.getTextWidth(m,this._fontScale))),d.push(m)),m=!0)}else d.push("")}else c=Math.floor(Math.max(c,this._font.getTextWidth(g[f],this._fontScale))),d.push(g[f]);c=c+2*b+(this._outline?2:0);g=Math.floor(2*b+Math.max(1,d.length*this._font.lineHeight*this._fontScale+(this._shadow?1:0)+(this._outline?2:0))+(1<=d.length?this._font.ySpacing*(d.length- +1)*this._fontScale:0));this.get_graphics().clear();1==this._background&&(this.get_graphics().beginFill(this._backgroundColor,this._alpha),this.get_graphics().drawRect(0,0,c,g),this.get_graphics().endFill());this.removeChildren();this._outline&&(this._outlineTilemap=new fg(c,g,this._font.getTileset(),ja.antialias),this.tint(this._outlineTilemap,this._outlineColor),this.addChild(this._outlineTilemap));this._shadow&&(this._shadowTilemap=new fg(c,g,this._font.getTileset(),ja.antialias),this.tint(this._shadowTilemap, +this._shadowColor),this.addChild(this._shadowTilemap));this._characterTilemap=new fg(c,g,this._font.getTileset(),ja.antialias);this._useColor&&this.tint(this._characterTilemap,this._color);this.addChild(this._characterTilemap);for(f=g=0;f<d.length;){k=d[f];++f;n=p=0;3==e&&(p=this._fixedWidth?Math.floor((a-this._font.getTextWidth(k,this._fontScale))/2):Math.floor((c-this._font.getTextWidth(k,this._fontScale))/2));2==e&&(p=this._fixedWidth?a-Math.floor(this._font.getTextWidth(k,this._fontScale)):c- +Math.floor(this._font.getTextWidth(k,this._fontScale))-2*b);p+=b;n+=b+(g*(this._font.lineHeight+this._font.ySpacing)*this._fontScale|0);if(this._outline){for(m=0;3>m;)for(v=m++,l=0;3>l;)t=l++,this._font.render(this._outlineTilemap,k,this._alpha,p+t,n+v,this._fontScale);++p;++n}this._shadow&&this._font.render(this._shadowTilemap,k,this._alpha,p+1,n+1,this._fontScale);this._font.render(this._characterTilemap,k,this._alpha,p,n,this._fontScale);++g}this._pendingTextChange=!1}},update:function(){this._pendingTextChange&& +this.updateBitmapData()},get_background:function(){return this._background},set_background:function(a){this._background!=a&&(this._background=a,this._pendingTextChange=!0,this.update());return a},get_backgroundColor:function(){return this._backgroundColor},set_backgroundColor:function(a){this._backgroundColor!=a&&(this._backgroundColor=a,this._background&&(this._pendingTextChange=!0,this.update()));return a},get_shadow:function(){return this._shadow},set_shadow:function(a){this._shadow!=a&&(this._shadow= +a,this._outline=!1,this.updateGlyphs(!1,this._shadow,!1),this._pendingTextChange=!0,this.update());return a},get_shadowColor:function(){return this._shadowColor},set_shadowColor:function(a){this._shadowColor!=a&&(this._shadowColor=a,this.updateGlyphs(!1,this._shadow,!1),this._pendingTextChange=!0,this.update());return a},get_padding:function(){return this._padding},set_padding:function(a){this._padding!=a&&(this._padding=a,this._pendingTextChange=!0,this.update());return a},get_color:function(){return this._color}, +set_color:function(a){this._color!=a&&(this._color=a,this.updateGlyphs(!0,!1,!1),this._pendingTextChange=!0,this.update());return a},get_useColor:function(){return this._useColor},set_useColor:function(a){this._useColor!=a&&(this._useColor=a,this.updateGlyphs(!0,!1,!1),this._pendingTextChange=!0,this.update());return a},setWidth:function(a){1>a&&(a=1);a!=this._fieldWidth&&(this._fieldWidth=a,this._pendingTextChange=!0,this.update());return a},get_alignment:function(){return this._alignment},set_alignment:function(a){this._alignment!= +a&&(this._alignment=a,this._pendingTextChange=!0,this.update());return a},get_multiLine:function(){return this._multiLine},set_multiLine:function(a){this._multiLine!=a&&(this._multiLine=a,this._pendingTextChange=!0,this.update());return a},get_outline:function(){return this._outline},set_outline:function(a){this._outline!=a&&(this._outline=a,this._shadow=!1,this.updateGlyphs(!1,!1,!0),this._pendingTextChange=!0,this.update());return a},get_outlineColor:function(){return this._outlineColor},set_outlineColor:function(a){this._outlineColor!= +a&&(this._outlineColor=a,this.updateGlyphs(!1,!1,this._outline),this._pendingTextChange=!0,this.update());return a},get_font:function(){return this._font},set_font:function(a){this._font!=a&&(this._font=a,this.updateGlyphs(!0,this._shadow,this._outline),this._pendingTextChange=!0,this.update());return a},get_stencylFont:function(){return this._stencylFont},set_stencylFont:function(a){this._stencylFont!=a&&(this._stencylFont=a,null==a?(this._font=Ke.defaultFont,this._fontScale=h.SCALE):(this._font= +a.font,this._fontScale=a.fontScale),this.updateGlyphs(!0,this._shadow,this._outline),this._pendingTextChange=!0,this.update());return a},setAlpha:function(a){this._alpha!=a&&(this._alpha=a,this._pendingTextChange=!0,this.update())},getAlpha:function(){return this._alpha},get_fontScale:function(){return this._fontScale},set_fontScale:function(a){var b=Math.abs(a);b!=this._fontScale&&(this._fontScale=b,this.updateGlyphs(!0,this._shadow,this._outline),this._pendingTextChange=!0,this.update());return a}, +get_autoUpperCase:function(){return this._autoUpperCase},set_autoUpperCase:function(a){this._autoUpperCase!=a&&(this._autoUpperCase=a)&&this.set_text(this._text.toUpperCase());return this._autoUpperCase},get_wordWrap:function(){return this._wordWrap},set_wordWrap:function(a){this._wordWrap!=a&&(this._wordWrap=a,this._pendingTextChange=!0,this.update());return this._wordWrap},get_fixedWidth:function(){return this._fixedWidth},set_fixedWidth:function(a){this._fixedWidth!=a&&(this._fixedWidth=a,this._pendingTextChange= +!0,this.update());return this._fixedWidth},set_labelX:function(a){this.set_x(a*h.SCALE);return this.labelX=a},get_labelX:function(){return this.labelX},set_labelY:function(a){this.set_y(a*h.SCALE);return this.labelY=a},get_labelY:function(){return this.labelY},updatePosition:function(){this.set_x(this.get_labelX()*h.SCALE-this.cacheParentAnchor.x);this.set_y(this.get_labelY()*h.SCALE-this.cacheParentAnchor.y)},updateScale:function(){this.updatePosition();null!=this._stencylFont?this.set_font(this._stencylFont.font): +this._font==Ke.defaultFont&&this.set_fontScale(h.SCALE)},updateGlyphs:function(a,b,c){},tint:function(a,b){var c=new Ta;c.colorize(b,1);a.set_filters([c.getFilter()])},__class__:hl,__properties__:u(ta.prototype.__properties__,{set_fixedWidth:"set_fixedWidth",get_fixedWidth:"get_fixedWidth",set_wordWrap:"set_wordWrap",get_wordWrap:"get_wordWrap",set_autoUpperCase:"set_autoUpperCase",get_autoUpperCase:"get_autoUpperCase",set_fontScale:"set_fontScale",get_fontScale:"get_fontScale",set_stencylFont:"set_stencylFont", +get_stencylFont:"get_stencylFont",set_font:"set_font",get_font:"get_font",set_outlineColor:"set_outlineColor",get_outlineColor:"get_outlineColor",set_outline:"set_outline",get_outline:"get_outline",set_multiLine:"set_multiLine",get_multiLine:"get_multiLine",set_alignment:"set_alignment",get_alignment:"get_alignment",set_useColor:"set_useColor",get_useColor:"get_useColor",set_color:"set_color",get_color:"get_color",set_padding:"set_padding",get_padding:"get_padding",set_shadowColor:"set_shadowColor", +get_shadowColor:"get_shadowColor",set_shadow:"set_shadow",get_shadow:"get_shadow",set_backgroundColor:"set_backgroundColor",get_backgroundColor:"get_backgroundColor",set_background:"set_background",get_background:"get_background",set_text:"set_text",get_text:"get_text",set_labelY:"set_labelY",get_labelY:"get_labelY",set_labelX:"set_labelX",get_labelX:"get_labelX"})});var Wn=function(){};k["com.stencyl.graphics.fonts.TextAlign"]=Wn;Wn.__name__="com.stencyl.graphics.fonts.TextAlign";var ad=function(){}; +k["com.stencyl.graphics.shaders.BasicShader"]=ad;ad.__name__="com.stencyl.graphics.shaders.BasicShader";ad.prototype={multipassParent:null,multipassTarget:null,model:null,setProperty:function(a,b){this.model.setUniform(a,b)},getProperty:function(a){return this.model.getUniform(a)},tweenProperty:function(a,b,c,d){null==c&&(c=1);this.model.tweenUniform(a,b,c,d)},enable:function(){h.engine.addShader(this.model)},disable:function(){h.engine.clearShaders()},setTimeScale:function(a){this.model.timeScale= +a},combine:function(a){this.multipassTarget=a;a.multipassParent=this;return a},__class__:ad};var Xn=function(a,b,c,d,e,g,f,l,t){null==t&&(t=.0075);null==l&&(l=.009);null==f&&(f=.012);null==g&&(g=.6);null==e&&(e=.4);null==d&&(d=3);null==c&&(c=4);null==b&&(b=.004);null==a&&(a=.25);this.model=new ld(this,"\n\t\t\t#ifdef GL_ES\n\t\t\t\tprecision mediump float;\n\t\t\t#endif\n\t\t\t\n\t\t\tvarying vec2 vTexCoord;\n\t\t\tuniform vec2 uResolution;\n\t\t\tuniform sampler2D uImage0;\n\t\t\t\n\t\t\tuniform float currPixelWeight;\n\t\t\tuniform float neighborPixelWeight;\n\t\t\tuniform float lowThreshold;\n\t\t\tuniform float mediumThreshold;\n\t\t\tuniform float lowMultiplier;\n\t\t\tuniform float mediumMultiplier;\n\t\t\tuniform float highMultiplier;\n\n\t\t\tvoid main(void)\n\t\t\t{\n\t\t\t\tvec4 sum = vec4(0.0);\n\t\t\t\tvec2 q1 = vTexCoord;\n\t\t\t\tvec4 oricol = texture2D(uImage0, vec2(q1.x, q1.y));\n\t\t\t\tvec3 col;\n\t\t\t\t\n\t\t\t\tfor(int i = -3; i < 3; i++) \n\t\t\t\t{\n\t\t\t\t\tfor(int j = -3; j < 3; j++) \n\t\t\t\t\t{\n\t\t\t\t\t\tsum += texture2D(uImage0, vec2(j, i) * neighborPixelWeight + vec2(q1.x, q1.y)) * currPixelWeight;\n\t\t\t\t\t}\n\t\t\t \t}\n\t\t\t \n\t\t\t \tif(oricol.r < lowThreshold) \n\t\t\t \t{\n\t\t\t\t\tgl_FragColor = sum * sum * lowMultiplier + oricol;\n\t\t\t \t} \n\t\t\t \n\t\t\t \telse \n\t\t\t \t{\n\t\t\t\t\tif(oricol.r < mediumThreshold) \n\t\t\t\t\t{\n\t\t\t\t\t\tgl_FragColor = sum * sum * mediumMultiplier + oricol;\n\t\t\t\t \t} \n\t\t\t\t \t\n\t\t\t\t \telse \n\t\t\t\t \t{\n\t\t\t\t\t\tgl_FragColor = sum * sum * highMultiplier + oricol;\n\t\t\t\t \t}\n\t\t\t }\n\t\t\t}\n\t\t", +!0);this.setProperty("currPixelWeight",a);this.setProperty("neighborPixelWeight",b);this.setProperty("sampleX",c);this.setProperty("sampleY",d);this.setProperty("lowThreshold",e);this.setProperty("mediumThreshold",g);this.setProperty("lowMultiplier",f);this.setProperty("mediumMultiplier",l);this.setProperty("highMultiplier",t)};k["com.stencyl.graphics.shaders.BloomShader"]=Xn;Xn.__name__="com.stencyl.graphics.shaders.BloomShader";Xn.__super__=ad;Xn.prototype=u(ad.prototype,{__class__:Xn});var Yn= +function(a,b,c){null==c&&(c=1);null==b&&(b=1);null==a&&(a=2);this.model=new ld(this,"\n\t\t\t#ifdef GL_ES\n\t\t\t\tprecision mediump float;\n\t\t\t#endif\n\t\t\t\n\t\t\t//in attributes from our vertex shader\n\t\t\tvarying vec2 vTexCoord;\n\t\t\t\n\t\t\t//declare uniforms\n\t\t\tuniform sampler2D uImage0;\n\t\t\tuniform vec2 uResolution;\n\t\t\t\n\t\t\tuniform float radius;\n\t\t\tuniform float dirx;\n\t\t\tuniform float diry;\n\t\t\t\n\t\t\tvoid main()\n\t\t\t{\n\t\t\t\t//this will be our RGBA sum\n\t\t\t\tvec4 sum = vec4(0.0);\n\t\t\t\n\t\t\t\t//our original texcoord for this fragment\n\t\t\t\tvec2 tc = vTexCoord;\n\t\t\t\n\t\t\t\t//the amount to blur, i.e. how far off center to sample from\n\t\t\t\t//1.0 -> blur by one pixel\n\t\t\t\t//2.0 -> blur by two pixels, etc.\n\t\t\t\tfloat blur = radius / uResolution.x;\n\t\t\t\n\t\t\t\t//the direction of our blur\n\t\t\t\t//(1.0, 0.0) -> x-axis blur\n\t\t\t\t//(0.0, 1.0) -> y-axis blur\n\t\t\t\tfloat hstep = dirx;\n\t\t\t\tfloat vstep = diry;\n\t\t\t\n\t\t\t\t//apply blurring, using a 9-tap filter with predefined gaussian weights\n\t\t\t\n\t\t\t\tsum += texture2D(uImage0, vec2(tc.x - 4.0*blur*hstep, tc.y - 4.0*blur*vstep)) * 0.0162162162;\n\t\t\t\tsum += texture2D(uImage0, vec2(tc.x - 3.0*blur*hstep, tc.y - 3.0*blur*vstep)) * 0.0540540541;\n\t\t\t\tsum += texture2D(uImage0, vec2(tc.x - 2.0*blur*hstep, tc.y - 2.0*blur*vstep)) * 0.1216216216;\n\t\t\t\tsum += texture2D(uImage0, vec2(tc.x - 1.0*blur*hstep, tc.y - 1.0*blur*vstep)) * 0.1945945946;\n\t\t\t\n\t\t\t\tsum += texture2D(uImage0, vec2(tc.x, tc.y)) * 0.2270270270;\n\t\t\t\n\t\t\t\tsum += texture2D(uImage0, vec2(tc.x + 1.0*blur*hstep, tc.y + 1.0*blur*vstep)) * 0.1945945946;\n\t\t\t\tsum += texture2D(uImage0, vec2(tc.x + 2.0*blur*hstep, tc.y + 2.0*blur*vstep)) * 0.1216216216;\n\t\t\t\tsum += texture2D(uImage0, vec2(tc.x + 3.0*blur*hstep, tc.y + 3.0*blur*vstep)) * 0.0540540541;\n\t\t\t\tsum += texture2D(uImage0, vec2(tc.x + 4.0*blur*hstep, tc.y + 4.0*blur*vstep)) * 0.0162162162;\n\t\t\t\n\t\t\t\t//discard alpha for our simple demo, multiply by vertex color and return\n\t\t\t\tgl_FragColor = vec4(sum.rgb, 1.0);\n\t\t\t}\n\t\t", +!0);this.setRadius(a);this.setDirectionX(b);this.setDirectionY(c)};k["com.stencyl.graphics.shaders.BlurShader"]=Yn;Yn.__name__="com.stencyl.graphics.shaders.BlurShader";Yn.__super__=ad;Yn.prototype=u(ad.prototype,{setRadius:function(a){this.setProperty("radius",a)},setDirectionX:function(a){this.setProperty("dirx",a)},setDirectionY:function(a){this.setProperty("diry",a)},__class__:Yn});var Ph=function(a,b,c){null==c&&(c=1);null==b&&(b=1);null==a&&(a=1);this.model=new ld(this,"\n\t\t\t#ifdef GL_ES\n\t\t\t\tprecision mediump float;\n\t\t\t#endif\n\n\t\t\tvarying vec2 vTexCoord;\n\t\t\tuniform sampler2D uImage0;\n\t\t\tuniform float contrast;\n\t\t\tuniform float brightness;\n\t\t\tuniform float saturation;\n\n\t\t\tvec3 _mix(vec3 a, vec3 b, float amount) \n\t\t\t{ \n\t\t\t\treturn vec3(a.x * (1.0 - amount) + b.x * amount, a.y * (1.0 - amount) + b.y * amount, a.z * (1.0 - amount) + b.z * amount); \n\t\t\t}\n\n\t\t\tvoid main() \n\t\t\t{\n\t\t\t\tvec3 color = texture2D(uImage0, vTexCoord).rgb;\n\t\t\t\tconst vec3 luminanceCoefficient = vec3(0.2125, 0.7154, 0.0721);\n\t\t\t\tvec3 avgLuminance = vec3(0.5, 0.5, 0.5);\n\t\t\n\t\t\t\tvec3 brtColor = vec3(color.x * brightness, color.y * brightness, color.z * brightness);\n\t\t\t\tvec3 intensity = vec3(dot(brtColor, luminanceCoefficient));\n\t\t\t\tvec3 satColor = _mix(intensity, brtColor, saturation);\n\t\t\t\tvec3 conColor = _mix(avgLuminance, satColor, contrast);\n\t\t\n\t\t\t\tgl_FragColor = vec4(conColor, 1);\n\t\t\t}\n\t\t", +!0);this.setContrast(a);this.setBrightness(b);this.setSaturation(c)};k["com.stencyl.graphics.shaders.CSBShader"]=Ph;Ph.__name__="com.stencyl.graphics.shaders.CSBShader";Ph.create=function(a,b){null==b&&(b=1);null==a&&(a="contrast");return"contrast"==a?new Ph(b,1,1):"saturation"==a?new Ph(1,1,b):new Ph(1,b,1)};Ph.__super__=ad;Ph.prototype=u(ad.prototype,{setContrast:function(a){this.setProperty("contrast",a)},setBrightness:function(a){this.setProperty("brightness",a)},setSaturation:function(a){this.setProperty("saturation", +a)},__class__:Ph});var Zn=function(a){this.model=new ld(this,"assets/data/"+a)};k["com.stencyl.graphics.shaders.ExternalShader"]=Zn;Zn.__name__="com.stencyl.graphics.shaders.ExternalShader";Zn.__super__=ad;Zn.prototype=u(ad.prototype,{__class__:Zn});var $n=function(a,b,c,d,e){null==e&&(e=1);null==d&&(d=1.6);null==c&&(c=.6);null==b&&(b=!1);null==a&&(a=.05);this.model=new ld(this,"\n\t\t\t/*\n\t\t\t\tFilm Grain post-process shader v1.1\n\t\t\t\tMartins Upitis (martinsh) devlog-martinsh.blogspot.com\n\t\t\t*/\n\n\t\t\t#ifdef GL_ES\n\t\t\t\tprecision mediump float;\n\t\t\t#endif\n\t\t\t\n\t\t\tuniform sampler2D uImage0; //rendered scene sampler\n\t\t\tuniform vec2 uResolution; //scene sampler resolution\n\t\t\tuniform float uTime;\n\t\t\t\n\t\t\tvarying vec2 vTexCoord;\n\t\t\t\n\t\t\tconst float permTexUnit = 1.0/256.0; // Perm texture texel-size\n\t\t\tconst float permTexUnitHalf = 0.5/256.0; // Half perm texture texel-size\n\t\t\t\n\t\t\tfloat width;\n\t\t\tfloat height;\n\t\t\t\n\t\t\tuniform float grainamount; //grain amount\n\t\t\tuniform float colored; //colored noise?\n\t\t\tuniform float coloramount;\n\t\t\tuniform float grainsize; //grain particle size (1.5 - 2.5)\n\t\t\tuniform float lumamount; //\n\t\t\t\n\t\t\t//a random texture generator, but you can also use a pre-computed perturbation texture\n\t\t\tvec4 rnm(in vec2 tc)\n\t\t\t{\n\t\t\t\tfloat noise = sin(dot(tc + vec2(uTime,uTime),vec2(12.9898,78.233))) * 43758.5453;\n\t\t\t\n\t\t\t\tfloat noiseR = fract(noise)*2.0-1.0;\n\t\t\t\tfloat noiseG = fract(noise*1.2154)*2.0-1.0;\n\t\t\t\tfloat noiseB = fract(noise*1.3453)*2.0-1.0;\n\t\t\t\tfloat noiseA = fract(noise*1.3647)*2.0-1.0;\n\t\t\t\n\t\t\t\treturn vec4(noiseR,noiseG,noiseB,noiseA);\n\t\t\t}\n\t\t\t\n\t\t\tfloat fade(in float t) {\n\t\t\t\treturn t*t*t*(t*(t*6.0-15.0)+10.0);\n\t\t\t}\n\t\t\t\n\t\t\tfloat pnoise3D(in vec3 p)\n\t\t\t{\n\t\t\t\tvec3 pi = permTexUnit*floor(p)+permTexUnitHalf; // Integer part, scaled so +1 moves permTexUnit texel\n\t\t\t\t// and offset 1/2 texel to sample texel centers\n\t\t\t\tvec3 pf = fract(p); // Fractional part for interpolation\n\t\t\t\n\t\t\t\t// Noise contributions from (x=0, y=0), z=0 and z=1\n\t\t\t\tfloat perm00 = rnm(pi.xy).a ;\n\t\t\t\tvec3 grad000 = rnm(vec2(perm00, pi.z)).rgb * 4.0 - 1.0;\n\t\t\t\tfloat n000 = dot(grad000, pf);\n\t\t\t\tvec3 grad001 = rnm(vec2(perm00, pi.z + permTexUnit)).rgb * 4.0 - 1.0;\n\t\t\t\tfloat n001 = dot(grad001, pf - vec3(0.0, 0.0, 1.0));\n\t\t\t\n\t\t\t\t// Noise contributions from (x=0, y=1), z=0 and z=1\n\t\t\t\tfloat perm01 = rnm(pi.xy + vec2(0.0, permTexUnit)).a ;\n\t\t\t\tvec3 grad010 = rnm(vec2(perm01, pi.z)).rgb * 4.0 - 1.0;\n\t\t\t\tfloat n010 = dot(grad010, pf - vec3(0.0, 1.0, 0.0));\n\t\t\t\tvec3 grad011 = rnm(vec2(perm01, pi.z + permTexUnit)).rgb * 4.0 - 1.0;\n\t\t\t\tfloat n011 = dot(grad011, pf - vec3(0.0, 1.0, 1.0));\n\t\t\t\n\t\t\t\t// Noise contributions from (x=1, y=0), z=0 and z=1\n\t\t\t\tfloat perm10 = rnm(pi.xy + vec2(permTexUnit, 0.0)).a ;\n\t\t\t\tvec3 grad100 = rnm(vec2(perm10, pi.z)).rgb * 4.0 - 1.0;\n\t\t\t\tfloat n100 = dot(grad100, pf - vec3(1.0, 0.0, 0.0));\n\t\t\t\tvec3 grad101 = rnm(vec2(perm10, pi.z + permTexUnit)).rgb * 4.0 - 1.0;\n\t\t\t\tfloat n101 = dot(grad101, pf - vec3(1.0, 0.0, 1.0));\n\t\t\t\n\t\t\t\t// Noise contributions from (x=1, y=1), z=0 and z=1\n\t\t\t\tfloat perm11 = rnm(pi.xy + vec2(permTexUnit, permTexUnit)).a ;\n\t\t\t\tvec3 grad110 = rnm(vec2(perm11, pi.z)).rgb * 4.0 - 1.0;\n\t\t\t\tfloat n110 = dot(grad110, pf - vec3(1.0, 1.0, 0.0));\n\t\t\t\tvec3 grad111 = rnm(vec2(perm11, pi.z + permTexUnit)).rgb * 4.0 - 1.0;\n\t\t\t\tfloat n111 = dot(grad111, pf - vec3(1.0, 1.0, 1.0));\n\t\t\t\n\t\t\t\t// Blend contributions along x\n\t\t\t\tvec4 n_x = mix(vec4(n000, n001, n010, n011), vec4(n100, n101, n110, n111), fade(pf.x));\n\t\t\t\n\t\t\t\t// Blend contributions along y\n\t\t\t\tvec2 n_xy = mix(n_x.xy, n_x.zw, fade(pf.y));\n\t\t\t\n\t\t\t\t// Blend contributions along z\n\t\t\t\tfloat n_xyz = mix(n_xy.x, n_xy.y, fade(pf.z));\n\t\t\t\n\t\t\t\t// We're done, return the final noise value.\n\t\t\t\treturn n_xyz;\n\t\t\t}\n\t\t\t\n\t\t\t//2d coordinate orientation thing\n\t\t\tvec2 coordRot(in vec2 tc, in float angle)\n\t\t\t{\n\t\t\t\tfloat aspect = width/height;\n\t\t\t\tfloat rotX = ((tc.x*2.0-1.0)*aspect*cos(angle)) - ((tc.y*2.0-1.0)*sin(angle));\n\t\t\t\tfloat rotY = ((tc.y*2.0-1.0)*cos(angle)) + ((tc.x*2.0-1.0)*aspect*sin(angle));\n\t\t\t\trotX = ((rotX/aspect)*0.5+0.5);\n\t\t\t\trotY = rotY*0.5+0.5;\n\t\t\t\treturn vec2(rotX,rotY);\n\t\t\t}\n\t\t\t\n\t\t\tvoid main()\n\t\t\t{\n\t\t\t\twidth = uResolution.x;\n\t\t\t\theight = uResolution.y;\n\t\t\t\t\n\t\t\t\tvec2 texCoord = vTexCoord.st;\n\t\t\t\n\t\t\t\tvec3 rotOffset = vec3(1.425,3.892,5.835); //rotation offset values\n\t\t\t\tvec2 rotCoordsR = coordRot(texCoord, uTime + rotOffset.x);\n\t\t\t\tvec3 noise = vec3(pnoise3D(vec3(rotCoordsR*vec2(width/grainsize,height/grainsize),0.0)));\n\t\t\t\n\t\t\t\tif (colored == 1.0)\n\t\t\t\t{\n\t\t\t\t\tvec2 rotCoordsG = coordRot(texCoord, uTime + rotOffset.y);\n\t\t\t\t\tvec2 rotCoordsB = coordRot(texCoord, uTime + rotOffset.z);\n\t\t\t\t\tnoise.g = mix(noise.r,pnoise3D(vec3(rotCoordsG*vec2(width/grainsize,height/grainsize),1.0)),coloramount);\n\t\t\t\t\tnoise.b = mix(noise.r,pnoise3D(vec3(rotCoordsB*vec2(width/grainsize,height/grainsize),2.0)),coloramount);\n\t\t\t\t}\n\t\t\t\n\t\t\t\tvec3 col = texture2D(uImage0, texCoord).rgb;\n\t\t\t\n\t\t\t\t//noisiness response curve based on scene luminance\n\t\t\t\tvec3 lumcoeff = vec3(0.299,0.587,0.114);\n\t\t\t\tfloat luminance = mix(0.0,dot(col, lumcoeff),lumamount);\n\t\t\t\tfloat lum = smoothstep(0.2,0.0,luminance);\n\t\t\t\tlum += luminance;\n\t\t\t\n\t\t\t\n\t\t\t\tnoise = mix(noise,vec3(0.0),pow(lum,4.0));\n\t\t\t\tcol = col+noise*grainamount;\n\t\t\t\n\t\t\t\tgl_FragColor = vec4(col,1.0);\n\t\t\t}\n\t\t", +!0);this.setGrainAmount(a);this.setColorAmount(c);this.setGrainSize(d);this.setLuminance(e);b?this.enableColor():this.disableColor()};k["com.stencyl.graphics.shaders.GrainShader"]=$n;$n.__name__="com.stencyl.graphics.shaders.GrainShader";$n.__super__=ad;$n.prototype=u(ad.prototype,{enableColor:function(){this.setProperty("colored",1)},disableColor:function(){this.setProperty("colored",0)},setGrainAmount:function(a){this.setProperty("grainamount",a)},setColorAmount:function(a){this.setProperty("coloramount", +a)},setGrainSize:function(a){this.setProperty("grainsize",a)},setLuminance:function(a){this.setProperty("lumamount",a)},__class__:$n});var ao=function(){this.model=new ld(this,"\n\t\t\t#ifdef GL_ES\n\t\t\t\tprecision mediump float;\n\t\t\t#endif\n\t\t\t\n\t\t\tvarying vec2 vTexCoord;\n\t\t\tuniform sampler2D uImage0;\n\t\t\t\n\t\t\tvoid main(void)\n\t\t\t{\n\t\t\t\tvec4 color = texture2D(uImage0, vTexCoord);\n\t\t\t\tfloat gray = dot(color.rgb, vec3(0.299, 0.587, 0.114));\n\t\t\t\tgl_FragColor = vec4(gray, gray, gray, 1.0);\n\t\t\t}\n\t\t", +!0)};k["com.stencyl.graphics.shaders.GrayscaleShader"]=ao;ao.__name__="com.stencyl.graphics.shaders.GrayscaleShader";ao.__super__=ad;ao.prototype=u(ad.prototype,{__class__:ao});var bo=function(a,b){null==b&&(b=!0);null==a&&(a=0);b&&(a*=Math.PI/180);this.model=new ld(this,"\n\t\t\t#ifdef GL_ES\n\t\t\t\tprecision mediump float;\n\t\t\t#endif\n\t\t\t\n\t\t\tvarying vec2 vTexCoord;\n\t\t\tuniform sampler2D uImage0;\n\t\t\t\n\t\t\tuniform float hue;\n\t\t\tconst mat3 rgb2yiq = mat3(0.299, 0.587, 0.114, 0.595716, -0.274453, -0.321263, 0.211456, -0.522591, 0.311135);\n\t\t\tconst mat3 yiq2rgb = mat3(1.0, 0.9563, 0.6210, 1.0, -0.2721, -0.6474, 1.0, -1.1070, 1.7046);\n\n\t\t\tvoid main() \n\t\t\t{\n\t\t\t\tvec3 color = texture2D(uImage0, vTexCoord).rgb;\n\t\t\t\tvec3 yColor = rgb2yiq * color; \n\n\t\t\t\tfloat originalHue = atan(yColor.b, yColor.g);\n\t\t\t\tfloat finalHue = originalHue + hue;\n\t\t\t\tfloat chroma = sqrt(yColor.b * yColor.b + yColor.g * yColor.g);\n\t\t\t\t\n\t\t\t\tvec3 yFinalColor = vec3(yColor.r, chroma * cos(finalHue), chroma * sin(finalHue));\n\t\t\t\tgl_FragColor = vec4(yiq2rgb * yFinalColor, 1.0);\n\t\t\t}\n\t\t", +!0);this.setHue(a,!1)};k["com.stencyl.graphics.shaders.HueShader"]=bo;bo.__name__="com.stencyl.graphics.shaders.HueShader";bo.__super__=ad;bo.prototype=u(ad.prototype,{setHue:function(a,b){null==b&&(b=!0);b&&(a*=Math.PI/180);this.setProperty("hue",a)},__class__:bo});var co=function(a){this.model=new ld(this,a,!0)};k["com.stencyl.graphics.shaders.InlineShader"]=co;co.__name__="com.stencyl.graphics.shaders.InlineShader";co.__super__=ad;co.prototype=u(ad.prototype,{__class__:co});var eo=function(){this.model= +new ld(this,"\n\t\t\t#ifdef GL_ES\n\t\t\t\tprecision mediump float;\n\t\t\t#endif\n\t\t\t\n\t\t\tvarying vec2 vTexCoord;\n\t\t\tuniform sampler2D uImage0;\n\t\t\t\n\t\t\tvoid main(void)\n\t\t\t{\n\t\t\t\tvec4 color = texture2D(uImage0, vTexCoord);\n\t\t\t\tgl_FragColor = vec4(vec3(1.0, 1.0, 1.0) - color.rgb, color.a);\n\t\t\t}\n\t\t",!0)};k["com.stencyl.graphics.shaders.InvertShader"]=eo;eo.__name__="com.stencyl.graphics.shaders.InvertShader";eo.__super__=ad;eo.prototype=u(ad.prototype,{__class__:eo}); +var ld=function(a,b,c){null==c&&(c=!1);this.timeScale=1;this.time=0;A.call(this);this.__drawableType=3;this.basicShader=a;this.gl=h.stage.__renderer.gl;this.uniforms=new V;this.changedUniforms=[];this.uniformTweens=new V;this.rebuild();this.gl.checkFramebufferStatus(36160);this.buffer=this.gl.createBuffer();this.gl.bindBuffer(34962,this.buffer);a=[-1,-1,0,0,1,-1,1,0,-1,1,0,1,1,-1,1,0,1,1,1,1,-1,1,0,1];a=null!=a?new Float32Array(a):null;Yb.bufferData(this.gl,34962,a,35044);this.gl.bindBuffer(34962, +null);if(c)this.fullScreenShader=new Ij([{src:"\n#ifdef GL_ES\n\tprecision mediump float;\n#endif\n\nattribute vec4 aVertex;\n\nattribute vec2 aTexCoord;\nvarying vec2 vTexCoord;\n\nvoid main() {\n\tvTexCoord = aTexCoord;\n\tgl_Position = vec4(aVertex.x, aVertex.y, 0.0, 1.0);\n}",fragment:!1},{src:b,fragment:!0}]);else if(6<b.length&&".glslx"==F.substr(b,-6,null)){c=U.parse(qa.getText(b)).firstElement();if(c.nodeType!=U.Document&&c.nodeType!=U.Element)throw R.thrown("Invalid nodeType "+(null==c.nodeType? +"null":Ea.toString(c.nodeType)));b=Fu.resolve(c,"vertex")?tu.get_innerData(uu.resolve(c,"vertex")):"\n#ifdef GL_ES\n\tprecision mediump float;\n#endif\n\nattribute vec4 aVertex;\n\nattribute vec2 aTexCoord;\nvarying vec2 vTexCoord;\n\nvoid main() {\n\tvTexCoord = aTexCoord;\n\tgl_Position = vec4(aVertex.x, aVertex.y, 0.0, 1.0);\n}";c=tu.get_innerData(uu.resolve(c,"fragment"));this.fullScreenShader=new Ij([{src:b,fragment:!1},{src:c,fragment:!0}])}else b=qa.getText(b),this.fullScreenShader=new Ij([{src:"\n#ifdef GL_ES\n\tprecision mediump float;\n#endif\n\nattribute vec4 aVertex;\n\nattribute vec2 aTexCoord;\nvarying vec2 vTexCoord;\n\nvoid main() {\n\tvTexCoord = aTexCoord;\n\tgl_Position = vec4(aVertex.x, aVertex.y, 0.0, 1.0);\n}", +fragment:!1},{src:b,fragment:!0}]);this.imageUniform=r.context.getUniformLocation(this.fullScreenShader.program,"uImage0");this.timeUniform=r.context.getUniformLocation(this.fullScreenShader.program,"uTime");this.resolutionUniform=r.context.getUniformLocation(this.fullScreenShader.program,"uResolution");this.resolutionUsUniform=r.context.getUniformLocation(this.fullScreenShader.program,"uResolutionUs");this.vertexSlot=r.context.getAttribLocation(this.fullScreenShader.program,"aVertex");this.texCoordSlot= +r.context.getAttribLocation(this.fullScreenShader.program,"aTexCoord");this.addEventListener("renderOpenGL",q(this,this.renderGL))};k["com.stencyl.graphics.shaders.PostProcess"]=ld;ld.__name__="com.stencyl.graphics.shaders.PostProcess";ld.__properties__={get_vertices:"get_vertices",get_isSupported:"get_isSupported"};ld.get_isSupported=function(){if(!window.WebGLRenderingContext)return!1;if(null!=r.context)return!0;var a=window.document.createElement("canvas"),b=a.getContext("webgl");null==b&&(b=a.getContext("experimental-webgl")); +return null!=b};ld.get_vertices=function(){return[-1,-1,0,0,1,-1,1,0,-1,1,0,1,1,-1,1,0,1,1,1,1,-1,1,0,1]};ld.__super__=A;ld.prototype=u(A.prototype,{__added:null,__initialized:null,gl:null,__enterFrame:function(a){this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty())},renderGL:function(a){var b=a.renderer;if(null!=this.stage&&this.__renderable){a=h.stage;var c=a.context3D;b.__setBlendMode(null);null==this.basicShader.multipassTarget?c.setRenderToBackBuffer():c.setRenderToTexture(this.basicShader.multipassTarget.model.texture); +c.clear();this.time+=h.elapsedTime*this.timeScale;r.context.useProgram(this.fullScreenShader.program);this.gl.enableVertexAttribArray(this.vertexSlot);this.gl.enableVertexAttribArray(this.texCoordSlot);this.gl.activeTexture(33984);this.gl.bindTexture(3553,this.texture.__getTexture());"opengl"==a.window.context.type&&this.gl.enable(3553);this.gl.bindBuffer(34962,this.buffer);this.gl.vertexAttribPointer(this.vertexSlot,2,5126,!1,16,0);this.gl.vertexAttribPointer(this.texCoordSlot,2,5126,!1,16,8);this.gl.uniform1i(this.imageUniform, +0);this.gl.uniform1f(this.timeUniform,this.time);this.gl.uniform2f(this.resolutionUniform,a.stageWidth|0,a.stageHeight|0);this.gl.uniform2f(this.resolutionUsUniform,a.stageWidth/(h.SCALE*h.screenScaleX)|0,a.stageHeight/(h.SCALE*h.screenScaleY)|0);for(b=this.changedUniforms.length;0<b--;){var d=this.changedUniforms.pop();if(d.value instanceof Array){if(0!=d.value.length){var e=this.gl,g=d.id;d=d.value;d=null!=d?new Float32Array(d):null;e.uniform1fv(g,d)}}else this.gl.uniform1f(d.id,d.value)}this.gl.drawArrays(4, +0,6);this.gl.bindBuffer(34962,null);"opengl"==a.window.context.type&&this.gl.disable(3553);this.gl.bindTexture(3553,null);this.gl.disableVertexAttribArray(this.vertexSlot);this.gl.disableVertexAttribArray(this.texCoordSlot);c.__contextState.program=null;c.__flushGLProgram();c.__contextState.__currentGLElementArrayBuffer=null}},setUniform:function(a,b){if(Object.prototype.hasOwnProperty.call(this.uniforms.h,a))a=this.uniforms.h[a],a.value=b,this.changedUniforms.push(a);else{var c=r.context.getUniformLocation(this.fullScreenShader.program, +a);c!=ld.UNIFORM_NOT_FOUND&&(b={id:c,value:b},this.uniforms.h[a]=b,this.changedUniforms.push(b))}},getUniform:function(a){return Object.prototype.hasOwnProperty.call(this.uniforms.h,a)?this.uniforms.h[a].value:-1},tweenUniform:function(a,b,c,d){null==c&&(c=1);var e=this;if(Object.prototype.hasOwnProperty.call(this.uniforms.h,a)){var g=this.uniforms.h[a],f=this.uniformTweens.h[a];null==f&&(f=new tc,f.doOnUpdate(function(){g.value=f.value;e.changedUniforms.push(g)}),this.uniformTweens.h[a]=f);f.tween(g.value, +b,d,1E3*c|0)}},rebuild:function(){null!=this.texture&&this.texture.dispose();this.texture=h.stage.context3D.createRectangleTexture(da.windowWidth|0,da.windowHeight|0,1,!0);this.texture.__context.__bindGLTexture2D(this.texture.__textureID);this.texture.__setSamplerState(new Qg);Yb.texImage2D(this.gl,this.texture.__textureTarget,0,this.texture.__internalFormat,this.texture.__width,this.texture.__height,0,this.gl.RGB,this.gl.UNSIGNED_BYTE,null);this.texture.__context.__bindGLTexture2D(null)},createTexture:function(a, +b){this.texture=h.stage.context3D.createRectangleTexture(a,b,1,!0);this.texture.__context.__bindGLTexture2D(this.texture.__textureID);this.texture.__setSamplerState(new Qg);Yb.texImage2D(this.gl,this.texture.__textureTarget,0,this.texture.__internalFormat,this.texture.__width,this.texture.__height,0,this.gl.RGB,this.gl.UNSIGNED_BYTE,null);this.texture.__context.__bindGLTexture2D(null)},capture:function(){h.stage.context3D.setRenderToTexture(this.texture);var a=this.texture.__getGLFramebuffer(!1,0, +0);this.gl.bindFramebuffer(36160,a);this.gl.clear(16640);null!=h.stage&&null!=h.stage.__renderer&&(h.stage.__renderer.__cleared=!0)},texture:null,fullScreenShader:null,buffer:null,basicShader:null,time:null,timeScale:null,vertexSlot:null,texCoordSlot:null,imageUniform:null,resolutionUniform:null,resolutionUsUniform:null,timeUniform:null,uniforms:null,changedUniforms:null,uniformTweens:null,__class__:ld});var fo=function(a){null==a&&(a=1);this.model=new ld(this,"\n\t\t\t#ifdef GL_ES\n\t\t\t\tprecision mediump float;\n\t\t\t#endif\n\t\t\t\n\t\t\tvarying vec2 vTexCoord;\n\t\t\tuniform vec2 uResolution;\n\t\t\tuniform sampler2D uImage0;\n\t\t\t\n\t\t\tuniform float scale;\n\t\t\t\n\t\t\tvoid main()\n\t\t\t{\n\t\t\t\tif (mod(floor(vTexCoord.y * uResolution.y / scale), 2.0) == 0.0)\n\t\t\t\t\tgl_FragColor = vec4(0.0, 0.0, 0.0, 1.0);\n\t\t\t\telse\n\t\t\t\t\tgl_FragColor = texture2D(uImage0, vTexCoord);\n\t\t\t}\n\t\t", +!0);this.setScale(a)};k["com.stencyl.graphics.shaders.ScanlineShader"]=fo;fo.__name__="com.stencyl.graphics.shaders.ScanlineShader";fo.__super__=ad;fo.prototype=u(ad.prototype,{setScale:function(a){this.setProperty("scale",a)},__class__:fo});var go=function(){this.model=new ld(this,"\n\t\t\t#ifdef GL_ES\n\t\t\t\tprecision mediump float;\n\t\t\t#endif\n\t\t\t\n\t\t\tvarying vec2 vTexCoord;\n\t\t\tuniform sampler2D uImage0;\n\t\t\t\n\t\t\tvoid main(void)\n\t\t\t{\n\t\t\t\tvec4 color = texture2D(uImage0, vTexCoord);\n\t\t\t\tgl_FragColor.r = dot(color, vec4(0.393,0.769,0.189,0));\n\t\t\t\tgl_FragColor.g = dot(color, vec4(0.349,0.686,0.168,0));\n\t\t\t\tgl_FragColor.b = dot(color, vec4(0.272,0.534,0.131,0));\n\t\t\t\tgl_FragColor.a = color.a;\n\t\t\t}\n\t\t", +!0)};k["com.stencyl.graphics.shaders.SepiaShader"]=go;go.__name__="com.stencyl.graphics.shaders.SepiaShader";go.__super__=ad;go.prototype=u(ad.prototype,{__class__:go});var Ij=function(a){this.program=r.context.createProgram();for(var b=0;b<a.length;){var c=a[b];++b;c=this.compile(c.src,c.fragment?35632:35633);if(null==c)return;r.context.attachShader(this.program,c);r.context.deleteShader(c)}r.context.linkProgram(this.program);r.context.getProgramParameter(this.program,35714)};k["com.stencyl.graphics.shaders.Shader"]= +Ij;Ij.__name__="com.stencyl.graphics.shaders.Shader";Ij.prototype={compile:function(a,b){b=r.context.createShader(b);r.context.shaderSource(b,a);r.context.compileShader(b);return 0==r.context.getShaderParameter(b,35713)?null:b},attribute:function(a){return r.context.getAttribLocation(this.program,a)},uniform:function(a){return r.context.getUniformLocation(this.program,a)},bind:function(){r.context.useProgram(this.program)},program:null,__class__:Ij};var ho=function(a){null==a&&(a=2);this.model=new ld(this, +"\n\t\t\t#ifdef GL_ES\n\t\t\t\tprecision mediump float;\n\t\t\t#endif\n\t\t\t\n\t\t\tvarying vec2 vTexCoord;\n\t\t\tuniform sampler2D uImage0;\n\t\t\tuniform vec2 uResolution;\n\t\t\t\n\t\t\tuniform float amount;\n\t\t\t\n\t\t\tvoid main()\n\t\t\t{\n\t\t\t\t//this will be our RGBA sum\n\t\t\t\tvec4 sum = vec4(0.0);\n\t\t\t\t\n\t\t\t\t//our original texcoord for this fragment\n\t\t\t\tvec2 tc = vTexCoord;\n\t\t\t\t\n\t\t\t\tfloat reach = 1.0 / uResolution.x;\n\n\t\t\t\t//current pixel\n\t\t\t\tsum += texture2D(uImage0, vec2(tc.x, tc.y));\n\t\t\t\t\n\t\t\t\t//sharpen\n\t\t\t\tsum += (texture2D(uImage0, vec2(tc.x, tc.y)) - texture2D(uImage0, vec2(tc.x + 1.0 * reach, tc.y))) * amount;\n\t\t\t\tsum += (texture2D(uImage0, vec2(tc.x, tc.y)) - texture2D(uImage0, vec2(tc.x - 1.0 * reach, tc.y))) * amount;\n\t\t\t\tsum += (texture2D(uImage0, vec2(tc.x, tc.y)) - texture2D(uImage0, vec2(tc.x, tc.y + 1.0 * reach))) * amount;\n\t\t\t\tsum += (texture2D(uImage0, vec2(tc.x, tc.y)) - texture2D(uImage0, vec2(tc.x, tc.y - 1.0 * reach))) * amount;\n\t\t\t\t\n\t\t\t\tgl_FragColor = vec4(sum.rgb, 1.0);\n\t\t\t}\n\t\t", +!0);this.setAmount(a)};k["com.stencyl.graphics.shaders.SharpenShader"]=ho;ho.__name__="com.stencyl.graphics.shaders.SharpenShader";ho.__super__=ad;ho.prototype=u(ad.prototype,{setAmount:function(a){this.setProperty("amount",a)},__class__:ho});var io=function(a,b){null==b&&(b=1);this.model=new ld(this,"\n\t\t\t#ifdef GL_ES\n\t\t\t\tprecision mediump float;\n\t\t\t#endif\n\n\t\t\tvarying vec2 vTexCoord;\n\t\t\tuniform sampler2D uImage0;\n\t\t\tuniform float amount;\n\t\t\tuniform float red;\n\t\t\tuniform float green;\n\t\t\tuniform float blue;\n\n\t\t\tvec3 _mix(vec3 a, vec3 b, float amount) \n\t\t\t{ \n\t\t\t\treturn vec3(a.x * (1.0 - amount) + b.x * amount, a.y * (1.0 - amount) + b.y * amount, a.z * (1.0 - amount) + b.z * amount); \n\t\t\t}\n\n\t\t\tvoid main() \n\t\t\t{\n\t\t\t\tvec3 color = texture2D(uImage0, vTexCoord).rgb;\n\t\t\t\tvec3 endColor = _mix(color, vec3(red, green, blue), amount);\n\t\t\t\tgl_FragColor = vec4(endColor.x, endColor.y, endColor.z, 1);\n\t\t\t}\n\t\t", +!0);this.setColor(a);this.setAmount(b)};k["com.stencyl.graphics.shaders.TintShader"]=io;io.__name__="com.stencyl.graphics.shaders.TintShader";io.__super__=ad;io.prototype=u(ad.prototype,{setAmount:function(a){this.setProperty("amount",a)},setColor:function(a){this.setProperty("red",(a>>16&255)/255);this.setProperty("green",(a>>8&255)/255);this.setProperty("blue",(a&255)/255)},__class__:io});var pb=function(a){this.duration=a;this.complete=this.active=!1;0==a&&(this.active=this.complete=!0)};k["com.stencyl.graphics.transitions.Transition"]= +pb;pb.__name__="com.stencyl.graphics.transitions.Transition";pb.prototype={duration:null,direction:null,active:null,complete:null,start:function(){},reset:function(){this.complete=!1},stop:function(){this.complete=!0},deactivate:function(){this.active=!1},cleanup:function(){},isActive:function(){return this.active},isComplete:function(){return this.complete},update:function(a){},draw:function(a){},getDuration:function(){return this.duration},__class__:pb};var Bj=function(a,b,c,d){null==c&&(c=10); +pb.call(this,b);this.color=d;this.direction=a;this.numBlinds=c;a==pb.IN?(this.beginBlindWidth=h.screenWidth*h.SCALE/c,this.endBlindWidth=0):a==pb.OUT?(this.beginBlindWidth=0,this.endBlindWidth=h.screenWidth*h.SCALE/c):this.complete=!0};k["com.stencyl.graphics.transitions.BlindsTransition"]=Bj;Bj.__name__="com.stencyl.graphics.transitions.BlindsTransition";Bj.__super__=pb;Bj.prototype=u(pb.prototype,{color:null,numBlinds:null,blindWidth:null,beginBlindWidth:null,endBlindWidth:null,blindRect:null,rect:null, +graphics:null,start:function(){this.active=!0;this.blindRect=new fa(0,0,this.beginBlindWidth,h.screenHeight*h.SCALE);this.blindWidth=new tc;this.rect=new Me;this.graphics=this.rect.get_graphics();this.direction==pb.IN&&(this.graphics.beginFill(this.color),this.graphics.drawRect(0,0,h.screenWidth*h.SCALE,h.screenHeight*h.SCALE),this.graphics.endFill());h.engine.transitionLayer.addChild(this.rect);this.blindWidth.tween(this.beginBlindWidth,this.endBlindWidth,ia.linear,1E3*this.duration|0).doOnComplete(q(this, +this.stop))},draw:function(a){this.graphics.clear();this.graphics.beginFill(this.color);this.blindRect.x=0;this.blindRect.width=this.blindWidth.value;this.direction==pb.IN&&(this.blindRect.x+=h.screenWidth*h.SCALE/this.numBlinds-this.blindWidth.value);a=0;for(var b=this.numBlinds;a<b;)a++,this.graphics.drawRect(this.blindRect.x,this.blindRect.y,this.blindRect.width,this.blindRect.height),this.blindRect.x+=h.screenWidth*h.SCALE/this.numBlinds;this.graphics.endFill()},cleanup:function(){null!=this.rect&& +(h.engine.transitionLayer.removeChild(this.rect),this.rect=null)},__class__:Bj});var Aj=function(a,b,c,d){null==d&&(d=-16777216);null==c&&(c=50);pb.call(this,b);this.color=d;this.direction=a;this.numBubbles=c};k["com.stencyl.graphics.transitions.BubblesTransition"]=Aj;Aj.__name__="com.stencyl.graphics.transitions.BubblesTransition";Aj.__super__=pb;Aj.prototype=u(pb.prototype,{color:null,numBubbles:null,radius:null,beginRadius:null,endRadius:null,rect:null,graphics:null,drawBitmap:null,bubblePositions:null, +bubbleRect:null,screenWidth:null,screenHeight:null,start:function(){this.active=!0;this.rect=new Me;this.graphics=this.rect.get_graphics();this.screenWidth=h.screenWidth*h.SCALE|0;this.screenHeight=h.screenHeight*h.SCALE|0;this.direction==pb.IN&&(this.graphics.beginFill(this.color),this.graphics.drawRect(0,0,this.screenWidth,this.screenHeight),this.graphics.endFill());this.drawBitmap=new Ja(this.screenWidth,this.screenHeight);var a=this.screenWidth/this.screenHeight,b=Math.sqrt(this.numBubbles/a)| +0,c=this.screenHeight/b;a=Math.ceil(b*a|0);b=Math.ceil(b);var d=a*c-this.screenWidth|0,e=new fa(-d/2,-(b*c-this.screenHeight|0)/2,c,c);this.bubblePositions=[];for(var g=0;g<b;){g++;for(var f=0,l=a;f<l;)f++,this.bubblePositions.push(new oa(e.x+Math.floor(Math.random()*(c+1)),e.y+Math.floor(Math.random()*(c+1)))),e.x+=c;e.x=-d/2;e.y+=c}this.beginRadius=0;this.endRadius=Math.ceil(oa.distance(new oa(0,0),new oa(c,c)));this.radius=new tc;h.engine.transitionLayer.addChild(this.rect);this.radius.tween(this.beginRadius, +this.endRadius,ia.linear,1E3*this.duration|0).doOnComplete(q(this,this.stop))},draw:function(a){this.graphics.clear();if(this.direction==pb.IN){this.drawBitmap.draw(h.engine.colorLayer);this.drawBitmap.draw(h.engine.master);this.graphics.beginFill(this.color);this.graphics.drawRect(0,0,this.screenWidth,this.screenHeight);this.graphics.endFill();a=0;for(var b=this.bubblePositions;a<b.length;){var c=b[a];++a;this.graphics.beginBitmapFill(this.drawBitmap);this.graphics.drawCircle(c.x,c.y,this.radius.value); +this.graphics.endFill()}}else if(this.direction==pb.OUT)for(a=0,b=this.bubblePositions;a<b.length;)c=b[a],++a,this.graphics.beginFill(this.color),this.graphics.drawCircle(c.x,c.y,this.radius.value),this.graphics.endFill()},cleanup:function(){null!=this.rect&&(h.engine.transitionLayer.removeChild(this.rect),this.rect=null)},__class__:Aj});var Dj=function(a,b,c){null==c&&(c=-16777216);pb.call(this,b);this.color=c;this.direction=a;a==pb.IN?(this.beginRadius=0,this.endRadius=Math.ceil(oa.distance(new oa(0, +0),new oa(h.screenWidthHalf*h.SCALE,h.screenHeightHalf*h.SCALE)))|0):a==pb.OUT&&(this.beginRadius=Math.ceil(oa.distance(new oa(0,0),new oa(h.screenWidthHalf*h.SCALE,h.screenHeightHalf*h.SCALE)))|0,this.endRadius=0)};k["com.stencyl.graphics.transitions.CircleTransition"]=Dj;Dj.__name__="com.stencyl.graphics.transitions.CircleTransition";Dj.__super__=pb;Dj.prototype=u(pb.prototype,{color:null,radius:null,beginRadius:null,endRadius:null,circleImg:null,s:null,start:function(){this.active=!0;this.s=new Me; +this.circleImg=new Ja(h.screenWidth*h.SCALE|0,h.screenHeight*h.SCALE|0);this.radius=new tc;if(this.direction==pb.IN){var a=this.s.get_graphics();a.beginFill(this.color);a.drawRect(0,0,h.screenWidth*h.SCALE,h.screenHeight*h.SCALE);a.endFill()}h.engine.transitionLayer.addChild(this.s);this.radius.tween(this.beginRadius,this.endRadius,ia.linear,1E3*this.duration|0).doOnComplete(q(this,this.stop))},draw:function(a){this.s.get_graphics().clear();this.s.get_graphics().beginFill(this.color);this.s.get_graphics().drawRect(0, +0,h.screenWidth*h.SCALE,h.screenHeight*h.SCALE);this.s.get_graphics().endFill();this.circleImg.draw(h.engine.colorLayer);this.circleImg.draw(h.engine.master);this.s.get_graphics().beginBitmapFill(this.circleImg);this.s.get_graphics().drawCircle(h.screenWidthHalf*h.SCALE,h.screenHeightHalf*h.SCALE,this.radius.value);this.s.get_graphics().endFill()},cleanup:function(){null!=this.s&&(h.engine.transitionLayer.removeChild(this.s),this.s=null)},__class__:Dj});var cl=function(a,b){pb.call(this,b);this.oldImg= +a};k["com.stencyl.graphics.transitions.CrossfadeTransition"]=cl;cl.__name__="com.stencyl.graphics.transitions.CrossfadeTransition";cl.__super__=pb;cl.prototype=u(pb.prototype,{oldImg:null,bitmap:null,rect:null,rectAlpha:null,start:function(){this.active=!0;this.bitmap=new Ja(h.screenWidth*h.SCALE|0,h.screenHeight*h.SCALE|0);this.bitmap.draw(this.oldImg);this.rect=new Me;var a=this.rect.get_graphics();a.beginBitmapFill(this.bitmap);a.drawRect(0,0,h.screenWidth*h.SCALE,h.screenHeight*h.SCALE);a.endFill(); +h.engine.transitionLayer.addChild(this.rect);this.rectAlpha=new tc;this.rectAlpha.tween(1,0,ia.linear,1E3*this.duration|0).doOnComplete(q(this,this.stop))},update:function(a){this.rect.set_alpha(this.rectAlpha.value)},draw:function(a){},cleanup:function(){this.bitmap=this.oldImg=null;null!=this.rect&&(h.engine.transitionLayer.removeChild(this.rect),this.rect=null)},__class__:cl});var el=function(a,b){null==b&&(b=-16777216);pb.call(this,a);this.color=b;this.direction=pb.IN};k["com.stencyl.graphics.transitions.FadeInTransition"]= +el;el.__name__="com.stencyl.graphics.transitions.FadeInTransition";el.__super__=pb;el.prototype=u(pb.prototype,{color:null,rect:null,rectAlpha:null,start:function(){this.active=!0;this.rect=new Me;var a=this.rect.get_graphics();a.beginFill(this.color);a.drawRect(0,0,h.screenWidth*h.SCALE+4,h.screenHeight*h.SCALE+4);a.endFill();a.drawCircle(1,1,1);h.engine.transitionLayer.addChild(this.rect);this.rectAlpha=new tc;this.rectAlpha.tween(1,0,ia.linear,1E3*this.duration|0).doOnComplete(q(this,this.stop))}, +update:function(a){this.rect.set_alpha(this.rectAlpha.value)},cleanup:function(){null!=this.rect&&(h.engine.transitionLayer.removeChild(this.rect),this.rect=null)},__class__:el});var dl=function(a,b){null==b&&(b=-16777216);pb.call(this,a);this.color=b;this.direction=pb.IN};k["com.stencyl.graphics.transitions.FadeOutTransition"]=dl;dl.__name__="com.stencyl.graphics.transitions.FadeOutTransition";dl.__super__=pb;dl.prototype=u(pb.prototype,{color:null,rect:null,rectAlpha:null,start:function(){this.active= +!0;this.rect=new Me;this.rect.set_alpha(0);var a=this.rect.get_graphics();a.beginFill(this.color);a.drawRect(0,0,h.screenWidth*h.SCALE+4,h.screenHeight*h.SCALE+4);a.endFill();a.drawCircle(1,1,1);h.engine.transitionLayer.addChild(this.rect);this.rectAlpha=new tc;this.rectAlpha.tween(0,1,ia.linear,1E3*this.duration|0).doOnComplete(q(this,this.stop))},update:function(a){this.rect.set_alpha(this.rectAlpha.value)},cleanup:function(){null!=this.rect&&(h.engine.transitionLayer.removeChild(this.rect),this.rect= +null)},__class__:dl});var zj=function(a,b,c){pb.call(this,a);this.beginPixelSize=b;this.endPixelSize=c};k["com.stencyl.graphics.transitions.PixelizeTransition"]=zj;zj.__name__="com.stencyl.graphics.transitions.PixelizeTransition";zj.__super__=pb;zj.prototype=u(pb.prototype,{pixelSizeTween:null,beginPixelSize:null,endPixelSize:null,srcImg:null,displayImg:null,displayBitmap:null,c:null,r:null,xOverflow:null,yOverflow:null,pixelRect:null,halfSize:null,start:function(){this.active=!0;this.srcImg=new Ja(h.screenWidth* +h.SCALE|0,h.screenHeight*h.SCALE|0);this.displayImg=new Ja(h.screenWidth*h.SCALE|0,h.screenHeight*h.SCALE|0);this.pixelRect=new fa(0,0,0,0);h.engine.transitionLayer.addChild(this.displayBitmap=new Vb(this.displayImg));this.pixelSizeTween=new tc;this.pixelSizeTween.tween(this.beginPixelSize,this.endPixelSize,ia.linear,1E3*this.duration|0).doOnComplete(q(this,this.stop))},draw:function(a){a=this.pixelSizeTween.value|0;if(1==a)this.displayImg.draw(h.engine.colorLayer),this.displayImg.draw(h.engine.master); +else{this.srcImg.draw(h.engine.colorLayer);this.srcImg.draw(h.engine.master);this.c=Math.ceil(h.screenWidth*h.SCALE/a);this.r=Math.ceil(h.screenHeight*h.SCALE/a);this.xOverflow=this.c*a-h.screenWidth*h.SCALE|0;this.yOverflow=this.r*a-h.screenHeight*h.SCALE|0;this.pixelRect.x=-this.xOverflow/2;this.pixelRect.y=-this.yOverflow/2;this.pixelRect.height=this.pixelRect.width=a;this.halfSize=a/2|0;this.displayImg.lock();for(var b=0,c=this.r;b<c;){b++;for(var d=0,e=this.c;d<e;){d++;var g=this.srcImg.getPixel32(this.pixelRect.x+ +this.halfSize|0,this.pixelRect.y+this.halfSize|0);for(var f=this.pixelRect.x|0,l=this.pixelRect.x+this.pixelRect.width|0;f<l;)for(var t=f++,m=this.pixelRect.y|0,k=this.pixelRect.y+this.pixelRect.height|0;m<k;){var p=m++;this.displayImg.setPixel32(t,p,g)}this.pixelRect.x+=a}this.pixelRect.x=-this.xOverflow/2;this.pixelRect.y+=a}this.displayImg.unlock()}},cleanup:function(){null!=this.displayBitmap&&h.engine.transitionLayer.removeChild(this.displayBitmap)},__class__:zj});var Cj=function(a,b,c){pb.call(this, +b);this.color=c;this.direction=a;a==pb.IN?(this.beginHeight=this.beginWidth=0,this.endWidth=h.screenWidth*h.SCALE|0,this.endHeight=h.screenHeight*h.SCALE|0):a==pb.OUT?(this.beginWidth=h.screenWidth*h.SCALE|0,this.beginHeight=h.screenHeight*h.SCALE|0,this.endHeight=this.endWidth=0):this.complete=!0};k["com.stencyl.graphics.transitions.RectangleTransition"]=Cj;Cj.__name__="com.stencyl.graphics.transitions.RectangleTransition";Cj.__super__=pb;Cj.prototype=u(pb.prototype,{rectangleImg:null,graphics:null, +color:null,size:null,beginWidth:null,endWidth:null,beginHeight:null,endHeight:null,rect:null,start:function(){this.active=!0;this.size=new Kf;this.rectangleImg=new Ja(h.screenWidth*h.SCALE|0,h.screenHeight*h.SCALE|0);this.rect=new Me;this.graphics=this.rect.get_graphics();this.direction==pb.IN&&(this.graphics.beginFill(this.color),this.graphics.drawRect(0,0,h.screenWidth*h.SCALE,h.screenHeight*h.SCALE),this.graphics.endFill());h.engine.transitionLayer.addChild(this.rect);this.size.onComplete=q(this, +this.stop);this.size.tween(this.beginWidth,this.endWidth,this.beginHeight,this.endHeight,ia.linear,1E3*this.duration|0)},draw:function(a){this.graphics.clear();this.graphics.beginFill(this.color);this.graphics.drawRect(0,0,h.screenWidth*h.SCALE,h.screenHeight*h.SCALE);this.graphics.endFill();this.rectangleImg.draw(h.engine.colorLayer);this.rectangleImg.draw(h.engine.master);this.graphics.beginBitmapFill(this.rectangleImg);this.graphics.drawRect((h.screenWidth*h.SCALE-this.size.value1)/2,(h.screenHeight* +h.SCALE-this.size.value2)/2,this.size.value1,this.size.value2);this.graphics.endFill()},cleanup:function(){null!=this.rect&&(h.engine.transitionLayer.removeChild(this.rect),this.rect=null)},__class__:Cj});var Ne=function(a,b,c,d){pb.call(this,c);this.sceneSpr=a;this.sceneCol=b;this.oldSceneMatrix=new Aa;this.newSceneMatrix=new Aa;this.ty=this.tx=0;d==Ne.SLIDE_UP?(this.newSceneMatrix.ty=-h.screenHeight*h.SCALE,this.ty=h.screenHeight*h.SCALE):d==Ne.SLIDE_DOWN?(this.newSceneMatrix.ty=h.screenHeight* +h.SCALE,this.ty=-h.screenHeight*h.SCALE):d==Ne.SLIDE_LEFT?(this.newSceneMatrix.tx=-h.screenWidth*h.SCALE,this.tx=h.screenWidth*h.SCALE):d==Ne.SLIDE_RIGHT?(this.newSceneMatrix.tx=h.screenWidth*h.SCALE,this.tx=-h.screenWidth*h.SCALE):this.complete=!0};k["com.stencyl.graphics.transitions.SlideTransition"]=Ne;Ne.__name__="com.stencyl.graphics.transitions.SlideTransition";Ne.__super__=pb;Ne.prototype=u(pb.prototype,{sceneSpr:null,sceneCol:null,oldBitmap:null,newBitmap:null,drawBitmap:null,graphics:null, +oldSceneMatrix:null,newSceneMatrix:null,osm_xy:null,nsm_xy:null,tx:null,ty:null,rect:null,start:function(){this.active=!0;this.oldBitmap=new Ja(h.screenWidth*h.SCALE|0,h.screenHeight*h.SCALE|0);this.oldBitmap.draw(this.sceneCol);this.oldBitmap.draw(this.sceneSpr);this.newBitmap=new Ja(h.screenWidth*h.SCALE|0,h.screenHeight*h.SCALE|0);this.drawBitmap=new Ja(h.screenWidth*h.SCALE|0,h.screenHeight*h.SCALE|0);this.rect=new Me;this.graphics=this.rect.get_graphics();this.graphics.beginBitmapFill(this.oldBitmap); +this.graphics.drawRect(0,0,h.screenWidth*h.SCALE,h.screenHeight*h.SCALE);this.graphics.endFill();h.engine.transitionLayer.addChild(this.rect);this.osm_xy=new Kf;this.nsm_xy=new Kf;this.osm_xy.tween(this.oldSceneMatrix.tx,this.tx,this.oldSceneMatrix.ty,this.ty,ia.linear,1E3*this.duration|0);this.nsm_xy.tween(this.newSceneMatrix.tx,0,this.newSceneMatrix.ty,0,ia.linear,1E3*this.duration|0);this.nsm_xy.doOnComplete(q(this,this.stop))},update:function(a){this.oldSceneMatrix.tx=this.osm_xy.value1;this.oldSceneMatrix.ty= +this.osm_xy.value2;this.newSceneMatrix.tx=this.nsm_xy.value1;this.newSceneMatrix.ty=this.nsm_xy.value2},draw:function(a){this.graphics.clear();this.newBitmap.draw(this.sceneCol);this.newBitmap.draw(this.sceneSpr);this.drawBitmap.draw(this.newBitmap,this.newSceneMatrix);this.drawBitmap.draw(this.oldBitmap,this.oldSceneMatrix);this.graphics.beginBitmapFill(this.drawBitmap);this.graphics.drawRect(0,0,h.screenWidth*h.SCALE,h.screenHeight*h.SCALE);this.graphics.endFill()},cleanup:function(){this.sceneSpr= +null;null!=this.rect&&(h.engine.transitionLayer.removeChild(this.rect),this.rect=null)},__class__:Ne});var Rg=function(){};k["com.stencyl.io.AbstractReader"]=Rg;Rg.__name__="com.stencyl.io.AbstractReader";Rg.__isInterface__=!0;Rg.prototype={accepts:null,read:null,__class__:Rg};var Wk=function(){};k["com.stencyl.io.ActorTypeReader"]=Wk;Wk.__name__="com.stencyl.io.ActorTypeReader";Wk.__interfaces__=[Rg];Wk.prototype={accepts:function(a){return a==Na.MBS_ACTOR_TYPE.getName()},read:function(a){var b= +a.getId(),c=a.getAtlasID(),d=a.getName(),e=new oi;e.fixedRotation=a.getFixedRotation();switch(a.getBodyType()){case 0:var g=ua.b2_staticBody;break;case 1:g=ua.b2_kinematicBody;break;default:g=ua.b2_dynamicBody}e.type=g;e.linearDamping=a.getLinearDamping();e.angularDamping=a.getAngularDamping();e.friction=a.getFriction();e.bounciness=a.getRestitution();e.mass=a.getMass();e.aMass=a.getInertia();e.active=!0;e.bullet=!1;e.allowSleep=!1;e.awake=!0;e.ignoreGravity=a.getIgnoreGravity();e.bullet=a.getContinuous(); +g=a.getSprite();var f=a.getGroupID(),l=a.getPhysicsMode(),t=a.getAutoScale(),m=a.getPausable(),h=e.ignoreGravity||e.type==ua.b2_staticBody||e.type==ua.b2_kinematicBody,p=pe.readBehaviors(a.getSnippets());a=a.getEventSnippetID();if(-1<a){var k=new Gj(a,new V);p.h[""+a]=k}return new cg(b,c,d,f,g,p,e,l,t,m,h)},__class__:Wk};var pe=function(){};k["com.stencyl.io.AttributeValues"]=pe;pe.__name__="com.stencyl.io.AttributeValues";pe.readBehaviors=function(a){for(var b=new V,c=0,d=a.length();c<d;){c++;var e= +a.getNextObject();if(e.getEnabled()){var g=e.getId();e=pe.readBehaviorProperties(e.getProperties());e=new Gj(g,e);b.h[""+g]=e}}return b};pe.readBehaviorProperties=function(a){for(var b=new V,c=0,d=a.length();c<d;){c++;var e=a.getNextObject(),g=e.getId(),f=e.getType();e=pe.readAttribute(f,e);b.h[""+g]=e}return b};pe.readAttribute=function(a,b){switch(a){case "list":return pe.readList(b.getValue());case "map":return pe.readMap(b.getValue());default:return b.getValue()}};pe.readAttributeDef=function(a, +b){switch(a){case "list":return pe.readList(b.getDefaultValue());case "map":return pe.readMap(b.getDefaultValue());default:return b.getDefaultValue()}};pe.readList=function(a){if(null==a)return null;for(var b=[],c=0,d=a.length();c<d;){var e=c++;b[e]=a.readObject()}return b};pe.readMap=function(a){if(null==a)return null;for(var b=new V,c=0,d=a.length();c<d;){c++;var e=a.getNextObject(),g=e.getKey();e=e.getValue();if(e instanceof rh){for(var f=[],l=0,t=e.length();l<t;)l++,f.push(e.readObject());e=f}else e instanceof +Qa&&(e=pe.readMap(e));b.h[g]=e}return b};var Tk=function(){};k["com.stencyl.io.BackgroundReader"]=Tk;Tk.__name__="com.stencyl.io.BackgroundReader";Tk.__interfaces__=[Rg];Tk.prototype={accepts:function(a){return a==hb.MBS_BACKGROUND.getName()},read:function(a){var b=a.getId(),c=a.getAtlasID(),d=a.getName(),e=a.getXVelocity(),g=a.getYVelocity(),f=a.getXParallaxFactor(),l=a.getYParallaxFactor(),t=[];if(0<a.getNumFrames())for(var m=a.getDurations(),h=0,p=m.length();h<p;)h++,t.push(m.readInt());a=a.getRepeats(); +return 0!=e||0!=g?new sh(b,c,d,t,f,l,a,e,g):new yg(b,c,d,t,f,l,a)},__class__:Tk};var si=function(){};k["com.stencyl.io.BehaviorReader"]=si;si.__name__="com.stencyl.io.BehaviorReader";si.readBehavior=function(a){var b=a.getId(),c=a.getName(),d=a.getClassname(),e=a.getAttachedEvent(),g=new V,f=a.getType();a=a.getAttributes();for(var l=0,t=a.length();l<t;){l++;var m=a.getNextObject(),h=""+m.getId();m=si.readAttribute(m,e);g.h[h]=m}return new Zk(null,null,b,c,d,!0,!0,g,f,e)};si.readAttribute=function(a, +b){var c=a.getId(),d=a.getName(),e=a.getFullname();b=b||a.getHidden();var g=a.getType();a=pe.readAttributeDef(g,a);return new ti(c,d,e,a,g,null,b)};si.prototype={__class__:si};var Yk=function(){};k["com.stencyl.io.FontReader"]=Yk;Yk.__name__="com.stencyl.io.FontReader";Yk.__interfaces__=[Rg];Yk.prototype={accepts:function(a){return a==cc.MBS_FONT.getName()},read:function(a){return new Ke(a.getId(),a.getAtlasID(),a.getName(),!1)},__class__:Yk};var qd=function(){};k["com.stencyl.io.ShapeReader"]=qd; +qd.__name__="com.stencyl.io.ShapeReader";qd.readPoint=function(a){return new oa(a.getX(),a.getY())};qd.readPoints=function(a){for(var b=Array(a.length()),c=0,d=a.length();c<d;){var e=c++,g=a.getNextObject();b[e]=new oa(g.getX(),g.getY())}return b};qd.createCircle=function(a,b,c,d,e){null==e&&(e=-1);null==d&&(d=-1);var g=2*a,f=new Hc;f.m_radius=h.toPhysicalUnits(a);f.m_p.x=h.toPhysicalUnits(b-(d-g)/2);f.m_p.y=h.toPhysicalUnits(c-(e-g)/2);return f};qd.createPolygon=function(a,b,c,d){null==d&&(d=0); +null==c&&(c=0);var e=[];var g=b.length;var f=0;c=-c/2|0;d=-d/2|0;if("MbsPolygon"==a||"MbsPolyRegion"==a){for(f=0;f<g;){var l=b[f];a=h.toPhysicalUnits(l.x+c);l=h.toPhysicalUnits(l.y+d);e[f]=new z(a,l);++f}qd.EnsureCorrectVertexDirection(e);return Bb.asArray(e,e.length)}if("MbsWireframe"==a){for(;f<g;)l=b[f],e.push(new z(h.toPhysicalUnits(l.x),h.toPhysicalUnits(l.y))),++f;b=qd.getWidth(e);g=qd.getHeight(e);f=[];c=0;for(d=e.length+1;c<d;){var t=c++;a=new qg(e[t%e.length],e[(t+1)%e.length]);f.push(a); +a.m_hasVertex0=!0;a.m_hasVertex3=!0;l=e[(t-1)%e.length];t=e[(t+2)%e.length];null==l&&(l=e[e.length-1]);null==t&&(t=e[0]);a.m_v0=l;a.m_v3=t}e=new Sa;e.h[0]=f;e.h[1]=b;e.h[2]=g;return e}return null};qd.CheckVertexDirection=function(a){if(2<a.length){for(var b=0,c=0;0==b&&c<a.length-2;)b=a[c].winding(a[c+1],a[c+2]),++c;if(0>b)return!1}return!0};qd.EnsureCorrectVertexDirection=function(a){return qd.CheckVertexDirection(a)?!0:(qd.ReverseVertices(a),!1)};qd.ReverseVertices=function(a){for(var b=0,c=a.length- +1,d;c>b;)d=a[b].x,a[b].x=a[c].x,a[c].x=d,d=a[b].y,a[b].y=a[c].y,a[c].y=d,++b,--c};qd.getWidth=function(a){for(var b=1E7,c=0,d=0;d<a.length;){var e=a[d];++d;b=Math.min(b,e.x);c=Math.max(c,e.x)}return c-b};qd.getHeight=function(a){for(var b=1E7,c=0,d=0;d<a.length;){var e=a[d];++d;b=Math.min(b,e.y);c=Math.max(c,e.y)}return c-b};var Uk=function(){};k["com.stencyl.io.SoundReader"]=Uk;Uk.__name__="com.stencyl.io.SoundReader";Uk.__interfaces__=[Rg];Uk.prototype={accepts:function(a){return a==pc.MBS_MUSIC.getName()}, +read:function(a){var b=a.getStream(),c=a.getLoop(),d=a.getPan(),e=a.getVolume(),g=a.getType();return new Oh(a.getId(),a.getName(),b,c,d,e,g,a.getAtlasID())},__class__:Uk};var Xk=function(){};k["com.stencyl.io.SpriteReader"]=Xk;Xk.__name__="com.stencyl.io.SpriteReader";Xk.__interfaces__=[Rg];Xk.prototype={accepts:function(a){return a==nc.MBS_SPRITE.getName()},read:function(a){var b=a.getDefaultAnimation(),c=a.getReadableImages();b=new ri(a.getId(),a.getAtlasID(),a.getName(),b,c);a=a.getAnimations(); +c=0;for(var d=a.length();c<d;){c++;var e=a.getNextObject();e=this.readAnimation(e,b);b.animations.h[e.animID]=e}return b},readAnimation:function(a,b){for(var c=a.getId(),d=a.getName(),e=a.getWidth(),g=a.getHeight(),f=a.getOriginX(),l=a.getOriginY(),t=a.getNumFrames(),m=a.getAcross(),h=a.getDown(),p=this.readSimpleShapes(a,e/m|0,g/h|0),k=this.readShapes(a,e/m|0,g/h|0),n=a.getLoop(),r=a.getSync(),q=[],v=a.getDurations(),u=0,oe=v.length();u<oe;)a=u++,q[a]=v.readInt(),q[a]=Math.floor(q[a]/10),q[a]*=10; +return new me(c,d,b,p,k,n,r,e,g,f,l,q,t,m,h)},readSimpleShapes:function(a,b,c){b=new Sa;a=a.getShapes();c=0;for(var d=a.length();c<d;){c++;var e=a.getNextObject(),g=e.getId(),f=e.getGroupID(),l=e.getSensor();e=e.getShape();if(e instanceof Pc&&(e=e.getPoints(),4==e.length())){for(var t=e.getNextObject(),m=0,h=1E7,p=1E7,k=0,n=0,r=t.getX()|0,q=t.getY()|0;m<e.length();)h=Math.min(h,t.getX())|0,p=Math.min(p,t.getY())|0,k=Math.max(k,t.getX())|0,n=Math.max(n,t.getY())|0,++m,m<e.length()&&(t=e.getNextObject()); +f=new bd(k-h,n-p,r,q,!l,f);b.h[g]=f}}return b},readShapes:function(a,b,c){var d=new Sa;a=a.getShapes();for(var e=0,g=a.length();e<g;){e++;var f=a.getNextObject(),l=f.getId();f.getGroupID();var t=f.getSensor(),m=f.getShape();if(m instanceof Bd)m=qd.createCircle(m.getRadius(),m.getPosition().getX(),m.getPosition().getY(),b,c);else{var h=m;m=qd.createPolygon(m.getMbsType().getName(),qd.readPoints(h.getPoints()).slice(0),b,c)}h=new Gf;h.shape=m;h.density=f.getDensity();h.friction=f.getFriction();h.restitution= +f.getRestitution();h.isSensor=t;h.groupID=f.getGroupID();d.h[l]=h}return d},__class__:Xk};var Vk=function(){};k["com.stencyl.io.TilesetReader"]=Vk;Vk.__name__="com.stencyl.io.TilesetReader";Vk.__interfaces__=[Rg];Vk.prototype={accepts:function(a){return a==dc.MBS_TILESET.getName()},read:function(a){var b=a.getAcross(),c=a.getDown(),d=a.getTileWidth(),e=a.getTileHeight(),g=a.getReadableImages(),f=[];b=new qf(a.getId(),a.getAtlasID(),a.getName(),b,c,d,e,g,f);a=a.getTiles();c=0;for(d=a.length();c<d;)c++, +e=a.getNextObject(),f[e.getId()]=this.readTile(e,b);b.isAtlasActive()&&b.loadGraphics();return b},readTile:function(a,b){for(var c=a.getId(),d=a.getCollision(),e=a.getMetadata(),g=a.getFrames(),f=[],l=0,t=a.getDurations(),m=0,h=t.length();m<h;)m++,f[l]=t.readInt(),f[l]=Math.floor(f[l]/10),f[l]*=10,++l;l=null;-1!=a.getAutotile()&&(m=va.get().autotileFormats,h=a.getAutotile(),l=m.h[h]);t=null;if(0!=a.getAutotileMerge().length())for(t=new Sa,a=a.getAutotileMerge(),m=0,h=a.length();m<h;){m++;var p=a.readInt(); +t.h[p]=p}return new Ic(c,d,e,g,f,l,t,b)},__class__:Vk};var ib=function(a){this.data=a};k["mbs.core.MbsObject"]=ib;ib.__name__="mbs.core.MbsObject";ib.prototype={data:null,address:null,getMbs:function(){return this.data},getAddress:function(){return this.address},setAddress:function(a){this.address=a},getMbsType:function(){throw R.thrown("Must override getMbsType in MbsObject subclasses");},__class__:ib};var mb=function(a){this.data=a};k["com.stencyl.io.mbs.MbsResource"]=mb;mb.__name__="com.stencyl.io.mbs.MbsResource"; +mb.initializeType=function(){null==mb.MBS_RESOURCE&&(mb.MBS_RESOURCE=new wb("MbsResource"),mb.MBS_RESOURCE.setInstantiator(function(a){return new mb(a)}),mb.atlasID=mb.MBS_RESOURCE.createField("atlasID",L.INTEGER),mb.description=mb.MBS_RESOURCE.createField("description",L.STRING),mb.id=mb.MBS_RESOURCE.createField("id",L.INTEGER),mb.$name=mb.MBS_RESOURCE.createField("name",L.STRING))};mb.new_MbsResource_list=function(a){return new Qa(a,mb.MBS_RESOURCE,new mb(a))};mb.__super__=ib;mb.prototype=u(ib.prototype, +{getMbsType:function(){return mb.MBS_RESOURCE},allocateNew:function(){this.setAddress(this.data.allocate(mb.MBS_RESOURCE.getSize()))},getAtlasID:function(){return this.data.readInt(this.address+mb.atlasID.address)},setAtlasID:function(a){this.data.writeInt(this.address+mb.atlasID.address,a)},getDescription:function(){return this.data.readString(this.address+mb.description.address)},setDescription:function(a){this.data.writeString(this.address+mb.description.address,a)},getId:function(){return this.data.readInt(this.address+ +mb.id.address)},setId:function(a){this.data.writeInt(this.address+mb.id.address,a)},getName:function(){return this.data.readString(this.address+mb.$name.address)},setName:function(a){this.data.writeString(this.address+mb.$name.address,a)},__class__:mb});var hb=function(a){this.data=a;this._durations=new Lf(a)};k["com.stencyl.io.mbs.MbsBackground"]=hb;hb.__name__="com.stencyl.io.mbs.MbsBackground";hb.initializeType=function(){null==hb.MBS_BACKGROUND&&(mb.initializeType(),hb.MBS_BACKGROUND=new wb("MbsBackground"), +hb.MBS_BACKGROUND.setInstantiator(function(a){return new hb(a)}),hb.MBS_BACKGROUND.inherit(mb.MBS_RESOURCE),hb.readableImages=hb.MBS_BACKGROUND.createField("readableImages",L.BOOLEAN),hb.durations=hb.MBS_BACKGROUND.createField("durations",L.LIST),hb.height=hb.MBS_BACKGROUND.createField("height",L.INTEGER),hb.numFrames=hb.MBS_BACKGROUND.createField("numFrames",L.INTEGER),hb.repeats=hb.MBS_BACKGROUND.createField("repeats",L.BOOLEAN),hb.resized=hb.MBS_BACKGROUND.createField("resized",L.BOOLEAN),hb.width= +hb.MBS_BACKGROUND.createField("width",L.INTEGER),hb.xParallaxFactor=hb.MBS_BACKGROUND.createField("xParallaxFactor",L.FLOAT),hb.xVelocity=hb.MBS_BACKGROUND.createField("xVelocity",L.FLOAT),hb.yParallaxFactor=hb.MBS_BACKGROUND.createField("yParallaxFactor",L.FLOAT),hb.yVelocity=hb.MBS_BACKGROUND.createField("yVelocity",L.FLOAT))};hb.new_MbsBackground_list=function(a){return new Qa(a,hb.MBS_BACKGROUND,new hb(a))};hb.__super__=mb;hb.prototype=u(mb.prototype,{getMbsType:function(){return hb.MBS_BACKGROUND}, +_durations:null,allocateNew:function(){this.setAddress(this.data.allocate(hb.MBS_BACKGROUND.getSize()))},getReadableImages:function(){return this.data.readBool(this.address+hb.readableImages.address)},setReadableImages:function(a){this.data.writeBool(this.address+hb.readableImages.address,a)},getDurations:function(){this._durations.setAddress(this.data.readInt(this.address+hb.durations.address));return this._durations},createDurations:function(a){this._durations.allocateNew(a);this.data.writeInt(this.address+ +hb.durations.address,this._durations.getAddress());return this._durations},getHeight:function(){return this.data.readInt(this.address+hb.height.address)},setHeight:function(a){this.data.writeInt(this.address+hb.height.address,a)},getNumFrames:function(){return this.data.readInt(this.address+hb.numFrames.address)},setNumFrames:function(a){this.data.writeInt(this.address+hb.numFrames.address,a)},getRepeats:function(){return this.data.readBool(this.address+hb.repeats.address)},setRepeats:function(a){this.data.writeBool(this.address+ +hb.repeats.address,a)},getResized:function(){return this.data.readBool(this.address+hb.resized.address)},setResized:function(a){this.data.writeBool(this.address+hb.resized.address,a)},getWidth:function(){return this.data.readInt(this.address+hb.width.address)},setWidth:function(a){this.data.writeInt(this.address+hb.width.address,a)},getXParallaxFactor:function(){return this.data.readFloat(this.address+hb.xParallaxFactor.address)},setXParallaxFactor:function(a){this.data.writeFloat(this.address+hb.xParallaxFactor.address, +a)},getXVelocity:function(){return this.data.readFloat(this.address+hb.xVelocity.address)},setXVelocity:function(a){this.data.writeFloat(this.address+hb.xVelocity.address,a)},getYParallaxFactor:function(){return this.data.readFloat(this.address+hb.yParallaxFactor.address)},setYParallaxFactor:function(a){this.data.writeFloat(this.address+hb.yParallaxFactor.address,a)},getYVelocity:function(){return this.data.readFloat(this.address+hb.yVelocity.address)},setYVelocity:function(a){this.data.writeFloat(this.address+ +hb.yVelocity.address,a)},__class__:hb});var rd=function(a){this.data=a};k["com.stencyl.io.mbs.MbsBlank"]=rd;rd.__name__="com.stencyl.io.mbs.MbsBlank";rd.initializeType=function(){null==rd.MBS_BLANK&&(rd.MBS_BLANK=new wb("MbsBlank"),rd.MBS_BLANK.setInstantiator(function(a){return new rd(a)}),rd.$name=rd.MBS_BLANK.createField("name",L.STRING),rd.type=rd.MBS_BLANK.createField("type",L.STRING))};rd.new_MbsBlank_list=function(a){return new Qa(a,rd.MBS_BLANK,new rd(a))};rd.__super__=ib;rd.prototype=u(ib.prototype, +{getMbsType:function(){return rd.MBS_BLANK},allocateNew:function(){this.setAddress(this.data.allocate(rd.MBS_BLANK.getSize()))},getName:function(){return this.data.readString(this.address+rd.$name.address)},setName:function(a){this.data.writeString(this.address+rd.$name.address,a)},getType:function(){return this.data.readString(this.address+rd.type.address)},setType:function(a){this.data.writeString(this.address+rd.type.address,a)},__class__:rd});var Cb=function(a){this.data=a;this._blanks=new Qa(a, +rd.MBS_BLANK,new rd(a))};k["com.stencyl.io.mbs.MbsCustomBlock"]=Cb;Cb.__name__="com.stencyl.io.mbs.MbsCustomBlock";Cb.initializeType=function(){null==Cb.MBS_CUSTOM_BLOCK&&(mb.initializeType(),Cb.MBS_CUSTOM_BLOCK=new wb("MbsCustomBlock"),Cb.MBS_CUSTOM_BLOCK.setInstantiator(function(a){return new Cb(a)}),Cb.MBS_CUSTOM_BLOCK.inherit(mb.MBS_RESOURCE),Cb.blocktag=Cb.MBS_CUSTOM_BLOCK.createField("blocktag",L.STRING),Cb.blocktype=Cb.MBS_CUSTOM_BLOCK.createField("blocktype",L.STRING),Cb.code=Cb.MBS_CUSTOM_BLOCK.createField("code", +L.STRING),Cb.global=Cb.MBS_CUSTOM_BLOCK.createField("global",L.BOOLEAN),Cb.gui=Cb.MBS_CUSTOM_BLOCK.createField("gui",L.STRING),Cb.message=Cb.MBS_CUSTOM_BLOCK.createField("message",L.STRING),Cb.returnType=Cb.MBS_CUSTOM_BLOCK.createField("returnType",L.STRING),Cb.snippetID=Cb.MBS_CUSTOM_BLOCK.createField("snippetID",L.INTEGER),Cb.blanks=Cb.MBS_CUSTOM_BLOCK.createField("blanks",L.LIST))};Cb.new_MbsCustomBlock_list=function(a){return new Qa(a,Cb.MBS_CUSTOM_BLOCK,new Cb(a))};Cb.__super__=mb;Cb.prototype= +u(mb.prototype,{getMbsType:function(){return Cb.MBS_CUSTOM_BLOCK},_blanks:null,allocateNew:function(){this.setAddress(this.data.allocate(Cb.MBS_CUSTOM_BLOCK.getSize()))},getBlocktag:function(){return this.data.readString(this.address+Cb.blocktag.address)},setBlocktag:function(a){this.data.writeString(this.address+Cb.blocktag.address,a)},getBlocktype:function(){return this.data.readString(this.address+Cb.blocktype.address)},setBlocktype:function(a){this.data.writeString(this.address+Cb.blocktype.address, +a)},getCode:function(){return this.data.readString(this.address+Cb.code.address)},setCode:function(a){this.data.writeString(this.address+Cb.code.address,a)},getGlobal:function(){return this.data.readBool(this.address+Cb.global.address)},setGlobal:function(a){this.data.writeBool(this.address+Cb.global.address,a)},getGui:function(){return this.data.readString(this.address+Cb.gui.address)},setGui:function(a){this.data.writeString(this.address+Cb.gui.address,a)},getMessage:function(){return this.data.readString(this.address+ +Cb.message.address)},setMessage:function(a){this.data.writeString(this.address+Cb.message.address,a)},getReturnType:function(){return this.data.readString(this.address+Cb.returnType.address)},setReturnType:function(a){this.data.writeString(this.address+Cb.returnType.address,a)},getSnippetID:function(){return this.data.readInt(this.address+Cb.snippetID.address)},setSnippetID:function(a){this.data.writeInt(this.address+Cb.snippetID.address,a)},getBlanks:function(){this._blanks.setAddress(this.data.readInt(this.address+ +Cb.blanks.address));return this._blanks},createBlanks:function(a){this._blanks.allocateNew(a);this.data.writeInt(this.address+Cb.blanks.address,this._blanks.getAddress());return this._blanks},__class__:Cb});var cc=function(a){this.data=a};k["com.stencyl.io.mbs.MbsFont"]=cc;cc.__name__="com.stencyl.io.mbs.MbsFont";cc.initializeType=function(){null==cc.MBS_FONT&&(mb.initializeType(),cc.MBS_FONT=new wb("MbsFont"),cc.MBS_FONT.setInstantiator(function(a){return new cc(a)}),cc.MBS_FONT.inherit(mb.MBS_RESOURCE), +cc.alphabet=cc.MBS_FONT.createField("alphabet",L.STRING),cc.readableImages=cc.MBS_FONT.createField("readableImages",L.BOOLEAN),cc.height=cc.MBS_FONT.createField("height",L.INTEGER),cc.offsets=cc.MBS_FONT.createField("offsets",L.STRING),cc.prerendered=cc.MBS_FONT.createField("prerendered",L.BOOLEAN),cc.rowHeight=cc.MBS_FONT.createField("rowHeight",L.INTEGER))};cc.new_MbsFont_list=function(a){return new Qa(a,cc.MBS_FONT,new cc(a))};cc.__super__=mb;cc.prototype=u(mb.prototype,{getMbsType:function(){return cc.MBS_FONT}, +allocateNew:function(){this.setAddress(this.data.allocate(cc.MBS_FONT.getSize()))},getAlphabet:function(){return this.data.readString(this.address+cc.alphabet.address)},setAlphabet:function(a){this.data.writeString(this.address+cc.alphabet.address,a)},getReadableImages:function(){return this.data.readBool(this.address+cc.readableImages.address)},setReadableImages:function(a){this.data.writeBool(this.address+cc.readableImages.address,a)},getHeight:function(){return this.data.readInt(this.address+cc.height.address)}, +setHeight:function(a){this.data.writeInt(this.address+cc.height.address,a)},getOffsets:function(){return this.data.readString(this.address+cc.offsets.address)},setOffsets:function(a){this.data.writeString(this.address+cc.offsets.address,a)},getPrerendered:function(){return this.data.readBool(this.address+cc.prerendered.address)},setPrerendered:function(a){this.data.writeBool(this.address+cc.prerendered.address,a)},getRowHeight:function(){return this.data.readInt(this.address+cc.rowHeight.address)}, +setRowHeight:function(a){this.data.writeInt(this.address+cc.rowHeight.address,a)},__class__:cc});var pc=function(a){this.data=a};k["com.stencyl.io.mbs.MbsMusic"]=pc;pc.__name__="com.stencyl.io.mbs.MbsMusic";pc.initializeType=function(){null==pc.MBS_MUSIC&&(mb.initializeType(),pc.MBS_MUSIC=new wb("MbsMusic"),pc.MBS_MUSIC.setInstantiator(function(a){return new pc(a)}),pc.MBS_MUSIC.inherit(mb.MBS_RESOURCE),pc.loop=pc.MBS_MUSIC.createField("loop",L.BOOLEAN),pc.pan=pc.MBS_MUSIC.createField("pan",L.INTEGER), +pc.stream=pc.MBS_MUSIC.createField("stream",L.BOOLEAN),pc.type=pc.MBS_MUSIC.createField("type",L.STRING),pc.volume=pc.MBS_MUSIC.createField("volume",L.INTEGER))};pc.new_MbsMusic_list=function(a){return new Qa(a,pc.MBS_MUSIC,new pc(a))};pc.__super__=mb;pc.prototype=u(mb.prototype,{getMbsType:function(){return pc.MBS_MUSIC},allocateNew:function(){this.setAddress(this.data.allocate(pc.MBS_MUSIC.getSize()))},getLoop:function(){return this.data.readBool(this.address+pc.loop.address)},setLoop:function(a){this.data.writeBool(this.address+ +pc.loop.address,a)},getPan:function(){return this.data.readInt(this.address+pc.pan.address)},setPan:function(a){this.data.writeInt(this.address+pc.pan.address,a)},getStream:function(){return this.data.readBool(this.address+pc.stream.address)},setStream:function(a){this.data.writeBool(this.address+pc.stream.address,a)},getType:function(){return this.data.readString(this.address+pc.type.address)},setType:function(a){this.data.writeString(this.address+pc.type.address,a)},getVolume:function(){return this.data.readInt(this.address+ +pc.volume.address)},setVolume:function(a){this.data.writeInt(this.address+pc.volume.address,a)},__class__:pc});var rf=function(a,b){this.name=a;this.size=b};k["mbs.core.MbsType"]=rf;rf.__name__="mbs.core.MbsType";rf.prototype={name:null,size:null,getName:function(){return this.name},getSize:function(){return this.size},toString:function(){return"MbsType [name="+this.getName()+"]"},createInstance:function(a){throw R.thrown("Can't create an instance of type "+this.name);},__class__:rf};var L=function(){}; +k["mbs.core.MbsTypes"]=L;L.__name__="mbs.core.MbsTypes";var rc=function(a){this.data=a};k["mbs.core.header.MbsHeader"]=rc;rc.__name__="mbs.core.header.MbsHeader";rc.initializeType=function(){null==rc.MBS_HEADER&&(rc.MBS_HEADER=new wb("MbsHeader"),rc.MBS_HEADER.setInstantiator(function(a){return new rc(a)}),rc.version=rc.MBS_HEADER.createField("version",L.INTEGER),rc.typeTableHash=rc.MBS_HEADER.createField("typeTableHash",L.INTEGER),rc.typeTablePointer=rc.MBS_HEADER.createField("typeTablePointer", +L.INTEGER),rc.stringTablePointer=rc.MBS_HEADER.createField("stringTablePointer",L.INTEGER),rc.root=rc.MBS_HEADER.createField("root",L.DYNAMIC))};rc.new_MbsHeader_list=function(a){return new Qa(a,rc.MBS_HEADER,new rc(a))};rc.__super__=ib;rc.prototype=u(ib.prototype,{getMbsType:function(){return rc.MBS_HEADER},allocateNew:function(){this.setAddress(this.data.allocate(rc.MBS_HEADER.getSize()))},getVersion:function(){return this.data.readInt(this.address+rc.version.address)},setVersion:function(a){this.data.writeInt(this.address+ +rc.version.address,a)},getTypeTableHash:function(){return this.data.readInt(this.address+rc.typeTableHash.address)},setTypeTableHash:function(a){this.data.writeInt(this.address+rc.typeTableHash.address,a)},getTypeTablePointer:function(){return this.data.readInt(this.address+rc.typeTablePointer.address)},setTypeTablePointer:function(a){this.data.writeInt(this.address+rc.typeTablePointer.address,a)},getStringTablePointer:function(){return this.data.readInt(this.address+rc.stringTablePointer.address)}, +setStringTablePointer:function(a){this.data.writeInt(this.address+rc.stringTablePointer.address,a)},getRoot:function(){return $d.readDynamic(this.data,this.address+rc.root.address)},setRoot:function(a){$d.writeDynamic(this.data,this.address+rc.root.address,a)},__class__:rc});var wb=function(a){rf.call(this,a,0);this.fields=[]};k["mbs.core.ComposedType"]=wb;wb.__name__="mbs.core.ComposedType";wb.__super__=rf;wb.prototype=u(rf.prototype,{parent:null,fields:null,inherit:function(a){this.parent=a;this.size= +a.getSize()},createField:function(a,b){a=new yi(a,b,this.size);this.fields.push(a);this.size+=b.getSize();return a},getParent:function(){return this.parent},getFields:function(){return this.fields},instantiator:null,setInstantiator:function(a){this.instantiator=a},createInstance:function(a){return null!=this.instantiator?this.instantiator(a):rf.prototype.createInstance.call(this,a)},createList:function(a){return new Qa(a,this,this.createInstance(a))},__class__:wb});var Jc=function(a){this.data=a}; +k["mbs.core.header.MbsTypeInfo"]=Jc;Jc.__name__="mbs.core.header.MbsTypeInfo";Jc.initializeType=function(){null==Jc.MBS_TYPE_INFO&&(Jc.MBS_TYPE_INFO=new wb("MbsTypeInfo"),Jc.MBS_TYPE_INFO.setInstantiator(function(a){return new Jc(a)}),Jc.$name=Jc.MBS_TYPE_INFO.createField("name",L.STRING),Jc.parent=Jc.MBS_TYPE_INFO.createField("parent",L.STRING),Jc.fieldsPointer=Jc.MBS_TYPE_INFO.createField("fieldsPointer",L.INTEGER),Jc.size=Jc.MBS_TYPE_INFO.createField("size",L.INTEGER))};Jc.new_MbsTypeInfo_list= +function(a){return new Qa(a,Jc.MBS_TYPE_INFO,new Jc(a))};Jc.__super__=ib;Jc.prototype=u(ib.prototype,{getMbsType:function(){return Jc.MBS_TYPE_INFO},allocateNew:function(){this.setAddress(this.data.allocate(Jc.MBS_TYPE_INFO.getSize()))},getName:function(){return this.data.readString(this.address+Jc.$name.address)},setName:function(a){this.data.writeString(this.address+Jc.$name.address,a)},getParent:function(){return this.data.readString(this.address+Jc.parent.address)},setParent:function(a){this.data.writeString(this.address+ +Jc.parent.address,a)},getFieldsPointer:function(){return this.data.readInt(this.address+Jc.fieldsPointer.address)},setFieldsPointer:function(a){this.data.writeInt(this.address+Jc.fieldsPointer.address,a)},getSize:function(){return this.data.readInt(this.address+Jc.size.address)},setSize:function(a){this.data.writeInt(this.address+Jc.size.address,a)},__class__:Jc});var Vc=function(a){this.data=a};k["mbs.core.header.MbsFieldInfo"]=Vc;Vc.__name__="mbs.core.header.MbsFieldInfo";Vc.initializeType=function(){null== +Vc.MBS_FIELD_INFO&&(Vc.MBS_FIELD_INFO=new wb("MbsFieldInfo"),Vc.MBS_FIELD_INFO.setInstantiator(function(a){return new Vc(a)}),Vc.$name=Vc.MBS_FIELD_INFO.createField("name",L.STRING),Vc.type=Vc.MBS_FIELD_INFO.createField("type",L.STRING),Vc.fieldAddress=Vc.MBS_FIELD_INFO.createField("fieldAddress",L.INTEGER))};Vc.new_MbsFieldInfo_list=function(a){return new Qa(a,Vc.MBS_FIELD_INFO,new Vc(a))};Vc.__super__=ib;Vc.prototype=u(ib.prototype,{getMbsType:function(){return Vc.MBS_FIELD_INFO},allocateNew:function(){this.setAddress(this.data.allocate(Vc.MBS_FIELD_INFO.getSize()))}, +getName:function(){return this.data.readString(this.address+Vc.$name.address)},setName:function(a){this.data.writeString(this.address+Vc.$name.address,a)},getType:function(){return this.data.readString(this.address+Vc.type.address)},setType:function(a){this.data.writeString(this.address+Vc.type.address,a)},getFieldAddress:function(){return this.data.readInt(this.address+Vc.fieldAddress.address)},setFieldAddress:function(a){this.data.writeInt(this.address+Vc.fieldAddress.address,a)},__class__:Vc}); +var Qh=function(){this.types=Qh.basicTypes.slice();this.typecodes=new ac;this.addTypes();for(var a=0,b=0,c=this.types;b<c.length;){var d=c[b];++b;this.typecodes.set(d,a++)}};k["mbs.core.MbsTypedefSet"]=Qh;Qh.__name__="mbs.core.MbsTypedefSet";Qh.prototype={types:null,typecodes:null,getTypes:function(){return this.types},addTypes:function(){},getHash:function(){return 0},getTypecode:function(a){return this.typecodes.h[a.__id__]},getType:function(a){return this.types[a]},__class__:Qh};var gf=function(){Qh.call(this)}; +k["com.stencyl.io.mbs.Typedefs"]=gf;gf.__name__="com.stencyl.io.mbs.Typedefs";gf.get=function(){null==gf.instance&&(gf.instance=new gf);return gf.instance};gf.__super__=Qh;gf.prototype=u(Qh.prototype,{addTypes:function(){mb.initializeType();this.types.push(mb.MBS_RESOURCE);hb.initializeType();this.types.push(hb.MBS_BACKGROUND);Cb.initializeType();this.types.push(Cb.MBS_CUSTOM_BLOCK);rd.initializeType();this.types.push(rd.MBS_BLANK);cc.initializeType();this.types.push(cc.MBS_FONT);pc.initializeType(); +this.types.push(pc.MBS_MUSIC);Na.initializeType();this.types.push(Na.MBS_ACTOR_TYPE);nc.initializeType();this.types.push(nc.MBS_SPRITE);ab.initializeType();this.types.push(ab.MBS_ANIMATION);Kb.initializeType();this.types.push(Kb.MBS_ANIM_SHAPE);lc.initializeType();this.types.push(lc.MBS_GAME);Cc.initializeType();this.types.push(Cc.MBS_ATLAS);sd.initializeType();this.types.push(sd.MBS_COLLISION_SHAPE);td.initializeType();this.types.push(td.MBS_COLLISION_GROUP);ud.initializeType();this.types.push(ud.MBS_COLLISION_PAIR); +fd.initializeType();this.types.push(fd.MBS_SCENE_HEADER);dc.initializeType();this.types.push(dc.MBS_TILESET);Lb.initializeType();this.types.push(Lb.MBS_TILE);ea.initializeType();this.types.push(ea.MBS_SCENE);kb.initializeType();this.types.push(kb.MBS_ACTOR_INSTANCE);ae.initializeType();this.types.push(ae.MBS_COLOR_BACKGROUND);vd.initializeType();this.types.push(vd.MBS_GRADIENT_BACKGROUND);Ua.initializeType();this.types.push(Ua.MBS_LAYER);be.initializeType();this.types.push(be.MBS_INTERACTIVE_LAYER); +wd.initializeType();this.types.push(wd.MBS_IMAGE_BACKGROUND);Rb.initializeType();this.types.push(Rb.MBS_JOINT);xd.initializeType();this.types.push(xd.MBS_STICK_JOINT);ec.initializeType();this.types.push(ec.MBS_HINGE_JOINT);Mb.initializeType();this.types.push(Mb.MBS_SLIDING_JOINT);Wb.initializeType();this.types.push(Wb.MBS_REGION);Ud.initializeType();this.types.push(Ud.MBS_TERRAIN_REGION);mc.initializeType();this.types.push(mc.MBS_POINT);Ld.initializeType();this.types.push(Ld.MBS_SHAPE);Bd.initializeType(); +this.types.push(Bd.MBS_CIRCLE);Pc.initializeType();this.types.push(Pc.MBS_POLYGON);nd.initializeType();this.types.push(nd.MBS_POLY_REGION);ce.initializeType();this.types.push(ce.MBS_WIREFRAME);db.initializeType();this.types.push(db.MBS_SNIPPET_DEF);zb.initializeType();this.types.push(zb.MBS_ATTRIBUTE_DEF);Wc.initializeType();this.types.push(Wc.MBS_BLOCK);fc.initializeType();this.types.push(fc.MBS_EVENT);Dc.initializeType();this.types.push(Dc.MBS_SNIPPET);Xc.initializeType();this.types.push(Xc.MBS_ATTRIBUTE); +yd.initializeType();this.types.push(yd.MBS_MAP_ELEMENT);gc.initializeType();this.types.push(gc.MBS_AUTOTILE_FORMAT);Yc.initializeType();this.types.push(Yc.MBS_CORNERS)},getHash:function(){return-1349349184},__class__:gf});var Na=function(a){this.data=a;this._snippets=new Qa(a,Dc.MBS_SNIPPET,new Dc(a))};k["com.stencyl.io.mbs.actortype.MbsActorType"]=Na;Na.__name__="com.stencyl.io.mbs.actortype.MbsActorType";Na.initializeType=function(){null==Na.MBS_ACTOR_TYPE&&(mb.initializeType(),Na.MBS_ACTOR_TYPE= +new wb("MbsActorType"),Na.MBS_ACTOR_TYPE.setInstantiator(function(a){return new Na(a)}),Na.MBS_ACTOR_TYPE.inherit(mb.MBS_RESOURCE),Na.angularDamping=Na.MBS_ACTOR_TYPE.createField("angularDamping",L.FLOAT),Na.autoScale=Na.MBS_ACTOR_TYPE.createField("autoScale",L.BOOLEAN),Na.bodyType=Na.MBS_ACTOR_TYPE.createField("bodyType",L.INTEGER),Na.continuous=Na.MBS_ACTOR_TYPE.createField("continuous",L.BOOLEAN),Na.eventSnippetID=Na.MBS_ACTOR_TYPE.createField("eventSnippetID",L.INTEGER),Na.fixedRotation=Na.MBS_ACTOR_TYPE.createField("fixedRotation", +L.BOOLEAN),Na.friction=Na.MBS_ACTOR_TYPE.createField("friction",L.FLOAT),Na.groupID=Na.MBS_ACTOR_TYPE.createField("groupID",L.INTEGER),Na.ignoreGravity=Na.MBS_ACTOR_TYPE.createField("ignoreGravity",L.BOOLEAN),Na.inertia=Na.MBS_ACTOR_TYPE.createField("inertia",L.FLOAT),Na.linearDamping=Na.MBS_ACTOR_TYPE.createField("linearDamping",L.FLOAT),Na.mass=Na.MBS_ACTOR_TYPE.createField("mass",L.FLOAT),Na.pausable=Na.MBS_ACTOR_TYPE.createField("pausable",L.BOOLEAN),Na.physicsMode=Na.MBS_ACTOR_TYPE.createField("physicsMode", +L.INTEGER),Na.restitution=Na.MBS_ACTOR_TYPE.createField("restitution",L.FLOAT),Na.sprite=Na.MBS_ACTOR_TYPE.createField("sprite",L.INTEGER),Na.isStatic=Na.MBS_ACTOR_TYPE.createField("isStatic",L.BOOLEAN),Na.snippets=Na.MBS_ACTOR_TYPE.createField("snippets",L.LIST))};Na.new_MbsActorType_list=function(a){return new Qa(a,Na.MBS_ACTOR_TYPE,new Na(a))};Na.__super__=mb;Na.prototype=u(mb.prototype,{getMbsType:function(){return Na.MBS_ACTOR_TYPE},_snippets:null,allocateNew:function(){this.setAddress(this.data.allocate(Na.MBS_ACTOR_TYPE.getSize()))}, +getAngularDamping:function(){return this.data.readFloat(this.address+Na.angularDamping.address)},setAngularDamping:function(a){this.data.writeFloat(this.address+Na.angularDamping.address,a)},getAutoScale:function(){return this.data.readBool(this.address+Na.autoScale.address)},setAutoScale:function(a){this.data.writeBool(this.address+Na.autoScale.address,a)},getBodyType:function(){return this.data.readInt(this.address+Na.bodyType.address)},setBodyType:function(a){this.data.writeInt(this.address+Na.bodyType.address, +a)},getContinuous:function(){return this.data.readBool(this.address+Na.continuous.address)},setContinuous:function(a){this.data.writeBool(this.address+Na.continuous.address,a)},getEventSnippetID:function(){return this.data.readInt(this.address+Na.eventSnippetID.address)},setEventSnippetID:function(a){this.data.writeInt(this.address+Na.eventSnippetID.address,a)},getFixedRotation:function(){return this.data.readBool(this.address+Na.fixedRotation.address)},setFixedRotation:function(a){this.data.writeBool(this.address+ +Na.fixedRotation.address,a)},getFriction:function(){return this.data.readFloat(this.address+Na.friction.address)},setFriction:function(a){this.data.writeFloat(this.address+Na.friction.address,a)},getGroupID:function(){return this.data.readInt(this.address+Na.groupID.address)},setGroupID:function(a){this.data.writeInt(this.address+Na.groupID.address,a)},getIgnoreGravity:function(){return this.data.readBool(this.address+Na.ignoreGravity.address)},setIgnoreGravity:function(a){this.data.writeBool(this.address+ +Na.ignoreGravity.address,a)},getInertia:function(){return this.data.readFloat(this.address+Na.inertia.address)},setInertia:function(a){this.data.writeFloat(this.address+Na.inertia.address,a)},getLinearDamping:function(){return this.data.readFloat(this.address+Na.linearDamping.address)},setLinearDamping:function(a){this.data.writeFloat(this.address+Na.linearDamping.address,a)},getMass:function(){return this.data.readFloat(this.address+Na.mass.address)},setMass:function(a){this.data.writeFloat(this.address+ +Na.mass.address,a)},getPausable:function(){return this.data.readBool(this.address+Na.pausable.address)},setPausable:function(a){this.data.writeBool(this.address+Na.pausable.address,a)},getPhysicsMode:function(){return this.data.readInt(this.address+Na.physicsMode.address)},setPhysicsMode:function(a){this.data.writeInt(this.address+Na.physicsMode.address,a)},getRestitution:function(){return this.data.readFloat(this.address+Na.restitution.address)},setRestitution:function(a){this.data.writeFloat(this.address+ +Na.restitution.address,a)},getSprite:function(){return this.data.readInt(this.address+Na.sprite.address)},setSprite:function(a){this.data.writeInt(this.address+Na.sprite.address,a)},getIsStatic:function(){return this.data.readBool(this.address+Na.isStatic.address)},setIsStatic:function(a){this.data.writeBool(this.address+Na.isStatic.address,a)},getSnippets:function(){this._snippets.setAddress(this.data.readInt(this.address+Na.snippets.address));return this._snippets},createSnippets:function(a){this._snippets.allocateNew(a); +this.data.writeInt(this.address+Na.snippets.address,this._snippets.getAddress());return this._snippets},__class__:Na});var Kb=function(a){this.data=a};k["com.stencyl.io.mbs.actortype.MbsAnimShape"]=Kb;Kb.__name__="com.stencyl.io.mbs.actortype.MbsAnimShape";Kb.initializeType=function(){null==Kb.MBS_ANIM_SHAPE&&(Kb.MBS_ANIM_SHAPE=new wb("MbsAnimShape"),Kb.MBS_ANIM_SHAPE.setInstantiator(function(a){return new Kb(a)}),Kb.shape=Kb.MBS_ANIM_SHAPE.createField("shape",L.DYNAMIC),Kb.density=Kb.MBS_ANIM_SHAPE.createField("density", +L.FLOAT),Kb.friction=Kb.MBS_ANIM_SHAPE.createField("friction",L.FLOAT),Kb.groupID=Kb.MBS_ANIM_SHAPE.createField("groupID",L.INTEGER),Kb.id=Kb.MBS_ANIM_SHAPE.createField("id",L.INTEGER),Kb.$name=Kb.MBS_ANIM_SHAPE.createField("name",L.STRING),Kb.restitution=Kb.MBS_ANIM_SHAPE.createField("restitution",L.FLOAT),Kb.sensor=Kb.MBS_ANIM_SHAPE.createField("sensor",L.BOOLEAN))};Kb.new_MbsAnimShape_list=function(a){return new Qa(a,Kb.MBS_ANIM_SHAPE,new Kb(a))};Kb.__super__=ib;Kb.prototype=u(ib.prototype,{getMbsType:function(){return Kb.MBS_ANIM_SHAPE}, +allocateNew:function(){this.setAddress(this.data.allocate(Kb.MBS_ANIM_SHAPE.getSize()))},getShape:function(){return $d.readDynamic(this.data,this.address+Kb.shape.address)},setShape:function(a){$d.writeDynamic(this.data,this.address+Kb.shape.address,a)},getDensity:function(){return this.data.readFloat(this.address+Kb.density.address)},setDensity:function(a){this.data.writeFloat(this.address+Kb.density.address,a)},getFriction:function(){return this.data.readFloat(this.address+Kb.friction.address)}, +setFriction:function(a){this.data.writeFloat(this.address+Kb.friction.address,a)},getGroupID:function(){return this.data.readInt(this.address+Kb.groupID.address)},setGroupID:function(a){this.data.writeInt(this.address+Kb.groupID.address,a)},getId:function(){return this.data.readInt(this.address+Kb.id.address)},setId:function(a){this.data.writeInt(this.address+Kb.id.address,a)},getName:function(){return this.data.readString(this.address+Kb.$name.address)},setName:function(a){this.data.writeString(this.address+ +Kb.$name.address,a)},getRestitution:function(){return this.data.readFloat(this.address+Kb.restitution.address)},setRestitution:function(a){this.data.writeFloat(this.address+Kb.restitution.address,a)},getSensor:function(){return this.data.readBool(this.address+Kb.sensor.address)},setSensor:function(a){this.data.writeBool(this.address+Kb.sensor.address,a)},__class__:Kb});var ab=function(a){this.data=a;this._durations=new Lf(a);this._shapes=new Qa(a,Kb.MBS_ANIM_SHAPE,new Kb(a))};k["com.stencyl.io.mbs.actortype.MbsAnimation"]= +ab;ab.__name__="com.stencyl.io.mbs.actortype.MbsAnimation";ab.initializeType=function(){null==ab.MBS_ANIMATION&&(ab.MBS_ANIMATION=new wb("MbsAnimation"),ab.MBS_ANIMATION.setInstantiator(function(a){return new ab(a)}),ab.across=ab.MBS_ANIMATION.createField("across",L.INTEGER),ab.down=ab.MBS_ANIMATION.createField("down",L.INTEGER),ab.durations=ab.MBS_ANIMATION.createField("durations",L.LIST),ab.height=ab.MBS_ANIMATION.createField("height",L.INTEGER),ab.id=ab.MBS_ANIMATION.createField("id",L.INTEGER), +ab.loop=ab.MBS_ANIMATION.createField("loop",L.BOOLEAN),ab.$name=ab.MBS_ANIMATION.createField("name",L.STRING),ab.numFrames=ab.MBS_ANIMATION.createField("numFrames",L.INTEGER),ab.originX=ab.MBS_ANIMATION.createField("originX",L.INTEGER),ab.originY=ab.MBS_ANIMATION.createField("originY",L.INTEGER),ab.sync=ab.MBS_ANIMATION.createField("sync",L.BOOLEAN),ab.version=ab.MBS_ANIMATION.createField("version",L.INTEGER),ab.width=ab.MBS_ANIMATION.createField("width",L.INTEGER),ab.shapes=ab.MBS_ANIMATION.createField("shapes", +L.LIST))};ab.new_MbsAnimation_list=function(a){return new Qa(a,ab.MBS_ANIMATION,new ab(a))};ab.__super__=ib;ab.prototype=u(ib.prototype,{getMbsType:function(){return ab.MBS_ANIMATION},_durations:null,_shapes:null,allocateNew:function(){this.setAddress(this.data.allocate(ab.MBS_ANIMATION.getSize()))},getAcross:function(){return this.data.readInt(this.address+ab.across.address)},setAcross:function(a){this.data.writeInt(this.address+ab.across.address,a)},getDown:function(){return this.data.readInt(this.address+ +ab.down.address)},setDown:function(a){this.data.writeInt(this.address+ab.down.address,a)},getDurations:function(){this._durations.setAddress(this.data.readInt(this.address+ab.durations.address));return this._durations},createDurations:function(a){this._durations.allocateNew(a);this.data.writeInt(this.address+ab.durations.address,this._durations.getAddress());return this._durations},getHeight:function(){return this.data.readInt(this.address+ab.height.address)},setHeight:function(a){this.data.writeInt(this.address+ +ab.height.address,a)},getId:function(){return this.data.readInt(this.address+ab.id.address)},setId:function(a){this.data.writeInt(this.address+ab.id.address,a)},getLoop:function(){return this.data.readBool(this.address+ab.loop.address)},setLoop:function(a){this.data.writeBool(this.address+ab.loop.address,a)},getName:function(){return this.data.readString(this.address+ab.$name.address)},setName:function(a){this.data.writeString(this.address+ab.$name.address,a)},getNumFrames:function(){return this.data.readInt(this.address+ +ab.numFrames.address)},setNumFrames:function(a){this.data.writeInt(this.address+ab.numFrames.address,a)},getOriginX:function(){return this.data.readInt(this.address+ab.originX.address)},setOriginX:function(a){this.data.writeInt(this.address+ab.originX.address,a)},getOriginY:function(){return this.data.readInt(this.address+ab.originY.address)},setOriginY:function(a){this.data.writeInt(this.address+ab.originY.address,a)},getSync:function(){return this.data.readBool(this.address+ab.sync.address)},setSync:function(a){this.data.writeBool(this.address+ +ab.sync.address,a)},getVersion:function(){return this.data.readInt(this.address+ab.version.address)},setVersion:function(a){this.data.writeInt(this.address+ab.version.address,a)},getWidth:function(){return this.data.readInt(this.address+ab.width.address)},setWidth:function(a){this.data.writeInt(this.address+ab.width.address,a)},getShapes:function(){this._shapes.setAddress(this.data.readInt(this.address+ab.shapes.address));return this._shapes},createShapes:function(a){this._shapes.allocateNew(a);this.data.writeInt(this.address+ +ab.shapes.address,this._shapes.getAddress());return this._shapes},__class__:ab});var nc=function(a){this.data=a;this._animations=new Qa(a,ab.MBS_ANIMATION,new ab(a))};k["com.stencyl.io.mbs.actortype.MbsSprite"]=nc;nc.__name__="com.stencyl.io.mbs.actortype.MbsSprite";nc.initializeType=function(){null==nc.MBS_SPRITE&&(mb.initializeType(),nc.MBS_SPRITE=new wb("MbsSprite"),nc.MBS_SPRITE.setInstantiator(function(a){return new nc(a)}),nc.MBS_SPRITE.inherit(mb.MBS_RESOURCE),nc.defaultAnimation=nc.MBS_SPRITE.createField("defaultAnimation", +L.INTEGER),nc.readableImages=nc.MBS_SPRITE.createField("readableImages",L.BOOLEAN),nc.height=nc.MBS_SPRITE.createField("height",L.INTEGER),nc.width=nc.MBS_SPRITE.createField("width",L.INTEGER),nc.animations=nc.MBS_SPRITE.createField("animations",L.LIST))};nc.new_MbsSprite_list=function(a){return new Qa(a,nc.MBS_SPRITE,new nc(a))};nc.__super__=mb;nc.prototype=u(mb.prototype,{getMbsType:function(){return nc.MBS_SPRITE},_animations:null,allocateNew:function(){this.setAddress(this.data.allocate(nc.MBS_SPRITE.getSize()))}, +getDefaultAnimation:function(){return this.data.readInt(this.address+nc.defaultAnimation.address)},setDefaultAnimation:function(a){this.data.writeInt(this.address+nc.defaultAnimation.address,a)},getReadableImages:function(){return this.data.readBool(this.address+nc.readableImages.address)},setReadableImages:function(a){this.data.writeBool(this.address+nc.readableImages.address,a)},getHeight:function(){return this.data.readInt(this.address+nc.height.address)},setHeight:function(a){this.data.writeInt(this.address+ +nc.height.address,a)},getWidth:function(){return this.data.readInt(this.address+nc.width.address)},setWidth:function(a){this.data.writeInt(this.address+nc.width.address,a)},getAnimations:function(){this._animations.setAddress(this.data.readInt(this.address+nc.animations.address));return this._animations},createAnimations:function(a){this._animations.allocateNew(a);this.data.writeInt(this.address+nc.animations.address,this._animations.getAddress());return this._animations},__class__:nc});var Cc=function(a){this.data= +a;this._members=new Lf(a)};k["com.stencyl.io.mbs.game.MbsAtlas"]=Cc;Cc.__name__="com.stencyl.io.mbs.game.MbsAtlas";Cc.initializeType=function(){null==Cc.MBS_ATLAS&&(Cc.MBS_ATLAS=new wb("MbsAtlas"),Cc.MBS_ATLAS.setInstantiator(function(a){return new Cc(a)}),Cc.id=Cc.MBS_ATLAS.createField("id",L.INTEGER),Cc.$name=Cc.MBS_ATLAS.createField("name",L.STRING),Cc.members=Cc.MBS_ATLAS.createField("members",L.LIST),Cc.allScenes=Cc.MBS_ATLAS.createField("allScenes",L.BOOLEAN))};Cc.new_MbsAtlas_list=function(a){return new Qa(a, +Cc.MBS_ATLAS,new Cc(a))};Cc.__super__=ib;Cc.prototype=u(ib.prototype,{getMbsType:function(){return Cc.MBS_ATLAS},_members:null,allocateNew:function(){this.setAddress(this.data.allocate(Cc.MBS_ATLAS.getSize()))},getId:function(){return this.data.readInt(this.address+Cc.id.address)},setId:function(a){this.data.writeInt(this.address+Cc.id.address,a)},getName:function(){return this.data.readString(this.address+Cc.$name.address)},setName:function(a){this.data.writeString(this.address+Cc.$name.address, +a)},getMembers:function(){this._members.setAddress(this.data.readInt(this.address+Cc.members.address));return this._members},createMembers:function(a){this._members.allocateNew(a);this.data.writeInt(this.address+Cc.members.address,this._members.getAddress());return this._members},getAllScenes:function(){return this.data.readBool(this.address+Cc.allScenes.address)},setAllScenes:function(a){this.data.writeBool(this.address+Cc.allScenes.address,a)},__class__:Cc});var td=function(a){this.data=a};k["com.stencyl.io.mbs.game.MbsCollisionGroup"]= +td;td.__name__="com.stencyl.io.mbs.game.MbsCollisionGroup";td.initializeType=function(){null==td.MBS_COLLISION_GROUP&&(td.MBS_COLLISION_GROUP=new wb("MbsCollisionGroup"),td.MBS_COLLISION_GROUP.setInstantiator(function(a){return new td(a)}),td.id=td.MBS_COLLISION_GROUP.createField("id",L.INTEGER),td.$name=td.MBS_COLLISION_GROUP.createField("name",L.STRING))};td.new_MbsCollisionGroup_list=function(a){return new Qa(a,td.MBS_COLLISION_GROUP,new td(a))};td.__super__=ib;td.prototype=u(ib.prototype,{getMbsType:function(){return td.MBS_COLLISION_GROUP}, +allocateNew:function(){this.setAddress(this.data.allocate(td.MBS_COLLISION_GROUP.getSize()))},getId:function(){return this.data.readInt(this.address+td.id.address)},setId:function(a){this.data.writeInt(this.address+td.id.address,a)},getName:function(){return this.data.readString(this.address+td.$name.address)},setName:function(a){this.data.writeString(this.address+td.$name.address,a)},__class__:td});var ud=function(a){this.data=a};k["com.stencyl.io.mbs.game.MbsCollisionPair"]=ud;ud.__name__="com.stencyl.io.mbs.game.MbsCollisionPair"; +ud.initializeType=function(){null==ud.MBS_COLLISION_PAIR&&(ud.MBS_COLLISION_PAIR=new wb("MbsCollisionPair"),ud.MBS_COLLISION_PAIR.setInstantiator(function(a){return new ud(a)}),ud.group1=ud.MBS_COLLISION_PAIR.createField("group1",L.INTEGER),ud.group2=ud.MBS_COLLISION_PAIR.createField("group2",L.INTEGER))};ud.new_MbsCollisionPair_list=function(a){return new Qa(a,ud.MBS_COLLISION_PAIR,new ud(a))};ud.__super__=ib;ud.prototype=u(ib.prototype,{getMbsType:function(){return ud.MBS_COLLISION_PAIR},allocateNew:function(){this.setAddress(this.data.allocate(ud.MBS_COLLISION_PAIR.getSize()))}, +getGroup1:function(){return this.data.readInt(this.address+ud.group1.address)},setGroup1:function(a){this.data.writeInt(this.address+ud.group1.address,a)},getGroup2:function(){return this.data.readInt(this.address+ud.group2.address)},setGroup2:function(a){this.data.writeInt(this.address+ud.group2.address,a)},__class__:ud});var sd=function(a){this.data=a;this._points=new Qa(a,mc.MBS_POINT,new mc(a))};k["com.stencyl.io.mbs.game.MbsCollisionShape"]=sd;sd.__name__="com.stencyl.io.mbs.game.MbsCollisionShape"; +sd.initializeType=function(){null==sd.MBS_COLLISION_SHAPE&&(sd.MBS_COLLISION_SHAPE=new wb("MbsCollisionShape"),sd.MBS_COLLISION_SHAPE.setInstantiator(function(a){return new sd(a)}),sd.id=sd.MBS_COLLISION_SHAPE.createField("id",L.INTEGER),sd.points=sd.MBS_COLLISION_SHAPE.createField("points",L.LIST))};sd.new_MbsCollisionShape_list=function(a){return new Qa(a,sd.MBS_COLLISION_SHAPE,new sd(a))};sd.__super__=ib;sd.prototype=u(ib.prototype,{getMbsType:function(){return sd.MBS_COLLISION_SHAPE},_points:null, +allocateNew:function(){this.setAddress(this.data.allocate(sd.MBS_COLLISION_SHAPE.getSize()))},getId:function(){return this.data.readInt(this.address+sd.id.address)},setId:function(a){this.data.writeInt(this.address+sd.id.address,a)},getPoints:function(){this._points.setAddress(this.data.readInt(this.address+sd.points.address));return this._points},createPoints:function(a){this._points.allocateNew(a);this.data.writeInt(this.address+sd.points.address,this._points.getAddress());return this._points}, +__class__:sd});var lc=function(a){this.data=a;this._shapes=new Qa(a,sd.MBS_COLLISION_SHAPE,new sd(a));this._atlases=new Qa(a,Cc.MBS_ATLAS,new Cc(a));this._autotileFormats=new Qa(a,gc.MBS_AUTOTILE_FORMAT,new gc(a));this._groups=new Qa(a,td.MBS_COLLISION_GROUP,new td(a));this._cgroups=new Qa(a,ud.MBS_COLLISION_PAIR,new ud(a));this._gameAttributes=new Qa(a,yd.MBS_MAP_ELEMENT,new yd(a))};k["com.stencyl.io.mbs.game.MbsGame"]=lc;lc.__name__="com.stencyl.io.mbs.game.MbsGame";lc.initializeType=function(){null== +lc.MBS_GAME&&(lc.MBS_GAME=new wb("MbsGame"),lc.MBS_GAME.setInstantiator(function(a){return new lc(a)}),lc.shapes=lc.MBS_GAME.createField("shapes",L.LIST),lc.atlases=lc.MBS_GAME.createField("atlases",L.LIST),lc.autotileFormats=lc.MBS_GAME.createField("autotileFormats",L.LIST),lc.groups=lc.MBS_GAME.createField("groups",L.LIST),lc.cgroups=lc.MBS_GAME.createField("cgroups",L.LIST),lc.gameAttributes=lc.MBS_GAME.createField("gameAttributes",L.LIST))};lc.new_MbsGame_list=function(a){return new Qa(a,lc.MBS_GAME, +new lc(a))};lc.__super__=ib;lc.prototype=u(ib.prototype,{getMbsType:function(){return lc.MBS_GAME},_shapes:null,_atlases:null,_autotileFormats:null,_groups:null,_cgroups:null,_gameAttributes:null,allocateNew:function(){this.setAddress(this.data.allocate(lc.MBS_GAME.getSize()))},getShapes:function(){this._shapes.setAddress(this.data.readInt(this.address+lc.shapes.address));return this._shapes},createShapes:function(a){this._shapes.allocateNew(a);this.data.writeInt(this.address+lc.shapes.address,this._shapes.getAddress()); +return this._shapes},getAtlases:function(){this._atlases.setAddress(this.data.readInt(this.address+lc.atlases.address));return this._atlases},createAtlases:function(a){this._atlases.allocateNew(a);this.data.writeInt(this.address+lc.atlases.address,this._atlases.getAddress());return this._atlases},getAutotileFormats:function(){this._autotileFormats.setAddress(this.data.readInt(this.address+lc.autotileFormats.address));return this._autotileFormats},createAutotileFormats:function(a){this._autotileFormats.allocateNew(a); +this.data.writeInt(this.address+lc.autotileFormats.address,this._autotileFormats.getAddress());return this._autotileFormats},getGroups:function(){this._groups.setAddress(this.data.readInt(this.address+lc.groups.address));return this._groups},createGroups:function(a){this._groups.allocateNew(a);this.data.writeInt(this.address+lc.groups.address,this._groups.getAddress());return this._groups},getCgroups:function(){this._cgroups.setAddress(this.data.readInt(this.address+lc.cgroups.address));return this._cgroups}, +createCgroups:function(a){this._cgroups.allocateNew(a);this.data.writeInt(this.address+lc.cgroups.address,this._cgroups.getAddress());return this._cgroups},getGameAttributes:function(){this._gameAttributes.setAddress(this.data.readInt(this.address+lc.gameAttributes.address));return this._gameAttributes},createGameAttributes:function(a){this._gameAttributes.allocateNew(a);this.data.writeInt(this.address+lc.gameAttributes.address,this._gameAttributes.getAddress());return this._gameAttributes},__class__:lc}); +var gc=function(a){this.data=a;this._corners=new Qa(a,Yc.MBS_CORNERS,new Yc(a));this._flags=new Lf(a)};k["com.stencyl.io.mbs.game.autotile.MbsAutotileFormat"]=gc;gc.__name__="com.stencyl.io.mbs.game.autotile.MbsAutotileFormat";gc.initializeType=function(){null==gc.MBS_AUTOTILE_FORMAT&&(gc.MBS_AUTOTILE_FORMAT=new wb("MbsAutotileFormat"),gc.MBS_AUTOTILE_FORMAT.setInstantiator(function(a){return new gc(a)}),gc.id=gc.MBS_AUTOTILE_FORMAT.createField("id",L.INTEGER),gc.$name=gc.MBS_AUTOTILE_FORMAT.createField("name", +L.STRING),gc.across=gc.MBS_AUTOTILE_FORMAT.createField("across",L.INTEGER),gc.down=gc.MBS_AUTOTILE_FORMAT.createField("down",L.INTEGER),gc.corners=gc.MBS_AUTOTILE_FORMAT.createField("corners",L.LIST),gc.flags=gc.MBS_AUTOTILE_FORMAT.createField("flags",L.LIST))};gc.new_MbsAutotileFormat_list=function(a){return new Qa(a,gc.MBS_AUTOTILE_FORMAT,new gc(a))};gc.__super__=ib;gc.prototype=u(ib.prototype,{getMbsType:function(){return gc.MBS_AUTOTILE_FORMAT},_corners:null,_flags:null,allocateNew:function(){this.setAddress(this.data.allocate(gc.MBS_AUTOTILE_FORMAT.getSize()))}, +getId:function(){return this.data.readInt(this.address+gc.id.address)},setId:function(a){this.data.writeInt(this.address+gc.id.address,a)},getName:function(){return this.data.readString(this.address+gc.$name.address)},setName:function(a){this.data.writeString(this.address+gc.$name.address,a)},getAcross:function(){return this.data.readInt(this.address+gc.across.address)},setAcross:function(a){this.data.writeInt(this.address+gc.across.address,a)},getDown:function(){return this.data.readInt(this.address+ +gc.down.address)},setDown:function(a){this.data.writeInt(this.address+gc.down.address,a)},getCorners:function(){this._corners.setAddress(this.data.readInt(this.address+gc.corners.address));return this._corners},createCorners:function(a){this._corners.allocateNew(a);this.data.writeInt(this.address+gc.corners.address,this._corners.getAddress());return this._corners},getFlags:function(){this._flags.setAddress(this.data.readInt(this.address+gc.flags.address));return this._flags},createFlags:function(a){this._flags.allocateNew(a); +this.data.writeInt(this.address+gc.flags.address,this._flags.getAddress());return this._flags},__class__:gc});var Yc=function(a){this.data=a;this._topLeft=new mc(a);this._topRight=new mc(a);this._bottomLeft=new mc(a);this._bottomRight=new mc(a)};k["com.stencyl.io.mbs.game.autotile.MbsCorners"]=Yc;Yc.__name__="com.stencyl.io.mbs.game.autotile.MbsCorners";Yc.initializeType=function(){null==Yc.MBS_CORNERS&&(Yc.MBS_CORNERS=new wb("MbsCorners"),Yc.MBS_CORNERS.setInstantiator(function(a){return new Yc(a)}), +Yc.topLeft=Yc.MBS_CORNERS.createField("topLeft",mc.MBS_POINT),Yc.topRight=Yc.MBS_CORNERS.createField("topRight",mc.MBS_POINT),Yc.bottomLeft=Yc.MBS_CORNERS.createField("bottomLeft",mc.MBS_POINT),Yc.bottomRight=Yc.MBS_CORNERS.createField("bottomRight",mc.MBS_POINT))};Yc.new_MbsCorners_list=function(a){return new Qa(a,Yc.MBS_CORNERS,new Yc(a))};Yc.__super__=ib;Yc.prototype=u(ib.prototype,{getMbsType:function(){return Yc.MBS_CORNERS},_topLeft:null,_topRight:null,_bottomLeft:null,_bottomRight:null,allocateNew:function(){this.setAddress(this.data.allocate(Yc.MBS_CORNERS.getSize()))}, +getTopLeft:function(){this._topLeft.setAddress(this.address+Yc.topLeft.address);return this._topLeft},getTopRight:function(){this._topRight.setAddress(this.address+Yc.topRight.address);return this._topRight},getBottomLeft:function(){this._bottomLeft.setAddress(this.address+Yc.bottomLeft.address);return this._bottomLeft},getBottomRight:function(){this._bottomRight.setAddress(this.address+Yc.bottomRight.address);return this._bottomRight},__class__:Yc});var kb=function(a){this.data=a;this._snippets= +new Qa(a,Dc.MBS_SNIPPET,new Dc(a))};k["com.stencyl.io.mbs.scene.MbsActorInstance"]=kb;kb.__name__="com.stencyl.io.mbs.scene.MbsActorInstance";kb.initializeType=function(){null==kb.MBS_ACTOR_INSTANCE&&(kb.MBS_ACTOR_INSTANCE=new wb("MbsActorInstance"),kb.MBS_ACTOR_INSTANCE.setInstantiator(function(a){return new kb(a)}),kb.angle=kb.MBS_ACTOR_INSTANCE.createField("angle",L.FLOAT),kb.aid=kb.MBS_ACTOR_INSTANCE.createField("aid",L.INTEGER),kb.customized=kb.MBS_ACTOR_INSTANCE.createField("customized",L.BOOLEAN), +kb.groupID=kb.MBS_ACTOR_INSTANCE.createField("groupID",L.INTEGER),kb.id=kb.MBS_ACTOR_INSTANCE.createField("id",L.INTEGER),kb.$name=kb.MBS_ACTOR_INSTANCE.createField("name",L.STRING),kb.scaleX=kb.MBS_ACTOR_INSTANCE.createField("scaleX",L.FLOAT),kb.scaleY=kb.MBS_ACTOR_INSTANCE.createField("scaleY",L.FLOAT),kb.x=kb.MBS_ACTOR_INSTANCE.createField("x",L.INTEGER),kb.y=kb.MBS_ACTOR_INSTANCE.createField("y",L.INTEGER),kb.z=kb.MBS_ACTOR_INSTANCE.createField("z",L.INTEGER),kb.orderInLayer=kb.MBS_ACTOR_INSTANCE.createField("orderInLayer", +L.INTEGER),kb.snippets=kb.MBS_ACTOR_INSTANCE.createField("snippets",L.LIST))};kb.new_MbsActorInstance_list=function(a){return new Qa(a,kb.MBS_ACTOR_INSTANCE,new kb(a))};kb.__super__=ib;kb.prototype=u(ib.prototype,{getMbsType:function(){return kb.MBS_ACTOR_INSTANCE},_snippets:null,allocateNew:function(){this.setAddress(this.data.allocate(kb.MBS_ACTOR_INSTANCE.getSize()))},getAngle:function(){return this.data.readFloat(this.address+kb.angle.address)},setAngle:function(a){this.data.writeFloat(this.address+ +kb.angle.address,a)},getAid:function(){return this.data.readInt(this.address+kb.aid.address)},setAid:function(a){this.data.writeInt(this.address+kb.aid.address,a)},getCustomized:function(){return this.data.readBool(this.address+kb.customized.address)},setCustomized:function(a){this.data.writeBool(this.address+kb.customized.address,a)},getGroupID:function(){return this.data.readInt(this.address+kb.groupID.address)},setGroupID:function(a){this.data.writeInt(this.address+kb.groupID.address,a)},getId:function(){return this.data.readInt(this.address+ +kb.id.address)},setId:function(a){this.data.writeInt(this.address+kb.id.address,a)},getName:function(){return this.data.readString(this.address+kb.$name.address)},setName:function(a){this.data.writeString(this.address+kb.$name.address,a)},getScaleX:function(){return this.data.readFloat(this.address+kb.scaleX.address)},setScaleX:function(a){this.data.writeFloat(this.address+kb.scaleX.address,a)},getScaleY:function(){return this.data.readFloat(this.address+kb.scaleY.address)},setScaleY:function(a){this.data.writeFloat(this.address+ +kb.scaleY.address,a)},getX:function(){return this.data.readInt(this.address+kb.x.address)},setX:function(a){this.data.writeInt(this.address+kb.x.address,a)},getY:function(){return this.data.readInt(this.address+kb.y.address)},setY:function(a){this.data.writeInt(this.address+kb.y.address,a)},getZ:function(){return this.data.readInt(this.address+kb.z.address)},setZ:function(a){this.data.writeInt(this.address+kb.z.address,a)},getOrderInLayer:function(){return this.data.readInt(this.address+kb.orderInLayer.address)}, +setOrderInLayer:function(a){this.data.writeInt(this.address+kb.orderInLayer.address,a)},getSnippets:function(){this._snippets.setAddress(this.data.readInt(this.address+kb.snippets.address));return this._snippets},createSnippets:function(a){this._snippets.allocateNew(a);this.data.writeInt(this.address+kb.snippets.address,this._snippets.getAddress());return this._snippets},__class__:kb});var ea=function(a){this.data=a;this._actorInstances=new Qa(a,kb.MBS_ACTOR_INSTANCE,new kb(a));this._atlasMembers= +new Lf(a);this._layers=new rh(a);this._joints=new rh(a);this._regions=new Qa(a,Wb.MBS_REGION,new Wb(a));this._snippets=new Qa(a,Dc.MBS_SNIPPET,new Dc(a));this._terrain=new Qa(a,ce.MBS_WIREFRAME,new ce(a));this._terrainRegions=new Qa(a,Ud.MBS_TERRAIN_REGION,new Ud(a))};k["com.stencyl.io.mbs.scene.MbsScene"]=ea;ea.__name__="com.stencyl.io.mbs.scene.MbsScene";ea.initializeType=function(){null==ea.MBS_SCENE&&(ea.MBS_SCENE=new wb("MbsScene"),ea.MBS_SCENE.setInstantiator(function(a){return new ea(a)}), +ea.retainAtlases=ea.MBS_SCENE.createField("retainAtlases",L.BOOLEAN),ea.depth=ea.MBS_SCENE.createField("depth",L.INTEGER),ea.description=ea.MBS_SCENE.createField("description",L.STRING),ea.eventSnippetID=ea.MBS_SCENE.createField("eventSnippetID",L.INTEGER),ea.extendedHeight=ea.MBS_SCENE.createField("extendedHeight",L.INTEGER),ea.extendedWidth=ea.MBS_SCENE.createField("extendedWidth",L.INTEGER),ea.extendedX=ea.MBS_SCENE.createField("extendedX",L.INTEGER),ea.extendedY=ea.MBS_SCENE.createField("extendedY", +L.INTEGER),ea.format=ea.MBS_SCENE.createField("format",L.STRING),ea.gravityX=ea.MBS_SCENE.createField("gravityX",L.FLOAT),ea.gravityY=ea.MBS_SCENE.createField("gravityY",L.FLOAT),ea.height=ea.MBS_SCENE.createField("height",L.INTEGER),ea.id=ea.MBS_SCENE.createField("id",L.INTEGER),ea.$name=ea.MBS_SCENE.createField("name",L.STRING),ea.revision=ea.MBS_SCENE.createField("revision",L.STRING),ea.savecount=ea.MBS_SCENE.createField("savecount",L.INTEGER),ea.tileDepth=ea.MBS_SCENE.createField("tileDepth", +L.INTEGER),ea.tileHeight=ea.MBS_SCENE.createField("tileHeight",L.INTEGER),ea.tileWidth=ea.MBS_SCENE.createField("tileWidth",L.INTEGER),ea.type=ea.MBS_SCENE.createField("type",L.STRING),ea.width=ea.MBS_SCENE.createField("width",L.INTEGER),ea.actorInstances=ea.MBS_SCENE.createField("actorInstances",L.LIST),ea.atlasMembers=ea.MBS_SCENE.createField("atlasMembers",L.LIST),ea.layers=ea.MBS_SCENE.createField("layers",L.LIST),ea.joints=ea.MBS_SCENE.createField("joints",L.LIST),ea.regions=ea.MBS_SCENE.createField("regions", +L.LIST),ea.snippets=ea.MBS_SCENE.createField("snippets",L.LIST),ea.terrain=ea.MBS_SCENE.createField("terrain",L.LIST),ea.terrainRegions=ea.MBS_SCENE.createField("terrainRegions",L.LIST))};ea.new_MbsScene_list=function(a){return new Qa(a,ea.MBS_SCENE,new ea(a))};ea.__super__=ib;ea.prototype=u(ib.prototype,{getMbsType:function(){return ea.MBS_SCENE},_actorInstances:null,_atlasMembers:null,_layers:null,_joints:null,_regions:null,_snippets:null,_terrain:null,_terrainRegions:null,allocateNew:function(){this.setAddress(this.data.allocate(ea.MBS_SCENE.getSize()))}, +getRetainAtlases:function(){return this.data.readBool(this.address+ea.retainAtlases.address)},setRetainAtlases:function(a){this.data.writeBool(this.address+ea.retainAtlases.address,a)},getDepth:function(){return this.data.readInt(this.address+ea.depth.address)},setDepth:function(a){this.data.writeInt(this.address+ea.depth.address,a)},getDescription:function(){return this.data.readString(this.address+ea.description.address)},setDescription:function(a){this.data.writeString(this.address+ea.description.address, +a)},getEventSnippetID:function(){return this.data.readInt(this.address+ea.eventSnippetID.address)},setEventSnippetID:function(a){this.data.writeInt(this.address+ea.eventSnippetID.address,a)},getExtendedHeight:function(){return this.data.readInt(this.address+ea.extendedHeight.address)},setExtendedHeight:function(a){this.data.writeInt(this.address+ea.extendedHeight.address,a)},getExtendedWidth:function(){return this.data.readInt(this.address+ea.extendedWidth.address)},setExtendedWidth:function(a){this.data.writeInt(this.address+ +ea.extendedWidth.address,a)},getExtendedX:function(){return this.data.readInt(this.address+ea.extendedX.address)},setExtendedX:function(a){this.data.writeInt(this.address+ea.extendedX.address,a)},getExtendedY:function(){return this.data.readInt(this.address+ea.extendedY.address)},setExtendedY:function(a){this.data.writeInt(this.address+ea.extendedY.address,a)},getFormat:function(){return this.data.readString(this.address+ea.format.address)},setFormat:function(a){this.data.writeString(this.address+ +ea.format.address,a)},getGravityX:function(){return this.data.readFloat(this.address+ea.gravityX.address)},setGravityX:function(a){this.data.writeFloat(this.address+ea.gravityX.address,a)},getGravityY:function(){return this.data.readFloat(this.address+ea.gravityY.address)},setGravityY:function(a){this.data.writeFloat(this.address+ea.gravityY.address,a)},getHeight:function(){return this.data.readInt(this.address+ea.height.address)},setHeight:function(a){this.data.writeInt(this.address+ea.height.address, +a)},getId:function(){return this.data.readInt(this.address+ea.id.address)},setId:function(a){this.data.writeInt(this.address+ea.id.address,a)},getName:function(){return this.data.readString(this.address+ea.$name.address)},setName:function(a){this.data.writeString(this.address+ea.$name.address,a)},getRevision:function(){return this.data.readString(this.address+ea.revision.address)},setRevision:function(a){this.data.writeString(this.address+ea.revision.address,a)},getSavecount:function(){return this.data.readInt(this.address+ +ea.savecount.address)},setSavecount:function(a){this.data.writeInt(this.address+ea.savecount.address,a)},getTileDepth:function(){return this.data.readInt(this.address+ea.tileDepth.address)},setTileDepth:function(a){this.data.writeInt(this.address+ea.tileDepth.address,a)},getTileHeight:function(){return this.data.readInt(this.address+ea.tileHeight.address)},setTileHeight:function(a){this.data.writeInt(this.address+ea.tileHeight.address,a)},getTileWidth:function(){return this.data.readInt(this.address+ +ea.tileWidth.address)},setTileWidth:function(a){this.data.writeInt(this.address+ea.tileWidth.address,a)},getType:function(){return this.data.readString(this.address+ea.type.address)},setType:function(a){this.data.writeString(this.address+ea.type.address,a)},getWidth:function(){return this.data.readInt(this.address+ea.width.address)},setWidth:function(a){this.data.writeInt(this.address+ea.width.address,a)},getActorInstances:function(){this._actorInstances.setAddress(this.data.readInt(this.address+ +ea.actorInstances.address));return this._actorInstances},createActorInstances:function(a){this._actorInstances.allocateNew(a);this.data.writeInt(this.address+ea.actorInstances.address,this._actorInstances.getAddress());return this._actorInstances},getAtlasMembers:function(){this._atlasMembers.setAddress(this.data.readInt(this.address+ea.atlasMembers.address));return this._atlasMembers},createAtlasMembers:function(a){this._atlasMembers.allocateNew(a);this.data.writeInt(this.address+ea.atlasMembers.address, +this._atlasMembers.getAddress());return this._atlasMembers},getLayers:function(){this._layers.setAddress(this.data.readInt(this.address+ea.layers.address));return this._layers},createLayers:function(a){this._layers.allocateNew(a);this.data.writeInt(this.address+ea.layers.address,this._layers.getAddress());return this._layers},getJoints:function(){this._joints.setAddress(this.data.readInt(this.address+ea.joints.address));return this._joints},createJoints:function(a){this._joints.allocateNew(a);this.data.writeInt(this.address+ +ea.joints.address,this._joints.getAddress());return this._joints},getRegions:function(){this._regions.setAddress(this.data.readInt(this.address+ea.regions.address));return this._regions},createRegions:function(a){this._regions.allocateNew(a);this.data.writeInt(this.address+ea.regions.address,this._regions.getAddress());return this._regions},getSnippets:function(){this._snippets.setAddress(this.data.readInt(this.address+ea.snippets.address));return this._snippets},createSnippets:function(a){this._snippets.allocateNew(a); +this.data.writeInt(this.address+ea.snippets.address,this._snippets.getAddress());return this._snippets},getTerrain:function(){this._terrain.setAddress(this.data.readInt(this.address+ea.terrain.address));return this._terrain},createTerrain:function(a){this._terrain.allocateNew(a);this.data.writeInt(this.address+ea.terrain.address,this._terrain.getAddress());return this._terrain},getTerrainRegions:function(){this._terrainRegions.setAddress(this.data.readInt(this.address+ea.terrainRegions.address)); +return this._terrainRegions},createTerrainRegions:function(a){this._terrainRegions.allocateNew(a);this.data.writeInt(this.address+ea.terrainRegions.address,this._terrainRegions.getAddress());return this._terrainRegions},__class__:ea});var fd=function(a){this.data=a};k["com.stencyl.io.mbs.scene.MbsSceneHeader"]=fd;fd.__name__="com.stencyl.io.mbs.scene.MbsSceneHeader";fd.initializeType=function(){null==fd.MBS_SCENE_HEADER&&(fd.MBS_SCENE_HEADER=new wb("MbsSceneHeader"),fd.MBS_SCENE_HEADER.setInstantiator(function(a){return new fd(a)}), +fd.id=fd.MBS_SCENE_HEADER.createField("id",L.INTEGER),fd.$name=fd.MBS_SCENE_HEADER.createField("name",L.STRING),fd.description=fd.MBS_SCENE_HEADER.createField("description",L.STRING))};fd.new_MbsSceneHeader_list=function(a){return new Qa(a,fd.MBS_SCENE_HEADER,new fd(a))};fd.__super__=ib;fd.prototype=u(ib.prototype,{getMbsType:function(){return fd.MBS_SCENE_HEADER},allocateNew:function(){this.setAddress(this.data.allocate(fd.MBS_SCENE_HEADER.getSize()))},getId:function(){return this.data.readInt(this.address+ +fd.id.address)},setId:function(a){this.data.writeInt(this.address+fd.id.address,a)},getName:function(){return this.data.readString(this.address+fd.$name.address)},setName:function(a){this.data.writeString(this.address+fd.$name.address,a)},getDescription:function(){return this.data.readString(this.address+fd.description.address)},setDescription:function(a){this.data.writeString(this.address+fd.description.address,a)},__class__:fd});var Lb=function(a){this.data=a;this._durations=new Lf(a);this._autotileMerge= +new Lf(a)};k["com.stencyl.io.mbs.scene.MbsTile"]=Lb;Lb.__name__="com.stencyl.io.mbs.scene.MbsTile";Lb.initializeType=function(){null==Lb.MBS_TILE&&(Lb.MBS_TILE=new wb("MbsTile"),Lb.MBS_TILE.setInstantiator(function(a){return new Lb(a)}),Lb.collision=Lb.MBS_TILE.createField("collision",L.INTEGER),Lb.metadata=Lb.MBS_TILE.createField("metadata",L.STRING),Lb.durations=Lb.MBS_TILE.createField("durations",L.LIST),Lb.frames=Lb.MBS_TILE.createField("frames",L.INTEGER),Lb.id=Lb.MBS_TILE.createField("id",L.INTEGER), +Lb.order=Lb.MBS_TILE.createField("order",L.INTEGER),Lb.autotile=Lb.MBS_TILE.createField("autotile",L.INTEGER),Lb.autotileMerge=Lb.MBS_TILE.createField("autotileMerge",L.LIST))};Lb.new_MbsTile_list=function(a){return new Qa(a,Lb.MBS_TILE,new Lb(a))};Lb.__super__=ib;Lb.prototype=u(ib.prototype,{getMbsType:function(){return Lb.MBS_TILE},_durations:null,_autotileMerge:null,allocateNew:function(){this.setAddress(this.data.allocate(Lb.MBS_TILE.getSize()))},getCollision:function(){return this.data.readInt(this.address+ +Lb.collision.address)},setCollision:function(a){this.data.writeInt(this.address+Lb.collision.address,a)},getMetadata:function(){return this.data.readString(this.address+Lb.metadata.address)},setMetadata:function(a){this.data.writeString(this.address+Lb.metadata.address,a)},getDurations:function(){this._durations.setAddress(this.data.readInt(this.address+Lb.durations.address));return this._durations},createDurations:function(a){this._durations.allocateNew(a);this.data.writeInt(this.address+Lb.durations.address, +this._durations.getAddress());return this._durations},getFrames:function(){return this.data.readInt(this.address+Lb.frames.address)},setFrames:function(a){this.data.writeInt(this.address+Lb.frames.address,a)},getId:function(){return this.data.readInt(this.address+Lb.id.address)},setId:function(a){this.data.writeInt(this.address+Lb.id.address,a)},getOrder:function(){return this.data.readInt(this.address+Lb.order.address)},setOrder:function(a){this.data.writeInt(this.address+Lb.order.address,a)},getAutotile:function(){return this.data.readInt(this.address+ +Lb.autotile.address)},setAutotile:function(a){this.data.writeInt(this.address+Lb.autotile.address,a)},getAutotileMerge:function(){this._autotileMerge.setAddress(this.data.readInt(this.address+Lb.autotileMerge.address));return this._autotileMerge},createAutotileMerge:function(a){this._autotileMerge.allocateNew(a);this.data.writeInt(this.address+Lb.autotileMerge.address,this._autotileMerge.getAddress());return this._autotileMerge},__class__:Lb});var dc=function(a){this.data=a;this._tiles=new Qa(a,Lb.MBS_TILE, +new Lb(a))};k["com.stencyl.io.mbs.scene.MbsTileset"]=dc;dc.__name__="com.stencyl.io.mbs.scene.MbsTileset";dc.initializeType=function(){null==dc.MBS_TILESET&&(mb.initializeType(),dc.MBS_TILESET=new wb("MbsTileset"),dc.MBS_TILESET.setInstantiator(function(a){return new dc(a)}),dc.MBS_TILESET.inherit(mb.MBS_RESOURCE),dc.across=dc.MBS_TILESET.createField("across",L.INTEGER),dc.down=dc.MBS_TILESET.createField("down",L.INTEGER),dc.readableImages=dc.MBS_TILESET.createField("readableImages",L.BOOLEAN),dc.tileWidth= +dc.MBS_TILESET.createField("tileWidth",L.INTEGER),dc.tileHeight=dc.MBS_TILESET.createField("tileHeight",L.INTEGER),dc.tiles=dc.MBS_TILESET.createField("tiles",L.LIST))};dc.new_MbsTileset_list=function(a){return new Qa(a,dc.MBS_TILESET,new dc(a))};dc.__super__=mb;dc.prototype=u(mb.prototype,{getMbsType:function(){return dc.MBS_TILESET},_tiles:null,allocateNew:function(){this.setAddress(this.data.allocate(dc.MBS_TILESET.getSize()))},getAcross:function(){return this.data.readInt(this.address+dc.across.address)}, +setAcross:function(a){this.data.writeInt(this.address+dc.across.address,a)},getDown:function(){return this.data.readInt(this.address+dc.down.address)},setDown:function(a){this.data.writeInt(this.address+dc.down.address,a)},getReadableImages:function(){return this.data.readBool(this.address+dc.readableImages.address)},setReadableImages:function(a){this.data.writeBool(this.address+dc.readableImages.address,a)},getTileWidth:function(){return this.data.readInt(this.address+dc.tileWidth.address)},setTileWidth:function(a){this.data.writeInt(this.address+ +dc.tileWidth.address,a)},getTileHeight:function(){return this.data.readInt(this.address+dc.tileHeight.address)},setTileHeight:function(a){this.data.writeInt(this.address+dc.tileHeight.address,a)},getTiles:function(){this._tiles.setAddress(this.data.readInt(this.address+dc.tiles.address));return this._tiles},createTiles:function(a){this._tiles.allocateNew(a);this.data.writeInt(this.address+dc.tiles.address,this._tiles.getAddress());return this._tiles},__class__:dc});var ae=function(a){this.data=a}; +k["com.stencyl.io.mbs.scene.layers.MbsColorBackground"]=ae;ae.__name__="com.stencyl.io.mbs.scene.layers.MbsColorBackground";ae.initializeType=function(){null==ae.MBS_COLOR_BACKGROUND&&(ae.MBS_COLOR_BACKGROUND=new wb("MbsColorBackground"),ae.MBS_COLOR_BACKGROUND.setInstantiator(function(a){return new ae(a)}),ae.color=ae.MBS_COLOR_BACKGROUND.createField("color",L.INTEGER))};ae.new_MbsColorBackground_list=function(a){return new Qa(a,ae.MBS_COLOR_BACKGROUND,new ae(a))};ae.__super__=ib;ae.prototype=u(ib.prototype, +{getMbsType:function(){return ae.MBS_COLOR_BACKGROUND},allocateNew:function(){this.setAddress(this.data.allocate(ae.MBS_COLOR_BACKGROUND.getSize()))},getColor:function(){return this.data.readInt(this.address+ae.color.address)},setColor:function(a){this.data.writeInt(this.address+ae.color.address,a)},__class__:ae});var vd=function(a){this.data=a};k["com.stencyl.io.mbs.scene.layers.MbsGradientBackground"]=vd;vd.__name__="com.stencyl.io.mbs.scene.layers.MbsGradientBackground";vd.initializeType=function(){null== +vd.MBS_GRADIENT_BACKGROUND&&(vd.MBS_GRADIENT_BACKGROUND=new wb("MbsGradientBackground"),vd.MBS_GRADIENT_BACKGROUND.setInstantiator(function(a){return new vd(a)}),vd.color1=vd.MBS_GRADIENT_BACKGROUND.createField("color1",L.INTEGER),vd.color2=vd.MBS_GRADIENT_BACKGROUND.createField("color2",L.INTEGER))};vd.new_MbsGradientBackground_list=function(a){return new Qa(a,vd.MBS_GRADIENT_BACKGROUND,new vd(a))};vd.__super__=ib;vd.prototype=u(ib.prototype,{getMbsType:function(){return vd.MBS_GRADIENT_BACKGROUND}, +allocateNew:function(){this.setAddress(this.data.allocate(vd.MBS_GRADIENT_BACKGROUND.getSize()))},getColor1:function(){return this.data.readInt(this.address+vd.color1.address)},setColor1:function(a){this.data.writeInt(this.address+vd.color1.address,a)},getColor2:function(){return this.data.readInt(this.address+vd.color2.address)},setColor2:function(a){this.data.writeInt(this.address+vd.color2.address,a)},__class__:vd});var Ua=function(a){this.data=a};k["com.stencyl.io.mbs.scene.layers.MbsLayer"]= +Ua;Ua.__name__="com.stencyl.io.mbs.scene.layers.MbsLayer";Ua.initializeType=function(){null==Ua.MBS_LAYER&&(Ua.MBS_LAYER=new wb("MbsLayer"),Ua.MBS_LAYER.setInstantiator(function(a){return new Ua(a)}),Ua.id=Ua.MBS_LAYER.createField("id",L.INTEGER),Ua.$name=Ua.MBS_LAYER.createField("name",L.STRING),Ua.order=Ua.MBS_LAYER.createField("order",L.INTEGER),Ua.opacity=Ua.MBS_LAYER.createField("opacity",L.INTEGER),Ua.blendmode=Ua.MBS_LAYER.createField("blendmode",L.STRING),Ua.scrollFactorX=Ua.MBS_LAYER.createField("scrollFactorX", +L.FLOAT),Ua.scrollFactorY=Ua.MBS_LAYER.createField("scrollFactorY",L.FLOAT),Ua.visible=Ua.MBS_LAYER.createField("visible",L.BOOLEAN),Ua.locked=Ua.MBS_LAYER.createField("locked",L.BOOLEAN))};Ua.new_MbsLayer_list=function(a){return new Qa(a,Ua.MBS_LAYER,new Ua(a))};Ua.__super__=ib;Ua.prototype=u(ib.prototype,{getMbsType:function(){return Ua.MBS_LAYER},allocateNew:function(){this.setAddress(this.data.allocate(Ua.MBS_LAYER.getSize()))},getId:function(){return this.data.readInt(this.address+Ua.id.address)}, +setId:function(a){this.data.writeInt(this.address+Ua.id.address,a)},getName:function(){return this.data.readString(this.address+Ua.$name.address)},setName:function(a){this.data.writeString(this.address+Ua.$name.address,a)},getOrder:function(){return this.data.readInt(this.address+Ua.order.address)},setOrder:function(a){this.data.writeInt(this.address+Ua.order.address,a)},getOpacity:function(){return this.data.readInt(this.address+Ua.opacity.address)},setOpacity:function(a){this.data.writeInt(this.address+ +Ua.opacity.address,a)},getBlendmode:function(){return this.data.readString(this.address+Ua.blendmode.address)},setBlendmode:function(a){this.data.writeString(this.address+Ua.blendmode.address,a)},getScrollFactorX:function(){return this.data.readFloat(this.address+Ua.scrollFactorX.address)},setScrollFactorX:function(a){this.data.writeFloat(this.address+Ua.scrollFactorX.address,a)},getScrollFactorY:function(){return this.data.readFloat(this.address+Ua.scrollFactorY.address)},setScrollFactorY:function(a){this.data.writeFloat(this.address+ +Ua.scrollFactorY.address,a)},getVisible:function(){return this.data.readBool(this.address+Ua.visible.address)},setVisible:function(a){this.data.writeBool(this.address+Ua.visible.address,a)},getLocked:function(){return this.data.readBool(this.address+Ua.locked.address)},setLocked:function(a){this.data.writeBool(this.address+Ua.locked.address,a)},__class__:Ua});var wd=function(a){this.data=a};k["com.stencyl.io.mbs.scene.layers.MbsImageBackground"]=wd;wd.__name__="com.stencyl.io.mbs.scene.layers.MbsImageBackground"; +wd.initializeType=function(){null==wd.MBS_IMAGE_BACKGROUND&&(Ua.initializeType(),wd.MBS_IMAGE_BACKGROUND=new wb("MbsImageBackground"),wd.MBS_IMAGE_BACKGROUND.setInstantiator(function(a){return new wd(a)}),wd.MBS_IMAGE_BACKGROUND.inherit(Ua.MBS_LAYER),wd.resourceID=wd.MBS_IMAGE_BACKGROUND.createField("resourceID",L.INTEGER),wd.customScroll=wd.MBS_IMAGE_BACKGROUND.createField("customScroll",L.BOOLEAN))};wd.new_MbsImageBackground_list=function(a){return new Qa(a,wd.MBS_IMAGE_BACKGROUND,new wd(a))};wd.__super__= +Ua;wd.prototype=u(Ua.prototype,{getMbsType:function(){return wd.MBS_IMAGE_BACKGROUND},allocateNew:function(){this.setAddress(this.data.allocate(wd.MBS_IMAGE_BACKGROUND.getSize()))},getResourceID:function(){return this.data.readInt(this.address+wd.resourceID.address)},setResourceID:function(a){this.data.writeInt(this.address+wd.resourceID.address,a)},getCustomScroll:function(){return this.data.readBool(this.address+wd.customScroll.address)},setCustomScroll:function(a){this.data.writeBool(this.address+ +wd.customScroll.address,a)},__class__:wd});var be=function(a){this.data=a};k["com.stencyl.io.mbs.scene.layers.MbsInteractiveLayer"]=be;be.__name__="com.stencyl.io.mbs.scene.layers.MbsInteractiveLayer";be.initializeType=function(){null==be.MBS_INTERACTIVE_LAYER&&(Ua.initializeType(),be.MBS_INTERACTIVE_LAYER=new wb("MbsInteractiveLayer"),be.MBS_INTERACTIVE_LAYER.setInstantiator(function(a){return new be(a)}),be.MBS_INTERACTIVE_LAYER.inherit(Ua.MBS_LAYER),be.color=be.MBS_INTERACTIVE_LAYER.createField("color", +L.INTEGER))};be.new_MbsInteractiveLayer_list=function(a){return new Qa(a,be.MBS_INTERACTIVE_LAYER,new be(a))};be.__super__=Ua;be.prototype=u(Ua.prototype,{getMbsType:function(){return be.MBS_INTERACTIVE_LAYER},allocateNew:function(){this.setAddress(this.data.allocate(be.MBS_INTERACTIVE_LAYER.getSize()))},getColor:function(){return this.data.readInt(this.address+be.color.address)},setColor:function(a){this.data.writeInt(this.address+be.color.address,a)},__class__:be});var Rb=function(a){this.data= +a};k["com.stencyl.io.mbs.scene.physics.MbsJoint"]=Rb;Rb.__name__="com.stencyl.io.mbs.scene.physics.MbsJoint";Rb.initializeType=function(){null==Rb.MBS_JOINT&&(Rb.MBS_JOINT=new wb("MbsJoint"),Rb.MBS_JOINT.setInstantiator(function(a){return new Rb(a)}),Rb.id=Rb.MBS_JOINT.createField("id",L.INTEGER),Rb.$name=Rb.MBS_JOINT.createField("name",L.STRING),Rb.actor1=Rb.MBS_JOINT.createField("actor1",L.INTEGER),Rb.actor2=Rb.MBS_JOINT.createField("actor2",L.INTEGER),Rb.collide=Rb.MBS_JOINT.createField("collide", +L.BOOLEAN))};Rb.new_MbsJoint_list=function(a){return new Qa(a,Rb.MBS_JOINT,new Rb(a))};Rb.__super__=ib;Rb.prototype=u(ib.prototype,{getMbsType:function(){return Rb.MBS_JOINT},allocateNew:function(){this.setAddress(this.data.allocate(Rb.MBS_JOINT.getSize()))},getId:function(){return this.data.readInt(this.address+Rb.id.address)},setId:function(a){this.data.writeInt(this.address+Rb.id.address,a)},getName:function(){return this.data.readString(this.address+Rb.$name.address)},setName:function(a){this.data.writeString(this.address+ +Rb.$name.address,a)},getActor1:function(){return this.data.readInt(this.address+Rb.actor1.address)},setActor1:function(a){this.data.writeInt(this.address+Rb.actor1.address,a)},getActor2:function(){return this.data.readInt(this.address+Rb.actor2.address)},setActor2:function(a){this.data.writeInt(this.address+Rb.actor2.address,a)},getCollide:function(){return this.data.readBool(this.address+Rb.collide.address)},setCollide:function(a){this.data.writeBool(this.address+Rb.collide.address,a)},__class__:Rb}); +var ec=function(a){this.data=a};k["com.stencyl.io.mbs.scene.physics.MbsHingeJoint"]=ec;ec.__name__="com.stencyl.io.mbs.scene.physics.MbsHingeJoint";ec.initializeType=function(){null==ec.MBS_HINGE_JOINT&&(Rb.initializeType(),ec.MBS_HINGE_JOINT=new wb("MbsHingeJoint"),ec.MBS_HINGE_JOINT.setInstantiator(function(a){return new ec(a)}),ec.MBS_HINGE_JOINT.inherit(Rb.MBS_JOINT),ec.limit=ec.MBS_HINGE_JOINT.createField("limit",L.BOOLEAN),ec.motor=ec.MBS_HINGE_JOINT.createField("motor",L.BOOLEAN),ec.lower= +ec.MBS_HINGE_JOINT.createField("lower",L.FLOAT),ec.upper=ec.MBS_HINGE_JOINT.createField("upper",L.FLOAT),ec.torque=ec.MBS_HINGE_JOINT.createField("torque",L.FLOAT),ec.speed=ec.MBS_HINGE_JOINT.createField("speed",L.FLOAT))};ec.new_MbsHingeJoint_list=function(a){return new Qa(a,ec.MBS_HINGE_JOINT,new ec(a))};ec.__super__=Rb;ec.prototype=u(Rb.prototype,{getMbsType:function(){return ec.MBS_HINGE_JOINT},allocateNew:function(){this.setAddress(this.data.allocate(ec.MBS_HINGE_JOINT.getSize()))},getLimit:function(){return this.data.readBool(this.address+ +ec.limit.address)},setLimit:function(a){this.data.writeBool(this.address+ec.limit.address,a)},getMotor:function(){return this.data.readBool(this.address+ec.motor.address)},setMotor:function(a){this.data.writeBool(this.address+ec.motor.address,a)},getLower:function(){return this.data.readFloat(this.address+ec.lower.address)},setLower:function(a){this.data.writeFloat(this.address+ec.lower.address,a)},getUpper:function(){return this.data.readFloat(this.address+ec.upper.address)},setUpper:function(a){this.data.writeFloat(this.address+ +ec.upper.address,a)},getTorque:function(){return this.data.readFloat(this.address+ec.torque.address)},setTorque:function(a){this.data.writeFloat(this.address+ec.torque.address,a)},getSpeed:function(){return this.data.readFloat(this.address+ec.speed.address)},setSpeed:function(a){this.data.writeFloat(this.address+ec.speed.address,a)},__class__:ec});var Wb=function(a){this.data=a};k["com.stencyl.io.mbs.scene.physics.MbsRegion"]=Wb;Wb.__name__="com.stencyl.io.mbs.scene.physics.MbsRegion";Wb.initializeType= +function(){null==Wb.MBS_REGION&&(Wb.MBS_REGION=new wb("MbsRegion"),Wb.MBS_REGION.setInstantiator(function(a){return new Wb(a)}),Wb.color=Wb.MBS_REGION.createField("color",L.INTEGER),Wb.id=Wb.MBS_REGION.createField("id",L.INTEGER),Wb.$name=Wb.MBS_REGION.createField("name",L.STRING),Wb.shape=Wb.MBS_REGION.createField("shape",L.DYNAMIC),Wb.x=Wb.MBS_REGION.createField("x",L.INTEGER),Wb.y=Wb.MBS_REGION.createField("y",L.INTEGER))};Wb.new_MbsRegion_list=function(a){return new Qa(a,Wb.MBS_REGION,new Wb(a))}; +Wb.__super__=ib;Wb.prototype=u(ib.prototype,{getMbsType:function(){return Wb.MBS_REGION},allocateNew:function(){this.setAddress(this.data.allocate(Wb.MBS_REGION.getSize()))},getColor:function(){return this.data.readInt(this.address+Wb.color.address)},setColor:function(a){this.data.writeInt(this.address+Wb.color.address,a)},getId:function(){return this.data.readInt(this.address+Wb.id.address)},setId:function(a){this.data.writeInt(this.address+Wb.id.address,a)},getName:function(){return this.data.readString(this.address+ +Wb.$name.address)},setName:function(a){this.data.writeString(this.address+Wb.$name.address,a)},getShape:function(){return $d.readDynamic(this.data,this.address+Wb.shape.address)},setShape:function(a){$d.writeDynamic(this.data,this.address+Wb.shape.address,a)},getX:function(){return this.data.readInt(this.address+Wb.x.address)},setX:function(a){this.data.writeInt(this.address+Wb.x.address,a)},getY:function(){return this.data.readInt(this.address+Wb.y.address)},setY:function(a){this.data.writeInt(this.address+ +Wb.y.address,a)},__class__:Wb});var Mb=function(a){this.data=a};k["com.stencyl.io.mbs.scene.physics.MbsSlidingJoint"]=Mb;Mb.__name__="com.stencyl.io.mbs.scene.physics.MbsSlidingJoint";Mb.initializeType=function(){null==Mb.MBS_SLIDING_JOINT&&(Rb.initializeType(),Mb.MBS_SLIDING_JOINT=new wb("MbsSlidingJoint"),Mb.MBS_SLIDING_JOINT.setInstantiator(function(a){return new Mb(a)}),Mb.MBS_SLIDING_JOINT.inherit(Rb.MBS_JOINT),Mb.limit=Mb.MBS_SLIDING_JOINT.createField("limit",L.BOOLEAN),Mb.motor=Mb.MBS_SLIDING_JOINT.createField("motor", +L.BOOLEAN),Mb.lower=Mb.MBS_SLIDING_JOINT.createField("lower",L.FLOAT),Mb.upper=Mb.MBS_SLIDING_JOINT.createField("upper",L.FLOAT),Mb.force=Mb.MBS_SLIDING_JOINT.createField("force",L.FLOAT),Mb.speed=Mb.MBS_SLIDING_JOINT.createField("speed",L.FLOAT),Mb.x=Mb.MBS_SLIDING_JOINT.createField("x",L.FLOAT),Mb.y=Mb.MBS_SLIDING_JOINT.createField("y",L.FLOAT))};Mb.new_MbsSlidingJoint_list=function(a){return new Qa(a,Mb.MBS_SLIDING_JOINT,new Mb(a))};Mb.__super__=Rb;Mb.prototype=u(Rb.prototype,{getMbsType:function(){return Mb.MBS_SLIDING_JOINT}, +allocateNew:function(){this.setAddress(this.data.allocate(Mb.MBS_SLIDING_JOINT.getSize()))},getLimit:function(){return this.data.readBool(this.address+Mb.limit.address)},setLimit:function(a){this.data.writeBool(this.address+Mb.limit.address,a)},getMotor:function(){return this.data.readBool(this.address+Mb.motor.address)},setMotor:function(a){this.data.writeBool(this.address+Mb.motor.address,a)},getLower:function(){return this.data.readFloat(this.address+Mb.lower.address)},setLower:function(a){this.data.writeFloat(this.address+ +Mb.lower.address,a)},getUpper:function(){return this.data.readFloat(this.address+Mb.upper.address)},setUpper:function(a){this.data.writeFloat(this.address+Mb.upper.address,a)},getForce:function(){return this.data.readFloat(this.address+Mb.force.address)},setForce:function(a){this.data.writeFloat(this.address+Mb.force.address,a)},getSpeed:function(){return this.data.readFloat(this.address+Mb.speed.address)},setSpeed:function(a){this.data.writeFloat(this.address+Mb.speed.address,a)},getX:function(){return this.data.readFloat(this.address+ +Mb.x.address)},setX:function(a){this.data.writeFloat(this.address+Mb.x.address,a)},getY:function(){return this.data.readFloat(this.address+Mb.y.address)},setY:function(a){this.data.writeFloat(this.address+Mb.y.address,a)},__class__:Mb});var xd=function(a){this.data=a};k["com.stencyl.io.mbs.scene.physics.MbsStickJoint"]=xd;xd.__name__="com.stencyl.io.mbs.scene.physics.MbsStickJoint";xd.initializeType=function(){null==xd.MBS_STICK_JOINT&&(Rb.initializeType(),xd.MBS_STICK_JOINT=new wb("MbsStickJoint"), +xd.MBS_STICK_JOINT.setInstantiator(function(a){return new xd(a)}),xd.MBS_STICK_JOINT.inherit(Rb.MBS_JOINT),xd.damping=xd.MBS_STICK_JOINT.createField("damping",L.FLOAT),xd.frequency=xd.MBS_STICK_JOINT.createField("frequency",L.FLOAT))};xd.new_MbsStickJoint_list=function(a){return new Qa(a,xd.MBS_STICK_JOINT,new xd(a))};xd.__super__=Rb;xd.prototype=u(Rb.prototype,{getMbsType:function(){return xd.MBS_STICK_JOINT},allocateNew:function(){this.setAddress(this.data.allocate(xd.MBS_STICK_JOINT.getSize()))}, +getDamping:function(){return this.data.readFloat(this.address+xd.damping.address)},setDamping:function(a){this.data.writeFloat(this.address+xd.damping.address,a)},getFrequency:function(){return this.data.readFloat(this.address+xd.frequency.address)},setFrequency:function(a){this.data.writeFloat(this.address+xd.frequency.address,a)},__class__:xd});var Ud=function(a){this.data=a};k["com.stencyl.io.mbs.scene.physics.MbsTerrainRegion"]=Ud;Ud.__name__="com.stencyl.io.mbs.scene.physics.MbsTerrainRegion"; +Ud.initializeType=function(){null==Ud.MBS_TERRAIN_REGION&&(Wb.initializeType(),Ud.MBS_TERRAIN_REGION=new wb("MbsTerrainRegion"),Ud.MBS_TERRAIN_REGION.setInstantiator(function(a){return new Ud(a)}),Ud.MBS_TERRAIN_REGION.inherit(Wb.MBS_REGION),Ud.groupID=Ud.MBS_TERRAIN_REGION.createField("groupID",L.INTEGER))};Ud.new_MbsTerrainRegion_list=function(a){return new Qa(a,Ud.MBS_TERRAIN_REGION,new Ud(a))};Ud.__super__=Wb;Ud.prototype=u(Wb.prototype,{getMbsType:function(){return Ud.MBS_TERRAIN_REGION},allocateNew:function(){this.setAddress(this.data.allocate(Ud.MBS_TERRAIN_REGION.getSize()))}, +getGroupID:function(){return this.data.readInt(this.address+Ud.groupID.address)},setGroupID:function(a){this.data.writeInt(this.address+Ud.groupID.address,a)},__class__:Ud});var Ld=function(a){this.data=a};k["com.stencyl.io.mbs.shape.MbsShape"]=Ld;Ld.__name__="com.stencyl.io.mbs.shape.MbsShape";Ld.initializeType=function(){null==Ld.MBS_SHAPE&&(Ld.MBS_SHAPE=new wb("MbsShape"),Ld.MBS_SHAPE.setInstantiator(function(a){return new Ld(a)}))};Ld.new_MbsShape_list=function(a){return new Qa(a,Ld.MBS_SHAPE, +new Ld(a))};Ld.__super__=ib;Ld.prototype=u(ib.prototype,{getMbsType:function(){return Ld.MBS_SHAPE},allocateNew:function(){this.setAddress(this.data.allocate(Ld.MBS_SHAPE.getSize()))},__class__:Ld});var Bd=function(a){this.data=a;this._position=new mc(a)};k["com.stencyl.io.mbs.shape.MbsCircle"]=Bd;Bd.__name__="com.stencyl.io.mbs.shape.MbsCircle";Bd.initializeType=function(){null==Bd.MBS_CIRCLE&&(Ld.initializeType(),Bd.MBS_CIRCLE=new wb("MbsCircle"),Bd.MBS_CIRCLE.setInstantiator(function(a){return new Bd(a)}), +Bd.MBS_CIRCLE.inherit(Ld.MBS_SHAPE),Bd.position=Bd.MBS_CIRCLE.createField("position",mc.MBS_POINT),Bd.radius=Bd.MBS_CIRCLE.createField("radius",L.FLOAT))};Bd.new_MbsCircle_list=function(a){return new Qa(a,Bd.MBS_CIRCLE,new Bd(a))};Bd.__super__=Ld;Bd.prototype=u(Ld.prototype,{getMbsType:function(){return Bd.MBS_CIRCLE},_position:null,allocateNew:function(){this.setAddress(this.data.allocate(Bd.MBS_CIRCLE.getSize()))},getPosition:function(){this._position.setAddress(this.address+Bd.position.address); +return this._position},getRadius:function(){return this.data.readFloat(this.address+Bd.radius.address)},setRadius:function(a){this.data.writeFloat(this.address+Bd.radius.address,a)},__class__:Bd});var mc=function(a){this.data=a};k["com.stencyl.io.mbs.shape.MbsPoint"]=mc;mc.__name__="com.stencyl.io.mbs.shape.MbsPoint";mc.initializeType=function(){null==mc.MBS_POINT&&(mc.MBS_POINT=new wb("MbsPoint"),mc.MBS_POINT.setInstantiator(function(a){return new mc(a)}),mc.x=mc.MBS_POINT.createField("x",L.FLOAT), +mc.y=mc.MBS_POINT.createField("y",L.FLOAT))};mc.new_MbsPoint_list=function(a){return new Qa(a,mc.MBS_POINT,new mc(a))};mc.__super__=ib;mc.prototype=u(ib.prototype,{getMbsType:function(){return mc.MBS_POINT},allocateNew:function(){this.setAddress(this.data.allocate(mc.MBS_POINT.getSize()))},getX:function(){return this.data.readFloat(this.address+mc.x.address)},setX:function(a){this.data.writeFloat(this.address+mc.x.address,a)},getY:function(){return this.data.readFloat(this.address+mc.y.address)}, +setY:function(a){this.data.writeFloat(this.address+mc.y.address,a)},__class__:mc});var Pc=function(a){this.data=a;this._points=new Qa(a,mc.MBS_POINT,new mc(a))};k["com.stencyl.io.mbs.shape.MbsPolygon"]=Pc;Pc.__name__="com.stencyl.io.mbs.shape.MbsPolygon";Pc.initializeType=function(){null==Pc.MBS_POLYGON&&(Ld.initializeType(),Pc.MBS_POLYGON=new wb("MbsPolygon"),Pc.MBS_POLYGON.setInstantiator(function(a){return new Pc(a)}),Pc.MBS_POLYGON.inherit(Ld.MBS_SHAPE),Pc.points=Pc.MBS_POLYGON.createField("points", +L.LIST))};Pc.new_MbsPolygon_list=function(a){return new Qa(a,Pc.MBS_POLYGON,new Pc(a))};Pc.__super__=Ld;Pc.prototype=u(Ld.prototype,{getMbsType:function(){return Pc.MBS_POLYGON},_points:null,allocateNew:function(){this.setAddress(this.data.allocate(Pc.MBS_POLYGON.getSize()))},getPoints:function(){this._points.setAddress(this.data.readInt(this.address+Pc.points.address));return this._points},createPoints:function(a){this._points.allocateNew(a);this.data.writeInt(this.address+Pc.points.address,this._points.getAddress()); +return this._points},__class__:Pc});var nd=function(a){Pc.call(this,a)};k["com.stencyl.io.mbs.shape.MbsPolyRegion"]=nd;nd.__name__="com.stencyl.io.mbs.shape.MbsPolyRegion";nd.initializeType=function(){null==nd.MBS_POLY_REGION&&(Pc.initializeType(),nd.MBS_POLY_REGION=new wb("MbsPolyRegion"),nd.MBS_POLY_REGION.setInstantiator(function(a){return new nd(a)}),nd.MBS_POLY_REGION.inherit(Pc.MBS_POLYGON),nd.width=nd.MBS_POLY_REGION.createField("width",L.INTEGER),nd.height=nd.MBS_POLY_REGION.createField("height", +L.INTEGER))};nd.new_MbsPolyRegion_list=function(a){return new Qa(a,nd.MBS_POLY_REGION,new nd(a))};nd.__super__=Pc;nd.prototype=u(Pc.prototype,{getMbsType:function(){return nd.MBS_POLY_REGION},allocateNew:function(){this.setAddress(this.data.allocate(nd.MBS_POLY_REGION.getSize()))},getWidth:function(){return this.data.readInt(this.address+nd.width.address)},setWidth:function(a){this.data.writeInt(this.address+nd.width.address,a)},getHeight:function(){return this.data.readInt(this.address+nd.height.address)}, +setHeight:function(a){this.data.writeInt(this.address+nd.height.address,a)},__class__:nd});var ce=function(a){Pc.call(this,a);this._position=new mc(a)};k["com.stencyl.io.mbs.shape.MbsWireframe"]=ce;ce.__name__="com.stencyl.io.mbs.shape.MbsWireframe";ce.initializeType=function(){null==ce.MBS_WIREFRAME&&(Pc.initializeType(),ce.MBS_WIREFRAME=new wb("MbsWireframe"),ce.MBS_WIREFRAME.setInstantiator(function(a){return new ce(a)}),ce.MBS_WIREFRAME.inherit(Pc.MBS_POLYGON),ce.position=ce.MBS_WIREFRAME.createField("position", +mc.MBS_POINT))};ce.new_MbsWireframe_list=function(a){return new Qa(a,ce.MBS_WIREFRAME,new ce(a))};ce.__super__=Pc;ce.prototype=u(Pc.prototype,{getMbsType:function(){return ce.MBS_WIREFRAME},_position:null,allocateNew:function(){this.setAddress(this.data.allocate(ce.MBS_WIREFRAME.getSize()))},getPosition:function(){this._position.setAddress(this.address+ce.position.address);return this._position},__class__:ce});var Xc=function(a){this.data=a};k["com.stencyl.io.mbs.snippet.MbsAttribute"]=Xc;Xc.__name__= +"com.stencyl.io.mbs.snippet.MbsAttribute";Xc.initializeType=function(){null==Xc.MBS_ATTRIBUTE&&(Xc.MBS_ATTRIBUTE=new wb("MbsAttribute"),Xc.MBS_ATTRIBUTE.setInstantiator(function(a){return new Xc(a)}),Xc.id=Xc.MBS_ATTRIBUTE.createField("id",L.INTEGER),Xc.type=Xc.MBS_ATTRIBUTE.createField("type",L.STRING),Xc.value=Xc.MBS_ATTRIBUTE.createField("value",L.DYNAMIC))};Xc.new_MbsAttribute_list=function(a){return new Qa(a,Xc.MBS_ATTRIBUTE,new Xc(a))};Xc.__super__=ib;Xc.prototype=u(ib.prototype,{getMbsType:function(){return Xc.MBS_ATTRIBUTE}, +allocateNew:function(){this.setAddress(this.data.allocate(Xc.MBS_ATTRIBUTE.getSize()))},getId:function(){return this.data.readInt(this.address+Xc.id.address)},setId:function(a){this.data.writeInt(this.address+Xc.id.address,a)},getType:function(){return this.data.readString(this.address+Xc.type.address)},setType:function(a){this.data.writeString(this.address+Xc.type.address,a)},getValue:function(){return $d.readDynamic(this.data,this.address+Xc.value.address)},setValue:function(a){$d.writeDynamic(this.data, +this.address+Xc.value.address,a)},__class__:Xc});var zb=function(a){this.data=a};k["com.stencyl.io.mbs.snippet.MbsAttributeDef"]=zb;zb.__name__="com.stencyl.io.mbs.snippet.MbsAttributeDef";zb.initializeType=function(){null==zb.MBS_ATTRIBUTE_DEF&&(zb.MBS_ATTRIBUTE_DEF=new wb("MbsAttributeDef"),zb.MBS_ATTRIBUTE_DEF.setInstantiator(function(a){return new zb(a)}),zb.type=zb.MBS_ATTRIBUTE_DEF.createField("type",L.STRING),zb.defaultValue=zb.MBS_ATTRIBUTE_DEF.createField("defaultValue",L.DYNAMIC),zb.description= +zb.MBS_ATTRIBUTE_DEF.createField("description",L.STRING),zb.dropdown=zb.MBS_ATTRIBUTE_DEF.createField("dropdown",L.STRING),zb.fullname=zb.MBS_ATTRIBUTE_DEF.createField("fullname",L.STRING),zb.hidden=zb.MBS_ATTRIBUTE_DEF.createField("hidden",L.BOOLEAN),zb.id=zb.MBS_ATTRIBUTE_DEF.createField("id",L.INTEGER),zb.$name=zb.MBS_ATTRIBUTE_DEF.createField("name",L.STRING),zb.order=zb.MBS_ATTRIBUTE_DEF.createField("order",L.INTEGER))};zb.new_MbsAttributeDef_list=function(a){return new Qa(a,zb.MBS_ATTRIBUTE_DEF, +new zb(a))};zb.__super__=ib;zb.prototype=u(ib.prototype,{getMbsType:function(){return zb.MBS_ATTRIBUTE_DEF},allocateNew:function(){this.setAddress(this.data.allocate(zb.MBS_ATTRIBUTE_DEF.getSize()))},getType:function(){return this.data.readString(this.address+zb.type.address)},setType:function(a){this.data.writeString(this.address+zb.type.address,a)},getDefaultValue:function(){return $d.readDynamic(this.data,this.address+zb.defaultValue.address)},setDefaultValue:function(a){$d.writeDynamic(this.data, +this.address+zb.defaultValue.address,a)},getDescription:function(){return this.data.readString(this.address+zb.description.address)},setDescription:function(a){this.data.writeString(this.address+zb.description.address,a)},getDropdown:function(){return this.data.readString(this.address+zb.dropdown.address)},setDropdown:function(a){this.data.writeString(this.address+zb.dropdown.address,a)},getFullname:function(){return this.data.readString(this.address+zb.fullname.address)},setFullname:function(a){this.data.writeString(this.address+ +zb.fullname.address,a)},getHidden:function(){return this.data.readBool(this.address+zb.hidden.address)},setHidden:function(a){this.data.writeBool(this.address+zb.hidden.address,a)},getId:function(){return this.data.readInt(this.address+zb.id.address)},setId:function(a){this.data.writeInt(this.address+zb.id.address,a)},getName:function(){return this.data.readString(this.address+zb.$name.address)},setName:function(a){this.data.writeString(this.address+zb.$name.address,a)},getOrder:function(){return this.data.readInt(this.address+ +zb.order.address)},setOrder:function(a){this.data.writeInt(this.address+zb.order.address,a)},__class__:zb});var Wc=function(a){this.data=a};k["com.stencyl.io.mbs.snippet.MbsBlock"]=Wc;Wc.__name__="com.stencyl.io.mbs.snippet.MbsBlock";Wc.initializeType=function(){null==Wc.MBS_BLOCK&&(Wc.MBS_BLOCK=new wb("MbsBlock"),Wc.MBS_BLOCK.setInstantiator(function(a){return new Wc(a)}),Wc.type=Wc.MBS_BLOCK.createField("type",L.STRING),Wc.id=Wc.MBS_BLOCK.createField("id",L.INTEGER),Wc.blockID=Wc.MBS_BLOCK.createField("blockID", +L.INTEGER))};Wc.new_MbsBlock_list=function(a){return new Qa(a,Wc.MBS_BLOCK,new Wc(a))};Wc.__super__=ib;Wc.prototype=u(ib.prototype,{getMbsType:function(){return Wc.MBS_BLOCK},allocateNew:function(){this.setAddress(this.data.allocate(Wc.MBS_BLOCK.getSize()))},getType:function(){return this.data.readString(this.address+Wc.type.address)},setType:function(a){this.data.writeString(this.address+Wc.type.address,a)},getId:function(){return this.data.readInt(this.address+Wc.id.address)},setId:function(a){this.data.writeInt(this.address+ +Wc.id.address,a)},getBlockID:function(){return this.data.readInt(this.address+Wc.blockID.address)},setBlockID:function(a){this.data.writeInt(this.address+Wc.blockID.address,a)},__class__:Wc});var fc=function(a){this.data=a};k["com.stencyl.io.mbs.snippet.MbsEvent"]=fc;fc.__name__="com.stencyl.io.mbs.snippet.MbsEvent";fc.initializeType=function(){null==fc.MBS_EVENT&&(fc.MBS_EVENT=new wb("MbsEvent"),fc.MBS_EVENT.setInstantiator(function(a){return new fc(a)}),fc.displayName=fc.MBS_EVENT.createField("displayName", +L.STRING),fc.enabled=fc.MBS_EVENT.createField("enabled",L.BOOLEAN),fc.id=fc.MBS_EVENT.createField("id",L.INTEGER),fc.$name=fc.MBS_EVENT.createField("name",L.STRING),fc.order=fc.MBS_EVENT.createField("order",L.INTEGER),fc.repeats=fc.MBS_EVENT.createField("repeats",L.BOOLEAN))};fc.new_MbsEvent_list=function(a){return new Qa(a,fc.MBS_EVENT,new fc(a))};fc.__super__=ib;fc.prototype=u(ib.prototype,{getMbsType:function(){return fc.MBS_EVENT},allocateNew:function(){this.setAddress(this.data.allocate(fc.MBS_EVENT.getSize()))}, +getDisplayName:function(){return this.data.readString(this.address+fc.displayName.address)},setDisplayName:function(a){this.data.writeString(this.address+fc.displayName.address,a)},getEnabled:function(){return this.data.readBool(this.address+fc.enabled.address)},setEnabled:function(a){this.data.writeBool(this.address+fc.enabled.address,a)},getId:function(){return this.data.readInt(this.address+fc.id.address)},setId:function(a){this.data.writeInt(this.address+fc.id.address,a)},getName:function(){return this.data.readString(this.address+ +fc.$name.address)},setName:function(a){this.data.writeString(this.address+fc.$name.address,a)},getOrder:function(){return this.data.readInt(this.address+fc.order.address)},setOrder:function(a){this.data.writeInt(this.address+fc.order.address,a)},getRepeats:function(){return this.data.readBool(this.address+fc.repeats.address)},setRepeats:function(a){this.data.writeBool(this.address+fc.repeats.address,a)},__class__:fc});var yd=function(a){this.data=a};k["com.stencyl.io.mbs.snippet.MbsMapElement"]=yd; +yd.__name__="com.stencyl.io.mbs.snippet.MbsMapElement";yd.initializeType=function(){null==yd.MBS_MAP_ELEMENT&&(yd.MBS_MAP_ELEMENT=new wb("MbsMapElement"),yd.MBS_MAP_ELEMENT.setInstantiator(function(a){return new yd(a)}),yd.key=yd.MBS_MAP_ELEMENT.createField("key",L.STRING),yd.value=yd.MBS_MAP_ELEMENT.createField("value",L.DYNAMIC))};yd.new_MbsMapElement_list=function(a){return new Qa(a,yd.MBS_MAP_ELEMENT,new yd(a))};yd.__super__=ib;yd.prototype=u(ib.prototype,{getMbsType:function(){return yd.MBS_MAP_ELEMENT}, +allocateNew:function(){this.setAddress(this.data.allocate(yd.MBS_MAP_ELEMENT.getSize()))},getKey:function(){return this.data.readString(this.address+yd.key.address)},setKey:function(a){this.data.writeString(this.address+yd.key.address,a)},getValue:function(){return $d.readDynamic(this.data,this.address+yd.value.address)},setValue:function(a){$d.writeDynamic(this.data,this.address+yd.value.address,a)},__class__:yd});var Dc=function(a){this.data=a;this._properties=new Qa(a,Xc.MBS_ATTRIBUTE,new Xc(a))}; +k["com.stencyl.io.mbs.snippet.MbsSnippet"]=Dc;Dc.__name__="com.stencyl.io.mbs.snippet.MbsSnippet";Dc.initializeType=function(){null==Dc.MBS_SNIPPET&&(Dc.MBS_SNIPPET=new wb("MbsSnippet"),Dc.MBS_SNIPPET.setInstantiator(function(a){return new Dc(a)}),Dc.enabled=Dc.MBS_SNIPPET.createField("enabled",L.BOOLEAN),Dc.id=Dc.MBS_SNIPPET.createField("id",L.INTEGER),Dc.properties=Dc.MBS_SNIPPET.createField("properties",L.LIST))};Dc.new_MbsSnippet_list=function(a){return new Qa(a,Dc.MBS_SNIPPET,new Dc(a))};Dc.__super__= +ib;Dc.prototype=u(ib.prototype,{getMbsType:function(){return Dc.MBS_SNIPPET},_properties:null,allocateNew:function(){this.setAddress(this.data.allocate(Dc.MBS_SNIPPET.getSize()))},getEnabled:function(){return this.data.readBool(this.address+Dc.enabled.address)},setEnabled:function(a){this.data.writeBool(this.address+Dc.enabled.address,a)},getId:function(){return this.data.readInt(this.address+Dc.id.address)},setId:function(a){this.data.writeInt(this.address+Dc.id.address,a)},getProperties:function(){this._properties.setAddress(this.data.readInt(this.address+ +Dc.properties.address));return this._properties},createProperties:function(a){this._properties.allocateNew(a);this.data.writeInt(this.address+Dc.properties.address,this._properties.getAddress());return this._properties},__class__:Dc});var db=function(a){this.data=a;this._attributes=new Qa(a,zb.MBS_ATTRIBUTE_DEF,new zb(a));this._blocks=new Qa(a,Wc.MBS_BLOCK,new Wc(a));this._events=new Qa(a,fc.MBS_EVENT,new fc(a))};k["com.stencyl.io.mbs.snippet.MbsSnippetDef"]=db;db.__name__="com.stencyl.io.mbs.snippet.MbsSnippetDef"; +db.initializeType=function(){null==db.MBS_SNIPPET_DEF&&(db.MBS_SNIPPET_DEF=new wb("MbsSnippetDef"),db.MBS_SNIPPET_DEF.setInstantiator(function(a){return new db(a)}),db.attachedEvent=db.MBS_SNIPPET_DEF.createField("attachedEvent",L.BOOLEAN),db.actorID=db.MBS_SNIPPET_DEF.createField("actorID",L.INTEGER),db.classname=db.MBS_SNIPPET_DEF.createField("classname",L.STRING),db.description=db.MBS_SNIPPET_DEF.createField("description",L.STRING),db.design=db.MBS_SNIPPET_DEF.createField("design",L.BOOLEAN),db.drawOrder= +db.MBS_SNIPPET_DEF.createField("drawOrder",L.INTEGER),db.id=db.MBS_SNIPPET_DEF.createField("id",L.INTEGER),db.$name=db.MBS_SNIPPET_DEF.createField("name",L.STRING),db.packageName=db.MBS_SNIPPET_DEF.createField("packageName",L.STRING),db.sceneID=db.MBS_SNIPPET_DEF.createField("sceneID",L.INTEGER),db.type=db.MBS_SNIPPET_DEF.createField("type",L.STRING),db.attributes=db.MBS_SNIPPET_DEF.createField("attributes",L.LIST),db.blocks=db.MBS_SNIPPET_DEF.createField("blocks",L.LIST),db.events=db.MBS_SNIPPET_DEF.createField("events", +L.LIST))};db.new_MbsSnippetDef_list=function(a){return new Qa(a,db.MBS_SNIPPET_DEF,new db(a))};db.__super__=ib;db.prototype=u(ib.prototype,{getMbsType:function(){return db.MBS_SNIPPET_DEF},_attributes:null,_blocks:null,_events:null,allocateNew:function(){this.setAddress(this.data.allocate(db.MBS_SNIPPET_DEF.getSize()))},getAttachedEvent:function(){return this.data.readBool(this.address+db.attachedEvent.address)},setAttachedEvent:function(a){this.data.writeBool(this.address+db.attachedEvent.address, +a)},getActorID:function(){return this.data.readInt(this.address+db.actorID.address)},setActorID:function(a){this.data.writeInt(this.address+db.actorID.address,a)},getClassname:function(){return this.data.readString(this.address+db.classname.address)},setClassname:function(a){this.data.writeString(this.address+db.classname.address,a)},getDescription:function(){return this.data.readString(this.address+db.description.address)},setDescription:function(a){this.data.writeString(this.address+db.description.address, +a)},getDesign:function(){return this.data.readBool(this.address+db.design.address)},setDesign:function(a){this.data.writeBool(this.address+db.design.address,a)},getDrawOrder:function(){return this.data.readInt(this.address+db.drawOrder.address)},setDrawOrder:function(a){this.data.writeInt(this.address+db.drawOrder.address,a)},getId:function(){return this.data.readInt(this.address+db.id.address)},setId:function(a){this.data.writeInt(this.address+db.id.address,a)},getName:function(){return this.data.readString(this.address+ +db.$name.address)},setName:function(a){this.data.writeString(this.address+db.$name.address,a)},getPackageName:function(){return this.data.readString(this.address+db.packageName.address)},setPackageName:function(a){this.data.writeString(this.address+db.packageName.address,a)},getSceneID:function(){return this.data.readInt(this.address+db.sceneID.address)},setSceneID:function(a){this.data.writeInt(this.address+db.sceneID.address,a)},getType:function(){return this.data.readString(this.address+db.type.address)}, +setType:function(a){this.data.writeString(this.address+db.type.address,a)},getAttributes:function(){this._attributes.setAddress(this.data.readInt(this.address+db.attributes.address));return this._attributes},createAttributes:function(a){this._attributes.allocateNew(a);this.data.writeInt(this.address+db.attributes.address,this._attributes.getAddress());return this._attributes},getBlocks:function(){this._blocks.setAddress(this.data.readInt(this.address+db.blocks.address));return this._blocks},createBlocks:function(a){this._blocks.allocateNew(a); +this.data.writeInt(this.address+db.blocks.address,this._blocks.getAddress());return this._blocks},getEvents:function(){this._events.setAddress(this.data.readInt(this.address+db.events.address));return this._events},createEvents:function(a){this._events.allocateNew(a);this.data.writeInt(this.address+db.events.address,this._events.getAddress());return this._events},__class__:db});var tb=function(a,b,c,d,e,g,f,l,t,m,k,p,n,r,v,rb,u,rj,oe,w){null==w&&(w=0);null==oe&&(oe=!1);null==rj&&(rj=!0);null==rb&& +(rb=!1);null==v&&(v=!1);null==r&&(r=!1);null==n&&(n=!1);null==l&&(l=32);null==f&&(f=32);null==g&&(g=-1);null==e&&(e=0);null==d&&(d=0);this.customizedBehaviors=!1;this.maxMove=99999;this.minMove=3;this.moveXDistance=this.moveYDistance=0;this.moveMultiplier=.33;this.drawX=this.drawY=0;this.smoothMove=this.firstMove=this.snapOnSet=!1;this.attachedImages=null;ta.call(this);h.NO_PHYSICS&&0==w&&(this.physicsMode=w=1);this.dummy=new z;this.zero=new z(0,0);this._point=S.point;this._moveX=this._moveY=0;this.HITBOX= +new gg;this.set_shape(this.HITBOX);this instanceof kd&&h.NO_PHYSICS&&(u=this.HITBOX=new bd(f|0,l|0,0,0,!1,-2),this.set_shape(u));this.set_x(0);this.set_y(0);this.set_rotation(0);this.realAngle=this.realY=this.realX=0;this.realScaleY=this.realScaleX=1;this.collidable=!0;this.solid=!n;this.updateMatrix=!0;this.colY=this.colX=0;this.lastScale=new oa(1,1);this.lastY=this.lastX=-1E3;this.lastAngle=0;this.tweenProps=new jo;this.tweenProps.xy.doOnUpdate(q(this,this.updateTweenXY));this.tweenProps.angle.doOnUpdate(q(this, +this.updateTweenAngle));this.tweenProps.alpha.doOnUpdate(q(this,this.updateTweenAlpha));this.tweenProps.realScaleXY.doOnUpdate(q(this,this.updateTweenScaleXY));this.transformPoint=new oa(0,0);this.transformMatrix=new Aa;this.drawMatrix=new Aa;this.currOrigin=new oa(0,0);this.currOffset=new oa(0,0);this.registry=new V;this.attachedImages=[];this.physicsMode=w;this.autoScale=rj;this.mouseState=this.rSpeed=this.ySpeed=this.xSpeed=0;this.isTerrainRegion=this.isRegion=this.isCamera=this.isOnScreenCache= +this.lastSceneState=this.lastScreenState=!1;this.drawActor=!0;this.fixedRotation=this.continuousCollision=this.isHUD=this.alwaysSimulate=this.killLeaveScreen=!1;this.defaultGravity=this.ignoreGravity=oe;this.resetOrigin=!0;this.allListeners=new Sa;this.allEventReferences=[];this.whenCreated=new Bc;this.whenUpdated=new Bc;this.whenDrawing=new Bc;this.whenKilled=new Bc;this.whenMousedOver=new Bc;this.whenPositionStateChanged=new Bc;this.whenCollided=new Bc;this.destroyed=this.paused=this.recycled=!1; +this.set_name("Unknown");this.ID=b;this.groupID=c;this.typeID=null!=k?k.ID:-1;this.engine=a;this.collidedList=[];this.collisions=new we(16);this.simpleCollisions=new we(16);this.contacts=new we(16);this.regionContacts=new we(16);this.collisions.reuseIterator=!0;this.simpleCollisions.reuseIterator=!0;this.contacts.reuseIterator=!0;this.regionContacts.reuseIterator=!0;this.collisionsCount=this.contactCount=0;this.handlesCollisions=!0;this.behaviors=new yj;this.currAnimationName="";this.animationMap= +new V;this.shapeMap=new V;this.originMap=new V;this.sprite=t;this.type=k;if(null!=t)for(b=t.animations.iterator();b.hasNext();)rj=b.next(),this.addAnim(rj),rj.animID==t.defaultAnimation&&(this.defaultAnim=rj.animName);null==tb.recycledAnimation&&(tb.recycledAnimation=new me(-1,"recyclingDefault",null,null,null,!1,!1,1,1,0,0,[10],1,1,1));this.addAnim(tb.recycledAnimation);if(null!=p&&0==w)p.bullet&&(bc.m_continuousPhysics=!0),p.groupID=c,this.initFromBody(p),c=new Bb,c.setAsBox(1,1),this.body.createFixture2(c, +.1),this.md=new qj,this.md.mass=p.mass,this.md.I=p.aMass,this.md.center.x=0,this.md.center.y=0,this.body.setMassData(this.md),this.bodyScale=new oa(1,1);else{if(null==u||Za.typeof(u)==Fa.TFloat)u=tb.createBox(f,l);null!=p&&(this.continuousCollision=p.bullet);this instanceof kd&&(n=!0,rb=!1);this instanceof Mg&&(rb=!1);null!=u&&u instanceof gg?(this.set_shape(u),this.isTerrain=!0):0==w&&this.initBody(c,n,r,v,rb,u)}this.cacheAnchor=new oa(0,0);this.switchToDefaultAnimation();null!=t?this.setLocation(d, +e):null!=u&&u instanceof gg?(d=new Vb(new Ja(1,1,!0,0)),d.set_x(f),d.set_y(l),this.addChild(d),this.cacheWidth=this.set_width(f),this.cacheHeight=this.set_height(l)):0==w&&this.body.setPosition(new z(h.toPhysicalUnits(d),h.toPhysicalUnits(e)));null!=m?this.customizedBehaviors=!0:null!=k&&(m=k.behaviorValues);-1!=g&&a.moveActorToLayer(this,a.getLayerById(g));h.initBehaviors(this.behaviors,m,this,a,!1)};k["com.stencyl.models.Actor"]=tb;tb.__name__="com.stencyl.models.Actor";tb.resetStatics=function(){tb.lastCollided= +null;tb.manifold=new pj};tb.createBox=function(a,b){var c=new Bb;c.setAsBox(h.toPhysicalUnits(a/2),h.toPhysicalUnits(b/2));return c};tb.scaleShape=function(a,b,c){if(a instanceof Hc)a.m_radius*=c;else if(a instanceof Bb){for(var d=a.m_vertices,e=[],g=0;g<d.length;){var f=d[g];++g;f.subtract(b);f.multiply(c);f.add(b);e.push(f)}a.setAsArray(e)}};tb.__super__=ta;tb.prototype=u(ta.prototype,{engine:null,createTime:null,ID:null,groupID:null,cachedLayer:null,layer:null,typeID:null,type:null,recycled:null, +paused:null,isRegion:null,isTerrainRegion:null,isTerrain:null,destroyed:null,drawActor:null,isHUD:null,alwaysSimulate:null,isCamera:null,killLeaveScreen:null,physicsMode:null,autoScale:null,dead:null,dying:null,fixedRotation:null,ignoreGravity:null,defaultGravity:null,collidable:null,solid:null,resetOrigin:null,realX:null,realY:null,realAngle:null,realScaleX:null,realScaleY:null,lastX:null,lastY:null,lastAngle:null,lastScale:null,colX:null,colY:null,xSpeed:null,ySpeed:null,rSpeed:null,continuousCollision:null, +tweenProps:null,cacheWidth:null,cacheHeight:null,currAnimation:null,currAnimationName:null,animationMap:null,bitmapFilters:null,sprite:null,shapeMap:null,originMap:null,defaultAnim:null,currOrigin:null,currOffset:null,cacheAnchor:null,transformObj:null,transformPoint:null,transformMatrix:null,updateMatrix:null,drawMatrix:null,label:null,attachedImages:null,smoothMove:null,firstMove:null,snapOnSet:null,drawX:null,drawY:null,moveMultiplier:null,moveXDistance:null,moveYDistance:null,minMove:null,maxMove:null, +behaviors:null,customizedBehaviors:null,registry:null,allListeners:null,allEventReferences:null,whenCreated:null,whenUpdated:null,whenDrawing:null,whenKilled:null,whenMousedOver:null,whenPositionStateChanged:null,whenCollided:null,mouseState:null,lastScreenState:null,lastSceneState:null,isOnScreenCache:null,body:null,bodyDef:null,md:null,bodyScale:null,handlesCollisions:null,contacts:null,regionContacts:null,collisions:null,dummy:null,zero:null,destroy:function(){if(!this.destroyed){this.destroyed= +!0;for(var a=this.animationMap.h,b=Object.keys(a),c=b.length,d=0;d<c;)a[b[d++]].set_visible(!1);S.removeAllChildren(this);if(null!=this.body&&0==this.physicsMode){for(a=this.body.getContactList();null!=a;)h.engine.world.m_contactManager.m_contactListener.endContact(a.contact),a=a.next;h.engine.world.destroyBody(this.body)}this.cancelTweens();this.regionContacts=this.contacts=this.sprite=this.body=this.currOrigin=this.currOffset=this.currAnimation=this.animationMap=this.defaultAnim=this.originMap= +this.shapeMap=tb.lastCollided=null;this.collisionsCount=this.contactCount=0;this.registry=this.allEventReferences=this.allListeners=this.whenCollided=this.whenPositionStateChanged=this.whenMousedOver=this.whenKilled=this.whenDrawing=this.whenUpdated=this.whenCreated=this.transformMatrix=this.transformPoint=null;for(a=this.collisions.keys();a.hasNext();){c=a.next();b=this.collisions;var e=b.mH;d=e.mHash[73856093*c&e.mMask];if(-1==d)c=-2147483648;else if(e=e.mData,e[d]==c)c=e[d+1];else{var g=-2147483648; +for(d=e[d+2];-1!=d;){if(e[d]==c){g=e[d+1];break}d=e[d+2]}c=g}for(b=-2147483648==c?null:b.mVals[c];0<b.points.length;)Kd.free(b.points.pop())}this.simpleCollisions=this.collisions=null;null!=this.bodyDef&&(this.bodyDef=this.bodyDef.userData=null);this.behaviors.destroy()}},resetListeners:function(){for(var a=this.allListeners.keys();a.hasNext();){var b=a.next();this.allListeners.remove(b)}for(;0<this.allEventReferences.length;)this.allEventReferences.pop();0<this.whenUpdated.length&&this.whenUpdated.removeAll(); +0<this.whenDrawing.length&&this.whenDrawing.removeAll();0<this.whenKilled.length&&this.whenKilled.removeAll();0<this.whenMousedOver.length&&this.whenMousedOver.removeAll();0<this.whenPositionStateChanged.length&&this.whenPositionStateChanged.removeAll();0<this.whenCollided.length&&this.whenCollided.removeAll()},defaultHitbox:null,defaultMasklist:null,addAnim:function(a){var b=0==this.physicsMode?a.physicsShapes:a.simpleShapes;if(null!=b){var c=[];if(1==this.physicsMode)for(b=b.iterator();b.hasNext();){var d= +b.next();d instanceof bd&&0!=this.physicsMode&&(d=O.__cast(d,bd).clone(),d.assignTo(this));c.push(d)}else if(2!=this.physicsMode)for(b=b.iterator();b.hasNext();)d=b.next(),c.push(d);0!=this.physicsMode?(b=this.shapeMap,d=a.animName,c=new zi(c,this),b.h[d]=c):this.shapeMap.h[a.animName]=c}b=this.animationMap;d=a.animName;c=new Hj(a);b.h[d]=c;b=this.originMap;d=a.animName;c=new z(a.originX,a.originY);b.h[d]=c},reloadAnimationGraphics:function(a){if(-1==a){for(a=this.sprite.animations.iterator();a.hasNext();){var b= +a.next();b=this.animationMap.h[b.animName];b.framesUpdated()}this.updateChildrenPositions()}else a=this.sprite.animations.h[a],b=this.animationMap.h[a.animName],b.framesUpdated(),b==this.currAnimation&&this.updateChildrenPositions()},initScripts:function(){if(2==this.physicsMode)this.handlesCollisions=!1;else if(this.handlesCollisions=!0,this.behaviors.initScripts(),0<this.whenCreated.length)for(this.whenCreated._dispatchIndex=0;this.whenCreated._dispatchIndex<this.whenCreated.length;){try{this.whenCreated.listeners[this.whenCreated._dispatchIndex]()}catch(a){sa.lastError= +a}++this.whenCreated._dispatchIndex}},initFromBody:function(a){a.allowSleep=!1;a.userData=this;this.bodyDef=a;this.body=h.engine.world.createBody(a)},initBody:function(a,b,c,d,e,g){var f=new oi;f.groupID=a;a=this.get_x();f.position.x=h.toPhysicalUnits(a);a=this.get_y();f.position.y=h.toPhysicalUnits(a);f.angle=0;f.fixedRotation=!e;f.allowSleep=!1;f.type=c?ua.b2_staticBody:d?ua.b2_kinematicBody:ua.b2_dynamicBody;if(g instanceof Array)for(f.userData=this,this.body=h.engine.world.createBody(f),b=O.__cast(g, +Array),g=0;g<b.length;)d=b[g],++g,c=new Gf,c.shape=d,c.friction=1,c.density=.1,c.restitution=0,c.isSensor=!1,c.groupID=1,c.userData=this,this.body.createFixture(c);else c=new Gf,c.shape=g,c.friction=1,c.density=.1,c.restitution=0,c.isSensor=b,c.groupID=-1E3,c.userData=this,f.userData=this,this.body=h.engine.world.createBody(f),this.body.createFixture(c);this.bodyDef=f},addAnimation:function(a,b){this.animationMap.h[a]=b},getAnimation:function(){return this.currAnimationName},setAnimation:function(a){this.switchAnimation(a)}, +switchToDefaultAnimation:function(){null!=this.defaultAnim&&(this.switchAnimation(this.defaultAnim,this.defaultShapeChanged()),this.setCurrentFrame(0))},isAnimationPlaying:function(){return!this.currAnimation.isFinished()},getCurrentFrame:function(){return this.currAnimation.getCurrentFrame()},setCurrentFrame:function(a){this.currAnimation.setFrame(a)},getNumFrames:function(){return this.currAnimation.getNumFrames()},defaultShapeChanged:function(){if(0!=this.physicsMode)return!0;var a=this.shapeMap.h[this.defaultAnim]; +if(null==this.getBody()||null==this.getBody().getFixtureList()||null==this.getBody().getFixtureList().getShape()){if(null!=a&&0<a.length)return!0}else{if(null==a||0==a.length||1<a.length)return!0;var b=a[0];if(null==b)return!0;var c=this.getBody().getFixtureList();a=this.getBody().getFixtureList().getShape();var d=b.shape;if(c.groupID==b.groupID&&this.getBody().getFixtureList().isSensor()==b.isSensor&&O.getClass(a)==O.getClass(d))if(O.getClass(a)==Bb){if(a.m_vertexCount!=d.m_vertexCount)return!0; +b=0;for(c=a.m_vertexCount;b<c;){var e=b++;if(a.m_vertices[e].x!=d.m_vertices[e].x||a.m_vertices[e].y!=d.m_vertices[e].y)return!0}}else{if(O.getClass(a)==Hc&&(a.m_radius!=d.m_radius||a.m_p.x!=d.m_p.x||a.m_p.y!=d.m_p.y))return!0}else return!0}return!1},switchAnimation:function(a,b){null==b&&(b=!1);if(a!=this.currAnimationName||b){var c=this.animationMap.h[a];if(null!=c){null!=this.currAnimation&&this.removeChild(this.currAnimation);if(null!=this.body&&0==this.physicsMode&&!b){var d=this.shapeMap.h[this.currAnimationName], +e=this.shapeMap.h[a];if(null==d||null==e)b=!0;else if(d.length!=e.length||1<d.length)b=!0;else{var g=d[0],f=e[0];if(null==g||null==f)b=!0;else if(e=g.shape,d=f.shape,g.isSensor!=f.isSensor)b=!0;else if(g.groupID!=f.groupID)b=!0;else if(O.getClass(e)==O.getClass(d))if(O.getClass(e)==Bb)if(e.m_vertexCount!=d.m_vertexCount)b=!0;else for(g=0,f=e.m_vertexCount;g<f;){var l=g++;if(e.m_vertices[l].x!=d.m_vertices[l].x){b=!0;break}else if(e.m_vertices[l].y!=d.m_vertices[l].y){b=!0;break}}else O.getClass(e)!= +Hc||e.m_radius==d.m_radius&&e.m_p.x==d.m_p.x&&e.m_p.y==d.m_p.y||(b=!0);else b=!0}}this.currAnimationName=a;this.currAnimation=c;this.currAnimation.set_filter(this.bitmapFilters);this.currAnimation.set_visible(this.drawActor);this.addChild(c);c=this.originMap.h[a];e=this.currAnimation.get_width()/h.SCALE/2-c.x;d=this.currAnimation.get_height()/h.SCALE/2-c.y;if(null!=this.body&&b&&0==this.physicsMode){b=[];for(g=this.body.getContactList();null!=g;)g.other.getUserData()instanceof kd&&g.contact.isTouching()&& +b.push(g.other.getUserData()),h.engine.world.m_contactManager.m_contactListener.endContact(g.contact),g=g.next;for(g=this.collisions.keys();g.hasNext();){f=g.next();var t=this.collisions,m=t.mH;l=m.mHash[73856093*f&m.mMask];if(-1==l)l=-2147483648;else if(m=m.mData,m[l]==f)l=m[l+1];else{var k=-2147483648;for(l=m[l+2];-1!=l;){if(m[l]==f){k=m[l+1];break}l=m[l+2]}l=k}for(l=-2147483648==l?null:t.mVals[l];0<l.points.length;)Kd.free(l.points.pop());this.collisions.unset(f)}this.collisions=new we(16);this.simpleCollisions= +new we(16);this.contacts=new we(16);this.regionContacts=new we(16);this.collisions.reuseIterator=!0;this.simpleCollisions.reuseIterator=!0;this.contacts.reuseIterator=!0;this.regionContacts.reuseIterator=!0;for(this.collisionsCount=this.contactCount=0;0<this.body.m_fixtureCount;)this.body.DestroyFixture(this.body.getFixtureList());g=0;for(f=O.__cast(this.shapeMap.h[a],Array);g<f.length;){l=f[g];++g;a=new Gf;1.79769313486231E308>this.bodyDef.friction&&(a.friction=this.bodyDef.friction,a.restitution= +this.bodyDef.bounciness,0<this.bodyDef.mass&&(a.density=.1));a.density=l.density;a.isSensor=l.isSensor;a.groupID=l.groupID;a.shape=l.shape;if(null!=c)if(this.body.origin.x=h.toPhysicalUnits(-c.x),this.body.origin.y=h.toPhysicalUnits(-c.y),l.shape instanceof Bb){m=new Ve;l=l.shape;k=new Bb;k.setAsArray(l.m_vertices,l.m_vertices.length);var p=k.m_vertices,n=k.m_normals;t=m.position;l=h.toPhysicalUnits(e);var r=h.toPhysicalUnits(d);null==r&&(r=0);null==l&&(l=0);t.x=l;t.y=r;m.R.setAngle(0);t=0;for(r= +k.m_vertexCount;t<r;)l=t++,p[l]=m.multiply(p[l]),n[l]=m.R.multiplyV(n[l]);k.setAsArray(p,p.length);k.m_normals=n;a.shape=k}else l.shape instanceof Hc&&(t=l.shape,l=new Hc,l.setRadius(t.getRadius()),m=t.m_p.x,k=h.toPhysicalUnits(e),l.m_p.x=m+k,t=t.m_p.y,m=h.toPhysicalUnits(d),l.m_p.y=t+m,a.shape=l);this.body.createFixture(a).SetUserData(this)}if(null!=this.body.getFixtureList())for(this.bodyScale.x=1,this.bodyScale.y=1,g=0;g<b.length;)e=b[g],++g,d=this.body.getFixtureList().m_aabb,e.getBody().getFixtureList().m_aabb.testOverlap(d)&& +e.addActor(this);null!=this.md&&this.body.setMassData(this.md)}else null!=this.shapeMap.h[a]&&1==this.physicsMode&&(this.set_shape(this.shapeMap.h[a]),this.HITBOX=this._mask);this.cacheWidth=this.currAnimation.get_width()/h.SCALE;this.cacheHeight=this.currAnimation.get_height()/h.SCALE;null!=this.body&&(this.body.size.x=h.toPhysicalUnits(this.cacheWidth),this.body.size.y=h.toPhysicalUnits(this.cacheHeight));0==this.physicsMode&&(this.realX=this.getX(!1),this.realY=this.getY(!1),this.updateBodyScale()); +null!=c&&this.setOriginPoint(c.x|0,c.y|0);this.updateChildrenPositions();this.updateMatrix=!0;t=this.currAnimation;t.timer=0;t.frameIndex=0;t.finished=!1;null!=t.filter?(t.filteredFrames[t.frameIndex]||(t.frames[t.frameIndex]=t.applyFilters(t.frames[t.frameIndex],t.model.frames[t.frameIndex],t.filter),t.filteredFrames[t.frameIndex]=!0),t.set_bitmapData(t.frames[t.frameIndex])):t.set_bitmapData(t.model.frames[t.frameIndex]);t.smoothing=ja.antialias}}},updateChildrenPositions:function(){var a=null!= +this.currAnimation?new oa(-this.currAnimation.get_x(),-this.currAnimation.get_y()):new oa(0,0);if(!a.equals(this.cacheAnchor)){this.cacheAnchor.copyFrom(a);a=0;for(var b=this.attachedImages;a<b.length;){var c=b[a];++a;c.updatePosition()}null!=this.label&&this.label.updatePosition()}},removeAttachedImages:function(){for(var a=0,b=this.attachedImages;a<b.length;){var c=b[a];++a;c.cacheParentAnchor=S.zero;this.removeChild(c)}this.attachedImages=[]},update:function(a){this.innerUpdate(a,!0)},innerUpdate:function(a, +b){if(!(this.paused||this.isCamera||this.dying||this.dead||this.destroyed||b&&(this.isHUD||this.alwaysSimulate))){if(0<this.whenMousedOver.length)if(this.isMouseOver()){if(0>=this.mouseState){if(this.mouseState=1,0<this.whenMousedOver.length)for(this.whenMousedOver._dispatchIndex=0;this.whenMousedOver._dispatchIndex<this.whenMousedOver.length;){try{this.whenMousedOver.listeners[this.whenMousedOver._dispatchIndex](this.mouseState)}catch(oe){sa.lastError=oe}++this.whenMousedOver._dispatchIndex}}else this.mouseState= +2;if(K.mousePressed){if(this.mouseState=3,0<this.whenMousedOver.length)for(this.whenMousedOver._dispatchIndex=0;this.whenMousedOver._dispatchIndex<this.whenMousedOver.length;){try{this.whenMousedOver.listeners[this.whenMousedOver._dispatchIndex](this.mouseState)}catch(oe){sa.lastError=oe}++this.whenMousedOver._dispatchIndex}}else if(K.mouseDown&&(this.mouseState=4,0<this.whenMousedOver.length))for(this.whenMousedOver._dispatchIndex=0;this.whenMousedOver._dispatchIndex<this.whenMousedOver.length;){try{this.whenMousedOver.listeners[this.whenMousedOver._dispatchIndex](this.mouseState)}catch(oe){sa.lastError= +oe}++this.whenMousedOver._dispatchIndex}if(K.mouseReleased&&(this.mouseState=5,0<this.whenMousedOver.length))for(this.whenMousedOver._dispatchIndex=0;this.whenMousedOver._dispatchIndex<this.whenMousedOver.length;){try{this.whenMousedOver.listeners[this.whenMousedOver._dispatchIndex](this.mouseState)}catch(oe){sa.lastError=oe}++this.whenMousedOver._dispatchIndex}}else if(0<this.mouseState){if(this.mouseState=-1,0<this.whenMousedOver.length)for(this.whenMousedOver._dispatchIndex=0;this.whenMousedOver._dispatchIndex< +this.whenMousedOver.length;){try{this.whenMousedOver.listeners[this.whenMousedOver._dispatchIndex](this.mouseState)}catch(oe){sa.lastError=oe}++this.whenMousedOver._dispatchIndex}}else-1==this.mouseState&&(this.mouseState=0);b=this.type.ID;var c=1E6+this.groupID,d=this.engine.whenCollidedEvents,e=this.engine.whenTypeGroupPositionStateChangedEvents;if(0==this.physicsMode&&(0<this.whenCollided.length||null!=d.h[b]||null!=d.h[c])){if(0<this.contactCount)for(var g=0,f,l=this.contacts.iterator();l.hasNext();){f= +l.next();var t=f.key;var m=this.collisions.mH;var h=m.mHash[73856093*t&m.mMask];if(-1==h)h=!1;else if(m=m.mData,m[h]==t)h=!0;else{var p=!1;for(h=m[h+2];-1!=h;){if(m[h]==t){p=!0;break}h=m[h+2]}h=p}if(h){h=this.collisions;p=h.mH;m=p.mHash[73856093*t&p.mMask];if(-1==m)t=-2147483648;else if(p=p.mData,p[m]==t)t=p[m+1];else{var k=-2147483648;for(m=p[m+2];-1!=m;){if(p[m]==t){k=p[m+1];break}m=p[m+2]}t=k}t=-2147483648==t?null:h.mVals[t];f.getWorldManifold(tb.manifold);h=0;for(m=tb.manifold.m_points;h<m.length;)p= +m[h],++h,0!=p.x&&0!=p.y&&(f=t.points[g],null==f?t.points[g]=Kd.get(p.x,p.y,tb.manifold.m_normal.x,tb.manifold.m_normal.y):(f=t.points[g],f.x=p.x,f.y=p.y,f.normalX=tb.manifold.m_normal.x,f.normalY=tb.manifold.m_normal.y),++g);for(;t.points.length>g;)Kd.free(t.points.pop());g=0}else{var n=f.getFixtureA().getUserData(),r=f.getFixtureB().getUserData();n==this?(h=r,m=f.getFixtureB(),p=f.getFixtureA()):(h=n,m=f.getFixtureA(),p=f.getFixtureB());k=new qc;k.otherActor=h;k.otherShape=m;k.thisActor=this;k.thisShape= +p;k.actorA=n;k.actorB=r;f.getWorldManifold(tb.manifold);this.collisions.set(t,k);this.collisionsCount++;t=this.getBody();n=h.getBody();r=f.getFixtureA().getBody();for(var q=f.getFixtureB().getBody(),v=0,u=tb.manifold.m_points;v<u.length;)(f=u[v],++v,0==f.x||0==f.y||p.isSensor())?p.isSensor()&&(null!=h&&(k.thisCollidedWithActor=k.thisCollidedWithActor||1!=h.groupID&&-2!=h.groupID&&!h.isTerrainRegion,k.thisCollidedWithTerrain=k.thisCollidedWithTerrain||h.isTerrainRegion,k.thisCollidedWithTile=k.thisCollidedWithTile|| +1==h.groupID),k.otherCollidedWithActor=k.otherCollidedWithActor||1!=this.groupID&&-2!=this.groupID&&!this.isTerrainRegion,k.otherCollidedWithTerrain=k.otherCollidedWithTerrain||this.isTerrainRegion,k.otherCollidedWithTile=k.otherCollidedWithTile||1==this.groupID,k.thisCollidedWithSensor=k.thisCollidedWithSensor||m.isSensor(),k.otherCollidedWithSensor=k.otherCollidedWithSensor||p.isSensor()):(f=Kd.get(f.x,f.y,tb.manifold.m_normal.x,tb.manifold.m_normal.y),k.points.push(f),r==t?(k.thisFromBottom=k.thisFromBottom|| +0<f.normalY,k.thisFromTop=k.thisFromTop||0>f.normalY,k.thisFromLeft=k.thisFromLeft||0>f.normalX,k.thisFromRight=k.thisFromRight||0<f.normalX):q==t&&(k.thisFromBottom=k.thisFromBottom||0>f.normalY,k.thisFromTop=k.thisFromTop||0<f.normalY,k.thisFromLeft=k.thisFromLeft||0<f.normalX,k.thisFromRight=k.thisFromRight||0>f.normalX),r==n?(k.otherFromBottom=k.otherFromBottom||0<f.normalY,k.otherFromTop=k.otherFromTop||0>f.normalY,k.otherFromLeft=k.otherFromLeft||0>f.normalX,k.otherFromRight=k.otherFromRight|| +0<f.normalX):q==n&&(k.otherFromBottom=k.otherFromBottom||0>f.normalY,k.otherFromTop=k.otherFromTop||0<f.normalY,k.otherFromLeft=k.otherFromLeft||0<f.normalX,k.otherFromRight=k.otherFromRight||0>f.normalX),null!=h&&(k.thisCollidedWithActor=k.thisCollidedWithActor||1!=h.groupID&&-2!=h.groupID&&!h.isTerrainRegion,k.thisCollidedWithTerrain=k.thisCollidedWithTerrain||h.isTerrainRegion,k.thisCollidedWithTile=k.thisCollidedWithTile||1==h.groupID),k.otherCollidedWithActor=k.otherCollidedWithActor||1!=this.groupID&& +-2!=this.groupID&&!this.isTerrainRegion,k.otherCollidedWithTerrain=k.otherCollidedWithTerrain||this.isTerrainRegion,k.otherCollidedWithTile=k.otherCollidedWithTile||1==this.groupID,k.thisCollidedWithSensor=k.thisCollidedWithSensor||m.isSensor(),k.otherCollidedWithSensor=k.otherCollidedWithSensor||p.isSensor())}}if(0<this.collisionsCount)for(g=this.collisions.iterator();g.hasNext();)if(l=g.next(),null!=l&&null!=l.thisActor&&null!=l.otherActor&&l.thisActor.handlesCollisions&&l.otherActor.handlesCollisions){tb.lastCollided= +l.otherActor;if(0<this.whenCollided.length)for(this.whenCollided._dispatchIndex=0;this.whenCollided._dispatchIndex<this.whenCollided.length;){try{this.whenCollided.listeners[this.whenCollided._dispatchIndex](l)}catch(oe){sa.lastError=oe}++this.whenCollided._dispatchIndex}this.engine.handleCollision(this,l)}}this.internalUpdate(a,!0);1==this.physicsMode&&((0<this.whenCollided.length||null!=d.h[b]||null!=d.h[c])&&this.handleCollisionsSimple(),this.disposeRemovedCollisionInfo());if(2!=this.physicsMode&& +0<this.whenUpdated.length)for(this.whenUpdated._dispatchIndex=0;this.whenUpdated._dispatchIndex<this.whenUpdated.length;){try{this.whenUpdated.listeners[this.whenUpdated._dispatchIndex](a)}catch(oe){sa.lastError=oe}++this.whenUpdated._dispatchIndex}(0<this.whenPositionStateChanged.length||null!=e.h[b]||null!=e.h[c])&&this.checkScreenState();null!=this.label&&this.label.setAlpha(this.get_alpha())}},internalUpdate:function(a,b){if(!this.paused){if(0!=this.physicsMode){1!=this.physicsMode||this.ignoreGravity|| +this.isHUD||(this.xSpeed+=a*this.engine.gravityX*.001,this.ySpeed+=a*this.engine.gravityY*.001);if(0!=this.xSpeed||0!=this.ySpeed)this.resetReal(this.realX,this.realY),this.moveActorBy(10/h.STEP_SIZE*this.xSpeed*a*.01,10/h.STEP_SIZE*this.ySpeed*a*.01,!1);0!=this.rSpeed&&(this.realAngle+=a*this.rSpeed*.001);this.fixedRotation&&(this.rSpeed=this.realAngle=0)}else{var c=this.body.getPosition();this.realX=c.x*h.physicsScale;this.realY=c.y*h.physicsScale;this.resetReal(this.realX,this.realY);this.realAngle= +57.29577951308402*this.body.getAngle()}if(this.lastX!=this.realX||this.lastY!=this.realY||this.lastAngle!=this.realAngle||this.lastScale.x!=this.realScaleX||this.lastScale.y!=this.realScaleY)this.updateMatrix=!0;this.lastX=this.realX;this.lastY=this.realY;this.lastAngle=this.realAngle;this.lastScale.x=this.realScaleX;this.lastScale.y=this.realScaleY;b&&null!=this.currAnimation&&this.currAnimation.update(a)}},updateDrawingMatrix:function(a){null==a&&(a=!1);if(!this.paused||a)this.smoothMove?(this.firstMove|| +(this.drawX=this.realX,this.drawY=this.realY,this.firstMove=!0),this.moveXDistance=this.realX-this.drawX,this.moveYDistance=this.realY-this.drawY,this.drawX=this.moveXDistance>this.minMove?this.moveXDistance*this.moveMultiplier>this.minMove?this.moveXDistance>this.maxMove?this.realX:this.drawX+this.moveXDistance*this.moveMultiplier:this.drawX+this.minMove:this.moveXDistance<-1*this.minMove?this.moveXDistance*this.moveMultiplier<-1*this.minMove?this.moveXDistance<-1*this.maxMove?this.realX:this.drawX+ +this.moveXDistance*this.moveMultiplier:this.drawX-this.minMove:this.realX,this.drawY=this.moveYDistance>this.minMove?this.moveYDistance*this.moveMultiplier>this.minMove?this.moveYDistance>this.maxMove?this.realY:this.drawY+this.moveYDistance*this.moveMultiplier:this.drawY+this.minMove:this.moveYDistance<-1*this.minMove?this.moveYDistance*this.moveMultiplier<-1*this.minMove?this.moveYDistance<-1*this.maxMove?this.realY:this.drawY+this.moveYDistance*this.moveMultiplier:this.drawY-this.minMove:this.realY): +0!=this.physicsMode?(this.drawX=this.realX,this.drawY=this.realY):(a=this.body.getPosition(),this.drawX=a.x*h.physicsScale,this.drawY=a.y*h.physicsScale),this.transformPoint.x=(this.currOrigin.x-this.cacheWidth/2)*h.SCALE,this.transformPoint.y=(this.currOrigin.y-this.cacheHeight/2)*h.SCALE,this.transformMatrix.identity(),this.transformMatrix.translate(-this.transformPoint.x,-this.transformPoint.y),this.transformMatrix.scale(this.realScaleX,this.realScaleY),0!=this.realAngle&&this.transformMatrix.rotate(.01745329251994278* +this.realAngle),ja.pixelsnap?this.transformMatrix.translate(Math.round(this.drawX)*h.SCALE,Math.round(this.drawY)*h.SCALE):this.transformMatrix.translate(this.drawX*h.SCALE,this.drawY*h.SCALE),null==this.transformObj&&(this.transformObj=this.get_transform()),this.transformObj.set_matrix(this.transformMatrix)},updateTweenAlpha:function(){this.set_alpha(this.tweenProps.alpha.value)},updateTweenScaleXY:function(){this.realScaleX=this.tweenProps.realScaleXY.value1;this.realScaleY=this.tweenProps.realScaleXY.value2; +this.updateBodyScale()},updateTweenAngle:function(){this.setAngle(this.tweenProps.angle.value,!1)},updateTweenXY:function(){0==this.physicsMode?this.setXY(this.tweenProps.xy.value1,this.tweenProps.xy.value2):(this.moveActorBy(this.tweenProps.xy.value1-this.getX(!1),this.tweenProps.xy.value2-this.getY(!1),!1),this.updateMatrix=!0);this.tweenProps.xy.finished&&null!=this.currOffset&&this.resetReal(this.realX,this.realY)},updateBodyScale:function(){this.autoScale&&0==this.physicsMode&&null!=this.body&& +this.bodyDef.type!=ua.b2_staticBody&&0!=this.realScaleX&&0!=this.realScaleY&&this.scaleBody(this.realScaleX,this.realScaleY)},scaleBody:function(a,b){for(var c=[],d=this.body.getFixtureList();null!=d;)c.push(d),d=d.getNext();for(d=0;d<c.length;){var e=c[d];++d;var g=e.getShape();e=this.body.getLocalCenter();if(g instanceof Hc){var f=g,l=1/this.bodyScale.x*a,t=1/this.bodyScale.y*b,m=f.m_p;m.subtract(e);m.x*=l;m.y*=t;f.m_p=e.copy();f.m_p.add(m);g.m_radius*=Math.abs(l)}else if(g instanceof Bb){f=g.m_vertices; +l=[];t=0<this.bodyScale.x&&0>a||0>this.bodyScale.x&&0<a;m=0<this.bodyScale.y&&0>b||0>this.bodyScale.y&&0<b;for(var k=0;k<f.length;){var p=f[k];++k;p.subtract(e);p.x=1/Math.abs(this.bodyScale.x)*p.x*Math.abs(a);p.y=1/Math.abs(this.bodyScale.y)*p.y*Math.abs(b);t&&(p.x=-p.x);m&&(p.y=-p.y);var n=e.copy();n.add(p);l.push(n)}t&&m||!t&&!m||l.reverse();g.setAsArray(l,l.length)}}this.bodyScale.x=a;this.bodyScale.y=b;this.body.size.x=h.toPhysicalUnits(this.cacheWidth*a);this.body.size.y=h.toPhysicalUnits(this.cacheHeight* +b)},checkScreenState:function(){var a=this.isOnScreen(),b=a||this.isInScene(),c=!this.lastScreenState&&a,d=!this.lastSceneState&&b,e=this.lastScreenState&&!a,g=this.lastSceneState&&!b;if(0<this.whenPositionStateChanged.length)for(this.whenPositionStateChanged._dispatchIndex=0;this.whenPositionStateChanged._dispatchIndex<this.whenPositionStateChanged.length;){try{this.whenPositionStateChanged.listeners[this.whenPositionStateChanged._dispatchIndex](c,e,d,g)}catch(t){sa.lastError=t}++this.whenPositionStateChanged._dispatchIndex}var f= +this.engine.whenTypeGroupPositionStateChangedEvents.h[this.groupID+1E6],l=this.engine.whenTypeGroupPositionStateChangedEvents.h[this.typeID];if(null!=f&&0<f.length)for(f._dispatchIndex=0;f._dispatchIndex<f.length;){try{f.listeners[f._dispatchIndex](this,c,e,d,g)}catch(t){sa.lastError=t}++f._dispatchIndex}if(null!=l&&0<l.length)for(l._dispatchIndex=0;l._dispatchIndex<l.length;){try{l.listeners[l._dispatchIndex](this,c,e,d,g)}catch(t){sa.lastError=t}++l._dispatchIndex}this.lastScreenState=a;this.lastSceneState= +b},contactCount:null,collisionsCount:null,handleCollisions:function(){if(0<this.contactCount)for(var a=0,b,c=this.contacts.iterator();c.hasNext();){b=c.next();var d=b.key;var e=this.collisions.mH;var g=e.mHash[73856093*d&e.mMask];if(-1==g)g=!1;else if(e=e.mData,e[g]==d)g=!0;else{var f=!1;for(g=e[g+2];-1!=g;){if(e[g]==d){f=!0;break}g=e[g+2]}g=f}if(g){g=this.collisions;f=g.mH;e=f.mHash[73856093*d&f.mMask];if(-1==e)d=-2147483648;else if(f=f.mData,f[e]==d)d=f[e+1];else{var l=-2147483648;for(e=f[e+2];-1!= +e;){if(f[e]==d){l=f[e+1];break}e=f[e+2]}d=l}d=-2147483648==d?null:g.mVals[d];b.getWorldManifold(tb.manifold);g=0;for(e=tb.manifold.m_points;g<e.length;)f=e[g],++g,0!=f.x&&0!=f.y&&(b=d.points[a],null==b?d.points[a]=Kd.get(f.x,f.y,tb.manifold.m_normal.x,tb.manifold.m_normal.y):(b=d.points[a],b.x=f.x,b.y=f.y,b.normalX=tb.manifold.m_normal.x,b.normalY=tb.manifold.m_normal.y),++a);for(;d.points.length>a;)Kd.free(d.points.pop());a=0}else{var t=b.getFixtureA().getUserData(),m=b.getFixtureB().getUserData(); +t==this?(g=m,e=b.getFixtureB(),f=b.getFixtureA()):(g=t,e=b.getFixtureA(),f=b.getFixtureB());l=new qc;l.otherActor=g;l.otherShape=e;l.thisActor=this;l.thisShape=f;l.actorA=t;l.actorB=m;b.getWorldManifold(tb.manifold);this.collisions.set(d,l);this.collisionsCount++;d=this.getBody();t=g.getBody();m=b.getFixtureA().getBody();for(var h=b.getFixtureB().getBody(),p=0,k=tb.manifold.m_points;p<k.length;)(b=k[p],++p,0==b.x||0==b.y||f.isSensor())?f.isSensor()&&(null!=g&&(l.thisCollidedWithActor=l.thisCollidedWithActor|| +1!=g.groupID&&-2!=g.groupID&&!g.isTerrainRegion,l.thisCollidedWithTerrain=l.thisCollidedWithTerrain||g.isTerrainRegion,l.thisCollidedWithTile=l.thisCollidedWithTile||1==g.groupID),l.otherCollidedWithActor=l.otherCollidedWithActor||1!=this.groupID&&-2!=this.groupID&&!this.isTerrainRegion,l.otherCollidedWithTerrain=l.otherCollidedWithTerrain||this.isTerrainRegion,l.otherCollidedWithTile=l.otherCollidedWithTile||1==this.groupID,l.thisCollidedWithSensor=l.thisCollidedWithSensor||e.isSensor(),l.otherCollidedWithSensor= +l.otherCollidedWithSensor||f.isSensor()):(b=Kd.get(b.x,b.y,tb.manifold.m_normal.x,tb.manifold.m_normal.y),l.points.push(b),m==d?(l.thisFromBottom=l.thisFromBottom||0<b.normalY,l.thisFromTop=l.thisFromTop||0>b.normalY,l.thisFromLeft=l.thisFromLeft||0>b.normalX,l.thisFromRight=l.thisFromRight||0<b.normalX):h==d&&(l.thisFromBottom=l.thisFromBottom||0>b.normalY,l.thisFromTop=l.thisFromTop||0<b.normalY,l.thisFromLeft=l.thisFromLeft||0<b.normalX,l.thisFromRight=l.thisFromRight||0>b.normalX),m==t?(l.otherFromBottom= +l.otherFromBottom||0<b.normalY,l.otherFromTop=l.otherFromTop||0>b.normalY,l.otherFromLeft=l.otherFromLeft||0>b.normalX,l.otherFromRight=l.otherFromRight||0<b.normalX):h==t&&(l.otherFromBottom=l.otherFromBottom||0>b.normalY,l.otherFromTop=l.otherFromTop||0<b.normalY,l.otherFromLeft=l.otherFromLeft||0<b.normalX,l.otherFromRight=l.otherFromRight||0>b.normalX),null!=g&&(l.thisCollidedWithActor=l.thisCollidedWithActor||1!=g.groupID&&-2!=g.groupID&&!g.isTerrainRegion,l.thisCollidedWithTerrain=l.thisCollidedWithTerrain|| +g.isTerrainRegion,l.thisCollidedWithTile=l.thisCollidedWithTile||1==g.groupID),l.otherCollidedWithActor=l.otherCollidedWithActor||1!=this.groupID&&-2!=this.groupID&&!this.isTerrainRegion,l.otherCollidedWithTerrain=l.otherCollidedWithTerrain||this.isTerrainRegion,l.otherCollidedWithTile=l.otherCollidedWithTile||1==this.groupID,l.thisCollidedWithSensor=l.thisCollidedWithSensor||e.isSensor(),l.otherCollidedWithSensor=l.otherCollidedWithSensor||f.isSensor())}}if(0<this.collisionsCount)for(a=this.collisions.iterator();a.hasNext();)if(c= +a.next(),null!=c&&null!=c.thisActor&&null!=c.otherActor&&c.thisActor.handlesCollisions&&c.otherActor.handlesCollisions){tb.lastCollided=c.otherActor;if(0<this.whenCollided.length)for(this.whenCollided._dispatchIndex=0;this.whenCollided._dispatchIndex<this.whenCollided.length;){try{this.whenCollided.listeners[this.whenCollided._dispatchIndex](c)}catch(Gh){sa.lastError=Gh}++this.whenCollided._dispatchIndex}this.engine.handleCollision(this,c)}},addContact:function(a){null!=this.contacts&&(this.contacts.set(a.key, +a),this.contactCount++)},removeContact:function(a){if(null!=this.collisions){var b=this.collisions,c=a.key,d=b.mH,e=d.mHash[73856093*c&d.mMask];if(-1==e)c=-2147483648;else if(d=d.mData,d[e]==c)c=d[e+1];else{var g=-2147483648;for(e=d[e+2];-1!=e;){if(d[e]==c){g=d[e+1];break}e=d[e+2]}c=g}d=-2147483648==c?null:b.mVals[c];if(null!=d)for(this.collisions.unset(a.key),this.collisionsCount--;0<d.points.length;)Kd.free(d.points.pop())}null!=this.contacts&&this.contacts.unset(a.key)&&this.contactCount--},addRegionContact:function(a){null!= +this.regionContacts&&this.regionContacts.set(a.key,a)},removeRegionContact:function(a){null!=this.regionContacts&&this.regionContacts.unset(a.key)},getID:function(){return this.ID},getName:function(){return this.get_name()},getGroupID:function(){return 0!=this.physicsMode?this.groupID:this.body.groupID},getLayerID:function(){return this.layer.ID},getLayer:function(){return this.layer},getLayerName:function(){return this.layer.layerName},getLayerOrder:function(){return this.layer.order},getType:function(){return this.type}, +isPausable:function(){return this.getType().pausable},isPaused:function(){return this.paused},pause:function(){if(this.isPausable()){this.tweenProps.pause();for(var a=0,b=this.behaviors.behaviors;a<b.length;){var c=b[a];++a;null!=c.script&&c.script.pauseTweens()}this.paused=!0;0==this.physicsMode&&this.body.setPaused(!0)}},unpause:function(){if(this.isPausable()){this.tweenProps.unpause();for(var a=0,b=this.behaviors.behaviors;a<b.length;){var c=b[a];++a;null!=c.script&&c.script.unpauseTweens()}this.paused= +!1;0==this.physicsMode&&this.body.setPaused(!1)}},getGroup:function(){var a=this.engine.groups,b=this.getGroupID();return a.h[b]},getIsRegion:function(){return this.isRegion},getIsTerrainRegion:function(){return this.isTerrainRegion},moveToLayer:function(a){!this.isHUD&&a instanceof Ac&&this.engine.moveActorToLayer(this,a)},bringToFront:function(){this.isHUD||(this.engine.bringToFront(this),this.moveToTop())},bringForward:function(){this.isHUD||this.engine.bringForward(this)},sendToBack:function(){this.isHUD|| +(this.engine.sendToBack(this),this.moveToBottom())},sendBackward:function(){this.isHUD||this.engine.sendBackward(this)},moveToBottom:function(){this.parent.setChildIndex(this,0)},moveToTop:function(){this.parent.setChildIndex(this,this.parent.get_numChildren()-1)},moveDown:function(){var a=this.parent.getChildIndex(this);0<a&&this.parent.setChildIndex(this,a-1)},moveUp:function(){var a=this.parent.getChildIndex(this),b=this.parent.get_numChildren()-1;a<b&&this.parent.setChildIndex(this,a+1)},getZIndex:function(){return this.parent.getChildIndex(this)}, +setZIndex:function(a){var b=this.parent.get_numChildren()-1;a>b&&(a=b);0>a&&(a=0);this.parent.setChildIndex(this,a)},enableSmoothMotion:function(){this.smoothMove=!0},getX:function(a){null==a&&(a=!0);var b=-1;h.NO_PHYSICS||(this.isRegion||this.isTerrainRegion?b=h.toPixelUnits(this.body.getPosition().x)-this.cacheWidth/2:0==this.physicsMode&&(b=this.body.getPosition().x*h.physicsScale-Math.floor(this.cacheWidth/2)-this.currOffset.x));if(h.NO_PHYSICS||0!=this.physicsMode)b=this.realX-Math.floor(this.cacheWidth/ +2)-this.currOffset.x;return a?Math.round(b):b},getY:function(a){null==a&&(a=!0);var b=-1;h.NO_PHYSICS||(this.isRegion||this.isTerrainRegion?b=h.toPixelUnits(this.body.getPosition().y)-this.cacheHeight/2:0==this.physicsMode&&(b=this.body.getPosition().y*h.physicsScale-Math.floor(this.cacheHeight/2)-this.currOffset.y));if(h.NO_PHYSICS||0!=this.physicsMode)b=this.realY-Math.floor(this.cacheHeight/2)-this.currOffset.y;return a?Math.round(b):b},getXCenter:function(){return 0==this.physicsMode?Math.round(h.toPixelUnits(this.body.getWorldCenter().x)- +this.currOffset.x):this.realX-this.currOffset.x},getYCenter:function(){return 0==this.physicsMode?Math.round(h.toPixelUnits(this.body.getWorldCenter().y)-this.currOffset.y):this.realY-this.currOffset.y},getScreenX:function(){return this.isHUD?this.getX(!0):this.getX(!0)-h.cameraX/h.SCALE},getScreenY:function(){return this.isHUD?this.getY(!0):this.getY(!0)-h.cameraY/h.SCALE},setX:function(a,b,c){null==c&&(c=!1);null==b&&(b=!1);1==this.physicsMode?(b=c||!this.continuousCollision,null==b&&(b=!0),this.moveActorBy(a+ +Math.floor(this.cacheWidth/2)+this.currOffset.x-this.realX,this.realY-this.realY,b,!1)):2==this.physicsMode?this.resetReal(a+Math.floor(this.cacheWidth/2)+this.currOffset.x,this.realY):(this.dummy.x=this.isRegion||this.isTerrainRegion?h.toPhysicalUnits(a):h.toPhysicalUnits(a+Math.floor(this.cacheWidth/2)+this.currOffset.x),this.dummy.y=this.body.getPosition().y,this.body.setPosition(this.dummy),b&&this.body.setLinearVelocity(this.zero));this.snapOnSet&&(this.drawX=this.realX,this.drawY=this.realY); +this.updateMatrix=!0},setY:function(a,b,c){null==c&&(c=!1);null==b&&(b=!1);1==this.physicsMode?(b=c||!this.continuousCollision,null==b&&(b=!0),this.moveActorBy(this.realX-this.realX,a+Math.floor(this.cacheHeight/2)+this.currOffset.y-this.realY,b,!1)):2==this.physicsMode?this.resetReal(this.realX,a+Math.floor(this.cacheHeight/2)+this.currOffset.y):(this.dummy.y=this.isRegion||this.isTerrainRegion?h.toPhysicalUnits(a):h.toPhysicalUnits(a+Math.floor(this.cacheHeight/2)+this.currOffset.y),this.dummy.x= +this.body.getPosition().x,this.body.setPosition(this.dummy),b&&this.body.setLinearVelocity(this.zero));this.snapOnSet&&(this.drawX=this.realX,this.drawY=this.realY);this.updateMatrix=!0},setXY:function(a,b,c,d){null==d&&(d=!1);null==c&&(c=!1);1==this.physicsMode?(c=d||!this.continuousCollision,null==c&&(c=!0),this.moveActorBy(a+Math.floor(this.cacheWidth/2)+this.currOffset.x-this.realX,b+Math.floor(this.cacheHeight/2)+this.currOffset.y-this.realY,c,!1),0==this.colX&&0==this.colY&&this.resetReal(this.realX, +this.realY)):2==this.physicsMode?this.resetReal(a+Math.floor(this.cacheWidth/2)+this.currOffset.x,b+Math.floor(this.cacheHeight/2)+this.currOffset.y):(this.isRegion||this.isTerrainRegion?(this.dummy.x=h.toPhysicalUnits(a),this.dummy.y=h.toPhysicalUnits(b)):(this.dummy.x=h.toPhysicalUnits(a+Math.floor(this.cacheWidth/2)+this.currOffset.x),this.dummy.y=h.toPhysicalUnits(b+Math.floor(this.cacheHeight/2)+this.currOffset.y)),this.body.setPosition(this.dummy),c&&this.body.setLinearVelocity(this.zero)); +this.snapOnSet&&(this.drawX=this.realX,this.drawY=this.realY);this.updateMatrix=!0},setXCenter:function(a){this.setX(a-this.getWidth()/2)},setYCenter:function(a){this.setY(a-this.getHeight()/2)},setScreenX:function(a){this.isHUD?this.setX(a):this.setX(a+h.cameraX/h.SCALE)},setScreenY:function(a){this.isHUD?this.setY(a):this.setY(a+h.cameraY/h.SCALE)},follow:function(a){if(null!=a)if(0!=this.physicsMode){var b=a.getXCenter();a=a.getYCenter();this.moveActorBy(b-this.realX,a-this.realY,!0,!1)}else this.body.setPosition(a.body.getWorldCenter())}, +followWithOffset:function(a,b,c){0!=this.physicsMode?(b=a.getXCenter()+b,c=a.getYCenter()+c,this.moveActorBy(b-this.realX,c-this.realY,!0,!1)):(a=a.body.getWorldCenter(),a.x+=h.toPhysicalUnits(b),a.y+=h.toPhysicalUnits(c),this.body.setPosition(a))},setOriginPoint:function(a,b){var c=0==this.physicsMode?this.body.getPosition():new z(h.toPhysicalUnits(this.realX),h.toPhysicalUnits(this.realY));var d=new z(this.currOffset.x,this.currOffset.y),e=this.getAngle(),g=a-this.cacheWidth/2|0,f=b-this.cacheHeight/ +2|0;if(null!=this.currOrigin&&((this.currOffset.x|0)!=g||(this.currOffset.y|0)!=f)&&0!=(57.29577951308402*e|0)){var l=e+Math.atan2(-this.currOffset.y,-this.currOffset.x);e+=Math.atan2(-f,-g);var t=Math.sqrt(Math.pow(this.currOffset.x,2)+Math.pow(this.currOffset.y,2)),m=Math.sqrt(Math.pow(g,2)+Math.pow(f,2)),k=Math.round(this.currOrigin.y+Math.sin(l)*t),p=Math.round(b+Math.sin(e)*m);c.x+=h.toPhysicalUnits(Math.round(this.currOrigin.x+Math.cos(l)*t)-Math.round(a+Math.cos(e)*m));c.y+=h.toPhysicalUnits(k- +p)}this.currOrigin.x=a;this.currOrigin.y=b;this.currOffset.x=g;this.currOffset.y=f;d.x=this.currOffset.x-d.x;d.y=this.currOffset.y-d.y;c.x+=h.toPhysicalUnits(d.x);c.y+=h.toPhysicalUnits(d.y);0==this.physicsMode?this.body.setPosition(c):(this.realX=h.toPixelUnits(c.x),this.realY=h.toPixelUnits(c.y));this.resetOrigin=!0},getXVelocity:function(){return 0!=this.physicsMode?this.xSpeed:this.body.getLinearVelocity().x},getYVelocity:function(){return 0!=this.physicsMode?this.ySpeed:this.body.getLinearVelocity().y}, +setXVelocity:function(a){if(0!=this.physicsMode)this.xSpeed=a;else{var b=this.body.getLinearVelocity();b.x=a;this.body.setLinearVelocity(b);this.body.setAwake(!0)}},setYVelocity:function(a){if(0!=this.physicsMode)this.ySpeed=a;else{var b=this.body.getLinearVelocity();b.y=a;this.body.setLinearVelocity(b);this.body.setAwake(!0)}},setVelocity:function(a,b){this.setXVelocity(b*Math.cos(.01745329251994278*a));this.setYVelocity(b*Math.sin(.01745329251994278*a))},accelerateX:function(a){this.setXVelocity(this.getXVelocity()+ +a)},accelerateY:function(a){this.setYVelocity(this.getYVelocity()+a)},accelerate:function(a,b){this.setXVelocity(this.getXVelocity()+b*Math.cos(.01745329251994278*a));this.setYVelocity(this.getYVelocity()+b*Math.sin(.01745329251994278*a))},getAngle:function(){return 0!=this.physicsMode?.01745329251994278*this.realAngle:this.body.getAngle()},getAngleInDegrees:function(){return 0!=this.physicsMode?this.realAngle:57.29577951308402*this.body.getAngle()},setAngle:function(a,b){null==b&&(b=!0);b?0!=this.physicsMode? +this.realAngle=57.29577951308402*a:this.body.setAngle(a):0!=this.physicsMode?this.realAngle=a:this.body.setAngle(.01745329251994278*a);this.updateMatrix=!0},rotate:function(a,b){null==b&&(b=!0);b?0!=this.physicsMode?this.realAngle+=57.29577951308402*a:this.body.setAngle(this.body.getAngle()+a):0!=this.physicsMode?this.realAngle+=a:this.body.setAngle(this.body.getAngle()+.01745329251994278*a)},getAngularVelocity:function(){return 0!=this.physicsMode?.01745329251994278*this.rSpeed:this.body.getAngularVelocity()}, +setAngularVelocity:function(a){0!=this.physicsMode?this.rSpeed=57.29577951308402*a:(this.body.setAngularVelocity(a),this.body.setAwake(!0))},changeAngularVelocity:function(a){0!=this.physicsMode?this.rSpeed+=57.29577951308402*a:(this.body.setAngularVelocity(this.body.getAngularVelocity()+a),this.body.setAwake(!0))},push:function(a,b,c){if(0!=this.physicsMode)this.dummy.x=a,this.dummy.y=b,this.dummy.normalize(),this.accelerateX(this.dummy.x*c*.01),this.accelerateY(this.dummy.y*c*.01);else if(0!=a|| +0!=b)this.dummy.x=a,this.dummy.y=b,this.dummy.normalize(),this.dummy.multiply(c),this.body.applyForce(this.dummy,this.body.getWorldCenter())},pushInDirection:function(a,b){this.push(Math.cos(.01745329251994278*a),Math.sin(.01745329251994278*a),b)},applyImpulse:function(a,b,c){if(0!=this.physicsMode)this.dummy.x=a,this.dummy.y=b,this.dummy.normalize(),this.accelerateX(this.dummy.x*c),this.accelerateY(this.dummy.y*c);else if(0!=a||0!=b)this.dummy.x=a,this.dummy.y=b,this.dummy.normalize(),this.dummy.multiply(c), +this.body.applyImpulse(this.dummy,this.body.getWorldCenter())},applyImpulseInDirection:function(a,b){this.applyImpulse(Math.cos(.01745329251994278*a),Math.sin(.01745329251994278*a),b)},applyTorque:function(a){0!=this.physicsMode?this.fixedRotation||(this.rSpeed-=a):(this.body.applyTorque(a),this.body.setAwake(!0))},getWidth:function(){return this.cacheWidth},getHeight:function(){return this.cacheHeight},getPhysicsWidth:function(){return this.cacheWidth/h.physicsScale},getPhysicsHeight:function(){return this.cacheHeight/ +h.physicsScale},getBody:function(){return this.body},enableRotation:function(){0!=this.physicsMode?this.fixedRotation=!1:this.body.setFixedRotation(!1)},disableRotation:function(){0!=this.physicsMode?this.fixedRotation=!0:this.body.setFixedRotation(!0)},setIgnoreGravity:function(a){this.ignoreGravity=a;0==this.physicsMode&&this.body.setIgnoreGravity(a)},ignoresGravity:function(){return 0!=this.physicsMode?this.ignoreGravity:this.body.isIgnoringGravity()},getFriction:function(){return 0==this.physicsMode&& +null!=this.body.m_fixtureList?this.body.m_fixtureList.m_friction:0},getBounciness:function(){return 0==this.physicsMode&&null!=this.body.m_fixtureList?this.body.m_fixtureList.m_restitution:0},getMass:function(){return 0==this.physicsMode?this.md.mass:0},getAngularMass:function(){return 0==this.physicsMode?this.md.I:0},getLinearDamping:function(){return 0==this.physicsMode?this.body.getLinearDamping():0},getAngularDamping:function(){return 0==this.physicsMode?this.body.getAngularDamping():0},setFriction:function(a){0== +this.physicsMode&&this.body.setFriction(a)},setBounciness:function(a){0==this.physicsMode&&this.body.setBounciness(a)},setMass:function(a){0==this.physicsMode&&(this.md.mass=a,this.body.setMassData(this.md))},setAngularMass:function(a){0==this.physicsMode&&(this.md.I=a,this.body.setMassData(this.md))},setLinearDamping:function(a){0==this.physicsMode&&this.body.setLinearDamping(a)},setAngularDamping:function(a){0==this.physicsMode&&this.body.setAngularDamping(a)},isMouseOver:function(){if(this.isHUD){var a= +(K.mouseX-h.engine.hudLayer.get_x())/h.SCALE;var b=(K.mouseY-h.engine.hudLayer.get_y())/h.SCALE}else a=(K.mouseX+h.cameraX*this.layer.scrollFactorX)/h.SCALE,b=(K.mouseY+h.cameraY*this.layer.scrollFactorY)/h.SCALE;var c=Math.abs(this.realScaleX),d=Math.abs(this.realScaleY),e=this.currOrigin.x*(c-1),g=(this.cacheWidth-this.currOrigin.x)*(c-1),f=this.currOrigin.y*(d-1),l=(this.cacheHeight-this.currOrigin.y)*(d-1);0==this.physicsMode||this.currOrigin.x==this.cacheWidth/2&&this.currOrigin.y==this.cacheHeight/ +2||this.resetReal(this.realX,this.realY);var t=this.colX-e,m=this.colY-f;if(0!=this.get_rotation()){c=t+this.currOrigin.x*c;d=m+this.currOrigin.y*d;a-=c;b-=d;var k=.01745329251994278*this.get_rotation();d=d-a*Math.sin(k)+b*Math.cos(k);a=c+a*Math.cos(k)+b*Math.sin(k);b=d}return this.isHUD&&!h.engine.isHUDZoomable?a>=t/h.engine.zoomMultiplier&&b>=m/h.engine.zoomMultiplier&&a<(t+this.cacheWidth+e+g)/h.engine.zoomMultiplier?b<(m+this.cacheHeight+f+l)/h.engine.zoomMultiplier:!1:a>=t&&b>=m&&a<t+this.cacheWidth+ +e+g?b<m+this.cacheHeight+f+l:!1},isMouseHover:function(){return this.isMouseOver()?!K.mouseDown:!1},isMouseDown:function(){return this.isMouseOver()?K.mouseDown:!1},isMousePressed:function(){return this.isMouseOver()?K.mousePressed:!1},isMouseReleased:function(){return this.isMouseOver()?K.mouseReleased:!1},cancelTweens:function(){this.tweenProps.cancel()},fadeTo:function(a,b,c){null==b&&(b=1);this.tweenProps.alpha.tween(this.get_alpha(),a,c,1E3*b|0)},growTo:function(a,b,c,d){null==c&&(c=1);null== +b&&(b=1);null==a&&(a=1);this.tweenProps.realScaleXY.tween(this.realScaleX,a,this.realScaleY,b,d,1E3*c|0)},spinTo:function(a,b,c){null==b&&(b=1);this.tweenProps.angle.tween(this.getAngleInDegrees(),a,c,1E3*b|0)},moveTo:function(a,b,c,d){null==c&&(c=1);this.tweenProps.xy.tween(this.getX(!1),a,this.getY(!1),b,d,1E3*c|0)},spinBy:function(a,b,c){null==b&&(b=1);this.spinTo(this.getAngleInDegrees()+a,b,c)},moveBy:function(a,b,c,d){null==c&&(c=1);this.moveTo(this.getX(!1)+a,this.getY(!1)+b,c,d)},drawImage:function(a){if(null!= +this.currAnimation){var b=0,c=0;0<this.realAngle&&(this.drawMatrix.identity(),this.transformPoint.x=-(this.cacheWidth/2)*h.SCALE,this.transformPoint.y=-(this.cacheHeight/2)*h.SCALE,this.drawMatrix.translate(-this.transformPoint.x,-this.transformPoint.y),this.drawMatrix.scale(this.realScaleX,this.realScaleY),this.drawMatrix.rotate(.01745329251994278*this.realAngle),this.drawMatrix.translate(this.colX*h.SCALE,this.colY*h.SCALE),b+=this.transformMatrix.tx-this.drawMatrix.tx,c+=this.transformMatrix.ty- +this.drawMatrix.ty);var d=this.currAnimation.get_visible();this.currAnimation.set_visible(!0);var e=this.currAnimation,g=.01745329251994278*this.realAngle;ja.disposeImages&&!e.model.checkImageReadable()||a.drawImage(e.get_bitmapData(),b,c,g);this.currAnimation.set_visible(d)}},getCurrentImage:function(){return this.currAnimation.getCurrentImage()},enableActorDrawing:function(){this.drawActor=!0;null!=this.currAnimation&&this.currAnimation.set_visible(!0)},disableActorDrawing:function(){this.drawActor= +!1;null!=this.currAnimation&&this.currAnimation.set_visible(!1)},drawsImage:function(){return this.drawActor},setFilter:function(a){null==this.bitmapFilters&&(this.bitmapFilters=[]);this.bitmapFilters=this.bitmapFilters.concat(a);null!=this.currAnimation&&this.currAnimation.set_filter(this.bitmapFilters)},clearFilters:function(){this.bitmapFilters=null;null!=this.currAnimation&&this.currAnimation.set_filter(null)},setBlendMode:function(a){this.set_blendMode(a)},resetBlendMode:function(){this.set_blendMode(10)}, +addBehavior:function(a){null!=this.behaviors&&this.behaviors.add(a)},hasBehavior:function(a){return null!=this.behaviors?this.behaviors.hasBehavior(a):!1},enableBehavior:function(a){null!=this.behaviors&&this.behaviors.enableBehavior(a)},disableBehavior:function(a){null!=this.behaviors&&this.behaviors.disableBehavior(a)},isBehaviorEnabled:function(a){return null!=this.behaviors?this.behaviors.isBehaviorEnabled(a):!1},enableAllBehaviors:function(){if(null!=this.behaviors)for(var a=0,b=this.behaviors.behaviors;a< +b.length;){var c=b[a];++a;c.enabled=!0}},getValue:function(a,b){return this.behaviors.getAttribute(a,b)},setValue:function(a,b,c){this.behaviors.setAttribute(a,b,c)},shout:function(a,b){return this.behaviors.call(a,b)},say:function(a,b,c){return this.behaviors.call2(a,b,c)},setActorValue:function(a,b){null!=this.registry&&(this.registry.h[a]=b)},getActorValue:function(a){return null==this.registry?null:this.registry.h[a]},hasActorValue:function(a){return null==this.registry?null:null!=this.registry.h[a]}, +registerListener:function(a,b){var c=S.indexOf(this.allEventReferences,a);-1!=c?a=this.allListeners.h[c]:(this.allEventReferences.push(a),c=this.allEventReferences.length-1,a=[],this.allListeners.h[c]=a);a.push(b)},removeAllListeners:function(){for(var a=0,b=this.allEventReferences.length;a<b;){var c=a++,d=this.allEventReferences[c];if(null!=d&&(c=O.__cast(this.allListeners.h[c],Array),null!=c))for(var e=0,g=c.length;e<g;){var f=e++;d.remove(c[f])}}this.allEventReferences.length=0},anchorToScreen:function(){this.isHUD|| +this.engine.moveActorToLayer(this,this.engine.hudLayer)},unanchorFromScreen:function(){this.isHUD&&this.engine.moveActorToLayer(this,this.cachedLayer)},isAnchoredToScreen:function(){return this.isHUD},makeAlwaysSimulate:function(a){null==a&&(a=!0);this.alwaysSimulate||(0==this.physicsMode&&a&&(this.body.setAlwaysActive(!0),this.body.setActive(!0)),this.alwaysSimulate=!0)},makeSometimesSimulate:function(a){null==a&&(a=!0);this.alwaysSimulate&&(0==this.physicsMode&&a&&(this.body.setAlwaysActive(!1), +this.body.setActive(!1)),this.alwaysSimulate=!1)},alwaysSimulates:function(){return this.alwaysSimulate},die:function(){this.dying=!0;var a=this.engine.whenTypeGroupKilledEvents,b=this.getType(),c=a.h[b.__id__];a=this.engine.whenTypeGroupKilledEvents;b=this.getGroup();a=a.h[b.__id__];if(0<this.whenKilled.length)for(this.whenKilled._dispatchIndex=0;this.whenKilled._dispatchIndex<this.whenKilled.length;){try{this.whenKilled.listeners[this.whenKilled._dispatchIndex]()}catch(d){sa.lastError=d}++this.whenKilled._dispatchIndex}if(null!= +c&&0<c.length)for(c._dispatchIndex=0;c._dispatchIndex<c.length;){try{c.listeners[c._dispatchIndex](this)}catch(d){sa.lastError=d}++c._dispatchIndex}if(null!=a&&0<a.length)for(a._dispatchIndex=0;a._dispatchIndex<a.length;){try{a.listeners[a._dispatchIndex](this)}catch(d){sa.lastError=d}++a._dispatchIndex}this.removeAllListeners()},isDying:function(){return this.dying},isAlive:function(){return!(this.dead||this.dying||this.recycled)},isOnScreen:function(){var a=h.cameraX/h.SCALE,b=h.cameraY/h.SCALE, +c=h.paddingLeft,d=h.paddingTop,e=h.paddingRight,g=h.paddingBottom;return(0!=this.physicsMode||this.body.isActive())&&this.getX(!0)+this.cacheWidth*this.realScaleX>=a-c&&this.getY(!0)+this.cacheHeight*this.realScaleY>=b-d&&this.getX(!0)<a+h.screenWidth+e?this.getY(!0)<b+h.screenHeight+g:!1},isInScene:function(){return(0!=this.physicsMode||this.body.isActive())&&0<=this.getX(!0)+this.cacheWidth*this.realScaleX&&0<=this.getY(!0)+this.cacheHeight*this.realScaleY&&this.getX(!0)<h.sceneWidth?this.getY(!0)< +h.sceneHeight:!1},getLastCollidedActor:function(){return tb.lastCollided},killSelfAfterLeavingScreen:function(){this.killLeaveScreen=!0},toString:function(){return null==this.get_name()?"Unknown Actor "+this.ID:"[Actor "+this.ID+","+this.get_name()+"]"},addRectangularShape:function(a,b,c,d){if(0==this.physicsMode){var e=new Bb,g=[];a=h.toPhysicalUnits(a-Math.floor(this.cacheWidth/2)-this.currOffset.x);b=h.toPhysicalUnits(b-Math.floor(this.cacheHeight/2)-this.currOffset.y);c=h.toPhysicalUnits(c);d= +h.toPhysicalUnits(d);g.push(new z(a,b));g.push(new z(a+c,b));g.push(new z(a+c,b+d));g.push(new z(a,b+d));e.setAsVector(g);this.createFixture(e).SetUserData(this)}},addCircularShape:function(a,b,c){if(0==this.physicsMode){var d=new Hc;d.m_radius=h.toPhysicalUnits(c);d.m_p.x=h.toPhysicalUnits(a);d.m_p.y=h.toPhysicalUnits(b);this.createFixture(d).SetUserData(this)}},addVertex:function(a,b,c){b=h.toPhysicalUnits(b-Math.floor(this.cacheWidth/2)-this.currOffset.x);c=h.toPhysicalUnits(c-Math.floor(this.cacheHeight/ +2)-this.currOffset.y);a.push(new z(b,c))},addPolygonalShape:function(a){if(0==this.physicsMode){var b=new Bb;b.setAsArray(a);this.createFixture(b).SetUserData(this)}},createFixture:function(a){var b=new Gf;b.shape=a;b.density=.1*this.bodyDef.mass;b.friction=this.bodyDef.friction;b.restitution=this.bodyDef.bounciness;return this.body.createFixture(b)},getLastCreatedFixture:function(){return 0==this.physicsMode?this.body.getFixtureList():null},setLocation:function(a,b){this.realX=a;this.realY=b;this.setXY(a, +b,!1,!0)},get_shape:function(){return this._mask},set_shape:function(a){if(this._mask==a)return a;null!=this._mask&&this._mask.assignTo(null);this._mask=a;null!=a&&this._mask.assignTo(this);return this._mask},collide:function(a,b,c){a=this.engine.getGroup(a);this._x=this.realX;this._y=this.realY;this.resetReal(b,c);if(null==this._mask){b=0;for(c=a.list;b<c.length;)if(a=c[b],++b,!a.recycled&&this.colX+this.cacheWidth>=a.colX&&this.colY+this.cacheHeight>=a.colY&&this.colX<=a.colX+a.cacheWidth&&this.colY<= +a.colY+a.cacheHeight&&a.collidable&&a!=this&&(null==a._mask||a._mask.collide(this.HITBOX)))return this.colMask=a._mask,this.resetReal(this._x,this._y),a;this.resetReal(this._x,this._y);return null}b=0;for(c=a.list;b<c.length;)if(a=c[b],++b,!a.recycled&&this.colX+this.cacheWidth>=a.colX&&this.colY+this.cacheHeight>=a.colY&&this.colX<=a.colX+a.cacheWidth&&this.colY<=a.colY+a.cacheHeight&&a.collidable&&a!=this&&this._mask.collide(null!=a._mask?a._mask:a.HITBOX))return this.colMask=null!=a._mask?a._mask: +a.HITBOX,this.resetReal(this._x,this._y),a;this.resetReal(this._x,this._y);return null},collideTypes:function(a,b,c){for(var d=this.collidedList.length,e,g=0;g<a.length;)e=a[g],++g,-2!=e&&this.collideInto(e,b,c,this.collidedList);return this.collidedList.length>d?this.collidedList[this.collidedList.length-1]:null},collideWith:function(a,b,c){this._x=this.realX;this._y=this.realY;this.resetReal(b,c);if(this.colX+this.cacheWidth>=a.colX&&this.colY+this.cacheHeight>=a.colY&&this.colX<=a.colX+a.cacheWidth&& +this.colY<=a.colY+a.cacheHeight&&this.collidable&&a.collidable){if(null==this._mask){if(null==a._mask||a._mask.collide(this.HITBOX))return this.resetReal(this._x,this._y),a;this.resetReal(this._x,this._y);return null}if(this._mask.collide(null!=a._mask?a._mask:a.HITBOX))return this.resetReal(this._x,this._y),a}this.resetReal(this._x,this._y);return null},collideInto:function(a,b,c,d){a=this.engine.getGroup(a);this._x=this.realX;this._y=this.realY;this.resetReal(b,c);b=d.length;if(null==this._mask)for(c= +0,a=a.list;c<a.length;){var e=a[c];++c;e.recycled||this.colX+this.cacheWidth>=e.colX&&this.colY+this.cacheHeight>=e.colY&&this.colX<=e.colX+e.cacheWidth&&this.colY<=e.colY+e.cacheHeight&&e.collidable&&e!=this&&(null==e._mask||e._mask.collide(this.HITBOX))&&(S.contains(d,e)||(d[b++]=e))}else for(c=0,a=a.list;c<a.length;)e=a[c],++c,this.colX+this.cacheWidth>=e.colX&&this.colY+this.cacheHeight>=e.colY&&this.colX<=e.colX+e.cacheWidth&&this.colY<=e.colY+e.cacheHeight&&e.collidable&&e!=this&&this._mask.collide(null!= +e._mask?e._mask:e.HITBOX)&&(S.contains(d,e)||(d[b++]=e));this.resetReal(this._x,this._y)},clearCollisionInfoList:function(){if(0<this.collisionsCount)for(var a=this.simpleCollisions.iterator();a.hasNext();){var b=a.next();b.remove=!0;null!=b.linkedCollision&&(b.linkedCollision.remove=!0)}},disposeRemovedCollisionInfo:function(){if(0<this.collisionsCount){for(var a=-1,b=this.simpleCollisions.keys();b.hasNext();){var c=b.next(),d=this.simpleCollisions,e=d.mH,g=e.mHash[73856093*c&e.mMask];if(-1==g)g= +-2147483648;else if(e=e.mData,e[g]==c)g=e[g+1];else{var f=-2147483648;for(g=e[g+2];-1!=g;){if(e[g]==c){f=e[g+1];break}g=e[g+2]}g=f}(-2147483648==g?null:d.mVals[g]).remove?this.simpleCollisions.unset(c):c>a&&(a=c)}this.collisionsCount=a+1}},clearCollidedList:function(){for(;0<this.collidedList.length;)this.collidedList.pop();this.listChecked=0},addCollision:function(a){var b=this.alreadyCollided(a);if(-1!=b){var c=this.simpleCollisions,d=c.mH,e=d.mHash[73856093*b&d.mMask];if(-1==e)e=-2147483648;else if(d= +d.mData,d[e]==b)e=d[e+1];else{var g=-2147483648;for(e=d[e+2];-1!=e;){if(d[e]==b){g=d[e+1];break}e=d[e+2]}e=g}c=-2147483648==e?null:c.mVals[e];a.switchData(c.linkedCollision);a.linkedCollision.remove=!1;a.remove=!1;qc.recycle(c);this.simpleCollisions.unset(b);this.simpleCollisions.set(b,a);return a}this.simpleCollisions.unset(this.collisionsCount);this.simpleCollisions.set(this.collisionsCount,a);this.collisionsCount++;return a},alreadyCollided:function(a){for(var b=this.simpleCollisions.keys();b.hasNext();){var c= +b.next(),d=this.simpleCollisions,e=d.mH,g=e.mHash[73856093*c&e.mMask];if(-1==g)g=-2147483648;else if(e=e.mData,e[g]==c)g=e[g+1];else{var f=-2147483648;for(g=e[g+2];-1!=g;){if(e[g]==c){f=e[g+1];break}g=e[g+2]}g=f}d=-2147483648==g?null:d.mVals[g];if(null!=d&&(d.maskA==a.maskA&&d.maskB==a.maskB||d.maskA==a.maskB&&d.maskB==a.maskA))if(d.solidCollision)if(1==d.maskA.groupID||1==d.maskB.groupID){if(d.thisFromLeft||d.thisFromRight)if(a.thisFromLeft||a.thisFromRight)return c;if(d.thisFromTop||d.thisFromBottom)if(a.thisFromTop|| +a.thisFromBottom)return c}else return c;else return c}return-1},resetReal:function(a,b){this.realX=a;this.realY=b;this.colX=this.realX-Math.floor(this.cacheWidth/2)-this.currOffset.x;this.colY=this.realY-Math.floor(this.cacheHeight/2)-this.currOffset.y},adjustByWidth:function(a){if(null!=this._mask&&null!=this._mask.lastCheckedMask&&this._mask.lastCheckedMask instanceof bd){var b=this._mask.lastCheckedMask;return a?this.cacheWidth/2-(this.cacheWidth-(b._x+b._width)):this.cacheWidth/2-b._x}return this.cacheWidth/ +2},adjustByHeight:function(a){if(null!=this._mask&&null!=this._mask.lastCheckedMask&&this._mask.lastCheckedMask instanceof bd){var b=this._mask.lastCheckedMask;return a?this.cacheHeight/2-(this.cacheHeight-(b._y+b._height)):this.cacheHeight/2-b._y}return this.cacheHeight/2},getAllCollisionInfo:function(a,b){for(var c=null;this.listChecked<this.collidedList.length;){var d=qc.get();this.colMask=this.collidedList[this.listChecked]._mask;this.fillCollisionInfo(d,this.collidedList[this.listChecked],a, +b);this.addCollision(d);if(null==d.linkedCollision){var e=qc.get();d.switchData(e);this.collidedList[this.listChecked].addCollision(e)}d.solidCollision&&(c=d);this.listChecked++}return c},moveActorBy:function(a,b,c,d){null==d&&(d=!1);null==c&&(c=!0);if(0!=a||0!=b){this.clearCollisionInfoList();if(!c&&this.collidable&&null!=this.HITBOX.collideTypes){c=this.HITBOX.collideTypes;if(0!=a){var e=0<a?Math.ceil(this.realX+a):Math.floor(this.realX+a);this.clearCollidedList();if(d||null!=this.collideTypes(c, +e,this.realY))for(this.clearCollidedList();0!=a;){var g=1<=a||-1>=a?1:Math.abs(a);g=0<a?g:-g;e=0<g?Math.ceil(this.realX+g):Math.floor(this.realX+g);var f=this.collide(-2,e,this.realY);null!=f&&O.__cast(f,kd).addActor(this);f=this.collideTypes(c,e,this.realY);if(null!=f&&(e=this.getAllCollisionInfo(g,0),null!=e)){this.xSpeed=0;e.useBounds&&(this.realX=0<g?e.bounds.x-Math.ceil(this.adjustByWidth(!0)):e.bounds.x+e.bounds.width+Math.floor(this.adjustByWidth(!1)));break}this.realX+=g;a-=g}else this.realX+= +a}if(0!=b)if(e=0<b?Math.ceil(this.realY+b):Math.floor(this.realY+b),this.clearCollidedList(),d||null!=this.collideTypes(c,this.realX,e))for(this.clearCollidedList();0!=b;){g=1<=b||-1>=b?1:Math.abs(b);g=0<b?g:-g;e=0<g?Math.ceil(this.realY+g):Math.floor(this.realY+g);f=this.collide(-2,this.realX,e);null!=f&&O.__cast(f,kd).addActor(this);f=this.collideTypes(c,this.realX,e);if(null!=f&&(e=this.getAllCollisionInfo(0,g),null!=e)){this.ySpeed=0;e.useBounds&&(this.realY=0<g?e.bounds.y-Math.ceil(this.adjustByHeight(!0)): +e.bounds.y+e.bounds.height+Math.floor(this.adjustByHeight(!1)));break}this.realY+=g;b-=g}else this.realY+=b}else this.realX+=a,this.realY+=b;this.resetReal(this.realX,this.realY)}},moveActorTo:function(a,b,c,d){null==d&&(d=!1);null==c&&(c=!0);this.moveActorBy(a-this.realX,b-this.realY,c,d)},moveActorTowards:function(a,b,c,d,e){null==e&&(e=!1);null==d&&(d=!0);this._point.x=a-this.realX;this._point.y=b-this.realY;this._point.normalize(c);this.moveActorBy(this._point.x,this._point.y,d,e)},moveCollideX:function(a, +b){},moveCollideY:function(a,b){},fillCollisionInfo:function(a,b,c,d){if(b instanceof kd)b.addActor(this);else{a.thisActor=a.actorA=this;a.otherActor=a.actorB=b;a.maskA=this._mask;a.maskB=this.colMask;a.solidCollision=this._mask.solid&&this.colMask.solid;a.groupA=this._mask.lastCheckedMask.groupID;a.groupB=this._mask.lastCheckedMask.lastColID;var e=qc.collisionResponses,g=this.getGroupID();e=e.h[g];var f=!1,l=!1;null!=e?(g=b.getGroupID(),g=null!=e.h[g]):g=!1;g&&(g=b.getGroupID(),"sensor"==e.h[g]? +(a.solidCollision=!1,f=!0):l=a.solidCollision=!0);null!=this.colMask&&(a.useBounds=!0,a.bounds.x=this.colMask.lastBounds.x,a.bounds.y=this.colMask.lastBounds.y,a.bounds.width=this.colMask.lastBounds.width,a.bounds.height=this.colMask.lastBounds.height);0!=c&&(1E8==b.ID?(a.thisFromLeft=0>c,a.thisFromRight=0<c):(a.thisFromLeft=b.colX<this.colX,a.thisFromRight=b.colX>this.colX),a.otherFromLeft=!a.thisFromLeft,a.otherFromRight=!a.thisFromRight,a.thisFromTop=a.otherFromTop=!1,a.thisFromBottom=a.otherFromBottom= +!1);0!=d&&(1E8==b.ID?(a.thisFromTop=0>d,a.thisFromBottom=0<d):(a.thisFromTop=b.colY<this.colY,a.thisFromBottom=b.colY>this.colY),a.otherFromTop=!a.thisFromTop,a.otherFromBottom=!a.thisFromBottom,a.thisFromLeft=a.otherFromLeft=!1,a.thisFromRight=a.otherFromRight=!1);a.thisCollidedWithActor=!0;a.thisCollidedWithTile=1E8==b.ID;a.thisCollidedWithSensor=null!=a?f||!l&&!a.maskB.solid:!1;a.thisCollidedWithTerrain=!1;a.otherCollidedWithActor=!0;a.otherCollidedWithTile=1E8==b.ID;a.otherCollidedWithSensor= +null!=a?!a.maskA.solid:!1;a.otherCollidedWithTerrain=!1}},handleCollisionsSimple:function(){if(0<this.collisionsCount)for(var a=this.simpleCollisions.iterator();a.hasNext();){var b=a.next();if(null!=b&&1!=b.remove){tb.lastCollided=b.otherActor;if(0<this.whenCollided.length)for(this.whenCollided._dispatchIndex=0;this.whenCollided._dispatchIndex<this.whenCollided.length;){try{this.whenCollided.listeners[this.whenCollided._dispatchIndex](b)}catch(c){sa.lastError=c}++this.whenCollided._dispatchIndex}this.engine.handleCollision(this, +b)}}},HITBOX:null,_mask:null,colMask:null,_x:null,_y:null,_moveX:null,_moveY:null,_point:null,simpleCollisions:null,collidedList:null,listChecked:null,__class__:tb,__properties__:u(ta.prototype.__properties__,{set_shape:"set_shape",get_shape:"get_shape"})});var ko=function(a,b,c,d){this.ID=a;this.name=b;this.allScenes=c;this.members=d;this.active=!0};k["com.stencyl.models.Atlas"]=ko;ko.__name__="com.stencyl.models.Atlas";ko.prototype={ID:null,name:null,allScenes:null,active:null,members:null,__class__:ko}; +var Rh=function(){};k["com.stencyl.models.Background"]=Rh;Rh.__name__="com.stencyl.models.Background";Rh.__isInterface__=!0;Rh.prototype={update:null,draw:null,__class__:Rh};var il=function(a,b){this.group1=a;this.group2=b};k["com.stencyl.models.CollisionGroupDef"]=il;il.__name__="com.stencyl.models.CollisionGroupDef";il.prototype={group1:null,group2:null,__class__:il};var cd=function(a,b,c){this.ID=a;this.atlasID=c;this.name=b;this.sID=a+","+b};k["com.stencyl.models.Resource"]=cd;cd.__name__="com.stencyl.models.Resource"; +cd.prototype={ID:null,atlasID:null,name:null,sID:null,toString:function(){return this.sID},isAtlasActive:function(){var a=va.get().atlases.h[this.atlasID];return null==a?!1:a.active},loadGraphics:function(){},unloadGraphics:function(){},reloadGraphics:function(a){this.unloadGraphics();this.loadGraphics()},__class__:cd};var Ke=function(a,b,c,d){cd.call(this,a,c,b);this.isDefault=d;this.isAtlasActive()&&this.loadGraphics()};k["com.stencyl.models.Font"]=Ke;Ke.__name__="com.stencyl.models.Font";Ke.resetStatics= +function(){Ke.defaultFont=null};Ke.__super__=cd;Ke.prototype=u(cd.prototype,{font:null,fontScale:null,isDefault:null,graphicsLoaded:null,getHeight:function(){return null!=this.font?this.font.getFontHeight(this.fontScale):0},getTextWidth:function(a){return null!=this.font?this.font.getTextWidth(a,this.fontScale):0},loadGraphics:function(){if(!this.graphicsLoaded){if(this.isDefault){var a=qa.getText("assets/graphics/default-font.fnt");a=U.parse(a);Ke.defaultFont=this.font=(new xg).loadAngelCode(qa.getBitmapData("assets/graphics/default-font.png"), +a);this.fontScale=h.SCALE;Ke.defaultFont.isDefault=!0}else{a=qa.getText("assets/graphics/"+h.IMG_BASE+"/font-"+this.ID+".fnt");a=U.parse(a);var b=qa.getBitmapData("assets/graphics/"+h.IMG_BASE+"/font-"+this.ID+".png",!1);this.font=(new xg).loadAngelCode(b,a);this.fontScale=1}this.graphicsLoaded=!0}},unloadGraphics:function(){this.graphicsLoaded&&(this.font=Ke.defaultFont,this.fontScale=1,this.graphicsLoaded=!1)},reloadGraphics:function(a){cd.prototype.reloadGraphics.call(this,a)},get_letterSpacing:function(){return this.font.xSpacing}, +set_letterSpacing:function(a){return this.font.xSpacing=a},get_lineSpacing:function(){return this.font.ySpacing},set_lineSpacing:function(a){return this.font.ySpacing=a},isBitmapFont:function(a){null==a&&(a=qa.getText("assets/graphics/"+h.IMG_BASE+"/font-"+this.ID+".fnt"),a=U.parse(a));for(a=a.elements();a.hasNext();){var b=a.next();if(b.nodeType!=U.Element)throw R.thrown("Bad node type, expected Element but found "+(null==b.nodeType?"null":Ea.toString(b.nodeType)));if("font"==b.nodeName)for(b=b.elements();b.hasNext();){var c= +b.next();if(c.nodeType!=U.Element)throw R.thrown("Bad node type, expected Element but found "+(null==c.nodeType?"null":Ea.toString(c.nodeType)));if("info"==c.nodeName)for(c=c.attributes();c.hasNext();)if("lspace"==c.next())return!0}}return!1},__class__:Ke,__properties__:{set_lineSpacing:"set_lineSpacing",get_lineSpacing:"get_lineSpacing",set_letterSpacing:"set_letterSpacing",get_letterSpacing:"get_letterSpacing"}});var va=function(){var a=ic.get().gameMbs.getRoot();this.shapes=this.readShapes(a); +this.atlases=this.readAtlases(a);this.autotileFormats=this.readAutotileFormats(a);this.groups=this.readGroups(a);this.groups.push(new th(-2,"Regions"));this.groups.push(new th(0,"Players"));this.groups.push(new th(1,"Terrain"));this.groups.push(new th(2,"Doodads"));this.groups.push(new th(3,"Actors"));this.groupsCollidesWith=new Sa;this.collisionGroups=this.readCollisionGroups(a);va.collisionMap=[];for(var b=0,c=0,d=this.groups;c<d.length;){var e=d[c];++c;b=Math.max(e.ID|0,b)|0}++b;c=0;for(d=b;c< +d;){e=c++;va.collisionMap.push([]);for(var g=0,f=b;g<f;)g++,va.collisionMap[e].push(!1)}if(h.NO_PHYSICS)for(c=0,d=this.groups;c<d.length;)e=d[c],++c,this.collisionGroups.push(new il(e.ID,-2));c=0;for(d=this.collisionGroups;c<d.length;){e=d[c];++c;b=e.group1;e=e.group2;this.groupsCollidesWith.h.hasOwnProperty(b)||(this.groupsCollidesWith.h[b]=[]);this.groupsCollidesWith.h.hasOwnProperty(e)||(this.groupsCollidesWith.h[e]=[]);if(!h.NO_PHYSICS||0<=b&&0<=e)va.collisionMap[b][e]=!0,va.collisionMap[e][b]= +!0;this.groupsCollidesWith.h[b].push(e);this.groupsCollidesWith.h[e].push(b)}this.gameAttributes=va.readGameAttributes(a);ic.get().gameMbs=null};k["com.stencyl.models.GameModel"]=va;va.__name__="com.stencyl.models.GameModel";va.resetStatics=function(){va.instance=null;va.collisionMap=null};va.get=function(){null==va.instance&&(va.instance=new va);return va.instance};va.readGameAttributes=function(a){return pe.readMap(a.getGameAttributes())};va.prototype={groups:null,groupsCollidesWith:null,collisionGroups:null, +gameAttributes:null,shapes:null,atlases:null,scenes:null,autotileFormats:null,loadScenes:function(){this.scenes=new Sa;for(var a=ic.get().sceneListMbs.getRoot(),b=0,c=a.length();b<c;){b++;var d=a.getNextObject(),e=d.getId(),g=this.scenes;d=new jl(e,d.getName());g.h[e]=d}ic.get().sceneListMbs=null},readShapes:function(a){var b=new Sa;a=a.getShapes();for(var c=0,d=a.length();c<d;){c++;var e=a.getNextObject(),g=e.getPoints(),f=[],l=0;for(g=qd.readPoints(g);l<g.length;){var t=g[l];++l;f.push(new z(3.1* +t.x,3.1*t.y))}qd.EnsureCorrectVertexDirection(f);l=new Bb;l.setAsArray(f,f.length);e=e.getId();b.h[e]=l}return b},readAtlases:function(a){var b=new Sa;a=a.getAtlases();for(var c=0,d=a.length();c<d;){c++;var e=a.getNextObject(),g=e.getId(),f=e.getName(),l=e.getAllScenes();e=e.getMembers();for(var t=[],m=0,h=e.length();m<h;)m++,t.push(e.readInt());f=new ko(g,f,l,t);b.h[g]=f}return b},readAutotileFormats:function(a){var b=new Sa;a=a.getAutotileFormats();for(var c=0,d=a.length();c<d;){c++;for(var e=a.getNextObject(), +g=e.getName(),f=e.getId(),l=e.getAcross(),t=e.getDown(),m=[],h=[],p=e.getCorners(),k=0,n=p.length();k<n;){k++;var r=p.getNextObject(),q=r.getTopLeft();q=new oa(q.getX(),q.getY());var v=r.getTopRight();v=new oa(v.getX(),v.getY());var u=r.getBottomLeft();u=new oa(u.getX(),u.getY());r=r.getBottomRight();h.push(new lo(q,v,u,new oa(r.getX(),r.getY())))}e=e.getFlags();p=0;for(k=e.length();p<k;)n=p++,m[n]=h[e.readInt()];g=new mo(g,f,l,t,m);b.h[f]=g}return b},readGroups:function(a){var b=[];a=a.getGroups(); +for(var c=0,d=a.length();c<d;){c++;var e=a.getNextObject();b.push(new th(e.getId(),e.getName()))}return b},readCollisionGroups:function(a){var b=[];a=a.getCgroups();for(var c=0,d=a.length();c<d;){c++;var e=a.getNextObject();b.push(new il(e.getGroup1(),e.getGroup2()))}return b},__class__:va};var th=function(a,b){this.ID=a;this.name=b};k["com.stencyl.models.GroupDef"]=th;th.__name__="com.stencyl.models.GroupDef";th.prototype={ID:null,name:null,__class__:th};var Wa=function(){this.isPressed=!1;this.outerAlphaWhenReleased= +this.outerAlphaWhenPressed=this.innerAlphaWhenReleased=this.innerAlphaWhenPressed=1;this.outerImage=this.innerImage=null;this.hideWhenReleased=!1;this.joystickDistance=this.joystickDirection=this.joystickDefaultDirection=this.joystickType=0;ta.call(this)};k["com.stencyl.models.Joystick"]=Wa;Wa.__name__="com.stencyl.models.Joystick";Wa.resetStatics=function(){Wa.joystickMap=null;Wa.fixedCenter=0;Wa.showWherePressed=1;Wa.viewOffsetX=Wa.viewOffsetY=0;Wa.initialized=!1};Wa.addJoystick=function(a,b,c, +d,e,g,f,l,t){null==t&&(t=!1);null==l&&(l=0);null==f&&(f=0);null==g&&(g=0);null==e&&(e=0);null==d&&(d=0);null!=Wa.joystickMap&&Wa.joystickMap.h.hasOwnProperty(a)&&Wa.removeJoystick(a);var x=new Wa;x.start();x.id=a;x.joystickTouchID=-1;x.joystickDistance=0;x.joystickDirection=0;x.joystickDefaultDirection=0;x.joystickType=d;x.center=new oa(b*h.SCALE,c*h.SCALE);Wa.joystickMap.h[a]=x;Wa.setJoystickImage(a,!0,"outer-joystick");Wa.setJoystickImage(a,!1,"inner-joystick");x.outerAlphaWhenPressed=1;x.outerAlphaWhenReleased= +1;x.innerAlphaWhenPressed=1;x.innerAlphaWhenReleased=1;x.joystickType==Wa.showWherePressed&&(x.joystickBounds=new fa(e*h.SCALE+Wa.viewOffsetX,g*h.SCALE+Wa.viewOffsetY,f*h.SCALE,l*h.SCALE));t&&(x.hideWhenReleased=!0,x.outerImage.set_visible(!1),x.innerImage.set_visible(!1))};Wa.removeJoystick=function(a){if(Wa.joystickMap.h.hasOwnProperty(a)){var b=Wa.joystickMap.h[a],c=h.engine.root;Wa.joystickMap.remove(a);c.removeChild(b.outerImage);c.removeChild(b.innerImage)}};Wa.getJoystickDisDir=function(a, +b){null==b&&(b=!0);var c=0;Wa.joystickMap.h.hasOwnProperty(a)&&(a=Wa.joystickMap.h[a],c=b?a.joystickDistance:a.joystickDirection);return c};Wa.setJoystickCenter=function(a,b,c){Wa.joystickMap.h.hasOwnProperty(a)&&(a=Wa.joystickMap.h[a],a.center=new oa(b*h.SCALE,c*h.SCALE),a.outerImage.set_x(a.center.x-.5*a.outerImage.get_width()),a.outerImage.set_y(a.center.y-.5*a.outerImage.get_height()),a.innerImage.set_x(a.center.x-.5*a.innerImage.get_width()),a.innerImage.set_y(a.center.y-.5*a.innerImage.get_height()))}; +Wa.getJoystickCenter=function(a,b){null==b&&(b=!0);var c=0;Wa.joystickMap.h.hasOwnProperty(a)&&(a=Wa.joystickMap.h[a],c=(b?a.center.x:a.center.y)/h.SCALE);return c};Wa.setJoystickRadius=function(a,b,c){null==b&&(b=!0);Wa.joystickMap.h.hasOwnProperty(a)&&(a=Wa.joystickMap.h[a],b&&a.outerRadius!=c*h.SCALE?a.outerRadius=c*h.SCALE:a.innerRadius!=c*h.SCALE&&(a.innerRadius=c*h.SCALE))};Wa.getJoystickRadius=function(a,b){null==b&&(b=!0);var c=0;Wa.joystickMap.h.hasOwnProperty(a)&&(a=Wa.joystickMap.h[a], +c=(b?a.innerRadius:a.outerRadius)/h.SCALE);return c};Wa.alwaysHideRJ=function(a){Wa.joystickMap.h.hasOwnProperty(a)&&(a=Wa.joystickMap.h[a],a.hideWhenReleased=!0,a.outerImage.set_visible(!1),a.innerImage.set_visible(!1))};Wa.setDefaultDirection=function(a,b){Wa.joystickMap.h.hasOwnProperty(a)&&(a=Wa.joystickMap.h[a],a.joystickDefaultDirection=b,a.joystickDirection=b)};Wa.isJoystickPressed=function(a){return Wa.joystickMap.h.hasOwnProperty(a)?Wa.joystickMap.h[a].isPressed:!1};Wa.setTouchRegionForRJ= +function(a,b,c,d,e){null==e&&(e=0);null==d&&(d=0);null==c&&(c=0);null==b&&(b=0);Wa.joystickMap.h.hasOwnProperty(a)&&(a=Wa.joystickMap.h[a],a.joystickType==Wa.showWherePressed&&(a.joystickBounds=new fa(b*h.SCALE+Wa.viewOffsetX,c*h.SCALE+Wa.viewOffsetY,d*h.SCALE,e*h.SCALE)))};Wa.getTouchRegionPropertyForRJ=function(a,b){return Wa.joystickMap.h.hasOwnProperty(a)&&(a=Wa.joystickMap.h[a],a.joystickType==Wa.showWherePressed)?1==b?a.joystickBounds.x-Wa.viewOffsetX:2==b?a.joystickBounds.y-Wa.viewOffsetY: +3==b?a.joystickBounds.width/h.SCALE:a.joystickBounds.height/h.SCALE:0};Wa.setJoystickImage=function(a,b,c){if(Wa.joystickMap.h.hasOwnProperty(a)){a=Wa.joystickMap.h[a];var d=h.engine.root;c=1==h.SCALE?qa.getBitmapData("assets/data/"+c+".png"):1.5==h.SCALE?qa.getBitmapData("assets/data/"+c+"@1.5x.png"):2==h.SCALE?qa.getBitmapData("assets/data/"+c+"@2x.png"):qa.getBitmapData("assets/data/"+c+"@4x.png");b?(null!=a.outerImage&&d.removeChild(a.outerImage),a.outerImage=new Vb(c),a.outerImage.set_x(a.center.x- +.5*a.outerImage.get_width()),a.outerImage.set_y(a.center.y-.5*a.outerImage.get_height()),d.addChild(a.outerImage),a.outerRadius=.5*a.outerImage.get_width()):(null!=a.innerImage&&d.removeChild(a.innerImage),a.innerImage=new Vb(c),a.innerImage.set_x(a.center.x-.5*a.innerImage.get_width()),a.innerImage.set_y(a.center.y-.5*a.innerImage.get_height()),d.addChild(a.innerImage),a.innerRadius=a.outerRadius-.5*a.innerImage.get_width())}};Wa.setJoystickAlpha=function(a,b,c,d){null==d&&(d=!0);null==c&&(c=1); +null==b&&(b=!0);Wa.joystickMap.h.hasOwnProperty(a)&&(a=Wa.joystickMap.h[a],b?d?(a.outerAlphaWhenReleased=c,a.outerImage.set_alpha(c)):a.outerAlphaWhenPressed=c:d?(a.innerAlphaWhenReleased=c,a.innerImage.set_alpha(c)):a.innerAlphaWhenPressed=c)};Wa.__super__=ta;Wa.prototype=u(ta.prototype,{center:null,outerRadius:null,innerRadius:null,joystickBounds:null,joystickTouchID:null,id:null,joystickDistance:null,joystickDirection:null,joystickDefaultDirection:null,joystickType:null,hideWhenReleased:null,outerImage:null, +innerImage:null,outerAlphaWhenReleased:null,outerAlphaWhenPressed:null,innerAlphaWhenReleased:null,innerAlphaWhenPressed:null,isPressed:null,start:function(){Wa.initialized||(Wa.initialized=!0,Wa.joystickMap=new Sa,Wa.viewOffsetX=h.screenOffsetX,Wa.viewOffsetY=h.screenOffsetY);qe.get_supportsTouchEvents()?(h.stage.addEventListener("touchBegin",q(this,this.onTouchBegin)),h.stage.addEventListener("touchMove",q(this,this.onTouchMove)),h.stage.addEventListener("touchEnd",q(this,this.onTouchEnd)),qe.inputMode= +2):(h.stage.addEventListener("mouseDown",q(this,this.onMouseDown)),h.stage.addEventListener("mouseMove",q(this,this.onMouseMove)),h.stage.addEventListener("mouseUp",q(this,this.onMouseUp)))},stop:function(){qe.get_supportsTouchEvents()?(h.stage.removeEventListener("touchBegin",q(this,this.onTouchBegin)),h.stage.removeEventListener("touchMove",q(this,this.onTouchMove)),h.stage.removeEventListener("touchEnd",q(this,this.onTouchEnd))):(h.stage.removeEventListener("mouseDown",q(this,this.onMouseDown)), +h.stage.removeEventListener("mouseMove",q(this,this.onMouseMove)),h.stage.removeEventListener("mouseUp",q(this,this.onMouseUp)));Wa.joystickMap=null},onTouchBegin:function(a){this.onBegin(a.stageX,a.stageY,a.touchPointID)},onTouchMove:function(a){this.onMove(a.stageX,a.stageY,a.touchPointID)},onTouchEnd:function(a){this.onEnd(a.stageX,a.stageY,a.touchPointID)},onMouseDown:function(a){this.onBegin(a.stageX,a.stageY,0)},onMouseMove:function(a){this.onMove(a.stageX,a.stageY,0)},onMouseUp:function(a){this.onEnd(a.stageX, +a.stageY,0)},onBegin:function(a,b,c){if(-1==this.joystickTouchID)if(a=(a-Wa.viewOffsetX)/h.screenScaleX,b=(b-Wa.viewOffsetY)/h.screenScaleY,this.outerImage.set_alpha(this.outerAlphaWhenPressed),this.innerImage.set_alpha(this.innerAlphaWhenPressed),this.joystickType==Wa.fixedCenter){var d=Math.sqrt(Math.pow(this.center.x-a,2)+Math.pow(this.center.y-b,2)),e=Math.atan2(this.center.y-b,this.center.x-a);d>this.outerRadius||(d>this.outerRadius-this.innerRadius?(d=this.outerRadius-this.innerRadius,this.innerImage.set_x(this.center.x- +Math.cos(e)*(this.outerRadius-this.innerRadius)-.5*this.innerImage.get_width()),this.innerImage.set_y(this.center.y-Math.sin(e)*(this.outerRadius-this.innerRadius)-.5*this.innerImage.get_height())):(this.innerImage.set_x(a-.5*this.innerImage.get_width()),this.innerImage.set_y(b-.5*this.innerImage.get_height())),this.isPressed=!0,this.joystickTouchID=c,this.joystickDistance=d/(this.outerRadius-this.innerRadius),this.joystickDirection=180*e/3.1415926535+180)}else this.joystickType!=Wa.showWherePressed|| +a<this.joystickBounds.x||a>this.joystickBounds.x+this.joystickBounds.width||b<this.joystickBounds.y||b>this.joystickBounds.y+this.joystickBounds.height||(this.isPressed=!0,this.center.x=a,this.center.y=b,this.outerImage.set_x(this.center.x-.5*this.outerImage.get_width()),this.outerImage.set_y(this.center.y-.5*this.outerImage.get_height()),this.innerImage.set_x(this.center.x-.5*this.innerImage.get_width()),this.innerImage.set_y(this.center.y-.5*this.innerImage.get_height()),this.hideWhenReleased&& +(this.outerImage.set_visible(!0),this.innerImage.set_visible(!0)),this.joystickTouchID=c)},onMove:function(a,b,c){if(c==this.joystickTouchID){a=(a-Wa.viewOffsetX)/h.screenScaleX;b=(b-Wa.viewOffsetY)/h.screenScaleY;c=Math.sqrt(Math.pow(this.center.x-a,2)+Math.pow(this.center.y-b,2));var d=Math.atan2(this.center.y-b,this.center.x-a);c>this.outerRadius-this.innerRadius?(c=this.outerRadius-this.innerRadius,this.innerImage.set_x(this.center.x-Math.cos(d)*(this.outerRadius-this.innerRadius)-.5*this.innerImage.get_width()), +this.innerImage.set_y(this.center.y-Math.sin(d)*(this.outerRadius-this.innerRadius)-.5*this.innerImage.get_height())):(this.innerImage.set_x(a-.5*this.innerImage.get_width()),this.innerImage.set_y(b-.5*this.innerImage.get_height()));this.joystickDistance=c/(this.outerRadius-this.innerRadius);this.joystickDirection=180*d/3.1415926535+180}},onEnd:function(a,b,c){c==this.joystickTouchID&&(this.joystickTouchID=-1,this.isPressed=!1,this.outerImage.set_alpha(this.outerAlphaWhenReleased),this.innerImage.set_alpha(this.innerAlphaWhenReleased), +this.innerImage.set_x(this.center.x-.5*this.innerImage.get_width()),this.innerImage.set_y(this.center.y-.5*this.innerImage.get_height()),this.hideWhenReleased&&(this.outerImage.set_visible(!1),this.innerImage.set_visible(!1)),this.joystickDistance=0,this.joystickDirection=this.joystickDefaultDirection)},__class__:Wa});var Nn={_new:function(a){return a},fromInt:function(a){return Nn._new(a)},fromString:function(a){switch(a){case "MINIMAL_PHYSICS":return 2;case "NORMAL_PHYSICS":return 0;case "SIMPLE_PHYSICS":return 1; +default:return 0}},toString:function(a){switch(a){case 0:return"NORMAL_PHYSICS";case 1:return"SIMPLE_PHYSICS";case 2:return"MINIMAL_PHYSICS";default:return"NORMAL_PHYSICS"}}},kd=function(a,b,c,d,e){tb.call(this,a,-1,-2,b,c,-1,h.NO_PHYSICS?e.width:1,h.NO_PHYSICS?e.height:1,null,null,null,null,!1,!1,!1,!1,h.NO_PHYSICS?null:d[0],h.NO_PHYSICS);this.isRegion=this.alwaysSimulate=!0;this.solid=this.isTerrainRegion=!1;this.set_name("Region");this.simpleBounds=e;this.copy=d[0];this.containedActors=new Sa; +this.whenActorEntered=new Bc;this.whenActorExited=new Bc;this.justAdded=[];this.justRemoved=[];h.NO_PHYSICS||(this.body.setSleepingAllowed(!0),this.body.setAwake(!1),this.body.setIgnoreGravity(!0));a=0;var g=0;if(h.NO_PHYSICS){var f=e.width;e=e.height;this.cacheWidth=this.originalWidth=this.regionWidth=Math.round(Math.abs(a-f));this.cacheHeight=this.originalHeight=this.regionHeight=Math.round(Math.abs(g-e));this.currOffset.x=-(this.cacheWidth/2);this.currOffset.y=-(this.cacheHeight/2);this.resetReal(b, +c)}else if(d[0]instanceof Bb){this.isCircle=!1;b=new Ve;b.setIdentity();c=new ka;O.__cast(d[0],Bb).computeAABB(c,b);a=c.lowerBound.x;f=c.upperBound.x;g=c.lowerBound.y;e=c.upperBound.y;for(var l=0,t=d.length;l<t;){var m=l++,k=new Gf;k.isSensor=!0;k.userData=this;k.shape=d[m];k.friction=1;k.density=.1;k.restitution=0;k.groupID=-1E3;this.body.createFixture(k);O.__cast(d[m],Bb).computeAABB(c,b);a=Math.min(a,c.lowerBound.x);f=Math.max(f,c.upperBound.x);g=Math.min(g,c.lowerBound.y);e=Math.max(e,c.upperBound.y)}this.cacheWidth= +this.originalWidth=this.regionWidth=Math.round(h.toPixelUnits(Math.abs(a-f)));this.cacheHeight=this.originalHeight=this.regionHeight=Math.round(h.toPixelUnits(Math.abs(g-e)))}else d[0]instanceof Hc&&(this.isCircle=!0,this.cacheWidth=this.originalWidth=this.regionWidth=h.toPixelUnits(2*O.__cast(d[0],Hc).m_radius),this.cacheHeight=this.originalHeight=this.regionHeight=h.toPixelUnits(2*O.__cast(d[0],Hc).m_radius))};k["com.stencyl.models.Region"]=kd;kd.__name__="com.stencyl.models.Region";kd.__super__= +tb;kd.prototype=u(tb.prototype,{isCircle:null,containedActors:null,copy:null,simpleBounds:null,regionWidth:null,regionHeight:null,originalWidth:null,originalHeight:null,whenActorEntered:null,whenActorExited:null,justAdded:null,justRemoved:null,containsActor:function(a){return null!=a?this.containedActors.h.hasOwnProperty(a.ID):!1},getContainedActors:function(){return this.containedActors},addActor:function(a){if(null!=a&&-1!=a.ID&&!this.containedActors.h.hasOwnProperty(a.ID)){this.containedActors.h[a.ID]= +a.ID;var b=S.indexOf(this.justRemoved,a);-1==b?this.justAdded.push(a):this.justRemoved.splice(b,1)}},removeActor:function(a){null!=a&&-1!=a.ID&&-1==S.indexOf(this.justRemoved,a)&&(this.containedActors.remove(a.ID),this.justRemoved.push(a))},follow:function(a){var b=a.realY+a.cacheHeight/2;this.setX(a.realX+a.cacheWidth/2);this.setY(b)},resetSize:function(){this.setRegionSize(this.originalWidth,this.originalHeight)},setRegionDiameter:function(a){this.setRegionSize(a,a)},setRegionSize:function(a,b){var c= +this.regionWidth,d=this.regionHeight;a=h.toPhysicalUnits(a);b=h.toPhysicalUnits(b);if(this.isCircle){var e=new Hc;e.m_radius=a/2}else e=new Bb,e.setAsBox(a/2,b/2);var g=new Gf;g.isSensor=!0;g.userData=this;g.shape=e;g.groupID=-1E3;if(null!=this.body&&null!=this.body.getFixtureList()){for(;0<this.body.m_fixtureCount;)this.body.DestroyFixture(this.body.getFixtureList());this.body.createFixture(g);this.cacheWidth=this.regionWidth=h.toPixelUnits(a);this.cacheHeight=this.regionHeight=h.toPixelUnits(b)}a= +this.regionWidth-c;d=this.regionHeight-d;this.setLocation(this.getX()+a/2,this.getY()+d/2)},setLocation:function(a,b){this.setX(a+this.regionWidth/2);this.setY(b+this.regionHeight/2)},getWidth:function(){return this.regionWidth},getHeight:function(){return this.regionHeight},isMouseOver:function(){var a=(K.mouseX+h.cameraX)/h.SCALE,b=(K.mouseY+h.cameraY)/h.SCALE,c=this.getX(),d=this.getY();return a>=c&&b>=d&&a<c+this.regionWidth?b<d+this.regionHeight:!1},innerUpdate:function(a,b){this.clearCollisionInfoList(); +if(h.NO_PHYSICS)for(a=this.containedActors.iterator();a.hasNext();)b=a.next(),b=h.engine.getActor(b),null==this.HITBOX||null==b||this.HITBOX.collide(b.HITBOX)||this.removeActor(b);for(;null!=this.justAdded&&0<this.justAdded.length;)if(b=O.__cast(this.justAdded.pop(),tb),0<this.whenActorEntered.length)for(this.whenActorEntered._dispatchIndex=0;this.whenActorEntered._dispatchIndex<this.whenActorEntered.length;){try{this.whenActorEntered.listeners[this.whenActorEntered._dispatchIndex](b)}catch(c){sa.lastError= +c}++this.whenActorEntered._dispatchIndex}for(;null!=this.justRemoved&&0<this.justRemoved.length;)if(b=O.__cast(this.justRemoved.pop(),tb),0<this.whenActorExited.length)for(this.whenActorExited._dispatchIndex=0;this.whenActorExited._dispatchIndex<this.whenActorExited.length;){try{this.whenActorExited.listeners[this.whenActorExited._dispatchIndex](b)}catch(c){sa.lastError=c}++this.whenActorExited._dispatchIndex}if(null!=this.whenMousedOver&&0<this.whenMousedOver.length)if(this.isMouseOver()){if(0>= +this.mouseState){if(this.mouseState=1,0<this.whenMousedOver.length)for(this.whenMousedOver._dispatchIndex=0;this.whenMousedOver._dispatchIndex<this.whenMousedOver.length;){try{this.whenMousedOver.listeners[this.whenMousedOver._dispatchIndex](this.mouseState)}catch(c){sa.lastError=c}++this.whenMousedOver._dispatchIndex}}else this.mouseState=2;if(K.mousePressed){if(this.mouseState=3,0<this.whenMousedOver.length)for(this.whenMousedOver._dispatchIndex=0;this.whenMousedOver._dispatchIndex<this.whenMousedOver.length;){try{this.whenMousedOver.listeners[this.whenMousedOver._dispatchIndex](this.mouseState)}catch(c){sa.lastError= +c}++this.whenMousedOver._dispatchIndex}}else if(K.mouseDown&&(this.mouseState=4,0<this.whenMousedOver.length))for(this.whenMousedOver._dispatchIndex=0;this.whenMousedOver._dispatchIndex<this.whenMousedOver.length;){try{this.whenMousedOver.listeners[this.whenMousedOver._dispatchIndex](this.mouseState)}catch(c){sa.lastError=c}++this.whenMousedOver._dispatchIndex}if(K.mouseReleased&&(this.mouseState=5,0<this.whenMousedOver.length))for(this.whenMousedOver._dispatchIndex=0;this.whenMousedOver._dispatchIndex< +this.whenMousedOver.length;){try{this.whenMousedOver.listeners[this.whenMousedOver._dispatchIndex](this.mouseState)}catch(c){sa.lastError=c}++this.whenMousedOver._dispatchIndex}}else if(0<this.mouseState){if(this.mouseState=-1,0<this.whenMousedOver.length)for(this.whenMousedOver._dispatchIndex=0;this.whenMousedOver._dispatchIndex<this.whenMousedOver.length;){try{this.whenMousedOver.listeners[this.whenMousedOver._dispatchIndex](this.mouseState)}catch(c){sa.lastError=c}++this.whenMousedOver._dispatchIndex}}else-1== +this.mouseState&&(this.mouseState=0)},__class__:kd});var jl=function(a,b){this.currW=this.currH=0;this.ID=a;this.name=b};k["com.stencyl.models.Scene"]=jl;jl.__name__="com.stencyl.models.Scene";jl.prototype={ID:null,name:null,sceneWidth:null,sceneHeight:null,tileWidth:null,tileHeight:null,gravityX:null,gravityY:null,eventID:null,colorBackground:null,layers:null,actors:null,behaviorValues:null,atlases:null,retainsAtlases:null,wireframes:null,joints:null,regions:null,terrainRegions:null,animatedTiles:null, +load:function(){var a=new Og(gf.get(),!1,!0);a.readData(yb.toBytes(qa.getBytes("assets/data/scene-"+this.ID+".mbs")));a=a.getRoot();var b=a.getDepth();this.sceneWidth=a.getWidth();this.sceneHeight=a.getHeight();this.tileWidth=a.getTileWidth();this.tileHeight=a.getTileHeight();this.gravityX=a.getGravityX();this.gravityY=a.getGravityY();this.animatedTiles=[];this.actors=this.readActors(a.getActorInstances());this.behaviorValues=pe.readBehaviors(a.getSnippets());var c=a.getEventSnippetID();if(-1<c){var d= +this.behaviorValues,e=new Gj(c,new V);d.h[""+c]=e}this.joints=this.readJoints(a.getJoints());this.regions=this.readRegions(a.getRegions());this.terrainRegions=this.readTerrainRegions(a.getTerrainRegions());this.wireframes=this.readWireframes(a.getTerrain());c=qa.getBytes("assets/data/scene-"+this.ID+".scn");c.__endian=0;b=this.readRawLayers(c,b);this.layers=this.readAllLayers(a.getLayers(),b);this.atlases=(this.retainsAtlases=a.getRetainAtlases())?[]:this.readAtlases(a.getAtlasMembers())},unload:function(){this.animatedTiles= +this.terrainRegions=this.regions=this.joints=this.wireframes=this.layers=this.behaviorValues=this.actors=this.colorBackground=null},readRegions:function(a){for(var b=new Sa,c=0,d=a.length();c<d;){c++;var e=this.readRegion(a.getNextObject());b.h[e.ID]=e}return b},readRegion:function(a){var b=a.getId(),c=a.getName(),d=a.getX(),e=a.getY();this.shapeList=[];var g=a.getShape();if(g instanceof nd){a=this.currW=g.getWidth();var f=this.currH=g.getHeight();g=g.getPoints();h.NO_PHYSICS?b=new Ai(this.shapeList, +b,c,d,e,0,new fa(0,0,a,f)):(a=qd.readPoints(g).slice(0),(new wc(a)).decompose(q(this,this.addPolygonRegion)),b=new Ai(this.shapeList,b,c,d,e))}else f=g.getRadius(),h.NO_PHYSICS?b=new Ai(this.shapeList,b,c,d,e,0,new fa(0,0,2*f,2*f)):(a=new Hc,a.m_radius=h.toPhysicalUnits(f),this.shapeList[0]=a,b=new Ai(this.shapeList,b,c,d,e));return b},shapeList:null,currW:null,currH:null,addPolygonRegion:function(a){a=O.__cast(qd.createPolygon("MbsPolyRegion",a.points,this.currW,this.currH),Bb);this.shapeList.push(a)}, +addPolygonTerrain:function(a){a=O.__cast(qd.createPolygon("MbsPolyRegion",a.points,this.currW,this.currH),Bb);this.shapeList.push(a)},readTerrainRegions:function(a){for(var b=new Sa,c=0,d=a.length();c<d;){c++;var e=this.readTerrainRegion(a.getNextObject());b.h[e.ID]=e}return b},readTerrainRegion:function(a){var b=a.getId(),c=a.getName(),d=a.getGroupID(),e=h.toPhysicalUnits(a.getX()),g=h.toPhysicalUnits(a.getY()),f=a.getColor();this.shapeList=[];a=a.getShape();if(a instanceof nd)this.currW=a.getWidth(), +this.currH=a.getHeight(),a=qd.readPoints(a.getPoints()).slice(0),(new wc(a)).decompose(q(this,this.addPolygonTerrain));else{var l=a.getRadius();a=new Hc;a.m_radius=h.toPhysicalUnits(l);this.shapeList[0]=a}return new no(this.shapeList,b,c,e,g,d,f)},readJoints:function(a){for(var b=new Sa,c=0,d=a.length();c<d;){c++;var e=this.readJoint(a.readObject());b.h[e.ID]=e}return b},readJoint:function(a){var b=a.getId(),c=a.getActor1(),d=a.getActor2(),e=a.getCollide();if(a instanceof xd){var g=new Lh;g.ID=b; +g.actor1=c;g.actor2=d;g.localAnchorA=null;g.localAnchorB=null;g.collideConnected=e;g.dampingRatio=a.getDamping();g.frequencyHz=a.getFrequency();return g}return a instanceof ec?(g=new Mh,g.ID=b,g.actor1=c,g.actor2=d,g.localAnchorA=null,g.localAnchorB=null,g.collideConnected=e,g.enableLimit=a.getLimit(),g.enableMotor=a.getMotor(),g.lowerAngle=a.getLower(),g.upperAngle=a.getUpper(),g.maxMotorTorque=a.getTorque(),g.motorSpeed=a.getSpeed(),g):a instanceof Mb?(g=new Nh,g.ID=b,g.actor1=c,g.actor2=d,g.localAnchorA= +null,g.localAnchorB=null,g.collideConnected=e,g.enableLimit=a.getLimit(),g.enableMotor=a.getMotor(),g.lowerTranslation=a.getLower(),g.upperTranslation=a.getUpper(),g.maxMotorForce=a.getForce(),g.motorSpeed=a.getSpeed(),g.localAxisA.x=a.getX(),g.localAxisA.y=a.getY(),g):null},readAllLayers:function(a,b){var c=new we(16);c.reuseIterator=!0;for(var d=0,e=a.length();d<e;){d++;var g=a.readObject();if(g instanceof ae||g instanceof vd)this.colorBackground=this.readColorBackground(g);else{var f=g,l=f.getId(), +t=f.getName(),m=f.getOrder(),h=f.getScrollFactorX(),p=f.getScrollFactorY(),k=f.getOpacity()/100;f=gl.get(f.getBlendmode());if(g instanceof be){var n=b.mH;g=n.mHash[73856093*l&n.mMask];if(-1==g)g=-2147483648;else if(n=n.mData,n[g]==l)g=n[g+1];else{var r=-2147483648;for(g=n[g+2];-1!=g;){if(n[g]==l){r=n[g+1];break}g=n[g+2]}g=r}g=-2147483648==g?null:b.mVals[g];null==g&&(g=new ie(l,this,Math.floor(this.sceneWidth/this.tileWidth)|0,Math.floor(this.sceneHeight/this.tileHeight)|0));g.set_name(t);l=new Ac(l, +t,m,h,p,k,f,g);c.set(l.ID,l)}else g instanceof wd&&(n=g,g=n.getResourceID(),n=n.getCustomScroll(),l=new Sd(l,t,m,h,p,k,f,g,n),c.set(l.ID,l))}}return c},readColorBackground:function(a){if(a instanceof ae){var b=a.getColor();return new If(b)}return a instanceof vd?(b=a.getColor1(),a=a.getColor2(),new vi(b,a)):null},readRawLayers:function(a,b){var c=new we(16);c.reuseIterator=!0;var d=[];if(null!=a){for(var e=0,g=b;e<g;){var f=e++;d[f]=a.readInt()}e=0;for(g=b;e<g;)f=e++,b=this.readRawLayer(a,d[f]),c.set(b.layerID, +b)}return c},readRawLayer:function(a,b){var c=Math.floor(this.sceneWidth/this.tileWidth)|0,d=Math.floor(this.sceneHeight/this.tileHeight)|0,e=a.readInt();b-=4;a.readInt();b-=4;d=new ie(e,this,c,d);var g=e=0;b=b/8|0;var f=new kl(this.sceneWidth,this.sceneHeight,this.tileWidth,this.tileHeight);d.grid=f;for(var l=0;l<b;){l++;var t=a.readShort(),m=a.readShort(),h=a.readShort(),p=a.readShort(),k=null;-1!=m&&(k=ic.get().resources.get(m));0>t&&(t=Math.abs(t+1)|0);for(m=0;m<p;){m++;if(null==k||0>h)d.setTileAt(e, +g,null,!1);else{var n=k.tiles[h];if(null==n)d.setTileAt(e,g,null,!1);else if(d.setTileAt(e,g,n,!1),d.autotileData[e][g]=t,0<=n.collisionID&&f.setTile(g,e,!0),1<n.durations.length){for(var r=!1,q=0,v=this.animatedTiles;q<v.length&&!(r=v[q],++q,r=r==n););r||this.animatedTiles.push(n)}}++g;g>=c&&(g=0,++e)}}return d},readAtlases:function(a){for(var b=[],c=0,d=a.length();c<d;){c++;var e=a.readInt();va.get().atlases.h[e].allScenes||b.push(e)}return b},readWireframes:function(a){if(h.NO_PHYSICS)return[]; +for(var b=[],c=0,d=a.length();c<d;){c++;var e=a.getNextObject(),g=e.getPosition();g=new oa(g.getX(),g.getY());e=qd.readPoints(e.getPoints()).slice(0);e=qd.createPolygon("MbsWireframe",e);b.push(new oo(g.x,g.y,e.h[1],e.h[2],e.h[0],null))}return b},readActors:function(a){for(var b=new Sa,c=0,d=a.length();c<d;){c++;var e=this.readActorInstance(a.getNextObject());null!=e&&(b.h[e.elementID]=e)}return b},readActorInstance:function(a){var b=a.getAid(),c=a.getX(),d=a.getY(),e=a.getScaleX(),g=a.getScaleY(), +f=a.getZ(),l=a.getOrderInLayer(),t=a.getAngle()|0,m=a.getGroupID(),h=a.getId(),p=a.getCustomized(),k=null;p&&(k=pe.readBehaviors(a.getSnippets()));if(0==e||0==g)g=e=1;p||(k=null);if(null==ic.get().resources.get(h))return null;a=new $k(b,c,d,e,g,f,l,t,m,h,k,p);null!=a.actorType&&(a.groupID=a.actorType.groupID);return a},getID:function(){return this.ID},__class__:jl};var Oh=function(a,b,c,d,e,g,f,l){cd.call(this,a,b,-1);this.streaming=c;this.looping=d;this.panning=e;this.volume=g;this.ext=f;this.atlasID= +l;this.ext="ogg";a=va.get().atlases.h[l];null!=a&&a.active&&this.loadGraphics()};k["com.stencyl.models.Sound"]=Oh;Oh.__name__="com.stencyl.models.Sound";Oh.__super__=cd;Oh.prototype=u(cd.prototype,{streaming:null,looping:null,panning:null,volume:null,ext:null,src:null,loadGraphics:function(){this.src=qa.getSound("assets/"+(this.streaming?"music":"sfx")+"/sound-"+this.ID+"."+this.ext,!1)},unloadGraphics:function(){this.streaming||(null!=this.src&&(this.stopInstances(),this.src.close()),this.src=null)}, +play:function(a,b){null==b&&(b=0);this.streaming&&null==this.src&&(this.src=this.getStreamingSource());return null==this.src?null:this.src.play(b)},loop:function(a,b){null==b&&(b=0);this.streaming&&null==this.src&&(this.src=this.getStreamingSource());return null==this.src?null:this.src.play(b,1E8)},getStreamingSource:function(){return qa.getSound("assets/music/sound-"+this.ID+"."+this.ext,!1)},stopInstances:function(){for(var a=0;32>a;){var b=a++;b=h.engine.channels[b];b.currentSource==this.src&& +b.stopSound()}},__class__:Oh});var Ub=function(a,b){this.paused=!1;this.currentClip=this.currentSound=null;this.looping=!1;this.volume=1;this.position=this.panning=0;this.channelNum=b;this.engine=a;this.transform=new hf;this.tweenVolume=new tc;this.tweenVolume.doOnUpdate(q(this,this.tweenUpdated))};k["com.stencyl.models.SoundChannel"]=Ub;Ub.__name__="com.stencyl.models.SoundChannel";Ub.resetStatics=function(){Ub.muted=!1;Ub.masterVolume=1};Ub.prototype={currentSource:null,currentSound:null,currentClip:null, +volume:null,panning:null,channelNum:null,looping:null,paused:null,position:null,engine:null,transform:null,tweenVolume:null,playSound:function(a,b){null==b&&(b=0);null!=this.currentSound&&(this.currentSound.stop(),this.paused=!1);if(null!=a){a.volume=this.volume*Ub.masterVolume;this.currentClip=a;this.currentSound=a.play(this.channelNum,b);if(null==this.currentSound)return this.currentClip=null;this.setVolume(this.volume);this.setPanning(this.panning);this.currentSound.addEventListener("soundComplete", +q(this,this.stopped))}null!=a&&(this.currentSource=a.src);this.looping=!1;return this.currentSound},loopSound:function(a,b){null==b&&(b=0);null!=this.currentSound&&this.currentSound.stop();if(null!=a){a.volume=this.volume*Ub.masterVolume;this.currentClip=a;this.currentSound=a.play(this.channelNum,b);if(null==this.currentSound)return this.currentClip=null;this.setVolume(this.volume);this.setPanning(this.panning);this.currentSound.addEventListener("soundComplete",q(this,this.looped))}null!=a&&(this.currentSource= +a.src);this.looping=!0;return this.currentSound},setPause:function(a){null!=this.currentSound&&(a?(this.currentSound.removeEventListener("soundComplete",q(this,this.looped)),this.position=this.currentSound.get_position(),this.currentSound.stop(),this.paused=!0):null!=this.currentSource&&this.paused&&(this.currentSound=this.currentClip.play(this.channelNum,this.position),this.currentSound.set_soundTransform(this.transform),this.currentSound.addEventListener("soundComplete",q(this,this.stopped)),this.looping&& +this.currentSound.addEventListener("soundComplete",q(this,this.looped)),this.paused=!1))},looped:function(a){null!=this.currentSound&&this.currentSound.removeEventListener("soundComplete",q(this,this.looped));this.loopSound(this.currentClip)},stopped:function(a){null!=this.currentSound&&this.currentSound.removeEventListener("soundComplete",q(this,this.stopped));h.engine.soundFinished(this.channelNum)},stopSound:function(){null!=this.currentSound&&(this.currentSound.stop(),this.position=0,this.currentSound= +this.currentSource=null,this.paused=!1)},tweenUpdated:function(){this.setVolume(this.tweenVolume.value)},fadeInSound:function(a){null!=this.currentSound&&this.tweenVolume.tween(this.transform.volume,1,ia.linear,1E3*a|0)},fadeOutSound:function(a){null!=this.currentSound&&this.tweenVolume.tween(this.transform.volume,0,ia.linear,1E3*a|0)},fadeSound:function(a,b){null!=this.currentSound&&this.tweenVolume.tween(this.transform.volume,b,ia.linear,1E3*a|0)},setVolume:function(a){this.volume=a;null!=this.currentSound&& +(this.transform.volume=a*Ub.masterVolume,this.currentSound.set_soundTransform(this.transform))},setPanning:function(a){this.panning=a;null!=this.currentSound&&(this.transform.pan=a,this.currentSound.set_soundTransform(this.transform))},__class__:Ub};var Mg=function(a,b,c,d,e,g){null==g&&(g=0);tb.call(this,a,-1,e,b,c,-1,1,1,null,null,null,null,!1,!0,!1,!1,d[0]);0==g&&(c=b=a=0,null==c&&(c=0),null==b&&(b=0),null==a&&(a=0),g=a<<16|b<<8|c);this.fillColor=g;this.alwaysSimulate=!0;this.isRegion=!1;this.isTerrainRegion= +!0;this.copy=d[0];this.body.setSleepingAllowed(!0);this.body.setAwake(!1);this.body.setIgnoreGravity(!0);if(d[0]instanceof Bb){this.isCircle=!1;var f=new Ve;f.setIdentity();var l=new ka;O.__cast(d[0],Bb).computeAABB(l,f);a=l.lowerBound.x;b=l.upperBound.x;c=l.lowerBound.y;g=l.upperBound.y;for(var t=0,m=d.length;t<m;){var k=t++,p=new Gf;p.isSensor=!1;p.userData=this;p.shape=d[k];p.friction=1;p.density=.1;p.restitution=0;p.groupID=e;this.body.createFixture(p);O.__cast(d[k],Bb).computeAABB(l,f);a=Math.min(a, +l.lowerBound.x);b=Math.max(b,l.upperBound.x);c=Math.min(c,l.lowerBound.y);g=Math.max(g,l.upperBound.y)}this.originalWidth=this.regionWidth=Math.round(h.toPixelUnits(Math.abs(a-b)));this.originalHeight=this.regionHeight=Math.round(h.toPixelUnits(Math.abs(c-g)))}else d[0]instanceof Hc&&(this.isCircle=!0,this.originalWidth=this.regionWidth=h.toPixelUnits(2*O.__cast(d[0],Hc).m_radius),this.originalHeight=this.regionHeight=h.toPixelUnits(2*O.__cast(d[0],Hc).m_radius))};k["com.stencyl.models.Terrain"]= +Mg;Mg.__name__="com.stencyl.models.Terrain";Mg.__super__=tb;Mg.prototype=u(tb.prototype,{isCircle:null,fillColor:null,copy:null,originalWidth:null,originalHeight:null,regionWidth:null,regionHeight:null,follow:function(a){var b=a.realY+a.cacheHeight/2;this.setX(a.realX+a.cacheWidth/2);this.setY(b)},resetSize:function(){this.setRegionSize(this.originalWidth,this.originalHeight)},setRegionDiameter:function(a){this.setRegionSize(a,a)},setRegionSize:function(a,b){var c=this.regionWidth,d=this.regionHeight; +a=h.toPhysicalUnits(a);b=h.toPhysicalUnits(b);if(this.isCircle){var e=new Hc;e.m_radius=a/2}else e=new Bb,e.setAsBox(a/2,b/2);var g=new Gf;g.isSensor=!0;g.userData=this;g.shape=e;if(null!=this.body&&null!=this.body.getFixtureList()){for(;0<this.body.m_fixtureCount;)this.body.DestroyFixture(this.body.getFixtureList());this.body.createFixture(g);this.regionWidth=h.toPixelUnits(a);this.regionHeight=h.toPixelUnits(b)}a=this.regionWidth-c;d=this.regionHeight-d;this.setLocation(this.getX()+a/2,this.getY()+ +d/2)},setLocation:function(a,b){this.setX(a+this.regionWidth/2);this.setY(b+this.regionHeight/2)},getWidth:function(){return this.regionWidth},getHeight:function(){return this.regionHeight},getFillColor:function(){return this.fillColor},__class__:Mg});var jo=function(){this.xy=new Kf;this.angle=new tc;this.alpha=new tc;this.realScaleXY=new Kf};k["com.stencyl.models.actor.ActorTweenProperties"]=jo;jo.__name__="com.stencyl.models.actor.ActorTweenProperties";jo.prototype={xy:null,angle:null,alpha:null, +realScaleXY:null,pause:function(){this.xy.paused=!0;this.angle.paused=!0;this.alpha.paused=!0;this.realScaleXY.paused=!0},unpause:function(){this.xy.paused=!1;this.angle.paused=!1;this.alpha.paused=!1;this.realScaleXY.paused=!1},cancel:function(){this.xy.active&&jb.cancel(this.xy);this.angle.active&&jb.cancel(this.angle);this.alpha.active&&jb.cancel(this.alpha);this.realScaleXY.active&&jb.cancel(this.realScaleXY)},__class__:jo};var cg=function(a,b,c,d,e,g,f,l,t,m,h){cd.call(this,a,c,b);this.groupID= +d;this.spriteID=e;this.behaviorValues=g;this.bodyDef=f;this.physicsMode=l;this.autoScale=t;this.pausable=m;this.ignoreGravity=h};k["com.stencyl.models.actor.ActorType"]=cg;cg.__name__="com.stencyl.models.actor.ActorType";cg.__super__=cd;cg.prototype=u(cd.prototype,{groupID:null,spriteID:null,behaviorValues:null,bodyDef:null,physicsMode:null,autoScale:null,pausable:null,ignoreGravity:null,toString:function(){return this.name},loadGraphics:function(){ic.get().resources.get(this.spriteID).loadGraphics()}, +unloadGraphics:function(){ic.get().resources.get(this.spriteID).unloadGraphics()},__class__:cg});var me=function(a,b,c,d,e,g,f,l,t,m,h,p,k,n,r){this.sharedTimer=this.sharedFrameIndex=0;this.animID=a;this.animName=b;this.parent=c;this.simpleShapes=d;this.physicsShapes=e;this.looping=g;this.sync=f;this.durations=p;null==me.UNLOADED&&(me.UNLOADED=new Ja(1,1));a=[];for(b=0;b<k;)b++,a.push(me.UNLOADED);this.frames=a;this.frameWidth=l/n|0;this.frameHeight=t/r|0;this.imgWidth=l;this.imgHeight=t;this.frameCount= +k;this.framesAcross=n;this.framesDown=r;this.originX=m;this.originY=h;null==c?this.frames=[me.UNLOADED]:(c=va.get().atlases.h[c.atlasID],null!=c&&c.active&&this.loadGraphics(),1<k&&g&&me.allAnimations.push(this))};k["com.stencyl.models.actor.Animation"]=me;me.__name__="com.stencyl.models.actor.Animation";me.resetStatics=function(){me.allAnimations=[]};me.updateAll=function(a){for(var b=0,c=me.allAnimations;b<c.length;){var d=c[b];++b;d.update(a)}};me.prototype={animID:null,animName:null,parent:null, +simpleShapes:null,physicsShapes:null,looping:null,sync:null,durations:null,frames:null,frameWidth:null,frameHeight:null,originX:null,originY:null,sharedTimer:null,sharedFrameIndex:null,imgWidth:null,imgHeight:null,frameCount:null,framesAcross:null,framesDown:null,graphicsLoaded:null,loadGraphics:function(){if(!this.graphicsLoaded){var a=qa.getBitmapData("assets/graphics/"+h.IMG_BASE+"/sprite-"+this.parent.ID+"-"+this.animID+".png",!1);null==a.rect&&(a=null);if(null==a){var b=[],c=0;for(a=this.frameCount;c< +a;)c++,b.push(me.UNLOADED);this.frames=b}else{if(1==this.frameCount)this.frames[0]=a;else{var d=this.frameWidth*h.SCALE|0,e=this.frameHeight*h.SCALE|0,g=new oa(0,0);b=0;for(c=this.frameCount;b<c;){var f=b++;var l=new fa(f%this.framesAcross*d,Math.floor(f/this.framesAcross)*e,d,e),t=new Ja(d,e,!0,0);t.copyPixels(a,l,g);this.frames[f]=t}a.dispose()}if(ja.disposeImages&&null!=this.parent&&!this.parent.readableImages)for(b=0,c=this.frames;b<c.length;)a=c[b],++b,$c.uploadTexture(a,!0);this.graphicsLoaded= +!0}}},unloadGraphics:function(){if(this.graphicsLoaded){for(var a=0,b=this.frameCount;a<b;){var c=a++;this.frames[c].readable&&this.frames[c].dispose();this.frames[c]=me.UNLOADED}this.graphicsLoaded=!1}},checkImageReadable:function(){return this.frames[0].readable?!0:!1},update:function(a){this.sharedTimer+=a;1<this.frameCount&&this.sharedTimer>this.durations[this.sharedFrameIndex]&&(this.sharedTimer-=this.durations[this.sharedFrameIndex],this.sharedFrameIndex++,this.sharedFrameIndex>=this.frameCount&& +(this.looping?this.sharedFrameIndex=0:this.sharedFrameIndex--))},__class__:me};var qc=function(){this.points=[];this.bounds=new fa;this.clear()};k["com.stencyl.models.actor.Collision"]=qc;qc.__name__="com.stencyl.models.actor.Collision";qc.resetStatics=function(){qc.recycledCollisions=[];qc.collisionResponses=new Sa};qc.addResponse=function(a,b,c){var d=-1,e=-1;a instanceof cg?d=a.groupID:a instanceof xe&&(d=a.ID);b instanceof cg?e=b.groupID:b instanceof xe&&(e=b.ID);null==qc.collisionResponses.h[d]&& +(a=qc.collisionResponses,b=new Sa,a.h[d]=b);null==qc.collisionResponses.h[e]&&(a=qc.collisionResponses,b=new Sa,a.h[e]=b);qc.collisionResponses.h[d].h[e]=c;qc.collisionResponses.h[e].h[d]=c};qc.preSolve=function(a,b){b=a.getFixtureA().getBody().groupID;var c=a.getFixtureB().getBody().groupID;null!=qc.collisionResponses.h[b]&&"sensor"==qc.collisionResponses.h[b].h[c]&&a.setEnabled(!1)};qc.get=function(){return 0<qc.recycledCollisions.length?qc.recycledCollisions.pop():new qc};qc.recycle=function(a){a.clear(); +qc.recycledCollisions.push(a)};qc.prototype={thisFromTop:null,thisFromLeft:null,thisFromBottom:null,thisFromRight:null,thisCollidedWithActor:null,thisCollidedWithTile:null,thisCollidedWithSensor:null,thisCollidedWithTerrain:null,otherFromTop:null,otherFromLeft:null,otherFromBottom:null,otherFromRight:null,otherCollidedWithActor:null,otherCollidedWithTile:null,otherCollidedWithSensor:null,otherCollidedWithTerrain:null,points:null,thisActor:null,otherActor:null,thisShape:null,otherShape:null,actorA:null, +actorB:null,maskA:null,maskB:null,groupA:null,groupB:null,bounds:null,useBounds:null,remove:null,solidCollision:null,linkedCollision:null,clear:function(){for(;0<this.points.length;)this.points.pop();this.remove=this.solidCollision=this.useBounds=this.otherCollidedWithTerrain=this.otherCollidedWithSensor=this.otherCollidedWithTile=this.otherCollidedWithActor=this.otherFromRight=this.otherFromBottom=this.otherFromLeft=this.otherFromTop=this.thisCollidedWithTerrain=this.thisCollidedWithSensor=this.thisCollidedWithTile= +this.thisCollidedWithActor=this.thisFromRight=this.thisFromBottom=this.thisFromLeft=this.thisFromTop=!1;this.linkedCollision=this.maskA=this.maskB=this.actorB=this.actorA=this.otherShape=this.thisShape=this.otherActor=this.thisActor=null;this.bounds.setEmpty()},switchData:function(a){if(null==a)return null;a.thisActor=this.otherActor;a.thisShape=this.otherShape;a.thisFromTop=this.otherFromTop;a.thisFromLeft=this.otherFromLeft;a.thisFromBottom=this.otherFromBottom;a.thisFromRight=this.otherFromRight; +a.thisCollidedWithActor=this.otherCollidedWithActor;a.thisCollidedWithTile=this.otherCollidedWithTile;a.thisCollidedWithSensor=this.otherCollidedWithSensor;a.thisCollidedWithTerrain=this.otherCollidedWithTerrain;a.otherActor=this.thisActor;a.otherShape=this.thisShape;a.otherFromTop=this.thisFromTop;a.otherFromLeft=this.thisFromLeft;a.otherFromBottom=this.thisFromBottom;a.otherFromRight=this.thisFromRight;a.otherCollidedWithActor=this.thisCollidedWithActor;a.otherCollidedWithTile=this.thisCollidedWithTile; +a.otherCollidedWithSensor=this.thisCollidedWithSensor;a.otherCollidedWithTerrain=this.thisCollidedWithTerrain;a.actorA=this.actorA;a.actorB=this.actorB;a.points=this.points;a.useBounds=this.useBounds;a.maskA=this.maskA;a.maskB=this.maskB;a.solidCollision=this.solidCollision;a.groupA=this.groupA;a.groupB=this.groupB;a.linkedCollision=this;return this.linkedCollision=a},__class__:qc};var Kd=function(a,b,c,d){this.x=a;this.y=b;this.normalX=c;this.normalY=d};k["com.stencyl.models.actor.CollisionPoint"]= +Kd;Kd.__name__="com.stencyl.models.actor.CollisionPoint";Kd.resetStatics=function(){Kd.freedCollisionPoints=[]};Kd.get=function(a,b,c,d){if(0<Kd.freedCollisionPoints.length){var e=Kd.freedCollisionPoints.pop();e.x=a;e.y=b;e.normalX=c;e.normalY=d;return e}return new Kd(a,b,c,d)};Kd.free=function(a){Kd.freedCollisionPoints.push(a)};Kd.prototype={x:null,y:null,normalX:null,normalY:null,__class__:Kd};var xe=function(a,b){this.name=b;this.ID=a;this.sID="[Group "+a+","+b+"]";this.list=[]};k["com.stencyl.models.actor.Group"]= +xe;xe.__name__="com.stencyl.models.actor.Group";xe.prototype={list:null,name:null,ID:null,sID:null,addChild:function(a){this.list.push(a)},removeChild:function(a){},toString:function(){return this.sID},__class__:xe};var ri=function(a,b,c,d,e){cd.call(this,a,c,b);this.defaultAnimation=d;this.readableImages=e;this.animations=new Sa};k["com.stencyl.models.actor.Sprite"]=ri;ri.__name__="com.stencyl.models.actor.Sprite";ri.__super__=cd;ri.prototype=u(cd.prototype,{defaultAnimation:null,animations:null, +readableImages:null,loadGraphics:function(){for(var a=this.animations.iterator();a.hasNext();)a.next().loadGraphics()},unloadGraphics:function(){for(var a=this.animations.iterator();a.hasNext();)a.next().unloadGraphics()},reloadGraphics:function(a){-1==a?(this.unloadGraphics(),this.loadGraphics()):(this.animations.h[a].unloadGraphics(),this.animations.h[a].loadGraphics());for(var b=h.engine.allActors.iterator();b.hasNext();){var c=b.next();null==c||c.dead||c.recycled||c.type.spriteID==this.ID&&c.reloadAnimationGraphics(a)}}, +get_width:function(){var a=this.animations.h[this.defaultAnimation];return a.imgWidth/a.framesAcross|0},get_height:function(){var a=this.animations.h[this.defaultAnimation];return a.imgHeight/a.framesDown|0},__class__:ri,__properties__:{get_height:"get_height",get_width:"get_width"}});var If=function(a){cd.call(this,0,"Color Background",-1);this.bgColor=a;a==If.WHITE&&(this.bgColor=16777215)};k["com.stencyl.models.background.ColorBackground"]=If;If.__name__="com.stencyl.models.background.ColorBackground"; +If.__interfaces__=[Rh];If.__super__=cd;If.prototype=u(cd.prototype,{bgColor:null,update:function(){},draw:function(a,b,c,d,e){this.bgColor!=If.TRANSPARENT&&(a.clear(),a.beginFill(this.bgColor),a.drawRect(0,0,d,e),a.endFill(),a.drawCircle(1,1,1))},__class__:If});var vi=function(a,b){cd.call(this,0,"Gradient Background",-1);this.topColor=a;this.bottomColor=b};k["com.stencyl.models.background.GradientBackground"]=vi;vi.__name__="com.stencyl.models.background.GradientBackground";vi.__interfaces__=[Rh]; +vi.__super__=cd;vi.prototype=u(cd.prototype,{topColor:null,bottomColor:null,update:function(){},draw:function(a,b,c,d,e){b=[this.topColor,this.bottomColor];c=new Aa;c.createGradientBox(d,e,Math.PI/2,0,0);a.clear();var g=new Ja(1,1);a.beginBitmapFill(g);a.endFill();a.beginGradientFill(0,b,[100,100],[0,255],c,0);a.drawRect(0,0,d,e);a.endFill()},__class__:vi});var yg=function(a,b,c,d,e,g,f){cd.call(this,a,c,b);this.parallaxX=e;this.parallaxY=g;this.durations=d;this.repeats=f;this.currFrame=this.currTime= +0;this.isAtlasActive()&&this.loadGraphics();this.repeated=!1};k["com.stencyl.models.background.ImageBackground"]=yg;yg.__name__="com.stencyl.models.background.ImageBackground";yg.__interfaces__=[Rh];yg.__super__=cd;yg.prototype=u(cd.prototype,{currFrame:null,currTime:null,img:null,frames:null,durations:null,parallaxX:null,parallaxY:null,repeats:null,repeated:null,graphicsLoaded:null,update:function(){},draw:function(a,b,c,d,e){},drawRepeated:function(a,b,c){a=this.img.width;var d=this.img.height, +e=new fa(0,0,a,d);if(!(a>=b&&d>=c)){a<b&&(b+=(a|0)-b%(a|0));d<c&&(c+=(d|0)-c%(d|0));var g=new Ja(Math.max(b,a)|0,Math.max(c,d)|0),f=0;for(c=(c/d|0)+1;f<c;)for(var l=f++,t=0,m=(b/a|0)+1;t<m;){var h=t++;g.copyPixels(this.img,e,new oa(h*a,l*d))}this.img=g}this.repeated=!0},loadGraphics:function(){if(!this.graphicsLoaded){var a=[],b=this.durations.length;if(0<b)for(var c=0;c<b;){var d=c++;a.push(qa.getBitmapData("assets/graphics/"+h.IMG_BASE+"/background-"+this.ID+"-"+d+".png",!1))}else a.push(qa.getBitmapData("assets/graphics/"+ +h.IMG_BASE+"/background-"+this.ID+"-0.png",!1));this.frames=[];c=0;for(b=a.length;c<b;)d=c++,this.repeats?(this.img=a[d],this.drawRepeated(null,h.screenWidth*h.SCALE|0,h.screenHeight*h.SCALE|0),this.frames.push(this.img)):this.frames.push(a[d]);this.img=this.frames[0];this.graphicsLoaded=!0}},unloadGraphics:function(){if(this.graphicsLoaded){this.img=new Ja(1,1);this.currFrame=0;this.repeated=!1;this.frames=[];for(var a=0,b=this.durations;a<b.length;)++a,this.frames.push(this.img);this.graphicsLoaded= +!1}},reloadGraphics:function(a){cd.prototype.reloadGraphics.call(this,a);a=0;for(var b=h.engine.backgroundLayers;a<b.length;){var c=b[a];++a;c.model==this&&c.reload(c.resourceID)}},__class__:yg});var sh=function(a,b,c,d,e,g,f,l,t){yg.call(this,a,b,c,d,e,g,f);this.xVelocity=l;this.yVelocity=t};k["com.stencyl.models.background.ScrollingBackground"]=sh;sh.__name__="com.stencyl.models.background.ScrollingBackground";sh.__interfaces__=[Rh];sh.__super__=yg;sh.prototype=u(yg.prototype,{xVelocity:null,yVelocity:null, +update:function(){},draw:function(a,b,c,d,e){},__class__:sh});var Af=function(){this.reset()};k["com.stencyl.models.collision.CollisionInfo"]=Af;Af.__name__="com.stencyl.models.collision.CollisionInfo";Af.resetStatics=function(){Af.infoArray=[]};Af.getCollisionInfo=function(){return 0<Af.infoArray.length?Af.infoArray.pop():new Af};Af.recycle=function(a){Af.infoArray.push(a)};Af.prototype={max:null,min:null,maskA:null,maskB:null,solidCollision:null,reset:function(){this.max=this.min=0;this.maskA=this.maskB= +null;this.solidCollision=!0},__class__:Af};var gg=function(){this.collideTypes=[];this.solid=!0;this._class=O.getClass(this).__name__;var a=this._check=new V,b=gg.__name__;a.h[b]=q(this,this.collideMask);a=this._check;b=zi.__name__;a.h[b]=q(this,this.collideMasklist);this.lastBounds=new fa;this.lastColID=-1};k["com.stencyl.models.collision.Mask"]=gg;gg.__name__="com.stencyl.models.collision.Mask";gg.prototype={parent:null,groupID:null,list:null,lastBounds:null,lastCheckedMask:null,lastColID:null, +solid:null,collideTypes:null,collide:function(a){if(null==this.parent)throw R.thrown("Mask must be attached to a parent Entity");var b=this._check.h[a._class];if(null!=b)return b(a);b=a._check.h[this._class];return null!=b?b(this):!1},collideMask:function(a){return this.parent.colX+this.parent.cacheWidth>a.parent.colX&&this.parent.colY+this.parent.cacheHeight>a.parent.colY&&this.parent.colX<a.parent.colX+a.parent.cacheWidth&&this.parent.colY<a.parent.colY+a.parent.cacheHeight?(this.lastBounds.x=this.parent.colX, +this.lastBounds.y=this.parent.colY,this.lastBounds.width=this.parent.cacheWidth,this.lastBounds.height=this.parent.cacheHeight,this.lastCheckedMask=this,!0):!1},collideMasklist:function(a){return a.collide(this)},assignTo:function(a){this.parent=a;null!=a&&this.update()},debugDraw:function(a,b,c){},update:function(){},projectMask:function(a,b){var c=-9999999999,d=9999999999,e=-this.parent.currOffset.x*a.x-this.parent.currOffset.y*a.y;e<d&&(d=e);e>c&&(c=e);e=(-this.parent.currOffset.x+this.parent.cacheWidth)* +a.x-this.parent.currOffset.y*a.y;e<d&&(d=e);e>c&&(c=e);e=-this.parent.currOffset.x*a.x+(-this.parent.currOffset.y+this.parent.cacheHeight)*a.y;e<d&&(d=e);e>c&&(c=e);e=(-this.parent.currOffset.x+this.parent.cacheWidth)*a.x+(-this.parent.currOffset.y+this.parent.cacheHeight)*a.y;e<d&&(d=e);e>c&&(c=e);b.min=d;b.max=c},_class:null,_check:null,__class__:gg};var bd=function(a,b,c,d,e,g){null==g&&(g=0);null==e&&(e=!0);null==d&&(d=0);null==c&&(c=0);null==b&&(b=1);null==a&&(a=1);gg.call(this);this.lastBounds.width= +this._width=a;this.lastBounds.height=this._height=b;this._x=c;this._y=d;this.solid=e;this.groupID=g;this._check.h[bd.__name__]=q(this,this.collideHitbox)};k["com.stencyl.models.collision.Hitbox"]=bd;bd.__name__="com.stencyl.models.collision.Hitbox";bd.__super__=gg;bd.prototype=u(gg.prototype,{clone:function(){return new bd(this._width,this._height,this._x,this._y,this.solid,this.groupID)},collideMask:function(a){return this.parent.colX+this._x+this._width>a.parent.colX&&this.parent.colY+this._y+this._height> +a.parent.colY&&this.parent.colX+this._x<a.parent.colX+a.parent.cacheWidth&&this.parent.colY+this._y<a.parent.colY+a.parent.cacheHeight?(this.lastBounds.x=this.parent.colX+this.parent.cacheWidth,this.lastBounds.y=this.parent.colY+this.parent.cacheHeight,this.lastBounds.width=this.parent.cacheWidth,this.lastBounds.height=this.parent.cacheHeight,this.lastCheckedMask=this,!0):!1},collideHitbox:function(a){return this.parent.colX+this._x+this._width>a.parent.colX+a._x&&this.parent.colY+this._y+this._height> +a.parent.colY+a._y&&this.parent.colX+this._x<a.parent.colX+a._x+a._width&&this.parent.colY+this._y<a.parent.colY+a._y+a._height?(this.lastBounds.x=this.parent.colX+this._x,this.lastBounds.y=this.parent.colY+this._y,this.lastBounds.width=this._width,this.lastBounds.height=this._height,this.lastCheckedMask=this,!0):!1},get_x:function(){return this._x},set_x:function(a){if(this._x==a)return a;this._x=a;null!=this.list?this.list.update():null!=this.parent&&this.update();return this._x},get_y:function(){return this._y}, +set_y:function(a){if(this._y==a)return a;this._y=a;null!=this.list?this.list.update():null!=this.parent&&this.update();return this._y},get_width:function(){return this._width},set_width:function(a){if(this._width==a)return a;this._width=a;null!=this.list?this.list.update():null!=this.parent&&this.update();return this._width},get_height:function(){return this._height},set_height:function(a){if(this._height==a)return a;this._height=a;null!=this.list?this.list.update():null!=this.parent&&this.update(); +return this._height},update:function(){null!=this.parent&&null!=this.list&&this.list.update()},_width:null,_height:null,_x:null,_y:null,__class__:bd,__properties__:{set_height:"set_height",get_height:"get_height",set_width:"set_width",get_width:"get_width",set_y:"set_y",get_y:"get_y",set_x:"set_x",get_x:"get_x"}});var kl=function(a,b,c,d,e,g){null==g&&(g=0);null==e&&(e=0);bd.call(this);if(0==a||0==b||0==c||0==d)throw R.thrown("Illegal Grid, sizes cannot be 0.");this._rect=S.rect;this._point=S.point; +this._point2=S.point2;this.columns=a/c|0;this.rows=b/d|0;this._tile=new fa(0,0,c,d);this._x=e;this._y=g;this._width=a;this._height=b;this.usePositions=!1;this.groupID=1;a=this._check;b=gg.__name__;a.h[b]=q(this,this.collideMask);a=this._check;b=bd.__name__;a.h[b]=q(this,this.collideHitbox);a=this._check;b=Jj.__name__;a.h[b]=q(this,this.collidePixelmask);this.data=[];a=0;for(b=this.rows;a<b;)a++,this.data.push([])};k["com.stencyl.models.collision.Grid"]=kl;kl.__name__="com.stencyl.models.collision.Grid"; +kl.__super__=bd;kl.prototype=u(bd.prototype,{usePositions:null,setTile:function(a,b,c){null==c&&(c=!0);null==b&&(b=0);null==a&&(a=0);0>a||a>this.columns-1||0>b||b>this.rows-1||(this.usePositions&&(a=a/this._tile.width|0,b=b/this._tile.height|0),this.data[b][a]=c)},clearTile:function(a,b){null==b&&(b=0);null==a&&(a=0);this.setTile(a,b,!1)},checkTile:function(a,b){return 0>a||a>this.columns-1||0>b||b>this.rows-1?!1:!0},getTile:function(a,b){null==b&&(b=0);null==a&&(a=0);if(0>a||a>this.columns-1||0> +b||b>this.rows-1)return!1;this.usePositions&&(a=a/this._tile.width|0,b=b/this._tile.height|0);return this.data[b][a]},setRect:function(a,b,c,d,e){null==e&&(e=!0);null==d&&(d=1);null==c&&(c=1);null==b&&(b=0);null==a&&(a=0);this.usePositions&&(a=a/this._tile.width|0,b=b/this._tile.height|0,c=c/this._tile.width|0,d=d/this._tile.height|0);var g=b;for(b+=d;g<b;){d=g++;for(var f=a,l=a+c;f<l;){var t=f++;this.setTile(t,d,e)}}},clearRect:function(a,b,c,d){null==d&&(d=1);null==c&&(c=1);null==b&&(b=0);null== +a&&(a=0);this.setRect(a,b,c,d,!1)},get_tileWidth:function(){return this._tile.width|0},get_tileHeight:function(){return this._tile.height|0},columns:null,rows:null,data:null,collideMask:function(a){this._rect.x=a.parent.colX-this.parent.colX;this._rect.y=a.parent.colY-this.parent.colY;var b=((this._rect.x+a.parent.cacheWidth-1)/this._tile.width|0)+1,c=this._rect.x/this._tile.width|0,d=this._rect.y/this._tile.height|0;for(a=((this._rect.y+a.parent.cacheHeight-1)/this._tile.height|0)+1;d<a;)for(var e= +d++,g=c,f=b;g<f;){var l=g++;if(this.getTile(l,e))return!0}return!1},collideHitbox:function(a){this._rect.x=a.parent.colX+a._x;this._rect.y=a.parent.colY+a._y;for(var b=((this._rect.x+a._width-1)/this._tile.width|0)+1,c=this._rect.x/this._tile.width|0,d=this._rect.y/this._tile.height|0,e=((this._rect.y+a._height-1)/this._tile.height|0)+1;d<e;)for(var g=d++,f=c,l=b;f<l;){var t=f++;if(this.getTile(t,g))return this.lastBounds.x=t*this._tile.width,this.lastBounds.y=g*this._tile.height,this.lastBounds.width= +this._tile.width,this.lastBounds.height=this._tile.height,a.lastColID=this.groupID,!0}return!1},collidePixelmask:function(a){return!1},squareProjection:function(a,b){a.x<a.y?(b.x=a.x,b.y=a.y):(b.y=a.x,b.x=a.y)},_tile:null,_rect:null,_point:null,_point2:null,__class__:kl,__properties__:u(bd.prototype.__properties__,{get_tileHeight:"get_tileHeight",get_tileWidth:"get_tileWidth"})});var zi=function(a,b){this._count=0;bd.call(this);this._masks=[];this._temp=[];this.solid=!1;this.parent=b;for(var c=0;c< +a.length;)b=a[c],++c,this.add(b)};k["com.stencyl.models.collision.Masklist"]=zi;zi.__name__="com.stencyl.models.collision.Masklist";zi.__super__=bd;zi.prototype=u(bd.prototype,{collide:function(a){for(var b,c=0,d=this._masks;c<d.length;)if(b=d[c],++c,b.groupID=-1E3==b.groupID?b.parent.groupID:b.groupID,(a instanceof zi||-2==a.groupID||va.collisionMap[b.groupID][a.groupID])&&b.collide(a))return this.lastBounds.x=b.lastBounds.x,this.lastBounds.y=b.lastBounds.y,this.lastBounds.width=b.lastBounds.width, +this.lastBounds.height=b.lastBounds.height,this.lastCheckedMask=b,this.lastColID=a.groupID,!0;return!1},collideMasklist:function(a){for(var b,c,d=0,e=this._masks;d<e.length;){b=e[d];++d;b.groupID=-1E3==b.groupID?b.parent.groupID:b.groupID;for(var g=0,f=a._masks;g<f.length;)if(c=f[g],++g,c.groupID=-1E3==c.groupID?c.parent.groupID:c.groupID,b.collide(c))return a.lastBounds.x=c.lastBounds.x,a.lastBounds.y=c.lastBounds.y,a.lastBounds.width=c.lastBounds.width,a.lastBounds.height=c.lastBounds.height,a.lastCheckedMask= +c,a.lastColID=b.groupID,!0}return!0},add:function(a){this._masks[this._count++]=a;a.list=this;a.parent=this.parent;this.solid=this.solid||a.solid;this.update();a.groupID=-1E3==a.groupID?this.parent.groupID:a.groupID;var b=va.get().groupsCollidesWith.h[a.groupID];if(null!=b)for(var c=0;c<b.length;){var d=b[c];++c;S.contains(this.collideTypes,d)||this.collideTypes.push(d)}return a},remove:function(a){if(0>Qc.indexOf(this._masks,a))return a;this._temp.length=0;for(var b,c=0,d=this._masks;c<d.length;)b= +d[c],++c,b==a?(a.list=null,a.parent=null,this._count--,this.update()):this._temp[this._temp.length]=b;b=this._masks;this._masks=this._temp;this._temp=b;return a},removeAt:function(a){null==a&&(a=0);this._temp.length=0;var b=this._masks.length;for(a%=b;0<b--;)b==a?(this._masks[a].list=null,this._count--,this.update()):this._temp[this._temp.length]=this._masks[a];a=this._masks;this._masks=this._temp;this._temp=a},removeAll:function(){for(var a,b=0,c=this._masks;b<c.length;)a=c[b],++b,a.list=null;this._count= +0;this._masks.length=0;this._temp.length=0;this.update()},getMask:function(a){null==a&&(a=0);return this._masks[a%this._masks.length]},assignTo:function(a){for(var b=0,c=this._masks;b<c.length;){var d=c[b];++b;d.parent=a}bd.prototype.assignTo.call(this,a)},update:function(){for(var a=1E5,b=1E5,c=0,d=0,e,g=this._count;0<g--;)e=O.__cast(this._masks[g],bd),null!=e&&(e._x<b&&(b=e._x),e._y<a&&(a=e._y),e._x+e._width>c&&(c=e._x+e._width),e._y+e._height>d&&(d=e._y+e._height));this._x=b;this._y=a;this._width= +c-b;this._height=d-a;bd.prototype.update.call(this)},count:null,get_count:function(){return this._count},_masks:null,_temp:null,_count:null,__class__:zi,__properties__:u(bd.prototype.__properties__,{get_count:"get_count"})});var Jj=function(a,b,c){null==c&&(c=0);null==b&&(b=0);bd.call(this);a instanceof Ja&&(this._data=a);if(null==this._data)throw R.thrown("Invalid Pixelmask source image.");this.threshold=1;this._rect=S.rect;this._point=S.point;this._point2=S.point2;this._width=this.get_data().width; +this._height=this.get_data().height;this._x=b;this._y=c;a=this._check;b=gg.__name__;a.h[b]=q(this,this.collideMask);a=this._check;b=Jj.__name__;a.h[b]=q(this,this.collidePixelmask);a=this._check;b=bd.__name__;a.h[b]=q(this,this.collideHitbox)};k["com.stencyl.models.collision.Pixelmask"]=Jj;Jj.__name__="com.stencyl.models.collision.Pixelmask";Jj.__super__=bd;Jj.prototype=u(bd.prototype,{threshold:null,collideMask:function(a){this._point.x=this.parent.colX+this._x;this._point.y=this.parent.colY+this._y; +this._rect.x=a.parent.colX;this._rect.y=a.parent.colY;this._rect.width=a.parent.cacheWidth;this._rect.height=a.parent.cacheHeight;return!1},collideHitbox:function(a){this._point.x=this.parent.colX+this._x;this._point.y=this.parent.colY+this._y;this._rect.x=a.parent.colX+a._x;this._rect.y=a.parent.colY+a._y;this._rect.width=a._width;this._rect.height=a._height;return!1},collidePixelmask:function(a){this._point.x=this.parent.colX+this._x;this._point.y=this.parent.colY+this._y;this._point2.x=a.parent.colX+ +a._x;this._point2.y=a.parent.colY+a._y;return!1},get_data:function(){return this._data},set_data:function(a){this._data=a;this._width=a.width;this._height=a.height;this.update();return this._data},_data:null,_rect:null,_point:null,_point2:null,__class__:Jj,__properties__:u(bd.prototype.__properties__,{set_data:"set_data",get_data:"get_data"})});var $k=function(a,b,c,d,e,g,f,l,t,m,h,p){this.elementID=a;this.x=b;this.y=c;this.scaleX=d;this.scaleY=e;this.layerID=g;this.orderInLayer=f;this.angle=l;this.groupID= +t;this.actorID=m;this.behaviorValues=h;this.isCustomized=p;this.actorType=O.__cast(ic.get().resources.get(m),cg)};k["com.stencyl.models.scene.ActorInstance"]=$k;$k.__name__="com.stencyl.models.scene.ActorInstance";$k.prototype={elementID:null,x:null,y:null,scaleX:null,scaleY:null,layerID:null,orderInLayer:null,angle:null,groupID:null,actorID:null,isCustomized:null,behaviorValues:null,actorType:null,__class__:$k};var Fe=function(){};k["com.stencyl.models.scene.Autotile"]=Fe;Fe.__name__="com.stencyl.models.scene.Autotile"; +var mo=function(a,b,c,d,e){this.animIndex=[];this.defaultAnimationIndex=0;this.name=a;this.id=b;this.tilesAcross=c;this.tilesDown=d;a=0;b=new ac;c=0;for(d=256;c<d;){var g=c++;null!=b.h.__keys__[e[g].__id__]?this.animIndex[g]=b.h[e[g].__id__]:(this.animIndex[g]=a,b.set(e[g],a),++a)}this.defaultAnimationIndex=this.animIndex[255];this.autotileArrayLength=a;this.animCorners=[];c=0;for(d=256;c<d;)g=c++,this.animCorners[this.animIndex[g]]=e[g]};k["com.stencyl.models.scene.AutotileFormat"]=mo;mo.__name__= +"com.stencyl.models.scene.AutotileFormat";mo.prototype={autotileArrayLength:null,defaultAnimationIndex:null,name:null,id:null,tilesAcross:null,tilesDown:null,animIndex:null,animCorners:null,__class__:mo};var lo=function(a,b,c,d){this.tl=a;this.tr=b;this.bl=c;this.br=d};k["com.stencyl.models.scene.Corners"]=lo;lo.__name__="com.stencyl.models.scene.Corners";lo.prototype={tl:null,tr:null,bl:null,br:null,toString:function(){return"TL: "+n.string(this.tl)+", TR: "+n.string(this.tr)+", BL: "+n.string(this.bl)+ +", BR: "+n.string(this.br)},__class__:lo};var Qn=function(a,b,c,d){this.type=a;this.x=b;this.y=c;this.layer=d};k["com.stencyl.models.scene.DeferredActor"]=Qn;Qn.__name__="com.stencyl.models.scene.DeferredActor";Qn.prototype={type:null,x:null,y:null,layer:null,__class__:Qn};var wg=function(a,b,c,d,e,g,f){ta.call(this);this.ID=a;this.set_name(b);this.layerName=b;this.order=c;this.scrollFactorX=d;this.scrollFactorY=e;this.set_alpha(g);this.set_blendMode(f)};k["com.stencyl.models.scene.layers.RegularLayer"]= +wg;wg.__name__="com.stencyl.models.scene.layers.RegularLayer";wg.__super__=ta;wg.prototype=u(ta.prototype,{ID:null,layerName:null,order:null,scrollFactorX:null,scrollFactorY:null,opacity:null,alphaTween:null,updatePosition:function(a,b,c){},__class__:wg});var Ac=function(a,b,c,d,e,g,f,l){this.cameraOldX=this.cameraOldY=-1;this.cameraMoved=!0;wg.call(this,a,b,c,d,e,g,f);this.tiles=l;null!=this.tiles&&(this.tiles.set_name(b+" - TileLayer"),this.tiles.set_blendMode(f));this.actorContainer=new ta;this.actorContainer.set_name(b+ +" - ActorLayer");this.overlay=new ta;this.overlay.set_name(b+" - Overlay");null!=this.tiles&&this.addChild(this.tiles);this.addChild(this.actorContainer);this.addChild(this.overlay);this.attachedImages=[]};k["com.stencyl.models.scene.Layer"]=Ac;Ac.__name__="com.stencyl.models.scene.Layer";Ac.__super__=wg;Ac.prototype=u(wg.prototype,{tiles:null,actorContainer:null,overlay:null,attachedImages:null,cameraMoved:null,cameraOldX:null,cameraOldY:null,updatePosition:function(a,b,c){if(ja.pixelsnap){c=a*this.scrollFactorX| +0;var d=b*this.scrollFactorY|0;a=Math.round(a);b=Math.round(b);this.set_x(-(a*this.scrollFactorX|0));this.set_y(-(b*this.scrollFactorY|0));var e=c/(h.engine.scene.tileWidth*h.SCALE)|0;var g=d/(h.engine.scene.tileHeight*h.SCALE)|0}else c=a*this.scrollFactorX,d=b*this.scrollFactorY,this.set_x(-a*this.scrollFactorX),this.set_y(-b*this.scrollFactorY),e=c/(h.engine.scene.tileWidth*h.SCALE),g=d/(h.engine.scene.tileHeight*h.SCALE);this.tiles.setPosition(c,d);this.overlay.set_x(a);this.overlay.set_y(b);this.cameraMoved= +this.cameraMoved||this.cameraOldX!=e||this.cameraOldY!=g;this.cameraOldX=e;this.cameraOldY=g},clear:function(){for(var a=0,b=this.attachedImages;a<b.length;){var c=b[a];++a;this.removeChild(c)}this.attachedImages=[];S.removeAllChildren(this.actorContainer);this.overlay.get_graphics().clear();null!=this.tiles&&this.tiles.clear()},__class__:Ac});var Ai=function(a,b,c,d,e,g,f){null==g&&(g=0);this.x=d;this.y=e;this.shapes=a;this.shape=this.shapes[0];this.ID=b;this.name=c;this.shapeID=g;this.simpleBounds= +f};k["com.stencyl.models.scene.RegionDef"]=Ai;Ai.__name__="com.stencyl.models.scene.RegionDef";Ai.prototype={x:null,y:null,shape:null,shapes:null,ID:null,name:null,shapeID:null,simpleBounds:null,__class__:Ai};var Mf=function(a,b,c,d,e,g,f){null==f&&(f=!0);null==g&&(g=0);null==e&&(e=0);null==d&&(d=0);ta.call(this);this.curStep=0;this.running=!0;this.repeats=f;this.image1=new Vb(a);this.addChild(this.image1);this.cacheWidth=this.image1.get_width();this.cacheHeight=this.image1.get_height();f&&(this.image2= +new Vb(a),this.image2.set_x(this.image1.get_x()-this.cacheWidth),this.addChild(this.image2),this.image3=new Vb(a),this.image3.set_x(this.image1.get_x()+this.cacheWidth),this.addChild(this.image3),this.image4=new Vb(a),this.image4.set_x(this.image1.get_x()-this.cacheWidth),this.image4.set_y(this.image1.get_y()-this.cacheHeight),this.addChild(this.image4),this.image5=new Vb(a),this.image5.set_y(this.image1.get_y()-this.cacheHeight),this.addChild(this.image5),this.image6=new Vb(a),this.image6.set_x(this.image1.get_x()+ +this.cacheWidth),this.image6.set_y(this.image1.get_y()-this.cacheHeight),this.addChild(this.image6),this.image7=new Vb(a),this.image7.set_x(this.image1.get_x()-this.cacheWidth),this.image7.set_y(this.image1.get_y()+this.cacheHeight),this.addChild(this.image7),this.image8=new Vb(a),this.image8.set_y(this.image1.get_y()+this.cacheHeight),this.addChild(this.image8),this.image9=new Vb(a),this.image9.set_x(this.image1.get_x()+this.cacheWidth),this.image9.set_y(this.image1.get_y()+this.cacheHeight),this.addChild(this.image9)); +this.yPos=this.xPos=this.yP=this.xP=0;this.xVelocity=b;this.yVelocity=c;this.parallaxX=d;this.parallaxY=e;this.scrolling=0!=b||0!=c;this.parallax=0!=d||0!=e;this.backgroundID=g};k["com.stencyl.models.scene.ScrollingBitmap"]=Mf;Mf.__name__="com.stencyl.models.scene.ScrollingBitmap";Mf.__super__=ta;Mf.prototype=u(ta.prototype,{image1:null,image2:null,image3:null,image4:null,image5:null,image6:null,image7:null,image8:null,image9:null,speed:null,curStep:null,running:null,parallax:null,scrolling:null, +cacheWidth:null,cacheHeight:null,xP:null,yP:null,xPos:null,yPos:null,xVelocity:null,yVelocity:null,parallaxX:null,parallaxY:null,backgroundID:null,repeats:null,update:function(a,b,c){c=!1;this.parallax?(this.xPos=-(a*this.parallaxX|0),this.yPos=-(b*this.parallaxY|0),c=!0):this.running?this.yPos=this.xPos=0:(this.xPos=this.xP,this.yPos=this.yP);if(this.scrolling&&this.running){a=this.cacheWidth;b=this.cacheHeight;this.xP+=this.xVelocity/10*h.SCALE;this.yP+=this.yVelocity/10*h.SCALE;if(this.repeats){if(this.xP< +-a||this.xP>a)this.xP=0;if(this.yP<-b||this.yP>b)this.yP=0}this.xPos+=Math.floor(this.xP);this.yPos+=Math.floor(this.yP);this.curStep+=1;1<=this.curStep&&(c=!0,this.curStep-=Math.floor(this.curStep))}c&&this.resetPositions()},resetPositions:function(){this.cacheWidth=this.image1.get_width();this.cacheHeight=this.image1.get_height();this.repeats&&(this.xPos<-this.cacheWidth&&(this.xPos%=this.cacheWidth),this.yPos<-this.cacheHeight&&(this.yPos%=this.cacheHeight));this.image1.set_x(this.xPos);this.image1.set_y(this.yPos); +this.repeats&&(this.image2.set_x(this.xPos-this.cacheWidth),this.image2.set_y(this.yPos),this.image3.set_x(this.xPos+this.cacheWidth),this.image3.set_y(this.yPos),this.image4.set_x(this.xPos-this.cacheWidth),this.image4.set_y(this.yPos-this.cacheHeight),this.image5.set_x(this.xPos),this.image5.set_y(this.yPos-this.cacheHeight),this.image6.set_x(this.xPos+this.cacheWidth),this.image6.set_y(this.yPos-this.cacheHeight),this.image7.set_x(this.xPos-this.cacheWidth),this.image7.set_y(this.yPos+this.cacheHeight), +this.image8.set_x(this.xPos),this.image8.set_y(this.yPos+this.cacheHeight),this.image9.set_x(this.xPos+this.cacheWidth),this.image9.set_y(this.yPos+this.cacheHeight))},start:function(){this.running=!0},stop:function(){this.running=!1},__class__:Mf});var no=function(a,b,c,d,e,g,f){null==f&&(f=0);null==g&&(g=0);this.x=d;this.y=e;this.shapes=a;this.shape=this.shapes[0];this.ID=b;this.name=c;this.groupID=g;0==this.fillColor&&(c=b=a=0,null==c&&(c=0),null==b&&(b=0),null==a&&(a=0),this.fillColor=a<<16|b<< +8|c);this.fillColor=f};k["com.stencyl.models.scene.TerrainDef"]=no;no.__name__="com.stencyl.models.scene.TerrainDef";no.prototype={x:null,y:null,shape:null,shapes:null,ID:null,name:null,groupID:null,fillColor:null,__class__:no};var Ic=function(a,b,c,d,e,g,f,l){this.tileID=a;this.collisionID=b;this.metadata=c;this.frameIndex=d;this.durations=e;this.parent=l;var x=va.get().atlases.h[l.atlasID];if(null!=g){this.autotileFormat=g;this.autotileMergeSet=f;f=[];var m=0;for(g=g.autotileArrayLength;m<g;)m++, +f.push(new Ic(a,b,c,d,e,null,null,l));this.autotiles=f}null!=x&&x.active&&this.loadGraphics();this.currTime=this.currFrame=0;this.updateSource=!1};k["com.stencyl.models.scene.Tile"]=Ic;Ic.__name__="com.stencyl.models.scene.Tile";Ic.prototype={tileID:null,collisionID:null,metadata:null,frameIndex:null,parent:null,autotileFormat:null,autotiles:null,autotileMergeSet:null,pixels:null,durations:null,frames:null,currFrame:null,currTime:null,updateSource:null,data:null,update:function(a){1==this.durations.length|| +h.paused||(this.currTime+=Math.floor(a),this.currTime>(this.durations[this.currFrame]|0)&&(this.currTime-=this.durations[this.currFrame]|0,this.currFrame+1<this.durations.length?this.currFrame++:this.currFrame=0,this.updateSource=!0))},getSource:function(a,b){return new fa(this.currFrame*a*h.SCALE,0,a*h.SCALE,b*h.SCALE)},loadGraphics:function(){var a=null;if(1<this.durations.length||null!=this.autotileFormat)a=qa.getBitmapData("assets/graphics/"+h.IMG_BASE+"/tileset-"+this.parent.ID+"-"+this.tileID+ +".png",!1);if(null!=this.autotileFormat){var b=0,c=0;for(a=this.createAutotileAnimations(a,this.autotileFormat);c<a.length;){var d=a[c];++c;this.autotiles[b++].loadAnimationPixels(d)}}else this.loadAnimationPixels(a)},unloadGraphics:function(){this.data=this.pixels=null;if(null!=this.autotiles)for(var a=0,b=this.autotiles;a<b.length;){var c=b[a];++a;c.pixels=null;c.data=null}},loadAnimationPixels:function(a){if(null!=a){this.pixels=a;this.data=new xi(a);a=0;for(var b=this.durations.length;a<b;)this.currFrame= +a++,this.data.addRect(this.getSource(this.parent.tileWidth,this.parent.tileHeight))}},createAutotileAnimations:function(a,b){var c=[],d=this.durations.length,e=a.width/d/b.tilesAcross|0,g=a.height/b.tilesDown|0,f=e/2|0,l=g/2|0;Ic.dummyRect.width=f;Ic.dummyRect.height=l;for(var t=0,m=b.animCorners;t<m.length;){var h=m[t];++t;for(var p=new Ja(e*d,g),k=function(a,b){return function(c,d){a[0](b[0],c,d)}}([q(p,p.copyPixels)],[a]),n=0,r=d;n<r;){var v=n++,u=e*b.tilesAcross*v;v*=e;var w=h.tl;Ic.dummyRect.x= +u+w.x*Ic.dummyRect.width;Ic.dummyRect.y=w.y*Ic.dummyRect.height;k(Ic.dummyRect,new oa(v,0));w=h.tr;Ic.dummyRect.x=u+w.x*Ic.dummyRect.width;Ic.dummyRect.y=w.y*Ic.dummyRect.height;k(Ic.dummyRect,new oa(v+f,0));w=h.br;Ic.dummyRect.x=u+w.x*Ic.dummyRect.width;Ic.dummyRect.y=w.y*Ic.dummyRect.height;k(Ic.dummyRect,new oa(v+f,l));w=h.bl;Ic.dummyRect.x=u+w.x*Ic.dummyRect.width;Ic.dummyRect.y=w.y*Ic.dummyRect.height;k(Ic.dummyRect,new oa(v,l))}c.push(p)}return c},sourceRect:function(a,b){Ic.dummyRect.x=b+a.x* +Ic.dummyRect.width;Ic.dummyRect.y=a.y*Ic.dummyRect.height;return Ic.dummyRect},__class__:Ic};var ie=function(a,b,c,d){ta.call(this);this.layerID=a;this.scene=b;this.numRows=d;this.numCols=c;this.clear();this.tilemaps=new ac};k["com.stencyl.models.scene.TileLayer"]=ie;ie.__name__="com.stencyl.models.scene.TileLayer";ie.__interfaces__=[oh];ie.resetStatics=function(){ie.cacheSource=new Sa};ie.__super__=ta;ie.prototype=u(ta.prototype,{layerID:null,rows:null,autotileData:null,grid:null,scene:null,numRows:null, +numCols:null,tilemaps:null,noTiles:null,clear:function(){if(null!=this.tilemaps)for(var a=this.tilemaps.iterator();a.hasNext();)a.next().removeTiles();this.noTiles=!0;this.rows=[];this.autotileData=[];a=0;for(var b=this.numRows;a<b;){var c=a++;this.rows[c]=[];this.autotileData[c]=[];for(var d=0,e=this.numCols;d<e;){var g=d++;this.rows[c][g]=null;this.autotileData[c][g]=0}}},setPosition:function(a,b){},mountGrid:function(){if(null!=this.grid){var a=new tb(h.engine,1E8,1,0,0,-1,this.grid.get_width(), +this.grid.get_height(),null,new V,null,null,!1,!0,!1,!1,this.grid,h.NO_PHYSICS);a.set_name("Terrain");a.typeID=-1;a.set_visible(!1);a.ignoreGravity=!0;h.engine.getGroup(1).addChild(a)}},setTileAt:function(a,b,c,d){null==d&&(d=!0);if(!(0>b||0>a||b>=this.numCols||a>=this.numRows)){this.noTiles&&null!=c&&(this.noTiles=!1);var e=this.rows[a][b];d&&(d=null!=e&&null!=e.autotiles||null!=c&&null!=c.autotiles);this.rows[a][b]=c;this.autotileData[a][b]=0;d&&this.updateAutotilesNear(a,b)}},getTileAt:function(a, +b){return 0>b||0>a||b>=this.numCols||a>=this.numRows?null:this.rows[a][b]},updateAutotilesNear:function(a,b){var c=a-1;for(a+=2;c<a;)for(var d=c++,e=b-1,g=b+2;e<g;){var f=e++;0>f||0>d||f>=this.numCols||d>=this.numRows||this.updateAutotile(d,f)}},updateAutotile:function(a,b){var c=this.rows[a][b];if(null!=c&&null!=c.autotiles){for(var d=0,e=ie.autotileFlagPointMap.keys();e.hasNext();){var g=e.next(),f=ie.autotileFlagPointMap.h[g],l=b+f.x|0;f=a+f.y|0;0>l||0>f||l>=this.numCols||f>=this.numRows||this.rows[f][l]== +c||(d|=g)}this.autotileData[a][b]=c.autotileFormat.animIndex[d]}},draw:function(a,b){if(!this.noTiles){for(var c=this.tilemaps.iterator();c.hasNext();)c.next().removeTiles();a=Math.floor(a);b=Math.floor(b);var d=this.numRows;c=this.scene.tileWidth;var e=this.scene.tileHeight;a=a/h.SCALE/c|0;var g=b/h.SCALE/e|0;b=2+a+(h.screenWidth/c|0);var f=2+g+(h.screenHeight/e|0);b=Math.min(b,this.numCols)|0;f=Math.min(f,d)|0;for(d=g;d<f;){for(g=a;g<b;){var l=this.getTileAt(d,g);if(null!=l&&l.parent.graphicsLoaded){if(null== +ie.cacheSource.h[1E6*l.parent.ID+l.tileID]||l.updateSource)if(l.updateSource=!1,null==l.pixels&&null==l.autotiles){var t=ie.cacheSource,m=1E6*l.parent.ID+l.tileID,k=l.parent.getImageSourceForTile(l.tileID,c,e);t.h[m]=k}else t=ie.cacheSource,m=1E6*l.parent.ID+l.tileID,k=l.getSource(c,e),t.h[m]=k;null!=ie.cacheSource.h[1E6*l.parent.ID+l.tileID]&&(null!=l.autotiles&&(l=l.autotiles[this.autotileData[d][g]]),null==l.data?(t=l.parent.sheetMap.h[l.tileID],this.getTilemap(l.parent.flTileset).addTile(new eg(t, +g*c*h.SCALE,d*e*h.SCALE))):(t=l.currFrame,this.getTilemap(l.data).addTile(new eg(t,g*c*h.SCALE,d*e*h.SCALE))))}++g}++d}}},updateScale:function(){for(var a=this.tilemaps.iterator();a.hasNext();){var b=a.next();b.set_width(h.sceneWidth*h.SCALE);b.set_height(h.sceneHeight*h.SCALE)}},getTilemap:function(a){if(null==this.tilemaps.h.__keys__[a.__id__]){var b=new fg(h.sceneWidth*h.SCALE|0,h.sceneHeight*h.SCALE|0,a,ja.antialias);this.tilemaps.set(a,b);this.addChild(b)}return this.tilemaps.h[a.__id__]},__class__:ie}); +var qf=function(a,b,c,d,e,g,f,l,t){cd.call(this,a,c,b);this.framesAcross=d;this.framesDown=e;this.tileWidth=g;this.tileHeight=f;this.readableImages=l;this.tiles=t};k["com.stencyl.models.scene.Tileset"]=qf;qf.__name__="com.stencyl.models.scene.Tileset";qf.__super__=cd;qf.prototype=u(cd.prototype,{framesAcross:null,framesDown:null,tileWidth:null,tileHeight:null,tiles:null,readableImages:null,pixels:null,graphicsLoaded:null,flTileset:null,sheetMap:null,setupFLTileset:function(){this.sheetMap=new Sa; +if(null!=this.pixels){this.flTileset=new xi(this.convertPixels(this.pixels));for(var a=0,b=this.tiles;a<b.length;){var c=b[a];++a;if(null!=c){var d=this.getImageSourceForTile(c.tileID,this.tileWidth|0,this.tileHeight|0),e=this.sheetMap;c=c.tileID;d=this.flTileset.addRect(d);e.h[c]=d}}}},getImageSourceForTile:function(a,b,c){var d=this.tiles[a];null==d?(qf.temp.x=0,qf.temp.y=0):(a=Math.floor(d.frameIndex/this.framesAcross),d=Math.floor(d.frameIndex%this.framesAcross),qf.temp.x=d*b*h.SCALE+2*d+1,qf.temp.y= +a*c*h.SCALE+2*a+1);qf.temp.width=b*h.SCALE;qf.temp.height=c*h.SCALE;return qf.temp.clone()},loadGraphics:function(){if(!this.graphicsLoaded){this.pixels=qa.getBitmapData("assets/graphics/"+h.IMG_BASE+"/tileset-"+this.ID+".png",!1);for(var a=0,b=this.tiles;a<b.length;){var c=b[a];++a;null!=c&&c.loadGraphics()}this.setupFLTileset();ja.disposeImages&&!this.readableImages&&this.pixels.dispose();this.graphicsLoaded=!0}},unloadGraphics:function(){if(this.graphicsLoaded){this.pixels.readable&&this.pixels.dispose(); +this.flTileset=this.pixels=null;for(var a=0,b=this.tiles;a<b.length;){var c=b[a];++a;null!=c&&c.unloadGraphics()}this.graphicsLoaded=!1}},reloadGraphics:function(a){if(-1==a){this.unloadGraphics();this.loadGraphics();a=0;for(var b=this.tiles;a<b.length;){var c=b[a];++a;null!=c&&(c.updateSource=!0)}}else a=this.tiles[a],null!=a&&(a.unloadGraphics(),a.loadGraphics());h.engine.tileUpdated=!0},convertPixels:function(a){for(var b=this.tileWidth*h.SCALE|0,c=this.tileHeight*h.SCALE|0,d=a.width/b|0,e=a.height/ +c|0,g=new Ja(a.width+2*d|0,a.height+2*e|0,!0,0),f,l,t,m,k=0;k<e;){for(f=0;f<d;)l=f*b+2*f+1|0,t=k*c+2*k+1|0,m=new fa(f*b,k*c,b,c),l=new oa(l,t),g.copyPixels(a,m,l),++f;++k}for(k=0;k<e;){for(f=0;f<d;){l=f*b+2*f+1|0;t=k*c+2*k+1|0;for(a=0;a<b;)m=g.getPixel32(l+a,t),g.setPixel32(l+a,t-1,m),m=g.getPixel32(l+a,t+c-1),g.setPixel32(l+a,t+c,m),++a;for(a=0;a<c;)m=g.getPixel32(l,t+a),g.setPixel32(l-1,t+a,m),m=g.getPixel32(l+b-1,t+a),g.setPixel32(l+b,t+a,m),++a;++f}++k}return g},__class__:qf});var oo=function(a, +b,c,d,e,g){this.x=a;this.y=b;this.width=c;this.height=d;this.shape=e;this.shape2=g};k["com.stencyl.models.scene.Wireframe"]=oo;oo.__name__="com.stencyl.models.scene.Wireframe";oo.prototype={x:null,y:null,shape:null,shape2:null,width:null,height:null,__class__:oo};var Sd=function(a,b,c,d,e,g,f,l,t){wg.call(this,a,b,c,d,e,g,f);this.resourceID=l;this.customScroll=t;this.model=O.__cast(ic.get().resources.get(l),yg)};k["com.stencyl.models.scene.layers.BackgroundLayer"]=Sd;Sd.__name__="com.stencyl.models.scene.layers.BackgroundLayer"; +Sd.__super__=wg;Sd.prototype=u(wg.prototype,{model:null,bitmap:null,resourceID:null,customScroll:null,isAnimated:null,frameCount:null,currIndex:null,currTime:null,cacheIndex:null,cacheWidth:null,cacheHeight:null,bgChild:null,load:function(){if(null!=this.model&&null!=this.model.img){this.bitmap=new Vb(this.model.img,1,!0);this.bitmap.smoothing=ja.antialias;this.currTime=this.currIndex=0;this.isAnimated=1<this.model.frames.length;this.frameCount=this.model.frames.length;this.model.repeats&&!this.model.repeated&& +this.model.drawRepeated(this,h.screenWidth*h.SCALE|0,h.screenHeight*h.SCALE|0);var a=0,b=0;if(this.customScroll)a=this.scrollFactorX,b=this.scrollFactorY;else if(this.model.repeats)a=this.model.parallaxX,b=this.model.parallaxY;else{var c=this.model.img.width,d=this.model.img.height,e=h.screenWidth*h.SCALE|0,g=h.screenHeight*h.SCALE|0,f=h.sceneWidth*h.SCALE|0,l=h.sceneHeight*h.SCALE|0;c>e&&c<f&&(a=1-(f-c)/(f-e));d>g&&d<l&&(b=1-(l-d)/(l-g))}this.model instanceof sh?(c=O.__cast(this.model,sh),a=new Mf(this.model.img, +c.xVelocity,c.yVelocity,a,b,this.resourceID,this.model.repeats),this.addChild(this.bgChild=a)):this.model.repeats?(a=new Mf(this.model.img,0,0,a,b,this.resourceID),this.addChild(this.bgChild=a)):(this.cacheWidth=this.model.img.width,this.cacheHeight=this.model.img.height,this.scrollFactorX=a,this.scrollFactorY=b,this.addChild(this.bgChild=this.bitmap))}},loadFromImg:function(a,b){this.model=new sh(-1,-1,"",[100],0,0,b,0,0);this.model.img=a;this.model.frames=[a];this.load()},setScrollFactor:function(a, +b){this.scrollFactorX=a;this.scrollFactorY=b;if(this.bgChild instanceof Mf){var c=O.__cast(this.bgChild,Mf);c.parallaxX=a;c.parallaxY=b;c.parallax=0!=a||0!=b}},setScrollSpeed:function(a,b){if(this.bgChild instanceof Mf){var c=O.__cast(this.bgChild,Mf);c.xVelocity=a;c.yVelocity=b;c.scrolling=0!=a||0!=b}},reload:function(a){null!=this.bgChild&&(this.removeChild(this.bgChild),this.bgChild=null);this.resourceID=a;this.model=O.__cast(ic.get().resources.get(this.resourceID),yg);this.load()},setImage:function(a){this.bitmap.set_bitmapData(a); +this.currTime=this.currIndex=0;this.isAnimated=1<this.model.frames.length;this.frameCount=this.model.frames.length},updateAnimation:function(a){this.currTime+=a;null!=this.model&&this.currTime>=this.model.durations[this.currIndex]&&(this.currTime=0,this.currIndex++,this.currIndex>=this.frameCount&&(this.currIndex=0),this.bgChild instanceof Mf?(this.cacheIndex=this.currIndex,this.model.repeats&&this.model.drawRepeated(this,h.screenWidth*h.SCALE|0,h.screenHeight*h.SCALE|0),this.currIndex=this.cacheIndex, +a=this.bgChild.image1,a.set_bitmapData(this.model.frames[this.currIndex]),this.model.repeats&&(a=this.bgChild.image2,a.set_bitmapData(this.model.frames[this.currIndex]),a=this.bgChild.image3,a.set_bitmapData(this.model.frames[this.currIndex]),a=this.bgChild.image4,a.set_bitmapData(this.model.frames[this.currIndex]),a=this.bgChild.image5,a.set_bitmapData(this.model.frames[this.currIndex]),a=this.bgChild.image6,a.set_bitmapData(this.model.frames[this.currIndex]),a=this.bgChild.image7,a.set_bitmapData(this.model.frames[this.currIndex]), +a=this.bgChild.image8,a.set_bitmapData(this.model.frames[this.currIndex]),a=this.bgChild.image9,a.set_bitmapData(this.model.frames[this.currIndex]))):this.bitmap.set_bitmapData(this.model.frames[this.currIndex]))},updatePosition:function(a,b,c){this.bgChild instanceof Mf?O.__cast(this.bgChild,Mf).update(a,b,c):(this.set_x(-(a*this.scrollFactorX|0)),this.set_y(-(b*this.scrollFactorY|0)));this.isAnimated&&this.updateAnimation(c)},getBitmap:function(){return this.bgChild},__class__:Sd});var Kc=function(a, +b,c,d){null==d&&(d=0);null==c&&(c=0);null==b&&(b=0);null==a&&(a=0);this.a=a;this.r=b;this.g=c;this.b=d};k["com.stencyl.utils.ARGB"]=Kc;Kc.__name__="com.stencyl.utils.ARGB";Kc.setARGBi=function(a,b,c,d){return(a&255)<<24|(b&255)<<16|(c&255)<<8|d&255};Kc.setARGBf=function(a,b,c,d){a=255*(0>a?0:1<a?1:a);b=255*(0>b?0:1<b?1:b);c=255*(0>c?0:1<c?1:c);d=255*(0>d?0:1<d?1:d);return(((0<a?a+.5:0>a?a-.5:0)|0)&255)<<24|(((0<b?b+.5:0>b?b-.5:0)|0)&255)<<16|(((0<c?c+.5:0>c?c-.5:0)|0)&255)<<8|((0<d?d+.5:0>d?d-.5: +0)|0)&255};Kc.toARGB=function(a){return new Kc(.00392156862745098*(a>>>24),.00392156862745098*(a>>>16&255),.00392156862745098*(a>>>8&255),.00392156862745098*(a&255))};Kc.getRGB=function(a){return a&16777215};Kc.setRGB=function(a,b,c,d){return b<<16|c<<8|d|a&-16777216};Kc.getA=function(a){return a>>>24};Kc.getAf=function(a){return.00392156862745098*(a>>>24)};Kc.getR=function(a){return a>>>16&255};Kc.getRf=function(a){return.00392156862745098*(a>>>16&255)};Kc.getG=function(a){return a>>>8&255};Kc.getGf= +function(a){return.00392156862745098*(a>>>8&255)};Kc.getB=function(a){return a&255};Kc.getBf=function(a){return.00392156862745098*(a&255)};Kc.setA=function(a,b){return b<<24|a&16777215};Kc.setAf=function(a,b){b=255*(0>b?0:1<b?1:b);return((0<b?b+.5:0>b?b-.5:0)|0)<<24|a&16777215};Kc.setR=function(a,b){return(b&255)<<16|a&-16711681};Kc.setRf=function(a,b){b=255*(0>b?0:1<b?1:b);return(((0<b?b+.5:0>b?b-.5:0)|0)&255)<<16|a&-16711681};Kc.setG=function(a,b){return b<<8|a&-65281};Kc.setGf=function(a,b){b= +255*(0>b?0:1<b?1:b);return((0<b?b+.5:0>b?b-.5:0)|0)<<8|a&-65281};Kc.setB=function(a,b){return b|a&-256};Kc.setBf=function(a,b){b=255*(0>b?0:1<b?1:b);return(0<b?b+.5:0>b?b-.5:0)|0|a&-256};Kc.prototype={a:null,r:null,g:null,b:null,set:function(a,b,c,d){this.a=a;this.r=b;this.g=c;this.b=d},lerp:function(a,b,c){c.a=this.a+(a.a-this.a)*b;c.r=this.r+(a.r-this.r)*b;c.g=this.g+(a.g-this.g)*b;c.b=this.b+(a.b-this.b)*b},getA8:function(){var a=255*this.a;return(0<a?a+.5:0>a?a-.5:0)|0},getR8:function(){var a= +255*this.r;return(0<a?a+.5:0>a?a-.5:0)|0},getG8:function(){var a=255*this.g;return(0<a?a+.5:0>a?a-.5:0)|0},getB8:function(){var a=255*this.b;return(0<a?a+.5:0>a?a-.5:0)|0},get24:function(){var a=255*this.r,b=255*this.g,c=255*this.b;return((0<a?a+.5:0>a?a-.5:0)|0)<<16|((0<b?b+.5:0>b?b-.5:0)|0)<<8|(0<c?c+.5:0>c?c-.5:0)|0},set24:function(a,b,c){this.a=this.a;this.r=.00392156862745098*(a&255);this.g=.00392156862745098*(b&255);this.b=.00392156862745098*(c&255)},get32:function(){var a=255*this.a,b=255* +this.r,c=255*this.g,d=255*this.b;return((0<a?a+.5:0>a?a-.5:0)|0)<<24|((0<b?b+.5:0>b?b-.5:0)|0)<<16|((0<c?c+.5:0>c?c-.5:0)|0)<<8|(0<d?d+.5:0>d?d-.5:0)|0},set32:function(a,b,c,d){this.a=.00392156862745098*(a&255);this.r=.00392156862745098*(b&255);this.g=.00392156862745098*(c&255);this.b=.00392156862745098*(d&255)},copy:function(a){a.a=this.a;a.r=this.r;a.g=this.g;a.b=this.b;return a},__class__:Kc};var Sh=E["com.stencyl.utils.ColorDeficiencyTypes"]={__ename__:"com.stencyl.utils.ColorDeficiencyTypes", +__constructs__:null,Protanopia:{_hx_name:"Protanopia",_hx_index:0,__enum__:"com.stencyl.utils.ColorDeficiencyTypes",toString:v},Protanomaly:{_hx_name:"Protanomaly",_hx_index:1,__enum__:"com.stencyl.utils.ColorDeficiencyTypes",toString:v},Deuteranopia:{_hx_name:"Deuteranopia",_hx_index:2,__enum__:"com.stencyl.utils.ColorDeficiencyTypes",toString:v},Deuteranomaly:{_hx_name:"Deuteranomaly",_hx_index:3,__enum__:"com.stencyl.utils.ColorDeficiencyTypes",toString:v},Tritanopia:{_hx_name:"Tritanopia",_hx_index:4, +__enum__:"com.stencyl.utils.ColorDeficiencyTypes",toString:v},Tritanomaly:{_hx_name:"Tritanomaly",_hx_index:5,__enum__:"com.stencyl.utils.ColorDeficiencyTypes",toString:v},Achromatopsia:{_hx_name:"Achromatopsia",_hx_index:6,__enum__:"com.stencyl.utils.ColorDeficiencyTypes",toString:v},Achromatomaly:{_hx_name:"Achromatomaly",_hx_index:7,__enum__:"com.stencyl.utils.ColorDeficiencyTypes",toString:v}};Sh.__constructs__=[Sh.Protanopia,Sh.Protanomaly,Sh.Deuteranopia,Sh.Deuteranomaly,Sh.Tritanopia,Sh.Tritanomaly, +Sh.Achromatopsia,Sh.Achromatomaly];var Ta=function(){this.identity();this.matrix=[]};k["com.stencyl.utils.ColorMatrix"]=Ta;Ta.__name__="com.stencyl.utils.ColorMatrix";Ta.mulMatrixMatrix=function(a,b,c){var d=a.m11,e=a.m12,g=a.m13,f=a.m14;c.m11=a.m11*b.m11+a.m12*b.m21+a.m13*b.m31+a.m14*b.m41;c.m12=d*b.m12+a.m12*b.m22+a.m13*b.m32+a.m14*b.m42;c.m13=d*b.m13+e*b.m23+a.m13*b.m33+a.m14*b.m43;c.m14=d*b.m14+e*b.m24+g*b.m34+a.m14*b.m44;c.m15=d*b.m15+e*b.m25+g*b.m35+f*b.m45;d=a.m21;e=a.m22;g=a.m23;f=a.m24;c.m21= +a.m21*b.m11+a.m22*b.m21+a.m23*b.m31+a.m24*b.m41;c.m22=d*b.m12+a.m22*b.m22+a.m23*b.m32+a.m24*b.m42;c.m23=d*b.m13+e*b.m23+a.m23*b.m33+a.m24*b.m43;c.m24=d*b.m14+e*b.m24+g*b.m34+a.m24*b.m44;c.m25=d*b.m15+e*b.m25+g*b.m35+f*b.m45;d=a.m31;e=a.m32;g=a.m33;f=a.m34;c.m31=a.m31*b.m11+a.m32*b.m21+a.m33*b.m31+a.m34*b.m41;c.m32=d*b.m12+a.m32*b.m22+a.m33*b.m32+a.m34*b.m42;c.m33=d*b.m13+e*b.m23+a.m33*b.m33+a.m34*b.m43;c.m34=d*b.m14+e*b.m24+g*b.m34+a.m34*b.m44;c.m35=d*b.m15+e*b.m25+g*b.m35+f*b.m45;d=a.m41;e=a.m42; +g=a.m43;f=a.m44;c.m41=a.m41*b.m11+a.m42*b.m21+a.m43*b.m31+a.m44*b.m41;c.m42=d*b.m12+a.m42*b.m22+a.m43*b.m32+a.m44*b.m42;c.m43=d*b.m13+e*b.m23+a.m43*b.m33+a.m44*b.m43;c.m44=d*b.m14+e*b.m24+g*b.m34+a.m44*b.m44;c.m45=d*b.m15+e*b.m25+g*b.m35+f*b.m45;return c};Ta.blendMatrixMatrix=function(a,b,c,d){var e=1-d;c.m11=e*a.m11+d*b.m11;c.m12=e*a.m12+d*b.m12;c.m13=e*a.m13+d*b.m13;c.m14=e*a.m14+d*b.m14;c.m15=e*a.m15+d*b.m15;c.m21=e*a.m21+d*b.m21;c.m22=e*a.m22+d*b.m22;c.m23=e*a.m23+d*b.m23;c.m24=e*a.m24+d*b.m24; +c.m25=e*a.m25+d*b.m25;c.m31=e*a.m31+d*b.m31;c.m32=e*a.m32+d*b.m32;c.m33=e*a.m33+d*b.m33;c.m34=e*a.m34+d*b.m34;c.m35=e*a.m35+d*b.m35;c.m41=e*a.m41+d*b.m41;c.m42=e*a.m42+d*b.m42;c.m43=e*a.m43+d*b.m43;c.m44=e*a.m44+d*b.m44;c.m45=e*a.m45+d*b.m45;return c};Ta.prototype={m11:null,m12:null,m13:null,m14:null,m15:null,m21:null,m22:null,m23:null,m24:null,m25:null,m31:null,m32:null,m33:null,m34:null,m35:null,m41:null,m42:null,m43:null,m44:null,m45:null,matrix:null,preHue:null,postHue:null,hueInitialized:null, +getFilter:function(){var a=this.matrix;a[0]=this.m11;a[1]=this.m12;a[2]=this.m13;a[3]=this.m14;a[4]=this.m15;a[5]=this.m21;a[6]=this.m22;a[7]=this.m23;a[8]=this.m24;a[9]=this.m25;a[10]=this.m31;a[11]=this.m32;a[12]=this.m33;a[13]=this.m34;a[14]=this.m35;a[15]=this.m41;a[16]=this.m42;a[17]=this.m43;a[18]=this.m44;a[19]=this.m45;return new dg(this.matrix)},identity:function(){this.m11=1;this.m21=this.m15=this.m14=this.m13=this.m12=0;this.m22=1;this.m32=this.m31=this.m25=this.m24=this.m23=0;this.m33= +1;this.m43=this.m42=this.m41=this.m35=this.m34=0;this.m44=1;this.m45=0;return this},invert:function(){var a=this.m11,b=this.m12,c=this.m13,d=this.m14;this.m11=-1*this.m11+0*this.m12+0*this.m13+0*this.m14;this.m12=0*a+-1*this.m12+0*this.m13+0*this.m14;this.m13=0*a+0*b+-1*this.m13+0*this.m14;this.m14=0*a+0*b+0*c+this.m14;this.m15=255*a+255*b+255*c+0*d;a=this.m21;b=this.m22;c=this.m23;d=this.m24;this.m21=-1*this.m21+0*this.m22+0*this.m23+0*this.m24;this.m22=0*a+-1*this.m22+0*this.m23+0*this.m24;this.m23= +0*a+0*b+-1*this.m23+0*this.m24;this.m24=0*a+0*b+0*c+this.m24;this.m25=255*a+255*b+255*c+0*d;a=this.m31;b=this.m32;c=this.m33;d=this.m34;this.m31=-1*this.m31+0*this.m32+0*this.m33+0*this.m34;this.m32=0*a+-1*this.m32+0*this.m33+0*this.m34;this.m33=0*a+0*b+-1*this.m33+0*this.m34;this.m34=0*a+0*b+0*c+this.m34;this.m35=255*a+255*b+255*c+0*d;a=this.m41;b=this.m42;c=this.m43;d=this.m44;this.m41=-1*this.m41+0*this.m42+0*this.m43+0*this.m44;this.m42=0*a+-1*this.m42+0*this.m43+0*this.m44;this.m43=0*a+0*b+-1* +this.m43+0*this.m44;this.m44=0*a+0*b+0*c+this.m44;this.m45=255*a+255*b+255*c+0*d;return this},adjustSaturation:function(a){var b=1-a,c=b*Ta.LUMA_R,d=b*Ta.LUMA_G;b*=Ta.LUMA_B;var e=c+a,g=d+a;a=b+a;var f=this.m11,l=this.m12,t=this.m13,m=this.m14;this.m11=this.m11*e+this.m12*c+this.m13*c+0*this.m14;this.m12=f*d+this.m12*g+this.m13*d+0*this.m14;this.m13=f*b+l*b+this.m13*a+0*this.m14;this.m14=0*f+0*l+0*t+this.m14;this.m15=0*f+0*l+0*t+0*m;f=this.m21;l=this.m22;t=this.m23;m=this.m24;this.m21=this.m21*e+ +this.m22*c+this.m23*c+0*this.m24;this.m22=f*d+this.m22*g+this.m23*d+0*this.m24;this.m23=f*b+l*b+this.m23*a+0*this.m24;this.m24=0*f+0*l+0*t+this.m24;this.m25=0*f+0*l+0*t+0*m;f=this.m31;l=this.m32;t=this.m33;m=this.m34;this.m31=this.m31*e+this.m32*c+this.m33*c+0*this.m34;this.m32=f*d+this.m32*g+this.m33*d+0*this.m34;this.m33=f*b+l*b+this.m33*a+0*this.m34;this.m34=0*f+0*l+0*t+this.m34;this.m35=0*f+0*l+0*t+0*m;f=this.m41;l=this.m42;t=this.m43;m=this.m44;this.m41=this.m41*e+this.m42*c+this.m43*c+0*this.m44; +this.m42=f*d+this.m42*g+this.m43*d+0*this.m44;this.m43=f*b+l*b+this.m43*a+0*this.m44;this.m44=0*f+0*l+0*t+this.m44;this.m45=0*f+0*l+0*t+0*m;return this},adjustBrightness:function(a){this.adjustBrightnessRGB(a,a,a);return this},adjustBrightnessRGB:function(a,b,c){a*=255;b*=255;c*=255;var d=this.m11,e=this.m12,g=this.m13,f=this.m14;this.m11=this.m11+0*this.m12+0*this.m13+0*this.m14;this.m12=0*d+this.m12+0*this.m13+0*this.m14;this.m13=0*d+0*e+this.m13+0*this.m14;this.m14=0*d+0*e+0*g+this.m14;this.m15= +d*a+e*b+g*c+0*f;d=this.m21;e=this.m22;g=this.m23;f=this.m24;this.m21=this.m21+0*this.m22+0*this.m23+0*this.m24;this.m22=0*d+this.m22+0*this.m23+0*this.m24;this.m23=0*d+0*e+this.m23+0*this.m24;this.m24=0*d+0*e+0*g+this.m24;this.m25=d*a+e*b+g*c+0*f;d=this.m31;e=this.m32;g=this.m33;f=this.m34;this.m31=this.m31+0*this.m32+0*this.m33+0*this.m34;this.m32=0*d+this.m32+0*this.m33+0*this.m34;this.m33=0*d+0*e+this.m33+0*this.m34;this.m34=0*d+0*e+0*g+this.m34;this.m35=d*a+e*b+g*c+0*f;d=this.m41;e=this.m42;g= +this.m43;f=this.m44;this.m41=this.m41+0*this.m42+0*this.m43+0*this.m44;this.m42=0*d+this.m42+0*this.m43+0*this.m44;this.m43=0*d+0*e+this.m43+0*this.m44;this.m44=0*d+0*e+0*g+this.m44;this.m45=d*a+e*b+g*c+0*f;return this},adjustContrast:function(a){this.adjustContrastRGB(a,a,a);return this},adjustContrastRGB:function(a,b,c){a+=1;b+=1;c+=1;var d=128*(1-a),e=128*(1-b),g=128*(1-c),f=this.m11,l=this.m12,t=this.m13,m=this.m14;this.m11=this.m11*a+0*this.m12+0*this.m13+0*this.m14;this.m12=0*f+this.m12*b+0* +this.m13+0*this.m14;this.m13=0*f+0*l+this.m13*c+0*this.m14;this.m14=0*f+0*l+0*t+this.m14;this.m15=f*d+l*e+t*g+0*m;f=this.m21;l=this.m22;t=this.m23;m=this.m24;this.m21=this.m21*a+0*this.m22+0*this.m23+0*this.m24;this.m22=0*f+this.m22*b+0*this.m23+0*this.m24;this.m23=0*f+0*l+this.m23*c+0*this.m24;this.m24=0*f+0*l+0*t+this.m24;this.m25=f*d+l*e+t*g+0*m;f=this.m31;l=this.m32;t=this.m33;m=this.m34;this.m31=this.m31*a+0*this.m32+0*this.m33+0*this.m34;this.m32=0*f+this.m32*b+0*this.m33+0*this.m34;this.m33= +0*f+0*l+this.m33*c+0*this.m34;this.m34=0*f+0*l+0*t+this.m34;this.m35=f*d+l*e+t*g+0*m;f=this.m41;l=this.m42;t=this.m43;m=this.m44;this.m41=this.m41*a+0*this.m42+0*this.m43+0*this.m44;this.m42=0*f+this.m42*b+0*this.m43+0*this.m44;this.m43=0*f+0*l+this.m43*c+0*this.m44;this.m44=0*f+0*l+0*t+this.m44;this.m45=f*d+l*e+t*g+0*m;return this},adjustHue:function(a){a*=.01745329251994278;var b=Math.cos(a),c=Math.sin(a);a=Ta.LUMA_R+b*(1-Ta.LUMA_R)+c*-Ta.LUMA_R;var d=Ta.LUMA_G+b*-Ta.LUMA_G+c*-Ta.LUMA_G,e=Ta.LUMA_B+ +b*-Ta.LUMA_B+c*(1-Ta.LUMA_B),g=Ta.LUMA_R+b*-Ta.LUMA_R+.143*c,f=Ta.LUMA_G+b*(1-Ta.LUMA_G)+.14*c,l=Ta.LUMA_B+b*-Ta.LUMA_B+-.283*c,t=Ta.LUMA_R+b*-Ta.LUMA_R+c*-(1-Ta.LUMA_R),m=Ta.LUMA_G+b*-Ta.LUMA_G+c*Ta.LUMA_G;b=Ta.LUMA_B+b*(1-Ta.LUMA_B)+c*Ta.LUMA_B;c=this.m11;var h=this.m12,p=this.m13,k=this.m14;this.m11=this.m11*a+this.m12*g+this.m13*t+0*this.m14;this.m12=c*d+this.m12*f+this.m13*m+0*this.m14;this.m13=c*e+h*l+this.m13*b+0*this.m14;this.m14=0*c+0*h+0*p+this.m14;this.m15=0*c+0*h+0*p+0*k;c=this.m21;h= +this.m22;p=this.m23;k=this.m24;this.m21=this.m21*a+this.m22*g+this.m23*t+0*this.m24;this.m22=c*d+this.m22*f+this.m23*m+0*this.m24;this.m23=c*e+h*l+this.m23*b+0*this.m24;this.m24=0*c+0*h+0*p+this.m24;this.m25=0*c+0*h+0*p+0*k;c=this.m31;h=this.m32;p=this.m33;k=this.m34;this.m31=this.m31*a+this.m32*g+this.m33*t+0*this.m34;this.m32=c*d+this.m32*f+this.m33*m+0*this.m34;this.m33=c*e+h*l+this.m33*b+0*this.m34;this.m34=0*c+0*h+0*p+this.m34;this.m35=0*c+0*h+0*p+0*k;c=this.m41;h=this.m42;p=this.m43;k=this.m44; +this.m41=this.m41*a+this.m42*g+this.m43*t+0*this.m44;this.m42=c*d+this.m42*f+this.m43*m+0*this.m44;this.m43=c*e+h*l+this.m43*b+0*this.m44;this.m44=0*c+0*h+0*p+this.m44;this.m45=0*c+0*h+0*p+0*k;return this},luminance2Alpha:function(){var a=Ta.LUMA_R,b=Ta.LUMA_G,c=Ta.LUMA_B,d=this.m11,e=this.m12,g=this.m13,f=this.m14;this.m11=0*this.m11+0*this.m12+0*this.m13+this.m14*a;this.m12=0*d+0*this.m12+0*this.m13+this.m14*b;this.m13=0*d+0*e+0*this.m13+this.m14*c;this.m14=0*d+0*e+0*g+0*this.m14;this.m15=255*d+ +255*e+255*g+0*f;d=this.m21;e=this.m22;g=this.m23;f=this.m24;this.m21=0*this.m21+0*this.m22+0*this.m23+this.m24*a;this.m22=0*d+0*this.m22+0*this.m23+this.m24*b;this.m23=0*d+0*e+0*this.m23+this.m24*c;this.m24=0*d+0*e+0*g+0*this.m24;this.m25=255*d+255*e+255*g+0*f;d=this.m31;e=this.m32;g=this.m33;f=this.m34;this.m31=0*this.m31+0*this.m32+0*this.m33+this.m34*a;this.m32=0*d+0*this.m32+0*this.m33+this.m34*b;this.m33=0*d+0*e+0*this.m33+this.m34*c;this.m34=0*d+0*e+0*g+0*this.m34;this.m35=255*d+255*e+255*g+ +0*f;d=this.m41;e=this.m42;g=this.m43;f=this.m44;this.m41=0*this.m41+0*this.m42+0*this.m43+this.m44*a;this.m42=0*d+0*this.m42+0*this.m43+this.m44*b;this.m43=0*d+0*e+0*this.m43+this.m44*c;this.m44=0*d+0*e+0*g+0*this.m44;this.m45=255*d+255*e+255*g+0*f;return this},adjustAlphaContrast:function(a){a+=1;var b=128*(1-a),c=this.m11,d=this.m12,e=this.m13,g=this.m14;this.m11=this.m11+0*this.m12+0*this.m13+0*this.m14;this.m12=0*c+this.m12+0*this.m13+0*this.m14;this.m13=0*c+0*d+this.m13+0*this.m14;this.m14=0* +c+0*d+0*e+this.m14*a;this.m15=0*c+0*d+0*e+g*b;c=this.m21;d=this.m22;e=this.m23;g=this.m24;this.m21=this.m21+0*this.m22+0*this.m23+0*this.m24;this.m22=0*c+this.m22+0*this.m23+0*this.m24;this.m23=0*c+0*d+this.m23+0*this.m24;this.m24=0*c+0*d+0*e+this.m24*a;this.m25=0*c+0*d+0*e+g*b;c=this.m31;d=this.m32;e=this.m33;g=this.m34;this.m31=this.m31+0*this.m32+0*this.m33+0*this.m34;this.m32=0*c+this.m32+0*this.m33+0*this.m34;this.m33=0*c+0*d+this.m33+0*this.m34;this.m34=0*c+0*d+0*e+this.m34*a;this.m35=0*c+0* +d+0*e+g*b;c=this.m41;d=this.m42;e=this.m43;g=this.m44;this.m41=this.m41+0*this.m42+0*this.m43+0*this.m44;this.m42=0*c+this.m42+0*this.m43+0*this.m44;this.m43=0*c+0*d+this.m43+0*this.m44;this.m44=0*c+0*d+0*e+this.m44*a;this.m45=0*c+0*d+0*e+g*b;return this},colorize:function(a,b){null==b&&(b=1);var c=.00392156862745098*(a>>>16&255),d=.00392156862745098*(a>>>8&255),e=.00392156862745098*(a&255),g=1-b;a=g+b*c*Ta.LUMA_R;var f=b*c*Ta.LUMA_G;c=b*c*Ta.LUMA_B;var l=b*d*Ta.LUMA_R,t=g+b*d*Ta.LUMA_G;d=b*d*Ta.LUMA_B; +var m=b*e*Ta.LUMA_R,h=b*e*Ta.LUMA_G;b=g+b*e*Ta.LUMA_B;e=this.m11;g=this.m12;var p=this.m13,k=this.m14;this.m11=this.m11*a+this.m12*l+this.m13*m+0*this.m14;this.m12=e*f+this.m12*t+this.m13*h+0*this.m14;this.m13=e*c+g*d+this.m13*b+0*this.m14;this.m14=0*e+0*g+0*p+this.m14;this.m15=0*e+0*g+0*p+0*k;e=this.m21;g=this.m22;p=this.m23;k=this.m24;this.m21=this.m21*a+this.m22*l+this.m23*m+0*this.m24;this.m22=e*f+this.m22*t+this.m23*h+0*this.m24;this.m23=e*c+g*d+this.m23*b+0*this.m24;this.m24=0*e+0*g+0*p+this.m24; +this.m25=0*e+0*g+0*p+0*k;e=this.m31;g=this.m32;p=this.m33;k=this.m34;this.m31=this.m31*a+this.m32*l+this.m33*m+0*this.m34;this.m32=e*f+this.m32*t+this.m33*h+0*this.m34;this.m33=e*c+g*d+this.m33*b+0*this.m34;this.m34=0*e+0*g+0*p+this.m34;this.m35=0*e+0*g+0*p+0*k;e=this.m41;g=this.m42;p=this.m43;k=this.m44;this.m41=this.m41*a+this.m42*l+this.m43*m+0*this.m44;this.m42=e*f+this.m42*t+this.m43*h+0*this.m44;this.m43=e*c+g*d+this.m43*b+0*this.m44;this.m44=0*e+0*g+0*p+this.m44;this.m45=0*e+0*g+0*p+0*k;return this}, +rotateHue:function(a){if(!this.hueInitialized){this.hueInitialized=!0;this.preHue=new Ta;this.preHue.rotateRed(45);this.preHue.rotateGreen(-39.182655);var b=[];b[0]=Ta.LUMA_R2;b[1]=Ta.LUMA_G2;b[2]=Ta.LUMA_B2;b[3]=1;this.preHue.transformVector(b);var c=b[0]/b[2];b=b[1]/b[2];this.preHue.shearBlue(c,b);this.postHue=new Ta;this.postHue.shearBlue(-c,-b);this.postHue.rotateGreen(39.182655);this.postHue.rotateRed(-45)}c=this.preHue;b=this.m11;var d=this.m12,e=this.m13,g=this.m14;this.m11=this.m11*c.m11+ +this.m12*c.m21+this.m13*c.m31+this.m14*c.m41;this.m12=b*c.m12+this.m12*c.m22+this.m13*c.m32+this.m14*c.m42;this.m13=b*c.m13+d*c.m23+this.m13*c.m33+this.m14*c.m43;this.m14=b*c.m14+d*c.m24+e*c.m34+this.m14*c.m44;this.m15=b*c.m15+d*c.m25+e*c.m35+g*c.m45;b=this.m21;d=this.m22;e=this.m23;g=this.m24;this.m21=this.m21*c.m11+this.m22*c.m21+this.m23*c.m31+this.m24*c.m41;this.m22=b*c.m12+this.m22*c.m22+this.m23*c.m32+this.m24*c.m42;this.m23=b*c.m13+d*c.m23+this.m23*c.m33+this.m24*c.m43;this.m24=b*c.m14+d*c.m24+ +e*c.m34+this.m24*c.m44;this.m25=b*c.m15+d*c.m25+e*c.m35+g*c.m45;b=this.m31;d=this.m32;e=this.m33;g=this.m34;this.m31=this.m31*c.m11+this.m32*c.m21+this.m33*c.m31+this.m34*c.m41;this.m32=b*c.m12+this.m32*c.m22+this.m33*c.m32+this.m34*c.m42;this.m33=b*c.m13+d*c.m23+this.m33*c.m33+this.m34*c.m43;this.m34=b*c.m14+d*c.m24+e*c.m34+this.m34*c.m44;this.m35=b*c.m15+d*c.m25+e*c.m35+g*c.m45;b=this.m41;d=this.m42;e=this.m43;g=this.m44;this.m41=this.m41*c.m11+this.m42*c.m21+this.m43*c.m31+this.m44*c.m41;this.m42= +b*c.m12+this.m42*c.m22+this.m43*c.m32+this.m44*c.m42;this.m43=b*c.m13+d*c.m23+this.m43*c.m33+this.m44*c.m43;this.m44=b*c.m14+d*c.m24+e*c.m34+this.m44*c.m44;this.m45=b*c.m15+d*c.m25+e*c.m35+g*c.m45;this.rotateBlue(a);c=this.postHue;b=this.m11;d=this.m12;e=this.m13;g=this.m14;this.m11=this.m11*c.m11+this.m12*c.m21+this.m13*c.m31+this.m14*c.m41;this.m12=b*c.m12+this.m12*c.m22+this.m13*c.m32+this.m14*c.m42;this.m13=b*c.m13+d*c.m23+this.m13*c.m33+this.m14*c.m43;this.m14=b*c.m14+d*c.m24+e*c.m34+this.m14* +c.m44;this.m15=b*c.m15+d*c.m25+e*c.m35+g*c.m45;b=this.m21;d=this.m22;e=this.m23;g=this.m24;this.m21=this.m21*c.m11+this.m22*c.m21+this.m23*c.m31+this.m24*c.m41;this.m22=b*c.m12+this.m22*c.m22+this.m23*c.m32+this.m24*c.m42;this.m23=b*c.m13+d*c.m23+this.m23*c.m33+this.m24*c.m43;this.m24=b*c.m14+d*c.m24+e*c.m34+this.m24*c.m44;this.m25=b*c.m15+d*c.m25+e*c.m35+g*c.m45;b=this.m31;d=this.m32;e=this.m33;g=this.m34;this.m31=this.m31*c.m11+this.m32*c.m21+this.m33*c.m31+this.m34*c.m41;this.m32=b*c.m12+this.m32* +c.m22+this.m33*c.m32+this.m34*c.m42;this.m33=b*c.m13+d*c.m23+this.m33*c.m33+this.m34*c.m43;this.m34=b*c.m14+d*c.m24+e*c.m34+this.m34*c.m44;this.m35=b*c.m15+d*c.m25+e*c.m35+g*c.m45;b=this.m41;d=this.m42;e=this.m43;g=this.m44;this.m41=this.m41*c.m11+this.m42*c.m21+this.m43*c.m31+this.m44*c.m41;this.m42=b*c.m12+this.m42*c.m22+this.m43*c.m32+this.m44*c.m42;this.m43=b*c.m13+d*c.m23+this.m43*c.m33+this.m44*c.m43;this.m44=b*c.m14+d*c.m24+e*c.m34+this.m44*c.m44;this.m45=b*c.m15+d*c.m25+e*c.m35+g*c.m45;return this}, +setChannels:function(a,b,c,d){null==d&&(d=8);null==c&&(c=4);null==b&&(b=2);null==a&&(a=1);var e=(1==(a&1)?1:0)+(2==(a&2)?1:0)+(4==(a&4)?1:0)+(8==(a&8)?1:0);0<e&&(e=1/e);var g=(1==(b&1)?1:0)+(2==(b&2)?1:0)+(4==(b&4)?1:0)+(8==(b&8)?1:0);0<g&&(g=1/g);var f=(1==(c&1)?1:0)+(2==(c&2)?1:0)+(4==(c&4)?1:0)+(8==(c&8)?1:0);0<f&&(f=1/f);var l=(1==(d&1)?1:0)+(2==(d&2)?1:0)+(4==(d&4)?1:0)+(8==(d&8)?1:0);0<l&&(l=1/l);var t=1==(a&1)?e:0,m=2==(a&2)?e:0,h=4==(a&4)?e:0;a=8==(a&8)?e:0;e=1==(b&1)?g:0;var p=2==(b&2)?g: +0,k=4==(b&4)?g:0;b=8==(b&8)?g:0;g=1==(c&1)?f:0;var n=2==(c&2)?f:0,r=4==(c&4)?f:0;c=8==(c&8)?f:0;f=1==(d&1)?l:0;var q=2==(d&2)?l:0,v=4==(d&4)?l:0;d=8==(d&8)?l:0;l=this.m11;var u=this.m12,w=this.m13,B=this.m14;this.m11=this.m11*t+this.m12*e+this.m13*g+this.m14*f;this.m12=l*m+this.m12*p+this.m13*n+this.m14*q;this.m13=l*h+u*k+this.m13*r+this.m14*v;this.m14=l*a+u*b+w*c+this.m14*d;this.m15=0*l+0*u+0*w+0*B;l=this.m21;u=this.m22;w=this.m23;B=this.m24;this.m21=this.m21*t+this.m22*e+this.m23*g+this.m24*f;this.m22= +l*m+this.m22*p+this.m23*n+this.m24*q;this.m23=l*h+u*k+this.m23*r+this.m24*v;this.m24=l*a+u*b+w*c+this.m24*d;this.m25=0*l+0*u+0*w+0*B;l=this.m31;u=this.m32;w=this.m33;B=this.m34;this.m31=this.m31*t+this.m32*e+this.m33*g+this.m34*f;this.m32=l*m+this.m32*p+this.m33*n+this.m34*q;this.m33=l*h+u*k+this.m33*r+this.m34*v;this.m34=l*a+u*b+w*c+this.m34*d;this.m35=0*l+0*u+0*w+0*B;l=this.m41;u=this.m42;w=this.m43;B=this.m44;this.m41=this.m41*t+this.m42*e+this.m43*g+this.m44*f;this.m42=l*m+this.m42*p+this.m43* +n+this.m44*q;this.m43=l*h+u*k+this.m43*r+this.m44*v;this.m44=l*a+u*b+w*c+this.m44*d;this.m45=0*l+0*u+0*w+0*B;return this},average:function(a,b,c){null==c&&(c=.33333333);null==b&&(b=.33333333);null==a&&(a=.33333333);var d=this.m11,e=this.m12,g=this.m13,f=this.m14;this.m11=this.m11*a+this.m12*a+this.m13*a+0*this.m14;this.m12=d*b+this.m12*b+this.m13*b+0*this.m14;this.m13=d*c+e*c+this.m13*c+0*this.m14;this.m14=0*d+0*e+0*g+this.m14;this.m15=0*d+0*e+0*g+0*f;d=this.m21;e=this.m22;g=this.m23;f=this.m24;this.m21= +this.m21*a+this.m22*a+this.m23*a+0*this.m24;this.m22=d*b+this.m22*b+this.m23*b+0*this.m24;this.m23=d*c+e*c+this.m23*c+0*this.m24;this.m24=0*d+0*e+0*g+this.m24;this.m25=0*d+0*e+0*g+0*f;d=this.m31;e=this.m32;g=this.m33;f=this.m34;this.m31=this.m31*a+this.m32*a+this.m33*a+0*this.m34;this.m32=d*b+this.m32*b+this.m33*b+0*this.m34;this.m33=d*c+e*c+this.m33*c+0*this.m34;this.m34=0*d+0*e+0*g+this.m34;this.m35=0*d+0*e+0*g+0*f;d=this.m41;e=this.m42;g=this.m43;f=this.m44;this.m41=this.m41*a+this.m42*a+this.m43* +a+0*this.m44;this.m42=d*b+this.m42*b+this.m43*b+0*this.m44;this.m43=d*c+e*c+this.m43*c+0*this.m44;this.m44=0*d+0*e+0*g+this.m44;this.m45=0*d+0*e+0*g+0*f;return this},threshold:function(a,b){null==b&&(b=256);var c=Ta.LUMA_R*b,d=Ta.LUMA_G*b,e=Ta.LUMA_B*b,g=-b*a,f=Ta.LUMA_R*b,l=Ta.LUMA_G*b,t=Ta.LUMA_B*b,m=-b*a,h=Ta.LUMA_R*b,p=Ta.LUMA_G*b,k=Ta.LUMA_B*b;a*=-b;b=this.m11;var n=this.m12,r=this.m13,q=this.m14;this.m11=this.m11*c+this.m12*f+this.m13*h+0*this.m14;this.m12=b*d+this.m12*l+this.m13*p+0*this.m14; +this.m13=b*e+n*t+this.m13*k+0*this.m14;this.m14=0*b+0*n+0*r+this.m14;this.m15=b*g+n*m+r*a+0*q;b=this.m21;n=this.m22;r=this.m23;q=this.m24;this.m21=this.m21*c+this.m22*f+this.m23*h+0*this.m24;this.m22=b*d+this.m22*l+this.m23*p+0*this.m24;this.m23=b*e+n*t+this.m23*k+0*this.m24;this.m24=0*b+0*n+0*r+this.m24;this.m25=b*g+n*m+r*a+0*q;b=this.m31;n=this.m32;r=this.m33;q=this.m34;this.m31=this.m31*c+this.m32*f+this.m33*h+0*this.m34;this.m32=b*d+this.m32*l+this.m33*p+0*this.m34;this.m33=b*e+n*t+this.m33*k+ +0*this.m34;this.m34=0*b+0*n+0*r+this.m34;this.m35=b*g+n*m+r*a+0*q;b=this.m41;n=this.m42;r=this.m43;q=this.m44;this.m41=this.m41*c+this.m42*f+this.m43*h+0*this.m44;this.m42=b*d+this.m42*l+this.m43*p+0*this.m44;this.m43=b*e+n*t+this.m43*k+0*this.m44;this.m44=0*b+0*n+0*r+this.m44;this.m45=b*g+n*m+r*a+0*q;return this},desaturate:function(){var a=Ta.LUMA_R,b=Ta.LUMA_G,c=Ta.LUMA_B,d=Ta.LUMA_R,e=Ta.LUMA_G,g=Ta.LUMA_B,f=Ta.LUMA_R,l=Ta.LUMA_G,t=Ta.LUMA_B,m=this.m11,h=this.m12,p=this.m13,k=this.m14;this.m11= +this.m11*a+this.m12*d+this.m13*f+0*this.m14;this.m12=m*b+this.m12*e+this.m13*l+0*this.m14;this.m13=m*c+h*g+this.m13*t+0*this.m14;this.m14=0*m+0*h+0*p+this.m14;this.m15=0*m+0*h+0*p+0*k;m=this.m21;h=this.m22;p=this.m23;k=this.m24;this.m21=this.m21*a+this.m22*d+this.m23*f+0*this.m24;this.m22=m*b+this.m22*e+this.m23*l+0*this.m24;this.m23=m*c+h*g+this.m23*t+0*this.m24;this.m24=0*m+0*h+0*p+this.m24;this.m25=0*m+0*h+0*p+0*k;m=this.m31;h=this.m32;p=this.m33;k=this.m34;this.m31=this.m31*a+this.m32*d+this.m33* +f+0*this.m34;this.m32=m*b+this.m32*e+this.m33*l+0*this.m34;this.m33=m*c+h*g+this.m33*t+0*this.m34;this.m34=0*m+0*h+0*p+this.m34;this.m35=0*m+0*h+0*p+0*k;m=this.m41;h=this.m42;p=this.m43;k=this.m44;this.m41=this.m41*a+this.m42*d+this.m43*f+0*this.m44;this.m42=m*b+this.m42*e+this.m43*l+0*this.m44;this.m43=m*c+h*g+this.m43*t+0*this.m44;this.m44=0*m+0*h+0*p+this.m44;this.m45=0*m+0*h+0*p+0*k;return this},setMultiplicators:function(a,b,c,d){null==d&&(d=1);null==c&&(c=1);null==b&&(b=1);null==a&&(a=1);var e= +this.m11,g=this.m12,f=this.m13,l=this.m14;this.m11=this.m11*a+0*this.m12+0*this.m13+0*this.m14;this.m12=0*e+this.m12*b+0*this.m13+0*this.m14;this.m13=0*e+0*g+this.m13*c+0*this.m14;this.m14=0*e+0*g+0*f+this.m14*d;this.m15=0*e+0*g+0*f+0*l;e=this.m21;g=this.m22;f=this.m23;l=this.m24;this.m21=this.m21*a+0*this.m22+0*this.m23+0*this.m24;this.m22=0*e+this.m22*b+0*this.m23+0*this.m24;this.m23=0*e+0*g+this.m23*c+0*this.m24;this.m24=0*e+0*g+0*f+this.m24*d;this.m25=0*e+0*g+0*f+0*l;e=this.m31;g=this.m32;f=this.m33; +l=this.m34;this.m31=this.m31*a+0*this.m32+0*this.m33+0*this.m34;this.m32=0*e+this.m32*b+0*this.m33+0*this.m34;this.m33=0*e+0*g+this.m33*c+0*this.m34;this.m34=0*e+0*g+0*f+this.m34*d;this.m35=0*e+0*g+0*f+0*l;e=this.m41;g=this.m42;f=this.m43;l=this.m44;this.m41=this.m41*a+0*this.m42+0*this.m43+0*this.m44;this.m42=0*e+this.m42*b+0*this.m43+0*this.m44;this.m43=0*e+0*g+this.m43*c+0*this.m44;this.m44=0*e+0*g+0*f+this.m44*d;this.m45=0*e+0*g+0*f+0*l;return this},clearChannels:function(a,b,c,d){null==d&&(d= +!1);null==c&&(c=!1);null==b&&(b=!1);null==a&&(a=!1);a&&(this.m11=this.m12=this.m13=this.m14=this.m15=0);b&&(this.m21=this.m22=this.m23=this.m24=this.m25=0);c&&(this.m31=this.m32=this.m33=this.m34=this.m35=0);d&&(this.m41=this.m42=this.m43=this.m44=this.m45=0);return this},thresholdAlpha:function(a,b){null==b&&(b=256);a*=-b;var c=this.m11,d=this.m12,e=this.m13,g=this.m14;this.m11=this.m11+0*this.m12+0*this.m13+0*this.m14;this.m12=0*c+this.m12+0*this.m13+0*this.m14;this.m13=0*c+0*d+this.m13+0*this.m14; +this.m14=0*c+0*d+0*e+this.m14*b;this.m15=0*c+0*d+0*e+g*a;c=this.m21;d=this.m22;e=this.m23;g=this.m24;this.m21=this.m21+0*this.m22+0*this.m23+0*this.m24;this.m22=0*c+this.m22+0*this.m23+0*this.m24;this.m23=0*c+0*d+this.m23+0*this.m24;this.m24=0*c+0*d+0*e+this.m24*b;this.m25=0*c+0*d+0*e+g*a;c=this.m31;d=this.m32;e=this.m33;g=this.m34;this.m31=this.m31+0*this.m32+0*this.m33+0*this.m34;this.m32=0*c+this.m32+0*this.m33+0*this.m34;this.m33=0*c+0*d+this.m33+0*this.m34;this.m34=0*c+0*d+0*e+this.m34*b;this.m35= +0*c+0*d+0*e+g*a;c=this.m41;d=this.m42;e=this.m43;g=this.m44;this.m41=this.m41+0*this.m42+0*this.m43+0*this.m44;this.m42=0*c+this.m42+0*this.m43+0*this.m44;this.m43=0*c+0*d+this.m43+0*this.m44;this.m44=0*c+0*d+0*e+this.m44*b;this.m45=0*c+0*d+0*e+g*a;return this},averageRGB2Alpha:function(){var a=Ta.INV3,b=Ta.INV3,c=Ta.INV3,d=this.m11,e=this.m12,g=this.m13,f=this.m14;this.m11=0*this.m11+0*this.m12+0*this.m13+this.m14*a;this.m12=0*d+0*this.m12+0*this.m13+this.m14*b;this.m13=0*d+0*e+0*this.m13+this.m14* +c;this.m14=0*d+0*e+0*g+0*this.m14;this.m15=255*d+255*e+255*g+0*f;d=this.m21;e=this.m22;g=this.m23;f=this.m24;this.m21=0*this.m21+0*this.m22+0*this.m23+this.m24*a;this.m22=0*d+0*this.m22+0*this.m23+this.m24*b;this.m23=0*d+0*e+0*this.m23+this.m24*c;this.m24=0*d+0*e+0*g+0*this.m24;this.m25=255*d+255*e+255*g+0*f;d=this.m31;e=this.m32;g=this.m33;f=this.m34;this.m31=0*this.m31+0*this.m32+0*this.m33+this.m34*a;this.m32=0*d+0*this.m32+0*this.m33+this.m34*b;this.m33=0*d+0*e+0*this.m33+this.m34*c;this.m34= +0*d+0*e+0*g+0*this.m34;this.m35=255*d+255*e+255*g+0*f;d=this.m41;e=this.m42;g=this.m43;f=this.m44;this.m41=0*this.m41+0*this.m42+0*this.m43+this.m44*a;this.m42=0*d+0*this.m42+0*this.m43+this.m44*b;this.m43=0*d+0*e+0*this.m43+this.m44*c;this.m44=0*d+0*e+0*g+0*this.m44;this.m45=255*d+255*e+255*g+0*f;return this},invertAlpha:function(){var a=this.m11,b=this.m12,c=this.m13,d=this.m14;this.m11=this.m11+0*this.m12+0*this.m13+0*this.m14;this.m12=0*a+this.m12+0*this.m13+0*this.m14;this.m13=0*a+0*b+this.m13+ +0*this.m14;this.m14=0*a+0*b+0*c+-1*this.m14;this.m15=0*a+0*b+0*c+255*d;a=this.m21;b=this.m22;c=this.m23;d=this.m24;this.m21=this.m21+0*this.m22+0*this.m23+0*this.m24;this.m22=0*a+this.m22+0*this.m23+0*this.m24;this.m23=0*a+0*b+this.m23+0*this.m24;this.m24=0*a+0*b+0*c+-1*this.m24;this.m25=0*a+0*b+0*c+255*d;a=this.m31;b=this.m32;c=this.m33;d=this.m34;this.m31=this.m31+0*this.m32+0*this.m33+0*this.m34;this.m32=0*a+this.m32+0*this.m33+0*this.m34;this.m33=0*a+0*b+this.m33+0*this.m34;this.m34=0*a+0*b+0* +c+-1*this.m34;this.m35=0*a+0*b+0*c+255*d;a=this.m41;b=this.m42;c=this.m43;d=this.m44;this.m41=this.m41+0*this.m42+0*this.m43+0*this.m44;this.m42=0*a+this.m42+0*this.m43+0*this.m44;this.m43=0*a+0*b+this.m43+0*this.m44;this.m44=0*a+0*b+0*c+-1*this.m44;this.m45=0*a+0*b+0*c+255*d;return this},rgb2Alpha:function(a,b,c){var d=this.m11,e=this.m12,g=this.m13,f=this.m14;this.m11=0*this.m11+0*this.m12+0*this.m13+this.m14*a;this.m12=0*d+0*this.m12+0*this.m13+this.m14*b;this.m13=0*d+0*e+0*this.m13+this.m14*c; +this.m14=0*d+0*e+0*g+0*this.m14;this.m15=255*d+255*e+255*g+0*f;d=this.m21;e=this.m22;g=this.m23;f=this.m24;this.m21=0*this.m21+0*this.m22+0*this.m23+this.m24*a;this.m22=0*d+0*this.m22+0*this.m23+this.m24*b;this.m23=0*d+0*e+0*this.m23+this.m24*c;this.m24=0*d+0*e+0*g+0*this.m24;this.m25=255*d+255*e+255*g+0*f;d=this.m31;e=this.m32;g=this.m33;f=this.m34;this.m31=0*this.m31+0*this.m32+0*this.m33+this.m34*a;this.m32=0*d+0*this.m32+0*this.m33+this.m34*b;this.m33=0*d+0*e+0*this.m33+this.m34*c;this.m34=0* +d+0*e+0*g+0*this.m34;this.m35=255*d+255*e+255*g+0*f;d=this.m41;e=this.m42;g=this.m43;f=this.m44;this.m41=0*this.m41+0*this.m42+0*this.m43+this.m44*a;this.m42=0*d+0*this.m42+0*this.m43+this.m44*b;this.m43=0*d+0*e+0*this.m43+this.m44*c;this.m44=0*d+0*e+0*g+0*this.m44;this.m45=255*d+255*e+255*g+0*f;return this},setAlpha:function(a){var b=this.m11,c=this.m12,d=this.m13,e=this.m14;this.m11=this.m11+0*this.m12+0*this.m13+0*this.m14;this.m12=0*b+this.m12+0*this.m13+0*this.m14;this.m13=0*b+0*c+this.m13+0* +this.m14;this.m14=0*b+0*c+0*d+this.m14*a;this.m15=0*b+0*c+0*d+0*e;b=this.m21;c=this.m22;d=this.m23;e=this.m24;this.m21=this.m21+0*this.m22+0*this.m23+0*this.m24;this.m22=0*b+this.m22+0*this.m23+0*this.m24;this.m23=0*b+0*c+this.m23+0*this.m24;this.m24=0*b+0*c+0*d+this.m24*a;this.m25=0*b+0*c+0*d+0*e;b=this.m31;c=this.m32;d=this.m33;e=this.m34;this.m31=this.m31+0*this.m32+0*this.m33+0*this.m34;this.m32=0*b+this.m32+0*this.m33+0*this.m34;this.m33=0*b+0*c+this.m33+0*this.m34;this.m34=0*b+0*c+0*d+this.m34* +a;this.m35=0*b+0*c+0*d+0*e;b=this.m41;c=this.m42;d=this.m43;e=this.m44;this.m41=this.m41+0*this.m42+0*this.m43+0*this.m44;this.m42=0*b+this.m42+0*this.m43+0*this.m44;this.m43=0*b+0*c+this.m43+0*this.m44;this.m44=0*b+0*c+0*d+this.m44*a;this.m45=0*b+0*c+0*d+0*e;return this},rotateRed:function(a){a*=.01745329251994278;var b=Math.cos(a);a=Math.cos(a);this.m11=1;this.m21=this.m15=this.m14=this.m13=this.m12=0;this.m22=b;this.m23=-a;this.m31=this.m25=this.m24=0;this.m32=a;this.m33=b;this.m43=this.m42=this.m41= +this.m35=this.m34=0;this.m44=1;this.m45=0;return this},rotateGreen:function(a){a*=.01745329251994278;var b=Math.cos(a);a=Math.cos(a);this.m11=b;this.m12=0;this.m13=a;this.m21=this.m15=this.m14=0;this.m22=1;this.m25=this.m24=this.m23=0;this.m31=-a;this.m32=0;this.m33=b;this.m43=this.m42=this.m41=this.m35=this.m34=0;this.m44=1;this.m45=0;return this},rotateBlue:function(a){a*=.01745329251994278;var b=Math.cos(a);a=Math.cos(a);this.m11=b;this.m12=-a;this.m15=this.m14=this.m13=0;this.m21=a;this.m22=b; +this.m32=this.m31=this.m25=this.m24=this.m23=0;this.m33=1;this.m43=this.m42=this.m41=this.m35=this.m34=0;this.m44=1;this.m45=0;return this},shearRed:function(a,b){this.m11=1;this.m12=a;this.m13=b;this.m21=this.m15=this.m14=0;this.m22=1;this.m32=this.m31=this.m25=this.m24=this.m23=0;this.m33=1;this.m43=this.m42=this.m41=this.m35=this.m34=0;this.m44=1;this.m45=0;return this},shearGreen:function(a,b){this.m11=1;this.m15=this.m14=this.m13=this.m12=0;this.m21=a;this.m22=1;this.m23=b;this.m32=this.m31= +this.m25=this.m24=0;this.m33=1;this.m43=this.m42=this.m41=this.m35=this.m34=0;this.m44=1;this.m45=0;return this},shearBlue:function(a,b){this.m11=1;this.m21=this.m15=this.m14=this.m13=this.m12=0;this.m22=1;this.m25=this.m24=this.m23=0;this.m31=a;this.m32=b;this.m33=1;this.m43=this.m42=this.m41=this.m35=this.m34=0;this.m44=1;this.m45=0;return this},applyColorDeficiency:function(a){switch(a._hx_index){case 0:a=this.m11;var b=this.m12,c=this.m13,d=this.m14;this.m11=.567*this.m11+.558*this.m12+0*this.m13+ +0*this.m14;this.m12=.433*a+.442*this.m12+.242*this.m13+0*this.m14;this.m13=0*a+0*b+.758*this.m13+0*this.m14;this.m14=0*a+0*b+0*c+this.m14;this.m15=0*a+0*b+0*c+0*d;a=this.m21;b=this.m22;c=this.m23;d=this.m24;this.m21=.567*this.m21+.558*this.m22+0*this.m23+0*this.m24;this.m22=.433*a+.442*this.m22+.242*this.m23+0*this.m24;this.m23=0*a+0*b+.758*this.m23+0*this.m24;this.m24=0*a+0*b+0*c+this.m24;this.m25=0*a+0*b+0*c+0*d;a=this.m31;b=this.m32;c=this.m33;d=this.m34;this.m31=.567*this.m31+.558*this.m32+0* +this.m33+0*this.m34;this.m32=.433*a+.442*this.m32+.242*this.m33+0*this.m34;this.m33=0*a+0*b+.758*this.m33+0*this.m34;this.m34=0*a+0*b+0*c+this.m34;this.m35=0*a+0*b+0*c+0*d;a=this.m41;b=this.m42;c=this.m43;d=this.m44;this.m41=.567*this.m41+.558*this.m42+0*this.m43+0*this.m44;this.m42=.433*a+.442*this.m42+.242*this.m43+0*this.m44;this.m43=0*a+0*b+.758*this.m43+0*this.m44;this.m44=0*a+0*b+0*c+this.m44;this.m45=0*a+0*b+0*c+0*d;break;case 1:a=this.m11;b=this.m12;c=this.m13;d=this.m14;this.m11=.817*this.m11+ +.333*this.m12+0*this.m13+0*this.m14;this.m12=.183*a+.667*this.m12+.125*this.m13+0*this.m14;this.m13=0*a+0*b+.875*this.m13+0*this.m14;this.m14=0*a+0*b+0*c+this.m14;this.m15=0*a+0*b+0*c+0*d;a=this.m21;b=this.m22;c=this.m23;d=this.m24;this.m21=.817*this.m21+.333*this.m22+0*this.m23+0*this.m24;this.m22=.183*a+.667*this.m22+.125*this.m23+0*this.m24;this.m23=0*a+0*b+.875*this.m23+0*this.m24;this.m24=0*a+0*b+0*c+this.m24;this.m25=0*a+0*b+0*c+0*d;a=this.m31;b=this.m32;c=this.m33;d=this.m34;this.m31=.817* +this.m31+.333*this.m32+0*this.m33+0*this.m34;this.m32=.183*a+.667*this.m32+.125*this.m33+0*this.m34;this.m33=0*a+0*b+.875*this.m33+0*this.m34;this.m34=0*a+0*b+0*c+this.m34;this.m35=0*a+0*b+0*c+0*d;a=this.m41;b=this.m42;c=this.m43;d=this.m44;this.m41=.817*this.m41+.333*this.m42+0*this.m43+0*this.m44;this.m42=.183*a+.667*this.m42+.125*this.m43+0*this.m44;this.m43=0*a+0*b+.875*this.m43+0*this.m44;this.m44=0*a+0*b+0*c+this.m44;this.m45=0*a+0*b+0*c+0*d;break;case 2:a=this.m11;b=this.m12;c=this.m13;d=this.m14; +this.m11=.625*this.m11+.7*this.m12+0*this.m13+0*this.m14;this.m12=.375*a+.3*this.m12+.3*this.m13+0*this.m14;this.m13=0*a+0*b+.7*this.m13+0*this.m14;this.m14=0*a+0*b+0*c+this.m14;this.m15=0*a+0*b+0*c+0*d;a=this.m21;b=this.m22;c=this.m23;d=this.m24;this.m21=.625*this.m21+.7*this.m22+0*this.m23+0*this.m24;this.m22=.375*a+.3*this.m22+.3*this.m23+0*this.m24;this.m23=0*a+0*b+.7*this.m23+0*this.m24;this.m24=0*a+0*b+0*c+this.m24;this.m25=0*a+0*b+0*c+0*d;a=this.m31;b=this.m32;c=this.m33;d=this.m34;this.m31= +.625*this.m31+.7*this.m32+0*this.m33+0*this.m34;this.m32=.375*a+.3*this.m32+.3*this.m33+0*this.m34;this.m33=0*a+0*b+.7*this.m33+0*this.m34;this.m34=0*a+0*b+0*c+this.m34;this.m35=0*a+0*b+0*c+0*d;a=this.m41;b=this.m42;c=this.m43;d=this.m44;this.m41=.625*this.m41+.7*this.m42+0*this.m43+0*this.m44;this.m42=.375*a+.3*this.m42+.3*this.m43+0*this.m44;this.m43=0*a+0*b+.7*this.m43+0*this.m44;this.m44=0*a+0*b+0*c+this.m44;this.m45=0*a+0*b+0*c+0*d;break;case 3:a=this.m11;b=this.m12;c=this.m13;d=this.m14;this.m11= +.8*this.m11+.258*this.m12+0*this.m13+0*this.m14;this.m12=.2*a+.742*this.m12+.142*this.m13+0*this.m14;this.m13=0*a+0*b+.858*this.m13+0*this.m14;this.m14=0*a+0*b+0*c+this.m14;this.m15=0*a+0*b+0*c+0*d;a=this.m21;b=this.m22;c=this.m23;d=this.m24;this.m21=.8*this.m21+.258*this.m22+0*this.m23+0*this.m24;this.m22=.2*a+.742*this.m22+.142*this.m23+0*this.m24;this.m23=0*a+0*b+.858*this.m23+0*this.m24;this.m24=0*a+0*b+0*c+this.m24;this.m25=0*a+0*b+0*c+0*d;a=this.m31;b=this.m32;c=this.m33;d=this.m34;this.m31= +.8*this.m31+.258*this.m32+0*this.m33+0*this.m34;this.m32=.2*a+.742*this.m32+.142*this.m33+0*this.m34;this.m33=0*a+0*b+.858*this.m33+0*this.m34;this.m34=0*a+0*b+0*c+this.m34;this.m35=0*a+0*b+0*c+0*d;a=this.m41;b=this.m42;c=this.m43;d=this.m44;this.m41=.8*this.m41+.258*this.m42+0*this.m43+0*this.m44;this.m42=.2*a+.742*this.m42+.142*this.m43+0*this.m44;this.m43=0*a+0*b+.858*this.m43+0*this.m44;this.m44=0*a+0*b+0*c+this.m44;this.m45=0*a+0*b+0*c+0*d;break;case 4:a=this.m11;b=this.m12;c=this.m13;d=this.m14; +this.m11=.95*this.m11+0*this.m12+0*this.m13+0*this.m14;this.m12=.05*a+.433*this.m12+.475*this.m13+0*this.m14;this.m13=0*a+.567*b+.525*this.m13+0*this.m14;this.m14=0*a+0*b+0*c+this.m14;this.m15=0*a+0*b+0*c+0*d;a=this.m21;b=this.m22;c=this.m23;d=this.m24;this.m21=.95*this.m21+0*this.m22+0*this.m23+0*this.m24;this.m22=.05*a+.433*this.m22+.475*this.m23+0*this.m24;this.m23=0*a+.567*b+.525*this.m23+0*this.m24;this.m24=0*a+0*b+0*c+this.m24;this.m25=0*a+0*b+0*c+0*d;a=this.m31;b=this.m32;c=this.m33;d=this.m34; +this.m31=.95*this.m31+0*this.m32+0*this.m33+0*this.m34;this.m32=.05*a+.433*this.m32+.475*this.m33+0*this.m34;this.m33=0*a+.567*b+.525*this.m33+0*this.m34;this.m34=0*a+0*b+0*c+this.m34;this.m35=0*a+0*b+0*c+0*d;a=this.m41;b=this.m42;c=this.m43;d=this.m44;this.m41=.95*this.m41+0*this.m42+0*this.m43+0*this.m44;this.m42=.05*a+.433*this.m42+.475*this.m43+0*this.m44;this.m43=0*a+.567*b+.525*this.m43+0*this.m44;this.m44=0*a+0*b+0*c+this.m44;this.m45=0*a+0*b+0*c+0*d;break;case 5:a=this.m11;b=this.m12;c=this.m13; +d=this.m14;this.m11=.967*this.m11+0*this.m12+0*this.m13+0*this.m14;this.m12=.033*a+.733*this.m12+.183*this.m13+0*this.m14;this.m13=0*a+.267*b+.817*this.m13+0*this.m14;this.m14=0*a+0*b+0*c+this.m14;this.m15=0*a+0*b+0*c+0*d;a=this.m21;b=this.m22;c=this.m23;d=this.m24;this.m21=.967*this.m21+0*this.m22+0*this.m23+0*this.m24;this.m22=.033*a+.733*this.m22+.183*this.m23+0*this.m24;this.m23=0*a+.267*b+.817*this.m23+0*this.m24;this.m24=0*a+0*b+0*c+this.m24;this.m25=0*a+0*b+0*c+0*d;a=this.m31;b=this.m32;c= +this.m33;d=this.m34;this.m31=.967*this.m31+0*this.m32+0*this.m33+0*this.m34;this.m32=.033*a+.733*this.m32+.183*this.m33+0*this.m34;this.m33=0*a+.267*b+.817*this.m33+0*this.m34;this.m34=0*a+0*b+0*c+this.m34;this.m35=0*a+0*b+0*c+0*d;a=this.m41;b=this.m42;c=this.m43;d=this.m44;this.m41=.967*this.m41+0*this.m42+0*this.m43+0*this.m44;this.m42=.033*a+.733*this.m42+.183*this.m43+0*this.m44;this.m43=0*a+.267*b+.817*this.m43+0*this.m44;this.m44=0*a+0*b+0*c+this.m44;this.m45=0*a+0*b+0*c+0*d;break;case 6:a= +this.m11;b=this.m12;c=this.m13;d=this.m14;this.m11=.299*this.m11+.299*this.m12+.299*this.m13+0*this.m14;this.m12=.587*a+.587*this.m12+.587*this.m13+0*this.m14;this.m13=.114*a+.114*b+.114*this.m13+0*this.m14;this.m14=0*a+0*b+0*c+this.m14;this.m15=0*a+0*b+0*c+0*d;a=this.m21;b=this.m22;c=this.m23;d=this.m24;this.m21=.299*this.m21+.299*this.m22+.299*this.m23+0*this.m24;this.m22=.587*a+.587*this.m22+.587*this.m23+0*this.m24;this.m23=.114*a+.114*b+.114*this.m23+0*this.m24;this.m24=0*a+0*b+0*c+this.m24; +this.m25=0*a+0*b+0*c+0*d;a=this.m31;b=this.m32;c=this.m33;d=this.m34;this.m31=.299*this.m31+.299*this.m32+.299*this.m33+0*this.m34;this.m32=.587*a+.587*this.m32+.587*this.m33+0*this.m34;this.m33=.114*a+.114*b+.114*this.m33+0*this.m34;this.m34=0*a+0*b+0*c+this.m34;this.m35=0*a+0*b+0*c+0*d;a=this.m41;b=this.m42;c=this.m43;d=this.m44;this.m41=.299*this.m41+.299*this.m42+.299*this.m43+0*this.m44;this.m42=.587*a+.587*this.m42+.587*this.m43+0*this.m44;this.m43=.114*a+.114*b+.114*this.m43+0*this.m44;this.m44= +0*a+0*b+0*c+this.m44;this.m45=0*a+0*b+0*c+0*d;break;case 7:a=this.m11,b=this.m12,c=this.m13,d=this.m14,this.m11=.618*this.m11+.163*this.m12+.163*this.m13+0*this.m14,this.m12=.32*a+.775*this.m12+.32*this.m13+0*this.m14,this.m13=.062*a+.062*b+.516*this.m13+0*this.m14,this.m14=0*a+0*b+0*c+this.m14,this.m15=0*a+0*b+0*c+0*d,a=this.m21,b=this.m22,c=this.m23,d=this.m24,this.m21=.618*this.m21+.163*this.m22+.163*this.m23+0*this.m24,this.m22=.32*a+.775*this.m22+.32*this.m23+0*this.m24,this.m23=.062*a+.062* +b+.516*this.m23+0*this.m24,this.m24=0*a+0*b+0*c+this.m24,this.m25=0*a+0*b+0*c+0*d,a=this.m31,b=this.m32,c=this.m33,d=this.m34,this.m31=.618*this.m31+.163*this.m32+.163*this.m33+0*this.m34,this.m32=.32*a+.775*this.m32+.32*this.m33+0*this.m34,this.m33=.062*a+.062*b+.516*this.m33+0*this.m34,this.m34=0*a+0*b+0*c+this.m34,this.m35=0*a+0*b+0*c+0*d,a=this.m41,b=this.m42,c=this.m43,d=this.m44,this.m41=.618*this.m41+.163*this.m42+.163*this.m43+0*this.m44,this.m42=.32*a+.775*this.m42+.32*this.m43+0*this.m44, +this.m43=.062*a+.062*b+.516*this.m43+0*this.m44,this.m44=0*a+0*b+0*c+this.m44,this.m45=0*a+0*b+0*c+0*d}return this},applyMatrix:function(a,b){var c=a.a,d=a.r,e=a.g,g=a.b;a=S.clamp(.5+d*this.m41+e*this.m42+g*this.m43+c*this.m44+this.m45|0,0,255);var f=S.clamp(.5+d*this.m11+e*this.m12+g*this.m13+c*this.m14+this.m15|0,0,255),l=S.clamp(.5+d*this.m21+e*this.m22+g*this.m23+c*this.m24+this.m25|0,0,255);c=S.clamp(.5+d*this.m31+e*this.m32+g*this.m33+c*this.m34+this.m35|0,0,255);b.a=a;b.r=f;b.g=l;b.b=c;return b}, +transformVector:function(a){var b=a[0],c=a[1],d=a[2],e=a[3],g=b*this.m21+c*this.m22+d*this.m23+e*this.m24+this.m25,f=b*this.m31+c*this.m32+d*this.m33+e*this.m34+this.m35,l=b*this.m41+c*this.m42+d*this.m43+e*this.m44+this.m45;a[0]=b*this.m11+c*this.m12+d*this.m13+e*this.m14+this.m15;a[1]=g;a[2]=f;a[3]=l;return a},initHue:function(){if(!this.hueInitialized){this.hueInitialized=!0;this.preHue=new Ta;this.preHue.rotateRed(45);this.preHue.rotateGreen(-39.182655);var a=[];a[0]=Ta.LUMA_R2;a[1]=Ta.LUMA_G2; +a[2]=Ta.LUMA_B2;a[3]=1;this.preHue.transformVector(a);var b=a[0]/a[2];a=a[1]/a[2];this.preHue.shearBlue(b,a);this.postHue=new Ta;this.postHue.shearBlue(-b,-a);this.postHue.rotateGreen(39.182655);this.postHue.rotateRed(-45)}},toArray:function(a){a[0]=this.m11;a[1]=this.m12;a[2]=this.m13;a[3]=this.m14;a[4]=this.m15;a[5]=this.m21;a[6]=this.m22;a[7]=this.m23;a[8]=this.m24;a[9]=this.m25;a[10]=this.m31;a[11]=this.m32;a[12]=this.m33;a[13]=this.m34;a[14]=this.m35;a[15]=this.m41;a[16]=this.m42;a[17]=this.m43; +a[18]=this.m44;a[19]=this.m45;return a},set:function(a,b,c,d,e,g,f,l,t,m,h,p,k,n,r,q,v,u,w,B){this.m11=a;this.m12=b;this.m13=c;this.m14=d;this.m15=e;this.m21=g;this.m22=f;this.m23=l;this.m24=t;this.m25=m;this.m31=h;this.m32=p;this.m33=k;this.m34=n;this.m35=r;this.m41=q;this.m42=v;this.m43=u;this.m44=w;this.m45=B},mul:function(a,b,c,d,e,g,f,l,t,m,h,p,k,n,r,q,v,u,w,B){var x=this.m11,Ce=this.m12,Kg=this.m13,Gh=this.m14;this.m11=this.m11*a+this.m12*g+this.m13*h+this.m14*q;this.m12=x*b+this.m12*f+this.m13* +p+this.m14*v;this.m13=x*c+Ce*l+this.m13*k+this.m14*u;this.m14=x*d+Ce*t+Kg*n+this.m14*w;this.m15=x*e+Ce*m+Kg*r+Gh*B;x=this.m21;Ce=this.m22;Kg=this.m23;Gh=this.m24;this.m21=this.m21*a+this.m22*g+this.m23*h+this.m24*q;this.m22=x*b+this.m22*f+this.m23*p+this.m24*v;this.m23=x*c+Ce*l+this.m23*k+this.m24*u;this.m24=x*d+Ce*t+Kg*n+this.m24*w;this.m25=x*e+Ce*m+Kg*r+Gh*B;x=this.m31;Ce=this.m32;Kg=this.m33;Gh=this.m34;this.m31=this.m31*a+this.m32*g+this.m33*h+this.m34*q;this.m32=x*b+this.m32*f+this.m33*p+this.m34* +v;this.m33=x*c+Ce*l+this.m33*k+this.m34*u;this.m34=x*d+Ce*t+Kg*n+this.m34*w;this.m35=x*e+Ce*m+Kg*r+Gh*B;x=this.m41;Ce=this.m42;Kg=this.m43;Gh=this.m44;this.m41=this.m41*a+this.m42*g+this.m43*h+this.m44*q;this.m42=x*b+this.m42*f+this.m43*p+this.m44*v;this.m43=x*c+Ce*l+this.m43*k+this.m44*u;this.m44=x*d+Ce*t+Kg*n+this.m44*w;this.m45=x*e+Ce*m+Kg*r+Gh*B},__class__:Ta};var vu=function(){};k["com.stencyl.utils.HaxeDefines"]=vu;vu.__name__="com.stencyl.utils.HaxeDefines";var Sk=function(a,b){this.map=a; +this.initializer=b};k["com.stencyl.utils.LazyIntMap"]=Sk;Sk.__name__="com.stencyl.utils.LazyIntMap";Sk.prototype={map:null,initializer:null,get:function(a){var b=this.map.h[a];null==b&&(b=this.initializer(a),this.map.h[a]=b);return b},set:function(a,b){this.map.h[a]=b},exists:function(a){return this.map.h.hasOwnProperty(a)},remove:function(a){return this.map.remove(a)},keys:function(){return this.map.keys()},iterator:function(){return this.map.iterator()},__class__:Sk};var On=function(a,b){this.map= +a;this.initializer=b};k["com.stencyl.utils.LazyStringMap"]=On;On.__name__="com.stencyl.utils.LazyStringMap";On.prototype={map:null,initializer:null,get:function(a){var b=this.map.h[a];null==b&&(b=this.initializer(a),this.map.h[a]=b);return b},set:function(a,b){this.map.h[a]=b},exists:function(a){return Object.prototype.hasOwnProperty.call(this.map.h,a)},remove:function(a){var b=this.map;return Object.prototype.hasOwnProperty.call(b.h,a)?(delete b.h[a],!0):!1},keys:function(){return new mj(this.map.h)}, +iterator:function(){return new Bi(this.map.h)},__class__:On};var po=function(){};k["com.stencyl.utils.Mathematics"]=po;po.__name__="com.stencyl.utils.Mathematics";po.round=function(a){return(0<a?a+.5:0>a?a-.5:0)|0};po.clamp=function(a,b,c){return a<b?b:a>c?c:a};po.fclamp=function(a,b,c){return a<b?b:a>c?c:a};var wc=function(a){this.points=a;this.combineClosePoints();this.combineColinearPoints();this.makeCCW()};k["com.stencyl.utils.PolyDecompBayazit"]=wc;wc.__name__="com.stencyl.utils.PolyDecompBayazit"; +wc.area=function(a,b,c){return(b.x-a.x)*(c.y-a.y)-(c.x-a.x)*(b.y-a.y)};wc.right=function(a,b,c){return 0>wc.area(a,b,c)};wc.rightOn=function(a,b,c){return 0>=wc.area(a,b,c)};wc.left=function(a,b,c){return 0<wc.area(a,b,c)};wc.leftOn=function(a,b,c){return 0<=wc.area(a,b,c)};wc.sqdist=function(a,b){var c=b.x-a.x;a=b.y-a.y;return c*c+a*a};wc.getIntersection=function(a,b,c,d){var e=b.y-a.y;b=a.x-b.x;a=e*a.x+b*a.y;var g=d.y-c.y;d=c.x-d.x;c=g*c.x+d*c.y;var f=e*d-g*b;return Math.abs(f)>Number.MIN_VALUE? +new oa((d*a-b*c)/f,(e*c-g*a)/f):null};wc.prototype={combineColinearPoints:function(){for(var a=[],b=0,c=this.points.length;b<c;){var d=b++,e=this.at(d-1),g=this.at(d);d=this.at(d+1);null!=wc.getIntersection(e,g,g,d)&&a.push(g)}this.points=a},points:null,combineClosePoints:function(){for(var a=[],b=0,c=this.points.length;b<c;){var d=b++,e=this.at(d);d=this.at(d+1);wc.sqdist(e,d)>Number.MIN_VALUE&&a.push(e)}this.points=a},at:function(a){var b=this.points.length;return this.points[(a+b)%b]},isReflex:function(a){return wc.right(this.at(a- +1),this.at(a),this.at(a+1))},polyFromRange:function(a,b){return a<b?new wc(this.points.slice(a,b+1)):new wc(this.points.slice(a).concat(this.points.slice(0,b+1)))},decompose:function(a){if(!(3>this.points.length)){for(var b=0,c=this.points.length;b<c;){var d=b++;if(this.isReflex(d)){var e=Number.MAX_VALUE,g=null;b=0;for(var f=Number.MAX_VALUE,l=null,t=c=0,m=this.points.length;t<m;){var h=t++;if(wc.left(this.at(d-1),this.at(d),this.at(h))&&wc.rightOn(this.at(d-1),this.at(d),this.at(h-1))){var p=wc.getIntersection(this.at(d- +1),this.at(d),this.at(h),this.at(h-1));if(wc.right(this.at(d+1),this.at(d),p)){var k=wc.sqdist(this.at(d),p);k<f&&(f=k,l=p,c=h)}}wc.left(this.at(d+1),this.at(d),this.at(h+1))&&wc.rightOn(this.at(d+1),this.at(d),this.at(h))&&(p=wc.getIntersection(this.at(d+1),this.at(d),this.at(h),this.at(h+1)),wc.left(this.at(d-1),this.at(d),p)&&(k=wc.sqdist(this.at(d),p),k<e&&(e=k,g=p,b=h)))}if(c==(b+1)%this.points.length)e=new oa(.5*(l.x+g.x),.5*(l.y+g.y)),g=this.polyFromRange(d,b),g.points.push(e),d=d<b?this.polyFromRange(c, +d):this.polyFromRange(0,d),d.points.push(e);else{c>b&&(b+=this.points.length);e=0;for(g=Number.MAX_VALUE;c<=b;)wc.leftOn(this.at(d-1),this.at(d),this.at(c))&&wc.rightOn(this.at(d+1),this.at(d),this.at(c))&&(f=wc.sqdist(this.at(d),this.at(c)),f<g&&(g=f,this.at(c),e=c%this.points.length)),++c;g=this.polyFromRange(d,e);d=this.polyFromRange(e,d)}g.points.length<d.points.length?(g.decompose(a),d.decompose(a)):(d.decompose(a),g.decompose(a));return}}3<=this.points.length&&a(this)}},makeCCW:function(){for(var a= +0,b=1,c=this.points.length;b<c;){var d=b++;if(this.at(d).y<this.at(a).y||this.at(d).y==this.at(a).y&&this.at(d).x>this.at(a).x)a=d}wc.left(this.at(a-1),this.at(a),this.at(a+1))||this.points.reverse()},__class__:wc};var Cd=function(a,b,c){null==c&&(c=0);null==b&&(b=0);null==a&&(a=0);this.r=a;this.g=b;this.b=c};k["com.stencyl.utils.RGB"]=Cd;Cd.__name__="com.stencyl.utils.RGB";Cd.setRGBi=function(a,b,c){return(a&255)<<16|(b&255)<<8|c&255};Cd.setRGBf=function(a,b,c){a=255*(0>a?0:1<a?1:a);b=255*(0>b?0: +1<b?1:b);c=255*(0>c?0:1<c?1:c);return(((0<a?a+.5:0>a?a-.5:0)|0)&255)<<16|(((0<b?b+.5:0>b?b-.5:0)|0)&255)<<8|((0<c?c+.5:0>c?c-.5:0)|0)&255};Cd.getR=function(a){return a>>>16&255};Cd.getRf=function(a){return.00392156862745098*(a>>>16&255)};Cd.getG=function(a){return a>>>8&255};Cd.getGf=function(a){return.00392156862745098*(a>>>8&255)};Cd.getB=function(a){return a&255};Cd.getBf=function(a){return.00392156862745098*(a&255)};Cd.setR=function(a,b){return(b&255)<<16|a&-16711681};Cd.setRf=function(a,b){b= +255*(0>b?0:1<b?1:b);return(((0<b?b+.5:0>b?b-.5:0)|0)&255)<<16|a&-16711681};Cd.setG=function(a,b){return(b&255)<<8|a&-65281};Cd.setGf=function(a,b){b=255*(0>b?0:1<b?1:b);return(((0<b?b+.5:0>b?b-.5:0)|0)&255)<<8|a&-65281};Cd.setB=function(a,b){return b&255|a&-256};Cd.setBf=function(a,b){b=255*(0>b?0:1<b?1:b);return((0<b?b+.5:0>b?b-.5:0)|0)&255|a&-256};Cd.prototype={r:null,g:null,b:null,set:function(a,b,c){this.r=a;this.g=b;this.b=c},lerp:function(a,b,c){b.r=this.r+(a.r-this.r)*c;b.g=this.g+(a.g-this.g)* +c;b.b=this.b+(a.b-this.b)*c},getR8:function(){var a=255*this.r;return(0<a?a+.5:0>a?a-.5:0)|0},getG8:function(){var a=255*this.g;return(0<a?a+.5:0>a?a-.5:0)|0},getB8:function(){var a=255*this.b;return(0<a?a+.5:0>a?a-.5:0)|0},get24:function(){var a=255*this.r,b=255*this.g,c=255*this.b;return((0<a?a+.5:0>a?a-.5:0)|0)<<16|((0<b?b+.5:0>b?b-.5:0)|0)<<8|(0<c?c+.5:0>c?c-.5:0)|0},set24:function(a,b,c){this.r=.00392156862745098*(a&255);this.g=.00392156862745098*(b&255);this.b=.00392156862745098*(c&255)},copy:function(a){a.r= +this.r;a.g=this.g;a.b=this.b;return a},__class__:Cd};var hf=function(a,b){null==b&&(b=0);null==a&&(a=1);this.volume=a;this.pan=b;this.rightToRight=this.rightToLeft=this.leftToRight=this.leftToLeft=0};k["openfl.media.SoundTransform"]=hf;hf.__name__="openfl.media.SoundTransform";hf.prototype={leftToLeft:null,leftToRight:null,pan:null,rightToLeft:null,rightToRight:null,volume:null,clone:function(){return new hf(this.volume,this.pan)},__class__:hf};var V=function(){this.h=Object.create(null)};k["haxe.ds.StringMap"]= +V;V.__name__="haxe.ds.StringMap";V.__interfaces__=[jd];V.stringify=function(a){var b="{",c=!0,d;for(d in a)c?c=!1:b+=",",b+=d+" => "+n.string(a[d]);return b+"}"};V.prototype={h:null,exists:function(a){return Object.prototype.hasOwnProperty.call(this.h,a)},get:function(a){return this.h[a]},set:function(a,b){this.h[a]=b},remove:function(a){return Object.prototype.hasOwnProperty.call(this.h,a)?(delete this.h[a],!0):!1},keys:function(){return new mj(this.h)},iterator:function(){return new Bi(this.h)}, +keyValueIterator:function(){return new qo(this.h)},__class__:V};var Sa=function(){this.h={}};k["haxe.ds.IntMap"]=Sa;Sa.__name__="haxe.ds.IntMap";Sa.__interfaces__=[jd];Sa.prototype={h:null,set:function(a,b){this.h[a]=b},get:function(a){return this.h[a]},exists:function(a){return this.h.hasOwnProperty(a)},remove:function(a){if(!this.h.hasOwnProperty(a))return!1;delete this.h[a];return!0},keys:function(){var a=[],b;for(b in this.h)this.h.hasOwnProperty(b)&&a.push(b|0);return new ue(a)},iterator:function(){return{ref:this.h, +it:this.keys(),hasNext:function(){return this.it.hasNext()},next:function(){var a=this.it.next();return this.ref[a]}}},keyValueIterator:function(){return new fh(this)},__class__:Sa};var Th=function(a,b,c,d,e,g){null==g&&(g=0);null==e&&(e=0);null==d&&(d=1);null==c&&(c=0);null==b&&(b=0);null==a&&(a=1);this.a=a;this.b=b;this.c=c;this.d=d;this.tx=e;this.ty=g};k["lime.math.Matrix3"]=Th;Th.__name__="lime.math.Matrix3";Th.prototype={a:null,b:null,c:null,d:null,tx:null,ty:null,clone:function(){return new Th(this.a, +this.b,this.c,this.d,this.tx,this.ty)},concat:function(a){var b=this.a*a.a+this.b*a.c;this.b=this.a*a.b+this.b*a.d;this.a=b;b=this.c*a.a+this.d*a.c;this.d=this.c*a.b+this.d*a.d;this.c=b;b=this.tx*a.a+this.ty*a.c+a.tx;this.ty=this.tx*a.b+this.ty*a.d+a.ty;this.tx=b},copyColumnFrom:function(a,b){if(2<a)throw R.thrown("Column "+a+" out of bounds (2)");0==a?(this.a=b.x,this.b=b.y):1==a?(this.c=b.x,this.d=b.y):(this.tx=b.x,this.ty=b.y)},copyColumnTo:function(a,b){if(2<a)throw R.thrown("Column "+a+" out of bounds (2)"); +0==a?(b.x=this.a,b.y=this.b,b.z=0):1==a?(b.x=this.c,b.y=this.d,b.z=0):(b.x=this.tx,b.y=this.ty,b.z=1)},copyFrom:function(a){this.a=a.a;this.b=a.b;this.c=a.c;this.d=a.d;this.tx=a.tx;this.ty=a.ty},copyRowFrom:function(a,b){if(2<a)throw R.thrown("Row "+a+" out of bounds (2)");0==a?(this.a=b.x,this.c=b.y,this.tx=b.z):1==a&&(this.b=b.x,this.d=b.y,this.ty=b.z)},copyRowTo:function(a,b){if(2<a)throw R.thrown("Row "+a+" out of bounds (2)");0==a?(b.x=this.a,b.y=this.c,b.z=this.tx):1==a?(b.x=this.b,b.y=this.d, +b.z=this.ty):(b.x=0,b.y=0,b.z=1)},createBox:function(a,b,c,d,e){null==e&&(e=0);null==d&&(d=0);null==c&&(c=0);if(0!=c){var g=Math.cos(c);c=Math.sin(c);this.a=g*a;this.b=c*b;this.c=-c*a;this.d=g*b}else this.a=a,this.c=this.b=0,this.d=b;this.tx=d;this.ty=e},createGradientBox:function(a,b,c,d,e){null==e&&(e=0);null==d&&(d=0);null==c&&(c=0);this.a=a/1638.4;this.d=b/1638.4;if(0!=c){var g=Math.cos(c);c=Math.sin(c);this.b=c*this.d;this.c=-c*this.a;this.a*=g;this.d*=g}else this.c=this.b=0;this.tx=d+a/2;this.ty= +e+b/2},equals:function(a){return null!=a&&this.tx==a.tx&&this.ty==a.ty&&this.a==a.a&&this.b==a.b&&this.c==a.c?this.d==a.d:!1},deltaTransformVector:function(a,b){null==b&&(b=new Td);b.x=a.x*this.a+a.y*this.c;b.y=a.x*this.b+a.y*this.d;return b},identity:function(){this.a=1;this.c=this.b=0;this.d=1;this.ty=this.tx=0},invert:function(){var a=this.a*this.d-this.b*this.c;if(0==a)this.a=this.b=this.c=this.d=0,this.tx=-this.tx,this.ty=-this.ty;else{a=1/a;var b=this.d*a;this.d=this.a*a;this.a=b;this.b*=-a; +this.c*=-a;a=-this.a*this.tx-this.c*this.ty;this.ty=-this.b*this.tx-this.d*this.ty;this.tx=a}return this},rotate:function(a){var b=Math.cos(a);a=Math.sin(a);var c=this.a*b-this.b*a;this.b=this.a*a+this.b*b;this.a=c;c=this.c*b-this.d*a;this.d=this.c*a+this.d*b;this.c=c;c=this.tx*b-this.ty*a;this.ty=this.tx*a+this.ty*b;this.tx=c},scale:function(a,b){this.a*=a;this.b*=b;this.c*=a;this.d*=b;this.tx*=a;this.ty*=b},setRotation:function(a,b){null==b&&(b=1);this.a=Math.cos(a)*b;this.c=Math.sin(a)*b;this.b= +-this.c;this.d=this.a},setTo:function(a,b,c,d,e,g){this.a=a;this.b=b;this.c=c;this.d=d;this.tx=e;this.ty=g},to3DString:function(a){null==a&&(a=!1);return a?"matrix3d("+this.a+", "+this.b+", 0, 0, "+this.c+", "+this.d+", 0, 0, 0, 0, 1, 0, "+(this.tx|0)+", "+(this.ty|0)+", 0, 1)":"matrix3d("+this.a+", "+this.b+", 0, 0, "+this.c+", "+this.d+", 0, 0, 0, 0, 1, 0, "+this.tx+", "+this.ty+", 0, 1)"},toString:function(){return"matrix("+this.a+", "+this.b+", "+this.c+", "+this.d+", "+this.tx+", "+this.ty+")"}, +transformRect:function(a,b){null==b&&(b=new Ad);var c=this.a*a.x+this.c*a.y,d=c,e=this.b*a.x+this.d*a.y,g=e,f=this.a*(a.x+a.width)+this.c*a.y,l=this.b*(a.x+a.width)+this.d*a.y;f<c&&(c=f);l<e&&(e=l);f>d&&(d=f);l>g&&(g=l);f=this.a*(a.x+a.width)+this.c*(a.y+a.height);l=this.b*(a.x+a.width)+this.d*(a.y+a.height);f<c&&(c=f);l<e&&(e=l);f>d&&(d=f);l>g&&(g=l);f=this.a*a.x+this.c*(a.y+a.height);l=this.b*a.x+this.d*(a.y+a.height);f<c&&(c=f);l<e&&(e=l);f>d&&(d=f);l>g&&(g=l);b.setTo(c+f,e+l,d-c,g-e);return b}, +transformVector:function(a,b){null==b&&(b=new Td);b.x=a.x*this.a+a.y*this.c+this.tx;b.y=a.x*this.b+a.y*this.d+this.ty;return b},translate:function(a,b){this.tx+=a;this.ty+=b},__class__:Th};var Aa=function(a,b,c,d,e,g){null==g&&(g=0);null==e&&(e=0);null==d&&(d=1);null==c&&(c=0);null==b&&(b=0);null==a&&(a=1);this.a=a;this.b=b;this.c=c;this.d=d;this.tx=e;this.ty=g};k["openfl.geom.Matrix"]=Aa;Aa.__name__="openfl.geom.Matrix";Aa.prototype={a:null,b:null,c:null,d:null,tx:null,ty:null,__array:null,clone:function(){return new Aa(this.a, +this.b,this.c,this.d,this.tx,this.ty)},concat:function(a){var b=this.a*a.a+this.b*a.c;this.b=this.a*a.b+this.b*a.d;this.a=b;b=this.c*a.a+this.d*a.c;this.d=this.c*a.b+this.d*a.d;this.c=b;b=this.tx*a.a+this.ty*a.c+a.tx;this.ty=this.tx*a.b+this.ty*a.d+a.ty;this.tx=b},copyColumnFrom:function(a,b){if(2<a)throw R.thrown("Column "+a+" out of bounds (2)");0==a?(this.a=b.x,this.b=b.y):1==a?(this.c=b.x,this.d=b.y):(this.tx=b.x,this.ty=b.y)},copyColumnTo:function(a,b){if(2<a)throw R.thrown("Column "+a+" out of bounds (2)"); +0==a?(b.x=this.a,b.y=this.b,b.z=0):1==a?(b.x=this.c,b.y=this.d,b.z=0):(b.x=this.tx,b.y=this.ty,b.z=1)},copyFrom:function(a){this.a=a.a;this.b=a.b;this.c=a.c;this.d=a.d;this.tx=a.tx;this.ty=a.ty},copyRowFrom:function(a,b){if(2<a)throw R.thrown("Row "+a+" out of bounds (2)");0==a?(this.a=b.x,this.c=b.y,this.tx=b.z):1==a&&(this.b=b.x,this.d=b.y,this.ty=b.z)},copyRowTo:function(a,b){if(2<a)throw R.thrown("Row "+a+" out of bounds (2)");0==a?(b.x=this.a,b.y=this.c,b.z=this.tx):1==a?(b.x=this.b,b.y=this.d, +b.z=this.ty):b.setTo(0,0,1)},createBox:function(a,b,c,d,e){null==e&&(e=0);null==d&&(d=0);null==c&&(c=0);if(0!=c){var g=Math.cos(c);c=Math.sin(c);this.a=g*a;this.b=c*b;this.c=-c*a;this.d=g*b}else this.a=a,this.c=this.b=0,this.d=b;this.tx=d;this.ty=e},createGradientBox:function(a,b,c,d,e){null==e&&(e=0);null==d&&(d=0);null==c&&(c=0);this.a=a/1638.4;this.d=b/1638.4;if(0!=c){var g=Math.cos(c);c=Math.sin(c);this.b=c*this.d;this.c=-c*this.a;this.a*=g;this.d*=g}else this.c=this.b=0;this.tx=d+a/2;this.ty= +e+b/2},deltaTransformPoint:function(a){return new oa(a.x*this.a+a.y*this.c,a.x*this.b+a.y*this.d)},equals:function(a){return null!=a&&this.tx==a.tx&&this.ty==a.ty&&this.a==a.a&&this.b==a.b&&this.c==a.c?this.d==a.d:!1},identity:function(){this.a=1;this.c=this.b=0;this.d=1;this.ty=this.tx=0},invert:function(){var a=this.a*this.d-this.b*this.c;if(0==a)this.a=this.b=this.c=this.d=0,this.tx=-this.tx,this.ty=-this.ty;else{a=1/a;var b=this.d*a;this.d=this.a*a;this.a=b;this.b*=-a;this.c*=-a;a=-this.a*this.tx- +this.c*this.ty;this.ty=-this.b*this.tx-this.d*this.ty;this.tx=a}return this},rotate:function(a){var b=Math.cos(a);a=Math.sin(a);var c=this.a*b-this.b*a;this.b=this.a*a+this.b*b;this.a=c;c=this.c*b-this.d*a;this.d=this.c*a+this.d*b;this.c=c;c=this.tx*b-this.ty*a;this.ty=this.tx*a+this.ty*b;this.tx=c},scale:function(a,b){this.a*=a;this.b*=b;this.c*=a;this.d*=b;this.tx*=a;this.ty*=b},setRotation:function(a,b){null==b&&(b=1);this.a=Math.cos(a)*b;this.c=Math.sin(a)*b;this.b=-this.c;this.d=this.a},setTo:function(a, +b,c,d,e,g){this.a=a;this.b=b;this.c=c;this.d=d;this.tx=e;this.ty=g},to3DString:function(a){null==a&&(a=!1);return a?"matrix3d("+this.a+", "+this.b+", 0, 0, "+this.c+", "+this.d+", 0, 0, 0, 0, 1, 0, "+(this.tx|0)+", "+(this.ty|0)+", 0, 1)":"matrix3d("+this.a+", "+this.b+", 0, 0, "+this.c+", "+this.d+", 0, 0, 0, 0, 1, 0, "+this.tx+", "+this.ty+", 0, 1)"},toMozString:function(){return"matrix("+this.a+", "+this.b+", "+this.c+", "+this.d+", "+this.tx+"px, "+this.ty+"px)"},toString:function(){return"matrix("+ +this.a+", "+this.b+", "+this.c+", "+this.d+", "+this.tx+", "+this.ty+")"},transformPoint:function(a){return new oa(a.x*this.a+a.y*this.c+this.tx,a.x*this.b+a.y*this.d+this.ty)},translate:function(a,b){this.tx+=a;this.ty+=b},toArray:function(a){null==a&&(a=!1);null==this.__array&&(this.__array=new Float32Array(9));a?(this.__array[0]=this.a,this.__array[1]=this.b,this.__array[2]=0,this.__array[3]=this.c,this.__array[4]=this.d,this.__array[5]=0,this.__array[6]=this.tx,this.__array[7]=this.ty):(this.__array[0]= +this.a,this.__array[1]=this.c,this.__array[2]=this.tx,this.__array[3]=this.b,this.__array[4]=this.d,this.__array[5]=this.ty,this.__array[6]=0,this.__array[7]=0);this.__array[8]=1;return this.__array},__cleanValues:function(){this.a=Math.round(1E3*this.a)/1E3;this.b=Math.round(1E3*this.b)/1E3;this.c=Math.round(1E3*this.c)/1E3;this.d=Math.round(1E3*this.d)/1E3;this.tx=Math.round(10*this.tx)/10;this.ty=Math.round(10*this.ty)/10},__toMatrix3:function(){Aa.__matrix3.setTo(this.a,this.b,this.c,this.d,this.tx, +this.ty);return Aa.__matrix3},__transformInversePoint:function(a){var b=this.a*this.d-this.b*this.c;if(0==b)a.x=-this.tx,a.y=-this.ty;else{var c=1/b*(this.c*(this.ty-a.y)+this.d*(a.x-this.tx));a.y=1/b*(this.a*(a.y-this.ty)+this.b*(this.tx-a.x));a.x=c}},__transformInverseX:function(a,b){var c=this.a*this.d-this.b*this.c;return 0==c?-this.tx:1/c*(this.c*(this.ty-b)+this.d*(a-this.tx))},__transformInverseY:function(a,b){var c=this.a*this.d-this.b*this.c;return 0==c?-this.ty:1/c*(this.a*(b-this.ty)+this.b* +(this.tx-a))},__transformPoint:function(a){var b=a.x,c=a.y;a.x=b*this.a+c*this.c+this.tx;a.y=b*this.b+c*this.d+this.ty},__transformX:function(a,b){return a*this.a+b*this.c+this.tx},__transformY:function(a,b){return a*this.b+b*this.d+this.ty},__translateTransformed:function(a,b){this.tx=a*this.a+b*this.c+this.tx;this.ty=a*this.b+b*this.d+this.ty},__class__:Aa};var Gc=function(a,b,c,d,e,g,f,l){null==l&&(l=0);null==f&&(f=0);null==g&&(g=0);null==e&&(e=0);null==d&&(d=1);null==c&&(c=1);null==b&&(b=1);null== +a&&(a=1);this.redMultiplier=a;this.greenMultiplier=b;this.blueMultiplier=c;this.alphaMultiplier=d;this.redOffset=e;this.greenOffset=g;this.blueOffset=f;this.alphaOffset=l};k["openfl.geom.ColorTransform"]=Gc;Gc.__name__="openfl.geom.ColorTransform";Gc.prototype={alphaMultiplier:null,alphaOffset:null,blueMultiplier:null,blueOffset:null,greenMultiplier:null,greenOffset:null,redMultiplier:null,redOffset:null,concat:function(a){this.redOffset=a.redOffset*this.redMultiplier+this.redOffset;this.greenOffset= +a.greenOffset*this.greenMultiplier+this.greenOffset;this.blueOffset=a.blueOffset*this.blueMultiplier+this.blueOffset;this.alphaOffset=a.alphaOffset*this.alphaMultiplier+this.alphaOffset;this.redMultiplier*=a.redMultiplier;this.greenMultiplier*=a.greenMultiplier;this.blueMultiplier*=a.blueMultiplier;this.alphaMultiplier*=a.alphaMultiplier},toString:function(){return"(redMultiplier="+this.redMultiplier+", greenMultiplier="+this.greenMultiplier+", blueMultiplier="+this.blueMultiplier+", alphaMultiplier="+ +this.alphaMultiplier+", redOffset="+this.redOffset+", greenOffset="+this.greenOffset+", blueOffset="+this.blueOffset+", alphaOffset="+this.alphaOffset+")"},__clone:function(){return new Gc(this.redMultiplier,this.greenMultiplier,this.blueMultiplier,this.alphaMultiplier,this.redOffset,this.greenOffset,this.blueOffset,this.alphaOffset)},__copyFrom:function(a){this.redMultiplier=a.redMultiplier;this.greenMultiplier=a.greenMultiplier;this.blueMultiplier=a.blueMultiplier;this.alphaMultiplier=a.alphaMultiplier; +this.redOffset=a.redOffset;this.greenOffset=a.greenOffset;this.blueOffset=a.blueOffset;this.alphaOffset=a.alphaOffset},__combine:function(a){this.redMultiplier*=a.redMultiplier;this.greenMultiplier*=a.greenMultiplier;this.blueMultiplier*=a.blueMultiplier;this.alphaMultiplier*=a.alphaMultiplier;this.redOffset+=a.redOffset;this.greenOffset+=a.greenOffset;this.blueOffset+=a.blueOffset;this.alphaOffset+=a.alphaOffset},__identity:function(){this.alphaMultiplier=this.blueMultiplier=this.greenMultiplier= +this.redMultiplier=1;this.alphaOffset=this.blueOffset=this.greenOffset=this.redOffset=0},__invert:function(){this.redMultiplier=0!=this.redMultiplier?1/this.redMultiplier:1;this.greenMultiplier=0!=this.greenMultiplier?1/this.greenMultiplier:1;this.blueMultiplier=0!=this.blueMultiplier?1/this.blueMultiplier:1;this.alphaMultiplier=0!=this.alphaMultiplier?1/this.alphaMultiplier:1;this.redOffset=-this.redOffset;this.greenOffset=-this.greenOffset;this.blueOffset=-this.blueOffset;this.alphaOffset=-this.alphaOffset}, +__equals:function(a,b){return null==a||this.redMultiplier!=a.redMultiplier||this.greenMultiplier!=a.greenMultiplier||this.blueMultiplier!=a.blueMultiplier||!b&&this.alphaMultiplier!=a.alphaMultiplier||this.redOffset!=a.redOffset||this.greenOffset!=a.greenOffset||this.blueOffset!=a.blueOffset?!1:this.alphaOffset==a.alphaOffset},__isDefault:function(a){return a?1==this.redMultiplier&&1==this.greenMultiplier&&1==this.blueMultiplier&&0==this.redOffset&&0==this.greenOffset&&0==this.blueOffset?0==this.alphaOffset: +!1:1==this.redMultiplier&&1==this.greenMultiplier&&1==this.blueMultiplier&&1==this.alphaMultiplier&&0==this.redOffset&&0==this.greenOffset&&0==this.blueOffset?0==this.alphaOffset:!1},__setArrays:function(a,b){a[0]=this.redMultiplier;a[1]=this.greenMultiplier;a[2]=this.blueMultiplier;a[3]=this.alphaMultiplier;b[0]=this.redOffset;b[1]=this.greenOffset;b[2]=this.blueOffset;b[3]=this.alphaOffset},get_color:function(){return(this.redOffset|0)<<16|(this.greenOffset|0)<<8|this.blueOffset|0},set_color:function(a){this.redOffset= +a>>16&255;this.greenOffset=a>>8&255;this.blueOffset=a&255;this.blueMultiplier=this.greenMultiplier=this.redMultiplier=0;return this.get_color()},__toLimeColorMatrix:function(){if(null==Gc.__limeColorMatrix){var a=new Float32Array(20);Gc.__limeColorMatrix=a}Gc.__limeColorMatrix[0]=this.redMultiplier;Gc.__limeColorMatrix[4]=this.redOffset/255;Gc.__limeColorMatrix[6]=this.greenMultiplier;Gc.__limeColorMatrix[9]=this.greenOffset/255;Gc.__limeColorMatrix[12]=this.blueMultiplier;Gc.__limeColorMatrix[14]= +this.blueOffset/255;Gc.__limeColorMatrix[18]=this.alphaMultiplier;Gc.__limeColorMatrix[19]=this.alphaOffset/255;return Gc.__limeColorMatrix},__class__:Gc,__properties__:{set_color:"set_color",get_color:"get_color"}};var S=function(){};k["com.stencyl.utils.Utils"]=S;S.__name__="com.stencyl.utils.Utils";S.__properties__={set_time:"set_time",set_pan:"set_pan",get_pan:"get_pan",set_volume:"set_volume",get_volume:"get_volume"};S.toBoolean=function(a){return"true"==a?!0:!1};S.clear=function(a){a.length= +0};S.removeValueFromArray=function(a,b){for(var c=a.length-1;-1<c;)a[c]==b&&a.splice(c,1),--c};S.contains=function(a,b){if(null==a)return!1;for(var c=a.length-1;-1<c;){if(a[c]==b)return!0;--c}return!1};S.mapContainsValue=function(a,b){a=a.h;for(var c=Object.keys(a),d=c.length,e=0;e<d;)if(a[c[e++]]==b)return!0;return!1};S.mapCount=function(a){var b=0;a=Object.keys(a.h).length;for(var c=0;c<a;)c++,++b;return b};S.mapToList=function(a,b){var c=[];if("keys"==b){b=a.h;b=Object.keys(b);for(var d=b.length, +e=0;e<d;){var g=b[e++];c.push(g)}}else for(a=b=a.h,b=Object.keys(b),d=b.length,e=0;e<d;)g=a[b[e++]],c.push(g);return c};S.clone=function(a){return S.cloner.clone(a)};S.copyMap=function(a){for(var b=new V,c=Object.keys(a.h),d=c.length,e=0;e<d;){var g=c[e++];b.h[g]=a.h[g]}return b};S.applyToAllChildren=function(a,b){for(var c=0,d=a.get_numChildren();c<d;){var e=c++;e=a.getChildAt(e);e instanceof Jb&&S.applyToAllChildren(e,b);b(e)}};S.removeAllChildren=function(a){for(;0<a.get_numChildren();){var b= +a.getChildAt(0);b instanceof Jb&&S.removeAllChildren(O.__cast(b,Jb));b instanceof fg&&S.removeAllTiles(b);a.removeChild(b)}};S.removeAllTiles=function(a){for(;0<a.get_numTiles();){var b=a.getTileAt(0);O.__implements(b,Ci)&&S.removeAllTiles(b);a.removeTile(b)}};S.demouse=function(a){for(var b=0,c=a.get_numChildren();b<c;){var d=b++;d=a.getChildAt(d);d instanceof Jb&&S.demouse(O.__cast(d,Jb));a.mouseChildren=!1;a.mouseEnabled=!1}};S.getAnchorPoint=function(a){a=a.getRect(a);return new oa(-1*a.x,-1* +a.y)};S.setCamera=function(a,b){null==b&&(b=0);null==a&&(a=0);S.camera.x=a;S.camera.y=b};S.resetCamera=function(){S.camera.x=S.camera.y=0};S.get_volume=function(){return S._volume};S.set_volume=function(a){0>a&&(a=0);if(S._volume==a)return a;S._soundTransform.volume=S._volume=a;return S._volume};S.get_pan=function(){return S._pan};S.set_pan=function(a){-1>a&&(a=-1);1<a&&(a=1);if(S._pan==a)return a;S._soundTransform.pan=S._pan=a;return S._pan};S.sign=function(a){return 0>a?-1:0<a?1:0};S.approach=function(a, +b,c){return a<b?b<a+c?b:a+c:b>a-c?b:a-c};S.lerp=function(a,b,c){null==c&&(c=1);return a+(b-a)*c};S.colorLerp=function(a,b,c){null==c&&(c=1);if(0>=c)return a;if(1<=c)return b;var d=a>>24&255,e=a>>16&255,g=a>>8&255;a&=255;return d+(((b>>24&255)-d)*c|0)<<24|e+(((b>>16&255)-e)*c|0)<<16|g+(((b>>8&255)-g)*c|0)<<8|a+(((b&255)-a)*c|0)};S.stepTowards=function(a,b,c,d){null==d&&(d=1);S.point.x=b-a.x;S.point.y=c-a.y;S.point.get_length()<=d?(a.x=b,a.y=c):(S.point.normalize(d),a.x+=S.point.x,a.y+=S.point.y)}; +S.anchorTo=function(a,b,c){null==c&&(c=0);S.point.x=a.x-b.x;S.point.y=a.y-b.y;S.point.get_length()>c&&S.point.normalize(c);a.x=b.x+S.point.x;a.y=b.y+S.point.y};S.angle=function(a,b,c,d){a=57.29577951308402*Math.atan2(d-b,c-a);return 0>a?a+360:a};S.angleXY=function(a,b,c,d,e){null==e&&(e=0);null==d&&(d=0);null==c&&(c=1);b*=.01745329251994278;a.x=Math.cos(b)*c+d;a.y=Math.sin(b)*c+e};S.rotateAround=function(a,b,c,d){null==d&&(d=!0);null==c&&(c=0);d&&(d=57.29577951308402*Math.atan2(a.y-b.y,a.x-b.x),c+= +0>d?d+360:d);d=b.x;var e=b.y,g=a.x,f=a.y;null==f&&(f=0);null==g&&(g=0);d=Math.sqrt((g-d)*(g-d)+(f-e)*(f-e));e=b.x;b=b.y;null==b&&(b=0);null==e&&(e=0);null==d&&(d=1);c*=.01745329251994278;a.x=Math.cos(c)*d+e;a.y=Math.sin(c)*d+b};S.distance=function(a,b,c,d){null==d&&(d=0);null==c&&(c=0);return Math.sqrt((c-a)*(c-a)+(d-b)*(d-b))};S.distanceSquared=function(a,b,c,d){null==d&&(d=0);null==c&&(c=0);return(c-a)*(c-a)+(d-b)*(d-b)};S.distanceRects=function(a,b,c,d,e,g,f,l){if(a<e+f&&e<a+c)return b<g+l&&g< +b+d?0:b>g?b-(g+l):g-(b+d);if(b<g+l&&g<b+d)return a>e?a-(e+f):e-(a+c);if(a>e){if(b>g)return e+=f,g+=l,null==g&&(g=0),null==e&&(e=0),Math.sqrt((e-a)*(e-a)+(g-b)*(g-b));b+=d;e+=f;null==g&&(g=0);null==e&&(e=0);return Math.sqrt((e-a)*(e-a)+(g-b)*(g-b))}if(b>g)return a+=c,g+=l,null==g&&(g=0),null==e&&(e=0),Math.sqrt((e-a)*(e-a)+(g-b)*(g-b));a+=c;b+=d;null==g&&(g=0);null==e&&(e=0);return Math.sqrt((e-a)*(e-a)+(g-b)*(g-b))};S.distanceRectPoint=function(a,b,c,d,e,g){if(a>=c&&a<=c+e)return b>=d&&b<=d+g?0:b> +d?b-(d+g):d-b;if(b>=d&&b<=d+g)return a>c?a-(c+e):c-a;if(a>c){if(b>d)return c+=e,d+=g,null==d&&(d=0),null==c&&(c=0),Math.sqrt((c-a)*(c-a)+(d-b)*(d-b));c+=e;null==d&&(d=0);null==c&&(c=0);return Math.sqrt((c-a)*(c-a)+(d-b)*(d-b))}if(b>d)return d+=g,null==d&&(d=0),null==c&&(c=0),Math.sqrt((c-a)*(c-a)+(d-b)*(d-b));null==d&&(d=0);null==c&&(c=0);return Math.sqrt((c-a)*(c-a)+(d-b)*(d-b))};S.clamp=function(a,b,c){if(c>b)return a<c||(a=c),a>b?a:b;a<b||(a=b);return a>c?a:c};S.clampInRect=function(a,b,c,d,e, +g){null==g&&(g=0);a.x=S.clamp(a.x,b+g,b+d-g);a.y=S.clamp(a.y,c+g,c+e-g)};S.scale=function(a,b,c,d,e){return d+(a-b)/(c-b)*(e-d)};S.scaleClamp=function(a,b,c,d,e){a=d+(a-b)/(c-b)*(e-d);if(e>d)return a<e||(a=e),a>d?a:d;a<d||(a=d);return a>e?a:e};S.indexOf=function(a,b){for(var c=0,d=0;d<a.length;){var e=a[d];++d;if(b==e)return c;++c}return-1};S.next=function(a,b,c){null==c&&(c=!0);return c?b[(S.indexOf(b,a)+1)%b.length]:b[Math.max(S.indexOf(b,a)+1,b.length-1)|0]};S.prev=function(a,b,c){null==c&&(c= +!0);return c?b[(S.indexOf(b,a)-1+b.length)%b.length]:b[Math.max(S.indexOf(b,a)-1,0)|0]};S.swap=function(a,b,c){return a==b?c:b};S.getColorRGB=function(a,b,c){null==c&&(c=0);null==b&&(b=0);null==a&&(a=0);return a<<16|b<<8|c};S.getRed=function(a){return a>>16&255};S.getGreen=function(a){return a>>8&255};S.getBlue=function(a){return a&255};S.convertColor=function(a){return 0>a?a+16777216:a};S.timeFlag=function(){var a=(new Date).getTime()/1E3,b=a-S._time;S._time=a;return b};S.frames=function(a,b,c){null== +c&&(c=0);var d=[];++c;if(a<b)for(;a<=b;)d.push(a),a+=c;else for(;a>=b;)d.push(a),a-=c;return d};S.set_time=function(a){S._time=a;return S._time};S.printCallstackIfAvailable=function(){return"\n"+jf.toString(jf.callStack())};S.printExceptionstackIfAvailable=function(){return"\n"+jf.toString(jf.exceptionStack())};S.saveToSharedObject=function(a,b,c){try{a.data[b]=S.clone(c)}catch(d){if(sa.lastError=d,a=R.caught(d).unwrap(),"string"==typeof a){if("deep clone"!=a)throw R.thrown(a);}else throw d;}};S.loadFromSharedObject= +function(a,b){return S.cloner.clone(W.field(a.data,b))};S.flushSharedObject=function(a,b){var c=null;try{c=a.flush()}catch(d){sa.lastError=d;null!=b&&b(!1);return}0==c&&null!=b&&b(!0)};S.saveMap=function(a,b,c){b=ed.getLocal(b,md.current.meta.h.localSavePath);for(var d=Object.keys(a.h),e=d.length,g=0;g<e;){var f=d[g++];b.data[f]=a.h[f]}S.flushSharedObject(b,c)};S.loadMap=function(a,b,c){b=ed.getLocal(b,md.current.meta.h.localSavePath);for(var d=0,e=W.fields(b.data);d<e.length;){var g=e[d];++d;a.h[g]= +W.field(b.data,g)}null!=c&&c(!0)};S.convertLegacySharedObject=function(a,b){};S.getFlatName=function(a){a=J.replace(a,"/","_");a=J.replace(a,".","_");return a=J.replace(a,"-","_")};S.getAssetClass=function(a){a="__ASSET__"+S.getFlatName(a);return k[a]};S.getConfigBytes=function(a){return uh.getBytes(S.getFlatName(a))};S.getConfigText=function(a){return uh.getString(S.getFlatName(a))};S.getConfigBitmap=function(a){try{var b=S.getFlatName(J.replace(a,".png",".txt")),c=uh.getString(b);return Ja.loadFromBase64(c, +"png").then(function(a){return eb.withValue(new Vb(a))})}catch(d){sa.lastError=d;a=R.caught(d).unwrap();if("string"==typeof a)return eb.withError("(You probably have a old browser) Error occurred: "+a);throw d;}};S.loadBytes=function(a){a=Za.createInstance(S.getAssetClass(a),[]);return hc.ofData(yb.toArrayBuffer(a))};S.loadText=function(a){a=S.loadBytes(a);return a.getString(0,a.length)};S.loadBitmapData=function(a){a=Db.fromFile(a);return Ja.fromImage(a)};S.resetStatics=function(){S.width=0;S.height= +0;S.elapsed=0;S.rate=1;S.bounds=null;S.camera=new oa;S._time=0;S._updateTime=0;S._renderTime=0;S._gameTime=0;S._flashTime=0;S._bitmap=new V;S._seed=0;S._getSeed=0;S._volume=1;S._pan=0;S._soundTransform=new hf;S.stage=null;S.point=new oa;S.point2=new oa;S.zero=new oa;S.rect=new fa;S.matrix=new Aa;S.sprite=new ta;S.collision=new qc};var La=function(){};k["com.stencyl.utils.motion.EasingFunction"]=La;La.__name__="com.stencyl.utils.motion.EasingFunction";La.prototype={apply:function(a){return 0},__class__:La}; +var ll=function(){};k["com.stencyl.utils.motion.BackIn"]=ll;ll.__name__="com.stencyl.utils.motion.BackIn";ll.__super__=La;ll.prototype=u(La.prototype,{apply:function(a){return 0==a?0:1==a?1:a*a*(2.70158*a-1.70158)},__class__:ll});var ml=function(){};k["com.stencyl.utils.motion.BackInOut"]=ml;ml.__name__="com.stencyl.utils.motion.BackInOut";ml.__super__=La;ml.prototype=u(La.prototype,{apply:function(a){return 0==a?0:1==a?1:1>(a*=2)?.5*a*a*(3.5949095*a-2.5949095):.5*((a-=2)*a*(3.5949095*a+2.5949095)+ +2)},__class__:ml});var nl=function(){};k["com.stencyl.utils.motion.BackOut"]=nl;nl.__name__="com.stencyl.utils.motion.BackOut";nl.__super__=La;nl.prototype=u(La.prototype,{apply:function(a){return 0==a?0:1==a?1:--a*a*(2.70158*a+1.70158)+1},__class__:nl});var ol=function(){};k["com.stencyl.utils.motion.BackOutIn"]=ol;ol.__name__="com.stencyl.utils.motion.BackOutIn";ol.__super__=La;ol.prototype=u(La.prototype,{apply:function(a){if(0==a)return 0;if(1==a)return 1;if(.5>a)return a=2*a-1,.5*(a*a*(2.70158* +a+1.70158)+1);a=2*a-1;return.5*a*a*(2.70158*a-1.70158)+.5},__class__:ol});var pl=function(){};k["com.stencyl.utils.motion.BounceIn"]=pl;pl.__name__="com.stencyl.utils.motion.BounceIn";pl.__super__=La;pl.prototype=u(La.prototype,{apply:function(a){a=1-a;return.36363636363636365>a?1-7.5625*a*a:.7272727272727273>a?1-(7.5625*(a-=.5454545454545454)*a+.75):.9090909090909091>a?1-(7.5625*(a-=.8181818181818182)*a+.9375):1-(7.5625*(a-=.9545454545454546)*a+.984375)},__class__:pl});var ql=function(){};k["com.stencyl.utils.motion.BounceInOut"]= +ql;ql.__name__="com.stencyl.utils.motion.BounceInOut";ql.__super__=La;ql.prototype=u(La.prototype,{apply:function(a){if(.5>a)return a=1-2*a,.36363636363636365>a?.5*(1-7.5625*a*a):.7272727272727273>a?.5*(1-(7.5625*(a-=.5454545454545454)*a+.75)):.9090909090909091>a?.5*(1-(7.5625*(a-=.8181818181818182)*a+.9375)):.5*(1-(7.5625*(a-=.9545454545454546)*a+.984375));a=2*a-1;return.36363636363636365>a?7.5625*a*a*.5+.5:.7272727272727273>a?.5*(7.5625*(a-=.5454545454545454)*a+.75)+.5:.9090909090909091>a?.5*(7.5625* +(a-=.8181818181818182)*a+.9375)+.5:.5*(7.5625*(a-=.9545454545454546)*a+.984375)+.5},__class__:ql});var rl=function(){};k["com.stencyl.utils.motion.BounceOut"]=rl;rl.__name__="com.stencyl.utils.motion.BounceOut";rl.__super__=La;rl.prototype=u(La.prototype,{apply:function(a){return.36363636363636365>a?7.5625*a*a:.7272727272727273>a?7.5625*(a-=.5454545454545454)*a+.75:.9090909090909091>a?7.5625*(a-=.8181818181818182)*a+.9375:7.5625*(a-=.9545454545454546)*a+.984375},__class__:rl});var sl=function(){}; +k["com.stencyl.utils.motion.BounceOutIn"]=sl;sl.__name__="com.stencyl.utils.motion.BounceOutIn";sl.__super__=La;sl.prototype=u(La.prototype,{apply:function(a){if(.5>a)return.36363636363636365>(a*=2)?3.78125*a*a:.7272727272727273>a?.5*(7.5625*(a-=.5454545454545454)*a+.75):.9090909090909091>a?.5*(7.5625*(a-=.8181818181818182)*a+.9375):.5*(7.5625*(a-=.9545454545454546)*a+.984375);a=1-(2*a-1);return.36363636363636365>a?.5-3.78125*a*a+.5:.7272727272727273>a?.5-.5*(7.5625*(a-=.5454545454545454)*a+.75)+ +.5:.9090909090909091>a?.5-.5*(7.5625*(a-=.8181818181818182)*a+.9375)+.5:.5-.5*(7.5625*(a-=.9545454545454546)*a+.984375)+.5},__class__:sl});var tl=function(){};k["com.stencyl.utils.motion.CircIn"]=tl;tl.__name__="com.stencyl.utils.motion.CircIn";tl.__super__=La;tl.prototype=u(La.prototype,{apply:function(a){return-1>a||1<a?0:1-Math.sqrt(1-a*a)},__class__:tl});var ul=function(){};k["com.stencyl.utils.motion.CircInOut"]=ul;ul.__name__="com.stencyl.utils.motion.CircInOut";ul.__super__=La;ul.prototype= +u(La.prototype,{apply:function(a){return-.5>a||1.5<a?.5:1>(a*=2)?-.5*(Math.sqrt(1-a*a)-1):.5*(Math.sqrt(1-(a-=2)*a)+1)},__class__:ul});var vl=function(){};k["com.stencyl.utils.motion.CircOut"]=vl;vl.__name__="com.stencyl.utils.motion.CircOut";vl.__super__=La;vl.prototype=u(La.prototype,{apply:function(a){return 0>a||2<a?0:Math.sqrt(a*(2-a))},__class__:vl});var wl=function(){};k["com.stencyl.utils.motion.CircOutIn"]=wl;wl.__name__="com.stencyl.utils.motion.CircOutIn";wl.__super__=La;wl.prototype=u(La.prototype, +{apply:function(a){if(0>a)return 0;if(1<a)return 1;if(.5>a)return a=2*a-1,.5*Math.sqrt(1-a*a);a=2*a-1;return-.5*(Math.sqrt(1-a*a)-1-1)},__class__:wl});var xl=function(){};k["com.stencyl.utils.motion.CubicIn"]=xl;xl.__name__="com.stencyl.utils.motion.CubicIn";xl.__super__=La;xl.prototype=u(La.prototype,{apply:function(a){return a*a*a},__class__:xl});var yl=function(){};k["com.stencyl.utils.motion.CubicInOut"]=yl;yl.__name__="com.stencyl.utils.motion.CubicInOut";yl.__super__=La;yl.prototype=u(La.prototype, +{apply:function(a){return 1>(a*=2)?.5*a*a*a:.5*((a-=2)*a*a+2)},__class__:yl});var zl=function(){};k["com.stencyl.utils.motion.CubicOut"]=zl;zl.__name__="com.stencyl.utils.motion.CubicOut";zl.__super__=La;zl.prototype=u(La.prototype,{apply:function(a){return--a*a*a+1},__class__:zl});var Al=function(){};k["com.stencyl.utils.motion.CubicOutIn"]=Al;Al.__name__="com.stencyl.utils.motion.CubicOutIn";Al.__super__=La;Al.prototype=u(La.prototype,{apply:function(a){a=2*a-1;return.5*(a*a*a+1)},__class__:Al}); +var Bl=function(){};k["com.stencyl.utils.motion.ElasticIn"]=Bl;Bl.__name__="com.stencyl.utils.motion.ElasticIn";Bl.__super__=La;Bl.prototype=u(La.prototype,{apply:function(a){return 0==a?0:1==a?1:-(Math.exp(6.931471805599453*--a)*Math.sin(6.283185307179586*(.001*a-7.5E-5)/3E-4))},__class__:Bl});var Cl=function(){};k["com.stencyl.utils.motion.ElasticInOut"]=Cl;Cl.__name__="com.stencyl.utils.motion.ElasticInOut";Cl.__super__=La;Cl.prototype=u(La.prototype,{apply:function(a){return 0==a?0:1==a?1:1>(a*= +2)?-.5*Math.exp(6.931471805599453*--a)*Math.sin(6.283185307179586*(.001*a-7.5E-5)/3E-4):Math.exp(-6.931471805599453*--a)*Math.sin(6.283185307179586*(.001*a-7.5E-5)/3E-4)*.5+1},__class__:Cl});var Dl=function(){};k["com.stencyl.utils.motion.ElasticOut"]=Dl;Dl.__name__="com.stencyl.utils.motion.ElasticOut";Dl.__super__=La;Dl.prototype=u(La.prototype,{apply:function(a){return 0==a?0:1==a?1:Math.exp(-6.931471805599453*a)*Math.sin(6.283185307179586*(.001*a-7.5E-5)/3E-4)+1},__class__:Dl});var El=function(){}; +k["com.stencyl.utils.motion.ElasticOutIn"]=El;El.__name__="com.stencyl.utils.motion.ElasticOutIn";El.__super__=La;El.prototype=u(La.prototype,{apply:function(a){if(.5>a)return 0==(a*=2)?0:.5*Math.exp(-6.931471805599453*a)*Math.sin(6.283185307179586*(.001*a-7.5E-5)/3E-4)+.5;if(.5==a)return.5;if(1==a)return 1;a=2*a-1;return-(.5*Math.exp(6.931471805599453*--a)*Math.sin(6.283185307179586*(.001*a-7.5E-5)/3E-4))+.5},__class__:El});var Fl=function(){};k["com.stencyl.utils.motion.ExpoIn"]=Fl;Fl.__name__= +"com.stencyl.utils.motion.ExpoIn";Fl.__super__=La;Fl.prototype=u(La.prototype,{apply:function(a){return 0==a?0:Math.exp(6.931471805599453*(a-1))},__class__:Fl});var Gl=function(){};k["com.stencyl.utils.motion.ExpoInOut"]=Gl;Gl.__name__="com.stencyl.utils.motion.ExpoInOut";Gl.__super__=La;Gl.prototype=u(La.prototype,{apply:function(a){return 0==a?0:1==a?1:1>(a*=2)?.5*Math.exp(6.931471805599453*(a-1)):.5*(2-Math.exp(-6.931471805599453*(a-1)))},__class__:Gl});var Hl=function(){};k["com.stencyl.utils.motion.ExpoOut"]= +Hl;Hl.__name__="com.stencyl.utils.motion.ExpoOut";Hl.__super__=La;Hl.prototype=u(La.prototype,{apply:function(a){return 1==a?1:1-Math.exp(-6.931471805599453*a)},__class__:Hl});var Il=function(){};k["com.stencyl.utils.motion.ExpoOutIn"]=Il;Il.__name__="com.stencyl.utils.motion.ExpoOutIn";Il.__super__=La;Il.prototype=u(La.prototype,{apply:function(a){return.5>a?.5*(1-Math.exp(-13.862943611198906*a)):.5==a?.5:.5*(Math.exp(13.862943611198906*(a-1))+1)},__class__:Il});var Jl=function(){};k["com.stencyl.utils.motion.Linear"]= +Jl;Jl.__name__="com.stencyl.utils.motion.Linear";Jl.__super__=La;Jl.prototype=u(La.prototype,{apply:function(a){return a},__class__:Jl});var Kl=function(){};k["com.stencyl.utils.motion.QuadIn"]=Kl;Kl.__name__="com.stencyl.utils.motion.QuadIn";Kl.__super__=La;Kl.prototype=u(La.prototype,{apply:function(a){return a*a},__class__:Kl});var Ll=function(){};k["com.stencyl.utils.motion.QuadInOut"]=Ll;Ll.__name__="com.stencyl.utils.motion.QuadInOut";Ll.__super__=La;Ll.prototype=u(La.prototype,{apply:function(a){return.5> +a?2*a*a:-2*--a*a+1},__class__:Ll});var Ml=function(){};k["com.stencyl.utils.motion.QuadOut"]=Ml;Ml.__name__="com.stencyl.utils.motion.QuadOut";Ml.__super__=La;Ml.prototype=u(La.prototype,{apply:function(a){return-a*(a-2)},__class__:Ml});var Nl=function(){};k["com.stencyl.utils.motion.QuadOutIn"]=Nl;Nl.__name__="com.stencyl.utils.motion.QuadOutIn";Nl.__super__=La;Nl.prototype=u(La.prototype,{apply:function(a){if(.5>a)return-.5*(a*=2)*(a-2);a=2*a-1;return.5*a*a+.5},__class__:Nl});var Ol=function(){}; +k["com.stencyl.utils.motion.QuartIn"]=Ol;Ol.__name__="com.stencyl.utils.motion.QuartIn";Ol.__super__=La;Ol.prototype=u(La.prototype,{apply:function(a){return(a*=a)*a},__class__:Ol});var Pl=function(){};k["com.stencyl.utils.motion.QuartInOut"]=Pl;Pl.__name__="com.stencyl.utils.motion.QuartInOut";Pl.__super__=La;Pl.prototype=u(La.prototype,{apply:function(a){if(1>(a*=2))return.5*(a*=a)*a;a*=a-=2;return-.5*(a*a-2)},__class__:Pl});var Ql=function(){};k["com.stencyl.utils.motion.QuartOut"]=Ql;Ql.__name__= +"com.stencyl.utils.motion.QuartOut";Ql.__super__=La;Ql.prototype=u(La.prototype,{apply:function(a){a*=--a;return 1-a*a},__class__:Ql});var Rl=function(){};k["com.stencyl.utils.motion.QuartOutIn"]=Rl;Rl.__name__="com.stencyl.utils.motion.QuartOutIn";Rl.__super__=La;Rl.prototype=u(La.prototype,{apply:function(a){if(.5>a)return a=2*a-1,-.5*(a*=a)*a+.5;a=2*a-1;return.5*(a*=a)*a+.5},__class__:Rl});var Sl=function(){};k["com.stencyl.utils.motion.QuintIn"]=Sl;Sl.__name__="com.stencyl.utils.motion.QuintIn"; +Sl.__super__=La;Sl.prototype=u(La.prototype,{apply:function(a){return a*(a*=a)*a},__class__:Sl});var Tl=function(){};k["com.stencyl.utils.motion.QuintInOut"]=Tl;Tl.__name__="com.stencyl.utils.motion.QuintInOut";Tl.__super__=La;Tl.prototype=u(La.prototype,{apply:function(a){return 1>(a*=2)?.5*a*(a*=a)*a:.5*(a-=2)*(a*=a)*a+1},__class__:Tl});var Ul=function(){};k["com.stencyl.utils.motion.QuintOut"]=Ul;Ul.__name__="com.stencyl.utils.motion.QuintOut";Ul.__super__=La;Ul.prototype=u(La.prototype,{apply:function(a){return--a* +(a*=a)*a+1},__class__:Ul});var Vl=function(){};k["com.stencyl.utils.motion.QuintOutIn"]=Vl;Vl.__name__="com.stencyl.utils.motion.QuintOutIn";Vl.__super__=La;Vl.prototype=u(La.prototype,{apply:function(a){a=2*a-1;return.5*(a*(a*=a)*a+1)},__class__:Vl});var Wl=function(){};k["com.stencyl.utils.motion.SineIn"]=Wl;Wl.__name__="com.stencyl.utils.motion.SineIn";Wl.__super__=La;Wl.prototype=u(La.prototype,{apply:function(a){return 0==a?0:1==a?1:1-Math.cos(1.5707963267948966*a)},__class__:Wl});var Xl=function(){}; +k["com.stencyl.utils.motion.SineInOut"]=Xl;Xl.__name__="com.stencyl.utils.motion.SineInOut";Xl.__super__=La;Xl.prototype=u(La.prototype,{apply:function(a){return 0==a?0:1==a?1:-.5*(Math.cos(3.141592653589793*a)-1)},__class__:Xl});var Yl=function(){};k["com.stencyl.utils.motion.SineOut"]=Yl;Yl.__name__="com.stencyl.utils.motion.SineOut";Yl.__super__=La;Yl.prototype=u(La.prototype,{apply:function(a){return 0==a?0:1==a?1:Math.sin(1.5707963267948966*a)},__class__:Yl});var Zl=function(){};k["com.stencyl.utils.motion.SineOutIn"]= +Zl;Zl.__name__="com.stencyl.utils.motion.SineOutIn";Zl.__super__=La;Zl.prototype=u(La.prototype,{apply:function(a){return 0==a?0:1==a?1:.5>a?.5*Math.sin(3.141592653589793*a):-.5*Math.cos(1.5707963267948966*(2*a-1))+1},__class__:Zl});var $l=function(){};k["com.stencyl.utils.motion.WarpIn"]=$l;$l.__name__="com.stencyl.utils.motion.WarpIn";$l.__super__=La;$l.prototype=u(La.prototype,{apply:function(a){return 1>a?0:1},__class__:$l});var am=function(){};k["com.stencyl.utils.motion.WarpInOut"]=am;am.__name__= +"com.stencyl.utils.motion.WarpInOut";am.__super__=La;am.prototype=u(La.prototype,{apply:function(a){return.5>a?0:1},__class__:am});var bm=function(){};k["com.stencyl.utils.motion.WarpOut"]=bm;bm.__name__="com.stencyl.utils.motion.WarpOut";bm.__super__=La;bm.prototype=u(La.prototype,{apply:function(a){return 0>=a?0:1},__class__:bm});var cm=function(){};k["com.stencyl.utils.motion.WarpOutIn"]=cm;cm.__name__="com.stencyl.utils.motion.WarpOutIn";cm.__super__=La;cm.prototype=u(La.prototype,{apply:function(a){return 0>= +a?0:1>a?.5:1},__class__:cm});var ia=function(){};k["com.stencyl.utils.motion.Easing"]=ia;ia.__name__="com.stencyl.utils.motion.Easing";var Uh=function(){};k["com.stencyl.utils.motion.EasingConstants"]=Uh;Uh.__name__="com.stencyl.utils.motion.EasingConstants";var hg=function(){this.paused=this.finished=this.active=!1};k["com.stencyl.utils.motion.TweenObject"]=hg;hg.__name__="com.stencyl.utils.motion.TweenObject";hg.prototype={easing:null,time:null,duration:null,active:null,paused:null,updated:null, +finished:null,onUpdate:null,onComplete:null,_tween:function(a,b){null==a&&(a=ia.linear);this.easing=a;this.duration=b;this.active||jb.markActive(this);this.time=0;this.active=!0;this.paused=this.finished=this.updated=!1;0==b&&(this.duration=1,jb.finish(this))},update:function(a){if(!this.paused)if(this.time+=a,this.time>this.duration&&(this.time=this.duration),this.updateValue(),this.updated=!0,this.time==this.duration){this.active=!1;this.finished=!0;if(null!=this.onUpdate)this.onUpdate();if(null!= +this.onComplete)this.onComplete()}else if(null!=this.onUpdate)this.onUpdate()},updateValue:function(){},doOnUpdate:function(a){this.onUpdate=a;return this},doOnComplete:function(a){this.onComplete=a;return this},__class__:hg};var tc=function(){hg.call(this)};k["com.stencyl.utils.motion.TweenFloat"]=tc;tc.__name__="com.stencyl.utils.motion.TweenFloat";tc.__super__=hg;tc.prototype=u(hg.prototype,{startValue:null,endValue:null,value:null,tween:function(a,b,c,d){this.startValue=a;this.endValue=b;this.value= +a;this._tween(c,d);return this},updateValue:function(){var a=this.easing.apply(this.time/this.duration);this.value=this.startValue*(1-a)+this.endValue*a},__class__:tc});var Kf=function(){hg.call(this)};k["com.stencyl.utils.motion.TweenFloat2"]=Kf;Kf.__name__="com.stencyl.utils.motion.TweenFloat2";Kf.__super__=hg;Kf.prototype=u(hg.prototype,{startValue1:null,endValue1:null,value1:null,startValue2:null,endValue2:null,value2:null,tween:function(a,b,c,d,e,g){this.startValue1=a;this.endValue1=b;this.value1= +a;this.startValue2=c;this.endValue2=d;this.value2=c;this._tween(e,g);return this},updateValue:function(){var a=this.easing.apply(this.time/this.duration);this.value1=this.startValue1*(1-a)+this.endValue1*a;this.value2=this.startValue2*(1-a)+this.endValue2*a},__class__:Kf});var jb=function(){};k["com.stencyl.utils.motion.TweenManager"]=jb;jb.__name__="com.stencyl.utils.motion.TweenManager";jb.resetStatics=function(){jb.activeObjects=[];jb.finishedObjects=[]};jb.markActive=function(a){jb.activeObjects.push(a)}; +jb.cancel=function(a){var b=jb.activeObjects.indexOf(a);-1!=b&&(a.active=!1,a.updated=!1,a.finished=!1,a.paused=!1,jb.activeObjects[b]=jb.activeObjects[jb.activeObjects.length-1],jb.activeObjects.pop())};jb.finish=function(a){var b=jb.activeObjects.indexOf(a);-1!=b&&(a.update(a.duration-a.time),jb.activeObjects[b]=jb.activeObjects[jb.activeObjects.length-1],jb.activeObjects.pop(),jb.finishedObjects.push(a))};jb.update=function(a){for(var b=jb.finishedObjects.length;0<b--;)jb.finishedObjects.pop().updated= +!1;for(b=jb.activeObjects.length;0<b--;){var c=jb.activeObjects[b];c.update(a);c.finished&&(jb.activeObjects[b]=jb.activeObjects[jb.activeObjects.length-1],jb.activeObjects.pop(),jb.finishedObjects.push(c))}};jb.timer=function(a){return(new dm).tween(a)};var dm=function(){hg.call(this)};k["com.stencyl.utils.motion.TweenTimer"]=dm;dm.__name__="com.stencyl.utils.motion.TweenTimer";dm.__super__=hg;dm.prototype=u(hg.prototype,{tween:function(a){this._tween(ia.linear,a);return this},updateValue:function(){}, +__class__:dm});var ig=E["haxe.StackItem"]={__ename__:"haxe.StackItem",__constructs__:null,CFunction:{_hx_name:"CFunction",_hx_index:0,__enum__:"haxe.StackItem",toString:v},Module:(N=function(a){return{_hx_index:1,m:a,__enum__:"haxe.StackItem",toString:v}},N._hx_name="Module",N.__params__=["m"],N),FilePos:(N=function(a,b,c,d){return{_hx_index:2,s:a,file:b,line:c,column:d,__enum__:"haxe.StackItem",toString:v}},N._hx_name="FilePos",N.__params__=["s","file","line","column"],N),Method:(N=function(a,b){return{_hx_index:3, +classname:a,method:b,__enum__:"haxe.StackItem",toString:v}},N._hx_name="Method",N.__params__=["classname","method"],N),LocalFunction:(N=function(a){return{_hx_index:4,v:a,__enum__:"haxe.StackItem",toString:v}},N._hx_name="LocalFunction",N.__params__=["v"],N)};ig.__constructs__=[ig.CFunction,ig.Module,ig.FilePos,ig.Method,ig.LocalFunction];var jf={callStack:function(){return sa.toHaxe(sa.callStack())},exceptionStack:function(a){null==a&&(a=!1);var b=sa.toHaxe(sa.exceptionStack());return a?b:jf.subtract(b, +jf.callStack())},toString:function(a){for(var b=new oc,c=0;c<a.length;){var d=a[c];++c;b.b+="\nCalled from ";jf.itemToString(b,d)}return b.b},subtract:function(a,b){for(var c=-1,d=-1;++d<a.length;){for(var e=0,g=b.length;e<g;){var f=e++;if(jf.equalItems(a[d],b[f])){if(0>c&&(c=d),++d,d>=a.length)break}else c=-1}if(0<=c)break}return 0<=c?a.slice(0,c):a},equalItems:function(a,b){if(null==a)return null==b?!0:!1;switch(a._hx_index){case 0:return null==b?!1:0==b._hx_index?!0:!1;case 1:return null==b?!1: +1==b._hx_index?a.m==b.m:!1;case 2:if(null==b)return!1;if(2==b._hx_index){var c=b.s,d=b.line,e=b.column,g=a.column,f=a.line,l=a.s;return a.file==b.file&&f==d&&g==e?jf.equalItems(l,c):!1}return!1;case 3:return null==b?!1:3==b._hx_index?(c=b.method,d=a.method,a.classname==b.classname?d==c:!1):!1;case 4:return null==b?!1:4==b._hx_index?a.v==b.v:!1}},itemToString:function(a,b){switch(b._hx_index){case 0:a.b+="a C function";break;case 1:b=b.m;a.b+="module ";a.b+=null==b?"null":""+b;break;case 2:var c=b.s, +d=b.file,e=b.line;b=b.column;null!=c&&(jf.itemToString(a,c),a.b+=" (");a.b+=null==d?"null":""+d;a.b+=" line ";a.b+=null==e?"null":""+e;null!=b&&(a.b+=" column ",a.b+=null==b?"null":""+b);null!=c&&(a.b+=")");break;case 3:c=b.classname;b=b.method;a.b+=n.string(null==c?"<unknown>":c);a.b+=".";a.b+=null==b?"null":""+b;break;case 4:b=b.v,a.b+="local function #",a.b+=null==b?"null":""+b}}},R=function(a,b,c){Error.call(this,a);this.message=a;this.__previousException=b;this.__nativeException=null!=c?c:this; +this.__skipStack=0;a=Error.prepareStackTrace;Error.prepareStackTrace=function(a){return a.stack};if(c instanceof Error)this.stack=c.stack;else{c=null;if(Error.captureStackTrace)Error.captureStackTrace(this,R),c=this;else if(c=Error(),"undefined"==typeof c.stack){try{throw c;}catch(d){}this.__skipStack++}this.stack=c.stack}Error.prepareStackTrace=a};k["haxe.Exception"]=R;R.__name__="haxe.Exception";R.caught=function(a){return a instanceof R?a:a instanceof Error?new R(a.message,null,a):new Kj(a,null, +a)};R.thrown=function(a){if(a instanceof R)return a.get_native();if(a instanceof Error)return a;a=new Kj(a);a.__skipStack++;return a};R.__super__=Error;R.prototype=u(Error.prototype,{__skipStack:null,__nativeException:null,__previousException:null,unwrap:function(){return this.__nativeException},toString:function(){return this.get_message()},__shiftStack:function(){this.__skipStack++},get_message:function(){return this.message},get_native:function(){return this.__nativeException},get_stack:function(){var a= +this.__exceptionStack;null==a&&(a=sa.toHaxe(sa.normalize(this.stack),this.__skipStack),this.setProperty("__exceptionStack",a));return a},setProperty:function(a,b){try{Object.defineProperty(this,a,{value:b})}catch(c){this[a]=b}},__class__:R,__properties__:{get_native:"get_native",get_stack:"get_stack",get_message:"get_message"}});var ro={ucompare:function(a,b){return 0>a?0>b?~b-~a|0:1:0>b?-1:a-b|0}},wu={toString:function(a){var b=a;if(0==b.high&&0==b.low)return"0";var c="",d=!1;0>b.high&&(d=!0);for(var e= +a=new Ya(0,10);0!=b.high||0!=b.low;)if(a=wu.divMod(b,e),0>a.modulus.high){var g=a.modulus;b=~g.high;g=~g.low+1|0;0==g&&b++;c=g+c;b=a.quotient;a=~b.high;b=~b.low+1|0;0==b&&(a++,a|=0);b=a=new Ya(a,b)}else c=a.modulus.low+c,b=a.quotient;d&&(c="-"+c);return c},divMod:function(a,b){if(0==b.high)switch(b.low){case 0:throw R.thrown("divide by zero");case 1:var c=new Ya(a.high,a.low),d=new Ya(0,0);return{quotient:c,modulus:d}}var e=0>a.high!=0>b.high;if(0>a.high){var g=~a.high;c=~a.low+1|0;0==c&&(g++,g|= +0);c=new Ya(g,c)}else c=new Ya(a.high,a.low);var f=c;0>b.high&&(g=~b.high,c=~b.low+1|0,0==c&&(g++,g|=0),b=c=new Ya(g,c));for(var l=c=new Ya(0,0),t=c=new Ya(0,1);!(0>b.high||(g=ro.ucompare(b.high,f.high),g=0!=g?g:ro.ucompare(b.low,f.low),c=1,c&=63,b=0==c?c=new Ya(b.high,b.low):32>c?d=new Ya(b.high<<c|b.low>>>32-c,b.low<<c):c=new Ya(b.low<<c-32,0),c=1,c&=63,t=0==c?new Ya(t.high,t.low):32>c?new Ya(t.high<<c|t.low>>>32-c,t.low<<c):c=new Ya(t.low<<c-32,0),0<=g)););for(;0!=t.high||0!=t.low;)g=ro.ucompare(f.high, +b.high),0<=(0!=g?g:ro.ucompare(f.low,b.low))&&(l=c=new Ya(l.high|t.high,l.low|t.low),g=f.high-b.high|0,c=f.low-b.low|0,0>ro.ucompare(f.low,b.low)&&(g--,g|=0),f=d=new Ya(g,c)),c=1,c&=63,t=0==c?c=new Ya(t.high,t.low):32>c?new Ya(t.high>>>c,t.high<<32-c|t.low>>>c):new Ya(0,t.high>>>c-32),c=1,c&=63,b=0==c?c=new Ya(b.high,b.low):32>c?new Ya(b.high>>>c,b.high<<32-c|b.low>>>c):new Ya(0,b.high>>>c-32);e&&(g=~l.high,c=~l.low+1|0,0==c&&(g++,g|=0),l=c=new Ya(g,c));0>a.high&&(g=~f.high,c=~f.low+1|0,0==c&&(g++, +g|=0),f=c=new Ya(g,c));return{quotient:l,modulus:f}}},Ya=function(a,b){this.high=a;this.low=b};k["haxe._Int64.___Int64"]=Ya;Ya.__name__="haxe._Int64.___Int64";Ya.prototype={high:null,low:null,__class__:Ya};var gh=function(){};k["haxe.Log"]=gh;gh.__name__="haxe.Log";gh.formatOutput=function(a,b){var c=n.string(a);if(null==b)return c;var d=b.fileName+":"+b.lineNumber;if(null!=b.customParams){var e=0;for(b=b.customParams;e<b.length;)a=b[e],++e,c+=", "+n.string(a)}return d+": "+c};gh.trace=function(a, +b){a=gh.formatOutput(a,b);"undefined"!=typeof console&&null!=console.log&&console.log(a)};var sa=function(){};k["haxe.NativeStackTrace"]=sa;sa.__name__="haxe.NativeStackTrace";sa.saveStack=function(a){sa.lastError=a};sa.callStack=function(){var a=Error(""),b=sa.tryHaxeStack(a);if("undefined"==typeof b){try{throw a;}catch(c){}b=a.stack}return sa.normalize(b,2)};sa.exceptionStack=function(){return sa.normalize(sa.tryHaxeStack(sa.lastError))};sa.toHaxe=function(a,b){null==b&&(b=0);if(null==a)return[]; +if("string"==typeof a){a=a.split("\n");"Error"==a[0]&&a.shift();for(var c=[],d=0,e=a.length;d<e;){var g=d++;if(!(b>g)){var f=a[g];g=f.match(/^ at ([A-Za-z0-9_. ]+) \(([^)]+):([0-9]+):([0-9]+)\)$/);if(null!=g){f=g[1].split(".");"$hxClasses"==f[0]&&f.shift();var l=f.pop(),t=g[2],m=n.parseInt(g[3]);g=n.parseInt(g[4]);c.push(ig.FilePos("Anonymous function"==l?ig.LocalFunction():"Global code"==l?null:ig.Method(f.join("."),l),t,m,g))}else c.push(ig.Module(J.trim(f)))}}return c}return 0<b&&Array.isArray(a)? +a.slice(b):a};sa.tryHaxeStack=function(a){if(null==a)return[];var b=Error.prepareStackTrace;Error.prepareStackTrace=sa.prepareHxStackTrace;a=a.stack;Error.prepareStackTrace=b;return a};sa.prepareHxStackTrace=function(a,b){a=[];for(var c=0;c<b.length;){var d=b[c];++c;null!=sa.wrapCallSite&&(d=sa.wrapCallSite(d));var e=null,g=d.getFunctionName();if(null!=g){var f=g.lastIndexOf(".");0<=f?(e=g.substring(0,f),g=g.substring(f+1),e=ig.Method(e,g)):e=ig.Method(null,g)}g=d.getFileName();f=null==g?-1:g.indexOf("file:"); +null!=sa.wrapCallSite&&0<f&&(g=g.substring(f+6));a.push(ig.FilePos(e,g,d.getLineNumber(),d.getColumnNumber()))}return a};sa.normalize=function(a,b){null==b&&(b=0);if(Array.isArray(a)&&0<b)return a.slice(b);if("string"==typeof a){switch(a.substring(0,6)){case "Error\n":case "Error:":++b}return sa.skipLines(a,b)}return a};sa.skipLines=function(a,b,c){null==c&&(c=0);return 0<b?(c=a.indexOf("\n",c),0>c?"":sa.skipLines(a,--b,c+1)):a.substring(c)};var uh=function(){};k["haxe.Resource"]=uh;uh.__name__="haxe.Resource"; +uh.getString=function(a){for(var b=0,c=uh.content;b<c.length;){var d=c[b];++b;if(d.name==a)return null!=d.str?d.str:vh.decode(d.data).toString()}return null};uh.getBytes=function(a){for(var b=0,c=uh.content;b<c.length;){var d=c[b];++b;if(d.name==a)return null!=d.str?cb.ofString(d.str):vh.decode(d.data)}return null};var ye=function(){this.buf=new oc;this.cache=[];this.useCache=ye.USE_CACHE;this.useEnumIndex=ye.USE_ENUM_INDEX;this.shash=new V;this.scount=0};k["haxe.Serializer"]=ye;ye.__name__="haxe.Serializer"; +ye.run=function(a){var b=new ye;b.serialize(a);return b.toString()};ye.prototype={buf:null,cache:null,shash:null,scount:null,useCache:null,useEnumIndex:null,toString:function(){return this.buf.b},serializeString:function(a){var b=this.shash.h[a];null!=b?(this.buf.b+="R",this.buf.b+=null==b?"null":""+b):(this.shash.h[a]=this.scount++,this.buf.b+="y",a=encodeURIComponent(a),this.buf.b+=n.string(a.length),this.buf.b+=":",this.buf.b+=null==a?"null":""+a)},serializeRef:function(a){for(var b=typeof a,c= +0,d=this.cache.length;c<d;){var e=c++,g=this.cache[e];if(typeof g==b&&g==a)return this.buf.b+="r",this.buf.b+=null==e?"null":""+e,!0}this.cache.push(a);return!1},serializeFields:function(a){for(var b=0,c=W.fields(a);b<c.length;){var d=c[b];++b;this.serializeString(d);this.serialize(W.field(a,d))}this.buf.b+="g"},serialize:function(a){var b=Za.typeof(a);switch(b._hx_index){case 0:this.buf.b+="n";break;case 1:if(0==a){this.buf.b+="z";break}this.buf.b+="i";this.buf.b+=null==a?"null":""+a;break;case 2:isNaN(a)? +this.buf.b+="k":isFinite(a)?(this.buf.b+="d",this.buf.b+=null==a?"null":""+a):this.buf.b+=0>a?"m":"p";break;case 3:this.buf.b+=a?"t":"f";break;case 4:O.__instanceof(a,yt)?(a=a.__name__,this.buf.b+="A",this.serializeString(a)):O.__instanceof(a,xu)?(this.buf.b+="B",this.serializeString(a.__ename__)):this.useCache&&this.serializeRef(a)||(this.buf.b+="o",this.serializeFields(a));break;case 5:throw R.thrown("Cannot serialize function");case 6:b=b.c;if(b==String){this.serializeString(a);break}if(this.useCache&& +this.serializeRef(a))break;switch(b){case Array:var c=0;this.buf.b+="a";for(var d=0,e=a.length;d<e;)b=d++,null==a[b]?++c:(0<c&&(1==c?this.buf.b+="n":(this.buf.b+="u",this.buf.b+=null==c?"null":""+c),c=0),this.serialize(a[b]));0<c&&(1==c?this.buf.b+="n":(this.buf.b+="u",this.buf.b+=null==c?"null":""+c));this.buf.b+="h";break;case Date:this.buf.b+="v";this.buf.b+=n.string(a.getTime());break;case Sa:this.buf.b+="q";for(b=a.keys();b.hasNext();)c=b.next(),this.buf.b+=":",this.buf.b+=null==c?"null":""+ +c,this.serialize(a.h[c]);this.buf.b+="h";break;case id:this.buf.b+="l";for(a=a.h;null!=a;)b=a.item,a=a.next,this.serialize(b);this.buf.b+="h";break;case ac:this.buf.b+="M";for(b=a.keys();b.hasNext();){c=b.next();var g=W.field(c,"__id__");W.deleteField(c,"__id__");this.serialize(c);c.__id__=g;this.serialize(a.h[c.__id__])}this.buf.b+="h";break;case V:this.buf.b+="b";c=Object.keys(a.h);g=c.length;for(d=0;d<g;)b=c[d++],this.serializeString(b),this.serialize(a.h[b]);this.buf.b+="h";break;case cb:this.buf.b+= +"s";this.buf.b+=n.string(Math.ceil(8*a.length/6));this.buf.b+=":";b=0;c=a.length-2;g=ye.BASE64_CODES;if(null==g){g=Array(ye.BASE64.length);d=0;for(e=ye.BASE64.length;d<e;){var f=d++;g[f]=F.cca(ye.BASE64,f)}ye.BASE64_CODES=g}for(;b<c;)d=a.b[b++],e=a.b[b++],f=a.b[b++],this.buf.b+=String.fromCodePoint(g[d>>2]),this.buf.b+=String.fromCodePoint(g[(d<<4|e>>4)&63]),this.buf.b+=String.fromCodePoint(g[(e<<2|f>>6)&63]),this.buf.b+=String.fromCodePoint(g[f&63]);b==c?(d=a.b[b++],e=a.b[b++],this.buf.b+=String.fromCodePoint(g[d>> +2]),this.buf.b+=String.fromCodePoint(g[(d<<4|e>>4)&63]),this.buf.b+=String.fromCodePoint(g[e<<2&63])):b==c+1&&(d=a.b[b++],this.buf.b+=String.fromCodePoint(g[d>>2]),this.buf.b+=String.fromCodePoint(g[d<<4&63]));break;default:this.useCache&&this.cache.pop(),null!=a.hxSerialize?(this.buf.b+="C",this.serializeString(b.__name__),this.useCache&&this.cache.push(a),a.hxSerialize(this),this.buf.b+="g"):(this.buf.b+="c",this.serializeString(b.__name__),this.useCache&&this.cache.push(a),this.serializeFields(a))}break; +case 7:b=b.e;if(this.useCache){if(this.serializeRef(a))break;this.cache.pop()}this.buf.b+=n.string(this.useEnumIndex?"j":"w");this.serializeString(b.__ename__);this.useEnumIndex?(this.buf.b+=":",this.buf.b+=n.string(a._hx_index)):(b=a,this.serializeString(E[b.__enum__].__constructs__[b._hx_index]._hx_name));this.buf.b+=":";c=Za.enumParameters(a);this.buf.b+=n.string(c.length);for(b=0;b<c.length;)g=c[b],++b,this.serialize(g);this.useCache&&this.cache.push(a);break;default:throw R.thrown("Cannot serialize "+ +n.string(a));}},__class__:ye};var Oe=function(a){var b=this;this.id=setInterval(function(){b.run()},a)};k["haxe.Timer"]=Oe;Oe.__name__="haxe.Timer";Oe.delay=function(a,b){var c=new Oe(b);c.run=function(){c.stop();a()};return c};Oe.measure=function(a,b){var c=(new Date).getTime()/1E3;a=a();gh.trace((new Date).getTime()/1E3-c+"s",b);return a};Oe.stamp=function(){return(new Date).getTime()/1E3};Oe.prototype={id:null,stop:function(){null!=this.id&&(clearInterval(this.id),this.id=null)},run:function(){}, +__class__:Oe};var em=function(){};k["haxe._Unserializer.DefaultResolver"]=em;em.__name__="haxe._Unserializer.DefaultResolver";em.prototype={resolveClass:function(a){return k[a]},resolveEnum:function(a){return E[a]},__class__:em};var Ge=function(a){this.buf=a;this.length=this.buf.length;this.pos=0;this.scache=[];this.cache=[];a=Ge.DEFAULT_RESOLVER;null==a&&(a=new em,Ge.DEFAULT_RESOLVER=a);this.resolver=a};k["haxe.Unserializer"]=Ge;Ge.__name__="haxe.Unserializer";Ge.initCodes=function(){for(var a=[], +b=0,c=Ge.BASE64.length;b<c;){var d=b++;a[Ge.BASE64.charCodeAt(d)]=d}return a};Ge.run=function(a){return(new Ge(a)).unserialize()};Ge.prototype={buf:null,pos:null,length:null,cache:null,scache:null,resolver:null,setResolver:function(a){null==a?(null==Di.instance&&(Di.instance=new Di),this.resolver=Di.instance):this.resolver=a},readDigits:function(){for(var a=0,b=!1,c=this.pos;;){var d=this.buf.charCodeAt(this.pos);if(d!=d)break;if(45==d){if(this.pos!=c)break;b=!0}else{if(48>d||57<d)break;a=10*a+(d- +48)}this.pos++}b&&(a*=-1);return a},readFloat:function(){for(var a=this.pos;;){var b=this.buf.charCodeAt(this.pos);if(b!=b)break;if(43<=b&&58>b||101==b||69==b)this.pos++;else break}return parseFloat(F.substr(this.buf,a,this.pos-a))},unserializeObject:function(a){for(;;){if(this.pos>=this.length)throw R.thrown("Invalid object");if(103==this.buf.charCodeAt(this.pos))break;var b=this.unserialize();if("string"!=typeof b)throw R.thrown("Invalid object key");var c=this.unserialize();a[b]=c}this.pos++}, +unserializeEnum:function(a,b){if(58!=this.buf.charCodeAt(this.pos++))throw R.thrown("Invalid enum format");var c=this.readDigits();if(0==c)return Za.createEnum(a,b);for(var d=[];0<c--;)d.push(this.unserialize());return Za.createEnum(a,b,d)},unserialize:function(){switch(this.buf.charCodeAt(this.pos++)){case 65:var a=this.unserialize(),b=this.resolver.resolveClass(a);if(null==b)throw R.thrown("Class not found "+a);return b;case 66:a=this.unserialize();b=this.resolver.resolveEnum(a);if(null==b)throw R.thrown("Enum not found "+ +a);return b;case 67:a=this.unserialize();b=this.resolver.resolveClass(a);if(null==b)throw R.thrown("Class not found "+a);b=Object.create(b.prototype);this.cache.push(b);b.hxUnserialize(this);if(103!=this.buf.charCodeAt(this.pos++))throw R.thrown("Invalid custom data");return b;case 77:a=new ac;this.cache.push(a);for(var c;104!=this.buf.charCodeAt(this.pos);)b=this.unserialize(),a.set(b,this.unserialize());this.pos++;return a;case 82:a=this.readDigits();if(0>a||a>=this.scache.length)throw R.thrown("Invalid string reference"); +return this.scache[a];case 97:b=[];for(this.cache.push(b);;){c=this.buf.charCodeAt(this.pos);if(104==c){this.pos++;break}117==c?(this.pos++,a=this.readDigits(),b[b.length+a-1]=null):b.push(this.unserialize())}return b;case 98:a=new V;for(this.cache.push(a);104!=this.buf.charCodeAt(this.pos);)b=this.unserialize(),c=this.unserialize(),a.h[b]=c;this.pos++;return a;case 99:a=this.unserialize();b=this.resolver.resolveClass(a);if(null==b)throw R.thrown("Class not found "+a);b=Object.create(b.prototype); +this.cache.push(b);this.unserializeObject(b);return b;case 100:return this.readFloat();case 102:return!1;case 105:return this.readDigits();case 106:a=this.unserialize();c=this.resolver.resolveEnum(a);if(null==c)throw R.thrown("Enum not found "+a);this.pos++;for(var d=this.readDigits(),e=c.__constructs__,g=Array(e.length),f=0,l=e.length;f<l;)b=f++,g[b]=e[b]._hx_name;b=g[d];if(null==b)throw R.thrown("Unknown enum index "+a+"@"+d);b=this.unserializeEnum(c,b);this.cache.push(b);return b;case 107:return NaN; +case 108:b=new id;for(this.cache.push(b);104!=this.buf.charCodeAt(this.pos);)b.add(this.unserialize());this.pos++;return b;case 109:return-Infinity;case 110:return null;case 111:return b={},this.cache.push(b),this.unserializeObject(b),b;case 112:return Infinity;case 113:a=new Sa;this.cache.push(a);for(c=this.buf.charCodeAt(this.pos++);58==c;)b=this.readDigits(),c=this.unserialize(),a.h[b]=c,c=this.buf.charCodeAt(this.pos++);if(104!=c)throw R.thrown("Invalid IntMap format");return a;case 114:a=this.readDigits(); +if(0>a||a>=this.cache.length)throw R.thrown("Invalid reference");return this.cache[a];case 115:a=this.readDigits();c=this.buf;if(58!=this.buf.charCodeAt(this.pos++)||this.length-this.pos<a)throw R.thrown("Invalid bytes length");d=Ge.CODES;null==d&&(d=Ge.initCodes(),Ge.CODES=d);b=this.pos;e=a&3;g=b+(a-e);f=new cb(new ArrayBuffer(3*(a>>2)+(2<=e?e-1:0)));for(l=0;b<g;){var t=d[c.charCodeAt(b++)],m=d[c.charCodeAt(b++)];f.b[l++]=(t<<2|m>>4)&255;t=d[c.charCodeAt(b++)];f.b[l++]=(m<<4|t>>2)&255;m=d[c.charCodeAt(b++)]; +f.b[l++]=(t<<6|m)&255}2<=e&&(t=d[c.charCodeAt(b++)],m=d[c.charCodeAt(b++)],f.b[l++]=(t<<2|m>>4)&255,3==e&&(t=d[c.charCodeAt(b++)],f.b[l++]=(m<<4|t>>2)&255));this.pos+=a;this.cache.push(f);return f;case 116:return!0;case 118:return 48<=this.buf.charCodeAt(this.pos)&&57>=this.buf.charCodeAt(this.pos)&&48<=this.buf.charCodeAt(this.pos+1)&&57>=this.buf.charCodeAt(this.pos+1)&&48<=this.buf.charCodeAt(this.pos+2)&&57>=this.buf.charCodeAt(this.pos+2)&&48<=this.buf.charCodeAt(this.pos+3)&&57>=this.buf.charCodeAt(this.pos+ +3)&&45==this.buf.charCodeAt(this.pos+4)?(b=F.strDate(F.substr(this.buf,this.pos,19)),this.pos+=19):b=new Date(this.readFloat()),this.cache.push(b),b;case 119:a=this.unserialize();c=this.resolver.resolveEnum(a);if(null==c)throw R.thrown("Enum not found "+a);b=this.unserializeEnum(c,this.unserialize());this.cache.push(b);return b;case 120:throw R.thrown(this.unserialize());case 121:a=this.readDigits();if(58!=this.buf.charCodeAt(this.pos++)||this.length-this.pos<a)throw R.thrown("Invalid string length"); +b=F.substr(this.buf,this.pos,a);this.pos+=a;b=decodeURIComponent(b.split("+").join(" "));this.scache.push(b);return b;case 122:return 0}this.pos--;throw R.thrown("Invalid char "+this.buf.charAt(this.pos)+" at position "+this.pos);},__class__:Ge};var Di=function(){};k["haxe._Unserializer.NullResolver"]=Di;Di.__name__="haxe._Unserializer.NullResolver";Di.prototype={resolveClass:function(a){return null},resolveEnum:function(a){return null},__class__:Di};var Kj=function(a,b,c){R.call(this,String(a),b, +c);this.value=a;this.__skipStack++};k["haxe.ValueException"]=Kj;Kj.__name__="haxe.ValueException";Kj.__super__=R;Kj.prototype=u(R.prototype,{value:null,unwrap:function(){return this.value},__class__:Kj});var Ei=function(){this.a1=1;this.a2=0};k["haxe.crypto.Adler32"]=Ei;Ei.__name__="haxe.crypto.Adler32";Ei.read=function(a){var b=new Ei,c=a.readByte(),d=a.readByte(),e=a.readByte();a=a.readByte();b.a1=e<<8|a;b.a2=c<<8|d;return b};Ei.prototype={a1:null,a2:null,update:function(a,b,c){var d=this.a1,e= +this.a2,g=b;for(b+=c;g<b;)c=g++,d=(d+a.b[c])%65521,e=(e+d)%65521;this.a1=d;this.a2=e},equals:function(a){return a.a1==this.a1?a.a2==this.a2:!1},__class__:Ei};var cb=function(a){this.length=a.byteLength;this.b=new Uint8Array(a);this.b.bufferValue=a;a.hxBytes=this;a.bytes=this.b};k["haxe.io.Bytes"]=cb;cb.__name__="haxe.io.Bytes";cb.alloc=function(a){return new cb(new ArrayBuffer(a))};cb.ofString=function(a,b){b=[];for(var c=0;c<a.length;){var d=a.charCodeAt(c++);55296<=d&&56319>=d&&(d=d-55232<<10|a.charCodeAt(c++)& +1023);127>=d?b.push(d):(2047>=d?b.push(192|d>>6):(65535>=d?b.push(224|d>>12):(b.push(240|d>>18),b.push(128|d>>12&63)),b.push(128|d>>6&63)),b.push(128|d&63))}return new cb((new Uint8Array(b)).buffer)};cb.ofData=function(a){var b=a.hxBytes;return null!=b?b:new cb(a)};cb.ofHex=function(a){if(0!=(a.length&1))throw R.thrown("Not a hex string (odd number of digits)");for(var b=[],c=0,d=a.length>>1;c<d;){var e=a.charCodeAt(2*c),g=a.charCodeAt(2*c+1);e=(e&15)+9*((e&64)>>6);g=(g&15)+9*((g&64)>>6);b.push((e<< +4|g)&255);++c}return new cb((new Uint8Array(b)).buffer)};cb.fastGet=function(a,b){return a.bytes[b]};cb.prototype={length:null,b:null,data:null,get:function(a){return this.b[a]},set:function(a,b){this.b[a]=b&255},blit:function(a,b,c,d){if(0>a||0>c||0>d||a+d>this.length||c+d>b.length)throw R.thrown(Nf.OutsideBounds);0==c&&d==b.b.byteLength?this.b.set(b.b,a):this.b.set(b.b.subarray(c,c+d),a)},fill:function(a,b,c){for(var d=0;d<b;)d++,this.b[a++]=c&255},sub:function(a,b){if(0>a||0>b||a+b>this.length)throw R.thrown(Nf.OutsideBounds); +return new cb(this.b.buffer.slice(a+this.b.byteOffset,a+this.b.byteOffset+b))},compare:function(a){for(var b=this.b,c=a.b,d=0,e=this.length<a.length?this.length:a.length;d<e;){var g=d++;if(b[g]!=c[g])return b[g]-c[g]}return this.length-a.length},initData:function(){null==this.data&&(this.data=new DataView(this.b.buffer,this.b.byteOffset,this.b.byteLength))},getDouble:function(a){null==this.data&&(this.data=new DataView(this.b.buffer,this.b.byteOffset,this.b.byteLength));return this.data.getFloat64(a, +!0)},getFloat:function(a){null==this.data&&(this.data=new DataView(this.b.buffer,this.b.byteOffset,this.b.byteLength));return this.data.getFloat32(a,!0)},setDouble:function(a,b){null==this.data&&(this.data=new DataView(this.b.buffer,this.b.byteOffset,this.b.byteLength));this.data.setFloat64(a,b,!0)},setFloat:function(a,b){null==this.data&&(this.data=new DataView(this.b.buffer,this.b.byteOffset,this.b.byteLength));this.data.setFloat32(a,b,!0)},getUInt16:function(a){null==this.data&&(this.data=new DataView(this.b.buffer, +this.b.byteOffset,this.b.byteLength));return this.data.getUint16(a,!0)},setUInt16:function(a,b){null==this.data&&(this.data=new DataView(this.b.buffer,this.b.byteOffset,this.b.byteLength));this.data.setUint16(a,b,!0)},getInt32:function(a){null==this.data&&(this.data=new DataView(this.b.buffer,this.b.byteOffset,this.b.byteLength));return this.data.getInt32(a,!0)},setInt32:function(a,b){null==this.data&&(this.data=new DataView(this.b.buffer,this.b.byteOffset,this.b.byteLength));this.data.setInt32(a, +b,!0)},getInt64:function(a){return new Ya(this.getInt32(a+4),this.getInt32(a))},setInt64:function(a,b){this.setInt32(a,b.low);this.setInt32(a+4,b.high)},getString:function(a,b,c){if(0>a||0>b||a+b>this.length)throw R.thrown(Nf.OutsideBounds);c="";var d=this.b,e=ma.fromCharCode,g=a;for(a+=b;g<a;)if(b=d[g++],128>b){if(0==b)break;c+=e(b)}else if(224>b)c+=e((b&63)<<6|d[g++]&127);else if(240>b){var f=d[g++];c+=e((b&31)<<12|(f&127)<<6|d[g++]&127)}else{f=d[g++];var l=d[g++];b=(b&15)<<18|(f&127)<<12|(l&127)<< +6|d[g++]&127;c+=e((b>>10)+55232);c+=e(b&1023|56320)}return c},readString:function(a,b){return this.getString(a,b)},toString:function(){return this.getString(0,this.length)},toHex:function(){for(var a="",b=[],c=0,d=16;c<d;){var e=c++;b.push(F.cca("0123456789abcdef",e))}c=0;for(d=this.length;c<d;)e=c++,e=this.b[e],a+=String.fromCodePoint(b[e>>4]),a+=String.fromCodePoint(b[e&15]);return a},getData:function(){return this.b.bufferValue},__class__:cb};var vh=function(){};k["haxe.crypto.Base64"]=vh;vh.__name__= +"haxe.crypto.Base64";vh.decode=function(a,b){null==b&&(b=!0);if(b)for(;61==F.cca(a,a.length-1);)a=F.substr(a,0,-1);return(new Fj(vh.BYTES)).decodeBytes(cb.ofString(a))};var Fj=function(a){for(var b=a.length,c=1;b>1<<c;)++c;if(8<c||b!=1<<c)throw R.thrown("BaseCode : base length must be a power of two.");this.base=a;this.nbits=c};k["haxe.crypto.BaseCode"]=Fj;Fj.__name__="haxe.crypto.BaseCode";Fj.prototype={base:null,nbits:null,tbl:null,encodeBytes:function(a){for(var b=this.nbits,c=this.base,d=8*a.length/ +b|0,e=new cb(new ArrayBuffer(d+(0==8*a.length%b?0:1))),g=0,f=0,l=(1<<b)-1,t=0,m=0;m<d;){for(;f<b;)f+=8,g<<=8,g|=a.b[t++];f-=b;e.b[m++]=c.b[g>>f&l]&255}0<f&&(e.b[m++]=c.b[g<<b-f&l]&255);return e},initTable:function(){for(var a=[],b=0;256>b;){var c=b++;a[c]=-1}b=0;for(var d=this.base.length;b<d;)c=b++,a[this.base.b[c]]=c;this.tbl=a},decodeBytes:function(a){var b=this.nbits;null==this.tbl&&this.initTable();for(var c=this.tbl,d=a.length*b>>3,e=new cb(new ArrayBuffer(d)),g=0,f=0,l=0,t=0;t<d;){for(;8>f;){f+= +b;g<<=b;var m=c[a.b[l++]];if(-1==m)throw R.thrown("BaseCode : invalid encoded char");g|=m}f-=8;e.b[t++]=g>>f&255}return e},__class__:Fj};var de=function(){};k["haxe.ds.ArraySort"]=de;de.__name__="haxe.ds.ArraySort";de.sort=function(a,b){de.rec(a,b,0,a.length)};de.rec=function(a,b,c,d){var e=c+d>>1;if(12>d-c){if(!(d<=c))for(e=c+1;e<d;)for(var g=e++;g>c;){if(0>b(a[g],a[g-1]))de.swap(a,g-1,g);else break;--g}}else de.rec(a,b,c,e),de.rec(a,b,e,d),de.doMerge(a,b,c,e,d,e-c,d-e)};de.doMerge=function(a,b, +c,d,e,g,f){if(0!=g&&0!=f)if(2==g+f)0>b(a[d],a[c])&&de.swap(a,d,c);else{if(g>f){var x=g>>1;var t=c+x;var m=de.lower(a,b,d,e,t);var h=m-d}else h=f>>1,m=d+h,t=de.upper(a,b,c,d,m),x=t-c;de.rotate(a,b,t,d,m);d=t+h;de.doMerge(a,b,c,t,d,x,h);de.doMerge(a,b,d,m,e,g-x,f-h)}};de.rotate=function(a,b,c,d,e){if(c!=d&&d!=e)for(b=de.gcd(e-c,d-c);0!=b--;){for(var g=a[c+b],f=d-c,l=c+b,t=c+b+f;t!=c+b;)a[l]=a[t],l=t,t=e-t>f?t+f:c+(f-(e-t));a[l]=g}};de.gcd=function(a,b){for(;0!=b;){var c=a%b;a=b;b=c}return a};de.upper= +function(a,b,c,d,e){d-=c;for(var g,f;0<d;)g=d>>1,f=c+g,0>b(a[e],a[f])?d=g:(c=f+1,d=d-g-1);return c};de.lower=function(a,b,c,d,e){d-=c;for(var g,f;0<d;)g=d>>1,f=c+g,0>b(a[f],a[e])?(c=f+1,d=d-g-1):d=g;return c};de.swap=function(a,b,c){var d=a[b];a[b]=a[c];a[c]=d};var Sg=function(){};k["haxe.ds.BalancedTree"]=Sg;Sg.__name__="haxe.ds.BalancedTree";Sg.__interfaces__=[jd];Sg.iteratorLoop=function(a,b){null!=a&&(Sg.iteratorLoop(a.left,b),b.push(a.value),Sg.iteratorLoop(a.right,b))};Sg.prototype={root:null, +set:function(a,b){this.root=this.setLoop(a,b,this.root)},get:function(a){for(var b=this.root;null!=b;){var c=this.compare(a,b.key);if(0==c)return b.value;b=0>c?b.left:b.right}return null},remove:function(a){try{return this.root=this.removeLoop(a,this.root),!0}catch(b){sa.lastError=b;if("string"==typeof R.caught(b).unwrap())return!1;throw b;}},exists:function(a){for(var b=this.root;null!=b;){var c=this.compare(a,b.key);if(0==c)return!0;b=0>c?b.left:b.right}return!1},iterator:function(){var a=[];Sg.iteratorLoop(this.root, +a);return new ue(a)},keyValueIterator:function(){return new fh(this)},keys:function(){var a=[];this.keysLoop(this.root,a);return new ue(a)},setLoop:function(a,b,c){if(null==c)return new Xe(null,a,b,null);var d=this.compare(a,c.key);if(0==d)return new Xe(c.left,a,b,c.right,null==c?0:c._height);if(0>d)return a=this.setLoop(a,b,c.left),this.balance(a,c.key,c.value,c.right);a=this.setLoop(a,b,c.right);return this.balance(c.left,c.key,c.value,a)},removeLoop:function(a,b){if(null==b)throw R.thrown("Not_found"); +var c=this.compare(a,b.key);return 0==c?this.merge(b.left,b.right):0>c?this.balance(this.removeLoop(a,b.left),b.key,b.value,b.right):this.balance(b.left,b.key,b.value,this.removeLoop(a,b.right))},keysLoop:function(a,b){null!=a&&(this.keysLoop(a.left,b),b.push(a.key),this.keysLoop(a.right,b))},merge:function(a,b){if(null==a)return b;if(null==b)return a;var c=this.minBinding(b);return this.balance(a,c.key,c.value,this.removeMinBinding(b))},minBinding:function(a){if(null==a)throw R.thrown("Not_found"); +return null==a.left?a:this.minBinding(a.left)},removeMinBinding:function(a){return null==a.left?a.right:this.balance(this.removeMinBinding(a.left),a.key,a.value,a.right)},balance:function(a,b,c,d){var e=null==a?0:a._height,g=null==d?0:d._height;return e>g+2?(e=a.left,g=a.right,(null==e?0:e._height)>=(null==g?0:g._height)?new Xe(a.left,a.key,a.value,new Xe(a.right,b,c,d)):new Xe(new Xe(a.left,a.key,a.value,a.right.left),a.right.key,a.right.value,new Xe(a.right.right,b,c,d))):g>e+2?(e=d.right,g=d.left, +(null==e?0:e._height)>(null==g?0:g._height)?new Xe(new Xe(a,b,c,d.left),d.key,d.value,d.right):new Xe(new Xe(a,b,c,d.left.left),d.left.key,d.left.value,new Xe(d.left.right,d.key,d.value,d.right))):new Xe(a,b,c,d,(e>g?e:g)+1)},compare:function(a,b){return W.compare(a,b)},__class__:Sg};var Xe=function(a,b,c,d,e){null==e&&(e=-1);this.left=a;this.key=b;this.value=c;this.right=d;-1==e?(a=this.left,b=this.right,a=(null==a?0:a._height)>(null==b?0:b._height)?this.left:this.right,this._height=(null==a?0:a._height)+ +1):this._height=e};k["haxe.ds.TreeNode"]=Xe;Xe.__name__="haxe.ds.TreeNode";Xe.prototype={left:null,right:null,key:null,value:null,_height:null,__class__:Xe};var Lj=function(){};k["haxe.ds.EnumValueMap"]=Lj;Lj.__name__="haxe.ds.EnumValueMap";Lj.__interfaces__=[jd];Lj.__super__=Sg;Lj.prototype=u(Sg.prototype,{compare:function(a,b){var c=a._hx_index-b._hx_index;if(0!=c)return c;a=Za.enumParameters(a);b=Za.enumParameters(b);return 0==a.length&&0==b.length?0:this.compareArgs(a,b)},compareArgs:function(a, +b){var c=a.length-b.length;if(0!=c)return c;c=0;for(var d=a.length;c<d;){var e=c++;e=this.compareArg(a[e],b[e]);if(0!=e)return e}return 0},compareArg:function(a,b){return W.isEnumValue(a)&&W.isEnumValue(b)?this.compare(a,b):a instanceof Array&&b instanceof Array?this.compareArgs(a,b):W.compare(a,b)},__class__:Lj});var uk=function(a,b){this.item=a;this.next=b};k["haxe.ds._List.ListNode"]=uk;uk.__name__="haxe.ds._List.ListNode";uk.prototype={item:null,next:null,__class__:uk};var zn=function(a){this.head= +a};k["haxe.ds._List.ListIterator"]=zn;zn.__name__="haxe.ds._List.ListIterator";zn.prototype={head:null,hasNext:function(){return null!=this.head},next:function(){var a=this.head.item;this.head=this.head.next;return a},__class__:zn};var mj=function(a){this.h=a;this.keys=Object.keys(a);this.length=this.keys.length;this.current=0};k["haxe.ds._StringMap.StringMapKeyIterator"]=mj;mj.__name__="haxe.ds._StringMap.StringMapKeyIterator";mj.prototype={h:null,keys:null,length:null,current:null,hasNext:function(){return this.current< +this.length},next:function(){return this.keys[this.current++]},__class__:mj};var Bi=function(a){this.h=a;this.keys=Object.keys(a);this.length=this.keys.length;this.current=0};k["haxe.ds._StringMap.StringMapValueIterator"]=Bi;Bi.__name__="haxe.ds._StringMap.StringMapValueIterator";Bi.prototype={h:null,keys:null,length:null,current:null,hasNext:function(){return this.current<this.length},next:function(){return this.h[this.keys[this.current++]]},__class__:Bi};var qo=function(a){this.h=a;this.keys=Object.keys(a); +this.length=this.keys.length;this.current=0};k["haxe.ds._StringMap.StringMapKeyValueIterator"]=qo;qo.__name__="haxe.ds._StringMap.StringMapKeyValueIterator";qo.prototype={h:null,keys:null,length:null,current:null,hasNext:function(){return this.current<this.length},next:function(){var a=this.keys[this.current++];return{key:a,value:this.h[a]}},__class__:qo};var Fi=function(a,b,c){R.call(this,a,b);this.posInfos=null==c?{fileName:"(unknown)",lineNumber:0,className:"(unknown)",methodName:"(unknown)"}: +c;this.__skipStack++};k["haxe.exceptions.PosException"]=Fi;Fi.__name__="haxe.exceptions.PosException";Fi.__super__=R;Fi.prototype=u(R.prototype,{posInfos:null,toString:function(){return""+R.prototype.toString.call(this)+" in "+this.posInfos.className+"."+this.posInfos.methodName+" at "+this.posInfos.fileName+":"+this.posInfos.lineNumber},__class__:Fi});var fm=function(a,b,c){null==a&&(a="Not implemented");Fi.call(this,a,b,c);this.__skipStack++};k["haxe.exceptions.NotImplementedException"]=fm;fm.__name__= +"haxe.exceptions.NotImplementedException";fm.__super__=Fi;fm.prototype=u(Fi.prototype,{__class__:fm});var gm=function(){this.size=this.pos=0};k["haxe.io.BytesBuffer"]=gm;gm.__name__="haxe.io.BytesBuffer";gm.prototype={buffer:null,view:null,u8:null,pos:null,size:null,addByte:function(a){this.pos==this.size&&this.grow(1);this.view.setUint8(this.pos++,a)},add:function(a){this.pos+a.length>this.size&&this.grow(a.length);if(0!=this.size){var b=new Uint8Array(a.b.buffer,a.b.byteOffset,a.length);this.u8.set(b, +this.pos);this.pos+=a.length}},addBytes:function(a,b,c){if(0>b||0>c||b+c>a.length)throw R.thrown(Nf.OutsideBounds);this.pos+c>this.size&&this.grow(c);0!=this.size&&(a=new Uint8Array(a.b.buffer,a.b.byteOffset+b,c),this.u8.set(a,this.pos),this.pos+=c)},grow:function(a){var b=this.pos+a;for(a=0==this.size?16:this.size;a<b;)a=3*a>>1;b=new ArrayBuffer(a);var c=new Uint8Array(b);0<this.size&&c.set(this.u8);this.size=a;this.buffer=b;this.u8=c;this.view=new DataView(this.buffer)},getBytes:function(){if(0== +this.size)return new cb(new ArrayBuffer(0));var a=new cb(this.buffer);a.length=this.pos;return a},__class__:gm};var hm=function(){};k["haxe.io.Input"]=hm;hm.__name__="haxe.io.Input";hm.prototype={bigEndian:null,readByte:function(){throw new fm(null,null,{fileName:"haxe/io/Input.hx",lineNumber:53,className:"haxe.io.Input",methodName:"readByte"});},readBytes:function(a,b,c){var d=c,e=a.b;if(0>b||0>c||b+c>a.length)throw R.thrown(Nf.OutsideBounds);try{for(;0<d;)e[b]=this.readByte(),++b,--d}catch(g){if(sa.lastError= +g,!(R.caught(g).unwrap()instanceof Mj))throw g;}return c-d},readFullBytes:function(a,b,c){for(;0<c;){var d=this.readBytes(a,b,c);if(0==d)throw R.thrown(Nf.Blocked);b+=d;c-=d}},read:function(a){for(var b=new cb(new ArrayBuffer(a)),c=0;0<a;){var d=this.readBytes(b,c,a);if(0==d)throw R.thrown(Nf.Blocked);c+=d;a-=d}return b},readInt16:function(){var a=this.readByte(),b=this.readByte();a=this.bigEndian?b|a<<8:a|b<<8;return 0!=(a&32768)?a-65536:a},readUInt16:function(){var a=this.readByte(),b=this.readByte(); +return this.bigEndian?b|a<<8:a|b<<8},readInt32:function(){var a=this.readByte(),b=this.readByte(),c=this.readByte(),d=this.readByte();return this.bigEndian?d|c<<8|b<<16|a<<24:a|b<<8|c<<16|d<<24},readString:function(a,b){var c=new cb(new ArrayBuffer(a));this.readFullBytes(c,0,a);return c.getString(0,a,b)},__class__:hm};var im=function(a,b,c){null==b&&(b=0);null==c&&(c=a.length-b);if(0>b||0>c||b+c>a.length)throw R.thrown(Nf.OutsideBounds);this.b=a.b;this.pos=b;this.totlen=this.len=c};k["haxe.io.BytesInput"]= +im;im.__name__="haxe.io.BytesInput";im.__super__=hm;im.prototype=u(hm.prototype,{b:null,pos:null,len:null,totlen:null,readByte:function(){if(0==this.len)throw R.thrown(new Mj);this.len--;return this.b[this.pos++]},readBytes:function(a,b,c){if(0>b||0>c||b+c>a.length)throw R.thrown(Nf.OutsideBounds);if(0==this.len&&0<c)throw R.thrown(new Mj);this.len<c&&(c=this.len);var d=this.b;a=a.b;for(var e=0,g=c;e<g;){var f=e++;a[b+f]=d[this.pos+f]}this.pos+=c;this.len-=c;return c},__class__:im});var ju=E["haxe.io.Encoding"]= +{__ename__:"haxe.io.Encoding",__constructs__:null,UTF8:{_hx_name:"UTF8",_hx_index:0,__enum__:"haxe.io.Encoding",toString:v},RawNative:{_hx_name:"RawNative",_hx_index:1,__enum__:"haxe.io.Encoding",toString:v}};ju.__constructs__=[ju.UTF8,ju.RawNative];var Mj=function(){};k["haxe.io.Eof"]=Mj;Mj.__name__="haxe.io.Eof";Mj.prototype={toString:function(){return"Eof"},__class__:Mj};var Nf=E["haxe.io.Error"]={__ename__:"haxe.io.Error",__constructs__:null,Blocked:{_hx_name:"Blocked",_hx_index:0,__enum__:"haxe.io.Error", +toString:v},Overflow:{_hx_name:"Overflow",_hx_index:1,__enum__:"haxe.io.Error",toString:v},OutsideBounds:{_hx_name:"OutsideBounds",_hx_index:2,__enum__:"haxe.io.Error",toString:v},Custom:(N=function(a){return{_hx_index:3,e:a,__enum__:"haxe.io.Error",toString:v}},N._hx_name="Custom",N.__params__=["e"],N)};Nf.__constructs__=[Nf.Blocked,Nf.Overflow,Nf.OutsideBounds,Nf.Custom];var Vd=function(){};k["haxe.io.FPHelper"]=Vd;Vd.__name__="haxe.io.FPHelper";Vd.i32ToFloat=function(a){Vd.helper.setInt32(0,a, +!0);return Vd.helper.getFloat32(0,!0)};Vd.floatToI32=function(a){Vd.helper.setFloat32(0,a,!0);return Vd.helper.getInt32(0,!0)};Vd.i64ToDouble=function(a,b){Vd.helper.setInt32(0,a,!0);Vd.helper.setInt32(4,b,!0);return Vd.helper.getFloat64(0,!0)};Vd.doubleToI64=function(a){var b=Vd.i64tmp;Vd.helper.setFloat64(0,a,!0);b.low=Vd.helper.getInt32(0,!0);b.high=Vd.helper.getInt32(4,!0);return b};var Ye=function(a){switch(a){case ".":case "..":this.dir=a;this.file="";return}var b=a.lastIndexOf("/"),c=a.lastIndexOf("\\"); +b<c?(this.dir=F.substr(a,0,c),a=F.substr(a,c+1,null),this.backslash=!0):c<b?(this.dir=F.substr(a,0,b),a=F.substr(a,b+1,null)):this.dir=null;b=a.lastIndexOf(".");-1!=b?(this.ext=F.substr(a,b+1,null),this.file=F.substr(a,0,b)):(this.ext=null,this.file=a)};k["haxe.io.Path"]=Ye;Ye.__name__="haxe.io.Path";Ye.directory=function(a){a=new Ye(a);return null==a.dir?"":a.dir};Ye.join=function(a){for(var b=[],c=0;c<a.length;){var d=a[c];++c;null!=d&&""!=d&&b.push(d)}a=b;if(0==a.length)return"";d=a[0];b=1;for(c= +a.length;b<c;){var e=b++;d=Ye.addTrailingSlash(d);d+=a[e]}return Ye.normalize(d)};Ye.normalize=function(a){a=a.split("\\").join("/");if("/"==a)return"/";for(var b=[],c=0,d=a.split("/");c<d.length;){var e=d[c];++c;".."==e&&0<b.length&&".."!=b[b.length-1]?b.pop():""==e?(0<b.length||47==F.cca(a,0))&&b.push(e):"."!=e&&b.push(e)}a="";d=c=!1;e=0;for(b=b.join("/");e<b.length;){var g=b,f=e++,l=g.charCodeAt(f);55296<=l&&56319>=l&&(l=l-55232<<10|g.charCodeAt(f+1)&1023);g=l;65536<=g&&++e;switch(g){case 47:c? +(c=!1,d&&(a+="/",d=!1),a+=String.fromCodePoint(g)):d=!0;break;case 58:a+=":";c=!0;break;default:c=!1,d&&(a+="/",d=!1),a+=String.fromCodePoint(g)}}return a};Ye.addTrailingSlash=function(a){if(0==a.length)return"/";var b=a.lastIndexOf("/"),c=a.lastIndexOf("\\");return b<c?c!=a.length-1?a+"\\":a:b!=a.length-1?a+"/":a};Ye.prototype={dir:null,file:null,ext:null,backslash:null,__class__:Ye};var ue=function(a){this.current=0;this.array=a};k["haxe.iterators.ArrayIterator"]=ue;ue.__name__="haxe.iterators.ArrayIterator"; +ue.prototype={array:null,current:null,hasNext:function(){return this.current<this.array.length},next:function(){return this.array[this.current++]},__class__:ue};var fh=function(a){this.map=a;this.keys=a.keys()};k["haxe.iterators.MapKeyValueIterator"]=fh;fh.__name__="haxe.iterators.MapKeyValueIterator";fh.prototype={map:null,keys:null,hasNext:function(){return this.keys.hasNext()},next:function(){var a=this.keys.next();return{value:this.map.get(a),key:a}},__class__:fh};var uu={resolve:function(a,b){var c= +a.elementsNamed(b).next();if(null==c){if(a.nodeType==U.Document)a="Document";else{if(a.nodeType!=U.Element)throw R.thrown("Bad node type, expected Element but found "+(null==a.nodeType?"null":Ea.toString(a.nodeType)));a=a.nodeName}throw R.thrown(a+" is missing element "+b);}if(c.nodeType!=U.Document&&c.nodeType!=U.Element)throw R.thrown("Invalid nodeType "+(null==c.nodeType?"null":Ea.toString(c.nodeType)));return c}},Fu={resolve:function(a,b){return a.elementsNamed(b).hasNext()}},tu={__properties__:{get_innerData:"get_innerData"}, +get_innerData:function(a){if(a.nodeType!=U.Document&&a.nodeType!=U.Element)throw R.thrown("Bad node type, expected Element or Document but found "+(null==a.nodeType?"null":Ea.toString(a.nodeType)));var b=0,c=a.children;if(b>=c.length){if(a.nodeType==U.Document)var d="Document";else{if(a.nodeType!=U.Element)throw R.thrown("Bad node type, expected Element but found "+(null==a.nodeType?"null":Ea.toString(a.nodeType)));d=a.nodeName}throw R.thrown(d+" does not have data");}d=c[b++];if(b<c.length){var e= +c[b++];if(d.nodeType==U.PCData&&e.nodeType==U.CData){if(d.nodeType==U.Document||d.nodeType==U.Element)throw R.thrown("Bad node type, unexpected "+(null==d.nodeType?"null":Ea.toString(d.nodeType)));d=""==J.trim(d.nodeValue)}else d=!1;if(d){if(b>=c.length){if(e.nodeType==U.Document||e.nodeType==U.Element)throw R.thrown("Bad node type, unexpected "+(null==e.nodeType?"null":Ea.toString(e.nodeType)));return e.nodeValue}d=c[b++];if(d.nodeType==U.PCData){if(d.nodeType==U.Document||d.nodeType==U.Element)throw R.thrown("Bad node type, unexpected "+ +(null==d.nodeType?"null":Ea.toString(d.nodeType)));d=""==J.trim(d.nodeValue)}else d=!1;if(d&&b>=c.length){if(e.nodeType==U.Document||e.nodeType==U.Element)throw R.thrown("Bad node type, unexpected "+(null==e.nodeType?"null":Ea.toString(e.nodeType)));return e.nodeValue}}if(a.nodeType==U.Document)d="Document";else{if(a.nodeType!=U.Element)throw R.thrown("Bad node type, expected Element but found "+(null==a.nodeType?"null":Ea.toString(a.nodeType)));d=a.nodeName}throw R.thrown(d+" does not only have data"); +}if(d.nodeType!=U.PCData&&d.nodeType!=U.CData){if(a.nodeType==U.Document)d="Document";else{if(a.nodeType!=U.Element)throw R.thrown("Bad node type, expected Element but found "+(null==a.nodeType?"null":Ea.toString(a.nodeType)));d=a.nodeName}throw R.thrown(d+" does not have data");}if(d.nodeType==U.Document||d.nodeType==U.Element)throw R.thrown("Bad node type, unexpected "+(null==d.nodeType?"null":Ea.toString(d.nodeType)));return d.nodeValue}},ee=function(a,b,c){this.xml=b;this.message=a;this.position= +c;this.lineNumber=1;for(a=this.positionAtLine=0;a<c;){var d=a++;d=b.charCodeAt(d);10==d?(this.lineNumber++,this.positionAtLine=0):13!=d&&this.positionAtLine++}};k["haxe.xml.XmlParserException"]=ee;ee.__name__="haxe.xml.XmlParserException";ee.prototype={message:null,lineNumber:null,positionAtLine:null,position:null,xml:null,toString:function(){return O.getClass(this).__name__+": "+this.message+" at line "+this.lineNumber+" char "+this.positionAtLine},__class__:ee};var hh=function(){};k["haxe.xml.Parser"]= +hh;hh.__name__="haxe.xml.Parser";hh.parse=function(a,b){null==b&&(b=!1);var c=U.createDocument();hh.doParse(a,b,0,c);return c};hh.doParse=function(a,b,c,d){null==c&&(c=0);for(var e=null,g=1,f=1,l=null,t=0,m=0,h=0,p=new oc,k=1,r=-1;c<a.length;){var q=a.charCodeAt(c);switch(g){case 0:switch(q){case 9:case 10:case 13:case 32:break;default:g=f;continue}break;case 1:if(60==q)g=0,f=2;else{t=c;g=13;continue}break;case 2:switch(q){case 33:if(91==a.charCodeAt(c+1)){c+=2;if("CDATA["!=F.substr(a,c,6).toUpperCase())throw R.thrown(new ee("Expected <![CDATA[", +a,c));c+=5;g=17}else if(68==a.charCodeAt(c+1)||100==a.charCodeAt(c+1)){if("OCTYPE"!=F.substr(a,c+2,6).toUpperCase())throw R.thrown(new ee("Expected <!DOCTYPE",a,c));c+=8;g=16}else{if(45!=a.charCodeAt(c+1)||45!=a.charCodeAt(c+2))throw R.thrown(new ee("Expected \x3c!--",a,c));c+=2;g=15}t=c+1;break;case 47:if(null==d)throw R.thrown(new ee("Expected node name",a,c));t=c+1;g=0;f=10;break;case 63:g=14;t=c;break;default:g=3;t=c;continue}break;case 3:if(!(97<=q&&122>=q||65<=q&&90>=q||48<=q&&57>=q||58==q|| +46==q||95==q||45==q)){if(c==t)throw R.thrown(new ee("Expected node name",a,c));e=U.createElement(F.substr(a,t,c-t));d.addChild(e);++m;g=0;f=4;continue}break;case 4:switch(q){case 47:g=11;break;case 62:g=9;break;default:g=5;t=c;continue}break;case 5:if(!(97<=q&&122>=q||65<=q&&90>=q||48<=q&&57>=q||58==q||46==q||95==q||45==q)){if(t==c)throw R.thrown(new ee("Expected attribute name",a,c));l=F.substr(a,t,c-t);if(e.exists(l))throw R.thrown(new ee("Duplicate attribute ["+l+"]",a,c));g=0;f=6;continue}break; +case 6:if(61==q)g=0,f=7;else throw R.thrown(new ee("Expected =",a,c));break;case 7:switch(q){case 34:case 39:p=new oc;g=8;t=c+1;r=q;break;default:throw R.thrown(new ee('Expected "',a,c));}break;case 8:switch(q){case 38:k=c-t;p.b+=null==k?F.substr(a,t,null):F.substr(a,t,k);g=18;k=8;t=c+1;break;case 60:case 62:if(b)throw R.thrown(new ee("Invalid unescaped "+String.fromCodePoint(q)+" in attribute value",a,c));q==r&&(f=c-t,p.b+=null==f?F.substr(a,t,null):F.substr(a,t,f),f=p.b,p=new oc,e.set(l,f),g=0, +f=4);break;default:q==r&&(f=c-t,p.b+=null==f?F.substr(a,t,null):F.substr(a,t,f),f=p.b,p=new oc,e.set(l,f),g=0,f=4)}break;case 9:t=c=hh.doParse(a,b,c,e);g=1;break;case 10:if(!(97<=q&&122>=q||65<=q&&90>=q||48<=q&&57>=q||58==q||46==q||95==q||45==q)){if(t==c)throw R.thrown(new ee("Expected node name",a,c));f=F.substr(a,t,c-t);if(null==d||0!=d.nodeType)throw R.thrown(new ee("Unexpected </"+f+">, tag is not open",a,c));if(d.nodeType!=U.Element)throw R.thrown("Bad node type, expected Element but found "+ +(null==d.nodeType?"null":Ea.toString(d.nodeType)));if(f!=d.nodeName){if(d.nodeType!=U.Element)throw R.thrown("Bad node type, expected Element but found "+(null==d.nodeType?"null":Ea.toString(d.nodeType)));throw R.thrown(new ee("Expected </"+d.nodeName+">",a,c));}g=0;f=12;continue}break;case 11:if(62==q)g=1;else throw R.thrown(new ee("Expected >",a,c));break;case 12:if(62==q)return 0==m&&d.addChild(U.createPCData("")),c;throw R.thrown(new ee("Expected >",a,c));case 13:60==q?(f=c-t,p.b+=null==f?F.substr(a, +t,null):F.substr(a,t,f),f=U.createPCData(p.b),p=new oc,d.addChild(f),++m,g=0,f=2):38==q&&(k=c-t,p.b+=null==k?F.substr(a,t,null):F.substr(a,t,k),g=18,k=13,t=c+1);break;case 14:63==q&&62==a.charCodeAt(c+1)&&(++c,g=F.substr(a,t+1,c-t-2),d.addChild(U.createProcessingInstruction(g)),++m,g=1);break;case 15:45==q&&45==a.charCodeAt(c+1)&&62==a.charCodeAt(c+2)&&(d.addChild(U.createComment(F.substr(a,t,c-t))),++m,c+=2,g=1);break;case 16:91==q?++h:93==q?--h:62==q&&0==h&&(d.addChild(U.createDocType(F.substr(a, +t,c-t))),++m,g=1);break;case 17:93==q&&93==a.charCodeAt(c+1)&&62==a.charCodeAt(c+2)&&(g=U.createCData(F.substr(a,t,c-t)),d.addChild(g),++m,c+=2,g=1);break;case 18:if(59==q){t=F.substr(a,t,c-t);if(35==t.charCodeAt(0))t=120==t.charCodeAt(1)?n.parseInt("0"+F.substr(t,1,t.length-1)):n.parseInt(F.substr(t,1,t.length-1)),p.b+=String.fromCodePoint(t);else if(Object.prototype.hasOwnProperty.call(hh.escapes.h,t))p.b+=n.string(hh.escapes.h[t]);else{if(b)throw R.thrown(new ee("Undefined entity: "+t,a,c));p.b+= +n.string("&"+t+";")}t=c+1;g=k}else if(!(97<=q&&122>=q||65<=q&&90>=q||48<=q&&57>=q||58==q||46==q||95==q||45==q)&&35!=q){if(b)throw R.thrown(new ee("Invalid character in entity: "+String.fromCodePoint(q),a,c));p.b+=String.fromCodePoint(38);g=c-t;p.b+=null==g?F.substr(a,t,null):F.substr(a,t,g);--c;t=c+1;g=k}}++c}1==g&&(t=c,g=13);if(13==g){if(0==d.nodeType){if(d.nodeType!=U.Element)throw R.thrown("Bad node type, expected Element but found "+(null==d.nodeType?"null":Ea.toString(d.nodeType)));throw R.thrown(new ee("Unclosed node <"+ +d.nodeName+">",a,c));}if(c!=t||0==m)k=c-t,p.b+=null==k?F.substr(a,t,null):F.substr(a,t,k),d.addChild(U.createPCData(p.b));return c}if(!b&&18==g&&13==k)return p.b+=String.fromCodePoint(38),k=c-t,p.b+=null==k?F.substr(a,t,null):F.substr(a,t,k),d.addChild(U.createPCData(p.b)),c;throw R.thrown(new ee("Unexpected end",a,c));};var nj=function(a){this.output=new oc;this.pretty=a};k["haxe.xml.Printer"]=nj;nj.__name__="haxe.xml.Printer";nj.print=function(a,b){null==b&&(b=!1);b=new nj(b);b.writeNode(a,""); +return b.output.b};nj.prototype={output:null,pretty:null,writeNode:function(a,b){switch(a.nodeType){case 0:this.output.b+=n.string(b+"<");if(a.nodeType!=U.Element)throw R.thrown("Bad node type, expected Element but found "+(null==a.nodeType?"null":Ea.toString(a.nodeType)));this.output.b+=n.string(a.nodeName);for(var c=a.attributes();c.hasNext();){var d=c.next();this.output.b+=n.string(" "+d+'="');d=J.htmlEscape(a.get(d),!0);this.output.b+=n.string(d);this.output.b+='"'}if(this.hasChildren(a)){this.output.b+= +">";this.pretty&&(this.output.b+="\n");if(a.nodeType!=U.Document&&a.nodeType!=U.Element)throw R.thrown("Bad node type, expected Element or Document but found "+(null==a.nodeType?"null":Ea.toString(a.nodeType)));c=0;for(d=a.children;c<d.length;){var e=d[c++];this.writeNode(e,this.pretty?b+"\t":b)}this.output.b+=n.string(b+"</");if(a.nodeType!=U.Element)throw R.thrown("Bad node type, expected Element but found "+(null==a.nodeType?"null":Ea.toString(a.nodeType)));this.output.b+=n.string(a.nodeName); +this.output.b+=">"}else this.output.b+="/>";this.pretty&&(this.output.b+="\n");break;case 1:if(a.nodeType==U.Document||a.nodeType==U.Element)throw R.thrown("Bad node type, unexpected "+(null==a.nodeType?"null":Ea.toString(a.nodeType)));a=a.nodeValue;0!=a.length&&(d=b+J.htmlEscape(a),this.output.b+=n.string(d),this.pretty&&(this.output.b+="\n"));break;case 2:this.output.b+=n.string(b+"<![CDATA[");if(a.nodeType==U.Document||a.nodeType==U.Element)throw R.thrown("Bad node type, unexpected "+(null==a.nodeType? +"null":Ea.toString(a.nodeType)));this.output.b+=n.string(a.nodeValue);this.output.b+="]]\x3e";this.pretty&&(this.output.b+="\n");break;case 3:if(a.nodeType==U.Document||a.nodeType==U.Element)throw R.thrown("Bad node type, unexpected "+(null==a.nodeType?"null":Ea.toString(a.nodeType)));a=a.nodeValue;a=a.replace(/[\n\r\t]+/g,"");this.output.b+=null==b?"null":""+b;d=J.trim("\x3c!--"+a+"--\x3e");this.output.b+=n.string(d);this.pretty&&(this.output.b+="\n");break;case 4:if(a.nodeType==U.Document||a.nodeType== +U.Element)throw R.thrown("Bad node type, unexpected "+(null==a.nodeType?"null":Ea.toString(a.nodeType)));this.output.b+=n.string("<!DOCTYPE "+a.nodeValue+">");this.pretty&&(this.output.b+="\n");break;case 5:if(a.nodeType==U.Document||a.nodeType==U.Element)throw R.thrown("Bad node type, unexpected "+(null==a.nodeType?"null":Ea.toString(a.nodeType)));this.output.b+=n.string("<?"+a.nodeValue+"?>");this.pretty&&(this.output.b+="\n");break;case 6:if(a.nodeType!=U.Document&&a.nodeType!=U.Element)throw R.thrown("Bad node type, expected Element or Document but found "+ +(null==a.nodeType?"null":Ea.toString(a.nodeType)));c=0;for(d=a.children;c<d.length;)e=d[c++],this.writeNode(e,b)}},hasChildren:function(a){if(a.nodeType!=U.Document&&a.nodeType!=U.Element)throw R.thrown("Bad node type, expected Element or Document but found "+(null==a.nodeType?"null":Ea.toString(a.nodeType)));var b=0;for(a=a.children;b<a.length;){var c=a[b++];switch(c.nodeType){case 0:case 1:return!0;case 2:case 3:if(c.nodeType==U.Document||c.nodeType==U.Element)throw R.thrown("Bad node type, unexpected "+ +(null==c.nodeType?"null":Ea.toString(c.nodeType)));if(0!=J.ltrim(c.nodeValue).length)return!0}}return!1},__class__:nj};var Gi=E["haxe.zip.ExtraField"]={__ename__:"haxe.zip.ExtraField",__constructs__:null,FUnknown:(N=function(a,b){return{_hx_index:0,tag:a,bytes:b,__enum__:"haxe.zip.ExtraField",toString:v}},N._hx_name="FUnknown",N.__params__=["tag","bytes"],N),FInfoZipUnicodePath:(N=function(a,b){return{_hx_index:1,name:a,crc:b,__enum__:"haxe.zip.ExtraField",toString:v}},N._hx_name="FInfoZipUnicodePath", +N.__params__=["name","crc"],N),FUtf8:{_hx_name:"FUtf8",_hx_index:2,__enum__:"haxe.zip.ExtraField",toString:v}};Gi.__constructs__=[Gi.FUnknown,Gi.FInfoZipUnicodePath,Gi.FUtf8];var jg=E["haxe.zip.Huffman"]={__ename__:"haxe.zip.Huffman",__constructs__:null,Found:(N=function(a){return{_hx_index:0,i:a,__enum__:"haxe.zip.Huffman",toString:v}},N._hx_name="Found",N.__params__=["i"],N),NeedBit:(N=function(a,b){return{_hx_index:1,left:a,right:b,__enum__:"haxe.zip.Huffman",toString:v}},N._hx_name="NeedBit", +N.__params__=["left","right"],N),NeedBits:(N=function(a,b){return{_hx_index:2,n:a,table:b,__enum__:"haxe.zip.Huffman",toString:v}},N._hx_name="NeedBits",N.__params__=["n","table"],N)};jg.__constructs__=[jg.Found,jg.NeedBit,jg.NeedBits];var so=function(){};k["haxe.zip.HuffTools"]=so;so.__name__="haxe.zip.HuffTools";so.prototype={treeDepth:function(a){switch(a._hx_index){case 0:return 0;case 1:var b=a.right;a=this.treeDepth(a.left);b=this.treeDepth(b);return 1+(a<b?a:b);case 2:throw R.thrown("assert"); +}},treeCompress:function(a){var b=this.treeDepth(a);if(0==b)return a;if(1==b){if(1==a._hx_index)return b=a.right,jg.NeedBit(this.treeCompress(a.left),this.treeCompress(b));throw R.thrown("assert");}for(var c=[],d=0,e=1<<b;d<e;)d++,c.push(jg.Found(-1));this.treeWalk(c,0,0,b,a);return jg.NeedBits(b,c)},treeWalk:function(a,b,c,d,e){if(1==e._hx_index){var g=e.left,f=e.right;0<d?(this.treeWalk(a,b,c+1,d-1,g),this.treeWalk(a,b|1<<c,c+1,d-1,f)):a[b]=this.treeCompress(e)}else a[b]=this.treeCompress(e)},treeMake:function(a, +b,c,d){if(d>b)throw R.thrown("Invalid huffman");var e=c<<5|d;if(a.h.hasOwnProperty(e))return jg.Found(a.h[e]);c<<=1;++d;return jg.NeedBit(this.treeMake(a,b,c,d),this.treeMake(a,b,c|1,d))},make:function(a,b,c,d){if(1==c)return jg.NeedBit(jg.Found(0),jg.Found(0));var e=[],g=[];if(32<d)throw R.thrown("Invalid huffman");for(var f=0,l=d;f<l;)f++,e.push(0),g.push(0);f=0;for(l=c;f<l;){var t=f++;t=a[t+b];if(t>=d)throw R.thrown("Invalid huffman");e[t]++}var m=0;f=1;for(l=d-1;f<l;)t=f++,m=m+e[t]<<1,g[t]=m; +e=new Sa;f=0;for(l=c;f<l;)t=f++,c=a[t+b],0!=c&&(m=g[c-1],g[c-1]=m+1,e.h[m<<5|c]=t);return this.treeCompress(jg.NeedBit(this.treeMake(e,d,0,1),this.treeMake(e,d,1,1)))},__class__:so};var to=function(a){this.buffer=new cb(new ArrayBuffer(65536));this.pos=0;a&&(this.crc=new Ei)};k["haxe.zip._InflateImpl.Window"]=to;to.__name__="haxe.zip._InflateImpl.Window";to.prototype={buffer:null,pos:null,crc:null,slide:function(){null!=this.crc&&this.crc.update(this.buffer,0,32768);var a=new cb(new ArrayBuffer(65536)); +this.pos-=32768;a.blit(0,this.buffer,32768,this.pos);this.buffer=a},addBytes:function(a,b,c){65536<this.pos+c&&this.slide();this.buffer.blit(this.pos,a,b,c);this.pos+=c},addByte:function(a){65536==this.pos&&this.slide();this.buffer.b[this.pos]=a&255;this.pos++},getLastChar:function(){return this.buffer.b[this.pos-1]},available:function(){return this.pos},checksum:function(){null!=this.crc&&this.crc.update(this.buffer,0,this.pos);return this.crc},__class__:to};var Md=E["haxe.zip._InflateImpl.State"]= +{__ename__:"haxe.zip._InflateImpl.State",__constructs__:null,Head:{_hx_name:"Head",_hx_index:0,__enum__:"haxe.zip._InflateImpl.State",toString:v},Block:{_hx_name:"Block",_hx_index:1,__enum__:"haxe.zip._InflateImpl.State",toString:v},CData:{_hx_name:"CData",_hx_index:2,__enum__:"haxe.zip._InflateImpl.State",toString:v},Flat:{_hx_name:"Flat",_hx_index:3,__enum__:"haxe.zip._InflateImpl.State",toString:v},Crc:{_hx_name:"Crc",_hx_index:4,__enum__:"haxe.zip._InflateImpl.State",toString:v},Dist:{_hx_name:"Dist", +_hx_index:5,__enum__:"haxe.zip._InflateImpl.State",toString:v},DistOne:{_hx_name:"DistOne",_hx_index:6,__enum__:"haxe.zip._InflateImpl.State",toString:v},Done:{_hx_name:"Done",_hx_index:7,__enum__:"haxe.zip._InflateImpl.State",toString:v}};Md.__constructs__=[Md.Head,Md.Block,Md.CData,Md.Flat,Md.Crc,Md.Dist,Md.DistOne,Md.Done];var ze=function(a,b,c){null==c&&(c=!0);null==b&&(b=!0);this.isFinal=!1;this.htools=new so;this.huffman=this.buildFixedHuffman();this.huffdist=null;this.dist=this.len=0;this.state= +b?Md.Head:Md.Block;this.input=a;this.needed=this.nbits=this.bits=0;this.output=null;this.outpos=0;this.lengths=[];this.lengths.push(-1);this.lengths.push(-1);this.lengths.push(-1);this.lengths.push(-1);this.lengths.push(-1);this.lengths.push(-1);this.lengths.push(-1);this.lengths.push(-1);this.lengths.push(-1);this.lengths.push(-1);this.lengths.push(-1);this.lengths.push(-1);this.lengths.push(-1);this.lengths.push(-1);this.lengths.push(-1);this.lengths.push(-1);this.lengths.push(-1);this.lengths.push(-1); +this.lengths.push(-1);this.window=new to(c)};k["haxe.zip.InflateImpl"]=ze;ze.__name__="haxe.zip.InflateImpl";ze.prototype={nbits:null,bits:null,state:null,isFinal:null,huffman:null,huffdist:null,htools:null,len:null,dist:null,needed:null,output:null,outpos:null,input:null,lengths:null,window:null,buildFixedHuffman:function(){if(null!=ze.FIXED_HUFFMAN)return ze.FIXED_HUFFMAN;for(var a=[],b=0;288>b;){var c=b++;a.push(143>=c?8:255>=c?9:279>=c?7:8)}ze.FIXED_HUFFMAN=this.htools.make(a,0,288,10);return ze.FIXED_HUFFMAN}, +readBytes:function(a,b,c){this.needed=c;this.outpos=b;this.output=a;if(0<c)for(;this.inflateLoop(););return c-this.needed},getBits:function(a){for(;this.nbits<a;)this.bits|=this.input.readByte()<<this.nbits,this.nbits+=8;var b=this.bits&(1<<a)-1;this.nbits-=a;this.bits>>=a;return b},getBit:function(){0==this.nbits&&(this.nbits=8,this.bits=this.input.readByte());var a=1==(this.bits&1);this.nbits--;this.bits>>=1;return a},getRevBits:function(a){return 0==a?0:this.getBit()?1<<a-1|this.getRevBits(a-1): +this.getRevBits(a-1)},resetBits:function(){this.nbits=this.bits=0},addBytes:function(a,b,c){this.window.addBytes(a,b,c);this.output.blit(this.outpos,a,b,c);this.needed-=c;this.outpos+=c},addByte:function(a){this.window.addByte(a);this.output.b[this.outpos]=a&255;this.needed--;this.outpos++},addDistOne:function(a){for(var b=this.window.getLastChar(),c=0;c<a;)c++,this.addByte(b)},addDist:function(a,b){this.addBytes(this.window.buffer,this.window.pos-a,b)},applyHuffman:function(a){switch(a._hx_index){case 0:var b= +a.i;return b;case 1:return b=a.left,a=a.right,this.applyHuffman(this.getBit()?a:b);case 2:return b=a.n,this.applyHuffman(a.table[this.getBits(b)])}},inflateLengths:function(a,b){for(var c=0,d=0;c<b;){var e=this.applyHuffman(this.huffman);switch(e){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 15:d=e;a[c]=e;++c;break;case 16:e=c+3+this.getBits(2);if(e>b)throw R.thrown("Invalid data");for(;c<e;)a[c]=d,++c;break;case 17:c+=3+this.getBits(3); +if(c>b)throw R.thrown("Invalid data");break;case 18:c+=11+this.getBits(7);if(c>b)throw R.thrown("Invalid data");break;default:throw R.thrown("Invalid data");}}},inflateLoop:function(){switch(this.state._hx_index){case 0:var a=this.input.readByte();if(8!=(a&15))throw R.thrown("Invalid data");var b=this.input.readByte(),c=0!=(b&32);if(0!=((a<<8)+b)%31)throw R.thrown("Invalid data");if(c)throw R.thrown("Unsupported dictionary");this.state=Md.Block;return!0;case 1:switch(this.isFinal=this.getBit(),this.getBits(2)){case 0:this.len= +this.input.readUInt16();if(this.input.readUInt16()!=65535-this.len)throw R.thrown("Invalid data");this.state=Md.Flat;a=this.inflateLoop();this.resetBits();return a;case 1:return this.huffman=this.buildFixedHuffman(),this.huffdist=null,this.state=Md.CData,!0;case 2:a=this.getBits(5)+257;b=this.getBits(5)+1;var d=this.getBits(4)+4;c=0;for(var e=d;c<e;){var g=c++;this.lengths[ze.CODE_LENGTHS_POS[g]]=this.getBits(3)}c=d;for(e=19;c<e;)g=c++,this.lengths[ze.CODE_LENGTHS_POS[g]]=0;this.huffman=this.htools.make(this.lengths, +0,19,8);d=[];c=0;for(e=a+b;c<e;)c++,d.push(0);this.inflateLengths(d,a+b);this.huffdist=this.htools.make(d,a,b,16);this.huffman=this.htools.make(d,0,a,16);this.state=Md.CData;return!0;default:throw R.thrown("Invalid data");}case 2:b=this.applyHuffman(this.huffman);if(256>b)return this.addByte(b),0<this.needed;if(256==b)this.state=this.isFinal?Md.Crc:Md.Block;else{b-=257;a=ze.LEN_EXTRA_BITS_TBL[b];if(-1==a)throw R.thrown("Invalid data");this.len=ze.LEN_BASE_VAL_TBL[b]+this.getBits(a);b=null==this.huffdist? +this.getRevBits(5):this.applyHuffman(this.huffdist);a=ze.DIST_EXTRA_BITS_TBL[b];if(-1==a)throw R.thrown("Invalid data");this.dist=ze.DIST_BASE_VAL_TBL[b]+this.getBits(a);if(this.dist>this.window.available())throw R.thrown("Invalid data");this.state=1==this.dist?Md.DistOne:Md.Dist}return!0;case 3:return a=this.len<this.needed?this.len:this.needed,b=this.input.read(a),this.len-=a,this.addBytes(b,0,a),0==this.len&&(this.state=this.isFinal?Md.Crc:Md.Block),0<this.needed;case 4:a=this.window.checksum(); +if(null==a)return this.state=Md.Done,!0;b=Ei.read(this.input);if(!a.equals(b))throw R.thrown("Invalid CRC");this.state=Md.Done;return!0;case 5:for(;0<this.len&&0<this.needed;)a=this.len<this.dist?this.len:this.dist,a=this.needed<a?this.needed:a,this.addDist(this.dist,a),this.len-=a;0==this.len&&(this.state=Md.CData);return 0<this.needed;case 6:return a=this.len<this.needed?this.len:this.needed,this.addDistOne(a),this.len-=a,0==this.len&&(this.state=Md.CData),0<this.needed;case 7:return!1}},__class__:ze}; +var Nj=function(a){this.i=a};k["haxe.zip.Reader"]=Nj;Nj.__name__="haxe.zip.Reader";Nj.readZip=function(a){return(new Nj(a)).read()};Nj.prototype={i:null,readZipDate:function(){var a=this.i.readUInt16(),b=a>>11&31,c=a>>5&63;a&=31;var d=this.i.readUInt16();return new Date((d>>9)+1980,(d>>5&15)-1,d&31,b,c,a<<1)},readExtraFields:function(a){for(var b=new id;0<a;){if(4>a)throw R.thrown("Invalid extra fields data");var c=this.i.readUInt16(),d=this.i.readUInt16();if(a<d)throw R.thrown("Invalid extra fields data"); +if(28789==c){var e=this.i.readByte();if(1!=e){var g=new gm;g.addByte(e);g.add(this.i.read(d-1));b.add(Gi.FUnknown(c,g.getBytes()))}else c=this.i.readInt32(),e=this.i.read(d-5).toString(),b.add(Gi.FInfoZipUnicodePath(e,c))}else b.add(Gi.FUnknown(c,this.i.read(d)));a-=4+d}return b},readEntryHeader:function(){var a=this.i,b=a.readInt32();if(33639248==b||101010256==b)return null;if(67324752!=b)throw R.thrown("Invalid Zip Data");a.readUInt16();b=a.readUInt16();var c=0!=(b&2048);if(0!=(b&63473))throw R.thrown("Unsupported flags "+ +b);var d=a.readUInt16(),e=0!=d;if(e&&8!=d)throw R.thrown("Unsupported compression "+d);d=this.readZipDate();var g=a.readInt32(),f=a.readInt32(),l=a.readInt32(),t=a.readInt16(),m=a.readInt16();a=a.readString(t);m=this.readExtraFields(m);c&&m.push(Gi.FUtf8);0!=(b&8)&&(g=null);return{fileName:a,fileSize:l,fileTime:d,compressed:e,dataSize:f,data:null,crc32:g,extraFields:m}},read:function(){for(var a=new id,b=null;;){var c=this.readEntryHeader();if(null==c)break;if(null==c.crc32){if(c.compressed){null== +b&&(b=new cb(new ArrayBuffer(65536)));for(var d=new gm,e=new ze(this.i,!1,!1);;){var g=e.readBytes(b,0,65536);d.addBytes(b,0,g);if(65536>g)break}c.data=d.getBytes()}else c.data=this.i.read(c.dataSize);c.crc32=this.i.readInt32();134695760==c.crc32&&(c.crc32=this.i.readInt32());c.dataSize=this.i.readInt32();c.fileSize=this.i.readInt32();c.dataSize=c.fileSize;c.compressed=!1}else c.data=this.i.read(c.dataSize);a.add(c)}return a},__class__:Nj};var O=function(){};k["js.Boot"]=O;O.__name__="js.Boot";O.getClass= +function(a){if(null==a)return null;if(a instanceof Array)return Array;var b=a.__class__;if(null!=b)return b;a=O.__nativeClassName(a);return null!=a?O.__resolveNativeClass(a):null};O.__string_rec=function(a,b){if(null==a)return"null";if(5<=b.length)return"<...>";var c=typeof a;"function"==c&&(a.__name__||a.__ename__)&&(c="object");switch(c){case "function":return"<function>";case "object":if(a.__enum__){var d=E[a.__enum__].__constructs__[a._hx_index];c=d._hx_name;if(d.__params__){b+="\t";var e=[], +g=0;for(d=d.__params__;g<d.length;){var f=d[g];g+=1;e.push(O.__string_rec(a[f],b))}return c+"("+e.join(",")+")"}return c}if(a instanceof Array){c="[";b+="\t";e=0;for(g=a.length;e<g;)d=e++,c+=(0<d?",":"")+O.__string_rec(a[d],b);return c+"]"}try{e=a.toString}catch(l){return sa.lastError=l,"???"}if(null!=e&&e!=Object.toString&&"function"==typeof e&&(c=a.toString(),"[object Object]"!=c))return c;c="{\n";b+="\t";e=null!=a.hasOwnProperty;g=null;for(g in a)e&&!a.hasOwnProperty(g)||"prototype"==g||"__class__"== +g||"__super__"==g||"__interfaces__"==g||"__properties__"==g||(2!=c.length&&(c+=", \n"),c+=b+g+" : "+O.__string_rec(a[g],b));b=b.substring(1);return c+("\n"+b+"}");case "string":return a;default:return String(a)}};O.__interfLoop=function(a,b){if(null==a)return!1;if(a==b)return!0;var c=a.__interfaces__;if(null!=c)for(var d=0,e=c.length;d<e;){var g=d++;g=c[g];if(g==b||O.__interfLoop(g,b))return!0}return O.__interfLoop(a.__super__,b)};O.__instanceof=function(a,b){if(null==b)return!1;switch(b){case Array:return a instanceof +Array;case hu:return"boolean"==typeof a;case Gu:return null!=a;case gu:return"number"==typeof a;case ui:return"number"==typeof a?(a|0)===a:!1;case String:return"string"==typeof a;default:if(null!=a)if("function"==typeof b){if(O.__downcastCheck(a,b))return!0}else{if("object"==typeof b&&O.__isNativeObj(b)&&a instanceof b)return!0}else return!1;return b==yt&&null!=a.__name__||b==xu&&null!=a.__ename__?!0:null!=a.__enum__?E[a.__enum__]==b:!1}};O.__downcastCheck=function(a,b){return a instanceof b?!0:b.__isInterface__? +O.__interfLoop(O.getClass(a),b):!1};O.__implements=function(a,b){return O.__interfLoop(O.getClass(a),b)};O.__cast=function(a,b){if(null==a||O.__instanceof(a,b))return a;throw R.thrown("Cannot cast "+n.string(a)+" to "+n.string(b));};O.__nativeClassName=function(a){a=O.__toStr.call(a).slice(8,-1);return"Object"==a||"Function"==a||"Math"==a||"JSON"==a?null:a};O.__isNativeObj=function(a){return null!=O.__nativeClassName(a)};O.__resolveNativeClass=function(a){return Q[a]};var Tg=function(){};k["js.Browser"]= +Tg;Tg.__name__="js.Browser";Tg.__properties__={get_supported:"get_supported"};Tg.get_supported=function(){return"undefined"!=typeof window&&"undefined"!=typeof window.location?"string"==typeof window.location.protocol:!1};Tg.getLocalStorage=function(){try{var a=window.localStorage;a.getItem("");if(0==a.length){var b="_hx_"+Math.random();a.setItem(b,b);a.removeItem(b)}return a}catch(c){return sa.lastError=c,null}};var zt=function(){};k["js.html._CanvasElement.CanvasUtil"]=zt;zt.__name__="js.html._CanvasElement.CanvasUtil"; +zt.getContextWebGL=function(a,b){var c=a.getContext("webgl",b);if(null!=c)return c;c=a.getContext("experimental-webgl",b);return null!=c?c:null};var At=function(){};k["js.lib._ArrayBuffer.ArrayBufferCompat"]=At;At.__name__="js.lib._ArrayBuffer.ArrayBufferCompat";At.sliceImpl=function(a,b){a=new Uint8Array(this,a,null==b?null:b-a);b=new Uint8Array(a.byteLength);b.set(a);return b.buffer};var uo=function(a){this.gameDeviceCache=new Sa;this.parent=a;this.nextUpdate=this.lastUpdate=this.currentUpdate= +0;this.framePeriod=-1;re.init();this.accelerometer=Of.registerSensor(ku.ACCELEROMETER,0)};k["lime._internal.backend.html5.HTML5Application"]=uo;uo.__name__="lime._internal.backend.html5.HTML5Application";uo.prototype={accelerometer:null,currentUpdate:null,deltaTime:null,framePeriod:null,gameDeviceCache:null,hidden:null,lastUpdate:null,nextUpdate:null,parent:null,convertKeyCode:function(a){if(65<=a&&90>=a)return a+32;switch(a){case 12:return 1073741980;case 16:return 1073742049;case 17:return 1073742048; +case 18:return 1073742050;case 19:return 1073741896;case 20:return 1073741881;case 33:return 1073741899;case 34:return 1073741902;case 35:return 1073741901;case 36:return 1073741898;case 37:return 1073741904;case 38:return 1073741906;case 39:return 1073741903;case 40:return 1073741905;case 41:return 1073741943;case 43:return 1073741940;case 44:return 1073741894;case 45:return 1073741897;case 46:return 127;case 91:return 1073742051;case 92:return 1073742055;case 93:return 1073742055;case 95:return 1073742106; +case 96:return 1073741922;case 97:return 1073741913;case 98:return 1073741914;case 99:return 1073741915;case 100:return 1073741916;case 101:return 1073741917;case 102:return 1073741918;case 103:return 1073741919;case 104:return 1073741920;case 105:return 1073741921;case 106:return 1073741909;case 107:return 1073741911;case 108:return 1073741923;case 109:return 1073741910;case 110:return 1073741923;case 111:return 1073741908;case 112:return 1073741882;case 113:return 1073741883;case 114:return 1073741884; +case 115:return 1073741885;case 116:return 1073741886;case 117:return 1073741887;case 118:return 1073741888;case 119:return 1073741889;case 120:return 1073741890;case 121:return 1073741891;case 122:return 1073741892;case 123:return 1073741893;case 124:return 1073741928;case 125:return 1073741929;case 126:return 1073741930;case 127:return 1073741931;case 128:return 1073741932;case 129:return 1073741933;case 130:return 1073741934;case 131:return 1073741935;case 132:return 1073741936;case 133:return 1073741937; +case 134:return 1073741938;case 135:return 1073741939;case 144:return 1073741907;case 145:return 1073741895;case 160:return 94;case 161:return 33;case 163:return 35;case 164:return 36;case 166:return 1073742094;case 167:return 1073742095;case 168:return 1073742097;case 169:return 41;case 170:return 42;case 171:return 96;case 172:return 1073741898;case 173:return 45;case 174:return 1073741953;case 175:return 1073741952;case 176:return 1073742082;case 177:return 1073742083;case 178:return 1073742084; +case 179:return 1073742085;case 180:return 1073742089;case 181:return 1073742086;case 182:return 1073741953;case 183:return 1073741952;case 186:return 59;case 187:return 61;case 188:return 44;case 189:return 45;case 190:return 46;case 191:return 47;case 192:return 96;case 193:return 63;case 194:return 1073741923;case 219:return 91;case 220:return 92;case 221:return 93;case 222:return 39;case 223:return 96;case 224:return 1073742051;case 226:return 92}return a},exec:function(){window.addEventListener("keydown", +q(this,this.handleKeyEvent),!1);window.addEventListener("keyup",q(this,this.handleKeyEvent),!1);window.addEventListener("focus",q(this,this.handleWindowEvent),!1);window.addEventListener("blur",q(this,this.handleWindowEvent),!1);window.addEventListener("resize",q(this,this.handleWindowEvent),!1);window.addEventListener("beforeunload",q(this,this.handleWindowEvent),!1);Object.prototype.hasOwnProperty.call(window,"Accelerometer")&&window.addEventListener("devicemotion",q(this,this.handleSensorEvent), +!1);CanvasRenderingContext2D.prototype.isPointInStroke||(CanvasRenderingContext2D.prototype.isPointInStroke=function(a,b,c){return!1});CanvasRenderingContext2D.prototype.isPointInPath||(CanvasRenderingContext2D.prototype.isPointInPath=function(a,b,c){return!1});0=="performance"in window&&(window.performance={});if(0=="now"in window.performance){var a=Date.now();performance.timing&&performance.timing.navigationStart&&(a=performance.timing.navigationStart);window.performance.now=function(){return Date.now()- +a}}for(var b=0,c=["ms","moz","webkit","o"],d=0;d<c.length&&!window.requestAnimationFrame;++d)window.requestAnimationFrame=window[c[d]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[c[d]+"CancelAnimationFrame"]||window[c[d]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(a,c){var d=(new Date).getTime(),e=Math.max(0,16-(d-b));c=window.setTimeout(function(){a(d+e)},e);b=d+e;return c});window.cancelAnimationFrame||(window.cancelAnimationFrame= +function(a){clearTimeout(a)});window.requestAnimFrame=window.requestAnimationFrame;this.lastUpdate=(new Date).getTime();this.handleApplicationEvent();return 0},exit:function(){},handleApplicationEvent:function(a){a=0;for(var b=this.parent.__windows;a<b.length;){var c=b[a];++a;c.__backend.updateSize()}this.updateGameDevices();this.currentUpdate=(new Date).getTime();if(this.currentUpdate>=this.nextUpdate){this.deltaTime=this.currentUpdate-this.lastUpdate;a=0;for(b=this.parent.__windows;a<b.length;)c= +b[a],++a,this.parent.onUpdate.dispatch(this.deltaTime|0),null!=c.context&&c.onRender.dispatch(c.context);this.nextUpdate=0>this.framePeriod?this.currentUpdate:this.currentUpdate-this.currentUpdate%this.framePeriod+this.framePeriod;this.lastUpdate=this.currentUpdate}window.requestAnimationFrame(q(this,this.handleApplicationEvent))},handleKeyEvent:function(a){if(null!=this.parent.__window){switch(a.keyCode){case 32:case 37:case 38:case 39:case 40:a.preventDefault()}var b=this.convertKeyCode(null!=a.keyCode? +a.keyCode:a.which),c=(a.shiftKey?3:0)|(a.ctrlKey?192:0)|(a.altKey?768:0)|(a.metaKey?3072:0);"keydown"==a.type?(this.parent.__window.onKeyDown.dispatch(b,c),this.parent.__window.onKeyDown.canceled&&a.cancelable&&a.preventDefault()):(this.parent.__window.onKeyUp.dispatch(b,c),this.parent.__window.onKeyUp.canceled&&a.cancelable&&a.preventDefault())}},handleSensorEvent:function(a){this.accelerometer.onUpdate.dispatch(a.accelerationIncludingGravity.x,a.accelerationIncludingGravity.y,a.accelerationIncludingGravity.z)}, +handleWindowEvent:function(a){if(null!=this.parent.__window)switch(a.type){case "blur":this.hidden||(this.parent.__window.onFocusOut.dispatch(),this.parent.__window.onDeactivate.dispatch(),this.hidden=!0);break;case "focus":this.hidden&&(this.parent.__window.onFocusIn.dispatch(),this.parent.__window.onActivate.dispatch(),this.hidden=!1);break;case "resize":this.parent.__window.__backend.handleResizeEvent(a);break;case "visibilitychange":window.document.hidden?this.hidden||(this.parent.__window.onFocusOut.dispatch(), +this.parent.__window.onDeactivate.dispatch(),this.hidden=!0):this.hidden&&(this.parent.__window.onFocusIn.dispatch(),this.parent.__window.onActivate.dispatch(),this.hidden=!1)}},updateGameDevices:function(){var a=Tc.__getDeviceData();if(null!=a)for(var b,c,d,e,g,f=0,l=a.length;f<l;)if(b=f++,e=a[b],null!=e){if(!this.gameDeviceCache.h.hasOwnProperty(b)){g=new vo;g.id=b;g.connected=e.connected;c=0;for(d=e.buttons.length;c<d;){var t=c++;g.buttons.push(e.buttons[t].value)}c=0;for(d=e.axes.length;c<d;)t= +c++,g.axes.push(e.axes[t]);"standard"==e.mapping&&(g.isGamepad=!0);this.gameDeviceCache.h[b]=g;e.connected&&(Tc.__connect(b),g.isGamepad&&Dd.__connect(b))}g=this.gameDeviceCache.h[b];d=Tc.devices.h[b];c=Dd.devices.h[b];if(e.connected){for(var m=0,h=e.buttons.length;m<h;){var p=m++;t=e.buttons[p].value;if(t!=g.buttons[p]){if(6==p)d.onAxisMove.dispatch(e.axes.length,t),null!=c&&c.onAxisMove.dispatch(4,t);else if(7==p)d.onAxisMove.dispatch(e.axes.length+1,t),null!=c&&c.onAxisMove.dispatch(5,t);else if(0< +t?d.onButtonDown.dispatch(p):d.onButtonUp.dispatch(p),null!=c){switch(p){case 0:b=0;break;case 1:b=1;break;case 2:b=2;break;case 3:b=3;break;case 4:b=9;break;case 5:b=10;break;case 8:b=4;break;case 9:b=6;break;case 10:b=7;break;case 11:b=8;break;case 12:b=11;break;case 13:b=12;break;case 14:b=13;break;case 15:b=14;break;case 16:b=5;break;default:continue}0<t?c.onButtonDown.dispatch(b):c.onButtonUp.dispatch(b)}g.buttons[p]=t}}b=0;for(t=e.axes.length;b<t;)m=b++,e.axes[m]!=g.axes[m]&&(d.onAxisMove.dispatch(m, +e.axes[m]),null!=c&&c.onAxisMove.dispatch(m,e.axes[m]),g.axes[m]=e.axes[m])}else g.connected&&(g.connected=!1,Tc.__disconnect(b),Dd.__disconnect(b))}},__class__:uo};var vo=function(){this.connected=!0;this.buttons=[];this.axes=[]};k["lime._internal.backend.html5.GameDeviceData"]=vo;vo.__name__="lime._internal.backend.html5.GameDeviceData";vo.prototype={connected:null,id:null,isGamepad:null,buttons:null,axes:null,__class__:vo};var wo=function(a){this.parent=a;this.id=-1;this.gain=1};k["lime._internal.backend.html5.HTML5AudioSource"]= +wo;wo.__name__="lime._internal.backend.html5.HTML5AudioSource";wo.prototype={completed:null,gain:null,id:null,length:null,loops:null,parent:null,playing:null,dispose:function(){},init:function(){},play:function(){if(!this.playing&&null!=this.parent.buffer&&null!=this.parent.buffer.__srcHowl){this.playing=!0;var a=this.getCurrentTime();this.completed=!1;var b=this.parent.buffer.__srcHowl._volume;this.parent.buffer.__srcHowl._volume=this.parent.get_gain();this.id=this.parent.buffer.__srcHowl.play(); +this.parent.buffer.__srcHowl._volume=b;null!=this.parent.get_pan()&&this.setPan(this.parent.get_pan());null!=this.parent.get_position()&&this.setPosition(this.parent.get_position());this.parent.buffer.__srcHowl.on("end",q(this,this.howl_onEnd),this.id);this.setCurrentTime(a)}},pause:function(){this.playing=!1;null!=this.parent.buffer&&null!=this.parent.buffer.__srcHowl&&this.parent.buffer.__srcHowl.pause(this.id)},stop:function(){this.playing=!1;null!=this.parent.buffer&&null!=this.parent.buffer.__srcHowl&& +(this.parent.buffer.__srcHowl.stop(this.id),this.parent.buffer.__srcHowl.off("end",q(this,this.howl_onEnd),this.id))},howl_onEnd:function(){this.playing=!1;0<this.loops?(this.loops--,this.stop(),this.play()):(null!=this.parent.buffer&&null!=this.parent.buffer.__srcHowl&&(this.parent.buffer.__srcHowl.stop(this.id),this.parent.buffer.__srcHowl.off("end",q(this,this.howl_onEnd),this.id)),this.completed=!0,this.parent.onComplete.dispatch())},getCurrentTime:function(){if(-1==this.id)return 0;if(this.completed)return this.getLength(); +if(null!=this.parent.buffer&&null!=this.parent.buffer.__srcHowl){var a=(1E3*this.parent.buffer.__srcHowl.seek(this.id)|0)-this.parent.offset;return 0>a?0:a}return 0},setCurrentTime:function(a){if(null!=this.parent.buffer&&null!=this.parent.buffer.__srcHowl){var b=(a+this.parent.offset)/1E3;0>b&&(b=0);this.parent.buffer.__srcHowl.seek(b,this.id)}return a},getGain:function(){return this.gain},setGain:function(a){null!=this.parent.buffer&&null!=this.parent.buffer.__srcHowl&&-1!=this.id&&this.parent.buffer.__srcHowl.volume(a, +this.id);return this.gain=a},getLength:function(){return 0!=this.length?this.length:null!=this.parent.buffer&&null!=this.parent.buffer.__srcHowl?1E3*this.parent.buffer.__srcHowl.duration()|0:0},setLength:function(a){return this.length=a},getLoops:function(){return this.loops},setLoops:function(a){return this.loops=a},setPan:function(a){null!=this.parent.buffer.__srcHowl&&null!=this.parent.buffer.__srcHowl.stereo&&this.parent.buffer.__srcHowl.stereo(a,this.id);return a},getPitch:function(){return this.parent.buffer.__srcHowl.rate()}, +setPitch:function(a){this.parent.buffer.__srcHowl.rate(a);return this.getPitch()},setPosition:function(a){null!=this.parent.buffer&&null!=this.parent.buffer.__srcHowl&&null!=this.parent.buffer.__srcHowl.pos&&this.parent.buffer.__srcHowl.pos(a.x,a.y,a.z,this.id);return a},__class__:wo};var bb=function(){this.validStatus0=(new Z("Tizen","gi")).match(window.navigator.userAgent)};k["lime._internal.backend.html5.HTML5HTTPRequest"]=bb;bb.__name__="lime._internal.backend.html5.HTML5HTTPRequest";bb.loadImage= +function(a){var b=new Wd;bb.activeRequests<bb.requestLimit?(bb.activeRequests++,bb.__loadImage(a,b,0)):bb.requestQueue.add({instance:null,uri:a,promise:b,type:"IMAGE",options:0});return b.future};bb.loadImageFromBytes=function(a,b){var c=URL.createObjectURL(new Blob([a.b.bufferValue],{type:b}));return null!=c?(a=new Wd,bb.activeRequests<bb.requestLimit?(bb.activeRequests++,bb.__loadImage(c,a,1)):bb.requestQueue.add({instance:null,uri:c,promise:a,type:"IMAGE",options:1}),a.future):bb.loadImage("data:"+ +b+";base64,"+Pf.encode(a))};bb.processQueue=function(){if(bb.activeRequests<bb.requestLimit&&0<bb.requestQueue.length){bb.activeRequests++;var a=bb.requestQueue.pop();switch(a.type){case "BINARY":a.instance.__loadData(a.uri,a.promise);break;case "IMAGE":bb.__loadImage(a.uri,a.promise,a.options);break;case "TEXT":a.instance.__loadText(a.uri,a.promise);break;default:bb.activeRequests--}}};bb.__createBlobURIFromBytes=function(a,b){return URL.createObjectURL(new Blob([a.b.bufferValue],{type:b}))};bb.__fixHostname= +function(a){return null==a?"":a};bb.__fixPort=function(a,b){if(null==a||""==a)switch(b){case "ftp:":return"21";case "gopher:":return"70";case "http:":return"80";case "https:":return"443";case "ws:":return"80";case "wss:":return"443";default:return""}return a};bb.__fixProtocol=function(a){return null==a||""==a?"http:":a};bb.__isInMemoryURI=function(a){return J.startsWith(a,"data:")?!0:J.startsWith(a,"blob:")};bb.__isSameOrigin=function(a){if(null==a||""==a||bb.__isInMemoryURI(a))return!0;null==bb.originElement&& +(bb.originElement=window.document.createElement("a"),bb.originHostname=bb.__fixHostname(Q.location.hostname),bb.originProtocol=bb.__fixProtocol(Q.location.protocol),bb.originPort=bb.__fixPort(Q.location.port,bb.originProtocol));var b=bb.originElement;b.href=a;""==b.hostname&&(b.href=b.href);var c=bb.__fixHostname(b.hostname);a=bb.__fixProtocol(b.protocol);b=bb.__fixPort(b.port,a);c=""==c||c==bb.originHostname;b=""==b||b==bb.originPort;return"file:"!=a&&c?b:!1};bb.__loadImage=function(a,b,c){var d= +new Image;bb.__isSameOrigin(a)||(d.crossOrigin="Anonymous");null==bb.supportsImageProgress&&(bb.supportsImageProgress="onprogress"in d);if(bb.supportsImageProgress||bb.__isInMemoryURI(a))d.addEventListener("load",function(e){bb.__revokeBlobURI(a,c);e=new Qf(null,d.width,d.height);e.__srcImage=d;bb.activeRequests--;bb.processQueue();b.complete(new Db(e))},!1),d.addEventListener("progress",function(a){b.progress(a.loaded,a.total)},!1),d.addEventListener("error",function(d){bb.__revokeBlobURI(a,c);bb.activeRequests--; +bb.processQueue();b.error(d.detail)},!1),d.src=a;else{var e=new XMLHttpRequest;e.onload=function(a){bb.activeRequests--;bb.processQueue();(new Db).__fromBytes(cb.ofData(e.response),function(a){b.complete(a)})};e.onerror=function(a){b.error(a.message)};e.onprogress=function(a){a.lengthComputable&&b.progress(a.loaded,a.total)};e.open("GET",a,!0);e.responseType="arraybuffer";e.overrideMimeType("text/plain; charset=x-user-defined");e.send(null)}};bb.__revokeBlobURI=function(a,b){0!=(b&1)&&URL.revokeObjectURL(a)}; +bb.prototype={binary:null,parent:null,request:null,validStatus0:null,cancel:function(){null!=this.request&&this.request.abort()},init:function(a){this.parent=a},load:function(a,b,c){this.request=new XMLHttpRequest;"POST"==this.parent.method?this.request.upload.addEventListener("progress",b,!1):this.request.addEventListener("progress",b,!1);this.request.onreadystatechange=c;b="";if(null==this.parent.data){c=Object.keys(this.parent.formData.h);for(var d=c.length,e=0;e<d;){var g=c[e++];0<b.length&&(b+= +"&");var f=this.parent.formData.h[g];if(-1<g.indexOf("[]")&&f instanceof Array){var l=[];for(f=M(f);f.hasNext();){var t=f.next();l.push(encodeURIComponent(t))}l=l.join("&"+g+"=");b+=encodeURIComponent(g)+"="+l}else l=encodeURIComponent(g)+"=",g=n.string(f),b+=l+encodeURIComponent(g)}"GET"==this.parent.method&&""!=b&&(a=-1<a.indexOf("?")?a+("&"+b):a+("?"+b),b="")}this.request.open(n.string(this.parent.method),a,!0);0<this.parent.timeout&&(this.request.timeout=this.parent.timeout);this.binary&& +(this.request.responseType="arraybuffer");a=null;l=0;for(c=this.parent.headers;l<c.length;)d=c[l],++l,"Content-Type"==d.name?a=d.value:this.request.setRequestHeader(d.name,d.value);null!=this.parent.contentType&&(a=this.parent.contentType);null==a&&(null!=this.parent.data?a="application/octet-stream":""!=b&&(a="application/x-www-form-urlencoded"));null!=a&&this.request.setRequestHeader("Content-Type",a);this.parent.withCredentials&&(this.request.withCredentials=!0);null!=this.parent.data?this.request.send(this.parent.data.b.bufferValue): +this.request.send(b)},loadData:function(a){var b=new Wd;bb.activeRequests<bb.requestLimit?(bb.activeRequests++,this.__loadData(a,b)):bb.requestQueue.add({instance:this,uri:a,promise:b,type:"BINARY",options:0});return b.future},loadText:function(a){var b=new Wd;bb.activeRequests<bb.requestLimit?(bb.activeRequests++,this.__loadText(a,b)):bb.requestQueue.add({instance:this,uri:a,promise:b,type:"TEXT",options:0});return b.future},processResponse:function(){if(this.parent.enableResponseHeaders){this.parent.responseHeaders= +[];for(var a,b,c=0,d=this.request.getAllResponseHeaders().split("\n");c<d.length;)b=d[c],++c,a=J.trim(F.substr(b,0,b.indexOf(":"))),b=J.trim(F.substr(b,b.indexOf(":")+1,null)),""!=a&&this.parent.responseHeaders.push(new jm(a,b))}this.parent.responseStatus=this.request.status},__loadData:function(a,b){var c=this;this.binary=!0;this.load(a,function(a){b.progress(a.loaded,a.total)},function(a){4==c.request.readyState&&(null!=c.request.status&&(200<=c.request.status&&400>c.request.status||c.validStatus0&& +0==c.request.status)?(a=null,""==c.request.responseType?null!=c.request.responseText&&(a=cb.ofString(c.request.responseText)):null!=c.request.response&&(a=cb.ofData(c.request.response)),c.processResponse(),b.complete(a)):(c.processResponse(),b.error(c.request.status)),c.request=null,bb.activeRequests--,bb.processQueue())})},__loadText:function(a,b){var c=this;this.binary=!1;this.load(a,function(a){b.progress(a.loaded,a.total)},function(a){4==c.request.readyState&&(null!=c.request.status&&(200<=c.request.status&& +400>=c.request.status||c.validStatus0&&0==c.request.status)?(c.processResponse(),b.complete(c.request.responseText)):(c.processResponse(),b.error(c.request.status)),c.request=null,bb.activeRequests--,bb.processQueue())})},__class__:bb};var nb=function(a){this.imeCompositionActive=!1;this.unusedTouchesPool=new id;this.scale=1;this.currentTouches=new Sa;this.parent=a;this.cursor=jc.DEFAULT;this.cacheMouseY=this.cacheMouseX=0;var b=a.__attributes;Object.prototype.hasOwnProperty.call(b,"context")||(b.context= +{});this.renderType=b.context.type;Object.prototype.hasOwnProperty.call(b,"element")&&(a.element=b.element);var c=a.element;Object.prototype.hasOwnProperty.call(b,"allowHighDPI")&&b.allowHighDPI&&"dom"!=this.renderType&&(this.scale=window.devicePixelRatio);a.__scale=this.scale;this.setWidth=Object.prototype.hasOwnProperty.call(b,"width")?b.width:0;this.setHeight=Object.prototype.hasOwnProperty.call(b,"height")?b.height:0;a.__width=this.setWidth;a.__height=this.setHeight;a.id=nb.windowID++;c instanceof +HTMLCanvasElement?this.canvas=c:"dom"==this.renderType?this.div=window.document.createElement("div"):this.canvas=window.document.createElement("canvas");if(null!=this.canvas){var d=this.canvas.style;d.setProperty("-webkit-transform","translateZ(0)",null);d.setProperty("transform","translateZ(0)",null)}else null!=this.div&&(d=this.div.style,d.setProperty("-webkit-transform","translate3D(0,0,0)",null),d.setProperty("transform","translate3D(0,0,0)",null),d.position="relative",d.overflow="hidden",d.setProperty("-webkit-user-select", +"none",null),d.setProperty("-moz-user-select","none",null),d.setProperty("-ms-user-select","none",null),d.setProperty("-o-user-select","none",null));0==a.__width&&0==a.__height&&(null!=c?(a.__width=c.clientWidth,a.__height=c.clientHeight):(a.__width=window.innerWidth,a.__height=window.innerHeight),this.cacheElementWidth=a.__width,this.cacheElementHeight=a.__height,this.resizeElement=!0);null!=this.canvas?(this.canvas.width=Math.round(a.__width*this.scale),this.canvas.height=Math.round(a.__height* +this.scale),this.canvas.style.width=a.__width+"px",this.canvas.style.height=a.__height+"px"):(this.div.style.width=a.__width+"px",this.div.style.height=a.__height+"px");if(Object.prototype.hasOwnProperty.call(b,"resizable")&&b.resizable||!Object.prototype.hasOwnProperty.call(b,"width")&&0==this.setWidth&&0==this.setHeight)a.__resizable=!0;this.updateSize();if(null!=c){null!=this.canvas?c!=this.canvas&&c.appendChild(this.canvas):c.appendChild(this.div);b="mousedown mouseenter mouseleave mousemove mouseup wheel".split(" "); +for(d=0;d<b.length;){var e=b[d];++d;c.addEventListener(e,q(this,this.handleMouseEvent),!0)}c.addEventListener("contextmenu",q(this,this.handleContextMenuEvent),!0);c.addEventListener("dragstart",q(this,this.handleDragEvent),!0);c.addEventListener("dragover",q(this,this.handleDragEvent),!0);c.addEventListener("drop",q(this,this.handleDragEvent),!0);c.addEventListener("touchstart",q(this,this.handleTouchEvent),!0);c.addEventListener("touchmove",q(this,this.handleTouchEvent),!0);c.addEventListener("touchend", +q(this,this.handleTouchEvent),!0);c.addEventListener("touchcancel",q(this,this.handleTouchEvent),!0);c.addEventListener("gamepadconnected",q(this,this.handleGamepadEvent),!0);c.addEventListener("gamepaddisconnected",q(this,this.handleGamepadEvent),!0)}this.createContext();"webgl"==a.context.type&&(this.canvas.addEventListener("webglcontextlost",q(this,this.handleContextEvent),!1),this.canvas.addEventListener("webglcontextrestored",q(this,this.handleContextEvent),!1))};k["lime._internal.backend.html5.HTML5Window"]= +nb;nb.__name__="lime._internal.backend.html5.HTML5Window";nb.prototype={canvas:null,div:null,cacheElementHeight:null,cacheElementWidth:null,cacheMouseX:null,cacheMouseY:null,cursor:null,currentTouches:null,isFullscreen:null,parent:null,primaryTouch:null,renderType:null,requestedFullscreen:null,resizeElement:null,scale:null,setHeight:null,setWidth:null,textInputEnabled:null,textInputRect:null,unusedTouchesPool:null,__focusPending:null,alert:function(a,b){null!=a&&window.alert(n.string(a))},close:function(){this.parent.application.__removeWindow(this.parent)}, +createContext:function(){var a=new xo,b=this.parent.__attributes.context;a.window=this.parent;a.attributes=b;if(null!=this.div)a.dom=this.div,a.type="dom",a.version="";else if(null!=this.canvas){var c=null,d="canvas"==this.renderType,e="opengl"==this.renderType||"opengles"==this.renderType||"webgl"==this.renderType,g=!Object.prototype.hasOwnProperty.call(b,"version")||"1"!=b.version,f=!1;if(e||!d&&(!Object.prototype.hasOwnProperty.call(b,"hardware")||b.hardware)){d=Object.prototype.hasOwnProperty.call(b, +"background")&&null==b.background;e=Object.prototype.hasOwnProperty.call(b,"colorDepth")?b.colorDepth:16;var l=Object.prototype.hasOwnProperty.call(b,"antialiasing")&&0<b.antialiasing,t=Object.prototype.hasOwnProperty.call(b,"depth")?b.depth:!0;b=Object.prototype.hasOwnProperty.call(b,"stencil")&&b.stencil;b={alpha:d||16<e,antialias:l,depth:t,premultipliedAlpha:!0,stencil:b,preserveDrawingBuffer:!1,failIfMajorPerformanceCaveat:!1};d=["webgl","experimental-webgl"];g&&d.unshift("webgl2");for(g=0;g< +d.length&&(e=d[g],++g,c=this.canvas.getContext(e,b),null!=c&&"webgl2"==e&&(f=!0),null==c););}null==c?(a.canvas2D=this.canvas.getContext("2d"),a.type="canvas",a.version=""):(a.webgl=Yb.fromWebGL2RenderContext(c),f&&(a.webgl2=c),null==r.context&&(r.context=c,r.type="webgl",r.version=f?2:1),a.type="webgl",a.version=f?"2":"1")}this.parent.context=a},focus:function(){},focusTextInput:function(){var a=this;this.__focusPending||(this.__focusPending=!0,Oe.delay(function(){a.__focusPending=!1;a.textInputEnabled&& +nb.textInput.focus()},20))},getCursor:function(){return this.cursor},getDisplay:function(){return Pa.getDisplay(0)},getDisplayMode:function(){return Pa.getDisplay(0).currentMode},getFrameRate:function(){return null==this.parent.application?0:0>this.parent.application.__backend.framePeriod?60:1E3==this.parent.application.__backend.framePeriod?0:1E3/this.parent.application.__backend.framePeriod},getMouseLock:function(){return!1},getTextInputEnabled:function(){return this.textInputEnabled},handleContextEvent:function(a){switch(a.type){case "webglcontextlost":a.cancelable&& +a.preventDefault();this.parent.context=null;this.parent.onRenderContextLost.dispatch();break;case "webglcontextrestored":this.createContext(),this.parent.onRenderContextRestored.dispatch(this.parent.context)}},handleContextMenuEvent:function(a){(this.parent.onMouseUp.canceled||this.parent.onMouseDown.canceled)&&a.cancelable&&a.preventDefault()},handleCutOrCopyEvent:function(a){var b=fe.get_text();null==b&&(b="");a.clipboardData.setData("text/plain",b);a.cancelable&&a.preventDefault()},handleDragEvent:function(a){switch(a.type){case "dragover":return a.preventDefault(), +!1;case "dragstart":if("img"==O.__cast(a.target,HTMLElement).nodeName.toLowerCase()&&a.cancelable)return a.preventDefault(),!1;break;case "drop":if(null!=a.dataTransfer&&0<a.dataTransfer.files.length)return this.parent.onDropFile.dispatch(a.dataTransfer.files),a.preventDefault(),!1}return!0},handleFocusEvent:function(a){this.textInputEnabled&&(null==a.relatedTarget||this.isDescendent(a.relatedTarget))&&this.focusTextInput()},handleFullscreenEvent:function(a){if(null!=(document.fullscreenElement|| +document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement))this.isFullscreen=!0,this.parent.__fullscreen=!0,this.requestedFullscreen&&(this.requestedFullscreen=!1,this.parent.onFullscreen.dispatch());else{this.isFullscreen=!1;this.parent.__fullscreen=!1;this.parent.onRestore.dispatch();a=["fullscreenchange","mozfullscreenchange","webkitfullscreenchange","MSFullscreenChange"];for(var b=["fullscreenerror","mozfullscreenerror","webkitfullscreenerror","MSFullscreenError"], +c=0,d=a.length;c<d;){var e=c++;window.document.removeEventListener(a[e],q(this,this.handleFullscreenEvent),!1);window.document.removeEventListener(b[e],q(this,this.handleFullscreenEvent),!1)}}},handleGamepadEvent:function(a){switch(a.type){case "gamepadconnected":Tc.__connect(a.gamepad.index);"standard"==a.gamepad.mapping&&Dd.__connect(a.gamepad.index);break;case "gamepaddisconnected":Tc.__disconnect(a.gamepad.index),Dd.__disconnect(a.gamepad.index)}},handleInputEvent:function(a){this.imeCompositionActive|| +nb.textInput.value==nb.dummyCharacter||(a=J.replace(nb.textInput.value,nb.dummyCharacter,""),0<a.length&&this.parent.onTextInput.dispatch(a),nb.textInput.value=nb.dummyCharacter)},handleMouseEvent:function(a){if("wheel"!=a.type){if(null!=this.parent.element)if(null!=this.canvas){var b=this.canvas.getBoundingClientRect();var c=this.parent.__width/b.width*(a.clientX-b.left);b=this.parent.__height/b.height*(a.clientY-b.top)}else null!=this.div?(b=this.div.getBoundingClientRect(),c=a.clientX-b.left,b= +a.clientY-b.top):(b=this.parent.element.getBoundingClientRect(),c=this.parent.__width/b.width*(a.clientX-b.left),b=this.parent.__height/b.height*(a.clientY-b.top));else c=a.clientX,b=a.clientY;switch(a.type){case "mousedown":a.currentTarget==this.parent.element&&window.addEventListener("mouseup",q(this,this.handleMouseEvent));this.parent.onMouseDown.dispatch(c,b,a.button);this.parent.onMouseDown.canceled&&a.cancelable&&a.preventDefault();break;case "mouseenter":a.target==this.parent.element&&(this.parent.onEnter.dispatch(), +this.parent.onEnter.canceled&&a.cancelable&&a.preventDefault());break;case "mouseleave":a.target==this.parent.element&&(this.parent.onLeave.dispatch(),this.parent.onLeave.canceled&&a.cancelable&&a.preventDefault());break;case "mousemove":if(c!=this.cacheMouseX||b!=this.cacheMouseY)this.parent.onMouseMove.dispatch(c,b),this.parent.onMouseMoveRelative.dispatch(c-this.cacheMouseX,b-this.cacheMouseY),(this.parent.onMouseMove.canceled||this.parent.onMouseMoveRelative.canceled)&&a.cancelable&&a.preventDefault(); +break;case "mouseup":window.removeEventListener("mouseup",q(this,this.handleMouseEvent)),a.currentTarget==this.parent.element&&a.stopPropagation(),this.parent.onMouseUp.dispatch(c,b,a.button),this.parent.onMouseUp.canceled&&a.cancelable&&a.preventDefault()}this.cacheMouseX=c;this.cacheMouseY=b}else{switch(a.deltaMode){case 0:c=wh.PIXELS;break;case 1:c=wh.LINES;break;case 2:c=wh.PAGES;break;default:c=wh.UNKNOWN}this.parent.onMouseWheel.dispatch(a.deltaX,-a.deltaY,c);this.parent.onMouseWheel.canceled&& +a.cancelable&&a.preventDefault()}},handlePasteEvent:function(a){if(-1<a.clipboardData.types.indexOf("text/plain")){var b=a.clipboardData.getData("text/plain");fe.set_text(b);this.textInputEnabled&&this.parent.onTextInput.dispatch(b);a.cancelable&&a.preventDefault()}},handleResizeEvent:function(a){this.primaryTouch=null;this.updateSize()},handleTouchEvent:function(a){a.cancelable&&a.preventDefault();var b=null;null!=this.parent.element&&(b=null!=this.canvas?this.canvas.getBoundingClientRect():null!= +this.div?this.div.getBoundingClientRect():this.parent.element.getBoundingClientRect());var c=this.setWidth,d=this.setHeight;if(0==c||0==d)null!=b?(c=b.width,d=b.height):d=c=1;for(var e,g,f,l,t,m=0,h=a.changedTouches;m<h.length;){var p=h[m];++m;null!=b?(g=c/b.width*(p.clientX-b.left),f=d/b.height*(p.clientY-b.top)):(g=p.clientX,f=p.clientY);if("touchstart"==a.type)e=this.unusedTouchesPool.pop(),null==e?e=new gd(g/c,f/d,p.identifier,0,0,p.force,this.parent.id):(e.x=g/c,e.y=f/d,e.id=p.identifier,e.dx= +0,e.dy=0,e.pressure=p.force,e.device=this.parent.id),this.currentTouches.h[p.identifier]=e,gd.onStart.dispatch(e),null==this.primaryTouch&&(this.primaryTouch=e),e==this.primaryTouch&&this.parent.onMouseDown.dispatch(g,f,0);else if(e=this.currentTouches.h[p.identifier],null!=e)switch(l=e.x,t=e.y,e.x=g/c,e.y=f/d,e.dx=e.x-l,e.dy=e.y-t,e.pressure=p.force,a.type){case "touchcancel":gd.onCancel.dispatch(e);this.currentTouches.remove(p.identifier);this.unusedTouchesPool.add(e);e==this.primaryTouch&&(this.primaryTouch= +null);break;case "touchend":gd.onEnd.dispatch(e);this.currentTouches.remove(p.identifier);this.unusedTouchesPool.add(e);e==this.primaryTouch&&(this.parent.onMouseUp.dispatch(g,f,0),this.primaryTouch=null);break;case "touchmove":gd.onMove.dispatch(e),e==this.primaryTouch&&this.parent.onMouseMove.dispatch(g,f)}}},isDescendent:function(a){if(a==this.parent.element)return!0;for(;null!=a;){if(a.parentNode==this.parent.element)return!0;a=a.parentNode}return!1},move:function(a,b){},readPixels:function(a){if(null!= +this.canvas){var b=new Ad(0,0,this.canvas.width,this.canvas.height);null==a?a=b:a.intersection(b,a);if(0<a.width&&0<a.height)return b=window.document.createElement("canvas"),b.width=a.width|0,b.height=a.height|0,b.getContext("2d").drawImage(this.canvas,-a.x,-a.y),Db.fromCanvas(b)}return null},resize:function(a,b){},setBorderless:function(a){return a},setClipboard:function(a){null==nb.textArea&&(nb.textArea=window.document.createElement("textarea"),nb.textArea.style.height="0px",nb.textArea.style.left= +"-100px",nb.textArea.style.opacity="0",nb.textArea.style.position="fixed",nb.textArea.style.top="-100px",nb.textArea.style.width="0px",window.document.body.appendChild(nb.textArea));nb.textArea.value=a;nb.textArea.focus();nb.textArea.select();window.document.queryCommandEnabled("copy")&&window.document.execCommand("copy");this.textInputEnabled&&this.focusTextInput()},setCursor:function(a){if(this.cursor!=a){if(null==a)this.parent.element.style.cursor="none";else{switch(a._hx_index){case 0:var b="default"; +break;case 1:b="crosshair";break;case 3:b="move";break;case 4:b="pointer";break;case 5:b="nesw-resize";break;case 6:b="ns-resize";break;case 7:b="nwse-resize";break;case 8:b="ew-resize";break;case 9:b="text";break;case 10:b="wait";break;case 11:b="wait";break;default:b="auto"}this.parent.element.style.cursor=b}this.cursor=a}return this.cursor},setDisplayMode:function(a){return a},setFrameRate:function(a){null!=this.parent.application&&(60<=a?this.parent==this.parent.application.__window&&(this.parent.application.__backend.framePeriod= +-1):0<a?this.parent==this.parent.application.__window&&(this.parent.application.__backend.framePeriod=1E3/a):this.parent==this.parent.application.__window&&(this.parent.application.__backend.framePeriod=1E3));return a},setFullscreen:function(a){a?this.requestedFullscreen||this.isFullscreen||(this.requestedFullscreen=!0,(N=this.parent.element,q(N,N.requestFullscreen))?(document.addEventListener("fullscreenchange",q(this,this.handleFullscreenEvent),!1),document.addEventListener("fullscreenerror",q(this, +this.handleFullscreenEvent),!1),this.parent.element.requestFullscreen()):this.parent.element.mozRequestFullScreen?(document.addEventListener("mozfullscreenchange",q(this,this.handleFullscreenEvent),!1),document.addEventListener("mozfullscreenerror",q(this,this.handleFullscreenEvent),!1),this.parent.element.mozRequestFullScreen()):this.parent.element.webkitRequestFullscreen?(document.addEventListener("webkitfullscreenchange",q(this,this.handleFullscreenEvent),!1),document.addEventListener("webkitfullscreenerror", +q(this,this.handleFullscreenEvent),!1),this.parent.element.webkitRequestFullscreen()):this.parent.element.msRequestFullscreen&&(document.addEventListener("MSFullscreenChange",q(this,this.handleFullscreenEvent),!1),document.addEventListener("MSFullscreenError",q(this,this.handleFullscreenEvent),!1),this.parent.element.msRequestFullscreen())):this.isFullscreen&&(this.requestedFullscreen=!1,document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen(): +document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen());return a},setIcon:function(a){za.convertToCanvas(a);var b=window.document.querySelector("link[rel*='icon']");null==b&&(b=window.document.createElement("link"));b.type="image/x-icon";b.rel="shortcut icon";b.href=a.buffer.get_src().toDataURL("image/x-icon");window.document.getElementsByTagName("head")[0].appendChild(b)},setMaximized:function(a){return!1},setMinimized:function(a){return!1}, +setMouseLock:function(a){},setResizable:function(a){return a},setTextInputEnabled:function(a){a?(null==nb.textInput&&(nb.textInput=window.document.createElement("input"),nb.textInput.type="password",nb.textInput.style.position="absolute",nb.textInput.style.opacity="0",nb.textInput.style.color="transparent",nb.textInput.value=nb.dummyCharacter,nb.textInput.autocapitalize="off",nb.textInput.autocorrect="off",nb.textInput.autocomplete="off",nb.textInput.style.left="0px",nb.textInput.style.top="50%", +(new Z("(iPad|iPhone|iPod).*OS 8_","gi")).match(window.navigator.userAgent)?(nb.textInput.style.fontSize="0px",nb.textInput.style.width="0px",nb.textInput.style.height="0px"):(nb.textInput.style.width="1px",nb.textInput.style.height="1px"),nb.textInput.style.pointerEvents="none",nb.textInput.style.zIndex="-10000000"),null==nb.textInput.parentNode&&this.parent.element.appendChild(nb.textInput),this.textInputEnabled||(nb.textInput.addEventListener("input",q(this,this.handleInputEvent),!0),nb.textInput.addEventListener("blur", +q(this,this.handleFocusEvent),!0),nb.textInput.addEventListener("cut",q(this,this.handleCutOrCopyEvent),!0),nb.textInput.addEventListener("copy",q(this,this.handleCutOrCopyEvent),!0),nb.textInput.addEventListener("paste",q(this,this.handlePasteEvent),!0),nb.textInput.addEventListener("compositionstart",q(this,this.handleCompositionstartEvent),!0),nb.textInput.addEventListener("compositionend",q(this,this.handleCompositionendEvent),!0)),nb.textInput.focus(),nb.textInput.select()):null!=nb.textInput&& +(nb.textInput.blur(),nb.textInput.removeEventListener("input",q(this,this.handleInputEvent),!0),nb.textInput.removeEventListener("blur",q(this,this.handleFocusEvent),!0),nb.textInput.removeEventListener("cut",q(this,this.handleCutOrCopyEvent),!0),nb.textInput.removeEventListener("copy",q(this,this.handleCutOrCopyEvent),!0),nb.textInput.removeEventListener("paste",q(this,this.handlePasteEvent),!0),nb.textInput.removeEventListener("compositionstart",q(this,this.handleCompositionstartEvent),!0),nb.textInput.removeEventListener("compositionend", +q(this,this.handleCompositionendEvent),!0));return this.textInputEnabled=a},setTextInputRect:function(a){return this.textInputRect=a},imeCompositionActive:null,handleCompositionstartEvent:function(a){this.imeCompositionActive=!0},handleCompositionendEvent:function(a){this.imeCompositionActive=!1;this.handleInputEvent(a)},setTitle:function(a){null!=a&&(window.document.title=a);return a},updateSize:function(){if(this.parent.__resizable){if(null!=this.parent.element){var a=this.parent.element.clientWidth; +var b=this.parent.element.clientHeight}else a=window.innerWidth,b=window.innerHeight;if(a!=this.cacheElementWidth||b!=this.cacheElementHeight){this.cacheElementWidth=a;this.cacheElementHeight=b;var c=this.resizeElement||0==this.setWidth&&0==this.setHeight;if(null!=this.parent.element&&(null==this.div||null!=this.div&&c))if(c){if(this.parent.__width!=a||this.parent.__height!=b)this.parent.__width=a,this.parent.__height=b,null!=this.canvas?this.parent.element!=this.canvas&&(this.canvas.width=Math.round(a* +this.scale),this.canvas.height=Math.round(b*this.scale),this.canvas.style.width=a+"px",this.canvas.style.height=b+"px"):(this.div.style.width=a+"px",this.div.style.height=b+"px"),this.parent.onResize.dispatch(a,b)}else{c=0!=this.setWidth?a/this.setWidth:1;var d=0!=this.setHeight?b/this.setHeight:1,e=a,g=b,f=0,l=0;c<d?(g=Math.floor(this.setHeight*c),l=Math.floor((b-g)/2)):(e=Math.floor(this.setWidth*d),f=Math.floor((a-e)/2));null!=this.canvas?this.parent.element!=this.canvas&&(this.canvas.style.width= +e+"px",this.canvas.style.height=g+"px",this.canvas.style.marginLeft=f+"px",this.canvas.style.marginTop=l+"px"):(this.div.style.width=e+"px",this.div.style.height=g+"px",this.div.style.marginLeft=f+"px",this.div.style.marginTop=l+"px")}}}},warpMouse:function(a,b){},__class__:nb};var yu=function(){};k["lime._internal.backend.native.NativeCFFI"]=yu;yu.__name__="lime._internal.backend.native.NativeCFFI";var Bt=function(){};k["lime._internal.format.BMP"]=Bt;Bt.__name__="lime._internal.format.BMP";Bt.encode= +function(a,b){if(a.get_premultiplied()||0!=a.get_format())a=a.clone(),a.set_premultiplied(!1),a.set_format(0);null==b&&(b=Vh.RGB);var c=14,d=40,e=a.width*a.height*4;if(null!=b)switch(b._hx_index){case 0:e=(3*a.width+3*a.width%4)*a.height;break;case 1:d=108;break;case 2:c=0,e+=a.width*a.height}var g=new cb(new ArrayBuffer(c+d+e)),f=0;0<c&&(g.b[f++]=66,g.b[f++]=77,g.setInt32(f,g.length),f+=4,g.setUInt16(f,0),f+=2,g.setUInt16(f,0),f+=2,g.setInt32(f,c+d),f+=4);g.setInt32(f,d);f+=4;g.setInt32(f,a.width); +f+=4;g.setInt32(f,b==Vh.ICO?2*a.height:a.height);f+=4;g.setUInt16(f,1);f+=2;g.setUInt16(f,b==Vh.RGB?24:32);f+=2;g.setInt32(f,b==Vh.BITFIELD?3:0);f+=4;g.setInt32(f,e);f+=4;g.setInt32(f,11824);f+=4;g.setInt32(f,11824);f+=4;g.setInt32(f,0);f+=4;g.setInt32(f,0);f+=4;if(b==Vh.BITFIELD)for(g.setInt32(f,16711680),f+=4,g.setInt32(f,65280),f+=4,g.setInt32(f,255),f+=4,g.setInt32(f,-16777216),f+=4,g.b[f++]=32,g.b[f++]=110,g.b[f++]=105,g.b[f++]=87,c=0;48>c;)c++,g.b[f++]=0;d=a.getPixels(new Ad(0,0,a.width,a.height), +1);if(null!=b)switch(b._hx_index){case 0:c=0;for(b=a.height;c<b;){var l=c++;l=4*(a.height-1-l)*a.width;for(var t=0,m=a.width;t<m;){t++;l++;var h=d.b[l++];var p=d.b[l++];var k=d.b[l++];g.b[f++]=k&255;g.b[f++]=p&255;g.b[f++]=h&255}e=0;for(var n=3*a.width%4;e<n;)e++,g.b[f++]=0}break;case 1:c=0;for(b=a.height;c<b;)for(l=c++,l=4*(a.height-1-l)*a.width,t=0,m=a.width;t<m;){t++;var r=d.b[l++];h=d.b[l++];p=d.b[l++];k=d.b[l++];g.b[f++]=k&255;g.b[f++]=p&255;g.b[f++]=h&255;g.b[f++]=r&255}break;case 2:e=new cb(new ArrayBuffer(a.width* +a.height));c=n=0;for(b=a.height;c<b;)for(l=c++,l=4*(a.height-1-l)*a.width,t=0,m=a.width;t<m;)t++,r=d.b[l++],h=d.b[l++],p=d.b[l++],k=d.b[l++],g.b[f++]=k&255,g.b[f++]=p&255,g.b[f++]=h&255,g.b[f++]=r&255,e.b[n++]=0;g.blit(f,e,0,a.width*a.height)}return g};var Vh=E["lime._internal.format.BMPType"]={__ename__:"lime._internal.format.BMPType",__constructs__:null,RGB:{_hx_name:"RGB",_hx_index:0,__enum__:"lime._internal.format.BMPType",toString:v},BITFIELD:{_hx_name:"BITFIELD",_hx_index:1,__enum__:"lime._internal.format.BMPType", +toString:v},ICO:{_hx_name:"ICO",_hx_index:2,__enum__:"lime._internal.format.BMPType",toString:v}};Vh.__constructs__=[Vh.RGB,Vh.BITFIELD,Vh.ICO];var Pf=function(){};k["lime._internal.format.Base64"]=Pf;Pf.__name__="lime._internal.format.Base64";Pf.decode=function(a){return vh.decode(a)};Pf.encode=function(a){var b=[],c=Pf.DICTIONARY,d=Pf.EXTENDED_DICTIONARY,e=a.length,g=Math.floor(e/3),f=2*g;b.length=2*Math.ceil(e/3);for(var l=0,t=0,m;t<f;)m=a.b[l]<<16|a.b[l+1]<<8|a.b[l+2],b[t]=d[m>>12&4095],b[t+1]= +d[m&4095],l+=3,t+=2;switch(e-3*g){case 1:m=a.b[l]<<16;b[t]=d[m>>12&4095];b[t+1]="==";break;case 2:m=a.b[l]<<16|a.b[l+1]<<8,b[t]=d[m>>12&4095],b[t+1]=c[m>>6&63]+"="}return b.join("")};var km=function(){};k["lime._internal.format.Deflate"]=km;km.__name__="lime._internal.format.Deflate";km.compress=function(a){a=pako.deflateRaw(a.b.bufferValue);return cb.ofData(a)};km.decompress=function(a){a=pako.inflateRaw(a.b.bufferValue);return cb.ofData(a)};var lm=function(){};k["lime._internal.format.GZip"]=lm; +lm.__name__="lime._internal.format.GZip";lm.compress=function(a){a=pako.gzip(a.b.bufferValue);return cb.ofData(a)};lm.decompress=function(a){a=pako.ungzip(a.b.bufferValue);return cb.ofData(a)};var mm=function(){};k["lime._internal.format.JPEG"]=mm;mm.__name__="lime._internal.format.JPEG";mm.decodeBytes=function(a,b){return null};mm.decodeFile=function(a,b){return null};mm.encode=function(a,b){if(a.get_premultiplied()||0!=a.get_format())a=a.clone(),a.set_premultiplied(!1),a.set_format(0);za.convertToCanvas(a, +!1);if(null!=a.buffer.__srcCanvas){a=a.buffer.__srcCanvas.toDataURL("image/jpeg",b/100);a=window.atob(a.split(";base64,")[1]);b=new cb(new ArrayBuffer(a.length));for(var c=0,d=a.length;c<d;){var e=c++;b.b[e]=F.cca(a,e)&255}return b}return null};var nm=function(){};k["lime._internal.format.LZMA"]=nm;nm.__name__="lime._internal.format.LZMA";nm.compress=function(a){return null};nm.decompress=function(a){return null};var Oj=function(){};k["lime._internal.format.PNG"]=Oj;Oj.__name__="lime._internal.format.PNG"; +Oj.decodeBytes=function(a,b){return null};Oj.decodeFile=function(a,b){return null};Oj.encode=function(a){if(a.get_premultiplied()||0!=a.get_format())a=a.clone(),a.set_premultiplied(!1),a.set_format(0);za.convertToCanvas(a,!1);if(null!=a.buffer.__srcCanvas){a=a.buffer.__srcCanvas.toDataURL("image/png");a=window.atob(a.split(";base64,")[1]);for(var b=new cb(new ArrayBuffer(a.length)),c=0,d=a.length;c<d;){var e=c++;b.b[e]=F.cca(a,e)&255}return b}return null};var om=function(){};k["lime._internal.format.Zlib"]= +om;om.__name__="lime._internal.format.Zlib";om.compress=function(a){a=pako.deflate(a.b.bufferValue);return cb.ofData(a)};om.decompress=function(a){a=pako.inflate(a.b.bufferValue);return cb.ofData(a)};var za=function(){};k["lime._internal.graphics.ImageCanvasUtil"]=za;za.__name__="lime._internal.graphics.ImageCanvasUtil";za.colorTransform=function(a,b,c){za.convertToData(a);$a.colorTransform(a,b,c)};za.convertToCanvas=function(a,b){null==b&&(b=!1);var c=a.buffer;null!=c.__srcImage?(null==c.__srcCanvas&& +(za.createCanvas(a,c.__srcImage.width,c.__srcImage.height),c.__srcContext.drawImage(c.__srcImage,0,0)),c.__srcImage=null):null==c.__srcCanvas&&null!=c.data?(a.set_transparent(!0),za.createCanvas(a,c.width,c.height),za.createImageData(a),c.__srcContext.putImageData(c.__srcImageData,0,0)):a.type==se.DATA&&null!=c.__srcImageData&&a.dirty&&(c.__srcContext.putImageData(c.__srcImageData,0,0),a.dirty=!1);b?(c.data=null,c.__srcImageData=null):null==c.data&&null!=c.__srcImageData&&(c.data=c.__srcImageData.data); +a.type=se.CANVAS};za.convertToData=function(a,b){null==b&&(b=!1);var c=a.buffer;null!=c.__srcImage&&za.convertToCanvas(a);if(null!=c.__srcCanvas&&null==c.data)za.createImageData(a),a.type==se.CANVAS&&(a.dirty=!1);else if(a.type==se.CANVAS&&null!=c.__srcCanvas&&a.dirty){if(null==c.__srcImageData)za.createImageData(a);else{c.__srcImageData=c.__srcContext.getImageData(0,0,c.width,c.height);var d=c.__srcImageData.data.buffer;d=null!=d?new Uint8Array(d):null;c.data=d}a.dirty=!1}b&&(a.buffer.__srcCanvas= +null,a.buffer.__srcContext=null);a.type=se.DATA};za.copyChannel=function(a,b,c,d,e,g){za.convertToData(b);za.convertToData(a);$a.copyChannel(a,b,c,d,e,g)};za.copyPixels=function(a,b,c,d,e,g,f){null==f&&(f=!1);null==d||d.x>=a.width||d.y>=a.height||null==c||1>c.width||1>c.height||(null!=e&&e.get_transparent()&&(null==g&&(g=new Td),b=b.clone(),b.copyChannel(e,new Ad(c.x+g.x,c.y+g.y,c.width,c.height),new Td(c.x,c.y),kf.ALPHA,kf.ALPHA)),za.convertToCanvas(a,!0),f||a.get_transparent()&&b.get_transparent()&& +a.buffer.__srcContext.clearRect(d.x+a.offsetX,d.y+a.offsetY,c.width+a.offsetX,c.height+a.offsetY),za.convertToCanvas(b),null!=b.buffer.get_src()&&(a.buffer.__srcContext.globalCompositeOperation="source-over",a.buffer.__srcContext.drawImage(b.buffer.get_src(),c.x+b.offsetX|0,c.y+b.offsetY|0,c.width|0,c.height|0,d.x+a.offsetX|0,d.y+a.offsetY|0,c.width|0,c.height|0)),a.dirty=!0,a.version++)};za.createCanvas=function(a,b,c){var d=a.buffer;null==d.__srcCanvas&&(d.__srcCanvas=window.document.createElement("canvas"), +d.__srcCanvas.width=b,d.__srcCanvas.height=c,a.get_transparent()?d.__srcContext=d.__srcCanvas.getContext("2d"):(a.get_transparent()||d.__srcCanvas.setAttribute("moz-opaque","true"),d.__srcContext=d.__srcCanvas.getContext("2d",{alpha:!1})))};za.createImageData=function(a){a=a.buffer;if(null==a.__srcImageData){null==a.data?a.__srcImageData=a.__srcContext.getImageData(0,0,a.width,a.height):(a.__srcImageData=a.__srcContext.createImageData(a.width,a.height),a.__srcImageData.data.set(a.data));var b=a.__srcImageData.data.buffer; +b=null!=b?new Uint8Array(b):null;a.data=b}};za.fillRect=function(a,b,c,d){za.convertToCanvas(a);if(1==d){d=c>>16&255;var e=c>>8&255;var g=c&255;c=a.get_transparent()?c>>24&255:255}else d=c>>24&255,e=c>>16&255,g=c>>8&255,c=a.get_transparent()?c&255:255;0==b.x&&0==b.y&&b.width==a.width&&b.height==a.height&&a.get_transparent()&&0==c?a.buffer.__srcCanvas.width=a.buffer.width:(255>c&&a.buffer.__srcContext.clearRect(b.x+a.offsetX,b.y+a.offsetY,b.width+a.offsetX,b.height+a.offsetY),0<c&&(a.buffer.__srcContext.fillStyle= +"rgba("+d+", "+e+", "+g+", "+c/255+")",a.buffer.__srcContext.fillRect(b.x+a.offsetX,b.y+a.offsetY,b.width+a.offsetX,b.height+a.offsetY)),a.dirty=!0,a.version++)};za.floodFill=function(a,b,c,d,e){za.convertToData(a);$a.floodFill(a,b,c,d,e)};za.getPixel=function(a,b,c,d){za.convertToData(a);return $a.getPixel(a,b,c,d)};za.getPixel32=function(a,b,c,d){za.convertToData(a);return $a.getPixel32(a,b,c,d)};za.getPixels=function(a,b,c){za.convertToData(a);return $a.getPixels(a,b,c)};za.merge=function(a,b, +c,d,e,g,f,l){za.convertToData(b);za.convertToData(a);$a.merge(a,b,c,d,e,g,f,l)};za.resize=function(a,b,c){var d=a.buffer;if(null==d.__srcCanvas)za.createCanvas(a,b,c),d.__srcContext.drawImage(d.get_src(),0,0,b,c);else{za.convertToCanvas(a,!0);var e=d.__srcCanvas;d.__srcCanvas=null;za.createCanvas(a,b,c);d.__srcContext.drawImage(e,0,0,b,c)}d.__srcImageData=null;d.data=null;a.dirty=!0;a.version++};za.scroll=function(a,b,c){if(0!=b%a.width||0!=c%a.height){var d=a.clone();za.convertToCanvas(a,!0);a.buffer.__srcContext.clearRect(b, +c,a.width,a.height);a.buffer.__srcContext.drawImage(d.get_src(),b,c);a.dirty=!0;a.version++}};za.setPixel=function(a,b,c,d,e){za.convertToData(a);$a.setPixel(a,b,c,d,e)};za.setPixel32=function(a,b,c,d,e){za.convertToData(a);$a.setPixel32(a,b,c,d,e)};za.setPixels=function(a,b,c,d,e){za.convertToData(a);$a.setPixels(a,b,c,d,e)};za.sync=function(a,b){null!=a&&(a.type!=se.CANVAS||null==a.buffer.__srcCanvas&&null==a.buffer.data?a.type==se.DATA&&za.convertToData(a,b):za.convertToCanvas(a,b))};var $a=function(){}; +k["lime._internal.graphics.ImageDataUtil"]=$a;$a.__name__="lime._internal.graphics.ImageDataUtil";$a.displaceMap=function(a,b,c,d,e,g,f){var x=a.buffer.data,t=b.buffer.data,m=c.buffer.data,h=a.buffer.format,p=b.buffer.format,k=c.buffer.format,n=a.get_premultiplied(),r=b.get_premultiplied(),q=c.get_premultiplied();b=new He(b);c=new He(c);for(var v,u,w=0,B=0,E,N,C,z=0,J=0,D=0,A=0,Ha,F=0,H=b.height;F<H;){var G=F++;v=b.byteOffset+b.stride*G;for(var L=0,y=b.width;L<y;){var K=L++;u=v+4*K;C=d.x|0;E=d.y| +0;if(f){B=b.byteOffset+b.stride*(G-E+1)+4*(K-C);N=k;Ha=q;null==Ha&&(Ha=!1);null==N&&(N=0);switch(N){case 0:z=(m[B]&255)<<24|(m[B+1]&255)<<16|(m[B+2]&255)<<8|m[B+3]&255;break;case 1:z=(m[B+1]&255)<<24|(m[B+2]&255)<<16|(m[B+3]&255)<<8|m[B]&255;break;case 2:z=(m[B+2]&255)<<24|(m[B+1]&255)<<16|(m[B]&255)<<8|m[B+3]&255}Ha&&0!=(z&255)&&255!=(z&255)&&(I.unmult=255/(z&255),z=(I.__clamp[Math.round((z>>>24&255)*I.unmult)]&255)<<24|(I.__clamp[Math.round((z>>>16&255)*I.unmult)]&255)<<16|(I.__clamp[Math.round((z>>> +8&255)*I.unmult)]&255)<<8|z&255);B=b.byteOffset+b.stride*(G-E)+4*(K-C+1);N=k;Ha=q;null==Ha&&(Ha=!1);null==N&&(N=0);switch(N){case 0:J=(m[B]&255)<<24|(m[B+1]&255)<<16|(m[B+2]&255)<<8|m[B+3]&255;break;case 1:J=(m[B+1]&255)<<24|(m[B+2]&255)<<16|(m[B+3]&255)<<8|m[B]&255;break;case 2:J=(m[B+2]&255)<<24|(m[B+1]&255)<<16|(m[B]&255)<<8|m[B+3]&255}Ha&&0!=(J&255)&&255!=(J&255)&&(I.unmult=255/(J&255),J=(I.__clamp[Math.round((J>>>24&255)*I.unmult)]&255)<<24|(I.__clamp[Math.round((J>>>16&255)*I.unmult)]&255)<< +16|(I.__clamp[Math.round((J>>>8&255)*I.unmult)]&255)<<8|J&255);B=b.byteOffset+b.stride*(G-E+1)+4*(K-C+1);N=k;Ha=q;null==Ha&&(Ha=!1);null==N&&(N=0);switch(N){case 0:D=(m[B]&255)<<24|(m[B+1]&255)<<16|(m[B+2]&255)<<8|m[B+3]&255;break;case 1:D=(m[B+1]&255)<<24|(m[B+2]&255)<<16|(m[B+3]&255)<<8|m[B]&255;break;case 2:D=(m[B+2]&255)<<24|(m[B+1]&255)<<16|(m[B]&255)<<8|m[B+3]&255}Ha&&0!=(D&255)&&255!=(D&255)&&(I.unmult=255/(D&255),D=(I.__clamp[Math.round((D>>>24&255)*I.unmult)]&255)<<24|(I.__clamp[Math.round((D>>> +16&255)*I.unmult)]&255)<<16|(I.__clamp[Math.round((D>>>8&255)*I.unmult)]&255)<<8|D&255);B=b.byteOffset+b.stride*(G-E)+4*(K-C);N=k;Ha=q;null==Ha&&(Ha=!1);null==N&&(N=0);switch(N){case 0:A=(m[B]&255)<<24|(m[B+1]&255)<<16|(m[B+2]&255)<<8|m[B+3]&255;break;case 1:A=(m[B+1]&255)<<24|(m[B+2]&255)<<16|(m[B+3]&255)<<8|m[B]&255;break;case 2:A=(m[B+2]&255)<<24|(m[B+1]&255)<<16|(m[B]&255)<<8|m[B+3]&255}Ha&&0!=(A&255)&&255!=(A&255)&&(I.unmult=255/(A&255),A=(I.__clamp[Math.round((A>>>24&255)*I.unmult)]&255)<<24| +(I.__clamp[Math.round((A>>>16&255)*I.unmult)]&255)<<16|(I.__clamp[Math.round((A>>>8&255)*I.unmult)]&255)<<8|A&255);B=$a.bilinear(z,J,D,A,d.x-C,d.y-E)}else{C=c.byteOffset+c.stride*(G-E)+4*(K-C);E=k;N=q;null==N&&(N=!1);null==E&&(E=0);switch(E){case 0:B=(m[C]&255)<<24|(m[C+1]&255)<<16|(m[C+2]&255)<<8|m[C+3]&255;break;case 1:B=(m[C+1]&255)<<24|(m[C+2]&255)<<16|(m[C+3]&255)<<8|m[C]&255;break;case 2:B=(m[C+2]&255)<<24|(m[C+1]&255)<<16|(m[C]&255)<<8|m[C+3]&255}N&&0!=(B&255)&&255!=(B&255)&&(I.unmult=255/ +(B&255),B=(I.__clamp[Math.round((B>>>24&255)*I.unmult)]&255)<<24|(I.__clamp[Math.round((B>>>16&255)*I.unmult)]&255)<<16|(I.__clamp[Math.round((B>>>8&255)*I.unmult)]&255)<<8|B&255)}C=(B&255)/255;E=((B>>>24&255)-128)/255*C;N=((B>>>16&255)-128)/255*C;C=E*e.x+N*g.x;Ha=E*e.y+N*g.y;E=Math.floor(C*b.width);N=Math.floor(Ha*b.height);if(f){w=b.byteOffset+b.stride*(G+N+1)+4*(K+E);var P=p,O=r;null==O&&(O=!1);null==P&&(P=0);switch(P){case 0:z=(t[w]&255)<<24|(t[w+1]&255)<<16|(t[w+2]&255)<<8|t[w+3]&255;break;case 1:z= +(t[w+1]&255)<<24|(t[w+2]&255)<<16|(t[w+3]&255)<<8|t[w]&255;break;case 2:z=(t[w+2]&255)<<24|(t[w+1]&255)<<16|(t[w]&255)<<8|t[w+3]&255}O&&0!=(z&255)&&255!=(z&255)&&(I.unmult=255/(z&255),z=(I.__clamp[Math.round((z>>>24&255)*I.unmult)]&255)<<24|(I.__clamp[Math.round((z>>>16&255)*I.unmult)]&255)<<16|(I.__clamp[Math.round((z>>>8&255)*I.unmult)]&255)<<8|z&255);w=b.byteOffset+b.stride*(G+N)+4*(K+E+1);P=p;O=r;null==O&&(O=!1);null==P&&(P=0);switch(P){case 0:J=(t[w]&255)<<24|(t[w+1]&255)<<16|(t[w+2]&255)<<8| +t[w+3]&255;break;case 1:J=(t[w+1]&255)<<24|(t[w+2]&255)<<16|(t[w+3]&255)<<8|t[w]&255;break;case 2:J=(t[w+2]&255)<<24|(t[w+1]&255)<<16|(t[w]&255)<<8|t[w+3]&255}O&&0!=(J&255)&&255!=(J&255)&&(I.unmult=255/(J&255),J=(I.__clamp[Math.round((J>>>24&255)*I.unmult)]&255)<<24|(I.__clamp[Math.round((J>>>16&255)*I.unmult)]&255)<<16|(I.__clamp[Math.round((J>>>8&255)*I.unmult)]&255)<<8|J&255);w=b.byteOffset+b.stride*(G+N+1)+4*(K+E+1);P=p;O=r;null==O&&(O=!1);null==P&&(P=0);switch(P){case 0:D=(t[w]&255)<<24|(t[w+ +1]&255)<<16|(t[w+2]&255)<<8|t[w+3]&255;break;case 1:D=(t[w+1]&255)<<24|(t[w+2]&255)<<16|(t[w+3]&255)<<8|t[w]&255;break;case 2:D=(t[w+2]&255)<<24|(t[w+1]&255)<<16|(t[w]&255)<<8|t[w+3]&255}O&&0!=(D&255)&&255!=(D&255)&&(I.unmult=255/(D&255),D=(I.__clamp[Math.round((D>>>24&255)*I.unmult)]&255)<<24|(I.__clamp[Math.round((D>>>16&255)*I.unmult)]&255)<<16|(I.__clamp[Math.round((D>>>8&255)*I.unmult)]&255)<<8|D&255);K=b.byteOffset+b.stride*(G+N)+4*(K+E);w=p;P=r;null==P&&(P=!1);null==w&&(w=0);switch(w){case 0:A= +(t[K]&255)<<24|(t[K+1]&255)<<16|(t[K+2]&255)<<8|t[K+3]&255;break;case 1:A=(t[K+1]&255)<<24|(t[K+2]&255)<<16|(t[K+3]&255)<<8|t[K]&255;break;case 2:A=(t[K+2]&255)<<24|(t[K+1]&255)<<16|(t[K]&255)<<8|t[K+3]&255}P&&0!=(A&255)&&255!=(A&255)&&(I.unmult=255/(A&255),A=(I.__clamp[Math.round((A>>>24&255)*I.unmult)]&255)<<24|(I.__clamp[Math.round((A>>>16&255)*I.unmult)]&255)<<16|(I.__clamp[Math.round((A>>>8&255)*I.unmult)]&255)<<8|A&255);w=$a.bilinear(z,J,D,A,C*b.width-E,Ha*b.height-N)}else{K=b.byteOffset+b.stride* +(G+N)+4*(K+E);C=p;E=r;null==E&&(E=!1);null==C&&(C=0);switch(C){case 0:w=(t[K]&255)<<24|(t[K+1]&255)<<16|(t[K+2]&255)<<8|t[K+3]&255;break;case 1:w=(t[K+1]&255)<<24|(t[K+2]&255)<<16|(t[K+3]&255)<<8|t[K]&255;break;case 2:w=(t[K+2]&255)<<24|(t[K+1]&255)<<16|(t[K]&255)<<8|t[K+3]&255}E&&0!=(w&255)&&255!=(w&255)&&(I.unmult=255/(w&255),w=(I.__clamp[Math.round((w>>>24&255)*I.unmult)]&255)<<24|(I.__clamp[Math.round((w>>>16&255)*I.unmult)]&255)<<16|(I.__clamp[Math.round((w>>>8&255)*I.unmult)]&255)<<8|w&255)}K= +h;C=n;null==C&&(C=!1);null==K&&(K=0);C&&(0==(w&255)?0!=w&&(w=0):255!=(w&255)&&(I.a16=I.__alpha16[w&255],w=((w>>>24&255)*I.a16>>16&255)<<24|((w>>>16&255)*I.a16>>16&255)<<16|((w>>>8&255)*I.a16>>16&255)<<8|w&255));switch(K){case 0:x[u]=w>>>24&255;x[u+1]=w>>>16&255;x[u+2]=w>>>8&255;x[u+3]=w&255;break;case 1:x[u]=w&255;x[u+1]=w>>>24&255;x[u+2]=w>>>16&255;x[u+3]=w>>>8&255;break;case 2:x[u]=w>>>8&255,x[u+1]=w>>>16&255,x[u+2]=w>>>24&255,x[u+3]=w&255}}}a.dirty=!0;a.version++};$a.bilinear=function(a,b,c,d, +e,g){return $a.lerpRGBA($a.lerpRGBA(d,b,e),$a.lerpRGBA(a,c,e),g)};$a.lerpRGBA=function(a,b,c){var d=0,e=Math.floor($a.lerp(a>>>24&255,b>>>24&255,c));d=(e&255)<<24|(d>>>16&255)<<16|(d>>>8&255)<<8|d&255;e=Math.floor($a.lerp(a>>>16&255,b>>>16&255,c));d=(d>>>24&255)<<24|(e&255)<<16|(d>>>8&255)<<8|d&255;e=Math.floor($a.lerp(a>>>8&255,b>>>8&255,c));d=(d>>>24&255)<<24|(d>>>16&255)<<16|(e&255)<<8|d&255;e=Math.floor($a.lerp(a&255,b&255,c));return(d>>>24&255)<<24|(d>>>16&255)<<16|(d>>>8&255)<<8|e&255};$a.lerp4f= +function(a,b,c){return new xc($a.lerp(a.x,b.x,c),$a.lerp(a.y,b.y,c),$a.lerp(a.z,b.z,c),$a.lerp(a.w,b.w,c))};$a.lerp=function(a,b,c){return(1-c)*a+c*b};$a.colorTransform=function(a,b,c){var d=a.buffer.data;if(null!=d){var e=a.buffer.format,g=a.buffer.premultiplied;b=new He(a,b);var f=Ed.getAlphaTable(c),l=Ed.getRedTable(c),t=Ed.getGreenTable(c);c=Ed.getBlueTable(c);for(var m,h,p=0,k=0,n=b.height;k<n;){m=k++;m=b.byteOffset+b.stride*m;for(var r=0,q=b.width;r<q;){h=r++;h=m+4*h;var v=e,u=g;null==u&&(u= +!1);null==v&&(v=0);switch(v){case 0:p=(d[h]&255)<<24|(d[h+1]&255)<<16|(d[h+2]&255)<<8|d[h+3]&255;break;case 1:p=(d[h+1]&255)<<24|(d[h+2]&255)<<16|(d[h+3]&255)<<8|d[h]&255;break;case 2:p=(d[h+2]&255)<<24|(d[h+1]&255)<<16|(d[h]&255)<<8|d[h+3]&255}u&&0!=(p&255)&&255!=(p&255)&&(I.unmult=255/(p&255),p=(I.__clamp[Math.round((p>>>24&255)*I.unmult)]&255)<<24|(I.__clamp[Math.round((p>>>16&255)*I.unmult)]&255)<<16|(I.__clamp[Math.round((p>>>8&255)*I.unmult)]&255)<<8|p&255);p=(l[p>>>24&255]&255)<<24|(t[p>>> +16&255]&255)<<16|(c[p>>>8&255]&255)<<8|f[p&255]&255;v=e;u=g;null==u&&(u=!1);null==v&&(v=0);u&&(0==(p&255)?0!=p&&(p=0):255!=(p&255)&&(I.a16=I.__alpha16[p&255],p=((p>>>24&255)*I.a16>>16&255)<<24|((p>>>16&255)*I.a16>>16&255)<<16|((p>>>8&255)*I.a16>>16&255)<<8|p&255));switch(v){case 0:d[h]=p>>>24&255;d[h+1]=p>>>16&255;d[h+2]=p>>>8&255;d[h+3]=p&255;break;case 1:d[h]=p&255;d[h+1]=p>>>24&255;d[h+2]=p>>>16&255;d[h+3]=p>>>8&255;break;case 2:d[h]=p>>>8&255,d[h+1]=p>>>16&255,d[h+2]=p>>>24&255,d[h+3]=p&255}}}a.dirty= +!0;a.version++}};$a.copyChannel=function(a,b,c,d,e,g){switch(g._hx_index){case 0:var f=0;break;case 1:f=1;break;case 2:f=2;break;case 3:f=3}switch(e._hx_index){case 0:var l=0;break;case 1:l=1;break;case 2:l=2;break;case 3:l=3}e=b.buffer.data;g=a.buffer.data;if(null!=e&&null!=g){c=new He(b,c);d=new He(a,new Ad(d.x,d.y,c.width,c.height));var t=b.buffer.format,m=a.buffer.format;b=b.buffer.premultiplied;for(var h=a.buffer.premultiplied,p,k,n=0,r=0,q=0,v=0,u=d.height;v<u;){k=v++;p=c.byteOffset+c.stride* +k;k=d.byteOffset+d.stride*k;for(var w=0,B=d.width;w<B;){w++;var E=t,C=b;null==C&&(C=!1);null==E&&(E=0);switch(E){case 0:n=(e[p]&255)<<24|(e[p+1]&255)<<16|(e[p+2]&255)<<8|e[p+3]&255;break;case 1:n=(e[p+1]&255)<<24|(e[p+2]&255)<<16|(e[p+3]&255)<<8|e[p]&255;break;case 2:n=(e[p+2]&255)<<24|(e[p+1]&255)<<16|(e[p]&255)<<8|e[p+3]&255}C&&0!=(n&255)&&255!=(n&255)&&(I.unmult=255/(n&255),n=(I.__clamp[Math.round((n>>>24&255)*I.unmult)]&255)<<24|(I.__clamp[Math.round((n>>>16&255)*I.unmult)]&255)<<16|(I.__clamp[Math.round((n>>> +8&255)*I.unmult)]&255)<<8|n&255);E=m;C=h;null==C&&(C=!1);null==E&&(E=0);switch(E){case 0:r=(g[k]&255)<<24|(g[k+1]&255)<<16|(g[k+2]&255)<<8|g[k+3]&255;break;case 1:r=(g[k+1]&255)<<24|(g[k+2]&255)<<16|(g[k+3]&255)<<8|g[k]&255;break;case 2:r=(g[k+2]&255)<<24|(g[k+1]&255)<<16|(g[k]&255)<<8|g[k+3]&255}C&&0!=(r&255)&&255!=(r&255)&&(I.unmult=255/(r&255),r=(I.__clamp[Math.round((r>>>24&255)*I.unmult)]&255)<<24|(I.__clamp[Math.round((r>>>16&255)*I.unmult)]&255)<<16|(I.__clamp[Math.round((r>>>8&255)*I.unmult)]& +255)<<8|r&255);switch(l){case 0:q=n>>>24&255;break;case 1:q=n>>>16&255;break;case 2:q=n>>>8&255;break;case 3:q=n&255}switch(f){case 0:r=(q&255)<<24|(r>>>16&255)<<16|(r>>>8&255)<<8|r&255;break;case 1:r=(r>>>24&255)<<24|(q&255)<<16|(r>>>8&255)<<8|r&255;break;case 2:r=(r>>>24&255)<<24|(r>>>16&255)<<16|(q&255)<<8|r&255;break;case 3:r=(r>>>24&255)<<24|(r>>>16&255)<<16|(r>>>8&255)<<8|q&255}E=m;C=h;null==C&&(C=!1);null==E&&(E=0);C&&(0==(r&255)?0!=r&&(r=0):255!=(r&255)&&(I.a16=I.__alpha16[r&255],r=((r>>> +24&255)*I.a16>>16&255)<<24|((r>>>16&255)*I.a16>>16&255)<<16|((r>>>8&255)*I.a16>>16&255)<<8|r&255));switch(E){case 0:g[k]=r>>>24&255;g[k+1]=r>>>16&255;g[k+2]=r>>>8&255;g[k+3]=r&255;break;case 1:g[k]=r&255;g[k+1]=r>>>24&255;g[k+2]=r>>>16&255;g[k+3]=r>>>8&255;break;case 2:g[k]=r>>>8&255,g[k+1]=r>>>16&255,g[k+2]=r>>>24&255,g[k+3]=r&255}p+=4;k+=4}}a.dirty=!0;a.version++}};$a.copyPixels=function(a,b,c,d,e,g,f){null==f&&(f=!1);if(a.width==b.width&&a.height==b.height&&c.width==b.width&&c.height==b.height&& +0==c.x&&0==c.y&&0==d.x&&0==d.y&&null==e&&null==g&&0==f&&a.get_format()==b.get_format())a.buffer.data.set(b.buffer.data);else{var x=b.buffer.data,t=a.buffer.data;if(null==x||null==t)return;c=new He(b,c);var m=new Ad(d.x,d.y,c.width,c.height);m=new He(a,m);var h=b.buffer.format,p=a.buffer.format,k=0,n=0,r=b.buffer.premultiplied,q=a.buffer.premultiplied,v=b.buffer.bitsPerPixel/8|0,u=a.buffer.bitsPerPixel/8|0,w=null!=e&&e.get_transparent(),B=f||w&&!a.get_transparent()||!f&&!a.get_transparent()&&b.get_transparent(); +if(w)if(u=e.buffer.data,b=e.buffer.format,f=0,e=new He(e,new Ad(c.x+(null==g?0:g.x),c.y+(null==g?0:g.y),c.width,c.height)),m.clip(d.x|0,d.y|0,e.width,e.height),B)for(B=0,v=m.height;B<v;)for(w=B++,d=c.byteOffset+c.stride*w,g=m.byteOffset+m.stride*w,w=e.byteOffset+e.stride*w,J=0,D=m.width;J<D;){J++;var E=h;var C=r;null==C&&(C=!1);null==E&&(E=0);switch(E){case 0:k=(x[d]&255)<<24|(x[d+1]&255)<<16|(x[d+2]&255)<<8|x[d+3]&255;break;case 1:k=(x[d+1]&255)<<24|(x[d+2]&255)<<16|(x[d+3]&255)<<8|x[d]&255;break; +case 2:k=(x[d+2]&255)<<24|(x[d+1]&255)<<16|(x[d]&255)<<8|x[d+3]&255}C&&0!=(k&255)&&255!=(k&255)&&(I.unmult=255/(k&255),k=(I.__clamp[Math.round((k>>>24&255)*I.unmult)]&255)<<24|(I.__clamp[Math.round((k>>>16&255)*I.unmult)]&255)<<16|(I.__clamp[Math.round((k>>>8&255)*I.unmult)]&255)<<8|k&255);E=p;C=q;null==C&&(C=!1);null==E&&(E=0);switch(E){case 0:n=(t[g]&255)<<24|(t[g+1]&255)<<16|(t[g+2]&255)<<8|t[g+3]&255;break;case 1:n=(t[g+1]&255)<<24|(t[g+2]&255)<<16|(t[g+3]&255)<<8|t[g]&255;break;case 2:n=(t[g+ +2]&255)<<24|(t[g+1]&255)<<16|(t[g]&255)<<8|t[g+3]&255}C&&0!=(n&255)&&255!=(n&255)&&(I.unmult=255/(n&255),n=(I.__clamp[Math.round((n>>>24&255)*I.unmult)]&255)<<24|(I.__clamp[Math.round((n>>>16&255)*I.unmult)]&255)<<16|(I.__clamp[Math.round((n>>>8&255)*I.unmult)]&255)<<8|n&255);E=b;C=!1;null==C&&(C=!1);null==E&&(E=0);switch(E){case 0:f=(u[w]&255)<<24|(u[w+1]&255)<<16|(u[w+2]&255)<<8|u[w+3]&255;break;case 1:f=(u[w+1]&255)<<24|(u[w+2]&255)<<16|(u[w+3]&255)<<8|u[w]&255;break;case 2:f=(u[w+2]&255)<<24| +(u[w+1]&255)<<16|(u[w]&255)<<8|u[w+3]&255}C&&0!=(f&255)&&255!=(f&255)&&(I.unmult=255/(f&255),f=(I.__clamp[Math.round((f>>>24&255)*I.unmult)]&255)<<24|(I.__clamp[Math.round((f>>>16&255)*I.unmult)]&255)<<16|(I.__clamp[Math.round((f>>>8&255)*I.unmult)]&255)<<8|f&255);C=(f&255)/255*((k&255)/255);if(0<C){var N=(n&255)/255;var z=1-C;E=C+N*z;A=I.__clamp[Math.round(((k>>>24&255)*C+(n>>>24&255)*N*z)/E)];n=(A&255)<<24|(n>>>16&255)<<16|(n>>>8&255)<<8|n&255;A=I.__clamp[Math.round(((k>>>16&255)*C+(n>>>16&255)* +N*z)/E)];n=(n>>>24&255)<<24|(A&255)<<16|(n>>>8&255)<<8|n&255;C=I.__clamp[Math.round(((k>>>8&255)*C+(n>>>8&255)*N*z)/E)];n=(n>>>24&255)<<24|(n>>>16&255)<<16|(C&255)<<8|n&255;E=I.__clamp[Math.round(255*E)];n=(n>>>24&255)<<24|(n>>>16&255)<<16|(n>>>8&255)<<8|E&255;E=p;C=q;null==C&&(C=!1);null==E&&(E=0);C&&(0==(n&255)?0!=n&&(n=0):255!=(n&255)&&(I.a16=I.__alpha16[n&255],n=((n>>>24&255)*I.a16>>16&255)<<24|((n>>>16&255)*I.a16>>16&255)<<16|((n>>>8&255)*I.a16>>16&255)<<8|n&255));switch(E){case 0:t[g]=n>>>24& +255;t[g+1]=n>>>16&255;t[g+2]=n>>>8&255;t[g+3]=n&255;break;case 1:t[g]=n&255;t[g+1]=n>>>24&255;t[g+2]=n>>>16&255;t[g+3]=n>>>8&255;break;case 2:t[g]=n>>>8&255,t[g+1]=n>>>16&255,t[g+2]=n>>>24&255,t[g+3]=n&255}}d+=4;g+=4;w+=4}else for(B=0,v=m.height;B<v;)for(w=B++,d=c.byteOffset+c.stride*w,g=m.byteOffset+m.stride*w,w=e.byteOffset+e.stride*w,J=0,D=m.width;J<D;){J++;E=h;C=r;null==C&&(C=!1);null==E&&(E=0);switch(E){case 0:k=(x[d]&255)<<24|(x[d+1]&255)<<16|(x[d+2]&255)<<8|x[d+3]&255;break;case 1:k=(x[d+1]& +255)<<24|(x[d+2]&255)<<16|(x[d+3]&255)<<8|x[d]&255;break;case 2:k=(x[d+2]&255)<<24|(x[d+1]&255)<<16|(x[d]&255)<<8|x[d+3]&255}C&&0!=(k&255)&&255!=(k&255)&&(I.unmult=255/(k&255),k=(I.__clamp[Math.round((k>>>24&255)*I.unmult)]&255)<<24|(I.__clamp[Math.round((k>>>16&255)*I.unmult)]&255)<<16|(I.__clamp[Math.round((k>>>8&255)*I.unmult)]&255)<<8|k&255);E=b;C=!1;null==C&&(C=!1);null==E&&(E=0);switch(E){case 0:f=(u[w]&255)<<24|(u[w+1]&255)<<16|(u[w+2]&255)<<8|u[w+3]&255;break;case 1:f=(u[w+1]&255)<<24|(u[w+ +2]&255)<<16|(u[w+3]&255)<<8|u[w]&255;break;case 2:f=(u[w+2]&255)<<24|(u[w+1]&255)<<16|(u[w]&255)<<8|u[w+3]&255}C&&0!=(f&255)&&255!=(f&255)&&(I.unmult=255/(f&255),f=(I.__clamp[Math.round((f>>>24&255)*I.unmult)]&255)<<24|(I.__clamp[Math.round((f>>>16&255)*I.unmult)]&255)<<16|(I.__clamp[Math.round((f>>>8&255)*I.unmult)]&255)<<8|f&255);A=Math.round((f&255)/255*(k&255));k=(k>>>24&255)<<24|(k>>>16&255)<<16|(k>>>8&255)<<8|A&255;E=p;C=q;null==C&&(C=!1);null==E&&(E=0);C&&(0==(k&255)?0!=k&&(k=0):255!=(k&255)&& +(I.a16=I.__alpha16[k&255],k=((k>>>24&255)*I.a16>>16&255)<<24|((k>>>16&255)*I.a16>>16&255)<<16|((k>>>8&255)*I.a16>>16&255)<<8|k&255));switch(E){case 0:t[g]=k>>>24&255;t[g+1]=k>>>16&255;t[g+2]=k>>>8&255;t[g+3]=k&255;break;case 1:t[g]=k&255;t[g+1]=k>>>24&255;t[g+2]=k>>>16&255;t[g+3]=k>>>8&255;break;case 2:t[g]=k>>>8&255,t[g+1]=k>>>16&255,t[g+2]=k>>>24&255,t[g+3]=k&255}d+=4;g+=4;w+=4}else if(B)for(B=0,v=m.height;B<v;){w=B++;d=c.byteOffset+c.stride*w;g=m.byteOffset+m.stride*w;for(var J=0,D=m.width;J<D;){J++; +E=h;C=r;null==C&&(C=!1);null==E&&(E=0);switch(E){case 0:k=(x[d]&255)<<24|(x[d+1]&255)<<16|(x[d+2]&255)<<8|x[d+3]&255;break;case 1:k=(x[d+1]&255)<<24|(x[d+2]&255)<<16|(x[d+3]&255)<<8|x[d]&255;break;case 2:k=(x[d+2]&255)<<24|(x[d+1]&255)<<16|(x[d]&255)<<8|x[d+3]&255}C&&0!=(k&255)&&255!=(k&255)&&(I.unmult=255/(k&255),k=(I.__clamp[Math.round((k>>>24&255)*I.unmult)]&255)<<24|(I.__clamp[Math.round((k>>>16&255)*I.unmult)]&255)<<16|(I.__clamp[Math.round((k>>>8&255)*I.unmult)]&255)<<8|k&255);E=p;C=q;null== +C&&(C=!1);null==E&&(E=0);switch(E){case 0:n=(t[g]&255)<<24|(t[g+1]&255)<<16|(t[g+2]&255)<<8|t[g+3]&255;break;case 1:n=(t[g+1]&255)<<24|(t[g+2]&255)<<16|(t[g+3]&255)<<8|t[g]&255;break;case 2:n=(t[g+2]&255)<<24|(t[g+1]&255)<<16|(t[g]&255)<<8|t[g+3]&255}C&&0!=(n&255)&&255!=(n&255)&&(I.unmult=255/(n&255),n=(I.__clamp[Math.round((n>>>24&255)*I.unmult)]&255)<<24|(I.__clamp[Math.round((n>>>16&255)*I.unmult)]&255)<<16|(I.__clamp[Math.round((n>>>8&255)*I.unmult)]&255)<<8|n&255);C=(k&255)/255;N=(n&255)/255; +z=1-C;E=C+N*z;if(0==E)n=0;else{var A=I.__clamp[Math.round(((k>>>24&255)*C+(n>>>24&255)*N*z)/E)];n=(A&255)<<24|(n>>>16&255)<<16|(n>>>8&255)<<8|n&255;A=I.__clamp[Math.round(((k>>>16&255)*C+(n>>>16&255)*N*z)/E)];n=(n>>>24&255)<<24|(A&255)<<16|(n>>>8&255)<<8|n&255;C=I.__clamp[Math.round(((k>>>8&255)*C+(n>>>8&255)*N*z)/E)];n=(n>>>24&255)<<24|(n>>>16&255)<<16|(C&255)<<8|n&255;E=I.__clamp[Math.round(255*E)];n=(n>>>24&255)<<24|(n>>>16&255)<<16|(n>>>8&255)<<8|E&255}E=p;C=q;null==C&&(C=!1);null==E&&(E=0);C&& +(0==(n&255)?0!=n&&(n=0):255!=(n&255)&&(I.a16=I.__alpha16[n&255],n=((n>>>24&255)*I.a16>>16&255)<<24|((n>>>16&255)*I.a16>>16&255)<<16|((n>>>8&255)*I.a16>>16&255)<<8|n&255));switch(E){case 0:t[g]=n>>>24&255;t[g+1]=n>>>16&255;t[g+2]=n>>>8&255;t[g+3]=n&255;break;case 1:t[g]=n&255;t[g+1]=n>>>24&255;t[g+2]=n>>>16&255;t[g+3]=n>>>8&255;break;case 2:t[g]=n>>>8&255,t[g+1]=n>>>16&255,t[g+2]=n>>>24&255,t[g+3]=n&255}d+=4;g+=4}}else if(h==p&&r==q&&v==u)for(B=0,v=m.height;B<v;)w=B++,d=c.byteOffset+c.stride*w,g=m.byteOffset+ +m.stride*w,t.set(x.subarray(d,d+m.width*u),g);else for(B=0,v=m.height;B<v;)for(w=B++,d=c.byteOffset+c.stride*w,g=m.byteOffset+m.stride*w,J=0,D=m.width;J<D;){J++;E=h;C=r;null==C&&(C=!1);null==E&&(E=0);switch(E){case 0:k=(x[d]&255)<<24|(x[d+1]&255)<<16|(x[d+2]&255)<<8|x[d+3]&255;break;case 1:k=(x[d+1]&255)<<24|(x[d+2]&255)<<16|(x[d+3]&255)<<8|x[d]&255;break;case 2:k=(x[d+2]&255)<<24|(x[d+1]&255)<<16|(x[d]&255)<<8|x[d+3]&255}C&&0!=(k&255)&&255!=(k&255)&&(I.unmult=255/(k&255),k=(I.__clamp[Math.round((k>>> +24&255)*I.unmult)]&255)<<24|(I.__clamp[Math.round((k>>>16&255)*I.unmult)]&255)<<16|(I.__clamp[Math.round((k>>>8&255)*I.unmult)]&255)<<8|k&255);E=p;C=q;null==C&&(C=!1);null==E&&(E=0);C&&(0==(k&255)?0!=k&&(k=0):255!=(k&255)&&(I.a16=I.__alpha16[k&255],k=((k>>>24&255)*I.a16>>16&255)<<24|((k>>>16&255)*I.a16>>16&255)<<16|((k>>>8&255)*I.a16>>16&255)<<8|k&255));switch(E){case 0:t[g]=k>>>24&255;t[g+1]=k>>>16&255;t[g+2]=k>>>8&255;t[g+3]=k&255;break;case 1:t[g]=k&255;t[g+1]=k>>>24&255;t[g+2]=k>>>16&255;t[g+ +3]=k>>>8&255;break;case 2:t[g]=k>>>8&255,t[g+1]=k>>>16&255,t[g+2]=k>>>24&255,t[g+3]=k&255}d+=4;g+=4}}a.dirty=!0;a.version++};$a.fillRect=function(a,b,c,d){switch(d){case 1:c=(c>>>16&255)<<24|(c>>>8&255)<<16|(c&255)<<8|c>>>24&255;break;case 2:c=(c>>>8&255)<<24|(c>>>16&255)<<16|(c>>>24&255)<<8|c&255}a.get_transparent()||(c=(c>>>24&255)<<24|(c>>>16&255)<<16|(c>>>8&255)<<8|255);var e=a.buffer.data;if(null!=e){d=a.buffer.format;var g=a.buffer.premultiplied;g&&(0==(c&255)?0!=c&&(c=0):255!=(c&255)&&(I.a16= +I.__alpha16[c&255],c=((c>>>24&255)*I.a16>>16&255)<<24|((c>>>16&255)*I.a16>>16&255)<<16|((c>>>8&255)*I.a16>>16&255)<<8|c&255));b=new He(a,b);for(var f,l=0,t=b.height;l<t;){g=l++;f=b.byteOffset+b.stride*g;for(var m=0,h=b.width;m<h;){g=m++;var p=f+4*g,k=d;g=!1;null==g&&(g=!1);null==k&&(k=0);g&&(0==(c&255)?0!=c&&(c=0):255!=(c&255)&&(I.a16=I.__alpha16[c&255],c=((c>>>24&255)*I.a16>>16&255)<<24|((c>>>16&255)*I.a16>>16&255)<<16|((c>>>8&255)*I.a16>>16&255)<<8|c&255));switch(k){case 0:e[p]=c>>>24&255;e[p+1]= +c>>>16&255;e[p+2]=c>>>8&255;e[p+3]=c&255;break;case 1:e[p]=c&255;e[p+1]=c>>>24&255;e[p+2]=c>>>16&255;e[p+3]=c>>>8&255;break;case 2:e[p]=c>>>8&255,e[p+1]=c>>>16&255,e[p+2]=c>>>24&255,e[p+3]=c&255}}}a.dirty=!0;a.version++}};$a.floodFill=function(a,b,c,d,e){var g=a.buffer.data;if(null!=g){1==e&&(d=(d&16777215)<<8|d>>24&255);e=a.buffer.format;var f=a.buffer.premultiplied,l=0,t=4*(c+a.offsetY)*a.buffer.width+4*(b+a.offsetX),m=e,h=f;null==h&&(h=!1);null==m&&(m=0);switch(m){case 0:l=(g[t]&255)<<24|(g[t+ +1]&255)<<16|(g[t+2]&255)<<8|g[t+3]&255;break;case 1:l=(g[t+1]&255)<<24|(g[t+2]&255)<<16|(g[t+3]&255)<<8|g[t]&255;break;case 2:l=(g[t+2]&255)<<24|(g[t+1]&255)<<16|(g[t]&255)<<8|g[t+3]&255}h&&0!=(l&255)&&255!=(l&255)&&(I.unmult=255/(l&255),l=(I.__clamp[Math.round((l>>>24&255)*I.unmult)]&255)<<24|(I.__clamp[Math.round((l>>>16&255)*I.unmult)]&255)<<16|(I.__clamp[Math.round((l>>>8&255)*I.unmult)]&255)<<8|l&255);a.get_transparent()||(d=(d>>>24&255)<<24|(d>>>16&255)<<16|(d>>>8&255)<<8|255,l=(l>>>24&255)<< +24|(l>>>16&255)<<16|(l>>>8&255)<<8|255);if(d!=l){f&&(0==(d&255)?0!=d&&(d=0):255!=(d&255)&&(I.a16=I.__alpha16[d&255],d=((d>>>24&255)*I.a16>>16&255)<<24|((d>>>16&255)*I.a16>>16&255)<<16|((d>>>8&255)*I.a16>>16&255)<<8|d&255));t=[0,-1,1,0];var p=[-1,0,0,1],k=-a.offsetX,n=-a.offsetY,r=k+a.width,q=n+a.height,v=[];v.push(b);v.push(c);for(var u,w,B,E=0;0<v.length;){c=v.pop();b=v.pop();for(var C=0;4>C;)if(m=C++,u=b+t[m],w=c+p[m],!(u<k||w<n||u>=r||w>=q)){B=4*(w*a.width+u);m=e;h=f;null==h&&(h=!1);null==m&&(m= +0);switch(m){case 0:E=(g[B]&255)<<24|(g[B+1]&255)<<16|(g[B+2]&255)<<8|g[B+3]&255;break;case 1:E=(g[B+1]&255)<<24|(g[B+2]&255)<<16|(g[B+3]&255)<<8|g[B]&255;break;case 2:E=(g[B+2]&255)<<24|(g[B+1]&255)<<16|(g[B]&255)<<8|g[B+3]&255}h&&0!=(E&255)&&255!=(E&255)&&(I.unmult=255/(E&255),E=(I.__clamp[Math.round((E>>>24&255)*I.unmult)]&255)<<24|(I.__clamp[Math.round((E>>>16&255)*I.unmult)]&255)<<16|(I.__clamp[Math.round((E>>>8&255)*I.unmult)]&255)<<8|E&255);if(E==l){m=e;h=!1;null==h&&(h=!1);null==m&&(m=0); +h&&(0==(d&255)?0!=d&&(d=0):255!=(d&255)&&(I.a16=I.__alpha16[d&255],d=((d>>>24&255)*I.a16>>16&255)<<24|((d>>>16&255)*I.a16>>16&255)<<16|((d>>>8&255)*I.a16>>16&255)<<8|d&255));switch(m){case 0:g[B]=d>>>24&255;g[B+1]=d>>>16&255;g[B+2]=d>>>8&255;g[B+3]=d&255;break;case 1:g[B]=d&255;g[B+1]=d>>>24&255;g[B+2]=d>>>16&255;g[B+3]=d>>>8&255;break;case 2:g[B]=d>>>8&255,g[B+1]=d>>>16&255,g[B+2]=d>>>24&255,g[B+3]=d&255}v.push(u);v.push(w)}}}a.dirty=!0;a.version++}}};$a.gaussianBlur=function(a,b,c,d,e,g,f,l,t){null== +f&&(f=1);null==g&&(g=4);null==e&&(e=4);(l=a.get_premultiplied())&&a.set_premultiplied(!1);Ze.blur(a,b,c,d,e,g,f);a.dirty=!0;a.version++;l&&a.set_premultiplied(!0);return a};$a.getColorBoundsRect=function(a,b,c,d,e){var g=a.width+1,f=0,l=a.height+1,t=0;switch(e){case 1:e=c;c=(e>>>16&255)<<24|(e>>>8&255)<<16|(e&255)<<8|e>>>24&255;e=b;b=(e>>>16&255)<<24|(e>>>8&255)<<16|(e&255)<<8|e>>>24&255;break;case 2:e=c,c=(e>>>8&255)<<24|(e>>>16&255)<<16|(e>>>24&255)<<8|e&255,e=b,b=(e>>>8&255)<<24|(e>>>16&255)<< +16|(e>>>24&255)<<8|e&255}a.get_transparent()||(c=(c>>>24&255)<<24|(c>>>16&255)<<16|(c>>>8&255)<<8|255,b=(b>>>24&255)<<24|(b>>>16&255)<<16|(b>>>8&255)<<8|255);e=0;for(var m=a.width;e<m;){var h=e++;var p=!1;for(var k=0,n=a.height;k<n;){var r=k++;p=a.getPixel32(h,r,0);if(p=d?(p&b)==c:(p&b)!=c){h<g&&(g=h);break}}if(p)break}e=0;for(m=a.width;e<m;){h=e++;h=a.width-1-h;p=!1;k=0;for(n=a.height;k<n;)if(r=k++,p=a.getPixel32(h,r,0),p=d?(p&b)==c:(p&b)!=c){h>f&&(f=h);break}if(p)break}e=0;for(m=a.height;e<m;){r= +e++;p=!1;k=0;for(n=a.width;k<n;)if(h=k++,p=a.getPixel32(h,r,0),p=d?(p&b)==c:(p&b)!=c){r<l&&(l=r);break}if(p)break}e=0;for(m=a.height;e<m;){r=e++;r=a.height-1-r;p=!1;k=0;for(n=a.width;k<n;)if(h=k++,p=a.getPixel32(h,r,0),p=d?(p&b)==c:(p&b)!=c){r>t&&(t=r);break}if(p)break}d=f-g;c=t-l;0<d&&++d;0<c&&++c;0>d&&(d=0);0>c&&(c=0);g==f&&(d=1);l==t&&(c=1);g>a.width&&(g=0);l>a.height&&(l=0);return new Ad(g,l,d,c)};$a.getPixel=function(a,b,c,d){var e=0,g=a.buffer.data;b=4*(c+a.offsetY)*a.buffer.width+4*(b+a.offsetX); +c=a.buffer.format;a=a.buffer.premultiplied;null==a&&(a=!1);null==c&&(c=0);switch(c){case 0:e=(g[b]&255)<<24|(g[b+1]&255)<<16|(g[b+2]&255)<<8|g[b+3]&255;break;case 1:e=(g[b+1]&255)<<24|(g[b+2]&255)<<16|(g[b+3]&255)<<8|g[b]&255;break;case 2:e=(g[b+2]&255)<<24|(g[b+1]&255)<<16|(g[b]&255)<<8|g[b+3]&255}a&&0!=(e&255)&&255!=(e&255)&&(I.unmult=255/(e&255),e=(I.__clamp[Math.round((e>>>24&255)*I.unmult)]&255)<<24|(I.__clamp[Math.round((e>>>16&255)*I.unmult)]&255)<<16|(I.__clamp[Math.round((e>>>8&255)*I.unmult)]& +255)<<8|e&255);e=(e>>>24&255)<<24|(e>>>16&255)<<16|(e>>>8&255)<<8|0;switch(d){case 1:return(e&255)<<24|(e>>>24&255)<<16|(e>>>16&255)<<8|e>>>8&255;case 2:return(e>>>8&255)<<24|(e>>>16&255)<<16|(e>>>24&255)<<8|e&255;default:return e}};$a.getPixel32=function(a,b,c,d){var e=0,g=a.buffer.data;b=4*(c+a.offsetY)*a.buffer.width+4*(b+a.offsetX);c=a.buffer.format;a=a.buffer.premultiplied;null==a&&(a=!1);null==c&&(c=0);switch(c){case 0:e=(g[b]&255)<<24|(g[b+1]&255)<<16|(g[b+2]&255)<<8|g[b+3]&255;break;case 1:e= +(g[b+1]&255)<<24|(g[b+2]&255)<<16|(g[b+3]&255)<<8|g[b]&255;break;case 2:e=(g[b+2]&255)<<24|(g[b+1]&255)<<16|(g[b]&255)<<8|g[b+3]&255}a&&0!=(e&255)&&255!=(e&255)&&(I.unmult=255/(e&255),e=(I.__clamp[Math.round((e>>>24&255)*I.unmult)]&255)<<24|(I.__clamp[Math.round((e>>>16&255)*I.unmult)]&255)<<16|(I.__clamp[Math.round((e>>>8&255)*I.unmult)]&255)<<8|e&255);switch(d){case 1:return(e&255)<<24|(e>>>24&255)<<16|(e>>>16&255)<<8|e>>>8&255;case 2:return(e>>>8&255)<<24|(e>>>16&255)<<16|(e>>>24&255)<<8|e&255; +default:return e}};$a.getPixels=function(a,b,c){if(null==a.buffer.data)return null;var d=new cb(new ArrayBuffer(4*(b.width*b.height|0))),e=a.buffer.data,g=a.buffer.format,f=a.buffer.premultiplied;a=new He(a,b);for(var l,t,m=b=t=0,h=a.height;m<h;){l=m++;l=a.byteOffset+a.stride*l;for(var p=0,k=a.width;p<k;){p++;var n=g,r=f;null==r&&(r=!1);null==n&&(n=0);switch(n){case 0:t=(e[l]&255)<<24|(e[l+1]&255)<<16|(e[l+2]&255)<<8|e[l+3]&255;break;case 1:t=(e[l+1]&255)<<24|(e[l+2]&255)<<16|(e[l+3]&255)<<8|e[l]& +255;break;case 2:t=(e[l+2]&255)<<24|(e[l+1]&255)<<16|(e[l]&255)<<8|e[l+3]&255}r&&0!=(t&255)&&255!=(t&255)&&(I.unmult=255/(t&255),t=(I.__clamp[Math.round((t>>>24&255)*I.unmult)]&255)<<24|(I.__clamp[Math.round((t>>>16&255)*I.unmult)]&255)<<16|(I.__clamp[Math.round((t>>>8&255)*I.unmult)]&255)<<8|t&255);switch(c){case 1:t=(t&255)<<24|(t>>>24&255)<<16|(t>>>16&255)<<8|t>>>8&255;break;case 2:t=(t>>>8&255)<<24|(t>>>16&255)<<16|(t>>>24&255)<<8|t&255}d.b[b++]=t>>>24&255;d.b[b++]=t>>>16&255;d.b[b++]=t>>>8&255; +d.b[b++]=t&255;l+=4}}return d};$a.merge=function(a,b,c,d,e,g,f,l){if(null!=a.buffer.data&&null!=b.buffer.data){c=new He(b,c);d=new He(a,new Ad(d.x,d.y,c.width,c.height));var x=b.buffer.data,m=a.buffer.data,h=b.buffer.format,p=a.buffer.format;b=b.buffer.premultiplied;for(var k=a.buffer.premultiplied,n,r,q=0,v=0,u=0,w=d.height;u<w;){r=u++;n=c.byteOffset+c.stride*r;r=d.byteOffset+d.stride*r;for(var B=0,E=d.width;B<E;){B++;var C=h,N=b;null==N&&(N=!1);null==C&&(C=0);switch(C){case 0:q=(x[n]&255)<<24|(x[n+ +1]&255)<<16|(x[n+2]&255)<<8|x[n+3]&255;break;case 1:q=(x[n+1]&255)<<24|(x[n+2]&255)<<16|(x[n+3]&255)<<8|x[n]&255;break;case 2:q=(x[n+2]&255)<<24|(x[n+1]&255)<<16|(x[n]&255)<<8|x[n+3]&255}N&&0!=(q&255)&&255!=(q&255)&&(I.unmult=255/(q&255),q=(I.__clamp[Math.round((q>>>24&255)*I.unmult)]&255)<<24|(I.__clamp[Math.round((q>>>16&255)*I.unmult)]&255)<<16|(I.__clamp[Math.round((q>>>8&255)*I.unmult)]&255)<<8|q&255);C=p;N=k;null==N&&(N=!1);null==C&&(C=0);switch(C){case 0:v=(m[r]&255)<<24|(m[r+1]&255)<<16|(m[r+ +2]&255)<<8|m[r+3]&255;break;case 1:v=(m[r+1]&255)<<24|(m[r+2]&255)<<16|(m[r+3]&255)<<8|m[r]&255;break;case 2:v=(m[r+2]&255)<<24|(m[r+1]&255)<<16|(m[r]&255)<<8|m[r+3]&255}N&&0!=(v&255)&&255!=(v&255)&&(I.unmult=255/(v&255),v=(I.__clamp[Math.round((v>>>24&255)*I.unmult)]&255)<<24|(I.__clamp[Math.round((v>>>16&255)*I.unmult)]&255)<<16|(I.__clamp[Math.round((v>>>8&255)*I.unmult)]&255)<<8|v&255);v=((((q>>>24&255)*e+(v>>>24&255)*(256-e))/256|0)&255)<<24|(v>>>16&255)<<16|(v>>>8&255)<<8|v&255;v=(v>>>24&255)<< +24|((((q>>>16&255)*g+(v>>>16&255)*(256-g))/256|0)&255)<<16|(v>>>8&255)<<8|v&255;v=(v>>>24&255)<<24|(v>>>16&255)<<16|((((q>>>8&255)*f+(v>>>8&255)*(256-f))/256|0)&255)<<8|v&255;v=(v>>>24&255)<<24|(v>>>16&255)<<16|(v>>>8&255)<<8|(((q&255)*l+(v&255)*(256-l))/256|0)&255;C=p;N=k;null==N&&(N=!1);null==C&&(C=0);N&&(0==(v&255)?0!=v&&(v=0):255!=(v&255)&&(I.a16=I.__alpha16[v&255],v=((v>>>24&255)*I.a16>>16&255)<<24|((v>>>16&255)*I.a16>>16&255)<<16|((v>>>8&255)*I.a16>>16&255)<<8|v&255));switch(C){case 0:m[r]= +v>>>24&255;m[r+1]=v>>>16&255;m[r+2]=v>>>8&255;m[r+3]=v&255;break;case 1:m[r]=v&255;m[r+1]=v>>>24&255;m[r+2]=v>>>16&255;m[r+3]=v>>>8&255;break;case 2:m[r]=v>>>8&255,m[r+1]=v>>>16&255,m[r+2]=v>>>24&255,m[r+3]=v&255}n+=4;r+=4}}a.dirty=!0;a.version++}};$a.multiplyAlpha=function(a){var b=a.buffer.data;if(null!=b&&a.buffer.transparent){for(var c=a.buffer.format,d=0,e=0,g=b.length/4|0;e<g;){var f=e++,l=4*f,t=c,m=!1;null==m&&(m=!1);null==t&&(t=0);switch(t){case 0:d=(b[l]&255)<<24|(b[l+1]&255)<<16|(b[l+2]& +255)<<8|b[l+3]&255;break;case 1:d=(b[l+1]&255)<<24|(b[l+2]&255)<<16|(b[l+3]&255)<<8|b[l]&255;break;case 2:d=(b[l+2]&255)<<24|(b[l+1]&255)<<16|(b[l]&255)<<8|b[l+3]&255}m&&0!=(d&255)&&255!=(d&255)&&(I.unmult=255/(d&255),d=(I.__clamp[Math.round((d>>>24&255)*I.unmult)]&255)<<24|(I.__clamp[Math.round((d>>>16&255)*I.unmult)]&255)<<16|(I.__clamp[Math.round((d>>>8&255)*I.unmult)]&255)<<8|d&255);f*=4;l=c;t=!0;null==t&&(t=!1);null==l&&(l=0);t&&(0==(d&255)?0!=d&&(d=0):255!=(d&255)&&(I.a16=I.__alpha16[d&255], +d=((d>>>24&255)*I.a16>>16&255)<<24|((d>>>16&255)*I.a16>>16&255)<<16|((d>>>8&255)*I.a16>>16&255)<<8|d&255));switch(l){case 0:b[f]=d>>>24&255;b[f+1]=d>>>16&255;b[f+2]=d>>>8&255;b[f+3]=d&255;break;case 1:b[f]=d&255;b[f+1]=d>>>24&255;b[f+2]=d>>>16&255;b[f+3]=d>>>8&255;break;case 2:b[f]=d>>>8&255,b[f+1]=d>>>16&255,b[f+2]=d>>>24&255,b[f+3]=d&255}}a.buffer.premultiplied=!0;a.dirty=!0;a.version++}};$a.resize=function(a,b,c){var d=a.buffer;if(d.width!=b||d.height!=c){var e=b*c*4;e=null!=e?new Uint8Array(e): +null;e=new Qf(e,b,c);for(var g=a.width,f=a.height,l=a.get_data(),t=e.data,m,h,p,k,n,r,q,v,u,w=0;w<c;)for(var B=w++,E=0,C=b;E<C;)n=E++,v=(n+.5)/b*g-.5,u=(B+.5)/c*f-.5,r=v|0,q=u|0,m=4*(q*g+r),h=r<g-1?m+4:m,p=q<f-1?m+4*g:m,k=h!=m?p+4:p,n=4*(B*b+n),r=v-r,q=u-q,u=1-r,v=1-q,t[n]=(ca.toFloat(l[m])*u+ca.toFloat(l[h])*r)*v+(ca.toFloat(l[p])*u+ca.toFloat(l[k])*r)*q|0,t[n+1]=(ca.toFloat(l[m+1])*u+ca.toFloat(l[h+1])*r)*v+(ca.toFloat(l[p+1])*u+ca.toFloat(l[k+1])*r)*q|0,t[n+2]=(ca.toFloat(l[m+2])*u+ca.toFloat(l[h+ +2])*r)*v+(ca.toFloat(l[p+2])*u+ca.toFloat(l[k+2])*r)*q|0,t[n+3]=0==l[h+3]||0==l[p+3]||0==l[k+3]?0:l[m+3];d.data=e.data;d.width=b;d.height=c;d.__srcImage=null;d.__srcImageData=null;d.__srcCanvas=null;d.__srcContext=null;a.dirty=!0;a.version++}};$a.resizeBuffer=function(a,b,c){var d=a.buffer,e=a.get_data(),g=b*c*4;g=null!=g?new Uint8Array(g):null;for(var f,l,t=0,m=d.height;t<m;)for(var h=t++,p=0,k=d.width;p<k;)l=p++,f=4*(h*d.width+l),l=4*(h*b+l),g[l]=e[f],g[l+1]=e[f+1],g[l+2]=e[f+2],g[l+3]=e[f+3];d.data= +g;d.width=b;d.height=c;d.__srcImage=null;d.__srcImageData=null;d.__srcCanvas=null;d.__srcContext=null;a.dirty=!0;a.version++};$a.setFormat=function(a,b){var c=a.buffer.data;if(null!=c){var d=c.length/4|0;switch(a.get_format()){case 0:var e=0;var g=1;var f=2;var l=3;break;case 1:e=1;g=2;f=3;l=0;break;case 2:e=2,g=1,f=0,l=3}switch(b){case 0:var t=0;var m=1;var h=2;var p=3;break;case 1:t=1;m=2;h=3;p=0;break;case 2:t=2,m=1,h=0,p=3}for(var k=0;k<d;){var n=4*k++;var r=c[n+e];var q=c[n+g];var v=c[n+f];var u= +c[n+l];c[n+t]=r;c[n+m]=q;c[n+h]=v;c[n+p]=u}a.buffer.format=b;a.dirty=!0;a.version++}};$a.setPixel=function(a,b,c,d,e){switch(e){case 1:d=(d>>>16&255)<<24|(d>>>8&255)<<16|(d&255)<<8|d>>>24&255;break;case 2:d=(d>>>8&255)<<24|(d>>>16&255)<<16|(d>>>24&255)<<8|d&255}var g=0,f=a.buffer.data,l=4*(c+a.offsetY)*a.buffer.width+4*(b+a.offsetX);e=a.buffer.format;var t=a.buffer.premultiplied;null==t&&(t=!1);null==e&&(e=0);switch(e){case 0:g=(f[l]&255)<<24|(f[l+1]&255)<<16|(f[l+2]&255)<<8|f[l+3]&255;break;case 1:g= +(f[l+1]&255)<<24|(f[l+2]&255)<<16|(f[l+3]&255)<<8|f[l]&255;break;case 2:g=(f[l+2]&255)<<24|(f[l+1]&255)<<16|(f[l]&255)<<8|f[l+3]&255}t&&0!=(g&255)&&255!=(g&255)&&(I.unmult=255/(g&255),g=(I.__clamp[Math.round((g>>>24&255)*I.unmult)]&255)<<24|(I.__clamp[Math.round((g>>>16&255)*I.unmult)]&255)<<16|(I.__clamp[Math.round((g>>>8&255)*I.unmult)]&255)<<8|g&255);d=(d>>>24&255)<<24|(d>>>16&255)<<16|(d>>>8&255)<<8|g&255;f=a.buffer.data;l=4*(c+a.offsetY)*a.buffer.width+4*(b+a.offsetX);e=a.buffer.format;t=a.buffer.premultiplied; +null==t&&(t=!1);null==e&&(e=0);t&&(0==(d&255)?0!=d&&(d=0):255!=(d&255)&&(I.a16=I.__alpha16[d&255],d=((d>>>24&255)*I.a16>>16&255)<<24|((d>>>16&255)*I.a16>>16&255)<<16|((d>>>8&255)*I.a16>>16&255)<<8|d&255));switch(e){case 0:f[l]=d>>>24&255;f[l+1]=d>>>16&255;f[l+2]=d>>>8&255;f[l+3]=d&255;break;case 1:f[l]=d&255;f[l+1]=d>>>24&255;f[l+2]=d>>>16&255;f[l+3]=d>>>8&255;break;case 2:f[l]=d>>>8&255,f[l+1]=d>>>16&255,f[l+2]=d>>>24&255,f[l+3]=d&255}a.dirty=!0;a.version++};$a.setPixel32=function(a,b,c,d,e){switch(e){case 1:d= +(d>>>16&255)<<24|(d>>>8&255)<<16|(d&255)<<8|d>>>24&255;break;case 2:d=(d>>>8&255)<<24|(d>>>16&255)<<16|(d>>>24&255)<<8|d&255}a.get_transparent()||(d=(d>>>24&255)<<24|(d>>>16&255)<<16|(d>>>8&255)<<8|255);var g=a.buffer.data;b=4*(c+a.offsetY)*a.buffer.width+4*(b+a.offsetX);e=a.buffer.format;c=a.buffer.premultiplied;null==c&&(c=!1);null==e&&(e=0);c&&(0==(d&255)?0!=d&&(d=0):255!=(d&255)&&(I.a16=I.__alpha16[d&255],d=((d>>>24&255)*I.a16>>16&255)<<24|((d>>>16&255)*I.a16>>16&255)<<16|((d>>>8&255)*I.a16>> +16&255)<<8|d&255));switch(e){case 0:g[b]=d>>>24&255;g[b+1]=d>>>16&255;g[b+2]=d>>>8&255;g[b+3]=d&255;break;case 1:g[b]=d&255;g[b+1]=d>>>24&255;g[b+2]=d>>>16&255;g[b+3]=d>>>8&255;break;case 2:g[b]=d>>>8&255,g[b+1]=d>>>16&255,g[b+2]=d>>>24&255,g[b+3]=d&255}a.dirty=!0;a.version++};$a.setPixels=function(a,b,c,d,e){if(null!=a.buffer.data){var g=a.buffer.data,f=a.buffer.format,l=a.buffer.premultiplied;b=new He(a,b);var t=a.get_transparent(),m=c.bytes;c=c.offset;e=e!=zg.BIG_ENDIAN;for(var h=0,p=b.height;h< +p;){var k=h++;k=b.byteOffset+b.stride*k;for(var n=0,r=b.width;n<r;){var q=n++;var v=e?m.getInt32(c):m.b[c+3]|m.b[c+2]<<8|m.b[c+1]<<16|m.b[c]<<24;c+=4;switch(d){case 1:v=(v>>>16&255)<<24|(v>>>8&255)<<16|(v&255)<<8|v>>>24&255;break;case 2:v=(v>>>8&255)<<24|(v>>>16&255)<<16|(v>>>24&255)<<8|v&255}t||(v=(v>>>24&255)<<24|(v>>>16&255)<<16|(v>>>8&255)<<8|255);q=k+4*q;var u=f,w=l;null==w&&(w=!1);null==u&&(u=0);w&&(0==(v&255)?0!=v&&(v=0):255!=(v&255)&&(I.a16=I.__alpha16[v&255],v=((v>>>24&255)*I.a16>>16&255)<< +24|((v>>>16&255)*I.a16>>16&255)<<16|((v>>>8&255)*I.a16>>16&255)<<8|v&255));switch(u){case 0:g[q]=v>>>24&255;g[q+1]=v>>>16&255;g[q+2]=v>>>8&255;g[q+3]=v&255;break;case 1:g[q]=v&255;g[q+1]=v>>>24&255;g[q+2]=v>>>16&255;g[q+3]=v>>>8&255;break;case 2:g[q]=v>>>8&255,g[q+1]=v>>>16&255,g[q+2]=v>>>24&255,g[q+3]=v&255}}}a.dirty=!0;a.version++}};$a.threshold=function(a,b,c,d,e,g,f,l,t,m){switch(m){case 1:var x=f;f=(x>>>16&255)<<24|(x>>>8&255)<<16|(x&255)<<8|x>>>24&255;x=l;l=(x>>>16&255)<<24|(x>>>8&255)<<16| +(x&255)<<8|x>>>24&255;x=g;g=(x>>>16&255)<<24|(x>>>8&255)<<16|(x&255)<<8|x>>>24&255;break;case 2:x=f,f=(x>>>8&255)<<24|(x>>>16&255)<<16|(x>>>24&255)<<8|x&255,x=l,l=(x>>>8&255)<<24|(x>>>16&255)<<16|(x>>>24&255)<<8|x&255,x=g,g=(x>>>8&255)<<24|(x>>>16&255)<<16|(x>>>24&255)<<8|x&255}switch(e){case "!=":e=0;break;case "<":e=2;break;case "<=":e=3;break;case "==":e=1;break;case ">":e=4;break;case ">=":e=5;break;default:e=-1}if(-1==e)return 0;x=b.buffer.data;var h=a.buffer.data;if(null==x||null==h)return 0; +var k=0;c=new He(b,c);d=new He(a,new Ad(d.x,d.y,c.width,c.height));var n=b.buffer.format,r=a.buffer.format;b=b.buffer.premultiplied;for(var q=a.buffer.premultiplied,v,u,w=0,B=0,E=d.height;B<E;){u=B++;v=c.byteOffset+c.stride*u;u=d.byteOffset+d.stride*u;for(var C=0,N=d.width;C<N;){C++;m=n;var z=b;null==z&&(z=!1);null==m&&(m=0);switch(m){case 0:w=(x[v]&255)<<24|(x[v+1]&255)<<16|(x[v+2]&255)<<8|x[v+3]&255;break;case 1:w=(x[v+1]&255)<<24|(x[v+2]&255)<<16|(x[v+3]&255)<<8|x[v]&255;break;case 2:w=(x[v+2]& +255)<<24|(x[v+1]&255)<<16|(x[v]&255)<<8|x[v+3]&255}z&&0!=(w&255)&&255!=(w&255)&&(I.unmult=255/(w&255),w=(I.__clamp[Math.round((w>>>24&255)*I.unmult)]&255)<<24|(I.__clamp[Math.round((w>>>16&255)*I.unmult)]&255)<<16|(I.__clamp[Math.round((w>>>8&255)*I.unmult)]&255)<<8|w&255);m=w&l;z=m>>>24&255;var J=g>>>24&255;z!=J?m=ca.gt(z,J)?1:-1:(z=m>>>16&255,J=g>>>16&255,z!=J?m=ca.gt(z,J)?1:-1:(z=m>>>8&255,J=g>>>8&255,z!=J?m=ca.gt(z,J)?1:-1:(z=m&255,J=g&255,m=z!=J?ca.gt(z,J)?1:-1:0)));switch(e){case 0:m=0!=m;break; +case 1:m=0==m;break;case 2:m=-1==m;break;case 3:m=0==m||-1==m;break;case 4:m=1==m;break;case 5:m=0==m||1==m;break;default:m=!1}if(m){m=r;z=q;null==z&&(z=!1);null==m&&(m=0);z&&(0==(f&255)?0!=f&&(f=0):255!=(f&255)&&(I.a16=I.__alpha16[f&255],f=((f>>>24&255)*I.a16>>16&255)<<24|((f>>>16&255)*I.a16>>16&255)<<16|((f>>>8&255)*I.a16>>16&255)<<8|f&255));switch(m){case 0:h[u]=f>>>24&255;h[u+1]=f>>>16&255;h[u+2]=f>>>8&255;h[u+3]=f&255;break;case 1:h[u]=f&255;h[u+1]=f>>>24&255;h[u+2]=f>>>16&255;h[u+3]=f>>>8&255; +break;case 2:h[u]=f>>>8&255,h[u+1]=f>>>16&255,h[u+2]=f>>>24&255,h[u+3]=f&255}++k}else if(t)switch(m=r,z=q,null==z&&(z=!1),null==m&&(m=0),z&&(0==(w&255)?0!=w&&(w=0):255!=(w&255)&&(I.a16=I.__alpha16[w&255],w=((w>>>24&255)*I.a16>>16&255)<<24|((w>>>16&255)*I.a16>>16&255)<<16|((w>>>8&255)*I.a16>>16&255)<<8|w&255)),m){case 0:h[u]=w>>>24&255;h[u+1]=w>>>16&255;h[u+2]=w>>>8&255;h[u+3]=w&255;break;case 1:h[u]=w&255;h[u+1]=w>>>24&255;h[u+2]=w>>>16&255;h[u+3]=w>>>8&255;break;case 2:h[u]=w>>>8&255,h[u+1]=w>>> +16&255,h[u+2]=w>>>24&255,h[u+3]=w&255}v+=4;u+=4}}0<k&&(a.dirty=!0,a.version++);return k};$a.unmultiplyAlpha=function(a){var b=a.buffer.data;if(null!=b){for(var c=a.buffer.format,d=0,e=0,g=b.length/4|0;e<g;){var f=e++,l=4*f,t=c,m=!0;null==m&&(m=!1);null==t&&(t=0);switch(t){case 0:d=(b[l]&255)<<24|(b[l+1]&255)<<16|(b[l+2]&255)<<8|b[l+3]&255;break;case 1:d=(b[l+1]&255)<<24|(b[l+2]&255)<<16|(b[l+3]&255)<<8|b[l]&255;break;case 2:d=(b[l+2]&255)<<24|(b[l+1]&255)<<16|(b[l]&255)<<8|b[l+3]&255}m&&0!=(d&255)&& +255!=(d&255)&&(I.unmult=255/(d&255),d=(I.__clamp[Math.round((d>>>24&255)*I.unmult)]&255)<<24|(I.__clamp[Math.round((d>>>16&255)*I.unmult)]&255)<<16|(I.__clamp[Math.round((d>>>8&255)*I.unmult)]&255)<<8|d&255);f*=4;l=c;t=!1;null==t&&(t=!1);null==l&&(l=0);t&&(0==(d&255)?0!=d&&(d=0):255!=(d&255)&&(I.a16=I.__alpha16[d&255],d=((d>>>24&255)*I.a16>>16&255)<<24|((d>>>16&255)*I.a16>>16&255)<<16|((d>>>8&255)*I.a16>>16&255)<<8|d&255));switch(l){case 0:b[f]=d>>>24&255;b[f+1]=d>>>16&255;b[f+2]=d>>>8&255;b[f+3]= +d&255;break;case 1:b[f]=d&255;b[f+1]=d>>>24&255;b[f+2]=d>>>16&255;b[f+3]=d>>>8&255;break;case 2:b[f]=d>>>8&255,b[f+1]=d>>>16&255,b[f+2]=d>>>24&255,b[f+3]=d&255}}a.buffer.premultiplied=!1;a.dirty=!0;a.version++}};$a.__boxBlur=function(a,b,c,d,e,g){b.set(a);e|=0;g|=0;$a.__boxBlurH(b,a,c,d,e,0);$a.__boxBlurH(b,a,c,d,e,1);$a.__boxBlurH(b,a,c,d,e,2);$a.__boxBlurH(b,a,c,d,e,3);e=1/(g+g+1);for(var f=4*c,l,t,m,h,p,k,n=0,r=c;n<r;){l=n++;t=l*=4;m=l+g*f;h=a[l];p=a[l+f*(d-1)];k=(g+1)*h;for(var q=0,v=g;q<v;){var u= +q++;k+=a[l+u*f]}q=0;for(v=g+1;q<v;)q++,k+=a[m]-h,b[l]=Math.round(ca.toFloat(k)*e),m+=f,l+=f;h=g+1;for(q=d-g;h<q;)h++,k+=a[m]-a[t],b[l]=Math.round(ca.toFloat(k)*e),t+=f,m+=f,l+=f;m=d-g;for(h=d;m<h;)m++,k+=p-a[t],b[l]=Math.round(ca.toFloat(k)*e),t+=f,l+=f}e=1/(g+g+1);f=4*c;n=0;for(r=c;n<r;){l=n++;t=l=4*l+1;m=l+g*f;h=a[l];p=a[l+f*(d-1)];k=(g+1)*h;q=0;for(v=g;q<v;)u=q++,k+=a[l+u*f];q=0;for(v=g+1;q<v;)q++,k+=a[m]-h,b[l]=Math.round(ca.toFloat(k)*e),m+=f,l+=f;h=g+1;for(q=d-g;h<q;)h++,k+=a[m]-a[t],b[l]=Math.round(ca.toFloat(k)* +e),t+=f,m+=f,l+=f;m=d-g;for(h=d;m<h;)m++,k+=p-a[t],b[l]=Math.round(ca.toFloat(k)*e),t+=f,l+=f}e=1/(g+g+1);f=4*c;n=0;for(r=c;n<r;){l=n++;t=l=4*l+2;m=l+g*f;h=a[l];p=a[l+f*(d-1)];k=(g+1)*h;q=0;for(v=g;q<v;)u=q++,k+=a[l+u*f];q=0;for(v=g+1;q<v;)q++,k+=a[m]-h,b[l]=Math.round(ca.toFloat(k)*e),m+=f,l+=f;h=g+1;for(q=d-g;h<q;)h++,k+=a[m]-a[t],b[l]=Math.round(ca.toFloat(k)*e),t+=f,m+=f,l+=f;m=d-g;for(h=d;m<h;)m++,k+=p-a[t],b[l]=Math.round(ca.toFloat(k)*e),t+=f,l+=f}e=1/(g+g+1);f=4*c;n=0;for(r=c;n<r;){l=n++; +t=l=4*l+3;m=l+g*f;h=a[l];p=a[l+f*(d-1)];k=(g+1)*h;q=0;for(v=g;q<v;)u=q++,k+=a[l+u*f];q=0;for(v=g+1;q<v;)q++,k+=a[m]-h,b[l]=Math.round(ca.toFloat(k)*e),m+=f,l+=f;h=g+1;for(q=d-g;h<q;)h++,k+=a[m]-a[t],b[l]=Math.round(ca.toFloat(k)*e),t+=f,m+=f,l+=f;m=d-g;for(h=d;m<h;)m++,k+=p-a[t],b[l]=Math.round(ca.toFloat(k)*e),t+=f,l+=f}};$a.__boxBlurH=function(a,b,c,d,e,g){for(var f=1/(e+e+1),l,t,m,h,p,k,n=0;n<d;){t=l=n++*c;m=l+e;h=a[4*l+g];p=a[4*(l+c-1)+g];k=(e+1)*h;for(var r=0,q=e;r<q;){var v=r++;k+=a[4*(l+v)+ +g]}r=0;for(q=e+1;r<q;)r++,k+=a[4*m+g]-h,b[4*l+g]=Math.round(ca.toFloat(k)*f),++m,++l;h=e+1;for(r=c-e;h<r;)h++,k+=a[4*m+g]-a[4*t+g],b[4*l+g]=Math.round(ca.toFloat(k)*f),++m,++t,++l;m=c-e;for(h=c;m<h;)m++,k+=p-a[4*t+g],b[4*l+g]=Math.round(ca.toFloat(k)*f),++t,++l}};$a.__boxBlurT=function(a,b,c,d,e,g){for(var f=1/(e+e+1),l=4*c,t,m,h,p,k,n,r=0;r<c;){m=t=4*r++ +g;h=t+e*l;p=a[t];k=a[t+l*(d-1)];n=(e+1)*p;for(var q=0,v=e;q<v;){var u=q++;n+=a[t+u*l]}q=0;for(v=e+1;q<v;)q++,n+=a[h]-p,b[t]=Math.round(ca.toFloat(n)* +f),h+=l,t+=l;p=e+1;for(q=d-e;p<q;)p++,n+=a[h]-a[m],b[t]=Math.round(ca.toFloat(n)*f),m+=l,h+=l,t+=l;h=d-e;for(p=d;h<p;)h++,n+=k-a[m],b[t]=Math.round(ca.toFloat(n)*f),m+=l,t+=l}};$a.__calculateSourceOffset=function(a,b,c,d){c-=b.x|0;b=d-(b.y|0);return 0>c||0>b||c>=a.width||b>=a.height?-1:4*(b*(a.width|0)+c)};$a.__getBoxesForGaussianBlur=function(a,b){var c=Math.floor(Math.sqrt(12*a*a/b+1));0==c%2&&--c;var d=c+2;a=Math.round((12*a*a-b*c*c-4*b*c-3*b)/(-4*c-4));for(var e=[],g=0;g<b;){var f=g++;e.push(f< +a?c:d)}return e};$a.__pixelCompare=function(a,b){var c=a>>>24&255,d=b>>>24&255;if(c!=d)return ca.gt(c,d)?1:-1;c=a>>>16&255;d=b>>>16&255;if(c!=d)return ca.gt(c,d)?1:-1;c=a>>>8&255;d=b>>>8&255;if(c!=d)return ca.gt(c,d)?1:-1;c=a&255;d=b&255;return c!=d?ca.gt(c,d)?1:-1:0};$a.__translatePixel=function(a,b,c,d,e,g,f){c=4*(g*(c.width|0)+e);b=$a.__calculateSourceOffset(b,d,e,g);0>b?a[c]=a[c+1]=a[c+2]=a[c+3]=0:(a[c]=a[b],a[c+1]=a[b+1],a[c+2]=a[b+2],f=ca.toFloat(a[b+3])*f|0,a[c+3]=0>f?0:255<f?255:f)};var He= +function(a,b){this.image=a;null==b?this.rect=a.get_rect():(0>b.x&&(b.x=0),0>b.y&&(b.y=0),b.x+b.width>a.width&&(b.width=a.width-b.x),b.y+b.height>a.height&&(b.height=a.height-b.y),0>b.width&&(b.width=0),0>b.height&&(b.height=0),this.rect=b);this.stride=a.buffer.get_stride();this.__update()};k["lime._internal.graphics._ImageDataUtil.ImageDataView"]=He;He.__name__="lime._internal.graphics._ImageDataUtil.ImageDataView";He.prototype={x:null,y:null,height:null,width:null,byteOffset:null,image:null,rect:null, +stride:null,tempRect:null,clip:function(a,b,c,d){null==this.tempRect&&(this.tempRect=new Ad);this.tempRect.setTo(a,b,c,d);this.rect.intersection(this.tempRect,this.rect);this.__update()},hasRow:function(a){return 0<=a?a<this.height:!1},offset:function(a,b){0>a?(this.rect.x+=a,0>this.rect.x&&(this.rect.x=0)):(this.rect.x+=a,this.rect.width-=a);0>b?(this.rect.y+=b,0>this.rect.y&&(this.rect.y=0)):(this.rect.y+=b,this.rect.height-=b);this.__update()},row:function(a){return this.byteOffset+this.stride* +a},__update:function(){this.x=Math.ceil(this.rect.x);this.y=Math.ceil(this.rect.y);this.width=Math.floor(this.rect.width);this.height=Math.floor(this.rect.height);this.byteOffset=this.stride*(this.y+this.image.offsetY)+4*(this.x+this.image.offsetX)},__class__:He};var Ze=function(){};k["lime._internal.graphics.StackBlur"]=Ze;Ze.__name__="lime._internal.graphics.StackBlur";Ze.blur=function(a,b,c,d,e,g,f){a.copyPixels(b,c,d);Ze.__stackBlurCanvasRGBA(a,c.width|0,c.height|0,e,g,f)};Ze.__stackBlurCanvasRGBA= +function(a,b,c,d,e,g){d=Math.round(d)>>1;e=Math.round(e)>>1;if(null!=Ze.MUL_TABLE&&(d>=Ze.MUL_TABLE.length&&(d=Ze.MUL_TABLE.length-1),e>=Ze.MUL_TABLE.length&&(e=Ze.MUL_TABLE.length-1),!(0>d||0>e))){1>g&&(g=1);3<g&&(g=3);a=a.get_data();var f,l,t=d+d+1;var m=e+e+1;var h=b-1,p=c-1,k=d+1,n=e+1,r=new Hi,q=r;var v=1;for(var u=t;v<u;)v++,q=q.n=new Hi;q.n=r;var w=t=new Hi;v=1;for(u=m;v<u;)v++,w=w.n=new Hi;w.n=t;for(var B=Ze.MUL_TABLE[d],E=Ze.SHG_TABLE[d],C=Ze.MUL_TABLE[e],N=Ze.SHG_TABLE[e];0<g;){--g;var z= +l=0;var J=B,D=E;for(f=c;;){var A=a[l];m=k*A;var Ha=a[l+1];var F=k*Ha;var H=a[l+2];var G=k*H;v=a[l+3];var I=k*v;q=r;for(w=k;q.r=A,q.g=Ha,q.b=H,q.a=v,q=q.n,-1<--w;);v=1;for(u=k;v<u;)w=v++,w=l+((h<w?h:w)<<2),m+=q.r=a[w],F+=q.g=a[w+1],G+=q.b=a[w+2],I+=q.a=a[w+3],q=q.n;u=r;q=0;for(v=b;q<v;)w=q++,a[l++]=m*J>>>D,a[l++]=F*J>>>D,a[l++]=G*J>>>D,a[l++]=I*J>>>D,w=w+d+1,w=z+(w<h?w:h)<<2,m-=u.r-(u.r=a[w]),F-=u.g-(u.g=a[w+1]),G-=u.b-(u.b=a[w+2]),I-=u.a-(u.a=a[w+3]),u=u.n;z+=b;if(!(0<--f))break}J=C;D=N;f=0;for(z= +b;f<z;){q=f++;l=q<<2;A=a[l];m=n*A;Ha=a[l+1];F=n*Ha;H=a[l+2];G=n*H;v=a[l+3];I=n*v;w=t;l=0;for(u=n;l<u;)l++,w.r=A,w.g=Ha,w.b=H,w.a=v,w=w.n;v=b;u=1;for(A=e+1;u<A;)Ha=u++,l=v+q<<2,m+=w.r=a[l],F+=w.g=a[l+1],G+=w.b=a[l+2],I+=w.a=a[l+3],w=w.n,Ha<p&&(v+=b);l=q;u=t;if(0<g)for(A=0,Ha=c;A<Ha;)H=A++,w=l<<2,v=I*J>>>D,a[w+3]=v,0<v?(a[w]=m*J>>>D,a[w+1]=F*J>>>D,a[w+2]=G*J>>>D):a[w]=a[w+1]=a[w+2]=0,w=H+n,w=q+(w<p?w:p)*b<<2,m-=u.r-(u.r=a[w]),F-=u.g-(u.g=a[w+1]),G-=u.b-(u.b=a[w+2]),I-=u.a-(u.a=a[w+3]),u=u.n,l+=b;else for(var L= +0,y=c;L<y;){var K=L++;w=l<<2;v=I*J>>>D;a[w+3]=v;0<v?(v=255/v,A=(m*J>>>D)*v|0,Ha=(F*J>>>D)*v|0,H=(G*J>>>D)*v|0,a[w]=255<A?255:A,a[w+1]=255<Ha?255:Ha,a[w+2]=255<H?255:H):a[w]=a[w+1]=a[w+2]=0;w=K+n;w=q+(w<p?w:p)*b<<2;m-=u.r-(u.r=a[w]);F-=u.g-(u.g=a[w+1]);G-=u.b-(u.b=a[w+2]);I-=u.a-(u.a=a[w+3]);u=u.n;l+=b}}}}};var Hi=function(){this.a=this.b=this.g=this.r=0;this.n=null};k["lime._internal.graphics.BlurStack"]=Hi;Hi.__name__="lime._internal.graphics.BlurStack";Hi.prototype={r:null,g:null,b:null,a:null, +n:null,__class__:Hi};var zu=function(){};k["lime._internal.macros.AssetsMacro"]=zu;zu.__name__="lime._internal.macros.AssetsMacro";var yo=function(a){this.i=0;this.string=a;this.index=0;this.endIndex=a.length};k["lime._internal.unifill.CodePointIter"]=yo;yo.__name__="lime._internal.unifill.CodePointIter";yo.prototype={string:null,index:null,endIndex:null,hasNext:function(){return this.index<this.endIndex},i:null,next:function(){var a=this.i=this.index,b=this.string;b=b.charCodeAt(this.index);this.index= +a+(55296<=b&&56319>=b?2:1);b=this.string;return Ag.codePointAt(b,this.i)},__class__:yo};var Ii=function(){};k["lime._internal.unifill.Exception"]=Ii;Ii.__name__="lime._internal.unifill.Exception";Ii.prototype={toString:function(){throw R.thrown(null);},__class__:Ii};var zo=function(a){this.code=a};k["lime._internal.unifill.InvalidCodePoint"]=zo;zo.__name__="lime._internal.unifill.InvalidCodePoint";zo.__super__=Ii;zo.prototype=u(Ii.prototype,{code:null,toString:function(){return"InvalidCodePoint(code: "+ +this.code+")"},__class__:zo});var xh=function(a){this.index=a};k["lime._internal.unifill.InvalidCodeUnitSequence"]=xh;xh.__name__="lime._internal.unifill.InvalidCodeUnitSequence";xh.__super__=Ii;xh.prototype=u(Ii.prototype,{index:null,toString:function(){return"InvalidCodeUnitSequence(index: "+this.index+")"},__class__:xh});var $e=function(){};k["lime._internal.unifill.InternalEncoding"]=$e;$e.__name__="lime._internal.unifill.InternalEncoding";$e.__properties__={get_internalEncoding:"get_internalEncoding"}; +$e.get_internalEncoding=function(){return"UTF-16"};$e.codeUnitAt=function(a,b){return a.charCodeAt(b)};$e.codePointAt=function(a,b){return Ag.codePointAt(a,b)};$e.charAt=function(a,b){var c=a.charCodeAt(b);return b=F.substr(a,b,55296<=c&&56319>=c?2:1)};$e.codePointCount=function(a,b,c){return Ag.codePointCount(a,b,c)};$e.codePointWidthAt=function(a,b){a=a.charCodeAt(b);return 55296<=a&&56319>=a?2:1};$e.codePointWidthBefore=function(a,b){a=a.charCodeAt(b-1);return 56320<=a&&57343>=a?2:1};$e.offsetByCodePoints= +function(a,b,c){if(0<=c)for(var d=a.length,e=0;e<c&&b<d;){var g=a.charCodeAt(b);b+=55296<=g&&56319>=g?2:1;++e}else for(d=0;d<-c&&0<b;)g=a.charCodeAt(b-1),b-=56320<=g&&57343>=g?2:1,++d;return b};$e.backwardOffsetByCodePoints=function(a,b,c){c=-c;if(0<=c)for(var d=a.length,e=0;e<c&&b<d;){var g=a.charCodeAt(b);b+=55296<=g&&56319>=g?2:1;++e}else for(d=0;d<-c&&0<b;)g=a.charCodeAt(b-1),b-=56320<=g&&57343>=g?2:1,++d;return b};$e.fromCodePoint=function(a){return 65535>=a?String.fromCodePoint(a):String.fromCodePoint((a>> +10)+55232)+String.fromCodePoint(a&1023|56320)};$e.fromCodePoints=function(a){var b="";for(a=M(a);a.hasNext();){var c=a.next();65535>=c?b+=String.fromCodePoint(c):(b+=String.fromCodePoint((c>>10)+55232),b+=String.fromCodePoint(c&1023|56320))}return b};$e.validate=function(a){Ag.validate(a)};$e.isValidString=function(a){try{return Ag.validate(a),!0}catch(b){sa.lastError=b;if(R.caught(b).unwrap()instanceof xh)return!1;throw b;}};$e.encodeWith=function(a,b){65535>=b?a(b):(a((b>>10)+55232),a(b&1023|56320))}; +var Ct=function(a,b,c){this.i=0;this.string=a;this.index=b;this.endIndex=c};k["lime._internal.unifill.InternalEncodingIter"]=Ct;Ct.__name__="lime._internal.unifill.InternalEncodingIter";Ct.prototype={string:null,index:null,endIndex:null,hasNext:function(){return this.index<this.endIndex},i:null,next:function(){var a=this.i=this.index,b=this.string.charCodeAt(this.index);this.index=a+(55296<=b&&56319>=b?2:1);return this.i},__class__:Ct};var Rf=function(){};k["lime._internal.unifill.Unicode"]=Rf;Rf.__name__= +"lime._internal.unifill.Unicode";Rf.decodeSurrogate=function(a,b){return a-55232<<10|b&1023};Rf.encodeHighSurrogate=function(a){return(a>>10)+55232};Rf.encodeLowSurrogate=function(a){return a&1023|56320};Rf.isScalar=function(a){return 0<=a&&1114111>=a&&!(55296<=a&&56319>=a)?!(56320<=a&&57343>=a):!1};Rf.isHighSurrogate=function(a){return 55296<=a?56319>=a:!1};Rf.isLowSurrogate=function(a){return 56320<=a?57343>=a:!1};var sf=function(){};k["lime._internal.unifill.Unifill"]=sf;sf.__name__="lime._internal.unifill.Unifill"; +sf.uLength=function(a){return Ag.codePointCount(a,0,a.length)};sf.uCharAt=function(a,b){var c=a;if(0<=b)for(var d=0,e=c.length,g=0;g<b&&d<e;){var f=c.charCodeAt(d);d+=55296<=f&&56319>=f?2:1;++g}else for(e=d=0;e<-b&&0<d;)f=c.charCodeAt(d-1),d-=56320<=f&&57343>=f?2:1,++e;b=d;c=a;f=c.charCodeAt(b);return a=F.substr(c,b,55296<=f&&56319>=f?2:1)};sf.uCharCodeAt=function(a,b){var c=a;if(0<=b)for(var d=0,e=c.length,g=0;g<b&&d<e;){var f=c.charCodeAt(d);d+=55296<=f&&56319>=f?2:1;++g}else for(e=d=0;e<-b&&0< +d;)f=c.charCodeAt(d-1),d-=56320<=f&&57343>=f?2:1,++e;return Ag.codePointAt(a,d)};sf.uCodePointAt=function(a,b){var c=a;if(0<=b)for(var d=0,e=c.length,g=0;g<b&&d<e;){var f=c.charCodeAt(d);d+=55296<=f&&56319>=f?2:1;++g}else for(e=d=0;e<-b&&0<d;)f=c.charCodeAt(d-1),d-=56320<=f&&57343>=f?2:1,++e;return Ag.codePointAt(a,d)};sf.uIndexOf=function(a,b,c){null==c&&(c=0);var d=a;if(0<=c)for(var e=0,g=d.length,f=0;f<c&&e<g;){var l=d.charCodeAt(e);e+=55296<=l&&56319>=l?2:1;++f}else for(g=e=0;g<-c&&0<e;)l=d.charCodeAt(e- +1),e-=56320<=l&&57343>=l?2:1,++g;e=a.indexOf(b,e);return 0<=e?Ag.codePointCount(a,0,e):-1};sf.uLastIndexOf=function(a,b,c){null==c&&(c=a.length-1);var d=a;if(0<=c)for(var e=0,g=d.length,f=0;f<c&&e<g;){var l=d.charCodeAt(e);e+=55296<=l&&56319>=l?2:1;++f}else for(g=e=0;g<-c&&0<e;)l=d.charCodeAt(e-1),e-=56320<=l&&57343>=l?2:1,++g;e=a.lastIndexOf(b,e);return 0<=e?Ag.codePointCount(a,0,e):-1};sf.uSplit=function(a,b){if(0==b.length){b=[];for(var c,d=0,e=a.length;d<e;){c=d;var g=a.charCodeAt(d);d+=55296<= +g&&56319>=g?2:1;g=a;var f=g.charCodeAt(c);c=F.substr(g,c,55296<=f&&56319>=f?2:1);b.push(c)}return b}return a.split(b)};sf.uSubstr=function(a,b,c){var d=0<=b?0:a.length;var e=a;if(0<=b)for(var g=e.length,f=0;f<b&&d<g;){var l=e.charCodeAt(d);d+=55296<=l&&56319>=l?2:1;++f}else for(g=0;g<-b&&0<d;)l=e.charCodeAt(d-1),d-=56320<=l&&57343>=l?2:1,++g;b=d;if(null==c)c=a.length;else if(0>c)c=b;else{e=a;if(0<=c)for(d=b,g=e.length,f=0;f<c&&d<g;)l=e.charCodeAt(d),d+=55296<=l&&56319>=l?2:1,++f;else for(d=b,g=0;g< +-c&&0<d;)l=e.charCodeAt(d-1),d-=56320<=l&&57343>=l?2:1,++g;c=d}return a.substring(b,c)};sf.uSubstring=function(a,b,c){if(0>b)b=0;else{var d=a;if(0<=b)for(var e=0,g=d.length,f=0;f<b&&e<g;){var l=d.charCodeAt(e);e+=55296<=l&&56319>=l?2:1;++f}else for(g=e=0;g<-b&&0<e;)l=d.charCodeAt(e-1),e-=56320<=l&&57343>=l?2:1,++g;b=e}if(null==c)c=a.length;else if(0>c)c=0;else{d=a;if(0<=c)for(e=0,g=d.length,f=0;f<c&&e<g;)l=d.charCodeAt(e),e+=55296<=l&&56319>=l?2:1,++f;else for(g=e=0;g<-c&&0<e;)l=d.charCodeAt(e-1), +e-=56320<=l&&57343>=l?2:1,++g;c=e}return a.substring(b,c)};sf.uIterator=function(a){return new yo(a)};sf.uCompare=function(a,b){for(var c,d=0,e=a.length,g,f=0,l=b.length;d<e&&f<l;){c=d;g=a.charCodeAt(d);d+=55296<=g&&56319>=g?2:1;c=Ag.codePointAt(a,c);g=f;var t=b.charCodeAt(f);f+=55296<=t&&56319>=t?2:1;g=Ag.codePointAt(b,g);if(c<g)return-1;if(c>g)return 1}return f<l?-1:d<e?1:0};sf.uToString=function(a){var b="";for(a=M(a);a.hasNext();){var c=a.next();65535>=c?b+=String.fromCodePoint(c):(b+=String.fromCodePoint((c>> +10)+55232),b+=String.fromCodePoint(c&1023|56320))}return b};sf.uAddChar=function(a,b){65535>=b?a.b+=String.fromCodePoint(b):(a.b+=String.fromCodePoint((b>>10)+55232),a.b+=String.fromCodePoint(b&1023|56320))};var Ag={__properties__:{get_length:"get_length"},fromCodePoint:function(a){return 65535>=a?String.fromCodePoint(a):String.fromCodePoint((a>>10)+55232)+String.fromCodePoint(a&1023|56320)},fromCodePoints:function(a){var b="";for(a=M(a);a.hasNext();){var c=a.next();65535>=c?b+=String.fromCodePoint(c): +(b+=String.fromCodePoint((c>>10)+55232),b+=String.fromCodePoint(c&1023|56320))}return b},fromString:function(a){return a},fromArray:function(a){for(var b="",c=0;c<a.length;){var d=a[c];++c;b+=String.fromCodePoint(d)}return b},encodeWith:function(a,b){65535>=b?a(b):(a((b>>10)+55232),a(b&1023|56320))},codeUnitAt:function(a,b){return a.charCodeAt(b)},codePointAt:function(a,b){return Ji.decode_code_point(a.length,function(b){return a.charCodeAt(b)},b)},charAt:function(a,b){var c=a.charCodeAt(b);return F.substr(a, +b,55296<=c&&56319>=c?2:1)},codePointCount:function(a,b,c){for(var d=0;b<c;){var e=a.charCodeAt(b);b+=55296<=e&&56319>=e?2:1;++d}return d},codePointWidthAt:function(a,b){a=a.charCodeAt(b);return 55296<=a&&56319>=a?2:1},codePointWidthBefore:function(a,b){a=a.charCodeAt(b-1);return 56320<=a&&57343>=a?2:1},offsetByCodePoints:function(a,b,c){if(0<=c)for(var d=a.length,e=0;e<c&&b<d;){var g=a.charCodeAt(b);b+=55296<=g&&56319>=g?2:1;++e}else for(d=0;d<-c&&0<b;)g=a.charCodeAt(b-1),b-=56320<=g&&57343>=g?2: +1,++d;return b},substr:function(a,b,c){return F.substr(a,b,c)},validate:function(a){for(var b=a.length,c=function(b){return a.charCodeAt(b)},d=0;d<b;){Ji.decode_code_point(b,c,d);var e=a.charCodeAt(d);d+=55296<=e&&56319>=e?2:1}},toString:function(a){return a},toArray:function(a){for(var b=0,c=a.length,d=[];b<c;)d.push(a.charCodeAt(b++));return d},_new:function(a){return a},get_length:function(a){return a.length},forward_offset_by_code_points:function(a,b,c){for(var d=a.length,e=0;e<c&&b<d;){var g= +a.charCodeAt(b);b+=55296<=g&&56319>=g?2:1;++e}return b},backward_offset_by_code_points:function(a,b,c){for(var d=0;d<c&&0<b;){var e=a.charCodeAt(b-1);b-=56320<=e&&57343>=e?2:1;++d}return b}},Ji=function(){};k["lime._internal.unifill._Utf16.Utf16Impl"]=Ji;Ji.__name__="lime._internal.unifill._Utf16.Utf16Impl";Ji.code_point_width=function(a){return 55296<=a&&56319>=a?2:1};Ji.find_prev_code_point=function(a,b){a=a(b-1);return 56320<=a&&57343>=a?2:1};Ji.encode_code_point=function(a,b){65535>=b?a(b):(a((b>> +10)+55232),a(b&1023|56320))};Ji.decode_code_point=function(a,b,c){if(0>c||a<=c)throw R.thrown(new xh(c));var d=b(c);if(55296<=d&&56319>=d){if(0>c+1||a<=c+1)throw R.thrown(new xh(c));a=b(c+1);if(56320<=a&&57343>=a)return d-55232<<10|a&1023;throw R.thrown(new xh(c));}if(56320<=d&&57343>=d)throw R.thrown(new xh(c));return d};var Pj=function(){};k["lime.app.IModule"]=Pj;Pj.__name__="lime.app.IModule";Pj.__isInterface__=!0;Pj.prototype={__registerLimeModule:null,__unregisterLimeModule:null,__class__:Pj}; +var Qj=function(){this.onExit=new Wh};k["lime.app.Module"]=Qj;Qj.__name__="lime.app.Module";Qj.__interfaces__=[Pj];Qj.prototype={onExit:null,__registerLimeModule:function(a){},__unregisterLimeModule:function(a){},__class__:Qj};var md=function(){this.onCreateWindow=new Ao;this.onUpdate=new Wh;this.onExit=new Wh;null==md.current&&(md.current=this);this.meta=new V;this.modules=[];this.__windowByID=new Sa;this.__windows=[];this.__backend=new uo(this);this.__registerLimeModule(this);this.__preloader=new Bo; +this.__preloader.onProgress.add(q(this,this.onPreloadProgress));this.__preloader.onComplete.add(q(this,this.onPreloadComplete))};k["lime.app.Application"]=md;md.__name__="lime.app.Application";md.__super__=Qj;md.prototype=u(Qj.prototype,{meta:null,modules:null,onUpdate:null,onCreateWindow:null,preloader:null,window:null,windows:null,__backend:null,__preloader:null,__window:null,__windowByID:null,__windows:null,addModule:function(a){a.__registerLimeModule(this);this.modules.push(a)},createWindow:function(a){a= +this.__createWindow(a);this.__addWindow(a);return a},exec:function(){md.current=this;return this.__backend.exec()},onGamepadAxisMove:function(a,b,c){},onGamepadButtonDown:function(a,b){},onGamepadButtonUp:function(a,b){},onGamepadConnect:function(a){},onGamepadDisconnect:function(a){},onJoystickAxisMove:function(a,b,c){},onJoystickButtonDown:function(a,b){},onJoystickButtonUp:function(a,b){},onJoystickConnect:function(a){},onJoystickDisconnect:function(a){},onJoystickHatMove:function(a,b,c){},onJoystickTrackballMove:function(a, +b,c,d){},onKeyDown:function(a,b){},onKeyUp:function(a,b){},onModuleExit:function(a){},onMouseDown:function(a,b,c){},onMouseMove:function(a,b){},onMouseMoveRelative:function(a,b){},onMouseUp:function(a,b,c){},onMouseWheel:function(a,b,c){},onPreloadComplete:function(){},onPreloadProgress:function(a,b){},onRenderContextLost:function(){},onRenderContextRestored:function(a){},onTextEdit:function(a,b,c){},onTextInput:function(a){},onTouchCancel:function(a){},onTouchEnd:function(a){},onTouchMove:function(a){}, +onTouchStart:function(a){},onWindowActivate:function(){},onWindowClose:function(){},onWindowCreate:function(){},onWindowDeactivate:function(){},onWindowDropFile:function(a){},onWindowEnter:function(){},onWindowExpose:function(){},onWindowFocusIn:function(){},onWindowFocusOut:function(){},onWindowFullscreen:function(){},onWindowLeave:function(){},onWindowMove:function(a,b){},onWindowMinimize:function(){},onWindowResize:function(a,b){},onWindowRestore:function(){},removeModule:function(a){null!=a&& +(a.__unregisterLimeModule(this),F.remove(this.modules,a))},render:function(a){},update:function(a){},__addWindow:function(a){if(null!=a){this.__windows.push(a);this.__windowByID.h[a.id]=a;var b=q(this,this.__onWindowClose);a.onClose.add(function(){b(a)},!1,-1E4);null==this.__window&&(this.__window=a,a.onActivate.add(q(this,this.onWindowActivate)),a.onRenderContextLost.add(q(this,this.onRenderContextLost)),a.onRenderContextRestored.add(q(this,this.onRenderContextRestored)),a.onDeactivate.add(q(this, +this.onWindowDeactivate)),a.onDropFile.add(q(this,this.onWindowDropFile)),a.onEnter.add(q(this,this.onWindowEnter)),a.onExpose.add(q(this,this.onWindowExpose)),a.onFocusIn.add(q(this,this.onWindowFocusIn)),a.onFocusOut.add(q(this,this.onWindowFocusOut)),a.onFullscreen.add(q(this,this.onWindowFullscreen)),a.onKeyDown.add(q(this,this.onKeyDown)),a.onKeyUp.add(q(this,this.onKeyUp)),a.onLeave.add(q(this,this.onWindowLeave)),a.onMinimize.add(q(this,this.onWindowMinimize)),a.onMouseDown.add(q(this,this.onMouseDown)), +a.onMouseMove.add(q(this,this.onMouseMove)),a.onMouseMoveRelative.add(q(this,this.onMouseMoveRelative)),a.onMouseUp.add(q(this,this.onMouseUp)),a.onMouseWheel.add(q(this,this.onMouseWheel)),a.onMove.add(q(this,this.onWindowMove)),a.onRender.add(q(this,this.render)),a.onResize.add(q(this,this.onWindowResize)),a.onRestore.add(q(this,this.onWindowRestore)),a.onTextEdit.add(q(this,this.onTextEdit)),a.onTextInput.add(q(this,this.onTextInput)),this.onWindowCreate());this.onCreateWindow.dispatch(a)}},__createWindow:function(a){a= +new Ki(this,a);return-1==a.id?null:a},__registerLimeModule:function(a){a.onUpdate.add(q(this,this.update));a.onExit.add(q(this,this.onModuleExit),!1,0);a.onExit.add(q(this,this.__onModuleExit),!1,0);for(a=Dd.devices.iterator();a.hasNext();){var b=a.next();this.__onGamepadConnect(b)}Dd.onConnect.add(q(this,this.__onGamepadConnect));for(a=Tc.devices.iterator();a.hasNext();)b=a.next(),this.__onJoystickConnect(b);Tc.onConnect.add(q(this,this.__onJoystickConnect));gd.onCancel.add(q(this,this.onTouchCancel)); +gd.onStart.add(q(this,this.onTouchStart));gd.onMove.add(q(this,this.onTouchMove));gd.onEnd.add(q(this,this.onTouchEnd))},__removeWindow:function(a){null!=a&&this.__windowByID.h.hasOwnProperty(a.id)&&(this.__window==a&&(this.__window=null),F.remove(this.__windows,a),this.__windowByID.remove(a.id),a.close(),0==this.__windows.length&&Pa.exit(0))},__onGamepadConnect:function(a){this.onGamepadConnect(a);var b=q(this,this.onGamepadAxisMove),c=function(c,d){b(a,c,d)};a.onAxisMove.add(c);var d=q(this,this.onGamepadButtonDown); +c=function(b){d(a,b)};a.onButtonDown.add(c);var e=q(this,this.onGamepadButtonUp);c=function(b){e(a,b)};a.onButtonUp.add(c);var g=q(this,this.onGamepadDisconnect);a.onDisconnect.add(function(){g(a)})},__onJoystickConnect:function(a){this.onJoystickConnect(a);var b=q(this,this.onJoystickAxisMove),c=function(c,d){b(a,c,d)};a.onAxisMove.add(c);var d=q(this,this.onJoystickButtonDown);c=function(b){d(a,b)};a.onButtonDown.add(c);var e=q(this,this.onJoystickButtonUp);c=function(b){e(a,b)};a.onButtonUp.add(c); +var g=q(this,this.onJoystickDisconnect);a.onDisconnect.add(function(){g(a)});var f=q(this,this.onJoystickHatMove);c=function(b,c){f(a,b,c)};a.onHatMove.add(c);var l=q(this,this.onJoystickTrackballMove);c=function(b,c,d){l(a,b,c,d)};a.onTrackballMove.add(c)},__onModuleExit:function(a){this.__backend.exit()},__onWindowClose:function(a){if(this.__window==a)this.onWindowClose();this.__removeWindow(a)},__unregisterLimeModule:function(a){a.onUpdate.remove(q(this,this.update));a.onExit.remove(q(this,this.__onModuleExit)); +a.onExit.remove(q(this,this.onModuleExit));Dd.onConnect.remove(q(this,this.__onGamepadConnect));Tc.onConnect.remove(q(this,this.__onJoystickConnect));gd.onCancel.remove(q(this,this.onTouchCancel));gd.onStart.remove(q(this,this.onTouchStart));gd.onMove.remove(q(this,this.onTouchMove));gd.onEnd.remove(q(this,this.onTouchEnd));this.onModuleExit(0)},get_preloader:function(){return this.__preloader},get_window:function(){return this.__window},get_windows:function(){return this.__windows},__class__:md, +__properties__:{get_windows:"get_windows",get_window:"get_window",get_preloader:"get_preloader"}});var Dt=function(){this.canceled=!1;this.__listeners=[];this.__priorities=[];this.__repeat=[]};k["lime.app.Event"]=Dt;Dt.__name__="lime.app.Event";Dt.prototype={canceled:null,__listeners:null,__repeat:null,__priorities:null,add:function(a,b,c){null==c&&(c=0);null==b&&(b=!1);for(var d=0,e=this.__priorities.length;d<e;){var g=d++;if(c>this.__priorities[g]){this.__listeners.splice(g,0,a);this.__priorities.splice(g, +0,c);this.__repeat.splice(g,0,!b);return}}this.__listeners.push(a);this.__priorities.push(c);this.__repeat.push(!b)},cancel:function(){this.canceled=!0},dispatch:null,has:function(a){for(var b=0,c=this.__listeners;b<c.length;){var d=c[b];++b;if(W.compareMethods(d,a))return!0}return!1},remove:function(a){for(var b=this.__listeners.length;0<=--b;)W.compareMethods(this.__listeners[b],a)&&(this.__listeners.splice(b,1),this.__priorities.splice(b,1),this.__repeat.splice(b,1))},removeAll:function(){var a= +this.__listeners.length;this.__listeners.splice(0,a);this.__priorities.splice(0,a);this.__repeat.splice(0,a)},__class__:Dt};var eb=function(a,b){null==b&&(b=!1);if(null!=a)if(b)b=new Wd,b.future=this,Pe.queue({promise:b,work:a});else try{this.value=a(),this.isComplete=!0}catch(c){sa.lastError=c,this.error=R.caught(c).unwrap(),this.isError=!0}};k["lime.app.Future"]=eb;eb.__name__="lime.app.Future";eb.ofEvents=function(a,b,c){var d=new Wd;a.add(function(a){d.complete(a)},!0);null!=b&&b.add(function(a){d.error(a)}, +!0);null!=c&&c.add(function(a,b){d.progress(a,b)},!0);return d.future};eb.withError=function(a){var b=new eb;b.isError=!0;b.error=a;return b};eb.withValue=function(a){var b=new eb;b.isComplete=!0;b.value=a;return b};eb.prototype={error:null,isComplete:null,isError:null,value:null,__completeListeners:null,__errorListeners:null,__progressListeners:null,onComplete:function(a){null!=a&&(this.isComplete?a(this.value):this.isError||(null==this.__completeListeners&&(this.__completeListeners=[]),this.__completeListeners.push(a))); +return this},onError:function(a){null!=a&&(this.isError?a(this.error):this.isComplete||(null==this.__errorListeners&&(this.__errorListeners=[]),this.__errorListeners.push(a)));return this},onProgress:function(a){null!=a&&(null==this.__progressListeners&&(this.__progressListeners=[]),this.__progressListeners.push(a));return this},ready:function(a){this.isComplete||this.isError||Ga.warn("Cannot block thread in JavaScript",{fileName:"lime/app/Future.hx",lineNumber:208,className:"lime.app.Future",methodName:"ready"}); +return this},result:function(a){null==a&&(a=-1);this.ready(a);return this.isComplete?this.value:null},then:function(a){if(this.isComplete)return a(this.value);if(this.isError){var b=new eb;b.isError=!0;b.error=this.error;return b}var c=new Wd;this.onError(q(c,c.error));this.onProgress(q(c,c.progress));this.onComplete(function(b){b=a(b);b.onError(q(c,c.error));b.onComplete(q(c,c.complete))});return c.future},__class__:eb};var Pe=function(){};k["lime.app._Future.FutureWork"]=Pe;Pe.__name__="lime.app._Future.FutureWork"; +Pe.queue=function(a){null==Pe.threadPool&&(Pe.threadPool=new Co,Pe.threadPool.doWork.add(Pe.threadPool_doWork),Pe.threadPool.onComplete.add(Pe.threadPool_onComplete),Pe.threadPool.onError.add(Pe.threadPool_onError));Pe.threadPool.queue(a)};Pe.threadPool_doWork=function(a){try{var b=a.work();Pe.threadPool.sendComplete({promise:a.promise,result:b})}catch(c){sa.lastError=c,b=R.caught(c).unwrap(),Pe.threadPool.sendError({promise:a.promise,error:b})}};Pe.threadPool_onComplete=function(a){a.promise.complete(a.result)}; +Pe.threadPool_onError=function(a){a.promise.error(a.error)};var Wd=function(){this.future=new eb};k["lime.app.Promise"]=Wd;Wd.__name__="lime.app.Promise";Wd.prototype={future:null,isComplete:null,isError:null,complete:function(a){if(!this.future.isError&&(this.future.isComplete=!0,this.future.value=a,null!=this.future.__completeListeners)){for(var b=0,c=this.future.__completeListeners;b<c.length;){var d=c[b];++b;d(a)}this.future.__completeListeners=null}return this},completeWith:function(a){a.onComplete(q(this, +this.complete));a.onError(q(this,this.error));a.onProgress(q(this,this.progress));return this},error:function(a){if(!this.future.isComplete&&(this.future.isError=!0,this.future.error=a,null!=this.future.__errorListeners)){for(var b=0,c=this.future.__errorListeners;b<c.length;){var d=c[b];++b;d(a)}this.future.__errorListeners=null}return this},progress:function(a,b){if(!this.future.isError&&!this.future.isComplete&&null!=this.future.__progressListeners)for(var c=0,d=this.future.__progressListeners;c< +d.length;){var e=d[c];++c;e(a,b)}return this},get_isComplete:function(){return this.future.isComplete},get_isError:function(){return this.future.isError},__class__:Wd,__properties__:{get_isError:"get_isError",get_isComplete:"get_isComplete"}};var Xh=function(){this.canceled=!1;this.__listeners=[];this.__priorities=[];this.__repeat=[]};k["lime.app._Event_Dynamic_Void"]=Xh;Xh.__name__="lime.app._Event_Dynamic_Void";Xh.prototype={canceled:null,__repeat:null,__priorities:null,add:function(a,b,c){null== +c&&(c=0);null==b&&(b=!1);for(var d=0,e=this.__priorities.length;d<e;){var g=d++;if(c>this.__priorities[g]){this.__listeners.splice(g,0,a);this.__priorities.splice(g,0,c);this.__repeat.splice(g,0,!b);return}}this.__listeners.push(a);this.__priorities.push(c);this.__repeat.push(!b)},cancel:function(){this.canceled=!0},has:function(a){for(var b=0,c=this.__listeners;b<c.length;){var d=c[b];++b;if(W.compareMethods(d,a))return!0}return!1},remove:function(a){for(var b=this.__listeners.length;0<=--b;)W.compareMethods(this.__listeners[b], +a)&&(this.__listeners.splice(b,1),this.__priorities.splice(b,1),this.__repeat.splice(b,1))},removeAll:function(){var a=this.__listeners.length;this.__listeners.splice(0,a);this.__priorities.splice(0,a);this.__repeat.splice(0,a)},__listeners:null,dispatch:function(a){this.canceled=!1;for(var b=this.__listeners,c=this.__repeat,d=0;d<b.length&&(b[d](a),c[d]?++d:this.remove(b[d]),!this.canceled););},__class__:Xh};var Do=function(){this.canceled=!1;this.__listeners=[];this.__priorities=[];this.__repeat= +[]};k["lime.app._Event_Float_Float_Float_Void"]=Do;Do.__name__="lime.app._Event_Float_Float_Float_Void";Do.prototype={canceled:null,__repeat:null,__priorities:null,add:function(a,b,c){null==c&&(c=0);null==b&&(b=!1);for(var d=0,e=this.__priorities.length;d<e;){var g=d++;if(c>this.__priorities[g]){this.__listeners.splice(g,0,a);this.__priorities.splice(g,0,c);this.__repeat.splice(g,0,!b);return}}this.__listeners.push(a);this.__priorities.push(c);this.__repeat.push(!b)},cancel:function(){this.canceled= +!0},has:function(a){for(var b=0,c=this.__listeners;b<c.length;){var d=c[b];++b;if(W.compareMethods(d,a))return!0}return!1},remove:function(a){for(var b=this.__listeners.length;0<=--b;)W.compareMethods(this.__listeners[b],a)&&(this.__listeners.splice(b,1),this.__priorities.splice(b,1),this.__repeat.splice(b,1))},removeAll:function(){var a=this.__listeners.length;this.__listeners.splice(0,a);this.__priorities.splice(0,a);this.__repeat.splice(0,a)},__listeners:null,dispatch:function(a,b,c){this.canceled= +!1;for(var d=this.__listeners,e=this.__repeat,g=0;g<d.length&&(d[g](a,b,c),e[g]?++g:this.remove(d[g]),!this.canceled););},__class__:Do};var Eo=function(){this.canceled=!1;this.__listeners=[];this.__priorities=[];this.__repeat=[]};k["lime.app._Event_Float_Float_Int_Void"]=Eo;Eo.__name__="lime.app._Event_Float_Float_Int_Void";Eo.prototype={canceled:null,__repeat:null,__priorities:null,add:function(a,b,c){null==c&&(c=0);null==b&&(b=!1);for(var d=0,e=this.__priorities.length;d<e;){var g=d++;if(c>this.__priorities[g]){this.__listeners.splice(g, +0,a);this.__priorities.splice(g,0,c);this.__repeat.splice(g,0,!b);return}}this.__listeners.push(a);this.__priorities.push(c);this.__repeat.push(!b)},cancel:function(){this.canceled=!0},has:function(a){for(var b=0,c=this.__listeners;b<c.length;){var d=c[b];++b;if(W.compareMethods(d,a))return!0}return!1},remove:function(a){for(var b=this.__listeners.length;0<=--b;)W.compareMethods(this.__listeners[b],a)&&(this.__listeners.splice(b,1),this.__priorities.splice(b,1),this.__repeat.splice(b,1))},removeAll:function(){var a= +this.__listeners.length;this.__listeners.splice(0,a);this.__priorities.splice(0,a);this.__repeat.splice(0,a)},__listeners:null,dispatch:function(a,b,c){this.canceled=!1;for(var d=this.__listeners,e=this.__repeat,g=0;g<d.length&&(d[g](a,b,c),e[g]?++g:this.remove(d[g]),!this.canceled););},__class__:Eo};var Rj=function(){this.canceled=!1;this.__listeners=[];this.__priorities=[];this.__repeat=[]};k["lime.app._Event_Float_Float_Void"]=Rj;Rj.__name__="lime.app._Event_Float_Float_Void";Rj.prototype={canceled:null, +__repeat:null,__priorities:null,add:function(a,b,c){null==c&&(c=0);null==b&&(b=!1);for(var d=0,e=this.__priorities.length;d<e;){var g=d++;if(c>this.__priorities[g]){this.__listeners.splice(g,0,a);this.__priorities.splice(g,0,c);this.__repeat.splice(g,0,!b);return}}this.__listeners.push(a);this.__priorities.push(c);this.__repeat.push(!b)},cancel:function(){this.canceled=!0},has:function(a){for(var b=0,c=this.__listeners;b<c.length;){var d=c[b];++b;if(W.compareMethods(d,a))return!0}return!1},remove:function(a){for(var b= +this.__listeners.length;0<=--b;)W.compareMethods(this.__listeners[b],a)&&(this.__listeners.splice(b,1),this.__priorities.splice(b,1),this.__repeat.splice(b,1))},removeAll:function(){var a=this.__listeners.length;this.__listeners.splice(0,a);this.__priorities.splice(0,a);this.__repeat.splice(0,a)},__listeners:null,dispatch:function(a,b){this.canceled=!1;for(var c=this.__listeners,d=this.__repeat,e=0;e<c.length&&(c[e](a,b),d[e]?++e:this.remove(c[e]),!this.canceled););},__class__:Rj};var Fo=function(){this.canceled= +!1;this.__listeners=[];this.__priorities=[];this.__repeat=[]};k["lime.app._Event_Float_Float_lime_ui_MouseButton_Void"]=Fo;Fo.__name__="lime.app._Event_Float_Float_lime_ui_MouseButton_Void";Fo.prototype={canceled:null,__repeat:null,__priorities:null,add:function(a,b,c){null==c&&(c=0);null==b&&(b=!1);for(var d=0,e=this.__priorities.length;d<e;){var g=d++;if(c>this.__priorities[g]){this.__listeners.splice(g,0,a);this.__priorities.splice(g,0,c);this.__repeat.splice(g,0,!b);return}}this.__listeners.push(a); +this.__priorities.push(c);this.__repeat.push(!b)},cancel:function(){this.canceled=!0},has:function(a){for(var b=0,c=this.__listeners;b<c.length;){var d=c[b];++b;if(W.compareMethods(d,a))return!0}return!1},remove:function(a){for(var b=this.__listeners.length;0<=--b;)W.compareMethods(this.__listeners[b],a)&&(this.__listeners.splice(b,1),this.__priorities.splice(b,1),this.__repeat.splice(b,1))},removeAll:function(){var a=this.__listeners.length;this.__listeners.splice(0,a);this.__priorities.splice(0, +a);this.__repeat.splice(0,a)},__listeners:null,dispatch:function(a,b,c){this.canceled=!1;for(var d=this.__listeners,e=this.__repeat,g=0;g<d.length&&(d[g](a,b,c),e[g]?++g:this.remove(d[g]),!this.canceled););},__class__:Fo};var Go=function(){this.canceled=!1;this.__listeners=[];this.__priorities=[];this.__repeat=[]};k["lime.app._Event_Float_Float_lime_ui_MouseWheelMode_Void"]=Go;Go.__name__="lime.app._Event_Float_Float_lime_ui_MouseWheelMode_Void";Go.prototype={canceled:null,__repeat:null,__priorities:null, +add:function(a,b,c){null==c&&(c=0);null==b&&(b=!1);for(var d=0,e=this.__priorities.length;d<e;){var g=d++;if(c>this.__priorities[g]){this.__listeners.splice(g,0,a);this.__priorities.splice(g,0,c);this.__repeat.splice(g,0,!b);return}}this.__listeners.push(a);this.__priorities.push(c);this.__repeat.push(!b)},cancel:function(){this.canceled=!0},has:function(a){for(var b=0,c=this.__listeners;b<c.length;){var d=c[b];++b;if(W.compareMethods(d,a))return!0}return!1},remove:function(a){for(var b=this.__listeners.length;0<= +--b;)W.compareMethods(this.__listeners[b],a)&&(this.__listeners.splice(b,1),this.__priorities.splice(b,1),this.__repeat.splice(b,1))},removeAll:function(){var a=this.__listeners.length;this.__listeners.splice(0,a);this.__priorities.splice(0,a);this.__repeat.splice(0,a)},__listeners:null,dispatch:function(a,b,c){this.canceled=!1;for(var d=this.__listeners,e=this.__repeat,g=0;g<d.length&&(d[g](a,b,c),e[g]?++g:this.remove(d[g]),!this.canceled););},__class__:Go};var Ho=function(){this.canceled=!1;this.__listeners= +[];this.__priorities=[];this.__repeat=[]};k["lime.app._Event_Int_Float_Float_Void"]=Ho;Ho.__name__="lime.app._Event_Int_Float_Float_Void";Ho.prototype={canceled:null,__repeat:null,__priorities:null,add:function(a,b,c){null==c&&(c=0);null==b&&(b=!1);for(var d=0,e=this.__priorities.length;d<e;){var g=d++;if(c>this.__priorities[g]){this.__listeners.splice(g,0,a);this.__priorities.splice(g,0,c);this.__repeat.splice(g,0,!b);return}}this.__listeners.push(a);this.__priorities.push(c);this.__repeat.push(!b)}, +cancel:function(){this.canceled=!0},has:function(a){for(var b=0,c=this.__listeners;b<c.length;){var d=c[b];++b;if(W.compareMethods(d,a))return!0}return!1},remove:function(a){for(var b=this.__listeners.length;0<=--b;)W.compareMethods(this.__listeners[b],a)&&(this.__listeners.splice(b,1),this.__priorities.splice(b,1),this.__repeat.splice(b,1))},removeAll:function(){var a=this.__listeners.length;this.__listeners.splice(0,a);this.__priorities.splice(0,a);this.__repeat.splice(0,a)},__listeners:null,dispatch:function(a, +b,c){this.canceled=!1;for(var d=this.__listeners,e=this.__repeat,g=0;g<d.length&&(d[g](a,b,c),e[g]?++g:this.remove(d[g]),!this.canceled););},__class__:Ho};var Io=function(){this.canceled=!1;this.__listeners=[];this.__priorities=[];this.__repeat=[]};k["lime.app._Event_Int_Float_Void"]=Io;Io.__name__="lime.app._Event_Int_Float_Void";Io.prototype={canceled:null,__repeat:null,__priorities:null,add:function(a,b,c){null==c&&(c=0);null==b&&(b=!1);for(var d=0,e=this.__priorities.length;d<e;){var g=d++;if(c> +this.__priorities[g]){this.__listeners.splice(g,0,a);this.__priorities.splice(g,0,c);this.__repeat.splice(g,0,!b);return}}this.__listeners.push(a);this.__priorities.push(c);this.__repeat.push(!b)},cancel:function(){this.canceled=!0},has:function(a){for(var b=0,c=this.__listeners;b<c.length;){var d=c[b];++b;if(W.compareMethods(d,a))return!0}return!1},remove:function(a){for(var b=this.__listeners.length;0<=--b;)W.compareMethods(this.__listeners[b],a)&&(this.__listeners.splice(b,1),this.__priorities.splice(b, +1),this.__repeat.splice(b,1))},removeAll:function(){var a=this.__listeners.length;this.__listeners.splice(0,a);this.__priorities.splice(0,a);this.__repeat.splice(0,a)},__listeners:null,dispatch:function(a,b){this.canceled=!1;for(var c=this.__listeners,d=this.__repeat,e=0;e<c.length&&(c[e](a,b),d[e]?++e:this.remove(c[e]),!this.canceled););},__class__:Io};var pm=function(){this.canceled=!1;this.__listeners=[];this.__priorities=[];this.__repeat=[]};k["lime.app._Event_Int_Int_Void"]=pm;pm.__name__="lime.app._Event_Int_Int_Void"; +pm.prototype={canceled:null,__repeat:null,__priorities:null,add:function(a,b,c){null==c&&(c=0);null==b&&(b=!1);for(var d=0,e=this.__priorities.length;d<e;){var g=d++;if(c>this.__priorities[g]){this.__listeners.splice(g,0,a);this.__priorities.splice(g,0,c);this.__repeat.splice(g,0,!b);return}}this.__listeners.push(a);this.__priorities.push(c);this.__repeat.push(!b)},cancel:function(){this.canceled=!0},has:function(a){for(var b=0,c=this.__listeners;b<c.length;){var d=c[b];++b;if(W.compareMethods(d, +a))return!0}return!1},remove:function(a){for(var b=this.__listeners.length;0<=--b;)W.compareMethods(this.__listeners[b],a)&&(this.__listeners.splice(b,1),this.__priorities.splice(b,1),this.__repeat.splice(b,1))},removeAll:function(){var a=this.__listeners.length;this.__listeners.splice(0,a);this.__priorities.splice(0,a);this.__repeat.splice(0,a)},__listeners:null,dispatch:function(a,b){this.canceled=!1;for(var c=this.__listeners,d=this.__repeat,e=0;e<c.length&&(c[e](a,b),d[e]?++e:this.remove(c[e]), +!this.canceled););},__class__:pm};var Wh=function(){this.canceled=!1;this.__listeners=[];this.__priorities=[];this.__repeat=[]};k["lime.app._Event_Int_Void"]=Wh;Wh.__name__="lime.app._Event_Int_Void";Wh.prototype={canceled:null,__repeat:null,__priorities:null,add:function(a,b,c){null==c&&(c=0);null==b&&(b=!1);for(var d=0,e=this.__priorities.length;d<e;){var g=d++;if(c>this.__priorities[g]){this.__listeners.splice(g,0,a);this.__priorities.splice(g,0,c);this.__repeat.splice(g,0,!b);return}}this.__listeners.push(a); +this.__priorities.push(c);this.__repeat.push(!b)},cancel:function(){this.canceled=!0},has:function(a){for(var b=0,c=this.__listeners;b<c.length;){var d=c[b];++b;if(W.compareMethods(d,a))return!0}return!1},remove:function(a){for(var b=this.__listeners.length;0<=--b;)W.compareMethods(this.__listeners[b],a)&&(this.__listeners.splice(b,1),this.__priorities.splice(b,1),this.__repeat.splice(b,1))},removeAll:function(){var a=this.__listeners.length;this.__listeners.splice(0,a);this.__priorities.splice(0, +a);this.__repeat.splice(0,a)},__listeners:null,dispatch:function(a){this.canceled=!1;for(var b=this.__listeners,c=this.__repeat,d=0;d<b.length&&(b[d](a),c[d]?++d:this.remove(b[d]),!this.canceled););},__class__:Wh};var Jo=function(){this.canceled=!1;this.__listeners=[];this.__priorities=[];this.__repeat=[]};k["lime.app._Event_Int_lime_ui_JoystickHatPosition_Void"]=Jo;Jo.__name__="lime.app._Event_Int_lime_ui_JoystickHatPosition_Void";Jo.prototype={canceled:null,__repeat:null,__priorities:null,add:function(a, +b,c){null==c&&(c=0);null==b&&(b=!1);for(var d=0,e=this.__priorities.length;d<e;){var g=d++;if(c>this.__priorities[g]){this.__listeners.splice(g,0,a);this.__priorities.splice(g,0,c);this.__repeat.splice(g,0,!b);return}}this.__listeners.push(a);this.__priorities.push(c);this.__repeat.push(!b)},cancel:function(){this.canceled=!0},has:function(a){for(var b=0,c=this.__listeners;b<c.length;){var d=c[b];++b;if(W.compareMethods(d,a))return!0}return!1},remove:function(a){for(var b=this.__listeners.length;0<= +--b;)W.compareMethods(this.__listeners[b],a)&&(this.__listeners.splice(b,1),this.__priorities.splice(b,1),this.__repeat.splice(b,1))},removeAll:function(){var a=this.__listeners.length;this.__listeners.splice(0,a);this.__priorities.splice(0,a);this.__repeat.splice(0,a)},__listeners:null,dispatch:function(a,b){this.canceled=!1;for(var c=this.__listeners,d=this.__repeat,e=0;e<c.length&&(c[e](a,b),d[e]?++e:this.remove(c[e]),!this.canceled););},__class__:Jo};var Ko=function(){this.canceled=!1;this.__listeners= +[];this.__priorities=[];this.__repeat=[]};k["lime.app._Event_String_Int_Int_Void"]=Ko;Ko.__name__="lime.app._Event_String_Int_Int_Void";Ko.prototype={canceled:null,__repeat:null,__priorities:null,add:function(a,b,c){null==c&&(c=0);null==b&&(b=!1);for(var d=0,e=this.__priorities.length;d<e;){var g=d++;if(c>this.__priorities[g]){this.__listeners.splice(g,0,a);this.__priorities.splice(g,0,c);this.__repeat.splice(g,0,!b);return}}this.__listeners.push(a);this.__priorities.push(c);this.__repeat.push(!b)}, +cancel:function(){this.canceled=!0},has:function(a){for(var b=0,c=this.__listeners;b<c.length;){var d=c[b];++b;if(W.compareMethods(d,a))return!0}return!1},remove:function(a){for(var b=this.__listeners.length;0<=--b;)W.compareMethods(this.__listeners[b],a)&&(this.__listeners.splice(b,1),this.__priorities.splice(b,1),this.__repeat.splice(b,1))},removeAll:function(){var a=this.__listeners.length;this.__listeners.splice(0,a);this.__priorities.splice(0,a);this.__repeat.splice(0,a)},__listeners:null,dispatch:function(a, +b,c){this.canceled=!1;for(var d=this.__listeners,e=this.__repeat,g=0;g<d.length&&(d[g](a,b,c),e[g]?++g:this.remove(d[g]),!this.canceled););},__class__:Ko};var qm=function(){this.canceled=!1;this.__listeners=[];this.__priorities=[];this.__repeat=[]};k["lime.app._Event_String_Void"]=qm;qm.__name__="lime.app._Event_String_Void";qm.prototype={canceled:null,__repeat:null,__priorities:null,add:function(a,b,c){null==c&&(c=0);null==b&&(b=!1);for(var d=0,e=this.__priorities.length;d<e;){var g=d++;if(c>this.__priorities[g]){this.__listeners.splice(g, +0,a);this.__priorities.splice(g,0,c);this.__repeat.splice(g,0,!b);return}}this.__listeners.push(a);this.__priorities.push(c);this.__repeat.push(!b)},cancel:function(){this.canceled=!0},has:function(a){for(var b=0,c=this.__listeners;b<c.length;){var d=c[b];++b;if(W.compareMethods(d,a))return!0}return!1},remove:function(a){for(var b=this.__listeners.length;0<=--b;)W.compareMethods(this.__listeners[b],a)&&(this.__listeners.splice(b,1),this.__priorities.splice(b,1),this.__repeat.splice(b,1))},removeAll:function(){var a= +this.__listeners.length;this.__listeners.splice(0,a);this.__priorities.splice(0,a);this.__repeat.splice(0,a)},__listeners:null,dispatch:function(a){this.canceled=!1;for(var b=this.__listeners,c=this.__repeat,d=0;d<b.length&&(b[d](a),c[d]?++d:this.remove(b[d]),!this.canceled););},__class__:qm};var Fd=function(){this.canceled=!1;this.__listeners=[];this.__priorities=[];this.__repeat=[]};k["lime.app._Event_Void_Void"]=Fd;Fd.__name__="lime.app._Event_Void_Void";Fd.prototype={canceled:null,__repeat:null, +__priorities:null,add:function(a,b,c){null==c&&(c=0);null==b&&(b=!1);for(var d=0,e=this.__priorities.length;d<e;){var g=d++;if(c>this.__priorities[g]){this.__listeners.splice(g,0,a);this.__priorities.splice(g,0,c);this.__repeat.splice(g,0,!b);return}}this.__listeners.push(a);this.__priorities.push(c);this.__repeat.push(!b)},cancel:function(){this.canceled=!0},has:function(a){for(var b=0,c=this.__listeners;b<c.length;){var d=c[b];++b;if(W.compareMethods(d,a))return!0}return!1},remove:function(a){for(var b= +this.__listeners.length;0<=--b;)W.compareMethods(this.__listeners[b],a)&&(this.__listeners.splice(b,1),this.__priorities.splice(b,1),this.__repeat.splice(b,1))},removeAll:function(){var a=this.__listeners.length;this.__listeners.splice(0,a);this.__priorities.splice(0,a);this.__repeat.splice(0,a)},__listeners:null,dispatch:function(){this.canceled=!1;for(var a=this.__listeners,b=this.__repeat,c=0;c<a.length&&(a[c](),b[c]?++c:this.remove(a[c]),!this.canceled););},__class__:Fd};var rm=function(){this.canceled= +!1;this.__listeners=[];this.__priorities=[];this.__repeat=[]};k["lime.app._Event_lime_graphics_RenderContext_Void"]=rm;rm.__name__="lime.app._Event_lime_graphics_RenderContext_Void";rm.prototype={canceled:null,__repeat:null,__priorities:null,add:function(a,b,c){null==c&&(c=0);null==b&&(b=!1);for(var d=0,e=this.__priorities.length;d<e;){var g=d++;if(c>this.__priorities[g]){this.__listeners.splice(g,0,a);this.__priorities.splice(g,0,c);this.__repeat.splice(g,0,!b);return}}this.__listeners.push(a);this.__priorities.push(c); +this.__repeat.push(!b)},cancel:function(){this.canceled=!0},has:function(a){for(var b=0,c=this.__listeners;b<c.length;){var d=c[b];++b;if(W.compareMethods(d,a))return!0}return!1},remove:function(a){for(var b=this.__listeners.length;0<=--b;)W.compareMethods(this.__listeners[b],a)&&(this.__listeners.splice(b,1),this.__priorities.splice(b,1),this.__repeat.splice(b,1))},removeAll:function(){var a=this.__listeners.length;this.__listeners.splice(0,a);this.__priorities.splice(0,a);this.__repeat.splice(0, +a)},__listeners:null,dispatch:function(a){this.canceled=!1;for(var b=this.__listeners,c=this.__repeat,d=0;d<b.length&&(b[d](a),c[d]?++d:this.remove(b[d]),!this.canceled););},__class__:rm};var Lo=function(){this.canceled=!1;this.__listeners=[];this.__priorities=[];this.__repeat=[]};k["lime.app._Event_lime_ui_GamepadAxis_Float_Void"]=Lo;Lo.__name__="lime.app._Event_lime_ui_GamepadAxis_Float_Void";Lo.prototype={canceled:null,__repeat:null,__priorities:null,add:function(a,b,c){null==c&&(c=0);null==b&& +(b=!1);for(var d=0,e=this.__priorities.length;d<e;){var g=d++;if(c>this.__priorities[g]){this.__listeners.splice(g,0,a);this.__priorities.splice(g,0,c);this.__repeat.splice(g,0,!b);return}}this.__listeners.push(a);this.__priorities.push(c);this.__repeat.push(!b)},cancel:function(){this.canceled=!0},has:function(a){for(var b=0,c=this.__listeners;b<c.length;){var d=c[b];++b;if(W.compareMethods(d,a))return!0}return!1},remove:function(a){for(var b=this.__listeners.length;0<=--b;)W.compareMethods(this.__listeners[b], +a)&&(this.__listeners.splice(b,1),this.__priorities.splice(b,1),this.__repeat.splice(b,1))},removeAll:function(){var a=this.__listeners.length;this.__listeners.splice(0,a);this.__priorities.splice(0,a);this.__repeat.splice(0,a)},__listeners:null,dispatch:function(a,b){this.canceled=!1;for(var c=this.__listeners,d=this.__repeat,e=0;e<c.length&&(c[e](a,b),d[e]?++e:this.remove(c[e]),!this.canceled););},__class__:Lo};var sm=function(){this.canceled=!1;this.__listeners=[];this.__priorities=[];this.__repeat= +[]};k["lime.app._Event_lime_ui_GamepadButton_Void"]=sm;sm.__name__="lime.app._Event_lime_ui_GamepadButton_Void";sm.prototype={canceled:null,__repeat:null,__priorities:null,add:function(a,b,c){null==c&&(c=0);null==b&&(b=!1);for(var d=0,e=this.__priorities.length;d<e;){var g=d++;if(c>this.__priorities[g]){this.__listeners.splice(g,0,a);this.__priorities.splice(g,0,c);this.__repeat.splice(g,0,!b);return}}this.__listeners.push(a);this.__priorities.push(c);this.__repeat.push(!b)},cancel:function(){this.canceled= +!0},has:function(a){for(var b=0,c=this.__listeners;b<c.length;){var d=c[b];++b;if(W.compareMethods(d,a))return!0}return!1},remove:function(a){for(var b=this.__listeners.length;0<=--b;)W.compareMethods(this.__listeners[b],a)&&(this.__listeners.splice(b,1),this.__priorities.splice(b,1),this.__repeat.splice(b,1))},removeAll:function(){var a=this.__listeners.length;this.__listeners.splice(0,a);this.__priorities.splice(0,a);this.__repeat.splice(0,a)},__listeners:null,dispatch:function(a){this.canceled= +!1;for(var b=this.__listeners,c=this.__repeat,d=0;d<b.length&&(b[d](a),c[d]?++d:this.remove(b[d]),!this.canceled););},__class__:sm};var Mo=function(){this.canceled=!1;this.__listeners=[];this.__priorities=[];this.__repeat=[]};k["lime.app._Event_lime_ui_Gamepad_Void"]=Mo;Mo.__name__="lime.app._Event_lime_ui_Gamepad_Void";Mo.prototype={canceled:null,__repeat:null,__priorities:null,add:function(a,b,c){null==c&&(c=0);null==b&&(b=!1);for(var d=0,e=this.__priorities.length;d<e;){var g=d++;if(c>this.__priorities[g]){this.__listeners.splice(g, +0,a);this.__priorities.splice(g,0,c);this.__repeat.splice(g,0,!b);return}}this.__listeners.push(a);this.__priorities.push(c);this.__repeat.push(!b)},cancel:function(){this.canceled=!0},has:function(a){for(var b=0,c=this.__listeners;b<c.length;){var d=c[b];++b;if(W.compareMethods(d,a))return!0}return!1},remove:function(a){for(var b=this.__listeners.length;0<=--b;)W.compareMethods(this.__listeners[b],a)&&(this.__listeners.splice(b,1),this.__priorities.splice(b,1),this.__repeat.splice(b,1))},removeAll:function(){var a= +this.__listeners.length;this.__listeners.splice(0,a);this.__priorities.splice(0,a);this.__repeat.splice(0,a)},__listeners:null,dispatch:function(a){this.canceled=!1;for(var b=this.__listeners,c=this.__repeat,d=0;d<b.length&&(b[d](a),c[d]?++d:this.remove(b[d]),!this.canceled););},__class__:Mo};var No=function(){this.canceled=!1;this.__listeners=[];this.__priorities=[];this.__repeat=[]};k["lime.app._Event_lime_ui_Joystick_Void"]=No;No.__name__="lime.app._Event_lime_ui_Joystick_Void";No.prototype={canceled:null, +__repeat:null,__priorities:null,add:function(a,b,c){null==c&&(c=0);null==b&&(b=!1);for(var d=0,e=this.__priorities.length;d<e;){var g=d++;if(c>this.__priorities[g]){this.__listeners.splice(g,0,a);this.__priorities.splice(g,0,c);this.__repeat.splice(g,0,!b);return}}this.__listeners.push(a);this.__priorities.push(c);this.__repeat.push(!b)},cancel:function(){this.canceled=!0},has:function(a){for(var b=0,c=this.__listeners;b<c.length;){var d=c[b];++b;if(W.compareMethods(d,a))return!0}return!1},remove:function(a){for(var b= +this.__listeners.length;0<=--b;)W.compareMethods(this.__listeners[b],a)&&(this.__listeners.splice(b,1),this.__priorities.splice(b,1),this.__repeat.splice(b,1))},removeAll:function(){var a=this.__listeners.length;this.__listeners.splice(0,a);this.__priorities.splice(0,a);this.__repeat.splice(0,a)},__listeners:null,dispatch:function(a){this.canceled=!1;for(var b=this.__listeners,c=this.__repeat,d=0;d<b.length&&(b[d](a),c[d]?++d:this.remove(b[d]),!this.canceled););},__class__:No};var tm=function(){this.canceled= +!1;this.__listeners=[];this.__priorities=[];this.__repeat=[]};k["lime.app._Event_lime_ui_KeyCode_lime_ui_KeyModifier_Void"]=tm;tm.__name__="lime.app._Event_lime_ui_KeyCode_lime_ui_KeyModifier_Void";tm.prototype={canceled:null,__repeat:null,__priorities:null,add:function(a,b,c){null==c&&(c=0);null==b&&(b=!1);for(var d=0,e=this.__priorities.length;d<e;){var g=d++;if(c>this.__priorities[g]){this.__listeners.splice(g,0,a);this.__priorities.splice(g,0,c);this.__repeat.splice(g,0,!b);return}}this.__listeners.push(a); +this.__priorities.push(c);this.__repeat.push(!b)},cancel:function(){this.canceled=!0},has:function(a){for(var b=0,c=this.__listeners;b<c.length;){var d=c[b];++b;if(W.compareMethods(d,a))return!0}return!1},remove:function(a){for(var b=this.__listeners.length;0<=--b;)W.compareMethods(this.__listeners[b],a)&&(this.__listeners.splice(b,1),this.__priorities.splice(b,1),this.__repeat.splice(b,1))},removeAll:function(){var a=this.__listeners.length;this.__listeners.splice(0,a);this.__priorities.splice(0, +a);this.__repeat.splice(0,a)},__listeners:null,dispatch:function(a,b){this.canceled=!1;for(var c=this.__listeners,d=this.__repeat,e=0;e<c.length&&(c[e](a,b),d[e]?++e:this.remove(c[e]),!this.canceled););},__class__:tm};var Li=function(){this.canceled=!1;this.__listeners=[];this.__priorities=[];this.__repeat=[]};k["lime.app._Event_lime_ui_Touch_Void"]=Li;Li.__name__="lime.app._Event_lime_ui_Touch_Void";Li.prototype={canceled:null,__repeat:null,__priorities:null,add:function(a,b,c){null==c&&(c=0);null== +b&&(b=!1);for(var d=0,e=this.__priorities.length;d<e;){var g=d++;if(c>this.__priorities[g]){this.__listeners.splice(g,0,a);this.__priorities.splice(g,0,c);this.__repeat.splice(g,0,!b);return}}this.__listeners.push(a);this.__priorities.push(c);this.__repeat.push(!b)},cancel:function(){this.canceled=!0},has:function(a){for(var b=0,c=this.__listeners;b<c.length;){var d=c[b];++b;if(W.compareMethods(d,a))return!0}return!1},remove:function(a){for(var b=this.__listeners.length;0<=--b;)W.compareMethods(this.__listeners[b], +a)&&(this.__listeners.splice(b,1),this.__priorities.splice(b,1),this.__repeat.splice(b,1))},removeAll:function(){var a=this.__listeners.length;this.__listeners.splice(0,a);this.__priorities.splice(0,a);this.__repeat.splice(0,a)},__listeners:null,dispatch:function(a){this.canceled=!1;for(var b=this.__listeners,c=this.__repeat,d=0;d<b.length&&(b[d](a),c[d]?++d:this.remove(b[d]),!this.canceled););},__class__:Li};var Ao=function(){this.canceled=!1;this.__listeners=[];this.__priorities=[];this.__repeat= +[]};k["lime.app._Event_lime_ui_Window_Void"]=Ao;Ao.__name__="lime.app._Event_lime_ui_Window_Void";Ao.prototype={canceled:null,__repeat:null,__priorities:null,add:function(a,b,c){null==c&&(c=0);null==b&&(b=!1);for(var d=0,e=this.__priorities.length;d<e;){var g=d++;if(c>this.__priorities[g]){this.__listeners.splice(g,0,a);this.__priorities.splice(g,0,c);this.__repeat.splice(g,0,!b);return}}this.__listeners.push(a);this.__priorities.push(c);this.__repeat.push(!b)},cancel:function(){this.canceled=!0}, +has:function(a){for(var b=0,c=this.__listeners;b<c.length;){var d=c[b];++b;if(W.compareMethods(d,a))return!0}return!1},remove:function(a){for(var b=this.__listeners.length;0<=--b;)W.compareMethods(this.__listeners[b],a)&&(this.__listeners.splice(b,1),this.__priorities.splice(b,1),this.__repeat.splice(b,1))},removeAll:function(){var a=this.__listeners.length;this.__listeners.splice(0,a);this.__priorities.splice(0,a);this.__repeat.splice(0,a)},__listeners:null,dispatch:function(a){this.canceled=!1; +for(var b=this.__listeners,c=this.__repeat,d=0;d<b.length&&(b[d](a),c[d]?++d:this.remove(b[d]),!this.canceled););},__class__:Ao};var Et=function(){this.canceled=!1;this.__listeners=[];this.__priorities=[];this.__repeat=[]};k["lime.app._Event_ofEvents_T_Void"]=Et;Et.__name__="lime.app._Event_ofEvents_T_Void";Et.prototype={canceled:null,__repeat:null,__priorities:null,add:function(a,b,c){null==c&&(c=0);null==b&&(b=!1);for(var d=0,e=this.__priorities.length;d<e;){var g=d++;if(c>this.__priorities[g]){this.__listeners.splice(g, +0,a);this.__priorities.splice(g,0,c);this.__repeat.splice(g,0,!b);return}}this.__listeners.push(a);this.__priorities.push(c);this.__repeat.push(!b)},cancel:function(){this.canceled=!0},has:function(a){for(var b=0,c=this.__listeners;b<c.length;){var d=c[b];++b;if(W.compareMethods(d,a))return!0}return!1},remove:function(a){for(var b=this.__listeners.length;0<=--b;)W.compareMethods(this.__listeners[b],a)&&(this.__listeners.splice(b,1),this.__priorities.splice(b,1),this.__repeat.splice(b,1))},removeAll:function(){var a= +this.__listeners.length;this.__listeners.splice(0,a);this.__priorities.splice(0,a);this.__repeat.splice(0,a)},__listeners:null,dispatch:function(a){this.canceled=!1;for(var b=this.__listeners,c=this.__repeat,d=0;d<b.length&&(b[d](a),c[d]?++d:this.remove(b[d]),!this.canceled););},__class__:Et};var Db=function(a,b,c,d,e,g,f){null==e&&(e=-1);null==d&&(d=-1);null==c&&(c=0);null==b&&(b=0);this.offsetX=b;this.offsetY=c;this.width=d;this.height=e;this.version=0;null==f&&(f=se.CANVAS);this.type=f;if(null== +a){if(0<d&&0<e)switch(this.type._hx_index){case 0:this.buffer=new Qf(null,d,e);za.createCanvas(this,d,e);null!=g&&0!=g&&this.fillRect(new Ad(0,0,d,e),g);break;case 1:a=d*e*4,a=null!=a?new Uint8Array(a):null,this.buffer=new Qf(a,d,e),null!=g&&0!=g&&this.fillRect(new Ad(0,0,d,e),g)}}else this.__fromImageBuffer(a)};k["lime.graphics.Image"]=Db;Db.__name__="lime.graphics.Image";Db.fromBase64=function(a,b){if(null==a)return null;var c=new Db;c.__fromBase64(a,b);return c};Db.fromBitmapData=function(a){return null== +a?null:a.image};Db.fromBytes=function(a){if(null==a)return null;var b=new Db;return b.__fromBytes(a)?b:null};Db.fromCanvas=function(a){if(null==a)return null;var b=new Qf(null,a.width,a.height);b.set_src(a);a=new Db(b);a.type=se.CANVAS;return a};Db.fromFile=function(a){if(null==a)return null;var b=new Db;return b.__fromFile(a)?b:null};Db.fromImageElement=function(a){if(null==a)return null;var b=new Qf(null,a.width,a.height);b.set_src(a);a=new Db(b);a.type=se.CANVAS;return a};Db.loadFromBase64=function(a, +b){return null==a||null==b?eb.withValue(null):bb.loadImage("data:"+b+";base64,"+a)};Db.loadFromBytes=function(a){if(null==a)return eb.withValue(null);if(Db.__isPNG(a))var b="image/png";else if(Db.__isJPG(a))b="image/jpeg";else if(Db.__isGIF(a))b="image/gif";else if(Db.__isWebP(a))b="image/webp";else return eb.withValue(null);return bb.loadImageFromBytes(a,b)};Db.loadFromFile=function(a){return null==a?eb.withValue(null):bb.loadImage(a)};Db.__isGIF=function(a){if(null==a||6>a.length)return!1;a=a.getString(0, +6);return"GIF87a"!=a?"GIF89a"==a:!0};Db.__isJPG=function(a){return null==a||4>a.length?!1:255==a.b[0]&&216==a.b[1]&&255==a.b[a.length-2]?217==a.b[a.length-1]:!1};Db.__isPNG=function(a){return null==a||8>a.length?!1:137==a.b[0]&&80==a.b[1]&&78==a.b[2]&&71==a.b[3]&&13==a.b[4]&&10==a.b[5]&&26==a.b[6]?10==a.b[7]:!1};Db.__isWebP=function(a){return null==a||16>a.length?!1:"RIFF"==a.getString(0,4)?"WEBP"==a.getString(8,4):!1};Db.prototype={buffer:null,dirty:null,height:null,offsetX:null,offsetY:null,rect:null, +type:null,version:null,width:null,x:null,y:null,clone:function(){if(null!=this.buffer){this.type==se.CANVAS?za.convertToCanvas(this):za.convertToData(this);var a=new Db(this.buffer.clone(),this.offsetX,this.offsetY,this.width,this.height,null,this.type);a.version=this.version;return a}return new Db(null,this.offsetX,this.offsetY,this.width,this.height,null,this.type)},colorTransform:function(a,b){a=this.__clipRect(a);if(null!=this.buffer&&null!=a)switch(this.type._hx_index){case 0:za.colorTransform(this, +a,b);break;case 1:za.convertToData(this);$a.colorTransform(this,a,b);break;case 2:a.offset(this.offsetX,this.offsetY),this.buffer.__srcBitmapData.colorTransform(a.__toFlashRectangle(),Ed.__toFlashColorTransform(b))}},copyChannel:function(a,b,c,d,e){b=this.__clipRect(b);if(null!=this.buffer&&null!=b&&!(e==kf.ALPHA&&!this.get_transparent()||0>=b.width||0>=b.height))switch(b.x+b.width>a.width&&(b.width=a.width-b.x),b.y+b.height>a.height&&(b.height=a.height-b.y),this.type._hx_index){case 0:za.copyChannel(this, +a,b,c,d,e);break;case 1:za.convertToData(this);za.convertToData(a);$a.copyChannel(this,a,b,c,d,e);break;case 2:switch(d._hx_index){case 0:var g=1;break;case 1:g=2;break;case 2:g=4;break;case 3:g=8}switch(e._hx_index){case 0:var f=1;break;case 1:f=2;break;case 2:f=4;break;case 3:f=8}b.offset(a.offsetX,a.offsetY);c.offset(this.offsetX,this.offsetY);this.buffer.__srcBitmapData.copyChannel(a.buffer.get_src(),b.__toFlashRectangle(),c.__toFlashPoint(),g,f)}},copyPixels:function(a,b,c,d,e,g){null==g&&(g= +!1);if(null!=this.buffer&&null!=a&&!(0>=b.width||0>=b.height||0>=this.width||0>=this.height))switch(b.x+b.width>a.width&&(b.width=a.width-b.x),b.y+b.height>a.height&&(b.height=a.height-b.y),0>b.x&&(b.width+=b.x,b.x=0),0>b.y&&(b.height+=b.y,b.y=0),c.x+b.width>this.width&&(b.width=this.width-c.x),c.y+b.height>this.height&&(b.height=this.height-c.y),0>c.x&&(b.width+=c.x,b.x-=c.x,c.x=0),0>c.y&&(b.height+=c.y,b.y-=c.y,c.y=0),a==this&&c.x<b.get_right()&&c.y<b.get_bottom()&&(a=this.clone()),d==a&&(null== +e||0==e.x&&0==e.y)&&(e=d=null),this.type._hx_index){case 0:null!=d?(za.convertToData(this),za.convertToData(a),null!=d&&za.convertToData(d),$a.copyPixels(this,a,b,c,d,e,g)):(za.convertToCanvas(this),za.convertToCanvas(a),za.copyPixels(this,a,b,c,d,e,g));break;case 1:za.convertToData(this);za.convertToData(a);null!=d&&za.convertToData(d);$a.copyPixels(this,a,b,c,d,e,g);break;case 2:b.offset(a.offsetX,a.offsetY),c.offset(this.offsetX,this.offsetY),null!=d&&null!=e&&e.offset(d.offsetX,d.offsetY),this.buffer.__srcBitmapData.copyPixels(a.buffer.__srcBitmapData, +b.__toFlashRectangle(),c.__toFlashPoint(),null!=d?d.buffer.get_src():null,null!=e?e.__toFlashPoint():null,g)}},encode:function(a,b){null==b&&(b=90);if(null==a)return Oj.encode(this);switch(a._hx_index){case 0:return Bt.encode(this);case 1:return mm.encode(this,b);case 2:return Oj.encode(this)}},fillRect:function(a,b,c){a=this.__clipRect(a);if(null!=this.buffer&&null!=a)switch(this.type._hx_index){case 0:za.fillRect(this,a,b,c);break;case 1:za.convertToData(this);if(0==this.buffer.data.length)break; +$a.fillRect(this,a,b,c);break;case 2:a.offset(this.offsetX,this.offsetY);if(null==c)b=(b&255)<<24|(b>>>24&255)<<16|(b>>>16&255)<<8|b>>>8&255;else switch(c){case 1:break;case 2:b=(b&255)<<24|(b>>>8&255)<<16|(b>>>16&255)<<8|b>>>24&255;break;default:b=(b&255)<<24|(b>>>24&255)<<16|(b>>>16&255)<<8|b>>>8&255}this.buffer.__srcBitmapData.fillRect(a.__toFlashRectangle(),b)}},floodFill:function(a,b,c,d){if(null!=this.buffer)switch(this.type._hx_index){case 0:za.floodFill(this,a,b,c,d);break;case 1:za.convertToData(this); +$a.floodFill(this,a,b,c,d);break;case 2:if(null==d)c=(c&255)<<24|(c>>>24&255)<<16|(c>>>16&255)<<8|c>>>8&255;else switch(d){case 1:break;case 2:c=(c&255)<<24|(c>>>8&255)<<16|(c>>>16&255)<<8|c>>>24&255;break;default:c=(c&255)<<24|(c>>>24&255)<<16|(c>>>16&255)<<8|c>>>8&255}this.buffer.__srcBitmapData.floodFill(a+this.offsetX,b+this.offsetY,c)}},getColorBoundsRect:function(a,b,c,d){null==c&&(c=!0);if(null==this.buffer)return null;switch(this.type._hx_index){case 0:return za.convertToData(this),$a.getColorBoundsRect(this, +a,b,c,d);case 1:return $a.getColorBoundsRect(this,a,b,c,d);case 2:return a=this.buffer.__srcBitmapData.getColorBoundsRect(a,b,c),new Ad(a.x,a.y,a.width,a.height);default:return null}},getPixel:function(a,b,c){if(null==this.buffer||0>a||0>b||a>=this.width||b>=this.height)return 0;switch(this.type._hx_index){case 0:return za.getPixel(this,a,b,c);case 1:return za.convertToData(this),$a.getPixel(this,a,b,c);case 2:a=this.buffer.__srcBitmapData.getPixel(a+this.offsetX,b+this.offsetY);if(null==c)return(a>>> +16&255)<<24|(a>>>8&255)<<16|(a&255)<<8|a>>>24&255;switch(c){case 1:return a;case 2:return(a&255)<<24|(a>>>8&255)<<16|(a>>>16&255)<<8|a>>>24&255;default:return(a>>>16&255)<<24|(a>>>8&255)<<16|(a&255)<<8|a>>>24&255}default:return 0}},getPixel32:function(a,b,c){if(null==this.buffer||0>a||0>b||a>=this.width||b>=this.height)return 0;switch(this.type._hx_index){case 0:return za.getPixel32(this,a,b,c);case 1:return za.convertToData(this),$a.getPixel32(this,a,b,c);case 2:a=this.buffer.__srcBitmapData.getPixel32(a+ +this.offsetX,b+this.offsetY);if(null==c)return(a>>>16&255)<<24|(a>>>8&255)<<16|(a&255)<<8|a>>>24&255;switch(c){case 1:return a;case 2:return(a&255)<<24|(a>>>8&255)<<16|(a>>>16&255)<<8|a>>>24&255;default:return(a>>>16&255)<<24|(a>>>8&255)<<16|(a&255)<<8|a>>>24&255}default:return 0}},getPixels:function(a,b){if(null==this.buffer)return null;switch(this.type._hx_index){case 0:return za.getPixels(this,a,b);case 1:return za.convertToData(this),$a.getPixels(this,a,b);case 2:return null;default:return null}}, +merge:function(a,b,c,d,e,g,f){if(null!=this.buffer&&null!=a)switch(this.type._hx_index){case 0:za.convertToCanvas(this);za.merge(this,a,b,c,d,e,g,f);break;case 1:za.convertToData(this);za.convertToData(a);$a.merge(this,a,b,c,d,e,g,f);break;case 2:b.offset(this.offsetX,this.offsetY),this.buffer.__srcBitmapData.merge(a.buffer.__srcBitmapData,b.__toFlashRectangle(),c.__toFlashPoint(),d,e,g,f)}},resize:function(a,b){switch(this.type._hx_index){case 0:za.resize(this,a,b);break;case 1:$a.resize(this,a, +b)}this.buffer.width=a;this.buffer.height=b;this.offsetY=this.offsetX=0;this.width=a;this.height=b},scroll:function(a,b){if(null!=this.buffer)switch(this.type._hx_index){case 0:za.scroll(this,a,b);break;case 1:this.copyPixels(this,this.get_rect(),new Td(a,b));break;case 2:this.buffer.__srcBitmapData.scroll(a+this.offsetX,b+this.offsetX)}},setPixel:function(a,b,c,d){if(!(null==this.buffer||0>a||0>b||a>=this.width||b>=this.height))switch(this.type._hx_index){case 0:za.setPixel(this,a,b,c,d);break;case 1:za.convertToData(this); +$a.setPixel(this,a,b,c,d);break;case 2:if(null==d)c=(c&255)<<24|(c>>>24&255)<<16|(c>>>16&255)<<8|c>>>8&255;else switch(d){case 1:break;case 2:c=(c&255)<<24|(c>>>8&255)<<16|(c>>>16&255)<<8|c>>>24&255;break;default:c=(c&255)<<24|(c>>>24&255)<<16|(c>>>16&255)<<8|c>>>8&255}this.buffer.__srcBitmapData.setPixel(a+this.offsetX,b+this.offsetX,c)}},setPixel32:function(a,b,c,d){if(!(null==this.buffer||0>a||0>b||a>=this.width||b>=this.height))switch(this.type._hx_index){case 0:za.setPixel32(this,a,b,c,d);break; +case 1:za.convertToData(this);$a.setPixel32(this,a,b,c,d);break;case 2:if(null==d)c=(c&255)<<24|(c>>>24&255)<<16|(c>>>16&255)<<8|c>>>8&255;else switch(d){case 1:break;case 2:c=(c&255)<<24|(c>>>8&255)<<16|(c>>>16&255)<<8|c>>>24&255;break;default:c=(c&255)<<24|(c>>>24&255)<<16|(c>>>16&255)<<8|c>>>8&255}this.buffer.__srcBitmapData.setPixel32(a+this.offsetX,b+this.offsetY,c)}},setPixels:function(a,b,c,d){a=this.__clipRect(a);if(null!=this.buffer&&null!=a)switch(null==d&&(d=zg.BIG_ENDIAN),this.type._hx_index){case 0:za.setPixels(this, +a,b,c,d);break;case 1:za.convertToData(this),$a.setPixels(this,a,b,c,d)}},threshold:function(a,b,c,d,e,g,f,l,t){null==l&&(l=!1);null==f&&(f=-1);null==g&&(g=0);if(null==this.buffer||null==a||null==b)return 0;switch(this.type._hx_index){case 0:case 1:return za.convertToData(this),za.convertToData(a),$a.threshold(this,a,b,c,d,e,g,f,l,t);case 2:if(null==t){var x=g;g=(x&255)<<24|(x>>>24&255)<<16|(x>>>16&255)<<8|x>>>8&255}else switch(t){case 1:break;case 2:x=g;g=(x&255)<<24|(x>>>8&255)<<16|(x>>>16&255)<< +8|x>>>24&255;break;default:x=g,g=(x&255)<<24|(x>>>24&255)<<16|(x>>>16&255)<<8|x>>>8&255}if(null==t)x=f,f=(x&255)<<24|(x>>>24&255)<<16|(x>>>16&255)<<8|x>>>8&255;else switch(t){case 1:break;case 2:x=f;f=(x&255)<<24|(x>>>8&255)<<16|(x>>>16&255)<<8|x>>>24&255;break;default:x=f,f=(x&255)<<24|(x>>>24&255)<<16|(x>>>16&255)<<8|x>>>8&255}b.offset(a.offsetX,a.offsetY);c.offset(this.offsetX,this.offsetY);return this.buffer.__srcBitmapData.threshold(a.buffer.get_src(),b.__toFlashRectangle(),c.__toFlashPoint(), +d,e,g,f,l)}return 0},__clipRect:function(a){return null==a||0>a.x&&(a.width-=-a.x,a.x=0,0>=a.x+a.width)||0>a.y&&(a.height-=-a.y,a.y=0,0>=a.y+a.height)||a.x+a.width>=this.width&&(a.width-=a.x+a.width-this.width,0>=a.width)||a.y+a.height>=this.height&&(a.height-=a.y+a.height-this.height,0>=a.height)?null:a},__fromBase64:function(a,b,c){var d=this,e=new Image;e.addEventListener("load",function(a){d.buffer=new Qf(null,e.width,e.height);d.buffer.__srcImage=e;d.offsetX=0;d.offsetY=0;d.width=d.buffer.width; +d.height=d.buffer.height;null!=c&&c(d)},!1);e.src="data:"+b+";base64,"+a},__fromBytes:function(a,b){if(Db.__isPNG(a))var c="image/png";else if(Db.__isJPG(a))c="image/jpeg";else if(Db.__isGIF(a))c="image/gif";else return!1;this.__fromBase64(Pf.encode(a),c,b);return!0},__fromFile:function(a,b,c){var d=this,e=new Image;bb.__isSameOrigin(a)||(e.crossOrigin="Anonymous");e.onload=function(a){d.buffer=new Qf(null,e.width,e.height);d.buffer.__srcImage=e;d.width=e.width;d.height=e.height;null!=b&&b(d)};e.onerror= +function(a){null!=c&&c()};e.src=a;return!0},__fromImageBuffer:function(a){this.buffer=a;null!=a&&(-1==this.width&&(this.width=a.width),-1==this.height&&(this.height=a.height))},get_data:function(){null==this.buffer.data&&0<this.buffer.width&&0<this.buffer.height&&za.convertToData(this);return this.buffer.data},set_data:function(a){return this.buffer.data=a},get_format:function(){return this.buffer.format},set_format:function(a){this.buffer.format!=a&&1==this.type._hx_index&&$a.setFormat(this,a);return this.buffer.format= +a},get_powerOfTwo:function(){return 0!=this.buffer.width&&(this.buffer.width&~this.buffer.width+1)==this.buffer.width?0!=this.buffer.height?(this.buffer.height&~this.buffer.height+1)==this.buffer.height:!1:!1},set_powerOfTwo:function(a){if(a!=this.get_powerOfTwo()){for(var b=1,c=1;b<this.buffer.width;)b<<=1;for(;c<this.buffer.height;)c<<=1;if(b==this.buffer.width&&c==this.buffer.height)return a;switch(this.type._hx_index){case 0:za.convertToData(this);$a.resizeBuffer(this,b,c);break;case 1:$a.resizeBuffer(this, +b,c)}}return a},get_premultiplied:function(){return this.buffer.premultiplied},set_premultiplied:function(a){if(a&&!this.buffer.premultiplied)switch(this.type._hx_index){case 0:case 1:za.convertToData(this),$a.multiplyAlpha(this)}else!a&&this.buffer.premultiplied&&1==this.type._hx_index&&(za.convertToData(this),$a.unmultiplyAlpha(this));return a},get_rect:function(){return new Ad(0,0,this.width,this.height)},get_src:function(){null!=this.buffer.__srcCanvas||null==this.buffer.data&&this.type!=se.DATA|| +za.convertToCanvas(this);return this.buffer.get_src()},set_src:function(a){return this.buffer.set_src(a)},get_transparent:function(){return null==this.buffer?!1:this.buffer.transparent},set_transparent:function(a){return null==this.buffer?!1:this.buffer.transparent=a},__class__:Db,__properties__:{set_transparent:"set_transparent",get_transparent:"get_transparent",set_src:"set_src",get_src:"get_src",get_rect:"get_rect",set_premultiplied:"set_premultiplied",get_premultiplied:"get_premultiplied",set_powerOfTwo:"set_powerOfTwo", +get_powerOfTwo:"get_powerOfTwo",set_format:"set_format",get_format:"get_format",set_data:"set_data",get_data:"get_data"}};var Qf=function(a,b,c,d,e){null==d&&(d=32);null==c&&(c=0);null==b&&(b=0);this.data=a;this.width=b;this.height=c;this.bitsPerPixel=d;this.format=null==e?0:e;this.premultiplied=!1;this.transparent=!0};k["lime.graphics.ImageBuffer"]=Qf;Qf.__name__="lime.graphics.ImageBuffer";Qf.prototype={bitsPerPixel:null,data:null,format:null,height:null,premultiplied:null,transparent:null,width:null, +__srcBitmapData:null,__srcCanvas:null,__srcContext:null,__srcCustom:null,__srcImage:null,__srcImageData:null,clone:function(){var a=new Qf(this.data,this.width,this.height,this.bitsPerPixel);if(null!=this.data){var b=this.data.byteLength,c=null,d=null,e=null,g=null,f=null;b=null!=b?new Uint8Array(b):null!=c?new Uint8Array(c):null!=d?new Uint8Array(d.__array):null!=e?new Uint8Array(e):null!=g?null==f?new Uint8Array(g,0):new Uint8Array(g,0,f):null;a.data=b;d=c=b=null;e=this.data;f=g=null;b=null!=b? +new Uint8Array(b):null!=c?new Uint8Array(c):null!=d?new Uint8Array(d.__array):null!=e?new Uint8Array(e):null!=g?null==f?new Uint8Array(g,0):new Uint8Array(g,0,f):null;a.data.set(b)}else null!=this.__srcImageData?(a.__srcCanvas=window.document.createElement("canvas"),a.__srcContext=a.__srcCanvas.getContext("2d"),a.__srcCanvas.width=this.__srcImageData.width,a.__srcCanvas.height=this.__srcImageData.height,a.__srcImageData=a.__srcContext.createImageData(this.__srcImageData.width,this.__srcImageData.height), +b=new Uint8ClampedArray(this.__srcImageData.data),a.__srcImageData.data.set(b)):null!=this.__srcCanvas?(a.__srcCanvas=window.document.createElement("canvas"),a.__srcContext=a.__srcCanvas.getContext("2d"),a.__srcCanvas.width=this.__srcCanvas.width,a.__srcCanvas.height=this.__srcCanvas.height,a.__srcContext.drawImage(this.__srcCanvas,0,0)):a.__srcImage=this.__srcImage;a.bitsPerPixel=this.bitsPerPixel;a.format=this.format;a.premultiplied=this.premultiplied;a.transparent=this.transparent;return a},get_src:function(){return null!= +this.__srcImage?this.__srcImage:this.__srcCanvas},set_src:function(a){a instanceof Image?this.__srcImage=a:a instanceof HTMLCanvasElement&&(this.__srcCanvas=a,this.__srcContext=this.__srcCanvas.getContext("2d"));return a},get_stride:function(){return this.width*(this.bitsPerPixel/8|0)},__class__:Qf,__properties__:{get_stride:"get_stride",set_src:"set_src",get_src:"get_src"}};var kf=E["lime.graphics.ImageChannel"]={__ename__:"lime.graphics.ImageChannel",__constructs__:null,RED:{_hx_name:"RED",_hx_index:0, +__enum__:"lime.graphics.ImageChannel",toString:v},GREEN:{_hx_name:"GREEN",_hx_index:1,__enum__:"lime.graphics.ImageChannel",toString:v},BLUE:{_hx_name:"BLUE",_hx_index:2,__enum__:"lime.graphics.ImageChannel",toString:v},ALPHA:{_hx_name:"ALPHA",_hx_index:3,__enum__:"lime.graphics.ImageChannel",toString:v}};kf.__constructs__=[kf.RED,kf.GREEN,kf.BLUE,kf.ALPHA];var um=E["lime.graphics.ImageFileFormat"]={__ename__:"lime.graphics.ImageFileFormat",__constructs__:null,BMP:{_hx_name:"BMP",_hx_index:0,__enum__:"lime.graphics.ImageFileFormat", +toString:v},JPEG:{_hx_name:"JPEG",_hx_index:1,__enum__:"lime.graphics.ImageFileFormat",toString:v},PNG:{_hx_name:"PNG",_hx_index:2,__enum__:"lime.graphics.ImageFileFormat",toString:v}};um.__constructs__=[um.BMP,um.JPEG,um.PNG];var se=E["lime.graphics.ImageType"]={__ename__:"lime.graphics.ImageType",__constructs__:null,CANVAS:{_hx_name:"CANVAS",_hx_index:0,__enum__:"lime.graphics.ImageType",toString:v},DATA:{_hx_name:"DATA",_hx_index:1,__enum__:"lime.graphics.ImageType",toString:v},FLASH:{_hx_name:"FLASH", +_hx_index:2,__enum__:"lime.graphics.ImageType",toString:v},CUSTOM:{_hx_name:"CUSTOM",_hx_index:3,__enum__:"lime.graphics.ImageType",toString:v}};se.__constructs__=[se.CANVAS,se.DATA,se.FLASH,se.CUSTOM];var xo=function(){};k["lime.graphics.RenderContext"]=xo;xo.__name__="lime.graphics.RenderContext";xo.prototype={attributes:null,cairo:null,canvas2D:null,dom:null,flash:null,gl:null,gles2:null,gles3:null,type:null,version:null,webgl:null,webgl2:null,window:null,__class__:xo};var Au={bufferData:function(a, +b,c,d,e,g){null!=e?a.bufferData(b,c,d,e,g):a.bufferData(b,c,d)},bufferSubData:function(a,b,c,d,e,g){null!=e?a.bufferSubData(b,c,d,e,g):a.bufferSubData(b,c,d)},compressedTexImage2D:function(a,b,c,d,e,g,f,l,t,m){null!=t?a.compressedTexImage2D(b,c,d,e,g,f,l,t,m):a.compressedTexImage2D(b,c,d,e,g,f,l)},compressedTexSubImage2D:function(a,b,c,d,e,g,f,l,t,m,h){null!=m?a.compressedTexSubImage2D(b,c,d,e,g,f,l,t,m,h):a.compressedTexSubImage2D(b,c,d,e,g,f,l,t)},getBufferSubData:function(a,b,c,d,e,g){null!=e? +a.getBufferSubData(b,c,d,e,g):a.getBufferSubData(b,c,d)},readPixels:function(a,b,c,d,e,g,f,l,t){null!=t?a.readPixels(b,c,d,e,g,f,l,t):a.readPixels(b,c,d,e,g,f,l)},texImage2D:function(a,b,c,d,e,g,f,l,t,m,h){null!=h?a.texImage2D(b,c,d,e,g,f,l,t,m,h):null!=l?a.texImage2D(b,c,d,e,g,f,l,t,m):a.texImage2D(b,c,d,e,g,f)},texSubImage2D:function(a,b,c,d,e,g,f,l,t,m,h){null!=h?a.texSubImage2D(b,c,d,e,g,f,l,t,m,h):null!=t?a.texSubImage2D(b,c,d,e,g,f,l,t,m):a.texSubImage2D(b,c,d,e,g,f,l)},uniform1fv:function(a, +b,c,d,e){null!=d?a.uniform1fv(b,c,d,e):a.uniform1fv(b,c)},uniform1iv:function(a,b,c,d,e){null!=d?a.uniform1iv(b,c,d,e):a.uniform1iv(b,c)},uniform2fv:function(a,b,c,d,e){null!=d?a.uniform2fv(b,c,d,e):a.uniform2fv(b,c)},uniform2iv:function(a,b,c,d,e){null!=d?a.uniform2iv(b,c,d,e):a.uniform2iv(b,c)},uniform3fv:function(a,b,c,d,e){null!=d?a.uniform3fv(b,c,d,e):a.uniform3fv(b,c)},uniform3iv:function(a,b,c,d,e){null!=d?a.uniform3iv(b,c,d,e):a.uniform3iv(b,c)},uniform4fv:function(a,b,c,d,e){null!=d?a.uniform4fv(b, +c,d,e):a.uniform4fv(b,c)},uniform4iv:function(a,b,c,d,e){null!=d?a.uniform4iv(b,c,d,e):a.uniform4iv(b,c)},uniformMatrix2fv:function(a,b,c,d,e,g){null!=e?a.uniformMatrix2fv(b,c,d,e,g):a.uniformMatrix2fv(b,c,d)},uniformMatrix3fv:function(a,b,c,d,e,g){null!=e?a.uniformMatrix3fv(b,c,d,e,g):a.uniformMatrix3fv(b,c,d)},uniformMatrix4fv:function(a,b,c,d,e,g){null!=e?a.uniformMatrix4fv(b,c,d,e,g):a.uniformMatrix4fv(b,c,d)},fromGL:function(a){return null},fromRenderContext:function(a){return a.webgl2},toWebGLRenderContext:function(a){return a}}, +Yb={bufferData:function(a,b,c,d){a.bufferData(b,c,d)},bufferSubData:function(a,b,c,d){a.bufferSubData(b,c,d)},compressedTexImage2D:function(a,b,c,d,e,g,f,l){a.compressedTexImage2D(b,c,d,e,g,f,l)},compressedTexSubImage2D:function(a,b,c,d,e,g,f,l,t){a.compressedTexSubImage2D(b,c,d,e,g,f,l,t)},readPixels:function(a,b,c,d,e,g,f,l){a.readPixels(b,c,d,e,g,f,l)},texImage2D:function(a,b,c,d,e,g,f,l,t,m){null!=l?a.texImage2D(b,c,d,e,g,f,l,t,m):a.texImage2D(b,c,d,e,g,f)},texSubImage2D:function(a,b,c,d,e,g, +f,l,t,m){null!=t?a.texSubImage2D(b,c,d,e,g,f,l,t,m):a.texSubImage2D(b,c,d,e,g,f,l)},uniformMatrix2fv:function(a,b,c,d){a.uniformMatrix2fv(b,c,d)},uniformMatrix3fv:function(a,b,c,d){a.uniformMatrix3fv(b,c,d)},uniformMatrix4fv:function(a,b,c,d){a.uniformMatrix4fv(b,c,d)},fromWebGL2RenderContext:function(a){return a},fromRenderContext:function(a){return a.webgl},fromGL:function(a){return r.context}},Sj=function(a){};k["lime.graphics.cairo.Cairo"]=Sj;Sj.__name__="lime.graphics.cairo.Cairo";Sj.__properties__= +{get_versionString:"get_versionString",get_version:"get_version"};Sj.get_version=function(){return 0};Sj.get_versionString=function(){return""};Sj.prototype={target:null,userData:null,handle:null,arc:function(a,b,c,d,e){},arcNegative:function(a,b,c,d,e){},clip:function(){},clipExtents:function(a,b,c,d){},clipPreserve:function(){},closePath:function(){},copyPage:function(){},curveTo:function(a,b,c,d,e,g){},fill:function(){},fillExtents:function(a,b,c,d){},fillPreserve:function(){},getOperator:function(){return 0}, +identityMatrix:function(){},inClip:function(a,b){return!1},inFill:function(a,b){return!1},inStroke:function(a,b){return!1},lineTo:function(a,b){},mask:function(a){},maskSurface:function(a,b,c){},moveTo:function(a,b){},newPath:function(){},paint:function(){},paintWithAlpha:function(a){},popGroup:function(){return null},popGroupToSource:function(){},pushGroup:function(){},pushGroupWithContent:function(a){},recreate:function(a){},rectangle:function(a,b,c,d){},relCurveTo:function(a,b,c,d,e,g){},relLineTo:function(a, +b){},relMoveTo:function(a,b){},resetClip:function(){},restore:function(){},rotate:function(a){},save:function(){},scale:function(a,b){},setFontSize:function(a){},setOperator:function(a){return a},setSourceRGB:function(a,b,c){},setSourceRGBA:function(a,b,c,d){},setSourceSurface:function(a,b,c){},showGlyphs:function(a){},showPage:function(){},showText:function(a){},status:function(){return 0},stroke:function(){},strokeExtents:function(a,b,c,d){},strokePreserve:function(){},textPath:function(a){},transform:function(a){}, +translate:function(a,b){},get_antialias:function(){return 0},set_antialias:function(a){return a},get_currentPoint:function(){return null},get_dash:function(){return[]},set_dash:function(a){return a},get_dashCount:function(){return 0},get_fillRule:function(){return 0},set_fillRule:function(a){return a},get_fontFace:function(){return 0},set_fontFace:function(a){return a},get_fontOptions:function(){return null},set_fontOptions:function(a){return a},get_groupTarget:function(){return 0},get_hasCurrentPoint:function(){return!1}, +get_lineCap:function(){return 0},set_lineCap:function(a){return a},get_lineJoin:function(){return 0},set_lineJoin:function(a){return a},get_lineWidth:function(){return 0},set_lineWidth:function(a){return a},get_matrix:function(){return null},set_matrix:function(a){return a},get_miterLimit:function(){return 0},set_miterLimit:function(a){return a},get_source:function(){return 0},set_source:function(a){return a},get_target:function(){return 0},get_tolerance:function(){return 0},set_tolerance:function(a){return a}, +__class__:Sj,__properties__:{set_tolerance:"set_tolerance",get_tolerance:"get_tolerance",get_target:"get_target",set_source:"set_source",get_source:"get_source",set_miterLimit:"set_miterLimit",get_miterLimit:"get_miterLimit",set_matrix:"set_matrix",get_matrix:"get_matrix",set_lineWidth:"set_lineWidth",get_lineWidth:"get_lineWidth",set_lineJoin:"set_lineJoin",get_lineJoin:"get_lineJoin",set_lineCap:"set_lineCap",get_lineCap:"get_lineCap",get_hasCurrentPoint:"get_hasCurrentPoint",get_groupTarget:"get_groupTarget", +set_fontOptions:"set_fontOptions",get_fontOptions:"get_fontOptions",set_fontFace:"set_fontFace",get_fontFace:"get_fontFace",set_fillRule:"set_fillRule",get_fillRule:"get_fillRule",get_dashCount:"get_dashCount",set_dash:"set_dash",get_dash:"get_dash",get_currentPoint:"get_currentPoint",set_antialias:"set_antialias",get_antialias:"get_antialias"}};var Ft=function(a,b,c){null==c&&(c=0);null==b&&(b=0);this.index=a;this.x=b;this.y=c};k["lime.graphics.cairo.CairoGlyph"]=Ft;Ft.__name__="lime.graphics.cairo.CairoGlyph"; +Ft.prototype={index:null,x:null,y:null,__class__:Ft};var Hu={__properties__:{get_width:"get_width",get_stride:"get_stride",get_height:"get_height",get_format:"get_format",get_data:"get_data"},_new:function(a,b,c){return 0},create:function(a,b,c,d,e){return 0},fromImage:function(a){return null},get_data:function(a){return lf.fromFloat(0)},get_format:function(a){return 0},get_height:function(a){return 0},get_stride:function(a){return 0},get_width:function(a){return 0}},Oo={__properties__:{set_matrix:"set_matrix", +get_matrix:"get_matrix",set_filter:"set_filter",get_filter:"get_filter",set_extend:"set_extend",get_extend:"get_extend",get_colorStopCount:"get_colorStopCount"},_new:function(a){return a},addColorStopRGB:function(a,b,c,d,e){},addColorStopRGBA:function(a,b,c,d,e,g){},createForSurface:function(a){return 0},createLinear:function(a,b,c,d){return 0},createRadial:function(a,b,c,d,e,g){return 0},createRGB:function(a,b,c){return 0},createRGBA:function(a,b,c,d){return 0},get_colorStopCount:function(a){return 0}, +get_extend:function(a){return 0},set_extend:function(a,b){return b},get_filter:function(a){return 0},set_filter:function(a,b){return b},get_matrix:function(a){return null},set_matrix:function(a,b){return b}},Iu={flush:function(a){}},r=function(){};k["lime.graphics.opengl.GL"]=r;r.__name__="lime.graphics.opengl.GL";r.activeTexture=function(a){r.context.activeTexture(a)};r.attachShader=function(a,b){r.context.attachShader(a,b)};r.beginQuery=function(a,b){r.context.beginQuery(a,b)};r.beginTransformFeedback= +function(a){r.context.beginTransformFeedback(a)};r.bindAttribLocation=function(a,b,c){r.context.bindAttribLocation(a,b,c)};r.bindBuffer=function(a,b){r.context.bindBuffer(a,b)};r.bindBufferBase=function(a,b,c){r.context.bindBufferBase(a,b,c)};r.bindBufferRange=function(a,b,c,d,e){r.context.bindBufferRange(a,b,c,d,lf.fromFloat(e))};r.bindFramebuffer=function(a,b){r.context.bindFramebuffer(a,b)};r.bindRenderbuffer=function(a,b){r.context.bindRenderbuffer(a,b)};r.bindSampler=function(a,b){r.context.bindSampler(a, +b)};r.bindTexture=function(a,b){r.context.bindTexture(a,b)};r.bindTransformFeedback=function(a,b){r.context.bindTransformFeedback(a,b)};r.bindVertexArray=function(a){r.context.bindVertexArray(a)};r.blitFramebuffer=function(a,b,c,d,e,g,f,l,t,m){r.context.blitFramebuffer(a,b,c,d,e,g,f,l,t,m)};r.blendColor=function(a,b,c,d){r.context.blendColor(a,b,c,d)};r.blendEquation=function(a){r.context.blendEquation(a)};r.blendEquationSeparate=function(a,b){r.context.blendEquationSeparate(a,b)};r.blendFunc=function(a, +b){r.context.blendFunc(a,b)};r.blendFuncSeparate=function(a,b,c,d){r.context.blendFuncSeparate(a,b,c,d)};r.bufferDataWEBGL=function(a,b,c,d,e){var g=r.context;null!=d?g.bufferData(a,b,c,d,e):g.bufferData(a,b,c)};r.bufferSubDataWEBGL=function(a,b,c,d,e){var g=r.context;null!=d?g.bufferSubData(a,b,c,d,e):g.bufferSubData(a,b,c)};r.checkFramebufferStatus=function(a){return r.context.checkFramebufferStatus(a)};r.clear=function(a){r.context.clear(a)};r.clearBufferfi=function(a,b,c,d){r.context.clearBufferfi(a, +b,c,d)};r.clearBufferfvWEBGL=function(a,b,c,d){r.context.clearBufferfv(a,b,c,d)};r.clearBufferivWEBGL=function(a,b,c,d){r.context.clearBufferiv(a,b,c,d)};r.clearBufferuivWEBGL=function(a,b,c,d){r.context.clearBufferuiv(a,b,c,d)};r.clearColor=function(a,b,c,d){r.context.clearColor(a,b,c,d)};r.clearDepth=function(a){r.context.clearDepth(a)};r.clearStencil=function(a){r.context.clearStencil(a)};r.clientWaitSync=function(a,b,c){return r.context.clientWaitSync(a,b,c)};r.colorMask=function(a,b,c,d){r.context.colorMask(a, +b,c,d)};r.compileShader=function(a){r.context.compileShader(a)};r.compressedTexImage2DWEBGL=function(a,b,c,d,e,g,f,l,t){var x=r.context;null!=l?x.compressedTexImage2D(a,b,c,d,e,g,f,l,t):x.compressedTexImage2D(a,b,c,d,e,g,f)};r.compressedTexImage3DWEBGL=function(a,b,c,d,e,g,f,l,t,m){r.context.compressedTexImage3D(a,b,c,d,e,g,f,l,t,m)};r.compressedTexSubImage2DWEBGL=function(a,b,c,d,e,g,f,l,t,m){var x=r.context;null!=t?x.compressedTexSubImage2D(a,b,c,d,e,g,f,l,t,m):x.compressedTexSubImage2D(a,b,c,d, +e,g,f,l)};r.compressedTexSubImage3DWEBGL=function(a,b,c,d,e,g,f,l,t,m,h,p){r.context.compressedTexSubImage3D(a,b,c,d,e,g,f,l,t,m,h,p)};r.copyTexImage2D=function(a,b,c,d,e,g,f,l){r.context.copyTexImage2D(a,b,c,d,e,g,f,l)};r.copyTexSubImage2D=function(a,b,c,d,e,g,f,l){r.context.copyTexSubImage2D(a,b,c,d,e,g,f,l)};r.copyTexSubImage3D=function(a,b,c,d,e,g,f,l,t){r.context.copyTexSubImage3D(a,b,c,d,e,g,f,l,t)};r.createBuffer=function(){return r.context.createBuffer()};r.createFramebuffer=function(){return r.context.createFramebuffer()}; +r.createProgram=function(){return r.context.createProgram()};r.createQuery=function(){return r.context.createQuery()};r.createRenderbuffer=function(){return r.context.createRenderbuffer()};r.createSampler=function(){return r.context.createSampler()};r.createShader=function(a){return r.context.createShader(a)};r.createTexture=function(){return r.context.createTexture()};r.createTransformFeedback=function(){return r.context.createTransformFeedback()};r.createVertexArray=function(){return r.context.createVertexArray()}; +r.cullFace=function(a){r.context.cullFace(a)};r.deleteBuffer=function(a){r.context.deleteBuffer(a)};r.deleteFramebuffer=function(a){r.context.deleteFramebuffer(a)};r.deleteProgram=function(a){r.context.deleteProgram(a)};r.deleteQuery=function(a){r.context.deleteQuery(a)};r.deleteRenderbuffer=function(a){r.context.deleteRenderbuffer(a)};r.deleteSampler=function(a){r.context.deleteSampler(a)};r.deleteShader=function(a){r.context.deleteShader(a)};r.deleteSync=function(a){r.context.deleteSync(a)};r.deleteTexture= +function(a){r.context.deleteTexture(a)};r.deleteTransformFeedback=function(a){r.context.deleteTransformFeedback(a)};r.deleteVertexArray=function(a){r.context.deleteVertexArray(a)};r.depthFunc=function(a){r.context.depthFunc(a)};r.depthMask=function(a){r.context.depthMask(a)};r.depthRange=function(a,b){r.context.depthRange(a,b)};r.detachShader=function(a,b){r.context.detachShader(a,b)};r.disable=function(a){r.context.disable(a)};r.disableVertexAttribArray=function(a){r.context.disableVertexAttribArray(a)}; +r.drawArrays=function(a,b,c){r.context.drawArrays(a,b,c)};r.drawArraysInstanced=function(a,b,c,d){r.context.drawArraysInstanced(a,b,c,d)};r.drawBuffers=function(a){r.context.drawBuffers(a)};r.drawElements=function(a,b,c,d){r.context.drawElements(a,b,c,d)};r.drawElementsInstanced=function(a,b,c,d,e){r.context.drawElementsInstanced(a,b,c,d,e)};r.drawRangeElements=function(a,b,c,d,e,g){r.context.drawRangeElements(a,b,c,d,e,g)};r.enable=function(a){r.context.enable(a)};r.enableVertexAttribArray=function(a){r.context.enableVertexAttribArray(a)}; +r.endQuery=function(a){r.context.endQuery(a)};r.endTransformFeedback=function(){r.context.endTransformFeedback()};r.fenceSync=function(a,b){return r.context.fenceSync(a,b)};r.finish=function(){r.context.finish()};r.flush=function(){r.context.flush()};r.framebufferRenderbuffer=function(a,b,c,d){r.context.framebufferRenderbuffer(a,b,c,d)};r.framebufferTexture2D=function(a,b,c,d,e){r.context.framebufferTexture2D(a,b,c,d,e)};r.framebufferTextureLayer=function(a,b,c,d,e){r.context.framebufferTextureLayer(a, +b,c,d,e)};r.frontFace=function(a){r.context.frontFace(a)};r.generateMipmap=function(a){r.context.generateMipmap(a)};r.getActiveAttrib=function(a,b){return r.context.getActiveAttrib(a,b)};r.getActiveUniform=function(a,b){return r.context.getActiveUniform(a,b)};r.getActiveUniformBlockName=function(a,b){return r.context.getActiveUniformBlockName(a,b)};r.getActiveUniformBlockParameter=function(a,b,c){return r.context.getActiveUniformBlockParameter(a,b,c)};r.getActiveUniforms=function(a,b,c){return r.context.getActiveUniforms(a, +b,c)};r.getAttachedShaders=function(a){return r.context.getAttachedShaders(a)};r.getAttribLocation=function(a,b){return r.context.getAttribLocation(a,b)};r.getBufferParameter=function(a,b){return r.context.getBufferParameter(a,b)};r.getBufferSubDataWEBGL=function(a,b,c,d,e){var g=r.context;null!=d?g.getBufferSubData(a,b,c,d,e):g.getBufferSubData(a,b,c)};r.getContextAttributes=function(){return r.context.getContextAttributes()};r.getError=function(){return r.context.getError()};r.getExtension=function(a){return r.context.getExtension(a)}; +r.getFragDataLocation=function(a,b){return r.context.getFragDataLocation(a,b)};r.getFramebufferAttachmentParameter=function(a,b,c){return r.context.getFramebufferAttachmentParameter(a,b,c)};r.getIndexedParameter=function(a,b){return r.context.getIndexedParameter(a,b)};r.getInternalformatParameter=function(a,b,c){return r.context.getInternalformatParameter(a,b,c)};r.getParameter=function(a){return r.context.getParameter(a)};r.getProgramInfoLog=function(a){return r.context.getProgramInfoLog(a)};r.getProgramParameter= +function(a,b){return r.context.getProgramParameter(a,b)};r.getQuery=function(a,b){return r.context.getQuery(a,b)};r.getQueryParameter=function(a,b){return r.context.getQueryParameter(a,b)};r.getRenderbufferParameter=function(a,b){return r.context.getRenderbufferParameter(a,b)};r.getSamplerParameter=function(a,b){return r.context.getSamplerParameter(a,b)};r.getShaderInfoLog=function(a){return r.context.getShaderInfoLog(a)};r.getShaderParameter=function(a,b){return r.context.getShaderParameter(a,b)}; +r.getShaderPrecisionFormat=function(a,b){return r.context.getShaderPrecisionFormat(a,b)};r.getShaderSource=function(a){return r.context.getShaderSource(a)};r.getSupportedExtensions=function(){return r.context.getSupportedExtensions()};r.getSyncParameter=function(a,b){return r.context.getSyncParameter(a,b)};r.getTexParameter=function(a,b){return r.context.getTexParameter(a,b)};r.getTransformFeedbackVarying=function(a,b){return r.context.getTransformFeedbackVarying(a,b)};r.getUniform=function(a,b){return r.context.getUniform(a, +b)};r.getUniformBlockIndex=function(a,b){return r.context.getUniformBlockIndex(a,b)};r.getUniformIndices=function(a,b){return r.context.getUniformIndices(a,b)};r.getUniformLocation=function(a,b){return r.context.getUniformLocation(a,b)};r.getVertexAttrib=function(a,b){return r.context.getVertexAttrib(a,b)};r.getVertexAttribOffset=function(a,b){return lf.fromFloat(r.context.getVertexAttribOffset(a,b))};r.hint=function(a,b){r.context.hint(a,b)};r.invalidateFramebuffer=function(a,b){r.context.invalidateFramebuffer(a, +b)};r.invalidateSubFramebuffer=function(a,b,c,d,e,g){r.context.invalidateSubFramebuffer(a,b,c,d,e,g)};r.isBuffer=function(a){return r.context.isBuffer(a)};r.isContextLost=function(){return r.context.isContextLost()};r.isEnabled=function(a){return r.context.isEnabled(a)};r.isFramebuffer=function(a){return r.context.isFramebuffer(a)};r.isProgram=function(a){return r.context.isProgram(a)};r.isQuery=function(a){return r.context.isQuery(a)};r.isRenderbuffer=function(a){return r.context.isRenderbuffer(a)}; +r.isSampler=function(a){return r.context.isSampler(a)};r.isShader=function(a){return r.context.isShader(a)};r.isSync=function(a){return r.context.isSync(a)};r.isTexture=function(a){return r.context.isTexture(a)};r.isTransformFeedback=function(a){return r.context.isTransformFeedback(a)};r.isVertexArray=function(a){return r.context.isVertexArray(a)};r.lineWidth=function(a){r.context.lineWidth(a)};r.linkProgram=function(a){r.context.linkProgram(a)};r.pauseTransformFeedback=function(){r.context.pauseTransformFeedback()}; +r.pixelStorei=function(a,b){r.context.pixelStorei(a,b)};r.polygonOffset=function(a,b){r.context.polygonOffset(a,b)};r.readBuffer=function(a){r.context.readBuffer(a)};r.readPixelsWEBGL=function(a,b,c,d,e,g,f,l){var x=r.context;null!=l?x.readPixels(a,b,c,d,e,g,f,l):x.readPixels(a,b,c,d,e,g,f)};r.renderbufferStorage=function(a,b,c,d){r.context.renderbufferStorage(a,b,c,d)};r.renderbufferStorageMultisample=function(a,b,c,d,e){r.context.renderbufferStorageMultisample(a,b,c,d,e)};r.resumeTransformFeedback= +function(){r.context.resumeTransformFeedback()};r.sampleCoverage=function(a,b){r.context.sampleCoverage(a,b)};r.samplerParameterf=function(a,b,c){r.context.samplerParameterf(a,b,c)};r.samplerParameteri=function(a,b,c){r.context.samplerParameteri(a,b,c)};r.scissor=function(a,b,c,d){r.context.scissor(a,b,c,d)};r.shaderSource=function(a,b){r.context.shaderSource(a,b)};r.stencilFunc=function(a,b,c){r.context.stencilFunc(a,b,c)};r.stencilFuncSeparate=function(a,b,c,d){r.context.stencilFuncSeparate(a,b, +c,d)};r.stencilMask=function(a){r.context.stencilMask(a)};r.stencilMaskSeparate=function(a,b){r.context.stencilMaskSeparate(a,b)};r.stencilOp=function(a,b,c){r.context.stencilOp(a,b,c)};r.stencilOpSeparate=function(a,b,c,d){r.context.stencilOpSeparate(a,b,c,d)};r.texImage2DWEBGL=function(a,b,c,d,e,g,f,l,t,m){var x=r.context;null!=m?x.texImage2D(a,b,c,d,e,g,f,l,t,m):null!=f?x.texImage2D(a,b,c,d,e,g,f,l,t):x.texImage2D(a,b,c,d,e,g)};r.texImage3DWEBGL=function(a,b,c,d,e,g,f,l,t,m,h){r.context.texImage3D(a, +b,c,d,e,g,f,l,t,m,h)};r.texStorage2D=function(a,b,c,d,e){r.context.texStorage2D(a,b,c,d,e)};r.texStorage3D=function(a,b,c,d,e,g){r.context.texStorage3D(a,b,c,d,e,g)};r.texParameterf=function(a,b,c){r.context.texParameterf(a,b,c)};r.texParameteri=function(a,b,c){r.context.texParameteri(a,b,c)};r.texSubImage2DWEBGL=function(a,b,c,d,e,g,f,l,t,m){var x=r.context;null!=m?x.texSubImage2D(a,b,c,d,e,g,f,l,t,m):null!=l?x.texSubImage2D(a,b,c,d,e,g,f,l,t):x.texSubImage2D(a,b,c,d,e,g,f)};r.texSubImage3DWEBGL= +function(a,b,c,d,e,g,f,l,t,m,h,p){r.context.texSubImage3D(a,b,c,d,e,g,f,l,t,m,h,p)};r.transformFeedbackVaryings=function(a,b,c){r.context.transformFeedbackVaryings(a,b,c)};r.uniform1f=function(a,b){r.context.uniform1f(a,b)};r.uniform1fvWEBGL=function(a,b,c,d){var e=r.context;null!=c?e.uniform1fv(a,b,c,d):e.uniform1fv(a,b)};r.uniform1i=function(a,b){r.context.uniform1i(a,b)};r.uniform1ivWEBGL=function(a,b,c,d){var e=r.context;null!=c?e.uniform1iv(a,b,c,d):e.uniform1iv(a,b)};r.uniform1ui=function(a, +b){r.context.uniform1ui(a,b)};r.uniform1uivWEBGL=function(a,b,c,d){r.context.uniform1uiv(a,b,c,d)};r.uniform2f=function(a,b,c){r.context.uniform2f(a,b,c)};r.uniform2fvWEBGL=function(a,b,c,d){Au.uniform2fv(r.context,a,b,c,d)};r.uniform2i=function(a,b,c){r.context.uniform2i(a,b,c)};r.uniform2ivWEBGL=function(a,b,c,d){var e=r.context;null!=c?e.uniform2iv(a,b,c,d):e.uniform2iv(a,b)};r.uniform2ui=function(a,b,c){r.context.uniform2ui(a,b,c)};r.uniform2uivWEBGL=function(a,b,c,d){r.context.uniform2uiv(a, +b,c,d)};r.uniform3f=function(a,b,c,d){r.context.uniform3f(a,b,c,d)};r.uniform3fvWEBGL=function(a,b,c,d){var e=r.context;null!=c?e.uniform3fv(a,b,c,d):e.uniform3fv(a,b)};r.uniform3i=function(a,b,c,d){r.context.uniform3i(a,b,c,d)};r.uniform3ivWEBGL=function(a,b,c,d){var e=r.context;null!=c?e.uniform3iv(a,b,c,d):e.uniform3iv(a,b)};r.uniform3ui=function(a,b,c,d){r.context.uniform3ui(a,b,c,d)};r.uniform3uivWEBGL=function(a,b,c,d){r.context.uniform3uiv(a,b,c,d)};r.uniform4f=function(a,b,c,d,e){r.context.uniform4f(a, +b,c,d,e)};r.uniform4fvWEBGL=function(a,b,c,d){var e=r.context;null!=c?e.uniform4fv(a,b,c,d):e.uniform4fv(a,b)};r.uniform4i=function(a,b,c,d,e){r.context.uniform4i(a,b,c,d,e)};r.uniform4ivWEBGL=function(a,b,c,d){var e=r.context;null!=c?e.uniform4iv(a,b,c,d):e.uniform4iv(a,b)};r.uniform4ui=function(a,b,c,d,e){r.context.uniform4ui(a,b,c,d,e)};r.uniform4uivWEBGL=function(a,b,c,d){r.context.uniform4uiv(a,b,c,d)};r.uniformBlockBinding=function(a,b,c){r.context.uniformBlockBinding(a,b,c)};r.uniformMatrix2fvWEBGL= +function(a,b,c,d,e){var g=r.context;null!=d?g.uniformMatrix2fv(a,b,c,d,e):g.uniformMatrix2fv(a,b,c)};r.uniformMatrix2x3fvWEBGL=function(a,b,c,d,e){r.context.uniformMatrix2x3fv(a,b,c,d,e)};r.uniformMatrix2x4fvWEBGL=function(a,b,c,d,e){r.context.uniformMatrix2x4fv(a,b,c,d,e)};r.uniformMatrix3fvWEBGL=function(a,b,c,d,e){var g=r.context;null!=d?g.uniformMatrix3fv(a,b,c,d,e):g.uniformMatrix3fv(a,b,c)};r.uniformMatrix3x2fvWEBGL=function(a,b,c,d,e){r.context.uniformMatrix3x2fv(a,b,c,d,e)};r.uniformMatrix3x4fvWEBGL= +function(a,b,c,d,e){r.context.uniformMatrix3x4fv(a,b,c,d,e)};r.uniformMatrix4fvWEBGL=function(a,b,c,d,e){var g=r.context;null!=d?g.uniformMatrix4fv(a,b,c,d,e):g.uniformMatrix4fv(a,b,c)};r.uniformMatrix4x2fvWEBGL=function(a,b,c,d,e){r.context.uniformMatrix4x2fv(a,b,c,d,e)};r.uniformMatrix4x3fvWEBGL=function(a,b,c,d,e){r.context.uniformMatrix4x3fv(a,b,c,d,e)};r.useProgram=function(a){r.context.useProgram(a)};r.validateProgram=function(a){r.context.validateProgram(a)};r.vertexAttrib1f=function(a,b){r.context.vertexAttrib1f(a, +b)};r.vertexAttrib1fv=function(a,b){r.context.vertexAttrib1fv(a,b)};r.vertexAttrib1fvWEBGL=function(a,b){r.context.vertexAttrib1fv(a,b)};r.vertexAttrib2f=function(a,b,c){r.context.vertexAttrib2f(a,b,c)};r.vertexAttrib2fv=function(a,b){r.context.vertexAttrib2fv(a,b)};r.vertexAttrib2fvWEBGL=function(a,b){r.context.vertexAttrib2fv(a,b)};r.vertexAttrib3f=function(a,b,c,d){r.context.vertexAttrib3f(a,b,c,d)};r.vertexAttrib3fv=function(a,b){r.context.vertexAttrib3fv(a,b)};r.vertexAttrib3fvWEBGL=function(a, +b){r.context.vertexAttrib3fv(a,b)};r.vertexAttrib4f=function(a,b,c,d,e){r.context.vertexAttrib4f(a,b,c,d,e)};r.vertexAttrib4fv=function(a,b){r.context.vertexAttrib4fv(a,b)};r.vertexAttrib4fvWEBGL=function(a,b){r.context.vertexAttrib4fv(a,b)};r.vertexAttribDivisor=function(a,b){r.context.vertexAttribDivisor(a,b)};r.vertexAttribI4i=function(a,b,c,d,e){r.context.vertexAttribI4i(a,b,c,d,e)};r.vertexAttribI4iv=function(a,b){r.context.vertexAttribI4iv(a,b)};r.vertexAttribI4ivWEBGL=function(a,b){r.context.vertexAttribI4iv(a, +b)};r.vertexAttribI4ui=function(a,b,c,d,e){r.context.vertexAttribI4ui(a,b,c,d,e)};r.vertexAttribI4uiv=function(a,b){r.context.vertexAttribI4uiv(a,b)};r.vertexAttribI4uivWEBGL=function(a,b){r.context.vertexAttribI4uiv(a,b)};r.vertexAttribIPointer=function(a,b,c,d,e){r.context.vertexAttribIPointer(a,b,c,d,e)};r.vertexAttribPointer=function(a,b,c,d,e,g){r.context.vertexAttribPointer(a,b,c,d,e,g)};r.viewport=function(a,b,c,d){r.context.viewport(a,b,c,d)};r.waitSync=function(a,b,c){r.context.waitSync(a, +b,c)};r.__getObjectID=function(a){return null==a?0:a.id};var Gt=function(){this.STACK_UNDERFLOW=1284;this.STACK_OVERFLOW=1283;this.CONTEXT_FLAG_DEBUG_BIT=2;this.DEBUG_OUTPUT=37600;this.DEBUG_SEVERITY_LOW=37192;this.DEBUG_SEVERITY_MEDIUM=37191;this.DEBUG_SEVERITY_HIGH=37190;this.DEBUG_LOGGED_MESSAGES=37189;this.MAX_DEBUG_LOGGED_MESSAGES=37188;this.MAX_DEBUG_MESSAGE_LENGTH=37187;this.MAX_LABEL_LENGTH=33512;this.SAMPLER=33510;this.QUERY=33507;this.PROGRAM=33506;this.SHADER=33505;this.BUFFER=33504;this.DEBUG_GROUP_STACK_DEPTH= +33389;this.MAX_DEBUG_GROUP_STACK_DEPTH=33388;this.DEBUG_SEVERITY_NOTIFICATION=33387;this.DEBUG_TYPE_POP_GROUP=33386;this.DEBUG_TYPE_PUSH_GROUP=33385;this.DEBUG_TYPE_MARKER=33384;this.DEBUG_TYPE_OTHER=33361;this.DEBUG_TYPE_PERFORMANCE=33360;this.DEBUG_TYPE_PORTABILITY=33359;this.DEBUG_TYPE_UNDEFINED_BEHAVIOR=33358;this.DEBUG_TYPE_DEPRECATED_BEHAVIOR=33357;this.DEBUG_TYPE_ERROR=33356;this.DEBUG_SOURCE_OTHER=33355;this.DEBUG_SOURCE_APPLICATION=33354;this.DEBUG_SOURCE_THIRD_PARTY=33353;this.DEBUG_SOURCE_SHADER_COMPILER= +33352;this.DEBUG_SOURCE_WINDOW_SYSTEM=33351;this.DEBUG_SOURCE_API=33350;this.DEBUG_CALLBACK_USER_PARAM=33349;this.DEBUG_CALLBACK_FUNCTION=33348;this.DEBUG_NEXT_LOGGED_MESSAGE_LENGTH=33347;this.DEBUG_OUTPUT_SYNCHRONOUS=33346};k["lime.graphics.opengl.ext.KHR_debug"]=Gt;Gt.__name__="lime.graphics.opengl.ext.KHR_debug";Gt.prototype={DEBUG_OUTPUT_SYNCHRONOUS:null,DEBUG_NEXT_LOGGED_MESSAGE_LENGTH:null,DEBUG_CALLBACK_FUNCTION:null,DEBUG_CALLBACK_USER_PARAM:null,DEBUG_SOURCE_API:null,DEBUG_SOURCE_WINDOW_SYSTEM:null, +DEBUG_SOURCE_SHADER_COMPILER:null,DEBUG_SOURCE_THIRD_PARTY:null,DEBUG_SOURCE_APPLICATION:null,DEBUG_SOURCE_OTHER:null,DEBUG_TYPE_ERROR:null,DEBUG_TYPE_DEPRECATED_BEHAVIOR:null,DEBUG_TYPE_UNDEFINED_BEHAVIOR:null,DEBUG_TYPE_PORTABILITY:null,DEBUG_TYPE_PERFORMANCE:null,DEBUG_TYPE_OTHER:null,DEBUG_TYPE_MARKER:null,DEBUG_TYPE_PUSH_GROUP:null,DEBUG_TYPE_POP_GROUP:null,DEBUG_SEVERITY_NOTIFICATION:null,MAX_DEBUG_GROUP_STACK_DEPTH:null,DEBUG_GROUP_STACK_DEPTH:null,BUFFER:null,SHADER:null,PROGRAM:null,QUERY:null, +SAMPLER:null,MAX_LABEL_LENGTH:null,MAX_DEBUG_MESSAGE_LENGTH:null,MAX_DEBUG_LOGGED_MESSAGES:null,DEBUG_LOGGED_MESSAGES:null,DEBUG_SEVERITY_HIGH:null,DEBUG_SEVERITY_MEDIUM:null,DEBUG_SEVERITY_LOW:null,DEBUG_OUTPUT:null,CONTEXT_FLAG_DEBUG_BIT:null,STACK_OVERFLOW:null,STACK_UNDERFLOW:null,__class__:Gt};var Ed={__properties__:{set_redOffset:"set_redOffset",get_redOffset:"get_redOffset",set_redMultiplier:"set_redMultiplier",get_redMultiplier:"get_redMultiplier",set_greenOffset:"set_greenOffset",get_greenOffset:"get_greenOffset", +set_greenMultiplier:"set_greenMultiplier",get_greenMultiplier:"get_greenMultiplier",set_color:"set_color",get_color:"get_color",set_blueOffset:"set_blueOffset",get_blueOffset:"get_blueOffset",set_blueMultiplier:"set_blueMultiplier",get_blueMultiplier:"get_blueMultiplier",set_alphaOffset:"set_alphaOffset",get_alphaOffset:"get_alphaOffset",set_alphaMultiplier:"set_alphaMultiplier",get_alphaMultiplier:"get_alphaMultiplier"},_new:function(a){if(null==a||20!=a.length)a=Ed.__identity,a=null!=a?new Float32Array(a): +null;return a},clone:function(a){a=Ug.toArrayBufferView(a);a=null!=a?new Float32Array(a):null;return Ed._new(a)},concat:function(a,b){a[0]+=b[0];a[6]+=b[6];a[12]+=b[12];a[18]+=b[18]},copyFrom:function(a,b){a.set(b)},identity:function(a){a[0]=1;a[1]=0;a[2]=0;a[3]=0;a[4]=0;a[5]=0;a[6]=1;a[7]=0;a[8]=0;a[9]=0;a[10]=0;a[11]=0;a[12]=1;a[13]=0;a[14]=0;a[15]=0;a[16]=0;a[17]=0;a[18]=1;a[19]=0},getAlphaTable:function(a){if(null==Ed.__alphaTable){var b=new Uint8Array(256);Ed.__alphaTable=b}Ed.__alphaTable[0]= +0;for(var c=1;256>c;){var d=c++;b=Math.floor(d*a[18]+255*a[19]);255<b&&(b=255);0>b&&(b=0);Ed.__alphaTable[d]=b}return Ed.__alphaTable},getBlueTable:function(a){if(null==Ed.__blueTable){var b=new Uint8Array(256);Ed.__blueTable=b}for(var c=0;256>c;){var d=c++;b=Math.floor(d*a[12]+255*a[14]);255<b&&(b=255);0>b&&(b=0);Ed.__blueTable[d]=b}return Ed.__blueTable},getGreenTable:function(a){if(null==Ed.__greenTable){var b=new Uint8Array(256);Ed.__greenTable=b}for(var c=0;256>c;){var d=c++;b=Math.floor(d*a[6]+ +255*a[9]);255<b&&(b=255);0>b&&(b=0);Ed.__greenTable[d]=b}return Ed.__greenTable},getRedTable:function(a){if(null==Ed.__redTable){var b=new Uint8Array(256);Ed.__redTable=b}for(var c=0;256>c;){var d=c++;b=Math.floor(d*a[0]+255*a[4]);255<b&&(b=255);0>b&&(b=0);Ed.__redTable[d]=b}return Ed.__redTable},__toFlashColorTransform:function(a){return null},get_alphaMultiplier:function(a){return a[18]},set_alphaMultiplier:function(a,b){return a[18]=b},get_alphaOffset:function(a){return 255*a[19]},set_alphaOffset:function(a, +b){return a[19]=b/255},get_blueMultiplier:function(a){return a[12]},set_blueMultiplier:function(a,b){return a[12]=b},get_blueOffset:function(a){return 255*a[14]},set_blueOffset:function(a,b){return a[14]=b/255},get_color:function(a){return(255*a[4]|0)<<16|(255*a[9]|0)<<8|255*a[14]|0},set_color:function(a,b){a[4]=(b>>16&255)/255;a[9]=(b>>8&255)/255;a[14]=(b&255)/255;a[0]=0;a[6]=0;a[12]=0;return Ed.get_color(a)},get_greenMultiplier:function(a){return a[6]},set_greenMultiplier:function(a,b){return a[6]= +b},get_greenOffset:function(a){return 255*a[9]},set_greenOffset:function(a,b){return a[9]=b/255},get_redMultiplier:function(a){return a[0]},set_redMultiplier:function(a,b){return a[0]=b},get_redOffset:function(a){return 255*a[4]},set_redOffset:function(a,b){return a[4]=b/255},get:function(a,b){return a[b]},set:function(a,b,c){return a[b]=c}},ra={__properties__:{set_position:"set_position",get_position:"get_position",get_determinant:"get_determinant"},_new:function(a){if(null==a||16!=a.length)a=ra.__identity, +a=null!=a?new Float32Array(a):null;return a},append:function(a,b){var c=a[0],d=a[4],e=a[8],g=a[12],f=a[1],l=a[5],t=a[9],m=a[13],h=a[2],p=a[6],k=a[10],n=a[14],r=a[3],q=a[7],v=a[11],u=a[15],w=ra.get(b,0),B=ra.get(b,4),E=ra.get(b,8),C=ra.get(b,12),N=ra.get(b,1),z=ra.get(b,5),J=ra.get(b,9),D=ra.get(b,13),A=ra.get(b,2),Ha=ra.get(b,6),F=ra.get(b,10),H=ra.get(b,14),G=ra.get(b,3),I=ra.get(b,7),L=ra.get(b,11);b=ra.get(b,15);a[0]=c*w+f*B+h*E+r*C;a[1]=c*N+f*z+h*J+r*D;a[2]=c*A+f*Ha+h*F+r*H;a[3]=c*G+f*I+h*L+r* +b;a[4]=d*w+l*B+p*E+q*C;a[5]=d*N+l*z+p*J+q*D;a[6]=d*A+l*Ha+p*F+q*H;a[7]=d*G+l*I+p*L+q*b;a[8]=e*w+t*B+k*E+v*C;a[9]=e*N+t*z+k*J+v*D;a[10]=e*A+t*Ha+k*F+v*H;a[11]=e*G+t*I+k*L+v*b;a[12]=g*w+m*B+n*E+u*C;a[13]=g*N+m*z+n*J+u*D;a[14]=g*A+m*Ha+n*F+u*H;a[15]=g*G+m*I+n*L+u*b},appendRotation:function(a,b,c,d){b=ra.__getAxisRotation(a,c.x,c.y,c.z,b);null!=d&&ra.appendTranslation(b,d.x,d.y,d.z);ra.append(a,b)},appendScale:function(a,b,c,d){b=[b,0,0,0,0,c,0,0,0,0,d,0,0,0,0,1];b=null!=b?new Float32Array(b):null;ra.append(a, +ra._new(b))},appendTranslation:function(a,b,c,d){a[12]+=b;a[13]+=c;a[14]+=d},clone:function(a){a=Ug.toArrayBufferView(a);a=null!=a?new Float32Array(a):null;return ra._new(a)},copyColumnFrom:function(a,b,c){switch(b){case 0:a[0]=c.x;a[1]=c.y;a[2]=c.z;a[3]=c.w;break;case 1:a[4]=c.x;a[5]=c.y;a[6]=c.z;a[7]=c.w;break;case 2:a[8]=c.x;a[9]=c.y;a[10]=c.z;a[11]=c.w;break;case 3:a[12]=c.x;a[13]=c.y;a[14]=c.z;a[15]=c.w;break;default:Ga.error("Column "+b+" out of bounds [0, ..., 3]",{fileName:"lime/math/Matrix4.hx", +lineNumber:187,className:"lime.math._Matrix4.Matrix4_Impl_",methodName:"copyColumnFrom"})}},copyColumnTo:function(a,b,c){switch(b){case 0:c.x=a[0];c.y=a[1];c.z=a[2];c.w=a[3];break;case 1:c.x=a[4];c.y=a[5];c.z=a[6];c.w=a[7];break;case 2:c.x=a[8];c.y=a[9];c.z=a[10];c.w=a[11];break;case 3:c.x=a[12];c.y=a[13];c.z=a[14];c.w=a[15];break;default:Ga.error("Column "+b+" out of bounds [0, ..., 3]",{fileName:"lime/math/Matrix4.hx",lineNumber:225,className:"lime.math._Matrix4.Matrix4_Impl_",methodName:"copyColumnTo"})}}, +copyFrom:function(a,b){a.set(b)},copyRowFrom:function(a,b,c){switch(b){case 0:a[0]=c.x;a[4]=c.y;a[8]=c.z;a[12]=c.w;break;case 1:a[1]=c.x;a[5]=c.y;a[9]=c.z;a[13]=c.w;break;case 2:a[2]=c.x;a[6]=c.y;a[10]=c.z;a[14]=c.w;break;case 3:a[3]=c.x;a[7]=c.y;a[11]=c.z;a[15]=c.w;break;default:Ga.error("Row "+b+" out of bounds [0, ..., 3]",{fileName:"lime/math/Matrix4.hx",lineNumber:272,className:"lime.math._Matrix4.Matrix4_Impl_",methodName:"copyRowFrom"})}},copyRowTo:function(a,b,c){switch(b){case 0:c.x=a[0]; +c.y=a[4];c.z=a[8];c.w=a[12];break;case 1:c.x=a[1];c.y=a[5];c.z=a[9];c.w=a[13];break;case 2:c.x=a[2];c.y=a[6];c.z=a[10];c.w=a[14];break;case 3:c.x=a[3];c.y=a[7];c.z=a[11];c.w=a[15];break;default:Ga.error("Row "+b+" out of bounds [0, ..., 3]",{fileName:"lime/math/Matrix4.hx",lineNumber:310,className:"lime.math._Matrix4.Matrix4_Impl_",methodName:"copyRowTo"})}},create2D:function(a,b,c,d,e,g,f){null==f&&(f=0);null==g&&(g=0);a[0]=b;a[1]=c;a[2]=0;a[3]=0;a[4]=d;a[5]=e;a[6]=0;a[7]=0;a[8]=0;a[9]=0;a[10]=1; +a[11]=0;a[12]=g;a[13]=f;a[14]=0;a[15]=1},createOrtho:function(a,b,c,d,e,g,f){var l=1/(c-b),x=1/(e-d),m=1/(f-g);a[0]=2*l;a[1]=0;a[2]=0;a[3]=0;a[4]=0;a[5]=2*x;a[6]=0;a[7]=0;a[8]=0;a[9]=0;a[10]=-2*m;a[11]=0;a[12]=-(b+c)*l;a[13]=-(d+e)*x;a[14]=-(g+f)*m;a[15]=1},deltaTransformVector:function(a,b,c){null==c&&(c=new xc);var d=b.x,e=b.y;b=b.z;c.x=d*a[0]+e*a[4]+b*a[8]+a[3];c.y=d*a[1]+e*a[5]+b*a[9]+a[7];c.z=d*a[2]+e*a[6]+b*a[10]+a[11];return c},fromMatrix3:function(a){var b=ra._new();ra.create2D(b,a.a,a.b, +a.c,a.d,a.tx,a.ty);return b},identity:function(a){a[0]=1;a[1]=0;a[2]=0;a[3]=0;a[4]=0;a[5]=1;a[6]=0;a[7]=0;a[8]=0;a[9]=0;a[10]=1;a[11]=0;a[12]=0;a[13]=0;a[14]=0;a[15]=1},interpolate:function(a,b,c,d){null==d&&(d=ra._new());for(var e=0;16>e;){var g=e++;ra.set(d,g,ra.get(a,g)+(ra.get(b,g)-ra.get(a,g))*c)}return d},interpolateTo:function(a,b,c){for(var d=0;16>d;){var e=d++;a[e]+=(ra.get(b,e)-a[e])*c}},invert:function(a){var b=ra.get_determinant(a),c=1E-11<Math.abs(b);if(c){b=1/b;var d=a[0],e=a[4],g=a[8], +f=a[12],l=a[1],t=a[5],m=a[9],h=a[13],p=a[2],k=a[6],n=a[10],r=a[14],q=a[3],v=a[7],u=a[11],w=a[15];a[0]=b*(t*(n*w-r*u)-m*(k*w-r*v)+h*(k*u-n*v));a[1]=-b*(l*(n*w-r*u)-m*(p*w-r*q)+h*(p*u-n*q));a[2]=b*(l*(k*w-r*v)-t*(p*w-r*q)+h*(p*v-k*q));a[3]=-b*(l*(k*u-n*v)-t*(p*u-n*q)+m*(p*v-k*q));a[4]=-b*(e*(n*w-r*u)-g*(k*w-r*v)+f*(k*u-n*v));a[5]=b*(d*(n*w-r*u)-g*(p*w-r*q)+f*(p*u-n*q));a[6]=-b*(d*(k*w-r*v)-e*(p*w-r*q)+f*(p*v-k*q));a[7]=b*(d*(k*u-n*v)-e*(p*u-n*q)+g*(p*v-k*q));a[8]=b*(e*(m*w-h*u)-g*(t*w-h*v)+f*(t*u-m* +v));a[9]=-b*(d*(m*w-h*u)-g*(l*w-h*q)+f*(l*u-m*q));a[10]=b*(d*(t*w-h*v)-e*(l*w-h*q)+f*(l*v-t*q));a[11]=-b*(d*(t*u-m*v)-e*(l*u-m*q)+g*(l*v-t*q));a[12]=-b*(e*(m*r-h*n)-g*(t*r-h*k)+f*(t*n-m*k));a[13]=b*(d*(m*r-h*n)-g*(l*r-h*p)+f*(l*n-m*p));a[14]=-b*(d*(t*r-h*k)-e*(l*r-h*p)+f*(l*k-t*p));a[15]=b*(d*(t*n-m*k)-e*(l*n-m*p)+g*(l*k-t*p))}return c},pointAt:function(a,b,c,d){null==c&&(c=new xc(0,0,1));null==d&&(d=new xc(0,1,0));var e=null;null==e&&(e=new xc);e.x=b.x-c.x;e.y=b.y-c.y;e.z=b.z-c.z;c=e;d=new xc(d.x, +d.y,d.z,d.w);e=Math.sqrt(c.x*c.x+c.y*c.y+c.z*c.z);0!=e&&(c.x/=e,c.y/=e,c.z/=e);e=Math.sqrt(d.x*d.x+d.y*d.y+d.z*d.z);0!=e&&(d.x/=e,d.y/=e,d.z/=e);var g=new xc(c.x,c.y,c.z,c.w);e=d.x*c.x+d.y*c.y+d.z*c.z;g.x*=e;g.y*=e;g.z*=e;e=null;null==e&&(e=new xc);e.x=d.x-g.x;e.y=d.y-g.y;e.z=d.z-g.z;d=e;0<Math.sqrt(d.x*d.x+d.y*d.y+d.z*d.z)?(e=Math.sqrt(d.x*d.x+d.y*d.y+d.z*d.z),0!=e&&(d.x/=e,d.y/=e,d.z/=e)):d=0!=c.x?new xc(-c.y,c.x,0):new xc(1,0,0);e=null;null==e&&(e=new xc);g=d.z*c.x-d.x*c.z;var f=d.x*c.y-d.y*c.x; +e.x=d.y*c.z-d.z*c.y;e.y=g;e.z=f;e.w=1;g=e;e=Math.sqrt(g.x*g.x+g.y*g.y+g.z*g.z);0!=e&&(g.x/=e,g.y/=e,g.z/=e);a[0]=g.x;a[4]=g.y;a[8]=g.z;a[12]=0;a[1]=d.x;a[5]=d.y;a[9]=d.z;a[13]=0;a[2]=c.x;a[6]=c.y;a[10]=c.z;a[14]=0;a[3]=b.x;a[7]=b.y;a[11]=b.z;a[15]=1},prepend:function(a,b){var c=ra.get(b,0),d=ra.get(b,4),e=ra.get(b,8),g=ra.get(b,12),f=ra.get(b,1),l=ra.get(b,5),t=ra.get(b,9),m=ra.get(b,13),h=ra.get(b,2),p=ra.get(b,6),k=ra.get(b,10),n=ra.get(b,14),r=ra.get(b,3),q=ra.get(b,7),v=ra.get(b,11);b=ra.get(b, +15);var u=a[0],w=a[4],B=a[8],E=a[12],C=a[1],N=a[5],z=a[9],J=a[13],D=a[2],A=a[6],Ha=a[10],F=a[14],H=a[3],G=a[7],I=a[11],L=a[15];a[0]=c*u+f*w+h*B+r*E;a[1]=c*C+f*N+h*z+r*J;a[2]=c*D+f*A+h*Ha+r*F;a[3]=c*H+f*G+h*I+r*L;a[4]=d*u+l*w+p*B+q*E;a[5]=d*C+l*N+p*z+q*J;a[6]=d*D+l*A+p*Ha+q*F;a[7]=d*H+l*G+p*I+q*L;a[8]=e*u+t*w+k*B+v*E;a[9]=e*C+t*N+k*z+v*J;a[10]=e*D+t*A+k*Ha+v*F;a[11]=e*H+t*G+k*I+v*L;a[12]=g*u+m*w+n*B+b*E;a[13]=g*C+m*N+n*z+b*J;a[14]=g*D+m*A+n*Ha+b*F;a[15]=g*H+m*G+n*I+b*L},prependRotation:function(a, +b,c,d){b=ra.__getAxisRotation(a,c.x,c.y,c.z,b);null!=d&&ra.appendTranslation(b,d.x,d.y,d.z);ra.prepend(a,b)},prependScale:function(a,b,c,d){b=[b,0,0,0,0,c,0,0,0,0,d,0,0,0,0,1];b=null!=b?new Float32Array(b):null;ra.prepend(a,ra._new(b))},prependTranslation:function(a,b,c,d){var e=ra._new();ra.set_position(e,new xc(b,c,d));ra.prepend(a,e)},transformVector:function(a,b,c){null==c&&(c=new xc);var d=b.x,e=b.y;b=b.z;c.x=d*a[0]+e*a[4]+b*a[8]+a[12];c.y=d*a[1]+e*a[5]+b*a[9]+a[13];c.z=d*a[2]+e*a[6]+b*a[10]+ +a[14];c.w=d*a[3]+e*a[7]+b*a[11]+a[15];return c},transformVectors:function(a,b,c){for(var d=0,e,g,f;d+3<=b.length;)e=b[d],g=b[d+1],f=b[d+2],c[d]=e*a[0]+g*a[4]+f*a[8]+a[12],c[d+1]=e*a[1]+g*a[5]+f*a[9]+a[13],c[d+2]=e*a[2]+g*a[6]+f*a[10]+a[14],d+=3},transpose:function(a){var b=a[1];a[1]=a[4];a[4]=b;b=a[2];a[2]=a[8];a[8]=b;b=a[3];a[3]=a[12];a[12]=b;b=a[6];a[6]=a[9];a[9]=b;b=a[7];a[7]=a[13];a[13]=b;b=a[11];a[11]=a[14];a[14]=b},__getAxisRotation:function(a,b,c,d,e){a=ra._new();b=new xc(b,c,d);e=Math.PI/ +180*-e;d=Math.cos(e);e=Math.sin(e);c=1-d;ra.set(a,0,d+b.x*b.x*c);ra.set(a,5,d+b.y*b.y*c);ra.set(a,10,d+b.z*b.z*c);d=b.x*b.y*c;var g=b.z*e;ra.set(a,4,d+g);ra.set(a,1,d-g);d=b.x*b.z*c;g=b.y*e;ra.set(a,8,d-g);ra.set(a,2,d+g);d=b.y*b.z*c;g=b.x*e;ra.set(a,9,d+g);ra.set(a,6,d-g);return a},__swap:function(a,b,c){var d=a[b];a[b]=a[c];a[c]=d},get_determinant:function(a){return(a[0]*a[5]-a[4]*a[1])*(a[10]*a[15]-a[14]*a[11])-(a[0]*a[9]-a[8]*a[1])*(a[6]*a[15]-a[14]*a[7])+(a[0]*a[13]-a[12]*a[1])*(a[6]*a[11]-a[10]* +a[7])+(a[4]*a[9]-a[8]*a[5])*(a[2]*a[15]-a[14]*a[3])-(a[4]*a[13]-a[12]*a[5])*(a[2]*a[11]-a[10]*a[3])+(a[8]*a[13]-a[12]*a[9])*(a[2]*a[7]-a[6]*a[3])},get_position:function(a){return new xc(a[12],a[13],a[14])},set_position:function(a,b){a[12]=b.x;a[13]=b.y;a[14]=b.z;return b},get:function(a,b){return a[b]},set:function(a,b,c){return a[b]=c}},I={__properties__:{set_r:"set_r",get_r:"get_r",set_g:"set_g",get_g:"get_g",set_b:"set_b",get_b:"get_b",set_a:"set_a",get_a:"get_a"},_new:function(a){null==a&&(a= +0);return a},create:function(a,b,c,d){return(a&255)<<24|(b&255)<<16|(c&255)<<8|d&255},multiplyAlpha:function(a){0!=(a&255)&&255!=(a&255)&&(I.a16=I.__alpha16[a&255])},readUInt8:function(a,b,c,d,e){null==e&&(e=!1);null==d&&(d=0);switch(d){case 0:a=(b[c]&255)<<24|(b[c+1]&255)<<16|(b[c+2]&255)<<8|b[c+3]&255;break;case 1:a=(b[c+1]&255)<<24|(b[c+2]&255)<<16|(b[c+3]&255)<<8|b[c]&255;break;case 2:a=(b[c+2]&255)<<24|(b[c+1]&255)<<16|(b[c]&255)<<8|b[c+3]&255}e&&0!=(a&255)&&255!=(a&255)&&(I.unmult=255/(a&255))}, +set:function(a,b,c,d,e){},unmultiplyAlpha:function(a){0!=(a&255)&&255!=(a&255)&&(I.unmult=255/(a&255))},writeUInt8:function(a,b,c,d,e){null==e&&(e=!1);null==d&&(d=0);e&&(0==(a&255)?0!=a&&(a=0):255!=(a&255)&&(I.a16=I.__alpha16[a&255],a=((a>>>24&255)*I.a16>>16&255)<<24|((a>>>16&255)*I.a16>>16&255)<<16|((a>>>8&255)*I.a16>>16&255)<<8|a&255));switch(d){case 0:b[c]=a>>>24&255;b[c+1]=a>>>16&255;b[c+2]=a>>>8&255;b[c+3]=a&255;break;case 1:b[c]=a&255;b[c+1]=a>>>24&255;b[c+2]=a>>>16&255;b[c+3]=a>>>8&255;break; +case 2:b[c]=a>>>8&255,b[c+1]=a>>>16&255,b[c+2]=a>>>24&255,b[c+3]=a&255}},__fromARGB:function(a){return(a>>>16&255)<<24|(a>>>8&255)<<16|(a&255)<<8|a>>>24&255},__fromBGRA:function(a){return(a>>>8&255)<<24|(a>>>16&255)<<16|(a>>>24&255)<<8|a&255},get_a:function(a){return a&255},set_a:function(a,b){return b},get_b:function(a){return a>>>8&255},set_b:function(a,b){return b},get_g:function(a){return a>>>16&255},set_g:function(a,b){return b},get_r:function(a){return a>>>24&255},set_r:function(a,b){return b}}, +Ad=function(a,b,c,d){null==d&&(d=0);null==c&&(c=0);null==b&&(b=0);null==a&&(a=0);this.x=a;this.y=b;this.width=c;this.height=d};k["lime.math.Rectangle"]=Ad;Ad.__name__="lime.math.Rectangle";Ad.prototype={height:null,width:null,x:null,y:null,clone:function(){return new Ad(this.x,this.y,this.width,this.height)},contains:function(a,b){return a>=this.x&&b>=this.y&&a<this.get_right()?b<this.get_bottom():!1},containsPoint:function(a){return this.containsVector(a)},containsRect:function(a){return 0>=a.width|| +0>=a.height?a.x>this.x&&a.y>this.y&&a.get_right()<this.get_right()?a.get_bottom()<this.get_bottom():!1:a.x>=this.x&&a.y>=this.y&&a.get_right()<=this.get_right()?a.get_bottom()<=this.get_bottom():!1},containsVector:function(a){return this.contains(a.x,a.y)},copyFrom:function(a){this.x=a.x;this.y=a.y;this.width=a.width;this.height=a.height},equals:function(a){return null!=a&&this.x==a.x&&this.y==a.y&&this.width==a.width?this.height==a.height:!1},inflate:function(a,b){this.x-=a;this.width+=2*a;this.y-= +b;this.height+=2*b},inflateVector:function(a){this.inflate(a.x,a.y)},intersection:function(a,b){null==b&&(b=new Ad);var c=this.x<a.x?a.x:this.x,d=this.get_right()>a.get_right()?a.get_right():this.get_right();if(d<=c)return b.setEmpty(),b;var e=this.y<a.y?a.y:this.y;a=this.get_bottom()>a.get_bottom()?a.get_bottom():this.get_bottom();if(a<=e)return b.setEmpty(),b;b.x=c;b.y=e;b.width=d-c;b.height=a-e;return b},intersects:function(a){var b=this.x<a.x?a.x:this.x;if((this.get_right()>a.get_right()?a.get_right(): +this.get_right())<=b)return!1;b=this.y<a.y?a.y:this.y;return(this.get_bottom()>a.get_bottom()?a.get_bottom():this.get_bottom())>b},isEmpty:function(){return 0>=this.width?!0:0>=this.height},offset:function(a,b){this.x+=a;this.y+=b},offsetVector:function(a){this.x+=a.x;this.y+=a.y},setEmpty:function(){this.x=this.y=this.width=this.height=0},setTo:function(a,b,c,d){this.x=a;this.y=b;this.width=c;this.height=d},union:function(a,b){null==b&&(b=new Ad);if(0==this.width||0==this.height)b.copyFrom(a);else if(0== +a.width||0==a.height)b.copyFrom(this);else{var c=this.x>a.x?a.x:this.x,d=this.get_right()<a.get_right()?a.get_right():this.get_right(),e=this.y>a.y?a.y:this.y;a=this.get_bottom()<a.get_bottom()?a.get_bottom():this.get_bottom();b.setTo(c,e,d-c,a-e)}return b},__toFlashRectangle:function(){return null},get_bottom:function(){return this.y+this.height},set_bottom:function(a){this.height=a-this.y;return a},get_bottomRight:function(){return new Td(this.x+this.width,this.y+this.height)},set_bottomRight:function(a){this.width= +a.x-this.x;this.height=a.y-this.y;return a.clone()},get_left:function(){return this.x},set_left:function(a){this.width-=a-this.x;return this.x=a},get_right:function(){return this.x+this.width},set_right:function(a){this.width=a-this.x;return a},get_size:function(){return new Td(this.width,this.height)},set_size:function(a){this.width=a.x;this.height=a.y;return a.clone()},get_top:function(){return this.y},set_top:function(a){this.height-=a-this.y;return this.y=a},get_topLeft:function(){return new Td(this.x, +this.y)},set_topLeft:function(a){this.x=a.x;this.y=a.y;return a.clone()},__class__:Ad,__properties__:{set_topLeft:"set_topLeft",get_topLeft:"get_topLeft",set_top:"set_top",get_top:"get_top",set_size:"set_size",get_size:"get_size",set_right:"set_right",get_right:"get_right",set_left:"set_left",get_left:"get_left",set_bottomRight:"set_bottomRight",get_bottomRight:"get_bottomRight",set_bottom:"set_bottom",get_bottom:"get_bottom"}};var Td=function(a,b){null==b&&(b=0);null==a&&(a=0);this.x=a;this.y=b}; +k["lime.math.Vector2"]=Td;Td.__name__="lime.math.Vector2";Td.distance=function(a,b){var c=a.x-b.x;a=a.y-b.y;return Math.sqrt(c*c+a*a)};Td.interpolate=function(a,b,c,d){null==d&&(d=new Td);d.x=b.x+c*(a.x-b.x);d.y=b.y+c*(a.y-b.y);return d};Td.polar=function(a,b,c){null==c&&(c=new Td);var d=a*Math.sin(b);c.x=a*Math.cos(b);c.y=d;return c};Td.prototype={x:null,y:null,add:function(a,b){null==b&&(b=new Td);b.x=a.x+this.x;b.y=a.y+this.y;return b},clone:function(){return new Td(this.x,this.y)},equals:function(a){return null!= +a&&a.x==this.x?a.y==this.y:!1},normalize:function(a){if(0!=this.x||0!=this.y)a/=Math.sqrt(this.x*this.x+this.y*this.y),this.x*=a,this.y*=a},offset:function(a,b){this.x+=a;this.y+=b},setTo:function(a,b){this.x=a;this.y=b},subtract:function(a,b){null==b&&(b=new Td);b.x=this.x-a.x;b.y=this.y-a.y;return b},__toFlashPoint:function(){return null},get_length:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},get_lengthSquared:function(){return this.x*this.x+this.y*this.y},__class__:Td,__properties__:{get_lengthSquared:"get_lengthSquared", +get_length:"get_length"}};var xc=function(a,b,c,d){null==d&&(d=0);null==c&&(c=0);null==b&&(b=0);null==a&&(a=0);this.w=d;this.x=a;this.y=b;this.z=c};k["lime.math.Vector4"]=xc;xc.__name__="lime.math.Vector4";xc.__properties__={get_Z_AXIS:"get_Z_AXIS",get_Y_AXIS:"get_Y_AXIS",get_X_AXIS:"get_X_AXIS"};xc.angleBetween=function(a,b){a=new xc(a.x,a.y,a.z,a.w);var c=Math.sqrt(a.x*a.x+a.y*a.y+a.z*a.z);0!=c&&(a.x/=c,a.y/=c,a.z/=c);b=new xc(b.x,b.y,b.z,b.w);c=Math.sqrt(b.x*b.x+b.y*b.y+b.z*b.z);0!=c&&(b.x/=c, +b.y/=c,b.z/=c);return Math.acos(a.x*b.x+a.y*b.y+a.z*b.z)};xc.distance=function(a,b){var c=b.x-a.x,d=b.y-a.y;a=b.z-a.z;return Math.sqrt(c*c+d*d+a*a)};xc.distanceSquared=function(a,b){var c=b.x-a.x,d=b.y-a.y;a=b.z-a.z;return c*c+d*d+a*a};xc.get_X_AXIS=function(){return new xc(1,0,0)};xc.get_Y_AXIS=function(){return new xc(0,1,0)};xc.get_Z_AXIS=function(){return new xc(0,0,1)};xc.prototype={w:null,x:null,y:null,z:null,add:function(a,b){null==b&&(b=new xc);b.x=this.x+a.x;b.y=this.y+a.y;b.z=this.z+a.z; +return b},clone:function(){return new xc(this.x,this.y,this.z,this.w)},copyFrom:function(a){this.x=a.x;this.y=a.y;this.z=a.z},crossProduct:function(a,b){null==b&&(b=new xc);var c=this.z*a.x-this.x*a.z,d=this.x*a.y-this.y*a.x;b.x=this.y*a.z-this.z*a.y;b.y=c;b.z=d;b.w=1;return b},decrementBy:function(a){this.x-=a.x;this.y-=a.y;this.z-=a.z},dotProduct:function(a){return this.x*a.x+this.y*a.y+this.z*a.z},equals:function(a,b){null==b&&(b=!1);return this.x==a.x&&this.y==a.y&&this.z==a.z?b?this.w==a.w:!0: +!1},incrementBy:function(a){this.x+=a.x;this.y+=a.y;this.z+=a.z},nearEquals:function(a,b,c){null==c&&(c=!1);return Math.abs(this.x-a.x)<b&&Math.abs(this.y-a.y)<b&&Math.abs(this.z-a.z)<b?c?Math.abs(this.w-a.w)<b:!0:!1},negate:function(){this.x*=-1;this.y*=-1;this.z*=-1},normalize:function(){var a=Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z);0!=a&&(this.x/=a,this.y/=a,this.z/=a);return a},project:function(){this.x/=this.w;this.y/=this.w;this.z/=this.w},scaleBy:function(a){this.x*=a;this.y*= +a;this.z*=a},setTo:function(a,b,c){this.x=a;this.y=b;this.z=c},subtract:function(a,b){null==b&&(b=new xc);b.x=this.x-a.x;b.y=this.y-a.y;b.z=this.z-a.z;return b},toString:function(){return"Vector4("+this.x+", "+this.y+", "+this.z+")"},get_length:function(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)},get_lengthSquared:function(){return this.x*this.x+this.y*this.y+this.z*this.z},__class__:xc,__properties__:{get_lengthSquared:"get_lengthSquared",get_length:"get_length"}};var Lc=function(){}; +k["lime.media.AudioBuffer"]=Lc;Lc.__name__="lime.media.AudioBuffer";Lc.fromBase64=function(a){if(null==a)return null;-1==a.indexOf(",")&&(a="data:"+Lc.__getCodec(Pf.decode(a))+";base64,"+a);var b=new Lc;b.set_src(new Howl({src:[a],html5:!0,preload:!1}));return b};Lc.fromBytes=function(a){if(null==a)return null;var b=new Lc;b.set_src(new Howl({src:["data:"+Lc.__getCodec(a)+";base64,"+Pf.encode(a)],html5:!0,preload:!1}));return b};Lc.fromFile=function(a){if(null==a)return null;var b=new Lc;b.__srcHowl= +new Howl({src:[a],preload:!1});return b};Lc.fromFiles=function(a){var b=new Lc;b.__srcHowl=new Howl({src:a,preload:!1});return b};Lc.fromVorbisFile=function(a){return null};Lc.loadFromFile=function(a){var b=new Wd,c=Lc.fromFile(a);null!=c?null!=c&&(c.__srcHowl.on("load",function(){b.complete(c)}),c.__srcHowl.on("loaderror",function(a,c){b.error(c)}),c.__srcHowl.load()):b.error(null);return b.future};Lc.loadFromFiles=function(a){var b=new Wd,c=Lc.fromFiles(a);null!=c?(c.__srcHowl.on("load",function(){b.complete(c)}), +c.__srcHowl.on("loaderror",function(){b.error(null)}),c.__srcHowl.load()):b.error(null);return b.future};Lc.__getCodec=function(a){switch(a.getString(0,4)){case "OggS":return"audio/ogg";case "RIFF":if("WAVE"==a.getString(8,4))return"audio/wav";var b=a.b[1],c=a.b[2];switch(a.b[0]){case 73:if(68==b&&51==c)return"audio/mp3";break;case 255:switch(b){case 243:case 250:case 251:return"audio/mp3"}}break;case "fLaC":return"audio/flac";default:switch(b=a.b[1],c=a.b[2],a.b[0]){case 73:if(68==b&&51==c)return"audio/mp3"; +break;case 255:switch(b){case 243:case 250:case 251:return"audio/mp3"}}}Ga.error("Unsupported sound format",{fileName:"lime/media/AudioBuffer.hx",lineNumber:362,className:"lime.media.AudioBuffer",methodName:"__getCodec"});return null};Lc.prototype={bitsPerSample:null,channels:null,data:null,sampleRate:null,__srcAudio:null,__srcBuffer:null,__srcCustom:null,__srcHowl:null,__srcSound:null,__srcVorbisFile:null,dispose:function(){this.__srcHowl.unload()},get_src:function(){return this.__srcHowl},set_src:function(a){return this.__srcHowl= +a},__class__:Lc,__properties__:{set_src:"set_src",get_src:"get_src"}};var Qo=function(a){if("custom"!=a){if(null==a||"web"==a)try{window.AudioContext=window.AudioContext||window.webkitAudioContext,this.web=new window.AudioContext,this.type="web"}catch(b){sa.lastError=b}null==this.web&&"web"!=a&&(this.html5=new Po,this.type="html5")}else this.type="custom"};k["lime.media.AudioContext"]=Qo;Qo.__name__="lime.media.AudioContext";Qo.prototype={custom:null,flash:null,html5:null,openal:null,type:null,web:null, +__class__:Qo};var re=function(){};k["lime.media.AudioManager"]=re;re.__name__="lime.media.AudioManager";re.init=function(a){if(null==re.context){if(null==a&&(re.context=new Qo,a=re.context,"openal"==a.type)){var b=a.openal,c=b.openDevice();c=b.createContext(c);b.makeContextCurrent(c);b.processContext(c)}re.context=a}};re.resume=function(){if(null!=re.context&&"openal"==re.context.type){var a=re.context.openal,b=a.getCurrentContext();if(null!=b){var c=a.getContextsDevice(b);a.resumeDevice(c);a.processContext(b)}}}; +re.shutdown=function(){if(null!=re.context&&"openal"==re.context.type){var a=re.context.openal,b=a.getCurrentContext();if(null!=b){var c=a.getContextsDevice(b);a.makeContextCurrent(null);a.destroyContext(b);null!=c&&a.closeDevice(c)}}re.context=null};re.suspend=function(){if(null!=re.context&&"openal"==re.context.type){var a=re.context.openal,b=a.getCurrentContext();null!=b&&(a.suspendContext(b),b=a.getContextsDevice(b),null!=b&&a.pauseDevice(b))}};var Ro=function(a,b,c,d){null==d&&(d=0);null==b&& +(b=0);this.onComplete=new Fd;this.buffer=a;this.offset=b;this.__backend=new wo(this);null!=c&&0!=c&&this.set_length(c);this.set_loops(d);null!=a&&this.init()};k["lime.media.AudioSource"]=Ro;Ro.__name__="lime.media.AudioSource";Ro.prototype={onComplete:null,buffer:null,offset:null,_pan:null,_position:null,__backend:null,dispose:function(){this.__backend.dispose()},init:function(){this.__backend.init()},play:function(){this.__backend.play()},pause:function(){this.__backend.pause()},stop:function(){this.__backend.stop()}, +get_currentTime:function(){return this.__backend.getCurrentTime()},set_currentTime:function(a){return this.__backend.setCurrentTime(a)},get_gain:function(){return this.__backend.getGain()},set_gain:function(a){return this.__backend.setGain(a)},get_length:function(){return this.__backend.getLength()},set_length:function(a){return this.__backend.setLength(a)},get_loops:function(){return this.__backend.getLoops()},set_loops:function(a){return this.__backend.setLoops(a)},get_pan:function(){return this._pan}, +set_pan:function(a){if(null!=this._position)return this._pan;null==a&&(this._pan=this.__backend.setPan(0));return this._pan=this.__backend.setPan(a)},get_pitch:function(){return this.__backend.getPitch()},set_pitch:function(a){return this.__backend.setPitch(a)},get_position:function(){return this._position},set_position:function(a){if(null!=this._pan)return this._position;null==a&&(this._position=this.__backend.setPosition(new xc(0,0,0,0)));return this._position=this.__backend.setPosition(a)},__class__:Ro, +__properties__:{set_position:"set_position",get_position:"get_position",set_pan:"set_pan",get_pan:"get_pan",set_pitch:"set_pitch",get_pitch:"get_pitch",set_loops:"set_loops",get_loops:"get_loops",set_length:"set_length",get_length:"get_length",set_gain:"set_gain",get_gain:"get_gain",set_currentTime:"set_currentTime",get_currentTime:"get_currentTime"}};var Ht=function(){};k["lime.media.FlashAudioContext"]=Ht;Ht.__name__="lime.media.FlashAudioContext";Ht.prototype={createBuffer:function(a,b){return null}, +getBytesLoaded:function(a){return 0},getBytesTotal:function(a){return 0},getID3:function(a){return null},getIsBuffering:function(a){return!1},getIsURLInaccessible:function(a){return!1},getLength:function(a){return 0},getURL:function(a){return null},close:function(a){},extract:function(a,b,c,d){return 0},load:function(a,b,c){},loadCompressedDataFromByteArray:function(a,b,c){},loadPCMFromByteArray:function(a,b,c,d,e,g){},play:function(a,b,c,d){return null},__class__:Ht};var Po=function(){this.NETWORK_NO_SOURCE= +3;this.NETWORK_LOADING=2;this.NETWORK_IDLE=1;this.HAVE_NOTHING=this.NETWORK_EMPTY=0;this.HAVE_METADATA=1;this.HAVE_FUTURE_DATA=3;this.HAVE_ENOUGH_DATA=4;this.HAVE_CURRENT_DATA=2};k["lime.media.HTML5AudioContext"]=Po;Po.__name__="lime.media.HTML5AudioContext";Po.prototype={HAVE_CURRENT_DATA:null,HAVE_ENOUGH_DATA:null,HAVE_FUTURE_DATA:null,HAVE_METADATA:null,HAVE_NOTHING:null,NETWORK_EMPTY:null,NETWORK_IDLE:null,NETWORK_LOADING:null,NETWORK_NO_SOURCE:null,canPlayType:function(a,b){return null!=a.__srcAudio? +a.__srcAudio.canPlayType(b):null},createBuffer:function(a){var b=new Lc;b.__srcAudio=new Audio;b.__srcAudio.src=a;return b},getAutoplay:function(a){return null!=a.__srcAudio?a.__srcAudio.autoplay:!1},getBuffered:function(a){return null!=a.__srcAudio?a.__srcAudio.buffered:null},getCurrentSrc:function(a){return null!=a.__srcAudio?a.__srcAudio.currentSrc:null},getCurrentTime:function(a){return null!=a.__srcAudio?a.__srcAudio.currentTime:0},getDefaultPlaybackRate:function(a){return null!=a.__srcAudio? +a.__srcAudio.defaultPlaybackRate:1},getDuration:function(a){return null!=a.__srcAudio?a.__srcAudio.duration:0},getEnded:function(a){return null!=a.__srcAudio?a.__srcAudio.ended:!1},getError:function(a){return null!=a.__srcAudio?a.__srcAudio.error:null},getLoop:function(a){return null!=a.__srcAudio?a.__srcAudio.loop:!1},getMuted:function(a){return null!=a.__srcAudio?a.__srcAudio.muted:!1},getNetworkState:function(a){return null!=a.__srcAudio?a.__srcAudio.networkState:0},getPaused:function(a){return null!= +a.__srcAudio?a.__srcAudio.paused:!1},getPlaybackRate:function(a){return null!=a.__srcAudio?a.__srcAudio.playbackRate:1},getPlayed:function(a){return null!=a.__srcAudio?a.__srcAudio.played:null},getPreload:function(a){return null!=a.__srcAudio?a.__srcAudio.preload:null},getReadyState:function(a){return null!=a.__srcAudio?a.__srcAudio.readyState:0},getSeekable:function(a){return null!=a.__srcAudio?a.__srcAudio.seekable:null},getSeeking:function(a){return null!=a.__srcAudio?a.__srcAudio.seeking:!1}, +getSrc:function(a){return null!=a.__srcAudio?a.__srcAudio.src:null},getStartTime:function(a){return null!=a.__srcAudio?a.__srcAudio.playbackRate:0},getVolume:function(a){return null!=a.__srcAudio?a.__srcAudio.volume:1},load:function(a){null!=a.__srcAudio&&a.__srcAudio.load()},pause:function(a){null!=a.__srcAudio&&a.__srcAudio.pause()},play:function(a){null!=a.__srcAudio&&a.__srcAudio.play()},setAutoplay:function(a,b){null!=a.__srcAudio&&(a.__srcAudio.autoplay=b)},setCurrentTime:function(a,b){null!= +a.__srcAudio&&(a.__srcAudio.currentTime=b)},setDefaultPlaybackRate:function(a,b){null!=a.__srcAudio&&(a.__srcAudio.defaultPlaybackRate=b)},setLoop:function(a,b){null!=a.__srcAudio&&(a.__srcAudio.loop=b)},setMuted:function(a,b){null!=a.__srcAudio&&(a.__srcAudio.muted=b)},setPlaybackRate:function(a,b){null!=a.__srcAudio&&(a.__srcAudio.playbackRate=b)},setPreload:function(a,b){null!=a.__srcAudio&&(a.__srcAudio.preload=b)},setSrc:function(a,b){null!=a.__srcAudio&&(a.__srcAudio.src=b)},setVolume:function(a, +b){null!=a.__srcAudio&&(a.__srcAudio.volume=b)},__class__:Po};var It=function(){this.ALL_DEVICES_SPECIFIER=4115;this.DEFAULT_ALL_DEVICES_SPECIFIER=4114;this.ENUMERATE_ALL_EXT=1;this.DEVICE_SPECIFIER=4101;this.DEFAULT_DEVICE_SPECIFIER=4100;this.ALL_ATTRIBUTES=4099;this.ATTRIBUTES_SIZE=4098;this.INVALID_CONTEXT=40962;this.INVALID_DEVICE=40961;this.STEREO_SOURCES=4113;this.MONO_SOURCES=4112;this.SYNC=4105;this.REFRESH=4104;this.EXPONENT_DISTANCE_CLAMPED=53254;this.EXPONENT_DISTANCE=53253;this.LINEAR_DISTANCE_CLAMPED= +53252;this.LINEAR_DISTANCE=53251;this.INVERSE_DISTANCE_CLAMPED=53250;this.INVERSE_DISTANCE=53249;this.DISTANCE_MODEL=53248;this.DOPPLER_VELOCITY=49153;this.SPEED_OF_SOUND=49155;this.DOPPLER_FACTOR=49152;this.EXTENSIONS=45060;this.RENDERER=45059;this.VERSION=45058;this.VENDOR=45057;this.OUT_OF_MEMORY=40965;this.INVALID_OPERATION=40964;this.INVALID_VALUE=40963;this.INVALID_ENUM=40962;this.INVALID_NAME=40961;this.NO_ERROR=0;this.SIZE=8196;this.CHANNELS=8195;this.BITS=8194;this.FREQUENCY=8193;this.FORMAT_STEREO16= +4355;this.FORMAT_STEREO8=4354;this.FORMAT_MONO16=4353;this.FORMAT_MONO8=4352;this.UNDETERMINED=4144;this.STREAMING=4137;this.STATIC=4136;this.SOURCE_TYPE=4135;this.BYTE_OFFSET=4134;this.SAMPLE_OFFSET=4133;this.SEC_OFFSET=4132;this.MAX_DISTANCE=4131;this.CONE_OUTER_GAIN=4130;this.ROLLOFF_FACTOR=4129;this.REFERENCE_DISTANCE=4128;this.BUFFERS_PROCESSED=4118;this.BUFFERS_QUEUED=4117;this.STOPPED=4116;this.PAUSED=4115;this.PLAYING=4114;this.INITIAL=4113;this.SOURCE_STATE=4112;this.ORIENTATION=4111;this.MAX_GAIN= +4110;this.MIN_GAIN=4109;this.GAIN=4106;this.BUFFER=4105;this.LOOPING=4103;this.VELOCITY=4102;this.DIRECTION=4101;this.POSITION=4100;this.PITCH=4099;this.CONE_OUTER_ANGLE=4098;this.CONE_INNER_ANGLE=4097;this.SOURCE_RELATIVE=514;this.TRUE=1;this.NONE=this.FALSE=0};k["lime.media.OpenALAudioContext"]=It;It.__name__="lime.media.OpenALAudioContext";It.prototype={NONE:null,FALSE:null,TRUE:null,SOURCE_RELATIVE:null,CONE_INNER_ANGLE:null,CONE_OUTER_ANGLE:null,PITCH:null,POSITION:null,DIRECTION:null,VELOCITY:null, +LOOPING:null,BUFFER:null,GAIN:null,MIN_GAIN:null,MAX_GAIN:null,ORIENTATION:null,SOURCE_STATE:null,INITIAL:null,PLAYING:null,PAUSED:null,STOPPED:null,BUFFERS_QUEUED:null,BUFFERS_PROCESSED:null,REFERENCE_DISTANCE:null,ROLLOFF_FACTOR:null,CONE_OUTER_GAIN:null,MAX_DISTANCE:null,SEC_OFFSET:null,SAMPLE_OFFSET:null,BYTE_OFFSET:null,SOURCE_TYPE:null,STATIC:null,STREAMING:null,UNDETERMINED:null,FORMAT_MONO8:null,FORMAT_MONO16:null,FORMAT_STEREO8:null,FORMAT_STEREO16:null,FREQUENCY:null,BITS:null,CHANNELS:null, +SIZE:null,NO_ERROR:null,INVALID_NAME:null,INVALID_ENUM:null,INVALID_VALUE:null,INVALID_OPERATION:null,OUT_OF_MEMORY:null,VENDOR:null,VERSION:null,RENDERER:null,EXTENSIONS:null,DOPPLER_FACTOR:null,SPEED_OF_SOUND:null,DOPPLER_VELOCITY:null,DISTANCE_MODEL:null,INVERSE_DISTANCE:null,INVERSE_DISTANCE_CLAMPED:null,LINEAR_DISTANCE:null,LINEAR_DISTANCE_CLAMPED:null,EXPONENT_DISTANCE:null,EXPONENT_DISTANCE_CLAMPED:null,REFRESH:null,SYNC:null,MONO_SOURCES:null,STEREO_SOURCES:null,INVALID_DEVICE:null,INVALID_CONTEXT:null, +ATTRIBUTES_SIZE:null,ALL_ATTRIBUTES:null,DEFAULT_DEVICE_SPECIFIER:null,DEVICE_SPECIFIER:null,ENUMERATE_ALL_EXT:null,DEFAULT_ALL_DEVICES_SPECIFIER:null,ALL_DEVICES_SPECIFIER:null,bufferData:function(a,b,c,d,e){H.bufferData(a,b,c,d,e)},buffer3f:function(a,b,c,d,e){H.buffer3f(a,b,c,d,e)},buffer3i:function(a,b,c,d,e){H.buffer3i(a,b,c,d,e)},bufferf:function(a,b,c){H.bufferf(a,b,c)},bufferfv:function(a,b,c){H.bufferfv(a,b,c)},bufferi:function(a,b,c){H.bufferi(a,b,c)},bufferiv:function(a,b,c){H.bufferiv(a, +b,c)},closeDevice:function(a){return Eb.closeDevice(a)},createContext:function(a,b){return Eb.createContext(a,b)},createBuffer:function(){return H.createBuffer()},createSource:function(){return H.createSource()},deleteBuffer:function(a){H.deleteBuffer(a)},deleteBuffers:function(a){H.deleteBuffers(a)},deleteSource:function(a){H.deleteSource(a)},deleteSources:function(a){H.deleteSources(a)},destroyContext:function(a){null!=a&&Eb.destroyContext(a)},disable:function(a){H.disable(a)},distanceModel:function(a){H.distanceModel(a)}, +dopplerFactor:function(a){H.dopplerFactor(a)},dopplerVelocity:function(a){H.dopplerVelocity(a)},enable:function(a){H.enable(a)},genSource:function(){return this.createSource()},genSources:function(a){return H.genSources(a)},genBuffer:function(){return this.createBuffer()},genBuffers:function(a){return H.genBuffers(a)},getBoolean:function(a){return H.getBoolean(a)},getBooleanv:function(a,b){null==b&&(b=1);return H.getBooleanv(a,b)},getBuffer3f:function(a,b){return H.getBuffer3f(a,b)},getBuffer3i:function(a, +b){return H.getBuffer3i(a,b)},getBufferf:function(a,b){return H.getBufferf(a,b)},getBufferfv:function(a,b,c){null==c&&(c=1);return H.getBufferfv(a,b,c)},getBufferi:function(a,b){return H.getBufferi(a,b)},getBufferiv:function(a,b,c){null==c&&(c=1);return H.getBufferiv(a,b,c)},getContextsDevice:function(a){return null==a?null:Eb.getContextsDevice(a)},getCurrentContext:function(){return Eb.getCurrentContext()},getDouble:function(a){return H.getDouble(a)},getDoublev:function(a,b){null==b&&(b=1);return H.getDoublev(a, +b)},getEnumValue:function(a){return H.getEnumValue(a)},getError:function(a){return null==a?H.getError():Eb.getError(a)},getErrorString:function(a){return null==a?H.getErrorString():Eb.getErrorString(a)},getFloat:function(a){return H.getFloat(a)},getFloatv:function(a,b){null==b&&(b=1);return H.getFloatv(a,b)},getInteger:function(a){return H.getInteger(a)},getIntegerv:function(a,b,c){null==b&&(b=1);return null==c?H.getIntegerv(a,b):Eb.getIntegerv(c,a,b)},getListener3f:function(a){return H.getListener3f(a)}, +getListener3i:function(a){return H.getListener3i(a)},getListenerf:function(a){return H.getListenerf(a)},getListenerfv:function(a,b){null==b&&(b=1);return H.getListenerfv(a,b)},getListeneri:function(a){return H.getListeneri(a)},getListeneriv:function(a,b){null==b&&(b=1);return H.getListeneriv(a,b)},getProcAddress:function(a){return H.getProcAddress(a)},getSource3f:function(a,b){return H.getSource3f(a,b)},getSourcef:function(a,b){return H.getSourcef(a,b)},getSource3i:function(a,b){return H.getSource3i(a, +b)},getSourcefv:function(a,b,c){return H.getSourcefv(a,b)},getSourcei:function(a,b){return H.getSourcei(a,b)},getSourceiv:function(a,b,c){null==c&&(c=1);return H.getSourceiv(a,b,c)},getString:function(a,b){return null==b?H.getString(a):Eb.getString(b,a)},isBuffer:function(a){return H.isBuffer(a)},isEnabled:function(a){return H.isEnabled(a)},isExtensionPresent:function(a){return H.isExtensionPresent(a)},isSource:function(a){return H.isSource(a)},listener3f:function(a,b,c,d){H.listener3f(a,b,c,d)}, +listener3i:function(a,b,c,d){H.listener3i(a,b,c,d)},listenerf:function(a,b){H.listenerf(a,b)},listenerfv:function(a,b){H.listenerfv(a,b)},listeneri:function(a,b){H.listeneri(a,b)},listeneriv:function(a,b){H.listeneriv(a,b)},makeContextCurrent:function(a){return Eb.makeContextCurrent(a)},openDevice:function(a){return Eb.openDevice(a)},pauseDevice:function(a){Eb.pauseDevice(a)},processContext:function(a){Eb.processContext(a)},resumeDevice:function(a){Eb.resumeDevice(a)},source3f:function(a,b,c,d,e){H.source3f(a, +b,c,d,e)},source3i:function(a,b,c,d,e){H.source3i(a,b,c,d,e)},sourcef:function(a,b,c){H.sourcef(a,b,c)},sourcefv:function(a,b,c){H.sourcefv(a,b,c)},sourcei:function(a,b,c){H.sourcei(a,b,c)},sourceiv:function(a,b,c){H.sourceiv(a,b,c)},sourcePlay:function(a){H.sourcePlay(a)},sourcePlayv:function(a){H.sourcePlayv(a)},sourceStop:function(a){H.sourceStop(a)},sourceStopv:function(a){H.sourceStopv(a)},sourceRewind:function(a){H.sourceRewind(a)},sourceRewindv:function(a){H.sourceRewindv(a)},sourcePause:function(a){H.sourcePause(a)}, +sourcePausev:function(a){H.sourcePausev(a)},sourceQueueBuffer:function(a,b){H.sourceQueueBuffer(a,b)},sourceQueueBuffers:function(a,b,c){H.sourceQueueBuffers(a,b,c)},sourceUnqueueBuffer:function(a){return H.sourceUnqueueBuffer(a)},sourceUnqueueBuffers:function(a,b){return H.sourceUnqueueBuffers(a,b)},speedOfSound:function(a){H.speedOfSound(a)},suspendContext:function(a){Eb.suspendContext(a)},__class__:It};var H=function(){};k["lime.media.openal.AL"]=H;H.__name__="lime.media.openal.AL";H.removeDirectFilter= +function(a){};H.removeSend=function(a,b){};H.auxf=function(a,b,c){};H.auxfv=function(a,b,c){};H.auxi=function(a,b,c){};H.auxiv=function(a,b,c){};H.bufferData=function(a,b,c,d,e){};H.buffer3f=function(a,b,c,d,e){};H.buffer3i=function(a,b,c,d,e){};H.bufferf=function(a,b,c){};H.bufferfv=function(a,b,c){};H.bufferi=function(a,b,c){};H.bufferiv=function(a,b,c){};H.createAux=function(){return null};H.createBuffer=function(){return null};H.createEffect=function(){return null};H.createFilter=function(){return null}; +H.createSource=function(){return null};H.deleteBuffer=function(a){};H.deleteBuffers=function(a){};H.deleteSource=function(a){};H.deleteSources=function(a){};H.disable=function(a){};H.distanceModel=function(a){};H.dopplerFactor=function(a){};H.dopplerVelocity=function(a){};H.effectf=function(a,b,c){};H.effectfv=function(a,b,c){};H.effecti=function(a,b,c){};H.effectiv=function(a,b,c){};H.enable=function(a){};H.genSource=function(){return null};H.genSources=function(a){return null};H.genBuffer=function(){return null}; +H.genBuffers=function(a){return null};H.getBoolean=function(a){return!1};H.getBooleanv=function(a,b){return null};H.getBuffer3f=function(a,b){return null};H.getBuffer3i=function(a,b){return null};H.getBufferf=function(a,b){return 0};H.getBufferfv=function(a,b,c){return null};H.getBufferi=function(a,b){return 0};H.getBufferiv=function(a,b,c){return null};H.getDouble=function(a){return 0};H.getDoublev=function(a,b){return null};H.getEnumValue=function(a){return 0};H.getError=function(){return 0};H.getErrorString= +function(){switch(H.getError()){case 40961:return"INVALID_NAME: Invalid parameter name";case 40962:return"INVALID_ENUM: Invalid enum value";case 40963:return"INVALID_VALUE: Invalid parameter value";case 40964:return"INVALID_OPERATION: Illegal operation or call";case 40965:return"OUT_OF_MEMORY: OpenAL has run out of memory";default:return""}};H.getFilteri=function(a,b){return 0};H.getFloat=function(a){return 0};H.getFloatv=function(a,b){return null};H.getInteger=function(a){return 0};H.getIntegerv= +function(a,b){return null};H.getListener3f=function(a){return null};H.getListener3i=function(a){return null};H.getListenerf=function(a){return 0};H.getListenerfv=function(a,b){return null};H.getListeneri=function(a){return 0};H.getListeneriv=function(a,b){return null};H.getParameter=function(a){return null};H.getProcAddress=function(a){return null};H.getSource3f=function(a,b){return null};H.getSourcef=function(a,b){return 0};H.getSource3i=function(a,b){return null};H.getSourcefv=function(a,b,c){return null}; +H.getSourcei=function(a,b){return 0};H.getSourceiv=function(a,b,c){return null};H.getString=function(a){return null};H.isBuffer=function(a){return!1};H.isEnabled=function(a){return!1};H.isExtensionPresent=function(a){return!1};H.isAux=function(a){return!1};H.isEffect=function(a){return!1};H.isFilter=function(a){return!1};H.isSource=function(a){return!1};H.listener3f=function(a,b,c,d){};H.listener3i=function(a,b,c,d){};H.listenerf=function(a,b){};H.listenerfv=function(a,b){};H.listeneri=function(a, +b){};H.listeneriv=function(a,b){};H.source3f=function(a,b,c,d,e){};H.source3i=function(a,b,c,d,e){};H.sourcef=function(a,b,c){};H.sourcefv=function(a,b,c){};H.sourcei=function(a,b,c){};H.filteri=function(a,b,c){};H.filterf=function(a,b,c){};H.sourceiv=function(a,b,c){};H.sourcePlay=function(a){};H.sourcePlayv=function(a){};H.sourceStop=function(a){};H.sourceStopv=function(a){};H.sourceRewind=function(a){};H.sourceRewindv=function(a){};H.sourcePause=function(a){};H.sourcePausev=function(a){};H.sourceQueueBuffer= +function(a,b){};H.sourceQueueBuffers=function(a,b,c){};H.sourceUnqueueBuffer=function(a){return 0};H.sourceUnqueueBuffers=function(a,b){return null};H.speedOfSound=function(a){};var Eb=function(){};k["lime.media.openal.ALC"]=Eb;Eb.__name__="lime.media.openal.ALC";Eb.closeDevice=function(a){return!1};Eb.createContext=function(a,b){return null};Eb.destroyContext=function(a){};Eb.getContextsDevice=function(a){return null};Eb.getCurrentContext=function(){return null};Eb.getError=function(a){return 0}; +Eb.getErrorString=function(a){switch(Eb.getError(a)){case 40961:return"INVALID_DEVICE: Invalid device (or no device?)";case 40962:return"INVALID_CONTEXT: Invalid context (or no context?)";case 40963:return"INVALID_ENUM: Invalid enum value";case 40964:return"INVALID_VALUE: Invalid param value";case 40965:return"OUT_OF_MEMORY: OpenAL has run out of memory";default:return""}};Eb.getIntegerv=function(a,b,c){return null};Eb.getString=function(a,b){return null};Eb.makeContextCurrent=function(a){return!1}; +Eb.openDevice=function(a){return null};Eb.pauseDevice=function(a){};Eb.processContext=function(a){};Eb.resumeDevice=function(a){};Eb.suspendContext=function(a){};var Jt=function(){};k["lime.media.vorbis.VorbisComment"]=Jt;Jt.__name__="lime.media.vorbis.VorbisComment";Jt.prototype={userComments:null,vendor:null,__class__:Jt};var vm=function(a){this.handle=a};k["lime.media.vorbis.VorbisFile"]=vm;vm.__name__="lime.media.vorbis.VorbisFile";vm.fromBytes=function(a){return null};vm.fromFile=function(a){return null}; +vm.prototype={bitstream:null,handle:null,bitrate:function(a){return 0},bitrateInstant:function(){return 0},clear:function(){},comment:function(a){return null},crosslap:function(a){return 0},info:function(a){return null},pcmSeek:function(a){return 0},pcmSeekLap:function(a){return 0},pcmSeekPage:function(a){return 0},pcmSeekPageLap:function(a){return 0},pcmTell:function(){return new Ya(0,0)},pcmTotal:function(a){return new Ya(0,0)},rawSeek:function(a){return 0},rawSeekLap:function(a){return 0},rawTell:function(){return new Ya(0, +0)},rawTotal:function(a){return new Ya(0,0)},read:function(a,b,c,d,e,g){return 0},readFloat:function(a,b){return 0},seekable:function(){return!1},serialNumber:function(a){return 0},streams:function(){return 0},timeSeek:function(a){return 0},timeSeekLap:function(a){return 0},timeSeekPage:function(a){return 0},timeSeekPageLap:function(a){return 0},timeTell:function(){return 0},timeTotal:function(a){return 0},__class__:vm};var Kt=function(){};k["lime.media.vorbis.VorbisInfo"]=Kt;Kt.__name__="lime.media.vorbis.VorbisInfo"; +Kt.prototype={bitrateLower:null,bitrateNominal:null,bitrateUpper:null,channels:null,rate:null,version:null,__class__:Kt};var wm=function(){};k["lime.net._IHTTPRequest"]=wm;wm.__name__="lime.net._IHTTPRequest";wm.__isInterface__=!0;wm.prototype={contentType:null,data:null,enableResponseHeaders:null,followRedirects:null,formData:null,headers:null,method:null,responseHeaders:null,responseStatus:null,timeout:null,uri:null,userAgent:null,withCredentials:null,manageCookies:null,cancel:null,__class__:wm}; +var af=function(a){this.uri=a;this.contentType="application/x-www-form-urlencoded";this.followRedirects=!0;this.enableResponseHeaders=!1;this.formData=new V;this.headers=[];this.method="GET";this.timeout=3E4;this.withCredentials=!1;this.manageCookies=!0;this.__backend=new bb;this.__backend.init(this)};k["lime.net._HTTPRequest.AbstractHTTPRequest"]=af;af.__name__="lime.net._HTTPRequest.AbstractHTTPRequest";af.__interfaces__=[wm];af.prototype={contentType:null,data:null,enableResponseHeaders:null,followRedirects:null, +formData:null,headers:null,method:null,responseData:null,responseHeaders:null,responseStatus:null,timeout:null,uri:null,userAgent:null,withCredentials:null,manageCookies:null,__backend:null,cancel:function(){this.__backend.cancel()},load:function(a){return null},__class__:af};var So=function(a){af.call(this,a)};k["lime.net.HTTPRequest"]=So;So.__name__="lime.net.HTTPRequest";So.__super__=af;So.prototype=u(af.prototype,{__class__:So});var Vg=function(a){af.call(this,a)};k["lime.net._HTTPRequest_Bytes"]= +Vg;Vg.__name__="lime.net._HTTPRequest_Bytes";Vg.__super__=af;Vg.prototype=u(af.prototype,{fromBytes:function(a){return a},load:function(a){var b=this;null!=a&&(this.uri=a);var c=new Wd;a=this.__backend.loadData(this.uri);a.onProgress(q(c,c.progress));a.onError(q(c,c.error));a.onComplete(function(a){b.responseData=b.fromBytes(a);c.complete(b.responseData)});return c.future},__class__:Vg});var Tj=function(a){af.call(this,a)};k["lime.net._HTTPRequest_String"]=Tj;Tj.__name__="lime.net._HTTPRequest_String"; +Tj.__super__=af;Tj.prototype=u(af.prototype,{load:function(a){var b=this;null!=a&&(this.uri=a);var c=new Wd;a=this.__backend.loadText(this.uri);a.onProgress(q(c,c.progress));a.onError(q(c,c.error));a.onComplete(function(a){b.responseData=a;c.complete(b.responseData)});return c.future},__class__:Tj});var jm=function(a,b){null==b&&(b="");this.name=a;this.value=b};k["lime.net.HTTPRequestHeader"]=jm;jm.__name__="lime.net.HTTPRequestHeader";jm.prototype={name:null,value:null,__class__:jm};var xm=function(a){af.call(this, +a)};k["lime.net._HTTPRequest_lime_text_Font"]=xm;xm.__name__="lime.net._HTTPRequest_lime_text_Font";xm.__super__=Vg;xm.prototype=u(Vg.prototype,{fromBytes:function(a){return Gd.fromBytes(a)},__class__:xm});var ym=function(a){af.call(this,a)};k["lime.net._HTTPRequest_lime_utils_Bytes"]=ym;ym.__name__="lime.net._HTTPRequest_lime_utils_Bytes";ym.__super__=Vg;ym.prototype=u(Vg.prototype,{fromBytes:function(a){return hc.fromBytes(a)},__class__:ym});var zm=function(a){af.call(this,a)};k["lime.net._HTTPRequest_openfl_utils_ByteArray"]= +zm;zm.__name__="lime.net._HTTPRequest_openfl_utils_ByteArray";zm.__super__=Vg;zm.prototype=u(Vg.prototype,{fromBytes:function(a){return yb.fromBytes(a)},__class__:zm});var Wg=function(){};k["lime.system.CFFI"]=Wg;Wg.__name__="lime.system.CFFI";Wg.load=function(a,b,c,d){null==d&&(d=!1);null==c&&(c=0);return Wg.enabled?null:W.makeVarArgs(function(a){return{}})};Wg.__findHaxelib=function(a){return""};Wg.__loaderTrace=function(a){};Wg.__sysName=function(){return null};Wg.__tryLoad=function(a,b,c,d){return null}; +var Hd={_new:function(a){return a},get:function(a){return 0},equals:function(a,b){return Hd.get(a)==b},equalsPointer:function(a,b){return Hd.get(a)==Hd.get(b)},greaterThan:function(a,b){return Hd.get(a)>b},greaterThanPointer:function(a,b){return Hd.get(a)>Hd.get(b)},greaterThanOrEqual:function(a,b){return Hd.get(a)>=b},greaterThanOrEqualPointer:function(a,b){return Hd.get(a)>=Hd.get(b)},lessThan:function(a,b){return Hd.get(a)<b},lessThanPointer:function(a,b){return Hd.get(a)<Hd.get(b)},lessThanOrEqual:function(a, +b){return Hd.get(a)<=b},lessThanOrEqualPointer:function(a,b){return Hd.get(a)<=Hd.get(b)},notEquals:function(a,b){return Hd.get(a)!=b},notEqualsPointer:function(a,b){return Hd.get(a)!=Hd.get(b)}},fe=function(){};k["lime.system.Clipboard"]=fe;fe.__name__="lime.system.Clipboard";fe.__properties__={set_text:"set_text",get_text:"get_text"};fe.__update=function(){var a=fe._text;fe._text=null;fe._text!=a&&fe.onUpdate.dispatch()};fe.get_text=function(){fe.__update();return fe._text};fe.set_text=function(a){var b= +fe._text;fe._text=a;var c=md.current.__window;null!=c&&c.__backend.setClipboard(a);fe._text!=b&&fe.onUpdate.dispatch();return a};var To=function(){};k["lime.system.Display"]=To;To.__name__="lime.system.Display";To.prototype={bounds:null,currentMode:null,id:null,dpi:null,name:null,supportedModes:null,__class__:To};var Uo=function(a,b,c,d){this.width=a;this.height=b;this.refreshRate=c;this.pixelFormat=d};k["lime.system.DisplayMode"]=Uo;Uo.__name__="lime.system.DisplayMode";Uo.prototype={height:null, +pixelFormat:null,refreshRate:null,width:null,__class__:Uo};var zg=E["lime.system.Endian"]={__ename__:"lime.system.Endian",__constructs__:null,LITTLE_ENDIAN:{_hx_name:"LITTLE_ENDIAN",_hx_index:0,__enum__:"lime.system.Endian",toString:v},BIG_ENDIAN:{_hx_name:"BIG_ENDIAN",_hx_index:1,__enum__:"lime.system.Endian",toString:v}};zg.__constructs__=[zg.LITTLE_ENDIAN,zg.BIG_ENDIAN];var te=function(){};k["lime.system.JNI"]=te;te.__name__="lime.system.JNI";te.callMember=function(a,b,c){switch(c.length){case 0:return a(b); +case 1:return a(b,c[0]);case 2:return a(b,c[0],c[1]);case 3:return a(b,c[0],c[1],c[2]);case 4:return a(b,c[0],c[1],c[2],c[3]);case 5:return a(b,c[0],c[1],c[2],c[3],c[4]);case 6:return a(b,c[0],c[1],c[2],c[3],c[4],c[5]);case 7:return a(b,c[0],c[1],c[2],c[3],c[4],c[5],c[6]);default:return null}};te.callStatic=function(a,b){switch(b.length){case 0:return a();case 1:return a(b[0]);case 2:return a(b[0],b[1]);case 3:return a(b[0],b[1],b[2]);case 4:return a(b[0],b[1],b[2],b[3]);case 5:return a(b[0],b[1], +b[2],b[3],b[4]);case 6:return a(b[0],b[1],b[2],b[3],b[4],b[5]);case 7:return a(b[0],b[1],b[2],b[3],b[4],b[5],b[6]);default:return null}};te.createMemberField=function(a,b,c){te.init();return new Vo(null)};te.createMemberMethod=function(a,b,c,d,e){te.init();return null};te.createStaticField=function(a,b,c){te.init();return new Wo(null)};te.createStaticMethod=function(a,b,c,d,e){te.init();return null};te.getEnv=function(){te.init();return null};te.init=function(){te.initialized||(te.initialized=!0)}; +te.onCallback=function(a,b,c){b=W.field(a,b);return null!=b?(null==c&&(c=[]),b.apply(a,c)):null};te.postUICallback=function(a){a()};var Vo=function(a){this.field=a};k["lime.system.JNIMemberField"]=Vo;Vo.__name__="lime.system.JNIMemberField";Vo.prototype={field:null,get:function(a){return null},set:function(a,b){return b},__class__:Vo};var Wo=function(a){this.field=a};k["lime.system.JNIStaticField"]=Wo;Wo.__name__="lime.system.JNIStaticField";Wo.prototype={field:null,get:function(){return null},set:function(a){return a}, +__class__:Wo};var Lt=function(a){this.method=a};k["lime.system.JNIMethod"]=Lt;Lt.__name__="lime.system.JNIMethod";Lt.prototype={method:null,callMember:function(a){return null},callStatic:function(a){return null},getMemberMethod:function(a){return a?q(this,this.callMember):W.makeVarArgs(q(this,this.callMember))},getStaticMethod:function(a){return a?q(this,this.callStatic):W.makeVarArgs(q(this,this.callStatic))},__class__:Lt};var lu=function(){};k["lime.system.JNISafety"]=lu;lu.__name__="lime.system.JNISafety"; +lu.__isInterface__=!0;var mu=function(){};k["lime.system.JNISafetyTools"]=mu;mu.__name__="lime.system.JNISafetyTools";mu.onMainThread=function(){return!0};var Qe={__properties__:{get_region:"get_region",get_language:"get_language",get_systemLocale:"get_systemLocale",set_currentLocale:"set_currentLocale",get_currentLocale:"get_currentLocale"},_new:function(a){return a},equals:function(a,b){var c=Qe.get_language(a);a=Qe.get_region(a);var d=Qe.get_language(b);b=Qe.get_region(b);var e=c==d,g=a==b;e|| +null==c||null==d||(e=c.toLowerCase()==d.toLowerCase());g||null==a||null==b||(g=a.toLowerCase()==b.toLowerCase());return e?g:!1},__init:function(){if(null==Qe.__systemLocale){var a=navigator.language;Qe.__systemLocale=null!=a?a:"en-US";Qe.set_currentLocale(Qe.__systemLocale)}},get_language:function(a){if(null!=a){var b=a.indexOf("_");if(-1<b){var c=a.indexOf("-");-1<c&&c<b&&(b=c);return a.substring(0,b)}b=a.indexOf("-");if(-1<b)return a.substring(0,b)}return a},get_region:function(a){if(null!=a){var b= +a.indexOf("_"),c=a.indexOf("."),d=a.indexOf("-");if(-1<b)return-1<c?a.substring(b+1,c):a.substring(b+1);if(-1<d)return-1<c?a.substring(d+1,c):a.substring(d+1)}return null},get_currentLocale:function(){Qe.__init();return Qe.currentLocale},set_currentLocale:function(a){Qe.__init();return Qe.currentLocale=a},get_systemLocale:function(){Qe.__init();return Qe.__systemLocale}},Of=function(a,b){this.onUpdate=new Do;this.type=a;this.id=b};k["lime.system.Sensor"]=Of;Of.__name__="lime.system.Sensor";Of.getSensors= +function(a){if(null==a)return Of.sensors.slice();for(var b=[],c=0,d=Of.sensors;c<d.length;){var e=d[c];++c;e.type==a&&b.push(e)}return b};Of.registerSensor=function(a,b){a=new Of(a,b);Of.sensors.push(a);return Of.sensorByID.h[b]=a};Of.prototype={id:null,onUpdate:null,type:null,__class__:Of};var ku=E["lime.system.SensorType"]={__ename__:"lime.system.SensorType",__constructs__:null,ACCELEROMETER:{_hx_name:"ACCELEROMETER",_hx_index:0,__enum__:"lime.system.SensorType",toString:v}};ku.__constructs__=[ku.ACCELEROMETER]; +var Pa=function(){};k["lime.system.System"]=Pa;Pa.__name__="lime.system.System";Pa.__properties__={get_userDirectory:"get_userDirectory",get_platformVersion:"get_platformVersion",get_platformName:"get_platformName",get_platformLabel:"get_platformLabel",get_numDisplays:"get_numDisplays",get_fontsDirectory:"get_fontsDirectory",get_endianness:"get_endianness",get_documentsDirectory:"get_documentsDirectory",get_deviceVendor:"get_deviceVendor",get_deviceModel:"get_deviceModel",get_desktopDirectory:"get_desktopDirectory", +get_applicationStorageDirectory:"get_applicationStorageDirectory",get_applicationDirectory:"get_applicationDirectory",set_allowScreenTimeout:"set_allowScreenTimeout",get_allowScreenTimeout:"get_allowScreenTimeout"};Pa.embed=y.lime.embed=function(a,b,c,d,e){if(null!=Pa.__applicationEntryPoint&&Object.prototype.hasOwnProperty.call(Pa.__applicationEntryPoint.h,a)){var g="string"==typeof b?window.document.getElementById(b):null==b?window.document.createElement("div"):b;null==g?window.console.log("[lime.embed] ERROR: Cannot find target element: "+ +n.string(b)):(null==c&&(c=0),null==d&&(d=0),null==e&&(e={}),Object.prototype.hasOwnProperty.call(e,"background")&&"string"==typeof e.background&&(b=J.replace(n.string(e.background),"#",""),-1<b.indexOf("0x")?e.background=n.parseInt(b):e.background=n.parseInt("0x"+b)),e.element=g,e.width=c,e.height=d,Pa.__applicationEntryPoint.h[a](e))}};Pa.exit=function(a){};Pa.getDisplay=function(a){return 0==a?(a=new To,a.id=0,a.name="Generic Display",a.dpi=96*window.devicePixelRatio,a.currentMode=new Uo(window.screen.width, +window.screen.height,60,1),a.supportedModes=[a.currentMode],a.bounds=new Ad(0,0,a.currentMode.width,a.currentMode.height),a):null};Pa.getTimer=function(){return window.performance.now()|0};Pa.load=function(a,b,c,d){null==d&&(d=!1);null==c&&(c=0);return Wg.load(a,b,c,d)};Pa.openFile=function(a){null!=a&&window.open(a,"_blank")};Pa.openURL=function(a,b){null==b&&(b="_blank");null!=a&&window.open(a,b)};Pa.__copyMissingFields=function(a,b){if(null!=b&&null!=a)for(var c=0,d=W.fields(b);c<d.length;){var e= +d[c];++c;Object.prototype.hasOwnProperty.call(a,e)||(a[e]=W.field(b,e))}};Pa.__getDirectory=function(a){return null};Pa.__parseBool=function(a){return"true"==a};Pa.__registerEntryPoint=function(a,b){null==Pa.__applicationEntryPoint&&(Pa.__applicationEntryPoint=new V);Pa.__applicationEntryPoint.h[a]=b};Pa.__runProcess=function(a,b){return null};Pa.get_allowScreenTimeout=function(){return!0};Pa.set_allowScreenTimeout=function(a){return!0};Pa.get_applicationDirectory=function(){null==Pa.__applicationDirectory&& +(Pa.__applicationDirectory=Pa.__getDirectory(0));return Pa.__applicationDirectory};Pa.get_applicationStorageDirectory=function(){null==Pa.__applicationStorageDirectory&&(Pa.__applicationStorageDirectory=Pa.__getDirectory(1));return Pa.__applicationStorageDirectory};Pa.get_deviceModel=function(){return Pa.__deviceModel};Pa.get_deviceVendor=function(){return Pa.__deviceVendor};Pa.get_desktopDirectory=function(){null==Pa.__desktopDirectory&&(Pa.__desktopDirectory=Pa.__getDirectory(2));return Pa.__desktopDirectory}; +Pa.get_documentsDirectory=function(){null==Pa.__documentsDirectory&&(Pa.__documentsDirectory=Pa.__getDirectory(3));return Pa.__documentsDirectory};Pa.get_endianness=function(){if(null==Pa.__endianness){var a=new ArrayBuffer(2),b=null,c=null,d=null,e=null,g=null,f=b=null!=b?new Uint8Array(b):null!=c?new Uint8Array(c):null!=d?new Uint8Array(d.__array):null!=e?new Uint8Array(e):null!=a?null==g?new Uint8Array(a,0):new Uint8Array(a,0,g):null;g=e=d=c=b=null;b=null!=b?new Uint16Array(b):null!=c?new Uint16Array(c): +null!=d?new Uint16Array(d.__array):null!=e?new Uint16Array(e):null!=a?null==g?new Uint16Array(a,0):new Uint16Array(a,0,g):null;f[0]=170;f[1]=187;Pa.__endianness=43707==b[0]?zg.BIG_ENDIAN:zg.LITTLE_ENDIAN}return Pa.__endianness};Pa.get_fontsDirectory=function(){null==Pa.__fontsDirectory&&(Pa.__fontsDirectory=Pa.__getDirectory(4));return Pa.__fontsDirectory};Pa.get_numDisplays=function(){return 1};Pa.get_platformLabel=function(){if(null==Pa.__platformLabel){var a=Pa.get_platformName(),b=Pa.get_platformVersion(); +null!=a&&null!=b?Pa.__platformLabel=a+" "+b:null!=a&&(Pa.__platformLabel=a)}return Pa.__platformLabel};Pa.get_platformName=function(){null==Pa.__platformName&&(Pa.__platformName="HTML5");return Pa.__platformName};Pa.get_platformVersion=function(){return Pa.__platformVersion};Pa.get_userDirectory=function(){null==Pa.__userDirectory&&(Pa.__userDirectory=Pa.__getDirectory(5));return Pa.__userDirectory};var Co=function(a,b){null==b&&(b=1);null==a&&(a=0);this.onRun=new Xh;this.onProgress=new Xh;this.onError= +new Xh;this.onComplete=new Xh;this.doWork=new Xh;this.minThreads=a;this.maxThreads=b;this.currentThreads=0};k["lime.system.ThreadPool"]=Co;Co.__name__="lime.system.ThreadPool";Co.prototype={currentThreads:null,doWork:null,maxThreads:null,minThreads:null,onComplete:null,onError:null,onProgress:null,onRun:null,queue:function(a){this.runWork(a)},sendComplete:function(a){this.onComplete.dispatch(a)},sendError:function(a){this.onError.dispatch(a)},sendProgress:function(a){this.onProgress.dispatch(a)}, +runWork:function(a){this.onRun.dispatch(a);this.doWork.dispatch(a)},__class__:Co};var Am=E["lime.system._ThreadPool.ThreadPoolMessageType"]={__ename__:"lime.system._ThreadPool.ThreadPoolMessageType",__constructs__:null,COMPLETE:{_hx_name:"COMPLETE",_hx_index:0,__enum__:"lime.system._ThreadPool.ThreadPoolMessageType",toString:v},ERROR:{_hx_name:"ERROR",_hx_index:1,__enum__:"lime.system._ThreadPool.ThreadPoolMessageType",toString:v},EXIT:{_hx_name:"EXIT",_hx_index:2,__enum__:"lime.system._ThreadPool.ThreadPoolMessageType", +toString:v},PROGRESS:{_hx_name:"PROGRESS",_hx_index:3,__enum__:"lime.system._ThreadPool.ThreadPoolMessageType",toString:v},WORK:{_hx_name:"WORK",_hx_index:4,__enum__:"lime.system._ThreadPool.ThreadPoolMessageType",toString:v}};Am.__constructs__=[Am.COMPLETE,Am.ERROR,Am.EXIT,Am.PROGRESS,Am.WORK];var Mt=function(a,b){this.type=a;this.state=b};k["lime.system._ThreadPool.ThreadPoolMessage"]=Mt;Mt.__name__="lime.system._ThreadPool.ThreadPoolMessage";Mt.prototype={state:null,type:null,__class__:Mt};var Gd= +function(a){null!=a&&(this.name=a);this.__init||(void 0==this.ascender&&(this.ascender=0),void 0==this.descender&&(this.descender=0),void 0==this.height&&(this.height=0),void 0==this.numGlyphs&&(this.numGlyphs=0),void 0==this.underlinePosition&&(this.underlinePosition=0),void 0==this.underlineThickness&&(this.underlineThickness=0),void 0==this.unitsPerEM&&(this.unitsPerEM=0),null!=this.__fontID?wa.isLocal(this.__fontID)&&this.__fromBytes(wa.getBytes(this.__fontID)):null!=this.__fontPath&&this.__fromFile(this.__fontPath))}; +k["lime.text.Font"]=Gd;Gd.__name__="lime.text.Font";Gd.fromBytes=function(a){if(null==a)return null;var b=new Gd;b.__fromBytes(a);return b};Gd.fromFile=function(a){if(null==a)return null;var b=new Gd;b.__fromFile(a);return b};Gd.loadFromBytes=function(a){return eb.withValue(Gd.fromBytes(a))};Gd.loadFromFile=function(a){return(new xm).load(a).then(function(a){return null!=a?eb.withValue(a):eb.withError("")})};Gd.loadFromName=function(a){return(new Gd).__loadFromName(a)};Gd.__measureFontNode=function(a){var b= +window.document.createElement("span");b.setAttribute("aria-hidden","true");var c=window.document.createTextNode("BESbswy");b.appendChild(c);c=b.style;c.display="block";c.position="absolute";c.top="-9999px";c.left="-9999px";c.fontSize="300px";c.width="auto";c.height="auto";c.lineHeight="normal";c.margin="0";c.padding="0";c.fontVariant="normal";c.whiteSpace="nowrap";c.fontFamily=a;window.document.body.appendChild(b);return b};Gd.prototype={ascender:null,descender:null,height:null,name:null,numGlyphs:null, +src:null,underlinePosition:null,underlineThickness:null,unitsPerEM:null,__fontID:null,__fontPath:null,__init:null,decompose:function(){return null},getGlyph:function(a){return-1},getGlyphs:function(a){return null},getGlyphMetrics:function(a){return null},renderGlyph:function(a,b){return null},renderGlyphs:function(a,b){return null},__copyFrom:function(a){null!=a&&(this.ascender=a.ascender,this.descender=a.descender,this.height=a.height,this.name=a.name,this.numGlyphs=a.numGlyphs,this.src=a.src,this.underlinePosition= +a.underlinePosition,this.underlineThickness=a.underlineThickness,this.unitsPerEM=a.unitsPerEM,this.__fontID=a.__fontID,this.__fontPath=a.__fontPath,this.__init=!0)},__fromBytes:function(a){this.__fontPath=null},__fromFile:function(a){this.__fontPath=a},__initializeSource:function(){this.__init=!0},__loadFromName:function(a){var b=this,c=new Wd;this.name=a;var d=Q.navigator.userAgent.toLowerCase(),e=0<=d.indexOf(" safari/")&&0>d.indexOf(" chrome/");d=(new Z("(iPhone|iPod|iPad).*AppleWebKit(?!.*Version)", +"i")).match(d);if(!e&&!d&&window.document.fonts&&(N=window.document.fonts,q(N,N.load)))window.document.fonts.load("1em '"+a+"'").then(function(a){c.complete(b)},function(d){Ga.warn('Could not load web font "'+a+'"',{fileName:"lime/text/Font.hx",lineNumber:513,className:"lime.text.Font",methodName:"__loadFromName"});c.complete(b)});else{var g=Gd.__measureFontNode("'"+a+"', sans-serif"),f=Gd.__measureFontNode("'"+a+"', serif"),l=g.offsetWidth,t=f.offsetWidth,m=-1,h=0,p,k;m=window.setInterval(function(){h+= +1;p=g.offsetWidth!=l||f.offsetWidth!=t;k=3E3<=50*h;if(p||k)window.clearInterval(m),g.parentNode.removeChild(g),f.parentNode.removeChild(f),f=g=null,k&&Ga.warn('Could not load web font "'+a+'"',{fileName:"lime/text/Font.hx",lineNumber:548,className:"lime.text.Font",methodName:"__loadFromName"}),c.complete(b)},50)}return c.future},__setSize:function(a){},__class__:Gd};var Nt=function(){};k["lime.text.GlyphMetrics"]=Nt;Nt.__name__="lime.text.GlyphMetrics";Nt.prototype={advance:null,height:null,horizontalBearing:null, +verticalBearing:null,__class__:Nt};var nu=function(){};k["lime.text.harfbuzz.HB"]=nu;nu.__name__="lime.text.harfbuzz.HB";nu.shape=function(a,b,c){};var Ju={__properties__:{set_segmentProperties:"set_segmentProperties",get_segmentProperties:"get_segmentProperties",set_script:"set_script",get_script:"get_script",set_replacementCodepoint:"set_replacementCodepoint",get_replacementCodepoint:"get_replacementCodepoint",set_length:"set_length",get_length:"get_length",set_language:"set_language",get_language:"get_language", +set_flags:"set_flags",get_flags:"get_flags",set_direction:"set_direction",get_direction:"get_direction",set_contentType:"set_contentType",get_contentType:"get_contentType",set_clusterLevel:"set_clusterLevel",get_clusterLevel:"get_clusterLevel",get_allocationSuccessful:"get_allocationSuccessful"},_new:function(){return null},add:function(a,b,c){},addCodepoints:function(a,b,c,d,e){},addUTF8:function(a,b,c,d){},addUTF16:function(a,b,c,d,e){},addUTF32:function(a,b,c,d,e){},clearContents:function(a){}, +getGlyphInfo:function(a){return null},getGlyphPositions:function(a){return null},guessSegmentProperties:function(a){},normalizeGlyphs:function(a){},preallocate:function(a,b){return!1},reset:function(a){},reverse:function(a){},reverseClusters:function(a){},get_allocationSuccessful:function(a){return!1},get_clusterLevel:function(a){return 0},set_clusterLevel:function(a,b){return b},get_contentType:function(a){return 0},set_contentType:function(a,b){return b},get_direction:function(a){return 0},set_direction:function(a, +b){return b},get_empty:function(){return null},get_flags:function(a){return 0},set_flags:function(a,b){return b},get_language:function(a){return null},set_language:function(a,b){return b},get_length:function(a){return 0},set_length:function(a,b){return b},get_replacementCodepoint:function(a){return 0},set_replacementCodepoint:function(a,b){return b},get_script:function(a){return 0},set_script:function(a,b){return b},get_segmentProperties:function(a){return null},set_segmentProperties:function(a,b){return b}}, +Ot=function(){};k["lime.text.harfbuzz.HBFeature"]=Ot;Ot.__name__="lime.text.harfbuzz.HBFeature";Ot.prototype={__class__:Ot};var Pt=function(){};k["lime.text.harfbuzz.HBGlyphInfo"]=Pt;Pt.__name__="lime.text.harfbuzz.HBGlyphInfo";Pt.prototype={codepoint:null,mask:null,cluster:null,__class__:Pt};var Qt=function(){};k["lime.text.harfbuzz.HBGlyphPosition"]=Qt;Qt.__name__="lime.text.harfbuzz.HBGlyphPosition";Qt.prototype={xAdvance:null,xOffset:null,yAdvance:null,yOffset:null,__class__:Qt};var Bu={_new:function(a){return null}, +toString:function(a){return null},fromString:function(a){return Bu._new(a)}},Rt=function(){};k["lime.text.harfbuzz.HBSegmentProperties"]=Rt;Rt.__name__="lime.text.harfbuzz.HBSegmentProperties";Rt.prototype={__class__:Rt};var Dd=function(a){this.onDisconnect=new Fd;this.onButtonUp=new sm;this.onButtonDown=new sm;this.onAxisMove=new Lo;this.id=a;this.connected=!0};k["lime.ui.Gamepad"]=Dd;Dd.__name__="lime.ui.Gamepad";Dd.addMappings=function(a){};Dd.__connect=function(a){if(!Dd.devices.h.hasOwnProperty(a)){var b= +new Dd(a);Dd.devices.h[a]=b;Dd.onConnect.dispatch(b)}};Dd.__disconnect=function(a){var b=Dd.devices.h[a];null!=b&&(b.connected=!1);Dd.devices.remove(a);null!=b&&b.onDisconnect.dispatch()};Dd.prototype={connected:null,id:null,onAxisMove:null,onButtonDown:null,onButtonUp:null,onDisconnect:null,get_guid:function(){return Tc.__getDeviceData()[this.id].id},get_name:function(){return Tc.__getDeviceData()[this.id].id},__class__:Dd,__properties__:{get_name:"get_name",get_guid:"get_guid"}};var Tc=function(a){this.onTrackballMove= +new Ho;this.onHatMove=new Jo;this.onDisconnect=new Fd;this.onButtonUp=new Wh;this.onButtonDown=new Wh;this.onAxisMove=new Io;this.id=a;this.connected=!0};k["lime.ui.Joystick"]=Tc;Tc.__name__="lime.ui.Joystick";Tc.__connect=function(a){if(!Tc.devices.h.hasOwnProperty(a)){var b=new Tc(a);Tc.devices.h[a]=b;Tc.onConnect.dispatch(b)}};Tc.__disconnect=function(a){var b=Tc.devices.h[a];null!=b&&(b.connected=!1);Tc.devices.remove(a);null!=b&&b.onDisconnect.dispatch()};Tc.__getDeviceData=function(){return navigator.getGamepads? +navigator.getGamepads():navigator.webkitGetGamepads?navigator.webkitGetGamepads():null};Tc.prototype={connected:null,id:null,onAxisMove:null,onButtonDown:null,onButtonUp:null,onDisconnect:null,onHatMove:null,onTrackballMove:null,get_guid:function(){return Tc.__getDeviceData()[this.id].id},get_name:function(){return Tc.__getDeviceData()[this.id].id},get_numAxes:function(){return Tc.__getDeviceData()[this.id].axes.length},get_numButtons:function(){return Tc.__getDeviceData()[this.id].buttons.length}, +get_numHats:function(){return 0},get_numTrackballs:function(){return 0},__class__:Tc,__properties__:{get_numTrackballs:"get_numTrackballs",get_numHats:"get_numHats",get_numButtons:"get_numButtons",get_numAxes:"get_numAxes",get_name:"get_name",get_guid:"get_guid"}};var xb={__properties__:{set_shiftKey:"set_shiftKey",get_shiftKey:"get_shiftKey",set_numLock:"set_numLock",get_numLock:"get_numLock",set_metaKey:"set_metaKey",get_metaKey:"get_metaKey",set_ctrlKey:"set_ctrlKey",get_ctrlKey:"get_ctrlKey", +set_capsLock:"set_capsLock",get_capsLock:"get_capsLock",set_altKey:"set_altKey",get_altKey:"get_altKey"},get_altKey:function(a){return 0>=(a&256)?0<(a&512):!0},set_altKey:function(a,b){return b},get_capsLock:function(a){return 0>=(a&8192)?0<(a&8192):!0},set_capsLock:function(a,b){return b},get_ctrlKey:function(a){return 0>=(a&64)?0<(a&128):!0},set_ctrlKey:function(a,b){return b},get_metaKey:function(a){return 0>=(a&1024)?0<(a&2048):!0},set_metaKey:function(a,b){return b},get_numLock:function(a){return 0>= +(a&4096)?0<(a&4096):!0},set_numLock:function(a,b){return b},get_shiftKey:function(a){return 0>=(a&1)?0<(a&2):!0},set_shiftKey:function(a,b){return b}},jc=E["lime.ui.MouseCursor"]={__ename__:"lime.ui.MouseCursor",__constructs__:null,ARROW:{_hx_name:"ARROW",_hx_index:0,__enum__:"lime.ui.MouseCursor",toString:v},CROSSHAIR:{_hx_name:"CROSSHAIR",_hx_index:1,__enum__:"lime.ui.MouseCursor",toString:v},DEFAULT:{_hx_name:"DEFAULT",_hx_index:2,__enum__:"lime.ui.MouseCursor",toString:v},MOVE:{_hx_name:"MOVE", +_hx_index:3,__enum__:"lime.ui.MouseCursor",toString:v},POINTER:{_hx_name:"POINTER",_hx_index:4,__enum__:"lime.ui.MouseCursor",toString:v},RESIZE_NESW:{_hx_name:"RESIZE_NESW",_hx_index:5,__enum__:"lime.ui.MouseCursor",toString:v},RESIZE_NS:{_hx_name:"RESIZE_NS",_hx_index:6,__enum__:"lime.ui.MouseCursor",toString:v},RESIZE_NWSE:{_hx_name:"RESIZE_NWSE",_hx_index:7,__enum__:"lime.ui.MouseCursor",toString:v},RESIZE_WE:{_hx_name:"RESIZE_WE",_hx_index:8,__enum__:"lime.ui.MouseCursor",toString:v},TEXT:{_hx_name:"TEXT", +_hx_index:9,__enum__:"lime.ui.MouseCursor",toString:v},WAIT:{_hx_name:"WAIT",_hx_index:10,__enum__:"lime.ui.MouseCursor",toString:v},WAIT_ARROW:{_hx_name:"WAIT_ARROW",_hx_index:11,__enum__:"lime.ui.MouseCursor",toString:v},CUSTOM:{_hx_name:"CUSTOM",_hx_index:12,__enum__:"lime.ui.MouseCursor",toString:v}};jc.__constructs__=[jc.ARROW,jc.CROSSHAIR,jc.DEFAULT,jc.MOVE,jc.POINTER,jc.RESIZE_NESW,jc.RESIZE_NS,jc.RESIZE_NWSE,jc.RESIZE_WE,jc.TEXT,jc.WAIT,jc.WAIT_ARROW,jc.CUSTOM];var wh=E["lime.ui.MouseWheelMode"]= +{__ename__:"lime.ui.MouseWheelMode",__constructs__:null,PIXELS:{_hx_name:"PIXELS",_hx_index:0,__enum__:"lime.ui.MouseWheelMode",toString:v},LINES:{_hx_name:"LINES",_hx_index:1,__enum__:"lime.ui.MouseWheelMode",toString:v},PAGES:{_hx_name:"PAGES",_hx_index:2,__enum__:"lime.ui.MouseWheelMode",toString:v},UNKNOWN:{_hx_name:"UNKNOWN",_hx_index:3,__enum__:"lime.ui.MouseWheelMode",toString:v}};wh.__constructs__=[wh.PIXELS,wh.LINES,wh.PAGES,wh.UNKNOWN];var gd=function(a,b,c,d,e,g,f){this.x=a;this.y=b;this.id= +c;this.dx=d;this.dy=e;this.pressure=g;this.device=f};k["lime.ui.Touch"]=gd;gd.__name__="lime.ui.Touch";gd.prototype={device:null,dx:null,dy:null,id:null,pressure:null,x:null,y:null,__class__:gd};var Ki=function(a,b){this.onTextInput=new qm;this.onTextEdit=new Ko;this.onRestore=new Fd;this.onResize=new pm;this.onRenderContextRestored=new rm;this.onRenderContextLost=new Fd;this.onRender=new rm;this.onMove=new Rj;this.onMouseWheel=new Go;this.onMouseUp=new Eo;this.onMouseMoveRelative=new Rj;this.onMouseMove= +new Rj;this.onMouseDown=new Fo;this.onMinimize=new Fd;this.onMaximize=new Fd;this.onLeave=new Fd;this.onKeyUp=new tm;this.onKeyDown=new tm;this.onFullscreen=new Fd;this.onFocusOut=new Fd;this.onFocusIn=new Fd;this.onExpose=new Fd;this.onEnter=new Fd;this.onDropFile=new qm;this.onDeactivate=new Fd;this.onClose=new Fd;this.onActivate=new Fd;this.application=a;this.__attributes=null!=b?b:{};Object.prototype.hasOwnProperty.call(this.__attributes,"parameters")&&(this.parameters=this.__attributes.parameters); +this.__height=this.__width=0;this.__fullscreen=!1;this.__scale=1;this.__y=this.__x=0;this.__title="";this.id=-1;this.__backend=new nb(this)};k["lime.ui.Window"]=Ki;Ki.__name__="lime.ui.Window";Ki.prototype={application:null,context:null,display:null,element:null,hidden:null,id:null,onActivate:null,onClose:null,onDeactivate:null,onDropFile:null,onEnter:null,onExpose:null,onFocusIn:null,onFocusOut:null,onFullscreen:null,onKeyDown:null,onKeyUp:null,onLeave:null,onMaximize:null,onMinimize:null,onMouseDown:null, +onMouseMove:null,onMouseMoveRelative:null,onMouseUp:null,onMouseWheel:null,onMove:null,onRender:null,onRenderContextLost:null,onRenderContextRestored:null,onResize:null,onRestore:null,onTextEdit:null,onTextInput:null,parameters:null,scale:null,stage:null,__attributes:null,__backend:null,__borderless:null,__fullscreen:null,__height:null,__hidden:null,__maximized:null,__minimized:null,__resizable:null,__scale:null,__title:null,__width:null,__x:null,__y:null,alert:function(a,b){this.__backend.alert(a, +b)},close:function(){this.__backend.close()},focus:function(){this.__backend.focus()},move:function(a,b){this.__backend.move(a,b);this.__x=a;this.__y=b},readPixels:function(a){return this.__backend.readPixels(a)},resize:function(a,b){this.__backend.resize(a,b);this.__width=a;this.__height=b},setIcon:function(a){null!=a&&this.__backend.setIcon(a)},toString:function(){return"[object Window]"},warpMouse:function(a,b){this.__backend.warpMouse(a,b)},get_cursor:function(){return this.__backend.getCursor()}, +set_cursor:function(a){return this.__backend.setCursor(a)},get_display:function(){return this.__backend.getDisplay()},get_displayMode:function(){return this.__backend.getDisplayMode()},set_displayMode:function(a){return this.__backend.setDisplayMode(a)},get_borderless:function(){return this.__borderless},set_borderless:function(a){return this.__borderless=this.__backend.setBorderless(a)},get_frameRate:function(){return this.__backend.getFrameRate()},set_frameRate:function(a){return this.__backend.setFrameRate(a)}, +get_fullscreen:function(){return this.__fullscreen},set_fullscreen:function(a){return this.__fullscreen=this.__backend.setFullscreen(a)},get_height:function(){return this.__height},set_height:function(a){this.resize(this.__width,a);return this.__height},get_hidden:function(){return this.__hidden},get_maximized:function(){return this.__maximized},set_maximized:function(a){this.__minimized=!1;return this.__maximized=this.__backend.setMaximized(a)},get_minimized:function(){return this.__minimized},set_minimized:function(a){this.__maximized= +!1;return this.__minimized=this.__backend.setMinimized(a)},get_mouseLock:function(){return this.__backend.getMouseLock()},set_mouseLock:function(a){this.__backend.setMouseLock(a);return a},get_resizable:function(){return this.__resizable},set_resizable:function(a){return this.__resizable=this.__backend.setResizable(a)},get_scale:function(){return this.__scale},get_textInputEnabled:function(){return this.__backend.getTextInputEnabled()},set_textInputEnabled:function(a){return this.__backend.setTextInputEnabled(a)}, +setTextInputRect:function(a){return this.__backend.setTextInputRect(a)},get_title:function(){return this.__title},set_title:function(a){return this.__title=this.__backend.setTitle(a)},get_width:function(){return this.__width},set_width:function(a){this.resize(a,this.__height);return this.__width},get_x:function(){return this.__x},set_x:function(a){this.move(a,this.__y);return this.__x},get_y:function(){return this.__y},set_y:function(a){this.move(this.__x,a);return this.__y},__class__:Ki,__properties__:{set_y:"set_y", +get_y:"get_y",set_x:"set_x",get_x:"get_x",set_width:"set_width",get_width:"get_width",set_title:"set_title",get_title:"get_title",set_textInputEnabled:"set_textInputEnabled",get_textInputEnabled:"get_textInputEnabled",get_scale:"get_scale",set_resizable:"set_resizable",get_resizable:"get_resizable",set_mouseLock:"set_mouseLock",get_mouseLock:"get_mouseLock",set_minimized:"set_minimized",get_minimized:"get_minimized",set_maximized:"set_maximized",get_maximized:"get_maximized",get_hidden:"get_hidden", +set_height:"set_height",get_height:"get_height",set_fullscreen:"set_fullscreen",get_fullscreen:"get_fullscreen",set_frameRate:"set_frameRate",get_frameRate:"get_frameRate",set_displayMode:"set_displayMode",get_displayMode:"get_displayMode",get_display:"get_display",set_cursor:"set_cursor",get_cursor:"get_cursor",set_borderless:"set_borderless",get_borderless:"get_borderless"}};var Cu=E["lime.utils.TAError"]={__ename__:"lime.utils.TAError",__constructs__:null,RangeError:{_hx_name:"RangeError",_hx_index:0, +__enum__:"lime.utils.TAError",toString:v}};Cu.__constructs__=[Cu.RangeError];var Sf=function(){this.data=new V;this.paths=[]};k["lime.utils.AssetBundle"]=Sf;Sf.__name__="lime.utils.AssetBundle";Sf.fromBytes=function(a){a=new im(a);return Sf.__extractBundle(a)};Sf.fromFile=function(a){return null};Sf.loadFromBytes=function(a){return eb.withValue(Sf.fromBytes(a))};Sf.loadFromFile=function(a){return hc.loadFromFile(a).then(Sf.loadFromBytes)};Sf.__extractBundle=function(a){var b=Nj.readZip(a);a=new Sf; +for(b=b.h;null!=b;){var c=b.item;b=b.next;if(c.compressed){var d=a.data,e=c.fileName,g=hc.decompress(c.data,Xd.DEFLATE);d.h[e]=g}else a.data.h[c.fileName]=c.data;a.paths.push(c.fileName)}return a};Sf.prototype={data:null,paths:null,__class__:Sf};var Xo=function(){this.enabled=!0;this.audio=new V;this.font=new V;this.image=new V;this.version=0};k["lime.utils.AssetCache"]=Xo;Xo.__name__="lime.utils.AssetCache";Xo.prototype={audio:null,enabled:null,image:null,font:null,version:null,exists:function(a, +b){return("IMAGE"==b||null==b)&&Object.prototype.hasOwnProperty.call(this.image.h,a)||("FONT"==b||null==b)&&Object.prototype.hasOwnProperty.call(this.font.h,a)||("SOUND"==b||"MUSIC"==b||null==b)&&Object.prototype.hasOwnProperty.call(this.audio.h,a)?!0:!1},set:function(a,b,c){switch(b){case "FONT":this.font.h[a]=c;break;case "IMAGE":if(!(c instanceof Db))throw R.thrown("Cannot cache non-Image asset: "+n.string(c)+" as Image");this.image.h[a]=c;break;case "MUSIC":case "SOUND":if(!(c instanceof Lc))throw R.thrown("Cannot cache non-AudioBuffer asset: "+ +n.string(c)+" as AudioBuffer");this.audio.h[a]=c;break;default:throw R.thrown(b+" assets are not cachable");}},clear:function(a){if(null==a)this.audio=new V,this.font=new V,this.image=new V;else{var b=this.audio.h;b=Object.keys(b);for(var c=b.length,d=0;d<c;){var e=b[d++];if(J.startsWith(e,a)){var g=this.audio;Object.prototype.hasOwnProperty.call(g.h,e)&&delete g.h[e]}}b=this.font.h;b=Object.keys(b);c=b.length;for(d=0;d<c;)e=b[d++],J.startsWith(e,a)&&(g=this.font,Object.prototype.hasOwnProperty.call(g.h, +e)&&delete g.h[e]);b=this.image.h;b=Object.keys(b);c=b.length;for(d=0;d<c;)e=b[d++],J.startsWith(e,a)&&(g=this.image,Object.prototype.hasOwnProperty.call(g.h,e)&&delete g.h[e])}},__class__:Xo};var vb=function(){this.types=new V;this.sizes=new V;this.preload=new V;this.paths=new V;this.pathGroups=new V;this.classTypes=new V;this.cachedText=new V;this.cachedImages=new V;this.cachedFonts=new V;this.cachedBytes=new V;this.cachedAudioBuffers=new V;this.onChange=new Fd;this.bytesTotal=this.bytesLoaded= +0};k["lime.utils.AssetLibrary"]=vb;vb.__name__="lime.utils.AssetLibrary";vb.fromBytes=function(a,b){return vb.fromManifest(Fc.fromBytes(a,b))};vb.fromFile=function(a,b){return vb.fromManifest(Fc.fromFile(a,b))};vb.fromBundle=function(a){if(Object.prototype.hasOwnProperty.call(a.data.h,"library.json")){var b=Fc.fromBytes(a.data.h["library.json"]);if(null!=b){if(null==b.libraryType)var c=new vb;else if(c=k[b.libraryType],null!=c)c=Za.createInstance(c,b.libraryArgs);else return Ga.warn("Could not find library type: "+ +b.libraryType,{fileName:"lime/utils/AssetLibrary.hx",lineNumber:122,className:"lime.utils.AssetLibrary",methodName:"fromBundle"}),null;c.__fromBundle(a,b);return c}}else return c=new vb,c.__fromBundle(a),c;return null};vb.fromManifest=function(a){if(null==a)return null;if(null==a.libraryType)var b=new vb;else if(b=k[a.libraryType],null!=b)b=Za.createInstance(b,a.libraryArgs);else return Ga.warn("Could not find library type: "+a.libraryType,{fileName:"lime/utils/AssetLibrary.hx",lineNumber:160,className:"lime.utils.AssetLibrary", +methodName:"fromManifest"}),null;b.__fromManifest(a);return b};vb.loadFromBytes=function(a,b){return Fc.loadFromBytes(a,b).then(function(a){return vb.loadFromManifest(a)})};vb.loadFromFile=function(a,b){return Fc.loadFromFile(a,b).then(function(a){return vb.loadFromManifest(a)})};vb.loadFromManifest=function(a){a=vb.fromManifest(a);return null!=a?a.load():eb.withError("Could not load asset manifest")};vb.prototype={onChange:null,assetsLoaded:null,assetsTotal:null,bytesLoaded:null,bytesLoadedCache:null, +bytesTotal:null,cachedAudioBuffers:null,cachedBytes:null,cachedFonts:null,cachedImages:null,cachedText:null,classTypes:null,loaded:null,pathGroups:null,paths:null,preload:null,promise:null,sizes:null,types:null,exists:function(a,b){b=null!=b?O.__cast(b,String):null;a=this.types.h[a];return null==a||a!=b&&("SOUND"!=b&&"MUSIC"!=b||"MUSIC"!=a&&"SOUND"!=a)&&"BINARY"!=b&&null!=b&&("BINARY"!=a||"TEXT"!=b)?!1:!0},getAsset:function(a,b){switch(b){case "BINARY":return this.getBytes(a);case "FONT":return this.getFont(a); +case "IMAGE":return this.getImage(a);case "MUSIC":case "SOUND":return this.getAudioBuffer(a);case "TEMPLATE":throw R.thrown("Not sure how to get template: "+a);case "TEXT":return this.getText(a);default:throw R.thrown("Unknown asset type: "+b);}},getAudioBuffer:function(a){return Object.prototype.hasOwnProperty.call(this.cachedAudioBuffers.h,a)?this.cachedAudioBuffers.h[a]:Object.prototype.hasOwnProperty.call(this.classTypes.h,a)?Lc.fromBytes(O.__cast(Za.createInstance(this.classTypes.h[a],[]),cb)): +Lc.fromFile(this.paths.h[a])},getBytes:function(a){if(Object.prototype.hasOwnProperty.call(this.cachedBytes.h,a))return this.cachedBytes.h[a];if(Object.prototype.hasOwnProperty.call(this.cachedText.h,a)){var b=hc.ofString(this.cachedText.h[a]);return this.cachedBytes.h[a]=b}return Object.prototype.hasOwnProperty.call(this.classTypes.h,a)?O.__cast(Za.createInstance(this.classTypes.h[a],[]),cb):hc.fromFile(this.paths.h[a])},getFont:function(a){return Object.prototype.hasOwnProperty.call(this.cachedFonts.h, +a)?this.cachedFonts.h[a]:Object.prototype.hasOwnProperty.call(this.classTypes.h,a)?O.__cast(Za.createInstance(this.classTypes.h[a],[]),Gd):Gd.fromFile(this.paths.h[a])},getImage:function(a){return Object.prototype.hasOwnProperty.call(this.cachedImages.h,a)?this.cachedImages.h[a]:Object.prototype.hasOwnProperty.call(this.classTypes.h,a)?O.__cast(Za.createInstance(this.classTypes.h[a],[]),Db):Db.fromFile(this.paths.h[a])},getPath:function(a){return Object.prototype.hasOwnProperty.call(this.paths.h, +a)?this.paths.h[a]:Object.prototype.hasOwnProperty.call(this.pathGroups.h,a)?this.pathGroups.h[a][0]:null},getText:function(a){if(Object.prototype.hasOwnProperty.call(this.cachedText.h,a))return this.cachedText.h[a];a=this.getBytes(a);return null==a?null:a.getString(0,a.length)},isLocal:function(a,b){if(Object.prototype.hasOwnProperty.call(this.classTypes.h,a))return!0;b=O.__cast(b,String);if(null==b)return Object.prototype.hasOwnProperty.call(this.cachedBytes.h,a)||Object.prototype.hasOwnProperty.call(this.cachedText.h, +a)||Object.prototype.hasOwnProperty.call(this.cachedImages.h,a)||Object.prototype.hasOwnProperty.call(this.cachedAudioBuffers.h,a)?!0:Object.prototype.hasOwnProperty.call(this.cachedFonts.h,a);switch(b){case "FONT":return Object.prototype.hasOwnProperty.call(this.cachedFonts.h,a);case "IMAGE":return Object.prototype.hasOwnProperty.call(this.cachedImages.h,a);case "MUSIC":case "SOUND":return Object.prototype.hasOwnProperty.call(this.cachedAudioBuffers.h,a);default:return Object.prototype.hasOwnProperty.call(this.cachedBytes.h, +a)?!0:Object.prototype.hasOwnProperty.call(this.cachedText.h,a)}},list:function(a){for(var b=null!=a?O.__cast(a,String):null,c=[],d=Object.keys(this.types.h),e=d.length,g=0;g<e;){var f=d[g++];(null==b||this.exists(f,a))&&c.push(f)}return c},loadAsset:function(a,b){switch(b){case "BINARY":return this.loadBytes(a);case "FONT":return this.loadFont(a);case "IMAGE":return this.loadImage(a);case "MUSIC":case "SOUND":return this.loadAudioBuffer(a);case "TEMPLATE":throw R.thrown("Not sure how to load template: "+ +a);case "TEXT":return this.loadText(a);default:throw R.thrown("Unknown asset type: "+b);}},load:function(){if(this.loaded)return eb.withValue(this);if(null==this.promise){this.promise=new Wd;this.bytesLoadedCache=new V;this.assetsLoaded=0;this.assetsTotal=1;for(var a=Object.keys(this.preload.h),b=a.length,c=0;c<b;){var d=a[c++];if(this.preload.h[d]){Ga.verbose("Preloading asset: "+d+" ["+this.types.h[d]+"]",{fileName:"lime/utils/AssetLibrary.hx",lineNumber:408,className:"lime.utils.AssetLibrary", +methodName:"load"});var e=this.types.h[d];if(null!=e)switch(e){case "BINARY":this.assetsTotal++;e=this.loadBytes(d);e.onProgress(function(a,b){return function(c,d){b[0](a[0],c,d)}}([d],[q(this,this.load_onProgress)]));e.onError(function(a,b){return function(c){b[0](a[0],c)}}([d],[q(this,this.load_onError)]));e.onComplete(function(a,b){return function(c){b[0](a[0],c)}}([d],[q(this,this.loadBytes_onComplete)]));break;case "FONT":this.assetsTotal++;e=this.loadFont(d);e.onProgress(function(a,b){return function(c, +d){b[0](a[0],c,d)}}([d],[q(this,this.load_onProgress)]));e.onError(function(a,b){return function(c){b[0](a[0],c)}}([d],[q(this,this.load_onError)]));e.onComplete(function(a,b){return function(c){b[0](a[0],c)}}([d],[q(this,this.loadFont_onComplete)]));break;case "IMAGE":this.assetsTotal++;e=this.loadImage(d);e.onProgress(function(a,b){return function(c,d){b[0](a[0],c,d)}}([d],[q(this,this.load_onProgress)]));e.onError(function(a,b){return function(c){b[0](a[0],c)}}([d],[q(this,this.load_onError)])); +e.onComplete(function(a,b){return function(c){b[0](a[0],c)}}([d],[q(this,this.loadImage_onComplete)]));break;case "MUSIC":case "SOUND":this.assetsTotal++;e=this.loadAudioBuffer(d);e.onProgress(function(a,b){return function(c,d){b[0](a[0],c,d)}}([d],[q(this,this.load_onProgress)]));e.onError(function(a,b){return function(c){b[0](a[0],c)}}([d],[q(this,this.loadAudioBuffer_onError)]));e.onComplete(function(a,b){return function(c){b[0](a[0],c)}}([d],[q(this,this.loadAudioBuffer_onComplete)]));break;case "TEXT":this.assetsTotal++, +e=this.loadText(d),e.onProgress(function(a,b){return function(c,d){b[0](a[0],c,d)}}([d],[q(this,this.load_onProgress)])),e.onError(function(a,b){return function(c){b[0](a[0],c)}}([d],[q(this,this.load_onError)])),e.onComplete(function(a,b){return function(c){b[0](a[0],c)}}([d],[q(this,this.loadText_onComplete)]))}}}this.__assetLoaded(null)}return this.promise.future},loadAudioBuffer:function(a){return Object.prototype.hasOwnProperty.call(this.cachedAudioBuffers.h,a)?eb.withValue(this.cachedAudioBuffers.h[a]): +Object.prototype.hasOwnProperty.call(this.classTypes.h,a)?eb.withValue(Lc.fromBytes(O.__cast(Za.createInstance(this.classTypes.h[a],[]),cb))):Object.prototype.hasOwnProperty.call(this.pathGroups.h,a)?Lc.loadFromFiles(this.pathGroups.h[a]):Lc.loadFromFile(this.paths.h[a])},loadBytes:function(a){return Object.prototype.hasOwnProperty.call(this.cachedBytes.h,a)?eb.withValue(this.cachedBytes.h[a]):Object.prototype.hasOwnProperty.call(this.classTypes.h,a)?eb.withValue(Za.createInstance(this.classTypes.h[a], +[])):hc.loadFromFile(this.paths.h[a])},loadFont:function(a){return Object.prototype.hasOwnProperty.call(this.cachedFonts.h,a)?eb.withValue(this.cachedFonts.h[a]):Object.prototype.hasOwnProperty.call(this.classTypes.h,a)?(a=Za.createInstance(this.classTypes.h[a],[]),a.__loadFromName(a.name)):Gd.loadFromName(this.paths.h[a])},loadImage:function(a){var b=this;return Object.prototype.hasOwnProperty.call(this.cachedImages.h,a)?eb.withValue(this.cachedImages.h[a]):Object.prototype.hasOwnProperty.call(this.classTypes.h, +a)?eb.withValue(Za.createInstance(this.classTypes.h[a],[])):Object.prototype.hasOwnProperty.call(this.cachedBytes.h,a)?Db.loadFromBytes(this.cachedBytes.h[a]).then(function(c){var d=b.cachedBytes;Object.prototype.hasOwnProperty.call(d.h,a)&&delete d.h[a];b.cachedImages.h[a]=c;return eb.withValue(c)}):Db.loadFromFile(this.paths.h[a])},loadText:function(a){if(Object.prototype.hasOwnProperty.call(this.cachedText.h,a))return eb.withValue(this.cachedText.h[a]);if(Object.prototype.hasOwnProperty.call(this.cachedBytes.h, +a)||Object.prototype.hasOwnProperty.call(this.classTypes.h,a)){var b=this.getBytes(a);if(null==b)return eb.withValue(null);b=b.getString(0,b.length);this.cachedText.h[a]=b;return eb.withValue(b)}return(new Tj).load(this.paths.h[a])},unload:function(){},__assetLoaded:function(a){this.assetsLoaded++;null!=a&&Ga.verbose("Loaded asset: "+a+" ["+this.types.h[a]+"] ("+(this.assetsLoaded-1)+"/"+(this.assetsTotal-1)+")",{fileName:"lime/utils/AssetLibrary.hx",lineNumber:622,className:"lime.utils.AssetLibrary", +methodName:"__assetLoaded"});if(null!=a){var b=Object.prototype.hasOwnProperty.call(this.sizes.h,a)?this.sizes.h[a]:0;if(Object.prototype.hasOwnProperty.call(this.bytesLoadedCache.h,a)){var c=this.bytesLoadedCache.h[a];c<b&&(this.bytesLoaded+=b-c)}else this.bytesLoaded+=b;this.bytesLoadedCache.h[a]=b}this.assetsLoaded<this.assetsTotal?this.promise.progress(this.bytesLoaded,this.bytesTotal):(this.loaded=!0,this.promise.progress(this.bytesTotal,this.bytesTotal),this.promise.complete(this))},__cacheBreak:function(a){return wa.__cacheBreak(a)}, +__fromBundle:function(a,b){if(null!=b){var c=0;for(b=b.assets;c<b.length;){var d=b[c];++c;var e=Object.prototype.hasOwnProperty.call(d,"id")?d.id:d.path;var g=a.data.h[d.path];if(Object.prototype.hasOwnProperty.call(d,"type")){var f=d.type;"TEXT"==f?this.cachedText.h[e]=null!=g?n.string(g):null:this.cachedBytes.h[e]=g;this.types.h[e]=d.type}else this.cachedBytes.h[e]=g,this.types.h[e]="BINARY"}}else for(c=0,b=a.paths;c<b.length;)e=b[c],++c,this.cachedBytes.h[e]=a.data.h[e],this.types.h[e]="BINARY"}, +__fromManifest:function(a){var b=2<=a.version,c=a.rootPath;null==c&&(c="");""!=c&&(c+="/");for(var d=0,e=a.assets;d<e.length;){var g=e[d];++d;var f=b&&Object.prototype.hasOwnProperty.call(g,"size")?g.size:100;var l=Object.prototype.hasOwnProperty.call(g,"id")?g.id:g.path;if(Object.prototype.hasOwnProperty.call(g,"path")){var t=this.paths;var m=this.__cacheBreak(this.__resolvePath(c+n.string(W.field(g,"path"))));t.h[l]=m}if(Object.prototype.hasOwnProperty.call(g,"pathGroup")){t=W.field(g,"pathGroup"); +m=0;for(var h=t.length;m<h;){var p=m++;t[p]=this.__cacheBreak(this.__resolvePath(c+t[p]))}this.pathGroups.h[l]=t}this.sizes.h[l]=f;this.types.h[l]=g.type;Object.prototype.hasOwnProperty.call(g,"preload")&&(this.preload.h[l]=W.field(g,"preload"));Object.prototype.hasOwnProperty.call(g,"className")&&(f=W.field(g,"className"),f=k[f],this.classTypes.h[l]=f)}d=this.bytesTotal=0;for(e=a.assets;d<e.length;)g=e[d],++d,l=Object.prototype.hasOwnProperty.call(g,"id")?g.id:g.path,Object.prototype.hasOwnProperty.call(this.preload.h, +l)&&this.preload.h[l]&&Object.prototype.hasOwnProperty.call(this.sizes.h,l)&&(this.bytesTotal+=this.sizes.h[l])},__resolvePath:function(a){a=J.replace(a,"\\","/");var b=a.indexOf(":");J.startsWith(a,"http")&&0<b?(b+=3,a=F.substr(a,0,b)+J.replace(F.substr(a,b,null),"//","/")):a=J.replace(a,"//","/");if(-1<a.indexOf("./")){a=a.split("/");b=[];for(var c=0,d=a.length;c<d;){var e=c++;".."==a[e]?0==e||".."==b[e-1]?b.push(".."):b.pop():"."==a[e]?0==e&&b.push("."):b.push(a[e])}a=b.join("/")}return a},loadAudioBuffer_onComplete:function(a, +b){this.cachedAudioBuffers.h[a]=b;if(Object.prototype.hasOwnProperty.call(this.pathGroups.h,a))for(var c=this.pathGroups.h[a],d=Object.keys(this.pathGroups.h),e=d.length,g=0;g<e;){var f=d[g++];if(f!=a)for(var l=0;l<c.length;){var t=c[l];++l;if(-1<this.pathGroups.h[f].indexOf(t)){this.cachedAudioBuffers.h[f]=b;break}}}this.__assetLoaded(a)},loadAudioBuffer_onError:function(a,b){null!=b&&""!=b?Ga.warn('Could not load "'+a+'": '+n.string(b),{fileName:"lime/utils/AssetLibrary.hx",lineNumber:868,className:"lime.utils.AssetLibrary", +methodName:"loadAudioBuffer_onError"}):Ga.warn('Could not load "'+a+'"',{fileName:"lime/utils/AssetLibrary.hx",lineNumber:872,className:"lime.utils.AssetLibrary",methodName:"loadAudioBuffer_onError"});this.loadAudioBuffer_onComplete(a,new Lc)},loadBytes_onComplete:function(a,b){this.cachedBytes.h[a]=b;this.__assetLoaded(a)},loadFont_onComplete:function(a,b){this.cachedFonts.h[a]=b;this.__assetLoaded(a)},loadImage_onComplete:function(a,b){this.cachedImages.h[a]=b;this.__assetLoaded(a)},loadText_onComplete:function(a, +b){this.cachedText.h[a]=b;this.__assetLoaded(a)},load_onError:function(a,b){null!=b&&""!=b?this.promise.error('Error loading asset "'+a+'": '+n.string(b)):this.promise.error('Error loading asset "'+a+'"')},load_onProgress:function(a,b,c){if(0<b){var d=this.sizes.h[a];0<c?(b/=c,1<b&&(b=1),b=Math.floor(b*d)):b>d&&(b=d);Object.prototype.hasOwnProperty.call(this.bytesLoadedCache.h,a)?(d=this.bytesLoadedCache.h[a],b!=d&&(this.bytesLoaded+=b-d)):this.bytesLoaded+=b;this.bytesLoadedCache.h[a]=b;this.promise.progress(this.bytesLoaded, +this.bytesTotal)}},__class__:vb};var Fc=function(){this.assets=[];this.libraryArgs=[];this.version=2};k["lime.utils.AssetManifest"]=Fc;Fc.__name__="lime.utils.AssetManifest";Fc.fromBytes=function(a,b){return null!=a?Fc.parse(a.getString(0,a.length),b):null};Fc.fromFile=function(a,b){a=Fc.__resolvePath(a);b=Fc.__resolveRootPath(b,a);return null==a?null:Fc.fromBytes(hc.fromFile(a),b)};Fc.loadFromBytes=function(a,b){return eb.withValue(Fc.fromBytes(a,b))};Fc.loadFromFile=function(a,b){a=Fc.__resolvePath(a); +b=Fc.__resolveRootPath(b,a);return null==a?null:hc.loadFromFile(a).then(function(a){return eb.withValue(Fc.fromBytes(a,b))})};Fc.parse=function(a,b){if(null==a||""==a)return null;a=JSON.parse(a);var c=new Fc;Object.prototype.hasOwnProperty.call(a,"name")&&(c.name=a.name);Object.prototype.hasOwnProperty.call(a,"libraryType")&&(c.libraryType=a.libraryType);Object.prototype.hasOwnProperty.call(a,"libraryArgs")&&(c.libraryArgs=a.libraryArgs);if(Object.prototype.hasOwnProperty.call(a,"assets")){var d= +a.assets;Object.prototype.hasOwnProperty.call(a,"version")&&2>=a.version?c.assets=Ge.run(d):c.assets=d}Object.prototype.hasOwnProperty.call(a,"rootPath")&&(c.rootPath=a.rootPath);null!=b&&""!=b&&(c.rootPath=null==c.rootPath||""==c.rootPath?b:b+"/"+c.rootPath);return c};Fc.__resolvePath=function(a){if(null==a)return null;var b=a.indexOf("?");var c=-1<b?F.substr(a,0,b):a;for(c=J.replace(c,"\\","/");J.endsWith(c,"/");)c=F.substr(c,0,c.length-1);return J.endsWith(c,".bundle")?-1<b?c+"/library.json"+F.substr(a, +b,null):c+"/library.json":a};Fc.__resolveRootPath=function(a,b){if(null!=a)return a;a=b.indexOf("?");a=-1<a?F.substr(b,0,a):b;for(a=J.replace(a,"\\","/");J.endsWith(a,"/");){if("/"==a)return a;a=F.substr(a,0,a.length-1)}return J.endsWith(a,".bundle")?a:Ye.directory(a)};Fc.prototype={assets:null,libraryArgs:null,libraryType:null,name:null,rootPath:null,version:null,serialize:function(){var a={};a.version=this.version;a.libraryType=this.libraryType;a.libraryArgs=this.libraryArgs;a.name=this.name;a.assets= +ye.run(this.assets);a.rootPath=this.rootPath;return JSON.stringify(a)},__class__:Fc};var wa=function(){};k["lime.utils.Assets"]=wa;wa.__name__="lime.utils.Assets";wa.exists=function(a,b){null==b&&(b="BINARY");var c=a.indexOf(":"),d=a.substring(0,c);a=a.substring(c+1);d=wa.getLibrary(d);return null!=d?d.exists(a,b):!1};wa.getAsset=function(a,b,c){if(c&&wa.cache.enabled)switch(b){case "BINARY":case "TEXT":c=!1;break;case "FONT":var d=wa.cache.font.h[a];if(null!=d)return d;break;case "IMAGE":d=wa.cache.image.h[a]; +if(wa.isValidImage(d))return d;break;case "MUSIC":case "SOUND":d=wa.cache.audio.h[a];if(wa.isValidAudio(d))return d;break;case "TEMPLATE":throw R.thrown("Not sure how to get template: "+a);default:return null}var e=a.indexOf(":");d=a.substring(0,e);e=a.substring(e+1);var g=wa.getLibrary(d);if(null!=g)if(g.exists(e,b)){if(g.isLocal(e,b))return d=g.getAsset(e,b),c&&wa.cache.enabled&&wa.cache.set(a,b,d),d;Ga.error(b+' asset "'+a+'" exists, but only asynchronously',{fileName:"lime/utils/Assets.hx",lineNumber:133, +className:"lime.utils.Assets",methodName:"getAsset"})}else Ga.error("There is no "+b+' asset with an ID of "'+a+'"',{fileName:"lime/utils/Assets.hx",lineNumber:138,className:"lime.utils.Assets",methodName:"getAsset"});else Ga.error(wa.__libraryNotFound(d),{fileName:"lime/utils/Assets.hx",lineNumber:143,className:"lime.utils.Assets",methodName:"getAsset"});return null};wa.getAudioBuffer=function(a,b){null==b&&(b=!0);return wa.getAsset(a,"SOUND",b)};wa.getBytes=function(a){return wa.getAsset(a,"BINARY", +!1)};wa.getFont=function(a,b){null==b&&(b=!0);return wa.getAsset(a,"FONT",b)};wa.getImage=function(a,b){null==b&&(b=!0);return wa.getAsset(a,"IMAGE",b)};wa.getLibrary=function(a){if(null==a||""==a)a="default";return wa.libraries.h[a]};wa.getPath=function(a){var b=a.indexOf(":"),c=a.substring(0,b);b=a.substring(b+1);var d=wa.getLibrary(c);if(null!=d){if(d.exists(b,null))return d.getPath(b);Ga.error('There is no asset with an ID of "'+a+'"',{fileName:"lime/utils/Assets.hx",lineNumber:224,className:"lime.utils.Assets", +methodName:"getPath"})}else Ga.error(wa.__libraryNotFound(c),{fileName:"lime/utils/Assets.hx",lineNumber:229,className:"lime.utils.Assets",methodName:"getPath"});return null};wa.getText=function(a){return wa.getAsset(a,"TEXT",!1)};wa.hasLibrary=function(a){if(null==a||""==a)a="default";return Object.prototype.hasOwnProperty.call(wa.libraries.h,a)};wa.isLocal=function(a,b,c){null==c&&(c=!0);if(c&&wa.cache.enabled&&wa.cache.exists(a,b))return!0;var d=a.indexOf(":");c=a.substring(0,d);a=a.substring(d+ +1);c=wa.getLibrary(c);return null!=c?c.isLocal(a,b):!1};wa.isValidAudio=function(a){return null!=a};wa.isValidImage=function(a){return null!=a?null!=a.buffer:!1};wa.list=function(a){for(var b=[],c=wa.libraries.h,d=Object.keys(c),e=d.length,g=0;g<e;){var f=c[d[g++]].list(a);null!=f&&(b=b.concat(f))}return b};wa.loadAsset=function(a,b,c){if(c&&wa.cache.enabled)switch(b){case "BINARY":case "TEXT":c=!1;break;case "FONT":var d=wa.cache.font.h[a];if(null!=d)return eb.withValue(d);break;case "IMAGE":d=wa.cache.image.h[a]; +if(wa.isValidImage(d))return eb.withValue(d);break;case "MUSIC":case "SOUND":d=wa.cache.audio.h[a];if(wa.isValidAudio(d))return eb.withValue(d);break;case "TEMPLATE":throw R.thrown("Not sure how to get template: "+a);default:return null}var e=a.indexOf(":");d=a.substring(0,e);e=a.substring(e+1);var g=wa.getLibrary(d);if(null!=g){if(g.exists(e,b)){d=g.loadAsset(e,b);if(c&&wa.cache.enabled)d.onComplete(function(c){wa.cache.set(a,b,c)});return d}return eb.withError("There is no "+b+' asset with an ID of "'+ +a+'"')}return eb.withError(wa.__libraryNotFound(d))};wa.loadAudioBuffer=function(a,b){null==b&&(b=!0);return wa.loadAsset(a,"SOUND",b)};wa.loadBytes=function(a){return wa.loadAsset(a,"BINARY",!1)};wa.loadFont=function(a,b){null==b&&(b=!0);return wa.loadAsset(a,"FONT",b)};wa.loadImage=function(a,b){null==b&&(b=!0);return wa.loadAsset(a,"IMAGE",b)};wa.loadLibrary=function(a){var b=new Wd,c=wa.getLibrary(a);if(null!=c)return c.load();c=a;var d=null;if(Object.prototype.hasOwnProperty.call(wa.bundlePaths.h, +a))Sf.loadFromFile(wa.bundlePaths.h[a]).onComplete(function(c){null==c?b.error('Cannot load bundle for library "'+a+'"'):(c=vb.fromBundle(c),null==c?b.error('Cannot open library "'+a+'"'):(wa.libraries.h[a]=c,c.onChange.add((N=wa.onChange,q(N,N.dispatch))),b.completeWith(c.load())))}).onError(function(c){b.error('There is no asset library with an ID of "'+a+'"')});else Object.prototype.hasOwnProperty.call(wa.libraryPaths.h,a)?(c=wa.libraryPaths.h[a],d=Ye.directory(c)):(J.endsWith(c,".bundle")?(d= +c,c+="/library.json"):d=Ye.directory(c),c=wa.__cacheBreak(c)),Fc.loadFromFile(c,d).onComplete(function(c){null==c?b.error('Cannot parse asset manifest for library "'+a+'"'):(c=vb.fromManifest(c),null==c?b.error('Cannot open library "'+a+'"'):(wa.libraries.h[a]=c,c.onChange.add((N=wa.onChange,q(N,N.dispatch))),b.completeWith(c.load())))}).onError(function(c){b.error('There is no asset library with an ID of "'+a+'"')});return b.future};wa.loadText=function(a){return wa.loadAsset(a,"TEXT",!1)};wa.registerLibrary= +function(a,b){if(Object.prototype.hasOwnProperty.call(wa.libraries.h,a)){if(wa.libraries.h[a]==b)return;wa.unloadLibrary(a)}null!=b&&b.onChange.add(wa.library_onChange);wa.libraries.h[a]=b};wa.unloadLibrary=function(a){if(null==a||""==a)a="default";var b=wa.libraries.h[a];null!=b&&(wa.cache.clear(a+":"),b.onChange.remove(wa.library_onChange),b.unload());b=wa.libraries;Object.prototype.hasOwnProperty.call(b.h,a)&&delete b.h[a]};wa.__cacheBreak=function(a){0<wa.cache.version&&(a=-1<a.indexOf("?")?a+ +("&"+wa.cache.version):a+("?"+wa.cache.version));return a};wa.__libraryNotFound=function(a){if(null==a||""==a)a="default";return null==md.current||null==md.current.__preloader||md.current.__preloader.complete?'There is no asset library named "'+a+'"':'There is no asset library named "'+a+'", or it is not yet preloaded'};wa.library_onChange=function(){wa.cache.clear();wa.onChange.dispatch()};var St=function(a){var b=a.indexOf(":");this.libraryName=a.substring(0,b);this.symbolName=a.substring(b+1); +this.library=wa.getLibrary(this.libraryName)};k["lime.utils._Assets.LibrarySymbol"]=St;St.__name__="lime.utils._Assets.LibrarySymbol";St.prototype={library:null,libraryName:null,symbolName:null,isLocal:function(a){return this.library.isLocal(this.symbolName,a)},exists:function(a){return this.library.exists(this.symbolName,a)},__class__:St};var Ku={_new:function(a,b){null==b&&(b=0);return new Tf(a,b)},set:function(a,b,c,d,e){null!=d&&(b=cb.ofData(d));null!=b||null==c?(a.bytes=b,a.offset=null!=e?e: +0):(a.bytes=cb.ofData(c.buffer),a.offset=null!=e?c.byteOffset+e:c.byteOffset)},__arrayGet:function(a,b){return null!=a.bytes?a.bytes.b[b+a.offset]:0},__arraySet:function(a,b,c){null==a.bytes&&(a.bytes.b[b+a.offset]=c&255);return c},fromArrayBufferView:function(a){return null==a?null:new Tf(cb.ofData(a.buffer),a.byteOffset)},fromArrayBuffer:function(a){return null==a?null:new Tf(cb.ofData(a),0)},fromBytes:function(a){return new Tf(a,0)},fromBytesData:function(a){return null==a?new Tf(null,0):new Tf(cb.ofData(a), +0)},fromFile:function(a){return new Tf(hc.fromFile(a),0)},fromLimeBytes:function(a){return new Tf(a,0)},toUInt8Array:function(a){var b=a.bytes.b.bufferValue;a=a.offset/8|0;null==a&&(a=0);return null!=b?new Uint8Array(b,a):null},toUInt8ClampedArray:function(a){if(null==a||null==a.bytes)return null;var b=a.bytes.b.bufferValue;a=a.offset/8|0;null==a&&(a=0);return null!=b?new Uint8ClampedArray(b,a):null},toInt8Array:function(a){if(null==a||null==a.bytes)return null;var b=a.bytes.b.bufferValue;a=a.offset/ +8|0;null==a&&(a=0);return null!=b?new Int8Array(b,a):null},toUInt16Array:function(a){if(null==a||null==a.bytes)return null;var b=a.bytes.b.bufferValue;a=a.offset/16|0;null==a&&(a=0);return null!=b?new Uint16Array(b,a):null},toInt16Array:function(a){if(null==a||null==a.bytes)return null;var b=a.bytes.b.bufferValue;a=a.offset/16|0;null==a&&(a=0);return null!=b?new Int16Array(b,a):null},toUInt32Array:function(a){if(null==a||null==a.bytes)return null;var b=a.bytes.b.bufferValue;a=a.offset/32|0;null== +a&&(a=0);return null!=b?new Uint32Array(b,a):null},toInt32Array:function(a){if(null==a||null==a.bytes)return null;var b=a.bytes.b.bufferValue;a=a.offset/32|0;null==a&&(a=0);return null!=b?new Int32Array(b,a):null},toFloat32Array:function(a){if(null==a||null==a.bytes)return null;var b=a.bytes.b.bufferValue;a=a.offset/32|0;null==a&&(a=0);return null!=b?new Float32Array(b,a):null},toFloat64Array:function(a){if(null==a||null==a.bytes)return null;var b=a.bytes.b.bufferValue;a=a.offset/64|0;null==a&&(a= +0);return null!=b?new Float64Array(b,a):null}},Tf=function(a,b){this.bytes=a;this.offset=b};k["lime.utils.BytePointerData"]=Tf;Tf.__name__="lime.utils.BytePointerData";Tf.prototype={bytes:null,offset:null,__class__:Tf};var hc={_new:function(a,b){return new cb(b)},alloc:function(a){return new cb(new ArrayBuffer(a))},compress:function(a,b){switch(b._hx_index){case 0:return km.compress(a);case 1:return lm.compress(a);case 2:return nm.compress(a);case 3:return om.compress(a)}},decompress:function(a,b){switch(b._hx_index){case 0:return km.decompress(a); +case 1:return lm.decompress(a);case 2:return nm.decompress(a);case 3:return om.decompress(a)}},fastGet:function(a,b){return a.bytes[b]},fromBytes:function(a){return null==a?null:hc._new(a.length,a.b.bufferValue)},fromFile:function(a){return null},loadFromBytes:function(a){return eb.withValue(hc.fromBytes(a))},loadFromFile:function(a){return(new ym).load(a)},ofData:function(a){a=cb.ofData(a);return hc._new(a.length,a.b.bufferValue)},ofString:function(a){a=cb.ofString(a);return hc._new(a.length,a.b.bufferValue)}}, +Xd=E["lime.utils.CompressionAlgorithm"]={__ename__:"lime.utils.CompressionAlgorithm",__constructs__:null,DEFLATE:{_hx_name:"DEFLATE",_hx_index:0,__enum__:"lime.utils.CompressionAlgorithm",toString:v},GZIP:{_hx_name:"GZIP",_hx_index:1,__enum__:"lime.utils.CompressionAlgorithm",toString:v},LZMA:{_hx_name:"LZMA",_hx_index:2,__enum__:"lime.utils.CompressionAlgorithm",toString:v},ZLIB:{_hx_name:"ZLIB",_hx_index:3,__enum__:"lime.utils.CompressionAlgorithm",toString:v}};Xd.__constructs__=[Xd.DEFLATE,Xd.GZIP, +Xd.LZMA,Xd.ZLIB];var lf={_new:function(a){return a},fromFloat:function(a){return a},fromBytesPointer:function(a){return lf.fromFloat(0)},fromArrayBufferView:function(a){return lf.fromFloat(0)},fromArrayBuffer:function(a){return lf.fromFloat(0)},fromBytes:function(a){return lf.fromFloat(0)},fromBytesData:function(a){return lf.fromFloat(0)},fromLimeBytes:function(a){return lf.fromBytes(a)},fromCFFIPointer:function(a){return lf.fromFloat(0)},fromFile:function(a){return lf.fromFloat(0)},__withOffset:function(a, +b){return lf.fromFloat(0)},equals:function(a,b){return a==b},equalsPointer:function(a,b){return a==b},greaterThan:function(a,b){return a>b},greaterThanPointer:function(a,b){return Hd.get(a)>Hd.get(b)},greaterThanOrEqual:function(a,b){return a>=b},greaterThanOrEqualPointer:function(a,b){return Hd.get(a)>=Hd.get(b)},lessThan:function(a,b){return a<b},lessThanPointer:function(a,b){return Hd.get(a)<Hd.get(b)},lessThanOrEqual:function(a,b){return a<=b},lessThanOrEqualPointer:function(a,b){return Hd.get(a)<= +Hd.get(b)},notEquals:function(a,b){return a!=b},notEqualsPointer:function(a,b){return a!=b},plus:function(a,b){return lf.__withOffset(a,b)},plusPointer:function(a,b){return lf.__withOffset(a,b|0)},minus:function(a,b){return lf.__withOffset(a,-b)},minusPointer:function(a,b){return lf.__withOffset(a,-(b|0))}},Ug={toArrayBufferView:function(a){return a},fromBytes:function(a,b,c){null==b&&(b=0);return null==b?new Float32Array(a.b.bufferValue):null==c?new Float32Array(a.b.bufferValue,b):new Float32Array(a.b.bufferValue, +b,c)},toBytes:function(a){return new cb(new Uint8Array(a.buffer))},toString:function(a){return null!=a?"Float32Array [byteLength:"+a.byteLength+", length:"+a.length+"]":null}},Ga=function(){};k["lime.utils.Log"]=Ga;Ga.__name__="lime.utils.Log";Ga.debug=function(a,b){4<=Ga.level&&console.debug("["+b.className+"] "+n.string(a))};Ga.error=function(a,b){if(1<=Ga.level){a="["+b.className+"] ERROR: "+n.string(a);if(Ga.throwErrors)throw R.thrown(a);console.error(a)}};Ga.info=function(a,b){3<=Ga.level&&console.info("["+ +b.className+"] "+n.string(a))};Ga.print=function(a){console.log(a)};Ga.println=function(a){console.log(a)};Ga.verbose=function(a,b){5<=Ga.level&&(a="["+b.className+"] "+n.string(a),console.log(a))};Ga.warn=function(a,b){2<=Ga.level&&console.warn("["+b.className+"] WARNING: "+n.string(a))};var kg=function(a,b){this.positions=new V;this.lengths=new V;vb.call(this);this.id=a;this.type=b};k["lime.utils.PackedAssetLibrary"]=kg;kg.__name__="lime.utils.PackedAssetLibrary";kg.fromBytes=function(a,b){return kg.fromManifest(Fc.fromBytes(a, +b))};kg.fromFile=function(a,b){return kg.fromManifest(Fc.fromFile(a,b))};kg.fromManifest=function(a){return vb.fromManifest(a)};kg.loadFromBytes=function(a,b){return vb.loadFromBytes(a,b).then(function(a){return eb.withValue(a)})};kg.loadFromFile=function(a,b){return vb.loadFromFile(a,b).then(function(a){return eb.withValue(a)})};kg.loadFromManifest=function(a){return vb.loadFromManifest(a).then(function(a){return eb.withValue(a)})};kg.__super__=vb;kg.prototype=u(vb.prototype,{id:null,lengths:null, +packedData:null,positions:null,type:null,rootPath:null,getAudioBuffer:function(a){return vb.prototype.getAudioBuffer.call(this,a)},getBytes:function(a){if(Object.prototype.hasOwnProperty.call(this.cachedBytes.h,a))return this.cachedBytes.h[a];if(Object.prototype.hasOwnProperty.call(this.cachedText.h,a)){var b=hc.ofString(this.cachedText.h[a]);this.cachedBytes.h[a]=b}else if(b=hc.alloc(this.lengths.h[a]),b.blit(0,this.packedData,this.positions.h[a],this.lengths.h[a]),"gzip"==this.type)b=hc.decompress(b, +Xd.GZIP);else if("zip"==this.type||"deflate"==this.type)b=hc.decompress(b,Xd.DEFLATE);return b},getFont:function(a){return vb.prototype.getFont.call(this,a)},getImage:function(a){if(Object.prototype.hasOwnProperty.call(this.cachedImages.h,a))return this.cachedImages.h[a];var b=hc.alloc(this.lengths.h[a]);b.blit(0,this.packedData,this.positions.h[a],this.lengths.h[a]);if("gzip"==this.type)b=hc.decompress(b,Xd.GZIP);else if("zip"==this.type||"deflate"==this.type)b=hc.decompress(b,Xd.DEFLATE);return Db.fromBytes(b)}, +getText:function(a){if(Object.prototype.hasOwnProperty.call(this.cachedText.h,a))return this.cachedText.h[a];if("gzip"==this.type||"zip"==this.type||"deflate"==this.type){var b=hc.alloc(this.lengths.h[a]);b.blit(0,this.packedData,this.positions.h[a],this.lengths.h[a]);if("gzip"==this.type)b=hc.decompress(b,Xd.GZIP);else if("zip"==this.type||"deflate"==this.type)b=hc.decompress(b,Xd.DEFLATE);return b.getString(0,b.length)}return this.packedData.getString(this.positions.h[a],this.lengths.h[a])},isLocal:function(a, +b){return!0},load:function(){var a=this;if(this.loaded)return eb.withValue(this);if(null==this.promise){this.promise=new Wd;this.bytesLoadedCache=new V;this.assetsLoaded=0;this.assetsTotal=2;for(var b=Object.keys(this.preload.h),c=b.length,d=0;d<c;){var e=b[d++];if(this.preload.h[e]){var g=this.types.h[e];if(null!=g)switch(g){case "BINARY":case "FONT":case "IMAGE":case "TEXT":this.assetsTotal++;break;case "MUSIC":case "SOUND":Ga.verbose("Preloading asset: "+e+" ["+this.types.h[e]+"]",{fileName:"lime/utils/PackedAssetLibrary.hx", +lineNumber:189,className:"lime.utils.PackedAssetLibrary",methodName:"load"});this.assetsTotal++;var f=this.loadAudioBuffer(e);f.onProgress(function(a,b){return function(c,d){b[0](a[0],c,d)}}([e],[q(this,this.load_onProgress)]));f.onError(function(a,b){return function(c){b[0](a[0],c)}}([e],[q(this,this.loadAudioBuffer_onError)]));f.onComplete(function(a,b){return function(c){b[0](a[0],c)}}([e],[q(this,this.loadAudioBuffer_onComplete)]))}}}b=function(b){a.cachedBytes.h[a.id]=b;a.packedData=b;a.__assetLoaded(a.id); +b=Object.keys(a.preload.h);for(var c=b.length,d=0;d<c;){var e=b[d++];if(a.preload.h[e]){var g=a.types.h[e];if(null!=g)switch(g){case "BINARY":Ga.verbose("Preloading asset: "+e+" ["+a.types.h[e]+"]",{fileName:"lime/utils/PackedAssetLibrary.hx",lineNumber:215,className:"lime.utils.PackedAssetLibrary",methodName:"load"});g=a.loadBytes(e);g.onError(function(a,b){return function(c){b[0](a[0],c)}}([e],[q(a,a.load_onError)]));g.onComplete(function(a,b){return function(c){b[0](a[0],c)}}([e],[q(a,a.loadBytes_onComplete)])); +break;case "FONT":Ga.verbose("Preloading asset: "+e+" ["+a.types.h[e]+"]",{fileName:"lime/utils/PackedAssetLibrary.hx",lineNumber:222,className:"lime.utils.PackedAssetLibrary",methodName:"load"});g=a.loadFont(e);g.onError(function(a,b){return function(c){b[0](a[0],c)}}([e],[q(a,a.load_onError)]));g.onComplete(function(a,b){return function(c){b[0](a[0],c)}}([e],[q(a,a.loadFont_onComplete)]));break;case "IMAGE":Ga.verbose("Preloading asset: "+e+" ["+a.types.h[e]+"]",{fileName:"lime/utils/PackedAssetLibrary.hx", +lineNumber:229,className:"lime.utils.PackedAssetLibrary",methodName:"load"});g=a.loadImage(e);g.onError(function(a,b){return function(c){b[0](a[0],c)}}([e],[q(a,a.load_onError)]));g.onComplete(function(a,b){return function(c){b[0](a[0],c)}}([e],[q(a,a.loadImage_onComplete)]));break;case "TEXT":Ga.verbose("Preloading asset: "+e+" ["+a.types.h[e]+"]",{fileName:"lime/utils/PackedAssetLibrary.hx",lineNumber:236,className:"lime.utils.PackedAssetLibrary",methodName:"load"}),g=a.loadText(e),g.onError(function(a, +b){return function(c){b[0](a[0],c)}}([e],[q(a,a.load_onError)])),g.onComplete(function(a,b){return function(c){b[0](a[0],c)}}([e],[q(a,a.loadText_onComplete)]))}}}};this.__assetLoaded(null);Object.prototype.hasOwnProperty.call(this.cachedBytes.h,this.id)?b(this.cachedBytes.h[this.id]):(c=null==this.rootPath||""==this.rootPath?"":Ye.addTrailingSlash(this.rootPath),d=Object.prototype.hasOwnProperty.call(this.paths.h,this.id)?this.paths.h[this.id]:this.id,c=Ye.join([c,d]),c=this.__cacheBreak(c),g=q(this, +this.load_onProgress),e=this.id,hc.loadFromFile(c).onProgress(function(a,b){g(e,a,b)}).onError((N=this.promise,q(N,N.error))).onComplete(b))}return this.promise.future},loadAudioBuffer:function(a){return vb.prototype.loadAudioBuffer.call(this,a)},loadBytes:function(a){if(Object.prototype.hasOwnProperty.call(this.cachedBytes.h,a))return eb.withValue(this.cachedBytes.h[a]);var b=hc.alloc(this.lengths.h[a]);b.blit(0,this.packedData,this.positions.h[a],this.lengths.h[a]);if("gzip"==this.type)b=hc.decompress(b, +Xd.GZIP);else if("zip"==this.type||"deflate"==this.type)b=hc.decompress(b,Xd.DEFLATE);return eb.withValue(b)},loadFont:function(a){return vb.prototype.loadFont.call(this,a)},loadImage:function(a){if(Object.prototype.hasOwnProperty.call(this.cachedImages.h,a))return eb.withValue(this.cachedImages.h[a]);var b=hc.alloc(this.lengths.h[a]);b.blit(0,this.packedData,this.positions.h[a],this.lengths.h[a]);if("gzip"==this.type)b=hc.decompress(b,Xd.GZIP);else if("zip"==this.type||"deflate"==this.type)b=hc.decompress(b, +Xd.DEFLATE);return Db.loadFromBytes(b)},loadText:function(a){if(Object.prototype.hasOwnProperty.call(this.cachedText.h,a))return eb.withValue(this.cachedText.h[a]);if(Object.prototype.hasOwnProperty.call(this.cachedBytes.h,a)){var b=this.getBytes(a);if(null==b)return eb.withValue(null);b=b.getString(0,b.length);this.cachedText.h[a]=b;return eb.withValue(b)}if("gzip"==this.type||"deflate"==this.type){b=hc.alloc(this.lengths.h[a]);b.blit(0,this.packedData,this.positions.h[a],this.lengths.h[a]);if("gzip"== +this.type)b=hc.decompress(b,Xd.GZIP);else if("zip"==this.type||"deflate"==this.type)b=hc.decompress(b,Xd.DEFLATE);return eb.withValue(b.getString(0,b.length))}return eb.withValue(this.packedData.getString(this.positions.h[a],this.lengths.h[a]))},unload:function(){},__fromManifest:function(a){this.rootPath=a.rootPath;vb.prototype.__fromManifest.call(this,a);var b=0,c=this.bytesTotal=0;for(a=a.assets;c<a.length;){var d=a[c];++c;var e=d.id;Object.prototype.hasOwnProperty.call(d,"position")&&(this.positions.h[e]= +W.field(d,"position"));Object.prototype.hasOwnProperty.call(d,"length")&&(d=W.field(d,"length"),this.lengths.h[e]=d,this.sizes.h[e]=Math.floor(d/10),b+=d);Object.prototype.hasOwnProperty.call(this.preload.h,e)&&this.preload.h[e]&&Object.prototype.hasOwnProperty.call(this.sizes.h,e)&&(this.bytesTotal+=this.sizes.h[e])}this.sizes.h[this.id]=b;this.bytesTotal+=b},__assetLoaded:function(a){this.assetsLoaded++;null!=a&&Ga.verbose("Loaded asset: "+a+" ["+this.types.h[a]+"] ("+(this.assetsLoaded-1)+"/"+ +(this.assetsTotal-1)+")",{fileName:"lime/utils/PackedAssetLibrary.hx",lineNumber:457,className:"lime.utils.PackedAssetLibrary",methodName:"__assetLoaded"});if(null!=a){var b=Object.prototype.hasOwnProperty.call(this.sizes.h,a)?this.sizes.h[a]:0;if(Object.prototype.hasOwnProperty.call(this.bytesLoadedCache.h,a)){var c=this.bytesLoadedCache.h[a];c<b&&(this.bytesLoaded+=b-c)}else this.bytesLoaded+=b;this.bytesLoadedCache.h[a]=b}this.assetsLoaded<this.assetsTotal?this.promise.progress(this.bytesLoaded, +this.bytesTotal):(this.loaded=!0,this.promise.progress(this.bytesTotal,this.bytesTotal),this.promise.complete(this))},__class__:kg});var Bo=function(){this.bytesTotalCache=new V;this.bytesLoadedCache2=new V;this.bytesLoadedCache=new ac;this.onProgress=new pm;this.onComplete=new Fd;this.bytesTotal=this.bytesLoaded=0;this.libraries=[];this.libraryNames=[];this.onProgress.add(q(this,this.update))};k["lime.utils.Preloader"]=Bo;Bo.__name__="lime.utils.Preloader";Bo.prototype={complete:null,onComplete:null, +onProgress:null,bytesLoaded:null,bytesLoadedCache:null,bytesLoadedCache2:null,bytesTotal:null,bytesTotalCache:null,initLibraryNames:null,libraries:null,libraryNames:null,loadedLibraries:null,loadedStage:null,preloadComplete:null,preloadStarted:null,simulateProgress:null,addLibrary:function(a){this.libraries.push(a)},addLibraryName:function(a){-1==this.libraryNames.indexOf(a)&&this.libraryNames.push(a)},load:function(){for(var a=this,b=0,c=this.libraries;b<c.length;){var d=c[b];++b;this.bytesTotal+= +d.bytesTotal}this.loadedLibraries=-1;this.preloadStarted=!1;b=0;for(c=this.libraries;b<c.length;)d=[c[b]],++b,Ga.verbose("Preloading asset library",{fileName:"lime/utils/Preloader.hx",lineNumber:134,className:"lime.utils.Preloader",methodName:"load"}),d[0].load().onProgress(function(b){return function(c,d){a.bytesLoaded=null==a.bytesLoadedCache.h.__keys__[b[0].__id__]?a.bytesLoaded+c:a.bytesLoaded+(c-a.bytesLoadedCache.h[b[0].__id__]);a.bytesLoadedCache.set(b[0],c);a.simulateProgress||a.onProgress.dispatch(a.bytesLoaded, +a.bytesTotal)}}(d)).onComplete(function(b){return function(c){a.bytesLoaded=null==a.bytesLoadedCache.h.__keys__[b[0].__id__]?a.bytesLoaded+b[0].bytesTotal:a.bytesLoaded+((b[0].bytesTotal|0)-a.bytesLoadedCache.h[b[0].__id__]);a.loadedAssetLibrary()}}(d)).onError(function(){return function(a){Ga.error(a,{fileName:"lime/utils/Preloader.hx",lineNumber:170,className:"lime.utils.Preloader",methodName:"load"})}}());b=0;for(c=this.libraryNames;b<c.length;)++b,this.bytesTotal+=200;this.loadedLibraries++;this.preloadStarted= +!0;this.updateProgress()},loadedAssetLibrary:function(a){this.loadedLibraries++;var b=this.loadedLibraries;this.preloadStarted||++b;var c=this.libraries.length+this.libraryNames.length;null!=a?Ga.verbose("Loaded asset library: "+a+" ["+b+"/"+c+"]",{fileName:"lime/utils/Preloader.hx",lineNumber:197,className:"lime.utils.Preloader",methodName:"loadedAssetLibrary"}):Ga.verbose("Loaded asset library ["+b+"/"+c+"]",{fileName:"lime/utils/Preloader.hx",lineNumber:201,className:"lime.utils.Preloader",methodName:"loadedAssetLibrary"}); +this.updateProgress()},start:function(){this.complete||this.simulateProgress||!this.preloadComplete||(this.complete=!0,this.onComplete.dispatch())},update:function(a,b){},updateProgress:function(){var a=this;this.simulateProgress||this.onProgress.dispatch(this.bytesLoaded,this.bytesTotal);if(this.loadedLibraries==this.libraries.length&&!this.initLibraryNames){this.initLibraryNames=!0;for(var b=0,c=this.libraryNames;b<c.length;){var d=[c[b]];++b;Ga.verbose("Preloading asset library: "+d[0],{fileName:"lime/utils/Preloader.hx", +lineNumber:239,className:"lime.utils.Preloader",methodName:"updateProgress"});wa.loadLibrary(d[0]).onProgress(function(b){return function(c,d){0<d&&(Object.prototype.hasOwnProperty.call(a.bytesTotalCache.h,b[0])||(a.bytesTotalCache.h[b[0]]=d,a.bytesTotal+=d-200),c>d&&(c=d),Object.prototype.hasOwnProperty.call(a.bytesLoadedCache2.h,b[0])?a.bytesLoaded+=c-a.bytesLoadedCache2.h[b[0]]:a.bytesLoaded+=c,a.bytesLoadedCache2.h[b[0]]=c,a.simulateProgress||a.onProgress.dispatch(a.bytesLoaded,a.bytesTotal))}}(d)).onComplete(function(b){return function(c){c= +200;Object.prototype.hasOwnProperty.call(a.bytesTotalCache.h,b[0])&&(c=a.bytesTotalCache.h[b[0]]);Object.prototype.hasOwnProperty.call(a.bytesLoadedCache2.h,b[0])?a.bytesLoaded+=c-a.bytesLoadedCache2.h[b[0]]:a.bytesLoaded+=c;a.loadedAssetLibrary(b[0])}}(d)).onError(function(){return function(a){Ga.error(a,{fileName:"lime/utils/Preloader.hx",lineNumber:293,className:"lime.utils.Preloader",methodName:"updateProgress"})}}())}}this.simulateProgress||this.loadedLibraries!=this.libraries.length+this.libraryNames.length|| +(this.preloadComplete||(this.preloadComplete=!0,Ga.verbose("Preload complete",{fileName:"lime/utils/Preloader.hx",lineNumber:306,className:"lime.utils.Preloader",methodName:"updateProgress"})),this.start())},__class__:Bo};var yi=function(a,b,c){this.name=a;this.type=b;this.address=c};k["mbs.core.MbsField"]=yi;yi.__name__="mbs.core.MbsField";yi.prototype={name:null,type:null,address:null,getName:function(){return this.name},getType:function(){return this.type},getAddress:function(){return this.address}, +__class__:yi};var Bm=function(a,b,c){yi.call(this,a,null,c);this.typeName=b};k["mbs.core.reflect.SubstituteField"]=Bm;Bm.__name__="mbs.core.reflect.SubstituteField";Bm.__super__=yi;Bm.prototype=u(yi.prototype,{typeName:null,toString:function(){return"MbsField [name="+this.getName()+", typeName="+this.typeName+", address="+this.address+"]"},__class__:Bm});var Mi=function(a,b,c,d){wb.call(this,a);this.parentName=b;this.fields=c.slice(0);this.size=d};k["mbs.core.reflect.SubstituteType"]=Mi;Mi.__name__= +"mbs.core.reflect.SubstituteType";Mi.__super__=wb;Mi.prototype=u(wb.prototype,{parentName:null,mapTypes:function(a){this.parent=a.h[this.parentName];if(null!=this.fields)for(var b=0,c=this.fields.length;b<c;){var d=b++;d=this.fields[d];d.type=a.h[d.typeName]}},__class__:Mi});var $d=function(){};k["mbs.io.MbsDynamicHelper"]=$d;$d.__name__="mbs.io.MbsDynamicHelper";$d.writeDynamic=function(a,b,c){null==c&&a.writeTypecode(b,L.NULL);"boolean"==typeof c?(a.writeTypecode(b,L.BOOLEAN),a.writeBool(b+L.INTEGER.getSize(), +c)):"number"==typeof c?(a.writeTypecode(b,L.FLOAT),a.writeFloat(b+L.INTEGER.getSize(),c)):"number"==typeof c&&(c|0)===c?(a.writeTypecode(b,L.INTEGER),a.writeInt(b+L.INTEGER.getSize(),c)):"string"==typeof c?(a.writeTypecode(b,L.STRING),a.writeString(b+L.INTEGER.getSize(),c)):(a.writeTypecode(b,c.getMbsType()),a.writeInt(b+L.INTEGER.getSize(),c.getAddress()))};$d.readDynamic=function(a,b){var c=a.readTypecode(b);if(c==L.NULL)return null;if(c==L.BOOLEAN)return a.readBool(b+L.INTEGER.getSize());if(c== +L.FLOAT)return a.readFloat(b+L.INTEGER.getSize());if(c==L.INTEGER)return a.readInt(b+L.INTEGER.getSize());if(c==L.STRING)return a.readString(b+L.INTEGER.getSize());if(c==L.LIST)return b=a.readInt(b+L.INTEGER.getSize()),0!=b?(c=a.readTypecode(b+L.INTEGER.getSize()),a=c==L.BOOLEAN?new Uj(a):c==L.FLOAT?new Vj(a):c==L.INTEGER?new Lf(a):c==L.STRING?new Wj(a):c==L.DYNAMIC?new rh(a):new Qa(a,c,c.createInstance(a)),a.setAddress(b),a):null;c=c.createInstance(a);c.setAddress(a.readInt(b+L.INTEGER.getSize())); +return c};$d.createObjectPool=function(a){return new ac};$d.readDynamicUsingPool=function(a,b,c){var d=a.readTypecode(b);if(d==L.NULL)return null;if(d==L.BOOLEAN)return a.readBool(b+L.INTEGER.getSize());if(d==L.FLOAT)return a.readFloat(b+L.INTEGER.getSize());if(d==L.INTEGER)return a.readInt(b+L.INTEGER.getSize());if(d==L.STRING)return a.readString(b+L.INTEGER.getSize());if(d==L.LIST)return b=a.readInt(b+L.INTEGER.getSize()),0!=b?(d=a.readTypecode(b+L.INTEGER.getSize()),a=d==L.BOOLEAN?new Uj(a):d== +L.FLOAT?new Vj(a):d==L.INTEGER?new Lf(a):d==L.STRING?new Wj(a):d==L.DYNAMIC?new rh(a):new Qa(a,d,d.createInstance(a)),a.setAddress(b),a):null;var e=c.h[d.__id__];null==e&&(e=d.createInstance(a),c.set(d,e));e.setAddress(a.readInt(b+L.INTEGER.getSize()));return e};var Cm=function(){};k["mbs.io.MbsIO"]=Cm;Cm.__name__="mbs.io.MbsIO";Cm.__isInterface__=!0;Cm.prototype={readBool:null,readFloat:null,readInt:null,readString:null,writeInt:null,writeBool:null,writeFloat:null,writeString:null,isReader:null, +isWriter:null,allocate:null,writeTypecode:null,readTypecode:null,__class__:Cm};var ou=function(){};k["mbs.io.MbsInternalVersion"]=ou;ou.__name__="mbs.io.MbsInternalVersion";var ge=function(a,b){this.data=a;null!=b&&(this.type=b,this.elementSize=b.getSize())};k["mbs.io.MbsListBase"]=ge;ge.__name__="mbs.io.MbsListBase";ge.__super__=ib;ge.prototype=u(ib.prototype,{type:null,elementAddress:null,elementSize:null,_length:null,setAddress:function(a){ib.prototype.setAddress.call(this,a);this.data.isReader()&& +(0!=a?(this._length=this.data.readInt(a),this.type=this.data.readTypecode(a+L.INTEGER.getSize()),this.elementSize=this.type.getSize(),this.elementAddress=a+2*L.INTEGER.getSize()):(this.type=null,this.elementAddress=this.elementSize=this._length=0))},allocateNew:function(a){if(this.data.isWriter())return this._length=a,this.address=this.data.allocate(2*L.INTEGER.getSize()+this.elementSize*a),this.data.writeInt(this.address,a),this.data.writeTypecode(this.address+L.INTEGER.getSize(),this.type),this.elementAddress= +this.address+2*L.INTEGER.getSize(),this.address;throw R.thrown("Can't allocate new objects when reading");},length:function(){return this._length},__class__:ge});var Qa=function(a,b,c){ge.call(this,a,b);this.obj=c};k["mbs.io.MbsList"]=Qa;Qa.__name__="mbs.io.MbsList";Qa.__super__=ge;Qa.prototype=u(ge.prototype,{obj:null,getNextObject:function(){this.obj.setAddress(this.elementAddress);this.elementAddress+=this.elementSize;return this.obj},__class__:Qa});var Uj=function(a){ge.call(this,a,L.BOOLEAN)}; +k["mbs.io.MbsBoolList"]=Uj;Uj.__name__="mbs.io.MbsBoolList";Uj.__super__=ge;Uj.prototype=u(ge.prototype,{readBool:function(){var a=this.data.readBool(this.elementAddress);this.elementAddress+=this.elementSize;return a},writeBool:function(a){this.data.writeBool(this.elementAddress,a);this.elementAddress+=this.elementSize},__class__:Uj});var Vj=function(a){ge.call(this,a,L.FLOAT)};k["mbs.io.MbsFloatList"]=Vj;Vj.__name__="mbs.io.MbsFloatList";Vj.__super__=ge;Vj.prototype=u(ge.prototype,{readFloat:function(){var a= +this.data.readFloat(this.elementAddress);this.elementAddress+=this.elementSize;return a},writeFloat:function(a){this.data.writeFloat(this.elementAddress,a);this.elementAddress+=this.elementSize},__class__:Vj});var Lf=function(a){ge.call(this,a,L.INTEGER)};k["mbs.io.MbsIntList"]=Lf;Lf.__name__="mbs.io.MbsIntList";Lf.__super__=ge;Lf.prototype=u(ge.prototype,{readInt:function(){var a=this.data.readInt(this.elementAddress);this.elementAddress+=this.elementSize;return a},writeInt:function(a){this.data.writeInt(this.elementAddress, +a);this.elementAddress+=this.elementSize},__class__:Lf});var Wj=function(a){ge.call(this,a,L.STRING)};k["mbs.io.MbsStringList"]=Wj;Wj.__name__="mbs.io.MbsStringList";Wj.__super__=ge;Wj.prototype=u(ge.prototype,{readString:function(){var a=this.data.readString(this.elementAddress);this.elementAddress+=this.elementSize;return a},writeString:function(a){this.data.writeString(this.elementAddress,a);this.elementAddress+=this.elementSize},__class__:Wj});var rh=function(a){ge.call(this,a,L.DYNAMIC)};k["mbs.io.MbsDynamicList"]= +rh;rh.__name__="mbs.io.MbsDynamicList";rh.__super__=ge;rh.prototype=u(ge.prototype,{readObject:function(){var a=$d.readDynamic(this.data,this.elementAddress);this.elementAddress+=this.elementSize;return a},readObjectUsingPool:function(a){a=$d.readDynamicUsingPool(this.data,this.elementAddress,a);this.elementAddress+=this.elementSize;return a},writeObject:function(a){$d.writeDynamic(this.data,this.elementAddress,a);this.elementAddress+=this.elementSize},__class__:rh});var Og=function(a,b,c){this.typedefSet= +a;this.readStoredTypeInformation=b;this.initStringList=c;this.header=new rc(this);this.header.setAddress(0)};k["mbs.io.MbsReader"]=Og;Og.__name__="mbs.io.MbsReader";Og.__interfaces__=[Cm];Og.prototype={data:null,stringTable:null,typeTable:null,rootAddress:null,subTypeMap:null,initStringList:null,stringTableAddress:null,readStoredTypeInformation:null,typedefSet:null,header:null,canRead:function(a){var b=null;if(null==a||a.length<this.header.getMbsType().getSize())b="Missing header";this.data=a;2!= +this.header.getVersion()&&(b="Mismatched version -- "+this.header.getVersion());this.header.getTypeTableHash()!=this.typedefSet.getHash()&&(b="Mismatched typetable");this.readStoredTypeInformation&&0==this.header.getTypeTablePointer()&&(b="Missing required type information");this.data=null;return b},readData:function(a){this.data=a;if(2!=this.header.getVersion())throw R.thrown("Can't read mbs. Wrong version.");if(this.header.getTypeTableHash()!=this.typedefSet.getHash())throw R.thrown("Can't read mbs. Wrong typedef info."); +var b=L.INTEGER.getSize();this.stringTableAddress=this.header.getStringTablePointer();var c=Array(this.readInt(this.stringTableAddress));this.stringTable=c;if(this.initStringList){var d=this.stringTableAddress+b;for(var e=0,g=this.stringTable.length;e<g;){var f=e++,l=this.readInt(d),h=this.readInt(l);this.stringTable[f]=a.getString(l+4,h);d+=b}}if(this.readStoredTypeInformation){a=new Jc(this);d=this.header.getTypeTablePointer();this.typeTable=c=Array(this.readInt(d));d+=b;this.subTypeMap=new V;l= +Object.create(null);f=L.BOOLEAN;l[f.getName()]=f;f=L.INTEGER;l[f.getName()]=f;f=L.FLOAT;l[f.getName()]=f;f=L.STRING;l[f.getName()]=f;f=L.DYNAMIC;l[f.getName()]=f;f=L.LIST;l[f.getName()]=f;e=0;for(g=this.typeTable.length;e<g;){f=e++;a.setAddress(this.readInt(d));d+=b;h=a.getName();var m=a.getParent(),k=a.getSize();c=null;var p=a.getFieldsPointer();if(0!=p){var n=this.readInt(p);p+=b;c=Array(n);for(var r=new Vc(this),q=0;q<n;){var v=q++;r.setAddress(p);p+=Vc.MBS_FIELD_INFO.getSize();var u=r.getName(), +w=r.getType(),B=r.getFieldAddress();c[v]=new Bm(u,w,B)}}Object.prototype.hasOwnProperty.call(l,h)?this.typeTable[f]=l[h]:this.typeTable[f]=new Mi(h,m,c,k);this.subTypeMap.h[h]=this.typeTable[f]}e=0;for(g=this.typeTable.length;e<g;)f=e++,this.typeTable[f]instanceof Mi&&O.__cast(this.typeTable[f],Mi).mapTypes(this.subTypeMap)}else for(this.typeTable=c=Array(this.typedefSet.getTypes().length),e=0,g=this.typedefSet.getTypes();e<g.length;)f=g[e],++e,this.typeTable[this.typedefSet.getTypecode(f)]=f},reconfigureComposition:function(a){var b= +this.subTypeMap,c=a.getName();if(Object.prototype.hasOwnProperty.call(b.h,c)){b=this.subTypeMap;c=a.getName();var d=b.h[c];b=Object.create(null);c=0;for(d=d.getFields();c<d.length;){var e=d[c];++c;b[e.getName()]=e}c=0;for(d=a.getFields();c<d.length;)e=d[c],++c,e.address=b[e.getName()].address}},getRoot:function(){return this.header.getRoot()},readInt:function(a){return this.data.b[a]<<24|this.data.b[a+1]<<16|this.data.b[a+2]<<8|this.data.b[a+3]},readBool:function(a){return 0!=this.data.b[a]},readFloat:function(a){return Vd.i32ToFloat(this.readInt(a))}, +readString:function(a){if(this.initStringList)return this.stringTable[this.readInt(a)];a=this.readInt(a);if(null==this.stringTable[a]){var b=this.readInt(this.stringTableAddress+L.INTEGER.getSize()*(a+1)),c=this.readInt(b);this.stringTable[a]=this.data.getString(b+4,c)}return this.stringTable[a]},readTypecode:function(a){return this.typeTable[this.readInt(a)]},getTypeTable:function(){return this.typeTable},writeInt:function(a,b){throw R.thrown("Can't write on an MBS reader");},writeBool:function(a, +b){throw R.thrown("Can't write on an MBS reader");},writeFloat:function(a,b){throw R.thrown("Can't write on an MBS reader");},writeString:function(a,b){throw R.thrown("Can't write on an MBS reader");},isReader:function(){return!0},isWriter:function(){return!1},allocate:function(a){throw R.thrown("Can't allocate on an MBS reader");},writeTypecode:function(a,b){throw R.thrown("Can't write on an MBS reader");},__class__:Og};var Da=function(){};k["openfl.Lib"]=Da;Da.__name__="openfl.Lib";Da.__properties__= +{get_current:"get_current",get_application:"get_application"};Da.as=function(a,b){return O.__instanceof(a,b)?a:null};Da.attach=function(a){return new yh};Da.clearInterval=function(a){Da.__timers.h.hasOwnProperty(a)&&(Da.__timers.h[a].stop(),Da.__timers.remove(a))};Da.clearTimeout=function(a){Da.__timers.h.hasOwnProperty(a)&&(Da.__timers.h[a].stop(),Da.__timers.remove(a))};Da.getDefinitionByName=function(a){return null==a?null:k[a]};Da.getQualifiedClassName=function(a){if(null==a)return null;var b= +O.__instanceof(a,yt)?a:O.getClass(a);return null==b?"boolean"==typeof a||a==hu?"Bool":"number"==typeof a&&(a|0)===a||a==ui?"Int":"number"==typeof a||a==gu?"Float":null:b.__name__};Da.getQualifiedSuperclassName=function(a){if(null==a)return null;a=O.__instanceof(a,yt)?a:O.getClass(a);if(null==a)return null;a=a.__super__;return null==a?null:a.__name__};Da.getTimer=function(){return Pa.getTimer()};Da.getURL=function(a,b){Da.navigateToURL(a,b)};Da.navigateToURL=function(a,b){null==b&&(b="_blank");var c= +a.url;if(Za.typeof(a.data)==Fa.TObject){for(var d="",e=W.fields(a.data),g=0;g<e.length;){var f=e[g];++g;0<d.length&&(d+="&");var l=encodeURIComponent(f)+"=";f=n.string(W.field(a.data,f));d+=l+encodeURIComponent(f)}c=-1<c.indexOf("?")?c+("&"+d):c+("?"+d)}Pa.openURL(c,b)};Da.notImplemented=function(a){var b=a.className+"."+a.methodName;Object.prototype.hasOwnProperty.call(Da.__sentWarnings.h,b)||(Da.__sentWarnings.h[b]=!0,Ga.warn(a.methodName+" is not implemented",a))};Da.preventDefaultTouchMove=function(){window.document.addEventListener("touchmove", +function(a){a.preventDefault()},!1)};Da.sendToURL=function(a){(new ph).load(a)};Da.setInterval=function(a,b,c){var d=++Da.__lastTimerID;b=new Oe(b);Da.__timers.h[d]=b;b.run=function(){a.apply(a,null==c?[]:c)};return d};Da.setTimeout=function(a,b,c){var d=++Da.__lastTimerID,e=Da.__timers;b=Oe.delay(function(){Da.__timers.remove(d);a.apply(a,null==c?[]:c)},b);e.h[d]=b;return d};Da.trace=function(a){gh.trace(a,{fileName:"openfl/Lib.hx",lineNumber:569,className:"openfl.Lib",methodName:"trace"})};Da.isXMLName= +function(a){return null!=a&&(new Z("^[a-zA-Z_]","")).match(a)&&!(new Z("^[xX][mM][lL]","")).match(a)&&(new Z("^[a-zA-Z0-9_\\-\\.]+$","")).match(a)?!0:!1};Da.getClassByAlias=function(a){if(!Object.prototype.hasOwnProperty.call(Da.__registeredClassAliases.h,a))throw new Ec("Class "+a+" could not be found.");return Da.__registeredClassAliases.h[a]};Da.registerClassAlias=function(a,b){if(null==b)throw new Eh("Parameter classObject must be non-null");if(null==a)throw new Eh("Parameter aliasName must be non-null"); +Da.__registeredClassAliases.h[a]=b};Da.get_application=function(){return zc.application};Da.get_current=function(){null==zc.current&&(zc.current=new yh);return zc.current};var Xg=function(){};k["openfl._Vector.IVector"]=Xg;Xg.__name__="openfl._Vector.IVector";Xg.__isInterface__=!0;Xg.prototype={get_length:null,set_length:null,fixed:null,concat:null,copy:null,filter:null,get:null,indexOf:null,insertAt:null,iterator:null,join:null,lastIndexOf:null,pop:null,push:null,removeAt:null,reverse:null,set:null, +shift:null,slice:null,sort:null,splice:null,toString:null,unshift:null,__tempIndex:null,__class__:Xg,__properties__:{set_length:"set_length",get_length:"get_length"}};var Bf=function(a,b,c){null==b&&(b=!1);null==a&&(a=0);null==c&&(c=[]);this.__array=c;0<a&&this.set_length(a);this.fixed=b};k["openfl._Vector.BoolVector"]=Bf;Bf.__name__="openfl._Vector.BoolVector";Bf.__interfaces__=[Xg];Bf.prototype={fixed:null,__array:null,__tempIndex:null,concat:function(a){return null==a?new Bf(0,!1,this.__array.slice()): +0<a.__array.length?new Bf(0,!1,this.__array.concat(a.__array)):new Bf(0,!1,this.__array.slice())},copy:function(){return new Bf(0,this.fixed,this.__array.slice())},filter:function(a){for(var b=this.fixed,c=[],d=0,e=this.__array;d<e.length;){var g=e[d];++d;a(g)&&c.push(g)}return new Bf(0,b,c)},get:function(a){return a>=this.__array.length?!1:this.__array[a]},indexOf:function(a,b){null==b&&(b=0);for(var c=this.__array.length;b<c;){var d=b++;if(this.__array[d]==a)return d}return-1},insertAt:function(a, +b){(!this.fixed||a<this.__array.length)&&this.__array.splice(a,0,b)},iterator:function(){return new ue(this.__array)},join:function(a){null==a&&(a=",");return this.__array.join(a)},lastIndexOf:function(a,b){for(b=null==b||b>=this.__array.length?this.__array.length-1:b;0<=b;){if(this.__array[b]==a)return b;--b}return-1},pop:function(){return this.fixed?null:this.__array.pop()},push:function(a){return this.fixed?this.__array.length:this.__array.push(a)},removeAt:function(a){return!this.fixed||a<this.__array.length? +this.__array.splice(a,1)[0]:!1},reverse:function(){this.__array.reverse();return this},set:function(a,b){return!this.fixed||a<this.__array.length?this.__array[a]=b:b},shift:function(){return this.fixed?null:this.__array.shift()},slice:function(a,b){null==a&&(a=0);null==b&&(b=16777215);return new Bf(0,!1,this.__array.slice(a,b))},sort:function(a){this.__array.sort(a)},splice:function(a,b){return new Bf(0,!1,this.__array.splice(a,b))},toJSON:function(){return this.__array},toString:function(){return null!= +this.__array?this.__array.toString():null},unshift:function(a){this.fixed||this.__array.unshift(a)},get_length:function(){return this.__array.length},set_length:function(a){if(!this.fixed){var b=this.__array.length;0>a&&(a=0);if(a>b)for(;b<a;){var c=b++;this.__array[c]=!1}else for(;this.__array.length>a;)this.__array.pop()}return this.__array.length},__class__:Bf,__properties__:{set_length:"set_length",get_length:"get_length"}};var Df=function(a,b,c,d){null==d&&(d=!1);null==b&&(b=!1);null==a&&(a= +0);if(d){if(this.__array=[],null!=c){d=0;for(var e=c.length;d<e;){var g=d++;this.__array[g]=c[g]}}}else null==c&&(c=[]),this.__array=c;0<a&&this.set_length(a);this.fixed=b};k["openfl._Vector.FloatVector"]=Df;Df.__name__="openfl._Vector.FloatVector";Df.__interfaces__=[Xg];Df.prototype={fixed:null,__array:null,__tempIndex:null,concat:function(a){return null==a?new Df(0,!1,this.__array.slice()):0<a.__array.length?new Df(0,!1,this.__array.concat(a.__array)):new Df(0,!1,this.__array.slice())},copy:function(){return new Df(0, +this.fixed,this.__array.slice())},filter:function(a){for(var b=this.fixed,c=[],d=0,e=this.__array;d<e.length;){var g=e[d];++d;a(g)&&c.push(g)}return new Df(0,b,c)},get:function(a){return this.__array[a]},indexOf:function(a,b){null==b&&(b=0);for(var c=this.__array.length;b<c;){var d=b++;if(this.__array[d]==a)return d}return-1},insertAt:function(a,b){(!this.fixed||a<this.__array.length)&&this.__array.splice(a,0,b)},iterator:function(){return new ue(this.__array)},join:function(a){null==a&&(a=",");return this.__array.join(a)}, +lastIndexOf:function(a,b){for(b=null==b||b>=this.__array.length?this.__array.length-1:b;0<=b;){if(this.__array[b]==a)return b;--b}return-1},pop:function(){return this.fixed?null:this.__array.pop()},push:function(a){return this.fixed?this.__array.length:this.__array.push(a)},removeAt:function(a){return!this.fixed||a<this.__array.length?this.__array.splice(a,1)[0]:0},reverse:function(){this.__array.reverse();return this},set:function(a,b){return!this.fixed||a<this.__array.length?this.__array[a]=b:b}, +shift:function(){return this.fixed?null:this.__array.shift()},slice:function(a,b){null==a&&(a=0);null==b&&(b=16777215);return new Df(0,!1,this.__array.slice(a,b))},sort:function(a){this.__array.sort(a)},splice:function(a,b){return new Df(0,!1,this.__array.splice(a,b))},toJSON:function(){return this.__array},toString:function(){return null!=this.__array?this.__array.toString():null},unshift:function(a){this.fixed||this.__array.unshift(a)},get_length:function(){return this.__array.length},set_length:function(a){if(a!= +this.__array.length&&!this.fixed){var b=this.__array.length;0>a&&(a=0);if(a>b)for(;b<a;){var c=b++;this.__array[c]=0}else for(;this.__array.length>a;)this.__array.pop()}return this.__array.length},__class__:Df,__properties__:{set_length:"set_length",get_length:"get_length"}};var Ef=function(a,b,c){null==b&&(b=!1);null==a&&(a=0);null==c&&(c=[]);this.__array=c;0<a&&this.set_length(a);this.fixed=b};k["openfl._Vector.FunctionVector"]=Ef;Ef.__name__="openfl._Vector.FunctionVector";Ef.__interfaces__=[Xg]; +Ef.prototype={fixed:null,__array:null,__tempIndex:null,concat:function(a){return null==a?new Ef(0,!1,this.__array.slice()):0<a.__array.length?new Ef(0,!1,this.__array.concat(a.__array)):new Ef(0,!1,this.__array.slice())},copy:function(){return new Ef(0,this.fixed,this.__array.slice())},filter:function(a){for(var b=this.fixed,c=[],d=0,e=this.__array;d<e.length;){var g=e[d];++d;a(g)&&c.push(g)}return new Ef(0,b,c)},get:function(a){return a>=this.__array.length?null:this.__array[a]},indexOf:function(a, +b){null==b&&(b=0);for(var c=this.__array.length;b<c;){var d=b++;if(W.compareMethods(this.__array[d],a))return d}return-1},insertAt:function(a,b){(!this.fixed||a<this.__array.length)&&this.__array.splice(a,0,b)},iterator:function(){return new ue(this.__array)},join:function(a){null==a&&(a=",");return this.__array.join(a)},lastIndexOf:function(a,b){for(b=null==b||b>=this.__array.length?this.__array.length-1:b;0<=b;){if(W.compareMethods(this.__array[b],a))return b;--b}return-1},pop:function(){return this.fixed? +null:this.__array.pop()},push:function(a){return this.fixed?this.__array.length:this.__array.push(a)},removeAt:function(a){return!this.fixed||a<this.__array.length?this.__array.splice(a,1)[0]:null},reverse:function(){this.__array.reverse();return this},set:function(a,b){return!this.fixed||a<this.__array.length?this.__array[a]=b:b},shift:function(){return this.fixed?null:this.__array.shift()},slice:function(a,b){null==a&&(a=0);null==b&&(b=16777215);return new Ef(0,!1,this.__array.slice(a,b))},sort:function(a){this.__array.sort(a)}, +splice:function(a,b){return new Ef(0,!1,this.__array.splice(a,b))},toJSON:function(){return this.__array},toString:function(){return null!=this.__array?this.__array.toString():null},unshift:function(a){this.fixed||this.__array.unshift(a)},get_length:function(){return this.__array.length},set_length:function(a){if(!this.fixed){var b=this.__array.length;0>a&&(a=0);if(a>b)for(;b<a;){var c=b++;this.__array[c]=null}else for(;this.__array.length>a;)this.__array.pop()}return this.__array.length},__class__:Ef, +__properties__:{set_length:"set_length",get_length:"get_length"}};var Cf=function(a,b,c){null==b&&(b=!1);null==a&&(a=0);null==c&&(c=[]);this.__array=c;0<a&&this.set_length(a);this.fixed=b};k["openfl._Vector.IntVector"]=Cf;Cf.__name__="openfl._Vector.IntVector";Cf.__interfaces__=[Xg];Cf.prototype={fixed:null,__array:null,__tempIndex:null,concat:function(a){return null==a?new Cf(0,!1,this.__array.slice()):0<a.__array.length?new Cf(0,!1,this.__array.concat(a.__array)):new Cf(0,!1,this.__array.slice())}, +copy:function(){return new Cf(0,this.fixed,this.__array.slice())},filter:function(a){for(var b=this.fixed,c=[],d=0,e=this.__array;d<e.length;){var g=e[d];++d;a(g)&&c.push(g)}return new Cf(0,b,c)},get:function(a){return this.__array[a]},indexOf:function(a,b){null==b&&(b=0);for(var c=this.__array.length;b<c;){var d=b++;if(this.__array[d]==a)return d}return-1},insertAt:function(a,b){(!this.fixed||a<this.__array.length)&&this.__array.splice(a,0,b)},iterator:function(){return new ue(this.__array)},join:function(a){null== +a&&(a=",");return this.__array.join(a)},lastIndexOf:function(a,b){for(b=null==b||b>=this.__array.length?this.__array.length-1:b;0<=b;){if(this.__array[b]==a)return b;--b}return-1},pop:function(){return this.fixed?null:this.__array.pop()},push:function(a){return this.fixed?this.__array.length:this.__array.push(a)},removeAt:function(a){return!this.fixed||a<this.__array.length?this.__array.splice(a,1)[0]:0},reverse:function(){this.__array.reverse();return this},set:function(a,b){return!this.fixed||a< +this.__array.length?this.__array[a]=b:b},shift:function(){return this.fixed?null:this.__array.shift()},slice:function(a,b){null==a&&(a=0);null==b&&(b=16777215);return new Cf(0,!1,this.__array.slice(a,b))},sort:function(a){this.__array.sort(a)},splice:function(a,b){return new Cf(0,!1,this.__array.splice(a,b))},toJSON:function(){return this.__array},toString:function(){return null!=this.__array?this.__array.toString():null},unshift:function(a){this.fixed||this.__array.unshift(a)},get_length:function(){return this.__array.length}, +set_length:function(a){if(!this.fixed){var b=this.__array.length;0>a&&(a=0);if(a>b)for(;b<a;){var c=b++;this.__array[c]=0}else for(;this.__array.length>a;)this.__array.pop()}return this.__array.length},__class__:Cf,__properties__:{set_length:"set_length",get_length:"get_length"}};var of=function(a,b,c,d){null==d&&(d=!1);null==b&&(b=!1);null==a&&(a=0);if(d){if(this.__array=[],null!=c){d=0;for(var e=c.length;d<e;){var g=d++;this.__array[g]=c[g]}}}else null==c&&(c=[]),this.__array=c;0<a&&this.set_length(a); +this.fixed=b};k["openfl._Vector.ObjectVector"]=of;of.__name__="openfl._Vector.ObjectVector";of.__interfaces__=[Xg];of.prototype={fixed:null,__array:null,__tempIndex:null,concat:function(a){return null==a?new of(0,!1,this.__array.slice()):0<a.__array.length?new of(0,!1,this.__array.concat(a.__array)):new of(0,!1,this.__array.slice())},copy:function(){return new of(0,this.fixed,this.__array.slice())},filter:function(a){for(var b=this.fixed,c=[],d=0,e=this.__array;d<e.length;){var g=e[d];++d;a(g)&&c.push(g)}return new of(0, +b,c)},get:function(a){return this.__array[a]},indexOf:function(a,b){null==b&&(b=0);for(var c=this.__array.length;b<c;){var d=b++;if(this.__array[d]==a)return d}return-1},insertAt:function(a,b){(!this.fixed||a<this.__array.length)&&this.__array.splice(a,0,b)},iterator:function(){return new ue(this.__array)},join:function(a){null==a&&(a=",");return this.__array.join(a)},lastIndexOf:function(a,b){for(b=null==b||b>=this.__array.length?this.__array.length-1:b;0<=b;){if(this.__array[b]==a)return b;--b}return-1}, +pop:function(){return this.fixed?null:this.__array.pop()},push:function(a){return this.fixed?this.__array.length:this.__array.push(a)},removeAt:function(a){return!this.fixed||a<this.__array.length?this.__array.splice(a,1)[0]:null},reverse:function(){this.__array.reverse();return this},set:function(a,b){return!this.fixed||a<this.__array.length?this.__array[a]=b:b},shift:function(){return this.fixed?null:this.__array.shift()},slice:function(a,b){null==a&&(a=0);null==b&&(b=16777215);return new of(0, +!1,this.__array.slice(a,b))},sort:function(a){this.__array.sort(a)},splice:function(a,b){return new of(0,!1,this.__array.splice(a,b))},toJSON:function(){return this.__array},toString:function(){return null!=this.__array?this.__array.toString():null},unshift:function(a){this.fixed||this.__array.unshift(a)},get_length:function(){return this.__array.length},set_length:function(a){if(!this.fixed){var b=this.__array.length;0>a&&(a=0);if(a>b)for(;b<a;)b++,this.__array.push(null);else for(;this.__array.length> +a;)this.__array.pop()}return this.__array.length},__class__:of,__properties__:{set_length:"set_length",get_length:"get_length"}};var jj=function(){md.call(this);null==zc.application&&(zc.application=this);null==zc.current&&(zc.current=new yh);zc.current.__loaderInfo=Jf.create(null);zc.current.__loaderInfo.content=zc.current};k["openfl.display.Application"]=jj;jj.__name__="openfl.display.Application";jj.__super__=md;jj.prototype=u(md.prototype,{createWindow:function(a){var b=new Xj(this,a);this.__windows.push(b); +this.__windowByID.h[b.id]=b;var c=q(this,this.__onWindowClose);b.onClose.add(function(){c(b)},!1,-1E4);null==this.__window&&(this.__window=b,b.onActivate.add(q(this,this.onWindowActivate)),b.onRenderContextLost.add(q(this,this.onRenderContextLost)),b.onRenderContextRestored.add(q(this,this.onRenderContextRestored)),b.onDeactivate.add(q(this,this.onWindowDeactivate)),b.onDropFile.add(q(this,this.onWindowDropFile)),b.onEnter.add(q(this,this.onWindowEnter)),b.onExpose.add(q(this,this.onWindowExpose)), +b.onFocusIn.add(q(this,this.onWindowFocusIn)),b.onFocusOut.add(q(this,this.onWindowFocusOut)),b.onFullscreen.add(q(this,this.onWindowFullscreen)),b.onKeyDown.add(q(this,this.onKeyDown)),b.onKeyUp.add(q(this,this.onKeyUp)),b.onLeave.add(q(this,this.onWindowLeave)),b.onMinimize.add(q(this,this.onWindowMinimize)),b.onMouseDown.add(q(this,this.onMouseDown)),b.onMouseMove.add(q(this,this.onMouseMove)),b.onMouseMoveRelative.add(q(this,this.onMouseMoveRelative)),b.onMouseUp.add(q(this,this.onMouseUp)),b.onMouseWheel.add(q(this, +this.onMouseWheel)),b.onMove.add(q(this,this.onWindowMove)),b.onRender.add(q(this,this.render)),b.onResize.add(q(this,this.onWindowResize)),b.onRestore.add(q(this,this.onWindowRestore)),b.onTextEdit.add(q(this,this.onTextEdit)),b.onTextInput.add(q(this,this.onTextInput)),this.onWindowCreate());this.onCreateWindow.dispatch(b);return b},__class__:jj});var Ja=function(a,b,c,d){null==d&&(d=-1);null==c&&(c=!0);this.__drawableType=0;this.transparent=c;null==a&&(a=0);null==b&&(b=0);0>a&&(a=0);0>b&&(b=0); +this.width=a;this.height=b;this.rect=new fa(0,0,a,b);this.__textureWidth=a;this.__textureHeight=b;0<a&&0<b&&(c?0==(d&-16777216)&&(d=0):d=-16777216|d&16777215,this.image=new Db(null,0,0,a,b,d<<8|d>>>24&255),this.image.set_transparent(c),this.readable=this.__isValid=!0);this.__renderTransform=new Aa;this.__worldAlpha=1;this.__worldTransform=new Aa;this.__worldColorTransform=new Gc;this.__renderable=!0};k["openfl.display.BitmapData"]=Ja;Ja.__name__="openfl.display.BitmapData";Ja.__interfaces__=[Zd]; +Ja.fromBase64=function(a,b){return null};Ja.fromBytes=function(a,b){return null};Ja.fromCanvas=function(a,b){null==b&&(b=!0);if(null==a)return null;var c=new Ja(0,0,b,0);c.__fromImage(Db.fromCanvas(a));c.image.set_transparent(b);return c};Ja.fromFile=function(a){return null};Ja.fromImage=function(a,b){null==b&&(b=!0);if(null==a||null==a.buffer)return null;var c=new Ja(0,0,b,0);c.__fromImage(a);c.image.set_transparent(b);return null!=c.image?c:null};Ja.fromTexture=function(a){if(null==a)return null; +var b=new Ja(a.__width,a.__height,!0,0);b.readable=!1;b.__texture=a;b.__textureContext=a.__textureContext;b.image=null;return b};Ja.loadFromBase64=function(a,b){return Db.loadFromBase64(a,b).then(function(a){return eb.withValue(Ja.fromImage(a))})};Ja.loadFromBytes=function(a,b){return Db.loadFromBytes(yb.toBytes(a)).then(function(a){a=Ja.fromImage(a);null!=b&&a.__applyAlpha(b);return eb.withValue(a)})};Ja.loadFromFile=function(a){return Db.loadFromFile(a).then(function(a){return eb.withValue(Ja.fromImage(a))})}; +Ja.prototype={height:null,image:null,readable:null,rect:null,transparent:null,width:null,__blendMode:null,__drawableType:null,__framebuffer:null,__framebufferContext:null,__indexBuffer:null,__indexBufferContext:null,__indexBufferData:null,__indexBufferGrid:null,__isMask:null,__isValid:null,__mask:null,__renderable:null,__renderTransform:null,__scrollRect:null,__stencilBuffer:null,__surface:null,__texture:null,__textureContext:null,__textureHeight:null,__textureVersion:null,__textureWidth:null,__transform:null, +__uvRect:null,__vertexBuffer:null,__vertexBufferContext:null,__vertexBufferData:null,__vertexBufferGrid:null,__vertexBufferHeight:null,__vertexBufferScaleX:null,__vertexBufferScaleY:null,__vertexBufferWidth:null,__worldAlpha:null,__worldColorTransform:null,__worldTransform:null,applyFilter:function(a,b,c,d){if(this.readable&&null!=a&&a.readable){a=d.__needSecondBitmapData;var e=d.__preserveObject,g=null;var f=a?new Ja(this.width,this.height,!0,0):this;e&&(g=new Ja(this.width,this.height,!0,0));d.__preserveObject&& +g.copyPixels(this,this.rect,c);b=d.__applyFilter(f,this,b,c);d.__preserveObject&&b.draw(g,null,null);a&&b==f&&(f.image.version=this.image.version,this.image=f.image);this.image.dirty=!0;this.image.version++}},clone:function(){if(this.__isValid)if(this.readable||null!=this.image)var a=Ja.fromImage(this.image.clone(),this.transparent);else a=new Ja(0,0,this.transparent,0),a.width=this.width,a.height=this.height,a.__textureWidth=this.__textureWidth,a.__textureHeight=this.__textureHeight,a.rect.copyFrom(this.rect), +a.__framebuffer=this.__framebuffer,a.__framebufferContext=this.__framebufferContext,a.__texture=this.__texture,a.__textureContext=this.__textureContext,a.__isValid=!0;else a=new Ja(this.width,this.height,this.transparent,0);a.__worldTransform.copyFrom(this.__worldTransform);a.__renderTransform.copyFrom(this.__renderTransform);return a},colorTransform:function(a,b){this.readable&&this.image.colorTransform(a.__toLimeRectangle(),b.__toLimeColorMatrix())},compare:function(a){if(a==this)return 0;if(null== +a)return-1;if(0==this.readable||0==a.readable)return-2;if(this.width!=a.width)return-3;if(this.height!=a.height)return-4;if(null!=this.image&&null!=a.image&&this.image.get_format()==a.image.get_format()){for(var b=this.image.get_data(),c=a.image.get_data(),d=!0,e=0,g=b.length;e<g;){var f=e++;if(b[f]!=c[f]){d=!1;break}}if(d)return 0}b=null;e=0;for(g=this.height;e<g;){f=e++;for(var l=0,h=this.width;l<h;){var m=l++;c=!1;var k=this.getPixel32(m,f);var p=a.getPixel32(m,f);d=0;if(k!=p){var n=(k>>>16&255)- +(p>>>16&255);var r=(k>>>8&255)-(p>>>8&255);var q=(k&255)-(p&255);0>n&&(n*=-1);0>r&&(r*=-1);0>q&&(q*=-1);0==n&&0==r&&0==q?(k=(k>>>24&255)-(p>>>24&255),0!=k&&(d=(d>>>24&255)<<24|16711680|(d>>>8&255)<<8|d&255,d=(d>>>24&255)<<24|(d>>>16&255)<<16|65280|d&255,d=(d>>>24&255)<<24|(d>>>16&255)<<16|(d>>>8&255)<<8|255,d=(k&255)<<24|(d>>>16&255)<<16|(d>>>8&255)<<8|d&255,c=!0)):(d=(d>>>24&255)<<24|(n&255)<<16|(d>>>8&255)<<8|d&255,d=(d>>>24&255)<<24|(d>>>16&255)<<16|(r&255)<<8|d&255,d=(d>>>24&255)<<24|(d>>>16& +255)<<16|(d>>>8&255)<<8|q&255,d=-16777216|(d>>>16&255)<<16|(d>>>8&255)<<8|d&255,c=!0)}c&&(null==b&&(b=new Ja(this.width,this.height,this.transparent||a.transparent,0)),b.setPixel32(m,f,d))}}return null==b?0:b},copyChannel:function(a,b,c,d,e){if(this.readable){switch(d){case 1:d=kf.RED;break;case 2:d=kf.GREEN;break;case 4:d=kf.BLUE;break;case 8:d=kf.ALPHA;break;default:return}switch(e){case 1:e=kf.RED;break;case 2:e=kf.GREEN;break;case 4:e=kf.BLUE;break;case 8:e=kf.ALPHA;break;default:return}this.image.copyChannel(a.image, +b.__toLimeRectangle(),c.__toLimeVector2(),d,e)}},copyPixels:function(a,b,c,d,e,g){null==g&&(g=!1);this.readable&&null!=a&&(null!=e&&(Ja.__tempVector.x=e.x,Ja.__tempVector.y=e.y),this.image.copyPixels(a.image,b.__toLimeRectangle(),c.__toLimeVector2(),null!=d?d.image:null,null!=e?Ja.__tempVector:null,g))},dispose:function(){this.image=null;this.height=this.width=0;this.rect=null;this.readable=this.__isValid=!1;this.__textureContext=this.__texture=this.__framebufferContext=this.__framebuffer=this.__vertexBuffer= +this.__surface=null},disposeImage:function(){this.readable=!1},draw:function(a,b,c,d,e,g){null==g&&(g=!1);if(null!=a){a.__update(!1,!0);var f=Aa.__pool.get();f.copyFrom(a.__renderTransform);f.invert();null!=b&&f.concat(b);b=null;null!=e&&(b=Aa.__pool.get(),b.copyFrom(f),b.invert());var l=new Gc;l.__copyFrom(a.__worldColorTransform);l.__invert();if(this.readable||null==Da.get_current().stage.context3D){if(null!=c){var h=fa.__pool.get(),m=Aa.__pool.get();a.__getBounds(h,m);var k=Math.ceil(h.width), +p=Math.ceil(h.height);m.tx=-h.x;m.ty=-h.y;k=new Ja(k,p,!0,0);k.draw(a,m);k.colorTransform(k.rect,c);k.__renderTransform.identity();k.__renderTransform.tx=h.x;k.__renderTransform.ty=h.y;k.__renderTransform.concat(a.__renderTransform);k.__worldAlpha=a.__worldAlpha;k.__worldColorTransform.__copyFrom(a.__worldColorTransform);a=k;fa.__pool.release(h);Aa.__pool.release(m)}za.convertToCanvas(this.image);c=new Yg(this.image.buffer.__srcContext);c.__allowSmoothing=g;c.__overrideBlendMode=d;c.__worldTransform= +f;c.__worldAlpha=1/a.__worldAlpha;c.__worldColorTransform=l;null!=e&&c.__pushMaskRect(e,b);this.__drawCanvas(a,c)}else null==this.__textureContext&&(this.__textureContext=md.current.__window.context),null!=c&&l.__combine(c),c=new Ab(Da.get_current().stage.context3D,this),c.__allowSmoothing=g,c.__overrideBlendMode=d,c.__worldTransform=f,c.__worldAlpha=1/a.__worldAlpha,c.__worldColorTransform=l,c.__resize(this.width,this.height),null!=e&&c.__pushMaskRect(e,b),this.__drawGL(a,c);null!=e&&(c.__popMaskRect(), +Aa.__pool.release(b));Aa.__pool.release(f)}},drawWithQuality:function(a,b,c,d,e,g,f){null==g&&(g=!1);this.draw(a,b,c,d,e,2!=f&&g)},encode:function(a,b,c){if(!this.readable||null==a)return null;null==c&&(c=new kc(0));var d=this.image;if(!a.equals(this.rect)){var e=Aa.__pool.get();e.tx=Math.round(-a.x);e.ty=Math.round(-a.y);a=new Ja(Math.ceil(a.width),Math.ceil(a.height),!0,0);a.draw(this,e);d=a.image;Aa.__pool.release(e)}return b instanceof Yo?(c.writeBytes(yb.fromBytes(d.encode(um.PNG)),0,0),c):b instanceof +Dm?(c.writeBytes(yb.fromBytes(d.encode(um.JPEG,O.__cast(b,Dm).quality)),0,0),c):null},fillRect:function(a,b){this.__fillRect(a,b,!0)},floodFill:function(a,b,c){this.readable&&this.image.floodFill(a,b,c,1)},generateFilterRect:function(a,b){return a.clone()},getIndexBuffer:function(a,b){if(null==this.__indexBuffer||this.__indexBufferContext!=a.__context||null!=b&&null==this.__indexBufferGrid||null!=this.__indexBufferGrid&&!this.__indexBufferGrid.equals(b)){this.__indexBufferContext=a.__context;this.__indexBuffer= +null;if(null!=b){null==this.__indexBufferGrid&&(this.__indexBufferGrid=new fa);this.__indexBufferGrid.copyFrom(b);var c=b.width;b=b.height;0!=c&&0!=b?(this.__indexBufferData=c=new Uint16Array(54),this.__indexBufferData[0]=0,this.__indexBufferData[1]=1,this.__indexBufferData[2]=2,this.__indexBufferData[3]=2,this.__indexBufferData[4]=1,this.__indexBufferData[5]=3,this.__indexBufferData[6]=4,this.__indexBufferData[7]=0,this.__indexBufferData[8]=5,this.__indexBufferData[9]=5,this.__indexBufferData[10]= +0,this.__indexBufferData[11]=2,this.__indexBufferData[12]=6,this.__indexBufferData[13]=4,this.__indexBufferData[14]=7,this.__indexBufferData[15]=7,this.__indexBufferData[16]=4,this.__indexBufferData[17]=5,this.__indexBufferData[18]=8,this.__indexBufferData[19]=9,this.__indexBufferData[20]=0,this.__indexBufferData[21]=0,this.__indexBufferData[22]=9,this.__indexBufferData[23]=1,this.__indexBufferData[24]=10,this.__indexBufferData[25]=8,this.__indexBufferData[26]=4,this.__indexBufferData[27]=4,this.__indexBufferData[28]= +8,this.__indexBufferData[29]=0,this.__indexBufferData[30]=11,this.__indexBufferData[31]=10,this.__indexBufferData[32]=6,this.__indexBufferData[33]=6,this.__indexBufferData[34]=10,this.__indexBufferData[35]=4,this.__indexBufferData[36]=12,this.__indexBufferData[37]=13,this.__indexBufferData[38]=8,this.__indexBufferData[39]=8,this.__indexBufferData[40]=13,this.__indexBufferData[41]=9,this.__indexBufferData[42]=14,this.__indexBufferData[43]=12,this.__indexBufferData[44]=10,this.__indexBufferData[45]= +10,this.__indexBufferData[46]=12,this.__indexBufferData[47]=8,this.__indexBufferData[48]=15,this.__indexBufferData[49]=14,this.__indexBufferData[50]=11,this.__indexBufferData[51]=11,this.__indexBufferData[52]=14,this.__indexBufferData[53]=10,this.__indexBuffer=a.createIndexBuffer(54)):0==c&&0!=b?(this.__indexBufferData=c=new Uint16Array(18),this.__indexBufferData[0]=0,this.__indexBufferData[1]=1,this.__indexBufferData[2]=2,this.__indexBufferData[3]=2,this.__indexBufferData[4]=1,this.__indexBufferData[5]= +3,this.__indexBufferData[6]=4,this.__indexBufferData[7]=5,this.__indexBufferData[8]=0,this.__indexBufferData[9]=0,this.__indexBufferData[10]=5,this.__indexBufferData[11]=1,this.__indexBufferData[12]=6,this.__indexBufferData[13]=7,this.__indexBufferData[14]=4,this.__indexBufferData[15]=4,this.__indexBufferData[16]=7,this.__indexBufferData[17]=5,this.__indexBuffer=a.createIndexBuffer(18)):0!=c&&0==b&&(this.__indexBufferData=c=new Uint16Array(18),this.__indexBufferData[0]=0,this.__indexBufferData[1]= +1,this.__indexBufferData[2]=2,this.__indexBufferData[3]=2,this.__indexBufferData[4]=1,this.__indexBufferData[5]=3,this.__indexBufferData[6]=4,this.__indexBufferData[7]=0,this.__indexBufferData[8]=5,this.__indexBufferData[9]=5,this.__indexBufferData[10]=0,this.__indexBufferData[11]=2,this.__indexBufferData[12]=6,this.__indexBufferData[13]=4,this.__indexBufferData[14]=7,this.__indexBufferData[15]=7,this.__indexBufferData[16]=4,this.__indexBufferData[17]=5,this.__indexBuffer=a.createIndexBuffer(18))}else this.__indexBufferGrid= +null;null==this.__indexBuffer&&(this.__indexBufferData=c=new Uint16Array(6),this.__indexBufferData[0]=0,this.__indexBufferData[1]=1,this.__indexBufferData[2]=2,this.__indexBufferData[3]=2,this.__indexBufferData[4]=1,this.__indexBufferData[5]=3,this.__indexBuffer=a.createIndexBuffer(6));this.__indexBuffer.uploadFromTypedArray(this.__indexBufferData)}return this.__indexBuffer},getVertexBuffer:function(a,b,c){if(null==this.__vertexBuffer||this.__vertexBufferContext!=a.__context||null!=b&&null==this.__vertexBufferGrid|| +null!=this.__vertexBufferGrid&&!this.__vertexBufferGrid.equals(b)||null!=c&&(this.__vertexBufferWidth!=c.get_width()||this.__vertexBufferHeight!=c.get_height()||this.__vertexBufferScaleX!=c.get_scaleX()||this.__vertexBufferScaleY!=c.get_scaleY())){this.__uvRect=new fa(0,0,this.width,this.height);this.__vertexBufferContext=a.__context;this.__vertexBuffer=null;null!=c&&(this.__vertexBufferWidth=c.get_width(),this.__vertexBufferHeight=c.get_height(),this.__vertexBufferScaleX=c.get_scaleX(),this.__vertexBufferScaleY= +c.get_scaleY());if(null!=b&&null!=c){null==this.__vertexBufferGrid&&(this.__vertexBufferGrid=new fa);this.__vertexBufferGrid.copyFrom(b);this.__vertexBufferWidth=c.get_width();this.__vertexBufferHeight=c.get_height();this.__vertexBufferScaleX=c.get_scaleX();this.__vertexBufferScaleY=c.get_scaleY();var d=b.width,e=b.height;if(0!=d&&0!=e){var g=new Float32Array(224);this.__vertexBufferData=g;var f=b.x,l=b.y,h=this.width-d-f,m=this.height-e-l;b=f/this.width;g=l/this.height;d/=this.width;e/=this.height; +f/=c.get_scaleX();l/=c.get_scaleY();h/=c.get_scaleX();var k=m/c.get_scaleY();m=c.get_width()/c.get_scaleX()-f-h;h=c.get_height()/c.get_scaleY()-l-k;this.__vertexBufferData[0]=f;this.__vertexBufferData[1]=l;this.__vertexBufferData[3]=1*b;this.__vertexBufferData[4]=1*g;this.__vertexBufferData[15]=l;this.__vertexBufferData[18]=1*g;this.__vertexBufferData[28]=f;this.__vertexBufferData[31]=1*b;this.__vertexBufferData[56]=f+m;this.__vertexBufferData[57]=l;this.__vertexBufferData[59]=1*(b+d);this.__vertexBufferData[60]= +1*g;this.__vertexBufferData[70]=f+m;this.__vertexBufferData[73]=1*(b+d);this.__vertexBufferData[84]=this.width;this.__vertexBufferData[85]=l;this.__vertexBufferData[87]=1;this.__vertexBufferData[88]=1*g;this.__vertexBufferData[98]=this.width;this.__vertexBufferData[101]=1;this.__vertexBufferData[112]=f;this.__vertexBufferData[113]=l+h;this.__vertexBufferData[115]=1*b;this.__vertexBufferData[116]=1*(g+e);this.__vertexBufferData[127]=l+h;this.__vertexBufferData[130]=1*(g+e);this.__vertexBufferData[140]= +f+m;this.__vertexBufferData[141]=l+h;this.__vertexBufferData[143]=1*(b+d);this.__vertexBufferData[144]=1*(g+e);this.__vertexBufferData[154]=this.width;this.__vertexBufferData[155]=l+h;this.__vertexBufferData[157]=1;this.__vertexBufferData[158]=1*(g+e);this.__vertexBufferData[168]=f;this.__vertexBufferData[169]=this.height;this.__vertexBufferData[171]=1*b;this.__vertexBufferData[172]=1;this.__vertexBufferData[183]=this.height;this.__vertexBufferData[186]=1;this.__vertexBufferData[196]=f+m;this.__vertexBufferData[197]= +this.height;this.__vertexBufferData[199]=1*(b+d);this.__vertexBufferData[200]=1;this.__vertexBufferData[210]=this.width;this.__vertexBufferData[211]=this.height;this.__vertexBufferData[213]=1;this.__vertexBufferData[214]=1;this.__vertexBuffer=a.createVertexBuffer(16,14)}else 0==d&&0!=e?(this.__vertexBufferData=g=new Float32Array(112),l=b.y,m=this.height-e-l,g=l/this.height,e/=this.height,l/=c.get_scaleY(),k=m/c.get_scaleY(),h=c.get_height()/c.get_scaleY()-l-k,c=c.get_width()/c.get_scaleX(),this.__vertexBufferData[0]= +c,this.__vertexBufferData[1]=l,this.__vertexBufferData[3]=1,this.__vertexBufferData[4]=1*g,this.__vertexBufferData[15]=l,this.__vertexBufferData[18]=1*g,this.__vertexBufferData[28]=c,this.__vertexBufferData[31]=1,this.__vertexBufferData[56]=c,this.__vertexBufferData[57]=l+h,this.__vertexBufferData[59]=1,this.__vertexBufferData[60]=1*(g+e),this.__vertexBufferData[71]=l+h,this.__vertexBufferData[74]=1*(g+e),this.__vertexBufferData[84]=c,this.__vertexBufferData[85]=this.height,this.__vertexBufferData[87]= +1,this.__vertexBufferData[88]=1,this.__vertexBufferData[99]=this.height,this.__vertexBufferData[102]=1,this.__vertexBuffer=a.createVertexBuffer(8,14)):0==e&&0!=d&&(this.__vertexBufferData=g=new Float32Array(112),f=b.x,h=this.width-d-f,b=f/this.width,d/=this.width,f/=c.get_scaleX(),h/=c.get_scaleX(),m=c.get_width()/c.get_scaleX()-f-h,c=c.get_height()/c.get_scaleY(),this.__vertexBufferData[0]=f,this.__vertexBufferData[1]=c,this.__vertexBufferData[3]=1*b,this.__vertexBufferData[4]=1,this.__vertexBufferData[15]= +c,this.__vertexBufferData[18]=1,this.__vertexBufferData[28]=f,this.__vertexBufferData[31]=1*b,this.__vertexBufferData[56]=f+m,this.__vertexBufferData[57]=c,this.__vertexBufferData[59]=1*(b+d),this.__vertexBufferData[60]=1,this.__vertexBufferData[70]=f+m,this.__vertexBufferData[73]=1*(b+d),this.__vertexBufferData[84]=this.width,this.__vertexBufferData[85]=c,this.__vertexBufferData[87]=1,this.__vertexBufferData[88]=1,this.__vertexBufferData[98]=this.width,this.__vertexBufferData[101]=1,this.__vertexBuffer= +a.createVertexBuffer(8,14))}else this.__vertexBufferGrid=null;null==this.__vertexBuffer&&(this.__vertexBufferData=g=new Float32Array(56),this.__vertexBufferData[0]=this.width,this.__vertexBufferData[1]=this.height,this.__vertexBufferData[3]=1,this.__vertexBufferData[4]=1,this.__vertexBufferData[15]=this.height,this.__vertexBufferData[18]=1,this.__vertexBufferData[28]=this.width,this.__vertexBufferData[31]=1,this.__vertexBuffer=a.createVertexBuffer(3,14));this.__vertexBuffer.uploadFromTypedArray(Ug.toArrayBufferView(this.__vertexBufferData))}return this.__vertexBuffer}, +getColorBoundsRect:function(a,b,c){null==c&&(c=!0);if(!this.readable)return new fa(0,0,this.width,this.height);a=this.image.getColorBoundsRect(a,b,c,1);return new fa(a.x,a.y,a.width,a.height)},getPixel:function(a,b){return this.readable?this.image.getPixel(a,b,1):0},getPixel32:function(a,b){return this.readable?this.image.getPixel32(a,b,1):0},getPixels:function(a){if(!this.readable)return null;null==a&&(a=this.rect);a=yb.fromBytes(this.image.getPixels(a.__toLimeRectangle(),1));a.__endian=0;return a}, +getSurface:function(){if(!this.readable)return null;null==this.__surface&&(this.__surface=Hu.fromImage(this.image));return this.__surface},getTexture:function(a){if(!this.__isValid)return null;if(null==this.__texture||this.__textureContext!=a.__context)this.__textureContext=a.__context,this.__texture=a.createRectangleTexture(this.width,this.height,1,!1),this.__textureVersion=-1;za.sync(this.image,!1);null!=this.image&&this.image.version>this.__textureVersion&&(null!=this.__surface&&Iu.flush(this.__surface), +a=this.image,Zb.__supportsBGRA||0==a.get_format()||(a=a.clone(),a.set_format(0)),this.__texture.__uploadFromImage(a),this.__textureVersion=this.image.version,this.__textureWidth=a.buffer.width,this.__textureHeight=a.buffer.height);this.readable||null==this.image||(this.image=this.__surface=null);return this.__texture},getVector:function(a){a=this.getPixels(a);for(var b=ca.toFloat(yb.get_length(a))/ca.toFloat(4)|0,c=ub.toIntVector(null,b,!0),d=0;d<b;){var e=d++;c.set(e,a.readUnsignedInt())}return c}, +histogram:function(a){a=null!=a?a:new fa(0,0,this.width,this.height);a=this.getPixels(a);for(var b=[],c=[],d=0;256>d;)d++,c.push(0);b.push(c);c=[];for(d=0;256>d;)d++,c.push(0);b.push(c);c=[];for(d=0;256>d;)d++,c.push(0);b.push(c);c=[];for(d=0;256>d;)d++,c.push(0);b.push(c);d=b;b=0;for(c=yb.get_length(a);b<c;){var e=b++;++d[e%4][a.readUnsignedByte()]}return d},hitTest:function(a,b,c,d,e){null==e&&(e=1);if(!this.readable)return!1;c instanceof Vb&&(c=O.__cast(c,Vb).__bitmapData);if(c instanceof oa){e= +c;c=e.x-a.x|0;var g=e.y-a.y|0;if(this.rect.contains(c,g)){var f=this.getPixel32(c,g);if((f>>24&255)>b)return!0}}else if(c instanceof Ja){f=c;null==d?g=c=0:(c=Math.round(d.x-a.x),g=Math.round(d.y-a.y));d=fa.__pool.get();d.setTo(c,g,f.width,f.height);if(this.rect.intersects(d)){0>c?(d.x=0,d.width=Math.min(f.width+c,this.width)):d.width=Math.min(f.width,this.width-c);0>g?(d.y=0,d.height=Math.min(f.height+g,this.height)):d.height=Math.min(f.height,this.height-g);a=this.getPixels(d);d.x=0>c?-c:0;d.y=0> +g?-g:0;g=f.getPixels(d);f=d.width*d.height|0;c=0;for(var l=f;c<l;){c++;f=a.readUnsignedInt();var h=g.readUnsignedInt();if(ca.gt(f>>>24&255,b)&&ca.gt(h>>>24&255,e))return fa.__pool.release(d),!0}}fa.__pool.release(d)}else if(c instanceof fa){e=fa.__pool.get();e.copyFrom(c);e.offset(-a.x,-a.y);e.__contract(0,0,this.width,this.height);if(0<e.width&&0<e.height)for(a=this.getPixels(e),f=ca.toFloat(yb.get_length(a))/ca.toFloat(4)|0,c=0,l=f;c<l;)if(c++,f=a.readUnsignedInt(),ca.gt(f>>>24&255,b))return fa.__pool.release(e), +!0;fa.__pool.release(e)}return!1},lock:function(){},merge:function(a,b,c,d,e,g,f){this.readable&&null!=a&&a.readable&&null!=b&&null!=c&&this.image.merge(a.image,b.__toLimeRectangle(),c.__toLimeVector2(),d,e,g,f)},noise:function(a,b,c,d,e){null==e&&(e=!1);null==d&&(d=7);null==c&&(c=255);null==b&&(b=0);if(this.readable){var g=function(){a=1103515245*a+12345;return(Math.abs(a/65536)|0)%32768};g();c-=b;var f=1==(d&1),l=1==(d&2)>>1,h=1==(d&4)>>2;d=1==(d&8)>>3;for(var m=0,k=this.height;m<k;)for(var p=m++, +n=0,r=this.width;n<r;){var q=n++,v=0,u=0,w=0,B=255;e?(v=w=u=b+g()%c,B=255):(f&&(v=b+g()%c),l&&(w=b+g()%c),h&&(u=b+g()%c),d&&(B=b+g()%c));B=(B<<8)+v;B=(B<<8)+w;B=(B<<8)+u;this.setPixel32(q,p,B)}}},paletteMap:function(a,b,c,d,e,g,f){var l=b.width|0,x=b.height|0;a=a.getPixels(b);b=0;for(var m=x*l;b<m;){var h=b++;var p=a.readUnsignedInt();var k=null==f?p&-16777216:f[p>>24&255];var n=null==d?p&16711680:d[p>>16&255];var r=null==e?p&65280:e[p>>8&255];p=null==g?p&255:g[p&255];n=k+n+r+p;a.position=4*h;a.writeUnsignedInt(n)}a.position= +0;d=fa.__pool.get();d.setTo(c.x,c.y,l,x);this.setPixels(d,a);fa.__pool.release(d)},perlinNoise:function(a,b,c,d,e,g,f,l,h){null==l&&(l=!1);null==f&&(f=7);this.readable&&(new Yh(d,c,f,l,.5,e,.15)).fill(this,a,b,0)},scroll:function(a,b){this.readable&&this.image.scroll(a,b)},setPixel:function(a,b,c){this.readable&&this.image.setPixel(a,b,c,1)},setPixel32:function(a,b,c){this.readable&&this.image.setPixel32(a,b,c,1)},setPixels:function(a,b){if(this.readable&&null!=a){var c=a.width*a.height*4;if(ca.toFloat(b.length- +b.position)<c)throw new Ec("End of file was encountered.",2030);this.image.setPixels(a.__toLimeRectangle(),yb.toBytePointer(b),1,pu.toLimeEndian(b.__endian))}},setVector:function(a,b){var c=new kc(0);yb.set_length(c,4*b.get_length());for(b=b.iterator();b.hasNext();){var d=b.next();c.writeUnsignedInt(d)}c.position=0;this.setPixels(a,c)},threshold:function(a,b,c,d,e,g,f,l){null==l&&(l=!1);null==f&&(f=-1);null==g&&(g=0);return null==a||null==b||null==c||b.x>a.width||b.y>a.height||c.x>this.width||c.y> +this.height?0:this.image.threshold(a.image,b.__toLimeRectangle(),c.__toLimeVector2(),d,e,g,f,l,1)},unlock:function(a){},__applyAlpha:function(a){za.convertToCanvas(this.image);za.createImageData(this.image);for(var b=this.image.buffer.data,c=0,d=yb.get_length(a);c<d;){var e=c++;b[4*e+3]=a.readUnsignedByte()}this.image.version++},__drawCairo:function(a,b){},__drawCanvas:function(a,b){var c=this.image.buffer;b.__allowSmoothing||b.applySmoothing(c.__srcContext,!1);b.__render(a);b.__allowSmoothing||b.applySmoothing(c.__srcContext, +!0);c.__srcContext.setTransform(1,0,0,1,0,0);c.__srcImageData=null;c.data=null;this.image.dirty=!0;this.image.version++},__drawGL:function(a,b){var c=b.__context3D,d=c.__state.renderToTexture,e=c.__state.renderToTextureDepthStencil,g=c.__state.renderToTextureAntiAlias,f=c.__state.renderToTextureSurfaceSelector;c.setRenderToTexture(this.getTexture(c),!0);b.__render(a);null!=d?c.setRenderToTexture(d,e,g,f):c.setRenderToBackBuffer()},__fillRect:function(a,b,c){if(null!=a)if(this.transparent&&0==(b&-16777216)&& +(b=0),c&&null!=this.__texture&&null!=this.__texture.__glFramebuffer&&"opengl"==Da.get_current().stage.__renderer.__type){c=Da.get_current().stage.__renderer.__context3D;var d=!this.rect.equals(a),e=c.__state.renderToTexture,g=c.__state.renderToTextureDepthStencil,f=c.__state.renderToTextureAntiAlias,l=c.__state.renderToTextureSurfaceSelector;c.setRenderToTexture(this.__texture);d&&c.setScissorRectangle(a);c.clear((b>>>16&255)/255,(b>>>8&255)/255,(b&255)/255,this.transparent?(b>>>24&255)/255:1,0,0, +1);d&&c.setScissorRectangle(null);null!=e?c.setRenderToTexture(e,g,f,l):c.setRenderToBackBuffer()}else this.readable&&this.image.fillRect(a.__toLimeRectangle(),b,1)},__fromBase64:function(a,b){a=Db.fromBase64(a,b);this.__fromImage(a)},__fromBytes:function(a,b){a=Db.fromBytes(yb.toBytes(a));this.__fromImage(a);null!=b&&this.__applyAlpha(b)},__fromFile:function(a){a=Db.fromFile(a);this.__fromImage(a)},__fromImage:function(a){null!=a&&null!=a.buffer&&(this.image=a,this.width=a.width,this.height=a.height, +this.rect=new fa(0,0,a.width,a.height),this.__textureWidth=this.width,this.__textureHeight=this.height,this.__isValid=this.readable=!0)},__getBounds:function(a,b){var c=fa.__pool.get();this.rect.__transform(c,b);a.__expand(c.x,c.y,c.width,c.height);fa.__pool.release(c)},__loadFromBase64:function(a,b){var c=this;return Db.loadFromBase64(a,b).then(function(a){c.__fromImage(a);return eb.withValue(c)})},__loadFromBytes:function(a,b){var c=this;return Db.loadFromBytes(yb.toBytes(a)).then(function(a){c.__fromImage(a); +null!=b&&c.__applyAlpha(b);return eb.withValue(c)})},__loadFromFile:function(a){var b=this;return Db.loadFromFile(a).then(function(a){b.__fromImage(a);return eb.withValue(b)})},__resize:function(a,b){this.width=a;this.height=b;this.rect.width=a;this.rect.height=b;this.__textureWidth=a;this.__textureHeight=b},__setUVRect:function(a,b,c,d,e){if(null!=this.getVertexBuffer(a)&&(d!=this.__uvRect.width||e!=this.__uvRect.height||b!=this.__uvRect.x||c!=this.__uvRect.y)){null==this.__uvRect&&(this.__uvRect= +new fa);this.__uvRect.setTo(b,c,d,e);a=0<this.__textureWidth?b/this.__textureWidth:0;c=0<this.__textureHeight?c/this.__textureHeight:0;b=0<this.__textureWidth?d/this.__textureWidth:0;var g=0<this.__textureHeight?e/this.__textureHeight:0;this.__vertexBufferData[0]=d;this.__vertexBufferData[1]=e;this.__vertexBufferData[3]=a+b;this.__vertexBufferData[4]=c+g;this.__vertexBufferData[15]=e;this.__vertexBufferData[17]=a;this.__vertexBufferData[18]=c+g;this.__vertexBufferData[28]=d;this.__vertexBufferData[31]= +a+b;this.__vertexBufferData[32]=c;this.__vertexBufferData[45]=a;this.__vertexBufferData[46]=c;this.__vertexBuffer.uploadFromTypedArray(Ug.toArrayBufferView(this.__vertexBufferData))}},__sync:function(){za.sync(this.image,!1)},__update:function(a,b){this.__updateTransforms()},__updateTransforms:function(a){null==a?this.__worldTransform.identity():this.__worldTransform.copyFrom(a);this.__renderTransform.copyFrom(this.__worldTransform)},__class__:Ja};var Re=function(){fb.call(this);this.__allowSmoothing= +!0;this.__pixelRatio=1;this.__tempColorTransform=new Gc;this.__worldAlpha=1};k["openfl.display.DisplayObjectRenderer"]=Re;Re.__name__="openfl.display.DisplayObjectRenderer";Re.__super__=fb;Re.prototype=u(fb.prototype,{__allowSmoothing:null,__blendMode:null,__cleared:null,__context:null,__overrideBlendMode:null,__pixelRatio:null,__roundPixels:null,__stage:null,__tempColorTransform:null,__transparent:null,__type:null,__worldAlpha:null,__worldColorTransform:null,__worldTransform:null,__clear:function(){}, +__getAlpha:function(a){return a*this.__worldAlpha},__getColorTransform:function(a){return null!=this.__worldColorTransform?(this.__tempColorTransform.__copyFrom(this.__worldColorTransform),this.__tempColorTransform.__combine(a),this.__tempColorTransform):a},__popMask:function(){},__popMaskObject:function(a,b){},__popMaskRect:function(){},__pushMask:function(a){},__pushMaskObject:function(a,b){},__pushMaskRect:function(a,b){},__render:function(a){},__renderEvent:function(a){if(null!=a.__customRenderEvent&& +a.__renderable){a.__customRenderEvent.allowSmoothing=this.__allowSmoothing;a.__customRenderEvent.objectMatrix.copyFrom(a.__renderTransform);a.__customRenderEvent.objectColorTransform.__copyFrom(a.__worldColorTransform);a.__customRenderEvent.renderer=this;switch(this.__type){case "cairo":a.__customRenderEvent.type="renderCairo";break;case "canvas":a.__customRenderEvent.type="renderCanvas";break;case "dom":a.__customRenderEvent.type=null!=a.stage&&a.__worldVisible?"renderDOM":"clearDOM";break;case "opengl":this.__cleared|| +this.__clear();this.setShader(a.__worldShader);this.__context3D.__flushGL();a.__customRenderEvent.type="renderOpenGL";break;default:return}this.__setBlendMode(a.__worldBlendMode);this.__pushMaskObject(a);a.dispatchEvent(a.__customRenderEvent);this.__popMaskObject(a);"opengl"==this.__type&&this.setViewport()}},__resize:function(a,b){},__setBlendMode:function(a){},__shouldCacheHardware:function(a,b){if(null==a)return null;switch(a.__drawableType){case 4:case 5:if(1==b)return!0;b=this.__shouldCacheHardware_DisplayObject(a, +b);if(1==b)return!0;if(null!=a.__children){var c=0;for(a=a.__children;c<a.length;){var d=a[c];++c;b=this.__shouldCacheHardware_DisplayObject(d,b);if(1==b)return!0}}return b;case 7:return 1==b?!0:!1;case 9:return!0;default:return this.__shouldCacheHardware_DisplayObject(a,b)}},__shouldCacheHardware_DisplayObject:function(a,b){return 1==b||null!=a.__filters?!0:0==b||null!=a.__graphics&&!Mc.isCompatible(a.__graphics)?!1:null},__updateCacheBitmap:function(a,b){if(null==a)return!1;switch(a.__drawableType){case 2:var c= +a;if(null==c.__bitmapData||null==c.__filters&&"opengl"==this.__type&&null==c.__cacheBitmap)return!1;b=null!=c.__bitmapData.image&&c.__bitmapData.image.version!=c.__imageVersion;break;case 7:var d=a;if(null==d.__filters&&"opengl"==this.__type&&null==d.__cacheBitmap&&!d.__domRender)return!1;b&&(d.__renderDirty=!0);b=b||d.__dirty;break;case 9:if(null==a.__filters&&"opengl"==this.__type&&null==a.__cacheBitmap)return!1}if(a.__isCacheBitmapRender)return!1;d=Gc.__pool.get();d.__copyFrom(a.__worldColorTransform); +null!=this.__worldColorTransform&&d.__combine(this.__worldColorTransform);var e=!1;if(a.get_cacheAsBitmap()||"opengl"!=this.__type&&!d.__isDefault(!0)||"opengl"==this.__type&&null!=a.get_scale9Grid()){e=null;var g=(b=null==a.__cacheBitmap||a.__renderDirty&&(b||null!=a.__children&&0<a.__children.length)||a.opaqueBackground!=a.__cacheBitmapBackground)||null!=a.__graphics&&a.__graphics.__softwareDirty||!a.__cacheBitmapColorTransform.__equals(d,!0),f=b||null!=a.__graphics&&a.__graphics.__hardwareDirty, +l=this.__type;if(g||f)"opengl"==l&&0==this.__shouldCacheHardware(a,null)&&(l="canvas"),!g||"canvas"!=l&&"cairo"!=l||(b=!0),f&&"opengl"==l&&(b=!0);g=b||!a.__cacheBitmap.__worldTransform.equals(a.__worldTransform);c=null!=a.__filters;if("dom"==this.__type&&!c)return!1;if(c&&!b)for(var h=0,m=a.__filters;h<m.length;){var k=m[h];++h;if(k.__renderDirty){b=!0;break}}null==a.__cacheBitmapMatrix&&(a.__cacheBitmapMatrix=new Aa);h=null!=a.__cacheAsBitmapMatrix?a.__cacheAsBitmapMatrix:a.__renderTransform;b|| +h.a==a.__cacheBitmapMatrix.a&&h.b==a.__cacheBitmapMatrix.b&&h.c==a.__cacheBitmapMatrix.c&&h.d==a.__cacheBitmapMatrix.d||(b=!0);!b&&"opengl"!=this.__type&&null!=a.__cacheBitmapData&&null!=a.__cacheBitmapData.image&&a.__cacheBitmapData.image.version<a.__cacheBitmapData.__textureVersion&&(b=!0);if(!b)for(f=a;null!=f;){if(null!=f.get_scrollRect()){g=!0;break}f=f.parent}a.__cacheBitmapMatrix.copyFrom(h);a.__cacheBitmapMatrix.tx=0;var p=f=a.__cacheBitmapMatrix.ty=0,n=0,r=0,q=k=0;m=this.__pixelRatio;if(g|| +b)e=fa.__pool.get(),a.__getFilterBounds(e,a.__cacheBitmapMatrix),n=0<e.width?Math.ceil((e.width+1)*m):0,r=0<e.height?Math.ceil((e.height+1)*m):0,k=0<e.x?Math.ceil(e.x):Math.floor(e.x),q=0<e.y?Math.ceil(e.y):Math.floor(e.y),null!=a.__cacheBitmapData?n>a.__cacheBitmapData.width||r>a.__cacheBitmapData.height?(f=Math.ceil(Math.max(1.25*n,a.__cacheBitmapData.width)),p=Math.ceil(Math.max(1.25*r,a.__cacheBitmapData.height)),b=!0):(f=a.__cacheBitmapData.width,p=a.__cacheBitmapData.height):(f=n,p=r);if(b)if(g= +!0,a.__cacheBitmapBackground=a.opaqueBackground,.5<=n&&.5<=r){var v=null!=a.opaqueBackground&&(f!=n||p!=r),u=null!=a.opaqueBackground?-16777216|a.opaqueBackground:0,w=v?0:u,B="opengl"==this.__type;null==a.__cacheBitmapData||f>a.__cacheBitmapData.width||p>a.__cacheBitmapData.height?(a.__cacheBitmapData=new Ja(f,p,!0,w),null==a.__cacheBitmap&&(a.__cacheBitmap=new Vb),a.__cacheBitmap.__bitmapData=a.__cacheBitmapData,a.__cacheBitmapRenderer=null):a.__cacheBitmapData.__fillRect(a.__cacheBitmapData.rect, +w,B);v&&(e.setTo(0,0,n,r),a.__cacheBitmapData.__fillRect(e,u,B))}else return Gc.__pool.release(d),a.__cacheBitmap=null,a.__cacheBitmapData=null,a.__cacheBitmapData2=null,a.__cacheBitmapData3=null,a.__cacheBitmapRenderer=null,7==a.__drawableType&&(d=a,null!=d.__cacheBitmap&&(d.__cacheBitmap.__renderTransform.tx-=d.__offsetX*m,d.__cacheBitmap.__renderTransform.ty-=d.__offsetY*m)),!0;else a.__cacheBitmapData=a.__cacheBitmap.get_bitmapData(),a.__cacheBitmapData2=null,a.__cacheBitmapData3=null;if(g||b)a.__cacheBitmap.__worldTransform.copyFrom(a.__worldTransform), +h==a.__renderTransform?(a.__cacheBitmap.__renderTransform.identity(),a.__cacheBitmap.__renderTransform.scale(1/m,1/m),a.__cacheBitmap.__renderTransform.tx=a.__renderTransform.tx+k,a.__cacheBitmap.__renderTransform.ty=a.__renderTransform.ty+q):(a.__cacheBitmap.__renderTransform.copyFrom(a.__cacheBitmapMatrix),a.__cacheBitmap.__renderTransform.invert(),a.__cacheBitmap.__renderTransform.concat(a.__renderTransform),a.__cacheBitmap.__renderTransform.a*=1/m,a.__cacheBitmap.__renderTransform.d*=1/m,a.__cacheBitmap.__renderTransform.tx+= +k,a.__cacheBitmap.__renderTransform.ty+=q);a.__cacheBitmap.smoothing=this.__allowSmoothing;a.__cacheBitmap.__renderable=a.__renderable;a.__cacheBitmap.__worldAlpha=a.__worldAlpha;a.__cacheBitmap.__worldBlendMode=a.__worldBlendMode;a.__cacheBitmap.__worldShader=a.__worldShader;a.__cacheBitmap.set_mask(a.__mask);if(b){if(null==a.__cacheBitmapRenderer||l!=a.__cacheBitmapRenderer.__type)"opengl"==l?a.__cacheBitmapRenderer=new Ab(O.__cast(this,Ab).__context3D,a.__cacheBitmapData):(null==a.__cacheBitmapData.image&& +(a.__cacheBitmapData=new Ja(f,p,!0,null!=a.opaqueBackground?-16777216|a.opaqueBackground:0),a.__cacheBitmap.__bitmapData=a.__cacheBitmapData),za.convertToCanvas(a.__cacheBitmapData.image),a.__cacheBitmapRenderer=new Yg(a.__cacheBitmapData.image.buffer.__srcContext)),a.__cacheBitmapRenderer.__worldTransform=new Aa,a.__cacheBitmapRenderer.__worldColorTransform=new Gc;null==a.__cacheBitmapColorTransform&&(a.__cacheBitmapColorTransform=new Gc);a.__cacheBitmapRenderer.__stage=a.stage;a.__cacheBitmapRenderer.__allowSmoothing= +this.__allowSmoothing;a.__cacheBitmapRenderer.__setBlendMode(10);a.__cacheBitmapRenderer.__worldAlpha=1/a.__worldAlpha;a.__cacheBitmapRenderer.__worldTransform.copyFrom(a.__renderTransform);a.__cacheBitmapRenderer.__worldTransform.invert();a.__cacheBitmapRenderer.__worldTransform.concat(a.__cacheBitmapMatrix);a.__cacheBitmapRenderer.__worldTransform.tx-=k;a.__cacheBitmapRenderer.__worldTransform.ty-=q;a.__cacheBitmapRenderer.__worldTransform.scale(m,m);a.__cacheBitmapRenderer.__pixelRatio=m;a.__cacheBitmapRenderer.__worldColorTransform.__copyFrom(d); +a.__cacheBitmapRenderer.__worldColorTransform.__invert();a.__isCacheBitmapRender=!0;if("opengl"==a.__cacheBitmapRenderer.__type){v=a.__cacheBitmapRenderer;u=v.__context3D;w=u.__state.renderToTexture;B=u.__state.renderToTextureDepthStencil;var E=u.__state.renderToTextureAntiAlias,C=u.__state.renderToTextureSurfaceSelector,N=this.__blendMode;this.__suspendClipAndMask();v.__copyShader(this);a.__cacheBitmapData.__setUVRect(u,0,0,n,r);v.__setRenderTarget(a.__cacheBitmapData);null!=a.__cacheBitmapData.image&& +(a.__cacheBitmapData.__textureVersion=a.__cacheBitmapData.image.version+1);a.__cacheBitmapData.__drawGL(a,v);if(c){var z=!1;h=0;for(m=a.__filters;h<m.length;)k=m[h],++h,k.__preserveObject&&(z=!0);c=a.__cacheBitmapData;q=null;null==a.__cacheBitmapData2||f>a.__cacheBitmapData2.width||p>a.__cacheBitmapData2.height?a.__cacheBitmapData2=new Ja(f,p,!0,0):(a.__cacheBitmapData2.fillRect(a.__cacheBitmapData2.rect,0),null!=a.__cacheBitmapData2.image&&(a.__cacheBitmapData2.__textureVersion=a.__cacheBitmapData2.image.version+ +1));a.__cacheBitmapData2.__setUVRect(u,0,0,n,r);l=a.__cacheBitmapData2;z&&(null==a.__cacheBitmapData3||f>a.__cacheBitmapData3.width||p>a.__cacheBitmapData3.height?a.__cacheBitmapData3=new Ja(f,p,!0,0):(a.__cacheBitmapData3.fillRect(a.__cacheBitmapData3.rect,0),null!=a.__cacheBitmapData3.image&&(a.__cacheBitmapData3.__textureVersion=a.__cacheBitmapData3.image.version+1)),a.__cacheBitmapData3.__setUVRect(u,0,0,n,r),q=a.__cacheBitmapData3);v.__setBlendMode(10);v.__worldAlpha=1;v.__worldTransform.identity(); +v.__worldColorTransform.__identity();h=0;for(m=a.__filters;h<m.length;){k=m[h];++h;k.__preserveObject&&(v.__setRenderTarget(q),v.__renderFilterPass(c,v.__defaultDisplayShader,k.__smooth));p=0;for(n=k.__numShaderPasses;p<n;)f=p++,f=k.__initShader(v,f,k.__preserveObject?q:null),v.__setBlendMode(k.__shaderBlendMode),v.__setRenderTarget(l),v.__renderFilterPass(c,f,k.__smooth),f=c,c=l,l=f;k.__renderDirty=!1}a.__cacheBitmap.__bitmapData=c}this.__blendMode=10;this.__setBlendMode(N);this.__copyShader(v); +null!=w?u.setRenderToTexture(w,B,E,C):u.setRenderToBackBuffer();this.__resumeClipAndMask(v);this.setViewport();a.__cacheBitmapColorTransform.__copyFrom(d)}else{a.__cacheBitmapData.__drawCanvas(a,a.__cacheBitmapRenderer);if(c){z=n=!1;h=0;for(m=a.__filters;h<m.length;)k=m[h],++h,k.__needSecondBitmapData&&(n=!0),k.__preserveObject&&(z=!0);c=a.__cacheBitmapData;q=null;n?(null==a.__cacheBitmapData2||null==a.__cacheBitmapData2.image||f>a.__cacheBitmapData2.width||p>a.__cacheBitmapData2.height?a.__cacheBitmapData2= +new Ja(f,p,!0,0):a.__cacheBitmapData2.fillRect(a.__cacheBitmapData2.rect,0),l=a.__cacheBitmapData2):l=c;z&&(null==a.__cacheBitmapData3||null==a.__cacheBitmapData3.image||f>a.__cacheBitmapData3.width||p>a.__cacheBitmapData3.height?a.__cacheBitmapData3=new Ja(f,p,!0,0):a.__cacheBitmapData3.fillRect(a.__cacheBitmapData3.rect,0),q=a.__cacheBitmapData3);null==a.__tempPoint&&(a.__tempPoint=new oa);p=a.__tempPoint;h=0;for(m=a.__filters;h<m.length;)k=m[h],++h,k.__preserveObject&&q.copyPixels(c,c.rect,p), +f=k.__applyFilter(l,c,c.rect,p),k.__preserveObject&&f.draw(q,null,null!=a.__objectTransform?a.__objectTransform.__colorTransform:null),k.__renderDirty=!1,n&&f==l&&(f=c,c=l,l=f);a.__cacheBitmapData!=c&&(f=a.__cacheBitmapData,a.__cacheBitmapData=c,a.__cacheBitmapData2=f,a.__cacheBitmap.__bitmapData=a.__cacheBitmapData,a.__cacheBitmapRenderer=null);a.__cacheBitmap.__imageVersion=a.__cacheBitmapData.__textureVersion}a.__cacheBitmapColorTransform.__copyFrom(d);a.__cacheBitmapColorTransform.__isDefault(!0)|| +(a.__cacheBitmapColorTransform.alphaMultiplier=1,a.__cacheBitmapData.colorTransform(a.__cacheBitmapData.rect,a.__cacheBitmapColorTransform))}a.__isCacheBitmapRender=!1}(g||b)&&fa.__pool.release(e);e=g}else null!=a.__cacheBitmap&&("dom"==this.__type&&this.__renderDrawableClear(a.__cacheBitmap),a.__cacheBitmap=null,a.__cacheBitmapData=null,a.__cacheBitmapData2=null,a.__cacheBitmapData3=null,a.__cacheBitmapColorTransform=null,a.__cacheBitmapRenderer=null,e=!0);Gc.__pool.release(d);e&&7==a.__drawableType&& +(d=a,null!=d.__cacheBitmap&&(d.__cacheBitmap.__renderTransform.tx-=d.__offsetX,d.__cacheBitmap.__renderTransform.ty-=d.__offsetY));return e},__class__:Re});var Em=function(a){Re.call(this)};k["openfl.display.CairoRenderer"]=Em;Em.__name__="openfl.display.CairoRenderer";Em.__super__=Re;Em.prototype=u(Re.prototype,{cairo:null,__matrix:null,__matrix3:null,applyMatrix:function(a,b){null==b&&(b=this.cairo);this.__matrix.copyFrom(a);this.cairo==b&&null!=this.__worldTransform&&this.__matrix.concat(this.__worldTransform); +this.__matrix3.a=this.__matrix.a;this.__matrix3.b=this.__matrix.b;this.__matrix3.c=this.__matrix.c;this.__matrix3.d=this.__matrix.d;this.__roundPixels?(this.__matrix3.tx=Math.round(this.__matrix.tx),this.__matrix3.ty=Math.round(this.__matrix.ty)):(this.__matrix3.tx=this.__matrix.tx,this.__matrix3.ty=this.__matrix.ty);b.set_matrix(this.__matrix3)},__clear:function(){if(null!=this.cairo&&(this.cairo.identityMatrix(),null!=this.__stage&&this.__stage.__clearBeforeRender)){var a=this.__blendMode;this.__setBlendMode(10); +this.cairo.setSourceRGB(this.__stage.__colorSplit[0],this.__stage.__colorSplit[1],this.__stage.__colorSplit[2]);this.cairo.paint();this.__setBlendMode(a)}},__popMask:function(){this.cairo.restore()},__popMaskObject:function(a,b){null==b&&(b=!0);a.__isCacheBitmapRender||null==a.__mask||this.__popMask();b&&null!=a.__scrollRect&&this.__popMaskRect()},__popMaskRect:function(){this.cairo.restore()},__pushMask:function(a){this.cairo.save();this.applyMatrix(a.__renderTransform,this.cairo);this.cairo.newPath(); +this.__renderDrawableMask(a);this.cairo.clip()},__pushMaskObject:function(a,b){null==b&&(b=!0);b&&null!=a.__scrollRect&&this.__pushMaskRect(a.__scrollRect,a.__renderTransform);a.__isCacheBitmapRender||null==a.__mask||this.__pushMask(a.__mask)},__pushMaskRect:function(a,b){this.cairo.save();this.applyMatrix(b,this.cairo);this.cairo.newPath();this.cairo.rectangle(a.x,a.y,a.width,a.height);this.cairo.clip()},__render:function(a){null!=this.cairo&&this.__renderDrawable(a)},__renderDrawable:function(a){if(null!= +a)switch(a.__drawableType){case 6:!a.__renderable||0>=a.__worldAlpha||null==a.__currentState||(this.__pushMaskObject(a),this.__renderDrawable(a.__currentState),this.__popMaskObject(a),this.__renderEvent(a))}},__renderDrawableMask:function(a){if(null!=a)switch(a.__drawableType){case 2:this.cairo.rectangle(0,0,a.get_width(),a.get_height());break;case 6:this.__renderDrawableMask(a.__currentState)}},__setBlendMode:function(a){null!=this.__overrideBlendMode&&(a=this.__overrideBlendMode);this.__blendMode!= +a&&(this.__blendMode=a,this.__setBlendModeCairo(this.cairo,a))},__setBlendModeCairo:function(a,b){switch(b){case 0:a.setOperator(12);break;case 2:a.setOperator(17);break;case 3:a.setOperator(23);break;case 5:a.setOperator(21);break;case 7:a.setOperator(2);break;case 8:a.setOperator(18);break;case 9:a.setOperator(14);break;case 11:a.setOperator(16);break;case 12:a.setOperator(15);break;default:a.setOperator(2)}},__class__:Em});var Yg=function(a){Re.call(this);this.context=a;this.__tempMatrix=new Aa; +this.__type="canvas"};k["openfl.display.CanvasRenderer"]=Yg;Yg.__name__="openfl.display.CanvasRenderer";Yg.__super__=Re;Yg.prototype=u(Re.prototype,{context:null,__isDOM:null,__tempMatrix:null,applySmoothing:function(a,b){a.imageSmoothingEnabled=b},setTransform:function(a,b){null==b?b=this.context:this.context==b&&null!=this.__worldTransform&&(this.__tempMatrix.copyFrom(a),this.__tempMatrix.concat(this.__worldTransform),a=this.__tempMatrix);this.__roundPixels?b.setTransform(a.a,a.b,a.c,a.d,a.tx|0, +a.ty|0):b.setTransform(a.a,a.b,a.c,a.d,a.tx,a.ty)},__clear:function(){if(null!=this.__stage){var a=this.__blendMode;this.__blendMode=null;this.__setBlendMode(10);this.context.setTransform(1,0,0,1,0,0);this.context.globalAlpha=1;!this.__stage.__transparent&&this.__stage.__clearBeforeRender?(this.context.fillStyle=this.__stage.__colorString,this.context.fillRect(0,0,this.__stage.stageWidth*this.__stage.window.__scale,this.__stage.stageHeight*this.__stage.window.__scale)):this.__stage.__transparent&& +this.__stage.__clearBeforeRender&&this.context.clearRect(0,0,this.__stage.stageWidth*this.__stage.window.__scale,this.__stage.stageHeight*this.__stage.window.__scale);this.__setBlendMode(a)}},__popMask:function(){this.context.restore()},__popMaskObject:function(a,b){null==b&&(b=!0);a.__isCacheBitmapRender||null==a.__mask||this.__popMask();b&&null!=a.__scrollRect&&this.__popMaskRect()},__popMaskRect:function(){this.context.restore()},__pushMask:function(a){this.context.save();this.setTransform(a.__renderTransform, +this.context);this.context.beginPath();this.__renderDrawableMask(a);this.context.closePath();this.context.clip()},__pushMaskObject:function(a,b){null==b&&(b=!0);b&&null!=a.__scrollRect&&this.__pushMaskRect(a.__scrollRect,a.__renderTransform);a.__isCacheBitmapRender||null==a.__mask||this.__pushMask(a.__mask)},__pushMaskRect:function(a,b){this.context.save();this.setTransform(b,this.context);this.context.beginPath();this.context.rect(a.x,a.y,a.width,a.height);this.context.clip()},__render:function(a){this.__renderDrawable(a)}, +__renderDrawable:function(a){if(null!=a)switch(a.__drawableType){case 0:Fm.renderDrawable(a,this);break;case 2:Ni.renderDrawable(a,this);break;case 3:zh.renderDrawable(a,this);break;case 4:case 5:Gm.renderDrawable(a,this);break;case 6:Hm.renderDrawable(a,this);break;case 7:Y.renderDrawable(a,this);break;case 8:Zh.renderDrawable(a,this);break;case 9:Uf.renderDrawable(a,this)}},__renderDrawableMask:function(a){if(null!=a)switch(a.__drawableType){case 0:Fm.renderDrawableMask(a,this);break;case 2:Ni.renderDrawableMask(a, +this);break;case 3:zh.renderDrawableMask(a,this);break;case 4:case 5:Gm.renderDrawableMask(a,this);break;case 6:Hm.renderDrawableMask(a,this);break;case 7:Y.renderDrawableMask(a,this);break;case 8:Zh.renderDrawableMask(a,this);break;case 9:Uf.renderDrawableMask(a,this)}},__setBlendMode:function(a){null!=this.__overrideBlendMode&&(a=this.__overrideBlendMode);this.__blendMode!=a&&(this.__blendMode=a,this.__setBlendModeContext(this.context,a))},__setBlendModeContext:function(a,b){switch(b){case 0:a.globalCompositeOperation= +"lighter";break;case 2:a.globalCompositeOperation="darken";break;case 3:a.globalCompositeOperation="difference";break;case 5:a.globalCompositeOperation="hard-light";break;case 8:a.globalCompositeOperation="lighten";break;case 9:a.globalCompositeOperation="multiply";break;case 11:a.globalCompositeOperation="overlay";break;case 12:a.globalCompositeOperation="screen";break;default:a.globalCompositeOperation="source-over"}},__class__:Yg});var Tt={fromInt:function(a){return a},fromString:function(a){switch(a){case "none":return 0; +case "round":return 1;case "square":return 2;default:return null}},toInt:function(a){return a},toString:function(a){switch(a){case 0:return"none";case 1:return"round";case 2:return"square";default:return null}}},Im=function(a){A.call(this);this.__drawableType=10;this.__element=a};k["openfl.display.DOMElement"]=Im;Im.__name__="openfl.display.DOMElement";Im.__super__=A;Im.prototype=u(A.prototype,{__active:null,__element:null,__class__:Im});var Yj=function(a){Re.call(this);this.element=a;A.__supportDOM= +!0;a=window.getComputedStyle(document.documentElement,"");a=(Array.prototype.slice.call(a).join("").match(/-(moz|webkit|ms)-/)||""===a.OLink&&["","o"])[1];"WebKit|Moz|MS|O".match(new RegExp("("+a+")","i"));a[0].toUpperCase();a.substr(1);this.__vendorPrefix=a;this.__transformProperty="webkit"==a?"-webkit-transform":"transform";this.__transformOriginProperty="webkit"==a?"-webkit-transform-origin":"transform-origin";this.__clipRects=[];this.__z=this.__numClipRects=0;this.__type="dom";this.__canvasRenderer= +new Yg(null);this.__canvasRenderer.__isDOM=!0};k["openfl.display.DOMRenderer"]=Yj;Yj.__name__="openfl.display.DOMRenderer";Yj.__super__=Re;Yj.prototype=u(Re.prototype,{element:null,__canvasRenderer:null,__clipRects:null,__currentClipRect:null,__numClipRects:null,__transformOriginProperty:null,__transformProperty:null,__vendorPrefix:null,__z:null,applyStyle:function(a,b){null!=a&&null!=b&&(null!=a.__style&&b.parentElement==this.element||this.__initializeElement(a,b),a.__style=b.style,this.__updateClip(a), +this.__applyStyle(a,!0,!0,!0))},clearStyle:function(a){null!=a&&a.parentElement==this.element&&this.element.removeChild(a)},__applyStyle:function(a,b,c,d){var e=a.__style;if(b&&a.__renderTransformChanged){b=a.__renderTransform;var g=this.__roundPixels;null==g&&(g=!1);e.setProperty(this.__transformProperty,g?"matrix3d("+b.a+", "+b.b+", 0, 0, "+b.c+", "+b.d+", 0, 0, 0, 0, 1, 0, "+(b.tx|0)+", "+(b.ty|0)+", 0, 1)":"matrix3d("+b.a+", "+b.b+", 0, 0, "+b.c+", "+b.d+", 0, 0, 0, 0, 1, 0, "+b.tx+", "+b.ty+ +", 0, 1)",null)}a.__worldZ!=++this.__z&&(a.__worldZ=this.__z,e.setProperty("z-index",null==a.__worldZ?"null":""+a.__worldZ,null));c&&a.__worldAlphaChanged&&(1>a.__worldAlpha?e.setProperty("opacity",null==a.__worldAlpha?"null":""+a.__worldAlpha,null):e.removeProperty("opacity"));d&&a.__worldClipChanged&&(null==a.__worldClip?e.removeProperty("clip"):(a=a.__worldClip,e.setProperty("clip","rect("+a.y+"px, "+a.get_right()+"px, "+a.get_bottom()+"px, "+a.x+"px)",null)))},__initializeElement:function(a,b){var c= +a.__style=b.style;c.setProperty("position","absolute",null);c.setProperty("top","0",null);c.setProperty("left","0",null);c.setProperty(this.__transformOriginProperty,"0 0 0",null);this.element.appendChild(b);a.__worldAlphaChanged=!0;a.__renderTransformChanged=!0;a.__worldVisibleChanged=!0;a.__worldClipChanged=!0;a.__worldClip=null;a.__worldZ=-1},__popMask:function(){this.__popMaskRect()},__popMaskObject:function(a,b){null==b&&(b=!0);null!=a.__mask&&this.__popMask();b&&null!=a.__scrollRect&&this.__popMaskRect()}, +__popMaskRect:function(){0<this.__numClipRects&&(this.__numClipRects--,this.__currentClipRect=0<this.__numClipRects?this.__clipRects[this.__numClipRects-1]:null)},__pushMask:function(a){this.__pushMaskRect(a.getBounds(a),a.__renderTransform)},__pushMaskObject:function(a,b){null==b&&(b=!0);b&&null!=a.__scrollRect&&this.__pushMaskRect(a.__scrollRect,a.__renderTransform);null!=a.__mask&&this.__pushMask(a.__mask)},__pushMaskRect:function(a,b){this.__numClipRects==this.__clipRects.length&&(this.__clipRects[this.__numClipRects]= +new fa);var c=this.__clipRects[this.__numClipRects];a.__transform(c,b);0<this.__numClipRects&&(a=this.__clipRects[this.__numClipRects-1],c.__contract(a.x,a.y,a.width,a.height));0>c.height&&(c.height=0);0>c.width&&(c.width=0);this.__currentClipRect=c;this.__numClipRects++},__render:function(a){this.element.style.background=this.__stage.__transparent?"none":this.__stage.__colorString;this.__z=1;this.__renderDrawable(a)},__renderDrawable:function(a){if(null!=a)switch(a.__drawableType){case 2:uc.renderDrawable(a, +this);break;case 3:Ie.renderDrawable(a,this);break;case 4:case 5:Jm.renderDrawable(a,this);break;case 6:Km.renderDrawable(a,this);break;case 7:Je.renderDrawable(a,this);break;case 8:Zg.renderDrawable(a,this);break;case 9:Bg.renderDrawable(a,this);break;case 10:null!=a.stage&&a.__worldVisible&&a.__renderable?(a.__active||(this.__initializeElement(a,a.__element),a.__active=!0),this.__updateClip(a),this.__applyStyle(a,!0,!0,!0)):a.__active&&(this.element.removeChild(a.__element),a.__active=!1),Ie.renderDrawable(a, +this)}},__renderDrawableClear:function(a){if(null!=a)switch(a.__drawableType){case 2:uc.renderDrawableClear(a,this);break;case 3:Ie.renderDrawableClear(a,this);break;case 4:case 5:Jm.renderDrawableClear(a,this);break;case 6:Km.renderDrawableClear(a,this);break;case 7:Je.renderDrawableClear(a,this);break;case 8:Zg.renderDrawableClear(a,this);break;case 9:Bg.renderDrawableClear(a,this)}},__setBlendMode:function(a){null!=this.__overrideBlendMode&&(a=this.__overrideBlendMode);this.__blendMode!=a&&(this.__blendMode= +a)},__updateClip:function(a){if(null==this.__currentClipRect)a.__worldClipChanged=null!=a.__worldClip,a.__worldClip=null;else{null==a.__worldClip&&(a.__worldClip=new fa);var b=fa.__pool.get(),c=Aa.__pool.get();c.copyFrom(a.__renderTransform);c.invert();this.__currentClipRect.__transform(b,c);b.equals(a.__worldClip)?a.__worldClipChanged=!1:(a.__worldClip.copyFrom(b),a.__worldClipChanged=!0);fa.__pool.release(b);Aa.__pool.release(c)}},__class__:Yj});var bf=function(a){this.byteCode=a;this.precisionHint= +1;this.__glSourceDirty=!0;this.__numPasses=1;this.__data=Du._new(a)};k["openfl.display.Shader"]=bf;bf.__name__="openfl.display.Shader";bf.prototype={byteCode:null,glProgram:null,precisionHint:null,program:null,__alpha:null,__bitmap:null,__colorMultiplier:null,__colorOffset:null,__context:null,__data:null,__glFragmentSource:null,__glSourceDirty:null,__glVertexSource:null,__hasColorTransform:null,__inputBitmapData:null,__isGenerated:null,__matrix:null,__numPasses:null,__paramBool:null,__paramFloat:null, +__paramInt:null,__position:null,__textureCoord:null,__texture:null,__textureSize:null,__clearUseArray:function(){for(var a=0,b=this.__paramBool;a<b.length;){var c=b[a];++a;c.__useArray=!1}a=0;for(b=this.__paramFloat;a<b.length;)c=b[a],++a,c.__useArray=!1;a=0;for(b=this.__paramInt;a<b.length;)c=b[a],++a,c.__useArray=!1},__createGLShader:function(a,b){var c=this.__context.gl,d=c.createShader(b);c.shaderSource(d,a);c.compileShader(d);var e=c.getShaderInfoLog(d),g=null!=e&&""!=J.trim(e),f=c.getShaderParameter(d, +c.COMPILE_STATUS);if(g||0==f)b=(0==f?"Error":"Info")+(b==c.VERTEX_SHADER?" compiling vertex shader":" compiling fragment shader"),b=b+("\n"+e)+("\n"+a),0==f?Ga.error(b,{fileName:"openfl/display/Shader.hx",lineNumber:335,className:"openfl.display.Shader",methodName:"__createGLShader"}):g&&Ga.debug(b,{fileName:"openfl/display/Shader.hx",lineNumber:336,className:"openfl.display.Shader",methodName:"__createGLShader"});return d},__createGLProgram:function(a,b){var c=this.__context.gl;a=this.__createGLShader(a, +c.VERTEX_SHADER);var d=this.__createGLShader(b,c.FRAGMENT_SHADER);b=c.createProgram();for(var e=0,g=this.__paramFloat;e<g.length;){var f=g[e];++e;if(-1<f.name.indexOf("Position")&&J.startsWith(f.name,"openfl_")){c.bindAttribLocation(b,0,f.name);break}}c.attachShader(b,a);c.attachShader(b,d);c.linkProgram(b);0==c.getProgramParameter(b,c.LINK_STATUS)&&(c="Unable to initialize the shader program\n"+c.getProgramInfoLog(b),Ga.error(c,{fileName:"openfl/display/Shader.hx",lineNumber:369,className:"openfl.display.Shader", +methodName:"__createGLProgram"}));return b},__disable:function(){null!=this.program&&this.__disableGL()},__disableGL:function(){for(var a=this.__context.gl,b=0,c=0,d=this.__inputBitmapData;c<d.length;){var e=d[c];++c;e.__disableGL(this.__context,b);++b;if(b==a.MAX_TEXTURE_IMAGE_UNITS)break}c=0;for(d=this.__paramBool;c<d.length;)b=d[c],++c,b.__disableGL(this.__context);c=0;for(d=this.__paramFloat;c<d.length;)b=d[c],++c,b.__disableGL(this.__context);c=0;for(d=this.__paramInt;c<d.length;)b=d[c],++c, +b.__disableGL(this.__context);this.__context.__bindGLArrayBuffer(null);"opengl"==this.__context.__context.type&&a.disable(a.TEXTURE_2D)},__enable:function(){this.__init();null!=this.program&&this.__enableGL()},__enableGL:function(){for(var a=0,b=this.__context.gl,c=0,d=this.__inputBitmapData;c<d.length;){var e=d[c];++c;b.uniform1i(e.index,a);++a}"opengl"==this.__context.__context.type&&0<a&&b.enable(b.TEXTURE_2D)},__init:function(){null==this.__data&&(this.__data=Du._new(null));null==this.__glFragmentSource|| +null==this.__glVertexSource||null!=this.program&&!this.__glSourceDirty||this.__initGL()},__initGL:function(){if(this.__glSourceDirty||null==this.__paramBool)this.__glSourceDirty=!1,this.program=null,this.__inputBitmapData=[],this.__paramBool=[],this.__paramFloat=[],this.__paramInt=[],this.__processGLData(this.get_glVertexSource(),"attribute"),this.__processGLData(this.get_glVertexSource(),"uniform"),this.__processGLData(this.get_glFragmentSource(),"uniform");if(null!=this.__context&&null==this.program){var a= +this.__context.gl,b=1==this.precisionHint?"precision mediump float;\n":"precision lowp float;\n",c=b+this.get_glVertexSource();b+=this.get_glFragmentSource();var d=c+b;Object.prototype.hasOwnProperty.call(this.__context.__programs.h,d)?this.program=this.__context.__programs.h[d]:(this.program=this.__context.createProgram(1),this.program.__glProgram=this.__createGLProgram(c,b),this.__context.__programs.h[d]=this.program);if(null!=this.program){this.glProgram=this.program.__glProgram;c=0;for(b=this.__inputBitmapData;c< +b.length;)d=b[c],++c,d.index=d.__isUniform?a.getUniformLocation(this.glProgram,d.name):a.getAttribLocation(this.glProgram,d.name);c=0;for(b=this.__paramBool;c<b.length;)d=b[c],++c,d.index=d.__isUniform?a.getUniformLocation(this.glProgram,d.name):a.getAttribLocation(this.glProgram,d.name);c=0;for(b=this.__paramFloat;c<b.length;)d=b[c],++c,d.index=d.__isUniform?a.getUniformLocation(this.glProgram,d.name):a.getAttribLocation(this.glProgram,d.name);c=0;for(b=this.__paramInt;c<b.length;)d=b[c],++c,d.index= +d.__isUniform?a.getUniformLocation(this.glProgram,d.name):a.getAttribLocation(this.glProgram,d.name)}}},__processGLData:function(a,b){var c=0,d;for(d="uniform"==b?new Z("uniform ([A-Za-z0-9]+) ([A-Za-z0-9_]+)",""):new Z("attribute ([A-Za-z0-9]+) ([A-Za-z0-9_]+)","");d.matchSub(a,c);){var e=d.matched(1);var g=d.matched(2);if(!J.startsWith(g,"gl_")){c="uniform"==b;if(J.startsWith(e,"sampler")){e=new Lm;e.name=g;e.__isUniform=c;this.__inputBitmapData.push(e);switch(g){case "bitmap":this.__bitmap=e;break; +case "openfl_Texture":this.__texture=e}this.__data[g]=e;this.__isGenerated&&(this[g]=e)}else if(!Object.prototype.hasOwnProperty.call(this.__data,g)||null==W.field(this.__data,g)){switch(e){case "bool":var f=0;break;case "bvec2":f=1;break;case "bvec3":f=2;break;case "bvec4":f=3;break;case "dvec2":case "vec2":f=5;break;case "dvec3":case "vec3":f=6;break;case "double":case "float":f=4;break;case "ivec3":case "uvec3":f=10;break;case "ivec4":case "uvec4":f=11;break;case "mat2":case "mat2x2":f=12;break; +case "mat2x3":f=13;break;case "mat2x4":f=14;break;case "mat3x2":f=15;break;case "mat3":case "mat3x3":f=16;break;case "mat3x4":f=17;break;case "mat4":case "mat4x4":f=20;break;case "mat4x2":f=18;break;case "mat4x3":f=19;break;case "int":case "uint":f=8;break;case "ivec2":case "uvec2":f=9;break;case "dvec4":case "vec4":f=7;break;default:f=null}switch(f){case 1:case 5:case 9:e=2;break;case 3:case 7:case 11:case 12:e=4;break;case 2:case 6:case 10:e=3;break;case 16:e=9;break;case 20:e=16;break;default:e= +1}switch(f){case 12:var l=2;break;case 16:l=3;break;case 20:l=4;break;default:l=1}switch(f){case 0:case 1:case 2:case 3:var h=new Oi;h.set_name(g);h.type=f;h.__arrayLength=l;h.__isBool=!0;h.__isUniform=c;h.__length=e;this.__paramBool.push(h);"openfl_HasColorTransform"==g&&(this.__hasColorTransform=h);this.__data[g]=h;this.__isGenerated&&(this[g]=h);break;case 8:case 9:case 10:case 11:h=new Oi;h.set_name(g);h.type=f;h.__arrayLength=l;h.__isInt=!0;h.__isUniform=c;h.__length=e;this.__paramInt.push(h); +this.__data[g]=h;this.__isGenerated&&(this[g]=h);break;default:h=new Oi;h.set_name(g);h.type=f;h.__arrayLength=l;0<l&&(f=l*l,f=null!=f?new Float32Array(f):null,h.__uniformMatrix=f);h.__isFloat=!0;h.__isUniform=c;h.__length=e;this.__paramFloat.push(h);if(J.startsWith(g,"openfl_"))switch(g){case "openfl_Alpha":this.__alpha=h;break;case "openfl_ColorMultiplier":this.__colorMultiplier=h;break;case "openfl_ColorOffset":this.__colorOffset=h;break;case "openfl_Matrix":this.__matrix=h;break;case "openfl_Position":this.__position= +h;break;case "openfl_TextureCoord":this.__textureCoord=h;break;case "openfl_TextureSize":this.__textureSize=h}this.__data[g]=h;this.__isGenerated&&(this[g]=h)}}g=d.matchedPos();c=g.pos+g.len}}},__update:function(){null!=this.program&&this.__updateGL()},__updateFromBuffer:function(a,b){null!=this.program&&this.__updateGLFromBuffer(a,b)},__updateGL:function(){for(var a=0,b=0,c=this.__inputBitmapData;b<c.length;){var d=c[b];++b;d.__updateGL(this.__context,a);++a}b=0;for(c=this.__paramBool;b<c.length;)a= +c[b],++b,a.__updateGL(this.__context);b=0;for(c=this.__paramFloat;b<c.length;)a=c[b],++b,a.__updateGL(this.__context);b=0;for(c=this.__paramInt;b<c.length;)a=c[b],++b,a.__updateGL(this.__context)},__updateGLFromBuffer:function(a,b){for(var c=0,d,e,g,f,l,h=0,m=a.inputCount;h<m;)l=h++,d=a.inputRefs[l],e=a.inputs[l],g=a.inputFilter[l],f=a.inputMipFilter[l],l=a.inputWrap[l],null!=e&&(d.__updateGL(this.__context,c,e,g,f,l),++c);h=this.__context.gl;0<a.paramDataLength?(null==a.paramDataBuffer&&(a.paramDataBuffer= +h.createBuffer()),this.__context.__bindGLArrayBuffer(a.paramDataBuffer),Yb.bufferData(h,h.ARRAY_BUFFER,a.paramData,h.DYNAMIC_DRAW)):this.__context.__bindGLArrayBuffer(null);e=d=c=0;g=a.paramBoolCount;f=a.paramFloatCount;var k=a.paramData,p=null,n=null,r=null;h=0;for(m=a.paramCount;h<m;){l=h++;var q=!1;if(l<g){var v=a.paramRefs_Bool[c];for(var u=0,w=a.overrideBoolCount;u<w;){var B=u++;if(v.name==a.overrideBoolNames[B]){p=a.overrideBoolValues[B];q=!0;break}}q?v.__updateGL(this.__context,p):v.__updateGLFromBuffer(this.__context, +k,a.paramPositions[l],a.paramLengths[l],b);++c}else if(l<g+f){v=a.paramRefs_Float[d];u=0;for(w=a.overrideFloatCount;u<w;)if(B=u++,v.name==a.overrideFloatNames[B]){n=a.overrideFloatValues[B];q=!0;break}q?v.__updateGL(this.__context,n):v.__updateGLFromBuffer(this.__context,k,a.paramPositions[l],a.paramLengths[l],b);++d}else{v=a.paramRefs_Int[e];u=0;for(w=a.overrideIntCount;u<w;)if(B=u++,v.name==a.overrideIntNames[B]){r=a.overrideIntValues[B];q=!0;break}q?v.__updateGL(this.__context,r):v.__updateGLFromBuffer(this.__context, +k,a.paramPositions[l],a.paramLengths[l],b);++e}}},get_data:function(){(this.__glSourceDirty||null==this.__data)&&this.__init();return this.__data},set_data:function(a){return this.__data=a},get_glFragmentSource:function(){return this.__glFragmentSource},set_glFragmentSource:function(a){a!=this.__glFragmentSource&&(this.__glSourceDirty=!0);return this.__glFragmentSource=a},get_glVertexSource:function(){return this.__glVertexSource},set_glVertexSource:function(a){a!=this.__glVertexSource&&(this.__glSourceDirty= +!0);return this.__glVertexSource=a},__class__:bf,__properties__:{set_glVertexSource:"set_glVertexSource",get_glVertexSource:"get_glVertexSource",set_glFragmentSource:"set_glFragmentSource",get_glFragmentSource:"get_glFragmentSource",set_data:"set_data",get_data:"get_data"}};var Mm=function(a){null==this.__glFragmentSource&&(this.__glFragmentSource="varying float openfl_Alphav;\n\t\tvarying vec4 openfl_ColorMultiplierv;\n\t\tvarying vec4 openfl_ColorOffsetv;\n\t\tvarying vec2 openfl_TextureCoordv;\n\n\t\tuniform bool openfl_HasColorTransform;\n\t\tuniform sampler2D openfl_Texture;\n\t\tuniform vec2 openfl_TextureSize;\n\n\t\tvoid main(void) {\n\n\t\t\tvec4 color = texture2D (openfl_Texture, openfl_TextureCoordv);\n\n\t\tif (color.a == 0.0) {\n\n\t\t\tgl_FragColor = vec4 (0.0, 0.0, 0.0, 0.0);\n\n\t\t} else if (openfl_HasColorTransform) {\n\n\t\t\tcolor = vec4 (color.rgb / color.a, color.a);\n\n\t\t\tmat4 colorMultiplier = mat4 (0);\n\t\t\tcolorMultiplier[0][0] = openfl_ColorMultiplierv.x;\n\t\t\tcolorMultiplier[1][1] = openfl_ColorMultiplierv.y;\n\t\t\tcolorMultiplier[2][2] = openfl_ColorMultiplierv.z;\n\t\t\tcolorMultiplier[3][3] = 1.0; // openfl_ColorMultiplierv.w;\n\n\t\t\tcolor = clamp (openfl_ColorOffsetv + (color * colorMultiplier), 0.0, 1.0);\n\n\t\t\tif (color.a > 0.0) {\n\n\t\t\t\tgl_FragColor = vec4 (color.rgb * color.a * openfl_Alphav, color.a * openfl_Alphav);\n\n\t\t\t} else {\n\n\t\t\t\tgl_FragColor = vec4 (0.0, 0.0, 0.0, 0.0);\n\n\t\t\t}\n\n\t\t} else {\n\n\t\t\tgl_FragColor = color * openfl_Alphav;\n\n\t\t}\n\n\t\t}"); +null==this.__glVertexSource&&(this.__glVertexSource="attribute float openfl_Alpha;\n\t\tattribute vec4 openfl_ColorMultiplier;\n\t\tattribute vec4 openfl_ColorOffset;\n\t\tattribute vec4 openfl_Position;\n\t\tattribute vec2 openfl_TextureCoord;\n\n\t\tvarying float openfl_Alphav;\n\t\tvarying vec4 openfl_ColorMultiplierv;\n\t\tvarying vec4 openfl_ColorOffsetv;\n\t\tvarying vec2 openfl_TextureCoordv;\n\n\t\tuniform mat4 openfl_Matrix;\n\t\tuniform bool openfl_HasColorTransform;\n\t\tuniform vec2 openfl_TextureSize;\n\n\t\tvoid main(void) {\n\n\t\t\topenfl_Alphav = openfl_Alpha;\n\t\topenfl_TextureCoordv = openfl_TextureCoord;\n\n\t\tif (openfl_HasColorTransform) {\n\n\t\t\topenfl_ColorMultiplierv = openfl_ColorMultiplier;\n\t\t\topenfl_ColorOffsetv = openfl_ColorOffset / 255.0;\n\n\t\t}\n\n\t\tgl_Position = openfl_Matrix * openfl_Position;\n\n\t\t}"); +bf.call(this,a);this.__isGenerated=!0;this.__initGL()};k["openfl.display.DisplayObjectShader"]=Mm;Mm.__name__="openfl.display.DisplayObjectShader";Mm.__super__=bf;Mm.prototype=u(bf.prototype,{openfl_Alpha:null,openfl_ColorMultiplier:null,openfl_ColorOffset:null,openfl_Position:null,openfl_TextureCoord:null,openfl_Matrix:null,openfl_HasColorTransform:null,openfl_TextureSize:null,openfl_Texture:null,__class__:Mm});var Zo=function(a,b){fb.call(this);this.name=a;this.frame=b};k["openfl.display.FrameLabel"]= +Zo;Zo.__name__="openfl.display.FrameLabel";Zo.__super__=fb;Zo.prototype=u(fb.prototype,{frame:null,name:null,__class__:Zo});var Ut=function(a,b){this.script=a;this.frame=b};k["openfl.display.FrameScript"]=Ut;Ut.__name__="openfl.display.FrameScript";Ut.prototype={frame:null,script:null,__class__:Ut};var Ue=function(a){this.__dirty=!0;this.__owner=a;this.__commands=new Ae;this.__positionY=this.__positionX=this.__strokePadding=0;this.__renderTransform=new Aa;this.__usedShaderBuffers=new id;this.__worldTransform= +new Aa;this.__height=this.__width=0;this.__bitmapScale=1;this.__shaderBufferPool=new Qd(function(){return new Nm});this.moveTo(0,0)};k["openfl.display.Graphics"]=Ue;Ue.__name__="openfl.display.Graphics";Ue.prototype={__bounds:null,__commands:null,__dirty:null,__hardwareDirty:null,__height:null,__managed:null,__positionX:null,__positionY:null,__quadBuffer:null,__renderTransform:null,__shaderBufferPool:null,__softwareDirty:null,__strokePadding:null,__transformDirty:null,__triangleIndexBuffer:null,__triangleIndexBufferCount:null, +__triangleIndexBufferData:null,__usedShaderBuffers:null,__vertexBuffer:null,__vertexBufferCount:null,__vertexBufferCountUVT:null,__vertexBufferData:null,__vertexBufferDataUVT:null,__vertexBufferUVT:null,__visible:null,__owner:null,__width:null,__worldTransform:null,__canvas:null,__context:null,__bitmap:null,__bitmapScale:null,beginBitmapFill:function(a,b,c,d){null==d&&(d=!1);null==c&&(c=!0);this.__commands.beginBitmapFill(a,null!=b?b.clone():null,c,d);this.__visible=!0},beginFill:function(a,b){null== +b&&(b=1);null==a&&(a=0);this.__commands.beginFill(a&16777215,b);0<b&&(this.__visible=!0)},beginGradientFill:function(a,b,c,d,e,g,f,l){null==l&&(l=0);null==f&&(f=1);null==g&&(g=0);if(null!=b&&0!=b.length){if(null==c){c=[];for(var h=0,m=b.length;h<m;)h++,c.push(1)}if(null==d)for(d=[],h=0,m=b.length;h<m;){var x=h++;d.push(Math.ceil(x/b.length*255))}if(!(c.length<b.length||d.length<b.length))for(this.__commands.beginGradientFill(a,b,c,d,e,g,f,l),h=0;h<c.length;)if(a=c[h],++h,0<a){this.__visible=!0;break}}}, +beginShaderFill:function(a,b){null!=a&&(b=this.__shaderBufferPool.get(),this.__usedShaderBuffers.add(b),b.update(a),this.__commands.beginShaderFill(b))},clear:function(){for(var a=this.__usedShaderBuffers.h;null!=a;){var b=a.item;a=a.next;this.__shaderBufferPool.release(b)}this.__usedShaderBuffers.clear();this.__commands.clear();this.__strokePadding=0;null!=this.__bounds&&(this.set___dirty(!0),this.__transformDirty=!0,this.__bounds=null);this.__visible=!1;this.__positionY=this.__positionX=0;this.moveTo(0, +0)},copyFrom:function(a){this.__bounds=null!=a.__bounds?a.__bounds.clone():null;this.__commands=a.__commands.copy();this.set___dirty(!0);this.__strokePadding=a.__strokePadding;this.__positionX=a.__positionX;this.__positionY=a.__positionY;this.__transformDirty=!0;this.__visible=a.__visible},cubicCurveTo:function(a,b,c,d,e,g){this.__inflateBounds(this.__positionX-this.__strokePadding,this.__positionY-this.__strokePadding);this.__inflateBounds(this.__positionX+this.__strokePadding,this.__positionY+this.__strokePadding); +var f=e,l=e;if(!(a<e&&a>this.__positionX||a>e&&a<this.__positionX)||!(c<e&&c>this.__positionX||c>e&&c<this.__positionX)){var h=2*this.__positionX-4*a+2*c,m=a-this.__positionX,k=-this.__positionX+3*a+e-3*c,p=(-h+Math.sqrt(h*h-4*m*k))/(2*k);h=(-h-Math.sqrt(h*h-4*m*k))/(2*k);0<p&&1>p&&(f=this.__calculateBezierCubicPoint(p,this.__positionX,a,c,e));0<h&&1>h&&(l=this.__calculateBezierCubicPoint(h,this.__positionX,a,c,e))}var n=g,r=g;(b<g&&b>this.__positionY||b>g&&b<this.__positionY)&&(d<g&&d>this.__positionY|| +d>g&&d<this.__positionY)||(h=2*this.__positionY-4*b+2*d,m=b-this.__positionY,k=-this.__positionY+3*b+g-3*d,p=(-h+Math.sqrt(h*h-4*m*k))/(2*k),h=(-h-Math.sqrt(h*h-4*m*k))/(2*k),0<p&&1>p&&(n=this.__calculateBezierCubicPoint(p,this.__positionY,b,d,g)),0<h&&1>h&&(r=this.__calculateBezierCubicPoint(h,this.__positionY,b,d,g)));this.__inflateBounds(f-this.__strokePadding,n-this.__strokePadding);this.__inflateBounds(f+this.__strokePadding,n+this.__strokePadding);this.__inflateBounds(l-this.__strokePadding, +r-this.__strokePadding);this.__inflateBounds(l+this.__strokePadding,r+this.__strokePadding);this.__positionX=e;this.__positionY=g;this.__inflateBounds(this.__positionX-this.__strokePadding,this.__positionY-this.__strokePadding);this.__inflateBounds(this.__positionX+this.__strokePadding,this.__positionY+this.__strokePadding);this.__commands.cubicCurveTo(a,b,c,d,e,g);this.set___dirty(!0)},curveTo:function(a,b,c,d){this.__inflateBounds(this.__positionX-this.__strokePadding,this.__positionY-this.__strokePadding); +this.__inflateBounds(this.__positionX+this.__strokePadding,this.__positionY+this.__strokePadding);var e=a<c&&a>this.__positionX||a>c&&a<this.__positionX?c:this.__calculateBezierQuadPoint((this.__positionX-a)/(this.__positionX-2*a+c),this.__positionX,a,c);var g=b<d&&b>this.__positionY||b>d&&b<this.__positionY?d:this.__calculateBezierQuadPoint((this.__positionY-b)/(this.__positionY-2*b+d),this.__positionY,b,d);this.__inflateBounds(e-this.__strokePadding,g-this.__strokePadding);this.__inflateBounds(e+ +this.__strokePadding,g+this.__strokePadding);this.__positionX=c;this.__positionY=d;this.__inflateBounds(this.__positionX-this.__strokePadding,this.__positionY-this.__strokePadding);this.__inflateBounds(this.__positionX+this.__strokePadding,this.__positionY+this.__strokePadding);this.__commands.curveTo(a,b,c,d);this.set___dirty(!0)},drawCircle:function(a,b,c){0>=c||(this.__inflateBounds(a-c-this.__strokePadding,b-c-this.__strokePadding),this.__inflateBounds(a+c+this.__strokePadding,b+c+this.__strokePadding), +this.__commands.drawCircle(a,b,c),this.set___dirty(!0))},drawEllipse:function(a,b,c,d){0>=c||0>=d||(this.__inflateBounds(a-this.__strokePadding,b-this.__strokePadding),this.__inflateBounds(a+c+this.__strokePadding,b+d+this.__strokePadding),this.__commands.drawEllipse(a,b,c,d),this.set___dirty(!0))},drawGraphicsData:function(a){for(a=a.iterator();a.hasNext();){var b=a.next();switch(b.__graphicsDataType){case 0:if(null!=b.fill){var c=b.thickness;isNaN(c)&&(c=null);switch(b.fill.__graphicsFillType){case 0:var d= +b.fill;this.lineStyle(c,d.color,d.alpha,b.pixelHinting,b.scaleMode,b.caps,b.joints,b.miterLimit);break;case 1:d=b.fill;this.lineStyle(c,0,1,b.pixelHinting,b.scaleMode,b.caps,b.joints,b.miterLimit);this.lineGradientStyle(d.type,d.colors,d.alphas,d.ratios,d.matrix,d.spreadMethod,d.interpolationMethod,d.focalPointRatio);break;case 2:d=b.fill,this.lineStyle(c,0,1,b.pixelHinting,b.scaleMode,b.caps,b.joints,b.miterLimit),this.lineBitmapStyle(d.bitmapData,d.matrix,d.repeat,d.smooth)}}else this.lineStyle(); +break;case 1:d=b;this.beginFill(d.color,d.alpha);break;case 2:d=b;this.beginGradientFill(d.type,d.colors,d.alphas,d.ratios,d.matrix,d.spreadMethod,d.interpolationMethod,d.focalPointRatio);break;case 3:this.drawPath(b.commands,b.data,b.winding);break;case 4:d=b;this.beginBitmapFill(d.bitmapData,d.matrix,d.repeat,d.smooth);break;case 5:this.endFill();break;case 6:this.drawQuads(b.rects,b.indices,b.transforms);break;case 7:this.drawTriangles(b.vertices,b.indices,b.uvtData,b.culling);break;case 8:this.beginShaderFill(b.shader, +b.matrix)}}},drawPath:function(a,b,c){null==c&&(c=0);var d=0;1==c&&this.__commands.windingNonZero();a=a.iterator();a:for(;a.hasNext();)switch(a.next()){case 1:this.moveTo(b.get(d),b.get(d+1));d+=2;break;case 2:this.lineTo(b.get(d),b.get(d+1));d+=2;break;case 3:this.curveTo(b.get(d),b.get(d+1),b.get(d+2),b.get(d+3));d+=4;break;case 4:this.moveTo(b.get(d+2),b.get(d+3));break a;case 5:this.lineTo(b.get(d+2),b.get(d+3));break a;case 6:this.cubicCurveTo(b.get(d),b.get(d+1),b.get(d+2),b.get(d+3),b.get(d+ +4),b.get(d+5)),d+=6}},drawQuads:function(a,b,c){if(null!=a){var d=null!=b,e=!1,g=!1,f=d?b.get_length():Math.floor(a.get_length()/4);if(0!=f){null!=c&&(c.get_length()>=6*f?g=e=!0:c.get_length()>=4*f?e=!0:c.get_length()>=2*f&&(g=!0));for(var l=fa.__pool.get(),h=Aa.__pool.get(),m=Infinity,k=Infinity,p=-Infinity,n=-Infinity,r,q=0;q<f;){var v=q++;r=d?4*b.get(v):4*v;0>r||(l.setTo(0,0,a.get(r+2),a.get(r+3)),0>=l.width||0>=l.height||(e&&g?(r=6*v,h.setTo(c.get(r),c.get(r+1),c.get(r+2),c.get(r+3),c.get(r+4), +c.get(r+5))):e?(r=4*v,h.setTo(c.get(r),c.get(r+1),c.get(r+2),c.get(r+3),l.x,l.y)):g?(r=2*v,h.tx=c.get(r),h.ty=c.get(r+1)):(h.tx=l.x,h.ty=l.y),l.__transform(l,h),m>l.x&&(m=l.x),k>l.y&&(k=l.y),p<l.get_right()&&(p=l.get_right()),n<l.get_bottom()&&(n=l.get_bottom())))}this.__inflateBounds(m,k);this.__inflateBounds(p,n);this.__commands.drawQuads(a,b,c);this.set___dirty(!0);this.__visible=!0;fa.__pool.release(l);Aa.__pool.release(h)}}},drawRect:function(a,b,c,d){if(0!=c||0!=d){var e=0>c?-1:1,g=0>d?-1:1; +this.__inflateBounds(a-this.__strokePadding*e,b-this.__strokePadding*g);this.__inflateBounds(a+c+this.__strokePadding*e,b+d+this.__strokePadding*g);this.__commands.drawRect(a,b,c,d);this.set___dirty(!0)}},drawRoundRect:function(a,b,c,d,e,g){if(0!=c||0!=d){var f=0>c?-1:1,l=0>d?-1:1;this.__inflateBounds(a-this.__strokePadding*f,b-this.__strokePadding*l);this.__inflateBounds(a+c+this.__strokePadding*f,b+d+this.__strokePadding*l);this.__commands.drawRoundRect(a,b,c,d,e,g);this.set___dirty(!0)}},drawRoundRectComplex:function(a, +b,c,d,e,g,f,l){if(!(0>=c||0>=d)){this.__inflateBounds(a-this.__strokePadding,b-this.__strokePadding);this.__inflateBounds(a+c+this.__strokePadding,b+d+this.__strokePadding);var h=a+c,m=b+d;c=c<d?2*c:2*d;e<c||(e=c);g<c||(g=c);f<c||(f=c);l<c||(l=c);c=1-Math.sin(Math.PI/180*45);d=1-Math.tan(Math.PI/180*22.5);var x=l*c,p=l*d;this.moveTo(h,m-l);this.curveTo(h,m-p,h-x,m-x);this.curveTo(h-p,m,h-l,m);x=f*c;p=f*d;this.lineTo(a+f,m);this.curveTo(a+p,m,a+x,m-x);this.curveTo(a,m-p,a,m-f);x=e*c;p=e*d;this.lineTo(a, +b+e);this.curveTo(a,b+p,a+x,b+x);this.curveTo(a+p,b,a+e,b);x=g*c;p=g*d;this.lineTo(h-g,b);this.curveTo(h-p,b,h-x,b+x);this.curveTo(h,b+p,h,b+g);this.lineTo(h,m-l);this.set___dirty(!0)}},drawTriangles:function(a,b,c,d){null==d&&(d=1);if(null!=a&&0!=a.get_length()){var e=a.get_length()/2|0;if(null==b){if(0!=e%3)throw new ni("Not enough vertices to close a triangle.");b=ub.toIntVector(null);for(var g=0,f=e;g<f;){var l=g++;b.push(l)}}null==d&&(d=1);var h=Infinity,m=Infinity,k=-Infinity,p=-Infinity;g= +0;for(f=e;g<f;)l=g++,e=a.get(2*l),l=a.get(2*l+1),h>e&&(h=e),m>l&&(m=l),k<e&&(k=e),p<l&&(p=l);this.__inflateBounds(h,m);this.__inflateBounds(k,p);this.__commands.drawTriangles(a,b,c,d);this.set___dirty(!0);this.__visible=!0}},endFill:function(){this.__commands.endFill()},lineBitmapStyle:function(a,b,c,d){null==d&&(d=!1);null==c&&(c=!0);this.__commands.lineBitmapStyle(a,null!=b?b.clone():null,c,d)},lineGradientStyle:function(a,b,c,d,e,g,f,l){null==l&&(l=0);null==f&&(f=1);null==g&&(g=0);this.__commands.lineGradientStyle(a, +b,c,d,e,g,f,l)},lineStyle:function(a,b,c,d,e,g,f,l){null==l&&(l=3);null==e&&(e=2);null==d&&(d=!1);null==c&&(c=1);null==b&&(b=0);null!=a&&(1==f?a>this.__strokePadding&&(this.__strokePadding=Math.ceil(a)):a/2>this.__strokePadding&&(this.__strokePadding=Math.ceil(a/2)));this.__commands.lineStyle(a,b,c,d,e,g,f,l);null!=a&&(this.__visible=!0)},lineTo:function(a,b){isFinite(a)&&isFinite(b)&&(this.__inflateBounds(this.__positionX-this.__strokePadding,this.__positionY-this.__strokePadding),this.__inflateBounds(this.__positionX+ +this.__strokePadding,this.__positionY+this.__strokePadding),this.__positionX=a,this.__positionY=b,this.__inflateBounds(this.__positionX-this.__strokePadding,this.__positionY-this.__strokePadding),this.__inflateBounds(this.__positionX+2*this.__strokePadding,this.__positionY+this.__strokePadding),this.__commands.lineTo(a,b),this.set___dirty(!0))},moveTo:function(a,b){this.__positionX=a;this.__positionY=b;this.__commands.moveTo(a,b)},overrideBlendMode:function(a){null==a&&(a=10);this.__commands.overrideBlendMode(a)}, +readGraphicsData:function(a){null==a&&(a=!0);var b=ub.toObjectVector(null);this.__owner.__readGraphicsData(b,a);return b},__calculateBezierCubicPoint:function(a,b,c,d,e){var g=1-a;return b*g*g*g+3*c*a*g*g+3*d*g*a*a+e*a*a*a},__calculateBezierQuadPoint:function(a,b,c,d){var e=1-a;return e*e*b+2*e*a*c+a*a*d},__cleanup:function(){null!=this.__bounds&&null!=this.__canvas&&(this.set___dirty(!0),this.__transformDirty=!0);this.__context=this.__canvas=this.__bitmap=null},__getBounds:function(a,b){if(null!= +this.__bounds){var c=fa.__pool.get();this.__bounds.__transform(c,b);a.__expand(c.x,c.y,c.width,c.height);fa.__pool.release(c)}},__hitTest:function(a,b,c,d){if(null==this.__bounds)return!1;var e=d.a*d.d-d.b*d.c,g=0==e?-d.tx:1/e*(d.c*(d.ty-b)+d.d*(a-d.tx));e=d.a*d.d-d.b*d.c;a=0==e?-d.ty:1/e*(d.a*(b-d.ty)+d.b*(d.tx-a));return g>this.__bounds.x&&a>this.__bounds.y&&this.__bounds.contains(g,a)?c?D.hitTest(this,g,a):!0:!1},__inflateBounds:function(a,b){null==this.__bounds?(this.__bounds=new fa(a,b,0,0), +this.__transformDirty=!0):(a<this.__bounds.x&&(this.__bounds.width+=this.__bounds.x-a,this.__bounds.x=a,this.__transformDirty=!0),b<this.__bounds.y&&(this.__bounds.height+=this.__bounds.y-b,this.__bounds.y=b,this.__transformDirty=!0),a>this.__bounds.x+this.__bounds.width&&(this.__bounds.width=a-this.__bounds.x),b>this.__bounds.y+this.__bounds.height&&(this.__bounds.height=b-this.__bounds.y))},__readGraphicsData:function(a){for(var b=new Vf(this.__commands),c=null,d,e=this.__commands.types,g=0,f=this.__commands.get_length();g< +f;){d=g++;d=e[d];switch(d._hx_index){case 4:case 5:case 6:case 7:case 9:case 10:case 17:case 18:null==c&&(c=new Pi);break;default:null!=c&&(a.push(c),c=null)}switch(d._hx_index){case 0:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+= +5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1;break;case 20:b.oPos+=1}b.prev=ba.BEGIN_BITMAP_FILL;d=b;a.push(new Om(d.buffer.o[d.oPos],d.buffer.o[d.oPos+1],d.buffer.b[d.bPos],d.buffer.b[d.bPos+1]));break;case 1:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1; +break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1;break;case 20:b.oPos+= +1}b.prev=ba.BEGIN_FILL;d=b;a.push(new Zj(d.buffer.i[d.iPos],1));break;case 2:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+= +2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1;break;case 20:b.oPos+=1}b.prev=ba.BEGIN_GRADIENT_FILL;d=b;a.push(new Pm(d.buffer.o[d.oPos],d.buffer.ii[d.iiPos],d.buffer.ff[d.ffPos],d.buffer.ii[d.iiPos+1],d.buffer.o[d.oPos+1],d.buffer.o[d.oPos+2],d.buffer.o[d.oPos+3],d.buffer.f[d.fPos]));break;case 3:break;case 4:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break; +case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1;break;case 20:b.oPos+= +1}b.prev=ba.CUBIC_CURVE_TO;d=b;c.cubicCurveTo(d.buffer.f[d.fPos],d.buffer.f[d.fPos+1],d.buffer.f[d.fPos+2],d.buffer.f[d.fPos+3],d.buffer.f[d.fPos+4],d.buffer.f[d.fPos+5]);break;case 5:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+= +5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1;break;case 20:b.oPos+=1}b.prev=ba.CURVE_TO;d=b;c.curveTo(d.buffer.f[d.fPos],d.buffer.f[d.fPos+1],d.buffer.f[d.fPos+2],d.buffer.f[d.fPos+3]);break;case 6:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+= +4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1;break;case 20:b.oPos+=1}b.prev=ba.DRAW_CIRCLE; +d=b;c.__drawCircle(d.buffer.f[d.fPos],d.buffer.f[d.fPos+1],d.buffer.f[d.fPos+2]);break;case 7:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+= +4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1;break;case 20:b.oPos+=1}b.prev=ba.DRAW_ELLIPSE;d=b;c.__drawEllipse(d.buffer.f[d.fPos],d.buffer.f[d.fPos+1],d.buffer.f[d.fPos+2],d.buffer.f[d.fPos+3]);break;case 9:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+= +6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1;break;case 20:b.oPos+=1}b.prev=ba.DRAW_RECT;d=b;c.__drawRect(d.buffer.f[d.fPos],d.buffer.f[d.fPos+1],d.buffer.f[d.fPos+ +2],d.buffer.f[d.fPos+3]);break;case 10:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+= +4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1;break;case 20:b.oPos+=1}b.prev=ba.DRAW_ROUND_RECT;d=b;c.__drawRoundRect(d.buffer.f[d.fPos],d.buffer.f[d.fPos+1],d.buffer.f[d.fPos+2],d.buffer.f[d.fPos+3],d.buffer.f[d.fPos+4],null!=d.buffer.o[d.oPos]?d.buffer.o[d.oPos]:d.buffer.f[d.fPos+4]);break;case 13:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break; +case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1;break;case 20:b.oPos+=1}b.prev=ba.END_FILL;a.push(new Qm);break;case 14:switch(b.prev._hx_index){case 0:b.oPos+= +2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+= +2;break;case 19:b.oPos+=1;break;case 20:b.oPos+=1}b.prev=ba.LINE_BITMAP_STYLE;c=null;break;case 15:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+= +4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1;break;case 20:b.oPos+=1}b.prev=ba.LINE_GRADIENT_STYLE;break;case 16:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+= +3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1;break;case 20:b.oPos+=1}b.prev=ba.LINE_STYLE;var l=b;d=new Rm(l.buffer.o[l.oPos],l.buffer.b[l.bPos],l.buffer.o[l.oPos+1],l.buffer.o[l.oPos+2],l.buffer.o[l.oPos+3],l.buffer.f[l.fPos+1]);d.fill=new Zj(l.buffer.i[l.iPos], +l.buffer.f[l.fPos]);a.push(d);break;case 17:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+= +4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1;break;case 20:b.oPos+=1}b.prev=ba.LINE_TO;d=b;c.lineTo(d.buffer.f[d.fPos],d.buffer.f[d.fPos+1]);break;case 18:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+= +4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1;break;case 20:b.oPos+=1}b.prev=ba.MOVE_TO;d=b;c.moveTo(d.buffer.f[d.fPos],d.buffer.f[d.fPos+1]);break;default:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+= +2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1;break;case 20:b.oPos+=1}b.prev=d}}null!=c&& +a.push(c)},__update:function(a,b){if(!(null==this.__bounds||0>=this.__bounds.width||0>=this.__bounds.height)){var c=this.__owner.__renderTransform;if(null!=c){var d=b,e=b;null==this.__owner.__worldScale9Grid&&(d=0==c.b?Math.abs(c.a):Math.sqrt(c.a*c.a+c.b*c.b),e=0==c.c?Math.abs(c.d):Math.sqrt(c.c*c.c+c.d*c.d),null!=a&&(d=0==a.b?d*a.a:d*Math.sqrt(a.a*a.a+a.b*a.b),e=0==a.c?e*a.d:e*Math.sqrt(a.c*a.c+a.d*a.d)));a=this.__bounds.width*d;e*=this.__bounds.height;if(1>a||1>e)(1<=this.__width||1<=this.__height)&& +this.set___dirty(!0),this.__height=this.__width=0;else{null!=Ue.maxTextureWidth&&a>Ue.maxTextureWidth&&(a=Ue.maxTextureWidth);null!=Ue.maxTextureWidth&&e>Ue.maxTextureHeight&&(e=Ue.maxTextureHeight);null!=this.__owner.__worldScale9Grid?(this.__renderTransform.a=b,this.__renderTransform.d=b,d=1/b,b=1/b):(this.__renderTransform.a=a/this.__bounds.width,this.__renderTransform.d=e/this.__bounds.height,d=1/this.__renderTransform.a,b=1/this.__renderTransform.d);this.__worldTransform.a=d*c.a;this.__worldTransform.b= +d*c.b;this.__worldTransform.c=b*c.c;this.__worldTransform.d=b*c.d;d=this.__bounds.x;var g=this.__bounds.y;b=d*c.a+g*c.c+c.tx;c=d*c.b+g*c.d+c.ty;this.__worldTransform.tx=Math.round(b);this.__worldTransform.ty=Math.round(c);d=this.__worldTransform;g=d.a*d.d-d.b*d.c;this.__renderTransform.tx=0==g?-d.tx:1/g*(d.c*(d.ty-c)+d.d*(b-d.tx));d=this.__worldTransform;g=d.a*d.d-d.b*d.c;this.__renderTransform.ty=0==g?-d.ty:1/g*(d.a*(c-d.ty)+d.b*(d.tx-b));a=Math.ceil(a+1);e=Math.ceil(e+1);a==this.__width&&e==this.__height|| +this.set___dirty(!0);this.__width=a;this.__height=e}}}},set___dirty:function(a){if(a&&null!=this.__owner){var b=this.__owner;b.__renderDirty||(b.__renderDirty=!0,b.__setParentRenderDirty())}a&&(this.__hardwareDirty=this.__softwareDirty=!0);return this.__dirty=a},__class__:Ue,__properties__:{set___dirty:"set___dirty"}};var Ah=function(){};k["openfl.display.IGraphicsFill"]=Ah;Ah.__name__="openfl.display.IGraphicsFill";Ah.__isInterface__=!0;Ah.prototype={__graphicsFillType:null,__class__:Ah};var Wf= +function(){};k["openfl.display.IGraphicsData"]=Wf;Wf.__name__="openfl.display.IGraphicsData";Wf.__isInterface__=!0;Wf.prototype={__graphicsDataType:null,__class__:Wf};var Om=function(a,b,c,d){null==d&&(d=!1);null==c&&(c=!0);this.bitmapData=a;this.matrix=b;this.repeat=c;this.smooth=d;this.__graphicsDataType=4;this.__graphicsFillType=2};k["openfl.display.GraphicsBitmapFill"]=Om;Om.__name__="openfl.display.GraphicsBitmapFill";Om.__interfaces__=[Ah,Wf];Om.prototype={bitmapData:null,matrix:null,repeat:null, +smooth:null,__graphicsDataType:null,__graphicsFillType:null,__class__:Om};var Qm=function(){this.__graphicsDataType=5;this.__graphicsFillType=3};k["openfl.display.GraphicsEndFill"]=Qm;Qm.__name__="openfl.display.GraphicsEndFill";Qm.__interfaces__=[Ah,Wf];Qm.prototype={__graphicsDataType:null,__graphicsFillType:null,__class__:Qm};var Pm=function(a,b,c,d,e,g,f,l){null==l&&(l=0);null==a&&(a=0);null==g&&(g=0);null==f&&(f=1);this.type=a;this.colors=b;this.alphas=c;this.ratios=d;this.matrix=e;this.spreadMethod= +g;this.interpolationMethod=f;this.focalPointRatio=l;this.__graphicsDataType=2;this.__graphicsFillType=1};k["openfl.display.GraphicsGradientFill"]=Pm;Pm.__name__="openfl.display.GraphicsGradientFill";Pm.__interfaces__=[Ah,Wf];Pm.prototype={alphas:null,colors:null,focalPointRatio:null,interpolationMethod:null,matrix:null,ratios:null,spreadMethod:null,type:null,__graphicsDataType:null,__graphicsFillType:null,__class__:Pm};var Sm=function(){};k["openfl.display.IGraphicsPath"]=Sm;Sm.__name__="openfl.display.IGraphicsPath"; +Sm.__isInterface__=!0;var Pi=function(a,b,c){null==c&&(c=0);this.commands=a;this.data=b;this.winding=c;this.__graphicsDataType=3};k["openfl.display.GraphicsPath"]=Pi;Pi.__name__="openfl.display.GraphicsPath";Pi.__interfaces__=[Sm,Wf];Pi.prototype={commands:null,data:null,winding:null,__graphicsDataType:null,cubicCurveTo:function(a,b,c,d,e,g){null==this.commands&&(this.commands=ub.toIntVector(null));null==this.data&&(this.data=ub.toFloatVector(null));this.commands.push(6);this.data.push(a);this.data.push(b); +this.data.push(c);this.data.push(d);this.data.push(e);this.data.push(g)},curveTo:function(a,b,c,d){null==this.commands&&(this.commands=ub.toIntVector(null));null==this.data&&(this.data=ub.toFloatVector(null));this.commands.push(3);this.data.push(a);this.data.push(b);this.data.push(c);this.data.push(d)},lineTo:function(a,b){null==this.commands&&(this.commands=ub.toIntVector(null));null==this.data&&(this.data=ub.toFloatVector(null));this.commands.push(2);this.data.push(a);this.data.push(b)},moveTo:function(a, +b){null==this.commands&&(this.commands=ub.toIntVector(null));null==this.data&&(this.data=ub.toFloatVector(null));this.commands.push(1);this.data.push(a);this.data.push(b)},wideLineTo:function(a,b){null==this.commands&&(this.commands=ub.toIntVector(null));null==this.data&&(this.data=ub.toFloatVector(null));this.commands.push(2);this.data.push(a);this.data.push(b)},wideMoveTo:function(a,b){null==this.commands&&(this.commands=ub.toIntVector(null));null==this.data&&(this.data=ub.toFloatVector(null)); +this.commands.push(1);this.data.push(a);this.data.push(b)},__drawCircle:function(a,b,c){this.__drawRoundRect(a-c,b-c,2*c,2*c,2*c,2*c)},__drawEllipse:function(a,b,c,d){this.__drawRoundRect(a,b,c,d,c,d)},__drawRect:function(a,b,c,d){this.moveTo(a,b);this.lineTo(a+c,b);this.lineTo(a+c,b+d);this.lineTo(a,b+d);this.lineTo(a,b)},__drawRoundRect:function(a,b,c,d,e,g){e*=.5;g*=.5;e>c/2&&(e=c/2);g>d/2&&(g=d/2);c=a+c;d=b+d;var f=-e+.7071067811865476*e,l=-e+.41421356237309503*e,h=-g+.7071067811865476*g,m=-g+ +.41421356237309503*g;this.moveTo(c,d-g);this.curveTo(c,d+m,c+f,d+h);this.curveTo(c+l,d,c-e,d);this.lineTo(a+e,d);this.curveTo(a-l,d,a-f,d+h);this.curveTo(a,d+m,a,d-g);this.lineTo(a,b+g);this.curveTo(a,b-m,a-f,b-h);this.curveTo(a-l,b,a+e,b);this.lineTo(c-e,b);this.curveTo(c+l,b,c+f,b-h);this.curveTo(c,b-m,c,b+g);this.lineTo(c,d-g)},__class__:Pi};var $o=function(a,b,c){this.rects=a;this.indices=b;this.transforms=c;this.__graphicsDataType=6};k["openfl.display.GraphicsQuadPath"]=$o;$o.__name__="openfl.display.GraphicsQuadPath"; +$o.__interfaces__=[Sm,Wf];$o.prototype={indices:null,rects:null,transforms:null,__graphicsDataType:null,__class__:$o};var Tm=function(a){null==this.__glFragmentSource&&(this.__glFragmentSource="varying float openfl_Alphav;\n\t\tvarying vec4 openfl_ColorMultiplierv;\n\t\tvarying vec4 openfl_ColorOffsetv;\n\t\tvarying vec2 openfl_TextureCoordv;\n\n\t\tuniform bool openfl_HasColorTransform;\n\t\tuniform vec2 openfl_TextureSize;\n\t\tuniform sampler2D bitmap;\n\n\t\tvoid main(void) {\n\n\t\t\tvec4 color = texture2D (bitmap, openfl_TextureCoordv);\n\n\t\tif (color.a == 0.0) {\n\n\t\t\tgl_FragColor = vec4 (0.0, 0.0, 0.0, 0.0);\n\n\t\t} else if (openfl_HasColorTransform) {\n\n\t\t\tcolor = vec4 (color.rgb / color.a, color.a);\n\n\t\t\tmat4 colorMultiplier = mat4 (0);\n\t\t\tcolorMultiplier[0][0] = openfl_ColorMultiplierv.x;\n\t\t\tcolorMultiplier[1][1] = openfl_ColorMultiplierv.y;\n\t\t\tcolorMultiplier[2][2] = openfl_ColorMultiplierv.z;\n\t\t\tcolorMultiplier[3][3] = 1.0; // openfl_ColorMultiplierv.w;\n\n\t\t\tcolor = clamp (openfl_ColorOffsetv + (color * colorMultiplier), 0.0, 1.0);\n\n\t\t\tif (color.a > 0.0) {\n\n\t\t\t\tgl_FragColor = vec4 (color.rgb * color.a * openfl_Alphav, color.a * openfl_Alphav);\n\n\t\t\t} else {\n\n\t\t\t\tgl_FragColor = vec4 (0.0, 0.0, 0.0, 0.0);\n\n\t\t\t}\n\n\t\t} else {\n\n\t\t\tgl_FragColor = color * openfl_Alphav;\n\n\t\t}\n\n\t\t}"); +null==this.__glVertexSource&&(this.__glVertexSource="attribute float openfl_Alpha;\n\t\tattribute vec4 openfl_ColorMultiplier;\n\t\tattribute vec4 openfl_ColorOffset;\n\t\tattribute vec4 openfl_Position;\n\t\tattribute vec2 openfl_TextureCoord;\n\n\t\tvarying float openfl_Alphav;\n\t\tvarying vec4 openfl_ColorMultiplierv;\n\t\tvarying vec4 openfl_ColorOffsetv;\n\t\tvarying vec2 openfl_TextureCoordv;\n\n\t\tuniform mat4 openfl_Matrix;\n\t\tuniform bool openfl_HasColorTransform;\n\t\tuniform vec2 openfl_TextureSize;\n\n\t\tvoid main(void) {\n\n\t\t\topenfl_Alphav = openfl_Alpha;\n\t\topenfl_TextureCoordv = openfl_TextureCoord;\n\n\t\tif (openfl_HasColorTransform) {\n\n\t\t\topenfl_ColorMultiplierv = openfl_ColorMultiplier;\n\t\t\topenfl_ColorOffsetv = openfl_ColorOffset / 255.0;\n\n\t\t}\n\n\t\tgl_Position = openfl_Matrix * openfl_Position;\n\n\t\t}"); +bf.call(this,a);this.__isGenerated=!0;this.__initGL()};k["openfl.display.GraphicsShader"]=Tm;Tm.__name__="openfl.display.GraphicsShader";Tm.__super__=bf;Tm.prototype=u(bf.prototype,{openfl_Alpha:null,openfl_ColorMultiplier:null,openfl_ColorOffset:null,openfl_Position:null,openfl_TextureCoord:null,openfl_Matrix:null,openfl_HasColorTransform:null,openfl_TextureSize:null,bitmap:null,__class__:Tm});var ap=function(a,b){this.shader=a;this.matrix=b;this.__graphicsDataType=8;this.__graphicsFillType=4};k["openfl.display.GraphicsShaderFill"]= +ap;ap.__name__="openfl.display.GraphicsShaderFill";ap.__interfaces__=[Ah,Wf];ap.prototype={matrix:null,shader:null,__graphicsDataType:null,__graphicsFillType:null,__class__:ap};var Zj=function(a,b){null==b&&(b=1);null==a&&(a=0);this.alpha=b;this.color=a;this.__graphicsDataType=1;this.__graphicsFillType=0};k["openfl.display.GraphicsSolidFill"]=Zj;Zj.__name__="openfl.display.GraphicsSolidFill";Zj.__interfaces__=[Ah,Wf];Zj.prototype={alpha:null,color:null,__graphicsDataType:null,__graphicsFillType:null, +__class__:Zj};var Vt=function(){};k["openfl.display.IGraphicsStroke"]=Vt;Vt.__name__="openfl.display.IGraphicsStroke";Vt.__isInterface__=!0;var Rm=function(a,b,c,d,e,g,f){null==g&&(g=3);null==e&&(e=2);null==d&&(d=0);null==c&&(c=2);null==b&&(b=!1);null==a&&(a=NaN);this.caps=d;this.fill=f;this.joints=e;this.miterLimit=g;this.pixelHinting=b;this.scaleMode=c;this.thickness=a;this.__graphicsDataType=0};k["openfl.display.GraphicsStroke"]=Rm;Rm.__name__="openfl.display.GraphicsStroke";Rm.__interfaces__= +[Vt,Wf];Rm.prototype={caps:null,fill:null,joints:null,miterLimit:null,pixelHinting:null,scaleMode:null,thickness:null,__graphicsDataType:null,__class__:Rm};var bp=function(a,b,c,d){null==d&&(d=1);this.vertices=a;this.indices=b;this.uvtData=c;this.culling=d;this.__graphicsDataType=7};k["openfl.display.GraphicsTrianglePath"]=bp;bp.__name__="openfl.display.GraphicsTrianglePath";bp.__interfaces__=[Sm,Wf];bp.prototype={culling:null,indices:null,uvtData:null,vertices:null,__graphicsDataType:null,__class__:bp}; +var Ci=function(){};k["openfl.display.ITileContainer"]=Ci;Ci.__name__="openfl.display.ITileContainer";Ci.__isInterface__=!0;Ci.prototype={get_numTiles:null,addTile:null,addTileAt:null,addTiles:null,contains:null,getTileAt:null,getTileIndex:null,removeTile:null,removeTileAt:null,removeTiles:null,setTileIndex:null,sortTiles:null,swapTiles:null,swapTilesAt:null,__class__:Ci,__properties__:{get_numTiles:"get_numTiles"}};var Dm=function(a){null==a&&(a=80);this.quality=a};k["openfl.display.JPEGEncoderOptions"]= +Dm;Dm.__name__="openfl.display.JPEGEncoderOptions";Dm.prototype={quality:null,__class__:Dm};var Wt={fromInt:function(a){return a},fromString:function(a){switch(a){case "bevel":return 0;case "miter":return 1;case "round":return 2;default:return null}},toInt:function(a){return a},toString:function(a){switch(a){case 0:return"bevel";case 1:return"miter";case 2:return"round";default:return null}}},Ej=function(){Jb.call(this);this.__drawableType=4;this.contentLoaderInfo=Jf.create(this);this.uncaughtErrorEvents= +this.contentLoaderInfo.uncaughtErrorEvents;this.__unloaded=!0};k["openfl.display.Loader"]=Ej;Ej.__name__="openfl.display.Loader";Ej.__super__=Jb;Ej.prototype=u(Jb.prototype,{content:null,contentLoaderInfo:null,uncaughtErrorEvents:null,__library:null,__path:null,__unloaded:null,addChild:function(a){throw new Ec("Error #2069: The Loader class does not implement this method.",2069);},addChildAt:function(a,b){throw new Ec("Error #2069: The Loader class does not implement this method.",2069);},close:function(){zc.notImplemented({fileName:"openfl/display/Loader.hx", +lineNumber:228,className:"openfl.display.Loader",methodName:"close"})},load:function(a,b){this.unload();b=new la("open");this.contentLoaderInfo.dispatchEvent(b);this.contentLoaderInfo.loaderURL=Da.get_current().get_loaderInfo().url;this.contentLoaderInfo.url=a.url;this.__unloaded=!1;if(null==a.contentType||""==a.contentType){b="";this.__path=a.url;var c=this.__path.indexOf("?");-1<c&&(this.__path=this.__path.substring(0,c));for(;J.endsWith(this.__path,"/");)this.__path=this.__path.substring(0,this.__path.length- +1);J.endsWith(this.__path,".bundle")&&(this.__path+="/library.json",a.url=-1<c?this.__path+a.url.substring(c):this.__path);c=this.__path.lastIndexOf(".");-1<c&&(b=this.__path.substring(c+1));switch(b){case "gif":b="image/gif";break;case "jpeg":case "jpg":b="image/jpeg";break;case "js":b="application/javascript";break;case "json":b="application/json";break;case "png":b="image/png";break;case "swf":b="application/x-shockwave-flash";break;default:b="application/x-www-form-urlencoded"}this.contentLoaderInfo.contentType= +b}else this.contentLoaderInfo.contentType=a.contentType;if(-1<this.contentLoaderInfo.contentType.indexOf("image/")&&"GET"==a.method&&(null==a.requestHeaders||0==a.requestHeaders.length)&&null==a.userAgent)Ja.loadFromFile(a.url).onComplete(q(this,this.BitmapData_onLoad)).onError(q(this,this.BitmapData_onError)).onProgress(q(this,this.BitmapData_onProgress));else{b=new ph;b.dataFormat=0;if(-1<this.contentLoaderInfo.contentType.indexOf("/json")||-1<this.contentLoaderInfo.contentType.indexOf("/javascript")|| +-1<this.contentLoaderInfo.contentType.indexOf("/ecmascript"))b.dataFormat=1;b.addEventListener("complete",q(this,this.loader_onComplete));b.addEventListener("ioError",q(this,this.loader_onError));b.addEventListener("progress",q(this,this.loader_onProgress));b.load(a)}},loadBytes:function(a,b){Ja.loadFromBytes(a).onComplete(q(this,this.BitmapData_onLoad)).onError(q(this,this.BitmapData_onError))},removeChild:function(a){if(a==this.content)return Jb.prototype.removeChild.call(this,this.content);throw new Ec("Error #2069: The Loader class does not implement this method.", +2069);},removeChildAt:function(a){throw new Ec("Error #2069: The Loader class does not implement this method.",2069);},setChildIndex:function(a,b){throw new Ec("Error #2069: The Loader class does not implement this method.",2069);},unload:function(){this.__unloaded||(null!=this.content&&this.content.parent==this&&Jb.prototype.removeChild.call(this,this.content),null!=this.__library&&(qa.unloadLibrary(this.contentLoaderInfo.url),this.__library=null),this.content=null,this.contentLoaderInfo.url=null, +this.contentLoaderInfo.contentType=null,this.contentLoaderInfo.content=null,this.contentLoaderInfo.bytesLoaded=0,this.contentLoaderInfo.bytesTotal=0,this.contentLoaderInfo.width=0,this.contentLoaderInfo.height=0,this.__unloaded=!0,this.contentLoaderInfo.dispatchEvent(new la("unload")))},unloadAndStop:function(a){null!=this.content&&this.content.__stopAllMovieClips();a=0;for(var b=this.get_numChildren();a<b;){var c=a++;this.getChildAt(c).__stopAllMovieClips()}this.unload()},__dispatchError:function(a){var b= +new lg("ioError");b.text=a;this.contentLoaderInfo.dispatchEvent(b)},__setContent:function(a,b,c){this.content=a;this.contentLoaderInfo.content=a;this.contentLoaderInfo.width=b;this.contentLoaderInfo.height=c;null!=a&&Jb.prototype.addChildAt.call(this,a,0)},BitmapData_onError:function(a){this.__dispatchError(n.string(a))},BitmapData_onLoad:function(a){null==a?this.__dispatchError("Unknown error"):(this.__setContent(new Vb(a),a.width,a.height),this.contentLoaderInfo.dispatchEvent(new la("complete")))}, +BitmapData_onProgress:function(a,b){var c=new Cg("progress");c.bytesLoaded=a;c.bytesTotal=b;this.contentLoaderInfo.dispatchEvent(c)},loader_onComplete:function(a){var b=this;a=a.target;if(null!=this.contentLoaderInfo.contentType&&-1<this.contentLoaderInfo.contentType.indexOf("/json")){var c=Fc.parse(a.data,Ye.directory(this.__path));if(null==c)this.__dispatchError("Cannot parse asset manifest");else{var d=vb.fromManifest(c);if(null==d)this.__dispatchError("Cannot open library");else if(d instanceof +Id)d.load().onComplete(function(a){b.__library=d;qa.registerLibrary(b.contentLoaderInfo.url,b.__library);null==c.name||qa.hasLibrary(c.name)||qa.registerLibrary(c.name,b.__library);a=b.__library.getMovieClip("");b.__setContent(a,a.get_width()|0,a.get_height()|0);b.contentLoaderInfo.dispatchEvent(new la("complete"))}).onError(function(a){b.__dispatchError(a)})}}else null!=this.contentLoaderInfo.contentType&&(-1<this.contentLoaderInfo.contentType.indexOf("/javascript")||-1<this.contentLoaderInfo.contentType.indexOf("/ecmascript"))? +(this.__setContent(new ta,0,0),eval("(function () {"+n.string(a.data)+"})()"),this.contentLoaderInfo.dispatchEvent(new la("complete"))):(this.contentLoaderInfo.bytes=a.data,Ja.loadFromBytes(a.data).onComplete(q(this,this.BitmapData_onLoad)).onError(q(this,this.BitmapData_onError)))},loader_onError:function(a){a.target=this.contentLoaderInfo;this.contentLoaderInfo.dispatchEvent(a)},loader_onProgress:function(a){a.target=this.contentLoaderInfo;this.contentLoaderInfo.dispatchEvent(a)},__class__:Ej}); +var Jf=function(){fb.call(this);this.applicationDomain=Qi.currentDomain;this.bytesTotal=this.bytesLoaded=0;this.childAllowsParent=!0;this.parameters={}};k["openfl.display.LoaderInfo"]=Jf;Jf.__name__="openfl.display.LoaderInfo";Jf.create=function(a){var b=new Jf;b.uncaughtErrorEvents=new Um;null!=a?b.loader=a:b.url=Jf.__rootURL;return b};Jf.__super__=fb;Jf.prototype=u(fb.prototype,{applicationDomain:null,bytes:null,bytesLoaded:null,bytesTotal:null,childAllowsParent:null,content:null,contentType:null, +frameRate:null,height:null,loader:null,loaderURL:null,parameters:null,parentAllowsChild:null,sameDomain:null,sharedEvents:null,uncaughtErrorEvents:null,url:null,width:null,__completed:null,__complete:function(){this.__completed||(this.bytesLoaded<this.bytesTotal&&(this.bytesLoaded=this.bytesTotal),this.__update(this.bytesLoaded,this.bytesTotal),this.__completed=!0,this.dispatchEvent(new la("complete")))},__update:function(a,b){this.bytesLoaded=a;this.bytesTotal=b;this.dispatchEvent(new Cg("progress", +!1,!1,a,b))},__class__:Jf});var yh=function(){ta.call(this);this.__enabled=!0};k["openfl.display.MovieClip"]=yh;yh.__name__="openfl.display.MovieClip";yh.fromTimeline=function(a){var b=new yh;b.attachTimeline(a);return b};yh.__super__=ta;yh.prototype=u(ta.prototype,{__enabled:null,__hasDown:null,__hasOver:null,__hasUp:null,__mouseIsDown:null,__scene:null,__timeline:null,addFrameScript:function(a,b){null!=this.__timeline&&this.__timeline.__addFrameScript(a,b)},attachTimeline:function(a){this.__timeline= +a;null!=a&&(a.__attachMovieClip(this),this.play())},gotoAndPlay:function(a,b){null!=this.__timeline&&this.__timeline.__gotoAndPlay(a,b)},gotoAndStop:function(a,b){null!=this.__timeline&&this.__timeline.__gotoAndStop(a,b)},nextFrame:function(){null!=this.__timeline&&this.__timeline.__nextFrame()},nextScene:function(){null!=this.__timeline&&this.__timeline.__nextScene()},play:function(){null!=this.__timeline&&this.__timeline.__play()},prevFrame:function(){null!=this.__timeline&&this.__timeline.__prevFrame()}, +prevScene:function(){null!=this.__timeline&&this.__timeline.__prevScene()},stop:function(){null!=this.__timeline&&this.__timeline.__stop()},__enterFrame:function(a){null!=this.__timeline&&this.__timeline.__enterFrame(a);for(var b=0,c=this.__children;b<c.length;){var d=c[b];++b;d.__enterFrame(a)}},__stopAllMovieClips:function(){ta.prototype.__stopAllMovieClips.call(this);this.stop()},__tabTest:function(a){this.__enabled&&ta.prototype.__tabTest.call(this,a)},__onMouseDown:function(a){this.__enabled&& +this.__hasDown&&this.gotoAndStop("_down");this.__mouseIsDown=!0;null!=this.stage&&this.stage.addEventListener("mouseUp",q(this,this.__onMouseUp),!0)},__onMouseUp:function(a){this.__mouseIsDown=!1;null!=this.stage&&this.stage.removeEventListener("mouseUp",q(this,this.__onMouseUp));this.__buttonMode&&(he.__eq(a.target,this)&&this.__enabled&&this.__hasOver?this.gotoAndStop("_over"):this.__enabled&&this.__hasUp&&this.gotoAndStop("_up"))},__onRollOut:function(a){this.__enabled&&(this.__mouseIsDown&&this.__hasOver? +this.gotoAndStop("_over"):this.__hasUp&&this.gotoAndStop("_up"))},__onRollOver:function(a){this.__enabled&&this.__hasOver&&this.gotoAndStop("_over")},set_buttonMode:function(a){if(this.__buttonMode!=a){if(a){this.__hasUp=this.__hasOver=this.__hasDown=!1;for(var b=0,c=this.get_currentLabels();b<c.length;){var d=c[b];++b;switch(d.name){case "_down":this.__hasDown=!0;break;case "_over":this.__hasOver=!0;break;case "_up":this.__hasUp=!0}}if(this.__hasDown||this.__hasOver||this.__hasUp)this.addEventListener("rollOver", +q(this,this.__onRollOver)),this.addEventListener("rollOut",q(this,this.__onRollOut)),this.addEventListener("mouseDown",q(this,this.__onMouseDown))}else this.removeEventListener("rollOver",q(this,this.__onRollOver)),this.removeEventListener("rollOut",q(this,this.__onRollOut)),this.removeEventListener("mouseDown",q(this,this.__onMouseDown));this.__buttonMode=a}return a},get_currentFrame:function(){return null!=this.__timeline?this.__timeline.__currentFrame:1},get_currentFrameLabel:function(){return null!= +this.__timeline?this.__timeline.__currentFrameLabel:null},get_currentLabel:function(){return null!=this.__timeline?this.__timeline.__currentLabel:null},get_currentLabels:function(){return null!=this.__timeline?this.__timeline.__currentLabels.slice():[]},get_currentScene:function(){if(null!=this.__timeline)return this.__timeline.__currentScene;null==this.__scene&&(this.__scene=new cp("",[],1));return this.__scene},get_enabled:function(){return this.__enabled},set_enabled:function(a){return this.__enabled= +a},get_framesLoaded:function(){return null!=this.__timeline?this.__timeline.__framesLoaded:1},get_isPlaying:function(){return null!=this.__timeline?this.__timeline.__isPlaying:!1},get_scenes:function(){return null!=this.__timeline?this.__timeline.scenes.slice():[this.get_currentScene()]},get_totalFrames:function(){return null!=this.__timeline?this.__timeline.__totalFrames:1},__class__:yh,__properties__:u(ta.prototype.__properties__,{get_totalFrames:"get_totalFrames",get_scenes:"get_scenes",get_isPlaying:"get_isPlaying", +get_framesLoaded:"get_framesLoaded",set_enabled:"set_enabled",get_enabled:"get_enabled",get_currentScene:"get_currentScene",get_currentLabels:"get_currentLabels",get_currentLabel:"get_currentLabel",get_currentFrameLabel:"get_currentFrameLabel",get_currentFrame:"get_currentFrame"})});var Ab=function(a,b){Re.call(this);this.__context3D=a;this.__context=a.__context;this.__gl=this.gl=a.__context.webgl;this.__defaultRenderTarget=b;this.__flipped=null==this.__defaultRenderTarget;null==Ue.maxTextureWidth&& +(Ue.maxTextureWidth=Ue.maxTextureHeight=this.__gl.getParameter(this.__gl.MAX_TEXTURE_SIZE));this.__matrix=ra._new();this.__values=[];this.__softwareRenderer=new Yg(null);this.__type="opengl";this.__setBlendMode(10);this.__context3D.__setGLBlend(!0);this.__clipRects=[];this.__maskObjects=[];this.__numClipRects=0;this.__projection=ra._new();this.__projectionFlipped=ra._new();this.__stencilReference=0;this.__tempRect=new fa;this.__defaultDisplayShader=new Mm;this.__defaultGraphicsShader=new Tm;this.__defaultShader= +this.__defaultDisplayShader;this.__initShader(this.__defaultShader);this.__scrollRectMasks=new Qd(function(){return new Me});this.__maskShader=new $h};k["openfl.display.OpenGLRenderer"]=Ab;Ab.__name__="openfl.display.OpenGLRenderer";Ab.__super__=Re;Ab.prototype=u(Re.prototype,{gl:null,__context3D:null,__clipRects:null,__currentDisplayShader:null,__currentGraphicsShader:null,__currentRenderTarget:null,__currentShader:null,__currentShaderBuffer:null,__defaultDisplayShader:null,__defaultGraphicsShader:null, +__defaultRenderTarget:null,__defaultShader:null,__displayHeight:null,__displayWidth:null,__flipped:null,__gl:null,__height:null,__maskShader:null,__matrix:null,__maskObjects:null,__numClipRects:null,__offsetX:null,__offsetY:null,__projection:null,__projectionFlipped:null,__scrollRectMasks:null,__softwareRenderer:null,__stencilReference:null,__tempRect:null,__updatedStencil:null,__upscaled:null,__values:null,__width:null,applyAlpha:function(a){Ab.__alphaValue[0]=a*this.__worldAlpha;null!=this.__currentShaderBuffer? +this.__currentShaderBuffer.addFloatOverride("openfl_Alpha",Ab.__alphaValue):null!=this.__currentShader&&null!=this.__currentShader.__alpha&&(this.__currentShader.__alpha.value=Ab.__alphaValue)},applyBitmapData:function(a,b,c){null==c&&(c=!1);null!=this.__currentShaderBuffer?null!=a&&(Ab.__textureSizeValue[0]=a.__textureWidth,Ab.__textureSizeValue[1]=a.__textureHeight,this.__currentShaderBuffer.addFloatOverride("openfl_TextureSize",Ab.__textureSizeValue)):null!=this.__currentShader&&(null!=this.__currentShader.__bitmap&& +(this.__currentShader.__bitmap.input=a,this.__currentShader.__bitmap.filter=b&&this.__allowSmoothing?4:5,this.__currentShader.__bitmap.mipFilter=2,this.__currentShader.__bitmap.wrap=c?2:0),null!=this.__currentShader.__texture&&(this.__currentShader.__texture.input=a,this.__currentShader.__texture.filter=b&&this.__allowSmoothing?4:5,this.__currentShader.__texture.mipFilter=2,this.__currentShader.__texture.wrap=c?2:0),null!=this.__currentShader.__textureSize&&(null!=a?(Ab.__textureSizeValue[0]=a.__textureWidth, +Ab.__textureSizeValue[1]=a.__textureHeight,this.__currentShader.__textureSize.value=Ab.__textureSizeValue):this.__currentShader.__textureSize.value=null))},applyColorTransform:function(a){var b=null!=a&&!a.__isDefault(!0);this.applyHasColorTransform(b);b?(a.__setArrays(Ab.__colorMultipliersValue,Ab.__colorOffsetsValue),null!=this.__currentShaderBuffer?(this.__currentShaderBuffer.addFloatOverride("openfl_ColorMultiplier",Ab.__colorMultipliersValue),this.__currentShaderBuffer.addFloatOverride("openfl_ColorOffset", +Ab.__colorOffsetsValue)):null!=this.__currentShader&&(null!=this.__currentShader.__colorMultiplier&&(this.__currentShader.__colorMultiplier.value=Ab.__colorMultipliersValue),null!=this.__currentShader.__colorOffset&&(this.__currentShader.__colorOffset.value=Ab.__colorOffsetsValue))):null!=this.__currentShaderBuffer?(this.__currentShaderBuffer.addFloatOverride("openfl_ColorMultiplier",Ab.__emptyColorValue),this.__currentShaderBuffer.addFloatOverride("openfl_ColorOffset",Ab.__emptyColorValue)):null!= +this.__currentShader&&(null!=this.__currentShader.__colorMultiplier&&(this.__currentShader.__colorMultiplier.value=Ab.__emptyColorValue),null!=this.__currentShader.__colorOffset&&(this.__currentShader.__colorOffset.value=Ab.__emptyColorValue))},applyHasColorTransform:function(a){Ab.__hasColorTransformValue[0]=a;null!=this.__currentShaderBuffer?this.__currentShaderBuffer.addBoolOverride("openfl_HasColorTransform",Ab.__hasColorTransformValue):null!=this.__currentShader&&null!=this.__currentShader.__hasColorTransform&& +(this.__currentShader.__hasColorTransform.value=Ab.__hasColorTransformValue)},applyMatrix:function(a){null!=this.__currentShaderBuffer?this.__currentShaderBuffer.addFloatOverride("openfl_Matrix",a):null!=this.__currentShader&&null!=this.__currentShader.__matrix&&(this.__currentShader.__matrix.value=a)},getMatrix:function(a){null!=this.gl?(a=this.__getMatrix(a,1),ra.set(this.__matrix,0,a[0]),ra.set(this.__matrix,1,a[1]),ra.set(this.__matrix,2,a[2]),ra.set(this.__matrix,3,a[3]),ra.set(this.__matrix, +4,a[4]),ra.set(this.__matrix,5,a[5]),ra.set(this.__matrix,6,a[6]),ra.set(this.__matrix,7,a[7]),ra.set(this.__matrix,8,a[8]),ra.set(this.__matrix,9,a[9]),ra.set(this.__matrix,10,a[10]),ra.set(this.__matrix,11,a[11]),ra.set(this.__matrix,12,a[12]),ra.set(this.__matrix,13,a[13]),ra.set(this.__matrix,14,a[14]),ra.set(this.__matrix,15,a[15])):(ra.identity(this.__matrix),ra.set(this.__matrix,0,a.a),ra.set(this.__matrix,1,a.b),ra.set(this.__matrix,4,a.c),ra.set(this.__matrix,5,a.d),ra.set(this.__matrix, +12,a.tx),ra.set(this.__matrix,13,a.ty));return this.__matrix},setShader:function(a){this.__currentShaderBuffer=null;this.__currentShader!=a&&(null==a?(this.__currentShader=null,this.__context3D.setProgram(null)):(this.__currentShader=a,this.__initShader(a),this.__context3D.setProgram(a.program),this.__context3D.__flushGLProgram(),this.__currentShader.__enable(),this.__context3D.__state.shader=a))},setViewport:function(){this.__gl.viewport(this.__offsetX,this.__offsetY,this.__displayWidth,this.__displayHeight)}, +updateShader:function(){null!=this.__currentShader&&(null!=this.__currentShader.__position&&(this.__currentShader.__position.__useArray=!0),null!=this.__currentShader.__textureCoord&&(this.__currentShader.__textureCoord.__useArray=!0),this.__context3D.setProgram(this.__currentShader.program),this.__context3D.__flushGLProgram(),this.__context3D.__flushGLTextures(),this.__currentShader.__update())},useAlphaArray:function(){null!=this.__currentShader&&null!=this.__currentShader.__alpha&&(this.__currentShader.__alpha.__useArray= +!0)},useColorTransformArray:function(){null!=this.__currentShader&&(null!=this.__currentShader.__colorMultiplier&&(this.__currentShader.__colorMultiplier.__useArray=!0),null!=this.__currentShader.__colorOffset&&(this.__currentShader.__colorOffset.__useArray=!0))},__cleanup:function(){0<this.__stencilReference&&(this.__stencilReference=0,this.__context3D.setStencilActions(),this.__context3D.setStencilReferenceValue(0,0,0));0<this.__numClipRects&&(this.__numClipRects=0,this.__scissorRect())},__clear:function(){null== +this.__stage||this.__stage.__transparent?this.__context3D.clear(0,0,0,0,0,0,1):this.__context3D.clear(this.__stage.__colorSplit[0],this.__stage.__colorSplit[1],this.__stage.__colorSplit[2],1,0,0,1);this.__cleared=!0},__clearShader:function(){null!=this.__currentShader&&(null==this.__currentShaderBuffer?null!=this.__currentShader.__bitmap&&(this.__currentShader.__bitmap.input=null):this.__currentShaderBuffer.clearOverride(),null!=this.__currentShader.__texture&&(this.__currentShader.__texture.input= +null),null!=this.__currentShader.__textureSize&&(this.__currentShader.__textureSize.value=null),null!=this.__currentShader.__hasColorTransform&&(this.__currentShader.__hasColorTransform.value=null),null!=this.__currentShader.__position&&(this.__currentShader.__position.value=null),null!=this.__currentShader.__matrix&&(this.__currentShader.__matrix.value=null),this.__currentShader.__clearUseArray())},__copyShader:function(a){this.__currentShader=a.__currentShader;this.__currentShaderBuffer=a.__currentShaderBuffer; +this.__currentDisplayShader=a.__currentDisplayShader;this.__currentGraphicsShader=a.__currentGraphicsShader},__getMatrix:function(a,b){var c=Aa.__pool.get();c.copyFrom(a);c.concat(this.__worldTransform);if(0==b||1==b&&0==c.b&&0==c.c&&1.001>c.a&&.999<c.a&&1.001>c.d&&.999<c.d)c.tx=Math.round(c.tx),c.ty=Math.round(c.ty);ra.identity(this.__matrix);ra.set(this.__matrix,0,c.a);ra.set(this.__matrix,1,c.b);ra.set(this.__matrix,4,c.c);ra.set(this.__matrix,5,c.d);ra.set(this.__matrix,12,c.tx);ra.set(this.__matrix, +13,c.ty);ra.append(this.__matrix,this.__flipped?this.__projectionFlipped:this.__projection);this.__values[0]=ra.get(this.__matrix,0);this.__values[1]=ra.get(this.__matrix,1);this.__values[2]=ra.get(this.__matrix,2);this.__values[3]=ra.get(this.__matrix,3);this.__values[4]=ra.get(this.__matrix,4);this.__values[5]=ra.get(this.__matrix,5);this.__values[6]=ra.get(this.__matrix,6);this.__values[7]=ra.get(this.__matrix,7);this.__values[8]=ra.get(this.__matrix,8);this.__values[9]=ra.get(this.__matrix,9); +this.__values[10]=ra.get(this.__matrix,10);this.__values[11]=ra.get(this.__matrix,11);this.__values[12]=ra.get(this.__matrix,12);this.__values[13]=ra.get(this.__matrix,13);this.__values[14]=ra.get(this.__matrix,14);this.__values[15]=ra.get(this.__matrix,15);Aa.__pool.release(c);return this.__values},__initShader:function(a){return null!=a?(null==a.__context&&(a.__context=this.__context3D,a.__init()),a):this.__defaultShader},__initDisplayShader:function(a){return null!=a?(null==a.__context&&(a.__context= +this.__context3D,a.__init()),a):this.__defaultDisplayShader},__initGraphicsShader:function(a){return null!=a?(null==a.__context&&(a.__context=this.__context3D,a.__init()),a):this.__defaultGraphicsShader},__initShaderBuffer:function(a){return null!=a?this.__initGraphicsShader(a.shader):this.__defaultGraphicsShader},__popMask:function(){if(0!=this.__stencilReference){var a=this.__maskObjects.pop();1<this.__stencilReference?(this.__context3D.setStencilActions(2,1,0,0,5),this.__context3D.setStencilReferenceValue(this.__stencilReference, +255,255),this.__context3D.setColorMask(!1,!1,!1,!1),this.__renderDrawableMask(a),this.__stencilReference--,this.__context3D.setStencilActions(2,1,5,5,5),this.__context3D.setStencilReferenceValue(this.__stencilReference,255,0),this.__context3D.setColorMask(!0,!0,!0,!0)):(this.__stencilReference=0,this.__context3D.setStencilActions(),this.__context3D.setStencilReferenceValue(0,0,0))}},__popMaskObject:function(a,b){null==b&&(b=!0);null!=a.__mask&&this.__popMask();b&&null!=a.__scrollRect&&(0!=a.__renderTransform.b|| +0!=a.__renderTransform.c?(this.__scrollRectMasks.release(this.__maskObjects[this.__maskObjects.length-1]),this.__popMask()):this.__popMaskRect())},__popMaskRect:function(){0<this.__numClipRects&&(this.__numClipRects--,0<this.__numClipRects?this.__scissorRect(this.__clipRects[this.__numClipRects-1]):this.__scissorRect())},__pushMask:function(a){0==this.__stencilReference&&(this.__context3D.clear(0,0,0,0,0,0,4),this.__updatedStencil=!0);this.__context3D.setStencilActions(2,1,2,5,5);this.__context3D.setStencilReferenceValue(this.__stencilReference, +255,255);this.__context3D.setColorMask(!1,!1,!1,!1);this.__renderDrawableMask(a);this.__maskObjects.push(a);this.__stencilReference++;this.__context3D.setStencilActions(2,1,5,5,5);this.__context3D.setStencilReferenceValue(this.__stencilReference,255,0);this.__context3D.setColorMask(!0,!0,!0,!0)},__pushMaskObject:function(a,b){null==b&&(b=!0);b&&null!=a.__scrollRect&&(0!=a.__renderTransform.b||0!=a.__renderTransform.c?(b=this.__scrollRectMasks.get(),b.get_graphics().clear(),b.get_graphics().beginFill(65280), +b.get_graphics().drawRect(a.__scrollRect.x,a.__scrollRect.y,a.__scrollRect.width,a.__scrollRect.height),b.__renderTransform.copyFrom(a.__renderTransform),this.__pushMask(b)):this.__pushMaskRect(a.__scrollRect,a.__renderTransform));null!=a.__mask&&this.__pushMask(a.__mask)},__pushMaskRect:function(a,b){this.__numClipRects==this.__clipRects.length&&(this.__clipRects[this.__numClipRects]=new fa);var c=Aa.__pool.get();c.copyFrom(b);c.concat(this.__worldTransform);b=this.__clipRects[this.__numClipRects]; +a.__transform(b,c);0<this.__numClipRects&&(a=this.__clipRects[this.__numClipRects-1],b.__contract(a.x,a.y,a.width,a.height));0>b.height&&(b.height=0);0>b.width&&(b.width=0);Aa.__pool.release(c);this.__scissorRect(b);this.__numClipRects++},__render:function(a){this.__context3D.setColorMask(!0,!0,!0,!0);this.__context3D.setCulling(3);this.__context3D.setDepthTest(!1,0);this.__context3D.setStencilActions();this.__context3D.setStencilReferenceValue(0,0,0);this.__context3D.setScissorRectangle(null);this.__blendMode= +null;this.__setBlendMode(10);if(null==this.__defaultRenderTarget){if(Ab.__scissorRectangle.setTo(this.__offsetX,this.__offsetY,this.__displayWidth,this.__displayHeight),this.__context3D.setScissorRectangle(Ab.__scissorRectangle),this.__upscaled=1!=this.__worldTransform.a||1!=this.__worldTransform.d,this.__renderDrawable(a),0<this.__offsetX||0<this.__offsetY)0<this.__offsetX&&(Ab.__scissorRectangle.setTo(0,0,this.__offsetX,this.__height),this.__context3D.setScissorRectangle(Ab.__scissorRectangle), +this.__context3D.__flushGL(),this.__gl.clearColor(0,0,0,1),this.__gl.clear(this.__gl.COLOR_BUFFER_BIT),Ab.__scissorRectangle.setTo(this.__offsetX+this.__displayWidth,0,this.__width,this.__height),this.__context3D.setScissorRectangle(Ab.__scissorRectangle),this.__context3D.__flushGL(),this.__gl.clearColor(0,0,0,1),this.__gl.clear(this.__gl.COLOR_BUFFER_BIT)),0<this.__offsetY&&(Ab.__scissorRectangle.setTo(0,0,this.__width,this.__offsetY),this.__context3D.setScissorRectangle(Ab.__scissorRectangle),this.__context3D.__flushGL(), +this.__gl.clearColor(0,0,0,1),this.__gl.clear(this.__gl.COLOR_BUFFER_BIT),Ab.__scissorRectangle.setTo(0,this.__offsetY+this.__displayHeight,this.__width,this.__height),this.__context3D.setScissorRectangle(Ab.__scissorRectangle),this.__context3D.__flushGL(),this.__gl.clearColor(0,0,0,1),this.__gl.clear(this.__gl.COLOR_BUFFER_BIT)),this.__context3D.setScissorRectangle(null)}else{Ab.__scissorRectangle.setTo(this.__offsetX,this.__offsetY,this.__displayWidth,this.__displayHeight);this.__context3D.setScissorRectangle(Ab.__scissorRectangle); +var b=a.__mask,c=a.__scrollRect;a.__mask=null;a.__scrollRect=null;this.__renderDrawable(a);a.__mask=b;a.__scrollRect=c}this.__context3D.present()},__renderDrawable:function(a){if(null!=a)switch(a.__drawableType){case 0:Vm.renderDrawable(a,this);break;case 2:tf.renderDrawable(a,this);break;case 3:$g.renderDrawable(a,this);break;case 4:case 5:Wm.renderDrawable(a,this);break;case 6:Xm.renderDrawable(a,this);break;case 7:ah.renderDrawable(a,this);break;case 8:uf.renderDrawable(a,this);break;case 9:ha.renderDrawable(a, +this)}},__renderDrawableMask:function(a){if(null!=a)switch(a.__drawableType){case 0:Vm.renderDrawableMask(a,this);break;case 2:tf.renderDrawableMask(a,this);break;case 3:$g.renderDrawableMask(a,this);break;case 4:case 5:Wm.renderDrawableMask(a,this);break;case 6:Xm.renderDrawableMask(a,this);break;case 7:ah.renderDrawableMask(a,this);break;case 8:uf.renderDrawableMask(a,this);break;case 9:ha.renderDrawableMask(a,this)}},__renderFilterPass:function(a,b,c,d){null==d&&(d=!0);if(null!=a&&null!=b&&null!= +this.__defaultRenderTarget){var e=this.__context3D.__state.renderToTexture,g=this.__context3D.__state.renderToTextureDepthStencil,f=this.__context3D.__state.renderToTextureAntiAlias,l=this.__context3D.__state.renderToTextureSurfaceSelector;this.__context3D.setRenderToTexture(this.__defaultRenderTarget.getTexture(this.__context3D),!1);d&&this.__context3D.clear(0,0,0,0,0,0,1);b=this.__initShader(b);this.setShader(b);this.applyAlpha(1);this.applyBitmapData(a,c);this.applyColorTransform(null);this.applyMatrix(this.__getMatrix(a.__renderTransform, +1));this.updateShader();c=a.getVertexBuffer(this.__context3D);null!=b.__position&&this.__context3D.setVertexBufferAt(b.__position.index,c,0,3);null!=b.__textureCoord&&this.__context3D.setVertexBufferAt(b.__textureCoord.index,c,3,2);a=a.getIndexBuffer(this.__context3D);this.__context3D.drawTriangles(a);null!=e?this.__context3D.setRenderToTexture(e,g,f,l):this.__context3D.setRenderToBackBuffer();this.__clearShader()}},__resize:function(a,b){this.__width=a;this.__height=b;a=null==this.__defaultRenderTarget? +this.__stage.stageWidth:this.__defaultRenderTarget.width;b=null==this.__defaultRenderTarget?this.__stage.stageHeight:this.__defaultRenderTarget.height;if(null==this.__defaultRenderTarget){var c=this.__worldTransform;c=Math.round(0*c.a+0*c.c+c.tx)}else c=0;this.__offsetX=c;null==this.__defaultRenderTarget?(c=this.__worldTransform,c=Math.round(0*c.b+0*c.d+c.ty)):c=0;this.__offsetY=c;null==this.__defaultRenderTarget?(c=this.__worldTransform,c=Math.round(a*c.a+0*c.c+c.tx-this.__offsetX)):c=a;this.__displayWidth= +c;null==this.__defaultRenderTarget?(c=this.__worldTransform,c=Math.round(0*c.b+b*c.d+c.ty-this.__offsetY)):c=b;this.__displayHeight=c;ra.createOrtho(this.__projection,0,this.__displayWidth+2*this.__offsetX,0,this.__displayHeight+2*this.__offsetY,-1E3,1E3);ra.createOrtho(this.__projectionFlipped,0,this.__displayWidth+2*this.__offsetX,this.__displayHeight+2*this.__offsetY,0,-1E3,1E3)},__resumeClipAndMask:function(a){0<this.__stencilReference?(this.__context3D.setStencilActions(2,1,5,5,5),this.__context3D.setStencilReferenceValue(this.__stencilReference, +255,0)):(this.__context3D.setStencilActions(),this.__context3D.setStencilReferenceValue(0,0,0));0<this.__numClipRects?this.__scissorRect(this.__clipRects[this.__numClipRects-1]):this.__scissorRect()},__scissorRect:function(a){if(null!=a){var b=Math.floor(a.x),c=Math.floor(a.y),d=0<a.width?Math.ceil(a.get_right())-b:0;a=0<a.height?Math.ceil(a.get_bottom())-c:0;0>d&&(d=0);0>a&&(a=0);Ab.__scissorRectangle.setTo(b,c,d,a);this.__context3D.setScissorRectangle(Ab.__scissorRectangle)}else this.__context3D.setScissorRectangle(null)}, +__setBlendMode:function(a){null!=this.__overrideBlendMode&&(a=this.__overrideBlendMode);if(this.__blendMode!=a)switch(this.__blendMode=a,a){case 0:this.__context3D.setBlendFactors(2,2);break;case 9:this.__context3D.setBlendFactors(1,5);break;case 12:this.__context3D.setBlendFactors(2,6);break;case 14:this.__context3D.setBlendFactors(2,2);this.__context3D.__setGLBlendEquation(this.__gl.FUNC_REVERSE_SUBTRACT);break;default:this.__context3D.setBlendFactors(2,5)}},__setRenderTarget:function(a){this.__defaultRenderTarget= +a;this.__flipped=null==a;null!=a&&this.__resize(a.width,a.height)},__setShaderBuffer:function(a){this.setShader(a.shader);this.__currentShaderBuffer=a},__suspendClipAndMask:function(){0<this.__stencilReference&&(this.__context3D.setStencilActions(),this.__context3D.setStencilReferenceValue(0,0,0));0<this.__numClipRects&&this.__scissorRect()},__updateShaderBuffer:function(a){null!=this.__currentShader&&null!=this.__currentShaderBuffer&&this.__currentShader.__updateFromBuffer(this.__currentShaderBuffer, +a)},__class__:Ab});var Yo=function(a){null==a&&(a=!1);this.fastCompression=a};k["openfl.display.PNGEncoderOptions"]=Yo;Yo.__name__="openfl.display.PNGEncoderOptions";Yo.prototype={fastCompression:null,__class__:Yo};var dp=function(a){this.onComplete=new Fd;this.display=a;null!=a&&(a.addEventListener("unload",q(this,this.display_onUnload)),Da.get_current().addChild(a))};k["openfl.display.Preloader"]=dp;dp.__name__="openfl.display.Preloader";dp.prototype={onComplete:null,complete:null,display:null, +ready:null,start:function(){this.ready=!0;Da.get_current().get_loaderInfo().__complete();if(null!=this.display){var a=new la("complete",!0,!0);this.display.dispatchEvent(a);a.isDefaultPrevented()||this.display.dispatchEvent(new la("unload"))}else this.complete||(this.complete=!0,this.onComplete.dispatch())},update:function(a,b){Da.get_current().get_loaderInfo().__update(a,b);null!=this.display&&this.display.dispatchEvent(new Cg("progress",!0,!0,a,b))},display_onUnload:function(a){null!=this.display&& +(this.display.removeEventListener("unload",q(this,this.display_onUnload)),this.display.parent==Da.get_current()&&Da.get_current().removeChild(this.display),Da.get_current().stage.set_focus(null),this.display=null);this.ready&&!this.complete&&(this.complete=!0,this.onComplete.dispatch())},__class__:dp};var Ym=function(){ta.call(this);var a=this.getBackgroundColor(),b=0;70>.299*(a>>16&255)+.587*(a>>8&255)+.114*(a&255)&&(b=16777215);a=this.getHeight()/2-3.5;var c=this.getWidth()-60;this.outline=new Me; +this.outline.get_graphics().beginFill(b,.07);this.outline.get_graphics().drawRect(0,0,c,7);this.outline.set_x(30);this.outline.set_y(a);this.outline.set_alpha(0);this.addChild(this.outline);this.progress=new Me;this.progress.get_graphics().beginFill(b,.35);this.progress.get_graphics().drawRect(0,0,c-4,3);this.progress.set_x(32);this.progress.set_y(a+2);this.progress.set_scaleX(0);this.progress.set_alpha(0);this.addChild(this.progress);this.startAnimation=Da.getTimer()+100;this.endAnimation=this.startAnimation+ +1E3;this.addEventListener("addedToStage",q(this,this.this_onAddedToStage))};k["openfl.display.DefaultPreloader"]=Ym;Ym.__name__="openfl.display.DefaultPreloader";Ym.__super__=ta;Ym.prototype=u(ta.prototype,{endAnimation:null,outline:null,progress:null,startAnimation:null,getBackgroundColor:function(){var a=Da.get_current().stage.window.context.attributes;return Object.prototype.hasOwnProperty.call(a,"background")&&null!=a.background?a.background:0},getHeight:function(){var a=Da.get_current().stage.window.__height; +return 0<a?a:Da.get_current().stage.stageHeight},getWidth:function(){var a=Da.get_current().stage.window.__width;return 0<a?a:Da.get_current().stage.stageWidth},onInit:function(){this.addEventListener("enterFrame",q(this,this.this_onEnterFrame))},onLoaded:function(){this.removeEventListener("enterFrame",q(this,this.this_onEnterFrame));this.dispatchEvent(new la("unload"))},onUpdate:function(a,b){var c=0;0<b&&(c=a/b,1<c&&(c=1));this.progress.set_scaleX(c)},this_onAddedToStage:function(a){this.removeEventListener("addedToStage", +q(this,this.this_onAddedToStage));this.onInit();this.onUpdate(this.get_loaderInfo().bytesLoaded,this.get_loaderInfo().bytesTotal);this.addEventListener("progress",q(this,this.this_onProgress));this.addEventListener("complete",q(this,this.this_onComplete))},this_onComplete:function(a){a.preventDefault();this.removeEventListener("progress",q(this,this.this_onProgress));this.removeEventListener("complete",q(this,this.this_onComplete));this.onLoaded()},this_onEnterFrame:function(a){a=(Da.getTimer()-this.startAnimation)/ +(this.endAnimation-this.startAnimation);0>a&&(a=0);1<a&&(a=1);this.outline.set_alpha(this.progress.set_alpha(a))},this_onProgress:function(a){this.onUpdate(a.bytesLoaded|0,a.bytesTotal|0)},__class__:Ym});var cp=function(a,b,c){this.name=a;this.labels=b;this.numFrames=c};k["openfl.display.Scene"]=cp;cp.__name__="openfl.display.Scene";cp.prototype={labels:null,name:null,numFrames:null,__class__:cp};var Du={_new:function(a){return{}}},Lm=function(){this.channels=0;this.filter=5;this.index=this.height= +0;this.mipFilter=2;this.wrap=this.width=0};k["openfl.display.ShaderInput"]=Lm;Lm.__name__="openfl.display.ShaderInput";Lm.prototype={channels:null,filter:null,height:null,index:null,input:null,mipFilter:null,name:null,width:null,wrap:null,__isUniform:null,__disableGL:function(a,b){0>b||a.setTextureAt(b,null)},__updateGL:function(a,b,c,d,e,g){c=null!=c?c:this.input;d=null!=d?d:this.filter;e=null!=e?e:this.mipFilter;g=null!=g?g:this.wrap;null!=c?(a.setTextureAt(b,c.getTexture(a)),a.setSamplerStateAt(b, +g,d,e)):a.setTextureAt(b,null)},__class__:Lm};var Oi=function(){this.index=0};k["openfl.display.ShaderParameter"]=Oi;Oi.__name__="openfl.display.ShaderParameter";Oi.prototype={index:null,name:null,type:null,value:null,__arrayLength:null,__internal:null,__isBool:null,__isFloat:null,__isInt:null,__isUniform:null,__length:null,__uniformMatrix:null,__useArray:null,__disableGL:function(a){if(!(0>this.index||(a=a.gl,this.__isUniform)))for(var b=0,c=this.__arrayLength;b<c;){var d=b++;a.disableVertexAttribArray(this.index+ +d)}},__updateGL:function(a,b){if(!(0>this.index)){a=a.gl;b=null!=b?b:this.value;var c=this.__isBool?b:null,d=this.__isFloat?b:null,e=this.__isInt?b:null;if(this.__isUniform)if(null!=b&&b.length>=this.__length)switch(this.type){case 0:a.uniform1i(this.index,c[0]?1:0);break;case 1:a.uniform2i(this.index,c[0]?1:0,c[1]?1:0);break;case 2:a.uniform3i(this.index,c[0]?1:0,c[1]?1:0,c[2]?1:0);break;case 3:a.uniform4i(this.index,c[0]?1:0,c[1]?1:0,c[2]?1:0,c[3]?1:0);break;case 4:a.uniform1f(this.index,d[0]); +break;case 5:a.uniform2f(this.index,d[0],d[1]);break;case 6:a.uniform3f(this.index,d[0],d[1],d[2]);break;case 7:a.uniform4f(this.index,d[0],d[1],d[2],d[3]);break;case 8:a.uniform1i(this.index,e[0]);break;case 9:a.uniform2i(this.index,e[0],e[1]);break;case 10:a.uniform3i(this.index,e[0],e[1],e[2]);break;case 11:a.uniform4i(this.index,e[0],e[1],e[2],e[3]);break;case 12:this.__uniformMatrix[0]=d[0];this.__uniformMatrix[1]=d[1];this.__uniformMatrix[2]=d[2];this.__uniformMatrix[3]=d[3];Yb.uniformMatrix2fv(a, +this.index,!1,this.__uniformMatrix);break;case 16:this.__uniformMatrix[0]=d[0];this.__uniformMatrix[1]=d[1];this.__uniformMatrix[2]=d[2];this.__uniformMatrix[3]=d[3];this.__uniformMatrix[4]=d[4];this.__uniformMatrix[5]=d[5];this.__uniformMatrix[6]=d[6];this.__uniformMatrix[7]=d[7];this.__uniformMatrix[8]=d[8];Yb.uniformMatrix3fv(a,this.index,!1,this.__uniformMatrix);break;case 20:this.__uniformMatrix[0]=d[0],this.__uniformMatrix[1]=d[1],this.__uniformMatrix[2]=d[2],this.__uniformMatrix[3]=d[3],this.__uniformMatrix[4]= +d[4],this.__uniformMatrix[5]=d[5],this.__uniformMatrix[6]=d[6],this.__uniformMatrix[7]=d[7],this.__uniformMatrix[8]=d[8],this.__uniformMatrix[9]=d[9],this.__uniformMatrix[10]=d[10],this.__uniformMatrix[11]=d[11],this.__uniformMatrix[12]=d[12],this.__uniformMatrix[13]=d[13],this.__uniformMatrix[14]=d[14],this.__uniformMatrix[15]=d[15],Yb.uniformMatrix4fv(a,this.index,!1,this.__uniformMatrix)}else switch(this.type){case 1:case 9:a.uniform2i(this.index,0,0);break;case 3:case 11:a.uniform4i(this.index, +0,0,0,0);break;case 4:a.uniform1f(this.index,0);break;case 5:a.uniform2f(this.index,0,0);break;case 6:a.uniform3f(this.index,0,0,0);break;case 7:a.uniform4f(this.index,0,0,0,0);break;case 0:case 8:a.uniform1i(this.index,0);break;case 2:case 10:a.uniform3i(this.index,0,0,0);break;case 12:this.__uniformMatrix[0]=0;this.__uniformMatrix[1]=0;this.__uniformMatrix[2]=0;this.__uniformMatrix[3]=0;Yb.uniformMatrix2fv(a,this.index,!1,this.__uniformMatrix);break;case 16:this.__uniformMatrix[0]=0;this.__uniformMatrix[1]= +0;this.__uniformMatrix[2]=0;this.__uniformMatrix[3]=0;this.__uniformMatrix[4]=0;this.__uniformMatrix[5]=0;this.__uniformMatrix[6]=0;this.__uniformMatrix[7]=0;this.__uniformMatrix[8]=0;Yb.uniformMatrix3fv(a,this.index,!1,this.__uniformMatrix);break;case 20:this.__uniformMatrix[0]=0,this.__uniformMatrix[1]=0,this.__uniformMatrix[2]=0,this.__uniformMatrix[3]=0,this.__uniformMatrix[4]=0,this.__uniformMatrix[5]=0,this.__uniformMatrix[6]=0,this.__uniformMatrix[7]=0,this.__uniformMatrix[8]=0,this.__uniformMatrix[9]= +0,this.__uniformMatrix[10]=0,this.__uniformMatrix[11]=0,this.__uniformMatrix[12]=0,this.__uniformMatrix[13]=0,this.__uniformMatrix[14]=0,this.__uniformMatrix[15]=0,Yb.uniformMatrix4fv(a,this.index,!1,this.__uniformMatrix)}else if(this.__useArray||null!=b&&b.length!=this.__length)for(g=0,f=this.__arrayLength;g<f;)l=g++,a.enableVertexAttribArray(this.index+l);else{for(var g=0,f=this.__arrayLength;g<f;){var l=g++;a.disableVertexAttribArray(this.index+l)}if(null!=b)switch(this.type){case 0:a.vertexAttrib1f(this.index, +c[0]?1:0);break;case 1:a.vertexAttrib2f(this.index,c[0]?1:0,c[1]?1:0);break;case 2:a.vertexAttrib3f(this.index,c[0]?1:0,c[1]?1:0,c[2]?1:0);break;case 3:a.vertexAttrib4f(this.index,c[0]?1:0,c[1]?1:0,c[2]?1:0,c[3]?1:0);break;case 4:a.vertexAttrib1f(this.index,d[0]);break;case 5:a.vertexAttrib2f(this.index,d[0],d[1]);break;case 6:a.vertexAttrib3f(this.index,d[0],d[1],d[2]);break;case 7:a.vertexAttrib4f(this.index,d[0],d[1],d[2],d[3]);break;case 8:a.vertexAttrib1f(this.index,e[0]);break;case 9:a.vertexAttrib2f(this.index, +e[0],e[1]);break;case 10:a.vertexAttrib3f(this.index,e[0],e[1],e[2]);break;case 11:a.vertexAttrib4f(this.index,e[0],e[1],e[2],e[3]);break;case 12:a.vertexAttrib2f(this.index+0,d[0],d[1]);a.vertexAttrib2f(this.index+1,d[2],d[3]);break;case 16:a.vertexAttrib3f(this.index+0,d[0],d[1],d[2]);a.vertexAttrib3f(this.index+1,d[3],d[4],d[5]);a.vertexAttrib3f(this.index+2,d[6],d[7],d[8]);break;case 20:a.vertexAttrib4f(this.index+0,d[0],d[1],d[2],d[3]),a.vertexAttrib4f(this.index+1,d[4],d[5],d[6],d[7]),a.vertexAttrib4f(this.index+ +2,d[8],d[9],d[10],d[11]),a.vertexAttrib4f(this.index+3,d[12],d[13],d[14],d[15])}else switch(this.type){case 1:case 5:case 9:a.vertexAttrib2f(this.index,0,0);break;case 3:case 7:case 11:a.vertexAttrib4f(this.index,0,0,0,0);break;case 0:case 4:case 8:a.vertexAttrib1f(this.index,0);break;case 2:case 6:case 10:a.vertexAttrib3f(this.index,0,0,0);break;case 12:a.vertexAttrib2f(this.index+0,0,0);a.vertexAttrib2f(this.index+1,0,0);break;case 16:a.vertexAttrib3f(this.index+0,0,0,0);a.vertexAttrib3f(this.index+ +1,0,0,0);a.vertexAttrib3f(this.index+2,0,0,0);break;case 20:a.vertexAttrib4f(this.index+0,0,0,0,0),a.vertexAttrib4f(this.index+1,0,0,0,0),a.vertexAttrib4f(this.index+2,0,0,0,0),a.vertexAttrib4f(this.index+3,0,0,0,0)}}}},__updateGLFromBuffer:function(a,b,c,d,e){if(!(0>this.index))if(a=a.gl,this.__isUniform){if(d>=this.__length)switch(this.type){case 1:case 9:a.uniform2i(this.index,b[c]|0,b[c+1]|0);break;case 3:case 11:a.uniform4i(this.index,b[c]|0,b[c+1]|0,b[c+2]|0,b[c+3]|0);break;case 4:a.uniform1f(this.index, +b[c]);break;case 5:a.uniform2f(this.index,b[c],b[c+1]);break;case 6:a.uniform3f(this.index,b[c],b[c+1],b[c+2]);break;case 7:a.uniform4f(this.index,b[c],b[c+1],b[c+2],b[c+3]);break;case 0:case 8:a.uniform1i(this.index,b[c]|0);break;case 2:case 10:a.uniform3i(this.index,b[c]|0,b[c+1]|0,b[c+2]|0);break;case 12:this.__uniformMatrix[0]=b[c];this.__uniformMatrix[1]=b[c+1];this.__uniformMatrix[2]=b[c+2];this.__uniformMatrix[3]=b[c+3];Yb.uniformMatrix2fv(a,this.index,!1,this.__uniformMatrix);break;case 16:this.__uniformMatrix[0]= +b[c];this.__uniformMatrix[1]=b[c+1];this.__uniformMatrix[2]=b[c+2];this.__uniformMatrix[3]=b[c+3];this.__uniformMatrix[4]=b[c+4];this.__uniformMatrix[5]=b[c+5];this.__uniformMatrix[6]=b[c+6];this.__uniformMatrix[7]=b[c+7];this.__uniformMatrix[8]=b[c+8];Yb.uniformMatrix3fv(a,this.index,!1,this.__uniformMatrix);break;case 20:this.__uniformMatrix[0]=b[c],this.__uniformMatrix[1]=b[c+1],this.__uniformMatrix[2]=b[c+2],this.__uniformMatrix[3]=b[c+3],this.__uniformMatrix[4]=b[c+4],this.__uniformMatrix[5]= +b[c+5],this.__uniformMatrix[6]=b[c+6],this.__uniformMatrix[7]=b[c+7],this.__uniformMatrix[8]=b[c+8],this.__uniformMatrix[9]=b[c+9],this.__uniformMatrix[10]=b[c+10],this.__uniformMatrix[11]=b[c+11],this.__uniformMatrix[12]=b[c+12],this.__uniformMatrix[13]=b[c+13],this.__uniformMatrix[14]=b[c+14],this.__uniformMatrix[15]=b[c+15],Yb.uniformMatrix4fv(a,this.index,!1,this.__uniformMatrix)}}else if(this.__internal||0!=d&&d!=this.__length){b=a.FLOAT;this.__isBool?b=a.INT:this.__isInt&&(b=a.INT);f=0;for(h= +this.__arrayLength;f<h;)l=f++,a.enableVertexAttribArray(this.index+l);if(0<d)for(f=0,h=this.__arrayLength;f<h;)l=f++,a.vertexAttribPointer(this.index+l,this.__length,b,!1,4*this.__length,4*(c+e*this.__length+l*this.__arrayLength))}else{for(var f=0,h=this.__arrayLength;f<h;){var l=f++;a.disableVertexAttribArray(this.index+l)}if(0<d)switch(this.type){case 1:case 5:case 9:a.vertexAttrib2f(this.index,b[c],b[c+1]);break;case 3:case 7:case 11:a.vertexAttrib4f(this.index,b[c],b[c+1],b[c+2],b[c+3]);break; +case 0:case 4:case 8:a.vertexAttrib1f(this.index,b[c]);break;case 2:case 6:case 10:a.vertexAttrib3f(this.index,b[c],b[c+1],b[c+2]);break;case 12:a.vertexAttrib2f(this.index+0,b[c],b[c+1]);a.vertexAttrib2f(this.index+1,b[c+2],b[c+2+1]);break;case 16:a.vertexAttrib3f(this.index+0,b[c],b[c+1],b[c+2]);a.vertexAttrib3f(this.index+1,b[c+3],b[c+3+1],b[c+3+2]);a.vertexAttrib3f(this.index+2,b[c+6],b[c+6+1],b[c+6+2]);break;case 20:a.vertexAttrib4f(this.index+0,b[c],b[c+1],b[c+2],b[c+3]),a.vertexAttrib4f(this.index+ +1,b[c+4],b[c+4+1],b[c+4+2],b[c+4+3]),a.vertexAttrib4f(this.index+2,b[c+8],b[c+8+1],b[c+8+2],b[c+8+3]),a.vertexAttrib4f(this.index+3,b[c+12],b[c+12+1],b[c+12+2],b[c+12+3])}else switch(this.type){case 1:case 5:case 9:a.vertexAttrib2f(this.index,0,0);break;case 3:case 7:case 11:a.vertexAttrib4f(this.index,0,0,0,0);break;case 0:case 4:case 8:a.vertexAttrib1f(this.index,0);break;case 2:case 6:case 10:a.vertexAttrib3f(this.index,0,0,0);break;case 12:a.vertexAttrib2f(this.index+0,0,0);a.vertexAttrib2f(this.index+ +1,0,0);break;case 16:a.vertexAttrib3f(this.index+0,0,0,0);a.vertexAttrib3f(this.index+1,0,0,0);a.vertexAttrib3f(this.index+2,0,0,0);break;case 20:a.vertexAttrib4f(this.index+0,0,0,0,0),a.vertexAttrib4f(this.index+1,0,0,0,0),a.vertexAttrib4f(this.index+2,0,0,0,0),a.vertexAttrib4f(this.index+3,0,0,0,0)}}},set_name:function(a){this.__internal=J.startsWith(a,"openfl_");return this.name=a},__class__:Oi,__properties__:{set_name:"set_name"}};var Me=function(){A.call(this);this.__drawableType=3};k["openfl.display.Shape"]= +Me;Me.__name__="openfl.display.Shape";Me.__super__=A;Me.prototype=u(A.prototype,{get_graphics:function(){null==this.__graphics&&(this.__graphics=new Ue(this));return this.__graphics},__class__:Me,__properties__:u(A.prototype.__properties__,{get_graphics:"get_graphics"})});var Ri=function(a,b,c,d){ob.call(this);this.__drawableType=6;this.enabled=!0;this.trackAsMenu=!1;this.useHandCursor=!0;this.__upState=null!=a?a:new A;this.__overState=b;this.__downState=c;this.set_hitTestState(null!=d?d:new A);this.addEventListener("mouseDown", +q(this,this.__this_onMouseDown));this.addEventListener("mouseOut",q(this,this.__this_onMouseOut));this.addEventListener("mouseOver",q(this,this.__this_onMouseOver));this.addEventListener("mouseUp",q(this,this.__this_onMouseUp));this.__tabEnabled=!0;this.set___currentState(this.__upState);null!=Ri.__constructor&&(a=Ri.__constructor,Ri.__constructor=null,a(this))};k["openfl.display.SimpleButton"]=Ri;Ri.__name__="openfl.display.SimpleButton";Ri.__super__=ob;Ri.prototype=u(ob.prototype,{enabled:null, +trackAsMenu:null,useHandCursor:null,__currentState:null,__downState:null,__hitTestState:null,__ignoreEvent:null,__overState:null,__previousStates:null,__soundTransform:null,__upState:null,__getBounds:function(a,b){ob.prototype.__getBounds.call(this,a,b);var c=Aa.__pool.get(),d=this.__currentState.__transform;c.a=d.a*b.a+d.b*b.c;c.b=d.a*b.b+d.b*b.d;c.c=d.c*b.a+d.d*b.c;c.d=d.c*b.b+d.d*b.d;c.tx=d.tx*b.a+d.ty*b.c+b.tx;c.ty=d.tx*b.b+d.ty*b.d+b.ty;this.__currentState.__getBounds(a,c);Aa.__pool.release(c)}, +__getRenderBounds:function(a,b){if(null!=this.__scrollRect)ob.prototype.__getRenderBounds.call(this,a,b);else{ob.prototype.__getBounds.call(this,a,b);var c=Aa.__pool.get(),d=this.__currentState.__transform;c.a=d.a*b.a+d.b*b.c;c.b=d.a*b.b+d.b*b.d;c.c=d.c*b.a+d.d*b.c;c.d=d.c*b.b+d.d*b.d;c.tx=d.tx*b.a+d.ty*b.c+b.tx;c.ty=d.tx*b.b+d.ty*b.d+b.ty;this.__currentState.__getRenderBounds(a,c);Aa.__pool.release(c)}},__getCursor:function(){return this.useHandCursor&&!this.__ignoreEvent&&this.enabled?"button": +null},__hitTest:function(a,b,c,d,e,f){var g=!1;null!=this.get_hitTestState()?this.get_hitTestState().__hitTest(a,b,c,d,e,f)&&(null!=d&&(0==d.length?d[0]=f:d[d.length-1]=f),g=!e||this.mouseEnabled):null!=this.__currentState&&(!f.get_visible()||this.__isMask||e&&!this.mouseEnabled||null!=this.get_mask()&&!this.get_mask().__hitTestMask(a,b)?g=!1:this.__currentState.__hitTest(a,b,c,d,e,f)&&(g=e));if(null!=d)for(;1<d.length&&d[d.length-1]==d[d.length-2];)d.pop();return g},__hitTestMask:function(a,b){var c= +!1;this.__currentState.__hitTestMask(a,b)&&(c=!0);return c},__setStageReference:function(a){ob.prototype.__setStageReference.call(this,a);null!=this.__currentState&&this.__currentState.__setStageReference(a);null!=this.get_hitTestState()&&this.get_hitTestState()!=this.__currentState&&this.get_hitTestState().__setStageReference(a)},__setTransformDirty:function(){ob.prototype.__setTransformDirty.call(this);null!=this.__currentState&&this.__currentState.__setTransformDirty();null!=this.get_hitTestState()&& +this.get_hitTestState()!=this.__currentState&&this.get_hitTestState().__setTransformDirty()},__update:function(a,b){ob.prototype.__update.call(this,a,b);b&&(null!=this.__currentState&&this.__currentState.__update(a,!0),null!=this.get_hitTestState()&&this.get_hitTestState()!=this.__currentState&&this.get_hitTestState().__update(a,!0))},__updateTransforms:function(a){ob.prototype.__updateTransforms.call(this,a);null!=this.__currentState&&this.__currentState.__updateTransforms();null!=this.get_hitTestState()&& +this.get_hitTestState()!=this.__currentState&&this.get_hitTestState().__updateTransforms()},get_downState:function(){return this.__downState},set_downState:function(a){null!=this.__downState&&this.__currentState==this.__downState&&this.set___currentState(this.__downState);return this.__downState=a},get_hitTestState:function(){return this.__hitTestState},set_hitTestState:function(a){null!=this.__hitTestState&&this.__hitTestState!=a&&this.__hitTestState!=this.get_downState()&&this.__hitTestState!=this.get_upState()&& +this.__hitTestState!=this.get_overState()&&(this.__hitTestState.__renderParent=null);null!=a&&(a.__renderParent=this,a.__renderDirty||(a.__renderDirty=!0,a.__setParentRenderDirty()));return this.__hitTestState=a},get_overState:function(){return this.__overState},set_overState:function(a){null!=this.__overState&&this.__currentState==this.__overState&&this.set___currentState(a);return this.__overState=a},get_soundTransform:function(){null==this.__soundTransform&&(this.__soundTransform=new hf);return new hf(this.__soundTransform.volume, +this.__soundTransform.pan)},set_soundTransform:function(a){this.__soundTransform=new hf(a.volume,a.pan);return a},get_upState:function(){return this.__upState},set_upState:function(a){null!=this.__upState&&this.__currentState==this.__upState&&this.set___currentState(a);return this.__upState=a},set___currentState:function(a){null!=this.__currentState&&this.__currentState!=this.get_hitTestState()&&(this.__currentState.__renderParent=null);null!=a&&null!=a.parent&&a.parent.removeChild(a);A.__supportDOM&& +null==this.__previousStates&&(this.__previousStates=ub.toObjectVector(null));if(a!=this.__currentState){if(A.__supportDOM){null!=this.__currentState&&(this.__currentState.__setStageReference(null),this.__previousStates.push(this.__currentState));var b=this.__previousStates.indexOf(a,0);if(-1<b){var c=this.__previousStates;c.__tempIndex=b;b=0;for(var d=[];b<d.length;){var e=d[b++];c.insertAt(c.__tempIndex,e);c.__tempIndex++}c.splice(c.__tempIndex,1)}}null!=a&&(a.__renderParent=this,a.__renderDirty|| +(a.__renderDirty=!0,a.__setParentRenderDirty()));this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty())}return this.__currentState=a},__this_onMouseDown:function(a){this.enabled&&this.set___currentState(this.get_downState())},__this_onMouseOut:function(a){this.__ignoreEvent=!1;this.get_upState()!=this.__currentState&&this.set___currentState(this.get_upState())},__this_onMouseOver:function(a){a.buttonDown&&(this.__ignoreEvent=!0);this.get_overState()!=this.__currentState&&null!= +this.get_overState()&&!this.__ignoreEvent&&this.enabled&&this.set___currentState(this.get_overState())},__this_onMouseUp:function(a){this.__ignoreEvent=!1;this.enabled&&null!=this.get_overState()?this.set___currentState(this.get_overState()):this.set___currentState(this.get_upState())},__class__:Ri,__properties__:u(ob.prototype.__properties__,{set___currentState:"set___currentState",set_upState:"set_upState",get_upState:"get_upState",set_soundTransform:"set_soundTransform",get_soundTransform:"get_soundTransform", +set_overState:"set_overState",get_overState:"get_overState",set_hitTestState:"set_hitTestState",get_hitTestState:"get_hitTestState",set_downState:"set_downState",get_downState:"get_downState"})});var Si=function(a,b){Jb.call(this);this.__drawableType=5;this.set_name(null);this.__color=-1;this.__colorSplit=[255,255,255];this.__colorString="#FFFFFF";this.__contentsScaleFactor=1;this.__deltaTime=this.__currentTabOrderIndex=0;this.__displayState=2;this.__logicalHeight=this.__logicalWidth=this.__lastClickTime= +this.__mouseY=this.__mouseX=0;this.__displayMatrix=new Aa;this.__displayRect=new fa;this.__renderDirty=!0;this.stage3Ds=ub.toObjectVector(null);this.stage3Ds.push(new ai(this));this.stage3Ds.push(new ai(this));this.stage3Ds.push(new ai(this));this.stage3Ds.push(new ai(this));this.stage=this;this.align=6;this.allowsFullScreenInteractive=this.allowsFullScreen=!0;this.__quality=1;this.__scaleMode=2;this.showDefaultContextMenu=!0;this.softKeyboardRect=new fa;this.stageFocusRect=!0;this.__macKeyboard= +/AppleWebKit/.test(navigator.userAgent)&&/Mobile\/\w+/.test(navigator.userAgent)||/Mac/.test(navigator.platform);this.__clearBeforeRender=!0;this.__forceRender=!1;this.__stack=[];this.__rollOutStack=[];this.__mouseOutStack=[];this.__touchData=new Sa;null==Da.get_current().__loaderInfo&&(Da.get_current().__loaderInfo=Jf.create(null),Da.get_current().__loaderInfo.content=Da.get_current());this.__uncaughtErrorEvents=Da.get_current().__loaderInfo.uncaughtErrorEvents;this.application=a.application;this.window= +a;this.set_color(b);this.__contentsScaleFactor=a.__scale;this.__wasFullscreen=a.__fullscreen;this.__resize();null==Da.get_current().stage&&this.stage.addChild(Da.get_current())};k["openfl.display.Stage"]=Si;Si.__name__="openfl.display.Stage";Si.__interfaces__=[Pj];Si.__super__=Jb;Si.prototype=u(Jb.prototype,{align:null,allowsFullScreen:null,allowsFullScreenInteractive:null,application:null,context3D:null,showDefaultContextMenu:null,softKeyboardRect:null,stage3Ds:null,stageFocusRect:null,stageHeight:null, +stageWidth:null,window:null,__cacheFocus:null,__clearBeforeRender:null,__color:null,__colorSplit:null,__colorString:null,__contentsScaleFactor:null,__currentTabOrderIndex:null,__deltaTime:null,__dirty:null,__displayMatrix:null,__displayRect:null,__displayState:null,__dragBounds:null,__dragObject:null,__dragOffsetX:null,__dragOffsetY:null,__focus:null,__forceRender:null,__fullscreen:null,__fullScreenSourceRect:null,__invalidated:null,__lastClickTime:null,__lastClickTarget:null,__logicalWidth:null, +__logicalHeight:null,__macKeyboard:null,__mouseDownLeft:null,__mouseDownMiddle:null,__mouseDownRight:null,__mouseOutStack:null,__mouseOverTarget:null,__mouseX:null,__mouseY:null,__pendingMouseEvent:null,__pendingMouseX:null,__pendingMouseY:null,__quality:null,__renderer:null,__rendering:null,__rollOutStack:null,__scaleMode:null,__stack:null,__touchData:null,__transparent:null,__uncaughtErrorEvents:null,__wasDirty:null,__wasFullscreen:null,__primaryTouch:null,invalidate:function(){this.__renderDirty= +this.__invalidated=!0},localToGlobal:function(a){return a.clone()},__broadcastEvent:function(a){if(Object.prototype.hasOwnProperty.call(A.__broadcastEvents.h,a.type))for(var b=A.__broadcastEvents.h[a.type],c=0;c<b.length;){var d=b[c];++c;if(d.stage==this||null==d.stage)if(this.__uncaughtErrorEvents.__enabled)try{d.__dispatch(a)}catch(e){sa.lastError=e,d=R.caught(e).unwrap(),this.__handleError(d)}else d.__dispatch(a)}},__createRenderer:function(){var a=this.window.__width*this.window.__scale|0,b=this.window.__height* +this.window.__scale|0;switch(this.window.context.type){case "canvas":this.__renderer=new Yg(this.window.context.canvas2D);break;case "dom":this.__renderer=new Yj(this.window.context.dom);break;case "opengl":case "opengles":case "webgl":this.context3D=new Sb(this),this.context3D.configureBackBuffer(this.stageWidth,this.stageHeight,0,!0,!0,!0),this.context3D.present(),this.__renderer=new Ab(this.context3D)}if(null!=this.__renderer){var c=this.get_quality();this.__renderer.__allowSmoothing=2!=c;this.__renderer.__pixelRatio= +this.window.__scale;this.__renderer.__worldTransform=this.__displayMatrix;this.__renderer.__stage=this;this.__renderer.__resize(a,b)}},__dispatchEvent:function(a){if(this.__uncaughtErrorEvents.__enabled)try{var b=Jb.prototype.__dispatchEvent.call(this,a)}catch(c){sa.lastError=c,a=R.caught(c).unwrap(),this.__handleError(a),b=!1}else b=Jb.prototype.__dispatchEvent.call(this,a);return b},__dispatchPendingMouseEvent:function(){this.__pendingMouseEvent&&(this.__onMouse("mouseMove",this.__pendingMouseX, +this.__pendingMouseY,0),this.__pendingMouseEvent=!1)},__dispatchStack:function(a,b){if(this.__uncaughtErrorEvents.__enabled)try{var c=b.length;if(0==c){a.eventPhase=2;var d=a.target;d.__dispatch(a)}else{a.eventPhase=1;a.target=b[b.length-1];for(var e=0,f=c-1;e<f;){var h=e++;b[h].__dispatch(a);if(a.__isCanceled)return}a.eventPhase=2;d=a.target;d.__dispatch(a);if(!a.__isCanceled&&a.bubbles)for(a.eventPhase=3,h=c-2;0<=h;){b[h].__dispatch(a);if(a.__isCanceled)break;--h}}}catch(l){sa.lastError=l,a=R.caught(l).unwrap(), +this.__handleError(a)}else if(c=b.length,0==c)a.eventPhase=2,d=a.target,d.__dispatch(a);else{a.eventPhase=1;a.target=b[b.length-1];e=0;for(f=c-1;e<f;)if(h=e++,b[h].__dispatch(a),a.__isCanceled)return;a.eventPhase=2;d=a.target;d.__dispatch(a);if(!a.__isCanceled&&a.bubbles)for(a.eventPhase=3,h=c-2;0<=h;){b[h].__dispatch(a);if(a.__isCanceled)break;--h}}},__dispatchTarget:function(a,b){if(this.__uncaughtErrorEvents.__enabled)try{return a.__dispatchEvent(b)}catch(c){return sa.lastError=c,a=R.caught(c).unwrap(), +this.__handleError(a),!1}else return a.__dispatchEvent(b)},__drag:function(a){var b=this.__dragObject.parent;if(null!=b){b=b.__getWorldTransform();var c=b.a*b.d-b.b*b.c;if(0==c)a.x=-b.tx,a.y=-b.ty;else{var d=1/c*(b.c*(b.ty-a.y)+b.d*(a.x-b.tx));a.y=1/c*(b.a*(a.y-b.ty)+b.b*(b.tx-a.x));a.x=d}}b=a.x+this.__dragOffsetX;a=a.y+this.__dragOffsetY;null!=this.__dragBounds&&(b<this.__dragBounds.x?b=this.__dragBounds.x:b>this.__dragBounds.get_right()&&(b=this.__dragBounds.get_right()),a<this.__dragBounds.y?a= +this.__dragBounds.y:a>this.__dragBounds.get_bottom()&&(a=this.__dragBounds.get_bottom()));this.__dragObject.set_x(b);this.__dragObject.set_y(a)},__getInteractive:function(a){null!=a&&a.push(this);return!0},__globalToLocal:function(a,b){a!=b&&b.copyFrom(a);return b},__handleError:function(a){var b=new Ti("uncaughtError",!0,!0,a);try{Da.get_current().__loaderInfo.uncaughtErrorEvents.dispatchEvent(b)}catch(d){sa.lastError=d}if(!b.__preventDefault){b=jf.toString(jf.exceptionStack());console.log(b);b= +n.string(a);console.log(b);try{if(null!=a&&Object.prototype.hasOwnProperty.call(a,"stack")&&null!=a.stack&&""!=a.stack)console.log(a.stack),a.stack=a.stack;else{var c=jf.toString(jf.callStack());console.log(c)}}catch(d){sa.lastError=d}throw a;}},__onKey:function(a,b,c){this.__dispatchPendingMouseEvent();Ib.__altKey=xb.get_altKey(c);Ib.__commandKey=xb.get_metaKey(c);Ib.__ctrlKey=xb.get_ctrlKey(c);Ib.__shiftKey=xb.get_shiftKey(c);var d=[];null==this.__focus?this.__getInteractive(d):this.__focus.__getInteractive(d); +if(0<d.length){switch(b){case 1073741908:case 1073741909:case 1073741910:case 1073741911:case 1073741912:case 1073741913:case 1073741914:case 1073741915:case 1073741916:case 1073741917:case 1073741918:case 1073741919:case 1073741920:case 1073741921:case 1073741922:case 1073741923:case 1073742044:var e=3;break;case 1073742048:case 1073742049:case 1073742050:case 1073742051:e=1;break;case 1073742052:case 1073742053:case 1073742054:case 1073742055:e=2;break;default:e=0}switch(b){case 8:b=8;break;case 9:b= +9;break;case 13:b=13;break;case 27:b=27;break;case 32:b=32;break;case 33:b=49;break;case 34:b=222;break;case 35:b=51;break;case 36:b=52;break;case 37:b=53;break;case 38:b=55;break;case 39:b=222;break;case 40:b=57;break;case 41:b=48;break;case 42:b=56;break;case 44:b=188;break;case 45:b=189;break;case 46:b=190;break;case 47:b=191;break;case 48:b=48;break;case 49:b=49;break;case 50:b=50;break;case 51:b=51;break;case 52:b=52;break;case 53:b=53;break;case 54:b=54;break;case 55:b=55;break;case 56:b=56; +break;case 57:b=57;break;case 58:b=186;break;case 59:b=186;break;case 60:b=60;break;case 61:b=187;break;case 62:b=190;break;case 63:b=191;break;case 64:b=50;break;case 91:b=219;break;case 92:b=220;break;case 93:b=221;break;case 94:b=54;break;case 95:b=189;break;case 96:b=192;break;case 97:b=65;break;case 98:b=66;break;case 99:b=67;break;case 100:b=68;break;case 101:b=69;break;case 102:b=70;break;case 103:b=71;break;case 104:b=72;break;case 105:b=73;break;case 106:b=74;break;case 107:b=75;break;case 108:b= +76;break;case 109:b=77;break;case 110:b=78;break;case 111:b=79;break;case 112:b=80;break;case 113:b=81;break;case 114:b=82;break;case 115:b=83;break;case 116:b=84;break;case 117:b=85;break;case 118:b=86;break;case 119:b=87;break;case 120:b=88;break;case 121:b=89;break;case 122:b=90;break;case 127:b=46;break;case 1073741881:b=20;break;case 1073741882:b=112;break;case 1073741883:b=113;break;case 1073741884:b=114;break;case 1073741885:b=115;break;case 1073741886:b=116;break;case 1073741887:b=117;break; +case 1073741888:b=118;break;case 1073741889:b=119;break;case 1073741890:b=120;break;case 1073741891:b=121;break;case 1073741892:b=122;break;case 1073741893:b=123;break;case 1073741894:b=301;break;case 1073741895:b=145;break;case 1073741896:b=19;break;case 1073741897:b=45;break;case 1073741898:b=36;break;case 1073741899:b=33;break;case 1073741901:b=35;break;case 1073741902:b=34;break;case 1073741903:b=39;break;case 1073741904:b=37;break;case 1073741905:b=40;break;case 1073741906:b=38;break;case 1073741907:b= +144;break;case 1073741908:b=111;break;case 1073741909:b=106;break;case 1073741910:b=109;break;case 1073741911:b=107;break;case 1073741912:b=13;break;case 1073741913:b=97;break;case 1073741914:b=98;break;case 1073741915:b=99;break;case 1073741916:b=100;break;case 1073741917:b=101;break;case 1073741918:b=102;break;case 1073741919:b=103;break;case 1073741920:b=104;break;case 1073741921:b=105;break;case 1073741922:b=96;break;case 1073741923:b=110;break;case 1073741925:b=302;break;case 1073741928:b=124; +break;case 1073741929:b=125;break;case 1073741930:b=126;break;case 1073741982:b=13;break;case 1073742044:b=110;break;case 1073742048:b=17;break;case 1073742049:b=16;break;case 1073742050:b=18;break;case 1073742051:b=15;break;case 1073742052:b=17;break;case 1073742053:b=16;break;case 1073742054:b=18;break;case 1073742055:b=15}var f=Ca.__getCharCode(b,xb.get_shiftKey(c));if("keyUp"==a&&(32==b||13==b)&&this.__focus instanceof ta){var h=O.__cast(this.__focus,ta);if(h.get_buttonMode()&&1==h.focusRect){var l= +oa.__pool.get(),t=oa.__pool.get();t.x=this.__mouseX;t.y=this.__mouseY;h=Ib.__create("click",0,this.__mouseX,this.__mouseY,h.__globalToLocal(t,l),h);this.__dispatchStack(h,d);oa.__pool.release(t);oa.__pool.release(l)}}e=new bi(a,!0,!0,f,b,e,this.__macKeyboard?xb.get_ctrlKey(c)||xb.get_metaKey(c):xb.get_ctrlKey(c),xb.get_altKey(c),xb.get_shiftKey(c),xb.get_ctrlKey(c),xb.get_metaKey(c));d.reverse();this.__dispatchStack(e,d);if(e.__preventDefault)"keyDown"==a?this.window.onKeyDown.cancel():this.window.onKeyUp.cancel(); +else if("keyDown"==a&&9==b){d=[];this.__tabTest(d);b=-1;a=null;e=xb.get_shiftKey(c)?-1:1;if(1<d.length){de.sort(d,function(a,b){return a.get_tabIndex()-b.get_tabIndex()});if(-1!=d[d.length-1].get_tabIndex())for(l=0;l<d.length;){if(-1<d[l].get_tabIndex()){0<l&&d.splice(0,l);break}++l}if(null!=this.get_focus()){l=this.get_focus();for(f=d.indexOf(l);-1==f&&null!=l;){b=l.parent;if(null!=b&&b.get_tabChildren()){l=b.getChildIndex(l);if(-1==l){l=b;continue}for(l+=e;xb.get_shiftKey(c)?0<=l:l<b.get_numChildren();){t= +b.getChildAt(l);if(t instanceof ob&&(f=O.__cast(t,ob),f=d.indexOf(f),-1!=f)){e=0;break}l+=e}}else xb.get_shiftKey(c)&&(f=d.indexOf(b),-1!=f&&(e=0));l=b}b=0>f?0:f+e}else b=this.__currentTabOrderIndex}else 1==d.length&&(a=d[0],this.get_focus()==a&&(a=null));f=0<=b&&b<d.length;1==d.length||0==d.length&&null!=this.get_focus()?b=0:1<d.length&&(0>b&&(b+=d.length),b%=d.length,a=d[b],a==this.get_focus()&&(b+=e,0>b&&(b+=d.length),b%=d.length,a=d[b]));e=null;null!=this.get_focus()&&(e=new Xf("keyFocusChange", +!0,!0,a,xb.get_shiftKey(c),0),d=[],this.get_focus().__getInteractive(d),d.reverse(),this.__dispatchStack(e,d),e.isDefaultPrevented()&&this.window.onKeyDown.cancel());null!=e&&e.isDefaultPrevented()||(this.__currentTabOrderIndex=b,null!=a&&this.set_focus(a),f&&this.window.onKeyDown.cancel())}}},__onLimeCreateWindow:function(a){if(this.window==a){var b=q(this,this.__onLimeWindowActivate);a.onActivate.add(function(){b(a)});var c=q(this,this.__onLimeWindowClose);a.onClose.add(function(){c(a)},!1,-9E3); +var d=q(this,this.__onLimeWindowDeactivate);a.onDeactivate.add(function(){d(a)});var e=q(this,this.__onLimeWindowDropFile);var f=function(b){e(a,b)};a.onDropFile.add(f);var h=q(this,this.__onLimeWindowEnter);a.onEnter.add(function(){h(a)});var l=q(this,this.__onLimeWindowExpose);a.onExpose.add(function(){l(a)});var t=q(this,this.__onLimeWindowFocusIn);a.onFocusIn.add(function(){t(a)});var m=q(this,this.__onLimeWindowFocusOut);a.onFocusOut.add(function(){m(a)});var k=q(this,this.__onLimeWindowFullscreen); +a.onFullscreen.add(function(){k(a)});var p=q(this,this.__onLimeKeyDown);f=function(b,c){p(a,b,c)};a.onKeyDown.add(f);var n=q(this,this.__onLimeKeyUp);f=function(b,c){n(a,b,c)};a.onKeyUp.add(f);var r=q(this,this.__onLimeWindowLeave);a.onLeave.add(function(){r(a)});var v=q(this,this.__onLimeWindowMinimize);a.onMinimize.add(function(){v(a)});var u=q(this,this.__onLimeMouseDown);f=function(b,c,d){u(a,b,c,d)};a.onMouseDown.add(f);var w=q(this,this.__onLimeMouseMove);f=function(b,c){w(a,b,c)};a.onMouseMove.add(f); +var B=q(this,this.__onLimeMouseMoveRelative);f=function(b,c){B(a,b,c)};a.onMouseMoveRelative.add(f);var E=q(this,this.__onLimeMouseUp);f=function(b,c,d){E(a,b,c,d)};a.onMouseUp.add(f);var C=q(this,this.__onLimeMouseWheel);f=function(b,c,d){C(a,b,c,d)};a.onMouseWheel.add(f);var N=q(this,this.__onLimeWindowMove);f=function(b,c){N(a,b,c)};a.onMove.add(f);a.onRender.add(q(this,this.__onLimeRender));a.onRenderContextLost.add(q(this,this.__onLimeRenderContextLost));a.onRenderContextRestored.add(q(this, +this.__onLimeRenderContextRestored));var z=q(this,this.__onLimeWindowResize);f=function(b,c){z(a,b,c)};a.onResize.add(f);var J=q(this,this.__onLimeWindowRestore);a.onRestore.add(function(){J(a)});var D=q(this,this.__onLimeTextEdit);f=function(b,c,d){D(a,b,c,d)};a.onTextEdit.add(f);var A=q(this,this.__onLimeTextInput);f=function(b){A(a,b)};a.onTextInput.add(f);this.__onLimeWindowCreate(a)}},__onLimeGamepadAxisMove:function(a,b,c){if(this.__uncaughtErrorEvents.__enabled)try{Nb.__onGamepadAxisMove(a, +b,c)}catch(d){sa.lastError=d,a=R.caught(d).unwrap(),this.__handleError(a)}else Nb.__onGamepadAxisMove(a,b,c)},__onLimeGamepadButtonDown:function(a,b){if(this.__uncaughtErrorEvents.__enabled)try{Nb.__onGamepadButtonDown(a,b)}catch(c){sa.lastError=c,a=R.caught(c).unwrap(),this.__handleError(a)}else Nb.__onGamepadButtonDown(a,b)},__onLimeGamepadButtonUp:function(a,b){if(this.__uncaughtErrorEvents.__enabled)try{Nb.__onGamepadButtonUp(a,b)}catch(c){sa.lastError=c,a=R.caught(c).unwrap(),this.__handleError(a)}else Nb.__onGamepadButtonUp(a, +b)},__onLimeGamepadConnect:function(a){if(this.__uncaughtErrorEvents.__enabled)try{Nb.__onGamepadConnect(a)}catch(x){sa.lastError=x;var b=R.caught(x).unwrap();this.__handleError(b)}else Nb.__onGamepadConnect(a);var c=q(this,this.__onLimeGamepadAxisMove);b=function(b,d){c(a,b,d)};a.onAxisMove.add(b);var d=q(this,this.__onLimeGamepadButtonDown);b=function(b){d(a,b)};a.onButtonDown.add(b);var e=q(this,this.__onLimeGamepadButtonUp);b=function(b){e(a,b)};a.onButtonUp.add(b);var f=q(this,this.__onLimeGamepadDisconnect); +a.onDisconnect.add(function(){f(a)})},__onLimeGamepadDisconnect:function(a){if(this.__uncaughtErrorEvents.__enabled)try{Nb.__onGamepadDisconnect(a)}catch(b){sa.lastError=b,a=R.caught(b).unwrap(),this.__handleError(a)}else Nb.__onGamepadDisconnect(a)},__onLimeKeyDown:function(a,b,c){null!=this.window&&this.window==a&&this.__onKey("keyDown",b,c)},__onLimeKeyUp:function(a,b,c){null!=this.window&&this.window==a&&this.__onKey("keyUp",b,c)},__onLimeModuleExit:function(a){null!=this.window&&(a=new la("deactivate"), +this.__broadcastEvent(a))},__onLimeMouseDown:function(a,b,c,d){if(null!=this.window&&this.window==a){this.__dispatchPendingMouseEvent();switch(d){case 1:var e="middleMouseDown";break;case 2:e="rightMouseDown";break;default:e="mouseDown"}this.__onMouse(e,b*a.__scale|0,c*a.__scale|0,d);this.showDefaultContextMenu||2!=d||a.onMouseDown.cancel()}},__onLimeMouseMove:function(a,b,c){null!=this.window&&this.window==a&&(this.__pendingMouseEvent=!0,this.__pendingMouseX=b*a.__scale|0,this.__pendingMouseY=c* +a.__scale|0)},__onLimeMouseMoveRelative:function(a,b,c){},__onLimeMouseUp:function(a,b,c,d){if(null!=this.window&&this.window==a){this.__dispatchPendingMouseEvent();switch(d){case 1:var e="middleMouseUp";break;case 2:e="rightMouseUp";break;default:e="mouseUp"}this.__onMouse(e,b*a.__scale|0,c*a.__scale|0,d);this.showDefaultContextMenu||2!=d||a.onMouseUp.cancel()}},__onLimeMouseWheel:function(a,b,c,d){null!=this.window&&this.window==a&&(this.__dispatchPendingMouseEvent(),d==wh.PIXELS?this.__onMouseWheel(b* +a.__scale|0,c*a.__scale|0,d):this.__onMouseWheel(b|0,c|0,d))},__onLimeRender:function(a){if(!this.__rendering){this.__rendering=!0;this.__broadcastEvent(new la("enterFrame"));this.__broadcastEvent(new la("frameConstructed"));this.__broadcastEvent(new la("exitFrame"));this.__renderable=!0;this.__enterFrame(this.__deltaTime);this.__deltaTime=0;a=null!=this.__renderer&&(this.__renderDirty||this.__forceRender);if(this.__invalidated&&a){this.__invalidated=!1;var b=new la("render");this.__broadcastEvent(b)}this.__update(!1, +!0);if(null!=this.__renderer){if(null!=this.context3D){for(b=this.stage3Ds.iterator();b.hasNext();){var c=b.next();this.context3D.__renderStage3D(c)}this.context3D.__present&&(a=!0)}a?(null==this.context3D&&this.__renderer.__clear(),this.__renderer.__render(this)):null==this.context3D&&this.window.onRender.cancel();null!=this.context3D&&(this.context3D.__present?(this.__renderer.__cleared||this.__renderer.__clear(),this.context3D.__present=!1,this.context3D.__cleared=!1):this.window.onRender.cancel()); +this.__renderer.__cleared=!1}this.__rendering=!1}},__onLimeRenderContextLost:function(){this.context3D=this.__renderer=null;for(var a=this.stage3Ds.iterator();a.hasNext();)a.next().__lostContext()},__onLimeRenderContextRestored:function(a){this.__createRenderer();for(a=this.stage3Ds.iterator();a.hasNext();)a.next().__restoreContext()},__onLimeTextEdit:function(a,b,c,d){},__onLimeTextInput:function(a,b){if(null!=this.window&&this.window==a){var c=[];null==this.__focus?this.__getInteractive(c):this.__focus.__getInteractive(c); +b=new cf("textInput",!0,!0,b);0<c.length?(c.reverse(),this.__dispatchStack(b,c)):this.__dispatchEvent(b);b.isDefaultPrevented()&&a.onTextInput.cancel()}},__onLimeTouchCancel:function(a){var b=this.__primaryTouch==a;b&&(this.__primaryTouch=null);this.__onTouch("touchEnd",a,b)},__onLimeTouchMove:function(a){this.__onTouch("touchMove",a,this.__primaryTouch==a)},__onLimeTouchEnd:function(a){var b=this.__primaryTouch==a;b&&(this.__primaryTouch=null);this.__onTouch("touchEnd",a,b)},__onLimeTouchStart:function(a){null== +this.__primaryTouch&&(this.__primaryTouch=a);this.__onTouch("touchBegin",a,this.__primaryTouch==a)},__onLimeUpdate:function(a){this.__deltaTime=a;this.__dispatchPendingMouseEvent()},__onLimeWindowActivate:function(a){},__onLimeWindowClose:function(a){this.window==a&&(this.window=null);this.__primaryTouch=null;a=new la("deactivate");this.__broadcastEvent(a)},__onLimeWindowCreate:function(a){null!=this.window&&this.window==a&&null!=a.context&&this.__createRenderer()},__onLimeWindowDeactivate:function(a){}, +__onLimeWindowDropFile:function(a,b){},__onLimeWindowEnter:function(a){},__onLimeWindowExpose:function(a){null!=this.window&&this.window==a&&(this.__renderDirty=!0)},__onLimeWindowFocusIn:function(a){null!=this.window&&this.window==a&&(this.__renderDirty=!0,a=new la("activate"),this.__broadcastEvent(a),this.set_focus(this.__cacheFocus))},__onLimeWindowFocusOut:function(a){null!=this.window&&this.window==a&&(this.__primaryTouch=null,a=new la("deactivate"),this.__broadcastEvent(a),a=this.get_focus(), +this.set_focus(null),this.__cacheFocus=a,Ib.__altKey=!1,Ib.__commandKey=!1,Ib.__ctrlKey=!1,Ib.__shiftKey=!1)},__onLimeWindowFullscreen:function(a){null!=this.window&&this.window==a&&(this.__resize(),this.__wasFullscreen||(this.__wasFullscreen=!0,2==this.__displayState&&(this.__displayState=1),this.__dispatchEvent(new bh("fullScreen",!1,!1,!0,!0))))},__onLimeWindowLeave:function(a){null==this.window||this.window!=a||Ib.__buttonDown||(this.__dispatchPendingMouseEvent(),a=new la("mouseLeave"),this.__dispatchEvent(a))}, +__onLimeWindowMinimize:function(a){},__onLimeWindowMove:function(a,b,c){},__onLimeWindowResize:function(a,b,c){null!=this.window&&this.window==a&&(this.__resize(),this.__wasFullscreen&&!a.__fullscreen&&(this.__wasFullscreen=!1,this.__displayState=2,this.__dispatchEvent(new bh("fullScreen",!1,!1,!1,!0))))},__onLimeWindowRestore:function(a){null!=this.window&&this.window==a&&this.__wasFullscreen&&!a.__fullscreen&&(this.__wasFullscreen=!1,this.__displayState=2,this.__dispatchEvent(new bh("fullScreen", +!1,!1,!1,!0)))},__onMouse:function(a,b,c,d){if(!(2<d)){var e=oa.__pool.get();e.setTo(b,c);b=this.__displayMatrix;c=b.a*b.d-b.b*b.c;if(0==c)e.x=-b.tx,e.y=-b.ty;else{var f=1/c*(b.c*(b.ty-e.y)+b.d*(e.x-b.tx));e.y=1/c*(b.a*(e.y-b.ty)+b.b*(b.tx-e.x));e.x=f}this.__mouseX=e.x;this.__mouseY=e.y;b=[];this.__hitTest(this.__mouseX,this.__mouseY,!0,b,!0,this)?f=b[b.length-1]:(f=this,b=[this]);null==f&&(f=this);var h=null;switch(a){case "middleMouseDown":this.__mouseDownMiddle=f;break;case "middleMouseUp":this.__mouseDownMiddle== +f&&(h="middleClick");this.__mouseDownMiddle=null;break;case "mouseDown":null!=this.get_focus()?this.get_focus()!=f&&(c=new Xf("mouseFocusChange",!0,!0,f,!1,0),this.get_focus().dispatchEvent(c),c.isDefaultPrevented()||(f.__allowMouseFocus()?this.set_focus(f):this.set_focus(null))):f.__allowMouseFocus()?this.set_focus(f):this.set_focus(null);this.__mouseDownLeft=f;Ib.__buttonDown=!0;break;case "mouseUp":if(null!=this.__mouseDownLeft){Ib.__buttonDown=!1;if(this.__mouseDownLeft==f)h="click";else{var l= +Ib.__create("releaseOutside",1,this.__mouseX,this.__mouseY,new oa(this.__mouseX,this.__mouseY),this);this.__mouseDownLeft.dispatchEvent(l)}this.__mouseDownLeft=null}break;case "rightMouseDown":this.__mouseDownRight=f;break;case "rightMouseUp":this.__mouseDownRight==f&&(h="rightClick"),this.__mouseDownRight=null}c=oa.__pool.get();l=Ib.__create(a,d,this.__mouseX,this.__mouseY,f.__globalToLocal(e,c),f);this.__dispatchStack(l,b);null!=h&&(l=Ib.__create(h,d,this.__mouseX,this.__mouseY,f.__globalToLocal(e, +c),f),this.__dispatchStack(l,b),"mouseUp"==a&&f.doubleClickEnabled&&(a=Da.getTimer(),500>a-this.__lastClickTime&&f==this.__lastClickTarget?(l=Ib.__create("doubleClick",d,this.__mouseX,this.__mouseY,f.__globalToLocal(e,c),f),this.__dispatchStack(l,b),this.__lastClickTime=0,this.__lastClickTarget=null):(this.__lastClickTarget=f,this.__lastClickTime=a)));if("auto"==je.__cursor&&!je.__hidden){l=null;if(null!=this.__mouseDownLeft)l=this.__mouseDownLeft.__getCursor();else for(a=0;a<b.length;)if(l=b[a], +++a,l=l.__getCursor(),null!=l&&null!=this.window){this.window.set_cursor(vf.toLimeCursor(l));break}null==l&&null!=this.window&&this.window.set_cursor(jc.ARROW)}f!=this.__mouseOverTarget&&null!=this.__mouseOverTarget&&(l=Ib.__create("mouseOut",d,this.__mouseX,this.__mouseY,this.__mouseOverTarget.__globalToLocal(e,c),this.__mouseOverTarget),this.__dispatchStack(l,this.__mouseOutStack));for(a=0;a<this.__rollOutStack.length;)h=this.__rollOutStack[a],-1==b.indexOf(h)?(F.remove(this.__rollOutStack,h),l= +Ib.__create("rollOut",d,this.__mouseX,this.__mouseY,this.__mouseOverTarget.__globalToLocal(e,c),h),l.bubbles=!1,this.__dispatchTarget(h,l)):++a;for(a=0;a<b.length;)h=b[a],++a,-1==this.__rollOutStack.indexOf(h)&&null!=this.__mouseOverTarget&&(h.hasEventListener("rollOver")&&(l=Ib.__create("rollOver",d,this.__mouseX,this.__mouseY,this.__mouseOverTarget.__globalToLocal(e,c),h),l.bubbles=!1,this.__dispatchTarget(h,l)),(h.hasEventListener("rollOut")||h.hasEventListener("rollOver"))&&this.__rollOutStack.push(h)); +f!=this.__mouseOverTarget&&(null!=f&&(l=Ib.__create("mouseOver",d,this.__mouseX,this.__mouseY,f.__globalToLocal(e,c),f),this.__dispatchStack(l,b)),this.__mouseOverTarget=f,this.__mouseOutStack=b);null!=this.__dragObject&&(this.__drag(e),d=null,this.__mouseOverTarget==this.__dragObject?(f=this.__dragObject.mouseEnabled,a=this.__dragObject.mouseChildren,this.__dragObject.mouseEnabled=!1,this.__dragObject.mouseChildren=!1,b=[],this.__hitTest(this.__mouseX,this.__mouseY,!0,b,!0,this)&&(d=b[b.length-1]), +this.__dragObject.mouseEnabled=f,this.__dragObject.mouseChildren=a):this.__mouseOverTarget!=this&&(d=this.__mouseOverTarget),this.__dragObject.dropTarget=d);oa.__pool.release(e);oa.__pool.release(c)}},__onMouseWheel:function(a,b,c){var d=this.__mouseX,e=this.__mouseY;a=[];if(this.__hitTest(this.__mouseX,this.__mouseY,!0,a,!0,this))var f=a[a.length-1];else f=this,a=[this];null==f&&(f=this);c=oa.__pool.get();c.setTo(d,e);d=this.__displayMatrix;e=d.a*d.d-d.b*d.c;if(0==e)c.x=-d.tx,c.y=-d.ty;else{var h= +1/e*(d.c*(d.ty-c.y)+d.d*(c.x-d.tx));c.y=1/e*(d.a*(c.y-d.ty)+d.b*(d.tx-c.x));c.x=h}b|=0;b=Ib.__create("mouseWheel",0,this.__mouseX,this.__mouseY,f.__globalToLocal(c,c),f,b);b.cancelable=!0;this.__dispatchStack(b,a);b.isDefaultPrevented()&&this.window.onMouseWheel.cancel();oa.__pool.release(c)},__onTouch:function(a,b,c){var d=oa.__pool.get();d.setTo(Math.round(b.x*this.window.__width*this.window.__scale),Math.round(b.y*this.window.__height*this.window.__scale));var e=this.__displayMatrix,f=e.a*e.d- +e.b*e.c;if(0==f)d.x=-e.tx,d.y=-e.ty;else{var h=1/f*(e.c*(e.ty-d.y)+e.d*(d.x-e.tx));d.y=1/f*(e.a*(d.y-e.ty)+e.b*(e.tx-d.x));d.x=h}e=d.x;f=d.y;h=[];if(this.__hitTest(e,f,!1,h,!0,this))var l=h[h.length-1];else l=this,h=[this];null==l&&(l=this);var t=b.id;if(this.__touchData.h.hasOwnProperty(t))var m=this.__touchData.h[t];else m=ci.__pool.get(),m.reset(),m.touch=b,this.__touchData.h[t]=m;var k=null,p=!1;switch(a){case "touchBegin":m.touchDownTarget=l;break;case "touchEnd":m.touchDownTarget==l&&(k="touchTap"), +m.touchDownTarget=null,p=!0}var n=oa.__pool.get();a=Rd.__create(a,null,e,f,l.__globalToLocal(d,n),l);a.touchPointID=t;a.isPrimaryTouchPoint=c;a.pressure=b.pressure;this.__dispatchStack(a,h);null!=k&&(a=Rd.__create(k,null,e,f,l.__globalToLocal(d,n),l),a.touchPointID=t,a.isPrimaryTouchPoint=c,a.pressure=b.pressure,this.__dispatchStack(a,h));k=m.touchOverTarget;l!=k&&null!=k&&(a=Rd.__create("touchOut",null,e,f,k.__globalToLocal(d,n),k),a.touchPointID=t,a.isPrimaryTouchPoint=c,a.pressure=b.pressure,this.__dispatchTarget(k, +a));for(var r=m.rollOutStack,q,v=0;v<r.length;)q=r[v],-1==h.indexOf(q)?(F.remove(r,q),a=Rd.__create("touchRollOut",null,e,f,k.__globalToLocal(d,n),k),a.touchPointID=t,a.isPrimaryTouchPoint=c,a.bubbles=!1,a.pressure=b.pressure,this.__dispatchTarget(q,a)):++v;for(v=0;v<h.length;)q=h[v],++v,-1==r.indexOf(q)&&(q.hasEventListener("touchRollOver")&&(a=Rd.__create("touchRollOver",null,e,f,k.__globalToLocal(d,n),q),a.touchPointID=t,a.isPrimaryTouchPoint=c,a.bubbles=!1,a.pressure=b.pressure,this.__dispatchTarget(q, +a)),q.hasEventListener("touchRollOut")&&r.push(q));l!=k&&(null!=l&&(a=Rd.__create("touchOver",null,e,f,l.__globalToLocal(d,n),l),a.touchPointID=t,a.isPrimaryTouchPoint=c,a.bubbles=!0,a.pressure=b.pressure,this.__dispatchTarget(l,a)),m.touchOverTarget=l);oa.__pool.release(d);oa.__pool.release(n);p&&(this.__touchData.remove(t),m.reset(),ci.__pool.release(m))},__registerLimeModule:function(a){a.onCreateWindow.add(q(this,this.__onLimeCreateWindow));a.onUpdate.add(q(this,this.__onLimeUpdate));a.onExit.add(q(this, +this.__onLimeModuleExit),!1,0);for(a=Dd.devices.iterator();a.hasNext();){var b=a.next();this.__onLimeGamepadConnect(b)}Dd.onConnect.add(q(this,this.__onLimeGamepadConnect));gd.onStart.add(q(this,this.__onLimeTouchStart));gd.onMove.add(q(this,this.__onLimeTouchMove));gd.onEnd.add(q(this,this.__onLimeTouchEnd));gd.onCancel.add(q(this,this.__onLimeTouchCancel))},__resize:function(){var a=this.stageWidth,b=this.stageHeight,c=this.window.__width*this.window.__scale|0,d=this.window.__height*this.window.__scale| +0;this.__displayMatrix.identity();if(null!=this.get_fullScreenSourceRect()&&this.window.__fullscreen){this.stageWidth=this.get_fullScreenSourceRect().width|0;this.stageHeight=this.get_fullScreenSourceRect().height|0;var e=c/this.stageWidth,f=d/this.stageHeight;this.__displayMatrix.translate(-this.get_fullScreenSourceRect().x,-this.get_fullScreenSourceRect().y);this.__displayMatrix.scale(e,f);this.__displayRect.setTo(this.get_fullScreenSourceRect().get_left(),this.get_fullScreenSourceRect().get_right(), +this.get_fullScreenSourceRect().get_top(),this.get_fullScreenSourceRect().get_bottom())}else if(0==this.__logicalWidth||0==this.__logicalHeight||2==this.get_scaleMode()||0==c||0==d)this.stageWidth=Math.round(c/this.window.__scale),this.stageHeight=Math.round(d/this.window.__scale),this.__displayMatrix.scale(this.window.__scale,this.window.__scale),this.__displayRect.setTo(0,0,this.stageWidth,this.stageHeight);else switch(this.stageWidth=this.__logicalWidth,this.stageHeight=this.__logicalHeight,this.get_scaleMode()){case 0:e= +c/this.stageWidth;f=d/this.stageHeight;this.__displayMatrix.scale(e,f);this.__displayRect.setTo(0,0,this.stageWidth,this.stageHeight);break;case 1:e=c/this.stageWidth;f=d/this.stageHeight;e=Math.max(e,f);f=this.stageWidth*e;var h=this.stageHeight*e;f=this.stageWidth-Math.round((f-c)/e);h=this.stageHeight-Math.round((h-d)/e);var l=Math.round((this.stageWidth-f)/2),t=Math.round((this.stageHeight-h)/2);this.__displayMatrix.translate(-l,-t);this.__displayMatrix.scale(e,e);this.__displayRect.setTo(l,t, +f,h);break;default:e=c/this.stageWidth,f=d/this.stageHeight,e=Math.min(e,f),f=this.stageWidth*e,h=this.stageHeight*e,f=this.stageWidth-Math.round((f-c)/e),h=this.stageHeight-Math.round((h-d)/e),l=Math.round((this.stageWidth-f)/2),t=Math.round((this.stageHeight-h)/2),this.__displayMatrix.translate(-l,-t),this.__displayMatrix.scale(e,e),this.__displayRect.setTo(l,t,f,h)}null!=this.context3D&&this.context3D.configureBackBuffer(this.stageWidth,this.stageHeight,0,!0,!0,!0);for(e=this.stage3Ds.iterator();e.hasNext();)e.next().__resize(c, +d);null!=this.__renderer&&this.__renderer.__resize(c,d);this.__renderDirty=!0;if(this.stageWidth!=a||this.stageHeight!=b)this.__setTransformDirty(),a=new la("resize"),this.__dispatchEvent(a)},__setLogicalSize:function(a,b){this.__logicalWidth=a;this.__logicalHeight=b;this.__resize()},__startDrag:function(a,b,c){if(null==c)this.__dragBounds=null;else{this.__dragBounds=new fa;var d=c.get_right(),e=c.get_bottom();this.__dragBounds.x=d<c.x?d:c.x;this.__dragBounds.y=e<c.y?e:c.y;this.__dragBounds.width= +Math.abs(c.width);this.__dragBounds.height=Math.abs(c.height)}this.__dragObject=a;null!=this.__dragObject&&(b?this.__dragOffsetY=this.__dragOffsetX=0:(a=oa.__pool.get(),a.setTo(this.get_mouseX(),this.get_mouseY()),b=this.__dragObject.parent,null!=b&&(b=b.__getWorldTransform(),c=b.a*b.d-b.b*b.c,0==c?(a.x=-b.tx,a.y=-b.ty):(d=1/c*(b.c*(b.ty-a.y)+b.d*(a.x-b.tx)),a.y=1/c*(b.a*(a.y-b.ty)+b.b*(b.tx-a.x)),a.x=d)),this.__dragOffsetX=this.__dragObject.get_x()-a.x,this.__dragOffsetY=this.__dragObject.get_y()- +a.y,oa.__pool.release(a)))},__stopDrag:function(a){this.__dragObject=this.__dragBounds=null},__unregisterLimeModule:function(a){a.onCreateWindow.remove(q(this,this.__onLimeCreateWindow));a.onUpdate.remove(q(this,this.__onLimeUpdate));a.onExit.remove(q(this,this.__onLimeModuleExit));Dd.onConnect.remove(q(this,this.__onLimeGamepadConnect));gd.onStart.remove(q(this,this.__onLimeTouchStart));gd.onMove.remove(q(this,this.__onLimeTouchMove));gd.onEnd.remove(q(this,this.__onLimeTouchEnd));gd.onCancel.remove(q(this, +this.__onLimeTouchCancel))},__update:function(a,b){a?this.__transformDirty&&(Jb.prototype.__update.call(this,!0,b),b&&(this.__transformDirty=!1)):this.__transformDirty||this.__renderDirty?(Jb.prototype.__update.call(this,!1,b),b&&A.__supportDOM&&(this.__wasDirty=!0)):!this.__renderDirty&&this.__wasDirty&&(Jb.prototype.__update.call(this,!1,b),b&&(this.__wasDirty=!1))},get_color:function(){return this.__color},set_color:function(a){null==a?(this.__transparent=!0,a=0):this.__transparent=!1;this.__color!= +a&&(this.__colorSplit[0]=((a&16711680)>>>16)/255,this.__colorSplit[1]=((a&65280)>>>8)/255,this.__colorSplit[2]=(a&255)/255,this.__colorString="#"+J.hex(a&16777215,6),this.__renderDirty=!0,this.__color=-16777216|a&16777215);return a},get_contentsScaleFactor:function(){return this.__contentsScaleFactor},get_displayState:function(){return this.__displayState},set_displayState:function(a){null!=this.window&&(2==a?this.window.__fullscreen&&this.window.set_fullscreen(!1):this.window.__fullscreen||this.window.set_fullscreen(!0)); +return this.__displayState=a},get_focus:function(){return this.__focus},set_focus:function(a){if(a!=this.__focus){var b=this.__focus;this.__cacheFocus=this.__focus=a;if(null!=b){var c=new Xf("focusOut",!0,!1,a,!1,0),d=[];b.__getInteractive(d);d.reverse();this.__dispatchStack(c,d)}null!=a&&(c=new Xf("focusIn",!0,!1,b,!1,0),d=[],a.__getInteractive(d),d.reverse(),this.__dispatchStack(c,d))}return a},get_frameRate:function(){return null!=this.window?this.window.__backend.getFrameRate():0},set_frameRate:function(a){return null!= +this.window?this.window.__backend.setFrameRate(a):a},get_fullScreenHeight:function(){return Math.ceil(this.window.get_display().currentMode.height*this.window.__scale)},get_fullScreenSourceRect:function(){return null==this.__fullScreenSourceRect?null:this.__fullScreenSourceRect.clone()},set_fullScreenSourceRect:function(a){null==a?null!=this.__fullScreenSourceRect&&(this.__fullScreenSourceRect=null,this.__resize()):a.equals(this.__fullScreenSourceRect)||(this.__fullScreenSourceRect=a.clone(),this.__resize()); +return a},get_fullScreenWidth:function(){return Math.ceil(this.window.get_display().currentMode.width*this.window.__scale)},set_height:function(a){return this.get_height()},get_mouseX:function(){return this.__mouseX},get_mouseY:function(){return this.__mouseY},get_quality:function(){return this.__quality},set_quality:function(a){this.__quality=a;if(null!=this.__renderer){var b=this.get_quality();this.__renderer.__allowSmoothing=2!=b}return a},set_rotation:function(a){return 0},get_scaleMode:function(){return this.__scaleMode}, +set_scaleMode:function(a){a!=this.__scaleMode&&(this.__scaleMode=a,this.__resize());return a},set_scaleX:function(a){return 0},set_scaleY:function(a){return 0},get_tabEnabled:function(){return!1},set_tabEnabled:function(a){throw new dd("Error: The Stage class does not implement this property or method.");},get_tabIndex:function(){return-1},set_tabIndex:function(a){throw new dd("Error: The Stage class does not implement this property or method.");},set_transform:function(a){return this.get_transform()}, +set_width:function(a){return this.get_width()},set_x:function(a){return 0},set_y:function(a){return 0},__class__:Si,__properties__:u(Jb.prototype.__properties__,{set_scaleMode:"set_scaleMode",get_scaleMode:"get_scaleMode",set_quality:"set_quality",get_quality:"get_quality",get_fullScreenWidth:"get_fullScreenWidth",set_fullScreenSourceRect:"set_fullScreenSourceRect",get_fullScreenSourceRect:"get_fullScreenSourceRect",get_fullScreenHeight:"get_fullScreenHeight",set_frameRate:"set_frameRate",get_frameRate:"get_frameRate", +set_focus:"set_focus",get_focus:"get_focus",set_displayState:"set_displayState",get_displayState:"get_displayState",get_contentsScaleFactor:"get_contentsScaleFactor",set_color:"set_color",get_color:"get_color"})});var ai=function(a){fb.call(this);this.__stage=a;this.__height=0;this.__projectionTransform=new Yd;this.__renderTransform=new Yd;this.__y=this.__x=this.__width=0;this.visible=!0;0<a.stageWidth&&0<a.stageHeight&&this.__resize(a.stageWidth,a.stageHeight)};k["openfl.display.Stage3D"]=ai;ai.__name__= +"openfl.display.Stage3D";ai.__super__=fb;ai.prototype=u(fb.prototype,{context3D:null,visible:null,__contextLost:null,__contextRequested:null,__height:null,__indexBuffer:null,__projectionTransform:null,__renderTransform:null,__stage:null,__vertexBuffer:null,__width:null,__x:null,__y:null,__canvas:null,__renderContext:null,__style:null,__webgl:null,requestContext3D:function(a,b){this.__contextLost?this.__contextRequested=!0:null!=this.context3D?(this.__contextRequested=!0,Oe.delay(q(this,this.__dispatchCreate), +1)):this.__contextRequested||(this.__contextRequested=!0,Oe.delay(q(this,this.__createContext),1))},requestContext3DMatchingProfiles:function(a){this.requestContext3D()},__createContext:function(){var a=this.__stage,b=a.__renderer;if("cairo"==b.__type||"canvas"==b.__type)this.__dispatchError();else if("opengl"==b.__type)this.context3D=new Sb(a,a.context3D.__contextState,this),this.__dispatchCreate();else if("dom"==b.__type)if(null==a.context3D){this.__canvas=window.document.createElement("canvas"); +this.__canvas.width=a.stageWidth;this.__canvas.height=a.stageHeight;var c=a.window.context.attributes,d=Object.prototype.hasOwnProperty.call(c,"background")&&null==c.background,e=Object.prototype.hasOwnProperty.call(c,"colorDepth")?c.colorDepth:32;c=Object.prototype.hasOwnProperty.call(c,"antialiasing")&&0<c.antialiasing;this.__webgl=zt.getContextWebGL(this.__canvas,{alpha:d||16<e,antialias:c,depth:!0,premultipliedAlpha:!0,stencil:!0,preserveDrawingBuffer:!1});null!=this.__webgl&&(null==r.context&& +(r.context=this.__webgl,r.type="webgl",r.version=1),a.context3D=new Sb(a),a.context3D.configureBackBuffer(a.window.__width,a.window.__height,0,!0,!0,!0),a.context3D.present(),b.element.appendChild(this.__canvas),this.__style=this.__canvas.style,this.__style.setProperty("position","absolute",null),this.__style.setProperty("top","0",null),this.__style.setProperty("left","0",null),this.__style.setProperty(b.__transformOriginProperty,"0 0 0",null),this.__style.setProperty("z-index","-1",null));null!= +a.context3D&&(this.context3D=new Sb(a,a.context3D.__contextState,this));this.__dispatchCreate()}else this.__dispatchError()},__dispatchError:function(){this.__contextRequested=!1;this.dispatchEvent(new Se("error",!1,!1,"Context3D not available"))},__dispatchCreate:function(){this.__contextRequested&&(this.__contextRequested=!1,this.dispatchEvent(new la("context3DCreate")))},__lostContext:function(){this.__contextLost=!0;null!=this.context3D&&(this.context3D.__dispose(),this.__contextRequested=!0)}, +__resize:function(a,b){if(a!=this.__width||b!=this.__height)null!=this.__canvas&&(this.__canvas.width=a,this.__canvas.height=b),this.__projectionTransform.copyRawDataFrom(ub.toFloatVector(null,null,null,[2/(0<a?a:1),0,0,0,0,-2/(0<b?b:1),0,0,0,0,-.001,0,-1,1,0,1])),this.__renderTransform.identity(),this.__renderTransform.appendTranslation(this.__x,this.__y,0),this.__renderTransform.append(this.__projectionTransform),this.__width=a,this.__height=b},__restoreContext:function(){this.__contextLost=!1; +this.__createContext()},get_x:function(){return this.__x},set_x:function(a){if(this.__x==a)return a;this.__x=a;this.__renderTransform.identity();this.__renderTransform.appendTranslation(this.__x,this.__y,0);this.__renderTransform.append(this.__projectionTransform);return a},get_y:function(){return this.__y},set_y:function(a){if(this.__y==a)return a;this.__y=a;this.__renderTransform.identity();this.__renderTransform.appendTranslation(this.__x,this.__y,0);this.__renderTransform.append(this.__projectionTransform); +return a},__class__:ai,__properties__:{set_y:"set_y",get_y:"get_y",set_x:"set_x",get_x:"get_x"}});var eg=function(a,b,c,d,e,f,h,l){null==l&&(l=0);null==h&&(h=0);null==f&&(f=0);null==e&&(e=1);null==d&&(d=1);null==c&&(c=0);null==b&&(b=0);null==a&&(a=0);this.__id=a;this.__matrix=new Aa;0!=b&&this.set_x(b);0!=c&&this.set_y(c);1!=d&&this.set_scaleX(d);1!=e&&this.set_scaleY(e);0!=f&&this.set_rotation(f);this.__dirty=!0;this.__length=0;this.__originX=h;this.__originY=l;this.__alpha=1;this.__blendMode=null; +this.__visible=!0};k["openfl.display.Tile"]=eg;eg.__name__="openfl.display.Tile";eg.prototype={data:null,parent:null,__alpha:null,__blendMode:null,__colorTransform:null,__dirty:null,__id:null,__length:null,__matrix:null,__originX:null,__originY:null,__rect:null,__rotation:null,__rotationCosine:null,__rotationSine:null,__scaleX:null,__scaleY:null,__shader:null,__tileset:null,__visible:null,clone:function(){var a=new eg(this.__id);a.__alpha=this.__alpha;a.__blendMode=this.__blendMode;a.__originX=this.__originX; +a.__originY=this.__originY;null!=this.__rect&&(a.__rect=this.__rect.clone());a.set_matrix(this.__matrix.clone());a.__shader=this.__shader;a.set_tileset(this.__tileset);null!=this.__colorTransform&&(a.__colorTransform=this.__colorTransform.__clone());return a},getBounds:function(a){var b=new fa;this.__findTileRect(b);var c=Aa.__pool.get();if(null!=a&&a!=this){c.copyFrom(this.__getWorldTransform());var d=Aa.__pool.get();d.copyFrom(a.__getWorldTransform());d.invert();c.concat(d);Aa.__pool.release(d)}else c.identity(); +this.__getBounds(b,c);Aa.__pool.release(c);return b},__getBounds:function(a,b){a.__transform(a,b)},hitTestTile:function(a){if(null!=a&&null!=a.parent&&null!=this.parent){var b=this.getBounds(this);a=a.getBounds(this);return b.intersects(a)}return!1},invalidate:function(){this.__setRenderDirty()},__findTileRect:function(a){if(null==this.get_tileset())if(null!=this.parent){var b=this.parent.__findTileset();null==b?a.setTo(0,0,0,0):(b=b.getRect(this.get_id()),null==b?a.setTo(0,0,0,0):a.copyFrom(b))}else a.setTo(0, +0,0,0);else a.copyFrom(this.get_tileset().getRect(this.get_id()));a.x=0;a.y=0},__findTileset:function(){return null!=this.get_tileset()?this.get_tileset():this.parent instanceof fg?this.parent.get_tileset():null==this.parent?null:this.parent.__findTileset()},__getWorldTransform:function(){var a=this.get_matrix().clone();null!=this.parent&&a.concat(this.parent.__getWorldTransform());return a},__setRenderDirty:function(){this.__dirty||(this.__dirty=!0,null!=this.parent&&this.parent.__setRenderDirty())}, +get_alpha:function(){return this.__alpha},set_alpha:function(a){a!=this.__alpha&&(this.__alpha=a,this.__setRenderDirty());return a},get_blendMode:function(){return this.__blendMode},set_blendMode:function(a){a!=this.__blendMode&&(this.__blendMode=a,this.__setRenderDirty());return a},get_colorTransform:function(){return this.__colorTransform},set_colorTransform:function(a){a!=this.__colorTransform&&(this.__colorTransform=a,this.__setRenderDirty());return a},get_height:function(){var a=fa.__pool.get(); +this.__findTileRect(a);this.__getBounds(a,this.get_matrix());var b=a.height;fa.__pool.release(a);return b},set_height:function(a){var b=fa.__pool.get();this.__findTileRect(b);0!=b.height&&this.set_scaleY(a/b.height);fa.__pool.release(b);return a},get_id:function(){return this.__id},set_id:function(a){a!=this.__id&&(this.__id=a,this.__setRenderDirty());return a},get_matrix:function(){return this.__matrix},set_matrix:function(a){a!=this.__matrix&&(this.__scaleY=this.__scaleX=this.__rotation=null,this.__matrix= +a,this.__setRenderDirty());return a},get_originX:function(){return this.__originX},set_originX:function(a){a!=this.__originX&&(this.__originX=a,this.__setRenderDirty());return a},get_originY:function(){return this.__originY},set_originY:function(a){a!=this.__originY&&(this.__originY=a,this.__setRenderDirty());return a},get_rect:function(){return this.__rect},set_rect:function(a){a!=this.__rect&&(this.__rect=a,this.__setRenderDirty());return a},get_rotation:function(){if(null==this.__rotation)if(0== +this.__matrix.b&&0==this.__matrix.c)this.__rotationSine=this.__rotation=0,this.__rotationCosine=1;else{var a=Math.atan2(this.__matrix.d,this.__matrix.c)-Math.PI/2;this.__rotation=180/Math.PI*a;this.__rotationSine=Math.sin(a);this.__rotationCosine=Math.cos(a)}return this.__rotation},set_rotation:function(a){if(a!=this.__rotation){this.__rotation=a;var b=Math.PI/180*a;this.__rotationSine=Math.sin(b);this.__rotationCosine=Math.cos(b);b=this.get_scaleX();var c=this.get_scaleY();this.__matrix.a=this.__rotationCosine* +b;this.__matrix.b=this.__rotationSine*b;this.__matrix.c=-this.__rotationSine*c;this.__matrix.d=this.__rotationCosine*c;this.__setRenderDirty()}return a},get_scaleX:function(){null==this.__scaleX&&(0==this.get_matrix().b?this.__scaleX=this.__matrix.a:this.__scaleX=Math.sqrt(this.__matrix.a*this.__matrix.a+this.__matrix.b*this.__matrix.b));return this.__scaleX},set_scaleX:function(a){if(a!=this.__scaleX){this.__scaleX=a;if(0==this.__matrix.b)this.__matrix.a=a;else{this.get_rotation();var b=this.__rotationSine* +a;this.__matrix.a=this.__rotationCosine*a;this.__matrix.b=b}this.__setRenderDirty()}return a},get_scaleY:function(){null==this.__scaleY&&(this.__scaleY=0==this.__matrix.c?this.get_matrix().d:Math.sqrt(this.__matrix.c*this.__matrix.c+this.__matrix.d*this.__matrix.d));return this.__scaleY},set_scaleY:function(a){if(a!=this.__scaleY){this.__scaleY=a;if(0==this.__matrix.c)this.__matrix.d=a;else{this.get_rotation();var b=this.__rotationCosine*a;this.__matrix.c=-this.__rotationSine*a;this.__matrix.d=b}this.__setRenderDirty()}return a}, +get_shader:function(){return this.__shader},set_shader:function(a){a!=this.__shader&&(this.__shader=a,this.__setRenderDirty());return a},get_tileset:function(){return this.__tileset},set_tileset:function(a){a!=this.__tileset&&(this.__tileset=a,this.__setRenderDirty());return a},get_visible:function(){return this.__visible},set_visible:function(a){a!=this.__visible&&(this.__visible=a,this.__setRenderDirty());return a},get_width:function(){var a=fa.__pool.get();this.__findTileRect(a);this.__getBounds(a, +this.get_matrix());var b=a.width;fa.__pool.release(a);return b},set_width:function(a){var b=fa.__pool.get();this.__findTileRect(b);0!=b.width&&this.set_scaleX(a/b.width);fa.__pool.release(b);return a},get_x:function(){return this.__matrix.tx},set_x:function(a){a!=this.__matrix.tx&&(this.__matrix.tx=a,this.__setRenderDirty());return a},get_y:function(){return this.__matrix.ty},set_y:function(a){a!=this.__matrix.ty&&(this.__matrix.ty=a,this.__setRenderDirty());return a},__class__:eg,__properties__:{set_y:"set_y", +get_y:"get_y",set_x:"set_x",get_x:"get_x",set_width:"set_width",get_width:"get_width",set_visible:"set_visible",get_visible:"get_visible",set_tileset:"set_tileset",get_tileset:"get_tileset",set_shader:"set_shader",get_shader:"get_shader",set_scaleY:"set_scaleY",get_scaleY:"get_scaleY",set_scaleX:"set_scaleX",get_scaleX:"get_scaleX",set_rotation:"set_rotation",get_rotation:"get_rotation",set_rect:"set_rect",get_rect:"get_rect",set_originY:"set_originY",get_originY:"get_originY",set_originX:"set_originX", +get_originX:"get_originX",set_matrix:"set_matrix",get_matrix:"get_matrix",set_id:"set_id",get_id:"get_id",set_height:"set_height",get_height:"get_height",set_colorTransform:"set_colorTransform",get_colorTransform:"get_colorTransform",set_blendMode:"set_blendMode",get_blendMode:"get_blendMode",set_alpha:"set_alpha",get_alpha:"get_alpha"}};var Ui=function(a,b,c,d,e,f,h){null==h&&(h=0);null==f&&(f=0);null==e&&(e=0);null==d&&(d=1);null==c&&(c=1);null==b&&(b=0);null==a&&(a=0);eg.call(this,-1,a,b,c,d,e, +f,h);this.__tiles=[];this.__length=0};k["openfl.display.TileContainer"]=Ui;Ui.__name__="openfl.display.TileContainer";Ui.__interfaces__=[Ci];Ui.__super__=eg;Ui.prototype=u(eg.prototype,{__tiles:null,addTile:function(a){if(null==a)return null;a.parent==this&&(F.remove(this.__tiles,a),this.__length--);this.__tiles[this.get_numTiles()]=a;a.parent=this;this.__length++;this.__setRenderDirty();return a},addTileAt:function(a,b){if(null==a)return null;a.parent==this&&(F.remove(this.__tiles,a),this.__length--); +this.__tiles.splice(b,0,a);a.parent=this;this.__length++;this.__setRenderDirty();return a},addTiles:function(a){for(var b=0;b<a.length;){var c=a[b];++b;this.addTile(c)}return a},clone:function(){for(var a=new Ui,b=0,c=this.__tiles;b<c.length;){var d=c[b];++b;a.addTile(d.clone())}return a},contains:function(a){return-1<this.__tiles.indexOf(a)},getBounds:function(a){for(var b=new fa,c,d=0,e=this.__tiles;d<e.length;)c=e[d],++d,c=c.getBounds(a),b.__expand(c.x,c.y,c.width,c.height);return b},getTileAt:function(a){return 0<= +a&&a<this.get_numTiles()?this.__tiles[a]:null},getTileIndex:function(a){for(var b=0,c=this.__tiles.length;b<c;){var d=b++;if(this.__tiles[d]==a)return d}return-1},removeTile:function(a){null!=a&&a.parent==this&&(a.parent=null,F.remove(this.__tiles,a),this.__length--,this.__setRenderDirty());return a},removeTileAt:function(a){return 0<=a&&a<this.get_numTiles()?this.removeTile(this.__tiles[a]):null},removeTiles:function(a,b){null==b&&(b=2147483647);null==a&&(a=0);0>a&&(a=0);b>this.__tiles.length-1&& +(b=this.__tiles.length-1);a=this.__tiles.splice(a,b-a+1);for(b=0;b<a.length;){var c=a[b];++b;c.parent=null}this.__length=this.__tiles.length;this.__setRenderDirty()},setTileIndex:function(a,b){0<=b&&b<=this.get_numTiles()&&a.parent==this&&(F.remove(this.__tiles,a),this.__tiles.splice(b,0,a),this.__setRenderDirty())},sortTiles:function(a){this.__tiles.sort(a);this.__setRenderDirty()},swapTiles:function(a,b){if(a.parent==this&&b.parent==this){var c=this.__tiles.indexOf(a),d=this.__tiles.indexOf(b); +this.__tiles[c]=b;this.__tiles[d]=a;this.__setRenderDirty()}},swapTilesAt:function(a,b){var c=this.__tiles[a];this.__tiles[a]=this.__tiles[b];this.__tiles[b]=c;this.__setRenderDirty()},get_numTiles:function(){return this.__length},get_height:function(){for(var a=fa.__pool.get(),b,c=0,d=this.__tiles;c<d.length;)b=d[c],++c,b=b.getBounds(this),a.__expand(b.x,b.y,b.width,b.height);this.__getBounds(a,this.get_matrix());c=a.height;fa.__pool.release(a);return c},set_height:function(a){for(var b=fa.__pool.get(), +c,d=0,e=this.__tiles;d<e.length;)c=e[d],++d,c=c.getBounds(this),b.__expand(c.x,c.y,c.width,c.height);0!=b.height&&this.set_scaleY(a/b.height);fa.__pool.release(b);return a},get_width:function(){for(var a=fa.__pool.get(),b,c=0,d=this.__tiles;c<d.length;)b=d[c],++c,b=b.getBounds(this),a.__expand(b.x,b.y,b.width,b.height);this.__getBounds(a,this.get_matrix());c=a.width;fa.__pool.release(a);return c},set_width:function(a){for(var b=fa.__pool.get(),c,d=0,e=this.__tiles;d<e.length;)c=e[d],++d,c=c.getBounds(this), +b.__expand(c.x,c.y,c.width,c.height);0!=b.width&&this.set_scaleX(a/b.width);fa.__pool.release(b);return a},__class__:Ui,__properties__:u(eg.prototype.__properties__,{get_numTiles:"get_numTiles"})});var fg=function(a,b,c,d){null==d&&(d=!0);A.call(this);this.__drawableType=9;this.__tileset=c;this.smoothing=d;this.tileColorTransformEnabled=this.tileBlendModeEnabled=this.tileAlphaEnabled=!0;this.__group=new Ui;this.__group.set_tileset(c);this.__width=a;this.__height=b};k["openfl.display.Tilemap"]=fg; +fg.__name__="openfl.display.Tilemap";fg.__interfaces__=[Ci];fg.__super__=A;fg.prototype=u(A.prototype,{tileAlphaEnabled:null,tileBlendModeEnabled:null,tileColorTransformEnabled:null,smoothing:null,__group:null,__tileset:null,__buffer:null,__bufferDirty:null,__height:null,__width:null,addTile:function(a){return this.__group.addTile(a)},addTileAt:function(a,b){return this.__group.addTileAt(a,b)},addTiles:function(a){return this.__group.addTiles(a)},contains:function(a){return this.__group.contains(a)}, +getTileAt:function(a){return this.__group.getTileAt(a)},getTileIndex:function(a){return this.__group.getTileIndex(a)},getTiles:function(){return this.__group.clone()},removeTile:function(a){return this.__group.removeTile(a)},removeTileAt:function(a){return this.__group.removeTileAt(a)},removeTiles:function(a,b){null==b&&(b=2147483647);null==a&&(a=0);this.__group.removeTiles(a,b)},setTileIndex:function(a,b){this.__group.setTileIndex(a,b)},setTiles:function(a){for(var b=0,c=this.__group.__tiles;b<c.length;){var d= +c[b];++b;this.removeTile(d)}b=0;for(c=a.__tiles;b<c.length;)d=c[b],++b,this.addTile(d)},sortTiles:function(a){this.__group.sortTiles(a)},swapTiles:function(a,b){this.__group.swapTiles(a,b)},swapTilesAt:function(a,b){this.__group.swapTilesAt(a,b)},__enterFrame:function(a){this.__group.__dirty&&!this.__renderDirty&&(this.__renderDirty=!0,this.__setParentRenderDirty())},__getBounds:function(a,b){var c=fa.__pool.get();c.setTo(0,0,this.__width,this.__height);c.__transform(c,b);a.__expand(c.x,c.y,c.width, +c.height);fa.__pool.release(c)},__hitTest:function(a,b,c,d,e,f){if(!f.get_visible()||this.__isMask||null!=this.get_mask()&&!this.get_mask().__hitTestMask(a,b))return!1;this.__getRenderTransform();var g=this.__renderTransform,l=g.a*g.d-g.b*g.c;c=0==l?-g.tx:1/l*(g.c*(g.ty-b)+g.d*(a-g.tx));g=this.__renderTransform;l=g.a*g.d-g.b*g.c;a=0==l?-g.ty:1/l*(g.a*(b-g.ty)+g.b*(g.tx-a));return 0<c&&0<a&&c<=this.__width&&a<=this.__height?(null==d||e||d.push(f),!0):!1},__renderFlash:function(){},get_height:function(){return this.__height* +Math.abs(this.get_scaleY())},set_height:function(a){this.__height=a|0;return this.__height*Math.abs(this.get_scaleY())},get_numTiles:function(){return this.__group.__length},get_tileset:function(){return this.__tileset},set_tileset:function(a){a!=this.__tileset&&(this.__tileset=a,this.__group.set_tileset(a),this.__group.__dirty=!0,this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty()));return a},get_width:function(){return this.__width*Math.abs(this.__scaleX)},set_width:function(a){this.__width= +a|0;return this.__width*Math.abs(this.__scaleX)},__class__:fg,__properties__:u(A.prototype.__properties__,{set_tileset:"set_tileset",get_tileset:"get_tileset",get_numTiles:"get_numTiles"})});var xi=function(a,b){this.__bitmapData=a;this.rectData=ub.toFloatVector(null);this.__data=[];if(null!=b)for(a=0;a<b.length;){var c=b[a];++a;this.addRect(c)}};k["openfl.display.Tileset"]=xi;xi.__name__="openfl.display.Tileset";xi.prototype={rectData:null,__bitmapData:null,__data:null,addRect:function(a){if(null== +a)return-1;this.rectData.push(a.x);this.rectData.push(a.y);this.rectData.push(a.width);this.rectData.push(a.height);a=new Zm(a);a.__update(this.__bitmapData);this.__data.push(a);return this.__data.length-1},clone:function(){for(var a=new xi(this.__bitmapData,null),b=fa.__pool.get(),c=0,d=this.__data;c<d.length;){var e=d[c];++c;b.setTo(e.x,e.y,e.width,e.height);a.addRect(b)}fa.__pool.release(b);return a},hasRect:function(a){for(var b=0,c=this.__data;b<c.length;){var d=c[b];++b;if(a.x==d.x&&a.y==d.y&& +a.width==d.width&&a.height==d.height)return!0}return!1},getRect:function(a){return a<this.__data.length&&0<=a?new fa(this.__data[a].x,this.__data[a].y,this.__data[a].width,this.__data[a].height):null},getRectID:function(a){for(var b,c=0,d=this.__data.length;c<d;){var e=c++;b=this.__data[e];if(a.x==b.x&&a.y==b.y&&a.width==b.width&&a.height==b.height)return e}return null},get_bitmapData:function(){return this.__bitmapData},set_bitmapData:function(a){this.__bitmapData=a;for(var b=0,c=this.__data;b<c.length;){var d= +c[b];++b;d.__update(this.__bitmapData)}return a},get_numRects:function(){return this.__data.length},__class__:xi,__properties__:{get_numRects:"get_numRects",set_bitmapData:"set_bitmapData",get_bitmapData:"get_bitmapData"}};var Zm=function(a){null!=a&&(this.x=a.x|0,this.y=a.y|0,this.width=a.width|0,this.height=a.height|0)};k["openfl.display._Tileset.TileData"]=Zm;Zm.__name__="openfl.display._Tileset.TileData";Zm.prototype={height:null,width:null,x:null,y:null,__bitmapData:null,__uvHeight:null,__uvWidth:null, +__uvX:null,__uvY:null,__update:function(a){if(null!=a){var b=a.width;a=a.height;this.__uvX=this.x/b;this.__uvY=this.y/a;this.__uvWidth=(this.x+this.width)/b;this.__uvHeight=(this.y+this.height)/a}},__class__:Zm};var Xt=function(){this.__totalFrames=this.__framesLoaded=1;this.__currentLabels=[];this.__currentFrame=1;this.__lastFrameUpdate=this.__lastFrameScriptEval=-1};k["openfl.display.Timeline"]=Xt;Xt.__name__="openfl.display.Timeline";Xt.prototype={frameRate:null,scenes:null,scripts:null,__currentFrame:null, +__currentFrameLabel:null,__currentLabel:null,__currentLabels:null,__currentScene:null,__frameScripts:null,__framesLoaded:null,__frameTime:null,__isPlaying:null,__lastFrameScriptEval:null,__lastFrameUpdate:null,__scope:null,__timeElapsed:null,__totalFrames:null,attachMovieClip:function(a){},enterFrame:function(a){},initializeSprite:function(a){},__addFrameScript:function(a,b){0>a||(a+=1,null!=b?(null==this.__frameScripts&&(this.__frameScripts=new Sa),this.__frameScripts.h[a]=function(a){b()}):null!= +this.__frameScripts&&this.__frameScripts.remove(a))},__attachMovieClip:function(a){this.__scope=a;this.__framesLoaded=this.__totalFrames=0;if(null!=this.scenes&&0<this.scenes.length){for(var b=0,c=this.scenes;b<c.length;){var d=c[b];++b;this.__totalFrames+=d.numFrames;this.__framesLoaded+=d.numFrames;null!=d.labels&&(this.__currentLabels=this.__currentLabels.concat(d.labels))}this.__currentScene=this.scenes[0]}if(null!=this.scripts&&0<this.scripts.length)for(this.__frameScripts=new Sa,b=0,c=this.scripts;b< +c.length;)d=c[b],++b,this.__frameScripts.h.hasOwnProperty(d.frame)?this.__frameScripts.h[d.frame]=function(a,b){return function(c){b[0](c);a[0](c)}}([d.script],[this.__frameScripts.h[d.frame]]):this.__frameScripts.h[d.frame]=d.script;this.attachMovieClip(a)},__enterFrame:function(a){if(this.__isPlaying){a=this.__getNextFrame(a);if(this.__lastFrameScriptEval==a)return;if(null!=this.__frameScripts){if(a<this.__currentFrame){if(!this.__evaluateFrameScripts(this.__totalFrames))return;this.__currentFrame= +1}if(!this.__evaluateFrameScripts(a))return}else this.__currentFrame=a}this.__updateSymbol(this.__currentFrame)},__evaluateFrameScripts:function(a){if(null==this.__frameScripts)return!0;var b=this.__currentFrame;for(a+=1;b<a;){var c=b++;if(c!=this.__lastFrameScriptEval&&(this.__currentFrame=this.__lastFrameScriptEval=c,this.__frameScripts.h.hasOwnProperty(c)&&(this.__updateSymbol(c),(0,this.__frameScripts.h[c])(this.__scope),this.__currentFrame!=c)||!this.__isPlaying))return!1}return!0},__getNextFrame:function(a){null!= +this.frameRate?(this.__timeElapsed+=a,a=this.__currentFrame+Math.floor(this.__timeElapsed/this.__frameTime),1>a&&(a=1),a>this.__totalFrames&&(a=Math.floor((a-1)%this.__totalFrames)+1),this.__timeElapsed%=this.__frameTime):(a=this.__currentFrame+1,a>this.__totalFrames&&(a=1));return a},__goto:function(a){1>a?a=1:a>this.__totalFrames&&(a=this.__totalFrames);this.__lastFrameScriptEval=-1;this.__currentFrame=a;this.__updateSymbol(this.__currentFrame);this.__evaluateFrameScripts(this.__currentFrame)}, +__gotoAndPlay:function(a,b){this.__play();this.__goto(this.__resolveFrameReference(a))},__gotoAndStop:function(a,b){this.__stop();this.__goto(this.__resolveFrameReference(a))},__nextFrame:function(){this.__stop();this.__goto(this.__currentFrame+1)},__nextScene:function(){},__play:function(){this.__isPlaying||2>this.__totalFrames||(this.__isPlaying=!0,null!=this.frameRate&&(this.__frameTime=1E3/this.frameRate|0,this.__timeElapsed=0))},__prevFrame:function(){this.__stop();this.__goto(this.__currentFrame- +1)},__prevScene:function(){},__stop:function(){this.__isPlaying=!1},__resolveFrameReference:function(a){if("number"==typeof a&&(a|0)===a)return a;if("string"==typeof a){for(var b=0,c=this.__currentLabels;b<c.length;){var d=c[b];++b;if(d.name==a)return d.frame}throw new ni("Error #2109: Frame label "+a+" not found in scene.");}throw R.thrown("Invalid type for frame "+a.__name__);},__updateFrameLabel:function(){this.__currentFrameLabel=this.__currentLabel=null;for(var a=0,b=this.__currentLabels;a<b.length;){var c= +b[a];++a;if(c.frame<this.__currentFrame)this.__currentLabel=c.name;else if(c.frame==this.__currentFrame)this.__currentFrameLabel=this.__currentLabel=c.name;else break}},__updateSymbol:function(a){this.__currentFrame!=this.__lastFrameUpdate&&(this.__updateFrameLabel(),this.enterFrame(a),this.__lastFrameUpdate=this.__currentFrame)},__class__:Xt};var Xj=function(a,b){Ki.call(this,a,b);this.stage=new Si(this,Object.prototype.hasOwnProperty.call(b.context,"background")?b.context.background:16777215);if(Object.prototype.hasOwnProperty.call(b, +"parameters"))try{this.stage.get_loaderInfo().parameters=b.parameters}catch(c){sa.lastError=c}this.stage.__setLogicalSize(b.width,b.height);Object.prototype.hasOwnProperty.call(b,"resizable")&&!b.resizable&&this.stage.set_scaleMode(3);a.addModule(this.stage)};k["openfl.display.Window"]=Xj;Xj.__name__="openfl.display.Window";Xj.__super__=Ki;Xj.prototype=u(Ki.prototype,{__class__:Xj});var Vi=function(a,b,c,d,e,f,h){null==h&&(h=.05);null==f&&(f=!1);this.stitch=f;this.stitch_threshold=h;this.octaves= +b;this.channels=c;this.grayscale=d;this.calculateOctaves(e)};k["openfl.display._internal.AbstractNoise"]=Vi;Vi.__name__="openfl.display._internal.AbstractNoise";Vi.prototype={octaves:null,stitch:null,stitch_threshold:null,channels:null,grayscale:null,octaves_frequencies:null,octaves_persistences:null,persistence_max:null,fill:function(a,b,c,d){},stitching:function(a,b,c,d,e,f,h,l){var g=b>>16&255,m=b>>8&255;b&=255;if(h-e<c){var x=a.getPixel32(h-c,d),p=x>>8&255,k=x&255;e=(h-c)/e;g=this.mixI(x>>16& +255,g,e);m=this.mixI(p,m,e);b=this.mixI(k,b,e)}l-f<d&&(x=a.getPixel32(c,l-d),p=x>>8&255,k=x&255,e=(l-d)/f,g=this.mixI(x>>16&255,g,e),m=this.mixI(p,m,e),b=this.mixI(k,b,e));return-16777216|g<<16|m<<8|b},color:function(a,b,c){var d=0,e=0,f=0;null!=a&&(d=this.noiseToColor(a));null!=b&&(e=this.noiseToColor(b));null!=c&&(f=this.noiseToColor(c));return-16777216|d<<16|e<<8|f},noiseToColor:function(a){return 128*(a*this.persistence_max+1)|0},fade:function(a){return a*a*a*(a*(6*a-15)+10)},mixI:function(a, +b,c){return(1-c)*a+c*b|0},mix:function(a,b,c){return(1-c)*a+c*b},fastfloor:function(a){return 0<a?a|0:a-1|0},dot2d:function(a,b,c){return a[0]*b+a[1]*c},dot:function(a,b,c,d){return a[0]*b+a[1]*c+a[2]*d},calculateOctaves:function(a){this.octaves_frequencies=[];this.octaves_persistences=[];for(var b=this.persistence_max=0,c=this.octaves;b<c;){var d=b++;var e=Math.pow(2,d);d=Math.pow(a,d);this.persistence_max+=d;this.octaves_frequencies.push(e);this.octaves_persistences.push(d)}this.persistence_max= +1/this.persistence_max},__class__:Vi};var $m=function(){};k["openfl.display._internal.CairoBitmap"]=$m;$m.__name__="openfl.display._internal.CairoBitmap";$m.render=function(a,b){if(a.__renderable){var c=b.__getAlpha(a.__worldAlpha);if(0<c&&null!=a.__bitmapData&&a.__bitmapData.__isValid){var d=b.cairo;b.__setBlendMode(a.__worldBlendMode);b.__pushMaskObject(a);b.applyMatrix(a.__renderTransform,d);var e=a.__bitmapData.getSurface();null!=e&&(e=Oo.createForSurface(e),Oo.set_filter(e,b.__allowSmoothing&& +a.smoothing?1:3),d.set_source(e),1==c?d.paint():d.paintWithAlpha(c));b.__popMaskObject(a);b.__setBlendMode(10)}}};$m.renderDrawable=function(a,b){};$m.renderDrawableMask=function(a,b){b.cairo.rectangle(0,0,a.get_width(),a.get_height())};var Yt=function(){};k["openfl.display._internal.CairoBitmapData"]=Yt;Yt.__name__="openfl.display._internal.CairoBitmapData";Yt.renderDrawable=function(a,b){};Yt.renderDrawableMask=function(a,b){};var an=function(){};k["openfl.display._internal.CairoDisplayObject"]= +an;an.__name__="openfl.display._internal.CairoDisplayObject";an.render=function(a,b){};an.renderDrawable=function(a,b){};an.renderDrawableMask=function(a,b){};var Zt=function(){};k["openfl.display._internal.CairoDisplayObjectContainer"]=Zt;Zt.__name__="openfl.display._internal.CairoDisplayObjectContainer";Zt.renderDrawable=function(a,b){};Zt.renderDrawableMask=function(a,b){};var bn=function(){};k["openfl.display._internal.CairoGraphics"]=bn;bn.__name__="openfl.display._internal.CairoGraphics";bn.hitTest= +function(a,b,c){return!1};bn.render=function(a,b){};bn.renderMask=function(a,b){};var cn=function(){};k["openfl.display._internal.CairoShape"]=cn;cn.__name__="openfl.display._internal.CairoShape";cn.render=function(a,b){};cn.renderDrawable=function(a,b){};cn.renderDrawableMask=function(a,b){};var $t=function(){};k["openfl.display._internal.CairoSimpleButton"]=$t;$t.__name__="openfl.display._internal.CairoSimpleButton";$t.renderDrawable=function(a,b){!a.__renderable||0>=a.__worldAlpha||null==a.__currentState|| +(b.__pushMaskObject(a),b.__renderDrawable(a.__currentState),b.__popMaskObject(a),b.__renderEvent(a))};$t.renderDrawableMask=function(a,b){b.__renderDrawableMask(a.__currentState)};var dn=function(){};k["openfl.display._internal.CairoTextField"]=dn;dn.__name__="openfl.display._internal.CairoTextField";dn.render=function(a,b,c){};dn.renderDrawable=function(a,b){};dn.renderDrawableMask=function(a,b){};var di=function(){};k["openfl.display._internal.CairoTilemap"]=di;di.__name__="openfl.display._internal.CairoTilemap"; +di.render=function(a,b){if(a.__renderable&&0!=a.__group.__tiles.length){var c=b.__getAlpha(a.__worldAlpha);if(!(0>=c)){b.__setBlendMode(a.__worldBlendMode);b.__pushMaskObject(a);var d=fa.__pool.get();d.setTo(0,0,a.__width,a.__height);b.__pushMaskRect(d,a.__renderTransform);di.renderTileContainer(a.__group,b,a.__renderTransform,a.__tileset,b.__allowSmoothing&&a.smoothing,a.tileAlphaEnabled,c,a.tileBlendModeEnabled,a.__worldBlendMode,null,null,null,d,new Th);b.__popMaskRect();b.__popMaskObject(a);fa.__pool.release(d)}}}; +di.renderTileContainer=function(a,b,c,d,e,f,h,l,t,m,k,p,n,r){var g=b.cairo,x=Aa.__pool.get();a=a.__tiles;for(var q,v,u,w,B=null,E=0;E<a.length;)if(q=a[E],++E,x.setTo(1,0,0,1,-q.get_originX(),-q.get_originY()),x.concat(q.get_matrix()),x.concat(c),v=null!=q.get_tileset()?q.get_tileset():d,u=q.get_alpha()*h,(w=q.get_visible())&&!(0>=u))if(f||(u=1),l&&(B=null!=q.__blendMode?q.__blendMode:t),0<q.__length)di.renderTileContainer(q,b,x,v,e,f,u,l,B,m,k,p,n,r);else if(null!=v){w=q.get_id();if(-1==w){if(q=q.__rect, +null==q||0>=q.width||0>=q.height)continue}else{q=v.__data[w];if(null==q)continue;n.setTo(q.x,q.y,q.width,q.height);q=n}v=v.__bitmapData;null!=v&&(v!=m&&(k=v.getSurface(),p=Oo.createForSurface(k),Oo.set_filter(p,e?1:3),g.set_source(p),m=v),l&&b.__setBlendMode(B),b.applyMatrix(x,g),r.tx=q.x,r.ty=q.y,Oo.set_matrix(p,r),g.set_source(p),g.save(),g.newPath(),g.rectangle(0,0,q.width,q.height),g.clip(),1==u?g.paint():g.paintWithAlpha(u),g.restore())}Aa.__pool.release(x)};di.renderDrawable=function(a,b){}; +di.renderDrawableMask=function(a,b){};var Ni=function(){};k["openfl.display._internal.CanvasBitmap"]=Ni;Ni.__name__="openfl.display._internal.CanvasBitmap";Ni.render=function(a,b){if(a.__renderable){var c=b.__getAlpha(a.__worldAlpha);if(0<c&&null!=a.__bitmapData&&a.__bitmapData.__isValid&&a.__bitmapData.readable){var d=b.context;b.__setBlendMode(a.__worldBlendMode);b.__pushMaskObject(a,!1);za.convertToCanvas(a.__bitmapData.image);d.globalAlpha=c;c=a.__scrollRect;b.setTransform(a.__renderTransform, +d);b.__allowSmoothing&&a.smoothing||(d.imageSmoothingEnabled=!1);null==c?d.drawImage(a.__bitmapData.image.get_src(),0,0,a.__bitmapData.image.width,a.__bitmapData.image.height):d.drawImage(a.__bitmapData.image.get_src(),c.x,c.y,c.width,c.height,c.x,c.y,c.width,c.height);b.__allowSmoothing&&a.smoothing||(d.imageSmoothingEnabled=!0);b.__popMaskObject(a,!1)}}};Ni.renderDrawable=function(a,b){b.__updateCacheBitmap(a,!1);null!=a.__bitmapData&&null!=a.__bitmapData.image&&(a.__imageVersion=a.__bitmapData.image.version); +if(null==a.__cacheBitmap||a.__isCacheBitmapRender){if(!(null==a.opaqueBackground&&null==a.__graphics||!a.__renderable||(u=b.__getAlpha(a.__worldAlpha),0>=u))){if(null!=a.opaqueBackground&&!a.__isCacheBitmapRender&&0<a.get_width()&&0<a.get_height()){b.__setBlendMode(a.__worldBlendMode);b.__pushMaskObject(a);w=b.context;b.setTransform(a.__renderTransform,w);var c=a.opaqueBackground;w.fillStyle="rgb("+(c>>>16&255)+","+(c>>>8&255)+","+(c&255)+")";w.fillRect(0,0,a.get_width(),a.get_height());b.__popMaskObject(a)}if(null!= +a.__graphics&&a.__renderable&&(u=b.__getAlpha(a.__worldAlpha),!(0>=u))){var d=a.__graphics;if(null!=d){D.render(d,b);var e=d.__width,f=d.__height;c=d.__canvas;if(null!=c&&d.__visible&&1<=e&&1<=f){var h=d.__worldTransform;w=b.context;B=a.__scrollRect;var l=a.__worldScale9Grid;if(null==B||0<B.width&&0<B.height){b.__setBlendMode(a.__worldBlendMode);b.__pushMaskObject(a);w.globalAlpha=u;if(null!=l&&0==h.b&&0==h.c){var t=b.__pixelRatio;u=Aa.__pool.get();u.translate(h.tx,h.ty);b.setTransform(u,w);Aa.__pool.release(u); +u=d.__bounds;var m=d.__renderTransform.a/d.__bitmapScale,k=d.__renderTransform.d/d.__bitmapScale,p=m*h.a,n=k*h.d;h=Math.max(1,Math.round(l.x*m));d=Math.round(l.y*k);B=Math.max(1,Math.round((u.get_right()-l.get_right())*m));var r=Math.round((u.get_bottom()-l.get_bottom())*k);m=Math.round(l.width*m);l=Math.round(l.height*k);k=Math.round(h/t);var q=Math.round(d/t),v=Math.round(B/t);t=Math.round(r/t);p=u.width*p-k-v;u=u.height*n-q-t;b.applySmoothing(w,!1);0!=m&&0!=l?(w.drawImage(c,0,0,h,d,0,0,k,q),w.drawImage(c, +h,0,m,d,k,0,p,q),w.drawImage(c,h+m,0,B,d,k+p,0,v,q),w.drawImage(c,0,d,h,l,0,q,k,u),w.drawImage(c,h,d,m,l,k,q,p,u),w.drawImage(c,h+m,d,B,l,k+p,q,v,u),w.drawImage(c,0,d+l,h,r,0,q+u,k,t),w.drawImage(c,h,d+l,m,r,k,q+u,p,t),w.drawImage(c,h+m,d+l,B,r,k+p,q+u,v,t)):0==m&&0!=l?(f=k+p+v,w.drawImage(c,0,0,e,d,0,0,f,q),w.drawImage(c,0,d,e,l,0,q,f,u),w.drawImage(c,0,d+l,e,r,0,q+u,f,t)):0==l&&0!=m&&(e=q+u+t,w.drawImage(c,0,0,h,f,0,0,k,e),w.drawImage(c,h,0,m,f,k,0,p,e),w.drawImage(c,h+m,0,B,f,k+p,0,v,e))}else b.setTransform(h, +w),w.drawImage(c,0,0,e,f);b.__popMaskObject(a)}}}}}a.__renderable&&(u=b.__getAlpha(a.__worldAlpha),0<u&&null!=a.__bitmapData&&a.__bitmapData.__isValid&&a.__bitmapData.readable&&(w=b.context,b.__setBlendMode(a.__worldBlendMode),b.__pushMaskObject(a,!1),za.convertToCanvas(a.__bitmapData.image),w.globalAlpha=u,B=a.__scrollRect,b.setTransform(a.__renderTransform,w),b.__allowSmoothing&&a.smoothing||(w.imageSmoothingEnabled=!1),null==B?w.drawImage(a.__bitmapData.image.get_src(),0,0,a.__bitmapData.image.width, +a.__bitmapData.image.height):w.drawImage(a.__bitmapData.image.get_src(),B.x,B.y,B.width,B.height,B.x,B.y,B.width,B.height),b.__allowSmoothing&&a.smoothing||(w.imageSmoothingEnabled=!0),b.__popMaskObject(a,!1)))}else if(c=a.__cacheBitmap,c.__renderable){var u=b.__getAlpha(c.__worldAlpha);if(0<u&&null!=c.__bitmapData&&c.__bitmapData.__isValid&&c.__bitmapData.readable){var w=b.context;b.__setBlendMode(c.__worldBlendMode);b.__pushMaskObject(c,!1);za.convertToCanvas(c.__bitmapData.image);w.globalAlpha= +u;var B=c.__scrollRect;b.setTransform(c.__renderTransform,w);b.__allowSmoothing&&c.smoothing||(w.imageSmoothingEnabled=!1);null==B?w.drawImage(c.__bitmapData.image.get_src(),0,0,c.__bitmapData.image.width,c.__bitmapData.image.height):w.drawImage(c.__bitmapData.image.get_src(),B.x,B.y,B.width,B.height,B.x,B.y,B.width,B.height);b.__allowSmoothing&&c.smoothing||(w.imageSmoothingEnabled=!0);b.__popMaskObject(c,!1)}}b.__renderEvent(a)};Ni.renderDrawableMask=function(a,b){b.context.rect(0,0,a.get_width(), +a.get_height())};var Fm=function(){};k["openfl.display._internal.CanvasBitmapData"]=Fm;Fm.__name__="openfl.display._internal.CanvasBitmapData";Fm.renderDrawable=function(a,b){if(a.readable){var c=a.image;c.type==se.DATA&&za.convertToCanvas(c);var d=b.context;d.globalAlpha=1;b.setTransform(a.__renderTransform,d);d.drawImage(c.get_src(),0,0,c.width,c.height)}};Fm.renderDrawableMask=function(a,b){};var zh=function(){};k["openfl.display._internal.CanvasDisplayObject"]=zh;zh.__name__="openfl.display._internal.CanvasDisplayObject"; +zh.render=function(a,b){if((null!=a.opaqueBackground||null!=a.__graphics)&&a.__renderable){var c=b.__getAlpha(a.__worldAlpha);if(!(0>=c)){if(null!=a.opaqueBackground&&!a.__isCacheBitmapRender&&0<a.get_width()&&0<a.get_height()){b.__setBlendMode(a.__worldBlendMode);b.__pushMaskObject(a);var d=b.context;b.setTransform(a.__renderTransform,d);var e=a.opaqueBackground;d.fillStyle="rgb("+(e>>>16&255)+","+(e>>>8&255)+","+(e&255)+")";d.fillRect(0,0,a.get_width(),a.get_height());b.__popMaskObject(a)}if(null!= +a.__graphics&&a.__renderable&&(c=b.__getAlpha(a.__worldAlpha),!(0>=c))){var f=a.__graphics;if(null!=f){D.render(f,b);var h=f.__width,l=f.__height;e=f.__canvas;if(null!=e&&f.__visible&&1<=h&&1<=l){var t=f.__worldTransform;d=b.context;var m=a.__scrollRect,k=a.__worldScale9Grid;if(null==m||0<m.width&&0<m.height){b.__setBlendMode(a.__worldBlendMode);b.__pushMaskObject(a);d.globalAlpha=c;if(null!=k&&0==t.b&&0==t.c){var p=b.__pixelRatio;c=Aa.__pool.get();c.translate(t.tx,t.ty);b.setTransform(c,d);Aa.__pool.release(c); +c=f.__bounds;var n=f.__renderTransform.a/f.__bitmapScale,r=f.__renderTransform.d/f.__bitmapScale,q=n*t.a,v=r*t.d;t=Math.max(1,Math.round(k.x*n));f=Math.round(k.y*r);m=Math.max(1,Math.round((c.get_right()-k.get_right())*n));var u=Math.round((c.get_bottom()-k.get_bottom())*r);n=Math.round(k.width*n);k=Math.round(k.height*r);r=Math.round(t/p);var w=Math.round(f/p),B=Math.round(m/p);p=Math.round(u/p);q=c.width*q-r-B;c=c.height*v-w-p;b.applySmoothing(d,!1);0!=n&&0!=k?(d.drawImage(e,0,0,t,f,0,0,r,w),d.drawImage(e, +t,0,n,f,r,0,q,w),d.drawImage(e,t+n,0,m,f,r+q,0,B,w),d.drawImage(e,0,f,t,k,0,w,r,c),d.drawImage(e,t,f,n,k,r,w,q,c),d.drawImage(e,t+n,f,m,k,r+q,w,B,c),d.drawImage(e,0,f+k,t,u,0,w+c,r,p),d.drawImage(e,t,f+k,n,u,r,w+c,q,p),d.drawImage(e,t+n,f+k,m,u,r+q,w+c,B,p)):0==n&&0!=k?(l=r+q+B,d.drawImage(e,0,0,h,f,0,0,l,w),d.drawImage(e,0,f,h,k,0,w,l,c),d.drawImage(e,0,f+k,h,u,0,w+c,l,p)):0==k&&0!=n&&(h=w+c+p,d.drawImage(e,0,0,t,l,0,0,r,h),d.drawImage(e,t,0,n,l,r,0,q,h),d.drawImage(e,t+n,0,m,l,r+q,0,B,h))}else b.setTransform(t, +d),d.drawImage(e,0,0,h,l);b.__popMaskObject(a)}}}}}}};zh.renderDrawable=function(a,b){if(null==a.get_mask()||0<a.get_mask().get_width()&&0<a.get_mask().get_height())if(b.__updateCacheBitmap(a,!1),null!=a.__cacheBitmap&&!a.__isCacheBitmapRender){var c=a.__cacheBitmap;if(c.__renderable){var d=b.__getAlpha(c.__worldAlpha);if(0<d&&null!=c.__bitmapData&&c.__bitmapData.__isValid&&c.__bitmapData.readable){var e=b.context;b.__setBlendMode(c.__worldBlendMode);b.__pushMaskObject(c,!1);za.convertToCanvas(c.__bitmapData.image); +e.globalAlpha=d;var f=c.__scrollRect;b.setTransform(c.__renderTransform,e);b.__allowSmoothing&&c.smoothing||(e.imageSmoothingEnabled=!1);null==f?e.drawImage(c.__bitmapData.image.get_src(),0,0,c.__bitmapData.image.width,c.__bitmapData.image.height):e.drawImage(c.__bitmapData.image.get_src(),f.x,f.y,f.width,f.height,f.x,f.y,f.width,f.height);b.__allowSmoothing&&c.smoothing||(e.imageSmoothingEnabled=!0);b.__popMaskObject(c,!1)}}}else if(!(null==a.opaqueBackground&&null==a.__graphics||!a.__renderable|| +(d=b.__getAlpha(a.__worldAlpha),0>=d||(null!=a.opaqueBackground&&!a.__isCacheBitmapRender&&0<a.get_width()&&0<a.get_height()&&(b.__setBlendMode(a.__worldBlendMode),b.__pushMaskObject(a),e=b.context,b.setTransform(a.__renderTransform,e),c=a.opaqueBackground,e.fillStyle="rgb("+(c>>>16&255)+","+(c>>>8&255)+","+(c&255)+")",e.fillRect(0,0,a.get_width(),a.get_height()),b.__popMaskObject(a)),null==a.__graphics||!a.__renderable||(d=b.__getAlpha(a.__worldAlpha),0>=d))))){var h=a.__graphics;if(null!=h){D.render(h, +b);var l=h.__width,t=h.__height;c=h.__canvas;if(null!=c&&h.__visible&&1<=l&&1<=t){var m=h.__worldTransform;e=b.context;f=a.__scrollRect;var k=a.__worldScale9Grid;if(null==f||0<f.width&&0<f.height){b.__setBlendMode(a.__worldBlendMode);b.__pushMaskObject(a);e.globalAlpha=d;if(null!=k&&0==m.b&&0==m.c){var p=b.__pixelRatio;d=Aa.__pool.get();d.translate(m.tx,m.ty);b.setTransform(d,e);Aa.__pool.release(d);d=h.__bounds;var n=h.__renderTransform.a/h.__bitmapScale,r=h.__renderTransform.d/h.__bitmapScale,q= +n*m.a,v=r*m.d;m=Math.max(1,Math.round(k.x*n));h=Math.round(k.y*r);f=Math.max(1,Math.round((d.get_right()-k.get_right())*n));var u=Math.round((d.get_bottom()-k.get_bottom())*r);n=Math.round(k.width*n);k=Math.round(k.height*r);r=Math.round(m/p);var w=Math.round(h/p),B=Math.round(f/p);p=Math.round(u/p);q=d.width*q-r-B;d=d.height*v-w-p;b.applySmoothing(e,!1);0!=n&&0!=k?(e.drawImage(c,0,0,m,h,0,0,r,w),e.drawImage(c,m,0,n,h,r,0,q,w),e.drawImage(c,m+n,0,f,h,r+q,0,B,w),e.drawImage(c,0,h,m,k,0,w,r,d),e.drawImage(c, +m,h,n,k,r,w,q,d),e.drawImage(c,m+n,h,f,k,r+q,w,B,d),e.drawImage(c,0,h+k,m,u,0,w+d,r,p),e.drawImage(c,m,h+k,n,u,r,w+d,q,p),e.drawImage(c,m+n,h+k,f,u,r+q,w+d,B,p)):0==n&&0!=k?(t=r+q+B,e.drawImage(c,0,0,l,h,0,0,t,w),e.drawImage(c,0,h,l,k,0,w,t,d),e.drawImage(c,0,h+k,l,u,0,w+d,t,p)):0==k&&0!=n&&(l=w+d+p,e.drawImage(c,0,0,m,t,0,0,r,l),e.drawImage(c,m,0,n,t,r,0,q,l),e.drawImage(c,m+n,0,f,t,r+q,0,B,l))}else b.setTransform(m,e),e.drawImage(c,0,0,l,t);b.__popMaskObject(a)}}}}b.__renderEvent(a)};zh.renderDrawableMask= +function(a,b){null!=a.__graphics&&D.renderMask(a.__graphics,b)};var Gm=function(){};k["openfl.display._internal.CanvasDisplayObjectContainer"]=Gm;Gm.__name__="openfl.display._internal.CanvasDisplayObjectContainer";Gm.renderDrawable=function(a,b){for(var c=a.__removedChildren.iterator();c.hasNext();){var d=c.next();null==d.stage&&d.__cleanup()}a.__removedChildren.set_length(0);if(!(!a.__renderable||0>=a.__worldAlpha||null!=a.get_mask()&&(0>=a.get_mask().get_width()||0>=a.get_mask().get_height()))&& +(zh.renderDrawable(a,b),null==a.__cacheBitmap||a.__isCacheBitmapRender)){b.__pushMaskObject(a);if(null!=b.__stage){c=0;for(d=a.__children;c<d.length;){var e=d[c];++c;b.__renderDrawable(e);e.__renderDirty=!1}a.__renderDirty=!1}else for(c=0,d=a.__children;c<d.length;)e=d[c],++c,b.__renderDrawable(e);b.__popMaskObject(a)}};Gm.renderDrawableMask=function(a,b){for(var c=a.__removedChildren.iterator();c.hasNext();){var d=c.next();null==d.stage&&d.__cleanup()}a.__removedChildren.set_length(0);null!=a.__graphics&& +D.renderMask(a.__graphics,b);c=0;for(a=a.__children;c<a.length;)d=a[c],++c,b.__renderDrawableMask(d)};var Ae=function(){this.__dirty=!0;this.t_i=this.b_i=this.f_i=this.ff_i=this.i_i=this.ii_i=this.o_i=this.__lastLength=0;null==Ae.empty?(this.types=[],this.b=[],this.i=[],this.f=[],this.o=[],this.ff=[],this.ii=[],this.objVersions=[],this.copyOnWrite=!0):this.__initFromEmpty()};k["openfl.display._internal.DrawCommandBuffer"]=Ae;Ae.__name__="openfl.display._internal.DrawCommandBuffer";Ae.prototype={__replace_openfl_display_TriangleCulling:function(a, +b,c){!this.__dirty&&(b>=a.length||a[b]!=c)&&(this.__dirty=!0);a[b]=c},__replace_openfl_Vector_Int:function(a,b,c){!this.__dirty&&(b>=a.length||a[b]!=c)&&(this.__dirty=!0);a[b]=c},__replace_openfl_Vector_Float:function(a,b,c){!this.__dirty&&(b>=a.length||a[b]!=c)&&(this.__dirty=!0);a[b]=c},__replace_openfl_display__internal_ShaderBuffer:function(a,b,c){!this.__dirty&&(b>=a.length||a[b]!=c)&&(this.__dirty=!0);a[b]=c},__replace_openfl_display_JointStyle:function(a,b,c){!this.__dirty&&(b>=a.length||a[b]!= +c)&&(this.__dirty=!0);a[b]=c},__replace_openfl_display_CapsStyle:function(a,b,c){!this.__dirty&&(b>=a.length||a[b]!=c)&&(this.__dirty=!0);a[b]=c},__replace_openfl_display_LineScaleMode:function(a,b,c){!this.__dirty&&(b>=a.length||a[b]!=c)&&(this.__dirty=!0);a[b]=c},__replace_Int:function(a,b,c){!this.__dirty&&(b>=a.length||a[b]!=c)&&(this.__dirty=!0);a[b]=c},__replace_Bool:function(a,b,c){!this.__dirty&&(b>=a.length||a[b]!=c)&&(this.__dirty=!0);a[b]=c},__replace_openfl_display_InterpolationMethod:function(a, +b,c){!this.__dirty&&(b>=a.length||a[b]!=c)&&(this.__dirty=!0);a[b]=c},__replace_openfl_display_SpreadMethod:function(a,b,c){!this.__dirty&&(b>=a.length||a[b]!=c)&&(this.__dirty=!0);a[b]=c},__replace_Array_Float:function(a,b,c){!this.__dirty&&(b>=a.length||a[b]!=c)&&(this.__dirty=!0);a[b]=c},__replace_Array_Int:function(a,b,c){!this.__dirty&&(b>=a.length||a[b]!=c)&&(this.__dirty=!0);a[b]=c},__replace_openfl_display_GradientType:function(a,b,c){!this.__dirty&&(b>=a.length||a[b]!=c)&&(this.__dirty=!0); +a[b]=c},__replace_Float:function(a,b,c){!this.__dirty&&(b>=a.length||a[b]!=c)&&(this.__dirty=!0);a[b]=c},__replace_openfl_display__internal_DrawCommandType:function(a,b,c){!this.__dirty&&(b>=a.length||a[b]!=c)&&(this.__dirty=!0);a[b]=c},dirty:null,types:null,b:null,copyOnWrite:null,f:null,ff:null,i:null,ii:null,o:null,t_i:null,b_i:null,f_i:null,ff_i:null,i_i:null,ii_i:null,o_i:null,objVersions:null,__lastLength:null,__dirty:null,append:function(a){if(0==this.get_length())return this.types=a.types, +this.b=a.b,this.i=a.i,this.f=a.f,this.o=a.o,this.ff=a.ff,this.ii=a.ii,this.t_i=a.t_i,this.b_i=a.b_i,this.f_i=a.f_i,this.ff_i=a.ff_i,this.i_i=a.i_i,this.ii_i=a.ii_i,this.o_i=a.o_i,this.objVersions=a.objVersions,this.copyOnWrite=a.copyOnWrite=!0,a;for(var b=new Vf(a),c=0,d=a.types;c<d.length;){var e=d[c];++c;switch(e._hx_index){case 0:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break; +case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1;break;case 20:b.oPos+=1}b.prev=ba.BEGIN_BITMAP_FILL;e=b;this.beginBitmapFill(e.buffer.o[e.oPos], +e.buffer.o[e.oPos+1],e.buffer.b[e.bPos],e.buffer.b[e.bPos+1]);break;case 1:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+= +2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1;break;case 20:b.oPos+=1}b.prev=ba.BEGIN_FILL;e=b;this.beginFill(e.buffer.i[e.iPos],e.buffer.f[e.fPos]);break;case 2:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break; +case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1;break;case 20:b.oPos+=1}b.prev=ba.BEGIN_GRADIENT_FILL;e=b;this.beginGradientFill(e.buffer.o[e.oPos],e.buffer.ii[e.iiPos],e.buffer.ff[e.ffPos],e.buffer.ii[e.iiPos+1], +e.buffer.o[e.oPos+1],e.buffer.o[e.oPos+2],e.buffer.o[e.oPos+3],e.buffer.f[e.fPos]);break;case 3:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+= +4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1;break;case 20:b.oPos+=1}b.prev=ba.BEGIN_SHADER_FILL;e=b;this.beginShaderFill(e.buffer.o[e.oPos]);break;case 4:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3; +break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1;break;case 20:b.oPos+=1}b.prev=ba.CUBIC_CURVE_TO;e=b;this.cubicCurveTo(e.buffer.f[e.fPos],e.buffer.f[e.fPos+1],e.buffer.f[e.fPos+2],e.buffer.f[e.fPos+3],e.buffer.f[e.fPos+ +4],e.buffer.f[e.fPos+5]);break;case 5:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+= +4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1;break;case 20:b.oPos+=1}b.prev=ba.CURVE_TO;e=b;this.curveTo(e.buffer.f[e.fPos],e.buffer.f[e.fPos+1],e.buffer.f[e.fPos+2],e.buffer.f[e.fPos+3]);break;case 6:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+= +4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1;break;case 20:b.oPos+=1}b.prev=ba.DRAW_CIRCLE;e=b;this.drawCircle(e.buffer.f[e.fPos],e.buffer.f[e.fPos+1],e.buffer.f[e.fPos+2]);break;case 7:switch(b.prev._hx_index){case 0:b.oPos+= +2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+= +2;break;case 19:b.oPos+=1;break;case 20:b.oPos+=1}b.prev=ba.DRAW_ELLIPSE;e=b;this.drawEllipse(e.buffer.f[e.fPos],e.buffer.f[e.fPos+1],e.buffer.f[e.fPos+2],e.buffer.f[e.fPos+3]);break;case 8:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+= +5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1;break;case 20:b.oPos+=1}b.prev=ba.DRAW_QUADS;e=b;this.drawQuads(e.buffer.o[e.oPos],e.buffer.o[e.oPos+1],e.buffer.o[e.oPos+2]);break;case 9:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+= +2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1;break;case 20:b.oPos+=1}b.prev=ba.DRAW_RECT; +e=b;this.drawRect(e.buffer.f[e.fPos],e.buffer.f[e.fPos+1],e.buffer.f[e.fPos+2],e.buffer.f[e.fPos+3]);break;case 10:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+= +2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1;break;case 20:b.oPos+=1}b.prev=ba.DRAW_ROUND_RECT;e=b;this.drawRoundRect(e.buffer.f[e.fPos],e.buffer.f[e.fPos+1],e.buffer.f[e.fPos+2],e.buffer.f[e.fPos+3],e.buffer.f[e.fPos+4],e.buffer.o[e.oPos]);break;case 12:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4; +b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1;break;case 20:b.oPos+=1}b.prev=ba.DRAW_TRIANGLES; +e=b;this.drawTriangles(e.buffer.o[e.oPos],e.buffer.o[e.oPos+1],e.buffer.o[e.oPos+2],e.buffer.o[e.oPos+3]);break;case 13:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+= +2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1;break;case 20:b.oPos+=1}b.prev=ba.END_FILL;this.endFill();break;case 14:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break; +case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1;break;case 20:b.oPos+=1}b.prev=ba.LINE_BITMAP_STYLE;e=b;this.lineBitmapStyle(e.buffer.o[e.oPos],e.buffer.o[e.oPos+1],e.buffer.b[e.bPos],e.buffer.b[e.bPos+1]);break; +case 15:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2; +b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1;break;case 20:b.oPos+=1}b.prev=ba.LINE_GRADIENT_STYLE;e=b;this.lineGradientStyle(e.buffer.o[e.oPos],e.buffer.ii[e.iiPos],e.buffer.ff[e.ffPos],e.buffer.ii[e.iiPos+1],e.buffer.o[e.oPos+1],e.buffer.o[e.oPos+2],e.buffer.o[e.oPos+3],e.buffer.f[e.fPos]);break;case 16:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+= +1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1;break;case 20:b.oPos+=1}b.prev=ba.LINE_STYLE;e=b;this.lineStyle(e.buffer.o[e.oPos],e.buffer.i[e.iPos], +e.buffer.f[e.fPos],e.buffer.b[e.bPos],e.buffer.o[e.oPos+1],e.buffer.o[e.oPos+2],e.buffer.o[e.oPos+3],e.buffer.f[e.fPos+1]);break;case 17:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break; +case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1;break;case 20:b.oPos+=1}b.prev=ba.LINE_TO;e=b;this.lineTo(e.buffer.f[e.fPos],e.buffer.f[e.fPos+1]);break;case 18:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+= +6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1;break;case 20:b.oPos+=1}b.prev=ba.MOVE_TO;e=b;this.moveTo(e.buffer.f[e.fPos],e.buffer.f[e.fPos+1]);break;case 20:switch(b.prev._hx_index){case 0:b.oPos+= +2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+= +2;break;case 19:b.oPos+=1;break;case 20:b.oPos+=1}b.prev=ba.OVERRIDE_MATRIX;e=b;this.overrideMatrix(e.buffer.o[e.oPos]);break;case 21:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+= +2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1;break;case 20:b.oPos+=1}b.prev=ba.WINDING_EVEN_ODD;this.windingEvenOdd();break;case 22:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+= +3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1;break;case 20:b.oPos+=1}b.prev=ba.WINDING_NON_ZERO;this.windingNonZero()}}b.destroy();return a},beginBitmapFill:function(a,b,c,d){this.prepareWrite();var e= +this.types,f=this.t_i++,h=ba.BEGIN_BITMAP_FILL;!this.__dirty&&(f>=e.length||e[f]!=h)&&(this.__dirty=!0);e[f]=h;e=this.o;f=this.o_i++;!this.__dirty&&(f>=e.length||a!=e[f]||a.image.version!=this.objVersions[f])&&(this.__dirty=!0);for(e[f]=a;this.objVersions.length<f;)this.objVersions.push(0);this.objVersions[f]=a.image.version;e=this.o;f=this.o_i++;this.__dirty||!(f>=e.length)&&b.equals(e[f])||(this.__dirty=!0);e[f]=b;e=this.b;f=this.b_i++;!this.__dirty&&(f>=e.length||e[f]!=c)&&(this.__dirty=!0);e[f]= +c;e=this.b;f=this.b_i++;!this.__dirty&&(f>=e.length||e[f]!=d)&&(this.__dirty=!0);e[f]=d},beginFill:function(a,b){this.prepareWrite();var c=this.types,d=this.t_i++,e=ba.BEGIN_FILL;!this.__dirty&&(d>=c.length||c[d]!=e)&&(this.__dirty=!0);c[d]=e;c=this.i;d=this.i_i++;!this.__dirty&&(d>=c.length||c[d]!=a)&&(this.__dirty=!0);c[d]=a;c=this.f;d=this.f_i++;!this.__dirty&&(d>=c.length||c[d]!=b)&&(this.__dirty=!0);c[d]=b},beginGradientFill:function(a,b,c,d,e,f,h,l){this.prepareWrite();var g=this.types,m=this.t_i++, +x=ba.BEGIN_GRADIENT_FILL;!this.__dirty&&(m>=g.length||g[m]!=x)&&(this.__dirty=!0);g[m]=x;g=this.o;m=this.o_i++;!this.__dirty&&(m>=g.length||g[m]!=a)&&(this.__dirty=!0);g[m]=a;g=this.ii;m=this.ii_i++;!this.__dirty&&(m>=g.length||g[m]!=b)&&(this.__dirty=!0);g[m]=b;g=this.ff;m=this.ff_i++;!this.__dirty&&(m>=g.length||g[m]!=c)&&(this.__dirty=!0);g[m]=c;g=this.ii;m=this.ii_i++;!this.__dirty&&(m>=g.length||g[m]!=d)&&(this.__dirty=!0);g[m]=d;g=this.o;m=this.o_i++;this.__dirty||!(m>=g.length)&&e.equals(g[m])|| +(this.__dirty=!0);g[m]=e;g=this.o;m=this.o_i++;!this.__dirty&&(m>=g.length||g[m]!=f)&&(this.__dirty=!0);g[m]=f;g=this.o;m=this.o_i++;!this.__dirty&&(m>=g.length||g[m]!=h)&&(this.__dirty=!0);g[m]=h;g=this.f;m=this.f_i++;!this.__dirty&&(m>=g.length||g[m]!=l)&&(this.__dirty=!0);g[m]=l},beginShaderFill:function(a){this.prepareWrite();var b=this.types,c=this.t_i++,d=ba.BEGIN_SHADER_FILL;!this.__dirty&&(c>=b.length||b[c]!=d)&&(this.__dirty=!0);b[c]=d;b=this.o;c=this.o_i++;!this.__dirty&&(c>=b.length||b[c]!= +a)&&(this.__dirty=!0);b[c]=a},clear:function(){this.o_i=this.ii_i=this.i_i=this.ff_i=this.f_i=this.b_i=this.t_i=0},copy:function(){var a=new Ae;a.append(this);return a},cubicCurveTo:function(a,b,c,d,e,f){this.prepareWrite();var g=this.types,l=this.t_i++,h=ba.CUBIC_CURVE_TO;!this.__dirty&&(l>=g.length||g[l]!=h)&&(this.__dirty=!0);g[l]=h;g=this.f;l=this.f_i++;!this.__dirty&&(l>=g.length||g[l]!=a)&&(this.__dirty=!0);g[l]=a;g=this.f;l=this.f_i++;!this.__dirty&&(l>=g.length||g[l]!=b)&&(this.__dirty=!0); +g[l]=b;g=this.f;l=this.f_i++;!this.__dirty&&(l>=g.length||g[l]!=c)&&(this.__dirty=!0);g[l]=c;g=this.f;l=this.f_i++;!this.__dirty&&(l>=g.length||g[l]!=d)&&(this.__dirty=!0);g[l]=d;g=this.f;l=this.f_i++;!this.__dirty&&(l>=g.length||g[l]!=e)&&(this.__dirty=!0);g[l]=e;g=this.f;l=this.f_i++;!this.__dirty&&(l>=g.length||g[l]!=f)&&(this.__dirty=!0);g[l]=f},curveTo:function(a,b,c,d){this.prepareWrite();var e=this.types,f=this.t_i++,h=ba.CURVE_TO;!this.__dirty&&(f>=e.length||e[f]!=h)&&(this.__dirty=!0);e[f]= +h;e=this.f;f=this.f_i++;!this.__dirty&&(f>=e.length||e[f]!=a)&&(this.__dirty=!0);e[f]=a;e=this.f;f=this.f_i++;!this.__dirty&&(f>=e.length||e[f]!=b)&&(this.__dirty=!0);e[f]=b;e=this.f;f=this.f_i++;!this.__dirty&&(f>=e.length||e[f]!=c)&&(this.__dirty=!0);e[f]=c;e=this.f;f=this.f_i++;!this.__dirty&&(f>=e.length||e[f]!=d)&&(this.__dirty=!0);e[f]=d},destroy:function(){this.ii=this.ff=this.o=this.f=this.i=this.b=this.types=null},drawCircle:function(a,b,c){this.prepareWrite();var d=this.types,e=this.t_i++, +f=ba.DRAW_CIRCLE;!this.__dirty&&(e>=d.length||d[e]!=f)&&(this.__dirty=!0);d[e]=f;d=this.f;e=this.f_i++;!this.__dirty&&(e>=d.length||d[e]!=a)&&(this.__dirty=!0);d[e]=a;d=this.f;e=this.f_i++;!this.__dirty&&(e>=d.length||d[e]!=b)&&(this.__dirty=!0);d[e]=b;d=this.f;e=this.f_i++;!this.__dirty&&(e>=d.length||d[e]!=c)&&(this.__dirty=!0);d[e]=c},drawEllipse:function(a,b,c,d){this.prepareWrite();var e=this.types,f=this.t_i++,h=ba.DRAW_ELLIPSE;!this.__dirty&&(f>=e.length||e[f]!=h)&&(this.__dirty=!0);e[f]=h; +e=this.f;f=this.f_i++;!this.__dirty&&(f>=e.length||e[f]!=a)&&(this.__dirty=!0);e[f]=a;e=this.f;f=this.f_i++;!this.__dirty&&(f>=e.length||e[f]!=b)&&(this.__dirty=!0);e[f]=b;e=this.f;f=this.f_i++;!this.__dirty&&(f>=e.length||e[f]!=c)&&(this.__dirty=!0);e[f]=c;e=this.f;f=this.f_i++;!this.__dirty&&(f>=e.length||e[f]!=d)&&(this.__dirty=!0);e[f]=d},drawQuads:function(a,b,c){this.prepareWrite();var d=this.types,e=this.t_i++,f=ba.DRAW_QUADS;!this.__dirty&&(e>=d.length||d[e]!=f)&&(this.__dirty=!0);d[e]=f; +d=this.o;e=this.o_i++;!this.__dirty&&(e>=d.length||d[e]!=a)&&(this.__dirty=!0);d[e]=a;d=this.o;e=this.o_i++;!this.__dirty&&(e>=d.length||d[e]!=b)&&(this.__dirty=!0);d[e]=b;d=this.o;e=this.o_i++;!this.__dirty&&(e>=d.length||d[e]!=c)&&(this.__dirty=!0);d[e]=c},drawRect:function(a,b,c,d){this.prepareWrite();var e=this.types,f=this.t_i++,h=ba.DRAW_RECT;!this.__dirty&&(f>=e.length||e[f]!=h)&&(this.__dirty=!0);e[f]=h;e=this.f;f=this.f_i++;!this.__dirty&&(f>=e.length||e[f]!=a)&&(this.__dirty=!0);e[f]=a; +e=this.f;f=this.f_i++;!this.__dirty&&(f>=e.length||e[f]!=b)&&(this.__dirty=!0);e[f]=b;e=this.f;f=this.f_i++;!this.__dirty&&(f>=e.length||e[f]!=c)&&(this.__dirty=!0);e[f]=c;e=this.f;f=this.f_i++;!this.__dirty&&(f>=e.length||e[f]!=d)&&(this.__dirty=!0);e[f]=d},drawRoundRect:function(a,b,c,d,e,f){this.prepareWrite();var g=this.types,h=this.t_i++,t=ba.DRAW_ROUND_RECT;!this.__dirty&&(h>=g.length||g[h]!=t)&&(this.__dirty=!0);g[h]=t;g=this.f;h=this.f_i++;!this.__dirty&&(h>=g.length||g[h]!=a)&&(this.__dirty= +!0);g[h]=a;g=this.f;h=this.f_i++;!this.__dirty&&(h>=g.length||g[h]!=b)&&(this.__dirty=!0);g[h]=b;g=this.f;h=this.f_i++;!this.__dirty&&(h>=g.length||g[h]!=c)&&(this.__dirty=!0);g[h]=c;g=this.f;h=this.f_i++;!this.__dirty&&(h>=g.length||g[h]!=d)&&(this.__dirty=!0);g[h]=d;g=this.f;h=this.f_i++;!this.__dirty&&(h>=g.length||g[h]!=e)&&(this.__dirty=!0);g[h]=e;!this.__dirty&&(this.o_i>=this.o.length||this.o[this.o_i]!=f)&&(this.__dirty=!0);this.o[this.o_i++]=f},drawTriangles:function(a,b,c,d){this.prepareWrite(); +var e=this.types,f=this.t_i++,h=ba.DRAW_TRIANGLES;!this.__dirty&&(f>=e.length||e[f]!=h)&&(this.__dirty=!0);e[f]=h;e=this.o;f=this.o_i++;!this.__dirty&&(f>=e.length||e[f]!=a)&&(this.__dirty=!0);e[f]=a;e=this.o;f=this.o_i++;!this.__dirty&&(f>=e.length||e[f]!=b)&&(this.__dirty=!0);e[f]=b;e=this.o;f=this.o_i++;!this.__dirty&&(f>=e.length||e[f]!=c)&&(this.__dirty=!0);e[f]=c;e=this.o;f=this.o_i++;!this.__dirty&&(f>=e.length||e[f]!=d)&&(this.__dirty=!0);e[f]=d},endFill:function(){this.prepareWrite();var a= +this.types,b=this.t_i++,c=ba.END_FILL;!this.__dirty&&(b>=a.length||a[b]!=c)&&(this.__dirty=!0);a[b]=c},lineBitmapStyle:function(a,b,c,d){this.prepareWrite();var e=this.types,f=this.t_i++,h=ba.LINE_BITMAP_STYLE;!this.__dirty&&(f>=e.length||e[f]!=h)&&(this.__dirty=!0);e[f]=h;e=this.o;f=this.o_i++;!this.__dirty&&(f>=e.length||a!=e[f]||a.image.version!=this.objVersions[f])&&(this.__dirty=!0);for(e[f]=a;this.objVersions.length<f;)this.objVersions.push(0);this.objVersions[f]=a.image.version;e=this.o;f= +this.o_i++;this.__dirty||!(f>=e.length)&&b.equals(e[f])||(this.__dirty=!0);e[f]=b;e=this.b;f=this.b_i++;!this.__dirty&&(f>=e.length||e[f]!=c)&&(this.__dirty=!0);e[f]=c;e=this.b;f=this.b_i++;!this.__dirty&&(f>=e.length||e[f]!=d)&&(this.__dirty=!0);e[f]=d},lineGradientStyle:function(a,b,c,d,e,f,h,l){this.prepareWrite();var g=this.types,m=this.t_i++,x=ba.LINE_GRADIENT_STYLE;!this.__dirty&&(m>=g.length||g[m]!=x)&&(this.__dirty=!0);g[m]=x;g=this.o;m=this.o_i++;!this.__dirty&&(m>=g.length||g[m]!=a)&&(this.__dirty= +!0);g[m]=a;g=this.ii;m=this.ii_i++;!this.__dirty&&(m>=g.length||g[m]!=b)&&(this.__dirty=!0);g[m]=b;g=this.ff;m=this.ff_i++;!this.__dirty&&(m>=g.length||g[m]!=c)&&(this.__dirty=!0);g[m]=c;g=this.ii;m=this.ii_i++;!this.__dirty&&(m>=g.length||g[m]!=d)&&(this.__dirty=!0);g[m]=d;g=this.o;m=this.o_i++;this.__dirty||!(m>=g.length)&&e.equals(g[m])||(this.__dirty=!0);g[m]=e;g=this.o;m=this.o_i++;!this.__dirty&&(m>=g.length||g[m]!=f)&&(this.__dirty=!0);g[m]=f;g=this.o;m=this.o_i++;!this.__dirty&&(m>=g.length|| +g[m]!=h)&&(this.__dirty=!0);g[m]=h;g=this.f;m=this.f_i++;!this.__dirty&&(m>=g.length||g[m]!=l)&&(this.__dirty=!0);g[m]=l},lineStyle:function(a,b,c,d,e,f,h,l){this.prepareWrite();var g=this.types,m=this.t_i++,x=ba.LINE_STYLE;!this.__dirty&&(m>=g.length||g[m]!=x)&&(this.__dirty=!0);g[m]=x;!this.__dirty&&(this.o_i>=this.o.length||this.o[this.o_i]!=a)&&(this.__dirty=!0);this.o[this.o_i++]=a;g=this.i;m=this.i_i++;!this.__dirty&&(m>=g.length||g[m]!=b)&&(this.__dirty=!0);g[m]=b;g=this.f;m=this.f_i++;!this.__dirty&& +(m>=g.length||g[m]!=c)&&(this.__dirty=!0);g[m]=c;g=this.b;m=this.b_i++;!this.__dirty&&(m>=g.length||g[m]!=d)&&(this.__dirty=!0);g[m]=d;g=this.o;m=this.o_i++;!this.__dirty&&(m>=g.length||g[m]!=e)&&(this.__dirty=!0);g[m]=e;g=this.o;m=this.o_i++;!this.__dirty&&(m>=g.length||g[m]!=f)&&(this.__dirty=!0);g[m]=f;g=this.o;m=this.o_i++;!this.__dirty&&(m>=g.length||g[m]!=h)&&(this.__dirty=!0);g[m]=h;g=this.f;m=this.f_i++;!this.__dirty&&(m>=g.length||g[m]!=l)&&(this.__dirty=!0);g[m]=l},lineTo:function(a,b){this.prepareWrite(); +var c=this.types,d=this.t_i++,e=ba.LINE_TO;!this.__dirty&&(d>=c.length||c[d]!=e)&&(this.__dirty=!0);c[d]=e;c=this.f;d=this.f_i++;!this.__dirty&&(d>=c.length||c[d]!=a)&&(this.__dirty=!0);c[d]=a;c=this.f;d=this.f_i++;!this.__dirty&&(d>=c.length||c[d]!=b)&&(this.__dirty=!0);c[d]=b},markAsClean:function(){this.__dirty=!1},moveTo:function(a,b){this.prepareWrite();var c=this.types,d=this.t_i++,e=ba.MOVE_TO;!this.__dirty&&(d>=c.length||c[d]!=e)&&(this.__dirty=!0);c[d]=e;c=this.f;d=this.f_i++;!this.__dirty&& +(d>=c.length||c[d]!=a)&&(this.__dirty=!0);c[d]=a;c=this.f;d=this.f_i++;!this.__dirty&&(d>=c.length||c[d]!=b)&&(this.__dirty=!0);c[d]=b},prepareWrite:function(){this.copyOnWrite&&(this.types=this.types.slice(),this.b=this.b.slice(),this.i=this.i.slice(),this.f=this.f.slice(),this.o=this.o.slice(),this.ff=this.ff.slice(),this.ii=this.ii.slice(),this.objVersions=this.objVersions.slice(),this.copyOnWrite=!1)},overrideBlendMode:function(a){this.prepareWrite();this.types.push(ba.OVERRIDE_BLEND_MODE);this.o.push(a)}, +overrideMatrix:function(a){this.prepareWrite();var b=this.types,c=this.t_i++,d=ba.OVERRIDE_MATRIX;!this.__dirty&&(c>=b.length||b[c]!=d)&&(this.__dirty=!0);b[c]=d;b=this.o;c=this.o_i++;this.__dirty||!(c>=b.length)&&a.equals(b[c])||(this.__dirty=!0);b[c]=a},windingEvenOdd:function(){this.prepareWrite();var a=this.types,b=this.t_i++,c=ba.WINDING_EVEN_ODD;!this.__dirty&&(b>=a.length||a[b]!=c)&&(this.__dirty=!0);a[b]=c},windingNonZero:function(){this.prepareWrite();var a=this.types,b=this.t_i++,c=ba.WINDING_NON_ZERO; +!this.__dirty&&(b>=a.length||a[b]!=c)&&(this.__dirty=!0);a[b]=c},get_dirty:function(){return this.__dirty},get_length:function(){return this.t_i},__initFromEmpty:function(){this.types=Ae.empty.types;this.b=Ae.empty.b;this.i=Ae.empty.i;this.f=Ae.empty.f;this.o=Ae.empty.o;this.ff=Ae.empty.ff;this.ii=Ae.empty.ii;this.objVersions=Ae.empty.objVersions;this.copyOnWrite=!0},__endBuffer:function(){this.__lastLength!=this.t_i&&(this.__dirty=!0);this.__lastLength=this.t_i},__replaceMtx:function(a,b,c){this.__dirty|| +!(b>=a.length)&&c.equals(a[b])||(this.__dirty=!0);a[b]=c},__replaceBmp:function(a,b,c){!this.__dirty&&(b>=a.length||c!=a[b]||c.image.version!=this.objVersions[b])&&(this.__dirty=!0);for(a[b]=c;this.objVersions.length<b;)this.objVersions.push(0);this.objVersions[b]=c.image.version},__class__:Ae,__properties__:{get_length:"get_length",get_dirty:"get_dirty"}};var D=function(){};k["openfl.display._internal.CanvasGraphics"]=D;D.__name__="openfl.display._internal.CanvasGraphics";D.closePath=function(a){null== +a&&(a=!1);null!=D.context.strokeStyle&&(a||D.context.closePath(),D.context.stroke(),a&&D.context.closePath(),D.context.beginPath())};D.createBitmapFill=function(a,b,c){za.convertToCanvas(a.image);D.setSmoothing(c);return D.context.createPattern(a.image.get_src(),b?"repeat":"no-repeat")};D.createGradientPattern=function(a,b,c,d,e,f,h,l){f=null;h=!1;null==e&&(e=Aa.__pool.get(),e.identity(),h=!0);switch(a){case 0:f=D.context.createLinearGradient(-819.2,0,819.2,0);D.pendingMatrix=e.clone();D.inversePendingMatrix= +e.clone();D.inversePendingMatrix.invert();break;case 1:1<l?l=1:-1>l&&(l=-1),f=D.context.createRadialGradient(819.2*l,0,0,0,0,819.2),D.pendingMatrix=e.clone(),D.inversePendingMatrix=e.clone(),D.inversePendingMatrix.invert()}for(var g,m,x,p=0,k=b.length;p<k;)x=p++,g=b[x],a=c[x],l=(g&16711680)>>>16,m=(g&65280)>>>8,g&=255,x=d[x]/255,0>x&&(x=0),1<x&&(x=1),f.addColorStop(x,"rgba("+l+", "+m+", "+g+", "+a+")");h&&Aa.__pool.release(e);return f};D.createTempPatternCanvas=function(a,b,c,d){var e=window.document.createElement("canvas"), +f=e.getContext("2d");e.width=c;e.height=d;a=a.image.get_src();f.fillStyle=f.createPattern(a,b?"repeat":"no-repeat");f.beginPath();f.moveTo(0,0);f.lineTo(0,d);f.lineTo(c,d);f.lineTo(c,0);f.lineTo(0,0);f.closePath();D.hitTesting||f.fill(D.windingRule);return e};D.drawRoundRect=function(a,b,c,d,e,f){null==f&&(f=e);e*=.5;f*=.5;e>c/2&&(e=c/2);f>d/2&&(f=d/2);c=a+c;d=b+d;var g=-e+.7071067811865476*e,h=-e+.41421356237309503*e,t=-f+.7071067811865476*f,m=-f+.41421356237309503*f;D.context.moveTo(c,d-f);D.context.quadraticCurveTo(c, +d+m,c+g,d+t);D.context.quadraticCurveTo(c+h,d,c-e,d);D.context.lineTo(a+e,d);D.context.quadraticCurveTo(a-h,d,a-g,d+t);D.context.quadraticCurveTo(a,d+m,a,d-f);D.context.lineTo(a,b+f);D.context.quadraticCurveTo(a,b-m,a-g,b-t);D.context.quadraticCurveTo(a-h,b,a+e,b);D.context.lineTo(c-e,b);D.context.quadraticCurveTo(c+h,b,c+g,b-t);D.context.quadraticCurveTo(c,b-m,c,b+f);D.context.lineTo(c,d-f)};D.endFill=function(){D.context.beginPath();D.playCommands(D.fillCommands,!1);D.fillCommands.clear()};D.endStroke= +function(){D.context.beginPath();D.playCommands(D.strokeCommands,!0);D.context.closePath();D.strokeCommands.clear()};D.hitTest=function(a,b,c){D.bounds=a.__bounds;D.graphics=a;if(0==a.__commands.get_length()||null==D.bounds||0>=D.bounds.width||0>=D.bounds.height)return!1;D.hitTesting=!0;var d=a.__renderTransform,e=b*d.b+c*d.d+d.ty;b=b*d.a+c*d.c+d.tx-(D.bounds.x*d.a+D.bounds.y*d.c+d.tx);c=e-(D.bounds.x*d.b+D.bounds.y*d.d+d.ty);e=a.__canvas;var f=a.__context;a.__canvas=D.hitTestCanvas;a.__context=D.hitTestContext; +D.context=a.__context;D.context.setTransform(d.a,d.b,d.c,d.d,d.tx,d.ty);D.fillCommands.clear();D.strokeCommands.clear();D.hasFill=!1;D.hasStroke=!1;D.bitmapFill=null;D.bitmapRepeat=!1;D.windingRule="evenodd";d=new Vf(a.__commands);for(var h=a.__commands.types,l=0,t=a.__commands.get_length();l<t;){var m=l++;m=h[m];switch(m._hx_index){case 0:case 1:case 2:case 3:D.endFill();if(D.hasFill&&D.context.isPointInPath(b,c,D.windingRule))return d.destroy(),a.__canvas=e,a.__context=f,!0;D.endStroke();if(D.hasStroke&& +D.context.isPointInStroke(b,c))return d.destroy(),a.__canvas=e,a.__context=f,!0;if(m==ba.BEGIN_BITMAP_FILL){switch(d.prev._hx_index){case 0:d.oPos+=2;d.bPos+=2;break;case 1:d.iPos+=1;d.fPos+=1;break;case 2:d.oPos+=4;d.iiPos+=2;d.ffPos+=1;d.fPos+=1;break;case 3:d.oPos+=1;break;case 4:d.fPos+=6;break;case 5:d.fPos+=4;break;case 6:d.fPos+=3;break;case 7:d.fPos+=4;break;case 8:d.oPos+=3;break;case 9:d.fPos+=4;break;case 10:d.fPos+=5;d.oPos+=1;break;case 12:d.oPos+=4;break;case 14:d.oPos+=2;d.bPos+=2; +break;case 15:d.oPos+=4;d.iiPos+=2;d.ffPos+=1;d.fPos+=1;break;case 16:d.oPos+=4;d.iPos+=1;d.fPos+=2;d.bPos+=1;break;case 17:d.fPos+=2;break;case 18:d.fPos+=2;break;case 19:d.oPos+=1;break;case 20:d.oPos+=1}d.prev=ba.BEGIN_BITMAP_FILL;m=d;D.fillCommands.beginBitmapFill(m.buffer.o[m.oPos],m.buffer.o[m.oPos+1],m.buffer.b[m.bPos],m.buffer.b[m.bPos+1]);D.strokeCommands.beginBitmapFill(m.buffer.o[m.oPos],m.buffer.o[m.oPos+1],m.buffer.b[m.bPos],m.buffer.b[m.bPos+1])}else if(m==ba.BEGIN_GRADIENT_FILL){switch(d.prev._hx_index){case 0:d.oPos+= +2;d.bPos+=2;break;case 1:d.iPos+=1;d.fPos+=1;break;case 2:d.oPos+=4;d.iiPos+=2;d.ffPos+=1;d.fPos+=1;break;case 3:d.oPos+=1;break;case 4:d.fPos+=6;break;case 5:d.fPos+=4;break;case 6:d.fPos+=3;break;case 7:d.fPos+=4;break;case 8:d.oPos+=3;break;case 9:d.fPos+=4;break;case 10:d.fPos+=5;d.oPos+=1;break;case 12:d.oPos+=4;break;case 14:d.oPos+=2;d.bPos+=2;break;case 15:d.oPos+=4;d.iiPos+=2;d.ffPos+=1;d.fPos+=1;break;case 16:d.oPos+=4;d.iPos+=1;d.fPos+=2;d.bPos+=1;break;case 17:d.fPos+=2;break;case 18:d.fPos+= +2;break;case 19:d.oPos+=1;break;case 20:d.oPos+=1}d.prev=ba.BEGIN_GRADIENT_FILL;m=d;D.fillCommands.beginGradientFill(m.buffer.o[m.oPos],m.buffer.ii[m.iiPos],m.buffer.ff[m.ffPos],m.buffer.ii[m.iiPos+1],m.buffer.o[m.oPos+1],m.buffer.o[m.oPos+2],m.buffer.o[m.oPos+3],m.buffer.f[m.fPos]);D.strokeCommands.beginGradientFill(m.buffer.o[m.oPos],m.buffer.ii[m.iiPos],m.buffer.ff[m.ffPos],m.buffer.ii[m.iiPos+1],m.buffer.o[m.oPos+1],m.buffer.o[m.oPos+2],m.buffer.o[m.oPos+3],m.buffer.f[m.fPos])}else if(m==ba.BEGIN_SHADER_FILL){switch(d.prev._hx_index){case 0:d.oPos+= +2;d.bPos+=2;break;case 1:d.iPos+=1;d.fPos+=1;break;case 2:d.oPos+=4;d.iiPos+=2;d.ffPos+=1;d.fPos+=1;break;case 3:d.oPos+=1;break;case 4:d.fPos+=6;break;case 5:d.fPos+=4;break;case 6:d.fPos+=3;break;case 7:d.fPos+=4;break;case 8:d.oPos+=3;break;case 9:d.fPos+=4;break;case 10:d.fPos+=5;d.oPos+=1;break;case 12:d.oPos+=4;break;case 14:d.oPos+=2;d.bPos+=2;break;case 15:d.oPos+=4;d.iiPos+=2;d.ffPos+=1;d.fPos+=1;break;case 16:d.oPos+=4;d.iPos+=1;d.fPos+=2;d.bPos+=1;break;case 17:d.fPos+=2;break;case 18:d.fPos+= +2;break;case 19:d.oPos+=1;break;case 20:d.oPos+=1}d.prev=ba.BEGIN_SHADER_FILL;m=d;D.fillCommands.beginShaderFill(m.buffer.o[m.oPos]);D.strokeCommands.beginShaderFill(m.buffer.o[m.oPos])}else{switch(d.prev._hx_index){case 0:d.oPos+=2;d.bPos+=2;break;case 1:d.iPos+=1;d.fPos+=1;break;case 2:d.oPos+=4;d.iiPos+=2;d.ffPos+=1;d.fPos+=1;break;case 3:d.oPos+=1;break;case 4:d.fPos+=6;break;case 5:d.fPos+=4;break;case 6:d.fPos+=3;break;case 7:d.fPos+=4;break;case 8:d.oPos+=3;break;case 9:d.fPos+=4;break;case 10:d.fPos+= +5;d.oPos+=1;break;case 12:d.oPos+=4;break;case 14:d.oPos+=2;d.bPos+=2;break;case 15:d.oPos+=4;d.iiPos+=2;d.ffPos+=1;d.fPos+=1;break;case 16:d.oPos+=4;d.iPos+=1;d.fPos+=2;d.bPos+=1;break;case 17:d.fPos+=2;break;case 18:d.fPos+=2;break;case 19:d.oPos+=1;break;case 20:d.oPos+=1}d.prev=ba.BEGIN_FILL;m=d;D.fillCommands.beginFill(m.buffer.i[m.iPos],1);D.strokeCommands.beginFill(m.buffer.i[m.iPos],1)}break;case 4:switch(d.prev._hx_index){case 0:d.oPos+=2;d.bPos+=2;break;case 1:d.iPos+=1;d.fPos+=1;break; +case 2:d.oPos+=4;d.iiPos+=2;d.ffPos+=1;d.fPos+=1;break;case 3:d.oPos+=1;break;case 4:d.fPos+=6;break;case 5:d.fPos+=4;break;case 6:d.fPos+=3;break;case 7:d.fPos+=4;break;case 8:d.oPos+=3;break;case 9:d.fPos+=4;break;case 10:d.fPos+=5;d.oPos+=1;break;case 12:d.oPos+=4;break;case 14:d.oPos+=2;d.bPos+=2;break;case 15:d.oPos+=4;d.iiPos+=2;d.ffPos+=1;d.fPos+=1;break;case 16:d.oPos+=4;d.iPos+=1;d.fPos+=2;d.bPos+=1;break;case 17:d.fPos+=2;break;case 18:d.fPos+=2;break;case 19:d.oPos+=1;break;case 20:d.oPos+= +1}d.prev=ba.CUBIC_CURVE_TO;m=d;D.fillCommands.cubicCurveTo(m.buffer.f[m.fPos],m.buffer.f[m.fPos+1],m.buffer.f[m.fPos+2],m.buffer.f[m.fPos+3],m.buffer.f[m.fPos+4],m.buffer.f[m.fPos+5]);D.strokeCommands.cubicCurveTo(m.buffer.f[m.fPos],m.buffer.f[m.fPos+1],m.buffer.f[m.fPos+2],m.buffer.f[m.fPos+3],m.buffer.f[m.fPos+4],m.buffer.f[m.fPos+5]);break;case 5:switch(d.prev._hx_index){case 0:d.oPos+=2;d.bPos+=2;break;case 1:d.iPos+=1;d.fPos+=1;break;case 2:d.oPos+=4;d.iiPos+=2;d.ffPos+=1;d.fPos+=1;break;case 3:d.oPos+= +1;break;case 4:d.fPos+=6;break;case 5:d.fPos+=4;break;case 6:d.fPos+=3;break;case 7:d.fPos+=4;break;case 8:d.oPos+=3;break;case 9:d.fPos+=4;break;case 10:d.fPos+=5;d.oPos+=1;break;case 12:d.oPos+=4;break;case 14:d.oPos+=2;d.bPos+=2;break;case 15:d.oPos+=4;d.iiPos+=2;d.ffPos+=1;d.fPos+=1;break;case 16:d.oPos+=4;d.iPos+=1;d.fPos+=2;d.bPos+=1;break;case 17:d.fPos+=2;break;case 18:d.fPos+=2;break;case 19:d.oPos+=1;break;case 20:d.oPos+=1}d.prev=ba.CURVE_TO;m=d;D.fillCommands.curveTo(m.buffer.f[m.fPos], +m.buffer.f[m.fPos+1],m.buffer.f[m.fPos+2],m.buffer.f[m.fPos+3]);D.strokeCommands.curveTo(m.buffer.f[m.fPos],m.buffer.f[m.fPos+1],m.buffer.f[m.fPos+2],m.buffer.f[m.fPos+3]);break;case 6:switch(d.prev._hx_index){case 0:d.oPos+=2;d.bPos+=2;break;case 1:d.iPos+=1;d.fPos+=1;break;case 2:d.oPos+=4;d.iiPos+=2;d.ffPos+=1;d.fPos+=1;break;case 3:d.oPos+=1;break;case 4:d.fPos+=6;break;case 5:d.fPos+=4;break;case 6:d.fPos+=3;break;case 7:d.fPos+=4;break;case 8:d.oPos+=3;break;case 9:d.fPos+=4;break;case 10:d.fPos+= +5;d.oPos+=1;break;case 12:d.oPos+=4;break;case 14:d.oPos+=2;d.bPos+=2;break;case 15:d.oPos+=4;d.iiPos+=2;d.ffPos+=1;d.fPos+=1;break;case 16:d.oPos+=4;d.iPos+=1;d.fPos+=2;d.bPos+=1;break;case 17:d.fPos+=2;break;case 18:d.fPos+=2;break;case 19:d.oPos+=1;break;case 20:d.oPos+=1}d.prev=ba.DRAW_CIRCLE;m=d;D.fillCommands.drawCircle(m.buffer.f[m.fPos],m.buffer.f[m.fPos+1],m.buffer.f[m.fPos+2]);D.strokeCommands.drawCircle(m.buffer.f[m.fPos],m.buffer.f[m.fPos+1],m.buffer.f[m.fPos+2]);break;case 7:switch(d.prev._hx_index){case 0:d.oPos+= +2;d.bPos+=2;break;case 1:d.iPos+=1;d.fPos+=1;break;case 2:d.oPos+=4;d.iiPos+=2;d.ffPos+=1;d.fPos+=1;break;case 3:d.oPos+=1;break;case 4:d.fPos+=6;break;case 5:d.fPos+=4;break;case 6:d.fPos+=3;break;case 7:d.fPos+=4;break;case 8:d.oPos+=3;break;case 9:d.fPos+=4;break;case 10:d.fPos+=5;d.oPos+=1;break;case 12:d.oPos+=4;break;case 14:d.oPos+=2;d.bPos+=2;break;case 15:d.oPos+=4;d.iiPos+=2;d.ffPos+=1;d.fPos+=1;break;case 16:d.oPos+=4;d.iPos+=1;d.fPos+=2;d.bPos+=1;break;case 17:d.fPos+=2;break;case 18:d.fPos+= +2;break;case 19:d.oPos+=1;break;case 20:d.oPos+=1}d.prev=ba.DRAW_ELLIPSE;m=d;D.fillCommands.drawEllipse(m.buffer.f[m.fPos],m.buffer.f[m.fPos+1],m.buffer.f[m.fPos+2],m.buffer.f[m.fPos+3]);D.strokeCommands.drawEllipse(m.buffer.f[m.fPos],m.buffer.f[m.fPos+1],m.buffer.f[m.fPos+2],m.buffer.f[m.fPos+3]);break;case 9:switch(d.prev._hx_index){case 0:d.oPos+=2;d.bPos+=2;break;case 1:d.iPos+=1;d.fPos+=1;break;case 2:d.oPos+=4;d.iiPos+=2;d.ffPos+=1;d.fPos+=1;break;case 3:d.oPos+=1;break;case 4:d.fPos+=6;break; +case 5:d.fPos+=4;break;case 6:d.fPos+=3;break;case 7:d.fPos+=4;break;case 8:d.oPos+=3;break;case 9:d.fPos+=4;break;case 10:d.fPos+=5;d.oPos+=1;break;case 12:d.oPos+=4;break;case 14:d.oPos+=2;d.bPos+=2;break;case 15:d.oPos+=4;d.iiPos+=2;d.ffPos+=1;d.fPos+=1;break;case 16:d.oPos+=4;d.iPos+=1;d.fPos+=2;d.bPos+=1;break;case 17:d.fPos+=2;break;case 18:d.fPos+=2;break;case 19:d.oPos+=1;break;case 20:d.oPos+=1}d.prev=ba.DRAW_RECT;m=d;D.fillCommands.drawRect(m.buffer.f[m.fPos],m.buffer.f[m.fPos+1],m.buffer.f[m.fPos+ +2],m.buffer.f[m.fPos+3]);D.strokeCommands.drawRect(m.buffer.f[m.fPos],m.buffer.f[m.fPos+1],m.buffer.f[m.fPos+2],m.buffer.f[m.fPos+3]);break;case 10:switch(d.prev._hx_index){case 0:d.oPos+=2;d.bPos+=2;break;case 1:d.iPos+=1;d.fPos+=1;break;case 2:d.oPos+=4;d.iiPos+=2;d.ffPos+=1;d.fPos+=1;break;case 3:d.oPos+=1;break;case 4:d.fPos+=6;break;case 5:d.fPos+=4;break;case 6:d.fPos+=3;break;case 7:d.fPos+=4;break;case 8:d.oPos+=3;break;case 9:d.fPos+=4;break;case 10:d.fPos+=5;d.oPos+=1;break;case 12:d.oPos+= +4;break;case 14:d.oPos+=2;d.bPos+=2;break;case 15:d.oPos+=4;d.iiPos+=2;d.ffPos+=1;d.fPos+=1;break;case 16:d.oPos+=4;d.iPos+=1;d.fPos+=2;d.bPos+=1;break;case 17:d.fPos+=2;break;case 18:d.fPos+=2;break;case 19:d.oPos+=1;break;case 20:d.oPos+=1}d.prev=ba.DRAW_ROUND_RECT;m=d;D.fillCommands.drawRoundRect(m.buffer.f[m.fPos],m.buffer.f[m.fPos+1],m.buffer.f[m.fPos+2],m.buffer.f[m.fPos+3],m.buffer.f[m.fPos+4],m.buffer.o[m.oPos]);D.strokeCommands.drawRoundRect(m.buffer.f[m.fPos],m.buffer.f[m.fPos+1],m.buffer.f[m.fPos+ +2],m.buffer.f[m.fPos+3],m.buffer.f[m.fPos+4],m.buffer.o[m.oPos]);break;case 13:switch(d.prev._hx_index){case 0:d.oPos+=2;d.bPos+=2;break;case 1:d.iPos+=1;d.fPos+=1;break;case 2:d.oPos+=4;d.iiPos+=2;d.ffPos+=1;d.fPos+=1;break;case 3:d.oPos+=1;break;case 4:d.fPos+=6;break;case 5:d.fPos+=4;break;case 6:d.fPos+=3;break;case 7:d.fPos+=4;break;case 8:d.oPos+=3;break;case 9:d.fPos+=4;break;case 10:d.fPos+=5;d.oPos+=1;break;case 12:d.oPos+=4;break;case 14:d.oPos+=2;d.bPos+=2;break;case 15:d.oPos+=4;d.iiPos+= +2;d.ffPos+=1;d.fPos+=1;break;case 16:d.oPos+=4;d.iPos+=1;d.fPos+=2;d.bPos+=1;break;case 17:d.fPos+=2;break;case 18:d.fPos+=2;break;case 19:d.oPos+=1;break;case 20:d.oPos+=1}d.prev=ba.END_FILL;D.endFill();if(D.hasFill&&D.context.isPointInPath(b,c,D.windingRule))return d.destroy(),a.__canvas=e,a.__context=f,!0;D.endStroke();if(D.hasStroke&&D.context.isPointInStroke(b,c))return d.destroy(),a.__canvas=e,a.__context=f,!0;D.hasFill=!1;D.bitmapFill=null;break;case 14:switch(d.prev._hx_index){case 0:d.oPos+= +2;d.bPos+=2;break;case 1:d.iPos+=1;d.fPos+=1;break;case 2:d.oPos+=4;d.iiPos+=2;d.ffPos+=1;d.fPos+=1;break;case 3:d.oPos+=1;break;case 4:d.fPos+=6;break;case 5:d.fPos+=4;break;case 6:d.fPos+=3;break;case 7:d.fPos+=4;break;case 8:d.oPos+=3;break;case 9:d.fPos+=4;break;case 10:d.fPos+=5;d.oPos+=1;break;case 12:d.oPos+=4;break;case 14:d.oPos+=2;d.bPos+=2;break;case 15:d.oPos+=4;d.iiPos+=2;d.ffPos+=1;d.fPos+=1;break;case 16:d.oPos+=4;d.iPos+=1;d.fPos+=2;d.bPos+=1;break;case 17:d.fPos+=2;break;case 18:d.fPos+= +2;break;case 19:d.oPos+=1;break;case 20:d.oPos+=1}d.prev=ba.LINE_BITMAP_STYLE;m=d;D.strokeCommands.lineBitmapStyle(m.buffer.o[m.oPos],m.buffer.o[m.oPos+1],m.buffer.b[m.bPos],m.buffer.b[m.bPos+1]);break;case 15:switch(d.prev._hx_index){case 0:d.oPos+=2;d.bPos+=2;break;case 1:d.iPos+=1;d.fPos+=1;break;case 2:d.oPos+=4;d.iiPos+=2;d.ffPos+=1;d.fPos+=1;break;case 3:d.oPos+=1;break;case 4:d.fPos+=6;break;case 5:d.fPos+=4;break;case 6:d.fPos+=3;break;case 7:d.fPos+=4;break;case 8:d.oPos+=3;break;case 9:d.fPos+= +4;break;case 10:d.fPos+=5;d.oPos+=1;break;case 12:d.oPos+=4;break;case 14:d.oPos+=2;d.bPos+=2;break;case 15:d.oPos+=4;d.iiPos+=2;d.ffPos+=1;d.fPos+=1;break;case 16:d.oPos+=4;d.iPos+=1;d.fPos+=2;d.bPos+=1;break;case 17:d.fPos+=2;break;case 18:d.fPos+=2;break;case 19:d.oPos+=1;break;case 20:d.oPos+=1}d.prev=ba.LINE_GRADIENT_STYLE;m=d;D.strokeCommands.lineGradientStyle(m.buffer.o[m.oPos],m.buffer.ii[m.iiPos],m.buffer.ff[m.ffPos],m.buffer.ii[m.iiPos+1],m.buffer.o[m.oPos+1],m.buffer.o[m.oPos+2],m.buffer.o[m.oPos+ +3],m.buffer.f[m.fPos]);break;case 16:switch(d.prev._hx_index){case 0:d.oPos+=2;d.bPos+=2;break;case 1:d.iPos+=1;d.fPos+=1;break;case 2:d.oPos+=4;d.iiPos+=2;d.ffPos+=1;d.fPos+=1;break;case 3:d.oPos+=1;break;case 4:d.fPos+=6;break;case 5:d.fPos+=4;break;case 6:d.fPos+=3;break;case 7:d.fPos+=4;break;case 8:d.oPos+=3;break;case 9:d.fPos+=4;break;case 10:d.fPos+=5;d.oPos+=1;break;case 12:d.oPos+=4;break;case 14:d.oPos+=2;d.bPos+=2;break;case 15:d.oPos+=4;d.iiPos+=2;d.ffPos+=1;d.fPos+=1;break;case 16:d.oPos+= +4;d.iPos+=1;d.fPos+=2;d.bPos+=1;break;case 17:d.fPos+=2;break;case 18:d.fPos+=2;break;case 19:d.oPos+=1;break;case 20:d.oPos+=1}d.prev=ba.LINE_STYLE;m=d;D.strokeCommands.lineStyle(m.buffer.o[m.oPos],m.buffer.i[m.iPos],1,m.buffer.b[m.bPos],m.buffer.o[m.oPos+1],m.buffer.o[m.oPos+2],m.buffer.o[m.oPos+3],m.buffer.f[m.fPos+1]);break;case 17:switch(d.prev._hx_index){case 0:d.oPos+=2;d.bPos+=2;break;case 1:d.iPos+=1;d.fPos+=1;break;case 2:d.oPos+=4;d.iiPos+=2;d.ffPos+=1;d.fPos+=1;break;case 3:d.oPos+=1; +break;case 4:d.fPos+=6;break;case 5:d.fPos+=4;break;case 6:d.fPos+=3;break;case 7:d.fPos+=4;break;case 8:d.oPos+=3;break;case 9:d.fPos+=4;break;case 10:d.fPos+=5;d.oPos+=1;break;case 12:d.oPos+=4;break;case 14:d.oPos+=2;d.bPos+=2;break;case 15:d.oPos+=4;d.iiPos+=2;d.ffPos+=1;d.fPos+=1;break;case 16:d.oPos+=4;d.iPos+=1;d.fPos+=2;d.bPos+=1;break;case 17:d.fPos+=2;break;case 18:d.fPos+=2;break;case 19:d.oPos+=1;break;case 20:d.oPos+=1}d.prev=ba.LINE_TO;m=d;D.fillCommands.lineTo(m.buffer.f[m.fPos],m.buffer.f[m.fPos+ +1]);D.strokeCommands.lineTo(m.buffer.f[m.fPos],m.buffer.f[m.fPos+1]);break;case 18:switch(d.prev._hx_index){case 0:d.oPos+=2;d.bPos+=2;break;case 1:d.iPos+=1;d.fPos+=1;break;case 2:d.oPos+=4;d.iiPos+=2;d.ffPos+=1;d.fPos+=1;break;case 3:d.oPos+=1;break;case 4:d.fPos+=6;break;case 5:d.fPos+=4;break;case 6:d.fPos+=3;break;case 7:d.fPos+=4;break;case 8:d.oPos+=3;break;case 9:d.fPos+=4;break;case 10:d.fPos+=5;d.oPos+=1;break;case 12:d.oPos+=4;break;case 14:d.oPos+=2;d.bPos+=2;break;case 15:d.oPos+=4;d.iiPos+= +2;d.ffPos+=1;d.fPos+=1;break;case 16:d.oPos+=4;d.iPos+=1;d.fPos+=2;d.bPos+=1;break;case 17:d.fPos+=2;break;case 18:d.fPos+=2;break;case 19:d.oPos+=1;break;case 20:d.oPos+=1}d.prev=ba.MOVE_TO;m=d;D.fillCommands.moveTo(m.buffer.f[m.fPos],m.buffer.f[m.fPos+1]);D.strokeCommands.moveTo(m.buffer.f[m.fPos],m.buffer.f[m.fPos+1]);break;case 21:D.windingRule="evenodd";break;case 22:D.windingRule="nonzero";break;default:switch(d.prev._hx_index){case 0:d.oPos+=2;d.bPos+=2;break;case 1:d.iPos+=1;d.fPos+=1;break; +case 2:d.oPos+=4;d.iiPos+=2;d.ffPos+=1;d.fPos+=1;break;case 3:d.oPos+=1;break;case 4:d.fPos+=6;break;case 5:d.fPos+=4;break;case 6:d.fPos+=3;break;case 7:d.fPos+=4;break;case 8:d.oPos+=3;break;case 9:d.fPos+=4;break;case 10:d.fPos+=5;d.oPos+=1;break;case 12:d.oPos+=4;break;case 14:d.oPos+=2;d.bPos+=2;break;case 15:d.oPos+=4;d.iiPos+=2;d.ffPos+=1;d.fPos+=1;break;case 16:d.oPos+=4;d.iPos+=1;d.fPos+=2;d.bPos+=1;break;case 17:d.fPos+=2;break;case 18:d.fPos+=2;break;case 19:d.oPos+=1;break;case 20:d.oPos+= +1}d.prev=m}}h=!1;0<D.fillCommands.get_length()&&D.endFill();D.hasFill&&D.context.isPointInPath(b,c,D.windingRule)&&(h=!0);0<D.strokeCommands.get_length()&&D.endStroke();D.hasStroke&&D.context.isPointInStroke(b,c)&&(h=!0);d.destroy();a.__canvas=e;a.__context=f;return h};D.isCCW=function(a,b,c,d,e,f){return 0>(c-a)*(f-b)-(d-b)*(e-a)};D.normalizeUVT=function(a,b){null==b&&(b=!1);for(var c=-Infinity,d,e=a.get_length(),f=1,h=e+1;f<h;)d=f++,b&&0==d%3||(d=a.get(d-1),c<d&&(c=d));if(!b)return{max:c,uvt:a}; +var l=ub.toFloatVector(null);f=1;for(h=e+1;f<h;)d=f++,b&&0==d%3||l.push(a.get(d-1));return{max:c,uvt:l}};D.playCommands=function(a,b){null==b&&(b=!1);D.bounds=D.graphics.__bounds;var c=D.bounds.x,d=D.bounds.y,e=0,f=0,h=!1,l=0,t=0,m=!1;D.windingRule="evenodd";D.setSmoothing(!0);var k=!1,p=new Vf(a),n,r,q,v=null,u=null,w=a.types,B=0,E=a.get_length();a:for(;B<E;){var C=B++,N=w[C];switch(N._hx_index){case 0:switch(p.prev._hx_index){case 0:p.oPos+=2;p.bPos+=2;break;case 1:p.iPos+=1;p.fPos+=1;break;case 2:p.oPos+= +4;p.iiPos+=2;p.ffPos+=1;p.fPos+=1;break;case 3:p.oPos+=1;break;case 4:p.fPos+=6;break;case 5:p.fPos+=4;break;case 6:p.fPos+=3;break;case 7:p.fPos+=4;break;case 8:p.oPos+=3;break;case 9:p.fPos+=4;break;case 10:p.fPos+=5;p.oPos+=1;break;case 12:p.oPos+=4;break;case 14:p.oPos+=2;p.bPos+=2;break;case 15:p.oPos+=4;p.iiPos+=2;p.ffPos+=1;p.fPos+=1;break;case 16:p.oPos+=4;p.iPos+=1;p.fPos+=2;p.bPos+=1;break;case 17:p.fPos+=2;break;case 18:p.fPos+=2;break;case 19:p.oPos+=1;break;case 20:p.oPos+=1}p.prev=ba.BEGIN_BITMAP_FILL; +var z=p;D.bitmapFill=z.buffer.o[z.oPos];D.context.fillStyle=D.createBitmapFill(z.buffer.o[z.oPos],z.buffer.b[z.bPos],z.buffer.b[z.bPos+1]);D.hasFill=!0;null!=z.buffer.o[z.oPos+1]?(D.pendingMatrix=z.buffer.o[z.oPos+1],D.inversePendingMatrix=z.buffer.o[z.oPos+1].clone(),D.inversePendingMatrix.invert()):(D.pendingMatrix=null,D.inversePendingMatrix=null);break;case 1:switch(p.prev._hx_index){case 0:p.oPos+=2;p.bPos+=2;break;case 1:p.iPos+=1;p.fPos+=1;break;case 2:p.oPos+=4;p.iiPos+=2;p.ffPos+=1;p.fPos+= +1;break;case 3:p.oPos+=1;break;case 4:p.fPos+=6;break;case 5:p.fPos+=4;break;case 6:p.fPos+=3;break;case 7:p.fPos+=4;break;case 8:p.oPos+=3;break;case 9:p.fPos+=4;break;case 10:p.fPos+=5;p.oPos+=1;break;case 12:p.oPos+=4;break;case 14:p.oPos+=2;p.bPos+=2;break;case 15:p.oPos+=4;p.iiPos+=2;p.ffPos+=1;p.fPos+=1;break;case 16:p.oPos+=4;p.iPos+=1;p.fPos+=2;p.bPos+=1;break;case 17:p.fPos+=2;break;case 18:p.fPos+=2;break;case 19:p.oPos+=1;break;case 20:p.oPos+=1}p.prev=ba.BEGIN_FILL;var A=p;if(.005>A.buffer.f[A.fPos])D.hasFill= +!1;else{if(1==A.buffer.f[A.fPos]){var Ha=J.hex(A.buffer.i[A.iPos]&16777215,6);D.context.fillStyle="#"+Ha}else{var F=(A.buffer.i[A.iPos]&16711680)>>>16;var H=(A.buffer.i[A.iPos]&65280)>>>8;var G=A.buffer.i[A.iPos]&255;D.context.fillStyle="rgba("+F+", "+H+", "+G+", "+A.buffer.f[A.fPos]+")"}D.bitmapFill=null;D.setSmoothing(!0);D.hasFill=!0}break;case 2:switch(p.prev._hx_index){case 0:p.oPos+=2;p.bPos+=2;break;case 1:p.iPos+=1;p.fPos+=1;break;case 2:p.oPos+=4;p.iiPos+=2;p.ffPos+=1;p.fPos+=1;break;case 3:p.oPos+= +1;break;case 4:p.fPos+=6;break;case 5:p.fPos+=4;break;case 6:p.fPos+=3;break;case 7:p.fPos+=4;break;case 8:p.oPos+=3;break;case 9:p.fPos+=4;break;case 10:p.fPos+=5;p.oPos+=1;break;case 12:p.oPos+=4;break;case 14:p.oPos+=2;p.bPos+=2;break;case 15:p.oPos+=4;p.iiPos+=2;p.ffPos+=1;p.fPos+=1;break;case 16:p.oPos+=4;p.iPos+=1;p.fPos+=2;p.bPos+=1;break;case 17:p.fPos+=2;break;case 18:p.fPos+=2;break;case 19:p.oPos+=1;break;case 20:p.oPos+=1}p.prev=ba.BEGIN_GRADIENT_FILL;var I=p;D.context.fillStyle=D.createGradientPattern(I.buffer.o[I.oPos], +I.buffer.ii[I.iiPos],I.buffer.ff[I.ffPos],I.buffer.ii[I.iiPos+1],I.buffer.o[I.oPos+1],I.buffer.o[I.oPos+2],I.buffer.o[I.oPos+3],I.buffer.f[I.fPos]);D.bitmapFill=null;D.setSmoothing(!0);D.hasFill=!0;break;case 3:switch(p.prev._hx_index){case 0:p.oPos+=2;p.bPos+=2;break;case 1:p.iPos+=1;p.fPos+=1;break;case 2:p.oPos+=4;p.iiPos+=2;p.ffPos+=1;p.fPos+=1;break;case 3:p.oPos+=1;break;case 4:p.fPos+=6;break;case 5:p.fPos+=4;break;case 6:p.fPos+=3;break;case 7:p.fPos+=4;break;case 8:p.oPos+=3;break;case 9:p.fPos+= +4;break;case 10:p.fPos+=5;p.oPos+=1;break;case 12:p.oPos+=4;break;case 14:p.oPos+=2;p.bPos+=2;break;case 15:p.oPos+=4;p.iiPos+=2;p.ffPos+=1;p.fPos+=1;break;case 16:p.oPos+=4;p.iPos+=1;p.fPos+=2;p.bPos+=1;break;case 17:p.fPos+=2;break;case 18:p.fPos+=2;break;case 19:p.oPos+=1;break;case 20:p.oPos+=1}p.prev=ba.BEGIN_SHADER_FILL;var L=p,y=L.buffer.o[L.oPos];0<y.inputCount&&(D.bitmapFill=y.inputs[0],D.context.fillStyle=D.createBitmapFill(D.bitmapFill,0!=y.inputWrap[0],5!=y.inputFilter[0]),D.hasFill=!0, +D.pendingMatrix=null,D.inversePendingMatrix=null);break;case 4:switch(p.prev._hx_index){case 0:p.oPos+=2;p.bPos+=2;break;case 1:p.iPos+=1;p.fPos+=1;break;case 2:p.oPos+=4;p.iiPos+=2;p.ffPos+=1;p.fPos+=1;break;case 3:p.oPos+=1;break;case 4:p.fPos+=6;break;case 5:p.fPos+=4;break;case 6:p.fPos+=3;break;case 7:p.fPos+=4;break;case 8:p.oPos+=3;break;case 9:p.fPos+=4;break;case 10:p.fPos+=5;p.oPos+=1;break;case 12:p.oPos+=4;break;case 14:p.oPos+=2;p.bPos+=2;break;case 15:p.oPos+=4;p.iiPos+=2;p.ffPos+=1; +p.fPos+=1;break;case 16:p.oPos+=4;p.iPos+=1;p.fPos+=2;p.bPos+=1;break;case 17:p.fPos+=2;break;case 18:p.fPos+=2;break;case 19:p.oPos+=1;break;case 20:p.oPos+=1}p.prev=ba.CUBIC_CURVE_TO;var K=p;k=!0;D.context.bezierCurveTo(K.buffer.f[K.fPos]-c,K.buffer.f[K.fPos+1]-d,K.buffer.f[K.fPos+2]-c,K.buffer.f[K.fPos+3]-d,K.buffer.f[K.fPos+4]-c,K.buffer.f[K.fPos+5]-d);break;case 5:switch(p.prev._hx_index){case 0:p.oPos+=2;p.bPos+=2;break;case 1:p.iPos+=1;p.fPos+=1;break;case 2:p.oPos+=4;p.iiPos+=2;p.ffPos+=1; +p.fPos+=1;break;case 3:p.oPos+=1;break;case 4:p.fPos+=6;break;case 5:p.fPos+=4;break;case 6:p.fPos+=3;break;case 7:p.fPos+=4;break;case 8:p.oPos+=3;break;case 9:p.fPos+=4;break;case 10:p.fPos+=5;p.oPos+=1;break;case 12:p.oPos+=4;break;case 14:p.oPos+=2;p.bPos+=2;break;case 15:p.oPos+=4;p.iiPos+=2;p.ffPos+=1;p.fPos+=1;break;case 16:p.oPos+=4;p.iPos+=1;p.fPos+=2;p.bPos+=1;break;case 17:p.fPos+=2;break;case 18:p.fPos+=2;break;case 19:p.oPos+=1;break;case 20:p.oPos+=1}p.prev=ba.CURVE_TO;var P=p;k=!0; +D.context.quadraticCurveTo(P.buffer.f[P.fPos]-c,P.buffer.f[P.fPos+1]-d,P.buffer.f[P.fPos+2]-c,P.buffer.f[P.fPos+3]-d);break;case 6:switch(p.prev._hx_index){case 0:p.oPos+=2;p.bPos+=2;break;case 1:p.iPos+=1;p.fPos+=1;break;case 2:p.oPos+=4;p.iiPos+=2;p.ffPos+=1;p.fPos+=1;break;case 3:p.oPos+=1;break;case 4:p.fPos+=6;break;case 5:p.fPos+=4;break;case 6:p.fPos+=3;break;case 7:p.fPos+=4;break;case 8:p.oPos+=3;break;case 9:p.fPos+=4;break;case 10:p.fPos+=5;p.oPos+=1;break;case 12:p.oPos+=4;break;case 14:p.oPos+= +2;p.bPos+=2;break;case 15:p.oPos+=4;p.iiPos+=2;p.ffPos+=1;p.fPos+=1;break;case 16:p.oPos+=4;p.iPos+=1;p.fPos+=2;p.bPos+=1;break;case 17:p.fPos+=2;break;case 18:p.fPos+=2;break;case 19:p.oPos+=1;break;case 20:p.oPos+=1}p.prev=ba.DRAW_CIRCLE;var O=p;k=!0;D.context.moveTo(O.buffer.f[O.fPos]-c+O.buffer.f[O.fPos+2],O.buffer.f[O.fPos+1]-d);D.context.arc(O.buffer.f[O.fPos]-c,O.buffer.f[O.fPos+1]-d,O.buffer.f[O.fPos+2],0,2*Math.PI,!0);break;case 7:switch(p.prev._hx_index){case 0:p.oPos+=2;p.bPos+=2;break; +case 1:p.iPos+=1;p.fPos+=1;break;case 2:p.oPos+=4;p.iiPos+=2;p.ffPos+=1;p.fPos+=1;break;case 3:p.oPos+=1;break;case 4:p.fPos+=6;break;case 5:p.fPos+=4;break;case 6:p.fPos+=3;break;case 7:p.fPos+=4;break;case 8:p.oPos+=3;break;case 9:p.fPos+=4;break;case 10:p.fPos+=5;p.oPos+=1;break;case 12:p.oPos+=4;break;case 14:p.oPos+=2;p.bPos+=2;break;case 15:p.oPos+=4;p.iiPos+=2;p.ffPos+=1;p.fPos+=1;break;case 16:p.oPos+=4;p.iPos+=1;p.fPos+=2;p.bPos+=1;break;case 17:p.fPos+=2;break;case 18:p.fPos+=2;break;case 19:p.oPos+= +1;break;case 20:p.oPos+=1}p.prev=ba.DRAW_ELLIPSE;var Z=p;k=!0;var ya=Z.buffer.f[Z.fPos];var R=Z.buffer.f[Z.fPos+1];var S=Z.buffer.f[Z.fPos+2];var X=Z.buffer.f[Z.fPos+3];ya-=c;R-=d;var U=S/2*.5522848;var Y=X/2*.5522848;var Q=ya+S;var M=R+X;var V=ya+S/2;var T=R+X/2;D.context.moveTo(ya,T);D.context.bezierCurveTo(ya,T-Y,V-U,R,V,R);D.context.bezierCurveTo(V+U,R,Q,T-Y,Q,T);D.context.bezierCurveTo(Q,T+Y,V+U,M,V,M);D.context.bezierCurveTo(V-U,M,ya,T+Y,ya,T);break;case 8:switch(p.prev._hx_index){case 0:p.oPos+= +2;p.bPos+=2;break;case 1:p.iPos+=1;p.fPos+=1;break;case 2:p.oPos+=4;p.iiPos+=2;p.ffPos+=1;p.fPos+=1;break;case 3:p.oPos+=1;break;case 4:p.fPos+=6;break;case 5:p.fPos+=4;break;case 6:p.fPos+=3;break;case 7:p.fPos+=4;break;case 8:p.oPos+=3;break;case 9:p.fPos+=4;break;case 10:p.fPos+=5;p.oPos+=1;break;case 12:p.oPos+=4;break;case 14:p.oPos+=2;p.bPos+=2;break;case 15:p.oPos+=4;p.iiPos+=2;p.ffPos+=1;p.fPos+=1;break;case 16:p.oPos+=4;p.iPos+=1;p.fPos+=2;p.bPos+=1;break;case 17:p.fPos+=2;break;case 18:p.fPos+= +2;break;case 19:p.oPos+=1;break;case 20:p.oPos+=1}p.prev=ba.DRAW_QUADS;var W=p,aa=W.buffer.o[W.oPos],Pd=W.buffer.o[W.oPos+1],ca=W.buffer.o[W.oPos+2],Hh=null!=Pd,pa=!1,ia=!1,ha=Hh?Pd.get_length():Math.floor(aa.get_length()/4);if(0==ha)return;null!=ca&&(ca.get_length()>=6*ha?ia=pa=!0:ca.get_length()>=4*ha?pa=!0:ca.get_length()>=2*ha&&(ia=!0));var da=fa.__pool.get(),Za=Aa.__pool.get(),ja=D.graphics.__renderTransform;D.context.save();for(var ka=0,na=ha;ka<na;){var Fa=ka++;var la=Hh?4*Pd.get(Fa):4*Fa; +if(!(0>la||(da.setTo(aa.get(la),aa.get(la+1),aa.get(la+2),aa.get(la+3)),0>=da.width||0>=da.height))){if(pa&&ia){var ne=6*Fa;Za.setTo(ca.get(ne),ca.get(ne+1),ca.get(ne+2),ca.get(ne+3),ca.get(ne+4),ca.get(ne+5))}else pa?(ne=4*Fa,Za.setTo(ca.get(ne),ca.get(ne+1),ca.get(ne+2),ca.get(ne+3),da.x,da.y)):ia?(ne=2*Fa,Za.tx=ca.get(ne),Za.ty=ca.get(ne+1)):(Za.tx=da.x,Za.ty=da.y);Za.tx+=e-c;Za.ty+=f-d;Za.concat(ja);D.context.setTransform(Za.a,Za.b,Za.c,Za.d,Za.tx,Za.ty);null!=D.bitmapFill?D.context.drawImage(D.bitmapFill.image.get_src(), +da.x,da.y,da.width,da.height,0,0,da.width,da.height):D.context.fillRect(0,0,da.width,da.height)}}fa.__pool.release(da);Aa.__pool.release(Za);D.context.restore();break;case 9:switch(p.prev._hx_index){case 0:p.oPos+=2;p.bPos+=2;break;case 1:p.iPos+=1;p.fPos+=1;break;case 2:p.oPos+=4;p.iiPos+=2;p.ffPos+=1;p.fPos+=1;break;case 3:p.oPos+=1;break;case 4:p.fPos+=6;break;case 5:p.fPos+=4;break;case 6:p.fPos+=3;break;case 7:p.fPos+=4;break;case 8:p.oPos+=3;break;case 9:p.fPos+=4;break;case 10:p.fPos+=5;p.oPos+= +1;break;case 12:p.oPos+=4;break;case 14:p.oPos+=2;p.bPos+=2;break;case 15:p.oPos+=4;p.iiPos+=2;p.ffPos+=1;p.fPos+=1;break;case 16:p.oPos+=4;p.iPos+=1;p.fPos+=2;p.bPos+=1;break;case 17:p.fPos+=2;break;case 18:p.fPos+=2;break;case 19:p.oPos+=1;break;case 20:p.oPos+=1}p.prev=ba.DRAW_RECT;var ea=p;var sa=!1;if(null!=D.bitmapFill&&!D.hitTesting){var Qc=q=r=n=0;var ta=!0;if(null!=D.pendingMatrix)if(0!=D.pendingMatrix.b||0!=D.pendingMatrix.c)ta=!1;else{null==v&&(v=oa.__pool.get());null==u&&(u=oa.__pool.get()); +v.setTo(ea.buffer.f[ea.fPos],ea.buffer.f[ea.fPos+1]);var rg=D.inversePendingMatrix,ua=v.x,wa=v.y;v.x=ua*rg.a+wa*rg.c+rg.tx;v.y=ua*rg.b+wa*rg.d+rg.ty;u.setTo(ea.buffer.f[ea.fPos]+ea.buffer.f[ea.fPos+2],ea.buffer.f[ea.fPos+1]+ea.buffer.f[ea.fPos+3]);var ma=D.inversePendingMatrix,Ia=u.x,pf=u.y;u.x=Ia*ma.a+pf*ma.c+ma.tx;u.y=Ia*ma.b+pf*ma.d+ma.ty;n=v.y;Qc=v.x;q=u.y;r=u.x}else n=ea.buffer.f[ea.fPos+1],Qc=ea.buffer.f[ea.fPos],q=ea.buffer.f[ea.fPos+1]+ea.buffer.f[ea.fPos+3],r=ea.buffer.f[ea.fPos]+ea.buffer.f[ea.fPos+ +2];ta&&0<=n&&0<=Qc&&r<=D.bitmapFill.width&&q<=D.bitmapFill.height&&(sa=!0,D.hitTesting||D.context.drawImage(D.bitmapFill.image.get_src(),Qc,n,r-Qc,q-n,ea.buffer.f[ea.fPos]-c,ea.buffer.f[ea.fPos+1]-d,ea.buffer.f[ea.fPos+2],ea.buffer.f[ea.fPos+3]))}sa||(k=!0,D.context.rect(ea.buffer.f[ea.fPos]-c,ea.buffer.f[ea.fPos+1]-d,ea.buffer.f[ea.fPos+2],ea.buffer.f[ea.fPos+3]));break;case 10:switch(p.prev._hx_index){case 0:p.oPos+=2;p.bPos+=2;break;case 1:p.iPos+=1;p.fPos+=1;break;case 2:p.oPos+=4;p.iiPos+=2; +p.ffPos+=1;p.fPos+=1;break;case 3:p.oPos+=1;break;case 4:p.fPos+=6;break;case 5:p.fPos+=4;break;case 6:p.fPos+=3;break;case 7:p.fPos+=4;break;case 8:p.oPos+=3;break;case 9:p.fPos+=4;break;case 10:p.fPos+=5;p.oPos+=1;break;case 12:p.oPos+=4;break;case 14:p.oPos+=2;p.bPos+=2;break;case 15:p.oPos+=4;p.iiPos+=2;p.ffPos+=1;p.fPos+=1;break;case 16:p.oPos+=4;p.iPos+=1;p.fPos+=2;p.bPos+=1;break;case 17:p.fPos+=2;break;case 18:p.fPos+=2;break;case 19:p.oPos+=1;break;case 20:p.oPos+=1}p.prev=ba.DRAW_ROUND_RECT; +var qa=p;k=!0;D.drawRoundRect(qa.buffer.f[qa.fPos]-c,qa.buffer.f[qa.fPos+1]-d,qa.buffer.f[qa.fPos+2],qa.buffer.f[qa.fPos+3],qa.buffer.f[qa.fPos+4],qa.buffer.o[qa.oPos]);break;case 12:switch(p.prev._hx_index){case 0:p.oPos+=2;p.bPos+=2;break;case 1:p.iPos+=1;p.fPos+=1;break;case 2:p.oPos+=4;p.iiPos+=2;p.ffPos+=1;p.fPos+=1;break;case 3:p.oPos+=1;break;case 4:p.fPos+=6;break;case 5:p.fPos+=4;break;case 6:p.fPos+=3;break;case 7:p.fPos+=4;break;case 8:p.oPos+=3;break;case 9:p.fPos+=4;break;case 10:p.fPos+= +5;p.oPos+=1;break;case 12:p.oPos+=4;break;case 14:p.oPos+=2;p.bPos+=2;break;case 15:p.oPos+=4;p.iiPos+=2;p.ffPos+=1;p.fPos+=1;break;case 16:p.oPos+=4;p.iPos+=1;p.fPos+=2;p.bPos+=1;break;case 17:p.fPos+=2;break;case 18:p.fPos+=2;break;case 19:p.oPos+=1;break;case 20:p.oPos+=1}p.prev=ba.DRAW_TRIANGLES;var xa=p,va=xa.buffer.o[xa.oPos],df=xa.buffer.o[xa.oPos+1],ra=xa.buffer.o[xa.oPos+2],za=null,Ba=null==D.bitmapFill;if(Ba&&null!=ra)break a;if(!Ba){if(null==ra){ra=ub.toFloatVector(null);for(var fb=0,Ca= +va.get_length()/2|0;fb<Ca;){var Da=fb++;ra.push(va.get(2*Da)-c/D.bitmapFill.width);ra.push(va.get(2*Da+1)-d/D.bitmapFill.height)}}var Pb=ra.get_length()!=va.get_length(),Ea=D.normalizeUVT(ra,Pb),Ka=Ea.max;ra=Ea.uvt;za=1<Ka?D.createTempPatternCanvas(D.bitmapFill,D.bitmapRepeat,D.bounds.width|0,D.bounds.height|0):D.createTempPatternCanvas(D.bitmapFill,D.bitmapRepeat,D.bitmapFill.width,D.bitmapFill.height)}for(var Ga=0,Ma=df.get_length(),Ja,La,Na,Oa,Pa,Ta,Wa,$a,bb,Qa,Ra,Sa,Va,Xa,Ya,Zf,gb,ab,cb,db,eb, +ib,kb,lb,nb,ob,Le,qb;Ga<Ma;){Ja=Ga;La=Ga+1;Na=Ga+2;Oa=2*df.get(Ja);Pa=2*df.get(Ja)+1;Ta=2*df.get(La);Wa=2*df.get(La)+1;$a=2*df.get(Na);bb=2*df.get(Na)+1;Qa=va.get(Oa)-c;Ra=va.get(Pa)-d;Sa=va.get(Ta)-c;Va=va.get(Wa)-d;Xa=va.get($a)-c;Ya=va.get(bb)-d;switch(xa.buffer.o[xa.oPos+3]){case 0:if(0>(Sa-Qa)*(Ya-Ra)-(Va-Ra)*(Xa-Qa)){Ga+=3;continue}break;case 2:if(!(0>(Sa-Qa)*(Ya-Ra)-(Va-Ra)*(Xa-Qa))){Ga+=3;continue}}Ba?(D.context.beginPath(),D.context.moveTo(Qa,Ra),D.context.lineTo(Sa,Va),D.context.lineTo(Xa, +Ya),D.context.closePath(),D.hitTesting||D.context.fill(D.windingRule),Ga+=3):(Zf=ra.get(Oa)*za.width,ab=ra.get(Ta)*za.width,db=ra.get($a)*za.width,gb=ra.get(Pa)*za.height,cb=ra.get(Wa)*za.height,eb=ra.get(bb)*za.height,ib=Zf*(eb-cb)-ab*eb+db*cb+(ab-db)*gb,0==ib?(Ga+=3,D.context.restore()):(D.context.save(),D.context.beginPath(),D.context.moveTo(Qa,Ra),D.context.lineTo(Sa,Va),D.context.lineTo(Xa,Ya),D.context.closePath(),D.context.clip(),kb=-(gb*(Xa-Sa)-cb*Xa+eb*Sa+(cb-eb)*Qa)/ib,lb=(cb*Ya+gb*(Va- +Ya)-eb*Va+(eb-cb)*Ra)/ib,nb=(Zf*(Xa-Sa)-ab*Xa+db*Sa+(ab-db)*Qa)/ib,ob=-(ab*Ya+Zf*(Va-Ya)-db*Va+(db-ab)*Ra)/ib,Le=(Zf*(eb*Sa-cb*Xa)+gb*(ab*Xa-db*Sa)+(db*cb-ab*eb)*Qa)/ib,qb=(Zf*(eb*Va-cb*Ya)+gb*(ab*Ya-db*Va)+(db*cb-ab*eb)*Ra)/ib,D.context.transform(kb,lb,nb,ob,Le,qb),D.context.drawImage(za,0,0,za.width,za.height),D.context.restore(),Ga+=3))}break;case 14:switch(p.prev._hx_index){case 0:p.oPos+=2;p.bPos+=2;break;case 1:p.iPos+=1;p.fPos+=1;break;case 2:p.oPos+=4;p.iiPos+=2;p.ffPos+=1;p.fPos+=1;break; +case 3:p.oPos+=1;break;case 4:p.fPos+=6;break;case 5:p.fPos+=4;break;case 6:p.fPos+=3;break;case 7:p.fPos+=4;break;case 8:p.oPos+=3;break;case 9:p.fPos+=4;break;case 10:p.fPos+=5;p.oPos+=1;break;case 12:p.oPos+=4;break;case 14:p.oPos+=2;p.bPos+=2;break;case 15:p.oPos+=4;p.iiPos+=2;p.ffPos+=1;p.fPos+=1;break;case 16:p.oPos+=4;p.iPos+=1;p.fPos+=2;p.bPos+=1;break;case 17:p.fPos+=2;break;case 18:p.fPos+=2;break;case 19:p.oPos+=1;break;case 20:p.oPos+=1}p.prev=ba.LINE_BITMAP_STYLE;var mb=p;b&&D.hasStroke&& +D.closePath(!0);D.context.moveTo(e-c,f-d);D.context.strokeStyle=D.createBitmapFill(mb.buffer.o[mb.oPos],mb.buffer.b[mb.bPos],mb.buffer.b[mb.bPos+1]);D.hasStroke=!0;break;case 15:switch(p.prev._hx_index){case 0:p.oPos+=2;p.bPos+=2;break;case 1:p.iPos+=1;p.fPos+=1;break;case 2:p.oPos+=4;p.iiPos+=2;p.ffPos+=1;p.fPos+=1;break;case 3:p.oPos+=1;break;case 4:p.fPos+=6;break;case 5:p.fPos+=4;break;case 6:p.fPos+=3;break;case 7:p.fPos+=4;break;case 8:p.oPos+=3;break;case 9:p.fPos+=4;break;case 10:p.fPos+= +5;p.oPos+=1;break;case 12:p.oPos+=4;break;case 14:p.oPos+=2;p.bPos+=2;break;case 15:p.oPos+=4;p.iiPos+=2;p.ffPos+=1;p.fPos+=1;break;case 16:p.oPos+=4;p.iPos+=1;p.fPos+=2;p.bPos+=1;break;case 17:p.fPos+=2;break;case 18:p.fPos+=2;break;case 19:p.oPos+=1;break;case 20:p.oPos+=1}p.prev=ba.LINE_GRADIENT_STYLE;var hb=p;b&&D.hasStroke&&D.closePath(!0);D.context.moveTo(e-c,f-d);D.context.strokeStyle=D.createGradientPattern(hb.buffer.o[hb.oPos],hb.buffer.ii[hb.iiPos],hb.buffer.ff[hb.ffPos],hb.buffer.ii[hb.iiPos+ +1],hb.buffer.o[hb.oPos+1],hb.buffer.o[hb.oPos+2],hb.buffer.o[hb.oPos+3],hb.buffer.f[hb.fPos]);D.setSmoothing(!0);D.hasStroke=!0;break;case 16:switch(p.prev._hx_index){case 0:p.oPos+=2;p.bPos+=2;break;case 1:p.iPos+=1;p.fPos+=1;break;case 2:p.oPos+=4;p.iiPos+=2;p.ffPos+=1;p.fPos+=1;break;case 3:p.oPos+=1;break;case 4:p.fPos+=6;break;case 5:p.fPos+=4;break;case 6:p.fPos+=3;break;case 7:p.fPos+=4;break;case 8:p.oPos+=3;break;case 9:p.fPos+=4;break;case 10:p.fPos+=5;p.oPos+=1;break;case 12:p.oPos+=4; +break;case 14:p.oPos+=2;p.bPos+=2;break;case 15:p.oPos+=4;p.iiPos+=2;p.ffPos+=1;p.fPos+=1;break;case 16:p.oPos+=4;p.iPos+=1;p.fPos+=2;p.bPos+=1;break;case 17:p.fPos+=2;break;case 18:p.fPos+=2;break;case 19:p.oPos+=1;break;case 20:p.oPos+=1}p.prev=ba.LINE_STYLE;var Ua=p;b&&D.hasStroke&&D.closePath(!0);D.context.moveTo(e-c,f-d);if(null==Ua.buffer.o[Ua.oPos])D.hasStroke=!1;else{D.context.lineWidth=0<Ua.buffer.o[Ua.oPos]?Ua.buffer.o[Ua.oPos]:1;var sb=null==Ua.buffer.o[Ua.oPos+3]?"round":Wt.toString(Ua.buffer.o[Ua.oPos+ +3]).toLowerCase();D.context.lineJoin=sb;var tb=null==Ua.buffer.o[Ua.oPos+2]?"round":0==Ua.buffer.o[Ua.oPos+2]?"butt":Tt.toString(Ua.buffer.o[Ua.oPos+2]).toLowerCase();D.context.lineCap=tb;D.context.miterLimit=Ua.buffer.f[Ua.fPos+1];if(1==Ua.buffer.f[Ua.fPos]){var ac=J.hex(Ua.buffer.i[Ua.iPos]&16777215,6);D.context.strokeStyle="#"+ac}else F=(Ua.buffer.i[Ua.iPos]&16711680)>>>16,H=(Ua.buffer.i[Ua.iPos]&65280)>>>8,G=Ua.buffer.i[Ua.iPos]&255,D.context.strokeStyle="rgba("+F+", "+H+", "+G+", "+Ua.buffer.f[Ua.fPos]+ +")";D.setSmoothing(!0);D.hasStroke=!0}break;case 17:switch(p.prev._hx_index){case 0:p.oPos+=2;p.bPos+=2;break;case 1:p.iPos+=1;p.fPos+=1;break;case 2:p.oPos+=4;p.iiPos+=2;p.ffPos+=1;p.fPos+=1;break;case 3:p.oPos+=1;break;case 4:p.fPos+=6;break;case 5:p.fPos+=4;break;case 6:p.fPos+=3;break;case 7:p.fPos+=4;break;case 8:p.oPos+=3;break;case 9:p.fPos+=4;break;case 10:p.fPos+=5;p.oPos+=1;break;case 12:p.oPos+=4;break;case 14:p.oPos+=2;p.bPos+=2;break;case 15:p.oPos+=4;p.iiPos+=2;p.ffPos+=1;p.fPos+=1; +break;case 16:p.oPos+=4;p.iPos+=1;p.fPos+=2;p.bPos+=1;break;case 17:p.fPos+=2;break;case 18:p.fPos+=2;break;case 19:p.oPos+=1;break;case 20:p.oPos+=1}p.prev=ba.LINE_TO;var pb=p;k=!0;D.context.lineTo(pb.buffer.f[pb.fPos]-c,pb.buffer.f[pb.fPos+1]-d);e=pb.buffer.f[pb.fPos];f=pb.buffer.f[pb.fPos+1];e==l&&f==t&&(h=!0);break;case 18:switch(p.prev._hx_index){case 0:p.oPos+=2;p.bPos+=2;break;case 1:p.iPos+=1;p.fPos+=1;break;case 2:p.oPos+=4;p.iiPos+=2;p.ffPos+=1;p.fPos+=1;break;case 3:p.oPos+=1;break;case 4:p.fPos+= +6;break;case 5:p.fPos+=4;break;case 6:p.fPos+=3;break;case 7:p.fPos+=4;break;case 8:p.oPos+=3;break;case 9:p.fPos+=4;break;case 10:p.fPos+=5;p.oPos+=1;break;case 12:p.oPos+=4;break;case 14:p.oPos+=2;p.bPos+=2;break;case 15:p.oPos+=4;p.iiPos+=2;p.ffPos+=1;p.fPos+=1;break;case 16:p.oPos+=4;p.iPos+=1;p.fPos+=2;p.bPos+=1;break;case 17:p.fPos+=2;break;case 18:p.fPos+=2;break;case 19:p.oPos+=1;break;case 20:p.oPos+=1}p.prev=ba.MOVE_TO;var jb=p;D.context.moveTo(jb.buffer.f[jb.fPos]-c,jb.buffer.f[jb.fPos+ +1]-d);e=jb.buffer.f[jb.fPos];f=jb.buffer.f[jb.fPos+1];m&&jb.buffer.f[jb.fPos]!=l&&jb.buffer.f[jb.fPos+1]!=t&&(h=!0);l=jb.buffer.f[jb.fPos];t=jb.buffer.f[jb.fPos+1];m=!0;break;case 21:D.windingRule="evenodd";break;case 22:D.windingRule="nonzero";break;default:switch(p.prev._hx_index){case 0:p.oPos+=2;p.bPos+=2;break;case 1:p.iPos+=1;p.fPos+=1;break;case 2:p.oPos+=4;p.iiPos+=2;p.ffPos+=1;p.fPos+=1;break;case 3:p.oPos+=1;break;case 4:p.fPos+=6;break;case 5:p.fPos+=4;break;case 6:p.fPos+=3;break;case 7:p.fPos+= +4;break;case 8:p.oPos+=3;break;case 9:p.fPos+=4;break;case 10:p.fPos+=5;p.oPos+=1;break;case 12:p.oPos+=4;break;case 14:p.oPos+=2;p.bPos+=2;break;case 15:p.oPos+=4;p.iiPos+=2;p.ffPos+=1;p.fPos+=1;break;case 16:p.oPos+=4;p.iPos+=1;p.fPos+=2;p.bPos+=1;break;case 17:p.fPos+=2;break;case 18:p.fPos+=2;break;case 19:p.oPos+=1;break;case 20:p.oPos+=1}p.prev=N}}null!=v&&oa.__pool.release(v);null!=u&&oa.__pool.release(u);p.destroy();if(k){if(b&&D.hasStroke){if(D.hasFill){if(e!=l||f!=t)D.context.lineTo(l-c, +t-d),h=!0;h&&D.closePath(!0)}else h&&e==l&&f==t&&D.closePath(!0);D.hitTesting||D.context.stroke()}b||!D.hasFill&&null==D.bitmapFill||(D.context.translate(-D.bounds.x,-D.bounds.y),null!=D.pendingMatrix?(D.context.transform(D.pendingMatrix.a,D.pendingMatrix.b,D.pendingMatrix.c,D.pendingMatrix.d,D.pendingMatrix.tx,D.pendingMatrix.ty),D.hitTesting||D.context.fill(D.windingRule),D.context.transform(D.inversePendingMatrix.a,D.inversePendingMatrix.b,D.inversePendingMatrix.c,D.inversePendingMatrix.d,D.inversePendingMatrix.tx, +D.inversePendingMatrix.ty)):D.hitTesting||D.context.fill(D.windingRule),D.context.translate(D.bounds.x,D.bounds.y),D.context.closePath())}};D.render=function(a,b){a.__update(b.__worldTransform,b.__pixelRatio);a.__commands.__endBuffer();if(a.__softwareDirty&&a.__commands.get_dirty()){D.hitTesting=!1;D.graphics=a;D.allowSmoothing=b.__allowSmoothing;D.worldAlpha=b.__getAlpha(a.__owner.__worldAlpha);D.bounds=a.__bounds;var c=a.__width,d=a.__height;if(!a.__visible||0==a.__commands.get_length()||null== +D.bounds||1>c||1>d)a.__canvas=null,a.__context=null,a.__bitmap=null;else{null==a.__canvas&&(a.__canvas=window.document.createElement("canvas"),a.__context=a.__canvas.getContext("2d"));D.context=a.__context;var e=a.__renderTransform,f=a.__canvas,h=b.__pixelRatio,l=c*h|0,t=d*h|0;b.__setBlendModeContext(D.context,10);b.__isDOM?(f.width==l&&f.height==t?D.context.clearRect(0,0,l,t):(f.width=l,f.height=t,f.style.width=c+"px",f.style.height=d+"px"),c=a.__renderTransform,D.context.setTransform(c.a*h,c.b* +h,c.c*h,c.d*h,c.tx*h,c.ty*h)):(f.width==l&&f.height==t?(D.context.closePath(),D.context.setTransform(1,0,0,1,0,0),D.context.clearRect(0,0,l,t)):(f.width=c,f.height=d),D.context.setTransform(e.a,e.b,e.c,e.d,e.tx,e.ty));D.fillCommands.clear();D.strokeCommands.clear();D.hasFill=!1;D.hasStroke=!1;D.bitmapFill=null;h=D.bitmapRepeat=!1;d=c=0;D.windingRule="evenodd";e=new Vf(a.__commands);f=a.__commands.types;l=0;for(t=a.__commands.get_length();l<t;){var m=l++;m=f[m];switch(m._hx_index){case 0:case 1:case 2:case 3:D.endFill(); +D.endStroke();if(m==ba.BEGIN_BITMAP_FILL){switch(e.prev._hx_index){case 0:e.oPos+=2;e.bPos+=2;break;case 1:e.iPos+=1;e.fPos+=1;break;case 2:e.oPos+=4;e.iiPos+=2;e.ffPos+=1;e.fPos+=1;break;case 3:e.oPos+=1;break;case 4:e.fPos+=6;break;case 5:e.fPos+=4;break;case 6:e.fPos+=3;break;case 7:e.fPos+=4;break;case 8:e.oPos+=3;break;case 9:e.fPos+=4;break;case 10:e.fPos+=5;e.oPos+=1;break;case 12:e.oPos+=4;break;case 14:e.oPos+=2;e.bPos+=2;break;case 15:e.oPos+=4;e.iiPos+=2;e.ffPos+=1;e.fPos+=1;break;case 16:e.oPos+= +4;e.iPos+=1;e.fPos+=2;e.bPos+=1;break;case 17:e.fPos+=2;break;case 18:e.fPos+=2;break;case 19:e.oPos+=1;break;case 20:e.oPos+=1}e.prev=ba.BEGIN_BITMAP_FILL;m=e;D.fillCommands.beginBitmapFill(m.buffer.o[m.oPos],m.buffer.o[m.oPos+1],m.buffer.b[m.bPos],m.buffer.b[m.bPos+1]);D.strokeCommands.beginBitmapFill(m.buffer.o[m.oPos],m.buffer.o[m.oPos+1],m.buffer.b[m.bPos],m.buffer.b[m.bPos+1])}else if(m==ba.BEGIN_GRADIENT_FILL){switch(e.prev._hx_index){case 0:e.oPos+=2;e.bPos+=2;break;case 1:e.iPos+=1;e.fPos+= +1;break;case 2:e.oPos+=4;e.iiPos+=2;e.ffPos+=1;e.fPos+=1;break;case 3:e.oPos+=1;break;case 4:e.fPos+=6;break;case 5:e.fPos+=4;break;case 6:e.fPos+=3;break;case 7:e.fPos+=4;break;case 8:e.oPos+=3;break;case 9:e.fPos+=4;break;case 10:e.fPos+=5;e.oPos+=1;break;case 12:e.oPos+=4;break;case 14:e.oPos+=2;e.bPos+=2;break;case 15:e.oPos+=4;e.iiPos+=2;e.ffPos+=1;e.fPos+=1;break;case 16:e.oPos+=4;e.iPos+=1;e.fPos+=2;e.bPos+=1;break;case 17:e.fPos+=2;break;case 18:e.fPos+=2;break;case 19:e.oPos+=1;break;case 20:e.oPos+= +1}e.prev=ba.BEGIN_GRADIENT_FILL;m=e;D.fillCommands.beginGradientFill(m.buffer.o[m.oPos],m.buffer.ii[m.iiPos],m.buffer.ff[m.ffPos],m.buffer.ii[m.iiPos+1],m.buffer.o[m.oPos+1],m.buffer.o[m.oPos+2],m.buffer.o[m.oPos+3],m.buffer.f[m.fPos]);D.strokeCommands.beginGradientFill(m.buffer.o[m.oPos],m.buffer.ii[m.iiPos],m.buffer.ff[m.ffPos],m.buffer.ii[m.iiPos+1],m.buffer.o[m.oPos+1],m.buffer.o[m.oPos+2],m.buffer.o[m.oPos+3],m.buffer.f[m.fPos])}else if(m==ba.BEGIN_SHADER_FILL){switch(e.prev._hx_index){case 0:e.oPos+= +2;e.bPos+=2;break;case 1:e.iPos+=1;e.fPos+=1;break;case 2:e.oPos+=4;e.iiPos+=2;e.ffPos+=1;e.fPos+=1;break;case 3:e.oPos+=1;break;case 4:e.fPos+=6;break;case 5:e.fPos+=4;break;case 6:e.fPos+=3;break;case 7:e.fPos+=4;break;case 8:e.oPos+=3;break;case 9:e.fPos+=4;break;case 10:e.fPos+=5;e.oPos+=1;break;case 12:e.oPos+=4;break;case 14:e.oPos+=2;e.bPos+=2;break;case 15:e.oPos+=4;e.iiPos+=2;e.ffPos+=1;e.fPos+=1;break;case 16:e.oPos+=4;e.iPos+=1;e.fPos+=2;e.bPos+=1;break;case 17:e.fPos+=2;break;case 18:e.fPos+= +2;break;case 19:e.oPos+=1;break;case 20:e.oPos+=1}e.prev=ba.BEGIN_SHADER_FILL;m=e;D.fillCommands.beginShaderFill(m.buffer.o[m.oPos]);D.strokeCommands.beginShaderFill(m.buffer.o[m.oPos])}else{switch(e.prev._hx_index){case 0:e.oPos+=2;e.bPos+=2;break;case 1:e.iPos+=1;e.fPos+=1;break;case 2:e.oPos+=4;e.iiPos+=2;e.ffPos+=1;e.fPos+=1;break;case 3:e.oPos+=1;break;case 4:e.fPos+=6;break;case 5:e.fPos+=4;break;case 6:e.fPos+=3;break;case 7:e.fPos+=4;break;case 8:e.oPos+=3;break;case 9:e.fPos+=4;break;case 10:e.fPos+= +5;e.oPos+=1;break;case 12:e.oPos+=4;break;case 14:e.oPos+=2;e.bPos+=2;break;case 15:e.oPos+=4;e.iiPos+=2;e.ffPos+=1;e.fPos+=1;break;case 16:e.oPos+=4;e.iPos+=1;e.fPos+=2;e.bPos+=1;break;case 17:e.fPos+=2;break;case 18:e.fPos+=2;break;case 19:e.oPos+=1;break;case 20:e.oPos+=1}e.prev=ba.BEGIN_FILL;m=e;D.fillCommands.beginFill(m.buffer.i[m.iPos],m.buffer.f[m.fPos]);D.strokeCommands.beginFill(m.buffer.i[m.iPos],m.buffer.f[m.fPos])}break;case 4:switch(e.prev._hx_index){case 0:e.oPos+=2;e.bPos+=2;break; +case 1:e.iPos+=1;e.fPos+=1;break;case 2:e.oPos+=4;e.iiPos+=2;e.ffPos+=1;e.fPos+=1;break;case 3:e.oPos+=1;break;case 4:e.fPos+=6;break;case 5:e.fPos+=4;break;case 6:e.fPos+=3;break;case 7:e.fPos+=4;break;case 8:e.oPos+=3;break;case 9:e.fPos+=4;break;case 10:e.fPos+=5;e.oPos+=1;break;case 12:e.oPos+=4;break;case 14:e.oPos+=2;e.bPos+=2;break;case 15:e.oPos+=4;e.iiPos+=2;e.ffPos+=1;e.fPos+=1;break;case 16:e.oPos+=4;e.iPos+=1;e.fPos+=2;e.bPos+=1;break;case 17:e.fPos+=2;break;case 18:e.fPos+=2;break;case 19:e.oPos+= +1;break;case 20:e.oPos+=1}e.prev=ba.CUBIC_CURVE_TO;m=e;D.fillCommands.cubicCurveTo(m.buffer.f[m.fPos],m.buffer.f[m.fPos+1],m.buffer.f[m.fPos+2],m.buffer.f[m.fPos+3],m.buffer.f[m.fPos+4],m.buffer.f[m.fPos+5]);h?D.strokeCommands.cubicCurveTo(m.buffer.f[m.fPos],m.buffer.f[m.fPos+1],m.buffer.f[m.fPos+2],m.buffer.f[m.fPos+3],m.buffer.f[m.fPos+4],m.buffer.f[m.fPos+5]):(c=m.buffer.f[m.fPos+4],d=m.buffer.f[m.fPos+5]);break;case 5:switch(e.prev._hx_index){case 0:e.oPos+=2;e.bPos+=2;break;case 1:e.iPos+=1; +e.fPos+=1;break;case 2:e.oPos+=4;e.iiPos+=2;e.ffPos+=1;e.fPos+=1;break;case 3:e.oPos+=1;break;case 4:e.fPos+=6;break;case 5:e.fPos+=4;break;case 6:e.fPos+=3;break;case 7:e.fPos+=4;break;case 8:e.oPos+=3;break;case 9:e.fPos+=4;break;case 10:e.fPos+=5;e.oPos+=1;break;case 12:e.oPos+=4;break;case 14:e.oPos+=2;e.bPos+=2;break;case 15:e.oPos+=4;e.iiPos+=2;e.ffPos+=1;e.fPos+=1;break;case 16:e.oPos+=4;e.iPos+=1;e.fPos+=2;e.bPos+=1;break;case 17:e.fPos+=2;break;case 18:e.fPos+=2;break;case 19:e.oPos+=1;break; +case 20:e.oPos+=1}e.prev=ba.CURVE_TO;m=e;D.fillCommands.curveTo(m.buffer.f[m.fPos],m.buffer.f[m.fPos+1],m.buffer.f[m.fPos+2],m.buffer.f[m.fPos+3]);h?D.strokeCommands.curveTo(m.buffer.f[m.fPos],m.buffer.f[m.fPos+1],m.buffer.f[m.fPos+2],m.buffer.f[m.fPos+3]):(c=m.buffer.f[m.fPos+2],d=m.buffer.f[m.fPos+3]);break;case 6:switch(e.prev._hx_index){case 0:e.oPos+=2;e.bPos+=2;break;case 1:e.iPos+=1;e.fPos+=1;break;case 2:e.oPos+=4;e.iiPos+=2;e.ffPos+=1;e.fPos+=1;break;case 3:e.oPos+=1;break;case 4:e.fPos+= +6;break;case 5:e.fPos+=4;break;case 6:e.fPos+=3;break;case 7:e.fPos+=4;break;case 8:e.oPos+=3;break;case 9:e.fPos+=4;break;case 10:e.fPos+=5;e.oPos+=1;break;case 12:e.oPos+=4;break;case 14:e.oPos+=2;e.bPos+=2;break;case 15:e.oPos+=4;e.iiPos+=2;e.ffPos+=1;e.fPos+=1;break;case 16:e.oPos+=4;e.iPos+=1;e.fPos+=2;e.bPos+=1;break;case 17:e.fPos+=2;break;case 18:e.fPos+=2;break;case 19:e.oPos+=1;break;case 20:e.oPos+=1}e.prev=ba.DRAW_CIRCLE;m=e;D.fillCommands.drawCircle(m.buffer.f[m.fPos],m.buffer.f[m.fPos+ +1],m.buffer.f[m.fPos+2]);h&&D.strokeCommands.drawCircle(m.buffer.f[m.fPos],m.buffer.f[m.fPos+1],m.buffer.f[m.fPos+2]);break;case 7:switch(e.prev._hx_index){case 0:e.oPos+=2;e.bPos+=2;break;case 1:e.iPos+=1;e.fPos+=1;break;case 2:e.oPos+=4;e.iiPos+=2;e.ffPos+=1;e.fPos+=1;break;case 3:e.oPos+=1;break;case 4:e.fPos+=6;break;case 5:e.fPos+=4;break;case 6:e.fPos+=3;break;case 7:e.fPos+=4;break;case 8:e.oPos+=3;break;case 9:e.fPos+=4;break;case 10:e.fPos+=5;e.oPos+=1;break;case 12:e.oPos+=4;break;case 14:e.oPos+= +2;e.bPos+=2;break;case 15:e.oPos+=4;e.iiPos+=2;e.ffPos+=1;e.fPos+=1;break;case 16:e.oPos+=4;e.iPos+=1;e.fPos+=2;e.bPos+=1;break;case 17:e.fPos+=2;break;case 18:e.fPos+=2;break;case 19:e.oPos+=1;break;case 20:e.oPos+=1}e.prev=ba.DRAW_ELLIPSE;m=e;D.fillCommands.drawEllipse(m.buffer.f[m.fPos],m.buffer.f[m.fPos+1],m.buffer.f[m.fPos+2],m.buffer.f[m.fPos+3]);h&&D.strokeCommands.drawEllipse(m.buffer.f[m.fPos],m.buffer.f[m.fPos+1],m.buffer.f[m.fPos+2],m.buffer.f[m.fPos+3]);break;case 8:switch(e.prev._hx_index){case 0:e.oPos+= +2;e.bPos+=2;break;case 1:e.iPos+=1;e.fPos+=1;break;case 2:e.oPos+=4;e.iiPos+=2;e.ffPos+=1;e.fPos+=1;break;case 3:e.oPos+=1;break;case 4:e.fPos+=6;break;case 5:e.fPos+=4;break;case 6:e.fPos+=3;break;case 7:e.fPos+=4;break;case 8:e.oPos+=3;break;case 9:e.fPos+=4;break;case 10:e.fPos+=5;e.oPos+=1;break;case 12:e.oPos+=4;break;case 14:e.oPos+=2;e.bPos+=2;break;case 15:e.oPos+=4;e.iiPos+=2;e.ffPos+=1;e.fPos+=1;break;case 16:e.oPos+=4;e.iPos+=1;e.fPos+=2;e.bPos+=1;break;case 17:e.fPos+=2;break;case 18:e.fPos+= +2;break;case 19:e.oPos+=1;break;case 20:e.oPos+=1}e.prev=ba.DRAW_QUADS;m=e;D.fillCommands.drawQuads(m.buffer.o[m.oPos],m.buffer.o[m.oPos+1],m.buffer.o[m.oPos+2]);break;case 9:switch(e.prev._hx_index){case 0:e.oPos+=2;e.bPos+=2;break;case 1:e.iPos+=1;e.fPos+=1;break;case 2:e.oPos+=4;e.iiPos+=2;e.ffPos+=1;e.fPos+=1;break;case 3:e.oPos+=1;break;case 4:e.fPos+=6;break;case 5:e.fPos+=4;break;case 6:e.fPos+=3;break;case 7:e.fPos+=4;break;case 8:e.oPos+=3;break;case 9:e.fPos+=4;break;case 10:e.fPos+=5;e.oPos+= +1;break;case 12:e.oPos+=4;break;case 14:e.oPos+=2;e.bPos+=2;break;case 15:e.oPos+=4;e.iiPos+=2;e.ffPos+=1;e.fPos+=1;break;case 16:e.oPos+=4;e.iPos+=1;e.fPos+=2;e.bPos+=1;break;case 17:e.fPos+=2;break;case 18:e.fPos+=2;break;case 19:e.oPos+=1;break;case 20:e.oPos+=1}e.prev=ba.DRAW_RECT;m=e;D.fillCommands.drawRect(m.buffer.f[m.fPos],m.buffer.f[m.fPos+1],m.buffer.f[m.fPos+2],m.buffer.f[m.fPos+3]);h&&D.strokeCommands.drawRect(m.buffer.f[m.fPos],m.buffer.f[m.fPos+1],m.buffer.f[m.fPos+2],m.buffer.f[m.fPos+ +3]);break;case 10:switch(e.prev._hx_index){case 0:e.oPos+=2;e.bPos+=2;break;case 1:e.iPos+=1;e.fPos+=1;break;case 2:e.oPos+=4;e.iiPos+=2;e.ffPos+=1;e.fPos+=1;break;case 3:e.oPos+=1;break;case 4:e.fPos+=6;break;case 5:e.fPos+=4;break;case 6:e.fPos+=3;break;case 7:e.fPos+=4;break;case 8:e.oPos+=3;break;case 9:e.fPos+=4;break;case 10:e.fPos+=5;e.oPos+=1;break;case 12:e.oPos+=4;break;case 14:e.oPos+=2;e.bPos+=2;break;case 15:e.oPos+=4;e.iiPos+=2;e.ffPos+=1;e.fPos+=1;break;case 16:e.oPos+=4;e.iPos+=1; +e.fPos+=2;e.bPos+=1;break;case 17:e.fPos+=2;break;case 18:e.fPos+=2;break;case 19:e.oPos+=1;break;case 20:e.oPos+=1}e.prev=ba.DRAW_ROUND_RECT;m=e;D.fillCommands.drawRoundRect(m.buffer.f[m.fPos],m.buffer.f[m.fPos+1],m.buffer.f[m.fPos+2],m.buffer.f[m.fPos+3],m.buffer.f[m.fPos+4],m.buffer.o[m.oPos]);h&&D.strokeCommands.drawRoundRect(m.buffer.f[m.fPos],m.buffer.f[m.fPos+1],m.buffer.f[m.fPos+2],m.buffer.f[m.fPos+3],m.buffer.f[m.fPos+4],m.buffer.o[m.oPos]);break;case 12:switch(e.prev._hx_index){case 0:e.oPos+= +2;e.bPos+=2;break;case 1:e.iPos+=1;e.fPos+=1;break;case 2:e.oPos+=4;e.iiPos+=2;e.ffPos+=1;e.fPos+=1;break;case 3:e.oPos+=1;break;case 4:e.fPos+=6;break;case 5:e.fPos+=4;break;case 6:e.fPos+=3;break;case 7:e.fPos+=4;break;case 8:e.oPos+=3;break;case 9:e.fPos+=4;break;case 10:e.fPos+=5;e.oPos+=1;break;case 12:e.oPos+=4;break;case 14:e.oPos+=2;e.bPos+=2;break;case 15:e.oPos+=4;e.iiPos+=2;e.ffPos+=1;e.fPos+=1;break;case 16:e.oPos+=4;e.iPos+=1;e.fPos+=2;e.bPos+=1;break;case 17:e.fPos+=2;break;case 18:e.fPos+= +2;break;case 19:e.oPos+=1;break;case 20:e.oPos+=1}e.prev=ba.DRAW_TRIANGLES;m=e;D.fillCommands.drawTriangles(m.buffer.o[m.oPos],m.buffer.o[m.oPos+1],m.buffer.o[m.oPos+2],m.buffer.o[m.oPos+3]);break;case 13:switch(e.prev._hx_index){case 0:e.oPos+=2;e.bPos+=2;break;case 1:e.iPos+=1;e.fPos+=1;break;case 2:e.oPos+=4;e.iiPos+=2;e.ffPos+=1;e.fPos+=1;break;case 3:e.oPos+=1;break;case 4:e.fPos+=6;break;case 5:e.fPos+=4;break;case 6:e.fPos+=3;break;case 7:e.fPos+=4;break;case 8:e.oPos+=3;break;case 9:e.fPos+= +4;break;case 10:e.fPos+=5;e.oPos+=1;break;case 12:e.oPos+=4;break;case 14:e.oPos+=2;e.bPos+=2;break;case 15:e.oPos+=4;e.iiPos+=2;e.ffPos+=1;e.fPos+=1;break;case 16:e.oPos+=4;e.iPos+=1;e.fPos+=2;e.bPos+=1;break;case 17:e.fPos+=2;break;case 18:e.fPos+=2;break;case 19:e.oPos+=1;break;case 20:e.oPos+=1}e.prev=ba.END_FILL;D.endFill();D.endStroke();h=D.hasFill=!1;D.bitmapFill=null;d=c=0;break;case 14:switch(e.prev._hx_index){case 0:e.oPos+=2;e.bPos+=2;break;case 1:e.iPos+=1;e.fPos+=1;break;case 2:e.oPos+= +4;e.iiPos+=2;e.ffPos+=1;e.fPos+=1;break;case 3:e.oPos+=1;break;case 4:e.fPos+=6;break;case 5:e.fPos+=4;break;case 6:e.fPos+=3;break;case 7:e.fPos+=4;break;case 8:e.oPos+=3;break;case 9:e.fPos+=4;break;case 10:e.fPos+=5;e.oPos+=1;break;case 12:e.oPos+=4;break;case 14:e.oPos+=2;e.bPos+=2;break;case 15:e.oPos+=4;e.iiPos+=2;e.ffPos+=1;e.fPos+=1;break;case 16:e.oPos+=4;e.iPos+=1;e.fPos+=2;e.bPos+=1;break;case 17:e.fPos+=2;break;case 18:e.fPos+=2;break;case 19:e.oPos+=1;break;case 20:e.oPos+=1}e.prev=ba.LINE_BITMAP_STYLE; +m=e;h||0==c&&0==d||(D.strokeCommands.moveTo(c,d),d=c=0);h=!0;D.strokeCommands.lineBitmapStyle(m.buffer.o[m.oPos],m.buffer.o[m.oPos+1],m.buffer.b[m.bPos],m.buffer.b[m.bPos+1]);break;case 15:switch(e.prev._hx_index){case 0:e.oPos+=2;e.bPos+=2;break;case 1:e.iPos+=1;e.fPos+=1;break;case 2:e.oPos+=4;e.iiPos+=2;e.ffPos+=1;e.fPos+=1;break;case 3:e.oPos+=1;break;case 4:e.fPos+=6;break;case 5:e.fPos+=4;break;case 6:e.fPos+=3;break;case 7:e.fPos+=4;break;case 8:e.oPos+=3;break;case 9:e.fPos+=4;break;case 10:e.fPos+= +5;e.oPos+=1;break;case 12:e.oPos+=4;break;case 14:e.oPos+=2;e.bPos+=2;break;case 15:e.oPos+=4;e.iiPos+=2;e.ffPos+=1;e.fPos+=1;break;case 16:e.oPos+=4;e.iPos+=1;e.fPos+=2;e.bPos+=1;break;case 17:e.fPos+=2;break;case 18:e.fPos+=2;break;case 19:e.oPos+=1;break;case 20:e.oPos+=1}e.prev=ba.LINE_GRADIENT_STYLE;m=e;h||0==c&&0==d||(D.strokeCommands.moveTo(c,d),d=c=0);h=!0;D.strokeCommands.lineGradientStyle(m.buffer.o[m.oPos],m.buffer.ii[m.iiPos],m.buffer.ff[m.ffPos],m.buffer.ii[m.iiPos+1],m.buffer.o[m.oPos+ +1],m.buffer.o[m.oPos+2],m.buffer.o[m.oPos+3],m.buffer.f[m.fPos]);break;case 16:switch(e.prev._hx_index){case 0:e.oPos+=2;e.bPos+=2;break;case 1:e.iPos+=1;e.fPos+=1;break;case 2:e.oPos+=4;e.iiPos+=2;e.ffPos+=1;e.fPos+=1;break;case 3:e.oPos+=1;break;case 4:e.fPos+=6;break;case 5:e.fPos+=4;break;case 6:e.fPos+=3;break;case 7:e.fPos+=4;break;case 8:e.oPos+=3;break;case 9:e.fPos+=4;break;case 10:e.fPos+=5;e.oPos+=1;break;case 12:e.oPos+=4;break;case 14:e.oPos+=2;e.bPos+=2;break;case 15:e.oPos+=4;e.iiPos+= +2;e.ffPos+=1;e.fPos+=1;break;case 16:e.oPos+=4;e.iPos+=1;e.fPos+=2;e.bPos+=1;break;case 17:e.fPos+=2;break;case 18:e.fPos+=2;break;case 19:e.oPos+=1;break;case 20:e.oPos+=1}e.prev=ba.LINE_STYLE;m=e;h||null==m.buffer.o[m.oPos]||0==c&&0==d||(D.strokeCommands.moveTo(c,d),d=c=0);h=null!=m.buffer.o[m.oPos];D.strokeCommands.lineStyle(m.buffer.o[m.oPos],m.buffer.i[m.iPos],m.buffer.f[m.fPos],m.buffer.b[m.bPos],m.buffer.o[m.oPos+1],m.buffer.o[m.oPos+2],m.buffer.o[m.oPos+3],m.buffer.f[m.fPos+1]);break;case 17:switch(e.prev._hx_index){case 0:e.oPos+= +2;e.bPos+=2;break;case 1:e.iPos+=1;e.fPos+=1;break;case 2:e.oPos+=4;e.iiPos+=2;e.ffPos+=1;e.fPos+=1;break;case 3:e.oPos+=1;break;case 4:e.fPos+=6;break;case 5:e.fPos+=4;break;case 6:e.fPos+=3;break;case 7:e.fPos+=4;break;case 8:e.oPos+=3;break;case 9:e.fPos+=4;break;case 10:e.fPos+=5;e.oPos+=1;break;case 12:e.oPos+=4;break;case 14:e.oPos+=2;e.bPos+=2;break;case 15:e.oPos+=4;e.iiPos+=2;e.ffPos+=1;e.fPos+=1;break;case 16:e.oPos+=4;e.iPos+=1;e.fPos+=2;e.bPos+=1;break;case 17:e.fPos+=2;break;case 18:e.fPos+= +2;break;case 19:e.oPos+=1;break;case 20:e.oPos+=1}e.prev=ba.LINE_TO;m=e;D.fillCommands.lineTo(m.buffer.f[m.fPos],m.buffer.f[m.fPos+1]);h?D.strokeCommands.lineTo(m.buffer.f[m.fPos],m.buffer.f[m.fPos+1]):(c=m.buffer.f[m.fPos],d=m.buffer.f[m.fPos+1]);break;case 18:switch(e.prev._hx_index){case 0:e.oPos+=2;e.bPos+=2;break;case 1:e.iPos+=1;e.fPos+=1;break;case 2:e.oPos+=4;e.iiPos+=2;e.ffPos+=1;e.fPos+=1;break;case 3:e.oPos+=1;break;case 4:e.fPos+=6;break;case 5:e.fPos+=4;break;case 6:e.fPos+=3;break;case 7:e.fPos+= +4;break;case 8:e.oPos+=3;break;case 9:e.fPos+=4;break;case 10:e.fPos+=5;e.oPos+=1;break;case 12:e.oPos+=4;break;case 14:e.oPos+=2;e.bPos+=2;break;case 15:e.oPos+=4;e.iiPos+=2;e.ffPos+=1;e.fPos+=1;break;case 16:e.oPos+=4;e.iPos+=1;e.fPos+=2;e.bPos+=1;break;case 17:e.fPos+=2;break;case 18:e.fPos+=2;break;case 19:e.oPos+=1;break;case 20:e.oPos+=1}e.prev=ba.MOVE_TO;m=e;D.fillCommands.moveTo(m.buffer.f[m.fPos],m.buffer.f[m.fPos+1]);h?D.strokeCommands.moveTo(m.buffer.f[m.fPos],m.buffer.f[m.fPos+1]):(c= +m.buffer.f[m.fPos],d=m.buffer.f[m.fPos+1]);break;case 19:switch(e.prev._hx_index){case 0:e.oPos+=2;e.bPos+=2;break;case 1:e.iPos+=1;e.fPos+=1;break;case 2:e.oPos+=4;e.iiPos+=2;e.ffPos+=1;e.fPos+=1;break;case 3:e.oPos+=1;break;case 4:e.fPos+=6;break;case 5:e.fPos+=4;break;case 6:e.fPos+=3;break;case 7:e.fPos+=4;break;case 8:e.oPos+=3;break;case 9:e.fPos+=4;break;case 10:e.fPos+=5;e.oPos+=1;break;case 12:e.oPos+=4;break;case 14:e.oPos+=2;e.bPos+=2;break;case 15:e.oPos+=4;e.iiPos+=2;e.ffPos+=1;e.fPos+= +1;break;case 16:e.oPos+=4;e.iPos+=1;e.fPos+=2;e.bPos+=1;break;case 17:e.fPos+=2;break;case 18:e.fPos+=2;break;case 19:e.oPos+=1;break;case 20:e.oPos+=1}e.prev=ba.OVERRIDE_BLEND_MODE;m=e;b.__setBlendModeContext(D.context,m.buffer.o[m.oPos]);break;case 21:switch(e.prev._hx_index){case 0:e.oPos+=2;e.bPos+=2;break;case 1:e.iPos+=1;e.fPos+=1;break;case 2:e.oPos+=4;e.iiPos+=2;e.ffPos+=1;e.fPos+=1;break;case 3:e.oPos+=1;break;case 4:e.fPos+=6;break;case 5:e.fPos+=4;break;case 6:e.fPos+=3;break;case 7:e.fPos+= +4;break;case 8:e.oPos+=3;break;case 9:e.fPos+=4;break;case 10:e.fPos+=5;e.oPos+=1;break;case 12:e.oPos+=4;break;case 14:e.oPos+=2;e.bPos+=2;break;case 15:e.oPos+=4;e.iiPos+=2;e.ffPos+=1;e.fPos+=1;break;case 16:e.oPos+=4;e.iPos+=1;e.fPos+=2;e.bPos+=1;break;case 17:e.fPos+=2;break;case 18:e.fPos+=2;break;case 19:e.oPos+=1;break;case 20:e.oPos+=1}e.prev=ba.WINDING_EVEN_ODD;D.fillCommands.windingEvenOdd();D.windingRule="evenodd";break;case 22:switch(e.prev._hx_index){case 0:e.oPos+=2;e.bPos+=2;break; +case 1:e.iPos+=1;e.fPos+=1;break;case 2:e.oPos+=4;e.iiPos+=2;e.ffPos+=1;e.fPos+=1;break;case 3:e.oPos+=1;break;case 4:e.fPos+=6;break;case 5:e.fPos+=4;break;case 6:e.fPos+=3;break;case 7:e.fPos+=4;break;case 8:e.oPos+=3;break;case 9:e.fPos+=4;break;case 10:e.fPos+=5;e.oPos+=1;break;case 12:e.oPos+=4;break;case 14:e.oPos+=2;e.bPos+=2;break;case 15:e.oPos+=4;e.iiPos+=2;e.ffPos+=1;e.fPos+=1;break;case 16:e.oPos+=4;e.iPos+=1;e.fPos+=2;e.bPos+=1;break;case 17:e.fPos+=2;break;case 18:e.fPos+=2;break;case 19:e.oPos+= +1;break;case 20:e.oPos+=1}e.prev=ba.WINDING_NON_ZERO;D.fillCommands.windingNonZero();D.windingRule="nonzero";break;default:switch(e.prev._hx_index){case 0:e.oPos+=2;e.bPos+=2;break;case 1:e.iPos+=1;e.fPos+=1;break;case 2:e.oPos+=4;e.iiPos+=2;e.ffPos+=1;e.fPos+=1;break;case 3:e.oPos+=1;break;case 4:e.fPos+=6;break;case 5:e.fPos+=4;break;case 6:e.fPos+=3;break;case 7:e.fPos+=4;break;case 8:e.oPos+=3;break;case 9:e.fPos+=4;break;case 10:e.fPos+=5;e.oPos+=1;break;case 12:e.oPos+=4;break;case 14:e.oPos+= +2;e.bPos+=2;break;case 15:e.oPos+=4;e.iiPos+=2;e.ffPos+=1;e.fPos+=1;break;case 16:e.oPos+=4;e.iPos+=1;e.fPos+=2;e.bPos+=1;break;case 17:e.fPos+=2;break;case 18:e.fPos+=2;break;case 19:e.oPos+=1;break;case 20:e.oPos+=1}e.prev=m}}0<D.fillCommands.get_length()&&D.endFill();0<D.strokeCommands.get_length()&&D.endStroke();e.destroy();a.__bitmap=Ja.fromCanvas(a.__canvas)}a.__softwareDirty=!1;a.set___dirty(!1)}};D.renderMask=function(a,b){if(0!=a.__commands.get_length()){D.context=b.context;b=new Vf(a.__commands); +var c=a.__commands.types,d=0;for(a=a.__commands.get_length();d<a;){var e=d++;e=c[e];switch(e._hx_index){case 4:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+= +2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1;break;case 20:b.oPos+=1}b.prev=ba.CUBIC_CURVE_TO;e=b;D.context.bezierCurveTo(e.buffer.f[e.fPos]-0,e.buffer.f[e.fPos+1]-0,e.buffer.f[e.fPos+2]-0,e.buffer.f[e.fPos+3]-0,e.buffer.f[e.fPos+4]-0,e.buffer.f[e.fPos+5]-0);break;case 5:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break; +case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1;break;case 20:b.oPos+= +1}b.prev=ba.CURVE_TO;e=b;D.context.quadraticCurveTo(e.buffer.f[e.fPos]-0,e.buffer.f[e.fPos+1]-0,e.buffer.f[e.fPos+2]-0,e.buffer.f[e.fPos+3]-0);break;case 6:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+= +4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1;break;case 20:b.oPos+=1}b.prev=ba.DRAW_CIRCLE;e=b;D.context.arc(e.buffer.f[e.fPos]-0,e.buffer.f[e.fPos+1]-0,e.buffer.f[e.fPos+2],0,2*Math.PI,!0);break;case 7:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+= +1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1;break;case 20:b.oPos+=1}b.prev=ba.DRAW_ELLIPSE;var f=b; +e=f.buffer.f[f.fPos];var h=f.buffer.f[f.fPos+1];var l=f.buffer.f[f.fPos+2];var t=f.buffer.f[f.fPos+3];e-=0;h-=0;f=l/2*.5522848;var m=t/2*.5522848;var k=e+l;var p=h+t;l=e+l/2;t=h+t/2;D.context.moveTo(e,t);D.context.bezierCurveTo(e,t-m,l-f,h,l,h);D.context.bezierCurveTo(l+f,h,k,t-m,k,t);D.context.bezierCurveTo(k,t+m,l+f,p,l,p);D.context.bezierCurveTo(l-f,p,e,t+m,e,t);break;case 9:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+= +1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1;break;case 20:b.oPos+=1}b.prev=ba.DRAW_RECT;e=b;D.context.beginPath(); +D.context.rect(e.buffer.f[e.fPos]-0,e.buffer.f[e.fPos+1]-0,e.buffer.f[e.fPos+2],e.buffer.f[e.fPos+3]);D.context.closePath();break;case 10:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break; +case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1;break;case 20:b.oPos+=1}b.prev=ba.DRAW_ROUND_RECT;e=b;D.drawRoundRect(e.buffer.f[e.fPos]-0,e.buffer.f[e.fPos+1]-0,e.buffer.f[e.fPos+2],e.buffer.f[e.fPos+3],e.buffer.f[e.fPos+4],e.buffer.o[e.oPos]);break;case 17:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+= +1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1;break;case 20:b.oPos+= +1}b.prev=ba.LINE_TO;e=b;D.context.lineTo(e.buffer.f[e.fPos]-0,e.buffer.f[e.fPos+1]-0);break;case 18:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+= +4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1;break;case 20:b.oPos+=1}b.prev=ba.MOVE_TO;e=b;D.context.moveTo(e.buffer.f[e.fPos]-0,e.buffer.f[e.fPos+1]-0);break;default:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+= +3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1;break;case 20:b.oPos+=1}b.prev=e}}b.destroy()}};D.setSmoothing=function(a){D.allowSmoothing||(a=!1);D.context.imageSmoothingEnabled!=a&&(D.context.imageSmoothingEnabled= +a)};var au=function(){};k["openfl.display._internal.CanvasShape"]=au;au.__name__="openfl.display._internal.CanvasShape";au.render=function(a,b){if(a.__renderable){var c=b.__getAlpha(a.__worldAlpha);if(!(0>=c)){var d=a.__graphics;if(null!=d){D.render(d,b);var e=d.__width,f=d.__height,h=d.__canvas;if(null!=h&&d.__visible&&1<=e&&1<=f){var l=d.__worldTransform,t=b.context,m=a.__scrollRect,k=a.__worldScale9Grid;if(null==m||0<m.width&&0<m.height){b.__setBlendMode(a.__worldBlendMode);b.__pushMaskObject(a); +t.globalAlpha=c;if(null!=k&&0==l.b&&0==l.c){var p=b.__pixelRatio;c=Aa.__pool.get();c.translate(l.tx,l.ty);b.setTransform(c,t);Aa.__pool.release(c);c=d.__bounds;var n=d.__renderTransform.a/d.__bitmapScale,r=d.__renderTransform.d/d.__bitmapScale,q=n*l.a,v=r*l.d;l=Math.max(1,Math.round(k.x*n));d=Math.round(k.y*r);m=Math.max(1,Math.round((c.get_right()-k.get_right())*n));var u=Math.round((c.get_bottom()-k.get_bottom())*r);n=Math.round(k.width*n);k=Math.round(k.height*r);r=Math.round(l/p);var w=Math.round(d/ +p),B=Math.round(m/p);p=Math.round(u/p);q=c.width*q-r-B;c=c.height*v-w-p;b.applySmoothing(t,!1);0!=n&&0!=k?(t.drawImage(h,0,0,l,d,0,0,r,w),t.drawImage(h,l,0,n,d,r,0,q,w),t.drawImage(h,l+n,0,m,d,r+q,0,B,w),t.drawImage(h,0,d,l,k,0,w,r,c),t.drawImage(h,l,d,n,k,r,w,q,c),t.drawImage(h,l+n,d,m,k,r+q,w,B,c),t.drawImage(h,0,d+k,l,u,0,w+c,r,p),t.drawImage(h,l,d+k,n,u,r,w+c,q,p),t.drawImage(h,l+n,d+k,m,u,r+q,w+c,B,p)):0==n&&0!=k?(f=r+q+B,t.drawImage(h,0,0,e,d,0,0,f,w),t.drawImage(h,0,d,e,k,0,w,f,c),t.drawImage(h, +0,d+k,e,u,0,w+c,f,p)):0==k&&0!=n&&(e=w+c+p,t.drawImage(h,0,0,l,f,0,0,r,e),t.drawImage(h,l,0,n,f,r,0,q,e),t.drawImage(h,l+n,0,m,f,r+q,0,B,e))}else b.setTransform(l,t),t.drawImage(h,0,0,e,f);b.__popMaskObject(a)}}}}}};var Hm=function(){};k["openfl.display._internal.CanvasSimpleButton"]=Hm;Hm.__name__="openfl.display._internal.CanvasSimpleButton";Hm.renderDrawable=function(a,b){!a.__renderable||0>=a.__worldAlpha||null==a.__currentState||(b.__pushMaskObject(a),b.__renderDrawable(a.__currentState),b.__popMaskObject(a), +b.__renderEvent(a))};Hm.renderDrawableMask=function(a,b){b.__renderDrawableMask(a.__currentState)};var Y=function(){};k["openfl.display._internal.CanvasTextField"]=Y;Y.__name__="openfl.display._internal.CanvasTextField";Y.render=function(a,b,c){c=a.__textEngine;var d=!(c.background||c.border),e=d?c.textBounds:c.bounds,f=a.__graphics,h=0;if(a.__dirty){a.__updateLayout();null==f.__bounds&&(f.__bounds=new fa);if(0==a.get_text().length){h=c.bounds.width-4;var l=a.get_defaultTextFormat().align;h=3==l? +0:4==l?h:h/2;switch(l){case 0:h+=a.get_defaultTextFormat().leftMargin/2;h-=a.get_defaultTextFormat().rightMargin/2;h+=a.get_defaultTextFormat().indent/2;h+=a.get_defaultTextFormat().blockIndent/2;break;case 2:h+=a.get_defaultTextFormat().leftMargin;h+=a.get_defaultTextFormat().indent;h+=a.get_defaultTextFormat().blockIndent;break;case 3:h+=a.get_defaultTextFormat().leftMargin;h+=a.get_defaultTextFormat().indent;h+=a.get_defaultTextFormat().blockIndent;break;case 4:h-=a.get_defaultTextFormat().rightMargin}d&& +(e.y=c.bounds.y,e.x=h)}f.__bounds.copyFrom(e)}l=b.__pixelRatio;f.__update(b.__worldTransform,l);if(a.__dirty||f.__softwareDirty){var t=Math.round(f.__width*l),m=Math.round(f.__height*l);if(!(null!=c.text&&""!=c.text||c.background||c.border||c.__hasFocus||1==c.type&&c.selectable)||(0>=c.width||0>=c.height)&&2!=c.autoSize)a.__graphics.__canvas=null,a.__graphics.__context=null,a.__graphics.__bitmap=null,a.__graphics.__softwareDirty=!1,a.__graphics.set___dirty(!1),a.__dirty=!1;else{null==a.__graphics.__canvas&& +(a.__graphics.__canvas=window.document.createElement("canvas"),a.__graphics.__context=a.__graphics.__canvas.getContext("2d"));Y.context=f.__context;f.__canvas.width=t;f.__canvas.height=m;b.__isDOM&&(f.__canvas.style.width=Math.round(t/l)+"px",f.__canvas.style.height=Math.round(m/l)+"px");t=Aa.__pool.get();t.scale(l,l);t.concat(f.__renderTransform);Y.context.setTransform(t.a,t.b,t.c,t.d,t.tx,t.ty);Aa.__pool.release(t);null==Y.clearRect&&(Y.clearRect="undefined"!==typeof navigator&&"undefined"!==typeof navigator.isCocoonJS); +Y.clearRect&&Y.context.clearRect(0,0,f.__canvas.width,f.__canvas.height);if(null!=c.text&&""!=c.text||c.__hasFocus){d=c.text;f.__context.imageSmoothingEnabled=!b.__allowSmoothing||0==c.antiAliasType&&400==c.sharpness?!1:!0;if(c.border||c.background){Y.context.rect(.5,.5,e.width-1,e.height-1);if(c.background){var k=J.hex(c.backgroundColor&16777215,6);Y.context.fillStyle="#"+k;Y.context.fill()}c.border&&(Y.context.lineWidth=1,k=J.hex(c.borderColor&16777215,6),Y.context.strokeStyle="#"+k,Y.context.stroke())}Y.context.textBaseline= +"alphabetic";Y.context.textAlign="start";b=-a.get_scrollH();var p=h=0;for(k=a.get_scrollV()-1;p<k;){var n=p++;h-=c.lineHeights.get(n)}var r;for(t=c.layoutGroups.iterator();t.hasNext();)if(m=t.next(),!(m.lineIndex<a.get_scrollV()-1)){if(m.lineIndex>c.get_bottomScrollV()-1)break;var q="#"+J.hex(m.format.color&16777215,6);Y.context.font=Ob.getFont(m.format);Y.context.fillStyle=q;Y.context.fillText(d.substring(m.startIndex,m.endIndex),m.offsetX+b-e.x,m.offsetY+m.ascent+h-e.y);if(-1<a.__caretIndex&&c.selectable)if(a.__selectionIndex== +a.__caretIndex){if(a.__showCursor&&m.startIndex<=a.__caretIndex&&m.endIndex>=a.__caretIndex){p=r=0;for(k=a.__caretIndex-m.startIndex;p<k;){n=p++;if(m.positions.length<=n)break;r+=m.positions[n]}p=0;k=a.get_scrollV();for(n=m.lineIndex+1;k<n;){var v=k++;p+=c.lineHeights.get(v-1)}Y.context.beginPath();k=J.hex(m.format.color&16777215,6);Y.context.strokeStyle="#"+k;Y.context.moveTo(m.offsetX+r-a.get_scrollH()-e.x,p+2-e.y);Y.context.lineWidth=1;Y.context.lineTo(m.offsetX+r-a.get_scrollH()-e.x,p+Ob.getFormatHeight(a.get_defaultTextFormat())- +1-e.y);Y.context.stroke();Y.context.closePath()}}else if(m.startIndex<=a.__caretIndex&&m.endIndex>=a.__caretIndex||m.startIndex<=a.__selectionIndex&&m.endIndex>=a.__selectionIndex||m.startIndex>a.__caretIndex&&m.endIndex<a.__selectionIndex||m.startIndex>a.__selectionIndex&&m.endIndex<a.__caretIndex)r=Math.min(a.__selectionIndex,a.__caretIndex)|0,p=Math.max(a.__selectionIndex,a.__caretIndex)|0,m.startIndex>r&&(r=m.startIndex),m.endIndex<p&&(p=m.endIndex),n=a.getCharBoundaries(r),p>=m.endIndex?(k=a.getCharBoundaries(m.endIndex- +1),null!=k&&(k.x+=k.width+2)):k=a.getCharBoundaries(p),null!=n&&null!=k&&(Y.context.fillStyle="#000000",Y.context.fillRect(n.x+b-e.x,n.y+h,k.x-n.x,m.height),Y.context.fillStyle="#FFFFFF",Y.context.fillText(d.substring(r,p),b+n.x-e.x,m.offsetY+m.ascent+h));m.format.underline&&(Y.context.beginPath(),Y.context.strokeStyle=q,Y.context.lineWidth=1,q=m.offsetX+b-e.x,r=Math.ceil(m.offsetY+h+m.ascent-e.y)+Math.floor(.185*m.ascent)+.5,Y.context.moveTo(q,r),Y.context.lineTo(q+m.width,r),Y.context.stroke(), +Y.context.closePath())}}else{if(c.border||c.background)c.border?Y.context.rect(.5,.5,e.width-1,e.height-1):Y.context.rect(0,0,e.width,e.height),c.background&&(k=J.hex(c.backgroundColor&16777215,6),Y.context.fillStyle="#"+k,Y.context.fill()),c.border&&(Y.context.lineWidth=1,Y.context.lineCap="square",k=J.hex(c.borderColor&16777215,6),Y.context.strokeStyle="#"+k,Y.context.stroke());if(-1<a.__caretIndex&&c.selectable&&a.__showCursor){b=-a.get_scrollH()+(d?0:h);p=h=0;for(k=a.get_scrollV()-1;p<k;)n=p++, +h+=c.lineHeights.get(n);Y.context.beginPath();k=J.hex(a.get_defaultTextFormat().color&16777215,6);Y.context.strokeStyle="#"+k;Y.context.moveTo(b+2.5,h+2.5);Y.context.lineWidth=1;Y.context.lineTo(b+2.5,h+Ob.getFormatHeight(a.get_defaultTextFormat())-1);Y.context.stroke();Y.context.closePath()}}f.__bitmap=Ja.fromCanvas(a.__graphics.__canvas);f.__bitmapScale=l;f.__visible=!0;a.__dirty=!1;f.__softwareDirty=!1;f.set___dirty(!1)}}};Y.renderDrawable=function(a,b){b.__isDOM&&!a.__renderedOnCanvasWhileOnDOM&& +(a.__renderedOnCanvasWhileOnDOM=!0,1==a.get_type()&&a.replaceText(0,a.__text.length,a.__text),a.__isHTML&&a.__updateText(lb.parse(a.__text,a.get_multiline(),a.__styleSheet,a.__textFormat,a.__textEngine.textFormatRanges)),a.__dirty=!0,a.__layoutDirty=!0,a.__renderDirty||(a.__renderDirty=!0,a.__setParentRenderDirty()));if(null==a.get_mask()||0<a.get_mask().get_width()&&0<a.get_mask().get_height())if(b.__updateCacheBitmap(a,a.__dirty),null==a.__cacheBitmap||a.__isCacheBitmapRender){var c=a.__textEngine, +d=!(c.background||c.border),e=d?c.textBounds:c.bounds,f=a.__graphics,h=0;if(a.__dirty){a.__updateLayout();null==f.__bounds&&(f.__bounds=new fa);if(0==a.get_text().length){var l=c.bounds.width-4,t=a.get_defaultTextFormat().align;h=3==t?0:4==t?l:l/2;switch(t){case 0:h+=a.get_defaultTextFormat().leftMargin/2;h-=a.get_defaultTextFormat().rightMargin/2;h+=a.get_defaultTextFormat().indent/2;h+=a.get_defaultTextFormat().blockIndent/2;break;case 2:h+=a.get_defaultTextFormat().leftMargin;h+=a.get_defaultTextFormat().indent; +h+=a.get_defaultTextFormat().blockIndent;break;case 3:h+=a.get_defaultTextFormat().leftMargin;h+=a.get_defaultTextFormat().indent;h+=a.get_defaultTextFormat().blockIndent;break;case 4:h-=a.get_defaultTextFormat().rightMargin}d&&(e.y=c.bounds.y,e.x=h)}f.__bounds.copyFrom(e)}t=b.__pixelRatio;f.__update(b.__worldTransform,t);if(a.__dirty||f.__softwareDirty){l=Math.round(f.__width*t);var m=Math.round(f.__height*t);if(!(null!=c.text&&""!=c.text||c.background||c.border||c.__hasFocus||1==c.type&&c.selectable)|| +(0>=c.width||0>=c.height)&&2!=c.autoSize)a.__graphics.__canvas=null,a.__graphics.__context=null,a.__graphics.__bitmap=null,a.__graphics.__softwareDirty=!1,a.__graphics.set___dirty(!1),a.__dirty=!1;else{null==a.__graphics.__canvas&&(a.__graphics.__canvas=window.document.createElement("canvas"),a.__graphics.__context=a.__graphics.__canvas.getContext("2d"));Y.context=f.__context;f.__canvas.width=l;f.__canvas.height=m;b.__isDOM&&(f.__canvas.style.width=Math.round(l/t)+"px",f.__canvas.style.height=Math.round(m/ +t)+"px");var k=Aa.__pool.get();k.scale(t,t);k.concat(f.__renderTransform);Y.context.setTransform(k.a,k.b,k.c,k.d,k.tx,k.ty);Aa.__pool.release(k);null==Y.clearRect&&(Y.clearRect="undefined"!==typeof navigator&&"undefined"!==typeof navigator.isCocoonJS);Y.clearRect&&Y.context.clearRect(0,0,f.__canvas.width,f.__canvas.height);if(null!=c.text&&""!=c.text||c.__hasFocus){l=c.text;f.__context.imageSmoothingEnabled=!b.__allowSmoothing||0==c.antiAliasType&&400==c.sharpness?!1:!0;if(c.border||c.background){Y.context.rect(.5, +.5,e.width-1,e.height-1);if(c.background){var p=J.hex(c.backgroundColor&16777215,6);Y.context.fillStyle="#"+p;Y.context.fill()}c.border&&(Y.context.lineWidth=1,p=J.hex(c.borderColor&16777215,6),Y.context.strokeStyle="#"+p,Y.context.stroke())}Y.context.textBaseline="alphabetic";Y.context.textAlign="start";m=-a.get_scrollH();var n=d=0;for(p=a.get_scrollV()-1;n<p;){var r=n++;d-=c.lineHeights.get(r)}var q;for(h=c.layoutGroups.iterator();h.hasNext();){var v=h.next();if(!(v.lineIndex<a.get_scrollV()-1)){if(v.lineIndex> +c.get_bottomScrollV()-1)break;k="#"+J.hex(v.format.color&16777215,6);Y.context.font=Ob.getFont(v.format);Y.context.fillStyle=k;Y.context.fillText(l.substring(v.startIndex,v.endIndex),v.offsetX+m-e.x,v.offsetY+v.ascent+d-e.y);if(-1<a.__caretIndex&&c.selectable)if(a.__selectionIndex==a.__caretIndex){if(a.__showCursor&&v.startIndex<=a.__caretIndex&&v.endIndex>=a.__caretIndex){n=q=0;for(p=a.__caretIndex-v.startIndex;n<p;){r=n++;if(v.positions.length<=r)break;q+=v.positions[r]}n=0;p=a.get_scrollV();for(r= +v.lineIndex+1;p<r;){var u=p++;n+=c.lineHeights.get(u-1)}Y.context.beginPath();p=J.hex(v.format.color&16777215,6);Y.context.strokeStyle="#"+p;Y.context.moveTo(v.offsetX+q-a.get_scrollH()-e.x,n+2-e.y);Y.context.lineWidth=1;Y.context.lineTo(v.offsetX+q-a.get_scrollH()-e.x,n+Ob.getFormatHeight(a.get_defaultTextFormat())-1-e.y);Y.context.stroke();Y.context.closePath()}}else if(v.startIndex<=a.__caretIndex&&v.endIndex>=a.__caretIndex||v.startIndex<=a.__selectionIndex&&v.endIndex>=a.__selectionIndex||v.startIndex> +a.__caretIndex&&v.endIndex<a.__selectionIndex||v.startIndex>a.__selectionIndex&&v.endIndex<a.__caretIndex)q=Math.min(a.__selectionIndex,a.__caretIndex)|0,n=Math.max(a.__selectionIndex,a.__caretIndex)|0,v.startIndex>q&&(q=v.startIndex),v.endIndex<n&&(n=v.endIndex),r=a.getCharBoundaries(q),n>=v.endIndex?(p=a.getCharBoundaries(v.endIndex-1),null!=p&&(p.x+=p.width+2)):p=a.getCharBoundaries(n),null!=r&&null!=p&&(Y.context.fillStyle="#000000",Y.context.fillRect(r.x+m-e.x,r.y+d,p.x-r.x,v.height),Y.context.fillStyle= +"#FFFFFF",Y.context.fillText(l.substring(q,n),m+r.x-e.x,v.offsetY+v.ascent+d));v.format.underline&&(Y.context.beginPath(),Y.context.strokeStyle=k,Y.context.lineWidth=1,k=v.offsetX+m-e.x,q=Math.ceil(v.offsetY+d+v.ascent-e.y)+Math.floor(.185*v.ascent)+.5,Y.context.moveTo(k,q),Y.context.lineTo(k+v.width,q),Y.context.stroke(),Y.context.closePath())}}}else{if(c.border||c.background)c.border?Y.context.rect(.5,.5,e.width-1,e.height-1):Y.context.rect(0,0,e.width,e.height),c.background&&(p=J.hex(c.backgroundColor& +16777215,6),Y.context.fillStyle="#"+p,Y.context.fill()),c.border&&(Y.context.lineWidth=1,Y.context.lineCap="square",p=J.hex(c.borderColor&16777215,6),Y.context.strokeStyle="#"+p,Y.context.stroke());if(-1<a.__caretIndex&&c.selectable&&a.__showCursor){m=-a.get_scrollH()+(d?0:h);n=d=0;for(p=a.get_scrollV()-1;n<p;)r=n++,d+=c.lineHeights.get(r);Y.context.beginPath();p=J.hex(a.get_defaultTextFormat().color&16777215,6);Y.context.strokeStyle="#"+p;Y.context.moveTo(m+2.5,d+2.5);Y.context.lineWidth=1;Y.context.lineTo(m+ +2.5,d+Ob.getFormatHeight(a.get_defaultTextFormat())-1);Y.context.stroke();Y.context.closePath()}}f.__bitmap=Ja.fromCanvas(a.__graphics.__canvas);f.__bitmapScale=t;f.__visible=!0;a.__dirty=!1;f.__softwareDirty=!1;f.set___dirty(!1)}}d=!1;0==a.__textEngine.antiAliasType&&1==a.__textEngine.gridFitType&&(d=b.context.imageSmoothingEnabled)&&(b.context.imageSmoothingEnabled=!1);if((null!=a.opaqueBackground||null!=a.__graphics)&&a.__renderable&&(e=b.__getAlpha(a.__worldAlpha),!(0>=e)&&(null!=a.opaqueBackground&& +!a.__isCacheBitmapRender&&0<a.get_width()&&0<a.get_height()&&(b.__setBlendMode(a.__worldBlendMode),b.__pushMaskObject(a),c=b.context,b.setTransform(a.__renderTransform,c),k=a.opaqueBackground,c.fillStyle="rgb("+(k>>>16&255)+","+(k>>>8&255)+","+(k&255)+")",c.fillRect(0,0,a.get_width(),a.get_height()),b.__popMaskObject(a)),null!=a.__graphics&&a.__renderable&&(e=b.__getAlpha(a.__worldAlpha),!(0>=e)&&(f=a.__graphics,null!=f&&(D.render(f,b),l=f.__width,m=f.__height,h=f.__canvas,null!=h&&f.__visible&&1<= +l&&1<=m&&(v=f.__worldTransform,c=b.context,t=a.__scrollRect,u=a.__worldScale9Grid,null==t||0<t.width&&0<t.height))))))){b.__setBlendMode(a.__worldBlendMode);b.__pushMaskObject(a);c.globalAlpha=e;if(null!=u&&0==v.b&&0==v.c){t=b.__pixelRatio;k=Aa.__pool.get();k.translate(v.tx,v.ty);b.setTransform(k,c);Aa.__pool.release(k);e=f.__bounds;n=f.__renderTransform.a/f.__bitmapScale;var w=f.__renderTransform.d/f.__bitmapScale;p=n*v.a;r=w*v.d;f=Math.max(1,Math.round(u.x*n));v=Math.round(u.y*w);k=Math.max(1,Math.round((e.get_right()- +u.get_right())*n));q=Math.round((e.get_bottom()-u.get_bottom())*w);n=Math.round(u.width*n);u=Math.round(u.height*w);w=Math.round(f/t);var B=Math.round(v/t),E=Math.round(k/t);t=Math.round(q/t);p=e.width*p-w-E;e=e.height*r-B-t;b.applySmoothing(c,!1);0!=n&&0!=u?(c.drawImage(h,0,0,f,v,0,0,w,B),c.drawImage(h,f,0,n,v,w,0,p,B),c.drawImage(h,f+n,0,k,v,w+p,0,E,B),c.drawImage(h,0,v,f,u,0,B,w,e),c.drawImage(h,f,v,n,u,w,B,p,e),c.drawImage(h,f+n,v,k,u,w+p,B,E,e),c.drawImage(h,0,v+u,f,q,0,B+e,w,t),c.drawImage(h, +f,v+u,n,q,w,B+e,p,t),c.drawImage(h,f+n,v+u,k,q,w+p,B+e,E,t)):0==n&&0!=u?(f=w+p+E,c.drawImage(h,0,0,l,v,0,0,f,B),c.drawImage(h,0,v,l,u,0,B,f,e),c.drawImage(h,0,v+u,l,q,0,B+e,f,t)):0==u&&0!=n&&(e=B+e+t,c.drawImage(h,0,0,f,m,0,0,w,e),c.drawImage(h,f,0,n,m,w,0,p,e),c.drawImage(h,f+n,0,k,m,w+p,0,E,e))}else b.setTransform(v,c),c.drawImage(h,0,0,l,m);b.__popMaskObject(a)}d&&(b.context.imageSmoothingEnabled=!0)}else a=a.__cacheBitmap,a.__renderable&&(e=b.__getAlpha(a.__worldAlpha),0<e&&null!=a.__bitmapData&& +a.__bitmapData.__isValid&&a.__bitmapData.readable&&(c=b.context,b.__setBlendMode(a.__worldBlendMode),b.__pushMaskObject(a,!1),za.convertToCanvas(a.__bitmapData.image),c.globalAlpha=e,t=a.__scrollRect,b.setTransform(a.__renderTransform,c),b.__allowSmoothing&&a.smoothing||(c.imageSmoothingEnabled=!1),null==t?c.drawImage(a.__bitmapData.image.get_src(),0,0,a.__bitmapData.image.width,a.__bitmapData.image.height):c.drawImage(a.__bitmapData.image.get_src(),t.x,t.y,t.width,t.height,t.x,t.y,t.width,t.height), +b.__allowSmoothing&&a.smoothing||(c.imageSmoothingEnabled=!0),b.__popMaskObject(a,!1)))};Y.renderDrawableMask=function(a,b){zh.renderDrawableMask(a,b)};var Uf=function(){};k["openfl.display._internal.CanvasTilemap"]=Uf;Uf.__name__="openfl.display._internal.CanvasTilemap";Uf.render=function(a,b){if(a.__renderable&&0!=a.__group.__tiles.length){var c=b.__getAlpha(a.__worldAlpha);if(!(0>=c)){var d=b.context;b.__setBlendMode(a.__worldBlendMode);b.__pushMaskObject(a);var e=fa.__pool.get();e.setTo(0,0,a.__width, +a.__height);b.__pushMaskRect(e,a.__renderTransform);b.__allowSmoothing&&a.smoothing||(d.imageSmoothingEnabled=!1);Uf.renderTileContainer(a.__group,b,a.__renderTransform,a.__tileset,b.__allowSmoothing&&a.smoothing,a.tileAlphaEnabled,c,a.tileBlendModeEnabled,a.__worldBlendMode,null,null,e);b.__allowSmoothing&&a.smoothing||(d.imageSmoothingEnabled=!0);b.__popMaskRect();b.__popMaskObject(a);fa.__pool.release(e)}}};Uf.renderTileContainer=function(a,b,c,d,e,f,h,l,t,m,k,p){var g=b.context,x=b.__roundPixels, +n=Aa.__pool.get(),r=a.__tiles,q,v=null,u=0;for(a=a.__length;u<a;){var w=u++;var B=r[w];n.setTo(1,0,0,1,-B.get_originX(),-B.get_originY());n.concat(B.get_matrix());n.concat(c);x&&(n.tx=Math.round(n.tx),n.ty=Math.round(n.ty));var E=null!=B.get_tileset()?B.get_tileset():d;w=B.get_alpha()*h;if((q=B.get_visible())&&!(0>=w))if(f||(w=1),l&&(v=null!=B.__blendMode?B.__blendMode:t),0<B.__length)Uf.renderTileContainer(B,b,n,E,e,f,w,l,v,m,k,p);else if(null!=E){q=B.get_id();if(-1==q){if(B=B.__rect,null==B||0>= +B.width||0>=B.height)continue}else{B=E.__data[q];if(null==B)continue;p.setTo(B.x,B.y,B.width,B.height);B=p}E=E.__bitmapData;null!=E&&(E!=m&&(null==E.image.buffer.__srcImage&&za.convertToCanvas(E.image),k=E.image.get_src(),m=E),g.globalAlpha=w,l&&b.__setBlendMode(v),b.setTransform(n,g),g.drawImage(k,B.x,B.y,B.width,B.height,0,0,B.width,B.height))}}Aa.__pool.release(n)};Uf.renderDrawable=function(a,b){b.__updateCacheBitmap(a,!1);if(null==a.__cacheBitmap||a.__isCacheBitmapRender){if(!(null==a.opaqueBackground&& +null==a.__graphics||!a.__renderable||(u=b.__getAlpha(a.__worldAlpha),0>=u))){if(null!=a.opaqueBackground&&!a.__isCacheBitmapRender&&0<a.get_width()&&0<a.get_height()){b.__setBlendMode(a.__worldBlendMode);b.__pushMaskObject(a);w=b.context;b.setTransform(a.__renderTransform,w);var c=a.opaqueBackground;w.fillStyle="rgb("+(c>>>16&255)+","+(c>>>8&255)+","+(c&255)+")";w.fillRect(0,0,a.get_width(),a.get_height());b.__popMaskObject(a)}if(null!=a.__graphics&&a.__renderable&&(u=b.__getAlpha(a.__worldAlpha), +!(0>=u))){var d=a.__graphics;if(null!=d){D.render(d,b);var e=d.__width,f=d.__height;c=d.__canvas;if(null!=c&&d.__visible&&1<=e&&1<=f){var h=d.__worldTransform;w=b.context;B=a.__scrollRect;var l=a.__worldScale9Grid;if(null==B||0<B.width&&0<B.height){b.__setBlendMode(a.__worldBlendMode);b.__pushMaskObject(a);w.globalAlpha=u;if(null!=l&&0==h.b&&0==h.c){var t=b.__pixelRatio;u=Aa.__pool.get();u.translate(h.tx,h.ty);b.setTransform(u,w);Aa.__pool.release(u);u=d.__bounds;var m=d.__renderTransform.a/d.__bitmapScale, +k=d.__renderTransform.d/d.__bitmapScale,p=m*h.a,n=k*h.d;h=Math.max(1,Math.round(l.x*m));d=Math.round(l.y*k);B=Math.max(1,Math.round((u.get_right()-l.get_right())*m));var r=Math.round((u.get_bottom()-l.get_bottom())*k);m=Math.round(l.width*m);l=Math.round(l.height*k);k=Math.round(h/t);var q=Math.round(d/t),v=Math.round(B/t);t=Math.round(r/t);p=u.width*p-k-v;u=u.height*n-q-t;b.applySmoothing(w,!1);0!=m&&0!=l?(w.drawImage(c,0,0,h,d,0,0,k,q),w.drawImage(c,h,0,m,d,k,0,p,q),w.drawImage(c,h+m,0,B,d,k+p, +0,v,q),w.drawImage(c,0,d,h,l,0,q,k,u),w.drawImage(c,h,d,m,l,k,q,p,u),w.drawImage(c,h+m,d,B,l,k+p,q,v,u),w.drawImage(c,0,d+l,h,r,0,q+u,k,t),w.drawImage(c,h,d+l,m,r,k,q+u,p,t),w.drawImage(c,h+m,d+l,B,r,k+p,q+u,v,t)):0==m&&0!=l?(f=k+p+v,w.drawImage(c,0,0,e,d,0,0,f,q),w.drawImage(c,0,d,e,l,0,q,f,u),w.drawImage(c,0,d+l,e,r,0,q+u,f,t)):0==l&&0!=m&&(e=q+u+t,w.drawImage(c,0,0,h,f,0,0,k,e),w.drawImage(c,h,0,m,f,k,0,p,e),w.drawImage(c,h+m,0,B,f,k+p,0,v,e))}else b.setTransform(h,w),w.drawImage(c,0,0,e,f);b.__popMaskObject(a)}}}}}a.__renderable&& +0!=a.__group.__tiles.length&&(u=b.__getAlpha(a.__worldAlpha),0>=u||(w=b.context,b.__setBlendMode(a.__worldBlendMode),b.__pushMaskObject(a),c=fa.__pool.get(),c.setTo(0,0,a.__width,a.__height),b.__pushMaskRect(c,a.__renderTransform),b.__allowSmoothing&&a.smoothing||(w.imageSmoothingEnabled=!1),Uf.renderTileContainer(a.__group,b,a.__renderTransform,a.__tileset,b.__allowSmoothing&&a.smoothing,a.tileAlphaEnabled,u,a.tileBlendModeEnabled,a.__worldBlendMode,null,null,c),b.__allowSmoothing&&a.smoothing|| +(w.imageSmoothingEnabled=!0),b.__popMaskRect(),b.__popMaskObject(a),fa.__pool.release(c)))}else if(c=a.__cacheBitmap,c.__renderable){var u=b.__getAlpha(c.__worldAlpha);if(0<u&&null!=c.__bitmapData&&c.__bitmapData.__isValid&&c.__bitmapData.readable){var w=b.context;b.__setBlendMode(c.__worldBlendMode);b.__pushMaskObject(c,!1);za.convertToCanvas(c.__bitmapData.image);w.globalAlpha=u;var B=c.__scrollRect;b.setTransform(c.__renderTransform,w);b.__allowSmoothing&&c.smoothing||(w.imageSmoothingEnabled= +!1);null==B?w.drawImage(c.__bitmapData.image.get_src(),0,0,c.__bitmapData.image.width,c.__bitmapData.image.height):w.drawImage(c.__bitmapData.image.get_src(),B.x,B.y,B.width,B.height,B.x,B.y,B.width,B.height);b.__allowSmoothing&&c.smoothing||(w.imageSmoothingEnabled=!0);b.__popMaskObject(c,!1)}}b.__renderEvent(a)};Uf.renderDrawableMask=function(a,b){};var Zh=function(){};k["openfl.display._internal.CanvasVideo"]=Zh;Zh.__name__="openfl.display._internal.CanvasVideo";Zh.render=function(a,b){if(a.__renderable&& +null!=a.__stream){var c=b.__getAlpha(a.__worldAlpha);if(!(0>=c)){var d=b.context;if(null!=a.__stream.__video){b.__setBlendMode(a.__worldBlendMode);b.__pushMaskObject(a);d.globalAlpha=c;c=a.__scrollRect;var e=a.smoothing;b.setTransform(a.__worldTransform,d);e||(d.imageSmoothingEnabled=!1);null==c?d.drawImage(a.__stream.__video,0,0,a.get_width(),a.get_height()):d.drawImage(a.__stream.__video,c.x,c.y,c.width,c.height,c.x,c.y,c.width,c.height);e||(d.imageSmoothingEnabled=!0);b.__popMaskObject(a)}}}}; +Zh.renderDrawable=function(a,b){Zh.render(a,b);b.__renderEvent(a)};Zh.renderDrawableMask=function(a,b){};var tf=function(){};k["openfl.display._internal.Context3DBitmap"]=tf;tf.__name__="openfl.display._internal.Context3DBitmap";tf.render=function(a,b){if(a.__renderable&&!(0>=a.__worldAlpha)&&null!=a.__bitmapData&&a.__bitmapData.__isValid){var c=b.__context3D;b.__setBlendMode(a.__worldBlendMode);b.__pushMaskObject(a);var d=b.__initDisplayShader(a.__worldShader);b.setShader(d);b.applyBitmapData(a.__bitmapData, +b.__allowSmoothing&&(a.smoothing||b.__upscaled));b.applyMatrix(b.__getMatrix(a.__renderTransform,a.pixelSnapping));b.applyAlpha(a.__worldAlpha);b.applyColorTransform(a.__worldColorTransform);b.updateShader();var e=a.__bitmapData.getVertexBuffer(c);null!=d.__position&&c.setVertexBufferAt(d.__position.index,e,0,3);null!=d.__textureCoord&&c.setVertexBufferAt(d.__textureCoord.index,e,3,2);d=a.__bitmapData.getIndexBuffer(c);c.drawTriangles(d);b.__clearShader();b.__popMaskObject(a)}};tf.renderDrawable= +function(a,b){b.__updateCacheBitmap(a,!1);null!=a.__bitmapData&&null!=a.__bitmapData.image&&(a.__imageVersion=a.__bitmapData.image.version);if(null==a.__cacheBitmap||a.__isCacheBitmapRender){if(!(null==a.opaqueBackground&&null==a.__graphics||!a.__renderable||0>=a.__worldAlpha)){if(null!=a.opaqueBackground&&!a.__isCacheBitmapRender&&0<a.get_width()&&0<a.get_height()){b.__setBlendMode(a.__worldBlendMode);b.__pushMaskObject(a);var c=b.__context3D,d=fa.__pool.get();d.setTo(0,0,a.get_width(),a.get_height()); +b.__pushMaskRect(d,a.__renderTransform);var e=a.opaqueBackground;c.clear((e>>>16&255)/255,(e>>>8&255)/255,(e&255)/255,1,0,0,1);b.__popMaskRect();b.__popMaskObject(a);fa.__pool.release(d)}null!=a.__graphics&&Yf.render(a,b)}tf.render(a,b)}else tf.render(a.__cacheBitmap,b);b.__renderEvent(a)};tf.renderDrawableMask=function(a,b){tf.renderMask(a,b)};tf.renderMask=function(a,b){if(null!=a.__bitmapData&&a.__bitmapData.__isValid){var c=b.__context3D,d=b.__maskShader;b.setShader(d);b.applyBitmapData($h.opaqueBitmapData, +!0);b.applyMatrix(b.__getMatrix(a.__renderTransform,a.pixelSnapping));b.updateShader();var e=a.__bitmapData.getVertexBuffer(c);null!=d.__position&&c.setVertexBufferAt(d.__position.index,e,0,3);null!=d.__textureCoord&&c.setVertexBufferAt(d.__textureCoord.index,e,3,2);a=a.__bitmapData.getIndexBuffer(c);c.drawTriangles(a);b.__clearShader()}};var Vm=function(){};k["openfl.display._internal.Context3DBitmapData"]=Vm;Vm.__name__="openfl.display._internal.Context3DBitmapData";Vm.renderDrawable=function(a, +b){var c=b.__context3D;b.__setBlendMode(10);var d=b.__defaultDisplayShader;b.setShader(d);b.applyBitmapData(a,b.__upscaled);b.applyMatrix(b.__getMatrix(a.__worldTransform,1));b.applyAlpha(a.__worldAlpha);b.applyColorTransform(a.__worldColorTransform);b.updateShader();var e=a.getVertexBuffer(c);null!=d.__position&&c.setVertexBufferAt(d.__position.index,e,0,3);null!=d.__textureCoord&&c.setVertexBufferAt(d.__textureCoord.index,e,3,2);a=a.getIndexBuffer(c);c.drawTriangles(a);b.__clearShader()};Vm.renderDrawableMask= +function(a,b){var c=b.__context3D,d=b.__maskShader;b.setShader(d);b.applyBitmapData(a,b.__upscaled);b.applyMatrix(b.__getMatrix(a.__worldTransform,1));b.updateShader();var e=a.getVertexBuffer(c);null!=d.__position&&c.setVertexBufferAt(d.__position.index,e,0,3);null!=d.__textureCoord&&c.setVertexBufferAt(d.__textureCoord.index,e,3,2);a=a.getIndexBuffer(c);c.drawTriangles(a);b.__clearShader()};var Bh=function(a,b,c,d){this.context3D=a;this.elementType=b;this.dataPerVertex=d;this.vertexCount=this.indexCount= +0;this.resize(c)};k["openfl.display._internal.Context3DBuffer"]=Bh;Bh.__name__="openfl.display._internal.Context3DBuffer";Bh.prototype={dataPerVertex:null,elementCount:null,elementType:null,indexBufferData:null,indexBuffers:null,indexCount:null,vertexBuffer:null,vertexBufferData:null,vertexCount:null,context3D:null,drawElements:function(a,b){null==b&&(b=-1);if(0!=this.indexCount&&0!=this.vertexCount&&0==this.elementType._hx_index)if(-1==b&&(b=2*this.elementCount),10922>a&&10922>b-a)this.context3D.drawTriangles(this.indexBuffers[0], +a,2*b);else for(var c=a+b;a<c;){var d=Math.floor(a/10922);b=Math.min(c-a,10922)|0;if(0>=b)break;this.context3D.drawTriangles(this.indexBuffers[d],3*(a-10922*d),2*b);a+=b}},flushVertexBufferData:function(){this.vertexBufferData.length>this.vertexCount&&(this.vertexCount=this.vertexBufferData.length,this.vertexBuffer=this.context3D.createVertexBuffer(this.vertexCount,this.dataPerVertex,0));this.vertexBuffer.uploadFromTypedArray(Ug.toArrayBufferView(this.vertexBufferData))},resize:function(a,b){null== +b&&(b=-1);this.elementCount=a;-1==b&&(b=this.dataPerVertex);b!=this.dataPerVertex&&(this.vertexBuffer=null,this.vertexCount=0,this.dataPerVertex=b);var c=0;switch(this.elementType._hx_index){case 0:c=4*a;break;case 1:c=3*a;break;case 2:c=3*a}b*=c;if(null==this.vertexBufferData){var d=c=null,e=null,f=null,h=null;this.vertexBufferData=b=null!=b?new Float32Array(b):null!=c?new Float32Array(c):null!=d?new Float32Array(d.__array):null!=e?new Float32Array(e):null!=f?null==h?new Float32Array(f,0):new Float32Array(f, +0,h):null}else b>this.vertexBufferData.length&&(a=this.vertexBufferData,h=f=e=d=c=null,this.vertexBufferData=b=null!=b?new Float32Array(b):null!=c?new Float32Array(c):null!=d?new Float32Array(d.__array):null!=e?new Float32Array(e):null!=f?null==h?new Float32Array(f,0):new Float32Array(f,0,h):null,this.vertexBufferData.set(a))},__class__:Bh};var en=E["openfl.display._internal.Context3DElementType"]={__ename__:"openfl.display._internal.Context3DElementType",__constructs__:null,QUADS:{_hx_name:"QUADS", +_hx_index:0,__enum__:"openfl.display._internal.Context3DElementType",toString:v},TRIANGLES:{_hx_name:"TRIANGLES",_hx_index:1,__enum__:"openfl.display._internal.Context3DElementType",toString:v},TRIANGLE_INDICES:{_hx_name:"TRIANGLE_INDICES",_hx_index:2,__enum__:"openfl.display._internal.Context3DElementType",toString:v}};en.__constructs__=[en.QUADS,en.TRIANGLES,en.TRIANGLE_INDICES];var $g=function(){};k["openfl.display._internal.Context3DDisplayObject"]=$g;$g.__name__="openfl.display._internal.Context3DDisplayObject"; +$g.render=function(a,b){if(!(null==a.opaqueBackground&&null==a.__graphics||!a.__renderable||0>=a.__worldAlpha)){if(null!=a.opaqueBackground&&!a.__isCacheBitmapRender&&0<a.get_width()&&0<a.get_height()){b.__setBlendMode(a.__worldBlendMode);b.__pushMaskObject(a);var c=b.__context3D,d=fa.__pool.get();d.setTo(0,0,a.get_width(),a.get_height());b.__pushMaskRect(d,a.__renderTransform);var e=a.opaqueBackground;c.clear((e>>>16&255)/255,(e>>>8&255)/255,(e&255)/255,1,0,0,1);b.__popMaskRect();b.__popMaskObject(a); +fa.__pool.release(d)}null!=a.__graphics&&Yf.render(a,b)}};$g.renderDrawable=function(a,b){b.__updateCacheBitmap(a,!1);if(null!=a.__cacheBitmap&&!a.__isCacheBitmapRender)tf.render(a.__cacheBitmap,b);else if(!(null==a.opaqueBackground&&null==a.__graphics||!a.__renderable||0>=a.__worldAlpha)){if(null!=a.opaqueBackground&&!a.__isCacheBitmapRender&&0<a.get_width()&&0<a.get_height()){b.__setBlendMode(a.__worldBlendMode);b.__pushMaskObject(a);var c=b.__context3D,d=fa.__pool.get();d.setTo(0,0,a.get_width(), +a.get_height());b.__pushMaskRect(d,a.__renderTransform);var e=a.opaqueBackground;c.clear((e>>>16&255)/255,(e>>>8&255)/255,(e&255)/255,1,0,0,1);b.__popMaskRect();b.__popMaskObject(a);fa.__pool.release(d)}null!=a.__graphics&&Yf.render(a,b)}b.__renderEvent(a)};$g.renderDrawableMask=function(a,b){null!=a.__graphics&&Yf.renderMask(a,b)};$g.renderMask=function(a,b){if(null!=a.opaqueBackground||null!=a.__graphics)null!=a.opaqueBackground&&!a.__isCacheBitmapRender&&0<a.get_width()&&a.get_height(),null!=a.__graphics&& +Yf.renderMask(a,b)};var Wm=function(){};k["openfl.display._internal.Context3DDisplayObjectContainer"]=Wm;Wm.__name__="openfl.display._internal.Context3DDisplayObjectContainer";Wm.renderDrawable=function(a,b){for(var c=a.__removedChildren.iterator();c.hasNext();){var d=c.next();null==d.stage&&d.__cleanup()}a.__removedChildren.set_length(0);if(a.__renderable&&!(0>=a.__worldAlpha)&&($g.renderDrawable(a,b),null==a.__cacheBitmap||a.__isCacheBitmapRender)){if(0<a.__children.length)if(b.__pushMaskObject(a), +null!=b.__stage){c=0;for(d=a.__children;c<d.length;){var e=d[c];++c;b.__renderDrawable(e);e.__renderDirty=!1}a.__renderDirty=!1}else for(c=0,d=a.__children;c<d.length;)e=d[c],++c,b.__renderDrawable(e);0<a.__children.length&&b.__popMaskObject(a)}};Wm.renderDrawableMask=function(a,b){for(var c=a.__removedChildren.iterator();c.hasNext();){var d=c.next();null==d.stage&&d.__cleanup()}a.__removedChildren.set_length(0);null!=a.__graphics&&Yf.renderMask(a,b);c=0;for(a=a.__children;c<a.length;)d=a[c],++c, +b.__renderDrawableMask(d)};var Mc=function(){};k["openfl.display._internal.Context3DGraphics"]=Mc;Mc.__name__="openfl.display._internal.Context3DGraphics";Mc.buildBuffer=function(a,b){var c,d=c=0,e=0,f=new Vf(a.__commands);b=b.__context3D;for(var h=fa.__pool.get(),l=Aa.__pool.get(),t=null,m=0,k=a.__commands.types;m<k.length;){var p=k[m];++m;switch(p._hx_index){case 0:switch(f.prev._hx_index){case 0:f.oPos+=2;f.bPos+=2;break;case 1:f.iPos+=1;f.fPos+=1;break;case 2:f.oPos+=4;f.iiPos+=2;f.ffPos+=1;f.fPos+= +1;break;case 3:f.oPos+=1;break;case 4:f.fPos+=6;break;case 5:f.fPos+=4;break;case 6:f.fPos+=3;break;case 7:f.fPos+=4;break;case 8:f.oPos+=3;break;case 9:f.fPos+=4;break;case 10:f.fPos+=5;f.oPos+=1;break;case 12:f.oPos+=4;break;case 14:f.oPos+=2;f.bPos+=2;break;case 15:f.oPos+=4;f.iiPos+=2;f.ffPos+=1;f.fPos+=1;break;case 16:f.oPos+=4;f.iPos+=1;f.fPos+=2;f.bPos+=1;break;case 17:f.fPos+=2;break;case 18:f.fPos+=2;break;case 19:f.oPos+=1;break;case 20:f.oPos+=1}f.prev=ba.BEGIN_BITMAP_FILL;t=f;t=t.buffer.o[t.oPos]; +break;case 1:t=null;switch(f.prev._hx_index){case 0:f.oPos+=2;f.bPos+=2;break;case 1:f.iPos+=1;f.fPos+=1;break;case 2:f.oPos+=4;f.iiPos+=2;f.ffPos+=1;f.fPos+=1;break;case 3:f.oPos+=1;break;case 4:f.fPos+=6;break;case 5:f.fPos+=4;break;case 6:f.fPos+=3;break;case 7:f.fPos+=4;break;case 8:f.oPos+=3;break;case 9:f.fPos+=4;break;case 10:f.fPos+=5;f.oPos+=1;break;case 12:f.oPos+=4;break;case 14:f.oPos+=2;f.bPos+=2;break;case 15:f.oPos+=4;f.iiPos+=2;f.ffPos+=1;f.fPos+=1;break;case 16:f.oPos+=4;f.iPos+= +1;f.fPos+=2;f.bPos+=1;break;case 17:f.fPos+=2;break;case 18:f.fPos+=2;break;case 19:f.oPos+=1;break;case 20:f.oPos+=1}f.prev=p;break;case 3:switch(f.prev._hx_index){case 0:f.oPos+=2;f.bPos+=2;break;case 1:f.iPos+=1;f.fPos+=1;break;case 2:f.oPos+=4;f.iiPos+=2;f.ffPos+=1;f.fPos+=1;break;case 3:f.oPos+=1;break;case 4:f.fPos+=6;break;case 5:f.fPos+=4;break;case 6:f.fPos+=3;break;case 7:f.fPos+=4;break;case 8:f.oPos+=3;break;case 9:f.fPos+=4;break;case 10:f.fPos+=5;f.oPos+=1;break;case 12:f.oPos+=4;break; +case 14:f.oPos+=2;f.bPos+=2;break;case 15:f.oPos+=4;f.iiPos+=2;f.ffPos+=1;f.fPos+=1;break;case 16:f.oPos+=4;f.iPos+=1;f.fPos+=2;f.bPos+=1;break;case 17:f.fPos+=2;break;case 18:f.fPos+=2;break;case 19:f.oPos+=1;break;case 20:f.oPos+=1}f.prev=ba.BEGIN_SHADER_FILL;t=f;p=t.buffer.o[t.oPos];t=null;if(null!=p)for(var n=0,r=p.inputCount;n<r;){var q=n++;if("bitmap"==p.inputRefs[q].name){t=p.inputs[q];break}}break;case 8:if(null!=t){switch(f.prev._hx_index){case 0:f.oPos+=2;f.bPos+=2;break;case 1:f.iPos+= +1;f.fPos+=1;break;case 2:f.oPos+=4;f.iiPos+=2;f.ffPos+=1;f.fPos+=1;break;case 3:f.oPos+=1;break;case 4:f.fPos+=6;break;case 5:f.fPos+=4;break;case 6:f.fPos+=3;break;case 7:f.fPos+=4;break;case 8:f.oPos+=3;break;case 9:f.fPos+=4;break;case 10:f.fPos+=5;f.oPos+=1;break;case 12:f.oPos+=4;break;case 14:f.oPos+=2;f.bPos+=2;break;case 15:f.oPos+=4;f.iiPos+=2;f.ffPos+=1;f.fPos+=1;break;case 16:f.oPos+=4;f.iPos+=1;f.fPos+=2;f.bPos+=1;break;case 17:f.fPos+=2;break;case 18:f.fPos+=2;break;case 19:f.oPos+=1; +break;case 20:f.oPos+=1}f.prev=ba.DRAW_QUADS;r=f;p=r.buffer.o[r.oPos];n=r.buffer.o[r.oPos+1];r=r.buffer.o[r.oPos+2];q=null!=n;var v=!1,u=!1,w=q?n.get_length():Math.floor(p.get_length()/4);if(0==w)return;null!=r&&(r.get_length()>=6*w?u=v=!0:r.get_length()>=4*w?v=!0:r.get_length()>=2*w&&(u=!0));null==a.__quadBuffer?a.__quadBuffer=new Bh(b,en.QUADS,w,4):a.__quadBuffer.resize(c+w,4);for(var B,E,C,N,z,J,A,D,Ha,F,H,G,I,L,K=a.__quadBuffer.vertexBufferData,y=t.width,P=t.height,O=0,Z=w;O<Z;)N=O++,B=16*(c+ +N),E=q?4*n.get(N):4*N,0>E||(h.setTo(p.get(E),p.get(E+1),p.get(E+2),p.get(E+3)),E=h.width,C=h.height,0>=E||0>=C||(v&&u?(N*=6,l.setTo(r.get(N),r.get(N+1),r.get(N+2),r.get(N+3),r.get(N+4),r.get(N+5))):v?(N*=4,l.setTo(r.get(N),r.get(N+1),r.get(N+2),r.get(N+3),h.x,h.y)):u?(N*=2,l.tx=r.get(N),l.ty=r.get(N+1)):(l.tx=h.x,l.ty=h.y),N=h.x/y,z=h.y/P,J=h.get_right()/y,A=h.get_bottom()/P,D=0*l.a+0*l.c+l.tx,Ha=0*l.b+0*l.d+l.ty,F=E*l.a+0*l.c+l.tx,H=E*l.b+0*l.d+l.ty,G=0*l.a+C*l.c+l.tx,I=0*l.b+C*l.d+l.ty,L=E*l.a+ +C*l.c+l.tx,E=E*l.b+C*l.d+l.ty,K[B]=D,K[B+1]=Ha,K[B+2]=N,K[B+3]=z,K[B+4]=F,K[B+4+1]=H,K[B+4+2]=J,K[B+4+3]=z,K[B+8]=G,K[B+8+1]=I,K[B+8+2]=N,K[B+8+3]=A,K[B+12]=L,K[B+12+1]=E,K[B+12+2]=J,K[B+12+3]=A));c+=w}break;case 12:switch(f.prev._hx_index){case 0:f.oPos+=2;f.bPos+=2;break;case 1:f.iPos+=1;f.fPos+=1;break;case 2:f.oPos+=4;f.iiPos+=2;f.ffPos+=1;f.fPos+=1;break;case 3:f.oPos+=1;break;case 4:f.fPos+=6;break;case 5:f.fPos+=4;break;case 6:f.fPos+=3;break;case 7:f.fPos+=4;break;case 8:f.oPos+=3;break;case 9:f.fPos+= +4;break;case 10:f.fPos+=5;f.oPos+=1;break;case 12:f.oPos+=4;break;case 14:f.oPos+=2;f.bPos+=2;break;case 15:f.oPos+=4;f.iiPos+=2;f.ffPos+=1;f.fPos+=1;break;case 16:f.oPos+=4;f.iPos+=1;f.fPos+=2;f.bPos+=1;break;case 17:f.fPos+=2;break;case 18:f.fPos+=2;break;case 19:f.oPos+=1;break;case 20:f.oPos+=1}f.prev=ba.DRAW_TRIANGLES;r=f;p=r.buffer.o[r.oPos];n=r.buffer.o[r.oPos+1];r=r.buffer.o[r.oPos+2];q=null!=n;w=Math.floor(p.get_length()/2);v=q?n.get_length():w;B=(w=(u=null!=r)&&r.get_length()>=3*w)?4:2; +K=w?3:2;y=B+2;P=w?e:d;Mc.resizeVertexBuffer(a,w,P+v*y);O=w?a.__vertexBufferDataUVT:a.__vertexBufferData;C=0;for(N=v;C<N;)z=C++,Z=P+z*y,E=q?2*n.get(z):2*z,z=q?n.get(z)*K:z*K,w?(J=r.get(z+2),O[Z]=p.get(E)/J,O[Z+1]=p.get(E+1)/J,O[Z+2]=0,O[Z+3]=1/J):(O[Z]=p.get(E),O[Z+1]=p.get(E+1)),O[Z+B]=u?r.get(z):0,O[Z+B+1]=u?r.get(z+1):0;w?e+=v*y:d+=v*y;break;case 13:t=null;break;default:switch(f.prev._hx_index){case 0:f.oPos+=2;f.bPos+=2;break;case 1:f.iPos+=1;f.fPos+=1;break;case 2:f.oPos+=4;f.iiPos+=2;f.ffPos+= +1;f.fPos+=1;break;case 3:f.oPos+=1;break;case 4:f.fPos+=6;break;case 5:f.fPos+=4;break;case 6:f.fPos+=3;break;case 7:f.fPos+=4;break;case 8:f.oPos+=3;break;case 9:f.fPos+=4;break;case 10:f.fPos+=5;f.oPos+=1;break;case 12:f.oPos+=4;break;case 14:f.oPos+=2;f.bPos+=2;break;case 15:f.oPos+=4;f.iiPos+=2;f.ffPos+=1;f.fPos+=1;break;case 16:f.oPos+=4;f.iPos+=1;f.fPos+=2;f.bPos+=1;break;case 17:f.fPos+=2;break;case 18:f.fPos+=2;break;case 19:f.oPos+=1;break;case 20:f.oPos+=1}f.prev=p}}0<c&&a.__quadBuffer.flushVertexBufferData(); +if(0<d){c=a.__vertexBuffer;if(null==c||d>a.__vertexBufferCount)c=b.createVertexBuffer(d,4,0),a.__vertexBuffer=c,a.__vertexBufferCount=d;c.uploadFromTypedArray(Ug.toArrayBufferView(a.__vertexBufferData))}if(0<e){c=a.__vertexBufferUVT;if(null==c||e>a.__vertexBufferCountUVT)c=b.createVertexBuffer(e,6,0),a.__vertexBufferUVT=c,a.__vertexBufferCountUVT=e;c.uploadFromTypedArray(Ug.toArrayBufferView(a.__vertexBufferDataUVT))}fa.__pool.release(h);Aa.__pool.release(l)};Mc.isCompatible=function(a){if(null!= +a.__owner.__worldScale9Grid)return!1;var b=new Vf(a.__commands),c=!1,d=!1,e=!1,f=0;for(a=a.__commands.types;f<a.length;){var h=a[f];++f;switch(h._hx_index){case 0:d=!0;e=c=!1;switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+= +1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1;break;case 20:b.oPos+=1}b.prev=h;break;case 1:d=!1;c=!0;e=!1;switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+= +4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1;break;case 20:b.oPos+=1}b.prev=h;break;case 3:c=d=!1;e=!0;switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1; +b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1;break; +case 20:b.oPos+=1}b.prev=h;break;case 8:if(d||e){switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break; +case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1;break;case 20:b.oPos+=1}b.prev=h}else return b.destroy(),!1;break;case 9:if(c){switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break; +case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1;break;case 20:b.oPos+=1}b.prev=h}else return b.destroy(),!1;break;case 12:if(d||e){switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+= +1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1;break;case 20:b.oPos+=1}b.prev=h}else return b.destroy(),!1;break;case 13:e=c=d=!1;switch(b.prev._hx_index){case 0:b.oPos+= +2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+= +2;break;case 19:b.oPos+=1;break;case 20:b.oPos+=1}b.prev=h;break;case 18:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2; +b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1;break;case 20:b.oPos+=1}b.prev=h;break;case 19:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break; +case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1;break;case 20:b.oPos+=1}b.prev=h;break;default:return b.destroy(),!1}}b.destroy();return!0};Mc.render=function(a,b){if(a.__visible&&0!=a.__commands.get_length())if(null!=a.__bitmap&&!a.__dirty||!Mc.isCompatible(a)){b.__softwareRenderer.__pixelRatio= +b.__pixelRatio;var c=b.__softwareRenderer.__worldTransform;b.__softwareRenderer.__worldTransform=7==a.__owner.__drawableType?Aa.__identity:b.__worldTransform;D.render(a,b.__softwareRenderer);b.__softwareRenderer.__worldTransform=c}else{a.__bitmap=null;a.__update(b.__worldTransform,b.__pixelRatio);var d=a.__width,e=a.__height;if(null!=a.__bounds&&1<=d&&1<=e){(a.__hardwareDirty||null==a.__quadBuffer&&null==a.__vertexBuffer&&null==a.__vertexBufferUVT)&&Mc.buildBuffer(a,b);c=new Vf(a.__commands);for(var f= +b.__context3D,h=Aa.__pool.get(),l=null,t=null,m=!1,k=!1,p=null,n=0,r=0,q=0,v=0,u=0,w=a.__commands.types;u<w.length;)switch(d=w[u],++u,d._hx_index){case 0:switch(c.prev._hx_index){case 0:c.oPos+=2;c.bPos+=2;break;case 1:c.iPos+=1;c.fPos+=1;break;case 2:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 3:c.oPos+=1;break;case 4:c.fPos+=6;break;case 5:c.fPos+=4;break;case 6:c.fPos+=3;break;case 7:c.fPos+=4;break;case 8:c.oPos+=3;break;case 9:c.fPos+=4;break;case 10:c.fPos+=5;c.oPos+=1;break;case 12:c.oPos+= +4;break;case 14:c.oPos+=2;c.bPos+=2;break;case 15:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 16:c.oPos+=4;c.iPos+=1;c.fPos+=2;c.bPos+=1;break;case 17:c.fPos+=2;break;case 18:c.fPos+=2;break;case 19:c.oPos+=1;break;case 20:c.oPos+=1}c.prev=ba.BEGIN_BITMAP_FILL;k=c;t=k.buffer.o[k.oPos];m=k.buffer.b[k.bPos];k=k.buffer.b[k.bPos+1];p=l=null;break;case 1:switch(c.prev._hx_index){case 0:c.oPos+=2;c.bPos+=2;break;case 1:c.iPos+=1;c.fPos+=1;break;case 2:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1; +break;case 3:c.oPos+=1;break;case 4:c.fPos+=6;break;case 5:c.fPos+=4;break;case 6:c.fPos+=3;break;case 7:c.fPos+=4;break;case 8:c.oPos+=3;break;case 9:c.fPos+=4;break;case 10:c.fPos+=5;c.oPos+=1;break;case 12:c.oPos+=4;break;case 14:c.oPos+=2;c.bPos+=2;break;case 15:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 16:c.oPos+=4;c.iPos+=1;c.fPos+=2;c.bPos+=1;break;case 17:c.fPos+=2;break;case 18:c.fPos+=2;break;case 19:c.oPos+=1;break;case 20:c.oPos+=1}c.prev=ba.BEGIN_FILL;t=c;p=(t.buffer.i[t.iPos]| +0)&16777215|(255*t.buffer.f[t.fPos]|0)<<24;t=l=null;break;case 3:switch(c.prev._hx_index){case 0:c.oPos+=2;c.bPos+=2;break;case 1:c.iPos+=1;c.fPos+=1;break;case 2:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 3:c.oPos+=1;break;case 4:c.fPos+=6;break;case 5:c.fPos+=4;break;case 6:c.fPos+=3;break;case 7:c.fPos+=4;break;case 8:c.oPos+=3;break;case 9:c.fPos+=4;break;case 10:c.fPos+=5;c.oPos+=1;break;case 12:c.oPos+=4;break;case 14:c.oPos+=2;c.bPos+=2;break;case 15:c.oPos+=4;c.iiPos+=2;c.ffPos+= +1;c.fPos+=1;break;case 16:c.oPos+=4;c.iPos+=1;c.fPos+=2;c.bPos+=1;break;case 17:c.fPos+=2;break;case 18:c.fPos+=2;break;case 19:c.oPos+=1;break;case 20:c.oPos+=1}c.prev=ba.BEGIN_SHADER_FILL;r=c;l=r.buffer.o[r.oPos];r=0;t=null==l||null==l.shader||null==l.shader.__bitmap?null:l.shader.__bitmap.input;p=null;break;case 8:if(null!=t){switch(c.prev._hx_index){case 0:c.oPos+=2;c.bPos+=2;break;case 1:c.iPos+=1;c.fPos+=1;break;case 2:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 3:c.oPos+=1;break;case 4:c.fPos+= +6;break;case 5:c.fPos+=4;break;case 6:c.fPos+=3;break;case 7:c.fPos+=4;break;case 8:c.oPos+=3;break;case 9:c.fPos+=4;break;case 10:c.fPos+=5;c.oPos+=1;break;case 12:c.oPos+=4;break;case 14:c.oPos+=2;c.bPos+=2;break;case 15:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 16:c.oPos+=4;c.iPos+=1;c.fPos+=2;c.bPos+=1;break;case 17:c.fPos+=2;break;case 18:c.fPos+=2;break;case 19:c.oPos+=1;break;case 20:c.oPos+=1}c.prev=ba.DRAW_QUADS;var B=c;d=B.buffer.o[B.oPos];B=B.buffer.o[B.oPos+1];d=null!=B?B.get_length(): +Math.floor(d.get_length()/4);var E=b.__getMatrix(a.__owner.__renderTransform,1);null==l||Mc.maskRender?(B=Mc.maskRender?b.__maskShader:b.__initGraphicsShader(null),b.setShader(B),b.applyMatrix(E),b.applyBitmapData(t,k,m),b.applyAlpha(a.__owner.__worldAlpha),b.applyColorTransform(a.__owner.__worldColorTransform),b.updateShader()):(B=b.__initShaderBuffer(l),b.__setShaderBuffer(l),b.applyMatrix(E),b.applyBitmapData(t,!1,m),b.applyAlpha(a.__owner.__worldAlpha),b.applyColorTransform(a.__owner.__worldColorTransform)); +for(E=n+d;n<E;){d=Math.min(E-n,f.__quadIndexBufferElements)|0;if(0>=d)break;null==l||Mc.maskRender||b.__updateShaderBuffer(r);null!=B.__position&&f.setVertexBufferAt(B.__position.index,a.__quadBuffer.vertexBuffer,16*n,2);null!=B.__textureCoord&&f.setVertexBufferAt(B.__textureCoord.index,a.__quadBuffer.vertexBuffer,16*n+2,2);f.drawTriangles(f.__quadIndexBuffer,0,2*d);r+=4*d;n+=d}b.__clearShader()}break;case 9:if(null!=p){switch(c.prev._hx_index){case 0:c.oPos+=2;c.bPos+=2;break;case 1:c.iPos+=1;c.fPos+= +1;break;case 2:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 3:c.oPos+=1;break;case 4:c.fPos+=6;break;case 5:c.fPos+=4;break;case 6:c.fPos+=3;break;case 7:c.fPos+=4;break;case 8:c.oPos+=3;break;case 9:c.fPos+=4;break;case 10:c.fPos+=5;c.oPos+=1;break;case 12:c.oPos+=4;break;case 14:c.oPos+=2;c.bPos+=2;break;case 15:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 16:c.oPos+=4;c.iPos+=1;c.fPos+=2;c.bPos+=1;break;case 17:c.fPos+=2;break;case 18:c.fPos+=2;break;case 19:c.oPos+=1;break;case 20:c.oPos+= +1}c.prev=ba.DRAW_RECT;var C=c;B=C.buffer.f[C.fPos];E=C.buffer.f[C.fPos+1];d=C.buffer.f[C.fPos+2];e=C.buffer.f[C.fPos+3];C=p;Mc.tempColorTransform.redOffset=C>>>16&255;Mc.tempColorTransform.greenOffset=C>>>8&255;Mc.tempColorTransform.blueOffset=C&255;Mc.tempColorTransform.__combine(a.__owner.__worldColorTransform);h.identity();h.scale(d,e);h.tx=B;h.ty=E;h.concat(a.__owner.__renderTransform);d=Mc.maskRender?b.__maskShader:b.__initGraphicsShader(null);b.setShader(d);b.applyMatrix(b.__getMatrix(h,1)); +b.applyBitmapData(Mc.blankBitmapData,!0,m);b.applyAlpha((C>>>24&255)/255*a.__owner.__worldAlpha);b.applyColorTransform(Mc.tempColorTransform);b.updateShader();B=Mc.blankBitmapData.getVertexBuffer(f);null!=d.__position&&f.setVertexBufferAt(d.__position.index,B,0,3);null!=d.__textureCoord&&f.setVertexBufferAt(d.__textureCoord.index,B,3,2);d=Mc.blankBitmapData.getIndexBuffer(f);f.drawTriangles(d);r+=4;b.__clearShader()}break;case 12:switch(c.prev._hx_index){case 0:c.oPos+=2;c.bPos+=2;break;case 1:c.iPos+= +1;c.fPos+=1;break;case 2:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 3:c.oPos+=1;break;case 4:c.fPos+=6;break;case 5:c.fPos+=4;break;case 6:c.fPos+=3;break;case 7:c.fPos+=4;break;case 8:c.oPos+=3;break;case 9:c.fPos+=4;break;case 10:c.fPos+=5;c.oPos+=1;break;case 12:c.oPos+=4;break;case 14:c.oPos+=2;c.bPos+=2;break;case 15:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 16:c.oPos+=4;c.iPos+=1;c.fPos+=2;c.bPos+=1;break;case 17:c.fPos+=2;break;case 18:c.fPos+=2;break;case 19:c.oPos+=1; +break;case 20:c.oPos+=1}c.prev=ba.DRAW_TRIANGLES;e=c;B=e.buffer.o[e.oPos+1];E=e.buffer.o[e.oPos+2];d=e.buffer.o[e.oPos+3];C=null!=B;e=Math.floor(e.buffer.o[e.oPos].get_length()/2);B=C?B.get_length():e;C=(E=null!=E&&E.get_length()>=3*e)?4:2;e=C+2;var N=E?a.__vertexBufferUVT:a.__vertexBuffer,z=E?v:q,J=b.__getMatrix(a.__owner.__renderTransform,1);if(null==l||Mc.maskRender){var A=Mc.maskRender?b.__maskShader:b.__initGraphicsShader(null);b.setShader(A);b.applyMatrix(J);b.applyBitmapData(t,k,m);b.applyAlpha(a.__owner.__worldAlpha); +b.applyColorTransform(a.__owner.__worldColorTransform);b.updateShader()}else A=b.__initShaderBuffer(l),b.__setShaderBuffer(l),b.applyMatrix(J),b.applyBitmapData(t,!1,m),b.applyAlpha(1),b.applyColorTransform(null),b.__updateShaderBuffer(r);null!=A.__position&&f.setVertexBufferAt(A.__position.index,N,z,E?4:2);null!=A.__textureCoord&&f.setVertexBufferAt(A.__textureCoord.index,N,z+C,2);switch(d){case 0:f.setCulling(0);break;case 1:f.setCulling(3);break;case 2:f.setCulling(1)}f.__drawTriangles(0,B);r+= +B;E?v+=e*B:q+=e*B;switch(d){case 1:case 2:f.setCulling(0)}b.__clearShader();break;case 13:l=p=t=null;switch(c.prev._hx_index){case 0:c.oPos+=2;c.bPos+=2;break;case 1:c.iPos+=1;c.fPos+=1;break;case 2:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 3:c.oPos+=1;break;case 4:c.fPos+=6;break;case 5:c.fPos+=4;break;case 6:c.fPos+=3;break;case 7:c.fPos+=4;break;case 8:c.oPos+=3;break;case 9:c.fPos+=4;break;case 10:c.fPos+=5;c.oPos+=1;break;case 12:c.oPos+=4;break;case 14:c.oPos+=2;c.bPos+=2;break;case 15:c.oPos+= +4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 16:c.oPos+=4;c.iPos+=1;c.fPos+=2;c.bPos+=1;break;case 17:c.fPos+=2;break;case 18:c.fPos+=2;break;case 19:c.oPos+=1;break;case 20:c.oPos+=1}c.prev=d;f.setCulling(3);break;case 18:switch(c.prev._hx_index){case 0:c.oPos+=2;c.bPos+=2;break;case 1:c.iPos+=1;c.fPos+=1;break;case 2:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 3:c.oPos+=1;break;case 4:c.fPos+=6;break;case 5:c.fPos+=4;break;case 6:c.fPos+=3;break;case 7:c.fPos+=4;break;case 8:c.oPos+=3; +break;case 9:c.fPos+=4;break;case 10:c.fPos+=5;c.oPos+=1;break;case 12:c.oPos+=4;break;case 14:c.oPos+=2;c.bPos+=2;break;case 15:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 16:c.oPos+=4;c.iPos+=1;c.fPos+=2;c.bPos+=1;break;case 17:c.fPos+=2;break;case 18:c.fPos+=2;break;case 19:c.oPos+=1;break;case 20:c.oPos+=1}c.prev=ba.MOVE_TO;break;case 19:switch(c.prev._hx_index){case 0:c.oPos+=2;c.bPos+=2;break;case 1:c.iPos+=1;c.fPos+=1;break;case 2:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 3:c.oPos+= +1;break;case 4:c.fPos+=6;break;case 5:c.fPos+=4;break;case 6:c.fPos+=3;break;case 7:c.fPos+=4;break;case 8:c.oPos+=3;break;case 9:c.fPos+=4;break;case 10:c.fPos+=5;c.oPos+=1;break;case 12:c.oPos+=4;break;case 14:c.oPos+=2;c.bPos+=2;break;case 15:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 16:c.oPos+=4;c.iPos+=1;c.fPos+=2;c.bPos+=1;break;case 17:c.fPos+=2;break;case 18:c.fPos+=2;break;case 19:c.oPos+=1;break;case 20:c.oPos+=1}c.prev=ba.OVERRIDE_BLEND_MODE;d=c;b.__setBlendMode(d.buffer.o[d.oPos]); +break;default:switch(c.prev._hx_index){case 0:c.oPos+=2;c.bPos+=2;break;case 1:c.iPos+=1;c.fPos+=1;break;case 2:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 3:c.oPos+=1;break;case 4:c.fPos+=6;break;case 5:c.fPos+=4;break;case 6:c.fPos+=3;break;case 7:c.fPos+=4;break;case 8:c.oPos+=3;break;case 9:c.fPos+=4;break;case 10:c.fPos+=5;c.oPos+=1;break;case 12:c.oPos+=4;break;case 14:c.oPos+=2;c.bPos+=2;break;case 15:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 16:c.oPos+=4;c.iPos+=1;c.fPos+= +2;c.bPos+=1;break;case 17:c.fPos+=2;break;case 18:c.fPos+=2;break;case 19:c.oPos+=1;break;case 20:c.oPos+=1}c.prev=d}Aa.__pool.release(h)}a.__hardwareDirty=!1;a.set___dirty(!1)}};Mc.renderMask=function(a,b){Mc.maskRender=!0;Mc.render(a,b);Mc.maskRender=!1};Mc.resizeIndexBuffer=function(a,b,c){if(!b){var d=b?null:a.__triangleIndexBufferData,e=null;if(null==d){var f=e=null,h=null,l=null,t=null;e=c=null!=c?new Uint16Array(c):null!=e?new Uint16Array(e):null!=f?new Uint16Array(f.__array):null!=h?new Uint16Array(h): +null!=l?null==t?new Uint16Array(l,0):new Uint16Array(l,0,t):null}else c>d.length&&(t=l=h=f=e=null,e=c=null!=c?new Uint16Array(c):null!=e?new Uint16Array(e):null!=f?new Uint16Array(f.__array):null!=h?new Uint16Array(h):null!=l?null==t?new Uint16Array(l,0):new Uint16Array(l,0,t):null,e.set(d));null==e||b||(a.__triangleIndexBufferData=e)}};Mc.resizeVertexBuffer=function(a,b,c){var d=b?a.__vertexBufferDataUVT:a.__vertexBufferData,e=null;if(null==d){var f=e=null,h=null,l=null,t=null;e=c=null!=c?new Float32Array(c): +null!=e?new Float32Array(e):null!=f?new Float32Array(f.__array):null!=h?new Float32Array(h):null!=l?null==t?new Float32Array(l,0):new Float32Array(l,0,t):null}else c>d.length&&(t=l=h=f=e=null,e=c=null!=c?new Float32Array(c):null!=e?new Float32Array(e):null!=f?new Float32Array(f.__array):null!=h?new Float32Array(h):null!=l?null==t?new Float32Array(l,0):new Float32Array(l,0,t):null,e.set(d));null!=e&&(b?a.__vertexBufferDataUVT=e:a.__vertexBufferData=e)};var $h=function(){null==this.__glFragmentSource&& +(this.__glFragmentSource="varying vec2 openfl_TextureCoordv;\n\n\t\tuniform sampler2D openfl_Texture;\n\n\t\tvoid main(void) {\n\n\t\t\tvec4 color = texture2D (openfl_Texture, openfl_TextureCoordv);\n\n\t\t\tif (color.a == 0.0) {\n\n\t\t\t\tdiscard;\n\n\t\t\t} else {\n\n\t\t\t\tgl_FragColor = color;\n\n\t\t\t}\n\n\t\t}");null==this.__glVertexSource&&(this.__glVertexSource="attribute vec4 openfl_Position;\n\t\tattribute vec2 openfl_TextureCoord;\n\t\tvarying vec2 openfl_TextureCoordv;\n\n\t\tuniform mat4 openfl_Matrix;\n\n\t\tvoid main(void) {\n\n\t\t\topenfl_TextureCoordv = openfl_TextureCoord;\n\n\t\t\tgl_Position = openfl_Matrix * openfl_Position;\n\n\t\t}"); +bf.call(this);this.__isGenerated=!0;this.__initGL()};k["openfl.display._internal.Context3DMaskShader"]=$h;$h.__name__="openfl.display._internal.Context3DMaskShader";$h.__super__=bf;$h.prototype=u(bf.prototype,{openfl_Position:null,openfl_TextureCoord:null,openfl_Matrix:null,openfl_Texture:null,__class__:$h});var Yf=function(){};k["openfl.display._internal.Context3DShape"]=Yf;Yf.__name__="openfl.display._internal.Context3DShape";Yf.render=function(a,b){if(a.__renderable&&!(0>=a.__worldAlpha)){var c= +a.__graphics;if(null!=c){b.__setBlendMode(a.__worldBlendMode);b.__pushMaskObject(a);Mc.render(c,b);if(null!=c.__bitmap&&c.__visible){var d=b.__context3D,e=b.__initDisplayShader(a.__worldShader);b.setShader(e);b.applyBitmapData(c.__bitmap,!0);var f=Aa.__pool.get();f.scale(1/c.__bitmapScale,1/c.__bitmapScale);f.concat(c.__worldTransform);b.applyMatrix(b.__getMatrix(f,1));Aa.__pool.release(f);b.applyAlpha(a.__worldAlpha);b.applyColorTransform(a.__worldColorTransform);b.updateShader();f=c.__bitmap.getVertexBuffer(d); +null!=e.__position&&d.setVertexBufferAt(e.__position.index,f,0,3);null!=e.__textureCoord&&d.setVertexBufferAt(e.__textureCoord.index,f,3,2);c=c.__bitmap.getIndexBuffer(d);d.drawTriangles(c);b.__clearShader()}b.__popMaskObject(a)}}};Yf.renderMask=function(a,b){var c=a.__graphics;if(null!=c&&(Mc.renderMask(c,b),null!=c.__bitmap)){a=b.__context3D;var d=b.__maskShader;b.setShader(d);b.applyBitmapData(c.__bitmap,!0);b.applyMatrix(b.__getMatrix(c.__worldTransform,1));b.updateShader();var e=c.__bitmap.getVertexBuffer(a); +null!=d.__position&&a.setVertexBufferAt(d.__position.index,e,0,3);null!=d.__textureCoord&&a.setVertexBufferAt(d.__textureCoord.index,e,3,2);c=c.__bitmap.getIndexBuffer(a);a.drawTriangles(c);b.__clearShader()}};var Xm=function(){};k["openfl.display._internal.Context3DSimpleButton"]=Xm;Xm.__name__="openfl.display._internal.Context3DSimpleButton";Xm.renderDrawable=function(a,b){!a.__renderable||0>=a.__worldAlpha||null==a.__currentState||(b.__pushMaskObject(a),b.__renderDrawable(a.__currentState),b.__popMaskObject(a), +b.__renderEvent(a))};Xm.renderDrawableMask=function(a,b){null!=a.__currentState&&b.__renderDrawableMask(a.__currentState)};var ah=function(){};k["openfl.display._internal.Context3DTextField"]=ah;ah.__name__="openfl.display._internal.Context3DTextField";ah.render=function(a,b){b.__softwareRenderer.__pixelRatio=b.__pixelRatio;var c=b.__softwareRenderer;b=a.__textEngine;var d=!(b.background||b.border),e=d?b.textBounds:b.bounds,f=a.__graphics,h=0;if(a.__dirty){a.__updateLayout();null==f.__bounds&&(f.__bounds= +new fa);if(0==a.get_text().length){h=b.bounds.width-4;var l=a.get_defaultTextFormat().align;h=3==l?0:4==l?h:h/2;switch(l){case 0:h+=a.get_defaultTextFormat().leftMargin/2;h-=a.get_defaultTextFormat().rightMargin/2;h+=a.get_defaultTextFormat().indent/2;h+=a.get_defaultTextFormat().blockIndent/2;break;case 2:h+=a.get_defaultTextFormat().leftMargin;h+=a.get_defaultTextFormat().indent;h+=a.get_defaultTextFormat().blockIndent;break;case 3:h+=a.get_defaultTextFormat().leftMargin;h+=a.get_defaultTextFormat().indent; +h+=a.get_defaultTextFormat().blockIndent;break;case 4:h-=a.get_defaultTextFormat().rightMargin}d&&(e.y=b.bounds.y,e.x=h)}f.__bounds.copyFrom(e)}l=c.__pixelRatio;f.__update(c.__worldTransform,l);if(a.__dirty||f.__softwareDirty){var t=Math.round(f.__width*l),m=Math.round(f.__height*l);if(!(null!=b.text&&""!=b.text||b.background||b.border||b.__hasFocus||1==b.type&&b.selectable)||(0>=b.width||0>=b.height)&&2!=b.autoSize)a.__graphics.__canvas=null,a.__graphics.__context=null,a.__graphics.__bitmap=null, +a.__graphics.__softwareDirty=!1,a.__graphics.set___dirty(!1),a.__dirty=!1;else{null==a.__graphics.__canvas&&(a.__graphics.__canvas=window.document.createElement("canvas"),a.__graphics.__context=a.__graphics.__canvas.getContext("2d"));Y.context=f.__context;f.__canvas.width=t;f.__canvas.height=m;c.__isDOM&&(f.__canvas.style.width=Math.round(t/l)+"px",f.__canvas.style.height=Math.round(m/l)+"px");t=Aa.__pool.get();t.scale(l,l);t.concat(f.__renderTransform);Y.context.setTransform(t.a,t.b,t.c,t.d,t.tx, +t.ty);Aa.__pool.release(t);null==Y.clearRect&&(Y.clearRect="undefined"!==typeof navigator&&"undefined"!==typeof navigator.isCocoonJS);Y.clearRect&&Y.context.clearRect(0,0,f.__canvas.width,f.__canvas.height);if(null!=b.text&&""!=b.text||b.__hasFocus){d=b.text;f.__context.imageSmoothingEnabled=!c.__allowSmoothing||0==b.antiAliasType&&400==b.sharpness?!1:!0;if(b.border||b.background){Y.context.rect(.5,.5,e.width-1,e.height-1);if(b.background){var k=J.hex(b.backgroundColor&16777215,6);Y.context.fillStyle= +"#"+k;Y.context.fill()}b.border&&(Y.context.lineWidth=1,k=J.hex(b.borderColor&16777215,6),Y.context.strokeStyle="#"+k,Y.context.stroke())}Y.context.textBaseline="alphabetic";Y.context.textAlign="start";c=-a.get_scrollH();var p=h=0;for(k=a.get_scrollV()-1;p<k;){var n=p++;h-=b.lineHeights.get(n)}var r;for(t=b.layoutGroups.iterator();t.hasNext();)if(m=t.next(),!(m.lineIndex<a.get_scrollV()-1)){if(m.lineIndex>b.get_bottomScrollV()-1)break;var q="#"+J.hex(m.format.color&16777215,6);Y.context.font=Ob.getFont(m.format); +Y.context.fillStyle=q;Y.context.fillText(d.substring(m.startIndex,m.endIndex),m.offsetX+c-e.x,m.offsetY+m.ascent+h-e.y);if(-1<a.__caretIndex&&b.selectable)if(a.__selectionIndex==a.__caretIndex){if(a.__showCursor&&m.startIndex<=a.__caretIndex&&m.endIndex>=a.__caretIndex){p=r=0;for(k=a.__caretIndex-m.startIndex;p<k;){n=p++;if(m.positions.length<=n)break;r+=m.positions[n]}p=0;k=a.get_scrollV();for(n=m.lineIndex+1;k<n;){var v=k++;p+=b.lineHeights.get(v-1)}Y.context.beginPath();k=J.hex(m.format.color& +16777215,6);Y.context.strokeStyle="#"+k;Y.context.moveTo(m.offsetX+r-a.get_scrollH()-e.x,p+2-e.y);Y.context.lineWidth=1;Y.context.lineTo(m.offsetX+r-a.get_scrollH()-e.x,p+Ob.getFormatHeight(a.get_defaultTextFormat())-1-e.y);Y.context.stroke();Y.context.closePath()}}else if(m.startIndex<=a.__caretIndex&&m.endIndex>=a.__caretIndex||m.startIndex<=a.__selectionIndex&&m.endIndex>=a.__selectionIndex||m.startIndex>a.__caretIndex&&m.endIndex<a.__selectionIndex||m.startIndex>a.__selectionIndex&&m.endIndex< +a.__caretIndex)r=Math.min(a.__selectionIndex,a.__caretIndex)|0,p=Math.max(a.__selectionIndex,a.__caretIndex)|0,m.startIndex>r&&(r=m.startIndex),m.endIndex<p&&(p=m.endIndex),n=a.getCharBoundaries(r),p>=m.endIndex?(k=a.getCharBoundaries(m.endIndex-1),null!=k&&(k.x+=k.width+2)):k=a.getCharBoundaries(p),null!=n&&null!=k&&(Y.context.fillStyle="#000000",Y.context.fillRect(n.x+c-e.x,n.y+h,k.x-n.x,m.height),Y.context.fillStyle="#FFFFFF",Y.context.fillText(d.substring(r,p),c+n.x-e.x,m.offsetY+m.ascent+h)); +m.format.underline&&(Y.context.beginPath(),Y.context.strokeStyle=q,Y.context.lineWidth=1,q=m.offsetX+c-e.x,r=Math.ceil(m.offsetY+h+m.ascent-e.y)+Math.floor(.185*m.ascent)+.5,Y.context.moveTo(q,r),Y.context.lineTo(q+m.width,r),Y.context.stroke(),Y.context.closePath())}}else{if(b.border||b.background)b.border?Y.context.rect(.5,.5,e.width-1,e.height-1):Y.context.rect(0,0,e.width,e.height),b.background&&(k=J.hex(b.backgroundColor&16777215,6),Y.context.fillStyle="#"+k,Y.context.fill()),b.border&&(Y.context.lineWidth= +1,Y.context.lineCap="square",k=J.hex(b.borderColor&16777215,6),Y.context.strokeStyle="#"+k,Y.context.stroke());if(-1<a.__caretIndex&&b.selectable&&a.__showCursor){c=-a.get_scrollH()+(d?0:h);p=h=0;for(k=a.get_scrollV()-1;p<k;)n=p++,h+=b.lineHeights.get(n);Y.context.beginPath();k=J.hex(a.get_defaultTextFormat().color&16777215,6);Y.context.strokeStyle="#"+k;Y.context.moveTo(c+2.5,h+2.5);Y.context.lineWidth=1;Y.context.lineTo(c+2.5,h+Ob.getFormatHeight(a.get_defaultTextFormat())-1);Y.context.stroke(); +Y.context.closePath()}}f.__bitmap=Ja.fromCanvas(a.__graphics.__canvas);f.__bitmapScale=l;f.__visible=!0;a.__dirty=!1;f.__softwareDirty=!1;f.set___dirty(!1)}}a.__graphics.__hardwareDirty=!1};ah.renderDrawable=function(a,b){b.__updateCacheBitmap(a,!1);if(null==a.__cacheBitmap||a.__isCacheBitmapRender){if(ah.render(a,b),!(null==a.opaqueBackground&&null==a.__graphics||!a.__renderable||0>=a.__worldAlpha)){if(null!=a.opaqueBackground&&!a.__isCacheBitmapRender&&0<a.get_width()&&0<a.get_height()){b.__setBlendMode(a.__worldBlendMode); +b.__pushMaskObject(a);var c=b.__context3D,d=fa.__pool.get();d.setTo(0,0,a.get_width(),a.get_height());b.__pushMaskRect(d,a.__renderTransform);var e=a.opaqueBackground;c.clear((e>>>16&255)/255,(e>>>8&255)/255,(e&255)/255,1,0,0,1);b.__popMaskRect();b.__popMaskObject(a);fa.__pool.release(d)}null!=a.__graphics&&Yf.render(a,b)}}else tf.render(a.__cacheBitmap,b);b.__renderEvent(a)};ah.renderDrawableMask=function(a,b){ah.renderMask(a,b);$g.renderDrawableMask(a,b)};ah.renderMask=function(a,b){var c=b.__softwareRenderer; +b=a.__textEngine;var d=!(b.background||b.border),e=d?b.textBounds:b.bounds,f=a.__graphics,h=0;if(a.__dirty){a.__updateLayout();null==f.__bounds&&(f.__bounds=new fa);if(0==a.get_text().length){h=b.bounds.width-4;var l=a.get_defaultTextFormat().align;h=3==l?0:4==l?h:h/2;switch(l){case 0:h+=a.get_defaultTextFormat().leftMargin/2;h-=a.get_defaultTextFormat().rightMargin/2;h+=a.get_defaultTextFormat().indent/2;h+=a.get_defaultTextFormat().blockIndent/2;break;case 2:h+=a.get_defaultTextFormat().leftMargin; +h+=a.get_defaultTextFormat().indent;h+=a.get_defaultTextFormat().blockIndent;break;case 3:h+=a.get_defaultTextFormat().leftMargin;h+=a.get_defaultTextFormat().indent;h+=a.get_defaultTextFormat().blockIndent;break;case 4:h-=a.get_defaultTextFormat().rightMargin}d&&(e.y=b.bounds.y,e.x=h)}f.__bounds.copyFrom(e)}l=c.__pixelRatio;f.__update(c.__worldTransform,l);if(a.__dirty||f.__softwareDirty){var t=Math.round(f.__width*l),m=Math.round(f.__height*l);if(!(null!=b.text&&""!=b.text||b.background||b.border|| +b.__hasFocus||1==b.type&&b.selectable)||(0>=b.width||0>=b.height)&&2!=b.autoSize)a.__graphics.__canvas=null,a.__graphics.__context=null,a.__graphics.__bitmap=null,a.__graphics.__softwareDirty=!1,a.__graphics.set___dirty(!1),a.__dirty=!1;else{null==a.__graphics.__canvas&&(a.__graphics.__canvas=window.document.createElement("canvas"),a.__graphics.__context=a.__graphics.__canvas.getContext("2d"));Y.context=f.__context;f.__canvas.width=t;f.__canvas.height=m;c.__isDOM&&(f.__canvas.style.width=Math.round(t/ +l)+"px",f.__canvas.style.height=Math.round(m/l)+"px");t=Aa.__pool.get();t.scale(l,l);t.concat(f.__renderTransform);Y.context.setTransform(t.a,t.b,t.c,t.d,t.tx,t.ty);Aa.__pool.release(t);null==Y.clearRect&&(Y.clearRect="undefined"!==typeof navigator&&"undefined"!==typeof navigator.isCocoonJS);Y.clearRect&&Y.context.clearRect(0,0,f.__canvas.width,f.__canvas.height);if(null!=b.text&&""!=b.text||b.__hasFocus){d=b.text;f.__context.imageSmoothingEnabled=!c.__allowSmoothing||0==b.antiAliasType&&400==b.sharpness? +!1:!0;if(b.border||b.background){Y.context.rect(.5,.5,e.width-1,e.height-1);if(b.background){var k=J.hex(b.backgroundColor&16777215,6);Y.context.fillStyle="#"+k;Y.context.fill()}b.border&&(Y.context.lineWidth=1,k=J.hex(b.borderColor&16777215,6),Y.context.strokeStyle="#"+k,Y.context.stroke())}Y.context.textBaseline="alphabetic";Y.context.textAlign="start";c=-a.get_scrollH();var p=h=0;for(k=a.get_scrollV()-1;p<k;){var n=p++;h-=b.lineHeights.get(n)}var r;for(t=b.layoutGroups.iterator();t.hasNext();)if(m= +t.next(),!(m.lineIndex<a.get_scrollV()-1)){if(m.lineIndex>b.get_bottomScrollV()-1)break;var q="#"+J.hex(m.format.color&16777215,6);Y.context.font=Ob.getFont(m.format);Y.context.fillStyle=q;Y.context.fillText(d.substring(m.startIndex,m.endIndex),m.offsetX+c-e.x,m.offsetY+m.ascent+h-e.y);if(-1<a.__caretIndex&&b.selectable)if(a.__selectionIndex==a.__caretIndex){if(a.__showCursor&&m.startIndex<=a.__caretIndex&&m.endIndex>=a.__caretIndex){p=r=0;for(k=a.__caretIndex-m.startIndex;p<k;){n=p++;if(m.positions.length<= +n)break;r+=m.positions[n]}p=0;k=a.get_scrollV();for(n=m.lineIndex+1;k<n;){var v=k++;p+=b.lineHeights.get(v-1)}Y.context.beginPath();k=J.hex(m.format.color&16777215,6);Y.context.strokeStyle="#"+k;Y.context.moveTo(m.offsetX+r-a.get_scrollH()-e.x,p+2-e.y);Y.context.lineWidth=1;Y.context.lineTo(m.offsetX+r-a.get_scrollH()-e.x,p+Ob.getFormatHeight(a.get_defaultTextFormat())-1-e.y);Y.context.stroke();Y.context.closePath()}}else if(m.startIndex<=a.__caretIndex&&m.endIndex>=a.__caretIndex||m.startIndex<= +a.__selectionIndex&&m.endIndex>=a.__selectionIndex||m.startIndex>a.__caretIndex&&m.endIndex<a.__selectionIndex||m.startIndex>a.__selectionIndex&&m.endIndex<a.__caretIndex)r=Math.min(a.__selectionIndex,a.__caretIndex)|0,p=Math.max(a.__selectionIndex,a.__caretIndex)|0,m.startIndex>r&&(r=m.startIndex),m.endIndex<p&&(p=m.endIndex),n=a.getCharBoundaries(r),p>=m.endIndex?(k=a.getCharBoundaries(m.endIndex-1),null!=k&&(k.x+=k.width+2)):k=a.getCharBoundaries(p),null!=n&&null!=k&&(Y.context.fillStyle="#000000", +Y.context.fillRect(n.x+c-e.x,n.y+h,k.x-n.x,m.height),Y.context.fillStyle="#FFFFFF",Y.context.fillText(d.substring(r,p),c+n.x-e.x,m.offsetY+m.ascent+h));m.format.underline&&(Y.context.beginPath(),Y.context.strokeStyle=q,Y.context.lineWidth=1,q=m.offsetX+c-e.x,r=Math.ceil(m.offsetY+h+m.ascent-e.y)+Math.floor(.185*m.ascent)+.5,Y.context.moveTo(q,r),Y.context.lineTo(q+m.width,r),Y.context.stroke(),Y.context.closePath())}}else{if(b.border||b.background)b.border?Y.context.rect(.5,.5,e.width-1,e.height- +1):Y.context.rect(0,0,e.width,e.height),b.background&&(k=J.hex(b.backgroundColor&16777215,6),Y.context.fillStyle="#"+k,Y.context.fill()),b.border&&(Y.context.lineWidth=1,Y.context.lineCap="square",k=J.hex(b.borderColor&16777215,6),Y.context.strokeStyle="#"+k,Y.context.stroke());if(-1<a.__caretIndex&&b.selectable&&a.__showCursor){c=-a.get_scrollH()+(d?0:h);p=h=0;for(k=a.get_scrollV()-1;p<k;)n=p++,h+=b.lineHeights.get(n);Y.context.beginPath();k=J.hex(a.get_defaultTextFormat().color&16777215,6);Y.context.strokeStyle= +"#"+k;Y.context.moveTo(c+2.5,h+2.5);Y.context.lineWidth=1;Y.context.lineTo(c+2.5,h+Ob.getFormatHeight(a.get_defaultTextFormat())-1);Y.context.stroke();Y.context.closePath()}}f.__bitmap=Ja.fromCanvas(a.__graphics.__canvas);f.__bitmapScale=l;f.__visible=!0;a.__dirty=!1;f.__softwareDirty=!1;f.set___dirty(!1)}}a.__graphics.__hardwareDirty=!1};var ha=function(){};k["openfl.display._internal.Context3DTilemap"]=ha;ha.__name__="openfl.display._internal.Context3DTilemap";ha.buildBuffer=function(a,b){if(!a.__renderable|| +0==a.__group.__tiles.length||0>=a.__worldAlpha)a.__group.__dirty=!1;else{ha.numTiles=0;ha.vertexBufferData=null!=a.__buffer?a.__buffer.vertexBufferData:null;ha.vertexDataPosition=0;var c=fa.__pool.get(),d=Aa.__pool.get(),e=Aa.__pool.get();ha.dataPerVertex=4;a.tileAlphaEnabled&&ha.dataPerVertex++;a.tileColorTransformEnabled&&(ha.dataPerVertex+=8);ha.buildBufferTileContainer(a,a.__group,b,e,a.__tileset,a.tileAlphaEnabled,a.__worldAlpha,a.tileColorTransformEnabled,a.__worldColorTransform,null,c,d);a.__buffer.flushVertexBufferData(); +fa.__pool.release(c);Aa.__pool.release(d);Aa.__pool.release(e)}};ha.buildBufferTileContainer=function(a,b,c,d,e,f,h,l,t,m,k,p,n){null==n&&(n=!0);var g=Aa.__pool.get(),x=c.__roundPixels,r=b.__tiles,q=null;q=function(a){a=a.__tiles;for(var b=0,c=0;c<a.length;){var d=a[c];++c;0<d.__length?b+=q(d):++b}return b};n&&ha.resizeBuffer(a,ha.numTiles+q(b));n=null;for(var v,u,w,B,E,C,N,z,J,A,D=f?5:4,Ha=0;Ha<r.length;){var F=r[Ha];++Ha;g.setTo(1,0,0,1,-F.get_originX(),-F.get_originY());g.concat(F.get_matrix()); +g.concat(d);x&&(g.tx=Math.round(g.tx),g.ty=Math.round(g.ty));var H=null!=F.get_tileset()?F.get_tileset():e;var G=F.get_alpha()*h;var I=F.get_visible();F.__dirty=!1;if(I&&!(0>=G))if(l&&(null!=F.get_colorTransform()?null==t?n=F.get_colorTransform():(null==ha.cacheColorTransform&&(ha.cacheColorTransform=new Gc),n=ha.cacheColorTransform,n.redMultiplier=t.redMultiplier*F.get_colorTransform().redMultiplier,n.greenMultiplier=t.greenMultiplier*F.get_colorTransform().greenMultiplier,n.blueMultiplier=t.blueMultiplier* +F.get_colorTransform().blueMultiplier,n.alphaMultiplier=t.alphaMultiplier*F.get_colorTransform().alphaMultiplier,n.redOffset=t.redOffset+F.get_colorTransform().redOffset,n.greenOffset=t.greenOffset+F.get_colorTransform().greenOffset,n.blueOffset=t.blueOffset+F.get_colorTransform().blueOffset,n.alphaOffset=t.alphaOffset+F.get_colorTransform().alphaOffset):n=t),f||(G=1),0<F.__length)ha.buildBufferTileContainer(a,F,c,g,H,f,G,l,n,m,k,p,!1);else if(null!=H&&(I=F.get_id(),v=H.__bitmapData,null!=v)){if(-1== +I){u=F.__rect;if(null==u||0>=u.width||0>=u.height)continue;F=u.x/v.width;H=u.y/v.height;I=u.get_right()/v.width;B=u.get_bottom()/v.height}else{v=H.__data[I];if(null==v)continue;k.setTo(v.x,v.y,v.width,v.height);u=k;F=v.__uvX;H=v.__uvY;I=v.__uvWidth;B=v.__uvHeight}v=u.width;w=u.height;u=0*g.a+0*g.c+g.tx;E=0*g.b+0*g.d+g.ty;C=v*g.a+0*g.c+g.tx;N=v*g.b+0*g.d+g.ty;z=0*g.a+w*g.c+g.tx;J=0*g.b+w*g.d+g.ty;A=v*g.a+w*g.c+g.tx;w=v*g.b+w*g.d+g.ty;v=ha.vertexDataPosition;ha.vertexBufferData[v]=u;ha.vertexBufferData[v+ +1]=E;ha.vertexBufferData[v+2]=F;ha.vertexBufferData[v+3]=H;ha.vertexBufferData[v+ha.dataPerVertex]=C;ha.vertexBufferData[v+ha.dataPerVertex+1]=N;ha.vertexBufferData[v+ha.dataPerVertex+2]=I;ha.vertexBufferData[v+ha.dataPerVertex+3]=H;ha.vertexBufferData[v+2*ha.dataPerVertex]=z;ha.vertexBufferData[v+2*ha.dataPerVertex+1]=J;ha.vertexBufferData[v+2*ha.dataPerVertex+2]=F;ha.vertexBufferData[v+2*ha.dataPerVertex+3]=B;ha.vertexBufferData[v+3*ha.dataPerVertex]=A;ha.vertexBufferData[v+3*ha.dataPerVertex+1]= +w;ha.vertexBufferData[v+3*ha.dataPerVertex+2]=I;ha.vertexBufferData[v+3*ha.dataPerVertex+3]=B;f&&(ha.vertexBufferData[v+0*ha.dataPerVertex+4]=G,ha.vertexBufferData[v+ha.dataPerVertex+4]=G,ha.vertexBufferData[v+2*ha.dataPerVertex+4]=G,ha.vertexBufferData[v+3*ha.dataPerVertex+4]=G);if(l)if(null!=n)for(G=0;4>G;)F=G++,ha.vertexBufferData[v+ha.dataPerVertex*F+D]=n.redMultiplier,ha.vertexBufferData[v+ha.dataPerVertex*F+D+1]=n.greenMultiplier,ha.vertexBufferData[v+ha.dataPerVertex*F+D+2]=n.blueMultiplier, +ha.vertexBufferData[v+ha.dataPerVertex*F+D+3]=n.alphaMultiplier,ha.vertexBufferData[v+ha.dataPerVertex*F+D+4]=n.redOffset,ha.vertexBufferData[v+ha.dataPerVertex*F+D+5]=n.greenOffset,ha.vertexBufferData[v+ha.dataPerVertex*F+D+6]=n.blueOffset,ha.vertexBufferData[v+ha.dataPerVertex*F+D+7]=n.alphaOffset;else for(G=0;4>G;)F=G++,ha.vertexBufferData[v+ha.dataPerVertex*F+D]=1,ha.vertexBufferData[v+ha.dataPerVertex*F+D+1]=1,ha.vertexBufferData[v+ha.dataPerVertex*F+D+2]=1,ha.vertexBufferData[v+ha.dataPerVertex* +F+D+3]=1,ha.vertexBufferData[v+ha.dataPerVertex*F+D+4]=0,ha.vertexBufferData[v+ha.dataPerVertex*F+D+5]=0,ha.vertexBufferData[v+ha.dataPerVertex*F+D+6]=0,ha.vertexBufferData[v+ha.dataPerVertex*F+D+7]=0;ha.vertexDataPosition+=4*ha.dataPerVertex}}b.__dirty=!1;Aa.__pool.release(g)};ha.flush=function(a,b,c){null==ha.currentShader&&(ha.currentShader=b.__defaultDisplayShader);if(ha.bufferPosition>ha.lastFlushedPosition&&null!=ha.currentBitmapData&&null!=ha.currentShader){var d=b.__initDisplayShader(ha.currentShader); +b.setShader(d);b.applyBitmapData(ha.currentBitmapData,a.smoothing);b.applyMatrix(b.__getMatrix(a.__renderTransform,1));a.tileAlphaEnabled?b.useAlphaArray():b.applyAlpha(a.__worldAlpha);a.tileBlendModeEnabled&&b.__setBlendMode(c);a.tileColorTransformEnabled?(b.applyHasColorTransform(!0),b.useColorTransformArray()):b.applyColorTransform(a.__worldColorTransform);b.updateShader();c=a.__buffer.vertexBuffer;for(var e=ha.lastFlushedPosition*ha.dataPerVertex*4,f;ha.lastFlushedPosition<ha.bufferPosition;){f= +Math.min(ha.bufferPosition-ha.lastFlushedPosition,ha.context.__quadIndexBufferElements)|0;if(0>=f)break;null!=d.__position&&ha.context.setVertexBufferAt(d.__position.index,c,e,2);null!=d.__textureCoord&&ha.context.setVertexBufferAt(d.__textureCoord.index,c,e+2,2);a.tileAlphaEnabled&&null!=d.__alpha&&ha.context.setVertexBufferAt(d.__alpha.index,c,e+4,1);if(a.tileColorTransformEnabled){var h=a.tileAlphaEnabled?5:4;null!=d.__colorMultiplier&&ha.context.setVertexBufferAt(d.__colorMultiplier.index,c,e+ +h,4);null!=d.__colorOffset&&ha.context.setVertexBufferAt(d.__colorOffset.index,c,e+h+4,4)}ha.context.drawTriangles(ha.context.__quadIndexBuffer,0,2*f);ha.lastFlushedPosition+=f}b.__clearShader()}ha.lastUsedBitmapData=ha.currentBitmapData;ha.lastUsedShader=ha.currentShader};ha.render=function(a,b){if(a.__renderable&&!(0>=a.__worldAlpha)&&(ha.context=b.__context3D,ha.buildBuffer(a,b),0!=ha.numTiles)){ha.bufferPosition=0;ha.lastFlushedPosition=0;ha.lastUsedBitmapData=null;ha.lastUsedShader=null;ha.currentBitmapData= +null;ha.currentShader=null;ha.currentBlendMode=a.__worldBlendMode;a.tileBlendModeEnabled||b.__setBlendMode(ha.currentBlendMode);b.__pushMaskObject(a);var c=fa.__pool.get();c.setTo(0,0,a.__width,a.__height);b.__pushMaskRect(c,a.__renderTransform);ha.renderTileContainer(a,b,a.__group,a.__worldShader,a.__tileset,a.__worldAlpha,a.tileBlendModeEnabled,ha.currentBlendMode,null);ha.flush(a,b,ha.currentBlendMode);b.__popMaskRect();b.__popMaskObject(a);fa.__pool.release(c)}};ha.renderDrawable=function(a,b){b.__updateCacheBitmap(a, +!1);if(null==a.__cacheBitmap||a.__isCacheBitmapRender){if(!(null==a.opaqueBackground&&null==a.__graphics||!a.__renderable||0>=a.__worldAlpha)){if(null!=a.opaqueBackground&&!a.__isCacheBitmapRender&&0<a.get_width()&&0<a.get_height()){b.__setBlendMode(a.__worldBlendMode);b.__pushMaskObject(a);var c=b.__context3D,d=fa.__pool.get();d.setTo(0,0,a.get_width(),a.get_height());b.__pushMaskRect(d,a.__renderTransform);var e=a.opaqueBackground;c.clear((e>>>16&255)/255,(e>>>8&255)/255,(e&255)/255,1,0,0,1);b.__popMaskRect(); +b.__popMaskObject(a);fa.__pool.release(d)}null!=a.__graphics&&Yf.render(a,b)}ha.render(a,b)}else tf.render(a.__cacheBitmap,b);b.__renderEvent(a)};ha.renderDrawableMask=function(a,b){if(null!=a.opaqueBackground||null!=a.__graphics)null!=a.opaqueBackground&&!a.__isCacheBitmapRender&&0<a.get_width()&&a.get_height(),null!=a.__graphics&&Yf.renderMask(a,b);ha.renderMask(a,b)};ha.renderTileContainer=function(a,b,c,d,e,f,h,l,t){c=c.__tiles;for(var g,k,p,x,n=null,r,q=0;q<c.length;)if(g=c[q],++q,k=null!=g.get_tileset()? +g.get_tileset():e,p=g.get_alpha()*f,(x=g.get_visible())&&!(0>=p))if(x=null!=g.get_shader()?g.get_shader():d,h&&(n=null!=g.__blendMode?g.__blendMode:l),0<g.__length)ha.renderTileContainer(a,b,g,x,k,p,h,n,t);else if(null!=k&&(r=g.get_id(),p=k.__bitmapData,null!=p)){if(-1==r){if(g=g.__rect,null==g||0>=g.width||0>=g.height)continue}else if(g=k.__data[r],null==g)continue;(x!=ha.currentShader||p!=ha.currentBitmapData&&null!=ha.currentBitmapData||ha.currentBlendMode!=n)&&ha.flush(a,b,ha.currentBlendMode); +ha.currentBitmapData=p;ha.currentShader=x;ha.currentBlendMode=n;ha.bufferPosition++}};ha.renderMask=function(a,b){};ha.resizeBuffer=function(a,b){ha.numTiles=b;null==a.__buffer?a.__buffer=new Bh(ha.context,en.QUADS,ha.numTiles,ha.dataPerVertex):a.__buffer.resize(ha.numTiles,ha.dataPerVertex);ha.vertexBufferData=a.__buffer.vertexBufferData};var uf=function(){};k["openfl.display._internal.Context3DVideo"]=uf;uf.__name__="openfl.display._internal.Context3DVideo";uf.render=function(a,b){if(a.__renderable&& +!(0>=a.__worldAlpha)&&null!=a.__stream&&null!=a.__stream.__video){var c=b.__context3D,d=c.gl;if(null!=a.__getTexture(c)){b.__setBlendMode(a.__worldBlendMode);b.__pushMaskObject(a);var e=b.__initDisplayShader(a.__worldShader);b.setShader(e);b.applyBitmapData(null,!0,!1);b.applyMatrix(b.__getMatrix(a.__renderTransform,1));b.applyAlpha(a.__worldAlpha);b.applyColorTransform(a.__worldColorTransform);null!=e.__textureSize&&(uf.__textureSizeValue[0]=null!=a.__stream?a.__stream.__video.videoWidth:0,uf.__textureSizeValue[1]= +null!=a.__stream?a.__stream.__video.videoHeight:0,e.__textureSize.value=uf.__textureSizeValue);b.updateShader();c.setTextureAt(0,a.__getTexture(c));c.__flushGLTextures();d.uniform1i(e.__texture.index,0);a.smoothing?(d.texParameteri(d.TEXTURE_2D,d.TEXTURE_MAG_FILTER,d.LINEAR),d.texParameteri(d.TEXTURE_2D,d.TEXTURE_MIN_FILTER,d.LINEAR)):(d.texParameteri(d.TEXTURE_2D,d.TEXTURE_MAG_FILTER,d.NEAREST),d.texParameteri(d.TEXTURE_2D,d.TEXTURE_MIN_FILTER,d.NEAREST));d=a.__getVertexBuffer(c);null!=e.__position&& +c.setVertexBufferAt(e.__position.index,d,0,3);null!=e.__textureCoord&&c.setVertexBufferAt(e.__textureCoord.index,d,3,2);e=a.__getIndexBuffer(c);c.drawTriangles(e);b.__clearShader();b.__popMaskObject(a)}}};uf.renderDrawable=function(a,b){uf.render(a,b);b.__renderEvent(a)};uf.renderDrawableMask=function(a,b){uf.renderMask(a,b)};uf.renderMask=function(a,b){if(null!=a.__stream&&null!=a.__stream.__video){var c=b.__context3D,d=b.__maskShader;b.setShader(d);b.applyBitmapData($h.opaqueBitmapData,!0);b.applyMatrix(b.__getMatrix(a.__renderTransform, +1));b.updateShader();var e=a.__getVertexBuffer(c);null!=d.__position&&c.setVertexBufferAt(d.__position.index,e,0,3);null!=d.__textureCoord&&c.setVertexBufferAt(d.__textureCoord.index,e,3,2);a=a.__getIndexBuffer(c);c.drawTriangles(a);b.__clearShader()}};var uc=function(){};k["openfl.display._internal.DOMBitmap"]=uc;uc.__name__="openfl.display._internal.DOMBitmap";uc.clear=function(a,b){Ie.clear(a,b);null!=a.__image&&(b.element.removeChild(a.__image),a.__image=null,a.__style=null);null!=a.__canvas&& +(b.element.removeChild(a.__canvas),a.__canvas=null,a.__style=null)};uc.render=function(a,b){if(null!=a.stage&&a.__worldVisible&&a.__renderable&&null!=a.__bitmapData&&a.__bitmapData.__isValid&&a.__bitmapData.readable){b.__pushMaskObject(a);if(null!=a.__bitmapData.image.buffer.__srcImage){var c=a.__bitmapData.image.buffer.__srcImage.src;J.startsWith(c,"data:")||J.startsWith(c,"blob:")?uc.renderCanvas(a,b):uc.renderImage(a,b)}else uc.renderCanvas(a,b);b.__popMaskObject(a)}else uc.clear(a,b)};uc.renderCanvas= +function(a,b){null!=a.__image&&(b.element.removeChild(a.__image),a.__image=null);null==a.__canvas&&(a.__canvas=window.document.createElement("canvas"),a.__context=a.__canvas.getContext("2d"),a.__imageVersion=-1,b.__allowSmoothing&&a.smoothing||(a.__context.imageSmoothingEnabled=!1),b.__initializeElement(a,a.__canvas));a.__imageVersion!=a.__bitmapData.image.version&&(za.convertToCanvas(a.__bitmapData.image),a.__canvas.width=a.__bitmapData.width+1,a.__canvas.width=a.__bitmapData.width,a.__canvas.height= +a.__bitmapData.height,a.__context.drawImage(a.__bitmapData.image.buffer.__srcCanvas,0,0),a.__imageVersion=a.__bitmapData.image.version);b.__updateClip(a);b.__applyStyle(a,!0,!0,!0)};uc.renderDrawable=function(a,b){b.__updateCacheBitmap(a,!1);if(null==a.__cacheBitmap||a.__isCacheBitmapRender){null!=a.opaqueBackground&&!a.__isCacheBitmapRender&&0<a.get_width()&&a.get_height();var c=a.__graphics;if(null!=a.stage&&a.__worldVisible&&a.__renderable&&null!=c){D.render(c,b.__canvasRenderer);if(c.__softwareDirty|| +a.__worldAlphaChanged||a.__canvas!=c.__canvas)null!=c.__canvas?a.__canvas!=c.__canvas&&(null!=a.__canvas&&b.element.removeChild(a.__canvas),a.__canvas=c.__canvas,a.__context=c.__context,b.__initializeElement(a,a.__canvas)):wf.clear(a,b);if(null!=a.__canvas){b.__pushMaskObject(a);var d=a.__renderTransform;a.__renderTransform=c.__worldTransform;c.__transformDirty&&(c.__transformDirty=!1,a.__renderTransformChanged=!0);b.__updateClip(a);b.__applyStyle(a,!0,!0,!0);a.__renderTransform=d;b.__popMaskObject(a)}}else wf.clear(a, +b);null!=a.stage&&a.__worldVisible&&a.__renderable&&null!=a.__bitmapData&&a.__bitmapData.__isValid&&a.__bitmapData.readable?(b.__pushMaskObject(a),null!=a.__bitmapData.image.buffer.__srcImage?(d=a.__bitmapData.image.buffer.__srcImage.src,J.startsWith(d,"data:")||J.startsWith(d,"blob:")?uc.renderCanvas(a,b):uc.renderImage(a,b)):uc.renderCanvas(a,b),b.__popMaskObject(a)):uc.clear(a,b)}else b.__renderDrawableClear(a),a.__cacheBitmap.stage=a.stage,c=a.__cacheBitmap,null!=c.stage&&c.__worldVisible&&c.__renderable&& +null!=c.__bitmapData&&c.__bitmapData.__isValid&&c.__bitmapData.readable?(b.__pushMaskObject(c),null!=c.__bitmapData.image.buffer.__srcImage?(d=c.__bitmapData.image.buffer.__srcImage.src,J.startsWith(d,"data:")||J.startsWith(d,"blob:")?uc.renderCanvas(c,b):uc.renderImage(c,b)):uc.renderCanvas(c,b),b.__popMaskObject(c)):uc.clear(c,b);b.__renderEvent(a)};uc.renderDrawableClear=function(a,b){uc.clear(a,b)};uc.renderImage=function(a,b){null!=a.__canvas&&(b.element.removeChild(a.__canvas),a.__canvas=null); +null==a.__image&&(a.__image=window.document.createElement("img"),a.__image.crossOrigin="Anonymous",a.__image.src=a.__bitmapData.image.buffer.__srcImage.src,b.__initializeElement(a,a.__image));b.__updateClip(a);b.__applyStyle(a,!0,!0,!0)};var Ie=function(){};k["openfl.display._internal.DOMDisplayObject"]=Ie;Ie.__name__="openfl.display._internal.DOMDisplayObject";Ie.clear=function(a,b){null!=a.__cacheBitmap&&uc.clear(a.__cacheBitmap,b);wf.clear(a,b)};Ie.render=function(a,b){null!=a.opaqueBackground&& +!a.__isCacheBitmapRender&&0<a.get_width()&&a.get_height();var c=a.__graphics;if(null!=a.stage&&a.__worldVisible&&a.__renderable&&null!=c){D.render(c,b.__canvasRenderer);if(c.__softwareDirty||a.__worldAlphaChanged||a.__canvas!=c.__canvas)null!=c.__canvas?a.__canvas!=c.__canvas&&(null!=a.__canvas&&b.element.removeChild(a.__canvas),a.__canvas=c.__canvas,a.__context=c.__context,b.__initializeElement(a,a.__canvas)):wf.clear(a,b);if(null!=a.__canvas){b.__pushMaskObject(a);var d=a.__renderTransform;a.__renderTransform= +c.__worldTransform;c.__transformDirty&&(c.__transformDirty=!1,a.__renderTransformChanged=!0);b.__updateClip(a);b.__applyStyle(a,!0,!0,!0);a.__renderTransform=d;b.__popMaskObject(a)}}else wf.clear(a,b)};Ie.renderDrawable=function(a,b){b.__updateCacheBitmap(a,!1);if(null==a.__cacheBitmap||a.__isCacheBitmapRender){null!=a.opaqueBackground&&!a.__isCacheBitmapRender&&0<a.get_width()&&a.get_height();var c=a.__graphics;if(null!=a.stage&&a.__worldVisible&&a.__renderable&&null!=c){D.render(c,b.__canvasRenderer); +if(c.__softwareDirty||a.__worldAlphaChanged||a.__canvas!=c.__canvas)null!=c.__canvas?a.__canvas!=c.__canvas&&(null!=a.__canvas&&b.element.removeChild(a.__canvas),a.__canvas=c.__canvas,a.__context=c.__context,b.__initializeElement(a,a.__canvas)):wf.clear(a,b);if(null!=a.__canvas){b.__pushMaskObject(a);var d=a.__renderTransform;a.__renderTransform=c.__worldTransform;c.__transformDirty&&(c.__transformDirty=!1,a.__renderTransformChanged=!0);b.__updateClip(a);b.__applyStyle(a,!0,!0,!0);a.__renderTransform= +d;b.__popMaskObject(a)}}else wf.clear(a,b)}else b.__renderDrawableClear(a),a.__cacheBitmap.stage=a.stage,c=a.__cacheBitmap,null!=c.stage&&c.__worldVisible&&c.__renderable&&null!=c.__bitmapData&&c.__bitmapData.__isValid&&c.__bitmapData.readable?(b.__pushMaskObject(c),null!=c.__bitmapData.image.buffer.__srcImage?(d=c.__bitmapData.image.buffer.__srcImage.src,J.startsWith(d,"data:")||J.startsWith(d,"blob:")?uc.renderCanvas(c,b):uc.renderImage(c,b)):uc.renderCanvas(c,b),b.__popMaskObject(c)):uc.clear(c, +b);b.__renderEvent(a)};Ie.renderDrawableClear=function(a,b){Ie.clear(a,b)};var Jm=function(){};k["openfl.display._internal.DOMDisplayObjectContainer"]=Jm;Jm.__name__="openfl.display._internal.DOMDisplayObjectContainer";Jm.renderDrawable=function(a,b){for(var c=a.__removedChildren.iterator();c.hasNext();){var d=c.next();null==d.stage&&b.__renderDrawable(d)}for(c=a.__removedChildren.iterator();c.hasNext();)d=c.next(),null==d.stage&&d.__cleanup();a.__removedChildren.set_length(0);Ie.renderDrawable(a, +b);if(null==a.__cacheBitmap||a.__isCacheBitmapRender){b.__pushMaskObject(a);if(null!=b.__stage){c=0;for(d=a.__children;c<d.length;)e=d[c],++c,b.__renderDrawable(e),e.__renderDirty=!1;a.__renderDirty=!1}else for(c=0,d=a.__children;c<d.length;)e=d[c],++c,b.__renderDrawable(e);b.__popMaskObject(a)}else{c=0;for(d=a.__children;c<d.length;){var e=d[c];++c;b.__renderDrawableClear(e)}wf.clear(a,b);a.__cacheBitmap.stage=a.stage}};Jm.renderDrawableClear=function(a,b){for(var c=a.__removedChildren.iterator();c.hasNext();){var d= +c.next();null==d.stage&&b.__renderDrawableClear(d)}for(c=a.__removedChildren.iterator();c.hasNext();)d=c.next(),null==d.stage&&d.__cleanup();a.__removedChildren.set_length(0);c=0;for(d=a.__children;c<d.length;){var e=d[c];++c;b.__renderDrawableClear(e)}Ie.clear(a,b)};var wf=function(){};k["openfl.display._internal.DOMShape"]=wf;wf.__name__="openfl.display._internal.DOMShape";wf.clear=function(a,b){null!=a.__canvas&&(b.element.removeChild(a.__canvas),a.__canvas=null,a.__style=null)};wf.render=function(a, +b){var c=a.__graphics;if(null!=a.stage&&a.__worldVisible&&a.__renderable&&null!=c){D.render(c,b.__canvasRenderer);if(c.__softwareDirty||a.__worldAlphaChanged||a.__canvas!=c.__canvas)null!=c.__canvas?a.__canvas!=c.__canvas&&(null!=a.__canvas&&b.element.removeChild(a.__canvas),a.__canvas=c.__canvas,a.__context=c.__context,b.__initializeElement(a,a.__canvas)):wf.clear(a,b);if(null!=a.__canvas){b.__pushMaskObject(a);var d=a.__renderTransform;a.__renderTransform=c.__worldTransform;c.__transformDirty&& +(c.__transformDirty=!1,a.__renderTransformChanged=!0);b.__updateClip(a);b.__applyStyle(a,!0,!0,!0);a.__renderTransform=d;b.__popMaskObject(a)}}else wf.clear(a,b)};var Km=function(){};k["openfl.display._internal.DOMSimpleButton"]=Km;Km.__name__="openfl.display._internal.DOMSimpleButton";Km.renderDrawable=function(a,b){b.__pushMaskObject(a);for(var c=a.__previousStates.iterator();c.hasNext();){var d=c.next();b.__renderDrawable(d)}a.__previousStates.set_length(0);null!=a.__currentState&&(a.__currentState.stage!= +a.stage&&a.__currentState.__setStageReference(a.stage),b.__renderDrawable(a.__currentState));b.__popMaskObject(a);b.__renderEvent(a)};Km.renderDrawableClear=function(a,b){Ie.renderDrawableClear(a,b)};var Je=function(){};k["openfl.display._internal.DOMTextField"]=Je;Je.__name__="openfl.display._internal.DOMTextField";Je.clear=function(a,b){Ie.clear(a,b);null!=a.__div&&(b.element.removeChild(a.__div),a.__div=null,a.__style=null)};Je.measureText=function(a){var b=a.__textEngine,c=a.__div;null==c&&(c= +window.document.createElement("div"),c.innerHTML=b.text.replace(/\n/g,"<br>"),c.style.setProperty("font",Ob.getFont(a.__textFormat),null),c.style.setProperty("pointer-events","none",null),c.style.position="absolute",c.style.top="110%",window.document.body.appendChild(c));b.__measuredWidth=c.clientWidth;null==a.__div&&(c.style.width=n.string(b.width-4)+"px");b.__measuredHeight=c.clientHeight;null==a.__div&&window.document.body.removeChild(c)};Je.render=function(a,b){var c=a.__textEngine;if(null!=a.stage&& +a.__worldVisible&&a.__renderable){if(a.__dirty||a.__renderTransformChanged||null==a.__div)if(""!=c.text||c.background||c.border||1==c.type){a.__updateLayout();null==a.__div&&(a.__div=window.document.createElement("div"),b.__initializeElement(a,a.__div),a.__style.setProperty("outline","none",null),a.__div.addEventListener("input",function(b){b.preventDefault();a.get_htmlText()!=a.__div.innerHTML&&(a.set_htmlText(a.__div.innerHTML),a.__dirty=!1,a.dispatchEvent(new cf("textInput",!1,!1,a.get_htmlText())))}, +!0));c.wordWrap?a.__style.setProperty("word-wrap","break-word",null):a.__style.setProperty("white-space","nowrap",null);a.__style.setProperty("overflow","hidden",null);c.selectable?(a.__style.setProperty("cursor","text",null),a.__style.setProperty("-webkit-user-select","text",null),a.__style.setProperty("-moz-user-select","text",null),a.__style.setProperty("-ms-user-select","text",null),a.__style.setProperty("-o-user-select","text",null)):a.__style.setProperty("cursor","inherit",null);a.__div.contentEditable= +1==c.type;var d=a.__style;c.background?d.setProperty("background-color","#"+J.hex(c.backgroundColor&16777215,6),null):d.removeProperty("background-color");var e=c.width,f=c.height,h="";a.__isHTML&&a.__updateText(lb.parse(a.__text,a.get_multiline(),a.__styleSheet,a.__textFormat,a.__textEngine.textFormatRanges));for(var l=-a.get_scrollH(),t=c.layoutGroups.iterator();t.hasNext();){var m=t.next();if(!(m.lineIndex<a.get_scrollV()-1)){if(m.lineIndex>c.get_bottomScrollV()-1)break;h+='<div style="';null!= +m.format.font&&(h+="font: "+Ob.getFont(m.format)+"; ");null!=m.format.color&&(h+="color: #"+J.hex(m.format.color&16777215,6)+"; ");1==m.format.underline&&(h+="text-decoration: underline; ");if(null!=m.format.align)switch(m.format.align){case 0:h+="text-align: center; ";break;case 2:h+="text-align: justify; ";break;case 4:h+="text-align: right; ";break;default:h+="text-align: left; "}null!=m.format.leftMargin&&(h+="padding-left: "+1*m.format.leftMargin+"px; ");null!=m.format.rightMargin&&(h+="padding-right: "+ +1*m.format.rightMargin+"px; ");null!=m.format.indent&&(h+="text-indent: "+1*m.format.indent+"px; ");h+="left: "+(m.offsetX+l)+"px; top: "+(m.offsetY+0+3)+'px; vertical-align: top; position: absolute;">';if(null!=m.format.url&&""!=m.format.url){var k="text-decoration: underline; ";null!=m.format.color&&(k+="color: #"+J.hex(m.format.color&16777215,6)+"; ");h+="<a style='"+k+"' href='"+m.format.url+"' target='"+m.format.target+"'>"}h=a.__isHTML?h+J.replace(c.text.substring(m.startIndex,m.endIndex)," ", +" "):h+J.replace(J.htmlEscape(c.text.substring(m.startIndex,m.endIndex))," "," ");null!=m.format.url&&""!=m.format.url&&(h+="</a>");h+="</div>"}}c.border?(d.setProperty("border","solid 1px #"+J.hex(c.borderColor&16777215,6),null),a.__renderTransform.translate(-1,-1),a.__renderTransformChanged=!0,a.__transformDirty=!0):""!=d.border&&(d.removeProperty("border"),a.__renderTransformChanged=!0);d.setProperty("width",e+"px",null);d.setProperty("height",f+"px",null);a.__div.innerHTML=h;a.__dirty= +!1}else null!=a.__div&&(b.element.removeChild(a.__div),a.__div=null);null!=a.__div&&(c=b.__roundPixels,b.__roundPixels=!0,b.__updateClip(a),b.__applyStyle(a,!0,!0,!0),b.__roundPixels=c)}else Je.clear(a,b)};Je.renderDrawable=function(a,b){a.__domRender=!0;b.__updateCacheBitmap(a,a.__forceCachedBitmapUpdate);a.__forceCachedBitmapUpdate=!1;a.__domRender=!1;if(null==a.__cacheBitmap||a.__isCacheBitmapRender){a.__renderedOnCanvasWhileOnDOM&&(a.__renderedOnCanvasWhileOnDOM=!1,a.__isHTML&&null!=a.__htmlText&& +(a.__updateText(a.__htmlText),a.__dirty=!0,a.__layoutDirty=!0,a.__renderDirty||(a.__renderDirty=!0,a.__setParentRenderDirty())));var c=a.__textEngine;if(null!=a.stage&&a.__worldVisible&&a.__renderable){if(a.__dirty||a.__renderTransformChanged||null==a.__div)if(""!=c.text||c.background||c.border||1==c.type){a.__updateLayout();null==a.__div&&(a.__div=window.document.createElement("div"),b.__initializeElement(a,a.__div),a.__style.setProperty("outline","none",null),a.__div.addEventListener("input",function(b){b.preventDefault(); +a.get_htmlText()!=a.__div.innerHTML&&(a.set_htmlText(a.__div.innerHTML),a.__dirty=!1,a.dispatchEvent(new cf("textInput",!1,!1,a.get_htmlText())))},!0));c.wordWrap?a.__style.setProperty("word-wrap","break-word",null):a.__style.setProperty("white-space","nowrap",null);a.__style.setProperty("overflow","hidden",null);c.selectable?(a.__style.setProperty("cursor","text",null),a.__style.setProperty("-webkit-user-select","text",null),a.__style.setProperty("-moz-user-select","text",null),a.__style.setProperty("-ms-user-select", +"text",null),a.__style.setProperty("-o-user-select","text",null)):a.__style.setProperty("cursor","inherit",null);a.__div.contentEditable=1==c.type;var d=a.__style;c.background?d.setProperty("background-color","#"+J.hex(c.backgroundColor&16777215,6),null):d.removeProperty("background-color");var e=c.width,f=c.height,h="";a.__isHTML&&a.__updateText(lb.parse(a.__text,a.get_multiline(),a.__styleSheet,a.__textFormat,a.__textEngine.textFormatRanges));for(var l=-a.get_scrollH(),t=c.layoutGroups.iterator();t.hasNext();){var m= +t.next();if(!(m.lineIndex<a.get_scrollV()-1)){if(m.lineIndex>c.get_bottomScrollV()-1)break;h+='<div style="';null!=m.format.font&&(h+="font: "+Ob.getFont(m.format)+"; ");null!=m.format.color&&(h+="color: #"+J.hex(m.format.color&16777215,6)+"; ");1==m.format.underline&&(h+="text-decoration: underline; ");if(null!=m.format.align)switch(m.format.align){case 0:h+="text-align: center; ";break;case 2:h+="text-align: justify; ";break;case 4:h+="text-align: right; ";break;default:h+="text-align: left; "}null!= +m.format.leftMargin&&(h+="padding-left: "+1*m.format.leftMargin+"px; ");null!=m.format.rightMargin&&(h+="padding-right: "+1*m.format.rightMargin+"px; ");null!=m.format.indent&&(h+="text-indent: "+1*m.format.indent+"px; ");h+="left: "+(m.offsetX+l)+"px; top: "+(m.offsetY+0+3)+'px; vertical-align: top; position: absolute;">';if(null!=m.format.url&&""!=m.format.url){var k="text-decoration: underline; ";null!=m.format.color&&(k+="color: #"+J.hex(m.format.color&16777215,6)+"; ");h+="<a style='"+k+"' href='"+ +m.format.url+"' target='"+m.format.target+"'>"}h=a.__isHTML?h+J.replace(c.text.substring(m.startIndex,m.endIndex)," "," "):h+J.replace(J.htmlEscape(c.text.substring(m.startIndex,m.endIndex))," "," ");null!=m.format.url&&""!=m.format.url&&(h+="</a>");h+="</div>"}}c.border?(d.setProperty("border","solid 1px #"+J.hex(c.borderColor&16777215,6),null),a.__renderTransform.translate(-1,-1),a.__renderTransformChanged=!0,a.__transformDirty=!0):""!=d.border&&(d.removeProperty("border"),a.__renderTransformChanged= +!0);d.setProperty("width",e+"px",null);d.setProperty("height",f+"px",null);a.__div.innerHTML=h;a.__dirty=!1}else null!=a.__div&&(b.element.removeChild(a.__div),a.__div=null);null!=a.__div&&(c=b.__roundPixels,b.__roundPixels=!0,b.__updateClip(a),b.__applyStyle(a,!0,!0,!0),b.__roundPixels=c)}else Je.clear(a,b)}else b.__renderDrawableClear(a),a.__cacheBitmap.stage=a.stage,c=a.__cacheBitmap,null!=c.stage&&c.__worldVisible&&c.__renderable&&null!=c.__bitmapData&&c.__bitmapData.__isValid&&c.__bitmapData.readable? +(b.__pushMaskObject(c),null!=c.__bitmapData.image.buffer.__srcImage?(d=c.__bitmapData.image.buffer.__srcImage.src,J.startsWith(d,"data:")||J.startsWith(d,"blob:")?uc.renderCanvas(c,b):uc.renderImage(c,b)):uc.renderCanvas(c,b),b.__popMaskObject(c)):uc.clear(c,b);b.__renderEvent(a)};Je.renderDrawableClear=function(a,b){Je.clear(a,b)};Je.__getAttributeMatch=function(a){return null!=a.matched(2)?a.matched(2):a.matched(3)};var Bg=function(){};k["openfl.display._internal.DOMTilemap"]=Bg;Bg.__name__="openfl.display._internal.DOMTilemap"; +Bg.clear=function(a,b){Ie.clear(a,b);null!=a.__canvas&&(b.element.removeChild(a.__canvas),a.__canvas=null,a.__style=null)};Bg.render=function(a,b){if(null!=a.stage&&a.__worldVisible&&a.__renderable&&0<a.__group.__tiles.length){null==a.__canvas&&(a.__canvas=window.document.createElement("canvas"),a.__context=a.__canvas.getContext("2d"),b.__initializeElement(a,a.__canvas));a.__canvas.width=a.__width;a.__canvas.height=a.__height;b.__canvasRenderer.context=a.__context;var c=a.__renderTransform;a.__renderTransform= +Aa.__identity;var d=b.__canvasRenderer;if((null!=a.opaqueBackground||null!=a.__graphics)&&a.__renderable){var e=d.__getAlpha(a.__worldAlpha);if(!(0>=e)){if(null!=a.opaqueBackground&&!a.__isCacheBitmapRender&&0<a.get_width()&&0<a.get_height()){d.__setBlendMode(a.__worldBlendMode);d.__pushMaskObject(a);var f=d.context;d.setTransform(a.__renderTransform,f);var h=a.opaqueBackground;f.fillStyle="rgb("+(h>>>16&255)+","+(h>>>8&255)+","+(h&255)+")";f.fillRect(0,0,a.get_width(),a.get_height());d.__popMaskObject(a)}if(null!= +a.__graphics&&a.__renderable&&(e=d.__getAlpha(a.__worldAlpha),!(0>=e))){var l=a.__graphics;if(null!=l){D.render(l,d);var t=l.__width,m=l.__height;h=l.__canvas;if(null!=h&&l.__visible&&1<=t&&1<=m){var k=l.__worldTransform;f=d.context;var p=a.__scrollRect,n=a.__worldScale9Grid;if(null==p||0<p.width&&0<p.height){d.__setBlendMode(a.__worldBlendMode);d.__pushMaskObject(a);f.globalAlpha=e;if(null!=n&&0==k.b&&0==k.c){var r=d.__pixelRatio;e=Aa.__pool.get();e.translate(k.tx,k.ty);d.setTransform(e,f);Aa.__pool.release(e); +e=l.__bounds;var q=l.__renderTransform.a/l.__bitmapScale,v=l.__renderTransform.d/l.__bitmapScale,u=q*k.a,w=v*k.d;k=Math.max(1,Math.round(n.x*q));l=Math.round(n.y*v);p=Math.max(1,Math.round((e.get_right()-n.get_right())*q));var B=Math.round((e.get_bottom()-n.get_bottom())*v);q=Math.round(n.width*q);n=Math.round(n.height*v);v=Math.round(k/r);var E=Math.round(l/r),C=Math.round(p/r);r=Math.round(B/r);u=e.width*u-v-C;e=e.height*w-E-r;d.applySmoothing(f,!1);0!=q&&0!=n?(f.drawImage(h,0,0,k,l,0,0,v,E),f.drawImage(h, +k,0,q,l,v,0,u,E),f.drawImage(h,k+q,0,p,l,v+u,0,C,E),f.drawImage(h,0,l,k,n,0,E,v,e),f.drawImage(h,k,l,q,n,v,E,u,e),f.drawImage(h,k+q,l,p,n,v+u,E,C,e),f.drawImage(h,0,l+n,k,B,0,E+e,v,r),f.drawImage(h,k,l+n,q,B,v,E+e,u,r),f.drawImage(h,k+q,l+n,p,B,v+u,E+e,C,r)):0==q&&0!=n?(m=v+u+C,f.drawImage(h,0,0,t,l,0,0,m,E),f.drawImage(h,0,l,t,n,0,E,m,e),f.drawImage(h,0,l+n,t,B,0,E+e,m,r)):0==n&&0!=q&&(t=E+e+r,f.drawImage(h,0,0,k,m,0,0,v,t),f.drawImage(h,k,0,q,m,v,0,u,t),f.drawImage(h,k+q,0,p,m,v+u,0,C,t))}else d.setTransform(k, +f),f.drawImage(h,0,0,t,m);d.__popMaskObject(a)}}}}}}d=b.__canvasRenderer;a.__renderable&&0!=a.__group.__tiles.length&&(e=d.__getAlpha(a.__worldAlpha),0>=e||(f=d.context,d.__setBlendMode(a.__worldBlendMode),d.__pushMaskObject(a),h=fa.__pool.get(),h.setTo(0,0,a.__width,a.__height),d.__pushMaskRect(h,a.__renderTransform),d.__allowSmoothing&&a.smoothing||(f.imageSmoothingEnabled=!1),Uf.renderTileContainer(a.__group,d,a.__renderTransform,a.__tileset,d.__allowSmoothing&&a.smoothing,a.tileAlphaEnabled,e, +a.tileBlendModeEnabled,a.__worldBlendMode,null,null,h),d.__allowSmoothing&&a.smoothing||(f.imageSmoothingEnabled=!0),d.__popMaskRect(),d.__popMaskObject(a),fa.__pool.release(h)));a.__renderTransform=c;b.__canvasRenderer.context=null;b.__updateClip(a);b.__applyStyle(a,!0,!1,!0)}else Bg.clear(a,b)};Bg.renderDrawable=function(a,b){b.__updateCacheBitmap(a,!1);if(null==a.__cacheBitmap||a.__isCacheBitmapRender)if(null!=a.stage&&a.__worldVisible&&a.__renderable&&0<a.__group.__tiles.length){null==a.__canvas&& +(a.__canvas=window.document.createElement("canvas"),a.__context=a.__canvas.getContext("2d"),b.__initializeElement(a,a.__canvas));a.__canvas.width=a.__width;a.__canvas.height=a.__height;b.__canvasRenderer.context=a.__context;var c=a.__renderTransform;a.__renderTransform=Aa.__identity;var d=b.__canvasRenderer;if((null!=a.opaqueBackground||null!=a.__graphics)&&a.__renderable){var e=d.__getAlpha(a.__worldAlpha);if(!(0>=e)){if(null!=a.opaqueBackground&&!a.__isCacheBitmapRender&&0<a.get_width()&&0<a.get_height()){d.__setBlendMode(a.__worldBlendMode); +d.__pushMaskObject(a);var f=d.context;d.setTransform(a.__renderTransform,f);var h=a.opaqueBackground;f.fillStyle="rgb("+(h>>>16&255)+","+(h>>>8&255)+","+(h&255)+")";f.fillRect(0,0,a.get_width(),a.get_height());d.__popMaskObject(a)}if(null!=a.__graphics&&a.__renderable&&(e=d.__getAlpha(a.__worldAlpha),!(0>=e))){var l=a.__graphics;if(null!=l){D.render(l,d);var t=l.__width,m=l.__height;h=l.__canvas;if(null!=h&&l.__visible&&1<=t&&1<=m){var k=l.__worldTransform;f=d.context;var p=a.__scrollRect,n=a.__worldScale9Grid; +if(null==p||0<p.width&&0<p.height){d.__setBlendMode(a.__worldBlendMode);d.__pushMaskObject(a);f.globalAlpha=e;if(null!=n&&0==k.b&&0==k.c){var r=d.__pixelRatio;e=Aa.__pool.get();e.translate(k.tx,k.ty);d.setTransform(e,f);Aa.__pool.release(e);e=l.__bounds;var q=l.__renderTransform.a/l.__bitmapScale,v=l.__renderTransform.d/l.__bitmapScale,u=q*k.a,w=v*k.d;k=Math.max(1,Math.round(n.x*q));l=Math.round(n.y*v);p=Math.max(1,Math.round((e.get_right()-n.get_right())*q));var B=Math.round((e.get_bottom()-n.get_bottom())* +v);q=Math.round(n.width*q);n=Math.round(n.height*v);v=Math.round(k/r);var E=Math.round(l/r),C=Math.round(p/r);r=Math.round(B/r);u=e.width*u-v-C;e=e.height*w-E-r;d.applySmoothing(f,!1);0!=q&&0!=n?(f.drawImage(h,0,0,k,l,0,0,v,E),f.drawImage(h,k,0,q,l,v,0,u,E),f.drawImage(h,k+q,0,p,l,v+u,0,C,E),f.drawImage(h,0,l,k,n,0,E,v,e),f.drawImage(h,k,l,q,n,v,E,u,e),f.drawImage(h,k+q,l,p,n,v+u,E,C,e),f.drawImage(h,0,l+n,k,B,0,E+e,v,r),f.drawImage(h,k,l+n,q,B,v,E+e,u,r),f.drawImage(h,k+q,l+n,p,B,v+u,E+e,C,r)):0== +q&&0!=n?(m=v+u+C,f.drawImage(h,0,0,t,l,0,0,m,E),f.drawImage(h,0,l,t,n,0,E,m,e),f.drawImage(h,0,l+n,t,B,0,E+e,m,r)):0==n&&0!=q&&(t=E+e+r,f.drawImage(h,0,0,k,m,0,0,v,t),f.drawImage(h,k,0,q,m,v,0,u,t),f.drawImage(h,k+q,0,p,m,v+u,0,C,t))}else d.setTransform(k,f),f.drawImage(h,0,0,t,m);d.__popMaskObject(a)}}}}}}d=b.__canvasRenderer;a.__renderable&&0!=a.__group.__tiles.length&&(e=d.__getAlpha(a.__worldAlpha),0>=e||(f=d.context,d.__setBlendMode(a.__worldBlendMode),d.__pushMaskObject(a),h=fa.__pool.get(), +h.setTo(0,0,a.__width,a.__height),d.__pushMaskRect(h,a.__renderTransform),d.__allowSmoothing&&a.smoothing||(f.imageSmoothingEnabled=!1),Uf.renderTileContainer(a.__group,d,a.__renderTransform,a.__tileset,d.__allowSmoothing&&a.smoothing,a.tileAlphaEnabled,e,a.tileBlendModeEnabled,a.__worldBlendMode,null,null,h),d.__allowSmoothing&&a.smoothing||(f.imageSmoothingEnabled=!0),d.__popMaskRect(),d.__popMaskObject(a),fa.__pool.release(h)));a.__renderTransform=c;b.__canvasRenderer.context=null;b.__updateClip(a); +b.__applyStyle(a,!0,!1,!0)}else Bg.clear(a,b);else b.__renderDrawableClear(a),a.__cacheBitmap.stage=a.stage,c=a.__cacheBitmap,null!=c.stage&&c.__worldVisible&&c.__renderable&&null!=c.__bitmapData&&c.__bitmapData.__isValid&&c.__bitmapData.readable?(b.__pushMaskObject(c),null!=c.__bitmapData.image.buffer.__srcImage?(d=c.__bitmapData.image.buffer.__srcImage.src,J.startsWith(d,"data:")||J.startsWith(d,"blob:")?uc.renderCanvas(c,b):uc.renderImage(c,b)):uc.renderCanvas(c,b),b.__popMaskObject(c)):uc.clear(c, +b);b.__renderEvent(a)};Bg.renderDrawableClear=function(a,b){Bg.clear(a,b)};var Zg=function(){};k["openfl.display._internal.DOMVideo"]=Zg;Zg.__name__="openfl.display._internal.DOMVideo";Zg.clear=function(a,b){Ie.clear(a,b);a.__active&&(b.element.removeChild(a.__stream.__video),a.__active=!1)};Zg.render=function(a,b){null!=a.stage&&null!=a.__stream&&a.__worldVisible&&a.__renderable?(a.__active||(b.__initializeElement(a,a.__stream.__video),a.__active=!0,a.__dirty=!0),a.__dirty&&(a.__stream.__video.width= +a.__width|0,a.__stream.__video.height=a.__height|0,a.__dirty=!1),b.__updateClip(a),b.__applyStyle(a,!0,!0,!0)):Zg.clear(a,b)};Zg.renderDrawable=function(a,b){Zg.render(a,b);b.__renderEvent(a)};Zg.renderDrawableClear=function(a,b){Ie.renderDrawableClear(a,b)};var Vf=function(a){this.buffer=a;this.bPos=this.iPos=this.fPos=this.oPos=this.ffPos=this.iiPos=this.tsPos=0;this.prev=ba.UNKNOWN};k["openfl.display._internal.DrawCommandReader"]=Vf;Vf.__name__="openfl.display._internal.DrawCommandReader";Vf.prototype= +{buffer:null,bPos:null,iiPos:null,iPos:null,ffPos:null,fPos:null,oPos:null,prev:null,tsPos:null,advance:function(){switch(this.prev._hx_index){case 0:this.oPos+=2;this.bPos+=2;break;case 1:this.iPos+=1;this.fPos+=1;break;case 2:this.oPos+=4;this.iiPos+=2;this.ffPos+=1;this.fPos+=1;break;case 3:this.oPos+=1;break;case 4:this.fPos+=6;break;case 5:this.fPos+=4;break;case 6:this.fPos+=3;break;case 7:this.fPos+=4;break;case 8:this.oPos+=3;break;case 9:this.fPos+=4;break;case 10:this.fPos+=5;this.oPos+= +1;break;case 12:this.oPos+=4;break;case 14:this.oPos+=2;this.bPos+=2;break;case 15:this.oPos+=4;this.iiPos+=2;this.ffPos+=1;this.fPos+=1;break;case 16:this.oPos+=4;this.iPos+=1;this.fPos+=2;this.bPos+=1;break;case 17:this.fPos+=2;break;case 18:this.fPos+=2;break;case 19:this.oPos+=1;break;case 20:this.oPos+=1}},bool:function(a){return this.buffer.b[this.bPos+a]},destroy:function(){this.buffer=null;this.reset()},fArr:function(a){return this.buffer.ff[this.ffPos+a]},float:function(a){return this.buffer.f[this.fPos+ +a]},iArr:function(a){return this.buffer.ii[this.iiPos+a]},int:function(a){return this.buffer.i[this.iPos+a]},obj:function(a){return this.buffer.o[this.oPos+a]},readBeginBitmapFill:function(){switch(this.prev._hx_index){case 0:this.oPos+=2;this.bPos+=2;break;case 1:this.iPos+=1;this.fPos+=1;break;case 2:this.oPos+=4;this.iiPos+=2;this.ffPos+=1;this.fPos+=1;break;case 3:this.oPos+=1;break;case 4:this.fPos+=6;break;case 5:this.fPos+=4;break;case 6:this.fPos+=3;break;case 7:this.fPos+=4;break;case 8:this.oPos+= +3;break;case 9:this.fPos+=4;break;case 10:this.fPos+=5;this.oPos+=1;break;case 12:this.oPos+=4;break;case 14:this.oPos+=2;this.bPos+=2;break;case 15:this.oPos+=4;this.iiPos+=2;this.ffPos+=1;this.fPos+=1;break;case 16:this.oPos+=4;this.iPos+=1;this.fPos+=2;this.bPos+=1;break;case 17:this.fPos+=2;break;case 18:this.fPos+=2;break;case 19:this.oPos+=1;break;case 20:this.oPos+=1}this.prev=ba.BEGIN_BITMAP_FILL;return this},readBeginFill:function(){switch(this.prev._hx_index){case 0:this.oPos+=2;this.bPos+= +2;break;case 1:this.iPos+=1;this.fPos+=1;break;case 2:this.oPos+=4;this.iiPos+=2;this.ffPos+=1;this.fPos+=1;break;case 3:this.oPos+=1;break;case 4:this.fPos+=6;break;case 5:this.fPos+=4;break;case 6:this.fPos+=3;break;case 7:this.fPos+=4;break;case 8:this.oPos+=3;break;case 9:this.fPos+=4;break;case 10:this.fPos+=5;this.oPos+=1;break;case 12:this.oPos+=4;break;case 14:this.oPos+=2;this.bPos+=2;break;case 15:this.oPos+=4;this.iiPos+=2;this.ffPos+=1;this.fPos+=1;break;case 16:this.oPos+=4;this.iPos+= +1;this.fPos+=2;this.bPos+=1;break;case 17:this.fPos+=2;break;case 18:this.fPos+=2;break;case 19:this.oPos+=1;break;case 20:this.oPos+=1}this.prev=ba.BEGIN_FILL;return this},readBeginGradientFill:function(){switch(this.prev._hx_index){case 0:this.oPos+=2;this.bPos+=2;break;case 1:this.iPos+=1;this.fPos+=1;break;case 2:this.oPos+=4;this.iiPos+=2;this.ffPos+=1;this.fPos+=1;break;case 3:this.oPos+=1;break;case 4:this.fPos+=6;break;case 5:this.fPos+=4;break;case 6:this.fPos+=3;break;case 7:this.fPos+= +4;break;case 8:this.oPos+=3;break;case 9:this.fPos+=4;break;case 10:this.fPos+=5;this.oPos+=1;break;case 12:this.oPos+=4;break;case 14:this.oPos+=2;this.bPos+=2;break;case 15:this.oPos+=4;this.iiPos+=2;this.ffPos+=1;this.fPos+=1;break;case 16:this.oPos+=4;this.iPos+=1;this.fPos+=2;this.bPos+=1;break;case 17:this.fPos+=2;break;case 18:this.fPos+=2;break;case 19:this.oPos+=1;break;case 20:this.oPos+=1}this.prev=ba.BEGIN_GRADIENT_FILL;return this},readBeginShaderFill:function(){switch(this.prev._hx_index){case 0:this.oPos+= +2;this.bPos+=2;break;case 1:this.iPos+=1;this.fPos+=1;break;case 2:this.oPos+=4;this.iiPos+=2;this.ffPos+=1;this.fPos+=1;break;case 3:this.oPos+=1;break;case 4:this.fPos+=6;break;case 5:this.fPos+=4;break;case 6:this.fPos+=3;break;case 7:this.fPos+=4;break;case 8:this.oPos+=3;break;case 9:this.fPos+=4;break;case 10:this.fPos+=5;this.oPos+=1;break;case 12:this.oPos+=4;break;case 14:this.oPos+=2;this.bPos+=2;break;case 15:this.oPos+=4;this.iiPos+=2;this.ffPos+=1;this.fPos+=1;break;case 16:this.oPos+= +4;this.iPos+=1;this.fPos+=2;this.bPos+=1;break;case 17:this.fPos+=2;break;case 18:this.fPos+=2;break;case 19:this.oPos+=1;break;case 20:this.oPos+=1}this.prev=ba.BEGIN_SHADER_FILL;return this},readCubicCurveTo:function(){switch(this.prev._hx_index){case 0:this.oPos+=2;this.bPos+=2;break;case 1:this.iPos+=1;this.fPos+=1;break;case 2:this.oPos+=4;this.iiPos+=2;this.ffPos+=1;this.fPos+=1;break;case 3:this.oPos+=1;break;case 4:this.fPos+=6;break;case 5:this.fPos+=4;break;case 6:this.fPos+=3;break;case 7:this.fPos+= +4;break;case 8:this.oPos+=3;break;case 9:this.fPos+=4;break;case 10:this.fPos+=5;this.oPos+=1;break;case 12:this.oPos+=4;break;case 14:this.oPos+=2;this.bPos+=2;break;case 15:this.oPos+=4;this.iiPos+=2;this.ffPos+=1;this.fPos+=1;break;case 16:this.oPos+=4;this.iPos+=1;this.fPos+=2;this.bPos+=1;break;case 17:this.fPos+=2;break;case 18:this.fPos+=2;break;case 19:this.oPos+=1;break;case 20:this.oPos+=1}this.prev=ba.CUBIC_CURVE_TO;return this},readCurveTo:function(){switch(this.prev._hx_index){case 0:this.oPos+= +2;this.bPos+=2;break;case 1:this.iPos+=1;this.fPos+=1;break;case 2:this.oPos+=4;this.iiPos+=2;this.ffPos+=1;this.fPos+=1;break;case 3:this.oPos+=1;break;case 4:this.fPos+=6;break;case 5:this.fPos+=4;break;case 6:this.fPos+=3;break;case 7:this.fPos+=4;break;case 8:this.oPos+=3;break;case 9:this.fPos+=4;break;case 10:this.fPos+=5;this.oPos+=1;break;case 12:this.oPos+=4;break;case 14:this.oPos+=2;this.bPos+=2;break;case 15:this.oPos+=4;this.iiPos+=2;this.ffPos+=1;this.fPos+=1;break;case 16:this.oPos+= +4;this.iPos+=1;this.fPos+=2;this.bPos+=1;break;case 17:this.fPos+=2;break;case 18:this.fPos+=2;break;case 19:this.oPos+=1;break;case 20:this.oPos+=1}this.prev=ba.CURVE_TO;return this},readDrawCircle:function(){switch(this.prev._hx_index){case 0:this.oPos+=2;this.bPos+=2;break;case 1:this.iPos+=1;this.fPos+=1;break;case 2:this.oPos+=4;this.iiPos+=2;this.ffPos+=1;this.fPos+=1;break;case 3:this.oPos+=1;break;case 4:this.fPos+=6;break;case 5:this.fPos+=4;break;case 6:this.fPos+=3;break;case 7:this.fPos+= +4;break;case 8:this.oPos+=3;break;case 9:this.fPos+=4;break;case 10:this.fPos+=5;this.oPos+=1;break;case 12:this.oPos+=4;break;case 14:this.oPos+=2;this.bPos+=2;break;case 15:this.oPos+=4;this.iiPos+=2;this.ffPos+=1;this.fPos+=1;break;case 16:this.oPos+=4;this.iPos+=1;this.fPos+=2;this.bPos+=1;break;case 17:this.fPos+=2;break;case 18:this.fPos+=2;break;case 19:this.oPos+=1;break;case 20:this.oPos+=1}this.prev=ba.DRAW_CIRCLE;return this},readDrawEllipse:function(){switch(this.prev._hx_index){case 0:this.oPos+= +2;this.bPos+=2;break;case 1:this.iPos+=1;this.fPos+=1;break;case 2:this.oPos+=4;this.iiPos+=2;this.ffPos+=1;this.fPos+=1;break;case 3:this.oPos+=1;break;case 4:this.fPos+=6;break;case 5:this.fPos+=4;break;case 6:this.fPos+=3;break;case 7:this.fPos+=4;break;case 8:this.oPos+=3;break;case 9:this.fPos+=4;break;case 10:this.fPos+=5;this.oPos+=1;break;case 12:this.oPos+=4;break;case 14:this.oPos+=2;this.bPos+=2;break;case 15:this.oPos+=4;this.iiPos+=2;this.ffPos+=1;this.fPos+=1;break;case 16:this.oPos+= +4;this.iPos+=1;this.fPos+=2;this.bPos+=1;break;case 17:this.fPos+=2;break;case 18:this.fPos+=2;break;case 19:this.oPos+=1;break;case 20:this.oPos+=1}this.prev=ba.DRAW_ELLIPSE;return this},readDrawQuads:function(){switch(this.prev._hx_index){case 0:this.oPos+=2;this.bPos+=2;break;case 1:this.iPos+=1;this.fPos+=1;break;case 2:this.oPos+=4;this.iiPos+=2;this.ffPos+=1;this.fPos+=1;break;case 3:this.oPos+=1;break;case 4:this.fPos+=6;break;case 5:this.fPos+=4;break;case 6:this.fPos+=3;break;case 7:this.fPos+= +4;break;case 8:this.oPos+=3;break;case 9:this.fPos+=4;break;case 10:this.fPos+=5;this.oPos+=1;break;case 12:this.oPos+=4;break;case 14:this.oPos+=2;this.bPos+=2;break;case 15:this.oPos+=4;this.iiPos+=2;this.ffPos+=1;this.fPos+=1;break;case 16:this.oPos+=4;this.iPos+=1;this.fPos+=2;this.bPos+=1;break;case 17:this.fPos+=2;break;case 18:this.fPos+=2;break;case 19:this.oPos+=1;break;case 20:this.oPos+=1}this.prev=ba.DRAW_QUADS;return this},readDrawRect:function(){switch(this.prev._hx_index){case 0:this.oPos+= +2;this.bPos+=2;break;case 1:this.iPos+=1;this.fPos+=1;break;case 2:this.oPos+=4;this.iiPos+=2;this.ffPos+=1;this.fPos+=1;break;case 3:this.oPos+=1;break;case 4:this.fPos+=6;break;case 5:this.fPos+=4;break;case 6:this.fPos+=3;break;case 7:this.fPos+=4;break;case 8:this.oPos+=3;break;case 9:this.fPos+=4;break;case 10:this.fPos+=5;this.oPos+=1;break;case 12:this.oPos+=4;break;case 14:this.oPos+=2;this.bPos+=2;break;case 15:this.oPos+=4;this.iiPos+=2;this.ffPos+=1;this.fPos+=1;break;case 16:this.oPos+= +4;this.iPos+=1;this.fPos+=2;this.bPos+=1;break;case 17:this.fPos+=2;break;case 18:this.fPos+=2;break;case 19:this.oPos+=1;break;case 20:this.oPos+=1}this.prev=ba.DRAW_RECT;return this},readDrawRoundRect:function(){switch(this.prev._hx_index){case 0:this.oPos+=2;this.bPos+=2;break;case 1:this.iPos+=1;this.fPos+=1;break;case 2:this.oPos+=4;this.iiPos+=2;this.ffPos+=1;this.fPos+=1;break;case 3:this.oPos+=1;break;case 4:this.fPos+=6;break;case 5:this.fPos+=4;break;case 6:this.fPos+=3;break;case 7:this.fPos+= +4;break;case 8:this.oPos+=3;break;case 9:this.fPos+=4;break;case 10:this.fPos+=5;this.oPos+=1;break;case 12:this.oPos+=4;break;case 14:this.oPos+=2;this.bPos+=2;break;case 15:this.oPos+=4;this.iiPos+=2;this.ffPos+=1;this.fPos+=1;break;case 16:this.oPos+=4;this.iPos+=1;this.fPos+=2;this.bPos+=1;break;case 17:this.fPos+=2;break;case 18:this.fPos+=2;break;case 19:this.oPos+=1;break;case 20:this.oPos+=1}this.prev=ba.DRAW_ROUND_RECT;return this},readDrawTriangles:function(){switch(this.prev._hx_index){case 0:this.oPos+= +2;this.bPos+=2;break;case 1:this.iPos+=1;this.fPos+=1;break;case 2:this.oPos+=4;this.iiPos+=2;this.ffPos+=1;this.fPos+=1;break;case 3:this.oPos+=1;break;case 4:this.fPos+=6;break;case 5:this.fPos+=4;break;case 6:this.fPos+=3;break;case 7:this.fPos+=4;break;case 8:this.oPos+=3;break;case 9:this.fPos+=4;break;case 10:this.fPos+=5;this.oPos+=1;break;case 12:this.oPos+=4;break;case 14:this.oPos+=2;this.bPos+=2;break;case 15:this.oPos+=4;this.iiPos+=2;this.ffPos+=1;this.fPos+=1;break;case 16:this.oPos+= +4;this.iPos+=1;this.fPos+=2;this.bPos+=1;break;case 17:this.fPos+=2;break;case 18:this.fPos+=2;break;case 19:this.oPos+=1;break;case 20:this.oPos+=1}this.prev=ba.DRAW_TRIANGLES;return this},readEndFill:function(){switch(this.prev._hx_index){case 0:this.oPos+=2;this.bPos+=2;break;case 1:this.iPos+=1;this.fPos+=1;break;case 2:this.oPos+=4;this.iiPos+=2;this.ffPos+=1;this.fPos+=1;break;case 3:this.oPos+=1;break;case 4:this.fPos+=6;break;case 5:this.fPos+=4;break;case 6:this.fPos+=3;break;case 7:this.fPos+= +4;break;case 8:this.oPos+=3;break;case 9:this.fPos+=4;break;case 10:this.fPos+=5;this.oPos+=1;break;case 12:this.oPos+=4;break;case 14:this.oPos+=2;this.bPos+=2;break;case 15:this.oPos+=4;this.iiPos+=2;this.ffPos+=1;this.fPos+=1;break;case 16:this.oPos+=4;this.iPos+=1;this.fPos+=2;this.bPos+=1;break;case 17:this.fPos+=2;break;case 18:this.fPos+=2;break;case 19:this.oPos+=1;break;case 20:this.oPos+=1}this.prev=ba.END_FILL;return this},readLineBitmapStyle:function(){switch(this.prev._hx_index){case 0:this.oPos+= +2;this.bPos+=2;break;case 1:this.iPos+=1;this.fPos+=1;break;case 2:this.oPos+=4;this.iiPos+=2;this.ffPos+=1;this.fPos+=1;break;case 3:this.oPos+=1;break;case 4:this.fPos+=6;break;case 5:this.fPos+=4;break;case 6:this.fPos+=3;break;case 7:this.fPos+=4;break;case 8:this.oPos+=3;break;case 9:this.fPos+=4;break;case 10:this.fPos+=5;this.oPos+=1;break;case 12:this.oPos+=4;break;case 14:this.oPos+=2;this.bPos+=2;break;case 15:this.oPos+=4;this.iiPos+=2;this.ffPos+=1;this.fPos+=1;break;case 16:this.oPos+= +4;this.iPos+=1;this.fPos+=2;this.bPos+=1;break;case 17:this.fPos+=2;break;case 18:this.fPos+=2;break;case 19:this.oPos+=1;break;case 20:this.oPos+=1}this.prev=ba.LINE_BITMAP_STYLE;return this},readLineGradientStyle:function(){switch(this.prev._hx_index){case 0:this.oPos+=2;this.bPos+=2;break;case 1:this.iPos+=1;this.fPos+=1;break;case 2:this.oPos+=4;this.iiPos+=2;this.ffPos+=1;this.fPos+=1;break;case 3:this.oPos+=1;break;case 4:this.fPos+=6;break;case 5:this.fPos+=4;break;case 6:this.fPos+=3;break; +case 7:this.fPos+=4;break;case 8:this.oPos+=3;break;case 9:this.fPos+=4;break;case 10:this.fPos+=5;this.oPos+=1;break;case 12:this.oPos+=4;break;case 14:this.oPos+=2;this.bPos+=2;break;case 15:this.oPos+=4;this.iiPos+=2;this.ffPos+=1;this.fPos+=1;break;case 16:this.oPos+=4;this.iPos+=1;this.fPos+=2;this.bPos+=1;break;case 17:this.fPos+=2;break;case 18:this.fPos+=2;break;case 19:this.oPos+=1;break;case 20:this.oPos+=1}this.prev=ba.LINE_GRADIENT_STYLE;return this},readLineStyle:function(){switch(this.prev._hx_index){case 0:this.oPos+= +2;this.bPos+=2;break;case 1:this.iPos+=1;this.fPos+=1;break;case 2:this.oPos+=4;this.iiPos+=2;this.ffPos+=1;this.fPos+=1;break;case 3:this.oPos+=1;break;case 4:this.fPos+=6;break;case 5:this.fPos+=4;break;case 6:this.fPos+=3;break;case 7:this.fPos+=4;break;case 8:this.oPos+=3;break;case 9:this.fPos+=4;break;case 10:this.fPos+=5;this.oPos+=1;break;case 12:this.oPos+=4;break;case 14:this.oPos+=2;this.bPos+=2;break;case 15:this.oPos+=4;this.iiPos+=2;this.ffPos+=1;this.fPos+=1;break;case 16:this.oPos+= +4;this.iPos+=1;this.fPos+=2;this.bPos+=1;break;case 17:this.fPos+=2;break;case 18:this.fPos+=2;break;case 19:this.oPos+=1;break;case 20:this.oPos+=1}this.prev=ba.LINE_STYLE;return this},readLineTo:function(){switch(this.prev._hx_index){case 0:this.oPos+=2;this.bPos+=2;break;case 1:this.iPos+=1;this.fPos+=1;break;case 2:this.oPos+=4;this.iiPos+=2;this.ffPos+=1;this.fPos+=1;break;case 3:this.oPos+=1;break;case 4:this.fPos+=6;break;case 5:this.fPos+=4;break;case 6:this.fPos+=3;break;case 7:this.fPos+= +4;break;case 8:this.oPos+=3;break;case 9:this.fPos+=4;break;case 10:this.fPos+=5;this.oPos+=1;break;case 12:this.oPos+=4;break;case 14:this.oPos+=2;this.bPos+=2;break;case 15:this.oPos+=4;this.iiPos+=2;this.ffPos+=1;this.fPos+=1;break;case 16:this.oPos+=4;this.iPos+=1;this.fPos+=2;this.bPos+=1;break;case 17:this.fPos+=2;break;case 18:this.fPos+=2;break;case 19:this.oPos+=1;break;case 20:this.oPos+=1}this.prev=ba.LINE_TO;return this},readMoveTo:function(){switch(this.prev._hx_index){case 0:this.oPos+= +2;this.bPos+=2;break;case 1:this.iPos+=1;this.fPos+=1;break;case 2:this.oPos+=4;this.iiPos+=2;this.ffPos+=1;this.fPos+=1;break;case 3:this.oPos+=1;break;case 4:this.fPos+=6;break;case 5:this.fPos+=4;break;case 6:this.fPos+=3;break;case 7:this.fPos+=4;break;case 8:this.oPos+=3;break;case 9:this.fPos+=4;break;case 10:this.fPos+=5;this.oPos+=1;break;case 12:this.oPos+=4;break;case 14:this.oPos+=2;this.bPos+=2;break;case 15:this.oPos+=4;this.iiPos+=2;this.ffPos+=1;this.fPos+=1;break;case 16:this.oPos+= +4;this.iPos+=1;this.fPos+=2;this.bPos+=1;break;case 17:this.fPos+=2;break;case 18:this.fPos+=2;break;case 19:this.oPos+=1;break;case 20:this.oPos+=1}this.prev=ba.MOVE_TO;return this},readOverrideBlendMode:function(){switch(this.prev._hx_index){case 0:this.oPos+=2;this.bPos+=2;break;case 1:this.iPos+=1;this.fPos+=1;break;case 2:this.oPos+=4;this.iiPos+=2;this.ffPos+=1;this.fPos+=1;break;case 3:this.oPos+=1;break;case 4:this.fPos+=6;break;case 5:this.fPos+=4;break;case 6:this.fPos+=3;break;case 7:this.fPos+= +4;break;case 8:this.oPos+=3;break;case 9:this.fPos+=4;break;case 10:this.fPos+=5;this.oPos+=1;break;case 12:this.oPos+=4;break;case 14:this.oPos+=2;this.bPos+=2;break;case 15:this.oPos+=4;this.iiPos+=2;this.ffPos+=1;this.fPos+=1;break;case 16:this.oPos+=4;this.iPos+=1;this.fPos+=2;this.bPos+=1;break;case 17:this.fPos+=2;break;case 18:this.fPos+=2;break;case 19:this.oPos+=1;break;case 20:this.oPos+=1}this.prev=ba.OVERRIDE_BLEND_MODE;return this},readOverrideMatrix:function(){switch(this.prev._hx_index){case 0:this.oPos+= +2;this.bPos+=2;break;case 1:this.iPos+=1;this.fPos+=1;break;case 2:this.oPos+=4;this.iiPos+=2;this.ffPos+=1;this.fPos+=1;break;case 3:this.oPos+=1;break;case 4:this.fPos+=6;break;case 5:this.fPos+=4;break;case 6:this.fPos+=3;break;case 7:this.fPos+=4;break;case 8:this.oPos+=3;break;case 9:this.fPos+=4;break;case 10:this.fPos+=5;this.oPos+=1;break;case 12:this.oPos+=4;break;case 14:this.oPos+=2;this.bPos+=2;break;case 15:this.oPos+=4;this.iiPos+=2;this.ffPos+=1;this.fPos+=1;break;case 16:this.oPos+= +4;this.iPos+=1;this.fPos+=2;this.bPos+=1;break;case 17:this.fPos+=2;break;case 18:this.fPos+=2;break;case 19:this.oPos+=1;break;case 20:this.oPos+=1}this.prev=ba.OVERRIDE_MATRIX;return this},readWindingEvenOdd:function(){switch(this.prev._hx_index){case 0:this.oPos+=2;this.bPos+=2;break;case 1:this.iPos+=1;this.fPos+=1;break;case 2:this.oPos+=4;this.iiPos+=2;this.ffPos+=1;this.fPos+=1;break;case 3:this.oPos+=1;break;case 4:this.fPos+=6;break;case 5:this.fPos+=4;break;case 6:this.fPos+=3;break;case 7:this.fPos+= +4;break;case 8:this.oPos+=3;break;case 9:this.fPos+=4;break;case 10:this.fPos+=5;this.oPos+=1;break;case 12:this.oPos+=4;break;case 14:this.oPos+=2;this.bPos+=2;break;case 15:this.oPos+=4;this.iiPos+=2;this.ffPos+=1;this.fPos+=1;break;case 16:this.oPos+=4;this.iPos+=1;this.fPos+=2;this.bPos+=1;break;case 17:this.fPos+=2;break;case 18:this.fPos+=2;break;case 19:this.oPos+=1;break;case 20:this.oPos+=1}this.prev=ba.WINDING_EVEN_ODD;return this},readWindingNonZero:function(){switch(this.prev._hx_index){case 0:this.oPos+= +2;this.bPos+=2;break;case 1:this.iPos+=1;this.fPos+=1;break;case 2:this.oPos+=4;this.iiPos+=2;this.ffPos+=1;this.fPos+=1;break;case 3:this.oPos+=1;break;case 4:this.fPos+=6;break;case 5:this.fPos+=4;break;case 6:this.fPos+=3;break;case 7:this.fPos+=4;break;case 8:this.oPos+=3;break;case 9:this.fPos+=4;break;case 10:this.fPos+=5;this.oPos+=1;break;case 12:this.oPos+=4;break;case 14:this.oPos+=2;this.bPos+=2;break;case 15:this.oPos+=4;this.iiPos+=2;this.ffPos+=1;this.fPos+=1;break;case 16:this.oPos+= +4;this.iPos+=1;this.fPos+=2;this.bPos+=1;break;case 17:this.fPos+=2;break;case 18:this.fPos+=2;break;case 19:this.oPos+=1;break;case 20:this.oPos+=1}this.prev=ba.WINDING_NON_ZERO;return this},reset:function(){this.bPos=this.iPos=this.fPos=this.oPos=this.ffPos=this.iiPos=this.tsPos=0},skip:function(a){switch(this.prev._hx_index){case 0:this.oPos+=2;this.bPos+=2;break;case 1:this.iPos+=1;this.fPos+=1;break;case 2:this.oPos+=4;this.iiPos+=2;this.ffPos+=1;this.fPos+=1;break;case 3:this.oPos+=1;break; +case 4:this.fPos+=6;break;case 5:this.fPos+=4;break;case 6:this.fPos+=3;break;case 7:this.fPos+=4;break;case 8:this.oPos+=3;break;case 9:this.fPos+=4;break;case 10:this.fPos+=5;this.oPos+=1;break;case 12:this.oPos+=4;break;case 14:this.oPos+=2;this.bPos+=2;break;case 15:this.oPos+=4;this.iiPos+=2;this.ffPos+=1;this.fPos+=1;break;case 16:this.oPos+=4;this.iPos+=1;this.fPos+=2;this.bPos+=1;break;case 17:this.fPos+=2;break;case 18:this.fPos+=2;break;case 19:this.oPos+=1;break;case 20:this.oPos+=1}this.prev= +a},__class__:Vf};var ba=E["openfl.display._internal.DrawCommandType"]={__ename__:"openfl.display._internal.DrawCommandType",__constructs__:null,BEGIN_BITMAP_FILL:{_hx_name:"BEGIN_BITMAP_FILL",_hx_index:0,__enum__:"openfl.display._internal.DrawCommandType",toString:v},BEGIN_FILL:{_hx_name:"BEGIN_FILL",_hx_index:1,__enum__:"openfl.display._internal.DrawCommandType",toString:v},BEGIN_GRADIENT_FILL:{_hx_name:"BEGIN_GRADIENT_FILL",_hx_index:2,__enum__:"openfl.display._internal.DrawCommandType",toString:v}, +BEGIN_SHADER_FILL:{_hx_name:"BEGIN_SHADER_FILL",_hx_index:3,__enum__:"openfl.display._internal.DrawCommandType",toString:v},CUBIC_CURVE_TO:{_hx_name:"CUBIC_CURVE_TO",_hx_index:4,__enum__:"openfl.display._internal.DrawCommandType",toString:v},CURVE_TO:{_hx_name:"CURVE_TO",_hx_index:5,__enum__:"openfl.display._internal.DrawCommandType",toString:v},DRAW_CIRCLE:{_hx_name:"DRAW_CIRCLE",_hx_index:6,__enum__:"openfl.display._internal.DrawCommandType",toString:v},DRAW_ELLIPSE:{_hx_name:"DRAW_ELLIPSE",_hx_index:7, +__enum__:"openfl.display._internal.DrawCommandType",toString:v},DRAW_QUADS:{_hx_name:"DRAW_QUADS",_hx_index:8,__enum__:"openfl.display._internal.DrawCommandType",toString:v},DRAW_RECT:{_hx_name:"DRAW_RECT",_hx_index:9,__enum__:"openfl.display._internal.DrawCommandType",toString:v},DRAW_ROUND_RECT:{_hx_name:"DRAW_ROUND_RECT",_hx_index:10,__enum__:"openfl.display._internal.DrawCommandType",toString:v},DRAW_TILES:{_hx_name:"DRAW_TILES",_hx_index:11,__enum__:"openfl.display._internal.DrawCommandType", +toString:v},DRAW_TRIANGLES:{_hx_name:"DRAW_TRIANGLES",_hx_index:12,__enum__:"openfl.display._internal.DrawCommandType",toString:v},END_FILL:{_hx_name:"END_FILL",_hx_index:13,__enum__:"openfl.display._internal.DrawCommandType",toString:v},LINE_BITMAP_STYLE:{_hx_name:"LINE_BITMAP_STYLE",_hx_index:14,__enum__:"openfl.display._internal.DrawCommandType",toString:v},LINE_GRADIENT_STYLE:{_hx_name:"LINE_GRADIENT_STYLE",_hx_index:15,__enum__:"openfl.display._internal.DrawCommandType",toString:v},LINE_STYLE:{_hx_name:"LINE_STYLE", +_hx_index:16,__enum__:"openfl.display._internal.DrawCommandType",toString:v},LINE_TO:{_hx_name:"LINE_TO",_hx_index:17,__enum__:"openfl.display._internal.DrawCommandType",toString:v},MOVE_TO:{_hx_name:"MOVE_TO",_hx_index:18,__enum__:"openfl.display._internal.DrawCommandType",toString:v},OVERRIDE_BLEND_MODE:{_hx_name:"OVERRIDE_BLEND_MODE",_hx_index:19,__enum__:"openfl.display._internal.DrawCommandType",toString:v},OVERRIDE_MATRIX:{_hx_name:"OVERRIDE_MATRIX",_hx_index:20,__enum__:"openfl.display._internal.DrawCommandType", +toString:v},WINDING_EVEN_ODD:{_hx_name:"WINDING_EVEN_ODD",_hx_index:21,__enum__:"openfl.display._internal.DrawCommandType",toString:v},WINDING_NON_ZERO:{_hx_name:"WINDING_NON_ZERO",_hx_index:22,__enum__:"openfl.display._internal.DrawCommandType",toString:v},UNKNOWN:{_hx_name:"UNKNOWN",_hx_index:23,__enum__:"openfl.display._internal.DrawCommandType",toString:v}};ba.__constructs__=[ba.BEGIN_BITMAP_FILL,ba.BEGIN_FILL,ba.BEGIN_GRADIENT_FILL,ba.BEGIN_SHADER_FILL,ba.CUBIC_CURVE_TO,ba.CURVE_TO,ba.DRAW_CIRCLE, +ba.DRAW_ELLIPSE,ba.DRAW_QUADS,ba.DRAW_RECT,ba.DRAW_ROUND_RECT,ba.DRAW_TILES,ba.DRAW_TRIANGLES,ba.END_FILL,ba.LINE_BITMAP_STYLE,ba.LINE_GRADIENT_STYLE,ba.LINE_STYLE,ba.LINE_TO,ba.MOVE_TO,ba.OVERRIDE_BLEND_MODE,ba.OVERRIDE_MATRIX,ba.WINDING_EVEN_ODD,ba.WINDING_NON_ZERO,ba.UNKNOWN];var Ch=function(){};k["openfl.display._internal.FlashRenderer"]=Ch;Ch.__name__="openfl.display._internal.FlashRenderer";Ch.register=function(a){null==Ch.instances&&(Ch.instances=Lu.toObjectMap(null,!0),Da.get_current().stage.addEventListener("enterFrame", +Ch.render,!1,-2147483648));Ch.instances.set(a,!0)};Ch.render=function(a){for(a=Ch.instances.keys();a.hasNext();)a.next().__renderFlash()};var ep=function(){};k["openfl.display._internal.IDisplayObject"]=ep;ep.__name__="openfl.display._internal.IDisplayObject";ep.__isInterface__=!0;ep.prototype={__renderFlash:null,__class__:ep};var ei=function(){};k["openfl.display._internal.FlashTilemap"]=ei;ei.__name__="openfl.display._internal.FlashTilemap";ei.render=function(a){};ei.renderTileContainer=function(a, +b,c,d,e,f,h,l,t,m,k,p){};var Yh=function(a,b,c,d,e,f,h){null==h&&(h=.05);null==f&&(f=!1);Vi.call(this,a,b,c,d,e,f,h);this.p_perm=[];for(b=0;512>b;)c=b++,this.p_perm[c]=Yh.P[c&255];this.base_factor=.03125;this.setSeed(a)};k["openfl.display._internal.PerlinNoise"]=Yh;Yh.__name__="openfl.display._internal.PerlinNoise";Yh.__super__=Vi;Yh.prototype=u(Vi.prototype,{p_perm:null,x_offset:null,y_offset:null,z_offset:null,base_factor:null,fill:function(a,b,c,d){var e=a.width,f=a.height,h=this.octaves,l=this.octaves_frequencies, +t=this.octaves_persistences,m=1==(1&this.channels),k=2==(2&this.channels),p=4==(4&this.channels),n=0;m&&++n;k&&++n;p&&++n;var r=this.grayscale,q=this.stitch_threshold*e|0,v=this.stitch_threshold*f|0,u=b*this.base_factor+this.x_offset;c=c*this.base_factor+this.y_offset;d=d*this.base_factor+this.z_offset;for(var w=0;w<f;){var B=w++;b=u;for(var E=0,C=e;E<C;){for(var N=E++,z=0,J=0,D=0,A=0,F=h;A<F;){var Ha=A++,G=l[Ha];Ha=t[Ha];z+=this.noise(b*G,c*G,d*G)*Ha;r||(1<n&&(J+=this.noise((b+1)*G,(c+1)*G,d*G)* +Ha),2<n&&(D+=this.noise((b+2)*G,(c+2)*G,d*G)*Ha))}A=0;r?A=this.color(z,z,z):m&&k&&p?A=this.color(z,J,D):m&&k?A=this.color(z,J,null):m&&p?A=this.color(z,null,J):k&&p?A=this.color(null,z,J):m?A=this.color(z,null,null):k?A=this.color(null,z,null):p&&(A=this.color(null,null,z));this.stitch&&(A=this.stitching(a,A,N,B,q,v,e,f));a.setPixel32(N,B,A);b+=this.base_factor}c+=this.base_factor}},noise:function(a,b,c){var d=a-a%1,e=b-b%1,f=c-c%1;a-=d;b-=e;c-=f;var h=(d|0)&255,l=(e|0)&255,t=(f|0)&255;f=this.fade(a); +e=this.fade(b);d=this.fade(c);var m=this.p_perm[h]+l,k=this.p_perm[m]+t;m=this.p_perm[m+1]+t;l=this.p_perm[h+1]+l;h=this.p_perm[l]+t;var p=this.p_perm[l+1]+t,n=a-1,r=b-1,q=c-1,v=this.p_perm[p+1]&15;t=(0==(v&1)?8>v?n:r:8>v?-n:-r)+(0==(v&2)?4>v?r:12==v?n:q:4>v?-r:14==v?-n:-q);v=this.p_perm[m+1]&15;l=(0==(v&1)?8>v?a:r:8>v?-a:-r)+(0==(v&2)?4>v?r:12==v?a:q:4>v?-r:14==v?-a:-q);v=this.p_perm[h+1]&15;var u=(0==(v&1)?8>v?n:b:8>v?-n:-b)+(0==(v&2)?4>v?b:12==v?n:q:4>v?-b:14==v?-n:-q);v=this.p_perm[k+1]&15;q= +(0==(v&1)?8>v?a:b:8>v?-a:-b)+(0==(v&2)?4>v?b:12==v?a:q:4>v?-b:14==v?-a:-q);v=this.p_perm[p]&15;p=(0==(v&1)?8>v?n:r:8>v?-n:-r)+(0==(v&2)?4>v?r:12==v?n:c:4>v?-r:14==v?-n:-c);v=this.p_perm[m]&15;m=(0==(v&1)?8>v?a:r:8>v?-a:-r)+(0==(v&2)?4>v?r:12==v?a:c:4>v?-r:14==v?-a:-c);v=this.p_perm[h]&15;h=(0==(v&1)?8>v?n:b:8>v?-n:-b)+(0==(v&2)?4>v?b:12==v?n:c:4>v?-b:14==v?-n:-c);v=this.p_perm[k]&15;a=(0==(v&1)?8>v?a:b:8>v?-a:-b)+(0==(v&2)?4>v?b:12==v?a:c:4>v?-b:14==v?-a:-c);q+=f*(u-q);a+=f*(h-a);a+=e*(m+f*(p-m)- +a);return a+d*(q+e*(l+f*(t-l)-q)-a)},setSeed:function(a){this.x_offset=a=16807*a%2147483647|0;this.y_offset=a=16807*a%2147483647|0;this.z_offset=16807*a%2147483647|0},__class__:Yh});var Qg=function(a,b,c,d,e,f,h){null==h&&(h=!1);null==f&&(f=!1);null==e&&(e=!1);null==d&&(d=0);null==c&&(c=2);null==b&&(b=5);null==a&&(a=0);this.wrap=a;this.filter=b;this.mipfilter=c;this.lodBias=d;this.ignoreSampler=e;this.centroid=f;this.textureAlpha=h};k["openfl.display._internal.SamplerState"]=Qg;Qg.__name__="openfl.display._internal.SamplerState"; +Qg.prototype={centroid:null,filter:null,ignoreSampler:null,lodBias:null,mipfilter:null,mipmapGenerated:null,textureAlpha:null,wrap:null,clone:function(){var a=new Qg(this.wrap,this.filter,this.mipfilter,this.lodBias,this.ignoreSampler,this.centroid,this.textureAlpha);a.mipmapGenerated=this.mipmapGenerated;return a},copyFrom:function(a){null==a||a.ignoreSampler||(this.wrap=a.wrap,this.filter=a.filter,this.mipfilter=a.mipfilter,this.lodBias=a.lodBias,this.centroid=a.centroid,this.textureAlpha=a.textureAlpha)}, +equals:function(a){return null==a?!1:this.wrap==a.wrap&&this.filter==a.filter&&this.mipfilter==a.mipfilter&&this.lodBias==a.lodBias?this.textureAlpha==a.textureAlpha:!1},__class__:Qg};var Nm=function(){this.inputRefs=[];this.inputFilter=[];this.inputMipFilter=[];this.inputs=[];this.inputWrap=[];this.overrideIntNames=[];this.overrideIntValues=[];this.overrideFloatNames=[];this.overrideFloatValues=[];this.overrideBoolNames=[];this.overrideBoolValues=[];this.paramLengths=[];this.paramPositions=[];this.paramRefs_Bool= +[];this.paramRefs_Float=[];this.paramRefs_Int=[];this.paramTypes=[]};k["openfl.display._internal.ShaderBuffer"]=Nm;Nm.__name__="openfl.display._internal.ShaderBuffer";Nm.prototype={inputCount:null,inputRefs:null,inputFilter:null,inputMipFilter:null,inputs:null,inputWrap:null,overrideBoolCount:null,overrideBoolNames:null,overrideBoolValues:null,overrideFloatCount:null,overrideFloatNames:null,overrideFloatValues:null,overrideIntCount:null,overrideIntNames:null,overrideIntValues:null,paramBoolCount:null, +paramCount:null,paramData:null,paramDataBuffer:null,paramDataLength:null,paramFloatCount:null,paramIntCount:null,paramLengths:null,paramPositions:null,paramRefs_Bool:null,paramRefs_Float:null,paramRefs_Int:null,paramTypes:null,shader:null,addBoolOverride:function(a,b){this.overrideBoolNames[this.overrideBoolCount]=a;this.overrideBoolValues[this.overrideBoolCount]=b;this.overrideBoolCount++},addFloatOverride:function(a,b){this.overrideFloatNames[this.overrideFloatCount]=a;this.overrideFloatValues[this.overrideFloatCount]= +b;this.overrideFloatCount++},addIntOverride:function(a,b){this.overrideIntNames[this.overrideIntCount]=a;this.overrideIntValues[this.overrideIntCount]=b;this.overrideIntCount++},clearOverride:function(){this.overrideBoolCount=this.overrideFloatCount=this.overrideIntCount=0},update:function(a){this.paramIntCount=this.paramFloatCount=this.paramDataLength=this.paramCount=this.paramBoolCount=this.overrideBoolCount=this.overrideFloatCount=this.overrideIntCount=this.inputCount=0;this.shader=null;if(null!= +a){a.__init();this.inputCount=a.__inputBitmapData.length;for(var b,c=0,d=this.inputCount;c<d;){var e=c++;b=a.__inputBitmapData[e];this.inputs[e]=b.input;this.inputFilter[e]=b.filter;this.inputMipFilter[e]=b.mipFilter;this.inputRefs[e]=b;this.inputWrap[e]=b.wrap}b=a.__paramBool.length;var f=a.__paramFloat.length,h=a.__paramInt.length;this.paramCount=b+f+h;this.paramBoolCount=b;this.paramFloatCount=f;this.paramIntCount=h;var l=0;c=0;for(d=b;c<d;){e=c++;var t=a.__paramBool[e];this.paramPositions[l]= +this.paramDataLength;var m=null!=t.value?t.value.length:0;this.paramLengths[l]=m;this.paramDataLength+=m;this.paramTypes[l]=0;this.paramRefs_Bool[e]=t;++l}c=0;for(d=f;c<d;)e=c++,t=a.__paramFloat[e],this.paramPositions[l]=this.paramDataLength,m=null!=t.value?t.value.length:0,this.paramLengths[l]=m,this.paramDataLength+=m,this.paramTypes[l]=1,this.paramRefs_Float[e]=t,++l;c=0;for(d=h;c<d;)e=c++,t=a.__paramInt[e],this.paramPositions[l]=this.paramDataLength,m=null!=t.value?t.value.length:0,this.paramLengths[l]= +m,this.paramDataLength+=m,this.paramTypes[l]=2,this.paramRefs_Int[e]=t,++l;if(0<this.paramDataLength)if(null==this.paramData){c=this.paramDataLength;var k=t=l=h=d=null;this.paramData=c=null!=c?new Float32Array(c):null!=d?new Float32Array(d):null!=h?new Float32Array(h.__array):null!=l?new Float32Array(l):null!=t?null==k?new Float32Array(t,0):new Float32Array(t,0,k):null}else this.paramDataLength>this.paramData.length&&(c=this.paramDataLength,k=t=l=h=d=null,c=null!=c?new Float32Array(c):null!=d?new Float32Array(d): +null!=h?new Float32Array(h.__array):null!=l?new Float32Array(l):null!=t?null==k?new Float32Array(t,0):new Float32Array(t,0,k):null,c.set(this.paramData),this.paramData=c);c=k=t=l=h=0;for(d=this.paramCount;c<d;)if(e=c++,m=this.paramLengths[e],e<b){e=this.paramRefs_Bool[h];++h;for(var p=0;p<m;){var n=p++;this.paramData[k]=e.value[n]?1:0;++k}}else if(e<b+f)for(e=this.paramRefs_Float[l],++l,p=0;p<m;)n=p++,this.paramData[k]=e.value[n],++k;else for(e=this.paramRefs_Int[t],++t,p=0;p<m;)n=p++,this.paramData[k]= +e.value[n],++k;this.shader=a}},__class__:Nm};var Sb=function(a,b,c){this.profile=3;this.driverInfo="OpenGL (Direct blitting)";this.backBufferHeight=this.backBufferWidth=0;fb.call(this);this.__stage=a;this.__contextState=b;this.__stage3D=c;this.__context=a.window.context;this.gl=this.__context.webgl;null==this.__contextState&&(this.__contextState=new ak);this.__state=new ak;var d;this.__vertexConstants=a=new Float32Array(512);this.__fragmentConstants=a=new Float32Array(512);var e=null;a=[1,1,1,1]; +var f=d=c=b=null;this.__positionScale=a=null!=e?new Float32Array(e):null!=a?new Float32Array(a):null!=b?new Float32Array(b.__array):null!=c?new Float32Array(c):null!=d?null==f?new Float32Array(d,0):new Float32Array(d,0,f):null;this.__programs=new V;-1==Sb.__glMaxViewportDims&&(Sb.__glMaxViewportDims=this.gl.getParameter(this.gl.MAX_VIEWPORT_DIMS));this.maxBackBufferHeight=this.maxBackBufferWidth=Sb.__glMaxViewportDims;-1==Sb.__glMaxTextureMaxAnisotropy&&(a=this.gl.getExtension("EXT_texture_filter_anisotropic"), +null!=a&&Object.prototype.hasOwnProperty.call(a,"MAX_TEXTURE_MAX_ANISOTROPY_EXT")||(a=this.gl.getExtension("MOZ_EXT_texture_filter_anisotropic")),null!=a&&Object.prototype.hasOwnProperty.call(a,"MAX_TEXTURE_MAX_ANISOTROPY_EXT")||(a=this.gl.getExtension("WEBKIT_EXT_texture_filter_anisotropic")),null!=a?(Sb.__glTextureMaxAnisotropy=a.TEXTURE_MAX_ANISOTROPY_EXT,Sb.__glMaxTextureMaxAnisotropy=this.gl.getParameter(a.MAX_TEXTURE_MAX_ANISOTROPY_EXT)):(Sb.__glTextureMaxAnisotropy=0,Sb.__glMaxTextureMaxAnisotropy= +0));-1==Sb.__glDepthStencil&&(Sb.__glDepthStencil=this.gl.DEPTH_STENCIL);-1==Sb.__glMemoryTotalAvailable&&(a=this.gl.getExtension("NVX_gpu_memory_info"),null!=a&&(Sb.__glMemoryTotalAvailable=a.GPU_MEMORY_INFO_DEDICATED_VIDMEM_NVX,Sb.__glMemoryCurrentAvailable=a.GPU_MEMORY_INFO_CURRENT_AVAILABLE_VIDMEM_NVX));null==Sb.__driverInfo&&(a=this.gl.getParameter(this.gl.VENDOR),b=this.gl.getParameter(this.gl.VERSION),c=this.gl.getParameter(this.gl.RENDERER),d=this.gl.getParameter(this.gl.SHADING_LANGUAGE_VERSION), +Sb.__driverInfo="OpenGL Vendor="+a+" Version="+b+" Renderer="+c+" GLSL="+d);this.driverInfo=Sb.__driverInfo;this.__quadIndexBufferElements=16383;e=this.__quadIndexBufferCount=6*this.__quadIndexBufferElements;f=d=c=b=a=null;a=null!=e?new Uint16Array(e):null!=a?new Uint16Array(a):null!=b?new Uint16Array(b.__array):null!=c?new Uint16Array(c):null!=d?null==f?new Uint16Array(d,0):new Uint16Array(d,0,f):null;d=c=b=0;for(f=this.__quadIndexBufferElements;d<f;)d++,a[b]=c,a[b+1]=c+1,a[b+2]=c+2,a[b+3]=c+2,a[b+ +4]=c+1,a[b+5]=c+3,b+=6,c+=4;this.__quadIndexBuffer=this.createIndexBuffer(this.__quadIndexBufferCount);this.__quadIndexBuffer.uploadFromTypedArray(a)};k["openfl.display3D.Context3D"]=Sb;Sb.__name__="openfl.display3D.Context3D";Sb.__super__=fb;Sb.prototype=u(fb.prototype,{backBufferHeight:null,backBufferWidth:null,driverInfo:null,maxBackBufferHeight:null,maxBackBufferWidth:null,profile:null,gl:null,__backBufferAntiAlias:null,__backBufferTexture:null,__backBufferWantsBestResolution:null,__backBufferWantsBestResolutionOnBrowserZoom:null, +__cleared:null,__context:null,__contextState:null,__renderStage3DProgram:null,__enableErrorChecking:null,__fragmentConstants:null,__frontBufferTexture:null,__positionScale:null,__present:null,__programs:null,__quadIndexBuffer:null,__quadIndexBufferCount:null,__quadIndexBufferElements:null,__stage:null,__stage3D:null,__state:null,__vertexConstants:null,clear:function(a,b,c,d,e,f,h){null==h&&(h=7);null==f&&(f=0);null==e&&(e=1);null==d&&(d=1);null==c&&(c=0);null==b&&(b=0);null==a&&(a=0);this.__flushGLFramebuffer(); +this.__flushGLViewport();var g=0;if(0!=(h&1)){null==this.__state.renderToTexture&&(this.__stage.context3D!=this||this.__stage.__renderer.__cleared||(this.__stage.__renderer.__cleared=!0),this.__cleared=!0);g|=this.gl.COLOR_BUFFER_BIT;if(1!=this.__contextState.colorMaskRed||1!=this.__contextState.colorMaskGreen||1!=this.__contextState.colorMaskBlue||1!=this.__contextState.colorMaskAlpha)this.gl.colorMask(!0,!0,!0,!0),this.__contextState.colorMaskRed=!0,this.__contextState.colorMaskGreen=!0,this.__contextState.colorMaskBlue= +!0,this.__contextState.colorMaskAlpha=!0;this.gl.clearColor(a,b,c,d)}0!=(h&2)&&(g|=this.gl.DEPTH_BUFFER_BIT,1!=this.__contextState.depthMask&&(this.gl.depthMask(!0),this.__contextState.depthMask=!0),this.gl.clearDepth(e));0!=(h&4)&&(g|=this.gl.STENCIL_BUFFER_BIT,255!=this.__contextState.stencilWriteMask&&(this.gl.stencilMask(255),this.__contextState.stencilWriteMask=255),this.gl.clearStencil(f),this.__contextState.stencilWriteMask=255);0!=g&&(this.__setGLScissorTest(!1),this.gl.clear(g))},configureBackBuffer:function(a, +b,c,d,e,f){null==f&&(f=!1);null==e&&(e=!1);null==d&&(d=!0);e&&(a=a*this.__stage.window.__scale|0,b=b*this.__stage.window.__scale|0);if(null==this.__stage3D)this.backBufferWidth=a,this.backBufferHeight=b,this.__backBufferAntiAlias=c,this.__state.backBufferEnableDepthAndStencil=d,this.__backBufferWantsBestResolution=e,this.__backBufferWantsBestResolutionOnBrowserZoom=f;else{if(null==this.__backBufferTexture||this.backBufferWidth!=a||this.backBufferHeight!=b){null!=this.__backBufferTexture&&this.__backBufferTexture.dispose(); +null!=this.__frontBufferTexture&&this.__frontBufferTexture.dispose();this.__backBufferTexture=this.createRectangleTexture(a,b,1,!0);this.__frontBufferTexture=this.createRectangleTexture(a,b,1,!0);null==this.__stage3D.__vertexBuffer&&(this.__stage3D.__vertexBuffer=this.createVertexBuffer(4,5));var g=e?a:a*this.__stage.window.__scale|0,h=e?b:b*this.__stage.window.__scale|0;g=ub.toFloatVector(null,null,null,[g,h,0,1,1,0,h,0,0,1,g,0,0,1,0,0,0,0,0,0]);this.__stage3D.__vertexBuffer.uploadFromVector(g,0, +20);null==this.__stage3D.__indexBuffer&&(this.__stage3D.__indexBuffer=this.createIndexBuffer(6),g=ub.toIntVector(null,null,null,[0,1,2,2,1,3]),this.__stage3D.__indexBuffer.uploadFromVector(g,0,6))}this.backBufferWidth=a;this.backBufferHeight=b;this.__backBufferAntiAlias=c;this.__state.backBufferEnableDepthAndStencil=d;this.__backBufferWantsBestResolution=e;this.__backBufferWantsBestResolutionOnBrowserZoom=f;this.__state.__primaryGLFramebuffer=this.__backBufferTexture.__getGLFramebuffer(d,c,0);this.__frontBufferTexture.__getGLFramebuffer(d, +c,0)}},createCubeTexture:function(a,b,c,d){null==d&&(d=0);return new Wi(this,a,b,c,d)},createIndexBuffer:function(a,b){null==b&&(b=1);return new fp(this,a,b)},createProgram:function(a){null==a&&(a=0);return new gp(this,a)},createRectangleTexture:function(a,b,c,d){return new bk(this,a,b,ck.toString(c),d)},createTexture:function(a,b,c,d,e){null==e&&(e=0);return new fi(this,a,b,c,d,e)},createVertexBuffer:function(a,b,c){null==c&&(c=1);return new hp(this,a,b,bu.toString(c))},createVideoTexture:function(){return new fn(this)}, +dispose:function(a){this.gl=null;this.__dispose()},drawToBitmapData:function(a,b,c){if(null!=a)if(b=null!=b?b.__toLimeRectangle():new Ad(0,0,this.backBufferWidth,this.backBufferHeight),c=null!=c?c.__toLimeVector2():new Td,this.__stage.context3D==this){if(null!=this.__stage.window){if(null!=this.__stage3D){var d=-this.__stage3D.get_x()|0,e=-this.__stage3D.get_y()|0;c.x=d;c.y=e}e=this.__stage.window.readPixels();a.image.copyPixels(e,b,c)}}else if(null!=this.__backBufferTexture){d=this.__state.renderToTexture; +this.setRenderToBackBuffer();this.__flushGLFramebuffer();this.__flushGLViewport();e=this.backBufferWidth*this.backBufferHeight*4;var f=e=null!=e?new Uint8Array(e):null;e=this.gl;e.readPixels(0,0,this.backBufferWidth,this.backBufferHeight,this.__backBufferTexture.__format,this.gl.UNSIGNED_BYTE,f);e=new Db(new Qf(f,this.backBufferWidth,this.backBufferHeight,32,2));a.image.copyPixels(e,b,c);null!=d&&this.setRenderToTexture(d,this.__state.renderToTextureDepthStencil,this.__state.renderToTextureAntiAlias, +this.__state.renderToTextureSurfaceSelector)}},drawTriangles:function(a,b,c){null==c&&(c=-1);null==b&&(b=0);null==this.__state.renderToTexture&&(this.__stage.context3D!=this||this.__stage.__renderer.__cleared?this.__cleared||this.clear(0,0,0,0,1,0,1):this.__stage.__renderer.__clear());this.__flushGL();null!=this.__state.program&&this.__state.program.__flush();c=-1==c?a.__numIndices:3*c;this.__bindGLElementArrayBuffer(a.__id);this.gl.drawElements(this.gl.TRIANGLES,c,this.gl.UNSIGNED_SHORT,2*b)},present:function(){this.setRenderToBackBuffer(); +if(null!=this.__stage3D&&null!=this.__backBufferTexture){this.__cleared||this.clear(0,0,0,0,1,0,1);var a=this.__backBufferTexture;this.__backBufferTexture=this.__frontBufferTexture;this.__frontBufferTexture=a;this.__state.__primaryGLFramebuffer=this.__backBufferTexture.__getGLFramebuffer(this.__state.backBufferEnableDepthAndStencil,this.__backBufferAntiAlias,0);this.__cleared=!1}this.__present=!0},setBlendFactors:function(a,b){this.setBlendFactorsSeparate(a,b,a,b)},setBlendFactorsSeparate:function(a, +b,c,d){this.__state.blendSourceRGBFactor=a;this.__state.blendDestinationRGBFactor=b;this.__state.blendSourceAlphaFactor=c;this.__state.blendDestinationAlphaFactor=d;this.__setGLBlendEquation(this.gl.FUNC_ADD)},setColorMask:function(a,b,c,d){this.__state.colorMaskRed=a;this.__state.colorMaskGreen=b;this.__state.colorMaskBlue=c;this.__state.colorMaskAlpha=d},setCulling:function(a){this.__state.culling=a},setDepthTest:function(a,b){this.__state.depthMask=a;this.__state.depthCompareMode=b},setProgram:function(a){this.__state.program= +a;this.__state.shader=null;if(null!=a)for(var b=0,c=a.__samplerStates.length;b<c;){var d=b++;null==this.__state.samplerStates[d]?this.__state.samplerStates[d]=a.__samplerStates[d].clone():this.__state.samplerStates[d].copyFrom(a.__samplerStates[d])}},setProgramConstantsFromByteArray:function(a,b,c,d,e){if(0!=c&&null!=this.__state.program&&(null==this.__state.program||1!=this.__state.program.__format)){-1==c&&(c=(yb.get_length(d)>>>2)-e);var f=(a=1==a)?this.__vertexConstants:this.__fragmentConstants; +d=yb.toBytes(d);var h=0;null==h&&(h=0);d=null==h?new Float32Array(d.b.bufferValue):new Float32Array(d.b.bufferValue,h);h=4*b;e=ca.toFloat(e)/ca.toFloat(4)|0;for(var l=0,k=4*c;l<k;){var m=l++;f[h+m]=d[e+m]}null!=this.__state.program&&this.__state.program.__markDirty(a,b,c)}},setProgramConstantsFromMatrix:function(a,b,c,d){null==d&&(d=!1);if(null!=this.__state.program&&1==this.__state.program.__format)this.__flushGLProgram(),a=new Float32Array(16),a[0]=c.rawData.get(0),a[1]=c.rawData.get(1),a[2]=c.rawData.get(2), +a[3]=c.rawData.get(3),a[4]=c.rawData.get(4),a[5]=c.rawData.get(5),a[6]=c.rawData.get(6),a[7]=c.rawData.get(7),a[8]=c.rawData.get(8),a[9]=c.rawData.get(9),a[10]=c.rawData.get(10),a[11]=c.rawData.get(11),a[12]=c.rawData.get(12),a[13]=c.rawData.get(13),a[14]=c.rawData.get(14),a[15]=c.rawData.get(15),Yb.uniformMatrix4fv(this.gl,b,d,a);else{var e=(a=1==a)?this.__vertexConstants:this.__fragmentConstants;c=c.rawData;var f=4*b;d?(e[f++]=c.get(0),e[f++]=c.get(4),e[f++]=c.get(8),e[f++]=c.get(12),e[f++]=c.get(1), +e[f++]=c.get(5),e[f++]=c.get(9),e[f++]=c.get(13),e[f++]=c.get(2),e[f++]=c.get(6),e[f++]=c.get(10),e[f++]=c.get(14),e[f++]=c.get(3),e[f++]=c.get(7),e[f++]=c.get(11)):(e[f++]=c.get(0),e[f++]=c.get(1),e[f++]=c.get(2),e[f++]=c.get(3),e[f++]=c.get(4),e[f++]=c.get(5),e[f++]=c.get(6),e[f++]=c.get(7),e[f++]=c.get(8),e[f++]=c.get(9),e[f++]=c.get(10),e[f++]=c.get(11),e[f++]=c.get(12),e[f++]=c.get(13),e[f++]=c.get(14));e[f++]=c.get(15);null!=this.__state.program&&this.__state.program.__markDirty(a,b,4)}},setProgramConstantsFromVector:function(a, +b,c,d){null==d&&(d=-1);if(0!=d&&(null==this.__state.program||1!=this.__state.program.__format)){-1==d&&(d=c.get_length()>>2);for(var e=(a=1==a)?this.__vertexConstants:this.__fragmentConstants,f=0,h=4*b,l=0,k=d;l<k;)l++,e[h++]=c.get(f++),e[h++]=c.get(f++),e[h++]=c.get(f++),e[h++]=c.get(f++);null!=this.__state.program&&this.__state.program.__markDirty(a,b,d)}},setRenderToBackBuffer:function(){this.__state.renderToTexture=null},setRenderToTexture:function(a,b,c,d){null==d&&(d=0);null==c&&(c=0);null== +b&&(b=!1);this.__state.renderToTexture=a;this.__state.renderToTextureDepthStencil=b;this.__state.renderToTextureAntiAlias=c;this.__state.renderToTextureSurfaceSelector=d},setSamplerStateAt:function(a,b,c,d){null==this.__state.samplerStates[a]&&(this.__state.samplerStates[a]=new Qg);a=this.__state.samplerStates[a];a.wrap=b;a.filter=c;a.mipfilter=d},setScissorRectangle:function(a){null!=a?(this.__state.scissorEnabled=!0,this.__state.scissorRectangle.copyFrom(a)):this.__state.scissorEnabled=!1},setStencilActions:function(a, +b,c,d,e){null==e&&(e=5);null==d&&(d=5);null==c&&(c=5);null==b&&(b=0);null==a&&(a=2);this.__state.stencilTriangleFace=a;this.__state.stencilCompareMode=b;this.__state.stencilPass=c;this.__state.stencilDepthFail=d;this.__state.stencilFail=e},setStencilReferenceValue:function(a,b,c){null==c&&(c=255);null==b&&(b=255);this.__state.stencilReferenceValue=a;this.__state.stencilReadMask=b;this.__state.stencilWriteMask=c},setTextureAt:function(a,b){this.__state.textures[a]=b},setVertexBufferAt:function(a,b, +c,d){null==d&&(d=4);null==c&&(c=0);if(!(0>a))if(null==b)this.gl.disableVertexAttribArray(a),this.__bindGLArrayBuffer(null);else switch(this.__bindGLArrayBuffer(b.__id),this.gl.enableVertexAttribArray(a),c*=4,d){case 0:this.gl.vertexAttribPointer(a,4,this.gl.UNSIGNED_BYTE,!0,b.__stride,c);break;case 1:this.gl.vertexAttribPointer(a,1,this.gl.FLOAT,!1,b.__stride,c);break;case 2:this.gl.vertexAttribPointer(a,2,this.gl.FLOAT,!1,b.__stride,c);break;case 3:this.gl.vertexAttribPointer(a,3,this.gl.FLOAT,!1, +b.__stride,c);break;case 4:this.gl.vertexAttribPointer(a,4,this.gl.FLOAT,!1,b.__stride,c);break;default:throw new dd;}},__bindGLArrayBuffer:function(a){this.__contextState.__currentGLArrayBuffer!=a&&(this.gl.bindBuffer(this.gl.ARRAY_BUFFER,a),this.__contextState.__currentGLArrayBuffer=a)},__bindGLElementArrayBuffer:function(a){this.__contextState.__currentGLElementArrayBuffer!=a&&(this.gl.bindBuffer(this.gl.ELEMENT_ARRAY_BUFFER,a),this.__contextState.__currentGLElementArrayBuffer=a)},__bindGLFramebuffer:function(a){this.__contextState.__currentGLFramebuffer!= +a&&(this.gl.bindFramebuffer(this.gl.FRAMEBUFFER,a),this.__contextState.__currentGLFramebuffer=a)},__bindGLTexture2D:function(a){this.gl.bindTexture(this.gl.TEXTURE_2D,a);this.__contextState.__currentGLTexture2D=a},__bindGLTextureCubeMap:function(a){this.gl.bindTexture(this.gl.TEXTURE_CUBE_MAP,a);this.__contextState.__currentGLTextureCubeMap=a},__dispose:function(){this.driverInfo+=" (Disposed)";null!=this.__stage3D&&(this.__stage3D.__indexBuffer=null,this.__stage3D.__vertexBuffer=null,this.__stage3D= +this.__stage3D.context3D=null);this.__positionScale=this.__frontBufferTexture=this.__fragmentConstants=this.__renderStage3DProgram=this.__context=this.__backBufferTexture=null;this.__present=!1;this.__vertexConstants=this.__stage=this.__quadIndexBuffer=null},__drawTriangles:function(a,b){null==a&&(a=0);null==this.__state.renderToTexture&&(this.__stage.context3D!=this||this.__stage.__renderer.__cleared?this.__cleared||this.clear(0,0,0,0,1,0,1):this.__stage.__renderer.__clear());this.__flushGL();null!= +this.__state.program&&this.__state.program.__flush();this.gl.drawArrays(this.gl.TRIANGLES,a,b)},__flushGL:function(){this.__flushGLProgram();this.__flushGLFramebuffer();this.__flushGLViewport();this.__flushGLBlend();if(this.__contextState.colorMaskRed!=this.__state.colorMaskRed||this.__contextState.colorMaskGreen!=this.__state.colorMaskGreen||this.__contextState.colorMaskBlue!=this.__state.colorMaskBlue||this.__contextState.colorMaskAlpha!=this.__state.colorMaskAlpha)this.gl.colorMask(this.__state.colorMaskRed, +this.__state.colorMaskGreen,this.__state.colorMaskBlue,this.__state.colorMaskAlpha),this.__contextState.colorMaskRed=this.__state.colorMaskRed,this.__contextState.colorMaskGreen=this.__state.colorMaskGreen,this.__contextState.colorMaskBlue=this.__state.colorMaskBlue,this.__contextState.colorMaskAlpha=this.__state.colorMaskAlpha;this.__flushGLCulling();this.__flushGLDepth();this.__flushGLScissor();this.__flushGLStencil();this.__flushGLTextures()},__flushGLBlend:function(){if(this.__contextState.blendDestinationRGBFactor!= +this.__state.blendDestinationRGBFactor||this.__contextState.blendSourceRGBFactor!=this.__state.blendSourceRGBFactor||this.__contextState.blendDestinationAlphaFactor!=this.__state.blendDestinationAlphaFactor||this.__contextState.blendSourceAlphaFactor!=this.__state.blendSourceAlphaFactor)this.__setGLBlend(!0),this.__state.blendDestinationRGBFactor==this.__state.blendDestinationAlphaFactor&&this.__state.blendSourceRGBFactor==this.__state.blendSourceAlphaFactor?this.gl.blendFunc(this.__getGLBlend(this.__state.blendSourceRGBFactor), +this.__getGLBlend(this.__state.blendDestinationRGBFactor)):this.gl.blendFuncSeparate(this.__getGLBlend(this.__state.blendSourceRGBFactor),this.__getGLBlend(this.__state.blendDestinationRGBFactor),this.__getGLBlend(this.__state.blendSourceAlphaFactor),this.__getGLBlend(this.__state.blendDestinationAlphaFactor)),this.__contextState.blendDestinationRGBFactor=this.__state.blendDestinationRGBFactor,this.__contextState.blendSourceRGBFactor=this.__state.blendSourceRGBFactor,this.__contextState.blendDestinationAlphaFactor= +this.__state.blendDestinationAlphaFactor,this.__contextState.blendSourceAlphaFactor=this.__state.blendSourceAlphaFactor},__flushGLColor:function(){if(this.__contextState.colorMaskRed!=this.__state.colorMaskRed||this.__contextState.colorMaskGreen!=this.__state.colorMaskGreen||this.__contextState.colorMaskBlue!=this.__state.colorMaskBlue||this.__contextState.colorMaskAlpha!=this.__state.colorMaskAlpha)this.gl.colorMask(this.__state.colorMaskRed,this.__state.colorMaskGreen,this.__state.colorMaskBlue, +this.__state.colorMaskAlpha),this.__contextState.colorMaskRed=this.__state.colorMaskRed,this.__contextState.colorMaskGreen=this.__state.colorMaskGreen,this.__contextState.colorMaskBlue=this.__state.colorMaskBlue,this.__contextState.colorMaskAlpha=this.__state.colorMaskAlpha},__flushGLCulling:function(){if(this.__contextState.culling!=this.__state.culling){if(3==this.__state.culling)this.__setGLCullFace(!1);else switch(this.__setGLCullFace(!0),this.__state.culling){case 0:this.gl.cullFace(this.gl.BACK); +break;case 1:this.gl.cullFace(this.gl.FRONT);break;case 2:this.gl.cullFace(this.gl.FRONT_AND_BACK);break;case 3:break;default:throw new dd;}this.__contextState.culling=this.__state.culling}},__flushGLDepth:function(){var a=this.__state.depthMask&&(null!=this.__state.renderToTexture?this.__state.renderToTextureDepthStencil:this.__state.backBufferEnableDepthAndStencil);this.__contextState.depthMask!=a&&(this.gl.depthMask(a),this.__contextState.depthMask=a);if(this.__contextState.depthCompareMode!=this.__state.depthCompareMode){switch(this.__state.depthCompareMode){case 0:this.gl.depthFunc(this.gl.ALWAYS); +break;case 1:this.gl.depthFunc(this.gl.EQUAL);break;case 2:this.gl.depthFunc(this.gl.GREATER);break;case 3:this.gl.depthFunc(this.gl.GEQUAL);break;case 4:this.gl.depthFunc(this.gl.LESS);break;case 5:this.gl.depthFunc(this.gl.LEQUAL);break;case 6:this.gl.depthFunc(this.gl.NEVER);break;case 7:this.gl.depthFunc(this.gl.NOTEQUAL);break;default:throw new dd;}this.__contextState.depthCompareMode=this.__state.depthCompareMode}},__flushGLFramebuffer:function(){if(null!=this.__state.renderToTexture){if(this.__contextState.renderToTexture!= +this.__state.renderToTexture||this.__contextState.renderToTextureSurfaceSelector!=this.__state.renderToTextureSurfaceSelector){var a=this.__state.renderToTexture.__getGLFramebuffer(this.__state.renderToTextureDepthStencil,this.__state.renderToTextureAntiAlias,this.__state.renderToTextureSurfaceSelector);this.__bindGLFramebuffer(a);this.__contextState.renderToTexture=this.__state.renderToTexture;this.__contextState.renderToTextureAntiAlias=this.__state.renderToTextureAntiAlias;this.__contextState.renderToTextureDepthStencil= +this.__state.renderToTextureDepthStencil;this.__contextState.renderToTextureSurfaceSelector=this.__state.renderToTextureSurfaceSelector}this.__setGLDepthTest(this.__state.renderToTextureDepthStencil);this.__setGLStencilTest(this.__state.renderToTextureDepthStencil);this.__setGLFrontFace(!0)}else{if(null==this.__stage&&0==this.backBufferWidth&&0==this.backBufferHeight)throw new Ec("Context3D backbuffer has not been configured");if(null!=this.__contextState.renderToTexture||this.__contextState.__currentGLFramebuffer!= +this.__state.__primaryGLFramebuffer||this.__contextState.backBufferEnableDepthAndStencil!=this.__state.backBufferEnableDepthAndStencil)this.__bindGLFramebuffer(this.__state.__primaryGLFramebuffer),this.__contextState.renderToTexture=null,this.__contextState.backBufferEnableDepthAndStencil=this.__state.backBufferEnableDepthAndStencil;this.__setGLDepthTest(this.__state.backBufferEnableDepthAndStencil);this.__setGLStencilTest(this.__state.backBufferEnableDepthAndStencil);this.__setGLFrontFace(this.__stage.context3D!= +this)}},__flushGLProgram:function(){var a=this.__state.shader,b=this.__state.program;this.__contextState.shader!=a&&(null!=this.__contextState.shader&&this.__contextState.shader.__disable(),null!=a&&a.__enable(),this.__contextState.shader=a);this.__contextState.program!=b&&(null!=this.__contextState.program&&this.__contextState.program.__disable(),null!=b&&b.__enable(),this.__contextState.program=b);null!=b&&0==b.__format&&(this.__positionScale[1]=this.__stage.context3D==this&&null==this.__state.renderToTexture? +1:-1,b.__setPositionScale(this.__positionScale))},__flushGLScissor:function(){if(this.__state.scissorEnabled){this.__setGLScissorTest(!0);this.__contextState.scissorEnabled=!0;var a=this.__state.scissorRectangle.x|0,b=this.__state.scissorRectangle.y|0,c=this.__state.scissorRectangle.width|0,d=this.__state.scissorRectangle.height|0;this.__backBufferWantsBestResolution&&(a=this.__state.scissorRectangle.x*this.__stage.window.__scale|0,b=this.__state.scissorRectangle.y*this.__stage.window.__scale|0,c= +this.__state.scissorRectangle.width*this.__stage.window.__scale|0,d=this.__state.scissorRectangle.height*this.__stage.window.__scale|0);null==this.__state.renderToTexture&&null==this.__stage3D&&(b=(this.__stage.window.__height*this.__stage.window.__scale|0)-(this.__state.scissorRectangle.height|0)-b);if(this.__contextState.scissorRectangle.x!=a||this.__contextState.scissorRectangle.y!=b||this.__contextState.scissorRectangle.width!=c||this.__contextState.scissorRectangle.height!=d)this.gl.scissor(a, +b,c,d),this.__contextState.scissorRectangle.setTo(a,b,c,d)}else this.__contextState.scissorEnabled!=this.__state.scissorEnabled&&(this.__setGLScissorTest(!1),this.__contextState.scissorEnabled=!1)},__flushGLStencil:function(){if(this.__contextState.stencilTriangleFace!=this.__state.stencilTriangleFace||this.__contextState.stencilPass!=this.__state.stencilPass||this.__contextState.stencilDepthFail!=this.__state.stencilDepthFail||this.__contextState.stencilFail!=this.__state.stencilFail)this.gl.stencilOpSeparate(this.__getGLTriangleFace(this.__state.stencilTriangleFace), +this.__getGLStencilAction(this.__state.stencilFail),this.__getGLStencilAction(this.__state.stencilDepthFail),this.__getGLStencilAction(this.__state.stencilPass)),this.__contextState.stencilTriangleFace=this.__state.stencilTriangleFace,this.__contextState.stencilPass=this.__state.stencilPass,this.__contextState.stencilDepthFail=this.__state.stencilDepthFail,this.__contextState.stencilFail=this.__state.stencilFail;this.__contextState.stencilWriteMask!=this.__state.stencilWriteMask&&(this.gl.stencilMask(this.__state.stencilWriteMask), +this.__contextState.stencilWriteMask=this.__state.stencilWriteMask);if(this.__contextState.stencilCompareMode!=this.__state.stencilCompareMode||this.__contextState.stencilReferenceValue!=this.__state.stencilReferenceValue||this.__contextState.stencilReadMask!=this.__state.stencilReadMask)this.gl.stencilFunc(this.__getGLCompareMode(this.__state.stencilCompareMode),this.__state.stencilReferenceValue,this.__state.stencilReadMask),this.__contextState.stencilCompareMode=this.__state.stencilCompareMode, +this.__contextState.stencilReferenceValue=this.__state.stencilReferenceValue,this.__contextState.stencilReadMask=this.__state.stencilReadMask},__flushGLTextures:function(){for(var a=0,b,c,d=0,e=this.__state.textures.length;d<e;){var f=d++;b=this.__state.textures[f];c=this.__state.samplerStates[f];null==c&&(this.__state.samplerStates[f]=new Qg,c=this.__state.samplerStates[f]);this.gl.activeTexture(this.gl.TEXTURE0+a);null!=b?(b.__textureTarget==this.gl.TEXTURE_2D?this.__bindGLTexture2D(b.__getTexture()): +this.__bindGLTextureCubeMap(b.__getTexture()),this.__contextState.textures[f]=b,b.__setSamplerState(c)):this.__bindGLTexture2D(null);null!=this.__state.program&&0==this.__state.program.__format&&c.textureAlpha&&(this.gl.activeTexture(this.gl.TEXTURE0+a+4),null!=b&&null!=b.__alphaTexture?(b.__alphaTexture.__textureTarget==this.gl.TEXTURE_2D?this.__bindGLTexture2D(b.__alphaTexture.__getTexture()):this.__bindGLTextureCubeMap(b.__alphaTexture.__getTexture()),b.__alphaTexture.__setSamplerState(c),this.gl.uniform1i(this.__state.program.__agalAlphaSamplerEnabled[a].location, +1)):(this.__bindGLTexture2D(null),null!=this.__state.program.__agalAlphaSamplerEnabled[a]&&this.gl.uniform1i(this.__state.program.__agalAlphaSamplerEnabled[a].location,0)));++a}},__flushGLViewport:function(){if(null==this.__state.renderToTexture)if(this.__stage.context3D==this){var a=this.backBufferWidth,b=this.backBufferHeight;null!=this.__stage3D||this.__backBufferWantsBestResolution||(a=this.backBufferWidth*this.__stage.window.__scale|0,b=this.backBufferHeight*this.__stage.window.__scale|0);var c= +null==this.__stage3D?0:this.__stage3D.get_x()|0,d=this.__stage.window.__height*this.__stage.window.__scale-b-(null==this.__stage3D?0:this.__stage3D.get_y())|0;this.gl.viewport(c,d,a,b)}else this.gl.viewport(0,0,this.backBufferWidth,this.backBufferHeight);else b=a=0,this.__state.renderToTexture instanceof fi?(b=this.__state.renderToTexture,a=b.__width,b=b.__height):this.__state.renderToTexture instanceof bk?(b=this.__state.renderToTexture,a=b.__width,b=b.__height):this.__state.renderToTexture instanceof +Wi&&(b=this.__state.renderToTexture,b=a=b.__size),this.gl.viewport(0,0,a,b)},__getGLBlend:function(a){switch(a){case 0:return this.gl.DST_ALPHA;case 1:return this.gl.DST_COLOR;case 2:return this.gl.ONE;case 3:return this.gl.ONE_MINUS_DST_ALPHA;case 4:return this.gl.ONE_MINUS_DST_COLOR;case 5:return this.gl.ONE_MINUS_SRC_ALPHA;case 6:return this.gl.ONE_MINUS_SRC_COLOR;case 7:return this.gl.SRC_ALPHA;case 8:return this.gl.SRC_COLOR;case 9:return this.gl.ZERO;default:throw new dd;}},__getGLCompareMode:function(a){switch(a){case 0:return this.gl.ALWAYS; +case 1:return this.gl.EQUAL;case 2:return this.gl.GREATER;case 3:return this.gl.GEQUAL;case 4:return this.gl.LESS;case 5:return this.gl.LEQUAL;case 6:return this.gl.NEVER;case 7:return this.gl.NOTEQUAL;default:return this.gl.EQUAL}},__getGLStencilAction:function(a){switch(a){case 0:return this.gl.DECR;case 1:return this.gl.DECR_WRAP;case 2:return this.gl.INCR;case 3:return this.gl.INCR_WRAP;case 4:return this.gl.INVERT;case 5:return this.gl.KEEP;case 6:return this.gl.REPLACE;case 7:return this.gl.ZERO; +default:return this.gl.KEEP}},__getGLTriangleFace:function(a){switch(a){case 0:return this.gl.BACK;case 1:return this.gl.FRONT;case 2:return this.gl.FRONT_AND_BACK;case 3:return this.gl.NONE;default:return this.gl.FRONT_AND_BACK}},__renderStage3D:function(a){var b=a.context3D;if(null!=b&&b!=this&&null!=b.__frontBufferTexture&&a.visible&&0<this.backBufferHeight&&0<this.backBufferWidth){if(null==this.__renderStage3DProgram){var c=new X;c.assemble(cu.toString(1),"m44 op, va0, vc0\nmov v0, va1");var d= +new X;d.assemble(cu.toString(0),"tex ft1, v0, fs0 <2d,nearest,nomip>\nmov oc, ft1");this.__renderStage3DProgram=this.createProgram();this.__renderStage3DProgram.upload(c.agalcode,d.agalcode)}this.setProgram(this.__renderStage3DProgram);this.setBlendFactors(2,9);this.setColorMask(!0,!0,!0,!0);this.setCulling(3);this.setDepthTest(!1,0);this.setStencilActions();this.setStencilReferenceValue(0,0,0);this.setScissorRectangle(null);this.setTextureAt(0,b.__frontBufferTexture);this.setVertexBufferAt(0,a.__vertexBuffer, +0,3);this.setVertexBufferAt(1,a.__vertexBuffer,3,2);this.setProgramConstantsFromMatrix(1,0,a.__renderTransform,!0);this.drawTriangles(a.__indexBuffer);this.__present=!0}},__setGLBlend:function(a){this.__contextState.__enableGLBlend!=a&&(a?this.gl.enable(this.gl.BLEND):this.gl.disable(this.gl.BLEND),this.__contextState.__enableGLBlend=a)},__setGLBlendEquation:function(a){this.__contextState.__glBlendEquation!=a&&(this.gl.blendEquation(a),this.__contextState.__glBlendEquation=a)},__setGLCullFace:function(a){this.__contextState.__enableGLCullFace!= +a&&(a?this.gl.enable(this.gl.CULL_FACE):this.gl.disable(this.gl.CULL_FACE),this.__contextState.__enableGLCullFace=a)},__setGLDepthTest:function(a){this.__contextState.__enableGLDepthTest!=a&&(a?this.gl.enable(this.gl.DEPTH_TEST):this.gl.disable(this.gl.DEPTH_TEST),this.__contextState.__enableGLDepthTest=a)},__setGLFrontFace:function(a){this.__contextState.__frontFaceGLCCW!=a&&(this.gl.frontFace(a?this.gl.CCW:this.gl.CW),this.__contextState.__frontFaceGLCCW=a)},__setGLScissorTest:function(a){this.__contextState.__enableGLScissorTest!= +a&&(a?this.gl.enable(this.gl.SCISSOR_TEST):this.gl.disable(this.gl.SCISSOR_TEST),this.__contextState.__enableGLScissorTest=a)},__setGLStencilTest:function(a){this.__contextState.__enableGLStencilTest!=a&&(a?this.gl.enable(this.gl.STENCIL_TEST):this.gl.disable(this.gl.STENCIL_TEST),this.__contextState.__enableGLStencilTest=a)},get_enableErrorChecking:function(){return this.__enableErrorChecking},set_enableErrorChecking:function(a){return this.__enableErrorChecking=a},get_totalGPUMemory:function(){if(-1!= +Sb.__glMemoryCurrentAvailable){var a=this.gl.getParameter(Sb.__glMemoryCurrentAvailable),b=this.gl.getParameter(Sb.__glMemoryTotalAvailable);if(0<b)return 1024*(b-a)}return 0},__class__:Sb,__properties__:{get_totalGPUMemory:"get_totalGPUMemory",set_enableErrorChecking:"set_enableErrorChecking",get_enableErrorChecking:"get_enableErrorChecking"}});var bu={fromString:function(a){switch(a){case "dynamicDraw":return 0;case "staticDraw":return 1;default:return null}},toString:function(a){switch(a){case 0:return"dynamicDraw"; +case 1:return"staticDraw";default:return null}}},cu={fromString:function(a){switch(a){case "fragment":return 0;case "vertex":return 1;default:return null}},toString:function(a){switch(a){case 0:return"fragment";case 1:return"vertex";default:return null}}},ck={fromString:function(a){switch(a){case "bgrPacked565":return 0;case "bgra":return 1;case "bgraPacked4444":return 2;case "compressed":return 3;case "compressedAlpha":return 4;case "rgbaHalfFloat":return 5;default:return null}},toString:function(a){switch(a){case 0:return"bgrPacked565"; +case 1:return"bgra";case 2:return"bgraPacked4444";case 3:return"compressed";case 4:return"compressedAlpha";case 5:return"rgbaHalfFloat";default:return null}}},fp=function(a,b,c){this.__context=a;this.__numIndices=b;a=this.__context.gl;this.__id=a.createBuffer();this.__usage=0==c?a.DYNAMIC_DRAW:a.STATIC_DRAW};k["openfl.display3D.IndexBuffer3D"]=fp;fp.__name__="openfl.display3D.IndexBuffer3D";fp.prototype={__context:null,__id:null,__memoryUsage:null,__numIndices:null,__tempUInt16Array:null,__usage:null, +dispose:function(){this.__context.gl.deleteBuffer(this.__id)},uploadFromByteArray:function(a,b,c,d){b+=2*c;a=yb.toArrayBuffer(a);null==b&&(b=0);d=null!=a?null==d?new Uint16Array(a,b):new Uint16Array(a,b,d):null;this.uploadFromTypedArray(d)},uploadFromTypedArray:function(a,b){null!=a&&(b=this.__context.gl,this.__context.__bindGLElementArrayBuffer(this.__id),Yb.bufferData(b,b.ELEMENT_ARRAY_BUFFER,a,this.__usage))},uploadFromVector:function(a,b,c){if(null!=a){var d=b+c,e=this.__tempUInt16Array;if(null== +this.__tempUInt16Array||this.__tempUInt16Array.length<c)this.__tempUInt16Array=null!=c?new Uint16Array(c):null,null!=e&&this.__tempUInt16Array.set(e);for(c=b;c<d;)e=c++,this.__tempUInt16Array[e-b]=a.get(e);this.uploadFromTypedArray(this.__tempUInt16Array)}},__class__:fp};var gp=function(a,b){this.__context=a;this.__format=b;0==this.__format?(this.__agalSamplerUsageMask=0,this.__agalUniforms=new id,this.__agalSamplerUniforms=new id,this.__agalAlphaSamplerUniforms=new id,this.__agalAlphaSamplerEnabled= +[]):(this.__glslAttribNames=[],this.__glslAttribTypes=[],this.__glslSamplerNames=[],this.__glslUniformLocations=[],this.__glslUniformNames=[],this.__glslUniformTypes=[]);this.__samplerStates=[]};k["openfl.display3D.Program3D"]=gp;gp.__name__="openfl.display3D.Program3D";gp.prototype={__agalAlphaSamplerEnabled:null,__agalAlphaSamplerUniforms:null,__agalFragmentUniformMap:null,__agalPositionScale:null,__agalSamplerUniforms:null,__agalSamplerUsageMask:null,__agalUniforms:null,__agalVertexUniformMap:null, +__context:null,__format:null,__glFragmentShader:null,__glFragmentSource:null,__glProgram:null,__glslAttribNames:null,__glslAttribTypes:null,__glslSamplerNames:null,__glslUniformLocations:null,__glslUniformNames:null,__glslUniformTypes:null,__glVertexShader:null,__glVertexSource:null,__samplerStates:null,dispose:function(){this.__deleteShaders()},getAttributeIndex:function(a){if(0==this.__format)return J.startsWith(a,"va")?n.parseInt(a.substring(2)):-1;for(var b=0,c=this.__glslAttribNames.length;b< +c;){var d=b++;if(this.__glslAttribNames[d]==a)return d}return-1},getConstantIndex:function(a){if(0==this.__format)return J.startsWith(a,"vc")?n.parseInt(a.substring(2)):J.startsWith(a,"fc")?n.parseInt(a.substring(2)):-1;for(var b=0,c=this.__glslUniformNames.length;b<c;){var d=b++;if(this.__glslUniformNames[d]==a)return this.__glslUniformLocations[d]}return-1},upload:function(a,b){if(0==this.__format){var c=[];a=Be.convertToGLSL(a,null);b=Be.convertToGLSL(b,c);5==Ga.level&&(Ga.info(a,{fileName:"openfl/display3D/Program3D.hx", +lineNumber:399,className:"openfl.display3D.Program3D",methodName:"upload"}),Ga.info(b,{fileName:"openfl/display3D/Program3D.hx",lineNumber:400,className:"openfl.display3D.Program3D",methodName:"upload"}));this.__deleteShaders();this.__uploadFromGLSL(a,b);this.__buildAGALUniformList();b=0;for(a=c.length;b<a;){var d=b++;this.__samplerStates[d]=c[d]}}},uploadSources:function(a,b){if(1==this.__format){var c="#ifdef GL_ES\n\t\t\t#ifdef GL_FRAGMENT_PRECISION_HIGH\n\t\t\tprecision highp float;\n\t\t\t#else\n\t\t\tprecision mediump float;\n\t\t\t#endif\n\t\t\t#endif\n\t\t\t"+ +a,d="#ifdef GL_ES\n\t\t\t#ifdef GL_FRAGMENT_PRECISION_HIGH\n\t\t\tprecision highp float;\n\t\t\t#else\n\t\t\tprecision mediump float;\n\t\t\t#endif\n\t\t\t#endif\n\t\t\t"+b;if(c!=this.__glVertexSource||d!=this.__glFragmentSource){this.__processGLSLData(a,"attribute");this.__processGLSLData(a,"uniform");this.__processGLSLData(b,"uniform");this.__deleteShaders();this.__uploadFromGLSL(c,d);var e=this.__glslSamplerNames;d=this.__glslAttribNames;var f=this.__glslAttribTypes;a=this.__glslUniformNames;this.__glslSamplerNames= +[];this.__glslAttribNames=[];this.__glslAttribTypes=[];this.__glslUniformLocations=[];b=this.__context.gl;for(c=0;c<e.length;){var h=e[c];++c;var l=b.getUniformLocation(this.__glProgram,h);this.__glslSamplerNames[l]=h}c=0;for(e=d.length;c<e;)h=c++,l=b.getAttribLocation(this.__glProgram,d[h]),this.__glslAttribNames[l]=d[h],this.__glslAttribTypes[l]=f[h];c=0;for(e=a.length;c<e;)h=c++,d=b.getUniformLocation(this.__glProgram,a[h]),this.__glslUniformLocations[h]=d}}},__buildAGALUniformList:function(){if(1!= +this.__format){var a=this.__context.gl;this.__agalUniforms.clear();this.__agalSamplerUniforms.clear();this.__agalAlphaSamplerUniforms.clear();this.__agalAlphaSamplerEnabled=[];this.__agalSamplerUsageMask=0;var b=a.getProgramParameter(this.__glProgram,a.ACTIVE_UNIFORMS);for(var c=new id,d=new id,e=0;e<b;){var f=e++,h=a.getActiveUniform(this.__glProgram,f),l=h.name,k=h.size,m=h.type;h=new gn(this.__context);h.name=l;h.size=k;h.type=m;h.location=a.getUniformLocation(this.__glProgram,h.name);l=h.name.indexOf("["); +0<=l&&(h.name=h.name.substring(0,l));switch(h.type){case 35674:h.regCount=2;break;case 35675:h.regCount=3;break;case 35676:h.regCount=4;break;default:h.regCount=1}h.regCount*=h.size;this.__agalUniforms.add(h);if("vcPositionScale"==h.name)this.__agalPositionScale=h;else if(J.startsWith(h.name,"vc"))h.regIndex=n.parseInt(h.name.substring(2)),h.regData=this.__context.__vertexConstants,c.add(h);else if(J.startsWith(h.name,"fc"))h.regIndex=n.parseInt(h.name.substring(2)),h.regData=this.__context.__fragmentConstants, +d.add(h);else if(J.startsWith(h.name,"sampler")&&-1==h.name.indexOf("alpha"))for(h.regIndex=n.parseInt(h.name.substring(7)),this.__agalSamplerUniforms.add(h),l=0,k=h.regCount;l<k;)m=l++,this.__agalSamplerUsageMask|=1<<h.regIndex+m;else J.startsWith(h.name,"sampler")&&J.endsWith(h.name,"_alpha")?(l=h.name.indexOf("_")-7,h.regIndex=n.parseInt(h.name.substring(7,7+l))+4,this.__agalAlphaSamplerUniforms.add(h)):J.startsWith(h.name,"sampler")&&J.endsWith(h.name,"_alphaEnabled")&&(h.regIndex=n.parseInt(h.name.substring(7)), +this.__agalAlphaSamplerEnabled[h.regIndex]=h);5==Ga.level&&Ga.verbose(""+f+" name:"+h.name+" type:"+h.type+" size:"+h.size+" location:"+n.string(h.location),{fileName:"openfl/display3D/Program3D.hx",lineNumber:577,className:"openfl.display3D.Program3D",methodName:"__buildAGALUniformList"})}this.__agalVertexUniformMap=new dk(Qc.array(c));this.__agalFragmentUniformMap=new dk(Qc.array(d))}},__deleteShaders:function(){var a=this.__context.gl;null!=this.__glProgram&&(this.__glProgram=null);null!=this.__glVertexShader&& +(a.deleteShader(this.__glVertexShader),this.__glVertexShader=null);null!=this.__glFragmentShader&&(a.deleteShader(this.__glFragmentShader),this.__glFragmentShader=null)},__disable:function(){},__enable:function(){var a=this.__context.gl;a.useProgram(this.__glProgram);if(0==this.__format){this.__agalVertexUniformMap.markAllDirty();this.__agalFragmentUniformMap.markAllDirty();for(var b=this.__agalSamplerUniforms.h;null!=b;){var c=b.item;b=b.next;if(1==c.regCount)a.uniform1i(c.location,c.regIndex);else throw new dd("!!! TODO: uniform location on webgl"); +}for(b=this.__agalAlphaSamplerUniforms.h;null!=b;)if(c=b.item,b=b.next,1==c.regCount)a.uniform1i(c.location,c.regIndex);else throw new dd("!!! TODO: uniform location on webgl");}},__flush:function(){0==this.__format&&(this.__agalVertexUniformMap.flush(),this.__agalFragmentUniformMap.flush())},__getSamplerState:function(a){return this.__samplerStates[a]},__markDirty:function(a,b,c){1!=this.__format&&(a?this.__agalVertexUniformMap.markDirty(b,c):this.__agalFragmentUniformMap.markDirty(b,c))},__processGLSLData:function(a, +b){var c=0,d;for(d="uniform"==b?new Z("uniform ([A-Za-z0-9]+) ([A-Za-z0-9_]+)",""):new Z("attribute ([A-Za-z0-9]+) ([A-Za-z0-9_]+)","");d.matchSub(a,c);){var e=d.matched(1);var f=d.matched(2);if(!J.startsWith(f,"gl_")){if(J.startsWith(e,"sampler"))this.__glslSamplerNames.push(f);else{switch(e){case "bool":c=0;break;case "bvec2":c=1;break;case "bvec3":c=2;break;case "bvec4":c=3;break;case "dvec2":case "vec2":c=5;break;case "dvec3":case "vec3":c=6;break;case "double":case "float":c=4;break;case "ivec3":case "uvec3":c= +10;break;case "ivec4":case "uvec4":c=11;break;case "mat2":case "mat2x2":c=12;break;case "mat2x3":c=13;break;case "mat2x4":c=14;break;case "mat3x2":c=15;break;case "mat3":case "mat3x3":c=16;break;case "mat3x4":c=17;break;case "mat4":case "mat4x4":c=20;break;case "mat4x2":c=18;break;case "mat4x3":c=19;break;case "int":case "uint":c=8;break;case "ivec2":case "uvec2":c=9;break;case "dvec4":case "vec4":c=7;break;default:c=null}"uniform"==b?(this.__glslUniformNames.push(f),this.__glslUniformTypes.push(c)): +(this.__glslAttribNames.push(f),this.__glslAttribTypes.push(c))}f=d.matchedPos();c=f.pos+f.len}}},__setPositionScale:function(a){1!=this.__format&&null!=this.__agalPositionScale&&this.__context.gl.uniform4fv(this.__agalPositionScale.location,a)},__setSamplerState:function(a,b){this.__samplerStates[a]=b},__uploadFromGLSL:function(a,b){var c=this.__context.gl;this.__glVertexSource=a;this.__glFragmentSource=b;this.__glVertexShader=c.createShader(c.VERTEX_SHADER);c.shaderSource(this.__glVertexShader, +a);c.compileShader(this.__glVertexShader);if(0==c.getShaderParameter(this.__glVertexShader,c.COMPILE_STATUS)){var d="Error compiling vertex shader\n"+c.getShaderInfoLog(this.__glVertexShader);Ga.error(d+("\n"+a),{fileName:"openfl/display3D/Program3D.hx",lineNumber:869,className:"openfl.display3D.Program3D",methodName:"__uploadFromGLSL"})}this.__glFragmentShader=c.createShader(c.FRAGMENT_SHADER);c.shaderSource(this.__glFragmentShader,b);c.compileShader(this.__glFragmentShader);0==c.getShaderParameter(this.__glFragmentShader, +c.COMPILE_STATUS)&&(d="Error compiling fragment shader\n"+c.getShaderInfoLog(this.__glFragmentShader),Ga.error(d+("\n"+b),{fileName:"openfl/display3D/Program3D.hx",lineNumber:881,className:"openfl.display3D.Program3D",methodName:"__uploadFromGLSL"}));this.__glProgram=c.createProgram();if(0==this.__format)for(b=0;16>b;){var e=b++;d="va"+e;-1!=a.indexOf(" "+d)&&c.bindAttribLocation(this.__glProgram,e,d)}else for(b=0,a=this.__glslAttribNames;b<a.length;)if(d=a[b],++b,-1<d.indexOf("Position")&&J.startsWith(d, +"openfl_")){c.bindAttribLocation(this.__glProgram,0,d);break}c.attachShader(this.__glProgram,this.__glVertexShader);c.attachShader(this.__glProgram,this.__glFragmentShader);c.linkProgram(this.__glProgram);0==c.getProgramParameter(this.__glProgram,c.LINK_STATUS)&&(d="Unable to initialize the shader program\n"+c.getProgramInfoLog(this.__glProgram),Ga.error(d,{fileName:"openfl/display3D/Program3D.hx",lineNumber:922,className:"openfl.display3D.Program3D",methodName:"__uploadFromGLSL"}))},__class__:gp}; +var gn=function(a){this.context=a;this.isDirty=!0;this.regDataPointer=new Tf(null,0)};k["openfl.display3D.Uniform"]=gn;gn.__name__="openfl.display3D.Uniform";gn.prototype={name:null,location:null,type:null,size:null,regData:null,regIndex:null,regCount:null,isDirty:null,context:null,regDataPointer:null,flush:function(){var a=this.context.gl,b=4*this.regIndex;switch(this.type){case 35664:Au.uniform2fv(a,this.location,this.regData.subarray(b,b+2*this.regCount));break;case 35665:var c=this.location;b= +this.regData.subarray(b,b+3*this.regCount);var d=null;null!=d?a.uniform3fv(c,b,d,null):a.uniform3fv(c,b);break;case 35666:c=this.location;b=this.regData.subarray(b,b+4*this.regCount);d=null;null!=d?a.uniform4fv(c,b,d,null):a.uniform4fv(c,b);break;case 35674:Yb.uniformMatrix2fv(a,this.location,!1,this.regData.subarray(b,b+4*this.size));break;case 35675:Yb.uniformMatrix3fv(a,this.location,!1,this.regData.subarray(b,b+9*this.size));break;case 35676:Yb.uniformMatrix4fv(a,this.location,!1,this.regData.subarray(b, +b+16*this.size));break;default:c=this.location,b=this.regData.subarray(b,b+4*this.regCount),d=null,null!=d?a.uniform4fv(c,b,d,null):a.uniform4fv(c,b)}},__getUniformRegisters:function(a,b){return this.regData.subarray(a,a+b)},__class__:gn};var dk=function(a){this.__uniforms=a;this.__uniforms.sort(function(a,b){return W.compare(a.regIndex,b.regIndex)});var b=0;a=0;for(var c=this.__uniforms;a<c.length;){var d=c[a];++a;d.regIndex+d.regCount>b&&(b=d.regIndex+d.regCount)}this.__registerLookup=ub.toObjectVector(null, +b);a=0;for(c=this.__uniforms;a<c.length;){d=c[a];++a;b=0;for(var e=d.regCount;b<e;){var f=b++;this.__registerLookup.set(d.regIndex+f,d)}}this.__anyDirty=this.__allDirty=!0};k["openfl.display3D.UniformMap"]=dk;dk.__name__="openfl.display3D.UniformMap";dk.prototype={__allDirty:null,__anyDirty:null,__registerLookup:null,__uniforms:null,flush:function(){if(this.__anyDirty){for(var a=0,b=this.__uniforms;a<b.length;){var c=b[a];++a;if(this.__allDirty||c.isDirty)c.flush(),c.isDirty=!1}this.__anyDirty=this.__allDirty= +!1}},markAllDirty:function(){this.__anyDirty=this.__allDirty=!0},markDirty:function(a,b){if(!this.__allDirty)for(b=a+b,b>this.__registerLookup.get_length()&&(b=this.__registerLookup.get_length());a<b;){var c=this.__registerLookup.get(a);null!=c?(this.__anyDirty=c.isDirty=!0,a=c.regIndex+c.regCount):++a}},__class__:dk};var hp=function(a,b,c,d){this.__context=a;this.__numVertices=b;this.__vertexSize=c;a=this.__context.gl;this.__id=a.createBuffer();this.__stride=4*this.__vertexSize;this.__usage=0==bu.fromString(d)? +a.DYNAMIC_DRAW:a.STATIC_DRAW};k["openfl.display3D.VertexBuffer3D"]=hp;hp.__name__="openfl.display3D.VertexBuffer3D";hp.prototype={__context:null,__data:null,__id:null,__memoryUsage:null,__numVertices:null,__stride:null,__tempFloat32Array:null,__usage:null,__vertexSize:null,dispose:function(){this.__context.gl.deleteBuffer(this.__id)},uploadFromByteArray:function(a,b,c,d){b+=c*this.__stride;d*=this.__vertexSize;a=yb.toArrayBuffer(a);null==b&&(b=0);a=null!=a?null==d?new Float32Array(a,b):new Float32Array(a, +b,d):null;this.uploadFromTypedArray(Ug.toArrayBufferView(a))},uploadFromTypedArray:function(a,b){null!=a&&(b=this.__context.gl,this.__context.__bindGLArrayBuffer(this.__id),Yb.bufferData(b,b.ARRAY_BUFFER,a,this.__usage))},uploadFromVector:function(a,b,c){if(null!=a){b*=this.__vertexSize;var d=c*this.__vertexSize;c=b+d;var e=this.__tempFloat32Array;if(null==this.__tempFloat32Array||this.__tempFloat32Array.length<d)this.__tempFloat32Array=null!=d?new Float32Array(d):null,null!=e&&this.__tempFloat32Array.set(e); +for(d=b;d<c;)e=d++,this.__tempFloat32Array[e-b]=a.get(e);this.uploadFromTypedArray(Ug.toArrayBufferView(this.__tempFloat32Array))}},__class__:hp};var Be=function(){};k["openfl.display3D._internal.AGALConverter"]=Be;Be.__name__="openfl.display3D._internal.AGALConverter";Be.prefixFromType=function(a,b){switch(a){case 0:return"va";case 1:return b==Dg.VERTEX?"vc":"fc";case 2:return b==Dg.VERTEX?"vt":"ft";case 3:return"output_";case 4:return"v";case 5:return"sampler";default:throw new dd("Invalid data!"); +}};Be.readUInt64=function(a){var b=a.readInt();a=a.readInt();return new Ya(a,b)};Be.convertToGLSL=function(a,b){a.position=0;a.__endian=1;var c=a.readByte()&255;if(176==c)return a.readUTF();if(160!=c)throw new dd("Magic value must be 0xA0, may not be AGAL");var d=a.readInt();if(1!=d)throw new dd("Version must be 1");if(161!=(a.readByte()&255))throw new dd("Shader type ID must be 0xA1");c=0==(a.readByte()&255)?Dg.VERTEX:Dg.FRAGMENT;for(var e=new hn,f="";;){d=a.position;if(!ca.gt(yb.get_length(a),d))break; +var h=a.readInt();d=a.readUnsignedInt();var l=Be.readUInt64(a),k=Be.readUInt64(a);d=Xi.parse(d,c);l=gi.parse(l,c,d.mask);var m=gi.parse(k,c,d.mask);f+="\t";switch(h){case 0:f+=n.string(d.toGLSL()+" = "+l.toGLSL()+"; // mov");e.addDR(d,xa.VECTOR_4);e.addSR(l,xa.VECTOR_4);break;case 1:f+=n.string(d.toGLSL()+" = "+l.toGLSL()+" + "+m.toGLSL()+"; // add");e.addDR(d,xa.VECTOR_4);e.addSR(l,xa.VECTOR_4);e.addSR(m,xa.VECTOR_4);break;case 2:f+=n.string(d.toGLSL()+" = "+l.toGLSL()+" - "+m.toGLSL()+"; // sub"); +e.addDR(d,xa.VECTOR_4);e.addSR(l,xa.VECTOR_4);e.addSR(m,xa.VECTOR_4);break;case 3:f+=n.string(d.toGLSL()+" = "+l.toGLSL()+" * "+m.toGLSL()+"; // mul");e.addDR(d,xa.VECTOR_4);e.addSR(l,xa.VECTOR_4);e.addSR(m,xa.VECTOR_4);break;case 4:f+=n.string(d.toGLSL()+" = "+l.toGLSL()+" / "+m.toGLSL()+"; // div");e.addDR(d,xa.VECTOR_4);e.addSR(l,xa.VECTOR_4);e.addSR(m,xa.VECTOR_4);break;case 5:f=-1<l.toGLSL().indexOf(".")?f+n.string(d.toGLSL()+" = 1.0 / "+l.toGLSL()+"; // rcp"):f+n.string(d.toGLSL()+" = vec4(1) / "+ +l.toGLSL()+"; // rcp");e.addDR(d,xa.VECTOR_4);e.addSR(l,xa.VECTOR_4);break;case 6:f+=n.string(d.toGLSL()+" = min("+l.toGLSL()+", "+m.toGLSL()+"); // min");e.addDR(d,xa.VECTOR_4);e.addSR(l,xa.VECTOR_4);e.addSR(m,xa.VECTOR_4);break;case 7:f+=n.string(d.toGLSL()+" = max("+l.toGLSL()+", "+m.toGLSL()+"); // max");e.addDR(d,xa.VECTOR_4);e.addSR(l,xa.VECTOR_4);e.addSR(m,xa.VECTOR_4);break;case 8:f+=n.string(d.toGLSL()+" = fract("+l.toGLSL()+"); // frc");e.addDR(d,xa.VECTOR_4);e.addSR(l,xa.VECTOR_4);break; +case 9:f+=n.string(d.toGLSL()+" = sqrt("+l.toGLSL()+"); // sqrt");e.addDR(d,xa.VECTOR_4);e.addSR(l,xa.VECTOR_4);break;case 10:f+=n.string(d.toGLSL()+" = inversesqrt("+l.toGLSL()+"); // rsq");e.addDR(d,xa.VECTOR_4);e.addSR(l,xa.VECTOR_4);break;case 11:f+=n.string(d.toGLSL()+" = pow("+l.toGLSL()+", "+m.toGLSL()+"); // pow");e.addDR(d,xa.VECTOR_4);e.addSR(l,xa.VECTOR_4);e.addSR(m,xa.VECTOR_4);break;case 12:f+=n.string(d.toGLSL()+" = log2("+l.toGLSL()+"); // log");e.addDR(d,xa.VECTOR_4);e.addSR(l,xa.VECTOR_4); +break;case 13:f+=n.string(d.toGLSL()+" = exp2("+l.toGLSL()+"); // exp");e.addDR(d,xa.VECTOR_4);e.addSR(l,xa.VECTOR_4);break;case 14:f+=n.string(d.toGLSL()+" = normalize("+l.toGLSL()+"); // normalize");e.addDR(d,xa.VECTOR_4);e.addSR(l,xa.VECTOR_4);break;case 15:f+=n.string(d.toGLSL()+" = sin("+l.toGLSL()+"); // sin");e.addDR(d,xa.VECTOR_4);e.addSR(l,xa.VECTOR_4);break;case 16:f+=n.string(d.toGLSL()+" = cos("+l.toGLSL()+"); // cos");e.addDR(d,xa.VECTOR_4);e.addSR(l,xa.VECTOR_4);break;case 17:l.sourceMask= +m.sourceMask=7;f+=n.string(d.toGLSL()+" = cross(vec3("+l.toGLSL()+"), vec3("+m.toGLSL()+")); // crs");e.addDR(d,xa.VECTOR_4);e.addSR(l,xa.VECTOR_4);e.addSR(m,xa.VECTOR_4);break;case 18:l.sourceMask=m.sourceMask=7;f+=n.string(d.toGLSL()+" = vec4(dot(vec3("+l.toGLSL()+"), vec3("+m.toGLSL()+")))"+d.getWriteMask()+"; // dp3");e.addDR(d,xa.VECTOR_4);e.addSR(l,xa.VECTOR_4);e.addSR(m,xa.VECTOR_4);break;case 19:l.sourceMask=m.sourceMask=15;f+=n.string(d.toGLSL()+" = vec4(dot(vec4("+l.toGLSL()+"), vec4("+ +m.toGLSL()+")))"+d.getWriteMask()+"; // dp4");e.addDR(d,xa.VECTOR_4);e.addSR(l,xa.VECTOR_4);e.addSR(m,xa.VECTOR_4);break;case 20:f+=n.string(d.toGLSL()+" = abs("+l.toGLSL()+"); // abs");e.addDR(d,xa.VECTOR_4);e.addSR(l,xa.VECTOR_4);break;case 21:f+=n.string(d.toGLSL()+" = -"+l.toGLSL()+"; // neg");e.addDR(d,xa.VECTOR_4);e.addSR(l,xa.VECTOR_4);break;case 22:f+=n.string(d.toGLSL()+" = clamp("+l.toGLSL()+", 0.0, 1.0); // saturate");e.addDR(d,xa.VECTOR_4);e.addSR(l,xa.VECTOR_4);break;case 23:h=e.getRegisterUsage(m); +h!=xa.VECTOR_4&&h!=xa.VECTOR_4_ARRAY?(f+=n.string(d.toGLSL()+" = "+l.toGLSL()+" * mat3("+m.toGLSL(!1)+"); // m33"),e.addDR(d,xa.VECTOR_4),e.addSR(l,xa.VECTOR_4),e.addSR(m,xa.MATRIX_4_4)):(l.sourceMask=m.sourceMask=7,f+=n.string(d.toGLSL()+" = vec3(dot("+l.toGLSL(!0)+","+m.toGLSL(!0,0)+"), dot("+l.toGLSL(!0)+","+m.toGLSL(!0,1)+"),dot("+l.toGLSL(!0)+","+m.toGLSL(!0,2)+")); // m33"),e.addDR(d,xa.VECTOR_4),e.addSR(l,xa.VECTOR_4),e.addSR(m,xa.VECTOR_4,0),e.addSR(m,xa.VECTOR_4,1),e.addSR(m,xa.VECTOR_4, +2));break;case 24:h=e.getRegisterUsage(m);h!=xa.VECTOR_4&&h!=xa.VECTOR_4_ARRAY?(f+=n.string(d.toGLSL()+" = "+l.toGLSL()+" * "+m.toGLSL(!1)+"; // m44"),e.addDR(d,xa.VECTOR_4),e.addSR(l,xa.VECTOR_4),e.addSR(m,xa.MATRIX_4_4)):(l.sourceMask=m.sourceMask=15,f+=n.string(d.toGLSL()+" = vec4(dot("+l.toGLSL(!0)+","+m.toGLSL(!0,0)+"), dot("+l.toGLSL(!0)+","+m.toGLSL(!0,1)+"), dot("+l.toGLSL(!0)+","+m.toGLSL(!0,2)+"), dot("+l.toGLSL(!0)+","+m.toGLSL(!0,3)+")); // m44"),e.addDR(d,xa.VECTOR_4),e.addSR(l,xa.VECTOR_4), +e.addSR(m,xa.VECTOR_4,0),e.addSR(m,xa.VECTOR_4,1),e.addSR(m,xa.VECTOR_4,2),e.addSR(m,xa.VECTOR_4,3));break;case 25:d.mask&=7;h=e.getRegisterUsage(m);h!=xa.VECTOR_4&&h!=xa.VECTOR_4_ARRAY?(f+=n.string(d.toGLSL()+" = "+l.toGLSL()+" * "+m.toGLSL(!1)+"; // m34"),e.addDR(d,xa.VECTOR_4),e.addSR(l,xa.VECTOR_4),e.addSR(m,xa.MATRIX_4_4)):(l.sourceMask=m.sourceMask=15,f+=n.string(d.toGLSL()+" = vec3(dot("+l.toGLSL(!0)+","+m.toGLSL(!0,0)+"), dot("+l.toGLSL(!0)+","+m.toGLSL(!0,1)+"),dot("+l.toGLSL(!0)+","+m.toGLSL(!0, +2)+")); // m34"),e.addDR(d,xa.VECTOR_4),e.addSR(l,xa.VECTOR_4),e.addSR(m,xa.VECTOR_4,0),e.addSR(m,xa.VECTOR_4,1),e.addSR(m,xa.VECTOR_4,2));break;case 39:l.sourceMask=15;f+=n.string("if (any(lessThan("+l.toGLSL()+", vec4(0)))) discard;");e.addSR(l,xa.VECTOR_4);break;case 40:m=Yi.parse(k,c);switch(m.d){case 0:2==m.t?(l.sourceMask=3,e.addSaR(m,xa.SAMPLER_2D_ALPHA),f+=n.string("if ("+m.toGLSL()+"_alphaEnabled) {\n"),f+=n.string("\t\t"+d.toGLSL()+" = vec4(texture2D("+m.toGLSL()+", "+l.toGLSL()+").xyz, texture2D("+ +m.toGLSL()+"_alpha, "+l.toGLSL()+").x); // tex + alpha\n"),f+="\t} else {\n",f+=n.string("\t\t"+d.toGLSL()+" = texture2D("+m.toGLSL()+", "+l.toGLSL()+"); // tex\n"),f+="\t}"):(l.sourceMask=3,e.addSaR(m,xa.SAMPLER_2D),f+=n.string(d.toGLSL()+" = texture2D("+m.toGLSL()+", "+l.toGLSL()+"); // tex"));break;case 1:2==m.t?(l.sourceMask=7,e.addSaR(m,xa.SAMPLER_CUBE_ALPHA),f+=n.string("if ("+m.toGLSL()+"_alphaEnabled) {\n"),f+=n.string("\t\t"+d.toGLSL()+" = vec4(textureCube("+m.toGLSL()+", "+l.toGLSL()+").xyz, textureCube("+ +m.toGLSL()+"_alpha, "+l.toGLSL()+").x); // tex + alpha\n"),f+="\t} else {\n",f+=n.string("\t\t"+d.toGLSL()+" = textureCube("+m.toGLSL()+", "+l.toGLSL()+"); // tex"),f+="\t}"):(l.sourceMask=7,f+=n.string(d.toGLSL()+" = textureCube("+m.toGLSL()+", "+l.toGLSL()+"); // tex"),e.addSaR(m,xa.SAMPLER_CUBE))}e.addDR(d,xa.VECTOR_4);e.addSR(l,xa.VECTOR_4);null!=b&&(b[m.n]=m.toSamplerState());break;case 41:l.sourceMask=m.sourceMask=15;f+=n.string(d.toGLSL()+" = vec4(greaterThanEqual("+l.toGLSL()+", "+m.toGLSL()+ +"))"+d.getWriteMask()+"; // ste");e.addDR(d,xa.VECTOR_4);e.addSR(l,xa.VECTOR_4);e.addSR(m,xa.VECTOR_4);break;case 42:l.sourceMask=m.sourceMask=15;f+=n.string(d.toGLSL()+" = vec4(lessThan("+l.toGLSL()+", "+m.toGLSL()+"))"+d.getWriteMask()+"; // slt");e.addDR(d,xa.VECTOR_4);e.addSR(l,xa.VECTOR_4);e.addSR(m,xa.VECTOR_4);break;case 44:l.sourceMask=m.sourceMask=15;f+=n.string(d.toGLSL()+" = vec4(equal("+l.toGLSL()+", "+m.toGLSL()+"))"+d.getWriteMask()+"; // seq");e.addDR(d,xa.VECTOR_4);e.addSR(l,xa.VECTOR_4); +e.addSR(m,xa.VECTOR_4);break;case 45:l.sourceMask=m.sourceMask=15;f+=n.string(d.toGLSL()+" = vec4(notEqual("+l.toGLSL()+", "+m.toGLSL()+"))"+d.getWriteMask()+"; // sne");e.addDR(d,xa.VECTOR_4);e.addSR(l,xa.VECTOR_4);e.addSR(m,xa.VECTOR_4);break;default:throw new dd("Opcode "+h);}f+="\n"}null==Be.limitedProfile&&(d=r.context.getParameter(7938),Be.limitedProfile=-1<d.indexOf("OpenGL ES")||-1<d.indexOf("WebGL"));a=""+n.string("// AGAL "+(c==Dg.VERTEX?"vertex":"fragment")+" shader\n");a=Be.limitedProfile? +a+"#version 100\n#ifdef GL_FRAGMENT_PRECISION_HIGH\nprecision highp float;\n#else\nprecision mediump float;\n#endif\n":a+"#version 120\n";a+=n.string(e.toGLSL(!1));c==Dg.VERTEX&&(a+="uniform vec4 vcPositionScale;\n");a=a+"void main() {\n"+n.string(e.toGLSL(!0));a+=n.string(f);c==Dg.VERTEX&&(a+="\tgl_Position *= vcPositionScale;\n");return a+"}\n"};var Xi=function(){};k["openfl.display3D._internal._AGALConverter.DestRegister"]=Xi;Xi.__name__="openfl.display3D._internal._AGALConverter.DestRegister"; +Xi.parse=function(a,b){var c=new Xi;c.programType=b;c.type=a>>>24&15;c.mask=a>>>16&15;c.n=a&65535;return c};Xi.prototype={mask:null,n:null,programType:null,type:null,getWriteMask:function(){var a=".";0!=(this.mask&1)&&(a+="x");0!=(this.mask&2)&&(a+="y");0!=(this.mask&4)&&(a+="z");0!=(this.mask&8)&&(a+="w");return a},toGLSL:function(a){null==a&&(a=!0);var b=3==this.type?this.programType==Dg.VERTEX?"gl_Position":"gl_FragColor":Be.prefixFromType(this.type,this.programType)+this.n;a&&15!=this.mask&&(b+= +this.getWriteMask());return b},__class__:Xi};var Dg=E["openfl.display3D._internal._AGALConverter.ProgramType"]={__ename__:"openfl.display3D._internal._AGALConverter.ProgramType",__constructs__:null,VERTEX:{_hx_name:"VERTEX",_hx_index:0,__enum__:"openfl.display3D._internal._AGALConverter.ProgramType",toString:v},FRAGMENT:{_hx_name:"FRAGMENT",_hx_index:1,__enum__:"openfl.display3D._internal._AGALConverter.ProgramType",toString:v}};Dg.__constructs__=[Dg.VERTEX,Dg.FRAGMENT];var hn=function(){this.mEntries= +[]};k["openfl.display3D._internal.RegisterMap"]=hn;hn.__name__="openfl.display3D._internal.RegisterMap";hn.prototype={mEntries:null,add:function(a,b,c,d){for(var e=0,f=this.mEntries;e<f.length;){var h=f[e];++e;if(h.type==a&&h.name==b&&h.number==c){if(h.usage!=d)throw new dd("Cannot use register in multiple ways yet (mat4/vec4)");return}}h=new ip;h.type=a;h.name=b;h.number=c;h.usage=d;this.mEntries.push(h)},addDR:function(a,b){this.add(a.type,a.toGLSL(!1),a.n,b)},addSaR:function(a,b){this.add(a.type, +a.toGLSL(),a.n,b)},addSR:function(a,b,c){null==c&&(c=0);0!=a.d?(this.add(a.itype,Be.prefixFromType(a.itype,a.programType)+a.n,a.n,xa.VECTOR_4),this.add(a.type,Be.prefixFromType(a.type,a.programType)+a.o,a.o,xa.VECTOR_4_ARRAY)):this.add(a.type,a.toGLSL(!1,c),a.n+c,b)},getRegisterUsage:function(a){return 0!=a.d?xa.VECTOR_4_ARRAY:this.getUsage(a.type,a.toGLSL(!1),a.n)},getUsage:function(a,b,c){for(var d=0,e=this.mEntries;d<e.length;){var f=e[d];++d;if(f.type==a&&f.name==b&&f.number==c)return f.usage}return xa.UNUSED}, +toGLSL:function(a){this.mEntries.sort(function(a,b){return a.number-b.number});this.mEntries.sort(function(a,b){return O.__cast(a.type,ui)-O.__cast(b.type,ui)});for(var b="",c=0,d=this.mEntries.length;c<d;){var e=c++;e=this.mEntries[e];if(!(a&&2!=e.type||!a&&2==e.type)&&3!=e.type){switch(e.type){case 0:b+="attribute ";break;case 1:b+="uniform ";break;case 2:b+="\t";break;case 3:break;case 4:b+="varying ";break;case 5:b+="uniform ";break;default:throw new dd;}switch(e.usage._hx_index){case 0:Ga.info("Missing switch patten: RegisterUsage.UNUSED", +{fileName:"openfl/display3D/_internal/AGALConverter.hx",lineNumber:750,className:"openfl.display3D._internal.RegisterMap",methodName:"toGLSL"});break;case 1:b+="vec4 ";break;case 2:b+="mat4 ";break;case 3:b+="sampler2D ";break;case 5:b+="samplerCube ";break;case 7:b+="vec4 "}e.usage==xa.SAMPLER_2D_ALPHA?(b+="sampler2D ",b+=n.string(e.name),b+=";\n",b+="uniform ",b+="sampler2D ",b+=n.string(e.name+"_alpha"),b+=";\n",b+="uniform ",b+="bool ",b+=n.string(e.name+"_alphaEnabled")):e.usage==xa.SAMPLER_CUBE_ALPHA? +(b+="samplerCube ",b+=n.string(e.name),b+=";\n",b+="uniform ",b+="samplerCube ",b+=n.string(e.name+"_alpha"),b+=";\n",b+="uniform ",b+="bool ",b+=n.string(e.name+"_alphaEnabled")):b=e.usage==xa.VECTOR_4_ARRAY?b+n.string(e.name+"[128]"):b+n.string(e.name);b+=";\n"}}return b},__class__:hn};var ip=function(){};k["openfl.display3D._internal._AGALConverter.RegisterMapEntry"]=ip;ip.__name__="openfl.display3D._internal._AGALConverter.RegisterMapEntry";ip.prototype={name:null,number:null,type:null,usage:null, +__class__:ip};var xa=E["openfl.display3D._internal._AGALConverter.RegisterUsage"]={__ename__:"openfl.display3D._internal._AGALConverter.RegisterUsage",__constructs__:null,UNUSED:{_hx_name:"UNUSED",_hx_index:0,__enum__:"openfl.display3D._internal._AGALConverter.RegisterUsage",toString:v},VECTOR_4:{_hx_name:"VECTOR_4",_hx_index:1,__enum__:"openfl.display3D._internal._AGALConverter.RegisterUsage",toString:v},MATRIX_4_4:{_hx_name:"MATRIX_4_4",_hx_index:2,__enum__:"openfl.display3D._internal._AGALConverter.RegisterUsage", +toString:v},SAMPLER_2D:{_hx_name:"SAMPLER_2D",_hx_index:3,__enum__:"openfl.display3D._internal._AGALConverter.RegisterUsage",toString:v},SAMPLER_2D_ALPHA:{_hx_name:"SAMPLER_2D_ALPHA",_hx_index:4,__enum__:"openfl.display3D._internal._AGALConverter.RegisterUsage",toString:v},SAMPLER_CUBE:{_hx_name:"SAMPLER_CUBE",_hx_index:5,__enum__:"openfl.display3D._internal._AGALConverter.RegisterUsage",toString:v},SAMPLER_CUBE_ALPHA:{_hx_name:"SAMPLER_CUBE_ALPHA",_hx_index:6,__enum__:"openfl.display3D._internal._AGALConverter.RegisterUsage", +toString:v},VECTOR_4_ARRAY:{_hx_name:"VECTOR_4_ARRAY",_hx_index:7,__enum__:"openfl.display3D._internal._AGALConverter.RegisterUsage",toString:v}};xa.__constructs__=[xa.UNUSED,xa.VECTOR_4,xa.MATRIX_4_4,xa.SAMPLER_2D,xa.SAMPLER_2D_ALPHA,xa.SAMPLER_CUBE,xa.SAMPLER_CUBE_ALPHA,xa.VECTOR_4_ARRAY];var Yi=function(){};k["openfl.display3D._internal._AGALConverter.SamplerRegister"]=Yi;Yi.__name__="openfl.display3D._internal._AGALConverter.SamplerRegister";Yi.parse=function(a,b){var c=new Yi;c.programType=b; +b=60;b=0==b?new Ya(a.high,a.low):32>b?new Ya(a.high>>b,a.high<<32-b|a.low>>>b):new Ya(a.high>>31,a.high>>b-32);b=b.low&15;c.f=b;b=56;b=0==b?new Ya(a.high,a.low):32>b?new Ya(a.high>>b,a.high<<32-b|a.low>>>b):new Ya(a.high>>31,a.high>>b-32);b=b.low&15;c.m=b;b=52;b=0==b?new Ya(a.high,a.low):32>b?new Ya(a.high>>b,a.high<<32-b|a.low>>>b):new Ya(a.high>>31,a.high>>b-32);b=b.low&15;c.w=b;b=48;b=0==b?new Ya(a.high,a.low):32>b?new Ya(a.high>>b,a.high<<32-b|a.low>>>b):new Ya(a.high>>31,a.high>>b-32);b=b.low& +15;c.s=b;b=44;b=0==b?new Ya(a.high,a.low):32>b?new Ya(a.high>>b,a.high<<32-b|a.low>>>b):new Ya(a.high>>31,a.high>>b-32);b=b.low&15;c.d=b;b=40;b=0==b?new Ya(a.high,a.low):32>b?new Ya(a.high>>b,a.high<<32-b|a.low>>>b):new Ya(a.high>>31,a.high>>b-32);b=b.low&15;c.t=b;b=32;b=0==b?new Ya(a.high,a.low):32>b?new Ya(a.high>>b,a.high<<32-b|a.low>>>b):new Ya(a.high>>31,a.high>>b-32);b=b.low&15;c.type=b;b=16;b=0==b?new Ya(a.high,a.low):32>b?new Ya(a.high>>b,a.high<<32-b|a.low>>>b):new Ya(a.high>>31,a.high>> +b-32);b=b.low&255;c.b=b;b=a.low&65535;c.n=b;return c};Yi.prototype={b:null,d:null,f:null,m:null,n:null,programType:null,s:null,t:null,type:null,w:null,toGLSL:function(){return Be.prefixFromType(this.type,this.programType)+this.n},toSamplerState:function(){switch(this.f){case 0:var a=5;break;case 1:a=4;break;default:throw new dd;}switch(this.m){case 0:var b=2;break;case 1:b=1;break;case 2:b=0;break;default:throw new dd;}switch(this.w){case 0:var c=0;break;case 1:c=2;break;default:throw new dd;}return new Qg(c, +a,b,(this.b<<24>>24)/8,4==(this.s&4),1==(this.s&1),2==this.t)},__class__:Yi};var gi=function(){};k["openfl.display3D._internal._AGALConverter.SourceRegister"]=gi;gi.__name__="openfl.display3D._internal._AGALConverter.SourceRegister";gi.parse=function(a,b,c){var d=new gi;d.programType=b;b=63;b=0==b?new Ya(a.high,a.low):32>b?new Ya(a.high>>b,a.high<<32-b|a.low>>>b):new Ya(a.high>>31,a.high>>b-32);b=b.low&1;d.d=b;b=48;b=0==b?new Ya(a.high,a.low):32>b?new Ya(a.high>>b,a.high<<32-b|a.low>>>b):new Ya(a.high>> +31,a.high>>b-32);b=b.low&3;d.q=b;b=40;b=0==b?new Ya(a.high,a.low):32>b?new Ya(a.high>>b,a.high<<32-b|a.low>>>b):new Ya(a.high>>31,a.high>>b-32);b=b.low&15;d.itype=b;b=32;b=0==b?new Ya(a.high,a.low):32>b?new Ya(a.high>>b,a.high<<32-b|a.low>>>b):new Ya(a.high>>31,a.high>>b-32);b=b.low&15;d.type=b;b=24;b=0==b?new Ya(a.high,a.low):32>b?new Ya(a.high>>b,a.high<<32-b|a.low>>>b):new Ya(a.high>>31,a.high>>b-32);b=b.low&255;d.s=b;b=16;b=0==b?new Ya(a.high,a.low):32>b?new Ya(a.high>>b,a.high<<32-b|a.low>>> +b):new Ya(a.high>>31,a.high>>b-32);b=b.low&255;d.o=b;b=a.low&65535;d.n=b;d.sourceMask=c;return d};gi.prototype={d:null,itype:null,n:null,o:null,programType:null,q:null,s:null,sourceMask:null,type:null,toGLSL:function(a,b){null==b&&(b=0);null==a&&(a=!0);if(3==this.type)return this.programType==Dg.VERTEX?"gl_Position":"gl_FragColor";var c=228==this.s&&15==this.sourceMask,d="";if(5!=this.type&&!c){if(0!=(this.sourceMask&1))switch(this.s&3){case 0:d+="x";break;case 1:d+="y";break;case 2:d+="z";break; +case 3:d+="w"}if(0!=(this.sourceMask&2))switch(this.s>>2&3){case 0:d+="x";break;case 1:d+="y";break;case 2:d+="z";break;case 3:d+="w"}if(0!=(this.sourceMask&4))switch(this.s>>4&3){case 0:d+="x";break;case 1:d+="y";break;case 2:d+="z";break;case 3:d+="w"}if(0!=(this.sourceMask&8))switch(this.s>>6&3){case 0:d+="x";break;case 1:d+="y";break;case 2:d+="z";break;case 3:d+="w"}}c=Be.prefixFromType(this.type,this.programType);if(0==this.d)c+=this.n+b;else{c+=this.o;var e="";switch(this.q){case 0:e="x";break; +case 1:e="y";break;case 2:e="z";break;case 3:e="w"}e=Be.prefixFromType(this.itype,this.programType)+this.n+"."+e;c+="[ int("+e+") +"+b+"]"}a&&""!=d&&(c+="."+d);return c},__class__:gi};var ek=function(a,b){this.version=0;a.position=b;var c=a.readUTFBytes(3);a.position=b;if("ATF"!=c)throw new dd("ATF signature not found");255==a.b[b+6]?(this.version=a.b[b+7],a.position=b+8,c=this.__readUInt32(a)):(this.version=0,a.position=b+3,c=this.__readUInt24(a));if(ca.gt(O.__cast(b+c,ui),yb.get_length(a)))throw new dd("ATF length exceeds byte array length"); +this.data=a};k["openfl.display3D._internal.ATFReader"]=ek;ek.__name__="openfl.display3D._internal.ATFReader";ek.prototype={atfFormat:null,cubeMap:null,data:null,height:null,mipCount:null,version:null,width:null,readHeader:function(a,b,c){var d=this.data.readUnsignedByte(),e=d>>>7;if(!c&&0!=e)throw new dd("ATF Cube map not expected");if(c&&1!=e)throw new dd("ATF Cube map expected");this.cubeMap=c;this.atfFormat=d&127;3!=this.atfFormat&&5!=this.atfFormat&&Ga.warn("Only ATF block compressed textures without JPEG-XR+LZMA are supported", +{fileName:"openfl/display3D/_internal/ATFReader.hx",lineNumber:96,className:"openfl.display3D._internal.ATFReader",methodName:"readHeader"});this.width=1<<this.data.readUnsignedByte();this.height=1<<this.data.readUnsignedByte();if(this.width!=a||this.height!=b)throw new dd("ATF width and height dont match");this.mipCount=this.data.readUnsignedByte();return 5==this.atfFormat},readTextures:function(a){for(var b=3>this.version?3:4,c=0,d=this.cubeMap?6:1;c<d;)for(var e=c++,f=0,h=this.mipCount;f<h;)for(var l= +f++,k=0,m=b;k<m;){var n=k++,p=0==this.version?this.__readUInt24(this.data):this.__readUInt32(this.data);if(ca.gt(this.data.position+p,yb.get_length(this.data)))throw new dd("Block length exceeds ATF file length");if(ca.gt(p,0)){var r=new cb(new ArrayBuffer(p)),q=this.data,v=yb.fromBytes(r),u=0,w=p;null==w&&(w=0);null==u&&(u=0);q.readBytes(v,u,w);a(e,l,n,this.width>>l,this.height>>l,p,r)}}},__readUInt24:function(a){var b=a.readUnsignedByte()<<16;b|=a.readUnsignedByte()<<8;return b|=a.readUnsignedByte()}, +__readUInt32:function(a){var b=a.readUnsignedByte()<<24;b|=a.readUnsignedByte()<<16;b|=a.readUnsignedByte()<<8;return b|=a.readUnsignedByte()},__class__:ek};var ak=function(){this.backBufferEnableDepthAndStencil=!1;this.blendDestinationAlphaFactor=9;this.blendSourceAlphaFactor=2;this.blendDestinationRGBFactor=9;this.blendSourceRGBFactor=2;this.colorMaskAlpha=this.colorMaskBlue=this.colorMaskGreen=this.colorMaskRed=!0;this.culling=3;this.depthCompareMode=4;this.depthMask=!0;this.samplerStates=[];this.scissorRectangle= +new fa;this.stencilCompareMode=0;this.stencilPass=this.stencilFail=this.stencilDepthFail=5;this.stencilReadMask=255;this.stencilReferenceValue=0;this.stencilTriangleFace=2;this.stencilWriteMask=255;this.textures=[];this.__frontFaceGLCCW=!0;this.__glBlendEquation=32774};k["openfl.display3D._internal.Context3DState"]=ak;ak.__name__="openfl.display3D._internal.Context3DState";ak.prototype={backBufferEnableDepthAndStencil:null,blendDestinationAlphaFactor:null,blendSourceAlphaFactor:null,blendDestinationRGBFactor:null, +blendSourceRGBFactor:null,colorMaskRed:null,colorMaskGreen:null,colorMaskBlue:null,colorMaskAlpha:null,culling:null,depthCompareMode:null,depthMask:null,program:null,renderToTexture:null,renderToTextureAntiAlias:null,renderToTextureDepthStencil:null,renderToTextureSurfaceSelector:null,samplerStates:null,scissorEnabled:null,scissorRectangle:null,stencilCompareMode:null,stencilDepthFail:null,stencilFail:null,stencilPass:null,stencilReadMask:null,stencilReferenceValue:null,stencilTriangleFace:null,stencilWriteMask:null, +textures:null,shader:null,__currentGLArrayBuffer:null,__currentGLElementArrayBuffer:null,__currentGLFramebuffer:null,__currentGLTexture2D:null,__currentGLTextureCubeMap:null,__enableGLBlend:null,__enableGLCullFace:null,__enableGLDepthTest:null,__enableGLScissorTest:null,__enableGLStencilTest:null,__frontFaceGLCCW:null,__glBlendEquation:null,__primaryGLFramebuffer:null,__rttDepthGLRenderbuffer:null,__rttGLFramebuffer:null,__rttGLRenderbuffer:null,__rttStencilGLRenderbuffer:null,__class__:ak};var Zb= +function(a){fb.call(this);this.__context=a;var b=this.__context.gl;this.__textureID=b.createTexture();this.__textureContext=this.__context.__context;if(null==Zb.__supportsBGRA){Zb.__textureInternalFormat=b.RGBA;Zb.__supportsBGRA=!1;Zb.__textureFormat=b.RGBA;Zb.__compressedFormats=new Sa;Zb.__compressedFormatsAlpha=new Sa;a=b.getExtension("WEBGL_compressed_texture_s3tc");var c=b.getExtension("WEBGL_compressed_texture_etc1");b=b.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc");if(null!=a){var d= +a.COMPRESSED_RGBA_S3TC_DXT1_EXT;Zb.__compressedFormats.h[0]=d;d=a.COMPRESSED_RGBA_S3TC_DXT5_EXT;Zb.__compressedFormatsAlpha.h[0]=d}null!=c&&(d=c.COMPRESSED_RGB_ETC1_WEBGL,Zb.__compressedFormats.h[2]=d,d=c.COMPRESSED_RGB_ETC1_WEBGL,Zb.__compressedFormatsAlpha.h[2]=d);null!=b&&(d=b.COMPRESSED_RGB_PVRTC_4BPPV1_IMG,Zb.__compressedFormats.h[1]=d,d=b.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG,Zb.__compressedFormatsAlpha.h[1]=d)}this.__internalFormat=Zb.__textureInternalFormat;this.__format=Zb.__textureFormat};k["openfl.display3D.textures.TextureBase"]= +Zb;Zb.__name__="openfl.display3D.textures.TextureBase";Zb.__super__=fb;Zb.prototype=u(fb.prototype,{__alphaTexture:null,__context:null,__format:null,__glDepthRenderbuffer:null,__glFramebuffer:null,__glStencilRenderbuffer:null,__height:null,__internalFormat:null,__optimizeForRenderToTexture:null,__samplerState:null,__streamingLevels:null,__textureContext:null,__textureID:null,__textureTarget:null,__width:null,dispose:function(){var a=this.__context.gl;null!=this.__alphaTexture&&(this.__alphaTexture.dispose(), +this.__alphaTexture=null);null!=this.__textureID&&(a.deleteTexture(this.__textureID),this.__textureID=null);null!=this.__glFramebuffer&&(a.deleteFramebuffer(this.__glFramebuffer),this.__glFramebuffer=null);null!=this.__glDepthRenderbuffer&&(a.deleteRenderbuffer(this.__glDepthRenderbuffer),this.__glDepthRenderbuffer=null);null!=this.__glStencilRenderbuffer&&(a.deleteRenderbuffer(this.__glStencilRenderbuffer),this.__glStencilRenderbuffer=null)},__getGLFramebuffer:function(a,b,c){b=this.__context.gl; +null==this.__glFramebuffer&&(this.__glFramebuffer=b.createFramebuffer(),this.__context.__bindGLFramebuffer(this.__glFramebuffer),b.framebufferTexture2D(b.FRAMEBUFFER,b.COLOR_ATTACHMENT0,b.TEXTURE_2D,this.__textureID,0),this.__context.__enableErrorChecking&&(c=b.checkFramebufferStatus(b.FRAMEBUFFER),c!=b.FRAMEBUFFER_COMPLETE&&Ga.warn("Error: Context3D.setRenderToTexture status:"+c+" width:"+this.__width+" height:"+this.__height,{fileName:"openfl/display3D/textures/TextureBase.hx",lineNumber:201,className:"openfl.display3D.textures.TextureBase", +methodName:"__getGLFramebuffer"})));a&&null==this.__glDepthRenderbuffer&&(this.__context.__bindGLFramebuffer(this.__glFramebuffer),0!=Sb.__glDepthStencil?(this.__glStencilRenderbuffer=this.__glDepthRenderbuffer=b.createRenderbuffer(),b.bindRenderbuffer(b.RENDERBUFFER,this.__glDepthRenderbuffer),b.renderbufferStorage(b.RENDERBUFFER,Sb.__glDepthStencil,this.__width,this.__height),b.framebufferRenderbuffer(b.FRAMEBUFFER,b.DEPTH_STENCIL_ATTACHMENT,b.RENDERBUFFER,this.__glDepthRenderbuffer)):(this.__glDepthRenderbuffer= +b.createRenderbuffer(),this.__glStencilRenderbuffer=b.createRenderbuffer(),b.bindRenderbuffer(b.RENDERBUFFER,this.__glDepthRenderbuffer),b.renderbufferStorage(b.RENDERBUFFER,b.DEPTH_COMPONENT16,this.__width,this.__height),b.bindRenderbuffer(b.RENDERBUFFER,this.__glStencilRenderbuffer),b.renderbufferStorage(b.RENDERBUFFER,b.STENCIL_INDEX8,this.__width,this.__height),b.framebufferRenderbuffer(b.FRAMEBUFFER,b.DEPTH_ATTACHMENT,b.RENDERBUFFER,this.__glDepthRenderbuffer),b.framebufferRenderbuffer(b.FRAMEBUFFER, +b.STENCIL_ATTACHMENT,b.RENDERBUFFER,this.__glStencilRenderbuffer)),this.__context.__enableErrorChecking&&(c=b.checkFramebufferStatus(b.FRAMEBUFFER),c!=b.FRAMEBUFFER_COMPLETE&&Ga.warn("Error: Context3D.setRenderToTexture status:"+c+" width:"+this.__width+" height:"+this.__height,{fileName:"openfl/display3D/textures/TextureBase.hx",lineNumber:239,className:"openfl.display3D.textures.TextureBase",methodName:"__getGLFramebuffer"})),b.bindRenderbuffer(b.RENDERBUFFER,null));return this.__glFramebuffer}, +__getImage:function(a){var b=a.image;if(!a.__isValid||null==b)return null;za.sync(b,!1);a=this.__context.gl;b.type==se.DATA||b.get_premultiplied()?!b.get_premultiplied()&&b.get_transparent()&&(a.pixelStorei(a.UNPACK_PREMULTIPLY_ALPHA_WEBGL,0),b=b.clone(),b.set_premultiplied(!0)):a.pixelStorei(a.UNPACK_PREMULTIPLY_ALPHA_WEBGL,1);0!=b.get_format()&&(b=b.clone(),b.set_format(0),b.buffer.premultiplied=!0);return b},__getTexture:function(){return this.__textureID},__setSamplerState:function(a){if(!a.equals(this.__samplerState)){var b= +this.__context.gl;this.__textureTarget==this.__context.gl.TEXTURE_CUBE_MAP?this.__context.__bindGLTextureCubeMap(this.__textureID):this.__context.__bindGLTexture2D(this.__textureID);var c;switch(a.wrap){case 0:var d=c=b.CLAMP_TO_EDGE;break;case 1:c=b.CLAMP_TO_EDGE;d=b.REPEAT;break;case 2:d=c=b.REPEAT;break;case 3:c=b.REPEAT;d=b.CLAMP_TO_EDGE;break;default:throw new Ec("wrap bad enum");}var e=5==a.filter?b.NEAREST:b.LINEAR;switch(a.mipfilter){case 0:var f=5==a.filter?b.NEAREST_MIPMAP_LINEAR:b.LINEAR_MIPMAP_LINEAR; +break;case 1:f=5==a.filter?b.NEAREST_MIPMAP_NEAREST:b.LINEAR_MIPMAP_NEAREST;break;case 2:f=5==a.filter?b.NEAREST:b.LINEAR;break;default:throw new Ec("mipfiter bad enum");}b.texParameteri(this.__textureTarget,b.TEXTURE_MIN_FILTER,f);b.texParameteri(this.__textureTarget,b.TEXTURE_MAG_FILTER,e);b.texParameteri(this.__textureTarget,b.TEXTURE_WRAP_S,c);b.texParameteri(this.__textureTarget,b.TEXTURE_WRAP_T,d);null==this.__samplerState&&(this.__samplerState=a.clone());this.__samplerState.copyFrom(a);return!0}return!1}, +__uploadFromImage:function(a){var b=this.__context.gl,c;if(this.__textureTarget==b.TEXTURE_2D){if(1==a.buffer.bitsPerPixel)var d=c=b.ALPHA;else c=Zb.__textureInternalFormat,d=Zb.__textureFormat;this.__context.__bindGLTexture2D(this.__textureID);a.type==se.DATA||a.get_premultiplied()?!a.get_premultiplied()&&a.get_transparent()&&b.pixelStorei(b.UNPACK_PREMULTIPLY_ALPHA_WEBGL,1):b.pixelStorei(b.UNPACK_PREMULTIPLY_ALPHA_WEBGL,1);a.type==se.DATA?Yb.texImage2D(b,b.TEXTURE_2D,0,c,a.buffer.width,a.buffer.height, +0,d,b.UNSIGNED_BYTE,a.get_data()):Yb.texImage2D(b,b.TEXTURE_2D,0,c,d,b.UNSIGNED_BYTE,a.get_src());this.__context.__bindGLTexture2D(null)}},__class__:Zb});var Wi=function(a,b,c,d,e){Zb.call(this,a);this.__width=this.__height=this.__size=b;this.__optimizeForRenderToTexture=d;this.__streamingLevels=e;this.__textureTarget=this.__context.gl.TEXTURE_CUBE_MAP;this.__uploadedSides=0};k["openfl.display3D.textures.CubeTexture"]=Wi;Wi.__name__="openfl.display3D.textures.CubeTexture";Wi.__super__=Zb;Wi.prototype= +u(Zb.prototype,{__framebufferSurface:null,__size:null,__uploadedSides:null,uploadCompressedTextureFromByteArray:function(a,b,c){null==c&&(c=!1);var d=this;c?Oe.delay(function(){d.__uploadCompressedTextureFromByteArray(a,b);var c=new la("textureReady");d.dispatchEvent(c)},1):this.__uploadCompressedTextureFromByteArray(a,b)},uploadFromBitmapData:function(a,b,c,d){null==c&&(c=0);if(null!=a&&(d=this.__size>>c,0!=d&&(a=this.__getImage(a),null!=a)))if(0==c&&null!=a.buffer&&null==a.buffer.data&&null!=a.buffer.get_src()){var e= +this.__context.gl;d=this.__size>>c;0!=d&&(d=this.__sideToTarget(b),this.__context.__bindGLTextureCubeMap(this.__textureID),Yb.texImage2D(e,d,c,this.__internalFormat,this.__format,e.UNSIGNED_BYTE,a.buffer.get_src()),this.__context.__bindGLTextureCubeMap(null),this.__uploadedSides|=1<<b)}else this.uploadFromTypedArray(a.get_data(),b,c)},uploadFromByteArray:function(a,b,c,d){null==d&&(d=0);0==b?this.uploadFromTypedArray(a.b,c,d):(a=yb.toArrayBuffer(a),null==b&&(b=0),b=null!=a?new Uint8Array(a,b):null, +this.uploadFromTypedArray(b,c,d))},uploadFromTypedArray:function(a,b,c){null==c&&(c=0);if(null!=a){var d=this.__context.gl,e=this.__size>>c;if(0!=e){var f=this.__sideToTarget(b);this.__context.__bindGLTextureCubeMap(this.__textureID);Yb.texImage2D(d,f,c,this.__internalFormat,e,e,0,this.__format,d.UNSIGNED_BYTE,a);this.__context.__bindGLTextureCubeMap(null);this.__uploadedSides|=1<<b}}},__getGLFramebuffer:function(a,b,c){var d=this.__context.gl;null==this.__glFramebuffer&&(this.__glFramebuffer=d.createFramebuffer(), +this.__framebufferSurface=-1);if(this.__framebufferSurface!=c&&(this.__framebufferSurface=c,this.__context.__bindGLFramebuffer(this.__glFramebuffer),d.framebufferTexture2D(d.FRAMEBUFFER,d.COLOR_ATTACHMENT0,d.TEXTURE_CUBE_MAP_POSITIVE_X+c,this.__textureID,0),this.__context.__enableErrorChecking)){var e=d.checkFramebufferStatus(d.FRAMEBUFFER);e!=d.FRAMEBUFFER_COMPLETE&&Ga.error("Error: Context3D.setRenderToTexture status:"+e+" width:"+this.__width+" height:"+this.__height,{fileName:"openfl/display3D/textures/CubeTexture.hx", +lineNumber:279,className:"openfl.display3D.textures.CubeTexture",methodName:"__getGLFramebuffer"})}return Zb.prototype.__getGLFramebuffer.call(this,a,b,c)},__setSamplerState:function(a){if(Zb.prototype.__setSamplerState.call(this,a)){var b=this.__context.gl;2==a.mipfilter||this.__samplerState.mipmapGenerated||(b.generateMipmap(b.TEXTURE_CUBE_MAP),this.__samplerState.mipmapGenerated=!0);if(0!=Sb.__glMaxTextureMaxAnisotropy){switch(a.filter){case 0:a=16;break;case 1:a=2;break;case 2:a=4;break;case 3:a= +8;break;default:a=1}a>Sb.__glMaxTextureMaxAnisotropy&&(a=Sb.__glMaxTextureMaxAnisotropy);b.texParameterf(b.TEXTURE_CUBE_MAP,Sb.__glTextureMaxAnisotropy,a)}return!0}return!1},__sideToTarget:function(a){var b=this.__context.gl;switch(a){case 0:return b.TEXTURE_CUBE_MAP_POSITIVE_X;case 1:return b.TEXTURE_CUBE_MAP_NEGATIVE_X;case 2:return b.TEXTURE_CUBE_MAP_POSITIVE_Y;case 3:return b.TEXTURE_CUBE_MAP_NEGATIVE_Y;case 4:return b.TEXTURE_CUBE_MAP_POSITIVE_Z;case 5:return b.TEXTURE_CUBE_MAP_NEGATIVE_Z;default:throw new dd; +}},__uploadCompressedTextureFromByteArray:function(a,b){var c=this;a=new ek(a,b);var d=a.readHeader(this.__size,this.__size,!0),e=this.__context.gl;this.__context.__bindGLTextureCubeMap(this.__textureID);var f=!1;a.readTextures(function(a,b,g,h,l,m,k){var p=d?Zb.__compressedFormatsAlpha.h[g]:Zb.__compressedFormats.h[g];if(0!=p)if(f=!0,a=c.__sideToTarget(a),c.__format=p,c.__internalFormat=p,d&&2==g){m=m/2|0;var t=g=null,n=null,x=null,r=k.b.buffer,q=0;null==q&&(q=0);g=null!=g?new Uint8Array(g):null!= +t?new Uint8Array(t):null!=n?new Uint8Array(n.__array):null!=x?new Uint8Array(x):null!=r?null==m?new Uint8Array(r,q):new Uint8Array(r,q,m):null;Yb.compressedTexImage2D(e,a,b,c.__internalFormat,h,l,0,g);var v=new Wi(c.__context,c.__size,3,c.__optimizeForRenderToTexture,c.__streamingLevels);v.__format=p;v.__internalFormat=p;c.__context.__bindGLTextureCubeMap(v.__textureID);x=n=t=g=null;r=k.b.buffer;q=m;null==q&&(q=0);g=null!=g?new Uint8Array(g):null!=t?new Uint8Array(t):null!=n?new Uint8Array(n.__array): +null!=x?new Uint8Array(x):null!=r?null==m?new Uint8Array(r,q):new Uint8Array(r,q,m):null;Yb.compressedTexImage2D(e,a,b,v.__internalFormat,h,l,0,g);c.__alphaTexture=v}else x=n=t=g=null,r=k.b.buffer,q=0,null==q&&(q=0),g=null!=g?new Uint8Array(g):null!=t?new Uint8Array(t):null!=n?new Uint8Array(n.__array):null!=x?new Uint8Array(x):null!=r?null==m?new Uint8Array(r,q):new Uint8Array(r,q,m):null,Yb.compressedTexImage2D(e,a,b,c.__internalFormat,h,l,0,g)});if(!f){a=this.__size*this.__size*4;var h=b=null, +l=null,k=null,m=null;a=null!=a?new Uint8Array(a):null!=b?new Uint8Array(b):null!=h?new Uint8Array(h.__array):null!=l?new Uint8Array(l):null!=k?null==m?new Uint8Array(k,0):new Uint8Array(k,0,m):null;Yb.texImage2D(e,this.__sideToTarget(0),0,this.__internalFormat,this.__size,this.__size,0,this.__format,e.UNSIGNED_BYTE,a);a=this.__size*this.__size*4;m=k=l=h=b=null;a=null!=a?new Uint8Array(a):null!=b?new Uint8Array(b):null!=h?new Uint8Array(h.__array):null!=l?new Uint8Array(l):null!=k?null==m?new Uint8Array(k, +0):new Uint8Array(k,0,m):null;Yb.texImage2D(e,this.__sideToTarget(1),0,this.__internalFormat,this.__size,this.__size,0,this.__format,e.UNSIGNED_BYTE,a);a=this.__size*this.__size*4;m=k=l=h=b=null;a=null!=a?new Uint8Array(a):null!=b?new Uint8Array(b):null!=h?new Uint8Array(h.__array):null!=l?new Uint8Array(l):null!=k?null==m?new Uint8Array(k,0):new Uint8Array(k,0,m):null;Yb.texImage2D(e,this.__sideToTarget(2),0,this.__internalFormat,this.__size,this.__size,0,this.__format,e.UNSIGNED_BYTE,a);a=this.__size* +this.__size*4;m=k=l=h=b=null;a=null!=a?new Uint8Array(a):null!=b?new Uint8Array(b):null!=h?new Uint8Array(h.__array):null!=l?new Uint8Array(l):null!=k?null==m?new Uint8Array(k,0):new Uint8Array(k,0,m):null;Yb.texImage2D(e,this.__sideToTarget(3),0,this.__internalFormat,this.__size,this.__size,0,this.__format,e.UNSIGNED_BYTE,a);a=this.__size*this.__size*4;m=k=l=h=b=null;a=null!=a?new Uint8Array(a):null!=b?new Uint8Array(b):null!=h?new Uint8Array(h.__array):null!=l?new Uint8Array(l):null!=k?null==m? +new Uint8Array(k,0):new Uint8Array(k,0,m):null;Yb.texImage2D(e,this.__sideToTarget(4),0,this.__internalFormat,this.__size,this.__size,0,this.__format,e.UNSIGNED_BYTE,a);a=this.__size*this.__size*4;m=k=l=h=b=null;a=null!=a?new Uint8Array(a):null!=b?new Uint8Array(b):null!=h?new Uint8Array(h.__array):null!=l?new Uint8Array(l):null!=k?null==m?new Uint8Array(k,0):new Uint8Array(k,0,m):null;Yb.texImage2D(e,this.__sideToTarget(5),0,this.__internalFormat,this.__size,this.__size,0,this.__format,e.UNSIGNED_BYTE, +a)}this.__context.__bindGLTextureCubeMap(null)},__class__:Wi});var bk=function(a,b,c,d,e){Zb.call(this,a);this.__width=b;this.__height=c;this.__optimizeForRenderToTexture=e;this.__textureTarget=this.__context.gl.TEXTURE_2D;this.uploadFromTypedArray(null);e&&this.__getGLFramebuffer(!0,0,0)};k["openfl.display3D.textures.RectangleTexture"]=bk;bk.__name__="openfl.display3D.textures.RectangleTexture";bk.__super__=Zb;bk.prototype=u(Zb.prototype,{uploadFromBitmapData:function(a){if(null!=a&&(a=this.__getImage(a), +null!=a))if(null!=a.buffer&&null==a.buffer.data&&null!=a.buffer.get_src()){var b=this.__context.gl;this.__context.__bindGLTexture2D(this.__textureID);Yb.texImage2D(b,this.__textureTarget,0,this.__internalFormat,this.__format,b.UNSIGNED_BYTE,a.buffer.get_src());this.__context.__bindGLTexture2D(null)}else this.uploadFromTypedArray(a.get_data())},uploadFromByteArray:function(a,b){0==b?this.uploadFromTypedArray(a.b):(a=yb.toArrayBuffer(a),null==b&&(b=0),b=null!=a?new Uint8Array(a,b):null,this.uploadFromTypedArray(b))}, +uploadFromTypedArray:function(a){var b=this.__context.gl;this.__context.__bindGLTexture2D(this.__textureID);Yb.texImage2D(b,this.__textureTarget,0,this.__internalFormat,this.__width,this.__height,0,this.__format,b.UNSIGNED_BYTE,a);this.__context.__bindGLTexture2D(null)},__setSamplerState:function(a){if(Zb.prototype.__setSamplerState.call(this,a)){var b=this.__context.gl;if(0!=Sb.__glMaxTextureMaxAnisotropy){switch(a.filter){case 0:a=16;break;case 1:a=2;break;case 2:a=4;break;case 3:a=8;break;default:a= +1}a>Sb.__glMaxTextureMaxAnisotropy&&(a=Sb.__glMaxTextureMaxAnisotropy);b.texParameterf(b.TEXTURE_2D,Sb.__glTextureMaxAnisotropy,a)}return!0}return!1},__class__:bk});var fi=function(a,b,c,d,e,f){Zb.call(this,a);this.__width=b;this.__height=c;this.__optimizeForRenderToTexture=e;this.__streamingLevels=f;a=this.__context.gl;this.__textureTarget=a.TEXTURE_2D;this.__context.__bindGLTexture2D(this.__textureID);Yb.texImage2D(a,this.__textureTarget,0,this.__internalFormat,this.__width,this.__height,0,this.__format, +a.UNSIGNED_BYTE,null);this.__context.__bindGLTexture2D(null);e&&this.__getGLFramebuffer(!0,0,0)};k["openfl.display3D.textures.Texture"]=fi;fi.__name__="openfl.display3D.textures.Texture";fi.__super__=Zb;fi.prototype=u(Zb.prototype,{uploadCompressedTextureFromByteArray:function(a,b,c){null==c&&(c=!1);var d=this;c?Oe.delay(function(){d.__uploadCompressedTextureFromByteArray(a,b);var c=new la("textureReady");d.dispatchEvent(c)},1):this.__uploadCompressedTextureFromByteArray(a,b)},uploadFromBitmapData:function(a, +b,c){null==b&&(b=0);if(null!=a){c=this.__width>>b;var d=this.__height>>b;if(0!=c||0!=d){0==c&&(c=1);0==d&&(d=1);if(a.width!=c||a.height!=d)c=new Ja(c,d,!0,0),c.draw(a),a=c;a=this.__getImage(a);if(null!=a)if(0==b&&null!=a.buffer&&null==a.buffer.data&&null!=a.buffer.get_src()){var e=this.__context.gl;c=this.__width>>b;d=this.__height>>b;if(0!=c||0!=d)this.__context.__bindGLTexture2D(this.__textureID),Yb.texImage2D(e,this.__textureTarget,b,this.__internalFormat,this.__format,e.UNSIGNED_BYTE,a.buffer.get_src()), +this.__context.__bindGLTexture2D(null)}else this.uploadFromTypedArray(a.get_data(),b)}}},uploadFromByteArray:function(a,b,c){null==c&&(c=0);0==b?this.uploadFromTypedArray(a.b,c):(a=yb.toArrayBuffer(a),null==b&&(b=0),b=null!=a?new Uint8Array(a,b):null,this.uploadFromTypedArray(b,c))},uploadFromTypedArray:function(a,b){null==b&&(b=0);if(null!=a){var c=this.__context.gl,d=this.__width>>b,e=this.__height>>b;if(0!=d||0!=e)0==d&&(d=1),0==e&&(e=1),this.__context.__bindGLTexture2D(this.__textureID),Yb.texImage2D(c, +this.__textureTarget,b,this.__internalFormat,d,e,0,this.__format,c.UNSIGNED_BYTE,a),this.__context.__bindGLTexture2D(null)}},__setSamplerState:function(a){if(Zb.prototype.__setSamplerState.call(this,a)){var b=this.__context.gl;2==a.mipfilter||this.__samplerState.mipmapGenerated||(b.generateMipmap(b.TEXTURE_2D),this.__samplerState.mipmapGenerated=!0);if(0!=Sb.__glMaxTextureMaxAnisotropy){switch(a.filter){case 0:a=16;break;case 1:a=2;break;case 2:a=4;break;case 3:a=8;break;default:a=1}a>Sb.__glMaxTextureMaxAnisotropy&& +(a=Sb.__glMaxTextureMaxAnisotropy);b.texParameterf(b.TEXTURE_2D,Sb.__glTextureMaxAnisotropy,a)}return!0}return!1},__uploadCompressedTextureFromByteArray:function(a,b){var c=this;a=new ek(a,b);var d=a.readHeader(this.__width,this.__height,!1),e=this.__context.gl;this.__context.__bindGLTexture2D(this.__textureID);var f=!1;a.readTextures(function(a,b,g,h,k,p,n){a=d?Zb.__compressedFormatsAlpha.h[g]:Zb.__compressedFormats.h[g];if(0!=a)if(f=!0,c.__format=a,c.__internalFormat=a,d&&2==g){p=p/2|0;var l=g= +null,m=null,t=null,x=n.b.buffer,r=0;null==r&&(r=0);g=null!=g?new Uint8Array(g):null!=l?new Uint8Array(l):null!=m?new Uint8Array(m.__array):null!=t?new Uint8Array(t):null!=x?null==p?new Uint8Array(x,r):new Uint8Array(x,r,p):null;Yb.compressedTexImage2D(e,c.__textureTarget,b,c.__internalFormat,h,k,0,g);var q=new fi(c.__context,c.__width,c.__height,3,c.__optimizeForRenderToTexture,c.__streamingLevels);q.__format=a;q.__internalFormat=a;c.__context.__bindGLTexture2D(q.__textureID);t=m=l=g=null;x=n.b.buffer; +r=p;null==r&&(r=0);g=null!=g?new Uint8Array(g):null!=l?new Uint8Array(l):null!=m?new Uint8Array(m.__array):null!=t?new Uint8Array(t):null!=x?null==p?new Uint8Array(x,r):new Uint8Array(x,r,p):null;Yb.compressedTexImage2D(e,q.__textureTarget,b,q.__internalFormat,h,k,0,g);c.__alphaTexture=q}else t=m=l=g=null,x=n.b.buffer,r=0,null==r&&(r=0),g=null!=g?new Uint8Array(g):null!=l?new Uint8Array(l):null!=m?new Uint8Array(m.__array):null!=t?new Uint8Array(t):null!=x?null==p?new Uint8Array(x,r):new Uint8Array(x, +r,p):null,Yb.compressedTexImage2D(e,c.__textureTarget,b,c.__internalFormat,h,k,0,g)});f||(a=this.__width*this.__height*4,a=null!=a?new Uint8Array(a):null,Yb.texImage2D(e,this.__textureTarget,0,this.__internalFormat,this.__width,this.__height,0,this.__format,e.UNSIGNED_BYTE,a));this.__context.__bindGLTexture2D(null)},__class__:fi});var fn=function(a){Zb.call(this,a);this.__textureTarget=this.__context.gl.TEXTURE_2D};k["openfl.display3D.textures.VideoTexture"]=fn;fn.__name__="openfl.display3D.textures.VideoTexture"; +fn.__super__=Zb;fn.prototype=u(Zb.prototype,{videoHeight:null,videoWidth:null,__cacheTime:null,__netStream:null,attachNetStream:function(a){var b=this;null!=this.__netStream&&this.__netStream.__video.removeEventListener("canplay",q(this,this.__onCanPlay),!1);this.__cacheTime=-1;this.__netStream=a;null!=this.__netStream&&(2<=this.__netStream.__video.readyState?Oe.delay(function(){b.__textureReady()},0):this.__netStream.__video.addEventListener("canplay",q(this,this.__onCanPlay),!1))},dispose:function(){null!= +this.__netStream&&null!=this.__netStream.__video&&this.__netStream.__video.removeEventListener("timeupdate",q(this,this.__onTimeUpdate));Zb.prototype.dispose.call(this)},__onCanPlay:function(a){this.__netStream.__video.addEventListener("timeupdate",q(this,this.__onTimeUpdate));this.__textureReady()},__onTimeUpdate:function(a){null!=this.__netStream&&this.__netStream.__video.currentTime!=this.__cacheTime&&2<=this.__netStream.__video.readyState&&this.__textureReady()},__getTexture:function(){if(this.__netStream.__video.currentTime!= +this.__cacheTime&&2<=this.__netStream.__video.readyState){var a=this.__context.gl;this.__context.__bindGLTexture2D(this.__textureID);Yb.texImage2D(a,a.TEXTURE_2D,0,a.RGBA,a.RGBA,a.UNSIGNED_BYTE,this.__netStream.__video);this.__cacheTime=this.__netStream.__video.currentTime}return this.__textureID},__textureReady:function(){this.videoWidth=this.__netStream.__video.videoWidth;this.videoHeight=this.__netStream.__video.videoHeight;var a=new la("textureReady");this.dispatchEvent(a)},__class__:fn});var Ec= +function(a,b){null==b&&(b=0);null==a&&(a="");R.call(this,a);this.errorID=b;this.name="Error";this.__skipStack++};k["openfl.errors.Error"]=Ec;Ec.__name__="openfl.errors.Error";Ec.__super__=R;Ec.prototype=u(R.prototype,{errorID:null,name:null,getStackTrace:function(){return jf.toString(jf.exceptionStack())},toString:function(){return null!=this.get_message()?this.get_message():"Error"},__class__:Ec});var ni=function(a){null==a&&(a="");Ec.call(this,a);this.name="ArgumentError";this.__skipStack++};k["openfl.errors.ArgumentError"]= +ni;ni.__name__="openfl.errors.ArgumentError";ni.__super__=Ec;ni.prototype=u(Ec.prototype,{__class__:ni});var Zi=function(a){null==a&&(a="");Ec.call(this,a);this.name="IOError";this.__skipStack++};k["openfl.errors.IOError"]=Zi;Zi.__name__="openfl.errors.IOError";Zi.__super__=Ec;Zi.prototype=u(Ec.prototype,{__class__:Zi});var ch=function(a,b){Zi.call(this,"End of file was encountered");this.name="EOFError";this.errorID=2030;this.__skipStack++};k["openfl.errors.EOFError"]=ch;ch.__name__="openfl.errors.EOFError"; +ch.__super__=Zi;ch.prototype=u(Zi.prototype,{__class__:ch});var dd=function(a){null==a&&(a="");Ec.call(this,a,0);this.name="IllegalOperationError";this.__skipStack++};k["openfl.errors.IllegalOperationError"]=dd;dd.__name__="openfl.errors.IllegalOperationError";dd.__super__=Ec;dd.prototype=u(Ec.prototype,{__class__:dd});var Fh=function(a){null==a&&(a="");Ec.call(this,a,0);this.name="RangeError";this.__skipStack++};k["openfl.errors.RangeError"]=Fh;Fh.__name__="openfl.errors.RangeError";Fh.__super__= +Ec;Fh.prototype=u(Ec.prototype,{__class__:Fh});var jp=function(a){null==a&&(a="");Ec.call(this,a,0);this.name="SecurityError";this.__skipStack++};k["openfl.errors.SecurityError"]=jp;jp.__name__="openfl.errors.SecurityError";jp.__super__=Ec;jp.prototype=u(Ec.prototype,{__class__:jp});var Eh=function(a){null==a&&(a="");Ec.call(this,a,0);this.name="TypeError";this.__skipStack++};k["openfl.errors.TypeError"]=Eh;Eh.__name__="openfl.errors.TypeError";Eh.__super__=Ec;Eh.prototype=u(Ec.prototype,{__class__:Eh}); +var dh=function(a,b,c,d){null==d&&(d=!1);null==c&&(c=!1);null==b&&(b=!1);la.call(this,a,b,c);this.activating=d};k["openfl.events.ActivityEvent"]=dh;dh.__name__="openfl.events.ActivityEvent";dh.__super__=la;dh.prototype=u(la.prototype,{activating:null,clone:function(){var a=new dh(this.type,this.bubbles,this.cancelable,this.activating);a.target=this.target;a.currentTarget=this.currentTarget;a.eventPhase=this.eventPhase;return a},toString:function(){return this.__formatToString("ActivityEvent",["type", +"bubbles","cancelable","activating"])},__init:function(){la.prototype.__init.call(this);this.activating=!1},__class__:dh});var cf=function(a,b,c,d){null==d&&(d="");null==c&&(c=!1);null==b&&(b=!1);la.call(this,a,b,c);this.text=d};k["openfl.events.TextEvent"]=cf;cf.__name__="openfl.events.TextEvent";cf.__super__=la;cf.prototype=u(la.prototype,{text:null,clone:function(){var a=new cf(this.type,this.bubbles,this.cancelable,this.text);a.target=this.target;a.currentTarget=this.currentTarget;a.eventPhase= +this.eventPhase;return a},toString:function(){return this.__formatToString("TextEvent",["type","bubbles","cancelable","text"])},__init:function(){la.prototype.__init.call(this);this.text=""},__class__:cf});var Se=function(a,b,c,d,e){null==e&&(e=0);null==d&&(d="");null==c&&(c=!1);null==b&&(b=!1);cf.call(this,a,b,c,d);this.errorID=e};k["openfl.events.ErrorEvent"]=Se;Se.__name__="openfl.events.ErrorEvent";Se.__super__=cf;Se.prototype=u(cf.prototype,{errorID:null,clone:function(){var a=new Se(this.type, +this.bubbles,this.cancelable,this.text,this.errorID);a.target=this.target;a.currentTarget=this.currentTarget;a.eventPhase=this.eventPhase;return a},toString:function(){return this.__formatToString("ErrorEvent",["type","bubbles","cancelable","text","errorID"])},__init:function(){cf.prototype.__init.call(this);this.errorID=0},__class__:Se});var lj=function(a){this.active=!1;this.reset(a)};k["openfl.events._EventDispatcher.DispatchIterator"]=lj;lj.__name__="openfl.events._EventDispatcher.DispatchIterator"; +lj.prototype={active:null,index:null,isCopy:null,list:null,copy:function(){this.isCopy||(this.list=this.list.slice(),this.isCopy=!0)},hasNext:function(){return this.index<this.list.length},next:function(){return this.list[this.index++]},remove:function(a,b){if(this.active)if(this.isCopy){b=this.index;for(var c=this.list.length;b<c;){var d=b++;if(this.list[d]==a){this.list.splice(d,1);break}}}else b<this.index&&this.index--},reset:function(a){this.list=a;this.isCopy=!1;this.index=0},start:function(){this.active= +!0},stop:function(){this.active=!1},__class__:lj};var kj=function(a,b,c){this.callback=a;this.useCapture=b;this.priority=c};k["openfl.events._EventDispatcher.Listener"]=kj;kj.__name__="openfl.events._EventDispatcher.Listener";kj.prototype={callback:null,priority:null,useCapture:null,match:function(a,b){return W.compareMethods(this.callback,a)?this.useCapture==b:!1},__class__:kj};var Xf=function(a,b,c,d,e,f){null==f&&(f=0);null==e&&(e=!1);null==c&&(c=!1);null==b&&(b=!1);la.call(this,a,b,c);this.keyCode= +f;this.shiftKey=e;this.relatedObject=d};k["openfl.events.FocusEvent"]=Xf;Xf.__name__="openfl.events.FocusEvent";Xf.__super__=la;Xf.prototype=u(la.prototype,{keyCode:null,relatedObject:null,shiftKey:null,clone:function(){var a=new Xf(this.type,this.bubbles,this.cancelable,this.relatedObject,this.shiftKey,this.keyCode);a.target=this.target;a.currentTarget=this.currentTarget;a.eventPhase=this.eventPhase;return a},toString:function(){return this.__formatToString("FocusEvent","type bubbles cancelable relatedObject shiftKey keyCode".split(" "))}, +__init:function(){la.prototype.__init.call(this);this.keyCode=0;this.shiftKey=!1;this.relatedObject=null},__class__:Xf});var bh=function(a,b,c,d,e){null==e&&(e=!1);null==d&&(d=!1);null==c&&(c=!1);null==b&&(b=!1);dh.call(this,a,b,c);this.fullScreen=d;this.interactive=e};k["openfl.events.FullScreenEvent"]=bh;bh.__name__="openfl.events.FullScreenEvent";bh.__super__=dh;bh.prototype=u(dh.prototype,{fullScreen:null,interactive:null,clone:function(){var a=new bh(this.type,this.bubbles,this.cancelable,this.fullScreen, +this.interactive);a.target=this.target;a.currentTarget=this.currentTarget;a.eventPhase=this.eventPhase;return a},toString:function(){return this.__formatToString("FullscreenEvent",["type","bubbles","cancelable","fullscreen","interactive"])},__init:function(){dh.prototype.__init.call(this);this.interactive=this.fullScreen=!1},__class__:bh});var Eg=function(a,b,c,d){null==c&&(c=!1);null==b&&(b=!0);la.call(this,a,b,c);this.device=d};k["openfl.events.GameInputEvent"]=Eg;Eg.__name__="openfl.events.GameInputEvent"; +Eg.__super__=la;Eg.prototype=u(la.prototype,{device:null,clone:function(){var a=new Eg(this.type,this.bubbles,this.cancelable,this.device);a.target=this.target;a.currentTarget=this.currentTarget;a.eventPhase=this.eventPhase;return a},toString:function(){return this.__formatToString("GameInputEvent",["type","bubbles","cancelable","device"])},__init:function(){la.prototype.__init.call(this);this.device=null},__class__:Eg});var hi=function(a,b,c,d,e){null==e&&(e=!1);null==d&&(d=0);null==c&&(c=!1);null== +b&&(b=!1);this.status=d;this.redirected=e;la.call(this,a,b,c)};k["openfl.events.HTTPStatusEvent"]=hi;hi.__name__="openfl.events.HTTPStatusEvent";hi.__super__=la;hi.prototype=u(la.prototype,{redirected:null,responseHeaders:null,responseURL:null,status:null,clone:function(){var a=new hi(this.type,this.bubbles,this.cancelable,this.status,this.redirected);a.target=this.target;a.currentTarget=this.currentTarget;a.eventPhase=this.eventPhase;return a},toString:function(){return this.__formatToString("HTTPStatusEvent", +["type","bubbles","cancelable","status","redirected"])},__init:function(){la.prototype.__init.call(this);this.status=0;this.redirected=!1},__class__:hi});var lg=function(a,b,c,d,e){null==e&&(e=0);null==d&&(d="");null==c&&(c=!1);null==b&&(b=!0);Se.call(this,a,b,c,d,e)};k["openfl.events.IOErrorEvent"]=lg;lg.__name__="openfl.events.IOErrorEvent";lg.__super__=Se;lg.prototype=u(Se.prototype,{clone:function(){var a=new lg(this.type,this.bubbles,this.cancelable,this.text,this.errorID);a.target=this.target; +a.currentTarget=this.currentTarget;a.eventPhase=this.eventPhase;return a},toString:function(){return this.__formatToString("IOErrorEvent",["type","bubbles","cancelable","text","errorID"])},__class__:lg});var bi=function(a,b,c,d,e,f,h,l,k,m,n){null==n&&(n=!1);null==m&&(m=!1);null==k&&(k=!1);null==l&&(l=!1);null==h&&(h=!1);null==e&&(e=0);null==d&&(d=0);null==c&&(c=!1);null==b&&(b=!1);la.call(this,a,b,c);this.charCode=d;this.keyCode=e;this.keyLocation=null!=f?f:0;this.ctrlKey=h;this.altKey=l;this.shiftKey= +k;this.controlKey=m;this.commandKey=n};k["openfl.events.KeyboardEvent"]=bi;bi.__name__="openfl.events.KeyboardEvent";bi.__super__=la;bi.prototype=u(la.prototype,{altKey:null,charCode:null,commandKey:null,controlKey:null,ctrlKey:null,keyCode:null,keyLocation:null,shiftKey:null,clone:function(){var a=new bi(this.type,this.bubbles,this.cancelable,this.charCode,this.keyCode,this.keyLocation,this.ctrlKey,this.altKey,this.shiftKey,this.controlKey,this.commandKey);a.target=this.target;a.currentTarget=this.currentTarget; +a.eventPhase=this.eventPhase;return a},toString:function(){return this.__formatToString("KeyboardEvent","type bubbles cancelable charCode keyCode keyLocation ctrlKey altKey shiftKey".split(" "))},__init:function(){la.prototype.__init.call(this);this.keyLocation=this.keyCode=this.charCode=0;this.commandKey=this.controlKey=this.shiftKey=this.altKey=this.ctrlKey=!1},__class__:bi});var Ib=function(a,b,c,d,e,f,h,l,k,m,n,p,r){null==r&&(r=0);null==p&&(p=!1);null==n&&(n=0);null==m&&(m=!1);null==k&&(k=!1); +null==l&&(l=!1);null==h&&(h=!1);null==e&&(e=0);null==d&&(d=0);null==c&&(c=!1);null==b&&(b=!0);la.call(this,a,b,c);this.shiftKey=k;this.altKey=l;this.ctrlKey=h;this.bubbles=b;this.relatedObject=f;this.delta=n;this.localX=d;this.localY=e;this.buttonDown=m;this.commandKey=p;this.clickCount=r;this.isRelatedObjectInaccessible=!1;this.stageY=this.stageX=NaN};k["openfl.events.MouseEvent"]=Ib;Ib.__name__="openfl.events.MouseEvent";Ib.__create=function(a,b,c,d,e,f,h){null==h&&(h=0);a=new Ib(a,!0,!1,e.x,e.y, +null,Ib.__ctrlKey,Ib.__altKey,Ib.__shiftKey,Ib.__buttonDown,h,Ib.__commandKey);a.stageX=c;a.stageY=d;a.target=f;return a};Ib.__super__=la;Ib.prototype=u(la.prototype,{altKey:null,buttonDown:null,commandKey:null,clickCount:null,ctrlKey:null,delta:null,isRelatedObjectInaccessible:null,localX:null,localY:null,relatedObject:null,shiftKey:null,stageX:null,stageY:null,clone:function(){var a=new Ib(this.type,this.bubbles,this.cancelable,this.localX,this.localY,this.relatedObject,this.ctrlKey,this.altKey, +this.shiftKey,this.buttonDown,this.delta,this.commandKey,this.clickCount);a.target=this.target;a.currentTarget=this.currentTarget;a.eventPhase=this.eventPhase;return a},toString:function(){return this.__formatToString("MouseEvent","type bubbles cancelable localX localY relatedObject ctrlKey altKey shiftKey buttonDown delta".split(" "))},updateAfterEvent:function(){},__init:function(){la.prototype.__init.call(this);this.bubbles=this.ctrlKey=this.altKey=this.shiftKey=!1;this.relatedObject=null;this.localY= +this.localX=this.delta=0;this.commandKey=this.buttonDown=!1;this.clickCount=0;this.isRelatedObjectInaccessible=!1;this.stageY=this.stageX=NaN},__class__:Ib});var ii=function(a,b,c,d){null==c&&(c=!1);null==b&&(b=!1);this.info=d;la.call(this,a,b,c)};k["openfl.events.NetStatusEvent"]=ii;ii.__name__="openfl.events.NetStatusEvent";ii.__super__=la;ii.prototype=u(la.prototype,{info:null,clone:function(){var a=new ii(this.type,this.bubbles,this.cancelable,this.info);a.target=this.target;a.currentTarget=this.currentTarget; +a.eventPhase=this.eventPhase;return a},toString:function(){return this.__formatToString("NetStatusEvent",["type","bubbles","cancelable","info"])},__init:function(){la.prototype.__init.call(this);this.info=null},__class__:ii});var Cg=function(a,b,c,d,e){null==e&&(e=0);null==d&&(d=0);null==c&&(c=!1);null==b&&(b=!1);la.call(this,a,b,c);this.bytesLoaded=d;this.bytesTotal=e};k["openfl.events.ProgressEvent"]=Cg;Cg.__name__="openfl.events.ProgressEvent";Cg.__super__=la;Cg.prototype=u(la.prototype,{bytesLoaded:null, +bytesTotal:null,clone:function(){var a=new Cg(this.type,this.bubbles,this.cancelable,this.bytesLoaded,this.bytesTotal);a.target=this.target;a.currentTarget=this.currentTarget;a.eventPhase=this.eventPhase;return a},toString:function(){return this.__formatToString("ProgressEvent",["type","bubbles","cancelable","bytesLoaded","bytesTotal"])},__init:function(){la.prototype.__init.call(this);this.bytesTotal=this.bytesLoaded=0},__class__:Cg});var pg=function(a,b,c,d,e,f){null==f&&(f=!0);null==c&&(c=!1); +null==b&&(b=!1);la.call(this,a,b,c);this.objectMatrix=d;this.objectColorTransform=e;this.allowSmoothing=f};k["openfl.events.RenderEvent"]=pg;pg.__name__="openfl.events.RenderEvent";pg.__super__=la;pg.prototype=u(la.prototype,{allowSmoothing:null,objectColorTransform:null,objectMatrix:null,renderer:null,clone:function(){var a=new pg(this.type,this.bubbles,this.cancelable,this.objectMatrix.clone(),this.objectColorTransform.__clone(),this.allowSmoothing);a.target=this.target;a.currentTarget=this.currentTarget; +a.eventPhase=this.eventPhase;return a},toString:function(){return this.__formatToString("RenderEvent",["type","bubbles","cancelable"])},__init:function(){la.prototype.__init.call(this);this.objectColorTransform=this.objectMatrix=null;this.allowSmoothing=!1;this.renderer=null},__class__:pg});var $i=function(a,b,c,d,e){null==e&&(e=0);null==d&&(d="");null==c&&(c=!1);null==b&&(b=!1);Se.call(this,a,b,c,d,e)};k["openfl.events.SecurityErrorEvent"]=$i;$i.__name__="openfl.events.SecurityErrorEvent";$i.__super__= +Se;$i.prototype=u(Se.prototype,{clone:function(){var a=new $i(this.type,this.bubbles,this.cancelable,this.text,this.errorID);a.target=this.target;a.currentTarget=this.currentTarget;a.eventPhase=this.eventPhase;return a},toString:function(){return this.__formatToString("SecurityErrorEvent",["type","bubbles","cancelable","text","errorID"])},__class__:$i});var Rd=function(a,b,c,d,e,f,h,l,k,m,n,p,r,q,v,u,w,B,E,C){null==u&&(u=!1);null==v&&(v=!1);null==q&&(q=!1);null==r&&(r=!1);null==p&&(p=!1);null==m&& +(m=0);null==k&&(k=0);null==l&&(l=0);null==h&&(h=0);null==f&&(f=0);null==e&&(e=!1);null==d&&(d=0);null==c&&(c=!1);null==b&&(b=!0);la.call(this,a,b,c);this.touchPointID=d;this.isPrimaryTouchPoint=e;this.localX=f;this.localY=h;this.sizeX=l;this.sizeY=k;this.pressure=m;this.relatedObject=n;this.ctrlKey=p;this.altKey=r;this.shiftKey=q;this.commandKey=v;this.controlKey=u;this.stageY=this.stageX=NaN};k["openfl.events.TouchEvent"]=Rd;Rd.__name__="openfl.events.TouchEvent";Rd.__create=function(a,b,c,d,e,f){a= +new Rd(a,!0,!1,0,!0,e.x,e.y,1,1,1);a.stageX=c;a.stageY=d;a.target=f;return a};Rd.__super__=la;Rd.prototype=u(la.prototype,{altKey:null,commandKey:null,controlKey:null,ctrlKey:null,delta:null,isPrimaryTouchPoint:null,localX:null,localY:null,pressure:null,relatedObject:null,shiftKey:null,sizeX:null,sizeY:null,stageX:null,stageY:null,touchPointID:null,clone:function(){var a=new Rd(this.type,this.bubbles,this.cancelable,this.touchPointID,this.isPrimaryTouchPoint,this.localX,this.localY,this.sizeX,this.sizeY, +this.pressure,this.relatedObject,this.ctrlKey,this.altKey,this.shiftKey,this.commandKey,this.controlKey);a.target=this.target;a.currentTarget=this.currentTarget;a.eventPhase=this.eventPhase;return a},toString:function(){return this.__formatToString("TouchEvent","type bubbles cancelable touchPointID isPrimaryTouchPoint localX localY sizeX sizeY pressure relatedObject ctrlKey altKey shiftKey commandKey controlKey".split(" "))},updateAfterEvent:function(){},__init:function(){la.prototype.__init.call(this); +this.touchPointID=0;this.isPrimaryTouchPoint=!1;this.pressure=this.sizeY=this.sizeX=this.localY=this.localX=0;this.relatedObject=null;this.controlKey=this.commandKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.stageY=this.stageX=NaN},__class__:Rd});var Ti=function(a,b,c,d){null==c&&(c=!0);null==b&&(b=!0);Se.call(this,a,b,c);this.error=d};k["openfl.events.UncaughtErrorEvent"]=Ti;Ti.__name__="openfl.events.UncaughtErrorEvent";Ti.__super__=Se;Ti.prototype=u(Se.prototype,{error:null,clone:function(){var a= +new Ti(this.type,this.bubbles,this.cancelable,this.error);a.target=this.target;a.currentTarget=this.currentTarget;a.eventPhase=this.eventPhase;return a},toString:function(){return this.__formatToString("UncaughtErrorEvent",["type","bubbles","cancelable","error"])},__init:function(){Se.prototype.__init.call(this);this.error=null},__class__:Ti});var Um=function(){fb.call(this)};k["openfl.events.UncaughtErrorEvents"]=Um;Um.__name__="openfl.events.UncaughtErrorEvents";Um.__super__=fb;Um.prototype=u(fb.prototype, +{__enabled:null,addEventListener:function(a,b,c,d,e){null==e&&(e=!1);null==d&&(d=0);null==c&&(c=!1);fb.prototype.addEventListener.call(this,a,b,c,d,e);Object.prototype.hasOwnProperty.call(this.__eventMap.h,"uncaughtError")&&(this.__enabled=!0)},removeEventListener:function(a,b,c){null==c&&(c=!1);fb.prototype.removeEventListener.call(this,a,b,c);Object.prototype.hasOwnProperty.call(this.__eventMap.h,"uncaughtError")||(this.__enabled=!1)},__class__:Um});var aj=function(){this.__leftExtension=this.__bottomExtension= +0;this.__needSecondBitmapData=!0;this.__numShaderPasses=0;this.__preserveObject=!1;this.__rightExtension=0;this.__shaderBlendMode=10;this.__topExtension=0;this.__smooth=!0};k["openfl.filters.BitmapFilter"]=aj;aj.__name__="openfl.filters.BitmapFilter";aj.prototype={__bottomExtension:null,__leftExtension:null,__needSecondBitmapData:null,__numShaderPasses:null,__preserveObject:null,__renderDirty:null,__rightExtension:null,__shaderBlendMode:null,__smooth:null,__topExtension:null,clone:function(){return new aj}, +__applyFilter:function(a,b,c,d){return b},__initShader:function(a,b,c){return null},__class__:aj};var bj=function(a){null==this.__glFragmentSource&&(this.__glFragmentSource="varying vec2 openfl_TextureCoordv;\n\n\t\tuniform sampler2D openfl_Texture;\n\t\tuniform vec2 openfl_TextureSize;\n\n\t\tvoid main(void) {\n\n\t\t\tgl_FragColor = texture2D (openfl_Texture, openfl_TextureCoordv);\n\n\t\t}");null==this.__glVertexSource&&(this.__glVertexSource="attribute vec4 openfl_Position;\n\t\tattribute vec2 openfl_TextureCoord;\n\n\t\tvarying vec2 openfl_TextureCoordv;\n\n\t\tuniform mat4 openfl_Matrix;\n\t\tuniform vec2 openfl_TextureSize;\n\n\t\tvoid main(void) {\n\n\t\t\topenfl_TextureCoordv = openfl_TextureCoord;\n\n\t\tgl_Position = openfl_Matrix * openfl_Position;\n\n\t\t}"); +bf.call(this,a);this.__isGenerated=!0;this.__initGL()};k["openfl.filters.BitmapFilterShader"]=bj;bj.__name__="openfl.filters.BitmapFilterShader";bj.__super__=bf;bj.prototype=u(bf.prototype,{openfl_Position:null,openfl_TextureCoord:null,openfl_Matrix:null,openfl_TextureSize:null,openfl_Texture:null,__class__:bj});var fk=function(){null==this.__glFragmentSource&&(this.__glFragmentSource="varying vec2 openfl_TextureCoordv;\n\t\tuniform sampler2D openfl_Texture;\n\n\t\tuniform mat4 uMultipliers;\n\t\tuniform vec4 uOffsets;\n\n\t\tvoid main(void) {\n\n\t\t\tvec4 color = texture2D (openfl_Texture, openfl_TextureCoordv);\n\n\t\t\tif (color.a == 0.0) {\n\n\t\t\t\tgl_FragColor = vec4 (0.0, 0.0, 0.0, 0.0);\n\n\t\t\t} else {\n\n\t\t\t\tcolor = vec4 (color.rgb / color.a, color.a);\n\t\t\t\tcolor = uOffsets + color * uMultipliers;\n\n\t\t\t\tgl_FragColor = vec4 (color.rgb * color.a, color.a);\n\n\t\t\t}\n\n\t\t}"); +null==this.__glVertexSource&&(this.__glVertexSource="attribute vec4 openfl_Position;\n\t\tattribute vec2 openfl_TextureCoord;\n\n\t\tvarying vec2 openfl_TextureCoordv;\n\n\t\tuniform mat4 openfl_Matrix;\n\t\tuniform vec2 openfl_TextureSize;\n\n\n\t\tvoid main(void) {\n\n\t\t\topenfl_TextureCoordv = openfl_TextureCoord;\n\n\t\tgl_Position = openfl_Matrix * openfl_Position;\n\n\n\t\t}");bj.call(this);this.uMultipliers.value=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];this.uOffsets.value=[0,0,0,0];this.__isGenerated= +!0;this.__initGL()};k["openfl.filters._ColorMatrixFilter.ColorMatrixShader"]=fk;fk.__name__="openfl.filters._ColorMatrixFilter.ColorMatrixShader";fk.__super__=bj;fk.prototype=u(bj.prototype,{init:function(a){var b=this.uMultipliers.value,c=this.uOffsets.value;b[0]=a[0];b[1]=a[1];b[2]=a[2];b[3]=a[3];b[4]=a[5];b[5]=a[6];b[6]=a[7];b[7]=a[8];b[8]=a[10];b[9]=a[11];b[10]=a[12];b[11]=a[13];b[12]=a[15];b[13]=a[16];b[14]=a[17];b[15]=a[18];c[0]=a[4]/255;c[1]=a[9]/255;c[2]=a[14]/255;c[3]=a[19]/255},uMultipliers:null, +uOffsets:null,__class__:fk});var dg=function(a){aj.call(this);this.set_matrix(a);this.__numShaderPasses=1;this.__needSecondBitmapData=!1};k["openfl.filters.ColorMatrixFilter"]=dg;dg.__name__="openfl.filters.ColorMatrixFilter";dg.__super__=aj;dg.prototype=u(aj.prototype,{__matrix:null,clone:function(){return new dg(this.__matrix)},__applyFilter:function(a,b,c,d){var e=b.image,f=a.image;za.convertToData(e);za.convertToData(f);var h=e.get_data(),l=f.get_data(),k=d.x-c.x|0;d=d.y-c.y|0;b=4*b.width;var m= +4*a.width,n=e.buffer.format,p=f.buffer.format;e=e.buffer.premultiplied;f=f.buffer.premultiplied;for(var r=0,q=0,v,u,w=c.y|0,B=c.height|0;w<B;)for(var E=w++,C=c.x|0,N=c.width|0;C<N;){u=C++;v=E*b+4*u;u=(E+k)*m+4*(u+d);var z=n,J=e;null==J&&(J=!1);null==z&&(z=0);switch(z){case 0:r=(h[v]&255)<<24|(h[v+1]&255)<<16|(h[v+2]&255)<<8|h[v+3]&255;break;case 1:r=(h[v+1]&255)<<24|(h[v+2]&255)<<16|(h[v+3]&255)<<8|h[v]&255;break;case 2:r=(h[v+2]&255)<<24|(h[v+1]&255)<<16|(h[v]&255)<<8|h[v+3]&255}J&&0!=(r&255)&&255!= +(r&255)&&(I.unmult=255/(r&255),r=(I.__clamp[Math.round((r>>>24&255)*I.unmult)]&255)<<24|(I.__clamp[Math.round((r>>>16&255)*I.unmult)]&255)<<16|(I.__clamp[Math.round((r>>>8&255)*I.unmult)]&255)<<8|r&255);0==(r&255)?q=0:(q=((Math.max(0,Math.min(this.__matrix[0]*(r>>>24&255)+this.__matrix[1]*(r>>>16&255)+this.__matrix[2]*(r>>>8&255)+this.__matrix[3]*(r&255)+this.__matrix[4],255))|0)&255)<<24|(q>>>16&255)<<16|(q>>>8&255)<<8|q&255,q=(q>>>24&255)<<24|((Math.max(0,Math.min(this.__matrix[5]*(r>>>24&255)+ +this.__matrix[6]*(r>>>16&255)+this.__matrix[7]*(r>>>8&255)+this.__matrix[8]*(r&255)+this.__matrix[9],255))|0)&255)<<16|(q>>>8&255)<<8|q&255,q=(q>>>24&255)<<24|(q>>>16&255)<<16|((Math.max(0,Math.min(this.__matrix[10]*(r>>>24&255)+this.__matrix[11]*(r>>>16&255)+this.__matrix[12]*(r>>>8&255)+this.__matrix[13]*(r&255)+this.__matrix[14],255))|0)&255)<<8|q&255,q=(q>>>24&255)<<24|(q>>>16&255)<<16|(q>>>8&255)<<8|(Math.max(0,Math.min(this.__matrix[15]*(r>>>24&255)+this.__matrix[16]*(r>>>16&255)+this.__matrix[17]* +(r>>>8&255)+this.__matrix[18]*(r&255)+this.__matrix[19],255))|0)&255);v=p;z=f;null==z&&(z=!1);null==v&&(v=0);z&&(0==(q&255)?0!=q&&(q=0):255!=(q&255)&&(I.a16=I.__alpha16[q&255],q=((q>>>24&255)*I.a16>>16&255)<<24|((q>>>16&255)*I.a16>>16&255)<<16|((q>>>8&255)*I.a16>>16&255)<<8|q&255));switch(v){case 0:l[u]=q>>>24&255;l[u+1]=q>>>16&255;l[u+2]=q>>>8&255;l[u+3]=q&255;break;case 1:l[u]=q&255;l[u+1]=q>>>24&255;l[u+2]=q>>>16&255;l[u+3]=q>>>8&255;break;case 2:l[u]=q>>>8&255,l[u+1]=q>>>16&255,l[u+2]=q>>>24& +255,l[u+3]=q&255}}a.image.dirty=!0;return a},__initShader:function(a,b,c){dg.__colorMatrixShader.init(this.get_matrix());return dg.__colorMatrixShader},get_matrix:function(){return this.__matrix},set_matrix:function(a){null==a&&(a=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0]);return this.__matrix=a},__class__:dg,__properties__:{set_matrix:"set_matrix",get_matrix:"get_matrix"}});var Yd=function(a){null!=a&&16==a.get_length()?this.rawData=a.concat(null):this.rawData=ub.toFloatVector(null,null,null,[1, +0,0,0,0,1,0,0,0,0,1,0,0,0,0,1])};k["openfl.geom.Matrix3D"]=Yd;Yd.__name__="openfl.geom.Matrix3D";Yd.create2D=function(a,b,c,d){null==d&&(d=0);null==c&&(c=1);var e=d*Math.PI/180;d=Math.cos(e);e=Math.sin(e);return new Yd(ub.toFloatVector(null,null,null,[d*c,-e*c,0,0,e*c,d*c,0,0,0,0,1,0,a,b,0,1]))};Yd.createABCD=function(a,b,c,d,e,f){return new Yd(ub.toFloatVector(null,null,null,[a,b,0,0,c,d,0,0,0,0,1,0,e,f,0,1]))};Yd.createOrtho=function(a,b,c,d,e,f){var g=1/(b-a),h=1/(d-c),k=1/(f-e);return new Yd(ub.toFloatVector(null, +null,null,[2*g,0,0,0,0,2*h,0,0,0,0,-2*k,0,-(a+b)*g,-(c+d)*h,-(e+f)*k,1]))};Yd.interpolate=function(a,b,c){for(var d=new Yd,e=0;16>e;){var f=e++;d.rawData.set(f,a.rawData.get(f)+(b.rawData.get(f)-a.rawData.get(f))*c)}return d};Yd.__getAxisRotation=function(a,b,c,d){var e=new Yd;a=new hd(a,b,c);d=Math.PI/180*-d;c=Math.cos(d);d=Math.sin(d);b=1-c;e.rawData.set(0,c+a.x*a.x*b);e.rawData.set(5,c+a.y*a.y*b);e.rawData.set(10,c+a.z*a.z*b);c=a.x*a.y*b;var f=a.z*d;e.rawData.set(4,c+f);e.rawData.set(1,c-f);c= +a.x*a.z*b;f=a.y*d;e.rawData.set(8,c-f);e.rawData.set(2,c+f);c=a.y*a.z*b;f=a.x*d;e.rawData.set(9,c+f);e.rawData.set(6,c-f);return e};Yd.prototype={rawData:null,append:function(a){var b=this.rawData.get(0),c=this.rawData.get(4),d=this.rawData.get(8),e=this.rawData.get(12),f=this.rawData.get(1),h=this.rawData.get(5),l=this.rawData.get(9),k=this.rawData.get(13),m=this.rawData.get(2),n=this.rawData.get(6),p=this.rawData.get(10),r=this.rawData.get(14),q=this.rawData.get(3),v=this.rawData.get(7),u=this.rawData.get(11), +w=this.rawData.get(15),B=a.rawData.get(0),E=a.rawData.get(4),C=a.rawData.get(8),N=a.rawData.get(12),z=a.rawData.get(1),J=a.rawData.get(5),A=a.rawData.get(9),D=a.rawData.get(13),F=a.rawData.get(2),Ha=a.rawData.get(6),G=a.rawData.get(10),H=a.rawData.get(14),I=a.rawData.get(3),K=a.rawData.get(7),L=a.rawData.get(11);a=a.rawData.get(15);this.rawData.set(0,b*B+f*E+m*C+q*N);this.rawData.set(1,b*z+f*J+m*A+q*D);this.rawData.set(2,b*F+f*Ha+m*G+q*H);this.rawData.set(3,b*I+f*K+m*L+q*a);this.rawData.set(4,c*B+ +h*E+n*C+v*N);this.rawData.set(5,c*z+h*J+n*A+v*D);this.rawData.set(6,c*F+h*Ha+n*G+v*H);this.rawData.set(7,c*I+h*K+n*L+v*a);this.rawData.set(8,d*B+l*E+p*C+u*N);this.rawData.set(9,d*z+l*J+p*A+u*D);this.rawData.set(10,d*F+l*Ha+p*G+u*H);this.rawData.set(11,d*I+l*K+p*L+u*a);this.rawData.set(12,e*B+k*E+r*C+w*N);this.rawData.set(13,e*z+k*J+r*A+w*D);this.rawData.set(14,e*F+k*Ha+r*G+w*H);this.rawData.set(15,e*I+k*K+r*L+w*a)},appendRotation:function(a,b,c){var d=0,e=d,f=e;null!=c&&(f=c.x,e=c.y,d=c.z);c=a*Math.PI/ +180;a=Math.cos(c);c=Math.sin(c);var h=b.x,l=b.y;b=b.z;var k=h*h,m=l*l,n=b*b,p=k+m+n;if(0!=p){var r=Math.sqrt(p);h/=r;l/=r;b/=r;k/=p;m/=p;n/=p}p=1-a;r=new Yd;var q=r.rawData;q.set(0,k+(m+n)*a);q.set(1,h*l*p+b*c);q.set(2,h*b*p-l*c);q.set(4,h*l*p-b*c);q.set(5,m+(k+n)*a);q.set(6,l*b*p+h*c);q.set(8,h*b*p+l*c);q.set(9,l*b*p-h*c);q.set(10,n+(k+m)*a);q.set(12,(f*(m+n)-h*(e*l+d*b))*p+(e*b-d*l)*c);q.set(13,(e*(k+n)-l*(f*h+d*b))*p+(d*h-f*b)*c);q.set(14,(d*(k+m)-b*(f*h+e*l))*p+(f*l-e*h)*c);this.append(r)},appendScale:function(a, +b,c){this.append(new Yd(ub.toFloatVector(null,null,null,[a,0,0,0,0,b,0,0,0,0,c,0,0,0,0,1])))},appendTranslation:function(a,b,c){var d=this.rawData;d.set(12,d.get(12)+a);d=this.rawData;d.set(13,d.get(13)+b);d=this.rawData;d.set(14,d.get(14)+c)},clone:function(){return new Yd(this.rawData.copy())},copyColumnFrom:function(a,b){switch(a){case 0:this.rawData.set(0,b.x);this.rawData.set(1,b.y);this.rawData.set(2,b.z);this.rawData.set(3,b.w);break;case 1:this.rawData.set(4,b.x);this.rawData.set(5,b.y);this.rawData.set(6, +b.z);this.rawData.set(7,b.w);break;case 2:this.rawData.set(8,b.x);this.rawData.set(9,b.y);this.rawData.set(10,b.z);this.rawData.set(11,b.w);break;case 3:this.rawData.set(12,b.x),this.rawData.set(13,b.y),this.rawData.set(14,b.z),this.rawData.set(15,b.w)}},copyColumnTo:function(a,b){switch(a){case 0:b.x=this.rawData.get(0);b.y=this.rawData.get(1);b.z=this.rawData.get(2);b.w=this.rawData.get(3);break;case 1:b.x=this.rawData.get(4);b.y=this.rawData.get(5);b.z=this.rawData.get(6);b.w=this.rawData.get(7); +break;case 2:b.x=this.rawData.get(8);b.y=this.rawData.get(9);b.z=this.rawData.get(10);b.w=this.rawData.get(11);break;case 3:b.x=this.rawData.get(12),b.y=this.rawData.get(13),b.z=this.rawData.get(14),b.w=this.rawData.get(15)}},copyFrom:function(a){this.rawData=a.rawData.copy()},copyRawDataFrom:function(a,b,c){null==c&&(c=!1);null==b&&(b=0);c&&this.transpose();for(var d=0,e=a.get_length()-b;d<e;){var f=d++;this.rawData.set(f,a.get(f+b))}c&&this.transpose()},copyRawDataTo:function(a,b,c){null==c&&(c= +!1);null==b&&(b=0);c&&this.transpose();for(var d=0,e=this.rawData.get_length();d<e;){var f=d++;a.set(f+b,this.rawData.get(f))}c&&this.transpose()},copyRowFrom:function(a,b){switch(a){case 0:this.rawData.set(0,b.x);this.rawData.set(4,b.y);this.rawData.set(8,b.z);this.rawData.set(12,b.w);break;case 1:this.rawData.set(1,b.x);this.rawData.set(5,b.y);this.rawData.set(9,b.z);this.rawData.set(13,b.w);break;case 2:this.rawData.set(2,b.x);this.rawData.set(6,b.y);this.rawData.set(10,b.z);this.rawData.set(14, +b.w);break;case 3:this.rawData.set(3,b.x),this.rawData.set(7,b.y),this.rawData.set(11,b.z),this.rawData.set(15,b.w)}},copyRowTo:function(a,b){switch(a){case 0:b.x=this.rawData.get(0);b.y=this.rawData.get(4);b.z=this.rawData.get(8);b.w=this.rawData.get(12);break;case 1:b.x=this.rawData.get(1);b.y=this.rawData.get(5);b.z=this.rawData.get(9);b.w=this.rawData.get(13);break;case 2:b.x=this.rawData.get(2);b.y=this.rawData.get(6);b.z=this.rawData.get(10);b.w=this.rawData.get(14);break;case 3:b.x=this.rawData.get(3), +b.y=this.rawData.get(7),b.z=this.rawData.get(11),b.w=this.rawData.get(15)}},copyToMatrix3D:function(a){a.rawData=this.rawData.copy()},decompose:function(a){null==a&&(a=1);var b=ub.toObjectVector(null),c=this.clone().rawData.copy(),d=new hd(c.get(12),c.get(13),c.get(14));c.set(12,0);c.set(13,0);c.set(14,0);var e=new hd;e.x=Math.sqrt(c.get(0)*c.get(0)+c.get(1)*c.get(1)+c.get(2)*c.get(2));e.y=Math.sqrt(c.get(4)*c.get(4)+c.get(5)*c.get(5)+c.get(6)*c.get(6));e.z=Math.sqrt(c.get(8)*c.get(8)+c.get(9)*c.get(9)+ +c.get(10)*c.get(10));0>c.get(0)*(c.get(5)*c.get(10)-c.get(6)*c.get(9))-c.get(1)*(c.get(4)*c.get(10)-c.get(6)*c.get(8))+c.get(2)*(c.get(4)*c.get(9)-c.get(5)*c.get(8))&&(e.z=-e.z);var f=c;f.set(0,f.get(0)/e.x);f=c;f.set(1,f.get(1)/e.x);f=c;f.set(2,f.get(2)/e.x);f=c;f.set(4,f.get(4)/e.y);f=c;f.set(5,f.get(5)/e.y);f=c;f.set(6,f.get(6)/e.y);f=c;f.set(8,f.get(8)/e.z);f=c;f.set(9,f.get(9)/e.z);f=c;f.set(10,f.get(10)/e.z);f=new hd;switch(a){case 0:f.w=Math.acos((c.get(0)+c.get(5)+c.get(10)-1)/2);a=Math.sqrt((c.get(6)- +c.get(9))*(c.get(6)-c.get(9))+(c.get(8)-c.get(2))*(c.get(8)-c.get(2))+(c.get(1)-c.get(4))*(c.get(1)-c.get(4)));0!=a?(f.x=(c.get(6)-c.get(9))/a,f.y=(c.get(8)-c.get(2))/a,f.z=(c.get(1)-c.get(4))/a):f.x=f.y=f.z=0;break;case 1:f.y=Math.asin(-c.get(2));1!=c.get(2)&&-1!=c.get(2)?(f.x=Math.atan2(c.get(6),c.get(10)),f.z=Math.atan2(c.get(1),c.get(0))):(f.z=0,f.x=Math.atan2(c.get(4),c.get(5)));break;case 2:a=c.get(0)+c.get(5)+c.get(10),0<a?(f.w=Math.sqrt(1+a)/2,f.x=(c.get(6)-c.get(9))/(4*f.w),f.y=(c.get(8)- +c.get(2))/(4*f.w),f.z=(c.get(1)-c.get(4))/(4*f.w)):c.get(0)>c.get(5)&&c.get(0)>c.get(10)?(f.x=Math.sqrt(1+c.get(0)-c.get(5)-c.get(10))/2,f.w=(c.get(6)-c.get(9))/(4*f.x),f.y=(c.get(1)+c.get(4))/(4*f.x),f.z=(c.get(8)+c.get(2))/(4*f.x)):c.get(5)>c.get(10)?(f.y=Math.sqrt(1+c.get(5)-c.get(0)-c.get(10))/2,f.x=(c.get(1)+c.get(4))/(4*f.y),f.w=(c.get(8)-c.get(2))/(4*f.y),f.z=(c.get(6)+c.get(9))/(4*f.y)):(f.z=Math.sqrt(1+c.get(10)-c.get(0)-c.get(5))/2,f.x=(c.get(8)+c.get(2))/(4*f.z),f.y=(c.get(6)+c.get(9))/ +(4*f.z),f.w=(c.get(1)-c.get(4))/(4*f.z))}b.push(d);b.push(f);b.push(e);return b},deltaTransformVector:function(a){var b=a.x,c=a.y;a=a.z;return new hd(b*this.rawData.get(0)+c*this.rawData.get(4)+a*this.rawData.get(8),b*this.rawData.get(1)+c*this.rawData.get(5)+a*this.rawData.get(9),b*this.rawData.get(2)+c*this.rawData.get(6)+a*this.rawData.get(10),b*this.rawData.get(3)+c*this.rawData.get(7)+a*this.rawData.get(11))},identity:function(){this.rawData=ub.toFloatVector(null,null,null,[1,0,0,0,0,1,0,0,0, +0,1,0,0,0,0,1])},interpolateTo:function(a,b){for(var c=0;16>c;){var d=c++;this.rawData.set(d,this.rawData.get(d)+(a.rawData.get(d)-this.rawData.get(d))*b)}},invert:function(){var a=this.get_determinant(),b=1E-11<Math.abs(a);if(b){a=1/a;var c=this.rawData.get(0),d=this.rawData.get(4),e=this.rawData.get(8),f=this.rawData.get(12),h=this.rawData.get(1),l=this.rawData.get(5),k=this.rawData.get(9),m=this.rawData.get(13),n=this.rawData.get(2),p=this.rawData.get(6),r=this.rawData.get(10),q=this.rawData.get(14), +v=this.rawData.get(3),u=this.rawData.get(7),w=this.rawData.get(11),B=this.rawData.get(15);this.rawData.set(0,a*(l*(r*B-q*w)-k*(p*B-q*u)+m*(p*w-r*u)));this.rawData.set(1,-a*(h*(r*B-q*w)-k*(n*B-q*v)+m*(n*w-r*v)));this.rawData.set(2,a*(h*(p*B-q*u)-l*(n*B-q*v)+m*(n*u-p*v)));this.rawData.set(3,-a*(h*(p*w-r*u)-l*(n*w-r*v)+k*(n*u-p*v)));this.rawData.set(4,-a*(d*(r*B-q*w)-e*(p*B-q*u)+f*(p*w-r*u)));this.rawData.set(5,a*(c*(r*B-q*w)-e*(n*B-q*v)+f*(n*w-r*v)));this.rawData.set(6,-a*(c*(p*B-q*u)-d*(n*B-q*v)+f* +(n*u-p*v)));this.rawData.set(7,a*(c*(p*w-r*u)-d*(n*w-r*v)+e*(n*u-p*v)));this.rawData.set(8,a*(d*(k*B-m*w)-e*(l*B-m*u)+f*(l*w-k*u)));this.rawData.set(9,-a*(c*(k*B-m*w)-e*(h*B-m*v)+f*(h*w-k*v)));this.rawData.set(10,a*(c*(l*B-m*u)-d*(h*B-m*v)+f*(h*u-l*v)));this.rawData.set(11,-a*(c*(l*w-k*u)-d*(h*w-k*v)+e*(h*u-l*v)));this.rawData.set(12,-a*(d*(k*q-m*r)-e*(l*q-m*p)+f*(l*r-k*p)));this.rawData.set(13,a*(c*(k*q-m*r)-e*(h*q-m*n)+f*(h*r-k*n)));this.rawData.set(14,-a*(c*(l*q-m*p)-d*(h*q-m*n)+f*(h*p-l*n))); +this.rawData.set(15,a*(c*(l*r-k*p)-d*(h*r-k*n)+e*(h*p-l*n)))}return b},pointAt:function(a,b,c){null==b&&(b=new hd(0,0,-1));null==c&&(c=new hd(0,-1,0));b=b.subtract(a);c=c.clone();b.normalize();c.normalize();var d=b.clone();d.scaleBy(c.dotProduct(b));c=c.subtract(d);0<c.get_length()?c.normalize():c=0!=b.x?new hd(-b.y,b.x,0):new hd(1,0,0);d=c.crossProduct(b);d.normalize();this.rawData.set(0,d.x);this.rawData.set(4,d.y);this.rawData.set(8,d.z);this.rawData.set(12,0);this.rawData.set(1,c.x);this.rawData.set(5, +c.y);this.rawData.set(9,c.z);this.rawData.set(13,0);this.rawData.set(2,b.x);this.rawData.set(6,b.y);this.rawData.set(10,b.z);this.rawData.set(14,0);this.rawData.set(3,a.x);this.rawData.set(7,a.y);this.rawData.set(11,a.z);this.rawData.set(15,1)},prepend:function(a){var b=a.rawData.get(0),c=a.rawData.get(4),d=a.rawData.get(8),e=a.rawData.get(12),f=a.rawData.get(1),h=a.rawData.get(5),l=a.rawData.get(9),k=a.rawData.get(13),m=a.rawData.get(2),n=a.rawData.get(6),p=a.rawData.get(10),r=a.rawData.get(14), +q=a.rawData.get(3),v=a.rawData.get(7),u=a.rawData.get(11);a=a.rawData.get(15);var w=this.rawData.get(0),B=this.rawData.get(4),E=this.rawData.get(8),C=this.rawData.get(12),N=this.rawData.get(1),z=this.rawData.get(5),J=this.rawData.get(9),A=this.rawData.get(13),D=this.rawData.get(2),F=this.rawData.get(6),Ha=this.rawData.get(10),G=this.rawData.get(14),H=this.rawData.get(3),I=this.rawData.get(7),K=this.rawData.get(11),L=this.rawData.get(15);this.rawData.set(0,b*w+f*B+m*E+q*C);this.rawData.set(1,b*N+f* +z+m*J+q*A);this.rawData.set(2,b*D+f*F+m*Ha+q*G);this.rawData.set(3,b*H+f*I+m*K+q*L);this.rawData.set(4,c*w+h*B+n*E+v*C);this.rawData.set(5,c*N+h*z+n*J+v*A);this.rawData.set(6,c*D+h*F+n*Ha+v*G);this.rawData.set(7,c*H+h*I+n*K+v*L);this.rawData.set(8,d*w+l*B+p*E+u*C);this.rawData.set(9,d*N+l*z+p*J+u*A);this.rawData.set(10,d*D+l*F+p*Ha+u*G);this.rawData.set(11,d*H+l*I+p*K+u*L);this.rawData.set(12,e*w+k*B+r*E+a*C);this.rawData.set(13,e*N+k*z+r*J+a*A);this.rawData.set(14,e*D+k*F+r*Ha+a*G);this.rawData.set(15, +e*H+k*I+r*K+a*L)},prependRotation:function(a,b,c){var d=0,e=d,f=e;null!=c&&(f=c.x,e=c.y,d=c.z);c=a*Math.PI/180;a=Math.cos(c);c=Math.sin(c);var h=b.x,l=b.y;b=b.z;var k=h*h,m=l*l,n=b*b,p=k+m+n;if(0!=p){var r=Math.sqrt(p);h/=r;l/=r;b/=r;k/=p;m/=p;n/=p}p=1-a;r=new Yd;var q=r.rawData;q.set(0,k+(m+n)*a);q.set(1,h*l*p+b*c);q.set(2,h*b*p-l*c);q.set(4,h*l*p-b*c);q.set(5,m+(k+n)*a);q.set(6,l*b*p+h*c);q.set(8,h*b*p+l*c);q.set(9,l*b*p-h*c);q.set(10,n+(k+m)*a);q.set(12,(f*(m+n)-h*(e*l+d*b))*p+(e*b-d*l)*c);q.set(13, +(e*(k+n)-l*(f*h+d*b))*p+(d*h-f*b)*c);q.set(14,(d*(k+m)-b*(f*h+e*l))*p+(f*l-e*h)*c);this.prepend(r)},prependScale:function(a,b,c){this.prepend(new Yd(ub.toFloatVector(null,null,null,[a,0,0,0,0,b,0,0,0,0,c,0,0,0,0,1])))},prependTranslation:function(a,b,c){var d=new Yd;d.set_position(new hd(a,b,c));this.prepend(d)},recompose:function(a,b){null==b&&(b=1);if(3>a.get_length()||0==a.get(2).x||0==a.get(2).y||0==a.get(2).z)return!1;this.identity();var c=[];c[0]=c[1]=c[2]=a.get(2).x;c[4]=c[5]=c[6]=a.get(2).y; +c[8]=c[9]=c[10]=a.get(2).z;if(1==b){b=Math.cos(a.get(1).x);var d=Math.cos(a.get(1).y),e=Math.cos(a.get(1).z),f=Math.sin(a.get(1).x),h=Math.sin(a.get(1).y),l=Math.sin(a.get(1).z);this.rawData.set(0,d*e*c[0]);this.rawData.set(1,d*l*c[1]);this.rawData.set(2,-h*c[2]);this.rawData.set(3,0);this.rawData.set(4,(f*h*e-b*l)*c[4]);this.rawData.set(5,(f*h*l+b*e)*c[5]);this.rawData.set(6,f*d*c[6]);this.rawData.set(7,0);this.rawData.set(8,(b*h*e+f*l)*c[8]);this.rawData.set(9,(b*h*l-f*e)*c[9]);this.rawData.set(10, +b*d*c[10])}else d=a.get(1).x,e=a.get(1).y,f=a.get(1).z,h=a.get(1).w,0==b&&(d*=Math.sin(h/2),e*=Math.sin(h/2),f*=Math.sin(h/2),h=Math.cos(h/2)),this.rawData.set(0,(1-2*e*e-2*f*f)*c[0]),this.rawData.set(1,(2*d*e+2*h*f)*c[1]),this.rawData.set(2,(2*d*f-2*h*e)*c[2]),this.rawData.set(3,0),this.rawData.set(4,(2*d*e-2*h*f)*c[4]),this.rawData.set(5,(1-2*d*d-2*f*f)*c[5]),this.rawData.set(6,(2*e*f+2*h*d)*c[6]),this.rawData.set(7,0),this.rawData.set(8,(2*d*f+2*h*e)*c[8]),this.rawData.set(9,(2*e*f-2*h*d)*c[9]), +this.rawData.set(10,(1-2*d*d-2*e*e)*c[10]);this.rawData.set(11,0);this.rawData.set(12,a.get(0).x);this.rawData.set(13,a.get(0).y);this.rawData.set(14,a.get(0).z);this.rawData.set(15,1);0==a.get(2).x&&this.rawData.set(0,1E-15);0==a.get(2).y&&this.rawData.set(5,1E-15);0==a.get(2).z&&this.rawData.set(10,1E-15);return!(0==a.get(2).x||0==a.get(2).y||0==a.get(2).y)},transformVector:function(a){var b=a.x,c=a.y;a=a.z;return new hd(b*this.rawData.get(0)+c*this.rawData.get(4)+a*this.rawData.get(8)+this.rawData.get(12), +b*this.rawData.get(1)+c*this.rawData.get(5)+a*this.rawData.get(9)+this.rawData.get(13),b*this.rawData.get(2)+c*this.rawData.get(6)+a*this.rawData.get(10)+this.rawData.get(14),b*this.rawData.get(3)+c*this.rawData.get(7)+a*this.rawData.get(11)+this.rawData.get(15))},transformVectors:function(a,b){for(var c=0,d,e,f;c+3<=a.get_length();)d=a.get(c),e=a.get(c+1),f=a.get(c+2),b.set(c,d*this.rawData.get(0)+e*this.rawData.get(4)+f*this.rawData.get(8)+this.rawData.get(12)),b.set(c+1,d*this.rawData.get(1)+e* +this.rawData.get(5)+f*this.rawData.get(9)+this.rawData.get(13)),b.set(c+2,d*this.rawData.get(2)+e*this.rawData.get(6)+f*this.rawData.get(10)+this.rawData.get(14)),c+=3},transpose:function(){var a=this.rawData.copy();this.rawData.set(1,a.get(4));this.rawData.set(2,a.get(8));this.rawData.set(3,a.get(12));this.rawData.set(4,a.get(1));this.rawData.set(6,a.get(9));this.rawData.set(7,a.get(13));this.rawData.set(8,a.get(2));this.rawData.set(9,a.get(6));this.rawData.set(11,a.get(14));this.rawData.set(12, +a.get(3));this.rawData.set(13,a.get(7));this.rawData.set(14,a.get(11))},get_determinant:function(){return(this.rawData.get(0)*this.rawData.get(5)-this.rawData.get(4)*this.rawData.get(1))*(this.rawData.get(10)*this.rawData.get(15)-this.rawData.get(14)*this.rawData.get(11))-(this.rawData.get(0)*this.rawData.get(9)-this.rawData.get(8)*this.rawData.get(1))*(this.rawData.get(6)*this.rawData.get(15)-this.rawData.get(14)*this.rawData.get(7))+(this.rawData.get(0)*this.rawData.get(13)-this.rawData.get(12)* +this.rawData.get(1))*(this.rawData.get(6)*this.rawData.get(11)-this.rawData.get(10)*this.rawData.get(7))+(this.rawData.get(4)*this.rawData.get(9)-this.rawData.get(8)*this.rawData.get(5))*(this.rawData.get(2)*this.rawData.get(15)-this.rawData.get(14)*this.rawData.get(3))-(this.rawData.get(4)*this.rawData.get(13)-this.rawData.get(12)*this.rawData.get(5))*(this.rawData.get(2)*this.rawData.get(11)-this.rawData.get(10)*this.rawData.get(3))+(this.rawData.get(8)*this.rawData.get(13)-this.rawData.get(12)* +this.rawData.get(9))*(this.rawData.get(2)*this.rawData.get(7)-this.rawData.get(6)*this.rawData.get(3))},get_position:function(){return new hd(this.rawData.get(12),this.rawData.get(13),this.rawData.get(14))},set_position:function(a){this.rawData.set(12,a.x);this.rawData.set(13,a.y);this.rawData.set(14,a.z);return a},__class__:Yd,__properties__:{set_position:"set_position",get_position:"get_position",get_determinant:"get_determinant"}};var vk=function(a){this.__colorTransform=new Gc;this.concatenatedColorTransform= +new Gc;this.pixelBounds=new fa;this.__displayObject=a;this.__hasMatrix=!0};k["openfl.geom.Transform"]=vk;vk.__name__="openfl.geom.Transform";vk.prototype={concatenatedColorTransform:null,pixelBounds:null,__colorTransform:null,__displayObject:null,__hasMatrix:null,__hasMatrix3D:null,get_colorTransform:function(){return this.__colorTransform.__clone()},set_colorTransform:function(a){this.__colorTransform.__equals(a,!1)||(this.__colorTransform.__copyFrom(a),null!=a&&this.__displayObject.set_alpha(a.alphaMultiplier), +a=this.__displayObject,a.__renderDirty||(a.__renderDirty=!0,a.__setParentRenderDirty()));return this.__colorTransform},get_concatenatedMatrix:function(){return this.__hasMatrix?this.__displayObject.__getWorldTransform().clone():null},get_matrix:function(){return this.__hasMatrix?this.__displayObject.__transform.clone():null},set_matrix:function(a){if(null==a)return this.__hasMatrix=!1,null;this.__hasMatrix=!0;this.__hasMatrix3D=!1;null!=this.__displayObject&&this.__setTransform(a.a,a.b,a.c,a.d,a.tx, +a.ty);return a},get_matrix3D:function(){if(this.__hasMatrix3D){var a=this.__displayObject.__transform;return new Yd(ub.toFloatVector(null,null,null,[a.a,a.b,0,0,a.c,a.d,0,0,0,0,1,0,a.tx,a.ty,0,1]))}return null},set_matrix3D:function(a){if(null==a)return this.__hasMatrix3D=!1,null;this.__hasMatrix=!1;this.__hasMatrix3D=!0;this.__setTransform(a.rawData.get(0),a.rawData.get(1),a.rawData.get(5),a.rawData.get(6),a.rawData.get(12),a.rawData.get(13));return a},__setTransform:function(a,b,c,d,e,f){if(null!= +this.__displayObject){var g=this.__displayObject.__transform;if(g.a!=a||g.b!=b||g.c!=c||g.d!=d||g.tx!=e||g.ty!=f){var h=0==b?a:Math.sqrt(a*a+b*b);var k=0==c?d:Math.sqrt(c*c+d*d);this.__displayObject.__scaleX=h;this.__displayObject.__scaleY=k;h=180/Math.PI*Math.atan2(d,c)-90;h!=this.__displayObject.__rotation&&(this.__displayObject.__rotation=h,h*=Math.PI/180,this.__displayObject.__rotationSine=Math.sin(h),this.__displayObject.__rotationCosine=Math.cos(h));g.a=a;g.b=b;g.c=c;g.d=d;g.tx=e;g.ty=f;this.__displayObject.__setTransformDirty()}}}, +__class__:vk,__properties__:{set_matrix3D:"set_matrix3D",get_matrix3D:"get_matrix3D",set_matrix:"set_matrix",get_matrix:"get_matrix",get_concatenatedMatrix:"get_concatenatedMatrix",set_colorTransform:"set_colorTransform",get_colorTransform:"get_colorTransform"}};var hd=function(a,b,c,d){null==d&&(d=0);null==c&&(c=0);null==b&&(b=0);null==a&&(a=0);this.w=d;this.x=a;this.y=b;this.z=c};k["openfl.geom.Vector3D"]=hd;hd.__name__="openfl.geom.Vector3D";hd.__properties__={get_Z_AXIS:"get_Z_AXIS",get_Y_AXIS:"get_Y_AXIS", +get_X_AXIS:"get_X_AXIS"};hd.angleBetween=function(a,b){var c=a.get_length(),d=b.get_length();a=a.dotProduct(b);0!=c&&(a/=c);0!=d&&(a/=d);return Math.acos(a)};hd.distance=function(a,b){var c=b.x-a.x,d=b.y-a.y;a=b.z-a.z;return Math.sqrt(c*c+d*d+a*a)};hd.get_X_AXIS=function(){return new hd(1,0,0)};hd.get_Y_AXIS=function(){return new hd(0,1,0)};hd.get_Z_AXIS=function(){return new hd(0,0,1)};hd.prototype={w:null,x:null,y:null,z:null,add:function(a){return new hd(this.x+a.x,this.y+a.y,this.z+a.z)},clone:function(){return new hd(this.x, +this.y,this.z,this.w)},copyFrom:function(a){this.x=a.x;this.y=a.y;this.z=a.z},crossProduct:function(a){return new hd(this.y*a.z-this.z*a.y,this.z*a.x-this.x*a.z,this.x*a.y-this.y*a.x,1)},decrementBy:function(a){this.x-=a.x;this.y-=a.y;this.z-=a.z},dotProduct:function(a){return this.x*a.x+this.y*a.y+this.z*a.z},equals:function(a,b){null==b&&(b=!1);return this.x==a.x&&this.y==a.y&&this.z==a.z?b?this.w==a.w:!0:!1},incrementBy:function(a){this.x+=a.x;this.y+=a.y;this.z+=a.z},nearEquals:function(a,b,c){null== +c&&(c=!1);return Math.abs(this.x-a.x)<b&&Math.abs(this.y-a.y)<b&&Math.abs(this.z-a.z)<b?c?Math.abs(this.w-a.w)<b:!0:!1},negate:function(){this.x*=-1;this.y*=-1;this.z*=-1},normalize:function(){var a=this.get_length();0!=a&&(this.x/=a,this.y/=a,this.z/=a);return a},project:function(){this.x/=this.w;this.y/=this.w;this.z/=this.w},scaleBy:function(a){this.x*=a;this.y*=a;this.z*=a},setTo:function(a,b,c){this.x=a;this.y=b;this.z=c},subtract:function(a){return new hd(this.x-a.x,this.y-a.y,this.z-a.z)}, +toString:function(){return"Vector3D("+this.x+", "+this.y+", "+this.z+")"},get_length:function(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)},get_lengthSquared:function(){return this.x*this.x+this.y*this.y+this.z*this.z},__class__:hd,__properties__:{get_lengthSquared:"get_lengthSquared",get_length:"get_length"}};var kp=function(){};k["openfl.media.ID3Info"]=kp;kp.__name__="openfl.media.ID3Info";kp.prototype={album:null,artist:null,comment:null,genre:null,songName:null,track:null,year:null, +__class__:kp};var xf=function(a,b){fb.call(this,this);this.bytesTotal=this.bytesLoaded=0;this.isBuffering=!1;this.url=null;null!=a&&this.load(a,b)};k["openfl.media.Sound"]=xf;xf.__name__="openfl.media.Sound";xf.fromAudioBuffer=function(a){var b=new xf;b.__buffer=a;return b};xf.fromFile=function(a){return xf.fromAudioBuffer(Lc.fromFile(a))};xf.loadFromFile=function(a){return Lc.loadFromFile(a).then(function(a){return eb.withValue(xf.fromAudioBuffer(a))})};xf.loadFromFiles=function(a){return Lc.loadFromFiles(a).then(function(a){return eb.withValue(xf.fromAudioBuffer(a))})}; +xf.__super__=fb;xf.prototype=u(fb.prototype,{bytesLoaded:null,bytesTotal:null,isBuffering:null,url:null,__buffer:null,close:function(){null!=this.__buffer&&(this.__buffer.dispose(),this.__buffer=null)},load:function(a,b){var c=this;this.url=a.url;a=wa.getLibrary("default");if(null!=a&&Object.prototype.hasOwnProperty.call(a.cachedAudioBuffers.h,this.url))this.AudioBuffer_onURLLoad(a.cachedAudioBuffers.h[this.url]);else Lc.loadFromFile(this.url).onComplete(q(this,this.AudioBuffer_onURLLoad)).onError(function(a){c.AudioBuffer_onURLLoad(null)})}, +loadCompressedDataFromByteArray:function(a,b){if(null==a||0>=b)this.dispatchEvent(new lg("ioError"));else{if(ca.gt(a.position,0)||ca.gt(yb.get_length(a),b)){var c=b;null==c&&(c=0);var d=new kc(c),e=a.position;c=b;null==c&&(c=0);null==e&&(e=0);d.writeBytes(a,e,c);a=d}this.__buffer=Lc.fromBytes(yb.toBytes(a));null==this.__buffer?this.dispatchEvent(new lg("ioError")):this.dispatchEvent(new la("complete"))}},loadPCMFromByteArray:function(a,b,c,d,e){null==e&&(e=44100);null==d&&(d=!0);null==c&&(c="float"); +if(null==a)this.dispatchEvent(new lg("ioError"));else{c="float"==c?32:16;d=d?2:1;b=c/8*d*b|0;if(ca.gt(a.position,0)||ca.gt(yb.get_length(a),b)){var f=b;null==f&&(f=0);var h=f=new kc(f),l=a.position;f=b;null==f&&(f=0);null==l&&(l=0);h.writeBytes(a,l,f);a=h}b=new Lc;b.bitsPerSample=c;b.channels=d;a=yb.toArrayBuffer(a);f=null!=a?new Uint8Array(a,0):null;b.data=f;b.sampleRate=e|0;this.__buffer=b;this.dispatchEvent(new la("complete"))}},play:function(a,b,c){null==b&&(b=0);null==a&&(a=0);if(null==this.__buffer|| +32<=od.__soundChannels.length)return null;c=null==c?new hf:c.clone();var d=od.__soundTransform.pan+c.pan;1<d&&(d=1);-1>d&&(d=-1);var e=od.__soundTransform.volume*c.volume,f=new Ro(this.__buffer);f.offset=a|0;1<b&&f.set_loops(b-1);f.set_gain(e);0!=d&&f.set_pan(d);return new jn(f,c)},get_id3:function(){return new kp},get_length:function(){return null!=this.__buffer?1E3*this.__buffer.get_src().duration()|0:0},AudioBuffer_onURLLoad:function(a){null==a?this.dispatchEvent(new lg("ioError")):(this.__buffer= +a,this.dispatchEvent(new la("complete")))},__class__:xf,__properties__:{get_length:"get_length",get_id3:"get_id3"}});var jn=function(a,b){fb.call(this,this);this.rightPeak=this.leftPeak=1;this.__soundTransform=null!=b?b:new hf;null!=a&&(this.__source=a,this.__source.onComplete.add(q(this,this.source_onComplete)),this.__isValid=!0,this.__source.play());od.__registerSoundChannel(this)};k["openfl.media.SoundChannel"]=jn;jn.__name__="openfl.media.SoundChannel";jn.__super__=fb;jn.prototype=u(fb.prototype, +{leftPeak:null,rightPeak:null,__isValid:null,__soundTransform:null,__source:null,stop:function(){od.__unregisterSoundChannel(this);this.__isValid&&(this.__source.stop(),this.__dispose())},__dispose:function(){this.__isValid&&(this.__source.onComplete.remove(q(this,this.source_onComplete)),this.__source.dispose(),this.__source=null,this.__isValid=!1)},__updateTransform:function(){this.set_soundTransform(this.get_soundTransform())},get_position:function(){return this.__isValid?this.__source.get_currentTime()+ +this.__source.offset:0},set_position:function(a){if(!this.__isValid)return 0;this.__source.set_currentTime((a|0)-this.__source.offset);return a},get_soundTransform:function(){return this.__soundTransform.clone()},set_soundTransform:function(a){if(null!=a){this.__soundTransform.pan=a.pan;this.__soundTransform.volume=a.volume;var b=od.__soundTransform.pan+this.__soundTransform.pan;-1>b&&(b=-1);1<b&&(b=1);var c=od.__soundTransform.volume*this.__soundTransform.volume;this.__isValid&&(this.__source.set_gain(c), +0==b&&null==this.__source.get_pan()||this.__source.set_pan(b))}return a},source_onComplete:function(){od.__unregisterSoundChannel(this);this.__dispose();this.dispatchEvent(new la("soundComplete"))},__class__:jn,__properties__:{set_soundTransform:"set_soundTransform",get_soundTransform:"get_soundTransform",set_position:"set_position",get_position:"get_position"}});var du=function(a,b){null==b&&(b=!1);null==a&&(a=1E3);this.bufferTime=a;this.checkPolicyFile=b};k["openfl.media.SoundLoaderContext"]=du; +du.__name__="openfl.media.SoundLoaderContext";du.prototype={bufferTime:null,checkPolicyFile:null,__class__:du};var od=function(){};k["openfl.media.SoundMixer"]=od;od.__name__="openfl.media.SoundMixer";od.__properties__={set_soundTransform:"set_soundTransform",get_soundTransform:"get_soundTransform"};od.areSoundsInaccessible=function(){return!1};od.stopAll=function(){for(var a=0,b=od.__soundChannels;a<b.length;){var c=b[a];++a;c.stop()}};od.__registerSoundChannel=function(a){od.__soundChannels.push(a)}; +od.__unregisterSoundChannel=function(a){F.remove(od.__soundChannels,a)};od.get_soundTransform=function(){return od.__soundTransform};od.set_soundTransform=function(a){od.__soundTransform=a.clone();for(var b=0,c=od.__soundChannels;b<c.length;){var d=c[b];++b;d.__updateTransform()}return a};var kn=function(a,b){null==b&&(b=240);null==a&&(a=320);A.call(this);this.__drawableType=8;this.__width=a;this.__height=b;this.__textureTime=-1;this.smoothing=!1;this.deblocking=0};k["openfl.media.Video"]=kn;kn.__name__= +"openfl.media.Video";kn.__super__=A;kn.prototype=u(A.prototype,{deblocking:null,smoothing:null,__active:null,__buffer:null,__bufferAlpha:null,__bufferColorTransform:null,__bufferContext:null,__bufferData:null,__dirty:null,__height:null,__indexBuffer:null,__indexBufferContext:null,__indexBufferData:null,__stream:null,__texture:null,__textureTime:null,__uvRect:null,__vertexBuffer:null,__vertexBufferContext:null,__vertexBufferData:null,__width:null,attachNetStream:function(a){this.__stream=a;null==this.__stream|| +null==this.__stream.__video||this.__stream.__closed||this.__stream.__video.play()},clear:function(){},__enterFrame:function(a){this.__renderable&&null!=this.__stream&&!this.__renderDirty&&(this.__renderDirty=!0,this.__setParentRenderDirty())},__getBounds:function(a,b){var c=fa.__pool.get();c.setTo(0,0,this.__width,this.__height);c.__transform(c,b);a.__expand(c.x,c.y,c.width,c.height);fa.__pool.release(c)},__getIndexBuffer:function(a){if(null==this.__indexBuffer||this.__indexBufferContext!=a.__context)this.__indexBufferData= +new Uint16Array(6),this.__indexBufferData[0]=0,this.__indexBufferData[1]=1,this.__indexBufferData[2]=2,this.__indexBufferData[3]=2,this.__indexBufferData[4]=1,this.__indexBufferData[5]=3,this.__indexBufferContext=a.__context,this.__indexBuffer=a.createIndexBuffer(6),this.__indexBuffer.uploadFromTypedArray(this.__indexBufferData);return this.__indexBuffer},__getTexture:function(a){if(null==this.__stream||null==this.__stream.__video)return null;var b=a.__context.webgl,c=b.RGBA,d=b.RGBA;this.__stream.__closed|| +this.__stream.__video.currentTime==this.__textureTime||(null==this.__texture&&(this.__texture=a.createRectangleTexture(this.__stream.__video.videoWidth,this.__stream.__video.videoHeight,1,!1)),a.__bindGLTexture2D(this.__texture.__textureID),Yb.texImage2D(b,b.TEXTURE_2D,0,c,d,b.UNSIGNED_BYTE,this.__stream.__video),this.__textureTime=this.__stream.__video.currentTime);return this.__texture},__getVertexBuffer:function(a){if(null==this.__vertexBuffer||this.__vertexBufferContext!=a.__context)this.__vertexBufferData= +new Float32Array(20),this.__vertexBufferData[0]=this.get_width(),this.__vertexBufferData[1]=this.get_height(),this.__vertexBufferData[3]=1,this.__vertexBufferData[4]=1,this.__vertexBufferData[6]=this.get_height(),this.__vertexBufferData[9]=1,this.__vertexBufferData[10]=this.get_width(),this.__vertexBufferData[13]=1,this.__vertexBufferContext=a.__context,this.__vertexBuffer=a.createVertexBuffer(3,5),this.__vertexBuffer.uploadFromTypedArray(Ug.toArrayBufferView(this.__vertexBufferData));return this.__vertexBuffer}, +__hitTest:function(a,b,c,d,e,f){if(!f.get_visible()||this.__isMask||null!=this.get_mask()&&!this.get_mask().__hitTestMask(a,b))return!1;this.__getRenderTransform();var g=this.__renderTransform,h=g.a*g.d-g.b*g.c;c=0==h?-g.tx:1/h*(g.c*(g.ty-b)+g.d*(a-g.tx));g=this.__renderTransform;h=g.a*g.d-g.b*g.c;a=0==h?-g.ty:1/h*(g.a*(b-g.ty)+g.b*(g.tx-a));return 0<c&&0<a&&c<=this.__width&&a<=this.__height?(null==d||e||d.push(f),!0):!1},__hitTestMask:function(a,b){var c=oa.__pool.get();c.setTo(a,b);this.__globalToLocal(c, +c);a=0<c.x&&0<c.y&&c.x<=this.__width&&c.y<=this.__height;oa.__pool.release(c);return a},get_height:function(){return this.__height*this.get_scaleY()},set_height:function(a){if(1!=this.get_scaleY()||a!=this.__height)this.__setTransformDirty(),this.__dirty=!0;this.set_scaleY(1);return this.__height=a},get_videoHeight:function(){return null!=this.__stream&&null!=this.__stream.__video?this.__stream.__video.videoHeight|0:0},get_videoWidth:function(){return null!=this.__stream&&null!=this.__stream.__video? +this.__stream.__video.videoWidth|0:0},get_width:function(){return this.__width*this.__scaleX},set_width:function(a){if(1!=this.__scaleX||this.__width!=a)this.__setTransformDirty(),this.__dirty=!0;this.set_scaleX(1);return this.__width=a},__class__:kn,__properties__:u(A.prototype.__properties__,{get_videoWidth:"get_videoWidth",get_videoHeight:"get_videoHeight"})});var lp=function(){};k["openfl.net.IDynamicPropertyOutput"]=lp;lp.__name__="openfl.net.IDynamicPropertyOutput";lp.__isInterface__=!0;lp.prototype= +{writeDynamicProperty:null,__class__:lp};var mp=function(){};k["openfl.net.IDynamicPropertyWriter"]=mp;mp.__name__="openfl.net.IDynamicPropertyWriter";mp.__isInterface__=!0;mp.prototype={writeDynamicProperties:null,__class__:mp};var gk=function(){fb.call(this)};k["openfl.net.NetConnection"]=gk;gk.__name__="openfl.net.NetConnection";gk.__super__=fb;gk.prototype=u(fb.prototype,{connect:function(a,b,c,d,e,f){if(null!=a)throw R.thrown('Error: Can only connect in "HTTP streaming" mode');this.dispatchEvent(new ii("netStatus", +!1,!0,{code:"NetConnection.Connect.Success"}))},__class__:gk});var ln=function(a,b){fb.call(this);this.__connection=a;this.__soundTransform=new hf;this.__video=window.document.createElement("video");this.__video.setAttribute("playsinline","");this.__video.setAttribute("webkit-playsinline","");this.__video.setAttribute("crossorigin","anonymous");this.__video.addEventListener("error",q(this,this.video_onError),!1);this.__video.addEventListener("waiting",q(this,this.video_onWaiting),!1);this.__video.addEventListener("ended", +q(this,this.video_onEnd),!1);this.__video.addEventListener("pause",q(this,this.video_onPause),!1);this.__video.addEventListener("seeking",q(this,this.video_onSeeking),!1);this.__video.addEventListener("playing",q(this,this.video_onPlaying),!1);this.__video.addEventListener("timeupdate",q(this,this.video_onTimeUpdate),!1);this.__video.addEventListener("loadstart",q(this,this.video_onLoadStart),!1);this.__video.addEventListener("stalled",q(this,this.video_onStalled),!1);this.__video.addEventListener("durationchanged", +q(this,this.video_onDurationChanged),!1);this.__video.addEventListener("canplay",q(this,this.video_onCanPlay),!1);this.__video.addEventListener("canplaythrough",q(this,this.video_onCanPlayThrough),!1);this.__video.addEventListener("loadedmetadata",q(this,this.video_onLoadMetaData),!1)};k["openfl.net.NetStream"]=ln;ln.__name__="openfl.net.NetStream";ln.__super__=fb;ln.prototype=u(fb.prototype,{audioCodec:null,bufferLength:null,bufferTime:null,bytesLoaded:null,bytesTotal:null,checkPolicyFile:null,client:null, +currentFPS:null,decodedFrames:null,liveDelay:null,objectEncoding:null,time:null,videoCode:null,__closed:null,__connection:null,__soundTransform:null,__timer:null,__video:null,close:function(){null!=this.__video&&(this.__closed=!0,this.__video.pause(),this.__video.src="",this.time=0)},dispose:function(){this.close();this.__video=null},pause:function(){null!=this.__video&&this.__video.pause()},play:function(a,b,c,d,e,f){null!=this.__video&&(this.__video.volume=od.__soundTransform.volume*this.__soundTransform.volume, +"string"==typeof a?this.__video.src=a:this.__video.srcObject=a,this.__video.play())},requestVideoStatus:function(){var a=this;null!=this.__video&&(null==this.__timer&&(this.__timer=new Oe(1)),this.__timer.run=function(){a.__video.paused?a.__playStatus("NetStream.Play.pause"):a.__playStatus("NetStream.Play.playing");a.__timer.stop()})},resume:function(){null!=this.__video&&this.__video.play()},seek:function(a){null!=this.__video&&(0>a?a=0:a>this.__video.duration&&(a=this.__video.duration),this.__dispatchStatus("NetStream.SeekStart.Notify"), +this.__video.currentTime=a)},togglePause:function(){null!=this.__video&&(this.__video.paused?this.__video.play():this.__video.pause())},__dispatchStatus:function(a){a=new ii("netStatus",!1,!1,{code:a});this.__connection.dispatchEvent(a);this.dispatchEvent(a)},__playStatus:function(a){if(null!=this.__video&&null!=this.client)try{var b=this.client.onPlayStatus;b({code:a,duration:this.__video.duration,position:this.__video.currentTime,speed:this.__video.playbackRate,start:this.__video.startTime})}catch(c){sa.lastError= +c}},video_onCanPlay:function(a){this.__playStatus("NetStream.Play.canplay")},video_onCanPlayThrough:function(a){this.__playStatus("NetStream.Play.canplaythrough")},video_onDurationChanged:function(a){this.__playStatus("NetStream.Play.durationchanged")},video_onEnd:function(a){this.__dispatchStatus("NetStream.Play.Stop");this.__dispatchStatus("NetStream.Play.Complete");this.__playStatus("NetStream.Play.Complete")},video_onError:function(a){this.__dispatchStatus("NetStream.Play.Stop");this.__playStatus("NetStream.Play.error")}, +video_onLoadMetaData:function(a){if(null!=this.__video&&null!=this.client)try{var b=this.client.onMetaData;b({width:this.__video.videoWidth,height:this.__video.videoHeight,duration:this.__video.duration})}catch(c){sa.lastError=c}},video_onLoadStart:function(a){this.__playStatus("NetStream.Play.loadstart")},video_onPause:function(a){this.__playStatus("NetStream.Play.pause")},video_onPlaying:function(a){this.__dispatchStatus("NetStream.Play.Start");this.__playStatus("NetStream.Play.playing")},video_onSeeking:function(a){this.__playStatus("NetStream.Play.seeking"); +this.__dispatchStatus("NetStream.Seek.Complete")},video_onStalled:function(a){this.__playStatus("NetStream.Play.stalled")},video_onTimeUpdate:function(a){null!=this.__video&&(this.time=this.__video.currentTime,this.__playStatus("NetStream.Play.timeupdate"))},video_onWaiting:function(a){this.__playStatus("NetStream.Play.waiting")},get_soundTransform:function(){return this.__soundTransform.clone()},set_soundTransform:function(a){null!=a&&(this.__soundTransform.pan=a.pan,this.__soundTransform.volume= +a.volume,null!=this.__video&&(this.__video.volume=od.__soundTransform.volume*this.__soundTransform.volume));return a},get_speed:function(){return null!=this.__video?this.__video.playbackRate:1},set_speed:function(a){return null!=this.__video?this.__video.playbackRate=a:a},__class__:ln,__properties__:{set_speed:"set_speed",get_speed:"get_speed",set_soundTransform:"set_soundTransform",get_soundTransform:"get_soundTransform"}});var ed=function(){fb.call(this);this.client=this;this.objectEncoding=ed.defaultObjectEncoding}; +k["openfl.net.SharedObject"]=ed;ed.__name__="openfl.net.SharedObject";ed.getLocal=function(a,b,c){c=" ~%&\\;:\"',<>?#".split("");var d=!0;if(null==a||""==a)d=!1;else for(var e=0;e<c.length;){var f=c[e];++e;if(-1<a.indexOf(f)){d=!1;break}}if(!d)throw new Ec("Error #2134: Cannot create SharedObject.");null==ed.__sharedObjects&&(ed.__sharedObjects=new V,null!=md.current&&md.current.onExit.add(ed.application_onExit));c=b+"/"+a;if(!Object.prototype.hasOwnProperty.call(ed.__sharedObjects.h,c)){d=null;try{var h= +Tg.getLocalStorage();null==b&&(null!=h&&(d=h.getItem(window.location.href+":"+a),h.removeItem(window.location.href+":"+a)),b=window.location.pathname);null!=h&&null==d&&(d=h.getItem(b+":"+a))}catch(t){sa.lastError=t}h=new ed;h.data={};h.__localPath=b;h.__name=a;if(null!=d&&""!=d)try{var l=new Ge(d);l.setResolver({resolveEnum:Za.resolveEnum,resolveClass:ed.__resolveClass});h.data=l.unserialize()}catch(t){sa.lastError=t}ed.__sharedObjects.h[c]=h}return ed.__sharedObjects.h[c]};ed.getRemote=function(a, +b,c,d){zc.notImplemented({fileName:"openfl/net/SharedObject.hx",lineNumber:808,className:"openfl.net.SharedObject",methodName:"getRemote"});return null};ed.__getPath=function(a,b){a=Pa.get_applicationStorageDirectory()+"/"+a+"/";b=J.replace(b,"//","/");b=J.replace(b,"//","/");J.startsWith(b,"/")&&(b=F.substr(b,1,null));J.endsWith(b,"/")&&(b=b.substring(0,b.length-1));if(-1<b.indexOf("/")){var c=b.split("/");b="";for(var d=0,e=c.length-1;d<e;){var f=d++;b+="#"+c[f]+"/"}b+=c[c.length-1]}return a+b+ +".sol"};ed.__mkdir=function(a){};ed.__resolveClass=function(a){return null!=a?(J.startsWith(a,"neash.")&&(a=J.replace(a,"neash.","openfl.")),J.startsWith(a,"native.")&&(a=J.replace(a,"native.","openfl.")),J.startsWith(a,"flash.")&&(a=J.replace(a,"flash.","openfl.")),J.startsWith(a,"openfl._v2.")&&(a=J.replace(a,"openfl._v2.","openfl.")),J.startsWith(a,"openfl._legacy.")&&(a=J.replace(a,"openfl._legacy.","openfl.")),k[a]):null};ed.application_onExit=function(a){a=ed.__sharedObjects.h;for(var b=Object.keys(a), +c=b.length,d=0;d<c;)a[b[d++]].flush()};ed.__super__=fb;ed.prototype=u(fb.prototype,{client:null,data:null,fps:null,objectEncoding:null,__localPath:null,__name:null,clear:function(){this.data={};try{var a=Tg.getLocalStorage();null!=a&&a.removeItem(this.__localPath+":"+this.__name)}catch(b){sa.lastError=b}},close:function(){},connect:function(a,b){zc.notImplemented({fileName:"openfl/net/SharedObject.hx",lineNumber:392,className:"openfl.net.SharedObject",methodName:"connect"})},flush:function(a){if(0== +W.fields(this.data).length)return 0;a=ye.run(this.data);try{var b=Tg.getLocalStorage();null!=b&&(b.removeItem(this.__localPath+":"+this.__name),b.setItem(this.__localPath+":"+this.__name,a))}catch(c){return sa.lastError=c,1}return 0},send:function(a){zc.notImplemented({fileName:"openfl/net/SharedObject.hx",lineNumber:824,className:"openfl.net.SharedObject",methodName:"send"})},setDirty:function(a){},setProperty:function(a,b){null!=this.data&&(this.data[a]=b)},get_size:function(){try{var a=ye.run(this.data); +return cb.ofString(a).length}catch(b){return sa.lastError=b,0}},__class__:ed,__properties__:{get_size:"get_size"}});var ph=function(a){fb.call(this);this.bytesTotal=this.bytesLoaded=0;this.dataFormat=1;null!=a&&this.load(a)};k["openfl.net.URLLoader"]=ph;ph.__name__="openfl.net.URLLoader";ph.__super__=fb;ph.prototype=u(fb.prototype,{bytesLoaded:null,bytesTotal:null,data:null,dataFormat:null,__httpRequest:null,close:function(){null!=this.__httpRequest&&this.__httpRequest.cancel()},load:function(a){var b= +this,c=new la("open");this.dispatchEvent(c);0==this.dataFormat?(c=new zm,this.__prepareRequest(c,a),c.load().onProgress(q(this,this.httpRequest_onProgress)).onError(q(this,this.httpRequest_onError)).onComplete(function(a){b.__dispatchStatus();b.data=a;a=new la("complete");b.dispatchEvent(a)})):(c=new Tj,this.__prepareRequest(c,a),c.load().onProgress(q(this,this.httpRequest_onProgress)).onError(q(this,this.httpRequest_onError)).onComplete(function(a){b.__dispatchStatus();b.data=a;a=new la("complete"); +b.dispatchEvent(a)}))},__dispatchStatus:function(){var a=new hi("httpStatus",!1,!1,this.__httpRequest.responseStatus);a.responseURL=this.__httpRequest.uri;var b=[];if(this.__httpRequest.enableResponseHeaders&&null!=this.__httpRequest.responseHeaders)for(var c=0,d=this.__httpRequest.responseHeaders;c<d.length;){var e=d[c];++c;b.push(new np(e.name,e.value))}a.responseHeaders=b;this.dispatchEvent(a)},__prepareRequest:function(a,b){this.__httpRequest=a;this.__httpRequest.uri=b.url;this.__httpRequest.method= +b.method;if(null!=b.data)if(Za.typeof(b.data)==Fa.TObject){var c=W.fields(b.data);for(a=0;a<c.length;){var d=c[a];++a;this.__httpRequest.formData.h[d]=W.field(b.data,d)}}else this.__httpRequest.data=b.data instanceof cb?b.data:cb.ofString(n.string(b.data));this.__httpRequest.contentType=b.contentType;if(null!=b.requestHeaders)for(a=0,c=b.requestHeaders;a<c.length;)d=c[a],++a,this.__httpRequest.headers.push(new jm(d.name,d.value));this.__httpRequest.followRedirects=b.followRedirects;this.__httpRequest.timeout= +b.idleTimeout|0;this.__httpRequest.manageCookies=b.manageCookies;this.__httpRequest.userAgent=b.userAgent;this.__httpRequest.enableResponseHeaders=!0},httpRequest_onError:function(a){this.__dispatchStatus();var b=403==a?new $i("securityError"):new lg("ioError");b.text=n.string(a);this.dispatchEvent(b)},httpRequest_onProgress:function(a,b){var c=new Cg("progress");c.bytesLoaded=a;c.bytesTotal=b;this.dispatchEvent(c)},__class__:ph});var Pg=function(a){null!=a&&(this.url=a);this.contentType=null;this.followRedirects= +Dh.followRedirects;this.idleTimeout=0<Dh.idleTimeout?Dh.idleTimeout:3E4;this.manageCookies=Dh.manageCookies;this.method="GET";this.requestHeaders=[];this.userAgent=Dh.userAgent};k["openfl.net.URLRequest"]=Pg;Pg.__name__="openfl.net.URLRequest";Pg.prototype={contentType:null,data:null,followRedirects:null,idleTimeout:null,manageCookies:null,method:null,requestHeaders:null,url:null,userAgent:null,__class__:Pg};var Dh=function(){};k["openfl.net.URLRequestDefaults"]=Dh;Dh.__name__="openfl.net.URLRequestDefaults"; +var np=function(a,b){null==b&&(b="");null==a&&(a="");this.name=a;this.value=b};k["openfl.net.URLRequestHeader"]=np;np.__name__="openfl.net.URLRequestHeader";np.prototype={name:null,value:null,__class__:np};var iu={_new:function(a){var b={};null!=a&&iu.decode(b,a);return b},decode:function(a,b){for(var c=W.fields(a),d=0;d<c.length;){var e=c[d];++d;W.deleteField(a,e)}c=b.split(";").join("&").split("&");for(d=0;d<c.length;)if(e=c[d],++d,b=e.indexOf("="),0<b){var f=F.substr(e,0,b);f=decodeURIComponent(f.split("+").join(" ")); +e=F.substr(e,b+1,null);a[f]=decodeURIComponent(e.split("+").join(" "))}else 0!=b&&(a[decodeURIComponent(e.split("+").join(" "))]="")},toString:function(a){for(var b=[],c=W.fields(a),d=0;d<c.length;){var e=c[d];++d;var f=W.field(a,e);if(-1<e.indexOf("[]")&&f instanceof Array){var h=[];for(f=M(f);f.hasNext();){var l=f.next();h.push(encodeURIComponent(l))}h=h.join("&"+e+"=");b.push(encodeURIComponent(e)+"="+h)}else b.push(encodeURIComponent(e)+"="+encodeURIComponent(f))}return b.join("&")},__get:function(a, +b){return W.field(a,b)},__set:function(a,b,c){a[b]=c}},Qi=function(a){this.parentDomain=null!=a?a:Qi.currentDomain};k["openfl.system.ApplicationDomain"]=Qi;Qi.__name__="openfl.system.ApplicationDomain";Qi.prototype={parentDomain:null,getDefinition:function(a){return k[a]},hasDefinition:function(a){return null!=k[a]},__class__:Qi};var sc=function(){};k["openfl.system.Capabilities"]=sc;sc.__name__="openfl.system.Capabilities";sc.__properties__={get_version:"get_version",get_screenResolutionY:"get_screenResolutionY", +get_screenResolutionX:"get_screenResolutionX",get_screenDPI:"get_screenDPI",get_pixelAspectRatio:"get_pixelAspectRatio",get_os:"get_os",get_manufacturer:"get_manufacturer",get_language:"get_language",get_cpuArchitecture:"get_cpuArchitecture"};sc.hasMultiChannelAudio=function(a){return!1};sc.get_cpuArchitecture=function(){return"x86"};sc.get_language=function(){var a=Qe.get_language(Qe.get_currentLocale());if(null!=a)switch(a=a.toLowerCase(),a){case "cs":case "da":case "de":case "en":case "es":case "fi":case "fr":case "hu":case "it":case "ja":case "ko":case "nb":case "nl":case "pl":case "pt":case "ru":case "sv":case "tr":return a; +case "zh":a=Qe.get_region(Qe.get_currentLocale());if(null!=a)switch(a.toUpperCase()){case "HANT":case "TW":return"zh-TW"}return"zh-CN";default:return"xu"}return"en"};sc.get_manufacturer=function(){var a=Pa.get_platformName();return"OpenFL"+(null!=a?" "+a:"")};sc.get_os=function(){var a=Pa.get_platformLabel();return null!=a?a:""};sc.get_pixelAspectRatio=function(){return 1};sc.get_screenDPI=function(){var a=null!=zc.application?zc.application.__window:null,b=72;null!=a&&(b*=a.__scale);return b};sc.get_screenResolutionX= +function(){var a=zc.current.stage,b=0;if(null==a)return 0;if(null!=a.window){var c=a.window.get_display();null!=c&&(b=Math.ceil(c.currentMode.width*a.window.__scale))}return 0<b?b:a.stageWidth};sc.get_screenResolutionY=function(){var a=zc.current.stage,b=0;if(null==a)return 0;if(null!=a.window){var c=a.window.get_display();null!=c&&(b=Math.ceil(c.currentMode.height*a.window.__scale))}return 0<b?b:a.stageHeight};sc.get_version=function(){return"WEB "+(J.replace("9.2.0",".",",")+",0")};var eu=function(a, +b,c){null==a&&(a=!1);this.checkPolicyFile=a;this.securityDomain=c;this.applicationDomain=b;this.allowLoadBytesCodeExecution=this.allowCodeImport=!0};k["openfl.system.LoaderContext"]=eu;eu.__name__="openfl.system.LoaderContext";eu.prototype={allowCodeImport:null,allowLoadBytesCodeExecution:null,applicationDomain:null,checkPolicyFile:null,securityDomain:null,__class__:eu};var hk=function(){};k["openfl.system.SecurityDomain"]=hk;hk.__name__="openfl.system.SecurityDomain";hk.prototype={__class__:hk}; +var bg=function(){};k["openfl.system.System"]=bg;bg.__name__="openfl.system.System";bg.__properties__={get_vmVersion:"get_vmVersion",get_totalMemory:"get_totalMemory"};bg.disposeXML=function(a){};bg.exit=function(a){Pa.exit(a)};bg.gc=function(){};bg.pause=function(){zc.notImplemented({fileName:"openfl/system/System.hx",lineNumber:213,className:"openfl.system.System",methodName:"pause"})};bg.resume=function(){zc.notImplemented({fileName:"openfl/system/System.hx",lineNumber:229,className:"openfl.system.System", +methodName:"resume"})};bg.setClipboard=function(a){fe.set_text(a)};bg.get_totalMemory=function(){return window.performance&&window.performance.memory?window.performance.memory.usedJSHeapSize:0};bg.get_vmVersion=function(){return"1.0.0"};var Nc=function(a){Gd.call(this,a)};k["openfl.text.Font"]=Nc;Nc.__name__="openfl.text.Font";Nc.enumerateFonts=function(a){return Nc.__registeredFonts};Nc.fromBytes=function(a){var b=new Nc;b.__fromBytes(yb.toBytes(a));return b};Nc.fromFile=function(a){if(null==a)return null; +var b=new Nc;b.__fromFile(a);return b};Nc.loadFromBytes=function(a){return Gd.loadFromBytes(yb.toBytes(a)).then(function(a){var b=new Nc;b.__fromLimeFont(a);return eb.withValue(b)})};Nc.loadFromFile=function(a){return Gd.loadFromFile(a).then(function(a){var b=new Nc;b.__fromLimeFont(a);return eb.withValue(b)})};Nc.loadFromName=function(a){return Gd.loadFromName(a).then(function(a){var b=new Nc;b.__fromLimeFont(a);return eb.withValue(b)})};Nc.registerFont=function(a){a=null==O.getClass(a)?O.__cast(Za.createInstance(a, +[]),Nc):O.__cast(a,Nc);null!=a&&(Nc.__registeredFonts.push(a),Nc.__fontByName.h[a.name]=a)};Nc.__super__=Gd;Nc.prototype=u(Gd.prototype,{fontStyle:null,fontType:null,__initialized:null,__fromLimeFont:function(a){this.__copyFrom(a)},__initialize:function(){return this.__initialized},get_fontName:function(){return this.name},set_fontName:function(a){return this.name=a},__class__:Nc,__properties__:{set_fontName:"set_fontName",get_fontName:"get_fontName"}});var mn=function(){fb.call(this);this.clear()}; +k["openfl.text.StyleSheet"]=mn;mn.__name__="openfl.text.StyleSheet";mn.__super__=fb;mn.prototype=u(fb.prototype,{__styleNames:null,__styleNamesDirty:null,__styles:null,clear:function(){this.__styleNamesDirty=!1;this.__styleNames=null;this.__styles=new V},getStyle:function(a){a=a.toLowerCase();return Object.prototype.hasOwnProperty.call(this.__styles.h,a)?this.__styles.h[a]:null},parseCSS:function(a){var b=new V;b.h.silent=!0;b=(new op(b)).parse(a);if(null!=b)for(a=b.h.rules,b=0;b<a.length;){var c= +a[b];++b;var d=Object.prototype.hasOwnProperty.call(c.h,"selectors")?c.h.selectors:null;if(null!=d&&(d=d.toLowerCase(),Object.prototype.hasOwnProperty.call(this.__styles.h,d)||(this.__styles.h[d]={},this.__styleNamesDirty=!0),d=this.__styles.h[d],c=c.h.declarations,null!=c))for(var e=0;e<c.length;){var f=c[e];++e;var h=f.h.property;f=n.string(f.h.value);if(null!=h)if(null==h)d[h]=f;else switch(h){case "font-family":f=J.replace(f,'"',"");h=d;null!=h&&W.setProperty(h,"fontFamily",f);break;case "font-size":h= +d;null!=h&&W.setProperty(h,"fontSize",f);break;case "font-style":h=d;null!=h&&W.setProperty(h,"fontStyle",f);break;case "font-weight":h=d;null!=h&&W.setProperty(h,"fontWeight",f);break;case "letter-spacing":h=d;null!=h&&W.setProperty(h,"letterSpacing",f);break;case "margin-left":h=d;null!=h&&W.setProperty(h,"marginLeft",f);break;case "text-align":h=d;null!=h&&W.setProperty(h,"textAlign",f);break;case "text-decoration":h=d;null!=h&&W.setProperty(h,"textDecoration",f);break;case "text-indent":h=d;null!= +h&&W.setProperty(h,"textIndent",f);break;default:d[h]=f}}}},setStyle:function(a,b){a=a.toLowerCase();if(null==b)Object.prototype.hasOwnProperty.call(this.__styles.h,a)&&(b=this.__styles,Object.prototype.hasOwnProperty.call(b.h,a)&&delete b.h[a]);else{for(var c={},d=0,e=W.fields(b);d<e.length;){var f=e[d];++d;c[f]=W.field(b,f)}this.__styles.h[a]=c}},transform:function(a){var b=new tg;this.__applyStyleObject(a,b);return b},__applyStyle:function(a,b){a=a.toLowerCase();Object.prototype.hasOwnProperty.call(this.__styles.h, +a)&&this.__applyStyleObject(this.__styles.h[a],b)},__applyStyleObject:function(a,b){if(null!=a){var c=new Z("[0-9A-Fa-f]+",""),d=new Z("[0-9]+","");var e=a;null!=e&&Object.prototype.hasOwnProperty.call(e,"color")?(e=he.__get(a,"color"),e=c.match(null==e?null:n.string(e))):e=!1;e&&(b.color=n.parseInt("0x"+c.matched(0)));e=a;null!=e&&Object.prototype.hasOwnProperty.call(e,"fontFamily")&&(e=he.__get(a,"fontFamily"),b.font=this.__parseFont(null==e?null:n.string(e)));e=a;null!=e&&Object.prototype.hasOwnProperty.call(e, +"fontSize")?(e=he.__get(a,"fontSize"),e=d.match(null==e?null:n.string(e))):e=!1;e&&(b.size=n.parseInt(d.matched(0)));e=a;if(null!=e&&Object.prototype.hasOwnProperty.call(e,"fontStyle"))switch(he.__get(a,"fontStyle")){case "italic":b.italic=!0;break;case "normal":b.italic=!1}e=a;if(null!=e&&Object.prototype.hasOwnProperty.call(e,"fontWeight"))switch(he.__get(a,"fontWeight")){case "bold":b.bold=!0;break;case "normal":b.bold=!1}e=a;null!=e&&Object.prototype.hasOwnProperty.call(e,"leading")?(e=he.__get(a, +"leading"),e=d.match(null==e?null:n.string(e))):e=!1;e&&(b.leading=n.parseInt(d.matched(0)));e=a;null!=e&&Object.prototype.hasOwnProperty.call(e,"letterSpacing")?(e=he.__get(a,"letterSpacing"),e=d.match(null==e?null:n.string(e))):e=!1;e&&(b.letterSpacing=parseFloat(d.matched(0)));e=a;null!=e&&Object.prototype.hasOwnProperty.call(e,"marginLeft")?(e=he.__get(a,"marginLeft"),e=d.match(null==e?null:n.string(e))):e=!1;e&&(b.leftMargin=n.parseInt(d.matched(0)));e=a;null!=e&&Object.prototype.hasOwnProperty.call(e, +"marginRight")?(e=he.__get(a,"marginRight"),e=d.match(null==e?null:n.string(e))):e=!1;e&&(b.rightMargin=n.parseInt(d.matched(0)));e=a;if(null!=e&&Object.prototype.hasOwnProperty.call(e,"textAlign"))switch(he.__get(a,"textAlign")){case "center":b.align=0;break;case "justify":b.align=2;break;case "left":b.align=3;break;case "right":b.align=4}e=a;if(null!=e&&Object.prototype.hasOwnProperty.call(e,"textDecoration"))switch(he.__get(a,"textDecoration")){case "none":b.underline=!1;break;case "underline":b.underline= +!0}e=a;null!=e&&Object.prototype.hasOwnProperty.call(e,"textIndent")?(e=he.__get(a,"textIndent"),e=d.match(null==e?null:n.string(e))):e=!1;e&&(b.blockIndent=n.parseInt(d.matched(0)))}},__parseFont:function(a){if(null==a)return null;-1<a.indexOf(",")&&(a=F.substr(a,0,a.indexOf(",")));switch(a){case "mono":return"_typewriter";case "sans-serif":return"_sans";case "serif":return"_serif";default:return a}},get_styleNames:function(){if(null==this.__styleNames||this.__styleNamesDirty){this.__styleNames= +[];for(var a=Object.keys(this.__styles.h),b=a.length,c=0;c<b;){var d=a[c++];this.__styleNames.push(d)}this.__styleNamesDirty=!1}return this.__styleNames},__class__:mn,__properties__:{get_styleNames:"get_styleNames"}});var ff=function(){this.__renderedOnCanvasWhileOnDOM=this.__forceCachedBitmapUpdate=!1;this.__mouseScrollVCounter=0;this.condenseWhite=!1;ob.call(this);this.__drawableType=7;this.__selectionIndex=this.__caretIndex=-1;this.__displayAsPassword=!1;this.__graphics=new Ue(this);this.__textEngine= +new Ob(this);this.__layoutDirty=!0;this.__offsetY=this.__offsetX=0;this.__mouseWheelEnabled=!0;this.__text="";this.doubleClickEnabled=!0;null==ff.__defaultTextFormat&&(ff.__defaultTextFormat=new tg("Times New Roman",12,0,!1,!1,!1,"","",3,0,0,0,0),ff.__defaultTextFormat.blockIndent=0,ff.__defaultTextFormat.bullet=!1,ff.__defaultTextFormat.letterSpacing=0,ff.__defaultTextFormat.kerning=!1);this.__textFormat=ff.__defaultTextFormat.clone();this.__textEngine.textFormatRanges.push(new Te(this.__textFormat, +0,0));this.addEventListener("mouseDown",q(this,this.this_onMouseDown));this.addEventListener("focusIn",q(this,this.this_onFocusIn));this.addEventListener("focusOut",q(this,this.this_onFocusOut));this.addEventListener("keyDown",q(this,this.this_onKeyDown));this.addEventListener("mouseWheel",q(this,this.this_onMouseWheel));this.addEventListener("doubleClick",q(this,this.this_onDoubleClick))};k["openfl.text.TextField"]=ff;ff.__name__="openfl.text.TextField";ff.__super__=ob;ff.prototype=u(ob.prototype, +{condenseWhite:null,__bounds:null,__caretIndex:null,__cursorTimer:null,__dirty:null,__displayAsPassword:null,__domRender:null,__inputEnabled:null,__isHTML:null,__layoutDirty:null,__mouseScrollVCounter:null,__mouseWheelEnabled:null,__offsetX:null,__offsetY:null,__selectionIndex:null,__showCursor:null,__styleSheet:null,__text:null,__htmlText:null,__textEngine:null,__textFormat:null,__div:null,__renderedOnCanvasWhileOnDOM:null,__forceCachedBitmapUpdate:null,appendText:function(a){null!=a&&""!=a&&(this.__layoutDirty= +this.__dirty=!0,this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty()),this.__updateText(this.__text+a),this.__selectionIndex=this.__caretIndex=this.__textEngine.textFormatRanges.get(this.__textEngine.textFormatRanges.get_length()-1).end=this.__text.length)},getCharBoundaries:function(a){if(0>a||a>this.__text.length-1)return null;var b=new fa;return this.__getCharBoundaries(a,b)?b:null},getCharIndexAtPoint:function(a,b){if(2>=a||a>this.get_width()+4||0>=b||b>this.get_height()+4)return-1; +this.__updateLayout();a+=this.get_scrollH();for(var c=0,d=this.get_scrollV()-1;c<d;){var e=c++;b+=this.__textEngine.lineHeights.get(e)}for(c=this.__textEngine.layoutGroups.iterator();c.hasNext();){var f=c.next();if(b>=f.offsetY&&b<=f.offsetY+f.height&&a>=f.offsetX&&a<=f.offsetX+f.width){c=b=0;for(d=f.positions.length;c<d;)if(e=c++,b+=f.positions[e],a<=f.offsetX+b)return f.startIndex+e;return f.endIndex}}return-1},getFirstCharInParagraph:function(a){if(0>a||a>this.get_text().length)return-1;if(0== +this.__textEngine.lineBreaks.get_length())return 0;for(var b=0,c=this.__textEngine.lineBreaks.get_length();b<c;){var d=b++;if(a<=this.__textEngine.lineBreaks.get(d))return 0==d?0:this.__textEngine.lineBreaks.get(d-1)+1}return this.__textEngine.lineBreaks.get(this.__textEngine.lineBreaks.get_length()-1)+1},getLineIndexAtPoint:function(a,b){this.__updateLayout();if(2>=a||a>this.get_width()+4||0>=b||b>this.get_height()+4)return-1;a=0;for(var c=this.get_scrollV()-1;a<c;){var d=a++;b+=this.__textEngine.lineHeights.get(d)}for(a= +this.__textEngine.layoutGroups.iterator();a.hasNext();)if(c=a.next(),b>=c.offsetY&&b<=c.offsetY+c.height)return c.lineIndex;return-1},getLineIndexOfChar:function(a){if(0>a||a>this.__text.length)return-1;this.__updateLayout();for(var b=this.__textEngine.layoutGroups.iterator();b.hasNext();){var c=b.next();if(c.startIndex<=a&&c.endIndex>=a)return c.lineIndex}return-1},getLineLength:function(a){this.__updateLayout();if(0>a||a>this.__textEngine.numLines-1)return 0;for(var b=-1,c=-1,d=this.__textEngine.layoutGroups.iterator();d.hasNext();){var e= +d.next();if(e.lineIndex==a)-1==b&&(b=e.startIndex);else if(e.lineIndex==a+1){c=e.startIndex;break}}-1==c&&(c=this.__text.length);return c-b},getLineMetrics:function(a){this.__updateLayout();var b=this.__textEngine.lineAscents.get(a),c=this.__textEngine.lineDescents.get(a),d=this.__textEngine.lineLeadings.get(a),e=this.__textEngine.lineHeights.get(a);a=this.__textEngine.lineWidths.get(a);switch(this.__textFormat.align){case 0:var f=(this.__textEngine.width-a)/2;break;case 1:case 4:f=this.__textEngine.width- +a-2;break;case 2:case 3:case 5:f=2}return new pp(f,a,e,b,c,d)},getLineOffset:function(a){this.__updateLayout();if(0>a||a>this.__textEngine.numLines-1)return-1;for(var b=this.__textEngine.layoutGroups.iterator();b.hasNext();){var c=b.next();if(c.lineIndex==a)return c.startIndex}return 0},getLineText:function(a){this.__updateLayout();if(0>a||a>this.__textEngine.numLines-1)return null;for(var b=-1,c=-1,d=this.__textEngine.layoutGroups.iterator();d.hasNext();){var e=d.next();if(e.lineIndex==a)-1==b&& +(b=e.startIndex);else if(e.lineIndex==a+1){c=e.startIndex;break}}-1==c&&(c=this.__text.length);return this.__textEngine.text.substring(b,c)},getParagraphLength:function(a){if(0>a||a>this.get_text().length)return-1;var b=this.getFirstCharInParagraph(a);if(a>=this.get_text().length)return this.get_text().length-b+1;a=this.__textEngine.getLineBreakIndex(a)+1;0==a&&(a=this.__text.length);return a-b},getTextFormat:function(a,b){null==b&&(b=-1);null==a&&(a=-1);var c=null;if(a>=this.get_text().length||-1> +a||b>this.get_text().length||-1>b)throw new Fh("The supplied index is out of bounds");-1==a&&(a=0);-1==b&&(b=this.get_text().length);if(a>=b)return new tg;for(var d=this.__textEngine.textFormatRanges.iterator();d.hasNext();){var e=d.next();if(e.start<=a&&e.end>a||e.start<b&&e.end>=b)null==c?c=e.format.clone():(e.format.font!=c.font&&(c.font=null),e.format.size!=c.size&&(c.size=null),e.format.color!=c.color&&(c.color=null),e.format.bold!=c.bold&&(c.bold=null),e.format.italic!=c.italic&&(c.italic=null), +e.format.underline!=c.underline&&(c.underline=null),e.format.url!=c.url&&(c.url=null),e.format.target!=c.target&&(c.target=null),e.format.align!=c.align&&(c.align=null),e.format.leftMargin!=c.leftMargin&&(c.leftMargin=null),e.format.rightMargin!=c.rightMargin&&(c.rightMargin=null),e.format.indent!=c.indent&&(c.indent=null),e.format.leading!=c.leading&&(c.leading=null),e.format.blockIndent!=c.blockIndent&&(c.blockIndent=null),e.format.bullet!=c.bullet&&(c.bullet=null),e.format.kerning!=c.kerning&& +(c.kerning=null),e.format.letterSpacing!=c.letterSpacing&&(c.letterSpacing=null),e.format.tabStops!=c.tabStops&&(c.tabStops=null))}null==c&&(c=new tg);return c},replaceSelectedText:function(a){this.__replaceSelectedText(a,!1)},replaceText:function(a,b,c){this.__replaceText(a,b,c,!1)},setSelection:function(a,b){this.__selectionIndex=a;this.__caretIndex=b;this.__updateScrollV();this.__updateScrollH();null!=this.stage&&this.stage.get_focus()==this&&(this.__stopCursorTimer(),this.__startCursorTimer())}, +setTextFormat:function(a,b,c){null==c&&(c=-1);null==b&&(b=-1);var d=this.get_text().length;-1==b?(-1==c&&(c=d),b=0):-1==c&&(c=b+1);if(b!=c){if(0>b||0>=c||c<b||b>=d||c>d)throw new Fh;if(0==b&&c==d){this.__textEngine.textFormatRanges.set_length(1);var e=this.__textEngine.textFormatRanges.get(0);e.start=0;e.end=d;e.format.__merge(a)}else{d=0;for(var f;d<this.__textEngine.textFormatRanges.get_length();)if(e=this.__textEngine.textFormatRanges.get(d),e.end<=b)++d;else if(e.start>=c)break;else if(e.start<= +b&&e.end>=c)if(e.start==b&&e.end==c){e.format=e.format.clone();e.format.__merge(a);break}else if(e.start==b)f=new Te(e.format.clone(),b,c),f.format.__merge(a),this.__textEngine.textFormatRanges.insertAt(d,f),e.start=c,d+=2;else{e.end==c?(f=new Te(e.format.clone(),b,c),f.format.__merge(a),this.__textEngine.textFormatRanges.insertAt(d+1,f)):(f=new Te(e.format.clone(),b,c),f.format.__merge(a),this.__textEngine.textFormatRanges.insertAt(d+1,f),f=new Te(e.format.clone(),c,e.end),this.__textEngine.textFormatRanges.insertAt(d+ +2,f));e.end=b;break}else if(e.start>=b&&e.end<=c)e.start==b?(e.format=e.format.clone(),e.format.__merge(a),e.end=c):this.__textEngine.textFormatRanges.removeAt(d);else if(e.start>b&&e.end>b){e.start=c;break}else e.start<b&&e.end<=c?(f=new Te(e.format.clone(),b,c),f.format.__merge(a),this.__textEngine.textFormatRanges.insertAt(d+1,f),e.end=b,d+=2):(++d,Ga.warn("You found a bug in OpenFL's text code! Please save a copy of your project and contact Joshua Granick (@singmajesty) so we can fix this.",{fileName:"openfl/text/TextField.hx", +lineNumber:1564,className:"openfl.text.TextField",methodName:"setTextFormat"}))}this.__layoutDirty=this.__dirty=!0;this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty())}},__allowMouseFocus:function(){return this.mouseEnabled},__caretBeginningOfLine:function(){this.__caretIndex=this.getLineOffset(this.getLineIndexOfChar(this.__caretIndex))},__caretBeginningOfNextLine:function(){var a=this.getLineIndexOfChar(this.__caretIndex);this.__caretIndex=a<this.__textEngine.numLines-1?this.getLineOffset(a+ +1):this.__text.length},__caretBeginningOfPreviousLine:function(){var a=this.getLineIndexOfChar(this.__caretIndex);if(0<a){var b=this.getLineOffset(this.getLineIndexOfChar(this.__caretIndex));this.__caretIndex=this.__caretIndex==b?this.getLineOffset(a-1):b}},__caretEndOfLine:function(){var a=this.getLineIndexOfChar(this.__caretIndex);this.__caretIndex=a<this.__textEngine.numLines-1?this.getLineOffset(a+1)-1:this.__text.length},__caretNextCharacter:function(){this.__caretIndex<this.__text.length&&this.__caretIndex++}, +__caretNextLine:function(){var a=this.getLineIndexOfChar(this.__caretIndex);a<this.__textEngine.numLines-1&&(this.__caretIndex=this.__getCharIndexOnDifferentLine(this.get_caretIndex(),a+1))},__caretPreviousCharacter:function(){0<this.__caretIndex&&this.__caretIndex--},__caretPreviousLine:function(){var a=this.getLineIndexOfChar(this.__caretIndex);0<a&&(this.__caretIndex=this.__getCharIndexOnDifferentLine(this.get_caretIndex(),a-1))},__disableInput:function(){this.__inputEnabled&&null!=this.stage&& +(this.stage.window.__backend.setTextInputEnabled(!1),this.stage.window.onTextInput.remove(q(this,this.window_onTextInput)),this.stage.window.onKeyDown.remove(q(this,this.window_onKeyDown)),this.__inputEnabled=!1,this.__stopCursorTimer())},__dispatch:function(a){if(2==a.eventPhase&&"mouseUp"==a.type){var b=this.__getGroup(this.get_mouseX(),this.get_mouseY(),!0);null!=b&&(b=b.format.url,null!=b&&""!=b&&(J.startsWith(b,"event:")?this.dispatchEvent(new cf("link",!0,!1,F.substr(b,6,null))):Da.getURL(new Pg(b))))}return ob.prototype.__dispatch.call(this, +a)},__enableInput:function(){if(null!=this.stage){var a=this.getBounds(this.stage);a=new Ad(a.x,a.y,a.width,a.height);this.stage.window.setTextInputRect(a);this.stage.window.__backend.setTextInputEnabled(!0);this.__inputEnabled||(this.stage.window.__backend.setTextInputEnabled(!0),this.stage.window.onTextInput.has(q(this,this.window_onTextInput))||(this.stage.window.onTextInput.add(q(this,this.window_onTextInput)),this.stage.window.onKeyDown.add(q(this,this.window_onKeyDown))),this.__inputEnabled= +!0,this.__startCursorTimer())}},__getAdvance:function(a){return a},__getBounds:function(a,b){this.__updateLayout();var c=fa.__pool.get();c.copyFrom(this.__textEngine.bounds);c.offset(this.__offsetX,this.__offsetY);c.__transform(c,b);a.__expand(c.x,c.y,c.width,c.height);fa.__pool.release(c)},__getCharBoundaries:function(a,b){if(0>a||a>this.__text.length-1)return!1;this.__updateLayout();for(var c=this.__textEngine.layoutGroups.iterator();c.hasNext();){var d=c.next();if(a>=d.startIndex&&a<d.endIndex)try{for(var e= +d.offsetX,f=0,h=a-d.startIndex;f<h;){var l=f++;e+=d.positions[l]}b.setTo(e,d.offsetY,d.positions[a-d.startIndex],d.ascent+d.descent);return!0}catch(t){sa.lastError=t}}return!1},__getCharIndexOnDifferentLine:function(a,b){if(0>a||a>this.__text.length||0>b||b>this.__textEngine.numLines-1)return-1;for(var c=null,d=null,e=this.__textEngine.layoutGroups.iterator();e.hasNext();){var f=e.next();if(a>=f.startIndex&&a<=f.endIndex){c=f.offsetX;for(var h=0,l=a-f.startIndex;h<l;){var k=h++;c+=f.positions[k]}if(null!= +d)return this.__getPosition(c,d)}if(f.lineIndex==b){d=f.offsetY+f.height/2;f=0;for(h=this.get_scrollV()-1;f<h;)l=f++,d-=this.__textEngine.lineHeights.get(l);if(null!=c)return this.__getPosition(c,d)}}return-1},__getCursor:function(){var a=this.__getGroup(this.get_mouseX(),this.get_mouseY(),!0);return null!=a&&""!=a.format.url?"button":this.__textEngine.selectable?"ibeam":null},__getGroup:function(a,b,c){null==c&&(c=!1);this.__updateLayout();a+=this.get_scrollH();for(var d=0,e=this.get_scrollV()-1;d< +e;){var f=d++;b+=this.__textEngine.lineHeights.get(f)}!c&&b>this.__textEngine.textHeight&&(b=this.__textEngine.textHeight);var h=!0;d=0;for(e=this.__textEngine.layoutGroups.get_length();d<e;){f=d++;var l=this.__textEngine.layoutGroups.get(f);f=f<this.__textEngine.layoutGroups.get_length()-1?this.__textEngine.layoutGroups.get(f+1):null;h&&(b<l.offsetY&&(b=l.offsetY),a<l.offsetX&&(a=l.offsetX),h=!1);if(b>=l.offsetY&&b<=l.offsetY+l.height||!c&&null==f)if(a>=l.offsetX&&a<=l.offsetX+l.width||!c&&(null== +f||f.lineIndex!=l.lineIndex))return l}return null},__getPosition:function(a,b){b=this.__getGroup(a,b);if(null==b)return this.__text.length;for(var c=0,d=0,e=b.positions.length;d<e;){var f=d++;c+=b.positions[f];if(a<=b.offsetX+c){if(a<=b.offsetX+(c-b.positions[f])+b.positions[f]/2)return b.startIndex+f;if(b.startIndex+f<b.endIndex)return b.startIndex+f+1;break}}return b.endIndex},__hitTest:function(a,b,c,d,e,f){if(!f.get_visible()||this.__isMask||e&&!this.mouseEnabled||null!=this.get_mask()&&!this.get_mask().__hitTestMask(a, +b))return!1;this.__getRenderTransform();this.__updateLayout();c=this.__renderTransform;e=c.a*c.d-c.b*c.c;var g=0==e?-c.tx:1/e*(c.c*(c.ty-b)+c.d*(a-c.tx));c=this.__renderTransform;e=c.a*c.d-c.b*c.c;return this.__textEngine.bounds.contains(g,0==e?-c.ty:1/e*(c.a*(b-c.ty)+c.b*(c.tx-a)))?(null!=d&&d.push(f),!0):!1},__hitTestMask:function(a,b){this.__getRenderTransform();this.__updateLayout();var c=this.__renderTransform,d=c.a*c.d-c.b*c.c,e=0==d?-c.tx:1/d*(c.c*(c.ty-b)+c.d*(a-c.tx));c=this.__renderTransform; +d=c.a*c.d-c.b*c.c;return this.__textEngine.bounds.contains(e,0==d?-c.ty:1/d*(c.a*(b-c.ty)+c.b*(c.tx-a)))?!0:!1},__replaceSelectedText:function(a,b){null==b&&(b=!0);null==a&&(a="");if(""!=a||this.__selectionIndex!=this.__caretIndex){var c=this.__caretIndex<this.__selectionIndex?this.__caretIndex:this.__selectionIndex,d=this.__caretIndex>this.__selectionIndex?this.__caretIndex:this.__selectionIndex;if(!(c==d&&0<this.__textEngine.maxChars&&this.__text.length==this.__textEngine.maxChars)){c>this.__text.length&& +(c=this.__text.length);d>this.__text.length&&(d=this.__text.length);if(d<c){var e=d;d=c;c=e}0>c&&(c=0);this.__replaceText(c,d,a,b)}}},__replaceText:function(a,b,c,d){if(!(b<a||0>a||b>this.__text.length||null==c)){d&&(c=this.__textEngine.restrictText(c),0<this.__textEngine.maxChars&&(d=this.__textEngine.maxChars-this.__text.length+(b-a),0>=d?c="":d<c.length&&(c=F.substr(c,0,d))));this.__updateText(this.__text.substring(0,a)+c+this.__text.substring(b));d=c.length-(b-a);for(var e=0,f;e<this.__textEngine.textFormatRanges.get_length();){f= +this.__textEngine.textFormatRanges.get(e);if(a==b)f.start==f.end?0!=f.start?Ga.warn("You found a bug in OpenFL's text code! Please save a copy of your project and contact Joshua Granick (@singmajesty) so we can fix this.",{fileName:"openfl/text/TextField.hx",lineNumber:2069,className:"openfl.text.TextField",methodName:"__replaceText"}):f.end+=d:f.end>=a&&(f.start>=a?(f.start+=d,f.end+=d):f.start<a&&f.end>=b&&(f.end+=d));else if(f.end>a)if(f.start>b)f.start+=d,f.end+=d;else if(f.start<=a&&f.end>b)f.end+= +d;else if(f.start>=a&&f.end<=b){f=this.__textEngine.textFormatRanges;f.__tempIndex=e--;for(var h=0,l=[];h<l.length;){var k=l[h++];f.insertAt(f.__tempIndex,k);f.__tempIndex++}f.splice(f.__tempIndex,1)}else f.end>b&&f.start>a&&f.start<=b?(f.start=a,f.end+=d):f.start<a&&f.end>a&&f.end<=b&&(f.end=a);++e}0==this.__textEngine.textFormatRanges.get_length()?this.__textEngine.textFormatRanges.push(new Te(this.get_defaultTextFormat().clone(),0,c.length)):a==b&&0<this.__textEngine.textFormatRanges.get(0).start? +this.__textEngine.textFormatRanges.unshift(new Te(this.get_defaultTextFormat().clone(),0,this.__textEngine.textFormatRanges.get(0).start)):a!=b&&this.__textEngine.textFormatRanges.get(this.__textEngine.textFormatRanges.get_length()-1).end<this.__text.length&&this.__textEngine.textFormatRanges.push(new Te(this.get_defaultTextFormat().clone(),this.__textEngine.textFormatRanges.get(this.__textEngine.textFormatRanges.get_length()-1).end,this.__text.length));this.__selectionIndex=this.__caretIndex=a+c.length; +this.__layoutDirty=this.__dirty=!0;this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty())}},__startCursorTimer:function(){1==this.get_type()?(this.__cursorTimer=Oe.delay(q(this,this.__startCursorTimer),600),this.__showCursor=!this.__showCursor,this.__dirty=!0,this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty())):this.get_selectable()&&(this.__dirty=!0,this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty()))},__startTextInput:function(){0>this.__caretIndex&& +(this.__selectionIndex=this.__caretIndex=this.__text.length);(A.__supportDOM?this.__renderedOnCanvasWhileOnDOM:1)&&this.__enableInput()},__stopCursorTimer:function(){null!=this.__cursorTimer&&(this.__cursorTimer.stop(),this.__cursorTimer=null);this.__showCursor&&(this.__showCursor=!1,this.__dirty=!0,this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty()))},__stopTextInput:function(){(A.__supportDOM?this.__renderedOnCanvasWhileOnDOM:1)&&this.__disableInput()},__updateLayout:function(){if(this.__layoutDirty){var a= +this.__textEngine.width;this.__textEngine.update();if(2!=this.__textEngine.autoSize){if(this.__textEngine.width!=a)switch(this.__textEngine.autoSize){case 0:this.set_x(this.get_x()+(a-this.__textEngine.width)/2);break;case 3:this.set_x(this.get_x()+(a-this.__textEngine.width))}this.__textEngine.getBounds()}this.__layoutDirty=!1;this.setSelection(this.__selectionIndex,this.__caretIndex)}},__updateScrollH:function(){this.__updateLayout();if(this.get_textWidth()<=this.get_width()-4)this.set_scrollH(0); +else{var a=this.get_scrollH();if(0==this.__caretIndex||this.getLineOffset(this.getLineIndexOfChar(this.__caretIndex))==this.__caretIndex)a=0;else{var b=fa.__pool.get(),c=!1;this.__caretIndex<this.__text.length&&(c=this.__getCharBoundaries(this.__caretIndex,b));c||(this.__getCharBoundaries(this.__caretIndex-1,b),b.x+=b.width);for(;b.x<a&&0<a;)a-=24;for(;b.x>a+this.get_width()-4;)a+=24;fa.__pool.release(b)}0<a&&1!=this.get_type()&&(b=this.getLineLength(this.getLineIndexOfChar(this.__caretIndex)),this.get_scrollH()+ +this.get_width()-4>b&&this.set_scrollH(Math.ceil(b-this.get_width()+4)));0>a?this.set_scrollH(0):a>this.get_maxScrollH()?this.set_scrollH(this.get_maxScrollH()):this.set_scrollH(a)}},__updateScrollV:function(){this.__updateLayout();if(this.get_textHeight()<=this.get_height()-4)this.set_scrollV(1);else{var a=this.getLineIndexOfChar(this.__caretIndex);-1==a&&0<this.__caretIndex&&(a=this.getLineIndexOfChar(this.__caretIndex-1)+1);if(a+1<this.get_scrollV())this.set_scrollV(a+1);else if(a+1>this.get_bottomScrollV()){var b= +0;for(a>=this.__textEngine.lineHeights.get_length()&&(a=this.__textEngine.lineHeights.get_length()-1);0<=a;){b+=this.__textEngine.lineHeights.get(a);if(b>this.get_height()-4){a+=0>b-this.get_height()?1:2;break}--a}this.set_scrollV(a)}else this.set_scrollV(this.get_scrollV())}},__updateMouseDrag:function(){null!=this.stage&&(this.get_mouseX()>this.get_width()-1?this.set_scrollH(this.get_scrollH()+(Math.max(Math.min(.1*(this.get_mouseX()-this.get_width()),10),1)|0)):1>this.get_mouseX()&&this.set_scrollH(this.get_scrollH()- +(Math.max(Math.min(-.1*this.get_mouseX(),10),1)|0)),this.__mouseScrollVCounter++,this.__mouseScrollVCounter>this.stage.get_frameRate()/10&&(this.get_mouseY()>this.get_height()-2?this.set_scrollV(Math.min(this.get_scrollV()+Math.max(Math.min(.03*(this.get_mouseY()-this.get_height()),5),1),this.get_maxScrollV())|0):2>this.get_mouseY()&&this.set_scrollV(this.get_scrollV()-(Math.max(Math.min(-.03*this.get_mouseY(),5),1)|0)),this.__mouseScrollVCounter=0),this.stage_onMouseMove(null))},__updateText:function(a){A.__supportDOM&& +this.__renderedOnCanvasWhileOnDOM&&(this.__forceCachedBitmapUpdate=this.__text!=a);this.__textEngine.set_text(a);this.__text=this.__textEngine.text;null!=this.stage&&this.stage.get_focus()==this?(this.__text.length<this.__selectionIndex&&(this.__selectionIndex=this.__text.length),this.__text.length<this.__caretIndex&&(this.__caretIndex=this.__text.length)):this.__isHTML?this.__selectionIndex=this.__caretIndex=this.__text.length:this.__caretIndex=this.__selectionIndex=0;if(!this.__displayAsPassword|| +A.__supportDOM&&!this.__renderedOnCanvasWhileOnDOM)this.__textEngine.set_text(this.__text);else{a="";for(var b=0,c=this.get_text().length;b<c;)b++,a+="*";this.__textEngine.set_text(a)}},__updateTransforms:function(a){ob.prototype.__updateTransforms.call(this,a);a=this.__renderTransform;var b=this.__offsetX,c=this.__offsetY;a.tx=b*a.a+c*a.c+a.tx;a.ty=b*a.b+c*a.d+a.ty},get_antiAliasType:function(){return this.__textEngine.antiAliasType},set_antiAliasType:function(a){return this.__textEngine.antiAliasType= +a},get_autoSize:function(){return this.__textEngine.autoSize},set_autoSize:function(a){a!=this.__textEngine.autoSize&&(this.__layoutDirty=this.__dirty=!0,this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty()));return this.__textEngine.autoSize=a},get_background:function(){return this.__textEngine.background},set_background:function(a){a!=this.__textEngine.background&&(this.__dirty=!0,this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty()));return this.__textEngine.background= +a},get_backgroundColor:function(){return this.__textEngine.backgroundColor},set_backgroundColor:function(a){a!=this.__textEngine.backgroundColor&&(this.__dirty=!0,this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty()));return this.__textEngine.backgroundColor=a},get_border:function(){return this.__textEngine.border},set_border:function(a){a!=this.__textEngine.border&&(this.__dirty=!0,this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty()));return this.__textEngine.border= +a},get_borderColor:function(){return this.__textEngine.borderColor},set_borderColor:function(a){a!=this.__textEngine.borderColor&&(this.__dirty=!0,this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty()));return this.__textEngine.borderColor=a},get_bottomScrollV:function(){this.__updateLayout();return this.__textEngine.get_bottomScrollV()},get_caretIndex:function(){return this.__caretIndex},get_defaultTextFormat:function(){return this.__textFormat.clone()},set_defaultTextFormat:function(a){this.__textFormat.__merge(a); +this.__dirty=this.__layoutDirty=!0;this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty());return a},get_displayAsPassword:function(){return this.__displayAsPassword},set_displayAsPassword:function(a){a!=this.__displayAsPassword&&(this.__layoutDirty=this.__dirty=!0,this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty()),this.__displayAsPassword=a,this.__updateText(this.__text));return a},get_embedFonts:function(){return this.__textEngine.embedFonts},set_embedFonts:function(a){return this.__textEngine.embedFonts= +a},get_gridFitType:function(){return this.__textEngine.gridFitType},set_gridFitType:function(a){return this.__textEngine.gridFitType=a},get_height:function(){this.__updateLayout();return this.__textEngine.height*Math.abs(this.get_scaleY())},set_height:function(a){a!=this.__textEngine.height&&(this.__setTransformDirty(),this.__layoutDirty=this.__dirty=!0,this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty()),this.__textEngine.height=a);return this.__textEngine.height*Math.abs(this.get_scaleY())}, +get_htmlText:function(){return this.__isHTML?this.__htmlText:this.__text},set_htmlText:function(a){this.__isHTML&&this.__text==a||(this.__layoutDirty=this.__dirty=!0,this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty()));this.__isHTML=!0;this.condenseWhite&&(a=a.replace(/\s+/g," "));this.__htmlText=a;a=lb.parse(a,this.get_multiline(),this.__styleSheet,this.__textFormat,this.__textEngine.textFormatRanges);this.__updateText(a);return a},get_length:function(){return null!=this.__text? +this.__text.length:0},get_maxChars:function(){return this.__textEngine.maxChars},set_maxChars:function(a){a!=this.__textEngine.maxChars&&(this.__textEngine.maxChars=a,this.__layoutDirty=this.__dirty=!0,this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty()));return a},get_maxScrollH:function(){this.__updateLayout();return this.__textEngine.maxScrollH},get_maxScrollV:function(){this.__updateLayout();return this.__textEngine.get_maxScrollV()},get_mouseWheelEnabled:function(){return this.__mouseWheelEnabled}, +set_mouseWheelEnabled:function(a){return this.__mouseWheelEnabled=a},get_multiline:function(){return this.__textEngine.multiline},set_multiline:function(a){return this.__textEngine.multiline=a},get_numLines:function(){this.__updateLayout();return this.__textEngine.numLines},get_restrict:function(){return this.__textEngine.restrict},set_restrict:function(a){this.__textEngine.restrict!=a&&(this.__textEngine.set_restrict(a),this.__updateText(this.__text));return a},get_scrollH:function(){return this.__textEngine.scrollH}, +set_scrollH:function(a){this.__updateLayout();a>this.__textEngine.maxScrollH&&(a=this.__textEngine.maxScrollH);0>a&&(a=0);a!=this.__textEngine.scrollH&&(this.__dirty=!0,this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty()),this.__textEngine.scrollH=a,this.dispatchEvent(new la("scroll")));return this.__textEngine.scrollH},get_scrollV:function(){return this.__textEngine.get_scrollV()},set_scrollV:function(a){this.__updateLayout();if(a!=this.__textEngine.get_scrollV()||0==this.__textEngine.get_scrollV())this.__dirty= +!0,this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty()),this.__textEngine.set_scrollV(a),this.dispatchEvent(new la("scroll"));return this.__textEngine.get_scrollV()},get_selectable:function(){return this.__textEngine.selectable},set_selectable:function(a){a!=this.__textEngine.selectable&&1==this.get_type()&&(null!=this.stage&&this.stage.get_focus()==this?this.__startTextInput():a||this.__stopTextInput());return this.__textEngine.selectable=a},get_selectionBeginIndex:function(){return Math.min(this.__caretIndex, +this.__selectionIndex)|0},get_selectionEndIndex:function(){return Math.max(this.__caretIndex,this.__selectionIndex)|0},get_sharpness:function(){return this.__textEngine.sharpness},set_sharpness:function(a){a!=this.__textEngine.sharpness&&(this.__dirty=!0,this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty()));return this.__textEngine.sharpness=a},get_styleSheet:function(){return this.__styleSheet},set_styleSheet:function(a){null!=this.__styleSheet&&null==a||null==a||(this.__isHTML&& +a!=this.__styleSheet&&(this.__layoutDirty=this.__dirty=!0,this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty()),this.set_htmlText(this.__htmlText)),this.set_type(0));return this.__styleSheet=a},get_tabEnabled:function(){return null==this.__tabEnabled?1==this.__textEngine.type:this.__tabEnabled},get_text:function(){return this.__text},set_text:function(a){if(null!=this.__styleSheet)return this.set_htmlText(a);if(this.__isHTML||this.__text!=a)this.__layoutDirty=this.__dirty=!0,this.__renderDirty|| +(this.__renderDirty=!0,this.__setParentRenderDirty());else return a;if(1<this.__textEngine.textFormatRanges.get_length()){var b=this.__textEngine.textFormatRanges,c=this.__textEngine.textFormatRanges.get_length()-1;b.__tempIndex=1;for(var d=0,e=[];d<e.length;){var f=e[d++];b.insertAt(b.__tempIndex,f);b.__tempIndex++}b.splice(b.__tempIndex,c)}b=this.__textEngine.textFormatRanges.get(0);b.format=this.__textFormat;b.start=0;b.end=a.length;this.__isHTML=!1;this.__updateText(a);return a},get_textColor:function(){return this.__textFormat.color}, +set_textColor:function(a){a!=this.__textFormat.color&&(this.__dirty=!0,this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty()));for(var b=this.__textEngine.textFormatRanges.iterator();b.hasNext();)b.next().format.color=a;return this.__textFormat.color=a},get_textWidth:function(){this.__updateLayout();return this.__textEngine.textWidth},get_textHeight:function(){this.__updateLayout();return this.__textEngine.textHeight},get_type:function(){return this.__textEngine.type},set_type:function(a){null!= +this.__styleSheet&&(a=0);a!=this.__textEngine.type&&(this.__textEngine.type=a,1==a?(this.addEventListener("addedToStage",q(this,this.this_onAddedToStage)),this.this_onFocusIn(null),this.__textEngine.__useIntAdvances=!0):(this.removeEventListener("addedToStage",q(this,this.this_onAddedToStage)),this.__stopTextInput(),this.__textEngine.__useIntAdvances=null),this.__layoutDirty=this.__dirty=!0,this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty()));return this.__textEngine.type},get_width:function(){this.__updateLayout(); +return this.__textEngine.width*Math.abs(this.__scaleX)},set_width:function(a){a!=this.__textEngine.width&&(this.__setTransformDirty(),this.__layoutDirty=this.__dirty=!0,this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty()),this.__textEngine.width=a);return this.__textEngine.width*Math.abs(this.__scaleX)},get_wordWrap:function(){return this.__textEngine.wordWrap},set_wordWrap:function(a){a!=this.__textEngine.wordWrap&&(this.__layoutDirty=this.__dirty=!0,this.__renderDirty||(this.__renderDirty= +!0,this.__setParentRenderDirty()));return this.__textEngine.wordWrap=a},get_x:function(){return this.__transform.tx+this.__offsetX},set_x:function(a){a!=this.__transform.tx+this.__offsetX&&this.__setTransformDirty();this.__transform.tx=a-this.__offsetX;return a},get_y:function(){return this.__transform.ty+this.__offsetY},set_y:function(a){a!=this.__transform.ty+this.__offsetY&&this.__setTransformDirty();this.__transform.ty=a-this.__offsetY;return a},stage_onMouseMove:function(a){null!=this.stage&& +this.get_selectable()&&0<=this.__selectionIndex&&(this.__updateLayout(),a=this.__getPosition(this.get_mouseX()+this.get_scrollH(),this.get_mouseY()),a!=this.__caretIndex&&(this.__caretIndex=a,a=!0,A.__supportDOM&&(this.__renderedOnCanvasWhileOnDOM&&(this.__forceCachedBitmapUpdate=!0),a=!1),a&&(this.__dirty=!0,this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty()))))},stage_onMouseUp:function(a){a=a.currentTarget;a.removeEventListener("enterFrame",q(this,this.this_onEnterFrame)); +a.removeEventListener("mouseMove",q(this,this.stage_onMouseMove));a.removeEventListener("mouseUp",q(this,this.stage_onMouseUp));if(null!=this.stage&&a.get_focus()==this){this.__getWorldTransform();this.__updateLayout();a=this.__getPosition(this.get_mouseX()+this.get_scrollH(),this.get_mouseY());var b=Math.max(this.__selectionIndex,a)|0;this.__selectionIndex=Math.min(this.__selectionIndex,a)|0;this.__caretIndex=b;this.__inputEnabled&&(this.this_onFocusIn(null),this.__stopCursorTimer(),this.__startCursorTimer(), +A.__supportDOM&&this.__renderedOnCanvasWhileOnDOM&&(this.__forceCachedBitmapUpdate=!0))}},this_onAddedToStage:function(a){this.this_onFocusIn(null)},this_onEnterFrame:function(a){this.__updateMouseDrag()},this_onFocusIn:function(a){1==this.get_type()&&null!=this.stage&&this.stage.get_focus()==this?this.__startTextInput():1!=this.get_type()&&this.get_selectable()&&null!=this.stage&&this.stage.get_focus()==this&&this.__startCursorTimer()},this_onFocusOut:function(a){this.__stopCursorTimer();this.__stopTextInput(); +this.__selectionIndex!=this.__caretIndex&&(this.__selectionIndex=this.__caretIndex,this.__dirty=!0,this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty()))},this_onKeyDown:function(a){this.get_selectable()&&1!=this.get_type()&&67==a.keyCode&&(a.commandKey||a.ctrlKey)&&this.__caretIndex!=this.__selectionIndex&&fe.set_text(this.__text.substring(this.__caretIndex,this.__selectionIndex))},this_onMouseDown:function(a){if(this.get_selectable()||1==this.get_type())this.__updateLayout(), +this.__selectionIndex=this.__caretIndex=this.__getPosition(this.get_mouseX()+this.get_scrollH(),this.get_mouseY()),A.__supportDOM||(this.__dirty=!0,this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty())),null!=this.stage&&(this.stage.addEventListener("enterFrame",q(this,this.this_onEnterFrame)),this.stage.addEventListener("mouseMove",q(this,this.stage_onMouseMove)),this.stage.addEventListener("mouseUp",q(this,this.stage_onMouseUp)))},this_onMouseWheel:function(a){this.get_mouseWheelEnabled()&& +this.set_scrollV(Math.min(this.get_scrollV()-a.delta,this.get_maxScrollV())|0)},this_onDoubleClick:function(a){if(this.get_selectable()){this.__updateLayout();a="\n.!?, ;:()-_/".split("");var b=this.__text,c=-1,d=b.length,e=Math.max(this.__caretIndex,1)|0;if(0<b.length&&0<=this.__caretIndex&&d>=this.__caretIndex){for(var f=0;f<a.length;){var h=a[f];++f;var l=b.lastIndexOf(h,e-1);l>c&&(c=l+1);l=b.indexOf(h,e);l<d&&-1!=l&&(d=l)}c!=d&&(this.setSelection(c,d),a=!0,A.__supportDOM&&(this.__renderedOnCanvasWhileOnDOM&& +(this.__forceCachedBitmapUpdate=!0),a=!1),a&&(this.__dirty=!0,this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty())))}}},window_onKeyDown:function(a,b){switch(a){case 8:this.__selectionIndex==this.__caretIndex&&0<this.__caretIndex&&(this.__selectionIndex=this.__caretIndex-1);this.__selectionIndex!=this.__caretIndex?(this.replaceSelectedText(""),this.__selectionIndex=this.__caretIndex,this.dispatchEvent(new la("change",!0))):(this.__stopCursorTimer(),this.__startCursorTimer()); +break;case 97:this.get_selectable()&&(xb.get_metaKey(b)||xb.get_ctrlKey(b))&&this.setSelection(0,this.__text.length);break;case 99:(xb.get_metaKey(b)||xb.get_ctrlKey(b))&&this.__caretIndex!=this.__selectionIndex&&fe.set_text(this.__text.substring(this.__caretIndex,this.__selectionIndex));break;case 120:(xb.get_metaKey(b)||xb.get_ctrlKey(b))&&this.__caretIndex!=this.__selectionIndex&&(fe.set_text(this.__text.substring(this.__caretIndex,this.__selectionIndex)),this.replaceSelectedText(""),this.dispatchEvent(new la("change", +!0)));break;case 127:this.__selectionIndex==this.__caretIndex&&this.__caretIndex<this.__text.length&&(this.__selectionIndex=this.__caretIndex+1);this.__selectionIndex!=this.__caretIndex?(this.replaceSelectedText(""),this.__selectionIndex=this.__caretIndex,this.dispatchEvent(new la("change",!0))):(this.__stopCursorTimer(),this.__startCursorTimer());break;case 1073741898:this.get_selectable()&&(xb.get_metaKey(b)||xb.get_ctrlKey(b)?this.__caretIndex=0:this.__caretBeginningOfLine(),xb.get_shiftKey(b)|| +(this.__selectionIndex=this.__caretIndex),this.setSelection(this.__selectionIndex,this.__caretIndex));break;case 1073741901:this.get_selectable()&&(xb.get_metaKey(b)||xb.get_ctrlKey(b)?this.__caretIndex=this.__text.length:this.__caretEndOfLine(),xb.get_shiftKey(b)||(this.__selectionIndex=this.__caretIndex),this.setSelection(this.__selectionIndex,this.__caretIndex));break;case 1073741903:this.get_selectable()&&(xb.get_metaKey(b)||xb.get_ctrlKey(b)?this.__caretBeginningOfNextLine():this.__caretNextCharacter(), +xb.get_shiftKey(b)||(this.__selectionIndex=this.__caretIndex),this.setSelection(this.__selectionIndex,this.__caretIndex));break;case 1073741904:this.get_selectable()&&(xb.get_metaKey(b)||xb.get_ctrlKey(b)?this.__caretBeginningOfPreviousLine():this.__caretPreviousCharacter(),xb.get_shiftKey(b)||(this.__selectionIndex=this.__caretIndex),this.setSelection(this.__selectionIndex,this.__caretIndex));break;case 1073741905:this.get_selectable()&&(xb.get_metaKey(b)||xb.get_ctrlKey(b)?this.__caretIndex=this.__text.length: +this.__caretNextLine(),xb.get_shiftKey(b)||(this.__selectionIndex=this.__caretIndex),this.setSelection(this.__selectionIndex,this.__caretIndex));break;case 1073741906:this.get_selectable()&&(xb.get_metaKey(b)||xb.get_ctrlKey(b)?this.__caretIndex=0:this.__caretPreviousLine(),xb.get_shiftKey(b)||(this.__selectionIndex=this.__caretIndex),this.setSelection(this.__selectionIndex,this.__caretIndex));break;case 13:case 1073741912:this.__textEngine.multiline?(a=new cf("textInput",!0,!0,"\n"),this.dispatchEvent(a), +a.isDefaultPrevented()||(this.__replaceSelectedText("\n",!0),this.dispatchEvent(new la("change",!0)))):(this.__stopCursorTimer(),this.__startCursorTimer())}},window_onTextInput:function(a){this.__replaceSelectedText(a,!0);this.dispatchEvent(new la("change",!0))},__class__:ff,__properties__:u(ob.prototype.__properties__,{set_wordWrap:"set_wordWrap",get_wordWrap:"get_wordWrap",set_type:"set_type",get_type:"get_type",get_textWidth:"get_textWidth",get_textHeight:"get_textHeight",set_textColor:"set_textColor", +get_textColor:"get_textColor",set_text:"set_text",get_text:"get_text",set_styleSheet:"set_styleSheet",get_styleSheet:"get_styleSheet",set_sharpness:"set_sharpness",get_sharpness:"get_sharpness",get_selectionEndIndex:"get_selectionEndIndex",get_selectionBeginIndex:"get_selectionBeginIndex",set_selectable:"set_selectable",get_selectable:"get_selectable",set_scrollV:"set_scrollV",get_scrollV:"get_scrollV",set_scrollH:"set_scrollH",get_scrollH:"get_scrollH",set_restrict:"set_restrict",get_restrict:"get_restrict", +get_numLines:"get_numLines",set_multiline:"set_multiline",get_multiline:"get_multiline",set_mouseWheelEnabled:"set_mouseWheelEnabled",get_mouseWheelEnabled:"get_mouseWheelEnabled",get_maxScrollV:"get_maxScrollV",get_maxScrollH:"get_maxScrollH",set_maxChars:"set_maxChars",get_maxChars:"get_maxChars",get_length:"get_length",set_htmlText:"set_htmlText",get_htmlText:"get_htmlText",set_gridFitType:"set_gridFitType",get_gridFitType:"get_gridFitType",set_embedFonts:"set_embedFonts",get_embedFonts:"get_embedFonts", +set_displayAsPassword:"set_displayAsPassword",get_displayAsPassword:"get_displayAsPassword",set_defaultTextFormat:"set_defaultTextFormat",get_defaultTextFormat:"get_defaultTextFormat",get_caretIndex:"get_caretIndex",get_bottomScrollV:"get_bottomScrollV",set_borderColor:"set_borderColor",get_borderColor:"get_borderColor",set_border:"set_border",get_border:"get_border",set_backgroundColor:"set_backgroundColor",get_backgroundColor:"get_backgroundColor",set_background:"set_background",get_background:"get_background", +set_autoSize:"set_autoSize",get_autoSize:"get_autoSize",set_antiAliasType:"set_antiAliasType",get_antiAliasType:"get_antiAliasType"})});var tg=function(a,b,c,d,e,f,h,l,k,m,n,p,r){this.font=a;this.size=b;this.color=c;this.bold=d;this.italic=e;this.underline=f;this.url=h;this.target=l;this.align=k;this.leftMargin=m;this.rightMargin=n;this.indent=p;this.leading=r};k["openfl.text.TextFormat"]=tg;tg.__name__="openfl.text.TextFormat";tg.prototype={align:null,blockIndent:null,bold:null,bullet:null,color:null, +font:null,indent:null,italic:null,kerning:null,leading:null,leftMargin:null,letterSpacing:null,rightMargin:null,size:null,tabStops:null,target:null,underline:null,url:null,__ascent:null,__descent:null,__cacheKey:null,clone:function(){var a=new tg(this.font,this.size,this.color,this.bold,this.italic,this.underline,this.url,this.target);a.align=this.align;a.leftMargin=this.leftMargin;a.rightMargin=this.rightMargin;a.indent=this.indent;a.leading=this.leading;a.blockIndent=this.blockIndent;a.bullet=this.bullet; +a.kerning=this.kerning;a.letterSpacing=this.letterSpacing;a.tabStops=this.tabStops;a.__ascent=this.__ascent;a.__descent=this.__descent;a.__cacheKey=this.__toCacheKey();return a},__merge:function(a){null!=a.font&&(this.font=a.font);null!=a.size&&(this.size=a.size);null!=a.color&&(this.color=a.color);null!=a.bold&&(this.bold=a.bold);null!=a.italic&&(this.italic=a.italic);null!=a.underline&&(this.underline=a.underline);null!=a.url&&(this.url=a.url);null!=a.target&&(this.target=a.target);null!=a.align&& +(this.align=a.align);null!=a.leftMargin&&(this.leftMargin=a.leftMargin);null!=a.rightMargin&&(this.rightMargin=a.rightMargin);null!=a.indent&&(this.indent=a.indent);null!=a.leading&&(this.leading=a.leading);null!=a.blockIndent&&(this.blockIndent=a.blockIndent);null!=a.bullet&&(this.bullet=a.bullet);null!=a.kerning&&(this.kerning=a.kerning);null!=a.letterSpacing&&(this.letterSpacing=a.letterSpacing);null!=a.tabStops&&(this.tabStops=a.tabStops);null!=a.__ascent&&(this.__ascent=a.__ascent);null!=a.__descent&& +(this.__descent=a.__descent);this.__toCacheKey()},__toCacheKey:function(){return this.__cacheKey=""+this.font+this.size+n.string(this.bold)+n.string(this.italic)},__class__:tg};var ik={fromString:function(a){switch(a){case "center":return 0;case "end":return 1;case "justify":return 2;case "left":return 3;case "right":return 4;case "start":return 5;default:return null}},toString:function(a){switch(a){case 0:return"center";case 1:return"end";case 2:return"justify";case 3:return"left";case 4:return"right"; +case 5:return"start";default:return null}}},pp=function(a,b,c,d,e,f){this.x=a;this.width=b;this.height=c;this.ascent=d;this.descent=e;this.leading=f};k["openfl.text.TextLineMetrics"]=pp;pp.__name__="openfl.text.TextLineMetrics";pp.prototype={ascent:null,descent:null,height:null,leading:null,width:null,x:null,__class__:pp};var op=function(a){this.importRegex=new Z("@import .*?;","ig");this.commentRegex="(\\/\\*[\\s\\S]*?\\*\\/)";this.combinedCSSRegex="((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)*?})"; +this.keyframeRegex="((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})";this.mediaQueryRegex="((@media [\\s\\S]*?){([\\s\\S]*?}\\s*?)})";this.cssRegex=new Z("([\\s\\S]*?){([\\s\\S]*?)*}","ig");this.keyframeStatements=[];this.importStatements=[]};k["openfl.text._internal.CSSParser"]=op;op.__name__="openfl.text._internal.CSSParser";op.prototype={source:null,options:null,importStatements:null,keyframeStatements:null,cssRegex:null,mediaQueryRegex:null,keyframeRegex:null,combinedCSSRegex:null,commentRegex:null, +importRegex:null,stripComments:function(a){return a.replace(new RegExp(this.commentRegex,"ig"),"")},parseRules:function(a){for(var b=new Z("(\\*?[-#/\\*\\\\\\w]+(\\[[0-9a-z_-]+\\])?)+((?:'(?:\\\\'|.)*?'|\"(?:\\\\\"|.)*?\"|\\([^\\)]*?\\)|[^};])+)","g"),c=this.getMatches(b,a),d=[],e=0,f=c.length;e<f;){a=e++;if(!b.match(c[a]))return null;var h=a=b.matched(0).split("\r\n").join("\n");h=J.trim(h);if(-1!=h.indexOf(":")){if(a=J.trim(h.split(":")[0]),h=J.trim(h.split(":")[1]),!(1>a.length||1>h.length)){var l= +new V;l.h.type="declaration";l.h.property=a;l.h.value=h;d.push(l)}}else"base64,"==F.substr(J.trim(h),0,7)?(a=h+J.trim(h),d[d.length-1].h.value=a):0<h.length&&(a=new V,a.h.type="declaration",a.h.property="",a.h.value=h,a.h.defective=!0,d.push(a))}return d},findCorrespondingRule:function(a,b,c){for(var d=null,e=0,f=a.length;e<f;){var h=e++;if(a[h].h.directive==b&&(d=a[h],c==a[h].h.value))break}return d},findBySelector:function(a,b,c){null==c&&(c=!1);for(var d=[],e=0,f=a.length;e<f;){var h=e++;0==c? +a[h].h.selector==b&&d.push(a[h]):-1!=O.__cast(a[h].h.selector,String).indexOf(b)&&d.push(a[h])}if("@imports"==b||2>d.length)return d;a=d[0];e=0;for(f=d.length;e<f;)h=e++,this.intelligentCSSPush([a],d[h]);return[a]},deleteBySelector:function(a,b){for(var c=[],d=0,e=a.length;d<e;){var f=d++;a[f].h.selector!=b&&c.push(a[f])}return c},compress:function(a){for(var b=[],c=Object.create(null),d=0,e=a.length;d<e;){var f=d++;f=a[f];1!=c[f.h.selector]&&(f=this.findBySelector(a,f.h.selector),0!=f.length&&(b= +b.concat(f),c.selector=!0))}return b},diff:function(a,b){if(a.h.selector==b.h.selector||"media"==a.h.type||"media"==b.h.type)return null;var c=new V;c.h.selector=a.h.selector;c.h.rules=[];var d=c;new V;new V;var e=O.__cast(a.h.rules,Array).length;var f=O.__cast(b.h.rules,Array).length;c=0;for(var h=e;c<h;){c++;e=O.__cast(a.h.rules,Array)[1];var l=this.findCorrespondingRule(b.h.rules,a.h.directive,a.h.value);null==l?O.__cast(d.h.rules,Array).push(e):e.h.value!=l.h.value&&O.__cast(d.h.rules,Array).push(e)}c= +0;for(h=f;c<h;)c++,l=O.__cast(a.h.rules,Array)[1],e=this.findCorrespondingRule(a.h.rules,b.h.directive),null==e&&(l.h.type="DELETED",O.__cast(d.h.rules,Array).push(l));return 0==O.__cast(d.h.rules,Array).length?null:d},intelligentMerge:function(a,b,c){null==c&&(c=!1);for(var d=0,e=b.length;d<e;){var f=d++;this.intelligentCSSPush(a,b[f],c)}d=0;for(e=a.length;d<e;)f=d++,b=a[f],"media"!=b.h.type&&"keyframes"!=b.h.type&&(c=this.compactRules(b.h.rules),b.h.rules=c)},intelligentCSSPush:function(a,b,c){null== +c&&(c=!1);var d=null;if(0==c){c=0;for(var e=a.length;c<e;){var f=c++;if(a[f].h.selector==b.h.selector){d=a[f];break}}}else for(c=a.length-1;-1<c;){if(a[c].h.selector==b.h.selector){d=a[c];break}--c}if(null==d)a.push(b);else if("media"!=b.h.type)for(a=b.h.rules,c=0,e=a.length;c<e;)f=c++,b=a[f],f=this.findCorrespondingRule(d.h.rules,b.h.directive),null==f?d.h.rules.push(b):"DELETED"==b.h.type?f.h.type="DELETED":f.h.value=b.h.value;else c=O.__cast(d.h.subStyles,Array).concat(b.h.subStyles),d.h.value= +c},compactRules:function(a){for(var b=[],c=0,d=a.length;c<d;){var e=c++;"DELETED"!=a[e].h.type&&b.push(a[e])}return b},getImports:function(a){for(var b=[],c=0,d=a.length;c<d;){var e=c++;"imports"==a[e].h.type&&b.push(a[e].h.styles)}return b},parse:function(a){if(null==a)return null;var b=/^\s+|\s+$/g;a=a.replace(b,"");for(var c=[],d=this.importRegex.match(a);d;){var e=this.importRegex.matched(0);if(null!=e){this.importStatements.push(e);var f=new V;f.h.selector="@imports";f.h.type="imports";f.h.styles= +e;c.push(f)}else break}a=a.replace(this.importRegex.r,"");for(e=new Z(this.keyframeRegex,"gi");e.match(a);){d=this.getMatches(e,a);if(null==d)break;f=new V;f.h.selectors="@keyframes";f.h.type="keyframes";var h=e.matchedRight();f.h.styles=h;c.push(f)}a=a.replace(e.r,"");for(f=new Z(this.combinedCSSRegex,"gi");f.match(a);){d=this.getMatches(f,a);if(null==d)break;a="";f=0;for(e=d.length;f<e;){var l=f++;h=new Z("^([^{]+)","");if(h.match(d[l]))null!=h.matched(0)&&(a=J.trim(h.matched(0).split("\r\n").join("\n"))), +b=new Z(this.commentRegex,"gi"),l=this.getMatches(b,a),null!=l&&(a=J.trim(a.replace(b.r,""))),b=/\n+/,a=a.replace(b,"\n"),-1!=a.indexOf("@media")?(b=new V,b.h.selectors=a,b.h.type="media",h=this.parse(h.matchedRight()+"\n}"),b.h.subStyles=h,h=b,null!=l&&(h.h.comments=l[0]),c.push(h)):null!=h.matchedRight()&&(h=this.parseRules(h.matchedRight()),b=new V,b.h.selectors=a,b.h.type="rule",b.h.declarations=h,h=b,"@font-face"==a&&(h.h.type="font-face"),null!=l&&(h.h.comments=l[0]),c.push(h));else break}break}f= +new V;f.h.type="stylesheet";f.h.rules=c;f.h.parsingErrors=[];return f},getMatches:function(a,b,c){null==c&&(c=0);for(var d=[];a.match(b);)b=J.trim(a.matched(c)),d.push(b),b=J.trim(a.matchedRight());return 0==d.length?null:d},__class__:op};var jk=function(a,b){this.__collisions=[];this.__wordMap=new Sa;this.set(a,b)};k["openfl.text._internal.CacheMeasurement"]=jk;jk.__name__="openfl.text._internal.CacheMeasurement";jk.prototype={__collisions:null,__wordMap:null,hash:null,set:function(a,b){this.__addCollision(a, +b)},get:function(a){return 1<this.__collisions.length?this.__wordMap.h[this.__collisions.indexOf(a)]:this.__wordMap.h[0]},__addCollision:function(a,b){if(!this.exists(a)){var c=this.__wordMap;a=this.__collisions.push(a)-1;c.h[a]=b}},exists:function(a){return 0==this.__collisions.length?!1:-1<this.__collisions.indexOf(a)},__class__:jk};var qp=function(a,b,c){this.glyph=a;this.advance=b;this.offset=null!=c?c:new Td};k["openfl.text._internal.GlyphPosition"]=qp;qp.__name__="openfl.text._internal.GlyphPosition"; +qp.prototype={advance:null,glyph:null,offset:null,__class__:qp};var lb=function(){};k["openfl.text._internal.HTMLParser"]=lb;lb.__name__="openfl.text._internal.HTMLParser";lb.parse=function(a,b,c,d,e){a=b?a.replace(lb.__regexBreakTag.r,"\n"):a.replace(lb.__regexBreakTag.r,"");a=a.replace(lb.__regexEntities[5].r," ");a=lb.__regexCharEntity.map(a,function(a){var b=a.matched(1),c=a.matched(2);return null!=b&&(b=n.parseInt(b),null!=b)?String.fromCodePoint(b):null!=c&&(c=n.parseInt("0"+c),null!=c)?String.fromCodePoint(c): +a.matched(0)});var f=a.split("<");if(1==f.length){a=J.htmlUnescape(a.replace(lb.__regexHTMLTag.r,""));if(1<e.get_length()){var h=e.get_length()-1,l=[];e.__tempIndex=1;for(var k=0;k<l.length;){var m=l[k++];e.insertAt(e.__tempIndex,m);e.__tempIndex++}e.splice(e.__tempIndex,h)}b=e.get(0);b.format=d;b.start=0;b.end=a.length}else{h=e.get_length();l=[];for(k=e.__tempIndex=0;k<l.length;)m=l[k++],e.insertAt(e.__tempIndex,m),e.__tempIndex++;e.splice(e.__tempIndex,h);a="";h=[d.clone()];k=[];m=!1;for(l=0;l< +f.length;){var r=f[l];++l;if(""!=r){var p="/"==F.substr(r,0,1),q=r.indexOf(">"),v=q+1,u=r.indexOf(" ");u=r.substring(p?1:0,-1<u&&u<q?u:q).toLowerCase();if(p)0!=k.length&&u==k[k.length-1]&&(k.pop(),h.pop(),p=h[h.length-1].clone(),("p"==u||"li"==u)&&0<e.get_length()&&(b&&(a+="\n"),m=!0),v<r.length&&(m=J.htmlUnescape(F.substr(r,v,null)),e.push(new Te(p,a.length,a.length+m.length)),a+=m,m=!1));else if(p=h[h.length-1].clone(),-1<q){null!=c&&(c.__applyStyle(u,p),lb.__regexClass.match(r)&&(c.__applyStyle("."+ +lb.__getAttributeMatch(lb.__regexClass),p),c.__applyStyle(u+"."+lb.__getAttributeMatch(lb.__regexClass),p)));switch(u){case "a":null!=c&&c.__applyStyle("a:link",p);lb.__regexHref.match(r)&&(p.url=lb.__getAttributeMatch(lb.__regexHref));break;case "b":p.bold=!0;break;case "em":case "i":p.italic=!0;break;case "font":lb.__regexFace.match(r)&&(p.font=lb.__getAttributeMatch(lb.__regexFace));lb.__regexColor.match(r)&&(p.color=n.parseInt("0x"+lb.__getAttributeMatch(lb.__regexColor)));if(lb.__regexSize.match(r)){q= +lb.__getAttributeMatch(lb.__regexSize);var w=F.cca(q,0);p.size=43==w||45==w?(2<=h.length?h[h.length-2]:d).size+n.parseInt(q):n.parseInt(q)}break;case "li":0<e.get_length()&&!m&&(a+="\n");q=p.clone();q.underline=!1;e.push(new Te(q,a.length,a.length+2));a+="\u2022 ";break;case "p":0<e.get_length()&&!m&&(a+="\n");lb.__regexAlign.match(r)&&(q=lb.__getAttributeMatch(lb.__regexAlign).toLowerCase(),p.align=ik.fromString(q));break;case "textformat":lb.__regexBlockIndent.match(r)&&(p.blockIndent=n.parseInt(lb.__getAttributeMatch(lb.__regexBlockIndent))); +lb.__regexIndent.match(r)&&(p.indent=n.parseInt(lb.__getAttributeMatch(lb.__regexIndent)));lb.__regexLeading.match(r)&&(p.leading=n.parseInt(lb.__getAttributeMatch(lb.__regexLeading)));lb.__regexLeftMargin.match(r)&&(p.leftMargin=n.parseInt(lb.__getAttributeMatch(lb.__regexLeftMargin)));lb.__regexRightMargin.match(r)&&(p.rightMargin=n.parseInt(lb.__getAttributeMatch(lb.__regexRightMargin)));if(lb.__regexTabStops.match(r)){q=lb.__getAttributeMatch(lb.__regexTabStops).split(" ");w=[];for(var B=0;B< +q.length;){var E=q[B];++B;w.push(n.parseInt(E))}p.tabStops=w}break;case "u":p.underline=!0}h.push(p);k.push(u);v<r.length&&(m=J.htmlUnescape(r.substring(v)),e.push(new Te(p,a.length,a.length+m.length)),a+=m,m=!1)}else m=J.htmlUnescape(r),e.push(new Te(p,a.length,a.length+m.length)),a+=m,m=!1}}0==e.get_length()&&e.push(new Te(h[0],0,0))}return a};lb.__getAttributeMatch=function(a){return null!=a.matched(2)?a.matched(2):a.matched(3)};var cj=function(){this.__shortWordMap=new V;this.__longWordMap=new V}; +k["openfl.text._internal.ShapeCache"]=cj;cj.__name__="openfl.text._internal.ShapeCache";cj.hashFunction=function(a){for(var b=0,c,d=0,e=a.length;d<e;)c=d++,c=F.cca(a,c),b=(b<<5)-b+c,b|=0;return b};cj.prototype={__shortWordMap:null,__longWordMap:null,cache:function(a,b,c){a=a.format.__cacheKey;return 15<c.length?this.__cacheLongWord(c,a,b):this.__cacheShortWord(c,a,b)},__cacheShortWord:function(a,b,c){if(Object.prototype.hasOwnProperty.call(this.__shortWordMap.h,b)){var d=this.__shortWordMap.h[b]; +if(Object.prototype.hasOwnProperty.call(d.h,a))return d.h[a];var e=c();d.h[a]=e}else d=new V,e=c(),d.h[a]=e,this.__shortWordMap.h[b]=d;return c()},__cacheLongWord:function(a,b,c){var d=cj.hashFunction(a);if(Object.prototype.hasOwnProperty.call(this.__longWordMap.h,b)){var e=this.__longWordMap.h[b];if(e.h.hasOwnProperty(d)){var f=e.h[d];if(f.exists(a))return f.get(a);f.set(a,c())}else f=new jk(a,c()),e.h[d]=f}else e=new Sa,f=new jk(a,c()),f.hash=d,e.h[d]=f,this.__longWordMap.h[b]=e;return c()},__class__:cj}; +var Ob=function(a){this.__shapeCache=new cj;this.textField=a;this.height=this.width=100;this.set_text("");this.bounds=new fa(0,0,0,0);this.textBounds=new fa(0,0,0,0);this.type=0;this.autoSize=2;this.embedFonts=!1;this.selectable=!0;this.borderColor=0;this.border=!1;this.backgroundColor=16777215;this.background=!1;this.gridFitType=1;this.maxChars=0;this.multiline=!1;this.numLines=1;this.scrollH=this.sharpness=0;this.set_scrollV(1);this.wordWrap=!1;this.lineAscents=ub.toFloatVector(null);this.lineBreaks= +ub.toIntVector(null);this.lineDescents=ub.toFloatVector(null);this.lineLeadings=ub.toFloatVector(null);this.lineHeights=ub.toFloatVector(null);this.lineWidths=ub.toFloatVector(null);this.layoutGroups=ub.toObjectVector(null);this.textFormatRanges=ub.toObjectVector(null);null==Ob.__context&&(Ob.__context=window.document.createElement("canvas").getContext("2d"))};k["openfl.text._internal.TextEngine"]=Ob;Ob.__name__="openfl.text._internal.TextEngine";Ob.findFont=function(a){return Nc.__fontByName.h[a]}; +Ob.findFontVariant=function(a){var b=a.font,c=a.bold;a=a.italic;null==b&&(b="_serif");var d=J.replace(J.replace(b," Normal","")," Regular","");return c&&a&&Object.prototype.hasOwnProperty.call(Nc.__fontByName.h,d+" Bold Italic")?Ob.findFont(d+" Bold Italic"):c&&Object.prototype.hasOwnProperty.call(Nc.__fontByName.h,d+" Bold")?Ob.findFont(d+" Bold"):a&&Object.prototype.hasOwnProperty.call(Nc.__fontByName.h,d+" Italic")?Ob.findFont(d+" Italic"):Ob.findFont(b)};Ob.getDefaultFont=function(a,b,c){null== +Ob.__defaultFonts&&(Ob.__defaultFonts=new V);a=Ob.__defaultFonts.h[a];return null==a?null:b&&c&&null!=a.boldItalic?a.boldItalic:c&&null!=a.italic?a.italic:b&&null!=a.bold?a.bold:a.normal};Ob.getFormatHeight=function(a){var b=Ob.getFont(a);Ob.__context.font=b;b=Ob.getFontInstance(a);if(null!=a.__ascent){var c=a.size*a.__ascent;b=a.size*a.__descent}else null!=b&&0!=b.unitsPerEM?(c=b.ascender/b.unitsPerEM*a.size,b=Math.abs(b.descender/b.unitsPerEM*a.size)):(c=a.size,b=.185*a.size);return c+b+a.leading}; +Ob.getFont=function(a){var b=a.font,c=a.bold,d=a.italic;null==b&&(b="_serif");var e=J.replace(J.replace(b," Normal","")," Regular","");c&&d&&Object.prototype.hasOwnProperty.call(Nc.__fontByName.h,e+" Bold Italic")?(b=e+" Bold Italic",d=c=!1):c&&Object.prototype.hasOwnProperty.call(Nc.__fontByName.h,e+" Bold")?(b=e+" Bold",c=!1):d&&Object.prototype.hasOwnProperty.call(Nc.__fontByName.h,e+" Italic")?(b=e+" Italic",d=!1):(c&&(-1<b.indexOf(" Bold ")||J.endsWith(b," Bold"))&&(c=!1),d&&(-1<b.indexOf(" Italic ")|| +J.endsWith(b," Italic"))&&(d=!1));c=(d?"italic ":"normal ")+"normal "+(c?"bold ":"normal ");c+=a.size+"px";c+="/"+(a.size+3)+"px ";switch(b){case "_sans":a="sans-serif";break;case "_serif":a="serif";break;case "_typewriter":a="monospace";break;default:a="'"+b.replace(/^[\s'"]+(.*)[\s'"]+$/,"$1")+"'"}return c+=""+a};Ob.getFontInstance=function(a){return Ob.findFontVariant(a)};Ob.prototype={antiAliasType:null,autoSize:null,background:null,backgroundColor:null,border:null,borderColor:null,bottomScrollV:null, +bounds:null,caretIndex:null,embedFonts:null,gridFitType:null,height:null,layoutGroups:null,lineAscents:null,lineBreaks:null,lineDescents:null,lineLeadings:null,lineHeights:null,lineWidths:null,maxChars:null,maxScrollH:null,maxScrollV:null,multiline:null,numLines:null,restrict:null,scrollH:null,scrollV:null,selectable:null,sharpness:null,text:null,textBounds:null,textHeight:null,textFormatRanges:null,textWidth:null,type:null,width:null,wordWrap:null,textField:null,__cursorTimer:null,__hasFocus:null, +__isKeyDown:null,__measuredHeight:null,__measuredWidth:null,__restrictRegexp:null,__selectionStart:null,__shapeCache:null,__showCursor:null,__textFormat:null,__textLayout:null,__texture:null,__useIntAdvances:null,__cairoFont:null,__font:null,createRestrictRegexp:function(a){var b="",c=!1;a=(new Z("\\^([^\\^]+)","gu")).map(a,function(a){if(c)return c=!c,a.matched(1);b+=a.matched(1);c=!c;return""});var d=[];0<a.length&&d.push("[^"+a+"]");0<b.length&&d.push("["+b+"]");return new Z("("+d.join("|")+")", +"g")},getBounds:function(){var a=this.border?1:0;this.bounds.width=this.width+a;this.bounds.height=this.height+a;a=this.width;for(var b=this.height,c=this.layoutGroups.get_length()-1,d=0,e=this.layoutGroups.get_length();d<e;){var f=d++,h=this.layoutGroups.get(f);if(f!=c||h.startIndex!=h.endIndex||1==this.type)h.offsetX<a&&(a=h.offsetX),h.offsetY<b&&(b=h.offsetY)}a>=this.width&&(a=2);b>=this.height&&(b=2);this.textBounds.setTo(Math.max(a-2,0),Math.max(b-2,0),Math.min(this.textWidth+4,this.bounds.width+ +4),Math.min(1.185*this.textHeight+4,this.bounds.height+4))},getLine:function(a){return 0>a||a>this.lineBreaks.get_length()+1?null:0==this.lineBreaks.get_length()?this.text:this.text.substring(0<a?this.lineBreaks.get(a-1):0,this.lineBreaks.get(a))},getLineBreaks:function(){this.lineBreaks.set_length(0);for(var a=-1,b;a<this.text.length;)if(b=this.text.indexOf("\n",a+1),a=this.text.indexOf("\r",a+1),a=-1==a?b:-1==b?a:a<b?a:b,-1<a)this.lineBreaks.push(a);else break},getLineBreakIndex:function(a){null== +a&&(a=0);for(var b=this.lineBreaks.iterator();b.hasNext();){var c=b.next();if(c>=a)return c}return-1},getLineMeasurements:function(){this.lineAscents.set_length(0);this.lineDescents.set_length(0);this.lineLeadings.set_length(0);this.lineHeights.set_length(0);this.lineWidths.set_length(0);var a=0,b=0,c=null,d=0,e=0;this.textHeight=this.textWidth=0;this.numLines=1;this.maxScrollH=0;for(var f=this.layoutGroups.get_length()-1,h=0,l=this.layoutGroups.get_length();h<l;){var k=h++;var m=this.layoutGroups.get(k); +if(k!=f||m.startIndex!=m.endIndex||1==this.type){for(;m.lineIndex>this.numLines-1;)this.lineAscents.push(a),this.lineDescents.push(b),this.lineLeadings.push(null!=c?c:0),this.lineHeights.push(d),this.lineWidths.push(e),b=a=0,c=null,e=d=0,this.numLines++;a=Math.max(a,m.ascent);b=Math.max(b,m.descent);c=null==c?m.leading:Math.max(c,m.leading)|0;d=Math.max(d,m.height);e=m.offsetX-2+m.width;e>this.textWidth&&(this.textWidth=e);k=Math.ceil(m.offsetY-2+m.ascent+m.descent);k>this.textHeight&&(this.textHeight= +k)}}0==this.textHeight&&null!=this.textField&&1==this.type&&(a=this.textField.__textFormat,b=Ob.getFontInstance(a),null!=a.__ascent?(f=a.size*a.__ascent,h=a.size*a.__descent):null!=b&&0!=b.unitsPerEM?(f=b.ascender/b.unitsPerEM*a.size,h=Math.abs(b.descender/b.unitsPerEM*a.size)):(f=a.size,h=.185*a.size),c=a.leading,a=f,b=h,this.textHeight=k=Math.ceil(f+h));this.lineAscents.push(a);this.lineDescents.push(b);this.lineLeadings.push(null!=c?c:0);this.lineHeights.push(d);this.lineWidths.push(e);1==this.numLines&& +0<c&&(this.textHeight+=c);if(2!=this.autoSize)switch(this.autoSize){case 0:case 1:case 3:this.wordWrap||(this.width=this.textWidth+4),this.height=this.textHeight+4,this.bottomScrollV=this.numLines}this.maxScrollH=this.textWidth>this.width-4?this.textWidth-this.width+4|0:0;this.scrollH>this.maxScrollH&&(this.scrollH=this.maxScrollH)},getLayoutGroups:function(){var a=this;this.layoutGroups.set_length(0);if(null!=this.text&&""!=this.text){var b=-1,c=null,d=null,e=ff.__defaultTextFormat.clone(),f=0,h= +0,l=0,k=0,m=3,n=0,p=0,r=0,q=0,v=!0,u=null,w=null,B=0,E=0,C=0,N=-2,z=-1,J=this.text.indexOf(" "),A=0,D=A<this.lineBreaks.get_length()?this.lineBreaks.get(A):-1,Ha=0,G=0,H=0,I=0,K=function(b,d,f){var g=function(){var c=[];if(null==a.__useIntAdvances){var e=new Z("Trident/7.0","");a.__useIntAdvances=e.match(Q.navigator.userAgent)}if(a.__useIntAdvances){var g=0;e=d;for(var h=f;e<h;){var l=e++;l=a.measureText(b.substring(d,l+1));c.push(l-g);g=l}}else for(e=d,h=f;e<h;)l=e++,l<b.length-1?(g=a.measureText(b.charAt(l+ +1)),g=a.measureText(F.substr(b,l,2))-g):g=Ob.__context.measureText(b.charAt(l)).width,c.push(g);return c};return 2==e.align?g():a.__shapeCache.cache(c,g,b.substring(d,f))},L=function(a){for(var b=0,c=0;c<a.length;){var d=a[c];++c;b+=d}return b},y=function(){return 2+r+n+(v?p:0)},O=function(){return a.width-2-q-y()},P=function(b,d){null==u||u.startIndex!=u.endIndex?(u=new nn(c.format,b,d),a.layoutGroups.push(u)):(u.format=c.format,u.startIndex=b,u.endIndex=d)},ya=function(){null!=e.__ascent?(h=e.size* +e.__ascent,k=e.size*e.__descent):null!=d&&0!=d.unitsPerEM?(h=d.ascender/d.unitsPerEM*e.size,k=Math.abs(d.descender/d.unitsPerEM*e.size)):(h=e.size,k=.185*e.size);f=e.leading;E=Math.ceil(h+k+f);E>C&&(C=E);h>l&&(l=h)},R=function(){v=!0;m=null!=e.align?e.align:3;n=null!=e.blockIndent?e.blockIndent:0;p=null!=e.indent?e.indent:0;r=null!=e.leftMargin?e.leftMargin:0;q=null!=e.rightMargin?e.rightMargin:0},S=function(){if(b<a.textFormatRanges.get_length()-1){b+=1;c=a.textFormatRanges.get(b);e.__merge(c.format); +var f=Ob.getFont(e);Ob.__context.font=f;d=Ob.getFontInstance(e);return!0}return!1},X=function(d,e){if(d>=e)w=[],B=0;else if(e<=c.end)w=K(a.text,d,e),B=L(w);else{var f=d;d=c.end;var g=0;w=[];for(B=0;;)if(f!=d&&(f=K(a.text,f,d),w=w.concat(f)),d!=e){if(!S()){Ga.warn("You found a bug in OpenFL's text code! Please save a copy of your project and contact Joshua Granick (@singmajesty) so we can fix this.",{fileName:"openfl/text/_internal/TextEngine.hx",lineNumber:1096,className:"openfl.text._internal.TextEngine", +methodName:"getLayoutGroups"});break}f=d;d=e<c.end?e:c.end;++g}else{B=L(w);break}b-=g+1;S()}},U=function(b){if(b<=c.end){w=K(a.text,H,b);B=L(w);P(H,b);u.positions=w;var d=Ha,e=y();u.offsetX=d+e;u.ascent=h;u.descent=k;u.leading=f;u.lineIndex=I;u.offsetY=G+2;u.width=B;u.height=E;Ha+=B;b==c.end&&(u=null,S(),ya())}else for(;;){var g=b<c.end?b:c.end;H!=g&&(w=K(a.text,H,g),B=L(w),P(H,g),u.positions=w,d=Ha,e=y(),u.offsetX=d+e,u.ascent=h,u.descent=k,u.leading=f,u.lineIndex=I,u.offsetY=G+2,u.width=B,u.height= +E,Ha+=B,H=g);g==c.end&&(u=null);if(g==b)break;if(!S()){Ga.warn("You found a bug in OpenFL's text code! Please save a copy of your project and contact Joshua Granick (@singmajesty) so we can fix this.",{fileName:"openfl/text/_internal/TextEngine.hx",lineNumber:1184,className:"openfl.text._internal.TextEngine",methodName:"getLayoutGroups"});break}ya()}H=b},Y=function(){ya();for(var b=a.layoutGroups.get_length();-1<--b;){var c=a.layoutGroups.get(b);if(c.lineIndex<I)break;c.lineIndex>I||(c.ascent=l,c.height= +C)}G+=C;C=l=0;I+=1;Ha=0;v=!1},M=function(b){if(4<=a.width&&a.wordWrap){var c=w;var d=L(c);for(var e=c.length-1;0<=e;){var f=F.cca(a.text,H+e);if(32!=f&&9!=f)break;d-=c[e];--e}for(;0<c.length&&Ha+d>O();){for(f=e=d=0;Ha+f<O();){var g=c[e];0==g?(++e,++d):(f+=g,++e)}if(e==d)e=d+1;else for(;1<e&&Ha+f>O();)--e,0<e-d?(X(H,H+e-d),f=B):(e=1,d=0,X(H,H+1),f=0);c=H+e-d;U(c);Y();X(c,b);c=w;d=B}}U(b)};S();R();ya();for(var V,T=this.text.length+1;H<T;)if(-1<D&&(-1==J||D<J))H<=D?(X(H,D),M(D),u=null):null!=u&&u.startIndex!= +u.endIndex&&(u.endIndex==J&&(u.width-=u.positions[u.positions.length-1]),u=null),Y(),c.end==D&&(S(),ya()),H=D+1,z=D,++A,D=A<this.lineBreaks.get_length()?this.lineBreaks.get(A):-1,R();else if(-1<J)for(null!=u&&u.startIndex!=u.endIndex&&(u=null),V=!1;H<this.text.length;){var W=-1;-1==J?W=D:(W=J+1,-1<D&&D<W&&(W=D));-1==W&&(W=this.text.length);X(H,W);if(2==m){if(0<w.length&&H==N){H+=1;var ca=w.shift();B-=ca;Ha+=ca}0<w.length&&W==J+1&&(--W,ca=w.pop(),B-=ca)}this.wordWrap&&Ha+B>O()&&(V=!0,0<w.length&&W== +J+1&&Ha+B-w[w.length-1]<=O()&&(V=!1));if(V){2!=m&&(null!=u||0<this.layoutGroups.get_length())&&(V=u,null==V&&(V=this.layoutGroups.get(this.layoutGroups.get_length()-1)),V.width-=V.positions[V.positions.length-1],V.endIndex--);V=this.layoutGroups.get_length()-1;for(ca=0;0<=V;){u=this.layoutGroups.get(V);if(0<V&&u.startIndex>N)++ca;else break;--V}H==N+1&&Y();Ha=0;if(0<ca){V=this.layoutGroups.get(this.layoutGroups.get_length()-ca).offsetX;ca=this.layoutGroups.get_length()-ca;for(var aa=this.layoutGroups.get_length();ca< +aa;){var ba=ca++;u=this.layoutGroups.get(ba);u.offsetX-=V;u.offsetY=G+2;u.lineIndex=I;Ha+=u.width}}M(W);V=!1}else null!=u&&H==J&&N!=J-1?(2!=m&&(u.endIndex=J,u.positions=u.positions.concat(w),u.width+=B),Ha+=B,H=W):null==u||2==m?(M(W),W==this.text.length&&Y()):(ca=W<c.end?W:c.end,ca<W&&(w=K(this.text,H,ca),B=L(w)),u.endIndex=ca,u.positions=u.positions.concat(w),u.width+=B,Ha+=B,ca==c.end&&(u=null,S(),ya(),H=ca,ca!=W&&U(W)),D==W&&++W,H=W,W==this.text.length&&(Y(),-1!=D&&(z=D,++A,D=A<this.lineBreaks.get_length()? +this.lineBreaks.get(A):-1)));W=this.text.indexOf(" ",H);D==N&&(u.endIndex=D,0>D-u.startIndex-u.positions.length&&u.positions.push(0),H=D+1);N=J;J=W;if(-1<D&&D<=H&&(J>D||-1==J)||H>this.text.length)break}else H<this.text.length&&(X(H,this.text.length),M(this.text.length),Y()),H+=1;z==H-2&&-1<z&&(P(H-1,H-1),u.positions=[],u.ascent=h,u.descent=k,u.leading=f,u.lineIndex=I,u.offsetX=y(),u.offsetY=G+2,u.width=0,u.height=E)}},measureText:function(a){return Ob.__context.measureText(a).width},restrictText:function(a){if(null== +a)return a;null!=this.__restrictRegexp&&(a=this.__restrictRegexp.split(a).join(""));return a},setTextAlignment:function(){for(var a=-1,b=0,c,d,e=!1,f=0,h=this.layoutGroups.get_length();f<h;){var l=f++;c=this.layoutGroups.get(l);if(c.lineIndex!=a)switch(a=c.lineIndex,b=this.width-4-c.format.rightMargin,c.format.align){case 0:b=this.lineWidths.get(a)<b?Math.round((b-this.lineWidths.get(a))/2):0;break;case 2:if(this.lineWidths.get(a)<b){d=1;for(var k=l+1,m=this.layoutGroups.get_length();k<m;){var n= +k++;if(this.layoutGroups.get(n).lineIndex==a)0!=n&&32!=F.cca(this.text,this.layoutGroups.get(n).startIndex-1)||++d;else break}if(1<d&&(c=this.layoutGroups.get(l+d-1),k=F.cca(this.text,c.endIndex),c.endIndex<this.text.length&&10!=k&&13!=k))for(b=(b-this.lineWidths.get(a))/(d-1),e=!0,k=1;this.layoutGroups.get(l+k).offsetX+=b*k,++k<d;);}b=0;break;case 4:b=this.lineWidths.get(a)<b?Math.round(b-this.lineWidths.get(a)):0;break;default:b=0}0<b&&(c.offsetX+=b)}e&&this.getLineMeasurements()},trimText:function(a){if(null== +a)return a;0<this.maxChars&&a.length>this.maxChars&&(a=F.substr(a,0,this.maxChars));return a},update:function(){null==this.text||0==this.textFormatRanges.get_length()?(this.lineAscents.set_length(0),this.lineBreaks.set_length(0),this.lineDescents.set_length(0),this.lineLeadings.set_length(0),this.lineHeights.set_length(0),this.lineWidths.set_length(0),this.layoutGroups.set_length(0),this.textHeight=this.textWidth=0,this.numLines=1,this.maxScrollH=0,this.bottomScrollV=this.maxScrollV=1):(this.getLineBreaks(), +this.getLayoutGroups(),this.getLineMeasurements(),this.setTextAlignment());this.getBounds()},get_bottomScrollV:function(){if(1==this.numLines||null==this.lineHeights)return 1;for(var a=this.lineHeights.get_length(),b=this.lineLeadings.get_length()==a?-this.lineLeadings.get(a-1):0,c=(0<this.get_scrollV()?this.get_scrollV():1)-1,d=this.lineHeights.get_length();c<d;){var e=c++,f=this.lineHeights.get(e);b+=f;if(b>this.height-4){a=e+(0<=b-this.height?0:1);break}}return a<this.get_scrollV()?this.get_scrollV(): +a},get_maxScrollV:function(){if(1==this.numLines||null==this.lineHeights)return 1;for(var a=this.numLines-1,b=0;0<=a;){b+=this.lineHeights.get(a);if(b>this.height-4){a+=0>b-this.height?1:2;break}--a}return 1>a?1:a},set_restrict:function(a){if(this.restrict==a)return this.restrict;this.restrict=a;this.__restrictRegexp=null==this.restrict||0==this.restrict.length?null:this.createRestrictRegexp(a);return this.restrict},get_scrollV:function(){if(1==this.numLines||null==this.lineHeights)return 1;var a= +this.get_maxScrollV();return this.scrollV>a?a:this.scrollV},set_scrollV:function(a){1>a?a=1:a>this.get_maxScrollV()&&(a=this.get_maxScrollV());return this.scrollV=a},set_text:function(a){return this.text=a},__class__:Ob,__properties__:{set_text:"set_text",set_scrollV:"set_scrollV",get_scrollV:"get_scrollV",set_restrict:"set_restrict",get_maxScrollV:"get_maxScrollV",get_bottomScrollV:"get_bottomScrollV"}};var fu=function(a,b,c,d){this.normal=a;this.bold=b;this.italic=c;this.boldItalic=d};k["openfl.text._internal._TextEngine.DefaultFontSet"]= +fu;fu.__name__="openfl.text._internal._TextEngine.DefaultFontSet";fu.prototype={bold:null,boldItalic:null,italic:null,normal:null,getFont:function(a,b){return a&&b&&null!=this.boldItalic?this.boldItalic:b&&null!=this.italic?this.italic:a&&null!=this.bold?this.bold:this.normal},__class__:fu};var Te=function(a,b,c){this.format=a;this.start=b;this.end=c};k["openfl.text._internal.TextFormatRange"]=Te;Te.__name__="openfl.text._internal.TextFormatRange";Te.prototype={end:null,format:null,start:null,__class__:Te}; +var Nd=function(a,b,c,d,e,f){null==f&&(f="en");null==e&&(e="Zyyy");null==d&&(d=4);null==c&&(c=12);null==a&&(a="");this.letterSpacing=0;this.set_text(a);this.set_font(b);this.set_size(c);this.__direction=d;this.__script=e;this.__language=f;this.positions=[];this.__dirty=!0;this.__create(this.__direction,this.__script,this.__language)};k["openfl.text._internal.TextLayout"]=Nd;Nd.__name__="openfl.text._internal.TextLayout";Nd.prototype={autoHint:null,font:null,glyphs:null,letterSpacing:null,positions:null, +size:null,text:null,__buffer:null,__direction:null,__dirty:null,__handle:null,__language:null,__script:null,__font:null,__hbBuffer:null,__hbFont:null,__create:function(a,b,c){4==c.length&&(this.__hbBuffer=Ju._new(),Bu._new(c))},__position:function(){this.positions=[]},get_positions:function(){this.__dirty&&(this.__dirty=!1,this.__position());return this.positions},get_direction:function(){return this.__direction},set_direction:function(a){if(a==this.__direction)return a;this.__direction=a;this.__dirty= +!0;return a},set_font:function(a){if(a==this.font)return a;this.font=a;this.__dirty=!0;return a},get_glyphs:function(){for(var a=[],b=0,c=this.get_positions();b<c.length;){var d=c[b];++b;a.push(d.glyph)}return a},get_language:function(){return this.__language},set_language:function(a){if(a==this.__language)return a;this.__language=a;this.__dirty=!0;return a},get_script:function(){return this.__script},set_script:function(a){if(a==this.__script)return a;this.__script=a;this.__dirty=!0;return a},set_size:function(a){if(a== +this.size)return a;this.size=a;this.__dirty=!0;return a},set_text:function(a){if(a==this.text)return a;this.text=a;this.__dirty=!0;return a},__class__:Nd,__properties__:{set_text:"set_text",set_size:"set_size",set_script:"set_script",get_script:"get_script",get_positions:"get_positions",set_language:"set_language",get_language:"get_language",get_glyphs:"get_glyphs",set_font:"set_font",set_direction:"set_direction",get_direction:"get_direction"}};var nn=function(a,b,c){this.format=a;this.startIndex= +b;this.endIndex=c};k["openfl.text._internal.TextLayoutGroup"]=nn;nn.__name__="openfl.text._internal.TextLayoutGroup";nn.prototype={ascent:null,descent:null,endIndex:null,format:null,height:null,leading:null,lineIndex:null,offsetX:null,offsetY:null,positions:null,startIndex:null,width:null,getAdvance:function(a){return this.positions[a]},__class__:nn};var Nb=function(){fb.call(this);Nb.__instances.push(this)};k["openfl.ui.GameInput"]=Nb;Nb.__name__="openfl.ui.GameInput";Nb.getDeviceAt=function(a){return 0<= +a&&a<Nb.__deviceList.length?Nb.__deviceList[a]:null};Nb.__getDevice=function(a){if(null==a)return null;if(null==Nb.__devices.h.__keys__[a.__id__]){var b=Tc.__getDeviceData(),c=b[a.id].id;b=Tc.__getDeviceData();b=new on(c,b[a.id].id);Nb.__deviceList.push(b);Nb.__devices.set(a,b);Nb.numDevices=Nb.__deviceList.length}return Nb.__devices.h[a.__id__]};Nb.__onGamepadAxisMove=function(a,b,c){a=Nb.__getDevice(a);if(null!=a&&a.enabled){if(!a.__axis.h.hasOwnProperty(b)){if(null==b)var d="null";else switch(b){case 0:d= +"LEFT_X";break;case 1:d="LEFT_Y";break;case 2:d="RIGHT_X";break;case 3:d="RIGHT_Y";break;case 4:d="TRIGGER_LEFT";break;case 5:d="TRIGGER_RIGHT";break;default:d="UNKNOWN ("+b+")"}d=new yf(a,"AXIS_"+d,-1,1);a.__axis.h[b]=d;a.__controls.push(d)}d=a.__axis.h[b];d.value=c;d.dispatchEvent(new la("change"))}};Nb.__onGamepadButtonDown=function(a,b){a=Nb.__getDevice(a);if(null!=a&&a.enabled){if(!a.__button.h.hasOwnProperty(b)){if(null==b)var c="null";else switch(b){case 0:c="A";break;case 1:c="B";break;case 2:c= +"X";break;case 3:c="Y";break;case 4:c="BACK";break;case 5:c="GUIDE";break;case 6:c="START";break;case 7:c="LEFT_STICK";break;case 8:c="RIGHT_STICK";break;case 9:c="LEFT_SHOULDER";break;case 10:c="RIGHT_SHOULDER";break;case 11:c="DPAD_UP";break;case 12:c="DPAD_DOWN";break;case 13:c="DPAD_LEFT";break;case 14:c="DPAD_RIGHT";break;default:c="UNKNOWN ("+b+")"}c=new yf(a,"BUTTON_"+c,0,1);a.__button.h[b]=c;a.__controls.push(c)}c=a.__button.h[b];c.value=1;c.dispatchEvent(new la("change"))}};Nb.__onGamepadButtonUp= +function(a,b){a=Nb.__getDevice(a);if(null!=a&&a.enabled){if(!a.__button.h.hasOwnProperty(b)){if(null==b)var c="null";else switch(b){case 0:c="A";break;case 1:c="B";break;case 2:c="X";break;case 3:c="Y";break;case 4:c="BACK";break;case 5:c="GUIDE";break;case 6:c="START";break;case 7:c="LEFT_STICK";break;case 8:c="RIGHT_STICK";break;case 9:c="LEFT_SHOULDER";break;case 10:c="RIGHT_SHOULDER";break;case 11:c="DPAD_UP";break;case 12:c="DPAD_DOWN";break;case 13:c="DPAD_LEFT";break;case 14:c="DPAD_RIGHT"; +break;default:c="UNKNOWN ("+b+")"}c=new yf(a,"BUTTON_"+c,0,1);a.__button.h[b]=c;a.__controls.push(c)}c=a.__button.h[b];c.value=0;c.dispatchEvent(new la("change"))}};Nb.__onGamepadConnect=function(a){a=Nb.__getDevice(a);if(null!=a)for(var b=0,c=Nb.__instances;b<c.length;){var d=c[b];++b;d.dispatchEvent(new Eg("deviceAdded",!0,!1,a))}};Nb.__onGamepadDisconnect=function(a){var b=Nb.__devices.h[a.__id__];if(null!=b){null!=Nb.__devices.h.__keys__[a.__id__]&&(F.remove(Nb.__deviceList,Nb.__devices.h[a.__id__]), +Nb.__devices.remove(a));Nb.numDevices=Nb.__deviceList.length;a=0;for(var c=Nb.__instances;a<c.length;){var d=c[a];++a;d.dispatchEvent(new Eg("deviceRemoved",!0,!1,b))}}};Nb.__super__=fb;Nb.prototype=u(fb.prototype,{addEventListener:function(a,b,c,d,e){null==e&&(e=!1);null==d&&(d=0);null==c&&(c=!1);fb.prototype.addEventListener.call(this,a,b,c,d,e);if("deviceAdded"==a)for(a=0,b=Nb.__deviceList;a<b.length;)c=b[a],++a,this.dispatchEvent(new Eg("deviceAdded",!0,!1,c))},__class__:Nb});var yf=function(a, +b,c,d,e){null==e&&(e=0);fb.call(this);this.device=a;this.id=b;this.minValue=c;this.maxValue=d;this.value=e};k["openfl.ui.GameInputControl"]=yf;yf.__name__="openfl.ui.GameInputControl";yf.__super__=fb;yf.prototype=u(fb.prototype,{device:null,id:null,maxValue:null,minValue:null,value:null,__class__:yf});var on=function(a,b){this.__controls=[];this.__button=new Sa;this.__axis=new Sa;this.id=a;this.name=b;a=new yf(this,"AXIS_0",-1,1);this.__axis.h[0]=a;this.__controls.push(a);a=new yf(this,"AXIS_1",-1, +1);this.__axis.h[1]=a;this.__controls.push(a);a=new yf(this,"AXIS_2",-1,1);this.__axis.h[2]=a;this.__controls.push(a);a=new yf(this,"AXIS_3",-1,1);this.__axis.h[3]=a;this.__controls.push(a);a=new yf(this,"AXIS_4",-1,1);this.__axis.h[4]=a;this.__controls.push(a);a=new yf(this,"AXIS_5",-1,1);this.__axis.h[5]=a;this.__controls.push(a);for(b=0;15>b;){var c=b++;a=new yf(this,"BUTTON_"+c,0,1);this.__button.h[c]=a;this.__controls.push(a)}};k["openfl.ui.GameInputDevice"]=on;on.__name__="openfl.ui.GameInputDevice"; +on.prototype={enabled:null,id:null,name:null,sampleInterval:null,__axis:null,__button:null,__controls:null,__gamepad:null,getCachedSamples:function(a,b){return 0},getControlAt:function(a){return 0<=a&&a<this.__controls.length?this.__controls[a]:null},startCachingSamples:function(a,b){},stopCachingSamples:function(){},get_numControls:function(){return this.__controls.length},__class__:on,__properties__:{get_numControls:"get_numControls"}};var Ca=function(){};k["openfl.ui.Keyboard"]=Ca;Ca.__name__= +"openfl.ui.Keyboard";Ca.isAccessible=function(){return!1};Ca.__convertKeyCode=function(a){switch(a){case 8:return 8;case 9:return 9;case 13:return 13;case 27:return 27;case 32:return 32;case 33:return 49;case 34:return 222;case 35:return 51;case 36:return 52;case 37:return 53;case 38:return 55;case 39:return 222;case 40:return 57;case 41:return 48;case 42:return 56;case 44:return 188;case 45:return 189;case 46:return 190;case 47:return 191;case 48:return 48;case 49:return 49;case 50:return 50;case 51:return 51; +case 52:return 52;case 53:return 53;case 54:return 54;case 55:return 55;case 56:return 56;case 57:return 57;case 58:return 186;case 59:return 186;case 60:return 60;case 61:return 187;case 62:return 190;case 63:return 191;case 64:return 50;case 91:return 219;case 92:return 220;case 93:return 221;case 94:return 54;case 95:return 189;case 96:return 192;case 97:return 65;case 98:return 66;case 99:return 67;case 100:return 68;case 101:return 69;case 102:return 70;case 103:return 71;case 104:return 72; +case 105:return 73;case 106:return 74;case 107:return 75;case 108:return 76;case 109:return 77;case 110:return 78;case 111:return 79;case 112:return 80;case 113:return 81;case 114:return 82;case 115:return 83;case 116:return 84;case 117:return 85;case 118:return 86;case 119:return 87;case 120:return 88;case 121:return 89;case 122:return 90;case 127:return 46;case 1073741881:return 20;case 1073741882:return 112;case 1073741883:return 113;case 1073741884:return 114;case 1073741885:return 115;case 1073741886:return 116; +case 1073741887:return 117;case 1073741888:return 118;case 1073741889:return 119;case 1073741890:return 120;case 1073741891:return 121;case 1073741892:return 122;case 1073741893:return 123;case 1073741894:return 301;case 1073741895:return 145;case 1073741896:return 19;case 1073741897:return 45;case 1073741898:return 36;case 1073741899:return 33;case 1073741901:return 35;case 1073741902:return 34;case 1073741903:return 39;case 1073741904:return 37;case 1073741905:return 40;case 1073741906:return 38; +case 1073741907:return 144;case 1073741908:return 111;case 1073741909:return 106;case 1073741910:return 109;case 1073741911:return 107;case 1073741912:return 13;case 1073741913:return 97;case 1073741914:return 98;case 1073741915:return 99;case 1073741916:return 100;case 1073741917:return 101;case 1073741918:return 102;case 1073741919:return 103;case 1073741920:return 104;case 1073741921:return 105;case 1073741922:return 96;case 1073741923:return 110;case 1073741925:return 302;case 1073741928:return 124; +case 1073741929:return 125;case 1073741930:return 126;case 1073741982:return 13;case 1073742044:return 110;case 1073742048:return 17;case 1073742049:return 16;case 1073742050:return 18;case 1073742051:return 15;case 1073742052:return 17;case 1073742053:return 16;case 1073742054:return 18;case 1073742055:return 15;default:return a}};Ca.__getCharCode=function(a,b){null==b&&(b=!1);if(b){switch(a){case 48:return 41;case 49:return 33;case 50:return 64;case 51:return 35;case 52:return 36;case 53:return 37; +case 54:return 94;case 55:return 38;case 56:return 42;case 57:return 40;case 186:return 58;case 187:return 43;case 188:return 60;case 189:return 95;case 190:return 62;case 191:return 63;case 192:return 126;case 219:return 123;case 220:return 124;case 221:return 125;case 222:return 34}if(65<=a&&90>=a)return a-65+65}else{switch(a){case 8:return 8;case 9:return 9;case 13:return 13;case 27:return 27;case 32:return 32;case 186:return 59;case 187:return 61;case 188:return 44;case 189:return 45;case 190:return 46; +case 191:return 47;case 192:return 96;case 219:return 91;case 220:return 92;case 221:return 93;case 222:return 39}if(48<=a&&57>=a)return a-48+48;if(65<=a&&90>=a)return a-65+97}if(96<=a&&105>=a)return a-96+48;switch(a){case 8:return 8;case 13:return 13;case 46:return 127;case 106:return 42;case 107:return 43;case 108:return 44;case 110:return 45;case 111:return 46}return 0};Ca.__getKeyLocation=function(a){switch(a){case 1073741908:case 1073741909:case 1073741910:case 1073741911:case 1073741912:case 1073741913:case 1073741914:case 1073741915:case 1073741916:case 1073741917:case 1073741918:case 1073741919:case 1073741920:case 1073741921:case 1073741922:case 1073741923:case 1073742044:return 3; +case 1073742048:case 1073742049:case 1073742050:case 1073742051:return 1;case 1073742052:case 1073742053:case 1073742054:case 1073742055:return 2;default:return 0}};var je=function(){};k["openfl.ui.Mouse"]=je;je.__name__="openfl.ui.Mouse";je.__properties__={set_cursor:"set_cursor",get_cursor:"get_cursor"};je.hide=function(){je.__hidden=!0;for(var a=0,b=md.current.__windows;a<b.length;){var c=b[a];++a;c.set_cursor(null)}};je.show=function(){je.__hidden=!1;var a=je.__cursor;je.__cursor=null;je.set_cursor(a)}; +je.get_cursor=function(){return je.__cursor};je.set_cursor=function(a){null==a&&(a="auto");var b=null;switch(a){case "arrow":b=jc.ARROW;break;case "button":b=jc.POINTER;break;case "crosshair":b=jc.CROSSHAIR;break;case "custom":b=jc.CUSTOM;break;case "hand":b=jc.MOVE;break;case "ibeam":b=jc.TEXT;break;case "resize_nesw":b=jc.RESIZE_NESW;break;case "resize_ns":b=jc.RESIZE_NS;break;case "resize_nwse":b=jc.RESIZE_NWSE;break;case "resize_we":b=jc.RESIZE_WE;break;case "wait":b=jc.WAIT;break;case "waitarrow":b= +jc.WAIT_ARROW}if(null!=b&&!je.__hidden)for(var c=0,d=md.current.__windows;c<d.length;){var e=d[c];++c;e.set_cursor(b)}return je.__cursor=a};var vf={fromLimeCursor:function(a){switch(a._hx_index){case 0:return"arrow";case 1:return"crosshair";case 2:return"auto";case 3:return"hand";case 4:return"button";case 5:return"resize_nesw";case 6:return"resize_ns";case 7:return"resize_nwse";case 8:return"resize_we";case 9:return"ibeam";case 10:return"wait";case 11:return"waitarrow";case 12:return"custom"}},toLimeCursor:function(a){switch(a){case "arrow":return jc.ARROW; +case "auto":return jc.DEFAULT;case "button":return jc.POINTER;case "crosshair":return jc.CROSSHAIR;case "custom":return jc.CUSTOM;case "hand":return jc.MOVE;case "ibeam":return jc.TEXT;case "resize_nesw":return jc.RESIZE_NESW;case "resize_ns":return jc.RESIZE_NS;case "resize_nwse":return jc.RESIZE_NWSE;case "resize_we":return jc.RESIZE_WE;case "wait":return jc.WAIT;case "waitarrow":return jc.WAIT_ARROW;default:return jc.DEFAULT}}},qe=function(){};k["openfl.ui.Multitouch"]=qe;qe.__name__="openfl.ui.Multitouch"; +qe.__properties__={get_supportsTouchEvents:"get_supportsTouchEvents"};qe.get_supportsTouchEvents=function(){return"ontouchstart"in document.documentElement||window.DocumentTouch&&document instanceof DocumentTouch?!0:!1};var X=function(a){null==a&&(a=!1);this.debugEnabled=a;X.initialized||X.init()};k["openfl.utils.AGALMiniAssembler"]=X;X.__name__="openfl.utils.AGALMiniAssembler";X.init=function(){X.initialized=!0;var a=X.OPMAP,b=new Xb("mov",2,0,0);a.h.mov=b;a=X.OPMAP;b=new Xb("add",3,1,0);a.h.add= +b;a=X.OPMAP;b=new Xb("sub",3,2,0);a.h.sub=b;a=X.OPMAP;b=new Xb("mul",3,3,0);a.h.mul=b;a=X.OPMAP;b=new Xb("div",3,4,0);a.h.div=b;a=X.OPMAP;b=new Xb("rcp",2,5,0);a.h.rcp=b;a=X.OPMAP;b=new Xb("min",3,6,0);a.h.min=b;a=X.OPMAP;b=new Xb("max",3,7,0);a.h.max=b;a=X.OPMAP;b=new Xb("frc",2,8,0);a.h.frc=b;a=X.OPMAP;b=new Xb("sqt",2,9,0);a.h.sqt=b;a=X.OPMAP;b=new Xb("rsq",2,10,0);a.h.rsq=b;a=X.OPMAP;b=new Xb("pow",3,11,0);a.h.pow=b;a=X.OPMAP;b=new Xb("log",2,12,0);a.h.log=b;a=X.OPMAP;b=new Xb("exp",2,13,0);a.h.exp= +b;a=X.OPMAP;b=new Xb("nrm",2,14,0);a.h.nrm=b;a=X.OPMAP;b=new Xb("sin",2,15,0);a.h.sin=b;a=X.OPMAP;b=new Xb("cos",2,16,0);a.h.cos=b;a=X.OPMAP;b=new Xb("crs",3,17,0);a.h.crs=b;a=X.OPMAP;b=new Xb("dp3",3,18,0);a.h.dp3=b;a=X.OPMAP;b=new Xb("dp4",3,19,0);a.h.dp4=b;a=X.OPMAP;b=new Xb("abs",2,20,0);a.h.abs=b;a=X.OPMAP;b=new Xb("neg",2,21,0);a.h.neg=b;a=X.OPMAP;b=new Xb("sat",2,22,0);a.h.sat=b;a=X.OPMAP;b=new Xb("m33",3,23,16);a.h.m33=b;a=X.OPMAP;b=new Xb("m44",3,24,16);a.h.m44=b;a=X.OPMAP;b=new Xb("m34", +3,25,16);a.h.m34=b;a=X.OPMAP;b=new Xb("ddx",2,26,288);a.h.ddx=b;a=X.OPMAP;b=new Xb("ddy",2,27,288);a.h.ddy=b;a=X.OPMAP;b=new Xb("ife",2,28,897);a.h.ife=b;a=X.OPMAP;b=new Xb("ine",2,29,897);a.h.ine=b;a=X.OPMAP;b=new Xb("ifg",2,30,897);a.h.ifg=b;a=X.OPMAP;b=new Xb("ifl",2,31,897);a.h.ifl=b;a=X.OPMAP;b=new Xb("els",0,32,1921);a.h.els=b;a=X.OPMAP;b=new Xb("eif",0,33,1409);a.h.eif=b;a=X.OPMAP;b=new Xb("kil",1,39,160);a.h.kil=b;a=X.OPMAP;b=new Xb("tex",3,40,40);a.h.tex=b;a=X.OPMAP;b=new Xb("sge",3,41,0); +a.h.sge=b;a=X.OPMAP;b=new Xb("slt",3,42,0);a.h.slt=b;a=X.OPMAP;b=new Xb("sgn",2,43,0);a.h.sgn=b;a=X.OPMAP;b=new Xb("seq",3,44,0);a.h.seq=b;a=X.OPMAP;b=new Xb("sne",3,45,0);a.h.sne=b;a=X.SAMPLEMAP;b=new Uc("rgba",8,0);a.h.rgba=b;a=X.SAMPLEMAP;b=new Uc("compressed",8,1);a.h.compressed=b;a=X.SAMPLEMAP;b=new Uc("compressedalpha",8,2);a.h.compressedalpha=b;a=X.SAMPLEMAP;b=new Uc("dxt1",8,1);a.h.dxt1=b;a=X.SAMPLEMAP;b=new Uc("dxt5",8,2);a.h.dxt5=b;a=X.SAMPLEMAP;b=new Uc("video",8,3);a.h.video=b;a=X.SAMPLEMAP; +b=new Uc("2d",12,0);a.h["2d"]=b;a=X.SAMPLEMAP;b=new Uc("3d",12,2);a.h["3d"]=b;a=X.SAMPLEMAP;b=new Uc("cube",12,1);a.h.cube=b;a=X.SAMPLEMAP;b=new Uc("mipnearest",24,1);a.h.mipnearest=b;a=X.SAMPLEMAP;b=new Uc("miplinear",24,2);a.h.miplinear=b;a=X.SAMPLEMAP;b=new Uc("mipnone",24,0);a.h.mipnone=b;a=X.SAMPLEMAP;b=new Uc("nomip",24,0);a.h.nomip=b;a=X.SAMPLEMAP;b=new Uc("nearest",28,0);a.h.nearest=b;a=X.SAMPLEMAP;b=new Uc("linear",28,1);a.h.linear=b;a=X.SAMPLEMAP;b=new Uc("anisotropic2x",28,2);a.h.anisotropic2x= +b;a=X.SAMPLEMAP;b=new Uc("anisotropic4x",28,3);a.h.anisotropic4x=b;a=X.SAMPLEMAP;b=new Uc("anisotropic8x",28,4);a.h.anisotropic8x=b;a=X.SAMPLEMAP;b=new Uc("anisotropic16x",28,5);a.h.anisotropic16x=b;a=X.SAMPLEMAP;b=new Uc("centroid",16,1);a.h.centroid=b;a=X.SAMPLEMAP;b=new Uc("single",16,2);a.h.single=b;a=X.SAMPLEMAP;b=new Uc("ignoresampler",16,4);a.h.ignoresampler=b;a=X.SAMPLEMAP;b=new Uc("repeat",20,1);a.h.repeat=b;a=X.SAMPLEMAP;b=new Uc("wrap",20,1);a.h.wrap=b;a=X.SAMPLEMAP;b=new Uc("clamp",20, +0);a.h.clamp=b;a=X.SAMPLEMAP;b=new Uc("clamp_u_repeat_v",20,2);a.h.clamp_u_repeat_v=b;a=X.SAMPLEMAP;b=new Uc("repeat_u_clamp_v",20,3);a.h.repeat_u_clamp_v=b};X.prototype={agalcode:null,error:null,verbose:null,debugEnabled:null,assemble2:function(a,b,c,d){c=this.assemble("vertex",c,b);b=this.assemble("fragment",d,b);a=a.createProgram();a.upload(c,b);return a},assemble:function(a,b,c,d){null==d&&(d=!1);null==c&&(c=1);var e=Da.getTimer();this.agalcode=new kc(0);this.error="";var f=!1;"fragment"==a?f= +!0:"vertex"!=a&&(this.error='ERROR: mode needs to be "fragment" or "vertex" but is "'+a+'".');this.agalcode.__endian=1;this.agalcode.writeByte(160);this.agalcode.writeUnsignedInt(c);this.agalcode.writeByte(161);this.agalcode.writeByte(f?1:0);this.initregmap(c,d);a=J.replace(b,"\r","\n").split("\n");b=0;d=a.length;for(var h=new Z("<.*>","g"),l=new Z("([\\w\\.\\-\\+]+)","gi"),k=new Z("^\\w{3}","ig"),m=new Z("vc\\[([vofi][acostdip]?[d]?)(\\d*)?(\\.[xyzw](\\+\\d{1,3})?)?\\](\\.[xyzw]{1,4})?|([vofi][acostdip]?[d]?)(\\d*)?(\\.[xyzw]{1,4})?", +"gi"),r=new Z("\\[.*\\]","ig"),p=new Z("^\\b[A-Za-z]{1,3}","ig"),q=new Z("\\d+",""),v=new Z("(\\.[xyzw]{1,4})",""),u=new Z("[A-Za-z]{1,3}","ig"),w=new Z("(\\.[xyzw]{1,1})",""),B=new Z("\\+\\d{1,3}","ig"),E=0;E<d&&""==this.error;){var C=J.trim(a[E]),N=C.indexOf("//");-1!=N&&(C=F.substr(C,0,N));var z=h.match(C)?h.matchedPos().pos:-1;N=null;-1!=z&&(N=this.match(F.substr(C,z,null),l),C=F.substr(C,0,z));var D=null;k.match(C)&&(z=k.matched(0),D=X.OPMAP.h[z]);if(null==D)3<=C.length&&Ga.warn("warning: bad line "+ +E+": "+a[E],{fileName:"openfl/utils/AGALMiniAssembler.hx",lineNumber:262,className:"openfl.utils.AGALMiniAssembler",methodName:"assemble"});else if(this.debugEnabled&&Ga.info(D,{fileName:"openfl/utils/AGALMiniAssembler.hx",lineNumber:272,className:"openfl.utils.AGALMiniAssembler",methodName:"assemble"}),null==D)3<=C.length&&Ga.warn("warning: bad line "+E+": "+a[E],{fileName:"openfl/utils/AGALMiniAssembler.hx",lineNumber:279,className:"openfl.utils.AGALMiniAssembler",methodName:"assemble"});else{C= +F.substr(C,C.indexOf(D.name)+D.name.length,null);if(0!=(D.flags&256)&&2>c){this.error="error: opcode requires version 2.";break}if(0!=(D.flags&64)&&f){this.error="error: opcode is only allowed in vertex programs.";break}if(0!=(D.flags&32)&&!f){this.error="error: opcode is only allowed in fragment programs.";break}this.verbose&&Ga.info("emit opcode="+n.string(D),{fileName:"openfl/utils/AGALMiniAssembler.hx",lineNumber:308,className:"openfl.utils.AGALMiniAssembler",methodName:"assemble"});this.agalcode.writeUnsignedInt(D.emitCode); +++b;if(4096<b){this.error="error: too many opcodes. maximum is 4096.";break}var A=this.match(C,m);if(A.length!=D.numRegister){this.error="error: wrong number of operands. found "+A.length+" but expected "+D.numRegister+".";break}var Ha=!1,H=160;C=0;for(z=A.length;C<z;){var G=C++,I=!1,K=this.match(A[G],r);0<K.length&&(A[G]=J.replace(A[G],K[0],"0"),this.verbose&&Ga.info("IS REL",{fileName:"openfl/utils/AGALMiniAssembler.hx",lineNumber:344,className:"openfl.utils.AGALMiniAssembler",methodName:"assemble"}), +I=!0);var L=this.match(A[G],p);if(0==L.length){this.error="error: could not parse operand "+G+" ("+A[G]+").";Ha=!0;break}var y=X.REGMAP.h[L[0]];this.debugEnabled&&Ga.info(y,{fileName:"openfl/utils/AGALMiniAssembler.hx",lineNumber:363,className:"openfl.utils.AGALMiniAssembler",methodName:"assemble"});if(null==y){this.error="error: could not find register name for operand "+G+" ("+A[G]+").";Ha=!0;break}if(f){if(0==(y.flags&32)){this.error="error: register operand "+G+" ("+A[G]+") only allowed in vertex programs."; +Ha=!0;break}if(I){this.error="error: register operand "+G+" ("+A[G]+") relative adressing not allowed in fragment programs.";Ha=!0;break}}else if(0==(y.flags&64)){this.error="error: register operand "+G+" ("+A[G]+") only allowed in fragment programs.";Ha=!0;break}A[G]=F.substr(A[G],A[G].indexOf(y.name)+y.name.length,null);var O=I?this.match(K[0],q):this.match(A[G],q);L=0;0<O.length&&(L=n.parseInt(O[0]));if(ca.gt(L,y.range)){C=y.range+1;this.error="error: register operand "+G+" ("+A[G]+") index exceeds limit of "+ +(null==C?"null":n.string(ca.toFloat(C)))+".";Ha=!0;break}var P=this.match(A[G],v),ya=0==G&&0==(D.flags&128),R=2==G&&0!=(D.flags&8),S=0,V=0,W=0;if(ya&&I){this.error="error: relative can not be destination";Ha=!0;break}if(0<P.length){for(var U=O=0,Y=P[0].length,M=1;M<Y;)U=F.cca(P[0],M)-120,ca.gt(U,2)&&(U=3),O=ya?O|1<<U:O|U<<(M-1<<1),++M;if(!ya)for(;4>=M;)O|=U<<(M-1<<1),++M}else O=ya?15:228;if(I){P=this.match(K[0],u);S=X.REGMAP.h[P[0]];if(null==S){this.error="error: bad index register";Ha=!0;break}S= +S.emitCode;U=this.match(K[0],w);if(0==U.length){this.error="error: bad index register select";Ha=!0;break}V=F.cca(U[0],1)-120;ca.gt(V,2)&&(V=3);K=this.match(K[0],B);0<K.length&&(W=n.parseInt(K[0]));if(0>W||255<W){this.error="error: index offset "+W+" out of bounds. [0..255]";Ha=!0;break}this.verbose&&Ga.info("RELATIVE: type="+S+"=="+P[0]+" sel="+(null==V?"null":n.string(ca.toFloat(V)))+"=="+U[0]+" idx="+(null==L?"null":n.string(ca.toFloat(L)))+" offset="+W,{fileName:"openfl/utils/AGALMiniAssembler.hx", +lineNumber:518,className:"openfl.utils.AGALMiniAssembler",methodName:"assemble"})}this.verbose&&Ga.info(" emit argcode="+n.string(y)+"["+(null==L?"null":n.string(ca.toFloat(L)))+"]["+O+"]",{fileName:"openfl/utils/AGALMiniAssembler.hx",lineNumber:525,className:"openfl.utils.AGALMiniAssembler",methodName:"assemble"});if(ya)this.agalcode.writeShort(L),this.agalcode.writeByte(O),this.agalcode.writeByte(y.emitCode),H-=32;else{if(R){this.verbose&&Ga.info(" emit sampler",{fileName:"openfl/utils/AGALMiniAssembler.hx", +lineNumber:541,className:"openfl.utils.AGALMiniAssembler",methodName:"assemble"});G=5;K=I=0;for(y=null==N?0:N.length;K<y;)O=K++,this.verbose&&Ga.info(" opt: "+N[O],{fileName:"openfl/utils/AGALMiniAssembler.hx",lineNumber:552,className:"openfl.utils.AGALMiniAssembler",methodName:"assemble"}),ya=X.SAMPLEMAP.h[N[O]],null==ya?(I=parseFloat(N[O]),this.verbose&&Ga.info(" bias: "+I,{fileName:"openfl/utils/AGALMiniAssembler.hx",lineNumber:565,className:"openfl.utils.AGALMiniAssembler",methodName:"assemble"})): +(16!=ya.flag&&(G&=~(15<<ya.flag)),G|=ya.mask<<ya.flag);this.agalcode.writeShort(L);this.agalcode.writeByte(8*I|0);this.agalcode.writeByte(0);this.agalcode.writeUnsignedInt(G);this.verbose&&Ga.info(" bits: "+(G-5),{fileName:"openfl/utils/AGALMiniAssembler.hx",lineNumber:586,className:"openfl.utils.AGALMiniAssembler",methodName:"assemble"})}else 0==G&&(this.agalcode.writeUnsignedInt(0),H-=32),this.agalcode.writeShort(L),this.agalcode.writeByte(W),this.agalcode.writeByte(O),this.agalcode.writeByte(y.emitCode), +this.agalcode.writeByte(S),this.agalcode.writeShort(I?V|32768:0);H-=64}}for(C=0;C<H;)this.agalcode.writeByte(0),C+=8;if(Ha)break}++E}""!=this.error&&(this.error+="\n at line "+E+" "+a[E],yb.set_length(this.agalcode,0),Ga.info(this.error,{fileName:"openfl/utils/AGALMiniAssembler.hx",lineNumber:631,className:"openfl.utils.AGALMiniAssembler",methodName:"assemble"}));if(this.debugEnabled){c="generated bytecode:";f=yb.get_length(this.agalcode);C=0;for(z=f;C<z;)f=C++,0==f%16&&(c+="\n"),0==f%4&&(c+=" "), +f=J.hex(this.agalcode.b[f],2),2>f.length&&(f="0"+f),c+=f;Ga.info(c,{fileName:"openfl/utils/AGALMiniAssembler.hx",lineNumber:662,className:"openfl.utils.AGALMiniAssembler",methodName:"assemble"})}this.verbose&&Ga.info("AGALMiniAssembler.assemble time: "+(Da.getTimer()-e)/1E3+"s",{fileName:"openfl/utils/AGALMiniAssembler.hx",lineNumber:667,className:"openfl.utils.AGALMiniAssembler",methodName:"assemble"});return this.agalcode},initregmap:function(a,b){var c=X.REGMAP,d=new mf("va","vertex attribute", +0,b?1024:1==a||2==a?7:15,66);c.h.va=d;c=X.REGMAP;d=new mf("vc","vertex constant",1,b?1024:1==a?127:249,66);c.h.vc=d;c=X.REGMAP;d=new mf("vt","vertex temporary",2,b?1024:1==a?7:25,67);c.h.vt=d;c=X.REGMAP;d=new mf("vo","vertex output",3,b?1024:0,65);c.h.vo=d;c=X.REGMAP;d=new mf("vi","varying",4,b?1024:1==a?7:9,99);c.h.vi=d;c=X.REGMAP;d=new mf("fc","fragment constant",1,b?1024:1==a?27:2==a?63:199,34);c.h.fc=d;c=X.REGMAP;d=new mf("ft","fragment temporary",2,b?1024:1==a?7:25,35);c.h.ft=d;c=X.REGMAP;d= +new mf("fs","texture sampler",5,b?1024:7,34);c.h.fs=d;c=X.REGMAP;d=new mf("fo","fragment output",3,b?1024:1==a?0:3,33);c.h.fo=d;c=X.REGMAP;d=new mf("fd","fragment depth output",6,b?1024:1==a?-1:0,33);c.h.fd=d;c=X.REGMAP;d=new mf("iid","instance id",7,b?1024:0,66);c.h.iid=d;d=X.REGMAP.h.vo;X.REGMAP.h.op=d;d=X.REGMAP.h.vi;X.REGMAP.h.i=d;d=X.REGMAP.h.vi;X.REGMAP.h.v=d;d=X.REGMAP.h.fo;X.REGMAP.h.oc=d;d=X.REGMAP.h.fd;X.REGMAP.h.od=d;d=X.REGMAP.h.vi;X.REGMAP.h.fi=d},match:function(a,b){for(var c=[],d=0;b.matchSub(a, +d);)d=b.matched(0),c.push(d),d=b.matchedPos().pos+d.length;return c},__class__:X};var Xb=function(a,b,c,d){this.name=a;this.numRegister=b;this.emitCode=c;this.flags=d};k["openfl.utils._AGALMiniAssembler.OpCode"]=Xb;Xb.__name__="openfl.utils._AGALMiniAssembler.OpCode";Xb.prototype={emitCode:null,flags:null,name:null,numRegister:null,toString:function(){return'[OpCode name="'+this.name+'", numRegister='+this.numRegister+", emitCode="+this.emitCode+", flags="+this.flags+"]"},__class__:Xb};var mf=function(a, +b,c,d,e){this.name=a;this.longName=b;this.emitCode=c;this.range=d;this.flags=e};k["openfl.utils._AGALMiniAssembler.Register"]=mf;mf.__name__="openfl.utils._AGALMiniAssembler.Register";mf.prototype={emitCode:null,name:null,longName:null,flags:null,range:null,toString:function(){return'[Register name="'+this.name+'", longName="'+this.longName+'", emitCode='+(null==this.emitCode?"null":n.string(ca.toFloat(this.emitCode)))+", range="+(null==this.range?"null":n.string(ca.toFloat(this.range)))+", flags="+ +(null==this.flags?"null":n.string(ca.toFloat(this.flags)))+"]"},__class__:mf};var Uc=function(a,b,c){this.name=a;this.flag=b;this.mask=c};k["openfl.utils._AGALMiniAssembler.Sampler"]=Uc;Uc.__name__="openfl.utils._AGALMiniAssembler.Sampler";Uc.prototype={flag:null,mask:null,name:null,toString:function(){return'[Sampler name="'+this.name+'", flag="'+(null==this.flag?"null":n.string(ca.toFloat(this.flag)))+'", mask='+(null==this.mask?"null":n.string(ca.toFloat(this.mask)))+"]"},__class__:Uc};var pn= +function(){};k["openfl.utils.IAssetCache"]=pn;pn.__name__="openfl.utils.IAssetCache";pn.__isInterface__=!0;pn.prototype={get_enabled:null,set_enabled:null,clear:null,getBitmapData:null,getFont:null,getSound:null,hasBitmapData:null,hasFont:null,hasSound:null,removeBitmapData:null,removeFont:null,removeSound:null,setBitmapData:null,setFont:null,setSound:null,__class__:pn,__properties__:{set_enabled:"set_enabled",get_enabled:"get_enabled"}};var qn=function(){this.__enabled=!0;this.bitmapData=new V;this.font= +new V;this.sound=new V};k["openfl.utils.AssetCache"]=qn;qn.__name__="openfl.utils.AssetCache";qn.__interfaces__=[pn];qn.prototype={bitmapData:null,font:null,sound:null,__enabled:null,clear:function(a){if(null==a)this.bitmapData=new V,this.font=new V,this.sound=new V;else{var b=this.bitmapData.h;b=Object.keys(b);for(var c=b.length,d=0;d<c;){var e=b[d++];J.startsWith(e,a)&&this.removeBitmapData(e)}b=this.font.h;b=Object.keys(b);c=b.length;for(d=0;d<c;)e=b[d++],J.startsWith(e,a)&&this.removeFont(e); +b=this.sound.h;b=Object.keys(b);c=b.length;for(d=0;d<c;)e=b[d++],J.startsWith(e,a)&&this.removeSound(e)}},getBitmapData:function(a){return this.bitmapData.h[a]},getFont:function(a){return this.font.h[a]},getSound:function(a){return this.sound.h[a]},hasBitmapData:function(a){return Object.prototype.hasOwnProperty.call(this.bitmapData.h,a)},hasFont:function(a){return Object.prototype.hasOwnProperty.call(this.font.h,a)},hasSound:function(a){return Object.prototype.hasOwnProperty.call(this.sound.h,a)}, +removeBitmapData:function(a){var b=wa.cache.image;Object.prototype.hasOwnProperty.call(b.h,a)&&delete b.h[a];b=this.bitmapData;return Object.prototype.hasOwnProperty.call(b.h,a)?(delete b.h[a],!0):!1},removeFont:function(a){var b=wa.cache.font;Object.prototype.hasOwnProperty.call(b.h,a)&&delete b.h[a];b=this.font;return Object.prototype.hasOwnProperty.call(b.h,a)?(delete b.h[a],!0):!1},removeSound:function(a){var b=wa.cache.audio;Object.prototype.hasOwnProperty.call(b.h,a)&&delete b.h[a];b=this.sound; +return Object.prototype.hasOwnProperty.call(b.h,a)?(delete b.h[a],!0):!1},setBitmapData:function(a,b){this.bitmapData.h[a]=b},setFont:function(a,b){this.font.h[a]=b},setSound:function(a,b){this.sound.h[a]=b},get_enabled:function(){return this.__enabled},set_enabled:function(a){return this.__enabled=a},__class__:qn,__properties__:{set_enabled:"set_enabled",get_enabled:"get_enabled"}};var Id=function(){vb.call(this)};k["openfl.utils.AssetLibrary"]=Id;Id.__name__="openfl.utils.AssetLibrary";Id.fromBundle= +function(a){a=vb.fromBundle(a);if(null!=a){if(a instanceof Id)return a;var b=new Id;b.__proxy=a;return b}return null};Id.fromBytes=function(a,b){return Id.fromManifest(Fc.fromBytes(yb.toLimeBytes(a),b))};Id.fromFile=function(a,b){return Id.fromManifest(Fc.fromFile(a,b))};Id.fromManifest=function(a){a=vb.fromManifest(a);if(null!=a){if(a instanceof Id)return a;var b=new Id;b.__proxy=a;return b}return null};Id.loadFromBytes=function(a,b){return Fc.loadFromBytes(yb.toLimeBytes(a),b).then(function(a){return Id.loadFromManifest(a)})}; +Id.loadFromFile=function(a,b){return Fc.loadFromFile(a,b).then(function(a){return Id.loadFromManifest(a)})};Id.loadFromManifest=function(a){a=Id.fromManifest(a);return null!=a?a.load().then(function(a){return eb.withValue(a)}):eb.withError("Could not load asset manifest")};Id.__super__=vb;Id.prototype=u(vb.prototype,{__proxy:null,bind:function(a,b){return!1},exists:function(a,b){return null!=this.__proxy?this.__proxy.exists(a,b):vb.prototype.exists.call(this,a,b)},getAsset:function(a,b){return null!= +this.__proxy?this.__proxy.getAsset(a,b):vb.prototype.getAsset.call(this,a,b)},getAudioBuffer:function(a){return null!=this.__proxy?this.__proxy.getAudioBuffer(a):vb.prototype.getAudioBuffer.call(this,a)},getBytes:function(a){return null!=this.__proxy?this.__proxy.getBytes(a):vb.prototype.getBytes.call(this,a)},getFont:function(a){return null!=this.__proxy?this.__proxy.getFont(a):vb.prototype.getFont.call(this,a)},getImage:function(a){return null!=this.__proxy?this.__proxy.getImage(a):vb.prototype.getImage.call(this, +a)},getMovieClip:function(a){return null},getPath:function(a){return null!=this.__proxy?this.__proxy.getPath(a):vb.prototype.getPath.call(this,a)},getText:function(a){return null!=this.__proxy?this.__proxy.getText(a):vb.prototype.getText.call(this,a)},isLocal:function(a,b){return null!=this.__proxy?this.__proxy.isLocal(a,b):vb.prototype.isLocal.call(this,a,b)},list:function(a){return null!=this.__proxy?this.__proxy.list(a):vb.prototype.list.call(this,a)},loadAsset:function(a,b){return null!=this.__proxy? +this.__proxy.loadAsset(a,b):vb.prototype.loadAsset.call(this,a,b)},load:function(){return null!=this.__proxy?this.__proxy.load():vb.prototype.load.call(this)},loadAudioBuffer:function(a){return null!=this.__proxy?this.__proxy.loadAudioBuffer(a):vb.prototype.loadAudioBuffer.call(this,a)},loadBytes:function(a){return null!=this.__proxy?this.__proxy.loadBytes(a):vb.prototype.loadBytes.call(this,a)},loadFont:function(a){return null!=this.__proxy?this.__proxy.loadFont(a):vb.prototype.loadFont.call(this, +a)},loadImage:function(a){return null!=this.__proxy?this.__proxy.loadImage(a):vb.prototype.loadImage.call(this,a)},loadMovieClip:function(a){return eb.withValue(this.getMovieClip(a))},loadText:function(a){return null!=this.__proxy?this.__proxy.loadText(a):vb.prototype.loadText.call(this,a)},unload:function(){null!=this.__proxy?this.__proxy.unload():vb.prototype.unload.call(this)},__class__:Id});var qa=function(){};k["openfl.utils.Assets"]=qa;qa.__name__="openfl.utils.Assets";qa.addEventListener=function(a, +b,c,d,e){null==e&&(e=!1);null==d&&(d=0);null==c&&(c=!1);wa.onChange.has(qa.LimeAssets_onChange)||wa.onChange.add(qa.LimeAssets_onChange);qa.dispatcher.addEventListener(a,b,c,d,e)};qa.dispatchEvent=function(a){return qa.dispatcher.dispatchEvent(a)};qa.exists=function(a,b){return wa.exists(a,b)};qa.getBitmapData=function(a,b){null==b&&(b=!0);if(b&&qa.cache.get_enabled()&&qa.cache.hasBitmapData(a)){var c=qa.cache.getBitmapData(a);if(qa.isValidBitmapData(c))return c}c=wa.getImage(a,!1);return null!=c? +(c=Ja.fromImage(c),b&&qa.cache.get_enabled()&&qa.cache.setBitmapData(a,c),c):null};qa.getBytes=function(a){return yb.fromLimeBytes(wa.getBytes(a))};qa.getFont=function(a,b){null==b&&(b=!0);if(b&&qa.cache.get_enabled()&&qa.cache.hasFont(a))return qa.cache.getFont(a);var c=wa.getFont(a,!1);if(null!=c){var d=new Nc;d.__fromLimeFont(c);b&&qa.cache.get_enabled()&&qa.cache.setFont(a,d);return d}return new Nc};qa.getLibrary=function(a){return wa.getLibrary(a)};qa.getMovieClip=function(a){var b=a.substring(0, +a.indexOf(":")),c=F.substr(a,a.indexOf(":")+1,null),d=qa.getLibrary(b);if(null!=d){if(d instanceof Id&&d.exists(c,"MOVIE_CLIP")){if(d.isLocal(c,"MOVIE_CLIP"))return d.getMovieClip(c);Ga.error('MovieClip asset "'+a+'" exists, but only asynchronously',{fileName:"openfl/utils/Assets.hx",lineNumber:215,className:"openfl.utils.Assets",methodName:"getMovieClip"});return null}Ga.error('There is no MovieClip asset with an ID of "'+a+'"',{fileName:"openfl/utils/Assets.hx",lineNumber:221,className:"openfl.utils.Assets", +methodName:"getMovieClip"})}else Ga.error('There is no asset library named "'+b+'"',{fileName:"openfl/utils/Assets.hx",lineNumber:225,className:"openfl.utils.Assets",methodName:"getMovieClip"});return null};qa.getMusic=function(a,b){null==b&&(b=!0);return qa.getSound(a,b)};qa.getPath=function(a){return wa.getPath(a)};qa.getSound=function(a,b){null==b&&(b=!0);if(b&&qa.cache.get_enabled()&&qa.cache.hasSound(a)){var c=qa.cache.getSound(a);if(qa.isValidSound(c))return c}c=wa.getAudioBuffer(a,!1);return null!= +c?(c=xf.fromAudioBuffer(c),b&&qa.cache.get_enabled()&&qa.cache.setSound(a,c),c):null};qa.getText=function(a){return wa.getText(a)};qa.hasEventListener=function(a){return qa.dispatcher.hasEventListener(a)};qa.hasLibrary=function(a){return wa.hasLibrary(a)};qa.initBinding=function(a,b){if(Object.prototype.hasOwnProperty.call(qa.libraryBindings.h,a)){var c=qa.libraryBindings.h[a];null==b?ta.__constructor=function(b){b.__bind(c,a)}:(ta.__constructor=null,b.__bind(c,a))}else Ga.warn('No asset is registered as "'+ +a+'"',{fileName:"openfl/utils/Assets.hx",lineNumber:367,className:"openfl.utils.Assets",methodName:"initBinding"})};qa.isLocal=function(a,b,c){null==c&&(c=!0);if(c&&qa.cache.get_enabled()&&(("IMAGE"==b||null==b)&&qa.cache.hasBitmapData(a)||("FONT"==b||null==b)&&qa.cache.hasFont(a)||("SOUND"==b||"MUSIC"==b||null==b)&&qa.cache.hasSound(a)))return!0;c=a.substring(0,a.indexOf(":"));a=F.substr(a,a.indexOf(":")+1,null);c=qa.getLibrary(c);return null!=c?c.isLocal(a,b):!1};qa.isValidBitmapData=function(a){return null!= +a&&null!=a.image};qa.isValidSound=function(a){return!0};qa.list=function(a){return wa.list(a)};qa.loadBitmapData=function(a,b){null==b&&(b=!0);null==b&&(b=!0);var c=new Wd;if(b&&qa.cache.get_enabled()&&qa.cache.hasBitmapData(a)){var d=qa.cache.getBitmapData(a);if(qa.isValidBitmapData(d))return c.complete(d),c.future}wa.loadImage(a,!1).onComplete(function(d){null!=d?(d=Ja.fromImage(d),b&&qa.cache.get_enabled()&&qa.cache.setBitmapData(a,d),c.complete(d)):c.error('[Assets] Could not load Image "'+a+ +'"')}).onError(q(c,c.error)).onProgress(q(c,c.progress));return c.future};qa.loadBytes=function(a){var b=new Wd;a=wa.loadBytes(a);a.onComplete(function(a){b.complete(yb.fromLimeBytes(a))});a.onProgress(function(a,d){b.progress(a,d)});a.onError(function(a){b.error(a)});return b.future};qa.loadFont=function(a,b){null==b&&(b=!0);null==b&&(b=!0);var c=new Wd;if(b&&qa.cache.get_enabled()&&qa.cache.hasFont(a))return c.complete(qa.cache.getFont(a)),c.future;wa.loadFont(a).onComplete(function(d){var e=new Nc; +e.__fromLimeFont(d);b&&qa.cache.get_enabled()&&qa.cache.setFont(a,e);c.complete(e)}).onError(q(c,c.error)).onProgress(q(c,c.progress));return c.future};qa.loadLibrary=function(a){return wa.loadLibrary(a).then(function(b){var c=null;null!=b&&(b instanceof Id?c=b:(c=new Id,c.__proxy=b,wa.registerLibrary(a,c)));return eb.withValue(c)})};qa.loadMusic=function(a,b){null==b&&(b=!0);null==b&&(b=!0);return new eb(function(){return qa.getMusic(a,b)})};qa.loadMovieClip=function(a){var b=new Wd,c=a.substring(0, +a.indexOf(":")),d=F.substr(a,a.indexOf(":")+1,null),e=qa.getLibrary(c);if(null!=e){if(e instanceof Id&&e.exists(d,"MOVIE_CLIP"))return b.completeWith(e.loadMovieClip(d)),b.future;b.error('[Assets] There is no MovieClip asset with an ID of "'+a+'"')}else b.error('[Assets] There is no asset library named "'+c+'"');return b.future};qa.loadSound=function(a,b){null==b&&(b=!0);null==b&&(b=!0);var c=new Wd;wa.loadAudioBuffer(a,b).onComplete(function(d){null!=d?(d=xf.fromAudioBuffer(d),b&&qa.cache.get_enabled()&& +qa.cache.setSound(a,d),c.complete(d)):c.error('[Assets] Could not load Sound "'+a+'"')}).onError(q(c,c.error)).onProgress(q(c,c.progress));return c.future};qa.loadText=function(a){return wa.loadText(a)};qa.registerBinding=function(a,b){qa.libraryBindings.h[a]=b};qa.registerLibrary=function(a,b){wa.registerLibrary(a,b)};qa.removeEventListener=function(a,b,c){null==c&&(c=!1);qa.dispatcher.removeEventListener(a,b,c)};qa.resolveClass=function(a){return k[a]};qa.resolveEnum=function(a){return E[a]};qa.unloadLibrary= +function(a){wa.unloadLibrary(a)};qa.unregisterBinding=function(a,b){Object.prototype.hasOwnProperty.call(qa.libraryBindings.h,a)&&qa.libraryBindings.h[a]==b&&(b=qa.libraryBindings,Object.prototype.hasOwnProperty.call(b.h,a)&&delete b.h[a])};qa.LimeAssets_onChange=function(){qa.dispatchEvent(new la("change"))};var yb={__properties__:{set_position:"set_position",get_position:"get_position",set_length:"set_length",get_length:"get_length",get_bytesAvailable:"get_bytesAvailable",set_defaultObjectEncoding:"set_defaultObjectEncoding", +get_defaultObjectEncoding:"get_defaultObjectEncoding",set_defaultEndian:"set_defaultEndian",get_defaultEndian:"get_defaultEndian"},_new:function(a){null==a&&(a=0);return new kc(a)},clear:function(a){a.clear()},compress:function(a,b){a.compress(b)},deflate:function(a){a.deflate()},fromArrayBuffer:function(a){return null==a?null:kc.fromBytes(cb.ofData(a))},fromBytes:function(a){return null==a?null:a instanceof kc?a:kc.fromBytes(a)},fromBytesData:function(a){return null==a?null:kc.fromBytes(cb.ofData(a))}, +fromFile:function(a){return yb.fromLimeBytes(hc.fromFile(a))},fromLimeBytes:function(a){return yb.fromBytes(a)},get:function(a,b){return a.b[b]},inflate:function(a){a.inflate()},loadFromBytes:function(a){return hc.loadFromBytes(a).then(function(a){a=yb.fromLimeBytes(a);return eb.withValue(a)})},loadFromFile:function(a){return hc.loadFromFile(a).then(function(a){a=yb.fromLimeBytes(a);return eb.withValue(a)})},readBoolean:function(a){return a.readBoolean()},readByte:function(a){return a.readByte()}, +readBytes:function(a,b,c,d){null==d&&(d=0);null==c&&(c=0);a.readBytes(b,c,d)},readDouble:function(a){return a.readDouble()},readFloat:function(a){return a.readFloat()},readInt:function(a){return a.readInt()},readMultiByte:function(a,b,c){return a.readMultiByte(b,c)},readObject:function(a){return a.readObject()},readShort:function(a){return a.readShort()},readUTF:function(a){return a.readUTF()},readUTFBytes:function(a,b){return a.readUTFBytes(b)},readUnsignedByte:function(a){return a.readUnsignedByte()}, +readUnsignedInt:function(a){return a.readUnsignedInt()},readUnsignedShort:function(a){return a.readUnsignedShort()},set:function(a,b,c){a.__resize(b+1);a.b[b]=c&255;return c},toArrayBuffer:function(a){return a.b.bufferValue},toBytePointer:function(a){Ku.set(yb.__bytePointer,a,null,null,a.position);return yb.__bytePointer},toBytes:function(a){return a},toBytesData:function(a){return a.b.bufferValue},toLimeBytes:function(a){return a},toString:function(a){return a.toString()},uncompress:function(a,b){a.uncompress(b)}, +writeBoolean:function(a,b){a.writeBoolean(b)},writeByte:function(a,b){a.writeByte(b)},writeBytes:function(a,b,c,d){null==d&&(d=0);null==c&&(c=0);a.writeBytes(b,c,d)},writeDouble:function(a,b){a.writeDouble(b)},writeFloat:function(a,b){a.writeFloat(b)},writeInt:function(a,b){a.writeInt(b)},writeMultiByte:function(a,b,c){a.writeMultiByte(b,c)},writeObject:function(a,b){a.writeObject(b)},writeShort:function(a,b){a.writeShort(b)},writeUTF:function(a,b){a.writeUTF(b)},writeUTFBytes:function(a,b){a.writeUTFBytes(b)}, +writeUnsignedInt:function(a,b){a.writeUnsignedInt(b)},get_bytesAvailable:function(a){return a.length-a.position},get_defaultEndian:function(){null==kc.__defaultEndian&&(Pa.get_endianness()==zg.LITTLE_ENDIAN?kc.__defaultEndian=1:kc.__defaultEndian=0);return kc.__defaultEndian},set_defaultEndian:function(a){return kc.__defaultEndian=a},get_defaultObjectEncoding:function(){return kc.defaultObjectEncoding},set_defaultObjectEncoding:function(a){return kc.defaultObjectEncoding=a},get_endian:function(a){return a.__endian}, +set_endian:function(a,b){return a.__endian=b},get_length:function(a){return null==a?0:a.length},set_length:function(a,b){0<=b&&(a.__resize(b),b<a.position&&(a.position=b));return a.length=b},get_objectEncoding:function(a){return a.objectEncoding},set_objectEncoding:function(a,b){return a.objectEncoding=b},get_position:function(a){return a.position},set_position:function(a,b){return a.position=b}},rn=function(){};k["openfl.utils.IDataOutput"]=rn;rn.__name__="openfl.utils.IDataOutput";rn.__isInterface__= +!0;rn.prototype={get_endian:null,set_endian:null,objectEncoding:null,writeBoolean:null,writeByte:null,writeBytes:null,writeDouble:null,writeFloat:null,writeInt:null,writeMultiByte:null,writeObject:null,writeShort:null,writeUnsignedInt:null,writeUTF:null,writeUTFBytes:null,__class__:rn,__properties__:{set_endian:"set_endian",get_endian:"get_endian"}};var sn=function(){};k["openfl.utils.IDataInput"]=sn;sn.__name__="openfl.utils.IDataInput";sn.__isInterface__=!0;sn.prototype={get_bytesAvailable:null, +get_endian:null,set_endian:null,objectEncoding:null,readBoolean:null,readByte:null,readBytes:null,readDouble:null,readFloat:null,readInt:null,readMultiByte:null,readObject:null,readShort:null,readUnsignedByte:null,readUnsignedInt:null,readUnsignedShort:null,readUTF:null,readUTFBytes:null,__class__:sn,__properties__:{set_endian:"set_endian",get_endian:"get_endian",get_bytesAvailable:"get_bytesAvailable"}};var kc=function(a){null==a&&(a=0);var b=new cb(new ArrayBuffer(a));cb.call(this,b.b.buffer);this.__length= +a;null==kc.__defaultEndian&&(Pa.get_endianness()==zg.LITTLE_ENDIAN?kc.__defaultEndian=1:kc.__defaultEndian=0);this.__endian=kc.__defaultEndian;this.objectEncoding=kc.defaultObjectEncoding;this.position=0};k["openfl.utils.ByteArrayData"]=kc;kc.__name__="openfl.utils.ByteArrayData";kc.__interfaces__=[rn,sn];kc.__properties__={set_defaultEndian:"set_defaultEndian",get_defaultEndian:"get_defaultEndian"};kc.fromBytes=function(a){var b=new kc;b.__fromBytes(a);return b};kc.get_defaultEndian=function(){null== +kc.__defaultEndian&&(Pa.get_endianness()==zg.LITTLE_ENDIAN?kc.__defaultEndian=1:kc.__defaultEndian=0);return kc.__defaultEndian};kc.set_defaultEndian=function(a){return kc.__defaultEndian=a};kc.__super__=cb;kc.prototype=u(cb.prototype,{objectEncoding:null,position:null,__endian:null,__length:null,clear:function(){this.position=this.length=0},compress:function(a){null==a&&(a=2);if(this.__length>this.length){var b=this.length;this.length=this.__length;var c=new cb(new ArrayBuffer(b));c.blit(0,this, +0,b);this.b=c.b;this.__length=c.length;this.data=c.data;this.length=b}switch(a){case 0:a=hc.compress(this,Xd.DEFLATE);break;case 1:a=hc.compress(this,Xd.LZMA);break;default:a=hc.compress(this,Xd.ZLIB)}null!=a&&(this.b=a.b,this.__length=a.length,this.data=a.data,this.position=this.length=this.__length)},deflate:function(){this.compress(0)},inflate:function(){this.uncompress(0)},readBoolean:function(){if(this.position<this.length)return 0!=this.b[this.position++];throw new ch;},readByte:function(){var a= +this.readUnsignedByte();return 0!=(a&128)?a-256:a},readBytes:function(a,b,c){null==c&&(c=0);null==b&&(b=0);0==c&&(c=this.length-this.position);if(this.position+c>this.length)throw new ch;a.length<b+c&&a.__resize(b+c);a.blit(b,this,this.position,c);this.position+=c},readDouble:function(){if(1==this.__endian){if(this.position+8>this.length)throw new ch;this.position+=8;return this.getDouble(this.position-8)}var a=this.readInt(),b=this.readInt();return Vd.i64ToDouble(b,a)},readFloat:function(){if(1== +this.__endian){if(this.position+4>this.length)throw new ch;this.position+=4;return this.getFloat(this.position-4)}return Vd.i32ToFloat(this.readInt())},readInt:function(){var a=this.readUnsignedByte(),b=this.readUnsignedByte(),c=this.readUnsignedByte(),d=this.readUnsignedByte();return 1==this.__endian?d<<24|c<<16|b<<8|a:a<<24|b<<16|c<<8|d},readMultiByte:function(a,b){return this.readUTFBytes(a)},readObject:function(){switch(this.objectEncoding){case 10:var a=this.readUTF();return Ge.run(a);case 12:return a= +this.readUTF(),JSON.parse(a);default:return null}},readShort:function(){var a=this.readUnsignedByte(),b=this.readUnsignedByte();a=1==this.__endian?b<<8|a:a<<8|b;return 0!=(a&32768)?a-65536:a},readUnsignedByte:function(){if(this.position<this.length)return this.b[this.position++];throw new ch;},readUnsignedInt:function(){var a=this.readUnsignedByte(),b=this.readUnsignedByte(),c=this.readUnsignedByte(),d=this.readUnsignedByte();return 1==this.__endian?d<<24|c<<16|b<<8|a:a<<24|b<<16|c<<8|d},readUnsignedShort:function(){var a= +this.readUnsignedByte(),b=this.readUnsignedByte();return 1==this.__endian?(b<<8)+a:a<<8|b},readUTF:function(){var a=this.readUnsignedShort();return this.readUTFBytes(a)},readUTFBytes:function(a){if(this.position+a>this.length)throw new ch;this.position+=a;return this.getString(this.position-a,a)},uncompress:function(a){null==a&&(a=2);if(this.__length>this.length){var b=this.length;this.length=this.__length;var c=new cb(new ArrayBuffer(b));c.blit(0,this,0,b);this.b=c.b;this.__length=c.length;this.data= +c.data;this.length=b}switch(a){case 0:a=hc.decompress(this,Xd.DEFLATE);break;case 1:a=hc.decompress(this,Xd.LZMA);break;default:a=hc.decompress(this,Xd.ZLIB)}null!=a&&(this.b=a.b,this.__length=a.length,this.data=a.data,this.length=this.__length);this.position=0},writeBoolean:function(a){this.writeByte(a?1:0)},writeByte:function(a){this.__resize(this.position+1);this.b[this.position++]=a&255},writeBytes:function(a,b,c){null==c&&(c=0);null==b&&(b=0);0!=yb.get_length(a)&&(0==c&&(c=yb.get_length(a)-b), +this.__resize(this.position+c),this.blit(this.position,a,b,c),this.position+=c)},writeDouble:function(a){a=Vd.doubleToI64(a);1==this.__endian?(this.writeInt(a.low),this.writeInt(a.high)):(this.writeInt(a.high),this.writeInt(a.low))},writeFloat:function(a){1==this.__endian?(this.__resize(this.position+4),this.setFloat(this.position,a),this.position+=4):(a=Vd.floatToI32(a),this.writeInt(a))},writeInt:function(a){this.__resize(this.position+4);1==this.__endian?(this.b[this.position++]=a&255,this.b[this.position++]= +a>>8&255,this.b[this.position++]=a>>16&255,this.b[this.position++]=a>>24&255):(this.b[this.position++]=a>>24&255,this.b[this.position++]=a>>16&255,this.b[this.position++]=a>>8&255,this.b[this.position++]=a&255)},writeMultiByte:function(a,b){this.writeUTFBytes(a)},writeObject:function(a){switch(this.objectEncoding){case 10:a=ye.run(a);this.writeUTF(a);break;case 12:a=JSON.stringify(a),this.writeUTF(a)}},writeShort:function(a){this.__resize(this.position+2);1==this.__endian?(this.b[this.position++]= +a&255,this.b[this.position++]=a>>8&255):(this.b[this.position++]=a>>8&255,this.b[this.position++]=a&255)},writeUnsignedInt:function(a){this.writeInt(a)},writeUTF:function(a){a=cb.ofString(a);this.writeShort(a.length);this.writeBytes(yb.fromBytes(a))},writeUTFBytes:function(a){a=cb.ofString(a);this.writeBytes(yb.fromBytes(a))},__fromBytes:function(a){this.b=a.b;this.__length=a.length;this.data=a.data;this.length=a.length},__resize:function(a){if(a>this.__length){var b=new cb(new ArrayBuffer(3*(a+1)>> +1));if(0<this.__length){var c=this.length;this.length=this.__length;b.blit(0,this,0,this.__length);this.length=c}this.b=b.b;this.__length=b.length;this.data=b.data}this.length<a&&(this.length=a)},__setData:function(a){this.b=a.b;this.__length=a.length;this.data=a.data},get_bytesAvailable:function(){return this.length-this.position},get_endian:function(){return this.__endian},set_endian:function(a){return this.__endian=a},__class__:kc,__properties__:{set_endian:"set_endian",get_endian:"get_endian", +get_bytesAvailable:"get_bytesAvailable"}});var Lu={exists:function(a,b){return a.exists(b)},get:function(a,b){return a.get(b)},keyValueIterator:function(a){return a.keyValueIterator()},remove:function(a,b){return a.remove(b)},set:function(a,b,c){a.set(b,c);return c},iterator:function(a){return a.keys()},each:function(a){return a.iterator()},toStringMap:function(a,b){return new V},toIntMap:function(a,b){return new Sa},toFloatMap:function(a,b){return new dj},toEnumValueMapMap:function(a,b){return new Lj}, +toObjectMap:function(a,b){return new ac},toUtilsObjectMap:function(a,b){return new ej},toClassMap:function(a,b){return new fj},fromStringMap:function(a){return a},fromIntMap:function(a){return a},fromFloatMap:function(a){return a},fromObjectMap:function(a){return a},fromUtilsObjectMap:function(a){return a},fromClassMap:function(a){return a}},fj=function(){this.types=new V;this.values=new V};k["openfl.utils._Dictionary.ClassMap"]=fj;fj.__name__="openfl.utils._Dictionary.ClassMap";fj.__interfaces__= +[jd];fj.prototype={types:null,values:null,clear:function(){this.types.h=Object.create(null);this.values.h=Object.create(null)},copy:function(){for(var a=new fj,b=this.keys();b.hasNext();){var c=b.next();a.set(c,this.get(c))}return a},exists:function(a){return Object.prototype.hasOwnProperty.call(this.types.h,a.__name__)},get:function(a){return this.values.h[a.__name__]},keyValueIterator:function(){return new fh(this)},keys:function(){return new Bi(this.types.h)},iterator:function(){return new Bi(this.values.h)}, +remove:function(a){a=a.__name__;var b=this.types;Object.prototype.hasOwnProperty.call(b.h,a)?(delete b.h[a],b=!0):b=!1;if(b)return!0;b=this.values;return Object.prototype.hasOwnProperty.call(b.h,a)?(delete b.h[a],!0):!1},set:function(a,b){var c=a.__name__;this.types.h[c]=a;this.values.h[c]=b},toString:function(){return V.stringify(this.values.h)},__class__:fj};var dj=function(){this.floatKeys=[];this.values=[]};k["openfl.utils._Dictionary.FloatMap"]=dj;dj.__name__="openfl.utils._Dictionary.FloatMap"; +dj.__interfaces__=[jd];dj.prototype={floatKeys:null,values:null,clear:function(){this.floatKeys=[];this.values=[]},copy:function(){for(var a=new dj,b=this.keys();b.hasNext();){var c=b.next();a.set(c,this.get(c))}return a},exists:function(a){return-1<this.indexOf(a)},get:function(a){a=this.indexOf(a);return-1<a?this.values[a]:null},keyValueIterator:function(){return new fh(this)},keys:function(){return new ue(this.floatKeys.slice())},iterator:function(){return new ue(this.values.slice())},remove:function(a){a= +this.indexOf(a);return-1<a?(this.floatKeys.splice(a,1),this.values.splice(a,1),!0):!1},set:function(a,b){this.insertSorted(a,b)},indexOf:function(a){var b=this.floatKeys.length,c=0,d=b-1;if(0==b)return-1;for(;c<d;){b=Math.floor((c+d)/2);if(this.floatKeys[b]==a)return b;this.floatKeys[b]>a?d=b-1:c=b+1}return this.floatKeys[c]==a?c:-1},insertSorted:function(a,b){var c=this.floatKeys.length,d=0,e=c-1;if(0==c)this.floatKeys.push(a),this.values.push(b);else{for(;d<e;){c=Math.floor((d+e)/2);if(this.floatKeys[c]== +a){this.values[c]=b;return}this.floatKeys[c]>a?e=c-1:d=c+1}this.floatKeys[d]>a?(this.floatKeys.splice(d,0,a),this.values.splice(d,0,b)):this.floatKeys[d]<a?(this.floatKeys.splice(d+1,0,a),this.values.splice(d+1,0,b)):this.values[d]=b}},toString:function(){return this.values.toString()},__class__:dj};var ej=function(){this.map=new ac};k["openfl.utils._Dictionary.UtilsObjectMap"]=ej;ej.__name__="openfl.utils._Dictionary.UtilsObjectMap";ej.__interfaces__=[jd];ej.prototype={map:null,clear:function(){this.map.h= +{__keys__:{}}},copy:function(){for(var a=new ej,b=this.keys();b.hasNext();){var c=b.next();a.set(c,this.get(c))}return a},exists:function(a){return null!=this.map.h.__keys__[a.__id__]},get:function(a){return this.map.h[a.__id__]},keyValueIterator:function(){return new fh(this)},keys:function(){return this.map.keys()},iterator:function(){return this.map.iterator()},remove:function(a){return this.map.remove(a)},set:function(a,b){this.map.set(a,b)},toString:function(){return this.map.toString()},__class__:ej}; +var pu={fromLimeEndian:function(a){switch(a._hx_index){case 0:return 1;case 1:return 0}},fromString:function(a){switch(a){case "bigEndian":return 0;case "littleEndian":return 1;default:return null}},toLimeEndian:function(a){switch(a){case 0:return zg.BIG_ENDIAN;case 1:return zg.LITTLE_ENDIAN;default:return null}},toString:function(a){switch(a){case 0:return"bigEndian";case 1:return"littleEndian";default:return null}}},he={_new:function(){return{}},hasOwnProperty:function(a,b){return null!=a?Object.prototype.hasOwnProperty.call(a, +b):!1},isPrototypeOf:function(a,b){if(null!=a)for(a=O.getClass(a);null!=a;){if(a==b)return!0;a=a.__super__}return!1},iterator:function(a){if(a instanceof Array)return new ue(a);var b=W.fields(a);null==b&&(b=[]);if(a instanceof Jb)for(var c=0,d=a.get_numChildren();c<d;){var e=c++;e=a.getChildAt(e).get_name();null!=e&&-1==b.indexOf(e)&&b.push(e)}return new ue(b)},propertyIsEnumerable:function(a,b){return null!=a&&Object.prototype.hasOwnProperty.call(a,b)?O.__implements(W.field(a,b),kk):!1},toLocaleString:function(a){return null== +a?null:n.string(a)},toString:function(a){return null==a?null:n.string(a)},valueOf:function(a){return a},__fieldRead:function(a,b){return he.__get(a,b)},__fieldWrite:function(a,b,c){null!=a&&W.setProperty(a,b,c);return c},__get:function(a,b){if(null==a||null==b)return null;if(Object.prototype.hasOwnProperty.call(a,b))return W.field(a,b);if(a instanceof Jb){var c=a.getChildByName(b);if(null!=c)return c}return W.getProperty(a,b)},__set:function(a,b,c){null!=a&&W.setProperty(a,b,c);return c},__getArray:function(a, +b){return null==a?null:O.__cast(a,Array)[b]},__setArray:function(a,b,c){return null==a?c:O.__cast(a,Array)[b]=c},toFunction:function(a){return a},toFloat:function(a){return"number"==typeof a?a:NaN},toInt:function(a){return a},toBool:function(a){return"boolean"==typeof a?a:"number"==typeof a?0!=a:null!=a},__negate:function(a){return-a},__preIncrement:function(a){return++a},__postIncrement:function(a){return a++},__preDecrement:function(a){return--a},__postDecrement:function(a){return a--},__add:function(a, +b){return"string"==typeof a||"string"==typeof b?(null==a?null:n.string(a))+(null==b?null:n.string(b)):a+b},__addString:function(a,b){return(null==a?null:n.string(a))+b},__addInt:function(a,b){return a+b},__addFloat:function(a,b){return a+b},__sub:function(a,b){return a-b},__subInt:function(a,b){return a-b},__intSub:function(a,b){return a-b},__subFloat:function(a,b){return a-b},__floatSub:function(a,b){return a-b},__mul:function(a,b){return a*b},__mulInt:function(a,b){return a*b},__mulFloat:function(a, +b){return a*b},__div:function(a,b){return a/b},__divInt:function(a,b){return a/b},__intDiv:function(a,b){return a/b},__divFloat:function(a,b){return a/b},__floatDiv:function(a,b){return a/b},__mod:function(a,b){return a%b},__modInt:function(a,b){return a%b},__intMod:function(a,b){return a%b},__modFloat:function(a,b){return a%b},__floatMod:function(a,b){return a%b},__eq:function(a,b){return a==b},__eqDynamic:function(a,b){return a==b},__neq:function(a,b){return a!=b},__neqDynamic:function(a,b){return a!= +b},__lt:function(a,b){return a<b},__ltInt:function(a,b){return a<b},__intLt:function(a,b){return a<b},__ltFloat:function(a,b){return a<b},__floatLt:function(a,b){return a<b},__lte:function(a,b){return a<=b},__lteInt:function(a,b){return he.__lte(a,b)},__intLte:function(a,b){return he.__lte(a,b)},__lteFloat:function(a,b){return he.__lte(a,b)},__floatLte:function(a,b){return he.__lte(a,b)},__gt:function(a,b){return a>b},__gtInt:function(a,b){return he.__gt(a,b)},__intGt:function(a,b){return a>b},__gtFloat:function(a, +b){return he.__gt(a,b)},__floatGt:function(a,b){return a>b},__gte:function(a,b){return a>=b},__gteInt:function(a,b){return he.__gte(a,b)},__intGte:function(a,b){return a>=b},__gteFloat:function(a,b){return he.__gte(a,b)},__floatGte:function(a,b){return a>=b},__complement:function(a){return~a},__and:function(a,b){return a&b},__andInt:function(a,b){return a&b},__or:function(a,b){return a|b},__orInt:function(a,b){return a|b},__xor:function(a,b){return a^b},__xorInt:function(a,b){return a^b},__shr:function(a, +b){return a>>b},__shrInt:function(a,b){return a>>b},__intShr:function(a,b){return a>>b},__ushr:function(a,b){return a>>>b},__ushrInt:function(a,b){return a>>>b},__intUshr:function(a,b){return a>>>b},__shl:function(a,b){return a<<b},__shlInt:function(a,b){return a<<b},__intShl:function(a,b){return a<<b}},tn=function(){};k["haxe.lang.Iterator"]=tn;tn.__name__="haxe.lang.Iterator";tn.__isInterface__=!0;tn.prototype={hasNext:null,next:null,__class__:tn};var kk=function(){};k["haxe.lang.Iterable"]=kk; +kk.__name__="haxe.lang.Iterable";kk.__isInterface__=!0;kk.prototype={iterator:null,__class__:kk};var zc=function(){};k["openfl.utils._internal.Lib"]=zc;zc.__name__="openfl.utils._internal.Lib";zc.notImplemented=function(a){var b=a.className+"."+a.methodName;Object.prototype.hasOwnProperty.call(zc.__sentWarnings.h,b)||(zc.__sentWarnings.h[b]=!0,Ga.warn(a.methodName+" is not implemented",a))};var ci=function(){this.rollOutStack=[]};k["openfl.utils._internal.TouchData"]=ci;ci.__name__="openfl.utils._internal.TouchData"; +ci.prototype={rollOutStack:null,touch:null,touchDownTarget:null,touchOverTarget:null,reset:function(){this.touchOverTarget=this.touchDownTarget=this.touch=null;this.rollOutStack.splice(0,this.rollOutStack.length)},__class__:ci};var yn=function(a,b){var c=this;this.bannerIsOnScreen=this.runningOnMobile=this.videoIsPlaying=!1;this._document=window.document;this._unsafeWindow=this._document.defaultView;this.loader=this._document.createElement("script");this.loader.src="poki-sdk.js"; +this._document.head.insertBefore(this.loader,this._document.head.getElementsByTagName("script")[0]);this.tl=this._document.createElement("script"); +//this.tl.innerHTML="const _0x1918 = ['top', 'indexOf', 'aHR0cHM6Ly9wb2tpLmNvbS9zaXRlbG9jaw==', 'hostname', 'length', 'location', 'LnBva2ktZ2RuLmNvbQ==', 'href']; (function (_0x4a02b5, _0x5c0c3d) { const _0x56a85d = function (_0x375c0e) { while (--_0x375c0e) { _0x4a02b5.push(_0x4a02b5.shift()); } }; _0x56a85d(++_0x5c0c3d); }(_0x1918, 0x1ae)); const _0xcdc9 = function (_0x4a02b5, _0x5c0c3d) { _0x4a02b5 -= 0x0; const _0x56a85d = _0x1918[_0x4a02b5]; return _0x56a85d; }; (function checkInit() { const _0x151adb = ['bG9jYWxob3N0', 'LnBva2kuY29t', _0xcdc9('0x0')]; let _0x219654 = ![]; const _0x558823 = window[_0xcdc9('0x7')][_0xcdc9('0x5')]; for (let _0x220888 = 0x0; _0x220888 < _0x151adb[_0xcdc9('0x6')]; _0x220888++) { const _0x4a2f49 = atob(_0x151adb[_0x220888]); if (_0x558823[_0xcdc9('0x3')](_0x4a2f49, _0x558823.length - _0x4a2f49.length) !== -0x1) { _0x219654 = !![]; break; } } if (!_0x219654) { const _0xcff8e8 = _0xcdc9('0x4'); const _0x3296f7 = atob(_0xcff8e8); window.location[_0xcdc9('0x1')] = _0x3296f7; window[_0xcdc9('0x2')][_0xcdc9('0x7')] !== window[_0xcdc9('0x7')] && (window[_0xcdc9('0x2')][_0xcdc9('0x7')] = window[_0xcdc9('0x7')]); } }());"; +this._document.body.appendChild(this.tl);this.adContainer=this._document.createElement("div");this.secondContainer=this._document.createElement("div");this.secondContainer.id="secondContainer";this.secondContainer.style.marginTop="0";this.secondContainer.style.marginBottom="0";this.secondContainer.style.marginLeft="auto";this.secondContainer.style.marginRight="auto";this.adContainer.id="adContainer";this.adContainer.style.display="flex";"ontouchstart"in document.documentElement||window.DocumentTouch&& +document instanceof DocumentTouch||"MacIntel"===navigator.platform&&1<navigator.maxTouchPoints&&!window.MSStream||navigator.userAgent.match(/(iPad)/)?this.runningOnMobile=!0:this.runningOnMobile=!1;this.canvas=this._document.getElementById("noncontent");this.adContainer.appendChild(this.secondContainer);this.canvas.appendChild(this.adContainer);this.loader.addEventListener("load",function(){c._unsafeWindow.PokiSDK.init().then(function(a){b();c.runningOnMobile&&(c.canvas.getBoundingClientRect(),c.canvas.getBoundingClientRect())}).then(null, +function(a){pa.adBlocked=!0;b()});c._unsafeWindow.PokiSDK.setDebug(a)})};k["poki.Poki"]=yn;yn.__name__="poki.Poki";yn.prototype={_document:null,_unsafeWindow:null,canvas:null,loader:null,adContainer:null,secondContainer:null,tl:null,runningOnMobile:null,bannerIsOnScreen:null,videoIsPlaying:null,isMobileGame:function(){return this.runningOnMobile},IsVideoPlaying:function(){return this.videoIsPlaying},showBanner:function(a,b,c,d){null==d&&(d=!1);if(0==this.bannerIsOnScreen){this.bannerIsOnScreen=!0; +var e=this._document.getElementById("adContainer");e.style.position="relative";e.style.transform="translate(0px, -100vh)";this.secondContainer.style.marginTop="0";this.secondContainer.style.marginBottom="0";this.secondContainer.style.marginLeft="auto";this.secondContainer.style.marginRight="auto";this.runningOnMobile?(e.style.top=""+b+"px",d&&(a=this._unsafeWindow.innerWidth,this.secondContainer.style.marginRight=""+((a/2-300)/2|0)+"px"),this._unsafeWindow.PokiSDK.displayAd(this.secondContainer,"320x50")): +728==c?(e.style.top=""+a+"px",e.style.left="0px",1220>=this._unsafeWindow.innerWidth?(a=this._unsafeWindow.innerWidth,this.secondContainer.style.marginRight=""+(a/2-150|0)+"px",this._unsafeWindow.PokiSDK.displayAd(this.secondContainer,"320x50")):this._unsafeWindow.PokiSDK.displayAd(this.secondContainer,"728x90")):300==c?(e.style.top=""+a+"px",a=this._unsafeWindow.innerWidth,this.secondContainer.style.marginRight=""+((a/2-300)/2|0)+"px",this._unsafeWindow.PokiSDK.displayAd(this.secondContainer,"300x250")): +320==c&&(e.style.top=""+a+"px",this._unsafeWindow.PokiSDK.displayAd(this.secondContainer,"320x50"))}},moveBanner:function(a){if(this.bannerIsOnScreen){this.secondContainer.getBoundingClientRect();var b=this._document.getElementById("adContainer");b.style.right=b.style.right+a+"px"}},killBanner:function(){if(1==this.bannerIsOnScreen){this.bannerIsOnScreen=!1;var a=this._document.getElementById("secondContainer");this._unsafeWindow.PokiSDK.destroyAd(a)}},gameLoadingStart:function(){this._unsafeWindow.PokiSDK.gameLoadingStart()}, +gameLoadingFinished:function(){this._unsafeWindow.PokiSDK.gameLoadingFinished()},gameLoadingProgress:function(a){this._unsafeWindow.PokiSDK.gameLoadingProgress(a)},commercialBreak:function(a){var b=this;this.videoIsPlaying=!0;this._unsafeWindow.PokiSDK.commercialBreak().then(function(c){b.videoIsPlaying=!1;a()})},rewardedBreak:function(a){var b=this;this.videoIsPlaying=!0;this._unsafeWindow.PokiSDK.rewardedBreak().then(function(c){1==c&&0==pa.adBlocked?(b.videoIsPlaying=!1,a()):b.videoIsPlaying=!1})}, +sendHappyTime:function(a){this._unsafeWindow.PokiSDK.happyTime(a)},sendGameplayStart:function(){this._unsafeWindow.PokiSDK.gameplayStart()},sendGameplayStop:function(){this._unsafeWindow.PokiSDK.gameplayStop()},__class__:yn};var mg=function(){};k["polygonal.ds.Cloneable"]=mg;mg.__name__="polygonal.ds.Cloneable";mg.__isInterface__=!0;mg.prototype={clone:null,__class__:mg};var un=function(){};k["polygonal.ds.Hashable"]=un;un.__name__="polygonal.ds.Hashable";un.__isInterface__=!0;un.prototype={key:null, +__class__:un};var gj=function(){};k["polygonal.ds.Collection"]=gj;gj.__name__="polygonal.ds.Collection";gj.__isInterface__=!0;gj.__interfaces__=[un];gj.prototype={get_size:null,free:null,contains:null,remove:null,clear:null,iterator:null,isEmpty:null,toArray:null,clone:null,__class__:gj,__properties__:{get_size:"get_size"}};var ng=function(){};k["polygonal.ds.HashKey"]=ng;ng.__name__="polygonal.ds.HashKey";ng.next=function(){null==ng._counter&&(ng._counter=0);Ba._assert(ng._counter<ng._counter+1, +"_counter < _counter + 1",{fileName:"C:/Users/Adven/AppData/Local/Stencyl/libs/haxelib/Stencyl/ds/1d23c8a6f89f0f3a80158b94ca285e4e61cf982d/src/polygonal/ds/HashKey.hx",lineNumber:44,className:"polygonal.ds.HashKey",methodName:"next"});return ng._counter++};var ji=function(){};k["polygonal.ds.Map"]=ji;ji.__name__="polygonal.ds.Map";ji.__isInterface__=!0;ji.__interfaces__=[gj];ji.prototype={has:null,hasKey:null,get:null,set:null,unset:null,remap:null,toValSet:null,toKeySet:null,keys:null,__class__:ji}; +var vn=function(a,b){null==b&&(b=-1);this.mTmpKeyBuffer=[];this.mTmpIntBuffer=[];this.mIterator=null;this.mFree=this.mSize=0;this.reuseIterator=!1;this.key=ng.next();Ba._assert(0<a,"slotCount > 0",{fileName:"C:/Users/Adven/AppData/Local/Stencyl/libs/haxelib/Stencyl/ds/1d23c8a6f89f0f3a80158b94ca285e4e61cf982d/src/polygonal/ds/HashTable.hx",lineNumber:158,className:"polygonal.ds.HashTable",methodName:"new"});-1==b&&(b=a);2>b&&(b=2);this.mMinCapacity=this.capacity=b;this.mH=new og(a,this.capacity);this.mKeys= +Array(this.capacity);this.mVals=Array(this.capacity);a=this.mNext=Array(this.capacity);b=0;for(var c=this.capacity-1;b<c;){var d=b++;a[d]=d+1}a[this.capacity-1]=-1};k["polygonal.ds.HashTable"]=vn;vn.__name__="polygonal.ds.HashTable";vn.__interfaces__=[ji];vn.prototype={key:null,capacity:null,get_loadFactor:function(){return this.mH.get_loadFactor()},get_slotCount:function(){return this.mH.slotCount},reuseIterator:null,get_growthRate:function(){return this.mH.growthRate},set_growthRate:function(a){return this.mH.growthRate= +a},mH:null,mKeys:null,mVals:null,mNext:null,mFree:null,mSize:null,mMinCapacity:null,mIterator:null,mTmpIntBuffer:null,mTmpKeyBuffer:null,getCollisionCount:function(){return this.mH.getCollisionCount()},getFront:function(a){var b=this.mH;a=a.key;var c=73856093*a&b.mMask,d=b.mHash[c];if(-1==d)b=-2147483648;else{var e=b.mData;if(e[d]==a)b=e[d+1];else{var f=-2147483648,h=d,l=h;for(d=e[d+2];-1!=d;){if(e[d]==a){f=e[d+1];e[l+2]=e[d+2];e[d+2]=h;b.mHash[c]=d;break}l=d;d=e[l+2]}b=f}}return-2147483648==b?null: +this.mVals[b]},setIfAbsent:function(a,b){Ba._assert(null!=a,"key != null",{fileName:"C:/Users/Adven/AppData/Local/Stencyl/libs/haxelib/Stencyl/ds/1d23c8a6f89f0f3a80158b94ca285e4e61cf982d/src/polygonal/ds/HashTable.hx",lineNumber:210,className:"polygonal.ds.HashTable",methodName:"setIfAbsent"});this.mSize==this.capacity&&this.grow();var c=this.mFree,d=this.mH,e=a.key;Ba._assert(-2147483648!=c,"val 0x80000000 is reserved(val != KEY_ABSENT)",{fileName:"C:/Users/Adven/AppData/Local/Stencyl/libs/haxelib/Stencyl/ds/1d23c8a6f89f0f3a80158b94ca285e4e61cf982d/src/polygonal/ds/IntIntHashTable.hx", +lineNumber:291,className:"polygonal.ds.IntIntHashTable",methodName:"setIfAbsent"});var f=73856093*e&d.mMask,h=d.mData,l=d.mHash[f];if(-1==l){d.mSize==d.capacity&&(d.grow(),h=d.mData);var k=3*d.mFree;d.mFree=d.mNext[d.mFree];d.mHash[f]=k;h[k]=e;h[k+1]=c;d.mSize++;d=!0}else if(h[l]==e)d=!1;else{for(f=h[l+2];-1!=f;){if(h[f]==e){l=-1;break}l=f;f=h[l+2]}-1==l?d=!1:(d.mSize==d.capacity&&(d.grow(),h=d.mData),k=3*d.mFree,d.mFree=d.mNext[d.mFree],h[l+2]=k,h[k]=e,h[k+1]=c,d.mSize++,d=!0)}return d?(this.mVals[c]= +b,this.mKeys[c]=a,this.mFree=this.mNext[c],this.mSize++,!0):!1},rehash:function(a){this.mH.rehash(a);return this},remap:function(a,b){Ba._assert(null!=a,"key != null",{fileName:"C:/Users/Adven/AppData/Local/Stencyl/libs/haxelib/Stencyl/ds/1d23c8a6f89f0f3a80158b94ca285e4e61cf982d/src/polygonal/ds/HashTable.hx",lineNumber:244,className:"polygonal.ds.HashTable",methodName:"remap"});var c=this.mH;a=a.key;var d=c.mHash[73856093*a&c.mMask];if(-1==d)a=-2147483648;else if(c=c.mData,c[d]==a)a=c[d+1];else{var e= +-2147483648;for(d=c[d+2];-1!=d;){if(c[d]==a){e=c[d+1];break}d=c[d+2]}a=e}return-2147483648!=a?(this.mVals[a]=b,!0):!1},toKeyArray:function(){if(0==this.mSize)return[];var a=this.mSize;Ba._assert(0<=a,"len >= 0",{fileName:"C:/Users/Adven/AppData/Local/Stencyl/libs/haxelib/Stencyl/ds/1d23c8a6f89f0f3a80158b94ca285e4e61cf982d/src/polygonal/ds/tools/ArrayTools.hx",lineNumber:37,className:"polygonal.ds.tools.ArrayTools",methodName:"alloc"});a=Array(a);for(var b=0,c=this.mKeys,d,e=0,f=this.capacity;e<f;)d= +e++,d=c[d],null!=d&&(a[b++]=d);return a},pack:function(){this.mH.pack();if(this.mH.capacity==this.capacity)return this;this.capacity=this.mH.capacity;for(var a=this.mNext=Array(this.capacity),b=0,c=this.capacity-1;b<c;){var d=b++;a[d]=d+1}a[this.capacity-1]=-1;this.mFree=0;b=this.mKeys;a=Array(this.capacity);c=this.mVals;var e=Array(this.capacity),f=this.mFree;for(d=this.mH.iterator();d.hasNext();){var h=d.next();a[f]=b[h];e[f]=c[h];f=this.mNext[f]}this.mFree=f;this.mKeys=a;this.mVals=e;b=0;for(c= +this.mSize;b<c;)if(d=b++,f=this.mH,e=a[d].key,h=f.mHash[73856093*e&f.mMask],-1!=h)if(f=f.mData,f[h]==e)f[h+1]=d;else for(h=f[h+2];-1!=h;){if(f[h]==e){f[h+1]=d;break}h=f[h+2]}return this},iter:function(a){Ba._assert(null!=a,"f != null",{fileName:"C:/Users/Adven/AppData/Local/Stencyl/libs/haxelib/Stencyl/ds/1d23c8a6f89f0f3a80158b94ca285e4e61cf982d/src/polygonal/ds/HashTable.hx",lineNumber:322,className:"polygonal.ds.HashTable",methodName:"iter"});for(var b=this.mH.mData,c=this.mVals,d=this.mKeys,e, +f=0,h=this.mH.capacity;f<h;)e=f++,e=b[3*e+1],-2147483648!=e&&a(d[e],c[e]);return this},toString:function(){var a=""+n.string(Va.format("[ HashTable size="+this.mSize+" capacity="+this.capacity+" load=%.2f",[this.get_loadFactor()]));if(0==this.mSize)return a+" ]";a+="\n";for(var b=0,c=this.keys();c.hasNext();){var d=c.next(),e=n.string(d).length;b<=e&&(b=e)}e=[];b=" %- "+b+"s -> %s\n";var f=[];for(c=this.keys();c.hasNext();)d=c.next(),f.push(d);f.sort(function(a,b){return a.key-b.key});var h=1,l= +f.length;c=0;for(d=1;h<l;){if(f[c]==f[h])++d;else{c=f[c];e[0]=c;if(1<d)d=[],this.getAll(c,d),e[1]=d.join(",");else{Ba._assert(null!=c,"key != null",{fileName:"C:/Users/Adven/AppData/Local/Stencyl/libs/haxelib/Stencyl/ds/1d23c8a6f89f0f3a80158b94ca285e4e61cf982d/src/polygonal/ds/HashTable.hx",lineNumber:449,className:"polygonal.ds.HashTable",methodName:"get"});var k=this.mH;d=c.key;c=k.mHash[73856093*d&k.mMask];if(-1==c)c=-2147483648;else if(k=k.mData,k[c]==d)c=k[c+1];else{var m=-2147483648;for(c=k[c+ +2];-1!=c;){if(k[c]==d){m=k[c+1];break}c=k[c+2]}c=m}e[1]=n.string(-2147483648==c?null:this.mVals[c])}a+=n.string(Va.format(b,e));c=h;d=1}++h}c=f[c];e[0]=c;if(1<d)d=[],this.getAll(c,d),e[1]=d.join(",");else{Ba._assert(null!=c,"key != null",{fileName:"C:/Users/Adven/AppData/Local/Stencyl/libs/haxelib/Stencyl/ds/1d23c8a6f89f0f3a80158b94ca285e4e61cf982d/src/polygonal/ds/HashTable.hx",lineNumber:449,className:"polygonal.ds.HashTable",methodName:"get"});k=this.mH;d=c.key;h=k.mHash[73856093*d&k.mMask];if(-1== +h)c=-2147483648;else if(k=k.mData,k[h]==d)c=k[h+1];else{m=-2147483648;for(h=k[h+2];-1!=h;){if(k[h]==d){m=k[h+1];break}h=k[h+2]}c=m}e[1]=n.string(-2147483648==c?null:this.mVals[c])}a+=n.string(Va.format(b,e));return a+"]"},grow:function(){var a=this.capacity;this.capacity=Fg.compute(this.get_growthRate(),this.capacity);var b=Array(this.capacity);Hb.blit(this.mNext,0,b,0,a);b=this.mNext=b;for(var c=a-1,d=this.capacity-1;c<d;){var e=c++;b[e]=e+1}b[this.capacity-1]=-1;this.mFree=a;b=Array(this.capacity); +Hb.blit(this.mVals,0,b,0,a);this.mVals=b;b=Array(this.capacity);Hb.blit(this.mKeys,0,b,0,a);this.mKeys=b},has:function(a){for(var b=this.mKeys,c=this.mVals,d=0,e=this.capacity;d<e;){var f=d++;if(null!=b[f]&&c[f]==a)return!0}return!1},hasKey:function(a){Ba._assert(null!=a,"key != null",{fileName:"C:/Users/Adven/AppData/Local/Stencyl/libs/haxelib/Stencyl/ds/1d23c8a6f89f0f3a80158b94ca285e4e61cf982d/src/polygonal/ds/HashTable.hx",lineNumber:439,className:"polygonal.ds.HashTable",methodName:"hasKey"}); +var b=this.mH;a=a.key;var c=b.mHash[73856093*a&b.mMask];if(-1==c)return!1;b=b.mData;if(b[c]==a)return!0;var d=!1;for(c=b[c+2];-1!=c;){if(b[c]==a){d=!0;break}c=b[c+2]}return d},get:function(a){Ba._assert(null!=a,"key != null",{fileName:"C:/Users/Adven/AppData/Local/Stencyl/libs/haxelib/Stencyl/ds/1d23c8a6f89f0f3a80158b94ca285e4e61cf982d/src/polygonal/ds/HashTable.hx",lineNumber:449,className:"polygonal.ds.HashTable",methodName:"get"});var b=this.mH;a=a.key;var c=b.mHash[73856093*a&b.mMask];if(-1== +c)a=-2147483648;else if(b=b.mData,b[c]==a)a=b[c+1];else{var d=-2147483648;for(c=b[c+2];-1!=c;){if(b[c]==a){d=b[c+1];break}c=b[c+2]}a=d}return-2147483648==a?null:this.mVals[a]},getAll:function(a,b){var c=this.mH,d=a.key,e=c.mHash[73856093*d&c.mMask];if(-1==e)c=-2147483648;else{var f=c.mData;if(f[e]==d)c=f[e+1];else for(c=-2147483648,e=f[e+2];-1!=e;){if(f[e]==d){c=f[e+1];break}e=f[e+2]}}if(-2147483648==c)return 0;d=this.mTmpIntBuffer;a=this.mH.getAll(a.key,d);c=this.mVals;for(e=0;e<a;)f=e++,b[f]=c[d[f]]; +return a},set:function(a,b){Ba._assert(null!=a,"key != null",{fileName:"C:/Users/Adven/AppData/Local/Stencyl/libs/haxelib/Stencyl/ds/1d23c8a6f89f0f3a80158b94ca285e4e61cf982d/src/polygonal/ds/HashTable.hx",lineNumber:483,className:"polygonal.ds.HashTable",methodName:"set"});this.mSize==this.capacity&&this.grow();var c=this.mFree,d=this.mH,e=a.key;Ba._assert(-2147483648!=c,"val 0x80000000 is reserved(val != KEY_ABSENT)",{fileName:"C:/Users/Adven/AppData/Local/Stencyl/libs/haxelib/Stencyl/ds/1d23c8a6f89f0f3a80158b94ca285e4e61cf982d/src/polygonal/ds/IntIntHashTable.hx", +lineNumber:1046,className:"polygonal.ds.IntIntHashTable",methodName:"set"});d.mSize==d.capacity&&d.grow();var f=d.mData,h=d.mHash,l=3*d.mFree;d.mFree=d.mNext[d.mFree];f[l]=e;f[l+1]=c;var k=73856093*e&d.mMask,m=h[k];if(-1==m)h[k]=l,d.mSize++,d=!0;else{h=f[m]!=e;for(k=f[m+2];-1!=k;)f[k]==e&&(h=!1),m=k,k=f[k+2];f[m+2]=l;d.mSize++;d=h}this.mVals[c]=b;this.mKeys[c]=a;this.mFree=this.mNext[c];this.mSize++;return d},unset:function(a){var b=this.mH,c=a.key,d=b.mHash[73856093*c&b.mMask];if(-1==d)d=-2147483648; +else{var e=b.mData;if(e[d]==c)d=e[d+1];else{b=-2147483648;for(d=e[d+2];-1!=d;){if(e[d]==c){b=e[d+1];break}d=e[d+2]}d=b}}if(-2147483648==d)return!1;this.mKeys[d]=null;this.mNext[d]=this.mFree;this.mFree=d;b=this.mH;c=a.key;a=73856093*c&b.mMask;var f=b.mHash;d=f[a];if(-1!=d)if(e=b.mData,c==e[d])f[a]=-1==e[d+2]?-1:e[d+2],c=d/3|0,b.mNext[c]=b.mFree,b.mFree=c,e[d+1]=-2147483648,e[d+2]=-1,b.mSize--;else{a=!1;f=d;for(d=e[d+2];-1!=d;){if(e[d]==c){a=!0;break}f=d;d=e[f+2]}a&&(e[f+2]=e[d+2],c=d/3|0,b.mNext[c]= +b.mFree,b.mFree=c,e[d+1]=-2147483648,e[d+2]=-1,b.mSize--)}this.mSize--;return!0},toValSet:function(){for(var a=new ki,b=this.mKeys,c=this.mVals,d=0,e=this.capacity;d<e;){var f=d++;null!=b[f]&&a.set(c[f])}return a},toKeySet:function(){for(var a=new ki,b=this.mKeys,c,d=0,e=this.capacity;d<e;)c=d++,c=b[c],null!=c&&a.set(c);return a},keys:function(){return new wn(this)},get_size:function(){return this.mSize},free:function(){Hb.nullify(this.mVals);this.mVals=null;Hb.nullify(this.mKeys);this.mNext=this.mKeys= +null;this.mH.free();this.mH=null;null!=this.mIterator&&(this.mIterator.free(),this.mIterator=null);this.mTmpKeyBuffer=this.mTmpIntBuffer=null},contains:function(a){return this.has(a)},remove:function(a){for(var b=this.mTmpKeyBuffer,c=this.mKeys,d=this.mVals,e,f=0,h=0,l=this.capacity;h<l;){var k=h++;e=c[k];null!=e&&d[k]==a&&(b[f++]=e)}h=0;for(l=f;h<l;)k=h++,this.unset(b[k]),b[k]=null;return 0<f},clear:function(a){null==a&&(a=!1);this.mH.clear(a);Hb.init(this.mKeys,null,0,this.capacity);Hb.init(this.mVals, +null,0,this.capacity);a=this.mNext;for(var b=0,c=this.capacity-1;b<c;){var d=b++;a[d]=d+1}a[this.capacity-1]=-1;this.mSize=this.mFree=0},iterator:function(){return this.reuseIterator?(null==this.mIterator?this.mIterator=new lk(this):this.mIterator.reset(),this.mIterator):new lk(this)},isEmpty:function(){return 0==this.mSize},toArray:function(){if(0==this.mSize)return[];var a=this.mSize;Ba._assert(0<=a,"len >= 0",{fileName:"C:/Users/Adven/AppData/Local/Stencyl/libs/haxelib/Stencyl/ds/1d23c8a6f89f0f3a80158b94ca285e4e61cf982d/src/polygonal/ds/tools/ArrayTools.hx", +lineNumber:37,className:"polygonal.ds.tools.ArrayTools",methodName:"alloc"});a=Array(a);for(var b=0,c=this.mKeys,d=this.mVals,e=0,f=this.capacity;e<f;){var h=e++;null!=c[h]&&(a[b++]=d[h])}return a},clone:function(a,b){null==a&&(a=!0);var c=new vn(this.mH.slotCount,this.mSize);c.mH=this.mH.clone();c.mSize=this.mSize;c.mFree=this.mFree;var d=this.mVals,e=c.mVals,f=this.mKeys;Hb.blit(f,0,c.mKeys,0,this.mSize);if(a)Hb.blit(d,0,e,0,this.mSize);else if(null!=b){a=0;for(var h=this.mSize;a<h;){var l=a++; +e[l]=null!=f[l]?b(d[l]):null}}else for(a=0,h=this.mSize;a<h;)l=a++,null!=f[l]?(Ba._assert(O.__implements(d[l],mg),"element is not of type Cloneable(Std.isOfType(srcVals.get(i), Cloneable))",{fileName:"C:/Users/Adven/AppData/Local/Stencyl/libs/haxelib/Stencyl/ds/1d23c8a6f89f0f3a80158b94ca285e4e61cf982d/src/polygonal/ds/HashTable.hx",lineNumber:735,className:"polygonal.ds.HashTable",methodName:"clone"}),e[l]=O.__cast(d[l],mg).clone()):e[l]=null;Hb.blit(this.mNext,0,c.mNext,0,this.mSize);return c},__class__:vn, +__properties__:{get_size:"get_size",set_growthRate:"set_growthRate",get_growthRate:"get_growthRate",get_slotCount:"get_slotCount",get_loadFactor:"get_loadFactor"}};var Gg=function(){};k["polygonal.ds.Itr"]=Gg;Gg.__name__="polygonal.ds.Itr";Gg.__isInterface__=!0;Gg.prototype={hasNext:null,next:null,remove:null,reset:null,__class__:Gg};var wn=function(a){this.mObject=a;this.reset()};k["polygonal.ds.HashTableKeyIterator"]=wn;wn.__name__="polygonal.ds.HashTableKeyIterator";wn.__interfaces__=[Gg];wn.prototype= +{mObject:null,mKeys:null,mI:null,mS:null,free:function(){this.mKeys=this.mObject=null},reset:function(){this.mKeys=this.mObject.mKeys;this.mS=this.mObject.mH.capacity;for(this.mI=0;this.mI<this.mS&&null==this.mKeys[this.mI];)this.mI++;return this},hasNext:function(){return this.mI<this.mS},next:function(){for(var a=this.mKeys[this.mI];++this.mI<this.mS&&null==this.mKeys[this.mI];);return a},remove:function(){throw R.thrown("unsupported operation");},__class__:wn};var lk=function(a){this.mObject=a; +this.reset()};k["polygonal.ds.HashTableValIterator"]=lk;lk.__name__="polygonal.ds.HashTableValIterator";lk.__interfaces__=[Gg];lk.prototype={mObject:null,mKeys:null,mVals:null,mI:null,mS:null,free:function(){this.mVals=this.mKeys=this.mObject=null},reset:function(){this.mVals=this.mObject.mVals;this.mKeys=this.mObject.mKeys;this.mS=this.mObject.mH.capacity;for(this.mI=0;this.mI<this.mS&&null==this.mKeys[this.mI];)this.mI++;return this},hasNext:function(){return this.mI<this.mS},next:function(){for(var a= +this.mVals[this.mI];++this.mI<this.mS&&null==this.mKeys[this.mI];);return a},remove:function(){throw R.thrown("unsupported operation");},__class__:lk};var hj=function(){};k["polygonal.ds.Set"]=hj;hj.__name__="polygonal.ds.Set";hj.__isInterface__=!0;hj.__interfaces__=[gj];hj.prototype={has:null,set:null,unset:null,__class__:hj};var Hg=function(a,b){null==b&&(b=-1);this.mFree=this.mSize=0;this.reuseIterator=!1;this.growthRate=-3;this.key=ng.next();Ba._assert(0<a,"slotCount > 0",{fileName:"C:/Users/Adven/AppData/Local/Stencyl/libs/haxelib/Stencyl/ds/1d23c8a6f89f0f3a80158b94ca285e4e61cf982d/src/polygonal/ds/IntHashSet.hx", +lineNumber:138,className:"polygonal.ds.IntHashSet",methodName:"new"});Ba._assert(0<a&&0==(a&a-1),"slotCount is not a power of 2(MathTools.isPow2(slotCount))",{fileName:"C:/Users/Adven/AppData/Local/Stencyl/libs/haxelib/Stencyl/ds/1d23c8a6f89f0f3a80158b94ca285e4e61cf982d/src/polygonal/ds/IntHashSet.hx",lineNumber:139,className:"polygonal.ds.IntHashSet",methodName:"new"});-1==b&&(b=a);2>b&&(b=2);this.mMinCapacity=this.capacity=b;this.slotCount=a;this.mMask=a-1;this.mHash=Hb.init(Array(a),-1);this.mData= +Array(this.capacity<<1);this.mNext=Array(this.capacity);var c=1;a=this.mData;b=0;for(var d=this.capacity;b<d;)b++,a[c-1]=-2147483648,a[c]=-1,c+=2;a=this.mNext;b=0;for(d=this.capacity-1;b<d;)c=b++,a[c]=c+1;a[this.capacity-1]=-1};k["polygonal.ds.IntHashSet"]=Hg;Hg.__name__="polygonal.ds.IntHashSet";Hg.__interfaces__=[hj];Hg.prototype={key:null,capacity:null,growthRate:null,reuseIterator:null,get_loadFactor:function(){return this.mSize/this.slotCount},slotCount:null,mHash:null,mData:null,mNext:null, +mMask:null,mFree:null,mSize:null,mMinCapacity:null,mIterator:null,getCollisionCount:function(){for(var a=0,b,c=this.mData,d=this.mHash,e=0,f=this.slotCount;e<f;)if(b=e++,b=d[b],-1!=b)for(b=c[b+1];-1!=b;)b=c[b+1],++a;return a},hasFront:function(a){Ba._assert(-2147483648!=a,"value 0x80000000 is reserved(val != VAL_ABSENT)",{fileName:"C:/Users/Adven/AppData/Local/Stencyl/libs/haxelib/Stencyl/ds/1d23c8a6f89f0f3a80158b94ca285e4e61cf982d/src/polygonal/ds/IntHashSet.hx",lineNumber:203,className:"polygonal.ds.IntHashSet", +methodName:"hasFront"});var b=73856093*a&this.mMask,c=this.mHash[b];if(-1==c)return!1;var d=this.mData;if(d[c]==a)return!0;var e=!1,f=c,h=f;for(c=d[c+1];-1!=c;){if(d[c]==a){d[h+1]=d[c+1];d[c+1]=f;d[b]=c;e=!0;break}h=c;c=d[h+1]}return e},rehash:function(a){Ba._assert(0<a&&0==(a&a-1),"slotCount is not a power of 2(MathTools.isPow2(slotCount))",{fileName:"C:/Users/Adven/AppData/Local/Stencyl/libs/haxelib/Stencyl/ds/1d23c8a6f89f0f3a80158b94ca285e4e61cf982d/src/polygonal/ds/IntHashSet.hx",lineNumber:270, +className:"polygonal.ds.IntHashSet",methodName:"rehash"});if(this.slotCount==a)return this;for(var b=new Hg(a,this.capacity),c=this.mData,d=0,e=this.capacity;d<e;){var f=d++;f=c[f<<1];if(-2147483648!=f){Ba._assert(-2147483648!=f,"value 0x80000000 is reserved(val != VAL_ABSENT)",{fileName:"C:/Users/Adven/AppData/Local/Stencyl/libs/haxelib/Stencyl/ds/1d23c8a6f89f0f3a80158b94ca285e4e61cf982d/src/polygonal/ds/IntHashSet.hx",lineNumber:521,className:"polygonal.ds.IntHashSet",methodName:"set"});var h=73856093* +f&b.mMask,l=b.mData,k=b.mHash[h];if(-1==k)b.mSize==b.capacity&&(b.grow(),l=b.mData),k=b.mFree<<1,b.mFree=b.mNext[b.mFree],b.mHash[h]=k,l[k]=f,b.mSize++;else if(l[k]!=f){for(h=l[k+1];-1!=h;){if(l[h]==f){k=-1;break}k=h;h=l[h+1]}-1!=k&&(b.mSize==b.capacity&&(b.grow(),l=b.mData),h=b.mFree<<1,b.mFree=b.mNext[b.mFree],l[h]=f,l[k+1]=h,b.mSize++)}}}this.mHash=b.mHash;this.mData=b.mData;this.mNext=b.mNext;this.slotCount=a;this.mMask=b.mMask;this.mFree=b.mFree;return this},pack:function(){if(this.capacity== +this.mMinCapacity)return this;var a=this.mSize,b=this.mMinCapacity;this.capacity=a>b?a:b;var c=this.mData,d=0,e=this.mHash,f=Array(this.capacity<<1);a=0;for(b=this.slotCount;a<b;){var h=a++;var l=e[h];if(-1!=l)for(e[h]=d,f[d++]=c[l],f[d++]=-1,l=c[l+1];-1!=l;)f[d-1]=d,f[d++]=c[l],f[d++]=-1,l=c[l+1]}this.mData=f;c=this.mNext=Array(this.capacity);a=0;for(b=this.capacity-1;a<b;)h=a++,c[h]=h+1;this.mFree=c[this.capacity-1]=-1;return this},iter:function(a){Ba._assert(null!=a,"f != null",{fileName:"C:/Users/Adven/AppData/Local/Stencyl/libs/haxelib/Stencyl/ds/1d23c8a6f89f0f3a80158b94ca285e4e61cf982d/src/polygonal/ds/IntHashSet.hx", +lineNumber:384,className:"polygonal.ds.IntHashSet",methodName:"iter"});for(var b=this.mData,c,d,e=0,f=this.capacity;e<f;)c=e++<<1,d=b[c],-2147483648!=d&&a(b[c]);return this},toString:function(){var a=""+n.string(Va.format("[ IntHashSet size="+this.mSize+" capacity="+this.capacity+" load=%.2f",[this.get_loadFactor()]));if(0==this.mSize)return a+" ]";a+="\n";for(var b=this.iterator();b.hasNext();){var c=b.next();a+=n.string(" "+c+"\n")}return a+"]"},hashCode:function(a){return 73856093*a&this.mMask}, +grow:function(){var a=this.capacity;this.capacity=Fg.compute(this.growthRate,this.capacity);var b=Array(this.capacity);Hb.blit(this.mNext,0,b,0,a);this.mNext=b;b=Array(this.capacity<<1);Hb.blit(this.mData,0,b,0,a<<1);this.mData=b;b=this.mNext;for(var c=a-1,d=this.capacity-1;c<d;){var e=c++;b[e]=e+1}b[this.capacity-1]=-1;this.mFree=a;e=a<<1;b=this.mData;c=0;for(d=this.capacity-a;c<d;)c++,b[e]=-2147483648,b[e+1]=-1,e+=2},has:function(a){Ba._assert(-2147483648!=a,"value 0x80000000 is reserved(val != VAL_ABSENT)", +{fileName:"C:/Users/Adven/AppData/Local/Stencyl/libs/haxelib/Stencyl/ds/1d23c8a6f89f0f3a80158b94ca285e4e61cf982d/src/polygonal/ds/IntHashSet.hx",lineNumber:467,className:"polygonal.ds.IntHashSet",methodName:"has"});var b=this.mHash[73856093*a&this.mMask];if(-1==b)return!1;var c=this.mData;if(c[b]==a)return!0;var d=!1;for(b=c[b+1];-1!=b;){if(c[b]==a){d=!0;break}b=c[b+1]}return d},set:function(a){Ba._assert(-2147483648!=a,"value 0x80000000 is reserved(val != VAL_ABSENT)",{fileName:"C:/Users/Adven/AppData/Local/Stencyl/libs/haxelib/Stencyl/ds/1d23c8a6f89f0f3a80158b94ca285e4e61cf982d/src/polygonal/ds/IntHashSet.hx", +lineNumber:521,className:"polygonal.ds.IntHashSet",methodName:"set"});var b=73856093*a&this.mMask,c=this.mData,d=this.mHash[b];if(-1==d)return this.mSize==this.capacity&&(this.grow(),c=this.mData),d=this.mFree<<1,this.mFree=this.mNext[this.mFree],this.mHash[b]=d,c[d]=a,this.mSize++,!0;if(c[d]==a)return!1;for(b=c[d+1];-1!=b;){if(c[b]==a){d=-1;break}d=b;b=c[b+1]}if(-1==d)return!1;this.mSize==this.capacity&&(this.grow(),c=this.mData);b=this.mFree<<1;this.mFree=this.mNext[this.mFree];c[b]=a;c[d+1]=b; +this.mSize++;return!0},unset:function(a){var b=73856093*a&this.mMask,c=this.mHash[b];if(-1==c)return!1;var d=this.mData;if(a==d[c])return this.mHash[b]=-1==d[c+1]?-1:d[c+1],a=c>>1,this.mNext[a]=this.mFree,this.mFree=a,d[c]=-2147483648,d[c+1]=-1,this.mSize--,!0;b=!1;var e=c;for(c=d[c+1];-1!=c;){if(d[c]==a){b=!0;break}e=c;c=d[e+1]}return b?(d[e+1]=d[c+1],a=c>>1,this.mNext[a]=this.mFree,this.mFree=a,d[c]=-2147483648,d[c+1]=-1,--this.mSize,!0):!1},get_size:function(){return this.mSize},free:function(){this.mNext= +this.mData=this.mHash=null;null!=this.mIterator&&(this.mIterator.free(),this.mIterator=null)},contains:function(a){Ba._assert(-2147483648!=a,"value 0x80000000 is reserved(val != VAL_ABSENT)",{fileName:"C:/Users/Adven/AppData/Local/Stencyl/libs/haxelib/Stencyl/ds/1d23c8a6f89f0f3a80158b94ca285e4e61cf982d/src/polygonal/ds/IntHashSet.hx",lineNumber:467,className:"polygonal.ds.IntHashSet",methodName:"has"});var b=this.mHash[73856093*a&this.mMask];if(-1==b)return!1;var c=this.mData;if(c[b]==a)return!0; +var d=!1;for(b=c[b+1];-1!=b;){if(c[b]==a){d=!0;break}b=c[b+1]}return d},remove:function(a){var b=73856093*a&this.mMask,c=this.mHash[b];if(-1==c)return!1;var d=this.mData;if(a==d[c])return this.mHash[b]=-1==d[c+1]?-1:d[c+1],a=c>>1,this.mNext[a]=this.mFree,this.mFree=a,d[c]=-2147483648,d[c+1]=-1,this.mSize--,!0;b=!1;var e=c;for(c=d[c+1];-1!=c;){if(d[c]==a){b=!0;break}e=c;c=d[e+1]}return b?(d[e+1]=d[c+1],a=c>>1,this.mNext[a]=this.mFree,this.mFree=a,d[c]=-2147483648,d[c+1]=-1,--this.mSize,!0):!1},clear:function(a){var b= +this.mHash;a=0;for(var c=this.slotCount;a<c;){var d=a++;b[d]=-1}d=1;b=this.mData;a=0;for(c=this.capacity;a<c;)a++,b[d-1]=-2147483648,b[d]=-1,d+=2;b=this.mNext;a=0;for(c=this.capacity-1;a<c;)d=a++,b[d]=d+1;b[this.capacity-1]=-1;this.mSize=this.mFree=0},iterator:function(){return this.reuseIterator?(null==this.mIterator?this.mIterator=new mk(this):this.mIterator.reset(),this.mIterator):new mk(this)},isEmpty:function(){return 0==this.mSize},toArray:function(){if(0==this.mSize)return[];var a=this.mSize; +Ba._assert(0<=a,"len >= 0",{fileName:"C:/Users/Adven/AppData/Local/Stencyl/libs/haxelib/Stencyl/ds/1d23c8a6f89f0f3a80158b94ca285e4e61cf982d/src/polygonal/ds/tools/ArrayTools.hx",lineNumber:37,className:"polygonal.ds.tools.ArrayTools",methodName:"alloc"});a=Array(a);for(var b=0,c,d=this.mData,e=0,f=this.capacity;e<f;)c=e++,c=d[c<<1],-2147483648!=c&&(a[b++]=c);return a},clone:function(a,b){a=new Hg(this.slotCount,this.mSize);Hb.blit(this.mHash,0,a.mHash,0,this.slotCount);Hb.blit(this.mData,0,a.mData, +0,this.mSize<<1);Hb.blit(this.mNext,0,a.mNext,0,this.mSize);a.mMask=this.mMask;a.slotCount=this.slotCount;a.capacity=this.capacity;a.mFree=this.mFree;a.mSize=this.mSize;return a},__class__:Hg,__properties__:{get_size:"get_size",get_loadFactor:"get_loadFactor"}};var mk=function(a){this.mObject=a;this.mData=a.mData;this.mI=0;this.mS=a.capacity;this.scan()};k["polygonal.ds.IntHashSetIterator"]=mk;mk.__name__="polygonal.ds.IntHashSetIterator";mk.__interfaces__=[Gg];mk.prototype={mObject:null,mI:null, +mS:null,mData:null,free:function(){this.mData=this.mObject=null},reset:function(){this.mData=this.mObject.mData;this.mI=0;this.mS=this.mObject.capacity;this.scan();return this},hasNext:function(){return this.mI<this.mS},next:function(){var a=this.mData[this.mI++<<1];this.scan();return a},remove:function(){throw R.thrown("unsupported operation");},scan:function(){for(;this.mI<this.mS&&-2147483648==this.mData[this.mI<<1];)this.mI++},__class__:mk};var we=function(a,b){null==b&&(b=-1);this.mTmpKeyBuffer= +[];this.mIterator=null;this.mFree=this.mSize=0;this.reuseIterator=!1;this.key=ng.next();Ba._assert(0<a,"slotCount > 0",{fileName:"C:/Users/Adven/AppData/Local/Stencyl/libs/haxelib/Stencyl/ds/1d23c8a6f89f0f3a80158b94ca285e4e61cf982d/src/polygonal/ds/IntHashTable.hx",lineNumber:158,className:"polygonal.ds.IntHashTable",methodName:"new"});-1==b&&(b=a);2>b&&(b=2);this.mMinCapacity=this.capacity=b;this.mH=new og(a,this.capacity);this.mVals=Array(this.capacity);this.mNext=Array(this.capacity);this.mKeys= +Hb.init(Array(this.capacity),-2147483648,0,this.capacity);a=this.mNext;b=0;for(var c=this.capacity-1;b<c;){var d=b++;a[d]=d+1}a[this.capacity-1]=-1};k["polygonal.ds.IntHashTable"]=we;we.__name__="polygonal.ds.IntHashTable";we.__interfaces__=[ji];we.prototype={key:null,capacity:null,get_growthRate:function(){return this.mH.growthRate},set_growthRate:function(a){return this.mH.growthRate=a},reuseIterator:null,get_loadFactor:function(){return this.mH.get_loadFactor()},get_slotCount:function(){return this.mH.slotCount}, +mH:null,mVals:null,mNext:null,mKeys:null,mFree:null,mSize:null,mMinCapacity:null,mShrinkSize:null,mIterator:null,mTmpKeyBuffer:null,getCollisionCount:function(){return this.mH.getCollisionCount()},getFront:function(a){var b=this.mH,c=73856093*a&b.mMask,d=b.mHash[c];if(-1==d)a=-2147483648;else{var e=b.mData;if(e[d]==a)a=e[d+1];else{var f=-2147483648,h=d,l=h;for(d=e[d+2];-1!=d;){if(e[d]==a){f=e[d+1];e[l+2]=e[d+2];e[d+2]=h;b.mHash[c]=d;break}l=d;d=e[l+2]}a=f}}return-2147483648==a?null:this.mVals[a]}, +setIfAbsent:function(a,b){Ba._assert(-2147483648!=a,"key 0x80000000 is reserved(key != IntIntHashTable.KEY_ABSENT)",{fileName:"C:/Users/Adven/AppData/Local/Stencyl/libs/haxelib/Stencyl/ds/1d23c8a6f89f0f3a80158b94ca285e4e61cf982d/src/polygonal/ds/IntHashTable.hx",lineNumber:212,className:"polygonal.ds.IntHashTable",methodName:"setIfAbsent"});this.mSize==this.capacity&&this.grow();var c=this.mFree,d=this.mH;Ba._assert(-2147483648!=c,"val 0x80000000 is reserved(val != KEY_ABSENT)",{fileName:"C:/Users/Adven/AppData/Local/Stencyl/libs/haxelib/Stencyl/ds/1d23c8a6f89f0f3a80158b94ca285e4e61cf982d/src/polygonal/ds/IntIntHashTable.hx", +lineNumber:291,className:"polygonal.ds.IntIntHashTable",methodName:"setIfAbsent"});var e=73856093*a&d.mMask,f=d.mData,h=d.mHash[e];if(-1==h){d.mSize==d.capacity&&(d.grow(),f=d.mData);var l=3*d.mFree;d.mFree=d.mNext[d.mFree];d.mHash[e]=l;f[l]=a;f[l+1]=c;d.mSize++;d=!0}else if(f[h]==a)d=!1;else{for(e=f[h+2];-1!=e;){if(f[e]==a){h=-1;break}h=e;e=f[h+2]}-1==h?d=!1:(d.mSize==d.capacity&&(d.grow(),f=d.mData),l=3*d.mFree,d.mFree=d.mNext[d.mFree],f[h+2]=l,f[l]=a,f[l+1]=c,d.mSize++,d=!0)}return d?(this.mVals[c]= +b,this.mKeys[c]=a,this.mFree=this.mNext[c],this.mSize++,!0):!1},rehash:function(a){this.mH.rehash(a);return this},remap:function(a,b){var c=this.mH,d=c.mHash[73856093*a&c.mMask];if(-1==d)a=-2147483648;else if(c=c.mData,c[d]==a)a=c[d+1];else{var e=-2147483648;for(d=c[d+2];-1!=d;){if(c[d]==a){e=c[d+1];break}d=c[d+2]}a=e}return-2147483648!=a?(this.mVals[a]=b,!0):!1},toKeyArray:function(){return this.mH.toKeyArray()},toString:function(){var a=this;var b=""+n.string(Va.format("[ IntHashTable size="+this.mSize+ +" capacity="+this.capacity+" load=%.2f",[this.get_loadFactor()]));if(0==this.mSize)return b+" ]";b+="\n";for(var c=0,d=this.keys();d.hasNext();){var e=d.next();c=Math.max(c,e)}for(e=1;0!=c;)++e,c=c/10|0;c=[];var f=" %- "+e+"d -> %s\n",h=[];for(d=this.keys();d.hasNext();)e=d.next(),h.push(e);h.sort(function(a,b){return a-b});e=1;var l=h.length;d=0;for(var k=1;e<l;){if(h[d]==h[e])++k;else{d=h[d];c[0]=d;if(1<k)k=[],a.getAll(d,k),c[1]=k.join(",");else{k=a.mVals;var m=a.mH,r=m.mHash[73856093*d&m.mMask]; +if(-1==r)d=-2147483648;else if(m=m.mData,m[r]==d)d=m[r+1];else{var p=-2147483648;for(r=m[r+2];-1!=r;){if(m[r]==d){p=m[r+1];break}r=m[r+2]}d=p}c[1]=n.string(k[d])}b+=n.string(Va.format(f,c));d=e;k=1}++e}d=h[d];c[0]=d;if(1<k)k=[],a.getAll(d,k),c[1]=k.join(",");else{k=a.mVals;m=a.mH;e=m.mHash[73856093*d&m.mMask];if(-1==e)a=-2147483648;else if(m=m.mData,m[e]==d)a=m[e+1];else{p=-2147483648;for(e=m[e+2];-1!=e;){if(m[e]==d){p=m[e+1];break}e=m[e+2]}a=p}c[1]=n.string(k[a])}b+=n.string(Va.format(f,c));return b+ +"]"},has:function(a){for(var b=this.mKeys,c=this.mVals,d=0,e=this.capacity;d<e;){var f=d++;if(-2147483648!=b[f]&&c[f]==a)return!0}return!1},hasKey:function(a){var b=this.mH,c=b.mHash[73856093*a&b.mMask];if(-1==c)return!1;b=b.mData;if(b[c]==a)return!0;var d=!1;for(c=b[c+2];-1!=c;){if(b[c]==a){d=!0;break}c=b[c+2]}return d},count:function(a){return this.mH.count(a)},get:function(a){var b=this.mH,c=b.mHash[73856093*a&b.mMask];if(-1==c)a=-2147483648;else if(b=b.mData,b[c]==a)a=b[c+1];else{var d=-2147483648; +for(c=b[c+2];-1!=c;){if(b[c]==a){d=b[c+1];break}c=b[c+2]}a=d}return-2147483648==a?null:this.mVals[a]},getAll:function(a,b){var c=this.mH,d=c.mHash[73856093*a&c.mMask];if(-1==d)c=-2147483648;else{var e=c.mData;if(e[d]==a)c=e[d+1];else for(c=-2147483648,d=e[d+2];-1!=d;){if(e[d]==a){c=e[d+1];break}d=e[d+2]}}if(-2147483648==c)return 0;d=this.mTmpKeyBuffer;a=this.mH.getAll(a,d);c=this.mVals;for(e=0;e<a;){var f=e++;b[f]=c[d[f]]}return a},set:function(a,b){Ba._assert(-2147483648!=a,"key 0x80000000 is reserved(key != IntIntHashTable.KEY_ABSENT)", +{fileName:"C:/Users/Adven/AppData/Local/Stencyl/libs/haxelib/Stencyl/ds/1d23c8a6f89f0f3a80158b94ca285e4e61cf982d/src/polygonal/ds/IntHashTable.hx",lineNumber:397,className:"polygonal.ds.IntHashTable",methodName:"set"});this.mSize==this.capacity&&this.grow();var c=this.mFree,d=this.mH;Ba._assert(-2147483648!=c,"val 0x80000000 is reserved(val != KEY_ABSENT)",{fileName:"C:/Users/Adven/AppData/Local/Stencyl/libs/haxelib/Stencyl/ds/1d23c8a6f89f0f3a80158b94ca285e4e61cf982d/src/polygonal/ds/IntIntHashTable.hx", +lineNumber:1046,className:"polygonal.ds.IntIntHashTable",methodName:"set"});d.mSize==d.capacity&&d.grow();var e=d.mData,f=d.mHash,h=3*d.mFree;d.mFree=d.mNext[d.mFree];e[h]=a;e[h+1]=c;var l=73856093*a&d.mMask,k=f[l];if(-1==k)f[l]=h,d.mSize++,d=!0;else{f=e[k]!=a;for(l=e[k+2];-1!=l;)e[l]==a&&(f=!1),k=l,l=e[l+2];e[k+2]=h;d.mSize++;d=f}this.mVals[c]=b;this.mKeys[c]=a;this.mFree=this.mNext[c];this.mSize++;return d},unset:function(a){var b=this.mH,c=b.mHash[73856093*a&b.mMask];if(-1==c)c=-2147483648;else{var d= +b.mData;if(d[c]==a)c=d[c+1];else{b=-2147483648;for(c=d[c+2];-1!=c;){if(d[c]==a){b=d[c+1];break}c=d[c+2]}c=b}}if(-2147483648==c)return!1;this.mVals[c]=null;this.mKeys[c]=-2147483648;this.mNext[c]=this.mFree;this.mFree=c;b=this.mH;var e=73856093*a&b.mMask,f=b.mHash;c=f[e];if(-1!=c)if(d=b.mData,a==d[c])f[e]=-1==d[c+2]?-1:d[c+2],a=c/3|0,b.mNext[a]=b.mFree,b.mFree=a,d[c+1]=-2147483648,d[c+2]=-1,b.mSize--;else{e=!1;f=c;for(c=d[c+2];-1!=c;){if(d[c]==a){e=!0;break}f=c;c=d[f+2]}e&&(d[f+2]=d[c+2],a=c/3|0,b.mNext[a]= +b.mFree,b.mFree=a,d[c+1]=-2147483648,d[c+2]=-1,b.mSize--)}this.mSize--;return!0},toValSet:function(){for(var a=new ki,b=this.mKeys,c=this.mVals,d=0,e=this.capacity;d<e;){var f=d++;-2147483648!=b[f]&&a.set(c[f])}return a},toKeySet:function(){return this.mH.toKeySet()},keys:function(){return this.mH.keys()},pack:function(){this.mH.pack();if(this.mH.capacity==this.capacity)return this;this.capacity=this.mH.capacity;for(var a=this.mNext=Array(this.capacity),b=0,c=this.capacity-1;b<c;){var d=b++;a[d]= +d+1}a[this.capacity-1]=-1;this.mFree=0;b=this.mKeys;a=Array(this.capacity);c=this.mVals;var e=Array(this.capacity),f=this.mFree;for(d=this.mH.iterator();d.hasNext();){var h=d.next();a[f]=b[h];e[f]=c[h];f=this.mNext[f]}this.mFree=f;this.mKeys=a;this.mVals=e;b=0;for(c=this.mSize;b<c;)if(d=b++,f=this.mH,e=a[d],h=f.mHash[73856093*e&f.mMask],-1!=h)if(f=f.mData,f[h]==e)f[h+1]=d;else for(h=f[h+2];-1!=h;){if(f[h]==e){f[h+1]=d;break}h=f[h+2]}return this},iter:function(a){Ba._assert(null!=a,"f != null",{fileName:"C:/Users/Adven/AppData/Local/Stencyl/libs/haxelib/Stencyl/ds/1d23c8a6f89f0f3a80158b94ca285e4e61cf982d/src/polygonal/ds/IntHashTable.hx", +lineNumber:518,className:"polygonal.ds.IntHashTable",methodName:"iter"});var b=this.mVals,c=this.mH;Ba._assert(!0,"f != null",{fileName:"C:/Users/Adven/AppData/Local/Stencyl/libs/haxelib/Stencyl/ds/1d23c8a6f89f0f3a80158b94ca285e4e61cf982d/src/polygonal/ds/IntIntHashTable.hx",lineNumber:1360,className:"polygonal.ds.IntIntHashTable",methodName:"iter"});for(var d=c.mData,e,f=0,h=c.capacity;f<h;)c=3*f++,e=d[c+1],-2147483648!=e&&a(d[c],b[e]);return this},grow:function(){var a=this.capacity;this.capacity= +Fg.compute(this.get_growthRate(),this.capacity);var b=Array(this.capacity);Hb.blit(this.mNext,0,b,0,a);this.mNext=b;b=Array(this.capacity);Hb.blit(this.mKeys,0,b,0,a);b=this.mKeys=b;for(var c=a,d=this.capacity;c<d;){var e=c++;b[e]=-2147483648}b=this.mNext;c=a-1;for(d=this.capacity-1;c<d;)e=c++,b[e]=e+1;b[this.capacity-1]=-1;this.mFree=a;b=Array(this.capacity);Hb.blit(this.mVals,0,b,0,a);this.mVals=b},get_size:function(){return this.mSize},free:function(){Hb.nullify(this.mVals);this.mNext=this.mKeys= +this.mVals=null;this.mH.free();this.mH=null;null!=this.mIterator&&(this.mIterator.free(),this.mIterator=null);this.mTmpKeyBuffer=null},contains:function(a){return this.has(a)},remove:function(a){for(var b=this.mTmpKeyBuffer,c=0,d=this.mKeys,e=this.mVals,f,h=0,l=this.capacity;h<l;){var k=h++;f=d[k];-2147483648!=f&&e[k]==a&&(b[c++]=f)}h=0;for(l=c;h<l;)k=h++,this.unset(b[k]);return 0<c},clear:function(a){null==a&&(a=!1);this.mH.clear(a);Hb.init(this.mKeys,-2147483648,0,this.capacity);a=this.mNext;for(var b= +0,c=this.capacity-1;b<c;){var d=b++;a[d]=d+1}a[this.capacity-1]=-1;this.mSize=this.mFree=0},iterator:function(){return this.reuseIterator?(null==this.mIterator?this.mIterator=new nk(this):this.mIterator.reset(),this.mIterator):new nk(this)},isEmpty:function(){return 0==this.mSize},toArray:function(){if(0==this.mSize)return[];var a=this.mSize;Ba._assert(0<=a,"len >= 0",{fileName:"C:/Users/Adven/AppData/Local/Stencyl/libs/haxelib/Stencyl/ds/1d23c8a6f89f0f3a80158b94ca285e4e61cf982d/src/polygonal/ds/tools/ArrayTools.hx", +lineNumber:37,className:"polygonal.ds.tools.ArrayTools",methodName:"alloc"});a=Array(a);for(var b=0,c=this.mKeys,d=this.mVals,e=0,f=this.capacity;e<f;){var h=e++;-2147483648!=c[h]&&(a[b++]=d[h])}return a},clone:function(a,b){null==a&&(a=!0);var c=new we(this.mH.slotCount,this.mSize);c.mH=this.mH.clone(!1);c.mSize=this.mSize;c.mFree=this.mFree;var d=this.mVals,e=c.mVals;if(a)Hb.blit(d,0,e,0,this.mSize);else if(a=this.mKeys,null!=b)for(var f=0,h=this.mSize;f<h;){var l=f++;-2147483648!=a[l]&&(e[l]=b(d[l]))}else for(f= +0,h=this.mSize;f<h;)l=f++,-2147483648!=a[l]&&(Ba._assert(O.__implements(d[l],mg),"element is not of type Cloneable(Std.isOfType(src.get(i), Cloneable))",{fileName:"C:/Users/Adven/AppData/Local/Stencyl/libs/haxelib/Stencyl/ds/1d23c8a6f89f0f3a80158b94ca285e4e61cf982d/src/polygonal/ds/IntHashTable.hx",lineNumber:727,className:"polygonal.ds.IntHashTable",methodName:"clone"}),e[l]=O.__cast(d[l],mg).clone());Hb.blit(this.mKeys,0,c.mKeys,0,this.mSize);Hb.blit(this.mNext,0,c.mNext,0,this.mSize);return c}, +__class__:we,__properties__:{get_size:"get_size",get_slotCount:"get_slotCount",get_loadFactor:"get_loadFactor",set_growthRate:"set_growthRate",get_growthRate:"get_growthRate"}};var nk=function(a){this.mObject=a;this.reset()};k["polygonal.ds.IntHashTableIterator"]=nk;nk.__name__="polygonal.ds.IntHashTableIterator";nk.__interfaces__=[Gg];nk.prototype={mObject:null,mVals:null,mKeys:null,mI:null,mS:null,free:function(){this.mKeys=this.mVals=this.mObject=null},reset:function(){this.mVals=this.mObject.mVals; +this.mKeys=this.mObject.mKeys;this.mS=this.mObject.mH.capacity;for(this.mI=0;this.mI<this.mS&&-2147483648==this.mKeys[this.mI];)this.mI++;return this},hasNext:function(){return this.mI<this.mS},next:function(){for(var a=this.mVals[this.mI];++this.mI<this.mS&&-2147483648==this.mKeys[this.mI];);return a},remove:function(){throw R.thrown("unsupported operation");},__class__:nk};var og=function(a,b){null==b&&(b=-1);this.mTmpBufferSize=16;this.mFree=this.mSize=0;this.reuseIterator=!1;this.growthRate=-3; +this.key=ng.next();Ba._assert(0<a,"slotCount > 0",{fileName:"C:/Users/Adven/AppData/Local/Stencyl/libs/haxelib/Stencyl/ds/1d23c8a6f89f0f3a80158b94ca285e4e61cf982d/src/polygonal/ds/IntIntHashTable.hx",lineNumber:156,className:"polygonal.ds.IntIntHashTable",methodName:"new"});Ba._assert(0<a&&0==(a&a-1),"slotCount is not a power of 2(MathTools.isPow2(slotCount))",{fileName:"C:/Users/Adven/AppData/Local/Stencyl/libs/haxelib/Stencyl/ds/1d23c8a6f89f0f3a80158b94ca285e4e61cf982d/src/polygonal/ds/IntIntHashTable.hx", +lineNumber:157,className:"polygonal.ds.IntIntHashTable",methodName:"new"});-1==b?b=a:(Ba._assert(2<=b,"minimum capacity is 2(initialCapacity >= 2)",{fileName:"C:/Users/Adven/AppData/Local/Stencyl/libs/haxelib/Stencyl/ds/1d23c8a6f89f0f3a80158b94ca285e4e61cf982d/src/polygonal/ds/IntIntHashTable.hx",lineNumber:163,className:"polygonal.ds.IntIntHashTable",methodName:"new"}),Ba._assert(0<a&&0==(a&a-1),"capacity is not a power of 2(MathTools.isPow2(slotCount))",{fileName:"C:/Users/Adven/AppData/Local/Stencyl/libs/haxelib/Stencyl/ds/1d23c8a6f89f0f3a80158b94ca285e4e61cf982d/src/polygonal/ds/IntIntHashTable.hx", +lineNumber:164,className:"polygonal.ds.IntIntHashTable",methodName:"new"}));this.mMinCapacity=this.capacity=b;this.slotCount=a;this.mMask=a-1;this.mHash=Hb.init(Array(a),-1);this.mData=Array(3*this.capacity);this.mNext=Array(this.capacity);var c=2;a=this.mData;b=0;for(var d=this.capacity;b<d;)b++,a[c-1]=-2147483648,a[c]=-1,c+=3;a=this.mNext;b=0;for(d=this.capacity-1;b<d;)c=b++,a[c]=c+1;a[this.capacity-1]=-1;this.mTmpBuffer=Array(this.mTmpBufferSize)};k["polygonal.ds.IntIntHashTable"]=og;og.__name__= +"polygonal.ds.IntIntHashTable";og.__interfaces__=[ji];og.prototype={key:null,capacity:null,growthRate:null,reuseIterator:null,get_loadFactor:function(){return this.mSize/this.slotCount},slotCount:null,mHash:null,mData:null,mNext:null,mMask:null,mFree:null,mSize:null,mMinCapacity:null,mIterator:null,mTmpBuffer:null,mTmpBufferSize:null,getCollisionCount:function(){for(var a=0,b,c=this.mData,d=this.mHash,e=0,f=this.slotCount;e<f;)if(b=e++,b=d[b],-1!=b)for(b=c[b+2];-1!=b;)b=c[b+2],++a;return a},getFront:function(a){var b= +73856093*a&this.mMask,c=this.mHash[b];if(-1==c)return-2147483648;var d=this.mData;if(d[c]==a)return d[c+1];var e=-2147483648,f=c,h=f;for(c=d[c+2];-1!=c;){if(d[c]==a){e=d[c+1];d[h+2]=d[c+2];d[c+2]=f;this.mHash[b]=c;break}h=c;c=d[h+2]}return e},setIfAbsent:function(a,b){Ba._assert(-2147483648!=b,"val 0x80000000 is reserved(val != KEY_ABSENT)",{fileName:"C:/Users/Adven/AppData/Local/Stencyl/libs/haxelib/Stencyl/ds/1d23c8a6f89f0f3a80158b94ca285e4e61cf982d/src/polygonal/ds/IntIntHashTable.hx",lineNumber:291, +className:"polygonal.ds.IntIntHashTable",methodName:"setIfAbsent"});var c=73856093*a&this.mMask,d=this.mData,e=this.mHash[c];if(-1==e){this.mSize==this.capacity&&(this.grow(),d=this.mData);var f=3*this.mFree;this.mFree=this.mNext[this.mFree];this.mHash[c]=f;d[f]=a;d[f+1]=b;this.mSize++;return!0}if(d[e]==a)return!1;for(c=d[e+2];-1!=c;){if(d[c]==a){e=-1;break}e=c;c=d[e+2]}if(-1==e)return!1;this.mSize==this.capacity&&(this.grow(),d=this.mData);f=3*this.mFree;this.mFree=this.mNext[this.mFree];d[e+2]= +f;d[f]=a;d[f+1]=b;this.mSize++;return!0},rehash:function(a){Ba._assert(0<a&&0==(a&a-1),"slotCount is not a power of 2(MathTools.isPow2(slotCount))",{fileName:"C:/Users/Adven/AppData/Local/Stencyl/libs/haxelib/Stencyl/ds/1d23c8a6f89f0f3a80158b94ca285e4e61cf982d/src/polygonal/ds/IntIntHashTable.hx",lineNumber:403,className:"polygonal.ds.IntIntHashTable",methodName:"rehash"});if(this.slotCount==a)return this;for(var b=new og(a,this.capacity),c=this.mData,d=0,e=this.capacity;d<e;){var f=d++,h=c[3*f+1]; +if(-2147483648!=h){var l=c[3*f];Ba._assert(-2147483648!=h,"val 0x80000000 is reserved(val != KEY_ABSENT)",{fileName:"C:/Users/Adven/AppData/Local/Stencyl/libs/haxelib/Stencyl/ds/1d23c8a6f89f0f3a80158b94ca285e4e61cf982d/src/polygonal/ds/IntIntHashTable.hx",lineNumber:1046,className:"polygonal.ds.IntIntHashTable",methodName:"set"});b.mSize==b.capacity&&b.grow();f=b.mData;var k=b.mHash,m=3*b.mFree;b.mFree=b.mNext[b.mFree];f[m]=l;f[m+1]=h;l=73856093*l&b.mMask;h=k[l];if(-1==h)k[l]=m;else{for(k=f[h+2];-1!= +k;)h=k,k=f[k+2];f[h+2]=m}b.mSize++}}this.mHash=b.mHash;this.mData=b.mData;this.mNext=b.mNext;this.slotCount=a;this.mMask=b.mMask;this.mFree=b.mFree;return this},remap:function(a,b){var c=this.mHash[73856093*a&this.mMask];if(-1==c)return!1;var d=this.mData;if(d[c]==a)return d[c+1]=b,!0;for(c=d[c+2];-1!=c;){if(d[c]==a){d[c+1]=b;break}c=d[c+2]}return-1!=c},extract:function(a){var b=73856093*a&this.mMask,c=this.mHash,d=c[b];if(-1==d)return-2147483648;var e=this.mData;if(a==e[d]){var f=e[d+1];c[b]=-1== +e[d+2]?-1:e[d+2];a=d/3|0;this.mNext[a]=this.mFree;this.mFree=a;e[d+1]=-2147483648;e[d+2]=-1;this.mSize--;return f}b=d;d=e[d+2];for(f=-2147483648;-1!=d;){if(e[d]==a){f=e[d+1];break}b=d;d=e[b+2]}return-2147483648!=f?(e[b+2]=e[d+2],a=d/3|0,this.mNext[a]=this.mFree,this.mFree=a,e[d+1]=-2147483648,e[d+2]=-1,this.mSize--,f):-2147483648},toKeyArray:function(){if(0==this.mSize)return[];var a=this.mSize;Ba._assert(0<=a,"len >= 0",{fileName:"C:/Users/Adven/AppData/Local/Stencyl/libs/haxelib/Stencyl/ds/1d23c8a6f89f0f3a80158b94ca285e4e61cf982d/src/polygonal/ds/tools/ArrayTools.hx", +lineNumber:37,className:"polygonal.ds.tools.ArrayTools",methodName:"alloc"});a=Array(a);for(var b=0,c=this.mData,d=0,e=this.capacity;d<e;){var f=d++;-2147483648!=c[3*f+1]&&(a[b++]=c[3*f])}return a},toString:function(){var a=""+n.string(Va.format("[ IntIntHashTable size="+this.mSize+" capacity="+this.capacity+" load=%.2f",[this.get_loadFactor()]));if(0==this.mSize)return a+" ]";a+="\n";for(var b=0,c=this.keys();c.hasNext();){var d=c.next();b=Math.max(b,d)}for(d=1;0!=b;)++d,b=b/10|0;b=[];var e=" %- "+ +d+"d -> %s\n",f=[];for(c=this.keys();c.hasNext();)d=c.next(),f.push(d);f.sort(function(a,b){return a-b});d=1;var h=f.length;c=0;for(var l=1;d<h;){if(f[c]==f[d])++l;else{c=f[c];b[0]=c;if(1<l)l=[],this.getAll(c,l),b[1]=l.join(",");else{l=this.mHash[73856093*c&this.mMask];if(-1==l)c=-2147483648;else{var k=this.mData;if(k[l]==c)c=k[l+1];else{var m=-2147483648;for(l=k[l+2];-1!=l;){if(k[l]==c){m=k[l+1];break}l=k[l+2]}c=m}}b[1]=c}a+=n.string(Va.format(e,b));c=d;l=1}++d}c=f[c];b[0]=c;if(1<l)l=[],this.getAll(c, +l),b[1]=l.join(",");else{d=this.mHash[73856093*c&this.mMask];if(-1==d)l=-2147483648;else if(k=this.mData,k[d]==c)l=k[d+1];else{m=-2147483648;for(d=k[d+2];-1!=d;){if(k[d]==c){m=k[d+1];break}d=k[d+2]}l=m}b[1]=l}a+=n.string(Va.format(e,b));return a+"]"},has:function(a){Ba._assert(-2147483648!=a,"val 0x80000000 is reserved(val != VAL_ABSENT)",{fileName:"C:/Users/Adven/AppData/Local/Stencyl/libs/haxelib/Stencyl/ds/1d23c8a6f89f0f3a80158b94ca285e4e61cf982d/src/polygonal/ds/IntIntHashTable.hx",lineNumber:697, +className:"polygonal.ds.IntIntHashTable",methodName:"has"});for(var b=!1,c=this.mData,d=0,e=this.capacity;d<e;){var f=d++;if(c[3*f+1]==a){b=!0;break}}return b},hasKey:function(a){var b=this.mHash[73856093*a&this.mMask];if(-1==b)return!1;var c=this.mData;if(c[b]==a)return!0;var d=!1;for(b=c[b+2];-1!=b;){if(c[b]==a){d=!0;break}b=c[b+2]}return d},count:function(a){var b=0,c=this.mHash[73856093*a&this.mMask];if(-1!=c)for(var d=this.mData;-1!=c;)d[c]==a&&++b,c=d[c+2];return b},get:function(a){var b=this.mHash[73856093* +a&this.mMask];if(-1==b)return-2147483648;var c=this.mData;if(c[b]==a)return c[b+1];var d=-2147483648;for(b=c[b+2];-1!=b;){if(c[b]==a){d=c[b+1];break}b=c[b+2]}return d},getAll:function(a,b){var c=this.mHash[73856093*a&this.mMask];if(-1==c)return 0;var d=0,e=this.mData;e[c]==a&&(b[d++]=e[c+1]);for(c=e[c+2];-1!=c;)e[c]==a&&(b[d++]=e[c+1]),c=e[c+2];return d},hasPair:function(a,b){Ba._assert(-2147483648!=b,"val 0x80000000 is reserved(val != KEY_ABSENT)",{fileName:"C:/Users/Adven/AppData/Local/Stencyl/libs/haxelib/Stencyl/ds/1d23c8a6f89f0f3a80158b94ca285e4e61cf982d/src/polygonal/ds/IntIntHashTable.hx", +lineNumber:891,className:"polygonal.ds.IntIntHashTable",methodName:"hasPair"});var c=this.mHash[73856093*a&this.mMask];if(-1!=c){var d=this.mData;if(d[c]==a&&d[c+1]==b)return!0;for(c=d[c+2];-1!=c;){if(d[c]==a&&d[c+1]==b)return!0;c=d[c+2]}}return!1},unsetPair:function(a,b){Ba._assert(-2147483648!=b,"val 0x80000000 is reserved(val != KEY_ABSENT)",{fileName:"C:/Users/Adven/AppData/Local/Stencyl/libs/haxelib/Stencyl/ds/1d23c8a6f89f0f3a80158b94ca285e4e61cf982d/src/polygonal/ds/IntIntHashTable.hx",lineNumber:939, +className:"polygonal.ds.IntIntHashTable",methodName:"unsetPair"});var c=73856093*a&this.mMask,d=this.mHash,e=d[c];if(-1==e)return!1;var f=this.mData;if(a==f[e]&&b==f[e+1])return d[c]=-1==f[e+2]?-1:f[e+2],a=e/3|0,this.mNext[a]=this.mFree,this.mFree=a,f[e+1]=-2147483648,f[e+2]=-1,this.mSize--,!0;c=!1;d=e;for(e=f[e+2];-1!=e;){if(f[e]==a&&f[e+1]==b){c=!0;break}d=e;e=f[d+2]}return c?(f[d+2]=f[e+2],a=e/3|0,this.mNext[a]=this.mFree,this.mFree=a,f[e+1]=-2147483648,f[e+2]=-1,--this.mSize,!0):!1},set:function(a, +b){Ba._assert(-2147483648!=b,"val 0x80000000 is reserved(val != KEY_ABSENT)",{fileName:"C:/Users/Adven/AppData/Local/Stencyl/libs/haxelib/Stencyl/ds/1d23c8a6f89f0f3a80158b94ca285e4e61cf982d/src/polygonal/ds/IntIntHashTable.hx",lineNumber:1046,className:"polygonal.ds.IntIntHashTable",methodName:"set"});this.mSize==this.capacity&&this.grow();var c=this.mData,d=this.mHash,e=3*this.mFree;this.mFree=this.mNext[this.mFree];c[e]=a;c[e+1]=b;var f=73856093*a&this.mMask;b=d[f];if(-1==b)return d[f]=e,this.mSize++, +!0;d=c[b]!=a;for(f=c[b+2];-1!=f;)c[f]==a&&(d=!1),b=f,f=c[f+2];c[b+2]=e;this.mSize++;return d},unset:function(a){var b=73856093*a&this.mMask,c=this.mHash,d=c[b];if(-1==d)return!1;var e=this.mData;if(a==e[d])return c[b]=-1==e[d+2]?-1:e[d+2],a=d/3|0,this.mNext[a]=this.mFree,this.mFree=a,e[d+1]=-2147483648,e[d+2]=-1,this.mSize--,!0;b=!1;c=d;for(d=e[d+2];-1!=d;){if(e[d]==a){b=!0;break}c=d;d=e[c+2]}return b?(e[c+2]=e[d+2],a=d/3|0,this.mNext[a]=this.mFree,this.mFree=a,e[d+1]=-2147483648,e[d+2]=-1,this.mSize--, +!0):!1},toValSet:function(){for(var a=new Hg(this.capacity),b=this.mData,c=0,d=this.capacity;c<d;){var e=c++;e=b[3*e+1];if(-2147483648!=e){Ba._assert(-2147483648!=e,"value 0x80000000 is reserved(val != VAL_ABSENT)",{fileName:"C:/Users/Adven/AppData/Local/Stencyl/libs/haxelib/Stencyl/ds/1d23c8a6f89f0f3a80158b94ca285e4e61cf982d/src/polygonal/ds/IntHashSet.hx",lineNumber:521,className:"polygonal.ds.IntHashSet",methodName:"set"});var f=73856093*e&a.mMask,h=a.mData,l=a.mHash[f];if(-1==l)a.mSize==a.capacity&& +(a.grow(),h=a.mData),l=a.mFree<<1,a.mFree=a.mNext[a.mFree],a.mHash[f]=l,h[l]=e,a.mSize++;else if(h[l]!=e){for(f=h[l+1];-1!=f;){if(h[f]==e){l=-1;break}l=f;f=h[f+1]}-1!=l&&(a.mSize==a.capacity&&(a.grow(),h=a.mData),f=a.mFree<<1,a.mFree=a.mNext[a.mFree],h[f]=e,h[l+1]=f,a.mSize++)}}}return a},toKeySet:function(){for(var a=new Hg(this.capacity),b=this.mData,c=0,d=this.capacity;c<d;){var e=c++;if(-2147483648!=b[3*e+1]){e=b[3*e];Ba._assert(-2147483648!=e,"value 0x80000000 is reserved(val != VAL_ABSENT)", +{fileName:"C:/Users/Adven/AppData/Local/Stencyl/libs/haxelib/Stencyl/ds/1d23c8a6f89f0f3a80158b94ca285e4e61cf982d/src/polygonal/ds/IntHashSet.hx",lineNumber:521,className:"polygonal.ds.IntHashSet",methodName:"set"});var f=73856093*e&a.mMask,h=a.mData,l=a.mHash[f];if(-1==l)a.mSize==a.capacity&&(a.grow(),h=a.mData),l=a.mFree<<1,a.mFree=a.mNext[a.mFree],a.mHash[f]=l,h[l]=e,a.mSize++;else if(h[l]!=e){for(f=h[l+1];-1!=f;){if(h[f]==e){l=-1;break}l=f;f=h[f+1]}-1!=l&&(a.mSize==a.capacity&&(a.grow(),h=a.mData), +f=a.mFree<<1,a.mFree=a.mNext[a.mFree],h[f]=e,h[l+1]=f,a.mSize++)}}}return a},keys:function(){return new xn(this)},pack:function(){if(this.capacity==this.mMinCapacity)return this;var a=this.mSize,b=this.mMinCapacity;this.capacity=a>b?a:b;var c=this.mData,d=0,e=this.mHash,f=Array(3*this.capacity),h=2;a=0;for(b=this.capacity;a<b;)a++,f[h-1]=-2147483648,f[h]=-1,h+=3;a=0;for(b=this.slotCount;a<b;){var l=a++;h=e[l];if(-1!=h)for(e[l]=d,f[d]=c[h],f[d+1]=c[h+1],f[d+2]=-1,d+=3,h=c[h+2];-1!=h;)f[d-1]=d,f[d]= +c[h],f[d+1]=c[h+1],f[d+2]=-1,d+=3,h=c[h+2]}this.mData=f;c=this.mNext=Array(this.capacity);a=0;for(b=this.capacity-1;a<b;)l=a++,c[l]=l+1;this.mFree=c[this.capacity-1]=-1;return this},iter:function(a){Ba._assert(null!=a,"f != null",{fileName:"C:/Users/Adven/AppData/Local/Stencyl/libs/haxelib/Stencyl/ds/1d23c8a6f89f0f3a80158b94ca285e4e61cf982d/src/polygonal/ds/IntIntHashTable.hx",lineNumber:1360,className:"polygonal.ds.IntIntHashTable",methodName:"iter"});for(var b=this.mData,c,d,e=0,f=this.capacity;e< +f;)c=3*e++,d=b[c+1],-2147483648!=d&&a(b[c],d);return this},hashCode:function(a){return 73856093*a&this.mMask},grow:function(){var a=this.capacity;this.capacity=Fg.compute(this.growthRate,this.capacity);var b=Array(this.capacity);Hb.blit(this.mNext,0,b,0,a);this.mNext=b;b=Array(3*this.capacity);Hb.blit(this.mData,0,b,0,3*a);this.mData=b;b=this.mNext;for(var c=a-1,d=this.capacity-1;c<d;){var e=c++;b[e]=e+1}b[this.capacity-1]=-1;this.mFree=a;e=3*a+2;b=this.mData;c=0;for(d=this.capacity-a;c<d;)c++,b[e- +1]=-2147483648,b[e]=-1,e+=3},get_size:function(){return this.mSize},free:function(){this.mNext=this.mData=this.mHash=null;null!=this.mIterator&&(this.mIterator.free(),this.mIterator=null);this.mTmpBuffer=null},contains:function(a){return this.has(a)},remove:function(a){Ba._assert(-2147483648!=a,"val 0x80000000 is reserved(val != KEY_ABSENT)",{fileName:"C:/Users/Adven/AppData/Local/Stencyl/libs/haxelib/Stencyl/ds/1d23c8a6f89f0f3a80158b94ca285e4e61cf982d/src/polygonal/ds/IntIntHashTable.hx",lineNumber:1465, +className:"polygonal.ds.IntIntHashTable",methodName:"remove"});for(var b=0,c=this.mTmpBuffer,d=this.mTmpBufferSize,e=this.mData,f,h=0,l=this.capacity;h<l;)f=h++,f*=3,e[f+1]==a&&(b==d&&(this.mTmpBufferSize=d<<=1,c=Array(d),Hb.blit(this.mTmpBuffer,0,c,0,b),this.mTmpBuffer=c),c[b++]=e[f]);h=0;for(l=b;h<l;){f=h++;d=c[f];f=73856093*d&this.mMask;var k=this.mHash;a=k[f];if(-1!=a)if(e=this.mData,d==e[a])k[f]=-1==e[a+2]?-1:e[a+2],f=a/3|0,this.mNext[f]=this.mFree,this.mFree=f,e[a+1]=-2147483648,e[a+2]=-1,this.mSize--; +else{f=!1;k=a;for(a=e[a+2];-1!=a;){if(e[a]==d){f=!0;break}k=a;a=e[k+2]}f&&(e[k+2]=e[a+2],d=a/3|0,this.mNext[d]=this.mFree,this.mFree=d,e[a+1]=-2147483648,e[a+2]=-1,this.mSize--)}}return 0<b},clear:function(a){var b=this.mHash;a=0;for(var c=this.slotCount;a<c;){var d=a++;b[d]=-1}d=2;b=this.mData;a=0;for(c=this.capacity;a<c;)a++,b[d-1]=-2147483648,b[d]=-1,d+=3;b=this.mNext;a=0;for(c=this.capacity-1;a<c;)d=a++,b[d]=d+1;b[this.capacity-1]=-1;this.mSize=this.mFree=0},iterator:function(){return this.reuseIterator? +(null==this.mIterator?this.mIterator=new ok(this):this.mIterator.reset(),this.mIterator):new ok(this)},isEmpty:function(){return 0==this.mSize},toArray:function(){if(0==this.mSize)return[];var a=this.mSize;Ba._assert(0<=a,"len >= 0",{fileName:"C:/Users/Adven/AppData/Local/Stencyl/libs/haxelib/Stencyl/ds/1d23c8a6f89f0f3a80158b94ca285e4e61cf982d/src/polygonal/ds/tools/ArrayTools.hx",lineNumber:37,className:"polygonal.ds.tools.ArrayTools",methodName:"alloc"});a=Array(a);for(var b=0,c,d=this.mData,e= +0,f=this.capacity;e<f;)c=e++,c=d[3*c+1],-2147483648!=c&&(a[b++]=c);return a},clone:function(a,b){a=new og(this.slotCount,this.capacity);Hb.blit(this.mHash,0,a.mHash,0,this.slotCount);Hb.blit(this.mData,0,a.mData,0,3*this.capacity);Hb.blit(this.mNext,0,a.mNext,0,this.capacity);a.mMask=this.mMask;a.slotCount=this.slotCount;a.capacity=this.capacity;a.mFree=this.mFree;a.mSize=this.mSize;return a},__class__:og,__properties__:{get_size:"get_size",get_loadFactor:"get_loadFactor"}};var ok=function(a){this.mObject= +a;this.mData=a.mData;this.mI=0;this.mS=a.capacity;this.scan()};k["polygonal.ds.IntIntHashTableValIterator"]=ok;ok.__name__="polygonal.ds.IntIntHashTableValIterator";ok.__interfaces__=[Gg];ok.prototype={mObject:null,mI:null,mS:null,mData:null,free:function(){this.mData=this.mObject=null},reset:function(){this.mData=this.mObject.mData;this.mI=0;this.mS=this.mObject.capacity;this.scan();return this},hasNext:function(){return this.mI<this.mS},next:function(){var a=this.mData[3*this.mI++ +1];this.scan(); +return a},remove:function(){throw R.thrown("unsupported operation");},scan:function(){for(;this.mI<this.mS&&-2147483648==this.mData[3*this.mI+1];)this.mI++},__class__:ok};var xn=function(a){this.mObject=a;this.mData=a.mData;this.mI=0;this.mS=a.capacity;this.scan()};k["polygonal.ds.IntIntHashTableKeyIterator"]=xn;xn.__name__="polygonal.ds.IntIntHashTableKeyIterator";xn.__interfaces__=[Gg];xn.prototype={mObject:null,mI:null,mS:null,mData:null,free:function(){this.mData=this.mObject=null},reset:function(){this.mData= +this.mObject.mData;this.mI=0;this.mS=this.mObject.capacity;this.scan();return this},hasNext:function(){return this.mI<this.mS},next:function(){var a=this.mData[3*this.mI++];this.scan();return a},remove:function(){throw R.thrown("unsupported operation");},scan:function(){for(;this.mI<this.mS&&-2147483648==this.mData[3*this.mI+1];)this.mI++},__class__:xn};var ki=function(a,b){null==a&&(a=16);this.mIterator=null;this.mSize=0;this.reuseIterator=!1;this.growthRate=-2;this.key=ng.next();this.capacity=this.mInitialCapacity= +1>a?1:a;null!=b&&(this.capacity=b.length);this.mData=Array(this.capacity);if(null!=b)for(a=0;a<b.length;){var c=b[a];++a;this.set(c)}};k["polygonal.ds.ListSet"]=ki;ki.__name__="polygonal.ds.ListSet";ki.__interfaces__=[hj];ki.prototype={key:null,capacity:null,growthRate:null,reuseIterator:null,mData:null,mInitialCapacity:null,mSize:null,mIterator:null,reserve:function(a){a>this.capacity&&(this.capacity=a,this.resizeContainer(a));return this},pack:function(){if(this.capacity>this.mInitialCapacity){var a= +this.mInitialCapacity,b=this.mSize;this.capacity=a>b?a:b;this.resizeContainer(this.capacity)}else{a=this.mData;b=this.mSize;for(var c=this.capacity;b<c;){var d=b++;a[d]=null}}return this},iter:function(a){Ba._assert(null!=a,"f != null",{fileName:"C:/Users/Adven/AppData/Local/Stencyl/libs/haxelib/Stencyl/ds/1d23c8a6f89f0f3a80158b94ca285e4e61cf982d/src/polygonal/ds/ListSet.hx",lineNumber:136,className:"polygonal.ds.ListSet",methodName:"iter"});for(var b=this.mData,c=0,d=this.mSize;c<d;){var e=c++;a(b[e])}return this}, +toString:function(){var a=""+n.string("[ ListSet size="+this.mSize);if(this.isEmpty())return a+" ]";a+="\n";for(var b=0,c=this.mSize;b<c;){var d=b++;a+=" ";a+=n.string(n.string(this.mData[d]));a+="\n"}return a+"]"},has:function(a){if(this.isEmpty())return!1;for(var b=this.mData,c=0,d=this.mSize;c<d;){var e=c++;if(b[e]==a)return!0}return!1},set:function(a){for(var b=this.mData,c=0,d=this.mSize;c<d;){var e=c++;if(b[e]==a)return!1}this.mSize==this.capacity&&(this.grow(),b=this.mData);b[this.mSize++]= +a;return!0},unset:function(a){return this.remove(a)},merge:function(a,b,c){if(b)for(a=a.iterator();a.hasNext();)b=a.next(),this.set(b);else if(null!=c)for(a=a.iterator();a.hasNext();)b=a.next(),this.set(c(b));else for(a=a.iterator();a.hasNext();)b=a.next(),Ba._assert(O.__implements(b,mg),"element is not of type Cloneable(Std.isOfType(val, Cloneable))",{fileName:"C:/Users/Adven/AppData/Local/Stencyl/libs/haxelib/Stencyl/ds/1d23c8a6f89f0f3a80158b94ca285e4e61cf982d/src/polygonal/ds/ListSet.hx",lineNumber:230, +className:"polygonal.ds.ListSet",methodName:"merge"}),this.set(O.__cast(b,mg).clone())},get_size:function(){return this.mSize},free:function(){Hb.nullify(this.mData);this.mData=null;null!=this.mIterator&&(this.mIterator.free(),this.mIterator=null)},contains:function(a){return this.has(a)},remove:function(a){for(var b=this.mData,c=0,d=this.mSize;c<d;){var e=c++;if(b[e]==a)return b[e]=this.mData[--this.mSize],!0}return!1},clear:function(a){null==a&&(a=!1);a&&Hb.nullify(this.mData);this.mSize=0},iterator:function(){if(this.reuseIterator){if(null== +this.mIterator)this.mIterator=new pk(this);else{var a=this.mIterator;a.mData=a.mObject.mData;a.mS=a.mObject.mSize;a.mI=0}return this.mIterator}return new pk(this)},isEmpty:function(){return 0==this.mSize},toArray:function(){return Hb.toArray(this.mData,0,this.mSize,[])},clone:function(a,b){null==a&&(a=!0);var c=new ki;c.capacity=this.mSize;c.mSize=this.mSize;c.mData=Array(this.mSize);var d=this.mData,e=c.mData;if(a)Hb.blit(d,0,e,0,this.mSize);else if(null==b){a=0;for(var f=this.mSize;a<f;){var h= +a++;Ba._assert(O.__implements(d[h],mg),"element is not of type Cloneable(Std.isOfType(src.get(i), Cloneable))",{fileName:"C:/Users/Adven/AppData/Local/Stencyl/libs/haxelib/Stencyl/ds/1d23c8a6f89f0f3a80158b94ca285e4e61cf982d/src/polygonal/ds/ListSet.hx",lineNumber:359,className:"polygonal.ds.ListSet",methodName:"clone"});e[h]=O.__cast(d[h],mg).clone()}}else for(a=0,f=this.mSize;a<f;)h=a++,e[h]=b(d[h]);return c},grow:function(){this.capacity=Fg.compute(this.growthRate,this.capacity);this.resizeContainer(this.capacity)}, +resizeContainer:function(a){a=Array(a);Hb.blit(this.mData,0,a,0,this.mSize);this.mData=a},__class__:ki,__properties__:{get_size:"get_size"}};var pk=function(a){this.mObject=a;this.mData=this.mObject.mData;this.mS=this.mObject.mSize;this.mI=0};k["polygonal.ds.ListSetIterator"]=pk;pk.__name__="polygonal.ds.ListSetIterator";pk.__interfaces__=[Gg];pk.prototype={mObject:null,mData:null,mI:null,mS:null,free:function(){this.mData=this.mObject=null},reset:function(){this.mData=this.mObject.mData;this.mS= +this.mObject.mSize;this.mI=0;return this},hasNext:function(){return this.mI<this.mS},next:function(){return this.mData[this.mI++]},remove:function(){Ba._assert(0<this.mI,"call next() before removing an element(mI > 0)",{fileName:"C:/Users/Adven/AppData/Local/Stencyl/libs/haxelib/Stencyl/ds/1d23c8a6f89f0f3a80158b94ca285e4e61cf982d/src/polygonal/ds/ListSet.hx",lineNumber:430,className:"polygonal.ds.ListSetIterator",methodName:"remove"});this.mData[this.mI]=this.mData[--this.mS]},__class__:pk};var Va= +function(){};k["polygonal.ds.Printf"]=Va;Va.__name__="polygonal.ds.Printf";Va.init=function(){var a=Array(40);Va._padChars=a;Va._padChars[0]=J.rpad("","0",0);Va._padChars[1]=J.rpad("","0",1);Va._padChars[2]=J.rpad("","0",2);Va._padChars[3]=J.rpad("","0",3);Va._padChars[4]=J.rpad("","0",4);Va._padChars[5]=J.rpad("","0",5);Va._padChars[6]=J.rpad("","0",6);Va._padChars[7]=J.rpad("","0",7);Va._padChars[8]=J.rpad("","0",8);Va._padChars[9]=J.rpad("","0",9);Va._padChars[10]=J.rpad("","0",10);Va._padChars[11]= +J.rpad("","0",11);Va._padChars[12]=J.rpad("","0",12);Va._padChars[13]=J.rpad("","0",13);Va._padChars[14]=J.rpad("","0",14);Va._padChars[15]=J.rpad("","0",15);Va._padChars[16]=J.rpad("","0",16);Va._padChars[17]=J.rpad("","0",17);Va._padChars[18]=J.rpad("","0",18);Va._padChars[19]=J.rpad("","0",19);for(a=0;20>a;){var b=a++;Va._padChars[b+20]=J.rpad(""," ",b)}a=Array(64);Va._tmp=a};Va.format=function(a,b){Va._initialized||(Va._initialized=!0,Va.init());var c=new oc,d=0,e=[],f=0;for(a=Va.tokenize(a,e);f< +a;){var h=f++,l=e[h];switch(l._hx_index){case 0:h=l.string;c.b+=null==h?"null":""+h;break;case 1:h=l.type;l=l.args;if(null==l.width){if(!O.__instanceof(b[d],ui))throw R.thrown(new eh("invalid 'width' argument"));l.width=b[d++]}if(null==l.precision){if(!O.__instanceof(b[d],ui))throw R.thrown(new eh("invalid 'precision' argument"));l.precision=b[d++]}if(-1<l.pos){if(l.pos>b.length-1)throw R.thrown(new eh("argument index out of range"));var k=b[l.pos]}else k=b[d++];null==k&&(k="null");switch(h._hx_index){case 0:switch(h.type._hx_index){case 0:Va.formatCharacter(k, +l,c);break;case 1:Va.formatSignedDecimal(k,l,c);break;case 2:Va.formatUnsignedDecimal(k,l,c);break;case 3:Va.formatOctal(k,l,c);break;case 4:Va.formatHexadecimal(k,l,c);break;case 5:Va.formatBinary(k,l,c)}break;case 1:switch(h.floatType._hx_index){case 0:Va.formatFloat(k,l,c);break;case 1:Va.formatScientific(k,l,c);break;case 2:Va.formatNaturalFloat(k,l,c)}break;case 2:Va.formatString(k,l,c);break;case 3:throw R.thrown(new eh("specifier 'p' is not supported"));case 4:throw R.thrown(new eh("specifier 'n' is not supported")); +}break;case 2:h=l.name;if(!Object.prototype.hasOwnProperty.call(b[0],h))throw R.thrown(new eh('no field named "'+h+'" found'));c.b+=n.string(n.string(W.field(b[0],h)));++d;break;case 3:throw R.thrown(new eh("Invalid format specifier."));}}return c.b};Va.tokenize=function(a,b){for(var c=0,d,e=0,f=new oc,h=a.length;c<h;)if(d=a.charCodeAt(c++),37==d)if(d=a.charCodeAt(c++),37==d)f.b+=String.fromCodePoint(d);else{0<f.b.length&&(b[e++]=Ig.Raw(f.b),f=new oc);if(40==d)if(d=a.indexOf(")",c),-1==d)d=Ig.Unknown("named parameter", +c);else{var l=F.substr(a,c,d-c);c=d+1;d=Ig.Property(l)}else{l=0;null==l&&(l=0);l=new rp(l,-1,-1,-1);a:for(;32<=d&&48>=d;)switch(d){case 32:d=a.charCodeAt(c++);l.flags|=1<<Ra.Space._hx_index;break;case 35:d=a.charCodeAt(c++);l.flags|=1<<Ra.Sharp._hx_index;break;case 43:d=a.charCodeAt(c++);l.flags|=1<<Ra.Plus._hx_index;break;case 45:d=a.charCodeAt(c++);l.flags|=1<<Ra.Minus._hx_index;break;case 48:d=a.charCodeAt(c++);l.flags|=1<<Ra.Zero._hx_index;break;default:break a}0!=(l.flags&1<<Ra.Minus._hx_index)&& +0!=(l.flags&1<<Ra.Zero._hx_index)&&(l.flags&=-1-(1<<Ra.Zero._hx_index));0!=(l.flags&1<<Ra.Space._hx_index)&&0!=(l.flags&1<<Ra.Plus._hx_index)&&(l.flags&=-1-(1<<Ra.Space._hx_index));if(42==d)l.width=null,d=a.charCodeAt(c++);else if(48<=d&&57>=d){for(var k=0;48<=d&&57>=d;)k=d-48+10*k,d=a.charCodeAt(c++);l.width=k;if(36==d)if(l.pos=k-1,l.width=-1,d=a.charCodeAt(c++),42==d)l.width=null,d=a.charCodeAt(c++);else if(48<=d&&57>=d){for(k=0;48<=d&&57>=d;)k=d-48+10*k,d=a.charCodeAt(c++);l.width=k}}if(46==d)if(d= +a.charCodeAt(c++),42==d)l.precision=null,d=a.charCodeAt(c++);else{k=0;if(48<=d&&57>=d)for(;48<=d&&57>=d;)k=d-48+10*k,d=a.charCodeAt(c++);l.precision=k}a:for(;76<=d&&108>=d;)switch(d){case 76:d=a.charCodeAt(c++);l.flags|=1<<Ra.LengthUpperCaseL._hx_index;break;case 104:d=a.charCodeAt(c++);l.flags|=1<<Ra.LengthH._hx_index;break;case 108:d=a.charCodeAt(c++);l.flags|=1<<Ra.LengthLowerCaseL._hx_index;break;default:break a}if(69<=d&&120>=d){switch(d){case 69:l.flags|=1<<Ra.UpperCase._hx_index;k=le.FmtFloat(li.FScientific); +break;case 71:l.flags|=1<<Ra.UpperCase._hx_index;k=le.FmtFloat(li.FNatural);break;case 88:l.flags|=1<<Ra.UpperCase._hx_index;k=le.FmtInt(zf.IHex);break;case 98:k=le.FmtInt(zf.IBin);break;case 99:k=le.FmtInt(zf.ICharacter);break;case 100:k=le.FmtInt(zf.ISignedDecimal);break;case 101:k=le.FmtFloat(li.FScientific);break;case 102:k=le.FmtFloat(li.FNormal);break;case 103:k=le.FmtFloat(li.FNatural);break;case 105:k=le.FmtInt(zf.ISignedDecimal);break;case 110:k=le.FmtNothing;break;case 111:k=le.FmtInt(zf.IOctal); +break;case 112:k=le.FmtPointer;break;case 115:k=le.FmtString;break;case 117:k=le.FmtInt(zf.IUnsignedDecimal);break;case 120:k=le.FmtInt(zf.IHex);break;default:k=null}d=null==k?Ig.Unknown(String.fromCodePoint(d),c):Ig.Tag(k,l)}else d=Ig.Unknown(String.fromCodePoint(d),c)}b[e++]=d}else f.b+=String.fromCodePoint(d);0<f.b.length&&(b[e++]=Ig.Raw(f.b));return e};Va.formatBinary=function(a,b,c){var d=b.flags,e=b.precision;b=b.width;0!=(d&1<<Ra.LengthH._hx_index)&&(a&=65535);if(0==a){if(0==e)return;d&=-1- +(1<<Ra.Sharp._hx_index)}-1==e&&(e=1);for(var f=Va._tmp,h=0;f[h++]=a&1,a>>>=1,0<a;);a=h;if(0!=(d&1<<Ra.Minus._hx_index)){0!=(d&1<<Ra.Sharp._hx_index)&&(c.b+="0b");if(e>h)for(var l=0,k=e-h;l<k;)l++,c.b+="0";for(;-1<--a;)c.b+=String.fromCodePoint(48+f[a]);0!=(d&1<<Ra.Sharp._hx_index)&&(b-=2);e>h&&(h=e);if(b>h)for(l=0,k=b-h;l<k;)l++,c.b+=" "}else{k=h;e>k&&(k=e);0!=(d&1<<Ra.Sharp._hx_index)&&(b-=2);if(b>k)if(0!=(d&1<<Ra.Zero._hx_index)&&1==e)for(l=0,k=b-k;l<k;)l++,c.b+="0";else for(l=0,k=b-k;l<k;)l++, +c.b+=" ";0!=(d&1<<Ra.Sharp._hx_index)&&(c.b+="0b");if(e>h)for(l=0,k=e-h;l<k;)l++,c.b+="0";for(;-1<--a;)c.b+=String.fromCodePoint(48+f[a])}};Va.formatOctal=function(a,b,c){var d=b.flags,e=b.precision;b=b.width;0!=(d&1<<Ra.LengthH._hx_index)&&(a&=65535);if(0==a){if(0==e){c.b+=n.string(0!=(d&1<<Ra.Sharp._hx_index)?"0":"");return}d&=-1-(1<<Ra.Sharp._hx_index)}for(var f=Va._tmp,h=0;f[h++]=a&7,a>>>=3,0<a;);a=h;-1!=e?0!=(d&1<<Ra.Zero._hx_index)&&(d&=-1-(1<<Ra.Zero._hx_index),d|=1<<Ra.Space._hx_index):e= +1;if(0!=(d&1<<Ra.Minus._hx_index)){0!=(d&1<<Ra.Sharp._hx_index)&&(c.b+="0",++h);if(e>h)for(var l=0,k=e-h;l<k;)l++,c.b+="0";for(;-1<--a;)d=String.fromCodePoint(48+f[a]),c.b+=n.string(d);e>h&&(h=e);if(b>h)for(l=0,k=b-h;l<k;)l++,c.b+=" "}else{0!=(d&1<<Ra.Sharp._hx_index)&&++h;k=h;e>k&&(k=e);if(b>k)if(0!=(d&1<<Ra.Zero._hx_index))for(l=0,k=b-k;l<k;)l++,c.b+="0";else for(l=0,k=b-k;l<k;)l++,c.b+=" ";0!=(d&1<<Ra.Sharp._hx_index)&&(c.b+="0");if(e>h)for(l=0,k=e-h;l<k;)l++,c.b+="0";for(;-1<--a;)d=String.fromCodePoint(48+ +f[a]),c.b+=n.string(d)}};Va.formatHexadecimal=function(a,b,c){var d=b.flags,e=b.precision;b=b.width;0!=(d&1<<Ra.LengthH._hx_index)&&(a&=65535);if(0==a){if(0==e)return;d&=-1-(1<<Ra.Sharp._hx_index)}-1==e&&(e=1);for(var f=Va._tmp,h=0;f[h++]=a&15,a>>>=4,0<a;);a=h;if(0!=(d&1<<Ra.Minus._hx_index)){0!=(d&1<<Ra.Sharp._hx_index)&&(c.b=0!=(d&1<<Ra.UpperCase._hx_index)?c.b+"0X":c.b+"0x");if(e>h)for(var l=0,k=e-h;l<k;)l++,c.b+="0";for(l=0!=(d&1<<Ra.UpperCase._hx_index)?65:97;-1<--a;)k=f[a],10>k?(k=String.fromCodePoint(48+ +k),c.b+=n.string(k)):(k=String.fromCodePoint(l+(k-10)),c.b+=n.string(k));0!=(d&1<<Ra.Sharp._hx_index)&&(b-=2);e>h&&(h=e);if(b>h)for(l=0,k=b-h;l<k;)l++,c.b+=" "}else{k=h;e>k&&(k=e);0!=(d&1<<Ra.Sharp._hx_index)&&(b-=2);if(b>k)if(0!=(d&1<<Ra.Zero._hx_index)&&1==e)for(l=0,k=b-k;l<k;)l++,c.b+="0";else for(l=0,k=b-k;l<k;)l++,c.b+=" ";0!=(d&1<<Ra.Sharp._hx_index)&&(c.b=0!=(d&1<<Ra.UpperCase._hx_index)?c.b+"0X":c.b+"0x");if(e>h)for(l=0,k=e-h;l<k;)l++,c.b+="0";for(l=0!=(d&1<<Ra.UpperCase._hx_index)?65:97;-1< +--a;)k=f[a],10>k?(k=String.fromCodePoint(48+k),c.b+=n.string(k)):(k=String.fromCodePoint(l+(k-10)),c.b+=n.string(k))}};Va.formatSignedDecimal=function(a,b,c){var d=b.flags,e=b.precision;b=b.width;if(0!=e||0!=a){0!=(d&1<<Ra.LengthH._hx_index)&&(a&=65535);var f=n.string(0>a?-a:a),h=f.length;a=0>a?"-":0!=(d&1<<Ra.Plus._hx_index)?"+":0!=(d&1<<Ra.Space._hx_index)?" ":null;var l=null!=a;if(0!=(d&1<<Ra.Minus._hx_index)){l&&(c.b+=null==a?"null":""+a);if(e>h)for(var k=0,m=e-h;k<m;)k++,c.b+="0";c.b+=n.string(f); +e>h&&(h=e);h+=l?1:0;if(b>h)for(k=0,m=b-h;k<m;)k++,c.b+=" "}else{m=h+(l?1:0);e>m&&(m=e);if(b>m)if(0!=(d&1<<Ra.Zero._hx_index))for(l&&(c.b+=null==a?"null":""+a),k=0,m=b-m;k<m;)k++,c.b+="0";else for(k=0,m=b-m;k<m;)k++,c.b+=" ";l&&0==(d&1<<Ra.Zero._hx_index)&&(c.b+=null==a?"null":""+a);if(e>h)for(k=0,m=e-h;k<m;)k++,c.b+="0";c.b+=n.string(f)}}};Va.formatUnsignedDecimal=function(a,b,c){if(0<=a)Va.formatSignedDecimal(a,b,c);else{a=new Ya(0,a);a=wu.toString(a);var d=a.length,e=b.flags,f=b.precision;b=b.width; +if(0!=(e&1<<Ra.Minus._hx_index)){if(f>d){e=0;for(var h=f-d;e<h;)e++,c.b+="0"}c.b+=null==a?"null":""+a;f>d&&(d=f);if(b>d)for(e=0,h=b-d;e<h;)e++,c.b+=" "}else{h=d;f>h&&(h=f);if(b>h)if(0!=(e&1<<Ra.Zero._hx_index))for(e=0,h=b-h;e<h;)e++,c.b+="0";else for(e=0,h=b-h;e<h;)e++,c.b+=" ";if(f>d)for(e=0,h=f-d;e<h;)e++,c.b+="0";c.b+=null==a?"null":""+a}}};Va.formatNaturalFloat=function(a,b,c){var d=new oc;Va.formatFloat(a,b,d);var e=d.b;d=new oc;Va.formatScientific(a,b,d);a=d.b;e=e.length<=a.length?e:a;c.b+= +null==e?"null":""+e};Va.formatScientific=function(a,b,c){var d=b.flags,e=b.precision;-1==e&&(e=Va.DEFAULT_PRECISION);var f,h="";if(0==a){var l=f=0;h+="0";if(0<e){h+=".";for(var k=0,m=e;k<m;)k++,h+="0"}}else k=Math,f=0<a?1:0>a?-1:0,a=k.abs(a),l=k.floor(Math.log(a)/2.302585092994046),a/=k.pow(10,l),k=k.pow(.1,e),a=Math.round(a/k)*k;0!=a&&(h+=F.substr(null==a?"null":""+a,0,e+2));h+=0!=(d&1<<Ra.UpperCase._hx_index)?"E":"e";h+=0<=l?"+":"-";a=n.string(0>l?-l:l);m=Va.DEFAULT_NUM_EXP_DIGITS-a.length;if(1> +m)k=a;else{if(30<m)for(e=l="0",k=0,--m;k<m;)k++,e+=l;else e=Va._padChars[m];k=e+a}h+=k;(a=-1==f||0!=(d&1<<Ra.Plus._hx_index)||0!=(d&1<<Ra.Space._hx_index))&&0==(d&1<<Ra.Zero._hx_index)&&(h=(-1==f?"-":0!=(d&1<<Ra.Plus._hx_index)?"+":" ")+h);if(0<b.width&&(k=b.width,a&&0!=(d&1<<Ra.Zero._hx_index)&&--k,b=0!=(d&1<<Ra.Zero._hx_index)?0:20,m=k-h.length,1<=m)){if(30<m)for(e=l=0==b?"0":" ",k=0,--m;k<m;)k++,e+=l;else e=Va._padChars[b+m];h=e+h}a&&0!=(d&1<<Ra.Zero._hx_index)&&(h=(-1==f?"-":0!=(d&1<<Ra.Plus._hx_index)? +"+":" ")+h);c.b+=null==h?"null":""+h};Va.formatFloat=function(a,b,c){var d=b.flags,e=b.precision;-1==e&&(e=Va.DEFAULT_PRECISION);b=b.width;var f=0>a;0==e?(a=n.string(Math.round(a)),0!=(d&1<<Ra.Sharp._hx_index)&&(a+=".")):a=a.toFixed(e);var h=a.length;f&&-1<a.indexOf("-")&&(a=F.substr(a,1,null));e=null;0==(d&1<<Ra.Plus._hx_index)||f?0!=(d&1<<Ra.Space._hx_index)?(e=" ",++h):f&&(e="-"):(e="+",++h);f=null!=e;if(0!=(d&1<<Ra.Minus._hx_index)){if(f&&(c.b+=null==e?"null":""+e),c.b+=null==a?"null":""+a,b> +h)for(d=0,b-=h;d<b;)d++,c.b+=" "}else{if(b>h)if(0!=(d&1<<Ra.Zero._hx_index))for(f&&(c.b+=null==e?"null":""+e,f=!1),d=0,b-=h;d<b;)d++,c.b+="0";else for(d=0,b-=h;d<b;)d++,c.b+=" ";f&&(c.b+=null==e?"null":""+e);c.b+=null==a?"null":""+a}};Va.formatCharacter=function(a,b,c){if(0!=(b.flags&1<<Ra.Minus._hx_index)){a=String.fromCodePoint(a);c.b+=n.string(a);var d=0;for(b=b.width-1;d<b;)d++,c.b+=" "}else{d=0;for(b=b.width-1;d<b;)d++,c.b+=" ";a=String.fromCodePoint(a);c.b+=n.string(a)}};Va.formatString=function(a, +b,c){var d=a.length,e=b.precision;if(0!=(b.flags&1<<Ra.Minus._hx_index)){-1!=e?(c.b+=null==e?F.substr(a,0,null):F.substr(a,0,e),d=e):c.b+=null==a?"null":""+a;var f=0;for(b=b.width-d;f<b;)f++,c.b+=" "}else{-1!=e&&(d=e);f=0;for(b=b.width-d;f<b;)f++,c.b+=" ";c.b=-1!=e?c.b+(null==e?F.substr(a,0,null):F.substr(a,0,e)):c.b+(null==a?"null":""+a)}};Va.pad=function(a,b,c,d){b-=a.length;if(1>b)return a;if(30<b){var e=0==c?"0":" ";c=e;var f=0;for(--b;f<b;)f++,c+=e}else c=Va._padChars[c+b];return 0<d?a+c:c+a}; +var eh=function(a){this.message=a};k["polygonal.ds.PrintfError"]=eh;eh.__name__="polygonal.ds.PrintfError";eh.prototype={message:null,toString:function(){return this.message},__class__:eh};var rp=function(a,b,c,d){this.flags=a;this.pos=b;this.width=c;this.precision=d};k["polygonal.ds._Printf.FormatArgs"]=rp;rp.__name__="polygonal.ds._Printf.FormatArgs";rp.prototype={flags:null,pos:null,width:null,precision:null,__class__:rp};var Ra=E["polygonal.ds._Printf.FormatFlag"]={__ename__:"polygonal.ds._Printf.FormatFlag", +__constructs__:null,Minus:{_hx_name:"Minus",_hx_index:0,__enum__:"polygonal.ds._Printf.FormatFlag",toString:v},Plus:{_hx_name:"Plus",_hx_index:1,__enum__:"polygonal.ds._Printf.FormatFlag",toString:v},Space:{_hx_name:"Space",_hx_index:2,__enum__:"polygonal.ds._Printf.FormatFlag",toString:v},Sharp:{_hx_name:"Sharp",_hx_index:3,__enum__:"polygonal.ds._Printf.FormatFlag",toString:v},Zero:{_hx_name:"Zero",_hx_index:4,__enum__:"polygonal.ds._Printf.FormatFlag",toString:v},LengthH:{_hx_name:"LengthH",_hx_index:5, +__enum__:"polygonal.ds._Printf.FormatFlag",toString:v},LengthUpperCaseL:{_hx_name:"LengthUpperCaseL",_hx_index:6,__enum__:"polygonal.ds._Printf.FormatFlag",toString:v},LengthLowerCaseL:{_hx_name:"LengthLowerCaseL",_hx_index:7,__enum__:"polygonal.ds._Printf.FormatFlag",toString:v},UpperCase:{_hx_name:"UpperCase",_hx_index:8,__enum__:"polygonal.ds._Printf.FormatFlag",toString:v}};Ra.__constructs__=[Ra.Minus,Ra.Plus,Ra.Space,Ra.Sharp,Ra.Zero,Ra.LengthH,Ra.LengthUpperCaseL,Ra.LengthLowerCaseL,Ra.UpperCase]; +var Ig=E["polygonal.ds._Printf.FormatToken"]={__ename__:"polygonal.ds._Printf.FormatToken",__constructs__:null,Raw:(N=function(a){return{_hx_index:0,string:a,__enum__:"polygonal.ds._Printf.FormatToken",toString:v}},N._hx_name="Raw",N.__params__=["string"],N),Tag:(N=function(a,b){return{_hx_index:1,type:a,args:b,__enum__:"polygonal.ds._Printf.FormatToken",toString:v}},N._hx_name="Tag",N.__params__=["type","args"],N),Property:(N=function(a){return{_hx_index:2,name:a,__enum__:"polygonal.ds._Printf.FormatToken", +toString:v}},N._hx_name="Property",N.__params__=["name"],N),Unknown:(N=function(a,b){return{_hx_index:3,string:a,pos:b,__enum__:"polygonal.ds._Printf.FormatToken",toString:v}},N._hx_name="Unknown",N.__params__=["string","pos"],N)};Ig.__constructs__=[Ig.Raw,Ig.Tag,Ig.Property,Ig.Unknown];var le=E["polygonal.ds._Printf.FormatDataType"]={__ename__:"polygonal.ds._Printf.FormatDataType",__constructs__:null,FmtInt:(N=function(a){return{_hx_index:0,type:a,__enum__:"polygonal.ds._Printf.FormatDataType",toString:v}}, +N._hx_name="FmtInt",N.__params__=["type"],N),FmtFloat:(N=function(a){return{_hx_index:1,floatType:a,__enum__:"polygonal.ds._Printf.FormatDataType",toString:v}},N._hx_name="FmtFloat",N.__params__=["floatType"],N),FmtString:{_hx_name:"FmtString",_hx_index:2,__enum__:"polygonal.ds._Printf.FormatDataType",toString:v},FmtPointer:{_hx_name:"FmtPointer",_hx_index:3,__enum__:"polygonal.ds._Printf.FormatDataType",toString:v},FmtNothing:{_hx_name:"FmtNothing",_hx_index:4,__enum__:"polygonal.ds._Printf.FormatDataType", +toString:v}};le.__constructs__=[le.FmtInt,le.FmtFloat,le.FmtString,le.FmtPointer,le.FmtNothing];var zf=E["polygonal.ds._Printf.IntType"]={__ename__:"polygonal.ds._Printf.IntType",__constructs__:null,ICharacter:{_hx_name:"ICharacter",_hx_index:0,__enum__:"polygonal.ds._Printf.IntType",toString:v},ISignedDecimal:{_hx_name:"ISignedDecimal",_hx_index:1,__enum__:"polygonal.ds._Printf.IntType",toString:v},IUnsignedDecimal:{_hx_name:"IUnsignedDecimal",_hx_index:2,__enum__:"polygonal.ds._Printf.IntType", +toString:v},IOctal:{_hx_name:"IOctal",_hx_index:3,__enum__:"polygonal.ds._Printf.IntType",toString:v},IHex:{_hx_name:"IHex",_hx_index:4,__enum__:"polygonal.ds._Printf.IntType",toString:v},IBin:{_hx_name:"IBin",_hx_index:5,__enum__:"polygonal.ds._Printf.IntType",toString:v}};zf.__constructs__=[zf.ICharacter,zf.ISignedDecimal,zf.IUnsignedDecimal,zf.IOctal,zf.IHex,zf.IBin];var li=E["polygonal.ds._Printf.FloatType"]={__ename__:"polygonal.ds._Printf.FloatType",__constructs__:null,FNormal:{_hx_name:"FNormal", +_hx_index:0,__enum__:"polygonal.ds._Printf.FloatType",toString:v},FScientific:{_hx_name:"FScientific",_hx_index:1,__enum__:"polygonal.ds._Printf.FloatType",toString:v},FNatural:{_hx_name:"FNatural",_hx_index:2,__enum__:"polygonal.ds._Printf.FloatType",toString:v}};li.__constructs__=[li.FNormal,li.FScientific,li.FNatural];var Od=function(){};k["polygonal.ds.tools.ArrayTools"]=Od;Od.__name__="polygonal.ds.tools.ArrayTools";Od.alloc=function(a){Ba._assert(0<=a,"len >= 0",{fileName:"C:/Users/Adven/AppData/Local/Stencyl/libs/haxelib/Stencyl/ds/1d23c8a6f89f0f3a80158b94ca285e4e61cf982d/src/polygonal/ds/tools/ArrayTools.hx", +lineNumber:37,className:"polygonal.ds.tools.ArrayTools",methodName:"alloc"});return Array(a)};Od.trim=function(a,b){a.length>b&&(a.length=b);return a};Od.swap=function(a,b,c){Ba._assert(null!=a,"array != null",{fileName:"C:/Users/Adven/AppData/Local/Stencyl/libs/haxelib/Stencyl/ds/1d23c8a6f89f0f3a80158b94ca285e4e61cf982d/src/polygonal/ds/tools/ArrayTools.hx",lineNumber:94,className:"polygonal.ds.tools.ArrayTools",methodName:"swap"});Ba._assert(0<=b&&b<a.length,"0 <= a && a < array.length",{fileName:"C:/Users/Adven/AppData/Local/Stencyl/libs/haxelib/Stencyl/ds/1d23c8a6f89f0f3a80158b94ca285e4e61cf982d/src/polygonal/ds/tools/ArrayTools.hx", +lineNumber:95,className:"polygonal.ds.tools.ArrayTools",methodName:"swap"});Ba._assert(0<=c&&c<a.length,"0 <= b && b < array.length",{fileName:"C:/Users/Adven/AppData/Local/Stencyl/libs/haxelib/Stencyl/ds/1d23c8a6f89f0f3a80158b94ca285e4e61cf982d/src/polygonal/ds/tools/ArrayTools.hx",lineNumber:96,className:"polygonal.ds.tools.ArrayTools",methodName:"swap"});if(b!=c){var d=a[b];a[b]=a[c];a[c]=d}};Od.getFront=function(a,b){Ba._assert(null!=a,"array != null",{fileName:"C:/Users/Adven/AppData/Local/Stencyl/libs/haxelib/Stencyl/ds/1d23c8a6f89f0f3a80158b94ca285e4e61cf982d/src/polygonal/ds/tools/ArrayTools.hx", +lineNumber:113,className:"polygonal.ds.tools.ArrayTools",methodName:"getFront"});Ba._assert(0<=b&&b<a.length,"0 <= index && index < array.length",{fileName:"C:/Users/Adven/AppData/Local/Stencyl/libs/haxelib/Stencyl/ds/1d23c8a6f89f0f3a80158b94ca285e4e61cf982d/src/polygonal/ds/tools/ArrayTools.hx",lineNumber:114,className:"polygonal.ds.tools.ArrayTools",methodName:"getFront"});Ba._assert(null!=a,"array != null",{fileName:"C:/Users/Adven/AppData/Local/Stencyl/libs/haxelib/Stencyl/ds/1d23c8a6f89f0f3a80158b94ca285e4e61cf982d/src/polygonal/ds/tools/ArrayTools.hx", +lineNumber:94,className:"polygonal.ds.tools.ArrayTools",methodName:"swap"});Ba._assert(0<=b&&b<a.length,"0 <= a && a < array.length",{fileName:"C:/Users/Adven/AppData/Local/Stencyl/libs/haxelib/Stencyl/ds/1d23c8a6f89f0f3a80158b94ca285e4e61cf982d/src/polygonal/ds/tools/ArrayTools.hx",lineNumber:95,className:"polygonal.ds.tools.ArrayTools",methodName:"swap"});Ba._assert(0<a.length,"0 <= b && b < array.length",{fileName:"C:/Users/Adven/AppData/Local/Stencyl/libs/haxelib/Stencyl/ds/1d23c8a6f89f0f3a80158b94ca285e4e61cf982d/src/polygonal/ds/tools/ArrayTools.hx", +lineNumber:96,className:"polygonal.ds.tools.ArrayTools",methodName:"swap"});if(0!=b){var c=a[b];a[b]=a[0];a[0]=c}return a[0]};Od.init=function(a,b,c,d){null==d&&(d=0);null==c&&(c=0);d=0>=d?a.length:c+d;Ba._assert(0<=c&&c<a.length,"min >= 0 && min < a.length",{fileName:"C:/Users/Adven/AppData/Local/Stencyl/libs/haxelib/Stencyl/ds/1d23c8a6f89f0f3a80158b94ca285e4e61cf982d/src/polygonal/ds/tools/ArrayTools.hx",lineNumber:129,className:"polygonal.ds.tools.ArrayTools",methodName:"init"});for(Ba._assert(d<= +a.length,"max <= a.length",{fileName:"C:/Users/Adven/AppData/Local/Stencyl/libs/haxelib/Stencyl/ds/1d23c8a6f89f0f3a80158b94ca285e4e61cf982d/src/polygonal/ds/tools/ArrayTools.hx",lineNumber:130,className:"polygonal.ds.tools.ArrayTools",methodName:"init"});c<d;)a[c++]=b;return a};Od.blit=function(a,b,c,d,e){if(0<e)if(Ba._assert(b<a.length,"srcPos out of range(srcPos < src.length)",{fileName:"C:/Users/Adven/AppData/Local/Stencyl/libs/haxelib/Stencyl/ds/1d23c8a6f89f0f3a80158b94ca285e4e61cf982d/src/polygonal/ds/tools/ArrayTools.hx", +lineNumber:145,className:"polygonal.ds.tools.ArrayTools",methodName:"blit"}),Ba._assert(d<c.length,"dstPos out of range(dstPos < dst.length)",{fileName:"C:/Users/Adven/AppData/Local/Stencyl/libs/haxelib/Stencyl/ds/1d23c8a6f89f0f3a80158b94ca285e4e61cf982d/src/polygonal/ds/tools/ArrayTools.hx",lineNumber:146,className:"polygonal.ds.tools.ArrayTools",methodName:"blit"}),Ba._assert(b+e<=a.length&&d+e<=c.length,"n out of range(srcPos + n <= src.length && dstPos + n <= dst.length)",{fileName:"C:/Users/Adven/AppData/Local/Stencyl/libs/haxelib/Stencyl/ds/1d23c8a6f89f0f3a80158b94ca285e4e61cf982d/src/polygonal/ds/tools/ArrayTools.hx", +lineNumber:147,className:"polygonal.ds.tools.ArrayTools",methodName:"blit"}),a==c)if(b<d){var f=b+e;b=d+e;for(var h=0;h<e;)h++,--f,--b,a[b]=a[f]}else{if(b>d)for(f=b,b=d,h=0;h<e;)h++,a[b]=a[f],++f,++b}else if(0==b&&0==d)for(h=0;h<e;)f=h++,c[f]=a[f];else if(0==b)for(h=0;h<e;)f=h++,c[d+f]=a[f];else if(0==d)for(h=0;h<e;)f=h++,c[f]=a[b+f];else for(h=0;h<e;)f=h++,c[d+f]=a[b+f]};Od.iter=function(a,b,c){null==c&&(c=0);0==c&&(c=a.length);for(var d=0;d<c;){var e=d++;b(a[e])}};Od.forEach=function(a,b){for(var c= +0,d=a.length;c<d;){var e=c++;a[e]=b(a[e],e)}};Od.binarySearchCmp=function(a,b,c,d,e){Ba._assert(null!=a,"a != null",{fileName:"C:/Users/Adven/AppData/Local/Stencyl/libs/haxelib/Stencyl/ds/1d23c8a6f89f0f3a80158b94ca285e4e61cf982d/src/polygonal/ds/tools/ArrayTools.hx",lineNumber:236,className:"polygonal.ds.tools.ArrayTools",methodName:"binarySearchCmp"});Ba._assert(null!=e,"comparator != null",{fileName:"C:/Users/Adven/AppData/Local/Stencyl/libs/haxelib/Stencyl/ds/1d23c8a6f89f0f3a80158b94ca285e4e61cf982d/src/polygonal/ds/tools/ArrayTools.hx", +lineNumber:237,className:"polygonal.ds.tools.ArrayTools",methodName:"binarySearchCmp"});Ba._assert(0<=c&&c<a.length,"min >= 0 && min < a.length",{fileName:"C:/Users/Adven/AppData/Local/Stencyl/libs/haxelib/Stencyl/ds/1d23c8a6f89f0f3a80158b94ca285e4e61cf982d/src/polygonal/ds/tools/ArrayTools.hx",lineNumber:238,className:"polygonal.ds.tools.ArrayTools",methodName:"binarySearchCmp"});Ba._assert(d<a.length,"max < a.length",{fileName:"C:/Users/Adven/AppData/Local/Stencyl/libs/haxelib/Stencyl/ds/1d23c8a6f89f0f3a80158b94ca285e4e61cf982d/src/polygonal/ds/tools/ArrayTools.hx", +lineNumber:239,className:"polygonal.ds.tools.ArrayTools",methodName:"binarySearchCmp"});for(var f,h=d+1;c<h;)f=c+(h-c>>1),0>e(a[f],b)?c=f+1:h=f;return c<=d&&0==e(a[c],b)?c:~c};Od.binarySearchf=function(a,b,c,d){Ba._assert(null!=a,"a != null",{fileName:"C:/Users/Adven/AppData/Local/Stencyl/libs/haxelib/Stencyl/ds/1d23c8a6f89f0f3a80158b94ca285e4e61cf982d/src/polygonal/ds/tools/ArrayTools.hx",lineNumber:265,className:"polygonal.ds.tools.ArrayTools",methodName:"binarySearchf"});Ba._assert(0<=c&&c<a.length, +"min >= 0 && min < a.length",{fileName:"C:/Users/Adven/AppData/Local/Stencyl/libs/haxelib/Stencyl/ds/1d23c8a6f89f0f3a80158b94ca285e4e61cf982d/src/polygonal/ds/tools/ArrayTools.hx",lineNumber:266,className:"polygonal.ds.tools.ArrayTools",methodName:"binarySearchf"});Ba._assert(d<a.length,"max < a.length",{fileName:"C:/Users/Adven/AppData/Local/Stencyl/libs/haxelib/Stencyl/ds/1d23c8a6f89f0f3a80158b94ca285e4e61cf982d/src/polygonal/ds/tools/ArrayTools.hx",lineNumber:267,className:"polygonal.ds.tools.ArrayTools", +methodName:"binarySearchf"});for(var e,f=d+1;c<f;)e=c+(f-c>>1),a[e]<b?c=e+1:f=e;return c<=d&&a[c]==b?c:~c};Od.binarySearchi=function(a,b,c,d){Ba._assert(null!=a,"a != null",{fileName:"C:/Users/Adven/AppData/Local/Stencyl/libs/haxelib/Stencyl/ds/1d23c8a6f89f0f3a80158b94ca285e4e61cf982d/src/polygonal/ds/tools/ArrayTools.hx",lineNumber:293,className:"polygonal.ds.tools.ArrayTools",methodName:"binarySearchi"});Ba._assert(0<=c&&c<a.length,"min >= 0 && min < a.length",{fileName:"C:/Users/Adven/AppData/Local/Stencyl/libs/haxelib/Stencyl/ds/1d23c8a6f89f0f3a80158b94ca285e4e61cf982d/src/polygonal/ds/tools/ArrayTools.hx", +lineNumber:294,className:"polygonal.ds.tools.ArrayTools",methodName:"binarySearchi"});Ba._assert(d<a.length,"max < a.length",{fileName:"C:/Users/Adven/AppData/Local/Stencyl/libs/haxelib/Stencyl/ds/1d23c8a6f89f0f3a80158b94ca285e4e61cf982d/src/polygonal/ds/tools/ArrayTools.hx",lineNumber:295,className:"polygonal.ds.tools.ArrayTools",methodName:"binarySearchi"});for(var e,f=d+1;c<f;)e=c+(f-c>>1),a[e]<b?c=e+1:f=e;return c<=d&&a[c]==b?c:~c};Od.shuffle=function(a,b){Ba._assert(null!=a,"a != null",{fileName:"C:/Users/Adven/AppData/Local/Stencyl/libs/haxelib/Stencyl/ds/1d23c8a6f89f0f3a80158b94ca285e4e61cf982d/src/polygonal/ds/tools/ArrayTools.hx", +lineNumber:320,className:"polygonal.ds.tools.ArrayTools",methodName:"shuffle"});var c=a.length;if(null==b)for(;1<--c;){var d=mi.f()*c|0,e=a[c];a[c]=a[d];a[d]=e}else{Ba._assert(b.length>=a.length,"insufficient random values(rvals.length >= a.length)",{fileName:"C:/Users/Adven/AppData/Local/Stencyl/libs/haxelib/Stencyl/ds/1d23c8a6f89f0f3a80158b94ca285e4e61cf982d/src/polygonal/ds/tools/ArrayTools.hx",lineNumber:335,className:"polygonal.ds.tools.ArrayTools",methodName:"shuffle"});for(var f=0;1<--c;)d= +b[f++]*c|0,e=a[c],a[c]=a[d],a[d]=e}};Od.random=function(a){var b=a.length;return 2>b?a[0]:a[mi.f()*b|0]};Od.sortRange=function(a,b,c,d,e){var f=a.length;if(1<f)if(Ba._assert(0<=d&&d<=f-1&&d+e<=f,"first out of range(first >= 0 && first <= k - 1 && first + n <= k)",{fileName:"C:/Users/Adven/AppData/Local/Stencyl/libs/haxelib/Stencyl/ds/1d23c8a6f89f0f3a80158b94ca285e4e61cf982d/src/polygonal/ds/tools/ArrayTools.hx",lineNumber:370,className:"polygonal.ds.tools.ArrayTools",methodName:"sortRange"}),Ba._assert(0<= +e&&e<=f,"n out of range(n >= 0 && n <= k)",{fileName:"C:/Users/Adven/AppData/Local/Stencyl/libs/haxelib/Stencyl/ds/1d23c8a6f89f0f3a80158b94ca285e4e61cf982d/src/polygonal/ds/tools/ArrayTools.hx",lineNumber:371,className:"polygonal.ds.tools.ArrayTools",methodName:"sortRange"}),c)for(c=d+1,e=d+e;c<e;){var h=c++;for(f=a[h];h>d;){var l=a[h-1];if(0<b(l,f))a[h]=l,--h;else break}a[h]=f}else Od._quickSort(a,d,e,b)};Od.quickPerm=function(a){for(var b=[],c=[],d=[],e,f,h=0;h<a;)c[h]=h+1,d[h]=0,++h;b.push(c.slice()); +for(h=1;h<a;)d[h]<h?(e=h%2*d[h],f=c[e],c[e]=c[h],c[h]=f,b.push(c.slice()),d[h]++,h=1):(d[h]=0,++h);return b};Od.equals=function(a,b,c){if(a.length!=b.length)return!1;for(var d=0,e=a.length;d<e;){if(!c(a[d],b[d]))return!1;++d}return!0};Od.split=function(a,b,c){Ba._assert(0==b%c,"n is not a multiple of k(n % k == 0)",{fileName:"C:/Users/Adven/AppData/Local/Stencyl/libs/haxelib/Stencyl/ds/1d23c8a6f89f0f3a80158b94ca285e4e61cf982d/src/polygonal/ds/tools/ArrayTools.hx",lineNumber:464,className:"polygonal.ds.tools.ArrayTools", +methodName:"split"});for(var d=[],e=null,f=0;f<b;){var h=f++;0==h%c&&(e=[],d[h/c|0]=e);e.push(a[h])}return d};Od.pairwise=function(a,b,c){var d=0;for(Ba._assert(0==(c&1),"max & 1 == 0",{fileName:"C:/Users/Adven/AppData/Local/Stencyl/libs/haxelib/Stencyl/ds/1d23c8a6f89f0f3a80158b94ca285e4e61cf982d/src/polygonal/ds/tools/ArrayTools.hx",lineNumber:489,className:"polygonal.ds.tools.ArrayTools",methodName:"pairwise"});d<c;)b(d,a[d],a[d+1]),d+=2};Od.bruteforce=function(a,b){for(var c=0,d,e=a.length,f=e- +1,h;c<f;){h=a[c];for(d=c+1;d<e;)b(h,a[d]),++d;++c}};Od._quickSort=function(a,b,c,d){var e=b+c-1,f=b,h=e;if(1<c){var l=b+(c>>1);c=b+c-1;var k=a[b],m=a[l],n=a[c],p=d(k,n);l=0>p&&0>d(k,m)?0>d(m,n)?l:c:0>d(m,k)&&0>d(m,n)?0>p?b:c:0>d(n,k)?l:b;c=a[l];for(a[l]=a[b];f<h;){for(;0>d(c,a[h])&&f<h;)--h;h!=f&&(a[f]=a[h],++f);for(;0<d(c,a[f])&&f<h;)++f;h!=f&&(a[h]=a[f],--h)}a[f]=c;Od._quickSort(a,b,f-b,d);Od._quickSort(a,f+1,e-f,d)}};var Ba=function(){};k["polygonal.ds.tools.Assert"]=Ba;Ba.__name__="polygonal.ds.tools.Assert"; +Ba._assert=function(a,b,c){if(!a)throw a="in file "+c.fileName+", line "+c.lineNumber,Error("Assertion failed"+(null!=b?": ":" ")+(null==b?a:""+b+" ("+a+")"));};var Fg=function(){};k["polygonal.ds.tools.GrowthRate"]=Fg;Fg.__name__="polygonal.ds.tools.GrowthRate";Fg.compute=function(a,b){Ba._assert(-3<=a,"invalid growth rate(rate >= -3)",{fileName:"C:/Users/Adven/AppData/Local/Stencyl/libs/haxelib/Stencyl/ds/1d23c8a6f89f0f3a80158b94ca285e4e61cf982d/src/polygonal/ds/tools/GrowthRate.hx",lineNumber:52, +className:"polygonal.ds.tools.GrowthRate",methodName:"compute"});if(0<a)b+=a;else switch(a){case -3:b<<=1;break;case -2:b=(3*b>>1)+1;break;case -1:a=b+1;b=(a>>3)+(9>a?3:6)+a;break;case 0:throw R.thrown("out of space");}return b};var Hb=function(){};k["polygonal.ds.tools.NativeArrayTools"]=Hb;Hb.__name__="polygonal.ds.tools.NativeArrayTools";Hb.alloc=function(a){return Array(a)};Hb.get=function(a,b){return a[b]};Hb.set=function(a,b,c){a[b]=c};Hb.size=function(a){return a.length};Hb.toArray=function(a, +b,c,d){Ba._assert(0<=b&&b<a.length,"first index out of range(first >= 0 && first < size(src))",{fileName:"C:/Users/Adven/AppData/Local/Stencyl/libs/haxelib/Stencyl/ds/1d23c8a6f89f0f3a80158b94ca285e4e61cf982d/src/polygonal/ds/tools/NativeArrayTools.hx",lineNumber:140,className:"polygonal.ds.tools.NativeArrayTools",methodName:"toArray"});Ba._assert(0<=c&&b+c<=a.length,"len out of range(len >= 0 && first + len <= size(src))",{fileName:"C:/Users/Adven/AppData/Local/Stencyl/libs/haxelib/Stencyl/ds/1d23c8a6f89f0f3a80158b94ca285e4e61cf982d/src/polygonal/ds/tools/NativeArrayTools.hx", +lineNumber:141,className:"polygonal.ds.tools.NativeArrayTools",methodName:"toArray"});if(0==c)return[];Ba._assert(0<=c,"len >= 0",{fileName:"C:/Users/Adven/AppData/Local/Stencyl/libs/haxelib/Stencyl/ds/1d23c8a6f89f0f3a80158b94ca285e4e61cf982d/src/polygonal/ds/tools/ArrayTools.hx",lineNumber:37,className:"polygonal.ds.tools.ArrayTools",methodName:"alloc"});d=Array(c);if(0==b)for(var e=0;e<c;){var f=e++;d[f]=a[f]}else for(e=b,c=b+c;e<c;)f=e++,d[f-b]=a[f];return d};Hb.ofArray=function(a){return a.slice(0, +a.length)};Hb.blit=function(a,b,c,d,e){if(0<e)if(Ba._assert(b<a.length,"srcPos out of range(srcPos < size(src))",{fileName:"C:/Users/Adven/AppData/Local/Stencyl/libs/haxelib/Stencyl/ds/1d23c8a6f89f0f3a80158b94ca285e4e61cf982d/src/polygonal/ds/tools/NativeArrayTools.hx",lineNumber:197,className:"polygonal.ds.tools.NativeArrayTools",methodName:"blit"}),Ba._assert(d<c.length,"dstPos out of range(dstPos < size(dst))",{fileName:"C:/Users/Adven/AppData/Local/Stencyl/libs/haxelib/Stencyl/ds/1d23c8a6f89f0f3a80158b94ca285e4e61cf982d/src/polygonal/ds/tools/NativeArrayTools.hx", +lineNumber:198,className:"polygonal.ds.tools.NativeArrayTools",methodName:"blit"}),Ba._assert(b+e<=a.length&&d+e<=c.length,"n out of range(srcPos + n <= size(src) && dstPos + n <= size(dst))",{fileName:"C:/Users/Adven/AppData/Local/Stencyl/libs/haxelib/Stencyl/ds/1d23c8a6f89f0f3a80158b94ca285e4e61cf982d/src/polygonal/ds/tools/NativeArrayTools.hx",lineNumber:199,className:"polygonal.ds.tools.NativeArrayTools",methodName:"blit"}),a==c)if(b<d){var f=b+e;b=d+e;for(var h=0;h<e;)h++,--f,--b,a[b]=a[f]}else{if(b> +d)for(f=b,b=d,h=0;h<e;)h++,a[b]=a[f],++f,++b}else if(0==b&&0==d)for(h=0;h<e;)f=h++,c[f]=a[f];else if(0==b)for(h=0;h<e;)f=h++,c[d+f]=a[f];else if(0==d)for(h=0;h<e;)f=h++,c[f]=a[b+f];else for(h=0;h<e;)f=h++,c[d+f]=a[b+f]};Hb.copy=function(a){return a.slice(0)};Hb.zero=function(a,b,c){null==c&&(c=0);null==b&&(b=0);c=0>=c?a.length:b+c;Ba._assert(0<=b&&b<a.length,"min >= 0 && min < size(dst)",{fileName:"C:/Users/Adven/AppData/Local/Stencyl/libs/haxelib/Stencyl/ds/1d23c8a6f89f0f3a80158b94ca285e4e61cf982d/src/polygonal/ds/tools/NativeArrayTools.hx", +lineNumber:293,className:"polygonal.ds.tools.NativeArrayTools",methodName:"zero"});for(Ba._assert(c<=a.length,"max <= size(dst)",{fileName:"C:/Users/Adven/AppData/Local/Stencyl/libs/haxelib/Stencyl/ds/1d23c8a6f89f0f3a80158b94ca285e4e61cf982d/src/polygonal/ds/tools/NativeArrayTools.hx",lineNumber:294,className:"polygonal.ds.tools.NativeArrayTools",methodName:"zero"});b<c;)a[b++]=0;return a};Hb.init=function(a,b,c,d){null==d&&(d=0);null==c&&(c=0);d=0>=d?a.length:c+d;Ba._assert(0<=c&&c<a.length,"min >= 0 && min < size(a)", +{fileName:"C:/Users/Adven/AppData/Local/Stencyl/libs/haxelib/Stencyl/ds/1d23c8a6f89f0f3a80158b94ca285e4e61cf982d/src/polygonal/ds/tools/NativeArrayTools.hx",lineNumber:315,className:"polygonal.ds.tools.NativeArrayTools",methodName:"init"});for(Ba._assert(d<=a.length,"max <= size(a)",{fileName:"C:/Users/Adven/AppData/Local/Stencyl/libs/haxelib/Stencyl/ds/1d23c8a6f89f0f3a80158b94ca285e4e61cf982d/src/polygonal/ds/tools/NativeArrayTools.hx",lineNumber:316,className:"polygonal.ds.tools.NativeArrayTools", +methodName:"init"});c<d;)a[c++]=b;return a};Hb.nullify=function(a,b,c){null==c&&(c=0);null==b&&(b=0);c=0>=c?a.length:b+c;Ba._assert(0<=b&&b<a.length,"min >= 0 && min < size(a)",{fileName:"C:/Users/Adven/AppData/Local/Stencyl/libs/haxelib/Stencyl/ds/1d23c8a6f89f0f3a80158b94ca285e4e61cf982d/src/polygonal/ds/tools/NativeArrayTools.hx",lineNumber:331,className:"polygonal.ds.tools.NativeArrayTools",methodName:"nullify"});for(Ba._assert(c<=a.length,"max <= size(a)",{fileName:"C:/Users/Adven/AppData/Local/Stencyl/libs/haxelib/Stencyl/ds/1d23c8a6f89f0f3a80158b94ca285e4e61cf982d/src/polygonal/ds/tools/NativeArrayTools.hx", +lineNumber:332,className:"polygonal.ds.tools.NativeArrayTools",methodName:"nullify"});b<c;)a[b++]=null;return a};Hb.binarySearchCmp=function(a,b,c,d,e){Ba._assert(null!=a,"a != null",{fileName:"C:/Users/Adven/AppData/Local/Stencyl/libs/haxelib/Stencyl/ds/1d23c8a6f89f0f3a80158b94ca285e4e61cf982d/src/polygonal/ds/tools/NativeArrayTools.hx",lineNumber:351,className:"polygonal.ds.tools.NativeArrayTools",methodName:"binarySearchCmp"});Ba._assert(null!=e,"cmp != null",{fileName:"C:/Users/Adven/AppData/Local/Stencyl/libs/haxelib/Stencyl/ds/1d23c8a6f89f0f3a80158b94ca285e4e61cf982d/src/polygonal/ds/tools/NativeArrayTools.hx", +lineNumber:352,className:"polygonal.ds.tools.NativeArrayTools",methodName:"binarySearchCmp"});Ba._assert(0<=c&&c<a.length,"min >= 0 && min < size(a)",{fileName:"C:/Users/Adven/AppData/Local/Stencyl/libs/haxelib/Stencyl/ds/1d23c8a6f89f0f3a80158b94ca285e4e61cf982d/src/polygonal/ds/tools/NativeArrayTools.hx",lineNumber:353,className:"polygonal.ds.tools.NativeArrayTools",methodName:"binarySearchCmp"});Ba._assert(d<a.length,"max < size(a)",{fileName:"C:/Users/Adven/AppData/Local/Stencyl/libs/haxelib/Stencyl/ds/1d23c8a6f89f0f3a80158b94ca285e4e61cf982d/src/polygonal/ds/tools/NativeArrayTools.hx", +lineNumber:354,className:"polygonal.ds.tools.NativeArrayTools",methodName:"binarySearchCmp"});for(var f,h=d+1;c<h;)f=c+(h-c>>1),0>e(a[f],b)?c=f+1:h=f;return c<=d&&0==e(a[c],b)?c:~c};Hb.binarySearchf=function(a,b,c,d){Ba._assert(null!=a,"a != null",{fileName:"C:/Users/Adven/AppData/Local/Stencyl/libs/haxelib/Stencyl/ds/1d23c8a6f89f0f3a80158b94ca285e4e61cf982d/src/polygonal/ds/tools/NativeArrayTools.hx",lineNumber:379,className:"polygonal.ds.tools.NativeArrayTools",methodName:"binarySearchf"});Ba._assert(0<= +c&&c<a.length,"min >= 0 && min < size(a)",{fileName:"C:/Users/Adven/AppData/Local/Stencyl/libs/haxelib/Stencyl/ds/1d23c8a6f89f0f3a80158b94ca285e4e61cf982d/src/polygonal/ds/tools/NativeArrayTools.hx",lineNumber:380,className:"polygonal.ds.tools.NativeArrayTools",methodName:"binarySearchf"});Ba._assert(d<a.length,"max < size(a)",{fileName:"C:/Users/Adven/AppData/Local/Stencyl/libs/haxelib/Stencyl/ds/1d23c8a6f89f0f3a80158b94ca285e4e61cf982d/src/polygonal/ds/tools/NativeArrayTools.hx",lineNumber:381, +className:"polygonal.ds.tools.NativeArrayTools",methodName:"binarySearchf"});for(var e,f=d+1;c<f;)e=c+(f-c>>1),a[e]<b?c=e+1:f=e;return c<=d&&a[c]==b?c:~c};Hb.binarySearchi=function(a,b,c,d){Ba._assert(null!=a,"a != null",{fileName:"C:/Users/Adven/AppData/Local/Stencyl/libs/haxelib/Stencyl/ds/1d23c8a6f89f0f3a80158b94ca285e4e61cf982d/src/polygonal/ds/tools/NativeArrayTools.hx",lineNumber:406,className:"polygonal.ds.tools.NativeArrayTools",methodName:"binarySearchi"});Ba._assert(0<=c&&c<a.length,"min >= 0 && min < size(a)", +{fileName:"C:/Users/Adven/AppData/Local/Stencyl/libs/haxelib/Stencyl/ds/1d23c8a6f89f0f3a80158b94ca285e4e61cf982d/src/polygonal/ds/tools/NativeArrayTools.hx",lineNumber:407,className:"polygonal.ds.tools.NativeArrayTools",methodName:"binarySearchi"});Ba._assert(d<a.length,"max < size(a)",{fileName:"C:/Users/Adven/AppData/Local/Stencyl/libs/haxelib/Stencyl/ds/1d23c8a6f89f0f3a80158b94ca285e4e61cf982d/src/polygonal/ds/tools/NativeArrayTools.hx",lineNumber:408,className:"polygonal.ds.tools.NativeArrayTools", +methodName:"binarySearchi"});for(var e,f=d+1;c<f;)e=c+(f-c>>1),a[e]<b?c=e+1:f=e;return c<=d&&a[c]==b?c:~c};var mi=function(){};k["polygonal.ds.tools.Shuffle"]=mi;mi.__name__="polygonal.ds.tools.Shuffle";mi.f=function(){return Math.random()};mi.setRandom=function(a){mi.f=a};mi.frand=function(){return mi.f()};var sp=function(a,b,c){w.call(this,b)};k["scripts.ActorEvents_479"]=sp;sp.__name__="scripts.ActorEvents_479";sp.__super__=w;sp.prototype=u(w.prototype,{_event_Updating:function(a){this.wrapper.enabled&& +!h.engine.getGameAttribute("Multiplayer On")&&(f.isKeyDown("Left")&&f.simulateKeyPress("A"),f.isKeyReleased("Left")&&f.simulateKeyRelease("A"),f.isKeyDown("Up")&&f.simulateKeyPress("W"),f.isKeyReleased("Up")&&f.simulateKeyRelease("W"),f.isKeyDown("Right")&&f.simulateKeyPress("D"),f.isKeyReleased("Right")&&f.simulateKeyRelease("D"),f.isKeyDown("Space")&&f.simulateKeyPress("W"),f.isKeyReleased("Space")&&f.simulateKeyRelease("W"))},_event_DrawingCopy:function(a,b,c){this.wrapper.enabled&&!h.engine.getGameAttribute("Multiplayer On")&& +f.engine.isPaused()&&(f.isKeyDown("Left")||f.simulateKeyRelease("A"),f.isKeyDown("Up")||f.simulateKeyRelease("W"),f.isKeyDown("Right")||f.simulateKeyRelease("D"),f.isKeyDown("Space")||f.simulateKeyRelease("W"))},init:function(){this.actor.moveToTop();"Results Screen"!=f.getCurrentSceneName()&&f.createRecycledActor(f.getActorType(527),-32,-32,0);f.getLastCreatedActor().setX(this.actor.getXCenter()-f.getLastCreatedActor().getWidth()/2);f.getLastCreatedActor().setY(this.actor.getYCenter()-f.getLastCreatedActor().getHeight()/ +2);h.engine.getGameAttribute("Multiplayer On")?(f.createRecycledActor(f.getActorType(654),this.actor.getX(),this.actor.getY(),0),f.createRecycledActor(f.getActorType(686),this.actor.getX(),this.actor.getY(),0)):f.createRecycledActor(f.getActorType(688),this.actor.getX(),this.actor.getY(),0);this.actor.setActorValue("P1",!0);this.addListener(this.actor.whenUpdated,q(this,this._event_Updating));this.addListener(this.actor.whenDrawing,q(this,this._event_DrawingCopy))},forwardMessage:function(a){},__class__:sp}); +var tp=function(a,b,c){w.call(this,b)};k["scripts.ActorEvents_484"]=tp;tp.__name__="scripts.ActorEvents_484";tp.__super__=w;tp.prototype=u(w.prototype,{init:function(){},forwardMessage:function(a){},__class__:tp});var up=function(a,b,c){w.call(this,b)};k["scripts.ActorEvents_486"]=up;up.__name__="scripts.ActorEvents_486";up.__super__=w;up.prototype=u(w.prototype,{init:function(){},forwardMessage:function(a){},__class__:up});var vp=function(a,b,c){w.call(this,b);this.nameMap.h["Can Move"]="_CanMove"; +this._CanMove=!1;this.nameMap.h["Moving Right"]="_MovingRight";this._MovingRight=!1};k["scripts.ActorEvents_488"]=vp;vp.__name__="scripts.ActorEvents_488";vp.__super__=w;vp.prototype=u(w.prototype,{_CanMove:null,_MovingRight:null,_event_Updating:function(a){this.wrapper.enabled&&this.actor.moveToBottom()},init:function(){var a=this;this.actor.setAnimation("0");f.runLater(1400,function(b){a.actor.setAnimation("1");f.createRecycledActor(f.getActorType(527),-32,-32,0);f.getLastCreatedActor().setX(a.actor.getXCenter()- +f.getLastCreatedActor().getWidth()/2);f.getLastCreatedActor().setY(a.actor.getYCenter()-f.getLastCreatedActor().getHeight()/2-8);f.runLater(400,function(b){a._CanMove=!0;a._MovingRight=!0;a.actor.shout("_customEvent_StartMovingSaw")},a.actor)},this.actor);h.engine.getGameAttribute("Mute Sounds")||(f.playSound(f.getSound(553)),f.runLater(200,function(b){h.engine.getGameAttribute("Mute Sounds")||f.playSound(f.getSound(553));f.runLater(200,function(b){h.engine.getGameAttribute("Mute Sounds")||f.playSound(f.getSound(553)); +f.runLater(200,function(b){h.engine.getGameAttribute("Mute Sounds")||f.playSound(f.getSound(553));f.runLater(200,function(b){h.engine.getGameAttribute("Mute Sounds")||f.playSound(f.getSound(553));f.runLater(200,function(b){h.engine.getGameAttribute("Mute Sounds")||f.playSound(f.getSound(553));f.runLater(200,function(a){h.engine.getGameAttribute("Mute Sounds")||f.playSound(f.getSound(553))},a.actor)},a.actor)},a.actor)},a.actor)},a.actor)},this.actor));this.addListener(this.actor.whenUpdated,q(this, +this._event_Updating))},forwardMessage:function(a){},__class__:vp});var wp=function(a,b,c){w.call(this,b)};k["scripts.ActorEvents_490"]=wp;wp.__name__="scripts.ActorEvents_490";wp.__super__=w;wp.prototype=u(w.prototype,{_event_Updating:function(a){this.wrapper.enabled&&this.actor.getScreenY()>f.getScreenHeight()&&f.recycleActor(this.actor)},init:function(){var a=this;this.actor.makeAlwaysSimulate();this.actor.setY(f.getScreenY()-this.actor.getHeight());this.actor.setYVelocity(2);f.runLater(1200,function(b){a.actor.setYVelocity(10); +a.actor.setAnimation("Down");h.engine.getGameAttribute("Mute Sounds")||f.playSound(f.getSound(562))},this.actor);this.addListener(this.actor.whenUpdated,q(this,this._event_Updating))},forwardMessage:function(a){},__class__:wp});var xp=function(a,b,c){w.call(this,b)};k["scripts.ActorEvents_494"]=xp;xp.__name__="scripts.ActorEvents_494";xp.__super__=w;xp.prototype=u(w.prototype,{init:function(){},forwardMessage:function(a){},__class__:xp});var yp=function(a,b,c){w.call(this,b)};k["scripts.ActorEvents_497"]= +yp;yp.__name__="scripts.ActorEvents_497";yp.__super__=w;yp.prototype=u(w.prototype,{init:function(){},forwardMessage:function(a){},__class__:yp});var zp=function(a,b,c){w.call(this,b);this.nameMap.h["Moving Right?"]="_MovingRight";this._MovingRight=!1;this.nameMap.h["Moving Up?"]="_MovingUp";this._MovingUp=!1;this.nameMap.h["Can Move"]="_CanMove";this._CanMove=!1;this.nameMap.h["Random Starting Direction"]="_RandomStartingDirection";this._RandomStartingDirection=0};k["scripts.ActorEvents_499"]=zp; +zp.__name__="scripts.ActorEvents_499";zp.__super__=w;zp.prototype=u(w.prototype,{_MovingRight:null,_MovingUp:null,_CanMove:null,_RandomStartingDirection:null,_event_ActorAny:function(a){this.wrapper.enabled&&(a.thisFromTop?this._MovingUp=!1:a.thisFromBottom?this._MovingUp=!0:a.thisFromLeft?this._MovingRight=!0:a.thisFromRight&&(this._MovingRight=!1))},_event_Updating:function(a){this.wrapper.enabled&&(this._CanMove&&(this._MovingUp?this.actor.setYVelocity(-5):this.actor.setYVelocity(5),this._MovingRight? +this.actor.setXVelocity(5):this.actor.setXVelocity(-5)),this.actor.getY()<f.getScreenY()-8&&(this._MovingUp=!1))},init:function(){var a=this;this.actor.makeAlwaysSimulate();this.actor.setAnimation("0");this._RandomStartingDirection=f.randomInt(0,1);f.runLater(1400,function(b){a.actor.setAnimation("1");f.createRecycledActor(f.getActorType(527),-32,-32,0);f.getLastCreatedActor().setX(a.actor.getXCenter()-f.getLastCreatedActor().getWidth()/2);f.getLastCreatedActor().setY(a.actor.getYCenter()-f.getLastCreatedActor().getHeight()/ +2);f.runLater(100,function(b){a._MovingUp=!1;a._CanMove=!0;a._MovingRight=0==a._RandomStartingDirection?!0:!1},a.actor)},this.actor);h.engine.getGameAttribute("Mute Sounds")||(f.playSound(f.getSound(553)),f.runLater(200,function(b){h.engine.getGameAttribute("Mute Sounds")||f.playSound(f.getSound(553));f.runLater(200,function(b){h.engine.getGameAttribute("Mute Sounds")||f.playSound(f.getSound(553));f.runLater(200,function(b){h.engine.getGameAttribute("Mute Sounds")||f.playSound(f.getSound(553));f.runLater(200, +function(b){h.engine.getGameAttribute("Mute Sounds")||f.playSound(f.getSound(553));f.runLater(200,function(b){h.engine.getGameAttribute("Mute Sounds")||f.playSound(f.getSound(553));f.runLater(200,function(a){h.engine.getGameAttribute("Mute Sounds")||f.playSound(f.getSound(553))},a.actor)},a.actor)},a.actor)},a.actor)},a.actor)},this.actor));this.addListener(this.actor.whenCollided,q(this,this._event_ActorAny));this.addListener(this.actor.whenUpdated,q(this,this._event_Updating))},forwardMessage:function(a){}, +__class__:zp});var Ap=function(a,b,c){w.call(this,b)};k["scripts.ActorEvents_501"]=Ap;Ap.__name__="scripts.ActorEvents_501";Ap.__super__=w;Ap.prototype=u(w.prototype,{init:function(){f.recycleActor(this.actor)},forwardMessage:function(a){},__class__:Ap});var Bp=function(a,b,c){w.call(this,b)};k["scripts.ActorEvents_503"]=Bp;Bp.__name__="scripts.ActorEvents_503";Bp.__super__=w;Bp.prototype=u(w.prototype,{init:function(){},forwardMessage:function(a){},__class__:Bp});var Cp=function(a,b,c){w.call(this, +b)};k["scripts.ActorEvents_505"]=Cp;Cp.__name__="scripts.ActorEvents_505";Cp.__super__=w;Cp.prototype=u(w.prototype,{init:function(){this.actor.anchorToScreen();this.actor.setX(-16+da.leftInset);this.actor.setY(f.getScreenHeight()-this.actor.getHeight()+8-da.bottomInset);f.createRecycledActor(f.getActorType(509),this.actor.getX()+this.actor.getWidth(),this.actor.getY(),0);h.engine.getGameAttribute("Hide Mobile Controls")&&this.actor.disableActorDrawing()},forwardMessage:function(a){},__class__:Cp}); +var Dp=function(a,b,c){w.call(this,b)};k["scripts.ActorEvents_507"]=Dp;Dp.__name__="scripts.ActorEvents_507";Dp.__super__=w;Dp.prototype=u(w.prototype,{init:function(){this.actor.anchorToScreen();this.actor.setX(f.getScreenWidth()-f.getScreenWidth()+da.leftInset);this.actor.setY(f.getScreenHeight()-this.actor.getHeight()-da.bottomInset);f.createRecycledActor(f.getActorType(511),this.actor.getX()+this.actor.getWidth(),this.actor.getY(),0);h.engine.getGameAttribute("Hide Mobile Controls")&&this.actor.disableActorDrawing()}, +forwardMessage:function(a){},__class__:Dp});var Ep=function(a,b,c){w.call(this,b)};k["scripts.ActorEvents_509"]=Ep;Ep.__name__="scripts.ActorEvents_509";Ep.__super__=w;Ep.prototype=u(w.prototype,{init:function(){this.actor.anchorToScreen();h.engine.getGameAttribute("Hide Mobile Controls")&&this.actor.disableActorDrawing()},forwardMessage:function(a){},__class__:Ep});var Fp=function(a,b,c){w.call(this,b)};k["scripts.ActorEvents_511"]=Fp;Fp.__name__="scripts.ActorEvents_511";Fp.__super__=w;Fp.prototype= +u(w.prototype,{init:function(){this.actor.anchorToScreen();h.engine.getGameAttribute("Hide Mobile Controls")&&this.actor.disableActorDrawing()},forwardMessage:function(a){},__class__:Fp});var Gp=function(a,b,c){w.call(this,b)};k["scripts.ActorEvents_515"]=Gp;Gp.__name__="scripts.ActorEvents_515";Gp.__super__=w;Gp.prototype=u(w.prototype,{init:function(){this.actor.anchorToScreen();this.actor.setX(f.getScreenWidth()-this.actor.getWidth()+16-da.rightInset);this.actor.setY(f.getScreenHeight()-this.actor.getHeight()+ +8-da.bottomInset);h.engine.getGameAttribute("Hide Mobile Controls")&&this.actor.disableActorDrawing()},forwardMessage:function(a){},__class__:Gp});var Hp=function(a,b,c){w.call(this,b)};k["scripts.ActorEvents_517"]=Hp;Hp.__name__="scripts.ActorEvents_517";Hp.__super__=w;Hp.prototype=u(w.prototype,{init:function(){this.actor.anchorToScreen();this.actor.setX(f.getScreenWidth()-this.actor.getWidth()-da.rightInset);this.actor.setY(f.getScreenHeight()-this.actor.getHeight()-da.bottomInset);h.engine.getGameAttribute("Hide Mobile Controls")&& +this.actor.disableActorDrawing()},forwardMessage:function(a){},__class__:Hp});var Ip=function(a,b,c){w.call(this,b)};k["scripts.ActorEvents_519"]=Ip;Ip.__name__="scripts.ActorEvents_519";Ip.__super__=w;Ip.prototype=u(w.prototype,{init:function(){f.engine.isPaused()?this.actor.setX(f.getScreenWidth()-this.actor.getWidth()-da.rightInset+64):this.actor.setX(f.getScreenWidth()-this.actor.getWidth()-da.rightInset);this.actor.setY(f.getScreenHeight()-f.getScreenHeight());h.engine.getGameAttribute("Hide Mobile Controls")&& +this.actor.disableActorDrawing()},forwardMessage:function(a){},__class__:Ip});var Jp=function(a,b,c){w.call(this,b);this.nameMap.h["Spawning Direction Random"]="_SpawningDirectionRandom";this._SpawningDirectionRandom=0};k["scripts.ActorEvents_521"]=Jp;Jp.__name__="scripts.ActorEvents_521";Jp.__super__=w;Jp.prototype=u(w.prototype,{_SpawningDirectionRandom:null,init:function(){var a=this;this.actor.moveToBottom();this._SpawningDirectionRandom=f.randomInt(0,1);f.runLater(100,function(b){f.createRecycledActor(f.getActorType(549), +-32,-32,1);f.getLastCreatedActor().moveToBottom();f.getLastCreatedActor().setX(a.actor.getXCenter()-f.getLastCreatedActor().getWidth()/2);f.getLastCreatedActor().setY(a.actor.getYCenter()-f.getLastCreatedActor().getHeight()/2-12);1==a._SpawningDirectionRandom&&f.getLastCreatedActor().shout("_customEvent_SpinLeft");f.createRecycledActor(f.getActorType(549),-32,-32,1);f.getLastCreatedActor().moveToBottom();f.getLastCreatedActor().setX(a.actor.getXCenter()-f.getLastCreatedActor().getWidth()/2);f.getLastCreatedActor().setY(a.actor.getYCenter()- +f.getLastCreatedActor().getHeight()/2-22);1==a._SpawningDirectionRandom&&f.getLastCreatedActor().shout("_customEvent_SpinLeft");f.createRecycledActor(f.getActorType(549),-32,-32,1);f.getLastCreatedActor().moveToBottom();f.getLastCreatedActor().setX(a.actor.getXCenter()-f.getLastCreatedActor().getWidth()/2);f.getLastCreatedActor().setY(a.actor.getYCenter()-f.getLastCreatedActor().getHeight()/2-32);1==a._SpawningDirectionRandom&&f.getLastCreatedActor().shout("_customEvent_SpinLeft");f.createRecycledActor(f.getActorType(525), +-32,-32,1);f.getLastCreatedActor().moveToBottom();f.getLastCreatedActor().setX(a.actor.getXCenter()-f.getLastCreatedActor().getWidth()/2);f.getLastCreatedActor().setY(a.actor.getYCenter()-f.getLastCreatedActor().getHeight()/2-51);1==a._SpawningDirectionRandom&&f.getLastCreatedActor().shout("_customEvent_SpinLeft")},this.actor)},forwardMessage:function(a){},__class__:Jp});var Kp=function(a,b,c){w.call(this,b)};k["scripts.ActorEvents_525"]=Kp;Kp.__name__="scripts.ActorEvents_525";Kp.__super__=w;Kp.prototype= +u(w.prototype,{init:function(){},forwardMessage:function(a){},__class__:Kp});var Lp=function(a,b,c){w.call(this,b)};k["scripts.ActorEvents_527"]=Lp;Lp.__name__="scripts.ActorEvents_527";Lp.__super__=w;Lp.prototype=u(w.prototype,{init:function(){},forwardMessage:function(a){},__class__:Lp});var Mp=function(a,b,c){w.call(this,b)};k["scripts.ActorEvents_529"]=Mp;Mp.__name__="scripts.ActorEvents_529";Mp.__super__=w;Mp.prototype=u(w.prototype,{init:function(){var a=this;this.actor.setAnimation("0");f.runLater(1400, +function(b){a.actor.setAnimation("1");f.createRecycledActor(f.getActorType(527),-32,-32,0);f.getLastCreatedActor().setX(a.actor.getXCenter()-f.getLastCreatedActor().getWidth()/2);f.getLastCreatedActor().setY(a.actor.getYCenter()-f.getLastCreatedActor().getHeight()/2)},this.actor);h.engine.getGameAttribute("Mute Sounds")||(f.playSound(f.getSound(553)),f.runLater(200,function(b){h.engine.getGameAttribute("Mute Sounds")||f.playSound(f.getSound(553));f.runLater(200,function(b){h.engine.getGameAttribute("Mute Sounds")|| +f.playSound(f.getSound(553));f.runLater(200,function(b){h.engine.getGameAttribute("Mute Sounds")||f.playSound(f.getSound(553));f.runLater(200,function(b){h.engine.getGameAttribute("Mute Sounds")||f.playSound(f.getSound(553));f.runLater(200,function(b){h.engine.getGameAttribute("Mute Sounds")||f.playSound(f.getSound(553));f.runLater(200,function(a){h.engine.getGameAttribute("Mute Sounds")||f.playSound(f.getSound(553))},a.actor)},a.actor)},a.actor)},a.actor)},a.actor)},this.actor))},forwardMessage:function(a){}, +__class__:Mp});var Np=function(a,b,c){w.call(this,b)};k["scripts.ActorEvents_533"]=Np;Np.__name__="scripts.ActorEvents_533";Np.__super__=w;Np.prototype=u(w.prototype,{init:function(){},forwardMessage:function(a){},__class__:Np});var Op=function(a,b,c){w.call(this,b)};k["scripts.ActorEvents_537"]=Op;Op.__name__="scripts.ActorEvents_537";Op.__super__=w;Op.prototype=u(w.prototype,{init:function(){},forwardMessage:function(a){},__class__:Op});var Pp=function(a,b,c){w.call(this,b)};k["scripts.ActorEvents_539"]= +Pp;Pp.__name__="scripts.ActorEvents_539";Pp.__super__=w;Pp.prototype=u(w.prototype,{init:function(){},forwardMessage:function(a){},__class__:Pp});var Qp=function(a,b,c){w.call(this,b)};k["scripts.ActorEvents_541"]=Qp;Qp.__name__="scripts.ActorEvents_541";Qp.__super__=w;Qp.prototype=u(w.prototype,{init:function(){},forwardMessage:function(a){},__class__:Qp});var Rp=function(a,b,c){w.call(this,b)};k["scripts.ActorEvents_543"]=Rp;Rp.__name__="scripts.ActorEvents_543";Rp.__super__=w;Rp.prototype=u(w.prototype, +{init:function(){},forwardMessage:function(a){},__class__:Rp});var Sp=function(a,b,c){w.call(this,b)};k["scripts.ActorEvents_549"]=Sp;Sp.__name__="scripts.ActorEvents_549";Sp.__super__=w;Sp.prototype=u(w.prototype,{init:function(){},forwardMessage:function(a){},__class__:Sp});var Tp=function(a,b,c){w.call(this,b)};k["scripts.ActorEvents_551"]=Tp;Tp.__name__="scripts.ActorEvents_551";Tp.__super__=w;Tp.prototype=u(w.prototype,{init:function(){var a=this;this.actor.moveDown();f.runLater(1400,function(b){f.createRecycledActor(f.getActorType(521), +-32,-32,1);f.getLastCreatedActor().setX(a.actor.getXCenter()-f.getLastCreatedActor().getWidth()/2);f.getLastCreatedActor().setY(a.actor.getY()+a.actor.getHeight()-16);f.createRecycledActor(f.getActorType(527),-32,-32,1);f.getLastCreatedActor().setX(a.actor.getXCenter()-f.getLastCreatedActor().getHeight()/2);f.getLastCreatedActor().setY(a.actor.getYCenter()-f.getLastCreatedActor().getHeight()/2);f.createRecycledActor(f.getActorType(527),-32,-32,1);f.getLastCreatedActor().setX(a.actor.getXCenter()- +f.getLastCreatedActor().getHeight()/2);f.getLastCreatedActor().setY(a.actor.getYCenter()-f.getLastCreatedActor().getHeight()/2+32);f.createRecycledActor(f.getActorType(527),-32,-32,1);f.getLastCreatedActor().setX(a.actor.getXCenter()-f.getLastCreatedActor().getHeight()/2);f.getLastCreatedActor().setY(a.actor.getYCenter()-f.getLastCreatedActor().getHeight()/2-32);f.recycleActor(a.actor)},this.actor);h.engine.getGameAttribute("Mute Sounds")||(f.playSound(f.getSound(553)),f.runLater(200,function(b){h.engine.getGameAttribute("Mute Sounds")|| +f.playSound(f.getSound(553));f.runLater(200,function(b){h.engine.getGameAttribute("Mute Sounds")||f.playSound(f.getSound(553));f.runLater(200,function(b){h.engine.getGameAttribute("Mute Sounds")||f.playSound(f.getSound(553));f.runLater(200,function(b){h.engine.getGameAttribute("Mute Sounds")||f.playSound(f.getSound(553));f.runLater(200,function(b){h.engine.getGameAttribute("Mute Sounds")||f.playSound(f.getSound(553));f.runLater(200,function(a){h.engine.getGameAttribute("Mute Sounds")||f.playSound(f.getSound(553))}, +a.actor)},a.actor)},a.actor)},a.actor)},a.actor)},this.actor))},forwardMessage:function(a){},__class__:Tp});var Up=function(a,b,c){w.call(this,b)};k["scripts.ActorEvents_555"]=Up;Up.__name__="scripts.ActorEvents_555";Up.__super__=w;Up.prototype=u(w.prototype,{init:function(){this.actor.makeAlwaysSimulate()},forwardMessage:function(a){},__class__:Up});var Vp=function(a,b,c){w.call(this,b)};k["scripts.ActorEvents_558"]=Vp;Vp.__name__="scripts.ActorEvents_558";Vp.__super__=w;Vp.prototype=u(w.prototype, +{init:function(){},forwardMessage:function(a){},__class__:Vp});var Wp=function(a,b,c){w.call(this,b)};k["scripts.ActorEvents_560"]=Wp;Wp.__name__="scripts.ActorEvents_560";Wp.__super__=w;Wp.prototype=u(w.prototype,{init:function(){var a=this;this.actor.makeAlwaysSimulate();f.runLater(20,function(b){f.engine.pause();f.runLater(500,function(b){f.engine.unpause();f.recycleActor(a.actor)},a.actor)},this.actor)},forwardMessage:function(a){},__class__:Wp});var Xp=function(a,b,c){w.call(this,b);this.nameMap.h["Can Move"]= +"_CanMove";this._CanMove=!1;this.nameMap.h["Moving Right"]="_MovingRight";this._MovingRight=!1};k["scripts.ActorEvents_565"]=Xp;Xp.__name__="scripts.ActorEvents_565";Xp.__super__=w;Xp.prototype=u(w.prototype,{_CanMove:null,_MovingRight:null,_event_Updating:function(a){this.wrapper.enabled&&(this.actor.moveToBottom(),f.getCurrentSceneName())},init:function(){var a=this;this.actor.setAnimation("0");f.runLater(1400,function(b){a.actor.setAnimation("1");f.createRecycledActor(f.getActorType(527),-32,-32, +0);f.getLastCreatedActor().setX(a.actor.getXCenter()-f.getLastCreatedActor().getWidth()/2);f.getLastCreatedActor().setY(a.actor.getYCenter()-f.getLastCreatedActor().getHeight()/2-8);f.runLater(400,function(b){a._CanMove=!0;a._MovingRight=!1;a.actor.shout("_customEvent_StartMovingSaw")},a.actor)},this.actor);h.engine.getGameAttribute("Mute Sounds")||(f.playSound(f.getSound(553)),f.runLater(200,function(b){h.engine.getGameAttribute("Mute Sounds")||f.playSound(f.getSound(553));f.runLater(200,function(b){h.engine.getGameAttribute("Mute Sounds")|| +f.playSound(f.getSound(553));f.runLater(200,function(b){h.engine.getGameAttribute("Mute Sounds")||f.playSound(f.getSound(553));f.runLater(200,function(b){h.engine.getGameAttribute("Mute Sounds")||f.playSound(f.getSound(553));f.runLater(200,function(b){h.engine.getGameAttribute("Mute Sounds")||f.playSound(f.getSound(553));f.runLater(200,function(a){h.engine.getGameAttribute("Mute Sounds")||f.playSound(f.getSound(553))},a.actor)},a.actor)},a.actor)},a.actor)},a.actor)},this.actor));this.addListener(this.actor.whenUpdated, +q(this,this._event_Updating))},forwardMessage:function(a){},__class__:Xp});var Yp=function(a,b,c){w.call(this,b);this.nameMap.h["Random Sparkle"]="_RandomSparkle";this._RandomSparkle=0};k["scripts.ActorEvents_568"]=Yp;Yp.__name__="scripts.ActorEvents_568";Yp.__super__=w;Yp.prototype=u(w.prototype,{_RandomSparkle:null,init:function(){this.actor.makeAlwaysSimulate();this._RandomSparkle=f.randomInt(0,1);1==this._RandomSparkle&&this.actor.setAnimation("1")},forwardMessage:function(a){},__class__:Yp}); +var Zp=function(a,b,c){w.call(this,b);this.nameMap.h.Offset="_Offset";this._Offset=0;this.nameMap.h.Direction="_Direction";this._Direction=0;this.nameMap.h["Golden Carrot Number"]="_GoldenCarrotNumber";this._GoldenCarrotNumber=0;this.nameMap.h["Hit P1 in Versus?"]="_HitP1inVersus";this._HitP1inVersus=!1};k["scripts.ActorEvents_570"]=Zp;Zp.__name__="scripts.ActorEvents_570";Zp.__super__=w;Zp.prototype=u(w.prototype,{_Offset:null,_Direction:null,_GoldenCarrotNumber:null,_HitP1inVersus:null,_event_HitPlayer:function(a){if(this.wrapper.enabled){var b= +f.getActorGroup(0);var c=a.otherActor.getType();a=a.otherActor.getGroup();b=b==c||b==a}else b=!1;b&&(f.createRecycledActor(f.getActorType(572),-100,-100,0),f.getLastCreatedActor().setX(this.actor.getXCenter()-f.getLastCreatedActor().getWidth()/2),f.getLastCreatedActor().setY(this.actor.getYCenter()-f.getLastCreatedActor().getHeight()/2),h.engine.getGameAttribute("Mute Sounds")||f.playSound(f.getSound(574)),f.shoutToScene("_customEvent_SpawnCarrot"),h.engine.getGameAttribute("Multiplayer On")&&2== +h.engine.getGameAttribute("Multiplayer Mode")?(f.asBoolean(this.actor.getLastCollidedActor().getActorValue("P1"))&&(b=h.engine,c=h.engine.getGameAttribute("P1 Versus Score")+1,b.gameAttributes.h["P1 Versus Score"]=c,this._HitP1inVersus=!0),f.asBoolean(this.actor.getLastCollidedActor().getActorValue("P2"))&&(b=h.engine,c=h.engine.getGameAttribute("P2 Versus Score")+1,b.gameAttributes.h["P2 Versus Score"]=c,this._HitP1inVersus=!1),f.shoutToScene("_customEvent_EndRun")):(b=h.engine,c=h.engine.getGameAttribute("Carrot Counter")+ +1,b.gameAttributes.h["Carrot Counter"]=c),f.recycleActor(this.actor))},_event_SelfisKilled:function(){this.wrapper.enabled&&(h.engine.getGameAttribute("Multiplayer On")&&2==h.engine.getGameAttribute("Multiplayer Mode")?this._HitP1inVersus?(f.createRecycledActor(f.getActorType(610),-100,-100,0),f.getLastCreatedActor().setAnimation("1r")):(f.createRecycledActor(f.getActorType(610),-100,-100,0),f.getLastCreatedActor().setAnimation("1b")):f.createRecycledActor(f.getActorType(610),-100,-100,0),f.getLastCreatedActor().setX(this.actor.getXCenter()- +f.getLastCreatedActor().getWidth()/2),f.getLastCreatedActor().setY(this.actor.getYCenter()-f.getLastCreatedActor().getHeight()/2),f.getLastCreatedActor().moveBy(0,-16,2,ia.linear))},init:function(){this.actor.makeAlwaysSimulate();f.createRecycledActor(f.getActorType(527),-32,-32,0);f.getLastCreatedActor().setX(this.actor.getXCenter()-f.getLastCreatedActor().getWidth()/2);f.getLastCreatedActor().setY(this.actor.getYCenter()-f.getLastCreatedActor().getHeight()/2);this.actor.moveToBottom();this.addListener(this.actor.whenCollided, +q(this,this._event_HitPlayer));this.addListener(this.actor.whenKilled,q(this,this._event_SelfisKilled))},forwardMessage:function(a){},__class__:Zp});var $p=function(a,b,c){w.call(this,b)};k["scripts.ActorEvents_572"]=$p;$p.__name__="scripts.ActorEvents_572";$p.__super__=w;$p.prototype=u(w.prototype,{init:function(){this.actor.makeAlwaysSimulate()},forwardMessage:function(a){},__class__:$p});var aq=function(a,b,c){w.call(this,b)};k["scripts.ActorEvents_575"]=aq;aq.__name__="scripts.ActorEvents_575"; +aq.__super__=w;aq.prototype=u(w.prototype,{init:function(){},forwardMessage:function(a){},__class__:aq});var bq=function(a,b,c){w.call(this,b)};k["scripts.ActorEvents_577"]=bq;bq.__name__="scripts.ActorEvents_577";bq.__super__=w;bq.prototype=u(w.prototype,{init:function(){},forwardMessage:function(a){},__class__:bq});var cq=function(a,b,c){w.call(this,b)};k["scripts.ActorEvents_582"]=cq;cq.__name__="scripts.ActorEvents_582";cq.__super__=w;cq.prototype=u(w.prototype,{init:function(){this.actor.makeAlwaysSimulate()}, +forwardMessage:function(a){},__class__:cq});var dq=function(a,b,c){w.call(this,b)};k["scripts.ActorEvents_584"]=dq;dq.__name__="scripts.ActorEvents_584";dq.__super__=w;dq.prototype=u(w.prototype,{init:function(){this.actor.makeAlwaysSimulate()},forwardMessage:function(a){},__class__:dq});var eq=function(a,b,c){w.call(this,b)};k["scripts.ActorEvents_586"]=eq;eq.__name__="scripts.ActorEvents_586";eq.__super__=w;eq.prototype=u(w.prototype,{init:function(){this.actor.makeAlwaysSimulate();this.actor.anchorToScreen(); +this.actor.setX(f.getScreenWidth()-f.getScreenWidth()/2-this.actor.getWidth()/2);this.actor.setY(f.getScreenHeight()-f.getScreenHeight()/2-this.actor.getHeight()/2);this.actor.growTo(24,14,0,ia.linear);this.actor.fadeTo(.5,0,ia.linear)},forwardMessage:function(a){},__class__:eq});var fq=function(a,b,c){w.call(this,b);this.nameMap.h["Current Level"]="_CurrentLevel";this._CurrentLevel=0};k["scripts.ActorEvents_588"]=fq;fq.__name__="scripts.ActorEvents_588";fq.__super__=w;fq.prototype=u(w.prototype, +{_CurrentLevel:null,_event_Exitsself:function(a){this.wrapper.enabled&&-1==a&&this.actor.setAnimation("1")},_event_ReleasedonSelf:function(a){this.wrapper.enabled&&5==a&&this.actor.setAnimation("1")},_event_PressedonSelf:function(a){this.wrapper.enabled&&3==a&&(this.actor.setAnimation("2"),f.isTransitioning()||this._customEvent_quit())},_customEvent_quit:function(){this.actor.setAnimation("2");if(!f.isTransitioning()){f.stopSoundOnChannel(0);h.engine.getGameAttribute("Mute Sounds")||f.playSoundOnChannel(f.getSound(594), +2);for(var a=0,b=O.__cast(f.getActorGroup(12),xe).list;a<b.length;){var c=b[a];++a;null==c||c.dead||c.recycled||f.recycleActor(c)}f.runLater(450,function(a){f.engine.unpause();f.loopSoundOnChannel(f.getSound(626),0)},this.actor);a=va.get().scenes.h[12].getID();var d=c=b=0;null==d&&(d=0);null==c&&(c=0);null==b&&(b=0);var e=f.createFadeOut(.5,b<<16|c<<8|d);d=c=b=0;null==d&&(d=0);null==c&&(c=0);null==b&&(b=0);f.switchScene(a,e,f.createFadeIn(.5,b<<16|c<<8|d));pa.sendGameplayStop()}},init:function(){this.actor.makeAlwaysSimulate(); +this.actor.anchorToScreen();this.actor.setAnimation("1");this.addListener(this.actor.whenMousedOver,q(this,this._event_Exitsself));this.addListener(this.actor.whenMousedOver,q(this,this._event_ReleasedonSelf));this.addListener(this.actor.whenMousedOver,q(this,this._event_PressedonSelf))},forwardMessage:function(a){},__class__:fq});var gq=function(a,b,c){w.call(this,b)};k["scripts.ActorEvents_590"]=gq;gq.__name__="scripts.ActorEvents_590";gq.__super__=w;gq.prototype=u(w.prototype,{_event_ExitsSelf:function(a){this.wrapper.enabled&& +-1==a&&this.actor.setAnimation("1")},_event_PressedOn:function(a){this.wrapper.enabled&&3==a&&(this.actor.setAnimation("2"),f.isTransitioning()||(f.shoutToScene("_customEvent_Resume"),h.engine.getGameAttribute("Mute Sounds")||f.playSound(f.getSound(594))))},_event_ReleasedonSelf:function(a){this.wrapper.enabled&&5==a&&this.actor.setAnimation("1")},init:function(){this.actor.makeAlwaysSimulate();this.actor.anchorToScreen();this.actor.setX(f.getScreenWidth()/2-this.actor.getWidth()/2);this.actor.setY(f.getScreenHeight()/ +2-this.actor.getHeight()/2+56);f.createRecycledActor(f.getActorType(588),this.actor.getX()-48,this.actor.getY(),0);f.createRecycledActor(f.getActorType(592),this.actor.getX()+48,this.actor.getY(),0);this.actor.setAnimation("1");this.addListener(this.actor.whenMousedOver,q(this,this._event_ExitsSelf));this.addListener(this.actor.whenMousedOver,q(this,this._event_PressedOn));this.addListener(this.actor.whenMousedOver,q(this,this._event_ReleasedonSelf))},forwardMessage:function(a){},__class__:gq});var hq= +function(a,b,c){w.call(this,b)};k["scripts.ActorEvents_592"]=hq;hq.__name__="scripts.ActorEvents_592";hq.__super__=w;hq.prototype=u(w.prototype,{_event_ExitsSelf:function(a){this.wrapper.enabled&&-1==a&&this.actor.setAnimation("1")},_event_IsReleasedOnSelf:function(a){this.wrapper.enabled&&5==a&&this.actor.setAnimation("1")},_event_PressedOn:function(a){if(this.wrapper.enabled&&3==a&&(this.actor.setAnimation("2"),!f.isTransitioning())){a=va.get().scenes.h[9].getID();var b=0,c=0,d=0;null==d&&(d=0); +null==c&&(c=0);null==b&&(b=0);var e=f.createFadeOut(.5,b<<16|c<<8|d);d=c=b=0;null==d&&(d=0);null==c&&(c=0);null==b&&(b=0);f.switchScene(a,e,f.createFadeIn(.5,b<<16|c<<8|d));h.engine.getGameAttribute("Mute Sounds")||f.playSound(f.getSound(594));f.runLater(450,function(a){f.engine.unpause()},this.actor);a=0;for(b=O.__cast(f.getActorGroup(12),xe).list;a<b.length;)c=b[a],++a,null==c||c.dead||c.recycled||f.recycleActor(c);pa.sendGameplayStop()}},init:function(){this.actor.makeAlwaysSimulate();this.actor.anchorToScreen(); +this.actor.setAnimation("1");this.addListener(this.actor.whenMousedOver,q(this,this._event_ExitsSelf));this.addListener(this.actor.whenMousedOver,q(this,this._event_IsReleasedOnSelf));this.addListener(this.actor.whenMousedOver,q(this,this._event_PressedOn))},forwardMessage:function(a){},__class__:hq});var iq=function(a,b,c){w.call(this,b)};k["scripts.ActorEvents_595"]=iq;iq.__name__="scripts.ActorEvents_595";iq.__super__=w;iq.prototype=u(w.prototype,{_event_ExitsSelf:function(a){this.wrapper.enabled&& +-1==a&&this.actor.setAnimation("1")},_event_IsReleasedOnSelf:function(a){this.wrapper.enabled&&5==a&&this.actor.setAnimation("1")},_event_PressedOn:function(a){this.wrapper.enabled&&3==a&&this._customEvent_Pressed()},_event_SpacepressedHTML5:function(a,b){this.wrapper.enabled&&a&&(pa.IsVideoPlaying()||this.actor.shout("_customEvent_Pressed"))},_customEvent_Pressed:function(){this.actor.setAnimation("2");f.isTransitioning()||(f.stopSoundOnChannel(0),f.switchScene(va.get().scenes.h[9].getID(),null, +f.createCrossfadeTransition(.3)),h.engine.getGameAttribute("Mute Sounds")||f.playSound(f.getSound(594)),f.runLater(450,function(a){f.engine.unpause()},this.actor))},init:function(){this.actor.makeAlwaysSimulate();this.actor.setAnimation("1");this.addListener(this.actor.whenMousedOver,q(this,this._event_ExitsSelf));this.addListener(this.actor.whenMousedOver,q(this,this._event_IsReleasedOnSelf));this.addListener(this.actor.whenMousedOver,q(this,this._event_PressedOn));this.addListener(f.engine.whenKeyPressedEvents.getOrCreateEvent("Space"), +q(this,this._event_SpacepressedHTML5))},forwardMessage:function(a){},__class__:iq});var jq=function(a,b,c){w.call(this,b)};k["scripts.ActorEvents_597"]=jq;jq.__name__="scripts.ActorEvents_597";jq.__super__=w;jq.prototype=u(w.prototype,{init:function(){},forwardMessage:function(a){},__class__:jq});var kq=function(a,b,c){w.call(this,b);this.nameMap.h.UC="_UC";this._UC=0};k["scripts.ActorEvents_599"]=kq;kq.__name__="scripts.ActorEvents_599";kq.__super__=w;kq.prototype=u(w.prototype,{_UC:null,_event_OnActor:function(a){if(this.wrapper.enabled&& +3==a)if(30>this._UC)this._UC+=1;else if(this._UC=0,this.actor.setAnimation("Animation 0"),89<=h.engine.getGameAttribute("Collected Skins List").length){for(a=h.engine.getGameAttribute("Skin List").length=0;90>a;){var b=a++;h.engine.getGameAttribute("Skin List").push(b)}h.engine.getGameAttribute("Skin List").splice(0,1);h.engine.getGameAttribute("Skin List").splice(0,1);h.engine.getGameAttribute("Skin List").splice(0,1);h.engine.getGameAttribute("Skin List").splice(0,1);h.engine.getGameAttribute("Skin List").splice(0, +1);h.engine.getGameAttribute("Collected Skins List").length=0;h.engine.getGameAttribute("Collected Skins List").push(0);h.engine.getGameAttribute("Collected Skins List").push(1);h.engine.getGameAttribute("Collected Skins List").push(2);h.engine.getGameAttribute("Collected Skins List").push(3);h.engine.getGameAttribute("Collected Skins List").push(4)}else for(h.engine.getGameAttribute("Collected Skins List").length=0,a=h.engine.getGameAttribute("Skin List").length=0;105>a;)b=a++,h.engine.getGameAttribute("Collected Skins List").push(b)}, +init:function(){this.addListener(this.actor.whenMousedOver,q(this,this._event_OnActor))},forwardMessage:function(a){},__class__:kq});var lq=function(a,b,c){w.call(this,b)};k["scripts.ActorEvents_601"]=lq;lq.__name__="scripts.ActorEvents_601";lq.__super__=w;lq.prototype=u(w.prototype,{_event_ExitsSelf:function(a){this.wrapper.enabled&&-1==a&&this.actor.setAnimation("1")},_event_PressedOn:function(a){this.wrapper.enabled&&3==a&&this._customEvent_Pressed()},_event_ReleasedonSelf:function(a){this.wrapper.enabled&& +5==a&&this.actor.setAnimation("1")},_customEvent_Pressed:function(){this.actor.setAnimation("2");f.isTransitioning()||f.engine.isPaused()||(f.stopSoundOnChannel(0),h.engine.getGameAttribute("Mute Sounds")||f.playSound(f.getSound(605)),h.engine.gameAttributes.h["Multiplayer On"]=!1,f.switchScene(va.get().scenes.h[9].getID(),null,f.createCrossfadeTransition(.3)))},init:function(){this.actor.makeAlwaysSimulate();this.actor.setAnimation("1");this.addListener(this.actor.whenMousedOver,q(this,this._event_ExitsSelf)); +this.addListener(this.actor.whenMousedOver,q(this,this._event_PressedOn));this.addListener(this.actor.whenMousedOver,q(this,this._event_ReleasedonSelf))},forwardMessage:function(a){},__class__:lq});var mq=function(a,b,c){w.call(this,b);this.nameMap.h.Offset="_Offset";this._Offset=0;this.nameMap.h.Direction="_Direction";this._Direction=0;this.nameMap.h["Hit By Player"]="_HitByPlayer";this._HitByPlayer=!1;this.nameMap.h["Hit P1 in Versus?"]="_HitP1inVersus";this._HitP1inVersus=!1};k["scripts.ActorEvents_603"]= +mq;mq.__name__="scripts.ActorEvents_603";mq.__super__=w;mq.prototype=u(w.prototype,{_Offset:null,_Direction:null,_HitByPlayer:null,_HitP1inVersus:null,_event_HitPlayer:function(a){if(this.wrapper.enabled){var b=f.getActorGroup(0);var c=a.otherActor.getType();a=a.otherActor.getGroup();b=b==c||b==a}else b=!1;b&&(f.createRecycledActor(f.getActorType(572),-100,-100,0),f.getLastCreatedActor().setX(this.actor.getXCenter()-f.getLastCreatedActor().getWidth()/2),f.getLastCreatedActor().setY(this.actor.getYCenter()- +f.getLastCreatedActor().getHeight()/2),h.engine.getGameAttribute("Mute Sounds")||f.playSound(f.getSound(605)),h.engine.getGameAttribute("Multiplayer On")&&2==h.engine.getGameAttribute("Multiplayer Mode")?(f.asBoolean(this.actor.getLastCollidedActor().getActorValue("P1"))&&(b=h.engine,c=h.engine.getGameAttribute("P1 Versus Score")+3,b.gameAttributes.h["P1 Versus Score"]=c,this._HitP1inVersus=!0),f.asBoolean(this.actor.getLastCollidedActor().getActorValue("P2"))&&(b=h.engine,c=h.engine.getGameAttribute("P2 Versus Score")+ +3,b.gameAttributes.h["P2 Versus Score"]=c,this._HitP1inVersus=!1),f.shoutToScene("_customEvent_EndRun")):(b=h.engine,c=h.engine.getGameAttribute("Carrot Counter")+3,b.gameAttributes.h["Carrot Counter"]=c),this._HitByPlayer=!0,f.recycleActor(this.actor))},_event_ActorCreated:function(){this.wrapper.enabled&&this._HitByPlayer&&(h.engine.getGameAttribute("Multiplayer On")&&2==h.engine.getGameAttribute("Multiplayer Mode")?this._HitP1inVersus?(f.createRecycledActor(f.getActorType(610),-100,-100,0),f.getLastCreatedActor().setAnimation("5r")): +(f.createRecycledActor(f.getActorType(610),-100,-100,0),f.getLastCreatedActor().setAnimation("5b")):(f.createRecycledActor(f.getActorType(610),-100,-100,0),f.getLastCreatedActor().setAnimation("5")),f.getLastCreatedActor().setX(this.actor.getXCenter()-f.getLastCreatedActor().getWidth()/2),f.getLastCreatedActor().setY(this.actor.getYCenter()-f.getLastCreatedActor().getHeight()/2),f.getLastCreatedActor().moveBy(0,-16,2,ia.linear))},_customEvent_sparkles:function(){var a=this;f.createRecycledActor(f.getActorType(568), +this.actor.getXCenter()+f.randomInt(-12,8),this.actor.getYCenter()+f.randomInt(-12,8),0);f.runLater(200,function(b){a._customEvent_sparkles()},this.actor)},init:function(){var a=this;this.actor.makeAlwaysSimulate();f.createRecycledActor(f.getActorType(623),-32,-32,0);f.getLastCreatedActor().setX(this.actor.getXCenter()-f.getLastCreatedActor().getWidth()/2);f.getLastCreatedActor().setY(this.actor.getYCenter()-f.getLastCreatedActor().getHeight()/2);this._customEvent_sparkles();f.runLater(5E3,function(b){f.createRecycledActor(f.getActorType(527), +-32,-32,0);f.getLastCreatedActor().setX(a.actor.getXCenter()-f.getLastCreatedActor().getWidth()/2);f.getLastCreatedActor().setY(a.actor.getYCenter()-f.getLastCreatedActor().getHeight()/2);f.recycleActor(a.actor)},this.actor);h.engine.getGameAttribute("Mute Sounds")||f.playSound(f.getSound(625));this.actor.moveToBottom();this.addListener(this.actor.whenCollided,q(this,this._event_HitPlayer));this.addListener(this.actor.whenKilled,q(this,this._event_ActorCreated))},forwardMessage:function(a){},__class__:mq}); +var nq=function(a,b,c){w.call(this,b)};k["scripts.ActorEvents_606"]=nq;nq.__name__="scripts.ActorEvents_606";nq.__super__=w;nq.prototype=u(w.prototype,{_event_Pressed:function(a){this.wrapper.enabled&&3==a&&(f.shoutToScene("_customEvent_MuteMusic"),h.engine.getGameAttribute("Mute Music")?this.actor.setAnimation("4"):this.actor.setAnimation("2"),h.engine.getGameAttribute("Mute Sounds")||f.playSoundOnChannel(f.getSound(594),2))},_event_Released:function(a){this.wrapper.enabled&&5==a&&(h.engine.getGameAttribute("Mute Music")? +this.actor.setAnimation("3"):this.actor.setAnimation("1"))},_event_Exits:function(a){this.wrapper.enabled&&-1==a&&(h.engine.getGameAttribute("Mute Music")?this.actor.setAnimation("3"):this.actor.setAnimation("1"))},init:function(){this.actor.makeAlwaysSimulate();this.actor.anchorToScreen();this.actor.setX(f.getScreenWidth()/2-this.actor.getWidth()/2-20);this.actor.setY(f.getScreenHeight()-f.getScreenHeight()+8);h.engine.getGameAttribute("Mute Music")?this.actor.setAnimation("3"):this.actor.setAnimation("1"); +this.addListener(this.actor.whenMousedOver,q(this,this._event_Pressed));this.addListener(this.actor.whenMousedOver,q(this,this._event_Released));this.addListener(this.actor.whenMousedOver,q(this,this._event_Exits))},forwardMessage:function(a){},__class__:nq});var oq=function(a,b,c){w.call(this,b)};k["scripts.ActorEvents_608"]=oq;oq.__name__="scripts.ActorEvents_608";oq.__super__=w;oq.prototype=u(w.prototype,{_event_Pressed:function(a){this.wrapper.enabled&&3==a&&(f.shoutToScene("_customEvent_MuteSounds"), +h.engine.getGameAttribute("Mute Sounds")?this.actor.setAnimation("4"):this.actor.setAnimation("2"),h.engine.getGameAttribute("Mute Sounds")||f.playSoundOnChannel(f.getSound(594),2))},_event_Released:function(a){this.wrapper.enabled&&5==a&&(h.engine.getGameAttribute("Mute Sounds")?this.actor.setAnimation("3"):this.actor.setAnimation("1"))},_event_Exits:function(a){this.wrapper.enabled&&-1==a&&(h.engine.getGameAttribute("Mute Sounds")?this.actor.setAnimation("3"):this.actor.setAnimation("1"))},init:function(){this.actor.makeAlwaysSimulate(); +this.actor.anchorToScreen();this.actor.setX(f.getScreenWidth()/2-this.actor.getWidth()/2+20);this.actor.setY(f.getScreenHeight()-f.getScreenHeight()+8);h.engine.getGameAttribute("Mute Sounds")?this.actor.setAnimation("3"):this.actor.setAnimation("1");this.addListener(this.actor.whenMousedOver,q(this,this._event_Pressed));this.addListener(this.actor.whenMousedOver,q(this,this._event_Released));this.addListener(this.actor.whenMousedOver,q(this,this._event_Exits))},forwardMessage:function(a){},__class__:oq}); +var pq=function(a,b,c){w.call(this,b)};k["scripts.ActorEvents_610"]=pq;pq.__name__="scripts.ActorEvents_610";pq.__super__=w;pq.prototype=u(w.prototype,{init:function(){var a=this;this.actor.makeAlwaysSimulate();f.runLater(1E3,function(b){a.actor.disableActorDrawing();f.runLater(100,function(b){a.actor.enableActorDrawing();f.runLater(100,function(b){a.actor.disableActorDrawing();f.runLater(100,function(b){a.actor.enableActorDrawing();f.runLater(100,function(b){a.actor.disableActorDrawing();f.runLater(100, +function(b){a.actor.enableActorDrawing();f.runLater(100,function(b){f.recycleActor(a.actor)},a.actor)},a.actor)},a.actor)},a.actor)},a.actor)},a.actor)},this.actor);this.actor.moveTo(this.actor.getX(),this.actor.getY()-12,2,ia.linear)},forwardMessage:function(a){},__class__:pq});var qq=function(a,b,c){w.call(this,b)};k["scripts.ActorEvents_612"]=qq;qq.__name__="scripts.ActorEvents_612";qq.__super__=w;qq.prototype=u(w.prototype,{_event_Updating:function(a){this.wrapper.enabled&&this.actor.getScreenY()> +f.getScreenHeight()&&f.recycleActor(this.actor)},init:function(){this.actor.makeAlwaysSimulate();this.actor.setYVelocity(f.randomInt(6,10));this.actor.setXVelocity(f.randomInt(-5,5));this.actor.setAnimation(""+f.randomInt(0,3));this.addListener(this.actor.whenUpdated,q(this,this._event_Updating))},forwardMessage:function(a){},__class__:qq});var rq=function(a,b,c){w.call(this,b);this.nameMap.h["Current Level"]="_CurrentLevel";this._CurrentLevel=0};k["scripts.ActorEvents_621"]=rq;rq.__name__="scripts.ActorEvents_621"; +rq.__super__=w;rq.prototype=u(w.prototype,{_CurrentLevel:null,_event_Exitsself:function(a){this.wrapper.enabled&&-1==a&&this.actor.setAnimation("1")},_event_ReleasedonSelf:function(a){this.wrapper.enabled&&5==a&&this.actor.setAnimation("1")},_event_PressedonSelf:function(a){this.wrapper.enabled&&3==a&&(this.actor.setAnimation("2"),f.isTransitioning()||this._customEvent_quit())},_customEvent_quit:function(){this.actor.setAnimation("2");f.isTransitioning()||(h.engine.getGameAttribute("Mute Sounds")|| +f.playSoundOnChannel(f.getSound(594),2),"Results Screen"==f.getCurrentSceneName()?f.switchScene(va.get().scenes.h[12].getID(),null,f.createCrossfadeTransition(.3)):"Skins Menu Players"==f.getCurrentSceneName()?f.switchScene(va.get().scenes.h[12].getID(),null,f.createCrossfadeTransition(.3)):"Unlock Bunny Screen"==f.getCurrentSceneName()?f.switchScene(va.get().scenes.h[12].getID(),null,f.createCrossfadeTransition(.3)):"Skins Menu 1"==f.getCurrentSceneName()?f.switchScene(va.get().scenes.h[13].getID(), +null,f.createCrossfadeTransition(.3)):"Skins Menu 2"==f.getCurrentSceneName()?f.switchScene(va.get().scenes.h[13].getID(),null,f.createCrossfadeTransition(.3)):"Skins Menu 3"==f.getCurrentSceneName()?f.switchScene(va.get().scenes.h[13].getID(),null,f.createCrossfadeTransition(.3)):"Skins Menu 4"==f.getCurrentSceneName()?f.switchScene(va.get().scenes.h[13].getID(),null,f.createCrossfadeTransition(.3)):"Skins Menu 5"==f.getCurrentSceneName()?f.switchScene(va.get().scenes.h[13].getID(),null,f.createCrossfadeTransition(.3)): +"Skins Menu 6"==f.getCurrentSceneName()?f.switchScene(va.get().scenes.h[13].getID(),null,f.createCrossfadeTransition(.3)):"Skins Menu 7"==f.getCurrentSceneName()?f.switchScene(va.get().scenes.h[13].getID(),null,f.createCrossfadeTransition(.3)):"Credits Screen"==f.getCurrentSceneName()?f.switchScene(va.get().scenes.h[12].getID(),null,f.createCrossfadeTransition(.3)):"Skins Menu Players"==f.getCurrentSceneName()&&f.switchScene(va.get().scenes.h[12].getID(),null,f.createCrossfadeTransition(.3)))},init:function(){this.actor.makeAlwaysSimulate(); +this.actor.setAnimation("1");this.actor.anchorToScreen();this.actor.setX(f.getScreenWidth()-f.getScreenWidth()+4+da.leftInset);this.actor.setY(f.getScreenHeight()-this.actor.getHeight()-1-da.bottomInset);this.addListener(this.actor.whenMousedOver,q(this,this._event_Exitsself));this.addListener(this.actor.whenMousedOver,q(this,this._event_ReleasedonSelf));this.addListener(this.actor.whenMousedOver,q(this,this._event_PressedonSelf))},forwardMessage:function(a){},__class__:rq});var sq=function(a,b,c){w.call(this, +b)};k["scripts.ActorEvents_623"]=sq;sq.__name__="scripts.ActorEvents_623";sq.__super__=w;sq.prototype=u(w.prototype,{init:function(){},forwardMessage:function(a){},__class__:sq});var tq=function(a,b,c){w.call(this,b)};k["scripts.ActorEvents_628"]=tq;tq.__name__="scripts.ActorEvents_628";tq.__super__=w;tq.prototype=u(w.prototype,{init:function(){this.actor.makeAlwaysSimulate();f.playSoundOnChannel(f.getSound(626),0);f.recycleActor(this.actor)},forwardMessage:function(a){},__class__:tq});var uq=function(a, +b,c){w.call(this,b)};k["scripts.ActorEvents_652"]=uq;uq.__name__="scripts.ActorEvents_652";uq.__super__=w;uq.prototype=u(w.prototype,{_event_Updating:function(a){this.wrapper.enabled&&(f.asBoolean(this.actor.getActorValue("On Ground?"))||this.actor.setFriction(0))},_event_Keyboard:function(a,b){this.wrapper.enabled&&a&&(f.isTransitioning()||f.reloadCurrentScene(null,f.createCrossfadeTransition(.4)))},init:function(){this.actor.moveToTop();"Results Screen"!=f.getCurrentSceneName()&&f.createRecycledActor(f.getActorType(527), +-32,-32,0);f.getLastCreatedActor().setX(this.actor.getXCenter()-f.getLastCreatedActor().getWidth()/2);f.getLastCreatedActor().setY(this.actor.getYCenter()-f.getLastCreatedActor().getHeight()/2);h.engine.getGameAttribute("Multiplayer On")&&(f.createRecycledActor(f.getActorType(656),this.actor.getX(),this.actor.getY(),0),f.createRecycledActor(f.getActorType(688),this.actor.getX(),this.actor.getY(),0));this.actor.setActorValue("P2",!0);this.addListener(this.actor.whenUpdated,q(this,this._event_Updating)); +this.addListener(f.engine.whenKeyPressedEvents.getOrCreateEvent("Restart"),q(this,this._event_Keyboard))},forwardMessage:function(a){},__class__:uq});var vq=function(a,b,c){w.call(this,b)};k["scripts.ActorEvents_654"]=vq;vq.__name__="scripts.ActorEvents_654";vq.__super__=w;vq.prototype=u(w.prototype,{_event_Updating:function(a){if(this.wrapper.enabled){a=0;for(var b=f.getActorsOfType(f.getActorType(479));a<b.length;){var c=b[a];++a;null==c||c.dead||c.recycled||(this.actor.setX(c.getX()),this.actor.setY(c.getY()))}}}, +init:function(){this.actor.makeAlwaysSimulate();this.addListener(this.actor.whenUpdated,q(this,this._event_Updating))},forwardMessage:function(a){},__class__:vq});var wq=function(a,b,c){w.call(this,b)};k["scripts.ActorEvents_656"]=wq;wq.__name__="scripts.ActorEvents_656";wq.__super__=w;wq.prototype=u(w.prototype,{_event_Updating:function(a){if(this.wrapper.enabled){a=0;for(var b=f.getActorsOfType(f.getActorType(652));a<b.length;){var c=b[a];++a;null==c||c.dead||c.recycled||(this.actor.setX(c.getX()), +this.actor.setY(c.getY()))}}},init:function(){this.actor.makeAlwaysSimulate();this.addListener(this.actor.whenUpdated,q(this,this._event_Updating))},forwardMessage:function(a){},__class__:wq});var xq=function(a,b,c){w.call(this,b)};k["scripts.ActorEvents_658"]=xq;xq.__name__="scripts.ActorEvents_658";xq.__super__=w;xq.prototype=u(w.prototype,{init:function(){this.actor.anchorToScreen();this.actor.setX(f.getScreenWidth()-f.getScreenWidth()+16+da.leftInset);this.actor.setY(f.getScreenHeight()-this.actor.getHeight()+ +8-da.bottomInset);f.createRecycledActor(f.getActorType(660),this.actor.getX()+this.actor.getWidth(),this.actor.getY(),0);f.createRecycledActor(f.getActorType(662),this.actor.getX()-32,this.actor.getY()+16,0);h.engine.getGameAttribute("Hide Mobile Controls")&&this.actor.disableActorDrawing()},forwardMessage:function(a){},__class__:xq});var yq=function(a,b,c){w.call(this,b)};k["scripts.ActorEvents_660"]=yq;yq.__name__="scripts.ActorEvents_660";yq.__super__=w;yq.prototype=u(w.prototype,{init:function(){this.actor.anchorToScreen(); +h.engine.getGameAttribute("Hide Mobile Controls")&&this.actor.disableActorDrawing()},forwardMessage:function(a){},__class__:yq});var zq=function(a,b,c){w.call(this,b)};k["scripts.ActorEvents_662"]=zq;zq.__name__="scripts.ActorEvents_662";zq.__super__=w;zq.prototype=u(w.prototype,{init:function(){this.actor.anchorToScreen();for(var a=0,b=f.getActorsOfType(f.getActorType(658));a<b.length;){var c=b[a];++a;null==c||c.dead||c.recycled||(this.actor.setX(c.getX()-48),this.actor.setY(c.getY()-64),h.engine.getGameAttribute("Hide Mobile Controls")&& +this.actor.disableActorDrawing())}},forwardMessage:function(a){},__class__:zq});var Aq=function(a,b,c){w.call(this,b)};k["scripts.ActorEvents_664"]=Aq;Aq.__name__="scripts.ActorEvents_664";Aq.__super__=w;Aq.prototype=u(w.prototype,{_event_ExitsSelf:function(a){this.wrapper.enabled&&-1==a&&this.actor.setAnimation("1")},_event_PressedOn:function(a){this.wrapper.enabled&&3==a&&this._customEvent_Pressed()},_event_ReleasedonSelf:function(a){this.wrapper.enabled&&5==a&&this.actor.setAnimation("1")},_customEvent_Pressed:function(){this.actor.setAnimation("2"); +f.isTransitioning()||f.engine.isPaused()||(f.stopSoundOnChannel(0),h.engine.getGameAttribute("Mute Sounds")||f.playSound(f.getSound(605)),h.engine.gameAttributes.h["Multiplayer On"]=!0,h.engine.gameAttributes.h["Multiplayer Mode"]=1,f.switchScene(va.get().scenes.h[9].getID(),null,f.createCrossfadeTransition(.3)))},init:function(){this.actor.makeAlwaysSimulate();this.actor.setAnimation("1");this.addListener(this.actor.whenMousedOver,q(this,this._event_ExitsSelf));this.addListener(this.actor.whenMousedOver, +q(this,this._event_PressedOn));this.addListener(this.actor.whenMousedOver,q(this,this._event_ReleasedonSelf))},forwardMessage:function(a){},__class__:Aq});var Bq=function(a,b,c){w.call(this,b)};k["scripts.ActorEvents_668"]=Bq;Bq.__name__="scripts.ActorEvents_668";Bq.__super__=w;Bq.prototype=u(w.prototype,{init:function(){this.actor.anchorToScreen();this.actor.setX(f.getScreenWidth()-this.actor.getWidth()-16-da.rightInset);this.actor.setY(f.getScreenHeight()-this.actor.getHeight()+8-da.bottomInset); +f.createRecycledActor(f.getActorType(670),this.actor.getX()-this.actor.getWidth(),this.actor.getY(),0);f.createRecycledActor(f.getActorType(672),this.actor.getX(),this.actor.getY()+16,0);h.engine.getGameAttribute("Hide Mobile Controls")&&this.actor.disableActorDrawing()},forwardMessage:function(a){},__class__:Bq});var Cq=function(a,b,c){w.call(this,b)};k["scripts.ActorEvents_670"]=Cq;Cq.__name__="scripts.ActorEvents_670";Cq.__super__=w;Cq.prototype=u(w.prototype,{init:function(){this.actor.anchorToScreen(); +h.engine.getGameAttribute("Hide Mobile Controls")&&this.actor.disableActorDrawing()},forwardMessage:function(a){},__class__:Cq});var Dq=function(a,b,c){w.call(this,b)};k["scripts.ActorEvents_672"]=Dq;Dq.__name__="scripts.ActorEvents_672";Dq.__super__=w;Dq.prototype=u(w.prototype,{init:function(){this.actor.anchorToScreen();for(var a=0,b=f.getActorsOfType(f.getActorType(668));a<b.length;){var c=b[a];++a;null==c||c.dead||c.recycled||(this.actor.setX(c.getX()+16),this.actor.setY(c.getY()-64),h.engine.getGameAttribute("Hide Mobile Controls")&& +this.actor.disableActorDrawing())}},forwardMessage:function(a){},__class__:Dq});var Eq=function(a,b,c){w.call(this,b);this.nameMap.h.Player1="_Player1";this._Player1=!1;this.nameMap.h["Can be hit?"]="_Canbehit";this._Canbehit=!1};k["scripts.ActorEvents_674"]=Eq;Eq.__name__="scripts.ActorEvents_674";Eq.__super__=w;Eq.prototype=u(w.prototype,{_Player1:null,_Canbehit:null,_event_Updating:function(a){if(this.wrapper.enabled)if(this._Player1){a=0;for(var b=f.getActorsOfType(f.getActorType(479));a<b.length;){var c= +b[a];++a;null==c||c.dead||c.recycled||(c.setX(this.actor.getX()),c.setY(this.actor.getY()-5),c.setAnimation("idle-r"))}}else for(a=0,b=f.getActorsOfType(f.getActorType(652));a<b.length;)c=b[a],++a,null==c||c.dead||c.recycled||(c.setX(this.actor.getX()),c.setY(this.actor.getY()-5),c.setAnimation("idle-l"))},_event_HitsPlayer:function(a){if(this.wrapper.enabled){var b=f.getActorGroup(0);var c=a.otherActor.getType();a=a.otherActor.getGroup();b=b==c||b==a}else b=!1;if(b&&this._Canbehit&&!f.asBoolean(this.actor.getLastCollidedActor().getActorValue("Trapped"))){if(this._Player1)for(b= +0,c=f.getActorsOfType(f.getActorType(479));b<c.length;)a=c[b],++b,null==a||a.dead||a.recycled||(a.shout("_customEvent_GiveControl"),a.shout("_customEvent_Blink"),a.setIgnoreGravity(!1),a.setActorValue("Trapped",!1),f.shoutToScene("_customEvent_P1Respawn"));else for(b=0,c=f.getActorsOfType(f.getActorType(652));b<c.length;)a=c[b],++b,null==a||a.dead||a.recycled||(a.shout("_customEvent_GiveControl"),a.shout("_customEvent_Blink"),a.setIgnoreGravity(!1),a.setActorValue("Trapped",!1),f.shoutToScene("_customEvent_P2Respawn")); +f.recycleActor(this.actor)}},_event_Dies:function(){this.wrapper.enabled&&f.createRecycledActor(f.getActorType(572),this.actor.getX(),this.actor.getY(),0)},_customEvent_P1:function(){var a=this;this._Player1=!0;f.createRecycledActor(f.getActorType(479),this.actor.getX(),this.actor.getY(),0);f.getLastCreatedActor().setActorValue("Trapped",!0);f.getLastCreatedActor().setIgnoreGravity(!0);f.getLastCreatedActor().shout("_customEvent_RemoveControl");f.getLastCreatedActor().shout("_customEvent_Unkillable"); +this.actor.moveUp();f.runLater(200,function(b){a._Canbehit=!0},this.actor);f.runLater(30,function(a){a=0;for(var b=f.getActorsOfType(f.getActorType(686));a<b.length;){var d=b[a];++a;null==d||d.dead||d.recycled||f.recycleActor(d)}},this.actor)},_customEvent_P2:function(){var a=this;this._Player1=!1;f.createRecycledActor(f.getActorType(652),this.actor.getX(),this.actor.getY(),0);f.getLastCreatedActor().setActorValue("Trapped",!0);f.getLastCreatedActor().setIgnoreGravity(!0);f.getLastCreatedActor().shout("_customEvent_RemoveControl"); +f.getLastCreatedActor().shout("_customEvent_Unkillable");this.actor.moveUp();f.runLater(200,function(b){a._Canbehit=!0},this.actor);f.runLater(30,function(a){a=0;for(var b=f.getActorsOfType(f.getActorType(688));a<b.length;){var d=b[a];++a;null==d||d.dead||d.recycled||f.recycleActor(d)}},this.actor)},init:function(){this.actor.makeAlwaysSimulate();this.addListener(this.actor.whenUpdated,q(this,this._event_Updating));this.addListener(this.actor.whenCollided,q(this,this._event_HitsPlayer));this.addListener(this.actor.whenKilled, +q(this,this._event_Dies))},forwardMessage:function(a){},__class__:Eq});var Fq=function(a,b,c){w.call(this,b)};k["scripts.ActorEvents_676"]=Fq;Fq.__name__="scripts.ActorEvents_676";Fq.__super__=w;Fq.prototype=u(w.prototype,{init:function(){this.actor.makeAlwaysSimulate();("ontouchstart"in document.documentElement||window.DocumentTouch&&document instanceof DocumentTouch)&&this.actor.setX(this.actor.getX()-16)},forwardMessage:function(a){},__class__:Fq});var Gq=function(a,b,c){w.call(this,b)};k["scripts.ActorEvents_678"]= +Gq;Gq.__name__="scripts.ActorEvents_678";Gq.__super__=w;Gq.prototype=u(w.prototype,{_event_ExitsSelf:function(a){this.wrapper.enabled&&-1==a&&this.actor.setAnimation("1")},_event_PressedOn:function(a){this.wrapper.enabled&&3==a&&this._customEvent_Pressed()},_event_ReleasedonSelf:function(a){this.wrapper.enabled&&5==a&&this.actor.setAnimation("1")},_customEvent_Pressed:function(){this.actor.setAnimation("2");f.isTransitioning()||f.engine.isPaused()||(f.stopSoundOnChannel(0),h.engine.getGameAttribute("Mute Sounds")|| +f.playSound(f.getSound(605)),h.engine.gameAttributes.h["Multiplayer On"]=!0,h.engine.gameAttributes.h["Multiplayer Mode"]=2,f.switchScene(va.get().scenes.h[9].getID(),null,f.createCrossfadeTransition(.3)))},init:function(){this.actor.makeAlwaysSimulate();this.actor.setAnimation("1");this.addListener(this.actor.whenMousedOver,q(this,this._event_ExitsSelf));this.addListener(this.actor.whenMousedOver,q(this,this._event_PressedOn));this.addListener(this.actor.whenMousedOver,q(this,this._event_ReleasedonSelf))}, +forwardMessage:function(a){},__class__:Gq});var Hq=function(a,b,c){w.call(this,b);this.nameMap.h["Moving Right?"]="_MovingRight";this._MovingRight=!1;this.nameMap.h["Moving Up?"]="_MovingUp";this._MovingUp=!1;this.nameMap.h["Can Move"]="_CanMove";this._CanMove=!1;this.nameMap.h["Random Starting Direction"]="_RandomStartingDirection";this._RandomStartingDirection=0};k["scripts.ActorEvents_681"]=Hq;Hq.__name__="scripts.ActorEvents_681";Hq.__super__=w;Hq.prototype=u(w.prototype,{_MovingRight:null,_MovingUp:null, +_CanMove:null,_RandomStartingDirection:null,_event_ActorAny:function(a){this.wrapper.enabled&&(a.thisFromTop?this._MovingUp=!1:a.thisFromBottom?this._MovingUp=!0:a.thisFromLeft?this._MovingRight=!0:a.thisFromRight&&(this._MovingRight=!1))},_event_Updating:function(a){this.wrapper.enabled&&(this._CanMove&&(this._MovingUp?this.actor.setYVelocity(-5):this.actor.setYVelocity(5),this.actor.setXVelocity(0)),this.actor.getY()<f.getScreenY()-8&&(this._MovingUp=!1))},init:function(){var a=this;this.actor.makeAlwaysSimulate(); +this.actor.setAnimation("0");this._RandomStartingDirection=f.randomInt(0,1);f.runLater(1400,function(b){a.actor.setAnimation("1");f.createRecycledActor(f.getActorType(527),-32,-32,0);f.getLastCreatedActor().setX(a.actor.getXCenter()-f.getLastCreatedActor().getWidth()/2);f.getLastCreatedActor().setY(a.actor.getYCenter()-f.getLastCreatedActor().getHeight()/2);f.runLater(100,function(b){a._MovingUp=!1;a._CanMove=!0;a._MovingRight=0==a._RandomStartingDirection?!0:!1},a.actor)},this.actor);h.engine.getGameAttribute("Mute Sounds")|| +(f.playSound(f.getSound(553)),f.runLater(200,function(b){h.engine.getGameAttribute("Mute Sounds")||f.playSound(f.getSound(553));f.runLater(200,function(b){h.engine.getGameAttribute("Mute Sounds")||f.playSound(f.getSound(553));f.runLater(200,function(b){h.engine.getGameAttribute("Mute Sounds")||f.playSound(f.getSound(553));f.runLater(200,function(b){h.engine.getGameAttribute("Mute Sounds")||f.playSound(f.getSound(553));f.runLater(200,function(b){h.engine.getGameAttribute("Mute Sounds")||f.playSound(f.getSound(553)); +f.runLater(200,function(a){h.engine.getGameAttribute("Mute Sounds")||f.playSound(f.getSound(553))},a.actor)},a.actor)},a.actor)},a.actor)},a.actor)},this.actor));this.addListener(this.actor.whenCollided,q(this,this._event_ActorAny));this.addListener(this.actor.whenUpdated,q(this,this._event_Updating))},forwardMessage:function(a){},__class__:Hq});var Iq=function(a,b,c){w.call(this,b)};k["scripts.ActorEvents_684"]=Iq;Iq.__name__="scripts.ActorEvents_684";Iq.__super__=w;Iq.prototype=u(w.prototype,{init:function(){this.actor.makeAlwaysSimulate()}, +forwardMessage:function(a){},__class__:Iq});var Jq=function(a,b,c){w.call(this,b)};k["scripts.ActorEvents_686"]=Jq;Jq.__name__="scripts.ActorEvents_686";Jq.__super__=w;Jq.prototype=u(w.prototype,{_event_Updating:function(a){if(this.wrapper.enabled){a=0;for(var b=f.getActorsOfType(f.getActorType(479));a<b.length;){var c=b[a];++a;null==c||c.dead||c.recycled||(this.actor.setX(c.getX()-6),this.actor.setY(c.getY()-34))}this.actor.moveUp()}},_event_LeftPressed:function(a,b){this.wrapper.enabled&&a&&this._customEvent_Fade()}, +_event_Right:function(a,b){this.wrapper.enabled&&a&&this._customEvent_Fade()},_event_Up:function(a,b){this.wrapper.enabled&&a&&this._customEvent_Fade()},_event_Down:function(a,b){this.wrapper.enabled&&a&&this._customEvent_Fade()},_customEvent_Fade:function(){var a=this;this.actor.fadeTo(0,.3,ia.linear);f.runLater(300,function(b){f.recycleActor(a.actor)},this.actor)},init:function(){this.actor.makeAlwaysSimulate();this.actor.fadeTo(0,0,ia.linear);this.actor.fadeTo(1,.3,ia.linear);"Results Screen"== +f.getCurrentSceneName()&&f.recycleActor(this.actor);("ontouchstart"in document.documentElement||window.DocumentTouch&&document instanceof DocumentTouch)&&f.recycleActor(this.actor);this.addListener(this.actor.whenUpdated,q(this,this._event_Updating));this.addListener(f.engine.whenKeyPressedEvents.getOrCreateEvent("A"),q(this,this._event_LeftPressed));this.addListener(f.engine.whenKeyPressedEvents.getOrCreateEvent("D"),q(this,this._event_Right));this.addListener(f.engine.whenKeyPressedEvents.getOrCreateEvent("W"), +q(this,this._event_Up));this.addListener(f.engine.whenKeyPressedEvents.getOrCreateEvent("S"),q(this,this._event_Down))},forwardMessage:function(a){},__class__:Jq});var Kq=function(a,b,c){w.call(this,b)};k["scripts.ActorEvents_688"]=Kq;Kq.__name__="scripts.ActorEvents_688";Kq.__super__=w;Kq.prototype=u(w.prototype,{_event_Updating:function(a){if(this.wrapper.enabled){if(h.engine.getGameAttribute("Multiplayer On")){a=0;for(var b=f.getActorsOfType(f.getActorType(652));a<b.length;){var c=b[a];++a;null== +c||c.dead||c.recycled||(this.actor.setX(c.getX()-6),this.actor.setY(c.getY()-34))}}else for(a=0,b=f.getActorsOfType(f.getActorType(479));a<b.length;)c=b[a],++a,null==c||c.dead||c.recycled||(this.actor.setX(c.getX()-6),this.actor.setY(c.getY()-30));this.actor.moveUp()}},_event_LeftPressed:function(a,b){this.wrapper.enabled&&a&&this._customEvent_Fade()},_event_Right:function(a,b){this.wrapper.enabled&&a&&this._customEvent_Fade()},_event_Up:function(a,b){this.wrapper.enabled&&a&&this._customEvent_Fade()}, +_event_Down:function(a,b){this.wrapper.enabled&&a&&this._customEvent_Fade()},_event_LeftPressed2:function(a,b){this.wrapper.enabled&&a&&(h.engine.getGameAttribute("Multiplayer On")||this._customEvent_Fade())},_event_Right2:function(a,b){this.wrapper.enabled&&a&&(h.engine.getGameAttribute("Multiplayer On")||this._customEvent_Fade())},_event_Up2:function(a,b){this.wrapper.enabled&&a&&(h.engine.getGameAttribute("Multiplayer On")||this._customEvent_Fade())},_event_Down2:function(a,b){this.wrapper.enabled&& +a&&(h.engine.getGameAttribute("Multiplayer On")||this._customEvent_Fade())},_customEvent_Fade:function(){var a=this;this.actor.fadeTo(0,.3,ia.linear);f.runLater(300,function(b){f.recycleActor(a.actor)},this.actor)},init:function(){this.actor.makeAlwaysSimulate();this.actor.fadeTo(0,0,ia.linear);this.actor.fadeTo(1,.3,ia.linear);"Results Screen"==f.getCurrentSceneName()&&f.recycleActor(this.actor);("ontouchstart"in document.documentElement||window.DocumentTouch&&document instanceof DocumentTouch)&& +f.recycleActor(this.actor);this.addListener(this.actor.whenUpdated,q(this,this._event_Updating));this.addListener(f.engine.whenKeyPressedEvents.getOrCreateEvent("Left"),q(this,this._event_LeftPressed));this.addListener(f.engine.whenKeyPressedEvents.getOrCreateEvent("Right"),q(this,this._event_Right));this.addListener(f.engine.whenKeyPressedEvents.getOrCreateEvent("Up"),q(this,this._event_Up));this.addListener(f.engine.whenKeyPressedEvents.getOrCreateEvent("Down"),q(this,this._event_Down));this.addListener(f.engine.whenKeyPressedEvents.getOrCreateEvent("A"), +q(this,this._event_LeftPressed2));this.addListener(f.engine.whenKeyPressedEvents.getOrCreateEvent("D"),q(this,this._event_Right2));this.addListener(f.engine.whenKeyPressedEvents.getOrCreateEvent("W"),q(this,this._event_Up2));this.addListener(f.engine.whenKeyPressedEvents.getOrCreateEvent("S"),q(this,this._event_Down2))},forwardMessage:function(a){},__class__:Kq});var Lq=function(a,b,c){w.call(this,b)};k["scripts.ActorEvents_690"]=Lq;Lq.__name__="scripts.ActorEvents_690";Lq.__super__=w;Lq.prototype= +u(w.prototype,{init:function(){this.actor.makeAlwaysSimulate();h.engine.getGameAttribute("Multiplayer On")&&1==h.engine.getGameAttribute("Multiplayer Mode")&&this.actor.setAnimation("2");h.engine.getGameAttribute("Multiplayer On")&&2==h.engine.getGameAttribute("Multiplayer Mode")&&this.actor.setAnimation("3")},forwardMessage:function(a){},__class__:Lq});var Mq=function(a,b,c){w.call(this,b);this.nameMap.h["Bunny Skin Counter"]="_BunnySkinCounter"};k["scripts.ActorEvents_692"]=Mq;Mq.__name__="scripts.ActorEvents_692"; +Mq.__super__=w;Mq.prototype=u(w.prototype,{_BunnySkinCounter:null,_event_Exits:function(a){this.wrapper.enabled&&-1==a&&this.actor.setAnimation("0")},_event_ReleasedOn:function(a){this.wrapper.enabled&&5==a&&this.actor.setAnimation("0")},_event_Pressed:function(a){this.wrapper.enabled&&3==a&&(this.actor.setAnimation("1"),this._customEvent_Pressed())},_customEvent_Pressed:function(){this.actor.setAnimation("1");f.isTransitioning()||(h.engine.getGameAttribute("Mute Sounds")||f.playSoundOnChannel(f.getSound(594), +2),"Title Screen"==f.getCurrentSceneName()?f.switchScene(va.get().scenes.h[13].getID(),null,f.createCrossfadeTransition(.3)):h.engine.getGameAttribute("Multiplayer On")?f.switchScene(va.get().scenes.h[13].getID(),null,f.createCrossfadeTransition(.3)):(h.engine.gameAttributes.h["Player 1 Selecting Skin"]=!0,0<=h.engine.getGameAttribute("P1 Skin")&&14>=h.engine.getGameAttribute("P1 Skin")?f.switchScene(va.get().scenes.h[14].getID(),null,f.createCrossfadeTransition(.3)):15<=h.engine.getGameAttribute("P1 Skin")&& +29>=h.engine.getGameAttribute("P1 Skin")?f.switchScene(va.get().scenes.h[15].getID(),null,f.createCrossfadeTransition(.3)):30<=h.engine.getGameAttribute("P1 Skin")&&44>=h.engine.getGameAttribute("P1 Skin")?f.switchScene(va.get().scenes.h[16].getID(),null,f.createCrossfadeTransition(.3)):45<=h.engine.getGameAttribute("P1 Skin")&&59>=h.engine.getGameAttribute("P1 Skin")?f.switchScene(va.get().scenes.h[17].getID(),null,f.createCrossfadeTransition(.3)):60<=h.engine.getGameAttribute("P1 Skin")&&75>=h.engine.getGameAttribute("P1 Skin")? +f.switchScene(va.get().scenes.h[18].getID(),null,f.createCrossfadeTransition(.3)):76<=h.engine.getGameAttribute("P1 Skin")&&89>=h.engine.getGameAttribute("P1 Skin")?f.switchScene(va.get().scenes.h[19].getID(),null,f.createCrossfadeTransition(.3)):90<=h.engine.getGameAttribute("P1 Skin")&&104>=h.engine.getGameAttribute("P1 Skin")&&f.switchScene(va.get().scenes.h[22].getID(),null,f.createCrossfadeTransition(.3))))},init:function(){this.actor.makeAlwaysSimulate();this.actor.anchorToScreen();this.actor.setX(f.getScreenWidth()- +f.getScreenWidth()+da.leftInset);this.actor.setY(f.getScreenHeight()-f.getScreenHeight()+da.topInset);f.createRecycledActor(f.getActorType(716),this.actor.getScreenX(),this.actor.getScreenY()+this.actor.getHeight()+1,0);this._BunnySkinCounter=f.getLastCreatedActor();this.addListener(this.actor.whenMousedOver,q(this,this._event_Exits));this.addListener(this.actor.whenMousedOver,q(this,this._event_ReleasedOn));this.addListener(this.actor.whenMousedOver,q(this,this._event_Pressed))},forwardMessage:function(a){}, +__class__:Mq});var Nq=function(a,b,c){w.call(this,b)};k["scripts.ActorEvents_694"]=Nq;Nq.__name__="scripts.ActorEvents_694";Nq.__super__=w;Nq.prototype=u(w.prototype,{init:function(){this.actor.makeAlwaysSimulate()},forwardMessage:function(a){},__class__:Nq});var Oq=function(a,b,c){w.call(this,b)};k["scripts.ActorEvents_698"]=Oq;Oq.__name__="scripts.ActorEvents_698";Oq.__super__=w;Oq.prototype=u(w.prototype,{init:function(){this.actor.makeAlwaysSimulate()},forwardMessage:function(a){},__class__:Oq}); +var Pq=function(a,b,c){w.call(this,b)};k["scripts.ActorEvents_702"]=Pq;Pq.__name__="scripts.ActorEvents_702";Pq.__super__=w;Pq.prototype=u(w.prototype,{init:function(){},forwardMessage:function(a){},__class__:Pq});var Qq=function(a,b,c){w.call(this,b)};k["scripts.ActorEvents_704"]=Qq;Qq.__name__="scripts.ActorEvents_704";Qq.__super__=w;Qq.prototype=u(w.prototype,{init:function(){this.actor.makeAlwaysSimulate()},forwardMessage:function(a){},__class__:Qq});var Rq=function(a,b,c){w.call(this,b)};k["scripts.ActorEvents_706"]= +Rq;Rq.__name__="scripts.ActorEvents_706";Rq.__super__=w;Rq.prototype=u(w.prototype,{init:function(){},forwardMessage:function(a){},__class__:Rq});var Sq=function(a,b,c){w.call(this,b)};k["scripts.ActorEvents_708"]=Sq;Sq.__name__="scripts.ActorEvents_708";Sq.__super__=w;Sq.prototype=u(w.prototype,{init:function(){},forwardMessage:function(a){},__class__:Sq});var Tq=function(a,b,c){w.call(this,b)};k["scripts.ActorEvents_710"]=Tq;Tq.__name__="scripts.ActorEvents_710";Tq.__super__=w;Tq.prototype=u(w.prototype, +{init:function(){},forwardMessage:function(a){},__class__:Tq});var Uq=function(a,b,c){w.call(this,b)};k["scripts.ActorEvents_712"]=Uq;Uq.__name__="scripts.ActorEvents_712";Uq.__super__=w;Uq.prototype=u(w.prototype,{_event_Pressed:function(a){this.wrapper.enabled&&3==a&&(this._customEvent_Pressed(),this.actor.setAnimation("2"))},_event_Released:function(a){this.wrapper.enabled&&5==a&&this.actor.setAnimation("1")},_event_Exits:function(a){this.wrapper.enabled&&-1==a&&this.actor.setAnimation("1")},_customEvent_Pressed:function(){f.isTransitioning()|| +(h.engine.getGameAttribute("Mute Sounds")||f.playSound(f.getSound(594)),"Skins Menu 1"==f.getCurrentSceneName()?f.switchScene(va.get().scenes.h[22].getID(),null,f.createSlideLeftTransition(.3)):"Skins Menu 2"==f.getCurrentSceneName()?f.switchScene(va.get().scenes.h[14].getID(),null,f.createSlideLeftTransition(.3)):"Skins Menu 3"==f.getCurrentSceneName()?f.switchScene(va.get().scenes.h[15].getID(),null,f.createSlideLeftTransition(.3)):"Skins Menu 4"==f.getCurrentSceneName()?f.switchScene(va.get().scenes.h[16].getID(), +null,f.createSlideLeftTransition(.3)):"Skins Menu 5"==f.getCurrentSceneName()?f.switchScene(va.get().scenes.h[17].getID(),null,f.createSlideLeftTransition(.3)):"Skins Menu 6"==f.getCurrentSceneName()?f.switchScene(va.get().scenes.h[18].getID(),null,f.createSlideLeftTransition(.3)):"Skins Menu 7"==f.getCurrentSceneName()&&f.switchScene(va.get().scenes.h[19].getID(),null,f.createSlideLeftTransition(.3)))},init:function(){this.actor.makeAlwaysSimulate();this.actor.anchorToScreen();this.actor.setX(f.getScreenWidth()- +f.getScreenWidth()+4+da.leftInset);this.actor.setY(f.getScreenHeight()-f.getScreenHeight()/2-this.actor.getHeight()/2);this.addListener(this.actor.whenMousedOver,q(this,this._event_Pressed));this.addListener(this.actor.whenMousedOver,q(this,this._event_Released));this.addListener(this.actor.whenMousedOver,q(this,this._event_Exits))},forwardMessage:function(a){},__class__:Uq});var Vq=function(a,b,c){w.call(this,b)};k["scripts.ActorEvents_714"]=Vq;Vq.__name__="scripts.ActorEvents_714";Vq.__super__= +w;Vq.prototype=u(w.prototype,{_event_Pressed:function(a){this.wrapper.enabled&&3==a&&(this._customEvent_Pressed(),this.actor.setAnimation("2"))},_event_Released:function(a){this.wrapper.enabled&&5==a&&this.actor.setAnimation("1")},_event_Exits:function(a){this.wrapper.enabled&&-1==a&&this.actor.setAnimation("1")},_customEvent_Pressed:function(){f.isTransitioning()||(h.engine.getGameAttribute("Mute Sounds")||f.playSound(f.getSound(594)),"Skins Menu 1"==f.getCurrentSceneName()?f.switchScene(va.get().scenes.h[15].getID(), +null,f.createSlideRightTransition(.3)):"Skins Menu 2"==f.getCurrentSceneName()?f.switchScene(va.get().scenes.h[16].getID(),null,f.createSlideRightTransition(.3)):"Skins Menu 3"==f.getCurrentSceneName()?f.switchScene(va.get().scenes.h[17].getID(),null,f.createSlideRightTransition(.3)):"Skins Menu 4"==f.getCurrentSceneName()?f.switchScene(va.get().scenes.h[18].getID(),null,f.createSlideRightTransition(.3)):"Skins Menu 5"==f.getCurrentSceneName()?f.switchScene(va.get().scenes.h[19].getID(),null,f.createSlideRightTransition(.3)): +"Skins Menu 6"==f.getCurrentSceneName()?f.switchScene(va.get().scenes.h[22].getID(),null,f.createSlideRightTransition(.3)):"Skins Menu 7"==f.getCurrentSceneName()&&f.switchScene(va.get().scenes.h[14].getID(),null,f.createSlideRightTransition(.3)))},init:function(){this.actor.makeAlwaysSimulate();this.actor.anchorToScreen();this.actor.setX(f.getScreenWidth()-this.actor.getWidth()-4-da.rightInset);this.actor.setY(f.getScreenHeight()-f.getScreenHeight()/2-this.actor.getHeight()/2);this.addListener(this.actor.whenMousedOver, +q(this,this._event_Pressed));this.addListener(this.actor.whenMousedOver,q(this,this._event_Released));this.addListener(this.actor.whenMousedOver,q(this,this._event_Exits))},forwardMessage:function(a){},__class__:Vq});var Wq=function(a,b,c){w.call(this,b);this.nameMap.h["Crown Icon"]="_CrownIcon";this.nameMap.h["Can Draw?"]="_CanDraw";this._CanDraw=!1};k["scripts.ActorEvents_716"]=Wq;Wq.__name__="scripts.ActorEvents_716";Wq.__super__=w;Wq.prototype=u(w.prototype,{_CrownIcon:null,_CanDraw:null,_event_DrawingCopy:function(a, +b,c){this.wrapper.enabled&&(a.setFont(f.getFont(581)),a.translateToScreen(),h.engine.getGameAttribute("Collected Skins List").length>=h.engine.getGameAttribute("Skin Names List").length?(this.actor.setAnimation("3"),this._CrownIcon.setX(this.actor.getScreenX()+29),this._CrownIcon.setY(this.actor.getScreenY())):(100<=h.engine.getGameAttribute("Collected Skins List").length||h.engine.getGameAttribute("Collected Skins List"),this.actor.setAnimation("2")),a.drawString(""+h.engine.getGameAttribute("Collected Skins List").length, +this.actor.getScreenX()+15,this.actor.getScreenY()+4))},_event_Drawing:function(a,b,c){if(this.wrapper.enabled)for(a=0,b=f.getActorsOfType(f.getActorType(692));a<b.length;)c=b[a],++a,null==c||c.dead||c.recycled||this.actor.setY(c.getScreenY()+c.getHeight()+1)},init:function(){this.actor.makeAlwaysSimulate();this.actor.anchorToScreen();this.actor.setX(f.getScreenWidth()-f.getScreenWidth()+2+da.leftInset);this.actor.setY(f.getScreenHeight()-f.getScreenHeight()+2+da.topInset);h.engine.getGameAttribute("Collected Skins List").length>= +h.engine.getGameAttribute("Skin Names List").length&&(f.createRecycledActor(f.getActorType(769),this.actor.getScreenX()+20,this.actor.getScreenY(),0),this._CrownIcon=f.getLastCreatedActor());this.addListener(this.actor.whenDrawing,q(this,this._event_DrawingCopy));this.addListener(this.actor.whenDrawing,q(this,this._event_Drawing))},forwardMessage:function(a){},__class__:Wq});var Xq=function(a,b,c){w.call(this,b)};k["scripts.ActorEvents_718"]=Xq;Xq.__name__="scripts.ActorEvents_718";Xq.__super__=w; +Xq.prototype=u(w.prototype,{init:function(){this.actor.makeAlwaysSimulate();this.actor.anchorToScreen();this.actor.setX(f.getScreenWidth()-this.actor.getWidth()-3-da.rightInset);this.actor.setY(f.getScreenHeight()-f.getScreenHeight()+3+da.topInset);"Skins Menu 1"==f.getCurrentSceneName()?this.actor.setAnimation("1"):"Skins Menu 2"==f.getCurrentSceneName()?this.actor.setAnimation("2"):"Skins Menu 3"==f.getCurrentSceneName()?this.actor.setAnimation("3"):"Skins Menu 4"==f.getCurrentSceneName()?this.actor.setAnimation("4"): +"Skins Menu 5"==f.getCurrentSceneName()?this.actor.setAnimation("5"):"Skins Menu 6"==f.getCurrentSceneName()?this.actor.setAnimation("6"):"Skins Menu 7"==f.getCurrentSceneName()&&this.actor.setAnimation("7")},forwardMessage:function(a){},__class__:Xq});var Yq=function(a,b,c){w.call(this,b)};k["scripts.ActorEvents_720"]=Yq;Yq.__name__="scripts.ActorEvents_720";Yq.__super__=w;Yq.prototype=u(w.prototype,{init:function(){},forwardMessage:function(a){},__class__:Yq});var Zq=function(a,b,c){w.call(this, +b)};k["scripts.ActorEvents_722"]=Zq;Zq.__name__="scripts.ActorEvents_722";Zq.__super__=w;Zq.prototype=u(w.prototype,{init:function(){this.actor.makeAlwaysSimulate()},forwardMessage:function(a){},__class__:Zq});var $q=function(a,b,c){w.call(this,b);this.nameMap.h["Counter X"]="_CounterX";this._CounterX=0;this.nameMap.h["Counter Y"]="_CounterY";this._CounterY=0;this.nameMap.h["Temp Counter"]="_TempCounter";this._TempCounter=0;this.nameMap.h["Collected Carrots"]="_CollectedCarrots";this._CollectedCarrots= +0;this.nameMap.h["Can Draw?"]="_CanDraw";this._CanDraw=!1;this.nameMap.h["Carrot Reward"]="_CarrotReward";this._CarrotReward=!1};k["scripts.ActorEvents_724"]=$q;$q.__name__="scripts.ActorEvents_724";$q.__super__=w;$q.prototype=u(w.prototype,{_CounterX:null,_CounterY:null,_TempCounter:null,_CollectedCarrots:null,_CanDraw:null,_CarrotReward:null,_event_DrawingCopy:function(a,b,c){this.wrapper.enabled&&(a.setFont(f.getFont(581)),a.translateToScreen(),1E3>h.engine.getGameAttribute("Currency Carrots")? +a.drawString(""+this._TempCounter+"/100",this._CounterX,this._CounterY):a.drawString("999/100",this._CounterX,this._CounterY),this._CanDraw)&&(h.engine.getGameAttribute("Multiplayer On")?h.engine.getGameAttribute("Multiplayer On")&&1==h.engine.getGameAttribute("Multiplayer Mode")?(a.setFont(f.getFont(729)),a.drawString("+"+n.string(h.engine.getGameAttribute("Carrot Counter")),this._CounterX-2,this._CounterY+8)):h.engine.getGameAttribute("Multiplayer On")&&2==h.engine.getGameAttribute("Multiplayer Mode")&& +(a.setFont(f.getFont(729)),a.drawString("+"+(h.engine.getGameAttribute("P1 Versus Score")+h.engine.getGameAttribute("P2 Versus Score")),this._CounterX-2,this._CounterY+8)):(a.setFont(f.getFont(729)),a.drawString("+"+n.string(h.engine.getGameAttribute("Carrot Counter")),this._CounterX-2,this._CounterY+8)))},_event_Updating:function(a){if(this.wrapper.enabled){a=0;for(var b=f.getActorsOfType(f.getActorType(720));a<b.length;){var c=b[a];++a;null==c||c.dead||c.recycled||this.actor.setY(c.getY()+36)}99< +h.engine.getGameAttribute("Currency Carrots")&&this.actor.setAnimation("1")}},_event_50CarrotsReward:function(a,b,c){this.wrapper.enabled&&this._CanDraw&&this._CarrotReward&&(h.engine.getGameAttribute("Multiplayer On")?h.engine.getGameAttribute("Multiplayer On")&&1==h.engine.getGameAttribute("Multiplayer Mode")?(a.setFont(f.getFont(729)),a.drawString("+50",this._CounterX-2,this._CounterY+8)):h.engine.getGameAttribute("Multiplayer On")&&2==h.engine.getGameAttribute("Multiplayer Mode")&&(a.setFont(f.getFont(729)), +a.drawString("+50",this._CounterX-2,this._CounterY+8)):(a.setFont(f.getFont(729)),a.drawString("+50",this._CounterX-2,this._CounterY+8)))},_customEvent_greentext:function(){var a=this;this._CanDraw=!0;f.runLater(1600,function(b){a._CanDraw=!1;f.runLater(100,function(b){a._CanDraw=!0;f.runLater(100,function(b){a._CanDraw=!1;f.runLater(100,function(b){a._CanDraw=!0;f.runLater(100,function(b){a._CanDraw=!1},a.actor)},a.actor)},a.actor)},a.actor)},this.actor)},_customEvent_scoreincrease:function(){var a= +this;h.engine.getGameAttribute("Multiplayer On")?h.engine.getGameAttribute("Multiplayer On")&&1==h.engine.getGameAttribute("Multiplayer Mode")?this._TempCounter<h.engine.getGameAttribute("Currency Carrots")&&(this._TempCounter+=1,f.runLater(40,function(b){a._customEvent_scoreincrease()},this.actor)):h.engine.getGameAttribute("Multiplayer On")&&2==h.engine.getGameAttribute("Multiplayer Mode")&&this._TempCounter<h.engine.getGameAttribute("Currency Carrots")&&(this._TempCounter+=1,f.runLater(40,function(b){a._customEvent_scoreincrease()}, +this.actor)):this._TempCounter<h.engine.getGameAttribute("Currency Carrots")&&(this._TempCounter+=1,f.runLater(40,function(b){a._customEvent_scoreincrease()},this.actor))},_customEvent_EnableCarrotReward:function(){this._CarrotReward=!0},init:function(){var a=this;this.actor.makeAlwaysSimulate();this.actor.anchorToScreen();99<h.engine.getGameAttribute("Currency Carrots")?this._CounterX=this.actor.getX()+11:this._CounterX=this.actor.getX()+14;this._CounterY=this.actor.getY()+3;"Unlock Bunny Screen"== +f.getCurrentSceneName()?h.engine.getGameAttribute("Multiplayer On")?h.engine.getGameAttribute("Multiplayer On")&&1==h.engine.getGameAttribute("Multiplayer Mode")?this._TempCounter=h.engine.getGameAttribute("Currency Carrots"):h.engine.getGameAttribute("Multiplayer On")&&2==h.engine.getGameAttribute("Multiplayer Mode")&&(this._TempCounter=h.engine.getGameAttribute("Currency Carrots")):this._TempCounter=h.engine.getGameAttribute("Currency Carrots"):(h.engine.getGameAttribute("Multiplayer On")?h.engine.getGameAttribute("Multiplayer On")&& +1==h.engine.getGameAttribute("Multiplayer Mode")?this._TempCounter=h.engine.getGameAttribute("Currency Carrots")-h.engine.getGameAttribute("Carrot Counter"):h.engine.getGameAttribute("Multiplayer On")&&2==h.engine.getGameAttribute("Multiplayer Mode")&&(this._TempCounter=h.engine.getGameAttribute("Currency Carrots")-(h.engine.getGameAttribute("P1 Versus Score")+h.engine.getGameAttribute("P2 Versus Score"))):this._TempCounter=h.engine.getGameAttribute("Currency Carrots")-h.engine.getGameAttribute("Carrot Counter"), +f.runLater(400,function(b){a._customEvent_greentext();f.runLater(200,function(b){a._customEvent_scoreincrease()},a.actor)},this.actor));this.addListener(this.actor.whenDrawing,q(this,this._event_DrawingCopy));this.addListener(this.actor.whenUpdated,q(this,this._event_Updating));this.addListener(this.actor.whenDrawing,q(this,this._event_50CarrotsReward))},forwardMessage:function(a){},__class__:$q});var ar=function(a,b,c){w.call(this,b)};k["scripts.ActorEvents_730"]=ar;ar.__name__="scripts.ActorEvents_730"; +ar.__super__=w;ar.prototype=u(w.prototype,{init:function(){this.actor.makeAlwaysSimulate()},forwardMessage:function(a){},__class__:ar});var br=function(a,b,c){w.call(this,b)};k["scripts.ActorEvents_732"]=br;br.__name__="scripts.ActorEvents_732";br.__super__=w;br.prototype=u(w.prototype,{init:function(){this.actor.makeAlwaysSimulate()},forwardMessage:function(a){},__class__:br});var cr=function(a,b,c){w.call(this,b)};k["scripts.ActorEvents_736"]=cr;cr.__name__="scripts.ActorEvents_736";cr.__super__= +w;cr.prototype=u(w.prototype,{init:function(){this.actor.makeAlwaysSimulate();this.actor.moveToBottom()},forwardMessage:function(a){},__class__:cr});var dr=function(a,b,c){w.call(this,b)};k["scripts.ActorEvents_738"]=dr;dr.__name__="scripts.ActorEvents_738";dr.__super__=w;dr.prototype=u(w.prototype,{init:function(){this.actor.makeAlwaysSimulate();this.actor.setCurrentFrame(f.randomInt(0,2));this.actor.setYVelocity(-1)},forwardMessage:function(a){},__class__:dr});var er=function(a,b,c){w.call(this, +b)};k["scripts.ActorEvents_740"]=er;er.__name__="scripts.ActorEvents_740";er.__super__=w;er.prototype=u(w.prototype,{init:function(){this.actor.makeAlwaysSimulate()},forwardMessage:function(a){},__class__:er});var fr=function(a,b,c){w.call(this,b);this.nameMap.h["Particle Number"]="_ParticleNumber";this._ParticleNumber=0};k["scripts.ActorEvents_742"]=fr;fr.__name__="scripts.ActorEvents_742";fr.__super__=w;fr.prototype=u(w.prototype,{_ParticleNumber:null,init:function(){this.actor.makeAlwaysSimulate(); +this._ParticleNumber=f.randomInt(0,1);0==this._ParticleNumber?this.actor.setAnimation("0"):this.actor.setAnimation("1")},forwardMessage:function(a){},__class__:fr});var gr=function(a,b,c){w.call(this,b)};k["scripts.ActorEvents_744"]=gr;gr.__name__="scripts.ActorEvents_744";gr.__super__=w;gr.prototype=u(w.prototype,{init:function(){this.actor.makeAlwaysSimulate();this.actor.setYVelocity(f.randomInt(-1,-2))},forwardMessage:function(a){},__class__:gr});var hr=function(a,b,c){w.call(this,b)};k["scripts.ActorEvents_746"]= +hr;hr.__name__="scripts.ActorEvents_746";hr.__super__=w;hr.prototype=u(w.prototype,{init:function(){this.actor.makeAlwaysSimulate();this.actor.setYVelocity(f.randomInt(-1,-2))},forwardMessage:function(a){},__class__:hr});var ir=function(a,b,c){w.call(this,b)};k["scripts.ActorEvents_748"]=ir;ir.__name__="scripts.ActorEvents_748";ir.__super__=w;ir.prototype=u(w.prototype,{init:function(){this.actor.makeAlwaysSimulate();this.actor.setYVelocity(f.randomInt(-1,-2))},forwardMessage:function(a){},__class__:ir}); +var jr=function(a,b,c){w.call(this,b)};k["scripts.ActorEvents_750"]=jr;jr.__name__="scripts.ActorEvents_750";jr.__super__=w;jr.prototype=u(w.prototype,{init:function(){this.actor.makeAlwaysSimulate();this.actor.moveToBottom()},forwardMessage:function(a){},__class__:jr});var kr=function(a,b,c){w.call(this,b)};k["scripts.ActorEvents_752"]=kr;kr.__name__="scripts.ActorEvents_752";kr.__super__=w;kr.prototype=u(w.prototype,{init:function(){this.actor.makeAlwaysSimulate()},forwardMessage:function(a){}, +__class__:kr});var lr=function(a,b,c){w.call(this,b)};k["scripts.ActorEvents_754"]=lr;lr.__name__="scripts.ActorEvents_754";lr.__super__=w;lr.prototype=u(w.prototype,{init:function(){this.actor.makeAlwaysSimulate()},forwardMessage:function(a){},__class__:lr});var mr=function(a,b,c){w.call(this,b)};k["scripts.ActorEvents_756"]=mr;mr.__name__="scripts.ActorEvents_756";mr.__super__=w;mr.prototype=u(w.prototype,{init:function(){this.actor.makeAlwaysSimulate()},forwardMessage:function(a){},__class__:mr}); +var nr=function(a,b,c){w.call(this,b)};k["scripts.ActorEvents_758"]=nr;nr.__name__="scripts.ActorEvents_758";nr.__super__=w;nr.prototype=u(w.prototype,{init:function(){},forwardMessage:function(a){},__class__:nr});var or=function(a,b,c){w.call(this,b)};k["scripts.ActorEvents_760"]=or;or.__name__="scripts.ActorEvents_760";or.__super__=w;or.prototype=u(w.prototype,{init:function(){var a=this;this.actor.makeAlwaysSimulate();this.actor.spinBy(360,3,ia.linear);f.runPeriodically(3E3,function(b){a.actor.spinBy(360, +3,ia.linear)},this.actor);this.actor.moveToBottom();this.actor.fadeTo(.8,0,ia.linear)},forwardMessage:function(a){},__class__:or});var pr=function(a,b,c){w.call(this,b)};k["scripts.ActorEvents_762"]=pr;pr.__name__="scripts.ActorEvents_762";pr.__super__=w;pr.prototype=u(w.prototype,{init:function(){this.actor.makeAlwaysSimulate();this.actor.setYVelocity(f.randomInt(-1,-2));this.actor.setXVelocity(f.randomInt(-1,1))},forwardMessage:function(a){},__class__:pr});var qr=function(a,b,c){w.call(this,b)}; +k["scripts.ActorEvents_764"]=qr;qr.__name__="scripts.ActorEvents_764";qr.__super__=w;qr.prototype=u(w.prototype,{init:function(){this.actor.makeAlwaysSimulate();this.actor.setYVelocity(f.randomInt(1,2))},forwardMessage:function(a){},__class__:qr});var rr=function(a,b,c){w.call(this,b)};k["scripts.ActorEvents_767"]=rr;rr.__name__="scripts.ActorEvents_767";rr.__super__=w;rr.prototype=u(w.prototype,{init:function(){this.actor.makeAlwaysSimulate();this.actor.setYVelocity(-1);this.actor.setXVelocity(0)}, +forwardMessage:function(a){},__class__:rr});var sr=function(a,b,c){w.call(this,b)};k["scripts.ActorEvents_769"]=sr;sr.__name__="scripts.ActorEvents_769";sr.__super__=w;sr.prototype=u(w.prototype,{init:function(){this.actor.makeAlwaysSimulate();this.actor.anchorToScreen()},forwardMessage:function(a){},__class__:sr});var tr=function(a,b,c){w.call(this,b)};k["scripts.ActorEvents_771"]=tr;tr.__name__="scripts.ActorEvents_771";tr.__super__=w;tr.prototype=u(w.prototype,{init:function(){("ontouchstart"in +document.documentElement||window.DocumentTouch&&document instanceof DocumentTouch)&&this.actor.disableActorDrawing()},forwardMessage:function(a){},__class__:tr});var ur=function(a,b,c){w.call(this,b)};k["scripts.ActorEvents_775"]=ur;ur.__name__="scripts.ActorEvents_775";ur.__super__=w;ur.prototype=u(w.prototype,{init:function(){},forwardMessage:function(a){},__class__:ur});var vr=function(a,b,c){w.call(this,b);this.nameMap.h["Game Number"]="_GameNumber";this._GameNumber=0};k["scripts.ActorEvents_777"]= +vr;vr.__name__="scripts.ActorEvents_777";vr.__super__=w;vr.prototype=u(w.prototype,{_GameNumber:null,_event_OnActor:function(a){this.wrapper.enabled&&3==a&&(f.playSoundOnChannel(f.getSound(749),2),f.openURLInBrowser("https://store.steampowered.com/developer/adventureislands"))},init:function(){this.actor.makeAlwaysSimulate();this._GameNumber=f.randomInt(0,3);0==this._GameNumber?this.actor.setCurrentFrame(0):1==this._GameNumber?this.actor.setCurrentFrame(2):2==this._GameNumber?this.actor.setCurrentFrame(4): +3==this._GameNumber&&this.actor.setCurrentFrame(6);f.recycleActor(this.actor);this.addListener(this.actor.whenMousedOver,q(this,this._event_OnActor))},forwardMessage:function(a){},__class__:vr});var wr=function(a,b,c){w.call(this,b)};k["scripts.ActorEvents_779"]=wr;wr.__name__="scripts.ActorEvents_779";wr.__super__=w;wr.prototype=u(w.prototype,{init:function(){f.recycleActor(this.actor)},forwardMessage:function(a){},__class__:wr});var xr=function(a,b,c){w.call(this,b)};k["scripts.ActorEvents_781"]= +xr;xr.__name__="scripts.ActorEvents_781";xr.__super__=w;xr.prototype=u(w.prototype,{init:function(){f.recycleActor(this.actor)},forwardMessage:function(a){},__class__:xr});var yr=function(a,b,c){w.call(this,b);this.nameMap.h["Bunny Skin Counter"]="_BunnySkinCounter"};k["scripts.ActorEvents_783"]=yr;yr.__name__="scripts.ActorEvents_783";yr.__super__=w;yr.prototype=u(w.prototype,{_BunnySkinCounter:null,_event_Exits:function(a){this.wrapper.enabled&&-1==a&&this.actor.setAnimation("0")},_event_ReleasedOn:function(a){this.wrapper.enabled&& +5==a&&this.actor.setAnimation("0")},_event_Pressed:function(a){this.wrapper.enabled&&3==a&&(this.actor.setAnimation("1"),this._customEvent_Pressed())},_customEvent_Pressed:function(){this.actor.setAnimation("1");f.isTransitioning()||(h.engine.getGameAttribute("Mute Sounds")||f.playSoundOnChannel(f.getSound(594),2),f.switchScene(va.get().scenes.h[24].getID(),null,f.createCrossfadeTransition(.3)))},init:function(){this.actor.makeAlwaysSimulate();this.actor.anchorToScreen();this.actor.setX(f.getScreenWidth()- +f.getScreenWidth()+da.leftInset);this.actor.setY(f.getScreenHeight()-f.getScreenHeight()/2-this.actor.getHeight()/2+32);this.addListener(this.actor.whenMousedOver,q(this,this._event_Exits));this.addListener(this.actor.whenMousedOver,q(this,this._event_ReleasedOn));this.addListener(this.actor.whenMousedOver,q(this,this._event_Pressed))},forwardMessage:function(a){},__class__:yr});var zr=function(a,b,c){w.call(this,b)};k["scripts.ActorEvents_789"]=zr;zr.__name__="scripts.ActorEvents_789";zr.__super__= +w;zr.prototype=u(w.prototype,{init:function(){},forwardMessage:function(a){},__class__:zr});var Ar=function(a,b,c){w.call(this,b)};k["scripts.ActorEvents_791"]=Ar;Ar.__name__="scripts.ActorEvents_791";Ar.__super__=w;Ar.prototype=u(w.prototype,{_event_Pressed:function(a){this.wrapper.enabled&&3==a&&(f.shoutToScene("_customEvent_MuteMusic"),h.engine.getGameAttribute("Mute Music")?this.actor.setAnimation("4"):this.actor.setAnimation("2"),h.engine.getGameAttribute("Mute Sounds")||f.playSoundOnChannel(f.getSound(594), +2))},_event_Released:function(a){this.wrapper.enabled&&5==a&&(h.engine.getGameAttribute("Mute Music")?this.actor.setAnimation("3"):this.actor.setAnimation("1"))},_event_Exits:function(a){this.wrapper.enabled&&-1==a&&(h.engine.getGameAttribute("Mute Music")?this.actor.setAnimation("3"):this.actor.setAnimation("1"))},init:function(){this.actor.makeAlwaysSimulate();this.actor.anchorToScreen();h.engine.getGameAttribute("Mute Music")?this.actor.setAnimation("3"):this.actor.setAnimation("1");this.addListener(this.actor.whenMousedOver, +q(this,this._event_Pressed));this.addListener(this.actor.whenMousedOver,q(this,this._event_Released));this.addListener(this.actor.whenMousedOver,q(this,this._event_Exits))},forwardMessage:function(a){},__class__:Ar});var Br=function(a,b,c){w.call(this,b)};k["scripts.ActorEvents_793"]=Br;Br.__name__="scripts.ActorEvents_793";Br.__super__=w;Br.prototype=u(w.prototype,{_event_Pressed:function(a){this.wrapper.enabled&&3==a&&(f.shoutToScene("_customEvent_MuteSounds"),h.engine.getGameAttribute("Mute Sounds")? +this.actor.setAnimation("4"):this.actor.setAnimation("2"),h.engine.getGameAttribute("Mute Sounds")||f.playSoundOnChannel(f.getSound(594),2))},_event_Released:function(a){this.wrapper.enabled&&5==a&&(h.engine.getGameAttribute("Mute Sounds")?this.actor.setAnimation("3"):this.actor.setAnimation("1"))},_event_Exits:function(a){this.wrapper.enabled&&-1==a&&(h.engine.getGameAttribute("Mute Sounds")?this.actor.setAnimation("3"):this.actor.setAnimation("1"))},init:function(){this.actor.makeAlwaysSimulate(); +this.actor.anchorToScreen();h.engine.getGameAttribute("Mute Sounds")?this.actor.setAnimation("3"):this.actor.setAnimation("1");this.addListener(this.actor.whenMousedOver,q(this,this._event_Pressed));this.addListener(this.actor.whenMousedOver,q(this,this._event_Released));this.addListener(this.actor.whenMousedOver,q(this,this._event_Exits))},forwardMessage:function(a){},__class__:Br});var Cr=function(a,b,c){w.call(this,b);this.nameMap.h["Bunny Skin Counter"]="_BunnySkinCounter"};k["scripts.ActorEvents_795"]= +Cr;Cr.__name__="scripts.ActorEvents_795";Cr.__super__=w;Cr.prototype=u(w.prototype,{_BunnySkinCounter:null,_event_Exits:function(a){this.wrapper.enabled&&-1==a&&this.actor.setAnimation("0")},_event_ReleasedOn:function(a){this.wrapper.enabled&&5==a&&this.actor.setAnimation("0")},_event_Pressed:function(a){this.wrapper.enabled&&3==a&&(this.actor.setAnimation("1"),this._customEvent_Pressed())},_customEvent_Pressed:function(){this.actor.setAnimation("1");f.isTransitioning()||f.engine.isPaused()||(h.engine.getGameAttribute("Mute Sounds")|| +f.playSoundOnChannel(f.getSound(594),2),f.switchScene(va.get().scenes.h[23].getID(),null,f.createCrossfadeTransition(.3)))},init:function(){this.actor.makeAlwaysSimulate();this.actor.anchorToScreen();this.actor.setX(f.getScreenWidth()-f.getScreenWidth()+da.leftInset);this.actor.setY(f.getScreenHeight()-f.getScreenHeight()/2-this.actor.getHeight()/2-4);f.createRecycledActor(f.getActorType(791),this.actor.getX(),this.actor.getY()+this.actor.getHeight(),0);f.createRecycledActor(f.getActorType(793),this.actor.getX(), +this.actor.getY()+2*this.actor.getHeight(),0);this.addListener(this.actor.whenMousedOver,q(this,this._event_Exits));this.addListener(this.actor.whenMousedOver,q(this,this._event_ReleasedOn));this.addListener(this.actor.whenMousedOver,q(this,this._event_Pressed))},forwardMessage:function(a){},__class__:Cr});var Dr=function(a,b,c){w.call(this,b)};k["scripts.ActorEvents_797"]=Dr;Dr.__name__="scripts.ActorEvents_797";Dr.__super__=w;Dr.prototype=u(w.prototype,{init:function(){},forwardMessage:function(a){}, +__class__:Dr});var Er=function(a,b,c){w.call(this,b)};k["scripts.ActorEvents_799"]=Er;Er.__name__="scripts.ActorEvents_799";Er.__super__=w;Er.prototype=u(w.prototype,{init:function(){this.actor.moveToBottom()},forwardMessage:function(a){},__class__:Er});var Fr=function(a,b,c){w.call(this,b)};k["scripts.ActorEvents_804"]=Fr;Fr.__name__="scripts.ActorEvents_804";Fr.__super__=w;Fr.prototype=u(w.prototype,{init:function(){this.actor.makeAlwaysSimulate();this.actor.anchorToScreen();pa.adBlocked&&this.actor.setAnimation("3")}, +forwardMessage:function(a){},__class__:Fr});var Gr=function(a,b,c){w.call(this,b)};k["scripts.ActorEvents_806"]=Gr;Gr.__name__="scripts.ActorEvents_806";Gr.__super__=w;Gr.prototype=u(w.prototype,{init:function(){this.actor.makeAlwaysSimulate();this.actor.anchorToScreen();this.actor.setX(f.getScreenWidth()/2-this.actor.getWidth()/2);this.actor.setY(f.getScreenHeight()-f.getScreenHeight()-2*this.actor.getHeight());this.actor.moveTo(f.getScreenWidth()-f.getScreenWidth()/2-this.actor.getWidth()/2,f.getScreenHeight()- +f.getScreenHeight()/2-this.actor.getHeight()/2-32,.2,ia.linear);f.createRecycledActor(f.getActorType(808),-300,-300,0);f.createRecycledActor(f.getActorType(810),-300,-300,0);for(var a=0,b=f.getActorsOfType(f.getActorType(674));a<b.length;){var c=b[a];++a;null==c||c.dead||c.recycled||f.recycleActor(c)}a=0;for(b=f.getActorsOfType(f.getActorType(654));a<b.length;)c=b[a],++a,null==c||c.dead||c.recycled||f.recycleActor(c);a=0;for(b=f.getActorsOfType(f.getActorType(656));a<b.length;)c=b[a],++a,null==c|| +c.dead||c.recycled||f.recycleActor(c);a=0;for(b=f.getActorsOfType(f.getActorType(479));a<b.length;)c=b[a],++a,null==c||c.dead||c.recycled||f.recycleActor(c);a=0;for(b=f.getActorsOfType(f.getActorType(652));a<b.length;)c=b[a],++a,null==c||c.dead||c.recycled||f.recycleActor(c);a=0;for(b=f.getActorsOfType(f.getActorType(572));a<b.length;)c=b[a],++a,null==c||c.dead||c.recycled||f.recycleActor(c);pa.sendGameplayStop()},forwardMessage:function(a){},__class__:Gr});var Hr=function(a,b,c){w.call(this,b)}; +k["scripts.ActorEvents_808"]=Hr;Hr.__name__="scripts.ActorEvents_808";Hr.__super__=w;Hr.prototype=u(w.prototype,{_event_Updating:function(a){if(this.wrapper.enabled){a=0;for(var b=f.getActorsOfType(f.getActorType(806));a<b.length;){var c=b[a];++a;null==c||c.dead||c.recycled||(this.actor.setX(c.getXCenter()-48),this.actor.setY(c.getY()+46))}}},_event_Pressed:function(a){this.wrapper.enabled&&3==a&&(this.actor.setAnimation("2"),this._customEvent_Pressed())},_event_Exits:function(a){this.wrapper.enabled&& +-1==a&&this.actor.setAnimation("1")},_event_Released:function(a){this.wrapper.enabled&&5==a&&this.actor.setAnimation("1")},_event_SpacePressedHTML5:function(a,b){this.wrapper.enabled&&a&&(pa.IsVideoPlaying()||this._customEvent_Pressed())},_customEvent_Pressed:function(){if(!f.isTransitioning()){for(var a=0,b=f.getActorsOfType(f.getActorType(586));a<b.length;){var c=b[a];++a;null==c||c.dead||c.recycled||f.recycleActor(c)}a=0;for(b=f.getActorsOfType(f.getActorType(806));a<b.length;)c=b[a],++a,null== +c||c.dead||c.recycled||f.recycleActor(c);a=0;for(b=f.getActorsOfType(f.getActorType(808));a<b.length;)c=b[a],++a,null==c||c.dead||c.recycled||f.recycleActor(c);a=0;for(b=f.getActorsOfType(f.getActorType(810));a<b.length;)c=b[a],++a,null==c||c.dead||c.recycled||f.recycleActor(c);f.engine.unpause();f.shoutToScene("_customEvent_AddCurrency");f.switchScene(va.get().scenes.h[11].getID(),null,f.createCrossfadeTransition(.5))}},init:function(){this.actor.makeAlwaysSimulate();this.actor.anchorToScreen(); +this.addListener(this.actor.whenUpdated,q(this,this._event_Updating));this.addListener(this.actor.whenMousedOver,q(this,this._event_Pressed));this.addListener(this.actor.whenMousedOver,q(this,this._event_Exits));this.addListener(this.actor.whenMousedOver,q(this,this._event_Released));this.addListener(f.engine.whenKeyPressedEvents.getOrCreateEvent("Space"),q(this,this._event_SpacePressedHTML5))},forwardMessage:function(a){},__class__:Hr});var Ir=function(a,b,c){w.call(this,b);this.nameMap.h.Adblocked= +"_Adblocked";this._Adblocked=!1};k["scripts.ActorEvents_810"]=Ir;Ir.__name__="scripts.ActorEvents_810";Ir.__super__=w;Ir.prototype=u(w.prototype,{_Adblocked:null,_event_Updating:function(a){if(this.wrapper.enabled){a=0;for(var b=f.getActorsOfType(f.getActorType(806));a<b.length;){var c=b[a];++a;null==c||c.dead||c.recycled||(this.actor.setX(c.getXCenter()+16),this.actor.setY(c.getY()+46))}this._Adblocked&&this.actor.setAnimation("3");a=0;for(b=f.getActorsOfType(f.getActorType(833));a<b.length;)c=b[a], +++a,null==c||c.dead||c.recycled||(c.setX(this.actor.getX()),c.setY(this.actor.getY()+32))}},_event_Pressed:function(a){!this.wrapper.enabled||3!=a||f.isTransitioning()||this._Adblocked||(this.actor.setAnimation("2"),f.shoutToScene("_customEvent_ReviveAdPoki"))},_event_Exits:function(a){this.wrapper.enabled&&-1==a&&(this._Adblocked||this.actor.setAnimation("1"))},_event_Released:function(a){this.wrapper.enabled&&5==a&&(this._Adblocked||this.actor.setAnimation("1"))},init:function(){this.actor.makeAlwaysSimulate(); +this.actor.anchorToScreen();pa.adBlocked&&(this._Adblocked=!0,f.createRecycledActor(f.getActorType(833),this.actor.getX(),this.actor.getY()+32,0));this.addListener(this.actor.whenUpdated,q(this,this._event_Updating));this.addListener(this.actor.whenMousedOver,q(this,this._event_Pressed));this.addListener(this.actor.whenMousedOver,q(this,this._event_Exits));this.addListener(this.actor.whenMousedOver,q(this,this._event_Released))},forwardMessage:function(a){},__class__:Ir});var Jr=function(a,b,c){w.call(this, +b)};k["scripts.ActorEvents_812"]=Jr;Jr.__name__="scripts.ActorEvents_812";Jr.__super__=w;Jr.prototype=u(w.prototype,{init:function(){},forwardMessage:function(a){},__class__:Jr});var Kr=function(a,b,c){w.call(this,b);this.nameMap.h["Can Be Pressed?"]="_CanBePressed";this._CanBePressed=!1};k["scripts.ActorEvents_814"]=Kr;Kr.__name__="scripts.ActorEvents_814";Kr.__super__=w;Kr.prototype=u(w.prototype,{_CanBePressed:null,_event_pressed:function(a){this.wrapper.enabled&&3==a&&(this.actor.setAnimation("1"), +this._CanBePressed&&(f.isTransitioning()||h.engine.getGameAttribute("Mute Sounds")||f.playSound(f.getSound(594))))},_event_exits:function(a){this.wrapper.enabled&&-1==a&&this.actor.setAnimation("0")},_event_released:function(a){this.wrapper.enabled&&5==a&&this.actor.setAnimation("0")},_event_Purchases:function(a){},_event_Purchases2:function(a){this.wrapper.enabled&&f.showAlert("Purchase failed","Sorry about that.")},init:function(){var a=this;this.actor.makeAlwaysSimulate();this.actor.anchorToScreen(); +this.actor.setX(f.getScreenWidth()-this.actor.getWidth()-5-da.rightInset);this.actor.setY(f.getScreenHeight()-f.getScreenHeight()+2);f.recycleActor(this.actor);f.runLater(300,function(b){a._CanBePressed=!0},this.actor);f.recycleActor(this.actor);this.addListener(this.actor.whenMousedOver,q(this,this._event_pressed));this.addListener(this.actor.whenMousedOver,q(this,this._event_exits));this.addListener(this.actor.whenMousedOver,q(this,this._event_released));this.addPurchaseListener(201,q(this,this._event_Purchases)); +this.addPurchaseListener(202,q(this,this._event_Purchases2))},forwardMessage:function(a){},__class__:Kr});var Lr=function(a,b,c){w.call(this,b)};k["scripts.ActorEvents_816"]=Lr;Lr.__name__="scripts.ActorEvents_816";Lr.__super__=w;Lr.prototype=u(w.prototype,{_event_Pressed:function(a){this.wrapper.enabled&&3==a&&(this.actor.setAnimation("2"),f.purchasesRestore(),h.engine.getGameAttribute("Mute Sounds")||f.playSound(f.getSound(594)))},_event_Released:function(a){this.wrapper.enabled&&5==a&&this.actor.setAnimation("1")}, +_event_Exits:function(a){this.wrapper.enabled&&-1==a&&this.actor.setAnimation("1")},_event_Purchases:function(a){this.wrapper.enabled&&f.showAlert("Purchases Restored","No more ads will be shown.")},init:function(){this.actor.setAnimation("1");f.recycleActor(this.actor);this.addListener(this.actor.whenMousedOver,q(this,this._event_Pressed));this.addListener(this.actor.whenMousedOver,q(this,this._event_Released));this.addListener(this.actor.whenMousedOver,q(this,this._event_Exits));this.addPurchaseListener(203, +q(this,this._event_Purchases))},forwardMessage:function(a){},__class__:Lr});var Mr=function(a,b,c){w.call(this,b)};k["scripts.ActorEvents_819"]=Mr;Mr.__name__="scripts.ActorEvents_819";Mr.__super__=w;Mr.prototype=u(w.prototype,{_event_Exits:function(a){this.wrapper.enabled&&-1==a&&this.actor.setAnimation("1")},_event_ReleasedOn:function(a){this.wrapper.enabled&&5==a&&this.actor.setAnimation("1")},_event_PressedOn:function(a){this.wrapper.enabled&&3==a&&(this.actor.setAnimation("2"),f.isTransitioning())}, +init:function(){this.actor.makeAlwaysSimulate();this.actor.anchorToScreen();this.actor.setAnimation("1");f.recycleActor(this.actor);this.addListener(this.actor.whenMousedOver,q(this,this._event_Exits));this.addListener(this.actor.whenMousedOver,q(this,this._event_ReleasedOn));this.addListener(this.actor.whenMousedOver,q(this,this._event_PressedOn))},forwardMessage:function(a){},__class__:Mr});var Nr=function(a,b,c){w.call(this,b);this.nameMap.h.Pressed="_Pressed";this._Pressed=!1};k["scripts.ActorEvents_821"]= +Nr;Nr.__name__="scripts.ActorEvents_821";Nr.__super__=w;Nr.prototype=u(w.prototype,{_Pressed:null,_event_Drawing:function(a,b,c){},_event_Exits:function(a){this.wrapper.enabled&&-1==a&&(this._Pressed=!1)},_event_released:function(a){this.wrapper.enabled&&5==a&&(this._Pressed=!1)},_event_Pressed:function(a){this.wrapper.enabled&&3==a&&(this._Pressed=!0,this._customEvent_pressed())},_customEvent_pressed:function(){f.isTransitioning()||h.engine.getGameAttribute("Mute Sounds")||f.playSound(f.getSound(594))}, +init:function(){this.actor.makeAlwaysSimulate();this.actor.anchorToScreen();f.recycleActor(this.actor);f.createRecycledActor(f.getActorType(823),this.actor.getX()+10,this.actor.getY()+this.actor.getHeight()+2,0);this.addListener(this.actor.whenDrawing,q(this,this._event_Drawing));this.addListener(this.actor.whenMousedOver,q(this,this._event_Exits));this.addListener(this.actor.whenMousedOver,q(this,this._event_released));this.addListener(this.actor.whenMousedOver,q(this,this._event_Pressed))},forwardMessage:function(a){}, +__class__:Nr});var Or=function(a,b,c){w.call(this,b)};k["scripts.ActorEvents_823"]=Or;Or.__name__="scripts.ActorEvents_823";Or.__super__=w;Or.prototype=u(w.prototype,{_event_Exits:function(a){this.wrapper.enabled&&-1==a&&this.actor.setAnimation("1")},_event_ReleasedOn:function(a){this.wrapper.enabled&&5==a&&this.actor.setAnimation("1")},_event_PressedOn:function(a){this.wrapper.enabled&&3==a&&(this.actor.setAnimation("2"),f.isTransitioning())},init:function(){this.actor.makeAlwaysSimulate();this.actor.anchorToScreen(); +this.actor.setAnimation("1");"Results Screen"==f.getCurrentSceneName()&&(this.actor.setX(f.getScreenWidth()-f.getScreenWidth()+1+da.leftInset),this.actor.setY(f.getScreenHeight()-f.getScreenHeight()/2-this.actor.getHeight()/2));f.recycleActor(this.actor);this.addListener(this.actor.whenMousedOver,q(this,this._event_Exits));this.addListener(this.actor.whenMousedOver,q(this,this._event_ReleasedOn));this.addListener(this.actor.whenMousedOver,q(this,this._event_PressedOn))},forwardMessage:function(a){}, +__class__:Or});var Pr=function(a,b,c){w.call(this,b)};k["scripts.ActorEvents_825"]=Pr;Pr.__name__="scripts.ActorEvents_825";Pr.__super__=w;Pr.prototype=u(w.prototype,{_event_ExitsSelf:function(a){this.wrapper.enabled&&-1==a&&this.actor.setAnimation("1")},_event_IsReleasedOnSelf:function(a){this.wrapper.enabled&&5==a&&this.actor.setAnimation("1")},_event_PressedOn:function(a){this.wrapper.enabled&&3==a&&this._customEvent_Pressed()},_customEvent_Pressed:function(){this.actor.setAnimation("2");f.isTransitioning()|| +(f.stopSoundOnChannel(0),f.switchScene(va.get().scenes.h[9].getID(),null,f.createCrossfadeTransition(.3)),h.engine.getGameAttribute("Mute Sounds")||f.playSound(f.getSound(594)),f.runLater(450,function(a){f.engine.unpause()},this.actor))},init:function(){this.actor.makeAlwaysSimulate();this.actor.setAnimation("1");this.addListener(this.actor.whenMousedOver,q(this,this._event_ExitsSelf));this.addListener(this.actor.whenMousedOver,q(this,this._event_IsReleasedOnSelf));this.addListener(this.actor.whenMousedOver, +q(this,this._event_PressedOn))},forwardMessage:function(a){},__class__:Pr});var Qr=function(a,b,c){w.call(this,b)};k["scripts.ActorEvents_829"]=Qr;Qr.__name__="scripts.ActorEvents_829";Qr.__super__=w;Qr.prototype=u(w.prototype,{_event_Exits:function(a){this.wrapper.enabled&&-1==a&&(pa.adBlocked?this.actor.setAnimation("2"):this.actor.setAnimation("0"))},_event_ReleasedOn:function(a){this.wrapper.enabled&&5==a&&(pa.adBlocked?this.actor.setAnimation("2"):this.actor.setAnimation("0"))},_event_Pressed:function(a){this.wrapper.enabled&& +3==a&&f.shoutToScene("_customEvent_RewardUnlockCarrotsPoki")},init:function(){this.actor.makeAlwaysSimulate();this.actor.anchorToScreen();this.actor.setX(f.getScreenWidth()-this.actor.getWidth()-3-da.leftInset);this.actor.setY(f.getScreenHeight()-f.getScreenHeight()/2-this.actor.getHeight()/2-8+da.topInset);pa.adBlocked&&this.actor.setAnimation("2");f.createRecycledActor(f.getActorType(831),this.actor.getX()-2,this.actor.getY()+this.actor.getHeight()-4,0);this.actor.fadeTo(0,0,ia.linear);this.actor.fadeTo(1, +.3,ia.linear);this.addListener(this.actor.whenMousedOver,q(this,this._event_Exits));this.addListener(this.actor.whenMousedOver,q(this,this._event_ReleasedOn));this.addListener(this.actor.whenMousedOver,q(this,this._event_Pressed))},forwardMessage:function(a){},__class__:Qr});var Rr=function(a,b,c){w.call(this,b)};k["scripts.ActorEvents_831"]=Rr;Rr.__name__="scripts.ActorEvents_831";Rr.__super__=w;Rr.prototype=u(w.prototype,{init:function(){this.actor.makeAlwaysSimulate();this.actor.anchorToScreen(); +this.actor.fadeTo(0,0,ia.linear);this.actor.fadeTo(1,.3,ia.linear);pa.adBlocked&&this.actor.setAnimation("2")},forwardMessage:function(a){},__class__:Rr});var Sr=function(a,b,c){w.call(this,b)};k["scripts.ActorEvents_833"]=Sr;Sr.__name__="scripts.ActorEvents_833";Sr.__super__=w;Sr.prototype=u(w.prototype,{init:function(){this.actor.makeAlwaysSimulate();this.actor.anchorToScreen()},forwardMessage:function(a){},__class__:Sr});var Tr=function(a,b,c){w.call(this,b);this.nameMap.h.Actor="actor";this.nameMap.h["Hit Ground?"]= +"_HitGround";this._HitGround=!1;this.nameMap.h["Limit To Tiles?"]="_LimitToTiles";this._LimitToTiles=!1;this.nameMap.h["Excluded Groups"]="_ExcludedGroups"};k["scripts.Design_107_107_OnGround"]=Tr;Tr.__name__="scripts.Design_107_107_OnGround";Tr.__super__=w;Tr.prototype=u(w.prototype,{_HitGround:null,_LimitToTiles:null,_ExcludedGroups:null,_event_Updated:function(a){this.wrapper.enabled&&(this.actor.setActorValue("On Ground?",this._HitGround),this._HitGround=!1)},_event_ActorAny:function(a){if(this.wrapper.enabled&& +a.thisFromBottom&&!(a.thisCollidedWithActor||this._LimitToTiles&&!a.thisCollidedWithTile)){if(0<this._ExcludedGroups.length)for(var b=0,c=O.__cast(this._ExcludedGroups,Array);b<c.length;){var d=c[b];++b;if(""+n.string(d)==""+n.string(this.internalGetGroup(a.otherActor,a.otherShape,a)))return}b=0;for(c=a.points;b<c.length;)if(d=c[b],++b,.1<Math.abs(Math.round(h.toPixelUnits(d.normalY)))){this._HitGround=!0;return}a.thisFromBottom&&(this._HitGround=!0)}},_event_HitsPlatforms:function(a){if(this.wrapper.enabled){var b= +f.getActorGroup(10);var c=a.otherActor.getType(),d=a.otherActor.getGroup();b=b==c||b==d}else b=!1;b&&a.thisFromBottom&&(this._HitGround=!0)},init:function(){this.addListener(this.actor.whenUpdated,q(this,this._event_Updated));this.addListener(this.actor.whenCollided,q(this,this._event_ActorAny));this.addListener(this.actor.whenCollided,q(this,this._event_HitsPlatforms))},forwardMessage:function(a){},__class__:Tr});var Ur=function(a,b,c){w.call(this,b);this.nameMap.h.Actor="actor";this.nameMap.h["Right Key"]= +"_RightKey";this.nameMap.h["Left Key"]="_LeftKey";this.nameMap.h["Ground Slowdown"]="_GroundSlowdown";this._GroundSlowdown=.9;this.nameMap.h["Air Slowdown"]="_AirSlowdown";this._AirSlowdown=.99;this.nameMap.h["Ducking Slowdown"]="_DuckingSlowdown";this._DuckingSlowdown=.975;this.nameMap.h["Moving Air Slowdown"]="_MovingAirSlowdown";this._MovingAirSlowdown=.975;this.nameMap.h["Moving Ground Slowdown"]="_MovingGroundSlowdown";this._MovingGroundSlowdown=.9};k["scripts.Design_108_108_Slowdown"]=Ur;Ur.__name__= +"scripts.Design_108_108_Slowdown";Ur.__super__=w;Ur.prototype=u(w.prototype,{_RightKey:null,_LeftKey:null,_GroundSlowdown:null,_AirSlowdown:null,_DuckingSlowdown:null,_MovingAirSlowdown:null,_MovingGroundSlowdown:null,_event_Updating:function(a){this.wrapper.enabled&&!f.asBoolean(this.actor.getActorValue("Is Slope Sliding?"))&&(f.asBoolean(this.actor.getActorValue("Is Ducking?"))&&f.asBoolean(this.actor.getActorValue("On Ground?"))?this.actor.setXVelocity(this.actor.getXVelocity()*this._DuckingSlowdown): +f.isKeyDown(this._RightKey)||f.isKeyDown(this._LeftKey)||f.asBoolean(this.actor.getActorValue("Is Ducking?"))?f.asBoolean(this.actor.getActorValue("On Ground?"))?this.actor.say("Walking","_customBlock_SlowToMax",[this._MovingGroundSlowdown]):this.actor.setXVelocity(this.actor.getXVelocity()*this._MovingAirSlowdown):f.asBoolean(this.actor.getActorValue("On Ground?"))?this.actor.setXVelocity(this.actor.getXVelocity()*this._GroundSlowdown):this.actor.setXVelocity(this.actor.getXVelocity()*this._AirSlowdown))}, +init:function(){this.addListener(this.actor.whenUpdated,q(this,this._event_Updating))},forwardMessage:function(a){},__class__:Ur});var Vr=function(a,b,c){w.call(this,b);this.nameMap.h.Actor="actor";this.nameMap.h["Prevent Running?"]="_PreventRunning";this._PreventRunning=!1;this.nameMap.h["Run Key"]="_RunKey";this.nameMap.h["Key Released?"]="_KeyReleased";this._KeyReleased=!0;this.nameMap.h["Old Accel"]="_OldAccel";this._OldAccel=0;this.nameMap.h["Old Max Speed"]="_OldMaxSpeed";this._OldMaxSpeed= +0;this.nameMap.h["At Full Speed?"]="_AtFullSpeed";this._AtFullSpeed=!1;this.nameMap.h["Elapsed Time"]="_ElapsedTime";this._ElapsedTime=0;this.nameMap.h.Acceleration="_Acceleration";this._Acceleration=100;this.nameMap.h["Mid Run Speed"]="_MidRunSpeed";this._MidRunSpeed=25;this.nameMap.h["Max Run Speed"]="_MaxRunSpeed";this._MaxRunSpeed=35;this.nameMap.h["Right Key"]="_RightKey";this.nameMap.h["Left Key"]="_LeftKey";this.nameMap.h["Time To Max Speed"]="_TimeToMaxSpeed";this._TimeToMaxSpeed=.4;this.nameMap.h["Can Slide?"]= +"_CanSlide";this._CanSlide=!0;this.nameMap.h["Run Right Animation"]="_RunRightAnimation";this._RunRightAnimation="";this.nameMap.h["Run Left Animation"]="_RunLeftAnimation";this._RunLeftAnimation="";this.nameMap.h["Slip Right Animation"]="_SlipRightAnimation";this._SlipRightAnimation="";this.nameMap.h["Slip Left Animation"]="_SlipLeftAnimation";this._SlipLeftAnimation="";this.nameMap.h["Full Run Right Animation"]="_FullRunRightAnimation";this._FullRunRightAnimation="";this.nameMap.h["Full Run Left Animation"]= +"_FullRunLeftAnimation";this._FullRunLeftAnimation="";this.nameMap.h["Animation Category"]="_AnimationCategory";this._AnimationCategory="Running"};k["scripts.Design_110_110_Running"]=Vr;Vr.__name__="scripts.Design_110_110_Running";Vr.__super__=w;Vr.prototype=u(w.prototype,{_PreventRunning:null,_RunKey:null,_KeyReleased:null,_OldAccel:null,_OldMaxSpeed:null,_AtFullSpeed:null,_ElapsedTime:null,_Acceleration:null,_MidRunSpeed:null,_MaxRunSpeed:null,_RightKey:null,_LeftKey:null,_TimeToMaxSpeed:null,_CanSlide:null, +_RunRightAnimation:null,_RunLeftAnimation:null,_SlipRightAnimation:null,_SlipLeftAnimation:null,_FullRunRightAnimation:null,_FullRunLeftAnimation:null,_AnimationCategory:null,_event_Updated:function(a){this.wrapper.enabled&&!this._PreventRunning&&(f.isKeyDown(this._RunKey)&&this._KeyReleased&&f.asBoolean(this.actor.getActorValue("On Ground?"))?(this.actor.setActorValue("Is Running?",!0),this._KeyReleased=!1,this._OldAccel=this.actor.say("Walking","_customBlock_GetWalkAccel"),this._OldMaxSpeed=this.actor.say("Walking", +"_customBlock_GetMaxWalkSpeed"),this.actor.say("Walking","_customBlock_WalkAccel",[this._Acceleration]),this.actor.say("Walking","_customBlock_MaxWalkSpeed",[this._MidRunSpeed])):(this._KeyReleased||f.isKeyDown(this._RunKey)||(this.actor.setActorValue("Is Running?",!1),this.actor.say("Animation Manager","_customBlock_ClearAnimCat",[this._AnimationCategory]),this._AtFullSpeed=!1,this._KeyReleased=!0,this._ElapsedTime=0,this.actor.say("Walking","_customBlock_WalkAccel",[this._OldAccel]),this.actor.say("Walking", +"_customBlock_MaxWalkSpeed",[this._OldMaxSpeed])),f.isKeyDown(this._RightKey)||f.isKeyDown(this._LeftKey)?(f.isKeyDown(this._RunKey)&&(f.isKeyDown(this._LeftKey)||f.isKeyDown(this._RightKey))&&this.actor.setActorValue("Is Running?",!0),f.asBoolean(this.actor.getActorValue("Is Running?"))&&(this._customEvent_SetAnimation(),Math.abs(this.actor.getXVelocity())<this._MaxRunSpeed&&(this._AtFullSpeed=!1),Math.abs(this.actor.getXVelocity())<this._MidRunSpeed||(this._ElapsedTime+=1,this._ElapsedTime>=1E3* +this._TimeToMaxSpeed/f.getStepSize()&&!this._AtFullSpeed&&(this._AtFullSpeed=!0,this.actor.say("Walking","_customBlock_MaxWalkSpeed",[this._MaxRunSpeed]))))):(this.actor.setActorValue("Is Running?",!1),this.actor.say("Animation Manager","_customBlock_ClearAnimCat",[this._AnimationCategory]),this._AtFullSpeed=!1)))},_customEvent_SetAnimation:function(){(f.isKeyDown(this._RightKey)||f.isKeyDown(this._LeftKey))&&f.asBoolean(this.actor.getActorValue("On Ground?"))&&(f.asBoolean(this.actor.getActorValue("Facing Right?"))? +f.isKeyDown(this._RightKey)&&-1>=this.actor.getXVelocity()&&this._CanSlide?this.actor.say("Animation Manager","_customBlock_LoopAnim",[this._SlipRightAnimation,"Running"]):this._AtFullSpeed?this.actor.say("Animation Manager","_customBlock_LoopAnim",[this._FullRunRightAnimation,"Running"]):this.actor.say("Animation Manager","_customBlock_LoopAnim",[this._RunRightAnimation,"Running"]):f.isKeyDown(this._LeftKey)&&1<=this.actor.getXVelocity()&&this._CanSlide?this.actor.say("Animation Manager","_customBlock_LoopAnim", +[this._SlipLeftAnimation,"Running"]):this._AtFullSpeed?this.actor.say("Animation Manager","_customBlock_LoopAnim",[this._FullRunLeftAnimation,"Running"]):this.actor.say("Animation Manager","_customBlock_LoopAnim",[this._RunLeftAnimation,"Running"]))},init:function(){this._KeyReleased=!0;this.addListener(this.actor.whenUpdated,q(this,this._event_Updated))},forwardMessage:function(a){},__class__:Vr});var Wr=function(a,b,c){w.call(this,b);this.nameMap.h.Actor="actor";this.nameMap.h["Duck Key"]="_DuckKey"; +this.nameMap.h["Duck Right Animation"]="_DuckRightAnimation";this._DuckRightAnimation="";this.nameMap.h["Duck Left Animation"]="_DuckLeftAnimation";this._DuckLeftAnimation="";this.nameMap.h["Animation Category"]="_AnimationCategory";this._AnimationCategory="Ducking"};k["scripts.Design_112_112_Ducking"]=Wr;Wr.__name__="scripts.Design_112_112_Ducking";Wr.__super__=w;Wr.prototype=u(w.prototype,{_DuckKey:null,_DuckRightAnimation:null,_DuckLeftAnimation:null,_AnimationCategory:null,_event_Updating:function(a){this.wrapper.enabled&& +(f.isKeyDown(this._DuckKey)?(this.actor.setActorValue("Is Ducking?",!0),f.asBoolean(this.actor.getActorValue("Facing Right?"))?this.actor.say("Animation Manager","_customBlock_LoopAnim",[this._DuckRightAnimation,this._AnimationCategory]):this.actor.say("Animation Manager","_customBlock_LoopAnim",[this._DuckLeftAnimation,this._AnimationCategory])):(this.actor.setActorValue("Is Ducking?",!1),this.actor.say("Animation Manager","_customBlock_ClearAnimCat",[this._AnimationCategory])))},init:function(){this.addListener(this.actor.whenUpdated, +q(this,this._event_Updating))},forwardMessage:function(a){},__class__:Wr});var Xr=function(a,b,c){w.call(this,b);this.nameMap.h.Actor="actor";this.nameMap.h["Old Y"]="_OldY";this._OldY=0;this.nameMap.h["Can Fall?"]="_CanFall";this._CanFall=!1;this.nameMap.h["Fall Right Animation"]="_FallRightAnimation";this._FallRightAnimation="";this.nameMap.h["Fall Left Animation"]="_FallLeftAnimation";this._FallLeftAnimation="";this.nameMap.h["Ground Y"]="_GroundY";this._GroundY=0;this.nameMap.h["Animation Category"]= +"_AnimationCategory";this._AnimationCategory="Falling"};k["scripts.Design_114_114_Falling"]=Xr;Xr.__name__="scripts.Design_114_114_Falling";Xr.__super__=w;Xr.prototype=u(w.prototype,{_OldY:null,_CanFall:null,_FallRightAnimation:null,_FallLeftAnimation:null,_GroundY:null,_AnimationCategory:null,_event_Updating:function(a){this.wrapper.enabled&&(f.asBoolean(this.actor.getActorValue("On Ground?"))?this.actor.say("Animation Manager","_customBlock_ClearAnimCat",[this._AnimationCategory]):(this._customEvent_CheckFalling(), +this._CanFall||this.actor.say("Animation Manager","_customBlock_ClearAnimCat",[this._AnimationCategory]),this._CanFall?(this.actor.setActorValue("Is Falling?",!0),f.asBoolean(this.actor.getActorValue("Facing Right?"))?this.actor.say("Animation Manager","_customBlock_LoopAnim",[this._FallRightAnimation,this._AnimationCategory]):this.actor.say("Animation Manager","_customBlock_LoopAnim",[this._FallLeftAnimation,this._AnimationCategory])):this.actor.setActorValue("Is Falling?",!1),this._OldY=this.actor.getY(), +f.asBoolean(this.actor.getActorValue("On Ground?"))&&(this._GroundY=this.actor.getY())))},_customEvent_CheckFalling:function(){this.actor.getY()<=this._OldY?this._CanFall=!1:f.asBoolean(this.actor.getActorValue("Is Wall Sliding?"))?this._CanFall=!1:!this._CanFall&&3>=Math.abs(this._GroundY-this.actor.getY())||(this._CanFall=!0)},init:function(){this.addListener(this.actor.whenUpdated,q(this,this._event_Updating))},forwardMessage:function(a){},__class__:Xr});var Yr=function(a,b,c){w.call(this,b);this.nameMap.h.Actor= +"actor";this.nameMap.h["Prevent Air Jump?"]="_PreventAirJump";this._PreventAirJump=!1;this.nameMap.h["Current Jumps"]="_CurrentJumps";this._CurrentJumps=0;this.nameMap.h["Can Jump?"]="_CanJump";this._CanJump=!1;this.nameMap.h["Elapsed Time"]="_ElapsedTime";this._ElapsedTime=0;this.nameMap.h["Old Y"]="_OldY";this._OldY=0;this.nameMap.h["Max Jumps"]="_MaxJumps";this._MaxJumps=999;this.nameMap.h["Jump Key"]="_JumpKey";this.nameMap.h["Must Be Rising?"]="_MustBeRising";this._MustBeRising=!1;this.nameMap.h["Jump Force"]= +"_JumpForce";this._JumpForce=50;this.nameMap.h["Jump Right Animation"]="_JumpRightAnimation";this._JumpRightAnimation="";this.nameMap.h["Jump Left Animation"]="_JumpLeftAnimation";this._JumpLeftAnimation="";this.nameMap.h["Animation Category"]="_AnimationCategory";this._AnimationCategory="Air Jumping"};k["scripts.Design_115_115_AirJumping"]=Yr;Yr.__name__="scripts.Design_115_115_AirJumping";Yr.__super__=w;Yr.prototype=u(w.prototype,{_PreventAirJump:null,_CurrentJumps:null,_CanJump:null,_ElapsedTime:null, +_OldY:null,_MaxJumps:null,_JumpKey:null,_MustBeRising:null,_JumpForce:null,_JumpRightAnimation:null,_JumpLeftAnimation:null,_AnimationCategory:null,_event_Updating:function(a){var b=this;if(this.wrapper.enabled&&!this._PreventAirJump){f.asBoolean(this.actor.getActorValue("Is Jumping?"))||(this._ElapsedTime=this._CurrentJumps=0,this._CanJump=!1);f.asBoolean(this.actor.getActorValue("Is Air Jumping?"))&&(f.asBoolean(this.actor.getActorValue("On Ground?"))||f.asBoolean(this.actor.getActorValue("Is Falling?")))&& +(this.actor.setActorValue("Is Air Jumping?",!1),this.actor.say("Animation Manager","_customBlock_ClearAnimCat",[this._AnimationCategory]));this._customEvent_CheckPosition();if(f.isKeyPressed(this._JumpKey)&&this._CurrentJumps<this._MaxJumps&&f.asBoolean(this.actor.getActorValue("Is Jumping?"))){if(this._MustBeRising&&!this._CanJump)return;f.runLater(50,function(a){b.actor.setActorValue("Is Air Jumping?",!0);f.asBoolean(b.actor.getActorValue("Facing Right?"))?b.actor.say("Animation Manager","_customBlock_LoopAnim", +[b._JumpRightAnimation,b._AnimationCategory]):b.actor.say("Animation Manager","_customBlock_LoopAnim",[b._JumpLeftAnimation,b._AnimationCategory])},this.actor);this.actor.setYVelocity(0);this.actor.applyImpulse(0,-1,this._JumpForce);this._CurrentJumps+=1}this._OldY=this.actor.getY()}},_customBlock_PreventAirJump:function(a){this._PreventAirJump=a},_customEvent_CheckPosition:function(){this._CanJump&&this.actor.getY()>this._OldY&&(this._ElapsedTime+=f.getStepSize(),150<=this._ElapsedTime&&(this._CanJump= +!1));this.actor.getY()<this._OldY&&(this._CanJump=!0)},init:function(){this.addListener(this.actor.whenUpdated,q(this,this._event_Updating))},forwardMessage:function(a){},__class__:Yr});var Zr=function(a,b,c){w.call(this,b);this.nameMap.h.Actor="actor";this.nameMap.h["Continuous Collision?"]="_ContinuousCollision";this._ContinuousCollision=!1};k["scripts.Design_123_123_AlwaysSimulate"]=Zr;Zr.__name__="scripts.Design_123_123_AlwaysSimulate";Zr.__super__=w;Zr.prototype=u(w.prototype,{_ContinuousCollision:null, +init:function(){this.actor.makeAlwaysSimulate();this._ContinuousCollision&&f.makeActorNotPassThroughTerrain(this.actor)},forwardMessage:function(a){},__class__:Zr});var $r=function(a,b,c){w.call(this,b);this.nameMap.h.Actor="actor";this.nameMap.h["Key Released?"]="_KeyReleased";this._KeyReleased=!1;this.nameMap.h["Can Jump?"]="_CanJump";this._CanJump=!1;this.nameMap.h["Jump Key"]="_JumpKey";this.nameMap.h["Max Jump Time"]="_MaxJumpTime";this._MaxJumpTime=.075;this.nameMap.h["Jump Right Animation"]= +"_JumpRightAnimation";this._JumpRightAnimation="";this.nameMap.h["Jump Left Animation"]="_JumpLeftAnimation";this._JumpLeftAnimation="";this.nameMap.h["Prevent Jumping?"]="_PreventJumping";this._PreventJumping=!1;this.nameMap.h["Elapsed Jump Time"]="_ElapsedJumpTime";this._ElapsedJumpTime=0;this.nameMap.h["Current Jump Time"]="_CurrentJumpTime";this._CurrentJumpTime=0;this.nameMap.h.oldY="_oldY";this._oldY=0;this.nameMap.h["Jumping Slowdown"]="_JumpingSlowdown";this._JumpingSlowdown=.75;this.nameMap.h["Jump Sound"]= +"_JumpSound";this.nameMap.h["Jump Force"]="_JumpForce";this._JumpForce=35;this.nameMap.h["Animation Category"]="_AnimationCategory";this._AnimationCategory="Jumping";this.nameMap.h["Air Slowdown"]="_AirSlowdown";this._AirSlowdown=!1};k["scripts.Design_163_163_Jumping"]=$r;$r.__name__="scripts.Design_163_163_Jumping";$r.__super__=w;$r.prototype=u(w.prototype,{_KeyReleased:null,_CanJump:null,_JumpKey:null,_MaxJumpTime:null,_JumpRightAnimation:null,_JumpLeftAnimation:null,_PreventJumping:null,_ElapsedJumpTime:null, +_CurrentJumpTime:null,_oldY:null,_JumpingSlowdown:null,_JumpSound:null,_JumpForce:null,_AnimationCategory:null,_AirSlowdown:null,_event_Updating:function(a){var b=this;this.wrapper.enabled&&(f.asBoolean(this.actor.getActorValue("On Ground?"))&&(this.actor.setActorValue("Is Jumping?",!1),this.actor.say("Animation Manager","_customBlock_ClearAnimCat",[this._AnimationCategory]),this._KeyReleased&&(this._CanJump=!0)),f.isKeyPressed(this._JumpKey)&&(f.asBoolean(this.actor.getActorValue("On Ground?"))|| +f.runLater(150,function(a){b.actor.isAlive()&&!f.asBoolean(b.actor.getActorValue("On Ground?"))&&(b._KeyReleased=!1)},this.actor)),this._KeyReleased||f.isKeyDown(this._JumpKey)||(this._KeyReleased=!0,f.asBoolean(this.actor.getActorValue("Is Jumping?"))&&this.actor.getY()<this._oldY&&this.actor.setYVelocity(this.actor.getYVelocity()*this._JumpingSlowdown)),f.isKeyDown(this._JumpKey)&&this._CanJump&&this._KeyReleased&&f.asBoolean(this.actor.getActorValue("On Ground?"))?(h.engine.getGameAttribute("Mute Sounds")|| +f.playSound(this._JumpSound),this._ElapsedJumpTime=0,this.actor.setYVelocity(-this._JumpForce),this._KeyReleased=this._CanJump=!1,f.asBoolean(this.actor.getActorValue("Facing Right?"))?this.actor.setAnimation("jump-r"):this.actor.setAnimation("jump-l"),f.runLater(75,function(a){b.actor.isAlive()&&b.actor.setActorValue("Is Jumping?",!0)},this.actor),f.createRecycledActor(f.getActorType(484),this.actor.getX()+10,this.actor.getY()+28,0),f.createRecycledActor(f.getActorType(486),this.actor.getX()+18, +this.actor.getY()+28,0)):(f.asBoolean(this.actor.getActorValue("Is Jumping?"))&&(this._ElapsedJumpTime+=1,f.asBoolean(this.actor.getActorValue("Facing Right?"))?this.actor.getY()<this._oldY&&this.actor.say("Animation Manager","_customBlock_LoopAnim",[this._JumpRightAnimation,this._AnimationCategory]):this.actor.getY()<this._oldY&&this.actor.say("Animation Manager","_customBlock_LoopAnim",[this._JumpLeftAnimation,this._AnimationCategory]),this._ElapsedJumpTime<=1E3*this._MaxJumpTime/f.getStepSize()&& +f.isKeyDown(this._JumpKey)&&!this._KeyReleased&&this.actor.getY()<this._oldY&&this.actor.setYVelocity(-this._JumpForce)),this._oldY=this.actor.getY()))},_event_Stopsidewaysairmovement:function(a){var b=this;!this.wrapper.enabled||f.asBoolean(this.actor.getActorValue("On Ground?"))||f.isKeyDown("Left")||f.isKeyDown("Right")||0==this.actor.getXVelocity()||this._AirSlowdown||(this._AirSlowdown=!0,this.actor.setXVelocity(this.actor.getXVelocity()/3),f.runLater(150,function(a){b._AirSlowdown=!1},this.actor))}, +init:function(){this.addListener(this.actor.whenUpdated,q(this,this._event_Updating));this.addListener(this.actor.whenUpdated,q(this,this._event_Stopsidewaysairmovement))},forwardMessage:function(a){},__class__:$r});var as=function(a,b,c){w.call(this,b);this.nameMap.h.Actor="actor";this.nameMap.h["Playing One Time?"]="_PlayingOneTime";this._PlayingOneTime=!1;this.nameMap.h["Current Category"]="_CurrentCategory";this._CurrentCategory="";this.nameMap.h["Default Right Animation"]="_DefaultRightAnimation"; +this._DefaultRightAnimation="";this.nameMap.h["Default Left Animation"]="_DefaultLeftAnimation";this._DefaultLeftAnimation="";this.nameMap.h["Category Hierarchy"]="_CategoryHierarchy";this._CategoryHierarchy="Ground Pounding;Ducking;Wall Sliding;Falling;Wall Jumping;Air Jumping;Jumping;Running;Walking".split(";");this.nameMap.h["Current Index"]="_CurrentIndex";this._CurrentIndex=!1;this.nameMap.h["Requested Index"]="_RequestedIndex";this._RequestedIndex=!1};k["scripts.Design_169_169_AnimationManager"]= +as;as.__name__="scripts.Design_169_169_AnimationManager";as.__super__=w;as.prototype=u(w.prototype,{_PlayingOneTime:null,_CurrentCategory:null,_DefaultRightAnimation:null,_DefaultLeftAnimation:null,_CategoryHierarchy:null,_CurrentIndex:null,_RequestedIndex:null,_event_Updating:function(a){if(this.wrapper.enabled){if(this._PlayingOneTime){if(this.actor.isAnimationPlaying())return;this._PlayingOneTime=!1}f.hasValue(this._CurrentCategory)||(f.asBoolean(this.actor.getActorValue("Facing Right?"))?this.actor.setAnimation(this._DefaultRightAnimation): +this.actor.setAnimation(this._DefaultLeftAnimation))}},_customBlock_ClearAnimCat:function(a){a==this._CurrentCategory&&(this._CurrentCategory=f.getDefaultValue(this._CurrentCategory))},_customBlock_CategorySameAs:function(a){return a==this._CurrentCategory},_customBlock_GetCat:function(){return this._CurrentCategory},_customBlock_ClearCat:function(){this._CurrentCategory=f.getDefaultValue(this._CurrentCategory)},_customBlock_LoopAnim:function(a,b){if(!this._PlayingOneTime){f.hasValue(this._CurrentCategory)|| +(this._CurrentCategory=b);this._RequestedIndex=this._CurrentIndex=!1;for(var c=0,d=O.__cast(this._CategoryHierarchy,Array);c<d.length;){var e=d[c];++c;e==b&&(this._RequestedIndex=!0);e==this._CurrentCategory&&(this._CurrentIndex=!0);if(this._CurrentIndex&&!this._RequestedIndex)return}this.actor.setAnimation(a);this._CurrentCategory=b}},_customBlock_PlayOnce:function(a){this.actor.setAnimation(a);this._PlayingOneTime=!0},init:function(){this.addListener(this.actor.whenUpdated,q(this,this._event_Updating))}, +forwardMessage:function(a){},__class__:as});var bs=function(a,b,c){w.call(this,b);this.nameMap.h.Actor="actor";this.nameMap.h["X Offset"]="_XOffset";this._XOffset=0;this.nameMap.h["Y Offset"]="_YOffset";this._YOffset=0};k["scripts.Design_175_175_CameraFollowPlayer"]=bs;bs.__name__="scripts.Design_175_175_CameraFollowPlayer";bs.__super__=w;bs.prototype=u(w.prototype,{_XOffset:null,_YOffset:null,_event_Updating:function(a){this.wrapper.enabled&&f.engine.moveCamera(this.actor.getXCenter()+this._XOffset, +this.actor.getYCenter()+this._YOffset)},init:function(){this.addListener(this.actor.whenUpdated,q(this,this._event_Updating))},forwardMessage:function(a){},__class__:bs});var cs=function(a,b,c){w.call(this,b);this.nameMap.h.Actor="actor";this.nameMap.h["Move Right Key"]="_MoveRightKey";this.nameMap.h["Move Left Key"]="_MoveLeftKey";this.nameMap.h.Acceleration="_Acceleration";this._Acceleration=85;this.nameMap.h["Max Walking Speed"]="_MaxWalkingSpeed";this._MaxWalkingSpeed=20;this.nameMap.h["Limit Speed?"]= +"_LimitSpeed";this._LimitSpeed=!1;this.nameMap.h["Walk Right Animation"]="_WalkRightAnimation";this._WalkRightAnimation="";this.nameMap.h["Walk Left Animation"]="_WalkLeftAnimation";this._WalkLeftAnimation="";this.nameMap.h["Idle Right Animation"]="_IdleRightAnimation";this._IdleRightAnimation="";this.nameMap.h["Idle Left Animation"]="_IdleLeftAnimation";this._IdleLeftAnimation="";this.nameMap.h["Prevent Walking?"]="_PreventWalking";this._PreventWalking=!1;this.nameMap.h["Disable Statuses"]="_DisableStatuses"; +this.nameMap.h["Animation Category"]="_AnimationCategory";this._AnimationCategory="Walking"};k["scripts.Design_178_178_Walking"]=cs;cs.__name__="scripts.Design_178_178_Walking";cs.__super__=w;cs.prototype=u(w.prototype,{_MoveRightKey:null,_MoveLeftKey:null,_Acceleration:null,_MaxWalkingSpeed:null,_LimitSpeed:null,_WalkRightAnimation:null,_WalkLeftAnimation:null,_IdleRightAnimation:null,_IdleLeftAnimation:null,_PreventWalking:null,_DisableStatuses:null,_AnimationCategory:null,_event_Updating:function(a){if(this.wrapper.enabled){a= +0;for(var b=O.__cast(this._DisableStatuses,Array);a<b.length;){var c=b[a];++a;if(f.asBoolean(this.actor.getActorValue(""+n.string(c))))return}if(!this._PreventWalking){if(f.isKeyDown(this._MoveRightKey)&&!f.isKeyDown(this._MoveLeftKey)){this.actor.setActorValue("Facing Right?",!0);f.asBoolean(this.actor.getActorValue("On Ground?"))&&this.actor.say("Animation Manager","_customBlock_LoopAnim",[this._WalkRightAnimation,this._AnimationCategory]);if(this._customBlock_AtMaxWalkingSpeed())return;this.actor.push(1, +0,this._Acceleration);this.actor.setFriction(0)}if(f.isKeyDown(this._MoveLeftKey)&&!f.isKeyDown(this._MoveRightKey)){this.actor.setActorValue("Facing Right?",!1);f.asBoolean(this.actor.getActorValue("On Ground?"))&&this.actor.say("Animation Manager","_customBlock_LoopAnim",[this._WalkLeftAnimation,this._AnimationCategory]);if(this._customBlock_AtMaxWalkingSpeed())return;this.actor.push(-1,0,this._Acceleration);this.actor.setFriction(0)}f.isKeyDown(this._MoveRightKey)||f.isKeyDown(this._MoveLeftKey)|| +!f.asBoolean(this.actor.getActorValue("On Ground?"))||(f.asBoolean(this.actor.getActorValue("Facing Right?"))?this.actor.say("Animation Manager","_customBlock_LoopAnim",[this._IdleRightAnimation,this._AnimationCategory]):this.actor.say("Animation Manager","_customBlock_LoopAnim",[this._IdleLeftAnimation,this._AnimationCategory]),this.actor.setFriction(2))}}},_customBlock_SlowToMax:function(a){Math.abs(this.actor.getXVelocity())>this._MaxWalkingSpeed&&this.actor.setXVelocity(this.actor.getXVelocity()* +a)},_customBlock_LimitSpeed:function(a){this._LimitSpeed=a},_customBlock_PreventWalk:function(a){this._PreventWalking=a},_customBlock_GetMaxWalkSpeed:function(){return this._MaxWalkingSpeed},_customBlock_MaxWalkSpeed:function(a){this._MaxWalkingSpeed=a},_customBlock_GetWalkAccel:function(){return this._Acceleration},_customBlock_WalkAccel:function(a){this._Acceleration=a},_customBlock_AtMaxWalkingSpeed:function(){return f.asBoolean(this.actor.getActorValue("Facing Right?"))&&this.actor.getXVelocity()>= +this._MaxWalkingSpeed?(this._LimitSpeed&&this.actor.setXVelocity(this._MaxWalkingSpeed),!0):!f.asBoolean(this.actor.getActorValue("Facing Right?"))&&this.actor.getXVelocity()<=-this._MaxWalkingSpeed?(this._LimitSpeed&&this.actor.setXVelocity(-this._MaxWalkingSpeed),!0):!1},init:function(){this.actor.setActorValue("Facing Right?",!0);this.addListener(this.actor.whenUpdated,q(this,this._event_Updating))},forwardMessage:function(a){},__class__:cs});var ds=function(a,b,c){w.call(this,b);this.nameMap.h.Actor= +"actor";this.nameMap.h["Colliding Left?"]="_CollidingLeft";this._CollidingLeft=!1;this.nameMap.h["Colliding Right?"]="_CollidingRight";this._CollidingRight=!1;this.nameMap.h["Collided Left?"]="_CollidedLeft";this._CollidedLeft=!1;this.nameMap.h["Collided Right?"]="_CollidedRight";this._CollidedRight=!1;this.nameMap.h["Key Released?"]="_KeyReleased";this._KeyReleased=!0;this.nameMap.h["Jumped?"]="_Jumped";this._Jumped=!1;this.nameMap.h["Jump Key"]="_JumpKey";this.nameMap.h["Can Jump?"]="_CanJump"; +this._CanJump=!1;this.nameMap.h["Elapsed Time"]="_ElapsedTime";this._ElapsedTime=0;this.nameMap.h["Jump Right Angle"]="_JumpRightAngle";this._JumpRightAngle=290;this.nameMap.h["Jump Left Angle"]="_JumpLeftAngle";this._JumpLeftAngle=250;this.nameMap.h["Jump Force"]="_JumpForce";this._JumpForce=65;this.nameMap.h["Wall Jump Right Animation"]="_WallJumpRightAnimation";this._WallJumpRightAnimation="";this.nameMap.h["Wall Jump Left Animation"]="_WallJumpLeftAnimation";this._WallJumpLeftAnimation="";this.nameMap.h["Prevent Wall Jump"]= +"_PreventWallJump";this._PreventWallJump=!1;this.nameMap.h["Animation Category"]="_AnimationCategory";this._AnimationCategory="Wall Jumping"};k["scripts.Design_179_179_WallJumping"]=ds;ds.__name__="scripts.Design_179_179_WallJumping";ds.__super__=w;ds.prototype=u(w.prototype,{_CollidingLeft:null,_CollidingRight:null,_CollidedLeft:null,_CollidedRight:null,_KeyReleased:null,_Jumped:null,_JumpKey:null,_CanJump:null,_ElapsedTime:null,_JumpRightAngle:null,_JumpLeftAngle:null,_JumpForce:null,_WallJumpRightAnimation:null, +_WallJumpLeftAnimation:null,_PreventWallJump:null,_AnimationCategory:null,_event_ActorAny:function(a){this.wrapper.enabled&&!a.thisCollidedWithSensor&&a.thisCollidedWithTile&&(a.thisFromLeft&&(this._CollidingLeft=!0,this.actor.setActorValue("Is Wall Jumping?",!1),this.actor.say("Animation Manager","_customBlock_ClearAnimCat",[this._AnimationCategory])),a.thisFromRight&&(this._CollidingRight=!0,this.actor.setActorValue("Is Wall Jumping?",!1),this.actor.say("Animation Manager","_customBlock_ClearAnimCat", +[this._AnimationCategory])))},_event_Updating:function(a){var b=this;this.wrapper.enabled&&!this._PreventWallJump&&(this._CollidedLeft=this._CollidingLeft,this._CollidedRight=this._CollidingRight,this._CollidingRight=this._CollidingLeft=!1,f.asBoolean(this.actor.getActorValue("On Ground?"))?(this.actor.setActorValue("Is Wall Jumping?",!1),this.actor.say("Animation Manager","_customBlock_ClearAnimCat",[this._AnimationCategory]),this._Jumped=this._KeyReleased=!1):(f.isKeyPressed(this._JumpKey)&&f.asBoolean(this.actor.getActorValue("On Ground?"))&& +(this._KeyReleased=!1,this._CollidedLeft||this._CollidedRight||f.runLater(150,function(a){b._CollidedLeft||b._CollidedRight||(b._KeyReleased=!1)},this.actor)),this._KeyReleased&&(this._CanJump=!0),this._KeyReleased||f.isKeyDown(this._JumpKey)||f.asBoolean(this.actor.getActorValue("On Ground?"))||(this._KeyReleased=!0),f.isKeyDown(this._JumpKey)&&this._CanJump&&this._KeyReleased&&!f.asBoolean(this.actor.getActorValue("On Ground?"))&&(this._Jumped=this._KeyReleased=!1,this._CollidedLeft&&(this._Jumped= +!0,this._ElapsedTime=0,this._CanJump=!1,this.actor.setYVelocity(0),this.actor.applyImpulseInDirection(this._JumpRightAngle,this._JumpForce),this.actor.setActorValue("Facing Right?",!0),this.actor.say("Walking","_customBlock_PreventWalk",[!0]),this.actor.say("Air Jumping","_customBlock_PreventAirJump",[!0]),this.actor.say("Wall Sliding","_customBlock_PreventWallSlide",[!0])),this._CollidedRight&&(this._Jumped=!0,this._ElapsedTime=0,this._CanJump=!1,this.actor.setYVelocity(0),this.actor.applyImpulseInDirection(this._JumpLeftAngle, +this._JumpForce),this.actor.setActorValue("Facing Right?",!1),this.actor.say("Walking","_customBlock_PreventWalk",[!0]),this.actor.say("Air Jumping","_customBlock_PreventAirJump",[!0]),this.actor.say("Wall Sliding","_customBlock_PreventWallSlide",[!0]))),this._Jumped?((this._ElapsedTime+=1)>=100/f.getStepSize()&&this.actor.setActorValue("Is Wall Jumping?",!0),this._ElapsedTime>=200/f.getStepSize()&&(this.actor.say("Walking","_customBlock_PreventWalk",[!1]),this.actor.say("Air Jumping","_customBlock_PreventAirJump", +[!1]),this.actor.say("Wall Sliding","_customBlock_PreventWallSlide",[!1]))):(this.actor.say("Walking","_customBlock_PreventWalk",[!1]),this.actor.say("Air Jumping","_customBlock_PreventAirJump",[!1]),this.actor.say("Wall Sliding","_customBlock_PreventWallSlide",[!1])),f.asBoolean(this.actor.getActorValue("Is Wall Jumping?"))&&(f.asBoolean(this.actor.getActorValue("Facing Right?"))?this.actor.say("Animation Manager","_customBlock_LoopAnim",[this._WallJumpRightAnimation,this._AnimationCategory]):this.actor.say("Animation Manager", +"_customBlock_LoopAnim",[this._WallJumpLeftAnimation,this._AnimationCategory]))))},_customBlock_PreventWallJump:function(a){this._PreventWallJump=a},init:function(){this.addListener(this.actor.whenCollided,q(this,this._event_ActorAny));this.addListener(this.actor.whenUpdated,q(this,this._event_Updating))},forwardMessage:function(a){},__class__:ds});var es=function(a,b,c){w.call(this,b);this.nameMap.h.Actor="actor";this.nameMap.h["Can Slide?"]="_CanSlide";this._CanSlide=!1;this.nameMap.h["Colliding Left?"]= +"_CollidingLeft";this._CollidingLeft=!1;this.nameMap.h["Colliding Right?"]="_CollidingRight";this._CollidingRight=!1;this.nameMap.h["Collided Left?"]="_CollidedLeft";this._CollidedLeft=!1;this.nameMap.h["Collided Right?"]="_CollidedRight";this._CollidedRight=!1;this.nameMap.h["Old Y"]="_OldY";this._OldY=0;this.nameMap.h["Left Key"]="_LeftKey";this.nameMap.h["Right Key"]="_RightKey";this.nameMap.h["Slide Speed"]="_SlideSpeed";this._SlideSpeed=7;this.nameMap.h["Slide Right Animation"]="_SlideRightAnimation"; +this._SlideRightAnimation="";this.nameMap.h["Slide Left Animation"]="_SlideLeftAnimation";this._SlideLeftAnimation="";this.nameMap.h["Limit to Tiles?"]="_LimittoTiles";this._LimittoTiles=!1;this.nameMap.h["Prevent Wall Slide?"]="_PreventWallSlide";this._PreventWallSlide=!1;this.nameMap.h["Animation Category"]="_AnimationCategory";this._AnimationCategory="Wall Sliding"};k["scripts.Design_180_180_WallSliding"]=es;es.__name__="scripts.Design_180_180_WallSliding";es.__super__=w;es.prototype=u(w.prototype, +{_CanSlide:null,_CollidingLeft:null,_CollidingRight:null,_CollidedLeft:null,_CollidedRight:null,_OldY:null,_LeftKey:null,_RightKey:null,_SlideSpeed:null,_SlideRightAnimation:null,_SlideLeftAnimation:null,_LimittoTiles:null,_PreventWallSlide:null,_AnimationCategory:null,_event_ActorAny:function(a){if(this.wrapper.enabled&&!a.thisCollidedWithSensor){if(a.thisFromLeft){if(this._LimittoTiles&&!a.thisCollidedWithTile)return;this._CollidingLeft=!0}!a.thisFromRight||this._LimittoTiles&&!a.thisCollidedWithTile|| +(this._CollidingRight=!0)}},_event_Updating:function(a){if(this.wrapper.enabled)if(this._PreventWallSlide)this._CanSlide=!1,this.actor.setActorValue("Is Wall Sliding?",!1),this.actor.say("Animation Manager","_customBlock_ClearAnimCat",[this._AnimationCategory]);else{this._CanSlide=!0;if(f.asBoolean(this.actor.getActorValue("Is Climbing?"))||f.asBoolean(this.actor.getActorValue("Is Ducking?"))||f.asBoolean(this.actor.getActorValue("On Ground?")))this._CanSlide=!1,this.actor.setActorValue("Is Wall Sliding?", +!1);this._CollidedLeft=this._CollidingLeft;this._CollidedRight=this._CollidingRight;this._CollidingRight=this._CollidingLeft=!1;this.actor.getY()>this._OldY&&this._CanSlide&&(f.asBoolean(this.actor.getActorValue("On Ground?"))||(this._CollidedLeft&&f.isKeyDown(this._LeftKey)||this._CollidedRight&&f.isKeyDown(this._RightKey)?this.actor.setActorValue("Is Wall Sliding?",!0):this.actor.setActorValue("Is Wall Sliding?",!1)));f.asBoolean(this.actor.getActorValue("Is Wall Sliding?"))?(this.actor.setYVelocity(this._SlideSpeed), +f.asBoolean(this.actor.getActorValue("Facing Right?"))?this.actor.say("Animation Manager","_customBlock_LoopAnim",[this._SlideRightAnimation,this._AnimationCategory]):this.actor.say("Animation Manager","_customBlock_LoopAnim",[this._SlideLeftAnimation,this._AnimationCategory])):this.actor.say("Animation Manager","_customBlock_ClearAnimCat",[this._AnimationCategory]);this._OldY=this.actor.getY()}},_customBlock_PreventWallSlide:function(a){this._PreventWallSlide=a},init:function(){this.addListener(this.actor.whenCollided, +q(this,this._event_ActorAny));this.addListener(this.actor.whenUpdated,q(this,this._event_Updating))},forwardMessage:function(a){},__class__:es});var fs=function(a,b,c){w.call(this,b);this.nameMap.h.Actor="actor";this.nameMap.h["Can Pound?"]="_CanPound";this._CanPound=!1;this.nameMap.h["Ground Pound Key"]="_GroundPoundKey";this.nameMap.h["Down Key"]="_DownKey";this.nameMap.h["Down Key Required?"]="_DownKeyRequired";this._DownKeyRequired=!0;this.nameMap.h.Force="_Force";this._Force=0;this.nameMap.h["Pound Right Animation"]= +"_PoundRightAnimation";this._PoundRightAnimation="";this.nameMap.h["Pound Left Animation"]="_PoundLeftAnimation";this._PoundLeftAnimation="";this.nameMap.h["Old X"]="_OldX";this._OldX=0;this.nameMap.h["Animation Category"]="_AnimationCategory";this._AnimationCategory="Ground Pounding"};k["scripts.Design_181_181_GroundPound"]=fs;fs.__name__="scripts.Design_181_181_GroundPound";fs.__super__=w;fs.prototype=u(w.prototype,{_CanPound:null,_GroundPoundKey:null,_DownKey:null,_DownKeyRequired:null,_Force:null, +_PoundRightAnimation:null,_PoundLeftAnimation:null,_OldX:null,_AnimationCategory:null,_event_Updating:function(a){if(this.wrapper.enabled)if(f.asBoolean(this.actor.getActorValue("Is Wall Sliding?")))this.actor.setActorValue("Is Ground Pounding?",!1),this.actor.say("Animation Manager","_customBlock_ClearAnimCat",[this._AnimationCategory]),this._CanPound=!1;else if(!f.asBoolean(this.actor.getActorValue("Is Jumping?"))||f.asBoolean(this.actor.getActorValue("On Ground?")))f.asBoolean(this.actor.getActorValue("Is Ground Pounding?"))&& +f.asBoolean(this.actor.getActorValue("On Ground?"))&&f.startShakingScreen(.01,.2),this._CanPound=!1,this.actor.setActorValue("Is Ground Pounding?",!1),this.actor.say("Animation Manager","_customBlock_ClearAnimCat",[this._AnimationCategory]);else{if(f.isKeyPressed(this._GroundPoundKey)){if(this._DownKeyRequired&&!f.isKeyDown(this._DownKey))return;this._CanPound=!1;this.actor.setActorValue("Is Ground Pounding?",!0);this.actor.applyImpulse(0,1,this._Force)}f.asBoolean(this.actor.getActorValue("Is Ground Pounding?"))&& +(this.actor.setXVelocity(0),this.actor.setX(this._OldX),f.asBoolean(this.actor.getActorValue("Facing Right?"))?this.actor.say("Animation Manager","_customBlock_LoopAnim",[this._PoundRightAnimation,this._AnimationCategory]):this.actor.say("Animation Manager","_customBlock_LoopAnim",[this._PoundLeftAnimation,this._AnimationCategory]));this._OldX=this.actor.getX()}},init:function(){this.addListener(this.actor.whenUpdated,q(this,this._event_Updating))},forwardMessage:function(a){},__class__:fs});var gs= +function(a,b,c){w.call(this,b);this.nameMap.h.Actor="actor";this.nameMap.h["Fade Time"]="_FadeTime";this._FadeTime=0;this.nameMap.h["Time Before Reload"]="_TimeBeforeReload";this._TimeBeforeReload=0};k["scripts.Design_202_202_DieinPit"]=gs;gs.__name__="scripts.Design_202_202_DieinPit";gs.__super__=w;gs.prototype=u(w.prototype,{_FadeTime:null,_TimeBeforeReload:null,_event_Updating:function(a){this.wrapper.enabled&&this.actor.getScreenY()>f.getScreenHeight()&&!f.isTransitioning()&&(f.reloadCurrentScene(f.createFadeOut(this._FadeTime), +f.createFadeIn(this._FadeTime)),f.recycleActor(this.actor))},init:function(){this.addListener(this.actor.whenUpdated,q(this,this._event_Updating))},forwardMessage:function(a){},__class__:gs});var hs=function(a,b){f.call(this);this.nameMap.h["Level Number"]="_LevelNumber";this._LevelNumber=0;this.nameMap.h["Can Pause?"]="_CanPause";this._CanPause=!0;this.nameMap.h["Carrot Spawn Number"]="_CarrotSpawnNumber";this._CarrotSpawnNumber=0;this.nameMap.h["Carrot Positions List"]="_CarrotPositionsList";this._CarrotPositionsList= +["112,80"];this.nameMap.h["Can Count Time?"]="_CanCountTime";this._CanCountTime=!1;this.nameMap.h["Player 1 Dead"]="_Player1Dead";this._Player1Dead=!1;this.nameMap.h["Player 2 Dead"]="_Player2Dead";this._Player2Dead=!1;this.nameMap.h["Can Respawn P1?"]="_CanRespawn";this._CanRespawn=!0;this.nameMap.h["Can Respawn P2?"]="_CanRespawnP2";this._CanRespawnP2=!0};k["scripts.Design_226_226_SceneFunctionsBehavior"]=hs;hs.__name__="scripts.Design_226_226_SceneFunctionsBehavior";hs.__super__=gb;hs.prototype= +u(gb.prototype,{_LevelNumber:null,_CanPause:null,_CarrotSpawnNumber:null,_CarrotPositionsList:null,_CanCountTime:null,_Player1Dead:null,_Player2Dead:null,_CanRespawn:null,_CanRespawnP2:null,_event_Restart:function(a,b){if(this.wrapper.enabled&&a&&!f.isTransitioning()){var c=b=a=0;null==c&&(c=0);null==b&&(b=0);null==a&&(a=0);var d=f.createFadeOut(.2,a<<16|b<<8|c);c=b=a=0;null==c&&(c=0);null==b&&(b=0);null==a&&(a=0);f.reloadCurrentScene(d,f.createFadeIn(.2,a<<16|b<<8|c));pa.sendGameplayStop()}},_event_Esc:function(a, +b){this.wrapper.enabled&&a&&(f.isTransitioning()||this._CanPause&&(f.engine.isPaused()?f.shoutToScene("_customEvent_Resume"):f.shoutToScene("_customEvent_Paused")))},_event_DrawTimeTrialCounter:function(a,b,c){if(this.wrapper.enabled)if(a.setFont(f.getFont(581)),h.engine.getGameAttribute("Multiplayer On")&&2==h.engine.getGameAttribute("Multiplayer Mode")){b=0;for(c=f.getActorsOfType(f.getActorType(584));b<c.length;){var d=c[b];++b;null==d||d.dead||d.recycled||a.drawString(""+n.string(h.engine.getGameAttribute("P1 Versus Score")), +d.getX()+14,d.getY()+4)}b=0;for(c=f.getActorsOfType(f.getActorType(676));b<c.length;)d=c[b],++b,null==d||d.dead||d.recycled||a.drawString(""+n.string(h.engine.getGameAttribute("P2 Versus Score")),d.getX()+14,d.getY()+4)}else{b=0;for(c=f.getActorsOfType(f.getActorType(582));b<c.length;)d=c[b],++b,null==d||d.dead||d.recycled||a.drawString(""+nf._customBlock_FormatTimer(h.engine.getGameAttribute("Time Counter"),":",":"),d.getX()+14,d.getY()+4);b=0;for(c=f.getActorsOfType(f.getActorType(582));b<c.length;)d= +c[b],++b,null==d||d.dead||d.recycled||a.drawString(""+n.string(h.engine.getGameAttribute("Carrot Counter")),d.getX()+14,d.getY()+17)}},_event_IncreaseTime:function(a){if(this.wrapper.enabled){if(59999>h.engine.getGameAttribute("Time Counter")&&!f.engine.isPaused()&&this._CanCountTime){a=h.engine;var b=h.engine.getGameAttribute("Time Counter")+.01;a.gameAttributes.h["Time Counter"]=b}999<h.engine.getGameAttribute("Carrot Counter")&&(h.engine.gameAttributes.h["Carrot Counter"]=999)}},_customEvent_CreateControls:function(){f.runLater(100, +function(a){h.engine.getGameAttribute("HTML5 on Mobile")&&(h.engine.getGameAttribute("Multiplayer On")?f.runLater(100,function(a){f.createRecycledActor(f.getActorType(658),0,0,0);f.createRecycledActor(f.getActorType(668),0,0,0);f.createRecycledActor(f.getActorType(519),0,0,0)},null):f.runLater(100,function(a){f.createRecycledActor(f.getActorType(505),0,0,0);f.createRecycledActor(f.getActorType(515),0,0,0);f.createRecycledActor(f.getActorType(519),0,0,0)},null))},null)},_customEvent_TimeStart:function(){var a= +this;h.engine.getGameAttribute("Multiplayer On")&&2==h.engine.getGameAttribute("Multiplayer Mode")?(f.createRecycledActor(f.getActorType(584),f.getScreenWidth()-f.getScreenWidth()+2+da.leftInset,f.getScreenHeight()-f.getScreenHeight()+2,0),f.getLastCreatedActor().anchorToScreen(),f.getLastCreatedActor().moveToTop(),f.createRecycledActor(f.getActorType(676),f.getScreenWidth()-31,f.getScreenHeight()-f.getScreenHeight()+2,0),f.getLastCreatedActor().anchorToScreen(),f.getLastCreatedActor().moveToTop(), +f.runLater(2E3,function(b){a._CanCountTime=!0},null)):(f.createRecycledActor(f.getActorType(582),f.getScreenWidth()-f.getScreenWidth()+2+da.leftInset,f.getScreenHeight()-f.getScreenHeight()+2,0),f.getLastCreatedActor().anchorToScreen(),f.getLastCreatedActor().moveToTop(),f.createRecycledActor(f.getActorType(584),f.getScreenWidth()-f.getScreenWidth()+2+da.leftInset,f.getScreenHeight()-f.getScreenHeight()+15,0),f.getLastCreatedActor().anchorToScreen(),f.getLastCreatedActor().moveToTop(),f.runLater(2E3, +function(b){a._CanCountTime=!0},null))},_customEvent_PlayerDie:function(){var a=this;this._Player1Dead=!0;if(h.engine.getGameAttribute("Multiplayer On")){for(var b=0,c=f.getActorsOfType(f.getActorType(662));b<c.length;){var d=c[b];++b;null==d||d.dead||d.recycled||f.recycleActor(d)}b=0;for(c=f.getActorsOfType(f.getActorType(658));b<c.length;)d=c[b],++b,null==d||d.dead||d.recycled||f.recycleActor(d);b=0;for(c=f.getActorsOfType(f.getActorType(660));b<c.length;)d=c[b],++b,null==d||d.dead||d.recycled|| +f.recycleActor(d);f.simulateKeyRelease("W");f.simulateKeyRelease("A");f.simulateKeyRelease("D");h.engine.getGameAttribute("Multiplayer On")&&2==h.engine.getGameAttribute("Multiplayer Mode")||this._CanRespawn&&f.runLater(1E3,function(b){a._CanRespawn&&f.runLater(1E3,function(b){a._CanRespawn&&f.runLater(1E3,function(b){a._CanRespawn&&f.runLater(1E3,function(b){a._CanRespawn&&f.runLater(1E3,function(b){a._CanRespawn&&f.runLater(1E3,function(b){a._CanRespawn&&f.runLater(1E3,function(b){a._CanRespawn&& +f.runLater(1E3,function(a){f.createRecycledActor(f.getActorType(674),f.randomInt(80,272),160,0);f.getLastCreatedActor().shout("_customEvent_P1")},null)},null)},null)},null)},null)},null)},null)},null)}this._customEvent_EndRun();b=0;for(c=f.getActorsOfType(f.getActorType(686));b<c.length;)d=c[b],++b,null==d||d.dead||d.recycled||f.recycleActor(d)},_customEvent_PlayerDie2:function(){var a=this;this._Player2Dead=!0;for(var b=0,c=f.getActorsOfType(f.getActorType(672));b<c.length;){var d=c[b];++b;null== +d||d.dead||d.recycled||f.recycleActor(d)}b=0;for(c=f.getActorsOfType(f.getActorType(670));b<c.length;)d=c[b],++b,null==d||d.dead||d.recycled||f.recycleActor(d);b=0;for(c=f.getActorsOfType(f.getActorType(668));b<c.length;)d=c[b],++b,null==d||d.dead||d.recycled||f.recycleActor(d);f.simulateKeyRelease("Up");f.simulateKeyRelease("Left");f.simulateKeyRelease("Right");h.engine.getGameAttribute("Multiplayer On")&&2==h.engine.getGameAttribute("Multiplayer Mode")||this._CanRespawnP2&&f.runLater(1E3,function(b){a._CanRespawnP2&& +f.runLater(1E3,function(b){a._CanRespawnP2&&f.runLater(1E3,function(b){a._CanRespawnP2&&f.runLater(1E3,function(b){a._CanRespawnP2&&f.runLater(1E3,function(b){a._CanRespawnP2&&f.runLater(1E3,function(b){a._CanRespawnP2&&f.runLater(1E3,function(b){a._CanRespawnP2&&f.runLater(1E3,function(b){a._CanRespawnP2&&(f.createRecycledActor(f.getActorType(674),f.randomInt(80,272),160,0),f.getLastCreatedActor().shout("_customEvent_P2"))},null)},null)},null)},null)},null)},null)},null)},null);this._customEvent_EndRun(); +b=0;for(c=f.getActorsOfType(f.getActorType(688));b<c.length;)d=c[b],++b,null==d||d.dead||d.recycled||f.recycleActor(d)},_customEvent_EndRun:function(){h.engine.getGameAttribute("Multiplayer On")?h.engine.getGameAttribute("Multiplayer On")&&1==h.engine.getGameAttribute("Multiplayer Mode")?this._customEvent_EndRunMulti():h.engine.getGameAttribute("Multiplayer On")&&2==h.engine.getGameAttribute("Multiplayer Mode")&&this._customEvent_EndRunVersus():this._customEvent_EndRunSingle()},_customEvent_EndRunSingle:function(){this._CanPause= +!1;for(var a=0,b=O.__cast(f.getActorGroup(12),xe).list;a<b.length;){var c=b[a];++a;null==c||c.dead||c.recycled||f.recycleActor(c)}f.stopSoundOnChannel(0);this._CanCountTime=!1;h.engine.getGameAttribute("Used Revive")?(f.runLater(1100,function(a){f.switchScene(va.get().scenes.h[11].getID(),null,f.createCrossfadeTransition(.5))},null),this._customEvent_AddCurrency(),pa.sendGameplayStop()):f.runLater(1100,function(a){f.createRecycledActor(f.getActorType(586),0,0,0);f.createRecycledActor(f.getActorType(806), +-300,-300,0);f.engine.pause()},null)},_customEvent_EndRunMulti:function(){if(this._Player1Dead&&this._Player2Dead){this._CanPause=!1;for(var a=0,b=O.__cast(f.getActorGroup(12),xe).list;a<b.length;){var c=b[a];++a;null==c||c.dead||c.recycled||f.recycleActor(c)}this._CanCountTime=!1;f.stopSoundOnChannel(0);this._CanRespawnP2=this._CanRespawn=!1;h.engine.getGameAttribute("Used Revive")?(f.runLater(1100,function(a){f.switchScene(va.get().scenes.h[11].getID(),null,f.createCrossfadeTransition(.5))},null), +this._customEvent_AddCurrency(),pa.sendGameplayStop()):f.runLater(1100,function(a){f.createRecycledActor(f.getActorType(586),0,0,0);f.createRecycledActor(f.getActorType(806),-300,-300,0);f.engine.pause()},null)}},_customEvent_EndRunVersus:function(){if(this._Player1Dead&&this._Player2Dead)h.engine.getGameAttribute("P1 Versus Score")==h.engine.getGameAttribute("P2 Versus Score")?(f.stopSoundOnChannel(0),f.runLater(300,function(a){h.engine.getGameAttribute("Mute Sounds")||f.playSound(f.getSound(680))}, +null),f.runLater(1100,function(a){f.switchScene(va.get().scenes.h[11].getID(),null,f.createCrossfadeTransition(.5))},null),this._customEvent_AddCurrency(),pa.sendGameplayStop()):h.engine.getGameAttribute("P1 Versus Score")>h.engine.getGameAttribute("P2 Versus Score")?(f.stopSoundOnChannel(0),f.runLater(300,function(a){h.engine.getGameAttribute("Mute Sounds")||f.playSound(f.getSound(680))},null),f.runLater(1100,function(a){f.switchScene(va.get().scenes.h[11].getID(),null,f.createCrossfadeTransition(.5))}, +null),this._customEvent_AddCurrency(),pa.sendGameplayStop()):h.engine.getGameAttribute("P1 Versus Score")<h.engine.getGameAttribute("P2 Versus Score")&&(f.stopSoundOnChannel(0),f.runLater(300,function(a){h.engine.getGameAttribute("Mute Sounds")||f.playSound(f.getSound(680))},null),f.runLater(1100,function(a){f.switchScene(va.get().scenes.h[11].getID(),null,f.createCrossfadeTransition(.5))},null),this._customEvent_AddCurrency(),pa.sendGameplayStop());else if(!this._Player1Dead&&this._Player2Dead)if(h.engine.getGameAttribute("P1 Versus Score")> +h.engine.getGameAttribute("P2 Versus Score")){for(var a=0,b=f.getActorsOfType(f.getActorType(479));a<b.length;){var c=b[a];++a;null==c||c.dead||c.recycled||(c.shout("_customEvent_Stop"),c.shout("_customEvent_RemoveControl"),c.shout("_customEvent_Unkillable"),c.setXVelocity(0))}f.stopSoundOnChannel(0);f.runLater(300,function(a){h.engine.getGameAttribute("Mute Sounds")||f.playSound(f.getSound(680))},null);f.runLater(1100,function(a){f.switchScene(va.get().scenes.h[11].getID(),null,f.createCrossfadeTransition(.5))}, +null);this._customEvent_AddCurrency();pa.sendGameplayStop()}else for(a=0,b=f.getActorsOfType(f.getActorType(652));a<b.length;)c=b[a],++a,null==c||c.dead||c.recycled||(c.shout("_customEvent_Stop"),c.shout("_customEvent_RemoveControl"),c.shout("_customEvent_Unkillable"),c.setXVelocity(0));else if(this._Player1Dead&&!this._Player2Dead)if(h.engine.getGameAttribute("P1 Versus Score")<h.engine.getGameAttribute("P2 Versus Score")){a=0;for(b=f.getActorsOfType(f.getActorType(652));a<b.length;)c=b[a],++a,null== +c||c.dead||c.recycled||(c.shout("_customEvent_Stop"),c.shout("_customEvent_RemoveControl"),c.shout("_customEvent_Unkillable"),c.setXVelocity(0));f.stopSoundOnChannel(0);f.runLater(300,function(a){h.engine.getGameAttribute("Mute Sounds")||f.playSound(f.getSound(680))},null);f.runLater(1100,function(a){f.switchScene(va.get().scenes.h[11].getID(),null,f.createCrossfadeTransition(.5))},null);this._customEvent_AddCurrency();pa.sendGameplayStop()}else for(a=0,b=f.getActorsOfType(f.getActorType(479));a< +b.length;)c=b[a],++a,null==c||c.dead||c.recycled||(c.shout("_customEvent_Stop"),c.shout("_customEvent_RemoveControl"),c.shout("_customEvent_Unkillable"),c.setXVelocity(0))},_customEvent_Paused:function(){if(!pa.IsVideoPlaying()){f.createRecycledActor(f.getActorType(586),0,0,0);f.createRecycledActor(f.getActorType(590),0,0,0);f.createRecycledActor(f.getActorType(606),0,0,0);f.createRecycledActor(f.getActorType(608),0,0,0);for(var a=0,b=O.__cast(f.getActorGroup(12),xe).list;a<b.length;){var c=b[a]; +++a;null==c||c.dead||c.recycled||(c.disableActorDrawing(),c.moveBy(0,500,0,ia.linear))}a=0;for(b=f.getActorsOfType(f.getActorType(582));a<b.length;)c=b[a],++a,null==c||c.dead||c.recycled||c.moveToTop();a=0;for(b=f.getActorsOfType(f.getActorType(584));a<b.length;)c=b[a],++a,null==c||c.dead||c.recycled||c.moveToTop();a=0;for(b=f.getActorsOfType(f.getActorType(676));a<b.length;)c=b[a],++a,null==c||c.dead||c.recycled||c.moveToTop();pa.sendGameplayStop();f.engine.pause()}},_customEvent_Resume:function(){if(!pa.IsVideoPlaying())if(pa.adBlocked){f.resumeSoundOnChannel(0); +for(var a=0,b=O.__cast(f.getActorGroup(13),xe).list;a<b.length;){var c=b[a];++a;null==c||c.dead||c.recycled||f.recycleActor(c)}a=0;for(b=O.__cast(f.getActorGroup(12),xe).list;a<b.length;)c=b[a],++a,null==c||c.dead||c.recycled||(c.enableActorDrawing(),c.moveBy(0,-500,0,ia.linear));f.engine.unpause();pa.sendGameplayStart()}else pa.commercialBreak(function(){f.resumeSoundOnChannel(0);for(var a=0,b=O.__cast(f.getActorGroup(13),xe).list;a<b.length;){var c=b[a];++a;null==c||c.dead||c.recycled||f.recycleActor(c)}a= +0;for(b=O.__cast(f.getActorGroup(12),xe).list;a<b.length;)c=b[a],++a,null==c||c.dead||c.recycled||(c.enableActorDrawing(),c.moveBy(0,-500,0,ia.linear));f.engine.unpause();pa.sendGameplayStart()})},_customEvent_P1Respawn:function(){this._Player1Dead=!1},_customEvent_P2Respawn:function(){this._Player2Dead=!1},_customEvent_AddCurrency:function(){if(h.engine.getGameAttribute("Multiplayer On"))h.engine.getGameAttribute("Multiplayer On")&&1==h.engine.getGameAttribute("Multiplayer Mode")?(a=h.engine,b=h.engine.getGameAttribute("Currency Carrots")+ +h.engine.getGameAttribute("Carrot Counter"),a.gameAttributes.h["Currency Carrots"]=b):h.engine.getGameAttribute("Multiplayer On")&&2==h.engine.getGameAttribute("Multiplayer Mode")&&(a=h.engine,b=h.engine.getGameAttribute("Currency Carrots")+(h.engine.getGameAttribute("P1 Versus Score")+h.engine.getGameAttribute("P2 Versus Score")),a.gameAttributes.h["Currency Carrots"]=b);else{var a=h.engine,b=h.engine.getGameAttribute("Currency Carrots")+h.engine.getGameAttribute("Carrot Counter");a.gameAttributes.h["Currency Carrots"]= +b}},_customEvent_ResumeTime:function(){this._CanCountTime=this._CanPause=!0;h.engine.getGameAttribute("Multiplayer On")&&1==h.engine.getGameAttribute("Multiplayer Mode")&&(this._CanRespawnP2=this._CanRespawn=!0,this._Player2Dead=this._Player1Dead=!1)},init:function(){var a=this;f.engine.moveCamera(f.getSceneWidth()/2,144);f.loopSoundOnChannel(f.getSound(554),0);h.engine.gameAttributes.h["Time Counter"]=0;h.engine.gameAttributes.h["Carrot Counter"]=0;h.engine.gameAttributes.h["P1 Versus Score"]=0; +h.engine.gameAttributes.h["P2 Versus Score"]=0;h.engine.getGameAttribute("Multiplayer On")?(f.runLater(1E3,function(a){f.createRecycledActor(f.getActorType(479),136,144,0)},null),f.runLater(1E3,function(a){f.createRecycledActor(f.getActorType(652),216,144,0)},null),pa.sendGameplayStart()):f.runLater(1E3,function(a){f.createRecycledActor(f.getActorType(479),176,144,0);pa.sendGameplayStart()},null);f.runLater(30,function(b){a._customEvent_TimeStart();f.shoutToScene("_customEvent_StartTrapSpawning"); +a._customEvent_CreateControls()},null);pa.adBlocked||f.runLater(100,function(a){f.shoutToScene("_customEvent_PokiAd")},null);h.engine.gameAttributes.h["Used Revive"]=!1;this.addListener(f.engine.whenKeyPressedEvents.getOrCreateEvent("Restart"),q(this,this._event_Restart));this.addListener(f.engine.whenKeyPressedEvents.getOrCreateEvent("Esc"),q(this,this._event_Esc));this.addListener(f.engine.whenDrawing,q(this,this._event_DrawTimeTrialCounter));this.addListener(f.engine.whenUpdated,q(this,this._event_IncreaseTime))}, +forwardMessage:function(a){},__class__:hs});var is=function(a,b,c){w.call(this,b);this.nameMap.h.Actor="actor";this.nameMap.h["Fade Time"]="_FadeTime";this._FadeTime=1;this.nameMap.h["Time to Fade After"]="_TimetoFadeAfter";this._TimetoFadeAfter=1;this.nameMap.h.Fading="_Fading";this._Fading=!1;this.nameMap.h["Kill After Fade"]="_KillAfterFade";this._KillAfterFade=!0};k["scripts.Design_228_228_FadeAfterTime"]=is;is.__name__="scripts.Design_228_228_FadeAfterTime";is.__super__=w;is.prototype=u(w.prototype, +{_FadeTime:null,_TimetoFadeAfter:null,_Fading:null,_KillAfterFade:null,_customEvent_Fade:function(){var a=this;this._Fading||(this._Fading=!0,this.actor.fadeTo(0,this._FadeTime,ia.linear),f.runLater(1E3*this._FadeTime,function(b){a._KillAfterFade&&f.recycleActor(a.actor)},this.actor))},init:function(){var a=this;0<=this._TimetoFadeAfter&&f.runLater(1E3*this._TimetoFadeAfter,function(b){a._customEvent_Fade()},this.actor)},forwardMessage:function(a){},__class__:is});var js=function(a,b,c){w.call(this, +b);this.nameMap.h.Actor="actor";this.nameMap.h.Dead="_Dead";this._Dead=!1;this.nameMap.h["Player Number"]="_PlayerNumber";this._PlayerNumber=1;this.nameMap.h["Can Die?"]="_CanDie";this._CanDie=!0};k["scripts.Design_232_232_PlayerDeadBehavior"]=js;js.__name__="scripts.Design_232_232_PlayerDeadBehavior";js.__super__=w;js.prototype=u(w.prototype,{_Dead:null,_PlayerNumber:null,_CanDie:null,_event_hitdeadlyobject:function(a){if(this.wrapper.enabled){var b=f.getActorGroup(8);var c=a.otherActor.getType(); +a=a.otherActor.getGroup();b=b==c||b==a}else b=!1;b&&this._customEvent_Die()},_event_hitdeadlyobjectsolid:function(a){if(this.wrapper.enabled){var b=f.getActorGroup(11);var c=a.otherActor.getType();a=a.otherActor.getGroup();b=b==c||b==a}else b=!1;b&&this._customEvent_Die()},_event_Updating:function(a){this.wrapper.enabled&&this.actor.getScreenY()>f.getScreenHeight()+32&&f.recycleActor(this.actor)},_customEvent_Die:function(){this._CanDie&&!this._Dead&&(this._Dead=!0,this.actor.disableBehavior("Player Control"), +this.actor.setXVelocity(0),this.actor.setYVelocity(0),this.actor.setAnimation("dead"),"Right"==""+n.string(this.actor.getActorValue("Facing"))?this.actor.shout("_customEvent_R"):this.actor.shout("_customEvent_L"),f.createRecycledActor(f.getActorType(494),-32,-32,0),f.getLastCreatedActor().setX(this.actor.getXCenter()-f.getLastCreatedActor().getWidth()/2),f.getLastCreatedActor().setY(this.actor.getYCenter()-f.getLastCreatedActor().getHeight()/2+8),f.getLastCreatedActor().moveToTop(),1==this._PlayerNumber? +f.shoutToScene("_customEvent_PlayerDie"):2==this._PlayerNumber&&f.shoutToScene("_customEvent_PlayerDie2"),f.startShakingScreen(.03,.3),h.engine.getGameAttribute("Mute Sounds")||f.playSoundOnChannel(f.getSound(496),3),f.createRecycledActor(f.getActorType(560),-32,-32,0),this.actor.setActorValue("dead",!0))},_customEvent_R:function(){var a=this;this.actor.setAnimation("dead-r");this.actor.applyImpulse(f.randomFloatBetween(-1,-2),-4,f.randomFloatBetween(8,15));f.runLater(200,function(b){a.actor.setAngle(.01745329251994278* +(57.29577951308402*a.actor.getAngle()-90));f.runLater(200,function(b){a.actor.setAngle(.01745329251994278*(57.29577951308402*a.actor.getAngle()-90))},a.actor)},this.actor)},_customEvent_L:function(){var a=this;this.actor.setAnimation("dead-l");this.actor.applyImpulse(f.randomFloatBetween(1,2),-4,f.randomFloatBetween(8,15));f.runLater(200,function(b){a.actor.setAngle(.01745329251994278*(57.29577951308402*a.actor.getAngle()+90));f.runLater(200,function(b){a.actor.setAngle(.01745329251994278*(57.29577951308402* +a.actor.getAngle()+90))},a.actor)},this.actor)},_customEvent_Blink:function(){var a=this;this._CanDie=!1;f.runLater(100,function(b){a.actor.fadeTo(0,0,ia.linear);f.runLater(100,function(b){a.actor.fadeTo(1,0,ia.linear);f.runLater(100,function(b){a.actor.fadeTo(0,0,ia.linear);f.runLater(100,function(b){a.actor.fadeTo(1,0,ia.linear);f.runLater(100,function(b){a.actor.fadeTo(0,0,ia.linear);f.runLater(100,function(b){a.actor.fadeTo(1,0,ia.linear);f.runLater(100,function(b){a.actor.fadeTo(0,0,ia.linear); +f.runLater(100,function(b){a.actor.fadeTo(1,0,ia.linear);f.runLater(100,function(b){a.actor.fadeTo(0,0,ia.linear);f.runLater(100,function(b){a.actor.fadeTo(1,0,ia.linear);f.runLater(100,function(b){a.actor.fadeTo(0,0,ia.linear);f.runLater(100,function(b){a.actor.fadeTo(1,0,ia.linear);f.runLater(100,function(b){a.actor.fadeTo(0,0,ia.linear);f.runLater(100,function(b){a.actor.fadeTo(1,0,ia.linear);a._CanDie=!0},a.actor)},a.actor)},a.actor)},a.actor)},a.actor)},a.actor)},a.actor)},a.actor)},a.actor)}, +a.actor)},a.actor)},a.actor)},a.actor)},this.actor)},_customEvent_BlinkAd:function(){var a=this;this._CanDie=!1;f.runLater(100,function(b){a.actor.fadeTo(0,0,ia.linear);f.runLater(100,function(b){a.actor.fadeTo(1,0,ia.linear);f.runLater(100,function(b){a.actor.fadeTo(0,0,ia.linear);f.runLater(100,function(b){a.actor.fadeTo(1,0,ia.linear);f.runLater(100,function(b){a.actor.fadeTo(0,0,ia.linear);f.runLater(100,function(b){a.actor.fadeTo(1,0,ia.linear);f.runLater(100,function(b){a.actor.fadeTo(0,0,ia.linear); +f.runLater(100,function(b){a.actor.fadeTo(1,0,ia.linear);f.runLater(100,function(b){a.actor.fadeTo(0,0,ia.linear);f.runLater(100,function(b){a.actor.fadeTo(1,0,ia.linear);f.runLater(100,function(b){a.actor.fadeTo(0,0,ia.linear);f.runLater(100,function(b){a.actor.fadeTo(1,0,ia.linear);f.runLater(100,function(b){a.actor.fadeTo(0,0,ia.linear);f.runLater(100,function(b){a.actor.fadeTo(1,0,ia.linear);f.runLater(100,function(b){a.actor.fadeTo(0,0,ia.linear);f.runLater(100,function(b){a.actor.fadeTo(1,0, +ia.linear);f.runLater(100,function(b){a.actor.fadeTo(0,0,ia.linear);f.runLater(100,function(b){a.actor.fadeTo(1,0,ia.linear);f.runLater(100,function(b){a.actor.fadeTo(0,0,ia.linear);f.runLater(100,function(b){a.actor.fadeTo(1,0,ia.linear);f.runLater(100,function(b){a.actor.fadeTo(0,0,ia.linear);f.runLater(100,function(b){a.actor.fadeTo(1,0,ia.linear);f.runLater(100,function(b){a.actor.fadeTo(0,0,ia.linear);f.runLater(100,function(b){a.actor.fadeTo(1,0,ia.linear);f.runLater(100,function(b){a.actor.fadeTo(0, +0,ia.linear);f.runLater(100,function(b){a.actor.fadeTo(1,0,ia.linear);f.runLater(100,function(b){a.actor.fadeTo(0,0,ia.linear);f.runLater(100,function(b){a.actor.fadeTo(1,0,ia.linear);f.runLater(100,function(b){a.actor.fadeTo(0,0,ia.linear);f.runLater(100,function(b){a.actor.fadeTo(1,0,ia.linear);f.runLater(100,function(b){a.actor.fadeTo(0,0,ia.linear);f.runLater(100,function(b){a.actor.fadeTo(1,0,ia.linear);f.runLater(100,function(b){a.actor.fadeTo(0,0,ia.linear);f.runLater(100,function(b){a.actor.fadeTo(1, +0,ia.linear);f.runLater(100,function(b){a.actor.fadeTo(0,0,ia.linear);f.runLater(100,function(b){a.actor.fadeTo(1,0,ia.linear);f.runLater(100,function(b){a.actor.fadeTo(0,0,ia.linear);f.runLater(100,function(b){a.actor.fadeTo(1,0,ia.linear);f.runLater(100,function(b){a.actor.fadeTo(0,0,ia.linear);f.runLater(100,function(b){a.actor.fadeTo(1,0,ia.linear);a._CanDie=!0},a.actor)},a.actor)},a.actor)},a.actor)},a.actor)},a.actor)},a.actor)},a.actor)},a.actor)},a.actor)},a.actor)},a.actor)},a.actor)},a.actor)}, +a.actor)},a.actor)},a.actor)},a.actor)},a.actor)},a.actor)},a.actor)},a.actor)},a.actor)},a.actor)},a.actor)},a.actor)},a.actor)},a.actor)},a.actor)},a.actor)},a.actor)},a.actor)},a.actor)},a.actor)},a.actor)},a.actor)},a.actor)},a.actor)},a.actor)},this.actor)},_customEvent_Unkillable:function(){this._CanDie=!1},init:function(){this.addListener(this.actor.whenCollided,q(this,this._event_hitdeadlyobject));this.addListener(this.actor.whenCollided,q(this,this._event_hitdeadlyobjectsolid));this.addListener(this.actor.whenUpdated, +q(this,this._event_Updating))},forwardMessage:function(a){},__class__:js});var ks=function(a,b){f.call(this)};k["scripts.Design_238_238_MusicPlayerBehavior"]=ks;ks.__name__="scripts.Design_238_238_MusicPlayerBehavior";ks.__super__=gb;ks.prototype=u(gb.prototype,{_event_Updating:function(a){this.wrapper.enabled&&(h.engine.getGameAttribute("Mute Music")?f.setVolumeForChannel(0,0):f.engine.isPaused()?f.setVolumeForChannel(0,0):f.setVolumeForChannel(.25,0),h.engine.getGameAttribute("Mute Sounds")?(f.setVolumeForChannel(0, +1),f.setVolumeForChannel(0,2),f.setVolumeForChannel(0,3),f.setVolumeForChannel(0,4),f.setVolumeForChannel(0,5),f.setVolumeForChannel(0,6),f.setVolumeForChannel(0,7),f.setVolumeForChannel(0,8),f.setVolumeForChannel(0,9)):(f.setVolumeForChannel(.7,1),f.setVolumeForChannel(.7,2),f.setVolumeForChannel(.7,3),f.setVolumeForChannel(.7,4),f.setVolumeForChannel(.7,5),f.setVolumeForChannel(.7,6),f.setVolumeForChannel(.7,7),f.setVolumeForChannel(.7,8),f.setVolumeForChannel(.7,9)))},_customEvent_MuteMusic:function(){h.engine.getGameAttribute("Mute Music")? +h.engine.gameAttributes.h["Mute Music"]=!1:h.engine.gameAttributes.h["Mute Music"]=!0},_customEvent_MuteSounds:function(){h.engine.getGameAttribute("Mute Sounds")?h.engine.gameAttributes.h["Mute Sounds"]=!1:h.engine.gameAttributes.h["Mute Sounds"]=!0},init:function(){this.addListener(f.engine.whenUpdated,q(this,this._event_Updating))},forwardMessage:function(a){},__class__:ks});var Jg=function(a,b,c){w.call(this,b);this.nameMap.h.Actor="actor";this.nameMap.h["Normal Animation"]="_NormalAnimation"; +this._NormalAnimation="";this.nameMap.h["Pressed Animation"]="_PressedAnimation";this._PressedAnimation="";this.nameMap.h.Control="_Control";this.nameMap.h["Show Only in Mobile Games"]="_ShowOnlyinMobileGames";this._ShowOnlyinMobileGames=!1;this.nameMap.h.Down="_Down";this._Down=!1;this.nameMap.h["Allow Slide"]="_AllowSlide";this._AllowSlide=!1;this.nameMap.h["Hover Animation"]="_HoverAnimation";this._HoverAnimation="";this.nameMap.h["Touching IDs"]="_TouchingIDs";this.nameMap.h["On Self"]="_OnSelf"; +this._OnSelf=!1;this.nameMap.h["Was Touching"]="_WasTouching";this._WasTouching=!1;this.nameMap.h["Enable Multi-Touch"]="_EnableMultiTouch";this._EnableMultiTouch=!0;this.nameMap.h["Button Name"]="_ButtonName";this._ButtonName=""};k["scripts.Design_242_242_OnScreenButton"]=Jg;Jg.__name__="scripts.Design_242_242_OnScreenButton";Jg.__super__=w;Jg.prototype=u(w.prototype,{_NormalAnimation:null,_PressedAnimation:null,_Control:null,_ShowOnlyinMobileGames:null,_Down:null,_AllowSlide:null,_HoverAnimation:null, +_TouchingIDs:null,_OnSelf:null,_WasTouching:null,_EnableMultiTouch:null,_ButtonName:null,_event_OnActor:function(a){this.wrapper.enabled&&3==a&&(f.simulateKeyPress(this._Control),this.actor.setAnimation(this._PressedAnimation),this._Down=!0)},_event_OnActor2:function(a){this.wrapper.enabled&&5==a&&this._Down&&(f.simulateKeyRelease(this._Control),this.actor.setAnimation(this._HoverAnimation),this._Down=!1)},_event_OnActor3:function(a){this.wrapper.enabled&&1==a&&(this._AllowSlide&&f.isMouseDown()? +(f.simulateKeyPress(this._Control),this.actor.setAnimation(this._PressedAnimation),this._Down=!0):this.actor.setAnimation(this._HoverAnimation))},_event_OnActor4:function(a){this.wrapper.enabled&&-1==a&&(this._AllowSlide&&this._Down&&f.simulateKeyRelease(this._Control),this.actor.setAnimation(this._NormalAnimation),this._Down=!1)},_event_MultiTouch:function(a){this.wrapper.enabled&&this._EnableMultiTouch&&(this._TouchingIDs=Jg.touchMap.h[this._ButtonName],F.remove(this._TouchingIDs,a.touchPointID), +this._OnSelf=(a.stageX-h.screenOffsetX)/(h.screenScaleX*h.SCALE)>this.actor.getX()&&(a.stageX-h.screenOffsetX)/(h.screenScaleX*h.SCALE)<this.actor.getX()+this.actor.getWidth()&&(a.stageY-h.screenOffsetY)/(h.screenScaleY*h.SCALE)>this.actor.getY()&&(a.stageY-h.screenOffsetY)/(h.screenScaleY*h.SCALE)<this.actor.getY()+this.actor.getHeight())&&(f.simulateKeyPress(this._Control),this.actor.setAnimation(this._PressedAnimation),this._TouchingIDs.push(a.touchPointID))},_event_MultiTouch2:function(a){this.wrapper.enabled&& +this._EnableMultiTouch&&(this._TouchingIDs=Jg.touchMap.h[this._ButtonName],this._OnSelf=(a.stageX-h.screenOffsetX)/(h.screenScaleX*h.SCALE)>this.actor.getX()&&(a.stageX-h.screenOffsetX)/(h.screenScaleX*h.SCALE)<this.actor.getX()+this.actor.getWidth()&&(a.stageY-h.screenOffsetY)/(h.screenScaleY*h.SCALE)>this.actor.getY()&&(a.stageY-h.screenOffsetY)/(h.screenScaleY*h.SCALE)<this.actor.getY()+this.actor.getHeight(),this._WasTouching=S.contains(this._TouchingIDs,a.touchPointID),this._OnSelf&&!this._WasTouching&& +this._AllowSlide?(f.simulateKeyPress(this._Control),this.actor.setAnimation(this._PressedAnimation),this._TouchingIDs.push(a.touchPointID)):!this._OnSelf&&this._WasTouching&&(this._AllowSlide&&f.simulateKeyRelease(this._Control),this.actor.setAnimation(this._NormalAnimation),F.remove(this._TouchingIDs,a.touchPointID)))},_event_MultiTouch3:function(a){this.wrapper.enabled&&this._EnableMultiTouch&&(this._TouchingIDs=Jg.touchMap.h[this._ButtonName],this._OnSelf=(a.stageX-h.screenOffsetX)/(h.screenScaleX* +h.SCALE)>this.actor.getX()&&(a.stageX-h.screenOffsetX)/(h.screenScaleX*h.SCALE)<this.actor.getX()+this.actor.getWidth()&&(a.stageY-h.screenOffsetY)/(h.screenScaleY*h.SCALE)>this.actor.getY()&&(a.stageY-h.screenOffsetY)/(h.screenScaleY*h.SCALE)<this.actor.getY()+this.actor.getHeight(),this._WasTouching=S.contains(this._TouchingIDs,a.touchPointID),(this._OnSelf||this._AllowSlide)&&this._WasTouching&&(f.simulateKeyRelease(this._Control),F.remove(this._TouchingIDs,a.touchPointID),this.actor.setAnimation(this._NormalAnimation)))}, +init:function(){""==this._ButtonName&&(this._ButtonName=""+n.string(this.actor.getType()));null==Jg.touchMap&&(Jg.touchMap=new V);Object.prototype.hasOwnProperty.call(Jg.touchMap.h,this._ButtonName)||(Jg.touchMap.h[this._ButtonName]=[]);this.actor.anchorToScreen();this.actor.setAnimation(this._NormalAnimation);this._ShowOnlyinMobileGames&&f.recycleActor(this.actor);this.actor.makeAlwaysSimulate();this.addListener(this.actor.whenMousedOver,q(this,this._event_OnActor));this.addListener(this.actor.whenMousedOver, +q(this,this._event_OnActor2));this.addListener(this.actor.whenMousedOver,q(this,this._event_OnActor3));this.addListener(this.actor.whenMousedOver,q(this,this._event_OnActor4));this.addListener(f.engine.whenMTStarted,q(this,this._event_MultiTouch));this.addListener(f.engine.whenMTDragged,q(this,this._event_MultiTouch2));this.addListener(f.engine.whenMTEnded,q(this,this._event_MultiTouch3))},forwardMessage:function(a){},__class__:Jg});var ls=function(a,b,c){w.call(this,b);this.nameMap.h.Actor="actor"; +this.nameMap.h["Distance X"]="_DistanceX";this._DistanceX=0;this.nameMap.h["Distance Y"]="_DistanceY";this._DistanceY=0;this.nameMap.h.Direction="_Direction";this._Direction=0;this.nameMap.h.Distance="_Distance";this._Distance=0;this.nameMap.h.Speed="_Speed";this._Speed=10;this.nameMap.h.Facing="_Facing";this._Facing=0;this.nameMap.h["Point Away"]="_PointAway";this._PointAway=!0;this.nameMap.h["Origin Actor"]="_OriginActor";this.nameMap.h["Step Seconds"]="_StepSeconds";this._StepSeconds=0;this.nameMap.h["New Distance"]= +"_NewDistance";this._NewDistance=0;this.nameMap.h["Distance Threshold"]="_DistanceThreshold";this._DistanceThreshold=10;this.nameMap.h["Fixed Radius"]="_FixedRadius";this._FixedRadius=!0};k["scripts.Design_252_252_RotateAroundActor"]=ls;ls.__name__="scripts.Design_252_252_RotateAroundActor";ls.__super__=w;ls.prototype=u(w.prototype,{_DistanceX:null,_DistanceY:null,_Direction:null,_Distance:null,_Speed:null,_Facing:null,_PointAway:null,_OriginActor:null,_StepSeconds:null,_NewDistance:null,_DistanceThreshold:null, +_FixedRadius:null,_event_Updated:function(a){this.wrapper.enabled&&f.hasValue(this._OriginActor)&&this._OriginActor.isAlive()&&(this._FixedRadius||(this._DistanceX=this.actor.getXCenter()-this._OriginActor.getXCenter(),this._DistanceY=this.actor.getYCenter()-this._OriginActor.getYCenter(),this._NewDistance=Math.sqrt(Math.pow(this._DistanceX,2)+Math.pow(this._DistanceY,2)),Math.abs(this._NewDistance-this._Distance)>this._DistanceThreshold&&(this._Distance=this._NewDistance,this._Direction=Math.atan2(this._DistanceY, +this._DistanceX))),this._Direction=(this._Direction+=.01745329251994278*this._Speed*this._StepSeconds)-2*Math.PI*Math.floor(this._Direction/(2*Math.PI)),this.actor.setX(this._OriginActor.getXCenter()+this._Distance*Math.cos(this._Direction)-this.actor.getWidth()/2),this.actor.setY(this._OriginActor.getYCenter()+this._Distance*Math.sin(this._Direction)-this.actor.getHeight()/2),this._PointAway&&this.actor.setAngle(.01745329251994278*(57.29577951308402*this._Direction-this._Facing)))},_event_Drawing:function(a, +b,c){this.wrapper.enabled&&f.sceneHasBehavior("Game Debugger")&&f.asBoolean(f.getValueForScene("Game Debugger","_Enabled"))&&f.hasValue(this._OriginActor)&&this._OriginActor.isAlive()&&(a.strokeColor=f.getValueForScene("Game Debugger","_CustomColor"),a.strokeSize=f.asNumber(f.getValueForScene("Game Debugger","_StrokeThickness"))|0,a.translateToScreen(),a.drawCircle(this._OriginActor.getXCenter(),this._OriginActor.getYCenter(),this._Distance),a.drawLine(this._OriginActor.getXCenter(),this._OriginActor.getYCenter(), +this.actor.getXCenter(),this.actor.getYCenter()))},_customEvent_Initialize:function(){f.hasValue(this._OriginActor)&&this._OriginActor.isAlive()&&(this._DistanceX=this.actor.getXCenter()-this._OriginActor.getXCenter(),this._DistanceY=this.actor.getYCenter()-this._OriginActor.getYCenter(),this._Distance=Math.sqrt(Math.pow(this._DistanceX,2)+Math.pow(this._DistanceY,2)),this._Direction=Math.atan2(this._DistanceY,this._DistanceX))},_customEvent_SpinLeft:function(){this._Speed=-this._Speed},init:function(){var a= +this;this._StepSeconds=f.getStepSize()/1E3;for(var b=0,c=f.getActorsOfType(f.getActorType(521));b<c.length;){var d=c[b];++b;null==d||d.dead||d.recycled||(this._OriginActor=d)}f.runLater(100,function(b){a._customEvent_Initialize()},this.actor);this.addListener(this.actor.whenUpdated,q(this,this._event_Updated));this.addListener(this.actor.whenDrawing,q(this,this._event_Drawing))},forwardMessage:function(a){},__class__:ls});var ms=function(a,b,c){w.call(this,b);this.nameMap.h.Actor="actor"};k["scripts.Design_258_258_PlatformBehavior"]= +ms;ms.__name__="scripts.Design_258_258_PlatformBehavior";ms.__super__=w;ms.prototype=u(w.prototype,{_event_Updating:function(a){this.wrapper.enabled&&this.actor.moveToBottom()},init:function(){this.actor.makeAlwaysSimulate();this.actor.sendBackward();this.addListener(this.actor.whenUpdated,q(this,this._event_Updating))},forwardMessage:function(a){},__class__:ms});var ns=function(a,b,c){w.call(this,b);this.nameMap.h.Actor="actor";this.nameMap.h["On Platform?"]="_OnPlatform";this._OnPlatform=!1;this.nameMap.h["Hit Platform?"]= +"_HitPlatform";this._HitPlatform=!1;this.nameMap.h["Platform Actor Group"]="_PlatformActorGroup";this.nameMap.h["Platform Actor"]="_PlatformActor";this.nameMap.h["Left Key"]="_LeftKey";this.nameMap.h["Right Key"]="_RightKey";this.nameMap.h["Jump Key"]="_JumpKey"};k["scripts.Design_260_260_RidePlatforms"]=ns;ns.__name__="scripts.Design_260_260_RidePlatforms";ns.__super__=w;ns.prototype=u(w.prototype,{_OnPlatform:null,_HitPlatform:null,_PlatformActorGroup:null,_PlatformActor:null,_LeftKey:null,_RightKey:null, +_JumpKey:null,_event_Updated:function(a){this.wrapper.enabled&&(this._OnPlatform=this._HitPlatform,this._HitPlatform=!1,this._OnPlatform&&!f.isKeyDown(this._RightKey)&&!f.isKeyDown(this._LeftKey)&&!f.isKeyDown(this._JumpKey)&&f.hasValue(this._PlatformActor)&&this._PlatformActor.isAlive()&&(this.actor.setXVelocity(this._PlatformActor.getXVelocity()),this.actor.setYVelocity(this._PlatformActor.getYVelocity())))},_event_ActorAny:function(a){this.wrapper.enabled&&a.thisFromBottom&&this.internalGetGroup(a.otherActor, +a.otherShape,a)==this._PlatformActorGroup&&(this._HitPlatform=!0,this._PlatformActor=this.actor.getLastCollidedActor())},init:function(){this.addListener(this.actor.whenUpdated,q(this,this._event_Updated));this.addListener(this.actor.whenCollided,q(this,this._event_ActorAny))},forwardMessage:function(a){},__class__:ns});var os=function(a,b,c){w.call(this,b);this.nameMap.h.Actor="actor";this.nameMap.h["Player Actor Type"]="_PlayerActorType";this.nameMap.h["Player Actor"]="_PlayerActor";this.nameMap.h["Player Feet Position"]= +"_PlayerFeetPosition";this._PlayerFeetPosition=0;this.nameMap.h["Platform Solid Animation"]="_PlatformSolidAnimation";this._PlatformSolidAnimation="";this.nameMap.h["Platform Pass Through Animation"]="_PlatformPassThroughAnimation";this._PlatformPassThroughAnimation="";this.nameMap.h["Colliding?"]="_Colliding";this._Colliding=!1;this.nameMap.h["Collided?"]="_Collided";this._Collided=!1};k["scripts.Design_261_261_OneWayPlatform"]=os;os.__name__="scripts.Design_261_261_OneWayPlatform";os.__super__= +w;os.prototype=u(w.prototype,{_PlayerActorType:null,_PlayerActor:null,_PlayerFeetPosition:null,_PlatformSolidAnimation:null,_PlatformPassThroughAnimation:null,_Colliding:null,_Collided:null,_event_ActorAny:function(a){this.wrapper.enabled&&a.thisFromTop&&(this._Collided=!0)},_event_Updated:function(a){this.wrapper.enabled&&(this._Colliding=this._Collided,this._Collided=!1,f.hasValue(this._PlayerActor)&&this._PlayerActor.isAlive()&&(this._PlayerFeetPosition=this._PlayerActor.getY()+this._PlayerActor.getHeight(), +this._PlayerFeetPosition<=this.actor.getY()||this._Colliding?this.actor.setAnimation(this._PlatformSolidAnimation):this.actor.setAnimation(this._PlatformPassThroughAnimation)))},init:function(){for(var a=0,b=O.__cast(f.getActorGroup(0),xe).list;a<b.length;){var c=b[a];++a;null==c||c.dead||c.recycled||(this._PlayerActor=c)}this.actor.makeAlwaysSimulate();this.addListener(this.actor.whenCollided,q(this,this._event_ActorAny));this.addListener(this.actor.whenUpdated,q(this,this._event_Updated))},forwardMessage:function(a){}, +__class__:os});var ps=function(a,b,c){w.call(this,b);this.nameMap.h.Actor="actor";this.nameMap.h["Shooting Right?"]="_ShootingRight";this._ShootingRight=!1;this.nameMap.h["Start Shooting Time"]="_StartShootingTime";this._StartShootingTime=0};k["scripts.Design_266_266_CannonShootBehavior"]=ps;ps.__name__="scripts.Design_266_266_CannonShootBehavior";ps.__super__=w;ps.prototype=u(w.prototype,{_ShootingRight:null,_StartShootingTime:null,_customEvent_ShootLeft:function(){var a=this;this.actor.setAnimation("0"); +f.runLater(1E3,function(b){a.actor.setAnimation("1");f.runLater(600,function(b){a.actor.setAnimation("2");f.createRecycledActor(f.getActorType(503),-60,-60,0);f.getLastCreatedActor().setXVelocity(-7);f.getLastCreatedActor().setX(a.actor.getXCenter()-f.getLastCreatedActor().getWidth()/2-8);f.getLastCreatedActor().setY(a.actor.getYCenter()-f.getLastCreatedActor().getHeight()/2);f.runLater(1200,function(b){a._customEvent_ShootLeft()},a.actor);h.engine.getGameAttribute("Mute Sounds")||f.playSound(f.getSound(557))}, +a.actor)},this.actor)},_customEvent_ShootRight:function(){var a=this;this.actor.setAnimation("0");f.runLater(1E3,function(b){a.actor.setAnimation("1");f.runLater(600,function(b){a.actor.setAnimation("2");f.createRecycledActor(f.getActorType(503),-60,-60,0);f.getLastCreatedActor().setAnimation("R");f.getLastCreatedActor().setXVelocity(7);f.getLastCreatedActor().setX(a.actor.getXCenter()-f.getLastCreatedActor().getWidth()/2+8);f.getLastCreatedActor().setY(a.actor.getYCenter()-f.getLastCreatedActor().getHeight()/ +2);f.runLater(1200,function(b){a._customEvent_ShootRight()},a.actor);h.engine.getGameAttribute("Mute Sounds")||f.playSound(f.getSound(557))},a.actor)},this.actor)},init:function(){var a=this;this.actor.setAnimation("Spawn");this._StartShootingTime=f.randomFloatBetween(.5,1.5);f.runLater(400,function(b){f.runLater(1E3*a._StartShootingTime,function(b){a._ShootingRight?(a._customEvent_ShootRight(),f.createRecycledActor(f.getActorType(527),-32,-32,0),f.getLastCreatedActor().setX(a.actor.getXCenter()- +f.getLastCreatedActor().getWidth()/2-4)):(a._customEvent_ShootLeft(),f.createRecycledActor(f.getActorType(527),-32,-32,0),f.getLastCreatedActor().setX(a.actor.getXCenter()-f.getLastCreatedActor().getWidth()/2+4));f.getLastCreatedActor().setY(a.actor.getYCenter()-f.getLastCreatedActor().getHeight()/2)},a.actor)},this.actor);h.engine.getGameAttribute("Mute Sounds")||(f.playSound(f.getSound(553)),f.runLater(200,function(b){h.engine.getGameAttribute("Mute Sounds")||f.playSound(f.getSound(553));f.runLater(200, +function(b){h.engine.getGameAttribute("Mute Sounds")||f.playSound(f.getSound(553));f.runLater(200,function(b){h.engine.getGameAttribute("Mute Sounds")||f.playSound(f.getSound(553));f.runLater(200,function(b){h.engine.getGameAttribute("Mute Sounds")||f.playSound(f.getSound(553));f.runLater(200,function(b){h.engine.getGameAttribute("Mute Sounds")||f.playSound(f.getSound(553));f.runLater(200,function(a){h.engine.getGameAttribute("Mute Sounds")||f.playSound(f.getSound(553))},a.actor)},a.actor)},a.actor)}, +a.actor)},a.actor)},this.actor))},forwardMessage:function(a){},__class__:ps});var qs=function(a,b,c){w.call(this,b);this.nameMap.h.Actor="actor"};k["scripts.Design_267_267_DieOnLeavingScreen"]=qs;qs.__name__="scripts.Design_267_267_DieOnLeavingScreen";qs.__super__=w;qs.prototype=u(w.prototype,{_event_LeavesScreen:function(a,b,c,d){this.wrapper.enabled&&b&&f.recycleActor(this.actor)},init:function(){this.actor.makeAlwaysSimulate();this.addListener(this.actor.whenPositionStateChanged,q(this,this._event_LeavesScreen))}, +forwardMessage:function(a){},__class__:qs});var rs=function(a,b,c){w.call(this,b);this.nameMap.h.Actor="actor"};k["scripts.Design_269_269_CannotExitScreen"]=rs;rs.__name__="scripts.Design_269_269_CannotExitScreen";rs.__super__=w;rs.prototype=u(w.prototype,{_event_Updated:function(a){this.wrapper.enabled&&(0>this.actor.getScreenX()&&(this.actor.setX(f.getScreenX()),this.actor.setXVelocity(0)),0>this.actor.getScreenY()&&(this.actor.setY(f.getScreenY()),this.actor.setYVelocity(0)),this.actor.getScreenX()+ +this.actor.getWidth()>f.getScreenWidth()&&(this.actor.setX(f.getScreenX()+(f.getScreenWidth()-this.actor.getWidth())),this.actor.setXVelocity(0)),this.actor.getScreenY()+this.actor.getHeight()>f.getScreenHeight()&&(this.actor.setY(f.getScreenY()+(f.getScreenHeight()-this.actor.getHeight())),this.actor.setYVelocity(0)))},init:function(){this.actor.makeAlwaysSimulate();this.addListener(this.actor.whenUpdated,q(this,this._event_Updated))},forwardMessage:function(a){},__class__:rs});var ss=function(a, +b){f.call(this);this.nameMap.h["Random or Aimed Arrow"]="_RandomorAimedArrow";this._RandomorAimedArrow=0;this.nameMap.h["Traps List"]="_TrapsList";this._TrapsList="spikeball1 spikeball2 spikeball3 CannonL1 CannonL2 CannonL3 CannonR1 CannonR2 CannonR3 chainball1 chainball2 chainball3 sawblade1 sawblade2 sawblade3".split(" ");this.nameMap.h.Permutation="_Permutation";this._Permutation=[0];this.nameMap.h.N="_NVar";this._NVar=0;this.nameMap.h["Traps List 2"]="_TrapsList2";this._TrapsList2="spikeball1 CannonL1 chainball3 CannonR3 sawblade1 spikeball3 CannonL2 CannonR1 chainball2 CannonL3 sawblade2 CannonR2 spikeball3 chainball3".split(" "); +this.nameMap.h["Saw created"]="_Sawcreated";this._Sawcreated=!1;this.nameMap.h["Trap Spawn Delay"]="_TrapSpawnDelay";this._TrapSpawnDelay=0;this.nameMap.h["Middle Saw Direction"]="_MiddleSawDirection";this._MiddleSawDirection=0};k["scripts.Design_272_272_TrapSpawner"]=ss;ss.__name__="scripts.Design_272_272_TrapSpawner";ss.__super__=gb;ss.prototype=u(gb.prototype,{_RandomorAimedArrow:null,_TrapsList:null,_Permutation:null,_NVar:null,_TrapsList2:null,_Sawcreated:null,_TrapSpawnDelay:null,_MiddleSawDirection:null, +_customEvent_StartTrapSpawning:function(){for(this._Permutation.length=0;0<this._TrapsList.length;)this._NVar=f.randomInt(0,this._TrapsList.length-1),this._Permutation.push(this._TrapsList[this._NVar|0]),this._TrapsList.splice(this._NVar|0,1);f.runLater(1E4,function(a){f.sayToScene("Trap Spawner","_customEvent_SpawnTrap")},null)},_customEvent_SpawnTrap:function(){var a=this;0!=this._Permutation.length&&(f.sayToScene("Trap Spawner","_customEvent_"+n.string(this._Permutation[0])),this._Permutation.splice(0, +1),f.runLater(1E3*(h.engine.getGameAttribute("Trap Spawning Speed")+this._TrapSpawnDelay),function(b){a._TrapSpawnDelay+=2;f.sayToScene("Trap Spawner","_customEvent_SpawnTrap")},null))},_customEvent_spikeball1:function(){f.createRecycledActor(f.getActorType(499),-300,64,0);f.getLastCreatedActor().setX(112)},_customEvent_spikeball2:function(){f.createRecycledActor(f.getActorType(681),-300,64,0);f.getLastCreatedActor().setX(184)},_customEvent_spikeball3:function(){f.createRecycledActor(f.getActorType(499), +-300,64,0);f.getLastCreatedActor().setX(256)},_customEvent_CannonL1:function(){f.createRecycledActor(f.getActorType(558),64,152,0)},_customEvent_CannonL2:function(){f.createRecycledActor(f.getActorType(558),64,120,0)},_customEvent_CannonL3:function(){f.createRecycledActor(f.getActorType(558),64,88,0)},_customEvent_CannonR1:function(){f.createRecycledActor(f.getActorType(497),288,152,0)},_customEvent_CannonR2:function(){f.createRecycledActor(f.getActorType(497),288,120,0)},_customEvent_CannonR3:function(){f.createRecycledActor(f.getActorType(497), +288,88,0)},_customEvent_chainball1:function(){f.createRecycledActor(f.getActorType(551),179,48,0)},_customEvent_chainball2:function(){f.createRecycledActor(f.getActorType(551),91,48,0)},_customEvent_chainball3:function(){f.createRecycledActor(f.getActorType(551),267,48,0)},_customEvent_sawblade1:function(){f.createRecycledActor(f.getActorType(488),-600,176,2);if(this._Sawcreated)for(var a=0,b=f.getActorsOfType(f.getActorType(565));a<b.length;){var c=b[a];++a;null==c||c.dead||c.recycled||(c.getXCenter()> +f.getSceneWidth()/2?f.getLastCreatedActor().setX(80):f.getLastCreatedActor().setX(276))}else this._Sawcreated=!0,f.getLastCreatedActor().setX(80)},_customEvent_sawblade2:function(){f.createRecycledActor(f.getActorType(565),-600,176,2);if(this._Sawcreated)for(var a=0,b=f.getActorsOfType(f.getActorType(488));a<b.length;){var c=b[a];++a;null==c||c.dead||c.recycled||(c.getXCenter()>f.getSceneWidth()/2?f.getLastCreatedActor().setX(80):f.getLastCreatedActor().setX(276))}else this._Sawcreated=!0,f.getLastCreatedActor().setX(276)}, +_customEvent_sawblade3:function(){this._MiddleSawDirection=f.randomInt(0,1);0==this._MiddleSawDirection?f.createRecycledActor(f.getActorType(565),f.randomInt(80,272),176,2):f.createRecycledActor(f.getActorType(488),f.randomInt(80,272),176,2)},init:function(){var a=this;f.runPeriodically(2E3,function(b){f.createRecycledActor(f.getActorType(490),-100,-100,0);a._RandomorAimedArrow=f.randomInt(0,5);if(5==a._RandomorAimedArrow){b=0;for(var c=O.__cast(f.getActorGroup(0),xe).list;b<c.length;){var d=c[b]; +++b;null==d||d.dead||d.recycled||f.getLastCreatedActor().setX(d.getX()+8)}}else f.getLastCreatedActor().setX(f.randomInt(80,288))},null)},forwardMessage:function(a){},__class__:ss});var ts=function(a,b,c){w.call(this,b);this.nameMap.h.Actor="actor";this.nameMap.h.Direction="_Direction";this._Direction=0;this.nameMap.h["Reverse Starting Direction?"]="_ReverseStartingDirection";this._ReverseStartingDirection=!1;this.nameMap.h.Period="_Period";this._Period=0;this.nameMap.h.Speed="_Speed";this._Speed= +0;this.nameMap.h["Apply Smoothing?"]="_ApplySmoothing";this._ApplySmoothing=!1;this.nameMap.h["Elapsed Time"]="_ElapsedTime";this._ElapsedTime=0;this.nameMap.h["Current Direction"]="_CurrentDirection";this._CurrentDirection=0;this.nameMap.h["Slowdown Speed"]="_SlowdownSpeed";this._SlowdownSpeed=0;this.nameMap.h["Reverse Direction"]="_ReverseDirection";this._ReverseDirection=0;this.nameMap.h["Current Speed"]="_CurrentSpeed";this._CurrentSpeed=0;this.nameMap.h["Start Moving When On Top?"]="_StartMovingWhenOnTop"; +this._StartMovingWhenOnTop=!1;this.nameMap.h.Hold_Movement="_HoldMovement";this._HoldMovement=!1};k["scripts.Design_277_277_PlatformMotion"]=ts;ts.__name__="scripts.Design_277_277_PlatformMotion";ts.__super__=w;ts.prototype=u(w.prototype,{_Direction:null,_ReverseStartingDirection:null,_Period:null,_Speed:null,_ApplySmoothing:null,_ElapsedTime:null,_CurrentDirection:null,_SlowdownSpeed:null,_ReverseDirection:null,_CurrentSpeed:null,_StartMovingWhenOnTop:null,_HoldMovement:null,_event_ActorAny:function(a){this.wrapper.enabled&& +(1==this._StartMovingWhenOnTop&&a.thisFromTop&&(this._ReverseStartingDirection||(this._Speed=-this._Speed),this._CurrentSpeed=this._Speed,0==this._Direction?this.actor.setYVelocity(this._Speed):1==this._Direction?this.actor.setXVelocity(this._Speed):(2==this._Direction?this.actor.setXVelocity(this._Speed):this.actor.setXVelocity(-this._Speed),this.actor.setYVelocity(this._Speed)),this._StartMovingWhenOnTop=!1),a.otherActor.setFriction(1))},_event_Updated:function(a){this.wrapper.enabled&&0==this._StartMovingWhenOnTop&& +((this._ElapsedTime+=1)>=this._Period/f.getStepSize()?(this._ElapsedTime=0,this._CurrentSpeed=this._Speed=-this._Speed,0==this._Direction?this.actor.setYVelocity(this._Speed):1==this._Direction?this.actor.setXVelocity(this._Speed):(2==this._Direction?this.actor.setXVelocity(this._Speed):this.actor.setXVelocity(-this._Speed),this.actor.setYVelocity(this._Speed))):this._ApplySmoothing&&(this._ElapsedTime>=this._Period/f.getStepSize()-100?(this._SlowdownSpeed=Math.abs((this._ElapsedTime-this._Period/ +f.getStepSize())/100),this._CurrentSpeed=this._Speed*this._SlowdownSpeed):100>this._ElapsedTime&&(this._SlowdownSpeed=this._ElapsedTime/100,this._CurrentSpeed=this._Speed*this._SlowdownSpeed),0==this._Direction?this.actor.setYVelocity(this._CurrentSpeed):1==this._Direction?this.actor.setXVelocity(this._CurrentSpeed):(2==this._Direction?this.actor.setXVelocity(this._CurrentSpeed):this.actor.setXVelocity(-this._CurrentSpeed),this.actor.setYVelocity(this._CurrentSpeed))))},init:function(){this.actor.makeAlwaysSimulate(); +this._Period*=1E3;0==this._StartMovingWhenOnTop&&(this._ReverseStartingDirection||(this._Speed=-this._Speed),this._CurrentSpeed=this._Speed,0==this._Direction?this.actor.setYVelocity(this._Speed):1==this._Direction?this.actor.setXVelocity(this._Speed):(2==this._Direction?this.actor.setXVelocity(this._Speed):this.actor.setXVelocity(-this._Speed),this.actor.setYVelocity(this._Speed)));this.addListener(this.actor.whenCollided,q(this,this._event_ActorAny));this.addListener(this.actor.whenUpdated,q(this, +this._event_Updated))},forwardMessage:function(a){},__class__:ts});var us=function(a,b){f.call(this)};k["scripts.Design_278_278_ResultsScreenBehavior"]=us;us.__name__="scripts.Design_278_278_ResultsScreenBehavior";us.__super__=gb;us.prototype=u(gb.prototype,{_customEvent_confetti:function(){f.createRecycledActor(f.getActorType(612),f.randomInt(0,f.getSceneWidth()),-6,0);f.getLastCreatedActor().moveToBottom();f.runLater(70,function(a){f.shoutToScene("_customEvent_confetti")},null)},_customEvent_HSiOS:function(){}, +_customEvent_HSAndroid:function(){},init:function(){f.engine.moveCamera(f.getSceneWidth()/2,144);f.loopSoundOnChannel(f.getSound(626),0);f.simulateKeyRelease("Space");f.simulateKeyRelease("A");f.simulateKeyRelease("Down");f.simulateKeyRelease("Left");f.simulateKeyRelease("S");f.simulateKeyRelease("D");f.simulateKeyRelease("W");f.simulateKeyRelease("Right");f.simulateKeyRelease("Up");h.engine.getGameAttribute("Multiplayer On")?h.engine.getGameAttribute("Multiplayer On")&&1==h.engine.getGameAttribute("Multiplayer Mode")&& +(f.createRecycledActor(f.getActorType(479),250,160,0),f.getLastCreatedActor().setIgnoreGravity(!0),f.getLastCreatedActor().shout("_customEvent_RemoveControl"),f.getLastCreatedActor().shout("_customEvent_Unkillable"),f.getLastCreatedActor().setActorValue("Facing","Left"),f.createRecycledActor(f.getActorType(652),274,160,0),f.getLastCreatedActor().setIgnoreGravity(!0),f.getLastCreatedActor().shout("_customEvent_RemoveControl"),f.getLastCreatedActor().shout("_customEvent_Unkillable"),f.getLastCreatedActor().setActorValue("Facing", +"Left")):(f.createRecycledActor(f.getActorType(479),264,160,0),f.getLastCreatedActor().setIgnoreGravity(!0),f.getLastCreatedActor().shout("_customEvent_RemoveControl"),f.getLastCreatedActor().shout("_customEvent_Unkillable"),f.getLastCreatedActor().setActorValue("Facing","Left"));h.engine.getGameAttribute("Collected Skins List").length<h.engine.getGameAttribute("Skin Names List").length&&f.createRecycledActor(f.getActorType(720),-100,-100,0);if(!h.engine.getGameAttribute("Multiplayer On")){if(0== +h.engine.getGameAttribute("Best Carrots Singleplayer")&&0<h.engine.getGameAttribute("Carrot Counter")){var a=h.engine,b=h.engine.getGameAttribute("Time Counter");a.gameAttributes.h["Best Time Singleplayer"]=b;a=h.engine;b=h.engine.getGameAttribute("Carrot Counter");a.gameAttributes.h["Best Carrots Singleplayer"]=b;f.createRecycledActor(f.getActorType(597),242,91,0);f.shoutToScene("_customEvent_confetti");h.engine.getGameAttribute("Mute Sounds")||f.playSound(f.getSound(614))}else h.engine.getGameAttribute("Carrot Counter")> +h.engine.getGameAttribute("Best Carrots Singleplayer")&&(a=h.engine,b=h.engine.getGameAttribute("Time Counter"),a.gameAttributes.h["Best Time Singleplayer"]=b,a=h.engine,b=h.engine.getGameAttribute("Carrot Counter"),a.gameAttributes.h["Best Carrots Singleplayer"]=b,f.createRecycledActor(f.getActorType(597),242,91,0),f.shoutToScene("_customEvent_confetti"),h.engine.getGameAttribute("Mute Sounds")||f.playSound(f.getSound(614)));f.saveGame("mySave",function(a){})}h.engine.getGameAttribute("Multiplayer On")&& +1==h.engine.getGameAttribute("Multiplayer Mode")&&(0==h.engine.getGameAttribute("Best Carrots Multiplayer")&&0<h.engine.getGameAttribute("Carrot Counter")?(a=h.engine,b=h.engine.getGameAttribute("Time Counter"),a.gameAttributes.h["Best Time Multiplayer"]=b,a=h.engine,b=h.engine.getGameAttribute("Carrot Counter"),a.gameAttributes.h["Best Carrots Multiplayer"]=b,f.createRecycledActor(f.getActorType(597),242,91,0),f.shoutToScene("_customEvent_confetti"),h.engine.getGameAttribute("Mute Sounds")||f.playSound(f.getSound(614))): +h.engine.getGameAttribute("Carrot Counter")>h.engine.getGameAttribute("Best Carrots Multiplayer")&&(a=h.engine,b=h.engine.getGameAttribute("Time Counter"),a.gameAttributes.h["Best Time Multiplayer"]=b,a=h.engine,b=h.engine.getGameAttribute("Carrot Counter"),a.gameAttributes.h["Best Carrots Multiplayer"]=b,f.createRecycledActor(f.getActorType(597),242,91,0),f.shoutToScene("_customEvent_confetti"),h.engine.getGameAttribute("Mute Sounds")||f.playSound(f.getSound(614))),f.saveGame("mySave",function(a){})); +h.engine.getGameAttribute("Multiplayer On")&&2==h.engine.getGameAttribute("Multiplayer Mode")&&(h.engine.getGameAttribute("P1 Versus Score")>h.engine.getGameAttribute("P2 Versus Score")?(f.shoutToScene("_customEvent_confetti"),h.engine.getGameAttribute("Mute Sounds")||f.playSound(f.getSound(614))):h.engine.getGameAttribute("P2 Versus Score")>h.engine.getGameAttribute("P1 Versus Score")&&(f.shoutToScene("_customEvent_confetti"),h.engine.getGameAttribute("Mute Sounds")||f.playSound(f.getSound(614)))); +f.runLater(1E3,function(a){h.engine.getGameAttribute("Collected Skins List").length<h.engine.getGameAttribute("Skin Names List").length&&100>h.engine.getGameAttribute("Currency Carrots")&&(h.engine.getGameAttribute("Multiplayer On")?h.engine.getGameAttribute("Multiplayer On")&&1==h.engine.getGameAttribute("Multiplayer Mode")?14<h.engine.getGameAttribute("Carrot Counter")&&f.createRecycledActor(f.getActorType(829),-400,-400,0):h.engine.getGameAttribute("Multiplayer On")&&2==h.engine.getGameAttribute("Multiplayer Mode")&& +14<h.engine.getGameAttribute("P1 Versus Score")+h.engine.getGameAttribute("P2 Versus Score")&&f.createRecycledActor(f.getActorType(829),-400,-400,0):14<h.engine.getGameAttribute("Carrot Counter")&&f.createRecycledActor(f.getActorType(829),-400,-400,0))},null)},forwardMessage:function(a){},__class__:us});var vs=function(a,b){f.call(this);this.nameMap.h["Carrot Positions List"]="_CarrotPositionsList";this._CarrotPositionsList="112,80 184,80 256,80 80,112 144,112 224,112 288,112 112,144 184,144 256,144 80,176 144,176 224,176 288,176".split(" "); +this.nameMap.h.A="_A";this._A=0;this.nameMap.h.B="_BVar";this._BVar=0;this.nameMap.h["Position Index"]="_PositionIndex";this._PositionIndex=0;this.nameMap.h["Last Position Index"]="_LastPositionIndex";this._LastPositionIndex=0;this.nameMap.h["Golden Carrot Number"]="_GoldenCarrotNumber";this._GoldenCarrotNumber=0};k["scripts.Design_280_280_CarrotSpawner"]=vs;vs.__name__="scripts.Design_280_280_CarrotSpawner";vs.__super__=gb;vs.prototype=u(gb.prototype,{_CarrotPositionsList:null,_A:null,_BVar:null, +_PositionIndex:null,_LastPositionIndex:null,_GoldenCarrotNumber:null,_customEvent_SpawnCarrot:function(){var a=this;f.runLater(0,function(b){for(;a._PositionIndex==a._LastPositionIndex;)a._PositionIndex=f.randomInt(0,a._CarrotPositionsList.length-1);f.createRecycledActor(f.getActorType(570),f.asNumber((""+n.string(a._CarrotPositionsList[a._PositionIndex|0])).split(",")[0]),f.asNumber((""+n.string(a._CarrotPositionsList[a._PositionIndex|0])).split(",")[1]),0);a._LastPositionIndex=a._PositionIndex; +S.contains(a._CarrotPositionsList,"184,176")||a._CarrotPositionsList.push("184,176")},null)},init:function(){var a=this;f.runLater(2E3,function(b){a._customEvent_SpawnCarrot()},null);f.runPeriodically(15E3,function(a){f.createRecycledActor(f.getActorType(603),f.randomInt(80,288),f.randomInt(64,176),0)},null)},forwardMessage:function(a){},__class__:vs});var ws=function(a,b,c){w.call(this,b);this.nameMap.h.Actor="actor"};k["scripts.Design_283_283_BestRunBadgeBehavior"]=ws;ws.__name__="scripts.Design_283_283_BestRunBadgeBehavior"; +ws.__super__=w;ws.prototype=u(w.prototype,{_event_DrawScoreCopy:function(a,b,c){this.wrapper.enabled&&(a.setFont(f.getFont(579)),h.engine.getGameAttribute("Multiplayer On")&&1==h.engine.getGameAttribute("Multiplayer Mode")?(5999<h.engine.getGameAttribute("Best Time Multiplayer")?a.drawString(""+nf._customBlock_FormatTimer(h.engine.getGameAttribute("Best Time Multiplayer"),":",":"),47,20):599<h.engine.getGameAttribute("Best Time Multiplayer")?a.drawString(""+nf._customBlock_FormatTimer(h.engine.getGameAttribute("Best Time Multiplayer"), +":",":"),56,20):a.drawString(""+nf._customBlock_FormatTimer(h.engine.getGameAttribute("Best Time Multiplayer"),":",":"),64,20),99<h.engine.getGameAttribute("Best Carrots Multiplayer")?a.drawString(""+n.string(h.engine.getGameAttribute("Best Carrots Multiplayer")),92,2):9<h.engine.getGameAttribute("Best Carrots Multiplayer")?a.drawString(""+n.string(h.engine.getGameAttribute("Best Carrots Multiplayer")),101,2):a.drawString(""+n.string(h.engine.getGameAttribute("Best Carrots Multiplayer")),110,2)): +h.engine.getGameAttribute("Multiplayer On")&&2==h.engine.getGameAttribute("Multiplayer Mode")?(this.actor.setAnimation("1"),h.engine.getGameAttribute("P1 Versus Score")>h.engine.getGameAttribute("P2 Versus Score")?99<h.engine.getGameAttribute("P1 Versus Score")?a.drawString(""+n.string(h.engine.getGameAttribute("P1 Versus Score")),92,2):9<h.engine.getGameAttribute("P1 Versus Score")?a.drawString(""+n.string(h.engine.getGameAttribute("P1 Versus Score")),101,2):a.drawString(""+n.string(h.engine.getGameAttribute("P1 Versus Score")), +110,2):h.engine.getGameAttribute("P2 Versus Score")>h.engine.getGameAttribute("P1 Versus Score")?99<h.engine.getGameAttribute("P2 Versus Score")?a.drawString(""+n.string(h.engine.getGameAttribute("P2 Versus Score")),92,2):9<h.engine.getGameAttribute("P2 Versus Score")?a.drawString(""+n.string(h.engine.getGameAttribute("P2 Versus Score")),101,2):a.drawString(""+n.string(h.engine.getGameAttribute("P2 Versus Score")),110,2):(h.engine.getGameAttribute("P1 Versus Score"),h.engine.getGameAttribute("P2 Versus Score")), +a.drawString("WIN",93,20)):(5999<h.engine.getGameAttribute("Best Time Singleplayer")?a.drawString(""+nf._customBlock_FormatTimer(h.engine.getGameAttribute("Best Time Singleplayer"),":",":"),47,20):599<h.engine.getGameAttribute("Best Time Singleplayer")?a.drawString(""+nf._customBlock_FormatTimer(h.engine.getGameAttribute("Best Time Singleplayer"),":",":"),56,20):a.drawString(""+nf._customBlock_FormatTimer(h.engine.getGameAttribute("Best Time Singleplayer"),":",":"),64,20),99<h.engine.getGameAttribute("Best Carrots Singleplayer")? +a.drawString(""+n.string(h.engine.getGameAttribute("Best Carrots Singleplayer")),92,2):9<h.engine.getGameAttribute("Best Carrots Singleplayer")?a.drawString(""+n.string(h.engine.getGameAttribute("Best Carrots Singleplayer")),101,2):a.drawString(""+n.string(h.engine.getGameAttribute("Best Carrots Singleplayer")),110,2)))},init:function(){h.engine.getGameAttribute("Multiplayer On")&&2==h.engine.getGameAttribute("Multiplayer Mode")&&(this.actor.setAnimation("0"),h.engine.getGameAttribute("P1 Versus Score")> +h.engine.getGameAttribute("P2 Versus Score")?(f.createRecycledActor(f.getActorType(479),this.actor.getX()+6,this.actor.getY()-2,0),f.getLastCreatedActor().disableBehavior("Player Control"),f.getLastCreatedActor().setIgnoreGravity(!0),f.getLastCreatedActor().setXVelocity(0),f.getLastCreatedActor().setYVelocity(0)):h.engine.getGameAttribute("P2 Versus Score")>h.engine.getGameAttribute("P1 Versus Score")?(f.createRecycledActor(f.getActorType(652),this.actor.getX()+6,this.actor.getY()-2,0),f.getLastCreatedActor().disableBehavior("Player Control"), +f.getLastCreatedActor().setIgnoreGravity(!0),f.getLastCreatedActor().setXVelocity(0),f.getLastCreatedActor().setYVelocity(0)):h.engine.getGameAttribute("P1 Versus Score")==h.engine.getGameAttribute("P2 Versus Score")&&f.recycleActor(this.actor));this.addListener(this.actor.whenDrawing,q(this,this._event_DrawScoreCopy))},forwardMessage:function(a){},__class__:ws});var nf=function(a,b){f.call(this)};k["scripts.Design_284_284_TimeTrialCounterBehavior"]=nf;nf.__name__="scripts.Design_284_284_TimeTrialCounterBehavior"; +nf._customBlock_FormatTimer=function(a,b,c){return""+Math.floor(a/60)+(b+(""+Math.floor(a%60/10)))+(""+(Math.floor(a%60)-10*Math.floor(a%60/10)))+(c+(""+Math.floor(10*(a-Math.floor(a)))+(""+Math.floor(100*(a-Math.floor(a))-10*Math.floor(10*(a-Math.floor(a)))))))};nf.__super__=gb;nf.prototype=u(gb.prototype,{init:function(){},forwardMessage:function(a){},__class__:nf});var xs=function(a,b,c){w.call(this,b);this.nameMap.h.Actor="actor"};k["scripts.Design_285_285_ThisRunBadgeBehavior"]=xs;xs.__name__= +"scripts.Design_285_285_ThisRunBadgeBehavior";xs.__super__=w;xs.prototype=u(w.prototype,{_event_DrawingCopy:function(a,b,c){this.wrapper.enabled&&(a.setFont(f.getFont(579)),h.engine.getGameAttribute("Multiplayer On")&&2==h.engine.getGameAttribute("Multiplayer Mode")?h.engine.getGameAttribute("P2 Versus Score")>h.engine.getGameAttribute("P1 Versus Score")?(99<h.engine.getGameAttribute("P1 Versus Score")?a.drawString(""+n.string(h.engine.getGameAttribute("P1 Versus Score")),92,2):9<h.engine.getGameAttribute("P1 Versus Score")? +a.drawString(""+n.string(h.engine.getGameAttribute("P1 Versus Score")),101,2):a.drawString(""+n.string(h.engine.getGameAttribute("P1 Versus Score")),110,2),a.drawString("LOSE",85,20)):h.engine.getGameAttribute("P1 Versus Score")>h.engine.getGameAttribute("P2 Versus Score")?(99<h.engine.getGameAttribute("P2 Versus Score")?a.drawString(""+n.string(h.engine.getGameAttribute("P2 Versus Score")),92,2):9<h.engine.getGameAttribute("P2 Versus Score")?a.drawString(""+n.string(h.engine.getGameAttribute("P2 Versus Score")), +101,2):a.drawString(""+n.string(h.engine.getGameAttribute("P2 Versus Score")),110,2),a.drawString("LOSE",85,20)):h.engine.getGameAttribute("P1 Versus Score")==h.engine.getGameAttribute("P2 Versus Score")&&(99<h.engine.getGameAttribute("P1 Versus Score")?a.drawString(""+n.string(h.engine.getGameAttribute("P1 Versus Score")),92,2):9<h.engine.getGameAttribute("P1 Versus Score")?a.drawString(""+n.string(h.engine.getGameAttribute("P1 Versus Score")),101,2):a.drawString(""+n.string(h.engine.getGameAttribute("P1 Versus Score")), +110,2),a.drawString("TIE",95,20)):(5999<h.engine.getGameAttribute("Time Counter")?a.drawString(""+nf._customBlock_FormatTimer(h.engine.getGameAttribute("Time Counter"),":",":"),47,20):599<h.engine.getGameAttribute("Time Counter")?a.drawString(""+nf._customBlock_FormatTimer(h.engine.getGameAttribute("Time Counter"),":",":"),56,20):a.drawString(""+nf._customBlock_FormatTimer(h.engine.getGameAttribute("Time Counter"),":",":"),64,20),99<h.engine.getGameAttribute("Carrot Counter")?a.drawString(""+n.string(h.engine.getGameAttribute("Carrot Counter")), +92,2):9<h.engine.getGameAttribute("Carrot Counter")?a.drawString(""+n.string(h.engine.getGameAttribute("Carrot Counter")),101,2):a.drawString(""+n.string(h.engine.getGameAttribute("Carrot Counter")),110,2)))},init:function(){h.engine.getGameAttribute("Multiplayer On")&&2==h.engine.getGameAttribute("Multiplayer Mode")&&(this.actor.setAnimation("1"),h.engine.getGameAttribute("P2 Versus Score")>h.engine.getGameAttribute("P1 Versus Score")?(f.createRecycledActor(f.getActorType(479),this.actor.getX()+ +6,this.actor.getY()-2,0),f.getLastCreatedActor().disableBehavior("Player Control"),f.getLastCreatedActor().setIgnoreGravity(!0),f.getLastCreatedActor().setXVelocity(0),f.getLastCreatedActor().setYVelocity(0)):h.engine.getGameAttribute("P1 Versus Score")>h.engine.getGameAttribute("P2 Versus Score")?(f.createRecycledActor(f.getActorType(652),this.actor.getX()+6,this.actor.getY()-2,0),f.getLastCreatedActor().disableBehavior("Player Control"),f.getLastCreatedActor().setIgnoreGravity(!0),f.getLastCreatedActor().setXVelocity(0), +f.getLastCreatedActor().setYVelocity(0)):h.engine.getGameAttribute("P1 Versus Score")==h.engine.getGameAttribute("P2 Versus Score")&&(this.actor.setAnimation("2"),this.actor.setY(this.actor.getY()-24),f.createRecycledActor(f.getActorType(652),this.actor.getX()+26,this.actor.getY()-2,0),f.getLastCreatedActor().disableBehavior("Player Control"),f.getLastCreatedActor().setIgnoreGravity(!0),f.getLastCreatedActor().setXVelocity(0),f.getLastCreatedActor().setYVelocity(0),f.createRecycledActor(f.getActorType(479), +this.actor.getX()+4,this.actor.getY()-2,0),f.getLastCreatedActor().disableBehavior("Player Control"),f.getLastCreatedActor().setIgnoreGravity(!0),f.getLastCreatedActor().setXVelocity(0),f.getLastCreatedActor().setYVelocity(0)));this.addListener(this.actor.whenDrawing,q(this,this._event_DrawingCopy))},forwardMessage:function(a){},__class__:xs});var ys=function(a,b){f.call(this);this.nameMap.h["Random or Aimed Arrow"]="_RandomorAimedArrow";this._RandomorAimedArrow=0;this.nameMap.h["Traps List 2"]="_TrapsList2"; +this._TrapsList2="spikeball1 CannonL1 sawblade1 CannonR3 chainball3 CannonL2 spikeball3 CannonR1 chainball2 CannonL3 sawblade2 CannonR2 chainball1 spikeball3".split(" ");this.nameMap.h["Trap Spawn Number"]="_TrapSpawnNumber";this._TrapSpawnNumber=0;this.nameMap.h["Traps List 1"]="_TrapsList1";this._TrapsList1="CannonR3 chainball2 spikeball3 CannonL2 chainball3 CannonR1 sawblade2 chainball1 CannonL3 spikeball3 CannonL1 sawblade1 spikeball1 CannonR2".split(" ");this.nameMap.h["Traps List 3"]="_TrapsList3"; +this._TrapsList3="sawblade1 CannonL2 spikeball1 CannonR3 chainball2 CannonL1 spikeball3 CannonR2 chainball3 CannonR1 chainball1 CannonL3 sawblade2 spikeball3".split(" ");this.nameMap.h["Traps List 4"]="_TrapsList4";this._TrapsList4="spikeball3 sawblade2 CannonL3 chainball1 CannonR1 chainball3 CannonR2 spikeball3 CannonL2 chainball2 CannonR3 spikeball1 CannonL1 sawblade1".split(" ");this.nameMap.h["Traps List 5"]="_TrapsList5";this._TrapsList5="chainball1 CannonR1 sawblade1 CannonL3 spikeball3 CannonR2 chainball2 CannonL1 spikeball1 CannonL2 sawblade2 chainball3 CannonR3 spikeball2".split(" "); +this.nameMap.h["List Number"]="_ListNumber";this._ListNumber=0;this.nameMap.h["Traps List 6"]="_TrapsList6";this._TrapsList6="CannonR2 spikeball1 sawblade1 CannonL1 spikeball3 CannonL3 chainball1 sawblade2 CannonR1 chainball3 CannonL2 spikeball3 chainball2 CannonR3".split(" ");this.nameMap.h["Traps List 7"]="_TrapsList7";this._TrapsList7="spikeball3 chainball1 CannonR2 sawblade2 CannonL3 chainball2 CannonR1 spikeball3 CannonL2 chainball3 CannonR3 sawblade1 CannonL1 spikeball1".split(" ");this.nameMap.h["Traps List 8"]= +"_TrapsList8";this._TrapsList8="sawblade2 CannonL1 chainball2 CannonR2 sawblade1 CannonL3 spikeball1 CannonR3 chainball3 CannonR1 spikeball3 chainball1 CannonL2 spikeball2".split(" ");this.nameMap.h["Spawn Trap Again Time"]="_SpawnTrapAgainTime";this._SpawnTrapAgainTime=15;this.nameMap.h["Traps List 9"]="_TrapsList9";this._TrapsList9="spikeball1 CannonL3 sawblade1 CannonR2 chainball2 CannonL1 sawblade2 spikeball2 CannonR3 chainball1 spikeball3 CannonR1 chainball3 CannonL2".split(" ");this.nameMap.h["Traps List 10"]= +"_TrapsList10";this._TrapsList10="sawblade2 CannonR1 chainball1 CannonR3 sawblade1 spikeball3 CannonL2 chainball3 spikeball1 CannonL1 chainball2 CannonL3 spikeball2 CannonR2".split(" ")};k["scripts.Design_302_302_TrapSpawner2"]=ys;ys.__name__="scripts.Design_302_302_TrapSpawner2";ys.__super__=gb;ys.prototype=u(gb.prototype,{_RandomorAimedArrow:null,_TrapsList2:null,_TrapSpawnNumber:null,_TrapsList1:null,_TrapsList3:null,_TrapsList4:null,_TrapsList5:null,_ListNumber:null,_TrapsList6:null,_TrapsList7:null, +_TrapsList8:null,_SpawnTrapAgainTime:null,_TrapsList9:null,_TrapsList10:null,_customEvent_SpawnTrap2:function(){0==this._ListNumber?(f.sayToScene("Trap Spawner 2","_customEvent_"+n.string(this._TrapsList1[this._TrapSpawnNumber|0])),this._TrapSpawnNumber+=1,f.runLater(1E3*h.engine.getGameAttribute("Trap Spawning Speed"),function(a){f.sayToScene("Trap Spawner 2","_customEvent_SpawnTrap2")},null)):1==this._ListNumber?(f.sayToScene("Trap Spawner 2","_customEvent_"+n.string(this._TrapsList2[this._TrapSpawnNumber| +0])),this._TrapSpawnNumber+=1,f.runLater(1E3*h.engine.getGameAttribute("Trap Spawning Speed"),function(a){f.sayToScene("Trap Spawner 2","_customEvent_SpawnTrap2")},null)):2==this._ListNumber?(f.sayToScene("Trap Spawner 2","_customEvent_"+n.string(this._TrapsList3[this._TrapSpawnNumber|0])),this._TrapSpawnNumber+=1,f.runLater(1E3*h.engine.getGameAttribute("Trap Spawning Speed"),function(a){f.sayToScene("Trap Spawner 2","_customEvent_SpawnTrap2")},null)):3==this._ListNumber?(f.sayToScene("Trap Spawner 2", +"_customEvent_"+n.string(this._TrapsList4[this._TrapSpawnNumber|0])),this._TrapSpawnNumber+=1,f.runLater(1E3*h.engine.getGameAttribute("Trap Spawning Speed"),function(a){f.sayToScene("Trap Spawner 2","_customEvent_SpawnTrap2")},null)):4==this._ListNumber?(f.sayToScene("Trap Spawner 2","_customEvent_"+n.string(this._TrapsList5[this._TrapSpawnNumber|0])),this._TrapSpawnNumber+=1,f.runLater(1E3*h.engine.getGameAttribute("Trap Spawning Speed"),function(a){f.sayToScene("Trap Spawner 2","_customEvent_SpawnTrap2")}, +null)):5==this._ListNumber?(f.sayToScene("Trap Spawner 2","_customEvent_"+n.string(this._TrapsList6[this._TrapSpawnNumber|0])),this._TrapSpawnNumber+=1,f.runLater(1E3*h.engine.getGameAttribute("Trap Spawning Speed"),function(a){f.sayToScene("Trap Spawner 2","_customEvent_SpawnTrap2")},null)):6==this._ListNumber?(f.sayToScene("Trap Spawner 2","_customEvent_"+n.string(this._TrapsList7[this._TrapSpawnNumber|0])),this._TrapSpawnNumber+=1,f.runLater(1E3*h.engine.getGameAttribute("Trap Spawning Speed"), +function(a){f.sayToScene("Trap Spawner 2","_customEvent_SpawnTrap2")},null)):7==this._ListNumber?(f.sayToScene("Trap Spawner 2","_customEvent_"+n.string(this._TrapsList8[this._TrapSpawnNumber|0])),this._TrapSpawnNumber+=1,f.runLater(1E3*h.engine.getGameAttribute("Trap Spawning Speed"),function(a){f.sayToScene("Trap Spawner 2","_customEvent_SpawnTrap2")},null)):8==this._ListNumber?(f.sayToScene("Trap Spawner 2","_customEvent_"+n.string(this._TrapsList9[this._TrapSpawnNumber|0])),this._TrapSpawnNumber+= +1,f.runLater(1E3*h.engine.getGameAttribute("Trap Spawning Speed"),function(a){f.sayToScene("Trap Spawner 2","_customEvent_SpawnTrap2")},null)):9==this._ListNumber&&(f.sayToScene("Trap Spawner 2","_customEvent_"+n.string(this._TrapsList10[this._TrapSpawnNumber|0])),this._TrapSpawnNumber+=1,f.runLater(1E3*h.engine.getGameAttribute("Trap Spawning Speed"),function(a){f.sayToScene("Trap Spawner 2","_customEvent_SpawnTrap2")},null))},_customEvent_spikeball1:function(){f.createRecycledActor(f.getActorType(499), +-300,64,0);f.getLastCreatedActor().setX(112)},_customEvent_spikeball2:function(){f.createRecycledActor(f.getActorType(499),-300,64,0);f.getLastCreatedActor().setX(184)},_customEvent_spikeball3:function(){f.createRecycledActor(f.getActorType(499),-300,64,0);f.getLastCreatedActor().setX(256)},_customEvent_CannonL1:function(){f.createRecycledActor(f.getActorType(558),64,152,0)},_customEvent_CannonL2:function(){f.createRecycledActor(f.getActorType(558),64,120,0)},_customEvent_CannonL3:function(){f.createRecycledActor(f.getActorType(558), +64,88,0)},_customEvent_CannonR1:function(){f.createRecycledActor(f.getActorType(497),288,152,0)},_customEvent_CannonR2:function(){f.createRecycledActor(f.getActorType(497),288,120,0)},_customEvent_CannonR3:function(){f.createRecycledActor(f.getActorType(497),288,88,0)},_customEvent_chainball1:function(){f.createRecycledActor(f.getActorType(551),179,48,0)},_customEvent_chainball2:function(){f.createRecycledActor(f.getActorType(551),91,48,0)},_customEvent_chainball3:function(){f.createRecycledActor(f.getActorType(551), +267,48,0)},_customEvent_sawblade1:function(){f.createRecycledActor(f.getActorType(488),80,176,2)},_customEvent_sawblade2:function(){f.createRecycledActor(f.getActorType(565),276,176,2)},init:function(){var a=this;this._ListNumber=f.randomInt(0,9);f.runLater(5E3,function(a){f.sayToScene("Trap Spawner 2","_customEvent_SpawnTrap2")},null);f.runPeriodically(2E3,function(b){f.createRecycledActor(f.getActorType(490),-100,-100,0);a._RandomorAimedArrow=f.randomInt(0,5);if(5==a._RandomorAimedArrow){b=0;for(var c= +O.__cast(f.getActorGroup(0),xe).list;b<c.length;){var d=c[b];++b;null==d||d.dead||d.recycled||f.getLastCreatedActor().setX(d.getX()+8)}}else f.getLastCreatedActor().setX(f.randomInt(80,288))},null)},forwardMessage:function(a){},__class__:ys});var zs=function(a,b){f.call(this);this.nameMap.h["Backgrounds List"]="_BackgroundsList";this.nameMap.h["Debug Font"]="_DebugFont";this.nameMap.h["Debug Position"]="_DebugPosition";this._DebugPosition="5,5";this.nameMap.h.Debug="_Debug";this._Debug=!1;this.nameMap.h["Debug Text"]= +"_DebugText";this._DebugText="";this.nameMap.h["Debug Colors"]="_DebugColors";this._DebugColors="255,0,0,25 0,255,0,25 0,0,255,25 255,165,0,25 255,255,0,25 238,130,238,25 255,0,255,25 0,255,255,25 255,255,255,25 0,0,0,25".split(" ");this.nameMap.h["Behavior Split Values"]="_BehaviorSplitValues"};k["scripts.Design_309_309_SwitchBackgrounds"]=zs;zs.__name__="scripts.Design_309_309_SwitchBackgrounds";zs.__super__=gb;zs.prototype=u(gb.prototype,{_BackgroundsList:null,_DebugFont:null,_DebugPosition:null, +_Debug:null,_DebugText:null,_DebugColors:null,_BehaviorSplitValues:null,_event_Updating:function(a){if(this.wrapper.enabled)for(var b=0,c=O.__cast(this._BackgroundsList,Array);b<c.length;)if(a=c[b],++b,f.getScreenXCenter()>=f.asNumber(this._BehaviorSplitValues.h["Camera"+n.string(a)][0])&&f.getScreenXCenter()<=f.asNumber(this._BehaviorSplitValues.h["Camera"+n.string(a)][1])&&f.getScreenYCenter()>=f.asNumber(this._BehaviorSplitValues.h["Camera"+n.string(a)][2])&&f.getScreenYCenter()<=f.asNumber(this._BehaviorSplitValues.h["Camera"+ +n.string(a)][3])){this._DebugText=""+n.string(a);b=0;for(a=O.__cast(this._BehaviorSplitValues.h["BGSettings"+n.string(a)],Array);b<a.length;)c=a[b],++b,this._BehaviorSplitValues.h.CurrentLayer=(""+n.string(c)).split(","),f.fadeTileLayerTo(f.engine.getLayerById(f.asNumber(this._BehaviorSplitValues.h.CurrentLayer[0])|0),f.asNumber(this._BehaviorSplitValues.h.CurrentLayer[1])/100,f.asNumber(this._BehaviorSplitValues.h.CurrentLayer[2]));break}},_event_Drawing:function(a,b,c){if(this.wrapper.enabled&& +this._Debug){a.translateToScreen();a.setFont(this._DebugFont);f.setDrawingLayerToSceneLayer();b=0;for(c=O.__cast(this._BackgroundsList,Array);b<c.length;){var d=c[b];++b;a.alpha=f.asNumber(this._BehaviorSplitValues.h["DebugColor"+n.string(d)][3])/100;var e=f.asNumber(this._BehaviorSplitValues.h["DebugColor"+n.string(d)][0])|0,g=f.asNumber(this._BehaviorSplitValues.h["DebugColor"+n.string(d)][1])|0,k=f.asNumber(this._BehaviorSplitValues.h["DebugColor"+n.string(d)][2])|0;null==k&&(k=0);null==g&&(g= +0);null==e&&(e=0);e=e<<16|g<<8|k;a.fillColor=0>e?e+16777216:e;e=f.asNumber(this._BehaviorSplitValues.h["DebugColor"+n.string(d)][0])|0;g=f.asNumber(this._BehaviorSplitValues.h["DebugColor"+n.string(d)][1])|0;k=f.asNumber(this._BehaviorSplitValues.h["DebugColor"+n.string(d)][2])|0;null==k&&(k=0);null==g&&(g=0);null==e&&(e=0);a.strokeColor=e<<16|g<<8|k;a.fillRect(f.asNumber(this._BehaviorSplitValues.h["Camera"+n.string(d)][0])-f.getScreenX(),f.asNumber(this._BehaviorSplitValues.h["Camera"+n.string(d)][2])- +f.getScreenY(),f.asNumber(this._BehaviorSplitValues.h["Camera"+n.string(d)][1])-f.asNumber(this._BehaviorSplitValues.h["Camera"+n.string(d)][0]),f.asNumber(this._BehaviorSplitValues.h["Camera"+n.string(d)][3])-f.asNumber(this._BehaviorSplitValues.h["Camera"+n.string(d)][2]));a.strokeSize=1;a.alpha=1;a.drawRect(f.asNumber(this._BehaviorSplitValues.h["Camera"+n.string(d)][0])-f.getScreenX(),f.asNumber(this._BehaviorSplitValues.h["Camera"+n.string(d)][2])-f.getScreenY(),f.asNumber(this._BehaviorSplitValues.h["Camera"+ +n.string(d)][1])-f.asNumber(this._BehaviorSplitValues.h["Camera"+n.string(d)][0]),f.asNumber(this._BehaviorSplitValues.h["Camera"+n.string(d)][3])-f.asNumber(this._BehaviorSplitValues.h["Camera"+n.string(d)][2]))}a.alpha=1;a.drawString("Camera X: "+Math.round(f.getScreenXCenter()),f.asNumber(this._BehaviorSplitValues.h.DebugPosition[0]),f.asNumber(this._BehaviorSplitValues.h.DebugPosition[1]));a.drawString("Camera Y: "+Math.round(f.getScreenYCenter()),f.asNumber(this._BehaviorSplitValues.h.DebugPosition[0]), +f.asNumber(this._BehaviorSplitValues.h.DebugPosition[1])+a.font.getHeight()/h.SCALE);b=0;for(c=this._BehaviorSplitValues.h["BGSettings"+this._DebugText].length;b<c;)d=b++,this._BehaviorSplitValues.h.DebugText=(""+n.string(this._BehaviorSplitValues.h["BGSettings"+this._DebugText][d])).split(","),a.drawString("Layer ID: "+n.string(this._BehaviorSplitValues.h.DebugText[0])+(" Opacity: "+n.string(this._BehaviorSplitValues.h.DebugText[1])),f.asNumber(this._BehaviorSplitValues.h.DebugPosition[0]),f.asNumber(this._BehaviorSplitValues.h.DebugPosition[1])+ +(a.font.getHeight()/h.SCALE*2+a.font.getHeight()/h.SCALE*d))}},init:function(){this._BehaviorSplitValues=new V;this._BehaviorSplitValues.h.DebugPosition=this._DebugPosition.split(",");for(var a=0,b=O.__cast(this._BackgroundsList,Array);a<b.length;){var c=b[a];++a;this._BehaviorSplitValues.h["DebugColor"+n.string(c)]=(""+n.string(this._DebugColors[this._BackgroundsList.indexOf(c)])).split(",");this._BehaviorSplitValues.h["Camera"+n.string(c)]=(""+(""+n.string(c)).split("|")[0]).split(",");this._BehaviorSplitValues.h["BGSettings"+ +n.string(c)]=(""+(""+n.string(c)).split("|")[1]).split("/")}this.addListener(f.engine.whenUpdated,q(this,this._event_Updating));this.addListener(f.engine.whenDrawing,q(this,this._event_Drawing))},forwardMessage:function(a){},__class__:zs});var As=function(a,b){f.call(this);this.nameMap.h["Camera X"]="_CameraX";this._CameraX=0;this.nameMap.h["Camera Y"]="_CameraY";this._CameraY=0;this.nameMap.h.Moving="_Moving";this._Moving=!1;this.nameMap.h["Get Point"]="_GetPoint";this._GetPoint=!1;this.nameMap.h["Wait Ticks"]= +"_WaitTicks";this._WaitTicks=0;this.nameMap.h["Auto-Scroll Points"]="_AutoScrollPoints";a=new V;a.h.PathA="166,276,None,1,2|490,270,Strong In/Out,0.5,1|490,96,Bounce Out,2,4|Loop";this._AutoScrollPoints=a;this.nameMap.h["Auto-Scroll Mode"]="_AutoScrollMode";this._AutoScrollMode="";this.nameMap.h["Current Point"]="_CurrentPoint";this._CurrentPoint=0;this.nameMap.h["Interrupt Auto Scroll"]="_InterruptAutoScroll";this._InterruptAutoScroll=!1;this.nameMap.h["Target X"]="_TargetX";this._TargetX=0;this.nameMap.h["Movement Progress"]= +"_MovementProgress";this._MovementProgress=0;this.nameMap.h["Target Y"]="_TargetY";this._TargetY=0;this.nameMap.h["Movement Ticks"]="_MovementTicks";this._MovementTicks=0;this.nameMap.h["Behavior Split Values"]="_BehaviorSplitValues"};k["scripts.Design_310_310_SlideCamera"]=As;As.__name__="scripts.Design_310_310_SlideCamera";As.__super__=gb;As.prototype=u(gb.prototype,{_CameraX:null,_CameraY:null,_Moving:null,_GetPoint:null,_WaitTicks:null,_AutoScrollPoints:null,_AutoScrollMode:null,_CurrentPoint:null, +_InterruptAutoScroll:null,_TargetX:null,_MovementProgress:null,_TargetY:null,_MovementTicks:null,_BehaviorSplitValues:null,_event_Updated:function(a){this.wrapper.enabled&&(!this._InterruptAutoScroll&&""!=this._AutoScrollMode&&0!=S.mapCount(this._AutoScrollPoints)&&this._CurrentPoint<this._BehaviorSplitValues.h[this._AutoScrollMode].length&&(this._GetPoint||("Loop"==this._BehaviorSplitValues.h[this._AutoScrollMode][this._CurrentPoint|0]?this._CurrentPoint=0:(this._GetPoint=!0,this._BehaviorSplitValues.h.CurrentPoint= +(""+(""+n.string(this._AutoScrollPoints.h[this._AutoScrollMode])).split("|")[this._CurrentPoint|0]).split(","),this._customBlock_SlideCamera(f.asNumber(this._BehaviorSplitValues.h.CurrentPoint[0]),f.asNumber(this._BehaviorSplitValues.h.CurrentPoint[1]),f.asNumber(this._BehaviorSplitValues.h.CurrentPoint[3]),""+f.asNumber(this._BehaviorSplitValues.h.CurrentPoint[2])),this._WaitTicks=f.asNumber(this._BehaviorSplitValues.h.CurrentPoint[3])+f.asNumber(this._BehaviorSplitValues.h.CurrentPoint[4]))),0< +this._WaitTicks&&(this._WaitTicks-=.01,0>=this._WaitTicks&&(this._WaitTicks=0,this._GetPoint=!1,this._CurrentPoint+=1,this._CurrentPoint>=this._BehaviorSplitValues.h[this._AutoScrollMode].length&&(this._CurrentPoint=0,this._AutoScrollMode="")))),this._Moving&&(f.engine.moveCamera(this._CameraX+(this._TargetX-this._CameraX)*this._MovementProgress/100,this._CameraY+(this._TargetY-this._CameraY)*this._MovementProgress/100),this._MovementTicks-=.01,0>=this._MovementTicks&&(this._MovementTicks=0,this._Moving= +!1)))},_customEvent_StopSlide:function(){this._Moving=!1;this.abortTweenNumber("_MovementProgress")},_customEvent_PauseAutoScroll:function(){this._Moving=!1;this._InterruptAutoScroll=!0;this._GetPoint=!1},_customEvent_ResumeAutoScroll:function(){this._InterruptAutoScroll=!1},_customBlock_SlideCamera:function(a,b,c,d){var e=this;this._Moving=!0;this._CameraX=f.getScreenXCenter();this._CameraY=f.getScreenYCenter();this._TargetX=a;this._TargetY=b;this._MovementProgress=0;this._MovementTicks=c;if("None"== +d||""==d||null==d){var g=this.attributeTweens.h._MovementProgress;null==g&&(g=new tc,g.doOnUpdate(function(){e._MovementProgress=g.value}),this.attributeTweens.h._MovementProgress=g);g.tween(this._MovementProgress,100,ia.linear,1E3*c|0)}if("Back In"==d){var h=this.attributeTweens.h._MovementProgress;null==h&&(h=new tc,h.doOnUpdate(function(){e._MovementProgress=h.value}),this.attributeTweens.h._MovementProgress=h);h.tween(this._MovementProgress,100,ia.backIn,1E3*c|0)}if("Back In/Out"==d){var l=this.attributeTweens.h._MovementProgress; +null==l&&(l=new tc,l.doOnUpdate(function(){e._MovementProgress=l.value}),this.attributeTweens.h._MovementProgress=l);l.tween(this._MovementProgress,100,ia.backInOut,1E3*c|0)}if("Back Out"==d){var k=this.attributeTweens.h._MovementProgress;null==k&&(k=new tc,k.doOnUpdate(function(){e._MovementProgress=k.value}),this.attributeTweens.h._MovementProgress=k);k.tween(this._MovementProgress,100,ia.backOut,1E3*c|0)}if("Bounce In"==d){var m=this.attributeTweens.h._MovementProgress;null==m&&(m=new tc,m.doOnUpdate(function(){e._MovementProgress= +m.value}),this.attributeTweens.h._MovementProgress=m);m.tween(this._MovementProgress,100,ia.elasticIn,1E3*c|0)}if("Bounce In/Out"==d){var n=this.attributeTweens.h._MovementProgress;null==n&&(n=new tc,n.doOnUpdate(function(){e._MovementProgress=n.value}),this.attributeTweens.h._MovementProgress=n);n.tween(this._MovementProgress,100,ia.elasticInOut,1E3*c|0)}if("Bounce Out"==d){var p=this.attributeTweens.h._MovementProgress;null==p&&(p=new tc,p.doOnUpdate(function(){e._MovementProgress=p.value}),this.attributeTweens.h._MovementProgress= +p);p.tween(this._MovementProgress,100,ia.elasticOut,1E3*c|0)}if("Normal In"==d){var r=this.attributeTweens.h._MovementProgress;null==r&&(r=new tc,r.doOnUpdate(function(){e._MovementProgress=r.value}),this.attributeTweens.h._MovementProgress=r);r.tween(this._MovementProgress,100,ia.quadIn,1E3*c|0)}if("Normal In/Out"==d){var q=this.attributeTweens.h._MovementProgress;null==q&&(q=new tc,q.doOnUpdate(function(){e._MovementProgress=q.value}),this.attributeTweens.h._MovementProgress=q);q.tween(this._MovementProgress, +100,ia.quadInOut,1E3*c|0)}if("Normal Out"==d){var v=this.attributeTweens.h._MovementProgress;null==v&&(v=new tc,v.doOnUpdate(function(){e._MovementProgress=v.value}),this.attributeTweens.h._MovementProgress=v);v.tween(this._MovementProgress,100,ia.quadOut,1E3*c|0)}if("Strong In"==d){var u=this.attributeTweens.h._MovementProgress;null==u&&(u=new tc,u.doOnUpdate(function(){e._MovementProgress=u.value}),this.attributeTweens.h._MovementProgress=u);u.tween(this._MovementProgress,100,ia.expoIn,1E3*c|0)}if("Strong In/Out"== +d){var w=this.attributeTweens.h._MovementProgress;null==w&&(w=new tc,w.doOnUpdate(function(){e._MovementProgress=w.value}),this.attributeTweens.h._MovementProgress=w);w.tween(this._MovementProgress,100,ia.expoInOut,1E3*c|0)}if("Strong Out"==d){var B=this.attributeTweens.h._MovementProgress;null==B&&(B=new tc,B.doOnUpdate(function(){e._MovementProgress=B.value}),this.attributeTweens.h._MovementProgress=B);B.tween(this._MovementProgress,100,ia.expoOut,1E3*c|0)}},_customBlock_SetAutoScroll:function(a){this._AutoScrollMode= +a;this._CurrentPoint=0;this._InterruptAutoScroll=this._GetPoint=!1},init:function(){this._BehaviorSplitValues=new V;for(var a=Object.keys(this._AutoScrollPoints.h),b=a.length,c=0;c<b;){var d=a[c++];this._BehaviorSplitValues.h[""+d]=(""+n.string(this._AutoScrollPoints.h[""+d])).split("|")}this.addListener(f.engine.whenUpdated,q(this,this._event_Updated))},forwardMessage:function(a){},__class__:As});var Bs=function(a,b,c){w.call(this,b);this.nameMap.h.Actor="actor";this.nameMap.h["Stored Triggers"]= +"_StoredTriggers";this.nameMap.h["Target Actor"]="_TargetActor";this.nameMap.h["Behavior Split Values"]="_BehaviorSplitValues"};k["scripts.Design_311_311_CompatibilityBlocksSpecialEffects"]=Bs;Bs.__name__="scripts.Design_311_311_CompatibilityBlocksSpecialEffects";Bs.__super__=w;Bs.prototype=u(w.prototype,{_StoredTriggers:null,_TargetActor:null,_BehaviorSplitValues:null,init:function(){},forwardMessage:function(a){},__class__:Bs});var Cs=function(a,b,c){w.call(this,b);this.nameMap.h.Actor="actor"; +this.nameMap.h["Always Active"]="_AlwaysActive";this._AlwaysActive=!0;this.nameMap.h["Light Actor Type Image"]="_LightActorTypeImage";this.nameMap.h["Blend Mode"]="_BlendMode";this._BlendMode="";this.nameMap.h["Fade Out"]="_FadeOut";this._FadeOut=!1;this.nameMap.h["Behavior Split Values"]="_BehaviorSplitValues";this.nameMap.h["Light Text"]="_LightText";this._LightText="";this.nameMap.h["Image Mode"]="_ImageMode";this._ImageMode="";this.nameMap.h.Activate="_Activate";this._Activate=!0;this.nameMap.h["Used Light Image"]= +"_UsedLightImage";this._UsedLightImage="";this.nameMap.h["Used Width"]="_UsedWidth";this._UsedWidth=0;this.nameMap.h["Used Height"]="_UsedHeight";this._UsedHeight=0;this.nameMap.h["Fade Mode"]="_FadeMode";this._FadeMode="";this.nameMap.h["Hide Actor"]="_HideActor";this._HideActor=!1;this.nameMap.h["Auto Erase Time"]="_AutoEraseTime";this._AutoEraseTime=0;this.nameMap.h["Light X and Y Offsets"]="_LightXandYOffsets";this._LightXandYOffsets="0,0";this.nameMap.h["Light Dimensions"]="_LightDimensions"; +this._LightDimensions="0,0";this.nameMap.h["Fade Times"]="_FadeTimes";this._FadeTimes="0,0";this.nameMap.h["Tint Index"]="_TintIndex";this._TintIndex="-";this.nameMap.h["Light Sources"]="_LightSources";this.nameMap.h["Created Light Sources"]="_CreatedLightSources";this.nameMap.h["Kill on Erase"]="_KillonErase";this._KillonErase=!1;this.nameMap.h.Initialize="_Initialize";this._Initialize=!1};k["scripts.Design_312_312_LightSource"]=Cs;Cs.__name__="scripts.Design_312_312_LightSource";Cs.__super__=w; +Cs.prototype=u(w.prototype,{_AlwaysActive:null,_LightActorTypeImage:null,_BlendMode:null,_FadeOut:null,_BehaviorSplitValues:null,_LightText:null,_ImageMode:null,_Activate:null,_UsedLightImage:null,_UsedWidth:null,_UsedHeight:null,_FadeMode:null,_HideActor:null,_AutoEraseTime:null,_LightXandYOffsets:null,_LightDimensions:null,_FadeTimes:null,_TintIndex:null,_LightSources:null,_CreatedLightSources:null,_KillonErase:null,_Initialize:null,_event_Updated:function(a){var b=this;if(this.wrapper.enabled){this._Initialize|| +(this._Initialize=!0,this._Activate&&(this._customEvent_CreateLight(),0<this._AutoEraseTime&&f.runLater(1E3*this._AutoEraseTime,function(a){b._customEvent_EraseLight()},this.actor)));"No Image"!=this._ImageMode&&(f.sayToScene("Tint Screen","_customBlock_MoveMaskSource",[""+n.string(this.actor)+this._TintIndex,this.actor.getXCenter()+f.asNumber(this._BehaviorSplitValues.h.LightOffsets[0])-this._UsedWidth/2,this.actor.getYCenter()+f.asNumber(this._BehaviorSplitValues.h.LightOffsets[1])-this._UsedHeight/ +2]),(0<=this._FadeMode.indexOf("In")||0<=this._FadeMode.indexOf("Out"))&&f.sayToScene("Tint Screen","_customBlock_ResizeMaskSource",[""+n.string(this.actor)+this._TintIndex,this._UsedWidth,this._UsedHeight]));a=0;for(var c=O.__cast(this._CreatedLightSources,Array);a<c.length;){var d=c[a];++a;d.isAlive()?(d.setXCenter(this.actor.getXCenter()),d.setYCenter(this.actor.getYCenter())):F.remove(this._CreatedLightSources,d)}}},_event_ActorKilled:function(){if(this.wrapper.enabled){"No Image"!=this._ImageMode&& +f.sayToScene("Tint Screen","_customBlock_RemoveMaskSource",[""+n.string(this.actor)+this._TintIndex]);for(var a=0,b=O.__cast(this._CreatedLightSources,Array);a<b.length;){var c=b[a];++a;c.say("Light Source","_customEvent_EraseLight")}}},_customEvent_CreateLight:function(){var a=this;if("No Image"!=this._ImageMode)if(this._UsedLightImage="Actor"==this._ImageMode?""+n.string(this._LightActorTypeImage):this._LightText,f.sceneHasBehavior("Tint Screen")&&(f.setValueForScene("Tint Screen","_LightAnimation", +this._LightText),f.sayToScene("Tint Screen","_customBlock_CreateMaskSource",[""+n.string(this.actor)+this._TintIndex,this._ImageMode,this._UsedLightImage,this.actor.getXCenter()+f.asNumber(this._BehaviorSplitValues.h.LightOffsets[0])-this._UsedWidth/2,this.actor.getYCenter()+f.asNumber(this._BehaviorSplitValues.h.LightOffsets[1])-this._UsedHeight/2,this._UsedWidth,this._UsedHeight,this._TintIndex,this._BlendMode])),0<=this._FadeMode.indexOf("In")){var b=this.attributeTweens.h._UsedWidth;null==b&& +(b=new tc,b.doOnUpdate(function(){a._UsedWidth=b.value}),this.attributeTweens.h._UsedWidth=b);b.tween(this._UsedWidth,f.asNumber(this._BehaviorSplitValues.h.LightDimensions[0]),ia.linear,1E3*f.asNumber(this._BehaviorSplitValues.h.FadeTimes[0])|0);var c=this.attributeTweens.h._UsedHeight;null==c&&(c=new tc,c.doOnUpdate(function(){a._UsedHeight=c.value}),this.attributeTweens.h._UsedHeight=c);c.tween(this._UsedHeight,f.asNumber(this._BehaviorSplitValues.h.LightDimensions[1]),ia.linear,1E3*f.asNumber(this._BehaviorSplitValues.h.FadeTimes[0])| +0)}else this._UsedWidth=f.asNumber(this._BehaviorSplitValues.h.LightDimensions[0]),this._UsedHeight=f.asNumber(this._BehaviorSplitValues.h.LightDimensions[1]),f.sayToScene("Tint Screen","_customBlock_ResizeMaskSource",[""+n.string(this.actor)+this._TintIndex,this._UsedWidth,this._UsedHeight]),f.sayToScene("Tint Screen","_customBlock_MoveMaskSource",[""+n.string(this.actor)+this._TintIndex,this.actor.getXCenter()+f.asNumber(this._BehaviorSplitValues.h.LightOffsets[0])-this._UsedWidth/2,this.actor.getYCenter()+ +f.asNumber(this._BehaviorSplitValues.h.LightOffsets[1])-this._UsedHeight/2]);for(var d=0,e=O.__cast(this._LightSources,Array);d<e.length;){var g=e[d];++d;f.createRecycledActorOnLayer(f.getActorTypeByName(""+n.string(this._BehaviorSplitValues.h[""+n.string(g)][0])),this.actor.getXCenter(),this.actor.getYCenter(),f.engine.getLayerById(this.actor.getLayerID()));this._CreatedLightSources.push(f.getLastCreatedActor());f.getLastCreatedActor().setValue("Light Source","_LightText",""+n.string(this._BehaviorSplitValues.h[""+ +n.string(g)][1]));f.getLastCreatedActor().setValue("Light Source","_LightXandYOffsets",""+n.string(this._BehaviorSplitValues.h[""+n.string(g)][2]));f.getLastCreatedActor().setValue("Light Source","_LightDimensions",""+n.string(this._BehaviorSplitValues.h[""+n.string(g)][3]));f.getLastCreatedActor().setValue("Light Source","_TintIndex",""+n.string(this._BehaviorSplitValues.h[""+n.string(g)][4]));f.getLastCreatedActor().setValue("Light Source","_FadeMode",""+n.string(this._BehaviorSplitValues.h[""+ +n.string(g)][5]));f.getLastCreatedActor().setValue("Light Source","_FadeTimes",""+n.string(this._BehaviorSplitValues.h[""+n.string(g)][6]));f.getLastCreatedActor().setValue("Light Source","_BlendMode",""+n.string(this._BehaviorSplitValues.h[""+n.string(g)][7]))}},_customEvent_EraseLight:function(){var a=this;if(!this._FadeOut){this._FadeOut=!0;if("No Image"!=this._ImageMode)if(0<=this._FadeMode.indexOf("Out")){var b=this.attributeTweens.h._UsedWidth;null==b&&(b=new tc,b.doOnUpdate(function(){a._UsedWidth= +b.value}),this.attributeTweens.h._UsedWidth=b);b.tween(this._UsedWidth,1,ia.linear,1E3*f.asNumber(this._BehaviorSplitValues.h.FadeTimes[1])|0);var c=this.attributeTweens.h._UsedHeight;null==c&&(c=new tc,c.doOnUpdate(function(){a._UsedHeight=c.value}),this.attributeTweens.h._UsedHeight=c);c.tween(this._UsedHeight,1,ia.linear,1E3*f.asNumber(this._BehaviorSplitValues.h.FadeTimes[1])|0);f.runLater(1E3*f.asNumber(this._BehaviorSplitValues.h.FadeTimes[1]),function(b){a._FadeOut=!1;f.sayToScene("Tint Screen", +"_customBlock_RemoveMaskSource",[""+n.string(a.actor)+a._TintIndex])},this.actor)}else this._UsedHeight=this._UsedWidth=1,this._FadeOut=!1,f.sayToScene("Tint Screen","_customBlock_RemoveMaskSource",[""+n.string(this.actor)+this._TintIndex]);else this._FadeOut=!1;for(var d=0,e=O.__cast(this._CreatedLightSources,Array);d<e.length;){var g=e[d];++d;g.say("Light Source","_customEvent_EraseLight")}}},init:function(){this._BehaviorSplitValues=new V;this._BehaviorSplitValues.h.LightDimensions=this._LightDimensions.split(","); +this._BehaviorSplitValues.h.LightOffsets=this._LightXandYOffsets.split(",");this._BehaviorSplitValues.h.FadeTimes=this._FadeTimes.split(",");for(var a=0,b=O.__cast(this._LightSources,Array);a<b.length;){var c=b[a];++a;this._BehaviorSplitValues.h[""+n.string(c)]=(""+n.string(c)).split("/")}this._CreatedLightSources=[];this._AlwaysActive&&this.actor.makeAlwaysSimulate();this._HideActor&&this.actor.disableActorDrawing();0>this._FadeMode.indexOf("In")?(this._UsedHeight=f.asNumber(this._LightDimensions.split(",")[1]), +this._UsedWidth=f.asNumber(this._LightDimensions.split(",")[0])):this._UsedHeight=this._UsedWidth=1;this.addListener(this.actor.whenUpdated,q(this,this._event_Updated));this.addListener(this.actor.whenKilled,q(this,this._event_ActorKilled))},forwardMessage:function(a){},__class__:Cs});var Ds=function(a,b,c){w.call(this,b);this.nameMap.h.Actor="actor";this.nameMap.h["Hide Actor"]="_HideActor";this._HideActor=!1;this.nameMap.h.Particles="_Particles";this._Particles=["Actor Type,Animation,Self;Actor Type,Animation,0/0.2,0.2/1,1,0/Random/2,19,16,16/To Angle/270,270/5,15/0,0"]; +this.nameMap.h.Activate="_Activate";this._Activate=!0;this.nameMap.h["Active Particles"]="_ActiveParticles";this._ActiveParticles="0";this.nameMap.h["Particles On"]="_ParticlesOn";this.nameMap.h["Particle Presets"]="_ParticlePresets";a=new V;a.h.Sample="0";this._ParticlePresets=a;this.nameMap.h["Particle Force"]="_ParticleForce";this._ParticleForce=0;this.nameMap.h["Perimeter Angle"]="_PerimeterAngle";this._PerimeterAngle=0;this.nameMap.h["Used Layer ID"]="_UsedLayerID";this._UsedLayerID=0;this.nameMap.h["Particle Type"]= +"_ParticleType";this.nameMap.h["Particle Ticks Map"]="_ParticleTicksMap";this.nameMap.h["Particles Count Map"]="_ParticlesCountMap";this.nameMap.h["Used Index"]="_UsedIndex";this._UsedIndex="";this.nameMap.h["Behavior Split Values"]="_BehaviorSplitValues"};k["scripts.Design_313_313_Particles"]=Ds;Ds.__name__="scripts.Design_313_313_Particles";Ds.__super__=w;Ds.prototype=u(w.prototype,{_HideActor:null,_Particles:null,_Activate:null,_ActiveParticles:null,_ParticlesOn:null,_ParticlePresets:null,_ParticleForce:null, +_PerimeterAngle:null,_UsedLayerID:null,_ParticleType:null,_ParticleTicksMap:null,_ParticlesCountMap:null,_UsedIndex:null,_BehaviorSplitValues:null,_event_Updated:function(a){if(this.wrapper.enabled&&this._Activate){a=0;for(var b=O.__cast(this._Particles,Array);a<b.length;){var c=b[a];++a;if(S.contains(this._ParticlesOn,""+this._Particles.indexOf(c))){if(Object.prototype.hasOwnProperty.call(this._ParticleTicksMap.h,""+n.string(c))){var d=this._ParticleTicksMap,e=""+n.string(c),g=f.asNumber(this._ParticleTicksMap.h[""+ +n.string(c)])-.01;d.h[e]=g}if(0>=f.asNumber(this._ParticleTicksMap.h[""+n.string(c)])){if(0==f.asNumber(this._BehaviorSplitValues.h["Amount"+n.string(c)][2])||f.asNumber(this._ParticlesCountMap.h[""+n.string(c)])<f.asNumber(this._BehaviorSplitValues.h["Amount"+n.string(c)][2]))for(d=this._ParticleTicksMap,e=""+n.string(c),g=f.randomFloatBetween(f.asNumber(this._BehaviorSplitValues.h["Interval"+n.string(c)][0]),f.asNumber(this._BehaviorSplitValues.h["Interval"+n.string(c)][1])),d.h[e]=g,this._UsedIndex= +""+n.string(c),d=0,e=f.randomInt(f.asNumber(this._BehaviorSplitValues.h["Amount"+n.string(c)][0])|0,f.asNumber(this._BehaviorSplitValues.h["Amount"+n.string(c)][1])|0);d<e&&!(d++,this._customEvent_CreateParticle(),0!=f.asNumber(this._BehaviorSplitValues.h["Amount"+n.string(c)][2])&&f.asNumber(this._ParticlesCountMap.h[""+n.string(c)])>=f.asNumber(this._BehaviorSplitValues.h["Amount"+n.string(c)][2])););0!=f.asNumber(this._BehaviorSplitValues.h["Amount"+n.string(c)][2])&&f.asNumber(this._ParticlesCountMap.h[""+ +n.string(c)])>=f.asNumber(this._BehaviorSplitValues.h["Amount"+n.string(c)][2])&&(F.remove(this._ParticlesOn,""+this._Particles.indexOf(c)),this._ParticleTicksMap.h[""+n.string(c)]=0,this._ParticlesCountMap.h[""+n.string(c)]=0)}}}}},_customEvent_CreateParticle:function(){var a=this._BehaviorSplitValues,b=(""+n.string(this._BehaviorSplitValues.h["ParticleType"+this._UsedIndex][f.randomInt(0,this._BehaviorSplitValues.h["ParticleType"+this._UsedIndex].length-1)])).split(",");a.h.CurrentType=b;this._ParticleType= +f.getActorTypeByName(""+n.string(this._BehaviorSplitValues.h.CurrentType[0]));if(f.hasValue(this._ParticleType)&&(this._UsedLayerID="Self"==this._BehaviorSplitValues.h.CurrentType[2]?this.actor.getLayerID():f.asNumber(this._BehaviorSplitValues.h.CurrentType[2]),"Random"==this._BehaviorSplitValues.h["UsedIndex"+this._UsedIndex][3]&&(f.createRecycledActorOnLayer(this._ParticleType,this.actor.getX(),this.actor.getY(),f.engine.getLayerById(this._UsedLayerID|0)),f.getLastCreatedActor().setAnimation(""+ +n.string(this._BehaviorSplitValues.h.CurrentType[1])),f.getLastCreatedActor().setX(this.actor.getX()+f.randomInt(f.asNumber(this._BehaviorSplitValues.h["ParticlePosition"+this._UsedIndex][0])|0,f.asNumber(this._BehaviorSplitValues.h["ParticlePosition"+this._UsedIndex][1])|0)),f.getLastCreatedActor().setY(this.actor.getY()+f.randomInt(f.asNumber(this._BehaviorSplitValues.h["ParticlePosition"+this._UsedIndex][2])|0,f.asNumber(this._BehaviorSplitValues.h["ParticlePosition"+this._UsedIndex][3])|0))), +"Perimeter"==this._BehaviorSplitValues.h["UsedIndex"+this._UsedIndex][3]&&(this._PerimeterAngle=f.randomInt(f.asNumber(this._BehaviorSplitValues.h["ParticlePosition"+this._UsedIndex][3])|0,f.asNumber(this._BehaviorSplitValues.h["ParticlePosition"+this._UsedIndex][4])|0),f.createRecycledActorOnLayer(this._ParticleType,this.actor.getX(),this.actor.getY(),f.engine.getLayerById(this._UsedLayerID|0)),f.getLastCreatedActor().setAnimation(""+n.string(this._BehaviorSplitValues.h.CurrentType[1])),f.getLastCreatedActor().setX(this.actor.getX()+ +f.asNumber(this._BehaviorSplitValues.h["ParticlePosition"+this._UsedIndex][0])+f.asNumber(this._BehaviorSplitValues.h["ParticlePosition"+this._UsedIndex][2])*Math.cos(.01745329251994278*this._PerimeterAngle)-f.getLastCreatedActor().getWidth()/2),f.getLastCreatedActor().setY(this.actor.getY()+f.asNumber(this._BehaviorSplitValues.h["ParticlePosition"+this._UsedIndex][1])+f.asNumber(this._BehaviorSplitValues.h["ParticlePosition"+this._UsedIndex][2])*Math.sin(.01745329251994278*this._PerimeterAngle)- +f.getLastCreatedActor().getHeight()/2)),this._ParticleForce=f.randomInt(f.asNumber(this._BehaviorSplitValues.h["ParticlesForce"+this._UsedIndex][0])|0,f.asNumber(this._BehaviorSplitValues.h["ParticlesForce"+this._UsedIndex][1])|0),"To Angle"==this._BehaviorSplitValues.h["MovementType"+this._UsedIndex]&&f.getLastCreatedActor().applyImpulseInDirection(f.asNumber(f.randomInt(f.asNumber(this._BehaviorSplitValues.h["MovementSettings"+this._UsedIndex][0])|0,f.asNumber(this._BehaviorSplitValues.h["MovementSettings"+ +this._UsedIndex][1])|0)),this._ParticleForce),"Expand"==this._BehaviorSplitValues.h["MovementType"+this._UsedIndex]&&f.getLastCreatedActor().applyImpulseInDirection(f.asNumber(57.29577951308402*Math.atan2(f.getLastCreatedActor().getYCenter()-this.actor.getYCenter(),f.getLastCreatedActor().getXCenter()-this.actor.getXCenter())),this._ParticleForce),"To Center"==this._BehaviorSplitValues.h["MovementType"+this._UsedIndex]&&f.getLastCreatedActor().applyImpulseInDirection(f.asNumber(57.29577951308402* +Math.atan2(this.actor.getYCenter()-f.getLastCreatedActor().getYCenter(),this.actor.getXCenter()-f.getLastCreatedActor().getXCenter())),this._ParticleForce),"Expand from Point"==this._BehaviorSplitValues.h["MovementType"+this._UsedIndex]&&f.getLastCreatedActor().applyImpulseInDirection(f.asNumber(57.29577951308402*Math.atan2(f.getLastCreatedActor().getYCenter()-(this.actor.getY()+f.asNumber(this._BehaviorSplitValues.h["MovementSettings"+this._UsedIndex][1])),f.getLastCreatedActor().getXCenter()-(this.actor.getX()+ +f.asNumber(this._BehaviorSplitValues.h["MovementSettings"+this._UsedIndex][0])))),this._ParticleForce),"To Point"==this._BehaviorSplitValues.h["MovementType"+this._UsedIndex]&&f.getLastCreatedActor().applyImpulseInDirection(f.asNumber(57.29577951308402*Math.atan2(this.actor.getY()+f.asNumber(this._BehaviorSplitValues.h["MovementSettings"+this._UsedIndex][1])-f.getLastCreatedActor().getYCenter(),this.actor.getX()+f.asNumber(this._BehaviorSplitValues.h["MovementSettings"+this._UsedIndex][0])-f.getLastCreatedActor().getXCenter())), +this._ParticleForce),"0,0"!=this._BehaviorSplitValues.h["UsedIndex"+this._UsedIndex][8]&&f.getLastCreatedActor().setAngle(.01745329251994278*f.randomFloatBetween(f.asNumber(this._BehaviorSplitValues.h["FacingAngle"+this._UsedIndex][0]),f.asNumber(this._BehaviorSplitValues.h["FacingAngle"+this._UsedIndex][1]))),"0,0"!=this._BehaviorSplitValues.h["UsedIndex"+this._UsedIndex][9]&&f.getLastCreatedActor().setAngularVelocity(.01745329251994278*f.randomFloatBetween(f.asNumber(this._BehaviorSplitValues.h["TurningSpeed"+ +this._UsedIndex][0]),f.asNumber(this._BehaviorSplitValues.h["TurningSpeed"+this._UsedIndex][1]))),0!=f.asNumber(this._BehaviorSplitValues.h["Amount"+this._UsedIndex][2]))){a=this._ParticlesCountMap;var c=this._UsedIndex;b=f.asNumber(this._ParticlesCountMap.h[this._UsedIndex])+1;a.h[c]=b}},_customEvent_StartEmitting:function(){this._Activate=!0},_customEvent_StopEmitting:function(){this._Activate=!1;for(var a=0,b=O.__cast(this._Particles,Array);a<b.length;){var c=b[a];++a;this._ParticleTicksMap.h[""+ +n.string(c)]=0;this._ParticlesCountMap.h[""+n.string(c)]=0}},_customEvent_ClearParticles:function(){this._ParticlesOn.length=0;this._customEvent_StopEmitting()},_customBlock_SetParticleIndex:function(a,b){b?S.contains(this._ParticlesOn,a)||this._ParticlesOn.push(a):(F.remove(this._ParticlesOn,a),this._ParticleTicksMap.h[""+n.string(this._Particles[a|0])]=0,this._ParticlesCountMap.h[""+n.string(this._Particles[a|0])]=0);0==this._ParticlesOn.length?this._customEvent_StopEmitting():this._customEvent_StartEmitting()}, +_customBlock_SetParticlePreset:function(a,b){if(Object.prototype.hasOwnProperty.call(this._ParticlePresets.h,a)){var c=0;for(a=O.__cast((""+n.string(this._ParticlePresets.h[a])).split(" "),Array);c<a.length;){var d=a[c];++c;if(b)S.contains(this._ParticlesOn,d)||this._ParticlesOn.push(d);else if(S.contains(this._ParticlesOn,d)){F.remove(this._ParticlesOn,d);var e=this._ParticleTicksMap,g=""+n.string(this._Particles[f.asNumber(d)|0]);e.h[g]=0;e=this._ParticlesCountMap;d=""+n.string(this._Particles[f.asNumber(d)| +0]);e.h[d]=0}}0==this._ParticlesOn.length?this._customEvent_StopEmitting():this._customEvent_StartEmitting()}},init:function(){this._BehaviorSplitValues=new V;for(var a=0,b=O.__cast(this._Particles,Array);a<b.length;){var c=b[a];++a;this._BehaviorSplitValues.h["UsedIndex"+n.string(c)]=(""+n.string(c)).split("/");this._BehaviorSplitValues.h["Interval"+n.string(c)]=(""+n.string(this._BehaviorSplitValues.h["UsedIndex"+n.string(c)][1])).split(",");this._BehaviorSplitValues.h["Amount"+n.string(c)]=(""+ +n.string(this._BehaviorSplitValues.h["UsedIndex"+n.string(c)][2])).split(",");this._BehaviorSplitValues.h["ParticleType"+n.string(c)]=(""+n.string(this._BehaviorSplitValues.h["UsedIndex"+n.string(c)][0])).split(";");this._BehaviorSplitValues.h["ParticlePosition"+n.string(c)]=(""+n.string(this._BehaviorSplitValues.h["UsedIndex"+n.string(c)][4])).split(",");this._BehaviorSplitValues.h["ParticlesForce"+n.string(c)]=(""+n.string(this._BehaviorSplitValues.h["UsedIndex"+n.string(c)][7])).split(",");this._BehaviorSplitValues.h["MovementType"+ +n.string(c)]=this._BehaviorSplitValues.h["UsedIndex"+n.string(c)][5];this._BehaviorSplitValues.h["MovementSettings"+n.string(c)]=(""+n.string(this._BehaviorSplitValues.h["UsedIndex"+n.string(c)][6])).split(",");this._BehaviorSplitValues.h["FacingAngle"+n.string(c)]=(""+n.string(this._BehaviorSplitValues.h["UsedIndex"+n.string(c)][8])).split(",");this._BehaviorSplitValues.h["TurningSpeed"+n.string(c)]=(""+n.string(this._BehaviorSplitValues.h["UsedIndex"+n.string(c)][9])).split(",");this._BehaviorSplitValues.h["SpecialMovement"+ +n.string(c)]=(""+n.string(this._BehaviorSplitValues.h["UsedIndex"+n.string(c)][10])).split(",")}this._HideActor&&this.actor.disableActorDrawing();this._ParticlesOn=[];""!=this._ActiveParticles&&(this._ParticlesOn=this._ActiveParticles.split(" ").slice());this._ParticleTicksMap=new V;this._ParticlesCountMap=new V;a=0;for(b=O.__cast(this._Particles,Array);a<b.length;)c=b[a],++a,this._ParticleTicksMap.h[""+n.string(c)]=0,this._ParticlesCountMap.h[""+n.string(c)]=0;this.addListener(this.actor.whenUpdated, +q(this,this._event_Updated))},forwardMessage:function(a){},__class__:Ds});var Es=function(a,b,c){w.call(this,b);this.nameMap.h.Actor="actor";this.nameMap.h["Dummy Map"]="_DummyMap";this.nameMap.h["Values to Save"]="_ValuestoSave";a=new V;a.h.Layer="[Layer]";a.h.Speed="[Speed]";a.h.Facing="Facing,[Value]";a.h.ColorMode="_CurrentColorMode,Color Swap";a.h.ColorSwapEffects="_EffectsList,Color Swap";a.h.Aura="_Activate,Actor Aura";a.h.ActiveAuras="_AurasOn,Actor Aura";a.h.AuraValues="_AuraValues,Actor Aura"; +a.h.AfterImage="_Activate,After Image";a.h.ActiveAfterImages="_AfterImagesOn,After Image";a.h.AfterImageLimit="_AfterImageLimit,After Image";a.h.Particles="_Activate,Particles";a.h.ActiveParticles="_ParticlesOn,Particles";a.h.Health="_CurrentHealth,Health";a.h.DisplayHealth="_DisplayCurrentHealth,Health";a.h.MaxHealth="_MaxHealth,Health";a.h.Energy="_CurrentEnergyMap,Energy";a.h.DisplayEnergy="_DisplayCurrentEnergyMap,Energy";a.h.MaxEnergy="_MaxEnergyMap,Energy";a.h.Charging="_IsCharging,Charge"; +a.h.ChargeLevels="_ChargeLevels,Charge";a.h.CurrentChargeType="_CurrentChargeType,Charge";a.h.CurrentChargeLevel="_CurrentChargeLevel,Charge";a.h.ChargeProgress="_ChargeTicks,Charge";a.h.EnergyRechargeCooldown="_RechargeCoolDownMap,Energy Recharge";a.h.EnergyRechargeTicks="_RechargeTicks,Energy Recharge";a.h.ExtraLives="_ExtraLives,Die When 0 Health";a.h.MaxLives="_MaximumExtraLives,Die When 0 Health";a.h.ExtraLivesDisplay="_ExtraLivesDisplay,Die When 0 Health";this._ValuestoSave=a;this.nameMap.h["Behavior Split Values"]= +"_BehaviorSplitValues";this.nameMap.h.Initialized="_Initialized";this._Initialized=!1;this.nameMap.h["Transition Save"]="_TransitionSave";this._TransitionSave=!1;this.nameMap.h.Loaded="_Loaded";this._Loaded=!1;this.nameMap.h["Scene Save"]="_SceneSave";this._SceneSave=!1;this.nameMap.h["Save Status Global Value Name"]="_SaveStatusGlobalValueName";this._SaveStatusGlobalValueName="SaveStatus";this.nameMap.h["Save Key"]="_SaveKey";this._SaveKey="0"};k["scripts.Design_314_314_SaveStatus"]=Es;Es.__name__= +"scripts.Design_314_314_SaveStatus";Es.__super__=w;Es.prototype=u(w.prototype,{_DummyMap:null,_ValuestoSave:null,_BehaviorSplitValues:null,_Initialized:null,_TransitionSave:null,_Loaded:null,_SceneSave:null,_SaveStatusGlobalValueName:null,_SaveKey:null,_event_ActorCreated:function(){this.wrapper.enabled&&this._SceneSave&&f.sayToScene("Save Actors","_customBlock_EraseActor",[this.actor])},_event_Updated:function(a){var b=this;this.wrapper.enabled&&(this._Initialized||(this._Initialized=!0,f.runLater(10, +function(a){b.actor.isAlive()&&(a=f.getGameAttribute(b._SaveStatusGlobalValueName),Object.prototype.hasOwnProperty.call(a.h,b._SaveKey)&&b._customEvent_Load(),b._Loaded=!0)},this.actor)),this._Loaded&&(f.isTransitioning()?this._TransitionSave||(this._TransitionSave=!0,this._customEvent_Save()):this._TransitionSave=!1))},_customEvent_Save:function(){if(this._SceneSave)f.sayToScene("Save Actors","_customBlock_SaveActor",[this.actor,this._ValuestoSave]);else{for(var a=this._DummyMap.h,b=Object.keys(a), +c=b.length,d=0;d<c;){a=b[d++];var e=this._DummyMap;Object.prototype.hasOwnProperty.call(e.h,a)&&delete e.h[a]}a=this._ValuestoSave.h;a=Object.keys(a);b=a.length;for(c=0;c<b;)if(d=a[c++],"[Position]"==this._ValuestoSave.h[""+d]){e=this._DummyMap;var g=""+this.actor.getX()+(","+this.actor.getY());e.h[""+d]=g}else if("[Layer]"==this._ValuestoSave.h[""+d])e=this._DummyMap,g=this.actor.getLayerID(),e.h[""+d]=g;else if("[Speed]"==this._ValuestoSave.h[""+d])e=this._DummyMap,g=""+this.actor.getXVelocity()+ +(","+this.actor.getYVelocity()),e.h[""+d]=g;else if(this.actor.hasBehavior(this._BehaviorSplitValues.h[""+d][1])||"[Value]"==this._BehaviorSplitValues.h[""+d][1]&&null!=this.actor.getActorValue(""+n.string(this._BehaviorSplitValues.h[""+d][0])))"[Value]"==this._BehaviorSplitValues.h[""+d][1]?(e=this._DummyMap,g=this.actor.getActorValue(""+n.string(this._BehaviorSplitValues.h[""+d][0])),e.h[""+d]=g):(e=this._DummyMap,g=this.actor.getValue(this._BehaviorSplitValues.h[""+d][1],this._BehaviorSplitValues.h[""+ +d][0]),e.h[""+d]=g);null==f.getGameAttribute(this._SaveStatusGlobalValueName)&&f.setGameAttribute(this._SaveStatusGlobalValueName,new V);e=f.getGameAttribute(this._SaveStatusGlobalValueName);a=this._SaveKey;g=S.copyMap(this._DummyMap);e.h[a]=g}},_customEvent_Load:function(){var a=f.getGameAttribute(this._SaveStatusGlobalValueName);if(Object.prototype.hasOwnProperty.call(a.h,this._SaveKey)){this._Loaded=this._Initialized=!0;for(var b=Object.keys(this._ValuestoSave.h),c=b.length,d=0;d<c;){var e=b[d++]; +"[Position]"==this._ValuestoSave.h[""+e]?(this.actor.setX(f.asNumber((""+n.string(f.getGameAttribute(this._SaveStatusGlobalValueName).h[this._SaveKey].h[""+e])).split(",")[0])),this.actor.setY(f.asNumber((""+n.string(f.getGameAttribute(this._SaveStatusGlobalValueName).h[this._SaveKey].h[""+e])).split(",")[1])),this.actor.hasBehavior("Player Control")&&this.actor.setValue("Player Control","_OldXPosition",this.actor.getX())):"[Layer]"==this._ValuestoSave.h[""+e]?this.actor.moveToLayer(f.engine.getLayerById(f.asNumber(f.getGameAttribute(this._SaveStatusGlobalValueName).h[this._SaveKey].h[""+ +e])|0)):"[Speed]"==this._ValuestoSave.h[""+e]?(this.actor.setXVelocity(f.asNumber((""+n.string(f.getGameAttribute(this._SaveStatusGlobalValueName).h[this._SaveKey].h[""+e])).split(",")[0])),this.actor.setYVelocity(f.asNumber((""+n.string(f.getGameAttribute(this._SaveStatusGlobalValueName).h[this._SaveKey].h[""+e])).split(",")[1]))):(this.actor.hasBehavior(""+n.string(this._BehaviorSplitValues.h[""+e][1]))||"[Value]"==this._BehaviorSplitValues.h[""+e][1]?(a=f.getGameAttribute(this._SaveStatusGlobalValueName), +a=Object.prototype.hasOwnProperty.call(a.h[this._SaveKey].h,""+e)):a=!1,a&&("[Value]"==this._BehaviorSplitValues.h[""+e][1]?this.actor.setActorValue(""+n.string(this._BehaviorSplitValues.h[""+e][0]),f.getGameAttribute(this._SaveStatusGlobalValueName).h[this._SaveKey].h[""+e]):this.actor.setValue(this._BehaviorSplitValues.h[""+e][1],this._BehaviorSplitValues.h[""+e][0],f.getGameAttribute(this._SaveStatusGlobalValueName).h[this._SaveKey].h[""+e])))}}},_customEvent_ClearSelf:function(){var a=f.getGameAttribute(this._SaveStatusGlobalValueName), +b=this._SaveKey;Object.prototype.hasOwnProperty.call(a.h,b)&&delete a.h[b]},_customEvent_StoreData:function(){var a=this._DummyMap.h;a=Object.keys(a);for(var b=a.length,c=0;c<b;){var d=a[c++],e=this._DummyMap;Object.prototype.hasOwnProperty.call(e.h,d)&&delete e.h[d]}a=this._ValuestoSave.h;a=Object.keys(a);b=a.length;for(c=0;c<b;)if(d=a[c++],"[Position]"==this._ValuestoSave.h[""+d]){e=this._DummyMap;var f=""+this.actor.getX()+(","+this.actor.getY());e.h[""+d]=f}else if("[Layer]"==this._ValuestoSave.h[""+ +d])e=this._DummyMap,f=this.actor.getLayerID(),e.h[""+d]=f;else if("[Speed]"==this._ValuestoSave.h[""+d])e=this._DummyMap,f=""+this.actor.getXVelocity()+(","+this.actor.getYVelocity()),e.h[""+d]=f;else if(this.actor.hasBehavior(this._BehaviorSplitValues.h[""+d][1])||"[Value]"==this._BehaviorSplitValues.h[""+d][1]&&null!=this.actor.getActorValue(""+n.string(this._BehaviorSplitValues.h[""+d][0])))"[Value]"==this._BehaviorSplitValues.h[""+d][1]?(e=this._DummyMap,f=this.actor.getActorValue(""+n.string(this._BehaviorSplitValues.h[""+ +d][0])),e.h[""+d]=f):(e=this._DummyMap,f=this.actor.getValue(this._BehaviorSplitValues.h[""+d][1],this._BehaviorSplitValues.h[""+d][0]),e.h[""+d]=f)},_customEvent_SaveStoredData:function(){null==f.getGameAttribute(this._SaveStatusGlobalValueName)&&f.setGameAttribute(this._SaveStatusGlobalValueName,new V);var a=f.getGameAttribute(this._SaveStatusGlobalValueName),b=this._SaveKey,c=S.copyMap(this._DummyMap);a.h[b]=c},_customBlock_GetSavedValue:function(a,b){return f.getGameAttribute(this._SaveStatusGlobalValueName).h[b].h[a]}, +_customBlock_SetSavedValue:function(a,b,c){this._DummyMap=f.getGameAttribute(this._SaveStatusGlobalValueName).h[b];this._DummyMap.h[a]=c;f.getGameAttribute(this._SaveStatusGlobalValueName).h[b]=this._DummyMap},init:function(){this._BehaviorSplitValues=new V;for(var a=Object.keys(this._ValuestoSave.h),b=a.length,c=0;c<b;){var d=a[c++];this._BehaviorSplitValues.h[""+d]=(""+n.string(this._ValuestoSave.h[""+d])).split(",")}this._DummyMap=new V;null==f.getGameAttribute(this._SaveStatusGlobalValueName)&& +f.setGameAttribute(this._SaveStatusGlobalValueName,new V);"[Scene]"==this._SaveKey&&(this._SaveKey=f.getCurrentSceneName()+(""+n.string(this.actor)));this.addListener(this.actor.whenKilled,q(this,this._event_ActorCreated));this.addListener(this.actor.whenUpdated,q(this,this._event_Updated))},forwardMessage:function(a){},__class__:Es});var qk=function(a,b){f.call(this);this.nameMap.h["Timer Image"]="_TimerImage";this.nameMap.h["Timer Instance"]="_TimerInstance";this.nameMap.h["Background Mode"]="_BackgroundMode"; +this._BackgroundMode="";this.nameMap.h["Background Actor"]="_BackgroundActor";this.nameMap.h["Background Type"]="_BackgroundType";this.nameMap.h["Stop Timer"]="StopTimer";this.StopTimer=!1;this.nameMap.h["Font to Use"]="FonttoUse";this.nameMap.h["Background Dimensions"]="_BackgroundDimensions";this._BackgroundDimensions="10,10";this.nameMap.h["Draw Timer"]="DrawTimer";this.DrawTimer=!0;this.nameMap.h["Save Global Value"]="_SaveGlobalValue";this._SaveGlobalValue="Timer";this.nameMap.h["Timer State Global Value"]= +"_TimerStateGlobalValue";this._TimerStateGlobalValue="TimerStopped";this.nameMap.h["Stop if Paused"]="_StopifPaused";this._StopifPaused=!0;this.nameMap.h["Timer Settings"]="_TimerSettings";this._TimerSettings=["0/Time Up/Stage1/Replace Smaller/-/-/Always/:/[Off]","120/Time Down/Countdown/Replace Bigger/-/-/Active/:/:","0/Time Up/GameTime/Always Replace/AutoSave/Load/Hide/:/:"];this.nameMap.h["Active Timers"]="_ActiveTimers";this._ActiveTimers="Stage1,Countdown,GameTime";this.nameMap.h["Timer Positions"]= +"_TimerPositions";this._TimerPositions=["Left,10,Top,10,Left,-2,-2,Animation"];this.nameMap.h["Timers On"]="_TimersOn";this.nameMap.h["Drawing Index"]="_DrawingIndex";this._DrawingIndex=0;this.nameMap.h["X Position"]="_XPosition";this._XPosition=0;this.nameMap.h["Y Position"]="_YPosition";this._YPosition=0;this.nameMap.h["Draw State Global Value"]="_DrawStateGlobalValue";this._DrawStateGlobalValue="DrawTimer";this.nameMap.h["Timers Map"]="_TimersMap";this.nameMap.h["Behavior Split Values"]="_BehaviorSplitValues"; +this.nameMap.h["Active Timers Global Value"]="_ActiveTimersGlobalValue";this._ActiveTimersGlobalValue="ActiveTimers";this.nameMap.h["Displayed Timer"]="_DisplayedTimer";this._DisplayedTimer=""};k["scripts.Design_315_315_TimeCount"]=qk;qk.__name__="scripts.Design_315_315_TimeCount";qk._customBlock_FormatTimer=function(a,b,c){return""+Math.floor(a/60)+(b+(""+Math.floor(a%60/10)))+(""+(Math.floor(a%60)-10*Math.floor(a%60/10)))+(c+(""+Math.floor(10*(a-Math.floor(a)))+(""+Math.floor(100*(a-Math.floor(a))- +10*Math.floor(10*(a-Math.floor(a)))))))};qk.__super__=gb;qk.prototype=u(gb.prototype,{_TimerImage:null,_TimerInstance:null,_BackgroundMode:null,_BackgroundActor:null,_BackgroundType:null,StopTimer:null,FonttoUse:null,_BackgroundDimensions:null,DrawTimer:null,_SaveGlobalValue:null,_TimerStateGlobalValue:null,_StopifPaused:null,_TimerSettings:null,_ActiveTimers:null,_TimerPositions:null,_TimersOn:null,_DrawingIndex:null,_XPosition:null,_YPosition:null,_DrawStateGlobalValue:null,_TimersMap:null,_BehaviorSplitValues:null, +_ActiveTimersGlobalValue:null,_DisplayedTimer:null,_event_Updated:function(a){if(this.wrapper.enabled&&(!this._StopifPaused||this._StopifPaused&&!f.engine.isPaused())){""!=this._TimerStateGlobalValue&&null!=f.getGameAttribute(this._TimerStateGlobalValue)&&(this.StopTimer=f.asBoolean(f.getGameAttribute(this._TimerStateGlobalValue)));a=0;for(var b=O.__cast(this._TimerSettings,Array);a<b.length;){var c=b[a];++a;if(S.contains(this._TimersOn,""+n.string(this._BehaviorSplitValues.h[""+n.string(c)][2]))&& +!this.StopTimer)if("Time Up"==this._BehaviorSplitValues.h[""+n.string(c)][1]){var d=this._TimersMap,e=""+n.string(this._BehaviorSplitValues.h[""+n.string(c)][2]),g=f.asNumber(this._TimersMap.h[""+n.string(this._BehaviorSplitValues.h[""+n.string(c)][2])])+.01;d.h[e]=g}else d=this._TimersMap,e=""+n.string(this._BehaviorSplitValues.h[""+n.string(c)][2]),g=f.asNumber(this._TimersMap.h[""+n.string(this._BehaviorSplitValues.h[""+n.string(c)][2])])-.01,d.h[e]=g;0>=f.asNumber(this._TimersMap.h[""+n.string(this._BehaviorSplitValues.h[""+ +n.string(c)][2])])&&(this._TimersMap.h[""+n.string(this._BehaviorSplitValues.h[""+n.string(c)][2])]=0);"AutoSave"!=this._BehaviorSplitValues.h[""+n.string(c)][4]||this.StopTimer||("Always Replace"==this._BehaviorSplitValues.h[""+n.string(c)][3]&&(d=f.getGameAttribute(this._SaveGlobalValue),e=""+n.string(this._BehaviorSplitValues.h[""+n.string(c)][2]),g=f.asNumber(this._TimersMap.h[""+n.string(this._BehaviorSplitValues.h[""+n.string(c)][2])]),d.h[e]=g),"Replace Bigger"==this._BehaviorSplitValues.h[""+ +n.string(c)][3]&&(f.asNumber(this._TimersMap.h[""+n.string(this._BehaviorSplitValues.h[""+n.string(c)][2])])>f.asNumber(f.getGameAttribute(this._SaveGlobalValue).h[""+n.string(this._BehaviorSplitValues.h[""+n.string(c)][2])])?d=!0:(d=f.getGameAttribute(this._SaveGlobalValue),d=!Object.prototype.hasOwnProperty.call(d.h,""+n.string(this._BehaviorSplitValues.h[""+n.string(c)][2]))),d&&(d=f.getGameAttribute(this._SaveGlobalValue),e=""+n.string(this._BehaviorSplitValues.h[""+n.string(c)][2]),g=f.asNumber(this._TimersMap.h[""+ +n.string(this._BehaviorSplitValues.h[""+n.string(c)][2])]),d.h[e]=g)),"Replace Smaller"==this._BehaviorSplitValues.h[""+n.string(c)][3]&&(f.asNumber(this._TimersMap.h[""+n.string(this._BehaviorSplitValues.h[""+n.string(c)][2])])<f.asNumber(f.getGameAttribute(this._SaveGlobalValue).h[""+n.string(this._BehaviorSplitValues.h[""+n.string(c)][2])])?d=!0:(d=f.getGameAttribute(this._SaveGlobalValue),d=!Object.prototype.hasOwnProperty.call(d.h,""+n.string(this._BehaviorSplitValues.h[""+n.string(c)][2]))), +d&&(d=f.getGameAttribute(this._SaveGlobalValue),e=""+n.string(this._BehaviorSplitValues.h[""+n.string(c)][2]),c=f.asNumber(this._TimersMap.h[""+n.string(this._BehaviorSplitValues.h[""+n.string(c)][2])]),d.h[e]=c)))}""!=this._ActiveTimersGlobalValue&&f.setGameAttribute(this._ActiveTimersGlobalValue,this._TimersOn.slice())}},_event_Drawing:function(a,b,c){if(this.wrapper.enabled&&this.DrawTimer&&(!this._StopifPaused||this._StopifPaused&&!f.engine.isPaused())&&f.hasValue(this.FonttoUse))for(this._DrawingIndex= +0,f.clearImage(this._TimerImage),a=0,b=this._TimerPositions.length;a<b;)if(c=a++,this._DisplayedTimer=""+qk._customBlock_FormatTimer(f.asNumber(this._TimersMap.h[""+n.string(this._BehaviorSplitValues.h[""+n.string(this._TimerSettings[c])][2])]),""+n.string(this._BehaviorSplitValues.h[""+n.string(this._TimerSettings[c])][7]),""+n.string(this._BehaviorSplitValues.h[""+n.string(this._TimerSettings[c])][8])),"[Off]"==this._BehaviorSplitValues.h[""+n.string(this._TimerSettings[c])][8]&&(this._DisplayedTimer= +this._DisplayedTimer.substring(0,this._DisplayedTimer.indexOf("[Off]"))),"Left"==this._BehaviorSplitValues.h[""+n.string(this._TimerPositions[this._DrawingIndex|0])][0]&&(this._XPosition=f.asNumber(this._BehaviorSplitValues.h[""+n.string(this._TimerPositions[this._DrawingIndex|0])][1])),"Center"==this._BehaviorSplitValues.h[""+n.string(this._TimerPositions[this._DrawingIndex|0])][0]&&(this._XPosition=f.getScreenWidth()/2-f.asNumber(this._BehaviorSplitValues.h[""+n.string(this._TimerPositions[this._DrawingIndex| +0])][1])),"Right"==this._BehaviorSplitValues.h[""+n.string(this._TimerPositions[this._DrawingIndex|0])][0]&&(this._XPosition=f.getScreenWidth()-f.asNumber(this._BehaviorSplitValues.h[""+n.string(this._TimerPositions[this._DrawingIndex|0])][1])),"Right"==this._BehaviorSplitValues.h[""+n.string(this._TimerPositions[this._DrawingIndex|0])][4]&&(this._XPosition-=this.FonttoUse.getTextWidth(this._DisplayedTimer)/h.SCALE),"Center"==this._BehaviorSplitValues.h[""+n.string(this._TimerPositions[this._DrawingIndex| +0])][4]&&(this._XPosition-=this.FonttoUse.getTextWidth(this._DisplayedTimer)/h.SCALE/2),"Top"==this._BehaviorSplitValues.h[""+n.string(this._TimerPositions[this._DrawingIndex|0])][2]&&(this._YPosition=f.asNumber(this._BehaviorSplitValues.h[""+n.string(this._TimerPositions[this._DrawingIndex|0])][3])),"Center"==this._BehaviorSplitValues.h[""+n.string(this._TimerPositions[this._DrawingIndex|0])][2]&&(this._YPosition=f.getScreenHeight()/2-f.asNumber(this._BehaviorSplitValues.h[""+n.string(this._TimerPositions[this._DrawingIndex| +0])][3])),"Bottom"==this._BehaviorSplitValues.h[""+n.string(this._TimerPositions[this._DrawingIndex|0])][2]&&(this._YPosition=f.getScreenHeight()-f.asNumber(this._BehaviorSplitValues.h[""+n.string(this._TimerPositions[this._DrawingIndex|0])][3])),"Always"==this._BehaviorSplitValues.h[""+n.string(this._TimerSettings[c])][6]||"Active"==this._BehaviorSplitValues.h[""+n.string(this._TimerSettings[c])][6]&&S.contains(this._TimersOn,""+n.string(this._BehaviorSplitValues.h[""+n.string(this._TimerSettings[c])][2])))"Actor"== +this._BackgroundMode&&(this._BackgroundActor.setAnimation(""+n.string(this._BehaviorSplitValues.h[""+n.string(this._TimerPositions[this._DrawingIndex|0])][7])),f.drawImageOnImage(f.getImageForActor(this._BackgroundActor),this._TimerImage,this._XPosition+f.asNumber(this._BehaviorSplitValues.h[""+n.string(this._TimerPositions[this._DrawingIndex|0])][5])|0,this._YPosition+f.asNumber(this._BehaviorSplitValues.h[""+n.string(this._TimerPositions[this._DrawingIndex|0])][6])|0,10)),"Actor Resize"==this._BackgroundMode&& +(this._BackgroundActor.setAnimation(""+n.string(this._BehaviorSplitValues.h[""+n.string(this._TimerPositions[this._DrawingIndex|0])][7])),f.drawImageOnImage(f.sayToScene("Resize Scene Menu Window","_customBlock_ResizeSceneMenuWindow",[f.getImageForActor(this._BackgroundActor),f.asNumber(this._BehaviorSplitValues.h[this._BackgroundDimensions][0]),f.asNumber(this._BehaviorSplitValues.h[this._BackgroundDimensions][1])]),this._TimerImage,this._XPosition+f.asNumber(this._BehaviorSplitValues.h[""+n.string(this._TimerPositions[this._DrawingIndex| +0])][5])|0,this._YPosition+f.asNumber(this._BehaviorSplitValues.h[""+n.string(this._TimerPositions[this._DrawingIndex|0])][6])|0,10)),"Image"==this._BackgroundMode&&f.drawImageOnImage(f.getExternalImage(""+n.string(this._BehaviorSplitValues.h[""+n.string(this._TimerPositions[this._DrawingIndex|0])][7])),this._TimerImage,this._XPosition+f.asNumber(this._BehaviorSplitValues.h[""+n.string(this._TimerPositions[this._DrawingIndex|0])][5])|0,this._YPosition+f.asNumber(this._BehaviorSplitValues.h[""+n.string(this._TimerPositions[this._DrawingIndex| +0])][6])|0,10),"Image Resize"==this._BackgroundMode&&f.drawImageOnImage(f.sayToScene("Resize Scene Menu Window","_customBlock_ResizeSceneMenuWindow",[f.getExternalImage(""+n.string(this._BehaviorSplitValues.h[""+n.string(this._TimerPositions[this._DrawingIndex|0])][7])),f.asNumber(this._BehaviorSplitValues.h[this._BackgroundDimensions][0]),f.asNumber(this._BehaviorSplitValues.h[this._BackgroundDimensions][1])]),this._TimerImage,this._XPosition+f.asNumber(this._BehaviorSplitValues.h[""+n.string(this._TimerPositions[this._DrawingIndex| +0])][5])|0,this._YPosition+f.asNumber(this._BehaviorSplitValues.h[""+n.string(this._TimerPositions[this._DrawingIndex|0])][6])|0,10),f.drawTextOnImage(this._TimerImage,this._DisplayedTimer,this._XPosition|0,this._YPosition|0,this.FonttoUse),this._DrawingIndex+=1},_customEvent_ContinueTimer:function(){this.StopTimer=!1;""!=this._TimerStateGlobalValue&&f.setGameAttribute(this._TimerStateGlobalValue,!1)},_customEvent_InterruptTimer:function(){this.StopTimer=!0;""!=this._TimerStateGlobalValue&&f.setGameAttribute(this._TimerStateGlobalValue, +!0)},_customEvent_StartDrawingTimer:function(){this.DrawTimer=!0;this._TimerInstance=new ke(new Vb(this._TimerImage));f.attachImageToHUD(this._TimerInstance,0,0);0<=this._BackgroundMode.indexOf("Actor")&&(f.createRecycledActor(this._BackgroundType,f.getScreenX(),f.getScreenY(),0),this._BackgroundActor=f.getLastCreatedActor(),this._BackgroundActor.anchorToScreen(),this._BackgroundActor.disableActorDrawing());""!=this._DrawStateGlobalValue&&f.setGameAttribute(this._DrawStateGlobalValue,this.DrawTimer)}, +_customEvent_StopDrawingTimer:function(){this.DrawTimer=!1;f.clearImage(this._TimerImage);f.removeImage(this._TimerInstance);f.hasValue(this._BackgroundActor)&&this._BackgroundActor.isAlive()&&(f.recycleActor(this._BackgroundActor),this._BackgroundActor=f.getDefaultValue(this._BackgroundActor));""!=this._DrawStateGlobalValue&&f.setGameAttribute(this._DrawStateGlobalValue,this.DrawTimer)},_customEvent_SaveTime:function(){for(var a=0,b=O.__cast(this._TimerSettings,Array);a<b.length;){var c=b[a];++a; +if("Always Replace"==this._BehaviorSplitValues.h[""+n.string(c)][3]){var d=f.getGameAttribute(this._SaveGlobalValue),e=""+n.string(this._BehaviorSplitValues.h[""+n.string(c)][2]),g=f.asNumber(this._TimersMap.h[""+n.string(this._BehaviorSplitValues.h[""+n.string(c)][2])]);d.h[e]=g}"Replace Bigger"==this._BehaviorSplitValues.h[""+n.string(c)][3]&&(f.asNumber(this._TimersMap.h[""+n.string(this._BehaviorSplitValues.h[""+n.string(c)][2])])>f.asNumber(f.getGameAttribute(this._SaveGlobalValue).h[""+n.string(this._BehaviorSplitValues.h[""+ +n.string(c)][2])])?d=!0:(d=f.getGameAttribute(this._SaveGlobalValue),d=!Object.prototype.hasOwnProperty.call(d.h,""+n.string(this._BehaviorSplitValues.h[""+n.string(c)][2]))),d&&(d=f.getGameAttribute(this._SaveGlobalValue),e=""+n.string(this._BehaviorSplitValues.h[""+n.string(c)][2]),g=f.asNumber(this._TimersMap.h[""+n.string(this._BehaviorSplitValues.h[""+n.string(c)][2])]),d.h[e]=g));"Replace Smaller"==this._BehaviorSplitValues.h[""+n.string(c)][3]&&(f.asNumber(this._TimersMap.h[""+n.string(this._BehaviorSplitValues.h[""+ +n.string(c)][2])])<f.asNumber(f.getGameAttribute(this._SaveGlobalValue).h[""+n.string(this._BehaviorSplitValues.h[""+n.string(c)][2])])?d=!0:(d=f.getGameAttribute(this._SaveGlobalValue),d=!Object.prototype.hasOwnProperty.call(d.h,""+n.string(this._BehaviorSplitValues.h[""+n.string(c)][2]))),d&&(d=f.getGameAttribute(this._SaveGlobalValue),e=""+n.string(this._BehaviorSplitValues.h[""+n.string(c)][2]),c=f.asNumber(this._TimersMap.h[""+n.string(this._BehaviorSplitValues.h[""+n.string(c)][2])]),d.h[e]= +c))}},_customEvent_SaveActiveTime:function(){for(var a=0,b=O.__cast(this._TimerSettings,Array);a<b.length;){var c=b[a];++a;if(S.contains(this._TimersOn,""+n.string(this._BehaviorSplitValues.h[""+n.string(c)][2]))){if("Always Replace"==this._BehaviorSplitValues.h[""+n.string(c)][3]){var d=f.getGameAttribute(this._SaveGlobalValue),e=""+n.string(this._BehaviorSplitValues.h[""+n.string(c)][2]),g=f.asNumber(this._TimersMap.h[""+n.string(this._BehaviorSplitValues.h[""+n.string(c)][2])]);d.h[e]=g}"Replace Bigger"== +this._BehaviorSplitValues.h[""+n.string(c)][3]&&(f.asNumber(this._TimersMap.h[""+n.string(this._BehaviorSplitValues.h[""+n.string(c)][2])])>f.asNumber(f.getGameAttribute(this._SaveGlobalValue).h[""+n.string(this._BehaviorSplitValues.h[""+n.string(c)][2])])?d=!0:(d=f.getGameAttribute(this._SaveGlobalValue),d=!Object.prototype.hasOwnProperty.call(d.h,""+n.string(this._BehaviorSplitValues.h[""+n.string(c)][2]))),d&&(d=f.getGameAttribute(this._SaveGlobalValue),e=""+n.string(this._BehaviorSplitValues.h[""+ +n.string(c)][2]),g=f.asNumber(this._TimersMap.h[""+n.string(this._BehaviorSplitValues.h[""+n.string(c)][2])]),d.h[e]=g));"Replace Smaller"==this._BehaviorSplitValues.h[""+n.string(c)][3]&&(f.asNumber(this._TimersMap.h[""+n.string(this._BehaviorSplitValues.h[""+n.string(c)][2])])<f.asNumber(f.getGameAttribute(this._SaveGlobalValue).h[""+n.string(this._BehaviorSplitValues.h[""+n.string(c)][2])])?d=!0:(d=f.getGameAttribute(this._SaveGlobalValue),d=!Object.prototype.hasOwnProperty.call(d.h,""+n.string(this._BehaviorSplitValues.h[""+ +n.string(c)][2]))),d&&(d=f.getGameAttribute(this._SaveGlobalValue),e=""+n.string(this._BehaviorSplitValues.h[""+n.string(c)][2]),c=f.asNumber(this._TimersMap.h[""+n.string(this._BehaviorSplitValues.h[""+n.string(c)][2])]),d.h[e]=c))}}},_customEvent_ResetTime:function(){for(var a=0,b=O.__cast(this._TimerSettings,Array);a<b.length;){var c=b[a];++a;var d=this._TimersMap,e=""+n.string(this._BehaviorSplitValues.h[""+n.string(c)][2]);c=f.asNumber(this._BehaviorSplitValues.h[""+n.string(c)][0]);d.h[e]=c}}, +_customBlock_ModifyTimerID:function(a,b){if("Reset"==b)for(var c=0,d=O.__cast(this._TimerSettings,Array);c<d.length;){if(b=d[c],++c,a==(""+n.string(b)).split("/")[2]){c=this._TimersMap;b=f.asNumber((""+n.string(b)).split("/")[0]);c.h[a]=b;break}}else c=this._TimersMap,b=f.asNumber(this._TimersMap.h[""+a])+f.asNumber(b),c.h[a]=b},_customBlock_SetTimerState:function(a,b){b?S.contains(this._TimersOn,a)||this._TimersOn.push(a):F.remove(this._TimersOn,a)},init:function(){this._BehaviorSplitValues=new V; +this._BehaviorSplitValues.h[this._BackgroundDimensions]=this._BackgroundDimensions.split(",");for(var a=0,b=O.__cast(this._TimerPositions,Array);a<b.length;){var c=b[a];++a;this._BehaviorSplitValues.h[""+n.string(c)]=(""+n.string(c)).split(",")}this._TimersOn=[];""!=this._ActiveTimers&&(this._TimersOn=this._ActiveTimers.split(",").slice());""!=this._ActiveTimersGlobalValue&&(null==f.getGameAttribute(this._ActiveTimersGlobalValue)?f.setGameAttribute(this._ActiveTimersGlobalValue,[]):this._TimersOn= +f.getGameAttribute(this._ActiveTimersGlobalValue).slice());this._TimersMap=new V;null==f.getGameAttribute(this._SaveGlobalValue)&&f.setGameAttribute(this._SaveGlobalValue,new V);a=0;for(b=O.__cast(this._TimerSettings,Array);a<b.length;)if(c=b[a],++a,this._BehaviorSplitValues.h[""+n.string(c)]=(""+n.string(c)).split("/"),"Load"==this._BehaviorSplitValues.h[""+n.string(c)][5]&&0!=S.mapCount(f.getGameAttribute(this._SaveGlobalValue))){var d=this._TimersMap,e=""+n.string(this._BehaviorSplitValues.h[""+ +n.string(c)][2]),g=f.getGameAttribute(this._SaveGlobalValue);d.h[e]=g.h[""+n.string(this._BehaviorSplitValues.h[""+n.string(c)][2])]}else d=this._TimersMap,e=""+n.string(this._BehaviorSplitValues.h[""+n.string(c)][2]),c=f.asNumber(this._BehaviorSplitValues.h[""+n.string(c)][0]),d.h[e]=c;this._TimerImage=f.newImage(f.getScreenWidth(),f.getScreenHeight());""!=this._DrawStateGlobalValue&&null!=f.getGameAttribute(this._DrawStateGlobalValue)&&(this.DrawTimer=f.asBoolean(f.getGameAttribute(this._DrawStateGlobalValue))); +this.DrawTimer&&this._customEvent_StartDrawingTimer();this.addListener(f.engine.whenUpdated,q(this,this._event_Updated));this.addListener(f.engine.whenDrawing,q(this,this._event_Drawing))},forwardMessage:function(a){},__class__:qk});var Fs=function(a,b){f.call(this);this.nameMap.h["Save Scene Global Value Name"]="_SaveSceneGlobalValueName";this._SaveSceneGlobalValueName="SaveScene";this.nameMap.h["Actor Values Map"]="_ActorValuesMap";this.nameMap.h["Saved Actors Map"]="_SavedActorsMap";this.nameMap.h["Behavior Split Values"]= +"_BehaviorSplitValues";this.nameMap.h.Loaded="_Loaded";this._Loaded=!1};k["scripts.Design_316_316_SaveActors"]=Fs;Fs.__name__="scripts.Design_316_316_SaveActors";Fs.__super__=gb;Fs.prototype=u(gb.prototype,{_SaveSceneGlobalValueName:null,_ActorValuesMap:null,_SavedActorsMap:null,_BehaviorSplitValues:null,_Loaded:null,_event_Updated:function(a){if(this.wrapper.enabled&&!this._Loaded){this._Loaded=!0;this._ActorValuesMap=new V;null==f.getGameAttribute(this._SaveSceneGlobalValueName)&&f.setGameAttribute(this._SaveSceneGlobalValueName, +new V);a=f.getGameAttribute(this._SaveSceneGlobalValueName);var b=f.getCurrentSceneName();Object.prototype.hasOwnProperty.call(a.h,b)?(a=f.getGameAttribute(this._SaveSceneGlobalValueName),b=f.getCurrentSceneName(),this._SavedActorsMap=a.h[b]):this._SavedActorsMap=new V;this._customEvent_LoadActors()}},_customEvent_LoadActors:function(){for(var a=this._SavedActorsMap.h,b=Object.keys(a),c=b.length,d=0;d<c;){a=b[d++];this._BehaviorSplitValues.h.BasicData=(""+n.string(this._SavedActorsMap.h[""+a].h.BasicData)).split("/"); +f.createRecycledActorOnLayer(f.getActorTypeByName(""+n.string(this._BehaviorSplitValues.h.BasicData[0])),f.asNumber(this._BehaviorSplitValues.h.BasicData[1]),f.asNumber(this._BehaviorSplitValues.h.BasicData[2]),f.engine.getLayerById(f.asNumber(this._BehaviorSplitValues.h.BasicData[3])|0));this._ActorValuesMap=S.copyMap(this._SavedActorsMap.h[""+a]);a=this._ActorValuesMap.h;a=Object.keys(a);for(var e=a.length,g=0;g<e;){var h=a[g++];this._BehaviorSplitValues.h[""+h]=(""+n.string(this._ActorValuesMap.h[""+ +h+"Source"])).split(",");if("[Value]"==this._BehaviorSplitValues.h[""+h][1])f.getLastCreatedActor().setActorValue(""+n.string(this._BehaviorSplitValues.h[""+h][0]),this._ActorValuesMap.h[""+h]);else{var l=this._BehaviorSplitValues.h[""+h];if(f.getLastCreatedActor().hasBehavior(l[1])){l=this._BehaviorSplitValues.h[""+h];var k=this._BehaviorSplitValues.h[""+h];h=this._ActorValuesMap.h[""+h];f.getLastCreatedActor().setValue(l[1],k[0],h)}}}}a=this._SavedActorsMap.h;c=Object.keys(a);d=c.length;for(a=0;a< +d;)b=c[a++],e=this._SavedActorsMap,Object.prototype.hasOwnProperty.call(e.h,b)&&delete e.h[b];c=f.getGameAttribute(this._SaveSceneGlobalValueName);b=f.getCurrentSceneName();e=c;Object.prototype.hasOwnProperty.call(e.h,b)&&delete e.h[b]},_customEvent_ClearScene:function(){for(var a=Object.keys(this._SavedActorsMap.h),b=a.length,c=0;c<b;){var d=a[c++],e=this._SavedActorsMap;Object.prototype.hasOwnProperty.call(e.h,d)&&delete e.h[d]}a=f.getGameAttribute(this._SaveSceneGlobalValueName);d=f.getCurrentSceneName(); +e=a;Object.prototype.hasOwnProperty.call(e.h,d)&&delete e.h[d]},_customBlock_SaveActor:function(a,b){for(var c=this._ActorValuesMap.h,d=Object.keys(c),e=d.length,g=0;g<e;){c=d[g++];var h=this._ActorValuesMap;Object.prototype.hasOwnProperty.call(h.h,c)&&delete h.h[c]}h=this._ActorValuesMap;var l=""+n.string(a.getType())+("/"+(a.getX()+("/"+a.getY()+("/"+a.getLayerID()))));h.h.BasicData=l;c=b.h;c=Object.keys(c);d=c.length;for(e=0;e<d;)g=c[e++],this._BehaviorSplitValues.h[""+g]=(""+g).split(","),"[Value]"== +this._BehaviorSplitValues.h[""+g][1]?(h=this._ActorValuesMap,l=a.getActorValue(""+n.string(this._BehaviorSplitValues.h[""+g][0])),h.h[""+g]=l):a.hasBehavior(this._BehaviorSplitValues.h[""+g][1])&&(h=this._ActorValuesMap,l=a.getValue(this._BehaviorSplitValues.h[""+g][1],this._BehaviorSplitValues.h[""+g][0]),h.h[""+g]=l),this._ActorValuesMap.h[""+g+"Source"]=b.h[""+g];h=this._SavedActorsMap;c=""+n.string(a);l=S.copyMap(this._ActorValuesMap);h.h[c]=l;h=f.getGameAttribute(this._SaveSceneGlobalValueName); +c=f.getCurrentSceneName();h.h[c]=this._SavedActorsMap},_customBlock_EraseActor:function(a){a=""+n.string(a);var b=this._SavedActorsMap;Object.prototype.hasOwnProperty.call(b.h,a)&&delete b.h[a];b=f.getGameAttribute(this._SaveSceneGlobalValueName);a=f.getCurrentSceneName();b.h[a]=this._SavedActorsMap},init:function(){this._BehaviorSplitValues=new V;this.addListener(f.engine.whenUpdated,q(this,this._event_Updated))},forwardMessage:function(a){},__class__:Fs});var Gs=function(a,b){f.call(this);this.nameMap.h.Soundtrack= +"_Soundtrack";this.nameMap.h["Soundtrack Global Value Name"]="_SoundtrackGlobalValueName";this._SoundtrackGlobalValueName="Soundtrack";this.nameMap.h["Sound Fade Out Time"]="_SoundFadeOutTime";this._SoundFadeOutTime=.5;this.nameMap.h["Conditional Soundtrack"]="_ConditionalSoundtrack";this.nameMap.h.Initialized="_Initialized";this._Initialized=!1;this.nameMap.h["Sound Conditions"]="_SoundConditions";this._SoundConditions=0;this.nameMap.h["Comparison Value"]="_ComparisonValue";this._ComparisonValue= +"";this.nameMap.h["Selected Sound Channel"]="_SelectedSoundChannel";this._SelectedSoundChannel=0;this.nameMap.h["Sound Channel"]="_SoundChannel";this._SoundChannel="0,1";this.nameMap.h["Behavior Split Values"]="_BehaviorSplitValues";this.nameMap.h["Sound Fade In Time"]="_SoundFadeInTime";this._SoundFadeInTime=0;this.nameMap.h["Sound Fade In Start"]="_SoundFadeInStart";this._SoundFadeInStart=1;this.nameMap.h["Soundtrack Queue"]="_SoundtrackQueue";this.nameMap.h["Queue Started"]="_QueueStarted";this._QueueStarted= +!1;this.nameMap.h["Debug Position"]="_DebugPosition";this._DebugPosition="0,0";this.nameMap.h["Debug Font"]="_DebugFont";this.nameMap.h.Debug="_Debug";this._Debug=!1;this.nameMap.h["Save Queued Soundtrack"]="_SaveQueuedSoundtrack";this._SaveQueuedSoundtrack=!1};k["scripts.Design_317_317_SceneSoundtrack"]=Gs;Gs.__name__="scripts.Design_317_317_SceneSoundtrack";Gs.__super__=gb;Gs.prototype=u(gb.prototype,{_Soundtrack:null,_SoundtrackGlobalValueName:null,_SoundFadeOutTime:null,_ConditionalSoundtrack:null, +_Initialized:null,_SoundConditions:null,_ComparisonValue:null,_SelectedSoundChannel:null,_SoundChannel:null,_BehaviorSplitValues:null,_SoundFadeInTime:null,_SoundFadeInStart:null,_SoundtrackQueue:null,_QueueStarted:null,_DebugPosition:null,_DebugFont:null,_Debug:null,_SaveQueuedSoundtrack:null,_event_Updating:function(a){var b=this;this.wrapper.enabled&&(this._Initialized||(this._Initialized=!0,this._customEvent_ConditionalSoundtrack(),""+n.string(f.getGameAttribute(this._SoundtrackGlobalValueName)[0])!= +""+n.string(this._Soundtrack)&&0==this._SoundtrackQueue.length&&(0!=f.getGameAttribute(this._SoundtrackGlobalValueName).length&&f.fadeOutSoundOnChannel(f.asNumber(f.getGameAttribute(this._SoundtrackGlobalValueName)[1])|0,this._SoundFadeOutTime),0==f.getGameAttribute(this._SoundtrackGlobalValueName).length?this._SelectedSoundChannel=f.asNumber(this._BehaviorSplitValues.h.SoundChannel[0]):this._SelectedSoundChannel=this._SoundFadeInStart>this._SoundFadeOutTime?f.asNumber(this._BehaviorSplitValues.h.SoundChannel[0]): +f.asNumber(this._BehaviorSplitValues.h.SoundChannel[1]),f.getGameAttribute(this._SoundtrackGlobalValueName)[0]=""+n.string(this._Soundtrack),f.getGameAttribute(this._SoundtrackGlobalValueName)[1]=this._SelectedSoundChannel,null!=this._Soundtrack&&f.runLater(1E3*this._SoundFadeInStart,function(a){f.loopSoundOnChannel(b._Soundtrack,f.asNumber(b._SelectedSoundChannel)|0);f.fadeOutSoundOnChannel(f.asNumber(b._SelectedSoundChannel)|0,0);f.fadeInSoundOnChannel(f.asNumber(b._SelectedSoundChannel)|0,b._SoundFadeInTime)}, +null))),0!=this._SoundtrackQueue.length&&(""+n.string(f.getGameAttribute(this._SoundtrackGlobalValueName)[0])==""+n.string(this._SoundtrackQueue[0])?(this._SoundtrackQueue.splice(0,1),this._SaveQueuedSoundtrack&&(f.getGameAttribute(this._SoundtrackGlobalValueName)[2]=this._SoundtrackQueue.slice())):(0==f.getGameAttribute(this._SoundtrackGlobalValueName).length?this._SelectedSoundChannel=f.asNumber(this._BehaviorSplitValues.h.SoundChannel[0]):this._SelectedSoundChannel=f.asNumber(f.getGameAttribute(this._SoundtrackGlobalValueName)[1]), +0<f.getPositionForChannel(this._SelectedSoundChannel|0)&&(this._QueueStarted=!0),this._QueueStarted&&0==f.getPositionForChannel(this._SelectedSoundChannel|0)&&("[No Soundtrack]"==this._SoundtrackQueue[0]?(f.stopSoundOnChannel(this._SelectedSoundChannel|0),this._Soundtrack=f.getDefaultValue(this._Soundtrack)):(this._Soundtrack=f.getSoundByName(""+n.string(this._SoundtrackQueue[0])),f.loopSoundOnChannel(this._Soundtrack,this._SelectedSoundChannel|0)),this._SoundtrackQueue.splice(0,1),f.getGameAttribute(this._SoundtrackGlobalValueName)[0]= +""+n.string(this._Soundtrack),f.getGameAttribute(this._SoundtrackGlobalValueName)[1]=this._SelectedSoundChannel,this._SaveQueuedSoundtrack&&(f.getGameAttribute(this._SoundtrackGlobalValueName)[2]=this._SoundtrackQueue.slice()),this._QueueStarted=!1))))},_event_Drawing:function(a,b,c){if(this.wrapper.enabled&&this._Debug)for(a.translateToScreen(),f.setDrawingLayerToSceneLayer(),a.setFont(this._DebugFont),a.drawString("Now Playing:"+n.string(this._Soundtrack),f.asNumber(this._BehaviorSplitValues.h.DebugPosition[0]), +f.asNumber(this._BehaviorSplitValues.h.DebugPosition[1])),b=0,c=this._SoundtrackQueue.length;b<c;){var d=b++;a.drawString("Queued:"+n.string(this._SoundtrackQueue[d]),f.asNumber(this._BehaviorSplitValues.h.DebugPosition[0]),f.asNumber(this._BehaviorSplitValues.h.DebugPosition[1])+a.font.getHeight()/h.SCALE*(d+1))}},_customEvent_FadeMusic:function(){var a=this;f.fadeOutSoundOnChannel(f.asNumber(f.getGameAttribute(this._SoundtrackGlobalValueName)[1])|0,this._SoundFadeOutTime);f.runLater(1E3*this._SoundFadeOutTime, +function(b){f.stopSoundOnChannel(f.asNumber(f.getGameAttribute(a._SoundtrackGlobalValueName)[1])|0);f.fadeInSoundOnChannel(f.asNumber(f.getGameAttribute(a._SoundtrackGlobalValueName)[1])|0,0);f.setGameAttribute(a._SoundtrackGlobalValueName,[])},null)},_customEvent_ResetSoundtrack:function(){f.setGameAttribute(this._SoundtrackGlobalValueName,[]);this._Initialized=!1},_customEvent_ConditionalSoundtrack:function(){if(0!=this._ConditionalSoundtrack.length)for(var a=0,b=O.__cast(this._ConditionalSoundtrack, +Array);a<b.length;){var c=b[a];++a;Object.prototype.hasOwnProperty.call(this._BehaviorSplitValues.h,""+n.string(c))||(this._BehaviorSplitValues.h[""+n.string(c)]=(""+n.string(c)).split("|"),this._BehaviorSplitValues.h["Conditions"+n.string(c)]=(""+n.string(this._BehaviorSplitValues.h[""+n.string(c)][2])).split("/"));for(var d=this._SoundConditions=0,e=this._BehaviorSplitValues.h["Conditions"+n.string(c)].length;d<e;){var g=d++;Object.prototype.hasOwnProperty.call(this._BehaviorSplitValues.h,""+n.string(this._BehaviorSplitValues.h["Conditions"+ +n.string(c)][g]))||(this._BehaviorSplitValues.h[""+n.string(this._BehaviorSplitValues.h["Conditions"+n.string(c)][g])]=(""+n.string(this._BehaviorSplitValues.h["Conditions"+n.string(c)][g])).split(","));"[Global Value]"==this._BehaviorSplitValues.h[""+n.string(this._BehaviorSplitValues.h["Conditions"+n.string(c)][g])][1]?"-"==this._BehaviorSplitValues.h[""+n.string(this._BehaviorSplitValues.h["Conditions"+n.string(c)][g])][2]?this._ComparisonValue=""+n.string(f.getGameAttribute(""+n.string(this._BehaviorSplitValues.h[""+ +n.string(this._BehaviorSplitValues.h["Conditions"+n.string(c)][g])][0]))):null!=f.getGameAttribute(""+n.string(this._BehaviorSplitValues.h[""+n.string(this._BehaviorSplitValues.h["Conditions"+n.string(c)][g])][0]))?"List"==(""+n.string(this._BehaviorSplitValues.h[""+n.string(this._BehaviorSplitValues.h["Conditions"+n.string(c)][g])][2])).split(":")[0]?this._ComparisonValue=""+n.string(f.getGameAttribute(""+n.string(this._BehaviorSplitValues.h[""+n.string(this._BehaviorSplitValues.h["Conditions"+n.string(c)][g])][0]))[f.asNumber(this._BehaviorSplitValues.h[""+ +n.string(this._BehaviorSplitValues.h["Conditions"+n.string(c)][g])][1])|0]):this._ComparisonValue=""+n.string(f.getGameAttribute(""+n.string(this._BehaviorSplitValues.h[""+n.string(this._BehaviorSplitValues.h["Conditions"+n.string(c)][g])][0])).h[""+n.string(this._BehaviorSplitValues.h[""+n.string(this._BehaviorSplitValues.h["Conditions"+n.string(c)][g])][1])]):this._ComparisonValue="null":"-"==this._BehaviorSplitValues.h[""+n.string(this._BehaviorSplitValues.h["Conditions"+n.string(c)][g])][2]?this._ComparisonValue= +""+n.string(f.getValueForScene(this._BehaviorSplitValues.h[""+n.string(this._BehaviorSplitValues.h["Conditions"+n.string(c)][g])][1],this._BehaviorSplitValues.h[""+n.string(this._BehaviorSplitValues.h["Conditions"+n.string(c)][g])][0])):null!=f.getValueForScene(this._BehaviorSplitValues.h[""+n.string(this._BehaviorSplitValues.h["Conditions"+n.string(c)][g])][1],this._BehaviorSplitValues.h[""+n.string(this._BehaviorSplitValues.h["Conditions"+n.string(c)][g])][0])?"List"==(""+n.string(this._BehaviorSplitValues.h[""+ +n.string(this._BehaviorSplitValues.h["Conditions"+n.string(c)][g])][2])).split(":")[0]?this._ComparisonValue=""+n.string(f.getValueForScene(this._BehaviorSplitValues.h[""+n.string(this._BehaviorSplitValues.h["Conditions"+n.string(c)][g])][1],this._BehaviorSplitValues.h[""+n.string(this._BehaviorSplitValues.h["Conditions"+n.string(c)][g])][0])[f.asNumber(this._BehaviorSplitValues.h[""+n.string(this._BehaviorSplitValues.h["Conditions"+n.string(c)][g])][1])|0]):this._ComparisonValue=""+n.string(f.getValueForScene(this._BehaviorSplitValues.h[""+ +n.string(this._BehaviorSplitValues.h["Conditions"+n.string(c)][g])][1],this._BehaviorSplitValues.h[""+n.string(this._BehaviorSplitValues.h["Conditions"+n.string(c)][g])][0]).h[""+n.string(this._BehaviorSplitValues.h[""+n.string(this._BehaviorSplitValues.h["Conditions"+n.string(c)][g])][1])]):this._ComparisonValue="null";"Equal"==this._BehaviorSplitValues.h[""+n.string(this._BehaviorSplitValues.h["Conditions"+n.string(c)][g])][3]&&""+this._ComparisonValue==""+n.string(this._BehaviorSplitValues.h[""+ +n.string(this._BehaviorSplitValues.h["Conditions"+n.string(c)][g])][4])&&(this._SoundConditions+=1);"Different"==this._BehaviorSplitValues.h[""+n.string(this._BehaviorSplitValues.h["Conditions"+n.string(c)][g])][3]&&""+this._ComparisonValue!=""+n.string(this._BehaviorSplitValues.h[""+n.string(this._BehaviorSplitValues.h["Conditions"+n.string(c)][g])][4])&&(this._SoundConditions+=1);"Greater"==this._BehaviorSplitValues.h[""+n.string(this._BehaviorSplitValues.h["Conditions"+n.string(c)][g])][3]&&f.asNumber(this._ComparisonValue)> +f.asNumber(this._BehaviorSplitValues.h[""+n.string(this._BehaviorSplitValues.h["Conditions"+n.string(c)][g])][4])&&(this._SoundConditions+=1);"Smaller"==this._BehaviorSplitValues.h[""+n.string(this._BehaviorSplitValues.h["Conditions"+n.string(c)][g])][3]&&f.asNumber(this._ComparisonValue)<f.asNumber(this._BehaviorSplitValues.h[""+n.string(this._BehaviorSplitValues.h["Conditions"+n.string(c)][g])][4])&&(this._SoundConditions+=1)}if(this._SoundConditions>=f.asNumber(this._BehaviorSplitValues.h[""+n.string(c)][1])){Object.prototype.hasOwnProperty.call(this._BehaviorSplitValues.h, +"SoundNameData"+n.string(c))||(this._BehaviorSplitValues.h["SoundNameData"+n.string(c)]=(""+n.string(this._BehaviorSplitValues.h[""+n.string(c)][0])).split(","));"Queue"==this._BehaviorSplitValues.h["SoundNameData"+n.string(c)][1]?(this._SoundtrackQueue.push(this._BehaviorSplitValues.h["SoundNameData"+n.string(c)][0]),this._SaveQueuedSoundtrack&&(f.getGameAttribute(this._SoundtrackGlobalValueName)[2]=this._SoundtrackQueue.slice())):("[No Soundtrack]"==this._BehaviorSplitValues.h["SoundNameData"+n.string(c)][0]? +this._Soundtrack=f.getDefaultValue(this._Soundtrack):this._Soundtrack=f.getSoundByName(""+n.string(this._BehaviorSplitValues.h["SoundNameData"+n.string(c)][0])),this._SoundFadeOutTime=f.asNumber(this._BehaviorSplitValues.h["SoundNameData"+n.string(c)][1]),this._SoundFadeInStart=f.asNumber(this._BehaviorSplitValues.h["SoundNameData"+n.string(c)][2]),this._SoundFadeInTime=f.asNumber(this._BehaviorSplitValues.h["SoundNameData"+n.string(c)][3]));break}}},_customEvent_ClearSoundtrackQueue:function(){this._SoundtrackQueue.length= +0;this._SaveQueuedSoundtrack&&(f.getGameAttribute(this._SoundtrackGlobalValueName)[2]=this._SoundtrackQueue.slice())},init:function(){this._SoundtrackQueue=[];this._BehaviorSplitValues=new V;this._BehaviorSplitValues.h.SoundChannel=this._SoundChannel.split(",");this._BehaviorSplitValues.h.DebugPosition=this._DebugPosition.split(",");null==f.getGameAttribute(this._SoundtrackGlobalValueName)?f.setGameAttribute(this._SoundtrackGlobalValueName,[]):this._SaveQueuedSoundtrack&&null!=f.getGameAttribute(this._SoundtrackGlobalValueName)[2]&& +(this._SoundtrackQueue=f.getGameAttribute(this._SoundtrackGlobalValueName)[2].slice());this.addListener(f.engine.whenUpdated,q(this,this._event_Updating));this.addListener(f.engine.whenDrawing,q(this,this._event_Drawing))},forwardMessage:function(a){},__class__:Gs});var Hs=function(a,b,c){w.call(this,b);this.nameMap.h.Actor="actor";this.nameMap.h["Origin X"]="_OriginX";this._OriginX=0;this.nameMap.h["Origin Y"]="_OriginY";this._OriginY=0;this.nameMap.h["Camera Max X"]="_CameraMaxX";this._CameraMaxX= +0;this.nameMap.h["Camera Max Y"]="_CameraMaxY";this._CameraMaxY=0;this.nameMap.h["Camera Min X"]="_CameraMinX";this._CameraMinX=0;this.nameMap.h["Camera Min Y"]="_CameraMinY";this._CameraMinY=0;this.nameMap.h["Parallax Rate"]="_ParallaxRate";this._ParallaxRate="50,50";this.nameMap.h["Old Camera X"]="_OldCameraX";this._OldCameraX=0;this.nameMap.h["Old Camera Y"]="_OldCameraY";this._OldCameraY=0;this.nameMap.h["Behavior Split Values"]="_BehaviorSplitValues"};k["scripts.Design_318_318_ActorParallax"]= +Hs;Hs.__name__="scripts.Design_318_318_ActorParallax";Hs.__super__=w;Hs.prototype=u(w.prototype,{_OriginX:null,_OriginY:null,_CameraMaxX:null,_CameraMaxY:null,_CameraMinX:null,_CameraMinY:null,_ParallaxRate:null,_OldCameraX:null,_OldCameraY:null,_BehaviorSplitValues:null,_event_Updating:function(a){this.wrapper.enabled&&(this._OldCameraX==f.getScreenXCenter()&&this._OldCameraY==f.getScreenYCenter()||this._customEvent_UpdatePosition(),this._OldCameraX=f.getScreenXCenter(),this._OldCameraY=f.getScreenYCenter())}, +_customEvent_UpdatePosition:function(){f.getSceneWidth()>f.getScreenWidth()&&this.actor.setXCenter(this._OriginX+2*(f.getScreenXCenter()-this._CameraMinX)*f.asNumber(this._BehaviorSplitValues.h.ParallaxRate[0])/(this._CameraMaxX-this._CameraMinX));f.getSceneHeight()>f.getScreenHeight()&&this.actor.setYCenter(this._OriginY+2*(f.getScreenYCenter()-this._CameraMinY)*f.asNumber(this._BehaviorSplitValues.h.ParallaxRate[1])/(this._CameraMaxY-this._CameraMinY))},init:function(){this._BehaviorSplitValues= +new V;this._BehaviorSplitValues.h.ParallaxRate=this._ParallaxRate.split(",");this.actor.makeAlwaysSimulate();f.getSceneWidth()>=f.getScreenWidth()?this._OriginX=this.actor.getXCenter()-f.asNumber(this._BehaviorSplitValues.h.ParallaxRate[0]):this._OriginX=this.actor.getXCenter();f.getSceneWidth()>=f.getScreenWidth()?this._OriginY=this.actor.getYCenter()-f.asNumber(this._BehaviorSplitValues.h.ParallaxRate[1]):this._OriginY=this.actor.getYCenter();this._CameraMaxX=this.actor.getXCenter()+f.getScreenWidth(); +this._CameraMinX=this.actor.getXCenter()-f.getScreenWidth();this._CameraMaxX>f.getSceneWidth()-f.getScreenWidth()/2&&(this._CameraMaxX=f.getSceneWidth()-f.getScreenWidth()/2);this._CameraMinX<f.getScreenWidth()/2&&(this._CameraMinX=f.getScreenWidth()/2);this._CameraMaxY=this.actor.getYCenter()+f.getScreenHeight();this._CameraMinY=this.actor.getYCenter()-f.getScreenHeight();this._CameraMaxY>f.getSceneHeight()-f.getScreenHeight()/2&&(this._CameraMaxY=f.getSceneHeight()-f.getScreenHeight()/2);this._CameraMinY< +f.getScreenHeight()/2&&(this._CameraMinY=f.getScreenHeight()/2);this._customEvent_UpdatePosition();this.addListener(this.actor.whenUpdated,q(this,this._event_Updating))},forwardMessage:function(a){},__class__:Hs});var Is=function(a,b,c){w.call(this,b);this.nameMap.h.Actor="actor";this.nameMap.h.Right="_Right";this.nameMap.h.Left="_Left";this.nameMap.h.Jump="_Jump";this.nameMap.h["Player Control"]="_PlayerControl";this._PlayerControl=!0;this.nameMap.h.Run="_Run";this.nameMap.h["Touching Ground"]="_TouchingGround"; +this._TouchingGround=!1;this.nameMap.h["On Ground"]="_OnGround";this._OnGround=!1;this.nameMap.h["Top Speed"]="_TopSpeed";this._TopSpeed=0;this.nameMap.h["Walking Speed"]="_WalkingSpeed";this._WalkingSpeed=5;this.nameMap.h["Running Speed"]="_RunningSpeed";this._RunningSpeed=10;this.nameMap.h["Is Running"]="_IsRunning";this._IsRunning=!1;this.nameMap.h["Is Walking"]="_IsWalking";this._IsWalking=!1;this.nameMap.h["Facing Data"]="_FacingData";this._FacingData="Facing,Right";this.nameMap.h.Acceleration= +"_Acceleration";this._Acceleration=5;this.nameMap.h["Normal Angle"]="_NormalAngle";this._NormalAngle=0;this.nameMap.h["Ground Slowdown"]="_GroundSlowdown";this._GroundSlowdown=.95;this.nameMap.h["Air Slowdown"]="_AirSlowdown";this._AirSlowdown=.85;this.nameMap.h["Sensor Platform Group"]="_SensorPlatformGroup";this.nameMap.h["Platform Actor"]="_PlatformActor";this.nameMap.h["Touching Sensor"]="_TouchingSensor";this._TouchingSensor=!1;this.nameMap.h["Is Dropping"]="_IsDropping";this._IsDropping=!1; +this.nameMap.h["On Sensor"]="_OnSensor";this._OnSensor=!1;this.nameMap.h["Land on Sensor"]="_LandonSensor";this._LandonSensor=!1;this.nameMap.h["Held Key"]="_HeldKey";this.nameMap.h["Pressed Key"]="_PressedKey";this.nameMap.h["Key Released"]="_KeyReleased";this._KeyReleased=!1;this.nameMap.h["Old Y"]="_OldY";this._OldY=0;this.nameMap.h["Jumping Up"]="_JumpingUp";this._JumpingUp=!1;this.nameMap.h["Falling Down"]="_FallingDown";this._FallingDown=!1;this.nameMap.h["Is Jumping"]="_IsJumping";this._IsJumping= +!1;this.nameMap.h["Jump Slowdown"]="_JumpSlowdown";this._JumpSlowdown=.85;this.nameMap.h["Jump Force"]="_JumpForce";this._JumpForce=20;this.nameMap.h["Running Jump Force"]="_RunningJumpForce";this._RunningJumpForce=25;this.nameMap.h["Jump Sound"]="_JumpSound";this.nameMap.h["Sound Channel"]="_SoundChannel";this._SoundChannel="-";this.nameMap.h["Landing Sound"]="_LandingSound";this.nameMap.h["Handle Landing"]="_HandleLanding";this._HandleLanding=!1;this.nameMap.h["Old X Position"]="_OldXPosition"; +this._OldXPosition=0;this.nameMap.h["Y Normal"]="_YNormal";this._YNormal=0;this.nameMap.h["Use Default"]="_UseDefault";this._UseDefault=!1;this.nameMap.h["Idle Right"]="_IdleRight";this._IdleRight="";this.nameMap.h["Idle Left"]="_IdleLeft";this._IdleLeft="";this.nameMap.h["Jump Right"]="_JumpRight";this._JumpRight="";this.nameMap.h["Jump Left"]="_JumpLeft";this._JumpLeft="";this.nameMap.h["Fall Right"]="_FallRight";this._FallRight="";this.nameMap.h["Fall Left"]="_FallLeft";this._FallLeft="";this.nameMap.h["Run Right"]= +"_RunRight";this._RunRight="";this.nameMap.h["Run Left"]="_RunLeft";this._RunLeft="";this.nameMap.h["Walk Right"]="_WalkRight";this._WalkRight="";this.nameMap.h["Walk Left"]="_WalkLeft";this._WalkLeft="";this.nameMap.h["Values to Block Animations"]="_ValuestoBlockAnimations";this._ValuestoBlockAnimations=["CutsceneOn,[Value],true","_IsAttacking,Attack Behaviors,true","_Stun,Health,true","_IsDying,Die When 0 Health,true"];this.nameMap.h["Camera Control"]="_CameraControl";this._CameraControl=!0;this.nameMap.h["Jump Buffer Time"]= +"_JumpBufferTime";this._JumpBufferTime=.1;this.nameMap.h["Jump Buffer Ticks"]="_JumpBufferTicks";this._JumpBufferTicks=0;this.nameMap.h["Screen Grid Camera"]="_ScreenGridCamera";this._ScreenGridCamera=!1;this.nameMap.h["Positions List"]="_PositionsList";this.nameMap.h["Platform Offset"]="_PlatformOffset";this._PlatformOffset=0;this.nameMap.h["Block Drop Down"]="_BlockDropDown";this._BlockDropDown=!1;this.nameMap.h["Blocked Platform"]="_BlockedPlatform";this.nameMap.h["Coyote Time"]="_CoyoteTime"; +this._CoyoteTime=.1;this.nameMap.h["Coyote Ticks"]="_CoyoteTicks";this._CoyoteTicks=0;this.nameMap.h["Drop Down Recovery Time"]="_DropDownRecoveryTime";this._DropDownRecoveryTime=.3;this.nameMap.h["Falling Speed Threshold"]="_FallingSpeedThreshold";this._FallingSpeedThreshold=10;this.nameMap.h["Can Land"]="_CanLand";this._CanLand=!1;this.nameMap.h["Bottom Distance"]="_BottomDistance";this._BottomDistance=0;this.nameMap.h["Collision Bottom Offsets"]="_CollisionBottomOffsets";a=new V;a.h["-"]="Height"; +this._CollisionBottomOffsets=a;this.nameMap.h["Platform Speed"]="_PlatformSpeed";this._PlatformSpeed=0;this.nameMap.h["Speed to Stop"]="_SpeedtoStop";this._SpeedtoStop=0;this.nameMap.h.Initialize="_Initialize";this._Initialize=!1;this.nameMap.h["Analog Running Threshold"]="_AnalogRunningThreshold";this._AnalogRunningThreshold=.75;this.nameMap.h["Analog Adjustment"]="_AnalogAdjustment";this._AnalogAdjustment=!1;this.nameMap.h["Used Analog"]="_UsedAnalog";this._UsedAnalog=!1;this.nameMap.h["Facing Value Name"]= +"_FacingValueName";this._FacingValueName="";this.nameMap.h["Behavior Split Values"]="_BehaviorSplitValues";this.nameMap.h["Stop Jump Complete"]="_StopJumpComplete";this._StopJumpComplete=!1;this.nameMap.h["Platform Actors List"]="_PlatformActorsList";this.nameMap.h["Platform Actor Data"]="_PlatformActorData"};k["scripts.Design_319_319_PlayerControl"]=Is;Is.__name__="scripts.Design_319_319_PlayerControl";Is.__super__=w;Is.prototype=u(w.prototype,{_Right:null,_Left:null,_Jump:null,_PlayerControl:null, +_Run:null,_TouchingGround:null,_OnGround:null,_TopSpeed:null,_WalkingSpeed:null,_RunningSpeed:null,_IsRunning:null,_IsWalking:null,_FacingData:null,_Acceleration:null,_NormalAngle:null,_GroundSlowdown:null,_AirSlowdown:null,_SensorPlatformGroup:null,_PlatformActor:null,_TouchingSensor:null,_IsDropping:null,_OnSensor:null,_LandonSensor:null,_HeldKey:null,_PressedKey:null,_KeyReleased:null,_OldY:null,_JumpingUp:null,_FallingDown:null,_IsJumping:null,_JumpSlowdown:null,_JumpForce:null,_RunningJumpForce:null, +_JumpSound:null,_SoundChannel:null,_LandingSound:null,_HandleLanding:null,_OldXPosition:null,_YNormal:null,_UseDefault:null,_IdleRight:null,_IdleLeft:null,_JumpRight:null,_JumpLeft:null,_FallRight:null,_FallLeft:null,_RunRight:null,_RunLeft:null,_WalkRight:null,_WalkLeft:null,_ValuestoBlockAnimations:null,_CameraControl:null,_JumpBufferTime:null,_JumpBufferTicks:null,_ScreenGridCamera:null,_PositionsList:null,_PlatformOffset:null,_BlockDropDown:null,_BlockedPlatform:null,_CoyoteTime:null,_CoyoteTicks:null, +_DropDownRecoveryTime:null,_FallingSpeedThreshold:null,_CanLand:null,_BottomDistance:null,_CollisionBottomOffsets:null,_PlatformSpeed:null,_SpeedtoStop:null,_Initialize:null,_AnalogRunningThreshold:null,_AnalogAdjustment:null,_UsedAnalog:null,_FacingValueName:null,_BehaviorSplitValues:null,_StopJumpComplete:null,_PlatformActorsList:null,_PlatformActorData:null,_event_Updating:function(a){if(this.wrapper.enabled){this._Initialize||(this._Initialize=!0,this._SpeedtoStop=this.actor.getXVelocity());this._CameraControl&& +(this._ScreenGridCamera?f.engine.moveCamera(f.getScreenWidth()/2+f.getScreenWidth()*Math.floor(this.actor.getXCenter()/f.getScreenWidth()),f.getScreenHeight()/2+f.getScreenHeight()*Math.floor(this.actor.getYCenter()/f.getScreenHeight())):f.engine.cameraFollow(this.actor));this._customEvent_Direction();this._OnGround=this._TouchingGround;this._TouchingGround=!1;this._OnSensor=this._TouchingSensor;this._TouchingSensor=!1;this._TopSpeed=this._IsRunning?this._RunningSpeed:this._WalkingSpeed;this._OnGround? +(this._StopJumpComplete=this._FallingDown=this._IsJumping=!1,this._BlockedPlatform=f.getDefaultValue(this._BlockedPlatform)):(this._PositionsList=[],this._NormalAngle=-90,this._PlatformOffset=0,this._HandleLanding=this._BlockDropDown=!1,this._PlatformActor=f.getDefaultValue(this._PlatformActor),this._PlatformActorsList=[],this._PlatformActorData=new V);f.hasValue(this._BlockedPlatform)&&0>this.actor.getYVelocity()&&(this._BlockedPlatform=f.getDefaultValue(this._BlockedPlatform));-10!=this._YNormal&& +-9<=this._YNormal&&-4>this._YNormal&&this._OnGround&&(0>this.actor.getYVelocity()&&0!=this.actor.getXVelocity()&&this.actor.setYVelocity(.5*this.actor.getYVelocity()),this._IsWalking||(this.actor.setXVelocity(0),this.actor.setYVelocity(0),this.actor.setX(this._OldXPosition)));this._OldXPosition=this.actor.getX();a=this._CollisionBottomOffsets;var b=this.actor.getAnimation();Object.prototype.hasOwnProperty.call(a.h,b)?(a=this._CollisionBottomOffsets,b=this.actor.getAnimation(),"Height"==a.h[b]?this._BottomDistance= +this.actor.getHeight():(a=this._CollisionBottomOffsets,b=this.actor.getAnimation(),this._BottomDistance=f.asNumber(a.h[b]))):this._BottomDistance="Height"==this._CollisionBottomOffsets.h["-"]?this.actor.getHeight():f.asNumber(this._CollisionBottomOffsets.h["-"]);if(this._OnSensor&&!this._IsDropping){this._LandonSensor||(this._LandonSensor=!0,this.actor.shout("_customEvent_Landing"));a=0;for(b=O.__cast(this._PlatformActorsList,Array);a<b.length;){var c=b[a];++a;if(this.actor.getY()+this._BottomDistance<= +c.getY()+c.getHeight())if(c.hasBehavior("Semi Solid Position")){if(0<=this.actor.getXCenter()-c.getX()&&this.actor.getXCenter()-c.getX()<c.getWidth()&&this.actor.getY()+this._BottomDistance>=c.getY()+f.asNumber(this._PlatformActorData.h[""+n.string(c)][Math.round(this.actor.getXCenter()-c.getX())].h.YOffset)&&this.actor.getY()+this._BottomDistance<=c.getY()+(f.asNumber(this._PlatformActorData.h[""+n.string(c)][Math.round(this.actor.getXCenter()-c.getX())].h.YOffset)+f.getTileHeight()/2)){this._PositionsList= +this._PlatformActorData.h[""+n.string(c)].slice();this._PlatformActor=c;this._BlockDropDown=f.asBoolean(this._PlatformActorData.h[""+n.string(c)+"DropDown"]);this._PlatformOffset=f.asNumber(this._PositionsList[Math.round(this.actor.getXCenter()-this._PlatformActor.getX())].h.YOffset);break}}else{this._PlatformOffset=0;this._PlatformActor=c;this._BlockDropDown=!1;break}}this._PlatformSpeed=this._PlatformActor.getXVelocity();0<this._PlatformActor.getYVelocity()?this.actor.setYVelocity(this._PlatformActor.getYVelocity()): +this.actor.setYVelocity(0);this.actor.setY(this._PlatformActor.getY()+this._PlatformOffset-this._BottomDistance+.5);this._PlayerControl&&f.isKeyDown(this._HeldKey)&&f.isKeyPressed(this._PressedKey)&&this._customEvent_DropDown()}else this._LandonSensor=!1,this._PlatformSpeed=0;this._FallingDown&&this.actor.getYVelocity()>=this._FallingSpeedThreshold?this._CanLand=!0:this._CanLand=!1;this._PlayerControl?(f.isKeyDown(this._Jump)||(this._IsJumping&&(this._KeyReleased=!0),this._JumpBufferTicks=0),this._StopJumpComplete|| +this._OnGround||!this._KeyReleased||this._customEvent_StopJump(),f.isKeyPressed(this._Jump)&&((this._OnGround||0<this._CoyoteTicks)&&this._customEvent_Jump(),this._OnGround||(this._JumpBufferTicks=this._JumpBufferTime)),0<this._JumpBufferTicks&&(this._JumpBufferTicks-=.01,(this._OnGround||0>=this._JumpBufferTicks)&&this._customEvent_Jump()),0==Math.max(K.getButtonPressure(this._Right),K.getButtonPressure(this._Left))?this._UsedAnalog=!1:0<Math.max(K.getButtonPressure(this._Right),K.getButtonPressure(this._Left))&& +1>Math.max(K.getButtonPressure(this._Right),K.getButtonPressure(this._Left))&&(this._UsedAnalog=!0),f.isKeyDown(this._Run)||this._UsedAnalog&&Math.max(K.getButtonPressure(this._Right),K.getButtonPressure(this._Left))>=this._AnalogRunningThreshold?this._customEvent_Run():this._customEvent_StopRun(),this._AnalogAdjustment&&this._UsedAnalog&&(this._TopSpeed*=Math.max(K.getButtonPressure(this._Right),K.getButtonPressure(this._Left))),f.isKeyDown(this._Left)&&!f.isKeyDown(this._Right)&&this.actor.shout("_customEvent_WalkLeft"), +f.isKeyDown(this._Right)&&!f.isKeyDown(this._Left)&&this.actor.shout("_customEvent_WalkRight"),(!f.isKeyDown(this._Left)&&!f.isKeyDown(this._Right)||this._OnGround&&f.isKeyDown(this._Left)&&f.isKeyDown(this._Right))&&this._customEvent_Stop()):this._IsWalking||this._customEvent_Stop();0<this._CoyoteTicks&&(this._CoyoteTicks-=.01,0>=this._CoyoteTicks&&(this._CoyoteTicks=0));this._customEvent_Animations()}},_event_ActorAny:function(a){if(this.wrapper.enabled){if(!a.thisCollidedWithSensor&&a.thisFromBottom){this._customEvent_Landing(); +this._TouchingGround=!0;for(var b=0,c=a.points;b<c.length;){var d=c[b];++b;this._NormalAngle=Math.round(57.29577951308402*Math.atan2(Math.round(h.toPixelUnits(d.normalY)),Math.round(h.toPixelUnits(d.normalX))))}0<this._NormalAngle&&(this._NormalAngle=-90)}this.internalGetGroup(a.otherActor,a.otherShape,a)==this._SensorPlatformGroup&&a.otherActor!=this._BlockedPlatform&&this.actor.getY()+this._BottomDistance<=a.otherActor.getY()+a.otherActor.getHeight()&&!this._IsDropping&&0<=this.actor.getYVelocity()&& +(a.otherActor.hasBehavior("Semi Solid Position")?(this._PositionsList=a.otherActor.getValue("Semi Solid Position","_PositionsList").slice(),this._BlockDropDown=f.asBoolean(a.otherActor.getValue("Semi Solid Position","_BlockDropDown")),S.contains(this._PlatformActorsList,a.otherActor)||(this._PlatformActorsList.push(a.otherActor),b=this._PlatformActorData,c=""+n.string(a.otherActor),d=this._PositionsList.slice(),b.h[c]=d,b=this._PlatformActorData,c=""+n.string(a.otherActor)+"DropDown",d=f.asBoolean(a.otherActor.getValue("Semi Solid Position", +"_BlockDropDown")),b.h[c]=d),this._PlatformActor==a.otherActor||0<=this.actor.getXCenter()-a.otherActor.getX()&&this.actor.getXCenter()-a.otherActor.getX()<a.otherActor.getWidth()&&this.actor.getY()+this._BottomDistance>=a.otherActor.getY()+f.asNumber(this._PositionsList[Math.round(this.actor.getXCenter()-a.otherActor.getX())].h.YOffset)&&this.actor.getY()+this._BottomDistance<=a.otherActor.getY()+(f.asNumber(this._PositionsList[Math.round(this.actor.getXCenter()-a.otherActor.getX())].h.YOffset)+ +f.getTileHeight()/2)?(this._TouchingSensor=this._TouchingGround=!0,this._PlatformActor=a.otherActor,this._BlockedPlatform=f.getDefaultValue(this._BlockedPlatform)):this._PositionsList=[]):this.actor.getY()+this._BottomDistance<=a.otherActor.getY()+a.otherActor.getHeight()/2&&(this._TouchingSensor=this._TouchingGround=!0,this._PlatformActor=a.otherActor,this._BlockedPlatform=f.getDefaultValue(this._BlockedPlatform),S.contains(this._PlatformActorsList,a.otherActor)||this._PlatformActorsList.push(a.otherActor))); +b=0;for(c=a.points;b<c.length;)d=c[b],++b,this._YNormal=f.asNumber(Math.round(h.toPixelUnits(d.normalY)))}},_customEvent_GiveControl:function(){this._PlayerControl=!0},_customEvent_RemoveControl:function(){this._PlayerControl=!1},_customEvent_EnableCamera:function(){this._CameraControl=!0},_customEvent_DisableCamera:function(){this._CameraControl=!1},_customEvent_Direction:function(){this._OnGround||(this.actor.getY()<this._OldY&&(this._JumpingUp=!0,this._FallingDown=!1),this.actor.getY()>this._OldY&& +(this._IsJumping||0!=this._CoyoteTicks||(this._CoyoteTicks=this._CoyoteTime),this._IsJumping=!0,this._JumpingUp=!1,this._FallingDown=!0));this._OldY=this.actor.getY()},_customEvent_DropDown:function(){var a=this;this._IsDropping||!this._OnSensor||this._BlockDropDown||(this._IsDropping=!0,this.actor.setYVelocity(0),this._BlockedPlatform=this._PlatformActor,this._PositionsList=[],this._PlatformOffset=0,this._PlatformActor=f.getDefaultValue(this._PlatformActor),this._PlatformActorsList=[],this._PlatformActorData= +new V,f.runLater(1E3*this._DropDownRecoveryTime,function(b){a._IsDropping=!1;a._OnSensor=!1;a._OnGround=!1},this.actor))},_customEvent_WalkRight:function(){this._IsWalking=!0;this.actor.setActorValue(this._FacingValueName,"Right");Math.round(this.actor.getXVelocity())>=this._TopSpeed+this._PlatformSpeed?this.actor.setXVelocity(this._TopSpeed+this._PlatformSpeed):(this.actor.applyImpulseInDirection(this._NormalAngle+90,this._Acceleration),this.actor.setActorValue("Facing Right?",!0))},_customEvent_WalkLeft:function(){this._IsWalking= +!0;this.actor.setActorValue(this._FacingValueName,"Left");Math.round(this.actor.getXVelocity())<=-this._TopSpeed+this._PlatformSpeed?this.actor.setXVelocity(-this._TopSpeed+this._PlatformSpeed):(this.actor.applyImpulseInDirection(this._NormalAngle-90,this._Acceleration),this.actor.setActorValue("Facing Right?",!1))},_customEvent_Stop:function(){this._IsWalking&&(this._SpeedtoStop=this.actor.getXVelocity());this._IsWalking=!1;this._OnGround&&!this._IsJumping?(-9<=this._YNormal&&-4>this._YNormal&&this.actor.setYVelocity(0), +this._SpeedtoStop*=this._GroundSlowdown,this.actor.setXVelocity(this._SpeedtoStop+this._PlatformSpeed)):(this._SpeedtoStop*=this._AirSlowdown,this.actor.setXVelocity(this._SpeedtoStop));.001>Math.abs(this.actor.getXVelocity())&&this.actor.setXVelocity(0)},_customEvent_Run:function(){this._IsRunning=!0},_customEvent_StopRun:function(){this._IsRunning=!1},_customEvent_Jump:function(){(this._OnGround||0<this._CoyoteTicks)&&!this._IsDropping&&(this._JumpBufferTicks=0,this._KeyReleased=!1,this.actor.setY(this.actor.getY()- +1),this._CoyoteTicks=0,this._IsJumping=this._JumpingUp=!0,this._IsRunning?this.actor.setYVelocity(-this._RunningJumpForce):this.actor.setYVelocity(-this._JumpForce),f.hasValue(this._JumpSound)&&("-"==this._SoundChannel?f.playSound(this._JumpSound):f.playSoundOnChannel(this._JumpSound,f.asNumber(this._SoundChannel)|0)),f.createRecycledActor(f.getActorType(484),this.actor.getX()+10,this.actor.getY()+28,0),f.createRecycledActor(f.getActorType(486),this.actor.getX()+18,this.actor.getY()+28,0))},_customEvent_StopJump:function(){this._OnGround|| +(0>this.actor.getYVelocity()?this.actor.setYVelocity(this.actor.getYVelocity()*this._JumpSlowdown):this._StopJumpComplete=!0)},_customEvent_Landing:function(){!this._HandleLanding&&this._CanLand&&(this._CoyoteTicks=0,this._HandleLanding=!0,this._IsJumping=!1,f.hasValue(this._LandingSound)&&("-"==this._SoundChannel?f.playSound(this._LandingSound):f.playSoundOnChannel(this._LandingSound,f.asNumber(this._SoundChannel)|0)))},_customEvent_Animations:function(){this._UseDefault=!0;for(var a=0,b=O.__cast(this._ValuestoBlockAnimations, +Array);a<b.length;){var c=b[a];++a;if("[Value]"==this._BehaviorSplitValues.h["BlockCheck"+n.string(c)][1]){if(""+n.string(this.actor.getActorValue(""+n.string(this._BehaviorSplitValues.h["BlockCheck"+n.string(c)][0])))==""+n.string(this._BehaviorSplitValues.h["BlockCheck"+n.string(c)][2]))return}else if(this.actor.hasBehavior(this._BehaviorSplitValues.h["BlockCheck"+n.string(c)][1])&&""+n.string(this.actor.getValue(this._BehaviorSplitValues.h["BlockCheck"+n.string(c)][1],this._BehaviorSplitValues.h["BlockCheck"+ +n.string(c)][0]))==""+n.string(this._BehaviorSplitValues.h["BlockCheck"+n.string(c)][2]))return}!this._JumpingUp&&!this._FallingDown||this._OnGround?this._IsWalking?(this._UseDefault=!1,this._IsRunning?("Right"==this.actor.getActorValue(this._FacingValueName)&&this.actor.setAnimation(this._RunRight),"Left"==this.actor.getActorValue(this._FacingValueName)&&this.actor.setAnimation(this._RunLeft)):("Right"==this.actor.getActorValue(this._FacingValueName)&&this.actor.setAnimation(this._WalkRight),"Left"== +this.actor.getActorValue(this._FacingValueName)&&this.actor.setAnimation(this._WalkLeft))):this._UseDefault&&("Right"==this.actor.getActorValue(this._FacingValueName)&&this.actor.setAnimation(this._IdleRight),"Left"==this.actor.getActorValue(this._FacingValueName)&&this.actor.setAnimation(this._IdleLeft)):(this._UseDefault=!1,this._JumpingUp&&("Right"==this.actor.getActorValue(this._FacingValueName)&&this.actor.setAnimation(this._JumpRight),"Left"==this.actor.getActorValue(this._FacingValueName)&& +this.actor.setAnimation(this._JumpLeft)),this._FallingDown&&("Right"==this.actor.getActorValue(this._FacingValueName)&&this.actor.setAnimation(this._FallRight),"Left"==this.actor.getActorValue(this._FacingValueName)&&this.actor.setAnimation(this._FallLeft)))},init:function(){this._PlatformActorsList=[];this._PlatformActorData=new V;this._BehaviorSplitValues=new V;for(var a=0,b=O.__cast(this._ValuestoBlockAnimations,Array);a<b.length;){var c=b[a];++a;this._BehaviorSplitValues.h["BlockCheck"+n.string(c)]= +(""+n.string(c)).split(",")}this._BottomDistance=this.actor.getHeight();this._OldXPosition=this.actor.getX();this.actor.makeAlwaysSimulate();this._FacingValueName=""+this._FacingData.split(",")[0];this.actor.setActorValue(this._FacingValueName,this._FacingData.split(",")[1]);this._CameraControl&&(this._ScreenGridCamera?f.engine.moveCamera(f.getScreenWidth()/2+f.getScreenWidth()*Math.floor(this.actor.getXCenter()/f.getScreenWidth()),f.getScreenHeight()/2+f.getScreenHeight()*Math.floor(this.actor.getYCenter()/ +f.getScreenHeight())):f.engine.cameraFollow(this.actor));this.addListener(this.actor.whenUpdated,q(this,this._event_Updating));this.addListener(this.actor.whenCollided,q(this,this._event_ActorAny))},forwardMessage:function(a){},__class__:Is});var Js=function(a,b,c){w.call(this,b);this.nameMap.h.Actor="actor";this.nameMap.h.Activate="_Activate";this._Activate=!0;this.nameMap.h["Aura Scale"]="_AuraScale";this._AuraScale=100;this.nameMap.h["Y Origin"]="_YOrigin";this._YOrigin=0;this.nameMap.h["Aura Presets"]= +"_AuraPresets";a=new V;a.h.BaseAura="0";this._AuraPresets=a;this.nameMap.h["X Origin"]="_XOrigin";this._XOrigin=0;this.nameMap.h["Active Auras"]="_ActiveAuras";this._ActiveAuras="0";this.nameMap.h["Auras On"]="_AurasOn";this.nameMap.h.Auras="_Auras";this._Auras=["0/-/0/0/0/Add/100/150/50/Back/Center/Center"];this.nameMap.h["Aura Instances"]="_AuraInstances";this.nameMap.h["Aura Images"]="_AuraImages";this.nameMap.h["Behavior Split Values"]="_BehaviorSplitValues";this.nameMap.h["Aura Cycles"]="_AuraCycles"; +this.nameMap.h.Debug="_Debug";this._Debug=!1;this.nameMap.h["Aura Values"]="_AuraValues";this.nameMap.h["Actor Image Input Local Value"]="_ActorImageInputLocalValue";this._ActorImageInputLocalValue="SpriteImage"};k["scripts.Design_320_320_ActorAura"]=Js;Js.__name__="scripts.Design_320_320_ActorAura";Js.__super__=w;Js.prototype=u(w.prototype,{_Activate:null,_AuraScale:null,_YOrigin:null,_AuraPresets:null,_XOrigin:null,_ActiveAuras:null,_AurasOn:null,_Auras:null,_AuraInstances:null,_AuraImages:null, +_BehaviorSplitValues:null,_AuraCycles:null,_Debug:null,_AuraValues:null,_ActorImageInputLocalValue:null,_event_Drawing:function(a,b,c){if(this.wrapper.enabled&&this._Activate)for(a=0,b=this._Auras.length;a<b;)if(c=a++,S.contains(this._AurasOn,""+c)){if(0<f.asNumber(this._BehaviorSplitValues.h["AuraSettings"+c][0])){var d=this._AuraValues,e=f.asNumber(this._AuraValues.h["AuraTimer"+c])-1;d.h["AuraTimer"+c]=e;if(0>=f.asNumber(this._AuraValues.h["AuraTimer"+c])){F.remove(this._AurasOn,""+c);f.clearImage(this._AuraImages[c]); +Object.prototype.hasOwnProperty.call(this._AuraCycles.h,""+c)&&(this._AuraValues.h["AuraScaleSpeed"+c]=this._BehaviorSplitValues.h["AuraCycle"+c][0],this._AuraValues.h["AuraScaleModifier"+c]=0,this._AuraValues.h["AuraOpacitySpeed"+c]=this._BehaviorSplitValues.h["AuraCycle"+c][3],this._AuraValues.h["AuraOpacityModifier"+c]=0);continue}}if(Object.prototype.hasOwnProperty.call(this._AuraCycles.h,""+c)){d=this._AuraValues;e=f.asNumber(this._AuraValues.h["AuraScaleModifier"+c])+f.asNumber(this._AuraValues.h["AuraScaleSpeed"+ +c]);d.h["AuraScaleModifier"+c]=e;if(f.asNumber(this._AuraValues.h["AuraScaleModifier"+c])>=f.asNumber(this._BehaviorSplitValues.h["AuraCycle"+c][2])&&0<f.asNumber(this._AuraValues.h["AuraScaleSpeed"+c])||f.asNumber(this._AuraValues.h["AuraScaleModifier"+c])<=f.asNumber(this._BehaviorSplitValues.h["AuraCycle"+c][1])&&0>f.asNumber(this._AuraValues.h["AuraScaleSpeed"+c]))d=this._AuraValues,e=-f.asNumber(this._AuraValues.h["AuraScaleSpeed"+c]),d.h["AuraScaleSpeed"+c]=e;d=this._AuraValues;e=f.asNumber(this._AuraValues.h["AuraOpacityModifier"+ +c])+f.asNumber(this._AuraValues.h["AuraOpacitySpeed"+c]);d.h["AuraOpacityModifier"+c]=e;if(f.asNumber(this._AuraValues.h["AuraOpacityModifier"+c])>=f.asNumber(this._BehaviorSplitValues.h["AuraCycle"+c][5])&&0<f.asNumber(this._AuraValues.h["AuraOpacitySpeed"+c])||f.asNumber(this._AuraValues.h["AuraOpacityModifier"+c])<=f.asNumber(this._BehaviorSplitValues.h["AuraCycle"+c][4])&&0>f.asNumber(this._AuraValues.h["AuraOpacitySpeed"+c]))d=this._AuraValues,e=-f.asNumber(this._AuraValues.h["AuraOpacitySpeed"+ +c]),d.h["AuraOpacitySpeed"+c]=e}f.clearImage(this._AuraImages[c]);f.removeImage(this._AuraInstances[c]);""!=this._ActorImageInputLocalValue&&null!=this.actor.getActorValue(this._ActorImageInputLocalValue)?this._AuraImages[c]=this.actor.getActorValue(this._ActorImageInputLocalValue).clone():this._AuraImages[c]=f.getImageForActor(this.actor).clone();this._AuraInstances[c]=new ke(new Vb(this._AuraImages[c]));if("Fill"==this._BehaviorSplitValues.h["AuraSettings"+c][1]){d=this._AuraImages[c];e=f.asNumber(this._BehaviorSplitValues.h["AuraSettings"+ +c][2])|0;var g=f.asNumber(this._BehaviorSplitValues.h["AuraSettings"+c][3])|0,h=f.asNumber(this._BehaviorSplitValues.h["AuraSettings"+c][4])|0;null==h&&(h=0);null==g&&(g=0);null==e&&(e=0);f.fillImage(d,e<<16|g<<8|h);f.retainImageUsingMask(this._AuraImages[c],f.getImageForActor(this.actor),0,0)}"Tint"==this._BehaviorSplitValues.h["AuraTint"+c][0]&&(d=this._AuraImages[c],e=f.asNumber(this._BehaviorSplitValues.h["AuraSettings"+c][2])|0,g=f.asNumber(this._BehaviorSplitValues.h["AuraSettings"+c][3])|0, +h=f.asNumber(this._BehaviorSplitValues.h["AuraSettings"+c][4])|0,null==h&&(h=0),null==g&&(g=0),null==e&&(e=0),f.filterImage(d,f.createTintFilter(e<<16|g<<8|h,f.asNumber(this._BehaviorSplitValues.h["AuraTint"+c][1])/100)));"Normal"==""+n.string(this._BehaviorSplitValues.h["AuraSettings"+c][5])&&this._AuraInstances[c].set_blendMode(10);"Add"==""+n.string(this._BehaviorSplitValues.h["AuraSettings"+c][5])&&this._AuraInstances[c].set_blendMode(0);"Multiply"==""+n.string(this._BehaviorSplitValues.h["AuraSettings"+ +c][5])&&this._AuraInstances[c].set_blendMode(9);"Screen"==""+n.string(this._BehaviorSplitValues.h["AuraSettings"+c][5])&&this._AuraInstances[c].set_blendMode(12);this._AuraInstances[c].set_alpha((f.asNumber(this._BehaviorSplitValues.h["AuraSettings"+c][8])+f.asNumber(this._AuraValues.h["AuraOpacityModifier"+c]))/100);this._AuraScale=f.randomInt(f.asNumber(this._BehaviorSplitValues.h["AuraSettings"+c][6])|0,f.asNumber(this._BehaviorSplitValues.h["AuraSettings"+c][7])|0)+f.asNumber(this._AuraValues.h["AuraScaleModifier"+ +c]);100!=this._AuraScale?(this._AuraInstances[c].set_scaleX(this._AuraScale/100),this._AuraInstances[c].set_scaleY(this._AuraScale/100),"Left"==""+n.string(this._BehaviorSplitValues.h["AuraSettings"+c][10])&&(this._XOrigin=0),"Center"==""+n.string(this._BehaviorSplitValues.h["AuraSettings"+c][10])&&(this._XOrigin=this.actor.getWidth()/2-this.actor.getWidth()/2*(this._AuraScale/100)),"Right"==""+n.string(this._BehaviorSplitValues.h["AuraSettings"+c][10])&&(this._XOrigin=this.actor.getWidth()-this.actor.getWidth()* +(this._AuraScale/100)),"Top"==""+n.string(this._BehaviorSplitValues.h["AuraSettings"+c][11])&&(this._YOrigin=0),"Center"==""+n.string(this._BehaviorSplitValues.h["AuraSettings"+c][11])&&(this._YOrigin=this.actor.getHeight()/2-this.actor.getHeight()/2*(this._AuraScale/100)),"Bottom"==""+n.string(this._BehaviorSplitValues.h["AuraSettings"+c][11])&&(this._YOrigin=this.actor.getHeight()-this.actor.getHeight()*(this._AuraScale/100))):this._YOrigin=this._XOrigin=0;"Front"==""+n.string(this._BehaviorSplitValues.h["AuraSettings"+ +c][9])?f.attachImageToActor(this._AuraInstances[c],this.actor,this._XOrigin|0,this._YOrigin|0,1):f.attachImageToActor(this._AuraInstances[c],this.actor,this._XOrigin|0,this._YOrigin|0,2)}},_customEvent_ActivateAura:function(){this._Activate=!0},_customEvent_DeactivateAura:function(){this._Activate=!1;for(var a=0,b=O.__cast(this._AuraImages,Array);a<b.length;){var c=b[a];++a;f.clearImage(c)}},_customEvent_ClearAuras:function(){this._AurasOn.length=0;this._customEvent_DeactivateAura()},_customBlock_ActorAuraPreset:function(a, +b){if(Object.prototype.hasOwnProperty.call(this._AuraPresets.h,a)){var c=0;for(a=O.__cast((""+n.string(this._AuraPresets.h[a])).split(" "),Array);c<a.length;){var d=a[c];++c;if(b){S.contains(this._AurasOn,d)||this._AurasOn.push(d);var e=this._AuraValues,g="AuraTimer"+f.asNumber(d),h=this._BehaviorSplitValues,l="AuraSettings"+f.asNumber(d);e.h[g]=h.h[l][0];e=this._AuraCycles;g=""+f.asNumber(d);Object.prototype.hasOwnProperty.call(e.h,g)?(e=this._AuraValues,g="AuraReset"+f.asNumber(d),e=f.asBoolean(e.h[g])): +e=!1;e&&(e=this._AuraValues,g="AuraScaleSpeed"+f.asNumber(d),h=this._BehaviorSplitValues,l="AuraCycle"+f.asNumber(d),e.h[g]=h.h[l][0],e=this._AuraValues,g="AuraScaleModifier"+f.asNumber(d),e.h[g]=0,e=this._AuraValues,g="AuraOpacitySpeed"+f.asNumber(d),h=this._BehaviorSplitValues,l="AuraCycle"+f.asNumber(d),e.h[g]=h.h[l][3],e=this._AuraValues,d="AuraOpacityModifier"+f.asNumber(d),e.h[d]=0)}else S.contains(this._AurasOn,d)&&(F.remove(this._AurasOn,d),f.clearImage(this._AuraImages[f.asNumber(d)|0]), +e=this._AuraCycles,g=""+f.asNumber(d),Object.prototype.hasOwnProperty.call(e.h,g)&&(e=this._AuraValues,g="AuraScaleSpeed"+f.asNumber(d),h=this._BehaviorSplitValues,l="AuraCycle"+f.asNumber(d),e.h[g]=h.h[l][0],e=this._AuraValues,g="AuraScaleModifier"+f.asNumber(d),e.h[g]=0,e=this._AuraValues,g="AuraOpacitySpeed"+f.asNumber(d),h=this._BehaviorSplitValues,l="AuraCycle"+f.asNumber(d),e.h[g]=h.h[l][3],e=this._AuraValues,d="AuraOpacityModifier"+f.asNumber(d),e.h[d]=0))}0==this._AurasOn.length?this._Activate= +!1:this._customEvent_ActivateAura()}},init:function(){var a=this;this._AuraValues=new V;this._BehaviorSplitValues=new V;for(var b=0,c=this._Auras.length;b<c;){var d=b++;this._BehaviorSplitValues.h["AuraSettings"+d]=(""+n.string(this._Auras[d])).split("/");this._BehaviorSplitValues.h["AuraTint"+d]=(""+n.string(this._BehaviorSplitValues.h["AuraSettings"+d][1])).split(",");this._AuraValues.h["AuraTimer"+d]=this._BehaviorSplitValues.h["AuraSettings"+d][0]}b=Object.keys(this._AuraCycles.h);c=b.length; +for(d=0;d<c;){var e=b[d++];this._BehaviorSplitValues.h["AuraCycle"+e]=(""+n.string(this._AuraCycles.h[""+e])).split("/");var g=this._AuraValues,h="AuraScaleSpeed"+f.asNumber(e);g.h[h]=this._BehaviorSplitValues.h["AuraCycle"+e][0];g=this._AuraValues;h="AuraScaleModifier"+f.asNumber(e);g.h[h]=0;g=this._AuraValues;h="AuraOpacitySpeed"+f.asNumber(e);g.h[h]=this._BehaviorSplitValues.h["AuraCycle"+e][3];g=this._AuraValues;h="AuraOpacityModifier"+f.asNumber(e);g.h[h]=0;g=this._AuraValues;h="AuraReset"+f.asNumber(e); +g.h[h]="Reset"==this._BehaviorSplitValues.h["AuraCycle"+e][6]}this._AuraImages=[];this._AuraInstances=[];this._AurasOn=[];f.runLater(50,function(b){""!=a._ActiveAuras&&(b=a._ActiveAuras.split(" ").slice(),a._AurasOn=b)},this.actor);this.addListener(this.actor.whenDrawing,q(this,this._event_Drawing))},forwardMessage:function(a){},__class__:Js});var Ks=function(a,b,c){w.call(this,b);this.nameMap.h.Actor="actor";this.nameMap.h["After Images On"]="_AfterImagesOn";this.nameMap.h["Image Cooldowns"]="_ImageCooldowns"; +this.nameMap.h.Activate="_Activate";this._Activate=!0;this.nameMap.h["Behavior Split Values"]="_BehaviorSplitValues";this.nameMap.h["After Image Limit"]="_AfterImageLimit";this.nameMap.h["Actor Image Input Local Value"]="_ActorImageInputLocalValue";this._ActorImageInputLocalValue="SpriteImage";this.nameMap.h["Handle Image"]="_HandleImage";this._HandleImage=!1;this.nameMap.h["Image Properties"]="_ImageProperties";this.nameMap.h["After Images Instances"]="_AfterImagesInstances";this.nameMap.h["Image Instance"]= +"_ImageInstance";this.nameMap.h["After Image Color"]="_AfterImageColor";a=255;c=b=0;null==c&&(c=0);null==b&&(b=0);null==a&&(a=0);this._AfterImageColor=a<<16|b<<8|c;this.nameMap.h.Image="_Image";this.nameMap.h["After Image Presets"]="_AfterImagePresets";a=new V;a.h.BaseAfterImage="0";this._AfterImagePresets=a;this.nameMap.h["Old X"]="_OldX";this._OldX=0;this.nameMap.h["Old Y"]="_OldY";this._OldY=0;this.nameMap.h["Time between Images Ticks"]="_TimebetweenImagesTicks";this._TimebetweenImagesTicks=0; +this.nameMap.h["Old Frame"]="_OldFrame";this._OldFrame=0;this.nameMap.h["Old Animation"]="_OldAnimation";this._OldAnimation="";this.nameMap.h["Old Angle"]="_OldAngle";this._OldAngle=0;this.nameMap.h["After Image Settings"]="_AfterImageSettings";this._AfterImageSettings=["0/true/0/100/30/3/Normal/-/0/0/0"];this.nameMap.h["Active After Images"]="_ActiveAfterImages";this._ActiveAfterImages="0"};k["scripts.Design_321_321_AfterImage"]=Ks;Ks.__name__="scripts.Design_321_321_AfterImage";Ks.__super__=w;Ks.prototype= +u(w.prototype,{_AfterImagesOn:null,_ImageCooldowns:null,_Activate:null,_BehaviorSplitValues:null,_AfterImageLimit:null,_ActorImageInputLocalValue:null,_HandleImage:null,_ImageProperties:null,_AfterImagesInstances:null,_ImageInstance:null,_AfterImageColor:null,_Image:null,_AfterImagePresets:null,_OldX:null,_OldY:null,_TimebetweenImagesTicks:null,_OldFrame:null,_OldAnimation:null,_OldAngle:null,_AfterImageSettings:null,_ActiveAfterImages:null,_event_ActorCreated:function(){this.wrapper.enabled&&this._customEvent_ClearAfterImages()}, +_event_Drawing:function(a,b,c){if(this.wrapper.enabled&&!f.engine.isPaused()){0<this._TimebetweenImagesTicks&&(--this._TimebetweenImagesTicks,0>=this._TimebetweenImagesTicks&&(this._TimebetweenImagesTicks=0,this._HandleImage=!1));b=Object.keys(this._ImageCooldowns.h);c=b.length;for(var d=0;d<c;)if(a=b[d++],0<=f.asNumber(this._ImageCooldowns.h[""+a])){var e=this._ImageCooldowns,g=f.asNumber(this._ImageCooldowns.h[""+a])-1;e.h[""+a]=g;if(0>=f.asNumber(this._ImageCooldowns.h[""+a])){e=this._ImageCooldowns; +var h=""+a;Object.prototype.hasOwnProperty.call(e.h,h)&&delete e.h[h]}}if(this._Activate)for(b=0,c=O.__cast(this._AfterImageSettings,Array);b<c.length;)if(a=c[b],++b,!(!S.contains(this._AfterImagesOn,""+this._AfterImageSettings.indexOf(a))||Object.prototype.hasOwnProperty.call(this._ImageCooldowns.h,""+n.string(a))||this._HandleImage||f.asBoolean(this._BehaviorSplitValues.h["AfterImageSettings"+n.string(a)][1])&&this._OldX==this.actor.getX()&&this._OldY==this.actor.getY()&&this._OldAngle==57.29577951308402* +this.actor.getAngle()&&this._OldAnimation==this.actor.getAnimation()&&this._OldFrame==this.actor.getCurrentFrame())&&(0==f.asNumber(this._BehaviorSplitValues.h["AfterImageSettings"+n.string(a)][0])||0<f.asNumber(this._AfterImageLimit.h["AfterImageLimit"+n.string(a)]))){this._HandleImage=!0;0!=f.asNumber(this._BehaviorSplitValues.h["AfterImageSettings"+n.string(a)][0])&&(e=this._AfterImageLimit,h="AfterImageLimit"+n.string(a),g=f.asNumber(this._AfterImageLimit.h["AfterImageLimit"+n.string(a)])-1,e.h[h]= +g,0>=f.asNumber(this._AfterImageLimit.h["AfterImageLimit"+n.string(a)])&&(F.remove(this._AfterImagesOn,""+this._AfterImageSettings.indexOf(a)),b=this._AfterImageLimit,c="AfterImageLimit"+n.string(a),d=f.asNumber(this._BehaviorSplitValues.h["AfterImageSettings"+n.string(a)][0]),b.h[c]=d));b=this._ImageCooldowns;c=""+n.string(a);d=f.asNumber(this._BehaviorSplitValues.h["AfterImageSettings"+n.string(a)][2]);b.h[c]=d;this._ImageProperties.push(""+n.string(this._BehaviorSplitValues.h["AfterImageSettings"+ +n.string(a)][3])+("/"+(n.string(this._BehaviorSplitValues.h["AfterImageSettings"+n.string(a)][3])+("/"+n.string(this._BehaviorSplitValues.h["AfterImageSettings"+n.string(a)][4])))));""!=this._ActorImageInputLocalValue&&null!=this.actor.getActorValue(this._ActorImageInputLocalValue)?this._Image=this.actor.getActorValue(this._ActorImageInputLocalValue).clone():this._Image=f.getImageForActor(this.actor).clone();this._ImageInstance=new ke(new Vb(this._Image));b=f.asNumber(this._BehaviorSplitValues.h["AfterImageSettings"+ +n.string(a)][8])|0;c=f.asNumber(this._BehaviorSplitValues.h["AfterImageSettings"+n.string(a)][9])|0;d=f.asNumber(this._BehaviorSplitValues.h["AfterImageSettings"+n.string(a)][10])|0;null==d&&(d=0);null==c&&(c=0);null==b&&(b=0);this._AfterImageColor=b<<16|c<<8|d;"Fill"==this._BehaviorSplitValues.h["AfterImageSettings"+n.string(a)][7]&&(f.fillImage(this._Image,this._AfterImageColor),f.retainImageUsingMask(this._Image,f.getImageForActor(this.actor),0,0));"Tint"==this._BehaviorSplitValues.h["AfterImageTint"+ +n.string(a)][0]&&f.setFilterForImage(this._ImageInstance,f.createTintFilter(this._AfterImageColor,f.asNumber(this._BehaviorSplitValues.h["AfterImageTint"+n.string(a)][1])/100));"Add"==this._BehaviorSplitValues.h["AfterImageSettings"+n.string(a)][6]&&this._ImageInstance.set_blendMode(0);"Multiply"==this._BehaviorSplitValues.h["AfterImageSettings"+n.string(a)][6]&&this._ImageInstance.set_blendMode(9);"Screen"==this._BehaviorSplitValues.h["AfterImageSettings"+n.string(a)][6]&&this._ImageInstance.set_blendMode(12); +"Normal"==this._BehaviorSplitValues.h["AfterImageSettings"+n.string(a)][6]&&this._ImageInstance.set_blendMode(10);this._AfterImagesInstances.push(this._ImageInstance);f.asBoolean(this._BehaviorSplitValues.h["AfterImageSettings"+n.string(a)][1])?f.attachImageToLayer(this._ImageInstance,f.engine.getLayerById(this.actor.getLayerID()),this.actor.getX()|0,this.actor.getY()|0,2):f.attachImageToLayer(this._ImageInstance,f.engine.getLayerById(this.actor.getLayerID()),this.actor.getX()|0,this.actor.getY()| +0,1);f.setOriginForImage(this._ImageInstance,this.actor.getWidth()/2,this.actor.getHeight()/2);this._ImageInstance.set_rotation(57.29577951308402*this.actor.getAngle());0==f.asNumber(this._BehaviorSplitValues.h["AfterImageSettings"+n.string(a)][5])?this._HandleImage=!1:this._TimebetweenImagesTicks=f.asNumber(this._BehaviorSplitValues.h["AfterImageSettings"+n.string(a)][5]);break}b=0;for(c=this._ImageProperties.length;b<c;)if(a=b++,this._BehaviorSplitValues.h["OpacityChange"+n.string(this._AfterImageSettings[a])]= +(""+n.string(this._ImageProperties[a])).split("/"),this._ImageProperties[a]=""+(f.asNumber(this._BehaviorSplitValues.h["OpacityChange"+n.string(this._AfterImageSettings[a])][0])-f.asNumber(this._BehaviorSplitValues.h["OpacityChange"+n.string(this._AfterImageSettings[a])][1])/f.asNumber(this._BehaviorSplitValues.h["OpacityChange"+n.string(this._AfterImageSettings[a])][2]))+("/"+(n.string(this._BehaviorSplitValues.h["OpacityChange"+n.string(this._AfterImageSettings[a])][1])+("/"+n.string(this._BehaviorSplitValues.h["OpacityChange"+ +n.string(this._AfterImageSettings[a])][2])))),this._AfterImagesInstances[a].set_alpha(f.asNumber(this._BehaviorSplitValues.h["OpacityChange"+n.string(this._AfterImageSettings[a])][0])/100),0>=f.asNumber(this._ImageProperties[a])){f.removeImage(this._AfterImagesInstances[a]);this._AfterImagesInstances.splice(a,1);this._ImageProperties.splice(a,1);break}this._OldX=this.actor.getX();this._OldY=this.actor.getY();this._OldFrame=this.actor.getCurrentFrame();this._OldAnimation=this.actor.getAnimation(); +this._OldAngle=57.29577951308402*this.actor.getAngle()}},_customEvent_StartAfterImage:function(){this._Activate=!0;this._HandleImage=!1;this._TimebetweenImagesTicks=0},_customEvent_StopAfterImage:function(){this._HandleImage=this._Activate=!1;this._TimebetweenImagesTicks=0;for(var a=Object.keys(this._ImageCooldowns.h),b=a.length,c=0;c<b;){var d=a[c++],e=this._ImageCooldowns;Object.prototype.hasOwnProperty.call(e.h,d)&&delete e.h[d]}},_customEvent_ClearAfterImages:function(){for(var a=0,b=this._ImageProperties.length;a< +b;){var c=a++;f.removeImage(this._AfterImagesInstances[c])}this._AfterImagesInstances.length=0;this._ImageProperties.length=0;this._AfterImagesOn.length=0;this._customEvent_StopAfterImage()},_customBlock_AfterImagePreset:function(a,b){if(Object.prototype.hasOwnProperty.call(this._AfterImagePresets.h,a)){var c=0;for(a=O.__cast((""+n.string(this._AfterImagePresets.h[a])).split(" "),Array);c<a.length;){var d=a[c];++c;if(b){if(!S.contains(this._AfterImagesOn,d)){this._AfterImagesOn.push(d);var e=this._AfterImageLimit, +g="AfterImageLimit"+n.string(this._AfterImageSettings[f.asNumber(d)|0]),h=this._BehaviorSplitValues;d="AfterImageSettings"+n.string(this._AfterImageSettings[f.asNumber(d)|0]);d=f.asNumber(h.h[d][0]);e.h[g]=d}}else S.contains(this._AfterImagesOn,d)&&(F.remove(this._AfterImagesOn,d),e=this._AfterImageLimit,g="AfterImageLimit"+n.string(this._AfterImageSettings[f.asNumber(d)|0]),h=this._BehaviorSplitValues,d="AfterImageSettings"+n.string(this._AfterImageSettings[f.asNumber(d)|0]),d=f.asNumber(h.h[d][0]), +e.h[g]=d)}0==this._AfterImagesOn.length?this._HandleImage=this._Activate=!1:this._customEvent_StartAfterImage()}},init:function(){var a=this;this._AfterImageLimit=new V;this._ImageCooldowns=new V;this._AfterImagesInstances=[];this._ImageProperties=[];this._BehaviorSplitValues=new V;for(var b=0,c=O.__cast(this._AfterImageSettings,Array);b<c.length;){var d=c[b];++b;this._BehaviorSplitValues.h["AfterImageSettings"+n.string(d)]=(""+n.string(d)).split("/");var e=this._AfterImageLimit,g="AfterImageLimit"+ +n.string(d),h=f.asNumber(this._BehaviorSplitValues.h["AfterImageSettings"+n.string(d)][0]);e.h[g]=h;this._BehaviorSplitValues.h["AfterImageTint"+n.string(d)]=(""+n.string(this._BehaviorSplitValues.h["AfterImageSettings"+n.string(d)][7])).split(",")}f.runLater(50,function(b){a._AfterImagesOn=[];""!=a._ActiveAfterImages&&(b=a._ActiveAfterImages.split(" ").slice(),a._AfterImagesOn=b)},this.actor);this.addListener(this.actor.whenKilled,q(this,this._event_ActorCreated));this.addListener(this.actor.whenDrawing, +q(this,this._event_Drawing))},forwardMessage:function(a){},__class__:Ks});var Ls=function(a,b){f.call(this);this.nameMap.h["Behavior Split Values"]="_BehaviorSplitValues";this.nameMap.h.Activate="_Activate";this._Activate=!0;this.nameMap.h.Canvas="_Canvas";this.nameMap.h["Image Instance"]="_ImageInstance";this.nameMap.h["Light Animation"]="_LightAnimation";this._LightAnimation="";this.nameMap.h["Mask Image"]="_MaskImage";this.nameMap.h.Update="_Update";this._Update=!1;this.nameMap.h["Image Instances List"]= +"_ImageInstancesList";this.nameMap.h["Tint Layers"]="_TintLayers";this._TintLayers=["0,0,0,50,0,Multiply,3"];this.nameMap.h["Canvases List"]="_CanvasesList";this.nameMap.h["Screen Colors"]="_ScreenColors";this.nameMap.h["Tint Scene Layers"]="_TintSceneLayers";this.nameMap.h["Tint Index Settings"]="_TintIndexSettings";this.nameMap.h["Unpausable Tint Indexes"]="_UnpausableTintIndexes";this._UnpausableTintIndexes="";this.nameMap.h["Old Camera X"]="_OldCameraX";this._OldCameraX=0;this.nameMap.h["Old Camera Y"]= +"_OldCameraY";this._OldCameraY=0;this.nameMap.h["Mask Sources Map"]="_MaskSourcesMap";this.nameMap.h["Mask Source Instances Map"]="_MaskSourceInstancesMap"};k["scripts.Design_322_322_TintScreen"]=Ls;Ls.__name__="scripts.Design_322_322_TintScreen";Ls.__super__=gb;Ls.prototype=u(gb.prototype,{_BehaviorSplitValues:null,_Activate:null,_Canvas:null,_ImageInstance:null,_LightAnimation:null,_MaskImage:null,_Update:null,_ImageInstancesList:null,_TintLayers:null,_CanvasesList:null,_ScreenColors:null,_TintSceneLayers:null, +_TintIndexSettings:null,_UnpausableTintIndexes:null,_OldCameraX:null,_OldCameraY:null,_MaskSourcesMap:null,_MaskSourceInstancesMap:null,_event_Updating:function(a){if(this.wrapper.enabled&&this._Activate){a=0;for(var b=this._ImageInstancesList.length;a<b;){var c=a++;if(null!=this._ScreenColors[c]&&(!f.engine.isPaused()||S.contains(this._UnpausableTintIndexes.split(" "),c))){if(this._OldCameraX!=Math.round(f.getScreenX())||this._OldCameraY!=Math.round(f.getScreenY()))this._Canvas=this._CanvasesList[c], +this._ImageInstance=this._ImageInstancesList[c],"Screen"!=this._TintSceneLayers[c]&&(f.setXForImage(this._ImageInstance,f.getScreenX()-f.getTileWidth()/2),f.setYForImage(this._ImageInstance,f.getScreenY()-f.getTileHeight()/2));if(Object.prototype.hasOwnProperty.call(this._TintIndexSettings.h,""+c)){this._BehaviorSplitValues.h.TintIndexSettings=(""+n.string(this._TintIndexSettings.h[""+c])).split(",");var d=this._TintIndexSettings,e=""+n.string(this._BehaviorSplitValues.h.TintIndexSettings[0])+(","+ +n.string(this._BehaviorSplitValues.h.TintIndexSettings[1]))+(","+n.string(this._BehaviorSplitValues.h.TintIndexSettings[2])+(","+(f.asNumber(this._BehaviorSplitValues.h.TintIndexSettings[3])+(f.asNumber(this._BehaviorSplitValues.h.TintIndexSettings[0])-f.asNumber(this._BehaviorSplitValues.h.TintIndexSettings[1]))/(100*f.asNumber(this._BehaviorSplitValues.h.TintIndexSettings[2])))));d.h[""+c]=e}}}this._OldCameraX=Math.round(f.getScreenX());this._OldCameraY=Math.round(f.getScreenY())}},_event_Drawing:function(a, +b,c){if(this.wrapper.enabled){if(this._Activate){a=0;for(b=this._ImageInstancesList.length;a<b;)if(c=a++,null!=this._ScreenColors[c]&&(!f.engine.isPaused()||S.contains(this._UnpausableTintIndexes.split(" "),c))){this._Canvas=this._CanvasesList[c];this._ImageInstance=this._ImageInstancesList[c];this._BehaviorSplitValues.h.TintIndexSettings=(""+n.string(this._TintIndexSettings.h[""+c])).split(",");if(Object.prototype.hasOwnProperty.call(this._TintIndexSettings.h,""+c))if(this._ImageInstance.set_alpha(f.asNumber(this._BehaviorSplitValues.h.TintIndexSettings[3])/ +100),0>=f.asNumber(this._BehaviorSplitValues.h.TintIndexSettings[0])-f.asNumber(this._BehaviorSplitValues.h.TintIndexSettings[1])){if(100*this._ImageInstance.get_alpha()<=f.asNumber(this._BehaviorSplitValues.h.TintIndexSettings[0]))if(this._ImageInstance.set_alpha(f.asNumber(this._BehaviorSplitValues.h.TintIndexSettings[0])/100),0==this._ImageInstance.get_alpha())this._TintIndexSettings.h[""+c]="Remove";else{var d=this._TintIndexSettings,e=""+c;Object.prototype.hasOwnProperty.call(d.h,e)&&delete d.h[e]}}else if(100* +this._ImageInstance.get_alpha()>=f.asNumber(this._BehaviorSplitValues.h.TintIndexSettings[0])){this._ImageInstance.set_alpha(f.asNumber(this._BehaviorSplitValues.h.TintIndexSettings[0])/100);var g=this._TintIndexSettings,k=""+c;Object.prototype.hasOwnProperty.call(g.h,k)&&delete g.h[k]}if(!this._Update){f.fillImage(this._Canvas,this._ScreenColors[c]);g=this._MaskSourcesMap.h;g=Object.keys(g);k=g.length;for(var l=0;l<k;)if(e=g[l++],this._BehaviorSplitValues.h.MaskSource=(""+n.string(this._MaskSourcesMap.h[""+ +e])).split("/"),"-"==this._BehaviorSplitValues.h.MaskSource[7]||c==f.asNumber(this._BehaviorSplitValues.h.MaskSource[7]))this._MaskImage="Actor"==this._BehaviorSplitValues.h.MaskSource[1]?f.resizeImage(f.getImageForActor(this._MaskSourceInstancesMap.h[""+e]),100*f.asNumber(this._BehaviorSplitValues.h.MaskSource[5])/f.asNumber((new ke(new Vb(f.getImageForActor(this._MaskSourceInstancesMap.h[""+e])))).get_width()/h.SCALE)/100,100*f.asNumber(this._BehaviorSplitValues.h.MaskSource[6])/f.asNumber((new ke(new Vb(f.getImageForActor(this._MaskSourceInstancesMap.h[""+ +e])))).get_height()/h.SCALE)/100,!1):f.resizeImage(f.getExternalImage(""+n.string(this._MaskSourceInstancesMap.h[""+e])),100*f.asNumber(this._BehaviorSplitValues.h.MaskSource[5])/f.asNumber((new ke(new Vb(f.getExternalImage(""+n.string(this._MaskSourceInstancesMap.h[""+e]))))).get_width()/h.SCALE)/100,100*f.asNumber(this._BehaviorSplitValues.h.MaskSource[6])/f.asNumber((new ke(new Vb(f.getExternalImage(""+n.string(this._MaskSourceInstancesMap.h[""+e]))))).get_height()/h.SCALE)/100,!1),"Clear"==this._BehaviorSplitValues.h.MaskSource[8]&& +f.clearImageUsingMask(this._Canvas,this._MaskImage,f.asNumber(this._BehaviorSplitValues.h.MaskSource[3])|0,f.asNumber(this._BehaviorSplitValues.h.MaskSource[4])|0),"Add"==this._BehaviorSplitValues.h.MaskSource[8]&&f.drawImageOnImage(this._MaskImage,this._Canvas,f.asNumber(this._BehaviorSplitValues.h.MaskSource[3])|0,f.asNumber(this._BehaviorSplitValues.h.MaskSource[4])|0,0),"Alpha"==this._BehaviorSplitValues.h.MaskSource[8]&&f.drawImageOnImage(this._MaskImage,this._Canvas,f.asNumber(this._BehaviorSplitValues.h.MaskSource[3])| +0,f.asNumber(this._BehaviorSplitValues.h.MaskSource[4])|0,1),"Darken"==this._BehaviorSplitValues.h.MaskSource[8]&&f.drawImageOnImage(this._MaskImage,this._Canvas,f.asNumber(this._BehaviorSplitValues.h.MaskSource[3])|0,f.asNumber(this._BehaviorSplitValues.h.MaskSource[4])|0,2),"Difference"==this._BehaviorSplitValues.h.MaskSource[8]&&f.drawImageOnImage(this._MaskImage,this._Canvas,f.asNumber(this._BehaviorSplitValues.h.MaskSource[3])|0,f.asNumber(this._BehaviorSplitValues.h.MaskSource[4])|0,3),"Erase"== +this._BehaviorSplitValues.h.MaskSource[8]&&f.drawImageOnImage(this._MaskImage,this._Canvas,f.asNumber(this._BehaviorSplitValues.h.MaskSource[3])|0,f.asNumber(this._BehaviorSplitValues.h.MaskSource[4])|0,4),"Hardlight"==this._BehaviorSplitValues.h.MaskSource[8]&&f.drawImageOnImage(this._MaskImage,this._Canvas,f.asNumber(this._BehaviorSplitValues.h.MaskSource[3])|0,f.asNumber(this._BehaviorSplitValues.h.MaskSource[4])|0,5),"Invert"==this._BehaviorSplitValues.h.MaskSource[8]&&f.drawImageOnImage(this._MaskImage, +this._Canvas,f.asNumber(this._BehaviorSplitValues.h.MaskSource[3])|0,f.asNumber(this._BehaviorSplitValues.h.MaskSource[4])|0,6),"Lighten"==this._BehaviorSplitValues.h.MaskSource[8]&&f.drawImageOnImage(this._MaskImage,this._Canvas,f.asNumber(this._BehaviorSplitValues.h.MaskSource[3])|0,f.asNumber(this._BehaviorSplitValues.h.MaskSource[4])|0,8),"Multiply"==this._BehaviorSplitValues.h.MaskSource[8]&&f.drawImageOnImage(this._MaskImage,this._Canvas,f.asNumber(this._BehaviorSplitValues.h.MaskSource[3])| +0,f.asNumber(this._BehaviorSplitValues.h.MaskSource[4])|0,9),"Normal"==this._BehaviorSplitValues.h.MaskSource[8]&&f.drawImageOnImage(this._MaskImage,this._Canvas,f.asNumber(this._BehaviorSplitValues.h.MaskSource[3])|0,f.asNumber(this._BehaviorSplitValues.h.MaskSource[4])|0,10),"Overlay"==this._BehaviorSplitValues.h.MaskSource[8]&&f.drawImageOnImage(this._MaskImage,this._Canvas,f.asNumber(this._BehaviorSplitValues.h.MaskSource[3])|0,f.asNumber(this._BehaviorSplitValues.h.MaskSource[4])|0,11),"Screen"== +this._BehaviorSplitValues.h.MaskSource[8]&&f.drawImageOnImage(this._MaskImage,this._Canvas,f.asNumber(this._BehaviorSplitValues.h.MaskSource[3])|0,f.asNumber(this._BehaviorSplitValues.h.MaskSource[4])|0,12),"Subtract"==this._BehaviorSplitValues.h.MaskSource[8]&&f.drawImageOnImage(this._MaskImage,this._Canvas,f.asNumber(this._BehaviorSplitValues.h.MaskSource[3])|0,f.asNumber(this._BehaviorSplitValues.h.MaskSource[4])|0,14)}}this._Update=!0}g=this._TintIndexSettings.h;g=Object.keys(g);k=g.length;for(l= +0;l<k;)e=g[l++],"Remove"==this._TintIndexSettings.h[""+e]&&(f.removeImage(this._ImageInstancesList[f.asNumber(e)|0]),this._CanvasesList[f.asNumber(e)|0]=null,this._ImageInstancesList[f.asNumber(e)|0]=null,this._ScreenColors[f.asNumber(e)|0]=null,this._TintSceneLayers[f.asNumber(e)|0]=null,a=this._TintIndexSettings,e=""+f.asNumber(e),d=a,Object.prototype.hasOwnProperty.call(d.h,e)&&delete d.h[e])}},_customBlock_TintFullScreen:function(a,b,c,d,e,g){this._Activate=!0;this._Update=!1;this._ScreenColors[e| +0]=a;null==this._ImageInstancesList[e|0]?(this._Canvas=f.newImage(f.getScreenWidth()+f.getTileWidth(),f.getScreenHeight()+f.getTileHeight()),f.fillImage(this._Canvas,a),this._ImageInstance=new ke(new Vb(this._Canvas)),this._ImageInstance.set_alpha(0),this._CanvasesList[e|0]=this._Canvas,this._ImageInstancesList[e|0]=this._ImageInstance,this._TintSceneLayers[e|0]=d,"Screen"==d?f.attachImageToHUD(this._ImageInstance,-(f.getTileWidth()/2)|0,-(f.getTileHeight()/2)|0):f.attachImageToLayer(this._ImageInstance, +f.engine.getLayerById(f.asNumber(d)|0),f.getScreenX()-f.getTileWidth()/2|0,f.getScreenY()-f.getTileHeight()/2|0,1)):this._ImageInstance=this._ImageInstancesList[e|0];"Add"==c&&this._ImageInstance.set_blendMode(0);"Alpha"==c&&this._ImageInstance.set_blendMode(1);"Darken"==c&&this._ImageInstance.set_blendMode(2);"Difference"==c&&this._ImageInstance.set_blendMode(3);"Erase"==c&&this._ImageInstance.set_blendMode(4);"Hardlight"==c&&this._ImageInstance.set_blendMode(5);"Invert"==c&&this._ImageInstance.set_blendMode(6); +"Lighten"==c&&this._ImageInstance.set_blendMode(8);"Multiply"==c&&this._ImageInstance.set_blendMode(9);"Normal"==c&&this._ImageInstance.set_blendMode(10);"Overlay"==c&&this._ImageInstance.set_blendMode(11);"Screen"==c&&this._ImageInstance.set_blendMode(12);"Subtract"==c&&this._ImageInstance.set_blendMode(14);0==g?this._ImageInstance.set_alpha(b/100):(a=this._TintIndexSettings,b=""+b+(","+100*this._ImageInstance.get_alpha())+(","+g+(","+100*this._ImageInstance.get_alpha())),a.h[""+e]=b)},_customBlock_RemoveTint:function(a, +b){if("-"==b)if(0==a){b=0;for(var c=O.__cast(this._ImageInstancesList,Array);b<c.length;)a=c[b],++b,f.removeImage(a);this._Activate=!1;this._CanvasesList.length=0;this._ImageInstancesList.length=0;this._ScreenColors.length=0;this._TintSceneLayers.length=0;a=Object.keys(this._TintIndexSettings.h);b=a.length;for(c=0;c<b;){var d=a[c++],e=this._TintIndexSettings;Object.prototype.hasOwnProperty.call(e.h,d)&&delete e.h[d]}}else for(b=0,c=this._ImageInstancesList.length;b<c;){var g=b++;d=this._TintIndexSettings; +e="0,"+100*this._ImageInstance.get_alpha()+(","+a+(","+100*this._ImageInstance.get_alpha()));d.h[""+g]=e}else null!=this._ImageInstancesList[f.asNumber(b)|0]&&(0==a?(f.removeImage(this._ImageInstancesList[f.asNumber(b)|0]),this._CanvasesList[f.asNumber(b)|0]=null,this._ImageInstancesList[f.asNumber(b)|0]=null,this._ScreenColors[f.asNumber(b)|0]=null,this._TintSceneLayers[f.asNumber(b)|0]=null):(d=this._TintIndexSettings,e="0,"+100*this._ImageInstance.get_alpha()+(","+a+(","+100*this._ImageInstance.get_alpha())), +d.h[b]=e))},_customBlock_CreateMaskSource:function(a,b,c,d,e,g,h,l,k){if(!Object.prototype.hasOwnProperty.call(this._MaskSourcesMap.h,a)){var m=this._MaskSourcesMap;g=a+("/"+(b+("/"+(c+("/"+(d-Math.round(f.getScreenX())+f.getTileWidth()/2+("/"+(e-Math.round(f.getScreenY())+f.getTileHeight()/2))+("/"+(g+("/"+(h+("/"+(l+("/"+k)))))))))))));m.h[a]=g;"Actor"==b?(f.createRecycledActor(f.getActorTypeByName(c),d,e,0),f.getLastCreatedActor().setAnimation(this._LightAnimation),f.getLastCreatedActor().disableActorDrawing(), +m=this._MaskSourceInstancesMap,g=f.getLastCreatedActor(),m.h[a]=g):this._MaskSourceInstancesMap.h[a]=c;this._Update=!1}},_customBlock_RemoveMaskSource:function(a){if(Object.prototype.hasOwnProperty.call(this._MaskSourcesMap.h,a)){"Actor"==""+(""+n.string(this._MaskSourcesMap.h[a])).split("/")[1]&&this._MaskSourceInstancesMap.h[a].isAlive()&&f.recycleActor(this._MaskSourceInstancesMap.h[a]);var b=this._MaskSourcesMap;Object.prototype.hasOwnProperty.call(b.h,a)&&delete b.h[a];b=this._MaskSourceInstancesMap; +Object.prototype.hasOwnProperty.call(b.h,a)&&delete b.h[a];this._Update=!1}},_customBlock_MoveMaskSource:function(a,b,c){this._BehaviorSplitValues.h.MoveMaskSource=(""+n.string(this._MaskSourcesMap.h[a])).split("/");if(Object.prototype.hasOwnProperty.call(this._MaskSourcesMap.h,a)&&(Math.round(f.asNumber(this._BehaviorSplitValues.h.MoveMaskSource[3]))!=Math.round(b-Math.round(f.getScreenX())+f.getTileWidth()/2)||Math.round(f.asNumber(this._BehaviorSplitValues.h.MoveMaskSource[4]))!=Math.round(c-Math.round(f.getScreenY())+ +f.getTileHeight()/2))){var d=this._MaskSourcesMap,e=""+n.string(this._BehaviorSplitValues.h.MoveMaskSource[1]),g=""+n.string(this._BehaviorSplitValues.h.MoveMaskSource[2]);b=""+(b-Math.round(f.getScreenX())+f.getTileWidth()/2);c=""+(c-Math.round(f.getScreenY())+f.getTileHeight()/2);d.h[a]=a+("/"+(e+("/"+(g+("/"+(b+("/"+(c+("/"+(n.string(this._BehaviorSplitValues.h.MoveMaskSource[5])+("/"+(n.string(this._BehaviorSplitValues.h.MoveMaskSource[6])+("/"+n.string(this._BehaviorSplitValues.h.MoveMaskSource[7])+ +("/"+n.string(this._BehaviorSplitValues.h.MoveMaskSource[8])))))))))))))));this._Update=!1}},_customBlock_ResizeMaskSource:function(a,b,c){this._BehaviorSplitValues.h.ResizeMaskSource=(""+n.string(this._MaskSourcesMap.h[a])).split("/");!Object.prototype.hasOwnProperty.call(this._MaskSourcesMap.h,a)||Math.round(f.asNumber(this._BehaviorSplitValues.h.ResizeMaskSource[5]))==Math.round(b)&&Math.round(f.asNumber(this._BehaviorSplitValues.h.ResizeMaskSource[6]))==Math.round(c)||(this._MaskSourcesMap.h[a]= +a+("/"+(n.string(this._BehaviorSplitValues.h.ResizeMaskSource[1])+("/"+(n.string(this._BehaviorSplitValues.h.ResizeMaskSource[2])+("/"+(n.string(this._BehaviorSplitValues.h.ResizeMaskSource[3])+("/"+(n.string(this._BehaviorSplitValues.h.ResizeMaskSource[4])+("/"+(b+("/"+(c+("/"+n.string(this._BehaviorSplitValues.h.ResizeMaskSource[7])+("/"+n.string(this._BehaviorSplitValues.h.ResizeMaskSource[8]))))))))))))))),this._Update=!1)},init:function(){this._BehaviorSplitValues=new V;this._MaskSourcesMap= +new V;this._MaskSourceInstancesMap=new V;this._ScreenColors=[];this._ImageInstancesList=[];this._CanvasesList=[];this._TintSceneLayers=[];this._TintIndexSettings=new V;if(this._Activate)for(var a=0,b=O.__cast(this._TintLayers,Array);a<b.length;){var c=b[a];++a;this._BehaviorSplitValues.h[""+n.string(c)]=(""+n.string(c)).split(",");this._Canvas=f.newImage(f.getScreenWidth()+f.getTileWidth(),f.getScreenHeight()+f.getTileHeight());this._ImageInstance=new ke(new Vb(this._Canvas));this._ImageInstancesList.push(this._ImageInstance); +this._CanvasesList.push(this._Canvas);"Add"==this._BehaviorSplitValues.h[""+n.string(c)][5]&&this._ImageInstance.set_blendMode(0);"Alpha"==this._BehaviorSplitValues.h[""+n.string(c)][5]&&this._ImageInstance.set_blendMode(1);"Darken"==this._BehaviorSplitValues.h[""+n.string(c)][5]&&this._ImageInstance.set_blendMode(2);"Difference"==this._BehaviorSplitValues.h[""+n.string(c)][5]&&this._ImageInstance.set_blendMode(3);"Erase"==this._BehaviorSplitValues.h[""+n.string(c)][5]&&this._ImageInstance.set_blendMode(4); +"Hardlight"==this._BehaviorSplitValues.h[""+n.string(c)][5]&&this._ImageInstance.set_blendMode(5);"Invert"==this._BehaviorSplitValues.h[""+n.string(c)][5]&&this._ImageInstance.set_blendMode(6);"Lighten"==this._BehaviorSplitValues.h[""+n.string(c)][5]&&this._ImageInstance.set_blendMode(8);"Multiply"==this._BehaviorSplitValues.h[""+n.string(c)][5]&&this._ImageInstance.set_blendMode(9);"Normal"==this._BehaviorSplitValues.h[""+n.string(c)][5]&&this._ImageInstance.set_blendMode(10);"Overlay"==this._BehaviorSplitValues.h[""+ +n.string(c)][5]&&this._ImageInstance.set_blendMode(11);"Screen"==this._BehaviorSplitValues.h[""+n.string(c)][5]&&this._ImageInstance.set_blendMode(12);"Subtract"==this._BehaviorSplitValues.h[""+n.string(c)][5]&&this._ImageInstance.set_blendMode(14);"Screen"==this._BehaviorSplitValues.h[""+n.string(c)][4]?(this._TintSceneLayers.push("Screen"),f.attachImageToHUD(this._ImageInstance,-(f.getTileWidth()/2)|0,-(f.getTileHeight()/2)|0)):(this._TintSceneLayers.push(this._BehaviorSplitValues.h[""+n.string(c)][4]), +f.attachImageToLayer(this._ImageInstance,f.engine.getLayerById(f.asNumber(this._BehaviorSplitValues.h[""+n.string(c)][4])|0),f.getScreenX()-f.getTileWidth()/2|0,f.getScreenY()-f.getTileHeight()/2|0,1));if(this._Activate){var d=this._ScreenColors,e=f.asNumber(this._BehaviorSplitValues.h[""+n.string(c)][0])|0,g=f.asNumber(this._BehaviorSplitValues.h[""+n.string(c)][1])|0,h=f.asNumber(this._BehaviorSplitValues.h[""+n.string(c)][2])|0;null==h&&(h=0);null==g&&(g=0);null==e&&(e=0);d.push(e<<16|g<<8|h); +d=this._Canvas;e=f.asNumber(this._BehaviorSplitValues.h[""+n.string(c)][0])|0;g=f.asNumber(this._BehaviorSplitValues.h[""+n.string(c)][1])|0;h=f.asNumber(this._BehaviorSplitValues.h[""+n.string(c)][2])|0;null==h&&(h=0);null==g&&(g=0);null==e&&(e=0);f.fillImage(d,e<<16|g<<8|h);0==f.asNumber(this._BehaviorSplitValues.h[""+n.string(c)][6])?this._ImageInstance.set_alpha(f.asNumber(this._BehaviorSplitValues.h[""+n.string(c)][3])/100):(this._ImageInstance.set_alpha(0),d=this._TintIndexSettings,e=""+f.asNumber(this._TintLayers.indexOf(c)), +c=""+n.string(this._BehaviorSplitValues.h[""+n.string(c)][3])+(","+100*this._ImageInstance.get_alpha())+(","+n.string(this._BehaviorSplitValues.h[""+n.string(c)][6])+(","+100*this._ImageInstance.get_alpha())),d.h[e]=c)}}this.addListener(f.engine.whenUpdated,q(this,this._event_Updating));this.addListener(f.engine.whenDrawing,q(this,this._event_Drawing))},forwardMessage:function(a){},__class__:Ls});var Ms=function(a,b,c){w.call(this,b);this.nameMap.h.Actor="actor";this.nameMap.h["Colors Map"]="_ColorsMap"; +a=new V;a.h.Normal="[Remove]";this._ColorsMap=a;this.nameMap.h["Current Color Mode"]="_CurrentColorMode";this._CurrentColorMode="";this.nameMap.h["Color Mode Global Value"]="_ColorModeGlobalValue";this._ColorModeGlobalValue="ColorMode";this.nameMap.h["Actor Image"]="_ActorImage";this.nameMap.h["Actor Image Instance"]="_ActorImageInstance";this.nameMap.h["Old Color Mode"]="_OldColorMode";this._OldColorMode="";this.nameMap.h["Old Animation"]="_OldAnimation";this._OldAnimation="";this.nameMap.h["Old Frame"]= +"_OldFrame";this._OldFrame=0;this.nameMap.h["Effects List"]="_EffectsList";this.nameMap.h.Update="_Update";this._Update=!1;this.nameMap.h["Old Opacity"]="_OldOpacity";this._OldOpacity=0;this.nameMap.h["Behavior Split Values"]="_BehaviorSplitValues";this.nameMap.h.Optimize="_Optimize";this._Optimize=!0;this.nameMap.h["Stored Colors"]="_StoredColors";this.nameMap.h["Color Swap Applied"]="_ColorSwapApplied";this._ColorSwapApplied=!1};k["scripts.Design_323_323_ColorSwap"]=Ms;Ms.__name__="scripts.Design_323_323_ColorSwap"; +Ms.__super__=w;Ms.prototype=u(w.prototype,{_ColorsMap:null,_CurrentColorMode:null,_ColorModeGlobalValue:null,_ActorImage:null,_ActorImageInstance:null,_OldColorMode:null,_OldAnimation:null,_OldFrame:null,_EffectsList:null,_Update:null,_OldOpacity:null,_BehaviorSplitValues:null,_Optimize:null,_StoredColors:null,_ColorSwapApplied:null,_event_Updating:function(a){if(this.wrapper.enabled){f.isTransitioning()&&(this._Update=!0);if(!this._Optimize||this._Update||this._CurrentColorMode!=this._OldColorMode|| +this._OldAnimation!=this.actor.getAnimation()||this._OldFrame!=this.actor.getCurrentFrame()||this._OldOpacity!=100*this.actor.get_alpha())if(this._Update=!1,this._OldColorMode=this._CurrentColorMode,f.clearImage(this._ActorImage),this._ColorSwapApplied&&f.removeImage(this._ActorImageInstance),this._ActorImage=f.getImageForActor(this.actor).clone(),this._ActorImageInstance=new ke(new Vb(this._ActorImage)),"[Remove]"==this._ColorsMap.h[this._CurrentColorMode]||null==this._ColorsMap.h[this._CurrentColorMode]){if(this._ColorSwapApplied){f.clearImage(this._ActorImage); +this.actor.enableActorDrawing();this.actor.clearFilters();a=0;for(var b=O.__cast(this._EffectsList,Array);a<b.length;){var c=b[a];++a;this.actor.setFilter([c])}this._ActorImage=f.getImageForActor(this.actor).clone();this._ColorSwapApplied=!1}}else{a=this._StoredColors;b=this.actor.getAnimation()+(""+this.actor.getCurrentFrame());if(Object.prototype.hasOwnProperty.call(a.h,b))a=this._StoredColors,b=this.actor.getAnimation()+(""+this.actor.getCurrentFrame()),this._ActorImage=a.h[b].clone(),this._ActorImageInstance= +new ke(new Vb(this._ActorImage));else{a=0;for(b=O.__cast(this._ColorsMap.h[this._CurrentColorMode],Array);a<b.length;){c=b[a];++a;Object.prototype.hasOwnProperty.call(this._BehaviorSplitValues.h,""+n.string(c))||(this._BehaviorSplitValues.h[""+n.string(c)]=(""+n.string(c)).split(","));var d=this._ActorImage,e=f.asNumber(this._BehaviorSplitValues.h[""+n.string(c)][0])|0,g=f.asNumber(this._BehaviorSplitValues.h[""+n.string(c)][1])|0,h=f.asNumber(this._BehaviorSplitValues.h[""+n.string(c)][2])|0;null== +h&&(h=0);null==g&&(g=0);null==e&&(e=0);var l=f.asNumber(this._BehaviorSplitValues.h[""+n.string(c)][3])|0,k=f.asNumber(this._BehaviorSplitValues.h[""+n.string(c)][4])|0;c=f.asNumber(this._BehaviorSplitValues.h[""+n.string(c)][5])|0;null==c&&(c=0);null==k&&(k=0);null==l&&(l=0);f.imageSwapColor(d,e<<16|g<<8|h,l<<16|k<<8|c)}a=this._StoredColors;b=this.actor.getAnimation()+(""+this.actor.getCurrentFrame());d=this._ActorImage.clone();a.h[b]=d}a=0;for(b=O.__cast(this._EffectsList,Array);a<b.length;)c=b[a], +++a,f.setFilterForImage(this._ActorImageInstance,c);this._ActorImageInstance.set_alpha(100*this.actor.get_alpha()/100);f.attachImageToActor(this._ActorImageInstance,this.actor,0,0,1);this.actor.disableActorDrawing();this._ColorSwapApplied=!0}this._OldOpacity=100*this.actor.get_alpha();this._OldAnimation=this.actor.getAnimation();this._OldFrame=this.actor.getCurrentFrame()}},_customEvent_RemoveEffects:function(){this._EffectsList.length=0;f.clearFiltersForImage(this._ActorImageInstance);this.actor.clearFilters(); +this._ActorImageInstance.set_alpha(1)},_customBlock_SwapColorMode:function(a){this._CurrentColorMode=a},_customBlock_EffectColorSwap:function(a){this._EffectsList.push(a);this._Update=!0},init:function(){this._BehaviorSplitValues=new V;this._StoredColors=new V;for(var a=Object.keys(this._ColorsMap.h),b=a.length,c=0;c<b;){var d=a[c++];"[Remove]"!=this._ColorsMap.h[""+d]&&(this._ColorsMap.h[""+d]=(""+n.string(this._ColorsMap.h[""+d])).split("/"))}this._EffectsList=[];this._ActorImage=f.getImageForActor(this.actor).clone(); +this._ActorImageInstance=new ke(new Vb(this._ActorImage));""!=this._ColorModeGlobalValue&&null!=f.getGameAttribute(this._ColorModeGlobalValue)&&(this._CurrentColorMode=""+n.string(f.getGameAttribute(this._ColorModeGlobalValue)));this.addListener(this.actor.whenUpdated,q(this,this._event_Updating))},forwardMessage:function(a){},__class__:Ms});var Ns=function(a,b){f.call(this);this.nameMap.h["Image Pieces"]="_ImagePieces";this.nameMap.h["Return Image"]="_ReturnImage";this.nameMap.h["Piece Width"]="_PieceWidth"; +this._PieceWidth=0;this.nameMap.h["Piece Height"]="_PieceHeight";this._PieceHeight=0};k["scripts.Design_324_324_ResizeSceneMenuWindow"]=Ns;Ns.__name__="scripts.Design_324_324_ResizeSceneMenuWindow";Ns.__super__=gb;Ns.prototype=u(gb.prototype,{_ImagePieces:null,_ReturnImage:null,_PieceWidth:null,_PieceHeight:null,_customBlock_ResizeSceneMenuWindow:function(a,b,c){this._ImagePieces=[];this._ReturnImage=f.newImage(b|0,c|0);this._PieceWidth=Math.round((new ke(new Vb(a))).get_width()/h.SCALE/3);this._PieceHeight= +Math.round((new ke(new Vb(a))).get_height()/h.SCALE/3);for(var d=0;9>d;){var e=d++;this._ImagePieces.push(f.getSubImage(a,e%3*this._PieceWidth|0,this._PieceHeight*Math.floor(e/3)|0,this._PieceWidth|0,this._PieceHeight|0))}f.drawImageOnImage(this._ImagePieces[0],this._ReturnImage,0,0,10);0<100*(b-2*this._PieceWidth)/this._PieceWidth&&f.drawImageOnImage(f.resizeImage(this._ImagePieces[1],Math.ceil(100*(b-2*this._PieceWidth)/this._PieceWidth)/100,1,!1),this._ReturnImage,this._PieceWidth|0,0,10);f.drawImageOnImage(this._ImagePieces[2], +this._ReturnImage,b-this._PieceWidth|0,0,10);0<100*(c-2*this._PieceHeight)/this._PieceHeight&&f.drawImageOnImage(f.resizeImage(this._ImagePieces[3],1,Math.ceil(100*(c-2*this._PieceHeight)/this._PieceHeight)/100,!1),this._ReturnImage,0,this._PieceHeight|0,10);0<100*(b-2*this._PieceWidth)/this._PieceWidth&&0<100*(c-2*this._PieceHeight)/this._PieceHeight&&f.drawImageOnImage(f.resizeImage(this._ImagePieces[4],Math.ceil(100*(b-2*this._PieceWidth)/this._PieceWidth)/100,Math.ceil(100*(c-2*this._PieceHeight)/ +this._PieceHeight)/100,!1),this._ReturnImage,this._PieceWidth|0,this._PieceHeight|0,10);0<100*(c-2*this._PieceHeight)/this._PieceHeight&&f.drawImageOnImage(f.resizeImage(this._ImagePieces[5],1,Math.ceil(100*(c-2*this._PieceHeight)/this._PieceHeight)/100,!1),this._ReturnImage,b-this._PieceWidth|0,this._PieceHeight|0,10);f.drawImageOnImage(this._ImagePieces[6],this._ReturnImage,0,c-this._PieceHeight|0,10);0<100*(b-2*this._PieceWidth)/this._PieceWidth&&f.drawImageOnImage(f.resizeImage(this._ImagePieces[7], +Math.ceil(100*(b-2*this._PieceWidth)/this._PieceWidth)/100,1,!1),this._ReturnImage,this._PieceWidth|0,c-this._PieceHeight|0,10);f.drawImageOnImage(this._ImagePieces[8],this._ReturnImage,b-this._PieceWidth|0,c-this._PieceHeight|0,10);this._ImagePieces.length=0;return this._ReturnImage},init:function(){},forwardMessage:function(a){},__class__:Ns});var Os=function(a,b,c){w.call(this,b);this.nameMap.h.Actor="actor";this.nameMap.h.Time="_Time";this._Time=0;this.nameMap.h["Die Animation"]="_DieAnimation"; +this._DieAnimation="";this.nameMap.h.Fade="_Fade";this._Fade="";this.nameMap.h["Fade Time"]="_FadeTime";this._FadeTime=0;this.nameMap.h.Stop="_Stop";this._Stop=!1;this.nameMap.h["Die Animation Duration"]="_DieAnimationDuration";this._DieAnimationDuration=0;this.nameMap.h.Triggers="_Triggers";this.nameMap.h["Time Ticks"]="_TimeTicks";this._TimeTicks=0;this.nameMap.h["Handle Time Up"]="_HandleTimeUp";this._HandleTimeUp=!1;this.nameMap.h.Initialized="_Initialized";this._Initialized=!1;this.nameMap.h["Time by Animation"]= +"_TimebyAnimation";this.nameMap.h["Off Screen Only"]="_OffScreenOnly";this._OffScreenOnly=!1;this.nameMap.h["Behavior Split Values List"]="_BehaviorSplitValuesList"};k["scripts.Design_325_325_DieOverTime"]=Os;Os.__name__="scripts.Design_325_325_DieOverTime";Os.__super__=w;Os.prototype=u(w.prototype,{_Time:null,_DieAnimation:null,_Fade:null,_FadeTime:null,_Stop:null,_DieAnimationDuration:null,_Triggers:null,_TimeTicks:null,_HandleTimeUp:null,_Initialized:null,_TimebyAnimation:null,_OffScreenOnly:null, +_BehaviorSplitValuesList:null,_event_Updated:function(a){var b=this;if(this.wrapper.enabled){a=this._TimebyAnimation;var c=this.actor.getAnimation();Object.prototype.hasOwnProperty.call(a.h,c)&&(a=this._TimebyAnimation,c=this.actor.getAnimation(),this._BehaviorSplitValuesList=(""+n.string(a.h[c])).split(","),this._Stop=f.asBoolean(this._BehaviorSplitValuesList[0]),this._OffScreenOnly=f.asBoolean(this._BehaviorSplitValuesList[1]),this._Time=f.asNumber(this._BehaviorSplitValuesList[2]),this._Fade=""+ +n.string(this._BehaviorSplitValuesList[3]),this._FadeTime=f.asNumber(this._BehaviorSplitValuesList[4]),this._DieAnimation=""+n.string(this._BehaviorSplitValuesList[5]),this._DieAnimationDuration=f.asNumber(this._BehaviorSplitValuesList[6]));this._Initialized||(this._Initialized=!0,f.runLater(10,function(a){"From Start"==b._Fade&&b.actor.fadeTo(0,b._FadeTime,ia.backOut)},this.actor));if(!this._OffScreenOnly||this._OffScreenOnly&&!this.actor.isOnScreen())this._TimeTicks+=.01;if(this._TimeTicks>=this._Time&& +!this._HandleTimeUp&&(this._HandleTimeUp=!0,this.actor.isAlive())){this._Stop&&(this.actor.setIgnoreGravity(!0),this.actor.setXVelocity(0),this.actor.setYVelocity(0));a=0;for(c=O.__cast(this._Triggers,Array);a<c.length;){var d=c[a];++a;this.actor.shout("_customEvent_"+n.string(d))}"After Time"==this._Fade?(this.actor.fadeTo(0,this._FadeTime,ia.backOut),f.runLater(1E3*this._FadeTime,function(a){b.actor.isAlive()&&(b.actor.setAnimation(b._DieAnimation),f.runLater(1E3*b._DieAnimationDuration,function(a){b.actor.isAlive()&& +f.recycleActor(b.actor)},b.actor))},this.actor)):(this.actor.setAnimation(this._DieAnimation),f.runLater(1E3*this._DieAnimationDuration,function(a){b.actor.isAlive()&&f.recycleActor(b.actor)},this.actor))}}},init:function(){this.actor.makeAlwaysSimulate();this.addListener(this.actor.whenUpdated,q(this,this._event_Updated))},forwardMessage:function(a){},__class__:Os});var Ps=function(a,b,c){w.call(this,b);this.nameMap.h.Actor="actor";this.nameMap.h["Sprite Sheet"]="_SpriteSheet";this._SpriteSheet= +"_skin0_white.png";this.nameMap.h["Current Animation"]="_CurrentAnimation";this._CurrentAnimation="idle-r";this.nameMap.h.Animations="_Animations";a=new V;a.h["idle-r"]="0,0,6|0,1,6,0";a.h["idle-l"]="0,0,6|0,1,6,0";a.h["fall-r"]="1,1,-";a.h["fall-l"]="1,1,-";a.h["jump-r"]="1,0,-";a.h["jump-l"]="1,0,-";a.h["walk-r"]="2,0,6|2,1,6|2,2,6,0";a.h["walk-l"]="2,0,6|2,1,6|2,2,6,0";a.h.dead="3,0,-";this._Animations=a;this.nameMap.h["Animation Scripts"]="_AnimationScripts";this.nameMap.h["Current Frame"]="_CurrentFrame"; +this._CurrentFrame=0;this.nameMap.h["Frame Count"]="_FrameCount";this._FrameCount=0;this.nameMap.h["Old Animation"]="_OldAnimation";this._OldAnimation="";this.nameMap.h["Old Frame"]="_OldFrame";this._OldFrame=0;this.nameMap.h["Animation Frame Image"]="_AnimationFrameImage";this.nameMap.h["Animation Frame Instance"]="_AnimationFrameInstance";this.nameMap.h["Behavior Split Values"]="_BehaviorSplitValues";this.nameMap.h["Dummy Map"]="_DummyMap";this.nameMap.h.Facing="_Facing";this._Facing="";this.nameMap.h["Sprite Sheet Facing"]= +"_SpriteSheetFacing";this._SpriteSheetFacing="";this.nameMap.h["Old Facing"]="_OldFacing";this._OldFacing="";this.nameMap.h.Debug="_Debug";this._Debug=!1;this.nameMap.h["Debug Font"]="_DebugFont";this.nameMap.h["Dummy List"]="_DummyList";this.nameMap.h["Old Sprite Sheet"]="_OldSpriteSheet";this._OldSpriteSheet="";this.nameMap.h["Image Bank"]="_ImageBank";this.nameMap.h["Animation Speed Multiplier"]="_AnimationSpeedMultiplier";this._AnimationSpeedMultiplier=1;this.nameMap.h["Current Animation Local Value"]= +"_CurrentAnimationLocalValue";this._CurrentAnimationLocalValue="[Actor]";this.nameMap.h["Current Animation Values List"]="_CurrentAnimationValuesList";this._CurrentAnimationValuesList="WallSlide|_IsWallSliding,Wall Slide,true;StopAirDash|_IsAirDashing,Dash,true/_IsStoppingAirDash,Dash,true;AirDash|_IsAirDashing,Air Dash,true;AirJumpUp|_IsAirJumping,Air Jump,true/_JumpingUp,Jump,true;AirJumpDown|_IsAirJumping,Air Jump,true/_FallingDown,Jump,true;WallJump|_WallJumped,Wall Jump,true;RunningJump|_JumpingUp,Jump,true/_RunningJump,Jump,true;Jump|_JumpingUp,Jump,true;RunningFall|_FallingDown,Jump,true/_RunningJump,Jump,true;Fall|_FallingDown,Jump,true;ReadyJump|_ReadyJump,Jump,true;RunningLand|_IsLanding,Jump,true/_RunningJump,Jump,true;Landing|_IsLanding,Jump,true;StopDash|_IsDashing,Dash,true/_IsStoppingDash,Dash,true;Dash|_IsDashing,Dash,true;GroundStop|_IsStopping,Walk,true;Run|_IsWalking,Walk,true/_IsRunning,Walk,true;BackWalk|_IsWalking,Walk,true/_IsBackWalking,Walk,true;Walk|_IsWalking,Walk,true;BackCrawl|_IsDucking,Duck,true/_IsWalking,Walk,true/_IsBackWalking,Walk,true;Crawl|_IsDucking,Duck,true/_IsWalking,Walk,true;Standing|_IsDucking,Duck,true/_IsStanding,Duck,true;CrouchDone|_IsDucking,Duck,true/_DuckFinished,Duck,true;Crouching|_IsDucking,Duck,true".split(";"); +this.nameMap.h["Current Animation Default Value"]="_CurrentAnimationDefaultValue";this._CurrentAnimationDefaultValue="Idle";this.nameMap.h["Checked Values"]="_CheckedValues";this._CheckedValues=0;this.nameMap.h["Sprite Sheet Dimensions and Offsets"]="_SpriteSheetDimensionsandOffsets";a=new V;a.h["-"]="Right,0,0,Auto,Auto";this._SpriteSheetDimensionsandOffsets=a;this.nameMap.h["Sprite Width"]="_SpriteWidth";this._SpriteWidth=0;this.nameMap.h["Sprite Height"]="_SpriteHeight";this._SpriteHeight=0;this.nameMap.h["Used Sprite Sheet"]= +"_UsedSpriteSheet";this._UsedSpriteSheet="";this.nameMap.h["Global Collision Box"]="_GlobalCollisionBox";this._GlobalCollisionBox="";this.nameMap.h["Collision Detection"]="_CollisionDetection";this.nameMap.h["Number of Frames"]="_NumberofFrames";this._NumberofFrames=0;this.nameMap.h["Hide Sprite"]="_HideSprite";this._HideSprite=!0;this.nameMap.h["Anchor Points"]="_AnchorPoints";this.nameMap.h["Global Triggers"]="_GlobalTriggers";this.nameMap.h["Used Script Key"]="_UsedScriptKey";this._UsedScriptKey= +"";this.nameMap.h["Current Color Mode"]="_CurrentColorMode";this._CurrentColorMode="";this.nameMap.h["Colors Map"]="_ColorsMap";a=new V;a.h.Normal="[Remove]";this._ColorsMap=a;this.nameMap.h["Stored Colors"]="_StoredColors";this.nameMap.h["Old Color Mode"]="_OldColorMode";this._OldColorMode="";this.nameMap.h["Debug Colors"]="_DebugColors";a=new V;a.h.Physics="255,255,0";a.h.Solid="255,0,255";this._DebugColors=a;this.nameMap.h["Group Name"]="_GroupName";this._GroupName="";this.nameMap.h["Collision Boxes"]= +"_CollisionBoxes";this.nameMap.h["Check Facing"]="_CheckFacing";this._CheckFacing=!1;this.nameMap.h["Sprite Image Output Local Value"]="_SpriteImageOutputLocalValue";this._SpriteImageOutputLocalValue="SpriteImage";this.nameMap.h["Effects List"]="_EffectsList";this.nameMap.h["Old Effects Number"]="_OldEffectsNumber";this._OldEffectsNumber=0;this.nameMap.h["Update Effects"]="_UpdateEffects";this._UpdateEffects=!1;this.nameMap.h["Sprite Sheet Getter"]="_SpriteSheetGetter";this._SpriteSheetGetter=""; +this.nameMap.h["Scale Prefix"]="_ScalePrefix";this._ScalePrefix="#";this.nameMap.h["Collision Boxes Map"]="_CollisionBoxesMap";a=new V;a.h.Default="Physics,10,20,12,1,12,1,[Self]";this._CollisionBoxesMap=a;this.nameMap.h["Collision ID"]="_CollisionID";this._CollisionID="";this.nameMap.h["Facing Value Name"]="_FacingValueName";this._FacingValueName="Facing"};k["scripts.Design_326_326_AnimationbySpriteSheet"]=Ps;Ps.__name__="scripts.Design_326_326_AnimationbySpriteSheet";Ps.__super__=w;Ps.prototype= +u(w.prototype,{_SpriteSheet:null,_CurrentAnimation:null,_Animations:null,_AnimationScripts:null,_CurrentFrame:null,_FrameCount:null,_OldAnimation:null,_OldFrame:null,_AnimationFrameImage:null,_AnimationFrameInstance:null,_BehaviorSplitValues:null,_DummyMap:null,_Facing:null,_SpriteSheetFacing:null,_OldFacing:null,_Debug:null,_DebugFont:null,_DummyList:null,_OldSpriteSheet:null,_ImageBank:null,_AnimationSpeedMultiplier:null,_CurrentAnimationLocalValue:null,_CurrentAnimationValuesList:null,_CurrentAnimationDefaultValue:null, +_CheckedValues:null,_SpriteSheetDimensionsandOffsets:null,_SpriteWidth:null,_SpriteHeight:null,_UsedSpriteSheet:null,_GlobalCollisionBox:null,_CollisionDetection:null,_NumberofFrames:null,_HideSprite:null,_AnchorPoints:null,_GlobalTriggers:null,_UsedScriptKey:null,_CurrentColorMode:null,_ColorsMap:null,_StoredColors:null,_OldColorMode:null,_DebugColors:null,_GroupName:null,_CollisionBoxes:null,_CheckFacing:null,_SpriteImageOutputLocalValue:null,_EffectsList:null,_OldEffectsNumber:null,_UpdateEffects:null, +_SpriteSheetGetter:null,_ScalePrefix:null,_CollisionBoxesMap:null,_CollisionID:null,_FacingValueName:null,_event_Updating:function(a){if(this.wrapper.enabled){this._HideSprite&&this.actor.disableActorDrawing();null!=this.actor.getActorValue(this._FacingValueName)?this._Facing=""+n.string(this.actor.getActorValue(this._FacingValueName)):this._Facing="Right";a=this._CollisionDetection;var b=f.asBoolean(this._CollisionDetection.h.CollisionTopCheck);a.h.CollisionTop=b;a=this._CollisionDetection;b=f.asBoolean(this._CollisionDetection.h.CollisionBottomCheck); +a.h.CollisionBottom=b;a=this._CollisionDetection;b=f.asBoolean(this._CollisionDetection.h.CollisionLeftCheck);a.h.CollisionLeft=b;a=this._CollisionDetection;b=f.asBoolean(this._CollisionDetection.h.CollisionRightCheck);a.h.CollisionRight=b;a=this._CollisionDetection;b=f.asBoolean(this._CollisionDetection.h.CollisionSensorCheck);a.h.CollisionSensor=b;this._CollisionDetection.h.CollisionTopCheck=!1;this._CollisionDetection.h.CollisionBottomCheck=!1;this._CollisionDetection.h.CollisionLeftCheck=!1;this._CollisionDetection.h.CollisionRightCheck= +!1;this._CollisionDetection.h.CollisionSensorCheck=!1}},_event_DrawingCopy:function(a,b,c){if(this.wrapper.enabled&&(!f.asBoolean(this.actor.isPausable())||f.asBoolean(this.actor.isPausable())&&!f.engine.isPaused())){""!=this._SpriteSheetGetter&&null!=f.getGameAttribute(this._SpriteSheetGetter)&&(this._SpriteSheet=""+n.string(f.getGameAttribute(this._SpriteSheetGetter)));""!=this._SpriteSheet&&(this._UsedSpriteSheet=""!=this._ScalePrefix?J.replace(this._ScalePrefix,"#",""+h.SCALE)+this._SpriteSheet: +this._SpriteSheet);if(this._CurrentColorMode!=this._OldColorMode)if(Object.prototype.hasOwnProperty.call(this._ColorsMap.h,this._CurrentColorMode)&&"[Remove]"!=this._ColorsMap.h[this._CurrentColorMode])if(Object.prototype.hasOwnProperty.call(this._StoredColors.h,this._CurrentColorMode+this._UsedSpriteSheet+(this._CurrentAnimation+(""+this._CurrentFrame))))f.clearImage(this._AnimationFrameImage),f.drawImageOnImage(this._StoredColors.h[this._CurrentColorMode+this._UsedSpriteSheet+(this._CurrentAnimation+ +(""+this._CurrentFrame))].clone(),this._AnimationFrameImage,0,0,10);else{for(var d=0,e=O.__cast(this._ColorsMap.h[this._CurrentColorMode],Array);d<e.length;){b=e[d];++d;Object.prototype.hasOwnProperty.call(this._BehaviorSplitValues.h,""+n.string(b))||(this._BehaviorSplitValues.h[""+n.string(b)]=(""+n.string(b)).split(","));var g=this._AnimationFrameImage;c=f.asNumber(this._BehaviorSplitValues.h[""+n.string(b)][0])|0;var k=f.asNumber(this._BehaviorSplitValues.h[""+n.string(b)][1])|0,l=f.asNumber(this._BehaviorSplitValues.h[""+ +n.string(b)][2])|0;null==l&&(l=0);null==k&&(k=0);null==c&&(c=0);var r=f.asNumber(this._BehaviorSplitValues.h[""+n.string(b)][3])|0,m=f.asNumber(this._BehaviorSplitValues.h[""+n.string(b)][4])|0;b=f.asNumber(this._BehaviorSplitValues.h[""+n.string(b)][5])|0;null==b&&(b=0);null==m&&(m=0);null==r&&(r=0);f.imageSwapColor(g,c<<16|k<<8|l,r<<16|m<<8|b)}b=this._StoredColors;c=this._CurrentColorMode+this._UsedSpriteSheet+(this._CurrentAnimation+(""+this._CurrentFrame));k=this._AnimationFrameImage.clone(); +b.h[c]=k}else f.clearImage(this._AnimationFrameImage),Object.prototype.hasOwnProperty.call(this._ImageBank.h,this._UsedSpriteSheet+(this._CurrentAnimation+(""+this._CurrentFrame)))||(b=this._ImageBank,c=this._UsedSpriteSheet+(this._CurrentAnimation+(""+this._CurrentFrame)),k=f.getSubImage(f.getExternalImage(this._UsedSpriteSheet),f.asNumber(this._Animations.h[this._CurrentAnimation+(""+this._CurrentFrame)][1])*this._SpriteWidth|0,f.asNumber(this._Animations.h[this._CurrentAnimation+(""+this._CurrentFrame)][0])* +this._SpriteHeight|0,this._SpriteWidth|0,this._SpriteHeight|0),b.h[c]=k),f.drawImageOnImage(this._ImageBank.h[this._UsedSpriteSheet+(this._CurrentAnimation+(""+this._CurrentFrame))],this._AnimationFrameImage,0,0,10);this._UsedSpriteSheet!=this._OldSpriteSheet&&(this._UsedScriptKey="[Change]"+this._SpriteSheet,this._customEvent_UpdateAnimationEvents(),Object.prototype.hasOwnProperty.call(this._SpriteSheetDimensionsandOffsets.h,this._SpriteSheet)?this._DummyList=this._SpriteSheetDimensionsandOffsets.h[this._SpriteSheet].slice(): +this._DummyList=this._SpriteSheetDimensionsandOffsets.h["-"].slice(),f.removeImage(this._AnimationFrameInstance),f.attachImageToActor(this._AnimationFrameInstance,this.actor,f.asNumber(this._DummyList[1])|0,f.asNumber(this._DummyList[2])|0,1),this._SpriteSheetFacing=""+n.string(this._DummyList[0]),this._SpriteWidth="Auto"==this._DummyList[3]?this.actor.getWidth():f.asNumber(this._DummyList[3]),this._SpriteHeight="Auto"==this._DummyList[4]?this.actor.getHeight():f.asNumber(this._DummyList[4]));if(""!= +this._CurrentAnimationLocalValue&&(""!=this._CurrentAnimationDefaultValue&&this.actor.setActorValue(this._CurrentAnimationLocalValue,this._CurrentAnimationDefaultValue),"[Auto]"!=this._CurrentAnimationLocalValue))for(d=0,e=this._CurrentAnimationValuesList.length;d<e;){c=d++;k=this._CheckedValues=0;for(l=O.__cast(this._BehaviorSplitValues.h["ValueCheck"+c],Array);k<l.length;)b=l[k],++k,Object.prototype.hasOwnProperty.call(this._BehaviorSplitValues.h,""+n.string(b))||(this._BehaviorSplitValues.h[""+ +n.string(b)]=(""+n.string(b)).split(",")),"[Value]"==""+n.string(this._BehaviorSplitValues.h[""+n.string(b)][1])?""+n.string(this.actor.getActorValue(""+n.string(this._BehaviorSplitValues.h[""+n.string(b)][0])))==""+n.string(this._BehaviorSplitValues.h[""+n.string(b)][2])&&(this._CheckedValues+=1):this.actor.hasBehavior(""+n.string(this._BehaviorSplitValues.h[""+n.string(b)][1]))&&this.actor.isBehaviorEnabled(""+n.string(this._BehaviorSplitValues.h[""+n.string(b)][1]))&&""+n.string(this.actor.getValue(""+ +n.string(this._BehaviorSplitValues.h[""+n.string(b)][1]),""+n.string(this._BehaviorSplitValues.h[""+n.string(b)][0])))==""+n.string(this._BehaviorSplitValues.h[""+n.string(b)][2])&&(this._CheckedValues+=1);if(this._CheckedValues>=this._BehaviorSplitValues.h["ValueCheck"+c].length){this.actor.setActorValue(this._CurrentAnimationLocalValue,this._BehaviorSplitValues.h["ValueSet"+c]);break}}""!=this._CurrentAnimationLocalValue&&(this._CurrentAnimation="[Actor]"==this._CurrentAnimationLocalValue?this.actor.getAnimation(): +""+n.string(this.actor.getActorValue(this._CurrentAnimationLocalValue)));this._NumberofFrames=this._Animations.h[this._CurrentAnimation].length;this._CurrentAnimation!=this._OldAnimation&&(this._CurrentFrame=this._FrameCount=0);if(""!=this._UsedSpriteSheet&&f.hasValue(this._AnimationFrameImage)&&Object.prototype.hasOwnProperty.call(this._Animations.h,this._CurrentAnimation)&&("-"!=this._Animations.h[this._CurrentAnimation+(""+this._CurrentFrame)][2]&&(this._FrameCount+=this._AnimationSpeedMultiplier)>= +f.asNumber(this._Animations.h[this._CurrentAnimation+(""+this._CurrentFrame)][2])&&(this._FrameCount=0,this._CurrentFrame+=1,this._CurrentFrame>this._Animations.h[this._CurrentAnimation].length-1&&(this._CurrentFrame=f.asNumber(this._Animations.h[this._CurrentAnimation+(""+(this._Animations.h[this._CurrentAnimation].length-1))][3]))),this._CurrentFrame!=this._OldFrame||this._CurrentAnimation!=this._OldAnimation||this._UsedSpriteSheet!=this._OldSpriteSheet||this._Facing!=this._OldFacing||this._OldEffectsNumber!= +this._EffectsList.length)){this._UpdateEffects=!0;f.clearImage(this._AnimationFrameImage);Object.prototype.hasOwnProperty.call(this._ImageBank.h,this._UsedSpriteSheet+(this._CurrentAnimation+(""+this._CurrentFrame)))||(b=this._ImageBank,c=this._UsedSpriteSheet+(this._CurrentAnimation+(""+this._CurrentFrame)),k=f.getSubImage(f.getExternalImage(this._UsedSpriteSheet),f.asNumber(this._Animations.h[this._CurrentAnimation+(""+this._CurrentFrame)][1])*this._SpriteWidth|0,f.asNumber(this._Animations.h[this._CurrentAnimation+ +(""+this._CurrentFrame)][0])*this._SpriteHeight|0,this._SpriteWidth|0,this._SpriteHeight|0),b.h[c]=k);f.drawImageOnImage(this._ImageBank.h[this._UsedSpriteSheet+(this._CurrentAnimation+(""+this._CurrentFrame))],this._AnimationFrameImage,0,0,10);if(Object.prototype.hasOwnProperty.call(this._ColorsMap.h,this._CurrentColorMode)&&"[Remove]"!=this._ColorsMap.h[this._CurrentColorMode])if(Object.prototype.hasOwnProperty.call(this._StoredColors.h,this._CurrentColorMode+this._UsedSpriteSheet+(this._CurrentAnimation+ +(""+this._CurrentFrame))))f.clearImage(this._AnimationFrameImage),f.drawImageOnImage(this._StoredColors.h[this._CurrentColorMode+this._UsedSpriteSheet+(this._CurrentAnimation+(""+this._CurrentFrame))].clone(),this._AnimationFrameImage,0,0,10);else{d=0;for(e=O.__cast(this._ColorsMap.h[this._CurrentColorMode],Array);d<e.length;)b=e[d],++d,Object.prototype.hasOwnProperty.call(this._BehaviorSplitValues.h,""+n.string(b))||(this._BehaviorSplitValues.h[""+n.string(b)]=(""+n.string(b)).split(",")),g=this._AnimationFrameImage, +c=f.asNumber(this._BehaviorSplitValues.h[""+n.string(b)][0])|0,k=f.asNumber(this._BehaviorSplitValues.h[""+n.string(b)][1])|0,l=f.asNumber(this._BehaviorSplitValues.h[""+n.string(b)][2])|0,null==l&&(l=0),null==k&&(k=0),null==c&&(c=0),r=f.asNumber(this._BehaviorSplitValues.h[""+n.string(b)][3])|0,m=f.asNumber(this._BehaviorSplitValues.h[""+n.string(b)][4])|0,b=f.asNumber(this._BehaviorSplitValues.h[""+n.string(b)][5])|0,null==b&&(b=0),null==m&&(m=0),null==r&&(r=0),f.imageSwapColor(g,c<<16|k<<8|l,r<< +16|m<<8|b);b=this._StoredColors;c=this._CurrentColorMode+this._UsedSpriteSheet+(this._CurrentAnimation+(""+this._CurrentFrame));k=this._AnimationFrameImage.clone();b.h[c]=k}"-"!=this._SpriteSheetFacing&&this._SpriteSheetFacing!=this._Facing&&f.flipImageHorizontal(this._AnimationFrameImage);Object.prototype.hasOwnProperty.call(this._AnimationScripts.h,this._SpriteSheet+(","+(this._CurrentAnimation+(","+this._CurrentFrame))))?this._UsedScriptKey=this._SpriteSheet+(","+(this._CurrentAnimation+(","+this._CurrentFrame))): +Object.prototype.hasOwnProperty.call(this._AnimationScripts.h,"-,"+(this._CurrentAnimation+(","+this._CurrentFrame)))&&(this._UsedScriptKey="-,"+(this._CurrentAnimation+(","+this._CurrentFrame)));this._CheckFacing&&(this._UsedScriptKey+=","+this._Facing);this._customEvent_UpdateAnimationEvents();if(this._CurrentAnimation!=this._OldAnimation)for(d=0,e=O.__cast(this._GlobalTriggers,Array);d<e.length;)b=e[d],++d,this.actor.shout("_customEvent_"+n.string(b))}this._AnimationFrameInstance.set_alpha(100* +this.actor.get_alpha()/100);if(this._UpdateEffects&&(this._UpdateEffects=!1,null!=this._EffectsList&&0!=this._EffectsList.length))for(d=0,e=O.__cast(this._EffectsList,Array);d<e.length;)b=e[d],++d,f.filterImage(this._AnimationFrameImage,b);this._OldEffectsNumber=this._EffectsList.length;""!=this._SpriteImageOutputLocalValue&&this.actor.setActorValue(this._SpriteImageOutputLocalValue,this._AnimationFrameImage.clone());this._OldAnimation=this._CurrentAnimation;this._OldFrame=this._CurrentFrame;this._OldFacing= +this._Facing;this._OldSpriteSheet=this._UsedSpriteSheet;this._OldColorMode=this._CurrentColorMode;if(this._Debug&&""!=this._CurrentAnimation&&Object.prototype.hasOwnProperty.call(this._Animations.h,this._CurrentAnimation+(""+this._CurrentFrame)))for(a.translateToActor(this.actor),a.setFont(this._DebugFont),a.drawString("Sprite Sheet: "+this._UsedSpriteSheet,0,-(a.font.getHeight()/h.SCALE*4)),a.drawString("Animation: "+(this._CurrentAnimation+(", "+this._CurrentFrame)),0,-(a.font.getHeight()/h.SCALE* +3)),a.drawString("Frame Timer: "+(this._FrameCount+("x"+this._AnimationSpeedMultiplier)+("/"+n.string(this._Animations.h[this._CurrentAnimation+(""+this._CurrentFrame)][2]))),0,-(a.font.getHeight()/h.SCALE*2)),a.drawString("Color Mode: "+this._CurrentColorMode,0,-(a.font.getHeight()/h.SCALE)),a.strokeSize=1,d=this._CollisionBoxes.h,e=Object.keys(d),g=e.length,r=0;r<g;)b=d[e[r++]],Object.prototype.hasOwnProperty.call(this._DebugColors.h,""+n.string(b.h.Type))&&(c=f.asNumber(this._DebugColors.h[""+ +n.string(b.h.Type)][0])|0,k=f.asNumber(this._DebugColors.h[""+n.string(b.h.Type)][1])|0,l=f.asNumber(this._DebugColors.h[""+n.string(b.h.Type)][2])|0,null==l&&(l=0),null==k&&(k=0),null==c&&(c=0),a.strokeColor=c<<16|k<<8|l),a.beginDrawPolygon(),a.addPointToPolygon(f.asNumber(b.h.X),f.asNumber(b.h.Y)+f.asNumber(b.h.HO)),a.addPointToPolygon(f.asNumber(b.h.X)+f.asNumber(b.h.WO),f.asNumber(b.h.Y)),a.addPointToPolygon(f.asNumber(b.h.X)+(f.asNumber(b.h.W)-f.asNumber(b.h.WO)),f.asNumber(b.h.Y)),a.addPointToPolygon(f.asNumber(b.h.X)+ +f.asNumber(b.h.W),f.asNumber(b.h.Y)+f.asNumber(b.h.HO)),a.addPointToPolygon(f.asNumber(b.h.X)+f.asNumber(b.h.W),f.asNumber(b.h.Y)+(f.asNumber(b.h.H)-f.asNumber(b.h.HO))),a.addPointToPolygon(f.asNumber(b.h.X)+(f.asNumber(b.h.W)-f.asNumber(b.h.WO)),f.asNumber(b.h.Y)+f.asNumber(b.h.H)),a.addPointToPolygon(f.asNumber(b.h.X)+f.asNumber(b.h.WO),f.asNumber(b.h.Y)+f.asNumber(b.h.H)),a.addPointToPolygon(f.asNumber(b.h.X),f.asNumber(b.h.Y)+(f.asNumber(b.h.H)-f.asNumber(b.h.HO))),a.endDrawingPolygon()}},_event_ActorAny:function(a){if(this.wrapper.enabled){if(a.thisCollidedWithSensor){var b= +this._CollisionBoxes.h,c=b;b=Object.keys(b);for(var d=b.length,e=0;e<d;){var g=c[b[e++]];if("Solid"==""+n.string(g.h.Type)&&a.otherActor.getX()+a.otherActor.getWidth()>=this.actor.getX()+f.asNumber(g.h.X)&&a.otherActor.getX()<=this.actor.getX()+(f.asNumber(g.h.X)+f.asNumber(g.h.W))&&a.otherActor.getY()+a.otherActor.getHeight()>=this.actor.getY()+f.asNumber(g.h.Y)&&a.otherActor.getY()<=this.actor.getY()+(f.asNumber(g.h.Y)+f.asNumber(g.h.H))){this._CollisionDetection.h.CollisionSensorCheck=!0;break}}}if(!a.thisCollidedWithSensor)for(c= +b=this._CollisionBoxes.h,b=Object.keys(b),d=b.length,e=0;e<d;)if(g=c[b[e++]],"Solid"==""+n.string(g.h.Type)){if(0>this.actor.getYVelocity()&&this.actor.getYCenter()>=a.otherActor.getYCenter()&&a.otherActor.getY()+a.otherActor.getHeight()>this.actor.getY()+f.asNumber(g.h.Y))for(var h=0,l=f.asNumber(g.h.W)-2*f.asNumber(g.h.WO)|0;h<l;){var k=h++;if(this.actor.getX()+(f.asNumber(g.h.X)+f.asNumber(g.h.WO))+k>=a.otherActor.getX()&&this.actor.getX()+(f.asNumber(g.h.X)+f.asNumber(g.h.WO))+k<=a.otherActor.getX()+ +a.otherActor.getWidth()){this.actor.setY(a.otherActor.getY()+a.otherActor.getHeight()-f.asNumber(g.h.Y));this.actor.setYVelocity(0);this._CollisionDetection.h.CollisionTopCheck=!0;break}}if(0<this.actor.getYVelocity()&&this.actor.getYCenter()<=a.otherActor.getYCenter()&&a.otherActor.getY()<this.actor.getY()+(f.asNumber(g.h.Y)+f.asNumber(g.h.H)))for(h=0,l=f.asNumber(g.h.W)-2*f.asNumber(g.h.WO)|0;h<l;)if(k=h++,this.actor.getX()+(f.asNumber(g.h.X)+f.asNumber(g.h.WO))+k>=a.otherActor.getX()&&this.actor.getX()+ +(f.asNumber(g.h.X)+f.asNumber(g.h.WO))+k<=a.otherActor.getX()+a.otherActor.getWidth()){this.actor.setY(a.otherActor.getY()-(f.asNumber(g.h.Y)+f.asNumber(g.h.H)));this.actor.setYVelocity(0);this._CollisionDetection.h.CollisionBottomCheck=!0;break}if(0>this.actor.getXVelocity()&&this.actor.getXCenter()>=a.otherActor.getXCenter()&&a.otherActor.getX()+a.otherActor.getWidth()>this.actor.getX()+f.asNumber(g.h.X))for(h=0,l=f.asNumber(g.h.H)-2*f.asNumber(g.h.HO)|0;h<l;)if(k=h++,this.actor.getY()+(f.asNumber(g.h.Y)+ +f.asNumber(g.h.HO))+k>=a.otherActor.getY()&&this.actor.getY()+(f.asNumber(g.h.Y)+f.asNumber(g.h.HO))+k<=a.otherActor.getY()+a.otherActor.getHeight()){this.actor.setX(a.otherActor.getX()+a.otherActor.getWidth()-f.asNumber(g.h.X));this.actor.setXVelocity(0);this._CollisionDetection.h.CollisionLeftCheck=!0;break}if(0<this.actor.getXVelocity()&&this.actor.getXCenter()<=a.otherActor.getXCenter()&&a.otherActor.getX()<this.actor.getX()+(f.asNumber(g.h.X)+f.asNumber(g.h.W)))for(h=0,l=f.asNumber(g.h.H)-2* +f.asNumber(g.h.HO)|0;h<l;)if(k=h++,this.actor.getY()+(f.asNumber(g.h.Y)+f.asNumber(g.h.HO))+k>=a.otherActor.getY()&&this.actor.getY()+(f.asNumber(g.h.Y)+f.asNumber(g.h.HO))+k<=a.otherActor.getY()+a.otherActor.getHeight()){this.actor.setX(a.otherActor.getX()-(f.asNumber(g.h.X)+f.asNumber(g.h.W)));this.actor.setXVelocity(0);this._CollisionDetection.h.CollisionRightCheck=!0;break}}}},_event_ActorCreated:function(){this.wrapper.enabled&&f.removeImage(this._AnimationFrameInstance)},_customEvent_UpdateAnimationEvents:function(){if(Object.prototype.hasOwnProperty.call(this._AnimationScripts.h, +this._UsedScriptKey))for(var a=0,b=O.__cast(this._AnimationScripts.h[this._UsedScriptKey],Array);a<b.length;){var c=b[a];++a;Object.prototype.hasOwnProperty.call(this._BehaviorSplitValues.h,""+n.string(c))||(this._BehaviorSplitValues.h[""+n.string(c)]=(""+n.string(c)).split(","));if("Anchor Point"==""+n.string(this._BehaviorSplitValues.h[""+n.string(c)][0])){this._DummyMap=new V;for(var d=0,e=this._BehaviorSplitValues.h[""+n.string(c)].length;d<e;){var g=d++;Object.prototype.hasOwnProperty.call(this._BehaviorSplitValues.h, +""+n.string(this._BehaviorSplitValues.h[""+n.string(c)][2+g]))||(this._BehaviorSplitValues.h[""+n.string(this._BehaviorSplitValues.h[""+n.string(c)][2+g])]=(""+n.string(this._BehaviorSplitValues.h[""+n.string(c)][2+g])).split("="));this._DummyList=this._BehaviorSplitValues.h[""+n.string(this._BehaviorSplitValues.h[""+n.string(c)][2+g])].slice();this._DummyMap.h[""+n.string(this._DummyList[0])]=this._DummyList[1]}this._DummyMap.h.ActorAnimation=this._CurrentAnimation;this._DummyMap.h.ActorFrame=this._CurrentFrame; +this.actor.setActorValue(""+n.string(this._BehaviorSplitValues.h[""+n.string(c)][1]),S.copyMap(this._DummyMap));this._AnchorPoints.push(""+n.string(this._BehaviorSplitValues.h[""+n.string(c)][1]))}"Animation"==""+n.string(this._BehaviorSplitValues.h[""+n.string(c)][0])&&this.actor.setAnimation(""+n.string(this._BehaviorSplitValues.h[""+n.string(c)][1]));"Collision"==""+n.string(this._BehaviorSplitValues.h[""+n.string(c)][0])&&Object.prototype.hasOwnProperty.call(this._CollisionBoxesMap.h,""+n.string(this._BehaviorSplitValues.h[""+ +n.string(c)][2]))&&(this._CollisionID=""+n.string(this._BehaviorSplitValues.h[""+n.string(c)][1]),this._DummyList=this._CollisionBoxesMap.h[""+n.string(this._BehaviorSplitValues.h[""+n.string(c)][2])].slice(),this._customEvent_AddCollisionBox());"Remove Collision"==""+n.string(this._BehaviorSplitValues.h[""+n.string(c)][0])&&(Object.prototype.hasOwnProperty.call(this._CollisionBoxes.h,""+n.string(this._BehaviorSplitValues.h[""+n.string(c)][1]))&&"Physics"==this._CollisionBoxes.h[""+n.string(this._BehaviorSplitValues.h[""+ +n.string(c)][1])].h.Type&&(d=this._CollisionBoxes.h[""+n.string(this._BehaviorSplitValues.h[""+n.string(c)][1])].h.Box,this._CollisionBoxes.h[""+n.string(this._BehaviorSplitValues.h[""+n.string(c)][1])].h.Box.getBody().DestroyFixture(d)),d=""+n.string(this._BehaviorSplitValues.h[""+n.string(c)][1]),e=this._CollisionBoxes,Object.prototype.hasOwnProperty.call(e.h,d)&&delete e.h[d]);"Set Value"==""+n.string(this._BehaviorSplitValues.h[""+n.string(c)][0])&&("[Value]"==""+n.string(this._BehaviorSplitValues.h[""+ +n.string(c)][2])?("-"==""+n.string(this._BehaviorSplitValues.h[""+n.string(c)][3])&&this.actor.setActorValue(""+n.string(this._BehaviorSplitValues.h[""+n.string(c)][1]),this._BehaviorSplitValues.h[""+n.string(c)][4]),0<=(""+n.string(this._BehaviorSplitValues.h[""+n.string(c)][3])).indexOf("List")&&(null==this.actor.getActorValue(""+n.string(this._BehaviorSplitValues.h[""+n.string(c)][1]))&&this.actor.setActorValue(""+n.string(this._BehaviorSplitValues.h[""+n.string(c)][1]),[]),this.actor.getActorValue(""+ +n.string(this._BehaviorSplitValues.h[""+n.string(c)][1]))[f.asNumber(J.replace(""+n.string(this._BehaviorSplitValues.h[""+n.string(c)][3]),"List:",""))|0]=this._BehaviorSplitValues.h[""+n.string(c)][4]),0<=(""+n.string(this._BehaviorSplitValues.h[""+n.string(c)][3])).indexOf("Map")&&(null==this.actor.getActorValue(""+n.string(this._BehaviorSplitValues.h[""+n.string(c)][1]))&&this.actor.setActorValue(""+n.string(this._BehaviorSplitValues.h[""+n.string(c)][1]),new V),d=this.actor.getActorValue(""+n.string(this._BehaviorSplitValues.h[""+ +n.string(c)][1])),e=J.replace(""+n.string(this._BehaviorSplitValues.h[""+n.string(c)][3]),"Map:",""),d.h[e]=this._BehaviorSplitValues.h[""+n.string(c)][4])):this.actor.hasBehavior(""+n.string(this._BehaviorSplitValues.h[""+n.string(c)][2]))&&("-"==""+n.string(this._BehaviorSplitValues.h[""+n.string(c)][3])&&this.actor.setValue(""+n.string(this._BehaviorSplitValues.h[""+n.string(c)][3]),this._BehaviorSplitValues.h[""+n.string(c)][1],this._BehaviorSplitValues.h[""+n.string(c)][4]),0<=(""+n.string(this._BehaviorSplitValues.h[""+ +n.string(c)][3])).indexOf("List")&&(this._DummyList=this.actor.getValue(""+n.string(this._BehaviorSplitValues.h[""+n.string(c)][2]),this._BehaviorSplitValues.h[""+n.string(c)][1]).slice(),this._DummyList[f.asNumber(J.replace(""+n.string(this._BehaviorSplitValues.h[""+n.string(c)][3]),"List:",""))|0]=this._BehaviorSplitValues.h[""+n.string(c)][4],this.actor.setValue(""+n.string(this._BehaviorSplitValues.h[""+n.string(c)][3]),this._BehaviorSplitValues.h[""+n.string(c)][1],this._DummyList.slice())), +0<=(""+n.string(this._BehaviorSplitValues.h[""+n.string(c)][3])).indexOf("Map")&&(d=this._DummyMap=S.copyMap(this.actor.getValue(""+n.string(this._BehaviorSplitValues.h[""+n.string(c)][2]),this._BehaviorSplitValues.h[""+n.string(c)][1])),e=J.replace(""+n.string(this._BehaviorSplitValues.h[""+n.string(c)][3]),"Map:",""),d.h[e]=this._BehaviorSplitValues.h[""+n.string(c)][4],this.actor.setValue(""+n.string(this._BehaviorSplitValues.h[""+n.string(c)][3]),this._BehaviorSplitValues.h[""+n.string(c)][1], +S.copyMap(this._DummyMap)))));"Sound"==""+n.string(this._BehaviorSplitValues.h[""+n.string(c)][0])&&("-"==""+n.string(this._BehaviorSplitValues.h[""+n.string(c)][2])?f.playSound(f.getSoundByName(""+n.string(this._BehaviorSplitValues.h[""+n.string(c)][1]))):f.playSoundOnChannel(f.getSoundByName(""+n.string(this._BehaviorSplitValues.h[""+n.string(c)][1])),f.asNumber(""+n.string(this._BehaviorSplitValues.h[""+n.string(c)][2]))|0));"Trigger"==""+n.string(this._BehaviorSplitValues.h[""+n.string(c)][0])&& +("Actor"==""+n.string(this._BehaviorSplitValues.h[""+n.string(c)][1])?this.actor.shout("_customEvent_"+n.string(this._BehaviorSplitValues.h[""+n.string(c)][2])):f.shoutToScene("_customEvent_"+n.string(this._BehaviorSplitValues.h[""+n.string(c)][2])))}},_customEvent_HideSprite:function(){f.fadeImageTo(this._AnimationFrameInstance,0,0,ia.linear)},_customEvent_ShowSprite:function(){f.fadeImageTo(this._AnimationFrameInstance,1,0,ia.linear)},_customEvent_AddCollisionBox:function(){this._DummyMap=new V; +this._DummyMap.h.Type=""+n.string(this._DummyList[0]);var a=this._DummyMap,b=f.asNumber(this._DummyList[1]);a.h.X=b;a=this._DummyMap;b=f.asNumber(this._DummyList[2]);a.h.Y=b;a=this._DummyMap;b=f.asNumber(this._DummyList[3]);a.h.W=b;a=this._DummyMap;b=f.asNumber(this._DummyList[4]);a.h.WO=b;a=this._DummyMap;b=f.asNumber(this._DummyList[5]);a.h.H=b;a=this._DummyMap;b=f.asNumber(this._DummyList[6]);a.h.HO=b;"Physics"==""+n.string(this._DummyList[0])&&(a=this.actor,b=[],a.addVertex(b,f.asNumber(this._DummyMap.h.X), +f.asNumber(this._DummyMap.h.Y)+f.asNumber(this._DummyMap.h.HO)),a.addVertex(b,f.asNumber(this._DummyMap.h.X)+f.asNumber(this._DummyMap.h.WO),f.asNumber(this._DummyMap.h.Y)),a.addVertex(b,f.asNumber(this._DummyMap.h.X)+(f.asNumber(this._DummyMap.h.W)-f.asNumber(this._DummyMap.h.WO)),f.asNumber(this._DummyMap.h.Y)),a.addVertex(b,f.asNumber(this._DummyMap.h.X)+f.asNumber(this._DummyMap.h.W),f.asNumber(this._DummyMap.h.Y)+f.asNumber(this._DummyMap.h.HO)),a.addVertex(b,f.asNumber(this._DummyMap.h.X)+f.asNumber(this._DummyMap.h.W), +f.asNumber(this._DummyMap.h.Y)+(f.asNumber(this._DummyMap.h.H)-f.asNumber(this._DummyMap.h.HO))),a.addVertex(b,f.asNumber(this._DummyMap.h.X)+(f.asNumber(this._DummyMap.h.W)-f.asNumber(this._DummyMap.h.WO)),f.asNumber(this._DummyMap.h.Y)+f.asNumber(this._DummyMap.h.H)),a.addVertex(b,f.asNumber(this._DummyMap.h.X)+f.asNumber(this._DummyMap.h.WO),f.asNumber(this._DummyMap.h.Y)+f.asNumber(this._DummyMap.h.H)),a.addVertex(b,f.asNumber(this._DummyMap.h.X),f.asNumber(this._DummyMap.h.Y)+(f.asNumber(this._DummyMap.h.H)- +f.asNumber(this._DummyMap.h.HO))),a.addPolygonalShape(b),"[Self]"==this._DummyList[7]?this.actor.getLastCreatedFixture().groupID=this.actor.getGroup().ID:(this._GroupName=""+n.string(this._DummyList[7]),this.actor.getLastCreatedFixture().groupID=f.getGroupByName(this._GroupName).ID),null!=this._DummyList[8]&&this.actor.getLastCreatedFixture().setSensor(!0),a=this._DummyMap,b=this.actor.getLastCreatedFixture(),a.h.Box=b);a=this._CollisionBoxes;var c=this._CollisionID;b=S.copyMap(this._DummyMap);a.h[c]= +b},_customEvent_ClearCollisionBoxes:function(){var a=this._CollisionBoxes.h,b=a;a=Object.keys(a);for(var c=a.length,d=0;d<c;){var e=b[a[d++]];"Physics"==e.h.Type&&e.h.Box.getBody().DestroyFixture(e.h.Box)}a=this._CollisionBoxes.h;b=Object.keys(a);a=b.length;for(c=0;c<a;)d=b[c++],e=this._CollisionBoxes,Object.prototype.hasOwnProperty.call(e.h,d)&&delete e.h[d];""!=this._GlobalCollisionBox&&Object.prototype.hasOwnProperty.call(this._CollisionBoxesMap.h,""+n.string(this._BehaviorSplitValues.h[this._GlobalCollisionBox][1]))&& +(this._CollisionID=""+n.string(this._BehaviorSplitValues.h[this._GlobalCollisionBox][0]),this._DummyList=this._CollisionBoxesMap.h[""+n.string(this._BehaviorSplitValues.h[this._GlobalCollisionBox][1])].slice(),this._customEvent_AddCollisionBox())},_customEvent_ClearAnchorPoints:function(){for(var a=0,b=O.__cast(this._AnchorPoints,Array);a<b.length;){var c=b[a];++a;this.actor.setActorValue(""+n.string(c),null)}this._AnchorPoints.length=0},_customEvent_ResetSpeed:function(){this._AnimationSpeedMultiplier= +1},init:function(){""!=this._SpriteSheetGetter&&null!=f.getGameAttribute(this._SpriteSheetGetter)&&(this._SpriteSheet=""+n.string(f.getGameAttribute(this._SpriteSheetGetter)));this._HideSprite&&this.actor.disableActorDrawing();this._EffectsList=[];this._BehaviorSplitValues=new V;this._ImageBank=new V;this._OldSpriteSheet=this._OldAnimation="-1";this._AnchorPoints=[];this._CollisionBoxes=new V;this._CollisionDetection=new V;this._StoredColors=new V;for(var a=this._ColorsMap.h,b=Object.keys(a),c=b.length, +d=0;d<c;)a=b[d++],"[Remove]"!=this._ColorsMap.h[""+a]&&(this._ColorsMap.h[""+a]=(""+n.string(this._ColorsMap.h[""+a])).split("/"));""!=this._GlobalCollisionBox&&(this._BehaviorSplitValues.h[this._GlobalCollisionBox]=this._GlobalCollisionBox.split(","));a=this._SpriteSheetDimensionsandOffsets.h;b=Object.keys(a);c=b.length;for(d=0;d<c;)a=b[d++],this._SpriteSheetDimensionsandOffsets.h[""+a]=(""+n.string(this._SpriteSheetDimensionsandOffsets.h[""+a])).split(",");this._AnimationFrameImage=f.newImage(this.actor.getWidth()| +0,this.actor.getHeight()|0);this._AnimationFrameInstance=new ke(new Vb(this._AnimationFrameImage));f.attachImageToActor(this._AnimationFrameInstance,this.actor,f.asNumber(this._SpriteSheetDimensionsandOffsets.h["-"][1])|0,f.asNumber(this._SpriteSheetDimensionsandOffsets.h["-"][2])|0,1);b=0;for(c=this._CurrentAnimationValuesList.length;b<c;)d=b++,this._CurrentAnimationValuesList[d]=(""+n.string(this._CurrentAnimationValuesList[d])).split("|"),this._BehaviorSplitValues.h["ValueSet"+d]=this._CurrentAnimationValuesList[d][0], +this._BehaviorSplitValues.h["ValueCheck"+d]=(""+n.string(this._CurrentAnimationValuesList[d][1])).split("/");this._DummyList=S.mapToList(this._Animations,"keys").slice();b=0;for(c=O.__cast(this._DummyList,Array);b<c.length;){a=c[b];++b;this._Animations.h[""+n.string(a)]=(""+n.string(this._Animations.h[""+n.string(a)])).split("|");for(var e=0,g=this._Animations.h[""+n.string(a)].length;e<g;)d=e++,this._Animations.h[""+n.string(a)+(""+d)]=(""+n.string(this._Animations.h[""+n.string(a)][d])).split(",")}a= +this._AnimationScripts.h;b=Object.keys(a);c=b.length;for(d=0;d<c;)a=b[d++],this._AnimationScripts.h[""+a]=(""+n.string(this._AnimationScripts.h[""+a])).split("|");a=this._CollisionBoxesMap.h;b=Object.keys(a);c=b.length;for(d=0;d<c;)a=b[d++],this._CollisionBoxesMap.h[""+a]=(""+n.string(this._CollisionBoxesMap.h[""+a])).split(",");a=this._DebugColors.h;b=Object.keys(a);c=b.length;for(d=0;d<c;)a=b[d++],this._DebugColors.h[""+a]=(""+n.string(this._DebugColors.h[""+a])).split(",");this._customEvent_ClearCollisionBoxes(); +this.addListener(this.actor.whenUpdated,q(this,this._event_Updating));this.addListener(this.actor.whenDrawing,q(this,this._event_DrawingCopy));this.addListener(this.actor.whenCollided,q(this,this._event_ActorAny));this.addListener(this.actor.whenKilled,q(this,this._event_ActorCreated))},forwardMessage:function(a){},__class__:Ps});var Qs=function(a,b,c){w.call(this,b);this.nameMap.h.Actor="actor";this.nameMap.h["Player Number"]="_PlayerNumber";this._PlayerNumber=0;this.nameMap.h["Old Player Number"]= +"_OldPlayerNumber";this._OldPlayerNumber=0;this.nameMap.h["Player Number Global Value Name"]="_PlayerNumberGlobalValueName";this._PlayerNumberGlobalValueName="";this.nameMap.h["Controls per Behavior"]="_ControlsperBehavior";a=new V;a.h["Player Control"]="_Right,right|_Left,left|_Run,action1|_Jump,action2|_HeldKey,down|_PressedKey,action2";a.h["Air Melee Attack"]="_Attack,action1";a.h["Air Ranged Attack"]="_Attack,action1";a.h["Ground Melee Attack"]="_Attack,action1";a.h["Ground Ranged Attack"]="_Attack,action1"; +a.h["Use Skill"]="_MoveForwardKey,???|_MoveBackwardKey,???";a.h.Aim="_AimUpKey,???|_AimDownKey,???|_AimDiagonalKey,???|_AimLeftKey,???|_AimRightKey,???";a.h["8 Way Movement"]="_ActivateKey,???|_MoveUpKey,???|_MoveDownKey,???|_MoveLeftKey,???|_MoveRight,???|_RunKey,???";a.h.Charge="_ChargeKey,???|_CicleNext,???|_CiclePrevious,???";this._ControlsperBehavior=a;this.nameMap.h["Player Identifier"]="_PlayerIdentifier";this._PlayerIdentifier="P#";this.nameMap.h["Used Player Prefix"]="_UsedPlayerPrefix"; +this._UsedPlayerPrefix="";this.nameMap.h["Behavior Split Values"]="_BehaviorSplitValues";this.nameMap.h["Global Value Control"]="_GlobalValueControl";this._GlobalValueControl=!1;this.nameMap.h["Create Icon"]="_CreateIcon";this._CreateIcon=!1;this.nameMap.h["Icon Type"]="_IconType";this.nameMap.h["Icon Actor"]="_IconActor";this.nameMap.h["Icon Offsets"]="_IconOffsets";this._IconOffsets="0,0";this.nameMap.h.Debug="_Debug";this._Debug=!1;this.nameMap.h["Debug Font"]="_DebugFont";this.nameMap.h["Player Switch Events"]= +"_PlayerSwitchEvents";a=new V;a.h.P0="Trigger,StartCamera,Camera Follow";a.h.P1="Trigger,StopCamera,Camera Follow";this._PlayerSwitchEvents=a;this.nameMap.h["Dummy Text"]="_DummyText";this._DummyText="";this.nameMap.h["Used Number of Players"]="_UsedNumberofPlayers";this._UsedNumberofPlayers=2;this.nameMap.h["Used Control"]="_UsedControl";this.nameMap.h["Icon Timer"]="_IconTimer";this._IconTimer=0;this.nameMap.h["Icon Ticks"]="_IconTicks";this._IconTicks=0;this.nameMap.h["Control Reference Map"]= +"_ControlReferenceMap";a=new V;a.h.up="up";a.h.down="down";a.h.left="left";a.h.right="right";a.h.action1="action1";a.h.action2="action2";this._ControlReferenceMap=a;this.nameMap.h["Number of Players"]="_NumberofPlayers";this._NumberofPlayers="1"};k["scripts.Design_327_327_PlayerNumber"]=Qs;Qs.__name__="scripts.Design_327_327_PlayerNumber";Qs.__super__=w;Qs.prototype=u(w.prototype,{_PlayerNumber:null,_OldPlayerNumber:null,_PlayerNumberGlobalValueName:null,_ControlsperBehavior:null,_PlayerIdentifier:null, +_UsedPlayerPrefix:null,_BehaviorSplitValues:null,_GlobalValueControl:null,_CreateIcon:null,_IconType:null,_IconActor:null,_IconOffsets:null,_Debug:null,_DebugFont:null,_PlayerSwitchEvents:null,_DummyText:null,_UsedNumberofPlayers:null,_UsedControl:null,_IconTimer:null,_IconTicks:null,_ControlReferenceMap:null,_NumberofPlayers:null,_event_Updating:function(a){if(this.wrapper.enabled){this._GlobalValueControl&&""!=this._PlayerNumberGlobalValueName&&null!=f.getGameAttribute(this._PlayerNumberGlobalValueName)&& +(this._PlayerNumber=f.asNumber(f.getGameAttribute(this._PlayerNumberGlobalValueName)));""+f.asNumber(this._NumberofPlayers)!=""+this._NumberofPlayers&&(this._UsedNumberofPlayers=f.asNumber(f.getGameAttribute(this._NumberofPlayers)));if(this._OldPlayerNumber!=this._PlayerNumber){this._UsedPlayerPrefix=J.replace(this._PlayerIdentifier,"#",""+Math.round(this._PlayerNumber));for(var b=Object.keys(this._ControlsperBehavior.h),c=b.length,d=0;d<c;){a=b[d++];for(var e=0,g=this._ControlsperBehavior.h[""+a].length;e< +g;){var h=e++;this._DummyText=""+n.string(this._ControlsperBehavior.h[""+a][h]);Object.prototype.hasOwnProperty.call(this._BehaviorSplitValues.h,this._DummyText)||(this._BehaviorSplitValues.h[this._DummyText]=this._DummyText.split(","));this.actor.hasBehavior(a)&&this.actor.isBehaviorEnabled(a)&&Object.prototype.hasOwnProperty.call(this._ControlReferenceMap.h,""+n.string(this._BehaviorSplitValues.h[this._DummyText][1]))&&(this._UsedControl=this._UsedPlayerPrefix+(""+n.string(this._ControlReferenceMap.h[""+ +n.string(this._BehaviorSplitValues.h[this._DummyText][1])])),this.actor.setValue(a,this._BehaviorSplitValues.h[this._DummyText][0],this._UsedControl))}}if(Object.prototype.hasOwnProperty.call(this._PlayerSwitchEvents.h,this._UsedPlayerPrefix))for(e=0,g=O.__cast(this._PlayerSwitchEvents.h[this._UsedPlayerPrefix],Array);e<g.length;)a=g[e],++e,Object.prototype.hasOwnProperty.call(this._BehaviorSplitValues.h,""+n.string(a))||(this._BehaviorSplitValues.h[""+n.string(a)]=(""+n.string(a)).split(",")),"Trigger"== +""+n.string(this._BehaviorSplitValues.h[""+n.string(a)][0])&&(null==this._BehaviorSplitValues.h[""+n.string(a)][2]?this.actor.shout("_customEvent_"+n.string(this._BehaviorSplitValues.h[""+n.string(a)][1])):this.actor.say(""+n.string(this._BehaviorSplitValues.h[""+n.string(a)][2]),"_customEvent_"+n.string(this._BehaviorSplitValues.h[""+n.string(a)][1]))),"Value"==""+n.string(this._BehaviorSplitValues.h[""+n.string(a)][0])&&(this._DummyText=""+n.string(this._BehaviorSplitValues.h[""+n.string(a)][1]), +"[Local]"==""+n.string(this._BehaviorSplitValues.h[""+n.string(a)][2])?("-"==""+n.string(this._BehaviorSplitValues.h[""+n.string(a)][3])&&this.actor.setActorValue(this._DummyText,this._BehaviorSplitValues.h[""+n.string(a)][4]),0<=(""+n.string(this._BehaviorSplitValues.h[""+n.string(a)][3])).indexOf("List:")&&(null==this.actor.getActorValue(this._DummyText)&&this.actor.setActorValue(this._DummyText,[]),this.actor.getActorValue(this._DummyText)[f.asNumber(J.replace(""+n.string(this._BehaviorSplitValues.h[""+ +n.string(a)][3]),"List:",""))|0]=this._BehaviorSplitValues.h[""+n.string(a)][4]),0<=(""+n.string(this._BehaviorSplitValues.h[""+n.string(a)][3])).indexOf("Map:")&&(null==this.actor.getActorValue(this._DummyText)&&this.actor.setActorValue(this._DummyText,new V),b=this.actor.getActorValue(this._DummyText),c=J.replace(""+n.string(this._BehaviorSplitValues.h[""+n.string(a)][3]),"Map:",""),b.h[c]=this._BehaviorSplitValues.h[""+n.string(a)][4])):"[Global]"==""+n.string(this._BehaviorSplitValues.h[""+n.string(a)][2])? +("-"==""+n.string(this._BehaviorSplitValues.h[""+n.string(a)][3])&&f.setGameAttribute(this._DummyText,this._BehaviorSplitValues.h[""+n.string(a)][4]),0<=(""+n.string(this._BehaviorSplitValues.h[""+n.string(a)][3])).indexOf("List:")&&(null==f.getGameAttribute(this._DummyText)&&f.setGameAttribute(this._DummyText,[]),f.getGameAttribute(this._DummyText)[f.asNumber(J.replace(""+n.string(this._BehaviorSplitValues.h[""+n.string(a)][3]),"List",""))|0]=this._BehaviorSplitValues.h[""+n.string(a)][4]),0<=(""+ +n.string(this._BehaviorSplitValues.h[""+n.string(a)][3])).indexOf("Map:")&&(null==f.getGameAttribute(this._DummyText)&&f.setGameAttribute(this._DummyText,new V),b=f.getGameAttribute(this._DummyText),c=J.replace(""+n.string(this._BehaviorSplitValues.h[""+n.string(a)][3]),"Map:",""),b.h[c]=this._BehaviorSplitValues.h[""+n.string(a)][4])):("-"==""+n.string(this._BehaviorSplitValues.h[""+n.string(a)][3])&&this.actor.setValue(""+n.string(this._BehaviorSplitValues.h[""+n.string(a)][2]),this._DummyText, +this._BehaviorSplitValues.h[""+n.string(a)][4]),0<=(""+n.string(this._BehaviorSplitValues.h[""+n.string(a)][3])).indexOf("List:")&&(this.actor.getValue(""+n.string(this._BehaviorSplitValues.h[""+n.string(a)][2]),this._DummyText)[f.asNumber(J.replace(""+n.string(this._BehaviorSplitValues.h[""+n.string(a)][3]),"List",""))|0]=this._BehaviorSplitValues.h[""+n.string(a)][4]),0<=(""+n.string(this._BehaviorSplitValues.h[""+n.string(a)][3])).indexOf("Map:")&&(b=this.actor.getValue(""+n.string(this._BehaviorSplitValues.h[""+ +n.string(a)][2]),this._DummyText),c=J.replace(""+n.string(this._BehaviorSplitValues.h[""+n.string(a)][3]),"Map:",""),b.h[c]=this._BehaviorSplitValues.h[""+n.string(a)][4])));0<this._IconTimer&&(this._IconTicks=this._IconTimer,f.hasValue(this._IconOffsets)&&this._IconActor.isAlive()&&this._IconActor.enableActorDrawing());this._GlobalValueControl||""==this._PlayerNumberGlobalValueName||f.setGameAttribute(this._PlayerNumberGlobalValueName,this._PlayerNumber)}this._PlayerNumber>this._UsedNumberofPlayers- +1&&(this._PlayerNumber=0);0>this._PlayerNumber&&(this._PlayerNumber=this._UsedNumberofPlayers-1);this._OldPlayerNumber=this._PlayerNumber;f.hasValue(this._IconActor)&&this._IconActor.isAlive()&&(0<this._IconTicks&&(this._IconTicks-=.01,0>=this._IconTicks&&(this._IconTicks=0,this._IconActor.disableActorDrawing())),this._IconActor.setAnimation(this._UsedPlayerPrefix),this._IconActor.setX(this.actor.getX()+f.asNumber(this._BehaviorSplitValues.h[this._IconOffsets][0])),this._IconActor.setY(this.actor.getY()+ +f.asNumber(this._BehaviorSplitValues.h[this._IconOffsets][1])))}},_event_Drawing:function(a,b,c){this.wrapper.enabled&&this._Debug&&(a.translateToActor(this.actor),f.setDrawingLayerToSceneLayer(),a.setFont(this._DebugFont),a.drawString("Player:"+this._PlayerNumber+(", prefix:"+this._UsedPlayerPrefix),(this.actor.getWidth()/2-a.font.getTextWidth("Player:"+this._PlayerNumber+(", prefix:"+this._UsedPlayerPrefix))/h.SCALE)/2,2*-(a.font.getHeight()/h.SCALE)),""!=this._PlayerNumberGlobalValueName&&a.drawString("Global Value:"+ +this._PlayerNumberGlobalValueName+(", "+n.string(f.getGameAttribute(this._PlayerNumberGlobalValueName))),this.actor.getWidth()/2-a.font.getTextWidth("Global Value:"+this._PlayerNumberGlobalValueName+(", "+n.string(f.getGameAttribute(this._PlayerNumberGlobalValueName))))/h.SCALE/2,-(a.font.getHeight()/h.SCALE)))},_customEvent_NextPlayer:function(){this._PlayerNumber+=1;this._PlayerNumber>this._UsedNumberofPlayers-1&&(this._PlayerNumber=0)},_customEvent_PreviousPlayer:function(){--this._PlayerNumber; +0>this._PlayerNumber&&(this._PlayerNumber=this._UsedNumberofPlayers-1)},_customEvent_CreateHUD:function(){f.hasValue(this._IconType)&&(f.createRecycledActor(this._IconType,this.actor.getX()+f.asNumber(this._BehaviorSplitValues.h[this._IconOffsets][0]),this.actor.getY()+f.asNumber(this._BehaviorSplitValues.h[this._IconOffsets][1]),0),this._IconActor=f.getLastCreatedActor(),this._IconActor.setAnimation(this._UsedPlayerPrefix))},_customEvent_KillHUD:function(){f.hasValue(this._IconActor)&&this._IconActor.isAlive()&& +(f.recycleActor(this._IconActor),this._IconActor=f.getDefaultValue(this._IconActor))},init:function(){this._OldPlayerNumber=-1;this._BehaviorSplitValues=new V;this._BehaviorSplitValues.h[this._IconOffsets]=this._IconOffsets.split(",");var a=this._ControlsperBehavior.h;a=Object.keys(a);for(var b=a.length,c=0;c<b;){var d=a[c++];this._ControlsperBehavior.h[""+d]=(""+n.string(this._ControlsperBehavior.h[""+d])).split("|")}a=this._PlayerSwitchEvents.h;a=Object.keys(a);b=a.length;for(c=0;c<b;)d=a[c++], +this._PlayerSwitchEvents.h[""+d]=(""+n.string(this._PlayerSwitchEvents.h[""+d])).split("|");""!=this._PlayerNumberGlobalValueName&&null!=f.getGameAttribute(this._PlayerNumberGlobalValueName)&&(this._PlayerNumber=f.asNumber(f.getGameAttribute(this._PlayerNumberGlobalValueName)));""+f.asNumber(this._NumberofPlayers)==""+this._NumberofPlayers&&(this._UsedNumberofPlayers=f.asNumber(this._NumberofPlayers));this._CreateIcon&&this._customEvent_CreateHUD();this.addListener(this.actor.whenUpdated,q(this,this._event_Updating)); +this.addListener(this.actor.whenDrawing,q(this,this._event_Drawing))},forwardMessage:function(a){},__class__:Qs});var Rs=function(a,b,c){w.call(this,b);this.nameMap.h.Actor="actor";this.nameMap.h["Bunny Actor"]="_BunnyActor";this.nameMap.h["Skin Number"]="_SkinNumber";this._SkinNumber=0;this.nameMap.h["Text List"]="_TextList";this.nameMap.h["Text to Draw"]="_TexttoDraw";this._TexttoDraw=""};k["scripts.Design_356_356_SkinButtonBehavior"]=Rs;Rs.__name__="scripts.Design_356_356_SkinButtonBehavior";Rs.__super__= +w;Rs.prototype=u(w.prototype,{_BunnyActor:null,_SkinNumber:null,_TextList:null,_TexttoDraw:null,_event_PressedOn:function(a){this.wrapper.enabled&&3==a&&!f.asBoolean(this.actor.getActorValue("locked"))&&(this.actor.setAnimation("2"),this._BunnyActor.setY(this.actor.getY()+2),this._customEvent_Pressed())},_event_ReleasedOn:function(a){this.wrapper.enabled&&5==a&&!f.asBoolean(this.actor.getActorValue("locked"))&&(this.actor.setAnimation("1"),this._BunnyActor.setY(this.actor.getY()))},_event_ExitsOn:function(a){this.wrapper.enabled&& +-1==a&&!f.asBoolean(this.actor.getActorValue("locked"))&&(this.actor.setAnimation("1"),this._BunnyActor.setY(this.actor.getY()))},_event_DrawingCopy:function(a,b,c){if(this.wrapper.enabled&&(a.setFont(f.getFont(735)),a.translateToScreen(),this._TextList=(""+n.string(h.engine.getGameAttribute("Skin Names List")[this._SkinNumber|0])).split(" "),S.contains(h.engine.getGameAttribute("Collected Skins List"),this._SkinNumber)))for(b=0,c=this._TextList.length;b<c;){var d=b++;this._TexttoDraw=""+n.string(this._TextList[d]); +a.drawString(this._TexttoDraw.toLowerCase(),this.actor.getScreenX()+this.actor.getWidth()/2-a.font.getTextWidth(this._TexttoDraw.toLowerCase())/h.SCALE/2,this.actor.getScreenY()+35+6*d)}},_customEvent_Pressed:function(){f.isTransitioning()||(h.engine.getGameAttribute("Mute Sounds")||f.playSound(f.getSound(594)),h.engine.getGameAttribute("Player 1 Selecting Skin")?(h.engine.gameAttributes.h["P1 Skin"]=this._SkinNumber,f.createActorInNextScene(f.getActorType(527),128,112,0)):(h.engine.gameAttributes.h["P2 Skin"]= +this._SkinNumber,f.createActorInNextScene(f.getActorType(527),224,112,0)),f.switchScene(va.get().scenes.h[13].getID(),null,f.createCrossfadeTransition(.3)))},init:function(){this.actor.makeAlwaysSimulate();f.createRecycledActor(f.getActorType(704),this.actor.getX(),this.actor.getY(),0);this._BunnyActor=f.getLastCreatedActor();if(S.contains(h.engine.getGameAttribute("Collected Skins List"),this._SkinNumber))this._BunnyActor.setAnimation(""+this._SkinNumber);else{this._BunnyActor.setAnimation(""+this._SkinNumber); +var a=0,b=0,c=0;null==c&&(c=0);null==b&&(b=0);null==a&&(a=0);this._BunnyActor.setFilter([f.createTintFilter(a<<16|b<<8|c,.6)]);this.actor.setActorValue("locked",!0);this.actor.setAnimation("locked");f.createRecycledActor(f.getActorType(698),this.actor.getX()+3,this.actor.getY()+3,0)}this.addListener(this.actor.whenMousedOver,q(this,this._event_PressedOn));this.addListener(this.actor.whenMousedOver,q(this,this._event_ReleasedOn));this.addListener(this.actor.whenMousedOver,q(this,this._event_ExitsOn)); +this.addListener(this.actor.whenDrawing,q(this,this._event_DrawingCopy))},forwardMessage:function(a){},__class__:Rs});var Ss=function(a,b,c){w.call(this,b);this.nameMap.h.Actor="actor";this.nameMap.h["Bunny Actor"]="_BunnyActor";this.nameMap.h["Player1 Button?"]="_Player1Button";this._Player1Button=!0;this.nameMap.h["Text List"]="_TextList";this.nameMap.h["Skin Number"]="_SkinNumber";this._SkinNumber=0;this.nameMap.h["Text to Draw"]="_TexttoDraw";this._TexttoDraw="";this.nameMap.h.SkinNumberUnlock= +"_SkinNumberUnlock";this._SkinNumberUnlock=0};k["scripts.Design_360_360_SkinMenuPlayerSelectBehavior"]=Ss;Ss.__name__="scripts.Design_360_360_SkinMenuPlayerSelectBehavior";Ss.__super__=w;Ss.prototype=u(w.prototype,{_BunnyActor:null,_Player1Button:null,_TextList:null,_SkinNumber:null,_TexttoDraw:null,_SkinNumberUnlock:null,_event_PressedOn:function(a){this.wrapper.enabled&&3==a&&(this.actor.setAnimation("2"),this._BunnyActor.setY(this.actor.getY()+2),this._customEvent_Pressed())},_event_ReleasedOn:function(a){this.wrapper.enabled&& +5==a&&(this.actor.setAnimation("1"),this._BunnyActor.setY(this.actor.getY()))},_event_ExitsOn:function(a){this.wrapper.enabled&&-1==a&&(this.actor.setAnimation("1"),this._BunnyActor.setY(this.actor.getY()))},_event_Drawing:function(a,b,c){if(this.wrapper.enabled)if(a.setFont(f.getFont(735)),a.translateToScreen(),this._Player1Button){if(this._TextList=(""+n.string(h.engine.getGameAttribute("Skin Names List")[h.engine.getGameAttribute("P1 Skin")|0])).split(" "),S.contains(h.engine.getGameAttribute("Collected Skins List"), +this._SkinNumber))for(b=0,c=this._TextList.length;b<c;){var d=b++;this._TexttoDraw=""+n.string(this._TextList[d]);a.drawString(this._TexttoDraw.toLowerCase(),this.actor.getScreenX()+this.actor.getWidth()/2-a.font.getTextWidth(this._TexttoDraw.toLowerCase())/h.SCALE/2,this.actor.getScreenY()+35+6*d)}}else if(this._TextList=(""+n.string(h.engine.getGameAttribute("Skin Names List")[h.engine.getGameAttribute("P2 Skin")|0])).split(" "),S.contains(h.engine.getGameAttribute("Collected Skins List"),this._SkinNumber))for(b= +0,c=this._TextList.length;b<c;)d=b++,this._TexttoDraw=""+n.string(this._TextList[d]),a.drawString(this._TexttoDraw.toLowerCase(),this.actor.getScreenX()+this.actor.getWidth()/2-a.font.getTextWidth(this._TexttoDraw.toLowerCase())/h.SCALE/2,this.actor.getScreenY()+35+6*d)},_customEvent_Pressed:function(){f.isTransitioning()||(h.engine.getGameAttribute("Mute Sounds")||f.playSound(f.getSound(594)),this._Player1Button?"Unlock Bunny Screen"==f.getCurrentSceneName()?(h.engine.gameAttributes.h["P1 Skin"]= +this._SkinNumberUnlock,f.createActorInNextScene(f.getActorType(527),128,112,0),f.switchScene(va.get().scenes.h[13].getID(),null,f.createCrossfadeTransition(.3))):(h.engine.gameAttributes.h["Player 1 Selecting Skin"]=!0,0<=h.engine.getGameAttribute("P1 Skin")&&14>=h.engine.getGameAttribute("P1 Skin")?f.switchScene(va.get().scenes.h[14].getID(),null,f.createCrossfadeTransition(.3)):15<=h.engine.getGameAttribute("P1 Skin")&&29>=h.engine.getGameAttribute("P1 Skin")?f.switchScene(va.get().scenes.h[15].getID(), +null,f.createCrossfadeTransition(.3)):30<=h.engine.getGameAttribute("P1 Skin")&&44>=h.engine.getGameAttribute("P1 Skin")?f.switchScene(va.get().scenes.h[16].getID(),null,f.createCrossfadeTransition(.3)):45<=h.engine.getGameAttribute("P1 Skin")&&59>=h.engine.getGameAttribute("P1 Skin")?f.switchScene(va.get().scenes.h[17].getID(),null,f.createCrossfadeTransition(.3)):60<=h.engine.getGameAttribute("P1 Skin")&&75>=h.engine.getGameAttribute("P1 Skin")?f.switchScene(va.get().scenes.h[18].getID(),null,f.createCrossfadeTransition(.3)): +76<=h.engine.getGameAttribute("P1 Skin")&&89>=h.engine.getGameAttribute("P1 Skin")?f.switchScene(va.get().scenes.h[19].getID(),null,f.createCrossfadeTransition(.3)):90<=h.engine.getGameAttribute("P1 Skin")&&104>=h.engine.getGameAttribute("P1 Skin")&&f.switchScene(va.get().scenes.h[22].getID(),null,f.createCrossfadeTransition(.3))):"Unlock Bunny Screen"==f.getCurrentSceneName()?(h.engine.gameAttributes.h["P2 Skin"]=this._SkinNumberUnlock,f.createActorInNextScene(f.getActorType(527),224,112,0),f.switchScene(va.get().scenes.h[13].getID(), +null,f.createCrossfadeTransition(.3))):(h.engine.gameAttributes.h["Player 1 Selecting Skin"]=!1,0<=h.engine.getGameAttribute("P2 Skin")&&14>=h.engine.getGameAttribute("P2 Skin")?f.switchScene(va.get().scenes.h[14].getID(),null,f.createCrossfadeTransition(.3)):15<=h.engine.getGameAttribute("P2 Skin")&&29>=h.engine.getGameAttribute("P2 Skin")?f.switchScene(va.get().scenes.h[15].getID(),null,f.createCrossfadeTransition(.3)):30<=h.engine.getGameAttribute("P2 Skin")&&44>=h.engine.getGameAttribute("P2 Skin")? +f.switchScene(va.get().scenes.h[16].getID(),null,f.createCrossfadeTransition(.3)):45<=h.engine.getGameAttribute("P2 Skin")&&59>=h.engine.getGameAttribute("P2 Skin")?f.switchScene(va.get().scenes.h[17].getID(),null,f.createCrossfadeTransition(.3)):60<=h.engine.getGameAttribute("P2 Skin")&&75>=h.engine.getGameAttribute("P2 Skin")?f.switchScene(va.get().scenes.h[18].getID(),null,f.createCrossfadeTransition(.3)):76<=h.engine.getGameAttribute("P2 Skin")&&89>=h.engine.getGameAttribute("P2 Skin")?f.switchScene(va.get().scenes.h[19].getID(), +null,f.createCrossfadeTransition(.3)):90<=h.engine.getGameAttribute("P2 Skin")&&104>=h.engine.getGameAttribute("P2 Skin")&&f.switchScene(va.get().scenes.h[22].getID(),null,f.createCrossfadeTransition(.3))))},_customEvent_P1:function(){this._Player1Button=!0;this._BunnyActor.setAnimation(""+n.string(h.engine.getGameAttribute("P1 Skin")))},_customEvent_P2:function(){this._Player1Button=!1;this._BunnyActor.setAnimation(""+n.string(h.engine.getGameAttribute("P2 Skin")))},init:function(){this.actor.makeAlwaysSimulate(); +f.createRecycledActor(f.getActorType(704),this.actor.getX(),this.actor.getY(),0);this._BunnyActor=f.getLastCreatedActor();this._Player1Button?this._BunnyActor.setAnimation(""+n.string(h.engine.getGameAttribute("P1 Skin"))):this._BunnyActor.setAnimation(""+n.string(h.engine.getGameAttribute("P2 Skin")));this.addListener(this.actor.whenMousedOver,q(this,this._event_PressedOn));this.addListener(this.actor.whenMousedOver,q(this,this._event_ReleasedOn));this.addListener(this.actor.whenMousedOver,q(this, +this._event_ExitsOn));this.addListener(this.actor.whenDrawing,q(this,this._event_Drawing))},forwardMessage:function(a){},__class__:Ss});var Ts=function(a,b,c){w.call(this,b);this.nameMap.h.Actor="actor";this.nameMap.h["Player 1"]="_Player1";this._Player1=!0};k["scripts.Design_361_361_SetSkinBehavior"]=Ts;Ts.__name__="scripts.Design_361_361_SetSkinBehavior";Ts.__super__=w;Ts.prototype=u(w.prototype,{_Player1:null,init:function(){this._Player1&&(0==h.engine.getGameAttribute("P1 Skin")?f.setGameAttribute("Player1Skin", +"_skin0_white.png"):1==h.engine.getGameAttribute("P1 Skin")?f.setGameAttribute("Player1Skin","_skin1_navy.png"):2==h.engine.getGameAttribute("P1 Skin")?f.setGameAttribute("Player1Skin","_skin2_brown.png"):3==h.engine.getGameAttribute("P1 Skin")?f.setGameAttribute("Player1Skin","_skin3_black.png"):4==h.engine.getGameAttribute("P1 Skin")?f.setGameAttribute("Player1Skin","_skin4_beige.png"):5==h.engine.getGameAttribute("P1 Skin")?f.setGameAttribute("Player1Skin","_skin5_brownspot.png"):6==h.engine.getGameAttribute("P1 Skin")? +f.setGameAttribute("Player1Skin","_skin6_bluespot.png"):7==h.engine.getGameAttribute("P1 Skin")?f.setGameAttribute("Player1Skin","_skin7_blackspot.png"):8==h.engine.getGameAttribute("P1 Skin")?f.setGameAttribute("Player1Skin","_skin8_chinchilla.png"):9==h.engine.getGameAttribute("P1 Skin")&&f.setGameAttribute("Player1Skin","_skin9_cinnamon.png"));this._Player1&&(10==h.engine.getGameAttribute("P1 Skin")?f.setGameAttribute("Player1Skin","_skin10_californian.png"):11==h.engine.getGameAttribute("P1 Skin")? +f.setGameAttribute("Player1Skin","_skin11_chocolate.png"):12==h.engine.getGameAttribute("P1 Skin")?f.setGameAttribute("Player1Skin","_skin12_tricolor.png"):13==h.engine.getGameAttribute("P1 Skin")?f.setGameAttribute("Player1Skin","_skin13_blackotter.png"):14==h.engine.getGameAttribute("P1 Skin")?f.setGameAttribute("Player1Skin","_skin14_red.png"):15==h.engine.getGameAttribute("P1 Skin")?f.setGameAttribute("Player1Skin","_skin15_castor.png"):16==h.engine.getGameAttribute("P1 Skin")?f.setGameAttribute("Player1Skin", +"_skin16_gray.png"):17==h.engine.getGameAttribute("P1 Skin")?f.setGameAttribute("Player1Skin","_skin17_moss.png"):18==h.engine.getGameAttribute("P1 Skin")?f.setGameAttribute("Player1Skin","_skin18_pink.png"):19==h.engine.getGameAttribute("P1 Skin")&&f.setGameAttribute("Player1Skin","_skin19_green.png"));this._Player1&&(20==h.engine.getGameAttribute("P1 Skin")?f.setGameAttribute("Player1Skin","_skin20_lightblue.png"):21==h.engine.getGameAttribute("P1 Skin")?f.setGameAttribute("Player1Skin","_skin21_purple.png"): +22==h.engine.getGameAttribute("P1 Skin")?f.setGameAttribute("Player1Skin","_skin22_yellow.png"):23==h.engine.getGameAttribute("P1 Skin")?f.setGameAttribute("Player1Skin","_skin23_scarlet.png"):24==h.engine.getGameAttribute("P1 Skin")?f.setGameAttribute("Player1Skin","_skin24_blue.png"):25==h.engine.getGameAttribute("P1 Skin")?f.setGameAttribute("Player1Skin","_skin25_lime.png"):26==h.engine.getGameAttribute("P1 Skin")?f.setGameAttribute("Player1Skin","_skin26_cyan.png"):27==h.engine.getGameAttribute("P1 Skin")? +f.setGameAttribute("Player1Skin","_skin27_orange.png"):28==h.engine.getGameAttribute("P1 Skin")?f.setGameAttribute("Player1Skin","_skin28_magenta.png"):29==h.engine.getGameAttribute("P1 Skin")&&f.setGameAttribute("Player1Skin","_skin29_rgb.png"));this._Player1&&(30==h.engine.getGameAttribute("P1 Skin")?f.setGameAttribute("Player1Skin","_skin30_tiger.png"):31==h.engine.getGameAttribute("P1 Skin")?f.setGameAttribute("Player1Skin","_skin31_pumpkin.png"):32==h.engine.getGameAttribute("P1 Skin")?f.setGameAttribute("Player1Skin", +"_skin32_robot.png"):33==h.engine.getGameAttribute("P1 Skin")?f.setGameAttribute("Player1Skin","_skin33_steampunk.png"):34==h.engine.getGameAttribute("P1 Skin")?f.setGameAttribute("Player1Skin","_skin34_water.png"):35==h.engine.getGameAttribute("P1 Skin")?f.setGameAttribute("Player1Skin","_skin35_camo.png"):36==h.engine.getGameAttribute("P1 Skin")?f.setGameAttribute("Player1Skin","_skin36_wood.png"):37==h.engine.getGameAttribute("P1 Skin")?f.setGameAttribute("Player1Skin","_skin37_stone.png"):38== +h.engine.getGameAttribute("P1 Skin")?f.setGameAttribute("Player1Skin","_skin38_fire.png"):39==h.engine.getGameAttribute("P1 Skin")&&f.setGameAttribute("Player1Skin","_skin39_negative.png"));this._Player1&&(40==h.engine.getGameAttribute("P1 Skin")?f.setGameAttribute("Player1Skin","_skin40_transparent.png"):41==h.engine.getGameAttribute("P1 Skin")?f.setGameAttribute("Player1Skin","_skin41_angel.png"):42==h.engine.getGameAttribute("P1 Skin")?f.setGameAttribute("Player1Skin","_skin42_imp.png"):43==h.engine.getGameAttribute("P1 Skin")? +f.setGameAttribute("Player1Skin","_skin43_gb.png"):44==h.engine.getGameAttribute("P1 Skin")?f.setGameAttribute("Player1Skin","_skin44_frozen.png"):45==h.engine.getGameAttribute("P1 Skin")?f.setGameAttribute("Player1Skin","_skin45_rainbow.png"):46==h.engine.getGameAttribute("P1 Skin")?f.setGameAttribute("Player1Skin","_skin46_alien.png"):47==h.engine.getGameAttribute("P1 Skin")?f.setGameAttribute("Player1Skin","_skin47_fluffywhite.png"):48==h.engine.getGameAttribute("P1 Skin")?f.setGameAttribute("Player1Skin", +"_skin48_upsidedown.png"):49==h.engine.getGameAttribute("P1 Skin")&&f.setGameAttribute("Player1Skin","_skin49_dark.png"));this._Player1&&(50==h.engine.getGameAttribute("P1 Skin")?f.setGameAttribute("Player1Skin","_skin50_chonky.png"):51==h.engine.getGameAttribute("P1 Skin")?f.setGameAttribute("Player1Skin","_skin51_mini.png"):52==h.engine.getGameAttribute("P1 Skin")?f.setGameAttribute("Player1Skin","_skin52_sabretooth.png"):53==h.engine.getGameAttribute("P1 Skin")?f.setGameAttribute("Player1Skin", +"_skin53_electric.png"):54==h.engine.getGameAttribute("P1 Skin")?f.setGameAttribute("Player1Skin","_skin54_silhouette.png"):55==h.engine.getGameAttribute("P1 Skin")?f.setGameAttribute("Player1Skin","_skin55_gooey.png"):56==h.engine.getGameAttribute("P1 Skin")?f.setGameAttribute("Player1Skin","_skin56_snow.png"):57==h.engine.getGameAttribute("P1 Skin")?f.setGameAttribute("Player1Skin","_skin57_vampire.png"):58==h.engine.getGameAttribute("P1 Skin")?f.setGameAttribute("Player1Skin","_skin58_cosmic.png"): +59==h.engine.getGameAttribute("P1 Skin")&&f.setGameAttribute("Player1Skin","_skin59_silver.png"));this._Player1&&(60==h.engine.getGameAttribute("P1 Skin")?f.setGameAttribute("Player1Skin","_skin60_psychic.png"):61==h.engine.getGameAttribute("P1 Skin")?f.setGameAttribute("Player1Skin","_skin61_jackrabbit.png"):62==h.engine.getGameAttribute("P1 Skin")?f.setGameAttribute("Player1Skin","_skin62_shark.png"):63==h.engine.getGameAttribute("P1 Skin")?f.setGameAttribute("Player1Skin","_skin63_jackalope.png"): +64==h.engine.getGameAttribute("P1 Skin")?f.setGameAttribute("Player1Skin","_skin64_usadachi.png"):65==h.engine.getGameAttribute("P1 Skin")?f.setGameAttribute("Player1Skin","_skin65_punk.png"):66==h.engine.getGameAttribute("P1 Skin")?f.setGameAttribute("Player1Skin","_skin66_goth.png"):67==h.engine.getGameAttribute("P1 Skin")?f.setGameAttribute("Player1Skin","_skin67_moon.png"):68==h.engine.getGameAttribute("P1 Skin")?f.setGameAttribute("Player1Skin","_skin68_caerbannog.png"):69==h.engine.getGameAttribute("P1 Skin")&& +f.setGameAttribute("Player1Skin","_skin69_foxxy.png"));this._Player1&&(70==h.engine.getGameAttribute("P1 Skin")?f.setGameAttribute("Player1Skin","_skin70_dust.png"):71==h.engine.getGameAttribute("P1 Skin")?f.setGameAttribute("Player1Skin","_skin71_kami.png"):72==h.engine.getGameAttribute("P1 Skin")?f.setGameAttribute("Player1Skin","_skin72_almiraj.png"):73==h.engine.getGameAttribute("P1 Skin")?f.setGameAttribute("Player1Skin","_skin73_skvader.png"):74==h.engine.getGameAttribute("P1 Skin")?f.setGameAttribute("Player1Skin", +"_skin74_warcriminal.png"):75==h.engine.getGameAttribute("P1 Skin")?f.setGameAttribute("Player1Skin","_skin75_golden.png"):76==h.engine.getGameAttribute("P1 Skin")?f.setGameAttribute("Player1Skin","_skin76_divine.png"):77==h.engine.getGameAttribute("P1 Skin")?f.setGameAttribute("Player1Skin","_skin77_neutronized.png"):78==h.engine.getGameAttribute("P1 Skin")?f.setGameAttribute("Player1Skin","_skin78_carrot.png"):79==h.engine.getGameAttribute("P1 Skin")&&f.setGameAttribute("Player1Skin","_skin79_goldencarrot.png")); +this._Player1&&(80==h.engine.getGameAttribute("P1 Skin")?f.setGameAttribute("Player1Skin","_skin80_chester.png"):81==h.engine.getGameAttribute("P1 Skin")?f.setGameAttribute("Player1Skin","_skin81_timmy.png"):82==h.engine.getGameAttribute("P1 Skin")?f.setGameAttribute("Player1Skin","_skin82_dashington.png"):83==h.engine.getGameAttribute("P1 Skin")?f.setGameAttribute("Player1Skin","_skin83_heart.png"):84==h.engine.getGameAttribute("P1 Skin")?f.setGameAttribute("Player1Skin","_skin84_star.png"):85== +h.engine.getGameAttribute("P1 Skin")?f.setGameAttribute("Player1Skin","_skin85_mage.png"):86==h.engine.getGameAttribute("P1 Skin")?f.setGameAttribute("Player1Skin","_skin86_knight.png"):87==h.engine.getGameAttribute("P1 Skin")?f.setGameAttribute("Player1Skin","_skin87_ranger.png"):88==h.engine.getGameAttribute("P1 Skin")?f.setGameAttribute("Player1Skin","_skin88_king.png"):89==h.engine.getGameAttribute("P1 Skin")&&f.setGameAttribute("Player1Skin","_skin89_original.png"));this._Player1&&(90==h.engine.getGameAttribute("P1 Skin")? +f.setGameAttribute("Player1Skin","_skin90_fairy.png"):91==h.engine.getGameAttribute("P1 Skin")?f.setGameAttribute("Player1Skin","_skin91_pixie.png"):92==h.engine.getGameAttribute("P1 Skin")?f.setGameAttribute("Player1Skin","_skin92_ninja.png"):93==h.engine.getGameAttribute("P1 Skin")?f.setGameAttribute("Player1Skin","_skin93_infernal.png"):94==h.engine.getGameAttribute("P1 Skin")?f.setGameAttribute("Player1Skin","_skin94_ethereal.png"):95==h.engine.getGameAttribute("P1 Skin")?f.setGameAttribute("Player1Skin", +"_skin95_zombie.png"):96==h.engine.getGameAttribute("P1 Skin")?f.setGameAttribute("Player1Skin","_skin96_triplets.png"):97==h.engine.getGameAttribute("P1 Skin")?f.setGameAttribute("Player1Skin","_skin97_ghost.png"):98==h.engine.getGameAttribute("P1 Skin")?f.setGameAttribute("Player1Skin","_skin98_crystal.png"):99==h.engine.getGameAttribute("P1 Skin")&&f.setGameAttribute("Player1Skin","_skin99_astral.png"));this._Player1&&(100==h.engine.getGameAttribute("P1 Skin")?f.setGameAttribute("Player1Skin", +"_skin100_domino.png"):101==h.engine.getGameAttribute("P1 Skin")?f.setGameAttribute("Player1Skin","_skin101_disguised.png"):102==h.engine.getGameAttribute("P1 Skin")?f.setGameAttribute("Player1Skin","_skin102_monstrous.png"):103==h.engine.getGameAttribute("P1 Skin")?f.setGameAttribute("Player1Skin","_skin103_carbuncle.png"):104==h.engine.getGameAttribute("P1 Skin")&&f.setGameAttribute("Player1Skin","_skin104_phosphor.png"));this._Player1||(0==h.engine.getGameAttribute("P2 Skin")?f.setGameAttribute("Player2Skin", +"_skin0_white.png"):1==h.engine.getGameAttribute("P2 Skin")?f.setGameAttribute("Player2Skin","_skin1_navy.png"):2==h.engine.getGameAttribute("P2 Skin")?f.setGameAttribute("Player2Skin","_skin2_brown.png"):3==h.engine.getGameAttribute("P2 Skin")?f.setGameAttribute("Player2Skin","_skin3_black.png"):4==h.engine.getGameAttribute("P2 Skin")?f.setGameAttribute("Player2Skin","_skin4_beige.png"):5==h.engine.getGameAttribute("P2 Skin")?f.setGameAttribute("Player2Skin","_skin5_brownspot.png"):6==h.engine.getGameAttribute("P2 Skin")? +f.setGameAttribute("Player2Skin","_skin6_bluespot.png"):7==h.engine.getGameAttribute("P2 Skin")?f.setGameAttribute("Player2Skin","_skin7_blackspot.png"):8==h.engine.getGameAttribute("P2 Skin")?f.setGameAttribute("Player2Skin","_skin8_chinchilla.png"):9==h.engine.getGameAttribute("P2 Skin")&&f.setGameAttribute("Player2Skin","_skin9_cinnamon.png"));this._Player1||(10==h.engine.getGameAttribute("P2 Skin")?f.setGameAttribute("Player2Skin","_skin10_californian.png"):11==h.engine.getGameAttribute("P2 Skin")? +f.setGameAttribute("Player2Skin","_skin11_chocolate.png"):12==h.engine.getGameAttribute("P2 Skin")?f.setGameAttribute("Player2Skin","_skin12_tricolor.png"):13==h.engine.getGameAttribute("P2 Skin")?f.setGameAttribute("Player2Skin","_skin13_blackotter.png"):14==h.engine.getGameAttribute("P2 Skin")?f.setGameAttribute("Player2Skin","_skin14_red.png"):15==h.engine.getGameAttribute("P2 Skin")?f.setGameAttribute("Player2Skin","_skin15_castor.png"):16==h.engine.getGameAttribute("P2 Skin")?f.setGameAttribute("Player2Skin", +"_skin16_gray.png"):17==h.engine.getGameAttribute("P2 Skin")?f.setGameAttribute("Player2Skin","_skin17_moss.png"):18==h.engine.getGameAttribute("P2 Skin")?f.setGameAttribute("Player2Skin","_skin18_pink.png"):19==h.engine.getGameAttribute("P2 Skin")&&f.setGameAttribute("Player2Skin","_skin19_green.png"));this._Player1||(20==h.engine.getGameAttribute("P2 Skin")?f.setGameAttribute("Player2Skin","_skin20_lightblue.png"):21==h.engine.getGameAttribute("P2 Skin")?f.setGameAttribute("Player2Skin","_skin21_purple.png"): +22==h.engine.getGameAttribute("P2 Skin")?f.setGameAttribute("Player2Skin","_skin22_yellow.png"):23==h.engine.getGameAttribute("P2 Skin")?f.setGameAttribute("Player2Skin","_skin23_scarlet.png"):24==h.engine.getGameAttribute("P2 Skin")?f.setGameAttribute("Player2Skin","_skin24_blue.png"):25==h.engine.getGameAttribute("P2 Skin")?f.setGameAttribute("Player2Skin","_skin25_lime.png"):26==h.engine.getGameAttribute("P2 Skin")?f.setGameAttribute("Player2Skin","_skin26_cyan.png"):27==h.engine.getGameAttribute("P2 Skin")? +f.setGameAttribute("Player2Skin","_skin27_orange.png"):28==h.engine.getGameAttribute("P2 Skin")?f.setGameAttribute("Player2Skin","_skin28_magenta.png"):29==h.engine.getGameAttribute("P2 Skin")&&f.setGameAttribute("Player2Skin","_skin29_rgb.png"));this._Player1||(30==h.engine.getGameAttribute("P2 Skin")?f.setGameAttribute("Player2Skin","_skin30_tiger.png"):31==h.engine.getGameAttribute("P2 Skin")?f.setGameAttribute("Player2Skin","_skin31_pumpkin.png"):32==h.engine.getGameAttribute("P2 Skin")?f.setGameAttribute("Player2Skin", +"_skin32_robot.png"):33==h.engine.getGameAttribute("P2 Skin")?f.setGameAttribute("Player2Skin","_skin33_steampunk.png"):34==h.engine.getGameAttribute("P2 Skin")?f.setGameAttribute("Player2Skin","_skin34_water.png"):35==h.engine.getGameAttribute("P2 Skin")?f.setGameAttribute("Player2Skin","_skin35_camo.png"):36==h.engine.getGameAttribute("P2 Skin")?f.setGameAttribute("Player2Skin","_skin36_wood.png"):37==h.engine.getGameAttribute("P2 Skin")?f.setGameAttribute("Player2Skin","_skin37_stone.png"):38== +h.engine.getGameAttribute("P2 Skin")?f.setGameAttribute("Player2Skin","_skin38_fire.png"):39==h.engine.getGameAttribute("P2 Skin")&&f.setGameAttribute("Player2Skin","_skin39_negative.png"));this._Player1||(40==h.engine.getGameAttribute("P2 Skin")?f.setGameAttribute("Player2Skin","_skin40_transparent.png"):41==h.engine.getGameAttribute("P2 Skin")?f.setGameAttribute("Player2Skin","_skin41_angel.png"):42==h.engine.getGameAttribute("P2 Skin")?f.setGameAttribute("Player2Skin","_skin42_imp.png"):43==h.engine.getGameAttribute("P2 Skin")? +f.setGameAttribute("Player2Skin","_skin43_gb.png"):44==h.engine.getGameAttribute("P2 Skin")?f.setGameAttribute("Player2Skin","_skin44_frozen.png"):45==h.engine.getGameAttribute("P2 Skin")?f.setGameAttribute("Player2Skin","_skin45_rainbow.png"):46==h.engine.getGameAttribute("P2 Skin")?f.setGameAttribute("Player2Skin","_skin46_alien.png"):47==h.engine.getGameAttribute("P2 Skin")?f.setGameAttribute("Player2Skin","_skin47_fluffywhite.png"):48==h.engine.getGameAttribute("P2 Skin")?f.setGameAttribute("Player2Skin", +"_skin48_upsidedown.png"):49==h.engine.getGameAttribute("P2 Skin")&&f.setGameAttribute("Player2Skin","_skin49_dark.png"));this._Player1||(50==h.engine.getGameAttribute("P2 Skin")?f.setGameAttribute("Player2Skin","_skin50_chonky.png"):51==h.engine.getGameAttribute("P2 Skin")?f.setGameAttribute("Player2Skin","_skin51_mini.png"):52==h.engine.getGameAttribute("P2 Skin")?f.setGameAttribute("Player2Skin","_skin52_sabretooth.png"):53==h.engine.getGameAttribute("P2 Skin")?f.setGameAttribute("Player2Skin", +"_skin53_electric.png"):54==h.engine.getGameAttribute("P2 Skin")?f.setGameAttribute("Player2Skin","_skin54_silhouette.png"):55==h.engine.getGameAttribute("P2 Skin")?f.setGameAttribute("Player2Skin","_skin55_gooey.png"):56==h.engine.getGameAttribute("P2 Skin")?f.setGameAttribute("Player2Skin","_skin56_snow.png"):57==h.engine.getGameAttribute("P2 Skin")?f.setGameAttribute("Player2Skin","_skin57_vampire.png"):58==h.engine.getGameAttribute("P2 Skin")?f.setGameAttribute("Player2Skin","_skin58_cosmic.png"): +59==h.engine.getGameAttribute("P2 Skin")&&f.setGameAttribute("Player2Skin","_skin59_silver.png"));this._Player1||(60==h.engine.getGameAttribute("P2 Skin")?f.setGameAttribute("Player2Skin","_skin60_psychic.png"):61==h.engine.getGameAttribute("P2 Skin")?f.setGameAttribute("Player2Skin","_skin61_jackrabbit.png"):62==h.engine.getGameAttribute("P2 Skin")?f.setGameAttribute("Player2Skin","_skin62_shark.png"):63==h.engine.getGameAttribute("P2 Skin")?f.setGameAttribute("Player2Skin","_skin63_jackalope.png"): +64==h.engine.getGameAttribute("P2 Skin")?f.setGameAttribute("Player2Skin","_skin64_usadachi.png"):65==h.engine.getGameAttribute("P2 Skin")?f.setGameAttribute("Player2Skin","_skin65_punk.png"):66==h.engine.getGameAttribute("P2 Skin")?f.setGameAttribute("Player2Skin","_skin66_goth.png"):67==h.engine.getGameAttribute("P2 Skin")?f.setGameAttribute("Player2Skin","_skin67_moon.png"):68==h.engine.getGameAttribute("P2 Skin")?f.setGameAttribute("Player2Skin","_skin68_caerbannog.png"):69==h.engine.getGameAttribute("P2 Skin")&& +f.setGameAttribute("Player2Skin","_skin69_foxxy.png"));this._Player1||(70==h.engine.getGameAttribute("P2 Skin")?f.setGameAttribute("Player2Skin","_skin70_dust.png"):71==h.engine.getGameAttribute("P2 Skin")?f.setGameAttribute("Player2Skin","_skin71_kami.png"):72==h.engine.getGameAttribute("P2 Skin")?f.setGameAttribute("Player2Skin","_skin72_almiraj.png"):73==h.engine.getGameAttribute("P2 Skin")?f.setGameAttribute("Player2Skin","_skin73_skvader.png"):74==h.engine.getGameAttribute("P2 Skin")?f.setGameAttribute("Player2Skin", +"_skin74_warcriminal.png"):75==h.engine.getGameAttribute("P2 Skin")?f.setGameAttribute("Player2Skin","_skin75_golden.png"):76==h.engine.getGameAttribute("P2 Skin")?f.setGameAttribute("Player2Skin","_skin76_divine.png"):77==h.engine.getGameAttribute("P2 Skin")?f.setGameAttribute("Player2Skin","_skin77_neutronized.png"):78==h.engine.getGameAttribute("P2 Skin")?f.setGameAttribute("Player2Skin","_skin78_carrot.png"):79==h.engine.getGameAttribute("P2 Skin")&&f.setGameAttribute("Player2Skin","_skin79_goldencarrot.png")); +this._Player1||(80==h.engine.getGameAttribute("P2 Skin")?f.setGameAttribute("Player2Skin","_skin80_chester.png"):81==h.engine.getGameAttribute("P2 Skin")?f.setGameAttribute("Player2Skin","_skin81_timmy.png"):82==h.engine.getGameAttribute("P2 Skin")?f.setGameAttribute("Player2Skin","_skin82_dashington.png"):83==h.engine.getGameAttribute("P2 Skin")?f.setGameAttribute("Player2Skin","_skin83_heart.png"):84==h.engine.getGameAttribute("P2 Skin")?f.setGameAttribute("Player2Skin","_skin84_star.png"):85== +h.engine.getGameAttribute("P2 Skin")?f.setGameAttribute("Player2Skin","_skin85_mage.png"):86==h.engine.getGameAttribute("P2 Skin")?f.setGameAttribute("Player2Skin","_skin86_knight.png"):87==h.engine.getGameAttribute("P2 Skin")?f.setGameAttribute("Player2Skin","_skin87_ranger.png"):88==h.engine.getGameAttribute("P2 Skin")?f.setGameAttribute("Player2Skin","_skin88_king.png"):89==h.engine.getGameAttribute("P2 Skin")&&f.setGameAttribute("Player2Skin","_skin89_original.png"));this._Player1||(90==h.engine.getGameAttribute("P2 Skin")? +f.setGameAttribute("Player2Skin","_skin90_fairy.png"):91==h.engine.getGameAttribute("P2 Skin")?f.setGameAttribute("Player2Skin","_skin91_pixie.png"):92==h.engine.getGameAttribute("P2 Skin")?f.setGameAttribute("Player2Skin","_skin92_ninja.png"):93==h.engine.getGameAttribute("P2 Skin")?f.setGameAttribute("Player2Skin","_skin93_infernal.png"):94==h.engine.getGameAttribute("P2 Skin")?f.setGameAttribute("Player2Skin","_skin94_ethereal.png"):95==h.engine.getGameAttribute("P2 Skin")?f.setGameAttribute("Player2Skin", +"_skin95_zombie.png"):96==h.engine.getGameAttribute("P2 Skin")?f.setGameAttribute("Player2Skin","_skin96_triplets.png"):97==h.engine.getGameAttribute("P2 Skin")?f.setGameAttribute("Player2Skin","_skin97_ghost.png"):98==h.engine.getGameAttribute("P2 Skin")?f.setGameAttribute("Player2Skin","_skin98_crystal.png"):99==h.engine.getGameAttribute("P2 Skin")&&f.setGameAttribute("Player2Skin","_skin99_astral.png"));this._Player1||(100==h.engine.getGameAttribute("P2 Skin")?f.setGameAttribute("Player2Skin", +"_skin100_domino.png"):101==h.engine.getGameAttribute("P2 Skin")?f.setGameAttribute("Player2Skin","_skin101_disguised.png"):102==h.engine.getGameAttribute("P2 Skin")?f.setGameAttribute("Player2Skin","_skin102_monstrous.png"):103==h.engine.getGameAttribute("P2 Skin")?f.setGameAttribute("Player2Skin","_skin103_carbuncle.png"):104==h.engine.getGameAttribute("P2 Skin")&&f.setGameAttribute("Player2Skin","_skin104_phosphor.png"))},forwardMessage:function(a){},__class__:Ts});var Us=function(a,b,c){w.call(this, +b);this.nameMap.h.Actor="actor";this.nameMap.h["Bunny Actor"]="_BunnyActor";this.nameMap.h["New Badge Actor"]="_NewBadgeActor"};k["scripts.Design_375_375_GachaButtonBehavior"]=Us;Us.__name__="scripts.Design_375_375_GachaButtonBehavior";Us.__super__=w;Us.prototype=u(w.prototype,{_BunnyActor:null,_NewBadgeActor:null,_event_PressedOn:function(a){this.wrapper.enabled&&3==a&&99<h.engine.getGameAttribute("Currency Carrots")&&(this.actor.setAnimation("2"),this._BunnyActor.setY(this.actor.getY()+2),this._customEvent_Pressed())}, +_event_ReleasedOn:function(a){this.wrapper.enabled&&5==a&&(99<h.engine.getGameAttribute("Currency Carrots")?this.actor.setAnimation("1"):this.actor.setAnimation("locked"),this._BunnyActor.setY(this.actor.getY()))},_customEvent_Pressed:function(){if(!f.isTransitioning()){var a=h.engine,b=h.engine.getGameAttribute("Currency Carrots")-100;a.gameAttributes.h["Currency Carrots"]=b;h.engine.getGameAttribute("Mute Sounds")||f.playSound(f.getSound(605));a=va.get().scenes.h[21].getID();var c=b=0,d=0;null== +d&&(d=0);null==c&&(c=0);null==b&&(b=0);var e=f.createFadeOut(.4,b<<16|c<<8|d);d=c=b=0;null==d&&(d=0);null==c&&(c=0);null==b&&(b=0);f.switchScene(a,e,f.createFadeIn(1,b<<16|c<<8|d));h.engine.gameAttributes.h["Can RewardAd Skin"]=!0}},_customEvent_CarrotRewardCheck:function(){var a=this;99<h.engine.getGameAttribute("Currency Carrots")&&f.runLater(200,function(b){a._BunnyActor.setAnimation("gacha");a._BunnyActor.clearFilters();a.actor.setAnimation("1");f.createRecycledActor(f.getActorType(722),a.actor.getX(), +a.actor.getY()-4,0);f.getLastCreatedActor().anchorToScreen();var c=b=0,d=0;null==d&&(d=0);null==c&&(c=0);null==b&&(b=0);a._BunnyActor.setFilter([f.createTintFilter(b<<16|c<<8|d,1)]);f.createRecycledActor(f.getActorType(730),-32,-32,0);f.getLastCreatedActor().anchorToScreen();f.getLastCreatedActor().setX(a.actor.getXCenter()-f.getLastCreatedActor().getWidth()/2);f.getLastCreatedActor().setY(a.actor.getYCenter()-f.getLastCreatedActor().getHeight()/2);b=0;for(c=f.getActorsOfType(f.getActorType(698));b< +c.length;)d=c[b],++b,null==d||d.dead||d.recycled||f.recycleActor(d);b=0;for(c=f.getActorsOfType(f.getActorType(704));b<c.length;)d=c[b],++b,null==d||d.dead||d.recycled||d.clearFilters()},this.actor)},init:function(){var a=this;this.actor.makeAlwaysSimulate();this.actor.anchorToScreen();this.actor.setX(f.getScreenWidth()-this.actor.getWidth()-6-da.rightInset);this.actor.setY(f.getScreenHeight()-f.getScreenHeight()+6+da.topInset);0==h.engine.getGameAttribute("Skin List").length&&f.recycleActor(this.actor); +f.createRecycledActor(f.getActorType(704),this.actor.getX(),this.actor.getY(),0);f.getLastCreatedActor().anchorToScreen();this._BunnyActor=f.getLastCreatedActor();100>h.engine.getGameAttribute("Currency Carrots")?(this._BunnyActor.setAnimation("locked"),this.actor.setAnimation("locked"),f.createRecycledActor(f.getActorType(698),this.actor.getX()+3,this.actor.getY()+3,0),f.getLastCreatedActor().anchorToScreen()):(this._BunnyActor.setAnimation("locked"),this.actor.setAnimation("locked"),f.createRecycledActor(f.getActorType(698), +this.actor.getX()+3,this.actor.getY()+3,0),f.getLastCreatedActor().anchorToScreen(),f.runLater(500,function(b){a._BunnyActor.setAnimation("gacha");a._BunnyActor.clearFilters();a.actor.setAnimation("1");f.createRecycledActor(f.getActorType(722),a.actor.getX(),a.actor.getY()-4,0);f.getLastCreatedActor().anchorToScreen();var c=b=0,d=0;null==d&&(d=0);null==c&&(c=0);null==b&&(b=0);a._BunnyActor.setFilter([f.createTintFilter(b<<16|c<<8|d,1)]);f.createRecycledActor(f.getActorType(730),-32,-32,0);f.getLastCreatedActor().anchorToScreen(); +f.getLastCreatedActor().setX(a.actor.getXCenter()-f.getLastCreatedActor().getWidth()/2);f.getLastCreatedActor().setY(a.actor.getYCenter()-f.getLastCreatedActor().getHeight()/2);b=0;for(c=f.getActorsOfType(f.getActorType(698));b<c.length;)d=c[b],++b,null==d||d.dead||d.recycled||f.recycleActor(d);b=0;for(c=f.getActorsOfType(f.getActorType(704));b<c.length;)d=c[b],++b,null==d||d.dead||d.recycled||d.clearFilters()},this.actor));f.createRecycledActor(f.getActorType(724),this.actor.getX()-8,this.actor.getY()+ +36,0);this.addListener(this.actor.whenMousedOver,q(this,this._event_PressedOn));this.addListener(this.actor.whenMousedOver,q(this,this._event_ReleasedOn))},forwardMessage:function(a){},__class__:Us});var Vs=function(a,b,c){w.call(this,b);this.nameMap.h.Actor="actor";this.nameMap.h.Time="_Time";this._Time=1};k["scripts.Design_378_378_DieAfterTime"]=Vs;Vs.__name__="scripts.Design_378_378_DieAfterTime";Vs.__super__=w;Vs.prototype=u(w.prototype,{_Time:null,_event_DoAfter:function(a){this.wrapper.enabled&& +this.actor.isAlive()&&f.recycleActor(this.actor)},init:function(){f.runLater(1E3*this._Time,q(this,this._event_DoAfter),this.actor)},forwardMessage:function(a){},__class__:Vs});var Ws=function(a,b){f.call(this);this.nameMap.h["Remaining Skins"]="_RemainingSkins";this._RemainingSkins=0;this.nameMap.h["New Skin"]="_NewSkin";this._NewSkin=0;this.nameMap.h["Bunny Actor"]="_BunnyActor";this.nameMap.h["Can Confetti?"]="_CanConfetti";this._CanConfetti=!0;this.nameMap.h["Can Draw Name?"]="_CanDrawName";this._CanDrawName= +!1;this.nameMap.h["Bunny X Middle"]="_BunnyX";this._BunnyX=0;this.nameMap.h["Bunny Y"]="_BunnyY";this._BunnyY=0};k["scripts.Design_381_381_UnlockBunnyScreenBehavior"]=Ws;Ws.__name__="scripts.Design_381_381_UnlockBunnyScreenBehavior";Ws.__super__=gb;Ws.prototype=u(gb.prototype,{_RemainingSkins:null,_NewSkin:null,_BunnyActor:null,_CanConfetti:null,_CanDrawName:null,_BunnyX:null,_BunnyY:null,_event_Drawing:function(a,b,c){this.wrapper.enabled&&(a.setFont(f.getFont(766)),a.translateToScreen(),this._CanDrawName&& +a.drawString(""+n.string(h.engine.getGameAttribute("Skin Names List")[this._NewSkin|0]),f.getScreenWidth()/2-a.font.getTextWidth(""+n.string(h.engine.getGameAttribute("Skin Names List")[this._NewSkin|0]))/h.SCALE/2,this._BunnyY-24))},_customEvent_confetti:function(){var a=this;f.createRecycledActor(f.getActorType(612),f.randomInt(0,f.getSceneWidth()),-6,0);f.getLastCreatedActor().moveToBottom();f.runLater(70,function(b){a._CanConfetti&&f.shoutToScene("_customEvent_confetti")},null)},init:function(){var a= +this;this._RemainingSkins=h.engine.getGameAttribute("Skin List").length;this._NewSkin=f.asNumber(h.engine.getGameAttribute("Skin List")[f.randomInt(0,this._RemainingSkins-1|0)]);h.engine.getGameAttribute("Collected Skins List").push(this._NewSkin);h.engine.getGameAttribute("Skin List").splice(h.engine.getGameAttribute("Skin List").indexOf(this._NewSkin),1);f.saveGame("mySave",function(a){});f.runLater(1E3,function(b){f.createRecycledActor(f.getActorType(704),176,118,2);a._BunnyActor=f.getLastCreatedActor(); +a._BunnyActor.setAnimation(""+a._NewSkin);var c=b=0,d=0;null==d&&(d=0);null==c&&(c=0);null==b&&(b=0);a._BunnyActor.setFilter([f.createTintFilter(b<<16|c<<8|d,1)]);a._BunnyX=a._BunnyActor.getXCenter();a._BunnyY=a._BunnyActor.getScreenY();f.createRecycledActor(f.getActorType(527),176,120,0);f.runLater(1500,function(b){a._BunnyActor.clearFilters();a._customEvent_confetti();f.createRecycledActor(f.getActorType(623),176,120,0);b=0;for(var c=f.getActorsOfType(f.getActorType(732));b<c.length;){var d=c[b]; +++b;null==d||d.dead||d.recycled||d.fadeTo(0,.2,ia.linear)}f.startShakingScreen(.01,.3);h.engine.getGameAttribute("Mute Sounds")||(f.playSound(f.getSound(683)),f.runLater(500,function(a){f.playSound(f.getSound(614))},null));f.runLater(2E3,function(b){a._CanConfetti=!1},null);a._CanDrawName=!0;f.createRecycledActor(f.getActorType(692),-32,-32,0);f.createRecycledActor(f.getActorType(621),-32,-32,0);f.createRecycledActor(f.getActorType(710),128,168,0);f.getLastCreatedActor().shout("_customEvent_P1"); +f.getLastCreatedActor().setValue("Skin Menu Player Select Behavior","_SkinNumberUnlock",a._NewSkin);f.createRecycledActor(f.getActorType(710),224,168,0);f.getLastCreatedActor().shout("_customEvent_P2");f.getLastCreatedActor().setValue("Skin Menu Player Select Behavior","_SkinNumberUnlock",a._NewSkin);f.createRecycledActor(f.getActorType(706),112,152,0);f.createRecycledActor(f.getActorType(708),208,152,0);f.createRecycledActor(f.getActorType(756),104,96,2);f.createRecycledActor(f.getActorType(789), +168,172,0);100<=h.engine.getGameAttribute("Currency Carrots")?f.createRecycledActor(f.getActorType(720),-100,-100,2):h.engine.getGameAttribute("Can RewardAd Skin")&&f.createRecycledActor(f.getActorType(812),-100,-100,2);f.createRecycledActor(f.getActorType(760),136,80,2)},null)},null);h.engine.getGameAttribute("Mute Sounds")||f.runLater(300,function(a){f.playSound(f.getSound(734))},null);this.addListener(f.engine.whenDrawing,q(this,this._event_Drawing))},forwardMessage:function(a){},__class__:Ws}); +var Xs=function(a,b,c){w.call(this,b);this.nameMap.h.Actor="actor"};k["scripts.Design_384_384_ParticlesPlayers"]=Xs;Xs.__name__="scripts.Design_384_384_ParticlesPlayers";Xs.__super__=w;Xs.prototype=u(w.prototype,{_event_Updating:function(a){this.wrapper.enabled&&(f.asBoolean(this.actor.getActorValue("P1"))?100==h.engine.getGameAttribute("P1 Skin")&&(f.asBoolean("Right"==this.actor.getActorValue("Facing"))?f.setGameAttribute("Player1Skin","_skin100_domino.png"):f.asBoolean("Left"==this.actor.getActorValue("Facing"))&& +f.setGameAttribute("Player1Skin","_skin100_domino2.png")):f.asBoolean(this.actor.getActorValue("P2"))&&100==h.engine.getGameAttribute("P2 Skin")&&(f.asBoolean("Right"==this.actor.getActorValue("Facing"))?f.setGameAttribute("Player2Skin","_skin100_domino.png"):f.asBoolean("Left"==this.actor.getActorValue("Facing"))&&f.setGameAttribute("Player2Skin","_skin100_domino2.png")))},_customEvent_sparkles:function(){var a=this;f.createRecycledActor(f.getActorType(568),this.actor.getXCenter()+f.randomInt(-12, +8),this.actor.getYCenter()+f.randomInt(-6,12),0);f.runLater(200,function(b){a._customEvent_sparkles()},this.actor)},_customEvent_flames:function(){var a=this;f.createRecycledActor(f.getActorType(738),this.actor.getXCenter()+f.randomInt(-12,8),this.actor.getYCenter()+f.randomInt(-6,12),0);f.runLater(100,function(b){a._customEvent_flames()},this.actor)},_customEvent_snowing:function(){var a=this;f.createRecycledActor(f.getActorType(740),this.actor.getXCenter()+f.randomInt(-12,8),this.actor.getYCenter()+ +f.randomInt(-6,12),0);f.runLater(100,function(b){a._customEvent_snowing()},this.actor)},_customEvent_thunder:function(){var a=this;f.createRecycledActor(f.getActorType(742),this.actor.getXCenter()+f.randomInt(-10,6),this.actor.getYCenter()+f.randomInt(-4,10),0);f.runLater(400,function(b){a._customEvent_thunder()},this.actor)},_customEvent_steam:function(){var a=this;f.createRecycledActor(f.getActorType(744),this.actor.getXCenter()+f.randomInt(-10,6),this.actor.getYCenter()+f.randomInt(-4,10),2);f.runLater(300, +function(b){a._customEvent_steam()},this.actor)},_customEvent_smoke:function(){var a=this;f.createRecycledActor(f.getActorType(746),this.actor.getXCenter()+f.randomInt(-10,6),this.actor.getYCenter()+f.randomInt(-4,10),2);f.runLater(300,function(b){a._customEvent_smoke()},this.actor)},_customEvent_water:function(){var a=this;f.createRecycledActor(f.getActorType(748),this.actor.getXCenter()+f.randomInt(-10,6),this.actor.getYCenter()+f.randomInt(-4,10),0);f.runLater(200,function(b){a._customEvent_water()}, +this.actor)},_customEvent_gooey:function(){var a=this;f.createRecycledActor(f.getActorType(764),this.actor.getXCenter()+f.randomInt(-10,6),this.actor.getYCenter()+f.randomInt(-4,10),0);f.runLater(200,function(b){a._customEvent_gooey()},this.actor)},_customEvent_rainbow:function(){var a=this;f.asBoolean(this.actor.getActorValue("dead"))||(f.createRecycledActor(f.getActorType(752),this.actor.getX()+13,this.actor.getY()+16,1),f.runLater(20,function(b){a._customEvent_rainbow()},this.actor))},_customEvent_whitetrail:function(){var a= +this;f.asBoolean(this.actor.getActorValue("dead"))||(f.createRecycledActor(f.getActorType(754),this.actor.getX()+14,this.actor.getY()+16,1),f.runLater(20,function(b){a._customEvent_whitetrail()},this.actor))},_customEvent_redtrail:function(){var a=this;f.asBoolean(this.actor.getActorValue("dead"))||(f.createRecycledActor(f.getActorType(758),this.actor.getX()+14,this.actor.getY()+16,1),f.runLater(20,function(b){a._customEvent_redtrail()},this.actor))},_customEvent_cosmic:function(){var a=this;f.createRecycledActor(f.getActorType(762), +this.actor.getXCenter()+f.randomInt(-10,6),this.actor.getYCenter()+f.randomInt(-4,10),2);f.runLater(200,function(b){a._customEvent_cosmic()},this.actor)},_customEvent_astral:function(){var a=this;f.createRecycledActor(f.getActorType(767),this.actor.getXCenter()+f.randomInt(-10,6),this.actor.getYCenter()+f.randomInt(-4,10),2);f.runLater(200,function(b){a._customEvent_astral()},this.actor)},init:function(){var a=this;f.asBoolean(this.actor.getActorValue("P1"))&&(75==h.engine.getGameAttribute("P1 Skin")|| +79==h.engine.getGameAttribute("P1 Skin")||59==h.engine.getGameAttribute("P1 Skin")?this._customEvent_sparkles():38==h.engine.getGameAttribute("P1 Skin")||93==h.engine.getGameAttribute("P1 Skin")?(this._customEvent_flames(),this._customEvent_smoke()):44==h.engine.getGameAttribute("P1 Skin")||56==h.engine.getGameAttribute("P1 Skin")?this._customEvent_snowing():32==h.engine.getGameAttribute("P1 Skin")||53==h.engine.getGameAttribute("P1 Skin")?this._customEvent_thunder():33==h.engine.getGameAttribute("P1 Skin")? +this._customEvent_steam():34==h.engine.getGameAttribute("P1 Skin")?this._customEvent_water():45==h.engine.getGameAttribute("P1 Skin")?this._customEvent_rainbow():71==h.engine.getGameAttribute("P1 Skin")?this._customEvent_whitetrail():49==h.engine.getGameAttribute("P1 Skin")?this._customEvent_redtrail():58==h.engine.getGameAttribute("P1 Skin")?this._customEvent_cosmic():55==h.engine.getGameAttribute("P1 Skin")?this._customEvent_gooey():60==h.engine.getGameAttribute("P1 Skin")?f.runLater(50,function(b){a.actor.say("After Image", +"_customBlock_AfterImagePreset",["Psychic",!0])},this.actor):68==h.engine.getGameAttribute("P1 Skin")?f.runLater(50,function(b){a.actor.say("After Image","_customBlock_AfterImagePreset",["Caerbannog",!0])},this.actor):76==h.engine.getGameAttribute("P1 Skin")||94==h.engine.getGameAttribute("P1 Skin")?f.runLater(50,function(b){a.actor.say("After Image","_customBlock_AfterImagePreset",["Regular",!0])},this.actor):99==h.engine.getGameAttribute("P1 Skin")&&(this._customEvent_astral(),f.runLater(50,function(b){a.actor.say("After Image", +"_customBlock_AfterImagePreset",["Regular",!0])},this.actor)));f.asBoolean(this.actor.getActorValue("P2"))&&(75==h.engine.getGameAttribute("P2 Skin")||79==h.engine.getGameAttribute("P2 Skin")||59==h.engine.getGameAttribute("P2 Skin")?this._customEvent_sparkles():38==h.engine.getGameAttribute("P2 Skin")||93==h.engine.getGameAttribute("P2 Skin")?(this._customEvent_flames(),this._customEvent_smoke()):44==h.engine.getGameAttribute("P2 Skin")||56==h.engine.getGameAttribute("P2 Skin")?this._customEvent_snowing(): +32==h.engine.getGameAttribute("P2 Skin")||53==h.engine.getGameAttribute("P2 Skin")?this._customEvent_thunder():33==h.engine.getGameAttribute("P2 Skin")?this._customEvent_steam():34==h.engine.getGameAttribute("P2 Skin")?this._customEvent_water():45==h.engine.getGameAttribute("P2 Skin")?this._customEvent_rainbow():71==h.engine.getGameAttribute("P2 Skin")?this._customEvent_whitetrail():49==h.engine.getGameAttribute("P2 Skin")?this._customEvent_redtrail():58==h.engine.getGameAttribute("P2 Skin")?this._customEvent_cosmic(): +55==h.engine.getGameAttribute("P2 Skin")?this._customEvent_gooey():60==h.engine.getGameAttribute("P2 Skin")?f.runLater(50,function(b){a.actor.say("After Image","_customBlock_AfterImagePreset",["Psychic",!0])},this.actor):68==h.engine.getGameAttribute("P2 Skin")?f.runLater(50,function(b){a.actor.say("After Image","_customBlock_AfterImagePreset",["Caerbannog",!0])},this.actor):76==h.engine.getGameAttribute("P2 Skin")||94==h.engine.getGameAttribute("P2 Skin")?f.runLater(50,function(b){a.actor.say("After Image", +"_customBlock_AfterImagePreset",["Regular",!0])},this.actor):99==h.engine.getGameAttribute("P2 Skin")&&(this._customEvent_astral(),f.runLater(50,function(b){a.actor.say("After Image","_customBlock_AfterImagePreset",["Regular",!0])},this.actor)));this.addListener(this.actor.whenUpdated,q(this,this._event_Updating))},forwardMessage:function(a){},__class__:Xs});var Ys=function(a,b){f.call(this);this.nameMap.h["Finger Icon"]="_FingerIcon";this.nameMap.h["Can Slide?"]="_CanSlide";this._CanSlide=!1;this.nameMap.h["Selection Number"]= +"_SelectionNumber";this._SelectionNumber=0};k["scripts.Design_402_402_TitleScreenKeyboard"]=Ys;Ys.__name__="scripts.Design_402_402_TitleScreenKeyboard";Ys.__super__=gb;Ys.prototype=u(gb.prototype,{_FingerIcon:null,_CanSlide:null,_SelectionNumber:null,_event_SpacePressedHTML5:function(a,b){if(this.wrapper.enabled&&a&&!pa.IsVideoPlaying())for(a=0,b=f.getActorsOfType(f.getActorType(601));a<b.length;){var c=b[a];++a;null==c||c.dead||c.recycled||c.shout("_customEvent_Pressed")}},init:function(){this.addListener(f.engine.whenKeyPressedEvents.getOrCreateEvent("Space"), +q(this,this._event_SpacePressedHTML5))},forwardMessage:function(a){},__class__:Ys});var Zs=function(a,b,c){w.call(this,b);this.nameMap.h.Actor="actor";this.nameMap.h.URL="_URL";this._URL="http://www.stencyl.com";this.nameMap.h["Pressed Animation"]="_PressedAnimation";this._PressedAnimation="";this.nameMap.h.Down="_Down";this._Down=!1;this.nameMap.h["Normal Animation"]="_NormalAnimation";this._NormalAnimation="";this.nameMap.h["Hover Animation"]="_HoverAnimation";this._HoverAnimation=""};k["scripts.Design_410_410_OpenURLButton"]= +Zs;Zs.__name__="scripts.Design_410_410_OpenURLButton";Zs.__super__=w;Zs.prototype=u(w.prototype,{_URL:null,_PressedAnimation:null,_Down:null,_NormalAnimation:null,_HoverAnimation:null,_event_OnActor:function(a){this.wrapper.enabled&&3==a&&(this.actor.setAnimation(this._PressedAnimation),this._Down=!0)},_event_OnActor2:function(a){this.wrapper.enabled&&5==a&&(this._Down&&this._customEvent_Action(),this.actor.setAnimation(this._HoverAnimation),this._Down=!1)},_event_OnActor3:function(a){this.wrapper.enabled&& +1==a&&this.actor.setAnimation(this._HoverAnimation)},_event_OnActor4:function(a){this.wrapper.enabled&&-1==a&&(this.actor.setAnimation(this._NormalAnimation),this._Down=!1)},_customEvent_Action:function(){f.openURLInBrowser(this._URL)},init:function(){this.addListener(this.actor.whenMousedOver,q(this,this._event_OnActor));this.addListener(this.actor.whenMousedOver,q(this,this._event_OnActor2));this.addListener(this.actor.whenMousedOver,q(this,this._event_OnActor3));this.addListener(this.actor.whenMousedOver, +q(this,this._event_OnActor4))},forwardMessage:function(a){},__class__:Zs});var $s=function(a,b){f.call(this);this.nameMap.h["Showing Ad?"]="_ShowingAd";this._ShowingAd=!1};k["scripts.Design_421_421_AdsBehavior"]=$s;$s.__name__="scripts.Design_421_421_AdsBehavior";$s.__super__=gb;$s.prototype=u(gb.prototype,{_ShowingAd:null,_event_UnityAds:function(a){},_customEvent_PokiAd:function(){f.runLater(400,function(a){f.engine.pause();f.pauseSoundOnChannel(0);pa.commercialBreak(function(){f.engine.unpause(); +f.resumeSoundOnChannel(0)})},null)},_customEvent_ReviveAdPoki:function(){pa.adBlocked?(f.engine.unpause(),f.shoutToScene("_customEvent_AddCurrency"),f.switchScene(va.get().scenes.h[11].getID(),null,f.createCrossfadeTransition(.5))):pa.rewardedBreak(function(){for(var a=0,b=f.getActorsOfType(f.getActorType(586));a<b.length;){var c=b[a];++a;null==c||c.dead||c.recycled||f.recycleActor(c)}a=0;for(b=f.getActorsOfType(f.getActorType(806));a<b.length;)c=b[a],++a,null==c||c.dead||c.recycled||f.recycleActor(c); +a=0;for(b=f.getActorsOfType(f.getActorType(808));a<b.length;)c=b[a],++a,null==c||c.dead||c.recycled||f.recycleActor(c);a=0;for(b=f.getActorsOfType(f.getActorType(810));a<b.length;)c=b[a],++a,null==c||c.dead||c.recycled||f.recycleActor(c);f.engine.unpause();f.loopSoundOnChannel(f.getSound(554),0);f.sayToScene("Scene Functions Behavior","_customEvent_CreateControls");h.engine.getGameAttribute("Multiplayer On")?f.runLater(1E3,function(a){a=0;for(var b=f.getActorsOfType(f.getActorType(674));a<b.length;){var c= +b[a];++a;null==c||c.dead||c.recycled||f.recycleActor(c)}a=0;for(b=f.getActorsOfType(f.getActorType(654));a<b.length;)c=b[a],++a,null==c||c.dead||c.recycled||f.recycleActor(c);a=0;for(b=f.getActorsOfType(f.getActorType(656));a<b.length;)c=b[a],++a,null==c||c.dead||c.recycled||f.recycleActor(c);a=0;for(b=f.getActorsOfType(f.getActorType(479));a<b.length;)c=b[a],++a,null==c||c.dead||c.recycled||f.recycleActor(c);a=0;for(b=f.getActorsOfType(f.getActorType(652));a<b.length;)c=b[a],++a,null==c||c.dead|| +c.recycled||f.recycleActor(c);f.createRecycledActor(f.getActorType(479),136,144,0);f.getLastCreatedActor().shout("_customEvent_BlinkAd");f.createRecycledActor(f.getActorType(652),216,144,0);f.getLastCreatedActor().shout("_customEvent_BlinkAd");pa.sendGameplayStart()},null):f.runLater(1E3,function(a){a=0;for(var b=f.getActorsOfType(f.getActorType(674));a<b.length;){var c=b[a];++a;null==c||c.dead||c.recycled||f.recycleActor(c)}a=0;for(b=f.getActorsOfType(f.getActorType(654));a<b.length;)c=b[a],++a, +null==c||c.dead||c.recycled||f.recycleActor(c);a=0;for(b=f.getActorsOfType(f.getActorType(656));a<b.length;)c=b[a],++a,null==c||c.dead||c.recycled||f.recycleActor(c);a=0;for(b=f.getActorsOfType(f.getActorType(479));a<b.length;)c=b[a],++a,null==c||c.dead||c.recycled||f.recycleActor(c);a=0;for(b=f.getActorsOfType(f.getActorType(652));a<b.length;)c=b[a],++a,null==c||c.dead||c.recycled||f.recycleActor(c);f.createRecycledActor(f.getActorType(479),176,144,0);f.getLastCreatedActor().shout("_customEvent_BlinkAd"); +pa.sendGameplayStart()},null);f.shoutToScene("_customEvent_ResumeTime");h.engine.gameAttributes.h["Used Revive"]=!0})},_customEvent_ReviveAdMobile:function(){},_customEvent_ReviveNoAd:function(){h.engine.gameAttributes.h["Ad Counter"]=0;h.engine.gameAttributes.h["Ad Timer"]=0;f.engine.unpause();f.resumeSoundOnChannel(0);this._ShowingAd=!1;for(var a=0,b=f.getActorsOfType(f.getActorType(586));a<b.length;){var c=b[a];++a;null==c||c.dead||c.recycled||f.recycleActor(c)}a=0;for(b=f.getActorsOfType(f.getActorType(806));a< +b.length;)c=b[a],++a,null==c||c.dead||c.recycled||f.recycleActor(c);a=0;for(b=f.getActorsOfType(f.getActorType(808));a<b.length;)c=b[a],++a,null==c||c.dead||c.recycled||f.recycleActor(c);a=0;for(b=f.getActorsOfType(f.getActorType(810));a<b.length;)c=b[a],++a,null==c||c.dead||c.recycled||f.recycleActor(c);f.engine.unpause();f.loopSoundOnChannel(f.getSound(554),0);f.sayToScene("Scene Functions Behavior","_customEvent_CreateControls");h.engine.getGameAttribute("Multiplayer On")?f.runLater(1E3,function(a){a= +0;for(var b=f.getActorsOfType(f.getActorType(674));a<b.length;){var c=b[a];++a;null==c||c.dead||c.recycled||f.recycleActor(c)}a=0;for(b=f.getActorsOfType(f.getActorType(654));a<b.length;)c=b[a],++a,null==c||c.dead||c.recycled||f.recycleActor(c);a=0;for(b=f.getActorsOfType(f.getActorType(656));a<b.length;)c=b[a],++a,null==c||c.dead||c.recycled||f.recycleActor(c);a=0;for(b=f.getActorsOfType(f.getActorType(479));a<b.length;)c=b[a],++a,null==c||c.dead||c.recycled||f.recycleActor(c);a=0;for(b=f.getActorsOfType(f.getActorType(652));a< +b.length;)c=b[a],++a,null==c||c.dead||c.recycled||f.recycleActor(c);f.createRecycledActor(f.getActorType(479),136,144,0);f.getLastCreatedActor().shout("_customEvent_BlinkAd");f.createRecycledActor(f.getActorType(652),216,144,0);f.getLastCreatedActor().shout("_customEvent_BlinkAd")},null):f.runLater(1E3,function(a){a=0;for(var b=f.getActorsOfType(f.getActorType(674));a<b.length;){var c=b[a];++a;null==c||c.dead||c.recycled||f.recycleActor(c)}a=0;for(b=f.getActorsOfType(f.getActorType(654));a<b.length;)c= +b[a],++a,null==c||c.dead||c.recycled||f.recycleActor(c);a=0;for(b=f.getActorsOfType(f.getActorType(656));a<b.length;)c=b[a],++a,null==c||c.dead||c.recycled||f.recycleActor(c);a=0;for(b=f.getActorsOfType(f.getActorType(479));a<b.length;)c=b[a],++a,null==c||c.dead||c.recycled||f.recycleActor(c);a=0;for(b=f.getActorsOfType(f.getActorType(652));a<b.length;)c=b[a],++a,null==c||c.dead||c.recycled||f.recycleActor(c);f.createRecycledActor(f.getActorType(479),176,144,0);f.getLastCreatedActor().shout("_customEvent_BlinkAd")}, +null);f.shoutToScene("_customEvent_ResumeTime");h.engine.gameAttributes.h["Used Revive"]=!0},init:function(){this.addListener(f.engine.whenUpdated,q(this,this._event_UnityAds))},forwardMessage:function(a){},__class__:$s});var at=function(a,b,c){w.call(this,b);this.nameMap.h.Actor="actor";this.nameMap.h.Coordinates="_Coordinates";this.nameMap.h.X="_XVar";this._XVar=0;this.nameMap.h.Y="_YVar";this._YVar=0;this.nameMap.h.XY="_XY";this.nameMap.h["Previous X"]="_PreviousX";this._PreviousX=0;this.nameMap.h["Previous Y"]= +"_PreviousY";this._PreviousY=0;this.nameMap.h.First="_First";this._First=!1;this.nameMap.h.Loop="_Loop";this._Loop=!0;this.nameMap.h["First X"]="_FirstX";this._FirstX=0;this.nameMap.h["First Y"]="_FirstY";this._FirstY=0;this.nameMap.h["Distance X"]="_DistanceX";this._DistanceX=0;this.nameMap.h["Distance Y"]="_DistanceY";this._DistanceY=0;this.nameMap.h.Distance="_Distance";this._Distance=0;this.nameMap.h.Direction="_Direction";this._Direction=0;this.nameMap.h["Default Speed"]="_DefaultSpeed";this._DefaultSpeed= +10;this.nameMap.h["Current Node"]="_CurrentNode";this._CurrentNode=0;this.nameMap.h["Current Speed"]="_CurrentSpeed";this._CurrentSpeed=0;this.nameMap.h["Jump to Start"]="_JumptoStart";this._JumptoStart=!0;this.nameMap.h["Can Start Moving?"]="_CanStartMoving";this._CanStartMoving=!1};k["scripts.Design_422_422_FollowPath"]=at;at.__name__="scripts.Design_422_422_FollowPath";at.__super__=w;at.prototype=u(w.prototype,{_Coordinates:null,_XVar:null,_YVar:null,_XY:null,_PreviousX:null,_PreviousY:null,_First:null, +_Loop:null,_FirstX:null,_FirstY:null,_DistanceX:null,_DistanceY:null,_Distance:null,_Direction:null,_DefaultSpeed:null,_CurrentNode:null,_CurrentSpeed:null,_JumptoStart:null,_CanStartMoving:null,_event_Updated:function(a){this.wrapper.enabled&&(0==this._Coordinates.length?this.actor.setVelocity(0,0):this._CanStartMoving&&(this._Loop&&this._CurrentNode>=this._Coordinates.length&&(this._CurrentNode=0),this._CurrentNode<this._Coordinates.length&&(this._XY=(""+n.string(this._Coordinates[this._CurrentNode| +0])).split(","),2<=this._XY.length&&(this._XVar=f.asNumber(this._XY[0]),this._YVar=f.asNumber(this._XY[1]),this._CurrentSpeed=3<=this._XY.length?f.asNumber(this._XY[2]):this._DefaultSpeed,this._DistanceX=this._XVar-this.actor.getXCenter(),this._DistanceY=this._YVar-this.actor.getYCenter(),this._Distance=Math.sqrt(Math.pow(this._DistanceX,2)+Math.pow(this._DistanceY,2)),this._Direction=57.29577951308402*Math.atan2(this._DistanceY,this._DistanceX),0<this._Distance?this.actor.setVelocity(this._Direction, +Math.min(this._CurrentSpeed,this._Distance)):(this.actor.setVelocity(0,0),this._CurrentNode+=1)))))},_event_Drawing:function(a,b,c){if(this.wrapper.enabled&&f.sceneHasBehavior("Game Debugger")&&f.asBoolean(f.getValueForScene("Game Debugger","_Enabled"))){a.strokeColor=f.getValueForScene("Game Debugger","_CustomColor");a.strokeSize=f.asNumber(f.getValueForScene("Game Debugger","_StrokeThickness"))|0;a.translateToScreen();this._First=!0;b=0;for(c=O.__cast(this._Coordinates,Array);b<c.length;){var d= +c[b];++b;this._XY=(""+n.string(d)).split(",");this._First?(this._First=!1,this._FirstX=f.asNumber(this._XY[0]),this._FirstY=f.asNumber(this._XY[1]),this._PreviousX=this._FirstX,this._PreviousY=this._FirstY):(this._XVar=f.asNumber(this._XY[0]),this._YVar=f.asNumber(this._XY[1]),a.drawLine(this._PreviousX-f.getScreenX(),this._PreviousY-f.getScreenY(),this._XVar-f.getScreenX(),this._YVar-f.getScreenY()),this._PreviousX=this._XVar,this._PreviousY=this._YVar);a.fillCircle(this._PreviousX-f.getScreenX(), +this._PreviousY-f.getScreenY(),f.asNumber(f.getValueForScene("Game Debugger","_StrokeThickness")))}this._Loop&&0!=this._Coordinates.length&&a.drawLine(this._PreviousX-f.getScreenX(),this._PreviousY-f.getScreenY(),this._FirstX-f.getScreenX(),this._FirstY-f.getScreenY())}},_customBlock_AddNode:function(a,b){this._Coordinates.push(""+a+(","+b))},_customBlock_AddNodeWithCustomSpeed:function(a,b,c){this._Coordinates.push(""+a+(","+(b+(","+c))))},_customBlock_ClearPath:function(){this._CurrentNode=this._Coordinates.length= +0},_customEvent_StartMovingSaw:function(){this._CanStartMoving=!0},init:function(){this.actor.makeAlwaysSimulate();this._CurrentNode=0;this._JumptoStart&&0!=this._Coordinates.length&&(this._XY=(""+n.string(this._Coordinates[this._CurrentNode|0])).split(","),2<=this._XY.length&&(this.actor.setX(f.asNumber(this._XY[0])-this.actor.getWidth()/2),this.actor.setY(f.asNumber(this._XY[1])-this.actor.getHeight()/2)));this.addListener(this.actor.whenUpdated,q(this,this._event_Updated));this.addListener(this.actor.whenDrawing, +q(this,this._event_Drawing))},forwardMessage:function(a){},__class__:at});var bt=function(a,b,c){w.call(this,b);this.nameMap.h.Actor="actor";this.nameMap.h["New Badge Actor"]="_NewBadgeActor"};k["scripts.Design_429_429_GachaRewardAdBehavior"]=bt;bt.__name__="scripts.Design_429_429_GachaRewardAdBehavior";bt.__super__=w;bt.prototype=u(w.prototype,{_NewBadgeActor:null,_event_PressedOn:function(a){this.wrapper.enabled&&3==a&&(pa.adBlocked?this.actor.setAnimation("adblock"):(this.actor.setAnimation("2"), +this._customEvent_Pressed()))},_event_ReleasedOn:function(a){this.wrapper.enabled&&3==a&&(pa.adBlocked?this.actor.setAnimation("adblock"):this.actor.setAnimation("1"))},_customEvent_Pressed:function(){f.isTransitioning()||pa.adBlocked||f.shoutToScene("_customEvent_RewardUnlockPoki")},init:function(){var a=this;h.engine.getGameAttribute("Can RewardAd Skin")||f.recycleActor(this.actor);this.actor.makeAlwaysSimulate();this.actor.anchorToScreen();this.actor.setX(f.getScreenWidth()-this.actor.getWidth()- +6-da.rightInset);this.actor.setY(f.getScreenHeight()-f.getScreenHeight()+6+da.topInset);0==h.engine.getGameAttribute("Skin List").length&&f.recycleActor(this.actor);f.runLater(500,function(b){a.actor.setAnimation("1");f.createRecycledActor(f.getActorType(722),a.actor.getX(),a.actor.getY()-4,0);f.getLastCreatedActor().anchorToScreen();f.createRecycledActor(f.getActorType(730),-32,-32,0);f.getLastCreatedActor().anchorToScreen();f.getLastCreatedActor().setX(a.actor.getXCenter()-f.getLastCreatedActor().getWidth()/ +2);f.getLastCreatedActor().setY(a.actor.getYCenter()-f.getLastCreatedActor().getHeight()/2);f.runLater(30,function(b){f.createRecycledActor(f.getActorType(804),a.actor.getX(),a.actor.getY()+36,0);f.getLastCreatedActor().anchorToScreen()},a.actor);pa.adBlocked&&a.actor.setAnimation("adblock")},this.actor);this.addListener(this.actor.whenMousedOver,q(this,this._event_PressedOn));this.addListener(this.actor.whenMousedOver,q(this,this._event_ReleasedOn))},forwardMessage:function(a){},__class__:bt});var ct= +function(a,b){f.call(this)};k["scripts.Design_430_430_AdsBehaviorUnlockScreen"]=ct;ct.__name__="scripts.Design_430_430_AdsBehaviorUnlockScreen";ct.__super__=gb;ct.prototype=u(gb.prototype,{_event_UnityAds:function(a){},_customEvent_RewardUnlockPoki:function(){f.isTransitioning()||pa.adBlocked||(f.engine.pause(),f.pauseSoundOnChannel(0),pa.rewardedBreak(function(){f.engine.unpause();f.resumeSoundOnChannel(0);h.engine.getGameAttribute("Mute Sounds")||f.playSound(f.getSound(605));h.engine.gameAttributes.h["Can RewardAd Skin"]= +!1;var a=va.get().scenes.h[21].getID(),b=0,c=0,d=0;null==d&&(d=0);null==c&&(c=0);null==b&&(b=0);var e=f.createFadeOut(.4,b<<16|c<<8|d);d=c=b=0;null==d&&(d=0);null==c&&(c=0);null==b&&(b=0);f.switchScene(a,e,f.createFadeIn(1,b<<16|c<<8|d))}))},_customEvent_RewardUnlockMobile:function(){},_customEvent_RewardUnlockCarrotsPoki:function(){f.isTransitioning()||pa.adBlocked||(f.engine.pause(),f.pauseSoundOnChannel(0),pa.rewardedBreak(function(){f.engine.unpause();f.resumeSoundOnChannel(0);h.engine.getGameAttribute("Mute Sounds")|| +f.playSound(f.getSound(605));var a=h.engine,b=50+h.engine.getGameAttribute("Currency Carrots");a.gameAttributes.h["Currency Carrots"]=b;a=0;for(b=f.getActorsOfType(f.getActorType(829));a<b.length;){var c=b[a];++a;null==c||c.dead||c.recycled||f.recycleActor(c)}a=0;for(b=f.getActorsOfType(f.getActorType(831));a<b.length;)c=b[a],++a,null==c||c.dead||c.recycled||f.recycleActor(c);a=0;for(b=f.getActorsOfType(f.getActorType(720));a<b.length;)c=b[a],++a,null==c||c.dead||c.recycled||c.shout("_customEvent_CarrotRewardCheck"); +a=0;for(b=f.getActorsOfType(f.getActorType(724));a<b.length;)c=b[a],++a,null==c||c.dead||c.recycled||(c.shout("_customEvent_scoreincrease"),c.shout("_customEvent_greentext"),c.shout("_customEvent_EnableCarrotReward"))}))},_customEvent_RewardUnlockCarrotsMobile:function(){},init:function(){this.addListener(f.engine.whenUpdated,q(this,this._event_UnityAds))},forwardMessage:function(a){},__class__:ct});var Eu=function(){};k["scripts.MyScripts"]=Eu;Eu.__name__="scripts.MyScripts";var dt=function(a,b){f.call(this); +this.nameMap.h["Temp Skin Names List"]="_TempSkinNamesList";this._TempSkinNamesList=[0]};k["scripts.SceneEvents_10"]=dt;dt.__name__="scripts.SceneEvents_10";dt.__super__=gb;dt.prototype=u(gb.prototype,{_TempSkinNamesList:null,init:function(){var a=this;f.engine.moveCamera(f.getSceneWidth()/2,f.getSceneHeight()/2);f.loopSoundOnChannel(f.getSound(627),0);md.current.meta.h.localSavePath="Poor Bunny";for(var b=this._TempSkinNamesList.length=0,c=O.__cast(h.engine.getGameAttribute("Skin Names List"),Array);b< +c.length;){var d=c[b];++b;this._TempSkinNamesList.push(d)}f.loadGame("mySave",function(b){b=h.engine.getGameAttribute("Skin Names List").length=0;for(var c=O.__cast(a._TempSkinNamesList,Array);b<c.length;){var d=c[b];++b;h.engine.getGameAttribute("Skin Names List").push(d)}b=0;for(c=h.engine.getGameAttribute("Skin Names List").length;b<c;)d=b++,S.contains(h.engine.getGameAttribute("Collected Skins List"),d)||S.contains(h.engine.getGameAttribute("Skin List"),d)||h.engine.getGameAttribute("Skin List").push(d); +f.runLater(500,function(a){h.engine.gameAttributes.h["HTML5 on Mobile"]=!1;if(/Mobi|Android/i.test(navigator.userAgent)||"MacIntel"===navigator.platform&&1<navigator.maxTouchPoints&&!window.MSStream||navigator.userAgent.match(/(iPad)/))h.engine.gameAttributes.h["HTML5 on Mobile"]=!0;a=va.get().scenes.h[12].getID();var b=0,c=0,d=0;null==d&&(d=0);null==c&&(c=0);null==b&&(b=0);var e=f.createFadeOut(0,b<<16|c<<8|d);d=c=b=0;null==d&&(d=0);null==c&&(c=0);null==b&&(b=0);f.switchScene(a,e,f.createFadeIn(.5, +b<<16|c<<8|d))},null)})},forwardMessage:function(a){},__class__:dt});var et=function(a,b){f.call(this)};k["scripts.SceneEvents_11"]=et;et.__name__="scripts.SceneEvents_11";et.__super__=gb;et.prototype=u(gb.prototype,{init:function(){},forwardMessage:function(a){},__class__:et});var ft=function(a,b){f.call(this)};k["scripts.SceneEvents_12"]=ft;ft.__name__="scripts.SceneEvents_12";ft.__super__=gb;ft.prototype=u(gb.prototype,{init:function(){f.engine.moveCamera(f.getSceneWidth()/2,144);f.runLater(30, +function(a){h.engine.getGameAttribute("Can RewardAd Skin")&&(pa.adBlocked||f.createRecycledActor(f.getActorType(812),-400,-400,2))},null)},forwardMessage:function(a){},__class__:ft});var gt=function(a,b){f.call(this)};k["scripts.SceneEvents_13"]=gt;gt.__name__="scripts.SceneEvents_13";gt.__super__=gb;gt.prototype=u(gb.prototype,{init:function(){f.engine.moveCamera(f.getSceneWidth()/2,144);h.engine.getGameAttribute("Can RewardAd Skin")&&f.createRecycledActor(f.getActorType(812),-400,-400,0)},forwardMessage:function(a){}, +__class__:gt});var ht=function(a,b){f.call(this)};k["scripts.SceneEvents_14"]=ht;ht.__name__="scripts.SceneEvents_14";ht.__super__=gb;ht.prototype=u(gb.prototype,{init:function(){f.engine.moveCamera(f.getSceneWidth()/2,144)},forwardMessage:function(a){},__class__:ht});var it=function(a,b){f.call(this)};k["scripts.SceneEvents_15"]=it;it.__name__="scripts.SceneEvents_15";it.__super__=gb;it.prototype=u(gb.prototype,{init:function(){f.engine.moveCamera(f.getSceneWidth()/2,144)},forwardMessage:function(a){}, +__class__:it});var jt=function(a,b){f.call(this)};k["scripts.SceneEvents_16"]=jt;jt.__name__="scripts.SceneEvents_16";jt.__super__=gb;jt.prototype=u(gb.prototype,{init:function(){f.engine.moveCamera(f.getSceneWidth()/2,144)},forwardMessage:function(a){},__class__:jt});var kt=function(a,b){f.call(this)};k["scripts.SceneEvents_17"]=kt;kt.__name__="scripts.SceneEvents_17";kt.__super__=gb;kt.prototype=u(gb.prototype,{init:function(){f.engine.moveCamera(f.getSceneWidth()/2,144)},forwardMessage:function(a){}, +__class__:kt});var lt=function(a,b){f.call(this)};k["scripts.SceneEvents_18"]=lt;lt.__name__="scripts.SceneEvents_18";lt.__super__=gb;lt.prototype=u(gb.prototype,{init:function(){f.engine.moveCamera(f.getSceneWidth()/2,144)},forwardMessage:function(a){},__class__:lt});var mt=function(a,b){f.call(this)};k["scripts.SceneEvents_19"]=mt;mt.__name__="scripts.SceneEvents_19";mt.__super__=gb;mt.prototype=u(gb.prototype,{init:function(){f.engine.moveCamera(f.getSceneWidth()/2,144)},forwardMessage:function(a){}, +__class__:mt});var nt=function(a,b){f.call(this)};k["scripts.SceneEvents_20"]=nt;nt.__name__="scripts.SceneEvents_20";nt.__super__=gb;nt.prototype=u(gb.prototype,{_event_Updating:function(a){if(this.wrapper.enabled){a=0;for(var b=f.getActorsOfType(f.getActorType(503));a<b.length;){var c=b[a];++a;null==c||c.dead||c.recycled||(c.sendToBack(),f.getLastCreatedActor().moveToBottom())}a=0;for(b=f.getActorsOfType(f.getActorType(490));a<b.length;)c=b[a],++a,null==c||c.dead||c.recycled||f.getLastCreatedActor().moveToBottom()}}, +_event_Keyboard:function(a,b){if(this.wrapper.enabled&&a&&!f.isTransitioning()){var c=b=a=0;null==c&&(c=0);null==b&&(b=0);null==a&&(a=0);var d=f.createFadeOut(.5,a<<16|b<<8|c);c=b=a=0;null==c&&(c=0);null==b&&(b=0);null==a&&(a=0);f.reloadCurrentScene(d,f.createFadeIn(.5,a<<16|b<<8|c))}},_customEvent_arrow:function(){var a=this;f.runLater(3E3,function(b){f.createRecycledActor(f.getActorType(490),-100,-100,0);f.getLastCreatedActor().setX(f.randomInt(80,288));a._customEvent_arrow()},null)},init:function(){f.engine.moveCamera(f.getSceneWidth()/ +2,144);this._customEvent_arrow();this.addListener(f.engine.whenUpdated,q(this,this._event_Updating));this.addListener(f.engine.whenKeyPressedEvents.getOrCreateEvent("Restart"),q(this,this._event_Keyboard))},forwardMessage:function(a){},__class__:nt});var ot=function(a,b){f.call(this)};k["scripts.SceneEvents_21"]=ot;ot.__name__="scripts.SceneEvents_21";ot.__super__=gb;ot.prototype=u(gb.prototype,{init:function(){f.engine.moveCamera(f.getSceneWidth()/2,144)},forwardMessage:function(a){},__class__:ot}); +var pt=function(a,b){f.call(this)};k["scripts.SceneEvents_22"]=pt;pt.__name__="scripts.SceneEvents_22";pt.__super__=gb;pt.prototype=u(gb.prototype,{init:function(){f.engine.moveCamera(f.getSceneWidth()/2,144)},forwardMessage:function(a){},__class__:pt});var qt=function(a,b){f.call(this)};k["scripts.SceneEvents_23"]=qt;qt.__name__="scripts.SceneEvents_23";qt.__super__=gb;qt.prototype=u(gb.prototype,{init:function(){f.engine.moveCamera(f.getSceneWidth()/2,144)},forwardMessage:function(a){},__class__:qt}); +var rt=function(a,b){f.call(this)};k["scripts.SceneEvents_24"]=rt;rt.__name__="scripts.SceneEvents_24";rt.__super__=gb;rt.prototype=u(gb.prototype,{init:function(){f.engine.moveCamera(f.getSceneWidth()/2,144);f.runLater(2E3,function(a){f.createRecycledActor(f.getActorType(488),176,176,2);f.createRecycledActor(f.getActorType(565),176,176,2)},null)},forwardMessage:function(a){},__class__:rt});var st=function(a,b){f.call(this)};k["scripts.SceneEvents_9"]=st;st.__name__="scripts.SceneEvents_9";st.__super__= +gb;st.prototype=u(gb.prototype,{init:function(){},forwardMessage:function(a){},__class__:st});var tt=function(){};k["scripts.SplashBox"]=tt;tt.__name__="scripts.SplashBox";tt.prototype={__class__:tt};var tk=function(){this.onComplete=new Fd;var a=this;ta.call(this);Da.get_current().addChild(this);this.locked=!1;var b=h.SCALE,c="";this.background=new ta;this.background.get_graphics().beginFill(-15592942,1);this.background.get_graphics().drawRect(0,0,this.getWidth(),this.getHeight());this.addChild(this.background); +S.getConfigBitmap("config/preloader-bg.png").onComplete(function(b){a.addChildAt(b,a.getChildIndex(a.background)+1)});var d=3*b;this.barWidth=b*h.screenScaleX*120|0;this.barHeight=b*h.screenScaleY*8|0;var e=0*b;b*=128;c=this.getWidth()/2-this.barWidth/2;var f=this.getHeight()/2-this.barHeight/2;this.barBorder=new ta;this.barBorder.get_graphics().beginFill(-16181980,1);this.barBorder.get_graphics().drawRect(-d,-d,this.barWidth+2*d,this.barHeight+2*d);this.barBorder.set_x(c+e);this.barBorder.set_y(f+ +b);this.addChild(this.barBorder);this.barBackground=new ta;this.barBackground.get_graphics().beginFill(-13408513,1);this.barBackground.get_graphics().drawRect(0,0,this.barWidth,this.barHeight);this.barBackground.set_x(c+e);this.barBackground.set_y(f+b);this.barBackground.set_scaleX(1);this.addChild(this.barBackground);this.bar=new ta;this.bar.get_graphics().beginFill(-1,1);this.bar.get_graphics().drawRect(0,0,this.barWidth,this.barHeight);d=new fa(0,0,0,this.barHeight);this.bar.set_scrollRect(d); +this.bar.set_x(c+e);this.bar.set_y(f+b);this.addChild(this.bar);""!=this.getURL()&&this.addEventListener("mouseDown",q(this,this.onMouseDown),!1,2);c=this.getLockURL();if(this.isSiteLocked()&&null!=c&&""!=c){d=!1;e=Da.get_current().get_loaderInfo().url;if(null==e)d=!0;else if(0>e.indexOf("http://")&&0>e.indexOf("https://"))d=!0;else if(0<e.indexOf("stencyl.com")||0<e.indexOf("localhost"))d=!0;if(!d){b=c.split(",");for(c=0;c<b.length&&(d=b[c],++c,d=J.trim(d),0<=d.indexOf("*")||J.startsWith(d,"^")&& +J.endsWith(d,"$")?(d=new Z(d,""),d=d.match(e)):d=0<=e.indexOf(d),!d););d||this.showLockScreen(b[0])}}};k["scripts.StencylPreloader"]=tk;tk.__name__="scripts.StencylPreloader";tk.__super__=ta;tk.prototype=u(ta.prototype,{barBorder:null,bar:null,barBackground:null,background:null,barWidth:null,barHeight:null,locked:null,onComplete:null,adPlaying:null,ready:null,getLockURL:function(){return""},isSiteLocked:function(){return!1},showLockScreen:function(a){this.locked=!0;S.removeAllChildren(this);var b= +new Vb(new Ja(this.getWidth()|0,this.getHeight()|0,!1,5658198));this.addChild(b);var c=new ff;c.set_width(this.getWidth()-16);c.set_height(this.getHeight()-16);c.set_x(8);c.set_y(8);c.set_textColor(16777215);c.set_multiline(!0);c.set_wordWrap(!0);c.set_text("Hi there! It looks like somebody copied this game without my permission. Just click anywhere, or copy-paste this URL into your browser.\n\n"+a+"\n\nThanks, and have fun!");a=new tg(null,25);c.setTextFormat(a);this.addChild(c);this.removeEventListener("mouseDown", +q(this,this.onMouseDown));c.addEventListener("click",q(this,this.goToLockURL));b.addEventListener("click",q(this,this.goToLockURL))},getURL:function(){return""},goToLockURL:function(a){Da.getURL(new Pg(this.getLockURL().split(",")[0]),"_parent")},onMouseDown:function(a){this.removeEventListener("mouseDown",q(this,this.onMouseDown));Da.getURL(new Pg(this.getURL()),"_blank")},getBackgroundColor:function(){return 3368601},getWidth:function(){return da.windowWidth},getHeight:function(){return da.windowHeight}, +onUpdate:function(a,b){Da.get_current().get_loaderInfo().__update(a,b);null!=this.bar&&(a=new fa(0,0,a/b*this.barWidth,this.barHeight),this.bar.set_scrollRect(a))},onLoaded:function(){Da.get_current().get_loaderInfo().__complete();this.ready=!0;this.adPlaying||this.unload()},adFinished:function(){this.adPlaying=!1;this.ready&&this.unload()},unload:function(){new tt;this.isSiteLocked()&&this.locked||(this.parent==Da.get_current()&&Da.get_current().removeChild(this),Da.get_current().stage.set_focus(null), +this.onComplete.dispatch())},__class__:tk});var Fb=function(){};k["tweenxcore.Easing"]=Fb;Fb.__name__="tweenxcore.Easing";Fb.linear=function(a){return a};Fb.sineIn=function(a){return 0==a?0:1==a?1:1-Math.cos(1.5707963267948966*a)};Fb.sineOut=function(a){return 0==a?0:1==a?1:Math.sin(1.5707963267948966*a)};Fb.sineInOut=function(a){return 0==a?0:1==a?1:-.5*(Math.cos(3.141592653589793*a)-1)};Fb.sineOutIn=function(a){return 0==a?0:1==a?1:.5>a?.5*Math.sin(3.141592653589793*a):-.5*Math.cos(1.5707963267948966* +(2*a-1))+1};Fb.quadIn=function(a){return a*a};Fb.quadOut=function(a){return-a*(a-2)};Fb.quadInOut=function(a){return.5>a?2*a*a:-2*--a*a+1};Fb.quadOutIn=function(a){if(.5>a)return-.5*(a*=2)*(a-2);a=2*a-1;return.5*a*a+.5};Fb.cubicIn=function(a){return a*a*a};Fb.cubicOut=function(a){return--a*a*a+1};Fb.cubicInOut=function(a){return 1>(a*=2)?.5*a*a*a:.5*((a-=2)*a*a+2)};Fb.cubicOutIn=function(a){a=2*a-1;return.5*(a*a*a+1)};Fb.quartIn=function(a){return(a*=a)*a};Fb.quartOut=function(a){a*=--a;return 1- +a*a};Fb.quartInOut=function(a){if(1>(a*=2))return.5*(a*=a)*a;a*=a-=2;return-.5*(a*a-2)};Fb.quartOutIn=function(a){if(.5>a)return a=2*a-1,-.5*(a*=a)*a+.5;a=2*a-1;return.5*(a*=a)*a+.5};Fb.quintIn=function(a){return a*(a*=a)*a};Fb.quintOut=function(a){return--a*(a*=a)*a+1};Fb.quintInOut=function(a){return 1>(a*=2)?.5*a*(a*=a)*a:.5*(a-=2)*(a*=a)*a+1};Fb.quintOutIn=function(a){a=2*a-1;return.5*(a*(a*=a)*a+1)};Fb.expoIn=function(a){return 0==a?0:Math.exp(6.931471805599453*(a-1))};Fb.expoOut=function(a){return 1== +a?1:1-Math.exp(-6.931471805599453*a)};Fb.expoInOut=function(a){return 0==a?0:1==a?1:1>(a*=2)?.5*Math.exp(6.931471805599453*(a-1)):.5*(2-Math.exp(-6.931471805599453*(a-1)))};Fb.expoOutIn=function(a){return.5>a?.5*(1-Math.exp(-13.862943611198906*a)):.5==a?.5:.5*(Math.exp(13.862943611198906*(a-1))+1)};Fb.circIn=function(a){return-1>a||1<a?0:1-Math.sqrt(1-a*a)};Fb.circOut=function(a){return 0>a||2<a?0:Math.sqrt(a*(2-a))};Fb.circInOut=function(a){return-.5>a||1.5<a?.5:1>(a*=2)?-.5*(Math.sqrt(1-a*a)-1): +.5*(Math.sqrt(1-(a-=2)*a)+1)};Fb.circOutIn=function(a){if(0>a)return 0;if(1<a)return 1;if(.5>a)return a=2*a-1,.5*Math.sqrt(1-a*a);a=2*a-1;return-.5*(Math.sqrt(1-a*a)-1-1)};Fb.bounceIn=function(a){a=1-a;return.36363636363636365>a?1-7.5625*a*a:.7272727272727273>a?1-(7.5625*(a-=.5454545454545454)*a+.75):.9090909090909091>a?1-(7.5625*(a-=.8181818181818182)*a+.9375):1-(7.5625*(a-=.9545454545454546)*a+.984375)};Fb.bounceOut=function(a){return.36363636363636365>a?7.5625*a*a:.7272727272727273>a?7.5625*(a-= +.5454545454545454)*a+.75:.9090909090909091>a?7.5625*(a-=.8181818181818182)*a+.9375:7.5625*(a-=.9545454545454546)*a+.984375};Fb.bounceInOut=function(a){if(.5>a)return a=1-2*a,.36363636363636365>a?.5*(1-7.5625*a*a):.7272727272727273>a?.5*(1-(7.5625*(a-=.5454545454545454)*a+.75)):.9090909090909091>a?.5*(1-(7.5625*(a-=.8181818181818182)*a+.9375)):.5*(1-(7.5625*(a-=.9545454545454546)*a+.984375));a=2*a-1;return.36363636363636365>a?7.5625*a*a*.5+.5:.7272727272727273>a?.5*(7.5625*(a-=.5454545454545454)*a+ +.75)+.5:.9090909090909091>a?.5*(7.5625*(a-=.8181818181818182)*a+.9375)+.5:.5*(7.5625*(a-=.9545454545454546)*a+.984375)+.5};Fb.bounceOutIn=function(a){if(.5>a)return.36363636363636365>(a*=2)?3.78125*a*a:.7272727272727273>a?.5*(7.5625*(a-=.5454545454545454)*a+.75):.9090909090909091>a?.5*(7.5625*(a-=.8181818181818182)*a+.9375):.5*(7.5625*(a-=.9545454545454546)*a+.984375);a=1-(2*a-1);return.36363636363636365>a?.5-3.78125*a*a+.5:.7272727272727273>a?.5-.5*(7.5625*(a-=.5454545454545454)*a+.75)+.5:.9090909090909091> +a?.5-.5*(7.5625*(a-=.8181818181818182)*a+.9375)+.5:.5-.5*(7.5625*(a-=.9545454545454546)*a+.984375)+.5};Fb.backIn=function(a){return 0==a?0:1==a?1:a*a*(2.70158*a-1.70158)};Fb.backOut=function(a){return 0==a?0:1==a?1:--a*a*(2.70158*a+1.70158)+1};Fb.backInOut=function(a){return 0==a?0:1==a?1:1>(a*=2)?.5*a*a*(3.5949095*a-2.5949095):.5*((a-=2)*a*(3.5949095*a+2.5949095)+2)};Fb.backOutIn=function(a){if(0==a)return 0;if(1==a)return 1;if(.5>a)return a=2*a-1,.5*(a*a*(2.70158*a+1.70158)+1);a=2*a-1;return.5* +a*a*(2.70158*a-1.70158)+.5};Fb.elasticIn=function(a){return 0==a?0:1==a?1:-(Math.exp(6.931471805599453*--a)*Math.sin(6.283185307179586*(.001*a-7.5E-5)/3E-4))};Fb.elasticOut=function(a){return 0==a?0:1==a?1:Math.exp(-6.931471805599453*a)*Math.sin(6.283185307179586*(.001*a-7.5E-5)/3E-4)+1};Fb.elasticInOut=function(a){return 0==a?0:1==a?1:1>(a*=2)?-.5*Math.exp(6.931471805599453*--a)*Math.sin(6.283185307179586*(.001*a-7.5E-5)/3E-4):Math.exp(-6.931471805599453*--a)*Math.sin(6.283185307179586*(.001*a-7.5E-5)/ +3E-4)*.5+1};Fb.elasticOutIn=function(a){if(.5>a)return 0==(a*=2)?0:.5*Math.exp(-6.931471805599453*a)*Math.sin(6.283185307179586*(.001*a-7.5E-5)/3E-4)+.5;if(.5==a)return.5;if(1==a)return 1;a=2*a-1;return-(.5*Math.exp(6.931471805599453*--a)*Math.sin(6.283185307179586*(.001*a-7.5E-5)/3E-4))+.5};Fb.warpOut=function(a){return 0>=a?0:1};Fb.warpIn=function(a){return 1>a?0:1};Fb.warpInOut=function(a){return.5>a?0:1};Fb.warpOutIn=function(a){return 0>=a?0:1>a?.5:1};var yc=function(){};k["tweenxcore.FloatTools"]= +yc;yc.__name__="tweenxcore.FloatTools";yc.revert=function(a){return 1-a};yc.clamp=function(a,b,c){null==c&&(c=1);null==b&&(b=0);return a<=b?b:c<=a?c:a};yc.lerp=function(a,b,c){return b*(1-a)+c*a};yc.inverseLerp=function(a,b,c){return(a-b)/(c-b)};yc.repeat=function(a,b,c){null==c&&(c=1);null==b&&(b=0);a=(a-b)/(c-b);return a-Math.floor(a)};yc.shake=function(a,b,c){null==b&&(b=0);null==c&&(c=Math.random);c=c();return b+(-a*(1-c)+a*c)};yc.spread=function(a,b){return-b*(1-a)+b*a};yc.sinByRate=function(a){return Math.sin(2* +a*Math.PI)};yc.cosByRate=function(a){return Math.cos(2*a*Math.PI)};yc.yoyo=function(a,b){return b(2*(.5>a?a:1-a))};yc.zigzag=function(a,b){return.5>a?b(2*a):1-b(2*(a-.5))};yc.mixEasing=function(a,b,c,d){null==d&&(d=.5);return b(a)*(1-d)+c(a)*d};yc.crossfadeEasing=function(a,b,c,d,e,f){null==f&&(f=1);null==e&&(e=0);d=d(a);e=e*(1-d)+f*d;return b(a)*(1-e)+c(a)*e};yc.connectEasing=function(a,b,c,d,e){null==e&&(e=.5);null==d&&(d=.5);if(a<d)return a=b(a/d),0*(1-a)+e*a;a=c((a-d)/(1-d));return e*(1-a)+a}; +yc.oneTwoEasing=function(a,b,c,d){null==d&&(d=.5);return a<d?b(a/d):c((a-d)/(1-d))};yc.binarySearch=function(a,b,c){null==c&&(c=0);var d=0,e=a.length;if(0==c)for(;;){c=((e-d)/2|0)+d;var f=a[c];f<=b?d=c+1:e=c;if(d==e)break}else for(;c=((e-d)/2|0)+d,f=a[c],f<b?d=c+1:e=c,d!=e;);return d};yc.polyline=function(a,b){if(2>b.length)throw R.thrown("points length must be more than 2");var c=b.length-1;a*=c;var d=0;--c;null==c&&(c=1);null==d&&(d=0);c=Math.floor(a<=d?d:c<=a?c:a);a-=c;return b[c]*(1-a)+b[c+1]* +a};yc.bezier2=function(a,b,c,d){return(b*(1-a)+c*a)*(1-a)+(c*(1-a)+d*a)*a};yc.bezier3=function(a,b,c,d,e){var f=c*(1-a)+d*a;return((b*(1-a)+c*a)*(1-a)+f*a)*(1-a)+(f*(1-a)+(d*(1-a)+e*a)*a)*a};yc.bezier=function(a,b){if(2>b.length)throw R.thrown("points length must be more than 2");if(2==b.length)return b[0]*(1-a)+b[1]*a;if(3==b.length){var c=b[1];return(b[0]*(1-a)+c*a)*(1-a)+(c*(1-a)+b[2]*a)*a}return yc._bezier(a,b)};yc._bezier=function(a,b){if(4==b.length){var c=b[1],d=b[2],e=c*(1-a)+d*a;return((b[0]* +(1-a)+c*a)*(1-a)+e*a)*(1-a)+(e*(1-a)+(d*(1-a)+b[3]*a)*a)*a}c=[];d=0;for(e=b.length-1;d<e;){var f=d++;c.push(b[f]*(1-a)+b[f+1]*a)}return yc._bezier(a,c)};yc.uniformQuadraticBSpline=function(a,b){if(2>b.length)throw R.thrown("points length must be more than 2");if(2==b.length)return b[0]*(1-a)+b[1]*a;var c=b.length-2;a*=c;var d=0;--c;null==c&&(c=1);null==d&&(d=0);c=Math.floor(a<=d?d:c<=a?c:a);a-=c;d=b[c];var e=b[c+1];return a*a*(d/2-e+b[c+2]/2)+a*(-d+e)+d/2+e/2};yc.frameToSecond=function(a,b){return a/ +b};yc.secondToFrame=function(a,b){return a*b};yc.degreeToRate=function(a){return a/360};yc.rateToDegree=function(a){return 360*a};yc.radianToRate=function(a){return a/(2*Math.PI)};yc.rateToRadian=function(a){return 2*a*Math.PI};yc.millisecondToBeat=function(a,b){return a*b/6E4};yc.beatToMillisecond=function(a,b){return 6E4*a/b};var rk=function(){};k["tweenxcore.PointTools"]=rk;rk.__name__="tweenxcore.PointTools";rk.polyline=function(a,b,c){var d=[],e=[];for(c=M(c);c.hasNext();){var f=c.next();d.push(f.x); +e.push(f.y)}if(2>d.length)throw R.thrown("points length must be more than 2");var h=d.length-1;c=b*h;f=0;--h;null==h&&(h=1);null==f&&(f=0);f=Math.floor(c<=f?f:h<=c?h:c);c-=f;d=d[f]*(1-c)+d[f+1]*c;a.x=d;if(2>e.length)throw R.thrown("points length must be more than 2");h=e.length-1;c=b*h;f=0;--h;null==h&&(h=1);null==f&&(f=0);f=Math.floor(c<=f?f:h<=c?h:c);c-=f;d=e[f]*(1-c)+e[f+1]*c;a.y=d};rk.bezier2=function(a,b,c,d,e){e=d.x;a.x=(c.x*(1-b)+e*b)*(1-b)+(e*(1-b)+c.x*b)*b;e=d.y;a.y=(c.y*(1-b)+e*b)*(1-b)+ +(e*(1-b)+c.y*b)*b};rk.bezier3=function(a,b,c,d,e,f){f=d.x;var g=e.x,h=f*(1-b)+g*b;a.x=((c.x*(1-b)+f*b)*(1-b)+h*b)*(1-b)+(h*(1-b)+(g*(1-b)+c.x*b)*b)*b;f=d.y;g=e.y;h=f*(1-b)+g*b;a.y=((c.y*(1-b)+f*b)*(1-b)+h*b)*(1-b)+(h*(1-b)+(g*(1-b)+c.y*b)*b)*b};rk.bezier=function(a,b,c){var d=[],e=[];for(c=M(c);c.hasNext();){var f=c.next();d.push(f.x);e.push(f.y)}if(2>d.length)throw R.thrown("points length must be more than 2");2==d.length?d=d[0]*(1-b)+d[1]*b:3==d.length?(c=d[1],d=(d[0]*(1-b)+c*b)*(1-b)+(c*(1-b)+ +d[2]*b)*b):d=yc._bezier(b,d);a.x=d;if(2>e.length)throw R.thrown("points length must be more than 2");2==e.length?d=e[0]*(1-b)+e[1]*b:3==e.length?(c=e[1],d=(e[0]*(1-b)+c*b)*(1-b)+(c*(1-b)+e[2]*b)*b):d=yc._bezier(b,e);a.y=d};rk.uniformQuadraticBSpline=function(a,b,c){for(var d=[],e=[],f=M(c);f.hasNext();)c=f.next(),d.push(c.x),e.push(c.y);if(2>d.length)throw R.thrown("points length must be more than 2");if(2==d.length)d=d[0]*(1-b)+d[1]*b;else{var h=d.length-2;c=b*h;f=0;--h;null==h&&(h=1);null==f&&(f= +0);f=Math.floor(c<=f?f:h<=c?h:c);h=c-f;var l=d[f];c=d[f+1];d=d[f+2];d=h*h*(l/2-c+d/2)+h*(-l+c)+l/2+c/2}a.x=d;if(2>e.length)throw R.thrown("points length must be more than 2");2==e.length?d=e[0]*(1-b)+e[1]*b:(h=e.length-2,c=b*h,f=0,--h,null==h&&(h=1),null==f&&(f=0),f=Math.floor(c<=f?f:h<=c?h:c),h=c-f,l=e[f],c=e[f+1],d=e[f+2],d=h*h*(l/2-c+d/2)+h*(-l+c)+l/2+c/2);a.y=d};var qu=function(){};k["tweenxcore.MatrixTools"]=qu;qu.__name__="tweenxcore.MatrixTools";qu.createSimilarityTransform=function(a,b,c, +d,e){d-=b;var f=e-c;e=Math.atan2(f,d);d=Math.sqrt(d*d+f*f);a.a=d*Math.cos(e);a.b=d*Math.sin(e);a.c=-d*Math.sin(e);a.d=d*Math.cos(e);a.tx=b;a.ty=c};Q.$haxeUID|=0;"undefined"!=typeof performance&&"function"==typeof performance.now&&(F.now=performance.now.bind(performance));k.Math=Math;null==String.fromCodePoint&&(String.fromCodePoint=function(a){return 65536>a?String.fromCharCode(a):String.fromCharCode((a>>10)+55232)+String.fromCharCode((a&1023)+56320)});String.prototype.__class__=k.String=String;String.__name__= +"String";k.Array=Array;Array.__name__="Array";Date.prototype.__class__=k.Date=Date;Date.__name__="Date";var ui={},Gu={},gu=Number,hu=Boolean,yt={},xu={};ac.count=0;uh.content=[{name:"config_game_config_json",data:"ewoJImFudGlhbGlhcyI6IGZhbHNlLAoJImJ1aWxkQ29uZmlnIjogeyJkZWJ1ZyI6dHJ1ZSwiZXh0cmEiOltdLCJwbGF0Zm9ybSI6Imh0bWw1In0sCgkiZGVidWdEcmF3IjogZmFsc2UsCgkiZGlzcG9zZUltYWdlcyI6IGZhbHNlLAoJImZvcmNlSGlSZXNBc3NldHMiOiB0cnVlLAoJImluaXRTY2VuZUlEIjogMTAsCgkia2V5cyI6IHsKCQkiTGVmdCI6IFsiTEVGVCJdLAoJCSJSaWdodCI6IFsiUklHSFQiXSwKCQkiVXAiOiBbIlVQIl0sCgkJIlNwYWNlIjogWyJTUEFDRSJdLAoJCSJSZXN0YXJ0IjogWyJSIl0sCgkJIkVzYyI6IFsiRVNDQVBFIl0sCgkJIkVudGVyIjogWyJFTlRFUiJdLAoJCSJEb3duIjogWyJET1dOIl0sCgkJIkEiOiBbIkEiXSwKCQkiVyI6IFsiVyJdLAoJCSJEIjogWyJEIl0sCgkJIlMiOiBbIlMiXSwKCQkiMCI6IFsiTlVNQkVSXzAiXQoJCQoJfSwKCSJwaXhlbHNuYXAiOiBmYWxzZSwKCSJwaHlzaWNzTW9kZSI6ICJOT1JNQUxfUEhZU0lDUyIsCgkicmVsZWFzZU1vZGUiOiB0cnVlLAoJInNob3dDb25zb2xlIjogZmFsc2UsCgkic3RhZ2VXaWR0aCI6IDI4NCwKCSJzdGFnZUhlaWdodCI6IDE2MCwKCSJ0b29sc2V0SW50ZXJmYWNlSG9zdCI6ICJsb2NhbGhvc3QiLAoJInRvb2xzZXRJbnRlcmZhY2VQb3J0IjogLTEsCgkicHJvamVjdE5hbWUiOiAiUG9vciBCdW5ueSIsCgkidXNlR2NpTG9nZ2luZyI6IGZhbHNlLAoJCgkiY29uZmlnLW1vYmlsZSI6IHsKCQkiYWRQb3NpdGlvbkJvdHRvbSI6IHRydWUsCgkJImF1dG9yb3RhdGUiOiB0cnVlLAoJCSJnYW1lU2NhbGUiOiAxLAoJCSJsYW5kc2NhcGUiOiB0cnVlLAoJCSJ0ZXN0QWRzIjogZmFsc2UsCgkJInRvb2xzZXRJbnRlcmZhY2VIb3N0IjogIjE5Mi4xNjguMC4yIiwKCgkJImNvbmZpZy1hbmRyb2lkIjogewoJCQkiZGlzYWJsZUJhY2tCdXR0b24iOiBmYWxzZSwKCQkJInNjYWxlTW9kZSI6ICJTQ0FMRV9UT19GSVRfRlVMTFNDUkVFTiIsCgkJCSJzY2FsZXMiOiBbIjF4Il0KCQl9LAoJCQoJCSJjb25maWctaW9zIjogewoJCQkic2NhbGVNb2RlIjogIlNDQUxFX1RPX0ZJVF9GVUxMU0NSRUVOIiwKCQkJInNjYWxlcyI6IFsiMXgiXQoJCX0KCX0sCgkKCSJjb25maWctZGVza3RvcCI6IHsKCQkiZ2FtZVNjYWxlIjogMy4wLAoJCSJzY2FsZU1vZGUiOiAiU0NBTEVfVE9fRklUX0xFVFRFUkJPWCIsCgkJInNjYWxlcyI6IFsiMXgiXSwKCQkic3RhcnRJbkZ1bGxTY3JlZW4iOiBmYWxzZQoJfSwKCQoJImNvbmZpZy13ZWIiOiB7CgkJImdhbWVTY2FsZSI6IDMuMCwKCQkic3RhcnRJbkZ1bGxTY3JlZW4iOiBmYWxzZSwKCQkic2NhbGVzIjogWyIxeCJdLAoKCQkiY29uZmlnLWZsYXNoIjogewoJCQkic2NhbGVNb2RlIjogIlNDQUxFX1RPX0ZJVF9MRVRURVJCT1giCgkJfSwKCQkKCQkiY29uZmlnLWh0bWw1IjogewoJCQkidG9vbHNldEludGVyZmFjZUhvc3QiOiAiMTkyLjE2OC4wLjIiCgkJfQoJfQp9"}, +{name:"config_preloadpaths_txt",data:"YXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS01MTItMC5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS01MTItMS5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS01MTYtMC5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS01MTYtMS5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS01MTgtMC5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS01MTgtMS5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS01MjAtMC5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS01MjAtMS5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS01MjItMC5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS01MjItMS5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS01MjYtMi5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS01MjgtMC5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS01MzAtMC5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS01MzAtMS5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS01MzQtMC5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS01MzgtMC5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS01NDAtMC5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS01NDItMC5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS01NDQtMC5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3RpbGVzZXQtNTQ2LnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTU1MC0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTU1MC0xLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTU1Mi0wLnBuZwphc3NldHMvc2Z4L3NvdW5kLTU1My5vZ2cKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFLzU1NC5TT1VORF9FWFQKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS01NTYtMC5wbmcKYXNzZXRzL3NmeC9zb3VuZC01NTcub2dnCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNTU5LTAucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNTU5LTEucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNTU5LTIucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNTU5LTMucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNTYxLTAucG5nCmFzc2V0cy9zZngvc291bmQtNTYyLm9nZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTU2Ni0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTU2Ni0yLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTU2OS0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTU2OS0xLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTU3MS0xLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTU3My0wLnBuZwphc3NldHMvc2Z4L3NvdW5kLTU3NC5vZ2cKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS01NzYtMC5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS01NzYtMS5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS01NzgtMC5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS01NzgtMS5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS01NzgtMi5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL2ZvbnQtNTc5LmZudAphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0UvZm9udC01NzkucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9mb250LTU4MS5mbnQKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL2ZvbnQtNTgxLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTU4My0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTU4NS0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTU4Ny0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTU4OS0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTU4OS0xLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTU5MS0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTU5MS0xLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTU5My0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTU5My0xLnBuZwphc3NldHMvc2Z4L3NvdW5kLTU5NC5vZ2cKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS01OTYtMC5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS01OTYtMS5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS01OTgtMC5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS02MDAtMC5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS02MDAtMS5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS02MDItMC5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS02MDItMS5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS02MDQtMS5wbmcKYXNzZXRzL3NmeC9zb3VuZC02MDUub2dnCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNjA3LTAucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNjA3LTEucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNjA3LTIucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNjA3LTMucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNjA5LTAucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNjA5LTEucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNjA5LTIucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNjA5LTMucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNjExLTAucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNjExLTEucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNjExLTIucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNjExLTMucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNjExLTQucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNjExLTUucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNjEzLTAucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNjEzLTEucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNjEzLTIucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNjEzLTMucG5nCmFzc2V0cy9zZngvc291bmQtNjE0Lm9nZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTYyMi0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTYyMi0xLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTYyNC0wLnBuZwphc3NldHMvc2Z4L3NvdW5kLTYyNS5vZ2cKYXNzZXRzL3NmeC9zb3VuZC02MjYub2dnCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS82MjcuU09VTkRfRVhUCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNjI5LTAucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNjUzLTAucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNjUzLTEucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNjUzLTIucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNjUzLTMucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNjUzLTgucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNjUzLTkucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNjUzLTEyLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTY1My0xMy5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS02NTMtMTQucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNjUzLTE1LnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTY1NS0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTY1Ny0xLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTY1OS0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTY1OS0xLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTY2MS0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTY2MS0xLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTY2My0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTY2My0xLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTY2NS0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTY2NS0xLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTY2OS0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTY2OS0xLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTY3MS0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTY3MS0xLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTY3My0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTY3My0xLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTY3NS0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTY3Ny0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTY3OS0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTY3OS0xLnBuZwphc3NldHMvc2Z4L3NvdW5kLTY4MC5vZ2cKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS02ODItMC5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS02ODItMS5wbmcKYXNzZXRzL3NmeC9zb3VuZC02ODMub2dnCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNjg1LTAucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNjg3LTAucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNjg5LTAucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNjkxLTAucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNjkxLTEucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNjkxLTIucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNjkzLTAucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNjkzLTEucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNjk1LTAucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNjk5LTAucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNzAzLTAucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNzAzLTEucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNzAzLTIucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNzA1LTAucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNzA1LTEucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNzA1LTIucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNzA1LTMucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNzA1LTQucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNzA1LTUucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNzA1LTYucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNzA1LTcucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNzA1LTgucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNzA1LTkucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNzA1LTEwLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTcwNS0xMS5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS03MDUtMTIucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNzA1LTEzLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTcwNS0xNC5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS03MDUtMTUucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNzA1LTE2LnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTcwNS0xNy5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS03MDUtMTgucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNzA1LTE5LnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTcwNS0yMC5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS03MDUtMjEucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNzA1LTIyLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTcwNS0yMy5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS03MDUtMjQucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNzA1LTI1LnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTcwNS0yNi5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS03MDUtMjcucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNzA1LTI4LnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTcwNS0yOS5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS03MDUtMzAucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNzA1LTMxLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTcwNS0zMi5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS03MDUtMzMucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNzA1LTM0LnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTcwNS0zNS5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS03MDUtMzYucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNzA1LTM3LnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTcwNS0zOC5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS03MDUtMzkucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNzA1LTQwLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTcwNS00MS5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS03MDUtNDIucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNzA1LTQzLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTcwNS00NC5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS03MDUtNDUucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNzA1LTQ2LnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTcwNS00Ny5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS03MDUtNDgucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNzA1LTQ5LnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTcwNS01MC5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS03MDUtNTEucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNzA1LTUyLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTcwNS01My5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS03MDUtNTQucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNzA1LTU1LnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTcwNS01Ni5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS03MDUtNTcucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNzA1LTU4LnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTcwNS01OS5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS03MDUtNjAucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNzA1LTYxLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTcwNS02Mi5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS03MDUtNjMucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNzA1LTY0LnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTcwNS02NS5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS03MDUtNjYucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNzA1LTY3LnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTcwNS02OC5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS03MDUtNjkucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNzA1LTcwLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTcwNS03MS5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS03MDUtNzIucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNzA1LTczLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTcwNS03NC5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS03MDUtNzUucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNzA1LTc2LnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTcwNS03Ny5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS03MDUtNzgucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNzA1LTc5LnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTcwNS04MC5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS03MDUtODEucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNzA1LTgzLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTcwNS04NC5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS03MDUtODUucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNzA1LTg2LnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTcwNS04Ny5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS03MDUtODgucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNzA1LTkwLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTcwNS05MS5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS03MDUtOTIucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNzA1LTkzLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTcwNS05NC5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS03MDUtOTUucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNzA1LTk2LnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTcwNS05Ny5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS03MDUtOTgucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNzA1LTk5LnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTcwNS0xMDAucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNzA1LTEwMS5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS03MDUtMTAzLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTcwNS0xMDQucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNzA1LTEwNS5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS03MDUtMTA2LnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTcwNS0xMDcucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNzA1LTEwOC5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS03MDUtMTA5LnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTcwNS0xMTAucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNzA3LTAucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNzA5LTAucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNzExLTAucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNzExLTEucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNzEzLTAucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNzEzLTEucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNzE1LTAucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNzE1LTEucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNzE3LTAucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNzE3LTEucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNzE3LTIucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNzE3LTMucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNzE5LTAucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNzE5LTEucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNzE5LTIucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNzE5LTMucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNzE5LTQucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNzE5LTUucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNzE5LTYucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNzIxLTAucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNzIxLTEucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNzIxLTIucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNzIzLTAucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNzIzLTEucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNzI1LTMucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNzI1LTQucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9mb250LTcyOS5mbnQKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL2ZvbnQtNzI5LnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTczMS0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTczMy0wLnBuZwphc3NldHMvc2Z4L3NvdW5kLTczNC5vZ2cKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL2ZvbnQtNzM1LmZudAphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0UvZm9udC03MzUucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNzM3LTAucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNzM5LTAucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNzQxLTAucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNzQzLTAucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNzQzLTEucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNzQ1LTAucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNzQ3LTAucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNzQ5LTAucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNzUxLTAucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNzUzLTEucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNzUzLTIucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNzU1LTEucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNzU1LTIucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNzU1LTMucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNzU1LTQucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNzU1LTUucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNzU3LTAucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNzU5LTQucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNzU5LTUucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNzU5LTYucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNzU5LTcucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNzYxLTAucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNzYzLTAucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNzYzLTEucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNzY1LTAucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9mb250LTc2Ni5mbnQKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL2ZvbnQtNzY2LnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTc2OC0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTc2OC0xLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTc3MC0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTc3Mi0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTc3Mi0xLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTc3Mi0yLnBuZwphc3NldHMvc2Z4L3NvdW5kLTI2MS5vZ2cKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS03NzYtMC5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS03NzgtMC5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS03ODAtMC5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS03ODAtMS5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS03ODItMC5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS03ODItMS5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS03ODQtMC5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS03ODQtMS5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS03OTAtMC5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS03OTItMC5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS03OTItMS5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS03OTItMi5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS03OTItMy5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS03OTQtMC5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS03OTQtMS5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS03OTQtMi5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS03OTQtMy5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS03OTYtMC5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS03OTYtMS5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS03OTgtMC5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS04MDAtMC5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS04MDUtMS5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS04MDUtMi5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS04MDUtMy5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS04MDctMC5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS04MDctMS5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS04MDktMC5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS04MDktMS5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS04MDktMi5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS04MDktMy5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS04MTEtMC5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS04MTEtMS5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS04MTEtMi5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS04MTEtNC5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS04MTEtNS5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS04MTEtNi5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS04MTMtMC5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS04MTMtMS5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS04MTMtMi5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS04MTMtMy5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS04MTUtMC5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS04MTUtMS5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS04MTctMC5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS04MTctMS5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL2ZvbnQtODE4LmZudAphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0UvZm9udC04MTgucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtODIwLTAucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtODIwLTEucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtODIyLTAucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtODIyLTEucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtODIyLTIucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtODIyLTMucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtODIyLTQucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtODI0LTAucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtODI0LTEucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtODI2LTAucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtODI2LTEucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtODMwLTAucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtODMwLTEucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtODMwLTIucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtODMwLTMucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtODMwLTQucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtODMyLTEucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtODMyLTIucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtODM0LTAucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNDgwLTAucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNDgwLTEucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNDgwLTIucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNDgwLTMucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNDgwLTgucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNDgwLTkucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNDgwLTEyLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTQ4MC0xMy5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS00ODAtMTQucG5nCmFzc2V0cy9ncmFwaGljcy9JTUdfQkFTRS9zcHJpdGUtNDgwLTE1LnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTQ4NS0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTQ4Ny0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTQ4OS0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTQ4OS0yLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTQ5MS0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTQ5MS0xLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTQ5MS0yLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTQ5MS0zLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTQ5NS0wLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTQ5NS0xLnBuZwphc3NldHMvZ3JhcGhpY3MvSU1HX0JBU0Uvc3ByaXRlLTQ5NS0yLnBuZwphc3NldHMvc2Z4L3NvdW5kLTQ5Ni5vZ2cKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS00OTgtMC5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS00OTgtMS5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS00OTgtMi5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS00OTgtMy5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS01MDAtMC5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS01MDAtMS5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS01MDItMC5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS01MDQtMC5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS01MDQtMS5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS01MDYtMC5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS01MDYtMS5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS01MDgtMC5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS01MDgtMS5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS01MTAtMC5wbmcKYXNzZXRzL2dyYXBoaWNzL0lNR19CQVNFL3Nwcml0ZS01MTAtMS5wbmcK"}, +{name:"config_preloader_bg_txt",data:"aVZCT1J3MEtHZ29BQUFBTlNVaEVVZ0FBQTFRQUFBSGdDQUlBQUFBdHg3dEFBQUFwWGtsRVFWUjRYdTNjTVpJclRiS2VhYXF6QUFxag0KendidWRxbHpJWGNEbExtTTJjR2xjR2paeCtMOU80R29RZ1VDRlkvYkkvVkovOEtCTG1TNDBOYi83VC8rODc4QUFEakVmK3QvQkFEQQ0KYjJYNUF3QTRpT1VQQU9BZ2xqOEFnSU5ZL2dBQURtTDVBd0E0aU9VUEFPQWdsajhBZ0lOWS9nQUFEbUw1QXdBNGlPVVBBT0FnbGo4QQ0KZ0lOWS9nQUFEbUw1QXdBNGlPVVBBT0FnbGo4QWdJTlkvZ0FBRG1MNUF3QTRpT1VQQU9BZ2xqOEFnSU5ZL2dBQURtTDVBd0E0aU9VUA0KQU9BZ2xqOEFnSU5ZL2dBQURtTDVBd0E0aU9VUEFPQWdsajhBZ0lOWS9nQUFEbUw1QXdBNGlPVVBBT0FnbGo4QWdJTlkvZ0FBRG1MNQ0KQXdBNGlPVVBBT0FnbGo4QWdJTlkvZ0FBRG1MNUF3QTRpT1VQQU9BZ2xqOEFnSU5ZL2dBQURtTDVBd0E0aU9VUEFPQWdsajhBZ0lOWQ0KL2dBQURtTDVBd0E0aU9VUEFPQWdsajhBZ0lOWS9nQUFEbUw1QXdBNGlPVVBBT0FnbGo4QWdJTlkvZ0FBRG1MNUF3QTRpT1VQQU9BZw0KbGo4QWdJTlkvZ0FBRG1MNUF3QTRpT1VQQU9BZ2xqOEFnSU5ZL2dBQURtTDVBd0E0aU9VUEFPQWdsajhBZ0lOWS9nQUFEbUw1QXdBNA0KaU9VUEFPQWdsajhBZ0lOWS9nQUFEbUw1QXdBNGlPVVBBT0FnbGo4QWdJTlkvZ0FBRG1MNUF3QTRpT1VQQU9BZ2xqOEFnSU5ZL2dBQQ0KRG1MNUF3QTRpT1VQQU9BZ2xqOEFnSU5ZL2dBQURtTDVBd0E0aU9VUEFPQWdsajhBZ0lOWS9nQUFEbUw1QXdBNGlPVVBBT0FnbGo4QQ0KZ0lOWS9nQUFEbUw1QXdBNGlPVVBBT0FnbGo4QWdJTlkvZ0FBRG1MNUF3QTRpT1VQQU9BZ2xqOEFnSU5ZL2dBQURtTDVBd0E0aU9VUA0KQU9BZ2xqOEFnSU5ZL2dBQURtTDVBd0E0aU9VUEFPQWdsajhBZ0lOWS9nQUFEbUw1QXdBNGlPVVBBT0FnbGo4QWdJTlkvZ0FBRG1MNQ0KQXdBNGlPVVBBT0FnbGorKzR2LzU3Ly9mRGpyWTF6UjVnWTd4TlUxZW9HTThvemx2MGNFQWptTDU0eXQ2b2I1RkIvdWFKaS9RTWI2bQ0KeVF0MGpHYzA1eTA2R01CUkxIOThSUy9VdCtoZ1g5UGtCVHJHMXpSNWdZN3hqT2E4UlFjRE9Jcmxqd205UnpmUlVaL1JuTGZvWU05bw0Kemx0MHNHclhKam9xd0Frc2Ywem85Ym1KanZxTTVyeEZCM3RHYzk2aWcxVzdOdEZSQVU1ZytXTkNyODlOZE5Sbk5PY3RPdGd6bXZNVw0KSGF6YXRZbU9DbkFDeXgrUDlkYTgvTmM3cW1OY09ueTE2ektlOUFQVlF5OGR0ZHAxR1UvNmdlcWhsOTFHYlhXTVM0Y0grTVVzZnp6Vw0KeS9JeVhyQkxxbU5jT255MTZ6S2U5QVBWUXk4ZHRkcDFHVS82Z2VxaGw5MUdiWFdNUzRjSCtNVXNmenpXeS9JeVhyQkxxbU5jT255MQ0KNnpLZTlBUFZReThkdGRwMUdVLzZnZXFobDkxR2JYV01TNGNIK01Vc2Z6eld5M0s4Vjk5VUhlem1PdTh6bHpGM1NYV015KzhZdnY4MA0KcHJ5cE9saUhCL2pGTEg4ODFqdHl2RTdmVkIzczVoYnZNNWN4ZDBsMWpNdnZHTDcvTkthOHFUcFlod2Y0eFN4L1BOWTdjcnhPMzFRZA0KN09ZVzd6T1hNWGRKZFl6TDd4aSsvelNtdktrNldJY0grTVVzZnp6V08zSzhUdDlkbmZBWlk4cWJxb005WTB4NVUzV3dHMlB6dTZzVA0KWHZvckFQZzFMSDg4MXF0eHZFWGZYWjN3R1dQS202cURQV05NZVZOMXNCdGo4N3VyRTE3Nkt3RDROU3gvUE5hcmNieEYzMTJkOEJsag0KeXB1cWd6MWpUSGxUZGJBYlkvTzdxeE5lK2lzQStEVXNmenpXcTNHOFJiZXBqbHBqenpiVlVXdnMyYVk2YW8wOTIxUkh2ZlRuQVBEcA0KTEg4ODFodHh2RHkzcVk1YVk4ODIxVkZyN05tbU9tcU5QZHRVUjczMDV3RHc2U3gvUE5ZYmNidzh0Nm1PV21QUE50VlJhK3pacGpwcQ0KalQzYlZFZTk5T2NBOE9rc2Z6eldHM0c4UExlcGpscGp6emJWVVd2czJhWTZhbzA5MjFSSHJmNHVBRDZVNVkvSGVoR09sK2MyMVZGcg0KN05tbU9tcU5QZHRVUjYyeFo1dnFxTlhmQmNDSHN2enhXQy9DOGZMY3BqcHFqVDNiVkVldHNXZWI2cWcxOW14VEhiWDZ1d0Q0VUpZLw0KSHV0Rk9GNmUyMVJIcmJGbm0rcW9OZlpzVXgyMXhwNXRxcU5XZnhjQUg4cnl4Mk85Q01mTGM1dnFxRFgyYkZNZHRjYWViYXFqMXRpeg0KVFhYVTZ1OEM0RU5aL25pc0YrRjRlVzVUSGJYR25tMnFvOWJZczAxMTFCcDd0cW1PV3YxZEFId295eCtQOVNJY0w4OXRxcVBXMkxOTg0KZGRRYWU3YXBqbHBqenpiVlVhdS9DNEFQWmZuanNWNkU0K1c1VFhYVUdudTJxWTVhWTg4MjFWRnI3Tm1tT21yMWR3SHdvU3gvUE5hTA0KY0x3OHQ2bU9XbVBQTnRWUmErelpwanBxalQzYlZFZXQvaTRBUHBUbGo4ZDZFWTZYNTJRMWNFSHlnaVBHUnllcmdUWDJURllERnlRdg0KT0dKOGRMSWFXUDFkQUh3b3l4K1A5U0ljTDgvSmF1Q0M1QVZIakk5T1ZnTnI3Sm1zQmk1SVhuREUrT2hrTmJENnV3RDRVSlkvSHV0Rg0KT0Y2ZWs5WEFCY2tMamhnZm5hd0cxdGd6V1ExY2tMemdpUEhSeVdwZzlYY0I4S0VzZnp6V2kzQzhQQ2VyZ1F1U0Z4d3hQanBaRGF5eA0KWjdJYXVDQjV3UkhqbzVQVndPcnZBdUJEV2Y1NHJCZmhlSGxPVmdNWEpDODRZbngwc2hwWVk4OWtOWEJCOG9JanhrY25xNEhWM3dYQQ0KaDdMODhWZ3Z3dkh5bkt3R0xraGVjTVQ0NkdRMXNNYWV5V3JnZ3VRRlI0eVBUbFlEcTc4TGdBOWwrZU94WG9UajVUbFpEVnlRdk9DSQ0KOGRISmFtQ05QWlBWd0FYSkM0NFlINTJzQmxaL0Z3QWZ5dkxIWTcwSXg4dHpzaHE0SUhuQkVlT2prOVhBR25zbXE0RUxraGNjTVQ0Ng0KV1Eycy9pNEFQcFRsajhkNkVZNlg1MlExY0VIeWdpUEdSeWVyZ1RYMlRGWURGeVF2T0dKOGRMSWFXUDFkQUh3b3l4K1A5U0ljTDgvSg0KYXVDQzVBVkhqSTlPVmdOcjdKbXNCaTVJWG5ERStPaGtOYkQ2dXdENFVKWS9IdXRGT0Y2ZWs5WEFCY2tMamhnZm5hd0cxdGd6V1ExYw0Ka0x6Z2lQSFJ5V3BnOVhjQjhLRXNmenpXaTNDOFBDZXJnUXVTRnh3eFBqcFpEYXl4WjdJYXVDQjV3UkhqbzVQVndPcnZBdUJEV2Y1NA0KckJmaGVIbE9WZ01YSkM4NFlueDBzaHBZWTg5a05YQkI4cXVPK0xucXFOWGZCY0NIc3Z6eFdDL0M4ZktjckFZdVNGNXd4UGpvWkRXdw0KeHA3SmF1Q0M1RmNkOFhQVlVhdS9DNEFQWmZuanNWNkU0K1U1V1ExY2tMemdpUEhSeVdwZ2pUMlQxY0FGeWE4NjR1ZXFvMVovRndBZg0KeXZMSFk3MEl4OHR6bStxb05mWk1WZ01YSkM4NFlueDBzaHBZWTg4MjFWR3J2d3VBRDJYNTQ3RmVoT1BsdVUxMTFCcDdKcXVCQzVJWA0KSERFK09sa05yTEZubStxbzFkOEZ3SWV5L1BGWUw4THg4dHltT21xTlBaUFZ3QVhKQzQ0WUg1MnNCdGJZczAxMTFPcnZBdUJEV2Y1NA0KckJmaGVIbHVVeDIxeHA3SmF1Q0M1QVZIakk5T1ZnTnI3SGwzZGNJYi9WMEFmQ2pMSDQvMUloeHYwVzJxbzliWU0xa05YSkM4NElqeA0KMGNscVlJMDk3NjVPZUtPL0M0QVBaZm5qc1Y2RTR5MjZUWFhVR25zbXE0RUxraGNjTVQ0NldRMnNzZWZkMVFsdjlIY0I4S0VzZnp6Vw0KaS9CLy9lLy8ybE5IclhaTmFlQ0M1QVZIOU9FcERheDJ2VVVIZTBaL0Z3QWZ5dkxIWTcwSWU2RnVvcU5XdTZZMGNFSHlnaVA2OEpRRw0KVnJ2ZW9vTTlvNzhMZ0E5bCtlT3hYb1M5VURmUlVhdGRVeHE0SUhuQkVYMTRTZ09yWFcvUndaN1Izd1hBaDdMODhWZ3Z3bDZvbStpbw0KMWE0cERWeVF2T0NJUGp5bGdkV3U5K3FFTi9xN09OQTN2NVp2dGdPdll2bmpzYjZ5ZTQ5dW9xTld1NlkwY0VIeWdpUDY4SlFHVnJ2ZQ0KcXhQZTZPL2lRTi84V3I3WkRyeUs1WS9IK3NydVBicUpqbHJ0bXRMQUJja0xqdWpEVXhwWTdYcXZUbmlqdjRzRGZmTnIrV1k3OENxVw0KUHg3cks3djM2SHQxd2h0dG45TEFCY2tManVqRFV4cFk3ZHBFUjczMDUzQ2c2OXNZLzg5eS92cS95Mm5YcTlxQmw3UDg4ZGpmZCtFZg0KdlQ3ZnF4UGVhUHVVQmk1SVhuQkVINTdTd0dyWEpqcnFwVCtIQTEzZnhyaTdQYmU5ZmJNZGVEbkxINC85ZlJmKzBldnp2VHJoamJaUA0KYWVDQzVBVkg5T0VwRGF4MmJhS2pYdnB6T05EMWJZeTcyM1BiMnpmYmdaZXovUEhZMzNmaEg3MCszNktEUGFNNVV4cTRJSG5CRVgxNA0KU2dPclhadm9xTlhmeGE5M2ZmWi9MV3YvNHo4SE45L1BOOXVCbjJQNTQ3Ry9yOEEvZW4yK1JRZDdSbk9tTkhCQjhvSWordkNVQmxhNw0KTnRGUnE3K0xYKy82N0YvYjNyN1pEdndjeXgrUC9YMEYvdEhyOHkwNjJET2FNNldCQzVJWEhOR0hwelN3MnJXSmpscjlYZng2MTJmLw0KMnZiMnpYYmc1MWorZU96dksvQ1BYcDhyZFo0cERaelN3QVhKQzQ3b3cxTWFXTzJhMHNBRnlaZitMbjY5NjdOL2JYdjdaanZ3Y3l4Lw0KUFBiM0ZmaEhyOCtWT3MrVUJrNXA0SUxrQlVmMDRTa05ySFpOYWVDQzVFdC9GNy9lOWRtL3RyMTlzeDM0T1pZL0h2djdDdnlqMStkSw0KbldkS0E2YzBjRUh5Z2lQNjhKUUdWcnVtTkhCQjhxVy9pMS92K3V4ZjI5NisyUTc4SE1zZmovMTlCZjdSNjNOS0ExZnFQRk1hdUNCNQ0Kd1JGOWVFb0RxMTFUR3JnZytkTGZ4YTkzZmZhcDdlMlpycHQyWUFITEg0LzlmUVgrMGV0elNnTlg2anhUR3JnZ2VjRVJmWGhLQTZ0ZA0KVXhxNElQblMzOFd2ZDMzMm16V3UzODh6WFRmdHdBS1dQeDc3K3dyOG85Zm5sQWF1MUhtbU5IQkI4b0lqK3ZDVUJsYTdwalJ3UWZLbA0KdjR0ZjcvcnNOMnRjdjU5bnVtN2FnUVVzZnp6Mjl4WDRSNi9QS1ExY3FmTk1hZUNDNUFWSDlPRXBEYXgyVFduZ2d1UkxmeGUvM3ZYWg0KYjlhNGZsRlRYVDBVV01EeXgyTjlyZmY2bk5MQWxUclBsQVl1U0Y1d1JCK2Uwc0JxMTVRR0xraSs5SGZ4NjEyZi9aazFycDdwNnFIQQ0KQXBZL0h1dHJ2ZGZubEFhdTFIbW1OSEJCOG9Jait2Q1VCbGE3cGpSd1FmS2x2NHRmNy9yc3o2eHg5VXhYRHdVV3NQenhXRi9ydlQ2bg0KTlBEbGZtNzRuOU5ScTEyYjZLalZyaWtOWEpCODZlL2kxN3MrKzgwYTk2OS91cWwwbmZ5dHdnNHNmenpXaTdEWDU1UUd2dHpQRGY5eg0KT21xMWF4TWR0ZG8xcFlFTGtpLzlYZng2MTJlL1dlUCs5VTgzbGE2VHYxWFlnZVdQeDNvUjl2cWMwc0NYKzduaGYwNUhyWFp0b3FOVw0KdTZZMGNFSHlwYitMWCsvNjdEZHIzTC8rNmFiU2RmSzNDanV3L1BGWUw4SmVuMU1hK0NvTGh2ODVIYlhhdFltT1d1MmEwc0FGeVpmKw0KYWYxVy9WWmZYZ2QrcTdBVnl4K1A5U0xzOVRtbGdhK3lZUGlmMDFHclhadm9xTld1S1ExY2tIenBuOVp2MVcvMTVYWGd0d3Bic2Z6eA0KV0MvQ1hwOVRHdmdxQzRiL09SMjEycldKamxydG10TEFCY21YL21uOVZ2MVdYMTRIZnF1d0Zjc2ZqL1VpN1BVNXBZSFZNYjZteVoxbg0KRXgyMTJyV0pqbHJ0bXRMQUJjbVgvbW45TXYweUY5UTVYeTlzeGZMSFk3MEllMzFPYVdCMWpLOXBjdWZaUkVldGRtMmlvMWE3cGpSdw0KUWZLbGYxcS9UTC9NQlhYTzF3dGJzZnp4V0MvQ1hwOVRHbGdkNDJ1YTNIazIwVkdyWFp2b3FOV3VLUTFja0h6cG45WXYweTl6UVozeg0KOWNKV0xIODgxb3V3MStlVUJsYkgrSm9tZDU1TmROUnExeVk2YXJWclNnTVhKRi82cC9YTFhKOTBYTkQrcVY3MThEbGZMMnpGOHNkag0KZjErQmYvVDZuTkxBNmhoZjArVE9zNG1PV3UzYVJFZXRkazFwNElMa1MvKzBmcG5yazQ0TDJqL1ZxeDQrNSt1RnJWaitlT3p2Sy9DUA0KWHA5VEdsZ2Q0MnVhM0hrMjBWR3JYWnZvcU5XdUtRMWNrSHpwbjlZdmMzM1NjVUg3cDNyVncrZDh2YkFWeXgrUC9YMEYvdEhyYzBvRA0KcTJOOFRaTXZIZXd0T3Rnem12TVdIZXhHMjZjMGNFSHlwWDlhdjh6MVNjY0Y3Wi9xVlErZjgvWENWaXgvUFBiM0ZmaEhyODhwRGF5Tw0KOFRWTnZuU3d0K2hnejJqT1czU3dHMjJmMHNBRnlaZithZjB5MXljZEY3Ui9xbGM5Zk03WEMxdXgvUEhZMzFmZ0g3MCtwelN3T3NiWA0KTlBuU3dkNmlnejJqT1cvUndXNjBmVW9ERnlSZitxZjF5MXlmZEZ6US9xbGU5ZkE1WHk5c3hmTEhZMzlmZ1gvMCtwelN3T29ZMzlRag0KTHAxd2dZN3hOVTFlb0dNOG96bFRHcmdnK2RLL3FGL20rcVRqZ3ZaUDlmS0h6L21lWVFlV1B4Nzcrd3I4bzlmbmxBWld4L2ltSG5IcA0KaEF0MGpLOXA4Z0lkNHhuTm1kTEFCY21YL2tYOU10Y25IZmV5ZjZxWFAzek85d3c3c1B6eDJOOVg0Qis5UHFjMHNEckdOL1dJU3lkYw0Kb0dOOFRaTVg2QmpQYU02VUJpNUl2dlF2NnBlNVB1bTRsLzFUdmZ6aGM3NW4ySUhsajhmK3ZnSUh2VWR2dFAxR3gzaVZublhwekMvWA0KUTErbFo3MWNELzJhSnQ5bys0MjIzMmo3amY0aC9UTFhKeDMzc3RuNkgvLzVmODNVT2Q4ejdNRHl4Mk85Q0MrOVVHKzAvVWJIZUpXZQ0KZGVuTUw5ZERYNlZudlZ3UC9ab20zMmo3amJiZmFQdU4vaUg5TXRjbkhmZXkyYkw4d2ZZc2Z6eldpL0RTQy9WRzIyOTBqRmZwV1pmTw0KL0hJOTlGVjYxc3YxMEs5cDhvMjIzMmo3amJiZjZCL1NMM045MG5Fdm15M0xIMnpQOHNlRTNvZy9wNmUvWEEvZDFrY1AvenYwdjRJUA0KY3ZOeCtrL1hjdnkxdW5MR2Y3aXREZ2I4SE1zZkUzcFAvSnllL25JOWRGc2ZQZnp2MFA4S1Bzak54K2svV2Y3ZzE3UDhNYUgzeE0vcA0KNlMvWFE3ZjEwY1AvRHYydjRJUGNmSnoraytVUGZqM0xIMS9SQytQbGV1alA2ZW1iNktqVnJrMTgwS2pQNk1mWjN6WDh1R3I5MDRyVw0KL3luazMvLzd5SWZyWUFQN24xelZzem84OEhNc2YzekY5Y3IrT1QzMDUvVDBUWFRVYXRjbVBtalVaL1RqN084YWZseSsvbWt6NjBKbQ0KK1lQZnl2TEhWMXl2N0ovVFEzOU9UOTlFUjYxMmJlS0RSbjFHUDg3K3J1SEg1ZXVmTnJNdVpKWS8rSzBzZjN6TDllNStsUjZ4VXVkNQ0KaXc3MmpPYThSUWVyZG4zVGd1UlBkSDJLTGx2ak92Wlg5ZUdwTGZDbW10eVpnUVVzZjN6TDM5ZmtTL1NJbFRyUFczU3daelRuTFRwWQ0KdGV1YkZpUi9vdXRUZE9zYTk3Sy9xZzliL3VDWHNmenhMWDlma3kvUkkxYnFQRy9Sd1o3Um5MZm9ZTld1YjFxUS9JbXVUOUd0YTl6TA0KL3FvK2JQbURYOGJ5eDJ2OGZWOStRUVBmcXhNdTBERytwc2tMZEl4bk5HZEtBeGNrZjZKK3dIRXZXMUsvOWV1RmoyUDU0elY2dTB4cA0KNEh0MXdnVTZ4dGMwZVlHTzhZem1UR25nZ3VSUDFBODQ3bVZMNnJkK3ZmQnhMSCs4Um0rWEtRMThyMDY0UU1mNG1pWXYwREdlMFp3cA0KRFZ5US9JbjZBY2U5YkVuOTFxOFhQbzdsRCtBVWIxbisvRS85WURlV1A0QlRXUDZBLzdEOEFaekQ4Z2Y4aCtVUDRCelgrdlhNLzJuTA0KMUROWGNvL29NeDBNV01ueUIzQ0tibVkzTmZXTTVROCtpT1VQNEJUZHpHNXE2aG5MSDN3UXl4L0FjYnFpdGE1bnhuK3c4OEdIcy93Qg0KSEtlN1dzdnlCNytWNVEvZ09OM1ZXcFkvK0swc2Z3RG42dEoyVlJlN20rWFB6Z2NmeFBJSGNLNXViNVkvK1BVc2Z3RG42dlptK1lOZg0Kei9JSG42VDM4VnQwc0djMFowb0RGeVRmYU00Q0hlTnJtcnhBeDNoR2M2WTBjRUh5amVaTWFTQjhnZVVQUGtrdmc3Zm9ZTTlvenBRRw0KTGtpKzBad0ZPc2JYTkhtQmp2R001a3hwNElMa0c4Mlowa0Q0QXNzZmZKSmVCbS9Sd1o3Um5Da05YSkI4b3prTGRJeXZhZklDSGVNWg0KelpuU3dBWEpONW96cFlId0JaWS8rQUM5QXpiUlVhdGQzN1FnK1VhNzNxS0RQYU01YjlIQnFsM2Z0Q0Q1UnJ1K3FVZkE4eXgvOEFINg0KNnQ5RVI2MTJmZE9DNUJ2dGVvc085b3ptdkVVSHEzWjkwNExrRyszNnBoNEJ6N1A4d1Fmb3EzOFRIYlhhOVUwTGttKzA2eTA2MkRPYQ0KOHhZZHJOcjFUUXVTYjdUcm0zb0VQTS95Qi92cUcvL3lyLzlEam9YVk1TNC9OM3piYjR6TnQ5WDJ5ODk5bks5VkQ3MTAxR3JYWlR6cA0KQjZxSFhuNXUxTGJmR0p0dnErMlh0M3ljSGdvUFdmNWdYMzNSWDhiTFlVbDFqTXZQRGQvMkcyUHpiYlg5OG5NZjUydlZReThkdGRwMQ0KR1UvNmdlcWhsNThidGUwM3h1YmJhdnZsTFIrbmg4SkRsai9ZVjEvMGwvRnlXRklkNC9Kenc3Zjl4dGg4VzIyLy9OekgrVnIxMEV0SA0KclhaZHhwTitvSHJvNWVkR2JmdU5zZm0yMm41NXk4ZnBvZkNRNVEvMjFSZjllQ2U4cVRwWXI2TCswNWd5V1ExY2tIeGpURmxTSGVQeQ0Kek4vUFpjeGRVaDNqY2pQem1ESlpEVnlRL0phUDB6OEErSGNzZjdDdnZ0L0hxK0JOMWNGNkEvV2Z4cFRKYXVDQzVCdGp5cExxR0pkbg0KL240dVkrNlM2aGlYbTVuSGxNbHE0SUxrdDN5Yy9nSEF2MlA1ZzMzMS9UNWVCVytxRHRZYnFQODBwa3hXQXhjazN4aFRsbFRIdUR6eg0KOTNNWmM1ZFV4N2pjekR5bVRGWURGeVMvNWVQMER3RCtIY3NmN0t2djkvRXFlSGQxd2h0ajgyUTFjRUZ5amMxdnFnNzJqREhsVGRYQg0KYm96Tms5WEFCY2szeHBUSmFtRDFUUUlEeXgvc3E2LzE4U3A0ZDNYQ0cyUHpaRFZ3UVhLTnpXK3FEdmFNTWVWTjFjRnVqTTJUMWNBRg0KeVRmR2xNbHFZUFZOQWdQTEgreXJyL1h4S25oM2RjSWJZL05rTlhCQmNvM05iNm9POW93eDVVM1Z3VzZNelpQVndBWEpOOGFVeVdwZw0KOVUwQ0E4c2Y3S3V2OWZFcTJLWTZhbzA5azlYQUJjbXZPdUxucXFQVzJMTk5kZFFhZXlhcmdRdVNiNHdwazlYQTZwc0VCcFkvMkZkZg0KNitOVnNFMTExQnA3SnF1QkM1SmZkY1RQVlVldHNXZWI2cWcxOWt4V0F4Y2szeGhUSnF1QjFUY0pEQ3gvc0srKzFzZXJZSnZxcURYMg0KVEZZREZ5Uy82b2lmcTQ1YVk4ODIxVkZyN0ptc0JpNUl2akdtVEZZRHEyOFNHRmorWUY5OXJZOVh3VGJWVVd2c21hd0dMa2grMVJFLw0KVngyMXhwNXRxcVBXMkROWkRWeVFmR05NbWF3R1Z0OGtNTEQ4d2I3NldoK3ZnbTJxbzliWU0xa05YSkQ4cWlOK3JqcHFqVDNiVkVldA0Kc1dleUdyZ2crY2FZTWxrTnJMNUpZR0Q1ZzMzMXRUNWVCZHRVUjYyeFo3SWF1Q0Q1VlVmOFhIWFVHbnUycVk1YVk4OWtOWEJCOG8weA0KWmJJYVdIMlR3TUR5Qi92cWEzMjhDcmFwamxwanoyUTFjRUh5cTQ3NHVlcW9OZlpzVXgyMXhwN0phdUNDNUJ0anltUTFzUG9tZ1lIbA0KRC9iVjEvcDRGV3hUSGJYR25zbHE0SUxrVngzeGM5VlJhK3pacGpwcWpUMlQxY0FGeVRmR2xNbHFZUFZOQWdQTEgreXJyL1h4S3RpbQ0KT21xTlBaUFZ3QVhKcnpyaTU2cWoxdGl6VFhYVUduc21xNEVMa20rTUtaUFZ3T3FiQkFhV1A5aFhYK3ZqVmJCTmRkUWFleWFyZ1F1Uw0KWDNYRXoxVkhyYkZubStxb05mWk1WZ01YSk44WVV5YXJnZFUzQ1F3c2Y3Q3Z2dGJIcTJDYjZxZzE5a3hXQXhja3YrcUluNnVPV21QUA0KTnRWUmEreVpyQVl1U0w0eHBreFdBNnR2RWhoWS9tQmZmYTJQVjhFMjFWRnI3Sm1zQmk1SWZ0VVJQMWNkdGNhZWJhcWoxdGd6V1ExYw0Ka0h4alRKbXNCbGJmSkRDdy9NRysrbG9mcjRMSmF1Q0M1QVZIakk5T1ZnTnI3Sm1zQmk1SVhuREUrT2hrTmJER25zbHE0SUxrRzJQSw0KWkRXdytpYUJnZVVQOXRYWCtuZ1ZURllERnlRdk9HSjhkTElhV0dQUFpEVndRZktDSThaSEo2dUJOZlpNVmdNWEpOOFlVeWFyZ2RVMw0KQ1F3c2Y3Q3Z2dGJIcTJDeUdyZ2dlY0VSNDZPVDFjQWFleWFyZ1F1U0Z4d3hQanBaRGF5eFo3SWF1Q0Q1eHBneVdRMnN2a2xnWVBtRA0KZmZXMVBsNEZrOVhBQmNrTGpoZ2ZuYXdHMXRneldRMWNrTHpnaVBIUnlXcGdqVDJUMWNBRnlUZkdsTWxxWVBWTkFnUExIK3lyci9YeA0KS3Bpc0JpNUlYbkRFK09oa05iREduc2xxNElMa0JVZU1qMDVXQTJ2c21hd0dMa2krTWFaTVZnT3JieElZV1A1Z1gzMnRqMWZCWkRWdw0KUWZLQ0k4WkhKNnVCTmZaTVZnTVhKQzg0WW54MHNocFlZODlrTlhCQjhvMHhaYklhV0gyVHdNRHlCL3ZxYTMyOENpYXJnUXVTRnh3eA0KUGpwWkRheXhaN0lhdUNCNXdSSGpvNVBWd0JwN0pxdUJDNUp2akNtVDFjRHFtd1FHbGovWVYxL3I0MVV3V1ExY2tMemdpUEhSeVdwZw0KalQyVDFjQUZ5UXVPR0IrZHJBYlcyRE5aRFZ5UWZHTk1tYXdHVnQ4a01MRDh3Yjc2V2grdmdzbHE0SUxrQlVlTWowNVdBMnZzbWF3Rw0KTGtoZWNNVDQ2R1Exc01hZXlXcmdndVFiWThwa05iRDZKb0dCNVEvMjFkZjZlQlZNVmdNWEpDODRZbngwc2hwWVk4OWtOWEJCOG9Jag0KeGtjbnE0RTE5a3hXQXhjazN4aFRKcXVCMVRjSkRDeC9zSysrMXNlcllMSWF1Q0I1d1JIam81UFZ3QnA3SnF1QkM1SVhIREUrT2xrTg0KckxGbnNocTRJUG5HbURKWkRheStTV0JnK1lOOTliVStYZ1dUMWNBRnlRdU9HQitkckFiVzJETlpEVnlRdk9DSThkSEphbUNOUFpQVg0Kd0FYSk44YVV5V3BnOVUwQ0E4c2Y3S3V2OWZFcTJLWTZhbzA5azlYQUJja0xqaGdmbmF3RzF0Z3pXUTFja0x6Z2lQSFJ5V3JnTThhVQ0KeVdwZzlVMENBOHNmN0t1djlmRXEyS1k2YW8wOWs5WEFCY2tMamhnZm5hd0cxdGd6V1ExY2tMemdpUEhSeVdyZ004YVV5V3BnOVUwQw0KQThzZjdLdXY5ZkVxMktZNmFvMDlrOVhBQmNrTGpoZ2ZuYXdHMXRneldRMWNrTHpnaVBIUnlXcmdNOGFVeVdwZzlVMENBOHNmN0t1dg0KOWZFcTJLWTZhbzA5azlYQUJja0xqaGdmbmF3RzF0Z3pXUTFja1B5cUkzNnVPdW96eHBUSmFtRDFUUUlEeXgvc3E2LzE4U3JZcGpwcQ0KalQyVDFjQUZ5UXVPR0IrZHJBYlcyRE5aRFZ5US9Lb2pmcTQ2NmpQR2xNbHFZUFZOQWdQTEgreXJyL1h4S3RpbU9tcU5QWlBWd0FYSg0KQzQ0WUg1MnNCdGJZTTFrTlhKRDhxaU4rcmpycU04YVV5V3BnOVUwQ0E4c2Y3S3V2OWZFcWVIZDF3aHRqODJRMWNFSHlnaVBHUnllcg0KZ1RYMlRGWURGeVMvNm9pZnE0NzZqREZsc2hwWWZaUEF3UElIKytwcmZid0szbDJkOE1iWVBGa05YSkM4NElqeDBjbHFZSTA5azlYQQ0KQmNtdk91TG5xcU0rWTB5WnJBWlczeVF3c1B6QnZ2cGFINitDZDFjbnZERTJUMVlERnlRdk9HSjhkTElhV0dQUFpEVndRZktyanZpNQ0KNnFqUEdGTW1xNEhWTndrTUxIK3dyNzdXLzlmLy9xOGRkTEJuTkdkS0F4Y2tMemlpRDA5cFlMVnJTZ01YSkwvcWlKL1RVWi9SbkNrTg0Kckw1SllHRDVnMzMxdGQ3TDRDMDYyRE9hTTZXQkM1SVhITkdIcHpTdzJqV2xnUXVTWDNYRXorbW96MmpPbEFaVzN5UXdzUHpCdnZwYQ0KNzJYd0ZoM3NHYzJaMHNBRnlRdU82TU5UR2xqdG10TEFCY212T3VMbmROUm5OR2RLQTZ0dkVoaFkvbUJmZmEzM01uaXZUbmlqN1ZNYQ0KdUNCNXdSRjllRW9EcTExVEdyZ2crVlZIL0p5Tytvem1UR2xnOVUwQ0E4c2Y3S3V2OVY0Rzc5VUpiN1I5U2dNWEpDODRvZzlQYVdDMQ0KYTBvREZ5Uy82b2lmMDFHZjBad3BEYXkrU1dCZytZTjk5YlhleStDOU91R050azlwNElMa0JVZjA0U2tOckhaTmFlQ0M1RmNkOFhNNg0KNmpPYU02V0IxVGNKREN4L3NLKysxbnNaYktLalZydW1OSEJCOG9Jait2Q1VCbGE3cGpSd1FYSzEvYjA2NFRPYU02V0IxVGNKREN4Lw0Kc0srKzFuc1piS0tqVnJ1bU5IQkI4b0lqK3ZDVUJsYTdwalJ3UVhLMS9iMDY0VE9hTTZXQjFUY0pEQ3gvc0srKzFuc1piS0tqVnJ1bQ0KTkhCQjhvSWordkNVQmxhN3BqUndRWEsxL2IwNjRUT2FNNldCMVRjSkRDeC9zSysrMW5zWlRHbmdndVFGUi9UaEtRMnNkazFwNElMaw0KQlVmMDRTa05mRVp6M3FLRFRXbmdqYmJmNkpzRUJwWS8yRmRmNjcwVnBqUndRZktDSS9yd2xBWld1NlkwY0VIeWdpUDY4SlFHUHFNNQ0KYjlIQnBqVHdSdHR2OUUwQ0E4c2Y3S3V2OWQ0S1V4cTRJSG5CRVgxNFNnT3JYVk1hdUNCNXdSRjllRW9EbjlHY3QraGdVeHA0byswMw0KK2lhQmdlVVA5dFhYZW0rRktRMWNrTHpnaUQ0OHBZSFZyaWtOWEpDODRJZytQS1dCVXhxNFV1ZXAvL2QvL3Y5LzlKOStUdDhrTUxEOA0Kd2I3Nld1OE5OS1dCQzVJWEhOR0hwelN3MmpXbGdRdVNGeHpSaDZjMGNFb0RWK284WmZsalQ1WS8yRmRmNjcyQnBqUndRZktDSS9ydw0KbEFaV3U2WTBjRUh5Z2lQNjhKUUdUbW5nU3AybkxIL3N5ZklIKytwcnZUZlFsQVl1U0Y1d1JCK2Uwc0JxMTVRR0xraGVjRVFmbnRMQQ0KbFRyUGxBYld0Znl0M0FMN0pvR0I1US8yMWRkNmI2QXBEVnlRdk9DSVBqeWxnZFd1S1ExY2tMemdpRDQ4cFlFcmRaNHBEU3pMSDN1eQ0KL01HKytscnZEVFNsZ1F1U0Z4elJoNmMwc05vMXBZRUxraGNjMFllbk5IQ2x6ak9sZ1dYNVkwK1dQOWhYWCt1OWdhWTBjRUh5Z2lQNg0KOEpRR1ZydW1OSEJCOG9Jait2Q1VCcTdVZWFZMHNPeDg3TW55Qi92cSs3MDMwSlFHTGtoZWNFUWZudExBYXRlVUJpNUlYbkJFSDU3Uw0Kd0pVNno1UUdsdVdQUFZuK1lGOTl2L2NHbXRMQUJja0xqdWpEVXhwWTdaclN3QVhKQzQ3b3cxTWF1RkxubWRMQXN2eXhKOHNmN0t2dg0KOTk1QW0raW8xYTVOZE5ScTE1UUdMa2hlY0VRZm50TEFHMjEvcjA0NHBZRTMybjdwZXdNZXN2ekJ2dnFpNzYyd2lZNWE3ZHBFUjYxMg0KVFduZ2d1UUZSL1RoS1EyODBmYjM2b1JUR25pajdaZStOK0FoeXgvc3F5LzYzZ3FiNktqVnJrMTAxR3JYbEFZdVNGNXdSQitlMHNBYg0KYlgrdlRqaWxnVGZhZnVsN0F4NnkvTUcrK3FMdnJiQ0pqbHJ0MmtSSHJYWk5hZUNDNUFWSDlPRXBEYXgyYmFLalBxTTVVeHA0NlFzRQ0KL2gzTEgreXI3L2RlQnB2b3FOV3VUWFRVYXRlVUJpNUlYbkJFSDU3U3dHclhKanJxTTVvenBZR1h2a0RnMzdIOHdiNzZmdTlsc0ltTw0KV3UzYVJFZXRkazFwNElMa0JVZjA0U2tOckhadG9xTStvemxUR25qcEN3VCtIY3NmN0t2djkxNEdtK2lvMWE1TmROUnExNVFHTGtoZQ0KY0VRZm50TEFhdGNtT3Vvem1qT2xnZFUzQ1F3c2Y3Q3Z2dFo3R1d5aW8xYTdOdEZScTExVEdyZ2dlY0VSZlhoS0E2dGRtK2lvejJqTw0KbEFaVzN5UXdzUHpCdnZwYTcyV3dpWTVhN2RwRVI2MTJUV25nZ3VRRlIvVGhLUTJzZG0yaW96NmpPVk1hV0gyVHdNRHlCL3ZxYTcyWA0Kd1NZNmFyVnJFeDIxMmpXbGdRdVNGeHpSaDZjMHNOcTFpWTc2ak9aTWFXRDFUUUlEeXgvc3E2LzFYZ2FiNktqVnJrMTAxR3JYbEFZdQ0KU0Y1d1JCK2Uwc0JxMXlZNjZqT2FNNldCMVRjSkRDeC9zSysrMW5zWmJLS2pWcnMyMFZHclhWTWF1Q0I1d1JGOWVFb0RxMTJiNktqUA0KYU02VUJsYmZKREN3L01HKytscnZaZkJlbmZBWnpYbUxEbmFqN1ZNYXVDQjV3UkY5ZUVvRHExM3YxUW1uTkhCS0E2dHZFaGhZL21CZg0KZmEzM01uaXZUdmlNNXJ4RkI3dlI5aWtOWEpDODRJZytQS1dCMWE3MzZvUlRHamlsZ2RVM0NRd3NmN0N2dnRaN0dieFhKM3hHYzk2aQ0KZzkxbys1UUdMa2hlY0VRZm50TEFhdGQ3ZGNJcERaelN3T3FiQkFhV1A5aFhYK3U5RE42aWczMU5reGZvR005b3pwUUdMa2hlY0VRZg0KbnRMQWF0ZGJkTEN2YWZLVUJsYmZKREN3L01HKytscnZaZkFXSGV4cm1yeEF4M2hHYzZZMGNFSHlnaVA2OEpRR1ZydmVvb045VFpPbg0KTkxENkpvR0I1US8yMWRkNkw0TzM2R0JmMCtRRk9zWXptak9sZ1F1U0Z4elJoNmMwc05yMUZoM3NhNW84cFlIVk53a01MSCt3cjc3Vw0KTDcwVkZ1Z1lyOUt6WHE2SGZrMlRiN1Q5UnR0dnRQMFp6Ym5SOWh0dHY5SDJaelJuZ1k3eEtqM3JSdHR2OUUwQ0E4c2Y3S3V2OVV1dg0KaHdVNnhxdjBySmZyb1YvVDVCdHR2OUgyRzIxL1JuTnV0UDFHMjIrMC9Sbk5XYUJqdkVyUHV0SDJHMzJUd01EeUIvdnFhLzNTNjJHQg0KanZFcVBldmxldWpYTlBsRzIyKzAvVWJibjlHY0cyMi8wZlliYlg5R2N4Ym9HSy9TczI2MC9VYmZKREN3L01FSDZQdjlnL3l5andNUA0KdmZkdnZxZkR3UElISDZEdjl3L3l5ejRPUFBUZXYvbWVEZ1BMSDN5QXZ0OC95Qy83T1BEUWUvL21lem9NTEgvd1NmcWkzMWFIcjNadA0KNG9OR1pSLzlzNmwydlZ3UGhZSGxEejVKWC9UYjZ2RFZyazE4MEtqc28zODIxYTZYNjZFd3NQekJKK21MZmxzZHZ0cTFpUThhbFgzMA0KejZiYTlYSTlGQWFXUC9oSWZlTnZvcU0rb3psdjBjR3FYZCswSUhuQkVmMm5iMW93L0t0MDFHYzA1NXQ2QlB3N2xqLzRTSDMxYjZLag0KUHFNNWI5SEJxbDNmdENCNXdSSDlwMjlhTVB5cmROUm5OT2ViZWdUOE81WS8rRWg5OVcraW96NmpPVy9Sd2FwZDM3UWdlY0VSL2Fkdg0KV2pEOHEzVFVaelRubTNvRS9EdVdQL2hzdlFQZW9vTjlUWk1YNkJqUGFNNlVCaTVJWG5CRUg1N1N3R3JYVzNTd3IybnlsQWJDUTVZLw0KK0d5OURONmlnMzFOa3hmb0dNOW96cFFHTGtoZWNFUWZudExBYXRkYmRMQ3ZhZktVQnNKRGxqLzRiTDBNM3FLRGZVMlRGK2dZejJqTw0KbEFZdVNGNXdSQitlMHNCcTExdDBzSzlwOHBRR3drT1dQd0NBZzFqK0FBQU9ZdmtEQURpSTVROEE0Q0NXUHdDQWcxaitBQUFPWXZrRA0KQURpSTVROEE0Q0NXUHdDQWcxaitBQUFPWXZrREFEaUk1UThBNENDV1B3Q0FnMWorQUFBT1l2a0RBRGlJNVE4QTRDQ1dQd0NBZzFqKw0KQUFBT1l2a0RBRGlJNVE4QTRDQ1dQd0NBZzFqK0FBQU9ZdmtEQURpSTVROEE0Q0NXUHdDQWcxaitBQUFPWXZrREFEaUk1UThBNENDVw0KUHdDQWcxaitBQUFPWXZrREFEaUk1UThBNENDV1B3Q0FnMWorQUFBT1l2a0RBRGlJNVE4QTRDQ1dQd0NBZzFqK0FBQU9ZdmtEQURpSQ0KNVE4QTRDQ1dQd0NBZzFqK0FBQU9ZdmtEQURpSTVROEE0Q0NXUHdDQWcxaitBQUFPWXZrREFEaUk1UThBNENDV1B3Q0FnMWorQUFBTw0KWXZrREFEaUk1UThBNENDV1B3Q0FnMWorQUFBT1l2a0RBRGlJNVE4QTRDQ1dQd0NBZzFqK0FBQU9ZdmtEQURpSTVROEE0Q0NXUHdDQQ0KZzFqK0FBQU9ZdmtEQURpSTVROEE0Q0NXUHdDQWcxaitBQUFPWXZrREFEaUk1UThBNENDV1B3Q0FnMWorQUFBT1l2a0RBRGlJNVE4QQ0KNENDV1B3Q0FnMWorQUFBT1l2a0RBRGlJNVE4QTRDQ1dQd0NBZzFqK0FBQU9ZdmtEQURpSTVROEE0Q0NXUHdDQWcxaitBQUFPWXZrRA0KQURpSTVROEE0Q0NXUHdDQWcxaitBQUFPWXZrREFEaUk1UThBNENDV1B3Q0FnMWorQUFBT1l2a0RBRGlJNVE4QTRDQ1dQd0NBZzFqKw0KQUFBT1l2a0RBRGlJNVE4QTRDQ1dQd0NBZzFqK0FBQU9ZdmtEQURpSTVROEE0Q0NXUHdDQWcxaitBQUFPWXZrREFEaUk1UThBNENDVw0KUHdDQWcxaitBQUFPWXZrREFEaUk1UThBNENDV1B3Q0FnMWorQUFBT1l2a0RBRGlJNVE4QTRDQ1dQd0NBZzFqK0FBQU9ZdmtEQURpSQ0KNVE4QTRDQ1dQd0NBZzFqK0FBQU9ZdmtEQURpSTVROEE0Q0NXUHdDQWcxaitBQUFPWXZrREFEaUk1UThBNENDV1B3Q0FnMWorQUFBTw0KWXZrREFEaUk1UThBNENDV1B3Q0FnMWorQUFBT1l2a0RBRGlJNVE4QTRDQ1dQd0NBZzFqK0FBQU9ZdmtEQURpSTVROEE0Q0NXUHdDQQ0KZzFqK0FBQU9ZdmtEQURpSTVROEE0Q0NXUHdDQWcxaitBQUFPWXZrREFEaUk1UThBNENDV1B3Q0FnMWorQUFBT1l2a0RBRGlJNVE4QQ0KNENDV1B3Q0FnMWorQUFBT1l2a0RBRGlJNVE4QTRDRC9CeDZ2QStTZzl6S2JBQUFBQUVsRlRrU3VRbUND"}]; +O.__toStr={}.toString;null==ArrayBuffer.prototype.slice&&(ArrayBuffer.prototype.slice=At.sliceImpl);var ru=new Uint32Array(256);I.__alpha16=ru;for(var ij=0;256>ij;){var sk=ij++;I.__alpha16[sk]=Math.ceil(257.00392156862745*sk)}ru=new Uint8Array(511);I.__clamp=ru;for(ij=0;255>ij;)sk=ij++,I.__clamp[sk]=sk;for(ij=255;511>ij;)sk=ij++,I.__clamp[sk]=255;Wg.available=!1;Wg.enabled=!1;Ga.level=0;"undefined"==typeof console&&(console={});null==console.log&&(console.log=function(){});D.hitTestCanvas=Tg.get_supported()? +window.document.createElement("canvas"):null;D.hitTestContext=Tg.get_supported()?D.hitTestCanvas.getContext("2d"):null;qe.maxTouchPoints=2;qe.supportedGestures=null;qe.supportsGestureEvents=!1;qe.inputMode=2;ya.reloadListeners=[];ub.__meta__={statics:{toNullVector:{SuppressWarnings:["checkstyle:Dynamic"]}}};A.__meta__={fields:{__cairo:{SuppressWarnings:["checkstyle:Dynamic"]},addEventListener:{SuppressWarnings:["checkstyle:Dynamic"]},removeEventListener:{SuppressWarnings:["checkstyle:Dynamic"]}}}; +A.__broadcastEvents=new V;A.__instanceCount=0;A.__tempStack=new Qd(function(){return ub.toObjectVector(null)},function(a){a.set_length(0)});da.logicalWidth=0;da.logicalHeight=0;da.windowWidth=0;da.windowHeight=0;da.leftInset=0;da.topInset=0;da.rightInset=0;da.bottomInset=0;U.Element=0;U.PCData=1;U.CData=2;U.Comment=3;U.DocType=4;U.ProcessingInstruction=5;U.Document=6;z.pool=[];z.pooli=0;qb.VERTEX=0;qb.FACE=1;Ma.b2_nullFeature=255;Ma.s_incidentEdge=Ma.makeClipPointVector();Ma.s_clipPoints1=Ma.makeClipPointVector(); +Ma.s_clipPoints2=Ma.makeClipPointVector();Ma.s_edgeAO=[];Ma.s_edgeBO=[];Ma.s_localTangent=new z;Ma.s_localNormal=new z;Ma.s_planePoint=new z;Ma.s_normal=new z;Ma.s_tangent=new z;Ma.s_tangent2=new z;Ma.s_v11=new z;Ma.s_v12=new z;Ma.b2CollidePolyTempVec=new z;C.s_simplex=new pf;C.s_saveA=[];C.s_saveB=[];oj.currentID=0;ih.e_circles=1;ih.e_faceA=2;ih.e_faceB=4;ef.e_points=1;ef.e_faceA=2;ef.e_faceB=4;Gb.b2_toiCalls=0;Gb.b2_toiIters=0;Gb.b2_toiMaxIters=0;Gb.b2_toiRootIters=0;Gb.b2_toiMaxRootIters=0;Gb.s_cache= +function(a){a=new yk;a.useCache=!0;return a}(this);Gb.s_distanceInput=new Hh;Gb.s_xfA=new Ve;Gb.s_xfB=new Ve;Gb.s_fcn=new ef;Gb.s_distanceOutput=new ne;Tb.initialized=!1;Tb.distanceInput=new Hh;Tb.proxyA=new df;Tb.proxyB=new df;Tb.simplexCache=new yk;Tb.distanceOutput=new ne;Tb.e_unknownShape=-1;Tb.e_circleShape=0;Tb.e_polygonShape=1;Tb.e_edgeShape=2;Tb.e_shapeTypeCount=3;Tb.e_hitCollide=1;Tb.e_missCollide=0;Tb.e_startsInsideCollide=-1;Bb.s_mat=new vc;aa.VERSION="2.1alpha";aa.USHRT_MAX=65535;aa.b2_pi= +Math.PI;aa.b2_maxManifoldPoints=2;aa.b2_aabbExtension=.1;aa.b2_aabbMultiplier=2;aa.b2_linearSlop=.005;aa.b2_polygonRadius=2*aa.b2_linearSlop;aa.b2_angularSlop=.011111111111111112*aa.b2_pi;aa.b2_toiSlop=8*aa.b2_linearSlop;aa.b2_maxTOIContactsPerIsland=32;aa.b2_maxTOIJointsPerIsland=32;aa.b2_velocityThreshold=1;aa.b2_maxLinearCorrection=.2;aa.b2_maxAngularCorrection=.044444444444444446*aa.b2_pi;aa.b2_maxTranslation=2;aa.b2_maxTranslationSquared=aa.b2_maxTranslation*aa.b2_maxTranslation;aa.b2_maxRotation= +.5*aa.b2_pi;aa.b2_maxRotationSquared=aa.b2_maxRotation*aa.b2_maxRotation;aa.b2_contactBaumgarte=.2;aa.b2_timeToSleep=.5;aa.b2_linearSleepTolerance=.01;aa.b2_angularSleepTolerance=.011111111111111112*aa.b2_pi;P.b2Vec2_zero=new z(0,0);P.b2Mat22_identity=vc.fromVV(new z(1,0),new z(0,1));P.b2Transform_identity=new Ve(P.b2Vec2_zero,P.b2Mat22_identity);ua.s_xf1=new Ve;ua.e_islandFlag=1;ua.e_awakeFlag=2;ua.e_allowSleepFlag=4;ua.e_bulletFlag=8;ua.e_fixedRotationFlag=16;ua.e_activeFlag=32;ua.e_ignoreGravityFlag= +128;ua.e_alwaysActiveFlag=256;ua.e_pausedFlag=512;ua.b2_staticBody=0;ua.b2_kinematicBody=1;ua.b2_dynamicBody=2;sj.b2_defaultFilter=new sj;Lg.KEY_LOCK=0;Lg.b2_defaultListener=new Lg;Ak.s_evalCP=new B;De.e_shapeBit=1;De.e_jointBit=2;De.e_aabbBit=4;De.e_pairBit=8;De.e_centerOfMassBit=16;De.e_controllerBit=32;Ff.tempAABB1=new ka;Ff.tempAABB2=new ka;Kh.s_impulse=new En;bc.s_timestep2=new uj;bc.s_xf=new Ve;bc.s_backupA=new jh;bc.s_backupB=new jh;bc.s_timestep=new uj;bc.s_queue=[];bc.s_jointColor=new zk(.5, +.8,.8);bc.m_warmStarting=!0;bc.m_continuousPhysics=!1;bc.e_newFixture=1;bc.e_locked=2;Xa.e_sensorFlag=1;Xa.e_continuousFlag=2;Xa.e_islandFlag=4;Xa.e_toiFlag=8;Xa.e_touchingFlag=16;Xa.e_enabledFlag=32;Xa.e_filterFlag=64;Xa.s_input=new Dn;vj.circlePointA=new z;vj.circlePointB=new z;Ee.staticFix=aa.b2_maxManifoldPoints;Ee.s_worldManifold=new pj;Ee.s_psm=new vj;Oa.m_xf=new Ve;Oa.q=new z;Oa.p=new z;Oa.e=new z;Oa.temp1=new z;Oa.temp2=new z;Oa.m_centroidB=new z;Oa.mat=new vc;G.m_xf=new Ve;G.temp=new z;G.m_centroidB= +new z;G.m_lowerLimit=new z;G.m_upperLimit=new z;G.m_polygonB=new In;G.edgeAxis=new Fk;G.polygonAxis=new Fk;G.perp=new z;G.n=new z;G.rf=new Jn;G.mat=new vc;G.temp1=new z;G.temp2=new z;G.ie=[new nh,new nh];G.clipPoints1=[new nh,new nh];G.clipPoints2=[new nh,new nh];G.edge0=new z;G.edge1=new z;G.edge2=new z;G.m_normal=new z;G.m_normal0=new z;G.m_normal1=new z;G.m_normal2=new z;Qb.e_unknownJoint=0;Qb.e_revoluteJoint=1;Qb.e_prismaticJoint=2;Qb.e_distanceJoint=3;Qb.e_pulleyJoint=4;Qb.e_mouseJoint=5;Qb.e_gearJoint= +6;Qb.e_lineJoint=7;Qb.e_weldJoint=8;Qb.e_frictionJoint=9;Qb.e_inactiveLimit=0;Qb.e_atLowerLimit=1;Qb.e_atUpperLimit=2;Qb.e_equalLimits=3;Rc.CENTER="center";sg.b2_minPulleyLength=2;ag.tImpulse=new z;Ng.FPS_ONLY=!1;Ng.GRAPH_WIDTH=70;Ng.XPOS=69;Ng.GRAPH_HEIGHT=50;Ng.TEXT_HEIGHT=50;ug.bg=51;ug.fps=16776960;ug.ms=65280;ug.mem=65535;ug.memmax=16711792;ug.bgCSS="#000033";ug.msCSS="#00ff00";ug.fpsCSS="#ffff00";ug.memCSS="#00ffff";ug.memmaxCSS="#ff0070";vg.androidAdmobAppID="";vg.whirlID="";vg.whirlID1=""; +vg.iosAdmobAppID="";vg.ioswhirlID="";vg.ioswhirlID1="";vg.cpmstarID="";vg.newgroundsID="";vg.newgroundsKey="";vg.androidPublicKey="MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAyX0GlL9/fZk1U1cMQeeDqi4yolkVXF0TVfoebZRv3TN358zB6W+wzZVuP+beCPjIfT7O6QgQxHdm1Yxhz9sGzSd9Jh/Te+v74gVEgBuA26Ms3S4JDPO72agHekUVihkfS2vk4ca7Lr19k988H7z2x/PPNwGHWzv9u/N2VhPbr72uZOqIzz9J1BuRVSIXZLedZpZQiBhY9+Mc9hiYCvNg6gCI1OfxLeZO53ef6TDiIXCONHNFkpZUf8uh0jglYWHKZxx6oDTEoS1AtS4A4t1L8uNgjYpBMXsXcxA8NNrFZF0tcHAqAu5mJimXjJ1ZvGJW2w2X94Wfk52WnNUoObCHhwIDAQAB"; +ja.defines=function(a){a=new V;a.h.web="1";a.h.verbose="1";a.h.utf16="1";a.h.usingPoki="1";a.h.use_tilemap="1";a.h.tweenxcore="1.0.4";a.h["true"]="1";a.h.tools="8.0.1";a.h["target.utf16"]="true";a.h["target.unicode"]="true";a.h["target.name"]="js";a.h.stencyl="4.1.0";a.h["source-header"]="Generated by Haxe 4.2.1+bf9ff69";a.h.polygonal_ds="2.1.1";a.h["polygonal-ds"]="2.1.1";a.h.openfl_html5="1";a.h.openfl_enable_handle_error="1";a.h["openfl-html5"]="1";a.h["openfl-enable-handle-error"]="1";a.h.openfl= +"9.2.0";a.h.no_traces="1";a.h.no_compilation="1";a.h["no-compilation"]="1";a.h.mbs="0.2.1";a.h.lime_webgl="1";a.h.lime_html5="1";a.h.lime_howlerjs="1";a.h.lime_dom="1";a.h.lime_disable_assets_version="1";a.h.lime_canvas="1";a.h["lime-webgl"]="1";a.h["lime-html5"]="1";a.h["lime-howlerjs"]="1";a.h["lime-dom"]="1";a.h["lime-canvas"]="1";a.h.lime="8.0.1";a.h.js_es5="1";a.h.js_es="5";a.h["js-es5"]="1";a.h.js="1";a.h.html5="1";a.h.hscript="2.5.0";a.h.howlerjs="1";a.h.haxe_ver="4.201";a.h.haxe4="1";a.h.haxe3= +"1";a.h.haxe="4.2.1";a.h.debug_console="0.0.0";a.h["debug-console"]="0.0.0";a.h.debug="1";a.h.dce="std";a.h.cloner="1.0.0";a.h.box2d="0.0.0";a.h.actuate_manual_update="1";a.h.actuate_manual_time="1";return a}(this);Zc.TYPE_ADS=1;Zc.TYPE_PURCHASES=2;Zc.TYPE_GAMECENTER=3;Zc.TYPE_KEYBOARD=4;h.__meta__={fields:{getLayer:{deprecated:["Use getLayerById or getLayerByName"]}}};h.DOODAD="";h.INTERNAL_SHIFT="iSHIFT";h.INTERNAL_CTRL="iCTRL";h.INTERNAL_COMMAND="iCOMMAND";h.NO_PHYSICS=!1;h.DEBUG_DRAW=!1;h.IMG_BASE= +"";h.SCALE=1;h.checkedWideScreen=!1;h.isStandardIOS=!1;h.isExtendedIOS=!1;h.isIPhone6=!1;h.isIPhone6Plus=!1;h.isIPhoneX=!1;h.isIPhoneXMax=!1;h.isIPhoneXR=!1;h.isTabletIOS=!1;h.landscape=!1;h.limitCameraToScene=!0;h.paused=!1;h.started=!1;h.inFocus=!0;h.events=new Zc;h.ITERATIONS=3;h.physicsScale=10;h.preservePadding=!1;h.paddingLeft=0;h.paddingRight=0;h.paddingTop=0;h.paddingBottom=0;h.STEP_SIZE=10;h.MS_PER_SEC=1E3;h.elapsedTime=0;h.timeScale=1;h.totalElapsedTime=0;h.debug=!1;K.mouseX=0;K.mouseY= +0;K.mouseWheelDelta=0;K.multipleGamepadsEnabled=!1;K._enabled=!1;K._key=[];K._controlsToReset=[];K._controlMap=new V;K._keyInput=new Rn(new Sa,function(a){return a.keys});Ka.ANY=-1;Ka.LEFT=37;Ka.UP=38;Ka.RIGHT=39;Ka.DOWN=40;Ka.ENTER=13;Ka.CONTROL=17;Ka.COMMAND=15;Ka.SPACE=32;Ka.SHIFT=16;Ka.BACKSPACE=8;Ka.CAPS_LOCK=20;Ka.DELETE=46;Ka.END=35;Ka.ESCAPE=27;Ka.HOME=36;Ka.INSERT=45;Ka.TAB=9;Ka.PAGE_DOWN=34;Ka.PAGE_UP=33;Ka.LEFT_SQUARE_BRACKET=219;Ka.RIGHT_SQUARE_BRACKET=221;Ka.A=97;Ka.B=98;Ka.C=99;Ka.D= +100;Ka.E=101;Ka.F=102;Ka.G=103;Ka.H=104;Ka.I=105;Ka.J=106;Ka.K=107;Ka.L=108;Ka.M=109;Ka.N=110;Ka.O=111;Ka.P=112;Ka.Q=113;Ka.R=114;Ka.S=115;Ka.T=116;Ka.U=117;Ka.V=118;Ka.W=119;Ka.X=120;Ka.Y=121;Ka.Z=122;Ka.F1=112;Ka.F2=113;Ka.F3=114;Ka.F4=115;Ka.F5=116;Ka.F6=117;Ka.F7=118;Ka.F8=119;Ka.F9=120;Ka.F10=121;Ka.F11=122;Ka.F12=123;Ka.F13=124;Ka.F14=125;Ka.F15=126;Ka.DIGIT_0=48;Ka.DIGIT_1=49;Ka.DIGIT_2=50;Ka.DIGIT_3=51;Ka.DIGIT_4=52;Ka.DIGIT_5=53;Ka.DIGIT_6=54;Ka.DIGIT_7=55;Ka.DIGIT_8=56;Ka.DIGIT_9=57;Ka.NUMPAD_0= +96;Ka.NUMPAD_1=97;Ka.NUMPAD_2=98;Ka.NUMPAD_3=99;Ka.NUMPAD_4=100;Ka.NUMPAD_5=101;Ka.NUMPAD_6=102;Ka.NUMPAD_7=103;Ka.NUMPAD_8=104;Ka.NUMPAD_9=105;Ka.NUMPAD_ADD=107;Ka.NUMPAD_DECIMAL=110;Ka.NUMPAD_DIVIDE=111;Ka.NUMPAD_ENTER=108;Ka.NUMPAD_MULTIPLY=106;Ka.NUMPAD_SUBTRACT=109;Ka.keyboardNameMap=function(a){a=new V;a.h.NUMBER_0=48;a.h.NUMBER_1=49;a.h.NUMBER_2=50;a.h.NUMBER_3=51;a.h.NUMBER_4=52;a.h.NUMBER_5=53;a.h.NUMBER_6=54;a.h.NUMBER_7=55;a.h.NUMBER_8=56;a.h.NUMBER_9=57;a.h.A=65;a.h.B=66;a.h.C=67;a.h.D= +68;a.h.E=69;a.h.F=70;a.h.G=71;a.h.H=72;a.h.I=73;a.h.J=74;a.h.K=75;a.h.L=76;a.h.M=77;a.h.N=78;a.h.O=79;a.h.P=80;a.h.Q=81;a.h.R=82;a.h.S=83;a.h.T=84;a.h.U=85;a.h.V=86;a.h.W=87;a.h.X=88;a.h.Y=89;a.h.Z=90;a.h.NUMPAD_0=96;a.h.NUMPAD_1=97;a.h.NUMPAD_2=98;a.h.NUMPAD_3=99;a.h.NUMPAD_4=100;a.h.NUMPAD_5=101;a.h.NUMPAD_6=102;a.h.NUMPAD_7=103;a.h.NUMPAD_8=104;a.h.NUMPAD_9=105;a.h.NUMPAD_MULTIPLY=106;a.h.NUMPAD_ADD=107;a.h.NUMPAD_ENTER=108;a.h.NUMPAD_SUBTRACT=109;a.h.NUMPAD_DECIMAL=110;a.h.NUMPAD_DIVIDE=111;a.h.F1= +112;a.h.F2=113;a.h.F3=114;a.h.F4=115;a.h.F5=116;a.h.F6=117;a.h.F7=118;a.h.F8=119;a.h.F9=120;a.h.F10=121;a.h.F11=122;a.h.F12=123;a.h.F13=124;a.h.F14=125;a.h.F15=126;a.h.BACKSPACE=8;a.h.TAB=9;a.h.ALTERNATE=18;a.h.ENTER=13;a.h.COMMAND=15;a.h.SHIFT=16;a.h.CONTROL=17;a.h.BREAK=19;a.h.CAPS_LOCK=20;a.h.NUMPAD=21;a.h.ESCAPE=27;a.h.SPACE=32;a.h.PAGE_UP=33;a.h.PAGE_DOWN=34;a.h.END=35;a.h.HOME=36;a.h.LEFT=37;a.h.RIGHT=39;a.h.UP=38;a.h.DOWN=40;a.h.INSERT=45;a.h.DELETE=46;a.h.NUMLOCK=144;a.h.SEMICOLON=186;a.h.EQUAL= +187;a.h.COMMA=188;a.h.MINUS=189;a.h.PERIOD=190;a.h.SLASH=191;a.h.BACKQUOTE=192;a.h.LEFTBRACKET=219;a.h.BACKSLASH=220;a.h.RIGHTBRACKET=221;a.h.QUOTE=222;return a}(this);oa.__pool=new Qd(function(){return new oa},function(a){a.setTo(0,0)});fa.__pool=new Qd(function(){return new fa},function(a){a.setTo(0,0,0,0)});f.FRONT=0;f.MIDDLE=1;f.BACK=2;f.CHANNELS=32;f.mpx=0;f.mpy=0;f.mrx=0;f.mry=0;f.dummyVec=new z;f.imageApiAutoscale=!0;f.dummyRect=new fa(0,0,1,1);f.dummyPoint=new oa(0,0);f.BASE_64_ENCODINGS= +"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";f.BASE_64_PADDING="=";qh.fieldMaps=new V;Oc.AD_USER_OPEN=100;Oc.AD_USER_CLOSE=101;Oc.AD_LOADED=102;Oc.AD_FAILED=103;Oc.AD_CLICKED=104;Oc.FULL_AD_USER_OPEN=105;Oc.FULL_AD_USER_CLOSE=106;Oc.FULL_AD_LOADED=107;Oc.FULL_AD_FAILED=108;Oc.FULL_AD_CLICKED=109;Oc.PURCHASE_READY=200;Oc.PURCHASE_SUCCESS=201;Oc.PURCHASE_FAIL=202;Oc.PURCHASE_RESTORE=203;Oc.PURCHASE_CANCEL=204;Oc.PURCHASE_PRODUCTS_VERIFIED=205;Oc.PURCHASE_PRODUCT_VALIDATED=206; +Oc.GAME_CENTER_READY=300;Oc.GAME_CENTER_SCORE=301;Oc.GAME_CENTER_ACHIEVEMENT=302;Oc.GAME_CENTER_ACHIEVEMENT_RESET=303;Oc.GAME_CENTER_READY_FAIL=304;Oc.GAME_CENTER_SCORE_FAIL=305;Oc.GAME_CENTER_ACHIEVEMENT_FAIL=306;Oc.GAME_CENTER_ACHIEVEMENT_RESET_FAIL=307;Oc.KEYBOARD_EVENT=400;Oc.KEYBOARD_DONE=401;Oc.KEYBOARD_SHOW=402;Oc.KEYBOARD_HIDE=403;sb.TOUCH_POINT=1;sb.GESTURE=2;sb.GESTURE_CAPTURE=3;sb.PAN_X=1;sb.PAN_Y=2;sb.PAN_XY=3;sb.READY=0;sb.BEGIN=1;sb.TWO_FINGER_MOVE=2;sb.MOVE=4;sb.R2D=180/Math.PI;sb.SWIPE_SCROLL_TIME= +2;sb.SWIPE_SAMPLE_TIME=.2;sb.VELOCITY_RATIO=.25;sb.touchEvents="touchBegin touchEnd touchMove touchOver touchOut touchRollOver touchRollOut touchTap".split(" ");sb.mouseEvents="mouseDown mouseUp mouseMove mouseOver mouseOut rollOver rollOut click".split(" ");sb.geTouchEvents=["touchBegin","touchEnd","touchMove","touchOut"];sb.geMouseEvents=["mouseDown","mouseUp","mouseMove","mouseOut"];sb.initialized=!1;sb.moveToleSqr=1;sb.MAP="mouseDown rox_touch_begin mouseUp rox_touch_end mouseMove rox_touch_move mouseOver rox_touch_over mouseOut rox_touch_out rollOver rox_touch_roll_over rollOut rox_touch_roll_in click rox_touch_tap touchBegin rox_touch_begin touchEnd rox_touch_end touchMove rox_touch_move touchOver rox_touch_over touchOut rox_touch_out touchRollOver rox_touch_roll_over touchRollOut rox_touch_roll_in touchTap rox_touch_tap".split(" "); +sb.typeMap=function(a){a=new V;for(var b=0,c=sb.MAP.length>>1;b<c;){var d=b++;a.h[sb.MAP[d<<1]]=sb.MAP[(d<<1)+1]}return a}(this);la.ACTIVATE="activate";la.ADDED="added";la.ADDED_TO_STAGE="addedToStage";la.CANCEL="cancel";la.CHANGE="change";la.CLEAR="clear";la.CLOSE="close";la.COMPLETE="complete";la.CONNECT="connect";la.CONTEXT3D_CREATE="context3DCreate";la.COPY="copy";la.CUT="cut";la.DEACTIVATE="deactivate";la.ENTER_FRAME="enterFrame";la.EXIT_FRAME="exitFrame";la.FRAME_CONSTRUCTED="frameConstructed"; +la.FRAME_LABEL="frameLabel";la.FULLSCREEN="fullScreen";la.ID3="id3";la.INIT="init";la.MOUSE_LEAVE="mouseLeave";la.OPEN="open";la.PASTE="paste";la.REMOVED="removed";la.REMOVED_FROM_STAGE="removedFromStage";la.RENDER="render";la.RESIZE="resize";la.SCROLL="scroll";la.SELECT="select";la.SELECT_ALL="selectAll";la.SOUND_COMPLETE="soundComplete";la.TAB_CHILDREN_CHANGE="tabChildrenChange";la.TAB_ENABLED_CHANGE="tabEnabledChange";la.TAB_INDEX_CHANGE="tabIndexChange";la.TEXTURE_READY="textureReady";la.UNLOAD= +"unload";Sc.TOUCH_BEGIN="rox_touch_begin";Sc.TOUCH_END="rox_touch_end";Sc.TOUCH_MOVE="rox_touch_move";Sc.TOUCH_OVER="rox_touch_over";Sc.TOUCH_OUT="rox_touch_out";Sc.TOUCH_ROLL_OVER="rox_touch_roll_over";Sc.TOUCH_ROLL_OUT="rox_touch_roll_in";Sc.TOUCH_TAP="rox_touch_tap";Sc.GESTURE_TAP="rox_gesture_tap";Sc.GESTURE_LONG_PRESS="rox_gesture_long_press";Sc.GESTURE_PAN="rox_gesture_pan";Sc.GESTURE_SWIPE="rox_gesture_swipe";Sc.GESTURE_BEGIN="rox_gesture_begin";Sc.GESTURE_PINCH="rox_gesture_pinch";Sc.GESTURE_ROTATION= +"rox_gesture_rotation";Sc.GESTURE_END="rox_gesture_end";gl.stringBlendMap=function(a){a=new V;a.h.add=0;a.h.alpha=1;a.h.darken=2;a.h.difference=3;a.h.erase=4;a.h.hardlight=5;a.h.invert=6;a.h.lighten=8;a.h.multiply=9;a.h.normal=10;a.h.overlay=11;a.h.screen=12;a.h.subtract=14;return a}(this);Jd.drawnStringCache=new V;Jd.drawnStringCacheKeys=[];$c.MAX_TEXTURE_CAP=4096;zd._1X=new zd(1);zd._1_5X=new zd(1.5);zd._2X=new zd(2);zd._3X=new zd(3);zd._4X=new zd(4);xj.NO_SCALING=0;xj.FULLSCREEN=1;xj.STRETCH_TO_FIT= +2;xj.SCALE_TO_FIT_LETTERBOX=3;xj.SCALE_TO_FIT_FILL=4;xj.SCALE_TO_FIT_FULLSCREEN=5;xg._storedFonts=new V;xg.ZERO_POINT=new oa;Wn.LEFT=1;Wn.RIGHT=2;Wn.CENTER=3;ld.CONTEXT_LOST="glcontextlost";ld.CONTEXT_RESTORED="glcontextrestored";ld.vertexShader="\n#ifdef GL_ES\n\tprecision mediump float;\n#endif\n\nattribute vec4 aVertex;\n\nattribute vec2 aTexCoord;\nvarying vec2 vTexCoord;\n\nvoid main() {\n\tvTexCoord = aTexCoord;\n\tgl_Position = vec4(aVertex.x, aVertex.y, 0.0, 1.0);\n}";pb.IN="in";pb.OUT="out"; +pb.THROUGH="through";Ne.SLIDE_UP="up";Ne.SLIDE_DOWN="down";Ne.SLIDE_LEFT="left";Ne.SLIDE_RIGHT="right";L.BOOLEAN=new rf("boolean",1);L.INTEGER=new rf("integer",4);L.FLOAT=new rf("float",4);L.STRING=new rf("string",4);L.LIST=new rf("list",4);L.DYNAMIC=new rf("dynamic",8);L.NULL=new rf("null",0);Qh.basicTypes=function(a){a=[];a.push(L.BOOLEAN);a.push(L.INTEGER);a.push(L.FLOAT);a.push(L.STRING);a.push(L.LIST);a.push(L.DYNAMIC);a.push(L.NULL);rc.initializeType();Jc.initializeType();Vc.initializeType(); +a.push(rc.MBS_HEADER);a.push(Jc.MBS_TYPE_INFO);a.push(Vc.MBS_FIELD_INFO);return a}(this);tb.GROUP_OFFSET=1E6;tb.manifold=new pj;va.INHERIT_ID=-1E3;va.REGION_ID=-2;va.PLAYER_ID=0;va.TERRAIN_ID=1;va.DOODAD_ID=2;va.ACTOR_ID=3;Wa.fixedCenter=0;Wa.showWherePressed=1;Wa.viewOffsetX=0;Wa.viewOffsetY=0;Wa.initialized=!1;Nn.NORMAL_PHYSICS=0;Nn.SIMPLE_PHYSICS=1;Nn.MINIMAL_PHYSICS=2;kd.UNSET_ID=-1;jl.MAX_VERTICES=200;Ub.muted=!1;Ub.masterVolume=1;Mg.UNSET_ID=-1;me.allAnimations=[];qc.recycledCollisions=[];qc.collisionResponses= +new Sa;Kd.freedCollisionPoints=[];If.WHITE=-1;If.TRANSPARENT=-2;Af.infoArray=[];Fe.NO_AUTOTILE_DATA=0;Fe.CORNER_TL=1;Fe.CORNER_TR=2;Fe.CORNER_BR=4;Fe.CORNER_BL=8;Fe.SIDE_L=16;Fe.SIDE_T=32;Fe.SIDE_R=64;Fe.SIDE_B=128;Ic.dummyRect=new fa;ie.TILESET_CACHE_MULTIPLIER=1E6;ie.cacheSource=new Sa;ie.autotileFlagPointMap=function(a){a=new Sa;var b=Fe.CORNER_TL,c=new oa(-1,-1);a.h[b]=c;b=Fe.CORNER_TR;c=new oa(1,-1);a.h[b]=c;b=Fe.CORNER_BL;c=new oa(-1,1);a.h[b]=c;b=Fe.CORNER_BR;c=new oa(1,1);a.h[b]=c;b=Fe.SIDE_T; +c=new oa(0,-1);a.h[b]=c;b=Fe.SIDE_B;c=new oa(0,1);a.h[b]=c;b=Fe.SIDE_L;c=new oa(-1,0);a.h[b]=c;b=Fe.SIDE_R;c=new oa(1,0);a.h[b]=c;return a}(this);qf.temp=new fa;Kc.BLACK=-16777216;Kc.WHITE=-1;Kc.RED=-65536;Kc.GREEN=-16711936;Kc.BLUE=-16776961;Kc.CYAN=-16711681;Kc.MAGENTA=-65281;Kc.YELLOW=-256;Ta.LUMA_R=.212671;Ta.LUMA_G=.71516;Ta.LUMA_B=.072169;Ta.LUMA_R2=.3086;Ta.LUMA_G2=.6094;Ta.LUMA_B2=.082;Ta.INV3=.3333333333333333;Cd.BLACK=0;Cd.WHITE=16777215;Cd.RED=16711680;Cd.GREEN=65280;Cd.BLUE=255;Cd.CYAN= +65535;Cd.MAGENTA=16711935;Cd.YELLOW=16776960;hf.__meta__={fields:{clone:{SuppressWarnings:["checkstyle:FieldDocComment"]}}};Th.__identity=new Th;Aa.__meta__={fields:{equals:{SuppressWarnings:["checkstyle:FieldDocComment"]},to3DString:{SuppressWarnings:["checkstyle:FieldDocComment"]},toMozString:{SuppressWarnings:["checkstyle:FieldDocComment"]}}};Aa.__identity=new Aa;Aa.__pool=new Qd(function(){return new Aa},function(a){a.identity()});Aa.__matrix3=new Th;Gc.__pool=new Qd(function(){return new Gc}, +function(a){a.__identity()});S.INTEGER_MAX=1E8;S.NUMBER_MAX_VALUE=1.79769313486231E308;S.blackColor=-16777216;S.rate=1;S.camera=new oa;S.cloner=new Mn;S._bitmap=new V;S._seed=0;S._volume=1;S._pan=0;S._soundTransform=new hf;S.DEG=57.29577951308402;S.RAD=.01745329251994278;S.point=new oa;S.point2=new oa;S.zero=new oa;S.rect=new fa;S.matrix=new Aa;S.sprite=new ta;S.collision=new qc;ia.linear=new Jl;ia.sineIn=new Wl;ia.sineOut=new Yl;ia.sineInOut=new Xl;ia.sineOutIn=new Zl;ia.quadIn=new Kl;ia.quadOut= +new Ml;ia.quadInOut=new Ll;ia.quadOutIn=new Nl;ia.cubicIn=new xl;ia.cubicOut=new zl;ia.cubicInOut=new yl;ia.cubicOutIn=new Al;ia.quartIn=new Ol;ia.quartOut=new Ql;ia.quartInOut=new Pl;ia.quartOutIn=new Rl;ia.quintIn=new Sl;ia.quintOut=new Ul;ia.quintInOut=new Tl;ia.quintOutIn=new Vl;ia.expoIn=new Fl;ia.expoOut=new Hl;ia.expoInOut=new Gl;ia.expoOutIn=new Il;ia.circIn=new tl;ia.circOut=new vl;ia.circInOut=new ul;ia.circOutIn=new wl;ia.bounceIn=new pl;ia.bounceOut=new rl;ia.bounceInOut=new ql;ia.bounceOutIn= +new sl;ia.backIn=new ll;ia.backOut=new nl;ia.backInOut=new ml;ia.backOutIn=new ol;ia.elasticIn=new Bl;ia.elasticOut=new Dl;ia.elasticInOut=new Cl;ia.elasticOutIn=new El;ia.warpOut=new bm;ia.warpIn=new $l;ia.warpInOut=new am;ia.warpOutIn=new cm;Uh.PI=3.141592653589793;Uh.PI_H=1.5707963267948966;Uh.LN_2=.6931471805599453;Uh.LN_2_10=6.931471805599453;Uh.overshoot=1.70158;Uh.amplitude=1;Uh.period=3E-4;jb.activeObjects=[];jb.finishedObjects=[];ye.USE_CACHE=!1;ye.USE_ENUM_INDEX=!1;ye.BASE64="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789%:"; +Ge.DEFAULT_RESOLVER=new em;Ge.BASE64="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789%:";vh.CHARS="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";vh.BYTES=cb.ofString(vh.CHARS);Vd.i64tmp=new Ya(0,0);Vd.helper=new DataView(new ArrayBuffer(8));hh.escapes=function(a){a=new V;a.h.lt="<";a.h.gt=">";a.h.amp="&";a.h.quot='"';a.h.apos="'";return a}(this);ze.LEN_EXTRA_BITS_TBL=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,-1,-1];ze.LEN_BASE_VAL_TBL=[3,4,5,6,7, +8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258];ze.DIST_EXTRA_BITS_TBL=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,-1,-1];ze.DIST_BASE_VAL_TBL=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577];ze.CODE_LENGTHS_POS=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];bb.OPTION_REVOKE_URL=1;bb.activeRequests=0;bb.requestLimit=17;bb.requestQueue=new id;nb.dummyCharacter="\u007f";nb.windowID= +0;Pf.DICTIONARY="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");Pf.EXTENDED_DICTIONARY=function(a){a=[];for(var b=0,c=Pf.DICTIONARY;b<c.length;){var d=c[b];++b;for(var e=0,f=Pf.DICTIONARY;e<f.length;){var h=f[e];++e;a.push(d+h)}}return a}(this);Ze.MUL_TABLE=[1,171,205,293,57,373,79,137,241,27,391,357,41,19,283,265,497,469,443,421,25,191,365,349,335,161,155,149,9,278,269,261,505,245,475,231,449,437,213,415,405,395,193,377,369,361,353,345,169,331,325,319,313,307,301,37, +145,285,281,69,271,267,263,259,509,501,493,243,479,118,465,459,113,446,55,435,429,423,209,413,51,403,199,393,97,3,379,375,371,367,363,359,355,351,347,43,85,337,333,165,327,323,5,317,157,311,77,305,303,75,297,294,73,289,287,71,141,279,277,275,68,135,67,133,33,262,260,129,511,507,503,499,495,491,61,121,481,477,237,235,467,232,115,457,227,451,7,445,221,439,218,433,215,427,425,211,419,417,207,411,409,203,202,401,399,396,197,49,389,387,385,383,95,189,47,187,93,185,23,183,91,181,45,179,89,177,11,175,87, +173,345,343,341,339,337,21,167,83,331,329,327,163,81,323,321,319,159,79,315,313,39,155,309,307,153,305,303,151,75,299,149,37,295,147,73,291,145,289,287,143,285,71,141,281,35,279,139,69,275,137,273,17,271,135,269,267,133,265,33,263,131,261,130,259,129,257,1];Ze.SHG_TABLE=[0,9,10,11,9,12,10,11,12,9,13,13,10,9,13,13,14,14,14,14,10,13,14,14,14,13,13,13,9,14,14,14,15,14,15,14,15,15,14,15,15,15,14,15,15,15,15,15,14,15,15,15,15,15,15,12,14,15,15,13,15,15,15,15,16,16,16,15,16,14,16,16,14,16,13,16,16,16,15, +16,13,16,15,16,14,9,16,16,16,16,16,16,16,16,16,13,14,16,16,15,16,16,10,16,15,16,14,16,16,14,16,16,14,16,16,14,15,16,16,16,14,15,14,15,13,16,16,15,17,17,17,17,17,17,14,15,17,17,16,16,17,16,15,17,16,17,11,17,16,17,16,17,16,17,17,16,17,17,16,17,17,16,16,17,17,17,16,14,17,17,17,17,15,16,14,16,15,16,13,16,15,16,14,16,15,16,12,16,15,16,17,17,17,17,17,13,16,15,17,17,17,16,15,17,17,17,16,15,17,17,14,16,17,17,16,17,17,16,15,17,16,14,17,16,15,17,16,17,17,16,17,15,16,17,14,17,16,15,17,16,17,13,17,16,17,17,16, +17,14,17,16,17,16,17,16,17,9];Rf.minCodePoint=0;Rf.maxCodePoint=1114111;Rf.minHighSurrogate=55296;Rf.maxHighSurrogate=56319;Rf.minLowSurrogate=56320;Rf.maxLowSurrogate=57343;r.DEPTH_BUFFER_BIT=256;r.STENCIL_BUFFER_BIT=1024;r.COLOR_BUFFER_BIT=16384;r.POINTS=0;r.LINES=1;r.LINE_LOOP=2;r.LINE_STRIP=3;r.TRIANGLES=4;r.TRIANGLE_STRIP=5;r.TRIANGLE_FAN=6;r.ZERO=0;r.ONE=1;r.SRC_COLOR=768;r.ONE_MINUS_SRC_COLOR=769;r.SRC_ALPHA=770;r.ONE_MINUS_SRC_ALPHA=771;r.DST_ALPHA=772;r.ONE_MINUS_DST_ALPHA=773;r.DST_COLOR= +774;r.ONE_MINUS_DST_COLOR=775;r.SRC_ALPHA_SATURATE=776;r.FUNC_ADD=32774;r.BLEND_EQUATION=32777;r.BLEND_EQUATION_RGB=32777;r.BLEND_EQUATION_ALPHA=34877;r.FUNC_SUBTRACT=32778;r.FUNC_REVERSE_SUBTRACT=32779;r.BLEND_DST_RGB=32968;r.BLEND_SRC_RGB=32969;r.BLEND_DST_ALPHA=32970;r.BLEND_SRC_ALPHA=32971;r.CONSTANT_COLOR=32769;r.ONE_MINUS_CONSTANT_COLOR=32770;r.CONSTANT_ALPHA=32771;r.ONE_MINUS_CONSTANT_ALPHA=32772;r.BLEND_COLOR=32773;r.ARRAY_BUFFER=34962;r.ELEMENT_ARRAY_BUFFER=34963;r.ARRAY_BUFFER_BINDING=34964; +r.ELEMENT_ARRAY_BUFFER_BINDING=34965;r.STREAM_DRAW=35040;r.STATIC_DRAW=35044;r.DYNAMIC_DRAW=35048;r.BUFFER_SIZE=34660;r.BUFFER_USAGE=34661;r.CURRENT_VERTEX_ATTRIB=34342;r.FRONT=1028;r.BACK=1029;r.FRONT_AND_BACK=1032;r.CULL_FACE=2884;r.BLEND=3042;r.DITHER=3024;r.STENCIL_TEST=2960;r.DEPTH_TEST=2929;r.SCISSOR_TEST=3089;r.POLYGON_OFFSET_FILL=32823;r.SAMPLE_ALPHA_TO_COVERAGE=32926;r.SAMPLE_COVERAGE=32928;r.NO_ERROR=0;r.INVALID_ENUM=1280;r.INVALID_VALUE=1281;r.INVALID_OPERATION=1282;r.OUT_OF_MEMORY=1285; +r.CW=2304;r.CCW=2305;r.LINE_WIDTH=2849;r.ALIASED_POINT_SIZE_RANGE=33901;r.ALIASED_LINE_WIDTH_RANGE=33902;r.CULL_FACE_MODE=2885;r.FRONT_FACE=2886;r.DEPTH_RANGE=2928;r.DEPTH_WRITEMASK=2930;r.DEPTH_CLEAR_VALUE=2931;r.DEPTH_FUNC=2932;r.STENCIL_CLEAR_VALUE=2961;r.STENCIL_FUNC=2962;r.STENCIL_FAIL=2964;r.STENCIL_PASS_DEPTH_FAIL=2965;r.STENCIL_PASS_DEPTH_PASS=2966;r.STENCIL_REF=2967;r.STENCIL_VALUE_MASK=2963;r.STENCIL_WRITEMASK=2968;r.STENCIL_BACK_FUNC=34816;r.STENCIL_BACK_FAIL=34817;r.STENCIL_BACK_PASS_DEPTH_FAIL= +34818;r.STENCIL_BACK_PASS_DEPTH_PASS=34819;r.STENCIL_BACK_REF=36003;r.STENCIL_BACK_VALUE_MASK=36004;r.STENCIL_BACK_WRITEMASK=36005;r.VIEWPORT=2978;r.SCISSOR_BOX=3088;r.COLOR_CLEAR_VALUE=3106;r.COLOR_WRITEMASK=3107;r.UNPACK_ALIGNMENT=3317;r.PACK_ALIGNMENT=3333;r.MAX_TEXTURE_SIZE=3379;r.MAX_VIEWPORT_DIMS=3386;r.SUBPIXEL_BITS=3408;r.RED_BITS=3410;r.GREEN_BITS=3411;r.BLUE_BITS=3412;r.ALPHA_BITS=3413;r.DEPTH_BITS=3414;r.STENCIL_BITS=3415;r.POLYGON_OFFSET_UNITS=10752;r.POLYGON_OFFSET_FACTOR=32824;r.TEXTURE_BINDING_2D= +32873;r.SAMPLE_BUFFERS=32936;r.SAMPLES=32937;r.SAMPLE_COVERAGE_VALUE=32938;r.SAMPLE_COVERAGE_INVERT=32939;r.NUM_COMPRESSED_TEXTURE_FORMATS=34466;r.COMPRESSED_TEXTURE_FORMATS=34467;r.DONT_CARE=4352;r.FASTEST=4353;r.NICEST=4354;r.GENERATE_MIPMAP_HINT=33170;r.BYTE=5120;r.UNSIGNED_BYTE=5121;r.SHORT=5122;r.UNSIGNED_SHORT=5123;r.INT=5124;r.UNSIGNED_INT=5125;r.FLOAT=5126;r.DEPTH_COMPONENT=6402;r.ALPHA=6406;r.RGB=6407;r.RGBA=6408;r.LUMINANCE=6409;r.LUMINANCE_ALPHA=6410;r.UNSIGNED_SHORT_4_4_4_4=32819;r.UNSIGNED_SHORT_5_5_5_1= +32820;r.UNSIGNED_SHORT_5_6_5=33635;r.FRAGMENT_SHADER=35632;r.VERTEX_SHADER=35633;r.MAX_VERTEX_ATTRIBS=34921;r.MAX_VERTEX_UNIFORM_VECTORS=36347;r.MAX_VARYING_VECTORS=36348;r.MAX_COMBINED_TEXTURE_IMAGE_UNITS=35661;r.MAX_VERTEX_TEXTURE_IMAGE_UNITS=35660;r.MAX_TEXTURE_IMAGE_UNITS=34930;r.MAX_FRAGMENT_UNIFORM_VECTORS=36349;r.SHADER_TYPE=35663;r.DELETE_STATUS=35712;r.LINK_STATUS=35714;r.VALIDATE_STATUS=35715;r.ATTACHED_SHADERS=35717;r.ACTIVE_UNIFORMS=35718;r.ACTIVE_ATTRIBUTES=35721;r.SHADING_LANGUAGE_VERSION= +35724;r.CURRENT_PROGRAM=35725;r.NEVER=512;r.LESS=513;r.EQUAL=514;r.LEQUAL=515;r.GREATER=516;r.NOTEQUAL=517;r.GEQUAL=518;r.ALWAYS=519;r.KEEP=7680;r.REPLACE=7681;r.INCR=7682;r.DECR=7683;r.INVERT=5386;r.INCR_WRAP=34055;r.DECR_WRAP=34056;r.VENDOR=7936;r.RENDERER=7937;r.VERSION=7938;r.EXTENSIONS=7939;r.NEAREST=9728;r.LINEAR=9729;r.NEAREST_MIPMAP_NEAREST=9984;r.LINEAR_MIPMAP_NEAREST=9985;r.NEAREST_MIPMAP_LINEAR=9986;r.LINEAR_MIPMAP_LINEAR=9987;r.TEXTURE_MAG_FILTER=10240;r.TEXTURE_MIN_FILTER=10241;r.TEXTURE_WRAP_S= +10242;r.TEXTURE_WRAP_T=10243;r.TEXTURE_2D=3553;r.TEXTURE=5890;r.TEXTURE_CUBE_MAP=34067;r.TEXTURE_BINDING_CUBE_MAP=34068;r.TEXTURE_CUBE_MAP_POSITIVE_X=34069;r.TEXTURE_CUBE_MAP_NEGATIVE_X=34070;r.TEXTURE_CUBE_MAP_POSITIVE_Y=34071;r.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072;r.TEXTURE_CUBE_MAP_POSITIVE_Z=34073;r.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074;r.MAX_CUBE_MAP_TEXTURE_SIZE=34076;r.TEXTURE0=33984;r.TEXTURE1=33985;r.TEXTURE2=33986;r.TEXTURE3=33987;r.TEXTURE4=33988;r.TEXTURE5=33989;r.TEXTURE6=33990;r.TEXTURE7=33991; +r.TEXTURE8=33992;r.TEXTURE9=33993;r.TEXTURE10=33994;r.TEXTURE11=33995;r.TEXTURE12=33996;r.TEXTURE13=33997;r.TEXTURE14=33998;r.TEXTURE15=33999;r.TEXTURE16=34E3;r.TEXTURE17=34001;r.TEXTURE18=34002;r.TEXTURE19=34003;r.TEXTURE20=34004;r.TEXTURE21=34005;r.TEXTURE22=34006;r.TEXTURE23=34007;r.TEXTURE24=34008;r.TEXTURE25=34009;r.TEXTURE26=34010;r.TEXTURE27=34011;r.TEXTURE28=34012;r.TEXTURE29=34013;r.TEXTURE30=34014;r.TEXTURE31=34015;r.ACTIVE_TEXTURE=34016;r.REPEAT=10497;r.CLAMP_TO_EDGE=33071;r.MIRRORED_REPEAT= +33648;r.FLOAT_VEC2=35664;r.FLOAT_VEC3=35665;r.FLOAT_VEC4=35666;r.INT_VEC2=35667;r.INT_VEC3=35668;r.INT_VEC4=35669;r.BOOL=35670;r.BOOL_VEC2=35671;r.BOOL_VEC3=35672;r.BOOL_VEC4=35673;r.FLOAT_MAT2=35674;r.FLOAT_MAT3=35675;r.FLOAT_MAT4=35676;r.SAMPLER_2D=35678;r.SAMPLER_CUBE=35680;r.VERTEX_ATTRIB_ARRAY_ENABLED=34338;r.VERTEX_ATTRIB_ARRAY_SIZE=34339;r.VERTEX_ATTRIB_ARRAY_STRIDE=34340;r.VERTEX_ATTRIB_ARRAY_TYPE=34341;r.VERTEX_ATTRIB_ARRAY_NORMALIZED=34922;r.VERTEX_ATTRIB_ARRAY_POINTER=34373;r.VERTEX_ATTRIB_ARRAY_BUFFER_BINDING= +34975;r.IMPLEMENTATION_COLOR_READ_TYPE=35738;r.IMPLEMENTATION_COLOR_READ_FORMAT=35739;r.VERTEX_PROGRAM_POINT_SIZE=34370;r.POINT_SPRITE=34913;r.COMPILE_STATUS=35713;r.LOW_FLOAT=36336;r.MEDIUM_FLOAT=36337;r.HIGH_FLOAT=36338;r.LOW_INT=36339;r.MEDIUM_INT=36340;r.HIGH_INT=36341;r.FRAMEBUFFER=36160;r.RENDERBUFFER=36161;r.RGBA4=32854;r.RGB5_A1=32855;r.RGB565=36194;r.DEPTH_COMPONENT16=33189;r.STENCIL_INDEX=6401;r.STENCIL_INDEX8=36168;r.DEPTH_STENCIL=34041;r.RENDERBUFFER_WIDTH=36162;r.RENDERBUFFER_HEIGHT= +36163;r.RENDERBUFFER_INTERNAL_FORMAT=36164;r.RENDERBUFFER_RED_SIZE=36176;r.RENDERBUFFER_GREEN_SIZE=36177;r.RENDERBUFFER_BLUE_SIZE=36178;r.RENDERBUFFER_ALPHA_SIZE=36179;r.RENDERBUFFER_DEPTH_SIZE=36180;r.RENDERBUFFER_STENCIL_SIZE=36181;r.FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE=36048;r.FRAMEBUFFER_ATTACHMENT_OBJECT_NAME=36049;r.FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL=36050;r.FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE=36051;r.COLOR_ATTACHMENT0=36064;r.DEPTH_ATTACHMENT=36096;r.STENCIL_ATTACHMENT=36128;r.DEPTH_STENCIL_ATTACHMENT= +33306;r.NONE=0;r.FRAMEBUFFER_COMPLETE=36053;r.FRAMEBUFFER_INCOMPLETE_ATTACHMENT=36054;r.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT=36055;r.FRAMEBUFFER_INCOMPLETE_DIMENSIONS=36057;r.FRAMEBUFFER_UNSUPPORTED=36061;r.FRAMEBUFFER_BINDING=36006;r.RENDERBUFFER_BINDING=36007;r.MAX_RENDERBUFFER_SIZE=34024;r.INVALID_FRAMEBUFFER_OPERATION=1286;r.UNPACK_FLIP_Y_WEBGL=37440;r.UNPACK_PREMULTIPLY_ALPHA_WEBGL=37441;r.CONTEXT_LOST_WEBGL=37442;r.UNPACK_COLORSPACE_CONVERSION_WEBGL=37443;r.BROWSER_DEFAULT_WEBGL=37444; +r.READ_BUFFER=3074;r.UNPACK_ROW_LENGTH=3314;r.UNPACK_SKIP_ROWS=3315;r.UNPACK_SKIP_PIXELS=3316;r.PACK_ROW_LENGTH=3330;r.PACK_SKIP_ROWS=3331;r.PACK_SKIP_PIXELS=3332;r.TEXTURE_BINDING_3D=32874;r.UNPACK_SKIP_IMAGES=32877;r.UNPACK_IMAGE_HEIGHT=32878;r.MAX_3D_TEXTURE_SIZE=32883;r.MAX_ELEMENTS_VERTICES=33E3;r.MAX_ELEMENTS_INDICES=33001;r.MAX_TEXTURE_LOD_BIAS=34045;r.MAX_FRAGMENT_UNIFORM_COMPONENTS=35657;r.MAX_VERTEX_UNIFORM_COMPONENTS=35658;r.MAX_ARRAY_TEXTURE_LAYERS=35071;r.MIN_PROGRAM_TEXEL_OFFSET=35076; +r.MAX_PROGRAM_TEXEL_OFFSET=35077;r.MAX_VARYING_COMPONENTS=35659;r.FRAGMENT_SHADER_DERIVATIVE_HINT=35723;r.RASTERIZER_DISCARD=35977;r.VERTEX_ARRAY_BINDING=34229;r.MAX_VERTEX_OUTPUT_COMPONENTS=37154;r.MAX_FRAGMENT_INPUT_COMPONENTS=37157;r.MAX_SERVER_WAIT_TIMEOUT=37137;r.MAX_ELEMENT_INDEX=36203;r.RED=6403;r.RGB8=32849;r.RGBA8=32856;r.RGB10_A2=32857;r.TEXTURE_3D=32879;r.TEXTURE_WRAP_R=32882;r.TEXTURE_MIN_LOD=33082;r.TEXTURE_MAX_LOD=33083;r.TEXTURE_BASE_LEVEL=33084;r.TEXTURE_MAX_LEVEL=33085;r.TEXTURE_COMPARE_MODE= +34892;r.TEXTURE_COMPARE_FUNC=34893;r.SRGB=35904;r.SRGB8=35905;r.SRGB8_ALPHA8=35907;r.COMPARE_REF_TO_TEXTURE=34894;r.RGBA32F=34836;r.RGB32F=34837;r.RGBA16F=34842;r.RGB16F=34843;r.TEXTURE_2D_ARRAY=35866;r.TEXTURE_BINDING_2D_ARRAY=35869;r.R11F_G11F_B10F=35898;r.RGB9_E5=35901;r.RGBA32UI=36208;r.RGB32UI=36209;r.RGBA16UI=36214;r.RGB16UI=36215;r.RGBA8UI=36220;r.RGB8UI=36221;r.RGBA32I=36226;r.RGB32I=36227;r.RGBA16I=36232;r.RGB16I=36233;r.RGBA8I=36238;r.RGB8I=36239;r.RED_INTEGER=36244;r.RGB_INTEGER=36248; +r.RGBA_INTEGER=36249;r.R8=33321;r.RG8=33323;r.R16F=33325;r.R32F=33326;r.RG16F=33327;r.RG32F=33328;r.R8I=33329;r.R8UI=33330;r.R16I=33331;r.R16UI=33332;r.R32I=33333;r.R32UI=33334;r.RG8I=33335;r.RG8UI=33336;r.RG16I=33337;r.RG16UI=33338;r.RG32I=33339;r.RG32UI=33340;r.R8_SNORM=36756;r.RG8_SNORM=36757;r.RGB8_SNORM=36758;r.RGBA8_SNORM=36759;r.RGB10_A2UI=36975;r.TEXTURE_IMMUTABLE_FORMAT=37167;r.TEXTURE_IMMUTABLE_LEVELS=33503;r.UNSIGNED_INT_2_10_10_10_REV=33640;r.UNSIGNED_INT_10F_11F_11F_REV=35899;r.UNSIGNED_INT_5_9_9_9_REV= +35902;r.FLOAT_32_UNSIGNED_INT_24_8_REV=36269;r.UNSIGNED_INT_24_8=34042;r.HALF_FLOAT=5131;r.RG=33319;r.RG_INTEGER=33320;r.INT_2_10_10_10_REV=36255;r.CURRENT_QUERY=34917;r.QUERY_RESULT=34918;r.QUERY_RESULT_AVAILABLE=34919;r.ANY_SAMPLES_PASSED=35887;r.ANY_SAMPLES_PASSED_CONSERVATIVE=36202;r.MAX_DRAW_BUFFERS=34852;r.DRAW_BUFFER0=34853;r.DRAW_BUFFER1=34854;r.DRAW_BUFFER2=34855;r.DRAW_BUFFER3=34856;r.DRAW_BUFFER4=34857;r.DRAW_BUFFER5=34858;r.DRAW_BUFFER6=34859;r.DRAW_BUFFER7=34860;r.DRAW_BUFFER8=34861; +r.DRAW_BUFFER9=34862;r.DRAW_BUFFER10=34863;r.DRAW_BUFFER11=34864;r.DRAW_BUFFER12=34865;r.DRAW_BUFFER13=34866;r.DRAW_BUFFER14=34867;r.DRAW_BUFFER15=34868;r.MAX_COLOR_ATTACHMENTS=36063;r.COLOR_ATTACHMENT1=36065;r.COLOR_ATTACHMENT2=36066;r.COLOR_ATTACHMENT3=36067;r.COLOR_ATTACHMENT4=36068;r.COLOR_ATTACHMENT5=36069;r.COLOR_ATTACHMENT6=36070;r.COLOR_ATTACHMENT7=36071;r.COLOR_ATTACHMENT8=36072;r.COLOR_ATTACHMENT9=36073;r.COLOR_ATTACHMENT10=36074;r.COLOR_ATTACHMENT11=36075;r.COLOR_ATTACHMENT12=36076;r.COLOR_ATTACHMENT13= +36077;r.COLOR_ATTACHMENT14=36078;r.COLOR_ATTACHMENT15=36079;r.SAMPLER_3D=35679;r.SAMPLER_2D_SHADOW=35682;r.SAMPLER_2D_ARRAY=36289;r.SAMPLER_2D_ARRAY_SHADOW=36292;r.SAMPLER_CUBE_SHADOW=36293;r.INT_SAMPLER_2D=36298;r.INT_SAMPLER_3D=36299;r.INT_SAMPLER_CUBE=36300;r.INT_SAMPLER_2D_ARRAY=36303;r.UNSIGNED_INT_SAMPLER_2D=36306;r.UNSIGNED_INT_SAMPLER_3D=36307;r.UNSIGNED_INT_SAMPLER_CUBE=36308;r.UNSIGNED_INT_SAMPLER_2D_ARRAY=36311;r.MAX_SAMPLES=36183;r.SAMPLER_BINDING=35097;r.PIXEL_PACK_BUFFER=35051;r.PIXEL_UNPACK_BUFFER= +35052;r.PIXEL_PACK_BUFFER_BINDING=35053;r.PIXEL_UNPACK_BUFFER_BINDING=35055;r.COPY_READ_BUFFER=36662;r.COPY_WRITE_BUFFER=36663;r.COPY_READ_BUFFER_BINDING=36662;r.COPY_WRITE_BUFFER_BINDING=36663;r.FLOAT_MAT2x3=35685;r.FLOAT_MAT2x4=35686;r.FLOAT_MAT3x2=35687;r.FLOAT_MAT3x4=35688;r.FLOAT_MAT4x2=35689;r.FLOAT_MAT4x3=35690;r.UNSIGNED_INT_VEC2=36294;r.UNSIGNED_INT_VEC3=36295;r.UNSIGNED_INT_VEC4=36296;r.UNSIGNED_NORMALIZED=35863;r.SIGNED_NORMALIZED=36764;r.VERTEX_ATTRIB_ARRAY_INTEGER=35069;r.VERTEX_ATTRIB_ARRAY_DIVISOR= +35070;r.TRANSFORM_FEEDBACK_BUFFER_MODE=35967;r.MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS=35968;r.TRANSFORM_FEEDBACK_VARYINGS=35971;r.TRANSFORM_FEEDBACK_BUFFER_START=35972;r.TRANSFORM_FEEDBACK_BUFFER_SIZE=35973;r.TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN=35976;r.MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS=35978;r.MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS=35979;r.INTERLEAVED_ATTRIBS=35980;r.SEPARATE_ATTRIBS=35981;r.TRANSFORM_FEEDBACK_BUFFER=35982;r.TRANSFORM_FEEDBACK_BUFFER_BINDING=35983;r.TRANSFORM_FEEDBACK= +36386;r.TRANSFORM_FEEDBACK_PAUSED=36387;r.TRANSFORM_FEEDBACK_ACTIVE=36388;r.TRANSFORM_FEEDBACK_BINDING=36389;r.FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING=33296;r.FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE=33297;r.FRAMEBUFFER_ATTACHMENT_RED_SIZE=33298;r.FRAMEBUFFER_ATTACHMENT_GREEN_SIZE=33299;r.FRAMEBUFFER_ATTACHMENT_BLUE_SIZE=33300;r.FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE=33301;r.FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE=33302;r.FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE=33303;r.FRAMEBUFFER_DEFAULT=33304;r.DEPTH24_STENCIL8=35056; +r.DRAW_FRAMEBUFFER_BINDING=36006;r.READ_FRAMEBUFFER=36008;r.DRAW_FRAMEBUFFER=36009;r.READ_FRAMEBUFFER_BINDING=36010;r.RENDERBUFFER_SAMPLES=36011;r.FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER=36052;r.FRAMEBUFFER_INCOMPLETE_MULTISAMPLE=36182;r.UNIFORM_BUFFER=35345;r.UNIFORM_BUFFER_BINDING=35368;r.UNIFORM_BUFFER_START=35369;r.UNIFORM_BUFFER_SIZE=35370;r.MAX_VERTEX_UNIFORM_BLOCKS=35371;r.MAX_FRAGMENT_UNIFORM_BLOCKS=35373;r.MAX_COMBINED_UNIFORM_BLOCKS=35374;r.MAX_UNIFORM_BUFFER_BINDINGS=35375;r.MAX_UNIFORM_BLOCK_SIZE= +35376;r.MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS=35377;r.MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS=35379;r.UNIFORM_BUFFER_OFFSET_ALIGNMENT=35380;r.ACTIVE_UNIFORM_BLOCKS=35382;r.UNIFORM_TYPE=35383;r.UNIFORM_SIZE=35384;r.UNIFORM_BLOCK_INDEX=35386;r.UNIFORM_OFFSET=35387;r.UNIFORM_ARRAY_STRIDE=35388;r.UNIFORM_MATRIX_STRIDE=35389;r.UNIFORM_IS_ROW_MAJOR=35390;r.UNIFORM_BLOCK_BINDING=35391;r.UNIFORM_BLOCK_DATA_SIZE=35392;r.UNIFORM_BLOCK_ACTIVE_UNIFORMS=35394;r.UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES=35395;r.UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER= +35396;r.UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER=35398;r.OBJECT_TYPE=37138;r.SYNC_CONDITION=37139;r.SYNC_STATUS=37140;r.SYNC_FLAGS=37141;r.SYNC_FENCE=37142;r.SYNC_GPU_COMMANDS_COMPLETE=37143;r.UNSIGNALED=37144;r.SIGNALED=37145;r.ALREADY_SIGNALED=37146;r.TIMEOUT_EXPIRED=37147;r.CONDITION_SATISFIED=37148;r.WAIT_FAILED=37149;r.SYNC_FLUSH_COMMANDS_BIT=1;r.COLOR=6144;r.DEPTH=6145;r.STENCIL=6146;r.MIN=32775;r.MAX=32776;r.DEPTH_COMPONENT24=33190;r.STREAM_READ=35041;r.STREAM_COPY=35042;r.STATIC_READ=35045; +r.STATIC_COPY=35046;r.DYNAMIC_READ=35049;r.DYNAMIC_COPY=35050;r.DEPTH_COMPONENT32F=36012;r.DEPTH32F_STENCIL8=36013;r.INVALID_INDEX=-1;r.TIMEOUT_IGNORED=-1;r.MAX_CLIENT_WAIT_TIMEOUT_WEBGL=37447;Ed.__identity=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0];ra.__identity=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];H.NONE=0;H.FALSE=0;H.TRUE=1;H.SOURCE_RELATIVE=514;H.CONE_INNER_ANGLE=4097;H.CONE_OUTER_ANGLE=4098;H.PITCH=4099;H.POSITION=4100;H.DIRECTION=4101;H.VELOCITY=4102;H.LOOPING=4103;H.BUFFER=4105;H.GAIN=4106;H.MIN_GAIN= +4109;H.MAX_GAIN=4110;H.ORIENTATION=4111;H.SOURCE_STATE=4112;H.INITIAL=4113;H.PLAYING=4114;H.PAUSED=4115;H.STOPPED=4116;H.BUFFERS_QUEUED=4117;H.BUFFERS_PROCESSED=4118;H.REFERENCE_DISTANCE=4128;H.ROLLOFF_FACTOR=4129;H.CONE_OUTER_GAIN=4130;H.MAX_DISTANCE=4131;H.SEC_OFFSET=4132;H.SAMPLE_OFFSET=4133;H.BYTE_OFFSET=4134;H.SOURCE_TYPE=4135;H.STATIC=4136;H.STREAMING=4137;H.UNDETERMINED=4144;H.FORMAT_MONO8=4352;H.FORMAT_MONO16=4353;H.FORMAT_STEREO8=4354;H.FORMAT_STEREO16=4355;H.FREQUENCY=8193;H.BITS=8194;H.CHANNELS= +8195;H.SIZE=8196;H.NO_ERROR=0;H.INVALID_NAME=40961;H.INVALID_ENUM=40962;H.INVALID_VALUE=40963;H.INVALID_OPERATION=40964;H.OUT_OF_MEMORY=40965;H.VENDOR=45057;H.VERSION=45058;H.RENDERER=45059;H.EXTENSIONS=45060;H.DOPPLER_FACTOR=49152;H.SPEED_OF_SOUND=49155;H.DOPPLER_VELOCITY=49153;H.DISTANCE_MODEL=53248;H.INVERSE_DISTANCE=53249;H.INVERSE_DISTANCE_CLAMPED=53250;H.LINEAR_DISTANCE=53251;H.LINEAR_DISTANCE_CLAMPED=53252;H.EXPONENT_DISTANCE=53253;H.EXPONENT_DISTANCE_CLAMPED=53254;H.METERS_PER_UNIT=131076; +H.DIRECT_FILTER=131077;H.AUXILIARY_SEND_FILTER=131078;H.AIR_ABSORPTION_FACTOR=131079;H.ROOM_ROLLOFF_FACTOR=131080;H.CONE_OUTER_GAINHF=131081;H.DIRECT_FILTER_GAINHF_AUTO=131082;H.AUXILIARY_SEND_FILTER_GAIN_AUTO=131083;H.AUXILIARY_SEND_FILTER_GAINHF_AUTO=131084;H.REVERB_DENSITY=1;H.REVERB_DIFFUSION=2;H.REVERB_GAIN=3;H.REVERB_GAINHF=4;H.REVERB_DECAY_TIME=5;H.REVERB_DECAY_HFRATIO=6;H.REVERB_REFLECTIONS_GAIN=7;H.REVERB_REFLECTIONS_DELAY=8;H.REVERB_LATE_REVERB_GAIN=9;H.REVERB_LATE_REVERB_DELAY=10;H.REVERB_AIR_ABSORPTION_GAINHF= +11;H.REVERB_ROOM_ROLLOFF_FACTOR=12;H.REVERB_DECAY_HFLIMIT=13;H.EAXREVERB_DENSITY=1;H.EAXREVERB_DIFFUSION=2;H.EAXREVERB_GAIN=3;H.EAXREVERB_GAINHF=4;H.EAXREVERB_GAINLF=5;H.EAXREVERB_DECAY_TIME=6;H.EAXREVERB_DECAY_HFRATIO=7;H.EAXREVERB_DECAY_LFRATIO=8;H.EAXREVERB_REFLECTIONS_GAIN=9;H.EAXREVERB_REFLECTIONS_DELAY=10;H.EAXREVERB_REFLECTIONS_PAN=11;H.EAXREVERB_LATE_REVERB_GAIN=12;H.EAXREVERB_LATE_REVERB_DELAY=13;H.EAXREVERB_LATE_REVERB_PAN=14;H.EAXREVERB_ECHO_TIME=15;H.EAXREVERB_ECHO_DEPTH=16;H.EAXREVERB_MODULATION_TIME= +17;H.EAXREVERB_MODULATION_DEPTH=18;H.EAXREVERB_AIR_ABSORPTION_GAINHF=19;H.EAXREVERB_HFREFERENCE=20;H.EAXREVERB_LFREFERENCE=21;H.EAXREVERB_ROOM_ROLLOFF_FACTOR=22;H.EAXREVERB_DECAY_HFLIMIT=23;H.CHORUS_WAVEFORM=1;H.CHORUS_PHASE=2;H.CHORUS_RATE=3;H.CHORUS_DEPTH=4;H.CHORUS_FEEDBACK=5;H.CHORUS_DELAY=6;H.DISTORTION_EDGE=1;H.DISTORTION_GAIN=2;H.DISTORTION_LOWPASS_CUTOFF=3;H.DISTORTION_EQCENTER=4;H.DISTORTION_EQBANDWIDTH=5;H.ECHO_DELAY=1;H.ECHO_LRDELAY=2;H.ECHO_DAMPING=3;H.ECHO_FEEDBACK=4;H.ECHO_SPREAD=5; +H.FLANGER_WAVEFORM=1;H.FLANGER_PHASE=2;H.FLANGER_RATE=3;H.FLANGER_DEPTH=4;H.FLANGER_FEEDBACK=5;H.FLANGER_DELAY=6;H.FREQUENCY_SHIFTER_FREQUENCY=1;H.FREQUENCY_SHIFTER_LEFT_DIRECTION=2;H.FREQUENCY_SHIFTER_RIGHT_DIRECTION=3;H.VOCAL_MORPHER_PHONEMEA=1;H.VOCAL_MORPHER_PHONEMEA_COARSE_TUNING=2;H.VOCAL_MORPHER_PHONEMEB=3;H.VOCAL_MORPHER_PHONEMEB_COARSE_TUNING=4;H.VOCAL_MORPHER_WAVEFORM=5;H.VOCAL_MORPHER_RATE=6;H.PITCH_SHIFTER_COARSE_TUNE=1;H.PITCH_SHIFTER_FINE_TUNE=2;H.RING_MODULATOR_FREQUENCY=1;H.RING_MODULATOR_HIGHPASS_CUTOFF= +2;H.RING_MODULATOR_WAVEFORM=3;H.AUTOWAH_ATTACK_TIME=1;H.AUTOWAH_RELEASE_TIME=2;H.AUTOWAH_RESONANCE=3;H.AUTOWAH_PEAK_GAIN=4;H.COMPRESSOR_ONOFF=1;H.EQUALIZER_LOW_GAIN=1;H.EQUALIZER_LOW_CUTOFF=2;H.EQUALIZER_MID1_GAIN=3;H.EQUALIZER_MID1_CENTER=4;H.EQUALIZER_MID1_WIDTH=5;H.EQUALIZER_MID2_GAIN=6;H.EQUALIZER_MID2_CENTER=7;H.EQUALIZER_MID2_WIDTH=8;H.EQUALIZER_HIGH_GAIN=9;H.EQUALIZER_HIGH_CUTOFF=10;H.EFFECT_FIRST_PARAMETER=0;H.EFFECT_LAST_PARAMETER=32768;H.EFFECT_TYPE=32769;H.EFFECT_NULL=0;H.EFFECT_EAXREVERB= +32768;H.EFFECT_REVERB=1;H.EFFECT_CHORUS=2;H.EFFECT_DISTORTION=3;H.EFFECT_ECHO=4;H.EFFECT_FLANGER=5;H.EFFECT_FREQUENCY_SHIFTER=6;H.EFFECT_VOCAL_MORPHER=7;H.EFFECT_PITCH_SHIFTER=8;H.EFFECT_RING_MODULATOR=9;H.FFECT_AUTOWAH=10;H.EFFECT_COMPRESSOR=11;H.EFFECT_EQUALIZER=12;H.EFFECTSLOT_EFFECT=1;H.EFFECTSLOT_GAIN=2;H.EFFECTSLOT_AUXILIARY_SEND_AUTO=3;H.LOWPASS_GAIN=1;H.LOWPASS_GAINHF=2;H.HIGHPASS_GAIN=1;H.HIGHPASS_GAINLF=2;H.BANDPASS_GAIN=1;H.BANDPASS_GAINLF=2;H.BANDPASS_GAINHF=3;H.FILTER_FIRST_PARAMETER= +0;H.FILTER_LAST_PARAMETER=32768;H.FILTER_TYPE=32769;H.FILTER_NULL=0;H.FILTER_LOWPASS=1;H.FILTER_HIGHPASS=2;H.FILTER_BANDPASS=3;Eb.FALSE=0;Eb.TRUE=1;Eb.FREQUENCY=4103;Eb.REFRESH=4104;Eb.SYNC=4105;Eb.MONO_SOURCES=4112;Eb.STEREO_SOURCES=4113;Eb.NO_ERROR=0;Eb.INVALID_DEVICE=40961;Eb.INVALID_CONTEXT=40962;Eb.INVALID_ENUM=40963;Eb.INVALID_VALUE=40964;Eb.OUT_OF_MEMORY=40965;Eb.ATTRIBUTES_SIZE=4098;Eb.ALL_ATTRIBUTES=4099;Eb.DEFAULT_DEVICE_SPECIFIER=4100;Eb.DEVICE_SPECIFIER=4101;Eb.EXTENSIONS=4102;Eb.ENUMERATE_ALL_EXT= +1;Eb.DEFAULT_ALL_DEVICES_SPECIFIER=4114;Eb.ALL_DEVICES_SPECIFIER=4115;fe.onUpdate=new Fd;te.alreadyCreated=new V;te.initialized=!1;Of.sensorByID=new Sa;Of.sensors=[];Pa.__directories=new Sa;Dd.devices=new Sa;Dd.onConnect=new Mo;Tc.devices=new Sa;Tc.onConnect=new No;xb.NONE=0;xb.LEFT_SHIFT=1;xb.RIGHT_SHIFT=2;xb.LEFT_CTRL=64;xb.RIGHT_CTRL=128;xb.LEFT_ALT=256;xb.RIGHT_ALT=512;xb.LEFT_META=1024;xb.RIGHT_META=2048;xb.NUM_LOCK=4096;xb.CAPS_LOCK=8192;xb.MODE=16384;xb.CTRL=192;xb.SHIFT=3;xb.ALT=768;xb.META= +3072;gd.onCancel=new Li;gd.onEnd=new Li;gd.onMove=new Li;gd.onStart=new Li;wa.cache=new Xo;wa.onChange=new Fd;wa.bundlePaths=new V;wa.libraries=new V;wa.libraryPaths=new V;Ug.BYTES_PER_ELEMENT=4;Ga.throwErrors=!0;ou.VERSION=2;Da.__lastTimerID=0;Da.__sentWarnings=new V;Da.__timers=new Sa;Da.__registeredClassAliases=new V;Xg.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};Bf.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]},fields:{toJSON:{SuppressWarnings:["checkstyle:Dynamic"]}}}; +Df.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]},fields:{toJSON:{SuppressWarnings:["checkstyle:Dynamic"]},_:{SuppressWarnings:["checkstyle:Dynamic"]}}};Ef.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]},fields:{toJSON:{SuppressWarnings:["checkstyle:Dynamic"]}}};Cf.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]},fields:{toJSON:{SuppressWarnings:["checkstyle:Dynamic"]}}};of.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]},fields:{concat:{SuppressWarnings:["checkstyle:Dynamic"]}, +toJSON:{SuppressWarnings:["checkstyle:Dynamic"]},_:{SuppressWarnings:["checkstyle:Dynamic"]}}};jj.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};Ja.__meta__={fields:{image:{SuppressWarnings:["checkstyle:Dynamic"]},__framebufferContext:{SuppressWarnings:["checkstyle:Dynamic"]},__indexBufferContext:{SuppressWarnings:["checkstyle:Dynamic"]},__surface:{SuppressWarnings:["checkstyle:Dynamic"]},__textureContext:{SuppressWarnings:["checkstyle:Dynamic"]},__vertexBufferContext:{SuppressWarnings:["checkstyle:Dynamic"]}, +compare:{SuppressWarnings:["checkstyle:Dynamic"]},getSurface:{SuppressWarnings:["checkstyle:Dynamic"]},__fromImage:{SuppressWarnings:["checkstyle:Dynamic"]}}};Ja.VERTEX_BUFFER_STRIDE=14;Ja.__tempVector=new Td;Re.__meta__={fields:{__context:{SuppressWarnings:["checkstyle:Dynamic"]},__type:{SuppressWarnings:["checkstyle:Dynamic"]}}};Em.__meta__={fields:{cairo:{SuppressWarnings:["checkstyle:Dynamic"]},__matrix3:{SuppressWarnings:["checkstyle:Dynamic"]},applyMatrix:{SuppressWarnings:["checkstyle:Dynamic"]}, +__setBlendModeCairo:{SuppressWarnings:["checkstyle:Dynamic"]},_:{SuppressWarnings:["checkstyle:Dynamic"]}}};Yg.__meta__={fields:{context:{SuppressWarnings:["checkstyle:Dynamic"]},applySmoothing:{SuppressWarnings:["checkstyle:Dynamic"]},setTransform:{SuppressWarnings:["checkstyle:Dynamic"]},__setBlendModeContext:{SuppressWarnings:["checkstyle:Dynamic"]},_:{SuppressWarnings:["checkstyle:Dynamic"]}}};Tt.NONE=0;Tt.ROUND=1;Tt.SQUARE=2;Im.__meta__={fields:{__element:{SuppressWarnings:["checkstyle:Dynamic"]}, +_:{SuppressWarnings:["checkstyle:Dynamic"]}}};Yj.__meta__={fields:{element:{SuppressWarnings:["checkstyle:Dynamic"]},applyStyle:{SuppressWarnings:["checkstyle:Dynamic"]},clearStyle:{SuppressWarnings:["checkstyle:Dynamic"]},_:{SuppressWarnings:["checkstyle:Dynamic"]}}};bf.__meta__={fields:{glProgram:{SuppressWarnings:["checkstyle:Dynamic"]}}};Ue.__meta__={fields:{overrideBlendMode:{SuppressWarnings:["checkstyle:FieldDocComment"]}}};Pi.SIN45=.7071067811865476;Pi.TAN22=.41421356237309503;Wt.BEVEL=0; +Wt.MITER=1;Wt.ROUND=2;Ej.__meta__={fields:{BitmapData_onError:{SuppressWarnings:["checkstyle:Dynamic"]}}};Jf.__meta__={statics:{create:{SuppressWarnings:["checkstyle:FieldDocComment"]}},fields:{parameters:{SuppressWarnings:["checkstyle:Dynamic"]}}};Jf.__rootURL=Tg.get_supported()?window.document.URL:"";Ab.__meta__={fields:{gl:{SuppressWarnings:["checkstyle:Dynamic"]},__gl:{SuppressWarnings:["checkstyle:Dynamic"]},__matrix:{SuppressWarnings:["checkstyle:Dynamic"]},__projection:{SuppressWarnings:["checkstyle:Dynamic"]}, +__projectionFlipped:{SuppressWarnings:["checkstyle:Dynamic"]},getMatrix:{SuppressWarnings:["checkstyle:Dynamic"]}}};Ab.__alphaValue=[1];Ab.__colorMultipliersValue=[0,0,0,0];Ab.__colorOffsetsValue=[0,0,0,0];Ab.__defaultColorMultipliersValue=[1,1,1,1];Ab.__emptyColorValue=[0,0,0,0];Ab.__emptyAlphaValue=[1];Ab.__hasColorTransformValue=[!1];Ab.__scissorRectangle=new fa;Ab.__textureSizeValue=[0,0];dp.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]},fields:{onComplete:{SuppressWarnings:["checkstyle:Dynamic"]}}}; +Ym.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};Lm.__meta__={fields:{index:{SuppressWarnings:["checkstyle:Dynamic"]},name:{SuppressWarnings:["checkstyle:FieldDocComment"]}}};Oi.__meta__={fields:{index:{SuppressWarnings:["checkstyle:Dynamic"]},name:{SuppressWarnings:["checkstyle:FieldDocComment"]}}};Si.__meta__={fields:{__broadcastEvent:{SuppressWarnings:["checkstyle:Dynamic"]},__dispatchEvent:{SuppressWarnings:[["checkstyle:Dynamic","checkstyle:LeftCurly"]]},__dispatchStack:{SuppressWarnings:[["checkstyle:Dynamic", +"checkstyle:LeftCurly"]]},__dispatchTarget:{SuppressWarnings:["checkstyle:Dynamic"]},__handleError:{SuppressWarnings:["checkstyle:Dynamic"]}}};eg.__meta__={fields:{data:{SuppressWarnings:["checkstyle:Dynamic"]}}};Zm.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};Xj.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]},fields:{_:{SuppressWarnings:["checkstyle:Dynamic"]}}};Vi.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};$m.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}}; +an.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};bn.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};cn.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};dn.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};di.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]},statics:{renderTileContainer:{SuppressWarnings:["checkstyle:Dynamic"]}}};Ni.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};zh.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}}; +Ae.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]},fields:{o:{SuppressWarnings:["checkstyle:Dynamic"]}}};Ae.empty=new Ae;D.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]},statics:{windingRule:{SuppressWarnings:["checkstyle:Dynamic"]},createBitmapFill:{SuppressWarnings:["checkstyle:Dynamic"]},createGradientPattern:{SuppressWarnings:["checkstyle:Dynamic"]}}};D.SIN45=.7071067811865476;D.TAN22=.41421356237309503;D.fillCommands=new Ae;D.strokeCommands=new Ae;au.__meta__= +{obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};Y.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};Uf.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]},statics:{renderTileContainer:{SuppressWarnings:["checkstyle:Dynamic"]}}};Zh.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};tf.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};Bh.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};Bh.MAX_INDEX_BUFFER_LENGTH=65535;Bh.MAX_QUADS_PER_INDEX_BUFFER= +10922;Bh.MAX_QUAD_INDEX_BUFFER_LENGTH=65532;$g.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};Mc.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};Mc.blankBitmapData=new Ja(1,1,!1,0);Mc.tempColorTransform=new Gc(1,1,1,1,0,0,0,0);$h.opaqueBitmapData=new Ja(1,1,!1,0);Yf.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};ah.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};ha.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}}; +uf.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};uf.__textureSizeValue=[0,0];uc.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};Ie.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};wf.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};Je.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};Je.__regexColor=new Z("color=(\"#([^\"]+)\"|'#([^']+)')","i");Je.__regexFace=new Z("face=(\"([^\"]+)\"|'([^']+)')","i");Je.__regexFont= +new Z("<font ([^>]+)>","gi");Je.__regexCloseFont=new Z("</font>","gi");Je.__regexSize=new Z("size=(\"([^\"]+)\"|'([^']+)')","i");Bg.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};Zg.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};Vf.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]},fields:{obj:{SuppressWarnings:["checkstyle:Dynamic"]}}};Ch.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};ei.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}}; +ei.alphaColorTransform=new Gc;ei.bitmap=new Vb;ei.destPoint=new oa;ei.sourceRect=new fa;Yh.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]},statics:{P:{SuppressWarnings:["checkstyle:ConstantName"]}}};Yh.P=[151,160,137,91,90,15,131,13,201,95,96,53,194,233,7,225,140,36,103,30,69,142,8,99,37,240,21,10,23,190,6,148,247,120,234,75,0,26,197,62,94,252,219,203,117,35,11,32,57,177,33,88,237,149,56,87,174,20,125,136,171,168,68,175,74,165,71,134,139,48,27,166,77,146,158,231,83,111,229,122,60, +211,133,230,220,105,92,41,55,46,245,40,244,102,143,54,65,25,63,161,1,216,80,73,209,76,132,187,208,89,18,169,200,196,135,130,116,188,159,86,164,100,109,198,173,186,3,64,52,217,226,250,124,123,5,202,38,147,118,126,255,82,85,212,207,206,59,227,47,16,58,17,182,189,28,42,223,183,170,213,119,248,152,2,44,154,163,70,221,153,101,155,167,43,172,9,129,22,39,253,19,98,108,110,79,113,224,232,178,185,112,104,218,246,97,228,251,34,242,193,238,210,144,12,191,179,162,241,81,51,145,235,249,14,239,107,49,192,214,31, +181,199,106,157,184,84,204,176,115,121,50,45,127,4,150,254,138,236,205,93,222,114,67,29,24,72,243,141,128,195,78,66,215,61,156,180,151,160,137,91,90,15,131,13,201,95,96,53,194,233,7,225,140,36,103,30,69,142,8,99,37,240,21,10,23,190,6,148,247,120,234,75,0,26,197,62,94,252,219,203,117,35,11,32,57,177,33,88,237,149,56,87,174,20,125,136,171,168,68,175,74,165,71,134,139,48,27,166,77,146,158,231,83,111,229,122,60,211,133,230,220,105,92,41,55,46,245,40,244,102,143,54,65,25,63,161,1,216,80,73,209,76,132, +187,208,89,18,169,200,196,135,130,116,188,159,86,164,100,109,198,173,186,3,64,52,217,226,250,124,123,5,202,38,147,118,126,255,82,85,212,207,206,59,227,47,16,58,17,182,189,28,42,223,183,170,213,119,248,152,2,44,154,163,70,221,153,101,155,167,43,172,9,129,22,39,253,19,98,108,110,79,113,224,232,178,185,112,104,218,246,97,228,251,34,242,193,238,210,144,12,191,179,162,241,81,51,145,235,249,14,239,107,49,192,214,31,181,199,106,157,184,84,204,176,115,121,50,45,127,4,150,254,138,236,205,93,222,114,67,29, +24,72,243,141,128,195,78,66,215,61,156,180];Qg.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};Nm.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]},fields:{overrideIntValues:{SuppressWarnings:["checkstyle:Dynamic"]}}};Sb.supportsVideoTexture=!0;Sb.__glDepthStencil=-1;Sb.__glMaxTextureMaxAnisotropy=-1;Sb.__glMaxViewportDims=-1;Sb.__glMemoryCurrentAvailable=-1;Sb.__glMemoryTotalAvailable=-1;Sb.__glTextureMaxAnisotropy=-1;bu.DYNAMIC_DRAW=0;bu.STATIC_DRAW=1;cu.FRAGMENT= +0;cu.VERTEX=1;ck.BGR_PACKED=0;ck.BGRA=1;ck.BGRA_PACKED=2;ck.COMPRESSED=3;ck.COMPRESSED_ALPHA=4;ck.RGBA_HALF_FLOAT=5;gn.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};dk.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};Be.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};Be.limitedProfile=!0;Xi.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};hn.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};Yi.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}}; +gi.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};ek.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};ak.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};Zb.__meta__={fields:{__textureContext:{SuppressWarnings:["checkstyle:Dynamic"]},__getGLFramebuffer:{SuppressWarnings:["checkstyle:Dynamic"]}}};fi.__lowMemoryMode=!1;Ec.DEFAULT_TO_STRING="Error";dh.ACTIVITY="activity";cf.LINK="link";cf.TEXT_INPUT="textInput";Se.ERROR="error";lj.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}}; +kj.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};Xf.FOCUS_IN="focusIn";Xf.FOCUS_OUT="focusOut";Xf.KEY_FOCUS_CHANGE="keyFocusChange";Xf.MOUSE_FOCUS_CHANGE="mouseFocusChange";bh.FULL_SCREEN="fullScreen";bh.FULL_SCREEN_INTERACTIVE_ACCEPTED="fullScreenInteractiveAccepted";Eg.DEVICE_ADDED="deviceAdded";Eg.DEVICE_REMOVED="deviceRemoved";Eg.DEVICE_UNUSABLE="deviceUnusable";hi.HTTP_RESPONSE_STATUS="httpResponseStatus";hi.HTTP_STATUS="httpStatus";lg.IO_ERROR="ioError";bi.KEY_DOWN="keyDown"; +bi.KEY_UP="keyUp";Ib.CLICK="click";Ib.DOUBLE_CLICK="doubleClick";Ib.MIDDLE_CLICK="middleClick";Ib.MIDDLE_MOUSE_DOWN="middleMouseDown";Ib.MIDDLE_MOUSE_UP="middleMouseUp";Ib.MOUSE_DOWN="mouseDown";Ib.MOUSE_MOVE="mouseMove";Ib.MOUSE_OUT="mouseOut";Ib.MOUSE_OVER="mouseOver";Ib.MOUSE_UP="mouseUp";Ib.MOUSE_WHEEL="mouseWheel";Ib.RELEASE_OUTSIDE="releaseOutside";Ib.RIGHT_CLICK="rightClick";Ib.RIGHT_MOUSE_DOWN="rightMouseDown";Ib.RIGHT_MOUSE_UP="rightMouseUp";Ib.ROLL_OUT="rollOut";Ib.ROLL_OVER="rollOver"; +ii.NET_STATUS="netStatus";Cg.PROGRESS="progress";Cg.SOCKET_DATA="socketData";pg.CLEAR_DOM="clearDOM";pg.RENDER_CAIRO="renderCairo";pg.RENDER_CANVAS="renderCanvas";pg.RENDER_DOM="renderDOM";pg.RENDER_OPENGL="renderOpenGL";$i.SECURITY_ERROR="securityError";Rd.__meta__={fields:{delta:{SuppressWarnings:["checkstyle:FieldDocComment"]}}};Rd.TOUCH_BEGIN="touchBegin";Rd.TOUCH_END="touchEnd";Rd.TOUCH_MOVE="touchMove";Rd.TOUCH_OUT="touchOut";Rd.TOUCH_OVER="touchOver";Rd.TOUCH_ROLL_OUT="touchRollOut";Rd.TOUCH_ROLL_OVER= +"touchRollOver";Rd.TOUCH_TAP="touchTap";Ti.UNCAUGHT_ERROR="uncaughtError";fk.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};dg.__colorMatrixShader=new fk;Yd.__meta__={statics:{create2D:{SuppressWarnings:["checkstyle:FieldDocComment"]},createABCD:{SuppressWarnings:["checkstyle:FieldDocComment"]},createOrtho:{SuppressWarnings:["checkstyle:FieldDocComment"]}}};od.MAX_ACTIVE_CHANNELS=32;od.__soundChannels=[];od.__soundTransform=new hf;kn.VERTEX_BUFFER_STRIDE=5;gk.__meta__={statics:{CONNECT_SUCCESS:{SuppressWarnings:["checkstyle:FieldDocComment"]}}}; +gk.CONNECT_SUCCESS="NetConnection.Connect.Success";ln.__meta__={fields:{audioCodec:{SuppressWarnings:["checkstyle:FieldDocComment"]},decodedFrames:{SuppressWarnings:["checkstyle:FieldDocComment"]},speed:{SuppressWarnings:["checkstyle:FieldDocComment"]},requestVideoStatus:{SuppressWarnings:["checkstyle:FieldDocComment"]}}};ed.defaultObjectEncoding=10;Dh.followRedirects=!0;Dh.idleTimeout=0;Dh.manageCookies=!0;iu.__meta__={statics:{__get:{SuppressWarnings:["checkstyle:FieldDocComment"]},__set:{SuppressWarnings:["checkstyle:FieldDocComment"]}}}; +Qi.currentDomain=new Qi(null);sc.avHardwareDisable=!0;sc.hasAccessibility=!1;sc.hasAudio=!0;sc.hasAudioEncoder=!1;sc.hasEmbeddedVideo=!1;sc.hasIME=!1;sc.hasMP3=!1;sc.hasPrinting=!0;sc.hasScreenBroadcast=!1;sc.hasScreenPlayback=!1;sc.hasStreamingAudio=!1;sc.hasStreamingVideo=!1;sc.hasTLS=!0;sc.hasVideoEncoder=!0;sc.isDebugger=!0;sc.isEmbeddedInAcrobat=!1;sc.localFileReadDisable=!0;sc.maxLevelIDC=0;sc.playerType="PlugIn";sc.screenColor="color";sc.serverString="";sc.supports32BitProcesses=!1;sc.supports64BitProcesses= +!1;sc.touchscreenType=0;sc.__standardDensities=[120,160,240,320,480,640,800,960];hk.__meta__={obj:{SuppressWarnings:["checkstyle:UnnecessaryConstructor"]}};hk.currentDomain=new hk;bg.useCodePage=!1;Nc.__fontByName=new V;Nc.__registeredFonts=[];mn.__supportedStyles="color display font-family font-size font-style font-weight kerning leading letter-spacing margin-left margin-right text-align text-decoration text-indent".split(" ");ff.__missingFontWarning=new V;tg.__meta__={fields:{clone:{SuppressWarnings:["checkstyle:FieldDocComment"]}}}; +ik.CENTER=0;ik.END=1;ik.JUSTIFY=2;ik.LEFT=3;ik.RIGHT=4;ik.START=5;jk.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};qp.__meta__={obj:{SuppressWarnings:[["checkstyle:FieldDocComment","checkstyle:Dynamic"]]}};lb.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};lb.__regexAlign=new Z("align\\s?=\\s?(\"([^\"]+)\"|'([^']+)')","i");lb.__regexBreakTag=new Z("<br\\s*/?>","gi");lb.__regexBlockIndent=new Z("blockindent\\s?=\\s?(\"([^\"]+)\"|'([^']+)')","i");lb.__regexClass= +new Z("class\\s?=\\s?(\"([^\"]+)\"|'([^']+)')","i");lb.__regexColor=new Z("color\\s?=\\s?(\"#([^\"]+)\"|'#([^']+)')","i");lb.__regexEntities=[new Z(""","g"),new Z("'","g"),new Z("&","g"),new Z("<","g"),new Z(">","g"),new Z(" ","g")];lb.__regexCharEntity=new Z("&#(?:([0-9]+)|(x[0-9a-fA-F]+));","g");lb.__regexFace=new Z("face\\s?=\\s?(\"([^\"]+)\"|'([^']+)')","i");lb.__regexHTMLTag=new Z("<.*?>","g");lb.__regexHref=new Z("href\\s?=\\s?(\"([^\"]+)\"|'([^']+)')","i");lb.__regexIndent= +new Z(" indent\\s?=\\s?(\"([^\"]+)\"|'([^']+)')","i");lb.__regexLeading=new Z("leading\\s?=\\s?(\"([^\"]+)\"|'([^']+)')","i");lb.__regexLeftMargin=new Z("leftmargin\\s?=\\s?(\"([^\"]+)\"|'([^']+)')","i");lb.__regexRightMargin=new Z("rightmargin\\s?=\\s?(\"([^\"]+)\"|'([^']+)')","i");lb.__regexSize=new Z("size\\s?=\\s?(\"([^\"]+)\"|'([^']+)')","i");lb.__regexTabStops=new Z("tabstops\\s?=\\s?(\"([^\"]+)\"|'([^']+)')","i");cj.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};Ob.__meta__= +{obj:{SuppressWarnings:["checkstyle:FieldDocComment"]},fields:{__cairoFont:{SuppressWarnings:["checkstyle:Dynamic"]}}};Ob.GUTTER=2;Ob.UTF8_TAB=9;Ob.UTF8_ENDLINE=10;Ob.UTF8_SPACE=32;Ob.UTF8_HYPHEN=45;Nd.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]},fields:{glyphs:{SuppressWarnings:["checkstyle:Dynamic"]},__handle:{SuppressWarnings:["checkstyle:Dynamic"]},__hbBuffer:{SuppressWarnings:["checkstyle:Dynamic"]},__hbFont:{SuppressWarnings:["checkstyle:Dynamic"]},get_glyphs:{SuppressWarnings:["checkstyle:Dynamic"]}}}; +Nd.FT_LOAD_DEFAULT=0;Nd.FT_LOAD_NO_SCALE=1;Nd.FT_LOAD_NO_HINTING=2;Nd.FT_LOAD_RENDER=4;Nd.FT_LOAD_NO_BITMAP=8;Nd.FT_LOAD_VERTICAL_LAYOUT=16;Nd.FT_LOAD_FORCE_AUTOHINT=32;Nd.FT_LOAD_CROP_BITMAP=64;Nd.FT_LOAD_PEDANTIC=128;Nd.FT_LOAD_IGNORE_GLOBAL_ADVANCE_WIDTH=256;Nd.FT_LOAD_NO_RECURSE=512;Nd.FT_LOAD_IGNORE_TRANSFORM=1024;Nd.FT_LOAD_MONOCHROME=2048;Nd.FT_LOAD_LINEAR_DESIGN=4096;Nd.FT_LOAD_NO_AUTOHINT=8192;Nd.FT_LOAD_COLOR=16384;Nd.FT_LOAD_COMPUTE_METRICS=32768;Nd.FT_LOAD_BITMAP_METRICS_ONLY=65536;Nd.FT_LOAD_TARGET_NORMAL= +0;Nd.FT_LOAD_TARGET_LIGHT=0;nn.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};Nb.__meta__={fields:{addEventListener:{SuppressWarnings:["checkstyle:Dynamic"]}}};Nb.isSupported=!0;Nb.numDevices=0;Nb.__deviceList=[];Nb.__instances=[];Nb.__devices=new ac;on.MAX_BUFFER_SIZE=32E3;Ca.__meta__={statics:{BREAK:{SuppressWarnings:["checkstyle:FieldDocComment"]},NUMLOCK:{SuppressWarnings:["checkstyle:FieldDocComment"]}}};Ca.NUMBER_0=48;Ca.NUMBER_1=49;Ca.NUMBER_2=50;Ca.NUMBER_3=51;Ca.NUMBER_4= +52;Ca.NUMBER_5=53;Ca.NUMBER_6=54;Ca.NUMBER_7=55;Ca.NUMBER_8=56;Ca.NUMBER_9=57;Ca.A=65;Ca.B=66;Ca.C=67;Ca.D=68;Ca.E=69;Ca.F=70;Ca.G=71;Ca.H=72;Ca.I=73;Ca.J=74;Ca.K=75;Ca.L=76;Ca.M=77;Ca.N=78;Ca.O=79;Ca.P=80;Ca.Q=81;Ca.R=82;Ca.S=83;Ca.T=84;Ca.U=85;Ca.V=86;Ca.W=87;Ca.X=88;Ca.Y=89;Ca.Z=90;Ca.NUMPAD_0=96;Ca.NUMPAD_1=97;Ca.NUMPAD_2=98;Ca.NUMPAD_3=99;Ca.NUMPAD_4=100;Ca.NUMPAD_5=101;Ca.NUMPAD_6=102;Ca.NUMPAD_7=103;Ca.NUMPAD_8=104;Ca.NUMPAD_9=105;Ca.NUMPAD_MULTIPLY=106;Ca.NUMPAD_ADD=107;Ca.NUMPAD_ENTER=108; +Ca.NUMPAD_SUBTRACT=109;Ca.NUMPAD_DECIMAL=110;Ca.NUMPAD_DIVIDE=111;Ca.F1=112;Ca.F2=113;Ca.F3=114;Ca.F4=115;Ca.F5=116;Ca.F6=117;Ca.F7=118;Ca.F8=119;Ca.F9=120;Ca.F10=121;Ca.F11=122;Ca.F12=123;Ca.F13=124;Ca.F14=125;Ca.F15=126;Ca.BACKSPACE=8;Ca.TAB=9;Ca.ALTERNATE=18;Ca.ENTER=13;Ca.COMMAND=15;Ca.SHIFT=16;Ca.CONTROL=17;Ca.BREAK=19;Ca.CAPS_LOCK=20;Ca.NUMPAD=21;Ca.ESCAPE=27;Ca.SPACE=32;Ca.PAGE_UP=33;Ca.PAGE_DOWN=34;Ca.END=35;Ca.HOME=36;Ca.LEFT=37;Ca.RIGHT=39;Ca.UP=38;Ca.DOWN=40;Ca.INSERT=45;Ca.DELETE=46;Ca.NUMLOCK= +144;Ca.SEMICOLON=186;Ca.EQUAL=187;Ca.COMMA=188;Ca.MINUS=189;Ca.PERIOD=190;Ca.SLASH=191;Ca.BACKQUOTE=192;Ca.LEFTBRACKET=219;Ca.BACKSLASH=220;Ca.RIGHTBRACKET=221;Ca.QUOTE=222;je.supportsCursor=!0;je.supportsNativeCursor=!0;je.__cursor="auto";vf.ARROW="arrow";vf.AUTO="auto";vf.BUTTON="button";vf.HAND="hand";vf.IBEAM="ibeam";vf.__CROSSHAIR="crosshair";vf.__CUSTOM="custom";vf.__MOVE="move";vf.__RESIZE_NESW="resize_nesw";vf.__RESIZE_NS="resize_ns";vf.__RESIZE_NWSE="resize_nwse";vf.__RESIZE_WE="resize_we"; +vf.__WAIT="wait";vf.__WAIT_ARROW="waitarrow";X.__meta__={obj:{SuppressWarnings:[["checkstyle:ConstantName","checkstyle:FieldDocComment"]]}};X.OPMAP=new V;X.REGMAP=new V;X.SAMPLEMAP=new V;X.MAX_NESTING=4;X.MAX_OPCODES=4096;X.FRAGMENT="fragment";X.VERTEX="vertex";X.SAMPLER_TYPE_SHIFT=8;X.SAMPLER_DIM_SHIFT=12;X.SAMPLER_SPECIAL_SHIFT=16;X.SAMPLER_REPEAT_SHIFT=20;X.SAMPLER_MIPMAP_SHIFT=24;X.SAMPLER_FILTER_SHIFT=28;X.REG_WRITE=1;X.REG_READ=2;X.REG_FRAG=32;X.REG_VERT=64;X.OP_SCALAR=1;X.OP_SPECIAL_TEX=8; +X.OP_SPECIAL_MATRIX=16;X.OP_FRAG_ONLY=32;X.OP_VERT_ONLY=64;X.OP_NO_DEST=128;X.OP_VERSION2=256;X.OP_INCNEST=512;X.OP_DECNEST=1024;X.MOV="mov";X.ADD="add";X.SUB="sub";X.MUL="mul";X.DIV="div";X.RCP="rcp";X.MIN="min";X.MAX="max";X.FRC="frc";X.SQT="sqt";X.RSQ="rsq";X.POW="pow";X.LOG="log";X.EXP="exp";X.NRM="nrm";X.SIN="sin";X.COS="cos";X.CRS="crs";X.DP3="dp3";X.DP4="dp4";X.ABS="abs";X.NEG="neg";X.SAT="sat";X.M33="m33";X.M44="m44";X.M34="m34";X.DDX="ddx";X.DDY="ddy";X.IFE="ife";X.INE="ine";X.IFG="ifg"; +X.IFL="ifl";X.IEG="ieg";X.IEL="iel";X.ELS="els";X.EIF="eif";X.TED="ted";X.KIL="kil";X.TEX="tex";X.SGE="sge";X.SLT="slt";X.SGN="sgn";X.SEQ="seq";X.SNE="sne";X.VA="va";X.VC="vc";X.VT="vt";X.VO="vo";X.VI="vi";X.FC="fc";X.FT="ft";X.FS="fs";X.FO="fo";X.FD="fd";X.IID="iid";X.D2="2d";X.D3="3d";X.CUBE="cube";X.MIPNEAREST="mipnearest";X.MIPLINEAR="miplinear";X.MIPNONE="mipnone";X.NOMIP="nomip";X.NEAREST="nearest";X.LINEAR="linear";X.ANISOTROPIC2X="anisotropic2x";X.ANISOTROPIC4X="anisotropic4x";X.ANISOTROPIC8X= +"anisotropic8x";X.ANISOTROPIC16X="anisotropic16x";X.CENTROID="centroid";X.SINGLE="single";X.IGNORESAMPLER="ignoresampler";X.REPEAT="repeat";X.WRAP="wrap";X.CLAMP="clamp";X.REPEAT_U_CLAMP_V="repeat_u_clamp_v";X.CLAMP_U_REPEAT_V="clamp_u_repeat_v";X.RGBA="rgba";X.COMPRESSED="compressed";X.COMPRESSEDALPHA="compressedalpha";X.DXT1="dxt1";X.DXT5="dxt5";X.VIDEO="video";X.initialized=!1;Xb.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};mf.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}}; +Uc.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};qa.cache=new qn;qa.dispatcher=new fb;qa.libraryBindings=new V;yb.__bytePointer=new Tf(null,0);kc.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};kc.defaultObjectEncoding=10;fj.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};dj.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};ej.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};pu.BIG_ENDIAN=0;pu.LITTLE_ENDIAN=1;he.__meta__= +{statics:{iterator:{SuppressWarnings:["checkstyle:FieldDocComment"]},__get:{SuppressWarnings:["checkstyle:FieldDocComment"]},__set:{SuppressWarnings:["checkstyle:FieldDocComment"]},__getArray:{SuppressWarnings:["checkstyle:FieldDocComment"]},__setArray:{SuppressWarnings:["checkstyle:FieldDocComment"]}}};tn.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};kk.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}};zc.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]}, +statics:{notImplemented:{SuppressWarnings:["checkstyle:NullableParameter"]}}};zc.__sentWarnings=new V;ci.__meta__={obj:{SuppressWarnings:["checkstyle:FieldDocComment"]},fields:{touch:{SuppressWarnings:["checkstyle:Dynamic"]}}};ci.__pool=new Qd(function(){return new ci},function(a){a.reset()});Hg.VAL_ABSENT=-2147483648;Hg.EMPTY_SLOT=-1;Hg.NULL_POINTER=-1;og.KEY_ABSENT=-2147483648;og.VAL_ABSENT=-2147483648;og.EMPTY_SLOT=-1;og.NULL_POINTER=-1;Va.DEFAULT_PRECISION=6;Va.DEFAULT_NUM_EXP_DIGITS=2;Va._initialized= +!1;Va.PAD_0=0;Va.PAD_SPACE=20;Fg.FIXED=0;Fg.MILD=-1;Fg.NORMAL=-2;Fg.DOUBLE=-3;Fb.PI=3.141592653589793;Fb.PI_H=1.5707963267948966;Fb.LN_2=.6931471805599453;Fb.LN_2_10=6.931471805599453;Fb.overshoot=1.70158;Fb.amplitude=1;Fb.period=3E-4;ya.main()})("undefined"!=typeof y?y:"undefined"!=typeof window?window:"undefined"!=typeof self?self:this,"undefined"!=typeof window?window:"undefined"!=typeof M?M:"undefined"!=typeof self?self:this)};ma.lime.embed=function(Q){var M={},T=ma.lime.$scripts[Q];if(!T)throw Error('Cannot find project name "'+ +Q+'"');T(M,y);for(var na in M)ma[na]=ma[na]||M[na];(T=M.lime||window.lime)&&T.embed&&this!=T.embed&&T.embed.apply(T,arguments);return M};"function"==typeof define&&define.amd&&(define([],function(){return ma.lime}),define.__amd=define.amd,define.amd=null)})("undefined"!=typeof exports?exports:"function"==typeof define&&define.amd?{}:"undefined"!=typeof window?window:"undefined"!=typeof self?self:this,"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self: +this); +!function(){var ma=function(){this.init()};ma.prototype={init:function(){var k=this||y;return k._counter=1E3,k._html5AudioPool=[],k.html5PoolSize=10,k._codecs={},k._howls=[],k._muted=!1,k._volume=1,k._canPlayEvent="canplaythrough",k._navigator="undefined"!=typeof window&&window.navigator?window.navigator:null,k.masterGain=null,k.noAudio=!1,k.usingWebAudio=!0,k.autoSuspend=!0,k.ctx=null,k.autoUnlock=!0,k._setup(),k},volume:function(q){var v=this||y;if(q=parseFloat(q),v.ctx||k(),void 0!==q&&0<=q&&1>= +q){if(v._volume=q,v._muted)return v;v.usingWebAudio&&v.masterGain.gain.setValueAtTime(q,y.ctx.currentTime);for(var u=0;u<v._howls.length;u++)if(!v._howls[u]._webAudio)for(var ya=v._howls[u]._getSoundIds(),Z=0;Z<ya.length;Z++){var F=v._howls[u]._soundById(ya[Z]);F&&F._node&&(F._node.volume=F._volume*q)}return v}return v._volume},mute:function(q){var v=this||y;v.ctx||k();v._muted=q;v.usingWebAudio&&v.masterGain.gain.setValueAtTime(q?0:v._volume,y.ctx.currentTime);for(var u=0;u<v._howls.length;u++)if(!v._howls[u]._webAudio)for(var ya= +v._howls[u]._getSoundIds(),Z=0;Z<ya.length;Z++){var F=v._howls[u]._soundById(ya[Z]);F&&F._node&&(F._node.muted=!!q||F._muted)}return v},unload:function(){for(var q=this||y,u=q._howls.length-1;0<=u;u--)q._howls[u].unload();return q.usingWebAudio&&q.ctx&&void 0!==q.ctx.close&&(q.ctx.close(),q.ctx=null,k()),q},codecs:function(k){return(this||y)._codecs[k.replace(/^x-/,"")]},_setup:function(){var k=this||y;if(k.state=k.ctx?k.ctx.state||"suspended":"suspended",k._autoSuspend(),!k.usingWebAudio)if("undefined"!= +typeof Audio)try{var q=new Audio;void 0===q.oncanplaythrough&&(k._canPlayEvent="canplay")}catch(N){k.noAudio=!0}else k.noAudio=!0;try{q=new Audio,q.muted&&(k.noAudio=!0)}catch(N){}return k.noAudio||k._setupCodecs(),k},_setupCodecs:function(){var k=this||y,q=null;try{q="undefined"!=typeof Audio?new Audio:null}catch(Z){return k}if(!q||"function"!=typeof q.canPlayType)return k;var u=q.canPlayType("audio/mpeg;").replace(/^no$/,""),ya=k._navigator&&k._navigator.userAgent.match(/OPR\/([0-6].)/g);ya=ya&& +33>parseInt(ya[0].split("/")[1],10);return k._codecs={mp3:!(ya||!u&&!q.canPlayType("audio/mp3;").replace(/^no$/,"")),mpeg:!!u,opus:!!q.canPlayType('audio/ogg; codecs="opus"').replace(/^no$/,""),ogg:!!q.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),oga:!!q.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),wav:!!q.canPlayType('audio/wav; codecs="1"').replace(/^no$/,""),aac:!!q.canPlayType("audio/aac;").replace(/^no$/,""),caf:!!q.canPlayType("audio/x-caf;").replace(/^no$/,""), +m4a:!!(q.canPlayType("audio/x-m4a;")||q.canPlayType("audio/m4a;")||q.canPlayType("audio/aac;")).replace(/^no$/,""),mp4:!!(q.canPlayType("audio/x-mp4;")||q.canPlayType("audio/mp4;")||q.canPlayType("audio/aac;")).replace(/^no$/,""),weba:!!q.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,""),webm:!!q.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,""),dolby:!!q.canPlayType('audio/mp4; codecs="ec-3"').replace(/^no$/,""),flac:!!(q.canPlayType("audio/x-flac;")||q.canPlayType("audio/flac;")).replace(/^no$/, +"")},k},_unlockAudio:function(){var k=this||y,q=/iPhone|iPad|iPod|Android|BlackBerry|BB10|Silk|Mobi|Chrome|Safari/i.test(k._navigator&&k._navigator.userAgent);if(!k._audioUnlocked&&k.ctx&&q){k._audioUnlocked=!1;k.autoUnlock=!1;k._mobileUnloaded||44100===k.ctx.sampleRate||(k._mobileUnloaded=!0,k.unload());k._scratchBuffer=k.ctx.createBuffer(1,1,22050);var u=function(q){for(q=0;q<k.html5PoolSize;q++){var v=new Audio;v._unlocked=!0;k._releaseHtml5Audio(v)}for(q=0;q<k._howls.length;q++)if(!k._howls[q]._webAudio){v= +k._howls[q]._getSoundIds();for(var E=0;E<v.length;E++){var N=k._howls[q]._soundById(v[E]);N&&N._node&&!N._node._unlocked&&(N._node._unlocked=!0,N._node.load())}}k._autoResume();var y=k.ctx.createBufferSource();y.buffer=k._scratchBuffer;y.connect(k.ctx.destination);void 0===y.start?y.noteOn(0):y.start(0);"function"==typeof k.ctx.resume&&k.ctx.resume();y.onended=function(){y.disconnect(0);k._audioUnlocked=!0;document.removeEventListener("touchstart",u,!0);document.removeEventListener("touchend",u,!0); +document.removeEventListener("click",u,!0);for(var q=0;q<k._howls.length;q++)k._howls[q]._emit("unlock")}};return document.addEventListener("touchstart",u,!0),document.addEventListener("touchend",u,!0),document.addEventListener("click",u,!0),k}},_obtainHtml5Audio:function(){var k=this||y;if(k._html5AudioPool.length)return k._html5AudioPool.pop();k=(new Audio).play();return k&&"undefined"!=typeof Promise&&(k instanceof Promise||"function"==typeof k.then)&&k.catch(function(){console.warn("HTML5 Audio pool exhausted, returning potentially locked audio object.")}), +new Audio},_releaseHtml5Audio:function(k){var q=this||y;return k._unlocked&&q._html5AudioPool.push(k),q},_autoSuspend:function(){var k=this;if(k.autoSuspend&&k.ctx&&void 0!==k.ctx.suspend&&y.usingWebAudio){for(var q=0;q<k._howls.length;q++)if(k._howls[q]._webAudio)for(var u=0;u<k._howls[q]._sounds.length;u++)if(!k._howls[q]._sounds[u]._paused)return k;return k._suspendTimer&&clearTimeout(k._suspendTimer),k._suspendTimer=setTimeout(function(){k.autoSuspend&&(k._suspendTimer=null,k.state="suspending", +k.ctx.suspend().then(function(){k.state="suspended";k._resumeAfterSuspend&&(delete k._resumeAfterSuspend,k._autoResume())}))},3E4),k}},_autoResume:function(){var k=this;if(k.ctx&&void 0!==k.ctx.resume&&y.usingWebAudio)return"running"===k.state&&k._suspendTimer?(clearTimeout(k._suspendTimer),k._suspendTimer=null):"suspended"===k.state?(k.ctx.resume().then(function(){k.state="running";for(var q=0;q<k._howls.length;q++)k._howls[q]._emit("resume")}),k._suspendTimer&&(clearTimeout(k._suspendTimer),k._suspendTimer= +null)):"suspending"===k.state&&(k._resumeAfterSuspend=!0),k}};var y=new ma,Q=function(k){if(!k.src||0===k.src.length)return void console.error("An array of source files must be passed with any new Howl.");this.init(k)};Q.prototype={init:function(q){var v=this;return y.ctx||k(),v._autoplay=q.autoplay||!1,v._format="string"!=typeof q.format?q.format:[q.format],v._html5=q.html5||!1,v._muted=q.mute||!1,v._loop=q.loop||!1,v._pool=q.pool||5,v._preload="boolean"!=typeof q.preload||q.preload,v._rate=q.rate|| +1,v._sprite=q.sprite||{},v._src="string"!=typeof q.src?q.src:[q.src],v._volume=void 0!==q.volume?q.volume:1,v._xhrWithCredentials=q.xhrWithCredentials||!1,v._duration=0,v._state="unloaded",v._sounds=[],v._endTimers={},v._queue=[],v._playLock=!1,v._onend=q.onend?[{fn:q.onend}]:[],v._onfade=q.onfade?[{fn:q.onfade}]:[],v._onload=q.onload?[{fn:q.onload}]:[],v._onloaderror=q.onloaderror?[{fn:q.onloaderror}]:[],v._onplayerror=q.onplayerror?[{fn:q.onplayerror}]:[],v._onpause=q.onpause?[{fn:q.onpause}]:[], +v._onplay=q.onplay?[{fn:q.onplay}]:[],v._onstop=q.onstop?[{fn:q.onstop}]:[],v._onmute=q.onmute?[{fn:q.onmute}]:[],v._onvolume=q.onvolume?[{fn:q.onvolume}]:[],v._onrate=q.onrate?[{fn:q.onrate}]:[],v._onseek=q.onseek?[{fn:q.onseek}]:[],v._onunlock=q.onunlock?[{fn:q.onunlock}]:[],v._onresume=[],v._webAudio=y.usingWebAudio&&!v._html5,void 0!==y.ctx&&y.ctx&&y.autoUnlock&&y._unlockAudio(),y._howls.push(v),v._autoplay&&v._queue.push({event:"play",action:function(){v.play()}}),v._preload&&v.load(),v},load:function(){var k= +null;if(y.noAudio)return void this._emit("loaderror",null,"No audio support.");"string"==typeof this._src&&(this._src=[this._src]);for(var q=0;q<this._src.length;q++){var u;if(this._format&&this._format[q])var ya=this._format[q];else{if("string"!=typeof(u=this._src[q])){this._emit("loaderror",null,"Non-string found in selected audio sources - ignoring.");continue}(ya=/^data:audio\/([^;,]+);/i.exec(u))||(ya=/\.([^.]+)$/.exec(u.split("?",1)[0]));ya&&(ya=ya[1].toLowerCase())}if(ya||console.warn('No file extension was found. Consider using the "format" property or specify an extension.'), +ya&&y.codecs(ya)){k=this._src[q];break}}return k?(this._src=k,this._state="loading","https:"===window.location.protocol&&"http:"===k.slice(0,5)&&(this._html5=!0,this._webAudio=!1),new M(this),this._webAudio&&na(this),this):void this._emit("loaderror",null,"No codec support for selected audio sources.")},play:function(k,q){var v=this,u=null;if("number"==typeof k)u=k,k=null;else{if("string"==typeof k&&"loaded"===v._state&&!v._sprite[k])return null;if(void 0===k&&(k="__default",!v._playLock)){for(var E= +0,F=0;F<v._sounds.length;F++)v._sounds[F]._paused&&!v._sounds[F]._ended&&(E++,u=v._sounds[F]._id);1===E?k=null:u=null}}var M=u?v._soundById(u):v._inactiveSound();if(!M)return null;if(u&&!k&&(k=M._sprite||"__default"),"loaded"!==v._state){M._sprite=k;M._ended=!1;var Q=M._id;return v._queue.push({event:"play",action:function(){v.play(Q)}}),Q}if(u&&!M._paused)return q||v._loadQueue("play"),M._id;v._webAudio&&y._autoResume();var T=Math.max(0,0<M._seek?M._seek:v._sprite[k][0]/1E3),pa=Math.max(0,(v._sprite[k][0]+ +v._sprite[k][1])/1E3-T),W=1E3*pa/Math.abs(M._rate),n=v._sprite[k][0]/1E3,na=(v._sprite[k][0]+v._sprite[k][1])/1E3,ma=!(!M._loop&&!v._sprite[k][2]);M._sprite=k;M._ended=!1;var J=function(){M._paused=!1;M._seek=T;M._start=n;M._stop=na;M._loop=ma};if(T>=na)return void v._ended(M);var Fa=M._node;if(v._webAudio)u=function(){v._playLock=!1;J();v._refreshBuffer(M);Fa.gain.setValueAtTime(M._muted||v._muted?0:M._volume,y.ctx.currentTime);M._playStart=y.ctx.currentTime;void 0===Fa.bufferSource.start?M._loop? +Fa.bufferSource.noteGrainOn(0,T,86400):Fa.bufferSource.noteGrainOn(0,T,pa):M._loop?Fa.bufferSource.start(0,T,86400):Fa.bufferSource.start(0,T,pa);W!==1/0&&(v._endTimers[M._id]=setTimeout(v._ended.bind(v,M),W));q||setTimeout(function(){v._emit("play",M._id);v._loadQueue()},0)},"running"===y.state?u():(v._playLock=!0,v.once("resume",u),v._clearTimer(M._id));else{var Za=function(){Fa.currentTime=T;Fa.muted=M._muted||v._muted||y._muted||Fa.muted;Fa.volume=M._volume*y.volume();Fa.playbackRate=M._rate; +try{var n=Fa.play();if(n&&"undefined"!=typeof Promise&&(n instanceof Promise||"function"==typeof n.then)?(v._playLock=!0,J(),n.then(function(){v._playLock=!1;Fa._unlocked=!0;q||(v._emit("play",M._id),v._loadQueue())}).catch(function(){v._playLock=!1;v._emit("playerror",M._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction.");M._ended=!0;M._paused=!0})):q||(v._playLock=!1,J(),v._emit("play",M._id),v._loadQueue()), +Fa.playbackRate=M._rate,Fa.paused)return void v._emit("playerror",M._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction.");"__default"!==k||M._loop?v._endTimers[M._id]=setTimeout(v._ended.bind(v,M),W):(v._endTimers[M._id]=function(){v._ended(M);Fa.removeEventListener("ended",v._endTimers[M._id],!1)},Fa.addEventListener("ended",v._endTimers[M._id],!1))}catch(fb){v._emit("playerror",M._id,fb)}};u=window&&window.ejecta|| +!Fa.readyState&&y._navigator.isCocoonJS;if(3<=Fa.readyState||u)Za();else{v._playLock=!0;var ca=function(){Za();Fa.removeEventListener(y._canPlayEvent,ca,!1)};Fa.addEventListener(y._canPlayEvent,ca,!1);v._clearTimer(M._id)}}return M._id},pause:function(k,q){var v=this;if("loaded"!==v._state||v._playLock)return v._queue.push({event:"pause",action:function(){v.pause(k)}}),v;for(var u=v._getSoundIds(k),E=0;E<u.length;E++){v._clearTimer(u[E]);var F=v._soundById(u[E]);if(F&&!F._paused&&(F._seek=v.seek(u[E]), +F._rateSeek=0,F._paused=!0,v._stopFade(u[E]),F._node))if(v._webAudio){if(!F._node.bufferSource)continue;void 0===F._node.bufferSource.stop?F._node.bufferSource.noteOff(0):F._node.bufferSource.stop(0);v._cleanBuffer(F._node)}else isNaN(F._node.duration)&&F._node.duration!==1/0||F._node.pause();q||v._emit("pause",F?F._id:null)}return v},stop:function(k,q){var v=this;if("loaded"!==v._state||v._playLock)return v._queue.push({event:"stop",action:function(){v.stop(k)}}),v;for(var u=v._getSoundIds(k),E= +0;E<u.length;E++){v._clearTimer(u[E]);var F=v._soundById(u[E]);F&&(F._seek=F._start||0,F._rateSeek=0,F._paused=!0,F._ended=!0,v._stopFade(u[E]),F._node&&(v._webAudio?F._node.bufferSource&&(void 0===F._node.bufferSource.stop?F._node.bufferSource.noteOff(0):F._node.bufferSource.stop(0),v._cleanBuffer(F._node)):isNaN(F._node.duration)&&F._node.duration!==1/0||(F._node.currentTime=F._start||0,F._node.pause())),q||v._emit("stop",F._id))}return v},mute:function(k,q){var v=this;if("loaded"!==v._state||v._playLock)return v._queue.push({event:"mute", +action:function(){v.mute(k,q)}}),v;if(void 0===q){if("boolean"!=typeof k)return v._muted;v._muted=k}for(var u=v._getSoundIds(q),E=0;E<u.length;E++){var F=v._soundById(u[E]);F&&(F._muted=k,F._interval&&v._stopFade(F._id),v._webAudio&&F._node?F._node.gain.setValueAtTime(k?0:F._volume,y.ctx.currentTime):F._node&&(F._node.muted=!!y._muted||k),v._emit("mute",F._id))}return v},volume:function(){var k,q,u=this,M=arguments;if(0===M.length)return u._volume;1===M.length||2===M.length&&void 0===M[1]?0<=u._getSoundIds().indexOf(M[0])? +q=parseInt(M[0],10):k=parseFloat(M[0]):2<=M.length&&(k=parseFloat(M[0]),q=parseInt(M[1],10));var Z;if(!(void 0!==k&&0<=k&&1>=k))return Z=q?u._soundById(q):u._sounds[0],Z?Z._volume:0;if("loaded"!==u._state||u._playLock)return u._queue.push({event:"volume",action:function(){u.volume.apply(u,M)}}),u;void 0===q&&(u._volume=k);q=u._getSoundIds(q);for(var F=0;F<q.length;F++)(Z=u._soundById(q[F]))&&(Z._volume=k,M[2]||u._stopFade(q[F]),u._webAudio&&Z._node&&!Z._muted?Z._node.gain.setValueAtTime(k,y.ctx.currentTime): +Z._node&&!Z._muted&&(Z._node.volume=k*y.volume()),u._emit("volume",Z._id));return u},fade:function(k,q,u,M){var v=this;if("loaded"!==v._state||v._playLock)return v._queue.push({event:"fade",action:function(){v.fade(k,q,u,M)}}),v;k=parseFloat(k);q=parseFloat(q);u=parseFloat(u);v.volume(k,M);for(var E=v._getSoundIds(M),N=0;N<E.length;N++){var ya=v._soundById(E[N]);if(ya){if(M||v._stopFade(E[N]),v._webAudio&&!ya._muted){var T=y.ctx.currentTime,Q=T+u/1E3;ya._volume=k;ya._node.gain.setValueAtTime(k,T); +ya._node.gain.linearRampToValueAtTime(q,Q)}v._startFadeInterval(ya,k,q,u,E[N],void 0===M)}}return v},_startFadeInterval:function(k,q,u,y,M,F){var v=this,E=q,N=u-q;M=Math.abs(N/.01);M=Math.max(4,0<M?y/M:y);var Z=Date.now();k._fadeTo=u;k._interval=setInterval(function(){var M=(Date.now()-Z)/y;Z=Date.now();E+=N*M;E=Math.max(0,E);E=Math.min(1,E);E=Math.round(100*E)/100;v._webAudio?k._volume=E:v.volume(E,k._id,!0);F&&(v._volume=E);(u<q&&E<=u||u>q&&E>=u)&&(clearInterval(k._interval),k._interval=null,k._fadeTo= +null,v.volume(u,k._id),v._emit("fade",k._id))},M)},_stopFade:function(k){var q=this._soundById(k);return q&&q._interval&&(this._webAudio&&q._node.gain.cancelScheduledValues(y.ctx.currentTime),clearInterval(q._interval),q._interval=null,this.volume(q._fadeTo,k),q._fadeTo=null,this._emit("fade",k)),this},loop:function(){var k,q,u,y=arguments;if(0===y.length)return this._loop;if(1===y.length){if("boolean"!=typeof y[0])return!!(u=this._soundById(parseInt(y[0],10)))&&u._loop;this._loop=k=y[0]}else 2=== +y.length&&(k=y[0],q=parseInt(y[1],10));q=this._getSoundIds(q);for(y=0;y<q.length;y++)(u=this._soundById(q[y]))&&(u._loop=k,this._webAudio&&u._node&&u._node.bufferSource&&(u._node.bufferSource.loop=k,k&&(u._node.bufferSource.loopStart=u._start||0,u._node.bufferSource.loopEnd=u._stop)));return this},rate:function(){var k,q,u=this,M=arguments;0===M.length?q=u._sounds[0]._id:1===M.length?0<=u._getSoundIds().indexOf(M[0])?q=parseInt(M[0],10):k=parseFloat(M[0]):2===M.length&&(k=parseFloat(M[0]),q=parseInt(M[1], +10));var Z;if("number"!=typeof k)return Z=u._soundById(q),Z?Z._rate:u._rate;if("loaded"!==u._state||u._playLock)return u._queue.push({event:"rate",action:function(){u.rate.apply(u,M)}}),u;void 0===q&&(u._rate=k);q=u._getSoundIds(q);for(var F=0;F<q.length;F++)if(Z=u._soundById(q[F])){u.playing(q[F])&&(Z._rateSeek=u.seek(q[F]),Z._playStart=u._webAudio?y.ctx.currentTime:Z._playStart);Z._rate=k;u._webAudio&&Z._node&&Z._node.bufferSource?Z._node.bufferSource.playbackRate.setValueAtTime(k,y.ctx.currentTime): +Z._node&&(Z._node.playbackRate=k);var T=u.seek(q[F]);T=1E3*((u._sprite[Z._sprite][0]+u._sprite[Z._sprite][1])/1E3-T)/Math.abs(Z._rate);!u._endTimers[q[F]]&&Z._paused||(u._clearTimer(q[F]),u._endTimers[q[F]]=setTimeout(u._ended.bind(u,Z),T));u._emit("rate",Z._id)}return u},seek:function(){var k,q,u=this,M=arguments;0===M.length?q=u._sounds[0]._id:1===M.length?0<=u._getSoundIds().indexOf(M[0])?q=parseInt(M[0],10):u._sounds.length&&(q=u._sounds[0]._id,k=parseFloat(M[0])):2===M.length&&(k=parseFloat(M[0]), +q=parseInt(M[1],10));if(void 0===q)return u;if("loaded"!==u._state||u._playLock)return u._queue.push({event:"seek",action:function(){u.seek.apply(u,M)}}),u;var Z=u._soundById(q);if(Z){if(!("number"==typeof k&&0<=k))return u._webAudio?(k=u.playing(q)?y.ctx.currentTime-Z._playStart:0,Z._seek+((Z._rateSeek?Z._rateSeek-Z._seek:0)+k*Math.abs(Z._rate))):Z._node.currentTime;var F=u.playing(q);F&&u.pause(q,!0);Z._seek=k;Z._ended=!1;u._clearTimer(q);u._webAudio||!Z._node||isNaN(Z._node.duration)||(Z._node.currentTime= +k);var T=function(){u._emit("seek",q);F&&u.play(q,!0)};if(F&&!u._webAudio){var Q=function(){u._playLock?setTimeout(Q,0):T()};setTimeout(Q,0)}else T()}return u},playing:function(k){if("number"==typeof k)return k=this._soundById(k),!!k&&!k._paused;for(k=0;k<this._sounds.length;k++)if(!this._sounds[k]._paused)return!0;return!1},duration:function(k){var q=this._duration;k=this._soundById(k);return k&&(q=this._sprite[k._sprite][1]/1E3),q},state:function(){return this._state},unload:function(){for(var k= +this._sounds,q=0;q<k.length;q++)(k[q]._paused||this.stop(k[q]._id),this._webAudio)||(/MSIE |Trident\//.test(y._navigator&&y._navigator.userAgent)||(k[q]._node.src="data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA"),k[q]._node.removeEventListener("error",k[q]._errorFn,!1),k[q]._node.removeEventListener(y._canPlayEvent,k[q]._loadFn,!1),y._releaseHtml5Audio(k[q]._node)),delete k[q]._node,this._clearTimer(k[q]._id);q=y._howls.indexOf(this);0<=q&&y._howls.splice(q, +1);k=!0;for(q=0;q<y._howls.length;q++)if(y._howls[q]._src===this._src||0<=this._src.indexOf(y._howls[q]._src)){k=!1;break}return T&&k&&delete T[this._src],y.noAudio=!1,this._state="unloaded",this._sounds=[],null},on:function(k,q,u,y){k=this["_on"+k];return"function"==typeof q&&k.push(y?{id:u,fn:q,once:y}:{id:u,fn:q}),this},off:function(k,q,u){var v=this["_on"+k];if("number"==typeof q&&(u=q,q=null),q||u)for(k=0;k<v.length;k++){var E=u===v[k].id;if(q===v[k].fn&&E||!q&&E){v.splice(k,1);break}}else if(k)this["_on"+ +k]=[];else for(q=Object.keys(this),k=0;k<q.length;k++)0===q[k].indexOf("_on")&&Array.isArray(this[q[k]])&&(this[q[k]]=[]);return this},once:function(k,q,u){return this.on(k,q,u,1),this},_emit:function(k,q,u){for(var v=this["_on"+k],E=v.length-1;0<=E;E--)v[E].id&&v[E].id!==q&&"load"!==k||(setTimeout(function(k){k.call(this,q,u)}.bind(this,v[E].fn),0),v[E].once&&this.off(k,v[E].fn,v[E].id));return this._loadQueue(k),this},_loadQueue:function(k){if(0<this._queue.length){var q=this._queue[0];q.event=== +k&&(this._queue.shift(),this._loadQueue());k||q.action()}return this},_ended:function(k){var q=k._sprite;if(!this._webAudio&&k._node&&!k._node.paused&&!k._node.ended&&k._node.currentTime<k._stop)return setTimeout(this._ended.bind(this,k),100),this;q=!(!k._loop&&!this._sprite[q][2]);if(this._emit("end",k._id),!this._webAudio&&q&&this.stop(k._id,!0).play(k._id),this._webAudio&&q){this._emit("play",k._id);k._seek=k._start||0;k._rateSeek=0;k._playStart=y.ctx.currentTime;var u=1E3*(k._stop-k._start)/Math.abs(k._rate); +this._endTimers[k._id]=setTimeout(this._ended.bind(this,k),u)}return this._webAudio&&!q&&(k._paused=!0,k._ended=!0,k._seek=k._start||0,k._rateSeek=0,this._clearTimer(k._id),this._cleanBuffer(k._node),y._autoSuspend()),this._webAudio||q||this.stop(k._id,!0),this},_clearTimer:function(k){if(this._endTimers[k]){if("function"!=typeof this._endTimers[k])clearTimeout(this._endTimers[k]);else{var q=this._soundById(k);q&&q._node&&q._node.removeEventListener("ended",this._endTimers[k],!1)}delete this._endTimers[k]}return this}, +_soundById:function(k){for(var q=0;q<this._sounds.length;q++)if(k===this._sounds[q]._id)return this._sounds[q];return null},_inactiveSound:function(){this._drain();for(var k=0;k<this._sounds.length;k++)if(this._sounds[k]._ended)return this._sounds[k].reset();return new M(this)},_drain:function(){var k=this._pool,q=0,u;if(!(this._sounds.length<k)){for(u=0;u<this._sounds.length;u++)this._sounds[u]._ended&&q++;for(u=this._sounds.length-1;0<=u&&!(q<=k);u--)this._sounds[u]._ended&&(this._webAudio&&this._sounds[u]._node&& +this._sounds[u]._node.disconnect(0),this._sounds.splice(u,1),q--)}},_getSoundIds:function(k){if(void 0===k){k=[];for(var q=0;q<this._sounds.length;q++)k.push(this._sounds[q]._id);return k}return[k]},_refreshBuffer:function(k){return k._node.bufferSource=y.ctx.createBufferSource(),k._node.bufferSource.buffer=T[this._src],k._panner?k._node.bufferSource.connect(k._panner):k._node.bufferSource.connect(k._node),k._node.bufferSource.loop=k._loop,k._loop&&(k._node.bufferSource.loopStart=k._start||0,k._node.bufferSource.loopEnd= +k._stop||0),k._node.bufferSource.playbackRate.setValueAtTime(k._rate,y.ctx.currentTime),this},_cleanBuffer:function(k){var q=y._navigator&&0<=y._navigator.vendor.indexOf("Apple");if(y._scratchBuffer&&k.bufferSource&&(k.bufferSource.onended=null,k.bufferSource.disconnect(0),q))try{k.bufferSource.buffer=y._scratchBuffer}catch(N){}return k.bufferSource=null,this}};var M=function(k){this._parent=k;this.init()};M.prototype={init:function(){var k=this._parent;return this._muted=k._muted,this._loop=k._loop, +this._volume=k._volume,this._rate=k._rate,this._seek=0,this._paused=!0,this._ended=!0,this._sprite="__default",this._id=++y._counter,k._sounds.push(this),this.create(),this},create:function(){var k=this._parent,q=y._muted||this._muted||this._parent._muted?0:this._volume;return k._webAudio?(this._node=void 0===y.ctx.createGain?y.ctx.createGainNode():y.ctx.createGain(),this._node.gain.setValueAtTime(q,y.ctx.currentTime),this._node.paused=!0,this._node.connect(y.masterGain)):(this._node=y._obtainHtml5Audio(), +this._errorFn=this._errorListener.bind(this),this._node.addEventListener("error",this._errorFn,!1),this._loadFn=this._loadListener.bind(this),this._node.addEventListener(y._canPlayEvent,this._loadFn,!1),this._node.src=k._src,this._node.preload="auto",this._node.volume=q*y.volume(),this._node.load()),this},reset:function(){var k=this._parent;return this._muted=k._muted,this._loop=k._loop,this._volume=k._volume,this._rate=k._rate,this._seek=0,this._rateSeek=0,this._paused=!0,this._ended=!0,this._sprite= +"__default",this._id=++y._counter,this},_errorListener:function(){this._parent._emit("loaderror",this._id,this._node.error?this._node.error.code:0);this._node.removeEventListener("error",this._errorFn,!1)},_loadListener:function(){var k=this._parent;k._duration=Math.ceil(10*this._node.duration)/10;0===Object.keys(k._sprite).length&&(k._sprite={__default:[0,1E3*k._duration]});"loaded"!==k._state&&(k._state="loaded",k._emit("load"),k._loadQueue());this._node.removeEventListener(y._canPlayEvent,this._loadFn, +!1)}};var T={},na=function(k){var v=k._src;if(T[v])return k._duration=T[v].duration,void q(k);if(/^data:[^;]+;base64,/.test(v)){for(var y=atob(v.split(",")[1]),M=new Uint8Array(y.length),Z=0;Z<y.length;++Z)M[Z]=y.charCodeAt(Z);Ia(M.buffer,k)}else{var F=new XMLHttpRequest;F.open("GET",v,!0);F.withCredentials=k._xhrWithCredentials;F.responseType="arraybuffer";F.onload=function(){var q=(F.status+"")[0];if("0"!==q&&"2"!==q&&"3"!==q)return void k._emit("loaderror",null,"Failed loading audio file with status: "+ +F.status+".");Ia(F.response,k)};F.onerror=function(){k._webAudio&&(k._html5=!0,k._webAudio=!1,k._sounds=[],delete T[v],k.load())};u(F)}},u=function(k){try{k.send()}catch(E){k.onerror()}},Ia=function(k,u){var v=function(){u._emit("loaderror",null,"Decoding audio data failed.")},E=function(k){k&&0<u._sounds.length?(T[u._src]=k,q(u,k)):v()};"undefined"!=typeof Promise&&1===y.ctx.decodeAudioData.length?y.ctx.decodeAudioData(k).then(E).catch(v):y.ctx.decodeAudioData(k,E,v)},q=function(k,q){q&&!k._duration&& +(k._duration=q.duration);0===Object.keys(k._sprite).length&&(k._sprite={__default:[0,1E3*k._duration]});"loaded"!==k._state&&(k._state="loaded",k._emit("load"),k._loadQueue())},k=function(){if(y.usingWebAudio){try{"undefined"!=typeof AudioContext?y.ctx=new AudioContext:"undefined"!=typeof webkitAudioContext?y.ctx=new webkitAudioContext:y.usingWebAudio=!1}catch(N){y.usingWebAudio=!1}y.ctx||(y.usingWebAudio=!1);var k=/iP(hone|od|ad)/.test(y._navigator&&y._navigator.platform),q=y._navigator&&y._navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/); +q=q?parseInt(q[1],10):null;k&&q&&9>q&&(k=/safari/.test(y._navigator&&y._navigator.userAgent.toLowerCase()),(y._navigator&&y._navigator.standalone&&!k||y._navigator&&!y._navigator.standalone&&!k)&&(y.usingWebAudio=!1));y.usingWebAudio&&(y.masterGain=void 0===y.ctx.createGain?y.ctx.createGainNode():y.ctx.createGain(),y.masterGain.gain.setValueAtTime(y._muted?0:1,y.ctx.currentTime),y.masterGain.connect(y.ctx.destination));y._setup()}};"function"==typeof define&&define.amd&&define([],function(){return{Howler:y, +Howl:Q}});"undefined"!=typeof exports&&(exports.Howler=y,exports.Howl=Q);"undefined"!=typeof window?(window.HowlerGlobal=ma,window.Howler=y,window.Howl=Q,window.Sound=M):"undefined"!=typeof global&&(global.HowlerGlobal=ma,global.Howler=y,global.Howl=Q,global.Sound=M)}(); +!function(){HowlerGlobal.prototype._pos=[0,0,0];HowlerGlobal.prototype._orientation=[0,0,-1,0,1,0];HowlerGlobal.prototype.stereo=function(y){if(!this.ctx||!this.ctx.listener)return this;for(var Q=this._howls.length-1;0<=Q;Q--)this._howls[Q].stereo(y);return this};HowlerGlobal.prototype.pos=function(y,Q,M){return this.ctx&&this.ctx.listener?(Q="number"!=typeof Q?this._pos[1]:Q,M="number"!=typeof M?this._pos[2]:M,"number"!=typeof y?this._pos:(this._pos=[y,Q,M],void 0!==this.ctx.listener.positionX?(this.ctx.listener.positionX.setTargetAtTime(this._pos[0], +Howler.ctx.currentTime,.1),this.ctx.listener.positionY.setTargetAtTime(this._pos[1],Howler.ctx.currentTime,.1),this.ctx.listener.positionZ.setTargetAtTime(this._pos[2],Howler.ctx.currentTime,.1)):this.ctx.listener.setPosition(this._pos[0],this._pos[1],this._pos[2]),this)):this};HowlerGlobal.prototype.orientation=function(y,Q,M,T,na,u){if(!this.ctx||!this.ctx.listener)return this;var ma=this._orientation;return Q="number"!=typeof Q?ma[1]:Q,M="number"!=typeof M?ma[2]:M,T="number"!=typeof T?ma[3]:T, +na="number"!=typeof na?ma[4]:na,u="number"!=typeof u?ma[5]:u,"number"!=typeof y?ma:(this._orientation=[y,Q,M,T,na,u],void 0!==this.ctx.listener.forwardX?(this.ctx.listener.forwardX.setTargetAtTime(y,Howler.ctx.currentTime,.1),this.ctx.listener.forwardY.setTargetAtTime(Q,Howler.ctx.currentTime,.1),this.ctx.listener.forwardZ.setTargetAtTime(M,Howler.ctx.currentTime,.1),this.ctx.listener.upX.setTargetAtTime(y,Howler.ctx.currentTime,.1),this.ctx.listener.upY.setTargetAtTime(Q,Howler.ctx.currentTime,.1), +this.ctx.listener.upZ.setTargetAtTime(M,Howler.ctx.currentTime,.1)):this.ctx.listener.setOrientation(y,Q,M,T,na,u),this)};Howl.prototype.init=function(y){return function(Q){return this._orientation=Q.orientation||[1,0,0],this._stereo=Q.stereo||null,this._pos=Q.pos||null,this._pannerAttr={coneInnerAngle:void 0!==Q.coneInnerAngle?Q.coneInnerAngle:360,coneOuterAngle:void 0!==Q.coneOuterAngle?Q.coneOuterAngle:360,coneOuterGain:void 0!==Q.coneOuterGain?Q.coneOuterGain:0,distanceModel:void 0!==Q.distanceModel? +Q.distanceModel:"inverse",maxDistance:void 0!==Q.maxDistance?Q.maxDistance:1E4,panningModel:void 0!==Q.panningModel?Q.panningModel:"HRTF",refDistance:void 0!==Q.refDistance?Q.refDistance:1,rolloffFactor:void 0!==Q.rolloffFactor?Q.rolloffFactor:1},this._onstereo=Q.onstereo?[{fn:Q.onstereo}]:[],this._onpos=Q.onpos?[{fn:Q.onpos}]:[],this._onorientation=Q.onorientation?[{fn:Q.onorientation}]:[],y.call(this,Q)}}(Howl.prototype.init);Howl.prototype.stereo=function(y,Q){var M=this;if(!M._webAudio)return M; +if("loaded"!==M._state)return M._queue.push({event:"stereo",action:function(){M.stereo(y,Q)}}),M;var T=void 0===Howler.ctx.createStereoPanner?"spatial":"stereo";if(void 0===Q){if("number"!=typeof y)return M._stereo;M._stereo=y;M._pos=[y,0,0]}for(var na=M._getSoundIds(Q),u=0;u<na.length;u++){var Ia=M._soundById(na[u]);if(Ia){if("number"!=typeof y)return Ia._stereo;Ia._stereo=y;Ia._pos=[y,0,0];Ia._node&&(Ia._pannerAttr.panningModel="equalpower",Ia._panner&&Ia._panner.pan||ma(Ia,T),"spatial"===T?void 0!== +Ia._panner.positionX?(Ia._panner.positionX.setValueAtTime(y,Howler.ctx.currentTime),Ia._panner.positionY.setValueAtTime(0,Howler.ctx.currentTime),Ia._panner.positionZ.setValueAtTime(0,Howler.ctx.currentTime)):Ia._panner.setPosition(y,0,0):Ia._panner.pan.setValueAtTime(y,Howler.ctx.currentTime));M._emit("stereo",Ia._id)}}return M};Howl.prototype.pos=function(y,Q,M,T){var na=this;if(!na._webAudio)return na;if("loaded"!==na._state)return na._queue.push({event:"pos",action:function(){na.pos(y,Q,M,T)}}), +na;if(Q="number"!=typeof Q?0:Q,M="number"!=typeof M?-.5:M,void 0===T){if("number"!=typeof y)return na._pos;na._pos=[y,Q,M]}for(var u=na._getSoundIds(T),Ia=0;Ia<u.length;Ia++){var q=na._soundById(u[Ia]);if(q){if("number"!=typeof y)return q._pos;q._pos=[y,Q,M];q._node&&(q._panner&&!q._panner.pan||ma(q,"spatial"),void 0!==q._panner.positionX?(q._panner.positionX.setValueAtTime(y,Howler.ctx.currentTime),q._panner.positionY.setValueAtTime(Q,Howler.ctx.currentTime),q._panner.positionZ.setValueAtTime(M, +Howler.ctx.currentTime)):q._panner.setPosition(y,Q,M));na._emit("pos",q._id)}}return na};Howl.prototype.orientation=function(y,Q,M,T){var na=this;if(!na._webAudio)return na;if("loaded"!==na._state)return na._queue.push({event:"orientation",action:function(){na.orientation(y,Q,M,T)}}),na;if(Q="number"!=typeof Q?na._orientation[1]:Q,M="number"!=typeof M?na._orientation[2]:M,void 0===T){if("number"!=typeof y)return na._orientation;na._orientation=[y,Q,M]}for(var u=na._getSoundIds(T),Ia=0;Ia<u.length;Ia++){var q= +na._soundById(u[Ia]);if(q){if("number"!=typeof y)return q._orientation;q._orientation=[y,Q,M];q._node&&(q._panner||(q._pos||(q._pos=na._pos||[0,0,-.5]),ma(q,"spatial")),void 0!==q._panner.orientationX?(q._panner.orientationX.setValueAtTime(y,Howler.ctx.currentTime),q._panner.orientationY.setValueAtTime(Q,Howler.ctx.currentTime),q._panner.orientationZ.setValueAtTime(M,Howler.ctx.currentTime)):q._panner.setOrientation(y,Q,M));na._emit("orientation",q._id)}}return na};Howl.prototype.pannerAttr=function(){var y, +Q,M=arguments;if(!this._webAudio)return this;if(0===M.length)return this._pannerAttr;if(1===M.length){if("object"!=typeof M[0])return Q=this._soundById(parseInt(M[0],10)),Q?Q._pannerAttr:this._pannerAttr;var T=M[0];void 0===y&&(T.pannerAttr||(T.pannerAttr={coneInnerAngle:T.coneInnerAngle,coneOuterAngle:T.coneOuterAngle,coneOuterGain:T.coneOuterGain,distanceModel:T.distanceModel,maxDistance:T.maxDistance,refDistance:T.refDistance,rolloffFactor:T.rolloffFactor,panningModel:T.panningModel}),this._pannerAttr= +{coneInnerAngle:void 0!==T.pannerAttr.coneInnerAngle?T.pannerAttr.coneInnerAngle:this._coneInnerAngle,coneOuterAngle:void 0!==T.pannerAttr.coneOuterAngle?T.pannerAttr.coneOuterAngle:this._coneOuterAngle,coneOuterGain:void 0!==T.pannerAttr.coneOuterGain?T.pannerAttr.coneOuterGain:this._coneOuterGain,distanceModel:void 0!==T.pannerAttr.distanceModel?T.pannerAttr.distanceModel:this._distanceModel,maxDistance:void 0!==T.pannerAttr.maxDistance?T.pannerAttr.maxDistance:this._maxDistance,refDistance:void 0!== +T.pannerAttr.refDistance?T.pannerAttr.refDistance:this._refDistance,rolloffFactor:void 0!==T.pannerAttr.rolloffFactor?T.pannerAttr.rolloffFactor:this._rolloffFactor,panningModel:void 0!==T.pannerAttr.panningModel?T.pannerAttr.panningModel:this._panningModel})}else 2===M.length&&(T=M[0],y=parseInt(M[1],10));y=this._getSoundIds(y);for(M=0;M<y.length;M++)if(Q=this._soundById(y[M])){var na=Q._pannerAttr;na={coneInnerAngle:void 0!==T.coneInnerAngle?T.coneInnerAngle:na.coneInnerAngle,coneOuterAngle:void 0!== +T.coneOuterAngle?T.coneOuterAngle:na.coneOuterAngle,coneOuterGain:void 0!==T.coneOuterGain?T.coneOuterGain:na.coneOuterGain,distanceModel:void 0!==T.distanceModel?T.distanceModel:na.distanceModel,maxDistance:void 0!==T.maxDistance?T.maxDistance:na.maxDistance,refDistance:void 0!==T.refDistance?T.refDistance:na.refDistance,rolloffFactor:void 0!==T.rolloffFactor?T.rolloffFactor:na.rolloffFactor,panningModel:void 0!==T.panningModel?T.panningModel:na.panningModel};var u=Q._panner;u?(u.coneInnerAngle= +na.coneInnerAngle,u.coneOuterAngle=na.coneOuterAngle,u.coneOuterGain=na.coneOuterGain,u.distanceModel=na.distanceModel,u.maxDistance=na.maxDistance,u.refDistance=na.refDistance,u.rolloffFactor=na.rolloffFactor,u.panningModel=na.panningModel):(Q._pos||(Q._pos=this._pos||[0,0,-.5]),ma(Q,"spatial"))}return this};Sound.prototype.init=function(y){return function(){var Q=this._parent;this._orientation=Q._orientation;this._stereo=Q._stereo;this._pos=Q._pos;this._pannerAttr=Q._pannerAttr;y.call(this);this._stereo? +Q.stereo(this._stereo):this._pos&&Q.pos(this._pos[0],this._pos[1],this._pos[2],this._id)}}(Sound.prototype.init);Sound.prototype.reset=function(y){return function(){var Q=this._parent;return this._orientation=Q._orientation,this._stereo=Q._stereo,this._pos=Q._pos,this._pannerAttr=Q._pannerAttr,this._stereo?Q.stereo(this._stereo):this._pos?Q.pos(this._pos[0],this._pos[1],this._pos[2],this._id):this._panner&&(this._panner.disconnect(0),this._panner=void 0,Q._refreshBuffer(this)),y.call(this)}}(Sound.prototype.reset); +var ma=function(y,Q){"spatial"===(Q||"spatial")?(y._panner=Howler.ctx.createPanner(),y._panner.coneInnerAngle=y._pannerAttr.coneInnerAngle,y._panner.coneOuterAngle=y._pannerAttr.coneOuterAngle,y._panner.coneOuterGain=y._pannerAttr.coneOuterGain,y._panner.distanceModel=y._pannerAttr.distanceModel,y._panner.maxDistance=y._pannerAttr.maxDistance,y._panner.refDistance=y._pannerAttr.refDistance,y._panner.rolloffFactor=y._pannerAttr.rolloffFactor,y._panner.panningModel=y._pannerAttr.panningModel,void 0!== +y._panner.positionX?(y._panner.positionX.setValueAtTime(y._pos[0],Howler.ctx.currentTime),y._panner.positionY.setValueAtTime(y._pos[1],Howler.ctx.currentTime),y._panner.positionZ.setValueAtTime(y._pos[2],Howler.ctx.currentTime)):y._panner.setPosition(y._pos[0],y._pos[1],y._pos[2]),void 0!==y._panner.orientationX?(y._panner.orientationX.setValueAtTime(y._orientation[0],Howler.ctx.currentTime),y._panner.orientationY.setValueAtTime(y._orientation[1],Howler.ctx.currentTime),y._panner.orientationZ.setValueAtTime(y._orientation[2], +Howler.ctx.currentTime)):y._panner.setOrientation(y._orientation[0],y._orientation[1],y._orientation[2])):(y._panner=Howler.ctx.createStereoPanner(),y._panner.pan.setValueAtTime(y._stereo,Howler.ctx.currentTime));y._panner.connect(y._node);y._paused||y._parent.pause(y._id,!0).play(y._id,!0)}}(); +!function(ma){"object"==typeof exports&&"undefined"!=typeof module?module.exports=ma():"function"==typeof define&&define.amd?define([],ma):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).pako=ma()}(function(){return function T(y,Q,M){function na(q,k){if(!Q[q]){if(!y[q]){var v="function"==typeof require&&require;if(!k&&v)return v(q,!0);if(u)return u(q,!0);k=Error("Cannot find module '"+q+"'");throw k.code="MODULE_NOT_FOUND",k;}k=Q[q]={exports:{}}; +y[q][0].call(k.exports,function(k){var u=y[q][1][k];return na(u?u:k)},k,k.exports,T,y,Q,M)}return Q[q].exports}for(var u="function"==typeof require&&require,Ia=0;Ia<M.length;Ia++)na(M[Ia]);return na}({1:[function(y,Q,M){function T(y){if(!(this instanceof T))return new T(y);y=this.options=Ia.assign({level:ya,method:F,chunkSize:16384,windowBits:15,memLevel:8,strategy:Z,to:""},y||{});y.raw&&0<y.windowBits?y.windowBits=-y.windowBits:y.gzip&&0<y.windowBits&&16>y.windowBits&&(y.windowBits+=16);this.err= +0;this.msg="";this.ended=!1;this.chunks=[];this.strm=new v;this.strm.avail_out=0;var M=u.deflateInit2(this.strm,y.level,y.method,y.windowBits,y.memLevel,y.strategy);if(M!==N)throw Error(k[M]);if(y.header&&u.deflateSetHeader(this.strm,y.header),y.dictionary){var Q;if(Q="string"==typeof y.dictionary?q.string2buf(y.dictionary):"[object ArrayBuffer]"===E.call(y.dictionary)?new Uint8Array(y.dictionary):y.dictionary,M=u.deflateSetDictionary(this.strm,Q),M!==N)throw Error(k[M]);this._dict_set=!0}}function na(k, +q){q=new T(q);if(q.push(k,!0),q.err)throw q.msg;return q.result}var u=y("./zlib/deflate"),Ia=y("./utils/common"),q=y("./utils/strings"),k=y("./zlib/messages"),v=y("./zlib/zstream"),E=Object.prototype.toString,N=0,ya=-1,Z=0,F=8;T.prototype.push=function(k,v){var F,y=this.strm,M=this.options.chunkSize;if(this.ended)return!1;v=v===~~v?v:!0===v?4:0;"string"==typeof k?y.input=q.string2buf(k):"[object ArrayBuffer]"===E.call(k)?y.input=new Uint8Array(k):y.input=k;y.next_in=0;y.avail_in=y.input.length;do{if(0=== +y.avail_out&&(y.output=new Ia.Buf8(M),y.next_out=0,y.avail_out=M),F=u.deflate(y,v),1!==F&&F!==N)return this.onEnd(F),this.ended=!0,!1;0!==y.avail_out&&(0!==y.avail_in||4!==v&&2!==v)||("string"===this.options.to?this.onData(q.buf2binstring(Ia.shrinkBuf(y.output,y.next_out))):this.onData(Ia.shrinkBuf(y.output,y.next_out)))}while((0<y.avail_in||0===y.avail_out)&&1!==F);return 4===v?(F=u.deflateEnd(this.strm),this.onEnd(F),this.ended=!0,F===N):2!==v||(this.onEnd(N),y.avail_out=0,!0)};T.prototype.onData= +function(k){this.chunks.push(k)};T.prototype.onEnd=function(k){k===N&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=Ia.flattenChunks(this.chunks));this.chunks=[];this.err=k;this.msg=this.strm.msg};M.Deflate=T;M.deflate=na;M.deflateRaw=function(k,q){return q=q||{},q.raw=!0,na(k,q)};M.gzip=function(k,q){return q=q||{},q.gzip=!0,na(k,q)}},{"./utils/common":3,"./utils/strings":4,"./zlib/deflate":8,"./zlib/messages":13,"./zlib/zstream":15}],2:[function(y,Q,M){function T(q){if(!(this instanceof +T))return new T(q);var F=this.options=Ia.assign({chunkSize:16384,windowBits:0,to:""},q||{});F.raw&&0<=F.windowBits&&16>F.windowBits&&(F.windowBits=-F.windowBits,0===F.windowBits&&(F.windowBits=-15));!(0<=F.windowBits&&16>F.windowBits)||q&&q.windowBits||(F.windowBits+=32);15<F.windowBits&&48>F.windowBits&&0===(15&F.windowBits)&&(F.windowBits|=15);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.strm=new E;this.strm.avail_out=0;q=u.inflateInit2(this.strm,F.windowBits);if(q!==k.Z_OK)throw Error(v[q]); +this.header=new N;u.inflateGetHeader(this.strm,this.header)}function na(k,q){q=new T(q);if(q.push(k,!0),q.err)throw q.msg;return q.result}var u=y("./zlib/inflate"),Ia=y("./utils/common"),q=y("./utils/strings"),k=y("./zlib/constants"),v=y("./zlib/messages"),E=y("./zlib/zstream"),N=y("./zlib/gzheader"),ya=Object.prototype.toString;T.prototype.push=function(v,E){var y,F,N,M,W,n=this.strm,T=this.options.chunkSize,Q=this.options.dictionary,J=!1;if(this.ended)return!1;E=E===~~E?E:!0===E?k.Z_FINISH:k.Z_NO_FLUSH; +"string"==typeof v?n.input=q.binstring2buf(v):"[object ArrayBuffer]"===ya.call(v)?n.input=new Uint8Array(v):n.input=v;n.next_in=0;n.avail_in=n.input.length;do{if(0===n.avail_out&&(n.output=new Ia.Buf8(T),n.next_out=0,n.avail_out=T),y=u.inflate(n,k.Z_NO_FLUSH),y===k.Z_NEED_DICT&&Q&&(W="string"==typeof Q?q.string2buf(Q):"[object ArrayBuffer]"===ya.call(Q)?new Uint8Array(Q):Q,y=u.inflateSetDictionary(this.strm,W)),y===k.Z_BUF_ERROR&&!0===J&&(y=k.Z_OK,J=!1),y!==k.Z_STREAM_END&&y!==k.Z_OK)return this.onEnd(y), +this.ended=!0,!1;n.next_out&&(0!==n.avail_out&&y!==k.Z_STREAM_END&&(0!==n.avail_in||E!==k.Z_FINISH&&E!==k.Z_SYNC_FLUSH)||("string"===this.options.to?(F=q.utf8border(n.output,n.next_out),N=n.next_out-F,M=q.buf2string(n.output,F),n.next_out=N,n.avail_out=T-N,N&&Ia.arraySet(n.output,n.output,F,N,0),this.onData(M)):this.onData(Ia.shrinkBuf(n.output,n.next_out))));0===n.avail_in&&0===n.avail_out&&(J=!0)}while((0<n.avail_in||0===n.avail_out)&&y!==k.Z_STREAM_END);return y===k.Z_STREAM_END&&(E=k.Z_FINISH), +E===k.Z_FINISH?(y=u.inflateEnd(this.strm),this.onEnd(y),this.ended=!0,y===k.Z_OK):E!==k.Z_SYNC_FLUSH||(this.onEnd(k.Z_OK),n.avail_out=0,!0)};T.prototype.onData=function(k){this.chunks.push(k)};T.prototype.onEnd=function(q){q===k.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=Ia.flattenChunks(this.chunks));this.chunks=[];this.err=q;this.msg=this.strm.msg};M.Inflate=T;M.inflate=na;M.inflateRaw=function(k,q){return q=q||{},q.raw=!0,na(k,q)};M.ungzip=na},{"./utils/common":3, +"./utils/strings":4,"./zlib/constants":6,"./zlib/gzheader":9,"./zlib/inflate":11,"./zlib/messages":13,"./zlib/zstream":15}],3:[function(y,Q,M){y="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;M.assign=function(u){for(var y=Array.prototype.slice.call(arguments,1);y.length;){var q=y.shift();if(q){if("object"!=typeof q)throw new TypeError(q+"must be non-object");for(var k in q)q.hasOwnProperty(k)&&(u[k]=q[k])}}return u};M.shrinkBuf=function(u,y){return u.length=== +y?u:u.subarray?u.subarray(0,y):(u.length=y,u)};var T={arraySet:function(u,y,q,k,v){if(y.subarray&&u.subarray)return void u.set(y.subarray(q,q+k),v);for(var E=0;E<k;E++)u[v+E]=y[q+E]},flattenChunks:function(u){var y,q;var k=q=0;for(y=u.length;k<y;k++)q+=u[k].length;var v=new Uint8Array(q);k=q=0;for(y=u.length;k<y;k++){var E=u[k];v.set(E,q);q+=E.length}return v}},na={arraySet:function(u,y,q,k,v){for(var E=0;E<k;E++)u[v+E]=y[q+E]},flattenChunks:function(u){return[].concat.apply([],u)}};M.setTyped=function(u){u? +(M.Buf8=Uint8Array,M.Buf16=Uint16Array,M.Buf32=Int32Array,M.assign(M,T)):(M.Buf8=Array,M.Buf16=Array,M.Buf32=Array,M.assign(M,na))};M.setTyped(y)},{}],4:[function(y,Q,M){function T(k,q){if(65537>q&&(k.subarray&&Ia||!k.subarray&&u))return String.fromCharCode.apply(null,na.shrinkBuf(k,q));for(var v="",y=0;y<q;y++)v+=String.fromCharCode(k[y]);return v}var na=y("./common"),u=!0,Ia=!0;try{String.fromCharCode.apply(null,[0])}catch(k){u=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(k){Ia= +!1}var q=new na.Buf8(256);for(y=0;256>y;y++)q[y]=252<=y?6:248<=y?5:240<=y?4:224<=y?3:192<=y?2:1;q[254]=q[254]=1;M.string2buf=function(k){var q,u,y,M=k.length,T=0;for(u=0;u<M;u++){var F=k.charCodeAt(u);55296===(64512&F)&&u+1<M&&(q=k.charCodeAt(u+1),56320===(64512&q)&&(F=65536+(F-55296<<10)+(q-56320),u++));T+=128>F?1:2048>F?2:65536>F?3:4}var Q=new na.Buf8(T);for(u=y=0;y<T;u++)F=k.charCodeAt(u),55296===(64512&F)&&u+1<M&&(q=k.charCodeAt(u+1),56320===(64512&q)&&(F=65536+(F-55296<<10)+(q-56320),u++)),128> +F?Q[y++]=F:2048>F?(Q[y++]=192|F>>>6,Q[y++]=128|63&F):65536>F?(Q[y++]=224|F>>>12,Q[y++]=128|F>>>6&63,Q[y++]=128|63&F):(Q[y++]=240|F>>>18,Q[y++]=128|F>>>12&63,Q[y++]=128|F>>>6&63,Q[y++]=128|63&F);return Q};M.buf2binstring=function(k){return T(k,k.length)};M.binstring2buf=function(k){for(var q=new na.Buf8(k.length),u=0,y=q.length;u<y;u++)q[u]=k.charCodeAt(u);return q};M.buf2string=function(k,u){var v,y,M,Q=u||k.length,F=Array(2*Q);for(u=v=0;u<Q;)if(y=k[u++],128>y)F[v++]=y;else if(M=q[y],4<M)F[v++]=65533, +u+=M-1;else{for(y&=2===M?31:3===M?15:7;1<M&&u<Q;)y=y<<6|63&k[u++],M--;1<M?F[v++]=65533:65536>y?F[v++]=y:(y-=65536,F[v++]=55296|y>>10&1023,F[v++]=56320|1023&y)}return T(F,v)};M.utf8border=function(k,u){var v;u=u||k.length;u>k.length&&(u=k.length);for(v=u-1;0<=v&&128===(192&k[v]);)v--;return 0>v?u:0===v?u:v+q[k[v]]>u?v:u}},{"./common":3}],5:[function(y,Q,M){Q.exports=function(y,M,u,Q){var q=65535&y|0;y=y>>>16&65535|0;for(var k;0!==u;){k=2E3<u?2E3:u;u-=k;do q=q+M[Q++]|0,y=y+q|0;while(--k);q%=65521;y%= +65521}return q|y<<16|0}},{}],6:[function(y,Q,M){Q.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],7:[function(y,Q,M){var T=function(){for(var y,u=[],M=0;256> +M;M++){y=M;for(var q=0;8>q;q++)y=1&y?3988292384^y>>>1:y>>>1;u[M]=y}return u}();Q.exports=function(y,u,M,q){M=q+M;for(y^=-1;q<M;q++)y=y>>>8^T[255&(y^u[q])];return y^-1}},{}],8:[function(y,Q,M){function T(k,n){return k.msg=oc[n],n}function na(k){for(var n=k.length;0<=--n;)k[n]=0}function u(k){var n=k.state,q=n.pending;q>k.avail_out&&(q=k.avail_out);0!==q&&(pa.arraySet(k.output,n.pending_buf,n.pending_out,q,k.next_out),k.next_out+=q,n.pending_out+=q,k.total_out+=q,k.avail_out-=q,n.pending-=q,0===n.pending&& +(n.pending_out=0))}function Ia(k,n){W._tr_flush_block(k,0<=k.block_start?k.block_start:-1,k.strstart-k.block_start,n);k.block_start=k.strstart;u(k.strm)}function q(k,n){k.pending_buf[k.pending++]=n}function k(k,n){k.pending_buf[k.pending++]=n>>>8&255;k.pending_buf[k.pending++]=255&n}function v(k,n){var q,u,v=k.max_chain_length,B=k.strstart,z=k.prev_length,y=k.nice_match,J=k.strstart>k.w_size-Ea?k.strstart-(k.w_size-Ea):0,A=k.window,E=k.w_mask,F=k.prev,M=k.strstart+da,N=A[B+z-1],Q=A[B+z];k.prev_length>= +k.good_match&&(v>>=2);y>k.lookahead&&(y=k.lookahead);do if(q=n,A[q+z]===Q&&A[q+z-1]===N&&A[q]===A[B]&&A[++q]===A[B+1]){B+=2;for(q++;A[++B]===A[++q]&&A[++B]===A[++q]&&A[++B]===A[++q]&&A[++B]===A[++q]&&A[++B]===A[++q]&&A[++B]===A[++q]&&A[++B]===A[++q]&&A[++B]===A[++q]&&B<M;);if(u=da-(M-B),B=M-da,u>z){if(k.match_start=n,z=u,u>=y)break;N=A[B+z-1];Q=A[B+z]}}while((n=F[n&E])>J&&0!==--v);return z<=k.lookahead?z:k.lookahead}function E(k){var q,u,v=k.w_size;do{if(u=k.window_size-k.lookahead-k.strstart,k.strstart>= +v+(v-Ea)){pa.arraySet(k.window,k.window,v,v,0);k.match_start-=v;k.strstart-=v;k.block_start-=v;var B=q=k.hash_size;do{var z=k.head[--B];k.head[B]=z>=v?z-v:0}while(--q);B=q=v;do z=k.prev[--B],k.prev[B]=z>=v?z-v:0;while(--q);u+=v}if(0===k.strm.avail_in)break;B=k.strm;z=k.window;var A=k.strstart+k.lookahead,y=B.avail_in;if(q=(y>u&&(y=u),0===y?0:(B.avail_in-=y,pa.arraySet(z,B.input,B.next_in,y,A),1===B.state.wrap?B.adler=n(B.adler,z,y,A):2===B.state.wrap&&(B.adler=$b(B.adler,z,y,A)),B.next_in+=y,B.total_in+= +y,y)),k.lookahead+=q,k.lookahead+k.insert>=ta)for(u=k.strstart-k.insert,k.ins_h=k.window[u],k.ins_h=(k.ins_h<<k.hash_shift^k.window[u+1])&k.hash_mask;k.insert&&(k.ins_h=(k.ins_h<<k.hash_shift^k.window[u+ta-1])&k.hash_mask,k.prev[u&k.w_mask]=k.head[k.ins_h],k.head[k.ins_h]=u,u++,k.insert--,!(k.lookahead+k.insert<ta)););}while(k.lookahead<Ea&&0!==k.strm.avail_in)}function N(k,n){for(var q,u;;){if(k.lookahead<Ea){if(E(k),k.lookahead<Ea&&n===J)return z;if(0===k.lookahead)break}if(q=0,k.lookahead>=ta&& +(k.ins_h=(k.ins_h<<k.hash_shift^k.window[k.strstart+ta-1])&k.hash_mask,q=k.prev[k.strstart&k.w_mask]=k.head[k.ins_h],k.head[k.ins_h]=k.strstart),0!==q&&k.strstart-q<=k.w_size-Ea&&(k.match_length=v(k,q)),k.match_length>=ta)if(u=W._tr_tally(k,k.strstart-k.match_start,k.match_length-ta),k.lookahead-=k.match_length,k.match_length<=k.max_lazy_match&&k.lookahead>=ta){k.match_length--;do k.strstart++,k.ins_h=(k.ins_h<<k.hash_shift^k.window[k.strstart+ta-1])&k.hash_mask,q=k.prev[k.strstart&k.w_mask]=k.head[k.ins_h], +k.head[k.ins_h]=k.strstart;while(0!==--k.match_length);k.strstart++}else k.strstart+=k.match_length,k.match_length=0,k.ins_h=k.window[k.strstart],k.ins_h=(k.ins_h<<k.hash_shift^k.window[k.strstart+1])&k.hash_mask;else u=W._tr_tally(k,0,k.window[k.strstart]),k.lookahead--,k.strstart++;if(u&&(Ia(k,!1),0===k.strm.avail_out))return z}return k.insert=k.strstart<ta-1?k.strstart:ta-1,n===Fa?(Ia(k,!0),0===k.strm.avail_out?qb:pd):k.last_lit&&(Ia(k,!1),0===k.strm.avail_out)?z:ve}function ya(k,n){for(var q, +u,B;;){if(k.lookahead<Ea){if(E(k),k.lookahead<Ea&&n===J)return z;if(0===k.lookahead)break}if(q=0,k.lookahead>=ta&&(k.ins_h=(k.ins_h<<k.hash_shift^k.window[k.strstart+ta-1])&k.hash_mask,q=k.prev[k.strstart&k.w_mask]=k.head[k.ins_h],k.head[k.ins_h]=k.strstart),k.prev_length=k.match_length,k.prev_match=k.match_start,k.match_length=ta-1,0!==q&&k.prev_length<k.max_lazy_match&&k.strstart-q<=k.w_size-Ea&&(k.match_length=v(k,q),5>=k.match_length&&(k.strategy===fb||k.match_length===ta&&4096<k.strstart-k.match_start)&& +(k.match_length=ta-1)),k.prev_length>=ta&&k.match_length<=k.prev_length){B=k.strstart+k.lookahead-ta;u=W._tr_tally(k,k.strstart-1-k.prev_match,k.prev_length-ta);k.lookahead-=k.prev_length-1;k.prev_length-=2;do++k.strstart<=B&&(k.ins_h=(k.ins_h<<k.hash_shift^k.window[k.strstart+ta-1])&k.hash_mask,q=k.prev[k.strstart&k.w_mask]=k.head[k.ins_h],k.head[k.ins_h]=k.strstart);while(0!==--k.prev_length);if(k.match_available=0,k.match_length=ta-1,k.strstart++,u&&(Ia(k,!1),0===k.strm.avail_out))return z}else if(k.match_available){if(u= +W._tr_tally(k,0,k.window[k.strstart-1]),u&&Ia(k,!1),k.strstart++,k.lookahead--,0===k.strm.avail_out)return z}else k.match_available=1,k.strstart++,k.lookahead--}return k.match_available&&(W._tr_tally(k,0,k.window[k.strstart-1]),k.match_available=0),k.insert=k.strstart<ta-1?k.strstart:ta-1,n===Fa?(Ia(k,!0),0===k.strm.avail_out?qb:pd):k.last_lit&&(Ia(k,!1),0===k.strm.avail_out)?z:ve}function Z(k,n,q,u,v){this.good_length=k;this.max_lazy=n;this.nice_length=q;this.max_chain=u;this.func=v}function F(){this.strm= +null;this.status=0;this.pending_buf=null;this.wrap=this.pending=this.pending_out=this.pending_buf_size=0;this.gzhead=null;this.gzindex=0;this.method=Qd;this.last_flush=-1;this.w_mask=this.w_bits=this.w_size=0;this.window=null;this.window_size=0;this.head=this.prev=null;this.nice_match=this.good_match=this.strategy=this.level=this.max_lazy_match=this.max_chain_length=this.prev_length=this.lookahead=this.match_start=this.strstart=this.match_available=this.prev_match=this.match_length=this.block_start= +this.hash_shift=this.hash_mask=this.hash_bits=this.hash_size=this.ins_h=0;this.dyn_ltree=new pa.Buf16(2*ob);this.dyn_dtree=new pa.Buf16(2*(2*id+1));this.bl_tree=new pa.Buf16(2*(2*A+1));na(this.dyn_ltree);na(this.dyn_dtree);na(this.bl_tree);this.bl_desc=this.d_desc=this.l_desc=null;this.bl_count=new pa.Buf16(Jb+1);this.heap=new pa.Buf16(2*ac+1);na(this.heap);this.heap_max=this.heap_len=0;this.depth=new pa.Buf16(2*ac+1);na(this.depth);this.bi_valid=this.bi_buf=this.insert=this.matches=this.static_len= +this.opt_len=this.d_buf=this.last_lit=this.lit_bufsize=this.l_buf=0}function Pd(k){var n;return k&&k.state?(k.total_in=k.total_out=0,k.data_type=ub,n=k.state,n.pending=0,n.pending_out=0,0>n.wrap&&(n.wrap=-n.wrap),n.status=n.wrap?U:ka,k.adler=2===n.wrap?0:1,n.last_flush=J,W._tr_init(n),Za):T(k,ca)}function Qc(k){var n=Pd(k);n===Za&&(k=k.state,k.window_size=2*k.w_size,na(k.head),k.max_lazy_match=Ma[k.level].max_lazy,k.good_match=Ma[k.level].good_length,k.nice_match=Ma[k.level].nice_length,k.max_chain_length= +Ma[k.level].max_chain,k.strstart=0,k.block_start=0,k.lookahead=0,k.insert=0,k.match_length=k.prev_length=ta-1,k.match_available=0,k.ins_h=0);return n}function Le(k,n,q,u,v,z){if(!k)return ca;var C=1;if(n===Pb&&(n=6),0>u?(C=0,u=-u):15<u&&(C=2,u-=16),1>v||v>jd||q!==Qd||8>u||15<u||0>n||9<n||0>z||z>Zd)return T(k,ca);8===u&&(u=9);var B=new F;return k.state=B,B.strm=k,B.wrap=C,B.gzhead=null,B.w_bits=u,B.w_size=1<<B.w_bits,B.w_mask=B.w_size-1,B.hash_bits=v+7,B.hash_size=1<<B.hash_bits,B.hash_mask=B.hash_size- +1,B.hash_shift=~~((B.hash_bits+ta-1)/ta),B.window=new pa.Buf8(2*B.w_size),B.head=new pa.Buf16(B.hash_size),B.prev=new pa.Buf16(B.w_size),B.lit_bufsize=1<<v+6,B.pending_buf_size=4*B.lit_bufsize,B.pending_buf=new pa.Buf8(B.pending_buf_size),B.d_buf=1*B.lit_bufsize,B.l_buf=3*B.lit_bufsize,B.level=n,B.strategy=z,B.method=q,Qc(k)}var pa=y("../utils/common"),W=y("./trees"),n=y("./adler32"),$b=y("./crc32"),oc=y("./messages"),J=0,Fa=4,Za=0,ca=-2,Pb=-1,fb=1,Zd=4,ub=2,Qd=8,jd=9,ac=286,id=30,A=19,ob=2*ac+1, +Jb=15,ta=3,da=258,Ea=da+ta+1,U=42,ka=113,z=1,ve=2,qb=3,pd=4;var Ma=[new Z(0,0,0,0,function(k,n){var q=65535;for(q>k.pending_buf_size-5&&(q=k.pending_buf_size-5);;){if(1>=k.lookahead){if(E(k),0===k.lookahead&&n===J)return z;if(0===k.lookahead)break}k.strstart+=k.lookahead;k.lookahead=0;var u=k.block_start+q;if((0===k.strstart||k.strstart>=u)&&(k.lookahead=k.strstart-u,k.strstart=u,Ia(k,!1),0===k.strm.avail_out)||k.strstart-k.block_start>=k.w_size-Ea&&(Ia(k,!1),0===k.strm.avail_out))return z}return k.insert= +0,n===Fa?(Ia(k,!0),0===k.strm.avail_out?qb:pd):(k.strstart>k.block_start&&Ia(k,!1),z)}),new Z(4,4,8,4,N),new Z(4,5,16,8,N),new Z(4,6,32,32,N),new Z(4,4,16,16,ya),new Z(8,16,32,32,ya),new Z(8,16,128,128,ya),new Z(8,32,128,256,ya),new Z(32,128,258,1024,ya),new Z(32,258,258,4096,ya)];M.deflateInit=function(k,n){return Le(k,n,Qd,15,8,0)};M.deflateInit2=Le;M.deflateReset=Qc;M.deflateResetKeep=Pd;M.deflateSetHeader=function(k,n){return k&&k.state?2!==k.state.wrap?ca:(k.state.gzhead=n,Za):ca};M.deflate= +function(n,v){var B,C;if(!n||!n.state||5<v||0>v)return n?T(n,ca):ca;if(C=n.state,!n.output||!n.input&&0!==n.avail_in||666===C.status&&v!==Fa)return T(n,0===n.avail_out?-5:ca);if(C.strm=n,B=C.last_flush,C.last_flush=v,C.status===U)if(2===C.wrap)n.adler=0,q(C,31),q(C,139),q(C,8),C.gzhead?(q(C,(C.gzhead.text?1:0)+(C.gzhead.hcrc?2:0)+(C.gzhead.extra?4:0)+(C.gzhead.name?8:0)+(C.gzhead.comment?16:0)),q(C,255&C.gzhead.time),q(C,C.gzhead.time>>8&255),q(C,C.gzhead.time>>16&255),q(C,C.gzhead.time>>24&255), +q(C,9===C.level?2:2<=C.strategy||2>C.level?4:0),q(C,255&C.gzhead.os),C.gzhead.extra&&C.gzhead.extra.length&&(q(C,255&C.gzhead.extra.length),q(C,C.gzhead.extra.length>>8&255)),C.gzhead.hcrc&&(n.adler=$b(n.adler,C.pending_buf,C.pending,0)),C.gzindex=0,C.status=69):(q(C,0),q(C,0),q(C,0),q(C,0),q(C,0),q(C,9===C.level?2:2<=C.strategy||2>C.level?4:0),q(C,3),C.status=ka);else{var A=Qd+(C.w_bits-8<<4)<<8;A|=(2<=C.strategy||2>C.level?0:6>C.level?1:6===C.level?2:3)<<6;0!==C.strstart&&(A|=32);C.status=ka;k(C, +A+(31-A%31));0!==C.strstart&&(k(C,n.adler>>>16),k(C,65535&n.adler));n.adler=1}if(69===C.status)if(C.gzhead.extra){for(A=C.pending;C.gzindex<(65535&C.gzhead.extra.length)&&(C.pending!==C.pending_buf_size||(C.gzhead.hcrc&&C.pending>A&&(n.adler=$b(n.adler,C.pending_buf,C.pending-A,A)),u(n),A=C.pending,C.pending!==C.pending_buf_size));)q(C,255&C.gzhead.extra[C.gzindex]),C.gzindex++;C.gzhead.hcrc&&C.pending>A&&(n.adler=$b(n.adler,C.pending_buf,C.pending-A,A));C.gzindex===C.gzhead.extra.length&&(C.gzindex= +0,C.status=73)}else C.status=73;if(73===C.status)if(C.gzhead.name){A=C.pending;do{if(C.pending===C.pending_buf_size&&(C.gzhead.hcrc&&C.pending>A&&(n.adler=$b(n.adler,C.pending_buf,C.pending-A,A)),u(n),A=C.pending,C.pending===C.pending_buf_size)){var y=1;break}y=C.gzindex<C.gzhead.name.length?255&C.gzhead.name.charCodeAt(C.gzindex++):0;q(C,y)}while(0!==y);C.gzhead.hcrc&&C.pending>A&&(n.adler=$b(n.adler,C.pending_buf,C.pending-A,A));0===y&&(C.gzindex=0,C.status=91)}else C.status=91;if(91===C.status)if(C.gzhead.comment){A= +C.pending;do{if(C.pending===C.pending_buf_size&&(C.gzhead.hcrc&&C.pending>A&&(n.adler=$b(n.adler,C.pending_buf,C.pending-A,A)),u(n),A=C.pending,C.pending===C.pending_buf_size)){y=1;break}y=C.gzindex<C.gzhead.comment.length?255&C.gzhead.comment.charCodeAt(C.gzindex++):0;q(C,y)}while(0!==y);C.gzhead.hcrc&&C.pending>A&&(n.adler=$b(n.adler,C.pending_buf,C.pending-A,A));0===y&&(C.status=103)}else C.status=103;if(103===C.status&&(C.gzhead.hcrc?(C.pending+2>C.pending_buf_size&&u(n),C.pending+2<=C.pending_buf_size&& +(q(C,255&n.adler),q(C,n.adler>>8&255),n.adler=0,C.status=ka)):C.status=ka),0!==C.pending){if(u(n),0===n.avail_out)return C.last_flush=-1,Za}else if(0===n.avail_in&&(v<<1)-(4<v?9:0)<=(B<<1)-(4<B?9:0)&&v!==Fa)return T(n,-5);if(666===C.status&&0!==n.avail_in)return T(n,-5);if(0!==n.avail_in||0!==C.lookahead||v!==J&&666!==C.status){if(2===C.strategy)a:{for(var F;;){if(0===C.lookahead&&(E(C),0===C.lookahead)){if(v===J){var M=z;break a}break}if(C.match_length=0,F=W._tr_tally(C,0,C.window[C.strstart]),C.lookahead--, +C.strstart++,F&&(Ia(C,!1),0===C.strm.avail_out)){M=z;break a}}M=(C.insert=0,v===Fa?(Ia(C,!0),0===C.strm.avail_out?qb:pd):C.last_lit&&(Ia(C,!1),0===C.strm.avail_out)?z:ve)}else if(3===C.strategy)a:{var N,Q;for(F=C.window;;){if(C.lookahead<=da){if(E(C),C.lookahead<=da&&v===J){M=z;break a}if(0===C.lookahead)break}if(C.match_length=0,C.lookahead>=ta&&0<C.strstart&&(Q=C.strstart-1,N=F[Q],N===F[++Q]&&N===F[++Q]&&N===F[++Q])){for(B=C.strstart+da;N===F[++Q]&&N===F[++Q]&&N===F[++Q]&&N===F[++Q]&&N===F[++Q]&& +N===F[++Q]&&N===F[++Q]&&N===F[++Q]&&Q<B;);C.match_length=da-(B-Q);C.match_length>C.lookahead&&(C.match_length=C.lookahead)}if(C.match_length>=ta?(M=W._tr_tally(C,1,C.match_length-ta),C.lookahead-=C.match_length,C.strstart+=C.match_length,C.match_length=0):(M=W._tr_tally(C,0,C.window[C.strstart]),C.lookahead--,C.strstart++),M&&(Ia(C,!1),0===C.strm.avail_out)){M=z;break a}}M=(C.insert=0,v===Fa?(Ia(C,!0),0===C.strm.avail_out?qb:pd):C.last_lit&&(Ia(C,!1),0===C.strm.avail_out)?z:ve)}else M=Ma[C.level].func(C, +v);if(M!==qb&&M!==pd||(C.status=666),M===z||M===qb)return 0===n.avail_out&&(C.last_flush=-1),Za;if(M===ve&&(1===v?W._tr_align(C):5!==v&&(W._tr_stored_block(C,0,0,!1),3===v&&(na(C.head),0===C.lookahead&&(C.strstart=0,C.block_start=0,C.insert=0))),u(n),0===n.avail_out))return C.last_flush=-1,Za}return v!==Fa?Za:0>=C.wrap?1:(2===C.wrap?(q(C,255&n.adler),q(C,n.adler>>8&255),q(C,n.adler>>16&255),q(C,n.adler>>24&255),q(C,255&n.total_in),q(C,n.total_in>>8&255),q(C,n.total_in>>16&255),q(C,n.total_in>>24& +255)):(k(C,n.adler>>>16),k(C,65535&n.adler)),u(n),0<C.wrap&&(C.wrap=-C.wrap),0!==C.pending?Za:1)};M.deflateEnd=function(k){var n;return k&&k.state?(n=k.state.status,n!==U&&69!==n&&73!==n&&91!==n&&103!==n&&n!==ka&&666!==n?T(k,ca):(k.state=null,n===ka?T(k,-3):Za)):ca};M.deflateSetDictionary=function(k,q){var u,v,z;var A=q.length;if(!k||!k.state||(u=k.state,v=u.wrap,2===v||1===v&&u.status!==U||u.lookahead))return ca;1===v&&(k.adler=n(k.adler,q,A,0));u.wrap=0;A>=u.w_size&&(0===v&&(na(u.head),u.strstart= +0,u.block_start=0,u.insert=0),z=new pa.Buf8(u.w_size),pa.arraySet(z,q,A-u.w_size,u.w_size,0),q=z,A=u.w_size);z=k.avail_in;var B=k.next_in;var y=k.input;k.avail_in=A;k.next_in=0;k.input=q;for(E(u);u.lookahead>=ta;){q=u.strstart;A=u.lookahead-(ta-1);do u.ins_h=(u.ins_h<<u.hash_shift^u.window[q+ta-1])&u.hash_mask,u.prev[q&u.w_mask]=u.head[u.ins_h],u.head[u.ins_h]=q,q++;while(--A);u.strstart=q;u.lookahead=ta-1;E(u)}return u.strstart+=u.lookahead,u.block_start=u.strstart,u.insert=u.lookahead,u.lookahead= +0,u.match_length=u.prev_length=ta-1,u.match_available=0,k.next_in=B,k.input=y,k.avail_in=z,u.wrap=v,Za};M.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":3,"./adler32":5,"./crc32":7,"./messages":13,"./trees":14}],9:[function(y,Q,M){Q.exports=function(){this.os=this.xflags=this.time=this.text=0;this.extra=null;this.extra_len=0;this.comment=this.name="";this.hcrc=0;this.done=!1}},{}],10:[function(y,Q,M){Q.exports=function(y,M){var u,Q,q;var k=y.state;var v=y.next_in;var E=y.input; +var N=v+(y.avail_in-5);var T=y.next_out;var Z=y.output;M=T-(M-y.avail_out);var F=T+(y.avail_out-257);var na=k.dmax;var Qc=k.wsize;var Le=k.whave;var pa=k.wnext;var W=k.window;var n=k.hold;var $b=k.bits;var oc=k.lencode;var J=k.distcode;var Fa=(1<<k.lenbits)-1;var Za=(1<<k.distbits)-1;a:do{15>$b&&(n+=E[v++]<<$b,$b+=8,n+=E[v++]<<$b,$b+=8);var ca=oc[n&Fa];b:for(;;){if(u=ca>>>24,n>>>=u,$b-=u,u=ca>>>16&255,0===u)Z[T++]=65535&ca;else{if(!(16&u)){if(0===(64&u)){ca=oc[(65535&ca)+(n&(1<<u)-1)];continue b}if(32& +u){k.mode=12;break a}y.msg="invalid literal/length code";k.mode=30;break a}var Pb=65535&ca;(u&=15)&&($b<u&&(n+=E[v++]<<$b,$b+=8),Pb+=n&(1<<u)-1,n>>>=u,$b-=u);15>$b&&(n+=E[v++]<<$b,$b+=8,n+=E[v++]<<$b,$b+=8);ca=J[n&Za];c:for(;;){if(u=ca>>>24,n>>>=u,$b-=u,u=ca>>>16&255,!(16&u)){if(0===(64&u)){ca=J[(65535&ca)+(n&(1<<u)-1)];continue c}y.msg="invalid distance code";k.mode=30;break a}if(Q=65535&ca,u&=15,$b<u&&(n+=E[v++]<<$b,$b+=8,$b<u&&(n+=E[v++]<<$b,$b+=8)),Q+=n&(1<<u)-1,Q>na){y.msg="invalid distance too far back"; +k.mode=30;break a}if(n>>>=u,$b-=u,u=T-M,Q>u){if(u=Q-u,u>Le&&k.sane){y.msg="invalid distance too far back";k.mode=30;break a}if(ca=0,q=W,0===pa){if(ca+=Qc-u,u<Pb){Pb-=u;do Z[T++]=W[ca++];while(--u);ca=T-Q;q=Z}}else if(pa<u){if(ca+=Qc+pa-u,u-=pa,u<Pb){Pb-=u;do Z[T++]=W[ca++];while(--u);if(ca=0,pa<Pb){u=pa;Pb-=u;do Z[T++]=W[ca++];while(--u);ca=T-Q;q=Z}}}else if(ca+=pa-u,u<Pb){Pb-=u;do Z[T++]=W[ca++];while(--u);ca=T-Q;q=Z}for(;2<Pb;)Z[T++]=q[ca++],Z[T++]=q[ca++],Z[T++]=q[ca++],Pb-=3;Pb&&(Z[T++]=q[ca++], +1<Pb&&(Z[T++]=q[ca++]))}else{ca=T-Q;do Z[T++]=Z[ca++],Z[T++]=Z[ca++],Z[T++]=Z[ca++],Pb-=3;while(2<Pb);Pb&&(Z[T++]=Z[ca++],1<Pb&&(Z[T++]=Z[ca++]))}break}}break}}while(v<N&&T<F);Pb=$b>>3;v-=Pb;$b-=Pb<<3;y.next_in=v;y.next_out=T;y.avail_in=v<N?5+(N-v):5-(v-N);y.avail_out=T<F?257+(F-T):257-(T-F);k.hold=n&(1<<$b)-1;k.bits=$b}},{}],11:[function(y,Q,M){function T(k){return(k>>>24&255)+(k>>>8&65280)+((65280&k)<<8)+((255&k)<<24)}function na(){this.mode=0;this.last=!1;this.wrap=0;this.havedict=!1;this.total= +this.check=this.dmax=this.flags=0;this.head=null;this.wnext=this.whave=this.wsize=this.wbits=0;this.window=null;this.extra=this.offset=this.length=this.bits=this.hold=0;this.distcode=this.lencode=null;this.have=this.ndist=this.nlen=this.ncode=this.distbits=this.lenbits=0;this.next=null;this.lens=new ya.Buf16(320);this.work=new ya.Buf16(288);this.distdyn=this.lendyn=null;this.was=this.back=this.sane=0}function u(k){var q;return k&&k.state?(q=k.state,k.total_in=k.total_out=q.total=0,k.msg="",q.wrap&& +(k.adler=1&q.wrap),q.mode=W,q.last=0,q.havedict=0,q.dmax=32768,q.head=null,q.hold=0,q.bits=0,q.lencode=q.lendyn=new ya.Buf32(n),q.distcode=q.distdyn=new ya.Buf32($b),q.sane=1,q.back=-1,Le):pa}function Ia(k){var n;return k&&k.state?(n=k.state,n.wsize=0,n.whave=0,n.wnext=0,u(k)):pa}function q(k,n){var q,u;return k&&k.state?(u=k.state,0>n?(q=0,n=-n):(q=(n>>4)+1,48>n&&(n&=15)),n&&(8>n||15<n)?pa:(null!==u.window&&u.wbits!==n&&(u.window=null),u.wrap=q,u.wbits=n,Ia(k))):pa}function k(k,n){var u,v;return k? +(v=new na,k.state=v,v.window=null,u=q(k,n),u!==Le&&(k.state=null),u):pa}function v(k,n,q,u){var v;k=k.state;return null===k.window&&(k.wsize=1<<k.wbits,k.wnext=0,k.whave=0,k.window=new ya.Buf8(k.wsize)),u>=k.wsize?(ya.arraySet(k.window,n,q-k.wsize,k.wsize,0),k.wnext=0,k.whave=k.wsize):(v=k.wsize-k.wnext,v>u&&(v=u),ya.arraySet(k.window,n,q-u,v,k.wnext),u-=v,u?(ya.arraySet(k.window,n,q-u,u,0),k.wnext=u,k.whave=k.wsize):(k.wnext+=v,k.wnext===k.wsize&&(k.wnext=0),k.whave<k.wsize&&(k.whave+=v))),0}var E, +N,ya=y("../utils/common"),Z=y("./adler32"),F=y("./crc32"),Pd=y("./inffast"),Qc=y("./inftrees"),Le=0,pa=-2,W=1,n=852,$b=592,oc=!0;M.inflateReset=Ia;M.inflateReset2=q;M.inflateResetKeep=u;M.inflateInit=function(n){return k(n,15)};M.inflateInit2=k;M.inflate=function(k,n){var q,u,y,J,M,Q,na,Fa=0,Ia=new ya.Buf8(4),$b=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!k||!k.state||!k.output||!k.input&&0!==k.avail_in)return pa;var A=k.state;12===A.mode&&(A.mode=13);var ob=k.next_out;var Jb=k.output;var ta= +k.avail_out;var da=k.next_in;var Ea=k.input;var U=k.avail_in;var ka=A.hold;var z=A.bits;var ve=U;var qb=ta;var pd=Le;a:for(;;)switch(A.mode){case W:if(0===A.wrap){A.mode=13;break}for(;16>z;){if(0===U)break a;U--;ka+=Ea[da++]<<z;z+=8}if(2&A.wrap&&35615===ka){A.check=0;Ia[0]=255&ka;Ia[1]=ka>>>8&255;A.check=F(A.check,Ia,2,0);z=ka=0;A.mode=2;break}if(A.flags=0,A.head&&(A.head.done=!1),!(1&A.wrap)||(((255&ka)<<8)+(ka>>8))%31){k.msg="incorrect header check";A.mode=30;break}if(8!==(15&ka)){k.msg="unknown compression method"; +A.mode=30;break}if(ka>>>=4,z-=4,Q=(15&ka)+8,0===A.wbits)A.wbits=Q;else if(Q>A.wbits){k.msg="invalid window size";A.mode=30;break}A.dmax=1<<Q;k.adler=A.check=1;A.mode=512&ka?10:12;z=ka=0;break;case 2:for(;16>z;){if(0===U)break a;U--;ka+=Ea[da++]<<z;z+=8}if(A.flags=ka,8!==(255&A.flags)){k.msg="unknown compression method";A.mode=30;break}if(57344&A.flags){k.msg="unknown header flags set";A.mode=30;break}A.head&&(A.head.text=ka>>8&1);512&A.flags&&(Ia[0]=255&ka,Ia[1]=ka>>>8&255,A.check=F(A.check,Ia,2, +0));z=ka=0;A.mode=3;case 3:for(;32>z;){if(0===U)break a;U--;ka+=Ea[da++]<<z;z+=8}A.head&&(A.head.time=ka);512&A.flags&&(Ia[0]=255&ka,Ia[1]=ka>>>8&255,Ia[2]=ka>>>16&255,Ia[3]=ka>>>24&255,A.check=F(A.check,Ia,4,0));z=ka=0;A.mode=4;case 4:for(;16>z;){if(0===U)break a;U--;ka+=Ea[da++]<<z;z+=8}A.head&&(A.head.xflags=255&ka,A.head.os=ka>>8);512&A.flags&&(Ia[0]=255&ka,Ia[1]=ka>>>8&255,A.check=F(A.check,Ia,2,0));z=ka=0;A.mode=5;case 5:if(1024&A.flags){for(;16>z;){if(0===U)break a;U--;ka+=Ea[da++]<<z;z+=8}A.length= +ka;A.head&&(A.head.extra_len=ka);512&A.flags&&(Ia[0]=255&ka,Ia[1]=ka>>>8&255,A.check=F(A.check,Ia,2,0));z=ka=0}else A.head&&(A.head.extra=null);A.mode=6;case 6:if(1024&A.flags&&(q=A.length,q>U&&(q=U),q&&(A.head&&(Q=A.head.extra_len-A.length,A.head.extra||(A.head.extra=Array(A.head.extra_len)),ya.arraySet(A.head.extra,Ea,da,q,Q)),512&A.flags&&(A.check=F(A.check,Ea,q,da)),U-=q,da+=q,A.length-=q),A.length))break a;A.length=0;A.mode=7;case 7:if(2048&A.flags){if(0===U)break a;q=0;do Q=Ea[da+q++],A.head&& +Q&&65536>A.length&&(A.head.name+=String.fromCharCode(Q));while(Q&&q<U);if(512&A.flags&&(A.check=F(A.check,Ea,q,da)),U-=q,da+=q,Q)break a}else A.head&&(A.head.name=null);A.length=0;A.mode=8;case 8:if(4096&A.flags){if(0===U)break a;q=0;do Q=Ea[da+q++],A.head&&Q&&65536>A.length&&(A.head.comment+=String.fromCharCode(Q));while(Q&&q<U);if(512&A.flags&&(A.check=F(A.check,Ea,q,da)),U-=q,da+=q,Q)break a}else A.head&&(A.head.comment=null);A.mode=9;case 9:if(512&A.flags){for(;16>z;){if(0===U)break a;U--;ka+= +Ea[da++]<<z;z+=8}if(ka!==(65535&A.check)){k.msg="header crc mismatch";A.mode=30;break}z=ka=0}A.head&&(A.head.hcrc=A.flags>>9&1,A.head.done=!0);k.adler=A.check=0;A.mode=12;break;case 10:for(;32>z;){if(0===U)break a;U--;ka+=Ea[da++]<<z;z+=8}k.adler=A.check=T(ka);z=ka=0;A.mode=11;case 11:if(0===A.havedict)return k.next_out=ob,k.avail_out=ta,k.next_in=da,k.avail_in=U,A.hold=ka,A.bits=z,2;k.adler=A.check=1;A.mode=12;case 12:if(5===n||6===n)break a;case 13:if(A.last){ka>>>=7&z;z-=7&z;A.mode=27;break}for(;3> +z;){if(0===U)break a;U--;ka+=Ea[da++]<<z;z+=8}switch(A.last=1&ka,ka>>>=1,--z,3&ka){case 0:A.mode=14;break;case 1:var Ma=A;if(oc){E=new ya.Buf32(512);N=new ya.Buf32(32);for(y=0;144>y;)Ma.lens[y++]=8;for(;256>y;)Ma.lens[y++]=9;for(;280>y;)Ma.lens[y++]=7;for(;288>y;)Ma.lens[y++]=8;Qc(1,Ma.lens,0,288,E,0,Ma.work,{bits:9});for(y=0;32>y;)Ma.lens[y++]=5;Qc(2,Ma.lens,0,32,N,0,Ma.work,{bits:5});oc=!1}Ma.lencode=E;Ma.lenbits=9;Ma.distcode=N;Ma.distbits=5;if(A.mode=20,6===n){ka>>>=2;z-=2;break a}break;case 2:A.mode= +17;break;case 3:k.msg="invalid block type",A.mode=30}ka>>>=2;z-=2;break;case 14:ka>>>=7&z;for(z-=7&z;32>z;){if(0===U)break a;U--;ka+=Ea[da++]<<z;z+=8}if((65535&ka)!==(ka>>>16^65535)){k.msg="invalid stored block lengths";A.mode=30;break}if(A.length=65535&ka,ka=0,z=0,A.mode=15,6===n)break a;case 15:A.mode=16;case 16:if(q=A.length){if(q>U&&(q=U),q>ta&&(q=ta),0===q)break a;ya.arraySet(Jb,Ea,da,q,ob);U-=q;da+=q;ta-=q;ob+=q;A.length-=q;break}A.mode=12;break;case 17:for(;14>z;){if(0===U)break a;U--;ka+= +Ea[da++]<<z;z+=8}if(A.nlen=(31&ka)+257,ka>>>=5,z-=5,A.ndist=(31&ka)+1,ka>>>=5,z-=5,A.ncode=(15&ka)+4,ka>>>=4,z-=4,286<A.nlen||30<A.ndist){k.msg="too many length or distance symbols";A.mode=30;break}A.have=0;A.mode=18;case 18:for(;A.have<A.ncode;){for(;3>z;){if(0===U)break a;U--;ka+=Ea[da++]<<z;z+=8}A.lens[$b[A.have++]]=7&ka;ka>>>=3;z-=3}for(;19>A.have;)A.lens[$b[A.have++]]=0;if(A.lencode=A.lendyn,A.lenbits=7,na={bits:A.lenbits},pd=Qc(0,A.lens,0,19,A.lencode,0,A.work,na),A.lenbits=na.bits,pd){k.msg= +"invalid code lengths set";A.mode=30;break}A.have=0;A.mode=19;case 19:for(;A.have<A.nlen+A.ndist;){for(;Fa=A.lencode[ka&(1<<A.lenbits)-1],J=Fa>>>24,Ma=65535&Fa,!(J<=z);){if(0===U)break a;U--;ka+=Ea[da++]<<z;z+=8}if(16>Ma)ka>>>=J,z-=J,A.lens[A.have++]=Ma;else{if(16===Ma){for(y=J+2;z<y;){if(0===U)break a;U--;ka+=Ea[da++]<<z;z+=8}if(ka>>>=J,z-=J,0===A.have){k.msg="invalid bit length repeat";A.mode=30;break}Q=A.lens[A.have-1];q=3+(3&ka);ka>>>=2;z-=2}else if(17===Ma){for(y=J+3;z<y;){if(0===U)break a;U--; +ka+=Ea[da++]<<z;z+=8}ka>>>=J;z-=J;Q=0;q=3+(7&ka);ka>>>=3;z-=3}else{for(y=J+7;z<y;){if(0===U)break a;U--;ka+=Ea[da++]<<z;z+=8}ka>>>=J;z-=J;Q=0;q=11+(127&ka);ka>>>=7;z-=7}if(A.have+q>A.nlen+A.ndist){k.msg="invalid bit length repeat";A.mode=30;break}for(;q--;)A.lens[A.have++]=Q}}if(30===A.mode)break;if(0===A.lens[256]){k.msg="invalid code -- missing end-of-block";A.mode=30;break}if(A.lenbits=9,na={bits:A.lenbits},pd=Qc(1,A.lens,0,A.nlen,A.lencode,0,A.work,na),A.lenbits=na.bits,pd){k.msg="invalid literal/lengths set"; +A.mode=30;break}if(A.distbits=6,A.distcode=A.distdyn,na={bits:A.distbits},pd=Qc(2,A.lens,A.nlen,A.ndist,A.distcode,0,A.work,na),A.distbits=na.bits,pd){k.msg="invalid distances set";A.mode=30;break}if(A.mode=20,6===n)break a;case 20:A.mode=21;case 21:if(6<=U&&258<=ta){k.next_out=ob;k.avail_out=ta;k.next_in=da;k.avail_in=U;A.hold=ka;A.bits=z;Pd(k,qb);ob=k.next_out;Jb=k.output;ta=k.avail_out;da=k.next_in;Ea=k.input;U=k.avail_in;ka=A.hold;z=A.bits;12===A.mode&&(A.back=-1);break}for(A.back=0;Fa=A.lencode[ka& +(1<<A.lenbits)-1],J=Fa>>>24,y=Fa>>>16&255,Ma=65535&Fa,!(J<=z);){if(0===U)break a;U--;ka+=Ea[da++]<<z;z+=8}if(y&&0===(240&y)){var B=J;var pf=y;for(M=Ma;Fa=A.lencode[M+((ka&(1<<B+pf)-1)>>B)],J=Fa>>>24,y=Fa>>>16&255,Ma=65535&Fa,!(B+J<=z);){if(0===U)break a;U--;ka+=Ea[da++]<<z;z+=8}ka>>>=B;z-=B;A.back+=B}if(ka>>>=J,z-=J,A.back+=J,A.length=Ma,0===y){A.mode=26;break}if(32&y){A.back=-1;A.mode=12;break}if(64&y){k.msg="invalid literal/length code";A.mode=30;break}A.extra=15&y;A.mode=22;case 22:if(A.extra){for(y= +A.extra;z<y;){if(0===U)break a;U--;ka+=Ea[da++]<<z;z+=8}A.length+=ka&(1<<A.extra)-1;ka>>>=A.extra;z-=A.extra;A.back+=A.extra}A.was=A.length;A.mode=23;case 23:for(;Fa=A.distcode[ka&(1<<A.distbits)-1],J=Fa>>>24,y=Fa>>>16&255,Ma=65535&Fa,!(J<=z);){if(0===U)break a;U--;ka+=Ea[da++]<<z;z+=8}if(0===(240&y)){B=J;pf=y;for(M=Ma;Fa=A.distcode[M+((ka&(1<<B+pf)-1)>>B)],J=Fa>>>24,y=Fa>>>16&255,Ma=65535&Fa,!(B+J<=z);){if(0===U)break a;U--;ka+=Ea[da++]<<z;z+=8}ka>>>=B;z-=B;A.back+=B}if(ka>>>=J,z-=J,A.back+=J,64& +y){k.msg="invalid distance code";A.mode=30;break}A.offset=Ma;A.extra=15&y;A.mode=24;case 24:if(A.extra){for(y=A.extra;z<y;){if(0===U)break a;U--;ka+=Ea[da++]<<z;z+=8}A.offset+=ka&(1<<A.extra)-1;ka>>>=A.extra;z-=A.extra;A.back+=A.extra}if(A.offset>A.dmax){k.msg="invalid distance too far back";A.mode=30;break}A.mode=25;case 25:if(0===ta)break a;if(q=qb-ta,A.offset>q){if(q=A.offset-q,q>A.whave&&A.sane){k.msg="invalid distance too far back";A.mode=30;break}q>A.wnext?(q-=A.wnext,u=A.wsize-q):u=A.wnext- +q;q>A.length&&(q=A.length);y=A.window}else y=Jb,u=ob-A.offset,q=A.length;q>ta&&(q=ta);ta-=q;A.length-=q;do Jb[ob++]=y[u++];while(--q);0===A.length&&(A.mode=21);break;case 26:if(0===ta)break a;Jb[ob++]=A.length;ta--;A.mode=21;break;case 27:if(A.wrap){for(;32>z;){if(0===U)break a;U--;ka|=Ea[da++]<<z;z+=8}if(qb-=ta,k.total_out+=qb,A.total+=qb,qb&&(k.adler=A.check=A.flags?F(A.check,Jb,qb,ob-qb):Z(A.check,Jb,qb,ob-qb)),qb=ta,(A.flags?ka:T(ka))!==A.check){k.msg="incorrect data check";A.mode=30;break}z= +ka=0}A.mode=28;case 28:if(A.wrap&&A.flags){for(;32>z;){if(0===U)break a;U--;ka+=Ea[da++]<<z;z+=8}if(ka!==(4294967295&A.total)){k.msg="incorrect length check";A.mode=30;break}z=ka=0}A.mode=29;case 29:pd=1;break a;case 30:pd=-3;break a;case 31:return-4;default:return pa}return k.next_out=ob,k.avail_out=ta,k.next_in=da,k.avail_in=U,A.hold=ka,A.bits=z,(A.wsize||qb!==k.avail_out&&30>A.mode&&(27>A.mode||4!==n))&&v(k,k.output,k.next_out,qb-k.avail_out)?(A.mode=31,-4):(ve-=k.avail_in,qb-=k.avail_out,k.total_in+= +ve,k.total_out+=qb,A.total+=qb,A.wrap&&qb&&(k.adler=A.check=A.flags?F(A.check,Jb,qb,k.next_out-qb):Z(A.check,Jb,qb,k.next_out-qb)),k.data_type=A.bits+(A.last?64:0)+(12===A.mode?128:0)+(20===A.mode||15===A.mode?256:0),(0===ve&&0===qb||4===n)&&pd===Le&&(pd=-5),pd)};M.inflateEnd=function(k){if(!k||!k.state)return pa;var n=k.state;return n.window&&(n.window=null),k.state=null,Le};M.inflateGetHeader=function(k,n){var q;return k&&k.state?(q=k.state,0===(2&q.wrap)?pa:(q.head=n,n.done=!1,Le)):pa};M.inflateSetDictionary= +function(k,n){var q,u,y=n.length;return k&&k.state?(q=k.state,0!==q.wrap&&11!==q.mode?pa:11===q.mode&&(u=1,u=Z(u,n,y,0),u!==q.check)?-3:v(k,n,y,y)?(q.mode=31,-4):(q.havedict=1,Le)):pa};M.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":3,"./adler32":5,"./crc32":7,"./inffast":10,"./inftrees":12}],12:[function(y,Q,M){var T=y("../utils/common"),na=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],u=[16,16,16,16,16,16,16,16,17,17,17,17,18, +18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],Ia=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],q=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];Q.exports=function(k,v,y,M,Q,Z,F,Pd){var E,N,pa,W,n,ya,oc=Pd.bits,J,Fa,Za,ca,Pb,fb=0,Zd,ub=null,Qd=0,jd=new T.Buf16(16);var ac=new T.Buf16(16);var id=null,A=0;for(J=0;15>=J;J++)jd[J]=0;for(Fa=0;Fa<M;Fa++)jd[v[y+Fa]]++;var ob= +oc;for(Za=15;1<=Za&&0===jd[Za];Za--);if(ob>Za&&(ob=Za),0===Za)return Q[Z++]=20971520,Q[Z++]=20971520,Pd.bits=1,0;for(oc=1;oc<Za&&0===jd[oc];oc++);ob<oc&&(ob=oc);for(J=E=1;15>=J;J++)if(E<<=1,E-=jd[J],0>E)return-1;if(0<E&&(0===k||1!==Za))return-1;ac[1]=0;for(J=1;15>J;J++)ac[J+1]=ac[J]+jd[J];for(Fa=0;Fa<M;Fa++)0!==v[y+Fa]&&(F[ac[v[y+Fa]]++]=Fa);if(0===k?(ub=id=F,W=19):1===k?(ub=na,Qd-=257,id=u,A-=257,W=256):(ub=Ia,id=q,W=-1),Zd=0,Fa=0,J=oc,ac=Z,ca=ob,Pb=0,pa=-1,fb=1<<ob,M=fb-1,1===k&&852<fb||2===k&& +592<fb)return 1;for(var Jb=0;;){Jb++;var ta=J-Pb;F[Fa]<W?(n=0,ya=F[Fa]):F[Fa]>W?(n=id[A+F[Fa]],ya=ub[Qd+F[Fa]]):(n=96,ya=0);E=1<<J-Pb;oc=N=1<<ca;do N-=E,Q[ac+(Zd>>Pb)+N]=ta<<24|n<<16|ya|0;while(0!==N);for(E=1<<J-1;Zd&E;)E>>=1;if(0!==E?(Zd&=E-1,Zd+=E):Zd=0,Fa++,0===--jd[J]){if(J===Za)break;J=v[y+F[Fa]]}if(J>ob&&(Zd&M)!==pa){0===Pb&&(Pb=ob);ac+=oc;ca=J-Pb;for(E=1<<ca;ca+Pb<Za&&(E-=jd[ca+Pb],!(0>=E));)ca++,E<<=1;if(fb+=1<<ca,1===k&&852<fb||2===k&&592<fb)return 1;pa=Zd&M;Q[pa]=ob<<24|ca<<16|ac-Z|0}}return 0!== +Zd&&(Q[ac+Zd]=J-Pb<<24|4194304),Pd.bits=ob,0}},{"../utils/common":3}],13:[function(y,Q,M){Q.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],14:[function(y,Q,M){function T(k){for(var n=k.length;0<=--n;)k[n]=0}function na(k,n,q,u,v){this.static_tree=k;this.extra_bits=n;this.extra_base=q;this.elems=u;this.max_length=v;this.has_stree=k&&k.length}function u(k,n){this.dyn_tree= +k;this.max_code=0;this.stat_desc=n}function Ia(k,n){k.pending_buf[k.pending++]=255&n;k.pending_buf[k.pending++]=n>>>8&255}function q(k,n,q){k.bi_valid>Qd-q?(k.bi_buf|=n<<k.bi_valid&65535,Ia(k,k.bi_buf),k.bi_buf=n>>Qd-k.bi_valid,k.bi_valid+=q-Qd):(k.bi_buf|=n<<k.bi_valid&65535,k.bi_valid+=q)}function k(k,n,u){q(k,u[2*n],u[2*n+1])}function v(k,n){var q=0;do q|=1&k,k>>>=1,q<<=1;while(0<--n);return q>>>1}function E(k,n,q){var u,y=Array(ub+1),C=0;for(u=1;u<=ub;u++)y[u]=C=C+q[u-1]<<1;for(q=0;q<=n;q++)u= +k[2*q+1],0!==u&&(k[2*q]=v(y[u]++,u))}function N(k){var n;for(n=0;n<ca;n++)k.dyn_ltree[2*n]=0;for(n=0;n<Pb;n++)k.dyn_dtree[2*n]=0;for(n=0;n<fb;n++)k.bl_tree[2*n]=0;k.dyn_ltree[2*jd]=1;k.opt_len=k.static_len=0;k.last_lit=k.matches=0}function ya(k){8<k.bi_valid?Ia(k,k.bi_buf):0<k.bi_valid&&(k.pending_buf[k.pending++]=k.bi_buf);k.bi_buf=0;k.bi_valid=0}function Z(k,n,q,u){var v=2*n,y=2*q;return k[v]<k[y]||k[v]===k[y]&&u[n]<=u[q]}function F(k,n,q){for(var u=k.heap[q],v=q<<1;v<=k.heap_len&&(v<k.heap_len&& +Z(n,k.heap[v+1],k.heap[v],k.depth)&&v++,!Z(n,u,k.heap[v],k.depth));)k.heap[q]=k.heap[v],q=v,v<<=1;k.heap[q]=u}function Pd(n,u,v){var y,C,A=0;if(0!==n.last_lit){do{var B=n.pending_buf[n.d_buf+2*A]<<8|n.pending_buf[n.d_buf+2*A+1];var E=n.pending_buf[n.l_buf+A];A++;0===B?k(n,E,u):(y=z[E],k(n,y+Za+1,u),C=ob[y],0!==C&&(E-=ve[y],q(n,E,C)),B--,y=256>B?ka[B]:ka[256+(B>>>7)],k(n,y,v),C=Jb[y],0!==C&&(B-=qb[y],q(n,B,C)))}while(A<n.last_lit)}k(n,jd,u)}function Qc(k,n){var q,u=n.dyn_tree;var v=n.stat_desc.static_tree; +var y=n.stat_desc.has_stree,z=n.stat_desc.elems,A=-1;k.heap_len=0;k.heap_max=Zd;for(q=0;q<z;q++)0!==u[2*q]?(k.heap[++k.heap_len]=A=q,k.depth[q]=0):u[2*q+1]=0;for(;2>k.heap_len;){var C=k.heap[++k.heap_len]=2>A?++A:0;u[2*C]=1;k.depth[C]=0;k.opt_len--;y&&(k.static_len-=v[2*C+1])}n.max_code=A;for(q=k.heap_len>>1;1<=q;q--)F(k,u,q);C=z;do q=k.heap[1],k.heap[1]=k.heap[k.heap_len--],F(k,u,1),v=k.heap[1],k.heap[--k.heap_max]=q,k.heap[--k.heap_max]=v,u[2*C]=u[2*q]+u[2*v],k.depth[C]=(k.depth[q]>=k.depth[v]? +k.depth[q]:k.depth[v])+1,u[2*q+1]=u[2*v+1]=C,k.heap[1]=C++,F(k,u,1);while(2<=k.heap_len);k.heap[--k.heap_max]=k.heap[1];var B,J;q=n.dyn_tree;C=n.max_code;z=n.stat_desc.static_tree;var M=n.stat_desc.has_stree,N=n.stat_desc.extra_bits,Q=n.stat_desc.extra_base,T=n.stat_desc.max_length,U=0;for(y=0;y<=ub;y++)k.bl_count[y]=0;q[2*k.heap[k.heap_max]+1]=0;for(n=k.heap_max+1;n<Zd;n++)v=k.heap[n],y=q[2*q[2*v+1]+1]+1,y>T&&(y=T,U++),q[2*v+1]=y,v>C||(k.bl_count[y]++,B=0,v>=Q&&(B=N[v-Q]),J=q[2*v],k.opt_len+=J*(y+ +B),M&&(k.static_len+=J*(z[2*v+1]+B)));if(0!==U){do{for(y=T-1;0===k.bl_count[y];)y--;k.bl_count[y]--;k.bl_count[y+1]+=2;k.bl_count[T]--;U-=2}while(0<U);for(y=T;0!==y;y--)for(v=k.bl_count[y];0!==v;)B=k.heap[--n],B>C||(q[2*B+1]!==y&&(k.opt_len+=(y-q[2*B+1])*q[2*B],q[2*B+1]=y),v--)}E(u,A,k.bl_count)}function Le(k,n,q){var u,v=-1,y=n[1],z=0,C=7,B=4;0===y&&(C=138,B=3);n[2*(q+1)+1]=65535;for(u=0;u<=q;u++){var E=y;y=n[2*(u+1)+1];++z<C&&E===y||(z<B?k.bl_tree[2*E]+=z:0!==E?(E!==v&&k.bl_tree[2*E]++,k.bl_tree[2* +ac]++):10>=z?k.bl_tree[2*id]++:k.bl_tree[2*A]++,z=0,v=E,0===y?(C=138,B=3):E===y?(C=6,B=3):(C=7,B=4))}}function pa(n,u,v){var y,z,C=-1,B=u[1],E=0,F=7,J=4;0===B&&(F=138,J=3);for(y=0;y<=v;y++)if(z=B,B=u[2*(y+1)+1],!(++E<F&&z===B)){if(E<J){do k(n,z,n.bl_tree);while(0!==--E)}else 0!==z?(z!==C&&(k(n,z,n.bl_tree),E--),k(n,ac,n.bl_tree),q(n,E-3,2)):10>=E?(k(n,id,n.bl_tree),q(n,E-3,3)):(k(n,A,n.bl_tree),q(n,E-11,7));E=0;C=z;0===B?(F=138,J=3):z===B?(F=6,J=3):(F=7,J=4)}}function W(k){var n,q=4093624447;for(n= +0;31>=n;n++,q>>>=1)if(1&q&&0!==k.dyn_ltree[2*n])return oc;if(0!==k.dyn_ltree[18]||0!==k.dyn_ltree[20]||0!==k.dyn_ltree[26])return J;for(n=32;n<Za;n++)if(0!==k.dyn_ltree[2*n])return J;return oc}function n(k,n,u,v){q(k,(Fa<<1)+(v?1:0),3);ya(k);Ia(k,u);Ia(k,~u);$b.arraySet(k.pending_buf,k.window,n,u,k.pending);k.pending+=u}var $b=y("../utils/common"),oc=0,J=1,Fa=0,Za=256,ca=Za+1+29,Pb=30,fb=19,Zd=2*ca+1,ub=15,Qd=16,jd=256,ac=16,id=17,A=18,ob=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0], +Jb=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],ta=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],da=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Ea=Array(2*(ca+2));T(Ea);var U=Array(2*Pb);T(U);var ka=Array(512);T(ka);var z=Array(256);T(z);var ve=Array(29);T(ve);var qb=Array(Pb);T(qb);var pd,Ma,B,pf=!1;M._tr_init=function(k){if(!pf){var n,q,y,A=Array(ub+1);for(y=q=0;28>y;y++)for(ve[y]=q,n=0;n<1<<ob[y];n++)z[q++]=y;z[q-1]=y;for(y=q=0;16>y;y++)for(qb[y]=q,n=0;n<1<<Jb[y];n++)ka[q++]= +y;for(q>>=7;y<Pb;y++)for(qb[y]=q<<7,n=0;n<1<<Jb[y]-7;n++)ka[256+q++]=y;for(n=0;n<=ub;n++)A[n]=0;for(n=0;143>=n;)Ea[2*n+1]=8,n++,A[8]++;for(;255>=n;)Ea[2*n+1]=9,n++,A[9]++;for(;279>=n;)Ea[2*n+1]=7,n++,A[7]++;for(;287>=n;)Ea[2*n+1]=8,n++,A[8]++;E(Ea,ca+1,A);for(n=0;n<Pb;n++)U[2*n+1]=5,U[2*n]=v(n,5);pd=new na(Ea,ob,Za+1,ca,ub);Ma=new na(U,Jb,0,Pb,ub);B=new na([],ta,0,fb,7);pf=!0}k.l_desc=new u(k.dyn_ltree,pd);k.d_desc=new u(k.dyn_dtree,Ma);k.bl_desc=new u(k.bl_tree,B);k.bi_buf=0;k.bi_valid=0;N(k)};M._tr_stored_block= +n;M._tr_flush_block=function(k,u,v,y){var z=0;if(0<k.level){2===k.strm.data_type&&(k.strm.data_type=W(k));Qc(k,k.l_desc);Qc(k,k.d_desc);Le(k,k.dyn_ltree,k.l_desc.max_code);Le(k,k.dyn_dtree,k.d_desc.max_code);Qc(k,k.bl_desc);for(z=fb-1;3<=z&&0===k.bl_tree[2*da[z]+1];z--);z=(k.opt_len+=3*(z+1)+14,z);var A=k.opt_len+3+7>>>3;var B=k.static_len+3+7>>>3;B<=A&&(A=B)}else A=B=v+5;if(v+4<=A&&-1!==u)n(k,u,v,y);else if(4===k.strategy||B===A)q(k,2+(y?1:0),3),Pd(k,Ea,U);else{q(k,4+(y?1:0),3);u=k.l_desc.max_code+ +1;v=k.d_desc.max_code+1;z+=1;q(k,u-257,5);q(k,v-1,5);q(k,z-4,4);for(A=0;A<z;A++)q(k,k.bl_tree[2*da[A]+1],3);pa(k,k.dyn_ltree,u-1);pa(k,k.dyn_dtree,v-1);Pd(k,k.dyn_ltree,k.dyn_dtree)}N(k);y&&ya(k)};M._tr_tally=function(k,n,q){return k.pending_buf[k.d_buf+2*k.last_lit]=n>>>8&255,k.pending_buf[k.d_buf+2*k.last_lit+1]=255&n,k.pending_buf[k.l_buf+k.last_lit]=255&q,k.last_lit++,0===n?k.dyn_ltree[2*q]++:(k.matches++,n--,k.dyn_ltree[2*(z[q]+Za+1)]++,k.dyn_dtree[2*(256>n?ka[n]:ka[256+(n>>>7)])]++),k.last_lit=== +k.lit_bufsize-1};M._tr_align=function(n){q(n,2,3);k(n,jd,Ea);16===n.bi_valid?(Ia(n,n.bi_buf),n.bi_buf=0,n.bi_valid=0):8<=n.bi_valid&&(n.pending_buf[n.pending++]=255&n.bi_buf,n.bi_buf>>=8,n.bi_valid-=8)}},{"../utils/common":3}],15:[function(y,Q,M){Q.exports=function(){this.input=null;this.total_in=this.avail_in=this.next_in=0;this.output=null;this.total_out=this.avail_out=this.next_out=0;this.msg="";this.state=null;this.data_type=2;this.adler=0}},{}],"/":[function(y,Q,M){M=y("./lib/utils/common").assign; +var T=y("./lib/deflate"),na=y("./lib/inflate");y=y("./lib/zlib/constants");var u={};M(u,T,na,y);Q.exports=u},{"./lib/deflate":1,"./lib/inflate":2,"./lib/utils/common":3,"./lib/zlib/constants":6}]},{},[])("/")}); +var saveAs=saveAs||function(ma){if(!("undefined"===typeof ma||"undefined"!==typeof navigator&&/MSIE [1-9]\./.test(navigator.userAgent))){var y=ma.document.createElementNS("http://www.w3.org/1999/xhtml","a"),Q="download"in y,M=/constructor/i.test(ma.HTMLElement)||ma.safari,T=/CriOS\/[\d]+/.test(navigator.userAgent),na=function(k){(ma.setImmediate||ma.setTimeout)(function(){throw k;},0)},u=function(k){setTimeout(function(){"string"===typeof k?(ma.URL||ma.webkitURL||ma).revokeObjectURL(k):k.remove()}, +4E4)},Ia=function(k){return/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(k.type)?new Blob([String.fromCharCode(65279),k],{type:k.type}):k},q=function(k,q,N){N||(k=Ia(k));var v=this,E="application/octet-stream"===k.type,F=function(){var k=["writestart","progress","write","writeend"];k=[].concat(k);for(var q=k.length;q--;){var u=v["on"+k[q]];if("function"===typeof u)try{u.call(v,v)}catch(W){na(W)}}};v.readyState=v.INIT;if(Q){var Pd=(ma.URL||ma.webkitURL||ma).createObjectURL(k); +setTimeout(function(){y.href=Pd;y.download=q;var k=new MouseEvent("click");y.dispatchEvent(k);F();u(Pd);v.readyState=v.DONE})}else(function(){if((T||E&&M)&&ma.FileReader){var q=new FileReader;q.onloadend=function(){var k=T?q.result:q.result.replace(/^data:[^;]*;/,"data:attachment/file;");ma.open(k,"_blank")||(ma.location.href=k);v.readyState=v.DONE;F()};q.readAsDataURL(k);v.readyState=v.INIT}else Pd||(Pd=(ma.URL||ma.webkitURL||ma).createObjectURL(k)),E?ma.location.href=Pd:ma.open(Pd,"_blank")||(ma.location.href= +Pd),v.readyState=v.DONE,F(),u(Pd)})()},k=q.prototype;if("undefined"!==typeof navigator&&navigator.msSaveOrOpenBlob)return function(k,q,u){q=q||k.name||"download";u||(k=Ia(k));return navigator.msSaveOrOpenBlob(k,q)};k.abort=function(){};k.readyState=k.INIT=0;k.WRITING=1;k.DONE=2;k.error=k.onwritestart=k.onprogress=k.onwrite=k.onabort=k.onerror=k.onwriteend=null;return function(k,u,y){return new q(k,u||k.name||"download",y)}}}("undefined"!==typeof self&&self||"undefined"!==typeof window&&window||this.content); +"undefined"!==typeof module&&module.exports?module.exports.saveAs=saveAs:"undefined"!==typeof define&&null!==define&&null!==define.amd&&define("FileSaver.js",function(){return saveAs});"function"==typeof define&&define.__amd&&(define.amd=define.__amd,delete define.__amd); diff --git a/static/misc/poor-bunny/assets/music/sound-261.mp3 b/static/misc/poor-bunny/assets/music/sound-261.mp3 new file mode 100644 index 00000000..9c2f7907 Binary files /dev/null and b/static/misc/poor-bunny/assets/music/sound-261.mp3 differ diff --git a/static/misc/poor-bunny/assets/music/sound-496.mp3 b/static/misc/poor-bunny/assets/music/sound-496.mp3 new file mode 100644 index 00000000..bc441661 Binary files /dev/null and b/static/misc/poor-bunny/assets/music/sound-496.mp3 differ diff --git a/static/misc/poor-bunny/assets/music/sound-553.mp3 b/static/misc/poor-bunny/assets/music/sound-553.mp3 new file mode 100644 index 00000000..c3d9f1dd Binary files /dev/null and b/static/misc/poor-bunny/assets/music/sound-553.mp3 differ diff --git a/static/misc/poor-bunny/assets/music/sound-554.mp3 b/static/misc/poor-bunny/assets/music/sound-554.mp3 new file mode 100644 index 00000000..e1b62938 Binary files /dev/null and b/static/misc/poor-bunny/assets/music/sound-554.mp3 differ diff --git a/static/misc/poor-bunny/assets/music/sound-557.mp3 b/static/misc/poor-bunny/assets/music/sound-557.mp3 new file mode 100644 index 00000000..92df454e Binary files /dev/null and b/static/misc/poor-bunny/assets/music/sound-557.mp3 differ diff --git a/static/misc/poor-bunny/assets/music/sound-562.mp3 b/static/misc/poor-bunny/assets/music/sound-562.mp3 new file mode 100644 index 00000000..d55264a6 Binary files /dev/null and b/static/misc/poor-bunny/assets/music/sound-562.mp3 differ diff --git a/static/misc/poor-bunny/assets/music/sound-574.mp3 b/static/misc/poor-bunny/assets/music/sound-574.mp3 new file mode 100644 index 00000000..c59b37e2 Binary files /dev/null and b/static/misc/poor-bunny/assets/music/sound-574.mp3 differ diff --git a/static/misc/poor-bunny/assets/music/sound-594.mp3 b/static/misc/poor-bunny/assets/music/sound-594.mp3 new file mode 100644 index 00000000..5340de37 Binary files /dev/null and b/static/misc/poor-bunny/assets/music/sound-594.mp3 differ diff --git a/static/misc/poor-bunny/assets/music/sound-605.mp3 b/static/misc/poor-bunny/assets/music/sound-605.mp3 new file mode 100644 index 00000000..32228b29 Binary files /dev/null and b/static/misc/poor-bunny/assets/music/sound-605.mp3 differ diff --git a/static/misc/poor-bunny/assets/music/sound-614.mp3 b/static/misc/poor-bunny/assets/music/sound-614.mp3 new file mode 100644 index 00000000..209b5cfe Binary files /dev/null and b/static/misc/poor-bunny/assets/music/sound-614.mp3 differ diff --git a/static/misc/poor-bunny/assets/music/sound-625.mp3 b/static/misc/poor-bunny/assets/music/sound-625.mp3 new file mode 100644 index 00000000..45357cca Binary files /dev/null and b/static/misc/poor-bunny/assets/music/sound-625.mp3 differ diff --git a/static/misc/poor-bunny/assets/music/sound-626.mp3 b/static/misc/poor-bunny/assets/music/sound-626.mp3 new file mode 100644 index 00000000..5fbc7ad8 Binary files /dev/null and b/static/misc/poor-bunny/assets/music/sound-626.mp3 differ diff --git a/static/misc/poor-bunny/assets/music/sound-627.mp3 b/static/misc/poor-bunny/assets/music/sound-627.mp3 new file mode 100644 index 00000000..a8f945c9 Binary files /dev/null and b/static/misc/poor-bunny/assets/music/sound-627.mp3 differ diff --git a/static/misc/poor-bunny/assets/music/sound-680.mp3 b/static/misc/poor-bunny/assets/music/sound-680.mp3 new file mode 100644 index 00000000..ba98b613 Binary files /dev/null and b/static/misc/poor-bunny/assets/music/sound-680.mp3 differ diff --git a/static/misc/poor-bunny/assets/music/sound-683.mp3 b/static/misc/poor-bunny/assets/music/sound-683.mp3 new file mode 100644 index 00000000..c03f54fe Binary files /dev/null and b/static/misc/poor-bunny/assets/music/sound-683.mp3 differ diff --git a/static/misc/poor-bunny/assets/music/sound-734.mp3 b/static/misc/poor-bunny/assets/music/sound-734.mp3 new file mode 100644 index 00000000..feb32458 Binary files /dev/null and b/static/misc/poor-bunny/assets/music/sound-734.mp3 differ diff --git a/static/misc/poor-bunny/img.webp b/static/misc/poor-bunny/img.webp new file mode 100644 index 00000000..d4ae376f Binary files /dev/null and b/static/misc/poor-bunny/img.webp differ diff --git a/static/misc/poor-bunny/index.html b/static/misc/poor-bunny/index.html new file mode 100644 index 00000000..31ca2368 --- /dev/null +++ b/static/misc/poor-bunny/index.html @@ -0,0 +1,72 @@ +<!DOCTYPE html> +<html lang="en"> + +<head> + + <meta charset="utf-8"> + + <title>Poor Bunny</title> + <meta name="robots" content="noindex,nofollow" /> + <meta id="viewport" name="viewport" + content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" /> + <meta name="apple-mobile-web-app-capable" content="yes"> + + + <link rel="shortcut icon" type="image/png" href="./favicon.png"> + + + <script type="text/javascript" src="./Poor Bunny.js"></script> + + <script> + window.addEventListener("touchmove", function (event) { event.preventDefault(); }, { capture: false, passive: false }); + if (typeof window.devicePixelRatio != 'undefined' && window.devicePixelRatio > 2) { + var meta = document.getElementById("viewport"); + meta.setAttribute('noncontent', 'width=device-width, initial-scale=' + (2 / window.devicePixelRatio) + ', user-scalable=no'); + } + </script> + + <style> + html, + body { + margin: 0; + padding: 0; + height: 100%; + overflow: hidden; + } + + /*<!-- #content { background: #000000; width: 100%; height: 100%; } --> */ + + /* !important is probably not needed here */ + /* #noncontent { width: 100%; height: 100%; } + #noncontent canvas { width: 100% !important; height: 100% !important; } /*needed */ + + /* + #noncontent { width: 100%; height:100%; } + #noncontent canvas { width: 100% !important; height:100% !important; } + */ + #noncontent { + background: #000000; + width: 100%; + height: 100%; + } + + /* full stretch + #noncontent { width: 100%; height:100%; } + #noncontent canvas { width: 100% !important; height:100% !important; } + */ + </style> + +</head> + +<body> + + + <div id="noncontent"></div> + + <script type="text/javascript"> + lime.embed("Poor Bunny", "noncontent", 852, 480); + </script> + +</body> + +</html> \ No newline at end of file diff --git a/static/misc/poor-bunny/lib/default.pak b/static/misc/poor-bunny/lib/default.pak new file mode 100644 index 00000000..a1cd780a Binary files /dev/null and b/static/misc/poor-bunny/lib/default.pak differ diff --git a/static/misc/poor-bunny/poki-sdk-core-v2.263.0.js b/static/misc/poor-bunny/poki-sdk-core-v2.263.0.js new file mode 100644 index 00000000..3b9c2885 --- /dev/null +++ b/static/misc/poor-bunny/poki-sdk-core-v2.263.0.js @@ -0,0 +1 @@ +(()=>{var e={564:(e,t,i)=>{var n,r,a;!function(i,o){if(i){var s={},d=i.TraceKit,A=[].slice,c="?",l=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/;s.noConflict=function(){return i.TraceKit=d,s},s.wrap=function(e){return function(){try{return e.apply(this,arguments)}catch(e){throw s.report(e),e}}},s.report=function(){var e,t,n,r,a=[],o=null,d=null;function A(e,t,i){var n=null;if(!t||s.collectWindowErrors){for(var r in a)if(u(a,r))try{a[r](e,t,i)}catch(e){n=e}if(n)throw n}}function c(t,i,n,r,a){if(d)s.computeStackTrace.augmentStackTraceWithInitialElement(d,i,n,t),h();else if(a)A(s.computeStackTrace(a),!0,a);else{var o,c={url:i,line:n,column:r},u=t;if("[object String]"==={}.toString.call(t)){var p=t.match(l);p&&(o=p[1],u=p[2])}c.func=s.computeStackTrace.guessFunctionName(c.url,c.line),c.context=s.computeStackTrace.gatherContext(c.url,c.line),A({name:o,message:u,mode:"onerror",stack:[c]},!0,null)}return!!e&&e.apply(this,arguments)}function p(e){A(s.computeStackTrace(e.reason),!0,e.reason)}function h(){var e=d,t=o;d=null,o=null,A(e,!1,t)}function m(e){if(d){if(o===e)return;h()}var t=s.computeStackTrace(e);throw d=t,o=e,setTimeout((function(){o===e&&h()}),t.incomplete?2e3:0),e}return m.subscribe=function(o){!0!==t&&(e=i.onerror,i.onerror=c,t=!0),!0!==r&&(n=i.onunhandledrejection,i.onunhandledrejection=p,r=!0),a.push(o)},m.unsubscribe=function(o){for(var s=a.length-1;s>=0;--s)a[s]===o&&a.splice(s,1);0===a.length&&(t&&(i.onerror=e,t=!1),r&&(i.onunhandledrejection=n,r=!1))},m}(),s.computeStackTrace=function(){var e={};function t(t){if("string"!=typeof t)return[];if(!u(e,t)){var n="",r="";try{r=i.document.domain}catch(t){}var a=/(.*)\:\/\/([^:\/]+)([:\d]*)\/{0,1}([\s\S]*)/.exec(t);a&&a[2]===r&&(n=function(e){if(!s.remoteFetching)return"";try{var t=function(){try{return new i.XMLHttpRequest}catch(e){return new i.ActiveXObject("Microsoft.XMLHTTP")}}();return t.open("GET",e,!1),t.send(""),t.responseText}catch(e){return""}}(t)),e[t]=n?n.split("\n"):[]}return e[t]}function n(e,i){var n,r=/function ([^(]*)\(([^)]*)\)/,a=/['"]?([0-9A-Za-z$_]+)['"]?\s*[:=]\s*(function|eval|new Function)/,o="",s=t(e);if(!s.length)return c;for(var d=0;d<10;++d)if(!p(o=s[i-d]+o)){if(n=a.exec(o))return n[1];if(n=r.exec(o))return n[1]}return c}function r(e,i){var n=t(e);if(!n.length)return null;var r=[],a=Math.floor(s.linesOfContext/2),o=a+s.linesOfContext%2,d=Math.max(0,i-a-1),A=Math.min(n.length,i+o-1);i-=1;for(var c=d;c<A;++c)p(n[c])||r.push(n[c]);return r.length>0?r:null}function a(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#]/g,"\\$&")}function o(e){return a(e).replace("<","(?:<|<)").replace(">","(?:>|>)").replace("&","(?:&|&)").replace('"','(?:"|")').replace(/\s+/g,"\\s+")}function d(e,i){for(var n,r,a=0,o=i.length;a<o;++a)if((n=t(i[a])).length&&(n=n.join("\n"),r=e.exec(n)))return{url:i[a],line:n.substring(0,r.index).split("\n").length,column:r.index-n.lastIndexOf("\n",r.index)-1};return null}function A(e,i,n){var r,o=t(i),s=new RegExp("\\b"+a(e)+"\\b");return n-=1,o&&o.length>n&&(r=s.exec(o[n]))?r.index:null}function l(e){if(!p(i&&i.document)){for(var t,n,r,s,A=[i.location.href],c=i.document.getElementsByTagName("script"),l=""+e,u=0;u<c.length;++u){var h=c[u];h.src&&A.push(h.src)}if(r=/^function(?:\s+([\w$]+))?\s*\(([\w\s,]*)\)\s*\{\s*(\S[\s\S]*\S)\s*\}\s*$/.exec(l)){var m=r[1]?"\\s+"+r[1]:"",g=r[2].split(",").join("\\s*,\\s*");t=a(r[3]).replace(/;$/,";?"),n=new RegExp("function"+m+"\\s*\\(\\s*"+g+"\\s*\\)\\s*{\\s*"+t+"\\s*}")}else n=new RegExp(a(l).replace(/\s+/g,"\\s+"));if(s=d(n,A))return s;if(r=/^function on([\w$]+)\s*\(event\)\s*\{\s*(\S[\s\S]*\S)\s*\}\s*$/.exec(l)){var f=r[1];if(t=o(r[2]),s=d(n=new RegExp("on"+f+"=[\\'\"]\\s*"+t+"\\s*[\\'\"]","i"),A[0]))return s;if(s=d(n=new RegExp(t),A))return s}return null}}function h(e){if(!e.stack)return null;for(var t,i,a,o=/^\s*at (.*?) ?\(((?:file|https?|blob|chrome-extension|native|eval|webpack|<anonymous>|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,s=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,d=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,l=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,u=/\((\S*)(?::(\d+))(?::(\d+))\)/,h=e.stack.split("\n"),m=[],g=/^(.*) is undefined$/.exec(e.message),f=0,v=h.length;f<v;++f){if(i=o.exec(h[f])){var b=i[2]&&0===i[2].indexOf("native");i[2]&&0===i[2].indexOf("eval")&&(t=u.exec(i[2]))&&(i[2]=t[1],i[3]=t[2],i[4]=t[3]),a={url:b?null:i[2],func:i[1]||c,args:b?[i[2]]:[],line:i[3]?+i[3]:null,column:i[4]?+i[4]:null}}else if(i=d.exec(h[f]))a={url:i[2],func:i[1]||c,args:[],line:+i[3],column:i[4]?+i[4]:null};else{if(!(i=s.exec(h[f])))continue;i[3]&&i[3].indexOf(" > eval")>-1&&(t=l.exec(i[3]))?(i[3]=t[1],i[4]=t[2],i[5]=null):0!==f||i[5]||p(e.columnNumber)||(m[0].column=e.columnNumber+1),a={url:i[3],func:i[1]||c,args:i[2]?i[2].split(","):[],line:i[4]?+i[4]:null,column:i[5]?+i[5]:null}}!a.func&&a.line&&(a.func=n(a.url,a.line)),a.context=a.line?r(a.url,a.line):null,m.push(a)}return m.length?(m[0]&&m[0].line&&!m[0].column&&g&&(m[0].column=A(g[1],m[0].url,m[0].line)),{mode:"stack",name:e.name,message:e.message,stack:m}):null}function m(e,t,i,a){var o={url:t,line:i};if(o.url&&o.line){e.incomplete=!1,o.func||(o.func=n(o.url,o.line)),o.context||(o.context=r(o.url,o.line));var s=/ '([^']+)' /.exec(a);if(s&&(o.column=A(s[1],o.url,o.line)),e.stack.length>0&&e.stack[0].url===o.url){if(e.stack[0].line===o.line)return!1;if(!e.stack[0].line&&e.stack[0].func===o.func)return e.stack[0].line=o.line,e.stack[0].context=o.context,!1}return e.stack.unshift(o),e.partial=!0,!0}return e.incomplete=!0,!1}function g(e,t){for(var i,r,a,o=/function\s+([_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*)?\s*\(/i,d=[],u={},p=!1,h=g.caller;h&&!p;h=h.caller)if(h!==f&&h!==s.report){if(r={url:null,func:c,args:[],line:null,column:null},h.name?r.func=h.name:(i=o.exec(h.toString()))&&(r.func=i[1]),void 0===r.func)try{r.func=i.input.substring(0,i.input.indexOf("{"))}catch(e){}if(a=l(h)){r.url=a.url,r.line=a.line,r.func===c&&(r.func=n(r.url,r.line));var v=/ '([^']+)' /.exec(e.message||e.description);v&&(r.column=A(v[1],a.url,a.line))}u[""+h]?p=!0:u[""+h]=!0,d.push(r)}t&&d.splice(0,t);var b={mode:"callers",name:e.name,message:e.message,stack:d};return m(b,e.sourceURL||e.fileName,e.line||e.lineNumber,e.message||e.description),b}function f(e,a){var s=null;a=null==a?0:+a;try{if(s=function(e){var t=e.stacktrace;if(t){for(var i,a=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,o=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^\)]+))\((.*)\))? in (.*):\s*$/i,s=t.split("\n"),d=[],A=0;A<s.length;A+=2){var c=null;if((i=a.exec(s[A]))?c={url:i[2],line:+i[1],column:null,func:i[3],args:[]}:(i=o.exec(s[A]))&&(c={url:i[6],line:+i[1],column:+i[2],func:i[3]||i[4],args:i[5]?i[5].split(","):[]}),c){if(!c.func&&c.line&&(c.func=n(c.url,c.line)),c.line)try{c.context=r(c.url,c.line)}catch(e){}c.context||(c.context=[s[A+1]]),d.push(c)}}return d.length?{mode:"stacktrace",name:e.name,message:e.message,stack:d}:null}}(e),s)return s}catch(e){}try{if(s=h(e))return s}catch(e){}try{if(s=function(e){var a=e.message.split("\n");if(a.length<4)return null;var s,A=/^\s*Line (\d+) of linked script ((?:file|https?|blob)\S+)(?:: in function (\S+))?\s*$/i,c=/^\s*Line (\d+) of inline#(\d+) script in ((?:file|https?|blob)\S+)(?:: in function (\S+))?\s*$/i,l=/^\s*Line (\d+) of function script\s*$/i,p=[],h=i&&i.document&&i.document.getElementsByTagName("script"),m=[];for(var g in h)u(h,g)&&!h[g].src&&m.push(h[g]);for(var f=2;f<a.length;f+=2){var v=null;if(s=A.exec(a[f]))v={url:s[2],func:s[3],args:[],line:+s[1],column:null};else if(s=c.exec(a[f])){v={url:s[3],func:s[4],args:[],line:+s[1],column:null};var b=+s[1],k=m[s[2]-1];if(k){var y=t(v.url);if(y){var w=(y=y.join("\n")).indexOf(k.innerText);w>=0&&(v.line=b+y.substring(0,w).split("\n").length)}}}else if(s=l.exec(a[f])){var I=i.location.href.replace(/#.*$/,""),S=d(new RegExp(o(a[f+1])),[I]);v={url:I,func:"",args:[],line:S?S.line:s[1],column:null}}if(v){v.func||(v.func=n(v.url,v.line));var E=r(v.url,v.line),x=E?E[Math.floor(E.length/2)]:null;E&&x.replace(/^\s*/,"")===a[f+1].replace(/^\s*/,"")?v.context=E:v.context=[a[f+1]],p.push(v)}}return p.length?{mode:"multiline",name:e.name,message:a[0],stack:p}:null}(e),s)return s}catch(e){}try{if(s=g(e,a+1))return s}catch(e){}return{name:e.name,message:e.message,mode:"failed"}}return f.augmentStackTraceWithInitialElement=m,f.computeStackTraceFromStackProp=h,f.guessFunctionName=n,f.gatherContext=r,f.ofCaller=function(e){e=1+(null==e?0:+e);try{throw new Error}catch(t){return f(t,e+1)}},f.getSource=t,f}(),s.extendToAsynchronousCallbacks=function(){var e=function(e){var t=i[e];i[e]=function(){var e=A.call(arguments),i=e[0];return"function"==typeof i&&(e[0]=s.wrap(i)),t.apply?t.apply(this,e):t(e[0],e[1])}};e("setTimeout"),e("setInterval")},s.remoteFetching||(s.remoteFetching=!0),s.collectWindowErrors||(s.collectWindowErrors=!0),(!s.linesOfContext||s.linesOfContext<1)&&(s.linesOfContext=11),r=[],void 0===(a="function"==typeof(n=s)?n.apply(t,r):n)||(e.exports=a)}function u(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function p(e){return void 0===e}}("undefined"!=typeof window?window:i.g)}},t={};function i(n){if(t[n])return t[n].exports;var r=t[n]={exports:{}};return e[n](r,r.exports,i),r.exports}i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";var e=i(564),t=i.n(e);const n={ready:"pokiAppReady",adblocked:"pokiAppAdblocked",ads:{completed:"pokiAdsCompleted",error:"pokiAdsError",impression:"pokiAdsImpression",durationChange:"pokiAdsDurationChange",limit:"pokiAdsLimit",ready:"pokiAdsReady",requested:"pokiAdsRequested",prebidRequested:"pokiAdsPrebidRequested",skipped:"pokiAdsSkipped",started:"pokiAdsStarted",stopped:"pokiAdsStopped",busy:"pokiAdsBusy",position:{preroll:"PP",midroll:"PM",rewarded:"PR",display:"DP"},video:{clicked:"pokiVideoAdsClicked",firstQuartile:"pokiVideoAdsFirstQuartile",midPoint:"pokiVideoAdsMidPoint",thirdQuartile:"pokiVideoAdsThirdQuartile",error:"pokiVideoAdsError",loaderError:"pokiVideoAdsLoaderError",paused:"pokiVideoAdsPauseTriggered",resumed:"pokiVideoAdsResumedTriggered",progress:"pokiVideoAdsProgress",buffering:"pokiVideoAdsBuffering"}},info:{messages:{timeLimit:"The ad-request was not processed, because of a time constraint",prerollLimit:"The ad-request was cancelled, because we're not allowed to show a preroll",disabled:"The ad-request was cancelled, because we've disabled this format for this specific configuration"}},message:{event:"pokiMessageEvent",sdkDetails:"pokiMessageSdkDetails",toggleProgrammaticAds:"pokiMessageToggleProgrammaticAds",setPokiURLParams:"pokiMessageSetPokiURLParams"},tracking:{custom:"pokiTrackingCustom",togglePlayerAdvertisingConsent:"pokiTrackingTogglePlayerAdvertisingConsent",debugTrueInProduction:"pokiMessageDebugTrueProduction",screen:{gameplayStart:"pokiTrackingScreenGameplayStart",gameplayStop:"pokiTrackingScreenGameplayStop",gameLoadingStarted:"pokiTrackingScreenGameLoadingStarted",gameLoadingProgress:"pokiTrackingScreenGameLoadingProgress",gameLoadingFinished:"pokiTrackingScreenGameLoadingFinished",commercialBreak:"pokiTrackingScreenCommercialBreak",rewardedBreak:"pokiTrackingScreenRewardedBreak",happyTime:"pokiTrackingScreenHappyTime",firstRound:"pokiTrackingScreenFirstRound",roundStart:"pokiTrackingScreenRoundStart",roundEnd:"pokiTrackingScreenRoundEnd",gameInteractive:"pokiTrackingScreenGameInteractive",displayAd:"pokiTrackingScreenDisplayAdRequest",destroyAd:"pokiTrackingScreenDisplayAdDestroy"},sdk:{status:{initialized:"pokiTrackingSdkStatusInitialized",failed:"pokiTrackingSdkStatusFailed"}},ads:{status:{busy:"pokiTrackingAdsStatusBusy",completed:"pokiTrackingAdsStatusCompleted",error:"pokiTrackingAdsStatusError",displayError:"pokiTrackingAdsStatusDisplayError",impression:"pokiTrackingAdsStatusImpression",limit:"pokiTrackingAdsStatusLimit",ready:"pokiTrackingAdsStatusReady",requested:"pokiTrackingAdsStatusRequested",prebidRequested:"pokiTrackingAdsStatusPrebidRequested",skipped:"pokiTrackingAdsStatusSkipped",started:"pokiTrackingAdsStatusStarted",buffering:"pokiTrackingAdsStatusBuffering"},video:{clicked:"pokiTrackingAdsVideoClicked",error:"pokiTrackingAdsVideoError",loaderError:"pokiTrackingAdsVideoLoaderError",progress:"pokiTrackingAdsVideoProgress",paused:"pokiTrackingAdsVideoPaused",resumed:"pokiTrackingAdsVideoResumed"},display:{requested:"pokiTrackingScreenDisplayAdRequested",impression:"pokiTrackingScreenDisplayAdImpression"}}}},r=function(){function e(){}return e.debug=!1,e.log=!1,e}();var a=function(){return a=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},a.apply(this,arguments)};const o=function(){function e(){}return e.clearEventListeners=function(){this.listeners={}},e.removeEventListener=function(e,t){if(Object.prototype.hasOwnProperty.call(this.listeners,e)){var i=this.listeners[e].indexOf(t);-1!==i&&this.listeners[e].splice(i,1)}},e.addEventListener=function(e,t,i){var n=this;if(void 0===i&&(i=!1),i=!!i,Object.prototype.hasOwnProperty.call(this.listeners,e)||(this.listeners[e]=[]),i){var r=function(i){n.removeEventListener.bind(n)(e,r),t(i)};this.listeners[e].push(r)}else this.listeners[e].push(t)},e.dispatchEvent=function(e,t){void 0===t&&(t={}),!r.debug||window.process&&window.process.env&&window.process.env.NODE_ENV;for(var i=Object.keys(this.listeners),n=0;n<i.length;n++){var o=i[n];if(e===o)for(var s=this.listeners[o],d=0;d<s.length;d++)s[d](a(a({},this.dataAnnotations),t))}},e.setDataAnnotations=function(e){this.dataAnnotations=a(a({},this.dataAnnotations),e)},e.getDataAnnotations=function(){return this.dataAnnotations},e.clearAnnotations=function(){this.dataAnnotations={}},e.listeners={},e.dataAnnotations={},e}(),s=function(e,t){var i=!1;return Object.keys(t).forEach((function(n){t[n]===e&&(i=!0)})),i},d={adTagUrl:"//pubads.g.doubleclick.net/gampad/ads?sz=640x360|640x480&iu=/1053551/Pub-Poki-Generic&ciu_szs&impl=s&gdfp_req=1&env=vp&output=xml_vast2&unviewed_position_start=1&url={url}&description_url={descriptionUrl}&correlator={timestamp}",adTiming:{preroll:!1,timeBetweenAds:12e4,timePerTry:7e3,startAdsAfter:12e4},waterfallRetries:2},A=function(e){return e instanceof Array?e:[e]},c=function(){function e(e){void 0===e&&(e={}),this.setTimings(e),this.timingIdx={timePerTry:0},this.timers={timePerTry:void 0,timeBetweenAds:void 0,startAdsAfter:void 0},o.addEventListener(n.ads.requested,this.startTimeBetweenAdsTimer.bind(this)),o.addEventListener(n.ads.completed,this.startTimeBetweenAdsTimer.bind(this)),o.addEventListener(n.ads.stopped,this.startTimeBetweenAdsTimer.bind(this))}return e.prototype.setTimings=function(e){var t=d.adTiming,i=e.preroll,n=void 0===i?t.preroll:i,r=e.timePerTry,a=void 0===r?t.timePerTry:r,o=e.timeBetweenAds,s=void 0===o?t.timeBetweenAds:o,c=e.startAdsAfter,l=void 0===c?t.startAdsAfter:c;this.timings={preroll:!1!==n,timePerTry:A(a),timeBetweenAds:s,startAdsAfter:l}},e.prototype.startTimeBetweenAdsTimer=function(){this.startTimer("timeBetweenAds")},e.prototype.startStartAdsAfterTimer=function(){this.startTimer("startAdsAfter")},e.prototype.requestPossible=function(){return!this.timers.timeBetweenAds&&!this.timers.startAdsAfter},e.prototype.startWaterfallTimer=function(e){this.startTimer("timePerTry",e)},e.prototype.stopWaterfallTimer=function(){this.stopTimer("timePerTry")},e.prototype.nextWaterfallTimer=function(){this.nextTiming("timePerTry")},e.prototype.resetWaterfallTimerIdx=function(){this.resetTimingIdx("timePerTry")},e.prototype.stopTimer=function(e){this.timers[e]&&(clearTimeout(this.timers[e]),this.timers[e]=void 0)},e.prototype.startTimer=function(e,t){var i=this;void 0===t&&(t=function(){}),this.getTiming(e)<=0?t():(this.timers[e]&&clearTimeout(this.timers[e]),this.timers[e]=window.setTimeout((function(){i.stopTimer(e),t()}),this.getTiming(e)))},e.prototype.getTiming=function(e){var t=this.timings[e];return t instanceof Array?t[this.timingIdx[e]]:t},e.prototype.nextTiming=function(e){if(void 0===this.timingIdx[e])throw new Error("AdTimings Error: "+e+" does not have multiple timers");this.timingIdx[e]=(this.timingIdx[e]+1)%this.timings[e].length},e.prototype.resetTimingIdx=function(e){if(void 0===this.timingIdx[e])throw new Error("AdTimings Error: "+e+" does not have multiple timers");this.timingIdx[e]=0},e.prototype.prerollPossible=function(){return this.timings.preroll},e}();var l=document.location.hostname;function u(e){var t=new RegExp(e+"=([^;]+)(?:;|$)").exec(document.cookie);return t?t[1]:""}function p(e,t){document.cookie=e+"="+t+"; path=/; samesite=none; secure; max-age=15552000; domain="+l}l.endsWith("poki-gdn.com")&&(l="poki-gdn.com");var h=function(e,t,i){if(i||2===arguments.length)for(var n,r=0,a=t.length;r<a;r++)!n&&r in t||(n||(n=Array.prototype.slice.call(t,0,r)),n[r]=t[r]);return e.concat(n||Array.prototype.slice.call(t))},m="poki_gcuid",g=u(m);const f=function(){function e(){}return e.collectAndLog=function(){return function(e,t,i,n){return new(i||(i=Promise))((function(r,a){function o(e){try{d(n.next(e))}catch(e){a(e)}}function s(e){try{d(n.throw(e))}catch(e){a(e)}}function d(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(o,s)}d((n=n.apply(e,t||[])).next())}))}(this,void 0,void 0,(function(){var e,t,i,n,r;return function(e,t){var i,n,r,a,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(i)throw new TypeError("Generator is already executing.");for(;o;)try{if(i=1,n&&(r=2&a[0]?n.return:a[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,a[1])).done)return r;switch(n=0,r&&(a=[2&a[0],r.value]),a[0]){case 0:case 1:r=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,n=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!((r=(r=o.trys).length>0&&r[r.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]<r[3])){o.label=a[1];break}if(6===a[0]&&o.label<r[1]){o.label=r[1],r=a;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(a);break}r[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],n=0}finally{i=r=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}(this,(function(a){switch(a.label){case 0:return a.trys.push([0,5,,6]),[4,window.cookieStore.getAll()];case 1:return e=a.sent(),window.indexedDB.databases?[4,window.indexedDB.databases()]:[3,3];case 2:return i=a.sent(),[3,4];case 3:i=[],a.label=4;case 4:return t=i,n=h(h(h([],e.map((function(e){return{name:e.name,expire_seconds:Math.round((e.expires-Date.now())/1e3),type:"cookie"}})),!0),Object.keys(window.localStorage).map((function(e){return{name:e,expire_seconds:15552e3,type:"localStorage"}})),!0),t.map((function(e){return{name:e.name,expire_seconds:0,type:"idb"}})),!0),r={cookies:n,p4d_game_id:Be.gameId,user_id:g},window.fetch("null.html?https://t.poki.io/game-cookies",{method:"post",body:JSON.stringify(r)}).catch(),[3,6];case 5:return a.sent(),[3,6];case 6:return[2]}}))}))},e.trackSavegames=function(){window.cookieStore&&window.cookieStore.getAll&&Be.gameId&&(Math.random()>.01||navigator.userAgent.indexOf("Safari")>-1&&navigator.userAgent.indexOf("Chrome")<=-1||(g||(g=Math.random().toString(36).substr(2,9),p(m,g)),e.collectAndLog(),setInterval(e.collectAndLog,12e4)))},e}(),v=function(){return window.location.href},b=function(){return"undefined"!=typeof navigator&&/(?:phone|windows\s+phone|ipod|blackberry|(?:android|bb\d+|meego|silk|googlebot) .+? mobile|palm|windows\s+ce|opera\smini|avantgo|mobilesafari|docomo)/i.test(navigator.userAgent)},k=function(){return"undefined"!=typeof navigator&&/(?:ipad|playbook|(?:android|bb\d+|meego|silk)(?! .+? mobile))/i.test(navigator.userAgent)},y=function(e,t){var i;if("undefined"==typeof window&&!t)return"";e=e.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var n=new RegExp("(?:[\\?&]|^)"+e+"=([^&#]*)").exec(t||(null===(i=null===window||void 0===window?void 0:window.location)||void 0===i?void 0:i.search)||"");return null===n?"":decodeURIComponent(n[1].replace(/\+/g," "))},w=function(){return"undefined"!=typeof navigator&&/MSIE \\d|Trident.*rv:/i.test(navigator.userAgent)};var I={1:"eNjDw1AVTr",2:"HkuQJaWnBa",3:"AfRKClvdYk",4:"Db7uYbsnlW",5:"UprdYKe74r",6:"tBCJC9E6Y4",7:"AfRKClvdYk",8:"tJ44vpLpuM",9:"mF5ASaga4A",10:"rKV8rMwiwk",11:"SvK8BH5qS5",12:"SpfIMxnWTS",13:"ysxIcmt3tW",14:"gLmtGS4aUq",15:"RU6ebIFLw9",16:"r9G4tVMYw7",17:"SgcDa5B8s1",18:"AfRKClvdYk",19:"DNZX8XdJXV",20:"39o4YUyZTX",21:"5sb2HFpz5a",22:"pgXzCJZipE",23:"Oani8EAGI9",24:"IzCeh7d7vW",25:"I5vRNtjoMr",26:"KpySvG7luq",27:"dK42J4rI14",28:"HuYorw3fRg",29:"mf84cGYc1h",30:"9ALgxEyGXU",31:"lBzSdVGY8F",32:"hKYgk9Wb8q",33:"xPBr8E54eE",34:"ZvIK2WKC7G",35:"7kiYi3zlIX",36:"VpygYMTDgm",37:"mis9Mt4np4",38:"AfRKClvdYk",41:"Fqmjp9Hit3",42:"lS2XGg058L",43:"AfRKClvdYk",46:"AfRKClvdYk",47:"21OybbiIdc",48:"AfRKClvdYk",49:"CMVoMvvEmu",50:"IoQrhRb3wU",52:"AfRKClvdYk",53:"AfRKClvdYk"},S=["AU","CA","IE","NZ","US","GB"],E=["AT","BE","DK","FI","FR","DE","JA","NO","NL","SA","ES","SE","CH","AE","IT"],x=["BR","CL","CZ","HU","PL","PT","RU","SK","TH"],C=["AR","BG","CO","EC","GR","IN","MX","PE","PH","RO","TR","UY"];function T(e){return S.includes(e)?.13:E.includes(e)?.07:x.includes(e)?.04:.02}function _(e){return"US"===e?1.5:S.includes(e)?.5:E.includes(e)?.15:x.includes(e)?.08:C.includes(e)?.03:.02}const B=function(e){r.debug||fetch("null.html?https://t.poki.io/adserver",{method:"POST",mode:"no-cors",body:JSON.stringify(e)})};var P={v_k0treo:2.5,v_qr1wxs:7.5,v_9diccg:19,v_13q0xkw:.25,v_dn33ls:1,v_z07u2o:1.5,v_1400iyo:2.25,v_9w8kxs:3,v_ufej9c:3.5,v_10960ao:4.25,v_1ksbym8:4.75,v_1ag9340:5.25,v_1tbhh4w:5.75,v_jjcgzk:6.5,v_brnu9s:7,v_1wscef4:7.75,v_q22xhc:8.5,v_f8irk0:9,v_1rik45c:9.75,v_lxhyww:10.5,v_a9z0u8:11,v_1yhiww0:11.75,v_10mwg74:12.25,v_1ji4u80:12.75,v_wm2c5c:13.5,v_2na6tc:14,v_1myzri8:14.75,v_3pzm68:6,v_16kerr4:6.25,v_1mdrmkg:6.75,v_1ga0k5c:7.25,v_5iwz5s:8,v_12tk934:8.25,v_1hsybr4:8.75,v_1cj61hc:9.25,v_y3r5kw:9.5,v_94ow0:10,v_15woqgw:10.25,v_1orx4hs:10.75,v_1d4e6f4:11.25,v_t57ev4:11.5,v_783hmo:12,v_m7hkao:12.5,v_hmo9hc:13,v_19djnr4:13.25,v_1twpm2o:13.75,v_17zlou8:14.25,v_ign1mo:14.5,v_ccvz7k:15,v_1f7b4sg:15.25,v_snq4g0:15.5,v_5wnf28:16,v_137aozk:16.25,v_1j0njsw:16.75,v_1b8yx34:17.25,v_yhhlhc:17.5,v_25swe8:18,v_15081z4:18.25,v_1pje0ao:18.75,v_1eptudc:19.25,v_1xl28e8:19.75,v_gfliio:21,v_3y3sao:22,v_ixhuyo:22.5,v_ro52io:23.5,v_qa73ls:24.5,v_emo5j4:25,v_yq5fk:26,v_aobxts:27,v_6shmgw:28,v_natgqo:28.5,v_x0f94w:29.5,v_d2hfr4:31,v_dch14w:33,v_1jyadc:34,v_8p5tz4:36,v_fwv9xc:37,v_c60r9c:39,v_58awow:40,v_bbcow:42,v_a0x534:43,v_hdmdq8:45,v_2e8b28:46,v_5nljb4:48,v_1wr0n4:50,v_pam1og:.5,v_1ipf08w:.75,v_1axqdj4:1.25,v_1qr38cg:1.75,v_15ldds:2,v_1q248w0:2.75,v_1eelatc:3.25,v_1x9tou8:3.75,v_8iam0w:4,v_nhooow:4.5,v_fq01z4:5,v_w0u77k:5.5,v_1vi5a0w:15.75,v_orvt34:16.5,v_dybn5s:17,v_1q8czr4:17.75,v_l11af4:18.5,v_uqn2tc:19.5,v_7zkdfk:20,v_o7a58g:20.5,v_vezl6o:21.5,v_b5t88w:23,v_4x2d4w:24,v_xhwjk0:25.5,v_lhw3r4:26.5,v_tjkbuo:27.5,v_h72ebk:29,v_31n3sw:30,v_64rl6o:32,v_9lmigw:35,v_3fdjpc:38,v_fapfcw:41,v_7o0lc0:44,v_clbdvk:47,v_ee8qv4:49},D={"11s3rwg":2.49,"1uhxr0g":2.87,qr1wxs:7.5,"15xxon4":.01,o6no5c:.02,fb0nwg:.04,"1etkow0":.05,x2aoe8:.06,"1wkupds":.07,"11i46io":.09,jqu60w:.1,"1j9e70g":.11,"1adr6rk":.13,smh69s:.14,"1s5179c":.15,"8naeps":.16,qekf7k:.18,"1px4g74":.19,hixeyo:.2,za7fgg:.22,"1ysrgg0":.23,lyqx34:.26,"16hwveo":1.13,"1fdjvnk":1.17,"2jjcao":1.2,"1jtdds0":1.23,t6gd1c:1.26,"65e29s":1.28,"1nf83r4":1.31,wsb30g:1.34,jgukn4:1.38,al7ke8:1.4,"1a3rlds":1.41,"8datc0":1.44,"1pn4utc":1.47,z07u2o:1.5,"13g1c74":1.53,ct4bgg:1.56,ukeby8:1.58,mspp8g:1.62,"1dfmpz4":1.65,lm6m8:1.68,icw740:1.7,"18zt7uo":1.73,"79cfsw":1.76,"1oj6ha8":1.79,"1xethj4":1.83,"12c2yo0":1.85,bp5xxc:1.88,"1syzzeo":1.91,ncow00:1.94,"1dzlwqo":1.97,"15ldds":2,"10o5edc":2.009999,a18dmo:2.04,"1rb2f40":2.069999,pkln28:2.1,"1g7insw":2.13,"12w25fk":2.17,c954ow:2.2,"1brp5og":2.21,"1400iyo":2.25,v4dips:2.3,hsx0cg:2.34,"18fu134":2.37,"167xa0w":2.41,"1f3ka9s":2.45,"1d5n4lc":1.01,"1uwx534":1.03,bml8g:1.04,i2wlq8:1.06,"979lhc":1.08,"18ptmgw":1.09,"1qh3myo":1.11,"6zcuf4":1.12,oqmuww:1.14,fuzuo0:1.16,xm9v5s:1.18,"1x4tw5c":1.19,"1223da8":1.21,katcsg:1.22,bf6cjk:1.24,"1axqdj4":1.25,"1sp0e0w":1.27,"15ny39c":1.29,nwo2rk:1.3,f112io:1.32,"1ejl3i8":1.33,"1pkk5c":1.36,"1184l4w":1.37,"1izelmo":1.39,schkw0:1.42,"1rv1lvk":1.43,"17vuubk":1.45,q4ktts:1.46,h8xtkw:1.48,"1yirv28":1.51,"3xhb7k":1.52,lorbpc:1.54,"1l7bcow":1.55,"1cbocg0":1.57,"1u2ycxs":1.59,"51foqo":1.6,"14jzpq8":1.61,"1mb9q80":1.63,dx2ozk:1.64,vocphc:1.66,"1v6wqgw":1.67,"10467ls":1.69,"1hvg83k":1.71,"9h96v4":1.72,r8j7cw:1.74,"1qr38cg":1.75,"16rwgsg":1.77,p0mgao:1.78,g4zg1s:1.8,"1fnjh1c":1.81,xw9gjk:1.82,"2tixog":1.84,kksy68:1.86,"1k3cz5s":1.87,"1b7pyww":1.89,tgfyf4:1.9,"5levi8":1.92,"153ywhs":1.93,"1mv8wzk":1.95,eh1vr4:1.96,w8bw8w:1.98,iwvdvk:2.02,"1iffev4":2.029999,"19jsem8":2.049999,rsie4g:2.06,"7tbmkg":2.08,"17bvnk0":2.089999,"1p35o1s":2.11,goymtc:2.12,"1xysoao":2.15,"3di4g0":2.16,l4s4xs:2.18,"1knc5xc":2.19,u0f56o:2.22,"1tiz668":2.23,"4hghz4":2.24,m8qigw:2.26,dd3i80:2.28,"1cvnj7k":2.29,"1umxjpc":2.31,"1mzuo":2.32,zk70u8:2.33,"1hbh1c0":2.35,"8xa03k":2.36,qok0lc:2.38,"1q741kw":2.39,"6pd91c":2.4,ogn9j4:2.42,"1wuuark":2.47,k0treo:2.5,"1jjdse8":2.51,swgrnk:2.54,"162xhc0":2.57,fg0glc:2.6,l11af4:18.5,"9diccg":19,"7zkdfk":20,gfliio:21,b5t88w:23,"4x2d4w":24,emo5j4:25,aobxts:27,"6shmgw":28,"31n3sw":30,"64rl6o":32,dch14w:33,"9lmigw":35,"1yv9csg":5.35,o42yo:6.8,q22xhc:8.5,d2hfr4:31,"1np7p4w":.03,"1zk5j4":.08,av75s0:.12,"185ufpc":.17,"1h1hfy8":.21,"47gwlc":.24,d33wu8:.28,uudxc0:.3,"14tzb40":.33,e72adc:.36,"1vgwbuo":.39,"10e5szk":.41,"1i5fthc":.43,"1r12tq8":.47,pam1og:.5,gez1fk:.52,"1xot2ww":.55,kusjk0:.58,bz5jb4:.6,tqfjsw:.62,"5vegw0":.64,"1n58idc":.67,wibhmo:.7,"1fkyrk":.72,"1ipf08w":.75,s2hzi8:.78,pul8g0:.82,"1ghi96o":.85,"3nhpts":.88,lerqbk:.9,uaeqkg:.94,"14a04cg":.97,dn33ls:1,ved43k:1.02,zu6m80:1.05,"1hlgmps":1.07,qyjlz4:1.1,"1lhay2o":.27,"1clnxts":.29,"1ucxybk":.31,"5bfa4g":.32,n2pam8:.34,"1ml9bls":.35,"1dpmbcw":.37,vycav4:.38,vls00:.4,imvshs:.42,"9r8s8w":.44,"199st8g":.45,"7jc16o":.48,"171w268":.49,"1ot62o0":.51,"1fxj2f4":.53,y691xc:.54,"33ij28":.56,"12m2k1s":.57,"1kdckjk":.59,"1t8zksg":.63,"15dyhvk":.65,nmohds:.66,er1h4w:.68,"1e9li4g":.69,"1w0vim8":.71,"10y4zr4":.73,j6uz9c:.74,ab7z0g:.76,"19ts000":.77,"1rl20hs":.79,"83b7y8":.8,"17lv8xs":.81,"1pd59fk":.83,gyy874:.84,yq88ow:.86,"1y8s9og":.87,"1361qtc":.89,"1kxbrb4":.91,"1c1or28":.93,"1tsyrk0":.95,"4rg3cw":.96,miq3uo:.98,"1m1a4u8":.99,"11x3klc":5.05,"1nrplhc":5.15,"1ag9340":5.25,qh2bk0:5.3,"14wh7gg":5.45,w0u77k:5.5,"7ltxj4":5.6,kxafwg:5.7,"1tbhh4w":5.75,"110mw3k":5.85,"1pfn5s0":5.95,"3pzm68":6,ml8074:6.1,"1uzf1fk":6.15,"16kerr4":6.25,"1jvva4g":6.35,"67vym8":6.4,jjcgzk:6.5,hbfpxc:6.6,"13ij8jk":6.65,"1mdrmkg":6.75,p34cn4:6.9,"1xhbdvk":6.95,"1ihxb7k":7.15,"1ga0k5c":7.25,dflekg:7.4,"1o1p6v4":7.55,"2c1n9c":7.6,"1wscef4":7.75,zhp4hs:7.9,"5iwz5s":8,f8irk0:9,y3r5kw:9.5,lxhyww:10.5,a9z0u8:11,"783hmo":12,m7hkao:12.5,wm2c5c:13.5,"2na6tc":14,ign1mo:14.5,snq4g0:15.5,"5wnf28":16,dybn5s:17,yhhlhc:17.5,testbid:0,"1nz7aio":2.43,xca9s0:2.46,b56r5s:2.52,obngu8:2.58,"24jy80":2.64,"1jedzpc":2.67,"18au8e8":2.73,hnx7nk:2.76,"13v0q9s":2.81,"10lkow":2.96,"156gsu8":7.05,"1tlh2io":7.35,"1aq8ohs":7.65,"1losn40":7.95,"1sf0sn4":2.55,"1eykhkw":2.61,srgyyo:2.7,"1yxr94w":2.79,d83pj4:2.84,n7p3b4:2.9,"1dum41s":2.93,"1iafm68":2.99,"7vtiww":7.2,b2outc:7.8,"13q0xkw":.25,riisqo:.46,"1bhpkao":.61,cj4q2o:.92,"1o96vwg":1.15,"1wav400":1.35,"1grhukg":1.49,"1vqvx8g":1.99,yg8nb4:2.14,"1lrajgg":2.27,fl09a8:2.44,"1h6h8n4":2.77,"1m69xj4":3.55,rdj01s:4.3,"29jqww":2.48,"1anqs5c":2.53,"6kdgcg":2.56,"1nu7hts":2.59,"1wpui2o":2.63,jvtyps:2.66,"1sa0zy8":2.71,"1q248w0":2.75,"4cgpa8":2.8,"1cqnqio":2.85,"5gf2tc":2.88,ec2328:2.92,"1vlw4jk":2.95,"9w8kxs":3,"176vuv4":3.05,"1kicd8g":3.15,jbury8:3.3,h3y0w0:3.4,gmdxc:3.6,ovmnls:3.7,"15sxvy8":3.85,"1j4eebk":3.95,"1gwhn9c":4.05,e22hog:4.2,"1oo69z4":4.35,nhooow:4.5,"17gvg8w":4.65,"1ksbym8":4.75,hxwt1c:4.9,t1gkcg:5.1,"2221vk":5.2,d5lt6o:5.4,"1i7xpts":5.55,"1g00yrk":5.65,etjdhc:5.8,s4zvuo:5.9,"1c46neo":6.05,"99rhts":6.2,xorri8:6.3,"1em2zuo":6.45,"1rxji80":6.55,umw8ao:6.7,"192b474":6.85,brnu9s:7,x7ah34:2.62,"11n3z7k":2.65,b06ygw:2.68,"1aiqzgg":2.69,"8sa7eo":2.72,qjk7wg:2.74,zf785c:2.78,m3qps0:2.82,"1lmaqrk":2.83,uzdq0w:2.86,"14yz3sw":2.89,"1mq94ao":2.91,w3c3k0:2.94,"10j5log":2.97,irvl6o:2.98,yb8um8:3.1,"60e9kw":3.2,"1eelatc":3.25,"1rq1t6o":3.35,"13b1ji8":3.45,ufej9c:3.5,"18utf5s":3.65,"1x9tou8":3.75,bk658g:3.8,wxavpc:3.9,"8iam0w":4,ltr4e8:4.099999,"1u7y5mo":4.15,"10960ao":4.25,"2yiqdc":4.4,"1bcprls":4.45,"1vvvpxc":4.55,a686bk:4.6,yl8g00:4.7,"4mgao0":4.8,"1d0nbwg":4.85,"1qc3u9s":4.95,fq01z4:5,watslc:7.1,l7a1a8:7.3,zmox6o:7.45,oe5d6o:7.7,"18dc4qo":7.85,"94ow0":10,t57ev4:11.5,hmo9hc:13,ccvz7k:15,orvt34:16.5,"25swe8":18,uqn2tc:19.5,"3y3sao":22,yq5fk:26,h72ebk:29,"1jyadc":34,testBid:50},j={hgfim8:"Amazon - DistrictM",qc2iv4:"Amazon - Magnite","183cjcw":"Amazon - AppNexus","8ksidc":"Amazon - OpenX","1s2jaww":"Amazon - PubMatic","1pumjuo":"Amazon - EMX","12jknpc":"Amazon - Conversant UAM","1kauo74":"Amazon - Amobee DSP","15bglj4":"Amazon - PubMatic UAM APAC","5swkjk":"Amazon - PubMatic UAM EU","1d32f4":"Amazon - Simpli.fi",ksan7k:"Amazon - Index Exchange",urw0zk:"Amazon - Smaato","1dn4f0g":"Amazon - AdGeneration",vvueio:"Amazon - DMX","1veefi8":"Amazon - Yieldmo","1i2xx4w":"Amazon - Yahoo Japan",rg0we8:"Amazon - UnrulyX_SSP_APS",y3r5kw:"Amazon - Verizon Media Group","1xmb6kg":"Amazon - GumGum UAM","1t6hog0":"Amazon - Acuity","1n2qm0w":"Amazon - Sharethrough",j4d2ww:"Amazon - EMX UAM","1imx3wg":"Amazon - LoopMe_UAM",z7pj40:"Amazon - Pulsepoint",p845c0:"Amazon - SmartRTB+"},z={skyscraper:{1:"eexq7SUa6daeQrPF6q1CaKZ0",10:"SSZzGHt3d4BrOdVUug1ypxji",11:"OXc0ZJDJIcRgGcIta8mTUQSZ",12:"ulACVGPjP002tSfhDGRApuub",13:"c7FldnCsd9Mtcr7PgBFGKWEQ",14:"KJouWQMjZwvE8fxw4mAvGopZ",15:"ilNkOqBMO6EGbQwrZtCMHzeJ",16:"Kg24ec1AyTvzJ6I3Cji8lqzx",17:"iqvpcyepSMCVCsJfKu4JQGwr",18:"es9ztDrPZDW883VHbK2gUfkQ",19:"pvXQE41GXKGsW5Li0OSQavwT",20:"MCy638sYvzVbsrvcPau6lABN",21:"NkJeV6CuMlt41iJWcgnmMSDN",22:"fjKznUvVWlp6TBxuSsEkQF8H",23:"5tJM2ZFmNf7gii6KVS6msGc4",24:"xZUYMFw1zGuRzFd6DRl88Pwk",3:"xNmhWWy88VtzOGfderrtgDBb",30:"KO0gUA5iJIsleK9a941H0pW1",31:"wo0KU1WR11jNFxoy121ciQj8",37:"areVtONg11YNRQin7R2sveKy",4:"nip2pDW2AbU4GM5HMJcouuIa",47:"uzLaOEe8yqB9eWZuxdnwyawr",49:"ZYaqiQw00NSTBGJ4HacifENM",5:"qe5Tc3N2MO3daALoTdIaTmSA",50:"NZv1ui2F1tlQ6PQQi7umnFht",6:"xbx8OLCAgjm0igkmFIBw8n6E",8:"4vYDfNOQagnuwg9REGNWGv83"},rectangle:{1:"Ka3KvQx9svu71CJoRtZlwFY9",10:"9o5dMBQZX9bi2OsvTpc5j0pO",11:"gwL6nB1Twy25gpWQyEP2cVMJ",12:"yYUjIY5L6w2ukD5FxCIVydgG",13:"PoqRXAEYHKTdqNY22lIFTXRp",14:"eAudypoJLJEtFZz3zzvKYoAu",15:"4b416MUjJEdZm5nDKwvn2ELO",16:"H6jadzxgw0uRVRHHadZ19Zvp",17:"5zG8Ioh6paBscdCgUQTQE0eu",18:"OgMX0PlDPabF3BHOgxDbeH2n",19:"uzK7eCjSVYDp4KvJEg6mC59r",20:"yapIY909O3cgcD8QDAEehtkb",21:"8KT1bEUCcvASfq0LXWN2nVe0",22:"3LKyDpL1Xt7YactKFGxFpJO7",23:"GMaOiZl6YeMzYckusbO4Cdh1",24:"5iZnMqviynz6ndlaikqhMy73",3:"lcpgaTLqkd6gRi8AVtVr0gLe",30:"xWGhFW6bvMf9LuGYqQOhoD2h",31:"GqMz69ka237zrG4H8bpMuYTy",37:"lYrk2xnelCQrhwmO43AtjErF",4:"wceshrwDAUvkTTLQZDgE1V5T",47:"PDA12fEHtYIVr6A12fZ86JQH",49:"RYn9wxADCbBgKeo8Lyxx1ZHE",5:"N3wOmgPMiK6RaGNYjeqOzuHU",50:"KwEXqYIZG8fOlJyePKTBiJFs",6:"fJMv7XtKbfsRbzkO42fkS3Dr",8:"915o8cwxF5rzfQsA1Op6hhQV"},leaderboard:{4:"fZ4M7Isi1rLz2cjAcBBLmQGI",16:"ZPwouCq7eD5kRnZjX5ct8ZIT",1:"sysnuL1RKPIEL98w2l6lPc1w",31:"FgHUFCWMZCCJaHKMF0LyIgSI",23:"eyGVQGQkrHwJRcLoBzepUHW2",14:"PeRnr3pCNPpCgJAOF3yuQCGg",37:"5DXFSCYcaAxAXBuZVpTHAx59",30:"MpHDUxZ178U65yD3l878z5m1",47:"oYQGytr0CbDDQqIooggCsNTO",18:"na3uJK58s0vgb7NyaPR6R5P8",50:"m3hskIBrmloAWHD7i27q2ZPN",3:"PIsUL8EJvXXA1thcFkCPWdhi",19:"cluKVL1thRZlb3bsK7oVadOZ",20:"8PPLwmi2mra9HNTdhftQOcC4",8:"cCQE4L5S1j9BmKeywuonM6hM",11:"uvkuS4QYv01YvuGoJvqa9xnz",12:"GyG0XHcaahKmsXbcjDlgtjCQ",17:"0ut5aHlZRj5dNfTKo9bM8nXj",10:"TzMO5iGdP4vt7BIOAQ2e3kpU",49:"f1vArQjoEfX9QdjK2TvBjnDv",22:"92kdBH3AxvPr1pqZ1h1TYkjN",13:"Y6Tl87JTAn9T1B8rq523UDeH",15:"B3HlKKIdq8mGyoMGkjT4m9RD",24:"nfS0DrtZtJ6eZVNqsWqyVVFS",5:"gr33qXeArxdqi0Sk4i50TmE3",6:"ACn0XyU2KP2l94N0HMf1vhlu",21:"o2PQGGTxXO92in2mASt624tn"},mobile_leaderboard:{4:"Ue573Dbj78H6RnJT1nlozaJY",16:"5X98AYdO2OAIb2m6ThLjCGR5",1:"nVDrFwfkiRg5Tb426duBnat4",31:"H8tpygATsgJwk7qJzh612B0I",23:"07iMij2dOIgPHzM7JFv5fYBN",14:"XCQLWETuRkKmiN9jCOu01NOp",37:"419OVNbGzLJn7wlh5jAiUFLA",30:"ErE9N4WozhjbawA6HFN2hC0V",47:"4aBsJtSPEivB07hrlV6nTgj7",18:"waksL4h4X7gn2TU88OgeZHHl",50:"Wi3BRMWcCUdKZO7leMhtCfdp",3:"KQ3P2qVndkjlesGkzM5Rknma",19:"OCsZIZrTXKyprJ8AKiI7e0Jl",20:"h2aMA8KeZ3tHtfRgwT2xCHUJ",8:"igvEPDF1ft8FBFQ2aVhCS0BG",11:"I1ZnJzEjRg75BZikcGMWxMTF",12:"ZrnW76G2qvB5pZx8VvOanqQQ",17:"B4f8YQfcg3WWl5k9pAnqVCfm",10:"cfNKknbTZxcxhNZCV2fWr4Ne",49:"ziBY1mSHWj9UTGcq9Tbzo5J4",22:"ImlLSALVeaqvi7y2e6qdBDkw",13:"NUx9OmJMlzbkv39hUX5FOnXv",15:"RxDq1opgeO5VXEQRPtdESHaX",24:"aswJxUjNpHyiEunaOUBGbajK",5:"1M1EIJhXdwEoJ8utYTDjj0DD",6:"gExvCBm9TEaw4jV6kRzEuDxq",21:"wNOOjIhadhe2s1jgq3LppWm0"},billboard:{4:"NO39pgf3BaqIgRZoZ5SvYMXf",16:"dr2IuY7Yb8POz9tbezoJUFey",1:"WhhFn8GL9nBEK2z9psbtD1SV",31:"JNfSIPKKAkfNgzkg3hrGlGEV",23:"xvsrS9J4xrRGjlus3pKkIatI",14:"4BL4a74RRMoiRu9D8jKAfdij",37:"f8B8j7tjb1YA6lAcnHSRBlfI",30:"vW1ODUqFt2jDk5laYsVh9PIF",47:"R7GldiHZEWYFwdJq936YnbZW",18:"83noJ3tAhRyFWDlS1iXKuRGa",50:"WNu1woAb2OHf3KncItSAnYnm",3:"Ydwhf5DPoJBinldgPdkD9okm",19:"3X7dNFFm484Xx6aD6nBF0k43",20:"qzLmNwSljh25A7s9HXQYVYtr",8:"tXWpZaKO291ytd8kfiy3NWlz",11:"0ePnxLUMZ8tKBxImFp2i1J4g",12:"Y1HuzbhxRv1UmUhd8dUtONQI",17:"lqSabVDWqYWy8jpJH57BK1vS",10:"zVEWUpJuNfEipDrTPGwniMP3",49:"B2srINo0hBkijyowlq4FQk7c",22:"Ljcylng1YDm5yAqEpiomGazZ",13:"hYTGyFgCiCUVtNOx56TkKexo",15:"5xkx65Y9eEhPen8gqIuOFQRZ",24:"ZH3Odxmz8QF49ZoZ16mPs08T",5:"Ax2noHPv7iRdW6DM26NxmtFT",6:"mZEu6Z0wDTq4UAHQoyUosm5y",21:"7bAgpwCip0dSf6bJXgBO6nY1"}},M=[];function R(e,t){var i,n,r;return(null===(n=null===(i=null==t?void 0:t.meta)||void 0===i?void 0:i.advertiserDomains)||void 0===n?void 0:n.length)>0&&(null===(r=null==t?void 0:t.meta)||void 0===r?void 0:r.advertiserDomains.find((function(e){return function(e){return M.includes(e)||M.includes("www."+e)||e.includes("game")}(e)})))?0:e}var L=function(){return L=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},L.apply(this,arguments)},O=function(e,t,i){if(i||2===arguments.length)for(var n,r=0,a=t.length;r<a;r++)!n&&r in t||(n||(n=Array.prototype.slice.call(t,0,r)),n[r]=t[r]);return e.concat(n||Array.prototype.slice.call(t))},G=parseInt(y("site_id"),10)||0,U="desktop";b()&&(U="mobile"),k()&&(U="tablet");var Z="rewarded",q="video",Q={"728x90":"/21682198607/"+U+"_ingame_728x90/"+G+"_"+U+"_ingame_728x90","300x250":"/21682198607/"+U+"_ingame_300x250/"+G+"_"+U+"_ingame_300x250","970x250":"/21682198607/"+U+"_ingame_970x250/"+G+"_"+U+"_ingame_970x250","160x600":"/21682198607/"+U+"_ingame_160x600/"+G+"_"+U+"_ingame_160x600","320x50":"/21682198607/"+U+"_ingame_320x50/"+G+"_"+U+"_ingame_320x50","728x90_external":"/21682198607/external_"+U+"_display_ingame/external_"+U+"_ingame_728x90","300x250_external":"/21682198607/external_"+U+"_display_ingame/external_"+U+"_ingame_300x250","970x250_external":"/21682198607/external_"+U+"_display_ingame/external_"+U+"_ingame_970x250","160x600_external":"/21682198607/external_"+U+"_display_ingame/external_"+U+"_ingame_160x600","320x50_external":"/21682198607/external_"+U+"_display_ingame/external_"+U+"_ingame_320x50"},K=!1,N=function(e,t,i){if(De.prebidAvailable){K=!0;var n=["US","CA","AU"],r=function(e){var i,r=w()||b()||k()?["video/mp4","application/javascript"]:["video/mp4","video/webm","video/ogg","application/javascript"],a=L(L({mimes:r,minduration:0,maxduration:15,protocols:[2,3,5,6,7,8],w:640,h:480,placement:1,linearity:1},e?{}:{skip:1,skipafter:5}),{boxingallowed:1,pos:1,api:[2]});return{bids:O(O([{bidder:"appnexus",params:{placementId:13184250,supplyType:"web"}},{bidder:"openx",params:{delDomain:"poki-d.openx.net",unit:"540105196"}},{bidder:"spotx",params:{channel_id:"265590",ad_unit:"instream",secure:!0,hide_skin:!0}},{bidder:"ix",params:{siteId:"436284",video:{}}},{bidder:"richaudience",params:{pid:(i=G,I[i]||"MP_gIE1VDieUi"),supplyType:"site"}},{bidder:"onetag",params:{pubId:"6da09f566a9dc06"}},{bidder:"rubicon",params:{accountId:"18608",siteId:"266914",zoneId:"1322034",position:"atf",video:{size_id:204}}},{bidder:"pubmatic",params:{publisherId:"156838",adSlot:"3607869@640x360"}}],n.includes(t)?[{bidder:"33across",params:{siteId:"aRJKVCig8r7ikZaKj0P0Le",productId:"instream"}}]:[],!0),[{bidder:"sharethrough",params:{pkey:"vRjLnZDA86biUVrjIKVGxq3x"}},{bidder:"triplelift",params:{inventoryCode:"Poki_Instream_Prebid",video:L({},a)}}],!1),mediaTypes:{video:L({context:"instream",playerSize:[640,480]},a)}}},a=r(!0),o=r(!1),s=[{code:q,mediaTypes:o.mediaTypes,bids:O([],o.bids,!0)},{code:Z,mediaTypes:a.mediaTypes,bids:O([],a.bids,!0)},{code:Q["728x90"],mediaTypes:{banner:{sizes:[[728,90]]}},bids:O(O([{bidder:"appnexus",params:{placementId:"12940427"}},{bidder:"openx",params:{unit:"539859872",delDomain:"poki-d.openx.net"}},{bidder:"ix",params:{siteId:"268177",size:[728,90]}},{bidder:"pubmatic",params:{publisherId:"156838",adSlot:"1374895@728x90"}},{bidder:"rubicon",params:{accountId:"18608",siteId:"204596",zoneId:"1008080"}},{bidder:"onetag",params:{pubId:"6da09f566a9dc06"}},{bidder:"richaudience",params:{pid:"1V6a2fgLvX",supplyType:"site"}}],n.includes(t)?[{bidder:"33across",params:{siteId:"aRJKVCig8r7ikZaKj0P0Le",productId:"siab"}}]:[],!0),[{bidder:"sharethrough",params:{pkey:z.leaderboard[G]||z.leaderboard[3]}},{bidder:"triplelift",params:{inventoryCode:"Poki_HDX_Prebid"}}],!1)},{code:Q["300x250"],mediaTypes:{banner:{sizes:[[300,250]]}},bids:O(O([{bidder:"appnexus",params:{placementId:"12935252"}},{bidder:"openx",params:{unit:"539859873",delDomain:"poki-d.openx.net"}},{bidder:"ix",params:{siteId:"268178",size:[300,250]}},{bidder:"pubmatic",params:{publisherId:"156838",adSlot:"1374896@300x250"}},{bidder:"rubicon",params:{accountId:"18608",siteId:"204596",zoneId:"1008080"}},{bidder:"onetag",params:{pubId:"6da09f566a9dc06"}},{bidder:"richaudience",params:{pid:"pKqNt5LyvF",supplyType:"site"}}],n.includes(t)?[{bidder:"33across",params:{siteId:"aRJKVCig8r7ikZaKj0P0Le",productId:"siab"}}]:[],!0),[{bidder:"sharethrough",params:{pkey:z.skyscraper[G]||z.skyscraper[3]}},{bidder:"triplelift",params:{inventoryCode:"Poki_300x250_Prebid"}}],!1)},{code:Q["970x250"],mediaTypes:{banner:{sizes:[[970,250]]}},bids:O(O([{bidder:"appnexus",params:{placementId:"20595278"}},{bidder:"openx",params:{unit:"543540497",delDomain:"poki-d.openx.net"}},{bidder:"ix",params:{siteId:"597527",size:[970,250]}},{bidder:"pubmatic",params:{publisherId:"156838",adSlot:"3344351@970x250"}},{bidder:"onetag",params:{pubId:"6da09f566a9dc06"}},{bidder:"richaudience",params:{pid:"yYyae7vnIh",supplyType:"site"}}],n.includes(t)?[{bidder:"33across",params:{siteId:"aRJKVCig8r7ikZaKj0P0Le",productId:"siab"}}]:[],!0),[{bidder:"sharethrough",params:{pkey:z.rectangle[G]||z.rectangle[3]}},{bidder:"triplelift",params:{inventoryCode:"Poki_970x250_Prebid"}}],!1)},{code:Q["160x600"],mediaTypes:{banner:{sizes:[[160,600]]}},bids:O(O([{bidder:"appnexus",params:{placementId:"12940425"}},{bidder:"openx",params:{unit:"539859871",delDomain:"poki-d.openx.net"}},{bidder:"ix",params:{siteId:"268175",size:[160,600]}},{bidder:"pubmatic",params:{publisherId:"156838",adSlot:"1374893@160x600"}},{bidder:"rubicon",params:{accountId:"18608",siteId:"204596",zoneId:"1008080"}},{bidder:"onetag",params:{pubId:"6da09f566a9dc06"}},{bidder:"richaudience",params:{pid:"rAEnPimPzC",supplyType:"site"}}],n.includes(t)?[{bidder:"33across",params:{siteId:"aRJKVCig8r7ikZaKj0P0Le",productId:"siab"}}]:[],!0),[{bidder:"sharethrough",params:{pkey:z.billboard[G]||z.billboard[3]}},{bidder:"triplelift",params:{inventoryCode:"Poki_HDX_Prebid"}}],!1)},{code:Q["320x50"],mediaTypes:{banner:{sizes:[[320,50]]}},bids:O(O([{bidder:"appnexus",params:{placementId:"20595224"}},{bidder:"openx",params:{unit:"543540495",delDomain:"poki-d.openx.net"}},{bidder:"ix",params:{siteId:"597529",size:[320,50]}},{bidder:"pubmatic",params:{publisherId:"156838",adSlot:"3344350@320x50"}},{bidder:"rubicon",params:{accountId:"18608",siteId:"204596",zoneId:"1008080"}},{bidder:"onetag",params:{pubId:"6da09f566a9dc06"}},{bidder:"richaudience",params:{pid:"1DP5EtcOip",supplyType:"site"}}],n.includes(t)?[{bidder:"33across",params:{siteId:"aRJKVCig8r7ikZaKj0P0Le",productId:"siab"}}]:[],!0),[{bidder:"sharethrough",params:{pkey:z.skyscraper[G]||z.skyscraper[3]}},{bidder:"triplelift",params:{inventoryCode:"Poki_HDX_Prebid"}}],!1)},{code:Q["728x90_external"],mediaTypes:{banner:{sizes:[[728,90]]}},bids:O(O([{bidder:"appnexus",params:{placementId:"20973406"}},{bidder:"openx",params:{unit:"543885656",delDomain:"poki-d.openx.net"}},{bidder:"ix",params:{siteId:"268177",placementId:"625562",size:[728,90]}},{bidder:"pubmatic",params:{publisherId:"156838",adSlot:"3457872"}},{bidder:"rubicon",params:{accountId:"18608",siteId:"362566",zoneId:"1962680-2"}},{bidder:"onetag",params:{pubId:"6da09f566a9dc06"}},{bidder:"richaudience",params:{pid:"MP_gIE1VDieUi",supplyType:"site"}}],n.includes(t)?[{bidder:"33across",params:{siteId:"aRJKVCig8r7ikZaKj0P0Le",productId:"siab"}}]:[],!0),[{bidder:"sharethrough",params:{pkey:z.billboard[G]||z.billboard[3]}},{bidder:"triplelift",params:{inventoryCode:"Poki_HDX_Prebid"}}],!1)},{code:Q["300x250_external"],mediaTypes:{banner:{sizes:[[300,250]]}},bids:O(O([{bidder:"appnexus",params:{placementId:"20973408"}},{bidder:"openx",params:{unit:"543885657",delDomain:"poki-d.openx.net"}},{bidder:"ix",params:{siteId:"625564",size:[300,250]}},{bidder:"pubmatic",params:{publisherId:"156838",adSlot:"3457874"}},{bidder:"rubicon",params:{accountId:"18608",siteId:"362566",zoneId:"1962680-15"}},{bidder:"onetag",params:{pubId:"6da09f566a9dc06"}},{bidder:"richaudience",params:{pid:"MP_gIE1VDieUi",supplyType:"site"}}],n.includes(t)?[{bidder:"33across",params:{siteId:"aRJKVCig8r7ikZaKj0P0Le",productId:"siab"}}]:[],!0),[{bidder:"sharethrough",params:{pkey:z.mobile_leaderboard[G]||z.mobile_leaderboard[3]}},{bidder:"triplelift",params:{inventoryCode:"Poki_300x250_Prebid"}}],!1)},{code:Q["970x250_external"],mediaTypes:{banner:{sizes:[[970,250]]}},bids:O(O([{bidder:"appnexus",params:{placementId:"20973415"}},{bidder:"openx",params:{unit:"543885650",delDomain:"poki-d.openx.net"}},{bidder:"ix",params:{siteId:"625560",size:[970,250]}},{bidder:"pubmatic",params:{publisherId:"156838",adSlot:"3457879"}},{bidder:"rubicon",params:{accountId:"18608",siteId:"362566",zoneId:"1962680-57"}},{bidder:"onetag",params:{pubId:"6da09f566a9dc06"}},{bidder:"richaudience",params:{pid:"MP_gIE1VDieUi",supplyType:"site"}}],n.includes(t)?[{bidder:"33across",params:{siteId:"aRJKVCig8r7ikZaKj0P0Le",productId:"siab"}}]:[],!0),[{bidder:"sharethrough",params:{pkey:z.leaderboard[G]||z.leaderboard[3]}},{bidder:"triplelift",params:{inventoryCode:"Poki_970x250_Prebid"}}],!1)},{code:Q["160x600_external"],mediaTypes:{banner:{sizes:[[160,600]]}},bids:O(O([{bidder:"appnexus",params:{placementId:"20973407"}},{bidder:"openx",params:{unit:"543885653",delDomain:"poki-d.openx.net"}},{bidder:"ix",params:{siteId:"625563",size:[160,600]}},{bidder:"pubmatic",params:{publisherId:"156838",adSlot:"3457877"}},{bidder:"rubicon",params:{accountId:"18608",siteId:"362566",zoneId:"1962680-9"}},{bidder:"onetag",params:{pubId:"6da09f566a9dc06"}},{bidder:"richaudience",params:{pid:"MP_gIE1VDieUi",supplyType:"site"}}],n.includes(t)?[{bidder:"33across",params:{siteId:"aRJKVCig8r7ikZaKj0P0Le",productId:"siab"}}]:[],!0),[{bidder:"sharethrough",params:{pkey:z.rectangle[G]||z.rectangle[3]}},{bidder:"triplelift",params:{inventoryCode:"Poki_HDX_Prebid"}}],!1)},{code:Q["320x50_external"],mediaTypes:{banner:{sizes:[[320,50]]}},bids:O(O([{bidder:"appnexus",params:{placementId:"20973413"}},{bidder:"openx",params:{unit:"543885649",delDomain:"poki-d.openx.net"}},{bidder:"ix",params:{siteId:"625559",size:[320,50]}},{bidder:"pubmatic",params:{publisherId:"156838",adSlot:"3457875"}},{bidder:"rubicon",params:{accountId:"18608",siteId:"362566",zoneId:"1962680-43"}},{bidder:"onetag",params:{pubId:"6da09f566a9dc06"}},{bidder:"richaudience",params:{pid:"MP_gIE1VDieUi",supplyType:"site"}}],n.includes(t)?[{bidder:"33across",params:{siteId:"aRJKVCig8r7ikZaKj0P0Le",productId:"siab"}}]:[],!0),[{bidder:"sharethrough",params:{pkey:z.mobile_leaderboard[G]||z.mobile_leaderboard[3]}},{bidder:"triplelift",params:{inventoryCode:"Poki_HDX_Prebid"}}],!1)}],d={debug:!1,enableSendAllBids:!0,usePrebidCache:!0,bidderTimeout:1500,priceGranularity:{buckets:[{precision:2,min:.01,max:3,increment:.01},{precision:2,min:3,max:8,increment:.05},{precision:2,min:8,max:20,increment:.5},{precision:2,min:20,max:45,increment:1}]},currency:{adServerCurrency:"EUR",defaultRates:{EUR:{EUR:1,GBP:.86408,USD:1.2212},GBP:{EUR:1.157300249976854,GBP:1,USD:1.4132950652717342},USD:{EUR:.8188666885031116,GBP:.7075663282017687,USD:1}}},cache:{url:"null.html?https://prebid.adnxs.com/pbc/v1/cache"},targetingControls:{allowTargetingKeys:["BIDDER","AD_ID","PRICE_BUCKET","SIZE","DEAL","SOURCE","FORMAT","UUID","CACHE_ID","CACHE_HOST","ADOMAIN"],allowSendAllBidsTargetingKeys:["BIDDER","AD_ID","PRICE_BUCKET","SIZE","DEAL","SOURCE","FORMAT","UUID","CACHE_ID","CACHE_HOST","ADOMAIN"]},userSync:{filterSettings:{all:{bidders:"*",filter:"include"}},syncsPerBidder:1e3,syncDelay:100,userIds:[{name:"pubCommonId",storage:{type:"cookie",name:"poki_pubcid",expires:180}}]}};window.pbjs.que.push((function(){var n=L(L({floors:{data:{currency:"EUR",schema:{fields:["mediaType"]},values:{banner:T(t),video:_(t)}}}},d),e.config);window.pbjs.addAdUnits(function(e,t,i){var n,r;i=i.toUpperCase();var a=null==t?void 0:t[i];if(!a)return e;for(var o=0;o<=e.length;o++)for(var s=e[o],d=a[(null===(n=null==s?void 0:s.mediaTypes)||void 0===n?void 0:n.video)?"video":"display"]||{},A=(null===(r=null==s?void 0:s.bids)||void 0===r?void 0:r.length)-1;A>=0;A--){var c=s.bids[A],l=Math.random();d[c.bidder]&&l>d[c.bidder]&&e[o].bids.splice(A,1)}return e}(e.adUnits||s,i,t)),window.pbjs.setConfig(n),window.pbjs.bidderSettings={appnexus:{bidCpmAdjustment:R},openx:{bidCpmAdjustment:R},spotx:{bidCpmAdjustment:R},ix:{bidCpmAdjustment:R},richaudience:{bidCpmAdjustment:R},onetag:{bidCpmAdjustment:R},rubicon:{bidCpmAdjustment:R},pubmatic:{bidCpmAdjustment:R},"33across":{bidCpmAdjustment:R},sharethrough:{bidCpmAdjustment:R},triplelift:{bidCpmAdjustment:R}}}))}},F=!1;function X(e,t,i,r,a,s,d){var A=s?"nope":t;if(window.pbjs&&window.pbjs.que&&window.pbjs.getConfig){var c,l=v().split("?"),u=encodeURIComponent(l[0]),p=r?Z:q,h=o.getDataAnnotations(),m=0,g=function(){var r,l,g;if(!(--m>0))try{o.dispatchEvent(n.ads.prebidRequested);var f=window.pbjs.adUnits.filter((function(e){return e.code===p}))[0];if("undefined"===f)return void e.requestAd(A);var v=window.pbjs.adServers.dfp.buildVideoUrl({adUnit:f,params:{iu:y("iu",t),sz:"640x360|640x480",output:"vast",cust_params:i,description_url:u}}),b=window.pbjs.getHighestCpmBids(p),k=void 0;b.length>0&&(k=b[0]),window.pbjs.markWinningBidAsUsed({adUnitCode:p}),c&&(v=v.replace("cust_params=","cust_params="+c+"%26")),k&&(null===(l=null===(r=null==k?void 0:k.meta)||void 0===r?void 0:r.advertiserDomains)||void 0===l?void 0:l.length)>0&&o.setDataAnnotations({adDomain:k.meta.advertiserDomains.join(",")});var w=!1;if(s){if(c){var I=function(e){var t=decodeURIComponent(e),i=y("amznbid",t);if(!i)return null;var n=P[i];return n?{bid:n,vast:"null.html?https://aax.amazon-adsystem.com/e/dtb/vast?b="+y("amzniid",t)+"&rnd="+Math.round(1e10*Math.random())+"&pp="+i}:null}(c);I&&(!k||!k.videoCacheKey||k.cpm<I.bid)&&(k={cpm:I.bid,vast:I.vast,bidder:"amazon",videoCacheKey:"amazon"})}if(1!==d&&(!k||!k.videoCacheKey||k.cpm<_(a))){var T=5;"ninja.io"===(null===(g=null===window||void 0===window?void 0:window.location)||void 0===g?void 0:g.hostname)&&(T=function(e){return"US"===e?6.1:S.includes(e)?.5:E.includes(e)?.15:x.includes(e)?.08:C.includes(e)?.03:.02}(a)),k={cpm:T,vast:"null.html?https://api.poki.com/ads/houseads/video/vast"+(""===Be.gameId?"":"?game_id="+Be.gameId),bidder:"poki",videoCacheKey:"poki"}}if(!k||!k.videoCacheKey)return void o.dispatchEvent(1===d?n.ads.video.error:n.ads.completed);switch(k.bidder){case"onetag":v="null.html?https://onetag-sys.com/invocation/?key="+k.videoCacheKey;break;case"rubicon":v="null.html?https://prebid-server.rubiconproject.com/cache?uuid="+k.videoCacheKey;break;case"spotx":v="null.html?https://search.spotxchange.com/ad/vast.html?key="+k.videoCacheKey;break;case"amazon":case"poki":v=k.vast;break;default:v="null.html?https://prebid.adnxs.com/pbc/v1/cache?uuid="+k.videoCacheKey}B({event:"video-ready",size:"640x360v",opportunityId:null==h?void 0:h.opportunityId,adUnitPath:null==h?void 0:h.adUnitPath,p4d_game_id:Be.gameId,p4d_version_id:Be.versionId,bidder:null==k?void 0:k.bidder,bid:null==k?void 0:k.cpm}),w=!0,o.setDataAnnotations({p4d_game_id:Be.gameId,p4d_version_id:Be.versionId,bidder:null==k?void 0:k.bidder,bid:null==k?void 0:k.cpm})}o.setDataAnnotations({vhbOnlyMode:w,adTagUrl:v}),k?o.setDataAnnotations({prebidBidder:null==k?void 0:k.bidder,prebidBid:null==k?void 0:k.cpm}):o.setDataAnnotations({prebidBidder:void 0,prebidBid:void 0}),e.requestAd(v)}catch(t){e.requestAd(A)}};F&&m++,K&&m++,F&&window.apstag.fetchBids({slots:[{slotID:r?"Rewarded":"Midroll",mediaType:"video"}],timeout:1500},(function(e){e.length>0&&(c=e[0].encodedQsParams),g()})),s&&B({event:"video-request",size:"640x360v",opportunityId:null==h?void 0:h.opportunityId,adUnitPath:null==h?void 0:h.adUnitPath,p4d_game_id:Be.gameId,p4d_version_id:Be.versionId}),K&&window.pbjs.que.push((function(){window.pbjs.requestBids({adUnitCodes:[p],bidsBackHandler:function(){g()}})}))}else e.requestAd(A)}function H(){var e,t=(null===(e=null===window||void 0===window?void 0:window.location)||void 0===e?void 0:e.hostname)||"";return"yes"===y("poki-ad-server")||"localhost"!==t&&"game-cdn.poki.com"!==t&&!t.endsWith(".poki-gdn.com")&&("ninja.io"===t?Math.random()<=.5:"venge.io"===t?Math.random()<=.05:"makeitmeme.com"===t)}var V=function(){function e(e,t){void 0===t&&(t={}),this.retries=0,this.running=!1,this.ima=e,this.siteID=t.siteID||3,this.country=t.country||"ZZ",this.usePokiAdserver=H(),this.totalRetries=t.totalRetries||d.waterfallRetries||1,this.timing=t.timing||new c(d.adTiming),o.addEventListener(n.ads.video.error,this.moveThroughWaterfall.bind(this)),o.addEventListener(n.ads.video.loaderError,this.moveThroughWaterfall.bind(this)),o.addEventListener(n.ads.ready,this.timing.stopWaterfallTimer.bind(this.timing)),o.addEventListener(n.ads.started,this.stopWaterfall.bind(this))}return e.prototype.moveThroughWaterfall=function(){if(!1!==this.running){var e=this.totalRetries;if(this.timing.stopWaterfallTimer(),this.retries<e)return this.timing.nextWaterfallTimer(),void this.requestAd();this.running=!1,this.timing.resetWaterfallTimerIdx(),o.dispatchEvent(n.ads.error,{message:"No ads",rewardAllowed:!0})}},e.prototype.cutOffWaterfall=function(){this.ima.tearDown(),this.moveThroughWaterfall()},e.prototype.buildAdUnitPaths=function(e){if(r.debug){var t="/21682198607/debug-video/";return e===n.ads.position.rewarded?[t+"debug-video-rewarded"]:e===n.ads.position.preroll?[t+"debug-video-preroll"]:[t+"debug-video-midroll"]}var i="desktop",a="midroll";b()?i="mobile":k()&&(i="tablet"),e===n.ads.position.rewarded&&(a="rewarded");var o="/21682198607/";return De.GetIsPokiIFrame()?[""+o+i+"_ingame_"+a+"_1/"+this.siteID+"_"+i+"_ingame_"+a+"_1",""+o+i+"_ingame_"+a+"_2/"+this.siteID+"_"+i+"_ingame_"+a+"_2"]:[o+"external_"+i+"_video_1/external_"+i+"_ingame_"+a+"_1",o+"external_"+i+"_video_2/external_"+i+"_ingame_"+a+"_2"]},e.prototype.start=function(e,t){void 0===e&&(e={}),this.running=!0,this.retries=0,this.criteria=e,this.timing.resetWaterfallTimerIdx(),this.rewarded=t===n.ads.position.rewarded,this.adUnitPaths=this.buildAdUnitPaths(t),this.requestAd()},e.prototype.requestAd=function(){this.timing.startWaterfallTimer(this.cutOffWaterfall.bind(this)),this.retries++,this.criteria.waterfall=this.retries;var e=(this.retries-1)%this.adUnitPaths.length,t=this.adUnitPaths[e],i="https://securepubads.g.doubleclick.net/gampad/ads?sz=640x360|640x480&iu="+t+"&ciu_szs&impl=s&gdfp_req=1&env=vp&output=vast&unviewed_position_start=1&url={url}&description_url={descriptionUrl}&correlator={timestamp}";De.consentString&&De.consentString.length>0&&(this.criteria.consent_string=De.consentString);var r=Math.max(document.documentElement.clientWidth||0,window.innerWidth||0)>970;this.criteria.billboards_fit=r?"yes":"no";var a,s,d=function(e){var t=v().split("?"),i=encodeURIComponent(t[0]);return(e=e.split("{descriptionUrl}").join(i)).split("{timestamp}").join((new Date).getTime().toString())}(i)+(a=this.criteria,s="",Object.keys(a).forEach((function(e){if(Object.prototype.hasOwnProperty.call(a,e)){var t=a[e];Array.isArray(t)&&(t=t.join()),s+=e+"="+t+"&"}})),"&cust_params="+(s=encodeURIComponent(s))+"&");De.childDirected&&(d+="&tfcd=1"),De.nonPersonalized&&(d+="&npa=1"),o.setDataAnnotations({adUnitPath:t,adTagUrl:d,waterfall:this.retries}),o.dispatchEvent(n.ads.requested),this.usePokiAdserver?X(this.ima,d,this.criteria,this.rewarded,this.country,!0,this.retries):1===this.retries?X(this.ima,d,this.criteria,this.rewarded,this.country,!1,this.retries):this.ima.requestAd(d)},e.prototype.isRunning=function(){return!0},e.prototype.stopWaterfall=function(){this.running=!1,this.timing.stopWaterfallTimer(),this.timing.resetWaterfallTimerIdx()},e}();const W=V;var J="pokiSdkOverlay",Y="pokiSdkHidden",$="pokiSdkVisible";const ee=function(){function e(e){var t=this;if(this.hideElement=function(e){e.classList.add(Y),e.classList.remove($)},this.showElement=function(e){e.classList.add($),e.classList.remove(Y)},this.progressFaker=new te((function(e){return t.updateProgressBar(e)})),this.progressFaker.queueFakeProgress(10,1e3,n.ads.prebidRequested),this.progressFaker.queueFakeProgress(20,2e3,n.ads.started),this.createElements(e.wrapper),"undefined"!=typeof window&&document){var i=document.createElement("style");i.innerHTML="\n.pokiSdkContainer {\n\toverflow: hidden;\n\tposition: absolute;\n\tleft: 0;\n\ttop: 0;\n\twidth: 100%;\n\theight: 100%;\n\tz-index: 1000;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n}\n\n.pokiSdkContainer.pokiSdkFixed {\n\tposition: fixed;\n}\n\n.pokiSdkContainer.pokiSdkVisible {\n\tdisplay: block;\n}\n\n.pokiSdkContainer.pokiSdkHidden,\n.pokiSdkSpinnerContainer.pokiSdkHidden {\n\tdisplay: none;\n}\n\n.pokiSdkContainer.pokiSdkHidden,\n.pokiSdkSpinnerContainer {\n\tpointer-events: none;\n}\n\n.pokiSdkSpinnerContainer {\n\tz-index: 10;\n\tposition: absolute;\n\ttop: 0;\n\tleft: 0;\n\twidth: 100%;\n\theight: 100%;\n\tbackground: url('https://a.poki.com/images/thumb_anim_2x.gif') 50% 50% no-repeat;\n\tuser-select: none;\n}\n\n.pokiSdkInsideContainer {\n\tbackground: #000;\n\tposition: relative;\n\tz-index: 1;\n\twidth: 100%;\n\theight: 100%;\n\tdisplay: flex;\n\tflex-direction: column;\n\n\topacity: 0;\n\t-webkit-transition: opacity 0.5s ease-in-out;\n\t-moz-transition: opacity 0.5s ease-in-out;\n\t-ms-transition: opacity 0.5s ease-in-out;\n\t-o-transition: opacity 0.5s ease-in-out;\n\ttransition: opacity 0.5s ease-in-out;\n}\n\n.pokiSdkContainer.pokiSdkVisible .pokiSdkInsideContainer {\n\topacity: 1;\n}\n\n.pokiSDKAdContainer, .pokiSdkVideoContainer {\n\tposition: absolute;\n\twidth: 100%;\n\theight: 100%;\n}\n\n.pokiSdkStartAdButton {\n\tposition: absolute;\n\tz-index: 9999;\n\ttop: 0;\n\n\tpadding-top: 10%;\n\twidth: 100%;\n\theight: 100%;\n\ttext-align: center;\n\tcolor: #FFF;\n\n\tfont: 700 15pt 'Arial', sans-serif;\n\tfont-weight: bold;\n\tletter-spacing: 1px;\n\ttransition: 0.1s ease-in-out;\n\tline-height: 1em;\n}\n\n.pokiSdkPauseButton {\n\tcursor:pointer;\n position: absolute;\n top: 50%;\n left: 50%;\n z-index: 1;\n}\n\n.pokiSdkPauseButton:before {\n\tcontent: '';\n\tposition: absolute;\n\twidth: 100px;\n\theight: 100px;\n\tdisplay: block;\n\tborder: 2px solid #fff;\n\tborder-radius: 50%;\n\tuser-select: none;\n\tbackground-color: rgba(0, 0, 0, 0.6);\n\ttransition: background-color 0.5s ease;\n\tanimation: 1s linear infinite pulse;\n}\n\n.pokiSdkPauseButton:after {\n\tcontent: '';\n\tposition: absolute;\n\tdisplay: block;\n\tbox-sizing: border-box;\n\tborder-color: transparent transparent transparent #fff;\n\tborder-style: solid;\n\tborder-width: 26px 0 26px 40px;\n\tpointer-events: none;\n\tanimation: 1s linear infinite pulse;\n\tleft: 6px;\n}\n.pokiSdkPauseButtonBG {\n position: fixed;\n top: 0;\n left: 0;\n display: block;\n content: '';\n background: rgba(0, 43, 80, 0.5);\n width: 100%;\n height: 100%;\n}\n\n.pokiSdkPauseButtonBG:hover{\n\tbackground: rgba(0, 43, 80, 0.7);\n}\n\n@keyframes pulse {\n\t0% {\n\t\ttransform: translate(-50%, -50%) scale(0.95);\n\t}\n\t70% {\n\t\ttransform: translate(-50%, -50%) scale(1.1);\n\t}\n\t100% {\n\t\ttransform: translate(-50%, -50%) scale(0.95);\n\t}\n}\n\n.pokiSdkProgressContainer {\n\tbackground: #B8C7DD;\n\twidth: 100%;\n\theight: 5px;\n\tposition: absolute;\n\tbottom: 0;\n\tz-index: 9999;\n}\n\n.pokiSdkProgressBar {\n\tposition:relative;\n\tbottom:0px;\n\tbackground: #FFDC00;\n\theight: 100%;\n\twidth: 0%;\n\ttransition: width 0.5s;\n\ttransition-timing-function: linear;\n}\n\n.pokiSdkProgressBar.pokiSdkVisible, .pokiSdkPauseButton.pokiSdkVisible, .pokiSdkStartAdButton.pokiSdkVisible {\n\tdisplay: block;\n\tpointer-events: auto;\n}\n\n.pokiSdkProgressBar.pokiSdkHidden, .pokiSdkPauseButton.pokiSdkHidden, .pokiSdkStartAdButton.pokiSdkHidden {\n\tdisplay: none;\n\tpointer-events: none;\n}\n",document.head.appendChild(i)}}return e.prototype.updateProgressBar=function(e){this.progressBar.style.width=e+"%"},e.prototype.setupEvents=function(e){this.internalSDK=e},e.prototype.hide=function(){this.hideElement(this.containerDiv),this.hideElement(this.progressContainer),this.hidePauseButton(),this.hideElement(this.startAdButton),this.containerDiv.classList.remove(J),this.progressBar.style.width="0%",this.progressFaker.reset()},e.prototype.hideSpinner=function(){this.hideElement(this.spinnerContainer)},e.prototype.show=function(){this.containerDiv.classList.add(J),this.showElement(this.containerDiv),this.showElement(this.spinnerContainer),this.showElement(this.progressContainer),this.progressFaker.start()},e.prototype.getVideoBounds=function(){return this.adContainer.getBoundingClientRect()},e.prototype.getAdContainer=function(){return this.adContainer},e.prototype.getVideoContainer=function(){return this.videoContainer},e.prototype.showPauseButton=function(){this.showElement(this.pauseButton),this.internalSDK&&this.pauseButton.addEventListener("click",this.internalSDK.resumeAd.bind(this.internalSDK))},e.prototype.hidePauseButton=function(){this.hideElement(this.pauseButton),this.internalSDK&&this.pauseButton.removeEventListener("click",this.internalSDK.resumeAd.bind(this.internalSDK))},e.prototype.showStartAdButton=function(){this.showElement(this.startAdButton),this.internalSDK&&this.startAdButton.addEventListener("click",this.internalSDK.startAdClicked.bind(this.internalSDK))},e.prototype.hideStartAdButton=function(){this.hideElement(this.startAdButton),this.internalSDK&&this.startAdButton.removeEventListener("click",this.internalSDK.startAdClicked.bind(this.internalSDK))},e.prototype.createElements=function(e){var t=this;this.containerDiv=document.createElement("div"),this.insideContainer=document.createElement("div"),this.pauseButton=document.createElement("div"),this.pauseButtonBG=document.createElement("div"),this.startAdButton=document.createElement("div"),this.progressBar=document.createElement("div"),this.progressContainer=document.createElement("div"),this.spinnerContainer=document.createElement("div"),this.adContainer=document.createElement("div"),this.videoContainer=document.createElement("video"),this.adContainer.id="pokiSDKAdContainer",this.videoContainer.id="pokiSDKVideoContainer",this.containerDiv.className="pokiSdkContainer",this.insideContainer.className="pokiSdkInsideContainer",this.pauseButton.className="pokiSdkPauseButton",this.pauseButtonBG.className="pokiSdkPauseButtonBG",this.pauseButton.appendChild(this.pauseButtonBG),this.startAdButton.className="pokiSdkStartAdButton",this.startAdButton.innerHTML="Tap anywhere to play ad",this.progressBar.className="pokiSdkProgressBar",this.progressContainer.className="pokiSdkProgressContainer",this.spinnerContainer.className="pokiSdkSpinnerContainer",this.adContainer.className="pokiSDKAdContainer",this.videoContainer.className="pokiSdkVideoContainer",this.hide(),this.videoContainer.setAttribute("playsinline","playsinline"),this.videoContainer.setAttribute("muted","muted"),this.containerDiv.appendChild(this.insideContainer),this.containerDiv.appendChild(this.spinnerContainer),this.insideContainer.appendChild(this.progressContainer),this.insideContainer.appendChild(this.videoContainer),this.insideContainer.appendChild(this.adContainer),this.containerDiv.appendChild(this.pauseButton),this.containerDiv.appendChild(this.startAdButton),this.progressContainer.appendChild(this.progressBar);var i=e||null,n=function(){if(i||(i=document.body),i)if(i.appendChild(t.containerDiv),i===document.body)t.containerDiv.classList.add("pokiSdkFixed");else{var e=window.getComputedStyle(i).position;e&&-1!==["absolute","fixed","relative"].indexOf(e)||(i.style.position="relative")}else window.requestAnimationFrame(n)};!i||i instanceof HTMLElement||(i=null),n()},e}();var te=function(){function e(e){var t=this;this.storedQueue=[],this.progressCallback=e,this.reset(),o.addEventListener(n.ads.video.progress,(function(e){var i=100-t.currentProgress,n=e.currentTime/e.duration*i;n<i&&t.progressCallback(t.currentProgress+n)})),this.initializeNoProgressFix()}return e.prototype.queueFakeProgress=function(e,t,i){var n=this;this.storedQueue.push({progressToFake:e,duration:t,stopEvent:i}),o.addEventListener(i,(function(){n.eventWatcher[i]=!0,n.currentProgress=n.startProgress+e,n.startProgress=n.currentProgress,n.progressCallback(n.currentProgress),n.activeQueue.shift(),n.activeQueue.length>0?n.continue():n.pause()}))},e.prototype.fakeProgress=function(e,t,i){this.activeQueue.push({progressToFake:e,duration:t,stopEvent:i}),this.fakeProgressEvents=!0,this.continue()},e.prototype.start=function(){this.activeQueue.length>0||(this.activeQueue=function(e,t,i){if(i||2===arguments.length)for(var n,r=0,a=t.length;r<a;r++)!n&&r in t||(n||(n=Array.prototype.slice.call(t,0,r)),n[r]=t[r]);return e.concat(n||Array.prototype.slice.call(t))}([],this.storedQueue,!0),this.active=!0,this.continue())},e.prototype.continue=function(){this.activeQueue.length>0&&!this.tickInterval&&(this.startTime=Date.now(),this.tickInterval=window.setInterval(this.tick.bind(this),50),this.active=!0)},e.prototype.pause=function(){this.clearInterval()},e.prototype.tick=function(){var e=this.activeQueue[0],t=Date.now()-this.startTime,i=Math.min(t/e.duration,1);this.currentProgress=this.startProgress+e.progressToFake*i,this.fakeProgressEvents&&o.dispatchEvent(n.ads.video.progress,{duration:e.duration/1e3,currentTime:t/1e3}),this.progressCallback(this.currentProgress),(this.eventWatcher[e.stopEvent]||1===i)&&this.pause()},e.prototype.clearInterval=function(){this.tickInterval&&(clearInterval(this.tickInterval),this.tickInterval=0)},e.prototype.initializeNoProgressFix=function(){var e=this;o.addEventListener(n.ads.started,(function(t){e.progressWatcherTimeout=window.setTimeout((function(){if(e.active){var i=100-e.currentProgress,r=1e3*t.duration-1e3;e.fakeProgress(i,r,n.ads.completed)}}),1e3)})),o.addEventListener(n.ads.video.progress,(function(){e.progressWatcherTimeout&&(clearTimeout(e.progressWatcherTimeout),e.progressWatcherTimeout=0)}))},e.prototype.reset=function(){this.eventWatcher={},this.startProgress=0,this.startTime=0,this.currentProgress=0,this.activeQueue=[],this.active=!1,this.fakeProgressEvents=!1,this.clearInterval()},e}(),ie=!0,ne={};function re(){if(document.body&&document.body.appendChild){var e=document.createElement("iframe");if(e.style.display="none",document.body.appendChild(e),e.contentWindow&&(window.pokiKeysChanged=new Map,e.contentWindow.document.open(),e.contentWindow.document.write("<script>\nconst lsKey = 'poki_lsexpire';\nconst lifetime = 1000*60*60*24*30*6;\n\nwindow.addEventListener('storage', function(event) {\n\ttry {\n\t\tconst key = event.key;\n\n\t\t// key is null when localStorage.clear() is called.\n\t\tif (key === null) {\n\t\t\tlocalStorage.removeItem(lsKey);\n\t\t\treturn;\n\t\t}\n\n\t\tif (key === lsKey) return;\n\n\t\tconst updates = JSON.parse(localStorage.getItem(lsKey)) || {};\n\n\t\t// newValue is null when localStorage.removeItem() is called.\n\t\tif (event.newValue === null) {\n\t\t\tdelete updates[key];\n\n\t\t\t// window.parent is the game itself. This code is executed in\n\t\t\t// an iframe without src which makes it the same context as it's parent\n\t\t\t// which makes it save to access the parent's properties.\n\t\t\twindow.parent.pokiKeysChanged.set(key, 'remove');\n\t\t} else {\n\t\t\tupdates[key] = Date.now();\n\t\t\twindow.parent.pokiKeysChanged.set(key, 'set');\n\t\t}\n\t\tlocalStorage.setItem(lsKey, JSON.stringify(updates));\n\t} catch (e) {}\n});\n\nfunction expire() {\n\tconst updates = JSON.parse(localStorage.getItem(lsKey)) || {};\n\tconst expireBefore = Date.now() - lifetime;\n\tvar removed = false;\n\n\tObject.keys(updates).map(function(key) {\n\t\tif (updates[key] < expireBefore) {\n\t\t\tlocalStorage.removeItem(key);\n\t\t\tdelete updates[key];\n\t\t\tremoved = true;\n\t\t}\n\t});\n\n\tif (removed) {\n\t\tlocalStorage.setItem(lsKey, JSON.stringify(updates));\n\t}\n}\n\ntry {\n\texpire();\n} catch (e) {}\n<\/script>"),e.contentWindow.document.close(),!window.location.hostname.endsWith("poki-gdn.com")&&Be.gameId)){var t=document.createElement("iframe");t.style.display="none",t.src="null.html?https://"+Be.gameId+".poki-gdn.com/poki-savegame-store.html",t.onload=function(){if(setInterval((function(){var e=[];window.pokiKeysChanged.forEach((function(t,i){"set"===t?e.push([t,i,localStorage.getItem(i)]):e.push([t,i])})),e.length>0&&(t.contentWindow&&t.contentWindow.postMessage({type:"store",data:e},"*"),window.pokiKeysChanged.clear())}),1e3),!localStorage.getItem("pokiMigrated")){for(var e=[],i=0;i<localStorage.length;i++){var n=localStorage.key(i);e.push(["set",n,localStorage.getItem(n)])}e.length>0&&t.contentWindow&&t.contentWindow.postMessage({type:"store",data:e},"*"),localStorage.setItem("pokiMigrated","1")}},document.body.appendChild(t)}}else document.addEventListener("DOMContentLoaded",re)}var ae=["AT","BE","BG","HR","CY","CZ","DK","EE","FI","FR","DE","GR","HU","IE","IT","LV","LT","LU","MT","NL","PL","PT","RO","SK","SI","ES","SE","IS","LI","NO"],oe=["US"],se=["ZZ"];function de(e){return ae.includes(e)}function Ae(e){return se.includes(e)}var ce=function(e,t,i,n){return new(i||(i=Promise))((function(r,a){function o(e){try{d(n.next(e))}catch(e){a(e)}}function s(e){try{d(n.throw(e))}catch(e){a(e)}}function d(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(o,s)}d((n=n.apply(e,t||[])).next())}))},le=function(e,t){var i,n,r,a,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(i)throw new TypeError("Generator is already executing.");for(;o;)try{if(i=1,n&&(r=2&a[0]?n.return:a[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,a[1])).done)return r;switch(n=0,r&&(a=[2&a[0],r.value]),a[0]){case 0:case 1:r=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,n=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!((r=(r=o.trys).length>0&&r[r.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]<r[3])){o.label=a[1];break}if(6===a[0]&&o.label<r[1]){o.label=r[1],r=a;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(a);break}r[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],n=0}finally{i=r=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}};const ue=function(){function e(e){var t=this;this.bannerTimeout=null,this.allowedToPlayAd=!1,this.runningAd=!1,this.currentWidth=640,this.currentHeight=480,this.currentRequestIsMuted=!1,this.volume=1,this.canWeAutoPlayWithSound=function(){return ce(t,void 0,void 0,(function(){return le(this,(function(e){switch(e.label){case 0:if(!this.blankVideo)return[2,!1];e.label=1;case 1:return e.trys.push([1,3,,4]),[4,this.blankVideo.play()];case 2:return e.sent(),[2,!0];case 3:return e.sent(),[2,!1];case 4:return[2]}}))}))},this.videoElement=document.getElementById("pokiSDKVideoContainer"),this.adsManager=null,this.volume=e,this.initAdDisplayContainer(),this.initBlankVideo(),this.initAdsLoader()}return e.prototype.initAdDisplayContainer=function(){this.adDisplayContainer||window.google&&(this.adDisplayContainer=new google.ima.AdDisplayContainer(document.getElementById("pokiSDKAdContainer"),this.videoElement))},e.prototype.initBlankVideo=function(){this.blankVideo=document.createElement("video"),this.blankVideo.setAttribute("playsinline","playsinline");var e=document.createElement("source");e.src="data:video/mp4;base64, AAAAHGZ0eXBNNFYgAAACAGlzb21pc28yYXZjMQAAAAhmcmVlAAAGF21kYXTeBAAAbGliZmFhYyAxLjI4AABCAJMgBDIARwAAArEGBf//rdxF6b3m2Ui3lizYINkj7u94MjY0IC0gY29yZSAxNDIgcjIgOTU2YzhkOCAtIEguMjY0L01QRUctNCBBVkMgY29kZWMgLSBDb3B5bGVmdCAyMDAzLTIwMTQgLSBodHRwOi8vd3d3LnZpZGVvbGFuLm9yZy94MjY0Lmh0bWwgLSBvcHRpb25zOiBjYWJhYz0wIHJlZj0zIGRlYmxvY2s9MTowOjAgYW5hbHlzZT0weDE6MHgxMTEgbWU9aGV4IHN1Ym1lPTcgcHN5PTEgcHN5X3JkPTEuMDA6MC4wMCBtaXhlZF9yZWY9MSBtZV9yYW5nZT0xNiBjaHJvbWFfbWU9MSB0cmVsbGlzPTEgOHg4ZGN0PTAgY3FtPTAgZGVhZHpvbmU9MjEsMTEgZmFzdF9wc2tpcD0xIGNocm9tYV9xcF9vZmZzZXQ9LTIgdGhyZWFkcz02IGxvb2thaGVhZF90aHJlYWRzPTEgc2xpY2VkX3RocmVhZHM9MCBucj0wIGRlY2ltYXRlPTEgaW50ZXJsYWNlZD0wIGJsdXJheV9jb21wYXQ9MCBjb25zdHJhaW5lZF9pbnRyYT0wIGJmcmFtZXM9MCB3ZWlnaHRwPTAga2V5aW50PTI1MCBrZXlpbnRfbWluPTI1IHNjZW5lY3V0PTQwIGludHJhX3JlZnJlc2g9MCByY19sb29rYWhlYWQ9NDAgcmM9Y3JmIG1idHJlZT0xIGNyZj0yMy4wIHFjb21wPTAuNjAgcXBtaW49MCBxcG1heD02OSBxcHN0ZXA9NCB2YnZfbWF4cmF0ZT03NjggdmJ2X2J1ZnNpemU9MzAwMCBjcmZfbWF4PTAuMCBuYWxfaHJkPW5vbmUgZmlsbGVyPTAgaXBfcmF0aW89MS40MCBhcT0xOjEuMDAAgAAAAFZliIQL8mKAAKvMnJycnJycnJycnXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXiEASZACGQAjgCEASZACGQAjgAAAAAdBmjgX4GSAIQBJkAIZACOAAAAAB0GaVAX4GSAhAEmQAhkAI4AhAEmQAhkAI4AAAAAGQZpgL8DJIQBJkAIZACOAIQBJkAIZACOAAAAABkGagC/AySEASZACGQAjgAAAAAZBmqAvwMkhAEmQAhkAI4AhAEmQAhkAI4AAAAAGQZrAL8DJIQBJkAIZACOAAAAABkGa4C/AySEASZACGQAjgCEASZACGQAjgAAAAAZBmwAvwMkhAEmQAhkAI4AAAAAGQZsgL8DJIQBJkAIZACOAIQBJkAIZACOAAAAABkGbQC/AySEASZACGQAjgCEASZACGQAjgAAAAAZBm2AvwMkhAEmQAhkAI4AAAAAGQZuAL8DJIQBJkAIZACOAIQBJkAIZACOAAAAABkGboC/AySEASZACGQAjgAAAAAZBm8AvwMkhAEmQAhkAI4AhAEmQAhkAI4AAAAAGQZvgL8DJIQBJkAIZACOAAAAABkGaAC/AySEASZACGQAjgCEASZACGQAjgAAAAAZBmiAvwMkhAEmQAhkAI4AhAEmQAhkAI4AAAAAGQZpAL8DJIQBJkAIZACOAAAAABkGaYC/AySEASZACGQAjgCEASZACGQAjgAAAAAZBmoAvwMkhAEmQAhkAI4AAAAAGQZqgL8DJIQBJkAIZACOAIQBJkAIZACOAAAAABkGawC/AySEASZACGQAjgAAAAAZBmuAvwMkhAEmQAhkAI4AhAEmQAhkAI4AAAAAGQZsAL8DJIQBJkAIZACOAAAAABkGbIC/AySEASZACGQAjgCEASZACGQAjgAAAAAZBm0AvwMkhAEmQAhkAI4AhAEmQAhkAI4AAAAAGQZtgL8DJIQBJkAIZACOAAAAABkGbgCvAySEASZACGQAjgCEASZACGQAjgAAAAAZBm6AnwMkhAEmQAhkAI4AhAEmQAhkAI4AhAEmQAhkAI4AhAEmQAhkAI4AAAAhubW9vdgAAAGxtdmhkAAAAAAAAAAAAAAAAAAAD6AAABDcAAQAAAQAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAzB0cmFrAAAAXHRraGQAAAADAAAAAAAAAAAAAAABAAAAAAAAA+kAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAABAAAAAALAAAACQAAAAAAAkZWR0cwAAABxlbHN0AAAAAAAAAAEAAAPpAAAAAAABAAAAAAKobWRpYQAAACBtZGhkAAAAAAAAAAAAAAAAAAB1MAAAdU5VxAAAAAAALWhkbHIAAAAAAAAAAHZpZGUAAAAAAAAAAAAAAABWaWRlb0hhbmRsZXIAAAACU21pbmYAAAAUdm1oZAAAAAEAAAAAAAAAAAAAACRkaW5mAAAAHGRyZWYAAAAAAAAAAQAAAAx1cmwgAAAAAQAAAhNzdGJsAAAAr3N0c2QAAAAAAAAAAQAAAJ9hdmMxAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAALAAkABIAAAASAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGP//AAAALWF2Y0MBQsAN/+EAFWdCwA3ZAsTsBEAAAPpAADqYA8UKkgEABWjLg8sgAAAAHHV1aWRraEDyXyRPxbo5pRvPAyPzAAAAAAAAABhzdHRzAAAAAAAAAAEAAAAeAAAD6QAAABRzdHNzAAAAAAAAAAEAAAABAAAAHHN0c2MAAAAAAAAAAQAAAAEAAAABAAAAAQAAAIxzdHN6AAAAAAAAAAAAAAAeAAADDwAAAAsAAAALAAAACgAAAAoAAAAKAAAACgAAAAoAAAAKAAAACgAAAAoAAAAKAAAACgAAAAoAAAAKAAAACgAAAAoAAAAKAAAACgAAAAoAAAAKAAAACgAAAAoAAAAKAAAACgAAAAoAAAAKAAAACgAAAAoAAAAKAAAAiHN0Y28AAAAAAAAAHgAAAEYAAANnAAADewAAA5gAAAO0AAADxwAAA+MAAAP2AAAEEgAABCUAAARBAAAEXQAABHAAAASMAAAEnwAABLsAAATOAAAE6gAABQYAAAUZAAAFNQAABUgAAAVkAAAFdwAABZMAAAWmAAAFwgAABd4AAAXxAAAGDQAABGh0cmFrAAAAXHRraGQAAAADAAAAAAAAAAAAAAACAAAAAAAABDcAAAAAAAAAAAAAAAEBAAAAAAEAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAkZWR0cwAAABxlbHN0AAAAAAAAAAEAAAQkAAADcAABAAAAAAPgbWRpYQAAACBtZGhkAAAAAAAAAAAAAAAAAAC7gAAAykBVxAAAAAAALWhkbHIAAAAAAAAAAHNvdW4AAAAAAAAAAAAAAABTb3VuZEhhbmRsZXIAAAADi21pbmYAAAAQc21oZAAAAAAAAAAAAAAAJGRpbmYAAAAcZHJlZgAAAAAAAAABAAAADHVybCAAAAABAAADT3N0YmwAAABnc3RzZAAAAAAAAAABAAAAV21wNGEAAAAAAAAAAQAAAAAAAAAAAAIAEAAAAAC7gAAAAAAAM2VzZHMAAAAAA4CAgCIAAgAEgICAFEAVBbjYAAu4AAAADcoFgICAAhGQBoCAgAECAAAAIHN0dHMAAAAAAAAAAgAAADIAAAQAAAAAAQAAAkAAAAFUc3RzYwAAAAAAAAAbAAAAAQAAAAEAAAABAAAAAgAAAAIAAAABAAAAAwAAAAEAAAABAAAABAAAAAIAAAABAAAABgAAAAEAAAABAAAABwAAAAIAAAABAAAACAAAAAEAAAABAAAACQAAAAIAAAABAAAACgAAAAEAAAABAAAACwAAAAIAAAABAAAADQAAAAEAAAABAAAADgAAAAIAAAABAAAADwAAAAEAAAABAAAAEAAAAAIAAAABAAAAEQAAAAEAAAABAAAAEgAAAAIAAAABAAAAFAAAAAEAAAABAAAAFQAAAAIAAAABAAAAFgAAAAEAAAABAAAAFwAAAAIAAAABAAAAGAAAAAEAAAABAAAAGQAAAAIAAAABAAAAGgAAAAEAAAABAAAAGwAAAAIAAAABAAAAHQAAAAEAAAABAAAAHgAAAAIAAAABAAAAHwAAAAQAAAABAAAA4HN0c3oAAAAAAAAAAAAAADMAAAAaAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAACMc3RjbwAAAAAAAAAfAAAALAAAA1UAAANyAAADhgAAA6IAAAO+AAAD0QAAA+0AAAQAAAAEHAAABC8AAARLAAAEZwAABHoAAASWAAAEqQAABMUAAATYAAAE9AAABRAAAAUjAAAFPwAABVIAAAVuAAAFgQAABZ0AAAWwAAAFzAAABegAAAX7AAAGFwAAAGJ1ZHRhAAAAWm1ldGEAAAAAAAAAIWhkbHIAAAAAAAAAAG1kaXJhcHBsAAAAAAAAAAAAAAAALWlsc3QAAAAlqXRvbwAAAB1kYXRhAAAAAQAAAABMYXZmNTUuMzMuMTAw",this.blankVideo.appendChild(e)},e.prototype.initAdsLoader=function(){var e=this;this.adsLoader||window.google&&(this.adsLoader=new google.ima.AdsLoader(this.adDisplayContainer),this.adsLoader.getSettings().setVpaidMode(google.ima.ImaSdkSettings.VpaidMode.INSECURE),this.adsLoader.getSettings().setDisableCustomPlaybackForIOS10Plus(!0),this.adsLoader.addEventListener(google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,this.onAdsManagerLoaded,!1,this),this.adsLoader.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,this.onAdLoaderError,!1,this),this.videoElement.addEventListener("onended",(function(){return e.adsLoader.contentComplete()})))},e.prototype.requestAd=function(e){return ce(this,void 0,void 0,(function(){var t;return this.runningAd=!0,this.runningAd;return le(this,(function(i){switch(i.label){case 0:return this.runningAd?[2]:(this.runningAd=!0,this.adDisplayContainer.initialize(),this.videoElement.src="",(t=new google.ima.AdsRequest).adTagUrl=e,t.linearAdSlotWidth=this.currentWidth,t.linearAdSlotHeight=this.currentHeight,t.nonLinearAdSlotWidth=this.currentWidth,t.nonLinearAdSlotHeight=this.currentHeight,t.forceNonLinearFullSlot=!0,[4,this.canWeAutoPlayWithSound()]);case 1:return i.sent()?(t.setAdWillPlayMuted(!1),this.currentRequestIsMuted=!1):(t.setAdWillPlayMuted(!0),this.currentRequestIsMuted=!0),this.allowedToPlayAd=!0,this.adsLoader.requestAds(t),[2]}}))}))},e.prototype.resize=function(e,t,i){void 0===i&&(i=google.ima.ViewMode.NORMAL),this.currentWidth=e,this.currentHeight=t,this.adsManager&&this.adsManager.resize(e,t,i)},e.prototype.onAdsManagerLoaded=function(e){var t=new google.ima.AdsRenderingSettings;t.enablePreloading=!0,t.restoreCustomPlaybackStateOnAdBreakComplete=!0,t.mimeTypes=w()||b()||k()?["video/mp4"]:["video/mp4","video/webm","video/ogg"],t.loadVideoTimeout=8e3,this.adsManager=e.getAdsManager(this.videoElement,t),this.adsManager.setVolume(Math.max(0,Math.min(1,this.volume))),this.currentRequestIsMuted&&this.adsManager.setVolume(0),this.allowedToPlayAd?(this.attachAdEvents(),o.dispatchEvent(n.ads.ready)):this.tearDown()},e.prototype.setVolume=function(e){this.volume=e,this.adsManager&&this.adsManager.setVolume(Math.max(0,Math.min(1,this.volume)))},e.prototype.startPlayback=function(){try{this.adsManager.init(this.currentWidth,this.currentHeight,google.ima.ViewMode.NORMAL),this.adsManager.start()}catch(e){this.videoElement.play()}},e.prototype.startIOSPlayback=function(){this.adsManager.start()},e.prototype.stopPlayback=function(){o.dispatchEvent(n.ads.stopped),this.tearDown()},e.prototype.resumeAd=function(){o.dispatchEvent(n.ads.video.resumed),this.adsManager&&this.adsManager.resume()},e.prototype.tearDown=function(){this.adsManager&&(this.adsManager.stop(),this.adsManager.destroy(),this.adsManager=null),null!==this.bannerTimeout&&(clearTimeout(this.bannerTimeout),this.bannerTimeout=null),this.adsLoader&&(this.adsLoader.contentComplete(),this.adsLoader.destroy(),this.adsLoader=null,this.initAdsLoader()),this.runningAd=!1},e.prototype.attachAdEvents=function(){var e=this,t=google.ima.AdEvent.Type;this.adsManager.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,this.onAdError,!1,this),[t.AD_PROGRESS,t.ALL_ADS_COMPLETED,t.CLICK,t.COMPLETE,t.IMPRESSION,t.PAUSED,t.SKIPPED,t.STARTED,t.USER_CLOSE,t.AD_BUFFERING].forEach((function(t){e.adsManager.addEventListener(t,e.onAdEvent,!1,e)}))},e.prototype.onAdEvent=function(e){var t=this,i=e.getAd();switch(e.type){case google.ima.AdEvent.Type.AD_PROGRESS:o.dispatchEvent(n.ads.video.progress,e.getAdData());break;case google.ima.AdEvent.Type.STARTED:e.remainingTime=this.adsManager.getRemainingTime(),e.remainingTime<=0&&(e.remainingTime=15),i.isLinear()||(this.bannerTimeout=window.setTimeout((function(){o.dispatchEvent(n.ads.completed,{rewardAllowed:!!e.rewardAllowed}),t.tearDown()}),1e3*(e.remainingTime+1))),o.setDataAnnotations({creativeId:i.getCreativeId()}),o.dispatchEvent(n.ads.started,{duration:i.getDuration()});break;case google.ima.AdEvent.Type.COMPLETE:o.dispatchEvent(n.ads.completed,{rewardAllowed:!0}),this.tearDown();break;case google.ima.AdEvent.Type.ALL_ADS_COMPLETED:case google.ima.AdEvent.Type.USER_CLOSE:this.tearDown();break;case google.ima.AdEvent.Type.PAUSED:this.adsManager.pause(),o.dispatchEvent(n.ads.video.paused);break;case google.ima.AdEvent.Type.AD_BUFFERING:o.dispatchEvent(n.ads.video.buffering);break;case google.ima.AdEvent.Type.CLICK:o.dispatchEvent(n.ads.video.clicked);break;case google.ima.AdEvent.Type.SKIPPED:o.dispatchEvent(n.ads.skipped),o.dispatchEvent(n.ads.completed,{rewardAllowed:!0}),document.activeElement&&document.activeElement.blur();break;case google.ima.AdEvent.Type.IMPRESSION:o.dispatchEvent(n.ads.impression)}},e.prototype.onAdLoaderError=function(e){this.tearDown();var t=e.getError&&e.getError().toString()||"Unknown";o.dispatchEvent(n.ads.video.loaderError,{message:t})},e.prototype.onAdError=function(e){this.tearDown();var t=e.getError&&e.getError().toString()||"Unknown";o.dispatchEvent(n.ads.video.error,{message:t})},e.prototype.muteAd=function(){void 0!==this.adsManager&&null!=this.adsManager&&this.adsManager.setVolume(0)},e.prototype.isAdRunning=function(){return this.runningAd},e}(),pe=function(e){return new Promise((function(t,i){var n=document.createElement("script");n.type="text/javascript",n.async=!0,n.src=e;var r=function(){n.readyState&&"loaded"!==n.readyState&&"complete"!==n.readyState||(t(),n.onload=null,n.onreadystatechange=null)};n.onload=r,n.onreadystatechange=r,n.onerror=i,document.head.appendChild(n)}))};var he=function(e,t,i,n){return new(i||(i=Promise))((function(r,a){function o(e){try{d(n.next(e))}catch(e){a(e)}}function s(e){try{d(n.throw(e))}catch(e){a(e)}}function d(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(o,s)}d((n=n.apply(e,t||[])).next())}))},me=function(e,t){var i,n,r,a,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(i)throw new TypeError("Generator is already executing.");for(;o;)try{if(i=1,n&&(r=2&a[0]?n.return:a[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,a[1])).done)return r;switch(n=0,r&&(a=[2&a[0],r.value]),a[0]){case 0:case 1:r=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,n=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!((r=(r=o.trys).length>0&&r[r.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]<r[3])){o.label=a[1];break}if(6===a[0]&&o.label<r[1]){o.label=r[1],r=a;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(a);break}r[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],n=0}finally{i=r=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}};const ge=function(){var e=window.location.pathname;"/"!==e[0]&&(e="/"+e);var t=encodeURIComponent(window.location.protocol+"//"+window.location.host+e+window.location.search),i=encodeURIComponent(document.referrer);return fetch("null.html?https://devs-api.poki.com/gameinfo/@sdk?href="+t+"&referrer="+i,{method:"GET",headers:{"Content-Type":"text/plain"}}).then((function(e){return he(void 0,void 0,void 0,(function(){var t;return me(this,(function(i){switch(i.label){case 0:return e.status>=200&&e.status<400?[4,e.json()]:[3,2];case 1:return(t=i.sent()).game_id?[2,{gameId:t.game_id,adTiming:{preroll:t.ad_settings.preroll,timePerTry:t.ad_settings.time_per_try,timeBetweenAds:t.ad_settings.time_between_ads,startAdsAfter:t.ad_settings.start_ads_after}}]:[2,void 0];case 2:throw e}}))}))})).catch((function(e){return function(e){return he(this,void 0,void 0,(function(){var t,i,n,r,a,o,s,d,A,c,l,u;return me(this,(function(p){switch(p.label){case 0:return p.trys.push([0,3,,4]),"/"!==(t=window.location.pathname)[0]&&(t="/"+t),r=(n=JSON).stringify,c={c:"sdk-p4d-error",ve:7},l={k:"error"},o=(a=JSON).stringify,u={status:e.status},(s=e.json)?[4,e.json()]:[3,2];case 1:s=p.sent(),p.label=2;case 2:if(i=r.apply(n,[(c.d=[(l.v=o.apply(a,[(u.json=s,u.body=JSON.stringify({href:window.location.protocol+"//"+window.location.host+t+window.location.search}),u.name=e.name,u.message=e.message,u)]),l)],c)]),d="null.html?https://t.poki.io/l",navigator.sendBeacon)navigator.sendBeacon(d,i);else try{(A=new XMLHttpRequest).open("POST",d,!0),A.send(i)}catch(e){}return[3,4];case 3:return p.sent(),[3,4];case 4:return[2]}}))}))}(e)}))};function fe(){return function(e,t,i,n){return new(i||(i=Promise))((function(r,a){function o(e){try{d(n.next(e))}catch(e){a(e)}}function s(e){try{d(n.throw(e))}catch(e){a(e)}}function d(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(o,s)}d((n=n.apply(e,t||[])).next())}))}(this,void 0,Promise,(function(){var e,t,i;return function(e,t){var i,n,r,a,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(i)throw new TypeError("Generator is already executing.");for(;o;)try{if(i=1,n&&(r=2&a[0]?n.return:a[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,a[1])).done)return r;switch(n=0,r&&(a=[2&a[0],r.value]),a[0]){case 0:case 1:r=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,n=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!((r=(r=o.trys).length>0&&r[r.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]<r[3])){o.label=a[1];break}if(6===a[0]&&o.label<r[1]){o.label=r[1],r=a;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(a);break}r[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],n=0}finally{i=r=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}(this,(function(n){switch(n.label){case 0:return n.trys.push([0,3,,4]),[4,fetch("null.html?https://geo.poki.io/",{method:"GET",headers:{"Content-Type":"text/plain"}})];case 1:return[4,n.sent().json()];case 2:return e=n.sent(),t=e.ISO,i=e.ccpaApplies,[2,{ISO:t,ccpaApplies:i}];case 3:return n.sent(),[2,{ISO:"ZZ",ccpaApplies:!1}];case 4:return[2]}}))}))}function ve(){var e,t;return function(e,t,i,n){return new(i||(i=Promise))((function(r,a){function o(e){try{d(n.next(e))}catch(e){a(e)}}function s(e){try{d(n.throw(e))}catch(e){a(e)}}function d(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(o,s)}d((n=n.apply(e,t||[])).next())}))}(this,void 0,Promise,(function(){var i,n,r,a;return function(e,t){var i,n,r,a,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(i)throw new TypeError("Generator is already executing.");for(;o;)try{if(i=1,n&&(r=2&a[0]?n.return:a[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,a[1])).done)return r;switch(n=0,r&&(a=[2&a[0],r.value]),a[0]){case 0:case 1:r=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,n=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!((r=(r=o.trys).length>0&&r[r.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]<r[3])){o.label=a[1];break}if(6===a[0]&&o.label<r[1]){o.label=r[1],r=a;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(a);break}r[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],n=0}finally{i=r=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}(this,(function(o){switch(o.label){case 0:if("undefined"==typeof window||"test"===(null===(t=null===(e=null===window||void 0===window?void 0:window.process)||void 0===e?void 0:e.env)||void 0===t?void 0:t.NODE_ENV))return[2,{blocklist:[],countryExclusion:[],bidderLimitation:{}}];o.label=1;case 1:return o.trys.push([1,4,,5]),[4,fetch("null.html?https://api.poki.com/ads/settings",{method:"GET",headers:{"Content-Type":"application/json"}})];case 2:return[4,o.sent().json()];case 3:return i=o.sent(),n=i.blocklist,r=i.country_exclusion,a=i.bidder_limitation,[2,{blocklist:(null==n?void 0:n.split(/[\r\n]+/))||[],countryExclusion:(r.split(",")||[]).map((function(e){return e.toUpperCase()})),bidderLimitation:JSON.parse(a||"{}")}];case 4:return o.sent(),[2,{blocklist:[],countryExclusion:[],bidderLimitation:{}}];case 5:return[2]}}))}))}var be=!1,ke=function(){return function(e,t,i,n){return new(i||(i=Promise))((function(r,a){function o(e){try{d(n.next(e))}catch(e){a(e)}}function s(e){try{d(n.throw(e))}catch(e){a(e)}}function d(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(o,s)}d((n=n.apply(e,t||[])).next())}))}(void 0,void 0,void 0,(function(){var e,t;return function(e,t){var i,n,r,a,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(i)throw new TypeError("Generator is already executing.");for(;o;)try{if(i=1,n&&(r=2&a[0]?n.return:a[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,a[1])).done)return r;switch(n=0,r&&(a=[2&a[0],r.value]),a[0]){case 0:case 1:r=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,n=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!((r=(r=o.trys).length>0&&r[r.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]<r[3])){o.label=a[1];break}if(6===a[0]&&o.label<r[1]){o.label=r[1],r=a;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(a);break}r[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],n=0}finally{i=r=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}(this,(function(i){switch(i.label){case 0:if(be)return[2];i.label=1;case 1:return i.trys.push([1,4,,5]),[4,fetch("./touchControllerConfig.json")];case 2:return[4,i.sent().json()];case 3:return(e=i.sent())&&((t=document.createElement("script")).src="//game-cdn.poki.com/scripts/touchOverlayController.js",t.onload=function(){new window.OverlayController(document.body,e)},document.head.appendChild(t),be=!0),[3,5];case 4:return i.sent(),[3,5];case 5:return[2]}}))}))};const ye=function(){for(var e=Math.floor(Date.now()/1e3),t="",i=0;i<4;i++)t=String.fromCharCode(255&e)+t,e>>=8;if(window.crypto&&crypto.getRandomValues&&Uint32Array){var n=new Uint32Array(12);for(crypto.getRandomValues(n),i=0;i<12;i++)t+=String.fromCharCode(255&n[i])}else for(i=0;i<12;i++)t+=String.fromCharCode(Math.floor(256*Math.random()));return btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")};var we=function(){function e(){this.slotMap=new Map}return e.prototype.waitUntilReady=function(e){window.googletag.cmd.push((function(){De.prebidAvailable?window.pbjs.que.push((function(){e()})):e()}))},e.prototype.enforceChildSafety=function(){googletag.cmd.push((function(){googletag.pubads().setPrivacySettings({underAgeOfConsent:!0,childDirectedTreatment:!0,restrictDataProcessing:!0})}))},e.prototype.setupSlotRenderEndedListener=function(){var e=this;this.waitUntilReady((function(){window.googletag.pubads().addEventListener("slotRenderEnded",(function(t){var i,r,a,o,s=t.slot.getSlotElementId(),d=e.slotMap.get(s);if(d&&d.gptSlot){var A=t.slot||{},c=(null===(i=A.getResponseInformation)||void 0===i?void 0:i.call(A))||{},l=c.isBackfill,u=c.lineItemId,p=c.campaignId,h=function(e){if(!e||"function"!=typeof e.indexOf)return null;if(-1!==e.indexOf("amazon-adsystem.com/aax2/apstag"))return null;var t=new RegExp('(?:(?:pbjs\\.renderAd\\(document,|adId:*|hb_adid":\\[)|(?:pbadid=)|(?:adId=))[\'"](.*?)["\']',"gi"),i=e.replace(/ /g,""),n=t.exec(i);return n&&n[1]||null}(null===(a=(r=A).getHtml)||void 0===a?void 0:a.call(r)),m=!!h,g=d.pbjsTargetting||{},f=g.hb_bidder,v=g.hb_adomain,b=function(e){var t,i={cpm:0};if(void 0===window.pbjs||!De.prebidAvailable)return i;var n=window.pbjs.getAllWinningBids()||[];return((null===(t=window.pbjs.getBidResponsesForAdUnitCode(e))||void 0===t?void 0:t.bids)||[]).forEach((function(e){!n.find((function(t){return t.adId===e.adId}))&&e.cpm>i.cpm&&(i=e)})),i}(d.adUnitPath),k=t.isEmpty,y=parseFloat(g.hb_pb);isNaN(y)&&(y=void 0),Le.track(n.tracking.ads.display.impression,{size:d.size,opportunityId:d.opportunityId,duringGameplay:null===(o=d.duringGameplayFn)||void 0===o?void 0:o.call(d),adUnitPath:d.adUnitPath,prebidBid:y,prebidBidder:f,prebidWon:m,prebidSecondBid:b.cpm>0?b.cpm:void 0,prebidSecondBidder:b.bidder,dfpIsBackfill:l,dfpLineItemId:u,dfpCampaignId:p,isEmpty:k,adDomain:v})}}))}))},e.prototype.validateDisplaySettings=function(e){return!(!(b()||k()||["970x250","300x250","728x90","160x600","320x50"].includes(e))||(b()||k())&&!["320x50"].includes(e))},e.prototype.getDisplaySlotConfig=function(e){var t=e.split("x").map((function(e){return parseInt(e,10)})),i="/21682198607/debug-display/debug-display-"+e,n="desktop";b()&&(n="mobile"),k()&&(n="tablet");var a=parseInt(y("site_id"),10)||0;return r.debug||(i=De.GetIsPokiIFrame()?"/21682198607/"+n+"_ingame_"+e+"/"+a+"_"+n+"_ingame_"+e:"/21682198607/external_"+n+"_display_ingame/external_"+n+"_ingame_"+e),{id:"poki-"+ye(),adUnitPath:i,size:e,width:t[0],height:t[1],refresh:!1}},e.prototype.renderIGDAd=function(e,t,i,n,r){var a=this,o=this.getIGDSlotID(e);o&&this.slotMap.get(o)&&this.clearIGDAd(e);var s=this.getDisplaySlotConfig(t);this.slotMap.set(s.id,s),s.opportunityId=n,s.duringGameplayFn=r;var d=document.createElement("div");d.id=s.id,d.className="poki-ad-slot",d.style.width=s.width+"px",d.style.height=s.height+"px",d.style.overflow="hidden",d.style.position="relative",d.setAttribute("data-poki-ad-size",s.size),e.appendChild(d),e.setAttribute("data-poki-ad-id",s.id),s.intersectionObserver=new window.IntersectionObserver((function(e){var t;e[0].isIntersecting&&(null===(t=s.intersectionObserver)||void 0===t||t.disconnect(),a.waitUntilReady((function(){var e=a.slotMap.get(s.id);e&&e.opportunityId===n&&(a.setupGPT(s,i),a.requestAd(s))})))}),{threshold:1}),s.intersectionObserver.observe(d)},e.prototype.setupGPT=function(e,t){var i;e.gptSlot=window.googletag.defineSlot(e.adUnitPath,[e.width,e.height],e.id).addService(window.googletag.pubads()),window.googletag.enableServices(),null===(i=e.gptSlot)||void 0===i||i.clearTargeting(),Object.keys(t).forEach((function(i){var n;null===(n=e.gptSlot)||void 0===n||n.setTargeting(i,t[i])}))},e.prototype.requestAd=function(e){var t;Le.track(n.tracking.ads.display.requested,{size:e.size,opportunityId:e.opportunityId,adUnitPath:e.adUnitPath,refresh:e.refresh,duringGameplay:null===(t=e.duringGameplayFn)||void 0===t?void 0:t.call(e)});var i=0,r=function(){--i>0||(window.apstag&&window.apstag.setDisplayBids(),De.prebidAvailable&&(window.pbjs.setTargetingForGPTAsync([e.adUnitPath]),e.pbjsTargetting=window.pbjs.getAdserverTargetingForAdUnitCode([e.adUnitPath])),window.googletag.display(e.id))};window.apstag&&i++,De.prebidAvailable&&i++,window.apstag&&window.apstag.fetchBids({slots:[{slotName:e.adUnitPath,slotID:e.id,sizes:[[e.width,e.height]]}],timeout:1500},(function(){r()})),De.prebidAvailable&&window.pbjs.requestBids({adUnitCodes:[e.adUnitPath],bidsBackHandler:function(){r()}}),window.apstag||De.prebidAvailable||r()},e.prototype.clearIGDAd=function(e){var t,i=this.getIGDSlotID(e);if(i){var r=this.slotMap.get(i)||null;if(r){for(Le.track(n.tracking.screen.destroyAd,{opportunityId:r.opportunityId}),null===(t=r.intersectionObserver)||void 0===t||t.disconnect(),r.gptSlot&&googletag.destroySlots([r.gptSlot]);e.lastChild;)e.removeChild(e.lastChild);e.removeAttribute("data-poki-ad-id"),this.slotMap.delete(r.id)}}},e.prototype.getIGDSlotID=function(e){return e&&e.getAttribute("data-poki-ad-id")||null},e}();const Ie=we;var Se,Ee=(Se=function(e,t){return Se=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},Se(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function i(){this.constructor=e}Se(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),xe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ee(t,e),t.prototype.waitUntilReady=function(e){window.pbjs.que.push((function(){e()}))},t.prototype.requestAd=function(e){var t=this;B({event:"request",size:e.size,opportunityId:e.opportunityId,adUnitPath:e.adUnitPath,p4d_game_id:Be.gameId,p4d_version_id:Be.versionId});var i=1,n=function(){--i>0||t.allBidsBack(e.id)};window.apstag&&(i++,window.apstag.fetchBids({slots:[{slotName:e.adUnitPath,slotID:e.id,sizes:[[e.width,e.height]]}],timeout:1500},(function(t){t&&t.length>0&&(e.amznTargetting=t[0]),n()}))),window.pbjs.requestBids({adUnitCodes:[e.adUnitPath],bidsBackHandler:function(){e.pbjsTargetting=window.pbjs.getAdserverTargetingForAdUnitCode([e.adUnitPath]),n()}})},t.prototype.allBidsBack=function(e){var t,i,r,a,o=this.slotMap.get(e);if(o){var s=document.createElement("iframe");s.setAttribute("frameborder","0"),s.setAttribute("scrolling","no"),s.setAttribute("marginheight","0"),s.setAttribute("marginwidth","0"),s.setAttribute("topmargin","0"),s.setAttribute("leftmargin","0"),s.setAttribute("allowtransparency","true"),s.setAttribute("width",""+o.width),s.setAttribute("height",""+o.height);var d=document.getElementById(o.id);if(d){d.appendChild(s);var A=null===(t=null==s?void 0:s.contentWindow)||void 0===t?void 0:t.document;if(!A)return void this.clearIGDAd(d.parentNode);var c=!0,l=o.pbjsTargetting.hb_bidder,u=parseFloat(o.pbjsTargetting.hb_pb);isNaN(u)&&(u=0);var p,h,m=(p=null===(i=null==o?void 0:o.amznTargetting)||void 0===i?void 0:i.amznbid,D[p]||0);m>u?(h=null===(r=null==o?void 0:o.amznTargetting)||void 0===r?void 0:r.amnzp,l=j[h]||"Amazon",u=m,c=!1,this.renderAMZNAd(o.id,d,A)):this.renderPrebidAd(o.id,d,A),Le.track(n.tracking.ads.display.impression,{size:o.size,opportunityId:o.opportunityId,duringGameplay:null===(a=o.duringGameplayFn)||void 0===a?void 0:a.call(o),adUnitPath:o.adUnitPath,prebidBid:u,prebidBidder:l,preBidWon:c,dfpIsBackfill:!1,dfpLineItemId:void 0,dfpCampaignId:void 0,adDomain:o.pbjsTargetting.hb_adomain}),B({event:"impression",size:o.size,opportunityId:o.opportunityId,adUnitPath:o.adUnitPath,p4d_game_id:Be.gameId,p4d_version_id:Be.versionId,bidder:l,bid:u}),o.intersectionObserver=new IntersectionObserver((function(e){e.forEach((function(e){e.isIntersecting?o.intersectingTimer||(o.intersectingTimer=setTimeout((function(){var t;null===(t=o.intersectionObserver)||void 0===t||t.unobserve(e.target),B({event:"viewable",size:o.size,opportunityId:o.opportunityId,adUnitPath:o.adUnitPath,p4d_game_id:Be.gameId,p4d_version_id:Be.versionId,bidder:l,bid:u})}),1e3)):o.intersectingTimer&&(clearTimeout(o.intersectingTimer),o.intersectingTimer=void 0)}))}),{threshold:.5}),o.intersectionObserver.observe(d)}}},t.prototype.renderPrebidAd=function(e,t,i){var n=this.slotMap.get(e);if(n)return n.pbjsTargetting.hb_adid?void window.pbjs.renderAd(i,n.pbjsTargetting.hb_adid):void this.clearIGDAd(t.parentNode)},t.prototype.renderAMZNAd=function(e,t,i){var n,r,a=this.slotMap.get(e);if(a)return(null===(n=null==a?void 0:a.amznTargetting)||void 0===n?void 0:n.amzniid)?void window.apstag.renderImp(i,null===(r=null==a?void 0:a.amznTargetting)||void 0===r?void 0:r.amzniid):void this.clearIGDAd(t.parentNode)},t.prototype.setupGPT=function(e,t){},t.prototype.setupSlotRenderEndedListener=function(){},t}(Ie);const Ce=xe;var Te=function(){return Te=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Te.apply(this,arguments)},_e=function(e,t,i){if(i||2===arguments.length)for(var n,r=0,a=t.length;r<a;r++)!n&&r in t||(n||(n=Array.prototype.slice.call(t,0,r)),n[r]=t[r]);return e.concat(n||Array.prototype.slice.call(t))},Be={gameId:y("game_id"),versionId:y("game_version_id")},Pe=function(){function e(){this.autoStartOnReady=!1,this.criteria={},this.debugIsOverwritten=!1,this.handlers={},this.initializingPromise=null,this.isInitialized=!1,this.programmaticAdsEnabled=!0,this.sdkBooted=!1,this.startAdEnabled=!1,this.startStartAdsAfterTimerOnInit=!1,this.initOptions={},this.installedTCFv2=!1,this.installedUSP=!1,this.isBot=!1,this.adSettings={blocklist:[],countryExclusion:[],bidderLimitation:{}},this.adReady=!1,this.sdkImaError=!1,this.debugTouchOverlayController=!1,this.setPlayerAge=function(e){e&&function(e,t){if(ie)try{localStorage.setItem(e,t)}catch(i){ie=!1,ne[e]=t}else ne[e]=t}("playerAge",e)},this.setLogging=function(e){r.log=e},this.sdkNotBootedButCalled=function(){},this.IGD=H()?new Ce:new Ie;var e=y("pokiDebug");""!==e&&(this.setDebug("true"===e),this.debugIsOverwritten=!0),""!==y("pokiLogging")&&this.setLogging(!0)}return e.prototype.init=function(e){if(void 0===e&&(e={}),"undefined"!=typeof window){var t=e.onReady,i=void 0===t?null:t,n=e.onAdblocked,r=void 0===n?null:n;return this.initOptions=e,i&&this.registerHandler("onReady",i),r&&this.registerHandler("onAdblocked",r),this.isInitialized?void 0:(this.initializingPromise||(this.initializingPromise=this.lazyLoadInit()),this.initializingPromise)}},e.prototype.lazyLoadInit=function(){var t=this,i=this.initOptions,a=i.debug,s=void 0!==a&&a,A=i.prebid,c=void 0===A?{}:A,l=i.a9,u=void 0===l?{}:l,p=i.volume,h=void 0===p?1:p,m=i.waterfallRetries,g=i.wrapper;window.googletag=window.googletag||{cmd:[]},window.pbjs=window.pbjs||{que:[]};var v=parseInt(y("site_id"),10)||0;this.isBot="1"===y("bot"),this.setupDefaultEvents(),Le.setupDefaultEvents(),e.GetIsPokiIFrame()&&re(),setTimeout(f.trackSavegames,1e4);var w=Te({},d),I=ge;r.debug&&(I=function(){return Promise.resolve()});var S=fe,E=y("ccpaApplies"),x=(this.initOptions.country||y("country")).toUpperCase(),C=void 0!==this.initOptions.isCCPA?this.initOptions.isCCPA:""!==E?"1"===E:void 0;x&&void 0!==C&&(S=function(){return Promise.resolve({ISO:x,ccpaApplies:C})}),window.addEventListener("resize",this.resize.bind(this),!1),this.debugIsOverwritten||this.setDebug(r.debug||s),this.debugTouchOverlayController&&(b()||k())&&ke();var T=[I(),S()],_=_e(_e([],T,!0),[ve()],!1);this.isBot||(_.push(pe("null.html?https://imasdk.googleapis.com/js/sdkloader/ima3.js"),pe("null.html?https://securepubads.g.doubleclick.net/tag/js/gpt.js")),(y("url_referrer")||"").includes("kiloo.com")?(e.prebidAvailable=!1,e.childDirected=!0,e.nonPersonalized=!0,this.IGD.enforceChildSafety()):_.push(pe("null.html?https://a.poki.com/prebid/prebid6.12.0.js"),pe("null.html?https://c.amazon-adsystem.com/aax2/apstag.js")));var B=function(e,i,a){void 0===a&&(a=!0),t.country=(x||(null==i?void 0:i.ISO)||"ZZ").toUpperCase(),t.isCCPA=void 0===C?(null==i?void 0:i.ccpaApplies)||!1:C,e&&(Be.gameId||(Be.gameId=e.gameId),["7fb1fd45-24ce-4ade-b5c4-9ee55ec99526"].includes(Be.gameId)&&(b()||k())&&ke(),w.adTiming=e.adTiming,w.customCriteria=Te(Te({},w.customCriteria),{p4d_game_id:Be.gameId})),de(t.country)&&!r.debug&&(function(){if(!window.__tcfapi){var e=window.top,t={};window.__tcfapi=function(i,n,r,a){var o=""+Math.random(),s={__tcfapiCall:{command:i,parameter:a,version:n,callId:o}};t[o]=r,e.postMessage(s,"*")},window.addEventListener("message",(function(e){var i={};try{i="string"==typeof e.data?JSON.parse(e.data):e.data}catch(e){}var n=i.__tcfapiReturn;n&&"function"==typeof t[n.callId]&&(t[n.callId](n.returnValue,n.success),t[n.callId]=null)}),!1)}}(),window.pbjs.que.push((function(){window.pbjs.setConfig({consentManagement:{gdpr:{cmpApi:"iab",timeout:8e3,defaultGdprScope:!0}}})})),window.__tcfapi("ping",2,(function(){t.installedTCFv2=!0,a&&o.dispatchEvent(n.ready)})),setTimeout((function(){t.installedTCFv2||a&&o.dispatchEvent(n.ready)}),2e3)),t.isCCPA&&!r.debug&&(function(){if(!window.__uspapi){var e=window.top,t={};window.__uspapi=function(i,n,r){var a=""+Math.random(),o={__uspapiCall:{command:i,version:n,callId:a}};t[a]=r,e.postMessage(o,"*")},window.addEventListener("message",(function(e){var i=e&&e.data&&e.data.__uspapiReturn;i&&i.callId&&"function"==typeof t[i.callId]&&(t[i.callId](i.returnValue,i.success),t[i.callId]=null)}),!1)}}(),window.pbjs.que.push((function(){window.pbjs.setConfig({consentManagement:{usp:{cmpApi:"iab",timeout:8e3}}})})),window.__uspapi("uspPing",1,(function(){t.installedUSP=!0,a&&o.dispatchEvent(n.ready)})),setTimeout((function(){t.installedUSP||a&&o.dispatchEvent(n.ready)}),2e3))};return Promise.all(_).catch((function(){Promise.all(T).then((function(e){var t=e[0],i=e[1];B(t,i,!1)})),o.dispatchEvent(n.adblocked)})).then((function(e){if(void 0!==e){var i,a=e[0],s=e[1],d=e[2];B(a,s),t.adSettings=d,i=d.blocklist,M=i||[],N(c,t.country,d.bidderLimitation),r.debug&&(w.adTiming.startAdsAfter=0);var A=y("force_ad")||y("gd_force_ad")||!1;A&&(w.adTiming={preroll:!0,timeBetweenAds:12e4,timePerTry:7e3,startAdsAfter:0},w.customCriteria=Te(Te({},w.customCriteria),{force_ad:A})),t.enableSettings(w),t.playerSkin=new ee({wrapper:g}),t.ima=new ue(h),t.playerSkin.setupEvents(t),t.startStartAdsAfterTimerOnInit&&t.adTimings.startStartAdsAfterTimer(),t.waterfall=new W(t.ima,{timing:t.adTimings,totalRetries:m,siteID:v,country:t.country}),t.IGD.setupSlotRenderEndedListener();var l=de(t.country);(function(e,t,i,n){window.apstag&&window.apstag.init(e.settings||L({pubID:"e32f1423-28bc-43ed-8ab0-5ae6b4449cf8",adServer:"googletag",videoAdServer:"GAM"},i?{gdpr:{cmpTimeout:1e4}}:{}),(function(){F=!function(e,t){var i,n;t=t.toUpperCase();var r=null===(n=null===(i=null==e?void 0:e[t])||void 0===i?void 0:i.video)||void 0===n?void 0:n.amazon;return!!r&&Math.random()>r}(n,t),e.callback&&e.callback()}))})(u,t.country,l,d.bidderLimitation),t.isInitialized=!0,t.isCCPA||l?r.debug&&o.dispatchEvent(n.ready):o.dispatchEvent(n.ready)}}))},e.prototype.requestAd=function(e){void 0===e&&(e={});var t=e.autoStart,i=void 0===t||t,a=e.onFinish,d=void 0===a?null:a,A=e.onStart,c=void 0===A?null:A,l=e.position,u=void 0===l?null:l;if(this.autoStartOnReady=!1!==i,d&&this.registerHandler("onFinish",d),c&&this.registerHandler("onStart",c),this.isBot)d&&d({});else{if(!this.sdkBooted)return o.dispatchEvent(n.ads.error,{message:"Requesting ad on unbooted SDK"}),void this.sdkNotBootedButCalled();if(this.sdkImaError)o.dispatchEvent(n.ads.error,{message:"Adblocker has been detected"});else if(!b()&&!k()||u===n.ads.position.rewarded){if(null!==u&&s(u,n.ads.position))if(!de(this.country)||this.installedTCFv2||r.debug)if(!this.isCCPA||this.installedUSP)if(this.ima.isAdRunning()||this.waterfall.isRunning())o.dispatchEvent(n.ads.busy);else if(this.adReady)o.dispatchEvent(n.ads.ready);else if(u!==n.ads.position.preroll||this.adTimings.prerollPossible())if(u===n.ads.position.rewarded||this.adTimings.requestPossible())if(u!==n.ads.position.rewarded&&this.adSettings.countryExclusion.includes(this.country))o.dispatchEvent(n.ads.limit,{reason:n.info.messages.disabled});else{var p=Te(Te(Te({},this.genericCriteria()),this.criteria),{position:u});this.playerSkin.show(),this.resize(),this.waterfall.start(p,u)}else o.dispatchEvent(n.ads.limit,{reason:n.info.messages.timeLimit});else o.dispatchEvent(n.ads.limit,{reason:n.info.messages.prerollLimit});else o.dispatchEvent(n.ads.error,{message:"No USP detected, please contact developersupport@poki.com for more information"});else o.dispatchEvent(n.ads.error,{message:"No TCFv2 CMP detected, please contact developersupport@poki.com for more information"})}else o.dispatchEvent(n.ads.error,{reason:"Interstitials are disabled on mobile"})}},e.prototype.displayAd=function(e,t,i,n){},e.prototype.destroyAd=function(e){if(!this.sdkBooted)return o.dispatchEvent(n.ads.displayError,{message:"Attempting destroyAd on unbooted SDK"}),void this.sdkNotBootedButCalled();this.sdkImaError?o.dispatchEvent(n.ads.displayError,{message:"Adblocker has been detected"}):this.adSettings.countryExclusion.includes(this.country)||(e=e||document.body,this.IGD.clearIGDAd(e))},e.prototype.startStartAdsAfterTimer=function(){this.sdkBooted&&!this.sdkImaError?this.adTimings.startStartAdsAfterTimer():this.startStartAdsAfterTimerOnInit=!0},e.prototype.enableSettings=function(e){this.criteria=Te({},e.customCriteria),this.adTimings=new c(e.adTiming)},e.prototype.togglePlayerAdvertisingConsent=function(e){if(e){var t,i=parseInt(function(e){if(!ie)return ne[e];try{return localStorage.getItem(e)}catch(t){return ne[e]}}("playerAge"),10)||0,n=this.country,r=de(n),a=(t=n,oe.includes(t)),o=Ae(n);(r||a||Ae)&&(r&&i<=12||a&&i<=16||o&&i<=16)?this.disableProgrammatic():this.enableProgrammatic()}else this.disableProgrammatic()},e.prototype.disableProgrammatic=function(){e.childDirected=!0,this.programmaticAdsEnabled=!1},e.prototype.enableProgrammatic=function(){e.childDirected=!1,this.programmaticAdsEnabled=!0},e.prototype.getProgrammaticAdsEnabled=function(){return this.programmaticAdsEnabled},e.prototype.setDebug=function(e){this.debugIsOverwritten?e&&Le.track(n.tracking.debugTrueInProduction):r.debug=e},e.prototype.resize=function(){var e=this;if(!this.sdkBooted)return this.sdkNotBootedButCalled();if(!this.sdkImaError){var t=this.playerSkin.getVideoBounds();0!==t.width&&0!==t.height?this.ima.resize(t.width,t.height):setTimeout((function(){e.resize()}),100)}},e.prototype.startAd=function(){if(!this.sdkBooted)return this.sdkNotBootedButCalled();this.sdkImaError||(this.adReady?(this.resize(),this.ima.startPlayback()):o.dispatchEvent(n.ads.error,{message:"No ads ready to start"}))},e.prototype.startAdClicked=function(){"undefined"!=typeof navigator&&/(iPad|iPhone|iPod)/gi.test(navigator.userAgent)&&this.startAdEnabled&&(this.startAdEnabled=!1,this.playerSkin.hideStartAdButton(),this.ima.startIOSPlayback())},e.prototype.stopAd=function(){if(!this.sdkBooted)return this.sdkNotBootedButCalled();this.sdkImaError||(this.waterfall.stopWaterfall(),this.ima.stopPlayback(),this.playerSkin.hide())},e.prototype.resumeAd=function(){if(!this.sdkBooted)return this.sdkNotBootedButCalled();this.sdkImaError||(this.playerSkin.hidePauseButton(),this.ima.resumeAd())},e.prototype.skipAd=function(){this.stopAd(),this.callHandler("onFinish",{type:n.ads.completed,rewardAllowed:!0})},e.prototype.muteAd=function(){if(!this.sdkBooted)return this.sdkNotBootedButCalled();this.sdkImaError||this.ima.muteAd()},e.prototype.registerHandler=function(e,t){this.handlers[e]=t},e.prototype.callHandler=function(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];"function"==typeof this.handlers[e]&&this.handlers[e](t)},e.prototype.setupDefaultEvents=function(){var e=this;o.addEventListener(n.ready,(function(){e.sdkBooted=!0,e.callHandler("onReady")})),o.addEventListener(n.adblocked,(function(){e.sdkBooted=!0,e.sdkImaError=!0,e.callHandler("onAdblocked")})),o.addEventListener(n.ads.ready,(function(){e.adReady=!0,e.autoStartOnReady&&e.startAd()})),o.addEventListener(n.ads.started,(function(){e.playerSkin.hideSpinner(),e.callHandler("onStart",{type:n.ads.limit})})),o.addEventListener(n.ads.video.paused,(function(){e.playerSkin.showPauseButton()})),o.addEventListener(n.ads.limit,(function(){e.callHandler("onFinish",{type:n.ads.limit,rewardAllowed:!1})})),o.addEventListener(n.ads.stopped,(function(){e.callHandler("onFinish",{type:n.ads.stopped,rewardAllowed:!1})})),o.addEventListener(n.ads.error,(function(t){e.callHandler("onFinish",{type:n.ads.error,rewardAllowed:!!t.rewardAllowed})})),o.addEventListener(n.ads.busy,(function(){e.callHandler("onFinish",{type:n.ads.busy,rewardAllowed:!1})})),o.addEventListener(n.ads.completed,(function(t){e.callHandler("onFinish",{type:n.ads.completed,rewardAllowed:!!t.rewardAllowed})})),[n.ads.limit,n.ads.stopped,n.ads.error,n.ads.busy,n.ads.completed].forEach((function(t){o.addEventListener(t,(function(){e.playerSkin&&e.playerSkin.hide(),e.adReady=!1}))}))},e.prototype.genericCriteria=function(){var e={},t=encodeURIComponent(y("tag")||""),i=encodeURIComponent(y("site_id")||""),n=encodeURIComponent(y("experiment")||""),r=encodeURIComponent(y("categories")||"");return e.tag=t,e.tag_site=t+"|"+i,e.site_id=i,e.experiment=n,e.categories=r,this.programmaticAdsEnabled||(e.disable_programmatic=1),e},e.prototype.setVolume=function(e){this.ima&&this.ima.setVolume(e)},e.GetIsPokiIFrame=function(){return(parseInt(y("site_id"),10)||0)>0},e.childDirected=!1,e.nonPersonalized=!1,e.prebidAvailable=!0,e.consentString="",e}();const De=Pe,je=function(){function e(){}return e.sendMessage=function(e,t){var i=window.parent;if(!s(e,n.message)){var r=Object.keys(n.message).map((function(e){return"poki.message."+e}));throw new TypeError("Argument 'type' must be one of "+r.join(", "))}var a=t||{};Be.gameId&&Be.versionId&&(a.pokifordevs={game_id:Be.gameId,game_version_id:Be.versionId}),i.postMessage({type:e,content:a},"*")},e}();var ze=function(e){var t=new Array;return Object.keys(e).forEach((function(i){"object"==typeof e[i]?t=t.concat(ze(e[i])):t.push(e[i])})),t},Me=function(){return Me=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Me.apply(this,arguments)},Re=ze(n.tracking);const Le=function(){function e(){}return e.track=function(e,t){if(void 0===t&&(t={}),-1===Re.indexOf(e))throw new TypeError("Invalid 'event', must be one of "+Re.join(", "));if("object"!=typeof t)throw new TypeError("Invalid data, must be an object");var i=o.getDataAnnotations();if(null==i?void 0:i.vhbOnlyMode)switch(e){case n.tracking.ads.status.impression:B(Me({event:"video-impression",size:"640x360v"},i));break;case n.tracking.ads.video.error:B(Me({event:"video-error",size:"640x360v"},i));break;case n.tracking.ads.video.loaderError:B(Me({event:"video-adsloader-error",size:"640x360v"},i));break;case n.tracking.ads.status.completed:B(Me({event:"video-complete",size:"640x360v"},i))}if(r.debug||r.log){if(window.process&&window.process.env&&"test"===window.process.env.NODE_ENV)return;Object.keys(t).length}je.sendMessage(n.message.event,{event:e,data:t})},e.setupDefaultEvents=function(){var t,i=((t={})[n.ready]=n.tracking.sdk.status.initialized,t[n.adblocked]=n.tracking.sdk.status.failed,t[n.ads.busy]=n.tracking.ads.status.busy,t[n.ads.completed]=n.tracking.ads.status.completed,t[n.ads.error]=n.tracking.ads.status.error,t[n.ads.displayError]=n.tracking.ads.status.displayError,t[n.ads.impression]=n.tracking.ads.status.impression,t[n.ads.limit]=n.tracking.ads.status.limit,t[n.ads.ready]=n.tracking.ads.status.ready,t[n.ads.requested]=n.tracking.ads.status.requested,t[n.ads.prebidRequested]=n.tracking.ads.status.prebidRequested,t[n.ads.skipped]=n.tracking.ads.status.skipped,t[n.ads.started]=n.tracking.ads.status.started,t[n.ads.video.clicked]=n.tracking.ads.video.clicked,t[n.ads.video.error]=n.tracking.ads.video.error,t[n.ads.video.loaderError]=n.tracking.ads.video.loaderError,t[n.ads.video.buffering]=n.tracking.ads.status.buffering,t[n.ads.video.progress]=n.tracking.ads.video.progress,t[n.ads.video.paused]=n.tracking.ads.video.paused,t[n.ads.video.resumed]=n.tracking.ads.video.resumed,t[n.tracking.screen.gameplayStart]=n.tracking.screen.gameplayStart,t[n.tracking.screen.gameplayStop]=n.tracking.screen.gameplayStop,t[n.tracking.screen.loadingProgress]=n.tracking.screen.loadingProgress,t[n.tracking.screen.commercialBreak]=n.tracking.screen.commercialBreak,t[n.tracking.screen.rewardedBreak]=n.tracking.screen.rewardedBreak,t[n.tracking.screen.happyTime]=n.tracking.screen.happyTime,t);Object.keys(i).forEach((function(t){o.addEventListener(t,(function(n){e.track(i[t],n)}))}))},e}();function Oe(e){switch(Object.prototype.toString.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return e instanceof Error}}var Ge="poki_erruid",Ue=Date.now(),Ze=u(Ge);function qe(){return Ze||(Ze=Math.random().toString(36).substr(2,9),p(Ge,Ze)),Ze}function Qe(e){if(Be.gameId&&Be.versionId&&!(Date.now()<Ue))try{var t=JSON.stringify({gid:Be.gameId,vid:Be.versionId,ve:7,n:e.name,m:e.message,s:JSON.stringify(e.stack),ui:qe()}),i="null.html?https://t.poki.io/ge";if(navigator.sendBeacon)navigator.sendBeacon(i,t);else{var n=new XMLHttpRequest;n.open("POST",i,!0),n.send(t)}Ue=Date.now()+100}catch(e){}}"undefined"!=typeof window&&(t().remoteFetching=!1,t().report.subscribe((function(e){if("Script error."===e.message&&window.pokiLastCatch){var i=window.pokiLastCatch;window.pokiLastCatch=null,t().report(i)}else Qe(e)})),window.onunhandledrejection=function(e){Oe(e.reason)?t().report(e.reason):Qe({name:"unhandledrejection",message:JSON.stringify(e.reason)})});var Ke=function(){return Ke=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Ke.apply(this,arguments)},Ne=function(){function t(){var t=this;this.gameStarted=!1,this.SDK=new De,this.gameplayStartCounter=0,this.gameplayStopCounter=0,this.duringGameplay=!1,this.init=function(e){return void 0===e&&(e={}),new Promise((function(i,r){t.SDK.init(Ke({onReady:function(){if(y("preroll")){var e=t.SDK.adTimings.prerollPossible;t.SDK.adTimings.prerollPossible=function(){return!0},t.commercialBreak(),t.SDK.adTimings.prerollPossible=e}i()},onAdblocked:r},e)),je.sendMessage(n.message.sdkDetails,{version:"2.263.0"})}))},this.initWithVideoHB=function(){return t.init()},this.gameLoadingProgress=function(e){var t={};void 0!==e.percentageDone&&(t.percentageDone=Number(e.percentageDone)),void 0!==e.kbLoaded&&(t.kbLoaded=Number(e.kbLoaded)),void 0!==e.kbTotal&&(t.kbTotal=Number(e.kbTotal)),void 0!==e.fileNameLoaded&&(t.fileNameLoaded=String(e.fileNameLoaded)),void 0!==e.filesLoaded&&(t.filesLoaded=Number(e.filesLoaded)),void 0!==e.filesTotal&&(t.filesTotal=Number(e.filesTotal)),Le.track(n.tracking.screen.gameLoadingProgress,t)},this.gameLoadingStart=function(){var e,t;Le.track(n.tracking.screen.gameLoadingStarted,{now:Math.round(null===(t=null===(e=window.performance)||void 0===e?void 0:e.now)||void 0===t?void 0:t.call(e))||void 0,error_user_id:qe()})},this.gameLoadingFinished=function(){var e,t,i,r,a;try{i=performance.getEntriesByType("resource").map((function(e){return e.transferSize})).reduce((function(e,t){return e+t})),i+=performance.getEntriesByType("navigation")[0].transferSize}catch(e){}Le.track(n.tracking.screen.gameLoadingFinished,{transferSize:i,trackers:(r=window,a=[],"function"!=typeof r.ga&&"function"!=typeof r.gtag||a.push("ga"),r.mixpanel&&"function"==typeof r.mixpanel.track&&a.push("mixpanel"),"function"==typeof r.GameAnalytics&&a.push("gameanalytics"),(r.kongregateAPI||r.kongregate)&&a.push("kongregate"),r.FlurryAgent&&a.push("flurry"),r.Countly&&a.push("countly"),r.amplitude&&a.push("amplitude"),a).join(","),now:Math.round(null===(t=null===(e=window.performance)||void 0===e?void 0:e.now)||void 0===t?void 0:t.call(e))||void 0})},this.gameplayStart=function(e){t.gameplayStartCounter++,t.duringGameplay=!0,t.gameStarted||(t.gameStarted=!0,Le.track(n.tracking.screen.firstRound),t.SDK.startStartAdsAfterTimer()),Le.track(n.tracking.screen.gameplayStart,Ke(Ke({},e),{playId:t.gameplayStartCounter}))},this.gameInteractive=function(){Le.track(n.tracking.screen.gameInteractive)},this.gameplayStop=function(e){t.gameplayStopCounter++,t.duringGameplay=!1,Le.track(n.tracking.screen.gameplayStop,Ke(Ke({},e),{playId:t.gameplayStartCounter,stopId:t.gameplayStopCounter}))},this.roundStart=function(e){void 0===e&&(e=""),e=String(e),Le.track(n.tracking.screen.roundStart,{identifier:e})},this.roundEnd=function(e){void 0===e&&(e=""),e=String(e),Le.track(n.tracking.screen.roundEnd,{identifier:e})},this.customEvent=function(e,i,r){void 0===r&&(r={}),e&&i?(e=String(e),i=String(i),r=Ke({},r),Le.track(n.tracking.custom,{eventNoun:e,eventVerb:i,eventData:r})):t.error("customEvent","customEvent needs at least a noun and a verb")},this.commercialBreak=function(e){return new Promise((function(e){var i=t.gameStarted?n.ads.position.midroll:n.ads.position.preroll;o.clearAnnotations(),o.setDataAnnotations({opportunityId:ye(),position:i}),e(1)}))},this.rewardedBreak=function(e){return new Promise((function(i){var r=n.ads.position.rewarded;o.clearAnnotations(),o.setDataAnnotations({opportunityId:ye(),position:r}),Le.track(n.tracking.screen.rewardedBreak),t.SDK.requestAd({position:r,onFinish:function(e){e.length>0?i(!e[0].rewardAllowed):i(!1)},onStart:e})}))},this.happyTime=function(e){void 0===e&&(e=1),((e=Number(e))<0||e>1)&&(e=Math.max(0,Math.min(1,e)),t.warning("happyTime","Intensity should be a value between 0 and 1, adjusted to "+e)),Le.track(n.tracking.screen.happyTime,{intensity:e})},this.muteAd=function(){t.SDK.muteAd()},this.setPlayerAge=function(e){e&&t.SDK.setPlayerAge(e)},this.togglePlayerAdvertisingConsent=function(e){Le.track(n.tracking.togglePlayerAdvertisingConsent,{didConsent:e}),t.SDK.togglePlayerAdvertisingConsent(e),je.sendMessage(n.message.toggleProgrammaticAds,{enabled:t.SDK.getProgrammaticAdsEnabled()})},this.displayAd=function(e,i){return o.clearAnnotations(),t.duringGameplay=1,t.duringGameplay},this.logError=function(t){Oe(t)?e.report(t):Qe({name:"logError",message:JSON.stringify(t)})},this.sendHighscore=function(){},this.setDebugTouchOverlayController=function(e){t.SDK.debugTouchOverlayController=e},this.getLeaderboard=function(){return Promise.resolve([])},this.getIsoLanguage=function(){return y("iso_lang")},this.shareableURL=function(e){return void 0===e&&(e={}),new Promise((function(t,i){var r=new URLSearchParams,a=Object.keys(e);if(De.GetIsPokiIFrame()){var o=y("poki_url");a.forEach((function(t){r.set("gd"+t,e[t])})),t(o+"?"+r.toString()),je.sendMessage(n.message.setPokiURLParams,{params:e})}else window.self===window.top?(a.forEach((function(t){r.set(""+t,e[t])})),t(""+window.location.origin+window.location.pathname+"?"+r.toString())):i(new Error("shareableURL only works on Poki or a top level frame"))}))},this.getURLParam=function(e){return y("gd"+e)||y(e)},this.isAdBlocked=function(){return t.SDK.sdkImaError},this.captureError=function(t){Oe(t)?e.report(t):e.report(new Error(t))},this.warning=function(e,t){},this.error=function(e,t){}}return t.prototype.setDebug=function(e){void 0===e&&(e=!0),this.SDK.setDebug(e)},t.prototype.disableProgrammatic=function(){this.SDK.disableProgrammatic()},t.prototype.destroyAd=function(e){this.SDK.destroyAd(e)},t.prototype.setVolume=function(e){this.SDK.setVolume(e)},t}(),Fe=new Ne;for(var Xe in Fe)window.PokiSDK[Xe]=Fe[Xe]})()})(); \ No newline at end of file diff --git a/static/misc/poor-bunny/poki-sdk.js b/static/misc/poor-bunny/poki-sdk.js new file mode 100644 index 00000000..5bcc5323 --- /dev/null +++ b/static/misc/poor-bunny/poki-sdk.js @@ -0,0 +1 @@ +(()=>{var e=function(e){var n=RegExp("[?&]"+e+"=([^&]*)").exec(window.location.search);return n&&decodeURIComponent(n[1].replace(/\+/g," "))},n="kids"===e("tag"),t=new(function(){function e(){var e=this;this.queue=[],this.init=function(n){return void 0===n&&(n={}),new Promise((function(t,o){e.enqueue("init",n,t,o)}))},this.rewardedBreak=function(){return new Promise((function(e){e(!1)}))},this.noArguments=function(n){return function(){e.enqueue(n)}},this.oneArgument=function(n){return function(t){e.enqueue(n,t)}},this.handleAutoResolvePromise=function(){return new Promise((function(e){e()}))},this.throwNotLoaded=function(){}}return e.prototype.enqueue=function(e,t,o,i){var r={fn:e,options:t,resolveFn:o,rejectFn:i};n?i&&i():this.queue.push(r)},e.prototype.dequeue=function(){for(var e=function(){var e=n.queue.shift(),t=e,o=t.fn,i=t.options;"function"==typeof window.PokiSDK[o]&&((null==e?void 0:e.resolveFn)||(null==e?void 0:e.rejectFn)?window.PokiSDK[o](i).then((function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];"function"==typeof e.resolveFn&&e.resolveFn.apply(e,n)})).catch((function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];"function"==typeof e.rejectFn&&e.rejectFn.apply(e,n)})):void 0!==(null==e?void 0:e.fn)&&window.PokiSDK[o](i))},n=this;this.queue.length>0;)e()},e}());window.PokiSDK={init:t.init,initWithVideoHB:t.init,customEvent:t.throwNotLoaded,commercialBreak:t.handleAutoResolvePromise,rewardedBreak:t.rewardedBreak,displayAd:t.throwNotLoaded,destroyAd:t.throwNotLoaded,getLeaderboard:t.handleAutoResolvePromise,getSharableURL:function(){return new Promise((function(e,n){return n()}))},getURLParam:function(n){return e("gd"+n)||e(n)||""}},["disableProgrammatic","gameLoadingStart","gameLoadingFinished","gameInteractive","roundStart","roundEnd","muteAd"].forEach((function(e){window.PokiSDK[e]=t.noArguments(e)})),["setDebug","gameplayStart","gameplayStop","gameLoadingProgress","happyTime","setPlayerAge","togglePlayerAdvertisingConsent","logError","sendHighscore","setDebugTouchOverlayController"].forEach((function(e){window.PokiSDK[e]=t.oneArgument(e)}));var o,i=((o=window.pokiSDKVersion)||(o=e("ab")||"v2.263.0"),"poki-sdk-"+(n?"kids":"core")+"-"+o+".js"),r=document.createElement("script");r.setAttribute("src",i),r.setAttribute("type","text/javascript"),r.setAttribute("crossOrigin","anonymous"),r.onload=function(){return t.dequeue()},document.head.appendChild(r)})(); \ No newline at end of file