@makefully/engagefully 0.0.0-stage → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md ADDED
@@ -0,0 +1,29 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ ## [Unreleased]
6
+
7
+ ## [0.2.0] - 2026-11-20
8
+
9
+ ### Added
10
+
11
+ - `ActionMap` — bind many physical controls to named logical actions (`:pressed` / `:released` / `:held`), with aggregate hold state, blur clear, optional `preventDefault`, and `autoTick`
12
+ - `quantizeStick(x, y, { sectors, deadzone, forward })` — pure stick → sector helper
13
+ - `focusGate({ extra })` — `enabled` predicate that skips editable focus (+ optional chrome gate)
14
+
15
+ ### Changed
16
+
17
+ - README quickstart centers on ActionMap + utils alongside raw Controller events
18
+
19
+ ## [0.1.0] - 2026-11-20
20
+
21
+ ### Added
22
+
23
+ - Public `@makefully/engagefully` package metadata, MIT license, and Keep-a-Changelog
24
+ - GitHub Actions `release.yml`: version-bump on `main` → npm OIDC publish + GitHub release
25
+ - README quickstart for Controller + Keyboard/Gamepad
26
+
27
+ ### Changed
28
+
29
+ - Package name from `engagefully` to `@makefully/engagefully`
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Makefully Studios
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,91 @@
1
- # Temporary Holding Version
2
-
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
1
+ # Engagefully
2
+
3
+ **Engagefully** by [Makefully](https://makefullystudios.com) turns keyboard, gamepad, pointer, and other devices into a single controller of typed actions (Button, Joystick, Pointer, …), plus a logical **ActionMap** for named game actions.
4
+
5
+ > Early `0.x` API — expect breaking changes.
6
+
7
+ ## Install
8
+
9
+ ```bash
10
+ npm install @makefully/engagefully
11
+ ```
12
+
13
+ Bundlers (Vite, etc.) may need the Node `events` polyfill — it is declared as a dependency of this package.
14
+
15
+ ## Quickstart
16
+
17
+ ```js
18
+ import {
19
+ Controller,
20
+ ActionMap,
21
+ devices,
22
+ quantizeStick,
23
+ focusGate,
24
+ } from '@makefully/engagefully';
25
+
26
+ const controller = new Controller([
27
+ new devices.KeyboardDevice(),
28
+ new devices.GamepadDevice(),
29
+ ]);
30
+
31
+ const actions = new ActionMap(controller, {
32
+ take: ['Space', 'AButton'],
33
+ drop: ['KeyF', 'BButton'],
34
+ move: [
35
+ { control: 'KeyW', data: { offset: 0 } },
36
+ { control: 'KeyE', data: { offset: 1 } },
37
+ ],
38
+ }, {
39
+ enabled: focusGate({ extra: () => helpOpen }),
40
+ preventDefault: true,
41
+ autoTick: true,
42
+ });
43
+
44
+ actions.on('take:pressed', () => { /* pickup */ });
45
+ actions.on('move:pressed', (e) => { /* e.data.offset */ });
46
+ actions.on('move:held', (e) => { /* each frame while held */ });
47
+ actions.on('move:released', () => { /* stop chaining */ });
48
+
49
+ // Stick → N sectors (game maps sector → direction):
50
+ controller.on('LeftStick', (event) => {
51
+ const q = quantizeStick(event.x, event.y, { sectors: 6, deadzone: 0.35 });
52
+ // q?.sector → 0..5 or null in deadzone
53
+ });
54
+ ```
55
+
56
+ ### Physical control ids
57
+
58
+ | Device | Examples |
59
+ |--------|----------|
60
+ | Keyboard | `KeyW`, `Space`, `ArrowUp` (`event.code`) |
61
+ | Gamepad | `AButton`, `BButton`, `XButton`, `YButton`, `LeftStick`, `UpDPad`, … |
62
+ | Pointer | `Pointer` |
63
+
64
+ You can still listen to physical ids on `Controller` directly (`KeyW:pressed`, `poll('Space')`).
65
+
66
+ ### ActionMap
67
+
68
+ - Many physical controls → one logical action; `:pressed` / `:released` aggregate across bindings.
69
+ - Binding `data` is passed through on events (keep game-specific metadata in the game).
70
+ - `held(action)` / `heldEvent(action)` / `clearHeld()` / `dispose()`.
71
+ - `preventDefault: true` captures keyboard codes in the map so Space/arrows don’t scroll the page.
72
+ - `enabled` (e.g. `focusGate`) ignores presses while typing or when chrome blocks input.
73
+
74
+ ### Utils
75
+
76
+ - **`quantizeStick(x, y, { sectors, deadzone, forward })`** → `{ sector }` or `null`
77
+ - **`focusGate({ extra })`** → `() => boolean` for `ActionMap` `enabled`
78
+
79
+ ## Devices
80
+
81
+ **First-class:** `KeyboardDevice`, `GamepadDevice`, `PointerDevice`
82
+
83
+ **Also included (experimental):** `BLEDevice`, `FabricDevice`, `PixiDevice`, `PageDevice`
84
+
85
+ ## Publishing
86
+
87
+ Bump `package.json` `version`, add a `## [x.y.z]` section to `CHANGELOG.md`, push `main`. CI publishes to npm (OIDC trusted publisher) and creates GitHub release `vX.Y.Z`.
88
+
89
+ ## License
90
+
91
+ MIT
@@ -0,0 +1 @@
1
+ (()=>{var t={2768:(t,e,n)=>{"use strict";n(9384);var r,o=(r=n(5642))&&r.__esModule?r:{default:r};o.default._babelPolyfill&&"undefined"!=typeof console&&console.warn&&console.warn("@babel/polyfill is loaded more than once on this page. This is probably not desirable/intended and may have consequences if different versions of the polyfills are applied sequentially. If you do need to load the polyfill more than once, use @babel/polyfill/noConflict instead to bypass the warning."),o.default._babelPolyfill=!0},9384:(t,e,n)=>{"use strict";n(5255),n(376),n(9098),n(6285),n(2034),n(7503),n(812),n(8748),n(6764),n(238),n(3858),n(7439),n(6114),n(7588)},5255:(t,e,n)=>{n(5960),n(7165),n(6355),n(4825),n(7979),n(3953),n(7622),n(5822),n(9047),n(2291),n(8407),n(7863),n(7879),n(354),n(1768),n(4036),n(6742),n(6216),n(2552),n(6765),n(4523),n(4163),n(4641),n(183),n(9354),n(3642),n(5343),n(1154),n(5441),n(9960),n(796),n(5028),n(6265),n(7011),n(4335),n(6362),n(4220),n(2132),n(1502),n(4018),n(7278),n(7704),n(6055),n(7966),n(7382),n(7100),n(2391),n(4732),n(4849),n(3112),n(1124),n(8165),n(9424),n(3491),n(3168),n(4405),n(3838),n(5786),n(4698),n(8746),n(9765),n(9737),n(4221),n(3641),n(1522),n(1869),n(9196),n(800),n(4226),n(3173),n(8665),n(2420),n(2614),n(6977),n(7516),n(2411),n(6908),n(2803),n(8473),n(7842),n(1624),n(9597),n(2109),n(6876),n(1148),n(1039),n(1982),n(9901),n(1846),n(2642),n(4236),n(2633),n(896),n(4128),n(6192),n(7699),n(8758),n(2650),n(8402),n(4287),n(8957),n(5761),n(7726),n(8992),n(1165),n(2928),n(1272),n(2094),n(837),n(468),n(8255),n(7729),n(5612),n(4015),n(9294),n(2493),n(8276),n(3179),n(303),n(4127),n(4302),n(7200),n(7708),n(5780),n(5886),n(7079),n(1712),n(8753),n(8629),n(3873),n(2211),n(4848),n(7080),n(4559),n(8524),n(9019),n(599),n(8874),t.exports=n(7984)},9098:(t,e,n)=>{n(518),t.exports=n(7984).Array.flatMap},376:(t,e,n)=>{n(7215),t.exports=n(7984).Array.includes},3858:(t,e,n)=>{n(1024),t.exports=n(7984).Object.entries},6764:(t,e,n)=>{n(4654),t.exports=n(7984).Object.getOwnPropertyDescriptors},238:(t,e,n)=>{n(9830),t.exports=n(7984).Object.values},7439:(t,e,n)=>{"use strict";n(837),n(3753),t.exports=n(7984).Promise.finally},2034:(t,e,n)=>{n(1417),t.exports=n(7984).String.padEnd},6285:(t,e,n)=>{n(3378),t.exports=n(7984).String.padStart},812:(t,e,n)=>{n(1133),t.exports=n(7984).String.trimRight},7503:(t,e,n)=>{n(2110),t.exports=n(7984).String.trimLeft},8748:(t,e,n)=>{n(5918),t.exports=n(3545).f("asyncIterator")},5642:(t,e,n)=>{n(8637),t.exports=n(4577).global},2668:t=>{t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},9858:(t,e,n)=>{var r=n(3712);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},4577:t=>{var e=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=e)},4479:(t,e,n)=>{var r=n(2668);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},7900:(t,e,n)=>{t.exports=!n(5269)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},9674:(t,e,n)=>{var r=n(3712),o=n(6425).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},1236:(t,e,n)=>{var r=n(6425),o=n(4577),i=n(4479),a=n(5712),u=n(5503),c=function t(e,n,c){var s,f,l,p=e&t.F,h=e&t.G,v=e&t.S,d=e&t.P,y=e&t.B,b=e&t.W,g=h?o:o[n]||(o[n]={}),m=g.prototype,w=h?r:v?r[n]:(r[n]||{}).prototype;for(s in h&&(c=n),c)(f=!p&&w&&void 0!==w[s])&&u(g,s)||(l=f?w[s]:c[s],g[s]=h&&"function"!=typeof w[s]?c[s]:y&&f?i(l,r):b&&w[s]==l?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(l):d&&"function"==typeof l?i(Function.call,l):l,d&&((g.virtual||(g.virtual={}))[s]=l,e&t.R&&m&&!m[s]&&a(m,s,l)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},5269:t=>{t.exports=function(t){try{return!!t()}catch(t){return!0}}},6425:t=>{var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},5503:t=>{var e={}.hasOwnProperty;t.exports=function(t,n){return e.call(t,n)}},5712:(t,e,n)=>{var r=n(679),o=n(3376);t.exports=n(7900)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},6686:(t,e,n)=>{t.exports=!n(7900)&&!n(5269)((function(){return 7!=Object.defineProperty(n(9674)("div"),"a",{get:function(){return 7}}).a}))},3712:t=>{function e(t){return e="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(t)}t.exports=function(t){return"object"===e(t)?null!==t:"function"==typeof t}},679:(t,e,n)=>{var r=n(9858),o=n(6686),i=n(9921),a=Object.defineProperty;e.f=n(7900)?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},3376:t=>{t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},9921:(t,e,n)=>{var r=n(3712);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},8637:(t,e,n)=>{var r=n(1236);r(r.G,{global:n(6425)})},8304:t=>{t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},5811:(t,e,n)=>{var r=n(9519);t.exports=function(t,e){if("number"!=typeof t&&"Number"!=r(t))throw TypeError(e);return+t}},6224:(t,e,n)=>{var r=n(8076)("unscopables"),o=Array.prototype;null==o[r]&&n(9247)(o,r,{}),t.exports=function(t){o[r][t]=!0}},2774:(t,e,n)=>{"use strict";var r=n(5813)(!0);t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},264:t=>{t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},9204:(t,e,n)=>{var r=n(9603);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},8734:(t,e,n)=>{"use strict";var r=n(6415),o=n(7149),i=n(1773);t.exports=[].copyWithin||function(t,e){var n=r(this),a=i(n.length),u=o(t,a),c=o(e,a),s=arguments.length>2?arguments[2]:void 0,f=Math.min((void 0===s?a:o(s,a))-c,a-u),l=1;for(c<u&&u<c+f&&(l=-1,c+=f-1,u+=f-1);f-- >0;)c in n?n[u]=n[c]:delete n[u],u+=l,c+=l;return n}},6436:(t,e,n)=>{"use strict";var r=n(6415),o=n(7149),i=n(1773);t.exports=function(t){for(var e=r(this),n=i(e.length),a=arguments.length,u=o(a>1?arguments[1]:void 0,n),c=a>2?arguments[2]:void 0,s=void 0===c?n:o(c,n);s>u;)e[u++]=t;return e}},3997:(t,e,n)=>{var r=n(3057),o=n(1773),i=n(7149);t.exports=function(t){return function(e,n,a){var u,c=r(e),s=o(c.length),f=i(a,s);if(t&&n!=n){for(;s>f;)if((u=c[f++])!=u)return!0}else for(;s>f;f++)if((t||f in c)&&c[f]===n)return t||f||0;return!t&&-1}}},2026:(t,e,n)=>{var r=n(9124),o=n(3424),i=n(6415),a=n(1773),u=n(4164);t.exports=function(t,e){var n=1==t,c=2==t,s=3==t,f=4==t,l=6==t,p=5==t||l,h=e||u;return function(e,u,v){for(var d,y,b=i(e),g=o(b),m=r(u,v,3),w=a(g.length),_=0,x=n?h(e,w):c?h(e,0):void 0;w>_;_++)if((p||_ in g)&&(y=m(d=g[_],_,b),t))if(n)x[_]=y;else if(y)switch(t){case 3:return!0;case 5:return d;case 6:return _;case 2:x.push(d)}else if(f)return!1;return l?-1:s||f?f:x}}},1457:(t,e,n)=>{var r=n(8304),o=n(6415),i=n(3424),a=n(1773);t.exports=function(t,e,n,u,c){r(e);var s=o(t),f=i(s),l=a(s.length),p=c?l-1:0,h=c?-1:1;if(n<2)for(;;){if(p in f){u=f[p],p+=h;break}if(p+=h,c?p<0:l<=p)throw TypeError("Reduce of empty array with no initial value")}for(;c?p>=0:l>p;p+=h)p in f&&(u=e(u,f[p],p,s));return u}},5720:(t,e,n)=>{var r=n(9603),o=n(7375),i=n(8076)("species");t.exports=function(t){var e;return o(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!o(e.prototype)||(e=void 0),r(e)&&null===(e=e[i])&&(e=void 0)),void 0===e?Array:e}},4164:(t,e,n)=>{var r=n(5720);t.exports=function(t,e){return new(r(t))(e)}},6371:(t,e,n)=>{"use strict";var r=n(8304),o=n(9603),i=n(3436),a=[].slice,u={},c=function(t,e,n){if(!(e in u)){for(var r=[],o=0;o<e;o++)r[o]="a["+o+"]";u[e]=Function("F,a","return new F("+r.join(",")+")")}return u[e](t,n)};t.exports=Function.bind||function(t){var e=r(this),n=a.call(arguments,1),u=function r(){var o=n.concat(a.call(arguments));return this instanceof r?c(e,o.length,o):i(e,o,t)};return o(e.prototype)&&(u.prototype=e.prototype),u}},9382:(t,e,n)=>{var r=n(9519),o=n(8076)("toStringTag"),i="Arguments"==r(function(){return arguments}());t.exports=function(t){var e,n,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),o))?n:i?r(e):"Object"==(a=r(e))&&"function"==typeof e.callee?"Arguments":a}},9519:t=>{var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},947:(t,e,n)=>{"use strict";var r=n(5234).f,o=n(4958),i=n(4584),a=n(9124),u=n(264),c=n(1725),s=n(7091),f=n(4165),l=n(6538),p=n(1329),h=n(4787).fastKey,v=n(2023),d=p?"_s":"size",y=function(t,e){var n,r=h(e);if("F"!==r)return t._i[r];for(n=t._f;n;n=n.n)if(n.k==e)return n};t.exports={getConstructor:function(t,e,n,s){var f=t((function(t,r){u(t,f,e,"_i"),t._t=e,t._i=o(null),t._f=void 0,t._l=void 0,t[d]=0,null!=r&&c(r,n,t[s],t)}));return i(f.prototype,{clear:function(){for(var t=v(this,e),n=t._i,r=t._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete n[r.i];t._f=t._l=void 0,t[d]=0},delete:function(t){var n=v(this,e),r=y(n,t);if(r){var o=r.n,i=r.p;delete n._i[r.i],r.r=!0,i&&(i.n=o),o&&(o.p=i),n._f==r&&(n._f=o),n._l==r&&(n._l=i),n[d]--}return!!r},forEach:function(t){v(this,e);for(var n,r=a(t,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(r(n.v,n.k,this);n&&n.r;)n=n.p},has:function(t){return!!y(v(this,e),t)}}),p&&r(f.prototype,"size",{get:function(){return v(this,e)[d]}}),f},def:function(t,e,n){var r,o,i=y(t,e);return i?i.v=n:(t._l=i={i:o=h(e,!0),k:e,v:n,p:r=t._l,n:void 0,r:!1},t._f||(t._f=i),r&&(r.n=i),t[d]++,"F"!==o&&(t._i[o]=i)),t},getEntry:y,setStrong:function(t,e,n){s(t,e,(function(t,n){this._t=v(t,e),this._k=n,this._l=void 0}),(function(){for(var t=this,e=t._k,n=t._l;n&&n.r;)n=n.p;return t._t&&(t._l=n=n?n.n:t._t._f)?f(0,"keys"==e?n.k:"values"==e?n.v:[n.k,n.v]):(t._t=void 0,f(1))}),n?"entries":"values",!n,!0),l(e)}}},5268:(t,e,n)=>{"use strict";var r=n(4584),o=n(4787).getWeak,i=n(9204),a=n(9603),u=n(264),c=n(1725),s=n(2026),f=n(1262),l=n(2023),p=s(5),h=s(6),v=0,d=function(t){return t._l||(t._l=new y)},y=function(){this.a=[]},b=function(t,e){return p(t.a,(function(t){return t[0]===e}))};y.prototype={get:function(t){var e=b(this,t);if(e)return e[1]},has:function(t){return!!b(this,t)},set:function(t,e){var n=b(this,t);n?n[1]=e:this.a.push([t,e])},delete:function(t){var e=h(this.a,(function(e){return e[0]===t}));return~e&&this.a.splice(e,1),!!~e}},t.exports={getConstructor:function(t,e,n,i){var s=t((function(t,r){u(t,s,e,"_i"),t._t=e,t._i=v++,t._l=void 0,null!=r&&c(r,n,t[i],t)}));return r(s.prototype,{delete:function(t){if(!a(t))return!1;var n=o(t);return!0===n?d(l(this,e)).delete(t):n&&f(n,this._i)&&delete n[this._i]},has:function(t){if(!a(t))return!1;var n=o(t);return!0===n?d(l(this,e)).has(t):n&&f(n,this._i)}}),s},def:function(t,e,n){var r=o(i(e),!0);return!0===r?d(t).set(e,n):r[t._i]=n,t},ufstore:d}},1405:(t,e,n)=>{"use strict";var r=n(2276),o=n(3350),i=n(1951),a=n(4584),u=n(4787),c=n(1725),s=n(264),f=n(9603),l=n(4308),p=n(3490),h=n(6668),v=n(1906);t.exports=function(t,e,n,d,y,b){var g=r[t],m=g,w=y?"set":"add",_=m&&m.prototype,x={},S=function(t){var e=_[t];i(_,t,"delete"==t||"has"==t?function(t){return!(b&&!f(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return b&&!f(t)?void 0:e.call(this,0===t?0:t)}:"add"==t?function(t){return e.call(this,0===t?0:t),this}:function(t,n){return e.call(this,0===t?0:t,n),this})};if("function"==typeof m&&(b||_.forEach&&!l((function(){(new m).entries().next()})))){var O=new m,P=O[w](b?{}:-0,1)!=O,E=l((function(){O.has(1)})),j=p((function(t){new m(t)})),k=!b&&l((function(){for(var t=new m,e=5;e--;)t[w](e,e);return!t.has(-0)}));j||((m=e((function(e,n){s(e,m,t);var r=v(new g,e,m);return null!=n&&c(n,y,r[w],r),r}))).prototype=_,_.constructor=m),(E||k)&&(S("delete"),S("has"),y&&S("get")),(k||P)&&S(w),b&&_.clear&&delete _.clear}else m=d.getConstructor(e,t,y,w),a(m.prototype,n),u.NEED=!0;return h(m,t),x[t]=m,o(o.G+o.W+o.F*(m!=g),x),b||d.setStrong(m,t,y),m}},7984:t=>{var e=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=e)},2122:(t,e,n)=>{"use strict";var r=n(5234),o=n(9933);t.exports=function(t,e,n){e in t?r.f(t,e,o(0,n)):t[e]=n}},9124:(t,e,n)=>{var r=n(8304);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},4041:(t,e,n)=>{"use strict";var r=n(4308),o=Date.prototype.getTime,i=Date.prototype.toISOString,a=function(t){return t>9?t:"0"+t};t.exports=r((function(){return"0385-07-25T07:06:39.999Z"!=i.call(new Date(-50000000000001))}))||!r((function(){i.call(new Date(NaN))}))?function(){if(!isFinite(o.call(this)))throw RangeError("Invalid time value");var t=this,e=t.getUTCFullYear(),n=t.getUTCMilliseconds(),r=e<0?"-":e>9999?"+":"";return r+("00000"+Math.abs(e)).slice(r?-6:-4)+"-"+a(t.getUTCMonth()+1)+"-"+a(t.getUTCDate())+"T"+a(t.getUTCHours())+":"+a(t.getUTCMinutes())+":"+a(t.getUTCSeconds())+"."+(n>99?n:"0"+a(n))+"Z"}:i},768:(t,e,n)=>{"use strict";var r=n(9204),o=n(4276),i="number";t.exports=function(t){if("string"!==t&&t!==i&&"default"!==t)throw TypeError("Incorrect hint");return o(r(this),t!=i)}},2099:t=>{t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},1329:(t,e,n)=>{t.exports=!n(4308)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},7233:(t,e,n)=>{var r=n(9603),o=n(2276).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},120:t=>{t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},5084:(t,e,n)=>{var r=n(1720),o=n(1259),i=n(6418);t.exports=function(t){var e=r(t),n=o.f;if(n)for(var a,u=n(t),c=i.f,s=0;u.length>s;)c.call(t,a=u[s++])&&e.push(a);return e}},3350:(t,e,n)=>{var r=n(2276),o=n(7984),i=n(9247),a=n(1951),u=n(9124),c=function t(e,n,c){var s,f,l,p,h=e&t.F,v=e&t.G,d=e&t.P,y=e&t.B,b=v?r:e&t.S?r[n]||(r[n]={}):(r[n]||{}).prototype,g=v?o:o[n]||(o[n]={}),m=g.prototype||(g.prototype={});for(s in v&&(c=n),c)l=((f=!h&&b&&void 0!==b[s])?b:c)[s],p=y&&f?u(l,r):d&&"function"==typeof l?u(Function.call,l):l,b&&a(b,s,l,e&t.U),g[s]!=l&&i(g,s,p),d&&m[s]!=l&&(m[s]=l)};r.core=o,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},2381:(t,e,n)=>{var r=n(8076)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[r]=!1,!"/./"[t](e)}catch(t){}}return!0}},4308:t=>{t.exports=function(t){try{return!!t()}catch(t){return!0}}},1658:(t,e,n)=>{"use strict";n(5761);var r=n(1951),o=n(9247),i=n(4308),a=n(2099),u=n(8076),c=n(3323),s=u("species"),f=!i((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),l=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();t.exports=function(t,e,n){var p=u(t),h=!i((function(){var e={};return e[p]=function(){return 7},7!=""[t](e)})),v=h?!i((function(){var e=!1,n=/a/;return n.exec=function(){return e=!0,null},"split"===t&&(n.constructor={},n.constructor[s]=function(){return n}),n[p](""),!e})):void 0;if(!h||!v||"replace"===t&&!f||"split"===t&&!l){var d=/./[p],y=n(a,p,""[t],(function(t,e,n,r,o){return e.exec===c?h&&!o?{done:!0,value:d.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}})),b=y[0],g=y[1];r(String.prototype,t,b),o(RegExp.prototype,p,2==e?function(t,e){return g.call(t,this,e)}:function(t){return g.call(t,this)})}}},9388:(t,e,n)=>{"use strict";var r=n(9204);t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},7849:(t,e,n)=>{"use strict";var r=n(7375),o=n(9603),i=n(1773),a=n(9124),u=n(8076)("isConcatSpreadable");t.exports=function t(e,n,c,s,f,l,p,h){for(var v,d,y=f,b=0,g=!!p&&a(p,h,3);b<s;){if(b in c){if(v=g?g(c[b],b,n):c[b],d=!1,o(v)&&(d=void 0!==(d=v[u])?!!d:r(v)),d&&l>0)y=t(e,n,v,i(v.length),y,l-1)-1;else{if(y>=9007199254740991)throw TypeError();e[y]=v}y++}b++}return y}},1725:(t,e,n)=>{var r=n(9124),o=n(228),i=n(99),a=n(9204),u=n(1773),c=n(8837),s={},f={},l=t.exports=function(t,e,n,l,p){var h,v,d,y,b=p?function(){return t}:c(t),g=r(n,l,e?2:1),m=0;if("function"!=typeof b)throw TypeError(t+" is not iterable!");if(i(b)){for(h=u(t.length);h>m;m++)if((y=e?g(a(v=t[m])[0],v[1]):g(t[m]))===s||y===f)return y}else for(d=b.call(t);!(v=d.next()).done;)if((y=o(d,g,v.value,e))===s||y===f)return y};l.BREAK=s,l.RETURN=f},7650:(t,e,n)=>{t.exports=n(3259)("native-function-to-string",Function.toString)},2276:t=>{var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},1262:t=>{var e={}.hasOwnProperty;t.exports=function(t,n){return e.call(t,n)}},9247:(t,e,n)=>{var r=n(5234),o=n(9933);t.exports=n(1329)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},1847:(t,e,n)=>{var r=n(2276).document;t.exports=r&&r.documentElement},706:(t,e,n)=>{t.exports=!n(1329)&&!n(4308)((function(){return 7!=Object.defineProperty(n(7233)("div"),"a",{get:function(){return 7}}).a}))},1906:(t,e,n)=>{var r=n(9603),o=n(8860).set;t.exports=function(t,e,n){var i,a=e.constructor;return a!==n&&"function"==typeof a&&(i=a.prototype)!==n.prototype&&r(i)&&o&&o(t,i),t}},3436:t=>{t.exports=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},3424:(t,e,n)=>{var r=n(9519);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},99:(t,e,n)=>{var r=n(479),o=n(8076)("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||i[o]===t)}},7375:(t,e,n)=>{var r=n(9519);t.exports=Array.isArray||function(t){return"Array"==r(t)}},8400:(t,e,n)=>{var r=n(9603),o=Math.floor;t.exports=function(t){return!r(t)&&isFinite(t)&&o(t)===t}},9603:t=>{function e(t){return e="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(t)}t.exports=function(t){return"object"===e(t)?null!==t:"function"==typeof t}},5119:(t,e,n)=>{var r=n(9603),o=n(9519),i=n(8076)("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[i])?!!e:"RegExp"==o(t))}},228:(t,e,n)=>{var r=n(9204);t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(e){var i=t.return;throw void 0!==i&&r(i.call(t)),e}}},4434:(t,e,n)=>{"use strict";var r=n(4958),o=n(9933),i=n(6668),a={};n(9247)(a,n(8076)("iterator"),(function(){return this})),t.exports=function(t,e,n){t.prototype=r(a,{next:o(1,n)}),i(t,e+" Iterator")}},7091:(t,e,n)=>{"use strict";var r=n(5020),o=n(3350),i=n(1951),a=n(9247),u=n(479),c=n(4434),s=n(6668),f=n(9565),l=n(8076)("iterator"),p=!([].keys&&"next"in[].keys()),h="keys",v="values",d=function(){return this};t.exports=function(t,e,n,y,b,g,m){c(n,e,y);var w,_,x,S=function(t){if(!p&&t in j)return j[t];switch(t){case h:case v:return function(){return new n(this,t)}}return function(){return new n(this,t)}},O=e+" Iterator",P=b==v,E=!1,j=t.prototype,k=j[l]||j["@@iterator"]||b&&j[b],M=k||S(b),L=b?P?S("entries"):M:void 0,F="Array"==e&&j.entries||k;if(F&&(x=f(F.call(new t)))!==Object.prototype&&x.next&&(s(x,O,!0),r||"function"==typeof x[l]||a(x,l,d)),P&&k&&k.name!==v&&(E=!0,M=function(){return k.call(this)}),r&&!m||!p&&!E&&j[l]||a(j,l,M),u[e]=M,u[O]=d,b)if(w={values:P?M:S(v),keys:g?M:S(h),entries:L},m)for(_ in w)_ in j||i(j,_,w[_]);else o(o.P+o.F*(p||E),e,w);return w}},3490:(t,e,n)=>{var r=n(8076)("iterator"),o=!1;try{var i=[7][r]();i.return=function(){o=!0},Array.from(i,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var i=[7],a=i[r]();a.next=function(){return{done:n=!0}},i[r]=function(){return a},t(i)}catch(t){}return n}},4165:t=>{t.exports=function(t,e){return{value:e,done:!!t}}},479:t=>{t.exports={}},5020:t=>{t.exports=!1},9372:t=>{var e=Math.expm1;t.exports=!e||e(10)>22025.465794806718||e(10)<22025.465794806718||-2e-17!=e(-2e-17)?function(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:Math.exp(t)-1}:e},5600:(t,e,n)=>{var r=n(7083),o=Math.pow,i=o(2,-52),a=o(2,-23),u=o(2,127)*(2-a),c=o(2,-126);t.exports=Math.fround||function(t){var e,n,o=Math.abs(t),s=r(t);return o<c?s*(o/c/a+1/i-1/i)*c*a:(n=(e=(1+a/i)*o)-(e-o))>u||n!=n?s*(1/0):s*n}},5386:t=>{t.exports=Math.log1p||function(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:Math.log(1+t)}},7083:t=>{t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},4787:(t,e,n)=>{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},r(t)}var o=n(6835)("meta"),i=n(9603),a=n(1262),u=n(5234).f,c=0,s=Object.isExtensible||function(){return!0},f=!n(4308)((function(){return s(Object.preventExtensions({}))})),l=function(t){u(t,o,{value:{i:"O"+ ++c,w:{}}})},p=t.exports={KEY:o,NEED:!1,fastKey:function(t,e){if(!i(t))return"symbol"==r(t)?t:("string"==typeof t?"S":"P")+t;if(!a(t,o)){if(!s(t))return"F";if(!e)return"E";l(t)}return t[o].i},getWeak:function(t,e){if(!a(t,o)){if(!s(t))return!0;if(!e)return!1;l(t)}return t[o].w},onFreeze:function(t){return f&&p.NEED&&s(t)&&!a(t,o)&&l(t),t}}},6787:(t,e,n)=>{var r=n(2276),o=n(9770).set,i=r.MutationObserver||r.WebKitMutationObserver,a=r.process,u=r.Promise,c="process"==n(9519)(a);t.exports=function(){var t,e,n,s=function(){var r,o;for(c&&(r=a.domain)&&r.exit();t;){o=t.fn,t=t.next;try{o()}catch(r){throw t?n():e=void 0,r}}e=void 0,r&&r.enter()};if(c)n=function(){a.nextTick(s)};else if(!i||r.navigator&&r.navigator.standalone)if(u&&u.resolve){var f=u.resolve(void 0);n=function(){f.then(s)}}else n=function(){o.call(r,s)};else{var l=!0,p=document.createTextNode("");new i(s).observe(p,{characterData:!0}),n=function(){p.data=l=!l}}return function(r){var o={fn:r,next:void 0};e&&(e.next=o),t||(t=o,n()),e=o}}},8176:(t,e,n)=>{"use strict";var r=n(8304);function o(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=r(e),this.reject=r(n)}t.exports.f=function(t){return new o(t)}},7288:(t,e,n)=>{"use strict";var r=n(1329),o=n(1720),i=n(1259),a=n(6418),u=n(6415),c=n(3424),s=Object.assign;t.exports=!s||n(4308)((function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=s({},t)[n]||Object.keys(s({},e)).join("")!=r}))?function(t,e){for(var n=u(t),s=arguments.length,f=1,l=i.f,p=a.f;s>f;)for(var h,v=c(arguments[f++]),d=l?o(v).concat(l(v)):o(v),y=d.length,b=0;y>b;)h=d[b++],r&&!p.call(v,h)||(n[h]=v[h]);return n}:s},4958:(t,e,n)=>{var r=n(9204),o=n(2305),i=n(120),a=n(1606)("IE_PROTO"),u=function(){},c=function(){var t,e=n(7233)("iframe"),r=i.length;for(e.style.display="none",n(1847).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),c=t.F;r--;)delete c.prototype[i[r]];return c()};t.exports=Object.create||function(t,e){var n;return null!==t?(u.prototype=r(t),n=new u,u.prototype=null,n[a]=t):n=c(),void 0===e?n:o(n,e)}},5234:(t,e,n)=>{var r=n(9204),o=n(706),i=n(4276),a=Object.defineProperty;e.f=n(1329)?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},2305:(t,e,n)=>{var r=n(5234),o=n(9204),i=n(1720);t.exports=n(1329)?Object.defineProperties:function(t,e){o(t);for(var n,a=i(e),u=a.length,c=0;u>c;)r.f(t,n=a[c++],e[n]);return t}},154:(t,e,n)=>{var r=n(6418),o=n(9933),i=n(3057),a=n(4276),u=n(1262),c=n(706),s=Object.getOwnPropertyDescriptor;e.f=n(1329)?s:function(t,e){if(t=i(t),e=a(e,!0),c)try{return s(t,e)}catch(t){}if(u(t,e))return o(!r.f.call(t,e),t[e])}},9563:(t,e,n)=>{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},r(t)}var o=n(3057),i=n(399).f,a={}.toString,u="object"==("undefined"==typeof window?"undefined":r(window))&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return u&&"[object Window]"==a.call(t)?function(t){try{return i(t)}catch(t){return u.slice()}}(t):i(o(t))}},399:(t,e,n)=>{var r=n(2696),o=n(120).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},1259:(t,e)=>{e.f=Object.getOwnPropertySymbols},9565:(t,e,n)=>{var r=n(1262),o=n(6415),i=n(1606)("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},2696:(t,e,n)=>{var r=n(1262),o=n(3057),i=n(3997)(!1),a=n(1606)("IE_PROTO");t.exports=function(t,e){var n,u=o(t),c=0,s=[];for(n in u)n!=a&&r(u,n)&&s.push(n);for(;e.length>c;)r(u,n=e[c++])&&(~i(s,n)||s.push(n));return s}},1720:(t,e,n)=>{var r=n(2696),o=n(120);t.exports=Object.keys||function(t){return r(t,o)}},6418:(t,e)=>{e.f={}.propertyIsEnumerable},4730:(t,e,n)=>{var r=n(3350),o=n(7984),i=n(4308);t.exports=function(t,e){var n=(o.Object||{})[t]||Object[t],a={};a[t]=e(n),r(r.S+r.F*i((function(){n(1)})),"Object",a)}},1305:(t,e,n)=>{var r=n(1329),o=n(1720),i=n(3057),a=n(6418).f;t.exports=function(t){return function(e){for(var n,u=i(e),c=o(u),s=c.length,f=0,l=[];s>f;)n=c[f++],r&&!a.call(u,n)||l.push(t?[n,u[n]]:u[n]);return l}}},7738:(t,e,n)=>{var r=n(399),o=n(1259),i=n(9204),a=n(2276).Reflect;t.exports=a&&a.ownKeys||function(t){var e=r.f(i(t)),n=o.f;return n?e.concat(n(t)):e}},4963:(t,e,n)=>{var r=n(2276).parseFloat,o=n(1344).trim;t.exports=1/r(n(1680)+"-0")!=-1/0?function(t){var e=o(String(t),3),n=r(e);return 0===n&&"-"==e.charAt(0)?-0:n}:r},1092:(t,e,n)=>{var r=n(2276).parseInt,o=n(1344).trim,i=n(1680),a=/^[-+]?0[xX]/;t.exports=8!==r(i+"08")||22!==r(i+"0x16")?function(t,e){var n=o(String(t),3);return r(n,e>>>0||(a.test(n)?16:10))}:r},6518:t=>{t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},1650:(t,e,n)=>{var r=n(9204),o=n(9603),i=n(8176);t.exports=function(t,e){if(r(t),o(e)&&e.constructor===t)return e;var n=i.f(t);return(0,n.resolve)(e),n.promise}},9933:t=>{t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},4584:(t,e,n)=>{var r=n(1951);t.exports=function(t,e,n){for(var o in e)r(t,o,e[o],n);return t}},1951:(t,e,n)=>{var r=n(2276),o=n(9247),i=n(1262),a=n(6835)("src"),u=n(7650),c="toString",s=(""+u).split(c);n(7984).inspectSource=function(t){return u.call(t)},(t.exports=function(t,e,n,u){var c="function"==typeof n;c&&(i(n,"name")||o(n,"name",e)),t[e]!==n&&(c&&(i(n,a)||o(n,a,t[e]?""+t[e]:s.join(String(e)))),t===r?t[e]=n:u?t[e]?t[e]=n:o(t,e,n):(delete t[e],o(t,e,n)))})(Function.prototype,c,(function(){return"function"==typeof this&&this[a]||u.call(this)}))},3231:(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},r(t)}var o=n(9382),i=RegExp.prototype.exec;t.exports=function(t,e){var n=t.exec;if("function"==typeof n){var a=n.call(t,e);if("object"!==r(a))throw new TypeError("RegExp exec method returned something other than an Object or null");return a}if("RegExp"!==o(t))throw new TypeError("RegExp#exec called on incompatible receiver");return i.call(t,e)}},3323:(t,e,n)=>{"use strict";var r,o,i=n(9388),a=RegExp.prototype.exec,u=String.prototype.replace,c=a,s=(r=/a/,o=/b*/g,a.call(r,"a"),a.call(o,"a"),0!==r.lastIndex||0!==o.lastIndex),f=void 0!==/()??/.exec("")[1];(s||f)&&(c=function(t){var e,n,r,o,c=this;return f&&(n=new RegExp("^"+c.source+"$(?!\\s)",i.call(c))),s&&(e=c.lastIndex),r=a.call(c,t),s&&r&&(c.lastIndex=c.global?r.index+r[0].length:e),f&&r&&r.length>1&&u.call(r[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)})),r}),t.exports=c},5954:t=>{t.exports=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}},8860:(t,e,n)=>{var r=n(9603),o=n(9204),i=function(t,e){if(o(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{(r=n(9124)(Function.call,n(154).f(Object.prototype,"__proto__").set,2))(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return i(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:i}},6538:(t,e,n)=>{"use strict";var r=n(2276),o=n(5234),i=n(1329),a=n(8076)("species");t.exports=function(t){var e=r[t];i&&e&&!e[a]&&o.f(e,a,{configurable:!0,get:function(){return this}})}},6668:(t,e,n)=>{var r=n(5234).f,o=n(1262),i=n(8076)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},1606:(t,e,n)=>{var r=n(3259)("keys"),o=n(6835);t.exports=function(t){return r[t]||(r[t]=o(t))}},3259:(t,e,n)=>{var r=n(7984),o=n(2276),i="__core-js_shared__",a=o[i]||(o[i]={});(t.exports=function(t,e){return a[t]||(a[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n(5020)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},7302:(t,e,n)=>{var r=n(9204),o=n(8304),i=n(8076)("species");t.exports=function(t,e){var n,a=r(t).constructor;return void 0===a||null==(n=r(a)[i])?e:o(n)}},7532:(t,e,n)=>{"use strict";var r=n(4308);t.exports=function(t,e){return!!t&&r((function(){e?t.call(null,(function(){}),1):t.call(null)}))}},5813:(t,e,n)=>{var r=n(9677),o=n(2099);t.exports=function(t){return function(e,n){var i,a,u=String(o(e)),c=r(n),s=u.length;return c<0||c>=s?t?"":void 0:(i=u.charCodeAt(c))<55296||i>56319||c+1===s||(a=u.charCodeAt(c+1))<56320||a>57343?t?u.charAt(c):i:t?u.slice(c,c+2):a-56320+(i-55296<<10)+65536}}},9883:(t,e,n)=>{var r=n(5119),o=n(2099);t.exports=function(t,e,n){if(r(e))throw TypeError("String#"+n+" doesn't accept regex!");return String(o(t))}},9686:(t,e,n)=>{var r=n(3350),o=n(4308),i=n(2099),a=/"/g,u=function(t,e,n,r){var o=String(i(t)),u="<"+e;return""!==n&&(u+=" "+n+'="'+String(r).replace(a,"&quot;")+'"'),u+">"+o+"</"+e+">"};t.exports=function(t,e){var n={};n[t]=e(u),r(r.P+r.F*o((function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3})),"String",n)}},466:(t,e,n)=>{var r=n(1773),o=n(9582),i=n(2099);t.exports=function(t,e,n,a){var u=String(i(t)),c=u.length,s=void 0===n?" ":String(n),f=r(e);if(f<=c||""==s)return u;var l=f-c,p=o.call(s,Math.ceil(l/s.length));return p.length>l&&(p=p.slice(0,l)),a?p+u:u+p}},9582:(t,e,n)=>{"use strict";var r=n(9677),o=n(2099);t.exports=function(t){var e=String(o(this)),n="",i=r(t);if(i<0||i==1/0)throw RangeError("Count can't be negative");for(;i>0;(i>>>=1)&&(e+=e))1&i&&(n+=e);return n}},1344:(t,e,n)=>{var r=n(3350),o=n(2099),i=n(4308),a=n(1680),u="["+a+"]",c=RegExp("^"+u+u+"*"),s=RegExp(u+u+"*$"),f=function(t,e,n){var o={},u=i((function(){return!!a[t]()||"​…"!="​…"[t]()})),c=o[t]=u?e(l):a[t];n&&(o[n]=c),r(r.P+r.F*u,"String",o)},l=f.trim=function(t,e){return t=String(o(t)),1&e&&(t=t.replace(c,"")),2&e&&(t=t.replace(s,"")),t};t.exports=f},1680:t=>{t.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},9770:(t,e,n)=>{var r,o,i,a=n(9124),u=n(3436),c=n(1847),s=n(7233),f=n(2276),l=f.process,p=f.setImmediate,h=f.clearImmediate,v=f.MessageChannel,d=f.Dispatch,y=0,b={},g=function(){var t=+this;if(b.hasOwnProperty(t)){var e=b[t];delete b[t],e()}},m=function(t){g.call(t.data)};p&&h||(p=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return b[++y]=function(){u("function"==typeof t?t:Function(t),e)},r(y),y},h=function(t){delete b[t]},"process"==n(9519)(l)?r=function(t){l.nextTick(a(g,t,1))}:d&&d.now?r=function(t){d.now(a(g,t,1))}:v?(i=(o=new v).port2,o.port1.onmessage=m,r=a(i.postMessage,i,1)):f.addEventListener&&"function"==typeof postMessage&&!f.importScripts?(r=function(t){f.postMessage(t+"","*")},f.addEventListener("message",m,!1)):r="onreadystatechange"in s("script")?function(t){c.appendChild(s("script")).onreadystatechange=function(){c.removeChild(this),g.call(t)}}:function(t){setTimeout(a(g,t,1),0)}),t.exports={set:p,clear:h}},7149:(t,e,n)=>{var r=n(9677),o=Math.max,i=Math.min;t.exports=function(t,e){return(t=r(t))<0?o(t+e,0):i(t,e)}},6074:(t,e,n)=>{var r=n(9677),o=n(1773);t.exports=function(t){if(void 0===t)return 0;var e=r(t),n=o(e);if(e!==n)throw RangeError("Wrong length!");return n}},9677:t=>{var e=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:e)(t)}},3057:(t,e,n)=>{var r=n(3424),o=n(2099);t.exports=function(t){return r(o(t))}},1773:(t,e,n)=>{var r=n(9677),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},6415:(t,e,n)=>{var r=n(2099);t.exports=function(t){return Object(r(t))}},4276:(t,e,n)=>{var r=n(9603);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},8933:(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},r(t)}if(n(1329)){var o=n(5020),i=n(2276),a=n(4308),u=n(3350),c=n(1089),s=n(6019),f=n(9124),l=n(264),p=n(9933),h=n(9247),v=n(4584),d=n(9677),y=n(1773),b=n(6074),g=n(7149),m=n(4276),w=n(1262),_=n(9382),x=n(9603),S=n(6415),O=n(99),P=n(4958),E=n(9565),j=n(399).f,k=n(8837),M=n(6835),L=n(8076),F=n(2026),R=n(3997),T=n(7302),I=n(4287),A=n(479),C=n(3490),N=n(6538),D=n(6436),B=n(8734),U=n(5234),W=n(154),G=U.f,V=W.f,z=i.RangeError,q=i.TypeError,K=i.Uint8Array,J="ArrayBuffer",Z="SharedArrayBuffer",H="BYTES_PER_ELEMENT",Y=Array.prototype,X=s.ArrayBuffer,$=s.DataView,Q=F(0),tt=F(2),et=F(3),nt=F(4),rt=F(5),ot=F(6),it=R(!0),at=R(!1),ut=I.values,ct=I.keys,st=I.entries,ft=Y.lastIndexOf,lt=Y.reduce,pt=Y.reduceRight,ht=Y.join,vt=Y.sort,dt=Y.slice,yt=Y.toString,bt=Y.toLocaleString,gt=L("iterator"),mt=L("toStringTag"),wt=M("typed_constructor"),_t=M("def_constructor"),xt=c.CONSTR,St=c.TYPED,Ot=c.VIEW,Pt="Wrong length!",Et=F(1,(function(t,e){return Ft(T(t,t[_t]),e)})),jt=a((function(){return 1===new K(new Uint16Array([1]).buffer)[0]})),kt=!!K&&!!K.prototype.set&&a((function(){new K(1).set({})})),Mt=function(t,e){var n=d(t);if(n<0||n%e)throw z("Wrong offset!");return n},Lt=function(t){if(x(t)&&St in t)return t;throw q(t+" is not a typed array!")},Ft=function(t,e){if(!x(t)||!(wt in t))throw q("It is not a typed array constructor!");return new t(e)},Rt=function(t,e){return Tt(T(t,t[_t]),e)},Tt=function(t,e){for(var n=0,r=e.length,o=Ft(t,r);r>n;)o[n]=e[n++];return o},It=function(t,e,n){G(t,e,{get:function(){return this._d[n]}})},At=function(t){var e,n,r,o,i,a,u=S(t),c=arguments.length,s=c>1?arguments[1]:void 0,l=void 0!==s,p=k(u);if(null!=p&&!O(p)){for(a=p.call(u),r=[],e=0;!(i=a.next()).done;e++)r.push(i.value);u=r}for(l&&c>2&&(s=f(s,arguments[2],2)),e=0,n=y(u.length),o=Ft(this,n);n>e;e++)o[e]=l?s(u[e],e):u[e];return o},Ct=function(){for(var t=0,e=arguments.length,n=Ft(this,e);e>t;)n[t]=arguments[t++];return n},Nt=!!K&&a((function(){bt.call(new K(1))})),Dt=function(){return bt.apply(Nt?dt.call(Lt(this)):Lt(this),arguments)},Bt={copyWithin:function(t,e){return B.call(Lt(this),t,e,arguments.length>2?arguments[2]:void 0)},every:function(t){return nt(Lt(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(t){return D.apply(Lt(this),arguments)},filter:function(t){return Rt(this,tt(Lt(this),t,arguments.length>1?arguments[1]:void 0))},find:function(t){return rt(Lt(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function(t){return ot(Lt(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function(t){Q(Lt(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function(t){return at(Lt(this),t,arguments.length>1?arguments[1]:void 0)},includes:function(t){return it(Lt(this),t,arguments.length>1?arguments[1]:void 0)},join:function(t){return ht.apply(Lt(this),arguments)},lastIndexOf:function(t){return ft.apply(Lt(this),arguments)},map:function(t){return Et(Lt(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function(t){return lt.apply(Lt(this),arguments)},reduceRight:function(t){return pt.apply(Lt(this),arguments)},reverse:function(){for(var t,e=this,n=Lt(e).length,r=Math.floor(n/2),o=0;o<r;)t=e[o],e[o++]=e[--n],e[n]=t;return e},some:function(t){return et(Lt(this),t,arguments.length>1?arguments[1]:void 0)},sort:function(t){return vt.call(Lt(this),t)},subarray:function(t,e){var n=Lt(this),r=n.length,o=g(t,r);return new(T(n,n[_t]))(n.buffer,n.byteOffset+o*n.BYTES_PER_ELEMENT,y((void 0===e?r:g(e,r))-o))}},Ut=function(t,e){return Rt(this,dt.call(Lt(this),t,e))},Wt=function(t){Lt(this);var e=Mt(arguments[1],1),n=this.length,r=S(t),o=y(r.length),i=0;if(o+e>n)throw z(Pt);for(;i<o;)this[e+i]=r[i++]},Gt={entries:function(){return st.call(Lt(this))},keys:function(){return ct.call(Lt(this))},values:function(){return ut.call(Lt(this))}},Vt=function(t,e){return x(t)&&t[St]&&"symbol"!=r(e)&&e in t&&String(+e)==String(e)},zt=function(t,e){return Vt(t,e=m(e,!0))?p(2,t[e]):V(t,e)},qt=function(t,e,n){return!(Vt(t,e=m(e,!0))&&x(n)&&w(n,"value"))||w(n,"get")||w(n,"set")||n.configurable||w(n,"writable")&&!n.writable||w(n,"enumerable")&&!n.enumerable?G(t,e,n):(t[e]=n.value,t)};xt||(W.f=zt,U.f=qt),u(u.S+u.F*!xt,"Object",{getOwnPropertyDescriptor:zt,defineProperty:qt}),a((function(){yt.call({})}))&&(yt=bt=function(){return ht.call(this)});var Kt=v({},Bt);v(Kt,Gt),h(Kt,gt,Gt.values),v(Kt,{slice:Ut,set:Wt,constructor:function(){},toString:yt,toLocaleString:Dt}),It(Kt,"buffer","b"),It(Kt,"byteOffset","o"),It(Kt,"byteLength","l"),It(Kt,"length","e"),G(Kt,mt,{get:function(){return this[St]}}),t.exports=function(t,e,n,r){var s=t+((r=!!r)?"Clamped":"")+"Array",f="get"+t,p="set"+t,v=i[s],d=v||{},g=v&&E(v),m=!v||!c.ABV,w={},S=v&&v.prototype,O=function(t,n){G(t,n,{get:function(){return function(t,n){var r=t._d;return r.v[f](n*e+r.o,jt)}(this,n)},set:function(t){return function(t,n,o){var i=t._d;r&&(o=(o=Math.round(o))<0?0:o>255?255:255&o),i.v[p](n*e+i.o,o,jt)}(this,n,t)},enumerable:!0})};m?(v=n((function(t,n,r,o){l(t,v,s,"_d");var i,a,u,c,f=0,p=0;if(x(n)){if(!(n instanceof X||(c=_(n))==J||c==Z))return St in n?Tt(v,n):At.call(v,n);i=n,p=Mt(r,e);var d=n.byteLength;if(void 0===o){if(d%e)throw z(Pt);if((a=d-p)<0)throw z(Pt)}else if((a=y(o)*e)+p>d)throw z(Pt);u=a/e}else u=b(n),i=new X(a=u*e);for(h(t,"_d",{b:i,o:p,l:a,e:u,v:new $(i)});f<u;)O(t,f++)})),S=v.prototype=P(Kt),h(S,"constructor",v)):a((function(){v(1)}))&&a((function(){new v(-1)}))&&C((function(t){new v,new v(null),new v(1.5),new v(t)}),!0)||(v=n((function(t,n,r,o){var i;return l(t,v,s),x(n)?n instanceof X||(i=_(n))==J||i==Z?void 0!==o?new d(n,Mt(r,e),o):void 0!==r?new d(n,Mt(r,e)):new d(n):St in n?Tt(v,n):At.call(v,n):new d(b(n))})),Q(g!==Function.prototype?j(d).concat(j(g)):j(d),(function(t){t in v||h(v,t,d[t])})),v.prototype=S,o||(S.constructor=v));var k=S[gt],M=!!k&&("values"==k.name||null==k.name),L=Gt.values;h(v,wt,!0),h(S,St,s),h(S,Ot,!0),h(S,_t,v),(r?new v(1)[mt]==s:mt in S)||G(S,mt,{get:function(){return s}}),w[s]=v,u(u.G+u.W+u.F*(v!=d),w),u(u.S,s,{BYTES_PER_ELEMENT:e}),u(u.S+u.F*a((function(){d.of.call(v,1)})),s,{from:At,of:Ct}),H in S||h(S,H,e),u(u.P,s,Bt),N(s),u(u.P+u.F*kt,s,{set:Wt}),u(u.P+u.F*!M,s,Gt),o||S.toString==yt||(S.toString=yt),u(u.P+u.F*a((function(){new v(1).slice()})),s,{slice:Ut}),u(u.P+u.F*(a((function(){return[1,2].toLocaleString()!=new v([1,2]).toLocaleString()}))||!a((function(){S.toLocaleString.call([1,2])}))),s,{toLocaleString:Dt}),A[s]=M?k:L,o||M||h(S,gt,L)}}else t.exports=function(){}},6019:(t,e,n)=>{"use strict";var r=n(2276),o=n(1329),i=n(5020),a=n(1089),u=n(9247),c=n(4584),s=n(4308),f=n(264),l=n(9677),p=n(1773),h=n(6074),v=n(399).f,d=n(5234).f,y=n(6436),b=n(6668),g="ArrayBuffer",m="DataView",w="Wrong index!",_=r.ArrayBuffer,x=r.DataView,S=r.Math,O=r.RangeError,P=r.Infinity,E=_,j=S.abs,k=S.pow,M=S.floor,L=S.log,F=S.LN2,R="buffer",T="byteLength",I="byteOffset",A=o?"_b":R,C=o?"_l":T,N=o?"_o":I;function D(t,e,n){var r,o,i,a=new Array(n),u=8*n-e-1,c=(1<<u)-1,s=c>>1,f=23===e?k(2,-24)-k(2,-77):0,l=0,p=t<0||0===t&&1/t<0?1:0;for((t=j(t))!=t||t===P?(o=t!=t?1:0,r=c):(r=M(L(t)/F),t*(i=k(2,-r))<1&&(r--,i*=2),(t+=r+s>=1?f/i:f*k(2,1-s))*i>=2&&(r++,i/=2),r+s>=c?(o=0,r=c):r+s>=1?(o=(t*i-1)*k(2,e),r+=s):(o=t*k(2,s-1)*k(2,e),r=0));e>=8;a[l++]=255&o,o/=256,e-=8);for(r=r<<e|o,u+=e;u>0;a[l++]=255&r,r/=256,u-=8);return a[--l]|=128*p,a}function B(t,e,n){var r,o=8*n-e-1,i=(1<<o)-1,a=i>>1,u=o-7,c=n-1,s=t[c--],f=127&s;for(s>>=7;u>0;f=256*f+t[c],c--,u-=8);for(r=f&(1<<-u)-1,f>>=-u,u+=e;u>0;r=256*r+t[c],c--,u-=8);if(0===f)f=1-a;else{if(f===i)return r?NaN:s?-P:P;r+=k(2,e),f-=a}return(s?-1:1)*r*k(2,f-e)}function U(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]}function W(t){return[255&t]}function G(t){return[255&t,t>>8&255]}function V(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function z(t){return D(t,52,8)}function q(t){return D(t,23,4)}function K(t,e,n){d(t.prototype,e,{get:function(){return this[n]}})}function J(t,e,n,r){var o=h(+n);if(o+e>t[C])throw O(w);var i=t[A]._b,a=o+t[N],u=i.slice(a,a+e);return r?u:u.reverse()}function Z(t,e,n,r,o,i){var a=h(+n);if(a+e>t[C])throw O(w);for(var u=t[A]._b,c=a+t[N],s=r(+o),f=0;f<e;f++)u[c+f]=s[i?f:e-f-1]}if(a.ABV){if(!s((function(){_(1)}))||!s((function(){new _(-1)}))||s((function(){return new _,new _(1.5),new _(NaN),_.name!=g}))){for(var H,Y=(_=function(t){return f(this,_),new E(h(t))}).prototype=E.prototype,X=v(E),$=0;X.length>$;)(H=X[$++])in _||u(_,H,E[H]);i||(Y.constructor=_)}var Q=new x(new _(2)),tt=x.prototype.setInt8;Q.setInt8(0,2147483648),Q.setInt8(1,2147483649),!Q.getInt8(0)&&Q.getInt8(1)||c(x.prototype,{setInt8:function(t,e){tt.call(this,t,e<<24>>24)},setUint8:function(t,e){tt.call(this,t,e<<24>>24)}},!0)}else _=function(t){f(this,_,g);var e=h(t);this._b=y.call(new Array(e),0),this[C]=e},x=function(t,e,n){f(this,x,m),f(t,_,m);var r=t[C],o=l(e);if(o<0||o>r)throw O("Wrong offset!");if(o+(n=void 0===n?r-o:p(n))>r)throw O("Wrong length!");this[A]=t,this[N]=o,this[C]=n},o&&(K(_,T,"_l"),K(x,R,"_b"),K(x,T,"_l"),K(x,I,"_o")),c(x.prototype,{getInt8:function(t){return J(this,1,t)[0]<<24>>24},getUint8:function(t){return J(this,1,t)[0]},getInt16:function(t){var e=J(this,2,t,arguments[1]);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=J(this,2,t,arguments[1]);return e[1]<<8|e[0]},getInt32:function(t){return U(J(this,4,t,arguments[1]))},getUint32:function(t){return U(J(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return B(J(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return B(J(this,8,t,arguments[1]),52,8)},setInt8:function(t,e){Z(this,1,t,W,e)},setUint8:function(t,e){Z(this,1,t,W,e)},setInt16:function(t,e){Z(this,2,t,G,e,arguments[2])},setUint16:function(t,e){Z(this,2,t,G,e,arguments[2])},setInt32:function(t,e){Z(this,4,t,V,e,arguments[2])},setUint32:function(t,e){Z(this,4,t,V,e,arguments[2])},setFloat32:function(t,e){Z(this,4,t,q,e,arguments[2])},setFloat64:function(t,e){Z(this,8,t,z,e,arguments[2])}});b(_,g),b(x,m),u(x.prototype,a.VIEW,!0),e.ArrayBuffer=_,e.DataView=x},1089:(t,e,n)=>{for(var r,o=n(2276),i=n(9247),a=n(6835),u=a("typed_array"),c=a("view"),s=!(!o.ArrayBuffer||!o.DataView),f=s,l=0,p="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");l<9;)(r=o[p[l++]])?(i(r.prototype,u,!0),i(r.prototype,c,!0)):f=!1;t.exports={ABV:s,CONSTR:f,TYPED:u,VIEW:c}},6835:t=>{var e=0,n=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++e+n).toString(36))}},8160:(t,e,n)=>{var r=n(2276).navigator;t.exports=r&&r.userAgent||""},2023:(t,e,n)=>{var r=n(9603);t.exports=function(t,e){if(!r(t)||t._t!==e)throw TypeError("Incompatible receiver, "+e+" required!");return t}},4819:(t,e,n)=>{var r=n(2276),o=n(7984),i=n(5020),a=n(3545),u=n(5234).f;t.exports=function(t){var e=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||u(e,t,{value:a.f(t)})}},3545:(t,e,n)=>{e.f=n(8076)},8076:(t,e,n)=>{var r=n(3259)("wks"),o=n(6835),i=n(2276).Symbol,a="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=a&&i[t]||(a?i:o)("Symbol."+t))}).store=r},8837:(t,e,n)=>{var r=n(9382),o=n(8076)("iterator"),i=n(479);t.exports=n(7984).getIteratorMethod=function(t){if(null!=t)return t[o]||t["@@iterator"]||i[r(t)]}},6192:(t,e,n)=>{var r=n(3350);r(r.P,"Array",{copyWithin:n(8734)}),n(6224)("copyWithin")},2642:(t,e,n)=>{"use strict";var r=n(3350),o=n(2026)(4);r(r.P+r.F*!n(7532)([].every,!0),"Array",{every:function(t){return o(this,t,arguments[1])}})},7699:(t,e,n)=>{var r=n(3350);r(r.P,"Array",{fill:n(6436)}),n(6224)("fill")},9901:(t,e,n)=>{"use strict";var r=n(3350),o=n(2026)(2);r(r.P+r.F*!n(7532)([].filter,!0),"Array",{filter:function(t){return o(this,t,arguments[1])}})},2650:(t,e,n)=>{"use strict";var r=n(3350),o=n(2026)(6),i="findIndex",a=!0;i in[]&&Array(1)[i]((function(){a=!1})),r(r.P+r.F*a,"Array",{findIndex:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),n(6224)(i)},8758:(t,e,n)=>{"use strict";var r=n(3350),o=n(2026)(5),i="find",a=!0;i in[]&&Array(1).find((function(){a=!1})),r(r.P+r.F*a,"Array",{find:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),n(6224)(i)},1039:(t,e,n)=>{"use strict";var r=n(3350),o=n(2026)(0),i=n(7532)([].forEach,!0);r(r.P+r.F*!i,"Array",{forEach:function(t){return o(this,t,arguments[1])}})},1624:(t,e,n)=>{"use strict";var r=n(9124),o=n(3350),i=n(6415),a=n(228),u=n(99),c=n(1773),s=n(2122),f=n(8837);o(o.S+o.F*!n(3490)((function(t){Array.from(t)})),"Array",{from:function(t){var e,n,o,l,p=i(t),h="function"==typeof this?this:Array,v=arguments.length,d=v>1?arguments[1]:void 0,y=void 0!==d,b=0,g=f(p);if(y&&(d=r(d,v>2?arguments[2]:void 0,2)),null==g||h==Array&&u(g))for(n=new h(e=c(p.length));e>b;b++)s(n,b,y?d(p[b],b):p[b]);else for(l=g.call(p),n=new h;!(o=l.next()).done;b++)s(n,b,y?a(l,d,[o.value,b],!0):o.value);return n.length=b,n}})},896:(t,e,n)=>{"use strict";var r=n(3350),o=n(3997)(!1),i=[].indexOf,a=!!i&&1/[1].indexOf(1,-0)<0;r(r.P+r.F*(a||!n(7532)(i)),"Array",{indexOf:function(t){return a?i.apply(this,arguments)||0:o(this,t,arguments[1])}})},7842:(t,e,n)=>{var r=n(3350);r(r.S,"Array",{isArray:n(7375)})},4287:(t,e,n)=>{"use strict";var r=n(6224),o=n(4165),i=n(479),a=n(3057);t.exports=n(7091)(Array,"Array",(function(t,e){this._t=a(t),this._i=0,this._k=e}),(function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,o(1)):o(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])}),"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},2109:(t,e,n)=>{"use strict";var r=n(3350),o=n(3057),i=[].join;r(r.P+r.F*(n(3424)!=Object||!n(7532)(i)),"Array",{join:function(t){return i.call(o(this),void 0===t?",":t)}})},4128:(t,e,n)=>{"use strict";var r=n(3350),o=n(3057),i=n(9677),a=n(1773),u=[].lastIndexOf,c=!!u&&1/[1].lastIndexOf(1,-0)<0;r(r.P+r.F*(c||!n(7532)(u)),"Array",{lastIndexOf:function(t){if(c)return u.apply(this,arguments)||0;var e=o(this),n=a(e.length),r=n-1;for(arguments.length>1&&(r=Math.min(r,i(arguments[1]))),r<0&&(r=n+r);r>=0;r--)if(r in e&&e[r]===t)return r||0;return-1}})},1982:(t,e,n)=>{"use strict";var r=n(3350),o=n(2026)(1);r(r.P+r.F*!n(7532)([].map,!0),"Array",{map:function(t){return o(this,t,arguments[1])}})},9597:(t,e,n)=>{"use strict";var r=n(3350),o=n(2122);r(r.S+r.F*n(4308)((function(){function t(){}return!(Array.of.call(t)instanceof t)})),"Array",{of:function(){for(var t=0,e=arguments.length,n=new("function"==typeof this?this:Array)(e);e>t;)o(n,t,arguments[t++]);return n.length=e,n}})},2633:(t,e,n)=>{"use strict";var r=n(3350),o=n(1457);r(r.P+r.F*!n(7532)([].reduceRight,!0),"Array",{reduceRight:function(t){return o(this,t,arguments.length,arguments[1],!0)}})},4236:(t,e,n)=>{"use strict";var r=n(3350),o=n(1457);r(r.P+r.F*!n(7532)([].reduce,!0),"Array",{reduce:function(t){return o(this,t,arguments.length,arguments[1],!1)}})},6876:(t,e,n)=>{"use strict";var r=n(3350),o=n(1847),i=n(9519),a=n(7149),u=n(1773),c=[].slice;r(r.P+r.F*n(4308)((function(){o&&c.call(o)})),"Array",{slice:function(t,e){var n=u(this.length),r=i(this);if(e=void 0===e?n:e,"Array"==r)return c.call(this,t,e);for(var o=a(t,n),s=a(e,n),f=u(s-o),l=new Array(f),p=0;p<f;p++)l[p]="String"==r?this.charAt(o+p):this[o+p];return l}})},1846:(t,e,n)=>{"use strict";var r=n(3350),o=n(2026)(3);r(r.P+r.F*!n(7532)([].some,!0),"Array",{some:function(t){return o(this,t,arguments[1])}})},1148:(t,e,n)=>{"use strict";var r=n(3350),o=n(8304),i=n(6415),a=n(4308),u=[].sort,c=[1,2,3];r(r.P+r.F*(a((function(){c.sort(void 0)}))||!a((function(){c.sort(null)}))||!n(7532)(u)),"Array",{sort:function(t){return void 0===t?u.call(i(this)):u.call(i(this),o(t))}})},8402:(t,e,n)=>{n(6538)("Array")},7516:(t,e,n)=>{var r=n(3350);r(r.S,"Date",{now:function(){return(new Date).getTime()}})},6908:(t,e,n)=>{var r=n(3350),o=n(4041);r(r.P+r.F*(Date.prototype.toISOString!==o),"Date",{toISOString:o})},2411:(t,e,n)=>{"use strict";var r=n(3350),o=n(6415),i=n(4276);r(r.P+r.F*n(4308)((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})})),"Date",{toJSON:function(t){var e=o(this),n=i(e);return"number"!=typeof n||isFinite(n)?e.toISOString():null}})},8473:(t,e,n)=>{var r=n(8076)("toPrimitive"),o=Date.prototype;r in o||n(9247)(o,r,n(768))},2803:(t,e,n)=>{var r=Date.prototype,o="Invalid Date",i=r.toString,a=r.getTime;new Date(NaN)+""!=o&&n(1951)(r,"toString",(function(){var t=a.call(this);return t==t?i.call(this):o}))},2552:(t,e,n)=>{var r=n(3350);r(r.P,"Function",{bind:n(6371)})},4523:(t,e,n)=>{"use strict";var r=n(9603),o=n(9565),i=n(8076)("hasInstance"),a=Function.prototype;i in a||n(5234).f(a,i,{value:function(t){if("function"!=typeof this||!r(t))return!1;if(!r(this.prototype))return t instanceof this;for(;t=o(t);)if(this.prototype===t)return!0;return!1}})},6765:(t,e,n)=>{var r=n(5234).f,o=Function.prototype,i=/^\s*function ([^ (]*)/,a="name";a in o||n(1329)&&r(o,a,{configurable:!0,get:function(){try{return(""+this).match(i)[1]}catch(t){return""}}})},468:(t,e,n)=>{"use strict";var r=n(947),o=n(2023),i="Map";t.exports=n(1405)(i,(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{get:function(t){var e=r.getEntry(o(this,i),t);return e&&e.v},set:function(t,e){return r.def(o(this,i),0===t?0:t,e)}},r,!0)},6362:(t,e,n)=>{var r=n(3350),o=n(5386),i=Math.sqrt,a=Math.acosh;r(r.S+r.F*!(a&&710==Math.floor(a(Number.MAX_VALUE))&&a(1/0)==1/0),"Math",{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?Math.log(t)+Math.LN2:o(t-1+i(t-1)*i(t+1))}})},4220:(t,e,n)=>{var r=n(3350),o=Math.asinh;r(r.S+r.F*!(o&&1/o(0)>0),"Math",{asinh:function t(e){return isFinite(e=+e)&&0!=e?e<0?-t(-e):Math.log(e+Math.sqrt(e*e+1)):e}})},2132:(t,e,n)=>{var r=n(3350),o=Math.atanh;r(r.S+r.F*!(o&&1/o(-0)<0),"Math",{atanh:function(t){return 0==(t=+t)?t:Math.log((1+t)/(1-t))/2}})},1502:(t,e,n)=>{var r=n(3350),o=n(7083);r(r.S,"Math",{cbrt:function(t){return o(t=+t)*Math.pow(Math.abs(t),1/3)}})},4018:(t,e,n)=>{var r=n(3350);r(r.S,"Math",{clz32:function(t){return(t>>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},7278:(t,e,n)=>{var r=n(3350),o=Math.exp;r(r.S,"Math",{cosh:function(t){return(o(t=+t)+o(-t))/2}})},7704:(t,e,n)=>{var r=n(3350),o=n(9372);r(r.S+r.F*(o!=Math.expm1),"Math",{expm1:o})},6055:(t,e,n)=>{var r=n(3350);r(r.S,"Math",{fround:n(5600)})},7966:(t,e,n)=>{var r=n(3350),o=Math.abs;r(r.S,"Math",{hypot:function(t,e){for(var n,r,i=0,a=0,u=arguments.length,c=0;a<u;)c<(n=o(arguments[a++]))?(i=i*(r=c/n)*r+1,c=n):i+=n>0?(r=n/c)*r:n;return c===1/0?1/0:c*Math.sqrt(i)}})},7382:(t,e,n)=>{var r=n(3350),o=Math.imul;r(r.S+r.F*n(4308)((function(){return-5!=o(4294967295,5)||2!=o.length})),"Math",{imul:function(t,e){var n=65535,r=+t,o=+e,i=n&r,a=n&o;return 0|i*a+((n&r>>>16)*a+i*(n&o>>>16)<<16>>>0)}})},7100:(t,e,n)=>{var r=n(3350);r(r.S,"Math",{log10:function(t){return Math.log(t)*Math.LOG10E}})},2391:(t,e,n)=>{var r=n(3350);r(r.S,"Math",{log1p:n(5386)})},4732:(t,e,n)=>{var r=n(3350);r(r.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}})},4849:(t,e,n)=>{var r=n(3350);r(r.S,"Math",{sign:n(7083)})},3112:(t,e,n)=>{var r=n(3350),o=n(9372),i=Math.exp;r(r.S+r.F*n(4308)((function(){return-2e-17!=!Math.sinh(-2e-17)})),"Math",{sinh:function(t){return Math.abs(t=+t)<1?(o(t)-o(-t))/2:(i(t-1)-i(-t-1))*(Math.E/2)}})},1124:(t,e,n)=>{var r=n(3350),o=n(9372),i=Math.exp;r(r.S,"Math",{tanh:function(t){var e=o(t=+t),n=o(-t);return e==1/0?1:n==1/0?-1:(e-n)/(i(t)+i(-t))}})},8165:(t,e,n)=>{var r=n(3350);r(r.S,"Math",{trunc:function(t){return(t>0?Math.floor:Math.ceil)(t)}})},183:(t,e,n)=>{"use strict";var r=n(2276),o=n(1262),i=n(9519),a=n(1906),u=n(4276),c=n(4308),s=n(399).f,f=n(154).f,l=n(5234).f,p=n(1344).trim,h="Number",v=r.Number,d=v,y=v.prototype,b=i(n(4958)(y))==h,g="trim"in String.prototype,m=function(t){var e=u(t,!1);if("string"==typeof e&&e.length>2){var n,r,o,i=(e=g?e.trim():p(e,3)).charCodeAt(0);if(43===i||45===i){if(88===(n=e.charCodeAt(2))||120===n)return NaN}else if(48===i){switch(e.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+e}for(var a,c=e.slice(2),s=0,f=c.length;s<f;s++)if((a=c.charCodeAt(s))<48||a>o)return NaN;return parseInt(c,r)}}return+e};if(!v(" 0o1")||!v("0b1")||v("+0x1")){v=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof v&&(b?c((function(){y.valueOf.call(n)})):i(n)!=h)?a(new d(m(e)),n,v):m(e)};for(var w,_=n(1329)?s(d):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),x=0;_.length>x;x++)o(d,w=_[x])&&!o(v,w)&&l(v,w,f(d,w));v.prototype=y,y.constructor=v,n(1951)(r,h,v)}},5343:(t,e,n)=>{var r=n(3350);r(r.S,"Number",{EPSILON:Math.pow(2,-52)})},1154:(t,e,n)=>{var r=n(3350),o=n(2276).isFinite;r(r.S,"Number",{isFinite:function(t){return"number"==typeof t&&o(t)}})},5441:(t,e,n)=>{var r=n(3350);r(r.S,"Number",{isInteger:n(8400)})},9960:(t,e,n)=>{var r=n(3350);r(r.S,"Number",{isNaN:function(t){return t!=t}})},796:(t,e,n)=>{var r=n(3350),o=n(8400),i=Math.abs;r(r.S,"Number",{isSafeInteger:function(t){return o(t)&&i(t)<=9007199254740991}})},5028:(t,e,n)=>{var r=n(3350);r(r.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},6265:(t,e,n)=>{var r=n(3350);r(r.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},7011:(t,e,n)=>{var r=n(3350),o=n(4963);r(r.S+r.F*(Number.parseFloat!=o),"Number",{parseFloat:o})},4335:(t,e,n)=>{var r=n(3350),o=n(1092);r(r.S+r.F*(Number.parseInt!=o),"Number",{parseInt:o})},9354:(t,e,n)=>{"use strict";var r=n(3350),o=n(9677),i=n(5811),a=n(9582),u=1..toFixed,c=Math.floor,s=[0,0,0,0,0,0],f="Number.toFixed: incorrect invocation!",l="0",p=function(t,e){for(var n=-1,r=e;++n<6;)r+=t*s[n],s[n]=r%1e7,r=c(r/1e7)},h=function(t){for(var e=6,n=0;--e>=0;)n+=s[e],s[e]=c(n/t),n=n%t*1e7},v=function(){for(var t=6,e="";--t>=0;)if(""!==e||0===t||0!==s[t]){var n=String(s[t]);e=""===e?n:e+a.call(l,7-n.length)+n}return e},d=function t(e,n,r){return 0===n?r:n%2==1?t(e,n-1,r*e):t(e*e,n/2,r)};r(r.P+r.F*(!!u&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!n(4308)((function(){u.call({})}))),"Number",{toFixed:function(t){var e,n,r,u,c=i(this,f),s=o(t),y="",b=l;if(s<0||s>20)throw RangeError(f);if(c!=c)return"NaN";if(c<=-1e21||c>=1e21)return String(c);if(c<0&&(y="-",c=-c),c>1e-21)if(e=function(t){for(var e=0,n=t;n>=4096;)e+=12,n/=4096;for(;n>=2;)e+=1,n/=2;return e}(c*d(2,69,1))-69,n=e<0?c*d(2,-e,1):c/d(2,e,1),n*=4503599627370496,(e=52-e)>0){for(p(0,n),r=s;r>=7;)p(1e7,0),r-=7;for(p(d(10,r,1),0),r=e-1;r>=23;)h(1<<23),r-=23;h(1<<r),p(1,1),h(2),b=v()}else p(0,n),p(1<<-e,0),b=v()+a.call(l,s);return s>0?y+((u=b.length)<=s?"0."+a.call(l,s-u)+b:b.slice(0,u-s)+"."+b.slice(u-s)):y+b}})},3642:(t,e,n)=>{"use strict";var r=n(3350),o=n(4308),i=n(5811),a=1..toPrecision;r(r.P+r.F*(o((function(){return"1"!==a.call(1,void 0)}))||!o((function(){a.call({})}))),"Number",{toPrecision:function(t){var e=i(this,"Number#toPrecision: incorrect invocation!");return void 0===t?a.call(e):a.call(e,t)}})},1768:(t,e,n)=>{var r=n(3350);r(r.S+r.F,"Object",{assign:n(7288)})},7165:(t,e,n)=>{var r=n(3350);r(r.S,"Object",{create:n(4958)})},4825:(t,e,n)=>{var r=n(3350);r(r.S+r.F*!n(1329),"Object",{defineProperties:n(2305)})},6355:(t,e,n)=>{var r=n(3350);r(r.S+r.F*!n(1329),"Object",{defineProperty:n(5234).f})},9047:(t,e,n)=>{var r=n(9603),o=n(4787).onFreeze;n(4730)("freeze",(function(t){return function(e){return t&&r(e)?t(o(e)):e}}))},7979:(t,e,n)=>{var r=n(3057),o=n(154).f;n(4730)("getOwnPropertyDescriptor",(function(){return function(t,e){return o(r(t),e)}}))},5822:(t,e,n)=>{n(4730)("getOwnPropertyNames",(function(){return n(9563).f}))},3953:(t,e,n)=>{var r=n(6415),o=n(9565);n(4730)("getPrototypeOf",(function(){return function(t){return o(r(t))}}))},354:(t,e,n)=>{var r=n(9603);n(4730)("isExtensible",(function(t){return function(e){return!!r(e)&&(!t||t(e))}}))},7863:(t,e,n)=>{var r=n(9603);n(4730)("isFrozen",(function(t){return function(e){return!r(e)||!!t&&t(e)}}))},7879:(t,e,n)=>{var r=n(9603);n(4730)("isSealed",(function(t){return function(e){return!r(e)||!!t&&t(e)}}))},4036:(t,e,n)=>{var r=n(3350);r(r.S,"Object",{is:n(5954)})},7622:(t,e,n)=>{var r=n(6415),o=n(1720);n(4730)("keys",(function(){return function(t){return o(r(t))}}))},8407:(t,e,n)=>{var r=n(9603),o=n(4787).onFreeze;n(4730)("preventExtensions",(function(t){return function(e){return t&&r(e)?t(o(e)):e}}))},2291:(t,e,n)=>{var r=n(9603),o=n(4787).onFreeze;n(4730)("seal",(function(t){return function(e){return t&&r(e)?t(o(e)):e}}))},6742:(t,e,n)=>{var r=n(3350);r(r.S,"Object",{setPrototypeOf:n(8860).set})},6216:(t,e,n)=>{"use strict";var r=n(9382),o={};o[n(8076)("toStringTag")]="z",o+""!="[object z]"&&n(1951)(Object.prototype,"toString",(function(){return"[object "+r(this)+"]"}),!0)},4641:(t,e,n)=>{var r=n(3350),o=n(4963);r(r.G+r.F*(parseFloat!=o),{parseFloat:o})},4163:(t,e,n)=>{var r=n(3350),o=n(1092);r(r.G+r.F*(parseInt!=o),{parseInt:o})},837:(t,e,n)=>{"use strict";var r,o,i,a,u=n(5020),c=n(2276),s=n(9124),f=n(9382),l=n(3350),p=n(9603),h=n(8304),v=n(264),d=n(1725),y=n(7302),b=n(9770).set,g=n(6787)(),m=n(8176),w=n(6518),_=n(8160),x=n(1650),S="Promise",O=c.TypeError,P=c.process,E=P&&P.versions,j=E&&E.v8||"",k=c.Promise,M="process"==f(P),L=function(){},F=o=m.f,R=!!function(){try{var t=k.resolve(1),e=(t.constructor={})[n(8076)("species")]=function(t){t(L,L)};return(M||"function"==typeof PromiseRejectionEvent)&&t.then(L)instanceof e&&0!==j.indexOf("6.6")&&-1===_.indexOf("Chrome/66")}catch(t){}}(),T=function(t){var e;return!(!p(t)||"function"!=typeof(e=t.then))&&e},I=function(t,e){if(!t._n){t._n=!0;var n=t._c;g((function(){for(var r=t._v,o=1==t._s,i=0,a=function(e){var n,i,a,u=o?e.ok:e.fail,c=e.resolve,s=e.reject,f=e.domain;try{u?(o||(2==t._h&&N(t),t._h=1),!0===u?n=r:(f&&f.enter(),n=u(r),f&&(f.exit(),a=!0)),n===e.promise?s(O("Promise-chain cycle")):(i=T(n))?i.call(n,c,s):c(n)):s(r)}catch(t){f&&!a&&f.exit(),s(t)}};n.length>i;)a(n[i++]);t._c=[],t._n=!1,e&&!t._h&&A(t)}))}},A=function(t){b.call(c,(function(){var e,n,r,o=t._v,i=C(t);if(i&&(e=w((function(){M?P.emit("unhandledRejection",o,t):(n=c.onunhandledrejection)?n({promise:t,reason:o}):(r=c.console)&&r.error&&r.error("Unhandled promise rejection",o)})),t._h=M||C(t)?2:1),t._a=void 0,i&&e.e)throw e.v}))},C=function(t){return 1!==t._h&&0===(t._a||t._c).length},N=function(t){b.call(c,(function(){var e;M?P.emit("rejectionHandled",t):(e=c.onrejectionhandled)&&e({promise:t,reason:t._v})}))},D=function(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),I(e,!0))},B=function t(e){var n,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===e)throw O("Promise can't be resolved itself");(n=T(e))?g((function(){var o={_w:r,_d:!1};try{n.call(e,s(t,o,1),s(D,o,1))}catch(t){D.call(o,t)}})):(r._v=e,r._s=1,I(r,!1))}catch(t){D.call({_w:r,_d:!1},t)}}};R||(k=function(t){v(this,k,S,"_h"),h(t),r.call(this);try{t(s(B,this,1),s(D,this,1))}catch(t){D.call(this,t)}},(r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(4584)(k.prototype,{then:function(t,e){var n=F(y(this,k));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=M?P.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&I(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),i=function(){var t=new r;this.promise=t,this.resolve=s(B,t,1),this.reject=s(D,t,1)},m.f=F=function(t){return t===k||t===a?new i(t):o(t)}),l(l.G+l.W+l.F*!R,{Promise:k}),n(6668)(k,S),n(6538)(S),a=n(7984).Promise,l(l.S+l.F*!R,S,{reject:function(t){var e=F(this);return(0,e.reject)(t),e.promise}}),l(l.S+l.F*(u||!R),S,{resolve:function(t){return x(u&&this===a?k:this,t)}}),l(l.S+l.F*!(R&&n(3490)((function(t){k.all(t).catch(L)}))),S,{all:function(t){var e=this,n=F(e),r=n.resolve,o=n.reject,i=w((function(){var n=[],i=0,a=1;d(t,!1,(function(t){var u=i++,c=!1;n.push(void 0),a++,e.resolve(t).then((function(t){c||(c=!0,n[u]=t,--a||r(n))}),o)})),--a||r(n)}));return i.e&&o(i.v),n.promise},race:function(t){var e=this,n=F(e),r=n.reject,o=w((function(){d(t,!1,(function(t){e.resolve(t).then(n.resolve,r)}))}));return o.e&&r(o.v),n.promise}})},5886:(t,e,n)=>{var r=n(3350),o=n(8304),i=n(9204),a=(n(2276).Reflect||{}).apply,u=Function.apply;r(r.S+r.F*!n(4308)((function(){a((function(){}))})),"Reflect",{apply:function(t,e,n){var r=o(t),c=i(n);return a?a(r,e,c):u.call(r,e,c)}})},7079:(t,e,n)=>{var r=n(3350),o=n(4958),i=n(8304),a=n(9204),u=n(9603),c=n(4308),s=n(6371),f=(n(2276).Reflect||{}).construct,l=c((function(){function t(){}return!(f((function(){}),[],t)instanceof t)})),p=!c((function(){f((function(){}))}));r(r.S+r.F*(l||p),"Reflect",{construct:function(t,e){i(t),a(e);var n=arguments.length<3?t:i(arguments[2]);if(p&&!l)return f(t,e,n);if(t==n){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])}var r=[null];return r.push.apply(r,e),new(s.apply(t,r))}var c=n.prototype,h=o(u(c)?c:Object.prototype),v=Function.apply.call(t,h,e);return u(v)?v:h}})},1712:(t,e,n)=>{var r=n(5234),o=n(3350),i=n(9204),a=n(4276);o(o.S+o.F*n(4308)((function(){Reflect.defineProperty(r.f({},1,{value:1}),1,{value:2})})),"Reflect",{defineProperty:function(t,e,n){i(t),e=a(e,!0),i(n);try{return r.f(t,e,n),!0}catch(t){return!1}}})},8753:(t,e,n)=>{var r=n(3350),o=n(154).f,i=n(9204);r(r.S,"Reflect",{deleteProperty:function(t,e){var n=o(i(t),e);return!(n&&!n.configurable)&&delete t[e]}})},8629:(t,e,n)=>{"use strict";var r=n(3350),o=n(9204),i=function(t){this._t=o(t),this._i=0;var e,n=this._k=[];for(e in t)n.push(e)};n(4434)(i,"Object",(function(){var t,e=this,n=e._k;do{if(e._i>=n.length)return{value:void 0,done:!0}}while(!((t=n[e._i++])in e._t));return{value:t,done:!1}})),r(r.S,"Reflect",{enumerate:function(t){return new i(t)}})},2211:(t,e,n)=>{var r=n(154),o=n(3350),i=n(9204);o(o.S,"Reflect",{getOwnPropertyDescriptor:function(t,e){return r.f(i(t),e)}})},4848:(t,e,n)=>{var r=n(3350),o=n(9565),i=n(9204);r(r.S,"Reflect",{getPrototypeOf:function(t){return o(i(t))}})},3873:(t,e,n)=>{var r=n(154),o=n(9565),i=n(1262),a=n(3350),u=n(9603),c=n(9204);a(a.S,"Reflect",{get:function t(e,n){var a,s,f=arguments.length<3?e:arguments[2];return c(e)===f?e[n]:(a=r.f(e,n))?i(a,"value")?a.value:void 0!==a.get?a.get.call(f):void 0:u(s=o(e))?t(s,n,f):void 0}})},7080:(t,e,n)=>{var r=n(3350);r(r.S,"Reflect",{has:function(t,e){return e in t}})},4559:(t,e,n)=>{var r=n(3350),o=n(9204),i=Object.isExtensible;r(r.S,"Reflect",{isExtensible:function(t){return o(t),!i||i(t)}})},8524:(t,e,n)=>{var r=n(3350);r(r.S,"Reflect",{ownKeys:n(7738)})},9019:(t,e,n)=>{var r=n(3350),o=n(9204),i=Object.preventExtensions;r(r.S,"Reflect",{preventExtensions:function(t){o(t);try{return i&&i(t),!0}catch(t){return!1}}})},8874:(t,e,n)=>{var r=n(3350),o=n(8860);o&&r(r.S,"Reflect",{setPrototypeOf:function(t,e){o.check(t,e);try{return o.set(t,e),!0}catch(t){return!1}}})},599:(t,e,n)=>{var r=n(5234),o=n(154),i=n(9565),a=n(1262),u=n(3350),c=n(9933),s=n(9204),f=n(9603);u(u.S,"Reflect",{set:function t(e,n,u){var l,p,h=arguments.length<4?e:arguments[3],v=o.f(s(e),n);if(!v){if(f(p=i(e)))return t(p,n,u,h);v=c(0)}if(a(v,"value")){if(!1===v.writable||!f(h))return!1;if(l=o.f(h,n)){if(l.get||l.set||!1===l.writable)return!1;l.value=u,r.f(h,n,l)}else r.f(h,n,c(0,u));return!0}return void 0!==v.set&&(v.set.call(h,u),!0)}})},8957:(t,e,n)=>{var r=n(2276),o=n(1906),i=n(5234).f,a=n(399).f,u=n(5119),c=n(9388),s=r.RegExp,f=s,l=s.prototype,p=/a/g,h=/a/g,v=new s(p)!==p;if(n(1329)&&(!v||n(4308)((function(){return h[n(8076)("match")]=!1,s(p)!=p||s(h)==h||"/a/i"!=s(p,"i")})))){s=function(t,e){var n=this instanceof s,r=u(t),i=void 0===e;return!n&&r&&t.constructor===s&&i?t:o(v?new f(r&&!i?t.source:t,e):f((r=t instanceof s)?t.source:t,r&&i?c.call(t):e),n?this:l,s)};for(var d=function(t){t in s||i(s,t,{configurable:!0,get:function(){return f[t]},set:function(e){f[t]=e}})},y=a(f),b=0;y.length>b;)d(y[b++]);l.constructor=s,s.prototype=l,n(1951)(r,"RegExp",s)}n(6538)("RegExp")},5761:(t,e,n)=>{"use strict";var r=n(3323);n(3350)({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},8992:(t,e,n)=>{n(1329)&&"g"!=/./g.flags&&n(5234).f(RegExp.prototype,"flags",{configurable:!0,get:n(9388)})},1165:(t,e,n)=>{"use strict";var r=n(9204),o=n(1773),i=n(2774),a=n(3231);n(1658)("match",1,(function(t,e,n,u){return[function(n){var r=t(this),o=null==n?void 0:n[e];return void 0!==o?o.call(n,r):new RegExp(n)[e](String(r))},function(t){var e=u(n,t,this);if(e.done)return e.value;var c=r(t),s=String(this);if(!c.global)return a(c,s);var f=c.unicode;c.lastIndex=0;for(var l,p=[],h=0;null!==(l=a(c,s));){var v=String(l[0]);p[h]=v,""===v&&(c.lastIndex=i(s,o(c.lastIndex),f)),h++}return 0===h?null:p}]}))},2928:(t,e,n)=>{"use strict";var r=n(9204),o=n(6415),i=n(1773),a=n(9677),u=n(2774),c=n(3231),s=Math.max,f=Math.min,l=Math.floor,p=/\$([$&`']|\d\d?|<[^>]*>)/g,h=/\$([$&`']|\d\d?)/g;n(1658)("replace",2,(function(t,e,n,v){return[function(r,o){var i=t(this),a=null==r?void 0:r[e];return void 0!==a?a.call(r,i,o):n.call(String(i),r,o)},function(t,e){var o=v(n,t,this,e);if(o.done)return o.value;var l=r(t),p=String(this),h="function"==typeof e;h||(e=String(e));var y=l.global;if(y){var b=l.unicode;l.lastIndex=0}for(var g=[];;){var m=c(l,p);if(null===m)break;if(g.push(m),!y)break;""===String(m[0])&&(l.lastIndex=u(p,i(l.lastIndex),b))}for(var w,_="",x=0,S=0;S<g.length;S++){m=g[S];for(var O=String(m[0]),P=s(f(a(m.index),p.length),0),E=[],j=1;j<m.length;j++)E.push(void 0===(w=m[j])?w:String(w));var k=m.groups;if(h){var M=[O].concat(E,P,p);void 0!==k&&M.push(k);var L=String(e.apply(void 0,M))}else L=d(O,p,P,E,k,e);P>=x&&(_+=p.slice(x,P)+L,x=P+O.length)}return _+p.slice(x)}];function d(t,e,r,i,a,u){var c=r+t.length,s=i.length,f=h;return void 0!==a&&(a=o(a),f=p),n.call(u,f,(function(n,o){var u;switch(o.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,r);case"'":return e.slice(c);case"<":u=a[o.slice(1,-1)];break;default:var f=+o;if(0===f)return n;if(f>s){var p=l(f/10);return 0===p?n:p<=s?void 0===i[p-1]?o.charAt(1):i[p-1]+o.charAt(1):n}u=i[f-1]}return void 0===u?"":u}))}}))},1272:(t,e,n)=>{"use strict";var r=n(9204),o=n(5954),i=n(3231);n(1658)("search",1,(function(t,e,n,a){return[function(n){var r=t(this),o=null==n?void 0:n[e];return void 0!==o?o.call(n,r):new RegExp(n)[e](String(r))},function(t){var e=a(n,t,this);if(e.done)return e.value;var u=r(t),c=String(this),s=u.lastIndex;o(s,0)||(u.lastIndex=0);var f=i(u,c);return o(u.lastIndex,s)||(u.lastIndex=s),null===f?-1:f.index}]}))},2094:(t,e,n)=>{"use strict";var r=n(5119),o=n(9204),i=n(7302),a=n(2774),u=n(1773),c=n(3231),s=n(3323),f=n(4308),l=Math.min,p=[].push,h=4294967295,v=!f((function(){RegExp(h,"y")}));n(1658)("split",2,(function(t,e,n,f){var d;return d="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,e){var o=String(this);if(void 0===t&&0===e)return[];if(!r(t))return n.call(o,t,e);for(var i,a,u,c=[],f=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),l=0,v=void 0===e?h:e>>>0,d=new RegExp(t.source,f+"g");(i=s.call(d,o))&&!((a=d.lastIndex)>l&&(c.push(o.slice(l,i.index)),i.length>1&&i.index<o.length&&p.apply(c,i.slice(1)),u=i[0].length,l=a,c.length>=v));)d.lastIndex===i.index&&d.lastIndex++;return l===o.length?!u&&d.test("")||c.push(""):c.push(o.slice(l)),c.length>v?c.slice(0,v):c}:"0".split(void 0,0).length?function(t,e){return void 0===t&&0===e?[]:n.call(this,t,e)}:n,[function(n,r){var o=t(this),i=null==n?void 0:n[e];return void 0!==i?i.call(n,o,r):d.call(String(o),n,r)},function(t,e){var r=f(d,t,this,e,d!==n);if(r.done)return r.value;var s=o(t),p=String(this),y=i(s,RegExp),b=s.unicode,g=(s.ignoreCase?"i":"")+(s.multiline?"m":"")+(s.unicode?"u":"")+(v?"y":"g"),m=new y(v?s:"^(?:"+s.source+")",g),w=void 0===e?h:e>>>0;if(0===w)return[];if(0===p.length)return null===c(m,p)?[p]:[];for(var _=0,x=0,S=[];x<p.length;){m.lastIndex=v?x:0;var O,P=c(m,v?p:p.slice(x));if(null===P||(O=l(u(m.lastIndex+(v?0:x)),p.length))===_)x=a(p,x,b);else{if(S.push(p.slice(_,x)),S.length===w)return S;for(var E=1;E<=P.length-1;E++)if(S.push(P[E]),S.length===w)return S;x=_=O}}return S.push(p.slice(_)),S}]}))},7726:(t,e,n)=>{"use strict";n(8992);var r=n(9204),o=n(9388),i=n(1329),a="toString",u=/./.toString,c=function(t){n(1951)(RegExp.prototype,a,t,!0)};n(4308)((function(){return"/a/b"!=u.call({source:"a",flags:"b"})}))?c((function(){var t=r(this);return"/".concat(t.source,"/","flags"in t?t.flags:!i&&t instanceof RegExp?o.call(t):void 0)})):u.name!=a&&c((function(){return u.call(this)}))},8255:(t,e,n)=>{"use strict";var r=n(947),o=n(2023);t.exports=n(1405)("Set",(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(t){return r.def(o(this,"Set"),t=0===t?0:t,t)}},r)},9737:(t,e,n)=>{"use strict";n(9686)("anchor",(function(t){return function(e){return t(this,"a","name",e)}}))},4221:(t,e,n)=>{"use strict";n(9686)("big",(function(t){return function(){return t(this,"big","","")}}))},3641:(t,e,n)=>{"use strict";n(9686)("blink",(function(t){return function(){return t(this,"blink","","")}}))},1522:(t,e,n)=>{"use strict";n(9686)("bold",(function(t){return function(){return t(this,"b","","")}}))},3838:(t,e,n)=>{"use strict";var r=n(3350),o=n(5813)(!1);r(r.P,"String",{codePointAt:function(t){return o(this,t)}})},5786:(t,e,n)=>{"use strict";var r=n(3350),o=n(1773),i=n(9883),a="endsWith",u="".endsWith;r(r.P+r.F*n(2381)(a),"String",{endsWith:function(t){var e=i(this,t,a),n=arguments.length>1?arguments[1]:void 0,r=o(e.length),c=void 0===n?r:Math.min(o(n),r),s=String(t);return u?u.call(e,s,c):e.slice(c-s.length,c)===s}})},1869:(t,e,n)=>{"use strict";n(9686)("fixed",(function(t){return function(){return t(this,"tt","","")}}))},9196:(t,e,n)=>{"use strict";n(9686)("fontcolor",(function(t){return function(e){return t(this,"font","color",e)}}))},800:(t,e,n)=>{"use strict";n(9686)("fontsize",(function(t){return function(e){return t(this,"font","size",e)}}))},9424:(t,e,n)=>{var r=n(3350),o=n(7149),i=String.fromCharCode,a=String.fromCodePoint;r(r.S+r.F*(!!a&&1!=a.length),"String",{fromCodePoint:function(t){for(var e,n=[],r=arguments.length,a=0;r>a;){if(e=+arguments[a++],o(e,1114111)!==e)throw RangeError(e+" is not a valid code point");n.push(e<65536?i(e):i(55296+((e-=65536)>>10),e%1024+56320))}return n.join("")}})},4698:(t,e,n)=>{"use strict";var r=n(3350),o=n(9883),i="includes";r(r.P+r.F*n(2381)(i),"String",{includes:function(t){return!!~o(this,t,i).indexOf(t,arguments.length>1?arguments[1]:void 0)}})},4226:(t,e,n)=>{"use strict";n(9686)("italics",(function(t){return function(){return t(this,"i","","")}}))},4405:(t,e,n)=>{"use strict";var r=n(5813)(!0);n(7091)(String,"String",(function(t){this._t=String(t),this._i=0}),(function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})}))},3173:(t,e,n)=>{"use strict";n(9686)("link",(function(t){return function(e){return t(this,"a","href",e)}}))},3491:(t,e,n)=>{var r=n(3350),o=n(3057),i=n(1773);r(r.S,"String",{raw:function(t){for(var e=o(t.raw),n=i(e.length),r=arguments.length,a=[],u=0;n>u;)a.push(String(e[u++])),u<r&&a.push(String(arguments[u]));return a.join("")}})},8746:(t,e,n)=>{var r=n(3350);r(r.P,"String",{repeat:n(9582)})},8665:(t,e,n)=>{"use strict";n(9686)("small",(function(t){return function(){return t(this,"small","","")}}))},9765:(t,e,n)=>{"use strict";var r=n(3350),o=n(1773),i=n(9883),a="startsWith",u="".startsWith;r(r.P+r.F*n(2381)(a),"String",{startsWith:function(t){var e=i(this,t,a),n=o(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),r=String(t);return u?u.call(e,r,n):e.slice(n,n+r.length)===r}})},2420:(t,e,n)=>{"use strict";n(9686)("strike",(function(t){return function(){return t(this,"strike","","")}}))},2614:(t,e,n)=>{"use strict";n(9686)("sub",(function(t){return function(){return t(this,"sub","","")}}))},6977:(t,e,n)=>{"use strict";n(9686)("sup",(function(t){return function(){return t(this,"sup","","")}}))},3168:(t,e,n)=>{"use strict";n(1344)("trim",(function(t){return function(){return t(this,3)}}))},5960:(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},r(t)}var o=n(2276),i=n(1262),a=n(1329),u=n(3350),c=n(1951),s=n(4787).KEY,f=n(4308),l=n(3259),p=n(6668),h=n(6835),v=n(8076),d=n(3545),y=n(4819),b=n(5084),g=n(7375),m=n(9204),w=n(9603),_=n(6415),x=n(3057),S=n(4276),O=n(9933),P=n(4958),E=n(9563),j=n(154),k=n(1259),M=n(5234),L=n(1720),F=j.f,R=M.f,T=E.f,I=o.Symbol,A=o.JSON,C=A&&A.stringify,N=v("_hidden"),D=v("toPrimitive"),B={}.propertyIsEnumerable,U=l("symbol-registry"),W=l("symbols"),G=l("op-symbols"),V=Object.prototype,z="function"==typeof I&&!!k.f,q=o.QObject,K=!q||!q.prototype||!q.prototype.findChild,J=a&&f((function(){return 7!=P(R({},"a",{get:function(){return R(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=F(V,e);r&&delete V[e],R(t,e,n),r&&t!==V&&R(V,e,r)}:R,Z=function(t){var e=W[t]=P(I.prototype);return e._k=t,e},H=z&&"symbol"==r(I.iterator)?function(t){return"symbol"==r(t)}:function(t){return t instanceof I},Y=function(t,e,n){return t===V&&Y(G,e,n),m(t),e=S(e,!0),m(n),i(W,e)?(n.enumerable?(i(t,N)&&t[N][e]&&(t[N][e]=!1),n=P(n,{enumerable:O(0,!1)})):(i(t,N)||R(t,N,O(1,{})),t[N][e]=!0),J(t,e,n)):R(t,e,n)},X=function(t,e){m(t);for(var n,r=b(e=x(e)),o=0,i=r.length;i>o;)Y(t,n=r[o++],e[n]);return t},$=function(t){var e=B.call(this,t=S(t,!0));return!(this===V&&i(W,t)&&!i(G,t))&&(!(e||!i(this,t)||!i(W,t)||i(this,N)&&this[N][t])||e)},Q=function(t,e){if(t=x(t),e=S(e,!0),t!==V||!i(W,e)||i(G,e)){var n=F(t,e);return!n||!i(W,e)||i(t,N)&&t[N][e]||(n.enumerable=!0),n}},tt=function(t){for(var e,n=T(x(t)),r=[],o=0;n.length>o;)i(W,e=n[o++])||e==N||e==s||r.push(e);return r},et=function(t){for(var e,n=t===V,r=T(n?G:x(t)),o=[],a=0;r.length>a;)!i(W,e=r[a++])||n&&!i(V,e)||o.push(W[e]);return o};z||(c((I=function(){if(this instanceof I)throw TypeError("Symbol is not a constructor!");var t=h(arguments.length>0?arguments[0]:void 0),e=function e(n){this===V&&e.call(G,n),i(this,N)&&i(this[N],t)&&(this[N][t]=!1),J(this,t,O(1,n))};return a&&K&&J(V,t,{configurable:!0,set:e}),Z(t)}).prototype,"toString",(function(){return this._k})),j.f=Q,M.f=Y,n(399).f=E.f=tt,n(6418).f=$,k.f=et,a&&!n(5020)&&c(V,"propertyIsEnumerable",$,!0),d.f=function(t){return Z(v(t))}),u(u.G+u.W+u.F*!z,{Symbol:I});for(var nt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),rt=0;nt.length>rt;)v(nt[rt++]);for(var ot=L(v.store),it=0;ot.length>it;)y(ot[it++]);u(u.S+u.F*!z,"Symbol",{for:function(t){return i(U,t+="")?U[t]:U[t]=I(t)},keyFor:function(t){if(!H(t))throw TypeError(t+" is not a symbol!");for(var e in U)if(U[e]===t)return e},useSetter:function(){K=!0},useSimple:function(){K=!1}}),u(u.S+u.F*!z,"Object",{create:function(t,e){return void 0===e?P(t):X(P(t),e)},defineProperty:Y,defineProperties:X,getOwnPropertyDescriptor:Q,getOwnPropertyNames:tt,getOwnPropertySymbols:et});var at=f((function(){k.f(1)}));u(u.S+u.F*at,"Object",{getOwnPropertySymbols:function(t){return k.f(_(t))}}),A&&u(u.S+u.F*(!z||f((function(){var t=I();return"[null]"!=C([t])||"{}"!=C({a:t})||"{}"!=C(Object(t))}))),"JSON",{stringify:function(t){for(var e,n,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=e=r[1],(w(e)||void 0!==t)&&!H(t))return g(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!H(e))return e}),r[1]=e,C.apply(A,r)}}),I.prototype[D]||n(9247)(I.prototype,D,I.prototype.valueOf),p(I,"Symbol"),p(Math,"Math",!0),p(o.JSON,"JSON",!0)},4015:(t,e,n)=>{"use strict";var r=n(3350),o=n(1089),i=n(6019),a=n(9204),u=n(7149),c=n(1773),s=n(9603),f=n(2276).ArrayBuffer,l=n(7302),p=i.ArrayBuffer,h=i.DataView,v=o.ABV&&f.isView,d=p.prototype.slice,y=o.VIEW,b="ArrayBuffer";r(r.G+r.W+r.F*(f!==p),{ArrayBuffer:p}),r(r.S+r.F*!o.CONSTR,b,{isView:function(t){return v&&v(t)||s(t)&&y in t}}),r(r.P+r.U+r.F*n(4308)((function(){return!new p(2).slice(1,void 0).byteLength})),b,{slice:function(t,e){if(void 0!==d&&void 0===e)return d.call(a(this),t);for(var n=a(this).byteLength,r=u(t,n),o=u(void 0===e?n:e,n),i=new(l(this,p))(c(o-r)),s=new h(this),f=new h(i),v=0;r<o;)f.setUint8(v++,s.getUint8(r++));return i}}),n(6538)(b)},9294:(t,e,n)=>{var r=n(3350);r(r.G+r.W+r.F*!n(1089).ABV,{DataView:n(6019).DataView})},7708:(t,e,n)=>{n(8933)("Float32",4,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},5780:(t,e,n)=>{n(8933)("Float64",8,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},303:(t,e,n)=>{n(8933)("Int16",2,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},4302:(t,e,n)=>{n(8933)("Int32",4,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},2493:(t,e,n)=>{n(8933)("Int8",1,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},4127:(t,e,n)=>{n(8933)("Uint16",2,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},7200:(t,e,n)=>{n(8933)("Uint32",4,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},8276:(t,e,n)=>{n(8933)("Uint8",1,(function(t){return function(e,n,r){return t(this,e,n,r)}}))},3179:(t,e,n)=>{n(8933)("Uint8",1,(function(t){return function(e,n,r){return t(this,e,n,r)}}),!0)},7729:(t,e,n)=>{"use strict";var r,o=n(2276),i=n(2026)(0),a=n(1951),u=n(4787),c=n(7288),s=n(5268),f=n(9603),l=n(2023),p=n(2023),h=!o.ActiveXObject&&"ActiveXObject"in o,v="WeakMap",d=u.getWeak,y=Object.isExtensible,b=s.ufstore,g=function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},m={get:function(t){if(f(t)){var e=d(t);return!0===e?b(l(this,v)).get(t):e?e[this._i]:void 0}},set:function(t,e){return s.def(l(this,v),t,e)}},w=t.exports=n(1405)(v,g,m,s,!0,!0);p&&h&&(c((r=s.getConstructor(g,v)).prototype,m),u.NEED=!0,i(["delete","has","get","set"],(function(t){var e=w.prototype,n=e[t];a(e,t,(function(e,o){if(f(e)&&!y(e)){this._f||(this._f=new r);var i=this._f[t](e,o);return"set"==t?this:i}return n.call(this,e,o)}))})))},5612:(t,e,n)=>{"use strict";var r=n(5268),o=n(2023),i="WeakSet";n(1405)(i,(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(t){return r.def(o(this,i),t,!0)}},r,!1,!0)},518:(t,e,n)=>{"use strict";var r=n(3350),o=n(7849),i=n(6415),a=n(1773),u=n(8304),c=n(4164);r(r.P,"Array",{flatMap:function(t){var e,n,r=i(this);return u(t),e=a(r.length),n=c(r,0),o(n,r,r,e,0,1,t,arguments[1]),n}}),n(6224)("flatMap")},7215:(t,e,n)=>{"use strict";var r=n(3350),o=n(3997)(!0);r(r.P,"Array",{includes:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),n(6224)("includes")},1024:(t,e,n)=>{var r=n(3350),o=n(1305)(!0);r(r.S,"Object",{entries:function(t){return o(t)}})},4654:(t,e,n)=>{var r=n(3350),o=n(7738),i=n(3057),a=n(154),u=n(2122);r(r.S,"Object",{getOwnPropertyDescriptors:function(t){for(var e,n,r=i(t),c=a.f,s=o(r),f={},l=0;s.length>l;)void 0!==(n=c(r,e=s[l++]))&&u(f,e,n);return f}})},9830:(t,e,n)=>{var r=n(3350),o=n(1305)(!1);r(r.S,"Object",{values:function(t){return o(t)}})},3753:(t,e,n)=>{"use strict";var r=n(3350),o=n(7984),i=n(2276),a=n(7302),u=n(1650);r(r.P+r.R,"Promise",{finally:function(t){var e=a(this,o.Promise||i.Promise),n="function"==typeof t;return this.then(n?function(n){return u(e,t()).then((function(){return n}))}:t,n?function(n){return u(e,t()).then((function(){throw n}))}:t)}})},1417:(t,e,n)=>{"use strict";var r=n(3350),o=n(466),i=n(8160),a=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(i);r(r.P+r.F*a,"String",{padEnd:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0,!1)}})},3378:(t,e,n)=>{"use strict";var r=n(3350),o=n(466),i=n(8160),a=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(i);r(r.P+r.F*a,"String",{padStart:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0,!0)}})},2110:(t,e,n)=>{"use strict";n(1344)("trimLeft",(function(t){return function(){return t(this,1)}}),"trimStart")},1133:(t,e,n)=>{"use strict";n(1344)("trimRight",(function(t){return function(){return t(this,2)}}),"trimEnd")},5918:(t,e,n)=>{n(4819)("asyncIterator")},7998:(t,e,n)=>{for(var r=n(4287),o=n(1720),i=n(1951),a=n(2276),u=n(9247),c=n(479),s=n(8076),f=s("iterator"),l=s("toStringTag"),p=c.Array,h={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},v=o(h),d=0;d<v.length;d++){var y,b=v[d],g=h[b],m=a[b],w=m&&m.prototype;if(w&&(w[f]||u(w,f,p),w[l]||u(w,l,b),c[b]=p,g))for(y in r)w[y]||i(w,y,r[y],!0)}},8192:(t,e,n)=>{var r=n(3350),o=n(9770);r(r.G+r.B,{setImmediate:o.set,clearImmediate:o.clear})},151:(t,e,n)=>{var r=n(2276),o=n(3350),i=n(8160),a=[].slice,u=/MSIE .\./.test(i),c=function(t){return function(e,n){var r=arguments.length>2,o=!!r&&a.call(arguments,2);return t(r?function(){("function"==typeof e?e:Function(e)).apply(this,o)}:e,n)}};o(o.G+o.B+o.F*u,{setTimeout:c(r.setTimeout),setInterval:c(r.setInterval)})},6114:(t,e,n)=>{n(151),n(8192),n(7998),t.exports=n(7984)},1590:t=>{"use strict";function e(t){return e="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(t)}var n,r="object"===("undefined"==typeof Reflect?"undefined":e(Reflect))?Reflect:null,o=r&&"function"==typeof r.apply?r.apply:function(t,e,n){return Function.prototype.apply.call(t,e,n)};n=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var i=Number.isNaN||function(t){return t!=t};function a(){a.init.call(this)}t.exports=a,t.exports.once=function(t,e){return new Promise((function(n,r){function o(n){t.removeListener(e,i),r(n)}function i(){"function"==typeof t.removeListener&&t.removeListener("error",o),n([].slice.call(arguments))}y(t,e,i,{once:!0}),"error"!==e&&function(t,e,n){"function"==typeof t.on&&y(t,"error",e,{once:!0})}(t,o)}))},a.EventEmitter=a,a.prototype._events=void 0,a.prototype._eventsCount=0,a.prototype._maxListeners=void 0;var u=10;function c(t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+e(t))}function s(t){return void 0===t._maxListeners?a.defaultMaxListeners:t._maxListeners}function f(t,e,n,r){var o,i,a,u;if(c(n),void 0===(i=t._events)?(i=t._events=Object.create(null),t._eventsCount=0):(void 0!==i.newListener&&(t.emit("newListener",e,n.listener?n.listener:n),i=t._events),a=i[e]),void 0===a)a=i[e]=n,++t._eventsCount;else if("function"==typeof a?a=i[e]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(o=s(t))>0&&a.length>o&&!a.warned){a.warned=!0;var f=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");f.name="MaxListenersExceededWarning",f.emitter=t,f.type=e,f.count=a.length,u=f,console&&console.warn&&console.warn(u)}return t}function l(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(t,e,n){var r={fired:!1,wrapFn:void 0,target:t,type:e,listener:n},o=l.bind(r);return o.listener=n,r.wrapFn=o,o}function h(t,e,n){var r=t._events;if(void 0===r)return[];var o=r[e];return void 0===o?[]:"function"==typeof o?n?[o.listener||o]:[o]:n?function(t){for(var e=new Array(t.length),n=0;n<e.length;++n)e[n]=t[n].listener||t[n];return e}(o):d(o,o.length)}function v(t){var e=this._events;if(void 0!==e){var n=e[t];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function d(t,e){for(var n=new Array(e),r=0;r<e;++r)n[r]=t[r];return n}function y(t,n,r,o){if("function"==typeof t.on)o.once?t.once(n,r):t.on(n,r);else{if("function"!=typeof t.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+e(t));t.addEventListener(n,(function e(i){o.once&&t.removeEventListener(n,e),r(i)}))}}Object.defineProperty(a,"defaultMaxListeners",{enumerable:!0,get:function(){return u},set:function(t){if("number"!=typeof t||t<0||i(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");u=t}}),a.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},a.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||i(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this},a.prototype.getMaxListeners=function(){return s(this)},a.prototype.emit=function(t){for(var e=[],n=1;n<arguments.length;n++)e.push(arguments[n]);var r="error"===t,i=this._events;if(void 0!==i)r=r&&void 0===i.error;else if(!r)return!1;if(r){var a;if(e.length>0&&(a=e[0]),a instanceof Error)throw a;var u=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw u.context=a,u}var c=i[t];if(void 0===c)return!1;if("function"==typeof c)o(c,this,e);else{var s=c.length,f=d(c,s);for(n=0;n<s;++n)o(f[n],this,e)}return!0},a.prototype.addListener=function(t,e){return f(this,t,e,!1)},a.prototype.on=a.prototype.addListener,a.prototype.prependListener=function(t,e){return f(this,t,e,!0)},a.prototype.once=function(t,e){return c(e),this.on(t,p(this,t,e)),this},a.prototype.prependOnceListener=function(t,e){return c(e),this.prependListener(t,p(this,t,e)),this},a.prototype.removeListener=function(t,e){var n,r,o,i,a;if(c(e),void 0===(r=this._events))return this;if(void 0===(n=r[t]))return this;if(n===e||n.listener===e)0==--this._eventsCount?this._events=Object.create(null):(delete r[t],r.removeListener&&this.emit("removeListener",t,n.listener||e));else if("function"!=typeof n){for(o=-1,i=n.length-1;i>=0;i--)if(n[i]===e||n[i].listener===e){a=n[i].listener,o=i;break}if(o<0)return this;0===o?n.shift():function(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}(n,o),1===n.length&&(r[t]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",t,a||e)}return this},a.prototype.off=a.prototype.removeListener,a.prototype.removeAllListeners=function(t){var e,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[t]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[t]),this;if(0===arguments.length){var o,i=Object.keys(n);for(r=0;r<i.length;++r)"removeListener"!==(o=i[r])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(e=n[t]))this.removeListener(t,e);else if(void 0!==e)for(r=e.length-1;r>=0;r--)this.removeListener(t,e[r]);return this},a.prototype.listeners=function(t){return h(this,t,!0)},a.prototype.rawListeners=function(t){return h(this,t,!1)},a.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):v.call(t,e)},a.prototype.listenerCount=v,a.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]}},7588:(t,e,n)=>{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},r(t)}var o=function(t){"use strict";var e,n=Object.prototype,o=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function f(t,e,n,r){var o=e&&e.prototype instanceof b?e:b,i=Object.create(o.prototype),a=new M(r||[]);return i._invoke=function(t,e,n){var r=p;return function(o,i){if(r===v)throw new Error("Generator is already running");if(r===d){if("throw"===o)throw i;return F()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var u=E(a,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===p)throw r=d,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=v;var c=l(t,e,n);if("normal"===c.type){if(r=n.done?d:h,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=d,n.method="throw",n.arg=c.arg)}}}(t,n,a),i}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=f;var p="suspendedStart",h="suspendedYield",v="executing",d="completed",y={};function b(){}function g(){}function m(){}var w={};s(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(L([])));x&&x!==n&&o.call(x,a)&&(w=x);var S=m.prototype=b.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function P(t,e){function n(i,a,u,c){var s=l(t[i],t,a);if("throw"!==s.type){var f=s.arg,p=f.value;return p&&"object"===r(p)&&o.call(p,"__await")?e.resolve(p.__await).then((function(t){n("next",t,u,c)}),(function(t){n("throw",t,u,c)})):e.resolve(p).then((function(t){f.value=t,u(f)}),(function(t){return n("throw",t,u,c)}))}c(s.arg)}var i;this._invoke=function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return i=i?i.then(o,o):o()}}function E(t,n){var r=t.iterator[n.method];if(r===e){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=e,E(t,n),"throw"===n.method))return y;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return y}var o=l(r,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,y;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,y):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function j(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function M(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function L(t){if(t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function n(){for(;++r<t.length;)if(o.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}return{next:F}}function F(){return{value:e,done:!0}}return g.prototype=m,s(S,"constructor",m),s(m,"constructor",g),g.displayName=s(m,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,s(t,c,"GeneratorFunction")),t.prototype=Object.create(S),t},t.awrap=function(t){return{__await:t}},O(P.prototype),s(P.prototype,u,(function(){return this})),t.AsyncIterator=P,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new P(f(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(S),s(S,c,"Generator"),s(S,a,(function(){return this})),s(S,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=L,M.prototype={constructor:M,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(k),!t)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(r,o){return u.type="throw",u.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),s=o.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),k(n),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;k(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:L(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}("object"===r(t=n.nmd(t))?t.exports:{});try{regeneratorRuntime=o}catch(t){"object"===("undefined"==typeof globalThis?"undefined":r(globalThis))?globalThis.regeneratorRuntime=o:Function("r","regeneratorRuntime = r")(o)}},8461:(t,e,n)=>{"use strict";var r=n(1590),o=n.n(r);function i(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)}}const a=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.control=e,this.value=0}var e,n;return e=t,(n=[{key:"update",value:function(t,e){var n=!1;t.value!==this.value&&(n=!0,this.value=t.value),n&&e.emit(this.control,t,this)}}])&&i(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function u(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)}}const c=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.control=e,this.value=0}var e,n;return e=t,(n=[{key:"update",value:function(t,e){t.value!==this.value&&(this.value=t.value,1===this.value&&e.emit("".concat(this.control,":pressed"),t,this),0===this.value&&e.emit("".concat(this.control,":released"),t,this),e.emit(this.control,t,this))}},{key:"poll",value:function(){return this.value}},{key:"toJSON",value:function(){return{control:this.control,type:"Button",value:this.value}}}])&&u(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),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)}}const f=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.control=e,this.value=null}var e,n;return e=t,(n=[{key:"update",value:function(t,e){this.value=t.value,e.emit(this.control,t,this)}}])&&s(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function l(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)}}const 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.control=e,this.value=0}var e,n;return e=t,(n=[{key:"update",value:function(t,e){t.value!==this.value&&(this.value=t.value,e.emit(this.control,t,this))}}])&&l(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function h(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)}}const v=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.control=e,this.value="",this.x=0,this.y=0}var e,n;return e=t,(n=[{key:"update",value:function(t,e){t.value===this.value&&t.x===this.x&&t.y===this.y||(this.value=t.value,this.x=t.x,this.y=t.y,e.emit(this.control,t,this))}}])&&h(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();Promise.resolve(!1),Promise.resolve(!0);var d=Promise.resolve();function y(t,e){return t||(t=0),new Promise((function(n){return setTimeout((function(){return n(e)}),t)}))}function b(){return Math.random().toString(36).substring(2)}var g=0,m=0;function w(){var t=(new Date).getTime();return t===g?1e3*t+ ++m:(g=t,m=0,1e3*t)}var _="[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0);const x={create:function(t){var e={messagesCallback:null,bc:new BroadcastChannel(t),subFns:[]};return e.bc.onmessage=function(t){e.messagesCallback&&e.messagesCallback(t.data)},e},close:function(t){t.bc.close(),t.subFns=[]},onMessage:function(t,e){t.messagesCallback=e},postMessage:function(t,e){try{return t.bc.postMessage(e,!1),d}catch(t){return Promise.reject(t)}},canBeUsed:function(){if(_&&"undefined"==typeof window)return!1;if("function"==typeof BroadcastChannel){if(BroadcastChannel._pubkey)throw new Error("BroadcastChannel: Do not overwrite window.BroadcastChannel with this module, this is not a polyfill");return!0}return!1},type:"native",averageResponseTime:function(){return 150},microSeconds:w};var S=function(){function t(t){this.ttl=t,this.set=new Set,this.timeMap=new Map}return t.prototype.has=function(t){return this.set.has(t)},t.prototype.add=function(t){var e=this;this.timeMap.set(t,O()),this.set.add(t),setTimeout((function(){!function(t){for(var e=O()-t.ttl,n=t.set[Symbol.iterator]();;){var r=n.next().value;if(!r)return;if(!(t.timeMap.get(r)<e))return;t.timeMap.delete(r),t.set.delete(r)}}(e)}),0)},t.prototype.clear=function(){this.set.clear(),this.timeMap.clear()},t}();function O(){return(new Date).getTime()}function P(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=JSON.parse(JSON.stringify(t));return void 0===e.webWorkerSupport&&(e.webWorkerSupport=!0),e.idb||(e.idb={}),e.idb.ttl||(e.idb.ttl=45e3),e.idb.fallbackInterval||(e.idb.fallbackInterval=150),t.idb&&"function"==typeof t.idb.onclose&&(e.idb.onclose=t.idb.onclose),e.localstorage||(e.localstorage={}),e.localstorage.removeTimeout||(e.localstorage.removeTimeout=6e4),t.methods&&(e.methods=t.methods),e.node||(e.node={}),e.node.ttl||(e.node.ttl=12e4),e.node.maxParallelWrites||(e.node.maxParallelWrites=2048),void 0===e.node.useFastPath&&(e.node.useFastPath=!0),e}var E="messages";function j(){if("undefined"!=typeof indexedDB)return indexedDB;if("undefined"!=typeof window){if(void 0!==window.mozIndexedDB)return window.mozIndexedDB;if(void 0!==window.webkitIndexedDB)return window.webkitIndexedDB;if(void 0!==window.msIndexedDB)return window.msIndexedDB}return!1}function k(t){t.closed||M(t).then((function(){return y(t.options.idb.fallbackInterval)})).then((function(){return k(t)}))}function M(t){return t.closed?d:t.messagesCallback?(e=t.db,n=t.lastCursorId,r=e.transaction(E).objectStore(E),o=[],new Promise((function(t){(function(){try{var t=IDBKeyRange.bound(n+1,1/0);return r.openCursor(t)}catch(t){return r.openCursor()}}()).onsuccess=function(e){var r=e.target.result;r?r.value.id<n+1?r.continue(n+1):(o.push(r.value),r.continue()):t(o)}}))).then((function(e){var n=e.filter((function(t){return!!t})).map((function(e){return e.id>t.lastCursorId&&(t.lastCursorId=e.id),e})).filter((function(e){return function(t,e){return!(t.uuid===e.uuid||e.eMIs.has(t.id)||t.data.time<e.messagesCallbackTime)}(e,t)})).sort((function(t,e){return t.time-e.time}));return n.forEach((function(e){t.messagesCallback&&(t.eMIs.add(e.id),t.messagesCallback(e.data))})),d})):d;var e,n,r,o}const L={create:function(t,e){return e=P(e),function(t){var e="pubkey.broadcast-channel-0-"+t,n=j().open(e,1);return n.onupgradeneeded=function(t){t.target.result.createObjectStore(E,{keyPath:"id",autoIncrement:!0})},new Promise((function(t,e){n.onerror=function(t){return e(t)},n.onsuccess=function(){t(n.result)}}))}(t).then((function(n){var r={closed:!1,lastCursorId:0,channelName:t,options:e,uuid:b(),eMIs:new S(2*e.idb.ttl),writeBlockPromise:d,messagesCallback:null,readQueuePromises:[],db:n};return n.onclose=function(){r.closed=!0,e.idb.onclose&&e.idb.onclose()},k(r),r}))},close:function(t){t.closed=!0,t.db.close()},onMessage:function(t,e,n){t.messagesCallbackTime=n,t.messagesCallback=e,M(t)},postMessage:function(t,e){return t.writeBlockPromise=t.writeBlockPromise.then((function(){return function(t,e,n){var r={uuid:e,time:(new Date).getTime(),data:n},o=t.transaction([E],"readwrite");return new Promise((function(t,e){o.oncomplete=function(){return t()},o.onerror=function(t){return e(t)},o.objectStore(E).add(r)}))}(t.db,t.uuid,e)})).then((function(){var e,n;0===(0,10,Math.floor(11*Math.random()+0))&&(e=t.db,n=t.options.idb.ttl,function(t,e){var n=(new Date).getTime()-e,r=t.transaction(E).objectStore(E),o=[];return new Promise((function(t){r.openCursor().onsuccess=function(e){var r=e.target.result;if(r){var i=r.value;if(!(i.time<n))return void t(o);o.push(i),r.continue()}else t(o)}}))}(e,n).then((function(t){return Promise.all(t.map((function(t){return function(t,e){var n=t.transaction([E],"readwrite").objectStore(E).delete(e);return new Promise((function(t){n.onsuccess=function(){return t()}}))}(e,t.id)})))})))})),t.writeBlockPromise},canBeUsed:function(){return!_&&!!j()},type:"idb",averageResponseTime:function(t){return 2*t.idb.fallbackInterval},microSeconds:w};function F(){var t;if("undefined"==typeof window)return null;try{t=window.localStorage,t=window["ie8-eventlistener/storage"]||window.localStorage}catch(t){}return t}function R(t){return"pubkey.broadcastChannel-"+t}function T(){if(_)return!1;var t=F();if(!t)return!1;try{var e="__broadcastchannel_check";t.setItem(e,"works"),t.removeItem(e)}catch(t){return!1}return!0}const I={create:function(t,e){if(e=P(e),!T())throw new Error("BroadcastChannel: localstorage cannot be used");var n=b(),r=new S(e.localstorage.removeTimeout),o={channelName:t,uuid:n,eMIs:r};return o.listener=function(t,e){var i=R(t),a=function(t){var e;t.key===i&&(e=JSON.parse(t.newValue),o.messagesCallback&&e.uuid!==n&&e.token&&!r.has(e.token)&&(e.data.time&&e.data.time<o.messagesCallbackTime||(r.add(e.token),o.messagesCallback(e.data))))};return window.addEventListener("storage",a),a}(t),o},close:function(t){var e;e=t.listener,window.removeEventListener("storage",e)},onMessage:function(t,e,n){t.messagesCallbackTime=n,t.messagesCallback=e},postMessage:function(t,e){return new Promise((function(n){y().then((function(){var r=R(t.channelName),o={token:b(),time:(new Date).getTime(),data:e,uuid:t.uuid},i=JSON.stringify(o);F().setItem(r,i);var a=document.createEvent("Event");a.initEvent("storage",!0,!0),a.key=r,a.newValue=i,window.dispatchEvent(a),n()}))}))},canBeUsed:T,type:"localstorage",averageResponseTime:function(){var t=navigator.userAgent.toLowerCase();return t.includes("safari")&&!t.includes("chrome")?240:120},microSeconds:w};var A=w,C=new Set;const N={create:function(t){var e={name:t,messagesCallback:null};return C.add(e),e},close:function(t){C.delete(t)},onMessage:function(t,e){t.messagesCallback=e},postMessage:function(t,e){return new Promise((function(n){return setTimeout((function(){Array.from(C).filter((function(e){return e.name===t.name})).filter((function(e){return e!==t})).filter((function(t){return!!t.messagesCallback})).forEach((function(t){return t.messagesCallback(e)})),n()}),5)}))},canBeUsed:function(){return!0},type:"simulate",averageResponseTime:function(){return 5},microSeconds:A};var D=[x,L,I],B=new Set,U=0,W=function(t,e){var n,r,o;this.id=U++,B.add(this),this.name=t,this.options=P(e),this.method=function(t){var e=[].concat(t.methods,D).filter(Boolean);if(t.type){if("simulate"===t.type)return N;var n=e.find((function(e){return e.type===t.type}));if(n)return n;throw new Error("method-type "+t.type+" not found")}t.webWorkerSupport||_||(e=e.filter((function(t){return"idb"!==t.type})));var r=e.find((function(t){return t.canBeUsed()}));if(r)return r;throw new Error("No useable method found in "+JSON.stringify(D.map((function(t){return t.type}))))}(this.options),this._iL=!1,this._onML=null,this._addEL={message:[],internal:[]},this._uMP=new Set,this._befC=[],this._prepP=null,(o=r=(n=this).method.create(n.name,n.options))&&"function"==typeof o.then?(n._prepP=r,r.then((function(t){n._state=t}))):n._state=r};function G(t,e,n){var r={time:t.method.microSeconds(),type:e,data:n};return(t._prepP?t._prepP:d).then((function(){var e=t.method.postMessage(t._state,r);return t._uMP.add(e),e.catch().then((function(){return t._uMP.delete(e)})),e}))}function V(t){return t._addEL.message.length>0||t._addEL.internal.length>0}function z(t,e,n){t._addEL[e].push(n),function(t){if(!t._iL&&V(t)){var e=function(e){t._addEL[e.type].forEach((function(t){var n=t.time-1e5;e.time>=n&&t.fn(e.data)}))},n=t.method.microSeconds();t._prepP?t._prepP.then((function(){t._iL=!0,t.method.onMessage(t._state,e,n)})):(t._iL=!0,t.method.onMessage(t._state,e,n))}}(t)}function q(t,e,n){t._addEL[e]=t._addEL[e].filter((function(t){return t!==n})),function(t){if(t._iL&&!V(t)){t._iL=!1;var e=t.method.microSeconds();t.method.onMessage(t._state,null,e)}}(t)}function K(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 J(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?K(Object(n),!0).forEach((function(e){Z(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):K(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Z(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function H(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 Y(t,e,n){return e&&H(t.prototype,e),n&&H(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function X(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}W._pubkey=!0,W.prototype={postMessage:function(t){if(this.closed)throw new Error("BroadcastChannel.postMessage(): Cannot post message after channel has closed "+JSON.stringify(t));return G(this,"message",t)},postInternal:function(t){return G(this,"internal",t)},set onmessage(t){var e={time:this.method.microSeconds(),fn:t};q(this,"message",this._onML),t&&"function"==typeof t?(this._onML=e,z(this,"message",e)):this._onML=null},addEventListener:function(t,e){z(this,t,{time:this.method.microSeconds(),fn:e})},removeEventListener:function(t,e){q(this,t,this._addEL[t].find((function(t){return t.fn===e})))},close:function(){var t=this;if(!this.closed){B.delete(this),this.closed=!0;var e=this._prepP?this._prepP:d;return this._onML=null,this._addEL.message=[],e.then((function(){return Promise.all(Array.from(t._uMP))})).then((function(){return Promise.all(t._befC.map((function(t){return t()})))})).then((function(){return t.method.close(t._state)}))}},get type(){return this.method.type},get isClosed(){return this.closed}};var $=Y((function t(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"PageDevice";X(this,t);var o=e.devices||e;this.channel=new W(r),o.forEach((function(t){t.on("updated",(function(t){var e=J({},t);e.device="".concat(r,"-").concat(t.device),e.control="Page".concat(t.control),delete e.target,delete e.event,n.channel.postMessage(e)}))}))}));function Q(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 tt(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)}}const et={Amount:a,Button:c,Data:f,Dial:p,Drop:v,PageAction:$,Pointer:function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.control=e,this.value=0,this.x=0,this.y=0}var e,n;return e=t,(n=[{key:"update",value:function(t,e){t.value===this.value&&t.x===this.x&&t.y===this.y||(this.value=t.value,this.x=t.x,this.y=t.y,e.emit(this.control,t,this))}}])&&Q(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}(),Joystick:function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.control=e,this.x=0,this.y=0}var e,n;return e=t,(n=[{key:"update",value:function(t,e){t.x===this.x&&t.y===this.y||(this.x=t.x,this.y=t.y,e.emit(this.control,t,this))}}])&&tt(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}()};function nt(t){return nt="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},nt(t)}function rt(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 ot(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?rt(Object(n),!0).forEach((function(e){it(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):rt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function it(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function at(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ut(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 ct(t,e){return ct=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},ct(t,e)}function st(t,e){if(e&&("object"===nt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function ft(t){return ft=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},ft(t)}var lt=function(t){!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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ct(t,e)}(a,t);var e,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=ft(r);if(o){var n=ft(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return st(this,t)});function a(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return at(this,a),(t=i.call(this)).devices=[],t.controls={},t.controlMap=ot(ot({},et),n),e.forEach((function(e){return t.addDevice(e)})),t}return e=a,(n=[{key:"addControl",value:function(t,e){var n=this.controlMap[e];if(n)return this.controls[t]=new n(t);var r=this.controls[t]=new this.controlMap.Data(t);return console.warn("".concat(t,': "').concat(e,"\" has no associated control class. Using 'Data'.")),r}},{key:"addDevice",value:function(t){var e=this;this.devices.push(t),t.on("updated",(function(t){var n=t.control,r=e.controls[n];(r||(r=e.addControl(n,t.type)))&&r.update(t,e)}))}},{key:"getControl",value:function(t,e){var n=this.controls[t];return!n&&e&&(n=this.addControl(t,e)),n}},{key:"poll",value:function(t){var e,n;return null===(e=this.controls[t])||void 0===e||null===(n=e.poll)||void 0===n?void 0:n.call(e)}}])&&ut(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(o());const pt=lt;function ht(t){return ht="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},ht(t)}function vt(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=yt(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}function dt(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){u=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(t,e)||yt(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function yt(t,e){if(t){if("string"==typeof t)return bt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?bt(t,e):void 0}}function bt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function gt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function mt(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 wt(t,e){return wt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},wt(t,e)}function _t(t,e){if(e&&("object"===ht(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function xt(t){return xt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},xt(t)}function St(t){return"string"==typeof t?{control:t,data:void 0}:{control:t.control,data:t.data}}const Ot=function(t){!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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&wt(t,e)}(a,t);var e,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=xt(r);if(o){var n=xt(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return _t(this,t)});function a(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(gt(this,a),(e=i.call(this)).controller=t,e.enabled="function"==typeof r.enabled?r.enabled:function(){return!0},e.preventDefault=!1!==r.preventDefault,e.autoTick=!1!==r.autoTick,e._bindings=new Map,e._controlIndex=new Map,e._heldByAction=new Map,e._lastEvent=new Map,e._listeners=[],e._disposed=!1,e._wasEnabled=!0,e._raf=0,e._applyBindings(n),e.preventDefault&&(e._onKeyDownCapture=function(t){e.enabled()&&e._keyboardCodes.has(t.code)&&t.preventDefault()},window.addEventListener("keydown",e._onKeyDownCapture,!0)),e._onBlur=function(){e.clearHeld()},window.addEventListener("blur",e._onBlur),e.autoTick){var o=function t(){e._disposed||(e._raf=requestAnimationFrame(t),e._tick())};e._raf=requestAnimationFrame(o)}return e}return e=a,(n=[{key:"_applyBindings",value:function(t){var e=this;this._keyboardCodes=new Set;for(var n=0,r=Object.entries(t);n<r.length;n++){var o=dt(r[n],2),i=o[0],a=(o[1]||[]).map(St);this._bindings.set(i,a),this._heldByAction.set(i,new Set);var u,c=vt(a);try{var s=function(){var t,n=u.value;((t=n.control).startsWith("Key")||t.startsWith("Arrow")||t.startsWith("Digit")||t.startsWith("Numpad")||"Space"===t||"Enter"===t||"Escape"===t||"Tab"===t||"Backspace"===t||"ShiftLeft"===t||"ShiftRight"===t||"ControlLeft"===t||"ControlRight"===t||"AltLeft"===t||"AltRight"===t)&&e._keyboardCodes.add(n.control);var r=e._controlIndex.get(n.control);r||(r=[],e._controlIndex.set(n.control,r)),r.push({action:i,data:n.data});var o=function(t){return e._onPhysicalPressed(n.control,t)},a=function(t){return e._onPhysicalReleased(n.control,t)};e.controller.on("".concat(n.control,":pressed"),o),e.controller.on("".concat(n.control,":released"),a),e._listeners.push({event:"".concat(n.control,":pressed"),fn:o},{event:"".concat(n.control,":released"),fn:a})};for(c.s();!(u=c.n()).done;)s()}catch(t){c.e(t)}finally{c.f()}}}},{key:"_isEnabled",value:function(){var t=this.enabled();return this._wasEnabled&&!t&&this.clearHeld(),this._wasEnabled=t,t}},{key:"_onPhysicalPressed",value:function(t,e){if(this._isEnabled()){var n=this._controlIndex.get(t);if(n){var r,o=vt(n);try{for(o.s();!(r=o.n()).done;){var i=r.value,a=i.action,u=i.data,c=this._heldByAction.get(a),s=0===c.size;c.add(t);var f={action:a,control:t,data:u,device:null==e?void 0:e.device,raw:e};this._lastEvent.set(a,f),s&&this.emit("".concat(a,":pressed"),f),this.emit(a,f)}}catch(t){o.e(t)}finally{o.f()}}}}},{key:"_onPhysicalReleased",value:function(t,e){var n=this._controlIndex.get(t);if(n){var r,o=vt(n);try{for(o.s();!(r=o.n()).done;){var i=r.value,a=i.action,u=i.data,c=this._heldByAction.get(a);if(c.has(t)){c.delete(t);var s={action:a,control:t,data:u,device:null==e?void 0:e.device,raw:e};if(0===c.size)this._lastEvent.delete(a),this.emit("".concat(a,":released"),s);else{var f,l=vt(this._bindings.get(a)||[]);try{for(l.s();!(f=l.n()).done;){var p=f.value;if(c.has(p.control)){this._lastEvent.set(a,{action:a,control:p.control,data:p.data,device:null==e?void 0:e.device,raw:e});break}}}catch(t){l.e(t)}finally{l.f()}}}}}catch(t){o.e(t)}finally{o.f()}}}},{key:"_tick",value:function(){if(this._isEnabled()){var t,e=vt(this._heldByAction);try{for(e.s();!(t=e.n()).done;){var n=dt(t.value,2),r=n[0];if(0!==n[1].size){var o=this._lastEvent.get(r);o&&this.emit("".concat(r,":held"),o)}}}catch(t){e.e(t)}finally{e.f()}}}},{key:"held",value:function(t){var e=this._heldByAction.get(t);return Boolean(e&&e.size>0)}},{key:"heldEvent",value:function(t){return this.held(t)&&this._lastEvent.get(t)||null}},{key:"clearHeld",value:function(){var t,e=vt(this._heldByAction);try{for(e.s();!(t=e.n()).done;){var n=dt(t.value,2),r=n[0],o=n[1];if(0!==o.size){var i=this._lastEvent.get(r);o.clear(),this._lastEvent.delete(r),this.emit("".concat(r,":released"),i||{action:r,control:null,data:void 0})}}}catch(t){e.e(t)}finally{e.f()}}},{key:"dispose",value:function(){if(!this._disposed){this._disposed=!0,cancelAnimationFrame(this._raf);var t,e=vt(this._listeners);try{for(e.s();!(t=e.n()).done;){var n=t.value,r=n.event,o=n.fn;this.controller.off(r,o)}}catch(t){e.e(t)}finally{e.f()}this._listeners.length=0,this._onKeyDownCapture&&window.removeEventListener("keydown",this._onKeyDownCapture,!0),window.removeEventListener("blur",this._onBlur),this.removeAllListeners()}}}])&&mt(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(o()),Pt=JSON.parse('{"00002a7e-0000-1000-8000-00805f9b34fb":"aerobic_heart_rate_lower_limit","00002a84-0000-1000-8000-00805f9b34fb":"aerobic_heart_rate_upper_limit","00002a7f-0000-1000-8000-00805f9b34fb":"aerobic_threshold","00002a80-0000-1000-8000-00805f9b34fb":"age","00002a5a-0000-1000-8000-00805f9b34fb":"aggregate","00002a43-0000-1000-8000-00805f9b34fb":"alert_category_id","00002a42-0000-1000-8000-00805f9b34fb":"alert_category_id_bit_mask","00002a06-0000-1000-8000-00805f9b34fb":"alert_level","00002a44-0000-1000-8000-00805f9b34fb":"alert_notification_control_point","00002a3f-0000-1000-8000-00805f9b34fb":"alert_status","00002ab3-0000-1000-8000-00805f9b34fb":"altitude","00002a81-0000-1000-8000-00805f9b34fb":"anaerobic_heart_rate_lower_limit","00002a82-0000-1000-8000-00805f9b34fb":"anaerobic_heart_rate_upper_limit","00002a83-0000-1000-8000-00805f9b34fb":"anaerobic_threshold","00002a58-0000-1000-8000-00805f9b34fb":"analog","00002a73-0000-1000-8000-00805f9b34fb":"apparent_wind_direction","00002a72-0000-1000-8000-00805f9b34fb":"apparent_wind_speed","00002a01-0000-1000-8000-00805f9b34fb":"gap.appearance","00002aa3-0000-1000-8000-00805f9b34fb":"barometric_pressure_trend","00002a19-0000-1000-8000-00805f9b34fb":"battery_level","00002a49-0000-1000-8000-00805f9b34fb":"blood_pressure_feature","00002a35-0000-1000-8000-00805f9b34fb":"blood_pressure_measurement","00002a9b-0000-1000-8000-00805f9b34fb":"body_composition_feature","00002a9c-0000-1000-8000-00805f9b34fb":"body_composition_measurement","00002a38-0000-1000-8000-00805f9b34fb":"body_sensor_location","00002aa4-0000-1000-8000-00805f9b34fb":"bond_management_control_point","00002aa5-0000-1000-8000-00805f9b34fb":"bond_management_feature","00002a22-0000-1000-8000-00805f9b34fb":"boot_keyboard_input_report","00002a32-0000-1000-8000-00805f9b34fb":"boot_keyboard_output_report","00002a33-0000-1000-8000-00805f9b34fb":"boot_mouse_input_report","00002aa6-0000-1000-8000-00805f9b34fb":"gap.central_address_resolution_support","00002aa8-0000-1000-8000-00805f9b34fb":"cgm_feature","00002aa7-0000-1000-8000-00805f9b34fb":"cgm_measurement","00002aab-0000-1000-8000-00805f9b34fb":"cgm_session_run_time","00002aaa-0000-1000-8000-00805f9b34fb":"cgm_session_start_time","00002aac-0000-1000-8000-00805f9b34fb":"cgm_specific_ops_control_point","00002aa9-0000-1000-8000-00805f9b34fb":"cgm_status","00002a5c-0000-1000-8000-00805f9b34fb":"csc_feature","00002a5b-0000-1000-8000-00805f9b34fb":"csc_measurement","00002a2b-0000-1000-8000-00805f9b34fb":"current_time","00002a66-0000-1000-8000-00805f9b34fb":"cycling_power_control_point","00002a65-0000-1000-8000-00805f9b34fb":"cycling_power_feature","00002a63-0000-1000-8000-00805f9b34fb":"cycling_power_measurement","00002a64-0000-1000-8000-00805f9b34fb":"cycling_power_vector","00002a99-0000-1000-8000-00805f9b34fb":"database_change_increment","00002a85-0000-1000-8000-00805f9b34fb":"date_of_birth","00002a86-0000-1000-8000-00805f9b34fb":"date_of_threshold_assessment","00002a08-0000-1000-8000-00805f9b34fb":"date_time","00002a0a-0000-1000-8000-00805f9b34fb":"day_date_time","00002a09-0000-1000-8000-00805f9b34fb":"day_of_week","00002a7d-0000-1000-8000-00805f9b34fb":"descriptor_value_changed","00002a00-0000-1000-8000-00805f9b34fb":"gap.device_name","00002a7b-0000-1000-8000-00805f9b34fb":"dew_point","00002a56-0000-1000-8000-00805f9b34fb":"digital","00002a0d-0000-1000-8000-00805f9b34fb":"dst_offset","00002a6c-0000-1000-8000-00805f9b34fb":"elevation","00002a87-0000-1000-8000-00805f9b34fb":"email_address","00002a0c-0000-1000-8000-00805f9b34fb":"exact_time_256","00002a88-0000-1000-8000-00805f9b34fb":"fat_burn_heart_rate_lower_limit","00002a89-0000-1000-8000-00805f9b34fb":"fat_burn_heart_rate_upper_limit","00002a26-0000-1000-8000-00805f9b34fb":"firmware_revision_string","00002a8a-0000-1000-8000-00805f9b34fb":"first_name","00002a8b-0000-1000-8000-00805f9b34fb":"five_zone_heart_rate_limits","00002ab2-0000-1000-8000-00805f9b34fb":"floor_number","00002a8c-0000-1000-8000-00805f9b34fb":"gender","00002a51-0000-1000-8000-00805f9b34fb":"glucose_feature","00002a18-0000-1000-8000-00805f9b34fb":"glucose_measurement","00002a34-0000-1000-8000-00805f9b34fb":"glucose_measurement_context","00002a74-0000-1000-8000-00805f9b34fb":"gust_factor","00002a27-0000-1000-8000-00805f9b34fb":"hardware_revision_string","00002a39-0000-1000-8000-00805f9b34fb":"heart_rate_control_point","00002a8d-0000-1000-8000-00805f9b34fb":"heart_rate_max","00002a37-0000-1000-8000-00805f9b34fb":"heart_rate_measurement","00002a7a-0000-1000-8000-00805f9b34fb":"heat_index","00002a8e-0000-1000-8000-00805f9b34fb":"height","00002a4c-0000-1000-8000-00805f9b34fb":"hid_control_point","00002a4a-0000-1000-8000-00805f9b34fb":"hid_information","00002a8f-0000-1000-8000-00805f9b34fb":"hip_circumference","00002a6f-0000-1000-8000-00805f9b34fb":"humidity","00002aad-0000-1000-8000-00805f9b34fb":"indoor_positioning_configuration","00002a1e-0000-1000-8000-00805f9b34fb":"intermediate_temperature","00002a77-0000-1000-8000-00805f9b34fb":"irradiance","00002aa2-0000-1000-8000-00805f9b34fb":"language","00002a90-0000-1000-8000-00805f9b34fb":"last_name","00002aae-0000-1000-8000-00805f9b34fb":"latitude","00002a6b-0000-1000-8000-00805f9b34fb":"ln_control_point","00002a6a-0000-1000-8000-00805f9b34fb":"ln_feature","00002ab0-0000-1000-8000-00805f9b34fb":"local_north_coordinate","00002a0f-0000-1000-8000-00805f9b34fb":"local_time_information","00002a67-0000-1000-8000-00805f9b34fb":"location_and_speed","00002ab5-0000-1000-8000-00805f9b34fb":"location_name","00002aaf-0000-1000-8000-00805f9b34fb":"longitude","00002a2c-0000-1000-8000-00805f9b34fb":"magnetic_declination","00002aa0-0000-1000-8000-00805f9b34fb":"magnetic_flux_density_2D","00002aa1-0000-1000-8000-00805f9b34fb":"magnetic_flux_density_3D","00002a29-0000-1000-8000-00805f9b34fb":"manufacturer_name_string","00002a91-0000-1000-8000-00805f9b34fb":"maximum_recommended_heart_rate","00002a21-0000-1000-8000-00805f9b34fb":"measurement_interval","00002a24-0000-1000-8000-00805f9b34fb":"model_number_string","00002a68-0000-1000-8000-00805f9b34fb":"navigation","00002a46-0000-1000-8000-00805f9b34fb":"new_alert","00002a04-0000-1000-8000-00805f9b34fb":"gap.peripheral_preferred_connection_parameters","00002a02-0000-1000-8000-00805f9b34fb":"gap.peripheral_privacy_flag","00002a5f-0000-1000-8000-00805f9b34fb":"plx_continuous_measurement","00002a60-0000-1000-8000-00805f9b34fb":"plx_features","00002a5e-0000-1000-8000-00805f9b34fb":"plx_spot_check_measurement","00002a50-0000-1000-8000-00805f9b34fb":"pnp_id","00002a75-0000-1000-8000-00805f9b34fb":"pollen_concentration","00002a69-0000-1000-8000-00805f9b34fb":"position_quality","00002a6d-0000-1000-8000-00805f9b34fb":"pressure","00002a4e-0000-1000-8000-00805f9b34fb":"protocol_mode","00002a78-0000-1000-8000-00805f9b34fb":"rainfall","00002a03-0000-1000-8000-00805f9b34fb":"gap.reconnection_address","00002a52-0000-1000-8000-00805f9b34fb":"record_access_control_point","00002a14-0000-1000-8000-00805f9b34fb":"reference_time_information","00002a4d-0000-1000-8000-00805f9b34fb":"report","00002a4b-0000-1000-8000-00805f9b34fb":"report_map","00002a92-0000-1000-8000-00805f9b34fb":"resting_heart_rate","00002a40-0000-1000-8000-00805f9b34fb":"ringer_control_point","00002a41-0000-1000-8000-00805f9b34fb":"ringer_setting","00002a54-0000-1000-8000-00805f9b34fb":"rsc_feature","00002a53-0000-1000-8000-00805f9b34fb":"rsc_measurement","00002a55-0000-1000-8000-00805f9b34fb":"sc_control_point","00002a4f-0000-1000-8000-00805f9b34fb":"scan_interval_window","00002a31-0000-1000-8000-00805f9b34fb":"scan_refresh","00002a5d-0000-1000-8000-00805f9b34fb":"sensor_location","00002a25-0000-1000-8000-00805f9b34fb":"serial_number_string","00002a05-0000-1000-8000-00805f9b34fb":"gatt.service_changed","00002a28-0000-1000-8000-00805f9b34fb":"software_revision_string","00002a93-0000-1000-8000-00805f9b34fb":"sport_type_for_aerobic_and_anaerobic_thresholds","00002a47-0000-1000-8000-00805f9b34fb":"supported_new_alert_category","00002a48-0000-1000-8000-00805f9b34fb":"supported_unread_alert_category","00002a23-0000-1000-8000-00805f9b34fb":"system_id","00002a6e-0000-1000-8000-00805f9b34fb":"temperature","00002a1c-0000-1000-8000-00805f9b34fb":"temperature_measurement","00002a1d-0000-1000-8000-00805f9b34fb":"temperature_type","00002a94-0000-1000-8000-00805f9b34fb":"three_zone_heart_rate_limits","00002a12-0000-1000-8000-00805f9b34fb":"time_accuracy","00002a13-0000-1000-8000-00805f9b34fb":"time_source","00002a16-0000-1000-8000-00805f9b34fb":"time_update_control_point","00002a17-0000-1000-8000-00805f9b34fb":"time_update_state","00002a11-0000-1000-8000-00805f9b34fb":"time_with_dst","00002a0e-0000-1000-8000-00805f9b34fb":"time_zone","00002a71-0000-1000-8000-00805f9b34fb":"true_wind_direction","00002a70-0000-1000-8000-00805f9b34fb":"true_wind_speed","00002a95-0000-1000-8000-00805f9b34fb":"two_zone_heart_rate_limit","00002a07-0000-1000-8000-00805f9b34fb":"tx_power_level","00002ab4-0000-1000-8000-00805f9b34fb":"uncertainty","00002a45-0000-1000-8000-00805f9b34fb":"unread_alert_status","00002a9f-0000-1000-8000-00805f9b34fb":"user_control_point","00002a9a-0000-1000-8000-00805f9b34fb":"user_index","00002a76-0000-1000-8000-00805f9b34fb":"uv_index","00002a96-0000-1000-8000-00805f9b34fb":"vo2_max","00002a97-0000-1000-8000-00805f9b34fb":"waist_circumference","00002a98-0000-1000-8000-00805f9b34fb":"weight","00002a9d-0000-1000-8000-00805f9b34fb":"weight_measurement","00002a9e-0000-1000-8000-00805f9b34fb":"weight_scale_feature","00002a79-0000-1000-8000-00805f9b34fb":"wind_chill"}'),Et={default:{convert:function(t){return t.byteLength?t:null}},"00002901-0000-1000-8000-00805f9b34fb":{convert:function(t){return new TextDecoder("utf-8").decode(t)}},"00002904-0000-1000-8000-00805f9b34fb":{convert:function(t){return t.getUint8()}}},jt=[{description:"Reserved For Future Use",convert:function(t){return t.byteLength?t:null}},{description:"Boolean",convert:function(t){return t.getInt8()}},{description:"unsigned 2-bit integer",convert:function(t){return t.getUint8()}},{description:"unsigned 4-bit integer",convert:function(t){return t.getUint8()}},{description:"unsigned 8-bit integer",convert:function(t){return t.getUint8()}},{description:"unsigned 12-bit integer",convert:function(t){return t.getUint16()}},{description:"unsigned 16-bit integer",convert:function(t){return t.getUint16()}},{description:"unsigned 24-bit integer",convert:function(t){return t.getUint32()}},{description:"unsigned 32-bit integer",convert:function(t){return t.getUint32()}},{description:"unsigned 48-bit integer",convert:function(t){return t.getBigUint64()}},{description:"unsigned 64-bit integer",convert:function(t){return t.getBigUint64()}},{description:"unsigned 128-bit integer",convert:function(t){return[t.getBigUint64(),t.getBigUint64(8)]}},{description:"signed 8-bit integer",convert:function(t){return t.getInt8()}},{description:"signed 12-bit integer",convert:function(t){return t.getInt16()}},{description:"signed 16-bit integer",convert:function(t){return t.getInt16()}},{description:"signed 24-bit integer",convert:function(t){return t.getInt32()}},{description:"signed 32-bit integer",convert:function(t){return t.getInt32()}},{description:"signed 48-bit integer",convert:function(t){return t.getBigInt64()}},{description:"signed 64-bit integer",convert:function(t){return t.getBigInt64()}},{description:"signed 128-bit integer",convert:function(t){return[t.getBigInt64(),t.getBigInt64(8)]}},{description:"IEEE-754 32-bit floating point",convert:function(t){return t.getFloat32()}},{description:"IEEE-754 64-bit floating point",convert:function(t){return t.getFloat64()}},{description:"IEEE-11073 16-bit SFLOAT",convert:function(t){return t}},{description:"IEEE-11073 32-bit FLOAT",convert:function(t){return t}},{description:"IEEE-20601 format",convert:function(t){return t}},{description:"UTF-8 string",convert:function(t){return new TextDecoder("utf-8").decode(t)}},{description:"UTF-16 string",convert:function(t){return new TextDecoder("utf-16").decode(t)}},{description:"Opaque Structure",convert:function(t){return t}}];function kt(t){return kt="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},kt(t)}function Mt(t,e,n,r,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void n(t)}u.done?e(c):Promise.resolve(c).then(r,o)}function Lt(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){Mt(i,r,o,a,u,"next",t)}function u(t){Mt(i,r,o,a,u,"throw",t)}a(void 0)}))}}function Ft(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 Rt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ft(Object(n),!0).forEach((function(e){Tt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ft(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Tt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function It(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function At(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 Ct(t,e,n){return e&&At(t.prototype,e),n&&At(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function Nt(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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Dt(t,e)}function Dt(t,e){return Dt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},Dt(t,e)}function Bt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Wt(t);if(e){var o=Wt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ut(this,n)}}function Ut(t,e){if(e&&("object"===kt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function Wt(t){return Wt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Wt(t)}var Gt=function(t,e){var n=null==e?void 0:e.descriptors;if(n){var r=n.find((function(e){return e.uuid===t}));if(r)return r.value}return null},Vt=function(t){return"string"==typeof t?t:Gt("2901",t)||Gt("00002904-0000-1000-8000-00805f9b34fb",t)},zt=Gt.bind(null,"2904"),qt=function(t){var e=t.description,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"CustomType";switch(e){case"Reserved For Future Use":case"Opaque Structure":return n;case"Boolean":return"Button";case"UTF-8 string":case"UTF-16 string":return"Text";default:return"Amount"}},Kt=null,Jt=null;try{Kt=window.ble||window.top.ble,Jt=window.cordova||window.top.cordova}catch(t){}var Zt=function(t){Nt(r,t);var e,n=Bt(r);function r(){var t,e,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{acceptAllDevices:!0},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"BLEDevice",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return It(this,r),(e=n.call(this)).deviceName=i,e.uuidMap=Rt(Rt({},Pt),a),e.ble=null!==(t=window.ble)&&void 0!==t?t:window.top.ble,e.writes={},null!=o&&o.id?(e.device=o,e.options=null):(e.device=null,e.options=o),e}return Ct(r,[{key:"initialize",value:(e=Lt(regeneratorRuntime.mark((function t(e){var n,r,o=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.device){t.next=6;break}return t.next=3,this.requestDevice(e||this.options);case 3:if(this.device=t.sent,this.device){t.next=6;break}throw"No device selected.";case 6:return t.next=8,this.connect();case 8:(n=t.sent)&&(r=n.characteristics,this.device=n,r.forEach(function(){var t=Lt(regeneratorRuntime.mark((function t(e){var r,i,a,u,c,s,f,l;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.properties,i=e.characteristic.toLowerCase(),a=o.uuidMap[i],u=Vt(a)||i,c=e.descriptors||[],s=jt[zt(a)||27],console.log(u,e),c.forEach((function(t){console.log("".concat(t.uuid," | ").concat(u),t)})),r.indexOf("Read"),!(r.indexOf("Write")>=0)){t.next=8;break}if(!o.writes[u]){t.next=7;break}throw new Error('There is already a writable characteristic named "'.concat(u,'".'));case 7:o.writes[u]=function(t){var r;return o.ble.withPromises.write(n.id,e.service,e.characteristic,null!==(r=t.buffer)&&void 0!==r?r:t)};case 8:r.indexOf("Notify")>=0&&(f=qt(s,u),l=null,o.ble.startNotification(n.id,e.service,e.characteristic,(function(t,e){var n=s.convert(new DataView(t));l!==n&&(l=n,o.emit("updated",{control:u,device:o.deviceName,type:f,value:n}))}),(function(t){throw t})));case 9:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()));case 10:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})},{key:"requestDevice",value:function(t){var e=this;return console.log("Requesting Device..."),new Promise((function(n,r){var o;console.log("Starting Scan... "),"ios"!==Jt.platformId&&e.ble.isLocationEnabled((function(){console.log("Location is enabled")}),(function(){console.log("Location is disabled")})),e.ble.startScan("ios"===Jt.platformId&&null!==(o=null==t?void 0:t.optionalServices)&&void 0!==o?o:[],(function(r){var o,i=null!==(o=null==t?void 0:t.optionalServices)&&void 0!==o?o:[],a=null;if(console.log("Found",r),"ios"===Jt.platformId)a=r;else{var u=new Uint8Array(r.advertising),c=Array.prototype.map.call(u,(function(t){return("00"+t.toString(16)).slice(-2)})).join("");console.log(c.match(/[a-fA-F0-9]{4}/g).join("-")),i.forEach((function(t){var e=t.replace(/\-/g,"");c.match(/[a-fA-F0-9]{2}/g).reverse().join("").indexOf(e)>=0&&(a=r,console.log("Found a match! ".concat(t)))}))}a&&(e.ble.stopScan(),n(a))}),(function(t){console.log("Error",t),e.ble.stopScan(),r(t)}))}))}},{key:"connect",value:function(){var t=this;return new Promise((function(e,n){if(!t.device)throw n(),"No device selected.";t.ble.connect(t.device.id,(function(n){t.emit("updated",{control:"".concat(t.deviceName,"Connection"),device:t.deviceName,target:n,type:"Button",value:1}),e(n)}),(function(){console.log("".concat(t.deviceName," disconnected.")),t.emit("updated",{control:"".concat(t.deviceName,"Connection"),device:t.deviceName,type:"Button",value:0}),t.writes={}}))}))}},{key:"disconnect",value:function(){var t=this;this.ble.isConnected(this.device.id,(function(){t.ble.disconnect(t.device.id)}),(function(){throw"Device not connected."}))}},{key:"write",value:function(t,e){if(!this.writes[t])throw new Error('No writable characteristic "'.concat(t,'".'));return this.writes[t](e)}}]),r}(o()),Ht=function(t){Nt(o,t);var e,n,r=Bt(o);function o(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{acceptAllDevices:!0},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"BLEDevice",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return It(this,o),(t=r.call(this)).deviceName=n,t.uuidMap=Rt(Rt({},Pt),i),t.writes={},null!=e&&e.gatt?(t.device=e,t.options=null):(t.device=null,t.options=e),t}return Ct(o,[{key:"initialize",value:(n=Lt(regeneratorRuntime.mark((function t(e){var n,r,o,i,a=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=!!this.device){t.next=9;break}if(navigator.bluetooth){t.next=4;break}throw"This web browser does not support Bluetooth.";case 4:return t.next=6,navigator.bluetooth.requestDevice(e||this.options);case 6:if(this.device=t.sent,this.device){t.next=9;break}throw"No device selected.";case 9:return this.device.addEventListener("gattserverdisconnected",(function(){console.log("".concat(a.deviceName," disconnected.")),a.emit("updated",{control:"".concat(a.deviceName,"Connection"),device:a.deviceName,type:"Button",value:0}),a.writes={}})),t.prev=10,t.next=13,this.connect();case 13:if(!t.sent){t.next=22;break}return r=this.device.gatt,t.next=17,r.getPrimaryServices();case 17:t.sent.forEach(function(){var t=Lt(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.getCharacteristics();case 2:t.sent.forEach(function(){var t=Lt(regeneratorRuntime.mark((function t(e){var n,r,o,i,u,c,s,f,l,p;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.properties,r=a.uuidMap[e.uuid],o=Vt(r)||e.uuid,i=jt[27],console.log(o,e),t.prev=3,t.next=6,e.getDescriptors();case 6:u=t.sent,c=!1,u.forEach(function(){var t=Lt(regeneratorRuntime.mark((function t(e){var n,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.t0=null!==(n=Et[e.uuid])&&void 0!==n?n:Et.default,t.next=4,e.readValue();case 4:t.t1=t.sent,r=t.t0.convert.call(t.t0,t.t1),"00002904-0000-1000-8000-00805f9b34fb"===e.uuid&&(i=jt[r]||jt[0],c=!0),console.log("".concat(e.uuid," | ").concat(o),r),t.next=13;break;case 10:t.prev=10,t.t2=t.catch(0),console.warn('Error converting data from descriptor "'.concat(e.uuid,'".'),t.t2);case 13:case"end":return t.stop()}}),t,null,[[0,10]])})));return function(e){return t.apply(this,arguments)}}()),c||(s=zt(r))&&(i=jt[s]),t.next=14;break;case 12:t.prev=12,t.t0=t.catch(3);case 14:if(n.read,!n.write){t.next=19;break}if(!a.writes[o]){t.next=18;break}throw new Error('There is already a writable characteristic named "'.concat(o,'".'));case 18:a.writes[o]=function(t){var n,r=t instanceof DataView?t:new DataView(null!==(n=t.buffer)&&void 0!==n?n:t);return e.writeValueWithResponse(r)};case 19:if(!n.notify){t.next=25;break}return f=function(t){var e=t.currentTarget,n=i.convert(e.value);p!==n&&(p=n,a.emit("updated",{control:o,device:a.deviceName,type:l,value:n}))},l=qt(i,o),p=null,t.next=24,e.startNotifications();case 24:e.addEventListener("characteristicvaluechanged",f);case 25:case"end":return t.stop()}}),t,null,[[3,12]])})));return function(e){return t.apply(this,arguments)}}());case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),t.next=23;break;case 22:throw"Not able to connect to device.";case 23:t.next=29;break;case 25:throw t.prev=25,t.t0=t.catch(10),n||(null!==(o=this.device)&&void 0!==o&&null!==(i=o.gatt)&&void 0!==i&&i.connected&&this.device.gatt.disconnect(),this.device=null),t.t0;case 29:case"end":return t.stop()}}),t,this,[[10,25]])}))),function(t){return n.apply(this,arguments)})},{key:"connect",value:(e=Lt(regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.device){t.next=4;break}throw"No device selected.";case 4:return e=this.device.gatt,t.next=7,e.connect();case 7:if(!e.connected){t.next=12;break}return this.emit("updated",{control:"".concat(this.deviceName,"Connection"),device:this.deviceName,target:this.device,type:"Button",value:1}),t.abrupt("return",!0);case 12:return t.abrupt("return",!1);case 13:case"end":return t.stop()}}),t,this)}))),function(){return e.apply(this,arguments)})},{key:"disconnect",value:function(){var t,e;if(null!==(t=this.device)&&void 0!==t&&null!==(e=t.gatt)&&void 0!==e&&e.connected)return this.device.gatt.disconnect();throw"Device not connected."}},{key:"write",value:function(t,e){if(!this.writes[t])throw new Error('No writable characteristic "'.concat(t,'".'));return this.writes[t](e)}}]),o}(o());const Yt=Kt?Zt:Ht;function Xt(t){return Xt="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},Xt(t)}function $t(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Qt(t,e){return Qt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},Qt(t,e)}function te(t,e){if(e&&("object"===Xt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function ee(t){return ee=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},ee(t)}const ne=function(t){!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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Qt(t,e)}(i,t);var e,n,r,o=(n=i,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=ee(n);if(r){var o=ee(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return te(this,t)});function i(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"FabricDevice";return $t(this,i),(e=o.call(this)).pressed=0,t.on("mousedown",(function(r){e.pressed=1,e.emit("updated",{control:"FabricPointer",device:n,event:r,target:t,type:"Pointer",value:e.pressed,x:r.pointer.x,y:r.pointer.y})})),t.on("mousemove",(function(r){e.emit("updated",{control:"FabricPointer",device:n,event:r,target:t,type:"Pointer",value:e.pressed,x:r.pointer.x,y:r.pointer.y})})),t.on("mouseup",(function(r){e.pressed=0,e.emit("updated",{control:"FabricPointer",device:n,event:r,target:t,type:"Pointer",value:e.pressed,x:r.pointer.x,y:r.pointer.y})})),t.on("dropped",(function(r){e.emit("updated",{control:"FabricDrop",device:n,event:r,target:t,type:"Drop",value:r.dropZone?r.dropZone.dropZone:"",x:r.dropZone?r.dropZoneX:r.x,y:r.dropZone?r.dropZoneY:r.y}),r.stopPropagation()})),t.on("dragover",(function(r){e.emit("updated",{control:"FabricDrag",device:n,event:r,target:t,type:"Drop",value:r.dropZone?r.dropZone.dropZone:"",x:r.dropZone?r.dropZoneX:r.x,y:r.dropZone?r.dropZoneY:r.y}),r.stopPropagation()})),t.on("rotating",(function(r){e.emit("updated",{control:"FabricDial",device:n,event:r,target:t,type:"Dial",value:t.angle/360})})),e}return e=i,Object.defineProperty(e,"prototype",{writable:!1}),e}(o());function re(t){return re="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},re(t)}function oe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ie(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 ae(t,e,n){return e&&ie(t.prototype,e),n&&ie(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function ue(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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ce(t,e)}function ce(t,e){return ce=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},ce(t,e)}function se(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=le(t);if(e){var o=le(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return fe(this,n)}}function fe(t,e){if(e&&("object"===re(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function le(t){return le=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},le(t)}function pe(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var he=function(t,e){var n=t.x,r=t.y,o=Math.sqrt(n*n+r*r);if(o>1)t.x*=1/o,t.y*=1/o;else if(o<e)t.x=0,t.y=0;else{var i=1-e;t.x=(n-e)/i,t.y=(r-e)/i}return t},ve=function t(){for(var e=function(t){if(Array.isArray(t))return pe(t)}(i=window.navigator.getGamepads())||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(i)||function(t,e){if(t){if("string"==typeof t)return pe(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?pe(t,e):void 0}}(i)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),n=0;n<e.length;n++){var r=e[n];if(r){var o=be[r.index];o?o.update(r):be[r.index]=new ge(r)}}var i;window.requestAnimationFrame(t)},de={duration:500,startDelay:0,strongMagnitude:1,weakMagnitude:1},ye={a0:"LeftStick",a1:"RightStick",b0:"AButton",b1:"BButton",b2:"XButton",b3:"YButton",b4:"LeftBumper",b5:"RightBumper",b6:"LeftTrigger",b7:"RightTrigger",b8:"BackButton",b9:"StartButton",b10:"LeftStickButton",b11:"RightStickButton",b12:"UpDPad",b13:"DownDPad",b14:"LeftDPad",b15:"RightDPad"},be=[];window.addEventListener("gamepadconnected",(function(){ve()}));var ge=function(t){ue(n,t);var e=se(n);function n(t){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.1;oe(this,n),(r=e.call(this)).source=t,r.deadzone=i,r.axes=[];for(var a=0;a<t.axes.length>>1;a++)r.axes.push(he({x:t.axes[2*a],y:t.axes[2*a+1]},i));r.buttons=[];for(var u=0;u<t.buttons.length;u++)r.buttons.push(t.buttons[u].value);return r.id=o||"".concat(t.id," - ").concat(t.index),r}return ae(n,[{key:"dualRumble",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:500,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;de.duration=t,de.startDelay=e,de.strongMagnitude=n,de.weakMagnitude=r,this.source.vibrationActuator.playEffect("dual-rumble",de)}},{key:"update",value:function(t){for(var e=this.axes,n=this.buttons,r=0;r<e.length;r++){var o=e[r],i=he({x:t.axes[2*r],y:t.axes[2*r+1]},this.deadzone);if(o.x!==i.x||o.y!==i.y){var a=i.x,u=i.y;o.x=a,o.y=u,this.emit("updated",{control:ye["a".concat(r)],device:this.id,target:this,type:"Joystick",x:a,y:u})}}for(var c=0;c<t.buttons.length;c++){var s=t.buttons[c].value;s!==n[c]&&(n[c]=s,this.emit("updated",{control:ye["b".concat(c)],device:this.id,target:this,type:"Button",value:s}))}}}]),n}(o());function me(t){return me="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},me(t)}function we(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _e(t,e){return _e=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},_e(t,e)}function xe(t,e){if(e&&("object"===me(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function Se(t){return Se=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Se(t)}function Oe(t){return Oe="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},Oe(t)}function Pe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ee(t,e){return Ee=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},Ee(t,e)}function je(t,e){if(e&&("object"===Oe(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function ke(t){return ke=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},ke(t)}function Me(t){return Me="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},Me(t)}function Le(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Fe(t,e){return Fe=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},Fe(t,e)}function Re(t,e){if(e&&("object"===Me(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function Te(t){return Te=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Te(t)}function Ie(t){return Ie="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},Ie(t)}function Ae(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ce(t,e){return Ce=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},Ce(t,e)}function Ne(t,e){if(e&&("object"===Ie(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function De(t){return De=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},De(t)}const Be={BLEDevice:Yt,FabricDevice:ne,GamepadDevice:function(t){ue(n,t);var e=se(n);function n(){var t;return oe(this,n),(t=e.call(this)).eventHandlers=[],window.addEventListener("gamepadconnected",(function(){t.updateGamepads()})),t.updateGamepads(),t}return ae(n,[{key:"updateGamepads",value:function(){for(var t=this,e=0;e<this.eventHandlers.length;e++)this.eventHandlers[e].gamepad.off("updated",this.eventHandlers[e].handler);this.eventHandlers.length=0;for(var n=0;n<be.length;n++){var r=function(e){t.emit("updated",e)};be[n].on("updated",r),this.eventHandlers.push({gamepad:be[n],handler:r})}}}]),n}(o()),KeyboardDevice:function(t){!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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_e(t,e)}(i,t);var e,n,r,o=(n=i,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=Se(n);if(r){var o=Se(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return xe(this,t)});function i(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Keyboard";return we(this,i),t=o.call(this),window.addEventListener("keydown",(function(n){t.emit("updated",{control:n.code,device:e,event:n,type:"Button",value:1})})),window.addEventListener("keyup",(function(n){t.emit("updated",{control:n.code,device:e,event:n,type:"Button",value:0})})),t}return e=i,Object.defineProperty(e,"prototype",{writable:!1}),e}(o()),PageDevice:function(t){!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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ee(t,e)}(i,t);var e,n,r,o=(n=i,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=ke(n);if(r){var o=ke(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return je(this,t)});function i(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"PageDevice";return Pe(this,i),(t=o.call(this)).channel=new W(e),t.channel.addEventListener("message",(function(e){t.emit("updated",e)})),t}return e=i,Object.defineProperty(e,"prototype",{writable:!1}),e}(o()),PixiDevice:function(t){!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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Fe(t,e)}(i,t);var e,n,r,o=(n=i,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=Te(n);if(r){var o=Te(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return Re(this,t)});function i(t){var e,n,r,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"PixiDevice";return Le(this,i),(r=o.call(this)).pressed=0,t.on("pointerdown",(function(e){r.pressed=1,r.emit("updated",{control:"Pointer",device:a,event:e,target:t,type:"Pointer",value:r.pressed,x:e.x,y:e.y})})),t.on("pointermove",(function(e){r.emit("updated",{control:"Pointer",device:a,event:e,target:t,type:"Pointer",value:r.pressed,x:e.x,y:e.y})})),t.on(null!==(e=null===(n=options)||void 0===n?void 0:n.up)&&void 0!==e?e:"pointerup",(function(e){r.pressed=0,r.emit("updated",{control:"Pointer",device:a,event:e,target:t,type:"Pointer",value:r.pressed,x:e.x,y:e.y})})),r}return e=i,Object.defineProperty(e,"prototype",{writable:!1}),e}(o()),PointerDevice:function(t){!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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ce(t,e)}(i,t);var e,n,r,o=(n=i,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=De(n);if(r){var o=De(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return Ne(this,t)});function i(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"PointerDevice";return Ae(this,i),(e=o.call(this)).pressed=0,t.addEventListener("pointerdown",(function(r){var o,i,a,u;e.pressed=1,e.emit("updated",{control:"Pointer",device:n,event:r,target:t,type:"Pointer",value:e.pressed,x:null!==(o=r.x)&&void 0!==o?o:null===(i=r.pointer)||void 0===i?void 0:i.x,y:null!==(a=r.y)&&void 0!==a?a:null===(u=r.pointer)||void 0===u?void 0:u.y})})),t.addEventListener("pointermove",(function(r){var o,i,a,u;e.emit("updated",{control:"Pointer",device:n,event:r,target:t,type:"Pointer",value:e.pressed,x:null!==(o=r.x)&&void 0!==o?o:null===(i=r.pointer)||void 0===i?void 0:i.x,y:null!==(a=r.y)&&void 0!==a?a:null===(u=r.pointer)||void 0===u?void 0:u.y})})),t.addEventListener("pointerup",(function(r){var o,i,a,u;e.pressed=0,e.emit("updated",{control:"Pointer",device:n,event:r,target:t,type:"Pointer",value:e.pressed,x:null!==(o=r.x)&&void 0!==o?o:null===(i=r.pointer)||void 0===i?void 0:i.x,y:null!==(a=r.y)&&void 0!==a?a:null===(u=r.pointer)||void 0===u?void 0:u.y})})),e}return e=i,Object.defineProperty(e,"prototype",{writable:!1}),e}(o())};window.engagefully={Controller:pt,ActionMap:Ot,actions:et,devices:Be,quantizeStick:function(t,e){var n,r,o,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=null!==(n=i.sectors)&&void 0!==n?n:8,u=null!==(r=i.deadzone)&&void 0!==r?r:.35,c=null!==(o=i.forward)&&void 0!==o?o:"-y",s=Math.hypot(t,e);if(s<u||a<1)return null;var f="+y"===c?e:-e,l=Math.atan2(t,f),p=Math.round(l/(2*Math.PI/a));return{sector:(p%a+a)%a}},focusGate:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e="function"==typeof t.extra?t.extra:function(){return!1};return function(){if(e())return!1;var t="undefined"!=typeof document?document.activeElement:null;if(!t||t===document.body)return!0;var n=t.tagName;return"INPUT"!==n&&"TEXTAREA"!==n&&"SELECT"!==n&&!t.isContentEditable}}}}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={id:r,loaded:!1,exports:{}};return t[r](i,i.exports,n),i.loaded=!0,i.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),n(2768),n(8461)})();