@canopycanopycanopy/b-ber-reader-react 3.0.8-next.97 → 3.0.8-next.99

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.
Files changed (2) hide show
  1. package/dist/index.js +1630 -447
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -3342,8 +3342,36 @@ var Xi = Yi(), Zi = /* @__PURE__ */ _({
3342
3342
  paddingBottom: 0,
3343
3343
  fontSize: "195%"
3344
3344
  }]
3345
- ]), Eo = /* @__PURE__ */ g(((e, t) => {
3346
- t.exports = {};
3345
+ ]), Eo = /* @__PURE__ */ g(((e) => {
3346
+ e.endianness = function() {
3347
+ return "LE";
3348
+ }, e.hostname = function() {
3349
+ return typeof location < "u" ? location.hostname : "";
3350
+ }, e.loadavg = function() {
3351
+ return [];
3352
+ }, e.uptime = function() {
3353
+ return 0;
3354
+ }, e.freemem = function() {
3355
+ return Number.MAX_VALUE;
3356
+ }, e.totalmem = function() {
3357
+ return Number.MAX_VALUE;
3358
+ }, e.cpus = function() {
3359
+ return [];
3360
+ }, e.type = function() {
3361
+ return "Browser";
3362
+ }, e.release = function() {
3363
+ return typeof navigator < "u" ? navigator.appVersion : "";
3364
+ }, e.networkInterfaces = e.getNetworkInterfaces = function() {
3365
+ return {};
3366
+ }, e.arch = function() {
3367
+ return "javascript";
3368
+ }, e.platform = function() {
3369
+ return "browser";
3370
+ }, e.tmpdir = e.tmpDir = function() {
3371
+ return "/tmp";
3372
+ }, e.EOL = "\n", e.homedir = function() {
3373
+ return "/";
3374
+ };
3347
3375
  })), Do = (0, (/* @__PURE__ */ g(((e, t) => {
3348
3376
  function n() {
3349
3377
  return i() || (typeof navigator < "u" ? a(navigator.userAgent) : null);
@@ -11704,7 +11732,26 @@ var th = eh({ node: /* @__PURE__ */ _({
11704
11732
  IsValidNodeDefinitions: Nh(),
11705
11733
  ProcessNodeDefinitions: jh()
11706
11734
  };
11707
- })), Ih = /* @__PURE__ */ g(((e) => {
11735
+ })), Ih = /* @__PURE__ */ g(((e, t) => {
11736
+ t.exports = {};
11737
+ })), Lh = /* @__PURE__ */ g(((e, t) => {
11738
+ typeof Object.create == "function" ? t.exports = function(e, t) {
11739
+ t && (e.super_ = t, e.prototype = Object.create(t.prototype, { constructor: {
11740
+ value: e,
11741
+ enumerable: !1,
11742
+ writable: !0,
11743
+ configurable: !0
11744
+ } }));
11745
+ } : t.exports = function(e, t) {
11746
+ if (t) {
11747
+ e.super_ = t;
11748
+ var n = function() {};
11749
+ n.prototype = t.prototype, e.prototype = new n(), e.prototype.constructor = e;
11750
+ }
11751
+ };
11752
+ })), Rh = /* @__PURE__ */ g(((e, t) => {
11753
+ t.exports = Ih().EventEmitter;
11754
+ })), zh = /* @__PURE__ */ g(((e) => {
11708
11755
  e.byteLength = c, e.toByteArray = u, e.fromByteArray = p;
11709
11756
  for (var t = [], n = [], r = typeof Uint8Array < "u" ? Uint8Array : Array, i = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", a = 0, o = i.length; a < o; ++a) t[a] = i[a], n[i.charCodeAt(a)] = a;
11710
11757
  n[45] = 62, n[95] = 63;
@@ -11739,7 +11786,7 @@ var th = eh({ node: /* @__PURE__ */ _({
11739
11786
  for (var n, r = e.length, i = r % 3, a = [], o = 16383, s = 0, c = r - i; s < c; s += o) a.push(f(e, s, s + o > c ? c : s + o));
11740
11787
  return i === 1 ? (n = e[r - 1], a.push(t[n >> 2] + t[n << 4 & 63] + "==")) : i === 2 && (n = (e[r - 2] << 8) + e[r - 1], a.push(t[n >> 10] + t[n >> 4 & 63] + t[n << 2 & 63] + "=")), a.join("");
11741
11788
  }
11742
- })), Lh = /* @__PURE__ */ g(((e) => {
11789
+ })), Bh = /* @__PURE__ */ g(((e) => {
11743
11790
  e.read = function(e, t, n, r, i) {
11744
11791
  var a, o, s = i * 8 - r - 1, c = (1 << s) - 1, l = c >> 1, u = -7, d = n ? i - 1 : 0, f = n ? -1 : 1, p = e[t + d];
11745
11792
  for (d += f, a = p & (1 << -u) - 1, p >>= -u, u += s; u > 0; a = a * 256 + e[t + d], d += f, u -= 8);
@@ -11754,8 +11801,8 @@ var th = eh({ node: /* @__PURE__ */ _({
11754
11801
  for (o = o << i | s, l += i; l > 0; e[n + p] = o & 255, p += m, o /= 256, l -= 8);
11755
11802
  e[n + p - m] |= h * 128;
11756
11803
  };
11757
- })), Rh = /* @__PURE__ */ g(((e) => {
11758
- var t = Ih(), n = Lh(), r = typeof Symbol == "function" && typeof Symbol.for == "function" ? Symbol.for("nodejs.util.inspect.custom") : null;
11804
+ })), Vh = /* @__PURE__ */ g(((e) => {
11805
+ var t = zh(), n = Bh(), r = typeof Symbol == "function" && typeof Symbol.for == "function" ? Symbol.for("nodejs.util.inspect.custom") : null;
11759
11806
  e.Buffer = s, e.SlowBuffer = v, e.INSPECT_MAX_BYTES = 50;
11760
11807
  var i = 2147483647;
11761
11808
  e.kMaxLength = i, s.TYPED_ARRAY_SUPPORT = a(), !s.TYPED_ARRAY_SUPPORT && typeof console < "u" && typeof console.error == "function" && console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");
@@ -12506,8 +12553,538 @@ var th = eh({ node: /* @__PURE__ */ _({
12506
12553
  function ye() {
12507
12554
  throw Error("BigInt not supported");
12508
12555
  }
12509
- })), zh = /* @__PURE__ */ g(((e, t) => {
12510
- var n = Rh(), r = n.Buffer;
12556
+ })), Hh = /* @__PURE__ */ g(((e, t) => {
12557
+ function n(e, t) {
12558
+ var n = Object.keys(e);
12559
+ if (Object.getOwnPropertySymbols) {
12560
+ var r = Object.getOwnPropertySymbols(e);
12561
+ t && (r = r.filter(function(t) {
12562
+ return Object.getOwnPropertyDescriptor(e, t).enumerable;
12563
+ })), n.push.apply(n, r);
12564
+ }
12565
+ return n;
12566
+ }
12567
+ function r(e) {
12568
+ for (var t = 1; t < arguments.length; t++) {
12569
+ var r = arguments[t] == null ? {} : arguments[t];
12570
+ t % 2 ? n(Object(r), !0).forEach(function(t) {
12571
+ i(e, t, r[t]);
12572
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : n(Object(r)).forEach(function(t) {
12573
+ Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(r, t));
12574
+ });
12575
+ }
12576
+ return e;
12577
+ }
12578
+ function i(e, t, n) {
12579
+ return t in e ? Object.defineProperty(e, t, {
12580
+ value: n,
12581
+ enumerable: !0,
12582
+ configurable: !0,
12583
+ writable: !0
12584
+ }) : e[t] = n, e;
12585
+ }
12586
+ function a(e, t) {
12587
+ if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
12588
+ }
12589
+ function o(e, t) {
12590
+ for (var n = 0; n < t.length; n++) {
12591
+ var r = t[n];
12592
+ r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r);
12593
+ }
12594
+ }
12595
+ function s(e, t, n) {
12596
+ return t && o(e.prototype, t), n && o(e, n), e;
12597
+ }
12598
+ var c = Vh().Buffer, l = Ih().inspect, u = l && l.custom || "inspect";
12599
+ function d(e, t, n) {
12600
+ c.prototype.copy.call(e, t, n);
12601
+ }
12602
+ t.exports = /*#__PURE__*/ function() {
12603
+ function e() {
12604
+ a(this, e), this.head = null, this.tail = null, this.length = 0;
12605
+ }
12606
+ return s(e, [
12607
+ {
12608
+ key: "push",
12609
+ value: function(e) {
12610
+ var t = {
12611
+ data: e,
12612
+ next: null
12613
+ };
12614
+ this.length > 0 ? this.tail.next = t : this.head = t, this.tail = t, ++this.length;
12615
+ }
12616
+ },
12617
+ {
12618
+ key: "unshift",
12619
+ value: function(e) {
12620
+ var t = {
12621
+ data: e,
12622
+ next: this.head
12623
+ };
12624
+ this.length === 0 && (this.tail = t), this.head = t, ++this.length;
12625
+ }
12626
+ },
12627
+ {
12628
+ key: "shift",
12629
+ value: function() {
12630
+ if (this.length !== 0) {
12631
+ var e = this.head.data;
12632
+ return this.length === 1 ? this.head = this.tail = null : this.head = this.head.next, --this.length, e;
12633
+ }
12634
+ }
12635
+ },
12636
+ {
12637
+ key: "clear",
12638
+ value: function() {
12639
+ this.head = this.tail = null, this.length = 0;
12640
+ }
12641
+ },
12642
+ {
12643
+ key: "join",
12644
+ value: function(e) {
12645
+ if (this.length === 0) return "";
12646
+ for (var t = this.head, n = "" + t.data; t = t.next;) n += e + t.data;
12647
+ return n;
12648
+ }
12649
+ },
12650
+ {
12651
+ key: "concat",
12652
+ value: function(e) {
12653
+ if (this.length === 0) return c.alloc(0);
12654
+ for (var t = c.allocUnsafe(e >>> 0), n = this.head, r = 0; n;) d(n.data, t, r), r += n.data.length, n = n.next;
12655
+ return t;
12656
+ }
12657
+ },
12658
+ {
12659
+ key: "consume",
12660
+ value: function(e, t) {
12661
+ var n;
12662
+ return e < this.head.data.length ? (n = this.head.data.slice(0, e), this.head.data = this.head.data.slice(e)) : n = e === this.head.data.length ? this.shift() : t ? this._getString(e) : this._getBuffer(e), n;
12663
+ }
12664
+ },
12665
+ {
12666
+ key: "first",
12667
+ value: function() {
12668
+ return this.head.data;
12669
+ }
12670
+ },
12671
+ {
12672
+ key: "_getString",
12673
+ value: function(e) {
12674
+ var t = this.head, n = 1, r = t.data;
12675
+ for (e -= r.length; t = t.next;) {
12676
+ var i = t.data, a = e > i.length ? i.length : e;
12677
+ if (a === i.length ? r += i : r += i.slice(0, e), e -= a, e === 0) {
12678
+ a === i.length ? (++n, t.next ? this.head = t.next : this.head = this.tail = null) : (this.head = t, t.data = i.slice(a));
12679
+ break;
12680
+ }
12681
+ ++n;
12682
+ }
12683
+ return this.length -= n, r;
12684
+ }
12685
+ },
12686
+ {
12687
+ key: "_getBuffer",
12688
+ value: function(e) {
12689
+ var t = c.allocUnsafe(e), n = this.head, r = 1;
12690
+ for (n.data.copy(t), e -= n.data.length; n = n.next;) {
12691
+ var i = n.data, a = e > i.length ? i.length : e;
12692
+ if (i.copy(t, t.length - e, 0, a), e -= a, e === 0) {
12693
+ a === i.length ? (++r, n.next ? this.head = n.next : this.head = this.tail = null) : (this.head = n, n.data = i.slice(a));
12694
+ break;
12695
+ }
12696
+ ++r;
12697
+ }
12698
+ return this.length -= r, t;
12699
+ }
12700
+ },
12701
+ {
12702
+ key: u,
12703
+ value: function(e, t) {
12704
+ return l(this, r({}, t, {
12705
+ depth: 0,
12706
+ customInspect: !1
12707
+ }));
12708
+ }
12709
+ }
12710
+ ]), e;
12711
+ }();
12712
+ })), Uh = /* @__PURE__ */ g(((e, t) => {
12713
+ function n(e, t) {
12714
+ var n = this, a = this._readableState && this._readableState.destroyed, s = this._writableState && this._writableState.destroyed;
12715
+ return a || s ? (t ? t(e) : e && (this._writableState ? this._writableState.errorEmitted || (this._writableState.errorEmitted = !0, process.nextTick(o, this, e)) : process.nextTick(o, this, e)), this) : (this._readableState && (this._readableState.destroyed = !0), this._writableState && (this._writableState.destroyed = !0), this._destroy(e || null, function(e) {
12716
+ !t && e ? n._writableState ? n._writableState.errorEmitted ? process.nextTick(i, n) : (n._writableState.errorEmitted = !0, process.nextTick(r, n, e)) : process.nextTick(r, n, e) : t ? (process.nextTick(i, n), t(e)) : process.nextTick(i, n);
12717
+ }), this);
12718
+ }
12719
+ function r(e, t) {
12720
+ o(e, t), i(e);
12721
+ }
12722
+ function i(e) {
12723
+ e._writableState && !e._writableState.emitClose || e._readableState && !e._readableState.emitClose || e.emit("close");
12724
+ }
12725
+ function a() {
12726
+ this._readableState && (this._readableState.destroyed = !1, this._readableState.reading = !1, this._readableState.ended = !1, this._readableState.endEmitted = !1), this._writableState && (this._writableState.destroyed = !1, this._writableState.ended = !1, this._writableState.ending = !1, this._writableState.finalCalled = !1, this._writableState.prefinished = !1, this._writableState.finished = !1, this._writableState.errorEmitted = !1);
12727
+ }
12728
+ function o(e, t) {
12729
+ e.emit("error", t);
12730
+ }
12731
+ function s(e, t) {
12732
+ var n = e._readableState, r = e._writableState;
12733
+ n && n.autoDestroy || r && r.autoDestroy ? e.destroy(t) : e.emit("error", t);
12734
+ }
12735
+ t.exports = {
12736
+ destroy: n,
12737
+ undestroy: a,
12738
+ errorOrDestroy: s
12739
+ };
12740
+ })), Wh = /* @__PURE__ */ g(((e, t) => {
12741
+ function n(e, t) {
12742
+ e.prototype = Object.create(t.prototype), e.prototype.constructor = e, e.__proto__ = t;
12743
+ }
12744
+ var r = {};
12745
+ function i(e, t, i) {
12746
+ i ||= Error;
12747
+ function a(e, n, r) {
12748
+ return typeof t == "string" ? t : t(e, n, r);
12749
+ }
12750
+ var o = /*#__PURE__*/ function(e) {
12751
+ n(t, e);
12752
+ function t(t, n, r) {
12753
+ return e.call(this, a(t, n, r)) || this;
12754
+ }
12755
+ return t;
12756
+ }(i);
12757
+ o.prototype.name = i.name, o.prototype.code = e, r[e] = o;
12758
+ }
12759
+ function a(e, t) {
12760
+ if (Array.isArray(e)) {
12761
+ var n = e.length;
12762
+ return e = e.map(function(e) {
12763
+ return String(e);
12764
+ }), n > 2 ? `one of ${t} ${e.slice(0, n - 1).join(", ")}, or ` + e[n - 1] : n === 2 ? `one of ${t} ${e[0]} or ${e[1]}` : `of ${t} ${e[0]}`;
12765
+ } else return `of ${t} ${String(e)}`;
12766
+ }
12767
+ function o(e, t, n) {
12768
+ return e.substr(!n || n < 0 ? 0 : +n, t.length) === t;
12769
+ }
12770
+ function s(e, t, n) {
12771
+ return (n === void 0 || n > e.length) && (n = e.length), e.substring(n - t.length, n) === t;
12772
+ }
12773
+ function c(e, t, n) {
12774
+ return typeof n != "number" && (n = 0), n + t.length > e.length ? !1 : e.indexOf(t, n) !== -1;
12775
+ }
12776
+ i("ERR_INVALID_OPT_VALUE", function(e, t) {
12777
+ return "The value \"" + t + "\" is invalid for option \"" + e + "\"";
12778
+ }, TypeError), i("ERR_INVALID_ARG_TYPE", function(e, t, n) {
12779
+ var r;
12780
+ typeof t == "string" && o(t, "not ") ? (r = "must not be", t = t.replace(/^not /, "")) : r = "must be";
12781
+ var i = s(e, " argument") ? `The ${e} ${r} ${a(t, "type")}` : `The "${e}" ${c(e, ".") ? "property" : "argument"} ${r} ${a(t, "type")}`;
12782
+ return i += `. Received type ${typeof n}`, i;
12783
+ }, TypeError), i("ERR_STREAM_PUSH_AFTER_EOF", "stream.push() after EOF"), i("ERR_METHOD_NOT_IMPLEMENTED", function(e) {
12784
+ return "The " + e + " method is not implemented";
12785
+ }), i("ERR_STREAM_PREMATURE_CLOSE", "Premature close"), i("ERR_STREAM_DESTROYED", function(e) {
12786
+ return "Cannot call " + e + " after a stream was destroyed";
12787
+ }), i("ERR_MULTIPLE_CALLBACK", "Callback called multiple times"), i("ERR_STREAM_CANNOT_PIPE", "Cannot pipe, not readable"), i("ERR_STREAM_WRITE_AFTER_END", "write after end"), i("ERR_STREAM_NULL_VALUES", "May not write null values to stream", TypeError), i("ERR_UNKNOWN_ENCODING", function(e) {
12788
+ return "Unknown encoding: " + e;
12789
+ }, TypeError), i("ERR_STREAM_UNSHIFT_AFTER_END_EVENT", "stream.unshift() after end event"), t.exports.codes = r;
12790
+ })), Gh = /* @__PURE__ */ g(((e, t) => {
12791
+ var n = Wh().codes.ERR_INVALID_OPT_VALUE;
12792
+ function r(e, t, n) {
12793
+ return e.highWaterMark == null ? t ? e[n] : null : e.highWaterMark;
12794
+ }
12795
+ function i(e, t, i, a) {
12796
+ var o = r(t, a, i);
12797
+ if (o != null) {
12798
+ if (!(isFinite(o) && Math.floor(o) === o) || o < 0) throw new n(a ? i : "highWaterMark", o);
12799
+ return Math.floor(o);
12800
+ }
12801
+ return e.objectMode ? 16 : 16 * 1024;
12802
+ }
12803
+ t.exports = { getHighWaterMark: i };
12804
+ })), Kh = /* @__PURE__ */ g(((e, t) => {
12805
+ t.exports = n;
12806
+ function n(e, t) {
12807
+ if (r("noDeprecation")) return e;
12808
+ var n = !1;
12809
+ function i() {
12810
+ if (!n) {
12811
+ if (r("throwDeprecation")) throw Error(t);
12812
+ r("traceDeprecation") ? console.trace(t) : console.warn(t), n = !0;
12813
+ }
12814
+ return e.apply(this, arguments);
12815
+ }
12816
+ return i;
12817
+ }
12818
+ function r(e) {
12819
+ try {
12820
+ if (!global.localStorage) return !1;
12821
+ } catch {
12822
+ return !1;
12823
+ }
12824
+ var t = global.localStorage[e];
12825
+ return t == null ? !1 : String(t).toLowerCase() === "true";
12826
+ }
12827
+ })), qh = /* @__PURE__ */ g(((e, t) => {
12828
+ t.exports = T;
12829
+ function n(e) {
12830
+ var t = this;
12831
+ this.next = null, this.entry = null, this.finish = function() {
12832
+ te(t, e);
12833
+ };
12834
+ }
12835
+ var r;
12836
+ T.WritableState = C;
12837
+ var i = { deprecate: Kh() }, a = Rh(), o = Vh().Buffer, s = global.Uint8Array || function() {};
12838
+ function c(e) {
12839
+ return o.from(e);
12840
+ }
12841
+ function l(e) {
12842
+ return o.isBuffer(e) || e instanceof s;
12843
+ }
12844
+ var u = Uh(), d = Gh().getHighWaterMark, f = Wh().codes, p = f.ERR_INVALID_ARG_TYPE, m = f.ERR_METHOD_NOT_IMPLEMENTED, h = f.ERR_MULTIPLE_CALLBACK, g = f.ERR_STREAM_CANNOT_PIPE, _ = f.ERR_STREAM_DESTROYED, v = f.ERR_STREAM_NULL_VALUES, y = f.ERR_STREAM_WRITE_AFTER_END, b = f.ERR_UNKNOWN_ENCODING, x = u.errorOrDestroy;
12845
+ Lh()(T, a);
12846
+ function S() {}
12847
+ function C(e, t, i) {
12848
+ r ||= Jh(), e ||= {}, typeof i != "boolean" && (i = t instanceof r), this.objectMode = !!e.objectMode, i && (this.objectMode = this.objectMode || !!e.writableObjectMode), this.highWaterMark = d(this, e, "writableHighWaterMark", i), this.finalCalled = !1, this.needDrain = !1, this.ending = !1, this.ended = !1, this.finished = !1, this.destroyed = !1;
12849
+ var a = e.decodeStrings === !1;
12850
+ this.decodeStrings = !a, this.defaultEncoding = e.defaultEncoding || "utf8", this.length = 0, this.writing = !1, this.corked = 0, this.sync = !0, this.bufferProcessing = !1, this.onwrite = function(e) {
12851
+ N(t, e);
12852
+ }, this.writecb = null, this.writelen = 0, this.bufferedRequest = null, this.lastBufferedRequest = null, this.pendingcb = 0, this.prefinished = !1, this.errorEmitted = !1, this.emitClose = e.emitClose !== !1, this.autoDestroy = !!e.autoDestroy, this.bufferedRequestCount = 0, this.corkedRequestsFree = new n(this);
12853
+ }
12854
+ C.prototype.getBuffer = function() {
12855
+ for (var e = this.bufferedRequest, t = []; e;) t.push(e), e = e.next;
12856
+ return t;
12857
+ }, (function() {
12858
+ try {
12859
+ Object.defineProperty(C.prototype, "buffer", { get: i.deprecate(function() {
12860
+ return this.getBuffer();
12861
+ }, "_writableState.buffer is deprecated. Use _writableState.getBuffer instead.", "DEP0003") });
12862
+ } catch {}
12863
+ })();
12864
+ var w;
12865
+ typeof Symbol == "function" && Symbol.hasInstance && typeof Function.prototype[Symbol.hasInstance] == "function" ? (w = Function.prototype[Symbol.hasInstance], Object.defineProperty(T, Symbol.hasInstance, { value: function(e) {
12866
+ return w.call(this, e) ? !0 : this === T ? e && e._writableState instanceof C : !1;
12867
+ } })) : w = function(e) {
12868
+ return e instanceof this;
12869
+ };
12870
+ function T(e) {
12871
+ r ||= Jh();
12872
+ var t = this instanceof r;
12873
+ if (!t && !w.call(T, this)) return new T(e);
12874
+ this._writableState = new C(e, this, t), this.writable = !0, e && (typeof e.write == "function" && (this._write = e.write), typeof e.writev == "function" && (this._writev = e.writev), typeof e.destroy == "function" && (this._destroy = e.destroy), typeof e.final == "function" && (this._final = e.final)), a.call(this);
12875
+ }
12876
+ T.prototype.pipe = function() {
12877
+ x(this, new g());
12878
+ };
12879
+ function E(e, t) {
12880
+ var n = new y();
12881
+ x(e, n), process.nextTick(t, n);
12882
+ }
12883
+ function D(e, t, n, r) {
12884
+ var i;
12885
+ return n === null ? i = new v() : typeof n != "string" && !t.objectMode && (i = new p("chunk", ["string", "Buffer"], n)), i ? (x(e, i), process.nextTick(r, i), !1) : !0;
12886
+ }
12887
+ T.prototype.write = function(e, t, n) {
12888
+ var r = this._writableState, i = !1, a = !r.objectMode && l(e);
12889
+ return a && !o.isBuffer(e) && (e = c(e)), typeof t == "function" && (n = t, t = null), a ? t = "buffer" : t ||= r.defaultEncoding, typeof n != "function" && (n = S), r.ending ? E(this, n) : (a || D(this, r, e, n)) && (r.pendingcb++, i = k(this, r, a, e, t, n)), i;
12890
+ }, T.prototype.cork = function() {
12891
+ this._writableState.corked++;
12892
+ }, T.prototype.uncork = function() {
12893
+ var e = this._writableState;
12894
+ e.corked && (e.corked--, !e.writing && !e.corked && !e.bufferProcessing && e.bufferedRequest && I(this, e));
12895
+ }, T.prototype.setDefaultEncoding = function(e) {
12896
+ if (typeof e == "string" && (e = e.toLowerCase()), !([
12897
+ "hex",
12898
+ "utf8",
12899
+ "utf-8",
12900
+ "ascii",
12901
+ "binary",
12902
+ "base64",
12903
+ "ucs2",
12904
+ "ucs-2",
12905
+ "utf16le",
12906
+ "utf-16le",
12907
+ "raw"
12908
+ ].indexOf((e + "").toLowerCase()) > -1)) throw new b(e);
12909
+ return this._writableState.defaultEncoding = e, this;
12910
+ }, Object.defineProperty(T.prototype, "writableBuffer", {
12911
+ enumerable: !1,
12912
+ get: function() {
12913
+ return this._writableState && this._writableState.getBuffer();
12914
+ }
12915
+ });
12916
+ function O(e, t, n) {
12917
+ return !e.objectMode && e.decodeStrings !== !1 && typeof t == "string" && (t = o.from(t, n)), t;
12918
+ }
12919
+ Object.defineProperty(T.prototype, "writableHighWaterMark", {
12920
+ enumerable: !1,
12921
+ get: function() {
12922
+ return this._writableState.highWaterMark;
12923
+ }
12924
+ });
12925
+ function k(e, t, n, r, i, a) {
12926
+ if (!n) {
12927
+ var o = O(t, r, i);
12928
+ r !== o && (n = !0, i = "buffer", r = o);
12929
+ }
12930
+ var s = t.objectMode ? 1 : r.length;
12931
+ t.length += s;
12932
+ var c = t.length < t.highWaterMark;
12933
+ if (c || (t.needDrain = !0), t.writing || t.corked) {
12934
+ var l = t.lastBufferedRequest;
12935
+ t.lastBufferedRequest = {
12936
+ chunk: r,
12937
+ encoding: i,
12938
+ isBuf: n,
12939
+ callback: a,
12940
+ next: null
12941
+ }, l ? l.next = t.lastBufferedRequest : t.bufferedRequest = t.lastBufferedRequest, t.bufferedRequestCount += 1;
12942
+ } else A(e, t, !1, s, r, i, a);
12943
+ return c;
12944
+ }
12945
+ function A(e, t, n, r, i, a, o) {
12946
+ t.writelen = r, t.writecb = o, t.writing = !0, t.sync = !0, t.destroyed ? t.onwrite(new _("write")) : n ? e._writev(i, t.onwrite) : e._write(i, a, t.onwrite), t.sync = !1;
12947
+ }
12948
+ function j(e, t, n, r, i) {
12949
+ --t.pendingcb, n ? (process.nextTick(i, r), process.nextTick(B, e, t), e._writableState.errorEmitted = !0, x(e, r)) : (i(r), e._writableState.errorEmitted = !0, x(e, r), B(e, t));
12950
+ }
12951
+ function M(e) {
12952
+ e.writing = !1, e.writecb = null, e.length -= e.writelen, e.writelen = 0;
12953
+ }
12954
+ function N(e, t) {
12955
+ var n = e._writableState, r = n.sync, i = n.writecb;
12956
+ if (typeof i != "function") throw new h();
12957
+ if (M(n), t) j(e, n, r, t, i);
12958
+ else {
12959
+ var a = L(n) || e.destroyed;
12960
+ !a && !n.corked && !n.bufferProcessing && n.bufferedRequest && I(e, n), r ? process.nextTick(P, e, n, a, i) : P(e, n, a, i);
12961
+ }
12962
+ }
12963
+ function P(e, t, n, r) {
12964
+ n || F(e, t), t.pendingcb--, r(), B(e, t);
12965
+ }
12966
+ function F(e, t) {
12967
+ t.length === 0 && t.needDrain && (t.needDrain = !1, e.emit("drain"));
12968
+ }
12969
+ function I(e, t) {
12970
+ t.bufferProcessing = !0;
12971
+ var r = t.bufferedRequest;
12972
+ if (e._writev && r && r.next) {
12973
+ var i = t.bufferedRequestCount, a = Array(i), o = t.corkedRequestsFree;
12974
+ o.entry = r;
12975
+ for (var s = 0, c = !0; r;) a[s] = r, r.isBuf || (c = !1), r = r.next, s += 1;
12976
+ a.allBuffers = c, A(e, t, !0, t.length, a, "", o.finish), t.pendingcb++, t.lastBufferedRequest = null, o.next ? (t.corkedRequestsFree = o.next, o.next = null) : t.corkedRequestsFree = new n(t), t.bufferedRequestCount = 0;
12977
+ } else {
12978
+ for (; r;) {
12979
+ var l = r.chunk, u = r.encoding, d = r.callback;
12980
+ if (A(e, t, !1, t.objectMode ? 1 : l.length, l, u, d), r = r.next, t.bufferedRequestCount--, t.writing) break;
12981
+ }
12982
+ r === null && (t.lastBufferedRequest = null);
12983
+ }
12984
+ t.bufferedRequest = r, t.bufferProcessing = !1;
12985
+ }
12986
+ T.prototype._write = function(e, t, n) {
12987
+ n(new m("_write()"));
12988
+ }, T.prototype._writev = null, T.prototype.end = function(e, t, n) {
12989
+ var r = this._writableState;
12990
+ return typeof e == "function" ? (n = e, e = null, t = null) : typeof t == "function" && (n = t, t = null), e != null && this.write(e, t), r.corked && (r.corked = 1, this.uncork()), r.ending || ee(this, r, n), this;
12991
+ }, Object.defineProperty(T.prototype, "writableLength", {
12992
+ enumerable: !1,
12993
+ get: function() {
12994
+ return this._writableState.length;
12995
+ }
12996
+ });
12997
+ function L(e) {
12998
+ return e.ending && e.length === 0 && e.bufferedRequest === null && !e.finished && !e.writing;
12999
+ }
13000
+ function R(e, t) {
13001
+ e._final(function(n) {
13002
+ t.pendingcb--, n && x(e, n), t.prefinished = !0, e.emit("prefinish"), B(e, t);
13003
+ });
13004
+ }
13005
+ function z(e, t) {
13006
+ !t.prefinished && !t.finalCalled && (typeof e._final == "function" && !t.destroyed ? (t.pendingcb++, t.finalCalled = !0, process.nextTick(R, e, t)) : (t.prefinished = !0, e.emit("prefinish")));
13007
+ }
13008
+ function B(e, t) {
13009
+ var n = L(t);
13010
+ if (n && (z(e, t), t.pendingcb === 0 && (t.finished = !0, e.emit("finish"), t.autoDestroy))) {
13011
+ var r = e._readableState;
13012
+ (!r || r.autoDestroy && r.endEmitted) && e.destroy();
13013
+ }
13014
+ return n;
13015
+ }
13016
+ function ee(e, t, n) {
13017
+ t.ending = !0, B(e, t), n && (t.finished ? process.nextTick(n) : e.once("finish", n)), t.ended = !0, e.writable = !1;
13018
+ }
13019
+ function te(e, t, n) {
13020
+ var r = e.entry;
13021
+ for (e.entry = null; r;) {
13022
+ var i = r.callback;
13023
+ t.pendingcb--, i(n), r = r.next;
13024
+ }
13025
+ t.corkedRequestsFree.next = e;
13026
+ }
13027
+ Object.defineProperty(T.prototype, "destroyed", {
13028
+ enumerable: !1,
13029
+ get: function() {
13030
+ return this._writableState === void 0 ? !1 : this._writableState.destroyed;
13031
+ },
13032
+ set: function(e) {
13033
+ this._writableState && (this._writableState.destroyed = e);
13034
+ }
13035
+ }), T.prototype.destroy = u.destroy, T.prototype._undestroy = u.undestroy, T.prototype._destroy = function(e, t) {
13036
+ t(e);
13037
+ };
13038
+ })), Jh = /* @__PURE__ */ g(((e, t) => {
13039
+ var n = Object.keys || function(e) {
13040
+ var t = [];
13041
+ for (var n in e) t.push(n);
13042
+ return t;
13043
+ };
13044
+ t.exports = c;
13045
+ var r = eg(), i = qh();
13046
+ Lh()(c, r);
13047
+ for (var a = n(i.prototype), o = 0; o < a.length; o++) {
13048
+ var s = a[o];
13049
+ c.prototype[s] || (c.prototype[s] = i.prototype[s]);
13050
+ }
13051
+ function c(e) {
13052
+ if (!(this instanceof c)) return new c(e);
13053
+ r.call(this, e), i.call(this, e), this.allowHalfOpen = !0, e && (e.readable === !1 && (this.readable = !1), e.writable === !1 && (this.writable = !1), e.allowHalfOpen === !1 && (this.allowHalfOpen = !1, this.once("end", l)));
13054
+ }
13055
+ Object.defineProperty(c.prototype, "writableHighWaterMark", {
13056
+ enumerable: !1,
13057
+ get: function() {
13058
+ return this._writableState.highWaterMark;
13059
+ }
13060
+ }), Object.defineProperty(c.prototype, "writableBuffer", {
13061
+ enumerable: !1,
13062
+ get: function() {
13063
+ return this._writableState && this._writableState.getBuffer();
13064
+ }
13065
+ }), Object.defineProperty(c.prototype, "writableLength", {
13066
+ enumerable: !1,
13067
+ get: function() {
13068
+ return this._writableState.length;
13069
+ }
13070
+ });
13071
+ function l() {
13072
+ this._writableState.ended || process.nextTick(u, this);
13073
+ }
13074
+ function u(e) {
13075
+ e.end();
13076
+ }
13077
+ Object.defineProperty(c.prototype, "destroyed", {
13078
+ enumerable: !1,
13079
+ get: function() {
13080
+ return this._readableState === void 0 || this._writableState === void 0 ? !1 : this._readableState.destroyed && this._writableState.destroyed;
13081
+ },
13082
+ set: function(e) {
13083
+ this._readableState === void 0 || this._writableState === void 0 || (this._readableState.destroyed = e, this._writableState.destroyed = e);
13084
+ }
13085
+ });
13086
+ })), Yh = /* @__PURE__ */ g(((e, t) => {
13087
+ var n = Vh(), r = n.Buffer;
12511
13088
  function i(e, t) {
12512
13089
  for (var n in e) t[n] = e[n];
12513
13090
  }
@@ -12529,8 +13106,8 @@ var th = eh({ node: /* @__PURE__ */ _({
12529
13106
  if (typeof e != "number") throw TypeError("Argument must be a number");
12530
13107
  return n.SlowBuffer(e);
12531
13108
  };
12532
- })), Bh = /* @__PURE__ */ g(((e) => {
12533
- var t = zh().Buffer, n = t.isEncoding || function(e) {
13109
+ })), Xh = /* @__PURE__ */ g(((e) => {
13110
+ var t = Yh().Buffer, n = t.isEncoding || function(e) {
12534
13111
  switch (e = "" + e, e && e.toLowerCase()) {
12535
13112
  case "hex":
12536
13113
  case "utf8":
@@ -12668,23 +13245,629 @@ var th = eh({ node: /* @__PURE__ */ _({
12668
13245
  function _(e) {
12669
13246
  return e && e.length ? this.write(e) : "";
12670
13247
  }
12671
- })), Vh = /* @__PURE__ */ g(((e) => {
12672
- (function(e) {
12673
- e.parser = function(e, t) {
12674
- return new n(e, t);
12675
- }, e.SAXParser = n, e.SAXStream = l, e.createStream = c, e.MAX_BUFFER_LENGTH = 64 * 1024;
12676
- var t = [
12677
- "comment",
12678
- "sgmlDecl",
12679
- "textNode",
12680
- "tagName",
12681
- "doctype",
12682
- "procInstName",
12683
- "procInstBody",
12684
- "entity",
12685
- "attribName",
12686
- "attribValue",
12687
- "cdata",
13248
+ })), Zh = /* @__PURE__ */ g(((e, t) => {
13249
+ var n = Wh().codes.ERR_STREAM_PREMATURE_CLOSE;
13250
+ function r(e) {
13251
+ var t = !1;
13252
+ return function() {
13253
+ if (!t) {
13254
+ t = !0;
13255
+ var n = [...arguments];
13256
+ e.apply(this, n);
13257
+ }
13258
+ };
13259
+ }
13260
+ function i() {}
13261
+ function a(e) {
13262
+ return e.setHeader && typeof e.abort == "function";
13263
+ }
13264
+ function o(e, t, s) {
13265
+ if (typeof t == "function") return o(e, null, t);
13266
+ t ||= {}, s = r(s || i);
13267
+ var c = t.readable || t.readable !== !1 && e.readable, l = t.writable || t.writable !== !1 && e.writable, u = function() {
13268
+ e.writable || f();
13269
+ }, d = e._writableState && e._writableState.finished, f = function() {
13270
+ l = !1, d = !0, c || s.call(e);
13271
+ }, p = e._readableState && e._readableState.endEmitted, m = function() {
13272
+ c = !1, p = !0, l || s.call(e);
13273
+ }, h = function(t) {
13274
+ s.call(e, t);
13275
+ }, g = function() {
13276
+ var t;
13277
+ if (c && !p) return (!e._readableState || !e._readableState.ended) && (t = new n()), s.call(e, t);
13278
+ if (l && !d) return (!e._writableState || !e._writableState.ended) && (t = new n()), s.call(e, t);
13279
+ }, _ = function() {
13280
+ e.req.on("finish", f);
13281
+ };
13282
+ return a(e) ? (e.on("complete", f), e.on("abort", g), e.req ? _() : e.on("request", _)) : l && !e._writableState && (e.on("end", u), e.on("close", u)), e.on("end", m), e.on("finish", f), t.error !== !1 && e.on("error", h), e.on("close", g), function() {
13283
+ e.removeListener("complete", f), e.removeListener("abort", g), e.removeListener("request", _), e.req && e.req.removeListener("finish", f), e.removeListener("end", u), e.removeListener("close", u), e.removeListener("finish", f), e.removeListener("end", m), e.removeListener("error", h), e.removeListener("close", g);
13284
+ };
13285
+ }
13286
+ t.exports = o;
13287
+ })), Qh = /* @__PURE__ */ g(((e, t) => {
13288
+ var n;
13289
+ function r(e, t, n) {
13290
+ return t in e ? Object.defineProperty(e, t, {
13291
+ value: n,
13292
+ enumerable: !0,
13293
+ configurable: !0,
13294
+ writable: !0
13295
+ }) : e[t] = n, e;
13296
+ }
13297
+ var i = Zh(), a = Symbol("lastResolve"), o = Symbol("lastReject"), s = Symbol("error"), c = Symbol("ended"), l = Symbol("lastPromise"), u = Symbol("handlePromise"), d = Symbol("stream");
13298
+ function f(e, t) {
13299
+ return {
13300
+ value: e,
13301
+ done: t
13302
+ };
13303
+ }
13304
+ function p(e) {
13305
+ var t = e[a];
13306
+ if (t !== null) {
13307
+ var n = e[d].read();
13308
+ n !== null && (e[l] = null, e[a] = null, e[o] = null, t(f(n, !1)));
13309
+ }
13310
+ }
13311
+ function m(e) {
13312
+ process.nextTick(p, e);
13313
+ }
13314
+ function h(e, t) {
13315
+ return function(n, r) {
13316
+ e.then(function() {
13317
+ if (t[c]) {
13318
+ n(f(void 0, !0));
13319
+ return;
13320
+ }
13321
+ t[u](n, r);
13322
+ }, r);
13323
+ };
13324
+ }
13325
+ var g = Object.getPrototypeOf(function() {}), _ = Object.setPrototypeOf((n = {
13326
+ get stream() {
13327
+ return this[d];
13328
+ },
13329
+ next: function() {
13330
+ var e = this, t = this[s];
13331
+ if (t !== null) return Promise.reject(t);
13332
+ if (this[c]) return Promise.resolve(f(void 0, !0));
13333
+ if (this[d].destroyed) return new Promise(function(t, n) {
13334
+ process.nextTick(function() {
13335
+ e[s] ? n(e[s]) : t(f(void 0, !0));
13336
+ });
13337
+ });
13338
+ var n = this[l], r;
13339
+ if (n) r = new Promise(h(n, this));
13340
+ else {
13341
+ var i = this[d].read();
13342
+ if (i !== null) return Promise.resolve(f(i, !1));
13343
+ r = new Promise(this[u]);
13344
+ }
13345
+ return this[l] = r, r;
13346
+ }
13347
+ }, r(n, Symbol.asyncIterator, function() {
13348
+ return this;
13349
+ }), r(n, "return", function() {
13350
+ var e = this;
13351
+ return new Promise(function(t, n) {
13352
+ e[d].destroy(null, function(e) {
13353
+ if (e) {
13354
+ n(e);
13355
+ return;
13356
+ }
13357
+ t(f(void 0, !0));
13358
+ });
13359
+ });
13360
+ }), n), g);
13361
+ t.exports = function(e) {
13362
+ var t, n = Object.create(_, (t = {}, r(t, d, {
13363
+ value: e,
13364
+ writable: !0
13365
+ }), r(t, a, {
13366
+ value: null,
13367
+ writable: !0
13368
+ }), r(t, o, {
13369
+ value: null,
13370
+ writable: !0
13371
+ }), r(t, s, {
13372
+ value: null,
13373
+ writable: !0
13374
+ }), r(t, c, {
13375
+ value: e._readableState.endEmitted,
13376
+ writable: !0
13377
+ }), r(t, u, {
13378
+ value: function(e, t) {
13379
+ var r = n[d].read();
13380
+ r ? (n[l] = null, n[a] = null, n[o] = null, e(f(r, !1))) : (n[a] = e, n[o] = t);
13381
+ },
13382
+ writable: !0
13383
+ }), t));
13384
+ return n[l] = null, i(e, function(e) {
13385
+ if (e && e.code !== "ERR_STREAM_PREMATURE_CLOSE") {
13386
+ var t = n[o];
13387
+ t !== null && (n[l] = null, n[a] = null, n[o] = null, t(e)), n[s] = e;
13388
+ return;
13389
+ }
13390
+ var r = n[a];
13391
+ r !== null && (n[l] = null, n[a] = null, n[o] = null, r(f(void 0, !0))), n[c] = !0;
13392
+ }), e.on("readable", m.bind(null, n)), n;
13393
+ };
13394
+ })), $h = /* @__PURE__ */ g(((e, t) => {
13395
+ t.exports = function() {
13396
+ throw Error("Readable.from is not available in the browser");
13397
+ };
13398
+ })), eg = /* @__PURE__ */ g(((e, t) => {
13399
+ t.exports = E;
13400
+ var n;
13401
+ E.ReadableState = T, Ih().EventEmitter;
13402
+ var r = function(e, t) {
13403
+ return e.listeners(t).length;
13404
+ }, i = Rh(), a = Vh().Buffer, o = global.Uint8Array || function() {};
13405
+ function s(e) {
13406
+ return a.from(e);
13407
+ }
13408
+ function c(e) {
13409
+ return a.isBuffer(e) || e instanceof o;
13410
+ }
13411
+ var l = Ih(), u = l && l.debuglog ? l.debuglog("stream") : function() {}, d = Hh(), f = Uh(), p = Gh().getHighWaterMark, m = Wh().codes, h = m.ERR_INVALID_ARG_TYPE, g = m.ERR_STREAM_PUSH_AFTER_EOF, _ = m.ERR_METHOD_NOT_IMPLEMENTED, v = m.ERR_STREAM_UNSHIFT_AFTER_END_EVENT, y, b, x;
13412
+ Lh()(E, i);
13413
+ var S = f.errorOrDestroy, C = [
13414
+ "error",
13415
+ "close",
13416
+ "destroy",
13417
+ "pause",
13418
+ "resume"
13419
+ ];
13420
+ function w(e, t, n) {
13421
+ if (typeof e.prependListener == "function") return e.prependListener(t, n);
13422
+ !e._events || !e._events[t] ? e.on(t, n) : Array.isArray(e._events[t]) ? e._events[t].unshift(n) : e._events[t] = [n, e._events[t]];
13423
+ }
13424
+ function T(e, t, r) {
13425
+ n ||= Jh(), e ||= {}, typeof r != "boolean" && (r = t instanceof n), this.objectMode = !!e.objectMode, r && (this.objectMode = this.objectMode || !!e.readableObjectMode), this.highWaterMark = p(this, e, "readableHighWaterMark", r), this.buffer = new d(), this.length = 0, this.pipes = null, this.pipesCount = 0, this.flowing = null, this.ended = !1, this.endEmitted = !1, this.reading = !1, this.sync = !0, this.needReadable = !1, this.emittedReadable = !1, this.readableListening = !1, this.resumeScheduled = !1, this.paused = !0, this.emitClose = e.emitClose !== !1, this.autoDestroy = !!e.autoDestroy, this.destroyed = !1, this.defaultEncoding = e.defaultEncoding || "utf8", this.awaitDrain = 0, this.readingMore = !1, this.decoder = null, this.encoding = null, e.encoding && (y ||= Xh().StringDecoder, this.decoder = new y(e.encoding), this.encoding = e.encoding);
13426
+ }
13427
+ function E(e) {
13428
+ if (n ||= Jh(), !(this instanceof E)) return new E(e);
13429
+ var t = this instanceof n;
13430
+ this._readableState = new T(e, this, t), this.readable = !0, e && (typeof e.read == "function" && (this._read = e.read), typeof e.destroy == "function" && (this._destroy = e.destroy)), i.call(this);
13431
+ }
13432
+ Object.defineProperty(E.prototype, "destroyed", {
13433
+ enumerable: !1,
13434
+ get: function() {
13435
+ return this._readableState === void 0 ? !1 : this._readableState.destroyed;
13436
+ },
13437
+ set: function(e) {
13438
+ this._readableState && (this._readableState.destroyed = e);
13439
+ }
13440
+ }), E.prototype.destroy = f.destroy, E.prototype._undestroy = f.undestroy, E.prototype._destroy = function(e, t) {
13441
+ t(e);
13442
+ }, E.prototype.push = function(e, t) {
13443
+ var n = this._readableState, r;
13444
+ return n.objectMode ? r = !0 : typeof e == "string" && (t ||= n.defaultEncoding, t !== n.encoding && (e = a.from(e, t), t = ""), r = !0), D(this, e, t, !1, r);
13445
+ }, E.prototype.unshift = function(e) {
13446
+ return D(this, e, null, !0, !1);
13447
+ };
13448
+ function D(e, t, n, r, i) {
13449
+ u("readableAddChunk", t);
13450
+ var o = e._readableState;
13451
+ if (t === null) o.reading = !1, N(e, o);
13452
+ else {
13453
+ var c;
13454
+ if (i || (c = k(o, t)), c) S(e, c);
13455
+ else if (o.objectMode || t && t.length > 0) if (typeof t != "string" && !o.objectMode && Object.getPrototypeOf(t) !== a.prototype && (t = s(t)), r) o.endEmitted ? S(e, new v()) : O(e, o, t, !0);
13456
+ else if (o.ended) S(e, new g());
13457
+ else if (o.destroyed) return !1;
13458
+ else o.reading = !1, o.decoder && !n ? (t = o.decoder.write(t), o.objectMode || t.length !== 0 ? O(e, o, t, !1) : I(e, o)) : O(e, o, t, !1);
13459
+ else r || (o.reading = !1, I(e, o));
13460
+ }
13461
+ return !o.ended && (o.length < o.highWaterMark || o.length === 0);
13462
+ }
13463
+ function O(e, t, n, r) {
13464
+ t.flowing && t.length === 0 && !t.sync ? (t.awaitDrain = 0, e.emit("data", n)) : (t.length += t.objectMode ? 1 : n.length, r ? t.buffer.unshift(n) : t.buffer.push(n), t.needReadable && P(e)), I(e, t);
13465
+ }
13466
+ function k(e, t) {
13467
+ var n;
13468
+ return !c(t) && typeof t != "string" && t !== void 0 && !e.objectMode && (n = new h("chunk", [
13469
+ "string",
13470
+ "Buffer",
13471
+ "Uint8Array"
13472
+ ], t)), n;
13473
+ }
13474
+ E.prototype.isPaused = function() {
13475
+ return this._readableState.flowing === !1;
13476
+ }, E.prototype.setEncoding = function(e) {
13477
+ y ||= Xh().StringDecoder;
13478
+ var t = new y(e);
13479
+ this._readableState.decoder = t, this._readableState.encoding = this._readableState.decoder.encoding;
13480
+ for (var n = this._readableState.buffer.head, r = ""; n !== null;) r += t.write(n.data), n = n.next;
13481
+ return this._readableState.buffer.clear(), r !== "" && this._readableState.buffer.push(r), this._readableState.length = r.length, this;
13482
+ };
13483
+ var A = 1073741824;
13484
+ function j(e) {
13485
+ return e >= A ? e = A : (e--, e |= e >>> 1, e |= e >>> 2, e |= e >>> 4, e |= e >>> 8, e |= e >>> 16, e++), e;
13486
+ }
13487
+ function M(e, t) {
13488
+ return e <= 0 || t.length === 0 && t.ended ? 0 : t.objectMode ? 1 : e === e ? (e > t.highWaterMark && (t.highWaterMark = j(e)), e <= t.length ? e : t.ended ? t.length : (t.needReadable = !0, 0)) : t.flowing && t.length ? t.buffer.head.data.length : t.length;
13489
+ }
13490
+ E.prototype.read = function(e) {
13491
+ u("read", e), e = parseInt(e, 10);
13492
+ var t = this._readableState, n = e;
13493
+ if (e !== 0 && (t.emittedReadable = !1), e === 0 && t.needReadable && ((t.highWaterMark === 0 ? t.length > 0 : t.length >= t.highWaterMark) || t.ended)) return u("read: emitReadable", t.length, t.ended), t.length === 0 && t.ended ? ie(this) : P(this), null;
13494
+ if (e = M(e, t), e === 0 && t.ended) return t.length === 0 && ie(this), null;
13495
+ var r = t.needReadable;
13496
+ u("need readable", r), (t.length === 0 || t.length - e < t.highWaterMark) && (r = !0, u("length less than watermark", r)), t.ended || t.reading ? (r = !1, u("reading or ended", r)) : r && (u("do read"), t.reading = !0, t.sync = !0, t.length === 0 && (t.needReadable = !0), this._read(t.highWaterMark), t.sync = !1, t.reading || (e = M(n, t)));
13497
+ var i = e > 0 ? re(e, t) : null;
13498
+ return i === null ? (t.needReadable = t.length <= t.highWaterMark, e = 0) : (t.length -= e, t.awaitDrain = 0), t.length === 0 && (t.ended || (t.needReadable = !0), n !== e && t.ended && ie(this)), i !== null && this.emit("data", i), i;
13499
+ };
13500
+ function N(e, t) {
13501
+ if (u("onEofChunk"), !t.ended) {
13502
+ if (t.decoder) {
13503
+ var n = t.decoder.end();
13504
+ n && n.length && (t.buffer.push(n), t.length += t.objectMode ? 1 : n.length);
13505
+ }
13506
+ t.ended = !0, t.sync ? P(e) : (t.needReadable = !1, t.emittedReadable || (t.emittedReadable = !0, F(e)));
13507
+ }
13508
+ }
13509
+ function P(e) {
13510
+ var t = e._readableState;
13511
+ u("emitReadable", t.needReadable, t.emittedReadable), t.needReadable = !1, t.emittedReadable || (u("emitReadable", t.flowing), t.emittedReadable = !0, process.nextTick(F, e));
13512
+ }
13513
+ function F(e) {
13514
+ var t = e._readableState;
13515
+ u("emitReadable_", t.destroyed, t.length, t.ended), !t.destroyed && (t.length || t.ended) && (e.emit("readable"), t.emittedReadable = !1), t.needReadable = !t.flowing && !t.ended && t.length <= t.highWaterMark, ne(e);
13516
+ }
13517
+ function I(e, t) {
13518
+ t.readingMore || (t.readingMore = !0, process.nextTick(L, e, t));
13519
+ }
13520
+ function L(e, t) {
13521
+ for (; !t.reading && !t.ended && (t.length < t.highWaterMark || t.flowing && t.length === 0);) {
13522
+ var n = t.length;
13523
+ if (u("maybeReadMore read 0"), e.read(0), n === t.length) break;
13524
+ }
13525
+ t.readingMore = !1;
13526
+ }
13527
+ E.prototype._read = function(e) {
13528
+ S(this, new _("_read()"));
13529
+ }, E.prototype.pipe = function(e, t) {
13530
+ var n = this, i = this._readableState;
13531
+ switch (i.pipesCount) {
13532
+ case 0:
13533
+ i.pipes = e;
13534
+ break;
13535
+ case 1:
13536
+ i.pipes = [i.pipes, e];
13537
+ break;
13538
+ default:
13539
+ i.pipes.push(e);
13540
+ break;
13541
+ }
13542
+ i.pipesCount += 1, u("pipe count=%d opts=%j", i.pipesCount, t);
13543
+ var a = (!t || t.end !== !1) && e !== process.stdout && e !== process.stderr ? s : g;
13544
+ i.endEmitted ? process.nextTick(a) : n.once("end", a), e.on("unpipe", o);
13545
+ function o(e, t) {
13546
+ u("onunpipe"), e === n && t && t.hasUnpiped === !1 && (t.hasUnpiped = !0, d());
13547
+ }
13548
+ function s() {
13549
+ u("onend"), e.end();
13550
+ }
13551
+ var c = R(n);
13552
+ e.on("drain", c);
13553
+ var l = !1;
13554
+ function d() {
13555
+ u("cleanup"), e.removeListener("close", m), e.removeListener("finish", h), e.removeListener("drain", c), e.removeListener("error", p), e.removeListener("unpipe", o), n.removeListener("end", s), n.removeListener("end", g), n.removeListener("data", f), l = !0, i.awaitDrain && (!e._writableState || e._writableState.needDrain) && c();
13556
+ }
13557
+ n.on("data", f);
13558
+ function f(t) {
13559
+ u("ondata");
13560
+ var r = e.write(t);
13561
+ u("dest.write", r), r === !1 && ((i.pipesCount === 1 && i.pipes === e || i.pipesCount > 1 && oe(i.pipes, e) !== -1) && !l && (u("false write response, pause", i.awaitDrain), i.awaitDrain++), n.pause());
13562
+ }
13563
+ function p(t) {
13564
+ u("onerror", t), g(), e.removeListener("error", p), r(e, "error") === 0 && S(e, t);
13565
+ }
13566
+ w(e, "error", p);
13567
+ function m() {
13568
+ e.removeListener("finish", h), g();
13569
+ }
13570
+ e.once("close", m);
13571
+ function h() {
13572
+ u("onfinish"), e.removeListener("close", m), g();
13573
+ }
13574
+ e.once("finish", h);
13575
+ function g() {
13576
+ u("unpipe"), n.unpipe(e);
13577
+ }
13578
+ return e.emit("pipe", n), i.flowing || (u("pipe resume"), n.resume()), e;
13579
+ };
13580
+ function R(e) {
13581
+ return function() {
13582
+ var t = e._readableState;
13583
+ u("pipeOnDrain", t.awaitDrain), t.awaitDrain && t.awaitDrain--, t.awaitDrain === 0 && r(e, "data") && (t.flowing = !0, ne(e));
13584
+ };
13585
+ }
13586
+ E.prototype.unpipe = function(e) {
13587
+ var t = this._readableState, n = { hasUnpiped: !1 };
13588
+ if (t.pipesCount === 0) return this;
13589
+ if (t.pipesCount === 1) return e && e !== t.pipes ? this : (e ||= t.pipes, t.pipes = null, t.pipesCount = 0, t.flowing = !1, e && e.emit("unpipe", this, n), this);
13590
+ if (!e) {
13591
+ var r = t.pipes, i = t.pipesCount;
13592
+ t.pipes = null, t.pipesCount = 0, t.flowing = !1;
13593
+ for (var a = 0; a < i; a++) r[a].emit("unpipe", this, { hasUnpiped: !1 });
13594
+ return this;
13595
+ }
13596
+ var o = oe(t.pipes, e);
13597
+ return o === -1 ? this : (t.pipes.splice(o, 1), --t.pipesCount, t.pipesCount === 1 && (t.pipes = t.pipes[0]), e.emit("unpipe", this, n), this);
13598
+ }, E.prototype.on = function(e, t) {
13599
+ var n = i.prototype.on.call(this, e, t), r = this._readableState;
13600
+ return e === "data" ? (r.readableListening = this.listenerCount("readable") > 0, r.flowing !== !1 && this.resume()) : e === "readable" && !r.endEmitted && !r.readableListening && (r.readableListening = r.needReadable = !0, r.flowing = !1, r.emittedReadable = !1, u("on readable", r.length, r.reading), r.length ? P(this) : r.reading || process.nextTick(B, this)), n;
13601
+ }, E.prototype.addListener = E.prototype.on, E.prototype.removeListener = function(e, t) {
13602
+ var n = i.prototype.removeListener.call(this, e, t);
13603
+ return e === "readable" && process.nextTick(z, this), n;
13604
+ }, E.prototype.removeAllListeners = function(e) {
13605
+ var t = i.prototype.removeAllListeners.apply(this, arguments);
13606
+ return (e === "readable" || e === void 0) && process.nextTick(z, this), t;
13607
+ };
13608
+ function z(e) {
13609
+ var t = e._readableState;
13610
+ t.readableListening = e.listenerCount("readable") > 0, t.resumeScheduled && !t.paused ? t.flowing = !0 : e.listenerCount("data") > 0 && e.resume();
13611
+ }
13612
+ function B(e) {
13613
+ u("readable nexttick read 0"), e.read(0);
13614
+ }
13615
+ E.prototype.resume = function() {
13616
+ var e = this._readableState;
13617
+ return e.flowing || (u("resume"), e.flowing = !e.readableListening, ee(this, e)), e.paused = !1, this;
13618
+ };
13619
+ function ee(e, t) {
13620
+ t.resumeScheduled || (t.resumeScheduled = !0, process.nextTick(te, e, t));
13621
+ }
13622
+ function te(e, t) {
13623
+ u("resume", t.reading), t.reading || e.read(0), t.resumeScheduled = !1, e.emit("resume"), ne(e), t.flowing && !t.reading && e.read(0);
13624
+ }
13625
+ E.prototype.pause = function() {
13626
+ return u("call pause flowing=%j", this._readableState.flowing), this._readableState.flowing !== !1 && (u("pause"), this._readableState.flowing = !1, this.emit("pause")), this._readableState.paused = !0, this;
13627
+ };
13628
+ function ne(e) {
13629
+ var t = e._readableState;
13630
+ for (u("flow", t.flowing); t.flowing && e.read() !== null;);
13631
+ }
13632
+ E.prototype.wrap = function(e) {
13633
+ var t = this, n = this._readableState, r = !1;
13634
+ for (var i in e.on("end", function() {
13635
+ if (u("wrapped end"), n.decoder && !n.ended) {
13636
+ var e = n.decoder.end();
13637
+ e && e.length && t.push(e);
13638
+ }
13639
+ t.push(null);
13640
+ }), e.on("data", function(i) {
13641
+ u("wrapped data"), n.decoder && (i = n.decoder.write(i)), !(n.objectMode && i == null) && (!n.objectMode && (!i || !i.length) || t.push(i) || (r = !0, e.pause()));
13642
+ }), e) this[i] === void 0 && typeof e[i] == "function" && (this[i] = function(t) {
13643
+ return function() {
13644
+ return e[t].apply(e, arguments);
13645
+ };
13646
+ }(i));
13647
+ for (var a = 0; a < C.length; a++) e.on(C[a], this.emit.bind(this, C[a]));
13648
+ return this._read = function(t) {
13649
+ u("wrapped _read", t), r && (r = !1, e.resume());
13650
+ }, this;
13651
+ }, typeof Symbol == "function" && (E.prototype[Symbol.asyncIterator] = function() {
13652
+ return b === void 0 && (b = Qh()), b(this);
13653
+ }), Object.defineProperty(E.prototype, "readableHighWaterMark", {
13654
+ enumerable: !1,
13655
+ get: function() {
13656
+ return this._readableState.highWaterMark;
13657
+ }
13658
+ }), Object.defineProperty(E.prototype, "readableBuffer", {
13659
+ enumerable: !1,
13660
+ get: function() {
13661
+ return this._readableState && this._readableState.buffer;
13662
+ }
13663
+ }), Object.defineProperty(E.prototype, "readableFlowing", {
13664
+ enumerable: !1,
13665
+ get: function() {
13666
+ return this._readableState.flowing;
13667
+ },
13668
+ set: function(e) {
13669
+ this._readableState && (this._readableState.flowing = e);
13670
+ }
13671
+ }), E._fromList = re, Object.defineProperty(E.prototype, "readableLength", {
13672
+ enumerable: !1,
13673
+ get: function() {
13674
+ return this._readableState.length;
13675
+ }
13676
+ });
13677
+ function re(e, t) {
13678
+ if (t.length === 0) return null;
13679
+ var n;
13680
+ return t.objectMode ? n = t.buffer.shift() : !e || e >= t.length ? (n = t.decoder ? t.buffer.join("") : t.buffer.length === 1 ? t.buffer.first() : t.buffer.concat(t.length), t.buffer.clear()) : n = t.buffer.consume(e, t.decoder), n;
13681
+ }
13682
+ function ie(e) {
13683
+ var t = e._readableState;
13684
+ u("endReadable", t.endEmitted), t.endEmitted || (t.ended = !0, process.nextTick(ae, t, e));
13685
+ }
13686
+ function ae(e, t) {
13687
+ if (u("endReadableNT", e.endEmitted, e.length), !e.endEmitted && e.length === 0 && (e.endEmitted = !0, t.readable = !1, t.emit("end"), e.autoDestroy)) {
13688
+ var n = t._writableState;
13689
+ (!n || n.autoDestroy && n.finished) && t.destroy();
13690
+ }
13691
+ }
13692
+ typeof Symbol == "function" && (E.from = function(e, t) {
13693
+ return x === void 0 && (x = $h()), x(E, e, t);
13694
+ });
13695
+ function oe(e, t) {
13696
+ for (var n = 0, r = e.length; n < r; n++) if (e[n] === t) return n;
13697
+ return -1;
13698
+ }
13699
+ })), tg = /* @__PURE__ */ g(((e, t) => {
13700
+ t.exports = l;
13701
+ var n = Wh().codes, r = n.ERR_METHOD_NOT_IMPLEMENTED, i = n.ERR_MULTIPLE_CALLBACK, a = n.ERR_TRANSFORM_ALREADY_TRANSFORMING, o = n.ERR_TRANSFORM_WITH_LENGTH_0, s = Jh();
13702
+ Lh()(l, s);
13703
+ function c(e, t) {
13704
+ var n = this._transformState;
13705
+ n.transforming = !1;
13706
+ var r = n.writecb;
13707
+ if (r === null) return this.emit("error", new i());
13708
+ n.writechunk = null, n.writecb = null, t != null && this.push(t), r(e);
13709
+ var a = this._readableState;
13710
+ a.reading = !1, (a.needReadable || a.length < a.highWaterMark) && this._read(a.highWaterMark);
13711
+ }
13712
+ function l(e) {
13713
+ if (!(this instanceof l)) return new l(e);
13714
+ s.call(this, e), this._transformState = {
13715
+ afterTransform: c.bind(this),
13716
+ needTransform: !1,
13717
+ transforming: !1,
13718
+ writecb: null,
13719
+ writechunk: null,
13720
+ writeencoding: null
13721
+ }, this._readableState.needReadable = !0, this._readableState.sync = !1, e && (typeof e.transform == "function" && (this._transform = e.transform), typeof e.flush == "function" && (this._flush = e.flush)), this.on("prefinish", u);
13722
+ }
13723
+ function u() {
13724
+ var e = this;
13725
+ typeof this._flush == "function" && !this._readableState.destroyed ? this._flush(function(t, n) {
13726
+ d(e, t, n);
13727
+ }) : d(this, null, null);
13728
+ }
13729
+ l.prototype.push = function(e, t) {
13730
+ return this._transformState.needTransform = !1, s.prototype.push.call(this, e, t);
13731
+ }, l.prototype._transform = function(e, t, n) {
13732
+ n(new r("_transform()"));
13733
+ }, l.prototype._write = function(e, t, n) {
13734
+ var r = this._transformState;
13735
+ if (r.writecb = n, r.writechunk = e, r.writeencoding = t, !r.transforming) {
13736
+ var i = this._readableState;
13737
+ (r.needTransform || i.needReadable || i.length < i.highWaterMark) && this._read(i.highWaterMark);
13738
+ }
13739
+ }, l.prototype._read = function(e) {
13740
+ var t = this._transformState;
13741
+ t.writechunk !== null && !t.transforming ? (t.transforming = !0, this._transform(t.writechunk, t.writeencoding, t.afterTransform)) : t.needTransform = !0;
13742
+ }, l.prototype._destroy = function(e, t) {
13743
+ s.prototype._destroy.call(this, e, function(e) {
13744
+ t(e);
13745
+ });
13746
+ };
13747
+ function d(e, t, n) {
13748
+ if (t) return e.emit("error", t);
13749
+ if (n != null && e.push(n), e._writableState.length) throw new o();
13750
+ if (e._transformState.transforming) throw new a();
13751
+ return e.push(null);
13752
+ }
13753
+ })), ng = /* @__PURE__ */ g(((e, t) => {
13754
+ t.exports = r;
13755
+ var n = tg();
13756
+ Lh()(r, n);
13757
+ function r(e) {
13758
+ if (!(this instanceof r)) return new r(e);
13759
+ n.call(this, e);
13760
+ }
13761
+ r.prototype._transform = function(e, t, n) {
13762
+ n(null, e);
13763
+ };
13764
+ })), rg = /* @__PURE__ */ g(((e, t) => {
13765
+ var n;
13766
+ function r(e) {
13767
+ var t = !1;
13768
+ return function() {
13769
+ t || (t = !0, e.apply(void 0, arguments));
13770
+ };
13771
+ }
13772
+ var i = Wh().codes, a = i.ERR_MISSING_ARGS, o = i.ERR_STREAM_DESTROYED;
13773
+ function s(e) {
13774
+ if (e) throw e;
13775
+ }
13776
+ function c(e) {
13777
+ return e.setHeader && typeof e.abort == "function";
13778
+ }
13779
+ function l(e, t, i, a) {
13780
+ a = r(a);
13781
+ var s = !1;
13782
+ e.on("close", function() {
13783
+ s = !0;
13784
+ }), n === void 0 && (n = Zh()), n(e, {
13785
+ readable: t,
13786
+ writable: i
13787
+ }, function(e) {
13788
+ if (e) return a(e);
13789
+ s = !0, a();
13790
+ });
13791
+ var l = !1;
13792
+ return function(t) {
13793
+ if (!s && !l) {
13794
+ if (l = !0, c(e)) return e.abort();
13795
+ if (typeof e.destroy == "function") return e.destroy();
13796
+ a(t || new o("pipe"));
13797
+ }
13798
+ };
13799
+ }
13800
+ function u(e) {
13801
+ e();
13802
+ }
13803
+ function d(e, t) {
13804
+ return e.pipe(t);
13805
+ }
13806
+ function f(e) {
13807
+ return !e.length || typeof e[e.length - 1] != "function" ? s : e.pop();
13808
+ }
13809
+ function p() {
13810
+ var e = [...arguments], t = f(e);
13811
+ if (Array.isArray(e[0]) && (e = e[0]), e.length < 2) throw new a("streams");
13812
+ var n, r = e.map(function(i, a) {
13813
+ var o = a < e.length - 1;
13814
+ return l(i, o, a > 0, function(e) {
13815
+ n ||= e, e && r.forEach(u), !o && (r.forEach(u), t(n));
13816
+ });
13817
+ });
13818
+ return e.reduce(d);
13819
+ }
13820
+ t.exports = p;
13821
+ })), ig = /* @__PURE__ */ g(((e, t) => {
13822
+ t.exports = r;
13823
+ var n = Ih().EventEmitter;
13824
+ Lh()(r, n), r.Readable = eg(), r.Writable = qh(), r.Duplex = Jh(), r.Transform = tg(), r.PassThrough = ng(), r.finished = Zh(), r.pipeline = rg(), r.Stream = r;
13825
+ function r() {
13826
+ n.call(this);
13827
+ }
13828
+ r.prototype.pipe = function(e, t) {
13829
+ var r = this;
13830
+ function i(t) {
13831
+ e.writable && !1 === e.write(t) && r.pause && r.pause();
13832
+ }
13833
+ r.on("data", i);
13834
+ function a() {
13835
+ r.readable && r.resume && r.resume();
13836
+ }
13837
+ e.on("drain", a), !e._isStdio && (!t || t.end !== !1) && (r.on("end", s), r.on("close", c));
13838
+ var o = !1;
13839
+ function s() {
13840
+ o || (o = !0, e.end());
13841
+ }
13842
+ function c() {
13843
+ o || (o = !0, typeof e.destroy == "function" && e.destroy());
13844
+ }
13845
+ function l(e) {
13846
+ if (u(), n.listenerCount(this, "error") === 0) throw e;
13847
+ }
13848
+ r.on("error", l), e.on("error", l);
13849
+ function u() {
13850
+ r.removeListener("data", i), e.removeListener("drain", a), r.removeListener("end", s), r.removeListener("close", c), r.removeListener("error", l), e.removeListener("error", l), r.removeListener("end", u), r.removeListener("close", u), e.removeListener("close", u);
13851
+ }
13852
+ return r.on("end", u), r.on("close", u), e.on("close", u), e.emit("pipe", r), e;
13853
+ };
13854
+ })), ag = /* @__PURE__ */ g(((e) => {
13855
+ (function(e) {
13856
+ e.parser = function(e, t) {
13857
+ return new n(e, t);
13858
+ }, e.SAXParser = n, e.SAXStream = l, e.createStream = c, e.MAX_BUFFER_LENGTH = 64 * 1024;
13859
+ var t = [
13860
+ "comment",
13861
+ "sgmlDecl",
13862
+ "textNode",
13863
+ "tagName",
13864
+ "doctype",
13865
+ "procInstName",
13866
+ "procInstBody",
13867
+ "entity",
13868
+ "attribName",
13869
+ "attribValue",
13870
+ "cdata",
12688
13871
  "script"
12689
13872
  ];
12690
13873
  e.EVENTS = [
@@ -12762,7 +13945,7 @@ var th = eh({ node: /* @__PURE__ */ _({
12762
13945
  };
12763
13946
  var o;
12764
13947
  try {
12765
- o = Eo().Stream;
13948
+ o = ig().Stream;
12766
13949
  } catch {
12767
13950
  o = function() {};
12768
13951
  }
@@ -12797,7 +13980,7 @@ var th = eh({ node: /* @__PURE__ */ _({
12797
13980
  l.prototype = Object.create(o.prototype, { constructor: { value: l } }), l.prototype.write = function(e) {
12798
13981
  if (typeof Buffer == "function" && typeof Buffer.isBuffer == "function" && Buffer.isBuffer(e)) {
12799
13982
  if (!this._decoder) {
12800
- var t = Bh().StringDecoder;
13983
+ var t = Xh().StringDecoder;
12801
13984
  this._decoder = new t("utf8");
12802
13985
  }
12803
13986
  e = this._decoder.write(e);
@@ -13446,12 +14629,12 @@ var th = eh({ node: /* @__PURE__ */ _({
13446
14629
  }) : String.fromCodePoint = n;
13447
14630
  })();
13448
14631
  })(e === void 0 ? e.sax = {} : e);
13449
- })), Hh = /* @__PURE__ */ g(((e, t) => {
14632
+ })), og = /* @__PURE__ */ g(((e, t) => {
13450
14633
  t.exports = { isArray: function(e) {
13451
14634
  return Array.isArray ? Array.isArray(e) : Object.prototype.toString.call(e) === "[object Array]";
13452
14635
  } };
13453
- })), Uh = /* @__PURE__ */ g(((e, t) => {
13454
- var n = Hh().isArray;
14636
+ })), sg = /* @__PURE__ */ g(((e, t) => {
14637
+ var n = og().isArray;
13455
14638
  t.exports = {
13456
14639
  copyOptions: function(e) {
13457
14640
  var t, n = {};
@@ -13474,11 +14657,11 @@ var th = eh({ node: /* @__PURE__ */ _({
13474
14657
  return e + "Fn" in t;
13475
14658
  }
13476
14659
  };
13477
- })), Wh = /* @__PURE__ */ g(((e, t) => {
13478
- var n = Vh(), r = {
14660
+ })), cg = /* @__PURE__ */ g(((e, t) => {
14661
+ var n = ag(), r = {
13479
14662
  on: function() {},
13480
14663
  parse: function() {}
13481
- }, i = Uh(), a = Hh().isArray, o, s = !0, c;
14664
+ }, i = sg(), a = og().isArray, o, s = !0, c;
13482
14665
  function l(e) {
13483
14666
  return o = i.copyOptions(e), i.ensureFlagExists("ignoreDeclaration", o), i.ensureFlagExists("ignoreInstruction", o), i.ensureFlagExists("ignoreAttributes", o), i.ensureFlagExists("ignoreText", o), i.ensureFlagExists("ignoreComment", o), i.ensureFlagExists("ignoreCdata", o), i.ensureFlagExists("ignoreDoctype", o), i.ensureFlagExists("compact", o), i.ensureFlagExists("alwaysChildren", o), i.ensureFlagExists("addParent", o), i.ensureFlagExists("trim", o), i.ensureFlagExists("nativeType", o), i.ensureFlagExists("nativeTypeAttributes", o), i.ensureFlagExists("sanitize", o), i.ensureFlagExists("instructionHasAttributes", o), i.ensureFlagExists("captureSpacesBetweenElements", o), i.ensureAlwaysArrayExists(o), i.ensureKeyExists("declaration", o), i.ensureKeyExists("instruction", o), i.ensureKeyExists("attributes", o), i.ensureKeyExists("text", o), i.ensureKeyExists("comment", o), i.ensureKeyExists("cdata", o), i.ensureKeyExists("doctype", o), i.ensureKeyExists("type", o), i.ensureKeyExists("name", o), i.ensureKeyExists("elements", o), i.ensureKeyExists("parent", o), i.checkFnExists("doctype", o), i.checkFnExists("instruction", o), i.checkFnExists("cdata", o), i.checkFnExists("comment", o), i.checkFnExists("text", o), i.checkFnExists("instructionName", o), i.checkFnExists("elementName", o), i.checkFnExists("attributeName", o), i.checkFnExists("attributeValue", o), i.checkFnExists("attributes", o), o;
13484
14667
  }
@@ -13571,8 +14754,8 @@ var th = eh({ node: /* @__PURE__ */ _({
13571
14754
  }
13572
14755
  return a;
13573
14756
  };
13574
- })), Gh = /* @__PURE__ */ g(((e, t) => {
13575
- var n = Uh(), r = Wh();
14757
+ })), lg = /* @__PURE__ */ g(((e, t) => {
14758
+ var n = sg(), r = cg();
13576
14759
  function i(e) {
13577
14760
  var t = n.copyOptions(e);
13578
14761
  return n.ensureSpacesExists(t), t;
@@ -13583,8 +14766,8 @@ var th = eh({ node: /* @__PURE__ */ _({
13583
14766
  return e === s ? "_" : t;
13584
14767
  }, n.spaces) : JSON.stringify(a, null, n.spaces), o.replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029");
13585
14768
  };
13586
- })), Kh = /* @__PURE__ */ g(((e, t) => {
13587
- var n = Uh(), r = Hh().isArray, i, a;
14769
+ })), ug = /* @__PURE__ */ g(((e, t) => {
14770
+ var n = sg(), r = og().isArray, i, a;
13588
14771
  function o(e) {
13589
14772
  var t = n.copyOptions(e);
13590
14773
  return n.ensureFlagExists("ignoreDeclaration", t), n.ensureFlagExists("ignoreInstruction", t), n.ensureFlagExists("ignoreAttributes", t), n.ensureFlagExists("ignoreText", t), n.ensureFlagExists("ignoreComment", t), n.ensureFlagExists("ignoreCdata", t), n.ensureFlagExists("ignoreDoctype", t), n.ensureFlagExists("compact", t), n.ensureFlagExists("indentText", t), n.ensureFlagExists("indentCdata", t), n.ensureFlagExists("indentAttributes", t), n.ensureFlagExists("indentInstruction", t), n.ensureFlagExists("fullTagEmptyElement", t), n.ensureFlagExists("noQuotesForNativeAttributes", t), n.ensureSpacesExists(t), typeof t.spaces == "number" && (t.spaces = Array(t.spaces + 1).join(" ")), n.ensureKeyExists("declaration", t), n.ensureKeyExists("instruction", t), n.ensureKeyExists("attributes", t), n.ensureKeyExists("text", t), n.ensureKeyExists("comment", t), n.ensureKeyExists("cdata", t), n.ensureKeyExists("doctype", t), n.ensureKeyExists("type", t), n.ensureKeyExists("name", t), n.ensureKeyExists("elements", t), n.checkFnExists("doctype", t), n.checkFnExists("instruction", t), n.checkFnExists("cdata", t), n.checkFnExists("comment", t), n.checkFnExists("text", t), n.checkFnExists("instructionName", t), n.checkFnExists("elementName", t), n.checkFnExists("attributeName", t), n.checkFnExists("attributeValue", t), n.checkFnExists("attributes", t), n.checkFnExists("fullTagEmptyElement", t), t;
@@ -13731,8 +14914,8 @@ var th = eh({ node: /* @__PURE__ */ _({
13731
14914
  var n = [];
13732
14915
  return i = e, a = "_root_", t.compact ? n.push(b(e, t, 0, !0)) : (e[t.declarationKey] && n.push(l(e[t.declarationKey], t, 0)), e[t.elementsKey] && e[t.elementsKey].length && n.push(_(e[t.elementsKey], t, 0, !n.length))), n.join("");
13733
14916
  };
13734
- })), qh = /* @__PURE__ */ g(((e, t) => {
13735
- var n = Kh();
14917
+ })), dg = /* @__PURE__ */ g(((e, t) => {
14918
+ var n = ug();
13736
14919
  t.exports = function(e, t) {
13737
14920
  e instanceof Buffer && (e = e.toString());
13738
14921
  var r = null;
@@ -13744,14 +14927,14 @@ var th = eh({ node: /* @__PURE__ */ _({
13744
14927
  else r = e;
13745
14928
  return n(r, t);
13746
14929
  };
13747
- })), Jh = /* @__PURE__ */ g(((e, t) => {
14930
+ })), fg = /* @__PURE__ */ g(((e, t) => {
13748
14931
  t.exports = {
13749
- xml2js: Wh(),
13750
- xml2json: Gh(),
13751
- js2xml: Kh(),
13752
- json2xml: qh()
14932
+ xml2js: cg(),
14933
+ xml2json: lg(),
14934
+ js2xml: ug(),
14935
+ json2xml: dg()
13753
14936
  };
13754
- })), Yh = Fh(), Xh = /* @__PURE__ */ y(Jh()), Zh = class {
14937
+ })), pg = Fh(), mg = /* @__PURE__ */ y(fg()), hg = class {
13755
14938
  constructor({ title: e, creator: t, date: n, publisher: r, description: i, language: a, rights: o, identifier: s }) {
13756
14939
  this.title = e, this.creator = t, this.date = n, this.publisher = r, this.description = i, this.language = a, this.rights = o, this.identifier = s;
13757
14940
  }
@@ -13761,11 +14944,11 @@ var th = eh({ node: /* @__PURE__ */ _({
13761
14944
  get(e) {
13762
14945
  return this[e];
13763
14946
  }
13764
- }, Qh = class {
14947
+ }, gg = class {
13765
14948
  constructor({ type: e, title: t, href: n }) {
13766
14949
  this.type = e, this.title = t, this.href = n, this.absoluteURL = "";
13767
14950
  }
13768
- }, $h = class {
14951
+ }, _g = class {
13769
14952
  constructor({ id: e, media: t, styles: n }) {
13770
14953
  this.id = e || `_${ko()}`, this.media = t, this.styles = n, this.node = null;
13771
14954
  }
@@ -13779,7 +14962,7 @@ var th = eh({ node: /* @__PURE__ */ _({
13779
14962
  removeSheet(e) {
13780
14963
  e.body.removeChild(this.node);
13781
14964
  }
13782
- }, eg = class e {
14965
+ }, vg = class e {
13783
14966
  constructor({ node: t, requestURI: n }) {
13784
14967
  this.id = t.id || `_${ko()}`, this.type = t.type || "application/javascript", this.src = e.getScriptSourceFromNodeValue(t), this.inline = (0, ao.default)(this.src), this.body = t.childNodes && t.childNodes.length ? t.childNodes[0].nodeValue.trim() : "", this.async = !1, this.requestURI = n;
13785
14968
  }
@@ -13794,7 +14977,7 @@ var th = eh({ node: /* @__PURE__ */ _({
13794
14977
  removeScript(e) {
13795
14978
  e.body.removeChild(this.elem);
13796
14979
  }
13797
- }, tg = class {
14980
+ }, yg = class {
13798
14981
  constructor({ id: e, href: t, mediaType: n, properties: r, idref: i, linear: a, absoluteURL: o = "", title: s = "", slug: c = "", depth: l = 0, children: u = [], inTOC: d = !1 }) {
13799
14982
  this.id = e, this.href = t, this.mediaType = n, this.properties = r, this.idref = i, this.linear = a, this.absoluteURL = o, this.title = s, this.slug = c, this.depth = l, this.children = u, this.inTOC = d;
13800
14983
  }
@@ -13807,13 +14990,13 @@ var th = eh({ node: /* @__PURE__ */ _({
13807
14990
  addChild(e) {
13808
14991
  this.children.push(e);
13809
14992
  }
13810
- }, ng = (e, t, n, r = { enumerable: !0 }) => (Object.entries(t).forEach(([t, i]) => {
14993
+ }, bg = (e, t, n, r = { enumerable: !0 }) => (Object.entries(t).forEach(([t, i]) => {
13811
14994
  let a = (0, io.default)(n, t) ? n[t] : i;
13812
14995
  Object.defineProperty(e, t, {
13813
14996
  value: a,
13814
14997
  ...r
13815
14998
  });
13816
- }), e), rg = (e) => typeof e == "function" ? e.call() : e, ig = class e {
14999
+ }), e), xg = (e) => typeof e == "function" ? e.call() : e, Sg = class e {
13817
15000
  static defaults = {
13818
15001
  width: 0,
13819
15002
  height: 0,
@@ -13830,7 +15013,7 @@ var th = eh({ node: /* @__PURE__ */ _({
13830
15013
  };
13831
15014
  constructor(t = {}) {
13832
15015
  Object.defineProperty(this, "settings", {
13833
- value: ng({}, e.defaults, t, {
15016
+ value: bg({}, e.defaults, t, {
13834
15017
  enumerable: !0,
13835
15018
  writable: !0
13836
15019
  }),
@@ -13850,25 +15033,25 @@ var th = eh({ node: /* @__PURE__ */ _({
13850
15033
  this.settings.height = e;
13851
15034
  }
13852
15035
  get paddingTop() {
13853
- return rg(this.settings.paddingTop);
15036
+ return xg(this.settings.paddingTop);
13854
15037
  }
13855
15038
  set paddingTop(e) {
13856
15039
  this.settings.paddingTop = e;
13857
15040
  }
13858
15041
  get paddingLeft() {
13859
- return rg(this.settings.paddingLeft);
15042
+ return xg(this.settings.paddingLeft);
13860
15043
  }
13861
15044
  set paddingLeft(e) {
13862
15045
  this.settings.paddingLeft = e;
13863
15046
  }
13864
15047
  get paddingRight() {
13865
- return rg(this.settings.paddingRight);
15048
+ return xg(this.settings.paddingRight);
13866
15049
  }
13867
15050
  set paddingRight(e) {
13868
15051
  this.settings.paddingRight = e;
13869
15052
  }
13870
15053
  get paddingBottom() {
13871
- return rg(this.settings.paddingBottom);
15054
+ return xg(this.settings.paddingBottom);
13872
15055
  }
13873
15056
  set paddingBottom(e) {
13874
15057
  this.settings.paddingBottom = e;
@@ -13886,13 +15069,13 @@ var th = eh({ node: /* @__PURE__ */ _({
13886
15069
  this.settings.columns = e;
13887
15070
  }
13888
15071
  get columnGap() {
13889
- return rg(this.settings.columnGap);
15072
+ return xg(this.settings.columnGap);
13890
15073
  }
13891
15074
  set columnGap(e) {
13892
15075
  this.settings.columnGap = e;
13893
15076
  }
13894
15077
  get columnWidth() {
13895
- return rg(this.settings.columnWidth);
15078
+ return xg(this.settings.columnWidth);
13896
15079
  }
13897
15080
  set columnWidth(e) {
13898
15081
  this.settings.columnWidth = e;
@@ -13916,7 +15099,7 @@ var th = eh({ node: /* @__PURE__ */ _({
13916
15099
  this.settings.transitionSpeed = e;
13917
15100
  }
13918
15101
  get fontSize() {
13919
- return rg(this.settings.fontSize);
15102
+ return xg(this.settings.fontSize);
13920
15103
  }
13921
15104
  set fontSize(e) {
13922
15105
  this.settings.fontSize = e;
@@ -13953,13 +15136,13 @@ var th = eh({ node: /* @__PURE__ */ _({
13953
15136
  if ((0, Rr.default)(e)) for (let [t, n] of Object.entries(e)) (0, io.default)(this.settings, t) && (this[t] = n);
13954
15137
  else typeof e == "string" ? (0, io.default)(this.settings, e) && (this[e] = t) : console.error("Could not update viewer settings with key: %s val: %s", e, t);
13955
15138
  };
13956
- }, ag = "\n .figure__fullbleed figure,\n .spread .spread__content {\n opacity: 1;\n top: 0;\n z-index: 11;\n height: 100vh;\n position: absolute;\n width: 100vw;\n }\n\n\n .figure__fullbleed figure .img-wrap img,\n .figure__fullbleed figure .img-wrap video {\n opacity: 1;\n position: absolute;\n object-fit: contain;\n width: 100% !important;\n max-width: 100%;\n max-height: 100% !important;\n height: 100%;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n }\n", og = "\n .figure__fullbleed figure .spread .spread__content {\n z-index: 11;\n width: 100vw;\n position: relative;\n }\n\n .figure__fullbleed figure .img-wrap img,\n .figure__fullbleed figure .img-wrap video {\n opacity: 1;\n object-fit: contain;\n width: 100% !important;\n max-width: 100%;\n max-height: 100% !important;\n height: 100%;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n }\n", $ = {
15139
+ }, Cg = "\n .figure__fullbleed figure,\n .spread .spread__content {\n opacity: 1;\n top: 0;\n z-index: 11;\n height: 100vh;\n position: absolute;\n width: 100vw;\n }\n\n\n .figure__fullbleed figure .img-wrap img,\n .figure__fullbleed figure .img-wrap video {\n opacity: 1;\n position: absolute;\n object-fit: contain;\n width: 100% !important;\n max-width: 100%;\n max-height: 100% !important;\n height: 100%;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n }\n", wg = "\n .figure__fullbleed figure .spread .spread__content {\n z-index: 11;\n width: 100vw;\n position: relative;\n }\n\n .figure__fullbleed figure .img-wrap img,\n .figure__fullbleed figure .img-wrap video {\n opacity: 1;\n object-fit: contain;\n width: 100% !important;\n max-width: 100%;\n max-height: 100% !important;\n height: 100%;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n }\n", $ = {
13957
15140
  root: null,
13958
15141
  document: null,
13959
15142
  styleSheets: [],
13960
15143
  scripts: [],
13961
15144
  requestURI: ""
13962
- }, sg = class e {
15145
+ }, Tg = class e {
13963
15146
  static setContextDocument(e) {
13964
15147
  $.document = e;
13965
15148
  }
@@ -13972,13 +15155,13 @@ var th = eh({ node: /* @__PURE__ */ _({
13972
15155
  static createStyleSheets() {
13973
15156
  $.styleSheets = [
13974
15157
  ...$.styleSheets,
13975
- new $h({
15158
+ new _g({
13976
15159
  media: wo,
13977
- styles: ag
15160
+ styles: Cg
13978
15161
  }),
13979
- new $h({
15162
+ new _g({
13980
15163
  media: Co,
13981
- styles: og
15164
+ styles: wg
13982
15165
  })
13983
15166
  ];
13984
15167
  }
@@ -13990,7 +15173,7 @@ var th = eh({ node: /* @__PURE__ */ _({
13990
15173
  }
13991
15174
  static createScriptElements() {
13992
15175
  let e = Array.from($.document.querySelectorAll("script") || []), { requestURI: t, scripts: n } = $;
13993
- return e ? ($.scripts = e.map((e) => new eg({
15176
+ return e ? ($.scripts = e.map((e) => new vg({
13994
15177
  node: e,
13995
15178
  requestURI: t
13996
15179
  })), $.scripts) : n;
@@ -14047,7 +15230,7 @@ var th = eh({ node: /* @__PURE__ */ _({
14047
15230
  static parseXML(t) {
14048
15231
  return e.removeScriptElements(), e.appendStyleSheets(), e.appendScripts(), t && typeof t == "function" ? t(null, $.document) : $.document;
14049
15232
  }
14050
- }, cg = class e {
15233
+ }, Eg = class e {
14051
15234
  static defaults = {
14052
15235
  fullbleedClassNames: [[
14053
15236
  "figure__inline",
@@ -14068,10 +15251,10 @@ var th = eh({ node: /* @__PURE__ */ _({
14068
15251
  responseURL: window.location.host
14069
15252
  };
14070
15253
  constructor(t = {}) {
14071
- sg.getRootDocument() || sg.setRootDocument(document), sg.removeStyleSheets(), sg.removeScripts(), this.settings = {
15254
+ Tg.getRootDocument() || Tg.setRootDocument(document), Tg.removeStyleSheets(), Tg.removeScripts(), this.settings = {
14072
15255
  ...e.defaults,
14073
15256
  ...t
14074
- }, sg.setRequestURI(this.settings.responseURL), this.fullbleedClassNames = this.settings.fullbleedClassNames, this.blacklistedClassNames = this.settings.blacklistedClassNames, this.markerClassNames = this.settings.markerClassNames, this.markerElement = this.settings.markerElement, this.markerStyles = {
15257
+ }, Tg.setRequestURI(this.settings.responseURL), this.fullbleedClassNames = this.settings.fullbleedClassNames, this.blacklistedClassNames = this.settings.blacklistedClassNames, this.markerClassNames = this.settings.markerClassNames, this.markerElement = this.settings.markerElement, this.markerStyles = {
14075
15258
  display: "block",
14076
15259
  height: "1px",
14077
15260
  position: "relative",
@@ -14231,7 +15414,7 @@ var th = eh({ node: /* @__PURE__ */ _({
14231
15414
  }
14232
15415
  parseXML(e, t) {
14233
15416
  let n = new window.DOMParser().parseFromString(e, "text/html"), r, i = null;
14234
- sg.setContextDocument(n), sg.createStyleSheets(), sg.createScriptElements(), sg.parseXML(), this.insertMarkers(n, (t) => {
15417
+ Tg.setContextDocument(n), Tg.createStyleSheets(), Tg.createScriptElements(), Tg.parseXML(), this.insertMarkers(n, (t) => {
14235
15418
  this.validateDocument(t) || (i = /* @__PURE__ */ Error("Invalid markup")), this.addLastNode(n), this.addIndicesToMarkers(n), this.removeBreakAfterClasses(n), r = e.replace(/<body([^>]*?)>[\s\S]*<\/body>/g, (e, t) => `<body${t}>${n.body.innerHTML}</body>`);
14236
15419
  });
14237
15420
  let a = {
@@ -14240,21 +15423,21 @@ var th = eh({ node: /* @__PURE__ */ _({
14240
15423
  };
14241
15424
  return t && typeof t == "function" ? t(i, a) : a;
14242
15425
  }
14243
- }, lg = ["SCRIPT", "STYLE"], ug = (e) => lg.includes(e), dg = (e) => e.nodeType === window.Node.ELEMENT_NODE && ug(e.nodeName), fg = (e) => {
15426
+ }, Dg = ["SCRIPT", "STYLE"], Og = (e) => Dg.includes(e), kg = (e) => e.nodeType === window.Node.ELEMENT_NODE && Og(e.nodeName), Ag = (e) => {
14244
15427
  if (!e.href || J.isRelative(e.href)) return e.parentNode.removeChild(e);
14245
15428
  let { origin: t } = new window.URL(e.href);
14246
15429
  return new RegExp(window.location.origin).test(t) ? e.parentNode.removeChild(e) : e.setAttribute("target", "_blank");
14247
- }, pg = (e, t) => {
15430
+ }, jg = (e, t) => {
14248
15431
  for (let t = e.children.length - 1; t >= 0; t--) {
14249
15432
  let n = e.children[t];
14250
- dg(n) && n.parentNode.removeChild(n), n.nodeName === "A" && fg(n), n.children.length && pg(n);
15433
+ kg(n) && n.parentNode.removeChild(n), n.nodeName === "A" && Ag(n), n.children.length && jg(n);
14251
15434
  }
14252
15435
  if (t !== void 0) {
14253
15436
  let n = document.createElement("span"), r = document.createTextNode(t);
14254
15437
  n.classList.add("footnote__content--count"), n.appendChild(r), e.prepend(n);
14255
15438
  }
14256
15439
  return e.innerHTML;
14257
- }, mg = class extends t.Component {
15440
+ }, Mg = class extends t.Component {
14258
15441
  constructor(e) {
14259
15442
  super(e), this.state = {
14260
15443
  content: "",
@@ -14278,7 +15461,7 @@ var th = eh({ node: /* @__PURE__ */ _({
14278
15461
  let a = i.parentNode;
14279
15462
  for (; a && a.nodeName !== "UL" && a.nodeName !== "OL";) a = a.parentNode;
14280
15463
  let o;
14281
- a && (o = (Number(a.getAttribute("start")) || 1) + Array.prototype.indexOf.call(a.children, i)), e = pg(i.firstChild, o), this.setState({ content: e });
15464
+ a && (o = (Number(a.getAttribute("start")) || 1) + Array.prototype.indexOf.call(a.children, i)), e = jg(i.firstChild, o), this.setState({ content: e });
14282
15465
  };
14283
15466
  handleOnMouseOver = (e) => {
14284
15467
  e && e.preventDefault(), !Y.isSingleColumn() && this.toggleFootnote();
@@ -14339,7 +15522,7 @@ var th = eh({ node: /* @__PURE__ */ _({
14339
15522
  })
14340
15523
  });
14341
15524
  }
14342
- }, hg = U(({ viewerSettings: e }) => ({ viewerSettings: e }), () => ({}))(mg), gg = U(({ readerSettings: e }) => ({ readerSettings: e }), () => ({}))((e) => /* @__PURE__ */ (0, X.jsx)(Io.Consumer, { children: ({ getSpineItemByAbsoluteUrl: t, navigateToChapterByURL: n }) => {
15525
+ }, Ng = U(({ viewerSettings: e }) => ({ viewerSettings: e }), () => ({}))(Mg), Pg = U(({ readerSettings: e }) => ({ readerSettings: e }), () => ({}))((e) => /* @__PURE__ */ (0, X.jsx)(Io.Consumer, { children: ({ getSpineItemByAbsoluteUrl: t, navigateToChapterByURL: n }) => {
14343
15526
  let { className: r, href: i, readerSettings: a, style: o, children: s } = e, c = r || "", l = o || {}, u = t(i) > -1, d = J.isExternal(i, window.location.href), f = J.isExternal(i, a.projectURL), p = "", m = "";
14344
15527
  return d && !u ? (p = "_blank", m = "nooperner noreferrer") : f && (p = "_top"), /* @__PURE__ */ (0, X.jsx)("a", {
14345
15528
  href: i,
@@ -14352,10 +15535,10 @@ var th = eh({ node: /* @__PURE__ */ _({
14352
15535
  },
14353
15536
  children: s
14354
15537
  });
14355
- } })), _g = "UPDATE", vg = /* @__PURE__ */ _({ update: () => yg }), yg = (e) => ({
14356
- type: _g,
15538
+ } })), Fg = "UPDATE", Ig = /* @__PURE__ */ _({ update: () => Lg }), Lg = (e) => ({
15539
+ type: Fg,
14357
15540
  payload: e
14358
- }), bg = (function() {
15541
+ }), Rg = (function() {
14359
15542
  if (typeof Map < "u") return Map;
14360
15543
  function e(e, t) {
14361
15544
  var n = -1;
@@ -14394,34 +15577,34 @@ var th = eh({ node: /* @__PURE__ */ _({
14394
15577
  }
14395
15578
  }, t;
14396
15579
  }();
14397
- })(), xg = typeof window < "u" && typeof document < "u" && window.document === document, Sg = (function() {
15580
+ })(), zg = typeof window < "u" && typeof document < "u" && window.document === document, Bg = (function() {
14398
15581
  return typeof global < "u" && global.Math === Math ? global : typeof self < "u" && self.Math === Math ? self : typeof window < "u" && window.Math === Math ? window : Function("return this")();
14399
- })(), Cg = (function() {
14400
- return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(Sg) : function(e) {
15582
+ })(), Vg = (function() {
15583
+ return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(Bg) : function(e) {
14401
15584
  return setTimeout(function() {
14402
15585
  return e(Date.now());
14403
15586
  }, 1e3 / 60);
14404
15587
  };
14405
- })(), wg = 2;
14406
- function Tg(e, t) {
15588
+ })(), Hg = 2;
15589
+ function Ug(e, t) {
14407
15590
  var n = !1, r = !1, i = 0;
14408
15591
  function a() {
14409
15592
  n && (n = !1, e()), r && s();
14410
15593
  }
14411
15594
  function o() {
14412
- Cg(a);
15595
+ Vg(a);
14413
15596
  }
14414
15597
  function s() {
14415
15598
  var e = Date.now();
14416
15599
  if (n) {
14417
- if (e - i < wg) return;
15600
+ if (e - i < Hg) return;
14418
15601
  r = !0;
14419
15602
  } else n = !0, r = !1, setTimeout(o, t);
14420
15603
  i = e;
14421
15604
  }
14422
15605
  return s;
14423
15606
  }
14424
- var Eg = 20, Dg = [
15607
+ var Wg = 20, Gg = [
14425
15608
  "top",
14426
15609
  "right",
14427
15610
  "bottom",
@@ -14430,9 +15613,9 @@ var Eg = 20, Dg = [
14430
15613
  "height",
14431
15614
  "size",
14432
15615
  "weight"
14433
- ], Og = typeof MutationObserver < "u", kg = function() {
15616
+ ], Kg = typeof MutationObserver < "u", qg = function() {
14434
15617
  function e() {
14435
- this.connected_ = !1, this.mutationEventsAdded_ = !1, this.mutationsObserver_ = null, this.observers_ = [], this.onTransitionEnd_ = this.onTransitionEnd_.bind(this), this.refresh = Tg(this.refresh.bind(this), Eg);
15618
+ this.connected_ = !1, this.mutationEventsAdded_ = !1, this.mutationsObserver_ = null, this.observers_ = [], this.onTransitionEnd_ = this.onTransitionEnd_.bind(this), this.refresh = Ug(this.refresh.bind(this), Wg);
14436
15619
  }
14437
15620
  return e.prototype.addObserver = function(e) {
14438
15621
  ~this.observers_.indexOf(e) || this.observers_.push(e), this.connected_ || this.connect_();
@@ -14449,23 +15632,23 @@ var Eg = 20, Dg = [
14449
15632
  return e.broadcastActive();
14450
15633
  }), e.length > 0;
14451
15634
  }, e.prototype.connect_ = function() {
14452
- !xg || this.connected_ || (document.addEventListener("transitionend", this.onTransitionEnd_), window.addEventListener("resize", this.refresh), Og ? (this.mutationsObserver_ = new MutationObserver(this.refresh), this.mutationsObserver_.observe(document, {
15635
+ !zg || this.connected_ || (document.addEventListener("transitionend", this.onTransitionEnd_), window.addEventListener("resize", this.refresh), Kg ? (this.mutationsObserver_ = new MutationObserver(this.refresh), this.mutationsObserver_.observe(document, {
14453
15636
  attributes: !0,
14454
15637
  childList: !0,
14455
15638
  characterData: !0,
14456
15639
  subtree: !0
14457
15640
  })) : (document.addEventListener("DOMSubtreeModified", this.refresh), this.mutationEventsAdded_ = !0), this.connected_ = !0);
14458
15641
  }, e.prototype.disconnect_ = function() {
14459
- !xg || !this.connected_ || (document.removeEventListener("transitionend", this.onTransitionEnd_), window.removeEventListener("resize", this.refresh), this.mutationsObserver_ && this.mutationsObserver_.disconnect(), this.mutationEventsAdded_ && document.removeEventListener("DOMSubtreeModified", this.refresh), this.mutationsObserver_ = null, this.mutationEventsAdded_ = !1, this.connected_ = !1);
15642
+ !zg || !this.connected_ || (document.removeEventListener("transitionend", this.onTransitionEnd_), window.removeEventListener("resize", this.refresh), this.mutationsObserver_ && this.mutationsObserver_.disconnect(), this.mutationEventsAdded_ && document.removeEventListener("DOMSubtreeModified", this.refresh), this.mutationsObserver_ = null, this.mutationEventsAdded_ = !1, this.connected_ = !1);
14460
15643
  }, e.prototype.onTransitionEnd_ = function(e) {
14461
15644
  var t = e.propertyName, n = t === void 0 ? "" : t;
14462
- Dg.some(function(e) {
15645
+ Gg.some(function(e) {
14463
15646
  return !!~n.indexOf(e);
14464
15647
  }) && this.refresh();
14465
15648
  }, e.getInstance = function() {
14466
15649
  return this.instance_ ||= new e(), this.instance_;
14467
15650
  }, e.instance_ = null, e;
14468
- }(), Ag = (function(e, t) {
15651
+ }(), Jg = (function(e, t) {
14469
15652
  for (var n = 0, r = Object.keys(t); n < r.length; n++) {
14470
15653
  var i = r[n];
14471
15654
  Object.defineProperty(e, i, {
@@ -14476,19 +15659,19 @@ var Eg = 20, Dg = [
14476
15659
  });
14477
15660
  }
14478
15661
  return e;
14479
- }), jg = (function(e) {
14480
- return e && e.ownerDocument && e.ownerDocument.defaultView || Sg;
14481
- }), Mg = Hg(0, 0, 0, 0);
14482
- function Ng(e) {
15662
+ }), Yg = (function(e) {
15663
+ return e && e.ownerDocument && e.ownerDocument.defaultView || Bg;
15664
+ }), Xg = o_(0, 0, 0, 0);
15665
+ function Zg(e) {
14483
15666
  return parseFloat(e) || 0;
14484
15667
  }
14485
- function Pg(e) {
15668
+ function Qg(e) {
14486
15669
  return [...arguments].slice(1).reduce(function(t, n) {
14487
15670
  var r = e["border-" + n + "-width"];
14488
- return t + Ng(r);
15671
+ return t + Zg(r);
14489
15672
  }, 0);
14490
15673
  }
14491
- function Fg(e) {
15674
+ function $g(e) {
14492
15675
  for (var t = [
14493
15676
  "top",
14494
15677
  "right",
@@ -14496,40 +15679,40 @@ function Fg(e) {
14496
15679
  "left"
14497
15680
  ], n = {}, r = 0, i = t; r < i.length; r++) {
14498
15681
  var a = i[r], o = e["padding-" + a];
14499
- n[a] = Ng(o);
15682
+ n[a] = Zg(o);
14500
15683
  }
14501
15684
  return n;
14502
15685
  }
14503
- function Ig(e) {
15686
+ function e_(e) {
14504
15687
  var t = e.getBBox();
14505
- return Hg(0, 0, t.width, t.height);
15688
+ return o_(0, 0, t.width, t.height);
14506
15689
  }
14507
- function Lg(e) {
15690
+ function t_(e) {
14508
15691
  var t = e.clientWidth, n = e.clientHeight;
14509
- if (!t && !n) return Mg;
14510
- var r = jg(e).getComputedStyle(e), i = Fg(r), a = i.left + i.right, o = i.top + i.bottom, s = Ng(r.width), c = Ng(r.height);
14511
- if (r.boxSizing === "border-box" && (Math.round(s + a) !== t && (s -= Pg(r, "left", "right") + a), Math.round(c + o) !== n && (c -= Pg(r, "top", "bottom") + o)), !zg(e)) {
15692
+ if (!t && !n) return Xg;
15693
+ var r = Yg(e).getComputedStyle(e), i = $g(r), a = i.left + i.right, o = i.top + i.bottom, s = Zg(r.width), c = Zg(r.height);
15694
+ if (r.boxSizing === "border-box" && (Math.round(s + a) !== t && (s -= Qg(r, "left", "right") + a), Math.round(c + o) !== n && (c -= Qg(r, "top", "bottom") + o)), !r_(e)) {
14512
15695
  var l = Math.round(s + a) - t, u = Math.round(c + o) - n;
14513
15696
  Math.abs(l) !== 1 && (s -= l), Math.abs(u) !== 1 && (c -= u);
14514
15697
  }
14515
- return Hg(i.left, i.top, s, c);
15698
+ return o_(i.left, i.top, s, c);
14516
15699
  }
14517
- var Rg = (function() {
15700
+ var n_ = (function() {
14518
15701
  return typeof SVGGraphicsElement < "u" ? function(e) {
14519
- return e instanceof jg(e).SVGGraphicsElement;
15702
+ return e instanceof Yg(e).SVGGraphicsElement;
14520
15703
  } : function(e) {
14521
- return e instanceof jg(e).SVGElement && typeof e.getBBox == "function";
15704
+ return e instanceof Yg(e).SVGElement && typeof e.getBBox == "function";
14522
15705
  };
14523
15706
  })();
14524
- function zg(e) {
14525
- return e === jg(e).document.documentElement;
15707
+ function r_(e) {
15708
+ return e === Yg(e).document.documentElement;
14526
15709
  }
14527
- function Bg(e) {
14528
- return xg ? Rg(e) ? Ig(e) : Lg(e) : Mg;
15710
+ function i_(e) {
15711
+ return zg ? n_(e) ? e_(e) : t_(e) : Xg;
14529
15712
  }
14530
- function Vg(e) {
15713
+ function a_(e) {
14531
15714
  var t = e.x, n = e.y, r = e.width, i = e.height, a = Object.create((typeof DOMRectReadOnly < "u" ? DOMRectReadOnly : Object).prototype);
14532
- return Ag(a, {
15715
+ return Jg(a, {
14533
15716
  x: t,
14534
15717
  y: n,
14535
15718
  width: r,
@@ -14540,7 +15723,7 @@ function Vg(e) {
14540
15723
  left: t
14541
15724
  }), a;
14542
15725
  }
14543
- function Hg(e, t, n, r) {
15726
+ function o_(e, t, n, r) {
14544
15727
  return {
14545
15728
  x: e,
14546
15729
  y: t,
@@ -14548,42 +15731,42 @@ function Hg(e, t, n, r) {
14548
15731
  height: r
14549
15732
  };
14550
15733
  }
14551
- var Ug = function() {
15734
+ var s_ = function() {
14552
15735
  function e(e) {
14553
- this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ = Hg(0, 0, 0, 0), this.target = e;
15736
+ this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ = o_(0, 0, 0, 0), this.target = e;
14554
15737
  }
14555
15738
  return e.prototype.isActive = function() {
14556
- var e = Bg(this.target);
15739
+ var e = i_(this.target);
14557
15740
  return this.contentRect_ = e, e.width !== this.broadcastWidth || e.height !== this.broadcastHeight;
14558
15741
  }, e.prototype.broadcastRect = function() {
14559
15742
  var e = this.contentRect_;
14560
15743
  return this.broadcastWidth = e.width, this.broadcastHeight = e.height, e;
14561
15744
  }, e;
14562
- }(), Wg = function() {
15745
+ }(), c_ = function() {
14563
15746
  function e(e, t) {
14564
- var n = Vg(t);
14565
- Ag(this, {
15747
+ var n = a_(t);
15748
+ Jg(this, {
14566
15749
  target: e,
14567
15750
  contentRect: n
14568
15751
  });
14569
15752
  }
14570
15753
  return e;
14571
- }(), Gg = function() {
15754
+ }(), l_ = function() {
14572
15755
  function e(e, t, n) {
14573
- if (this.activeObservations_ = [], this.observations_ = new bg(), typeof e != "function") throw TypeError("The callback provided as parameter 1 is not a function.");
15756
+ if (this.activeObservations_ = [], this.observations_ = new Rg(), typeof e != "function") throw TypeError("The callback provided as parameter 1 is not a function.");
14574
15757
  this.callback_ = e, this.controller_ = t, this.callbackCtx_ = n;
14575
15758
  }
14576
15759
  return e.prototype.observe = function(e) {
14577
15760
  if (!arguments.length) throw TypeError("1 argument required, but only 0 present.");
14578
15761
  if (!(typeof Element > "u" || !(Element instanceof Object))) {
14579
- if (!(e instanceof jg(e).Element)) throw TypeError("parameter 1 is not of type \"Element\".");
15762
+ if (!(e instanceof Yg(e).Element)) throw TypeError("parameter 1 is not of type \"Element\".");
14580
15763
  var t = this.observations_;
14581
- t.has(e) || (t.set(e, new Ug(e)), this.controller_.addObserver(this), this.controller_.refresh());
15764
+ t.has(e) || (t.set(e, new s_(e)), this.controller_.addObserver(this), this.controller_.refresh());
14582
15765
  }
14583
15766
  }, e.prototype.unobserve = function(e) {
14584
15767
  if (!arguments.length) throw TypeError("1 argument required, but only 0 present.");
14585
15768
  if (!(typeof Element > "u" || !(Element instanceof Object))) {
14586
- if (!(e instanceof jg(e).Element)) throw TypeError("parameter 1 is not of type \"Element\".");
15769
+ if (!(e instanceof Yg(e).Element)) throw TypeError("parameter 1 is not of type \"Element\".");
14587
15770
  var t = this.observations_;
14588
15771
  t.has(e) && (t.delete(e), t.size || this.controller_.removeObserver(this));
14589
15772
  }
@@ -14597,7 +15780,7 @@ var Ug = function() {
14597
15780
  }, e.prototype.broadcastActive = function() {
14598
15781
  if (this.hasActive()) {
14599
15782
  var e = this.callbackCtx_, t = this.activeObservations_.map(function(e) {
14600
- return new Wg(e.target, e.broadcastRect());
15783
+ return new c_(e.target, e.broadcastRect());
14601
15784
  });
14602
15785
  this.callback_.call(e, t, e), this.clearActive();
14603
15786
  }
@@ -14606,12 +15789,12 @@ var Ug = function() {
14606
15789
  }, e.prototype.hasActive = function() {
14607
15790
  return this.activeObservations_.length > 0;
14608
15791
  }, e;
14609
- }(), Kg = typeof WeakMap < "u" ? /* @__PURE__ */ new WeakMap() : new bg(), qg = function() {
15792
+ }(), u_ = typeof WeakMap < "u" ? /* @__PURE__ */ new WeakMap() : new Rg(), d_ = function() {
14610
15793
  function e(t) {
14611
15794
  if (!(this instanceof e)) throw TypeError("Cannot call a class as a function.");
14612
15795
  if (!arguments.length) throw TypeError("1 argument required, but only 0 present.");
14613
- var n = new Gg(t, kg.getInstance(), this);
14614
- Kg.set(this, n);
15796
+ var n = new l_(t, qg.getInstance(), this);
15797
+ u_.set(this, n);
14615
15798
  }
14616
15799
  return e;
14617
15800
  }();
@@ -14620,14 +15803,14 @@ var Ug = function() {
14620
15803
  "unobserve",
14621
15804
  "disconnect"
14622
15805
  ].forEach(function(e) {
14623
- qg.prototype[e] = function() {
15806
+ d_.prototype[e] = function() {
14624
15807
  var t;
14625
- return (t = Kg.get(this))[e].apply(t, arguments);
15808
+ return (t = u_.get(this))[e].apply(t, arguments);
14626
15809
  };
14627
15810
  });
14628
- var Jg = (function() {
14629
- return Sg.ResizeObserver === void 0 ? qg : Sg.ResizeObserver;
14630
- })(), Yg = 48, Xg = 52, Zg = 0, Qg = 5, $g = (e, n = {}) => {
15811
+ var f_ = (function() {
15812
+ return Bg.ResizeObserver === void 0 ? d_ : Bg.ResizeObserver;
15813
+ })(), p_ = 48, m_ = 52, h_ = 0, g_ = 5, __ = (e, n = {}) => {
14631
15814
  class r extends t.Component {
14632
15815
  static contextType = Io;
14633
15816
  state = {
@@ -14667,12 +15850,12 @@ var Jg = (function() {
14667
15850
  connectObserver() {
14668
15851
  let e = this.getRef();
14669
15852
  if (!e) return console.error("No element to conenct to ResizeObserver");
14670
- this.resizeObserver = new Jg(this.calculateNodePositionAfterResize), this.resizeObserver.observe(e);
15853
+ this.resizeObserver = new f_(this.calculateNodePositionAfterResize), this.resizeObserver.observe(e);
14671
15854
  }
14672
15855
  disconnectObservers() {
14673
15856
  this.resizeObserver.disconnect();
14674
15857
  }
14675
- elementEdgeIsInAllowableRange = (e) => e >= Yg && e <= Xg || e >= Zg && e <= Qg;
15858
+ elementEdgeIsInAllowableRange = (e) => e >= p_ && e <= m_ || e >= h_ && e <= g_;
14676
15859
  getRef = () => {
14677
15860
  let { useParentDimensions: e } = this.settings, t;
14678
15861
  return t = e ? this.elemRef.current?.parentElement ? this.elemRef.current.parentElement : null : this.elemRef.current, t;
@@ -14682,16 +15865,16 @@ var Jg = (function() {
14682
15865
  if (!e) return console.error("Element does not exist");
14683
15866
  let { isMarker: t } = this.settings, { paddingLeft: n, columnGap: r } = this.props.viewerSettings, i = window.getComputedStyle(e.parentElement.parentElement), a = i.marginLeft, o = i.paddingLeft, s = e.offsetLeft - parseFloat(a) - parseFloat(o), c = (window.innerWidth - n * 2 - r) / 2, l = window.innerWidth - n * 2 + r, u = s - r - c;
14684
15867
  e.offsetWidth !== window.innerWidth && (u -= n);
14685
- let d = Math.abs(u / l), f = Number((d % 1).toFixed(2).substring(2)), p = f >= Yg && f <= Xg, m = f >= Zg && f <= Qg, h = Math.floor(Number(d.toFixed(2)));
15868
+ let d = Math.abs(u / l), f = Number((d % 1).toFixed(2).substring(2)), p = f >= p_ && f <= m_, m = f >= h_ && f <= g_, h = Math.floor(Number(d.toFixed(2)));
14686
15869
  (this.elementEdgeIsInAllowableRange(f) === !1 || p === !1 && m === !1) && (e.style.display = "none", e.style.display = "block"), this.setState({
14687
15870
  verso: p,
14688
15871
  recto: m,
14689
15872
  spreadIndex: h,
14690
15873
  elementEdgeLeft: s
14691
- }), t && (sg.removeStyleSheets(), sg.createStyleSheets({
15874
+ }), t && (Tg.removeStyleSheets(), Tg.createStyleSheets({
14692
15875
  paddingLeft: n,
14693
15876
  columnGap: r
14694
- }), sg.appendStyleSheets());
15877
+ }), Tg.appendStyleSheets());
14695
15878
  };
14696
15879
  calculateNodePositionUsingBoundingClientRect = () => {
14697
15880
  let e = this.getRef();
@@ -14716,7 +15899,7 @@ var Jg = (function() {
14716
15899
  viewerSettings: t,
14717
15900
  view: n
14718
15901
  }), () => ({}))(r);
14719
- }, e_ = class extends t.Component {
15902
+ }, v_ = class extends t.Component {
14720
15903
  render() {
14721
15904
  let { verso: e, recto: t } = this.props;
14722
15905
  return { ...this.props.style }, /* @__PURE__ */ (0, X.jsxs)("span", { children: [/* @__PURE__ */ (0, X.jsx)("span", {
@@ -14728,14 +15911,14 @@ var Jg = (function() {
14728
15911
  ref: this.props.elemRef
14729
15912
  }), /* @__PURE__ */ (0, X.jsx)("span", { className: "bber-marker__spacer" })] });
14730
15913
  }
14731
- }, t_ = U(({ markers: e }) => ({ markers: e }), (e) => ({ markerActions: G(vg, e) }))($g(e_, { isMarker: !0 })), n_ = ({ elementKey: e, elementRef: t, handleLoad: n, handleEnded: r, controls: i, children: a, ...o }) => /* @__PURE__ */ (0, X.jsx)("audio", {
15914
+ }, y_ = U(({ markers: e }) => ({ markers: e }), (e) => ({ markerActions: G(Ig, e) }))(__(v_, { isMarker: !0 })), b_ = ({ elementKey: e, elementRef: t, handleLoad: n, handleEnded: r, controls: i, children: a, ...o }) => /* @__PURE__ */ (0, X.jsx)("audio", {
14732
15915
  onLoadedMetadata: n,
14733
15916
  onEnded: r,
14734
15917
  controls: i,
14735
15918
  ref: t,
14736
15919
  ...o,
14737
15920
  children: a
14738
- }, e), r_ = (e) => /* @__PURE__ */ (0, X.jsx)("a", {
15921
+ }, e), x_ = (e) => /* @__PURE__ */ (0, X.jsx)("a", {
14739
15922
  className: "bber-a material-icons media__button__file_download",
14740
15923
  href: e.currentSrc,
14741
15924
  download: !0,
@@ -14743,7 +15926,7 @@ var Jg = (function() {
14743
15926
  });
14744
15927
  //#endregion
14745
15928
  //#region src/components/Media/Controls/MediaButtonLoop.jsx
14746
- function i_(e) {
15929
+ function S_(e) {
14747
15930
  return /* @__PURE__ */ (0, X.jsx)("button", {
14748
15931
  className: (0, Z.default)("bber-button material-icons", { "bber-hover": e.loop }),
14749
15932
  onClick: e.updateLoop,
@@ -14752,7 +15935,7 @@ function i_(e) {
14752
15935
  }
14753
15936
  //#endregion
14754
15937
  //#region src/components/Media/Controls/MediaButtonPlaybackRate.jsx
14755
- function a_(e) {
15938
+ function C_(e) {
14756
15939
  switch (e.playbackRate) {
14757
15940
  case uo.SLOW: return /* @__PURE__ */ (0, X.jsxs)("button", {
14758
15941
  className: "bber-button bber-button__media__playback-rate",
@@ -14783,7 +15966,7 @@ function a_(e) {
14783
15966
  }
14784
15967
  //#endregion
14785
15968
  //#region src/components/Media/Controls/MediaButtonPlayPause.jsx
14786
- function o_(e) {
15969
+ function w_(e) {
14787
15970
  return e.paused ? /* @__PURE__ */ (0, X.jsx)("button", {
14788
15971
  className: "bber-button material-icons bber-media__button__play",
14789
15972
  onClick: e.play,
@@ -14796,14 +15979,14 @@ function o_(e) {
14796
15979
  }
14797
15980
  //#endregion
14798
15981
  //#region src/components/Media/Controls/MediaButtonSeek.jsx
14799
- function s_(e) {
15982
+ function T_(e) {
14800
15983
  return /* @__PURE__ */ (0, X.jsx)("button", {
14801
15984
  className: "bber-button material-icons bber-media__button__forward_30",
14802
15985
  onClick: e.timeForward,
14803
15986
  children: "forward_30"
14804
15987
  });
14805
15988
  }
14806
- function c_(e) {
15989
+ function E_(e) {
14807
15990
  return /* @__PURE__ */ (0, X.jsx)("button", {
14808
15991
  className: "bber-button material-icons bber-media__button__replay_30",
14809
15992
  onClick: e.timeBack,
@@ -14812,7 +15995,7 @@ function c_(e) {
14812
15995
  }
14813
15996
  //#endregion
14814
15997
  //#region src/components/Media/Controls/MediaRangeSlider.jsx
14815
- function l_(e) {
15998
+ function D_(e) {
14816
15999
  return /* @__PURE__ */ (0, X.jsxs)("div", {
14817
16000
  className: "bber-media__slider",
14818
16001
  children: [/* @__PURE__ */ (0, X.jsx)("div", {
@@ -14831,7 +16014,7 @@ function l_(e) {
14831
16014
  }
14832
16015
  //#endregion
14833
16016
  //#region src/components/Media/Controls/MediaButtonVolume.jsx
14834
- var u_ = class extends t.Component {
16017
+ var O_ = class extends t.Component {
14835
16018
  constructor() {
14836
16019
  super(), this.state = { open: !1 };
14837
16020
  }
@@ -14840,7 +16023,7 @@ var u_ = class extends t.Component {
14840
16023
  let { open: e } = this.state;
14841
16024
  return /* @__PURE__ */ (0, X.jsxs)(X.Fragment, { children: [/* @__PURE__ */ (0, X.jsx)("div", {
14842
16025
  className: (0, Z.default)("bber-slider__volume", { "bber-open": e }),
14843
- children: /* @__PURE__ */ (0, X.jsx)(l_, {
16026
+ children: /* @__PURE__ */ (0, X.jsx)(D_, {
14844
16027
  duration: 1,
14845
16028
  progress: this.props.volume,
14846
16029
  seek: this.props.updateVolume
@@ -14854,7 +16037,7 @@ var u_ = class extends t.Component {
14854
16037
  };
14855
16038
  //#endregion
14856
16039
  //#region src/components/Media/Controls/MediaTime.jsx
14857
- function d_({ time: e }) {
16040
+ function k_({ time: e }) {
14858
16041
  return /* @__PURE__ */ (0, X.jsx)("div", {
14859
16042
  className: "bber-media__time",
14860
16043
  children: e
@@ -14862,20 +16045,20 @@ function d_({ time: e }) {
14862
16045
  }
14863
16046
  //#endregion
14864
16047
  //#region src/components/Media/Controls/AudioControlsFull.jsx
14865
- function f_(e) {
16048
+ function A_(e) {
14866
16049
  return /* @__PURE__ */ (0, X.jsxs)("div", {
14867
16050
  className: "bber-media__stacked",
14868
16051
  children: [
14869
16052
  /* @__PURE__ */ (0, X.jsxs)("div", {
14870
16053
  className: "bber-media__stacked__row",
14871
16054
  children: [
14872
- /* @__PURE__ */ (0, X.jsx)(d_, { time: e.timeElapsed }),
14873
- /* @__PURE__ */ (0, X.jsx)(l_, {
16055
+ /* @__PURE__ */ (0, X.jsx)(k_, { time: e.timeElapsed }),
16056
+ /* @__PURE__ */ (0, X.jsx)(D_, {
14874
16057
  duration: e.duration,
14875
16058
  progress: e.progress,
14876
16059
  seek: e.seek
14877
16060
  }),
14878
- /* @__PURE__ */ (0, X.jsx)(d_, { time: e.timeRemaining })
16061
+ /* @__PURE__ */ (0, X.jsx)(k_, { time: e.timeRemaining })
14879
16062
  ]
14880
16063
  }),
14881
16064
  /* @__PURE__ */ (0, X.jsx)("div", {
@@ -14885,142 +16068,142 @@ function f_(e) {
14885
16068
  /* @__PURE__ */ (0, X.jsxs)("div", {
14886
16069
  className: "bber-media__stacked__row",
14887
16070
  children: [
14888
- /* @__PURE__ */ (0, X.jsx)(c_, { timeBack: e.timeBack }),
14889
- /* @__PURE__ */ (0, X.jsx)(o_, {
16071
+ /* @__PURE__ */ (0, X.jsx)(E_, { timeBack: e.timeBack }),
16072
+ /* @__PURE__ */ (0, X.jsx)(w_, {
14890
16073
  paused: e.paused,
14891
16074
  pause: e.pause,
14892
16075
  play: e.play
14893
16076
  }),
14894
- /* @__PURE__ */ (0, X.jsx)(s_, { timeForward: e.timeForward }),
14895
- /* @__PURE__ */ (0, X.jsx)(i_, {
16077
+ /* @__PURE__ */ (0, X.jsx)(T_, { timeForward: e.timeForward }),
16078
+ /* @__PURE__ */ (0, X.jsx)(S_, {
14896
16079
  loop: e.loop,
14897
16080
  updateLoop: e.updateLoop
14898
16081
  }),
14899
- /* @__PURE__ */ (0, X.jsx)(a_, {
16082
+ /* @__PURE__ */ (0, X.jsx)(C_, {
14900
16083
  playbackRate: e.playbackRate,
14901
16084
  playbackSlow: e.playbackSlow,
14902
16085
  playbackNormal: e.playbackNormal,
14903
16086
  playbackFast: e.playbackFast
14904
16087
  }),
14905
16088
  /* @__PURE__ */ (0, X.jsx)("div", { style: { marginRight: "auto" } }),
14906
- /* @__PURE__ */ (0, X.jsx)(u_, {
16089
+ /* @__PURE__ */ (0, X.jsx)(O_, {
14907
16090
  volume: e.volume,
14908
16091
  updateVolume: e.updateVolume
14909
16092
  }),
14910
- /* @__PURE__ */ (0, X.jsx)(r_, { currentSrc: e.currentSrc })
16093
+ /* @__PURE__ */ (0, X.jsx)(x_, { currentSrc: e.currentSrc })
14911
16094
  ]
14912
16095
  })
14913
16096
  ]
14914
16097
  });
14915
16098
  }
14916
- function p_(e) {
16099
+ function j_(e) {
14917
16100
  return /* @__PURE__ */ (0, X.jsxs)(X.Fragment, { children: [
14918
- /* @__PURE__ */ (0, X.jsx)(c_, { timeBack: e.timeBack }),
14919
- /* @__PURE__ */ (0, X.jsx)(o_, {
16101
+ /* @__PURE__ */ (0, X.jsx)(E_, { timeBack: e.timeBack }),
16102
+ /* @__PURE__ */ (0, X.jsx)(w_, {
14920
16103
  paused: e.paused,
14921
16104
  pause: e.pause,
14922
16105
  play: e.play
14923
16106
  }),
14924
- /* @__PURE__ */ (0, X.jsx)(s_, { timeForward: e.timeForward }),
14925
- /* @__PURE__ */ (0, X.jsx)(i_, {
16107
+ /* @__PURE__ */ (0, X.jsx)(T_, { timeForward: e.timeForward }),
16108
+ /* @__PURE__ */ (0, X.jsx)(S_, {
14926
16109
  loop: e.loop,
14927
16110
  updateLoop: e.updateLoop
14928
16111
  }),
14929
- /* @__PURE__ */ (0, X.jsx)(a_, {
16112
+ /* @__PURE__ */ (0, X.jsx)(C_, {
14930
16113
  playbackRate: e.playbackRate,
14931
16114
  playbackSlow: e.playbackSlow,
14932
16115
  playbackNormal: e.playbackNormal,
14933
16116
  playbackFast: e.playbackFast
14934
16117
  }),
14935
- /* @__PURE__ */ (0, X.jsx)(d_, { time: e.timeElapsed }),
14936
- /* @__PURE__ */ (0, X.jsx)(l_, {
16118
+ /* @__PURE__ */ (0, X.jsx)(k_, { time: e.timeElapsed }),
16119
+ /* @__PURE__ */ (0, X.jsx)(D_, {
14937
16120
  duration: e.duration,
14938
16121
  progress: e.progress,
14939
16122
  seek: e.seek
14940
16123
  }),
14941
- /* @__PURE__ */ (0, X.jsx)(d_, { time: e.timeRemaining }),
14942
- /* @__PURE__ */ (0, X.jsx)(u_, {
16124
+ /* @__PURE__ */ (0, X.jsx)(k_, { time: e.timeRemaining }),
16125
+ /* @__PURE__ */ (0, X.jsx)(O_, {
14943
16126
  volume: e.volume,
14944
16127
  updateVolume: e.updateVolume
14945
16128
  }),
14946
- /* @__PURE__ */ (0, X.jsx)(r_, { currentSrc: e.currentSrc })
16129
+ /* @__PURE__ */ (0, X.jsx)(x_, { currentSrc: e.currentSrc })
14947
16130
  ] });
14948
16131
  }
14949
- function m_(e) {
14950
- return Y.isSingleColumn() ? /* @__PURE__ */ (0, X.jsx)(f_, { ...e }) : /* @__PURE__ */ (0, X.jsx)(p_, { ...e });
16132
+ function M_(e) {
16133
+ return Y.isSingleColumn() ? /* @__PURE__ */ (0, X.jsx)(A_, { ...e }) : /* @__PURE__ */ (0, X.jsx)(j_, { ...e });
14951
16134
  }
14952
16135
  //#endregion
14953
16136
  //#region src/components/Media/Controls/AudioControlsNormal.jsx
14954
- var h_ = (e) => /* @__PURE__ */ (0, X.jsxs)(X.Fragment, { children: [
14955
- /* @__PURE__ */ (0, X.jsx)(c_, { timeBack: e.timeBack }),
14956
- /* @__PURE__ */ (0, X.jsx)(o_, {
16137
+ var N_ = (e) => /* @__PURE__ */ (0, X.jsxs)(X.Fragment, { children: [
16138
+ /* @__PURE__ */ (0, X.jsx)(E_, { timeBack: e.timeBack }),
16139
+ /* @__PURE__ */ (0, X.jsx)(w_, {
14957
16140
  paused: e.paused,
14958
16141
  pause: e.pause,
14959
16142
  play: e.play
14960
16143
  }),
14961
- /* @__PURE__ */ (0, X.jsx)(s_, { timeForward: e.timeForward }),
14962
- /* @__PURE__ */ (0, X.jsx)(d_, { time: e.timeElapsed }),
14963
- /* @__PURE__ */ (0, X.jsx)(l_, {
16144
+ /* @__PURE__ */ (0, X.jsx)(T_, { timeForward: e.timeForward }),
16145
+ /* @__PURE__ */ (0, X.jsx)(k_, { time: e.timeElapsed }),
16146
+ /* @__PURE__ */ (0, X.jsx)(D_, {
14964
16147
  duration: e.duration,
14965
16148
  progress: e.progress,
14966
16149
  seek: e.seek
14967
16150
  }),
14968
- /* @__PURE__ */ (0, X.jsx)(d_, { time: e.timeRemaining }),
14969
- /* @__PURE__ */ (0, X.jsx)(u_, {
16151
+ /* @__PURE__ */ (0, X.jsx)(k_, { time: e.timeRemaining }),
16152
+ /* @__PURE__ */ (0, X.jsx)(O_, {
14970
16153
  volume: e.volume,
14971
16154
  updateVolume: e.updateVolume
14972
16155
  })
14973
- ] }), g_ = (e) => /* @__PURE__ */ (0, X.jsxs)(X.Fragment, { children: [
14974
- /* @__PURE__ */ (0, X.jsx)(o_, {
16156
+ ] }), P_ = (e) => /* @__PURE__ */ (0, X.jsxs)(X.Fragment, { children: [
16157
+ /* @__PURE__ */ (0, X.jsx)(w_, {
14975
16158
  paused: e.paused,
14976
16159
  pause: e.pause,
14977
16160
  play: e.play
14978
16161
  }),
14979
- /* @__PURE__ */ (0, X.jsx)(d_, { time: e.timeElapsed }),
14980
- /* @__PURE__ */ (0, X.jsx)(l_, {
16162
+ /* @__PURE__ */ (0, X.jsx)(k_, { time: e.timeElapsed }),
16163
+ /* @__PURE__ */ (0, X.jsx)(D_, {
14981
16164
  duration: e.duration,
14982
16165
  progress: e.progress,
14983
16166
  seek: e.seek
14984
16167
  }),
14985
- /* @__PURE__ */ (0, X.jsx)(d_, { time: e.timeRemaining })
14986
- ] }), __ = ({ config: e, ...t }) => e === "simple" ? /* @__PURE__ */ (0, X.jsx)(g_, { ...t }) : e === "normal" ? /* @__PURE__ */ (0, X.jsx)(h_, { ...t }) : /* @__PURE__ */ (0, X.jsx)(m_, { ...t }), v_ = (e) => /* @__PURE__ */ (0, X.jsx)("button", {
16168
+ /* @__PURE__ */ (0, X.jsx)(k_, { time: e.timeRemaining })
16169
+ ] }), F_ = ({ config: e, ...t }) => e === "simple" ? /* @__PURE__ */ (0, X.jsx)(P_, { ...t }) : e === "normal" ? /* @__PURE__ */ (0, X.jsx)(N_, { ...t }) : /* @__PURE__ */ (0, X.jsx)(M_, { ...t }), I_ = (e) => /* @__PURE__ */ (0, X.jsx)("button", {
14987
16170
  className: "bber-button",
14988
16171
  onClick: e.toggleFullscreen,
14989
16172
  children: "toggleFullscreen"
14990
- }), y_ = (e) => /* @__PURE__ */ (0, X.jsxs)(X.Fragment, { children: [/* @__PURE__ */ (0, X.jsx)(o_, {
16173
+ }), L_ = (e) => /* @__PURE__ */ (0, X.jsxs)(X.Fragment, { children: [/* @__PURE__ */ (0, X.jsx)(w_, {
14991
16174
  paused: e.paused,
14992
16175
  pause: e.pause,
14993
16176
  play: e.play
14994
- }), /* @__PURE__ */ (0, X.jsx)(l_, {
16177
+ }), /* @__PURE__ */ (0, X.jsx)(D_, {
14995
16178
  duration: e.duration,
14996
16179
  progress: e.progress,
14997
16180
  seek: e.seek
14998
- })] }), b_ = (e) => /* @__PURE__ */ (0, X.jsxs)(X.Fragment, { children: [
14999
- /* @__PURE__ */ (0, X.jsx)(y_, { ...e }),
15000
- /* @__PURE__ */ (0, X.jsx)(d_, {
16181
+ })] }), R_ = (e) => /* @__PURE__ */ (0, X.jsxs)(X.Fragment, { children: [
16182
+ /* @__PURE__ */ (0, X.jsx)(L_, { ...e }),
16183
+ /* @__PURE__ */ (0, X.jsx)(k_, {
15001
16184
  timeElapsed: e.timeElapsed,
15002
16185
  timeRemaining: e.timeRemaining
15003
16186
  }),
15004
- /* @__PURE__ */ (0, X.jsx)(u_, {
16187
+ /* @__PURE__ */ (0, X.jsx)(O_, {
15005
16188
  volumeUp: e.volumeUp,
15006
16189
  volumeDown: e.volumeDown
15007
16190
  }),
15008
- /* @__PURE__ */ (0, X.jsx)(v_, { toggleFullscreen: e.toggleFullscreen })
15009
- ] }), x_ = (e) => /* @__PURE__ */ (0, X.jsxs)(X.Fragment, { children: [/* @__PURE__ */ (0, X.jsx)(b_, { ...e }), /* @__PURE__ */ (0, X.jsx)(a_, {
16191
+ /* @__PURE__ */ (0, X.jsx)(I_, { toggleFullscreen: e.toggleFullscreen })
16192
+ ] }), z_ = (e) => /* @__PURE__ */ (0, X.jsxs)(X.Fragment, { children: [/* @__PURE__ */ (0, X.jsx)(R_, { ...e }), /* @__PURE__ */ (0, X.jsx)(C_, {
15010
16193
  playbackSlow: e.playbackSlow,
15011
16194
  playbackNormal: e.playbackNormal,
15012
16195
  playbackFast: e.playbackFast
15013
- })] }), S_ = ({ config: e, ...t }) => e === "simple" ? /* @__PURE__ */ (0, X.jsx)(y_, { ...t }) : e === "normal" ? /* @__PURE__ */ (0, X.jsx)(b_, { ...t }) : /* @__PURE__ */ (0, X.jsx)(x_, { ...t }), C_ = ({ mediaType: e, ...t }) => e === "audio" ? /* @__PURE__ */ (0, X.jsx)(__, {
16196
+ })] }), B_ = ({ config: e, ...t }) => e === "simple" ? /* @__PURE__ */ (0, X.jsx)(L_, { ...t }) : e === "normal" ? /* @__PURE__ */ (0, X.jsx)(R_, { ...t }) : /* @__PURE__ */ (0, X.jsx)(z_, { ...t }), V_ = ({ mediaType: e, ...t }) => e === "audio" ? /* @__PURE__ */ (0, X.jsx)(F_, {
15014
16197
  playbackSlow: t.playbackSlow,
15015
16198
  playbackNormal: t.playbackNormal,
15016
16199
  playbackFast: t.playbackFast,
15017
16200
  ...t
15018
- }) : /* @__PURE__ */ (0, X.jsx)(S_, {
16201
+ }) : /* @__PURE__ */ (0, X.jsx)(B_, {
15019
16202
  playbackSlow: t.playbackSlow,
15020
16203
  playbackNormal: t.playbackNormal,
15021
16204
  playbackFast: t.playbackFast,
15022
16205
  ...t
15023
- }), w_ = class extends t.Component {
16206
+ }), H_ = class extends t.Component {
15024
16207
  playbackSlow = () => this.props.updatePlaybackRate(uo.SLOW);
15025
16208
  playbackNormal = () => this.props.updatePlaybackRate(uo.NORMAL);
15026
16209
  playbackFast = () => this.props.updatePlaybackRate(uo.FAST);
@@ -15028,7 +16211,7 @@ var h_ = (e) => /* @__PURE__ */ (0, X.jsxs)(X.Fragment, { children: [
15028
16211
  let { mediaType: e, config: t } = this.props;
15029
16212
  return t ? /* @__PURE__ */ (0, X.jsx)("div", {
15030
16213
  className: (0, Z.default)("bber-media__controls", `bber-media__controls--${e}`, `bber-media__controls--${t}`),
15031
- children: /* @__PURE__ */ (0, X.jsx)(C_, {
16214
+ children: /* @__PURE__ */ (0, X.jsx)(V_, {
15032
16215
  playbackSlow: this.playbackSlow,
15033
16216
  playbackNormal: this.playbackNormal,
15034
16217
  playbackFast: this.playbackFast,
@@ -15036,7 +16219,7 @@ var h_ = (e) => /* @__PURE__ */ (0, X.jsxs)(X.Fragment, { children: [
15036
16219
  })
15037
16220
  }) : null;
15038
16221
  }
15039
- }, T_ = $g(class e extends t.Component {
16222
+ }, U_ = __(class e extends t.Component {
15040
16223
  static contextType = Io;
15041
16224
  static skipStep = 30;
15042
16225
  state = {
@@ -15172,7 +16355,7 @@ var h_ = (e) => /* @__PURE__ */ (0, X.jsxs)(X.Fragment, { children: [
15172
16355
  handleEnded: this.handleEnded,
15173
16356
  controls: h,
15174
16357
  ...p
15175
- }), /* @__PURE__ */ (0, X.jsx)(w_, {
16358
+ }), /* @__PURE__ */ (0, X.jsx)(H_, {
15176
16359
  config: m,
15177
16360
  mediaType: o,
15178
16361
  play: this.play,
@@ -15196,11 +16379,11 @@ var h_ = (e) => /* @__PURE__ */ (0, X.jsxs)(X.Fragment, { children: [
15196
16379
  loop: this.state.loop
15197
16380
  })] });
15198
16381
  }
15199
- }, { useParentDimensions: !0 }), E_ = (e) => /* @__PURE__ */ (0, X.jsx)(T_, {
16382
+ }, { useParentDimensions: !0 }), W_ = (e) => /* @__PURE__ */ (0, X.jsx)(U_, {
15200
16383
  mediaType: "audio",
15201
- MediaComponent: n_,
16384
+ MediaComponent: b_,
15202
16385
  ...e
15203
- }), D_ = (e, n = { enabled: !1 }) => class extends t.Component {
16386
+ }), G_ = (e, n = { enabled: !1 }) => class extends t.Component {
15204
16387
  iframePlaceholder = t.createRef();
15205
16388
  constructor(e) {
15206
16389
  super(e), this.state = {
@@ -15258,7 +16441,7 @@ var h_ = (e) => /* @__PURE__ */ (0, X.jsxs)(X.Fragment, { children: [
15258
16441
  innerRef: (e) => this.iframePlaceholder = e
15259
16442
  });
15260
16443
  }
15261
- }, O_ = No("chrome", "eq", 81), k_ = $g(D_(class extends t.Component {
16444
+ }, K_ = No("chrome", "eq", 81), q_ = __(G_(class extends t.Component {
15262
16445
  static contextType = Io;
15263
16446
  componentDidMount() {
15264
16447
  window.addEventListener("blur", this.focusWindow);
@@ -15269,7 +16452,7 @@ var h_ = (e) => /* @__PURE__ */ (0, X.jsxs)(X.Fragment, { children: [
15269
16452
  focusWindow = () => setTimeout(() => window.focus(), 60);
15270
16453
  render() {
15271
16454
  let { attrs: e, viewerSettings: t, iframePlaceholderTop: n, iframePlaceholderWidth: r } = this.props, { src: i, title: a, width: o, height: s } = e, c = {};
15272
- if (O_) {
16455
+ if (K_) {
15273
16456
  let e = Y.isSingleColumn(t);
15274
16457
  c = {
15275
16458
  top: n,
@@ -15279,8 +16462,8 @@ var h_ = (e) => /* @__PURE__ */ (0, X.jsxs)(X.Fragment, { children: [
15279
16462
  };
15280
16463
  }
15281
16464
  return /* @__PURE__ */ (0, X.jsxs)(X.Fragment, { children: [
15282
- O_ && /* @__PURE__ */ (0, X.jsx)("style", { children: this.props.iframeStyleBlock("iframe") }),
15283
- O_ && /* @__PURE__ */ (0, X.jsx)("div", {
16465
+ K_ && /* @__PURE__ */ (0, X.jsx)("style", { children: this.props.iframeStyleBlock("iframe") }),
16466
+ K_ && /* @__PURE__ */ (0, X.jsx)("div", {
15284
16467
  style: { paddingTop: s },
15285
16468
  className: "bber-iframe-placeholder",
15286
16469
  ref: this.props.innerRef
@@ -15296,18 +16479,18 @@ var h_ = (e) => /* @__PURE__ */ (0, X.jsxs)(X.Fragment, { children: [
15296
16479
  }, i)
15297
16480
  ] });
15298
16481
  }
15299
- }, { enabled: O_ })), A_ = ({ elementKey: e, elementRef: t, handleLoad: n, handleEnded: r, controls: i, children: a, ...o }) => /* @__PURE__ */ (0, X.jsx)("video", {
16482
+ }, { enabled: K_ })), J_ = ({ elementKey: e, elementRef: t, handleLoad: n, handleEnded: r, controls: i, children: a, ...o }) => /* @__PURE__ */ (0, X.jsx)("video", {
15300
16483
  onLoadedMetadata: n,
15301
16484
  onEnded: r,
15302
16485
  controls: i,
15303
16486
  ref: t,
15304
16487
  ...o,
15305
16488
  children: a
15306
- }, e), j_ = (e) => /* @__PURE__ */ (0, X.jsx)(T_, {
16489
+ }, e), Y_ = (e) => /* @__PURE__ */ (0, X.jsx)(U_, {
15307
16490
  mediaType: "video",
15308
- MediaComponent: A_,
16491
+ MediaComponent: J_,
15309
16492
  ...e
15310
- }), M_ = /* @__PURE__ */ g(((e, t) => {
16493
+ }), X_ = /* @__PURE__ */ g(((e, t) => {
15311
16494
  var n = function(e) {
15312
16495
  return r(e) && !i(e);
15313
16496
  };
@@ -15375,17 +16558,17 @@ var h_ = (e) => /* @__PURE__ */ (0, X.jsxs)(X.Fragment, { children: [
15375
16558
  return g(e, n, t);
15376
16559
  }, {});
15377
16560
  }, t.exports = g;
15378
- })), N_ = /* @__PURE__ */ _({ default: () => I_ });
15379
- function P_(e, t) {
15380
- return !!(e === t || L_(e) && L_(t));
16561
+ })), Z_ = /* @__PURE__ */ _({ default: () => ev });
16562
+ function Q_(e, t) {
16563
+ return !!(e === t || tv(e) && tv(t));
15381
16564
  }
15382
- function F_(e, t) {
16565
+ function $_(e, t) {
15383
16566
  if (e.length !== t.length) return !1;
15384
- for (var n = 0; n < e.length; n++) if (!P_(e[n], t[n])) return !1;
16567
+ for (var n = 0; n < e.length; n++) if (!Q_(e[n], t[n])) return !1;
15385
16568
  return !0;
15386
16569
  }
15387
- function I_(e, t) {
15388
- t === void 0 && (t = F_);
16570
+ function ev(e, t) {
16571
+ t === void 0 && (t = $_);
15389
16572
  var n, r = [], i, a = !1;
15390
16573
  function o() {
15391
16574
  var o = [...arguments];
@@ -15393,11 +16576,11 @@ function I_(e, t) {
15393
16576
  }
15394
16577
  return o;
15395
16578
  }
15396
- var L_, R_ = h((() => {
15397
- L_ = Number.isNaN || function(e) {
16579
+ var tv, nv = h((() => {
16580
+ tv = Number.isNaN || function(e) {
15398
16581
  return typeof e == "number" && e !== e;
15399
16582
  };
15400
- })), z_ = /* @__PURE__ */ g(((e, t) => {
16583
+ })), rv = /* @__PURE__ */ g(((e, t) => {
15401
16584
  var n = typeof Element < "u", r = typeof Map == "function", i = typeof Set == "function", a = typeof ArrayBuffer == "function" && !!ArrayBuffer.isView;
15402
16585
  function o(e, t) {
15403
16586
  if (e === t) return !0;
@@ -15445,7 +16628,7 @@ var L_, R_ = h((() => {
15445
16628
  throw e;
15446
16629
  }
15447
16630
  };
15448
- })), B_ = /* @__PURE__ */ g(((e) => {
16631
+ })), iv = /* @__PURE__ */ g(((e) => {
15449
16632
  var t = typeof Symbol == "function" && Symbol.for, n = t ? Symbol.for("react.element") : 60103, r = t ? Symbol.for("react.portal") : 60106, i = t ? Symbol.for("react.fragment") : 60107, a = t ? Symbol.for("react.strict_mode") : 60108, o = t ? Symbol.for("react.profiler") : 60114, s = t ? Symbol.for("react.provider") : 60109, c = t ? Symbol.for("react.context") : 60110, l = t ? Symbol.for("react.async_mode") : 60111, u = t ? Symbol.for("react.concurrent_mode") : 60111, d = t ? Symbol.for("react.forward_ref") : 60112, f = t ? Symbol.for("react.suspense") : 60113, p = t ? Symbol.for("react.suspense_list") : 60120, m = t ? Symbol.for("react.memo") : 60115, h = t ? Symbol.for("react.lazy") : 60116, g = t ? Symbol.for("react.block") : 60121, _ = t ? Symbol.for("react.fundamental") : 60117, v = t ? Symbol.for("react.responder") : 60118, y = t ? Symbol.for("react.scope") : 60119;
15450
16633
  function b(e) {
15451
16634
  if (typeof e == "object" && e) {
@@ -15501,7 +16684,7 @@ var L_, R_ = h((() => {
15501
16684
  }, e.isValidElementType = function(e) {
15502
16685
  return typeof e == "string" || typeof e == "function" || e === i || e === u || e === o || e === a || e === f || e === p || typeof e == "object" && !!e && (e.$$typeof === h || e.$$typeof === m || e.$$typeof === s || e.$$typeof === c || e.$$typeof === d || e.$$typeof === _ || e.$$typeof === v || e.$$typeof === y || e.$$typeof === g);
15503
16686
  }, e.typeOf = b;
15504
- })), V_ = /* @__PURE__ */ g(((e) => {
16687
+ })), av = /* @__PURE__ */ g(((e) => {
15505
16688
  process.env.NODE_ENV !== "production" && (function() {
15506
16689
  var t = typeof Symbol == "function" && Symbol.for, n = t ? Symbol.for("react.element") : 60103, r = t ? Symbol.for("react.portal") : 60106, i = t ? Symbol.for("react.fragment") : 60107, a = t ? Symbol.for("react.strict_mode") : 60108, o = t ? Symbol.for("react.profiler") : 60114, s = t ? Symbol.for("react.provider") : 60109, c = t ? Symbol.for("react.context") : 60110, l = t ? Symbol.for("react.async_mode") : 60111, u = t ? Symbol.for("react.concurrent_mode") : 60111, d = t ? Symbol.for("react.forward_ref") : 60112, f = t ? Symbol.for("react.suspense") : 60113, p = t ? Symbol.for("react.suspense_list") : 60120, m = t ? Symbol.for("react.memo") : 60115, h = t ? Symbol.for("react.lazy") : 60116, g = t ? Symbol.for("react.block") : 60121, _ = t ? Symbol.for("react.fundamental") : 60117, v = t ? Symbol.for("react.responder") : 60118, y = t ? Symbol.for("react.scope") : 60119;
15507
16690
  function b(e) {
@@ -15577,9 +16760,9 @@ var L_, R_ = h((() => {
15577
16760
  }
15578
16761
  e.AsyncMode = S, e.ConcurrentMode = C, e.ContextConsumer = w, e.ContextProvider = T, e.Element = E, e.ForwardRef = D, e.Fragment = O, e.Lazy = k, e.Memo = A, e.Portal = j, e.Profiler = M, e.StrictMode = N, e.Suspense = P, e.isAsyncMode = I, e.isConcurrentMode = L, e.isContextConsumer = R, e.isContextProvider = z, e.isElement = B, e.isForwardRef = ee, e.isFragment = te, e.isLazy = ne, e.isMemo = re, e.isPortal = ie, e.isProfiler = ae, e.isStrictMode = oe, e.isSuspense = se, e.isValidElementType = b, e.typeOf = x;
15579
16762
  })();
15580
- })), H_ = /* @__PURE__ */ g(((e, t) => {
15581
- process.env.NODE_ENV === "production" ? t.exports = B_() : t.exports = V_();
15582
- })), U_ = /* @__PURE__ */ g(((e, t) => {
16763
+ })), ov = /* @__PURE__ */ g(((e, t) => {
16764
+ process.env.NODE_ENV === "production" ? t.exports = iv() : t.exports = av();
16765
+ })), sv = /* @__PURE__ */ g(((e, t) => {
15583
16766
  var n = Object.getOwnPropertySymbols, r = Object.prototype.hasOwnProperty, i = Object.prototype.propertyIsEnumerable;
15584
16767
  function a(e) {
15585
16768
  if (e == null) throw TypeError("Object.assign cannot be called with null or undefined");
@@ -15612,14 +16795,14 @@ var L_, R_ = h((() => {
15612
16795
  }
15613
16796
  return s;
15614
16797
  };
15615
- })), W_ = /* @__PURE__ */ g(((e, t) => {
16798
+ })), cv = /* @__PURE__ */ g(((e, t) => {
15616
16799
  t.exports = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
15617
- })), G_ = /* @__PURE__ */ g(((e, t) => {
16800
+ })), lv = /* @__PURE__ */ g(((e, t) => {
15618
16801
  t.exports = Function.call.bind(Object.prototype.hasOwnProperty);
15619
- })), K_ = /* @__PURE__ */ g(((e, t) => {
16802
+ })), uv = /* @__PURE__ */ g(((e, t) => {
15620
16803
  var n = function() {};
15621
16804
  if (process.env.NODE_ENV !== "production") {
15622
- var r = W_(), i = {}, a = G_();
16805
+ var r = cv(), i = {}, a = lv();
15623
16806
  n = function(e) {
15624
16807
  var t = "Warning: " + e;
15625
16808
  typeof console < "u" && console.error(t);
@@ -15652,8 +16835,8 @@ var L_, R_ = h((() => {
15652
16835
  o.resetWarningCache = function() {
15653
16836
  process.env.NODE_ENV !== "production" && (i = {});
15654
16837
  }, t.exports = o;
15655
- })), q_ = /* @__PURE__ */ g(((e, t) => {
15656
- var n = H_(), r = U_(), i = W_(), a = G_(), o = K_(), s = function() {};
16838
+ })), dv = /* @__PURE__ */ g(((e, t) => {
16839
+ var n = ov(), r = sv(), i = cv(), a = lv(), o = uv(), s = function() {};
15657
16840
  process.env.NODE_ENV !== "production" && (s = function(e) {
15658
16841
  var t = "Warning: " + e;
15659
16842
  typeof console < "u" && console.error(t);
@@ -15911,8 +17094,8 @@ var L_, R_ = h((() => {
15911
17094
  }
15912
17095
  return p.checkPropTypes = o, p.resetWarningCache = o.resetWarningCache, p.PropTypes = p, p;
15913
17096
  };
15914
- })), J_ = /* @__PURE__ */ g(((e, t) => {
15915
- var n = W_();
17097
+ })), fv = /* @__PURE__ */ g(((e, t) => {
17098
+ var n = cv();
15916
17099
  function r() {}
15917
17100
  function i() {}
15918
17101
  i.resetWarningCache = r, t.exports = function() {
@@ -15951,14 +17134,14 @@ var L_, R_ = h((() => {
15951
17134
  };
15952
17135
  return a.PropTypes = a, a;
15953
17136
  };
15954
- })), Y_ = /* @__PURE__ */ g(((e, t) => {
17137
+ })), pv = /* @__PURE__ */ g(((e, t) => {
15955
17138
  if (process.env.NODE_ENV !== "production") {
15956
- var n = H_();
15957
- t.exports = q_()(n.isElement, !0);
15958
- } else t.exports = J_()();
15959
- })), X_ = /* @__PURE__ */ g(((e) => {
17139
+ var n = ov();
17140
+ t.exports = dv()(n.isElement, !0);
17141
+ } else t.exports = fv()();
17142
+ })), mv = /* @__PURE__ */ g(((e) => {
15960
17143
  Object.defineProperty(e, "__esModule", { value: !0 }), e.defaultProps = e.propTypes = void 0;
15961
- var t = n(Y_());
17144
+ var t = n(pv());
15962
17145
  function n(e) {
15963
17146
  return e && e.__esModule ? e : { default: e };
15964
17147
  }
@@ -16156,7 +17339,7 @@ var L_, R_ = h((() => {
16156
17339
  onEnablePIP: f,
16157
17340
  onDisablePIP: f
16158
17341
  };
16159
- })), Z_ = /* @__PURE__ */ g(((e, t) => {
17342
+ })), hv = /* @__PURE__ */ g(((e, t) => {
16160
17343
  t.exports = function(e, t, a) {
16161
17344
  var o = document.head || document.getElementsByTagName("head")[0], s = document.createElement("script");
16162
17345
  typeof t == "function" && (a = t, t = {}), t ||= {}, a ||= function() {}, s.type = t.type || "text/javascript", s.charset = t.charset || "utf8", s.async = "async" in t ? !!t.async : !0, s.src = e, t.attrs && n(s, t.attrs), t.text && (s.text = "" + t.text), ("onload" in s ? r : i)(s, a), s.onload || r(s, a), o.appendChild(s);
@@ -16176,9 +17359,9 @@ var L_, R_ = h((() => {
16176
17359
  this.readyState != "complete" && this.readyState != "loaded" || (this.onreadystatechange = null, t(null, e));
16177
17360
  };
16178
17361
  }
16179
- })), Q_ = /* @__PURE__ */ g(((e) => {
17362
+ })), gv = /* @__PURE__ */ g(((e) => {
16180
17363
  Object.defineProperty(e, "__esModule", { value: !0 }), e.parseStartTime = g, e.parseEndTime = _, e.randomString = v, e.queryString = y, e.getSDK = S, e.getConfig = C, e.omit = w, e.callPlayer = T, e.isMediaStream = E, e.isBlobUrl = D, e.supportsWebKitPresentationMode = O;
16181
- var t = r(Z_()), n = r(M_());
17364
+ var t = r(hv()), n = r(X_());
16182
17365
  function r(e) {
16183
17366
  return e && e.__esModule ? e : { default: e };
16184
17367
  }
@@ -16320,7 +17503,7 @@ var L_, R_ = h((() => {
16320
17503
  var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : document.createElement("video"), t = /iPhone|iPod/.test(navigator.userAgent) === !1;
16321
17504
  return e.webkitSupportsPresentationMode && typeof e.webkitSetPresentationMode == "function" && t;
16322
17505
  }
16323
- })), $_ = /* @__PURE__ */ g(((e) => {
17506
+ })), _v = /* @__PURE__ */ g(((e) => {
16324
17507
  function t(e) {
16325
17508
  "@babel/helpers - typeof";
16326
17509
  return t = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
@@ -16330,7 +17513,7 @@ var L_, R_ = h((() => {
16330
17513
  }, t(e);
16331
17514
  }
16332
17515
  Object.defineProperty(e, "__esModule", { value: !0 }), e.default = void 0;
16333
- var n = c(x("react")), r = o(z_()), i = X_(), a = Q_();
17516
+ var n = c(x("react")), r = o(rv()), i = mv(), a = gv();
16334
17517
  function o(e) {
16335
17518
  return e && e.__esModule ? e : { default: e };
16336
17519
  }
@@ -16570,7 +17753,7 @@ var L_, R_ = h((() => {
16570
17753
  ]), i;
16571
17754
  }(n.Component);
16572
17755
  e.default = C, b(C, "displayName", "Player"), b(C, "propTypes", i.propTypes), b(C, "defaultProps", i.defaultProps);
16573
- })), ev = /* @__PURE__ */ g(((e) => {
17756
+ })), vv = /* @__PURE__ */ g(((e) => {
16574
17757
  function t(e) {
16575
17758
  "@babel/helpers - typeof";
16576
17759
  return t = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
@@ -16789,9 +17972,9 @@ var L_, R_ = h((() => {
16789
17972
  }
16790
17973
  ]), r;
16791
17974
  }(n.Component);
16792
- })), tv = /* @__PURE__ */ g(((e) => {
17975
+ })), yv = /* @__PURE__ */ g(((e) => {
16793
17976
  Object.defineProperty(e, "__esModule", { value: !0 }), e.createReactPlayer = void 0;
16794
- var t = N(x("react")), n = c(M_()), r = c((R_(), b(N_))), i = c(z_()), a = X_(), o = Q_(), s = c($_());
17977
+ var t = N(x("react")), n = c(X_()), r = c((nv(), b(Z_))), i = c(rv()), a = mv(), o = gv(), s = c(_v());
16795
17978
  function c(e) {
16796
17979
  return e && e.__esModule ? e : { default: e };
16797
17980
  }
@@ -16944,7 +18127,7 @@ var L_, R_ = h((() => {
16944
18127
  }
16945
18128
  var P = /*#__PURE__*/ (0, t.lazy)(function() {
16946
18129
  return Promise.resolve().then(function() {
16947
- return N(ev());
18130
+ return N(vv());
16948
18131
  });
16949
18132
  }), F = typeof window < "u" && window.document, I = typeof global < "u" && global.window && global.window.document, L = Object.keys(a.propTypes), R = F || I ? t.Suspense : function() {
16950
18133
  return null;
@@ -17071,9 +18254,9 @@ var L_, R_ = h((() => {
17071
18254
  return !1;
17072
18255
  }), u;
17073
18256
  };
17074
- })), nv = /* @__PURE__ */ g(((e) => {
18257
+ })), bv = /* @__PURE__ */ g(((e) => {
17075
18258
  Object.defineProperty(e, "__esModule", { value: !0 }), e.canPlay = e.FLV_EXTENSIONS = e.DASH_EXTENSIONS = e.HLS_EXTENSIONS = e.VIDEO_EXTENSIONS = e.AUDIO_EXTENSIONS = e.MATCH_URL_KALTURA = e.MATCH_URL_VIDYARD = e.MATCH_URL_MIXCLOUD = e.MATCH_URL_DAILYMOTION = e.MATCH_URL_TWITCH_CHANNEL = e.MATCH_URL_TWITCH_VIDEO = e.MATCH_URL_WISTIA = e.MATCH_URL_STREAMABLE = e.MATCH_URL_FACEBOOK_WATCH = e.MATCH_URL_FACEBOOK = e.MATCH_URL_VIMEO = e.MATCH_URL_SOUNDCLOUD = e.MATCH_URL_YOUTUBE = void 0;
17076
- var t = Q_();
18259
+ var t = gv();
17077
18260
  function n(e, t) {
17078
18261
  var n;
17079
18262
  if (typeof Symbol > "u" || e[Symbol.iterator] == null) {
@@ -17219,7 +18402,7 @@ var L_, R_ = h((() => {
17219
18402
  return (0, t.isMediaStream)(r) || (0, t.isBlobUrl)(r) ? !0 : v.test(r) || y.test(r) || b.test(r) || x.test(r) || S.test(r);
17220
18403
  }
17221
18404
  };
17222
- })), rv = /* @__PURE__ */ g(((e) => {
18405
+ })), xv = /* @__PURE__ */ g(((e) => {
17223
18406
  function t(e) {
17224
18407
  "@babel/helpers - typeof";
17225
18408
  return t = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
@@ -17229,7 +18412,7 @@ var L_, R_ = h((() => {
17229
18412
  }, t(e);
17230
18413
  }
17231
18414
  Object.defineProperty(e, "__esModule", { value: !0 }), e.default = void 0;
17232
- var n = o(x("react")), r = Q_(), i = nv();
18415
+ var n = o(x("react")), r = gv(), i = bv();
17233
18416
  function a() {
17234
18417
  if (typeof WeakMap != "function") return null;
17235
18418
  var e = /* @__PURE__ */ new WeakMap();
@@ -17480,20 +18663,20 @@ var L_, R_ = h((() => {
17480
18663
  ]), i;
17481
18664
  }(n.Component);
17482
18665
  e.default = C, y(C, "displayName", "Vimeo"), y(C, "canPlay", i.canPlay.vimeo), y(C, "forceLoad", !0);
17483
- })), iv = /* @__PURE__ */ g(((e, t) => {
17484
- var n = tv().createReactPlayer, r = rv().default;
18666
+ })), Sv = /* @__PURE__ */ g(((e, t) => {
18667
+ var n = yv().createReactPlayer, r = xv().default;
17485
18668
  t.exports = n([{
17486
18669
  key: "vimeo",
17487
18670
  canPlay: r.canPlay,
17488
18671
  lazyPlayer: r
17489
18672
  }]);
17490
- })), av = /* @__PURE__ */ g(((e, t) => {
18673
+ })), Cv = /* @__PURE__ */ g(((e, t) => {
17491
18674
  function n(e, t) {
17492
18675
  for (var n = -1, r = e == null ? 0 : e.length; ++n < r && t(e[n], n, e) !== !1;);
17493
18676
  return e;
17494
18677
  }
17495
18678
  t.exports = n;
17496
- })), ov = /* @__PURE__ */ g(((e, t) => {
18679
+ })), wv = /* @__PURE__ */ g(((e, t) => {
17497
18680
  var n = Gt();
17498
18681
  t.exports = function() {
17499
18682
  try {
@@ -17501,8 +18684,8 @@ var L_, R_ = h((() => {
17501
18684
  return e({}, "", {}), e;
17502
18685
  } catch {}
17503
18686
  }();
17504
- })), sv = /* @__PURE__ */ g(((e, t) => {
17505
- var n = ov();
18687
+ })), Tv = /* @__PURE__ */ g(((e, t) => {
18688
+ var n = wv();
17506
18689
  function r(e, t, r) {
17507
18690
  t == "__proto__" && n ? n(e, t, {
17508
18691
  configurable: !0,
@@ -17512,15 +18695,15 @@ var L_, R_ = h((() => {
17512
18695
  }) : e[t] = r;
17513
18696
  }
17514
18697
  t.exports = r;
17515
- })), cv = /* @__PURE__ */ g(((e, t) => {
17516
- var n = sv(), r = xt(), i = Object.prototype.hasOwnProperty;
18698
+ })), Ev = /* @__PURE__ */ g(((e, t) => {
18699
+ var n = Tv(), r = xt(), i = Object.prototype.hasOwnProperty;
17517
18700
  function a(e, t, a) {
17518
18701
  var o = e[t];
17519
18702
  (!(i.call(e, t) && r(o, a)) || a === void 0 && !(t in e)) && n(e, t, a);
17520
18703
  }
17521
18704
  t.exports = a;
17522
- })), lv = /* @__PURE__ */ g(((e, t) => {
17523
- var n = cv(), r = sv();
18705
+ })), Dv = /* @__PURE__ */ g(((e, t) => {
18706
+ var n = Ev(), r = Tv();
17524
18707
  function i(e, t, i, a) {
17525
18708
  var o = !i;
17526
18709
  i ||= {};
@@ -17531,21 +18714,21 @@ var L_, R_ = h((() => {
17531
18714
  return i;
17532
18715
  }
17533
18716
  t.exports = i;
17534
- })), uv = /* @__PURE__ */ g(((e, t) => {
17535
- var n = lv(), r = Gn();
18717
+ })), Ov = /* @__PURE__ */ g(((e, t) => {
18718
+ var n = Dv(), r = Gn();
17536
18719
  function i(e, t) {
17537
18720
  return e && n(t, r(t), e);
17538
18721
  }
17539
18722
  t.exports = i;
17540
- })), dv = /* @__PURE__ */ g(((e, t) => {
18723
+ })), kv = /* @__PURE__ */ g(((e, t) => {
17541
18724
  function n(e) {
17542
18725
  var t = [];
17543
18726
  if (e != null) for (var n in Object(e)) t.push(n);
17544
18727
  return t;
17545
18728
  }
17546
18729
  t.exports = n;
17547
- })), fv = /* @__PURE__ */ g(((e, t) => {
17548
- var n = Rt(), r = Bn(), i = dv(), a = Object.prototype.hasOwnProperty;
18730
+ })), Av = /* @__PURE__ */ g(((e, t) => {
18731
+ var n = Rt(), r = Bn(), i = kv(), a = Object.prototype.hasOwnProperty;
17549
18732
  function o(e) {
17550
18733
  if (!n(e)) return i(e);
17551
18734
  var t = r(e), o = [];
@@ -17553,19 +18736,19 @@ var L_, R_ = h((() => {
17553
18736
  return o;
17554
18737
  }
17555
18738
  t.exports = o;
17556
- })), pv = /* @__PURE__ */ g(((e, t) => {
17557
- var n = zn(), r = fv(), i = Wn();
18739
+ })), jv = /* @__PURE__ */ g(((e, t) => {
18740
+ var n = zn(), r = Av(), i = Wn();
17558
18741
  function a(e) {
17559
18742
  return i(e) ? n(e, !0) : r(e);
17560
18743
  }
17561
18744
  t.exports = a;
17562
- })), mv = /* @__PURE__ */ g(((e, t) => {
17563
- var n = lv(), r = pv();
18745
+ })), Mv = /* @__PURE__ */ g(((e, t) => {
18746
+ var n = Dv(), r = jv();
17564
18747
  function i(e, t) {
17565
18748
  return e && n(t, r(t), e);
17566
18749
  }
17567
18750
  t.exports = i;
17568
- })), hv = /* @__PURE__ */ g(((e, t) => {
18751
+ })), Nv = /* @__PURE__ */ g(((e, t) => {
17569
18752
  var n = Nt(), r = typeof e == "object" && e && !e.nodeType && e, i = r && typeof t == "object" && t && !t.nodeType && t, a = i && i.exports === r ? n.Buffer : void 0, o = a ? a.allocUnsafe : void 0;
17570
18753
  function s(e, t) {
17571
18754
  if (t) return e.slice();
@@ -17573,80 +18756,80 @@ var L_, R_ = h((() => {
17573
18756
  return e.copy(r), r;
17574
18757
  }
17575
18758
  t.exports = s;
17576
- })), gv = /* @__PURE__ */ g(((e, t) => {
18759
+ })), Pv = /* @__PURE__ */ g(((e, t) => {
17577
18760
  function n(e, t) {
17578
18761
  var n = -1, r = e.length;
17579
18762
  for (t ||= Array(r); ++n < r;) t[n] = e[n];
17580
18763
  return t;
17581
18764
  }
17582
18765
  t.exports = n;
17583
- })), _v = /* @__PURE__ */ g(((e, t) => {
17584
- var n = lv(), r = En();
18766
+ })), Fv = /* @__PURE__ */ g(((e, t) => {
18767
+ var n = Dv(), r = En();
17585
18768
  function i(e, t) {
17586
18769
  return n(e, r(e), t);
17587
18770
  }
17588
18771
  t.exports = i;
17589
- })), vv = /* @__PURE__ */ g(((e, t) => {
18772
+ })), Iv = /* @__PURE__ */ g(((e, t) => {
17590
18773
  var n = xn(), r = Ir(), i = En(), a = Tn();
17591
18774
  t.exports = Object.getOwnPropertySymbols ? function(e) {
17592
18775
  for (var t = []; e;) n(t, i(e)), e = r(e);
17593
18776
  return t;
17594
18777
  } : a;
17595
- })), yv = /* @__PURE__ */ g(((e, t) => {
17596
- var n = lv(), r = vv();
18778
+ })), Lv = /* @__PURE__ */ g(((e, t) => {
18779
+ var n = Dv(), r = Iv();
17597
18780
  function i(e, t) {
17598
18781
  return n(e, r(e), t);
17599
18782
  }
17600
18783
  t.exports = i;
17601
- })), bv = /* @__PURE__ */ g(((e, t) => {
17602
- var n = Cn(), r = vv(), i = pv();
18784
+ })), Rv = /* @__PURE__ */ g(((e, t) => {
18785
+ var n = Cn(), r = Iv(), i = jv();
17603
18786
  function a(e) {
17604
18787
  return n(e, i, r);
17605
18788
  }
17606
18789
  t.exports = a;
17607
- })), xv = /* @__PURE__ */ g(((e, t) => {
18790
+ })), zv = /* @__PURE__ */ g(((e, t) => {
17608
18791
  var n = Object.prototype.hasOwnProperty;
17609
18792
  function r(e) {
17610
18793
  var t = e.length, r = new e.constructor(t);
17611
18794
  return t && typeof e[0] == "string" && n.call(e, "index") && (r.index = e.index, r.input = e.input), r;
17612
18795
  }
17613
18796
  t.exports = r;
17614
- })), Sv = /* @__PURE__ */ g(((e, t) => {
18797
+ })), Bv = /* @__PURE__ */ g(((e, t) => {
17615
18798
  var n = _n();
17616
18799
  function r(e) {
17617
18800
  var t = new e.constructor(e.byteLength);
17618
18801
  return new n(t).set(new n(e)), t;
17619
18802
  }
17620
18803
  t.exports = r;
17621
- })), Cv = /* @__PURE__ */ g(((e, t) => {
17622
- var n = Sv();
18804
+ })), Vv = /* @__PURE__ */ g(((e, t) => {
18805
+ var n = Bv();
17623
18806
  function r(e, t) {
17624
18807
  var r = t ? n(e.buffer) : e.buffer;
17625
18808
  return new e.constructor(r, e.byteOffset, e.byteLength);
17626
18809
  }
17627
18810
  t.exports = r;
17628
- })), wv = /* @__PURE__ */ g(((e, t) => {
18811
+ })), Hv = /* @__PURE__ */ g(((e, t) => {
17629
18812
  var n = /\w*$/;
17630
18813
  function r(e) {
17631
18814
  var t = new e.constructor(e.source, n.exec(e));
17632
18815
  return t.lastIndex = e.lastIndex, t;
17633
18816
  }
17634
18817
  t.exports = r;
17635
- })), Tv = /* @__PURE__ */ g(((e, t) => {
18818
+ })), Uv = /* @__PURE__ */ g(((e, t) => {
17636
18819
  var n = Pt(), r = n ? n.prototype : void 0, i = r ? r.valueOf : void 0;
17637
18820
  function a(e) {
17638
18821
  return i ? Object(i.call(e)) : {};
17639
18822
  }
17640
18823
  t.exports = a;
17641
- })), Ev = /* @__PURE__ */ g(((e, t) => {
17642
- var n = Sv();
18824
+ })), Wv = /* @__PURE__ */ g(((e, t) => {
18825
+ var n = Bv();
17643
18826
  function r(e, t) {
17644
18827
  var r = t ? n(e.buffer) : e.buffer;
17645
18828
  return new e.constructor(r, e.byteOffset, e.length);
17646
18829
  }
17647
18830
  t.exports = r;
17648
- })), Dv = /* @__PURE__ */ g(((e, t) => {
17649
- var n = Sv(), r = Cv(), i = wv(), a = Tv(), o = Ev(), s = "[object Boolean]", c = "[object Date]", l = "[object Map]", u = "[object Number]", d = "[object RegExp]", f = "[object Set]", p = "[object String]", m = "[object Symbol]", h = "[object ArrayBuffer]", g = "[object DataView]", _ = "[object Float32Array]", v = "[object Float64Array]", y = "[object Int8Array]", b = "[object Int16Array]", x = "[object Int32Array]", S = "[object Uint8Array]", C = "[object Uint8ClampedArray]", w = "[object Uint16Array]", T = "[object Uint32Array]";
18831
+ })), Gv = /* @__PURE__ */ g(((e, t) => {
18832
+ var n = Bv(), r = Vv(), i = Hv(), a = Uv(), o = Wv(), s = "[object Boolean]", c = "[object Date]", l = "[object Map]", u = "[object Number]", d = "[object RegExp]", f = "[object Set]", p = "[object String]", m = "[object Symbol]", h = "[object ArrayBuffer]", g = "[object DataView]", _ = "[object Float32Array]", v = "[object Float64Array]", y = "[object Int8Array]", b = "[object Int16Array]", x = "[object Int32Array]", S = "[object Uint8Array]", C = "[object Uint8ClampedArray]", w = "[object Uint16Array]", T = "[object Uint32Array]";
17650
18833
  function E(e, t, E) {
17651
18834
  var D = e.constructor;
17652
18835
  switch (t) {
@@ -17672,7 +18855,7 @@ var L_, R_ = h((() => {
17672
18855
  }
17673
18856
  }
17674
18857
  t.exports = E;
17675
- })), Ov = /* @__PURE__ */ g(((e, t) => {
18858
+ })), Kv = /* @__PURE__ */ g(((e, t) => {
17676
18859
  var n = Rt(), r = Object.create;
17677
18860
  t.exports = function() {
17678
18861
  function e() {}
@@ -17684,32 +18867,32 @@ var L_, R_ = h((() => {
17684
18867
  return e.prototype = void 0, i;
17685
18868
  };
17686
18869
  }();
17687
- })), kv = /* @__PURE__ */ g(((e, t) => {
17688
- var n = Ov(), r = Ir(), i = Bn();
18870
+ })), qv = /* @__PURE__ */ g(((e, t) => {
18871
+ var n = Kv(), r = Ir(), i = Bn();
17689
18872
  function a(e) {
17690
18873
  return typeof e.constructor == "function" && !i(e) ? n(r(e)) : {};
17691
18874
  }
17692
18875
  t.exports = a;
17693
- })), Av = /* @__PURE__ */ g(((e, t) => {
18876
+ })), Jv = /* @__PURE__ */ g(((e, t) => {
17694
18877
  var n = Qn(), r = On(), i = "[object Map]";
17695
18878
  function a(e) {
17696
18879
  return r(e) && n(e) == i;
17697
18880
  }
17698
18881
  t.exports = a;
17699
- })), jv = /* @__PURE__ */ g(((e, t) => {
17700
- var n = Av(), r = In(), i = Ln(), a = i && i.isMap;
18882
+ })), Yv = /* @__PURE__ */ g(((e, t) => {
18883
+ var n = Jv(), r = In(), i = Ln(), a = i && i.isMap;
17701
18884
  t.exports = a ? r(a) : n;
17702
- })), Mv = /* @__PURE__ */ g(((e, t) => {
18885
+ })), Xv = /* @__PURE__ */ g(((e, t) => {
17703
18886
  var n = Qn(), r = On(), i = "[object Set]";
17704
18887
  function a(e) {
17705
18888
  return r(e) && n(e) == i;
17706
18889
  }
17707
18890
  t.exports = a;
17708
- })), Nv = /* @__PURE__ */ g(((e, t) => {
17709
- var n = Mv(), r = In(), i = Ln(), a = i && i.isSet;
18891
+ })), Zv = /* @__PURE__ */ g(((e, t) => {
18892
+ var n = Xv(), r = In(), i = Ln(), a = i && i.isSet;
17710
18893
  t.exports = a ? r(a) : n;
17711
- })), Pv = /* @__PURE__ */ g(((e, t) => {
17712
- var n = un(), r = av(), i = cv(), a = uv(), o = mv(), s = hv(), c = gv(), l = _v(), u = yv(), d = Kn(), f = bv(), p = Qn(), m = xv(), h = Dv(), g = kv(), _ = Sn(), v = Mn(), y = jv(), b = Rt(), x = Nv(), S = Gn(), C = pv(), w = 1, T = 2, E = 4, D = "[object Arguments]", O = "[object Array]", k = "[object Boolean]", A = "[object Date]", j = "[object Error]", M = "[object Function]", N = "[object GeneratorFunction]", P = "[object Map]", F = "[object Number]", I = "[object Object]", L = "[object RegExp]", R = "[object Set]", z = "[object String]", B = "[object Symbol]", ee = "[object WeakMap]", te = "[object ArrayBuffer]", ne = "[object DataView]", re = "[object Float32Array]", ie = "[object Float64Array]", ae = "[object Int8Array]", oe = "[object Int16Array]", se = "[object Int32Array]", ce = "[object Uint8Array]", le = "[object Uint8ClampedArray]", ue = "[object Uint16Array]", de = "[object Uint32Array]", V = {};
18894
+ })), Qv = /* @__PURE__ */ g(((e, t) => {
18895
+ var n = un(), r = Cv(), i = Ev(), a = Ov(), o = Mv(), s = Nv(), c = Pv(), l = Fv(), u = Lv(), d = Kn(), f = Rv(), p = Qn(), m = zv(), h = Gv(), g = qv(), _ = Sn(), v = Mn(), y = Yv(), b = Rt(), x = Zv(), S = Gn(), C = jv(), w = 1, T = 2, E = 4, D = "[object Arguments]", O = "[object Array]", k = "[object Boolean]", A = "[object Date]", j = "[object Error]", M = "[object Function]", N = "[object GeneratorFunction]", P = "[object Map]", F = "[object Number]", I = "[object Object]", L = "[object RegExp]", R = "[object Set]", z = "[object String]", B = "[object Symbol]", ee = "[object WeakMap]", te = "[object ArrayBuffer]", ne = "[object DataView]", re = "[object Float32Array]", ie = "[object Float64Array]", ae = "[object Int8Array]", oe = "[object Int16Array]", se = "[object Int32Array]", ce = "[object Uint8Array]", le = "[object Uint8ClampedArray]", ue = "[object Uint16Array]", de = "[object Uint32Array]", V = {};
17713
18896
  V[D] = V[O] = V[te] = V[ne] = V[k] = V[A] = V[re] = V[ie] = V[ae] = V[oe] = V[se] = V[P] = V[F] = V[I] = V[L] = V[R] = V[z] = V[B] = V[ce] = V[le] = V[ue] = V[de] = !0, V[j] = V[M] = V[ee] = !1;
17714
18897
  function fe(e, t, O, k, A, j) {
17715
18898
  var P, F = t & w, L = t & T, R = t & E;
@@ -17742,38 +18925,38 @@ var L_, R_ = h((() => {
17742
18925
  }), P;
17743
18926
  }
17744
18927
  t.exports = fe;
17745
- })), Fv = /* @__PURE__ */ g(((e, t) => {
18928
+ })), $v = /* @__PURE__ */ g(((e, t) => {
17746
18929
  function n(e) {
17747
18930
  var t = e == null ? 0 : e.length;
17748
18931
  return t ? e[t - 1] : void 0;
17749
18932
  }
17750
18933
  t.exports = n;
17751
- })), Iv = /* @__PURE__ */ g(((e, t) => {
18934
+ })), ey = /* @__PURE__ */ g(((e, t) => {
17752
18935
  var n = gr(), r = Vr();
17753
18936
  function i(e, t) {
17754
18937
  return t.length < 2 ? e : n(e, r(t, 0, -1));
17755
18938
  }
17756
18939
  t.exports = i;
17757
- })), Lv = /* @__PURE__ */ g(((e, t) => {
17758
- var n = mr(), r = Fv(), i = Iv(), a = hr();
18940
+ })), ty = /* @__PURE__ */ g(((e, t) => {
18941
+ var n = mr(), r = $v(), i = ey(), a = hr();
17759
18942
  function o(e, t) {
17760
18943
  return t = n(t, e), e = i(e, t), e == null || delete e[a(r(t))];
17761
18944
  }
17762
18945
  t.exports = o;
17763
- })), Rv = /* @__PURE__ */ g(((e, t) => {
18946
+ })), ny = /* @__PURE__ */ g(((e, t) => {
17764
18947
  var n = Lr();
17765
18948
  function r(e) {
17766
18949
  return n(e) ? void 0 : e;
17767
18950
  }
17768
18951
  t.exports = r;
17769
- })), zv = /* @__PURE__ */ g(((e, t) => {
18952
+ })), ry = /* @__PURE__ */ g(((e, t) => {
17770
18953
  var n = Pt(), r = An(), i = Sn(), a = n ? n.isConcatSpreadable : void 0;
17771
18954
  function o(e) {
17772
18955
  return i(e) || r(e) || !!(a && e && e[a]);
17773
18956
  }
17774
18957
  t.exports = o;
17775
- })), Bv = /* @__PURE__ */ g(((e, t) => {
17776
- var n = xn(), r = zv();
18958
+ })), iy = /* @__PURE__ */ g(((e, t) => {
18959
+ var n = xn(), r = ry();
17777
18960
  function i(e, t, a, o, s) {
17778
18961
  var c = -1, l = e.length;
17779
18962
  for (a ||= r, s ||= []; ++c < l;) {
@@ -17783,13 +18966,13 @@ var L_, R_ = h((() => {
17783
18966
  return s;
17784
18967
  }
17785
18968
  t.exports = i;
17786
- })), Vv = /* @__PURE__ */ g(((e, t) => {
17787
- var n = Bv();
18969
+ })), ay = /* @__PURE__ */ g(((e, t) => {
18970
+ var n = iy();
17788
18971
  function r(e) {
17789
18972
  return e != null && e.length ? n(e, 1) : [];
17790
18973
  }
17791
18974
  t.exports = r;
17792
- })), Hv = /* @__PURE__ */ g(((e, t) => {
18975
+ })), oy = /* @__PURE__ */ g(((e, t) => {
17793
18976
  function n(e, t, n) {
17794
18977
  switch (n.length) {
17795
18978
  case 0: return e.call(t);
@@ -17800,8 +18983,8 @@ var L_, R_ = h((() => {
17800
18983
  return e.apply(t, n);
17801
18984
  }
17802
18985
  t.exports = n;
17803
- })), Uv = /* @__PURE__ */ g(((e, t) => {
17804
- var n = Hv(), r = Math.max;
18986
+ })), sy = /* @__PURE__ */ g(((e, t) => {
18987
+ var n = oy(), r = Math.max;
17805
18988
  function i(e, t, i) {
17806
18989
  return t = r(t === void 0 ? e.length - 1 : t, 0), function() {
17807
18990
  for (var a = arguments, o = -1, s = r(a.length - t, 0), c = Array(s); ++o < s;) c[o] = a[t + o];
@@ -17811,15 +18994,15 @@ var L_, R_ = h((() => {
17811
18994
  };
17812
18995
  }
17813
18996
  t.exports = i;
17814
- })), Wv = /* @__PURE__ */ g(((e, t) => {
18997
+ })), cy = /* @__PURE__ */ g(((e, t) => {
17815
18998
  function n(e) {
17816
18999
  return function() {
17817
19000
  return e;
17818
19001
  };
17819
19002
  }
17820
19003
  t.exports = n;
17821
- })), Gv = /* @__PURE__ */ g(((e, t) => {
17822
- var n = Wv(), r = ov(), i = Sr();
19004
+ })), ly = /* @__PURE__ */ g(((e, t) => {
19005
+ var n = cy(), r = wv(), i = Sr();
17823
19006
  t.exports = r ? function(e, t) {
17824
19007
  return r(e, "toString", {
17825
19008
  configurable: !0,
@@ -17828,7 +19011,7 @@ var L_, R_ = h((() => {
17828
19011
  writable: !0
17829
19012
  });
17830
19013
  } : i;
17831
- })), Kv = /* @__PURE__ */ g(((e, t) => {
19014
+ })), uy = /* @__PURE__ */ g(((e, t) => {
17832
19015
  var n = 800, r = 16, i = Date.now;
17833
19016
  function a(e) {
17834
19017
  var t = 0, a = 0;
@@ -17841,17 +19024,17 @@ var L_, R_ = h((() => {
17841
19024
  };
17842
19025
  }
17843
19026
  t.exports = a;
17844
- })), qv = /* @__PURE__ */ g(((e, t) => {
17845
- var n = Gv();
17846
- t.exports = Kv()(n);
17847
- })), Jv = /* @__PURE__ */ g(((e, t) => {
17848
- var n = Vv(), r = Uv(), i = qv();
19027
+ })), dy = /* @__PURE__ */ g(((e, t) => {
19028
+ var n = ly();
19029
+ t.exports = uy()(n);
19030
+ })), fy = /* @__PURE__ */ g(((e, t) => {
19031
+ var n = ay(), r = sy(), i = dy();
17849
19032
  function a(e) {
17850
19033
  return i(r(e, void 0, n), e + "");
17851
19034
  }
17852
19035
  t.exports = a;
17853
- })), Yv = /* @__PURE__ */ g(((e, t) => {
17854
- var n = dr(), r = Pv(), i = Lv(), a = mr(), o = lv(), s = Rv(), c = Jv(), l = bv(), u = 1, d = 2, f = 4;
19036
+ })), py = /* @__PURE__ */ g(((e, t) => {
19037
+ var n = dr(), r = Qv(), i = ty(), a = mr(), o = Dv(), s = ny(), c = fy(), l = Rv(), u = 1, d = 2, f = 4;
17855
19038
  t.exports = c(function(e, t) {
17856
19039
  var c = {};
17857
19040
  if (e == null) return c;
@@ -17862,22 +19045,22 @@ var L_, R_ = h((() => {
17862
19045
  for (var m = t.length; m--;) i(c, t[m]);
17863
19046
  return c;
17864
19047
  });
17865
- })), Xv = /* @__PURE__ */ y(iv()), Zv = /* @__PURE__ */ y(Yv()), Qv = (e) => J.parseQueryString(e), $v = (e) => e.split("?"), ey = (e, t = []) => {
19048
+ })), my = /* @__PURE__ */ y(Sv()), hy = /* @__PURE__ */ y(py()), gy = (e) => J.parseQueryString(e), _y = (e) => e.split("?"), vy = (e, t = []) => {
17866
19049
  let n = e;
17867
- t.length && (n = (0, Zv.default)(e, t));
19050
+ t.length && (n = (0, hy.default)(e, t));
17868
19051
  let r = new Set(["true", "1"]), i = new Set(["false", "0"]), a = new Set([...r, ...i]), o = Object.entries(n).reduce((e, [t, n]) => (e[t] = a.has(n) ? r.has(n) : n, e), {});
17869
19052
  return o.playsinline = !0, o;
17870
- }, ty = (e, t, n, r) => {
19053
+ }, yy = (e, t, n, r) => {
17871
19054
  if (!e.autoplay || !t.view.loaded) return !1;
17872
19055
  let { currentSpreadIndex: i } = e, { spreadIndex: a } = n, { spreadIndex: o } = r;
17873
19056
  return i === o ? !1 : (i = o, {
17874
19057
  playing: a === o && !Y.isVerticallyScrolling(t.readerSettings),
17875
19058
  currentSpreadIndex: i
17876
19059
  });
17877
- }, ny = () => null;
19060
+ }, by = () => null;
17878
19061
  //#endregion
17879
19062
  //#region src/components/Media/VimeoPosterImage.jsx
17880
- function ry({ src: e, playing: t, controls: n, handleUpdatePlaying: r }) {
19063
+ function xy({ src: e, playing: t, controls: n, handleUpdatePlaying: r }) {
17881
19064
  return e ? /* @__PURE__ */ (0, X.jsx)("img", {
17882
19065
  className: (0, Z.default)("bber-poster bber-poster--vimeo", {
17883
19066
  "bber-visible": !t,
@@ -17890,7 +19073,7 @@ function ry({ src: e, playing: t, controls: n, handleUpdatePlaying: r }) {
17890
19073
  }
17891
19074
  //#endregion
17892
19075
  //#region src/components/Media/Vimeo.jsx
17893
- var iy = No("chrome", "eq", 81), ay = $g(D_(class e extends t.Component {
19076
+ var Sy = No("chrome", "eq", 81), Cy = __(G_(class e extends t.Component {
17894
19077
  static contextType = Io;
17895
19078
  static blacklistedProps = ["autopause"];
17896
19079
  constructor(e) {
@@ -17908,7 +19091,7 @@ var iy = No("chrome", "eq", 81), ay = $g(D_(class e extends t.Component {
17908
19091
  };
17909
19092
  }
17910
19093
  UNSAFE_componentWillMount() {
17911
- let { src: t, posterImage: n, aspectRatio: r } = this.props, [i, a] = $v(t), o = ey(Qv(a), e.blacklistedProps), { autoplay: s, ...c } = o, { controls: l, muted: u, loop: d } = o;
19094
+ let { src: t, posterImage: n, aspectRatio: r } = this.props, [i, a] = _y(t), o = vy(gy(a), e.blacklistedProps), { autoplay: s, ...c } = o, { controls: l, muted: u, loop: d } = o;
17912
19095
  this.setState((e) => ({
17913
19096
  url: i,
17914
19097
  loop: Ao(d, e.loop),
@@ -17921,7 +19104,7 @@ var iy = No("chrome", "eq", 81), ay = $g(D_(class e extends t.Component {
17921
19104
  }));
17922
19105
  }
17923
19106
  UNSAFE_componentWillReceiveProps(e, t) {
17924
- let n = ty(this.state, this.props, e, t);
19107
+ let n = yy(this.state, this.props, e, t);
17925
19108
  n && this.setState(n);
17926
19109
  }
17927
19110
  handleUpdatePlaying = () => this.setState(({ playing: e }) => ({ playing: !e }));
@@ -17931,7 +19114,7 @@ var iy = No("chrome", "eq", 81), ay = $g(D_(class e extends t.Component {
17931
19114
  handleUpdateVolume = () => {};
17932
19115
  render() {
17933
19116
  let { url: e, loop: t, muted: n, controls: r, playing: i, posterImage: a, playerOptions: o, aspectRatio: s } = this.state, { iframePlaceholderTop: c, iframePlaceholderWidth: l, iframePlaceholderHeight: u } = this.props, d = {}, f;
17934
- if (iy) {
19117
+ if (Sy) {
17935
19118
  let e = Y.isSingleColumn(), t = e ? "static" : "absolute", n = s.get("x"), r = s.get("y");
17936
19119
  if (e || (d = {
17937
19120
  top: c,
@@ -17945,8 +19128,8 @@ var iy = No("chrome", "eq", 81), ay = $g(D_(class e extends t.Component {
17945
19128
  f = e ? 0 : `${r / n * 100}%`;
17946
19129
  }
17947
19130
  return /* @__PURE__ */ (0, X.jsxs)(X.Fragment, { children: [
17948
- iy && /* @__PURE__ */ (0, X.jsx)("style", { children: this.props.iframeStyleBlock("vimeo") }),
17949
- iy && /* @__PURE__ */ (0, X.jsx)("div", {
19131
+ Sy && /* @__PURE__ */ (0, X.jsx)("style", { children: this.props.iframeStyleBlock("vimeo") }),
19132
+ Sy && /* @__PURE__ */ (0, X.jsx)("div", {
17950
19133
  style: { paddingTop: f },
17951
19134
  className: "bber-iframe-placeholder",
17952
19135
  ref: this.props.innerRef
@@ -17955,13 +19138,13 @@ var iy = No("chrome", "eq", 81), ay = $g(D_(class e extends t.Component {
17955
19138
  style: d,
17956
19139
  ref: this.props.elemRef,
17957
19140
  children: [
17958
- /* @__PURE__ */ (0, X.jsx)(ry, {
19141
+ /* @__PURE__ */ (0, X.jsx)(xy, {
17959
19142
  src: a,
17960
19143
  playing: i,
17961
19144
  controls: r,
17962
19145
  handleUpdatePlaying: this.handleUpdatePlaying
17963
19146
  }),
17964
- /* @__PURE__ */ (0, X.jsx)(Xv.default, {
19147
+ /* @__PURE__ */ (0, X.jsx)(my.default, {
17965
19148
  url: e,
17966
19149
  width: "100%",
17967
19150
  height: "100%",
@@ -17974,7 +19157,7 @@ var iy = No("chrome", "eq", 81), ay = $g(D_(class e extends t.Component {
17974
19157
  onPause: this.handlePause,
17975
19158
  onEnded: this.handleEnded
17976
19159
  }),
17977
- /* @__PURE__ */ (0, X.jsx)(ny, {
19160
+ /* @__PURE__ */ (0, X.jsx)(by, {
17978
19161
  handleUpdatePlaying: this.handleUpdatePlaying,
17979
19162
  handleUpdatePosition: this.handleUpdatePosition,
17980
19163
  handleUpdateVolume: this.handleUpdateVolume
@@ -17983,15 +19166,15 @@ var iy = No("chrome", "eq", 81), ay = $g(D_(class e extends t.Component {
17983
19166
  }, e)
17984
19167
  ] });
17985
19168
  }
17986
- }, { enabled: iy }), { useParentDimensions: !0 }), oy = t.createContext({
19169
+ }, { enabled: Sy }), { useParentDimensions: !0 }), wy = t.createContext({
17987
19170
  left: 0,
17988
19171
  layout: "columns"
17989
19172
  });
17990
- oy.displayName = "SpreadContext";
19173
+ wy.displayName = "SpreadContext";
17991
19174
  //#endregion
17992
19175
  //#region src/components/Spread.jsx
17993
- var sy = 30;
17994
- function cy(e) {
19176
+ var Ty = 30;
19177
+ function Ey(e) {
17995
19178
  let t = s(null), [n, r] = c(0), i = o(() => (Math.random() + 1).toString(36).substring(7), []), l = s(e.viewerSettings);
17996
19179
  l.current = e.viewerSettings, a(() => {
17997
19180
  let e = null, n = () => {
@@ -18007,7 +19190,7 @@ function cy(e) {
18007
19190
  let i = 0, a = null, o = () => {
18008
19191
  if (!t.current) return;
18009
19192
  let s = n();
18010
- s && (r(s.offset), s.nextLeft !== a && (a = s.nextLeft, i += 1, i < sy && (e = requestAnimationFrame(o))));
19193
+ s && (r(s.offset), s.nextLeft !== a && (a = s.nextLeft, i += 1, i < Ty && (e = requestAnimationFrame(o))));
18011
19194
  };
18012
19195
  e = requestAnimationFrame(o);
18013
19196
  }, a = new ResizeObserver(i);
@@ -18051,19 +19234,19 @@ function cy(e) {
18051
19234
  },
18052
19235
  className: `bber-spread bber-spread-${u ? "verso" : "recto"} ${e.className || ""}`,
18053
19236
  "data-marker-reference": e["data-marker-reference"],
18054
- children: /* @__PURE__ */ (0, X.jsx)(oy.Provider, {
19237
+ children: /* @__PURE__ */ (0, X.jsx)(wy.Provider, {
18055
19238
  value: f,
18056
19239
  children: e.children
18057
19240
  })
18058
19241
  });
18059
19242
  }
18060
- var ly = U(({ readerSettings: e, viewerSettings: t, view: n }) => ({
19243
+ var Dy = U(({ readerSettings: e, viewerSettings: t, view: n }) => ({
18061
19244
  readerSettings: e,
18062
19245
  viewerSettings: t,
18063
19246
  view: n
18064
- }), () => ({}))(cy), uy = (e) => {
19247
+ }), () => ({}))(Ey), Oy = (e) => {
18065
19248
  let t = i(Io);
18066
- return /* @__PURE__ */ (0, X.jsx)(oy.Consumer, { children: ({ left: n }) => {
19249
+ return /* @__PURE__ */ (0, X.jsx)(wy.Consumer, { children: ({ left: n }) => {
18067
19250
  let r = Math.abs(t.getTranslateX()), i = Math.floor(n), a = window.innerWidth / 2, o = r === i ? 0 : r > i ? a * -1 : a;
18068
19251
  return /* @__PURE__ */ (0, X.jsx)("figure", {
18069
19252
  id: e.id,
@@ -18075,8 +19258,8 @@ var ly = U(({ readerSettings: e, viewerSettings: t, view: n }) => ({
18075
19258
  children: e.children
18076
19259
  });
18077
19260
  } });
18078
- }, dy = 100, fy = 3, py = 2500;
18079
- function my({ view: e, viewActions: t, userInterfaceActions: n, children: r }) {
19261
+ }, ky = 100, Ay = 3, jy = 2500;
19262
+ function My({ view: e, viewActions: t, userInterfaceActions: n, children: r }) {
18080
19263
  let i = s(null), o = s(t);
18081
19264
  o.current = t;
18082
19265
  let c = s(n);
@@ -18092,7 +19275,7 @@ function my({ view: e, viewActions: t, userInterfaceActions: n, children: r }) {
18092
19275
  }, h = () => {
18093
19276
  f.current = setTimeout(() => {
18094
19277
  if (!l.current) return;
18095
- if (Date.now() - p.current >= py) {
19278
+ if (Date.now() - p.current >= jy) {
18096
19279
  m();
18097
19280
  return;
18098
19281
  }
@@ -18102,8 +19285,8 @@ function my({ view: e, viewActions: t, userInterfaceActions: n, children: r }) {
18102
19285
  return;
18103
19286
  }
18104
19287
  let t = e.offsetLeft;
18105
- t === u.current ? (d.current += 1, d.current >= fy ? m() : h()) : (u.current = t, d.current = 0, h());
18106
- }, dy);
19288
+ t === u.current ? (d.current += 1, d.current >= Ay ? m() : h()) : (u.current = t, d.current = 0, h());
19289
+ }, ky);
18107
19290
  }, g = () => {
18108
19291
  f.current &&= (clearTimeout(f.current), null), l.current = !0, u.current = null, d.current = 0, p.current = Date.now(), typeof document < "u" && document.fonts?.ready && document.fonts.ready.then(() => {
18109
19292
  l.current && (u.current = null, d.current = 0);
@@ -18122,17 +19305,17 @@ function my({ view: e, viewActions: t, userInterfaceActions: n, children: r }) {
18122
19305
  children: r
18123
19306
  });
18124
19307
  }
18125
- var hy = U(({ view: e }) => ({ view: e }), (e) => ({
19308
+ var Ny = U(({ view: e }) => ({ view: e }), (e) => ({
18126
19309
  userInterfaceActions: G(ga, e),
18127
19310
  viewActions: G(Aa, e)
18128
- }))(my), gy = () => !0, _y = new Yh.ProcessNodeDefinitions(t), vy = ({ requestedSpineItem: e }) => [
19311
+ }))(My), Py = () => !0, Fy = new pg.ProcessNodeDefinitions(t), Iy = ({ requestedSpineItem: e }) => [
18129
19312
  {
18130
19313
  shouldProcessNode(e) {
18131
19314
  return e?.attribs?.["epub:type"] === "noteref";
18132
19315
  },
18133
19316
  processNode(n, r) {
18134
19317
  let i = q.convertToReactAttrs(n.attribs), a = ko(), o = J.resolveOverlappingURL(e.absoluteURL, n.attribs.href);
18135
- return t.createElement(hg, {
19318
+ return t.createElement(Ng, {
18136
19319
  ...i,
18137
19320
  key: a,
18138
19321
  href: o
@@ -18145,7 +19328,7 @@ var hy = U(({ view: e }) => ({ view: e }), (e) => ({
18145
19328
  },
18146
19329
  processNode(n, r) {
18147
19330
  let i = q.convertToReactAttrs(n.attribs), a = ko(), { href: o } = n.attribs;
18148
- return J.isRelative(n.attribs.href) && (o = J.resolveOverlappingURL(e.absoluteURL, n.attribs.href)), t.createElement(gg, {
19331
+ return J.isRelative(n.attribs.href) && (o = J.resolveOverlappingURL(e.absoluteURL, n.attribs.href)), t.createElement(Pg, {
18149
19332
  ...i,
18150
19333
  key: a,
18151
19334
  href: o
@@ -18171,7 +19354,7 @@ var hy = U(({ view: e }) => ({ view: e }), (e) => ({
18171
19354
  },
18172
19355
  processNode(e, n) {
18173
19356
  let r = q.convertToReactAttrs(e.attribs), { id: i, autoPlay: a } = r, o = Po(r), s = i, c = !1;
18174
- return (0, ao.default)(a) || (c = !0, delete r.autoPlay), t.createElement(E_, {
19357
+ return (0, ao.default)(a) || (c = !0, delete r.autoPlay), t.createElement(W_, {
18175
19358
  ...r,
18176
19359
  "data-autoplay": c,
18177
19360
  controls: o,
@@ -18185,7 +19368,7 @@ var hy = U(({ view: e }) => ({ view: e }), (e) => ({
18185
19368
  },
18186
19369
  processNode(n, r) {
18187
19370
  let i = q.convertToReactAttrs(n.attribs), { id: a, autoPlay: o } = i, s = Po(i), c = a, l = n.attribs.poster ? J.resolveOverlappingURL(e.absoluteURL, n.attribs.poster) : null, u = !1;
18188
- return (0, ao.default)(o) || (u = !0, delete i.autoPlay), t.createElement(j_, {
19371
+ return (0, ao.default)(o) || (u = !0, delete i.autoPlay), t.createElement(Y_, {
18189
19372
  ...i,
18190
19373
  "data-autoplay": u,
18191
19374
  controls: s,
@@ -18213,7 +19396,7 @@ var hy = U(({ view: e }) => ({ view: e }), (e) => ({
18213
19396
  }
18214
19397
  l = l.parent;
18215
19398
  }
18216
- return t.createElement(ay, {
19399
+ return t.createElement(Cy, {
18217
19400
  ...i,
18218
19401
  key: a,
18219
19402
  posterImage: s,
@@ -18234,7 +19417,7 @@ var hy = U(({ view: e }) => ({ view: e }), (e) => ({
18234
19417
  }
18235
19418
  s = s.parent;
18236
19419
  }
18237
- return t.createElement(k_, {
19420
+ return t.createElement(q_, {
18238
19421
  useElementOffsetLeft: o,
18239
19422
  spreadLayout: a,
18240
19423
  attrs: r,
@@ -18261,7 +19444,7 @@ var hy = U(({ view: e }) => ({ view: e }), (e) => ({
18261
19444
  },
18262
19445
  processNode(e, n) {
18263
19446
  let r = q.convertToReactAttrs(e.attribs), i = `spread-figure-${r["data-marker-reference-figure"]}`;
18264
- return t.createElement(uy, {
19447
+ return t.createElement(Oy, {
18265
19448
  ...r,
18266
19449
  key: i
18267
19450
  }, n);
@@ -18272,7 +19455,7 @@ var hy = U(({ view: e }) => ({ view: e }), (e) => ({
18272
19455
  return e.type === "tag" && (0, io.default)(e.attribs, "data-ultimate");
18273
19456
  },
18274
19457
  processNode(e, n) {
18275
- return t.createElement(hy, { key: ko() }, n);
19458
+ return t.createElement(Ny, { key: ko() }, n);
18276
19459
  }
18277
19460
  },
18278
19461
  {
@@ -18281,7 +19464,7 @@ var hy = U(({ view: e }) => ({ view: e }), (e) => ({
18281
19464
  },
18282
19465
  processNode(e, n) {
18283
19466
  let r = q.convertToReactAttrs(e.attribs), i = `spread-${r["data-marker-reference"]}`;
18284
- return t.createElement(ly, {
19467
+ return t.createElement(Dy, {
18285
19468
  ...r,
18286
19469
  key: i
18287
19470
  }, n);
@@ -18297,7 +19480,7 @@ var hy = U(({ view: e }) => ({ view: e }), (e) => ({
18297
19480
  style: "padding-bottom: 0; margin-bottom: 0"
18298
19481
  };
18299
19482
  let r = q.convertToReactAttrs(e.attribs), i = `marker-${r["data-marker"]}`;
18300
- return t.createElement(t_, {
19483
+ return t.createElement(y_, {
18301
19484
  ...r,
18302
19485
  key: i
18303
19486
  }, n);
@@ -18307,9 +19490,9 @@ var hy = U(({ view: e }) => ({ view: e }), (e) => ({
18307
19490
  shouldProcessNode() {
18308
19491
  return !0;
18309
19492
  },
18310
- processNode: _y.processDefaultNode
19493
+ processNode: Fy.processDefaultNode
18311
19494
  }
18312
- ], yy = class e {
19495
+ ], Ly = class e {
18313
19496
  static opfURL(e) {
18314
19497
  let t = e;
18315
19498
  return t = J.stripTrailingSlash(t), t += "/OPS", t += "/content.opf", t = window.encodeURI(t), t;
@@ -18320,7 +19503,7 @@ var hy = U(({ view: e }) => ({ view: e }), (e) => ({
18320
19503
  }
18321
19504
  static parseOPF(e) {
18322
19505
  return new Promise((t) => {
18323
- let { elements: n } = JSON.parse(Xh.default.xml2json(e.data)).elements[0], r = {};
19506
+ let { elements: n } = JSON.parse(mg.default.xml2json(e.data)).elements[0], r = {};
18324
19507
  for (let e = 0; e < n.length; e++) r[`__${n[e].name}`] = n[e];
18325
19508
  t(r);
18326
19509
  });
@@ -18348,7 +19531,7 @@ var hy = U(({ view: e }) => ({ view: e }), (e) => ({
18348
19531
  oa.getText(J.resolveRelativeURL(t, s)).then(({ data: t }) => {
18349
19532
  i({
18350
19533
  ...e,
18351
- __ncx: JSON.parse(Xh.default.xml2json(t))
19534
+ __ncx: JSON.parse(mg.default.xml2json(t))
18352
19535
  });
18353
19536
  });
18354
19537
  });
@@ -18361,7 +19544,7 @@ var hy = U(({ view: e }) => ({ view: e }), (e) => ({
18361
19544
  let { idref: t, linear: r } = e.attributes, i = (0, K.default)(n.elements, (e) => e.attributes.id === t);
18362
19545
  if (!i || r !== "yes") return null;
18363
19546
  let { id: o, href: s } = i.attributes, c = i.attributes["media-type"], l = i.attributes.properties ? i.attributes.properties.split(" ") : [], u = (0, K.default)(a.elements, (e) => e.attributes.href === s), d = "", f = "";
18364
- return u && ({title: d} = u.attributes, f = J.slug(d)), new tg({
19547
+ return u && ({title: d} = u.attributes, f = J.slug(d)), new yg({
18365
19548
  id: o,
18366
19549
  href: s,
18367
19550
  mediaType: c,
@@ -18393,7 +19576,7 @@ var hy = U(({ view: e }) => ({ view: e }), (e) => ({
18393
19576
  }
18394
19577
  let r = t.elements.map((e) => {
18395
19578
  let { type: t, title: n, href: r } = e.attributes;
18396
- return new Qh({
19579
+ return new gg({
18397
19580
  type: t,
18398
19581
  title: n,
18399
19582
  href: r
@@ -18440,7 +19623,7 @@ var hy = U(({ view: e }) => ({ view: e }), (e) => ({
18440
19623
  static createBookMetadata(e) {
18441
19624
  let { __metadata: t } = e, n = t.elements.filter((e) => /^dc:/.test(e.name)).map((e) => ({ [e.name.slice(3)]: e.elements[0].text }));
18442
19625
  return new Promise((t) => {
18443
- let r = new Zh({});
19626
+ let r = new hg({});
18444
19627
  n.forEach((e, t) => {
18445
19628
  let i = Object.keys(n[t]);
18446
19629
  (0, io.default)(r, i) && r.set(i, e[i]);
@@ -18467,13 +19650,13 @@ var hy = U(({ view: e }) => ({ view: e }), (e) => ({
18467
19650
  }), r;
18468
19651
  }
18469
19652
  static async parseSpineItemResponse(t) {
18470
- let { url: n } = t.request, { hash: r, opsURL: i, paddingLeft: a, columnGap: o } = t, s = new Yh.Parser(), { xml: c, doc: l } = new cg({
19653
+ let { url: n } = t.request, { hash: r, opsURL: i, paddingLeft: a, columnGap: o } = t, s = new pg.Parser(), { xml: c, doc: l } = new Eg({
18471
19654
  paddingLeft: a,
18472
19655
  columnGap: o,
18473
19656
  responseURL: n
18474
19657
  }).parseXML(t.data), u = /<body[^>]*?>([\s\S]*)<\/body>/, d;
18475
19658
  d = c.match(u), d = d[1], d = d.replace(/>\s*?</g, "><");
18476
- let f = s.parseWithInstructions(d, gy, vy(t)), p = Array.from(l.querySelectorAll("link")), m = Array.from(l.querySelectorAll("style")), h = p.reduce((e, t) => {
19659
+ let f = s.parseWithInstructions(d, Py, Iy(t)), p = Array.from(l.querySelectorAll("link")), m = Array.from(l.querySelectorAll("style")), h = p.reduce((e, t) => {
18477
19660
  if (t.rel !== "stylesheet") return e;
18478
19661
  let r = J.trimFilenameFromResponse(n), i = J.trimSlashes(t.getAttribute("href")), a = J.resolveRelativeURL(r, i);
18479
19662
  return e.concat({
@@ -18501,21 +19684,21 @@ var hy = U(({ view: e }) => ({ view: e }), (e) => ({
18501
19684
  scopedCSS: e.createScopedCSS(_, v, i)
18502
19685
  };
18503
19686
  }
18504
- }, by = { content: null };
18505
- async function xy(e) {
18506
- let { bookURL: t } = this.props.readerSettings, n = yy.opfURL(t), r = yy.opsURL(t), i, a, o;
18507
- i = await oa.getText(n), i = await yy.parseOPF(i), i = await yy.parseNCX(i, r), [a, o] = await Promise.all([yy.createGuideItems(i), yy.createSpineItems(i)]), i = {
19687
+ }, Ry = { content: null };
19688
+ async function zy(e) {
19689
+ let { bookURL: t } = this.props.readerSettings, n = Ly.opfURL(t), r = Ly.opsURL(t), i, a, o;
19690
+ i = await oa.getText(n), i = await Ly.parseOPF(i), i = await Ly.parseNCX(i, r), [a, o] = await Promise.all([Ly.createGuideItems(i), Ly.createSpineItems(i)]), i = {
18508
19691
  ...a,
18509
19692
  ...o
18510
- }, [a, o] = await Promise.all([yy.udpateGuideItemURLs(i, r), yy.udpateSpineItemURLs(i, r)]), i = {
19693
+ }, [a, o] = await Promise.all([Ly.udpateGuideItemURLs(i, r), Ly.udpateSpineItemURLs(i, r)]), i = {
18511
19694
  ...a,
18512
19695
  ...o
18513
- }, i = await yy.createBookMetadata(i), this.setState({
19696
+ }, i = await Ly.createBookMetadata(i), this.setState({
18514
19697
  opsURL: r,
18515
19698
  ...i
18516
19699
  }, e);
18517
19700
  }
18518
- function Sy() {
19701
+ function By() {
18519
19702
  let { spine: e, spreadIndex: t, currentSpineItemIndex: n } = this.state, { lastSpreadIndex: r } = this.props.view;
18520
19703
  if (!e) return console.warn("showSpineItem: spine is not in state");
18521
19704
  let i = n === 0, a = n === e.length - 1, o = t === 0, s = t === r;
@@ -18528,7 +19711,7 @@ function Sy() {
18528
19711
  this.savePosition();
18529
19712
  });
18530
19713
  }
18531
- async function Cy(e, t) {
19714
+ async function Vy(e, t) {
18532
19715
  let n = q.createHash(this.props.readerSettings.bookURL), r = e;
18533
19716
  if (r || ([r] = this.state.spine), !r) {
18534
19717
  console.warn("loadSpineItem: called before spine was populated — skipping");
@@ -18538,7 +19721,7 @@ async function Cy(e, t) {
18538
19721
  let i;
18539
19722
  try {
18540
19723
  let { cache: e, opsURL: t } = this.state, { data: a, request: o } = await oa.getText(r.absoluteURL);
18541
- i = await yy.parseSpineItemResponse({
19724
+ i = await Ly.parseSpineItemResponse({
18542
19725
  data: a,
18543
19726
  hash: n,
18544
19727
  cache: e,
@@ -18558,7 +19741,7 @@ async function Cy(e, t) {
18558
19741
  return;
18559
19742
  }
18560
19743
  let { bookContent: a, scopedCSS: o } = i;
18561
- by.content = a, q.appendBookStyles(o, n), this.setState({
19744
+ Ry.content = a, q.appendBookStyles(o, n), this.setState({
18562
19745
  currentSpineItem: r,
18563
19746
  spineItemURL: r.absoluteURL
18564
19747
  }, () => {
@@ -18569,8 +19752,8 @@ async function Cy(e, t) {
18569
19752
  }
18570
19753
  //#endregion
18571
19754
  //#region src/components/Reader/navigation.js
18572
- var wy = /* @__PURE__ */ y(Pr());
18573
- function Ty(e) {
19755
+ var Hy = /* @__PURE__ */ y(Pr());
19756
+ function Uy(e) {
18574
19757
  let { spreadIndex: t } = this.state, { lastSpreadIndex: n } = this.props.view, r = t + e;
18575
19758
  if (r > n || r < 0) {
18576
19759
  let t = Math.sign(e);
@@ -18588,7 +19771,7 @@ function Ty(e) {
18588
19771
  this.updateQueryString();
18589
19772
  });
18590
19773
  }
18591
- function Ey(e) {
19774
+ function Wy(e) {
18592
19775
  let { currentSpineItemIndex: t } = this.state, { spine: n } = this.state, r = t + e, i = r < 0, a = r > n.length - 1;
18593
19776
  if (i || a) {
18594
19777
  this.setState({
@@ -18612,10 +19795,10 @@ function Ey(e) {
18612
19795
  this.loadSpineItem(o), this.savePosition();
18613
19796
  });
18614
19797
  }
18615
- function Dy(e) {
19798
+ function Gy(e) {
18616
19799
  this.setState({ spreadIndex: e }, this.updateQueryString);
18617
19800
  }
18618
- function Oy(e) {
19801
+ function Ky(e) {
18619
19802
  let t = document.querySelector(e);
18620
19803
  if (!t) return console.warn(`Could not find element ${e}`);
18621
19804
  if (Y.isVerticallyScrolling(this.props.readerSettings)) {
@@ -18625,8 +19808,8 @@ function Oy(e) {
18625
19808
  let { paddingTop: n, paddingBottom: r, columnGap: i } = this.props.viewerSettings, a = window.innerHeight, o = Math.round(a - n - r), s = t.offsetLeft - i, c = Math.floor(s / o / 2);
18626
19809
  this.setState({ spreadIndex: c }, this.updateQueryString);
18627
19810
  }
18628
- function ky(e) {
18629
- let { spine: t } = this.state, n = new window.URL(e), r = `${n.origin}${n.pathname}`, i = (0, wy.default)(t, { absoluteURL: r });
19811
+ function qy(e) {
19812
+ let { spine: t } = this.state, n = new window.URL(e), r = `${n.origin}${n.pathname}`, i = (0, Hy.default)(t, { absoluteURL: r });
18630
19813
  if (i === this.state.currentSpineItemIndex) return this.closeSidebars();
18631
19814
  if (i < 0) {
18632
19815
  console.warn(`No spine item found for ${r}`);
@@ -18641,11 +19824,11 @@ function ky(e) {
18641
19824
  this.loadSpineItem(a), this.savePosition();
18642
19825
  });
18643
19826
  }
18644
- function Ay(e) {
19827
+ function Jy(e) {
18645
19828
  let { spine: t } = this.state, n = new window.URL(e);
18646
- return (0, wy.default)(t, { absoluteURL: `${n.origin}${n.pathname}` });
19829
+ return (0, Hy.default)(t, { absoluteURL: `${n.origin}${n.pathname}` });
18647
19830
  }
18648
- function jy(e) {
19831
+ function Yy(e) {
18649
19832
  let { spreadIndex: t, currentSpineItem: n, currentSpineItemIndex: r } = this.state;
18650
19833
  if (!n) return;
18651
19834
  let { slug: i } = n, { searchParams: a } = this.props.readerLocation, o = new window.URLSearchParams(a);
@@ -18653,7 +19836,7 @@ function jy(e) {
18653
19836
  let s = { searchParams: o.toString() };
18654
19837
  this.props.readerLocationActions.updateLocation(s), e && e();
18655
19838
  }
18656
- function My() {
19839
+ function Xy() {
18657
19840
  let { currentSpineItemIndex: e, spreadIndex: t } = this.state, { searchParamKeys: n } = this.props.readerSettings, r = new URLSearchParams();
18658
19841
  r.set(n.currentSpineItemIndex, e), r.set(n.spreadIndex, t);
18659
19842
  let i = { searchParams: r.toString() };
@@ -18661,34 +19844,34 @@ function My() {
18661
19844
  }
18662
19845
  //#endregion
18663
19846
  //#region src/components/Reader/resize.js
18664
- function Ny() {
19847
+ function Zy() {
18665
19848
  if (this.state.disableMobileResizeEvents) return;
18666
- let e = new ig(), t = Y.isVerticallyScrolling(this.props.readerSettings);
19849
+ let e = new Sg(), t = Y.isVerticallyScrolling(this.props.readerSettings);
18667
19850
  e.width = window.innerWidth, e.height = t ? "auto" : window.innerHeight, this.props.viewerSettingsActions.update(e.get());
18668
19851
  }
18669
- function Py() {
19852
+ function Qy() {
18670
19853
  if (this.state.disableMobileResizeEvents) return;
18671
19854
  this.freeze(), this.props.viewActions.unload();
18672
19855
  let { spreadIndex: e } = this.state, { lastSpreadIndex: t } = this.props.view, n = 0;
18673
19856
  e > 0 && t > 0 && (n = e / t), this.setState({ relativeSpreadPosition: n });
18674
19857
  }
18675
- function Fy() {
19858
+ function $y() {
18676
19859
  if (this.state.disableMobileResizeEvents) return;
18677
19860
  let { relativeSpreadPosition: e } = this.state, { lastSpreadIndex: t } = this.props.view, n = Math.round(t * e);
18678
19861
  n = Math.max(0, Math.min(n, t)), this.navigateToSpreadByIndex(n);
18679
19862
  }
18680
- function Iy() {
19863
+ function eb() {
18681
19864
  window.removeEventListener("resize", this.handleResize), window.removeEventListener("resize", this.handleResizeStart), window.removeEventListener("resize", this.handleResizeEnd), document.removeEventListener("webkitfullscreenchange mozfullscreenchange fullscreenchange", this.handleResize), document.removeEventListener("webkitfullscreenchange mozfullscreenchange fullscreenchange", this.handleResizeStart), document.removeEventListener("webkitfullscreenchange mozfullscreenchange fullscreenchange", this.handleResizeEnd);
18682
19865
  }
18683
- function Ly() {
19866
+ function tb() {
18684
19867
  window.addEventListener("resize", this.handleResize), window.addEventListener("resize", this.handleResizeStart), window.addEventListener("resize", this.handleResizeEnd), document.addEventListener("webkitfullscreenchange mozfullscreenchange fullscreenchange", this.handleResizeStart), document.addEventListener("webkitfullscreenchange mozfullscreenchange fullscreenchange", this.handleResizeEnd);
18685
19868
  }
18686
19869
  //#endregion
18687
19870
  //#region src/components/Reader/index.jsx
18688
- function Ry() {
18689
- return /* @__PURE__ */ (0, X.jsx)("div", { children: by.content }, "book-content");
19871
+ function nb() {
19872
+ return /* @__PURE__ */ (0, X.jsx)("div", { children: Ry.content }, "book-content");
18690
19873
  }
18691
- function zy(e) {
19874
+ function rb(e) {
18692
19875
  let [t, n] = c({
18693
19876
  __metadata: [],
18694
19877
  __spine: [],
@@ -18763,7 +19946,7 @@ function zy(e) {
18763
19946
  y.current = e;
18764
19947
  }
18765
19948
  };
18766
- e.setState = (e, t) => d(e, t), e.closeSidebars = () => f(), e.freeze = () => p(), e.handleSidebarButtonClick = (e) => m(e), e.getTranslateX = (e) => h(e), e.destroyReaderComponent = () => g(), e.getSlug = () => _(), e.createStateFromOPF = xy.bind(e), e.showSpineItem = Sy.bind(e), e.loadSpineItem = Cy.bind(e), e.updateQueryString = jy.bind(e), e.savePosition = My.bind(e), e.handlePageNavigation = Ty.bind(e), e.handleChapterNavigation = Ey.bind(e), e.navigateToSpreadByIndex = Dy.bind(e), e.navigateToElementById = Oy.bind(e), e.navigateToChapterByURL = ky.bind(e), e.getSpineItemByAbsoluteUrl = Ay.bind(e), e.handleResize = Ny.bind(e), e.handleResizeStart = Py.bind(e), e.handleResizeEnd = Fy.bind(e), e.bindResizeHandlers = Iy.bind(e), e.unbindResizeHandlers = Ly.bind(e), e.handleResizeStart = (0, ua.default)(e.handleResizeStart, 1e3, {
19949
+ e.setState = (e, t) => d(e, t), e.closeSidebars = () => f(), e.freeze = () => p(), e.handleSidebarButtonClick = (e) => m(e), e.getTranslateX = (e) => h(e), e.destroyReaderComponent = () => g(), e.getSlug = () => _(), e.createStateFromOPF = zy.bind(e), e.showSpineItem = By.bind(e), e.loadSpineItem = Vy.bind(e), e.updateQueryString = Yy.bind(e), e.savePosition = Xy.bind(e), e.handlePageNavigation = Uy.bind(e), e.handleChapterNavigation = Wy.bind(e), e.navigateToSpreadByIndex = Gy.bind(e), e.navigateToElementById = Ky.bind(e), e.navigateToChapterByURL = qy.bind(e), e.getSpineItemByAbsoluteUrl = Jy.bind(e), e.handleResize = Zy.bind(e), e.handleResizeStart = Qy.bind(e), e.handleResizeEnd = $y.bind(e), e.bindResizeHandlers = eb.bind(e), e.unbindResizeHandlers = tb.bind(e), e.handleResizeStart = (0, ua.default)(e.handleResizeStart, 1e3, {
18767
19950
  leading: !0,
18768
19951
  trailing: !1
18769
19952
  }), e.handleResizeEnd = (0, ua.default)(e.handleResizeEnd, 1e3, {
@@ -18846,7 +20029,7 @@ function zy(e) {
18846
20029
  slug: I,
18847
20030
  spreadIndex: P,
18848
20031
  lastSpreadIndex: T.lastSpreadIndex,
18849
- BookContent: Ry,
20032
+ BookContent: nb,
18850
20033
  layout: E,
18851
20034
  view: T,
18852
20035
  style: D,
@@ -18856,7 +20039,7 @@ function zy(e) {
18856
20039
  })
18857
20040
  });
18858
20041
  }
18859
- var By = U(({ readerSettings: e, viewerSettings: t, readerLocation: n, view: r, userInterface: i }) => ({
20042
+ var ib = U(({ readerSettings: e, viewerSettings: t, readerLocation: n, view: r, userInterface: i }) => ({
18860
20043
  readerSettings: e,
18861
20044
  viewerSettings: t,
18862
20045
  readerLocation: n,
@@ -18868,7 +20051,7 @@ var By = U(({ readerSettings: e, viewerSettings: t, readerLocation: n, view: r,
18868
20051
  readerLocationActions: G(Zi, e),
18869
20052
  viewActions: G(Aa, e),
18870
20053
  userInterfaceActions: G(ga, e)
18871
- }))(zy), Vy = class extends n {
20054
+ }))(rb), ab = class extends n {
18872
20055
  async UNSAFE_componentWillMount() {
18873
20056
  let { manifestURL: e, disableBodyStyles: t } = this.props.readerSettings, { bookURL: n, projectURL: r } = this.props.readerSettings, i = [];
18874
20057
  if (e && n && console.error("Multiple endpoints. Specify either `manifestURL` or `bookURL`"), t !== !0 && (document.body.style["-webkit-text-size-adjust"] = "none", document.body.style["touch-action"] = "manipulation", document.body.style.margin = "0", document.body.style.padding = "0"), e) try {
@@ -18895,30 +20078,30 @@ var By = U(({ readerSettings: e, viewerSettings: t, readerLocation: n, view: r,
18895
20078
  let { searchParams: e } = this.props.readerLocation, { bookURL: t } = this.props.readerSettings;
18896
20079
  if (!e || !t) return null;
18897
20080
  let { style: n, className: r, ...i } = this.props.readerSettings;
18898
- return /* @__PURE__ */ (0, X.jsx)(By, {
20081
+ return /* @__PURE__ */ (0, X.jsx)(ib, {
18899
20082
  style: n,
18900
20083
  className: r,
18901
20084
  ...i
18902
20085
  });
18903
20086
  }
18904
- }, Hy = U(({ readerSettings: e, readerLocation: t }) => ({
20087
+ }, ob = U(({ readerSettings: e, readerLocation: t }) => ({
18905
20088
  readerSettings: e,
18906
20089
  readerLocation: t
18907
20090
  }), (e) => ({
18908
20091
  readerSettingsActions: G(ia, e),
18909
20092
  readerLocationActions: G(Zi, e)
18910
- }))(Vy), Uy = "3.0.7", Wy = {}, Gy = (e, { markerId: t, ...n }) => ({
20093
+ }))(ab), sb = "3.0.7", cb = {}, lb = (e, { markerId: t, ...n }) => ({
18911
20094
  ...e,
18912
20095
  [t]: {
18913
20096
  ...e[t] || {},
18914
20097
  ...n
18915
20098
  }
18916
- }), Ky = (e = Wy, t) => {
20099
+ }), ub = (e = cb, t) => {
18917
20100
  switch (t.type) {
18918
- case _g: return Gy(e, t.payload);
20101
+ case Fg: return lb(e, t.payload);
18919
20102
  default: return e;
18920
20103
  }
18921
- }, qy = { searchParams: "" }, Jy = (e = qy, t = {}) => {
20104
+ }, db = { searchParams: "" }, fb = (e = db, t = {}) => {
18922
20105
  switch (t.type) {
18923
20106
  case zr: return {
18924
20107
  ...e,
@@ -18926,7 +20109,7 @@ var By = U(({ readerSettings: e, viewerSettings: t, readerLocation: n, view: r,
18926
20109
  };
18927
20110
  default: return e;
18928
20111
  }
18929
- }, Yy = {
20112
+ }, pb = {
18930
20113
  books: [],
18931
20114
  bookURL: "",
18932
20115
  downloads: [],
@@ -18961,7 +20144,7 @@ var By = U(({ readerSettings: e, viewerSettings: t, readerLocation: n, view: r,
18961
20144
  className: "",
18962
20145
  cache: !0,
18963
20146
  layout: ""
18964
- }, Xy = (e = Yy, t = {}) => {
20147
+ }, mb = (e = pb, t = {}) => {
18965
20148
  switch (t.type) {
18966
20149
  case ra: return {
18967
20150
  ...e,
@@ -18969,11 +20152,11 @@ var By = U(({ readerSettings: e, viewerSettings: t, readerLocation: n, view: r,
18969
20152
  };
18970
20153
  default: return e;
18971
20154
  }
18972
- }, Zy = {
20155
+ }, hb = {
18973
20156
  enableTransitions: !1,
18974
20157
  handleEvents: !1,
18975
20158
  spinnerVisible: !0
18976
- }, Qy = (e = Zy, t = {}) => {
20159
+ }, gb = (e = hb, t = {}) => {
18977
20160
  switch (t.type) {
18978
20161
  case pa: return {
18979
20162
  ...e,
@@ -18993,11 +20176,11 @@ var By = U(({ readerSettings: e, viewerSettings: t, readerLocation: n, view: r,
18993
20176
  };
18994
20177
  default: return e;
18995
20178
  }
18996
- }, $y = {
20179
+ }, _b = {
18997
20180
  loaded: !1,
18998
20181
  ultimateOffsetLeft: 0,
18999
20182
  lastSpreadIndex: 0
19000
- }, eb = (e = $y, t) => {
20183
+ }, vb = (e = _b, t) => {
19001
20184
  switch (t.type) {
19002
20185
  case wa:
19003
20186
  case Ta: return {
@@ -19016,9 +20199,9 @@ var By = U(({ readerSettings: e, viewerSettings: t, readerLocation: n, view: r,
19016
20199
  case ka: return { ...e };
19017
20200
  default: return e;
19018
20201
  }
19019
- }, tb = new ig().get(), nb = mt({
19020
- readerSettings: Xy,
19021
- viewerSettings: (e = tb, t = {}) => {
20202
+ }, yb = new Sg().get(), bb = mt({
20203
+ readerSettings: mb,
20204
+ viewerSettings: (e = yb, t = {}) => {
19022
20205
  switch (t.type) {
19023
20206
  case za:
19024
20207
  case Ra:
@@ -19029,10 +20212,10 @@ var By = U(({ readerSettings: e, viewerSettings: t, readerLocation: n, view: r,
19029
20212
  default: return e;
19030
20213
  }
19031
20214
  },
19032
- readerLocation: Jy,
19033
- markers: Ky,
19034
- view: eb,
19035
- userInterface: Qy
20215
+ readerLocation: fb,
20216
+ markers: ub,
20217
+ view: vb,
20218
+ userInterface: gb
19036
20219
  });
19037
20220
  (function(e, t) {
19038
20221
  if (e.setImmediate) return;
@@ -19317,10 +20500,10 @@ var By = U(({ readerSettings: e, viewerSettings: t, readerLocation: n, view: r,
19317
20500
  })(typeof global < "u" ? global : typeof window < "u" ? window : void 0);
19318
20501
  //#endregion
19319
20502
  //#region src/lib/request-animation-frame.js
19320
- function rb() {
20503
+ function xb() {
19321
20504
  return Date.now ? Date.now() : (/* @__PURE__ */ new Date()).getTime();
19322
20505
  }
19323
- function ib() {
20506
+ function Sb() {
19324
20507
  let e = ["webkit", "moz"];
19325
20508
  for (let t = 0; t < e.length && !window.requestAnimationFrame; ++t) {
19326
20509
  let n = e[t];
@@ -19329,22 +20512,22 @@ function ib() {
19329
20512
  if (/iP(ad|hone|od).*OS 6/.test(window.navigator.userAgent) || !window.requestAnimationFrame || !window.cancelAnimationFrame) {
19330
20513
  let e = 0;
19331
20514
  window.requestAnimationFrame = (t) => {
19332
- let n = rb(), r = Math.max(e + 16, n);
20515
+ let n = xb(), r = Math.max(e + 16, n);
19333
20516
  return setTimeout(() => {
19334
20517
  t(e = r);
19335
20518
  }, r - n);
19336
20519
  }, window.cancelAnimationFrame = clearTimeout;
19337
20520
  }
19338
20521
  }
19339
- ib();
20522
+ Sb();
19340
20523
  //#endregion
19341
20524
  //#region src/index.jsx
19342
- var ab = () => /* @__PURE__ */ (0, X.jsx)("meta", {
20525
+ var Cb = () => /* @__PURE__ */ (0, X.jsx)("meta", {
19343
20526
  name: "generator",
19344
- content: `b-ber-react-reader: ${Uy}`
19345
- }), ob = (e = {}) => /* @__PURE__ */ (0, X.jsxs)(et, {
19346
- store: ut(nb, { readerSettings: jo(Yy, e) }, gt(_t(yt))),
19347
- children: [/* @__PURE__ */ (0, X.jsx)(ab, {}), /* @__PURE__ */ (0, X.jsx)(Hy, {})]
20527
+ content: `b-ber-react-reader: ${sb}`
20528
+ }), wb = (e = {}) => /* @__PURE__ */ (0, X.jsxs)(et, {
20529
+ store: ut(bb, { readerSettings: jo(pb, e) }, gt(_t(yt))),
20530
+ children: [/* @__PURE__ */ (0, X.jsx)(Cb, {}), /* @__PURE__ */ (0, X.jsx)(ob, {})]
19348
20531
  });
19349
20532
  //#endregion
19350
- export { ob as default };
20533
+ export { wb as default };