@sailfish-ai/recorder 1.8.8 → 1.8.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/recorder.js CHANGED
@@ -356,8 +356,26 @@ function withAppUrlMetadata(e) {
356
356
  return { ...e ?? {}, appUrl: (e == null ? void 0 : e.appUrl) ?? ((_a2 = window == null ? void 0 : window.location) == null ? void 0 : _a2.href) };
357
357
  }
358
358
  /[1-9][0-9]{12}/.test(Date.now().toString()) || (Q = () => (/* @__PURE__ */ new Date()).getTime());
359
- const ee = readDebugFlag(), te = "per_session";
360
- let ne = null, re = false, oe = null, se = null, ie = false, le = null, ce = null, pe = false;
359
+ const ee = readDebugFlag(), te = "per_session", ne = "sailfish_funcspan_global_state";
360
+ let re = null, oe = false, se = null, ie = null;
361
+ function saveGlobalFuncSpanState(e, a) {
362
+ try {
363
+ if ("undefined" == typeof localStorage) return;
364
+ const u = { enabled: e, expirationTimestampMs: a };
365
+ localStorage.setItem(ne, JSON.stringify(u)), ee && console.log("[Sailfish] Saved global function span state to localStorage:", u);
366
+ } catch (e2) {
367
+ ee && console.warn("[Sailfish] Failed to save global function span state to localStorage:", e2);
368
+ }
369
+ }
370
+ function clearGlobalFuncSpanState() {
371
+ try {
372
+ if ("undefined" == typeof localStorage) return;
373
+ localStorage.removeItem(ne), ee && console.log("[Sailfish] Cleared global function span state from localStorage");
374
+ } catch (e) {
375
+ ee && console.warn("[Sailfish] Failed to clear global function span state from localStorage:", e);
376
+ }
377
+ }
378
+ let le = false, ce = null, pe = null, de = false, he = null, me = null;
361
379
  function isWebSocketOpen(e) {
362
380
  return (e == null ? void 0 : e.readyState) === WebSocket.OPEN;
363
381
  }
@@ -368,15 +386,15 @@ async function flushNotifyQueue() {
368
386
  u.onsuccess = () => a(u.result), u.onerror = () => a([]);
369
387
  })) ?? [];
370
388
  })();
371
- if (isWebSocketOpen(ne)) try {
372
- for (const a of e) ne.send(a.value), await deleteNotifyMessageById(a.id);
389
+ if (isWebSocketOpen(re)) try {
390
+ for (const a of e) re.send(a.value), await deleteNotifyMessageById(a.id);
373
391
  } catch (e2) {
374
392
  }
375
393
  }
376
394
  async function flushBufferedEvents() {
377
- if (isWebSocketOpen(ne)) if (oe) await oe;
395
+ if (isWebSocketOpen(re)) if (se) await se;
378
396
  else {
379
- oe = (async () => {
397
+ se = (async () => {
380
398
  var _a2, _b;
381
399
  const e = await (async function getAllIndexedEvents() {
382
400
  return await withStore$1("readonly", (e2) => new Promise((a2) => {
@@ -391,33 +409,33 @@ async function flushBufferedEvents() {
391
409
  for (const e2 of Object.values(a)) {
392
410
  const a2 = buildBatches(e2, (e3) => eventSize(e3.data), 52428800);
393
411
  for (const e3 of a2) {
394
- if (!isWebSocketOpen(ne)) break;
412
+ if (!isWebSocketOpen(re)) break;
395
413
  const a3 = e3.map((e4) => {
396
414
  var _a3, _b2;
397
415
  return { ...e4.data, appUrl: ((_a3 = e4.data) == null ? void 0 : _a3.appUrl) ?? ((_b2 = window == null ? void 0 : window.location) == null ? void 0 : _b2.href) };
398
416
  }), u = e3.map((e4) => e4.id).filter((e4) => null != e4);
399
417
  try {
400
418
  const e4 = JSON.stringify({ type: "events", events: a3, mapUuid: window.sfMapUuid });
401
- ne.send(e4), await deleteEventsByIds(u);
419
+ re.send(e4), await deleteEventsByIds(u);
402
420
  } catch (e4) {
403
421
  }
404
422
  }
405
423
  }
406
424
  })();
407
425
  try {
408
- await oe;
426
+ await se;
409
427
  } finally {
410
- oe = null;
428
+ se = null;
411
429
  }
412
430
  }
413
431
  }
414
432
  function sendEvent(e) {
415
433
  var _a2;
416
434
  const a = { ...e, app_url: (e == null ? void 0 : e.app_url) ?? ((_a2 = window == null ? void 0 : window.location) == null ? void 0 : _a2.href) };
417
- if (re || !isWebSocketOpen(ne)) return void saveEventToIDB(a);
435
+ if (oe || !isWebSocketOpen(re)) return void saveEventToIDB(a);
418
436
  const u = JSON.stringify({ type: "event", event: a, mapUuid: window.sfMapUuid });
419
437
  try {
420
- ne.send(u);
438
+ re.send(u);
421
439
  } catch (e2) {
422
440
  saveEventToIDB(a);
423
441
  }
@@ -427,104 +445,118 @@ function initializeWebSocket(e, a, u) {
427
445
  const a2 = document.createElement("a");
428
446
  return a2.href = e2, `${a2.hostname}${a2.port ? `:${a2.port}` : ""}`;
429
447
  })(e), w2 = new URL(e).protocol;
430
- return ne = new $(`${"https:" === w2 ? "wss" : "ws"}://${m2}/ws/notify/?apiKey=${a}&sessionId=${u}&sender=JS%2FTS&version=1.8.8`, [], { connectionTimeout: 3e4 }), ne.addEventListener("open", () => {
431
- ee && (console.log("[Sailfish] WebSocket connection opened"), console.log("[Sailfish] Function span tracking state: " + (ie ? "ENABLED" : "DISABLED"))), (async () => {
448
+ return re = new $(`${"https:" === w2 ? "wss" : "ws"}://${m2}/ws/notify/?apiKey=${a}&sessionId=${u}&sender=JS%2FTS&version=1.8.9`, [], { connectionTimeout: 3e4 }), re.addEventListener("open", () => {
449
+ ee && (console.log("[Sailfish] WebSocket connection opened"), console.log("[Sailfish] Function span tracking state: " + (le ? "ENABLED" : "DISABLED"))), (async () => {
432
450
  try {
433
- re = true, await flushNotifyQueue(), await flushBufferedEvents();
451
+ oe = true, await flushNotifyQueue(), await flushBufferedEvents();
434
452
  } finally {
435
- re = false;
453
+ oe = false;
436
454
  }
437
- null != se && clearInterval(se), se = window.setInterval(() => {
455
+ null != ie && clearInterval(ie), ie = window.setInterval(() => {
438
456
  flushBufferedEvents();
439
457
  }, 2e3);
440
458
  })();
441
- }), ne.addEventListener("close", () => {
459
+ }), re.addEventListener("close", () => {
442
460
  ee && console.log("[Sailfish] WebSocket closed");
443
- }), ne.addEventListener("message", (e2) => {
461
+ }), re.addEventListener("message", (e2) => {
444
462
  try {
445
463
  const a2 = JSON.parse(e2.data);
446
- if ("funcSpanTrackingControl" === a2.type) if (ee && console.log("[Sailfish] Received funcSpanTrackingControl message:", { enabled: a2.enabled, timeoutSeconds: a2.timeoutSeconds, expirationTimestampMs: a2.expirationTimestampMs }), null !== le && (window.clearTimeout(le), le = null), ie = a2.enabled, pe = false, ee && console.log("[Sailfish] Function span tracking " + (a2.enabled ? "ENABLED (GLOBAL)" : "DISABLED (GLOBAL)")), a2.enabled) {
464
+ if ("funcSpanTrackingControl" === a2.type) if (ee && console.log("[Sailfish] Received funcSpanTrackingControl message:", { enabled: a2.enabled, timeoutSeconds: a2.timeoutSeconds, expirationTimestampMs: a2.expirationTimestampMs }), null !== ce && (window.clearTimeout(ce), ce = null), le = a2.enabled, de = false, ee && console.log("[Sailfish] Function span tracking " + (a2.enabled ? "ENABLED (GLOBAL)" : "DISABLED (GLOBAL)")), a2.enabled) {
447
465
  if (a2.expirationTimestampMs) {
448
- ce = a2.expirationTimestampMs;
449
- const e3 = Date.now(), u2 = ce - e3;
450
- ee && console.log(`[Sailfish] Server expiration timestamp: ${ce}, ms until expiration: ${u2}`), u2 > 0 ? le = window.setTimeout(() => {
451
- pe || (ie = false, ce = null, ee && console.log("[Sailfish] GLOBAL function span tracking auto-disabled at server expiration time"));
452
- }, u2) : (ie = false, ce = null, ee && console.log("[Sailfish] Tracking already expired, not enabling"));
466
+ pe = a2.expirationTimestampMs;
467
+ const e3 = Date.now(), u2 = pe - e3;
468
+ ee && console.log(`[Sailfish] Server expiration timestamp: ${pe}, ms until expiration: ${u2}`), u2 > 0 ? (saveGlobalFuncSpanState(true, pe), ce = window.setTimeout(() => {
469
+ de || (le = false, pe = null, clearGlobalFuncSpanState(), ee && console.log("[Sailfish] GLOBAL function span tracking auto-disabled at server expiration time"));
470
+ }, u2)) : (le = false, pe = null, clearGlobalFuncSpanState(), ee && console.log("[Sailfish] Tracking already expired, not enabling"));
453
471
  } else {
454
472
  const e3 = a2.timeoutSeconds || 3600;
455
- e3 > 0 && (ce = Date.now() + 1e3 * e3, le = window.setTimeout(() => {
456
- pe || (ie = false, ce = null, ee && console.log(`[Sailfish] GLOBAL function span tracking auto-disabled after ${e3}s (legacy)`));
473
+ e3 > 0 && (pe = Date.now() + 1e3 * e3, saveGlobalFuncSpanState(true, pe), ce = window.setTimeout(() => {
474
+ de || (le = false, pe = null, clearGlobalFuncSpanState(), ee && console.log(`[Sailfish] GLOBAL function span tracking auto-disabled after ${e3}s (legacy)`));
457
475
  }, 1e3 * e3));
458
476
  }
459
477
  try {
460
478
  const e3 = getOrSetSessionId();
461
- ne.send(JSON.stringify({ type: "funcSpanTrackingSessionReport", sessionId: e3, enabled: true, configurationType: "global" })), ee && console.log(`[Sailfish] GLOBAL tracking session report sent for session: ${e3}`);
479
+ re.send(JSON.stringify({ type: "funcSpanTrackingSessionReport", sessionId: e3, enabled: true, configurationType: "global" })), ee && console.log(`[Sailfish] GLOBAL tracking session report sent for session: ${e3}`);
462
480
  } catch (e3) {
463
481
  ee && console.warn("[Sailfish] Failed to send GLOBAL tracking session report:", e3);
464
482
  }
465
- } else ce = null;
483
+ } else pe = null, clearGlobalFuncSpanState();
466
484
  } catch (e3) {
467
485
  }
468
- }), ne;
486
+ }), re;
469
487
  }
470
488
  function sendMessage(e) {
471
489
  var _a2;
472
490
  "sessionId" in e || (e.sessionId = getOrSetSessionId());
473
491
  const a = JSON.stringify({ ...e, app_url: (e == null ? void 0 : e.app_url) ?? ((_a2 = window == null ? void 0 : window.location) == null ? void 0 : _a2.href) });
474
- if (isWebSocketOpen(ne)) try {
475
- ne.send(a);
492
+ if (isWebSocketOpen(re)) try {
493
+ re.send(a);
476
494
  } catch (e2) {
477
495
  saveNotifyMessageToIDB(a);
478
496
  }
479
497
  else saveNotifyMessageToIDB(a);
480
498
  }
481
499
  function enableFunctionSpanTracking() {
482
- if (ee && console.log("[Sailfish] enableFunctionSpanTracking() called - Report Issue recording started (LOCAL MODE)"), ie = true, pe = true, ce = null, null !== le && (window.clearTimeout(le), le = null), isWebSocketOpen(ne)) try {
500
+ if (ee && console.log("[Sailfish] enableFunctionSpanTracking() called - Report Issue recording started (LOCAL MODE)"), le && !de && (he = ce, me = pe, ee && console.log("[Sailfish] Saved global tracking state while switching to local mode")), le = true, de = true, pe = null, ce = null, isWebSocketOpen(re)) try {
483
501
  const e = { type: "funcSpanTrackingSessionReport", sessionId: getOrSetSessionId(), enabled: true, configurationType: te };
484
- ne.send(JSON.stringify(e));
502
+ re.send(JSON.stringify(e));
485
503
  } catch (e) {
486
504
  console.error("[FUNCSPAN START] ✗ Failed to send tracking session report:", e);
487
505
  }
488
506
  else ee && console.warn("[Sailfish] WebSocket not open, cannot report LOCAL tracking session");
489
507
  }
490
508
  function disableFunctionSpanTracking() {
491
- if (ee && console.log("[Sailfish] disableFunctionSpanTracking() called - Report Issue recording stopped"), isWebSocketOpen(ne)) try {
509
+ if (ee && console.log("[Sailfish] disableFunctionSpanTracking() called - Report Issue recording stopped"), isWebSocketOpen(re)) try {
492
510
  const e = { type: "funcSpanTrackingSessionReport", sessionId: getOrSetSessionId(), enabled: false, configurationType: te };
493
- ne.send(JSON.stringify(e));
511
+ re.send(JSON.stringify(e));
494
512
  } catch (e) {
495
513
  console.error("[FUNCSPAN STOP] ✗ Failed to send tracking stop report:", e);
496
514
  }
497
515
  else console.warn("[FUNCSPAN STOP] ✗ WebSocket not open, cannot notify tracking end");
498
- pe && (ie = false, pe = false, ce = null, ee && console.log("[Sailfish] LOCAL tracking mode disabled")), null !== le && (window.clearTimeout(le), le = null);
516
+ de && (de = false, null !== he || null !== me ? (le = true, pe = me, ce = he, ee && console.log("[Sailfish] LOCAL tracking mode disabled, restored GLOBAL tracking state"), he = null, me = null) : (le = false, pe = null, ce = null, ee && console.log("[Sailfish] LOCAL tracking mode disabled, no global tracking to restore")));
499
517
  }
500
518
  function isFunctionSpanTrackingEnabled() {
501
- return ie;
519
+ return le;
502
520
  }
503
521
  function getFuncSpanHeader() {
504
- if (!ie) return null;
505
- if (null !== ce) {
506
- if (Date.now() >= ce) return ie = false, ce = null, ee && console.log("[Sailfish] Function span tracking expired on header check - disabling now"), null;
522
+ if (!le) return null;
523
+ if (null !== pe) {
524
+ if (Date.now() >= pe) return le = false, pe = null, ee && console.log("[Sailfish] Function span tracking expired on header check - disabling now"), null;
507
525
  }
508
526
  return { name: "X-Sf3-FunctionSpanCaptureOverride", value: "1-0-5-5-0-1.0" };
509
527
  }
510
- const de = Object.freeze(Object.defineProperty({ __proto__: null, disableFunctionSpanTracking, enableFunctionSpanTracking, flushBufferedEvents, getFuncSpanHeader, initializeWebSocket, isFunctionSpanTrackingEnabled, sendEvent, sendMessage }, Symbol.toStringTag, { value: "Module" }));
511
- var he, me, ge = {}, ye = {}, we = {}, be = {};
528
+ (() => {
529
+ const e = (function loadGlobalFuncSpanState() {
530
+ try {
531
+ if ("undefined" == typeof localStorage) return null;
532
+ const e2 = localStorage.getItem(ne);
533
+ if (!e2) return null;
534
+ const a = JSON.parse(e2);
535
+ return a.enabled && a.expirationTimestampMs && Date.now() >= a.expirationTimestampMs ? (ee && console.log("[Sailfish] Stored global function span state has expired, clearing"), localStorage.removeItem(ne), null) : (ee && console.log("[Sailfish] Loaded global function span state from localStorage:", a), a);
536
+ } catch (e2) {
537
+ return ee && console.warn("[Sailfish] Failed to load global function span state from localStorage:", e2), null;
538
+ }
539
+ })();
540
+ e && e.enabled && (le = true, pe = e.expirationTimestampMs, de = false, ee && console.log("[Sailfish] Module init: Restored global function span tracking from localStorage:", { enabled: true, expirationTimestampMs: pe }));
541
+ })();
542
+ const ge = Object.freeze(Object.defineProperty({ __proto__: null, disableFunctionSpanTracking, enableFunctionSpanTracking, flushBufferedEvents, getFuncSpanHeader, initializeWebSocket, isFunctionSpanTrackingEnabled, sendEvent, sendMessage }, Symbol.toStringTag, { value: "Module" }));
543
+ var ye, we, be = {}, ve = {}, Ce = {}, ke = {};
512
544
  function requireBase64() {
513
- if (he) return be;
514
- he = 1;
545
+ if (ye) return ke;
546
+ ye = 1;
515
547
  var e = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");
516
- return be.encode = function(a) {
548
+ return ke.encode = function(a) {
517
549
  if (0 <= a && a < e.length) return e[a];
518
550
  throw new TypeError("Must be between 0 and 63: " + a);
519
- }, be.decode = function(e2) {
551
+ }, ke.decode = function(e2) {
520
552
  return 65 <= e2 && e2 <= 90 ? e2 - 65 : 97 <= e2 && e2 <= 122 ? e2 - 97 + 26 : 48 <= e2 && e2 <= 57 ? e2 - 48 + 52 : 43 == e2 ? 62 : 47 == e2 ? 63 : -1;
521
- }, be;
553
+ }, ke;
522
554
  }
523
555
  function requireBase64Vlq() {
524
- if (me) return we;
525
- me = 1;
556
+ if (we) return Ce;
557
+ we = 1;
526
558
  var e = requireBase64();
527
- return we.encode = function base64VLQ_encode(a) {
559
+ return Ce.encode = function base64VLQ_encode(a) {
528
560
  var u, m2 = "", w2 = (function toVLQSigned(e2) {
529
561
  return e2 < 0 ? 1 + (-e2 << 1) : 0 + (e2 << 1);
530
562
  })(a);
@@ -532,7 +564,7 @@ function requireBase64Vlq() {
532
564
  u = 31 & w2, (w2 >>>= 5) > 0 && (u |= 32), m2 += e.encode(u);
533
565
  } while (w2 > 0);
534
566
  return m2;
535
- }, we.decode = function base64VLQ_decode(a, u, m2) {
567
+ }, Ce.decode = function base64VLQ_decode(a, u, m2) {
536
568
  var w2, b2, C2 = a.length, x2 = 0, I2 = 0;
537
569
  do {
538
570
  if (u >= C2) throw new Error("Expected more digits in base 64 VLQ value.");
@@ -543,11 +575,11 @@ function requireBase64Vlq() {
543
575
  var a2 = e2 >> 1;
544
576
  return 1 & ~e2 ? a2 : -a2;
545
577
  })(x2), m2.rest = u;
546
- }, we;
578
+ }, Ce;
547
579
  }
548
- var ve, Ce = {};
580
+ var xe, Me = {};
549
581
  function requireUtil() {
550
- return ve || (ve = 1, (function(e) {
582
+ return xe || (xe = 1, (function(e) {
551
583
  e.getArg = function getArg(e2, a2, u2) {
552
584
  if (a2 in e2) return e2[a2];
553
585
  if (3 === arguments.length) return u2;
@@ -659,12 +691,12 @@ function requireUtil() {
659
691
  }
660
692
  return m2(a2);
661
693
  };
662
- })(Ce)), Ce;
694
+ })(Me)), Me;
663
695
  }
664
- var ke, xe = {};
696
+ var Ie, Oe = {};
665
697
  function requireArraySet() {
666
- if (ke) return xe;
667
- ke = 1;
698
+ if (Ie) return Oe;
699
+ Ie = 1;
668
700
  var e = requireUtil(), a = Object.prototype.hasOwnProperty, u = "undefined" != typeof Map;
669
701
  function ArraySet() {
670
702
  this._array = [], this._set = u ? /* @__PURE__ */ new Map() : /* @__PURE__ */ Object.create(null);
@@ -695,12 +727,12 @@ function requireArraySet() {
695
727
  throw new Error("No element indexed by " + e2);
696
728
  }, ArraySet.prototype.toArray = function ArraySet_toArray() {
697
729
  return this._array.slice();
698
- }, xe.ArraySet = ArraySet, xe;
730
+ }, Oe.ArraySet = ArraySet, Oe;
699
731
  }
700
- var Me, Ie, Oe = {};
732
+ var Ee, Le, Ae = {};
701
733
  function requireMappingList() {
702
- if (Me) return Oe;
703
- Me = 1;
734
+ if (Ee) return Ae;
735
+ Ee = 1;
704
736
  var e = requireUtil();
705
737
  function MappingList() {
706
738
  this._array = [], this._sorted = true, this._last = { generatedLine: -1, generatedColumn: 0 };
@@ -714,11 +746,11 @@ function requireMappingList() {
714
746
  })(this._last, a) ? (this._sorted = false, this._array.push(a)) : (this._last = a, this._array.push(a));
715
747
  }, MappingList.prototype.toArray = function MappingList_toArray() {
716
748
  return this._sorted || (this._array.sort(e.compareByGeneratedPositionsInflated), this._sorted = true), this._array;
717
- }, Oe.MappingList = MappingList, Oe;
749
+ }, Ae.MappingList = MappingList, Ae;
718
750
  }
719
751
  function requireSourceMapGenerator() {
720
- if (Ie) return ye;
721
- Ie = 1;
752
+ if (Le) return ve;
753
+ Le = 1;
722
754
  var e = requireBase64Vlq(), a = requireUtil(), u = requireArraySet().ArraySet, m2 = requireMappingList().MappingList;
723
755
  function SourceMapGenerator(e2) {
724
756
  e2 || (e2 = {}), this._file = a.getArg(e2, "file", null), this._sourceRoot = a.getArg(e2, "sourceRoot", null), this._skipValidation = a.getArg(e2, "skipValidation", false), this._ignoreInvalidMapping = a.getArg(e2, "ignoreInvalidMapping", false), this._sources = new u(), this._names = new u(), this._mappings = new m2(), this._sourcesContents = null;
@@ -795,11 +827,11 @@ function requireSourceMapGenerator() {
795
827
  return null != this._file && (e2.file = this._file), null != this._sourceRoot && (e2.sourceRoot = this._sourceRoot), this._sourcesContents && (e2.sourcesContent = this._generateSourcesContent(e2.sources, e2.sourceRoot)), e2;
796
828
  }, SourceMapGenerator.prototype.toString = function SourceMapGenerator_toString() {
797
829
  return JSON.stringify(this.toJSON());
798
- }, ye.SourceMapGenerator = SourceMapGenerator, ye;
830
+ }, ve.SourceMapGenerator = SourceMapGenerator, ve;
799
831
  }
800
- var Ee, Le = {}, Ae = {};
832
+ var Te, De = {}, Ue = {};
801
833
  function requireBinarySearch() {
802
- return Ee || (Ee = 1, (function(e) {
834
+ return Te || (Te = 1, (function(e) {
803
835
  function recursiveSearch(a, u, m2, w2, b2, C2) {
804
836
  var x2 = Math.floor((u - a) / 2) + a, I2 = b2(m2, w2[x2], true);
805
837
  return 0 === I2 ? x2 : I2 > 0 ? u - x2 > 1 ? recursiveSearch(x2, u, m2, w2, b2, C2) : C2 == e.LEAST_UPPER_BOUND ? u < w2.length ? u : -1 : x2 : x2 - a > 1 ? recursiveSearch(a, x2, m2, w2, b2, C2) : C2 == e.LEAST_UPPER_BOUND ? x2 : a < 0 ? -1 : a;
@@ -811,11 +843,11 @@ function requireBinarySearch() {
811
843
  for (; b2 - 1 >= 0 && 0 === m2(u[b2], u[b2 - 1], true); ) --b2;
812
844
  return b2;
813
845
  };
814
- })(Ae)), Ae;
846
+ })(Ue)), Ue;
815
847
  }
816
- var Te, De, Ue = {};
848
+ var Be, je, Ge = {};
817
849
  function requireQuickSort() {
818
- if (Te) return Ue;
850
+ if (Be) return Ge;
819
851
  function SortTemplate(e2) {
820
852
  function swap(e3, a, u) {
821
853
  var m2 = e3[a];
@@ -834,21 +866,21 @@ function requireQuickSort() {
834
866
  }
835
867
  };
836
868
  }
837
- Te = 1;
869
+ Be = 1;
838
870
  let e = /* @__PURE__ */ new WeakMap();
839
- return Ue.quickSort = function(a, u, m2 = 0) {
871
+ return Ge.quickSort = function(a, u, m2 = 0) {
840
872
  let w2 = e.get(u);
841
873
  void 0 === w2 && (w2 = (function cloneSort(e2) {
842
874
  let a2 = SortTemplate.toString();
843
875
  return new Function(`return ${a2}`)()(e2);
844
876
  })(u), e.set(u, w2)), w2(a, u, m2, a.length - 1);
845
- }, Ue;
877
+ }, Ge;
846
878
  }
847
- var Be, je, Ge = {};
848
- var Ve = (function requireSourceMap() {
849
- return je || (je = 1, ge.SourceMapGenerator = requireSourceMapGenerator().SourceMapGenerator, ge.SourceMapConsumer = (function requireSourceMapConsumer() {
850
- if (De) return Le;
851
- De = 1;
879
+ var Ve, qe, He = {};
880
+ var Je = (function requireSourceMap() {
881
+ return qe || (qe = 1, be.SourceMapGenerator = requireSourceMapGenerator().SourceMapGenerator, be.SourceMapConsumer = (function requireSourceMapConsumer() {
882
+ if (je) return De;
883
+ je = 1;
852
884
  var e = requireUtil(), a = requireBinarySearch(), u = requireArraySet().ArraySet, m2 = requireBase64Vlq(), w2 = requireQuickSort().quickSort;
853
885
  function SourceMapConsumer(a2, u2) {
854
886
  var m3 = a2;
@@ -905,7 +937,7 @@ var Ve = (function requireSourceMap() {
905
937
  else for (var _2 = x2.originalColumn; x2 && x2.originalLine === m3 && x2.originalColumn == _2; ) b3.push({ line: e.getArg(x2, "generatedLine", null), column: e.getArg(x2, "generatedColumn", null), lastColumn: e.getArg(x2, "lastGeneratedColumn", null) }), x2 = this._originalMappings[++C2];
906
938
  }
907
939
  return b3;
908
- }, Le.SourceMapConsumer = SourceMapConsumer, BasicSourceMapConsumer.prototype = Object.create(SourceMapConsumer.prototype), BasicSourceMapConsumer.prototype.consumer = SourceMapConsumer, BasicSourceMapConsumer.prototype._findSourceIndex = function(a2) {
940
+ }, De.SourceMapConsumer = SourceMapConsumer, BasicSourceMapConsumer.prototype = Object.create(SourceMapConsumer.prototype), BasicSourceMapConsumer.prototype.consumer = SourceMapConsumer, BasicSourceMapConsumer.prototype._findSourceIndex = function(a2) {
909
941
  var u2, m3 = a2;
910
942
  if (null != this.sourceRoot && (m3 = e.relative(this.sourceRoot, m3)), this._sources.has(m3)) return this._sources.indexOf(m3);
911
943
  for (u2 = 0; u2 < this._absoluteSources.length; ++u2) if (this._absoluteSources[u2] == a2) return u2;
@@ -1022,7 +1054,7 @@ var Ve = (function requireSourceMap() {
1022
1054
  if (b3.source === m3.source) return { line: e.getArg(b3, "generatedLine", null), column: e.getArg(b3, "generatedColumn", null), lastColumn: e.getArg(b3, "lastGeneratedColumn", null) };
1023
1055
  }
1024
1056
  return { line: null, column: null, lastColumn: null };
1025
- }, Le.BasicSourceMapConsumer = BasicSourceMapConsumer, IndexedSourceMapConsumer.prototype = Object.create(SourceMapConsumer.prototype), IndexedSourceMapConsumer.prototype.constructor = SourceMapConsumer, IndexedSourceMapConsumer.prototype._version = 3, Object.defineProperty(IndexedSourceMapConsumer.prototype, "sources", { get: function() {
1057
+ }, De.BasicSourceMapConsumer = BasicSourceMapConsumer, IndexedSourceMapConsumer.prototype = Object.create(SourceMapConsumer.prototype), IndexedSourceMapConsumer.prototype.constructor = SourceMapConsumer, IndexedSourceMapConsumer.prototype._version = 3, Object.defineProperty(IndexedSourceMapConsumer.prototype, "sources", { get: function() {
1026
1058
  for (var e2 = [], a2 = 0; a2 < this._sections.length; a2++) for (var u2 = 0; u2 < this._sections[a2].consumer.sources.length; u2++) e2.push(this._sections[a2].consumer.sources[u2]);
1027
1059
  return e2;
1028
1060
  } }), IndexedSourceMapConsumer.prototype.originalPositionFor = function IndexedSourceMapConsumer_originalPositionFor(u2) {
@@ -1061,10 +1093,10 @@ var Ve = (function requireSourceMap() {
1061
1093
  this.__generatedMappings.push(E2), "number" == typeof E2.originalLine && this.__originalMappings.push(E2);
1062
1094
  }
1063
1095
  w2(this.__generatedMappings, e.compareByGeneratedPositionsDeflated), w2(this.__originalMappings, e.compareByOriginalPositions);
1064
- }, Le.IndexedSourceMapConsumer = IndexedSourceMapConsumer, Le;
1065
- })().SourceMapConsumer, ge.SourceNode = (function requireSourceNode() {
1066
- if (Be) return Ge;
1067
- Be = 1;
1096
+ }, De.IndexedSourceMapConsumer = IndexedSourceMapConsumer, De;
1097
+ })().SourceMapConsumer, be.SourceNode = (function requireSourceNode() {
1098
+ if (Ve) return He;
1099
+ Ve = 1;
1068
1100
  var e = requireSourceMapGenerator().SourceMapGenerator, a = requireUtil(), u = /(\r?\n)/, m2 = "$$$isSourceNode$$$";
1069
1101
  function SourceNode(e2, a2, u2, w2, b2) {
1070
1102
  this.children = [], this.sourceContents = {}, this.line = null == e2 ? null : e2, this.column = null == a2 ? null : a2, this.source = null == u2 ? null : u2, this.name = null == b2 ? null : b2, this[m2] = true, null != w2 && this.add(w2);
@@ -1148,20 +1180,20 @@ var Ve = (function requireSourceMap() {
1148
1180
  }), this.walkSourceContents(function(e2, a3) {
1149
1181
  m3.setSourceContent(e2, a3);
1150
1182
  }), { code: u2.code, map: m3 };
1151
- }, Ge.SourceNode = SourceNode, Ge;
1152
- })().SourceNode), ge;
1183
+ }, He.SourceNode = SourceNode, He;
1184
+ })().SourceNode), be;
1153
1185
  })();
1154
- const qe = /* @__PURE__ */ new Map(), He = /(?:\(|\s|^)(https?:\/\/[^)\s]+|\/[^)\s]+|[^)\s]+)?\/?([^/]+\.js)(?:\?[^:)]*)?:(\d+):(\d+)/;
1186
+ const Ye = /* @__PURE__ */ new Map(), Xe = /(?:\(|\s|^)(https?:\/\/[^)\s]+|\/[^)\s]+|[^)\s]+)?\/?([^/]+\.js)(?:\?[^:)]*)?:(\d+):(\d+)/;
1155
1187
  async function getConsumerFor(e, a) {
1156
1188
  const u = (e || `/assets/${a}`).split("?")[0], m2 = [`${u}.map`, u.replace(/\.js$/, ".js.map"), `/assets/${a}.map`];
1157
1189
  for (const e2 of m2) try {
1158
- if (qe.has(e2)) return qe.get(e2);
1190
+ if (Ye.has(e2)) return Ye.get(e2);
1159
1191
  const a2 = await fetch(e2);
1160
1192
  if (!a2.ok) continue;
1161
1193
  const u2 = await a2.json();
1162
1194
  if (!u2 || !u2.mappings || !u2.sources) continue;
1163
- const m3 = await new Ve.SourceMapConsumer(u2);
1164
- return qe.set(e2, m3), m3;
1195
+ const m3 = await new Je.SourceMapConsumer(u2);
1196
+ return Ye.set(e2, m3), m3;
1165
1197
  } catch {
1166
1198
  }
1167
1199
  return null;
@@ -1173,7 +1205,7 @@ async function captureError(e, a = false) {
1173
1205
  if (!e2) return ["No stack trace available"];
1174
1206
  const a2 = Array.isArray(e2) ? e2 : e2.split("\n"), u2 = [];
1175
1207
  for (const e3 of a2) {
1176
- const a3 = e3.match(He);
1208
+ const a3 = e3.match(Xe);
1177
1209
  if (!a3) {
1178
1210
  u2.push(e3);
1179
1211
  continue;
@@ -1188,8 +1220,8 @@ async function captureError(e, a = false) {
1188
1220
  u2.push(`${e3} [No source map found for ${w3}]`);
1189
1221
  continue;
1190
1222
  }
1191
- let O2 = _2.originalPositionFor({ line: x2, column: I2, bias: Ve.SourceMapConsumer.GREATEST_LOWER_BOUND });
1192
- if (!O2.source || null == O2.line) for (let e4 = 1; e4 <= 20 && (O2 = _2.originalPositionFor({ line: x2, column: Math.max(0, I2 - e4), bias: Ve.SourceMapConsumer.GREATEST_LOWER_BOUND }), !O2.source || null == O2.line); e4++) ;
1223
+ let O2 = _2.originalPositionFor({ line: x2, column: I2, bias: Je.SourceMapConsumer.GREATEST_LOWER_BOUND });
1224
+ if (!O2.source || null == O2.line) for (let e4 = 1; e4 <= 20 && (O2 = _2.originalPositionFor({ line: x2, column: Math.max(0, I2 - e4), bias: Je.SourceMapConsumer.GREATEST_LOWER_BOUND }), !O2.source || null == O2.line); e4++) ;
1193
1225
  if (O2.source && null != O2.line) {
1194
1226
  const e4 = O2.name || "anonymous";
1195
1227
  u2.push(`${O2.source}:${O2.line}:${O2.column ?? 0} (${e4})`);
@@ -1199,11 +1231,11 @@ async function captureError(e, a = false) {
1199
1231
  })(m2), b2 = w2.filter((e2) => !e2.includes("chunk-") && !e2.includes("react-dom"));
1200
1232
  sendMessage({ type: "event", event: { type: 6, data: { payload: { message: u, stack: m2, trace: b2.length > 0 ? b2 : w2, filteredStack: b2, userAgent: navigator.userAgent, url: window.location.href, timestamp: Date.now(), level: "error" } } } });
1201
1233
  }
1202
- const Je = readDebugFlag();
1203
- const Ye = readDebugFlag();
1234
+ const Qe = readDebugFlag();
1235
+ const et = readDebugFlag();
1204
1236
  function sendGraphQLRequest(e, a, u, m2 = 5, w2 = 2e3, b2 = 2) {
1205
1237
  const C2 = `${u.backendApi}/graphql/?apiKey=${u.apiKey}`;
1206
- return Ye && console.log(`Initial GraphQL request for ${e} at ${C2}`), (function exponentialBackoff(e2, a2, u2 = 5, m3 = 2e3, w3 = 2) {
1238
+ return et && console.log(`Initial GraphQL request for ${e} at ${C2}`), (function exponentialBackoff(e2, a2, u2 = 5, m3 = 2e3, w3 = 2) {
1207
1239
  let b3 = 0;
1208
1240
  const attemptRequest = async () => {
1209
1241
  try {
@@ -1211,12 +1243,12 @@ function sendGraphQLRequest(e, a, u, m2 = 5, w2 = 2e3, b2 = 2) {
1211
1243
  } catch (e3) {
1212
1244
  if (b3++, b3 > u2) throw e3;
1213
1245
  const C3 = m3 * Math.pow(w3, b3 - 1);
1214
- return Je && console.log(`Attempt ${b3} failed: ${a2}; Retrying in ${C3}ms...`), await new Promise((e4) => setTimeout(e4, C3)), attemptRequest();
1246
+ return Qe && console.log(`Attempt ${b3} failed: ${a2}; Retrying in ${C3}ms...`), await new Promise((e4) => setTimeout(e4, C3)), attemptRequest();
1215
1247
  }
1216
1248
  };
1217
1249
  return attemptRequest();
1218
1250
  })(() => fetch(C2, { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ operationName: e, query: a, variables: u }) }).then((e2) => {
1219
- if (Ye && console.log(`Received response with status: ${e2.status}`), !e2.ok) throw new Error(`GraphQL request failed with status ${e2.status}`);
1251
+ if (et && console.log(`Received response with status: ${e2.status}`), !e2.ok) throw new Error(`GraphQL request failed with status ${e2.status}`);
1220
1252
  return e2.json();
1221
1253
  }), "Sending GraphQL request to Sailfish AI", m2, w2, b2);
1222
1254
  }
@@ -1232,9 +1264,9 @@ function sendDomainsToNotPropagateHeaderTo(e, a, u) {
1232
1264
  function createTriageFromRecorder(e, a, u, m2, w2, b2) {
1233
1265
  return sendGraphQLRequest("CreateTriageFromRecorder", "mutation CreateTriageFromRecorder(\n $apiKey: String!,\n $recordingSessionId: String!,\n $timestampStart: String!,\n $timestampEnd: String!,\n $description: String\n ) {\n createTriageFromRecorder(\n apiKey: $apiKey,\n recordingSessionId: $recordingSessionId,\n timestampStart: $timestampStart,\n timestampEnd: $timestampEnd,\n description: $description\n ) {\n id\n }\n }\n ", { apiKey: e, recordingSessionId: u, timestampStart: m2, timestampEnd: w2, description: b2, backendApi: a });
1234
1266
  }
1235
- const Xe = { enabled: false, openModalExistingMode: { key: "e", requireCmdCtrl: false }, openModalCaptureNewMode: { key: "n", requireCmdCtrl: false }, closeModal: { key: "escape", requireCmdCtrl: false }, submitReport: { key: "enter", requireCmdCtrl: true }, startRecording: { key: "r", requireCmdCtrl: false }, stopRecording: { key: "escape", requireCmdCtrl: true } }, Qe = { shortcuts: { ...Xe }, resolveSessionId: null, apiKey: null, backendApi: null, triageBaseUrl: "https://app.sailfishqa.com", deactivateIsolation: () => {
1267
+ const nt = { enabled: false, openModalExistingMode: { key: "e", requireCmdCtrl: false }, openModalCaptureNewMode: { key: "n", requireCmdCtrl: false }, closeModal: { key: "escape", requireCmdCtrl: false }, submitReport: { key: "enter", requireCmdCtrl: true }, startRecording: { key: "r", requireCmdCtrl: false }, stopRecording: { key: "escape", requireCmdCtrl: true } }, ot = { shortcuts: { ...nt }, resolveSessionId: null, apiKey: null, backendApi: null, triageBaseUrl: "https://app.sailfishqa.com", deactivateIsolation: () => {
1236
1268
  } };
1237
- let et = null, nt = { mode: "lookback", description: "" }, ot = null, st = null, it = null, at = false;
1269
+ let st = null, it = { mode: "lookback", description: "" }, at = null, lt = null, ct = null, ut = false;
1238
1270
  function getShortcutKeyCmdCtrlLabel() {
1239
1271
  return (function isMacPlatform() {
1240
1272
  const e = navigator.userAgentData;
@@ -1247,11 +1279,11 @@ function getShortcutLabelFromContext(e) {
1247
1279
  return e2.requireCmdCtrl && a.push(getShortcutKeyCmdCtrlLabel()), a.push((function formatShortcutKeyLabel(e3) {
1248
1280
  return ({ escape: "esc" }[e3.toLowerCase()] || e3).toUpperCase();
1249
1281
  })(e2.key)), a.map((e3) => `<span style="background: #F1F5F9; border:1px solid #cbd5e1; border-radius: 4px; padding: 0 4px; font-weight: 500; font-size: 12px; color: #94A3B8; line-height: 16px;">${e3}</span>`).join(e2.requireCmdCtrl ? " + " : "");
1250
- })(Qe.shortcuts[e]);
1282
+ })(ot.shortcuts[e]);
1251
1283
  }
1252
1284
  function setupIssueReporting(e) {
1253
- Qe.apiKey = e.apiKey, Qe.backendApi = e.backendApi, Qe.resolveSessionId = e.getSessionId, e.customBaseUrl && (Qe.triageBaseUrl = e.customBaseUrl), Qe.shortcuts = (function mergeShortcutsConfig(e2) {
1254
- const a2 = { ...Xe };
1285
+ ot.apiKey = e.apiKey, ot.backendApi = e.backendApi, ot.resolveSessionId = e.getSessionId, e.customBaseUrl && (ot.triageBaseUrl = e.customBaseUrl), ot.shortcuts = (function mergeShortcutsConfig(e2) {
1286
+ const a2 = { ...nt };
1255
1287
  if (!e2) return a2;
1256
1288
  "boolean" == typeof e2.enabled && (a2.enabled = e2.enabled);
1257
1289
  const u = ["openModalExistingMode", "openModalCaptureNewMode", "closeModal", "submitReport", "startRecording", "stopRecording"];
@@ -1261,7 +1293,7 @@ function setupIssueReporting(e) {
1261
1293
  }
1262
1294
  return a2;
1263
1295
  })(e.shortcuts);
1264
- const { shortcuts: a } = Qe;
1296
+ const { shortcuts: a } = ot;
1265
1297
  window.addEventListener("keydown", (e2) => {
1266
1298
  const u = (function isTypingInInput() {
1267
1299
  const e3 = document.activeElement;
@@ -1271,23 +1303,23 @@ function setupIssueReporting(e) {
1271
1303
  } : injectModalHTML;
1272
1304
  if (C2 && shortcutUsed("openModalExistingMode")) return e2.preventDefault(), void x2("lookback");
1273
1305
  if (C2 && shortcutUsed("openModalCaptureNewMode")) return e2.preventDefault(), void x2("startnow");
1274
- if (b2 && !at && shortcutUsed("closeModal")) return e2.preventDefault(), void closeModal();
1306
+ if (b2 && !ut && shortcutUsed("closeModal")) return e2.preventDefault(), void closeModal();
1275
1307
  if (b2 && shortcutUsed("submitReport")) {
1276
1308
  const a2 = document.getElementById("sf-issue-submit-btn");
1277
1309
  return void (a2 && !a2.disabled && (e2.preventDefault(), a2.click()));
1278
1310
  }
1279
- if (at && m2 === a.stopRecording.key && w2 === a.stopRecording.requireCmdCtrl) return e2.preventDefault(), void stopRecording();
1280
- if (b2 && "startnow" === nt.mode && m2 === a.startRecording.key && w2 === a.startRecording.requireCmdCtrl && !u) {
1311
+ if (ut && m2 === a.stopRecording.key && w2 === a.stopRecording.requireCmdCtrl) return e2.preventDefault(), void stopRecording();
1312
+ if (b2 && "startnow" === it.mode && m2 === a.startRecording.key && w2 === a.startRecording.requireCmdCtrl && !u) {
1281
1313
  const a2 = document.getElementById("sf-start-recording-btn");
1282
1314
  return void (a2 && (e2.preventDefault(), a2.click()));
1283
1315
  }
1284
1316
  });
1285
1317
  }
1286
1318
  function openReportIssueModal() {
1287
- at ? stopRecording() : (injectModalHTML(), et && document.body.appendChild(et));
1319
+ ut ? stopRecording() : (injectModalHTML(), st && document.body.appendChild(st));
1288
1320
  }
1289
1321
  function closeModal() {
1290
- Qe.deactivateIsolation(), document.activeElement instanceof HTMLElement && document.activeElement.blur(), (et == null ? void 0 : et.parentNode) && et.parentNode.removeChild(et), et = null, at || (nt = { mode: "lookback", description: "", occurredInThisTab: true }, ot = null, st = null), it && clearInterval(it);
1322
+ ot.deactivateIsolation(), document.activeElement instanceof HTMLElement && document.activeElement.blur(), (st == null ? void 0 : st.parentNode) && st.parentNode.removeChild(st), st = null, ut || (it = { mode: "lookback", description: "", occurredInThisTab: true }, at = null, lt = null), ct && clearInterval(ct);
1291
1323
  }
1292
1324
  function activateModalIsolation(e) {
1293
1325
  e.setAttribute("role", "dialog"), e.setAttribute("aria-modal", "true"), e.hasAttribute("tabindex") || e.setAttribute("tabindex", "-1");
@@ -1346,9 +1378,9 @@ function activateModalIsolation(e) {
1346
1378
  };
1347
1379
  }
1348
1380
  function injectModalHTML(e = "lookback") {
1349
- et && (et.remove(), et = null), et = document.createElement("div"), et.id = "sf-report-issue-modal";
1381
+ st && (st.remove(), st = null), st = document.createElement("div"), st.id = "sf-report-issue-modal";
1350
1382
  const a = "startnow" === e;
1351
- et.innerHTML = `
1383
+ st.innerHTML = `
1352
1384
  <div style="position:fixed; inset:0; background:rgba(0,0,0,0.4); z-index:9998;"></div>
1353
1385
  <div style="position:fixed; top:50%; left:50%; transform:translate(-50%, -50%);
1354
1386
  background:#fff; padding:24px; border-radius:12px;
@@ -1396,7 +1428,7 @@ function injectModalHTML(e = "lookback") {
1396
1428
  <textarea id="sf-issue-description" placeholder="Add description here"
1397
1429
  style="width:100%; height:80px; padding:8px 12px; font-size:14px;
1398
1430
  border:1px solid #cbd5e1; border-radius:6px; margin-bottom:20px;
1399
- resize:none; outline:none;">${nt.description}</textarea>
1431
+ resize:none; outline:none;">${it.description}</textarea>
1400
1432
 
1401
1433
  <div id="sf-lookback-container" style="display:${a ? "none" : "block"}; margin-bottom:20px;">
1402
1434
  <label for="sf-lookback-minutes" style="display:block; font-size:14px; font-weight:500; margin-bottom:6px;">
@@ -1484,8 +1516,8 @@ function injectModalHTML(e = "lookback") {
1484
1516
  <a href="mailto:info@sailfishqa.com?subject=I'd%20love%20to%20learn%20more&body=Hey%2C%20Sailfish%20AI%20team%20-%20I'd%20love%20to%20learn%20more%20about%20Sailfish%20AI!">Powered by Sailfish AI</a>
1485
1517
  </div>
1486
1518
  </div>
1487
- `, nt.mode = e, document.body.appendChild(et), (function bindListeners() {
1488
- const e2 = et == null ? void 0 : et.querySelectorAll(".sf-issue-tab"), a2 = document.getElementById("sf-start-recording-btn"), u = document.getElementById("sf-modal-close-btn"), m2 = document.getElementById("sf-issue-submit-btn"), w2 = document.getElementById("sf-lookback-minutes");
1519
+ `, it.mode = e, document.body.appendChild(st), (function bindListeners() {
1520
+ const e2 = st == null ? void 0 : st.querySelectorAll(".sf-issue-tab"), a2 = document.getElementById("sf-start-recording-btn"), u = document.getElementById("sf-modal-close-btn"), m2 = document.getElementById("sf-issue-submit-btn"), w2 = document.getElementById("sf-lookback-minutes");
1489
1521
  e2 == null ? void 0 : e2.forEach((e3) => {
1490
1522
  e3.addEventListener("click", (e4) => {
1491
1523
  const a3 = e4.currentTarget.dataset.mode;
@@ -1493,11 +1525,11 @@ function injectModalHTML(e = "lookback") {
1493
1525
  });
1494
1526
  }), u && (u.onclick = closeModal);
1495
1527
  w2 && w2.addEventListener("change", () => {
1496
- "lookback" === nt.mode && (m2.disabled = false, m2.style.opacity = "1", m2.style.cursor = "pointer");
1528
+ "lookback" === it.mode && (m2.disabled = false, m2.style.opacity = "1", m2.style.cursor = "pointer");
1497
1529
  });
1498
1530
  a2 && (a2.onclick = () => {
1499
1531
  const e3 = document.getElementById("sf-issue-description");
1500
- e3 && (nt.description = e3.value), (function startCountdownThenRecord() {
1532
+ e3 && (it.description = e3.value), (function startCountdownThenRecord() {
1501
1533
  if (document.getElementById("sf-countdown-overlay")) return;
1502
1534
  const e4 = document.createElement("div");
1503
1535
  e4.id = "sf-countdown-overlay", e4.style.cssText = "\n position: fixed;\n inset: 0;\n background: rgba(0,0,0,0.6);\n z-index: 10001;\n display: flex;\n justify-content: center;\n align-items: center;\n font-size: 80px;\n font-weight: bold;\n color: white;\n font-family: sans-serif;\n ";
@@ -1506,9 +1538,9 @@ function injectModalHTML(e = "lookback") {
1506
1538
  const u2 = setInterval(async () => {
1507
1539
  if (a3--, a3 > 0) e4.textContent = a3.toString();
1508
1540
  else {
1509
- clearInterval(u2), document.body.removeChild(e4), ot = Date.now(), at = true;
1541
+ clearInterval(u2), document.body.removeChild(e4), at = Date.now(), ut = true;
1510
1542
  try {
1511
- const { enableFunctionSpanTracking: e5 } = await Promise.resolve().then(() => de);
1543
+ const { enableFunctionSpanTracking: e5 } = await Promise.resolve().then(() => ge);
1512
1544
  e5();
1513
1545
  } catch (e5) {
1514
1546
  console.error("[Report Issue] Failed to enable function span tracking:", e5);
@@ -1534,8 +1566,8 @@ function injectModalHTML(e = "lookback") {
1534
1566
  `, e5.addEventListener("click", () => stopRecording()), document.body.appendChild(e5);
1535
1567
  const a4 = e5.querySelector("#sf-recording-timer");
1536
1568
  if (!a4) return;
1537
- it = setInterval(() => {
1538
- const e6 = Date.now() - (ot ?? Date.now()), u3 = Math.floor(e6 / 6e4).toString().padStart(2, "0"), m3 = Math.floor(e6 % 6e4 / 1e3).toString().padStart(2, "0");
1569
+ ct = setInterval(() => {
1570
+ const e6 = Date.now() - (at ?? Date.now()), u3 = Math.floor(e6 / 6e4).toString().padStart(2, "0"), m3 = Math.floor(e6 % 6e4 / 1e3).toString().padStart(2, "0");
1539
1571
  a4.textContent = `${u3}:${m3}`;
1540
1572
  }, 1e3);
1541
1573
  })();
@@ -1543,12 +1575,12 @@ function injectModalHTML(e = "lookback") {
1543
1575
  }, 1e3);
1544
1576
  })();
1545
1577
  });
1546
- et == null ? void 0 : et.addEventListener("click", (e3) => {
1578
+ st == null ? void 0 : st.addEventListener("click", (e3) => {
1547
1579
  var _a2;
1548
1580
  if (e3.target.closest("#sf-issue-submit-btn")) {
1549
- const e4 = ((_a2 = document.getElementById("sf-issue-description")) == null ? void 0 : _a2.value) || "", a3 = nt.mode;
1581
+ const e4 = ((_a2 = document.getElementById("sf-issue-description")) == null ? void 0 : _a2.value) || "", a3 = it.mode;
1550
1582
  let u2, m3;
1551
- if (nt.description = e4, "startnow" === a3) u2 = ot ?? Date.now() - 3e5, m3 = st ?? Date.now();
1583
+ if (it.description = e4, "startnow" === a3) u2 = at ?? Date.now() - 3e5, m3 = lt ?? Date.now();
1552
1584
  else {
1553
1585
  const e5 = 60 * Number((w2 == null ? void 0 : w2.value) || "2") * 1e3;
1554
1586
  m3 = Date.now(), u2 = m3 - e5;
@@ -1557,9 +1589,9 @@ function injectModalHTML(e = "lookback") {
1557
1589
  var _a3, _b;
1558
1590
  try {
1559
1591
  showTriageStatusModal(true);
1560
- const m4 = await createTriageFromRecorder(Qe.apiKey, Qe.backendApi, (function getSessionIdSafely() {
1561
- if (!Qe.resolveSessionId) throw new Error("getSessionId not defined");
1562
- return Qe.resolveSessionId();
1592
+ const m4 = await createTriageFromRecorder(ot.apiKey, ot.backendApi, (function getSessionIdSafely() {
1593
+ if (!ot.resolveSessionId) throw new Error("getSessionId not defined");
1594
+ return ot.resolveSessionId();
1563
1595
  })(), e5, a4, u3), w3 = (_b = (_a3 = m4 == null ? void 0 : m4.data) == null ? void 0 : _a3.createTriageFromRecorder) == null ? void 0 : _b.id;
1564
1596
  w3 ? showTriageStatusModal(false, w3) : (console.error("No Triage ID returned from backend."), showTriageStatusModal(false, null));
1565
1597
  } catch (e6) {
@@ -1568,29 +1600,29 @@ function injectModalHTML(e = "lookback") {
1568
1600
  })(`${u2}`, `${m3}`, e4);
1569
1601
  }
1570
1602
  });
1571
- })(), Qe.deactivateIsolation = activateModalIsolation(et);
1603
+ })(), ot.deactivateIsolation = activateModalIsolation(st);
1572
1604
  }
1573
1605
  function setActiveTab(e) {
1574
- nt.mode = e;
1575
- const a = et == null ? void 0 : et.querySelector("#sf-tab-lookback"), u = et == null ? void 0 : et.querySelector("#sf-tab-startnow");
1606
+ it.mode = e;
1607
+ const a = st == null ? void 0 : st.querySelector("#sf-tab-lookback"), u = st == null ? void 0 : st.querySelector("#sf-tab-startnow");
1576
1608
  "lookback" === e ? (a.style.background = "white", a.style.color = "#0F172A", u.style.background = "transparent", u.style.color = "#64748B") : (u.style.background = "white", u.style.color = "#0F172A", a.style.background = "transparent", a.style.color = "#64748B");
1577
1609
  }
1578
1610
  function updateModeSpecificUI(e) {
1579
1611
  const a = document.querySelector("#sf-issue-mode-info div"), u = document.getElementById("sf-issue-submit-btn"), m2 = document.getElementById("sf-record-button-container"), w2 = document.getElementById("sf-recording-timer-label"), b2 = document.getElementById("sf-recording-timer-display"), C2 = document.getElementById("sf-modal-footer"), x2 = document.getElementById("sf-lookback-container");
1580
1612
  if (a && u && m2 && w2 && b2 && C2 && x2) if ("startnow" === e) {
1581
1613
  m2.style.display = "block", x2.style.display = "none", C2.style.justifyContent = "space-between", a.textContent = "I want to reproduce the issue right now.";
1582
- const e2 = null !== ot && null !== st;
1583
- if (u.disabled = !e2, u.style.opacity = e2 ? "1" : "0.4", u.style.cursor = e2 ? "pointer" : "not-allowed", ot && st) {
1584
- const e3 = Math.floor((st - ot) / 1e3), a2 = String(Math.floor(e3 / 60)).padStart(2, "0"), u2 = String(e3 % 60).padStart(2, "0");
1614
+ const e2 = null !== at && null !== lt;
1615
+ if (u.disabled = !e2, u.style.opacity = e2 ? "1" : "0.4", u.style.cursor = e2 ? "pointer" : "not-allowed", at && lt) {
1616
+ const e3 = Math.floor((lt - at) / 1e3), a2 = String(Math.floor(e3 / 60)).padStart(2, "0"), u2 = String(e3 % 60).padStart(2, "0");
1585
1617
  w2.style.display = "block", b2.textContent = `${a2}:${u2}`;
1586
1618
  } else w2.style.display = "none";
1587
1619
  } else m2.style.display = "none", w2.style.display = "none", x2.style.display = "block", C2.style.justifyContent = "flex-end", a.textContent = "Something already happened. Capture the past few minutes.", u.disabled = false, u.style.opacity = "1", u.style.cursor = "pointer";
1588
1620
  }
1589
1621
  async function stopRecording() {
1590
1622
  var _a2;
1591
- st = Date.now(), at = false, it && clearInterval(it), (_a2 = document.getElementById("sf-recording-indicator")) == null ? void 0 : _a2.remove();
1623
+ lt = Date.now(), ut = false, ct && clearInterval(ct), (_a2 = document.getElementById("sf-recording-indicator")) == null ? void 0 : _a2.remove();
1592
1624
  try {
1593
- const { disableFunctionSpanTracking: e } = await Promise.resolve().then(() => de);
1625
+ const { disableFunctionSpanTracking: e } = await Promise.resolve().then(() => ge);
1594
1626
  e();
1595
1627
  } catch (e) {
1596
1628
  console.error("[Report Issue] Failed to disable function span tracking:", e);
@@ -1603,17 +1635,17 @@ async function stopRecording() {
1603
1635
  a2 && (a2.textContent = "Re-record");
1604
1636
  }
1605
1637
  const a = document.getElementById("sf-recording-timer-label"), u = document.getElementById("sf-recording-timer-display");
1606
- if (a && u && ot && st) {
1607
- const e2 = Math.floor((st - ot) / 1e3), m3 = Math.floor(e2 / 60).toString().padStart(2, "0"), w3 = (e2 % 60).toString().padStart(2, "0");
1638
+ if (a && u && at && lt) {
1639
+ const e2 = Math.floor((lt - at) / 1e3), m3 = Math.floor(e2 / 60).toString().padStart(2, "0"), w3 = (e2 % 60).toString().padStart(2, "0");
1608
1640
  u.textContent = `${m3}:${w3}`, a.style.display = "block";
1609
1641
  }
1610
1642
  const m2 = document.getElementById("sf-issue-description");
1611
- m2 && (m2.value = nt.description);
1643
+ m2 && (m2.value = it.description);
1612
1644
  const w2 = document.querySelector('input[value="startnow"]');
1613
1645
  w2 && (w2.checked = true);
1614
1646
  const b2 = document.getElementById("sf-inline-record-chip"), C2 = document.getElementById("sf-inline-record-timer");
1615
1647
  if (b2 && C2) {
1616
- const e2 = Math.floor(((st ?? 0) - (ot ?? 0)) / 1e3), a2 = Math.floor(e2 / 60).toString().padStart(2, "0"), u2 = Math.floor(e2 % 60).toString().padStart(2, "0");
1648
+ const e2 = Math.floor(((lt ?? 0) - (at ?? 0)) / 1e3), a2 = Math.floor(e2 / 60).toString().padStart(2, "0"), u2 = Math.floor(e2 % 60).toString().padStart(2, "0");
1617
1649
  C2.textContent = `${a2}:${u2}`, C2.style.color = "black", b2.style.display = "flex";
1618
1650
  }
1619
1651
  const x2 = document.getElementById("sf-issue-submit-btn");
@@ -1626,7 +1658,7 @@ function showTriageStatusModal(e, a) {
1626
1658
  var _a3, _b;
1627
1659
  (_a3 = document.getElementById("sf-report-issue-modal")) == null ? void 0 : _a3.remove(), (_b = document.getElementById("sf-triage-status-modal")) == null ? void 0 : _b.remove();
1628
1660
  })();
1629
- const u = a ? `${Qe.triageBaseUrl}/triage/${a}?from=inAppReportIssue` : "", m2 = document.createElement("div");
1661
+ const u = a ? `${ot.triageBaseUrl}/triage/${a}?from=inAppReportIssue` : "", m2 = document.createElement("div");
1630
1662
  m2.id = "sf-triage-status-modal", Object.assign(m2.style, { position: "fixed", inset: "0", zIndex: "9998", display: "flex", alignItems: "center", justifyContent: "center" });
1631
1663
  const w2 = e ? "Reporting Issue..." : "Issue reported!", b2 = e ? '<p style="font-size:14px; color:#64748b; line-height:20px;">This may take ~10 seconds</p>' : "", C2 = e ? '<div style="display:flex; justify-content:center; align-items:center; padding: 40px 0;">\n <div style="width:24px; height:24px; border:2px solid #295dbf; border-top:2px solid white; border-radius:50%; animation:spin 1s linear infinite;"></div>\n </div>' : "", x2 = e ? "" : '<div id="sf-copied-status" style="display:none; font-size:12px; font-weight:500; color:white;\n background-color:#22c55e; padding:4px 8px; border-radius:6px; white-space:nowrap; align-items:center; gap:6px;">\n <svg width="16" height="16" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M21 7.5L9 19.5L3 13.5L5.25 11.25L9 15L18.75 5.25L21 7.5Z" fill="white"/>\n </svg>\n Copied\n </div>';
1632
1664
  m2.innerHTML = `
@@ -1688,7 +1720,7 @@ function showTriageStatusModal(e, a) {
1688
1720
  function fadeCardAndRemove(e, a, u = 300) {
1689
1721
  a.style.opacity = "0", a.addEventListener("transitionend", () => e.remove(), { once: true }), setTimeout(() => e.remove(), u + 100);
1690
1722
  }
1691
- var lt = Object.defineProperty, b$1 = (e, a, u) => ((e2, a2, u2) => a2 in e2 ? lt(e2, a2, { enumerable: true, configurable: true, writable: true, value: u2 }) : e2[a2] = u2)(e, "symbol" != typeof a ? a + "" : a, u), ct = Object.defineProperty, xn = (e, a, u) => ((e2, a2, u2) => a2 in e2 ? ct(e2, a2, { enumerable: true, configurable: true, writable: true, value: u2 }) : e2[a2] = u2)(e, "symbol" != typeof a ? a + "" : a, u), ut = ((e) => (e[e.Document = 0] = "Document", e[e.DocumentType = 1] = "DocumentType", e[e.Element = 2] = "Element", e[e.Text = 3] = "Text", e[e.CDATA = 4] = "CDATA", e[e.Comment = 5] = "Comment", e))(ut || {});
1723
+ var pt = Object.defineProperty, b$1 = (e, a, u) => ((e2, a2, u2) => a2 in e2 ? pt(e2, a2, { enumerable: true, configurable: true, writable: true, value: u2 }) : e2[a2] = u2)(e, "symbol" != typeof a ? a + "" : a, u), dt = Object.defineProperty, xn = (e, a, u) => ((e2, a2, u2) => a2 in e2 ? dt(e2, a2, { enumerable: true, configurable: true, writable: true, value: u2 }) : e2[a2] = u2)(e, "symbol" != typeof a ? a + "" : a, u), ht = ((e) => (e[e.Document = 0] = "Document", e[e.DocumentType = 1] = "DocumentType", e[e.Element = 2] = "Element", e[e.Text = 3] = "Text", e[e.CDATA = 4] = "CDATA", e[e.Comment = 5] = "Comment", e))(ht || {});
1692
1724
  function vr(e) {
1693
1725
  return e.nodeType === e.ELEMENT_NODE;
1694
1726
  }
@@ -1730,7 +1762,7 @@ function kr(e) {
1730
1762
  })(e.cssText);
1731
1763
  return a || e.cssText;
1732
1764
  }
1733
- let pt = class {
1765
+ let gt = class {
1734
1766
  constructor() {
1735
1767
  xn(this, "idNodeMap", /* @__PURE__ */ new Map()), xn(this, "nodeMetaMap", /* @__PURE__ */ new WeakMap());
1736
1768
  }
@@ -1782,7 +1814,7 @@ function Zt({ element: e, maskInputOptions: a, tagName: u, type: m2, value: w2,
1782
1814
  function fe(e) {
1783
1815
  return e.toLowerCase();
1784
1816
  }
1785
- const dt = "__rrweb_original__";
1817
+ const yt = "__rrweb_original__";
1786
1818
  function Yt(e) {
1787
1819
  const a = e.type;
1788
1820
  return e.hasAttribute("data-rr-is-password") ? "password" : a ? fe(a) : null;
@@ -1797,19 +1829,19 @@ function xr(e, a) {
1797
1829
  const m2 = u.pathname.match(/\.([0-9a-z]+)(?:$)/i);
1798
1830
  return (null == m2 ? void 0 : m2[1]) ?? null;
1799
1831
  }
1800
- let ht = 1;
1801
- const gt = new RegExp("[^a-z0-9-_:]");
1832
+ let wt = 1;
1833
+ const St = new RegExp("[^a-z0-9-_:]");
1802
1834
  function Ir() {
1803
- return ht++;
1835
+ return wt++;
1804
1836
  }
1805
- let yt, wt;
1806
- const bt = /url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm, St = /^(?:[a-z+]+:)?\/\//i, vt = /^www\..*/i, Ct = /^(data:)([^,]*),(.*)/i;
1837
+ let bt, vt;
1838
+ const Ct = /url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm, kt = /^(?:[a-z+]+:)?\/\//i, xt = /^www\..*/i, Mt = /^(data:)([^,]*),(.*)/i;
1807
1839
  function Pt(e, a) {
1808
- return (e || "").replace(bt, (e2, u, m2, w2, b2, C2) => {
1840
+ return (e || "").replace(Ct, (e2, u, m2, w2, b2, C2) => {
1809
1841
  const x2 = m2 || b2 || C2, I2 = u || w2 || "";
1810
1842
  if (!x2) return e2;
1811
- if (St.test(x2) || vt.test(x2)) return `url(${I2}${x2}${I2})`;
1812
- if (Ct.test(x2)) return `url(${I2}${x2}${I2})`;
1843
+ if (kt.test(x2) || xt.test(x2)) return `url(${I2}${x2}${I2})`;
1844
+ if (Mt.test(x2)) return `url(${I2}${x2}${I2})`;
1813
1845
  if ("/" === x2[0]) return `url(${I2}${(function Ei(e3) {
1814
1846
  let a2 = "";
1815
1847
  return a2 = e3.indexOf("//") > -1 ? e3.split("/").slice(0, 3).join("/") : e3.split("/")[0], a2 = a2.split("?")[0], a2;
@@ -1820,8 +1852,8 @@ function Pt(e, a) {
1820
1852
  return `url(${I2}${_2.join("/")}${I2})`;
1821
1853
  });
1822
1854
  }
1823
- const kt = /^[^ \t\n\r\u000c]+/, xt = /^[, \t\n\r\u000c]+/;
1824
- const Mt = /* @__PURE__ */ new WeakMap();
1855
+ const It = /^[^ \t\n\r\u000c]+/, Et = /^[, \t\n\r\u000c]+/;
1856
+ const Lt = /* @__PURE__ */ new WeakMap();
1825
1857
  function At(e, a) {
1826
1858
  return a && "" !== a.trim() ? $t(e, a) : a;
1827
1859
  }
@@ -1829,8 +1861,8 @@ function Fi(e) {
1829
1861
  return !("svg" !== e.tagName && !e.ownerSVGElement);
1830
1862
  }
1831
1863
  function $t(e, a) {
1832
- let u = Mt.get(e);
1833
- if (u || (u = e.createElement("a"), Mt.set(e, u)), a) {
1864
+ let u = Lt.get(e);
1865
+ if (u || (u = e.createElement("a"), Lt.set(e, u)), a) {
1834
1866
  if (a.startsWith("blob:") || a.startsWith("data:")) return a;
1835
1867
  } else a = "";
1836
1868
  return u.setAttribute("href", a), u.href;
@@ -1845,8 +1877,8 @@ function Mr(e, a, u, m2) {
1845
1877
  return w2 ? (m4 = w2[0], u2 += m4.length, m4) : "";
1846
1878
  }
1847
1879
  const m3 = [];
1848
- for (; n(xt), !(u2 >= a2.length); ) {
1849
- let w2 = n(kt);
1880
+ for (; n(Et), !(u2 >= a2.length); ) {
1881
+ let w2 = n(It);
1850
1882
  if ("," === w2.slice(-1)) w2 = At(e2, w2.substring(0, w2.length - 1)), m3.push(w2);
1851
1883
  else {
1852
1884
  let b2 = "";
@@ -1916,9 +1948,9 @@ function zi(e, a) {
1916
1948
  })(u, m2);
1917
1949
  switch (e.nodeType) {
1918
1950
  case e.DOCUMENT_NODE:
1919
- return "CSS1Compat" !== e.compatMode ? { type: ut.Document, childNodes: [], compatMode: e.compatMode } : { type: ut.Document, childNodes: [] };
1951
+ return "CSS1Compat" !== e.compatMode ? { type: ht.Document, childNodes: [], compatMode: e.compatMode } : { type: ht.Document, childNodes: [] };
1920
1952
  case e.DOCUMENT_TYPE_NODE:
1921
- return { type: ut.DocumentType, name: e.name, publicId: e.publicId, systemId: e.systemId, rootId: $2 };
1953
+ return { type: ht.DocumentType, name: e.name, publicId: e.publicId, systemId: e.systemId, rootId: $2 };
1922
1954
  case e.ELEMENT_NODE:
1923
1955
  return (function Vi(e2, a2) {
1924
1956
  const { doc: u2, blockClass: m3, blockSelector: w3, inlineStylesheet: b3, maskInputOptions: C3 = {}, maskInputFn: x3, dataURLOptions: I3 = {}, inlineImages: _3, recordCanvas: O3, keepIframeSrcFn: E3, newlyAddedElement: D3 = false, rootId: F3 } = a2, U3 = (function Ui(e3, a3, u3) {
@@ -1936,7 +1968,7 @@ function zi(e, a) {
1936
1968
  })(e2, m3, w3), B3 = (function Oi(e3) {
1937
1969
  if (e3 instanceof HTMLFormElement) return "form";
1938
1970
  const a3 = fe(e3.tagName);
1939
- return gt.test(a3) ? "div" : a3;
1971
+ return St.test(a3) ? "div" : a3;
1940
1972
  })(e2);
1941
1973
  let $3 = {};
1942
1974
  const z2 = e2.attributes.length;
@@ -1965,7 +1997,7 @@ function zi(e, a) {
1965
1997
  const a3 = e3.getContext("2d");
1966
1998
  if (!a3) return true;
1967
1999
  for (let u3 = 0; u3 < e3.width; u3 += 50) for (let m4 = 0; m4 < e3.height; m4 += 50) {
1968
- const w4 = a3.getImageData, b4 = dt in w4 ? w4[dt] : w4;
2000
+ const w4 = a3.getImageData, b4 = yt in w4 ? w4[yt] : w4;
1969
2001
  if (new Uint32Array(b4.call(a3, u3, m4, Math.min(50, e3.width - u3), Math.min(50, e3.height - m4)).data.buffer).some((e4) => 0 !== e4)) return false;
1970
2002
  }
1971
2003
  return true;
@@ -1977,11 +2009,11 @@ function zi(e, a) {
1977
2009
  }
1978
2010
  }
1979
2011
  if ("img" === B3 && _3) {
1980
- yt || (yt = u2.createElement("canvas"), wt = yt.getContext("2d"));
2012
+ bt || (bt = u2.createElement("canvas"), vt = bt.getContext("2d"));
1981
2013
  const a3 = e2, m4 = a3.currentSrc || a3.getAttribute("src") || "<unknown-src>", w4 = a3.crossOrigin, A = () => {
1982
2014
  a3.removeEventListener("load", A);
1983
2015
  try {
1984
- yt.width = a3.naturalWidth, yt.height = a3.naturalHeight, wt.drawImage(a3, 0, 0), $3.rr_dataURL = yt.toDataURL(I3.type, I3.quality);
2016
+ bt.width = a3.naturalWidth, bt.height = a3.naturalHeight, vt.drawImage(a3, 0, 0), $3.rr_dataURL = bt.toDataURL(I3.type, I3.quality);
1985
2017
  } catch (e3) {
1986
2018
  if ("anonymous" !== a3.crossOrigin) return a3.crossOrigin = "anonymous", void (a3.complete && 0 !== a3.naturalWidth ? A() : a3.addEventListener("load", A));
1987
2019
  console.warn(`Cannot inline img src=${m4}! Error: ${e3}`);
@@ -2004,7 +2036,7 @@ function zi(e, a) {
2004
2036
  customElements.get(B3) && (j2 = true);
2005
2037
  } catch {
2006
2038
  }
2007
- return { type: ut.Element, tagName: B3, attributes: $3, childNodes: [], isSVG: Fi(e2) || void 0, needBlock: U3, rootId: F3, isCustom: j2 };
2039
+ return { type: ht.Element, tagName: B3, attributes: $3, childNodes: [], isSVG: Fi(e2) || void 0, needBlock: U3, rootId: F3, isCustom: j2 };
2008
2040
  })(e, { doc: u, blockClass: w2, blockSelector: b2, inlineStylesheet: x2, maskInputOptions: I2, maskInputFn: O2, dataURLOptions: E2, inlineImages: D2, recordCanvas: F2, keepIframeSrcFn: U2, newlyAddedElement: B2, rootId: $2 });
2009
2041
  case e.TEXT_NODE:
2010
2042
  return (function ji(e2, a2) {
@@ -2020,12 +2052,12 @@ function zi(e, a) {
2020
2052
  }
2021
2053
  x3 = Pt(x3, $t(a2.doc));
2022
2054
  }
2023
- return _3 && (x3 = "SCRIPT_PLACEHOLDER"), !I3 && !_3 && x3 && m3 && (x3 = w3 ? w3(x3, e2.parentElement) : x3.replace(/[\S]/g, "*")), { type: ut.Text, textContent: x3 || "", isStyle: I3, rootId: b3 };
2055
+ return _3 && (x3 = "SCRIPT_PLACEHOLDER"), !I3 && !_3 && x3 && m3 && (x3 = w3 ? w3(x3, e2.parentElement) : x3.replace(/[\S]/g, "*")), { type: ht.Text, textContent: x3 || "", isStyle: I3, rootId: b3 };
2024
2056
  })(e, { doc: u, needsMask: C2, maskTextFn: _2, rootId: $2 });
2025
2057
  case e.CDATA_SECTION_NODE:
2026
- return { type: ut.CDATA, textContent: "", rootId: $2 };
2058
+ return { type: ht.CDATA, textContent: "", rootId: $2 };
2027
2059
  case e.COMMENT_NODE:
2028
- return { type: ut.Comment, textContent: e.textContent || "", rootId: $2 };
2060
+ return { type: ht.Comment, textContent: e.textContent || "", rootId: $2 };
2029
2061
  default:
2030
2062
  return false;
2031
2063
  }
@@ -2041,21 +2073,21 @@ function Se(e, a) {
2041
2073
  if (!ee2) return console.warn(e, "not serialized"), null;
2042
2074
  let te2;
2043
2075
  te2 = m2.hasNode(e) ? m2.getId(e) : (function Gi(e2, a2) {
2044
- return !!(a2.comment && e2.type === ut.Comment || e2.type === ut.Element && (a2.script && ("script" === e2.tagName || "link" === e2.tagName && ("preload" === e2.attributes.rel || "modulepreload" === e2.attributes.rel) && "script" === e2.attributes.as || "link" === e2.tagName && "prefetch" === e2.attributes.rel && "string" == typeof e2.attributes.href && "js" === xr(e2.attributes.href)) || a2.headFavicon && ("link" === e2.tagName && "shortcut icon" === e2.attributes.rel || "meta" === e2.tagName && (N(e2.attributes.name).match(/^msapplication-tile(image|color)$/) || "application-name" === N(e2.attributes.name) || "icon" === N(e2.attributes.rel) || "apple-touch-icon" === N(e2.attributes.rel) || "shortcut icon" === N(e2.attributes.rel))) || "meta" === e2.tagName && (a2.headMetaDescKeywords && N(e2.attributes.name).match(/^description|keywords$/) || a2.headMetaSocial && (N(e2.attributes.property).match(/^(og|twitter|fb):/) || N(e2.attributes.name).match(/^(og|twitter):/) || "pinterest" === N(e2.attributes.name)) || a2.headMetaRobots && ("robots" === N(e2.attributes.name) || "googlebot" === N(e2.attributes.name) || "bingbot" === N(e2.attributes.name)) || a2.headMetaHttpEquiv && void 0 !== e2.attributes["http-equiv"] || a2.headMetaAuthorship && ("author" === N(e2.attributes.name) || "generator" === N(e2.attributes.name) || "framework" === N(e2.attributes.name) || "publisher" === N(e2.attributes.name) || "progid" === N(e2.attributes.name) || N(e2.attributes.property).match(/^article:/) || N(e2.attributes.property).match(/^product:/)) || a2.headMetaVerification && ("google-site-verification" === N(e2.attributes.name) || "yandex-verification" === N(e2.attributes.name) || "csrf-token" === N(e2.attributes.name) || "p:domain_verify" === N(e2.attributes.name) || "verify-v1" === N(e2.attributes.name) || "verification" === N(e2.attributes.name) || "shopify-checkout-api-token" === N(e2.attributes.name)))));
2045
- })(ee2, F2) || !Q2 && ee2.type === ut.Text && !ee2.isStyle && !ee2.textContent.replace(/^\s+|\s+$/gm, "").length ? -2 : Ir();
2076
+ return !!(a2.comment && e2.type === ht.Comment || e2.type === ht.Element && (a2.script && ("script" === e2.tagName || "link" === e2.tagName && ("preload" === e2.attributes.rel || "modulepreload" === e2.attributes.rel) && "script" === e2.attributes.as || "link" === e2.tagName && "prefetch" === e2.attributes.rel && "string" == typeof e2.attributes.href && "js" === xr(e2.attributes.href)) || a2.headFavicon && ("link" === e2.tagName && "shortcut icon" === e2.attributes.rel || "meta" === e2.tagName && (N(e2.attributes.name).match(/^msapplication-tile(image|color)$/) || "application-name" === N(e2.attributes.name) || "icon" === N(e2.attributes.rel) || "apple-touch-icon" === N(e2.attributes.rel) || "shortcut icon" === N(e2.attributes.rel))) || "meta" === e2.tagName && (a2.headMetaDescKeywords && N(e2.attributes.name).match(/^description|keywords$/) || a2.headMetaSocial && (N(e2.attributes.property).match(/^(og|twitter|fb):/) || N(e2.attributes.name).match(/^(og|twitter):/) || "pinterest" === N(e2.attributes.name)) || a2.headMetaRobots && ("robots" === N(e2.attributes.name) || "googlebot" === N(e2.attributes.name) || "bingbot" === N(e2.attributes.name)) || a2.headMetaHttpEquiv && void 0 !== e2.attributes["http-equiv"] || a2.headMetaAuthorship && ("author" === N(e2.attributes.name) || "generator" === N(e2.attributes.name) || "framework" === N(e2.attributes.name) || "publisher" === N(e2.attributes.name) || "progid" === N(e2.attributes.name) || N(e2.attributes.property).match(/^article:/) || N(e2.attributes.property).match(/^product:/)) || a2.headMetaVerification && ("google-site-verification" === N(e2.attributes.name) || "yandex-verification" === N(e2.attributes.name) || "csrf-token" === N(e2.attributes.name) || "p:domain_verify" === N(e2.attributes.name) || "verify-v1" === N(e2.attributes.name) || "verification" === N(e2.attributes.name) || "shopify-checkout-api-token" === N(e2.attributes.name)))));
2077
+ })(ee2, F2) || !Q2 && ee2.type === ht.Text && !ee2.isStyle && !ee2.textContent.replace(/^\s+|\s+$/gm, "").length ? -2 : Ir();
2046
2078
  const ne2 = Object.assign(ee2, { id: te2 });
2047
2079
  if (m2.add(e, ne2), -2 === te2) return null;
2048
2080
  z2 && z2(e);
2049
2081
  let re2 = !I2;
2050
- if (ne2.type === ut.Element) {
2082
+ if (ne2.type === ht.Element) {
2051
2083
  re2 = re2 && !ne2.needBlock, delete ne2.needBlock;
2052
2084
  const a2 = e.shadowRoot;
2053
2085
  a2 && ze(a2) && (ne2.isShadowHost = true);
2054
2086
  }
2055
- if ((ne2.type === ut.Document || ne2.type === ut.Element) && re2) {
2056
- F2.headWhitespace && ne2.type === ut.Element && "head" === ne2.tagName && (Q2 = false);
2087
+ if ((ne2.type === ht.Document || ne2.type === ht.Element) && re2) {
2088
+ F2.headWhitespace && ne2.type === ht.Element && "head" === ne2.tagName && (Q2 = false);
2057
2089
  const a2 = { doc: u, mirror: m2, blockClass: w2, blockSelector: b2, needsMask: X2, maskTextClass: C2, maskTextSelector: x2, skipChild: I2, inlineStylesheet: _2, maskInputOptions: O2, maskTextFn: E2, maskInputFn: D2, slimDOMOptions: F2, dataURLOptions: U2, inlineImages: B2, recordCanvas: $2, preserveWhiteSpace: Q2, onSerialize: z2, onIframeLoad: j2, iframeLoadTimeout: V2, onStylesheetLoad: q2, stylesheetLoadTimeout: H2, keepIframeSrcFn: J2 };
2058
- if (ne2.type !== ut.Element || "textarea" !== ne2.tagName || void 0 === ne2.attributes.value) for (const u2 of Array.from(e.childNodes)) {
2090
+ if (ne2.type !== ht.Element || "textarea" !== ne2.tagName || void 0 === ne2.attributes.value) for (const u2 of Array.from(e.childNodes)) {
2059
2091
  const e2 = Se(u2, a2);
2060
2092
  e2 && ne2.childNodes.push(e2);
2061
2093
  }
@@ -2064,7 +2096,7 @@ function Se(e, a) {
2064
2096
  m3 && (ze(e.shadowRoot) && (m3.isShadow = true), ne2.childNodes.push(m3));
2065
2097
  }
2066
2098
  }
2067
- return e.parentNode && We(e.parentNode) && ze(e.parentNode) && (ne2.isShadow = true), ne2.type === ut.Element && "iframe" === ne2.tagName && (function _i(e2, a2, u2) {
2099
+ return e.parentNode && We(e.parentNode) && ze(e.parentNode) && (ne2.isShadow = true), ne2.type === ht.Element && "iframe" === ne2.tagName && (function _i(e2, a2, u2) {
2068
2100
  const m3 = e2.contentWindow;
2069
2101
  if (!m3) return;
2070
2102
  let w3, b3 = false;
@@ -2090,7 +2122,7 @@ function Se(e, a) {
2090
2122
  const u2 = Se(a2, { doc: a2, mirror: m2, blockClass: w2, blockSelector: b2, needsMask: X2, maskTextClass: C2, maskTextSelector: x2, skipChild: false, inlineStylesheet: _2, maskInputOptions: O2, maskTextFn: E2, maskInputFn: D2, slimDOMOptions: F2, dataURLOptions: U2, inlineImages: B2, recordCanvas: $2, preserveWhiteSpace: Q2, onSerialize: z2, onIframeLoad: j2, iframeLoadTimeout: V2, onStylesheetLoad: q2, stylesheetLoadTimeout: H2, keepIframeSrcFn: J2 });
2091
2123
  u2 && j2(e, u2);
2092
2124
  }
2093
- }, V2), ne2.type === ut.Element && "link" === ne2.tagName && "string" == typeof ne2.attributes.rel && ("stylesheet" === ne2.attributes.rel || "preload" === ne2.attributes.rel && "string" == typeof ne2.attributes.href && "css" === xr(ne2.attributes.href)) && (function Wi(e2, a2, u2) {
2125
+ }, V2), ne2.type === ht.Element && "link" === ne2.tagName && "string" == typeof ne2.attributes.rel && ("stylesheet" === ne2.attributes.rel || "preload" === ne2.attributes.rel && "string" == typeof ne2.attributes.href && "css" === xr(ne2.attributes.href)) && (function Wi(e2, a2, u2) {
2094
2126
  let m3, w3 = false;
2095
2127
  try {
2096
2128
  m3 = e2.sheet;
@@ -2130,13 +2162,13 @@ function $i(e) {
2130
2162
  } });
2131
2163
  }), u;
2132
2164
  }
2133
- var It = { exports: {} }, Et = String, Rr = function() {
2134
- return { isColorSupported: false, reset: Et, bold: Et, dim: Et, italic: Et, underline: Et, inverse: Et, hidden: Et, strikethrough: Et, black: Et, red: Et, green: Et, yellow: Et, blue: Et, magenta: Et, cyan: Et, white: Et, gray: Et, bgBlack: Et, bgRed: Et, bgGreen: Et, bgYellow: Et, bgBlue: Et, bgMagenta: Et, bgCyan: Et, bgWhite: Et, blackBright: Et, redBright: Et, greenBright: Et, yellowBright: Et, blueBright: Et, magentaBright: Et, cyanBright: Et, whiteBright: Et, bgBlackBright: Et, bgRedBright: Et, bgGreenBright: Et, bgYellowBright: Et, bgBlueBright: Et, bgMagentaBright: Et, bgCyanBright: Et, bgWhiteBright: Et };
2165
+ var Rt = { exports: {} }, Dt = String, Rr = function() {
2166
+ return { isColorSupported: false, reset: Dt, bold: Dt, dim: Dt, italic: Dt, underline: Dt, inverse: Dt, hidden: Dt, strikethrough: Dt, black: Dt, red: Dt, green: Dt, yellow: Dt, blue: Dt, magenta: Dt, cyan: Dt, white: Dt, gray: Dt, bgBlack: Dt, bgRed: Dt, bgGreen: Dt, bgYellow: Dt, bgBlue: Dt, bgMagenta: Dt, bgCyan: Dt, bgWhite: Dt, blackBright: Dt, redBright: Dt, greenBright: Dt, yellowBright: Dt, blueBright: Dt, magentaBright: Dt, cyanBright: Dt, whiteBright: Dt, bgBlackBright: Dt, bgRedBright: Dt, bgGreenBright: Dt, bgYellowBright: Dt, bgBlueBright: Dt, bgMagentaBright: Dt, bgCyanBright: Dt, bgWhiteBright: Dt };
2135
2167
  };
2136
- It.exports = Rr(), It.exports.createColors = Rr;
2137
- var Lt = It.exports;
2138
- const Rt = $i(Object.freeze(Object.defineProperty({ __proto__: null, default: {} }, Symbol.toStringTag, { value: "Module" })));
2139
- let Dt = Lt, Ft = Rt, Ut = class Lr extends Error {
2168
+ Rt.exports = Rr(), Rt.exports.createColors = Rr;
2169
+ var Ft = Rt.exports;
2170
+ const Ut = $i(Object.freeze(Object.defineProperty({ __proto__: null, default: {} }, Symbol.toStringTag, { value: "Module" })));
2171
+ let Bt = Ft, Wt = Ut, jt = class Lr extends Error {
2140
2172
  constructor(e, a, u, m2, w2, b2) {
2141
2173
  super(e), this.name = "CssSyntaxError", this.reason = e, w2 && (this.file = w2), m2 && (this.source = m2), b2 && (this.plugin = b2), typeof a < "u" && typeof u < "u" && ("number" == typeof a ? (this.line = a, this.column = u) : (this.line = a.line, this.column = a.column, this.endLine = u.line, this.endColumn = u.column)), this.setMessage(), Error.captureStackTrace && Error.captureStackTrace(this, Lr);
2142
2174
  }
@@ -2146,11 +2178,11 @@ let Dt = Lt, Ft = Rt, Ut = class Lr extends Error {
2146
2178
  showSourceCode(e) {
2147
2179
  if (!this.source) return "";
2148
2180
  let a = this.source;
2149
- null == e && (e = Dt.isColorSupported);
2181
+ null == e && (e = Bt.isColorSupported);
2150
2182
  let n = (e2) => e2, r = (e2) => e2, i = (e2) => e2;
2151
2183
  if (e) {
2152
- let { bold: e2, gray: a2, red: u2 } = Dt.createColors(true);
2153
- r = (a3) => e2(u2(a3)), n = (e3) => a2(e3), Ft && (i = (e3) => Ft(e3));
2184
+ let { bold: e2, gray: a2, red: u2 } = Bt.createColors(true);
2185
+ r = (a3) => e2(u2(a3)), n = (e3) => a2(e3), Wt && (i = (e3) => Wt(e3));
2154
2186
  }
2155
2187
  let u = a.split(/\r?\n/), m2 = Math.max(this.line - 3, 0), w2 = Math.min(this.line + 2, u.length), b2 = String(w2).length;
2156
2188
  return u.slice(m2, w2).map((e2, a2) => {
@@ -2171,10 +2203,10 @@ let Dt = Lt, Ft = Rt, Ut = class Lr extends Error {
2171
2203
  return e && (e = "\n\n" + e + "\n"), this.name + ": " + this.message + e;
2172
2204
  }
2173
2205
  };
2174
- var Bt = Ut;
2175
- Ut.default = Ut;
2176
- const Wt = { after: "\n", beforeClose: "\n", beforeComment: "\n", beforeDecl: "\n", beforeOpen: " ", beforeRule: "\n", colon: ": ", commentLeft: " ", commentRight: " ", emptyBody: "", indent: " ", semicolon: false };
2177
- let jt = class {
2206
+ var Vt = jt;
2207
+ jt.default = jt;
2208
+ const Ht = { after: "\n", beforeClose: "\n", beforeComment: "\n", beforeDecl: "\n", beforeOpen: " ", beforeRule: "\n", colon: ": ", commentLeft: " ", commentRight: " ", emptyBody: "", indent: " ", semicolon: false };
2209
+ let Kt = class {
2178
2210
  constructor(e) {
2179
2211
  this.builder = e;
2180
2212
  }
@@ -2226,7 +2258,7 @@ let jt = class {
2226
2258
  if (u || (u = a), a && (m2 = e.raws[a], typeof m2 < "u")) return m2;
2227
2259
  let w2 = e.parent;
2228
2260
  if ("before" === u && (!w2 || "root" === w2.type && w2.first === e || w2 && "document" === w2.type)) return "";
2229
- if (!w2) return Wt[u];
2261
+ if (!w2) return Ht[u];
2230
2262
  let b2 = e.root();
2231
2263
  if (b2.rawCache || (b2.rawCache = {}), typeof b2.rawCache[u] < "u") return b2.rawCache[u];
2232
2264
  if ("before" === u || "after" === u) return this.beforeAfter(e, u);
@@ -2238,7 +2270,7 @@ let jt = class {
2238
2270
  if (m2 = e2.raws[a], typeof m2 < "u") return false;
2239
2271
  });
2240
2272
  }
2241
- return typeof m2 > "u" && (m2 = Wt[u]), b2.rawCache[u] = m2, m2;
2273
+ return typeof m2 > "u" && (m2 = Ht[u]), b2.rawCache[u] = m2, m2;
2242
2274
  }
2243
2275
  rawBeforeClose(e) {
2244
2276
  let a;
@@ -2314,17 +2346,17 @@ let jt = class {
2314
2346
  this[e.type](e, a);
2315
2347
  }
2316
2348
  };
2317
- var Vt = jt;
2318
- jt.default = jt;
2319
- let Ht = Vt;
2349
+ var Jt = Kt;
2350
+ Kt.default = Kt;
2351
+ let Xt = Jt;
2320
2352
  function ks(e, a) {
2321
- new Ht(a).stringify(e);
2353
+ new Xt(a).stringify(e);
2322
2354
  }
2323
- var Kt = ks;
2355
+ var Qt = ks;
2324
2356
  ks.default = ks;
2325
- var Jt = {};
2326
- Jt.isClean = Symbol("isClean"), Jt.my = Symbol("my");
2327
- let Xt = Bt, Qt = Vt, en = Kt, { isClean: tn, my: nn } = Jt;
2357
+ var en = {};
2358
+ en.isClean = Symbol("isClean"), en.my = Symbol("my");
2359
+ let tn = Vt, nn = Jt, rn = Qt, { isClean: on, my: sn } = en;
2328
2360
  function Cs(e, a) {
2329
2361
  let u = new e.constructor();
2330
2362
  for (let m2 in e) {
@@ -2346,12 +2378,12 @@ function Pe(e, a) {
2346
2378
  }
2347
2379
  return w2;
2348
2380
  }
2349
- let rn = class {
2381
+ let an = class {
2350
2382
  get proxyOf() {
2351
2383
  return this;
2352
2384
  }
2353
2385
  constructor(e = {}) {
2354
- this.raws = {}, this[tn] = false, this[nn] = true;
2386
+ this.raws = {}, this[on] = false, this[sn] = true;
2355
2387
  for (let a in e) if ("nodes" === a) {
2356
2388
  this.nodes = [];
2357
2389
  for (let u of e[a]) "function" == typeof u.clone ? this.append(u.clone()) : this.append(u);
@@ -2395,19 +2427,19 @@ let rn = class {
2395
2427
  let { end: u, start: m2 } = this.rangeBy(a);
2396
2428
  return this.source.input.error(e, { column: m2.column, line: m2.line }, { column: u.column, line: u.line }, a);
2397
2429
  }
2398
- return new Xt(e);
2430
+ return new tn(e);
2399
2431
  }
2400
2432
  getProxyProcessor() {
2401
2433
  return { get: (e, a) => "proxyOf" === a ? e : "root" === a ? () => e.root().toProxy() : e[a], set: (e, a, u) => (e[a] === u || (e[a] = u, ("prop" === a || "value" === a || "name" === a || "params" === a || "important" === a || "text" === a) && e.markDirty()), true) };
2402
2434
  }
2403
2435
  markClean() {
2404
- this[tn] = true;
2436
+ this[on] = true;
2405
2437
  }
2406
2438
  markDirty() {
2407
- if (this[tn]) {
2408
- this[tn] = false;
2439
+ if (this[on]) {
2440
+ this[on] = false;
2409
2441
  let e = this;
2410
- for (; e = e.parent; ) e[tn] = false;
2442
+ for (; e = e.parent; ) e[on] = false;
2411
2443
  }
2412
2444
  }
2413
2445
  next() {
@@ -2443,7 +2475,7 @@ let rn = class {
2443
2475
  return (u.line < a.line || u.line === a.line && u.column <= a.column) && (u = { column: a.column + 1, line: a.line }), { end: u, start: a };
2444
2476
  }
2445
2477
  raw(e, a) {
2446
- return new Qt().raw(this, e, a);
2478
+ return new nn().raw(this, e, a);
2447
2479
  }
2448
2480
  remove() {
2449
2481
  return this.parent && this.parent.removeChild(this), this.parent = void 0, this;
@@ -2480,7 +2512,7 @@ let rn = class {
2480
2512
  toProxy() {
2481
2513
  return this.proxyCache || (this.proxyCache = new Proxy(this, this.getProxyProcessor())), this.proxyCache;
2482
2514
  }
2483
- toString(e = en) {
2515
+ toString(e = rn) {
2484
2516
  e.stringify && (e = e.stringify);
2485
2517
  let a = "";
2486
2518
  return e(this, (e2) => {
@@ -2493,16 +2525,16 @@ let rn = class {
2493
2525
  return e.warn(a, m2);
2494
2526
  }
2495
2527
  };
2496
- var on = rn;
2497
- rn.default = rn;
2498
- let sn = on, an = class extends sn {
2528
+ var ln = an;
2529
+ an.default = an;
2530
+ let cn = ln, un = class extends cn {
2499
2531
  constructor(e) {
2500
2532
  super(e), this.type = "comment";
2501
2533
  }
2502
2534
  };
2503
- var ln = an;
2504
- an.default = an;
2505
- let cn = on, un = class extends cn {
2535
+ var pn = un;
2536
+ un.default = un;
2537
+ let dn = ln, hn = class extends dn {
2506
2538
  get variable() {
2507
2539
  return this.prop.startsWith("--") || "$" === this.prop[0];
2508
2540
  }
@@ -2510,16 +2542,16 @@ let cn = on, un = class extends cn {
2510
2542
  e && typeof e.value < "u" && "string" != typeof e.value && (e = { ...e, value: String(e.value) }), super(e), this.type = "decl";
2511
2543
  }
2512
2544
  };
2513
- var pn = un;
2514
- un.default = un;
2515
- let dn, hn, fn, mn, gn = ln, yn = pn, wn = on, { isClean: bn, my: Sn } = Jt;
2545
+ var fn = hn;
2546
+ hn.default = hn;
2547
+ let mn, gn, yn, wn, Sn = pn, bn = fn, Mn = ln, { isClean: In, my: _n } = en;
2516
2548
  function _r(e) {
2517
2549
  return e.map((e2) => (e2.nodes && (e2.nodes = _r(e2.nodes)), delete e2.source, e2));
2518
2550
  }
2519
2551
  function Wr(e) {
2520
- if (e[bn] = false, e.proxyOf.nodes) for (let a of e.proxyOf.nodes) Wr(a);
2552
+ if (e[In] = false, e.proxyOf.nodes) for (let a of e.proxyOf.nodes) Wr(a);
2521
2553
  }
2522
- let Mn = class zr extends wn {
2554
+ let On = class zr extends Mn {
2523
2555
  get first() {
2524
2556
  if (this.proxyOf.nodes) return this.proxyOf.nodes[0];
2525
2557
  }
@@ -2571,7 +2603,7 @@ let Mn = class zr extends wn {
2571
2603
  return this.markDirty(), this;
2572
2604
  }
2573
2605
  normalize(e, a) {
2574
- if ("string" == typeof e) e = _r(hn(e).nodes);
2606
+ if ("string" == typeof e) e = _r(gn(e).nodes);
2575
2607
  else if (typeof e > "u") e = [];
2576
2608
  else if (Array.isArray(e)) {
2577
2609
  e = e.slice(0);
@@ -2582,14 +2614,14 @@ let Mn = class zr extends wn {
2582
2614
  } else if (e.type) e = [e];
2583
2615
  else if (e.prop) {
2584
2616
  if (typeof e.value > "u") throw new Error("Value field is missed in node creation");
2585
- "string" != typeof e.value && (e.value = String(e.value)), e = [new yn(e)];
2586
- } else if (e.selector || e.selectors) e = [new mn(e)];
2587
- else if (e.name) e = [new dn(e)];
2617
+ "string" != typeof e.value && (e.value = String(e.value)), e = [new bn(e)];
2618
+ } else if (e.selector || e.selectors) e = [new wn(e)];
2619
+ else if (e.name) e = [new mn(e)];
2588
2620
  else {
2589
2621
  if (!e.text) throw new Error("Unknown node type in node creation");
2590
- e = [new gn(e)];
2622
+ e = [new Sn(e)];
2591
2623
  }
2592
- return e.map((e2) => (e2[Sn] || zr.rebuild(e2), (e2 = e2.proxyOf).parent && e2.parent.removeChild(e2), e2[bn] && Wr(e2), e2.raws || (e2.raws = {}), typeof e2.raws.before > "u" && a && typeof a.raws.before < "u" && (e2.raws.before = a.raws.before.replace(/\S/g, "")), e2.parent = this.proxyOf, e2));
2624
+ return e.map((e2) => (e2[_n] || zr.rebuild(e2), (e2 = e2.proxyOf).parent && e2.parent.removeChild(e2), e2[In] && Wr(e2), e2.raws || (e2.raws = {}), typeof e2.raws.before > "u" && a && typeof a.raws.before < "u" && (e2.raws.before = a.raws.before.replace(/\S/g, "")), e2.parent = this.proxyOf, e2));
2593
2625
  }
2594
2626
  prepend(...e) {
2595
2627
  e = e.reverse();
@@ -2665,22 +2697,22 @@ let Mn = class zr extends wn {
2665
2697
  }));
2666
2698
  }
2667
2699
  };
2668
- Mn.registerParse = (e) => {
2669
- hn = e;
2670
- }, Mn.registerRule = (e) => {
2700
+ On.registerParse = (e) => {
2701
+ gn = e;
2702
+ }, On.registerRule = (e) => {
2703
+ wn = e;
2704
+ }, On.registerAtRule = (e) => {
2671
2705
  mn = e;
2672
- }, Mn.registerAtRule = (e) => {
2673
- dn = e;
2674
- }, Mn.registerRoot = (e) => {
2675
- fn = e;
2706
+ }, On.registerRoot = (e) => {
2707
+ yn = e;
2676
2708
  };
2677
- var In = Mn;
2678
- Mn.default = Mn, Mn.rebuild = (e) => {
2679
- "atrule" === e.type ? Object.setPrototypeOf(e, dn.prototype) : "rule" === e.type ? Object.setPrototypeOf(e, mn.prototype) : "decl" === e.type ? Object.setPrototypeOf(e, yn.prototype) : "comment" === e.type ? Object.setPrototypeOf(e, gn.prototype) : "root" === e.type && Object.setPrototypeOf(e, fn.prototype), e[Sn] = true, e.nodes && e.nodes.forEach((e2) => {
2680
- Mn.rebuild(e2);
2709
+ var En = On;
2710
+ On.default = On, On.rebuild = (e) => {
2711
+ "atrule" === e.type ? Object.setPrototypeOf(e, mn.prototype) : "rule" === e.type ? Object.setPrototypeOf(e, wn.prototype) : "decl" === e.type ? Object.setPrototypeOf(e, bn.prototype) : "comment" === e.type ? Object.setPrototypeOf(e, Sn.prototype) : "root" === e.type && Object.setPrototypeOf(e, yn.prototype), e[_n] = true, e.nodes && e.nodes.forEach((e2) => {
2712
+ On.rebuild(e2);
2681
2713
  });
2682
2714
  };
2683
- let _n = In, On = class extends _n {
2715
+ let Ln = En, Rn = class extends Ln {
2684
2716
  constructor(e) {
2685
2717
  super(e), this.type = "atrule";
2686
2718
  }
@@ -2691,38 +2723,38 @@ let _n = In, On = class extends _n {
2691
2723
  return this.proxyOf.nodes || (this.nodes = []), super.prepend(...e);
2692
2724
  }
2693
2725
  };
2694
- var En = On;
2695
- On.default = On, _n.registerAtRule(On);
2696
- let Ln, Rn, An = In, Tn = class extends An {
2726
+ var An = Rn;
2727
+ Rn.default = Rn, Ln.registerAtRule(Rn);
2728
+ let Tn, Nn, Pn = En, Dn = class extends Pn {
2697
2729
  constructor(e) {
2698
2730
  super({ type: "document", ...e }), this.nodes || (this.nodes = []);
2699
2731
  }
2700
2732
  toResult(e = {}) {
2701
- return new Ln(new Rn(), this, e).stringify();
2733
+ return new Tn(new Nn(), this, e).stringify();
2702
2734
  }
2703
2735
  };
2704
- Tn.registerLazyResult = (e) => {
2705
- Ln = e;
2706
- }, Tn.registerProcessor = (e) => {
2707
- Rn = e;
2736
+ Dn.registerLazyResult = (e) => {
2737
+ Tn = e;
2738
+ }, Dn.registerProcessor = (e) => {
2739
+ Nn = e;
2708
2740
  };
2709
- var Nn = Tn;
2710
- Tn.default = Tn;
2711
- var Pn = { nanoid: (e = 21) => {
2741
+ var Fn = Dn;
2742
+ Dn.default = Dn;
2743
+ var Un = { nanoid: (e = 21) => {
2712
2744
  let a = "", u = 0 | e;
2713
2745
  for (; u--; ) a += "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64 * Math.random() | 0];
2714
2746
  return a;
2715
2747
  } };
2716
- let { existsSync: Dn, readFileSync: Fn } = Rt, { dirname: Un, join: Bn } = Rt, { SourceMapConsumer: Wn, SourceMapGenerator: zn } = Rt;
2717
- let jn = class {
2748
+ let { existsSync: Bn, readFileSync: Wn } = Ut, { dirname: zn, join: jn } = Ut, { SourceMapConsumer: Vn, SourceMapGenerator: qn } = Ut;
2749
+ let Zn = class {
2718
2750
  constructor(e, a) {
2719
2751
  if (false === a.map) return;
2720
2752
  this.loadAnnotation(e), this.inline = this.startWith(this.annotation, "data:");
2721
2753
  let u = a.map ? a.map.prev : void 0, m2 = this.loadMap(a.from, u);
2722
- !this.mapFile && a.from && (this.mapFile = a.from), this.mapFile && (this.root = Un(this.mapFile)), m2 && (this.text = m2);
2754
+ !this.mapFile && a.from && (this.mapFile = a.from), this.mapFile && (this.root = zn(this.mapFile)), m2 && (this.text = m2);
2723
2755
  }
2724
2756
  consumer() {
2725
- return this.consumerCache || (this.consumerCache = new Wn(this.text)), this.consumerCache;
2757
+ return this.consumerCache || (this.consumerCache = new Vn(this.text)), this.consumerCache;
2726
2758
  }
2727
2759
  decodeInline(e) {
2728
2760
  let a = e.match(/^data:application\/json;charset=utf-?8,/) || e.match(/^data:application\/json,/);
@@ -2747,15 +2779,15 @@ let jn = class {
2747
2779
  u > -1 && m2 > -1 && (this.annotation = this.getAnnotationURL(e.substring(u, m2)));
2748
2780
  }
2749
2781
  loadFile(e) {
2750
- if (this.root = Un(e), Dn(e)) return this.mapFile = e, Fn(e, "utf-8").toString().trim();
2782
+ if (this.root = zn(e), Bn(e)) return this.mapFile = e, Wn(e, "utf-8").toString().trim();
2751
2783
  }
2752
2784
  loadMap(e, a) {
2753
2785
  if (false === a) return false;
2754
2786
  if (a) {
2755
2787
  if ("string" == typeof a) return a;
2756
2788
  if ("function" != typeof a) {
2757
- if (a instanceof Wn) return zn.fromSourceMap(a).toString();
2758
- if (a instanceof zn) return a.toString();
2789
+ if (a instanceof Vn) return qn.fromSourceMap(a).toString();
2790
+ if (a instanceof qn) return a.toString();
2759
2791
  if (this.isMap(a)) return JSON.stringify(a);
2760
2792
  throw new Error("Unsupported previous source map format: " + a.toString());
2761
2793
  }
@@ -2771,7 +2803,7 @@ let jn = class {
2771
2803
  if (this.inline) return this.decodeInline(this.annotation);
2772
2804
  if (this.annotation) {
2773
2805
  let a2 = this.annotation;
2774
- return e && (a2 = Bn(Un(e), a2)), this.loadFile(a2);
2806
+ return e && (a2 = jn(zn(e), a2)), this.loadFile(a2);
2775
2807
  }
2776
2808
  }
2777
2809
  }
@@ -2782,23 +2814,23 @@ let jn = class {
2782
2814
  return !!(this.consumer().sourcesContent && this.consumer().sourcesContent.length > 0);
2783
2815
  }
2784
2816
  };
2785
- var Vn = jn;
2786
- jn.default = jn;
2787
- let { nanoid: qn } = Pn, { isAbsolute: Zn, resolve: Kn } = Rt, { SourceMapConsumer: Qn, SourceMapGenerator: nr } = Rt, { fileURLToPath: rr, pathToFileURL: or } = Rt, sr = Bt, ir = Vn, ar = Rt, lr = Symbol("fromOffsetCache"), cr = !(!Qn || !nr), ur = !(!Kn || !Zn), pr = class {
2817
+ var Kn = Zn;
2818
+ Zn.default = Zn;
2819
+ let { nanoid: Qn } = Un, { isAbsolute: nr, resolve: rr } = Ut, { SourceMapConsumer: or, SourceMapGenerator: sr } = Ut, { fileURLToPath: ir, pathToFileURL: ar } = Ut, lr = Vt, cr = Kn, ur = Ut, pr = Symbol("fromOffsetCache"), dr = !(!or || !sr), hr = !(!rr || !nr), fr = class {
2788
2820
  get from() {
2789
2821
  return this.file || this.id;
2790
2822
  }
2791
2823
  constructor(e, a = {}) {
2792
2824
  if (null === e || typeof e > "u" || "object" == typeof e && !e.toString) throw new Error(`PostCSS received ${e} instead of CSS string`);
2793
- if (this.css = e.toString(), "\uFEFF" === this.css[0] || "￾" === this.css[0] ? (this.hasBOM = true, this.css = this.css.slice(1)) : this.hasBOM = false, this.document = this.css, a.document && (this.document = a.document.toString()), a.from && (!ur || /^\w+:\/\//.test(a.from) || Zn(a.from) ? this.file = a.from : this.file = Kn(a.from)), ur && cr) {
2794
- let e2 = new ir(this.css, a);
2825
+ if (this.css = e.toString(), "\uFEFF" === this.css[0] || "￾" === this.css[0] ? (this.hasBOM = true, this.css = this.css.slice(1)) : this.hasBOM = false, this.document = this.css, a.document && (this.document = a.document.toString()), a.from && (!hr || /^\w+:\/\//.test(a.from) || nr(a.from) ? this.file = a.from : this.file = rr(a.from)), hr && dr) {
2826
+ let e2 = new cr(this.css, a);
2795
2827
  if (e2.text) {
2796
2828
  this.map = e2;
2797
2829
  let a2 = e2.consumer().file;
2798
2830
  !this.file && a2 && (this.file = this.mapResolve(a2));
2799
2831
  }
2800
2832
  }
2801
- this.file || (this.id = "<input css " + qn(6) + ">"), this.map && (this.map.file = this.from);
2833
+ this.file || (this.id = "<input css " + Qn(6) + ">"), this.map && (this.map.file = this.from);
2802
2834
  }
2803
2835
  error(e, a, u, m2 = {}) {
2804
2836
  let w2, b2, C2;
@@ -2817,17 +2849,17 @@ let { nanoid: qn } = Pn, { isAbsolute: Zn, resolve: Kn } = Rt, { SourceMapConsum
2817
2849
  a = e2.line, u = e2.col;
2818
2850
  }
2819
2851
  let x2 = this.origin(a, u, b2, w2);
2820
- return C2 = x2 ? new sr(e, void 0 === x2.endLine ? x2.line : { column: x2.column, line: x2.line }, void 0 === x2.endLine ? x2.column : { column: x2.endColumn, line: x2.endLine }, x2.source, x2.file, m2.plugin) : new sr(e, void 0 === b2 ? a : { column: u, line: a }, void 0 === b2 ? u : { column: w2, line: b2 }, this.css, this.file, m2.plugin), C2.input = { column: u, endColumn: w2, endLine: b2, line: a, source: this.css }, this.file && (or && (C2.input.url = or(this.file).toString()), C2.input.file = this.file), C2;
2852
+ return C2 = x2 ? new lr(e, void 0 === x2.endLine ? x2.line : { column: x2.column, line: x2.line }, void 0 === x2.endLine ? x2.column : { column: x2.endColumn, line: x2.endLine }, x2.source, x2.file, m2.plugin) : new lr(e, void 0 === b2 ? a : { column: u, line: a }, void 0 === b2 ? u : { column: w2, line: b2 }, this.css, this.file, m2.plugin), C2.input = { column: u, endColumn: w2, endLine: b2, line: a, source: this.css }, this.file && (ar && (C2.input.url = ar(this.file).toString()), C2.input.file = this.file), C2;
2821
2853
  }
2822
2854
  fromOffset(e) {
2823
2855
  let a, u;
2824
- if (this[lr]) u = this[lr];
2856
+ if (this[pr]) u = this[pr];
2825
2857
  else {
2826
2858
  let e2 = this.css.split("\n");
2827
2859
  u = new Array(e2.length);
2828
2860
  let a2 = 0;
2829
2861
  for (let m3 = 0, w2 = e2.length; m3 < w2; m3++) u[m3] = a2, a2 += e2[m3].length + 1;
2830
- this[lr] = u;
2862
+ this[pr] = u;
2831
2863
  }
2832
2864
  a = u[u.length - 1];
2833
2865
  let m2 = 0;
@@ -2846,17 +2878,17 @@ let { nanoid: qn } = Pn, { isAbsolute: Zn, resolve: Kn } = Rt, { SourceMapConsum
2846
2878
  return { col: e - u[m2] + 1, line: m2 + 1 };
2847
2879
  }
2848
2880
  mapResolve(e) {
2849
- return /^\w+:\/\//.test(e) ? e : Kn(this.map.consumer().sourceRoot || this.map.root || ".", e);
2881
+ return /^\w+:\/\//.test(e) ? e : rr(this.map.consumer().sourceRoot || this.map.root || ".", e);
2850
2882
  }
2851
2883
  origin(e, a, u, m2) {
2852
2884
  if (!this.map) return false;
2853
2885
  let w2, b2, C2 = this.map.consumer(), x2 = C2.originalPositionFor({ column: a, line: e });
2854
2886
  if (!x2.source) return false;
2855
- "number" == typeof u && (w2 = C2.originalPositionFor({ column: m2, line: u })), b2 = Zn(x2.source) ? or(x2.source) : new URL(x2.source, this.map.consumer().sourceRoot || or(this.map.mapFile));
2887
+ "number" == typeof u && (w2 = C2.originalPositionFor({ column: m2, line: u })), b2 = nr(x2.source) ? ar(x2.source) : new URL(x2.source, this.map.consumer().sourceRoot || ar(this.map.mapFile));
2856
2888
  let I2 = { column: x2.column, endColumn: w2 && w2.column, endLine: w2 && w2.line, line: x2.line, url: b2.toString() };
2857
2889
  if ("file:" === b2.protocol) {
2858
- if (!rr) throw new Error("file: protocol is not available in this PostCSS build");
2859
- I2.file = rr(b2);
2890
+ if (!ir) throw new Error("file: protocol is not available in this PostCSS build");
2891
+ I2.file = ir(b2);
2860
2892
  }
2861
2893
  let _2 = C2.sourceContentFor(x2.source);
2862
2894
  return _2 && (I2.source = _2), I2;
@@ -2867,9 +2899,9 @@ let { nanoid: qn } = Pn, { isAbsolute: Zn, resolve: Kn } = Rt, { SourceMapConsum
2867
2899
  return this.map && (e.map = { ...this.map }, e.map.consumerCache && (e.map.consumerCache = void 0)), e;
2868
2900
  }
2869
2901
  };
2870
- var dr = pr;
2871
- pr.default = pr, ar && ar.registerInput && ar.registerInput(pr);
2872
- let hr, fr, mr = In, gr = class extends mr {
2902
+ var mr = fr;
2903
+ fr.default = fr, ur && ur.registerInput && ur.registerInput(fr);
2904
+ let gr, yr, wr = En, Sr = class extends wr {
2873
2905
  constructor(e) {
2874
2906
  super(e), this.type = "root", this.nodes || (this.nodes = []);
2875
2907
  }
@@ -2886,29 +2918,29 @@ let hr, fr, mr = In, gr = class extends mr {
2886
2918
  return !a && 0 === u && this.nodes.length > 1 && (this.nodes[1].raws.before = this.nodes[u].raws.before), super.removeChild(e);
2887
2919
  }
2888
2920
  toResult(e = {}) {
2889
- return new hr(new fr(), this, e).stringify();
2921
+ return new gr(new yr(), this, e).stringify();
2890
2922
  }
2891
2923
  };
2892
- gr.registerLazyResult = (e) => {
2893
- hr = e;
2894
- }, gr.registerProcessor = (e) => {
2895
- fr = e;
2924
+ Sr.registerLazyResult = (e) => {
2925
+ gr = e;
2926
+ }, Sr.registerProcessor = (e) => {
2927
+ yr = e;
2896
2928
  };
2897
- var yr = gr;
2898
- gr.default = gr, mr.registerRoot(gr);
2899
- let wr = { comma: (e) => wr.split(e, [","], true), space(e) {
2929
+ var Cr = Sr;
2930
+ Sr.default = Sr, wr.registerRoot(Sr);
2931
+ let Ar = { comma: (e) => Ar.split(e, [","], true), space(e) {
2900
2932
  let a = [" ", "\n", " "];
2901
- return wr.split(e, a);
2933
+ return Ar.split(e, a);
2902
2934
  }, split(e, a, u) {
2903
2935
  let m2 = [], w2 = "", b2 = false, C2 = 0, x2 = false, I2 = "", _2 = false;
2904
2936
  for (let u2 of e) _2 ? _2 = false : "\\" === u2 ? _2 = true : x2 ? u2 === I2 && (x2 = false) : '"' === u2 || "'" === u2 ? (x2 = true, I2 = u2) : "(" === u2 ? C2 += 1 : ")" === u2 ? C2 > 0 && (C2 -= 1) : 0 === C2 && a.includes(u2) && (b2 = true), b2 ? ("" !== w2 && m2.push(w2.trim()), w2 = "", b2 = false) : w2 += u2;
2905
2937
  return (u || "" !== w2) && m2.push(w2.trim()), m2;
2906
2938
  } };
2907
- var Sr = wr;
2908
- wr.default = wr;
2909
- let Cr = In, Ar = Sr, Tr = class extends Cr {
2939
+ var Tr = Ar;
2940
+ Ar.default = Ar;
2941
+ let Nr = En, Pr = Tr, Dr = class extends Nr {
2910
2942
  get selectors() {
2911
- return Ar.comma(this.selector);
2943
+ return Pr.comma(this.selector);
2912
2944
  }
2913
2945
  set selectors(e) {
2914
2946
  let a = this.selector ? this.selector.match(/,\s*/) : null, u = a ? a[0] : "," + this.raw("between", "beforeOpen");
@@ -2918,34 +2950,34 @@ let Cr = In, Ar = Sr, Tr = class extends Cr {
2918
2950
  super(e), this.type = "rule", this.nodes || (this.nodes = []);
2919
2951
  }
2920
2952
  };
2921
- var Nr = Tr;
2922
- Tr.default = Tr, Cr.registerRule(Tr);
2923
- let Pr = En, Dr = ln, Fr = pn, Ur = dr, Br = Vn, $r = yr, jr = Nr;
2953
+ var Fr = Dr;
2954
+ Dr.default = Dr, Nr.registerRule(Dr);
2955
+ let Ur = An, Br = pn, $r = fn, jr = mr, Gr = Kn, Vr = Cr, qr = Fr;
2924
2956
  function Ze(e, a) {
2925
2957
  if (Array.isArray(e)) return e.map((e2) => Ze(e2));
2926
2958
  let { inputs: u, ...m2 } = e;
2927
2959
  if (u) {
2928
2960
  a = [];
2929
2961
  for (let e2 of u) {
2930
- let u2 = { ...e2, __proto__: Ur.prototype };
2931
- u2.map && (u2.map = { ...u2.map, __proto__: Br.prototype }), a.push(u2);
2962
+ let u2 = { ...e2, __proto__: jr.prototype };
2963
+ u2.map && (u2.map = { ...u2.map, __proto__: Gr.prototype }), a.push(u2);
2932
2964
  }
2933
2965
  }
2934
2966
  if (m2.nodes && (m2.nodes = e.nodes.map((e2) => Ze(e2, a))), m2.source) {
2935
2967
  let { inputId: e2, ...u2 } = m2.source;
2936
2968
  m2.source = u2, null != e2 && (m2.source.input = a[e2]);
2937
2969
  }
2938
- if ("root" === m2.type) return new $r(m2);
2939
- if ("decl" === m2.type) return new Fr(m2);
2940
- if ("rule" === m2.type) return new jr(m2);
2941
- if ("comment" === m2.type) return new Dr(m2);
2942
- if ("atrule" === m2.type) return new Pr(m2);
2970
+ if ("root" === m2.type) return new Vr(m2);
2971
+ if ("decl" === m2.type) return new $r(m2);
2972
+ if ("rule" === m2.type) return new qr(m2);
2973
+ if ("comment" === m2.type) return new Br(m2);
2974
+ if ("atrule" === m2.type) return new Ur(m2);
2943
2975
  throw new Error("Unknown node type: " + e.type);
2944
2976
  }
2945
- var Gr = Ze;
2977
+ var Hr = Ze;
2946
2978
  Ze.default = Ze;
2947
- let { dirname: Vr, relative: qr, resolve: Hr, sep: Zr } = Rt, { SourceMapConsumer: Kr, SourceMapGenerator: Jr } = Rt, { pathToFileURL: Yr } = Rt, Xr = dr, Qr = !(!Kr || !Jr), eo = !!(Vr && Hr && qr && Zr);
2948
- var to = class {
2979
+ let { dirname: Zr, relative: Kr, resolve: Jr, sep: Yr } = Ut, { SourceMapConsumer: Xr, SourceMapGenerator: Qr } = Ut, { pathToFileURL: eo } = Ut, to = mr, oo = !(!Xr || !Qr), io = !!(Zr && Jr && Kr && Yr);
2980
+ var ao = class {
2949
2981
  constructor(e, a, u, m2) {
2950
2982
  this.stringify = e, this.mapOpts = u.map || {}, this.root = a, this.opts = u, this.css = m2, this.originalCSS = m2, this.usesFileUrls = !this.mapOpts.from && this.mapOpts.absolute, this.memoizedFileURLs = /* @__PURE__ */ new Map(), this.memoizedPaths = /* @__PURE__ */ new Map(), this.memoizedURLs = /* @__PURE__ */ new Map();
2951
2983
  }
@@ -2957,8 +2989,8 @@ var to = class {
2957
2989
  }
2958
2990
  applyPrevMaps() {
2959
2991
  for (let e of this.previous()) {
2960
- let a, u = this.toUrl(this.path(e.file)), m2 = e.root || Vr(e.file);
2961
- false === this.mapOpts.sourcesContent ? (a = new Kr(e.text), a.sourcesContent && (a.sourcesContent = null)) : a = e.consumer(), this.map.applySourceMap(a, u, this.toUrl(this.path(m2)));
2992
+ let a, u = this.toUrl(this.path(e.file)), m2 = e.root || Zr(e.file);
2993
+ false === this.mapOpts.sourcesContent ? (a = new Xr(e.text), a.sourcesContent && (a.sourcesContent = null)) : a = e.consumer(), this.map.applySourceMap(a, u, this.toUrl(this.path(m2)));
2962
2994
  }
2963
2995
  }
2964
2996
  clearAnnotation() {
@@ -2968,7 +3000,7 @@ var to = class {
2968
3000
  } else this.css && (this.css = this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm, ""));
2969
3001
  }
2970
3002
  generate() {
2971
- if (this.clearAnnotation(), eo && Qr && this.isMap()) return this.generateMap();
3003
+ if (this.clearAnnotation(), io && oo && this.isMap()) return this.generateMap();
2972
3004
  {
2973
3005
  let e = "";
2974
3006
  return this.stringify(this.root, (a) => {
@@ -2980,12 +3012,12 @@ var to = class {
2980
3012
  if (this.root) this.generateString();
2981
3013
  else if (1 === this.previous().length) {
2982
3014
  let e = this.previous()[0].consumer();
2983
- e.file = this.outputFile(), this.map = Jr.fromSourceMap(e, { ignoreInvalidMapping: true });
2984
- } else this.map = new Jr({ file: this.outputFile(), ignoreInvalidMapping: true }), this.map.addMapping({ generated: { column: 0, line: 1 }, original: { column: 0, line: 1 }, source: this.opts.from ? this.toUrl(this.path(this.opts.from)) : "<no source>" });
3015
+ e.file = this.outputFile(), this.map = Qr.fromSourceMap(e, { ignoreInvalidMapping: true });
3016
+ } else this.map = new Qr({ file: this.outputFile(), ignoreInvalidMapping: true }), this.map.addMapping({ generated: { column: 0, line: 1 }, original: { column: 0, line: 1 }, source: this.opts.from ? this.toUrl(this.path(this.opts.from)) : "<no source>" });
2985
3017
  return this.isSourcesContent() && this.setSourcesContent(), this.root && this.previous().length > 0 && this.applyPrevMaps(), this.isAnnotation() && this.addAnnotation(), this.isInline() ? [this.css] : [this.css, this.map];
2986
3018
  }
2987
3019
  generateString() {
2988
- this.css = "", this.map = new Jr({ file: this.outputFile(), ignoreInvalidMapping: true });
3020
+ this.css = "", this.map = new Qr({ file: this.outputFile(), ignoreInvalidMapping: true });
2989
3021
  let e, a, u = 1, m2 = 1, w2 = "<no source>", b2 = { generated: { column: 0, line: 0 }, original: { column: 0, line: 0 }, source: "" };
2990
3022
  this.stringify(this.root, (C2, x2, I2) => {
2991
3023
  if (this.css += C2, x2 && "end" !== I2 && (b2.generated.line = u, b2.generated.column = m2 - 1, x2.source && x2.source.start ? (b2.source = this.sourcePath(x2), b2.original.line = x2.source.start.line, b2.original.column = x2.source.start.column - 1, this.map.addMapping(b2)) : (b2.source = w2, b2.original.line = 1, b2.original.column = 0, this.map.addMapping(b2))), a = C2.match(/\n/g), a ? (u += a.length, e = C2.lastIndexOf("\n"), m2 = C2.length - e) : m2 += C2.length, x2 && "start" !== I2) {
@@ -3015,9 +3047,9 @@ var to = class {
3015
3047
  if (this.mapOpts.absolute || 60 === e.charCodeAt(0) || /^\w+:\/\//.test(e)) return e;
3016
3048
  let a = this.memoizedPaths.get(e);
3017
3049
  if (a) return a;
3018
- let u = this.opts.to ? Vr(this.opts.to) : ".";
3019
- "string" == typeof this.mapOpts.annotation && (u = Vr(Hr(u, this.mapOpts.annotation)));
3020
- let m2 = qr(u, e);
3050
+ let u = this.opts.to ? Zr(this.opts.to) : ".";
3051
+ "string" == typeof this.mapOpts.annotation && (u = Zr(Jr(u, this.mapOpts.annotation)));
3052
+ let m2 = Kr(u, e);
3021
3053
  return this.memoizedPaths.set(e, m2), m2;
3022
3054
  }
3023
3055
  previous() {
@@ -3028,7 +3060,7 @@ var to = class {
3028
3060
  }
3029
3061
  });
3030
3062
  else {
3031
- let e = new Xr(this.originalCSS, this.opts);
3063
+ let e = new to(this.originalCSS, this.opts);
3032
3064
  e.map && this.previousMaps.push(e.map);
3033
3065
  }
3034
3066
  return this.previousMaps;
@@ -3059,8 +3091,8 @@ var to = class {
3059
3091
  toFileUrl(e) {
3060
3092
  let a = this.memoizedFileURLs.get(e);
3061
3093
  if (a) return a;
3062
- if (Yr) {
3063
- let a2 = Yr(e).toString();
3094
+ if (eo) {
3095
+ let a2 = eo(e).toString();
3064
3096
  return this.memoizedFileURLs.set(e, a2), a2;
3065
3097
  }
3066
3098
  throw new Error("`map.absolute` option is not available in this PostCSS build");
@@ -3068,13 +3100,13 @@ var to = class {
3068
3100
  toUrl(e) {
3069
3101
  let a = this.memoizedURLs.get(e);
3070
3102
  if (a) return a;
3071
- "\\" === Zr && (e = e.replace(/\\/g, "/"));
3103
+ "\\" === Yr && (e = e.replace(/\\/g, "/"));
3072
3104
  let u = encodeURI(e).replace(/[#?]/g, encodeURIComponent);
3073
3105
  return this.memoizedURLs.set(e, u), u;
3074
3106
  }
3075
3107
  };
3076
- const oo = /[\t\n\f\r "#'()/;[\\\]{}]/g, io = /[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g, ao = /.[\r\n"'(/\\]/, lo = /[\da-f]/i;
3077
- let co = En, uo = ln, ho = pn, Mo = yr, _o = Nr, Xa = function(e, a = {}) {
3108
+ const lo = /[\t\n\f\r "#'()/;[\\\]{}]/g, co = /[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g, uo = /.[\r\n"'(/\\]/, ho = /[\da-f]/i;
3109
+ let Mo = An, _o = pn, Ao = fn, No = Cr, Po = Fr, Xa = function(e, a = {}) {
3078
3110
  let u, m2, w2, b2, C2, x2, I2, _2, O2, E2, D2 = e.css.valueOf(), F2 = a.ignoreErrors, U2 = D2.length, B2 = 0, $2 = [], z2 = [];
3079
3111
  function y2(a2) {
3080
3112
  throw e.error("Unclosed " + a2, B2);
@@ -3124,7 +3156,7 @@ let co = En, uo = ln, ho = pn, Mo = yr, _o = Nr, Xa = function(e, a = {}) {
3124
3156
  for (_2 = b2; 92 === D2.charCodeAt(_2 - 1); ) _2 -= 1, I2 = !I2;
3125
3157
  } while (I2);
3126
3158
  x2 = ["brackets", D2.slice(B2, b2 + 1), B2, b2], B2 = b2;
3127
- } else b2 = D2.indexOf(")", B2 + 1), m2 = D2.slice(B2, b2 + 1), -1 === b2 || ao.test(m2) ? x2 = ["(", "(", B2] : (x2 = ["brackets", m2, B2, b2], B2 = b2);
3159
+ } else b2 = D2.indexOf(")", B2 + 1), m2 = D2.slice(B2, b2 + 1), -1 === b2 || uo.test(m2) ? x2 = ["(", "(", B2] : (x2 = ["brackets", m2, B2, b2], B2 = b2);
3128
3160
  break;
3129
3161
  case 39:
3130
3162
  case 34:
@@ -3142,31 +3174,31 @@ let co = En, uo = ln, ho = pn, Mo = yr, _o = Nr, Xa = function(e, a = {}) {
3142
3174
  x2 = ["string", D2.slice(B2, b2 + 1), B2, b2], B2 = b2;
3143
3175
  break;
3144
3176
  case 64:
3145
- oo.lastIndex = B2 + 1, oo.test(D2), b2 = 0 === oo.lastIndex ? D2.length - 1 : oo.lastIndex - 2, x2 = ["at-word", D2.slice(B2, b2 + 1), B2, b2], B2 = b2;
3177
+ lo.lastIndex = B2 + 1, lo.test(D2), b2 = 0 === lo.lastIndex ? D2.length - 1 : lo.lastIndex - 2, x2 = ["at-word", D2.slice(B2, b2 + 1), B2, b2], B2 = b2;
3146
3178
  break;
3147
3179
  case 92:
3148
3180
  for (b2 = B2, w2 = true; 92 === D2.charCodeAt(b2 + 1); ) b2 += 1, w2 = !w2;
3149
- if (u = D2.charCodeAt(b2 + 1), w2 && 47 !== u && 32 !== u && 10 !== u && 9 !== u && 13 !== u && 12 !== u && (b2 += 1, lo.test(D2.charAt(b2)))) {
3150
- for (; lo.test(D2.charAt(b2 + 1)); ) b2 += 1;
3181
+ if (u = D2.charCodeAt(b2 + 1), w2 && 47 !== u && 32 !== u && 10 !== u && 9 !== u && 13 !== u && 12 !== u && (b2 += 1, ho.test(D2.charAt(b2)))) {
3182
+ for (; ho.test(D2.charAt(b2 + 1)); ) b2 += 1;
3151
3183
  32 === D2.charCodeAt(b2 + 1) && (b2 += 1);
3152
3184
  }
3153
3185
  x2 = ["word", D2.slice(B2, b2 + 1), B2, b2], B2 = b2;
3154
3186
  break;
3155
3187
  default:
3156
- 47 === u && 42 === D2.charCodeAt(B2 + 1) ? (b2 = D2.indexOf("*/", B2 + 2) + 1, 0 === b2 && (F2 || a2 ? b2 = D2.length : y2("comment")), x2 = ["comment", D2.slice(B2, b2 + 1), B2, b2], B2 = b2) : (io.lastIndex = B2 + 1, io.test(D2), b2 = 0 === io.lastIndex ? D2.length - 1 : io.lastIndex - 2, x2 = ["word", D2.slice(B2, b2 + 1), B2, b2], $2.push(x2), B2 = b2);
3188
+ 47 === u && 42 === D2.charCodeAt(B2 + 1) ? (b2 = D2.indexOf("*/", B2 + 2) + 1, 0 === b2 && (F2 || a2 ? b2 = D2.length : y2("comment")), x2 = ["comment", D2.slice(B2, b2 + 1), B2, b2], B2 = b2) : (co.lastIndex = B2 + 1, co.test(D2), b2 = 0 === co.lastIndex ? D2.length - 1 : co.lastIndex - 2, x2 = ["word", D2.slice(B2, b2 + 1), B2, b2], $2.push(x2), B2 = b2);
3157
3189
  }
3158
3190
  return B2++, x2;
3159
3191
  }, position: function S() {
3160
3192
  return B2;
3161
3193
  } };
3162
3194
  };
3163
- const Ao = { empty: true, space: true };
3164
- var No = class {
3195
+ const Do = { empty: true, space: true };
3196
+ var Fo = class {
3165
3197
  constructor(e) {
3166
- this.input = e, this.root = new Mo(), this.current = this.root, this.spaces = "", this.semicolon = false, this.createTokenizer(), this.root.source = { input: e, start: { column: 1, line: 1, offset: 0 } };
3198
+ this.input = e, this.root = new No(), this.current = this.root, this.spaces = "", this.semicolon = false, this.createTokenizer(), this.root.source = { input: e, start: { column: 1, line: 1, offset: 0 } };
3167
3199
  }
3168
3200
  atrule(e) {
3169
- let a = new co();
3201
+ let a = new Mo();
3170
3202
  a.name = e[1].slice(1), "" === a.name && this.unnamedAtrule(a, e), this.init(a, e[2]);
3171
3203
  let u, m2, w2, b2 = false, C2 = false, x2 = [], I2 = [];
3172
3204
  for (; !this.tokenizer.endOfFile(); ) {
@@ -3218,7 +3250,7 @@ var No = class {
3218
3250
  return false;
3219
3251
  }
3220
3252
  comment(e) {
3221
- let a = new uo();
3253
+ let a = new _o();
3222
3254
  this.init(a, e[2]), a.source.end = this.getPosition(e[3] || e[2]), a.source.end.offset++;
3223
3255
  let u = e[1].slice(2, -2);
3224
3256
  if (/^\s*$/.test(u)) a.text = "", a.raws.left = u, a.raws.right = "";
@@ -3231,7 +3263,7 @@ var No = class {
3231
3263
  this.tokenizer = Xa(this.input);
3232
3264
  }
3233
3265
  decl(e, a) {
3234
- let u = new ho();
3266
+ let u = new Ao();
3235
3267
  this.init(u, e[0][2]);
3236
3268
  let m2, w2 = e[e.length - 1];
3237
3269
  for (";" === w2[0] && (this.semicolon = true, e.pop()), u.source.end = this.getPosition(w2[3] || w2[2] || (function Ha(e2) {
@@ -3280,7 +3312,7 @@ var No = class {
3280
3312
  throw this.input.error("Double colon", { offset: e[2] }, { offset: e[2] + e[1].length });
3281
3313
  }
3282
3314
  emptyRule(e) {
3283
- let a = new _o();
3315
+ let a = new Po();
3284
3316
  this.init(a, e[2]), a.selector = "", a.raws.between = "", this.current = a;
3285
3317
  }
3286
3318
  end(e) {
@@ -3356,7 +3388,7 @@ var No = class {
3356
3388
  }
3357
3389
  raw(e, a, u, m2) {
3358
3390
  let w2, b2, C2, x2, I2 = u.length, _2 = "", O2 = true;
3359
- for (let e2 = 0; e2 < I2; e2 += 1) w2 = u[e2], b2 = w2[0], "space" !== b2 || e2 !== I2 - 1 || m2 ? "comment" === b2 ? (x2 = u[e2 - 1] ? u[e2 - 1][0] : "empty", C2 = u[e2 + 1] ? u[e2 + 1][0] : "empty", Ao[x2] || Ao[C2] || "," === _2.slice(-1) ? O2 = false : _2 += w2[1]) : _2 += w2[1] : O2 = false;
3391
+ for (let e2 = 0; e2 < I2; e2 += 1) w2 = u[e2], b2 = w2[0], "space" !== b2 || e2 !== I2 - 1 || m2 ? "comment" === b2 ? (x2 = u[e2 - 1] ? u[e2 - 1][0] : "empty", C2 = u[e2 + 1] ? u[e2 + 1][0] : "empty", Do[x2] || Do[C2] || "," === _2.slice(-1) ? O2 = false : _2 += w2[1]) : _2 += w2[1] : O2 = false;
3360
3392
  if (!O2) {
3361
3393
  let m3 = u.reduce((e2, a2) => e2 + a2[1], "");
3362
3394
  e.raws[a] = { raw: m3, value: _2 };
@@ -3365,7 +3397,7 @@ var No = class {
3365
3397
  }
3366
3398
  rule(e) {
3367
3399
  e.pop();
3368
- let a = new _o();
3400
+ let a = new Po();
3369
3401
  this.init(a, e[0][2]), a.raws.between = this.spacesAndCommentsFromEnd(e), this.raw(a, "selector", e), this.current = a;
3370
3402
  }
3371
3403
  spacesAndCommentsFromEnd(e) {
@@ -3405,9 +3437,9 @@ var No = class {
3405
3437
  throw this.input.error("At-rule without name", { offset: a[2] }, { offset: a[2] + a[1].length });
3406
3438
  }
3407
3439
  };
3408
- let Po = In, Do = dr, Fo = No;
3440
+ let Uo = En, $o = mr, jo = Fo;
3409
3441
  function _t(e, a) {
3410
- let u = new Do(e, a), m2 = new Fo(u);
3442
+ let u = new $o(e, a), m2 = new jo(u);
3411
3443
  try {
3412
3444
  m2.parse();
3413
3445
  } catch (e2) {
@@ -3415,9 +3447,9 @@ function _t(e, a) {
3415
3447
  }
3416
3448
  return m2.root;
3417
3449
  }
3418
- var Uo = _t;
3419
- _t.default = _t, Po.registerParse(_t);
3420
- let $o = class {
3450
+ var Go = _t;
3451
+ _t.default = _t, Uo.registerParse(_t);
3452
+ let Vo = class {
3421
3453
  constructor(e, a = {}) {
3422
3454
  if (this.type = "warning", this.text = e, a.node && a.node.source) {
3423
3455
  let e2 = a.node.rangeBy(a);
@@ -3429,9 +3461,9 @@ let $o = class {
3429
3461
  return this.node ? this.node.error(this.text, { index: this.index, plugin: this.plugin, word: this.word }).message : this.plugin ? this.plugin + ": " + this.text : this.text;
3430
3462
  }
3431
3463
  };
3432
- var jo = $o;
3433
- $o.default = $o;
3434
- let Go = jo, Vo = class {
3464
+ var qo = Vo;
3465
+ Vo.default = Vo;
3466
+ let Ho = qo, Zo = class {
3435
3467
  get content() {
3436
3468
  return this.css;
3437
3469
  }
@@ -3443,26 +3475,26 @@ let Go = jo, Vo = class {
3443
3475
  }
3444
3476
  warn(e, a = {}) {
3445
3477
  a.plugin || this.lastPlugin && this.lastPlugin.postcssPlugin && (a.plugin = this.lastPlugin.postcssPlugin);
3446
- let u = new Go(e, a);
3478
+ let u = new Ho(e, a);
3447
3479
  return this.messages.push(u), u;
3448
3480
  }
3449
3481
  warnings() {
3450
3482
  return this.messages.filter((e) => "warning" === e.type);
3451
3483
  }
3452
3484
  };
3453
- var qo = Vo;
3454
- Vo.default = Vo;
3455
- let Ho = {};
3485
+ var Ko = Zo;
3486
+ Zo.default = Zo;
3487
+ let Jo = {};
3456
3488
  var so = function(e) {
3457
- Ho[e] || (Ho[e] = true, typeof console < "u" && console.warn && console.warn(e));
3489
+ Jo[e] || (Jo[e] = true, typeof console < "u" && console.warn && console.warn(e));
3458
3490
  };
3459
- let Zo = In, Ko = Nn, Jo = to, Yo = Uo, Xo = qo, Qo = yr, es = Kt, { isClean: ts, my: ns } = Jt, rs = so;
3460
- const os = { atrule: "AtRule", comment: "Comment", decl: "Declaration", document: "Document", root: "Root", rule: "Rule" }, ss = { AtRule: true, AtRuleExit: true, Comment: true, CommentExit: true, Declaration: true, DeclarationExit: true, Document: true, DocumentExit: true, Once: true, OnceExit: true, postcssPlugin: true, prepare: true, Root: true, RootExit: true, Rule: true, RuleExit: true }, is = { Once: true, postcssPlugin: true, prepare: true };
3491
+ let Yo = En, Xo = Fn, Qo = ao, es = Go, ts = Ko, ns = Cr, rs = Qt, { isClean: os, my: ss } = en, is = so;
3492
+ const as = { atrule: "AtRule", comment: "Comment", decl: "Declaration", document: "Document", root: "Root", rule: "Rule" }, ls = { AtRule: true, AtRuleExit: true, Comment: true, CommentExit: true, Declaration: true, DeclarationExit: true, Document: true, DocumentExit: true, Once: true, OnceExit: true, postcssPlugin: true, prepare: true, Root: true, RootExit: true, Rule: true, RuleExit: true }, cs = { Once: true, postcssPlugin: true, prepare: true };
3461
3493
  function Ne(e) {
3462
3494
  return "object" == typeof e && "function" == typeof e.then;
3463
3495
  }
3464
3496
  function no(e) {
3465
- let a = false, u = os[e.type];
3497
+ let a = false, u = as[e.type];
3466
3498
  return "decl" === e.type ? a = e.prop.toLowerCase() : "atrule" === e.type && (a = e.name.toLowerCase()), a && e.append ? [u, u + "-" + a, 0, u + "Exit", u + "Exit-" + a] : a ? [u, u + "-" + a, u + "Exit", u + "Exit-" + a] : e.append ? [u, 0, u + "Exit"] : [u, u + "Exit"];
3467
3499
  }
3468
3500
  function Gn(e) {
@@ -3470,9 +3502,9 @@ function Gn(e) {
3470
3502
  return a = "document" === e.type ? ["Document", 0, "DocumentExit"] : "root" === e.type ? ["Root", 0, "RootExit"] : no(e), { eventIndex: 0, events: a, iterator: 0, node: e, visitorIndex: 0, visitors: [] };
3471
3503
  }
3472
3504
  function Ps(e) {
3473
- return e[ts] = false, e.nodes && e.nodes.forEach((e2) => Ps(e2)), e;
3505
+ return e[os] = false, e.nodes && e.nodes.forEach((e2) => Ps(e2)), e;
3474
3506
  }
3475
- let as = {}, ls = class ro {
3507
+ let us = {}, ps = class ro {
3476
3508
  get content() {
3477
3509
  return this.stringify().content;
3478
3510
  }
@@ -3499,19 +3531,19 @@ let as = {}, ls = class ro {
3499
3531
  }
3500
3532
  constructor(e, a, u) {
3501
3533
  let m2;
3502
- if (this.stringified = false, this.processed = false, "object" != typeof a || null === a || "root" !== a.type && "document" !== a.type) if (a instanceof ro || a instanceof Xo) m2 = Ps(a.root), a.map && (typeof u.map > "u" && (u.map = {}), u.map.inline || (u.map.inline = false), u.map.prev = a.map);
3534
+ if (this.stringified = false, this.processed = false, "object" != typeof a || null === a || "root" !== a.type && "document" !== a.type) if (a instanceof ro || a instanceof ts) m2 = Ps(a.root), a.map && (typeof u.map > "u" && (u.map = {}), u.map.inline || (u.map.inline = false), u.map.prev = a.map);
3503
3535
  else {
3504
- let e2 = Yo;
3536
+ let e2 = es;
3505
3537
  u.syntax && (e2 = u.syntax.parse), u.parser && (e2 = u.parser), e2.parse && (e2 = e2.parse);
3506
3538
  try {
3507
3539
  m2 = e2(a, u);
3508
3540
  } catch (e3) {
3509
3541
  this.processed = true, this.error = e3;
3510
3542
  }
3511
- m2 && !m2[ns] && Zo.rebuild(m2);
3543
+ m2 && !m2[ss] && Yo.rebuild(m2);
3512
3544
  }
3513
3545
  else m2 = Ps(a);
3514
- this.result = new Xo(e, m2, u), this.helpers = { ...as, postcss: as, result: this.result }, this.plugins = this.processor.plugins.map((e2) => "object" == typeof e2 && e2.prepare ? { ...e2, ...e2.prepare(this.result) } : e2);
3546
+ this.result = new ts(e, m2, u), this.helpers = { ...us, postcss: us, result: this.result }, this.plugins = this.processor.plugins.map((e2) => "object" == typeof e2 && e2.prepare ? { ...e2, ...e2.prepare(this.result) } : e2);
3515
3547
  }
3516
3548
  async() {
3517
3549
  return this.error ? Promise.reject(this.error) : this.processed ? Promise.resolve(this.result) : (this.processing || (this.processing = this.runAsync()), this.processing);
@@ -3545,8 +3577,8 @@ let as = {}, ls = class ro {
3545
3577
  this.listeners[a] || (this.listeners[a] = []), this.listeners[a].push([e, u]);
3546
3578
  };
3547
3579
  for (let e of this.plugins) if ("object" == typeof e) for (let a in e) {
3548
- if (!ss[a] && /^[A-Z]/.test(a)) throw new Error(`Unknown event ${a} in ${e.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);
3549
- if (!is[a]) if ("object" == typeof e[a]) for (let u in e[a]) t(e, "*" === u ? a : a + "-" + u.toLowerCase(), e[a][u]);
3580
+ if (!ls[a] && /^[A-Z]/.test(a)) throw new Error(`Unknown event ${a} in ${e.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);
3581
+ if (!cs[a]) if ("object" == typeof e[a]) for (let u in e[a]) t(e, "*" === u ? a : a + "-" + u.toLowerCase(), e[a][u]);
3550
3582
  else "function" == typeof e[a] && t(e, a, e[a]);
3551
3583
  }
3552
3584
  this.hasListener = Object.keys(this.listeners).length > 0;
@@ -3563,8 +3595,8 @@ let as = {}, ls = class ro {
3563
3595
  }
3564
3596
  if (this.prepareVisitors(), this.hasListener) {
3565
3597
  let e = this.result.root;
3566
- for (; !e[ts]; ) {
3567
- e[ts] = true;
3598
+ for (; !e[os]; ) {
3599
+ e[os] = true;
3568
3600
  let a = [Gn(e)];
3569
3601
  for (; a.length > 0; ) {
3570
3602
  let e2 = this.visitTick(a);
@@ -3609,9 +3641,9 @@ let as = {}, ls = class ro {
3609
3641
  if (this.error) throw this.error;
3610
3642
  if (this.stringified) return this.result;
3611
3643
  this.stringified = true, this.sync();
3612
- let e = this.result.opts, a = es;
3644
+ let e = this.result.opts, a = rs;
3613
3645
  e.syntax && (a = e.syntax.stringify), e.stringifier && (a = e.stringifier), a.stringify && (a = a.stringify);
3614
- let u = new Jo(a, this.result.root, this.result.opts).generate();
3646
+ let u = new Qo(a, this.result.root, this.result.opts).generate();
3615
3647
  return this.result.css = u[0], this.result.map = u[1], this.result;
3616
3648
  }
3617
3649
  sync() {
@@ -3623,14 +3655,14 @@ let as = {}, ls = class ro {
3623
3655
  }
3624
3656
  if (this.prepareVisitors(), this.hasListener) {
3625
3657
  let e = this.result.root;
3626
- for (; !e[ts]; ) e[ts] = true, this.walkSync(e);
3658
+ for (; !e[os]; ) e[os] = true, this.walkSync(e);
3627
3659
  if (this.listeners.OnceExit) if ("document" === e.type) for (let a of e.nodes) this.visitSync(this.listeners.OnceExit, a);
3628
3660
  else this.visitSync(this.listeners.OnceExit, e);
3629
3661
  }
3630
3662
  return this.result;
3631
3663
  }
3632
3664
  then(e, a) {
3633
- return "production" !== process.env.NODE_ENV && ("from" in this.opts || rs("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")), this.async().then(e, a);
3665
+ return "production" !== process.env.NODE_ENV && ("from" in this.opts || is("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")), this.async().then(e, a);
3634
3666
  }
3635
3667
  toString() {
3636
3668
  return this.css;
@@ -3662,22 +3694,22 @@ let as = {}, ls = class ro {
3662
3694
  }
3663
3695
  if (0 !== a.iterator) {
3664
3696
  let m3, w3 = a.iterator;
3665
- for (; m3 = u.nodes[u.indexes[w3]]; ) if (u.indexes[w3] += 1, !m3[ts]) return m3[ts] = true, void e.push(Gn(m3));
3697
+ for (; m3 = u.nodes[u.indexes[w3]]; ) if (u.indexes[w3] += 1, !m3[os]) return m3[os] = true, void e.push(Gn(m3));
3666
3698
  a.iterator = 0, delete u.indexes[w3];
3667
3699
  }
3668
3700
  let w2 = a.events;
3669
3701
  for (; a.eventIndex < w2.length; ) {
3670
3702
  let e2 = w2[a.eventIndex];
3671
- if (a.eventIndex += 1, 0 === e2) return void (u.nodes && u.nodes.length && (u[ts] = true, a.iterator = u.getIterator()));
3703
+ if (a.eventIndex += 1, 0 === e2) return void (u.nodes && u.nodes.length && (u[os] = true, a.iterator = u.getIterator()));
3672
3704
  if (this.listeners[e2]) return void (a.visitors = this.listeners[e2]);
3673
3705
  }
3674
3706
  e.pop();
3675
3707
  }
3676
3708
  walkSync(e) {
3677
- e[ts] = true;
3709
+ e[os] = true;
3678
3710
  let a = no(e);
3679
3711
  for (let u of a) if (0 === u) e.nodes && e.each((e2) => {
3680
- e2[ts] || this.walkSync(e2);
3712
+ e2[os] || this.walkSync(e2);
3681
3713
  });
3682
3714
  else {
3683
3715
  let a2 = this.listeners[u];
@@ -3688,14 +3720,14 @@ let as = {}, ls = class ro {
3688
3720
  return this.sync().warnings();
3689
3721
  }
3690
3722
  };
3691
- ls.registerPostcss = (e) => {
3692
- as = e;
3723
+ ps.registerPostcss = (e) => {
3724
+ us = e;
3693
3725
  };
3694
- var cs = ls;
3695
- ls.default = ls, Qo.registerLazyResult(ls), Ko.registerLazyResult(ls);
3696
- let us = to, ps = Uo;
3697
- const ds = qo;
3698
- let hs = Kt, ms = so, gs = class {
3726
+ var ds = ps;
3727
+ ps.default = ps, ns.registerLazyResult(ps), Xo.registerLazyResult(ps);
3728
+ let hs = ao, ms = Go;
3729
+ const gs = Ko;
3730
+ let ys = Qt, ws = so, Ss = class {
3699
3731
  get content() {
3700
3732
  return this.result.css;
3701
3733
  }
@@ -3716,7 +3748,7 @@ let hs = Kt, ms = so, gs = class {
3716
3748
  }
3717
3749
  get root() {
3718
3750
  if (this._root) return this._root;
3719
- let e, a = ps;
3751
+ let e, a = ms;
3720
3752
  try {
3721
3753
  e = a(this._css, this._opts);
3722
3754
  } catch (e2) {
@@ -3730,11 +3762,11 @@ let hs = Kt, ms = so, gs = class {
3730
3762
  }
3731
3763
  constructor(e, a, u) {
3732
3764
  a = a.toString(), this.stringified = false, this._processor = e, this._css = a, this._opts = u, this._map = void 0;
3733
- let m2, w2 = hs;
3734
- this.result = new ds(this._processor, m2, this._opts), this.result.css = a;
3765
+ let m2, w2 = ys;
3766
+ this.result = new gs(this._processor, m2, this._opts), this.result.css = a;
3735
3767
  let b2 = this;
3736
3768
  Object.defineProperty(this.result, "root", { get: () => b2.root });
3737
- let C2 = new us(w2, m2, this._opts, a);
3769
+ let C2 = new hs(w2, m2, this._opts, a);
3738
3770
  if (C2.isMap()) {
3739
3771
  let [e2, a2] = C2.generate();
3740
3772
  e2 && (this.result.css = e2), a2 && (this.result.map = a2);
@@ -3754,7 +3786,7 @@ let hs = Kt, ms = so, gs = class {
3754
3786
  return this.result;
3755
3787
  }
3756
3788
  then(e, a) {
3757
- return "production" !== process.env.NODE_ENV && ("from" in this._opts || ms("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")), this.async().then(e, a);
3789
+ return "production" !== process.env.NODE_ENV && ("from" in this._opts || ws("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")), this.async().then(e, a);
3758
3790
  }
3759
3791
  toString() {
3760
3792
  return this._css;
@@ -3763,9 +3795,9 @@ let hs = Kt, ms = so, gs = class {
3763
3795
  return [];
3764
3796
  }
3765
3797
  };
3766
- var ys = gs;
3767
- gs.default = gs;
3768
- let ws = Nn, bs = cs, Ss = ys, vs = yr, xs = class {
3798
+ var bs = Ss;
3799
+ Ss.default = Ss;
3800
+ let vs = Fn, xs = ds, Ms = bs, Is = Cr, _s = class {
3769
3801
  constructor(e = []) {
3770
3802
  this.version = "8.5.3", this.plugins = this.normalize(e);
3771
3803
  }
@@ -3781,43 +3813,43 @@ let ws = Nn, bs = cs, Ss = ys, vs = yr, xs = class {
3781
3813
  return a;
3782
3814
  }
3783
3815
  process(e, a = {}) {
3784
- return this.plugins.length || a.parser || a.stringifier || a.syntax ? new bs(this, e, a) : new Ss(this, e, a);
3816
+ return this.plugins.length || a.parser || a.stringifier || a.syntax ? new xs(this, e, a) : new Ms(this, e, a);
3785
3817
  }
3786
3818
  use(e) {
3787
3819
  return this.plugins = this.plugins.concat(this.normalize([e])), this;
3788
3820
  }
3789
3821
  };
3790
- var Ms = xs;
3791
- xs.default = xs, vs.registerProcessor(xs), ws.registerProcessor(xs);
3792
- let Is = En, _s = ln, Os = In, Es = Bt, Ls = pn, Rs = Nn, As = Gr, Ts = dr, Ns = cs, $s = Sr, Ws = on, js = Uo, Gs = Ms, Vs = qo, qs = yr, Hs = Nr, Zs = Kt, Ks = jo;
3822
+ var Os = _s;
3823
+ _s.default = _s, Is.registerProcessor(_s), vs.registerProcessor(_s);
3824
+ let Es = An, Ls = pn, Rs = En, As = Vt, Ts = fn, Ns = Fn, $s = Hr, Ws = mr, js = ds, Gs = Tr, Vs = ln, qs = Go, Hs = Os, Zs = Ko, Ks = Cr, Ys = Fr, Xs = Qt, Qs = qo;
3793
3825
  function L$1(...e) {
3794
- return 1 === e.length && Array.isArray(e[0]) && (e = e[0]), new Gs(e);
3826
+ return 1 === e.length && Array.isArray(e[0]) && (e = e[0]), new Hs(e);
3795
3827
  }
3796
3828
  L$1.plugin = function(e, a) {
3797
3829
  let u, m2 = false;
3798
3830
  function n(...u2) {
3799
3831
  console && console.warn && !m2 && (m2 = true, console.warn(e + ": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"), process.env.LANG && process.env.LANG.startsWith("cn") && console.warn(e + ": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));
3800
3832
  let w2 = a(...u2);
3801
- return w2.postcssPlugin = e, w2.postcssVersion = new Gs().version, w2;
3833
+ return w2.postcssPlugin = e, w2.postcssVersion = new Hs().version, w2;
3802
3834
  }
3803
3835
  return Object.defineProperty(n, "postcss", { get: () => (u || (u = n()), u) }), n.process = function(e2, a2, u2) {
3804
3836
  return L$1([n(u2)]).process(e2, a2);
3805
3837
  }, n;
3806
- }, L$1.stringify = Zs, L$1.parse = js, L$1.fromJSON = As, L$1.list = $s, L$1.comment = (e) => new _s(e), L$1.atRule = (e) => new Is(e), L$1.decl = (e) => new Ls(e), L$1.rule = (e) => new Hs(e), L$1.root = (e) => new qs(e), L$1.document = (e) => new Rs(e), L$1.CssSyntaxError = Es, L$1.Declaration = Ls, L$1.Container = Os, L$1.Processor = Gs, L$1.Document = Rs, L$1.Comment = _s, L$1.Warning = Ks, L$1.AtRule = Is, L$1.Result = Vs, L$1.Input = Ts, L$1.Rule = Hs, L$1.Root = qs, L$1.Node = Ws, Ns.registerPostcss(L$1);
3807
- var Ys = L$1;
3838
+ }, L$1.stringify = Xs, L$1.parse = qs, L$1.fromJSON = $s, L$1.list = Gs, L$1.comment = (e) => new Ls(e), L$1.atRule = (e) => new Es(e), L$1.decl = (e) => new Ts(e), L$1.rule = (e) => new Ys(e), L$1.root = (e) => new Ks(e), L$1.document = (e) => new Ns(e), L$1.CssSyntaxError = As, L$1.Declaration = Ts, L$1.Container = Rs, L$1.Processor = Hs, L$1.Document = Ns, L$1.Comment = Ls, L$1.Warning = Qs, L$1.AtRule = Es, L$1.Result = Zs, L$1.Input = Ws, L$1.Rule = Ys, L$1.Root = Ks, L$1.Node = Vs, js.registerPostcss(L$1);
3839
+ var ei = L$1;
3808
3840
  L$1.default = L$1;
3809
- const Xs = Yi(Ys);
3810
- Xs.stringify, Xs.fromJSON, Xs.plugin, Xs.parse, Xs.list, Xs.document, Xs.comment, Xs.atRule, Xs.rule, Xs.decl, Xs.root, Xs.CssSyntaxError, Xs.Declaration, Xs.Container, Xs.Processor, Xs.Document, Xs.Comment, Xs.Warning, Xs.AtRule, Xs.Result, Xs.Input, Xs.Rule, Xs.Root, Xs.Node;
3811
- var Qs = ((e) => (e[e.DomContentLoaded = 0] = "DomContentLoaded", e[e.Load = 1] = "Load", e[e.FullSnapshot = 2] = "FullSnapshot", e[e.IncrementalSnapshot = 3] = "IncrementalSnapshot", e[e.Meta = 4] = "Meta", e[e.Custom = 5] = "Custom", e[e.Plugin = 6] = "Plugin", e[e.Device = 24] = "Device", e[e.SailfishCustom = 25] = "SailfishCustom", e))(Qs || {}), ei = ((e) => (e[e.Mutation = 0] = "Mutation", e[e.MouseMove = 1] = "MouseMove", e[e.MouseInteraction = 2] = "MouseInteraction", e[e.Scroll = 3] = "Scroll", e[e.ViewportResize = 4] = "ViewportResize", e[e.Input = 5] = "Input", e[e.TouchMove = 6] = "TouchMove", e[e.MediaInteraction = 7] = "MediaInteraction", e[e.StyleSheetRule = 8] = "StyleSheetRule", e[e.CanvasMutation = 9] = "CanvasMutation", e[e.Font = 10] = "Font", e[e.Log = 11] = "Log", e[e.Drag = 12] = "Drag", e[e.StyleDeclaration = 13] = "StyleDeclaration", e[e.Selection = 14] = "Selection", e[e.AdoptedStyleSheet = 15] = "AdoptedStyleSheet", e[e.CustomElement = 16] = "CustomElement", e[e.Typing = 17] = "Typing", e))(ei || {}), ti = ((e) => (e[e.MouseUp = 0] = "MouseUp", e[e.MouseDown = 1] = "MouseDown", e[e.Click = 2] = "Click", e[e.ContextMenu = 3] = "ContextMenu", e[e.DblClick = 4] = "DblClick", e[e.Focus = 5] = "Focus", e[e.Blur = 6] = "Blur", e[e.TouchStart = 7] = "TouchStart", e[e.TouchMove_Departed = 8] = "TouchMove_Departed", e[e.TouchEnd = 9] = "TouchEnd", e[e.TouchCancel = 10] = "TouchCancel", e))(ti || {}), si = ((e) => (e[e.Mouse = 0] = "Mouse", e[e.Pen = 1] = "Pen", e[e.Touch = 2] = "Touch", e))(si || {}), ii = ((e) => (e[e["2D"] = 0] = "2D", e[e.WebGL = 1] = "WebGL", e[e.WebGL2 = 2] = "WebGL2", e))(ii || {}), ai = ((e) => (e[e.Play = 0] = "Play", e[e.Pause = 1] = "Pause", e[e.Seeked = 2] = "Seeked", e[e.VolumeChange = 3] = "VolumeChange", e[e.RateChange = 4] = "RateChange", e))(ai || {});
3841
+ const ti = Yi(ei);
3842
+ ti.stringify, ti.fromJSON, ti.plugin, ti.parse, ti.list, ti.document, ti.comment, ti.atRule, ti.rule, ti.decl, ti.root, ti.CssSyntaxError, ti.Declaration, ti.Container, ti.Processor, ti.Document, ti.Comment, ti.Warning, ti.AtRule, ti.Result, ti.Input, ti.Rule, ti.Root, ti.Node;
3843
+ var si = ((e) => (e[e.DomContentLoaded = 0] = "DomContentLoaded", e[e.Load = 1] = "Load", e[e.FullSnapshot = 2] = "FullSnapshot", e[e.IncrementalSnapshot = 3] = "IncrementalSnapshot", e[e.Meta = 4] = "Meta", e[e.Custom = 5] = "Custom", e[e.Plugin = 6] = "Plugin", e[e.Device = 24] = "Device", e[e.SailfishCustom = 25] = "SailfishCustom", e))(si || {}), ii = ((e) => (e[e.Mutation = 0] = "Mutation", e[e.MouseMove = 1] = "MouseMove", e[e.MouseInteraction = 2] = "MouseInteraction", e[e.Scroll = 3] = "Scroll", e[e.ViewportResize = 4] = "ViewportResize", e[e.Input = 5] = "Input", e[e.TouchMove = 6] = "TouchMove", e[e.MediaInteraction = 7] = "MediaInteraction", e[e.StyleSheetRule = 8] = "StyleSheetRule", e[e.CanvasMutation = 9] = "CanvasMutation", e[e.Font = 10] = "Font", e[e.Log = 11] = "Log", e[e.Drag = 12] = "Drag", e[e.StyleDeclaration = 13] = "StyleDeclaration", e[e.Selection = 14] = "Selection", e[e.AdoptedStyleSheet = 15] = "AdoptedStyleSheet", e[e.CustomElement = 16] = "CustomElement", e[e.Typing = 17] = "Typing", e))(ii || {}), ai = ((e) => (e[e.MouseUp = 0] = "MouseUp", e[e.MouseDown = 1] = "MouseDown", e[e.Click = 2] = "Click", e[e.ContextMenu = 3] = "ContextMenu", e[e.DblClick = 4] = "DblClick", e[e.Focus = 5] = "Focus", e[e.Blur = 6] = "Blur", e[e.TouchStart = 7] = "TouchStart", e[e.TouchMove_Departed = 8] = "TouchMove_Departed", e[e.TouchEnd = 9] = "TouchEnd", e[e.TouchCancel = 10] = "TouchCancel", e))(ai || {}), li = ((e) => (e[e.Mouse = 0] = "Mouse", e[e.Pen = 1] = "Pen", e[e.Touch = 2] = "Touch", e))(li || {}), ci = ((e) => (e[e["2D"] = 0] = "2D", e[e.WebGL = 1] = "WebGL", e[e.WebGL2 = 2] = "WebGL2", e))(ci || {}), ui = ((e) => (e[e.Play = 0] = "Play", e[e.Pause = 1] = "Pause", e[e.Seeked = 2] = "Seeked", e[e.VolumeChange = 3] = "VolumeChange", e[e.RateChange = 4] = "RateChange", e))(ui || {});
3812
3844
  function G(e, a, u = document) {
3813
3845
  const m2 = { capture: true, passive: true };
3814
3846
  return u.addEventListener(e, a, m2), () => u.removeEventListener(e, a, m2);
3815
3847
  }
3816
- const li = "Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.";
3817
- let ci = { map: {}, getId: () => (console.error(li), -1), getNode: () => (console.error(li), null), removeNodeFromMap() {
3818
- console.error(li);
3819
- }, has: () => (console.error(li), false), reset() {
3820
- console.error(li);
3848
+ const pi = "Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.";
3849
+ let di = { map: {}, getId: () => (console.error(pi), -1), getNode: () => (console.error(pi), null), removeNodeFromMap() {
3850
+ console.error(pi);
3851
+ }, has: () => (console.error(pi), false), reset() {
3852
+ console.error(pi);
3821
3853
  } };
3822
3854
  function $e(e, a, u = {}) {
3823
3855
  let m2 = null, w2 = 0;
@@ -3851,8 +3883,8 @@ function Re(e, a, u) {
3851
3883
  };
3852
3884
  }
3853
3885
  }
3854
- typeof window < "u" && window.Proxy && window.Reflect && (ci = new Proxy(ci, { get: (e, a, u) => ("map" === a && console.error(li), Reflect.get(e, a, u)) }));
3855
- let ui, pi = Date.now;
3886
+ typeof window < "u" && window.Proxy && window.Reflect && (di = new Proxy(di, { get: (e, a, u) => ("map" === a && console.error(pi), Reflect.get(e, a, u)) }));
3887
+ let hi, fi = Date.now;
3856
3888
  function po(e) {
3857
3889
  var a, u, m2, w2, b2, C2;
3858
3890
  const x2 = e.document;
@@ -3899,7 +3931,7 @@ function bo(e, a) {
3899
3931
  function Fs(e) {
3900
3932
  return !(null == e || !e.shadowRoot);
3901
3933
  }
3902
- /[1-9][0-9]{12}/.test(Date.now().toString()) || (pi = () => (/* @__PURE__ */ new Date()).getTime());
3934
+ /[1-9][0-9]{12}/.test(Date.now().toString()) || (fi = () => (/* @__PURE__ */ new Date()).getTime());
3903
3935
  class _l {
3904
3936
  constructor() {
3905
3937
  b$1(this, "id", 1), b$1(this, "styleIDMap", /* @__PURE__ */ new WeakMap()), b$1(this, "idStyleMap", /* @__PURE__ */ new Map());
@@ -3944,11 +3976,11 @@ function vo(e) {
3944
3976
  const a = e.ownerDocument;
3945
3977
  return !!a && (a.contains(e) || zl(e));
3946
3978
  }
3947
- const M = (e) => ui ? (...a) => {
3979
+ const M = (e) => hi ? (...a) => {
3948
3980
  try {
3949
3981
  return e(...a);
3950
3982
  } catch (e2) {
3951
- if (ui && true === ui(e2)) return;
3983
+ if (hi && true === hi(e2)) return;
3952
3984
  throw e2;
3953
3985
  }
3954
3986
  } : e;
@@ -4007,22 +4039,22 @@ class Vl {
4007
4039
  transformCrossOriginEvent(e, a) {
4008
4040
  var u;
4009
4041
  switch (a.type) {
4010
- case Qs.FullSnapshot: {
4042
+ case si.FullSnapshot: {
4011
4043
  this.crossOriginIframeMirror.reset(e), this.crossOriginIframeStyleMirror.reset(e), this.replaceIdOnNode(a.data.node, e);
4012
4044
  const u2 = a.data.node.id;
4013
- return this.crossOriginIframeRootIdMap.set(e, u2), this.patchRootIdOnNode(a.data.node, u2), { timestamp: a.timestamp, type: Qs.IncrementalSnapshot, data: { source: ei.Mutation, adds: [{ parentId: this.mirror.getId(e), nextId: null, node: a.data.node }], removes: [], texts: [], attributes: [], isAttachIframe: true } };
4045
+ return this.crossOriginIframeRootIdMap.set(e, u2), this.patchRootIdOnNode(a.data.node, u2), { timestamp: a.timestamp, type: si.IncrementalSnapshot, data: { source: ii.Mutation, adds: [{ parentId: this.mirror.getId(e), nextId: null, node: a.data.node }], removes: [], texts: [], attributes: [], isAttachIframe: true } };
4014
4046
  }
4015
- case Qs.Meta:
4016
- case Qs.Load:
4017
- case Qs.DomContentLoaded:
4047
+ case si.Meta:
4048
+ case si.Load:
4049
+ case si.DomContentLoaded:
4018
4050
  return false;
4019
- case Qs.Plugin:
4051
+ case si.Plugin:
4020
4052
  return a;
4021
- case Qs.Custom:
4053
+ case si.Custom:
4022
4054
  return this.replaceIds(a.data.payload, e, ["id", "parentId", "previousId", "nextId"]), a;
4023
- case Qs.IncrementalSnapshot:
4055
+ case si.IncrementalSnapshot:
4024
4056
  switch (a.data.source) {
4025
- case ei.Mutation:
4057
+ case ii.Mutation:
4026
4058
  return a.data.adds.forEach((a2) => {
4027
4059
  this.replaceIds(a2, e, ["parentId", "nextId", "previousId"]), this.replaceIdOnNode(a2.node, e);
4028
4060
  const u2 = this.crossOriginIframeRootIdMap.get(e);
@@ -4034,30 +4066,30 @@ class Vl {
4034
4066
  }), a.data.texts.forEach((a2) => {
4035
4067
  this.replaceIds(a2, e, ["id"]);
4036
4068
  }), a;
4037
- case ei.Drag:
4038
- case ei.TouchMove:
4039
- case ei.MouseMove:
4069
+ case ii.Drag:
4070
+ case ii.TouchMove:
4071
+ case ii.MouseMove:
4040
4072
  return a.data.positions.forEach((a2) => {
4041
4073
  this.replaceIds(a2, e, ["id"]);
4042
4074
  }), a;
4043
- case ei.ViewportResize:
4075
+ case ii.ViewportResize:
4044
4076
  return false;
4045
- case ei.MediaInteraction:
4046
- case ei.MouseInteraction:
4047
- case ei.Scroll:
4048
- case ei.CanvasMutation:
4049
- case ei.Input:
4077
+ case ii.MediaInteraction:
4078
+ case ii.MouseInteraction:
4079
+ case ii.Scroll:
4080
+ case ii.CanvasMutation:
4081
+ case ii.Input:
4050
4082
  return this.replaceIds(a.data, e, ["id"]), a;
4051
- case ei.StyleSheetRule:
4052
- case ei.StyleDeclaration:
4083
+ case ii.StyleSheetRule:
4084
+ case ii.StyleDeclaration:
4053
4085
  return this.replaceIds(a.data, e, ["id"]), this.replaceStyleIds(a.data, e, ["styleId"]), a;
4054
- case ei.Font:
4086
+ case ii.Font:
4055
4087
  return a;
4056
- case ei.Selection:
4088
+ case ii.Selection:
4057
4089
  return a.data.ranges.forEach((a2) => {
4058
4090
  this.replaceIds(a2, e, ["start", "end"]);
4059
4091
  }), a;
4060
- case ei.AdoptedStyleSheet:
4092
+ case ii.AdoptedStyleSheet:
4061
4093
  return this.replaceIds(a.data, e, ["id"]), this.replaceStyleIds(a.data, e, ["styleIds"]), null == (u = a.data.styles) || u.forEach((a2) => {
4062
4094
  this.replaceStyleIds(a2, e, ["styleId"]);
4063
4095
  }), a;
@@ -4081,7 +4113,7 @@ class Vl {
4081
4113
  });
4082
4114
  }
4083
4115
  patchRootIdOnNode(e, a) {
4084
- e.type !== ut.Document && !e.rootId && (e.rootId = a), "childNodes" in e && e.childNodes.forEach((e2) => {
4116
+ e.type !== ht.Document && !e.rootId && (e.rootId = a), "childNodes" in e && e.childNodes.forEach((e2) => {
4085
4117
  this.patchRootIdOnNode(e2, a);
4086
4118
  });
4087
4119
  }
@@ -4299,7 +4331,7 @@ function ko(e, a) {
4299
4331
  const { parentNode: u } = a;
4300
4332
  return !!u && (!!e.has(u) || ko(e, u));
4301
4333
  }
4302
- const di = [];
4334
+ const mi = [];
4303
4335
  function tt(e) {
4304
4336
  try {
4305
4337
  if ("composedPath" in e) {
@@ -4313,7 +4345,7 @@ function tt(e) {
4313
4345
  function Co(e, a) {
4314
4346
  var u, m2;
4315
4347
  const w2 = new Zl();
4316
- di.push(w2), w2.init(e);
4348
+ mi.push(w2), w2.init(e);
4317
4349
  let b2 = window.MutationObserver || window.__rrMutationObserver;
4318
4350
  const C2 = null == (m2 = null == (u = null == window ? void 0 : window.Zone) ? void 0 : u.__symbol__) ? void 0 : m2.call(u, "MutationObserver");
4319
4351
  C2 && window[C2] && (b2 = window[C2]);
@@ -4325,7 +4357,7 @@ function Xl({ mouseInteractionCb: e, doc: a, mirror: u, blockClass: m2, blockSel
4325
4357
  };
4326
4358
  const C2 = true === b2.mouseInteraction || void 0 === b2.mouseInteraction ? {} : b2.mouseInteraction, x2 = [];
4327
4359
  let I2 = null;
4328
- return Object.keys(ti).filter((e2) => Number.isNaN(Number(e2)) && !e2.endsWith("_Departed") && false !== C2[e2]).forEach((b3) => {
4360
+ return Object.keys(ai).filter((e2) => Number.isNaN(Number(e2)) && !e2.endsWith("_Departed") && false !== C2[e2]).forEach((b3) => {
4329
4361
  let C3 = fe(b3);
4330
4362
  const _2 = /* @__PURE__ */ ((a2) => (b4) => {
4331
4363
  const C4 = tt(b4);
@@ -4334,29 +4366,29 @@ function Xl({ mouseInteractionCb: e, doc: a, mirror: u, blockClass: m2, blockSel
4334
4366
  if ("pointerType" in b4) {
4335
4367
  switch (b4.pointerType) {
4336
4368
  case "mouse":
4337
- x3 = si.Mouse;
4369
+ x3 = li.Mouse;
4338
4370
  break;
4339
4371
  case "touch":
4340
- x3 = si.Touch;
4372
+ x3 = li.Touch;
4341
4373
  break;
4342
4374
  case "pen":
4343
- x3 = si.Pen;
4375
+ x3 = li.Pen;
4344
4376
  }
4345
- x3 === si.Touch ? ti[a2] === ti.MouseDown ? _3 = "TouchStart" : ti[a2] === ti.MouseUp && (_3 = "TouchEnd") : si.Pen;
4346
- } else Ds(b4) && (x3 = si.Touch);
4347
- null !== x3 ? (I2 = x3, (_3.startsWith("Touch") && x3 === si.Touch || _3.startsWith("Mouse") && x3 === si.Mouse) && (x3 = null)) : ti[a2] === ti.Click && (x3 = I2, I2 = null);
4377
+ x3 === li.Touch ? ai[a2] === ai.MouseDown ? _3 = "TouchStart" : ai[a2] === ai.MouseUp && (_3 = "TouchEnd") : li.Pen;
4378
+ } else Ds(b4) && (x3 = li.Touch);
4379
+ null !== x3 ? (I2 = x3, (_3.startsWith("Touch") && x3 === li.Touch || _3.startsWith("Mouse") && x3 === li.Mouse) && (x3 = null)) : ai[a2] === ai.Click && (x3 = I2, I2 = null);
4348
4380
  const O2 = Ds(b4) ? b4.changedTouches[0] : b4;
4349
4381
  if (!O2) return;
4350
4382
  const E2 = u.getId(C4), { clientX: D2, clientY: F2 } = O2;
4351
- M(e)({ type: ti[_3], id: E2, x: D2, y: F2, ...null !== x3 && { pointerType: x3 } });
4383
+ M(e)({ type: ai[_3], id: E2, x: D2, y: F2, ...null !== x3 && { pointerType: x3 } });
4352
4384
  })(b3);
4353
- if (window.PointerEvent) switch (ti[b3]) {
4354
- case ti.MouseDown:
4355
- case ti.MouseUp:
4385
+ if (window.PointerEvent) switch (ai[b3]) {
4386
+ case ai.MouseDown:
4387
+ case ai.MouseUp:
4356
4388
  C3 = C3.replace("mouse", "pointer");
4357
4389
  break;
4358
- case ti.TouchStart:
4359
- case ti.TouchEnd:
4390
+ case ai.TouchStart:
4391
+ case ai.TouchEnd:
4360
4392
  return;
4361
4393
  }
4362
4394
  x2.push(G(C3, _2, a));
@@ -4375,7 +4407,7 @@ function xo({ scrollCb: e, doc: a, mirror: u, blockClass: m2, blockSelector: w2,
4375
4407
  } else e({ id: x2, x: C2.scrollLeft, y: C2.scrollTop });
4376
4408
  }), b2.scroll || 100)), a);
4377
4409
  }
4378
- const hi = ["INPUT", "TEXTAREA", "SELECT"], fi = /* @__PURE__ */ new WeakMap();
4410
+ const gi = ["INPUT", "TEXTAREA", "SELECT"], yi = /* @__PURE__ */ new WeakMap();
4379
4411
  function ql({ deviceChangeCb: e }) {
4380
4412
  const t = (a2, u2) => {
4381
4413
  const m2 = a2.device.productName ? [a2.device.productName] : ["Unknown USB Device"];
@@ -4495,7 +4527,7 @@ function au(e, a = {}) {
4495
4527
  e2(x3.map((e3) => (e3.timeOffset -= u3, e3)), a3), x3 = [], C3 = null;
4496
4528
  }), b3), _3 = M($e(M((e3) => {
4497
4529
  const a3 = tt(e3), { clientX: u3, clientY: w4 } = Ds(e3) ? e3.changedTouches[0] : e3;
4498
- C3 || (C3 = pi()), x3.push({ x: u3, y: w4, id: m3.getId(a3), timeOffset: pi() - C3 }), I3(typeof DragEvent < "u" && e3 instanceof DragEvent ? ei.Drag : e3 instanceof MouseEvent ? ei.MouseMove : ei.TouchMove);
4530
+ C3 || (C3 = fi()), x3.push({ x: u3, y: w4, id: m3.getId(a3), timeOffset: fi() - C3 }), I3(typeof DragEvent < "u" && e3 instanceof DragEvent ? ii.Drag : e3 instanceof MouseEvent ? ii.MouseMove : ii.TouchMove);
4499
4531
  }), w3, { trailing: false })), O3 = [G("mousemove", _3, u2), G("touchmove", _3, u2), G("drag", _3, u2)];
4500
4532
  return M(() => {
4501
4533
  O3.forEach((e3) => e3());
@@ -4511,7 +4543,7 @@ function au(e, a = {}) {
4511
4543
  function p(e3) {
4512
4544
  let u3 = tt(e3);
4513
4545
  const _4 = e3.isTrusted, E4 = u3 && u3.tagName;
4514
- if (u3 && "OPTION" === E4 && (u3 = u3.parentElement), !u3 || !E4 || hi.indexOf(E4) < 0 || Z(u3, m3, w3, true) || u3.classList.contains(b3) || C3 && u3.matches(C3)) return;
4546
+ if (u3 && "OPTION" === E4 && (u3 = u3.parentElement), !u3 || !E4 || gi.indexOf(E4) < 0 || Z(u3, m3, w3, true) || u3.classList.contains(b3) || C3 && u3.matches(C3)) return;
4515
4547
  let D4 = u3.value, F4 = false;
4516
4548
  const U4 = Yt(u3) || "", { value: B2, masked: $2 } = Zt({ element: u3, maskInputOptions: x3, tagName: E4, type: U4, value: D4, maskInputFn: I3 });
4517
4549
  D4 = B2, ("radio" === U4 || "checkbox" === U4) && (F4 = u3.checked), f2(u3, O3 ? { text: D4, isChecked: F4, masked: $2, userTriggered: _4 } : { text: D4, isChecked: F4, masked: $2 });
@@ -4524,9 +4556,9 @@ function au(e, a = {}) {
4524
4556
  });
4525
4557
  }
4526
4558
  function f2(a3, m4) {
4527
- const w4 = fi.get(a3);
4559
+ const w4 = yi.get(a3);
4528
4560
  if (!w4 || w4.text !== m4.text || w4.isChecked !== m4.isChecked || w4.masked !== m4.masked) {
4529
- fi.set(a3, m4);
4561
+ yi.set(a3, m4);
4530
4562
  const w5 = u2.getId(a3);
4531
4563
  M(e2)({ ...m4, id: w5 });
4532
4564
  }
@@ -4551,7 +4583,7 @@ function au(e, a = {}) {
4551
4583
  const { value: e3, masked: a4 } = Zt({ element: w4, maskInputOptions: u2, tagName: x3, type: I3, value: _3, maskInputFn: m3 });
4552
4584
  _3 = e3, b3 = a4;
4553
4585
  }
4554
- e2({ source: ei.Typing, id: null == w4 ? void 0 : w4.id, text: _3, isMasked: b3, target: ((e3) => {
4586
+ e2({ source: ii.Typing, id: null == w4 ? void 0 : w4.id, text: _3, isMasked: b3, target: ((e3) => {
4555
4587
  var a4;
4556
4588
  const u3 = [];
4557
4589
  for (; e3; ) {
@@ -4579,7 +4611,7 @@ function au(e, a = {}) {
4579
4611
  if (!C4 || Z(C4, a2, u2, true)) return;
4580
4612
  const { currentTime: x4, volume: I3, muted: _3, playbackRate: O3, loop: E3 } = C4;
4581
4613
  e2({ type: b4, id: m3.getId(C4), currentTime: x4, volume: I3, muted: _3, playbackRate: O3, loop: E3 });
4582
- }), w3.media || 500)), x3 = [G("play", C3(ai.Play), b3), G("pause", C3(ai.Pause), b3), G("seeked", C3(ai.Seeked), b3), G("volumechange", C3(ai.VolumeChange), b3), G("ratechange", C3(ai.RateChange), b3)];
4614
+ }), w3.media || 500)), x3 = [G("play", C3(ui.Play), b3), G("pause", C3(ui.Pause), b3), G("seeked", C3(ui.Seeked), b3), G("volumechange", C3(ui.VolumeChange), b3), G("ratechange", C3(ui.RateChange), b3)];
4583
4615
  return M(() => {
4584
4616
  x3.forEach((e3) => e3());
4585
4617
  });
@@ -4700,7 +4732,7 @@ function au(e, a = {}) {
4700
4732
  })(e), U2 = [];
4701
4733
  for (const a2 of e.plugins) U2.push(a2.observer(a2.callback, u, a2.options));
4702
4734
  return M(() => {
4703
- di.forEach((e2) => e2.reset()), null == m2 || m2.disconnect(), w2(), b2(), C2(), x2(), I2(), _2(), E2(), f(), d2(), g2(), h(), D2(), F2(), O2(), U2.forEach((e2) => e2());
4735
+ mi.forEach((e2) => e2.reset()), null == m2 || m2.disconnect(), w2(), b2(), C2(), x2(), I2(), _2(), E2(), f(), d2(), g2(), h(), D2(), F2(), O2(), U2.forEach((e2) => e2());
4704
4736
  });
4705
4737
  }
4706
4738
  function ft(e) {
@@ -4709,29 +4741,29 @@ function ft(e) {
4709
4741
  function mt(e) {
4710
4742
  return !!(typeof window[e] < "u" && window[e].prototype && "insertRule" in window[e].prototype && "deleteRule" in window[e].prototype);
4711
4743
  }
4712
- const mi = "KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO2Zvcih2YXIgcj0iQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyIsdz10eXBlb2YgVWludDhBcnJheT4idSI/W106bmV3IFVpbnQ4QXJyYXkoMjU2KSxpPTA7aTxyLmxlbmd0aDtpKyspd1tyLmNoYXJDb2RlQXQoaSldPWk7dmFyIHA9ZnVuY3Rpb24ocyl7dmFyIGU9bmV3IFVpbnQ4QXJyYXkocyksbixhPWUubGVuZ3RoLHQ9IiI7Zm9yKG49MDtuPGE7bis9Myl0Kz1yW2Vbbl0+PjJdLHQrPXJbKGVbbl0mMyk8PDR8ZVtuKzFdPj40XSx0Kz1yWyhlW24rMV0mMTUpPDwyfGVbbisyXT4+Nl0sdCs9cltlW24rMl0mNjNdO3JldHVybiBhJTM9PT0yP3Q9dC5zdWJzdHJpbmcoMCx0Lmxlbmd0aC0xKSsiPSI6YSUzPT09MSYmKHQ9dC5zdWJzdHJpbmcoMCx0Lmxlbmd0aC0yKSsiPT0iKSx0fTtjb25zdCBsPW5ldyBNYXAsYj1uZXcgTWFwO2FzeW5jIGZ1bmN0aW9uIHkocyxlLG4pe2NvbnN0IGE9YCR7c30tJHtlfWA7aWYoIk9mZnNjcmVlbkNhbnZhcyJpbiBnbG9iYWxUaGlzKXtpZihiLmhhcyhhKSlyZXR1cm4gYi5nZXQoYSk7Y29uc3QgdD1uZXcgT2Zmc2NyZWVuQ2FudmFzKHMsZSk7dC5nZXRDb250ZXh0KCIyZCIpO2NvbnN0IGc9YXdhaXQoYXdhaXQgdC5jb252ZXJ0VG9CbG9iKG4pKS5hcnJheUJ1ZmZlcigpLGM9cChnKTtyZXR1cm4gYi5zZXQoYSxjKSxjfWVsc2UgcmV0dXJuIiJ9Y29uc3Qgbz1zZWxmO28ub25tZXNzYWdlPWFzeW5jIGZ1bmN0aW9uKHMpe2lmKCJPZmZzY3JlZW5DYW52YXMiaW4gZ2xvYmFsVGhpcyl7Y29uc3R7aWQ6ZSxiaXRtYXA6bix3aWR0aDphLGhlaWdodDp0LGRhdGFVUkxPcHRpb25zOnV9PXMuZGF0YSxnPXkoYSx0LHUpLGM9bmV3IE9mZnNjcmVlbkNhbnZhcyhhLHQpO2MuZ2V0Q29udGV4dCgiMmQiKS5kcmF3SW1hZ2UobiwwLDApLG4uY2xvc2UoKTtjb25zdCBkPWF3YWl0IGMuY29udmVydFRvQmxvYih1KSx2PWQudHlwZSxoPWF3YWl0IGQuYXJyYXlCdWZmZXIoKSxmPXAoaCk7aWYoIWwuaGFzKGUpJiZhd2FpdCBnPT09ZilyZXR1cm4gbC5zZXQoZSxmKSxvLnBvc3RNZXNzYWdlKHtpZDplfSk7aWYobC5nZXQoZSk9PT1mKXJldHVybiBvLnBvc3RNZXNzYWdlKHtpZDplfSk7by5wb3N0TWVzc2FnZSh7aWQ6ZSx0eXBlOnYsYmFzZTY0OmYsd2lkdGg6YSxoZWlnaHQ6dH0pLGwuc2V0KGUsZil9ZWxzZSByZXR1cm4gby5wb3N0TWVzc2FnZSh7aWQ6cy5kYXRhLmlkfSl9fSkoKTsKLy8jIHNvdXJjZU1hcHBpbmdVUkw9aW1hZ2UtYml0bWFwLWRhdGEtdXJsLXdvcmtlci1Cb1hHVm1Zby5qcy5tYXAK", gi = typeof self < "u" && self.Blob && new Blob([(yi = mi, Uint8Array.from(atob(yi), (e) => e.charCodeAt(0)))], { type: "text/javascript;charset=utf-8" });
4713
- var yi;
4744
+ const Mi = "KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO2Zvcih2YXIgcj0iQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyIsdz10eXBlb2YgVWludDhBcnJheT4idSI/W106bmV3IFVpbnQ4QXJyYXkoMjU2KSxpPTA7aTxyLmxlbmd0aDtpKyspd1tyLmNoYXJDb2RlQXQoaSldPWk7dmFyIHA9ZnVuY3Rpb24ocyl7dmFyIGU9bmV3IFVpbnQ4QXJyYXkocyksbixhPWUubGVuZ3RoLHQ9IiI7Zm9yKG49MDtuPGE7bis9Myl0Kz1yW2Vbbl0+PjJdLHQrPXJbKGVbbl0mMyk8PDR8ZVtuKzFdPj40XSx0Kz1yWyhlW24rMV0mMTUpPDwyfGVbbisyXT4+Nl0sdCs9cltlW24rMl0mNjNdO3JldHVybiBhJTM9PT0yP3Q9dC5zdWJzdHJpbmcoMCx0Lmxlbmd0aC0xKSsiPSI6YSUzPT09MSYmKHQ9dC5zdWJzdHJpbmcoMCx0Lmxlbmd0aC0yKSsiPT0iKSx0fTtjb25zdCBsPW5ldyBNYXAsYj1uZXcgTWFwO2FzeW5jIGZ1bmN0aW9uIHkocyxlLG4pe2NvbnN0IGE9YCR7c30tJHtlfWA7aWYoIk9mZnNjcmVlbkNhbnZhcyJpbiBnbG9iYWxUaGlzKXtpZihiLmhhcyhhKSlyZXR1cm4gYi5nZXQoYSk7Y29uc3QgdD1uZXcgT2Zmc2NyZWVuQ2FudmFzKHMsZSk7dC5nZXRDb250ZXh0KCIyZCIpO2NvbnN0IGc9YXdhaXQoYXdhaXQgdC5jb252ZXJ0VG9CbG9iKG4pKS5hcnJheUJ1ZmZlcigpLGM9cChnKTtyZXR1cm4gYi5zZXQoYSxjKSxjfWVsc2UgcmV0dXJuIiJ9Y29uc3Qgbz1zZWxmO28ub25tZXNzYWdlPWFzeW5jIGZ1bmN0aW9uKHMpe2lmKCJPZmZzY3JlZW5DYW52YXMiaW4gZ2xvYmFsVGhpcyl7Y29uc3R7aWQ6ZSxiaXRtYXA6bix3aWR0aDphLGhlaWdodDp0LGRhdGFVUkxPcHRpb25zOnV9PXMuZGF0YSxnPXkoYSx0LHUpLGM9bmV3IE9mZnNjcmVlbkNhbnZhcyhhLHQpO2MuZ2V0Q29udGV4dCgiMmQiKS5kcmF3SW1hZ2UobiwwLDApLG4uY2xvc2UoKTtjb25zdCBkPWF3YWl0IGMuY29udmVydFRvQmxvYih1KSx2PWQudHlwZSxoPWF3YWl0IGQuYXJyYXlCdWZmZXIoKSxmPXAoaCk7aWYoIWwuaGFzKGUpJiZhd2FpdCBnPT09ZilyZXR1cm4gbC5zZXQoZSxmKSxvLnBvc3RNZXNzYWdlKHtpZDplfSk7aWYobC5nZXQoZSk9PT1mKXJldHVybiBvLnBvc3RNZXNzYWdlKHtpZDplfSk7by5wb3N0TWVzc2FnZSh7aWQ6ZSx0eXBlOnYsYmFzZTY0OmYsd2lkdGg6YSxoZWlnaHQ6dH0pLGwuc2V0KGUsZil9ZWxzZSByZXR1cm4gby5wb3N0TWVzc2FnZSh7aWQ6cy5kYXRhLmlkfSl9fSkoKTsKLy8jIHNvdXJjZU1hcHBpbmdVUkw9aW1hZ2UtYml0bWFwLWRhdGEtdXJsLXdvcmtlci1Cb1hHVm1Zby5qcy5tYXAK", Ii = typeof self < "u" && self.Blob && new Blob([(Li = Mi, Uint8Array.from(atob(Li), (e) => e.charCodeAt(0)))], { type: "text/javascript;charset=utf-8" });
4745
+ var Li;
4714
4746
  function uu(e) {
4715
4747
  let a;
4716
4748
  try {
4717
- if (a = gi && (self.URL || self.webkitURL).createObjectURL(gi), !a) throw "";
4749
+ if (a = Ii && (self.URL || self.webkitURL).createObjectURL(Ii), !a) throw "";
4718
4750
  const u = new Worker(a, { name: null == e ? void 0 : e.name });
4719
4751
  return u.addEventListener("error", () => {
4720
4752
  (self.URL || self.webkitURL).revokeObjectURL(a);
4721
4753
  }), u;
4722
4754
  } catch {
4723
- return new Worker("data:text/javascript;base64," + mi, { name: null == e ? void 0 : e.name });
4755
+ return new Worker("data:text/javascript;base64," + Mi, { name: null == e ? void 0 : e.name });
4724
4756
  } finally {
4725
4757
  a && (self.URL || self.webkitURL).revokeObjectURL(a);
4726
4758
  }
4727
4759
  }
4728
- for (var Mi = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", Ii = typeof Uint8Array > "u" ? [] : new Uint8Array(256), Li = 0; Li < 64; Li++) Ii[Mi.charCodeAt(Li)] = Li;
4729
- const Ri = /* @__PURE__ */ new Map();
4760
+ for (var Ri = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", Ai = typeof Uint8Array > "u" ? [] : new Uint8Array(256), Ti = 0; Ti < 64; Ti++) Ai[Ri.charCodeAt(Ti)] = Ti;
4761
+ const Ni = /* @__PURE__ */ new Map();
4730
4762
  const Oo = (e, a, u) => {
4731
4763
  if (!e || !Ro(e, a) && "object" != typeof e) return;
4732
4764
  const m2 = (function pu(e2, a2) {
4733
- let u2 = Ri.get(e2);
4734
- return u2 || (u2 = /* @__PURE__ */ new Map(), Ri.set(e2, u2)), u2.has(a2) || u2.set(a2, []), u2.get(a2);
4765
+ let u2 = Ni.get(e2);
4766
+ return u2 || (u2 = /* @__PURE__ */ new Map(), Ni.set(e2, u2)), u2.has(a2) || u2.set(a2, []), u2.get(a2);
4735
4767
  })(u, e.constructor.name);
4736
4768
  let w2 = m2.indexOf(e);
4737
4769
  return -1 === w2 && (w2 = m2.length, m2.push(e)), w2;
@@ -4743,7 +4775,7 @@ function Ot(e, a, u) {
4743
4775
  if (e instanceof ArrayBuffer) {
4744
4776
  const a2 = e.constructor.name, u2 = (function(e2) {
4745
4777
  var a3, u3 = new Uint8Array(e2), m2 = u3.length, w2 = "";
4746
- for (a3 = 0; a3 < m2; a3 += 3) w2 += Mi[u3[a3] >> 2], w2 += Mi[(3 & u3[a3]) << 4 | u3[a3 + 1] >> 4], w2 += Mi[(15 & u3[a3 + 1]) << 2 | u3[a3 + 2] >> 6], w2 += Mi[63 & u3[a3 + 2]];
4778
+ for (a3 = 0; a3 < m2; a3 += 3) w2 += Ri[u3[a3] >> 2], w2 += Ri[(3 & u3[a3]) << 4 | u3[a3 + 1] >> 4], w2 += Ri[(15 & u3[a3 + 1]) << 2 | u3[a3 + 2] >> 6], w2 += Ri[63 & u3[a3 + 2]];
4747
4779
  return m2 % 3 == 2 ? w2 = w2.substring(0, w2.length - 1) + "=" : m2 % 3 == 1 && (w2 = w2.substring(0, w2.length - 2) + "=="), w2;
4748
4780
  })(e);
4749
4781
  return { rr_type: a2, base64: u2 };
@@ -4840,7 +4872,7 @@ class gu {
4840
4872
  const { id: a2 } = e2.data;
4841
4873
  if (C2.set(a2, false), !("base64" in e2.data)) return;
4842
4874
  const { base64: u2, type: m3, width: w3, height: b3 } = e2.data;
4843
- this.mutationCb({ id: a2, type: ii["2D"], commands: [{ property: "clearRect", args: [0, 0, w3, b3] }, { property: "drawImage", args: [{ rr_type: "ImageBitmap", args: [{ rr_type: "Blob", data: [{ rr_type: "ArrayBuffer", base64: u2 }], type: m3 }] }, 0, 0] }] });
4875
+ this.mutationCb({ id: a2, type: ci["2D"], commands: [{ property: "clearRect", args: [0, 0, w3, b3] }, { property: "drawImage", args: [{ rr_type: "ImageBitmap", args: [{ rr_type: "Blob", data: [{ rr_type: "ArrayBuffer", base64: u2 }], type: m3 }] }, 0, 0] }] });
4844
4876
  };
4845
4877
  const I2 = 1e3 / e;
4846
4878
  let _2, O2 = 0;
@@ -4876,14 +4908,14 @@ class gu {
4876
4908
  return function(...b5) {
4877
4909
  return Z(this.canvas, u2, m3, true) || setTimeout(() => {
4878
4910
  const u3 = Eo(b5, a2, this);
4879
- e2(this.canvas, { type: ii["2D"], property: C2, args: u3 });
4911
+ e2(this.canvas, { type: ci["2D"], property: C2, args: u3 });
4880
4912
  }, 0), w4.apply(this, b5);
4881
4913
  };
4882
4914
  });
4883
4915
  w3.push(b4);
4884
4916
  } catch {
4885
4917
  const u3 = qt(a2.CanvasRenderingContext2D.prototype, C2, { set(a3) {
4886
- e2(this.canvas, { type: ii["2D"], property: C2, args: [a3], setter: true });
4918
+ e2(this.canvas, { type: ci["2D"], property: C2, args: [a3], setter: true });
4887
4919
  } });
4888
4920
  w3.push(u3);
4889
4921
  }
@@ -4892,7 +4924,7 @@ class gu {
4892
4924
  };
4893
4925
  })(this.processMutation.bind(this), e, a, u), b2 = (function mu(e2, a2, u2, m3) {
4894
4926
  const w3 = [];
4895
- return w3.push(...tr(a2.WebGLRenderingContext.prototype, ii.WebGL, e2, u2, m3, a2)), typeof a2.WebGL2RenderingContext < "u" && w3.push(...tr(a2.WebGL2RenderingContext.prototype, ii.WebGL2, e2, u2, m3, a2)), () => {
4927
+ return w3.push(...tr(a2.WebGLRenderingContext.prototype, ci.WebGL, e2, u2, m3, a2)), typeof a2.WebGL2RenderingContext < "u" && w3.push(...tr(a2.WebGL2RenderingContext.prototype, ci.WebGL2, e2, u2, m3, a2)), () => {
4896
4928
  w3.forEach((e3) => e3());
4897
4929
  };
4898
4930
  })(this.processMutation.bind(this), e, a, u);
@@ -5003,23 +5035,23 @@ class bu {
5003
5035
  trackStylesheetInLinkElement(e) {
5004
5036
  }
5005
5037
  }
5006
- let Ai, Ti, Ni, Pi = false;
5007
- var qi;
5038
+ let Pi, qi, Hi, Ji = false;
5039
+ var Xi;
5008
5040
  try {
5009
5041
  if (2 !== Array.from([1], (e) => 2 * e)[0]) {
5010
5042
  const e = document.createElement("iframe");
5011
- document.body.appendChild(e), Array.from = (null == (qi = e.contentWindow) ? void 0 : qi.Array.from) || Array.from, document.body.removeChild(e);
5043
+ document.body.appendChild(e), Array.from = (null == (Xi = e.contentWindow) ? void 0 : Xi.Array.from) || Array.from, document.body.removeChild(e);
5012
5044
  }
5013
- } catch (yi2) {
5014
- console.debug("Unable to override Array.from", yi2);
5045
+ } catch (Li2) {
5046
+ console.debug("Unable to override Array.from", Li2);
5015
5047
  }
5016
- const Hi = (function Ci() {
5017
- return new pt();
5048
+ const Qi = (function Ci() {
5049
+ return new gt();
5018
5050
  })();
5019
5051
  function ae(e = {}) {
5020
5052
  const { emit: a, checkoutEveryNms: u, checkoutEveryNth: m2, blockClass: w2 = "rr-block", blockSelector: b2 = null, ignoreClass: C2 = "rr-ignore", ignoreSelector: x2 = null, maskTextClass: I2 = "rr-mask", maskTextSelector: _2 = null, inlineStylesheet: O2 = true, maskAllInputs: E2, maskInputOptions: D2, slimDOMOptions: F2, maskInputFn: U2, maskTextFn: B2, hooks: $2, packFn: z2, sampling: j2 = {}, dataURLOptions: V2 = {}, mousemoveWait: q2, recordDOM: H2 = true, recordCanvas: J2 = false, recordCrossOriginIframes: Y2 = false, recordAfter: X2 = "DOMContentLoaded" === e.recordAfter ? e.recordAfter : "load", userTriggeredOnInput: Q2 = false, collectFonts: ee2 = false, inlineImages: te2 = false, plugins: ne2, keepIframeSrcFn: re2 = () => false, ignoreCSSAttributes: oe2 = /* @__PURE__ */ new Set([]), errorHandler: se2 } = e;
5021
5053
  !(function Bl(e2) {
5022
- ui = e2;
5054
+ hi = e2;
5023
5055
  })(se2);
5024
5056
  const ie2 = !Y2 || window.parent === window;
5025
5057
  let le2 = false;
@@ -5031,7 +5063,7 @@ function ae(e = {}) {
5031
5063
  if (ie2 && !a) throw new Error("emit function is required");
5032
5064
  if (!ie2 && !le2) return () => {
5033
5065
  };
5034
- void 0 !== q2 && void 0 === j2.mousemove && (j2.mousemove = q2), Hi.reset();
5066
+ void 0 !== q2 && void 0 === j2.mousemove && (j2.mousemove = q2), Qi.reset();
5035
5067
  const ce2 = true === E2 ? { color: true, date: true, "datetime-local": true, email: true, month: true, number: true, range: true, search: true, tel: true, text: true, time: true, url: true, week: true, textarea: true, select: true, password: true } : void 0 !== D2 ? D2 : { password: true }, pe2 = true === F2 || "all" === F2 ? { script: true, comment: true, headFavicon: true, headWhitespace: true, headMetaSocial: true, headMetaRobots: true, headMetaHttpEquiv: true, headMetaVerification: true, headMetaAuthorship: "all" === F2, headMetaDescKeywords: "all" === F2, headTitleMutations: "all" === F2 } : F2 || {};
5036
5068
  !(function Ul(e2 = window) {
5037
5069
  "NodeList" in e2 && !e2.NodeList.prototype.forEach && (e2.NodeList.prototype.forEach = Array.prototype.forEach), "DOMTokenList" in e2 && !e2.DOMTokenList.prototype.forEach && (e2.DOMTokenList.prototype.forEach = Array.prototype.forEach), Node.prototype.contains || (Node.prototype.contains = (...e3) => {
@@ -5048,57 +5080,57 @@ function ae(e = {}) {
5048
5080
  for (const a2 of ne2 || []) a2.eventProcessor && (e2 = a2.eventProcessor(e2));
5049
5081
  return z2 && !le2 && (e2 = z2(e2)), e2;
5050
5082
  };
5051
- Ai = (e2, w3) => {
5083
+ Pi = (e2, w3) => {
5052
5084
  var b3;
5053
5085
  const C3 = e2;
5054
- if (C3.timestamp = pi(), null != (b3 = di[0]) && b3.isFrozen() && C3.type !== Qs.FullSnapshot && !(C3.type === Qs.IncrementalSnapshot && C3.data.source === ei.Mutation) && di.forEach((e3) => e3.unfreeze()), ie2) null == a || a(vn(C3), w3);
5086
+ if (C3.timestamp = fi(), null != (b3 = mi[0]) && b3.isFrozen() && C3.type !== si.FullSnapshot && !(C3.type === si.IncrementalSnapshot && C3.data.source === ii.Mutation) && mi.forEach((e3) => e3.unfreeze()), ie2) null == a || a(vn(C3), w3);
5055
5087
  else if (le2) {
5056
5088
  const e3 = { type: "@sailfish-rrweb/rrweb", event: vn(C3), origin: window.location.origin, isCheckout: w3 };
5057
5089
  window.parent.postMessage(e3, "*");
5058
5090
  }
5059
- if (C3.type === Qs.FullSnapshot) de2 = C3, he2 = 0;
5060
- else if (C3.type === Qs.IncrementalSnapshot) {
5061
- if (C3.data.source === ei.Mutation && C3.data.isAttachIframe) return;
5091
+ if (C3.type === si.FullSnapshot) de2 = C3, he2 = 0;
5092
+ else if (C3.type === si.IncrementalSnapshot) {
5093
+ if (C3.data.source === ii.Mutation && C3.data.isAttachIframe) return;
5062
5094
  he2++;
5063
5095
  const e3 = m2 && he2 >= m2, a2 = u && C3.timestamp - de2.timestamp > u;
5064
- (e3 || a2) && Ti(true);
5096
+ (e3 || a2) && qi(true);
5065
5097
  }
5066
5098
  };
5067
5099
  const rt = (e2) => {
5068
- Ai({ type: Qs.IncrementalSnapshot, data: { source: ei.Mutation, ...e2 } });
5069
- }, kn = (e2) => Ai({ type: Qs.IncrementalSnapshot, data: { source: ei.Scroll, ...e2 } }), Cn = (e2) => Ai({ type: Qs.IncrementalSnapshot, data: { source: ei.CanvasMutation, ...e2 } }), me2 = new bu({ mutationCb: rt, adoptedStyleSheetCb: (e2) => Ai({ type: Qs.IncrementalSnapshot, data: { source: ei.AdoptedStyleSheet, ...e2 } }) }), ge2 = new Vl({ mirror: Hi, mutationCb: rt, stylesheetManager: me2, recordCrossOriginIframes: Y2, wrappedEmit: Ai });
5070
- for (const e2 of ne2 || []) e2.getMirror && e2.getMirror({ nodeMirror: Hi, crossOriginIframeMirror: ge2.crossOriginIframeMirror, crossOriginIframeStyleMirror: ge2.crossOriginIframeStyleMirror });
5100
+ Pi({ type: si.IncrementalSnapshot, data: { source: ii.Mutation, ...e2 } });
5101
+ }, kn = (e2) => Pi({ type: si.IncrementalSnapshot, data: { source: ii.Scroll, ...e2 } }), Cn = (e2) => Pi({ type: si.IncrementalSnapshot, data: { source: ii.CanvasMutation, ...e2 } }), me2 = new bu({ mutationCb: rt, adoptedStyleSheetCb: (e2) => Pi({ type: si.IncrementalSnapshot, data: { source: ii.AdoptedStyleSheet, ...e2 } }) }), ge2 = new Vl({ mirror: Qi, mutationCb: rt, stylesheetManager: me2, recordCrossOriginIframes: Y2, wrappedEmit: Pi });
5102
+ for (const e2 of ne2 || []) e2.getMirror && e2.getMirror({ nodeMirror: Qi, crossOriginIframeMirror: ge2.crossOriginIframeMirror, crossOriginIframeStyleMirror: ge2.crossOriginIframeStyleMirror });
5071
5103
  const ye2 = new yu();
5072
- Ni = new gu({ recordCanvas: J2, mutationCb: Cn, win: window, blockClass: w2, blockSelector: b2, mirror: Hi, sampling: j2.canvas, dataURLOptions: V2 });
5073
- const we2 = new wu({ mutationCb: rt, scrollCb: kn, bypassOptions: { blockClass: w2, blockSelector: b2, maskTextClass: I2, maskTextSelector: _2, inlineStylesheet: O2, maskInputOptions: ce2, dataURLOptions: V2, maskTextFn: B2, maskInputFn: U2, recordCanvas: J2, inlineImages: te2, sampling: j2, slimDOMOptions: pe2, iframeManager: ge2, stylesheetManager: me2, canvasManager: Ni, keepIframeSrcFn: re2, processedNodeManager: ye2 }, mirror: Hi });
5074
- Ti = (e2 = false) => {
5104
+ Hi = new gu({ recordCanvas: J2, mutationCb: Cn, win: window, blockClass: w2, blockSelector: b2, mirror: Qi, sampling: j2.canvas, dataURLOptions: V2 });
5105
+ const we2 = new wu({ mutationCb: rt, scrollCb: kn, bypassOptions: { blockClass: w2, blockSelector: b2, maskTextClass: I2, maskTextSelector: _2, inlineStylesheet: O2, maskInputOptions: ce2, dataURLOptions: V2, maskTextFn: B2, maskInputFn: U2, recordCanvas: J2, inlineImages: te2, sampling: j2, slimDOMOptions: pe2, iframeManager: ge2, stylesheetManager: me2, canvasManager: Hi, keepIframeSrcFn: re2, processedNodeManager: ye2 }, mirror: Qi });
5106
+ qi = (e2 = false) => {
5075
5107
  if (!H2) return;
5076
- Ai({ type: Qs.Meta, data: { href: window.location.href, width: mo(), height: fo() } }, e2), me2.reset(), we2.init(), di.forEach((e3) => e3.lock());
5108
+ Pi({ type: si.Meta, data: { href: window.location.href, width: mo(), height: fo() } }, e2), me2.reset(), we2.init(), mi.forEach((e3) => e3.lock());
5077
5109
  const a2 = (function Zi(e3, a3) {
5078
- const { mirror: u2 = new pt(), blockClass: m3 = "rr-block", blockSelector: w3 = null, maskTextClass: b3 = "rr-mask", maskTextSelector: C3 = null, inlineStylesheet: x3 = true, inlineImages: I3 = false, recordCanvas: _3 = false, maskAllInputs: O3 = false, maskTextFn: E3, maskInputFn: D3, slimDOM: F3 = false, dataURLOptions: U3, preserveWhiteSpace: B3, onSerialize: $3, onIframeLoad: z3, iframeLoadTimeout: j3, onStylesheetLoad: V3, stylesheetLoadTimeout: q3, keepIframeSrcFn: H3 = () => false } = a3 || {};
5110
+ const { mirror: u2 = new gt(), blockClass: m3 = "rr-block", blockSelector: w3 = null, maskTextClass: b3 = "rr-mask", maskTextSelector: C3 = null, inlineStylesheet: x3 = true, inlineImages: I3 = false, recordCanvas: _3 = false, maskAllInputs: O3 = false, maskTextFn: E3, maskInputFn: D3, slimDOM: F3 = false, dataURLOptions: U3, preserveWhiteSpace: B3, onSerialize: $3, onIframeLoad: z3, iframeLoadTimeout: j3, onStylesheetLoad: V3, stylesheetLoadTimeout: q3, keepIframeSrcFn: H3 = () => false } = a3 || {};
5079
5111
  return Se(e3, { doc: e3, mirror: u2, blockClass: m3, blockSelector: w3, maskTextClass: b3, maskTextSelector: C3, skipChild: false, inlineStylesheet: x3, maskInputOptions: true === O3 ? { color: true, date: true, "datetime-local": true, email: true, month: true, number: true, range: true, search: true, tel: true, text: true, time: true, url: true, week: true, textarea: true, select: true, password: true } : false === O3 ? { password: true } : O3, maskTextFn: E3, maskInputFn: D3, slimDOMOptions: true === F3 || "all" === F3 ? { script: true, comment: true, headFavicon: true, headWhitespace: true, headMetaDescKeywords: "all" === F3, headMetaSocial: true, headMetaRobots: true, headMetaHttpEquiv: true, headMetaAuthorship: true, headMetaVerification: true } : false === F3 ? {} : F3, dataURLOptions: U3, inlineImages: I3, recordCanvas: _3, preserveWhiteSpace: B3, onSerialize: $3, onIframeLoad: z3, iframeLoadTimeout: j3, onStylesheetLoad: V3, stylesheetLoadTimeout: q3, keepIframeSrcFn: H3, newlyAddedElement: false });
5080
- })(document, { mirror: Hi, blockClass: w2, blockSelector: b2, maskTextClass: I2, maskTextSelector: _2, inlineStylesheet: O2, maskAllInputs: ce2, maskTextFn: B2, maskInputFn: U2, slimDOM: pe2, dataURLOptions: V2, recordCanvas: J2, inlineImages: te2, onSerialize: (e3) => {
5081
- wo(e3, Hi) && ge2.addIframe(e3), bo(e3, Hi) && me2.trackLinkElement(e3), Fs(e3) && we2.addShadowRoot(e3.shadowRoot, document);
5112
+ })(document, { mirror: Qi, blockClass: w2, blockSelector: b2, maskTextClass: I2, maskTextSelector: _2, inlineStylesheet: O2, maskAllInputs: ce2, maskTextFn: B2, maskInputFn: U2, slimDOM: pe2, dataURLOptions: V2, recordCanvas: J2, inlineImages: te2, onSerialize: (e3) => {
5113
+ wo(e3, Qi) && ge2.addIframe(e3), bo(e3, Qi) && me2.trackLinkElement(e3), Fs(e3) && we2.addShadowRoot(e3.shadowRoot, document);
5082
5114
  }, onIframeLoad: (e3, a3) => {
5083
5115
  ge2.attachIframe(e3, a3), we2.observeAttachShadow(e3);
5084
5116
  }, onStylesheetLoad: (e3, a3) => {
5085
5117
  me2.attachLinkElement(e3, a3);
5086
5118
  }, keepIframeSrcFn: re2 });
5087
5119
  if (!a2) return console.warn("Failed to snapshot the document");
5088
- Ai({ type: Qs.FullSnapshot, data: { node: a2, initialOffset: po(window) } }, e2), di.forEach((e3) => e3.unlock()), document.adoptedStyleSheets && document.adoptedStyleSheets.length > 0 && me2.adoptStyleSheets(document.adoptedStyleSheets, Hi.getId(document));
5120
+ Pi({ type: si.FullSnapshot, data: { node: a2, initialOffset: po(window) } }, e2), mi.forEach((e3) => e3.unlock()), document.adoptedStyleSheets && document.adoptedStyleSheets.length > 0 && me2.adoptStyleSheets(document.adoptedStyleSheets, Qi.getId(document));
5089
5121
  };
5090
5122
  try {
5091
5123
  const e2 = [], K = (e3) => {
5092
5124
  var a2;
5093
- return M(au)({ mutationCb: rt, mousemoveCb: (e4, a3) => Ai({ type: Qs.IncrementalSnapshot, data: { source: a3, positions: e4 } }), mouseInteractionCb: (e4) => Ai({ type: Qs.IncrementalSnapshot, data: { source: ei.MouseInteraction, ...e4 } }), scrollCb: kn, viewportResizeCb: (e4) => Ai({ type: Qs.IncrementalSnapshot, data: { source: ei.ViewportResize, ...e4 } }), inputCb: (e4) => Ai({ type: Qs.IncrementalSnapshot, data: { source: ei.Input, ...e4 } }), mediaInteractionCb: (e4) => Ai({ type: Qs.IncrementalSnapshot, data: { source: ei.MediaInteraction, ...e4 } }), styleSheetRuleCb: (e4) => Ai({ type: Qs.IncrementalSnapshot, data: { source: ei.StyleSheetRule, ...e4 } }), styleDeclarationCb: (e4) => Ai({ type: Qs.IncrementalSnapshot, data: { source: ei.StyleDeclaration, ...e4 } }), canvasMutationCb: Cn, fontCb: (e4) => Ai({ type: Qs.IncrementalSnapshot, data: { source: ei.Font, ...e4 } }), selectionCb: (e4) => {
5094
- Ai({ type: Qs.IncrementalSnapshot, data: { source: ei.Selection, ...e4 } });
5125
+ return M(au)({ mutationCb: rt, mousemoveCb: (e4, a3) => Pi({ type: si.IncrementalSnapshot, data: { source: a3, positions: e4 } }), mouseInteractionCb: (e4) => Pi({ type: si.IncrementalSnapshot, data: { source: ii.MouseInteraction, ...e4 } }), scrollCb: kn, viewportResizeCb: (e4) => Pi({ type: si.IncrementalSnapshot, data: { source: ii.ViewportResize, ...e4 } }), inputCb: (e4) => Pi({ type: si.IncrementalSnapshot, data: { source: ii.Input, ...e4 } }), mediaInteractionCb: (e4) => Pi({ type: si.IncrementalSnapshot, data: { source: ii.MediaInteraction, ...e4 } }), styleSheetRuleCb: (e4) => Pi({ type: si.IncrementalSnapshot, data: { source: ii.StyleSheetRule, ...e4 } }), styleDeclarationCb: (e4) => Pi({ type: si.IncrementalSnapshot, data: { source: ii.StyleDeclaration, ...e4 } }), canvasMutationCb: Cn, fontCb: (e4) => Pi({ type: si.IncrementalSnapshot, data: { source: ii.Font, ...e4 } }), selectionCb: (e4) => {
5126
+ Pi({ type: si.IncrementalSnapshot, data: { source: ii.Selection, ...e4 } });
5095
5127
  }, customElementCb: (e4) => {
5096
- Ai({ type: Qs.IncrementalSnapshot, data: { source: ei.CustomElement, ...e4 } });
5128
+ Pi({ type: si.IncrementalSnapshot, data: { source: ii.CustomElement, ...e4 } });
5097
5129
  }, typingCb: (e4) => {
5098
- Ai({ type: Qs.IncrementalSnapshot, data: { ...e4 } });
5130
+ Pi({ type: si.IncrementalSnapshot, data: { ...e4 } });
5099
5131
  }, deviceChangeCb: (e4) => {
5100
- Ai({ type: Qs.Device, data: { ...e4 } });
5101
- }, blockClass: w2, ignoreClass: C2, ignoreSelector: x2, maskTextClass: I2, maskTextSelector: _2, maskInputOptions: ce2, inlineStylesheet: O2, sampling: j2, recordDOM: H2, recordCanvas: J2, inlineImages: te2, userTriggeredOnInput: Q2, collectFonts: ee2, doc: e3, maskInputFn: U2, maskTextFn: B2, keepIframeSrcFn: re2, blockSelector: b2, slimDOMOptions: pe2, dataURLOptions: V2, mirror: Hi, iframeManager: ge2, stylesheetManager: me2, shadowDomManager: we2, processedNodeManager: ye2, canvasManager: Ni, ignoreCSSAttributes: oe2, plugins: (null == (a2 = null == ne2 ? void 0 : ne2.filter((e4) => e4.observer)) ? void 0 : a2.map((e4) => ({ observer: e4.observer, options: e4.options, callback: (a3) => Ai({ type: Qs.Plugin, data: { plugin: e4.name, payload: a3 } }) }))) || [] }, $2);
5132
+ Pi({ type: si.Device, data: { ...e4 } });
5133
+ }, blockClass: w2, ignoreClass: C2, ignoreSelector: x2, maskTextClass: I2, maskTextSelector: _2, maskInputOptions: ce2, inlineStylesheet: O2, sampling: j2, recordDOM: H2, recordCanvas: J2, inlineImages: te2, userTriggeredOnInput: Q2, collectFonts: ee2, doc: e3, maskInputFn: U2, maskTextFn: B2, keepIframeSrcFn: re2, blockSelector: b2, slimDOMOptions: pe2, dataURLOptions: V2, mirror: Qi, iframeManager: ge2, stylesheetManager: me2, shadowDomManager: we2, processedNodeManager: ye2, canvasManager: Hi, ignoreCSSAttributes: oe2, plugins: (null == (a2 = null == ne2 ? void 0 : ne2.filter((e4) => e4.observer)) ? void 0 : a2.map((e4) => ({ observer: e4.observer, options: e4.options, callback: (a3) => Pi({ type: si.Plugin, data: { plugin: e4.name, payload: a3 } }) }))) || [] }, $2);
5102
5134
  };
5103
5135
  ge2.addLoadListener((a2) => {
5104
5136
  try {
@@ -5108,15 +5140,15 @@ function ae(e = {}) {
5108
5140
  }
5109
5141
  });
5110
5142
  const W = () => {
5111
- Ti(), e2.push(K(document)), Pi = true;
5143
+ qi(), e2.push(K(document)), Ji = true;
5112
5144
  };
5113
5145
  return "interactive" === document.readyState || "complete" === document.readyState ? W() : (e2.push(G("DOMContentLoaded", () => {
5114
- Ai({ type: Qs.DomContentLoaded, data: {} }), "DOMContentLoaded" === X2 && W();
5146
+ Pi({ type: si.DomContentLoaded, data: {} }), "DOMContentLoaded" === X2 && W();
5115
5147
  })), e2.push(G("load", () => {
5116
- Ai({ type: Qs.Load, data: {} }), "load" === X2 && W();
5148
+ Pi({ type: si.Load, data: {} }), "load" === X2 && W();
5117
5149
  }, window))), () => {
5118
- e2.forEach((e3) => e3()), ye2.destroy(), Pi = false, (function jl() {
5119
- ui = void 0;
5150
+ e2.forEach((e3) => e3()), ye2.destroy(), Ji = false, (function jl() {
5151
+ hi = void 0;
5120
5152
  })();
5121
5153
  };
5122
5154
  } catch (e2) {
@@ -5143,24 +5175,24 @@ function vu(e) {
5143
5175
  }), u;
5144
5176
  }
5145
5177
  ae.addCustomEvent = (e, a) => {
5146
- if (!Pi) throw new Error("please add custom event after start recording");
5147
- Ai({ type: Qs.Custom, data: { tag: e, payload: a } });
5178
+ if (!Ji) throw new Error("please add custom event after start recording");
5179
+ Pi({ type: si.Custom, data: { tag: e, payload: a } });
5148
5180
  }, ae.addSailfishEvent = (e, a) => {
5149
- if (!Pi) throw new Error("please add Sailfish event after start recording");
5150
- Ai({ type: e, data: { tag: "sailfish-zendesk-test-tag", payload: a } });
5181
+ if (!Ji) throw new Error("please add Sailfish event after start recording");
5182
+ Pi({ type: e, data: { tag: "sailfish-zendesk-test-tag", payload: a } });
5151
5183
  }, ae.freezePage = () => {
5152
- di.forEach((e) => e.freeze());
5184
+ mi.forEach((e) => e.freeze());
5153
5185
  }, ae.takeFullSnapshot = (e) => {
5154
- if (!Pi) throw new Error("please take full snapshot after start recording");
5155
- Ti(e);
5156
- }, ae.mirror = Hi;
5157
- var Ji = { exports: {} }, Xi = String, Lo = function() {
5158
- return { isColorSupported: false, reset: Xi, bold: Xi, dim: Xi, italic: Xi, underline: Xi, inverse: Xi, hidden: Xi, strikethrough: Xi, black: Xi, red: Xi, green: Xi, yellow: Xi, blue: Xi, magenta: Xi, cyan: Xi, white: Xi, gray: Xi, bgBlack: Xi, bgRed: Xi, bgGreen: Xi, bgYellow: Xi, bgBlue: Xi, bgMagenta: Xi, bgCyan: Xi, bgWhite: Xi, blackBright: Xi, redBright: Xi, greenBright: Xi, yellowBright: Xi, blueBright: Xi, magentaBright: Xi, cyanBright: Xi, whiteBright: Xi, bgBlackBright: Xi, bgRedBright: Xi, bgGreenBright: Xi, bgYellowBright: Xi, bgBlueBright: Xi, bgMagentaBright: Xi, bgCyanBright: Xi, bgWhiteBright: Xi };
5186
+ if (!Ji) throw new Error("please take full snapshot after start recording");
5187
+ qi(e);
5188
+ }, ae.mirror = Qi;
5189
+ var ea = { exports: {} }, ta = String, Lo = function() {
5190
+ return { isColorSupported: false, reset: ta, bold: ta, dim: ta, italic: ta, underline: ta, inverse: ta, hidden: ta, strikethrough: ta, black: ta, red: ta, green: ta, yellow: ta, blue: ta, magenta: ta, cyan: ta, white: ta, gray: ta, bgBlack: ta, bgRed: ta, bgGreen: ta, bgYellow: ta, bgBlue: ta, bgMagenta: ta, bgCyan: ta, bgWhite: ta, blackBright: ta, redBright: ta, greenBright: ta, yellowBright: ta, blueBright: ta, magentaBright: ta, cyanBright: ta, whiteBright: ta, bgBlackBright: ta, bgRedBright: ta, bgGreenBright: ta, bgYellowBright: ta, bgBlueBright: ta, bgMagentaBright: ta, bgCyanBright: ta, bgWhiteBright: ta };
5159
5191
  };
5160
- Ji.exports = Lo(), Ji.exports.createColors = Lo;
5161
- var Qi = Ji.exports;
5162
- const ea = vu(Object.freeze(Object.defineProperty({ __proto__: null, default: {} }, Symbol.toStringTag, { value: "Module" })));
5163
- let ta = Qi, na = ea, ra = class To extends Error {
5192
+ ea.exports = Lo(), ea.exports.createColors = Lo;
5193
+ var na = ea.exports;
5194
+ const ra = vu(Object.freeze(Object.defineProperty({ __proto__: null, default: {} }, Symbol.toStringTag, { value: "Module" })));
5195
+ let oa = na, sa = ra, ia = class To extends Error {
5164
5196
  constructor(e, a, u, m2, w2, b2) {
5165
5197
  super(e), this.name = "CssSyntaxError", this.reason = e, w2 && (this.file = w2), m2 && (this.source = m2), b2 && (this.plugin = b2), typeof a < "u" && typeof u < "u" && ("number" == typeof a ? (this.line = a, this.column = u) : (this.line = a.line, this.column = a.column, this.endLine = u.line, this.endColumn = u.column)), this.setMessage(), Error.captureStackTrace && Error.captureStackTrace(this, To);
5166
5198
  }
@@ -5170,11 +5202,11 @@ let ta = Qi, na = ea, ra = class To extends Error {
5170
5202
  showSourceCode(e) {
5171
5203
  if (!this.source) return "";
5172
5204
  let a = this.source;
5173
- null == e && (e = ta.isColorSupported);
5205
+ null == e && (e = oa.isColorSupported);
5174
5206
  let n = (e2) => e2, r = (e2) => e2, i = (e2) => e2;
5175
5207
  if (e) {
5176
- let { bold: e2, gray: a2, red: u2 } = ta.createColors(true);
5177
- r = (a3) => e2(u2(a3)), n = (e3) => a2(e3), na && (i = (e3) => na(e3));
5208
+ let { bold: e2, gray: a2, red: u2 } = oa.createColors(true);
5209
+ r = (a3) => e2(u2(a3)), n = (e3) => a2(e3), sa && (i = (e3) => sa(e3));
5178
5210
  }
5179
5211
  let u = a.split(/\r?\n/), m2 = Math.max(this.line - 3, 0), w2 = Math.min(this.line + 2, u.length), b2 = String(w2).length;
5180
5212
  return u.slice(m2, w2).map((e2, a2) => {
@@ -5195,10 +5227,10 @@ let ta = Qi, na = ea, ra = class To extends Error {
5195
5227
  return e && (e = "\n\n" + e + "\n"), this.name + ": " + this.message + e;
5196
5228
  }
5197
5229
  };
5198
- var oa = ra;
5199
- ra.default = ra;
5200
- const sa = { after: "\n", beforeClose: "\n", beforeComment: "\n", beforeDecl: "\n", beforeOpen: " ", beforeRule: "\n", colon: ": ", commentLeft: " ", commentRight: " ", emptyBody: "", indent: " ", semicolon: false };
5201
- let ia = class {
5230
+ var aa = ia;
5231
+ ia.default = ia;
5232
+ const la = { after: "\n", beforeClose: "\n", beforeComment: "\n", beforeDecl: "\n", beforeOpen: " ", beforeRule: "\n", colon: ": ", commentLeft: " ", commentRight: " ", emptyBody: "", indent: " ", semicolon: false };
5233
+ let ca = class {
5202
5234
  constructor(e) {
5203
5235
  this.builder = e;
5204
5236
  }
@@ -5250,7 +5282,7 @@ let ia = class {
5250
5282
  if (u || (u = a), a && (m2 = e.raws[a], typeof m2 < "u")) return m2;
5251
5283
  let w2 = e.parent;
5252
5284
  if ("before" === u && (!w2 || "root" === w2.type && w2.first === e || w2 && "document" === w2.type)) return "";
5253
- if (!w2) return sa[u];
5285
+ if (!w2) return la[u];
5254
5286
  let b2 = e.root();
5255
5287
  if (b2.rawCache || (b2.rawCache = {}), typeof b2.rawCache[u] < "u") return b2.rawCache[u];
5256
5288
  if ("before" === u || "after" === u) return this.beforeAfter(e, u);
@@ -5262,7 +5294,7 @@ let ia = class {
5262
5294
  if (m2 = e2.raws[a], typeof m2 < "u") return false;
5263
5295
  });
5264
5296
  }
5265
- return typeof m2 > "u" && (m2 = sa[u]), b2.rawCache[u] = m2, m2;
5297
+ return typeof m2 > "u" && (m2 = la[u]), b2.rawCache[u] = m2, m2;
5266
5298
  }
5267
5299
  rawBeforeClose(e) {
5268
5300
  let a;
@@ -5338,17 +5370,17 @@ let ia = class {
5338
5370
  this[e.type](e, a);
5339
5371
  }
5340
5372
  };
5341
- var aa = ia;
5342
- ia.default = ia;
5343
- let la = aa;
5373
+ var ua = ca;
5374
+ ca.default = ca;
5375
+ let pa = ua;
5344
5376
  function zs(e, a) {
5345
- new la(a).stringify(e);
5377
+ new pa(a).stringify(e);
5346
5378
  }
5347
- var ca = zs;
5379
+ var ha = zs;
5348
5380
  zs.default = zs;
5349
- var ua = {};
5350
- ua.isClean = Symbol("isClean"), ua.my = Symbol("my");
5351
- let pa = oa, ha = aa, fa = ca, { isClean: ma, my: ga } = ua;
5381
+ var fa = {};
5382
+ fa.isClean = Symbol("isClean"), fa.my = Symbol("my");
5383
+ let ma = aa, ga = ua, ya = ha, { isClean: wa, my: Sa } = fa;
5352
5384
  function Bs(e, a) {
5353
5385
  let u = new e.constructor();
5354
5386
  for (let m2 in e) {
@@ -5370,12 +5402,12 @@ function Fe(e, a) {
5370
5402
  }
5371
5403
  return w2;
5372
5404
  }
5373
- let ya = class {
5405
+ let ba = class {
5374
5406
  get proxyOf() {
5375
5407
  return this;
5376
5408
  }
5377
5409
  constructor(e = {}) {
5378
- this.raws = {}, this[ma] = false, this[ga] = true;
5410
+ this.raws = {}, this[wa] = false, this[Sa] = true;
5379
5411
  for (let a in e) if ("nodes" === a) {
5380
5412
  this.nodes = [];
5381
5413
  for (let u of e[a]) "function" == typeof u.clone ? this.append(u.clone()) : this.append(u);
@@ -5419,19 +5451,19 @@ let ya = class {
5419
5451
  let { end: u, start: m2 } = this.rangeBy(a);
5420
5452
  return this.source.input.error(e, { column: m2.column, line: m2.line }, { column: u.column, line: u.line }, a);
5421
5453
  }
5422
- return new pa(e);
5454
+ return new ma(e);
5423
5455
  }
5424
5456
  getProxyProcessor() {
5425
5457
  return { get: (e, a) => "proxyOf" === a ? e : "root" === a ? () => e.root().toProxy() : e[a], set: (e, a, u) => (e[a] === u || (e[a] = u, ("prop" === a || "value" === a || "name" === a || "params" === a || "important" === a || "text" === a) && e.markDirty()), true) };
5426
5458
  }
5427
5459
  markClean() {
5428
- this[ma] = true;
5460
+ this[wa] = true;
5429
5461
  }
5430
5462
  markDirty() {
5431
- if (this[ma]) {
5432
- this[ma] = false;
5463
+ if (this[wa]) {
5464
+ this[wa] = false;
5433
5465
  let e = this;
5434
- for (; e = e.parent; ) e[ma] = false;
5466
+ for (; e = e.parent; ) e[wa] = false;
5435
5467
  }
5436
5468
  }
5437
5469
  next() {
@@ -5467,7 +5499,7 @@ let ya = class {
5467
5499
  return (u.line < a.line || u.line === a.line && u.column <= a.column) && (u = { column: a.column + 1, line: a.line }), { end: u, start: a };
5468
5500
  }
5469
5501
  raw(e, a) {
5470
- return new ha().raw(this, e, a);
5502
+ return new ga().raw(this, e, a);
5471
5503
  }
5472
5504
  remove() {
5473
5505
  return this.parent && this.parent.removeChild(this), this.parent = void 0, this;
@@ -5504,7 +5536,7 @@ let ya = class {
5504
5536
  toProxy() {
5505
5537
  return this.proxyCache || (this.proxyCache = new Proxy(this, this.getProxyProcessor())), this.proxyCache;
5506
5538
  }
5507
- toString(e = fa) {
5539
+ toString(e = ya) {
5508
5540
  e.stringify && (e = e.stringify);
5509
5541
  let a = "";
5510
5542
  return e(this, (e2) => {
@@ -5517,16 +5549,16 @@ let ya = class {
5517
5549
  return e.warn(a, m2);
5518
5550
  }
5519
5551
  };
5520
- var wa = ya;
5521
- ya.default = ya;
5522
- let ba = wa, Sa = class extends ba {
5552
+ var va = ba;
5553
+ ba.default = ba;
5554
+ let Ca = va, ka = class extends Ca {
5523
5555
  constructor(e) {
5524
5556
  super(e), this.type = "comment";
5525
5557
  }
5526
5558
  };
5527
- var va = Sa;
5528
- Sa.default = Sa;
5529
- let Ca = wa, ka = class extends Ca {
5559
+ var xa = ka;
5560
+ ka.default = ka;
5561
+ let Ma = va, Ia = class extends Ma {
5530
5562
  get variable() {
5531
5563
  return this.prop.startsWith("--") || "$" === this.prop[0];
5532
5564
  }
@@ -5534,16 +5566,16 @@ let Ca = wa, ka = class extends Ca {
5534
5566
  e && typeof e.value < "u" && "string" != typeof e.value && (e = { ...e, value: String(e.value) }), super(e), this.type = "decl";
5535
5567
  }
5536
5568
  };
5537
- var xa = ka;
5538
- ka.default = ka;
5539
- let Ma, Ia, _a, Oa, Ea = va, La = xa, Ra = wa, { isClean: Aa, my: Ta } = ua;
5569
+ var _a = Ia;
5570
+ Ia.default = Ia;
5571
+ let Oa, Ea, La, Ra, Aa = xa, Ta = _a, Na = va, { isClean: Pa, my: Da } = fa;
5540
5572
  function Wo(e) {
5541
5573
  return e.map((e2) => (e2.nodes && (e2.nodes = Wo(e2.nodes)), delete e2.source, e2));
5542
5574
  }
5543
5575
  function zo(e) {
5544
- if (e[Aa] = false, e.proxyOf.nodes) for (let a of e.proxyOf.nodes) zo(a);
5576
+ if (e[Pa] = false, e.proxyOf.nodes) for (let a of e.proxyOf.nodes) zo(a);
5545
5577
  }
5546
- let Na = class Bo extends Ra {
5578
+ let Fa = class Bo extends Na {
5547
5579
  get first() {
5548
5580
  if (this.proxyOf.nodes) return this.proxyOf.nodes[0];
5549
5581
  }
@@ -5595,7 +5627,7 @@ let Na = class Bo extends Ra {
5595
5627
  return this.markDirty(), this;
5596
5628
  }
5597
5629
  normalize(e, a) {
5598
- if ("string" == typeof e) e = Wo(Ia(e).nodes);
5630
+ if ("string" == typeof e) e = Wo(Ea(e).nodes);
5599
5631
  else if (typeof e > "u") e = [];
5600
5632
  else if (Array.isArray(e)) {
5601
5633
  e = e.slice(0);
@@ -5606,14 +5638,14 @@ let Na = class Bo extends Ra {
5606
5638
  } else if (e.type) e = [e];
5607
5639
  else if (e.prop) {
5608
5640
  if (typeof e.value > "u") throw new Error("Value field is missed in node creation");
5609
- "string" != typeof e.value && (e.value = String(e.value)), e = [new La(e)];
5610
- } else if (e.selector || e.selectors) e = [new Oa(e)];
5611
- else if (e.name) e = [new Ma(e)];
5641
+ "string" != typeof e.value && (e.value = String(e.value)), e = [new Ta(e)];
5642
+ } else if (e.selector || e.selectors) e = [new Ra(e)];
5643
+ else if (e.name) e = [new Oa(e)];
5612
5644
  else {
5613
5645
  if (!e.text) throw new Error("Unknown node type in node creation");
5614
- e = [new Ea(e)];
5646
+ e = [new Aa(e)];
5615
5647
  }
5616
- return e.map((e2) => (e2[Ta] || Bo.rebuild(e2), (e2 = e2.proxyOf).parent && e2.parent.removeChild(e2), e2[Aa] && zo(e2), e2.raws || (e2.raws = {}), typeof e2.raws.before > "u" && a && typeof a.raws.before < "u" && (e2.raws.before = a.raws.before.replace(/\S/g, "")), e2.parent = this.proxyOf, e2));
5648
+ return e.map((e2) => (e2[Da] || Bo.rebuild(e2), (e2 = e2.proxyOf).parent && e2.parent.removeChild(e2), e2[Pa] && zo(e2), e2.raws || (e2.raws = {}), typeof e2.raws.before > "u" && a && typeof a.raws.before < "u" && (e2.raws.before = a.raws.before.replace(/\S/g, "")), e2.parent = this.proxyOf, e2));
5617
5649
  }
5618
5650
  prepend(...e) {
5619
5651
  e = e.reverse();
@@ -5689,22 +5721,22 @@ let Na = class Bo extends Ra {
5689
5721
  }));
5690
5722
  }
5691
5723
  };
5692
- Na.registerParse = (e) => {
5693
- Ia = e;
5694
- }, Na.registerRule = (e) => {
5724
+ Fa.registerParse = (e) => {
5725
+ Ea = e;
5726
+ }, Fa.registerRule = (e) => {
5727
+ Ra = e;
5728
+ }, Fa.registerAtRule = (e) => {
5695
5729
  Oa = e;
5696
- }, Na.registerAtRule = (e) => {
5697
- Ma = e;
5698
- }, Na.registerRoot = (e) => {
5699
- _a = e;
5730
+ }, Fa.registerRoot = (e) => {
5731
+ La = e;
5700
5732
  };
5701
- var Pa = Na;
5702
- Na.default = Na, Na.rebuild = (e) => {
5703
- "atrule" === e.type ? Object.setPrototypeOf(e, Ma.prototype) : "rule" === e.type ? Object.setPrototypeOf(e, Oa.prototype) : "decl" === e.type ? Object.setPrototypeOf(e, La.prototype) : "comment" === e.type ? Object.setPrototypeOf(e, Ea.prototype) : "root" === e.type && Object.setPrototypeOf(e, _a.prototype), e[Ta] = true, e.nodes && e.nodes.forEach((e2) => {
5704
- Na.rebuild(e2);
5733
+ var Ua = Fa;
5734
+ Fa.default = Fa, Fa.rebuild = (e) => {
5735
+ "atrule" === e.type ? Object.setPrototypeOf(e, Oa.prototype) : "rule" === e.type ? Object.setPrototypeOf(e, Ra.prototype) : "decl" === e.type ? Object.setPrototypeOf(e, Ta.prototype) : "comment" === e.type ? Object.setPrototypeOf(e, Aa.prototype) : "root" === e.type && Object.setPrototypeOf(e, La.prototype), e[Da] = true, e.nodes && e.nodes.forEach((e2) => {
5736
+ Fa.rebuild(e2);
5705
5737
  });
5706
5738
  };
5707
- let Da = Pa, Fa = class extends Da {
5739
+ let Ba = Ua, $a = class extends Ba {
5708
5740
  constructor(e) {
5709
5741
  super(e), this.type = "atrule";
5710
5742
  }
@@ -5715,38 +5747,38 @@ let Da = Pa, Fa = class extends Da {
5715
5747
  return this.proxyOf.nodes || (this.nodes = []), super.prepend(...e);
5716
5748
  }
5717
5749
  };
5718
- var Ua = Fa;
5719
- Fa.default = Fa, Da.registerAtRule(Fa);
5720
- let Ba, $a, Wa = Pa, za = class extends Wa {
5750
+ var Wa = $a;
5751
+ $a.default = $a, Ba.registerAtRule($a);
5752
+ let za, ja, Ga = Ua, Va = class extends Ga {
5721
5753
  constructor(e) {
5722
5754
  super({ type: "document", ...e }), this.nodes || (this.nodes = []);
5723
5755
  }
5724
5756
  toResult(e = {}) {
5725
- return new Ba(new $a(), this, e).stringify();
5757
+ return new za(new ja(), this, e).stringify();
5726
5758
  }
5727
5759
  };
5728
- za.registerLazyResult = (e) => {
5729
- Ba = e;
5730
- }, za.registerProcessor = (e) => {
5731
- $a = e;
5760
+ Va.registerLazyResult = (e) => {
5761
+ za = e;
5762
+ }, Va.registerProcessor = (e) => {
5763
+ ja = e;
5732
5764
  };
5733
- var ja = za;
5734
- za.default = za;
5735
- var Ga = { nanoid: (e = 21) => {
5765
+ var qa = Va;
5766
+ Va.default = Va;
5767
+ var Za = { nanoid: (e = 21) => {
5736
5768
  let a = "", u = 0 | e;
5737
5769
  for (; u--; ) a += "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64 * Math.random() | 0];
5738
5770
  return a;
5739
5771
  } };
5740
- let { existsSync: Va, readFileSync: qa } = ea, { dirname: Za, join: Ka } = ea, { SourceMapConsumer: Ja, SourceMapGenerator: Ya } = ea;
5741
- let Qa = class {
5772
+ let { existsSync: Ka, readFileSync: Ja } = ra, { dirname: Ya, join: Qa } = ra, { SourceMapConsumer: el, SourceMapGenerator: tl } = ra;
5773
+ let nl = class {
5742
5774
  constructor(e, a) {
5743
5775
  if (false === a.map) return;
5744
5776
  this.loadAnnotation(e), this.inline = this.startWith(this.annotation, "data:");
5745
5777
  let u = a.map ? a.map.prev : void 0, m2 = this.loadMap(a.from, u);
5746
- !this.mapFile && a.from && (this.mapFile = a.from), this.mapFile && (this.root = Za(this.mapFile)), m2 && (this.text = m2);
5778
+ !this.mapFile && a.from && (this.mapFile = a.from), this.mapFile && (this.root = Ya(this.mapFile)), m2 && (this.text = m2);
5747
5779
  }
5748
5780
  consumer() {
5749
- return this.consumerCache || (this.consumerCache = new Ja(this.text)), this.consumerCache;
5781
+ return this.consumerCache || (this.consumerCache = new el(this.text)), this.consumerCache;
5750
5782
  }
5751
5783
  decodeInline(e) {
5752
5784
  let a = e.match(/^data:application\/json;charset=utf-?8,/) || e.match(/^data:application\/json,/);
@@ -5771,15 +5803,15 @@ let Qa = class {
5771
5803
  u > -1 && m2 > -1 && (this.annotation = this.getAnnotationURL(e.substring(u, m2)));
5772
5804
  }
5773
5805
  loadFile(e) {
5774
- if (this.root = Za(e), Va(e)) return this.mapFile = e, qa(e, "utf-8").toString().trim();
5806
+ if (this.root = Ya(e), Ka(e)) return this.mapFile = e, Ja(e, "utf-8").toString().trim();
5775
5807
  }
5776
5808
  loadMap(e, a) {
5777
5809
  if (false === a) return false;
5778
5810
  if (a) {
5779
5811
  if ("string" == typeof a) return a;
5780
5812
  if ("function" != typeof a) {
5781
- if (a instanceof Ja) return Ya.fromSourceMap(a).toString();
5782
- if (a instanceof Ya) return a.toString();
5813
+ if (a instanceof el) return tl.fromSourceMap(a).toString();
5814
+ if (a instanceof tl) return a.toString();
5783
5815
  if (this.isMap(a)) return JSON.stringify(a);
5784
5816
  throw new Error("Unsupported previous source map format: " + a.toString());
5785
5817
  }
@@ -5795,7 +5827,7 @@ let Qa = class {
5795
5827
  if (this.inline) return this.decodeInline(this.annotation);
5796
5828
  if (this.annotation) {
5797
5829
  let a2 = this.annotation;
5798
- return e && (a2 = Ka(Za(e), a2)), this.loadFile(a2);
5830
+ return e && (a2 = Qa(Ya(e), a2)), this.loadFile(a2);
5799
5831
  }
5800
5832
  }
5801
5833
  }
@@ -5806,23 +5838,23 @@ let Qa = class {
5806
5838
  return !!(this.consumer().sourcesContent && this.consumer().sourcesContent.length > 0);
5807
5839
  }
5808
5840
  };
5809
- var el = Qa;
5810
- Qa.default = Qa;
5811
- let { nanoid: tl } = Ga, { isAbsolute: nl, resolve: rl } = ea, { SourceMapConsumer: ol, SourceMapGenerator: sl } = ea, { fileURLToPath: il, pathToFileURL: al } = ea, ll = oa, cl = el, ul = ea, pl = Symbol("fromOffsetCache"), dl = !(!ol || !sl), hl = !(!rl || !nl), fl = class {
5841
+ var rl = nl;
5842
+ nl.default = nl;
5843
+ let { nanoid: ol } = Za, { isAbsolute: sl, resolve: il } = ra, { SourceMapConsumer: al, SourceMapGenerator: ll } = ra, { fileURLToPath: cl, pathToFileURL: ul } = ra, pl = aa, dl = rl, hl = ra, fl = Symbol("fromOffsetCache"), ml = !(!al || !ll), gl = !(!il || !sl), yl = class {
5812
5844
  get from() {
5813
5845
  return this.file || this.id;
5814
5846
  }
5815
5847
  constructor(e, a = {}) {
5816
5848
  if (null === e || typeof e > "u" || "object" == typeof e && !e.toString) throw new Error(`PostCSS received ${e} instead of CSS string`);
5817
- if (this.css = e.toString(), "\uFEFF" === this.css[0] || "￾" === this.css[0] ? (this.hasBOM = true, this.css = this.css.slice(1)) : this.hasBOM = false, this.document = this.css, a.document && (this.document = a.document.toString()), a.from && (!hl || /^\w+:\/\//.test(a.from) || nl(a.from) ? this.file = a.from : this.file = rl(a.from)), hl && dl) {
5818
- let e2 = new cl(this.css, a);
5849
+ if (this.css = e.toString(), "\uFEFF" === this.css[0] || "￾" === this.css[0] ? (this.hasBOM = true, this.css = this.css.slice(1)) : this.hasBOM = false, this.document = this.css, a.document && (this.document = a.document.toString()), a.from && (!gl || /^\w+:\/\//.test(a.from) || sl(a.from) ? this.file = a.from : this.file = il(a.from)), gl && ml) {
5850
+ let e2 = new dl(this.css, a);
5819
5851
  if (e2.text) {
5820
5852
  this.map = e2;
5821
5853
  let a2 = e2.consumer().file;
5822
5854
  !this.file && a2 && (this.file = this.mapResolve(a2));
5823
5855
  }
5824
5856
  }
5825
- this.file || (this.id = "<input css " + tl(6) + ">"), this.map && (this.map.file = this.from);
5857
+ this.file || (this.id = "<input css " + ol(6) + ">"), this.map && (this.map.file = this.from);
5826
5858
  }
5827
5859
  error(e, a, u, m2 = {}) {
5828
5860
  let w2, b2, C2;
@@ -5841,17 +5873,17 @@ let { nanoid: tl } = Ga, { isAbsolute: nl, resolve: rl } = ea, { SourceMapConsum
5841
5873
  a = e2.line, u = e2.col;
5842
5874
  }
5843
5875
  let x2 = this.origin(a, u, b2, w2);
5844
- return C2 = x2 ? new ll(e, void 0 === x2.endLine ? x2.line : { column: x2.column, line: x2.line }, void 0 === x2.endLine ? x2.column : { column: x2.endColumn, line: x2.endLine }, x2.source, x2.file, m2.plugin) : new ll(e, void 0 === b2 ? a : { column: u, line: a }, void 0 === b2 ? u : { column: w2, line: b2 }, this.css, this.file, m2.plugin), C2.input = { column: u, endColumn: w2, endLine: b2, line: a, source: this.css }, this.file && (al && (C2.input.url = al(this.file).toString()), C2.input.file = this.file), C2;
5876
+ return C2 = x2 ? new pl(e, void 0 === x2.endLine ? x2.line : { column: x2.column, line: x2.line }, void 0 === x2.endLine ? x2.column : { column: x2.endColumn, line: x2.endLine }, x2.source, x2.file, m2.plugin) : new pl(e, void 0 === b2 ? a : { column: u, line: a }, void 0 === b2 ? u : { column: w2, line: b2 }, this.css, this.file, m2.plugin), C2.input = { column: u, endColumn: w2, endLine: b2, line: a, source: this.css }, this.file && (ul && (C2.input.url = ul(this.file).toString()), C2.input.file = this.file), C2;
5845
5877
  }
5846
5878
  fromOffset(e) {
5847
5879
  let a, u;
5848
- if (this[pl]) u = this[pl];
5880
+ if (this[fl]) u = this[fl];
5849
5881
  else {
5850
5882
  let e2 = this.css.split("\n");
5851
5883
  u = new Array(e2.length);
5852
5884
  let a2 = 0;
5853
5885
  for (let m3 = 0, w2 = e2.length; m3 < w2; m3++) u[m3] = a2, a2 += e2[m3].length + 1;
5854
- this[pl] = u;
5886
+ this[fl] = u;
5855
5887
  }
5856
5888
  a = u[u.length - 1];
5857
5889
  let m2 = 0;
@@ -5870,17 +5902,17 @@ let { nanoid: tl } = Ga, { isAbsolute: nl, resolve: rl } = ea, { SourceMapConsum
5870
5902
  return { col: e - u[m2] + 1, line: m2 + 1 };
5871
5903
  }
5872
5904
  mapResolve(e) {
5873
- return /^\w+:\/\//.test(e) ? e : rl(this.map.consumer().sourceRoot || this.map.root || ".", e);
5905
+ return /^\w+:\/\//.test(e) ? e : il(this.map.consumer().sourceRoot || this.map.root || ".", e);
5874
5906
  }
5875
5907
  origin(e, a, u, m2) {
5876
5908
  if (!this.map) return false;
5877
5909
  let w2, b2, C2 = this.map.consumer(), x2 = C2.originalPositionFor({ column: a, line: e });
5878
5910
  if (!x2.source) return false;
5879
- "number" == typeof u && (w2 = C2.originalPositionFor({ column: m2, line: u })), b2 = nl(x2.source) ? al(x2.source) : new URL(x2.source, this.map.consumer().sourceRoot || al(this.map.mapFile));
5911
+ "number" == typeof u && (w2 = C2.originalPositionFor({ column: m2, line: u })), b2 = sl(x2.source) ? ul(x2.source) : new URL(x2.source, this.map.consumer().sourceRoot || ul(this.map.mapFile));
5880
5912
  let I2 = { column: x2.column, endColumn: w2 && w2.column, endLine: w2 && w2.line, line: x2.line, url: b2.toString() };
5881
5913
  if ("file:" === b2.protocol) {
5882
- if (!il) throw new Error("file: protocol is not available in this PostCSS build");
5883
- I2.file = il(b2);
5914
+ if (!cl) throw new Error("file: protocol is not available in this PostCSS build");
5915
+ I2.file = cl(b2);
5884
5916
  }
5885
5917
  let _2 = C2.sourceContentFor(x2.source);
5886
5918
  return _2 && (I2.source = _2), I2;
@@ -5891,9 +5923,9 @@ let { nanoid: tl } = Ga, { isAbsolute: nl, resolve: rl } = ea, { SourceMapConsum
5891
5923
  return this.map && (e.map = { ...this.map }, e.map.consumerCache && (e.map.consumerCache = void 0)), e;
5892
5924
  }
5893
5925
  };
5894
- var ml = fl;
5895
- fl.default = fl, ul && ul.registerInput && ul.registerInput(fl);
5896
- let gl, yl, wl = Pa, bl = class extends wl {
5926
+ var wl = yl;
5927
+ yl.default = yl, hl && hl.registerInput && hl.registerInput(yl);
5928
+ let Sl, bl, vl = Ua, Cl = class extends vl {
5897
5929
  constructor(e) {
5898
5930
  super(e), this.type = "root", this.nodes || (this.nodes = []);
5899
5931
  }
@@ -5910,29 +5942,29 @@ let gl, yl, wl = Pa, bl = class extends wl {
5910
5942
  return !a && 0 === u && this.nodes.length > 1 && (this.nodes[1].raws.before = this.nodes[u].raws.before), super.removeChild(e);
5911
5943
  }
5912
5944
  toResult(e = {}) {
5913
- return new gl(new yl(), this, e).stringify();
5945
+ return new Sl(new bl(), this, e).stringify();
5914
5946
  }
5915
5947
  };
5916
- bl.registerLazyResult = (e) => {
5917
- gl = e;
5918
- }, bl.registerProcessor = (e) => {
5919
- yl = e;
5948
+ Cl.registerLazyResult = (e) => {
5949
+ Sl = e;
5950
+ }, Cl.registerProcessor = (e) => {
5951
+ bl = e;
5920
5952
  };
5921
- var Sl = bl;
5922
- bl.default = bl, wl.registerRoot(bl);
5923
- let vl = { comma: (e) => vl.split(e, [","], true), space(e) {
5953
+ var kl = Cl;
5954
+ Cl.default = Cl, vl.registerRoot(Cl);
5955
+ let xl = { comma: (e) => xl.split(e, [","], true), space(e) {
5924
5956
  let a = [" ", "\n", " "];
5925
- return vl.split(e, a);
5957
+ return xl.split(e, a);
5926
5958
  }, split(e, a, u) {
5927
5959
  let m2 = [], w2 = "", b2 = false, C2 = 0, x2 = false, I2 = "", _2 = false;
5928
5960
  for (let u2 of e) _2 ? _2 = false : "\\" === u2 ? _2 = true : x2 ? u2 === I2 && (x2 = false) : '"' === u2 || "'" === u2 ? (x2 = true, I2 = u2) : "(" === u2 ? C2 += 1 : ")" === u2 ? C2 > 0 && (C2 -= 1) : 0 === C2 && a.includes(u2) && (b2 = true), b2 ? ("" !== w2 && m2.push(w2.trim()), w2 = "", b2 = false) : w2 += u2;
5929
5961
  return (u || "" !== w2) && m2.push(w2.trim()), m2;
5930
5962
  } };
5931
- var Cl = vl;
5932
- vl.default = vl;
5933
- let kl = Pa, xl = Cl, Ml = class extends kl {
5963
+ var Ml = xl;
5964
+ xl.default = xl;
5965
+ let Il = Ua, Ol = Ml, El = class extends Il {
5934
5966
  get selectors() {
5935
- return xl.comma(this.selector);
5967
+ return Ol.comma(this.selector);
5936
5968
  }
5937
5969
  set selectors(e) {
5938
5970
  let a = this.selector ? this.selector.match(/,\s*/) : null, u = a ? a[0] : "," + this.raw("between", "beforeOpen");
@@ -5942,34 +5974,34 @@ let kl = Pa, xl = Cl, Ml = class extends kl {
5942
5974
  super(e), this.type = "rule", this.nodes || (this.nodes = []);
5943
5975
  }
5944
5976
  };
5945
- var Il = Ml;
5946
- Ml.default = Ml, kl.registerRule(Ml);
5947
- let Ol = Ua, El = va, Ll = xa, Rl = ml, Al = el, Tl = Sl, Nl = Il;
5977
+ var Ll = El;
5978
+ El.default = El, Il.registerRule(El);
5979
+ let Rl = Wa, Al = xa, Tl = _a, Nl = wl, Pl = rl, Dl = kl, Jl = Ll;
5948
5980
  function Ke(e, a) {
5949
5981
  if (Array.isArray(e)) return e.map((e2) => Ke(e2));
5950
5982
  let { inputs: u, ...m2 } = e;
5951
5983
  if (u) {
5952
5984
  a = [];
5953
5985
  for (let e2 of u) {
5954
- let u2 = { ...e2, __proto__: Rl.prototype };
5955
- u2.map && (u2.map = { ...u2.map, __proto__: Al.prototype }), a.push(u2);
5986
+ let u2 = { ...e2, __proto__: Nl.prototype };
5987
+ u2.map && (u2.map = { ...u2.map, __proto__: Pl.prototype }), a.push(u2);
5956
5988
  }
5957
5989
  }
5958
5990
  if (m2.nodes && (m2.nodes = e.nodes.map((e2) => Ke(e2, a))), m2.source) {
5959
5991
  let { inputId: e2, ...u2 } = m2.source;
5960
5992
  m2.source = u2, null != e2 && (m2.source.input = a[e2]);
5961
5993
  }
5962
- if ("root" === m2.type) return new Tl(m2);
5963
- if ("decl" === m2.type) return new Ll(m2);
5964
- if ("rule" === m2.type) return new Nl(m2);
5965
- if ("comment" === m2.type) return new El(m2);
5966
- if ("atrule" === m2.type) return new Ol(m2);
5994
+ if ("root" === m2.type) return new Dl(m2);
5995
+ if ("decl" === m2.type) return new Tl(m2);
5996
+ if ("rule" === m2.type) return new Jl(m2);
5997
+ if ("comment" === m2.type) return new Al(m2);
5998
+ if ("atrule" === m2.type) return new Rl(m2);
5967
5999
  throw new Error("Unknown node type: " + e.type);
5968
6000
  }
5969
- var Pl = Ke;
6001
+ var ec = Ke;
5970
6002
  Ke.default = Ke;
5971
- let { dirname: Dl, relative: Jl, resolve: ec, sep: tc } = ea, { SourceMapConsumer: nc, SourceMapGenerator: rc } = ea, { pathToFileURL: oc } = ea, sc = ml, ic = !(!nc || !rc), ac = !!(Dl && ec && Jl && tc);
5972
- var lc = class {
6003
+ let { dirname: tc, relative: nc, resolve: rc, sep: oc } = ra, { SourceMapConsumer: sc, SourceMapGenerator: ic } = ra, { pathToFileURL: ac } = ra, lc = wl, cc = !(!sc || !ic), uc = !!(tc && rc && nc && oc);
6004
+ var pc = class {
5973
6005
  constructor(e, a, u, m2) {
5974
6006
  this.stringify = e, this.mapOpts = u.map || {}, this.root = a, this.opts = u, this.css = m2, this.originalCSS = m2, this.usesFileUrls = !this.mapOpts.from && this.mapOpts.absolute, this.memoizedFileURLs = /* @__PURE__ */ new Map(), this.memoizedPaths = /* @__PURE__ */ new Map(), this.memoizedURLs = /* @__PURE__ */ new Map();
5975
6007
  }
@@ -5981,8 +6013,8 @@ var lc = class {
5981
6013
  }
5982
6014
  applyPrevMaps() {
5983
6015
  for (let e of this.previous()) {
5984
- let a, u = this.toUrl(this.path(e.file)), m2 = e.root || Dl(e.file);
5985
- false === this.mapOpts.sourcesContent ? (a = new nc(e.text), a.sourcesContent && (a.sourcesContent = null)) : a = e.consumer(), this.map.applySourceMap(a, u, this.toUrl(this.path(m2)));
6016
+ let a, u = this.toUrl(this.path(e.file)), m2 = e.root || tc(e.file);
6017
+ false === this.mapOpts.sourcesContent ? (a = new sc(e.text), a.sourcesContent && (a.sourcesContent = null)) : a = e.consumer(), this.map.applySourceMap(a, u, this.toUrl(this.path(m2)));
5986
6018
  }
5987
6019
  }
5988
6020
  clearAnnotation() {
@@ -5992,7 +6024,7 @@ var lc = class {
5992
6024
  } else this.css && (this.css = this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm, ""));
5993
6025
  }
5994
6026
  generate() {
5995
- if (this.clearAnnotation(), ac && ic && this.isMap()) return this.generateMap();
6027
+ if (this.clearAnnotation(), uc && cc && this.isMap()) return this.generateMap();
5996
6028
  {
5997
6029
  let e = "";
5998
6030
  return this.stringify(this.root, (a) => {
@@ -6004,12 +6036,12 @@ var lc = class {
6004
6036
  if (this.root) this.generateString();
6005
6037
  else if (1 === this.previous().length) {
6006
6038
  let e = this.previous()[0].consumer();
6007
- e.file = this.outputFile(), this.map = rc.fromSourceMap(e, { ignoreInvalidMapping: true });
6008
- } else this.map = new rc({ file: this.outputFile(), ignoreInvalidMapping: true }), this.map.addMapping({ generated: { column: 0, line: 1 }, original: { column: 0, line: 1 }, source: this.opts.from ? this.toUrl(this.path(this.opts.from)) : "<no source>" });
6039
+ e.file = this.outputFile(), this.map = ic.fromSourceMap(e, { ignoreInvalidMapping: true });
6040
+ } else this.map = new ic({ file: this.outputFile(), ignoreInvalidMapping: true }), this.map.addMapping({ generated: { column: 0, line: 1 }, original: { column: 0, line: 1 }, source: this.opts.from ? this.toUrl(this.path(this.opts.from)) : "<no source>" });
6009
6041
  return this.isSourcesContent() && this.setSourcesContent(), this.root && this.previous().length > 0 && this.applyPrevMaps(), this.isAnnotation() && this.addAnnotation(), this.isInline() ? [this.css] : [this.css, this.map];
6010
6042
  }
6011
6043
  generateString() {
6012
- this.css = "", this.map = new rc({ file: this.outputFile(), ignoreInvalidMapping: true });
6044
+ this.css = "", this.map = new ic({ file: this.outputFile(), ignoreInvalidMapping: true });
6013
6045
  let e, a, u = 1, m2 = 1, w2 = "<no source>", b2 = { generated: { column: 0, line: 0 }, original: { column: 0, line: 0 }, source: "" };
6014
6046
  this.stringify(this.root, (C2, x2, I2) => {
6015
6047
  if (this.css += C2, x2 && "end" !== I2 && (b2.generated.line = u, b2.generated.column = m2 - 1, x2.source && x2.source.start ? (b2.source = this.sourcePath(x2), b2.original.line = x2.source.start.line, b2.original.column = x2.source.start.column - 1, this.map.addMapping(b2)) : (b2.source = w2, b2.original.line = 1, b2.original.column = 0, this.map.addMapping(b2))), a = C2.match(/\n/g), a ? (u += a.length, e = C2.lastIndexOf("\n"), m2 = C2.length - e) : m2 += C2.length, x2 && "start" !== I2) {
@@ -6039,9 +6071,9 @@ var lc = class {
6039
6071
  if (this.mapOpts.absolute || 60 === e.charCodeAt(0) || /^\w+:\/\//.test(e)) return e;
6040
6072
  let a = this.memoizedPaths.get(e);
6041
6073
  if (a) return a;
6042
- let u = this.opts.to ? Dl(this.opts.to) : ".";
6043
- "string" == typeof this.mapOpts.annotation && (u = Dl(ec(u, this.mapOpts.annotation)));
6044
- let m2 = Jl(u, e);
6074
+ let u = this.opts.to ? tc(this.opts.to) : ".";
6075
+ "string" == typeof this.mapOpts.annotation && (u = tc(rc(u, this.mapOpts.annotation)));
6076
+ let m2 = nc(u, e);
6045
6077
  return this.memoizedPaths.set(e, m2), m2;
6046
6078
  }
6047
6079
  previous() {
@@ -6052,7 +6084,7 @@ var lc = class {
6052
6084
  }
6053
6085
  });
6054
6086
  else {
6055
- let e = new sc(this.originalCSS, this.opts);
6087
+ let e = new lc(this.originalCSS, this.opts);
6056
6088
  e.map && this.previousMaps.push(e.map);
6057
6089
  }
6058
6090
  return this.previousMaps;
@@ -6083,8 +6115,8 @@ var lc = class {
6083
6115
  toFileUrl(e) {
6084
6116
  let a = this.memoizedFileURLs.get(e);
6085
6117
  if (a) return a;
6086
- if (oc) {
6087
- let a2 = oc(e).toString();
6118
+ if (ac) {
6119
+ let a2 = ac(e).toString();
6088
6120
  return this.memoizedFileURLs.set(e, a2), a2;
6089
6121
  }
6090
6122
  throw new Error("`map.absolute` option is not available in this PostCSS build");
@@ -6092,13 +6124,13 @@ var lc = class {
6092
6124
  toUrl(e) {
6093
6125
  let a = this.memoizedURLs.get(e);
6094
6126
  if (a) return a;
6095
- "\\" === tc && (e = e.replace(/\\/g, "/"));
6127
+ "\\" === oc && (e = e.replace(/\\/g, "/"));
6096
6128
  let u = encodeURI(e).replace(/[#?]/g, encodeURIComponent);
6097
6129
  return this.memoizedURLs.set(e, u), u;
6098
6130
  }
6099
6131
  };
6100
- const cc = /[\t\n\f\r "#'()/;[\\\]{}]/g, uc = /[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g, pc = /.[\r\n"'(/\\]/, dc = /[\da-f]/i;
6101
- let hc = Ua, fc = va, mc = xa, gc = Sl, yc = Il, kc = function(e, a = {}) {
6132
+ const dc = /[\t\n\f\r "#'()/;[\\\]{}]/g, hc = /[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g, fc = /.[\r\n"'(/\\]/, mc = /[\da-f]/i;
6133
+ let gc = Wa, yc = xa, wc = _a, Sc = kl, bc = Ll, kc = function(e, a = {}) {
6102
6134
  let u, m2, w2, b2, C2, x2, I2, _2, O2, E2, D2 = e.css.valueOf(), F2 = a.ignoreErrors, U2 = D2.length, B2 = 0, $2 = [], z2 = [];
6103
6135
  function y2(a2) {
6104
6136
  throw e.error("Unclosed " + a2, B2);
@@ -6148,7 +6180,7 @@ let hc = Ua, fc = va, mc = xa, gc = Sl, yc = Il, kc = function(e, a = {}) {
6148
6180
  for (_2 = b2; 92 === D2.charCodeAt(_2 - 1); ) _2 -= 1, I2 = !I2;
6149
6181
  } while (I2);
6150
6182
  x2 = ["brackets", D2.slice(B2, b2 + 1), B2, b2], B2 = b2;
6151
- } else b2 = D2.indexOf(")", B2 + 1), m2 = D2.slice(B2, b2 + 1), -1 === b2 || pc.test(m2) ? x2 = ["(", "(", B2] : (x2 = ["brackets", m2, B2, b2], B2 = b2);
6183
+ } else b2 = D2.indexOf(")", B2 + 1), m2 = D2.slice(B2, b2 + 1), -1 === b2 || fc.test(m2) ? x2 = ["(", "(", B2] : (x2 = ["brackets", m2, B2, b2], B2 = b2);
6152
6184
  break;
6153
6185
  case 39:
6154
6186
  case 34:
@@ -6166,31 +6198,31 @@ let hc = Ua, fc = va, mc = xa, gc = Sl, yc = Il, kc = function(e, a = {}) {
6166
6198
  x2 = ["string", D2.slice(B2, b2 + 1), B2, b2], B2 = b2;
6167
6199
  break;
6168
6200
  case 64:
6169
- cc.lastIndex = B2 + 1, cc.test(D2), b2 = 0 === cc.lastIndex ? D2.length - 1 : cc.lastIndex - 2, x2 = ["at-word", D2.slice(B2, b2 + 1), B2, b2], B2 = b2;
6201
+ dc.lastIndex = B2 + 1, dc.test(D2), b2 = 0 === dc.lastIndex ? D2.length - 1 : dc.lastIndex - 2, x2 = ["at-word", D2.slice(B2, b2 + 1), B2, b2], B2 = b2;
6170
6202
  break;
6171
6203
  case 92:
6172
6204
  for (b2 = B2, w2 = true; 92 === D2.charCodeAt(b2 + 1); ) b2 += 1, w2 = !w2;
6173
- if (u = D2.charCodeAt(b2 + 1), w2 && 47 !== u && 32 !== u && 10 !== u && 9 !== u && 13 !== u && 12 !== u && (b2 += 1, dc.test(D2.charAt(b2)))) {
6174
- for (; dc.test(D2.charAt(b2 + 1)); ) b2 += 1;
6205
+ if (u = D2.charCodeAt(b2 + 1), w2 && 47 !== u && 32 !== u && 10 !== u && 9 !== u && 13 !== u && 12 !== u && (b2 += 1, mc.test(D2.charAt(b2)))) {
6206
+ for (; mc.test(D2.charAt(b2 + 1)); ) b2 += 1;
6175
6207
  32 === D2.charCodeAt(b2 + 1) && (b2 += 1);
6176
6208
  }
6177
6209
  x2 = ["word", D2.slice(B2, b2 + 1), B2, b2], B2 = b2;
6178
6210
  break;
6179
6211
  default:
6180
- 47 === u && 42 === D2.charCodeAt(B2 + 1) ? (b2 = D2.indexOf("*/", B2 + 2) + 1, 0 === b2 && (F2 || a2 ? b2 = D2.length : y2("comment")), x2 = ["comment", D2.slice(B2, b2 + 1), B2, b2], B2 = b2) : (uc.lastIndex = B2 + 1, uc.test(D2), b2 = 0 === uc.lastIndex ? D2.length - 1 : uc.lastIndex - 2, x2 = ["word", D2.slice(B2, b2 + 1), B2, b2], $2.push(x2), B2 = b2);
6212
+ 47 === u && 42 === D2.charCodeAt(B2 + 1) ? (b2 = D2.indexOf("*/", B2 + 2) + 1, 0 === b2 && (F2 || a2 ? b2 = D2.length : y2("comment")), x2 = ["comment", D2.slice(B2, b2 + 1), B2, b2], B2 = b2) : (hc.lastIndex = B2 + 1, hc.test(D2), b2 = 0 === hc.lastIndex ? D2.length - 1 : hc.lastIndex - 2, x2 = ["word", D2.slice(B2, b2 + 1), B2, b2], $2.push(x2), B2 = b2);
6181
6213
  }
6182
6214
  return B2++, x2;
6183
6215
  }, position: function S() {
6184
6216
  return B2;
6185
6217
  } };
6186
6218
  };
6187
- const wc = { empty: true, space: true };
6188
- var bc = class {
6219
+ const vc = { empty: true, space: true };
6220
+ var xc = class {
6189
6221
  constructor(e) {
6190
- this.input = e, this.root = new gc(), this.current = this.root, this.spaces = "", this.semicolon = false, this.createTokenizer(), this.root.source = { input: e, start: { column: 1, line: 1, offset: 0 } };
6222
+ this.input = e, this.root = new Sc(), this.current = this.root, this.spaces = "", this.semicolon = false, this.createTokenizer(), this.root.source = { input: e, start: { column: 1, line: 1, offset: 0 } };
6191
6223
  }
6192
6224
  atrule(e) {
6193
- let a = new hc();
6225
+ let a = new gc();
6194
6226
  a.name = e[1].slice(1), "" === a.name && this.unnamedAtrule(a, e), this.init(a, e[2]);
6195
6227
  let u, m2, w2, b2 = false, C2 = false, x2 = [], I2 = [];
6196
6228
  for (; !this.tokenizer.endOfFile(); ) {
@@ -6242,7 +6274,7 @@ var bc = class {
6242
6274
  return false;
6243
6275
  }
6244
6276
  comment(e) {
6245
- let a = new fc();
6277
+ let a = new yc();
6246
6278
  this.init(a, e[2]), a.source.end = this.getPosition(e[3] || e[2]), a.source.end.offset++;
6247
6279
  let u = e[1].slice(2, -2);
6248
6280
  if (/^\s*$/.test(u)) a.text = "", a.raws.left = u, a.raws.right = "";
@@ -6255,7 +6287,7 @@ var bc = class {
6255
6287
  this.tokenizer = kc(this.input);
6256
6288
  }
6257
6289
  decl(e, a) {
6258
- let u = new mc();
6290
+ let u = new wc();
6259
6291
  this.init(u, e[0][2]);
6260
6292
  let m2, w2 = e[e.length - 1];
6261
6293
  for (";" === w2[0] && (this.semicolon = true, e.pop()), u.source.end = this.getPosition(w2[3] || w2[2] || (function Cc(e2) {
@@ -6304,7 +6336,7 @@ var bc = class {
6304
6336
  throw this.input.error("Double colon", { offset: e[2] }, { offset: e[2] + e[1].length });
6305
6337
  }
6306
6338
  emptyRule(e) {
6307
- let a = new yc();
6339
+ let a = new bc();
6308
6340
  this.init(a, e[2]), a.selector = "", a.raws.between = "", this.current = a;
6309
6341
  }
6310
6342
  end(e) {
@@ -6380,7 +6412,7 @@ var bc = class {
6380
6412
  }
6381
6413
  raw(e, a, u, m2) {
6382
6414
  let w2, b2, C2, x2, I2 = u.length, _2 = "", O2 = true;
6383
- for (let e2 = 0; e2 < I2; e2 += 1) w2 = u[e2], b2 = w2[0], "space" !== b2 || e2 !== I2 - 1 || m2 ? "comment" === b2 ? (x2 = u[e2 - 1] ? u[e2 - 1][0] : "empty", C2 = u[e2 + 1] ? u[e2 + 1][0] : "empty", wc[x2] || wc[C2] || "," === _2.slice(-1) ? O2 = false : _2 += w2[1]) : _2 += w2[1] : O2 = false;
6415
+ for (let e2 = 0; e2 < I2; e2 += 1) w2 = u[e2], b2 = w2[0], "space" !== b2 || e2 !== I2 - 1 || m2 ? "comment" === b2 ? (x2 = u[e2 - 1] ? u[e2 - 1][0] : "empty", C2 = u[e2 + 1] ? u[e2 + 1][0] : "empty", vc[x2] || vc[C2] || "," === _2.slice(-1) ? O2 = false : _2 += w2[1]) : _2 += w2[1] : O2 = false;
6384
6416
  if (!O2) {
6385
6417
  let m3 = u.reduce((e2, a2) => e2 + a2[1], "");
6386
6418
  e.raws[a] = { raw: m3, value: _2 };
@@ -6389,7 +6421,7 @@ var bc = class {
6389
6421
  }
6390
6422
  rule(e) {
6391
6423
  e.pop();
6392
- let a = new yc();
6424
+ let a = new bc();
6393
6425
  this.init(a, e[0][2]), a.raws.between = this.spacesAndCommentsFromEnd(e), this.raw(a, "selector", e), this.current = a;
6394
6426
  }
6395
6427
  spacesAndCommentsFromEnd(e) {
@@ -6429,9 +6461,9 @@ var bc = class {
6429
6461
  throw this.input.error("At-rule without name", { offset: a[2] }, { offset: a[2] + a[1].length });
6430
6462
  }
6431
6463
  };
6432
- let Sc = Pa, vc = ml, xc = bc;
6464
+ let Mc = Ua, Ic = wl, _c = xc;
6433
6465
  function Gt(e, a) {
6434
- let u = new vc(e, a), m2 = new xc(u);
6466
+ let u = new Ic(e, a), m2 = new _c(u);
6435
6467
  try {
6436
6468
  m2.parse();
6437
6469
  } catch (e2) {
@@ -6439,9 +6471,9 @@ function Gt(e, a) {
6439
6471
  }
6440
6472
  return m2.root;
6441
6473
  }
6442
- var Mc = Gt;
6443
- Gt.default = Gt, Sc.registerParse(Gt);
6444
- let Ic = class {
6474
+ var Oc = Gt;
6475
+ Gt.default = Gt, Mc.registerParse(Gt);
6476
+ let Ec = class {
6445
6477
  constructor(e, a = {}) {
6446
6478
  if (this.type = "warning", this.text = e, a.node && a.node.source) {
6447
6479
  let e2 = a.node.rangeBy(a);
@@ -6453,9 +6485,9 @@ let Ic = class {
6453
6485
  return this.node ? this.node.error(this.text, { index: this.index, plugin: this.plugin, word: this.word }).message : this.plugin ? this.plugin + ": " + this.text : this.text;
6454
6486
  }
6455
6487
  };
6456
- var _c = Ic;
6457
- Ic.default = Ic;
6458
- let Oc = _c, Ec = class {
6488
+ var Lc = Ec;
6489
+ Ec.default = Ec;
6490
+ let Rc = Lc, Ac = class {
6459
6491
  get content() {
6460
6492
  return this.css;
6461
6493
  }
@@ -6467,26 +6499,26 @@ let Oc = _c, Ec = class {
6467
6499
  }
6468
6500
  warn(e, a = {}) {
6469
6501
  a.plugin || this.lastPlugin && this.lastPlugin.postcssPlugin && (a.plugin = this.lastPlugin.postcssPlugin);
6470
- let u = new Oc(e, a);
6502
+ let u = new Rc(e, a);
6471
6503
  return this.messages.push(u), u;
6472
6504
  }
6473
6505
  warnings() {
6474
6506
  return this.messages.filter((e) => "warning" === e.type);
6475
6507
  }
6476
6508
  };
6477
- var Lc = Ec;
6478
- Ec.default = Ec;
6479
- let Rc = {};
6509
+ var Tc = Ac;
6510
+ Ac.default = Ac;
6511
+ let Nc = {};
6480
6512
  var ni = function(e) {
6481
- Rc[e] || (Rc[e] = true, typeof console < "u" && console.warn && console.warn(e));
6513
+ Nc[e] || (Nc[e] = true, typeof console < "u" && console.warn && console.warn(e));
6482
6514
  };
6483
- let Ac = Pa, Tc = ja, Nc = lc, Pc = Mc, Dc = Lc, Fc = Sl, Uc = ca, { isClean: Bc, my: $c } = ua, Wc = ni;
6484
- const zc = { atrule: "AtRule", comment: "Comment", decl: "Declaration", document: "Document", root: "Root", rule: "Rule" }, jc = { AtRule: true, AtRuleExit: true, Comment: true, CommentExit: true, Declaration: true, DeclarationExit: true, Document: true, DocumentExit: true, Once: true, OnceExit: true, postcssPlugin: true, prepare: true, Root: true, RootExit: true, Rule: true, RuleExit: true }, Gc = { Once: true, postcssPlugin: true, prepare: true };
6515
+ let Pc = Ua, Dc = qa, Fc = pc, Uc = Oc, Bc = Tc, $c = kl, Wc = ha, { isClean: zc, my: jc } = fa, Gc = ni;
6516
+ const Vc = { atrule: "AtRule", comment: "Comment", decl: "Declaration", document: "Document", root: "Root", rule: "Rule" }, qc = { AtRule: true, AtRuleExit: true, Comment: true, CommentExit: true, Declaration: true, DeclarationExit: true, Document: true, DocumentExit: true, Once: true, OnceExit: true, postcssPlugin: true, prepare: true, Root: true, RootExit: true, Rule: true, RuleExit: true }, Hc = { Once: true, postcssPlugin: true, prepare: true };
6485
6517
  function _e(e) {
6486
6518
  return "object" == typeof e && "function" == typeof e.then;
6487
6519
  }
6488
6520
  function ri(e) {
6489
- let a = false, u = zc[e.type];
6521
+ let a = false, u = Vc[e.type];
6490
6522
  return "decl" === e.type ? a = e.prop.toLowerCase() : "atrule" === e.type && (a = e.name.toLowerCase()), a && e.append ? [u, u + "-" + a, 0, u + "Exit", u + "Exit-" + a] : a ? [u, u + "-" + a, u + "Exit", u + "Exit-" + a] : e.append ? [u, 0, u + "Exit"] : [u, u + "Exit"];
6491
6523
  }
6492
6524
  function br(e) {
@@ -6494,9 +6526,9 @@ function br(e) {
6494
6526
  return a = "document" === e.type ? ["Document", 0, "DocumentExit"] : "root" === e.type ? ["Root", 0, "RootExit"] : ri(e), { eventIndex: 0, events: a, iterator: 0, node: e, visitorIndex: 0, visitors: [] };
6495
6527
  }
6496
6528
  function Js(e) {
6497
- return e[Bc] = false, e.nodes && e.nodes.forEach((e2) => Js(e2)), e;
6529
+ return e[zc] = false, e.nodes && e.nodes.forEach((e2) => Js(e2)), e;
6498
6530
  }
6499
- let Vc = {}, qc = class oi {
6531
+ let Zc = {}, Kc = class oi {
6500
6532
  get content() {
6501
6533
  return this.stringify().content;
6502
6534
  }
@@ -6523,19 +6555,19 @@ let Vc = {}, qc = class oi {
6523
6555
  }
6524
6556
  constructor(e, a, u) {
6525
6557
  let m2;
6526
- if (this.stringified = false, this.processed = false, "object" != typeof a || null === a || "root" !== a.type && "document" !== a.type) if (a instanceof oi || a instanceof Dc) m2 = Js(a.root), a.map && (typeof u.map > "u" && (u.map = {}), u.map.inline || (u.map.inline = false), u.map.prev = a.map);
6558
+ if (this.stringified = false, this.processed = false, "object" != typeof a || null === a || "root" !== a.type && "document" !== a.type) if (a instanceof oi || a instanceof Bc) m2 = Js(a.root), a.map && (typeof u.map > "u" && (u.map = {}), u.map.inline || (u.map.inline = false), u.map.prev = a.map);
6527
6559
  else {
6528
- let e2 = Pc;
6560
+ let e2 = Uc;
6529
6561
  u.syntax && (e2 = u.syntax.parse), u.parser && (e2 = u.parser), e2.parse && (e2 = e2.parse);
6530
6562
  try {
6531
6563
  m2 = e2(a, u);
6532
6564
  } catch (e3) {
6533
6565
  this.processed = true, this.error = e3;
6534
6566
  }
6535
- m2 && !m2[$c] && Ac.rebuild(m2);
6567
+ m2 && !m2[jc] && Pc.rebuild(m2);
6536
6568
  }
6537
6569
  else m2 = Js(a);
6538
- this.result = new Dc(e, m2, u), this.helpers = { ...Vc, postcss: Vc, result: this.result }, this.plugins = this.processor.plugins.map((e2) => "object" == typeof e2 && e2.prepare ? { ...e2, ...e2.prepare(this.result) } : e2);
6570
+ this.result = new Bc(e, m2, u), this.helpers = { ...Zc, postcss: Zc, result: this.result }, this.plugins = this.processor.plugins.map((e2) => "object" == typeof e2 && e2.prepare ? { ...e2, ...e2.prepare(this.result) } : e2);
6539
6571
  }
6540
6572
  async() {
6541
6573
  return this.error ? Promise.reject(this.error) : this.processed ? Promise.resolve(this.result) : (this.processing || (this.processing = this.runAsync()), this.processing);
@@ -6569,8 +6601,8 @@ let Vc = {}, qc = class oi {
6569
6601
  this.listeners[a] || (this.listeners[a] = []), this.listeners[a].push([e, u]);
6570
6602
  };
6571
6603
  for (let e of this.plugins) if ("object" == typeof e) for (let a in e) {
6572
- if (!jc[a] && /^[A-Z]/.test(a)) throw new Error(`Unknown event ${a} in ${e.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);
6573
- if (!Gc[a]) if ("object" == typeof e[a]) for (let u in e[a]) t(e, "*" === u ? a : a + "-" + u.toLowerCase(), e[a][u]);
6604
+ if (!qc[a] && /^[A-Z]/.test(a)) throw new Error(`Unknown event ${a} in ${e.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);
6605
+ if (!Hc[a]) if ("object" == typeof e[a]) for (let u in e[a]) t(e, "*" === u ? a : a + "-" + u.toLowerCase(), e[a][u]);
6574
6606
  else "function" == typeof e[a] && t(e, a, e[a]);
6575
6607
  }
6576
6608
  this.hasListener = Object.keys(this.listeners).length > 0;
@@ -6587,8 +6619,8 @@ let Vc = {}, qc = class oi {
6587
6619
  }
6588
6620
  if (this.prepareVisitors(), this.hasListener) {
6589
6621
  let e = this.result.root;
6590
- for (; !e[Bc]; ) {
6591
- e[Bc] = true;
6622
+ for (; !e[zc]; ) {
6623
+ e[zc] = true;
6592
6624
  let a = [br(e)];
6593
6625
  for (; a.length > 0; ) {
6594
6626
  let e2 = this.visitTick(a);
@@ -6633,9 +6665,9 @@ let Vc = {}, qc = class oi {
6633
6665
  if (this.error) throw this.error;
6634
6666
  if (this.stringified) return this.result;
6635
6667
  this.stringified = true, this.sync();
6636
- let e = this.result.opts, a = Uc;
6668
+ let e = this.result.opts, a = Wc;
6637
6669
  e.syntax && (a = e.syntax.stringify), e.stringifier && (a = e.stringifier), a.stringify && (a = a.stringify);
6638
- let u = new Nc(a, this.result.root, this.result.opts).generate();
6670
+ let u = new Fc(a, this.result.root, this.result.opts).generate();
6639
6671
  return this.result.css = u[0], this.result.map = u[1], this.result;
6640
6672
  }
6641
6673
  sync() {
@@ -6647,14 +6679,14 @@ let Vc = {}, qc = class oi {
6647
6679
  }
6648
6680
  if (this.prepareVisitors(), this.hasListener) {
6649
6681
  let e = this.result.root;
6650
- for (; !e[Bc]; ) e[Bc] = true, this.walkSync(e);
6682
+ for (; !e[zc]; ) e[zc] = true, this.walkSync(e);
6651
6683
  if (this.listeners.OnceExit) if ("document" === e.type) for (let a of e.nodes) this.visitSync(this.listeners.OnceExit, a);
6652
6684
  else this.visitSync(this.listeners.OnceExit, e);
6653
6685
  }
6654
6686
  return this.result;
6655
6687
  }
6656
6688
  then(e, a) {
6657
- return "production" !== process.env.NODE_ENV && ("from" in this.opts || Wc("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")), this.async().then(e, a);
6689
+ return "production" !== process.env.NODE_ENV && ("from" in this.opts || Gc("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")), this.async().then(e, a);
6658
6690
  }
6659
6691
  toString() {
6660
6692
  return this.css;
@@ -6686,22 +6718,22 @@ let Vc = {}, qc = class oi {
6686
6718
  }
6687
6719
  if (0 !== a.iterator) {
6688
6720
  let m3, w3 = a.iterator;
6689
- for (; m3 = u.nodes[u.indexes[w3]]; ) if (u.indexes[w3] += 1, !m3[Bc]) return m3[Bc] = true, void e.push(br(m3));
6721
+ for (; m3 = u.nodes[u.indexes[w3]]; ) if (u.indexes[w3] += 1, !m3[zc]) return m3[zc] = true, void e.push(br(m3));
6690
6722
  a.iterator = 0, delete u.indexes[w3];
6691
6723
  }
6692
6724
  let w2 = a.events;
6693
6725
  for (; a.eventIndex < w2.length; ) {
6694
6726
  let e2 = w2[a.eventIndex];
6695
- if (a.eventIndex += 1, 0 === e2) return void (u.nodes && u.nodes.length && (u[Bc] = true, a.iterator = u.getIterator()));
6727
+ if (a.eventIndex += 1, 0 === e2) return void (u.nodes && u.nodes.length && (u[zc] = true, a.iterator = u.getIterator()));
6696
6728
  if (this.listeners[e2]) return void (a.visitors = this.listeners[e2]);
6697
6729
  }
6698
6730
  e.pop();
6699
6731
  }
6700
6732
  walkSync(e) {
6701
- e[Bc] = true;
6733
+ e[zc] = true;
6702
6734
  let a = ri(e);
6703
6735
  for (let u of a) if (0 === u) e.nodes && e.each((e2) => {
6704
- e2[Bc] || this.walkSync(e2);
6736
+ e2[zc] || this.walkSync(e2);
6705
6737
  });
6706
6738
  else {
6707
6739
  let a2 = this.listeners[u];
@@ -6712,14 +6744,14 @@ let Vc = {}, qc = class oi {
6712
6744
  return this.sync().warnings();
6713
6745
  }
6714
6746
  };
6715
- qc.registerPostcss = (e) => {
6716
- Vc = e;
6747
+ Kc.registerPostcss = (e) => {
6748
+ Zc = e;
6717
6749
  };
6718
- var Hc = qc;
6719
- qc.default = qc, Fc.registerLazyResult(qc), Tc.registerLazyResult(qc);
6720
- let Zc = lc, Kc = Mc;
6721
- const Jc = Lc;
6722
- let Yc = ca, Xc = ni, Qc = class {
6750
+ var Jc = Kc;
6751
+ Kc.default = Kc, $c.registerLazyResult(Kc), Dc.registerLazyResult(Kc);
6752
+ let Yc = pc, Xc = Oc;
6753
+ const Qc = Tc;
6754
+ let lu = ha, cu = ni, hu = class {
6723
6755
  get content() {
6724
6756
  return this.result.css;
6725
6757
  }
@@ -6740,7 +6772,7 @@ let Yc = ca, Xc = ni, Qc = class {
6740
6772
  }
6741
6773
  get root() {
6742
6774
  if (this._root) return this._root;
6743
- let e, a = Kc;
6775
+ let e, a = Xc;
6744
6776
  try {
6745
6777
  e = a(this._css, this._opts);
6746
6778
  } catch (e2) {
@@ -6754,11 +6786,11 @@ let Yc = ca, Xc = ni, Qc = class {
6754
6786
  }
6755
6787
  constructor(e, a, u) {
6756
6788
  a = a.toString(), this.stringified = false, this._processor = e, this._css = a, this._opts = u, this._map = void 0;
6757
- let m2, w2 = Yc;
6758
- this.result = new Jc(this._processor, m2, this._opts), this.result.css = a;
6789
+ let m2, w2 = lu;
6790
+ this.result = new Qc(this._processor, m2, this._opts), this.result.css = a;
6759
6791
  let b2 = this;
6760
6792
  Object.defineProperty(this.result, "root", { get: () => b2.root });
6761
- let C2 = new Zc(w2, m2, this._opts, a);
6793
+ let C2 = new Yc(w2, m2, this._opts, a);
6762
6794
  if (C2.isMap()) {
6763
6795
  let [e2, a2] = C2.generate();
6764
6796
  e2 && (this.result.css = e2), a2 && (this.result.map = a2);
@@ -6778,7 +6810,7 @@ let Yc = ca, Xc = ni, Qc = class {
6778
6810
  return this.result;
6779
6811
  }
6780
6812
  then(e, a) {
6781
- return "production" !== process.env.NODE_ENV && ("from" in this._opts || Xc("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")), this.async().then(e, a);
6813
+ return "production" !== process.env.NODE_ENV && ("from" in this._opts || cu("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")), this.async().then(e, a);
6782
6814
  }
6783
6815
  toString() {
6784
6816
  return this._css;
@@ -6787,9 +6819,9 @@ let Yc = ca, Xc = ni, Qc = class {
6787
6819
  return [];
6788
6820
  }
6789
6821
  };
6790
- var lu = Qc;
6791
- Qc.default = Qc;
6792
- let cu = ja, hu = Hc, Cu = lu, ku = Sl, xu = class {
6822
+ var Cu = hu;
6823
+ hu.default = hu;
6824
+ let ku = qa, xu = Jc, Mu = Cu, _u = kl, Ou = class {
6793
6825
  constructor(e = []) {
6794
6826
  this.version = "8.5.3", this.plugins = this.normalize(e);
6795
6827
  }
@@ -6805,39 +6837,39 @@ let cu = ja, hu = Hc, Cu = lu, ku = Sl, xu = class {
6805
6837
  return a;
6806
6838
  }
6807
6839
  process(e, a = {}) {
6808
- return this.plugins.length || a.parser || a.stringifier || a.syntax ? new hu(this, e, a) : new Cu(this, e, a);
6840
+ return this.plugins.length || a.parser || a.stringifier || a.syntax ? new xu(this, e, a) : new Mu(this, e, a);
6809
6841
  }
6810
6842
  use(e) {
6811
6843
  return this.plugins = this.plugins.concat(this.normalize([e])), this;
6812
6844
  }
6813
6845
  };
6814
- var Mu = xu;
6815
- xu.default = xu, ku.registerProcessor(xu), cu.registerProcessor(xu);
6816
- let _u = Ua, Ou = va, Eu = Pa, Lu = oa, Ru = xa, Au = ja, Tu = Pl, Nu = ml, Pu = Hc, Du = Cl, Fu = wa, Uu = Mc, $u = Mu, Wu = Lc, zu = Sl, ju = Il, Gu = ca, Vu = _c;
6846
+ var Eu = Ou;
6847
+ Ou.default = Ou, _u.registerProcessor(Ou), ku.registerProcessor(Ou);
6848
+ let Lu = Wa, Ru = xa, Au = Ua, Tu = aa, Nu = _a, Pu = qa, Du = ec, Fu = wl, Uu = Jc, $u = Ml, Wu = va, zu = Oc, ju = Eu, Gu = Tc, Vu = kl, qu = Ll, Hu = ha, Zu = Lc;
6817
6849
  function T$1(...e) {
6818
- return 1 === e.length && Array.isArray(e[0]) && (e = e[0]), new $u(e);
6850
+ return 1 === e.length && Array.isArray(e[0]) && (e = e[0]), new ju(e);
6819
6851
  }
6820
6852
  T$1.plugin = function(e, a) {
6821
6853
  let u, m2 = false;
6822
6854
  function n(...u2) {
6823
6855
  console && console.warn && !m2 && (m2 = true, console.warn(e + ": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"), process.env.LANG && process.env.LANG.startsWith("cn") && console.warn(e + ": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));
6824
6856
  let w2 = a(...u2);
6825
- return w2.postcssPlugin = e, w2.postcssVersion = new $u().version, w2;
6857
+ return w2.postcssPlugin = e, w2.postcssVersion = new ju().version, w2;
6826
6858
  }
6827
6859
  return Object.defineProperty(n, "postcss", { get: () => (u || (u = n()), u) }), n.process = function(e2, a2, u2) {
6828
6860
  return T$1([n(u2)]).process(e2, a2);
6829
6861
  }, n;
6830
- }, T$1.stringify = Gu, T$1.parse = Uu, T$1.fromJSON = Tu, T$1.list = Du, T$1.comment = (e) => new Ou(e), T$1.atRule = (e) => new _u(e), T$1.decl = (e) => new Ru(e), T$1.rule = (e) => new ju(e), T$1.root = (e) => new zu(e), T$1.document = (e) => new Au(e), T$1.CssSyntaxError = Lu, T$1.Declaration = Ru, T$1.Container = Eu, T$1.Processor = $u, T$1.Document = Au, T$1.Comment = Ou, T$1.Warning = Vu, T$1.AtRule = _u, T$1.Result = Wu, T$1.Input = Nu, T$1.Rule = ju, T$1.Root = zu, T$1.Node = Fu, Pu.registerPostcss(T$1);
6831
- var qu = T$1;
6862
+ }, T$1.stringify = Hu, T$1.parse = zu, T$1.fromJSON = Du, T$1.list = $u, T$1.comment = (e) => new Ru(e), T$1.atRule = (e) => new Lu(e), T$1.decl = (e) => new Nu(e), T$1.rule = (e) => new qu(e), T$1.root = (e) => new Vu(e), T$1.document = (e) => new Pu(e), T$1.CssSyntaxError = Tu, T$1.Declaration = Nu, T$1.Container = Au, T$1.Processor = ju, T$1.Document = Pu, T$1.Comment = Ru, T$1.Warning = Zu, T$1.AtRule = Lu, T$1.Result = Gu, T$1.Input = Fu, T$1.Rule = qu, T$1.Root = Vu, T$1.Node = Wu, Uu.registerPostcss(T$1);
6863
+ var Ku = T$1;
6832
6864
  T$1.default = T$1;
6833
- const Hu = Su(qu);
6834
- var Zu;
6835
- Hu.stringify, Hu.fromJSON, Hu.plugin, Hu.parse, Hu.list, Hu.document, Hu.comment, Hu.atRule, Hu.rule, Hu.decl, Hu.root, Hu.CssSyntaxError, Hu.Declaration, Hu.Container, Hu.Processor, Hu.Document, Hu.Comment, Hu.Warning, Hu.AtRule, Hu.Result, Hu.Input, Hu.Rule, Hu.Root, Hu.Node, (function(e) {
6865
+ const Ju = Su(Ku);
6866
+ var Yu;
6867
+ Ju.stringify, Ju.fromJSON, Ju.plugin, Ju.parse, Ju.list, Ju.document, Ju.comment, Ju.atRule, Ju.rule, Ju.decl, Ju.root, Ju.CssSyntaxError, Ju.Declaration, Ju.Container, Ju.Processor, Ju.Document, Ju.Comment, Ju.Warning, Ju.AtRule, Ju.Result, Ju.Input, Ju.Rule, Ju.Root, Ju.Node, (function(e) {
6836
6868
  e[e.NotStarted = 0] = "NotStarted", e[e.Running = 1] = "Running", e[e.Stopped = 2] = "Stopped";
6837
- })(Zu || (Zu = {}));
6838
- const { addCustomEvent: Ku } = ae, { addSailfishEvent: Ju } = ae, { freezePage: Yu } = ae, { takeFullSnapshot: Xu } = ae;
6839
- var Qu = Object.defineProperty, y = (e, a, u) => ((e2, a2, u2) => a2 in e2 ? Qu(e2, a2, { enumerable: true, configurable: true, writable: true, value: u2 }) : e2[a2] = u2)(e, "symbol" != typeof a ? a + "" : a, u);
6840
- let ep = class d {
6869
+ })(Yu || (Yu = {}));
6870
+ const { addCustomEvent: Xu } = ae, { addSailfishEvent: Qu } = ae, { freezePage: ep } = ae, { takeFullSnapshot: tp } = ae;
6871
+ var np = Object.defineProperty, y = (e, a, u) => ((e2, a2, u2) => a2 in e2 ? np(e2, a2, { enumerable: true, configurable: true, writable: true, value: u2 }) : e2[a2] = u2)(e, "symbol" != typeof a ? a + "" : a, u);
6872
+ let rp = class d {
6841
6873
  constructor(e) {
6842
6874
  y(this, "fileName"), y(this, "functionName"), y(this, "lineNumber"), y(this, "columnNumber"), this.fileName = e.fileName || "", this.functionName = e.functionName || "", this.lineNumber = e.lineNumber, this.columnNumber = e.columnNumber;
6843
6875
  }
@@ -6846,8 +6878,8 @@ let ep = class d {
6846
6878
  return this.functionName ? `${this.functionName} (${this.fileName}:${e}:${a})` : `${this.fileName}:${e}:${a}`;
6847
6879
  }
6848
6880
  };
6849
- const tp = /(^|@)\S+:\d+/, np = /^\s*at .*(\S+:\d+|\(native\))/m, rp = /^(eval@)?(\[native code])?$/, op = { parse: function(e) {
6850
- return e ? typeof e.stacktrace < "u" || typeof e["opera#sourceloc"] < "u" ? this.parseOpera(e) : e.stack && e.stack.match(np) ? this.parseV8OrIE(e) : e.stack ? this.parseFFOrSafari(e) : (console.warn("[console-record-plugin]: Failed to parse error object:", e), []) : [];
6881
+ const op = /(^|@)\S+:\d+/, sp = /^\s*at .*(\S+:\d+|\(native\))/m, ip = /^(eval@)?(\[native code])?$/, ap = { parse: function(e) {
6882
+ return e ? typeof e.stacktrace < "u" || typeof e["opera#sourceloc"] < "u" ? this.parseOpera(e) : e.stack && e.stack.match(sp) ? this.parseV8OrIE(e) : e.stack ? this.parseFFOrSafari(e) : (console.warn("[console-record-plugin]: Failed to parse error object:", e), []) : [];
6851
6883
  }, extractLocation: function(e) {
6852
6884
  if (-1 === e.indexOf(":")) return [e];
6853
6885
  const a = /(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/[()]/g, ""));
@@ -6855,23 +6887,23 @@ const tp = /(^|@)\S+:\d+/, np = /^\s*at .*(\S+:\d+|\(native\))/m, rp = /^(eval@)
6855
6887
  return [a[1], a[2] || void 0, a[3] || void 0];
6856
6888
  }, parseV8OrIE: function(e) {
6857
6889
  return e.stack.split("\n").filter(function(e2) {
6858
- return !!e2.match(np);
6890
+ return !!e2.match(sp);
6859
6891
  }, this).map(function(e2) {
6860
6892
  e2.indexOf("(eval ") > -1 && (e2 = e2.replace(/eval code/g, "eval").replace(/(\(eval at [^()]*)|(\),.*$)/g, ""));
6861
6893
  let a = e2.replace(/^\s+/, "").replace(/\(eval code/g, "(");
6862
6894
  const u = a.match(/ (\((.+):(\d+):(\d+)\)$)/);
6863
6895
  a = u ? a.replace(u[0], "") : a;
6864
6896
  const m2 = a.split(/\s+/).slice(1), w2 = this.extractLocation(u ? u[1] : m2.pop()), b2 = m2.join(" ") || void 0, C2 = ["eval", "<anonymous>"].indexOf(w2[0]) > -1 ? void 0 : w2[0];
6865
- return new ep({ functionName: b2, fileName: C2, lineNumber: w2[1], columnNumber: w2[2] });
6897
+ return new rp({ functionName: b2, fileName: C2, lineNumber: w2[1], columnNumber: w2[2] });
6866
6898
  }, this);
6867
6899
  }, parseFFOrSafari: function(e) {
6868
6900
  return e.stack.split("\n").filter(function(e2) {
6869
- return !e2.match(rp);
6901
+ return !e2.match(ip);
6870
6902
  }, this).map(function(e2) {
6871
- if (e2.indexOf(" > eval") > -1 && (e2 = e2.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g, ":$1")), -1 === e2.indexOf("@") && -1 === e2.indexOf(":")) return new ep({ functionName: e2 });
6903
+ if (e2.indexOf(" > eval") > -1 && (e2 = e2.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g, ":$1")), -1 === e2.indexOf("@") && -1 === e2.indexOf(":")) return new rp({ functionName: e2 });
6872
6904
  {
6873
6905
  const a = /((.*".+"[^@]*)?[^@]*)(?:@)/, u = e2.match(a), m2 = u && u[1] ? u[1] : void 0, w2 = this.extractLocation(e2.replace(a, ""));
6874
- return new ep({ functionName: m2, fileName: w2[0], lineNumber: w2[1], columnNumber: w2[2] });
6906
+ return new rp({ functionName: m2, fileName: w2[0], lineNumber: w2[1], columnNumber: w2[2] });
6875
6907
  }
6876
6908
  }, this);
6877
6909
  }, parseOpera: function(e) {
@@ -6880,22 +6912,22 @@ const tp = /(^|@)\S+:\d+/, np = /^\s*at .*(\S+:\d+|\(native\))/m, rp = /^(eval@)
6880
6912
  const a = /Line (\d+).*script (?:in )?(\S+)/i, u = e.message.split("\n"), m2 = [];
6881
6913
  for (let e2 = 2, w2 = u.length; e2 < w2; e2 += 2) {
6882
6914
  const w3 = a.exec(u[e2]);
6883
- w3 && m2.push(new ep({ fileName: w3[2], lineNumber: parseFloat(w3[1]) }));
6915
+ w3 && m2.push(new rp({ fileName: w3[2], lineNumber: parseFloat(w3[1]) }));
6884
6916
  }
6885
6917
  return m2;
6886
6918
  }, parseOpera10: function(e) {
6887
6919
  const a = /Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i, u = e.stacktrace.split("\n"), m2 = [];
6888
6920
  for (let e2 = 0, w2 = u.length; e2 < w2; e2 += 2) {
6889
6921
  const w3 = a.exec(u[e2]);
6890
- w3 && m2.push(new ep({ functionName: w3[3] || void 0, fileName: w3[2], lineNumber: parseFloat(w3[1]) }));
6922
+ w3 && m2.push(new rp({ functionName: w3[3] || void 0, fileName: w3[2], lineNumber: parseFloat(w3[1]) }));
6891
6923
  }
6892
6924
  return m2;
6893
6925
  }, parseOpera11: function(e) {
6894
6926
  return e.stack.split("\n").filter(function(e2) {
6895
- return !!e2.match(tp) && !e2.match(/^Error created at/);
6927
+ return !!e2.match(op) && !e2.match(/^Error created at/);
6896
6928
  }, this).map(function(e2) {
6897
6929
  const a = e2.split("@"), u = this.extractLocation(a.pop()), m2 = (a.shift() || "").replace(/<anonymous function(: (\w+))?>/, "$2").replace(/\([^)]*\)/g, "") || void 0;
6898
- return new ep({ functionName: m2, fileName: u[0], lineNumber: u[1], columnNumber: u[2] });
6930
+ return new rp({ functionName: m2, fileName: u[0], lineNumber: u[1], columnNumber: u[2] });
6899
6931
  }, this);
6900
6932
  } };
6901
6933
  function T(e) {
@@ -6952,9 +6984,9 @@ function g(e, a) {
6952
6984
  return a2 instanceof Node ? a2 instanceof HTMLElement ? a2 ? a2.outerHTML : "" : a2.nodeName : a2 instanceof Error ? a2.stack ? a2.stack + "\nEnd of stack for Error object" : a2.name + ": " + a2.message : a2;
6953
6985
  });
6954
6986
  }
6955
- const sp = { level: ["assert", "clear", "count", "countReset", "debug", "dir", "dirxml", "error", "group", "groupCollapsed", "groupEnd", "info", "log", "table", "time", "timeEnd", "timeLog", "trace", "warn"], lengthThreshold: 1e3, logger: "console" };
6987
+ const lp = { level: ["assert", "clear", "count", "countReset", "debug", "dir", "dirxml", "error", "group", "groupCollapsed", "groupEnd", "info", "log", "table", "time", "timeEnd", "timeLog", "trace", "warn"], lengthThreshold: 1e3, logger: "console" };
6956
6988
  function R(e, a, u) {
6957
- const m2 = u ? Object.assign({}, sp, u) : sp, w2 = m2.logger;
6989
+ const m2 = u ? Object.assign({}, lp, u) : lp, w2 = m2.logger;
6958
6990
  if (!w2) return () => {
6959
6991
  };
6960
6992
  let b2;
@@ -6963,7 +6995,7 @@ function R(e, a, u) {
6963
6995
  const I2 = [];
6964
6996
  if (m2.level.includes("error")) {
6965
6997
  const l = (a2) => {
6966
- const u2 = a2.message, w3 = a2.error, b3 = op.parse(w3).map((e2) => e2.toString()), C3 = [g(u2, m2.stringifyOptions)];
6998
+ const u2 = a2.message, w3 = a2.error, b3 = ap.parse(w3).map((e2) => e2.toString()), C3 = [g(u2, m2.stringifyOptions)];
6967
6999
  e({ level: "error", trace: b3, payload: C3 });
6968
7000
  };
6969
7001
  a.addEventListener("error", l), I2.push(() => {
@@ -6972,7 +7004,7 @@ function R(e, a, u) {
6972
7004
  const f = (a2) => {
6973
7005
  let u2, w3;
6974
7006
  a2.reason instanceof Error ? (u2 = a2.reason, w3 = [g(`Uncaught (in promise) ${u2.name}: ${u2.message}`, m2.stringifyOptions)]) : (u2 = new Error(), w3 = [g("Uncaught (in promise)", m2.stringifyOptions), g(a2.reason, m2.stringifyOptions)]);
6975
- const b3 = op.parse(u2).map((e2) => e2.toString());
7007
+ const b3 = ap.parse(u2).map((e2) => e2.toString());
6976
7008
  e({ level: "error", trace: b3, payload: w3 });
6977
7009
  };
6978
7010
  a.addEventListener("unhandledrejection", f), I2.push(() => {
@@ -7000,7 +7032,7 @@ function R(e, a, u) {
7000
7032
  if (a3.apply(this, w3), !("assert" === u2 && w3[0] || x2)) {
7001
7033
  x2 = true;
7002
7034
  try {
7003
- const a4 = op.parse(new Error()).map((e2) => e2.toString()).splice(1), b3 = ("assert" === u2 ? w3.slice(1) : w3).map((e2) => g(e2, m2.stringifyOptions));
7035
+ const a4 = ap.parse(new Error()).map((e2) => e2.toString()).splice(1), b3 = ("assert" === u2 ? w3.slice(1) : w3).map((e2) => g(e2, m2.stringifyOptions));
7004
7036
  C2++, C2 < m2.lengthThreshold ? e({ level: u2, trace: a4, payload: b3 }) : C2 === m2.lengthThreshold && e({ level: "warn", trace: [], payload: [g("The number of log records reached the threshold.")] });
7005
7037
  } catch (e2) {
7006
7038
  a3("@sailfish-rrweb/rrweb logger error:", e2, ...w3);
@@ -7012,7 +7044,7 @@ function R(e, a, u) {
7012
7044
  };
7013
7045
  }
7014
7046
  }
7015
- var ip = ((e) => (e[e.DomContentLoaded = 0] = "DomContentLoaded", e[e.Load = 1] = "Load", e[e.FullSnapshot = 2] = "FullSnapshot", e[e.IncrementalSnapshot = 3] = "IncrementalSnapshot", e[e.Meta = 4] = "Meta", e[e.Custom = 5] = "Custom", e[e.Plugin = 6] = "Plugin", e[e.Device = 24] = "Device", e[e.SailfishCustom = 25] = "SailfishCustom", e))(ip || {});
7047
+ var cp = ((e) => (e[e.DomContentLoaded = 0] = "DomContentLoaded", e[e.Load = 1] = "Load", e[e.FullSnapshot = 2] = "FullSnapshot", e[e.IncrementalSnapshot = 3] = "IncrementalSnapshot", e[e.Meta = 4] = "Meta", e[e.Custom = 5] = "Custom", e[e.Plugin = 6] = "Plugin", e[e.Device = 24] = "Device", e[e.SailfishCustom = 25] = "SailfishCustom", e))(cp || {});
7016
7048
  function suppressConsoleLogsDuringCall(e) {
7017
7049
  const a = console.log, u = console.warn, m2 = console.error;
7018
7050
  console.log = () => {
@@ -7025,7 +7057,7 @@ function suppressConsoleLogsDuringCall(e) {
7025
7057
  console.log = a, console.warn = u, console.error = m2;
7026
7058
  }
7027
7059
  }
7028
- const ap = "zendesk_chat", lp = "Zendesk";
7060
+ const up = "zendesk_chat", pp = "Zendesk";
7029
7061
  function zE_safe(...e) {
7030
7062
  try {
7031
7063
  if ((function hasZendesk() {
@@ -7064,7 +7096,7 @@ function initializeDomContentEvents(e) {
7064
7096
  function initializeConsolePlugin(e, a) {
7065
7097
  const { name: u, observer: m2 } = /* @__PURE__ */ ((e2) => ({ name: "@sailfish-rrweb/rrweb/console@1", observer: R, options: e2 }))(e);
7066
7098
  m2((e2) => {
7067
- sendEvent({ type: ip.Plugin, timestamp: Date.now(), data: { plugin: u, payload: e2 }, sessionId: a, ...getUrlAndStoredUuids() });
7099
+ sendEvent({ type: cp.Plugin, timestamp: Date.now(), data: { plugin: u, payload: e2 }, sessionId: a, ...getUrlAndStoredUuids() });
7068
7100
  }, window, e);
7069
7101
  }
7070
7102
  async function initializeRecording(e, a, u, m2) {
@@ -7084,11 +7116,11 @@ async function initializeRecording(e, a, u, m2) {
7084
7116
  zE_safe("messenger:set", "conversationTags", [`sailfish-session-${m2}`]);
7085
7117
  });
7086
7118
  const handleWidgetOpen = () => {
7087
- ae.addSailfishEvent(ip.SailfishCustom, { action: "customer support chat opened", element_id: ap, provider: lp });
7119
+ ae.addSailfishEvent(cp.SailfishCustom, { action: "customer support chat opened", element_id: up, provider: pp });
7088
7120
  }, handleWidgetClose = () => {
7089
- ae.addSailfishEvent(ip.SailfishCustom, { action: "customer support chat closed", element_id: ap, provider: lp });
7121
+ ae.addSailfishEvent(cp.SailfishCustom, { action: "customer support chat closed", element_id: up, provider: pp });
7090
7122
  }, handleUnreadMessages = (e2) => {
7091
- ae.addSailfishEvent(ip.SailfishCustom, { action: "zendesk unreadmessages", element_id: ap, provider: lp });
7123
+ ae.addSailfishEvent(cp.SailfishCustom, { action: "zendesk unreadmessages", element_id: up, provider: pp });
7092
7124
  };
7093
7125
  suppressConsoleLogsDuringCall(() => {
7094
7126
  zE_safe("messenger:on", "open", handleWidgetOpen), zE_safe("messenger:on", "close", handleWidgetClose), zE_safe("messenger:on", "unreadMessages", handleUnreadMessages);
@@ -7099,19 +7131,19 @@ async function initializeRecording(e, a, u, m2) {
7099
7131
  }
7100
7132
  return w2;
7101
7133
  }
7102
- let cp = null, up = null;
7134
+ let dp = null, hp = null;
7103
7135
  function identify(e, a = {}, u = false) {
7104
7136
  const m2 = { type: "identify", userId: e, traits: a };
7105
- cp && cp.userId === e && JSON.stringify(cp.traits) === JSON.stringify(a) || (cp = { userId: e, traits: a, overwrite: u }, sendMessage(m2));
7137
+ dp && dp.userId === e && JSON.stringify(dp.traits) === JSON.stringify(a) || (dp = { userId: e, traits: a, overwrite: u }, sendMessage(m2));
7106
7138
  }
7107
7139
  function addOrUpdateMetadata(e) {
7108
7140
  const a = { type: "addOrUpdateMetadata", metadata: e };
7109
- up && JSON.stringify(up) === JSON.stringify(e) || (up = e, sendMessage(a));
7141
+ hp && JSON.stringify(hp) === JSON.stringify(e) || (hp = e, sendMessage(a));
7110
7142
  }
7111
7143
  function trackingEvent(e) {
7112
7144
  sendMessage({ type: "trackingEvent", trackingData: e, timestamp: Q() });
7113
7145
  }
7114
- const pp = readDebugFlag(), dp = ["t.co", "*.twitter.com", "*.gravatar.com", "*.googleapis.com", "*.amazonaws.com", "*.smooch.io", "*.zendesk.com", "*.zdassets.com"], hp = [400, 403], fp = "CORS", mp = 1, gp = { recordCanvas: false, recordCrossOriginIframes: false, collectFonts: false, inlineImages: false, recordPassword: false, recordRealName: true, recordCreditCardInfo: false, recordSsn: false, recordDob: false, sampling: {} }, yp = { level: ["info", "log", "warn", "error"], lengthThreshold: 1e4, stringifyOptions: { stringLengthLimit: 1e3, numOfKeysLimit: 20, depthOfLimit: 4 }, logger: "console" };
7146
+ const fp = readDebugFlag(), mp = ["t.co", "*.twitter.com", "*.gravatar.com", "*.googleapis.com", "*.amazonaws.com", "*.smooch.io", "*.zendesk.com", "*.zdassets.com"], gp = [400, 403], yp = "CORS", wp = 1, Sp = { recordCanvas: false, recordCrossOriginIframes: false, collectFonts: false, inlineImages: false, recordPassword: false, recordRealName: true, recordCreditCardInfo: false, recordSsn: false, recordDob: false, sampling: {} }, bp = { level: ["info", "log", "warn", "error"], lengthThreshold: 1e4, stringifyOptions: { stringLengthLimit: 1e3, numOfKeysLimit: 20, depthOfLimit: 4 }, logger: "console" };
7115
7147
  function trackDomainChangesOnce() {
7116
7148
  const e = window.__sailfish_recorder || (window.__sailfish_recorder = {});
7117
7149
  if (e.routeWatcherIntervalId) return;
@@ -7178,7 +7210,7 @@ function shouldSkipHeadersPropagation(e, a = []) {
7178
7210
  return true;
7179
7211
  }
7180
7212
  for (const e2 of E) if (u.pathname.toLowerCase().endsWith(e2)) return true;
7181
- return !!matchUrlWithWildcard(e, [...dp, ...a]);
7213
+ return !!matchUrlWithWildcard(e, [...mp, ...a]);
7182
7214
  }
7183
7215
  function setupFetchInterceptor(e = []) {
7184
7216
  const a = window.fetch, u = getOrSetSessionId();
@@ -7213,7 +7245,7 @@ function setupFetchInterceptor(e = []) {
7213
7245
  F2[e3] = a4;
7214
7246
  }) : F2 = { ...w3.headers }), D2 = w3.body;
7215
7247
  } catch (e3) {
7216
- pp && console.warn("[Sailfish] Failed to capture request data:", e3);
7248
+ fp && console.warn("[Sailfish] Failed to capture request data:", e3);
7217
7249
  }
7218
7250
  delete F2[b];
7219
7251
  const U2 = (_a2 = getFuncSpanHeader()) == null ? void 0 : _a2.name;
@@ -7223,16 +7255,16 @@ function setupFetchInterceptor(e = []) {
7223
7255
  const I4 = getFuncSpanHeader();
7224
7256
  if (u3 instanceof Request) {
7225
7257
  const _3 = u3.clone(), O3 = new Headers(_3.headers);
7226
- O3.set(b, `${w4}/${C4}/${x4}`), I4 && (O3.set(I4.name, I4.value), pp && console.log("[Sailfish] Added funcspan header to HTTP Request:", { url: u3.url, header: I4.name }));
7258
+ O3.set(b, `${w4}/${C4}/${x4}`), I4 && (O3.set(I4.name, I4.value), fp && console.log("[Sailfish] Added funcspan header to HTTP Request:", { url: u3.url, header: I4.name }));
7227
7259
  const E3 = new Request(_3, { headers: O3 });
7228
7260
  return await e3.call(a4, E3, m4);
7229
7261
  }
7230
7262
  {
7231
7263
  const _3 = { ...m4 }, O3 = new Headers(m4.headers || {});
7232
- return O3.set(b, `${w4}/${C4}/${x4}`), I4 && (O3.set(I4.name, I4.value), pp && console.log("[Sailfish] Added funcspan header to HTTP fetch:", { url: "string" == typeof u3 ? u3 : u3.href, header: I4.name })), _3.headers = O3, await e3.call(a4, u3, _3);
7264
+ return O3.set(b, `${w4}/${C4}/${x4}`), I4 && (O3.set(I4.name, I4.value), fp && console.log("[Sailfish] Added funcspan header to HTTP fetch:", { url: "string" == typeof u3 ? u3 : u3.href, header: I4.name })), _3.headers = O3, await e3.call(a4, u3, _3);
7233
7265
  }
7234
7266
  })(e2, a3, m3, w3, C3, _2.page_visit_uuid, I3), B2 = false;
7235
- hp.includes(U3.status) && (pp && console.log("Perform retry as status was fail:", U3), I3 = v4(), U3 = await (async function retryWithoutPropagateHeaders(e3, a4, u3, m4) {
7267
+ gp.includes(U3.status) && (fp && console.log("Perform retry as status was fail:", U3), I3 = v4(), U3 = await (async function retryWithoutPropagateHeaders(e3, a4, u3, m4) {
7236
7268
  try {
7237
7269
  let m5 = u3[0], w4 = u3[1] || {};
7238
7270
  if ("string" == typeof m5 || m5 instanceof URL) {
@@ -7248,7 +7280,7 @@ function setupFetchInterceptor(e = []) {
7248
7280
  }
7249
7281
  return e3.apply(a4, u3);
7250
7282
  } catch (e4) {
7251
- throw pp && console.log(`Retry without ${b} for ${m4} also failed:`, e4), e4;
7283
+ throw fp && console.log(`Retry without ${b} for ${m4} also failed:`, e4), e4;
7252
7284
  }
7253
7285
  })(e2, a3, u2, x3), B2 = true);
7254
7286
  const $2 = Date.now(), z2 = U3.status, j2 = U3.ok, V2 = j2 ? "" : `Request Error: ${U3.statusText}`;
@@ -7257,7 +7289,7 @@ function setupFetchInterceptor(e = []) {
7257
7289
  const e3 = U3.clone();
7258
7290
  q2 = await e3.text();
7259
7291
  } catch (e3) {
7260
- pp && console.warn("[Sailfish] Failed to capture response data:", e3), q2 = null;
7292
+ fp && console.warn("[Sailfish] Failed to capture response data:", e3), q2 = null;
7261
7293
  }
7262
7294
  let H2 = null;
7263
7295
  try {
@@ -7265,12 +7297,12 @@ function setupFetchInterceptor(e = []) {
7265
7297
  H2[a4] = e3;
7266
7298
  });
7267
7299
  } catch (e3) {
7268
- pp && console.warn("[Sailfish] Failed to capture response headers:", e3), H2 = null;
7300
+ fp && console.warn("[Sailfish] Failed to capture response headers:", e3), H2 = null;
7269
7301
  }
7270
7302
  return sendEvent({ type: 27, timestamp: $2, sessionId: C3, data: { request_id: I3, session_id: C3, timestamp_start: E2, timestamp_end: $2, response_code: z2, success: j2, error: V2, method: O2, url: x3, retry_without_trace_id: B2, request_headers: F2, request_body: D2, response_headers: H2, response_body: q2 }, ..._2 }), U3;
7271
7303
  } catch (m4) {
7272
7304
  const w4 = Date.now(), b2 = false, U3 = ((_b = m4.response) == null ? void 0 : _b.status) || 500, B2 = m4.message || "Fetch request failed";
7273
- if (m4 instanceof TypeError && ((_c2 = m4 == null ? void 0 : m4.message) == null ? void 0 : _c2.toLowerCase().includes(fp.toLowerCase()))) return e2.apply(a3, u2);
7305
+ if (m4 instanceof TypeError && ((_c2 = m4 == null ? void 0 : m4.message) == null ? void 0 : _c2.toLowerCase().includes(yp.toLowerCase()))) return e2.apply(a3, u2);
7274
7306
  throw sendEvent({ type: 27, timestamp: w4, sessionId: C3, data: { request_id: I3, session_id: C3, timestamp_start: E2, timestamp_end: w4, response_code: U3, success: b2, error: B2, method: O2, url: x3, request_headers: F2, request_body: D2, response_body: null }, ..._2 }), m4;
7275
7307
  }
7276
7308
  })(a2, m2, w2, x2, I2, u, C2);
@@ -7304,7 +7336,7 @@ async function startRecording({ apiKey: e, backendApi: a = "https://api-service.
7304
7336
  })(), F2 = getOrSetSessionId(), U2 = window.__sailfish_recorder || (window.__sailfish_recorder = {});
7305
7337
  if (U2.sessionId = F2, U2.apiKey = e, U2.backendApi = a, U2.initialized && U2.sessionId === F2 && U2.ws && 1 === U2.ws.readyState) trackDomainChangesOnce();
7306
7338
  else {
7307
- U2.domEventsInit || (initializeDomContentEvents(F2), U2.domEventsInit = true), U2.consoleInit || (initializeConsolePlugin(yp, F2), U2.consoleInit = true), U2.errorInit || (!(function initializeErrorInterceptor() {
7339
+ U2.domEventsInit || (initializeDomContentEvents(F2), U2.domEventsInit = true), U2.consoleInit || (initializeConsolePlugin(bp, F2), U2.consoleInit = true), U2.errorInit || (!(function initializeErrorInterceptor() {
7308
7340
  window.addEventListener("error", (e2) => {
7309
7341
  captureError(e2.error || e2.message);
7310
7342
  }), window.addEventListener("unhandledrejection", (e2) => {
@@ -7312,7 +7344,7 @@ async function startRecording({ apiKey: e, backendApi: a = "https://api-service.
7312
7344
  });
7313
7345
  })(), U2.errorInit = true), (function storeCredentialsAndConnection({ apiKey: e2, backendApi: a2 }) {
7314
7346
  X && (sessionStorage.setItem("sailfishApiKey", e2), sessionStorage.setItem("sailfishBackendApi", a2));
7315
- })({ apiKey: e, backendApi: a }), trackDomainChangesOnce(), sessionStorage.setItem("sailfishApiKey", e), sessionStorage.setItem("sailfishBackendApi", a), U2.sentDoNotPropagateOnce || (sendDomainsToNotPropagateHeaderTo(e, [...m2, ...dp], a).catch((e2) => console.error("Failed to send domains to not propagate header to:", e2)), U2.sentDoNotPropagateOnce = true), U2.xhrPatched || (!(function setupXMLHttpRequestInterceptor(e2 = []) {
7347
+ })({ apiKey: e, backendApi: a }), trackDomainChangesOnce(), sessionStorage.setItem("sailfishApiKey", e), sessionStorage.setItem("sailfishBackendApi", a), U2.sentDoNotPropagateOnce || (sendDomainsToNotPropagateHeaderTo(e, [...m2, ...mp], a).catch((e2) => console.error("Failed to send domains to not propagate header to:", e2)), U2.sentDoNotPropagateOnce = true), U2.xhrPatched || (!(function setupXMLHttpRequestInterceptor(e2 = []) {
7316
7348
  const a2 = XMLHttpRequest.prototype.open, u2 = XMLHttpRequest.prototype.send, m3 = XMLHttpRequest.prototype.setRequestHeader, w3 = getOrSetSessionId();
7317
7349
  XMLHttpRequest.prototype.setRequestHeader = function(e3, a3) {
7318
7350
  return this._capturedRequestHeaders || (this._capturedRequestHeaders = {}), this._capturedRequestHeaders[e3] = a3, m3.call(this, e3, a3);
@@ -7330,9 +7362,9 @@ async function startRecording({ apiKey: e, backendApi: a = "https://api-service.
7330
7362
  }
7331
7363
  const _3 = getFuncSpanHeader();
7332
7364
  if (_3) try {
7333
- this.setRequestHeader(_3.name, _3.value), pp && console.log("[Sailfish] Added funcspan header to XMLHttpRequest:", { url: m4, header: _3.name });
7365
+ this.setRequestHeader(_3.name, _3.value), fp && console.log("[Sailfish] Added funcspan header to XMLHttpRequest:", { url: m4, header: _3.name });
7334
7366
  } catch (e3) {
7335
- pp && console.warn(`[Sailfish] Could not set funcspan header for ${m4}`, e3);
7367
+ fp && console.warn(`[Sailfish] Could not set funcspan header for ${m4}`, e3);
7336
7368
  }
7337
7369
  const O3 = Date.now();
7338
7370
  let E3 = false;
@@ -7360,7 +7392,7 @@ async function startRecording({ apiKey: e, backendApi: a = "https://api-service.
7360
7392
  2 === a5.length && (u3[a5[0]] = a5[1]);
7361
7393
  });
7362
7394
  } catch (e4) {
7363
- pp && console.warn("[Sailfish] Failed to capture XHR response headers:", e4), u3 = null;
7395
+ fp && console.warn("[Sailfish] Failed to capture XHR response headers:", e4), u3 = null;
7364
7396
  }
7365
7397
  if (e3 >= 200 && e3 < 300) emitFinished(true, e3, "", a4, u3);
7366
7398
  else {
@@ -7376,7 +7408,7 @@ async function startRecording({ apiKey: e, backendApi: a = "https://api-service.
7376
7408
  sendMessage({ type: "deviceInfo", data: { deviceInfo: { language: navigator.language, userAgent: navigator.userAgent } } });
7377
7409
  })();
7378
7410
  try {
7379
- const u2 = await fetchCaptureSettings(e, a), m3 = ((_a2 = u2.data) == null ? void 0 : _a2.captureSettingsFromApiKey) || gp;
7411
+ const u2 = await fetchCaptureSettings(e, a), m3 = ((_a2 = u2.data) == null ? void 0 : _a2.captureSettingsFromApiKey) || Sp;
7380
7412
  if (U2.ws && 1 === U2.ws.readyState) return;
7381
7413
  const b2 = withAppUrlMetadata(I2), x3 = await startRecordingSession(e, F2, a, O2, E2, D2, _2, "JS/TS", b2);
7382
7414
  if ((_b = x3.data) == null ? void 0 : _b.startRecordingSession) {
@@ -7412,7 +7444,7 @@ H && (!(function sendUserDeviceUuid() {
7412
7444
  const e = document.visibilityState, a = Date.now();
7413
7445
  "visible" === e && getOrSetSessionId();
7414
7446
  try {
7415
- sendMessage({ type: "visibilityChange", data: { state: e, url: window.location.href.split("?")[0], timestamp: a, ...getUrlAndStoredUuids() } }), pp && console.log(`[Sailfish] Tab became ${e}, sent visibility change event`);
7447
+ sendMessage({ type: "visibilityChange", data: { state: e, url: window.location.href.split("?")[0], timestamp: a, ...getUrlAndStoredUuids() } }), fp && console.log(`[Sailfish] Tab became ${e}, sent visibility change event`);
7416
7448
  } catch (e2) {
7417
7449
  console.warn("[Sailfish] Failed to send visibility change event:", e2);
7418
7450
  }
@@ -7430,9 +7462,9 @@ const initRecorder = async (e) => {
7430
7462
  })), a.initPromise);
7431
7463
  };
7432
7464
  export {
7433
- gp as DEFAULT_CAPTURE_SETTINGS,
7434
- yp as DEFAULT_CONSOLE_RECORDING_SETTINGS,
7435
- mp as STORAGE_VERSION,
7465
+ Sp as DEFAULT_CAPTURE_SETTINGS,
7466
+ bp as DEFAULT_CONSOLE_RECORDING_SETTINGS,
7467
+ wp as STORAGE_VERSION,
7436
7468
  addOrUpdateMetadata,
7437
7469
  buildBatches,
7438
7470
  createTriageFromRecorder,