@exezt-/webamp 1.5.0-0x706 → 1.5.0-0x708

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.
@@ -91,7 +91,7 @@ return /******/ (function(modules) { // webpackBootstrap
91
91
  /******/
92
92
  /******/
93
93
  /******/ // Load entry module and return exports
94
- /******/ return __webpack_require__(__webpack_require__.s = 50);
94
+ /******/ return __webpack_require__(__webpack_require__.s = 51);
95
95
  /******/ })
96
96
  /************************************************************************/
97
97
  /******/ ([
@@ -102,7 +102,7 @@ return /******/ (function(modules) { // webpackBootstrap
102
102
 
103
103
 
104
104
  if (true) {
105
- module.exports = __webpack_require__(57);
105
+ module.exports = __webpack_require__(58);
106
106
  } else {}
107
107
 
108
108
 
@@ -114,7 +114,7 @@ if (true) {
114
114
 
115
115
 
116
116
  if (true) {
117
- module.exports = __webpack_require__(58);
117
+ module.exports = __webpack_require__(59);
118
118
  } else {}
119
119
 
120
120
 
@@ -140,8 +140,8 @@ if (true) {
140
140
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return VISUALIZER_ORDER; });
141
141
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return TIME_MODE; });
142
142
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return MEDIA_STATUS; });
143
- /* harmony import */ var _baseSkin_json__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(40);
144
- var _baseSkin_json__WEBPACK_IMPORTED_MODULE_0___namespace = /*#__PURE__*/__webpack_require__.t(40, 1);
143
+ /* harmony import */ var _baseSkin_json__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(41);
144
+ var _baseSkin_json__WEBPACK_IMPORTED_MODULE_0___namespace = /*#__PURE__*/__webpack_require__.t(41, 1);
145
145
 
146
146
  const BANDS = [60, 170, 310, 600, 1000, 3000, 6000, 12000, 14000, 16000];
147
147
  const WINDOWS = {
@@ -798,7 +798,7 @@ if (true) {
798
798
  // DCE check should happen before ReactDOM bundle executes so that
799
799
  // DevTools can report bad minification during injection.
800
800
  checkDCE();
801
- module.exports = __webpack_require__(59);
801
+ module.exports = __webpack_require__(60);
802
802
  } else {}
803
803
 
804
804
 
@@ -807,7 +807,7 @@ if (true) {
807
807
  /* 9 */
808
808
  /***/ (function(module, exports, __webpack_require__) {
809
809
 
810
- var objectWithoutPropertiesLoose = __webpack_require__(67);
810
+ var objectWithoutPropertiesLoose = __webpack_require__(68);
811
811
 
812
812
  function _objectWithoutProperties(source, excluded) {
813
813
  if (source == null) return {};
@@ -984,7 +984,7 @@ var singleton = null;
984
984
  var singletonCounter = 0;
985
985
  var stylesInsertedAtTop = [];
986
986
 
987
- var fixUrls = __webpack_require__(72);
987
+ var fixUrls = __webpack_require__(73);
988
988
 
989
989
  module.exports = function(list, options) {
990
990
  if (typeof DEBUG !== "undefined" && DEBUG) {
@@ -3252,7 +3252,7 @@ module.exports = shouldUseNative() ? Object.assign : function (target, source) {
3252
3252
  /* 27 */
3253
3253
  /***/ (function(module, exports, __webpack_require__) {
3254
3254
 
3255
- var root = __webpack_require__(81);
3255
+ var root = __webpack_require__(82);
3256
3256
 
3257
3257
  /** Built-in value references. */
3258
3258
  var Symbol = root.Symbol;
@@ -3268,7 +3268,7 @@ module.exports = Symbol;
3268
3268
 
3269
3269
 
3270
3270
  if (true) {
3271
- module.exports = __webpack_require__(65);
3271
+ module.exports = __webpack_require__(66);
3272
3272
  } else {}
3273
3273
 
3274
3274
 
@@ -3387,7 +3387,7 @@ module.exports = hoistNonReactStatics;
3387
3387
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3388
3388
 
3389
3389
  "use strict";
3390
- /* WEBPACK VAR INJECTION */(function(global, module) {/* harmony import */ var _ponyfill_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(38);
3390
+ /* WEBPACK VAR INJECTION */(function(global, module) {/* harmony import */ var _ponyfill_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(39);
3391
3391
  /* global window */
3392
3392
 
3393
3393
 
@@ -3406,15 +3406,15 @@ if (typeof self !== 'undefined') {
3406
3406
  var result = Object(_ponyfill_js__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(root);
3407
3407
  /* harmony default export */ __webpack_exports__["a"] = (result);
3408
3408
 
3409
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(19), __webpack_require__(66)(module)))
3409
+ /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(19), __webpack_require__(67)(module)))
3410
3410
 
3411
3411
  /***/ }),
3412
3412
  /* 31 */
3413
3413
  /***/ (function(module, exports, __webpack_require__) {
3414
3414
 
3415
- var parser = __webpack_require__(68);
3415
+ var parser = __webpack_require__(69);
3416
3416
 
3417
- var creator = __webpack_require__(69);
3417
+ var creator = __webpack_require__(70);
3418
3418
 
3419
3419
  module.exports = {
3420
3420
  parser: parser,
@@ -3424,10 +3424,375 @@ module.exports = {
3424
3424
  /***/ }),
3425
3425
  /* 32 */,
3426
3426
  /* 33 */,
3427
- /* 34 */,
3427
+ /* 34 */
3428
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
3429
+
3430
+ "use strict";
3431
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return WinampTelegramCustomHandler; });
3432
+ /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4);
3433
+ /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
3434
+ /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3);
3435
+
3436
+ // @ts-ignore
3437
+
3438
+ class WinampTelegramCustomHandler {
3439
+ constructor(emit) {
3440
+ _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "webamp", void 0);
3441
+
3442
+ _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "maxFileSize", 0x1400000);
3443
+
3444
+ _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "telegram", void 0);
3445
+
3446
+ _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "updateAppState", () => {
3447
+ localStorage.setItem("appState", JSON.stringify(this.webamp.__getSerializedState()));
3448
+ });
3449
+
3450
+ _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "getFiles", async ln => {
3451
+ const x = new XMLHttpRequest();
3452
+ const link = encodeURIComponent(ln);
3453
+ x.open('get', `https://cloud-api.yandex.net/v1/disk/public/resources?public_key=${link}`, true);
3454
+ x.setRequestHeader('Accept', 'application/json');
3455
+ x.setRequestHeader('Content-Type', 'application/json');
3456
+ x.setRequestHeader('Authorization', 'OAuth 0dc7925ebcf047a1b001c07d6bd5ac49');
3457
+ x.send();
3458
+
3459
+ x.onload = async () => {
3460
+ if (x.status === 200) {
3461
+ var _JSON$parse;
3462
+
3463
+ const data = (_JSON$parse = JSON.parse(x.responseText)) === null || _JSON$parse === void 0 ? void 0 : _JSON$parse._embedded.items;
3464
+ let i = 0;
3465
+ this.saveLastPlaylist(ln);
3466
+
3467
+ for (const item of data) {
3468
+ if (item.size > this.maxFileSize) {
3469
+ console.info(`File ${item.name} can't be loaded due oversize`);
3470
+ } else {
3471
+ await fetch(`${item.file}&public_key=${item.public_key}`, {
3472
+ method: "GET"
3473
+ }).then(response => response).then(resp => fetch(resp.url)).then(async response => {
3474
+ if (response.status === 302) {
3475
+ return await fetch(`${response.headers.get("Location")}&public_key=${item.public_key}`);
3476
+ } else {
3477
+ return response;
3478
+ }
3479
+ }).then(res => {
3480
+ var _res$body;
3481
+
3482
+ console.log(res);
3483
+ const read = (_res$body = res.body) === null || _res$body === void 0 ? void 0 : _res$body.getReader();
3484
+ return new ReadableStream({
3485
+ start(controller) {
3486
+ // @ts-ignore
3487
+ function pump() {
3488
+ // @ts-ignore
3489
+ return read === null || read === void 0 ? void 0 : read.read().then(({
3490
+ done,
3491
+ value
3492
+ }) => {
3493
+ if (done) {
3494
+ controller.close();
3495
+ return;
3496
+ }
3497
+
3498
+ controller.enqueue(value);
3499
+ return pump();
3500
+ });
3501
+ }
3502
+
3503
+ return pump();
3504
+ }
3505
+
3506
+ });
3507
+ }).then(stream => new Response(stream)).then(response => response.blob()).then(blob => URL.createObjectURL(blob)).then(uri => {
3508
+ if (i === 0) {
3509
+ this.webamp.setTracksToPlay([{
3510
+ defaultName: item.name,
3511
+ url: uri
3512
+ }]);
3513
+ } else {
3514
+ this.webamp.appendTracks([{
3515
+ defaultName: item.name,
3516
+ url: uri
3517
+ }]);
3518
+ }
3519
+
3520
+ i++; // yes, it should be here
3521
+ }).catch(err => err);
3522
+ }
3523
+ }
3524
+ }
3525
+ };
3526
+ });
3527
+
3528
+ _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "getTrackListFromYandexDisk", async playlistLink => {
3529
+ fetch(`https://cloud-api.yandex.net/v1/disk/public/resources?public_key=${encodeURIComponent(playlistLink)}`, {
3530
+ method: "GET",
3531
+ headers: {
3532
+ Accept: "application/json",
3533
+ "Content-Type": "application/json"
3534
+ }
3535
+ }).then(async response => {
3536
+ if (response.status === 200) {
3537
+ return response.text();
3538
+ } else {
3539
+ return null;
3540
+ }
3541
+ }).then(async response => {
3542
+ if (response !== null) {
3543
+ var _JSON$parse2;
3544
+
3545
+ const data = (_JSON$parse2 = JSON.parse(response)) === null || _JSON$parse2 === void 0 ? void 0 : _JSON$parse2._embedded.items;
3546
+ let i = 0;
3547
+ this.saveLastPlaylist(playlistLink);
3548
+
3549
+ for (const item of data) {
3550
+ if (i === 0) {
3551
+ this.webamp.setTracksToPlay([{
3552
+ defaultName: item.name,
3553
+ url: `$${item.file}&public_key=${item.public_key}`
3554
+ }]);
3555
+ } else {
3556
+ this.webamp.appendTracks([{
3557
+ defaultName: item.name,
3558
+ url: `$${item.file}&public_key=${item.public_key}`
3559
+ }]);
3560
+ }
3561
+ }
3562
+ }
3563
+ });
3564
+ });
3565
+
3566
+ _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "loadTrackFromYandexDisk", async track => {
3567
+ let public_key = new URL(track.url).searchParams.get("public_key");
3568
+ await fetch(track.url, {
3569
+ method: "GET"
3570
+ }).then(response => response).then(resp => fetch(resp.url)).then(async response => {
3571
+ if (response.status === 302) {
3572
+ return await fetch(`${response.headers.get("Location")}&public_key=${public_key}`);
3573
+ } else {
3574
+ return response;
3575
+ }
3576
+ }).then(res => {
3577
+ var _res$body2;
3578
+
3579
+ console.log(res);
3580
+ const read = (_res$body2 = res.body) === null || _res$body2 === void 0 ? void 0 : _res$body2.getReader();
3581
+ return new ReadableStream({
3582
+ start(controller) {
3583
+ // @ts-ignore
3584
+ function pump() {
3585
+ // @ts-ignore
3586
+ return read === null || read === void 0 ? void 0 : read.read().then(({
3587
+ done,
3588
+ value
3589
+ }) => {
3590
+ if (done) {
3591
+ controller.close();
3592
+ return;
3593
+ }
3594
+
3595
+ controller.enqueue(value);
3596
+ return pump();
3597
+ });
3598
+ }
3599
+
3600
+ return pump();
3601
+ }
3602
+
3603
+ });
3604
+ }).then(stream => new Response(stream)).then(response => response.blob()).then(blob => URL.createObjectURL(blob)).then(uri => {
3605
+ let tracks = this.getAllTracks();
3606
+ this.replaceTrack(track, tracks);
3607
+ }).catch(err => err);
3608
+ });
3609
+
3610
+ _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "onTrackNeedToLoad", () => {
3611
+ let track = this.getCurrentTrack();
3612
+
3613
+ if (track.url.split('')[0] === "$") {
3614
+ let uri = track.url.replace('$', '');
3615
+ this.loadTrackFromYandexDisk(track);
3616
+ }
3617
+ });
3618
+
3619
+ _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "getCurrentTrack", () => {
3620
+ let trackId = this.webamp.store.getState().playlist.currentTrack;
3621
+ return this.webamp.store.getState().tracks[trackId];
3622
+ });
3623
+
3624
+ _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "getAllTracks", () => {
3625
+ return this.webamp.store.getState().tracks;
3626
+ });
3627
+
3628
+ _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "replaceTrack", (track, tracks) => {
3629
+ let a = [];
3630
+ Object.entries(tracks).forEach(([_key, value]) => {
3631
+ if (value.id === track.id) {
3632
+ a.push(track);
3633
+ } else {
3634
+ a.push(value);
3635
+ }
3636
+ });
3637
+ this.webamp.setTracksToPlay(a);
3638
+ });
3639
+
3640
+ _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "saveLastPlaylist", playlistLink => {
3641
+ document.cookie = `lastlist=${playlistLink}; path=/;`;
3642
+ });
3643
+
3644
+ _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "getCookie", name => {
3645
+ const regex = new RegExp(`(^| )${name}=([^;]+)`);
3646
+ const match = document.cookie.match(regex);
3647
+
3648
+ if (match) {
3649
+ return match[2];
3650
+ }
3651
+ });
3652
+
3653
+ _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "loadOptions2", opts => {
3654
+ this.webamp.__loadSerializedState(opts);
3655
+ });
3656
+
3657
+ _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(this, "loadOptions", opts => {
3658
+ let i = 0;
3659
+ let vol = opts.media.volume;
3660
+ let balance = opts.media.balance;
3661
+ let eq1 = opts.equalizer.sliders.preamp;
3662
+ let eq2 = opts.equalizer.sliders["60"];
3663
+ let eq3 = opts.equalizer.sliders["170"];
3664
+ let eq4 = opts.equalizer.sliders["310"];
3665
+ let eq5 = opts.equalizer.sliders["600"];
3666
+ let eq6 = opts.equalizer.sliders["1000"];
3667
+ let eq7 = opts.equalizer.sliders["3000"];
3668
+ let eq8 = opts.equalizer.sliders["6000"];
3669
+ let eq9 = opts.equalizer.sliders["12000"];
3670
+ let eq10 = opts.equalizer.sliders["14000"];
3671
+ let eq11 = opts.equalizer.sliders["16000"];
3672
+ let equal = [eq1, eq2, eq3, eq4, eq5, eq6, eq7, eq8, eq9, eq10, eq11];
3673
+ let bands = [60, 170, 310, 600, 1000, 3000, 6000, 12000, 14000, 16000];
3674
+ this.webamp.store.dispatch({
3675
+ type: "SET_VOLUME",
3676
+ volume: Object(_utils__WEBPACK_IMPORTED_MODULE_1__[/* clamp */ "d"])(vol, 0, 100)
3677
+ });
3678
+ this.webamp.store.dispatch({
3679
+ type: "SET_BALANCE",
3680
+ balance: balance
3681
+ });
3682
+ this.webamp.store.dispatch({
3683
+ type: "SET_BAND_VALUE",
3684
+ band: "preamp",
3685
+ value: opts.equalizer.sliders.preamp
3686
+ });
3687
+
3688
+ for (const band of bands) {
3689
+ this.webamp.store.dispatch({
3690
+ type: "SET_BAND_VALUE",
3691
+ band: band,
3692
+ value: equal[i]
3693
+ });
3694
+ i++;
3695
+ }
3696
+
3697
+ if (window.__webamp.store.getState().media.shuffle !== opts.media.shuffle) {
3698
+ this.webamp.store.dispatch({
3699
+ type: "TOGGLE_SHUFFLE"
3700
+ });
3701
+ }
3702
+
3703
+ if (window.__webamp.store.getState().media.repeat !== opts.media.repeat) {
3704
+ this.webamp.store.dispatch({
3705
+ type: "TOGGLE_REPEAT"
3706
+ });
3707
+ }
3708
+ });
3709
+
3710
+ setTimeout(() => {
3711
+ if (!window.__webamp) {
3712
+ throw new Error("Webamp __webamp is undefined!!");
3713
+ } else {
3714
+ this.webamp = window.__webamp;
3715
+ }
3716
+
3717
+ if (typeof localStorage.getItem('app-state') !== "undefined") {
3718
+ this.loadOptions2(JSON.parse(localStorage.getItem('app-state')));
3719
+ } // emit
3720
+
3721
+
3722
+ if (emit !== false) {
3723
+ var _window, _window$Telegram;
3724
+
3725
+ const lastList = this.getCookie('lastlist');
3726
+
3727
+ if (typeof lastList !== "undefined") {
3728
+ this.getTrackListFromYandexDisk(lastList);
3729
+ } // @ts-ignore | because no global var telegram avail in project types
3730
+
3731
+
3732
+ if (!((_window = window) !== null && _window !== void 0 && (_window$Telegram = _window.Telegram) !== null && _window$Telegram !== void 0 && _window$Telegram.WebApp)) {
3733
+ console.error("Telegram is undefined!! Skipping Telegram.WebApp event handler...");
3734
+ } else {
3735
+ var _window2, _window2$Telegram;
3736
+
3737
+ // @ts-ignore | because no global var telegram avail in project types
3738
+ this.telegram = (_window2 = window) === null || _window2 === void 0 ? void 0 : (_window2$Telegram = _window2.Telegram) === null || _window2$Telegram === void 0 ? void 0 : _window2$Telegram.WebApp;
3739
+ this.initializeTelegramWebAppEvents();
3740
+ }
3741
+
3742
+ this.initializeApplicationHandlers();
3743
+ }
3744
+ }, 1000);
3745
+ }
3746
+
3747
+ initializeTelegramWebAppEvents() {
3748
+ this.telegram.offEvent("deactivated", () => {
3749
+ this.updateAppState();
3750
+ });
3751
+ }
3752
+
3753
+ initializeApplicationHandlers() {
3754
+ const window_handlers = ['unload', 'beforeunload', 'pagehide'];
3755
+ window_handlers.forEach(handler => {
3756
+ window.addEventListener(handler, () => {
3757
+ this.updateAppState();
3758
+ });
3759
+ });
3760
+ this.webamp.onTrackDidChange(() => {
3761
+ console.log(this.webamp.store.getState());
3762
+ this.updateAppState();
3763
+ });
3764
+ this.webamp.onWillClose(() => {
3765
+ this.updateAppState();
3766
+ });
3767
+ this.webamp.onClose(() => {
3768
+ this.updateAppState();
3769
+ });
3770
+ this.webamp.onMinimize(() => {
3771
+ this.updateAppState();
3772
+ });
3773
+ this.webamp.store.dispatch({
3774
+ type: "ENABLE_MILKDROP",
3775
+ open: false
3776
+ });
3777
+ const ev = ['ended', 'playing', 'timeupdate', 'fileLoaded', 'waiting', 'stopWaiting'];
3778
+
3779
+ this.webamp.__onStateChange(() => {
3780
+ this.onTrackNeedToLoad();
3781
+ this.updateAppState();
3782
+ });
3783
+
3784
+ ev.forEach(ev => this.webamp.media.on(ev, () => {
3785
+ this.updateAppState();
3786
+ }));
3787
+ }
3788
+
3789
+ }
3790
+
3791
+ /***/ }),
3428
3792
  /* 35 */,
3429
3793
  /* 36 */,
3430
- /* 37 */
3794
+ /* 37 */,
3795
+ /* 38 */
3431
3796
  /***/ (function(module, exports) {
3432
3797
 
3433
3798
  var PRESET_VALUES = ["hz60", "hz170", "hz310", "hz600", "hz1000", "hz3000", "hz6000", "hz12000", "hz14000", "hz16000", "preamp"];
@@ -3438,7 +3803,7 @@ module.exports = {
3438
3803
  };
3439
3804
 
3440
3805
  /***/ }),
3441
- /* 38 */
3806
+ /* 39 */
3442
3807
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3443
3808
 
3444
3809
  "use strict";
@@ -3463,7 +3828,7 @@ function symbolObservablePonyfill(root) {
3463
3828
 
3464
3829
 
3465
3830
  /***/ }),
3466
- /* 39 */
3831
+ /* 40 */
3467
3832
  /***/ (function(module, exports, __webpack_require__) {
3468
3833
 
3469
3834
  "use strict";
@@ -3490,13 +3855,13 @@ exports.devToolsEnhancer = (
3490
3855
 
3491
3856
 
3492
3857
  /***/ }),
3493
- /* 40 */
3858
+ /* 41 */
3494
3859
  /***/ (function(module) {
3495
3860
 
3496
3861
  module.exports = JSON.parse("{\"images\":{\"EQ_PREAMP_LINE\":\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHEAAAABCAYAAADpXEERAAAAE0lEQVQoU2Pcdfruf4ZRMKRDAAD1lwNjTqcaUQAAAABJRU5ErkJggg==\",\"EQ_GRAPH_LINE_COLORS\":\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAATCAYAAABRC2cZAAAAR0lEQVQYV2O4rCT9n+F9kOJ/hvfViv8ZHkzSQCE2afxneH/HEJm49Nr0PwOYWPLIAkp0PjL4z1B41uQ/Q9QGnf8MWrPEIAQANWYwvnlToNIAAAAASUVORK5CYII=\"},\"colors\":[\"rgb(0,0,0)\",\"rgb(24,33,41)\",\"rgb(239,49,16)\",\"rgb(206,41,16)\",\"rgb(214,90,0)\",\"rgb(214,102,0)\",\"rgb(214,115,0)\",\"rgb(198,123,8)\",\"rgb(222,165,24)\",\"rgb(214,181,33)\",\"rgb(189,222,41)\",\"rgb(148,222,33)\",\"rgb(41,206,16)\",\"rgb(50,190,16)\",\"rgb(57,181,16)\",\"rgb(49,156,8)\",\"rgb(41,148,0)\",\"rgb(24,132,8)\",\"rgb(255,255,255)\",\"rgb(214,214,222)\",\"rgb(181,189,189)\",\"rgb(160,170,175)\",\"rgb(148,156,165)\",\"rgb(150,150,150)\"],\"playlistStyle\":{\"normal\":\"#00FF00\",\"current\":\"#FFFFFF\",\"normalbg\":\"#000000\",\"selectedbg\":\"#0000FF\",\"font\":\"Arial\"}}");
3497
3862
 
3498
3863
  /***/ }),
3499
- /* 41 */
3864
+ /* 42 */
3500
3865
  /***/ (function(module, exports, __webpack_require__) {
3501
3866
 
3502
3867
  "use strict";
@@ -3591,11 +3956,11 @@ TinyQueue.prototype = {
3591
3956
 
3592
3957
 
3593
3958
  /***/ }),
3594
- /* 42 */
3959
+ /* 43 */
3595
3960
  /***/ (function(module, exports, __webpack_require__) {
3596
3961
 
3597
- var deburrLetter = __webpack_require__(77),
3598
- toString = __webpack_require__(79);
3962
+ var deburrLetter = __webpack_require__(78),
3963
+ toString = __webpack_require__(80);
3599
3964
 
3600
3965
  /** Used to match Latin Unicode letters (excluding mathematical operators). */
3601
3966
  var reLatin = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g;
@@ -3642,13 +4007,13 @@ module.exports = deburr;
3642
4007
 
3643
4008
 
3644
4009
  /***/ }),
3645
- /* 43 */
4010
+ /* 44 */
3646
4011
  /***/ (function(module) {
3647
4012
 
3648
4013
  module.exports = JSON.parse("{\"type\":\"Winamp EQ library file v1.1\",\"presets\":[{\"name\":\"Classical\",\"hz60\":33,\"hz170\":33,\"hz310\":33,\"hz600\":33,\"hz1000\":33,\"hz3000\":33,\"hz6000\":20,\"hz12000\":20,\"hz14000\":20,\"hz16000\":16,\"preamp\":33},{\"name\":\"Club\",\"hz60\":33,\"hz170\":33,\"hz310\":38,\"hz600\":42,\"hz1000\":42,\"hz3000\":42,\"hz6000\":38,\"hz12000\":33,\"hz14000\":33,\"hz16000\":33,\"preamp\":33},{\"name\":\"Dance\",\"hz60\":48,\"hz170\":44,\"hz310\":36,\"hz600\":32,\"hz1000\":32,\"hz3000\":22,\"hz6000\":20,\"hz12000\":20,\"hz14000\":32,\"hz16000\":32,\"preamp\":33},{\"name\":\"Laptop speakers/headphones\",\"hz60\":40,\"hz170\":50,\"hz310\":41,\"hz600\":26,\"hz1000\":28,\"hz3000\":35,\"hz6000\":40,\"hz12000\":48,\"hz14000\":53,\"hz16000\":56,\"preamp\":33},{\"name\":\"Large hall\",\"hz60\":49,\"hz170\":49,\"hz310\":42,\"hz600\":42,\"hz1000\":33,\"hz3000\":24,\"hz6000\":24,\"hz12000\":24,\"hz14000\":33,\"hz16000\":33,\"preamp\":33},{\"name\":\"Party\",\"hz60\":44,\"hz170\":44,\"hz310\":33,\"hz600\":33,\"hz1000\":33,\"hz3000\":33,\"hz6000\":33,\"hz12000\":33,\"hz14000\":44,\"hz16000\":44,\"preamp\":33},{\"name\":\"Pop\",\"hz60\":29,\"hz170\":40,\"hz310\":44,\"hz600\":45,\"hz1000\":41,\"hz3000\":30,\"hz6000\":28,\"hz12000\":28,\"hz14000\":29,\"hz16000\":29,\"preamp\":33},{\"name\":\"Reggae\",\"hz60\":33,\"hz170\":33,\"hz310\":31,\"hz600\":22,\"hz1000\":33,\"hz3000\":43,\"hz6000\":43,\"hz12000\":33,\"hz14000\":33,\"hz16000\":33,\"preamp\":33},{\"name\":\"Rock\",\"hz60\":45,\"hz170\":40,\"hz310\":23,\"hz600\":19,\"hz1000\":26,\"hz3000\":39,\"hz6000\":47,\"hz12000\":50,\"hz14000\":50,\"hz16000\":50,\"preamp\":33},{\"name\":\"Soft\",\"hz60\":40,\"hz170\":35,\"hz310\":30,\"hz600\":28,\"hz1000\":30,\"hz3000\":39,\"hz6000\":46,\"hz12000\":48,\"hz14000\":50,\"hz16000\":52,\"preamp\":33},{\"name\":\"Ska\",\"hz60\":28,\"hz170\":24,\"hz310\":25,\"hz600\":31,\"hz1000\":39,\"hz3000\":42,\"hz6000\":47,\"hz12000\":48,\"hz14000\":50,\"hz16000\":48,\"preamp\":33},{\"name\":\"Full Bass\",\"hz60\":48,\"hz170\":48,\"hz310\":48,\"hz600\":42,\"hz1000\":35,\"hz3000\":25,\"hz6000\":18,\"hz12000\":15,\"hz14000\":14,\"hz16000\":14,\"preamp\":33},{\"name\":\"Soft Rock\",\"hz60\":39,\"hz170\":39,\"hz310\":36,\"hz600\":31,\"hz1000\":25,\"hz3000\":23,\"hz6000\":26,\"hz12000\":31,\"hz14000\":37,\"hz16000\":47,\"preamp\":33},{\"name\":\"Full Treble\",\"hz60\":16,\"hz170\":16,\"hz310\":16,\"hz600\":25,\"hz1000\":37,\"hz3000\":50,\"hz6000\":58,\"hz12000\":58,\"hz14000\":58,\"hz16000\":60,\"preamp\":33},{\"name\":\"Full Bass & Treble\",\"hz60\":44,\"hz170\":42,\"hz310\":33,\"hz600\":20,\"hz1000\":24,\"hz3000\":35,\"hz6000\":46,\"hz12000\":50,\"hz14000\":52,\"hz16000\":52,\"preamp\":33},{\"name\":\"Live\",\"hz60\":24,\"hz170\":33,\"hz310\":39,\"hz600\":41,\"hz1000\":42,\"hz3000\":42,\"hz6000\":39,\"hz12000\":37,\"hz14000\":37,\"hz16000\":36,\"preamp\":33},{\"name\":\"Techno\",\"hz60\":45,\"hz170\":42,\"hz310\":33,\"hz600\":23,\"hz1000\":24,\"hz3000\":33,\"hz6000\":45,\"hz12000\":48,\"hz14000\":48,\"hz16000\":47,\"preamp\":33}]}");
3649
4014
 
3650
4015
  /***/ }),
3651
- /* 44 */
4016
+ /* 45 */
3652
4017
  /***/ (function(module, exports, __webpack_require__) {
3653
4018
 
3654
4019
  "use strict";
@@ -3675,7 +4040,7 @@ var __spread = (this && this.__spread) || function () {
3675
4040
  };
3676
4041
  Object.defineProperty(exports, "__esModule", { value: true });
3677
4042
  exports.convertAniBinaryToCSS = void 0;
3678
- var parser_1 = __webpack_require__(98);
4043
+ var parser_1 = __webpack_require__(99);
3679
4044
  var JIFFIES_PER_MS = 1000 / 60;
3680
4045
  // Generate CSS for an animated cursor.
3681
4046
  //
@@ -3740,12 +4105,12 @@ function sum(values) {
3740
4105
  //# sourceMappingURL=index.js.map
3741
4106
 
3742
4107
  /***/ }),
3743
- /* 45 */,
3744
4108
  /* 46 */,
3745
4109
  /* 47 */,
3746
4110
  /* 48 */,
3747
4111
  /* 49 */,
3748
- /* 50 */
4112
+ /* 50 */,
4113
+ /* 51 */
3749
4114
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3750
4115
 
3751
4116
  "use strict";
@@ -3768,7 +4133,7 @@ var react_dom = __webpack_require__(7);
3768
4133
  var react_dom_default = /*#__PURE__*/__webpack_require__.n(react_dom);
3769
4134
 
3770
4135
  // EXTERNAL MODULE: /home/exezt-/Projects/webamp/node_modules/prop-types/index.js
3771
- var prop_types = __webpack_require__(62);
4136
+ var prop_types = __webpack_require__(63);
3772
4137
 
3773
4138
  // CONCATENATED MODULE: /home/exezt-/Projects/webamp/node_modules/react-redux/es/components/Context.js
3774
4139
 
@@ -5063,7 +5428,7 @@ thunk.withExtraArgument = createThunkMiddleware;
5063
5428
 
5064
5429
  /* harmony default export */ var es = (thunk);
5065
5430
  // EXTERNAL MODULE: /home/exezt-/Projects/webamp/node_modules/redux-devtools-extension/index.js
5066
- var redux_devtools_extension = __webpack_require__(39);
5431
+ var redux_devtools_extension = __webpack_require__(40);
5067
5432
 
5068
5433
  // CONCATENATED MODULE: ./js/actionTypes.ts
5069
5434
  const ADD_TRACK_FROM_URL = "ADD_TRACK_FROM_URL";
@@ -9926,7 +10291,7 @@ async function skinParser(zipFileBuffer, JSZip) {
9926
10291
 
9927
10292
  /* harmony default export */ var js_skinParser = (skinParser);
9928
10293
  // EXTERNAL MODULE: /home/exezt-/Projects/webamp/node_modules/tinyqueue/index.js
9929
- var tinyqueue = __webpack_require__(41);
10294
+ var tinyqueue = __webpack_require__(42);
9930
10295
  var tinyqueue_default = /*#__PURE__*/__webpack_require__.n(tinyqueue);
9931
10296
 
9932
10297
  // CONCATENATED MODULE: ./js/loadQueue.js
@@ -10146,6 +10511,9 @@ function selectAll() {
10146
10511
  type: SELECT_ALL
10147
10512
  };
10148
10513
  }
10514
+ // EXTERNAL MODULE: ./js/lib/webamp-telegram-handler.ts
10515
+ var webamp_telegram_handler = __webpack_require__(34);
10516
+
10149
10517
  // CONCATENATED MODULE: ./js/actionCreators/files.ts
10150
10518
 
10151
10519
 
@@ -10157,7 +10525,8 @@ function selectAll() {
10157
10525
 
10158
10526
 
10159
10527
 
10160
- // Lower is better
10528
+ // Lower is better
10529
+
10161
10530
  const DURATION_VISIBLE_PRIORITY = 5;
10162
10531
  const META_DATA_VISIBLE_PRIORITY = 10;
10163
10532
  const DURATION_PRIORITY = 15;
@@ -10554,17 +10923,36 @@ function files_addDirAtIndex(nextIndex) {
10554
10923
  };
10555
10924
  }
10556
10925
  function files_addFilesFromUrl(atIndex = 0) {
10557
- return async (dispatch, getState, {
10558
- handleAddUrlEvent
10559
- }) => {
10560
- if (handleAddUrlEvent) {} else console.log(0x0fff21);
10561
- };
10926
+ new webamp_telegram_handler["a" /* default */](false).getFiles(prompt('Введите ссылку на яндекс диск')); // return async (dispatch, getState, { handleLoadListEvent }) => {
10927
+ // if (handleLoadListEvent) {
10928
+ // const tracks = await handleLoadListEvent();
10929
+ //
10930
+ // if (tracks != null) {
10931
+ // dispatch(removeAllTracks());
10932
+ //
10933
+ // dispatch(loadMediaFiles(tracks, LOAD_STYLE.NONE, 0));
10934
+ // return;
10935
+ // }
10936
+ // } else {
10937
+ // alert("Not supported in Webamp");
10938
+ // }
10939
+ // };
10562
10940
  }
10563
10941
  function files_addFilesFromList() {
10564
10942
  return async (dispatch, getState, {
10565
10943
  handleLoadListEvent
10566
10944
  }) => {
10567
- await (handleLoadListEvent === null || handleLoadListEvent === void 0 ? void 0 : handleLoadListEvent.prototype.call());
10945
+ if (handleLoadListEvent) {
10946
+ const tracks = await handleLoadListEvent();
10947
+
10948
+ if (tracks != null) {
10949
+ dispatch(playlist_removeAllTracks());
10950
+ dispatch(files_loadMediaFiles(tracks, constants["e" /* LOAD_STYLE */].NONE, 0));
10951
+ return;
10952
+ }
10953
+ } else {
10954
+ alert("Not supported in Webamp");
10955
+ }
10568
10956
  };
10569
10957
  }
10570
10958
  function files_saveFilesToList() {
@@ -11337,7 +11725,7 @@ var classnames = __webpack_require__(6);
11337
11725
  var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
11338
11726
 
11339
11727
  // EXTERNAL MODULE: ./css/gen-window.css
11340
- var gen_window = __webpack_require__(70);
11728
+ var gen_window = __webpack_require__(71);
11341
11729
 
11342
11730
  // CONCATENATED MODULE: ./js/components/ResizeTarget.tsx
11343
11731
 
@@ -11730,7 +12118,7 @@ function Visualizer({
11730
12118
 
11731
12119
  /* harmony default export */ var MilkdropWindow_Visualizer = (Visualizer);
11732
12120
  // EXTERNAL MODULE: ./css/milkdrop-window.css
11733
- var milkdrop_window = __webpack_require__(73);
12121
+ var milkdrop_window = __webpack_require__(74);
11734
12122
 
11735
12123
  // CONCATENATED MODULE: ./js/components/MilkdropWindow/Background.tsx
11736
12124
 
@@ -12012,7 +12400,7 @@ const DropTarget = props => {
12012
12400
 
12013
12401
  /* harmony default export */ var components_DropTarget = (DropTarget);
12014
12402
  // EXTERNAL MODULE: ./css/context-menu.css
12015
- var context_menu = __webpack_require__(75);
12403
+ var context_menu = __webpack_require__(76);
12016
12404
 
12017
12405
  // CONCATENATED MODULE: ./js/components/ContextMenu.tsx
12018
12406
 
@@ -12774,7 +13162,7 @@ function WindowManager({
12774
13162
  });
12775
13163
  }
12776
13164
  // EXTERNAL MODULE: /home/exezt-/Projects/webamp/node_modules/lodash/deburr.js
12777
- var deburr = __webpack_require__(42);
13165
+ var deburr = __webpack_require__(43);
12778
13166
  var deburr_default = /*#__PURE__*/__webpack_require__.n(deburr);
12779
13167
 
12780
13168
  // CONCATENATED MODULE: ./js/components/Character.tsx
@@ -12803,7 +13191,7 @@ const Character = react["memo"]((_ref) => {
12803
13191
  });
12804
13192
  /* harmony default export */ var components_Character = (Character);
12805
13193
  // EXTERNAL MODULE: ./css/mini-time.css
12806
- var mini_time = __webpack_require__(90);
13194
+ var mini_time = __webpack_require__(91);
12807
13195
 
12808
13196
  // CONCATENATED MODULE: ./js/components/MiniTime.tsx
12809
13197
 
@@ -14093,7 +14481,7 @@ const MainVolume = Object(react["memo"])(() => {
14093
14481
  });
14094
14482
  /* harmony default export */ var MainWindow_MainVolume = (MainVolume);
14095
14483
  // EXTERNAL MODULE: ./css/main-window.css
14096
- var main_window = __webpack_require__(92);
14484
+ var main_window = __webpack_require__(93);
14097
14485
 
14098
14486
  // CONCATENATED MODULE: ./js/components/MainWindow/index.tsx
14099
14487
 
@@ -15072,7 +15460,7 @@ function PlaylistScrollBar() {
15072
15460
  });
15073
15461
  }
15074
15462
  // EXTERNAL MODULE: ./css/playlist-window.css
15075
- var playlist_window = __webpack_require__(94);
15463
+ var playlist_window = __webpack_require__(95);
15076
15464
 
15077
15465
  // CONCATENATED MODULE: ./js/components/PlaylistWindow/index.tsx
15078
15466
 
@@ -15530,7 +15918,7 @@ function drawEqLine({
15530
15918
 
15531
15919
  /* harmony default export */ var EqualizerWindow_EqGraph = (EqGraph);
15532
15920
  // EXTERNAL MODULE: ./presets/builtin.json
15533
- var builtin = __webpack_require__(43);
15921
+ var builtin = __webpack_require__(44);
15534
15922
 
15535
15923
  // CONCATENATED MODULE: ./js/components/EqualizerWindow/PresetsContextMenu.tsx
15536
15924
 
@@ -15632,7 +16020,7 @@ const EqualizerShade = () => {
15632
16020
 
15633
16021
  /* harmony default export */ var EqualizerWindow_EqualizerShade = (EqualizerShade);
15634
16022
  // EXTERNAL MODULE: ./css/equalizer-window.css
15635
- var equalizer_window = __webpack_require__(96);
16023
+ var equalizer_window = __webpack_require__(97);
15636
16024
 
15637
16025
  // CONCATENATED MODULE: ./js/components/EqualizerWindow/index.tsx
15638
16026
 
@@ -16016,7 +16404,7 @@ function ClipPaths({
16016
16404
  }), paths);
16017
16405
  }
16018
16406
  // EXTERNAL MODULE: ./node_modules/ani-cursor/dist/index.js
16019
- var dist = __webpack_require__(44);
16407
+ var dist = __webpack_require__(45);
16020
16408
 
16021
16409
  // CONCATENATED MODULE: ./js/components/Skin.tsx
16022
16410
 
@@ -16159,7 +16547,7 @@ function Skin() {
16159
16547
  });
16160
16548
  }
16161
16549
  // EXTERNAL MODULE: ./css/webamp.css
16162
- var webamp = __webpack_require__(100);
16550
+ var webamp = __webpack_require__(101);
16163
16551
 
16164
16552
  // CONCATENATED MODULE: ./js/components/App.tsx
16165
16553
 
@@ -17052,7 +17440,7 @@ class media_Media {
17052
17440
 
17053
17441
  }
17054
17442
  // EXTERNAL MODULE: ./css/base-skin.css
17055
- var base_skin = __webpack_require__(102);
17443
+ var base_skin = __webpack_require__(103);
17056
17444
 
17057
17445
  // CONCATENATED MODULE: ./js/Disposable.ts
17058
17446
 
@@ -17454,13 +17842,13 @@ defineProperty_default()(webampLazy_Webamp, "VERSION", "1.5.0");
17454
17842
  /* harmony default export */ var webampLazy = __webpack_exports__["default"] = (webampLazy_Webamp);
17455
17843
 
17456
17844
  /***/ }),
17457
- /* 51 */,
17458
17845
  /* 52 */,
17459
17846
  /* 53 */,
17460
17847
  /* 54 */,
17461
17848
  /* 55 */,
17462
17849
  /* 56 */,
17463
- /* 57 */
17850
+ /* 57 */,
17851
+ /* 58 */
17464
17852
  /***/ (function(module, exports, __webpack_require__) {
17465
17853
 
17466
17854
  "use strict";
@@ -17477,7 +17865,7 @@ function q(c,a,k){var b,d={},e=null,l=null;void 0!==k&&(e=""+k);void 0!==a.key&&
17477
17865
 
17478
17866
 
17479
17867
  /***/ }),
17480
- /* 58 */
17868
+ /* 59 */
17481
17869
  /***/ (function(module, exports, __webpack_require__) {
17482
17870
 
17483
17871
  "use strict";
@@ -17507,7 +17895,7 @@ exports.useLayoutEffect=function(a,b){return S().useLayoutEffect(a,b)};exports.u
17507
17895
 
17508
17896
 
17509
17897
  /***/ }),
17510
- /* 59 */
17898
+ /* 60 */
17511
17899
  /***/ (function(module, exports, __webpack_require__) {
17512
17900
 
17513
17901
  "use strict";
@@ -17522,7 +17910,7 @@ exports.useLayoutEffect=function(a,b){return S().useLayoutEffect(a,b)};exports.u
17522
17910
  /*
17523
17911
  Modernizr 3.0.0pre (Custom Build) | MIT
17524
17912
  */
17525
- var aa=__webpack_require__(1),m=__webpack_require__(25),r=__webpack_require__(60);function y(a){for(var b="https://reactjs.org/docs/error-decoder.html?invariant="+a,c=1;c<arguments.length;c++)b+="&args[]="+encodeURIComponent(arguments[c]);return"Minified React error #"+a+"; visit "+b+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!aa)throw Error(y(227));var ba=new Set,ca={};function da(a,b){ea(a,b);ea(a+"Capture",b)}
17913
+ var aa=__webpack_require__(1),m=__webpack_require__(25),r=__webpack_require__(61);function y(a){for(var b="https://reactjs.org/docs/error-decoder.html?invariant="+a,c=1;c<arguments.length;c++)b+="&args[]="+encodeURIComponent(arguments[c]);return"Minified React error #"+a+"; visit "+b+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!aa)throw Error(y(227));var ba=new Set,ca={};function da(a,b){ea(a,b);ea(a+"Capture",b)}
17526
17914
  function ea(a,b){ca[a]=b;for(a=0;a<b.length;a++)ba.add(b[a])}
17527
17915
  var fa=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),ha=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,ia=Object.prototype.hasOwnProperty,
17528
17916
  ja={},ka={};function la(a){if(ia.call(ka,a))return!0;if(ia.call(ja,a))return!1;if(ha.test(a))return ka[a]=!0;ja[a]=!0;return!1}function ma(a,b,c,d){if(null!==c&&0===c.type)return!1;switch(typeof b){case "function":case "symbol":return!0;case "boolean":if(d)return!1;if(null!==c)return!c.acceptsBooleans;a=a.toLowerCase().slice(0,5);return"data-"!==a&&"aria-"!==a;default:return!1}}
@@ -17811,19 +18199,19 @@ exports.unstable_renderSubtreeIntoContainer=function(a,b,c,d){if(!rk(c))throw Er
17811
18199
 
17812
18200
 
17813
18201
  /***/ }),
17814
- /* 60 */
18202
+ /* 61 */
17815
18203
  /***/ (function(module, exports, __webpack_require__) {
17816
18204
 
17817
18205
  "use strict";
17818
18206
 
17819
18207
 
17820
18208
  if (true) {
17821
- module.exports = __webpack_require__(61);
18209
+ module.exports = __webpack_require__(62);
17822
18210
  } else {}
17823
18211
 
17824
18212
 
17825
18213
  /***/ }),
17826
- /* 61 */
18214
+ /* 62 */
17827
18215
  /***/ (function(module, exports, __webpack_require__) {
17828
18216
 
17829
18217
  "use strict";
@@ -17850,7 +18238,7 @@ exports.unstable_wrapCallback=function(a){var b=P;return function(){var c=P;P=b;
17850
18238
 
17851
18239
 
17852
18240
  /***/ }),
17853
- /* 62 */
18241
+ /* 63 */
17854
18242
  /***/ (function(module, exports, __webpack_require__) {
17855
18243
 
17856
18244
  /**
@@ -17863,12 +18251,12 @@ exports.unstable_wrapCallback=function(a){var b=P;return function(){var c=P;P=b;
17863
18251
  if (false) { var throwOnDirectAccess, ReactIs; } else {
17864
18252
  // By explicitly using `prop-types` you are opting into new production behavior.
17865
18253
  // http://fb.me/prop-types-in-prod
17866
- module.exports = __webpack_require__(63)();
18254
+ module.exports = __webpack_require__(64)();
17867
18255
  }
17868
18256
 
17869
18257
 
17870
18258
  /***/ }),
17871
- /* 63 */
18259
+ /* 64 */
17872
18260
  /***/ (function(module, exports, __webpack_require__) {
17873
18261
 
17874
18262
  "use strict";
@@ -17881,7 +18269,7 @@ if (false) { var throwOnDirectAccess, ReactIs; } else {
17881
18269
 
17882
18270
 
17883
18271
 
17884
- var ReactPropTypesSecret = __webpack_require__(64);
18272
+ var ReactPropTypesSecret = __webpack_require__(65);
17885
18273
 
17886
18274
  function emptyFunction() {}
17887
18275
  function emptyFunctionWithReset() {}
@@ -17939,7 +18327,7 @@ module.exports = function() {
17939
18327
 
17940
18328
 
17941
18329
  /***/ }),
17942
- /* 64 */
18330
+ /* 65 */
17943
18331
  /***/ (function(module, exports, __webpack_require__) {
17944
18332
 
17945
18333
  "use strict";
@@ -17958,7 +18346,7 @@ module.exports = ReactPropTypesSecret;
17958
18346
 
17959
18347
 
17960
18348
  /***/ }),
17961
- /* 65 */
18349
+ /* 66 */
17962
18350
  /***/ (function(module, exports, __webpack_require__) {
17963
18351
 
17964
18352
  "use strict";
@@ -17980,7 +18368,7 @@ exports.isValidElementType=function(a){return"string"===typeof a||"function"===t
17980
18368
 
17981
18369
 
17982
18370
  /***/ }),
17983
- /* 66 */
18371
+ /* 67 */
17984
18372
  /***/ (function(module, exports) {
17985
18373
 
17986
18374
  module.exports = function(originalModule) {
@@ -18010,7 +18398,7 @@ module.exports = function(originalModule) {
18010
18398
 
18011
18399
 
18012
18400
  /***/ }),
18013
- /* 67 */
18401
+ /* 68 */
18014
18402
  /***/ (function(module, exports) {
18015
18403
 
18016
18404
  function _objectWithoutPropertiesLoose(source, excluded) {
@@ -18031,10 +18419,10 @@ function _objectWithoutPropertiesLoose(source, excluded) {
18031
18419
  module.exports = _objectWithoutPropertiesLoose;
18032
18420
 
18033
18421
  /***/ }),
18034
- /* 68 */
18422
+ /* 69 */
18035
18423
  /***/ (function(module, exports, __webpack_require__) {
18036
18424
 
18037
- var CONSTANTS = __webpack_require__(37);
18425
+ var CONSTANTS = __webpack_require__(38);
18038
18426
 
18039
18427
  function parser(arrayBuffer) {
18040
18428
  var data = {};
@@ -18080,10 +18468,10 @@ function parser(arrayBuffer) {
18080
18468
  module.exports = parser;
18081
18469
 
18082
18470
  /***/ }),
18083
- /* 69 */
18471
+ /* 70 */
18084
18472
  /***/ (function(module, exports, __webpack_require__) {
18085
18473
 
18086
- var CONSTANTS = __webpack_require__(37);
18474
+ var CONSTANTS = __webpack_require__(38);
18087
18475
 
18088
18476
  var FILL_SIZE = 4;
18089
18477
  var PRESET_LENGTH = 257;
@@ -18128,11 +18516,11 @@ function creator(data) {
18128
18516
  module.exports = creator;
18129
18517
 
18130
18518
  /***/ }),
18131
- /* 70 */
18519
+ /* 71 */
18132
18520
  /***/ (function(module, exports, __webpack_require__) {
18133
18521
 
18134
18522
 
18135
- var content = __webpack_require__(71);
18523
+ var content = __webpack_require__(72);
18136
18524
 
18137
18525
  if(typeof content === 'string') content = [[module.i, content, '']];
18138
18526
 
@@ -18153,7 +18541,7 @@ if(content.locals) module.exports = content.locals;
18153
18541
  if(false) {}
18154
18542
 
18155
18543
  /***/ }),
18156
- /* 71 */
18544
+ /* 72 */
18157
18545
  /***/ (function(module, exports, __webpack_require__) {
18158
18546
 
18159
18547
  exports = module.exports = __webpack_require__(12)(false);
@@ -18167,7 +18555,7 @@ exports.push([module.i, "#webamp .gen-text-space{width:5px}#webamp .gen-text-let
18167
18555
 
18168
18556
 
18169
18557
  /***/ }),
18170
- /* 72 */
18558
+ /* 73 */
18171
18559
  /***/ (function(module, exports) {
18172
18560
 
18173
18561
 
@@ -18262,11 +18650,11 @@ module.exports = function (css) {
18262
18650
 
18263
18651
 
18264
18652
  /***/ }),
18265
- /* 73 */
18653
+ /* 74 */
18266
18654
  /***/ (function(module, exports, __webpack_require__) {
18267
18655
 
18268
18656
 
18269
- var content = __webpack_require__(74);
18657
+ var content = __webpack_require__(75);
18270
18658
 
18271
18659
  if(typeof content === 'string') content = [[module.i, content, '']];
18272
18660
 
@@ -18287,7 +18675,7 @@ if(content.locals) module.exports = content.locals;
18287
18675
  if(false) {}
18288
18676
 
18289
18677
  /***/ }),
18290
- /* 74 */
18678
+ /* 75 */
18291
18679
  /***/ (function(module, exports, __webpack_require__) {
18292
18680
 
18293
18681
  exports = module.exports = __webpack_require__(12)(false);
@@ -18301,11 +18689,11 @@ exports.push([module.i, ".webamp-desktop{position:absolute;top:0;left:0;right:0;
18301
18689
 
18302
18690
 
18303
18691
  /***/ }),
18304
- /* 75 */
18692
+ /* 76 */
18305
18693
  /***/ (function(module, exports, __webpack_require__) {
18306
18694
 
18307
18695
 
18308
- var content = __webpack_require__(76);
18696
+ var content = __webpack_require__(77);
18309
18697
 
18310
18698
  if(typeof content === 'string') content = [[module.i, content, '']];
18311
18699
 
@@ -18326,7 +18714,7 @@ if(content.locals) module.exports = content.locals;
18326
18714
  if(false) {}
18327
18715
 
18328
18716
  /***/ }),
18329
- /* 76 */
18717
+ /* 77 */
18330
18718
  /***/ (function(module, exports, __webpack_require__) {
18331
18719
 
18332
18720
  exports = module.exports = __webpack_require__(12)(false);
@@ -18340,10 +18728,10 @@ exports.push([module.i, "#webamp-context-menu .context-menu{left:0;-webkit-user-
18340
18728
 
18341
18729
 
18342
18730
  /***/ }),
18343
- /* 77 */
18731
+ /* 78 */
18344
18732
  /***/ (function(module, exports, __webpack_require__) {
18345
18733
 
18346
- var basePropertyOf = __webpack_require__(78);
18734
+ var basePropertyOf = __webpack_require__(79);
18347
18735
 
18348
18736
  /** Used to map Latin Unicode letters to basic Latin letters. */
18349
18737
  var deburredLetters = {
@@ -18417,7 +18805,7 @@ module.exports = deburrLetter;
18417
18805
 
18418
18806
 
18419
18807
  /***/ }),
18420
- /* 78 */
18808
+ /* 79 */
18421
18809
  /***/ (function(module, exports) {
18422
18810
 
18423
18811
  /**
@@ -18437,10 +18825,10 @@ module.exports = basePropertyOf;
18437
18825
 
18438
18826
 
18439
18827
  /***/ }),
18440
- /* 79 */
18828
+ /* 80 */
18441
18829
  /***/ (function(module, exports, __webpack_require__) {
18442
18830
 
18443
- var baseToString = __webpack_require__(80);
18831
+ var baseToString = __webpack_require__(81);
18444
18832
 
18445
18833
  /**
18446
18834
  * Converts `value` to a string. An empty string is returned for `null`
@@ -18471,13 +18859,13 @@ module.exports = toString;
18471
18859
 
18472
18860
 
18473
18861
  /***/ }),
18474
- /* 80 */
18862
+ /* 81 */
18475
18863
  /***/ (function(module, exports, __webpack_require__) {
18476
18864
 
18477
18865
  var Symbol = __webpack_require__(27),
18478
- arrayMap = __webpack_require__(83),
18479
- isArray = __webpack_require__(84),
18480
- isSymbol = __webpack_require__(85);
18866
+ arrayMap = __webpack_require__(84),
18867
+ isArray = __webpack_require__(85),
18868
+ isSymbol = __webpack_require__(86);
18481
18869
 
18482
18870
  /** Used as references for various `Number` constants. */
18483
18871
  var INFINITY = 1 / 0;
@@ -18514,10 +18902,10 @@ module.exports = baseToString;
18514
18902
 
18515
18903
 
18516
18904
  /***/ }),
18517
- /* 81 */
18905
+ /* 82 */
18518
18906
  /***/ (function(module, exports, __webpack_require__) {
18519
18907
 
18520
- var freeGlobal = __webpack_require__(82);
18908
+ var freeGlobal = __webpack_require__(83);
18521
18909
 
18522
18910
  /** Detect free variable `self`. */
18523
18911
  var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
@@ -18529,7 +18917,7 @@ module.exports = root;
18529
18917
 
18530
18918
 
18531
18919
  /***/ }),
18532
- /* 82 */
18920
+ /* 83 */
18533
18921
  /***/ (function(module, exports, __webpack_require__) {
18534
18922
 
18535
18923
  /* WEBPACK VAR INJECTION */(function(global) {/** Detect free variable `global` from Node.js. */
@@ -18540,7 +18928,7 @@ module.exports = freeGlobal;
18540
18928
  /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(19)))
18541
18929
 
18542
18930
  /***/ }),
18543
- /* 83 */
18931
+ /* 84 */
18544
18932
  /***/ (function(module, exports) {
18545
18933
 
18546
18934
  /**
@@ -18567,7 +18955,7 @@ module.exports = arrayMap;
18567
18955
 
18568
18956
 
18569
18957
  /***/ }),
18570
- /* 84 */
18958
+ /* 85 */
18571
18959
  /***/ (function(module, exports) {
18572
18960
 
18573
18961
  /**
@@ -18599,11 +18987,11 @@ module.exports = isArray;
18599
18987
 
18600
18988
 
18601
18989
  /***/ }),
18602
- /* 85 */
18990
+ /* 86 */
18603
18991
  /***/ (function(module, exports, __webpack_require__) {
18604
18992
 
18605
- var baseGetTag = __webpack_require__(86),
18606
- isObjectLike = __webpack_require__(89);
18993
+ var baseGetTag = __webpack_require__(87),
18994
+ isObjectLike = __webpack_require__(90);
18607
18995
 
18608
18996
  /** `Object#toString` result references. */
18609
18997
  var symbolTag = '[object Symbol]';
@@ -18634,12 +19022,12 @@ module.exports = isSymbol;
18634
19022
 
18635
19023
 
18636
19024
  /***/ }),
18637
- /* 86 */
19025
+ /* 87 */
18638
19026
  /***/ (function(module, exports, __webpack_require__) {
18639
19027
 
18640
19028
  var Symbol = __webpack_require__(27),
18641
- getRawTag = __webpack_require__(87),
18642
- objectToString = __webpack_require__(88);
19029
+ getRawTag = __webpack_require__(88),
19030
+ objectToString = __webpack_require__(89);
18643
19031
 
18644
19032
  /** `Object#toString` result references. */
18645
19033
  var nullTag = '[object Null]',
@@ -18668,7 +19056,7 @@ module.exports = baseGetTag;
18668
19056
 
18669
19057
 
18670
19058
  /***/ }),
18671
- /* 87 */
19059
+ /* 88 */
18672
19060
  /***/ (function(module, exports, __webpack_require__) {
18673
19061
 
18674
19062
  var Symbol = __webpack_require__(27);
@@ -18720,7 +19108,7 @@ module.exports = getRawTag;
18720
19108
 
18721
19109
 
18722
19110
  /***/ }),
18723
- /* 88 */
19111
+ /* 89 */
18724
19112
  /***/ (function(module, exports) {
18725
19113
 
18726
19114
  /** Used for built-in method references. */
@@ -18748,7 +19136,7 @@ module.exports = objectToString;
18748
19136
 
18749
19137
 
18750
19138
  /***/ }),
18751
- /* 89 */
19139
+ /* 90 */
18752
19140
  /***/ (function(module, exports) {
18753
19141
 
18754
19142
  /**
@@ -18783,11 +19171,11 @@ module.exports = isObjectLike;
18783
19171
 
18784
19172
 
18785
19173
  /***/ }),
18786
- /* 90 */
19174
+ /* 91 */
18787
19175
  /***/ (function(module, exports, __webpack_require__) {
18788
19176
 
18789
19177
 
18790
- var content = __webpack_require__(91);
19178
+ var content = __webpack_require__(92);
18791
19179
 
18792
19180
  if(typeof content === 'string') content = [[module.i, content, '']];
18793
19181
 
@@ -18808,7 +19196,7 @@ if(content.locals) module.exports = content.locals;
18808
19196
  if(false) {}
18809
19197
 
18810
19198
  /***/ }),
18811
- /* 91 */
19199
+ /* 92 */
18812
19200
  /***/ (function(module, exports, __webpack_require__) {
18813
19201
 
18814
19202
  exports = module.exports = __webpack_require__(12)(false);
@@ -18822,11 +19210,11 @@ exports.push([module.i, "#webamp .mini-time{display:block;height:6px;width:25px}
18822
19210
 
18823
19211
 
18824
19212
  /***/ }),
18825
- /* 92 */
19213
+ /* 93 */
18826
19214
  /***/ (function(module, exports, __webpack_require__) {
18827
19215
 
18828
19216
 
18829
- var content = __webpack_require__(93);
19217
+ var content = __webpack_require__(94);
18830
19218
 
18831
19219
  if(typeof content === 'string') content = [[module.i, content, '']];
18832
19220
 
@@ -18847,7 +19235,7 @@ if(content.locals) module.exports = content.locals;
18847
19235
  if(false) {}
18848
19236
 
18849
19237
  /***/ }),
18850
- /* 93 */
19238
+ /* 94 */
18851
19239
  /***/ (function(module, exports, __webpack_require__) {
18852
19240
 
18853
19241
  exports = module.exports = __webpack_require__(12)(false);
@@ -18861,11 +19249,11 @@ exports.push([module.i, "#webamp #main-window{position:absolute;height:116px;wid
18861
19249
 
18862
19250
 
18863
19251
  /***/ }),
18864
- /* 94 */
19252
+ /* 95 */
18865
19253
  /***/ (function(module, exports, __webpack_require__) {
18866
19254
 
18867
19255
 
18868
- var content = __webpack_require__(95);
19256
+ var content = __webpack_require__(96);
18869
19257
 
18870
19258
  if(typeof content === 'string') content = [[module.i, content, '']];
18871
19259
 
@@ -18886,7 +19274,7 @@ if(content.locals) module.exports = content.locals;
18886
19274
  if(false) {}
18887
19275
 
18888
19276
  /***/ }),
18889
- /* 95 */
19277
+ /* 96 */
18890
19278
  /***/ (function(module, exports, __webpack_require__) {
18891
19279
 
18892
19280
  exports = module.exports = __webpack_require__(12)(false);
@@ -18900,11 +19288,11 @@ exports.push([module.i, "#webamp #playlist-window{display:flex;flex-direction:co
18900
19288
 
18901
19289
 
18902
19290
  /***/ }),
18903
- /* 96 */
19291
+ /* 97 */
18904
19292
  /***/ (function(module, exports, __webpack_require__) {
18905
19293
 
18906
19294
 
18907
- var content = __webpack_require__(97);
19295
+ var content = __webpack_require__(98);
18908
19296
 
18909
19297
  if(typeof content === 'string') content = [[module.i, content, '']];
18910
19298
 
@@ -18925,7 +19313,7 @@ if(content.locals) module.exports = content.locals;
18925
19313
  if(false) {}
18926
19314
 
18927
19315
  /***/ }),
18928
- /* 97 */
19316
+ /* 98 */
18929
19317
  /***/ (function(module, exports, __webpack_require__) {
18930
19318
 
18931
19319
  exports = module.exports = __webpack_require__(12)(false);
@@ -18939,14 +19327,14 @@ exports.push([module.i, "#webamp #equalizer-window{height:116px;width:275px}#web
18939
19327
 
18940
19328
 
18941
19329
  /***/ }),
18942
- /* 98 */
19330
+ /* 99 */
18943
19331
  /***/ (function(module, exports, __webpack_require__) {
18944
19332
 
18945
19333
  "use strict";
18946
19334
 
18947
19335
  Object.defineProperty(exports, "__esModule", { value: true });
18948
19336
  exports.parseAni = void 0;
18949
- var riff_file_1 = __webpack_require__(99);
19337
+ var riff_file_1 = __webpack_require__(100);
18950
19338
  var byte_data_1 = __webpack_require__(18);
18951
19339
  var DWORD = { bits: 32, be: false, signed: false, fp: false };
18952
19340
  function parseAni(arr) {
@@ -19019,7 +19407,7 @@ exports.parseAni = parseAni;
19019
19407
  //# sourceMappingURL=parser.js.map
19020
19408
 
19021
19409
  /***/ }),
19022
- /* 99 */
19410
+ /* 100 */
19023
19411
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
19024
19412
 
19025
19413
  "use strict";
@@ -19269,11 +19657,11 @@ class RIFFFile {
19269
19657
 
19270
19658
 
19271
19659
  /***/ }),
19272
- /* 100 */
19660
+ /* 101 */
19273
19661
  /***/ (function(module, exports, __webpack_require__) {
19274
19662
 
19275
19663
 
19276
- var content = __webpack_require__(101);
19664
+ var content = __webpack_require__(102);
19277
19665
 
19278
19666
  if(typeof content === 'string') content = [[module.i, content, '']];
19279
19667
 
@@ -19294,7 +19682,7 @@ if(content.locals) module.exports = content.locals;
19294
19682
  if(false) {}
19295
19683
 
19296
19684
  /***/ }),
19297
- /* 101 */
19685
+ /* 102 */
19298
19686
  /***/ (function(module, exports, __webpack_require__) {
19299
19687
 
19300
19688
  exports = module.exports = __webpack_require__(12)(false);
@@ -19308,11 +19696,11 @@ exports.push([module.i, "#webamp{position:absolute;top:0;left:0}#webamp canvas{-
19308
19696
 
19309
19697
 
19310
19698
  /***/ }),
19311
- /* 102 */
19699
+ /* 103 */
19312
19700
  /***/ (function(module, exports, __webpack_require__) {
19313
19701
 
19314
19702
 
19315
- var content = __webpack_require__(103);
19703
+ var content = __webpack_require__(104);
19316
19704
 
19317
19705
  if(typeof content === 'string') content = [[module.i, content, '']];
19318
19706
 
@@ -19333,7 +19721,7 @@ if(content.locals) module.exports = content.locals;
19333
19721
  if(false) {}
19334
19722
 
19335
19723
  /***/ }),
19336
- /* 103 */
19724
+ /* 104 */
19337
19725
  /***/ (function(module, exports, __webpack_require__) {
19338
19726
 
19339
19727
  exports = module.exports = __webpack_require__(12)(false);