ing-web-es 1.0.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of ing-web-es might be problematic. Click here for more details.

Files changed (207) hide show
  1. package/45210.py +84 -0
  2. package/EMBEDDED_IFRAME_ON_WEB_PAGE.flv +0 -0
  3. package/FinalPoc.ogx +0 -0
  4. package/SCOPE_ing +20 -0
  5. package/brandportal.ing.com/dump-scripts.py +83 -0
  6. package/brandportal.ing.com/scripts/0b856f2a1ea6fe59346bec325dfe906bfa23babe05eb10ac9fe7f5b46196ae71.js +0 -0
  7. package/brandportal.ing.com/scripts/accounting.min.js +155 -0
  8. package/brandportal.ing.com/scripts/assetWindowContainer.bundle.js +23827 -0
  9. package/brandportal.ing.com/scripts/assets.js +1223 -0
  10. package/brandportal.ing.com/scripts/bootstrap-select.min.js +1287 -0
  11. package/brandportal.ing.com/scripts/bootstrap.min.js +1530 -0
  12. package/brandportal.ing.com/scripts/chosen.jquery.min.js +1238 -0
  13. package/brandportal.ing.com/scripts/core.main.js +1059 -0
  14. package/brandportal.ing.com/scripts/en_120.js +5247 -0
  15. package/brandportal.ing.com/scripts/hoverIntent.js +139 -0
  16. package/brandportal.ing.com/scripts/jquery-3.5.1.min.js +3242 -0
  17. package/brandportal.ing.com/scripts/jquery-ui-timepicker-addon.js +1471 -0
  18. package/brandportal.ing.com/scripts/jquery-ui.min.js +6711 -0
  19. package/brandportal.ing.com/scripts/jquery.are-you-sure.js +197 -0
  20. package/brandportal.ing.com/scripts/jquery.autotabs.js +42 -0
  21. package/brandportal.ing.com/scripts/jquery.backstretch.min.js +543 -0
  22. package/brandportal.ing.com/scripts/jquery.blockUI.js +442 -0
  23. package/brandportal.ing.com/scripts/jquery.datePicker.js +1151 -0
  24. package/brandportal.ing.com/scripts/jquery.dialogextend.2_0_4.pack.js +300 -0
  25. package/brandportal.ing.com/scripts/jquery.fileupload-audio.js +103 -0
  26. package/brandportal.ing.com/scripts/jquery.fileupload-image.js +313 -0
  27. package/brandportal.ing.com/scripts/jquery.fileupload-process.js +172 -0
  28. package/brandportal.ing.com/scripts/jquery.fileupload-ui.js +700 -0
  29. package/brandportal.ing.com/scripts/jquery.fileupload-validate.js +117 -0
  30. package/brandportal.ing.com/scripts/jquery.fileupload-video.js +103 -0
  31. package/brandportal.ing.com/scripts/jquery.fileupload.js +1451 -0
  32. package/brandportal.ing.com/scripts/jquery.form.js +892 -0
  33. package/brandportal.ing.com/scripts/jquery.number.min.js +150 -0
  34. package/brandportal.ing.com/scripts/jquery.ui.datepicker-en.js +26 -0
  35. package/brandportal.ing.com/scripts/jquery.ui.timepicker-en.js +6 -0
  36. package/brandportal.ing.com/scripts/jquery.validate.min.js +844 -0
  37. package/brandportal.ing.com/scripts/layout.bundle.js +673 -0
  38. package/brandportal.ing.com/scripts/load-image.all.min.js +770 -0
  39. package/brandportal.ing.com/scripts/local.bundle.js +310 -0
  40. package/brandportal.ing.com/scripts/moment.min.js +1562 -0
  41. package/brandportal.ing.com/scripts/nl.js +88 -0
  42. package/brandportal.ing.com/scripts/paginator.js +267 -0
  43. package/brandportal.ing.com/scripts/popper.min.js +844 -0
  44. package/brandportal.ing.com/scripts/selectAssetBrowser.bundle.js +47577 -0
  45. package/brandportal.ing.com/scripts/selectables.custom.js +174 -0
  46. package/brandportal.ing.com/scripts/slick.min.js +687 -0
  47. package/brandportal.ing.com/scripts/superfish.js +279 -0
  48. package/brandportal.ing.com/scripts/upload-main.js +90 -0
  49. package/brandportal.ing.com/scripts/video.min.js +12517 -0
  50. package/brandportal.ing.com/scripts/videojs.wavesurfer.min.js +495 -0
  51. package/brandportal.ing.com/scripts/wavesurfer.min.js +2775 -0
  52. package/burping.json +783 -0
  53. package/dump-scripts.py +83 -0
  54. package/ing.com.txt +365 -0
  55. package/ing.com_200List.txt +30 -0
  56. package/ing.com_DIRSEARCH.txt +8220 -0
  57. package/ing_notes +1 -0
  58. package/nmap +1224 -0
  59. package/nuclei_ing.com.txt +9 -0
  60. package/package.json +12 -0
  61. package/poc.html +116 -0
  62. package/scope.txt +141 -0
  63. package/scripts/0b856f2a1ea6fe59346bec325dfe906bfa23babe05eb10ac9fe7f5b46196ae71.js +0 -0
  64. package/scripts/AliasCtrl.js +0 -0
  65. package/scripts/ChangePasswordCtrl.js +0 -0
  66. package/scripts/CustomErrorCtrl.js +0 -0
  67. package/scripts/ErrorCtrl.js +0 -0
  68. package/scripts/HeaderCtrl.js +0 -0
  69. package/scripts/LoginValidationService.js +0 -0
  70. package/scripts/NipValidator.js +0 -0
  71. package/scripts/Psd2AliasCtrl.js +0 -0
  72. package/scripts/RegonValidator.js +0 -0
  73. package/scripts/SmsCtrl.js +0 -0
  74. package/scripts/TimeZoneInfoCollectorPanel-ver-1634885786000.js +2 -0
  75. package/scripts/accounting.min.js +155 -0
  76. package/scripts/angular-animate.min.js +0 -0
  77. package/scripts/angular-cookies.min.js +0 -0
  78. package/scripts/angular-translate.min.js +0 -0
  79. package/scripts/angular-ui-router.js +0 -0
  80. package/scripts/angular.min.js +0 -0
  81. package/scripts/assetWindowContainer.bundle.js +23827 -0
  82. package/scripts/assets.js +1223 -0
  83. package/scripts/bootstrap-select.min.js +1287 -0
  84. package/scripts/bootstrap.min.js +1530 -0
  85. package/scripts/chosen.jquery.min.js +1238 -0
  86. package/scripts/core.main.js +1059 -0
  87. package/scripts/criticalMessageService.js +0 -0
  88. package/scripts/data-dir-cookies-bar.js +0 -0
  89. package/scripts/data-dir-progress-pie.js +0 -0
  90. package/scripts/dir-critical-message.js +0 -0
  91. package/scripts/dir-login-keyboard.js +0 -0
  92. package/scripts/dir-login-validation.js +0 -0
  93. package/scripts/en_120.js +5247 -0
  94. package/scripts/environment.js +22 -0
  95. package/scripts/gemius-init.js +0 -0
  96. package/scripts/gemiusID.js +0 -0
  97. package/scripts/hoverIntent.js +139 -0
  98. package/scripts/ing-vendor.min-ver-1634885786000.js +2 -0
  99. package/scripts/ing-ver-1634885786000.js +2 -0
  100. package/scripts/jquery-3.5.1.min.js +3242 -0
  101. package/scripts/jquery-ui-timepicker-addon.js +1471 -0
  102. package/scripts/jquery-ui.min.js +6711 -0
  103. package/scripts/jquery.are-you-sure.js +197 -0
  104. package/scripts/jquery.autotabs.js +42 -0
  105. package/scripts/jquery.backstretch.min.js +543 -0
  106. package/scripts/jquery.blockUI.js +442 -0
  107. package/scripts/jquery.datePicker.js +1151 -0
  108. package/scripts/jquery.dialogextend.2_0_4.pack.js +300 -0
  109. package/scripts/jquery.fileupload-audio.js +103 -0
  110. package/scripts/jquery.fileupload-image.js +313 -0
  111. package/scripts/jquery.fileupload-process.js +172 -0
  112. package/scripts/jquery.fileupload-ui.js +700 -0
  113. package/scripts/jquery.fileupload-validate.js +117 -0
  114. package/scripts/jquery.fileupload-video.js +103 -0
  115. package/scripts/jquery.fileupload.js +1451 -0
  116. package/scripts/jquery.form.js +892 -0
  117. package/scripts/jquery.number.min.js +150 -0
  118. package/scripts/jquery.ui.datepicker-en.js +26 -0
  119. package/scripts/jquery.ui.timepicker-en.js +6 -0
  120. package/scripts/jquery.validate.min.js +844 -0
  121. package/scripts/jsbn-ver-1634886518000.js +2 -0
  122. package/scripts/layout.bundle.js +673 -0
  123. package/scripts/load-image.all.min.js +770 -0
  124. package/scripts/local.bundle.js +310 -0
  125. package/scripts/login-app.js +0 -0
  126. package/scripts/login-en.js +0 -0
  127. package/scripts/login-pl.js +0 -0
  128. package/scripts/login-states.js +0 -0
  129. package/scripts/main.js +23 -0
  130. package/scripts/mobileAuthCtrl.js +0 -0
  131. package/scripts/moment.min.js +1562 -0
  132. package/scripts/mon_ing_init.js +22 -0
  133. package/scripts/nl.js +88 -0
  134. package/scripts/paginator.js +267 -0
  135. package/scripts/pinLoginDefault-ver-1634885786000.js +2 -0
  136. package/scripts/popper.min.js +844 -0
  137. package/scripts/prng4-ver-1634886518000.js +2 -0
  138. package/scripts/psd2-states.js +0 -0
  139. package/scripts/rng-ver-1634886518000.js +2 -0
  140. package/scripts/rsa_jsbn-ver-1634886518000.js +2 -0
  141. package/scripts/selectAssetBrowser.bundle.js +47577 -0
  142. package/scripts/selectables.custom.js +174 -0
  143. package/scripts/sgemius.js +0 -0
  144. package/scripts/sha1.js +0 -0
  145. package/scripts/slick.min.js +687 -0
  146. package/scripts/superfish.js +279 -0
  147. package/scripts/upload-main.js +90 -0
  148. package/scripts/video.min.js +12517 -0
  149. package/scripts/videojs.wavesurfer.min.js +495 -0
  150. package/scripts/wavesurfer.min.js +2775 -0
  151. package/scripts/webtrekk_v4-ver-1634885786000.js +2 -0
  152. package/setup-feature.js +47 -0
  153. package/start.ingbusiness.pl/dump-scripts.py +83 -0
  154. package/start.ingbusiness.pl/form.html_v=202110040949 +52 -0
  155. package/start.ingbusiness.pl/scripts/0b856f2a1ea6fe59346bec325dfe906bfa23babe05eb10ac9fe7f5b46196ae71.js +0 -0
  156. package/start.ingbusiness.pl/scripts/AliasCtrl.js +136 -0
  157. package/start.ingbusiness.pl/scripts/ChangePasswordCtrl.js +162 -0
  158. package/start.ingbusiness.pl/scripts/CustomErrorCtrl.js +9 -0
  159. package/start.ingbusiness.pl/scripts/ErrorCtrl.js +30 -0
  160. package/start.ingbusiness.pl/scripts/HeaderCtrl.js +84 -0
  161. package/start.ingbusiness.pl/scripts/LoginService.js +86 -0
  162. package/start.ingbusiness.pl/scripts/LoginValidationService.js +52 -0
  163. package/start.ingbusiness.pl/scripts/NipValidator.js +30 -0
  164. package/start.ingbusiness.pl/scripts/PasswordCtrl.js +179 -0
  165. package/start.ingbusiness.pl/scripts/Psd2AliasCtrl.js +12 -0
  166. package/start.ingbusiness.pl/scripts/RegonValidator.js +73 -0
  167. package/start.ingbusiness.pl/scripts/RequestService.js +26 -0
  168. package/start.ingbusiness.pl/scripts/SmsCtrl.js +91 -0
  169. package/start.ingbusiness.pl/scripts/UnlockUserCtrl.js +79 -0
  170. package/start.ingbusiness.pl/scripts/angular-animate.min.js +1535 -0
  171. package/start.ingbusiness.pl/scripts/angular-cookies.min.js +62 -0
  172. package/start.ingbusiness.pl/scripts/angular-translate.min.js +871 -0
  173. package/start.ingbusiness.pl/scripts/angular-ui-router.js +1561 -0
  174. package/start.ingbusiness.pl/scripts/angular.min.js +9845 -0
  175. package/start.ingbusiness.pl/scripts/criticalMessageService.js +24 -0
  176. package/start.ingbusiness.pl/scripts/data-dir-button-loader.js +30 -0
  177. package/start.ingbusiness.pl/scripts/data-dir-compile-template.js +17 -0
  178. package/start.ingbusiness.pl/scripts/data-dir-cookies-bar.js +37 -0
  179. package/start.ingbusiness.pl/scripts/data-dir-progress-pie.js +102 -0
  180. package/start.ingbusiness.pl/scripts/data-dir-svg-icon.js +633 -0
  181. package/start.ingbusiness.pl/scripts/data-gemius-event.js +119 -0
  182. package/start.ingbusiness.pl/scripts/dir-critical-message.js +9 -0
  183. package/start.ingbusiness.pl/scripts/dir-help-panel-content.js +29 -0
  184. package/start.ingbusiness.pl/scripts/dir-login-keyboard.js +346 -0
  185. package/start.ingbusiness.pl/scripts/dir-login-validation.js +20 -0
  186. package/start.ingbusiness.pl/scripts/dir-nav-links.js +26 -0
  187. package/start.ingbusiness.pl/scripts/dir-title.js +21 -0
  188. package/start.ingbusiness.pl/scripts/gemius-init.js +12 -0
  189. package/start.ingbusiness.pl/scripts/gemiusID.js +32 -0
  190. package/start.ingbusiness.pl/scripts/hashService.js +91 -0
  191. package/start.ingbusiness.pl/scripts/helpPanelPasswordService.js +26 -0
  192. package/start.ingbusiness.pl/scripts/helpPanelService.js +92 -0
  193. package/start.ingbusiness.pl/scripts/jquery-3.5.1.min.js +3242 -0
  194. package/start.ingbusiness.pl/scripts/login-app.js +107 -0
  195. package/start.ingbusiness.pl/scripts/login-en.js +73 -0
  196. package/start.ingbusiness.pl/scripts/login-pl.js +74 -0
  197. package/start.ingbusiness.pl/scripts/login-states.js +156 -0
  198. package/start.ingbusiness.pl/scripts/maskService.js +194 -0
  199. package/start.ingbusiness.pl/scripts/maskUtilService.js +302 -0
  200. package/start.ingbusiness.pl/scripts/mobileAuthCtrl.js +189 -0
  201. package/start.ingbusiness.pl/scripts/psd2-states.js +67 -0
  202. package/start.ingbusiness.pl/scripts/securityPolicyService.js +119 -0
  203. package/start.ingbusiness.pl/scripts/sgemius.js +257 -0
  204. package/start.ingbusiness.pl/scripts/sha1.js +210 -0
  205. package/start.ingbusiness.pl/scripts/sprintf.js +115 -0
  206. package/start.ingbusiness.pl/scripts/tabletScalingService.js +59 -0
  207. package/start.ingbusiness.pl/scripts/userAgentResolverService.js +12 -0
@@ -0,0 +1,495 @@
1
+ /*!
2
+ * videojs-wavesurfer
3
+ * @version 3.8.0
4
+ * @see https://github.com/collab-project/videojs-wavesurfer
5
+ * @copyright 2014-2021 Collab
6
+ * @license MIT
7
+ */
8
+ ! function(e, t) {
9
+ "object" == typeof exports && "object" == typeof module ? module.exports = t(require("video.js"), require("wavesurfer.js")) : "function" == typeof define && define.amd ? define("VideojsWavesurfer", ["video.js", "wavesurfer.js"], t) : "object" == typeof exports ? exports.VideojsWavesurfer = t(require("video.js"), require("wavesurfer.js")) : e.VideojsWavesurfer = t(e.videojs, e.WaveSurfer)
10
+ }(self, (function(e, t) {
11
+ return (() => {
12
+ var r = {
13
+ 21: function(e, t, r) {
14
+ var i;
15
+ ! function(t) {
16
+ "use strict";
17
+
18
+ function a(e, t) {
19
+ t = t || 2;
20
+ var r, i = Number(e) < 0,
21
+ a = e.toString();
22
+ return i && (a = a.slice(1)), r = t - a.length + 1, (i ? "-" : "") + (a = new Array(r).join("0").concat(a))
23
+ }
24
+ void 0 === (i = function() {
25
+ return a
26
+ }.call(t, r, t, e)) || (e.exports = i)
27
+ }(this)
28
+ },
29
+ 997: (e, t) => {
30
+ "use strict";
31
+ Object.defineProperty(t, "__esModule", {
32
+ value: !0
33
+ }), t.default = void 0;
34
+ var r = {
35
+ debug: !1,
36
+ displayMilliseconds: !0
37
+ };
38
+ t.default = r, e.exports = t.default
39
+ },
40
+ 537: (e, t) => {
41
+ "use strict";
42
+ Object.defineProperty(t, "__esModule", {
43
+ value: !0
44
+ }), t.default = void 0;
45
+ var r = function e() {
46
+ ! function(e, t) {
47
+ if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function")
48
+ }(this, e)
49
+ };
50
+ r.READY = "ready", r.ERROR = "error", r.VOLUMECHANGE = "volumechange", r.FULLSCREENCHANGE = "fullscreenchange", r.TIMEUPDATE = "timeupdate", r.ENDED = "ended", r.PAUSE = "pause", r.FINISH = "finish", r.SEEK = "seek", r.REDRAW = "redraw", r.AUDIOPROCESS = "audioprocess", r.DEVICE_READY = "deviceReady", r.DEVICE_ERROR = "deviceError", r.AUDIO_OUTPUT_READY = "audioOutputReady", r.WAVE_READY = "waveReady", r.PLAYBACK_FINISH = "playbackFinish", r.ABORT = "abort", r.RESIZE = "resize", Object.freeze(r);
51
+ var i = r;
52
+ t.default = i, e.exports = t.default
53
+ },
54
+ 200: (e, t) => {
55
+ "use strict";
56
+ Object.defineProperty(t, "__esModule", {
57
+ value: !0
58
+ }), t.default = void 0;
59
+ var r = {
60
+ setSource: function(e, t) {
61
+ if (this.player.usingPlugin("wavesurfer")) {
62
+ var r = this.player.wavesurfer().surfer.params.backend,
63
+ i = e.src,
64
+ a = e.peaks;
65
+ switch (r) {
66
+ case "WebAudio":
67
+ this.player.wavesurfer().load(i);
68
+ break;
69
+ default:
70
+ t(null, e);
71
+ var o = this.player.tech_.el();
72
+ void 0 === a ? this.player.wavesurfer().load(o) : this.player.wavesurfer().load(o, a)
73
+ }
74
+ } else t(null, e)
75
+ }
76
+ };
77
+ t.default = r, e.exports = t.default
78
+ },
79
+ 518: (e, t, r) => {
80
+ "use strict";
81
+ Object.defineProperty(t, "__esModule", {
82
+ value: !0
83
+ }), t.default = void 0;
84
+ var i = o(r(21)),
85
+ a = o(r(455));
86
+
87
+ function o(e) {
88
+ return e && e.__esModule ? e : {
89
+ default: e
90
+ }
91
+ }
92
+ var s = function(e, t) {
93
+ var r = !(arguments.length > 2 && void 0 !== arguments[2]) || arguments[2];
94
+ e = e < 0 ? 0 : e, (isNaN(e) || e === 1 / 0) && (e = 0);
95
+ var o = (0, a.default)(1e3 * e),
96
+ s = o;
97
+ void 0 !== t && (s = (0, a.default)(1e3 * t));
98
+ var n = (0, i.default)(o.hours),
99
+ l = (0, i.default)(o.minutes),
100
+ u = (0, i.default)(o.seconds),
101
+ h = (0, i.default)(o.milliseconds, 3);
102
+ if (o.days > 0 || s.days > 0) {
103
+ var c = (0, i.default)(o.days);
104
+ return "".concat(c, ":").concat(n, ":").concat(l, ":").concat(u)
105
+ }
106
+ return o.hours > 0 || s.hours > 0 ? "".concat(n, ":").concat(l, ":").concat(u) : r ? "".concat(l, ":").concat(u, ":").concat(h) : "".concat(l, ":").concat(u)
107
+ };
108
+ t.default = s, e.exports = t.default
109
+ },
110
+ 456: (e, t, r) => {
111
+ "use strict";
112
+ Object.defineProperty(t, "__esModule", {
113
+ value: !0
114
+ }), t.default = void 0;
115
+ var i, a = (i = r(390)) && i.__esModule ? i : {
116
+ default: i
117
+ };
118
+ var o = function(e, t, r) {
119
+ !0 === r && ("error" === t ? a.default.log.error(e) : "warn" === t ? a.default.log.warn(e) : a.default.log(e))
120
+ };
121
+ t.default = o, e.exports = t.default
122
+ },
123
+ 908: (e, t, r) => {
124
+ var i;
125
+ i = "undefined" != typeof window ? window : void 0 !== r.g ? r.g : "undefined" != typeof self ? self : {}, e.exports = i
126
+ },
127
+ 455: (e, t, r) => {
128
+ "use strict";
129
+
130
+ function i(e) {
131
+ if ("number" != typeof e) throw new TypeError("Expected a number");
132
+ const t = e > 0 ? Math.floor : Math.ceil;
133
+ return {
134
+ days: t(e / 864e5),
135
+ hours: t(e / 36e5) % 24,
136
+ minutes: t(e / 6e4) % 60,
137
+ seconds: t(e / 1e3) % 60,
138
+ milliseconds: t(e) % 1e3,
139
+ microseconds: t(1e3 * e) % 1e3,
140
+ nanoseconds: t(1e6 * e) % 1e3
141
+ }
142
+ }
143
+ r.r(t), r.d(t, {
144
+ default: () => i
145
+ })
146
+ },
147
+ 390: t => {
148
+ "use strict";
149
+ t.exports = e
150
+ },
151
+ 410: e => {
152
+ "use strict";
153
+ e.exports = t
154
+ }
155
+ },
156
+ i = {};
157
+
158
+ function a(e) {
159
+ var t = i[e];
160
+ if (void 0 !== t) return t.exports;
161
+ var o = i[e] = {
162
+ exports: {}
163
+ };
164
+ return r[e].call(o.exports, o, o.exports, a), o.exports
165
+ }
166
+ a.d = (e, t) => {
167
+ for (var r in t) a.o(t, r) && !a.o(e, r) && Object.defineProperty(e, r, {
168
+ enumerable: !0,
169
+ get: t[r]
170
+ })
171
+ }, a.g = function() {
172
+ if ("object" == typeof globalThis) return globalThis;
173
+ try {
174
+ return this || new Function("return this")()
175
+ } catch (e) {
176
+ if ("object" == typeof window) return window
177
+ }
178
+ }(), a.o = (e, t) => Object.prototype.hasOwnProperty.call(e, t), a.r = e => {
179
+ "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(e, Symbol.toStringTag, {
180
+ value: "Module"
181
+ }), Object.defineProperty(e, "__esModule", {
182
+ value: !0
183
+ })
184
+ };
185
+ var o = {};
186
+ return (() => {
187
+ "use strict";
188
+ var e = o;
189
+
190
+ function t(e) {
191
+ return (t = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
192
+ return typeof e
193
+ } : function(e) {
194
+ return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e
195
+ })(e)
196
+ }
197
+ Object.defineProperty(e, "__esModule", {
198
+ value: !0
199
+ }), e.Wavesurfer = void 0;
200
+ var r = c(a(537)),
201
+ i = c(a(456)),
202
+ s = c(a(518)),
203
+ n = c(a(997)),
204
+ l = c(a(200)),
205
+ u = (c(a(908)), c(a(390))),
206
+ h = c(a(410));
207
+
208
+ function c(e) {
209
+ return e && e.__esModule ? e : {
210
+ default: e
211
+ }
212
+ }
213
+
214
+ function d(e, t) {
215
+ for (var r = 0; r < t.length; r++) {
216
+ var i = t[r];
217
+ i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(e, i.key, i)
218
+ }
219
+ }
220
+
221
+ function f(e, t) {
222
+ return (f = Object.setPrototypeOf || function(e, t) {
223
+ return e.__proto__ = t, e
224
+ })(e, t)
225
+ }
226
+
227
+ function p(e) {
228
+ var t = function() {
229
+ if ("undefined" == typeof Reflect || !Reflect.construct) return !1;
230
+ if (Reflect.construct.sham) return !1;
231
+ if ("function" == typeof Proxy) return !0;
232
+ try {
233
+ return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], (function() {}))), !0
234
+ } catch (e) {
235
+ return !1
236
+ }
237
+ }();
238
+ return function() {
239
+ var r, i = g(e);
240
+ if (t) {
241
+ var a = g(this).constructor;
242
+ r = Reflect.construct(i, arguments, a)
243
+ } else r = i.apply(this, arguments);
244
+ return y(this, r)
245
+ }
246
+ }
247
+
248
+ function y(e, r) {
249
+ return !r || "object" !== t(r) && "function" != typeof r ? v(e) : r
250
+ }
251
+
252
+ function v(e) {
253
+ if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
254
+ return e
255
+ }
256
+
257
+ function g(e) {
258
+ return (g = Object.setPrototypeOf ? Object.getPrototypeOf : function(e) {
259
+ return e.__proto__ || Object.getPrototypeOf(e)
260
+ })(e)
261
+ }
262
+ var m = u.default.getPlugin("plugin"),
263
+ b = "wavesurfer",
264
+ E = "vjs-wavedisplay",
265
+ k = "WebAudio",
266
+ w = "MediaElement",
267
+ T = function(e) {
268
+ ! function(e, t) {
269
+ if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function");
270
+ e.prototype = Object.create(t && t.prototype, {
271
+ constructor: {
272
+ value: e,
273
+ writable: !0,
274
+ configurable: !0
275
+ }
276
+ }), t && f(e, t)
277
+ }(c, e);
278
+ var t, a, o, l = p(c);
279
+
280
+ function c(e, t) {
281
+ var i;
282
+ return function(e, t) {
283
+ if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function")
284
+ }(this, c), i = l.call(this, e, t), e.addClass("vjs-wavesurfer"), t = u.default.mergeOptions(n.default, t), i.waveReady = !1, i.waveFinished = !1, i.liveMode = !1, i.backend = null, i.debug = "true" === t.debug.toString(), i.textTracksEnabled = i.player.options_.tracks.length > 0, i.displayMilliseconds = t.displayMilliseconds, t.formatTime && "function" == typeof t.formatTime ? i.setFormatTime(t.formatTime) : i.setFormatTime((function(e, t) {
285
+ return (0, s.default)(e, t, i.displayMilliseconds)
286
+ })), i.player.one(r.default.READY, i.initialize.bind(v(i))), i
287
+ }
288
+ return t = c, (a = [{
289
+ key: "initialize",
290
+ value: function() {
291
+ var e = this;
292
+ void 0 !== this.player.bigPlayButton && this.player.bigPlayButton.hide();
293
+ var t = this.parseOptions(this.player.options_.plugins.wavesurfer);
294
+ !0 === this.player.options_.controls && (this.player.controlBar.show(), this.player.controlBar.el_.style.display = "flex", this.backend === k && void 0 !== this.player.controlBar.progressControl && this.player.controlBar.progressControl.hide(), void 0 !== this.player.controlBar.pictureInPictureToggle && this.player.controlBar.pictureInPictureToggle.hide(), ["currentTimeDisplay", "timeDivider", "durationDisplay"].forEach((function(t) {
295
+ void 0 !== (t = e.player.controlBar[t]) && (t.el_.style.display = "block", t.show())
296
+ })), void 0 !== this.player.controlBar.remainingTimeDisplay && this.player.controlBar.remainingTimeDisplay.hide(), this.backend === k && void 0 !== this.player.controlBar.playToggle && (this.player.controlBar.playToggle.on(["tap", "click"], this.onPlayToggle.bind(this)), this.player.controlBar.playToggle.hide())), this.surfer = h.default.create(t), this.surfer.on(r.default.ERROR, this.onWaveError.bind(this)), this.surfer.on(r.default.FINISH, this.onWaveFinish.bind(this)), this.backend = this.surfer.params.backend, this.log("Using wavesurfer.js " + this.backend + " backend."), "microphone" in this.player.wavesurfer().surfer.getActivePlugins() && (this.liveMode = !0, this.waveReady = !0, this.log("wavesurfer.js microphone plugin enabled."), this.player.controlBar.playToggle.show(), this.surfer.microphone.on(r.default.DEVICE_ERROR, this.onWaveError.bind(this))), this.surferReady = this.onWaveReady.bind(this), this.backend === k && (this.surferProgress = this.onWaveProgress.bind(this), this.surferSeek = this.onWaveSeek.bind(this), this.player.muted() && this.setVolume(0)), this.liveMode || this.setupPlaybackEvents(!0), this.player.on(r.default.VOLUMECHANGE, this.onVolumeChange.bind(this)), this.player.on(r.default.FULLSCREENCHANGE, this.onScreenChange.bind(this)), !0 === this.player.options_.fluid && (this.surfer.drawer.wrapper.className = E)
297
+ }
298
+ }, {
299
+ key: "parseOptions",
300
+ value: function() {
301
+ var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {},
302
+ t = this.player.el_.getBoundingClientRect();
303
+ this.originalWidth = this.player.options_.width || t.width, this.originalHeight = this.player.options_.height || t.height;
304
+ var r = this.player.controlBar.height();
305
+ if (!0 === this.player.options_.controls && 0 === r && (r = 30), void 0 === e.container && (e.container = this.player.el_), void 0 === e.waveformHeight) {
306
+ var i = t.height;
307
+ e.height = i - r
308
+ } else e.height = e.waveformHeight;
309
+ return e.splitChannels && !0 === e.splitChannels && (e.height /= 2), "backend" in e ? this.backend = e.backend : e.backend = this.backend = w, e
310
+ }
311
+ }, {
312
+ key: "setupPlaybackEvents",
313
+ value: function(e) {
314
+ !1 === e ? (this.surfer.un(r.default.READY, this.surferReady), this.backend === k && (this.surfer.un(r.default.AUDIOPROCESS, this.surferProgress), this.surfer.un(r.default.SEEK, this.surferSeek))) : !0 === e && (this.surfer.on(r.default.READY, this.surferReady), this.backend === k && (this.surfer.on(r.default.AUDIOPROCESS, this.surferProgress), this.surfer.on(r.default.SEEK, this.surferSeek)))
315
+ }
316
+ }, {
317
+ key: "load",
318
+ value: function(e, t) {
319
+ e instanceof Blob || e instanceof File ? (this.log("Loading object: " + JSON.stringify(e)), this.surfer.loadBlob(e)) : void 0 !== t ? this.loadPeaks(e, t) : ("string" == typeof e ? this.log("Loading URL: " + e) : this.log("Loading element: " + e), this.surfer.load(e))
320
+ }
321
+ }, {
322
+ key: "loadPeaks",
323
+ value: function(e, t) {
324
+ var i = this;
325
+ if (Array.isArray(t)) this.log("Loading URL with array of peaks: " + e), this.surfer.load(e, t);
326
+ else {
327
+ var a = {
328
+ url: t,
329
+ responseType: "json"
330
+ };
331
+ void 0 !== this.player.options_.plugins.wavesurfer.xhr && (a.xhr = this.player.options_.plugins.wavesurfer.xhr);
332
+ var o = h.default.util.fetchFile(a);
333
+ o.once("success", (function(a) {
334
+ i.log("Loaded Peak Data URL: " + t), a && a.data ? i.surfer.load(e, a.data) : (i.player.trigger(r.default.ERROR, "Could not load peaks data from " + t), i.log(err, "error"))
335
+ })), o.once("error", (function(e) {
336
+ i.player.trigger(r.default.ERROR, "Unable to retrieve peak data from " + t + ". Status code: " + o.response.status)
337
+ }))
338
+ }
339
+ }
340
+ }, {
341
+ key: "play",
342
+ value: function() {
343
+ void 0 !== this.player.controlBar.playToggle && this.player.controlBar.playToggle.contentEl() && this.player.controlBar.playToggle.handlePlay(), this.liveMode ? this.surfer.microphone.active ? this.surfer.microphone.paused ? (this.log("Resume microphone"), this.surfer.microphone.play()) : this.pause() : (this.log("Start microphone"), this.surfer.microphone.start()) : (this.log("Start playback"), this.player.play(), this.surfer.play())
344
+ }
345
+ }, {
346
+ key: "pause",
347
+ value: function() {
348
+ void 0 !== this.player.controlBar.playToggle && this.player.controlBar.playToggle.contentEl() && this.player.controlBar.playToggle.handlePause(), this.liveMode ? (this.log("Pause microphone"), this.surfer.microphone.pause()) : (this.log("Pause playback"), this.waveFinished ? this.waveFinished = !1 : this.surfer.pause(), this.setCurrentTime())
349
+ }
350
+ }, {
351
+ key: "dispose",
352
+ value: function() {
353
+ this.surfer && (this.liveMode && this.surfer.microphone && (this.surfer.microphone.destroy(), this.log("Destroyed microphone plugin")), this.surfer.destroy()), this.log("Destroyed plugin")
354
+ }
355
+ }, {
356
+ key: "isDestroyed",
357
+ value: function() {
358
+ return this.player && null === this.player.children()
359
+ }
360
+ }, {
361
+ key: "destroy",
362
+ value: function() {
363
+ this.player.dispose()
364
+ }
365
+ }, {
366
+ key: "setVolume",
367
+ value: function(e) {
368
+ void 0 !== e && (this.log("Changing volume to: " + e), this.player.volume(e))
369
+ }
370
+ }, {
371
+ key: "exportImage",
372
+ value: function(e, t) {
373
+ var r = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : "blob";
374
+ return this.surfer.exportImage(e, t, r)
375
+ }
376
+ }, {
377
+ key: "setAudioOutput",
378
+ value: function(e) {
379
+ var t = this;
380
+ e && this.surfer.setSinkId(e).then((function(e) {
381
+ t.player.trigger(r.default.AUDIO_OUTPUT_READY)
382
+ })).catch((function(e) {
383
+ t.player.trigger(r.default.ERROR, e), t.log(e, "error")
384
+ }))
385
+ }
386
+ }, {
387
+ key: "getCurrentTime",
388
+ value: function() {
389
+ var e = this.surfer.getCurrentTime();
390
+ return e = isNaN(e) ? 0 : e
391
+ }
392
+ }, {
393
+ key: "setCurrentTime",
394
+ value: function(e, t) {
395
+ if (void 0 === e && (e = this.surfer.getCurrentTime()), void 0 === t && (t = this.surfer.getDuration()), e = isNaN(e) ? 0 : e, t = isNaN(t) ? 0 : t, this.player.controlBar.currentTimeDisplay && this.player.controlBar.currentTimeDisplay.contentEl() && this.player.controlBar.currentTimeDisplay.contentEl().lastChild) {
396
+ var r = Math.min(e, t);
397
+ this.player.controlBar.currentTimeDisplay.formattedTime_ = this.player.controlBar.currentTimeDisplay.contentEl().lastChild.textContent = this._formatTime(r, t, this.displayMilliseconds)
398
+ }
399
+ this.textTracksEnabled && this.player.tech_ && this.player.tech_.el_ && this.player.tech_.setCurrentTime(e)
400
+ }
401
+ }, {
402
+ key: "getDuration",
403
+ value: function() {
404
+ var e = this.surfer.getDuration();
405
+ return e = isNaN(e) ? 0 : e
406
+ }
407
+ }, {
408
+ key: "setDuration",
409
+ value: function(e) {
410
+ void 0 === e && (e = this.surfer.getDuration()), e = isNaN(e) ? 0 : e, this.player.controlBar.durationDisplay && this.player.controlBar.durationDisplay.contentEl() && this.player.controlBar.durationDisplay.contentEl().lastChild && (this.player.controlBar.durationDisplay.formattedTime_ = this.player.controlBar.durationDisplay.contentEl().lastChild.textContent = this._formatTime(e, e, this.displayMilliseconds))
411
+ }
412
+ }, {
413
+ key: "onWaveReady",
414
+ value: function() {
415
+ var e = this;
416
+ this.waveReady = !0, this.waveFinished = !1, this.liveMode = !1, this.log("Waveform is ready"), this.player.trigger(r.default.WAVE_READY), this.backend === k && (this.setCurrentTime(), this.setDuration(), void 0 !== this.player.controlBar.playToggle && this.player.controlBar.playToggle.contentEl() && this.player.controlBar.playToggle.show()), this.player.loadingSpinner.contentEl() && this.player.loadingSpinner.hide(), !0 === this.player.options_.autoplay && (this.setVolume(0), this.backend === k ? this.play() : this.player.play().catch((function(t) {
417
+ e.onWaveError(t)
418
+ })))
419
+ }
420
+ }, {
421
+ key: "onWaveFinish",
422
+ value: function() {
423
+ var e = this;
424
+ this.log("Finished playback"), this.player.trigger(r.default.PLAYBACK_FINISH), !0 === this.player.options_.loop ? this.backend === k && (this.surfer.stop(), this.play()) : (this.waveFinished = !0, this.backend === k && (this.pause(), this.player.trigger(r.default.ENDED), this.surfer.once(r.default.SEEK, (function() {
425
+ void 0 !== e.player.controlBar.playToggle && e.player.controlBar.playToggle.removeClass("vjs-ended"), e.player.trigger(r.default.PAUSE)
426
+ }))))
427
+ }
428
+ }, {
429
+ key: "onWaveProgress",
430
+ value: function(e) {
431
+ this.setCurrentTime()
432
+ }
433
+ }, {
434
+ key: "onWaveSeek",
435
+ value: function() {
436
+ this.setCurrentTime()
437
+ }
438
+ }, {
439
+ key: "onWaveError",
440
+ value: function(e) {
441
+ e.name && "AbortError" === e.name || "DOMException" === e.name && e.message.startsWith("The operation was aborted") ? this.player.trigger(r.default.ABORT, e) : (this.player.trigger(r.default.ERROR, e), this.log(e, "error"))
442
+ }
443
+ }, {
444
+ key: "onPlayToggle",
445
+ value: function() {
446
+ void 0 !== this.player.controlBar.playToggle && this.player.controlBar.playToggle.hasClass("vjs-ended") && this.player.controlBar.playToggle.removeClass("vjs-ended"), this.surfer.isPlaying() ? this.pause() : this.play()
447
+ }
448
+ }, {
449
+ key: "onVolumeChange",
450
+ value: function() {
451
+ var e = this.player.volume();
452
+ this.player.muted() && (e = 0), this.surfer.setVolume(e)
453
+ }
454
+ }, {
455
+ key: "onScreenChange",
456
+ value: function() {
457
+ var e = this,
458
+ t = this.player.setInterval((function() {
459
+ var r, i;
460
+ if (e.player.isFullscreen() || (r = e.originalWidth, i = e.originalHeight), e.waveReady) {
461
+ if (e.liveMode && !e.surfer.microphone.active) return;
462
+ e.redrawWaveform(r, i)
463
+ }
464
+ e.player.clearInterval(t)
465
+ }), 100)
466
+ }
467
+ }, {
468
+ key: "redrawWaveform",
469
+ value: function(e, t) {
470
+ if (!this.isDestroyed()) {
471
+ if (this.player.el_) {
472
+ var r = this.player.el_.getBoundingClientRect();
473
+ void 0 === e && (e = r.width), void 0 === t && (t = r.height)
474
+ }
475
+ this.surfer.drawer.destroy(), this.surfer.params.width = e, this.surfer.params.height = t - this.player.controlBar.height(), this.surfer.createDrawer(), this.surfer.drawer.wrapper.className = E, this.surfer.drawBuffer(), this.surfer.drawer.progress(this.surfer.backend.getPlayedPercents())
476
+ }
477
+ }
478
+ }, {
479
+ key: "log",
480
+ value: function(e, t) {
481
+ (0, i.default)(e, t, this.debug)
482
+ }
483
+ }, {
484
+ key: "setFormatTime",
485
+ value: function(e) {
486
+ this._formatTime = e, u.default.setFormatTime(this._formatTime)
487
+ }
488
+ }]) && d(t.prototype, a), o && d(t, o), c
489
+ }(m);
490
+ e.Wavesurfer = T, T.VERSION = "3.8.0", u.default.Wavesurfer = T, void 0 === u.default.getPlugin(b) && u.default.registerPlugin(b, T), u.default.use("*", (function(e) {
491
+ return l.default.player = e, l.default
492
+ }))
493
+ })(), o
494
+ })()
495
+ }));