@byomakase/omakase-react-components 1.0.0-RC1 → 1.0.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/dist/index.cjs.js +5 -5
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +162 -162
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +5 -5
- package/dist/index.umd.js.map +1 -1
- package/package.json +6 -3
package/dist/index.es.js
CHANGED
|
@@ -2,7 +2,7 @@ var Rn = Object.defineProperty;
|
|
|
2
2
|
var Dn = (t, e, n) => e in t ? Rn(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
3
3
|
var S = (t, e, n) => Dn(t, typeof e != "symbol" ? e + "" : e, n);
|
|
4
4
|
import { MarkerLane as Yt, ThumbnailLane as Vn, OmakasePlayer as Bn, PeriodMarker as H } from "@byomakase/omakase-player";
|
|
5
|
-
import b, { useEffect as Y, useRef as
|
|
5
|
+
import b, { useEffect as Y, useRef as tt, useState as pe, useMemo as Fn } from "react";
|
|
6
6
|
class to {
|
|
7
7
|
constructor(e) {
|
|
8
8
|
S(this, "_lanes", []);
|
|
@@ -55,17 +55,17 @@ class to {
|
|
|
55
55
|
});
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
|
-
var
|
|
59
|
-
return
|
|
58
|
+
var rt = function(t, e) {
|
|
59
|
+
return rt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
|
|
60
60
|
n.__proto__ = r;
|
|
61
61
|
} || function(n, r) {
|
|
62
62
|
for (var i in r) Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
|
|
63
|
-
},
|
|
63
|
+
}, rt(t, e);
|
|
64
64
|
};
|
|
65
|
-
function
|
|
65
|
+
function Ie(t, e) {
|
|
66
66
|
if (typeof e != "function" && e !== null)
|
|
67
67
|
throw new TypeError("Class extends value " + String(e) + " is not a constructor or null");
|
|
68
|
-
|
|
68
|
+
rt(t, e);
|
|
69
69
|
function n() {
|
|
70
70
|
this.constructor = t;
|
|
71
71
|
}
|
|
@@ -158,7 +158,7 @@ function Qt(t, e) {
|
|
|
158
158
|
return { value: u[0] ? u[1] : void 0, done: !0 };
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
|
-
function
|
|
161
|
+
function Ce(t) {
|
|
162
162
|
var e = typeof Symbol == "function" && Symbol.iterator, n = e && t[e], r = 0;
|
|
163
163
|
if (n) return n.call(t);
|
|
164
164
|
if (t && typeof t.length == "number") return {
|
|
@@ -168,7 +168,7 @@ function ye(t) {
|
|
|
168
168
|
};
|
|
169
169
|
throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
170
170
|
}
|
|
171
|
-
function
|
|
171
|
+
function Pe(t, e) {
|
|
172
172
|
var n = typeof Symbol == "function" && t[Symbol.iterator];
|
|
173
173
|
if (!n) return t;
|
|
174
174
|
var r = n.call(t), i, o = [], s;
|
|
@@ -185,13 +185,13 @@ function He(t, e) {
|
|
|
185
185
|
}
|
|
186
186
|
return o;
|
|
187
187
|
}
|
|
188
|
-
function
|
|
188
|
+
function Ue(t, e, n) {
|
|
189
189
|
if (n || arguments.length === 2) for (var r = 0, i = e.length, o; r < i; r++)
|
|
190
190
|
(o || !(r in e)) && (o || (o = Array.prototype.slice.call(e, 0, r)), o[r] = e[r]);
|
|
191
191
|
return t.concat(o || Array.prototype.slice.call(e));
|
|
192
192
|
}
|
|
193
|
-
function
|
|
194
|
-
return this instanceof
|
|
193
|
+
function ye(t) {
|
|
194
|
+
return this instanceof ye ? (this.v = t, this) : new ye(t);
|
|
195
195
|
}
|
|
196
196
|
function Hn(t, e, n) {
|
|
197
197
|
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
@@ -219,7 +219,7 @@ function Hn(t, e, n) {
|
|
|
219
219
|
}
|
|
220
220
|
}
|
|
221
221
|
function u(h) {
|
|
222
|
-
h.value instanceof
|
|
222
|
+
h.value instanceof ye ? Promise.resolve(h.value.v).then(l, d) : f(o[0][2], h);
|
|
223
223
|
}
|
|
224
224
|
function l(h) {
|
|
225
225
|
c("next", h);
|
|
@@ -234,7 +234,7 @@ function Hn(t, e, n) {
|
|
|
234
234
|
function Pn(t) {
|
|
235
235
|
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
236
236
|
var e = t[Symbol.asyncIterator], n;
|
|
237
|
-
return e ? e.call(t) : (t = typeof
|
|
237
|
+
return e ? e.call(t) : (t = typeof Ce == "function" ? Ce(t) : t[Symbol.iterator](), n = {}, r("next"), r("throw"), r("return"), n[Symbol.asyncIterator] = function() {
|
|
238
238
|
return this;
|
|
239
239
|
}, n);
|
|
240
240
|
function r(o) {
|
|
@@ -259,7 +259,7 @@ function ft(t) {
|
|
|
259
259
|
}, n = t(e);
|
|
260
260
|
return n.prototype = Object.create(Error.prototype), n.prototype.constructor = n, n;
|
|
261
261
|
}
|
|
262
|
-
var
|
|
262
|
+
var nt = ft(function(t) {
|
|
263
263
|
return function(n) {
|
|
264
264
|
t(this), this.message = n ? n.length + ` errors occurred during unsubscription:
|
|
265
265
|
` + n.map(function(r, i) {
|
|
@@ -268,13 +268,13 @@ var tt = ft(function(t) {
|
|
|
268
268
|
`) : "", this.name = "UnsubscriptionError", this.errors = n;
|
|
269
269
|
};
|
|
270
270
|
});
|
|
271
|
-
function
|
|
271
|
+
function it(t, e) {
|
|
272
272
|
if (t) {
|
|
273
273
|
var n = t.indexOf(e);
|
|
274
274
|
0 <= n && t.splice(n, 1);
|
|
275
275
|
}
|
|
276
276
|
}
|
|
277
|
-
var
|
|
277
|
+
var We = function() {
|
|
278
278
|
function t(e) {
|
|
279
279
|
this.initialTeardown = e, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
280
280
|
}
|
|
@@ -286,7 +286,7 @@ var qe = function() {
|
|
|
286
286
|
if (s)
|
|
287
287
|
if (this._parentage = null, Array.isArray(s))
|
|
288
288
|
try {
|
|
289
|
-
for (var a =
|
|
289
|
+
for (var a = Ce(s), c = a.next(); !c.done; c = a.next()) {
|
|
290
290
|
var u = c.value;
|
|
291
291
|
u.remove(this);
|
|
292
292
|
}
|
|
@@ -306,18 +306,18 @@ var qe = function() {
|
|
|
306
306
|
try {
|
|
307
307
|
l();
|
|
308
308
|
} catch (v) {
|
|
309
|
-
o = v instanceof
|
|
309
|
+
o = v instanceof nt ? v.errors : [v];
|
|
310
310
|
}
|
|
311
311
|
var d = this._finalizers;
|
|
312
312
|
if (d) {
|
|
313
313
|
this._finalizers = null;
|
|
314
314
|
try {
|
|
315
|
-
for (var f =
|
|
315
|
+
for (var f = Ce(d), h = f.next(); !h.done; h = f.next()) {
|
|
316
316
|
var g = h.value;
|
|
317
317
|
try {
|
|
318
318
|
xt(g);
|
|
319
319
|
} catch (v) {
|
|
320
|
-
o = o ?? [], v instanceof
|
|
320
|
+
o = o ?? [], v instanceof nt ? o = Ue(Ue([], Pe(o)), Pe(v.errors)) : o.push(v);
|
|
321
321
|
}
|
|
322
322
|
}
|
|
323
323
|
} catch (v) {
|
|
@@ -331,7 +331,7 @@ var qe = function() {
|
|
|
331
331
|
}
|
|
332
332
|
}
|
|
333
333
|
if (o)
|
|
334
|
-
throw new
|
|
334
|
+
throw new nt(o);
|
|
335
335
|
}
|
|
336
336
|
}, t.prototype.add = function(e) {
|
|
337
337
|
var n;
|
|
@@ -354,17 +354,17 @@ var qe = function() {
|
|
|
354
354
|
this._parentage = Array.isArray(n) ? (n.push(e), n) : n ? [n, e] : e;
|
|
355
355
|
}, t.prototype._removeParent = function(e) {
|
|
356
356
|
var n = this._parentage;
|
|
357
|
-
n === e ? this._parentage = null : Array.isArray(n) &&
|
|
357
|
+
n === e ? this._parentage = null : Array.isArray(n) && it(n, e);
|
|
358
358
|
}, t.prototype.remove = function(e) {
|
|
359
359
|
var n = this._finalizers;
|
|
360
|
-
n &&
|
|
360
|
+
n && it(n, e), e instanceof t && e._removeParent(this);
|
|
361
361
|
}, t.EMPTY = function() {
|
|
362
362
|
var e = new t();
|
|
363
363
|
return e.closed = !0, e;
|
|
364
364
|
}(), t;
|
|
365
|
-
}(), Jt =
|
|
365
|
+
}(), Jt = We.EMPTY;
|
|
366
366
|
function en(t) {
|
|
367
|
-
return t instanceof
|
|
367
|
+
return t instanceof We || t && "closed" in t && F(t.remove) && F(t.add) && F(t.unsubscribe);
|
|
368
368
|
}
|
|
369
369
|
function xt(t) {
|
|
370
370
|
F(t) ? t() : t.unsubscribe();
|
|
@@ -375,7 +375,7 @@ var Un = {
|
|
|
375
375
|
setTimeout: function(t, e) {
|
|
376
376
|
for (var n = [], r = 2; r < arguments.length; r++)
|
|
377
377
|
n[r - 2] = arguments[r];
|
|
378
|
-
return setTimeout.apply(void 0,
|
|
378
|
+
return setTimeout.apply(void 0, Ue([t, e], Pe(n)));
|
|
379
379
|
},
|
|
380
380
|
clearTimeout: function(t) {
|
|
381
381
|
return clearTimeout(t);
|
|
@@ -387,19 +387,19 @@ function tn(t) {
|
|
|
387
387
|
throw t;
|
|
388
388
|
});
|
|
389
389
|
}
|
|
390
|
-
function
|
|
390
|
+
function ot() {
|
|
391
391
|
}
|
|
392
|
-
function
|
|
392
|
+
function Fe(t) {
|
|
393
393
|
t();
|
|
394
394
|
}
|
|
395
395
|
var ht = function(t) {
|
|
396
|
-
|
|
396
|
+
Ie(e, t);
|
|
397
397
|
function e(n) {
|
|
398
398
|
var r = t.call(this) || this;
|
|
399
399
|
return r.isStopped = !1, n ? (r.destination = n, en(n) && n.add(r)) : r.destination = Wn, r;
|
|
400
400
|
}
|
|
401
401
|
return e.create = function(n, r, i) {
|
|
402
|
-
return new
|
|
402
|
+
return new st(n, r, i);
|
|
403
403
|
}, e.prototype.next = function(n) {
|
|
404
404
|
this.isStopped || this._next(n);
|
|
405
405
|
}, e.prototype.error = function(n) {
|
|
@@ -423,7 +423,7 @@ var ht = function(t) {
|
|
|
423
423
|
this.unsubscribe();
|
|
424
424
|
}
|
|
425
425
|
}, e;
|
|
426
|
-
}(
|
|
426
|
+
}(We), Zn = function() {
|
|
427
427
|
function t(e) {
|
|
428
428
|
this.partialObserver = e;
|
|
429
429
|
}
|
|
@@ -433,7 +433,7 @@ var ht = function(t) {
|
|
|
433
433
|
try {
|
|
434
434
|
n.next(e);
|
|
435
435
|
} catch (r) {
|
|
436
|
-
|
|
436
|
+
Ne(r);
|
|
437
437
|
}
|
|
438
438
|
}, t.prototype.error = function(e) {
|
|
439
439
|
var n = this.partialObserver;
|
|
@@ -441,21 +441,21 @@ var ht = function(t) {
|
|
|
441
441
|
try {
|
|
442
442
|
n.error(e);
|
|
443
443
|
} catch (r) {
|
|
444
|
-
|
|
444
|
+
Ne(r);
|
|
445
445
|
}
|
|
446
446
|
else
|
|
447
|
-
|
|
447
|
+
Ne(e);
|
|
448
448
|
}, t.prototype.complete = function() {
|
|
449
449
|
var e = this.partialObserver;
|
|
450
450
|
if (e.complete)
|
|
451
451
|
try {
|
|
452
452
|
e.complete();
|
|
453
453
|
} catch (n) {
|
|
454
|
-
|
|
454
|
+
Ne(n);
|
|
455
455
|
}
|
|
456
456
|
}, t;
|
|
457
|
-
}(),
|
|
458
|
-
|
|
457
|
+
}(), st = function(t) {
|
|
458
|
+
Ie(e, t);
|
|
459
459
|
function e(n, r, i) {
|
|
460
460
|
var o = t.call(this) || this, s;
|
|
461
461
|
return F(n) || !n ? s = {
|
|
@@ -466,7 +466,7 @@ var ht = function(t) {
|
|
|
466
466
|
}
|
|
467
467
|
return e;
|
|
468
468
|
}(ht);
|
|
469
|
-
function
|
|
469
|
+
function Ne(t) {
|
|
470
470
|
tn(t);
|
|
471
471
|
}
|
|
472
472
|
function qn(t) {
|
|
@@ -474,17 +474,17 @@ function qn(t) {
|
|
|
474
474
|
}
|
|
475
475
|
var Wn = {
|
|
476
476
|
closed: !0,
|
|
477
|
-
next:
|
|
477
|
+
next: ot,
|
|
478
478
|
error: qn,
|
|
479
|
-
complete:
|
|
479
|
+
complete: ot
|
|
480
480
|
}, mt = function() {
|
|
481
481
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
482
482
|
}();
|
|
483
|
-
function
|
|
483
|
+
function Xe(t) {
|
|
484
484
|
return t;
|
|
485
485
|
}
|
|
486
486
|
function Xn(t) {
|
|
487
|
-
return t.length === 0 ?
|
|
487
|
+
return t.length === 0 ? Xe : t.length === 1 ? t[0] : function(n) {
|
|
488
488
|
return t.reduce(function(r, i) {
|
|
489
489
|
return i(r);
|
|
490
490
|
}, n);
|
|
@@ -498,8 +498,8 @@ var j = function() {
|
|
|
498
498
|
var n = new t();
|
|
499
499
|
return n.source = this, n.operator = e, n;
|
|
500
500
|
}, t.prototype.subscribe = function(e, n, r) {
|
|
501
|
-
var i = this, o = jn(e) ? e : new
|
|
502
|
-
return
|
|
501
|
+
var i = this, o = jn(e) ? e : new st(e, n, r);
|
|
502
|
+
return Fe(function() {
|
|
503
503
|
var s = i, a = s.operator, c = s.source;
|
|
504
504
|
o.add(a ? a.call(o, c) : c ? i._subscribe(o) : i._trySubscribe(o));
|
|
505
505
|
}), o;
|
|
@@ -512,7 +512,7 @@ var j = function() {
|
|
|
512
512
|
}, t.prototype.forEach = function(e, n) {
|
|
513
513
|
var r = this;
|
|
514
514
|
return n = Mt(n), new n(function(i, o) {
|
|
515
|
-
var s = new
|
|
515
|
+
var s = new st({
|
|
516
516
|
next: function(a) {
|
|
517
517
|
try {
|
|
518
518
|
e(a);
|
|
@@ -580,7 +580,7 @@ function fe(t, e, n, r, i) {
|
|
|
580
580
|
return new Yn(t, e, n, r, i);
|
|
581
581
|
}
|
|
582
582
|
var Yn = function(t) {
|
|
583
|
-
|
|
583
|
+
Ie(e, t);
|
|
584
584
|
function e(n, r, i, o, s, a) {
|
|
585
585
|
var c = t.call(this, n) || this;
|
|
586
586
|
return c.onFinalize = s, c.shouldUnsubscribe = a, c._next = r ? function(u) {
|
|
@@ -619,7 +619,7 @@ var Yn = function(t) {
|
|
|
619
619
|
t(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
620
620
|
};
|
|
621
621
|
}), ge = function(t) {
|
|
622
|
-
|
|
622
|
+
Ie(e, t);
|
|
623
623
|
function e() {
|
|
624
624
|
var n = t.call(this) || this;
|
|
625
625
|
return n.closed = !1, n.currentObservers = null, n.observers = [], n.isStopped = !1, n.hasError = !1, n.thrownError = null, n;
|
|
@@ -632,12 +632,12 @@ var Yn = function(t) {
|
|
|
632
632
|
throw new Qn();
|
|
633
633
|
}, e.prototype.next = function(n) {
|
|
634
634
|
var r = this;
|
|
635
|
-
|
|
635
|
+
Fe(function() {
|
|
636
636
|
var i, o;
|
|
637
637
|
if (r._throwIfClosed(), !r.isStopped) {
|
|
638
638
|
r.currentObservers || (r.currentObservers = Array.from(r.observers));
|
|
639
639
|
try {
|
|
640
|
-
for (var s =
|
|
640
|
+
for (var s = Ce(r.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
641
641
|
var c = a.value;
|
|
642
642
|
c.next(n);
|
|
643
643
|
}
|
|
@@ -654,7 +654,7 @@ var Yn = function(t) {
|
|
|
654
654
|
});
|
|
655
655
|
}, e.prototype.error = function(n) {
|
|
656
656
|
var r = this;
|
|
657
|
-
|
|
657
|
+
Fe(function() {
|
|
658
658
|
if (r._throwIfClosed(), !r.isStopped) {
|
|
659
659
|
r.hasError = r.isStopped = !0, r.thrownError = n;
|
|
660
660
|
for (var i = r.observers; i.length; )
|
|
@@ -663,7 +663,7 @@ var Yn = function(t) {
|
|
|
663
663
|
});
|
|
664
664
|
}, e.prototype.complete = function() {
|
|
665
665
|
var n = this;
|
|
666
|
-
|
|
666
|
+
Fe(function() {
|
|
667
667
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
668
668
|
n.isStopped = !0;
|
|
669
669
|
for (var r = n.observers; r.length; )
|
|
@@ -685,8 +685,8 @@ var Yn = function(t) {
|
|
|
685
685
|
return this._throwIfClosed(), this._checkFinalizedStatuses(n), this._innerSubscribe(n);
|
|
686
686
|
}, e.prototype._innerSubscribe = function(n) {
|
|
687
687
|
var r = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
688
|
-
return o || s ? Jt : (this.currentObservers = null, a.push(n), new
|
|
689
|
-
r.currentObservers = null,
|
|
688
|
+
return o || s ? Jt : (this.currentObservers = null, a.push(n), new We(function() {
|
|
689
|
+
r.currentObservers = null, it(a, n);
|
|
690
690
|
}));
|
|
691
691
|
}, e.prototype._checkFinalizedStatuses = function(n) {
|
|
692
692
|
var r = this, i = r.hasError, o = r.thrownError, s = r.isStopped;
|
|
@@ -698,7 +698,7 @@ var Yn = function(t) {
|
|
|
698
698
|
return new It(n, r);
|
|
699
699
|
}, e;
|
|
700
700
|
}(j), It = function(t) {
|
|
701
|
-
|
|
701
|
+
Ie(e, t);
|
|
702
702
|
function e(n, r) {
|
|
703
703
|
var i = t.call(this) || this;
|
|
704
704
|
return i.destination = n, i.source = r, i;
|
|
@@ -763,13 +763,13 @@ function dn(t) {
|
|
|
763
763
|
case 1:
|
|
764
764
|
s.trys.push([1, , 9, 10]), s.label = 2;
|
|
765
765
|
case 2:
|
|
766
|
-
return [4,
|
|
766
|
+
return [4, ye(n.read())];
|
|
767
767
|
case 3:
|
|
768
|
-
return r = s.sent(), i = r.value, o = r.done, o ? [4,
|
|
768
|
+
return r = s.sent(), i = r.value, o = r.done, o ? [4, ye(void 0)] : [3, 5];
|
|
769
769
|
case 4:
|
|
770
770
|
return [2, s.sent()];
|
|
771
771
|
case 5:
|
|
772
|
-
return [4,
|
|
772
|
+
return [4, ye(i)];
|
|
773
773
|
case 6:
|
|
774
774
|
return [4, s.sent()];
|
|
775
775
|
case 7:
|
|
@@ -787,7 +787,7 @@ function dn(t) {
|
|
|
787
787
|
function fn(t) {
|
|
788
788
|
return F(t == null ? void 0 : t.getReader);
|
|
789
789
|
}
|
|
790
|
-
function
|
|
790
|
+
function Ge(t) {
|
|
791
791
|
if (t instanceof j)
|
|
792
792
|
return t;
|
|
793
793
|
if (t != null) {
|
|
@@ -834,7 +834,7 @@ function ar(t) {
|
|
|
834
834
|
return new j(function(e) {
|
|
835
835
|
var n, r;
|
|
836
836
|
try {
|
|
837
|
-
for (var i =
|
|
837
|
+
for (var i = Ce(t), o = i.next(); !o.done; o = i.next()) {
|
|
838
838
|
var s = o.value;
|
|
839
839
|
if (e.next(s), e.closed)
|
|
840
840
|
return;
|
|
@@ -932,10 +932,10 @@ function pn(t, e) {
|
|
|
932
932
|
});
|
|
933
933
|
}
|
|
934
934
|
function lr(t, e) {
|
|
935
|
-
return
|
|
935
|
+
return Ge(t).pipe(pn(e), mn(e));
|
|
936
936
|
}
|
|
937
937
|
function dr(t, e) {
|
|
938
|
-
return
|
|
938
|
+
return Ge(t).pipe(pn(e), mn(e));
|
|
939
939
|
}
|
|
940
940
|
function fr(t, e) {
|
|
941
941
|
return new j(function(n) {
|
|
@@ -999,7 +999,7 @@ function pr(t, e) {
|
|
|
999
999
|
throw un(t);
|
|
1000
1000
|
}
|
|
1001
1001
|
function vn(t, e) {
|
|
1002
|
-
return e ? pr(t, e) :
|
|
1002
|
+
return e ? pr(t, e) : Ge(t);
|
|
1003
1003
|
}
|
|
1004
1004
|
var wn = ft(function(t) {
|
|
1005
1005
|
return function() {
|
|
@@ -1016,7 +1016,7 @@ function gr(t, e) {
|
|
|
1016
1016
|
}
|
|
1017
1017
|
var vr = Array.isArray;
|
|
1018
1018
|
function wr(t, e) {
|
|
1019
|
-
return vr(e) ? t.apply(void 0,
|
|
1019
|
+
return vr(e) ? t.apply(void 0, Ue([], Pe(e))) : t(e);
|
|
1020
1020
|
}
|
|
1021
1021
|
function br(t) {
|
|
1022
1022
|
return gr(function(e) {
|
|
@@ -1057,11 +1057,11 @@ function xr() {
|
|
|
1057
1057
|
return vn([], n);
|
|
1058
1058
|
var a = new j(Mr(o, n, s ? function(c) {
|
|
1059
1059
|
return Ar(s, c);
|
|
1060
|
-
} :
|
|
1060
|
+
} : Xe));
|
|
1061
1061
|
return r ? a.pipe(br(r)) : a;
|
|
1062
1062
|
}
|
|
1063
1063
|
function Mr(t, e, n) {
|
|
1064
|
-
return n === void 0 && (n =
|
|
1064
|
+
return n === void 0 && (n = Xe), function(r) {
|
|
1065
1065
|
_t(e, function() {
|
|
1066
1066
|
for (var i = t.length, o = new Array(i), s = i, a = i, c = function(l) {
|
|
1067
1067
|
_t(e, function() {
|
|
@@ -1124,16 +1124,16 @@ function kr() {
|
|
|
1124
1124
|
function Ee(t, e) {
|
|
1125
1125
|
var n = arguments.length >= 2;
|
|
1126
1126
|
return function(r) {
|
|
1127
|
-
return r.pipe(
|
|
1127
|
+
return r.pipe(Xe, Or(1), n ? _r(e) : Nr(function() {
|
|
1128
1128
|
return new wn();
|
|
1129
1129
|
}));
|
|
1130
1130
|
};
|
|
1131
1131
|
}
|
|
1132
1132
|
function Z(t) {
|
|
1133
1133
|
return de(function(e, n) {
|
|
1134
|
-
|
|
1134
|
+
Ge(t).subscribe(fe(n, function() {
|
|
1135
1135
|
return n.complete();
|
|
1136
|
-
},
|
|
1136
|
+
}, ot)), !n.closed && e.subscribe(n);
|
|
1137
1137
|
});
|
|
1138
1138
|
}
|
|
1139
1139
|
class Rr {
|
|
@@ -1263,7 +1263,7 @@ class bn {
|
|
|
1263
1263
|
this.window.open(e, n);
|
|
1264
1264
|
}
|
|
1265
1265
|
}
|
|
1266
|
-
const
|
|
1266
|
+
const xe = [0.25, 0.5, 0.75, 1, 2, 4, 8];
|
|
1267
1267
|
class Ot {
|
|
1268
1268
|
static getKeyboardShortcutsHelpMenuGroup() {
|
|
1269
1269
|
let e = (...o) => o.join(" + "), n = "shift".toUpperCase(), r = "ctrl".toUpperCase();
|
|
@@ -1350,11 +1350,11 @@ class Ot {
|
|
|
1350
1350
|
return n.subtitles.toggleShowHideActiveTrack(), !0;
|
|
1351
1351
|
if (e.code === "KeyK" && !e.ctrlKey && !e.shiftKey && !e.metaKey && (n.video.setPlaybackRate(1), n.video.pause()), e.code === "KeyL" && !e.ctrlKey && !e.metaKey) {
|
|
1352
1352
|
let s = e.shiftKey ? 1 : -1;
|
|
1353
|
-
const a =
|
|
1353
|
+
const a = xe.indexOf(
|
|
1354
1354
|
n.video.getPlaybackRate()
|
|
1355
1355
|
) + s;
|
|
1356
1356
|
let c;
|
|
1357
|
-
return a < 0 ? c =
|
|
1357
|
+
return a < 0 ? c = xe.at(0) : a >= xe.length ? c = xe.at(-1) : c = xe.at(a), n.video.setPlaybackRate(c), n.video.isPaused() && n.video.play(), !0;
|
|
1358
1358
|
}
|
|
1359
1359
|
if (n.video.isVideoLoaded()) {
|
|
1360
1360
|
if (["ArrowLeft", "ArrowRight"].includes(e.key) && !e.metaKey && !e.altKey) {
|
|
@@ -1741,7 +1741,7 @@ class Gr {
|
|
|
1741
1741
|
return ["INPUT", "TEXTAREA", "OMAKASE-MARKER-LIST"].includes(r.tagName.toUpperCase()) ? !1 : e.code === "KeyM" && !e.shiftKey && !e.ctrlKey && !e.metaKey ? (this.actionMarkerInOut && this.actionMarkerInOut(), !0) : e.code === "Period" && !e.shiftKey && !e.ctrlKey && !e.metaKey ? (this.actionMarkerSplit && this.actionMarkerSplit(), !0) : e.code === "KeyN" && !e.shiftKey && !e.ctrlKey && !e.metaKey ? (this.actionMarkerDelete && this.actionMarkerDelete(), !0) : e.code === "Slash" && !e.ctrlKey && !e.metaKey ? (e.shiftKey ? this.actionNextMarkerToggle && this.actionNextMarkerToggle() : this.actionPreviousMarkerToggle && this.actionPreviousMarkerToggle(), !0) : e.code === "KeyI" && !e.shiftKey && !e.ctrlKey && !e.metaKey ? (this.actionSetMarkerStartToPlayhead && this.actionSetMarkerStartToPlayhead(), !0) : e.code === "KeyO" && !e.shiftKey && !e.ctrlKey && !e.metaKey ? (this.actionSetMarkerEndToPlayhead && this.actionSetMarkerEndToPlayhead(), !0) : e.code === "BracketLeft" && !e.shiftKey && !e.ctrlKey && !e.metaKey ? (this.actionSetPlayheadToMarkerStart && this.actionSetPlayheadToMarkerStart(), !0) : e.code === "BracketRight" && !e.shiftKey && !e.ctrlKey && !e.metaKey ? (this.actionSetPlayheadToMarkerEnd && this.actionSetPlayheadToMarkerEnd(), !0) : e.code === "ArrowLeft" && !e.shiftKey && !e.ctrlKey && e.metaKey ? (this.actionRewind3SecondsAndPlayToCurrent && this.actionRewind3SecondsAndPlayToCurrent(), !0) : e.code === "ArrowRight" && !e.shiftKey && !e.ctrlKey && e.metaKey ? (this.actionPlay3SecondsAndRewindToCurrent && this.actionPlay3SecondsAndRewindToCurrent(), !0) : e.code === "KeyP" && !e.shiftKey && !e.ctrlKey && !e.metaKey ? (this.actionLoopActiveMarker && this.actionLoopActiveMarker(), !0) : !1;
|
|
1742
1742
|
}
|
|
1743
1743
|
}
|
|
1744
|
-
const
|
|
1744
|
+
const ke = (t, e, n) => t.getMarkers().reduce((r, i) => {
|
|
1745
1745
|
if (e.id === i.id)
|
|
1746
1746
|
return r;
|
|
1747
1747
|
if (i instanceof H && i.timeObservation.start != null && i.timeObservation.end != null) {
|
|
@@ -1751,7 +1751,7 @@ const Ne = (t, e, n) => t.getMarkers().reduce((r, i) => {
|
|
|
1751
1751
|
}
|
|
1752
1752
|
return r;
|
|
1753
1753
|
}, !1);
|
|
1754
|
-
function
|
|
1754
|
+
function Re(t, e, n) {
|
|
1755
1755
|
if (!t || !(t instanceof H))
|
|
1756
1756
|
return !0;
|
|
1757
1757
|
const r = t.timeObservation.start, i = t.timeObservation.end;
|
|
@@ -1760,7 +1760,7 @@ function ke(t, e, n) {
|
|
|
1760
1760
|
const o = n.video.calculateTimeToFrame(i), s = n.video.calculateTimeToFrame(r), a = n.video.getCurrentFrame();
|
|
1761
1761
|
return e < r || o - a < 2 || a - s < 1;
|
|
1762
1762
|
}
|
|
1763
|
-
function
|
|
1763
|
+
function De(t) {
|
|
1764
1764
|
return !(t.timeObservation.start == null || t.timeObservation.end == null);
|
|
1765
1765
|
}
|
|
1766
1766
|
const ro = ({
|
|
@@ -1776,16 +1776,16 @@ const ro = ({
|
|
|
1776
1776
|
source: u,
|
|
1777
1777
|
constants: l
|
|
1778
1778
|
}) => {
|
|
1779
|
-
const d =
|
|
1779
|
+
const d = tt(void 0), f = tt(void 0), h = new ge(), g = tt(!1), v = (p, w, C) => {
|
|
1780
1780
|
const O = w ?? e.video.getCurrentTime();
|
|
1781
1781
|
return p.getMarkers().reduce((I, W) => W instanceof H && W.timeObservation.start !== void 0 && W.timeObservation.end !== void 0 && W.id !== (C == null ? void 0 : C.id) ? I || O >= W.timeObservation.start && O <= W.timeObservation.end : I, !1);
|
|
1782
1782
|
}, y = (p) => {
|
|
1783
1783
|
if (M === void 0)
|
|
1784
1784
|
return !0;
|
|
1785
1785
|
const w = M.timeObservation.start, C = p ?? e.video.getCurrentTime();
|
|
1786
|
-
return !!(w == null || w >= C ||
|
|
1786
|
+
return !!(w == null || w >= C || ke(u, M, C));
|
|
1787
1787
|
}, A = (p) => M !== void 0 || u === void 0 ? !0 : v(u, p, M), [D, x] = pe(void 0), [k, P] = pe(
|
|
1788
|
-
|
|
1788
|
+
Re(
|
|
1789
1789
|
t,
|
|
1790
1790
|
e.video.getCurrentTime(),
|
|
1791
1791
|
e
|
|
@@ -1799,7 +1799,7 @@ const ro = ({
|
|
|
1799
1799
|
), ie = (p) => {
|
|
1800
1800
|
if (p === void 0 || u === void 0 || !(p instanceof H))
|
|
1801
1801
|
return !0;
|
|
1802
|
-
const w =
|
|
1802
|
+
const w = ke(
|
|
1803
1803
|
u,
|
|
1804
1804
|
p,
|
|
1805
1805
|
e.video.getCurrentTime()
|
|
@@ -1815,7 +1815,7 @@ const ro = ({
|
|
|
1815
1815
|
}, oe = (p) => {
|
|
1816
1816
|
if (p === void 0 || u === void 0 || !(p instanceof H))
|
|
1817
1817
|
return !0;
|
|
1818
|
-
const w =
|
|
1818
|
+
const w = ke(
|
|
1819
1819
|
u,
|
|
1820
1820
|
p,
|
|
1821
1821
|
e.video.getCurrentTime()
|
|
@@ -1830,7 +1830,7 @@ const ro = ({
|
|
|
1830
1830
|
return !0;
|
|
1831
1831
|
}
|
|
1832
1832
|
return !1;
|
|
1833
|
-
}, [Se, V] = pe(ie(t)), [_,
|
|
1833
|
+
}, [Se, V] = pe(ie(t)), [_, Qe] = pe(oe(t));
|
|
1834
1834
|
Y(() => {
|
|
1835
1835
|
if (G(() => y()), K(() => A()), M && M !== t) {
|
|
1836
1836
|
const p = i.find(
|
|
@@ -1841,10 +1841,10 @@ const ro = ({
|
|
|
1841
1841
|
}, [t, M, i, te]), Y(() => () => Q(h), []), Y(() => {
|
|
1842
1842
|
if (V(
|
|
1843
1843
|
ie(t)
|
|
1844
|
-
),
|
|
1844
|
+
), Qe(
|
|
1845
1845
|
oe(t)
|
|
1846
1846
|
), t) {
|
|
1847
|
-
const p =
|
|
1847
|
+
const p = Re(
|
|
1848
1848
|
t,
|
|
1849
1849
|
e.video.getCurrentTime(),
|
|
1850
1850
|
e
|
|
@@ -1853,14 +1853,14 @@ const ro = ({
|
|
|
1853
1853
|
const w = e.video.onVideoTimeChange$.pipe(Z(h)).subscribe({
|
|
1854
1854
|
next: (C) => {
|
|
1855
1855
|
P(
|
|
1856
|
-
(O) =>
|
|
1856
|
+
(O) => Re(
|
|
1857
1857
|
t,
|
|
1858
1858
|
C.currentTime,
|
|
1859
1859
|
e
|
|
1860
1860
|
)
|
|
1861
1861
|
), V(
|
|
1862
1862
|
() => ie(t)
|
|
1863
|
-
),
|
|
1863
|
+
), Qe(
|
|
1864
1864
|
() => oe(t)
|
|
1865
1865
|
);
|
|
1866
1866
|
}
|
|
@@ -1887,14 +1887,14 @@ const ro = ({
|
|
|
1887
1887
|
const p = i.map((w) => w.onMarkerUpdate$.pipe(Z(h)).subscribe({
|
|
1888
1888
|
next: (C) => {
|
|
1889
1889
|
(t == null ? void 0 : t.id) === C.marker.id && (P(
|
|
1890
|
-
(O) =>
|
|
1890
|
+
(O) => Re(
|
|
1891
1891
|
t,
|
|
1892
1892
|
e.video.getCurrentTime(),
|
|
1893
1893
|
e
|
|
1894
1894
|
)
|
|
1895
1895
|
), V(
|
|
1896
1896
|
() => ie(t)
|
|
1897
|
-
),
|
|
1897
|
+
), Qe(
|
|
1898
1898
|
() => oe(t)
|
|
1899
1899
|
));
|
|
1900
1900
|
}
|
|
@@ -1958,8 +1958,8 @@ const ro = ({
|
|
|
1958
1958
|
d.current && Q(d.current), d.current = new ge(), p.video.pause();
|
|
1959
1959
|
const C = p.video.getCurrentFrame(), O = p.video.getFrameRate(), I = C - w * O, W = I >= 0 ? I : 0;
|
|
1960
1960
|
p.video.seekToFrame(W).pipe(Ee()).subscribe(() => {
|
|
1961
|
-
}), p.video.play(), p.video.onVideoTimeChange$.pipe(Z(d.current), Z(h)).subscribe((
|
|
1962
|
-
|
|
1961
|
+
}), p.video.play(), p.video.onVideoTimeChange$.pipe(Z(d.current), Z(h)).subscribe((Oe) => {
|
|
1962
|
+
Oe.frame >= C - 1 && (p.video.pause().subscribe(() => {
|
|
1963
1963
|
p.video.seekToFrame(C).pipe(Ee()).subscribe(() => {
|
|
1964
1964
|
});
|
|
1965
1965
|
}), Q(d.current));
|
|
@@ -1978,7 +1978,7 @@ const ro = ({
|
|
|
1978
1978
|
});
|
|
1979
1979
|
}, 1), Q(f.current);
|
|
1980
1980
|
});
|
|
1981
|
-
},
|
|
1981
|
+
}, Je = (p) => {
|
|
1982
1982
|
u.removeMarker(p.id), (M == null ? void 0 : M.id) === p.id && te(void 0);
|
|
1983
1983
|
}, Tt = (p, w) => {
|
|
1984
1984
|
if (!(w instanceof H))
|
|
@@ -1986,20 +1986,20 @@ const ro = ({
|
|
|
1986
1986
|
const C = w.timeObservation.start, O = w.timeObservation.end, I = p.video.getCurrentTime();
|
|
1987
1987
|
if (C == null || O == null)
|
|
1988
1988
|
return;
|
|
1989
|
-
const W = C,
|
|
1990
|
-
|
|
1991
|
-
const
|
|
1989
|
+
const W = C, Oe = I, Nn = Oe + 1 / p.video.getFrameRate(), kn = O;
|
|
1990
|
+
Je(w);
|
|
1991
|
+
const et = new H({
|
|
1992
1992
|
style: l.PERIOD_MARKER_STYLE,
|
|
1993
1993
|
timeObservation: {
|
|
1994
1994
|
start: W,
|
|
1995
|
-
end:
|
|
1995
|
+
end: Oe
|
|
1996
1996
|
},
|
|
1997
1997
|
editable: !0
|
|
1998
1998
|
});
|
|
1999
|
-
|
|
2000
|
-
next: () => a(
|
|
1999
|
+
et.onClick$.subscribe({
|
|
2000
|
+
next: () => a(et)
|
|
2001
2001
|
});
|
|
2002
|
-
const
|
|
2002
|
+
const Ae = new H({
|
|
2003
2003
|
style: l.HIGHLIGHTED_PERIOD_MARKER_STYLE,
|
|
2004
2004
|
timeObservation: {
|
|
2005
2005
|
start: Nn,
|
|
@@ -2007,11 +2007,11 @@ const ro = ({
|
|
|
2007
2007
|
},
|
|
2008
2008
|
editable: !0
|
|
2009
2009
|
});
|
|
2010
|
-
|
|
2011
|
-
next: () => a(
|
|
2012
|
-
}), u.addMarker(
|
|
2010
|
+
Ae.onClick$.subscribe({
|
|
2011
|
+
next: () => a(Ae)
|
|
2012
|
+
}), u.addMarker(et), u.addMarker(Ae), a(Ae), setTimeout(() => {
|
|
2013
2013
|
x({
|
|
2014
|
-
marker:
|
|
2014
|
+
marker: Ae,
|
|
2015
2015
|
color: l.PERIOD_MARKER_STYLE.color
|
|
2016
2016
|
});
|
|
2017
2017
|
}, 0);
|
|
@@ -2057,7 +2057,7 @@ const ro = ({
|
|
|
2057
2057
|
});
|
|
2058
2058
|
C.onMarkerUpdate$.subscribe({
|
|
2059
2059
|
next: (O) => {
|
|
2060
|
-
|
|
2060
|
+
ke(
|
|
2061
2061
|
C,
|
|
2062
2062
|
O.marker
|
|
2063
2063
|
) && (O.marker.timeObservation = O.oldValue.timeObservation);
|
|
@@ -2083,7 +2083,7 @@ const ro = ({
|
|
|
2083
2083
|
if (!r)
|
|
2084
2084
|
return;
|
|
2085
2085
|
const p = new Gr();
|
|
2086
|
-
p.actionLoopActiveMarker = () => t instanceof H &&
|
|
2086
|
+
p.actionLoopActiveMarker = () => t instanceof H && De(t) && Lt(t), p.actionSetPlayheadToMarkerStart = () => t && gt(e, t), p.actionSetPlayheadToMarkerEnd = () => t && t instanceof H && De(t) && vt(e, t), p.actionSetMarkerStartToPlayhead = () => !Se && wt(e, t), p.actionSetMarkerEndToPlayhead = () => !_ && bt(e, t), p.actionMarkerSplit = () => !k && Tt(e, t), p.actionMarkerDelete = () => t && Je(t), p.actionMarkerInOut = () => {
|
|
2087
2087
|
M === void 0 ? !be && yt() : !me && Ct();
|
|
2088
2088
|
}, p.actionPlay3SecondsAndRewindToCurrent = () => Et(e, 3), p.actionRewind3SecondsAndPlayToCurrent = () => St(e, 3), p.actionNextMarkerToggle = () => At(!1), p.actionPreviousMarkerToggle = () => At(!0);
|
|
2089
2089
|
const w = (C) => {
|
|
@@ -2104,7 +2104,7 @@ const ro = ({
|
|
|
2104
2104
|
{
|
|
2105
2105
|
Icon: Br,
|
|
2106
2106
|
onClick: () => vt(e, t),
|
|
2107
|
-
disabled: t === void 0 || t instanceof H && !
|
|
2107
|
+
disabled: t === void 0 || t instanceof H && !De(t)
|
|
2108
2108
|
}
|
|
2109
2109
|
), /* @__PURE__ */ b.createElement(
|
|
2110
2110
|
z,
|
|
@@ -2138,7 +2138,7 @@ const ro = ({
|
|
|
2138
2138
|
z,
|
|
2139
2139
|
{
|
|
2140
2140
|
Icon: Ur,
|
|
2141
|
-
onClick: () =>
|
|
2141
|
+
onClick: () => Je(t),
|
|
2142
2142
|
disabled: t === void 0
|
|
2143
2143
|
}
|
|
2144
2144
|
), /* @__PURE__ */ b.createElement(
|
|
@@ -2153,7 +2153,7 @@ const ro = ({
|
|
|
2153
2153
|
{
|
|
2154
2154
|
Icon: $r,
|
|
2155
2155
|
onClick: () => Lt(t),
|
|
2156
|
-
disabled: !(t instanceof H &&
|
|
2156
|
+
disabled: !(t instanceof H && De(t))
|
|
2157
2157
|
}
|
|
2158
2158
|
), /* @__PURE__ */ b.createElement(
|
|
2159
2159
|
z,
|
|
@@ -2208,7 +2208,7 @@ class ve {
|
|
|
2208
2208
|
* Copyright (c) 2025 Michael Mclaughlin <M8ch88l@gmail.com>
|
|
2209
2209
|
* MIT Licence
|
|
2210
2210
|
*/
|
|
2211
|
-
var
|
|
2211
|
+
var Te = 9e15, he = 1e9, at = "0123456789abcdef", $e = "2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058", Ze = "3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789", ut = {
|
|
2212
2212
|
// These values must be integers within the stated ranges (inclusive).
|
|
2213
2213
|
// Most of these values can be changed at run-time using the `Decimal.config` method.
|
|
2214
2214
|
// The maximum number of significant digits of the result of a calculation or base conversion.
|
|
@@ -2257,16 +2257,16 @@ var st = 9e15, he = 1e9, at = "0123456789abcdef", Ue = "2.3025850929940456840179
|
|
|
2257
2257
|
// 0 to EXP_LIMIT
|
|
2258
2258
|
// The minimum exponent value, beneath which underflow to zero occurs.
|
|
2259
2259
|
// JavaScript numbers: -324 (5e-324)
|
|
2260
|
-
minE: -
|
|
2260
|
+
minE: -Te,
|
|
2261
2261
|
// -1 to -EXP_LIMIT
|
|
2262
2262
|
// The maximum exponent value, above which overflow to Infinity occurs.
|
|
2263
2263
|
// JavaScript numbers: 308 (1.7976931348623157e+308)
|
|
2264
|
-
maxE:
|
|
2264
|
+
maxE: Te,
|
|
2265
2265
|
// 1 to EXP_LIMIT
|
|
2266
2266
|
// Whether to use cryptographically-secure random number generation, if available.
|
|
2267
2267
|
crypto: !1
|
|
2268
2268
|
// true/false
|
|
2269
|
-
}, Sn, se, L = !0,
|
|
2269
|
+
}, Sn, se, L = !0, je = "[DecimalError] ", le = je + "Invalid argument: ", En = je + "Precision limit exceeded", Tn = je + "crypto unavailable", yn = "[object Decimal]", q = Math.floor, B = Math.pow, jr = /^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i, zr = /^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i, Yr = /^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i, Cn = /^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i, ee = 1e7, T = 7, Qr = 9007199254740991, Jr = $e.length - 1, ct = Ze.length - 1, m = { toStringTag: yn };
|
|
2270
2270
|
m.absoluteValue = m.abs = function() {
|
|
2271
2271
|
var t = new this.constructor(this);
|
|
2272
2272
|
return t.s < 0 && (t.s = 1), E(t);
|
|
@@ -2344,7 +2344,7 @@ m.hyperbolicCosine = m.cosh = function() {
|
|
|
2344
2344
|
var t, e, n, r, i, o = this, s = o.constructor, a = new s(1);
|
|
2345
2345
|
if (!o.isFinite()) return new s(o.s ? 1 / 0 : NaN);
|
|
2346
2346
|
if (o.isZero()) return a;
|
|
2347
|
-
n = s.precision, r = s.rounding, s.precision = n + Math.max(o.e, o.sd()) + 4, s.rounding = 1, i = o.d.length, i < 32 ? (t = Math.ceil(i / 3), e = (1 /
|
|
2347
|
+
n = s.precision, r = s.rounding, s.precision = n + Math.max(o.e, o.sd()) + 4, s.rounding = 1, i = o.d.length, i < 32 ? (t = Math.ceil(i / 3), e = (1 / Ye(4, t)).toString()) : (t = 16, e = "2.3283064365386962890625e-10"), o = Le(s, 1, o.times(e), new s(1), !0);
|
|
2348
2348
|
for (var c, u = t, l = new s(8); u--; )
|
|
2349
2349
|
c = o.times(o), o = a.minus(c.times(l.minus(c.times(l))));
|
|
2350
2350
|
return E(o, s.precision = n, s.rounding = r, !0);
|
|
@@ -2353,9 +2353,9 @@ m.hyperbolicSine = m.sinh = function() {
|
|
|
2353
2353
|
var t, e, n, r, i = this, o = i.constructor;
|
|
2354
2354
|
if (!i.isFinite() || i.isZero()) return new o(i);
|
|
2355
2355
|
if (e = o.precision, n = o.rounding, o.precision = e + Math.max(i.e, i.sd()) + 4, o.rounding = 1, r = i.d.length, r < 3)
|
|
2356
|
-
i =
|
|
2356
|
+
i = Le(o, 2, i, i, !0);
|
|
2357
2357
|
else {
|
|
2358
|
-
t = 1.4 * Math.sqrt(r), t = t > 16 ? 16 : t | 0, i = i.times(1 /
|
|
2358
|
+
t = 1.4 * Math.sqrt(r), t = t > 16 ? 16 : t | 0, i = i.times(1 / Ye(5, t)), i = Le(o, 2, i, i, !0);
|
|
2359
2359
|
for (var s, a = new o(5), c = new o(16), u = new o(20); t--; )
|
|
2360
2360
|
s = i.times(i), i = i.times(a.plus(s.times(c.times(s).plus(u))));
|
|
2361
2361
|
}
|
|
@@ -2443,13 +2443,13 @@ m.logarithm = m.log = function(t) {
|
|
|
2443
2443
|
for (i = n[0]; i % 10 === 0; ) i /= 10;
|
|
2444
2444
|
o = i !== 1;
|
|
2445
2445
|
}
|
|
2446
|
-
if (L = !1, a = d + h, s = ue(u, a), r = e ?
|
|
2446
|
+
if (L = !1, a = d + h, s = ue(u, a), r = e ? qe(l, a + 10) : ue(t, a), c = N(s, r, a, 1), Me(c.d, i = d, f))
|
|
2447
2447
|
do
|
|
2448
|
-
if (a += 10, s = ue(u, a), r = e ?
|
|
2448
|
+
if (a += 10, s = ue(u, a), r = e ? qe(l, a + 10) : ue(t, a), c = N(s, r, a, 1), !o) {
|
|
2449
2449
|
+$(c.d).slice(i + 1, i + 15) + 1 == 1e14 && (c = E(c, d + 1, 0));
|
|
2450
2450
|
break;
|
|
2451
2451
|
}
|
|
2452
|
-
while (
|
|
2452
|
+
while (Me(c.d, i += 10, f));
|
|
2453
2453
|
return L = !0, E(c, d, f);
|
|
2454
2454
|
};
|
|
2455
2455
|
m.minus = m.sub = function(t) {
|
|
@@ -2485,7 +2485,7 @@ m.minus = m.sub = function(t) {
|
|
|
2485
2485
|
}
|
|
2486
2486
|
for (; u[--s] === 0; ) u.pop();
|
|
2487
2487
|
for (; u[0] === 0; u.shift()) --n;
|
|
2488
|
-
return u[0] ? (t.d = u, t.e =
|
|
2488
|
+
return u[0] ? (t.d = u, t.e = ze(u, n), L ? E(t, a, c) : t) : new g(c === 3 ? -0 : 0);
|
|
2489
2489
|
};
|
|
2490
2490
|
m.modulo = m.mod = function(t) {
|
|
2491
2491
|
var e, n = this, r = n.constructor;
|
|
@@ -2516,7 +2516,7 @@ m.plus = m.add = function(t) {
|
|
|
2516
2516
|
for (s = u.length, i = l.length, s - i < 0 && (i = s, n = l, l = u, u = n), e = 0; i; )
|
|
2517
2517
|
e = (u[--i] = u[i] + l[i] + e) / ee | 0, u[i] %= ee;
|
|
2518
2518
|
for (e && (u.unshift(e), ++r), s = u.length; u[--s] == 0; ) u.pop();
|
|
2519
|
-
return t.d = u, t.e =
|
|
2519
|
+
return t.d = u, t.e = ze(u, r), L ? E(t, a, c) : t;
|
|
2520
2520
|
};
|
|
2521
2521
|
m.precision = m.sd = function(t) {
|
|
2522
2522
|
var e, n = this;
|
|
@@ -2564,7 +2564,7 @@ m.times = m.mul = function(t) {
|
|
|
2564
2564
|
o[i] = (o[i] + e) % ee | 0;
|
|
2565
2565
|
}
|
|
2566
2566
|
for (; !o[--s]; ) o.pop();
|
|
2567
|
-
return e ? ++n : o.shift(), t.d = o, t.e =
|
|
2567
|
+
return e ? ++n : o.shift(), t.d = o, t.e = ze(o, n), L ? E(t, d.precision, d.rounding) : t;
|
|
2568
2568
|
};
|
|
2569
2569
|
m.toBinary = function(t, e) {
|
|
2570
2570
|
return pt(this, 2, t, e);
|
|
@@ -2627,7 +2627,7 @@ m.toPower = m.pow = function(t) {
|
|
|
2627
2627
|
if ((t.d[e] & 1) == 0 && (s = 1), a.e == 0 && a.d[0] == 1 && a.d.length == 1)
|
|
2628
2628
|
return a.s = s, a;
|
|
2629
2629
|
}
|
|
2630
|
-
return n = B(+a, u), e = n == 0 || !isFinite(n) ? q(u * (Math.log("0." + $(a.d)) / Math.LN10 + a.e + 1)) : new c(n + "").e, e > c.maxE + 1 || e < c.minE - 1 ? new c(e > 0 ? s / 0 : 0) : (L = !1, c.rounding = a.s = 1, n = Math.min(12, (e + "").length), i = lt(t.times(ue(a, r + n)), r), i.d && (i = E(i, r + 5, 1),
|
|
2630
|
+
return n = B(+a, u), e = n == 0 || !isFinite(n) ? q(u * (Math.log("0." + $(a.d)) / Math.LN10 + a.e + 1)) : new c(n + "").e, e > c.maxE + 1 || e < c.minE - 1 ? new c(e > 0 ? s / 0 : 0) : (L = !1, c.rounding = a.s = 1, n = Math.min(12, (e + "").length), i = lt(t.times(ue(a, r + n)), r), i.d && (i = E(i, r + 5, 1), Me(i.d, r, o) && (e = r + 10, i = E(lt(t.times(ue(a, e + n)), e), e + 5, 1), +$(i.d).slice(r + 1, r + 15) + 1 == 1e14 && (i = E(i, r + 1, 0)))), i.s = s, L = !0, c.rounding = o, E(i, r, o));
|
|
2631
2631
|
};
|
|
2632
2632
|
m.toPrecision = function(t, e) {
|
|
2633
2633
|
var n, r = this, i = r.constructor;
|
|
@@ -2663,12 +2663,12 @@ function X(t, e, n) {
|
|
|
2663
2663
|
if (t !== ~~t || t < e || t > n)
|
|
2664
2664
|
throw Error(le + t);
|
|
2665
2665
|
}
|
|
2666
|
-
function
|
|
2666
|
+
function Me(t, e, n, r) {
|
|
2667
2667
|
var i, o, s, a;
|
|
2668
2668
|
for (o = t[0]; o >= 10; o /= 10) --e;
|
|
2669
2669
|
return --e < 0 ? (e += T, i = 0) : (i = Math.ceil((e + 1) / T), e %= T), o = B(10, T - e), a = t[i] % o | 0, r == null ? e < 3 ? (e == 0 ? a = a / 100 | 0 : e == 1 && (a = a / 10 | 0), s = n < 4 && a == 99999 || n > 3 && a == 49999 || a == 5e4 || a == 0) : s = (n < 4 && a + 1 == o || n > 3 && a + 1 == o / 2) && (t[i + 1] / o / 100 | 0) == B(10, e - 2) - 1 || (a == o / 2 || a == 0) && (t[i + 1] / o / 100 | 0) == 0 : e < 4 ? (e == 0 ? a = a / 1e3 | 0 : e == 1 ? a = a / 100 | 0 : e == 2 && (a = a / 10 | 0), s = (r || n < 4) && a == 9999 || !r && n > 3 && a == 4999) : s = ((r || n < 4) && a + 1 == o || !r && n > 3 && a + 1 == o / 2) && (t[i + 1] / o / 1e3 | 0) == B(10, e - 3) - 1, s;
|
|
2670
2670
|
}
|
|
2671
|
-
function
|
|
2671
|
+
function Ke(t, e, n) {
|
|
2672
2672
|
for (var r, i = [0], o, s = 0, a = t.length; s < a; ) {
|
|
2673
2673
|
for (o = i.length; o--; ) i[o] *= e;
|
|
2674
2674
|
for (i[0] += at.indexOf(t.charAt(s++)), r = 0; r < i.length; r++)
|
|
@@ -2679,7 +2679,7 @@ function Fe(t, e, n) {
|
|
|
2679
2679
|
function ei(t, e) {
|
|
2680
2680
|
var n, r, i;
|
|
2681
2681
|
if (e.isZero()) return e;
|
|
2682
|
-
r = e.d.length, r < 32 ? (n = Math.ceil(r / 3), i = (1 /
|
|
2682
|
+
r = e.d.length, r < 32 ? (n = Math.ceil(r / 3), i = (1 / Ye(4, n)).toString()) : (n = 16, i = "2.3283064365386962890625e-10"), t.precision += n, e = Le(t, 1, e.times(i), new t(1));
|
|
2683
2683
|
for (var o = n; o--; ) {
|
|
2684
2684
|
var s = e.times(e);
|
|
2685
2685
|
e = s.times(s).minus(s).times(8).plus(1);
|
|
@@ -2787,19 +2787,19 @@ function re(t, e, n) {
|
|
|
2787
2787
|
var r, i = t.e, o = $(t.d), s = o.length;
|
|
2788
2788
|
return e ? (n && (r = n - s) > 0 ? o = o.charAt(0) + "." + o.slice(1) + ae(r) : s > 1 && (o = o.charAt(0) + "." + o.slice(1)), o = o + (t.e < 0 ? "e" : "e+") + t.e) : i < 0 ? (o = "0." + ae(-i - 1) + o, n && (r = n - s) > 0 && (o += ae(r))) : i >= s ? (o += ae(i + 1 - s), n && (r = n - i - 1) > 0 && (o = o + "." + ae(r))) : ((r = i + 1) < s && (o = o.slice(0, r) + "." + o.slice(r)), n && (r = n - s) > 0 && (i + 1 === s && (o += "."), o += ae(r))), o;
|
|
2789
2789
|
}
|
|
2790
|
-
function
|
|
2790
|
+
function ze(t, e) {
|
|
2791
2791
|
var n = t[0];
|
|
2792
2792
|
for (e *= T; n >= 10; n /= 10) e++;
|
|
2793
2793
|
return e;
|
|
2794
2794
|
}
|
|
2795
|
-
function
|
|
2795
|
+
function qe(t, e, n) {
|
|
2796
2796
|
if (e > Jr)
|
|
2797
2797
|
throw L = !0, n && (t.precision = n), Error(En);
|
|
2798
|
-
return E(new t(
|
|
2798
|
+
return E(new t($e), e, 1, !0);
|
|
2799
2799
|
}
|
|
2800
2800
|
function ne(t, e, n) {
|
|
2801
2801
|
if (e > ct) throw Error(En);
|
|
2802
|
-
return E(new t(
|
|
2802
|
+
return E(new t(Ze), e, n, !0);
|
|
2803
2803
|
}
|
|
2804
2804
|
function Ln(t) {
|
|
2805
2805
|
var e = t.length - 1, n = e * T + 1;
|
|
@@ -2847,7 +2847,7 @@ function lt(t, e) {
|
|
|
2847
2847
|
if (o = E(o.times(t), c, 1), n = n.times(++l), a = s.plus(N(o, n, c, 1)), $(a.d).slice(0, c) === $(s.d).slice(0, c)) {
|
|
2848
2848
|
for (i = d; i--; ) s = E(s.times(s), c, 1);
|
|
2849
2849
|
if (e == null)
|
|
2850
|
-
if (u < 3 &&
|
|
2850
|
+
if (u < 3 && Me(s.d, c - r, h, u))
|
|
2851
2851
|
f.precision = c += 10, n = o = a = new f(1), l = 0, u++;
|
|
2852
2852
|
else
|
|
2853
2853
|
return E(s, f.precision = g, h, L = !0);
|
|
@@ -2866,11 +2866,11 @@ function ue(t, e) {
|
|
|
2866
2866
|
v = v.times(t), n = $(v.d), r = n.charAt(0), h++;
|
|
2867
2867
|
o = v.e, r > 1 ? (v = new A("0." + n), o++) : v = new A(r + "." + n.slice(1));
|
|
2868
2868
|
} else
|
|
2869
|
-
return u =
|
|
2869
|
+
return u = qe(A, l + 2, x).times(o + ""), v = ue(new A(r + "." + n.slice(1)), l - g).plus(u), A.precision = x, e == null ? E(v, x, D, L = !0) : v;
|
|
2870
2870
|
for (d = v, c = s = v = N(v.minus(1), v.plus(1), l, 1), f = E(v.times(v), l, 1), i = 3; ; ) {
|
|
2871
2871
|
if (s = E(s.times(f), l, 1), u = c.plus(N(s, new A(i), l, 1)), $(u.d).slice(0, l) === $(c.d).slice(0, l))
|
|
2872
|
-
if (c = c.times(2), o !== 0 && (c = c.plus(
|
|
2873
|
-
if (
|
|
2872
|
+
if (c = c.times(2), o !== 0 && (c = c.plus(qe(A, l + 2, x).times(o + ""))), c = N(c, new A(h), l, 1), e == null)
|
|
2873
|
+
if (Me(c.d, l - g, D, a))
|
|
2874
2874
|
A.precision = l += g, u = s = v = N(d.minus(1), d.plus(1), l, 1), f = E(v.times(v), l, 1), i = a = 1;
|
|
2875
2875
|
else
|
|
2876
2876
|
return E(c, A.precision = x, D, L = !0);
|
|
@@ -2882,7 +2882,7 @@ function ue(t, e) {
|
|
|
2882
2882
|
function Mn(t) {
|
|
2883
2883
|
return String(t.s * t.s / 0);
|
|
2884
2884
|
}
|
|
2885
|
-
function
|
|
2885
|
+
function He(t, e) {
|
|
2886
2886
|
var n, r, i;
|
|
2887
2887
|
for ((n = e.indexOf(".")) > -1 && (e = e.replace(".", "")), (r = e.search(/e/i)) > 0 ? (n < 0 && (n = r), n += +e.slice(r + 1), e = e.substring(0, r)) : n < 0 && (n = e.length), r = 0; e.charCodeAt(r) === 48; r++) ;
|
|
2888
2888
|
for (i = e.length; e.charCodeAt(i - 1) === 48; --i) ;
|
|
@@ -2901,7 +2901,7 @@ function Ke(t, e) {
|
|
|
2901
2901
|
function ti(t, e) {
|
|
2902
2902
|
var n, r, i, o, s, a, c, u, l;
|
|
2903
2903
|
if (e.indexOf("_") > -1) {
|
|
2904
|
-
if (e = e.replace(/(\d)_(?=\d)/g, "$1"), Cn.test(e)) return
|
|
2904
|
+
if (e = e.replace(/(\d)_(?=\d)/g, "$1"), Cn.test(e)) return He(t, e);
|
|
2905
2905
|
} else if (e === "Infinity" || e === "NaN")
|
|
2906
2906
|
return +e || (t.s = NaN), t.e = NaN, t.d = null, t;
|
|
2907
2907
|
if (zr.test(e))
|
|
@@ -2912,19 +2912,19 @@ function ti(t, e) {
|
|
|
2912
2912
|
n = 8;
|
|
2913
2913
|
else
|
|
2914
2914
|
throw Error(le + e);
|
|
2915
|
-
for (o = e.search(/p/i), o > 0 ? (c = +e.slice(o + 1), e = e.substring(2, o)) : e = e.slice(2), o = e.indexOf("."), s = o >= 0, r = t.constructor, s && (e = e.replace(".", ""), a = e.length, o = a - o, i = An(r, new r(n), o, o * 2)), u =
|
|
2916
|
-
return o < 0 ? new r(t.s * 0) : (t.e =
|
|
2915
|
+
for (o = e.search(/p/i), o > 0 ? (c = +e.slice(o + 1), e = e.substring(2, o)) : e = e.slice(2), o = e.indexOf("."), s = o >= 0, r = t.constructor, s && (e = e.replace(".", ""), a = e.length, o = a - o, i = An(r, new r(n), o, o * 2)), u = Ke(e, n, ee), l = u.length - 1, o = l; u[o] === 0; --o) u.pop();
|
|
2916
|
+
return o < 0 ? new r(t.s * 0) : (t.e = ze(u, l), t.d = u, L = !1, s && (t = N(t, i, a * 4)), c && (t = t.times(Math.abs(c) < 54 ? B(2, c) : _e.pow(2, c))), L = !0, t);
|
|
2917
2917
|
}
|
|
2918
2918
|
function ni(t, e) {
|
|
2919
2919
|
var n, r = e.d.length;
|
|
2920
2920
|
if (r < 3)
|
|
2921
|
-
return e.isZero() ? e :
|
|
2922
|
-
n = 1.4 * Math.sqrt(r), n = n > 16 ? 16 : n | 0, e = e.times(1 /
|
|
2921
|
+
return e.isZero() ? e : Le(t, 2, e, e);
|
|
2922
|
+
n = 1.4 * Math.sqrt(r), n = n > 16 ? 16 : n | 0, e = e.times(1 / Ye(5, n)), e = Le(t, 2, e, e);
|
|
2923
2923
|
for (var i, o = new t(5), s = new t(16), a = new t(20); n--; )
|
|
2924
2924
|
i = e.times(e), e = e.times(o.plus(i.times(s.times(i).minus(a))));
|
|
2925
2925
|
return e;
|
|
2926
2926
|
}
|
|
2927
|
-
function
|
|
2927
|
+
function Le(t, e, n, r, i) {
|
|
2928
2928
|
var o, s, a, c, u = t.precision, l = Math.ceil(u / T);
|
|
2929
2929
|
for (L = !1, c = n.times(n), a = new t(r); ; ) {
|
|
2930
2930
|
if (s = N(a.times(c), new t(e++ * e++), u, 1), a = i ? r.plus(s) : r.minus(s), r = N(s.times(c), new t(e++ * e++), u, 1), s = a.plus(r), s.d[l] !== void 0) {
|
|
@@ -2935,7 +2935,7 @@ function Ce(t, e, n, r, i) {
|
|
|
2935
2935
|
}
|
|
2936
2936
|
return L = !0, s.d.length = l + 1, s;
|
|
2937
2937
|
}
|
|
2938
|
-
function
|
|
2938
|
+
function Ye(t, e) {
|
|
2939
2939
|
for (var n = t; --e; ) n *= t;
|
|
2940
2940
|
return n;
|
|
2941
2941
|
}
|
|
@@ -2957,7 +2957,7 @@ function pt(t, e, n, r) {
|
|
|
2957
2957
|
if (g ? (X(n, 1, he), r === void 0 ? r = h.rounding : X(r, 0, 8)) : (n = h.precision, r = h.rounding), !t.isFinite())
|
|
2958
2958
|
l = Mn(t);
|
|
2959
2959
|
else {
|
|
2960
|
-
for (l = re(t), s = l.indexOf("."), g ? (i = 2, e == 16 ? n = n * 4 - 3 : e == 8 && (n = n * 3 - 2)) : i = e, s >= 0 && (l = l.replace(".", ""), f = new h(1), f.e = l.length - s, f.d =
|
|
2960
|
+
for (l = re(t), s = l.indexOf("."), g ? (i = 2, e == 16 ? n = n * 4 - 3 : e == 8 && (n = n * 3 - 2)) : i = e, s >= 0 && (l = l.replace(".", ""), f = new h(1), f.e = l.length - s, f.d = Ke(re(f), 10, i), f.e = f.d.length), d = Ke(l, 10, i), o = c = d.length; d[--c] == 0; ) d.pop();
|
|
2961
2961
|
if (!d[0])
|
|
2962
2962
|
l = g ? "0p+0" : "0";
|
|
2963
2963
|
else {
|
|
@@ -2970,7 +2970,7 @@ function pt(t, e, n, r) {
|
|
|
2970
2970
|
if (c > 1)
|
|
2971
2971
|
if (e == 16 || e == 8) {
|
|
2972
2972
|
for (s = e == 16 ? 4 : 3, --c; c % s; c++) l += "0";
|
|
2973
|
-
for (d =
|
|
2973
|
+
for (d = Ke(l, i, e), c = d.length; !d[c - 1]; --c) ;
|
|
2974
2974
|
for (s = 1, l = "1."; s < c; s++) l += at.charAt(d[s]);
|
|
2975
2975
|
} else
|
|
2976
2976
|
l = l.charAt(0) + "." + l.slice(1);
|
|
@@ -3028,7 +3028,7 @@ function mi(t, e, n) {
|
|
|
3028
3028
|
return new this(t).clamp(e, n);
|
|
3029
3029
|
}
|
|
3030
3030
|
function pi(t) {
|
|
3031
|
-
if (!t || typeof t != "object") throw Error(
|
|
3031
|
+
if (!t || typeof t != "object") throw Error(je + "Object expected");
|
|
3032
3032
|
var e, n, r, i = t.defaults === !0, o = [
|
|
3033
3033
|
"precision",
|
|
3034
3034
|
1,
|
|
@@ -3037,16 +3037,16 @@ function pi(t) {
|
|
|
3037
3037
|
0,
|
|
3038
3038
|
8,
|
|
3039
3039
|
"toExpNeg",
|
|
3040
|
-
-
|
|
3040
|
+
-Te,
|
|
3041
3041
|
0,
|
|
3042
3042
|
"toExpPos",
|
|
3043
3043
|
0,
|
|
3044
|
-
|
|
3044
|
+
Te,
|
|
3045
3045
|
"maxE",
|
|
3046
3046
|
0,
|
|
3047
|
-
|
|
3047
|
+
Te,
|
|
3048
3048
|
"minE",
|
|
3049
|
-
-
|
|
3049
|
+
-Te,
|
|
3050
3050
|
0,
|
|
3051
3051
|
"modulo",
|
|
3052
3052
|
0,
|
|
@@ -3098,12 +3098,12 @@ function _n(t) {
|
|
|
3098
3098
|
o || (u.s = NaN), u.e = NaN, u.d = null;
|
|
3099
3099
|
return;
|
|
3100
3100
|
}
|
|
3101
|
-
return
|
|
3101
|
+
return He(u, o.toString());
|
|
3102
3102
|
}
|
|
3103
3103
|
if (c === "string")
|
|
3104
|
-
return (a = o.charCodeAt(0)) === 45 ? (o = o.slice(1), u.s = -1) : (a === 43 && (o = o.slice(1)), u.s = 1), Cn.test(o) ?
|
|
3104
|
+
return (a = o.charCodeAt(0)) === 45 ? (o = o.slice(1), u.s = -1) : (a === 43 && (o = o.slice(1)), u.s = 1), Cn.test(o) ? He(u, o) : ti(u, o);
|
|
3105
3105
|
if (c === "bigint")
|
|
3106
|
-
return o < 0 ? (o = -o, u.s = -1) : u.s = 1,
|
|
3106
|
+
return o < 0 ? (o = -o, u.s = -1) : u.s = 1, He(u, o.toString());
|
|
3107
3107
|
throw Error(le + o);
|
|
3108
3108
|
}
|
|
3109
3109
|
if (i.prototype = m, i.ROUND_UP = 0, i.ROUND_DOWN = 1, i.ROUND_CEIL = 2, i.ROUND_FLOOR = 3, i.ROUND_HALF_UP = 4, i.ROUND_HALF_DOWN = 5, i.ROUND_HALF_EVEN = 6, i.ROUND_HALF_CEIL = 7, i.ROUND_HALF_FLOOR = 8, i.EUCLID = 9, i.config = i.set = pi, i.clone = _n, i.isDecimal = Rt, i.abs = ri, i.acos = ii, i.acosh = oi, i.add = si, i.asin = ai, i.asinh = ui, i.atan = ci, i.atanh = li, i.atan2 = di, i.cbrt = fi, i.ceil = hi, i.clamp = mi, i.cos = gi, i.cosh = vi, i.div = wi, i.exp = bi, i.floor = Si, i.hypot = Ei, i.ln = Ti, i.log = yi, i.log10 = Li, i.log2 = Ci, i.max = Ai, i.min = xi, i.mod = Mi, i.mul = Ii, i.pow = _i, i.random = Oi, i.round = Ni, i.sign = ki, i.sin = Ri, i.sinh = Di, i.sqrt = Vi, i.sub = Bi, i.sum = Fi, i.tan = Ki, i.tanh = Hi, i.trunc = Pi, t === void 0 && (t = {}), t && t.defaults !== !0)
|
|
@@ -3132,7 +3132,7 @@ function Ei() {
|
|
|
3132
3132
|
return L = !0, n.sqrt();
|
|
3133
3133
|
}
|
|
3134
3134
|
function Rt(t) {
|
|
3135
|
-
return t instanceof
|
|
3135
|
+
return t instanceof _e || t && t.toStringTag === yn || !1;
|
|
3136
3136
|
}
|
|
3137
3137
|
function Ti(t) {
|
|
3138
3138
|
return new this(t).ln();
|
|
@@ -3218,12 +3218,12 @@ function Pi(t) {
|
|
|
3218
3218
|
}
|
|
3219
3219
|
m[Symbol.for("nodejs.util.inspect.custom")] = m.toString;
|
|
3220
3220
|
m[Symbol.toStringTag] = "Decimal";
|
|
3221
|
-
var
|
|
3222
|
-
|
|
3223
|
-
|
|
3221
|
+
var _e = m.constructor = _n(ut);
|
|
3222
|
+
$e = new _e($e);
|
|
3223
|
+
Ze = new _e(Ze);
|
|
3224
3224
|
class we {
|
|
3225
3225
|
static formatToTimecode(e, n, r = !1) {
|
|
3226
|
-
let i = new
|
|
3226
|
+
let i = new _e(n), o, s = i.round();
|
|
3227
3227
|
o = i.mul(e).floor();
|
|
3228
3228
|
let a, c, u, l, d = s.mul(86400), f = o.mod(d), h = s.mul(3600), g = s.mul(60);
|
|
3229
3229
|
return l = f.divToInt(h), f = f.minus(l.mul(h)), u = f.divToInt(g), f = f.minus(u.mul(g)), c = f.divToInt(s), a = f.minus(c.mul(s)), we.formatTimecodeText(l.toNumber(), u.toNumber(), c.toNumber(), a.toNumber(), r);
|
|
@@ -3677,7 +3677,7 @@ const io = b.memo(
|
|
|
3677
3677
|
);
|
|
3678
3678
|
}
|
|
3679
3679
|
);
|
|
3680
|
-
function
|
|
3680
|
+
function Ve(t) {
|
|
3681
3681
|
const e = new Date(t * 1e3), n = e.getUTCHours();
|
|
3682
3682
|
let r = e.getUTCMinutes();
|
|
3683
3683
|
return e.getUTCSeconds() >= 30 && r++, `${n}h ${r}min`;
|
|
@@ -3890,7 +3890,7 @@ const ji = `
|
|
|
3890
3890
|
rangeSelectorDuration: "omakase-time-range-selector-range-selector-duration",
|
|
3891
3891
|
buttonContainer: "omakase-time-range-selector-button-container",
|
|
3892
3892
|
invisible: "omakase-time-range-selector-invisible"
|
|
3893
|
-
},
|
|
3893
|
+
}, Be = {
|
|
3894
3894
|
leftHandle: "omakase-time-range-selector-range-selector-left-handle",
|
|
3895
3895
|
rightHandle: "omakase-time-range-selector-range-selector-right-handle",
|
|
3896
3896
|
rangeDuration: "omakase-time-range-selector-range-selector-range-duration",
|
|
@@ -3962,7 +3962,7 @@ class Bt extends HTMLElement {
|
|
|
3962
3962
|
});
|
|
3963
3963
|
S(this, "updateDuration", () => {
|
|
3964
3964
|
const { start: n, end: r } = this.getSliderValues(), i = r - n;
|
|
3965
|
-
this._rangeSelectorRangeDisplay.textContent =
|
|
3965
|
+
this._rangeSelectorRangeDisplay.textContent = Ve(i);
|
|
3966
3966
|
});
|
|
3967
3967
|
S(this, "onXclick", () => {
|
|
3968
3968
|
this.firstLabelIndex = this._initialFirstLabelIndex, this.resetSegments();
|
|
@@ -4117,15 +4117,15 @@ class Bt extends HTMLElement {
|
|
|
4117
4117
|
R.invisible
|
|
4118
4118
|
);
|
|
4119
4119
|
const s = this.createButtonSvg(zi), a = this.createButtonSvg(Yi);
|
|
4120
|
-
s.onclick = this.onCheckmarkClick, a.onclick = this.onXclick, this._buttonContainer.append(s, a), this._container.append(this._buttonContainer), this._rangeSelector = document.createElement("div"), this._rangeSelector.classList.add(R.rangeSelector), this._rangeSelectorLeftHandle = document.createElement("div"), this._rangeSelectorLeftHandle.classList.add(R.rangeSelectorHandle), this._rangeSelectorLeftHandle.id =
|
|
4120
|
+
s.onclick = this.onCheckmarkClick, a.onclick = this.onXclick, this._buttonContainer.append(s, a), this._container.append(this._buttonContainer), this._rangeSelector = document.createElement("div"), this._rangeSelector.classList.add(R.rangeSelector), this._rangeSelectorLeftHandle = document.createElement("div"), this._rangeSelectorLeftHandle.classList.add(R.rangeSelectorHandle), this._rangeSelectorLeftHandle.id = Be.leftHandle, this._rangeSelectorRightHandle = document.createElement("div"), this._rangeSelectorRightHandle.classList.add(R.rangeSelectorHandle), this._rangeSelectorRightHandle.id = Be.rightHandle, this._rangeSelectorRangeDisplay = document.createElement("div"), this._rangeSelectorRangeDisplay.classList.add(
|
|
4121
4121
|
R.rangeSelectorDuration
|
|
4122
|
-
), this._rangeSelectorRangeDisplay.id =
|
|
4122
|
+
), this._rangeSelectorRangeDisplay.id = Be.rangeDuration, this._rangeSelector.append(
|
|
4123
4123
|
this._rangeSelectorLeftHandle,
|
|
4124
4124
|
this._rangeSelectorRangeDisplay,
|
|
4125
4125
|
this._rangeSelectorRightHandle
|
|
4126
4126
|
), this._container.append(this._rangeSelector), this._segments = this.buildSegments(
|
|
4127
4127
|
this._labels.slice(this.firstLabelIndex, this.lastLabelIndex + 1)
|
|
4128
|
-
), this._segments.id =
|
|
4128
|
+
), this._segments.id = Be.segments, this._segments.classList.add(R.segments), this._container.append(this._segments), this._rangeSelectorLeftHandle.addEventListener(
|
|
4129
4129
|
"mousedown",
|
|
4130
4130
|
this.onMouseDownLeft
|
|
4131
4131
|
), this._rangeSelectorRightHandle.addEventListener(
|
|
@@ -4167,7 +4167,7 @@ class Bt extends HTMLElement {
|
|
|
4167
4167
|
const f = document.createElement("div");
|
|
4168
4168
|
f.classList.add(R.segmentTick);
|
|
4169
4169
|
const h = document.createElement("div");
|
|
4170
|
-
h.classList.add(R.segmentLabel), h.innerHTML =
|
|
4170
|
+
h.classList.add(R.segmentLabel), h.innerHTML = Ve(u), l.append(d, f, h), r.append(l);
|
|
4171
4171
|
});
|
|
4172
4172
|
const i = document.createElement("div");
|
|
4173
4173
|
i.classList.add(R.segment);
|
|
@@ -4179,12 +4179,12 @@ class Bt extends HTMLElement {
|
|
|
4179
4179
|
a.classList.add(
|
|
4180
4180
|
R.segmentLabel,
|
|
4181
4181
|
R.firstSegmentLabel
|
|
4182
|
-
), a.innerHTML =
|
|
4182
|
+
), a.innerHTML = Ve(n.at(-2));
|
|
4183
4183
|
const c = document.createElement("div");
|
|
4184
4184
|
return c.classList.add(
|
|
4185
4185
|
R.segmentLabel,
|
|
4186
4186
|
R.secondSegmentLabel
|
|
4187
|
-
), c.innerHTML =
|
|
4187
|
+
), c.innerHTML = Ve(n.at(-1)), i.append(
|
|
4188
4188
|
o,
|
|
4189
4189
|
s,
|
|
4190
4190
|
a,
|