@bigbinary/neeto-media-recorder 2.6.19 → 2.7.1
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/constants.js +6 -6
- package/constants.js.map +1 -1
- package/core.js +398 -456
- package/core.js.map +1 -1
- package/index.js +299 -318
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -34,128 +34,116 @@ var e=[],t=[];function n(n,r){if(n&&"undefined"!=typeof document){var a,s=!0===r
|
|
|
34
34
|
var css = ".nrec-done-button{background-color:rgb(var(--neeto-ui-error-100));padding:8px 12px}.nrec-done-button:hover{box-shadow:0 0 0 3px rgba(var(--neeto-ui-error-500),15%)}body .neeto-ui-modal__wrapper .neeto-ui-btn--style-danger{background:rgb(var(--neeto-ui-error-500))}.nrec-media-upload-progress{margin:0 auto;max-width:480px}.nrec-media-upload-error{color:rgb(var(--neeto-ui-error-500))}.nrec-media-upload-loader{background:#d9d9d9;border-radius:14px;display:inline-block;height:10px;margin:0 auto;max-width:480px;overflow:hidden;position:relative;width:100%}.nrec-media-upload-loader:after{animation:movementLoader 3s linear infinite,barAnimation 1.5s linear infinite;background-color:#fff;background-image:linear-gradient(45deg,#268e6c 25%,#12805c 0,#12805c 50%,#268e6c 0,#268e6c 75%,#12805c 0,#12805c);background-size:1em 1em;border-radius:14px;box-sizing:border-box;content:\"\";height:10px;left:0;position:absolute;top:0;width:230px}@media only screen and (max-width:767px){.nrec-media-upload-loader:after{width:130px}}@keyframes barAnimation{0%{background-position:1em 0}to{background-position:0 0}}@keyframes movementLoader{0%{left:0;transform:translateX(-100%)}to{left:100%;transform:translateX(0)}}";
|
|
35
35
|
n(css,{});
|
|
36
36
|
|
|
37
|
-
function _typeof$1(
|
|
37
|
+
function _typeof$1(o) {
|
|
38
38
|
"@babel/helpers - typeof";
|
|
39
39
|
|
|
40
|
-
return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (
|
|
41
|
-
return typeof
|
|
42
|
-
} : function (
|
|
43
|
-
return
|
|
44
|
-
}, _typeof$1(
|
|
40
|
+
return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
41
|
+
return typeof o;
|
|
42
|
+
} : function (o) {
|
|
43
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
44
|
+
}, _typeof$1(o);
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
-
function
|
|
48
|
-
if (_typeof$1(
|
|
49
|
-
var
|
|
50
|
-
if (
|
|
51
|
-
var
|
|
52
|
-
if (_typeof$1(
|
|
47
|
+
function toPrimitive(t, r) {
|
|
48
|
+
if ("object" != _typeof$1(t) || !t) return t;
|
|
49
|
+
var e = t[Symbol.toPrimitive];
|
|
50
|
+
if (void 0 !== e) {
|
|
51
|
+
var i = e.call(t, r || "default");
|
|
52
|
+
if ("object" != _typeof$1(i)) return i;
|
|
53
53
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
54
54
|
}
|
|
55
|
-
return (
|
|
55
|
+
return ("string" === r ? String : Number)(t);
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
function
|
|
59
|
-
var
|
|
60
|
-
return _typeof$1(
|
|
58
|
+
function toPropertyKey(t) {
|
|
59
|
+
var i = toPrimitive(t, "string");
|
|
60
|
+
return "symbol" == _typeof$1(i) ? i : i + "";
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
-
function _defineProperty(
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
writable: true
|
|
71
|
-
});
|
|
72
|
-
} else {
|
|
73
|
-
obj[key] = value;
|
|
74
|
-
}
|
|
75
|
-
return obj;
|
|
63
|
+
function _defineProperty(e, r, t) {
|
|
64
|
+
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
65
|
+
value: t,
|
|
66
|
+
enumerable: !0,
|
|
67
|
+
configurable: !0,
|
|
68
|
+
writable: !0
|
|
69
|
+
}) : e[r] = t, e;
|
|
76
70
|
}
|
|
77
71
|
|
|
78
|
-
function asyncGeneratorStep(
|
|
72
|
+
function asyncGeneratorStep(n, t, e, r, o, a, c) {
|
|
79
73
|
try {
|
|
80
|
-
var
|
|
81
|
-
|
|
82
|
-
} catch (
|
|
83
|
-
|
|
84
|
-
return;
|
|
85
|
-
}
|
|
86
|
-
if (info.done) {
|
|
87
|
-
resolve(value);
|
|
88
|
-
} else {
|
|
89
|
-
Promise.resolve(value).then(_next, _throw);
|
|
74
|
+
var i = n[a](c),
|
|
75
|
+
u = i.value;
|
|
76
|
+
} catch (n) {
|
|
77
|
+
return void e(n);
|
|
90
78
|
}
|
|
79
|
+
i.done ? t(u) : Promise.resolve(u).then(r, o);
|
|
91
80
|
}
|
|
92
|
-
function _asyncToGenerator(
|
|
81
|
+
function _asyncToGenerator(n) {
|
|
93
82
|
return function () {
|
|
94
|
-
var
|
|
95
|
-
|
|
96
|
-
return new Promise(function (
|
|
97
|
-
var
|
|
98
|
-
function _next(
|
|
99
|
-
asyncGeneratorStep(
|
|
83
|
+
var t = this,
|
|
84
|
+
e = arguments;
|
|
85
|
+
return new Promise(function (r, o) {
|
|
86
|
+
var a = n.apply(t, e);
|
|
87
|
+
function _next(n) {
|
|
88
|
+
asyncGeneratorStep(a, r, o, _next, _throw, "next", n);
|
|
100
89
|
}
|
|
101
|
-
function _throw(
|
|
102
|
-
asyncGeneratorStep(
|
|
90
|
+
function _throw(n) {
|
|
91
|
+
asyncGeneratorStep(a, r, o, _next, _throw, "throw", n);
|
|
103
92
|
}
|
|
104
|
-
_next(
|
|
93
|
+
_next(void 0);
|
|
105
94
|
});
|
|
106
95
|
};
|
|
107
96
|
}
|
|
108
97
|
|
|
109
|
-
function _arrayWithHoles(
|
|
110
|
-
if (Array.isArray(
|
|
98
|
+
function _arrayWithHoles(r) {
|
|
99
|
+
if (Array.isArray(r)) return r;
|
|
111
100
|
}
|
|
112
101
|
|
|
113
|
-
function _iterableToArrayLimit(
|
|
114
|
-
var
|
|
115
|
-
if (null !=
|
|
116
|
-
var
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
102
|
+
function _iterableToArrayLimit(r, l) {
|
|
103
|
+
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
104
|
+
if (null != t) {
|
|
105
|
+
var e,
|
|
106
|
+
n,
|
|
107
|
+
i,
|
|
108
|
+
u,
|
|
109
|
+
a = [],
|
|
110
|
+
f = !0,
|
|
111
|
+
o = !1;
|
|
123
112
|
try {
|
|
124
|
-
if (
|
|
125
|
-
} catch (
|
|
126
|
-
|
|
113
|
+
if (i = (t = t.call(r)).next, 0 === l) ; else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
|
|
114
|
+
} catch (r) {
|
|
115
|
+
o = !0, n = r;
|
|
127
116
|
} finally {
|
|
128
117
|
try {
|
|
129
|
-
if (!
|
|
118
|
+
if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
|
|
130
119
|
} finally {
|
|
131
|
-
if (
|
|
120
|
+
if (o) throw n;
|
|
132
121
|
}
|
|
133
122
|
}
|
|
134
|
-
return
|
|
123
|
+
return a;
|
|
135
124
|
}
|
|
136
125
|
}
|
|
137
126
|
|
|
138
|
-
function _arrayLikeToArray(
|
|
139
|
-
|
|
140
|
-
for (var
|
|
141
|
-
return
|
|
127
|
+
function _arrayLikeToArray(r, a) {
|
|
128
|
+
(null == a || a > r.length) && (a = r.length);
|
|
129
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
130
|
+
return n;
|
|
142
131
|
}
|
|
143
132
|
|
|
144
|
-
function _unsupportedIterableToArray(
|
|
145
|
-
if (
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
133
|
+
function _unsupportedIterableToArray(r, a) {
|
|
134
|
+
if (r) {
|
|
135
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
136
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
137
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
|
|
138
|
+
}
|
|
151
139
|
}
|
|
152
140
|
|
|
153
141
|
function _nonIterableRest() {
|
|
154
142
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
155
143
|
}
|
|
156
144
|
|
|
157
|
-
function _slicedToArray(
|
|
158
|
-
return _arrayWithHoles(
|
|
145
|
+
function _slicedToArray(r, e) {
|
|
146
|
+
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
|
159
147
|
}
|
|
160
148
|
|
|
161
149
|
function getDefaultExportFromCjs (x) {
|
|
@@ -167,14 +155,14 @@ var regeneratorRuntime$1 = {exports: {}};
|
|
|
167
155
|
var _typeof = {exports: {}};
|
|
168
156
|
|
|
169
157
|
(function (module) {
|
|
170
|
-
function _typeof(
|
|
158
|
+
function _typeof(o) {
|
|
171
159
|
"@babel/helpers - typeof";
|
|
172
160
|
|
|
173
|
-
return
|
|
174
|
-
return typeof
|
|
175
|
-
} : function (
|
|
176
|
-
return
|
|
177
|
-
}, module.exports.__esModule = true, module.exports["default"] = module.exports
|
|
161
|
+
return module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
162
|
+
return typeof o;
|
|
163
|
+
} : function (o) {
|
|
164
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
165
|
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports, _typeof(o);
|
|
178
166
|
}
|
|
179
167
|
module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
180
168
|
} (_typeof));
|
|
@@ -185,304 +173,304 @@ var _typeofExports = _typeof.exports;
|
|
|
185
173
|
var _typeof = _typeofExports["default"];
|
|
186
174
|
function _regeneratorRuntime() {
|
|
187
175
|
module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
|
|
188
|
-
return
|
|
176
|
+
return e;
|
|
189
177
|
}, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
190
|
-
var
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
178
|
+
var t,
|
|
179
|
+
e = {},
|
|
180
|
+
r = Object.prototype,
|
|
181
|
+
n = r.hasOwnProperty,
|
|
182
|
+
o = Object.defineProperty || function (t, e, r) {
|
|
183
|
+
t[e] = r.value;
|
|
195
184
|
},
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
function define(
|
|
201
|
-
return Object.defineProperty(
|
|
202
|
-
value:
|
|
185
|
+
i = "function" == typeof Symbol ? Symbol : {},
|
|
186
|
+
a = i.iterator || "@@iterator",
|
|
187
|
+
c = i.asyncIterator || "@@asyncIterator",
|
|
188
|
+
u = i.toStringTag || "@@toStringTag";
|
|
189
|
+
function define(t, e, r) {
|
|
190
|
+
return Object.defineProperty(t, e, {
|
|
191
|
+
value: r,
|
|
203
192
|
enumerable: !0,
|
|
204
193
|
configurable: !0,
|
|
205
194
|
writable: !0
|
|
206
|
-
}),
|
|
195
|
+
}), t[e];
|
|
207
196
|
}
|
|
208
197
|
try {
|
|
209
198
|
define({}, "");
|
|
210
|
-
} catch (
|
|
211
|
-
define = function define(
|
|
212
|
-
return
|
|
199
|
+
} catch (t) {
|
|
200
|
+
define = function define(t, e, r) {
|
|
201
|
+
return t[e] = r;
|
|
213
202
|
};
|
|
214
203
|
}
|
|
215
|
-
function wrap(
|
|
216
|
-
var
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
return
|
|
220
|
-
value: makeInvokeMethod(
|
|
221
|
-
}),
|
|
204
|
+
function wrap(t, e, r, n) {
|
|
205
|
+
var i = e && e.prototype instanceof Generator ? e : Generator,
|
|
206
|
+
a = Object.create(i.prototype),
|
|
207
|
+
c = new Context(n || []);
|
|
208
|
+
return o(a, "_invoke", {
|
|
209
|
+
value: makeInvokeMethod(t, r, c)
|
|
210
|
+
}), a;
|
|
222
211
|
}
|
|
223
|
-
function tryCatch(
|
|
212
|
+
function tryCatch(t, e, r) {
|
|
224
213
|
try {
|
|
225
214
|
return {
|
|
226
215
|
type: "normal",
|
|
227
|
-
arg:
|
|
216
|
+
arg: t.call(e, r)
|
|
228
217
|
};
|
|
229
|
-
} catch (
|
|
218
|
+
} catch (t) {
|
|
230
219
|
return {
|
|
231
220
|
type: "throw",
|
|
232
|
-
arg:
|
|
221
|
+
arg: t
|
|
233
222
|
};
|
|
234
223
|
}
|
|
235
224
|
}
|
|
236
|
-
|
|
237
|
-
var
|
|
225
|
+
e.wrap = wrap;
|
|
226
|
+
var h = "suspendedStart",
|
|
227
|
+
l = "suspendedYield",
|
|
228
|
+
f = "executing",
|
|
229
|
+
s = "completed",
|
|
230
|
+
y = {};
|
|
238
231
|
function Generator() {}
|
|
239
232
|
function GeneratorFunction() {}
|
|
240
233
|
function GeneratorFunctionPrototype() {}
|
|
241
|
-
var
|
|
242
|
-
define(
|
|
234
|
+
var p = {};
|
|
235
|
+
define(p, a, function () {
|
|
243
236
|
return this;
|
|
244
237
|
});
|
|
245
|
-
var
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
var
|
|
249
|
-
function defineIteratorMethods(
|
|
250
|
-
["next", "throw", "return"].forEach(function (
|
|
251
|
-
define(
|
|
252
|
-
return this._invoke(
|
|
238
|
+
var d = Object.getPrototypeOf,
|
|
239
|
+
v = d && d(d(values([])));
|
|
240
|
+
v && v !== r && n.call(v, a) && (p = v);
|
|
241
|
+
var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
|
|
242
|
+
function defineIteratorMethods(t) {
|
|
243
|
+
["next", "throw", "return"].forEach(function (e) {
|
|
244
|
+
define(t, e, function (t) {
|
|
245
|
+
return this._invoke(e, t);
|
|
253
246
|
});
|
|
254
247
|
});
|
|
255
248
|
}
|
|
256
|
-
function AsyncIterator(
|
|
257
|
-
function invoke(
|
|
258
|
-
var
|
|
259
|
-
if ("throw" !==
|
|
260
|
-
var
|
|
261
|
-
|
|
262
|
-
return
|
|
263
|
-
invoke("next",
|
|
264
|
-
}, function (
|
|
265
|
-
invoke("throw",
|
|
266
|
-
}) :
|
|
267
|
-
|
|
268
|
-
}, function (
|
|
269
|
-
return invoke("throw",
|
|
249
|
+
function AsyncIterator(t, e) {
|
|
250
|
+
function invoke(r, o, i, a) {
|
|
251
|
+
var c = tryCatch(t[r], t, o);
|
|
252
|
+
if ("throw" !== c.type) {
|
|
253
|
+
var u = c.arg,
|
|
254
|
+
h = u.value;
|
|
255
|
+
return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
|
|
256
|
+
invoke("next", t, i, a);
|
|
257
|
+
}, function (t) {
|
|
258
|
+
invoke("throw", t, i, a);
|
|
259
|
+
}) : e.resolve(h).then(function (t) {
|
|
260
|
+
u.value = t, i(u);
|
|
261
|
+
}, function (t) {
|
|
262
|
+
return invoke("throw", t, i, a);
|
|
270
263
|
});
|
|
271
264
|
}
|
|
272
|
-
|
|
265
|
+
a(c.arg);
|
|
273
266
|
}
|
|
274
|
-
var
|
|
275
|
-
|
|
276
|
-
value: function value(
|
|
267
|
+
var r;
|
|
268
|
+
o(this, "_invoke", {
|
|
269
|
+
value: function value(t, n) {
|
|
277
270
|
function callInvokeWithMethodAndArg() {
|
|
278
|
-
return new
|
|
279
|
-
invoke(
|
|
271
|
+
return new e(function (e, r) {
|
|
272
|
+
invoke(t, n, e, r);
|
|
280
273
|
});
|
|
281
274
|
}
|
|
282
|
-
return
|
|
275
|
+
return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
283
276
|
}
|
|
284
277
|
});
|
|
285
278
|
}
|
|
286
|
-
function makeInvokeMethod(
|
|
287
|
-
var
|
|
288
|
-
return function (
|
|
289
|
-
if (
|
|
290
|
-
if (
|
|
291
|
-
if ("throw" ===
|
|
292
|
-
return
|
|
279
|
+
function makeInvokeMethod(e, r, n) {
|
|
280
|
+
var o = h;
|
|
281
|
+
return function (i, a) {
|
|
282
|
+
if (o === f) throw Error("Generator is already running");
|
|
283
|
+
if (o === s) {
|
|
284
|
+
if ("throw" === i) throw a;
|
|
285
|
+
return {
|
|
286
|
+
value: t,
|
|
287
|
+
done: !0
|
|
288
|
+
};
|
|
293
289
|
}
|
|
294
|
-
for (
|
|
295
|
-
var
|
|
296
|
-
if (
|
|
297
|
-
var
|
|
298
|
-
if (
|
|
299
|
-
if (
|
|
300
|
-
return
|
|
290
|
+
for (n.method = i, n.arg = a;;) {
|
|
291
|
+
var c = n.delegate;
|
|
292
|
+
if (c) {
|
|
293
|
+
var u = maybeInvokeDelegate(c, n);
|
|
294
|
+
if (u) {
|
|
295
|
+
if (u === y) continue;
|
|
296
|
+
return u;
|
|
301
297
|
}
|
|
302
298
|
}
|
|
303
|
-
if ("next" ===
|
|
304
|
-
if (
|
|
305
|
-
|
|
306
|
-
} else "return" ===
|
|
307
|
-
|
|
308
|
-
var
|
|
309
|
-
if ("normal" ===
|
|
310
|
-
if (
|
|
299
|
+
if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
|
|
300
|
+
if (o === h) throw o = s, n.arg;
|
|
301
|
+
n.dispatchException(n.arg);
|
|
302
|
+
} else "return" === n.method && n.abrupt("return", n.arg);
|
|
303
|
+
o = f;
|
|
304
|
+
var p = tryCatch(e, r, n);
|
|
305
|
+
if ("normal" === p.type) {
|
|
306
|
+
if (o = n.done ? s : l, p.arg === y) continue;
|
|
311
307
|
return {
|
|
312
|
-
value:
|
|
313
|
-
done:
|
|
308
|
+
value: p.arg,
|
|
309
|
+
done: n.done
|
|
314
310
|
};
|
|
315
311
|
}
|
|
316
|
-
"throw" ===
|
|
312
|
+
"throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
|
|
317
313
|
}
|
|
318
314
|
};
|
|
319
315
|
}
|
|
320
|
-
function maybeInvokeDelegate(
|
|
321
|
-
var
|
|
322
|
-
|
|
323
|
-
if (
|
|
324
|
-
var
|
|
325
|
-
if ("throw" ===
|
|
326
|
-
var
|
|
327
|
-
return
|
|
316
|
+
function maybeInvokeDelegate(e, r) {
|
|
317
|
+
var n = r.method,
|
|
318
|
+
o = e.iterator[n];
|
|
319
|
+
if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
|
|
320
|
+
var i = tryCatch(o, e.iterator, r.arg);
|
|
321
|
+
if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
|
|
322
|
+
var a = i.arg;
|
|
323
|
+
return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
|
|
328
324
|
}
|
|
329
|
-
function pushTryEntry(
|
|
330
|
-
var
|
|
331
|
-
tryLoc:
|
|
325
|
+
function pushTryEntry(t) {
|
|
326
|
+
var e = {
|
|
327
|
+
tryLoc: t[0]
|
|
332
328
|
};
|
|
333
|
-
1 in
|
|
329
|
+
1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
|
|
334
330
|
}
|
|
335
|
-
function resetTryEntry(
|
|
336
|
-
var
|
|
337
|
-
|
|
331
|
+
function resetTryEntry(t) {
|
|
332
|
+
var e = t.completion || {};
|
|
333
|
+
e.type = "normal", delete e.arg, t.completion = e;
|
|
338
334
|
}
|
|
339
|
-
function Context(
|
|
335
|
+
function Context(t) {
|
|
340
336
|
this.tryEntries = [{
|
|
341
337
|
tryLoc: "root"
|
|
342
|
-
}],
|
|
338
|
+
}], t.forEach(pushTryEntry, this), this.reset(!0);
|
|
343
339
|
}
|
|
344
|
-
function values(
|
|
345
|
-
if (
|
|
346
|
-
var
|
|
347
|
-
if (
|
|
348
|
-
if ("function" == typeof
|
|
349
|
-
if (!isNaN(
|
|
350
|
-
var
|
|
351
|
-
|
|
352
|
-
for (; ++
|
|
353
|
-
return next.value =
|
|
340
|
+
function values(e) {
|
|
341
|
+
if (e || "" === e) {
|
|
342
|
+
var r = e[a];
|
|
343
|
+
if (r) return r.call(e);
|
|
344
|
+
if ("function" == typeof e.next) return e;
|
|
345
|
+
if (!isNaN(e.length)) {
|
|
346
|
+
var o = -1,
|
|
347
|
+
i = function next() {
|
|
348
|
+
for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
|
|
349
|
+
return next.value = t, next.done = !0, next;
|
|
354
350
|
};
|
|
355
|
-
return
|
|
351
|
+
return i.next = i;
|
|
356
352
|
}
|
|
357
353
|
}
|
|
358
|
-
|
|
359
|
-
next: doneResult
|
|
360
|
-
};
|
|
361
|
-
}
|
|
362
|
-
function doneResult() {
|
|
363
|
-
return {
|
|
364
|
-
value: undefined,
|
|
365
|
-
done: !0
|
|
366
|
-
};
|
|
354
|
+
throw new TypeError(_typeof(e) + " is not iterable");
|
|
367
355
|
}
|
|
368
|
-
return GeneratorFunction.prototype = GeneratorFunctionPrototype,
|
|
356
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
|
|
369
357
|
value: GeneratorFunctionPrototype,
|
|
370
358
|
configurable: !0
|
|
371
|
-
}),
|
|
359
|
+
}), o(GeneratorFunctionPrototype, "constructor", {
|
|
372
360
|
value: GeneratorFunction,
|
|
373
361
|
configurable: !0
|
|
374
|
-
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype,
|
|
375
|
-
var
|
|
376
|
-
return !!
|
|
377
|
-
},
|
|
378
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(
|
|
379
|
-
},
|
|
362
|
+
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
|
|
363
|
+
var e = "function" == typeof t && t.constructor;
|
|
364
|
+
return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
|
|
365
|
+
}, e.mark = function (t) {
|
|
366
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
|
|
367
|
+
}, e.awrap = function (t) {
|
|
380
368
|
return {
|
|
381
|
-
__await:
|
|
369
|
+
__await: t
|
|
382
370
|
};
|
|
383
|
-
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype,
|
|
371
|
+
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
|
|
384
372
|
return this;
|
|
385
|
-
}),
|
|
386
|
-
void 0 ===
|
|
387
|
-
var
|
|
388
|
-
return
|
|
389
|
-
return
|
|
373
|
+
}), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
|
|
374
|
+
void 0 === i && (i = Promise);
|
|
375
|
+
var a = new AsyncIterator(wrap(t, r, n, o), i);
|
|
376
|
+
return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
|
|
377
|
+
return t.done ? t.value : a.next();
|
|
390
378
|
});
|
|
391
|
-
}, defineIteratorMethods(
|
|
379
|
+
}, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
|
|
392
380
|
return this;
|
|
393
|
-
}), define(
|
|
381
|
+
}), define(g, "toString", function () {
|
|
394
382
|
return "[object Generator]";
|
|
395
|
-
}),
|
|
396
|
-
var
|
|
397
|
-
|
|
398
|
-
for (var
|
|
399
|
-
return
|
|
400
|
-
for (;
|
|
401
|
-
var
|
|
402
|
-
if (
|
|
383
|
+
}), e.keys = function (t) {
|
|
384
|
+
var e = Object(t),
|
|
385
|
+
r = [];
|
|
386
|
+
for (var n in e) r.push(n);
|
|
387
|
+
return r.reverse(), function next() {
|
|
388
|
+
for (; r.length;) {
|
|
389
|
+
var t = r.pop();
|
|
390
|
+
if (t in e) return next.value = t, next.done = !1, next;
|
|
403
391
|
}
|
|
404
392
|
return next.done = !0, next;
|
|
405
393
|
};
|
|
406
|
-
},
|
|
394
|
+
}, e.values = values, Context.prototype = {
|
|
407
395
|
constructor: Context,
|
|
408
|
-
reset: function reset(
|
|
409
|
-
if (this.prev = 0, this.next = 0, this.sent = this._sent =
|
|
396
|
+
reset: function reset(e) {
|
|
397
|
+
if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
|
|
410
398
|
},
|
|
411
399
|
stop: function stop() {
|
|
412
400
|
this.done = !0;
|
|
413
|
-
var
|
|
414
|
-
if ("throw" ===
|
|
401
|
+
var t = this.tryEntries[0].completion;
|
|
402
|
+
if ("throw" === t.type) throw t.arg;
|
|
415
403
|
return this.rval;
|
|
416
404
|
},
|
|
417
|
-
dispatchException: function dispatchException(
|
|
418
|
-
if (this.done) throw
|
|
419
|
-
var
|
|
420
|
-
function handle(
|
|
421
|
-
return
|
|
405
|
+
dispatchException: function dispatchException(e) {
|
|
406
|
+
if (this.done) throw e;
|
|
407
|
+
var r = this;
|
|
408
|
+
function handle(n, o) {
|
|
409
|
+
return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
|
|
422
410
|
}
|
|
423
|
-
for (var
|
|
424
|
-
var
|
|
425
|
-
|
|
426
|
-
if ("root" ===
|
|
427
|
-
if (
|
|
428
|
-
var
|
|
429
|
-
|
|
430
|
-
if (
|
|
431
|
-
if (this.prev <
|
|
432
|
-
if (this.prev <
|
|
433
|
-
} else if (
|
|
434
|
-
if (this.prev <
|
|
411
|
+
for (var o = this.tryEntries.length - 1; o >= 0; --o) {
|
|
412
|
+
var i = this.tryEntries[o],
|
|
413
|
+
a = i.completion;
|
|
414
|
+
if ("root" === i.tryLoc) return handle("end");
|
|
415
|
+
if (i.tryLoc <= this.prev) {
|
|
416
|
+
var c = n.call(i, "catchLoc"),
|
|
417
|
+
u = n.call(i, "finallyLoc");
|
|
418
|
+
if (c && u) {
|
|
419
|
+
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
|
420
|
+
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
421
|
+
} else if (c) {
|
|
422
|
+
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
|
435
423
|
} else {
|
|
436
|
-
if (!
|
|
437
|
-
if (this.prev <
|
|
424
|
+
if (!u) throw Error("try statement without catch or finally");
|
|
425
|
+
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
438
426
|
}
|
|
439
427
|
}
|
|
440
428
|
}
|
|
441
429
|
},
|
|
442
|
-
abrupt: function abrupt(
|
|
443
|
-
for (var
|
|
444
|
-
var
|
|
445
|
-
if (
|
|
446
|
-
var
|
|
430
|
+
abrupt: function abrupt(t, e) {
|
|
431
|
+
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
|
|
432
|
+
var o = this.tryEntries[r];
|
|
433
|
+
if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
|
|
434
|
+
var i = o;
|
|
447
435
|
break;
|
|
448
436
|
}
|
|
449
437
|
}
|
|
450
|
-
|
|
451
|
-
var
|
|
452
|
-
return
|
|
438
|
+
i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
|
|
439
|
+
var a = i ? i.completion : {};
|
|
440
|
+
return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
|
|
453
441
|
},
|
|
454
|
-
complete: function complete(
|
|
455
|
-
if ("throw" ===
|
|
456
|
-
return "break" ===
|
|
442
|
+
complete: function complete(t, e) {
|
|
443
|
+
if ("throw" === t.type) throw t.arg;
|
|
444
|
+
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;
|
|
457
445
|
},
|
|
458
|
-
finish: function finish(
|
|
459
|
-
for (var
|
|
460
|
-
var
|
|
461
|
-
if (
|
|
446
|
+
finish: function finish(t) {
|
|
447
|
+
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
448
|
+
var r = this.tryEntries[e];
|
|
449
|
+
if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
|
|
462
450
|
}
|
|
463
451
|
},
|
|
464
|
-
"catch": function _catch(
|
|
465
|
-
for (var
|
|
466
|
-
var
|
|
467
|
-
if (
|
|
468
|
-
var
|
|
469
|
-
if ("throw" ===
|
|
470
|
-
var
|
|
471
|
-
resetTryEntry(
|
|
452
|
+
"catch": function _catch(t) {
|
|
453
|
+
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
454
|
+
var r = this.tryEntries[e];
|
|
455
|
+
if (r.tryLoc === t) {
|
|
456
|
+
var n = r.completion;
|
|
457
|
+
if ("throw" === n.type) {
|
|
458
|
+
var o = n.arg;
|
|
459
|
+
resetTryEntry(r);
|
|
472
460
|
}
|
|
473
|
-
return
|
|
461
|
+
return o;
|
|
474
462
|
}
|
|
475
463
|
}
|
|
476
|
-
throw
|
|
464
|
+
throw Error("illegal catch attempt");
|
|
477
465
|
},
|
|
478
|
-
delegateYield: function delegateYield(
|
|
466
|
+
delegateYield: function delegateYield(e, r, n) {
|
|
479
467
|
return this.delegate = {
|
|
480
|
-
iterator: values(
|
|
481
|
-
resultName:
|
|
482
|
-
nextLoc:
|
|
483
|
-
}, "next" === this.method && (this.arg =
|
|
468
|
+
iterator: values(e),
|
|
469
|
+
resultName: r,
|
|
470
|
+
nextLoc: n
|
|
471
|
+
}, "next" === this.method && (this.arg = t), y;
|
|
484
472
|
}
|
|
485
|
-
},
|
|
473
|
+
}, e;
|
|
486
474
|
}
|
|
487
475
|
module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
488
476
|
} (regeneratorRuntime$1));
|
|
@@ -641,8 +629,8 @@ var isMp4Supported = function isMp4Supported() {
|
|
|
641
629
|
return mimeType.includes(MIME_TYPE$1.mp4);
|
|
642
630
|
};
|
|
643
631
|
|
|
644
|
-
function ownKeys$2(
|
|
645
|
-
function _objectSpread$2(
|
|
632
|
+
function ownKeys$2(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
633
|
+
function _objectSpread$2(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
646
634
|
var baseUrl = "/api/v1/recordings";
|
|
647
635
|
var create = function create(payload) {
|
|
648
636
|
return axios.post(baseUrl, {
|
|
@@ -655,8 +643,8 @@ var recordingsApi = {
|
|
|
655
643
|
create: create
|
|
656
644
|
};
|
|
657
645
|
|
|
658
|
-
function ownKeys$1(
|
|
659
|
-
function _objectSpread$1(
|
|
646
|
+
function ownKeys$1(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
647
|
+
function _objectSpread$1(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
660
648
|
var useCreateRecording = function useCreateRecording(options) {
|
|
661
649
|
return useMutation(_objectSpread$1({
|
|
662
650
|
mutationFn: recordingsApi.create
|
|
@@ -688,40 +676,33 @@ var AbortUpload = withT(function (_ref) {
|
|
|
688
676
|
});
|
|
689
677
|
});
|
|
690
678
|
|
|
691
|
-
function _objectWithoutPropertiesLoose(
|
|
692
|
-
if (
|
|
693
|
-
var
|
|
694
|
-
var
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
key = sourceKeys[i];
|
|
698
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
699
|
-
target[key] = source[key];
|
|
679
|
+
function _objectWithoutPropertiesLoose(r, e) {
|
|
680
|
+
if (null == r) return {};
|
|
681
|
+
var t = {};
|
|
682
|
+
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
683
|
+
if (-1 !== e.indexOf(n)) continue;
|
|
684
|
+
t[n] = r[n];
|
|
700
685
|
}
|
|
701
|
-
return
|
|
686
|
+
return t;
|
|
702
687
|
}
|
|
703
688
|
|
|
704
|
-
function _objectWithoutProperties(
|
|
705
|
-
if (
|
|
706
|
-
var
|
|
707
|
-
|
|
689
|
+
function _objectWithoutProperties(e, t) {
|
|
690
|
+
if (null == e) return {};
|
|
691
|
+
var o,
|
|
692
|
+
r,
|
|
693
|
+
i = _objectWithoutPropertiesLoose(e, t);
|
|
708
694
|
if (Object.getOwnPropertySymbols) {
|
|
709
|
-
var
|
|
710
|
-
for (
|
|
711
|
-
key = sourceSymbolKeys[i];
|
|
712
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
713
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
714
|
-
target[key] = source[key];
|
|
715
|
-
}
|
|
695
|
+
var n = Object.getOwnPropertySymbols(e);
|
|
696
|
+
for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
716
697
|
}
|
|
717
|
-
return
|
|
698
|
+
return i;
|
|
718
699
|
}
|
|
719
700
|
|
|
720
701
|
var _excluded = ["size"],
|
|
721
702
|
_excluded2 = ["size"],
|
|
722
703
|
_excluded3 = ["size"];
|
|
723
|
-
function ownKeys(
|
|
724
|
-
function _objectSpread(
|
|
704
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
705
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
725
706
|
var PlayIcon = function PlayIcon(_ref) {
|
|
726
707
|
var size = _ref.size,
|
|
727
708
|
other = _objectWithoutProperties(_ref, _excluded);
|