@sailfish-ai/recorder 1.12.7 → 1.12.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.
Files changed (62) hide show
  1. package/dist/chunks/{canvasManager-Ce7vazTt.js → canvasManager-CLCtW5BZ.js} +1 -1
  2. package/dist/chunks/canvasManager-CLCtW5BZ.js.br +0 -0
  3. package/dist/chunks/canvasManager-CLCtW5BZ.js.gz +0 -0
  4. package/dist/chunks/{canvasManager-B9uQ-PFS.js → canvasManager-Dtum5H28.js} +1 -1
  5. package/dist/chunks/canvasManager-Dtum5H28.js.br +0 -0
  6. package/dist/chunks/canvasManager-Dtum5H28.js.gz +0 -0
  7. package/dist/chunks/{chunkSerializer-C1knjCQ5.js → chunkSerializer-9QANwItv.js} +1 -1
  8. package/dist/chunks/chunkSerializer-9QANwItv.js.br +0 -0
  9. package/dist/chunks/chunkSerializer-9QANwItv.js.gz +0 -0
  10. package/dist/chunks/{chunkSerializer-B-z7p0r-.js → chunkSerializer-Ds0Flu_e.js} +1 -1
  11. package/dist/chunks/chunkSerializer-Ds0Flu_e.js.br +0 -0
  12. package/dist/chunks/chunkSerializer-Ds0Flu_e.js.gz +0 -0
  13. package/dist/chunks/hoverDetection-Bl-yKKI3.js +137 -0
  14. package/dist/chunks/hoverDetection-Bl-yKKI3.js.br +0 -0
  15. package/dist/chunks/hoverDetection-Bl-yKKI3.js.gz +0 -0
  16. package/dist/chunks/hoverDetection-CYsyBQjj.js +139 -0
  17. package/dist/chunks/hoverDetection-CYsyBQjj.js.br +0 -0
  18. package/dist/chunks/hoverDetection-CYsyBQjj.js.gz +0 -0
  19. package/dist/chunks/{index-BMHQ-0NY.js → index-BRybWPUS.js} +142 -128
  20. package/dist/chunks/index-BRybWPUS.js.br +0 -0
  21. package/dist/chunks/index-BRybWPUS.js.gz +0 -0
  22. package/dist/chunks/{index-qgM1hFXO.js → index-Cp1vLB5Q.js} +120 -107
  23. package/dist/chunks/index-Cp1vLB5Q.js.br +0 -0
  24. package/dist/chunks/index-Cp1vLB5Q.js.gz +0 -0
  25. package/dist/hoverDetection.js +371 -0
  26. package/dist/hoverDetection.js.br +0 -0
  27. package/dist/hoverDetection.js.gz +0 -0
  28. package/dist/hoverDetection.test.js +187 -0
  29. package/dist/hoverDetection.test.js.br +0 -0
  30. package/dist/hoverDetection.test.js.gz +0 -0
  31. package/dist/index.js +23 -1
  32. package/dist/index.js.br +0 -0
  33. package/dist/index.js.gz +0 -0
  34. package/dist/recorder.cjs +2 -2
  35. package/dist/recorder.cjs.br +0 -0
  36. package/dist/recorder.cjs.gz +0 -0
  37. package/dist/recorder.js +13 -12
  38. package/dist/recorder.js.br +7 -2
  39. package/dist/recorder.js.gz +0 -0
  40. package/dist/recorder.umd.cjs +597 -452
  41. package/dist/recorder.umd.cjs.br +0 -0
  42. package/dist/recorder.umd.cjs.gz +0 -0
  43. package/dist/recording.js +27 -0
  44. package/dist/recording.js.br +0 -0
  45. package/dist/recording.js.gz +0 -0
  46. package/dist/types/hoverDetection.d.ts +37 -0
  47. package/dist/types/hoverDetection.test.d.ts +1 -0
  48. package/dist/types/index.d.ts +1 -0
  49. package/dist/types/types.d.ts +6 -0
  50. package/package.json +1 -1
  51. package/dist/chunks/canvasManager-B9uQ-PFS.js.br +0 -0
  52. package/dist/chunks/canvasManager-B9uQ-PFS.js.gz +0 -0
  53. package/dist/chunks/canvasManager-Ce7vazTt.js.br +0 -0
  54. package/dist/chunks/canvasManager-Ce7vazTt.js.gz +0 -0
  55. package/dist/chunks/chunkSerializer-B-z7p0r-.js.br +0 -0
  56. package/dist/chunks/chunkSerializer-B-z7p0r-.js.gz +0 -0
  57. package/dist/chunks/chunkSerializer-C1knjCQ5.js.br +0 -0
  58. package/dist/chunks/chunkSerializer-C1knjCQ5.js.gz +0 -0
  59. package/dist/chunks/index-BMHQ-0NY.js.br +0 -0
  60. package/dist/chunks/index-BMHQ-0NY.js.gz +0 -0
  61. package/dist/chunks/index-qgM1hFXO.js.br +0 -0
  62. package/dist/chunks/index-qgM1hFXO.js.gz +0 -0
@@ -364,27 +364,27 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
364
364
  for (const C2 of e2) w2.delete(C2);
365
365
  });
366
366
  }
367
- const J = "canvasFrames", Q = 67108864;
368
- let Z = null;
367
+ const Z = "canvasFrames", J = 67108864;
368
+ let Q = null;
369
369
  function openDb$1() {
370
370
  return (function hasIndexedDB$1() {
371
371
  return "undefined" != typeof globalThis && !!globalThis.indexedDB;
372
- })() ? Z || (Z = new Promise((e2) => {
372
+ })() ? Q || (Q = new Promise((e2) => {
373
373
  try {
374
374
  const w2 = globalThis.indexedDB.open("leapsCanvasFrameDB", 1);
375
375
  w2.onupgradeneeded = () => {
376
376
  const e3 = w2.result;
377
- e3.objectStoreNames.contains(J) || e3.createObjectStore(J, { keyPath: "id", autoIncrement: true });
377
+ e3.objectStoreNames.contains(Z) || e3.createObjectStore(Z, { keyPath: "id", autoIncrement: true });
378
378
  }, w2.onsuccess = () => e2(w2.result), w2.onerror = () => e2(null), w2.onblocked = () => e2(null);
379
379
  } catch {
380
380
  e2(null);
381
381
  }
382
- }), Z) : Promise.resolve(null);
382
+ }), Q) : Promise.resolve(null);
383
383
  }
384
384
  function withStore$1(e2, w2) {
385
385
  return openDb$1().then((C2) => C2 ? new Promise((x2) => {
386
386
  try {
387
- const M2 = C2.transaction(J, e2), I2 = M2.objectStore(J);
387
+ const M2 = C2.transaction(Z, e2), I2 = M2.objectStore(Z);
388
388
  Promise.resolve(w2(I2)).then((e3) => {
389
389
  M2.oncomplete = () => x2(e3), M2.onerror = () => x2(null);
390
390
  }).catch(() => x2(null));
@@ -405,7 +405,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
405
405
  const e4 = I2.value, w4 = "number" == typeof (e4 == null ? void 0 : e4.bytes) ? e4.bytes : 0;
406
406
  return C2 += w4, "number" == typeof (e4 == null ? void 0 : e4.id) && x2.push({ id: e4.id, bytes: w4 }), void I2.continue();
407
407
  }
408
- let _2 = C2 - Q;
408
+ let _2 = C2 - J;
409
409
  if (_2 <= 0) return w3();
410
410
  for (const w4 of x2) {
411
411
  if (_2 <= 0) break;
@@ -694,10 +694,10 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
694
694
  function clearStaleFuncSpanState() {
695
695
  Ge = false, qe = null, Ke = false, clearGlobalFuncSpanState(), pe && console.log("[Sailfish] Cleared stale function span tracking state (backend validation failed)");
696
696
  }
697
- let Je = false;
697
+ let Ze = false;
698
698
  function restoreFuncSpanState() {
699
- if (Je) return;
700
- Je = true;
699
+ if (Ze) return;
700
+ Ze = true;
701
701
  const e2 = (function loadGlobalFuncSpanState() {
702
702
  try {
703
703
  if ("undefined" == typeof localStorage) return null;
@@ -827,7 +827,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
827
827
  const w3 = new URL(e3);
828
828
  return `${w3.hostname}${w3.port ? `:${w3.port}` : ""}`;
829
829
  })(e2);
830
- let _2 = `${"https:" === new URL(e2).protocol ? "wss" : "ws"}://${I2}/ws/notify/?apiKey=${w2}&sessionId=${C2}&sender=JS%2FTS&version=1.12.7`;
830
+ let _2 = `${"https:" === new URL(e2).protocol ? "wss" : "ws"}://${I2}/ws/notify/?apiKey=${w2}&sessionId=${C2}&sender=JS%2FTS&version=1.12.9`;
831
831
  if (x2 && (_2 += `&envValue=${encodeURIComponent(x2)}`), we = null, be = null, Se = 0, ge = M2 ? (function tryCreateWsWorker() {
832
832
  if ("undefined" == typeof Worker) return null;
833
833
  try {
@@ -884,7 +884,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
884
884
  }
885
885
  return { name: "X-Sf3-FunctionSpanCaptureOverride", value: "1-1-10-10-1-1.0-1-0-0" };
886
886
  }
887
- const Ze = Object.freeze(Object.defineProperty({ __proto__: null, clearStaleFuncSpanState, disableFunctionSpanTracking, enableFunctionSpanTracking, ensureHrefCache, flushBufferedEvents, getBinaryDropCount, getBufferedAmount, getCachedHref, getCachedHrefNoQuery, getFuncSpanHeader, initializeFunctionSpanTrackingFromApi, initializeWebSocket, isFunctionSpanTrackingEnabled, isTransportSaturated, onNavigationChange, requestTimeSync, restoreFuncSpanState, sendEvent, sendMessage, wsSendBinary }, Symbol.toStringTag, { value: "Module" }));
887
+ const Je = Object.freeze(Object.defineProperty({ __proto__: null, clearStaleFuncSpanState, disableFunctionSpanTracking, enableFunctionSpanTracking, ensureHrefCache, flushBufferedEvents, getBinaryDropCount, getBufferedAmount, getCachedHref, getCachedHrefNoQuery, getFuncSpanHeader, initializeFunctionSpanTrackingFromApi, initializeWebSocket, isFunctionSpanTrackingEnabled, isTransportSaturated, onNavigationChange, requestTimeSync, restoreFuncSpanState, sendEvent, sendMessage, wsSendBinary }, Symbol.toStringTag, { value: "Module" }));
888
888
  let et = null, tt = null;
889
889
  function getIdentifiedUser() {
890
890
  return et;
@@ -1012,8 +1012,8 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
1012
1012
  function fetchEngineeringTicketPlatformIntegrations(e2, w2) {
1013
1013
  return sendGraphQLRequest("GetEngineeringTicketPlatformIntegrationsFromApiKey", "query GetEngineeringTicketPlatformIntegrationsFromApiKey($apiKey: String!) {\n getEngineeringTicketPlatformIntegrationsFromApiKey(apiKey: $apiKey) {\n pushAutoIdentifiedIssues\n provider\n clientId\n defaultPriority\n defaultProject\n defaultTeam\n primaryCloudId\n installed\n projects\n teams\n workflowStates\n webhookState\n clouds\n labels\n sprints\n users\n fieldConfigurations\n invalidFields\n jiraReporterAccountId\n }\n }", { apiKey: e2, backendApi: w2 });
1014
1014
  }
1015
- function createTriageAndIssueFromRecorder(e2, w2, C2, x2, M2, I2, _2, U2, j2, W2, z2, H2, K2, X2, Y2, J2) {
1016
- return sendGraphQLRequest("CreateTriageAndIssueFromRecorder", "mutation CreateTriageAndIssueFromRecorder(\n $apiKey: String!,\n $recordingSessionId: String!,\n $timestampStart: String!,\n $timestampEnd: String!,\n $description: String,\n $issueName: String,\n $issueDescription: String,\n $createEngineeringTicket: Boolean,\n $teamId: String,\n $projectId: String,\n $priority: Int,\n $labels: [String!],\n $issueType: String,\n $customFields: JSON,\n $triageSource: TriageSourceEnum\n ) {\n createTriageAndIssueFromRecorder(\n apiKey: $apiKey,\n recordingSessionId: $recordingSessionId,\n timestampStart: $timestampStart,\n timestampEnd: $timestampEnd,\n description: $description,\n issueName: $issueName,\n issueDescription: $issueDescription,\n createEngineeringTicket: $createEngineeringTicket,\n teamId: $teamId,\n projectId: $projectId,\n priority: $priority,\n labels: $labels,\n issueType: $issueType,\n customFields: $customFields,\n triageSource: $triageSource\n ) {\n id\n title\n }\n }\n ", { apiKey: e2, recordingSessionId: C2, timestampStart: x2, timestampEnd: M2, description: I2, issueName: _2, issueDescription: U2, createEngineeringTicket: j2, teamId: W2, projectId: z2, priority: H2, labels: K2, issueType: X2, customFields: Y2, triageSource: J2, backendApi: w2 });
1015
+ function createTriageAndIssueFromRecorder(e2, w2, C2, x2, M2, I2, _2, U2, j2, W2, z2, H2, K2, X2, Y2, Z2) {
1016
+ return sendGraphQLRequest("CreateTriageAndIssueFromRecorder", "mutation CreateTriageAndIssueFromRecorder(\n $apiKey: String!,\n $recordingSessionId: String!,\n $timestampStart: String!,\n $timestampEnd: String!,\n $description: String,\n $issueName: String,\n $issueDescription: String,\n $createEngineeringTicket: Boolean,\n $teamId: String,\n $projectId: String,\n $priority: Int,\n $labels: [String!],\n $issueType: String,\n $customFields: JSON,\n $triageSource: TriageSourceEnum\n ) {\n createTriageAndIssueFromRecorder(\n apiKey: $apiKey,\n recordingSessionId: $recordingSessionId,\n timestampStart: $timestampStart,\n timestampEnd: $timestampEnd,\n description: $description,\n issueName: $issueName,\n issueDescription: $issueDescription,\n createEngineeringTicket: $createEngineeringTicket,\n teamId: $teamId,\n projectId: $projectId,\n priority: $priority,\n labels: $labels,\n issueType: $issueType,\n customFields: $customFields,\n triageSource: $triageSource\n ) {\n id\n title\n }\n }\n ", { apiKey: e2, recordingSessionId: C2, timestampStart: x2, timestampEnd: M2, description: I2, issueName: _2, issueDescription: U2, createEngineeringTicket: j2, teamId: W2, projectId: z2, priority: H2, labels: K2, issueType: X2, customFields: Y2, triageSource: Z2, backendApi: w2 });
1017
1017
  }
1018
1018
  var dt = ((e2) => (e2[e2.DomContentLoaded = 0] = "DomContentLoaded", e2[e2.Load = 1] = "Load", e2[e2.FullSnapshot = 2] = "FullSnapshot", e2[e2.IncrementalSnapshot = 3] = "IncrementalSnapshot", e2[e2.Meta = 4] = "Meta", e2[e2.Custom = 5] = "Custom", e2[e2.Plugin = 6] = "Plugin", e2[e2.Device = 24] = "Device", e2[e2.SailfishCustom = 25] = "SailfishCustom", e2))(dt || {});
1019
1019
  const pt = ["/node_modules/", "/@sailfish-ai/", "/@sailfish-rrweb/", "/dist/", "/webpack/", "/vite/", "/__vite", "/react-dom/", "/react/", "/scheduler/", "/<", "/chrome-extension://", "/extensions/"];
@@ -1100,7 +1100,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
1100
1100
  return false;
1101
1101
  }
1102
1102
  }
1103
- const ht = /\d/, ft = /\b\d{3}-\d{2}-\d{4}\b/, wt = /\b(?:\d[ -]*?){13,16}\b/g, vt = /\b\d{3}-\d{2}-\d{4}\b/g, bt = /\b\d{1,2}[/\-.]\d{1,2}[/\-.]\d{2,4}\b/g;
1103
+ const ht = /\d/, ft = /\b\d{3}-\d{2}-\d{4}\b/, vt = /\b(?:\d[ -]*?){13,16}\b/g, wt = /\b\d{3}-\d{2}-\d{4}\b/g, bt = /\b\d{1,2}[/\-.]\d{1,2}[/\-.]\d{2,4}\b/g;
1104
1104
  function passesLuhn(e2) {
1105
1105
  let w2 = "";
1106
1106
  for (let C3 = 0; C3 < e2.length; C3++) {
@@ -1142,9 +1142,9 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
1142
1142
  return "hidden" === w2.type ? "" : w2.hasAttribute("data-cc") || ((_a2 = w2.getAttribute("autocomplete")) == null ? void 0 : _a2.startsWith("cc-")) || (function looksLikeCreditCard(e3) {
1143
1143
  if ("string" != typeof e3) return false;
1144
1144
  let w3;
1145
- for (wt.lastIndex = 0; null !== (w3 = wt.exec(e3)); ) {
1145
+ for (vt.lastIndex = 0; null !== (w3 = vt.exec(e3)); ) {
1146
1146
  if (passesLuhn(w3[0])) return true;
1147
- w3.index === wt.lastIndex && wt.lastIndex++;
1147
+ w3.index === vt.lastIndex && vt.lastIndex++;
1148
1148
  }
1149
1149
  return false;
1150
1150
  })(e2) ? redactCreditCard(e2) : w2.hasAttribute("data-ssn") || (function looksLikeSsn(e3) {
@@ -1259,8 +1259,14 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
1259
1259
  } else w4({ emit(e3) {
1260
1260
  emitWithContext(e3);
1261
1261
  }, ...e2, maskInputOptions: W2, maskInputFn: z2, maskTextFn: H2, maskInputSelector: _3, maskTextSelector: I3, blockSelector: M3, maskTextClass: e2.maskTextClass ?? Ct, recordCanvas: false });
1262
+ if (false !== e2.recordHover) try {
1263
+ const { installHoverDetection: C4 } = await Promise.resolve().then(() => Dh), num = (e3, w5) => "number" == typeof e3 ? e3 : w5, x3 = C4(w4, { dwellMs: num(e2.hoverDwellMs, 500), strictAffordance: false !== e2.hoverStrictAffordance, cooldownMs: num(e2.hoverCooldownMs, 3e3), maxPerSession: num(e2.hoverMaxPerSession, 300), maxPerSecond: num(e2.hoverMaxPerSecond, 1) });
1264
+ window.addEventListener("pagehide", () => x3(), { once: true });
1265
+ } catch (e3) {
1266
+ console.warn("[Sailfish] Failed to enable hover detection:", e3);
1267
+ }
1262
1268
  if (e2.recordCanvas) try {
1263
- const { startCanvasRecording: C4, stopCanvasRecording: M4, flushAllCanvas: I4, isCanvasRecordingActive: _4 } = await Promise.resolve().then(() => vf), U3 = { settings: { maskCanvasClass: e2.maskCanvasClass, maskTextClass: e2.maskTextClass, maskTextSelector: e2.maskTextSelector, blockSelector: e2.blockSelector, unmaskSelector: e2.unmaskSelector, maskCanvasText: e2.maskCanvasText ?? void 0, canvasRedactStyle: e2.canvasRedactStyle, recordSsn: e2.recordSsn, recordCreditCardInfo: e2.recordCreditCardInfo, recordDob: e2.recordDob, recordRealName: e2.recordRealName, recordPassword: e2.recordPassword }, mirror: w4.mirror, addSailfishEvent: (e3) => {
1269
+ const { startCanvasRecording: C4, stopCanvasRecording: M4, flushAllCanvas: I4, isCanvasRecordingActive: _4 } = await Promise.resolve().then(() => xf), U3 = { settings: { maskCanvasClass: e2.maskCanvasClass, maskTextClass: e2.maskTextClass, maskTextSelector: e2.maskTextSelector, blockSelector: e2.blockSelector, unmaskSelector: e2.unmaskSelector, maskCanvasText: e2.maskCanvasText ?? void 0, canvasRedactStyle: e2.canvasRedactStyle, recordSsn: e2.recordSsn, recordCreditCardInfo: e2.recordCreditCardInfo, recordDob: e2.recordDob, recordRealName: e2.recordRealName, recordPassword: e2.recordPassword }, mirror: w4.mirror, addSailfishEvent: (e3) => {
1264
1270
  kt == null ? void 0 : kt.addSailfishEvent(dt.SailfishCustom, { ...e3, tag: "sf-canvas" });
1265
1271
  }, sendBinary: wsSendBinary, getContextIds: () => ({ session_id: x2, page_visit_uuid: getUrlAndStoredUuids().page_visit_uuid }), isTransportSaturated };
1266
1272
  C4(U3);
@@ -1453,7 +1459,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
1453
1459
  if ("string" != typeof e3 || 0 === e3.length) return e3;
1454
1460
  if (!ht.test(e3)) return e3;
1455
1461
  let C3 = e3;
1456
- return false === w3.recordCreditCardInfo && (wt.lastIndex = 0, C3 = C3.replace(wt, (e4) => passesLuhn(e4) ? redactCreditCard(e4) : e4)), false === w3.recordSsn && (vt.lastIndex = 0, C3 = C3.replace(vt, (e4) => redactSsn(e4))), false === w3.recordDob && (bt.lastIndex = 0, C3 = C3.replace(bt, (e4) => redactDob(e4))), C3;
1462
+ return false === w3.recordCreditCardInfo && (vt.lastIndex = 0, C3 = C3.replace(vt, (e4) => passesLuhn(e4) ? redactCreditCard(e4) : e4)), false === w3.recordSsn && (wt.lastIndex = 0, C3 = C3.replace(wt, (e4) => redactSsn(e4))), false === w3.recordDob && (bt.lastIndex = 0, C3 = C3.replace(bt, (e4) => redactDob(e4))), C3;
1457
1463
  })(e2, C2) : e2;
1458
1464
  }
1459
1465
  const Vt = { text: "asterisks", shape: "color" }, qt = "#1f2433";
@@ -2368,7 +2374,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
2368
2374
  }
2369
2375
  const Xn = { 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 } }, Yn = { shortcuts: { ...Xn }, resolveSessionId: null, apiKey: null, backendApi: null, triageBaseUrl: "https://app.sailfishqa.com", deactivateIsolation: () => {
2370
2376
  }, integrationData: null, showEngTicketFieldsDefault: false };
2371
- let Jn = null, Qn = false;
2377
+ let Zn = null, Jn = false;
2372
2378
  function setupCustomMultiSelectListeners(e2, w2) {
2373
2379
  const C2 = document.getElementById(`${e2}-container`), x2 = document.getElementById(`${e2}-dropdown`);
2374
2380
  if (!C2 || !x2) return;
@@ -2617,10 +2623,10 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
2617
2623
  return Yn.resolveSessionId();
2618
2624
  }
2619
2625
  function openReportIssueModal(e2) {
2620
- Wn ? stopRecording() : (Qn = (e2 == null ? void 0 : e2.showEngTicketFields) ?? Yn.showEngTicketFieldsDefault, injectModalHTML(), Jn && document.body.appendChild(Jn));
2626
+ Wn ? stopRecording() : (Jn = (e2 == null ? void 0 : e2.showEngTicketFields) ?? Yn.showEngTicketFieldsDefault, injectModalHTML(), Zn && document.body.appendChild(Zn));
2621
2627
  }
2622
2628
  function closeModal() {
2623
- Yn.deactivateIsolation(), document.activeElement instanceof HTMLElement && document.activeElement.blur(), (Jn == null ? void 0 : Jn.parentNode) && Jn.parentNode.removeChild(Jn), Jn = null, Wn || (function resetState() {
2629
+ Yn.deactivateIsolation(), document.activeElement instanceof HTMLElement && document.activeElement.blur(), (Zn == null ? void 0 : Zn.parentNode) && Zn.parentNode.removeChild(Zn), Zn = null, Wn || (function resetState() {
2624
2630
  Dn = getInitialState(), Fn = null, Bn = null, zn = false;
2625
2631
  })(), Un && (clearInterval(Un), setTimerInterval(null));
2626
2632
  }
@@ -2681,9 +2687,9 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
2681
2687
  };
2682
2688
  }
2683
2689
  function injectModalHTML(e2 = "lookback") {
2684
- Jn && (Jn.remove(), Jn = null), Jn = document.createElement("div"), Jn.id = "sf-report-issue-modal";
2690
+ Zn && (Zn.remove(), Zn = null), Zn = document.createElement("div"), Zn.id = "sf-report-issue-modal";
2685
2691
  const w2 = "startnow" === e2;
2686
- Jn.innerHTML = `
2692
+ Zn.innerHTML = `
2687
2693
  <div style="position:fixed; inset:0; background:rgba(0,0,0,0.4); z-index:9998;"></div>
2688
2694
  <div style="position:fixed; top:50%; left:50%; transform:translate(-50%, -50%);
2689
2695
  background:#fff; border-radius:12px;
@@ -2809,7 +2815,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
2809
2815
  Create an Issue
2810
2816
  </label>
2811
2817
 
2812
- <label id="sf-create-eng-ticket-label" style="display:${Yn.integrationData && Qn ? "flex" : "none"}; align-items:center; gap:8px; font-size:14px; font-weight:500; cursor:pointer;">
2818
+ <label id="sf-create-eng-ticket-label" style="display:${Yn.integrationData && Jn ? "flex" : "none"}; align-items:center; gap:8px; font-size:14px; font-weight:500; cursor:pointer;">
2813
2819
  <input type="checkbox" id="sf-create-eng-ticket-checkbox" ${Dn.createEngTicket ? "checked" : ""}
2814
2820
  style="width:16px; height:16px; accent-color:#295DBF; cursor:pointer;">
2815
2821
  Create an Eng Ticket
@@ -2874,8 +2880,8 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
2874
2880
  </div>
2875
2881
  </div>
2876
2882
  </div>
2877
- `, Dn.mode = e2, document.body.appendChild(Jn), (function bindListeners() {
2878
- const e3 = Jn == null ? void 0 : Jn.querySelectorAll(".sf-issue-tab"), w3 = document.getElementById("sf-start-recording-btn"), C2 = document.getElementById("sf-modal-close-btn"), x2 = document.getElementById("sf-issue-submit-btn"), M2 = document.getElementById("sf-lookback-minutes");
2883
+ `, Dn.mode = e2, document.body.appendChild(Zn), (function bindListeners() {
2884
+ const e3 = Zn == null ? void 0 : Zn.querySelectorAll(".sf-issue-tab"), w3 = document.getElementById("sf-start-recording-btn"), C2 = document.getElementById("sf-modal-close-btn"), x2 = document.getElementById("sf-issue-submit-btn"), M2 = document.getElementById("sf-lookback-minutes");
2879
2885
  e3 == null ? void 0 : e3.forEach((e4) => {
2880
2886
  e4.addEventListener("click", (e5) => {
2881
2887
  const w4 = e5.currentTarget.dataset.mode;
@@ -2885,7 +2891,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
2885
2891
  M2 && M2.addEventListener("change", () => {
2886
2892
  "lookback" === Dn.mode && (x2.disabled = false, x2.style.opacity = "1", x2.style.cursor = "pointer");
2887
2893
  });
2888
- const I2 = Jn == null ? void 0 : Jn.querySelectorAll(".sf-collapsible-header");
2894
+ const I2 = Zn == null ? void 0 : Zn.querySelectorAll(".sf-collapsible-header");
2889
2895
  I2 == null ? void 0 : I2.forEach((e4) => {
2890
2896
  e4.addEventListener("click", (e5) => {
2891
2897
  const w4 = e5.currentTarget, C3 = w4.dataset.target, x3 = document.getElementById(C3), M3 = w4.querySelector(".sf-chevron");
@@ -2940,7 +2946,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
2940
2946
  Fn = e6;
2941
2947
  })(Date.now()), setIsRecording(true);
2942
2948
  try {
2943
- const { enableFunctionSpanTracking: e6 } = await Promise.resolve().then(() => Ze);
2949
+ const { enableFunctionSpanTracking: e6 } = await Promise.resolve().then(() => Je);
2944
2950
  e6();
2945
2951
  } catch (e6) {
2946
2952
  console.error("[Report Issue] Failed to enable function span tracking:", e6);
@@ -2976,7 +2982,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
2976
2982
  }, 1e3);
2977
2983
  })();
2978
2984
  });
2979
- Jn == null ? void 0 : Jn.addEventListener("click", (e4) => {
2985
+ Zn == null ? void 0 : Zn.addEventListener("click", (e4) => {
2980
2986
  var _a2;
2981
2987
  if (e4.target.closest("#sf-issue-submit-btn")) {
2982
2988
  const e5 = ((_a2 = document.getElementById("sf-issue-description")) == null ? void 0 : _a2.value) || "", w4 = Dn.mode;
@@ -2988,22 +2994,22 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
2988
2994
  x3 = Date.now(), C3 = x3 - e6;
2989
2995
  }
2990
2996
  if (Dn.createIssue) {
2991
- const M3 = document.getElementById("sf-issue-name"), I3 = document.getElementById("sf-eng-ticket-team"), _3 = document.getElementById("sf-eng-ticket-project"), U3 = document.getElementById("sf-eng-ticket-priority"), j3 = document.getElementById("sf-eng-ticket-type"), W3 = (M3 == null ? void 0 : M3.value) || "", z3 = e5, H2 = (I3 == null ? void 0 : I3.value) || "", K2 = (_3 == null ? void 0 : _3.value) || "", X2 = U3 ? Number(U3.value) : 0, Y2 = Dn.engTicketLabels, J2 = (j3 == null ? void 0 : j3.value) || "", Q2 = { ...Dn.engTicketCustomFields };
2997
+ const M3 = document.getElementById("sf-issue-name"), I3 = document.getElementById("sf-eng-ticket-team"), _3 = document.getElementById("sf-eng-ticket-project"), U3 = document.getElementById("sf-eng-ticket-priority"), j3 = document.getElementById("sf-eng-ticket-type"), W3 = (M3 == null ? void 0 : M3.value) || "", z3 = e5, H2 = (I3 == null ? void 0 : I3.value) || "", K2 = (_3 == null ? void 0 : _3.value) || "", X2 = U3 ? Number(U3.value) : 0, Y2 = Dn.engTicketLabels, Z2 = (j3 == null ? void 0 : j3.value) || "", J2 = { ...Dn.engTicketCustomFields };
2992
2998
  document.querySelectorAll(".sf-dynamic-field").forEach((e6) => {
2993
2999
  const w5 = e6, C4 = w5.dataset.fieldId;
2994
- C4 && ("checkbox" === w5.type ? Q2[C4] = w5.checked : "number" === w5.type ? Q2[C4] = parseFloat(w5.value) || null : w5.classList.contains("sf-custom-multiselect") || (Q2[C4] = w5.value));
3000
+ C4 && ("checkbox" === w5.type ? J2[C4] = w5.checked : "number" === w5.type ? J2[C4] = parseFloat(w5.value) || null : w5.classList.contains("sf-custom-multiselect") || (J2[C4] = w5.value));
2995
3001
  });
2996
- const Z2 = document.getElementById("sf-eng-ticket-sprint"), ee2 = (Z2 == null ? void 0 : Z2.value) || Dn.engTicketSprint;
3002
+ const Q2 = document.getElementById("sf-eng-ticket-sprint"), ee2 = (Q2 == null ? void 0 : Q2.value) || Dn.engTicketSprint;
2997
3003
  if (ee2) {
2998
3004
  const e6 = getSprintFieldId();
2999
- Q2[e6] = parseInt(ee2, 10);
3005
+ J2[e6] = parseInt(ee2, 10);
3000
3006
  }
3001
- const isFieldEmpty = (e6) => null == e6 || ("string" == typeof e6 ? "" === e6.trim() : !!Array.isArray(e6) && 0 === e6.length), te2 = Dn.createEngTicket ? (getFieldsForProject(K2, J2) || []).filter((e6) => e6 && e6.required) : [], ne2 = [];
3007
+ const isFieldEmpty = (e6) => null == e6 || ("string" == typeof e6 ? "" === e6.trim() : !!Array.isArray(e6) && 0 === e6.length), te2 = Dn.createEngTicket ? (getFieldsForProject(K2, Z2) || []).filter((e6) => e6 && e6.required) : [], ne2 = [];
3002
3008
  for (const e6 of te2) {
3003
3009
  const w5 = e6.fieldId || e6.key;
3004
3010
  if ("summary" === w5 || "description" === w5 || "priority" === w5) continue;
3005
3011
  let C4, x4;
3006
- "project" === w5 ? (C4 = !!document.getElementById("sf-eng-ticket-project"), x4 = K2) : "issuetype" === w5 ? (C4 = !!document.getElementById("sf-eng-ticket-type"), x4 = J2) : (C4 = !!document.querySelector(`[data-field-id="${w5}"]`), x4 = Q2[w5]), C4 && isFieldEmpty(x4) && ne2.push(e6.name || w5);
3012
+ "project" === w5 ? (C4 = !!document.getElementById("sf-eng-ticket-project"), x4 = K2) : "issuetype" === w5 ? (C4 = !!document.getElementById("sf-eng-ticket-type"), x4 = Z2) : (C4 = !!document.querySelector(`[data-field-id="${w5}"]`), x4 = J2[w5]), C4 && isFieldEmpty(x4) && ne2.push(e6.name || w5);
3007
3013
  }
3008
3014
  if (ne2.length > 0) return void alert(`Please fill in the required field${ne2.length > 1 ? "s" : ""}: ${ne2.join(", ")}`);
3009
3015
  closeModal(), (async function createTriageAndIssue(e6, w5, C4, x4, M4, I4, _4, U4, j4, W4, z4, H3, K3) {
@@ -3020,7 +3026,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
3020
3026
  } catch (e7) {
3021
3027
  console.error("Error creating triage and issue:", e7), showStatusModal(false, null, "Something went wrong. Please try again.");
3022
3028
  }
3023
- })(`${C3}`, `${x3}`, e5, W3, z3, Dn.createEngTicket, H2, K2, X2, Y2, J2, Q2, "startnow" === w4 ? "RECORDED" : "LOOKBACK");
3029
+ })(`${C3}`, `${x3}`, e5, W3, z3, Dn.createEngTicket, H2, K2, X2, Y2, Z2, J2, "startnow" === w4 ? "RECORDED" : "LOOKBACK");
3024
3030
  } else closeModal(), (async function createTriage(e6, w5, C4, x4) {
3025
3031
  var _a3, _b, _c2;
3026
3032
  try {
@@ -3038,7 +3044,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
3038
3044
  })(`${C3}`, `${x3}`, e5, "startnow" === w4 ? "RECORDED" : "LOOKBACK");
3039
3045
  }
3040
3046
  });
3041
- })(), Yn.deactivateIsolation = activateModalIsolation(Jn), Yn.integrationData && Dn.createEngTicket ? initializeEngTicketForm() : Yn.integrationData || (Dn.createEngTicket = false), Yn.apiKey && Yn.backendApi && refreshIntegrationData(Yn.apiKey, Yn.backendApi).then((e3) => {
3047
+ })(), Yn.deactivateIsolation = activateModalIsolation(Zn), Yn.integrationData && Dn.createEngTicket ? initializeEngTicketForm() : Yn.integrationData || (Dn.createEngTicket = false), Yn.apiKey && Yn.backendApi && refreshIntegrationData(Yn.apiKey, Yn.backendApi).then((e3) => {
3042
3048
  if (!e3 || !document.getElementById("sf-report-issue-modal")) return;
3043
3049
  Yn.integrationData = e3;
3044
3050
  const w3 = document.getElementById("sf-eng-ticket-fields-container");
@@ -3046,7 +3052,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
3046
3052
  const e4 = generateEngTicketFieldsHTML();
3047
3053
  e4 && (w3.innerHTML = e4, initializeEngTicketForm(), bindEngTicketListeners(), updateFormWithIntegrationData(Dn), renderDynamicFields(Dn.engTicketProject, Dn.engTicketIssueType));
3048
3054
  }
3049
- if (Qn) {
3055
+ if (Jn) {
3050
3056
  const e4 = document.getElementById("sf-create-eng-ticket-label");
3051
3057
  e4 && (e4.style.display = "flex");
3052
3058
  }
@@ -3068,7 +3074,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
3068
3074
  }
3069
3075
  function setActiveTab(e2) {
3070
3076
  Dn.mode = e2;
3071
- const w2 = Jn == null ? void 0 : Jn.querySelector("#sf-tab-lookback"), C2 = Jn == null ? void 0 : Jn.querySelector("#sf-tab-startnow");
3077
+ const w2 = Zn == null ? void 0 : Zn.querySelector("#sf-tab-lookback"), C2 = Zn == null ? void 0 : Zn.querySelector("#sf-tab-startnow");
3072
3078
  "lookback" === e2 ? (w2.style.background = "white", w2.style.color = "#0F172A", C2.style.background = "transparent", C2.style.color = "#64748B") : (C2.style.background = "white", C2.style.color = "#0F172A", w2.style.background = "transparent", w2.style.color = "#64748B");
3073
3079
  }
3074
3080
  function updateModeSpecificUI(e2) {
@@ -3145,7 +3151,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
3145
3151
  Bn = e2;
3146
3152
  })(Date.now()), setIsRecording(false), Un && (clearInterval(Un), setTimerInterval(null)), (_a2 = document.getElementById("sf-recording-indicator")) == null ? void 0 : _a2.remove();
3147
3153
  try {
3148
- const { disableFunctionSpanTracking: e2 } = await Promise.resolve().then(() => Ze);
3154
+ const { disableFunctionSpanTracking: e2 } = await Promise.resolve().then(() => Je);
3149
3155
  e2();
3150
3156
  } catch (e2) {
3151
3157
  console.error("[Report Issue] Failed to disable function span tracking:", e2);
@@ -3245,7 +3251,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
3245
3251
  function fadeCardAndRemove(e2, w2, C2 = 300) {
3246
3252
  w2.style.opacity = "0", w2.addEventListener("transitionend", () => e2.remove(), { once: true }), setTimeout(() => e2.remove(), C2 + 100);
3247
3253
  }
3248
- const Zn = Object.freeze(Object.defineProperty({ __proto__: null, ReportIssueContext: Yn, openReportIssueModal, setupIssueReporting: function setupIssueReporting(e2) {
3254
+ const Qn = Object.freeze(Object.defineProperty({ __proto__: null, ReportIssueContext: Yn, openReportIssueModal, setupIssueReporting: function setupIssueReporting(e2) {
3249
3255
  Yn.apiKey = e2.apiKey, Yn.backendApi = e2.backendApi, Yn.resolveSessionId = e2.getSessionId, Yn.integrationData = e2.integrationData || null, Yn.showEngTicketFieldsDefault = e2.showEngTicketFieldsInReportIssueModalDefault ?? false, e2.customBaseUrl && (Yn.triageBaseUrl = e2.customBaseUrl), Yn.shortcuts = (function mergeShortcutsConfig(e3) {
3250
3256
  const w3 = { ...Xn };
3251
3257
  if (!e3) return w3;
@@ -3396,7 +3402,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
3396
3402
  let x2 = sr.get(C2);
3397
3403
  return x2 || (x2 = new RegExp(e2, w2), sr.set(C2, x2)), x2;
3398
3404
  }
3399
- const ir = new Set([".js", ".mjs", ".cjs", ".ts", ".css", ".scss", ".sass", ".less", ".styl", ".stylus", ".png", ".jpg", ".jpeg", ".gif", ".svg", ".webp", ".avif", ".bmp", ".ico", ".tiff", ".tif", ".heic", ".woff", ".woff2", ".ttf", ".otf", ".eot", ".mp4", ".webm", ".ogv", ".mp3", ".wav", ".flac", ".pdf", ".doc", ".docx", ".xls", ".xlsx", ".ppt", ".pptx", ".csv", ".json", ".xml", ".txt", ".zip", ".rar", ".gz", ".tar", ".7z", ".map", ".webmanifest"].map((e2) => e2.toLowerCase())), ar = ["t.co", "*.twitter.com", "*.gravatar.com", "*.googleapis.com", "*.amazonaws.com", "*.smooch.io", "*.zendesk.com", "*.zdassets.com"], cr = [400, 403], lr = "CORS", ur = "authorization", dr = "Authorization", pr = { recordCanvas: false, recordCrossOriginIframes: false, collectFonts: false, inlineImages: false, recordPassword: false, recordRealName: true, recordCreditCardInfo: false, recordSsn: false, recordDob: false, sampling: {}, enableFiberTracking: false, maskInputSelector: "", maskTextSelector: "", blockSelector: "", unmaskSelector: "", maskInputOptions: { password: true } }, hr = { level: ["info", "log", "warn", "error"], lengthThreshold: 1e4, stringifyOptions: { stringLengthLimit: 1e3, numOfKeysLimit: 20, depthOfLimit: 4 }, logger: "console" };
3405
+ const ir = new Set([".js", ".mjs", ".cjs", ".ts", ".css", ".scss", ".sass", ".less", ".styl", ".stylus", ".png", ".jpg", ".jpeg", ".gif", ".svg", ".webp", ".avif", ".bmp", ".ico", ".tiff", ".tif", ".heic", ".woff", ".woff2", ".ttf", ".otf", ".eot", ".mp4", ".webm", ".ogv", ".mp3", ".wav", ".flac", ".pdf", ".doc", ".docx", ".xls", ".xlsx", ".ppt", ".pptx", ".csv", ".json", ".xml", ".txt", ".zip", ".rar", ".gz", ".tar", ".7z", ".map", ".webmanifest"].map((e2) => e2.toLowerCase())), ar = ["t.co", "*.twitter.com", "*.gravatar.com", "*.googleapis.com", "*.amazonaws.com", "*.smooch.io", "*.zendesk.com", "*.zdassets.com"], cr = [400, 403], lr = "CORS", ur = "authorization", dr = "Authorization", pr = { recordCanvas: false, recordCrossOriginIframes: false, collectFonts: false, inlineImages: false, recordPassword: false, recordRealName: true, recordCreditCardInfo: false, recordSsn: false, recordDob: false, sampling: {}, enableFiberTracking: false, maskInputSelector: "", maskTextSelector: "", blockSelector: "", unmaskSelector: "", maskInputOptions: { password: true }, recordHover: true, hoverDwellMs: 500, hoverStrictAffordance: true, hoverCooldownMs: 3e3, hoverMaxPerSession: 300, hoverMaxPerSecond: 1 }, hr = { level: ["info", "log", "warn", "error"], lengthThreshold: 1e4, stringifyOptions: { stringLengthLimit: 1e3, numOfKeysLimit: 20, depthOfLimit: 4 }, logger: "console" };
3400
3406
  function maskAuthorizationHeader(e2) {
3401
3407
  const w2 = e2[ur] ? ur : e2[dr] ? dr : null;
3402
3408
  if (!w2) return;
@@ -3516,6 +3522,10 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
3516
3522
  return !(-1 === _2 || !ir.has(I2.slice(_2))) || (!(!x2 || matchParsedUrlAgainstPatterns(M2, w2)) || !!matchParsedUrlAgainstPatterns(M2, C2));
3517
3523
  };
3518
3524
  }
3525
+ function resolveFailedFetchStatus(e2, w2) {
3526
+ var _a2;
3527
+ return ((_a2 = e2 == null ? void 0 : e2.response) == null ? void 0 : _a2.status) ?? w2 ?? 0;
3528
+ }
3519
3529
  function setupFetchInterceptor(e2 = [], C2 = { captureStreamingResponseBody: true, captureResponseBodyMaxMb: 10, captureStreamPrefixKb: 64, captureStreamTimeoutMs: 1e4 }, x2 = []) {
3520
3530
  const M2 = window.fetch, I2 = getOrSetSessionId(), _2 = createSkipHeadersPropagationChecker(e2, x2), U2 = ["text/event-stream", "application/x-ndjson", "application/stream+json", "application/grpc", "application/grpc-web"], j2 = ["application/octet-stream"];
3521
3531
  window.fetch = new Proxy(M2, { apply: async (e3, x3, M3) => {
@@ -3527,35 +3537,36 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
3527
3537
  W2 = z2.href;
3528
3538
  }
3529
3539
  return _2(W2) ? e3.apply(x3, M3) : (async function injectHeaderWrapper(e4, x4, M4, I3, _3, W3, z3) {
3530
- var _a2, _b;
3540
+ var _a2;
3531
3541
  if (!W3) return e4.apply(x4, M4);
3532
3542
  let H3 = uuidv4();
3533
3543
  const K2 = getUrlAndStoredUuids(), X2 = _3.method || "GET", Y2 = Date.now();
3534
- let J2, Q2 = {}, Z2 = null;
3544
+ let Z2, J2 = {}, Q2 = null;
3535
3545
  try {
3536
3546
  if (I3 instanceof Request) {
3537
3547
  I3.headers.forEach((e5, w2) => {
3538
- Q2[w2] = e5;
3548
+ J2[w2] = e5;
3539
3549
  });
3540
3550
  try {
3541
- Z2 = I3.clone();
3551
+ Q2 = I3.clone();
3542
3552
  } catch (e5) {
3543
- Z2 = null;
3553
+ Q2 = null;
3544
3554
  }
3545
3555
  } else _3.headers && (_3.headers instanceof Headers ? _3.headers.forEach((e5, w2) => {
3546
- Q2[w2] = e5;
3556
+ J2[w2] = e5;
3547
3557
  }) : Array.isArray(_3.headers) ? _3.headers.forEach(([e5, w2]) => {
3548
- Q2[e5] = w2;
3549
- }) : Q2 = { ..._3.headers }), J2 = _3.body;
3558
+ J2[e5] = w2;
3559
+ }) : J2 = { ..._3.headers }), Z2 = _3.body;
3550
3560
  } catch (e5) {
3551
3561
  or && console.warn("[Sailfish] Failed to capture request data:", e5);
3552
3562
  }
3553
- delete Q2[w];
3563
+ delete J2[w];
3554
3564
  const ee2 = getFuncSpanHeader();
3555
- ee2 && delete Q2[ee2.name];
3565
+ ee2 && delete J2[ee2.name];
3556
3566
  const te2 = `${W3}/${K2.page_visit_uuid}/${H3}`;
3557
- Q2[w] = te2, ee2 && (Q2[ee2.name] = ee2.value);
3558
- maskAuthorizationHeader(Q2);
3567
+ J2[w] = te2, ee2 && (J2[ee2.name] = ee2.value);
3568
+ let ne2;
3569
+ maskAuthorizationHeader(J2);
3559
3570
  try {
3560
3571
  let ee3 = await (async function injectHeader(e5, C3, x5, M5, I4, _4, U3) {
3561
3572
  const j3 = getFuncSpanHeader();
@@ -3569,8 +3580,10 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
3569
3580
  const W4 = { ...M5 }, z4 = new Headers(M5.headers || {});
3570
3581
  return z4.set(w, `${I4}/${_4}/${U3}`), j3 && (z4.set(j3.name, j3.value), or && console.log("[Sailfish] Added funcspan header to HTTP fetch:", { url: "string" == typeof x5 ? x5 : x5.href, header: j3.name })), W4.headers = z4, await e5.call(C3, x5, W4);
3571
3582
  }
3572
- })(e4, x4, I3, _3, W3, K2.page_visit_uuid, H3), te3 = false;
3573
- cr.includes(ee3.status) && (or && console.log("Perform retry as status was fail:", ee3), delete Q2[w], ee3 = await (async function retryWithoutPropagateHeaders(e5, C3, x5, M5) {
3583
+ })(e4, x4, I3, _3, W3, K2.page_visit_uuid, H3);
3584
+ ne2 = ee3.status;
3585
+ let te3 = false;
3586
+ cr.includes(ee3.status) && (or && console.log("Perform retry as status was fail:", ee3), delete J2[w], ee3 = await (async function retryWithoutPropagateHeaders(e5, C3, x5, M5) {
3574
3587
  try {
3575
3588
  let M6 = x5[0], I4 = x5[1] || {};
3576
3589
  if ("string" == typeof M6 || M6 instanceof URL) {
@@ -3588,25 +3601,25 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
3588
3601
  } catch (e6) {
3589
3602
  throw or && console.log(`Retry without ${w} for ${M5} also failed:`, e6), e6;
3590
3603
  }
3591
- })(e4, x4, M4, z3), te3 = true);
3592
- const ne2 = Date.now(), re2 = (function captureClientTime() {
3604
+ })(e4, x4, M4, z3), ne2 = ee3.status, te3 = true);
3605
+ const re2 = Date.now(), se2 = (function captureClientTime() {
3593
3606
  return { wallTimeMs: Date.now(), monotonicMs: monotonicNow(), timeOriginMs: timeOriginMs() };
3594
- })(), se2 = ee3.status, ie2 = ee3.ok, ae2 = ie2 ? "" : `Request Error: ${ee3.statusText}`;
3595
- let ce2 = null;
3607
+ })(), ie2 = ee3.status, ae2 = ee3.ok, ce2 = ae2 ? "" : `Request Error: ${ee3.statusText}`;
3608
+ let le2 = null;
3596
3609
  try {
3597
- ce2 = {}, ee3.headers.forEach((e5, w2) => {
3598
- ce2[w2] = e5;
3610
+ le2 = {}, ee3.headers.forEach((e5, w2) => {
3611
+ le2[w2] = e5;
3599
3612
  });
3600
3613
  } catch (e5) {
3601
- or && console.warn("[Sailfish] Failed to capture response headers:", e5), ce2 = null;
3614
+ or && console.warn("[Sailfish] Failed to capture response headers:", e5), le2 = null;
3602
3615
  }
3603
- const le2 = { type: 27, timestamp: ne2, sessionId: W3, client: re2, data: { request_id: H3, session_id: W3, timestamp_start: Y2, timestamp_end: ne2, response_code: se2, success: ie2, error: ae2, method: X2, url: toAbsoluteUrl(z3), retry_without_trace_id: te3, request_headers: Q2, request_body: J2, response_headers: ce2, response_body: null }, ...K2 }, sendEventWithBody = (e5) => {
3604
- le2.data.response_body = e5, Z2 ? Z2.text().then((e6) => {
3605
- le2.data.request_body = e6, sendEvent(le2);
3616
+ const de2 = { type: 27, timestamp: re2, sessionId: W3, client: se2, data: { request_id: H3, session_id: W3, timestamp_start: Y2, timestamp_end: re2, response_code: ie2, success: ae2, error: ce2, method: X2, url: toAbsoluteUrl(z3), retry_without_trace_id: te3, request_headers: J2, request_body: Z2, response_headers: le2, response_body: null }, ...K2 }, sendEventWithBody = (e5) => {
3617
+ de2.data.response_body = e5, Q2 ? Q2.text().then((e6) => {
3618
+ de2.data.request_body = e6, sendEvent(de2);
3606
3619
  }, () => {
3607
- sendEvent(le2);
3608
- }) : sendEvent(le2);
3609
- }, de2 = 1024 * C2.captureResponseBodyMaxMb * 1024;
3620
+ sendEvent(de2);
3621
+ }) : sendEvent(de2);
3622
+ }, pe2 = 1024 * C2.captureResponseBodyMaxMb * 1024;
3610
3623
  if (0 === C2.captureResponseBodyMaxMb) sendEventWithBody(null);
3611
3624
  else if ((function shouldSkipBodyCapture(e5) {
3612
3625
  const w2 = e5.headers.get("content-type");
@@ -3664,10 +3677,10 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
3664
3677
  else sendEventWithBody(null);
3665
3678
  else {
3666
3679
  const e5 = ee3.headers.get("content-length"), w2 = e5 ? parseInt(e5, 10) : NaN;
3667
- if (!isNaN(w2) && w2 > de2) sendEventWithBody(null);
3680
+ if (!isNaN(w2) && w2 > pe2) sendEventWithBody(null);
3668
3681
  else try {
3669
3682
  ee3.clone().text().then((e6) => {
3670
- e6.length > de2 ? sendEventWithBody(null) : sendEventWithBody(e6);
3683
+ e6.length > pe2 ? sendEventWithBody(null) : sendEventWithBody(e6);
3671
3684
  }, () => sendEventWithBody(null));
3672
3685
  } catch {
3673
3686
  sendEventWithBody(null);
@@ -3675,20 +3688,20 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
3675
3688
  }
3676
3689
  return ee3;
3677
3690
  } catch (w2) {
3678
- const C3 = Date.now(), I4 = false, _4 = ((_a2 = w2.response) == null ? void 0 : _a2.status) || 500, U3 = w2.message || "Fetch request failed";
3679
- if (w2 instanceof TypeError && ((_b = w2 == null ? void 0 : w2.message) == null ? void 0 : _b.toLowerCase().includes(lr.toLowerCase()))) return e4.apply(x4, M4);
3680
- let j3 = J2;
3681
- if (Z2) try {
3682
- j3 = await Z2.text();
3691
+ const C3 = Date.now(), I4 = false, _4 = resolveFailedFetchStatus(w2, ne2), U3 = w2.message || "Fetch request failed";
3692
+ if (w2 instanceof TypeError && ((_a2 = w2 == null ? void 0 : w2.message) == null ? void 0 : _a2.toLowerCase().includes(lr.toLowerCase()))) return e4.apply(x4, M4);
3693
+ let j3 = Z2;
3694
+ if (Q2) try {
3695
+ j3 = await Q2.text();
3683
3696
  } catch {
3684
3697
  j3 = null;
3685
3698
  }
3686
- throw sendEvent({ type: 27, timestamp: C3, sessionId: W3, data: { request_id: H3, session_id: W3, timestamp_start: Y2, timestamp_end: C3, response_code: _4, success: I4, error: U3, method: X2, url: toAbsoluteUrl(z3), request_headers: Q2, request_body: j3, response_body: null }, ...K2 }), w2;
3699
+ throw sendEvent({ type: 27, timestamp: C3, sessionId: W3, data: { request_id: H3, session_id: W3, timestamp_start: Y2, timestamp_end: C3, response_code: _4, success: I4, error: U3, method: X2, url: toAbsoluteUrl(z3), request_headers: J2, request_body: j3, response_body: null }, ...K2 }), w2;
3687
3700
  }
3688
3701
  })(e3, x3, M3, z2, H2, I2, W2);
3689
3702
  } });
3690
3703
  }
3691
- async function startRecording({ apiKey: e2, backendApi: C2 = "https://api-service.sailfishqa.com", domainsToPropagateHeaderTo: x2 = ["*"], domainsToNotPropagateHeaderTo: M2 = [], serviceVersion: I2, serviceIdentifier: _2, gitSha: U2, serviceAdditionalMetadata: j2, enableIpTracking: W2, captureStreamingResponseBody: z2 = true, captureResponseBodyMaxMb: H2 = 10, captureStreamPrefixKb: K2 = 64, captureStreamTimeoutMs: X2 = 1e4, enableFiberTracking: Y2 = false, deferRecording: J2, deferRecordingStart: Q2, chunkSnapshot: Z2, useWsWorker: ee2 = true, capturePerformanceMetrics: te2 = true, maskTextClass: ne2, maskInputSelector: re2, maskTextSelector: se2, blockSelector: ae2, unmaskSelector: ce2, maskInputOptions: le2, recordCanvas: de2, maskCanvasClass: pe2, gitOrg: me2, gitRepo: ge2, gitProvider: ye2, library: we2, headlessRecording: be2 = false }) {
3704
+ async function startRecording({ apiKey: e2, backendApi: C2 = "https://api-service.sailfishqa.com", domainsToPropagateHeaderTo: x2 = ["*"], domainsToNotPropagateHeaderTo: M2 = [], serviceVersion: I2, serviceIdentifier: _2, gitSha: U2, serviceAdditionalMetadata: j2, enableIpTracking: W2, captureStreamingResponseBody: z2 = true, captureResponseBodyMaxMb: H2 = 10, captureStreamPrefixKb: K2 = 64, captureStreamTimeoutMs: X2 = 1e4, enableFiberTracking: Y2 = false, deferRecording: Z2, deferRecordingStart: J2, chunkSnapshot: Q2, useWsWorker: ee2 = true, capturePerformanceMetrics: te2 = true, maskTextClass: ne2, maskInputSelector: re2, maskTextSelector: se2, blockSelector: ae2, unmaskSelector: ce2, maskInputOptions: le2, recordCanvas: de2, maskCanvasClass: pe2, gitOrg: me2, gitRepo: ge2, gitProvider: ye2, library: we2, headlessRecording: be2 = false }) {
3692
3705
  var _a2, _b, _c2, _d2;
3693
3706
  if (!be2 && (function isHeadlessOrLighthouse() {
3694
3707
  try {
@@ -3701,7 +3714,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
3701
3714
  return false;
3702
3715
  }
3703
3716
  })()) return;
3704
- const Se2 = J2 ?? Q2 ?? true, ke2 = getOrSetSessionId(), Ce2 = window.__sailfish_recorder || (window.__sailfish_recorder = {});
3717
+ const Se2 = Z2 ?? J2 ?? true, ke2 = getOrSetSessionId(), Ce2 = window.__sailfish_recorder || (window.__sailfish_recorder = {});
3705
3718
  if (Ce2.sessionId = ke2, Ce2.apiKey = e2, Ce2.backendApi = C2, Ce2.serviceAdditionalMetadata = j2, Ce2.initialized && Ce2.sessionId === ke2 && Ce2.ws && 1 === Ce2.ws.readyState) return void trackDomainChangesOnce();
3706
3719
  const xe2 = { captureStreamingResponseBody: z2, captureResponseBodyMaxMb: H2, captureStreamPrefixKb: K2, captureStreamTimeoutMs: X2 };
3707
3720
  sessionStorage.getItem("pageVisitUUID") || (sessionStorage.setItem("pageVisitUUID", uuidv4()), invalidateUrlCache()), Ce2.xhrPatched || (!(function setupXMLHttpRequestInterceptor(e3 = [], C3 = { captureStreamingResponseBody: true, captureResponseBodyMaxMb: 10, captureStreamPrefixKb: 64, captureStreamTimeoutMs: 1e4 }, x3 = []) {
@@ -3834,16 +3847,16 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
3834
3847
  return { framework: x4[0] ?? null, additionalFrameworks: x4.slice(1), serviceRole: "frontend" };
3835
3848
  })(), X3 = { ...H3, serviceRole: K3.serviceRole, ...null !== K3.framework && { framework: K3.framework }, ...K3.additionalFrameworks.length > 0 && { additionalFrameworks: K3.additionalFrameworks } };
3836
3849
  await yieldToMain();
3837
- const [J3, Q3] = await Promise.all([fetchCaptureSettings(e2, C2), startRecordingSession(e2, ke2, C2, x3, M3, z3, w2, W3, X3, me2, ge2, ye2)]), te3 = { ...pr, ...(_a2 = J3.data) == null ? void 0 : _a2.captureSettingsFromApiKey, enableFiberTracking: Y2, ...void 0 !== ne2 ? { maskTextClass: ne2 } : {}, ...void 0 !== re2 ? { maskInputSelector: re2 } : {}, ...void 0 !== se2 ? { maskTextSelector: se2 } : {}, ...void 0 !== ae2 ? { blockSelector: ae2 } : {}, ...void 0 !== ce2 ? { unmaskSelector: ce2 } : {}, ...void 0 !== le2 ? { maskInputOptions: le2 } : {}, recordCanvas: de2 ?? ((_c2 = (_b = J3.data) == null ? void 0 : _b.captureSettingsFromApiKey) == null ? void 0 : _c2.recordCanvasSf) ?? pr.recordCanvas, ...void 0 !== pe2 ? { maskCanvasClass: pe2 } : {} };
3850
+ const [Z3, J3] = await Promise.all([fetchCaptureSettings(e2, C2), startRecordingSession(e2, ke2, C2, x3, M3, z3, w2, W3, X3, me2, ge2, ye2)]), te3 = { ...pr, ...(_a2 = Z3.data) == null ? void 0 : _a2.captureSettingsFromApiKey, enableFiberTracking: Y2, ...void 0 !== ne2 ? { maskTextClass: ne2 } : {}, ...void 0 !== re2 ? { maskInputSelector: re2 } : {}, ...void 0 !== se2 ? { maskTextSelector: se2 } : {}, ...void 0 !== ae2 ? { blockSelector: ae2 } : {}, ...void 0 !== ce2 ? { unmaskSelector: ce2 } : {}, ...void 0 !== le2 ? { maskInputOptions: le2 } : {}, recordCanvas: de2 ?? ((_c2 = (_b = Z3.data) == null ? void 0 : _b.captureSettingsFromApiKey) == null ? void 0 : _c2.recordCanvasSf) ?? pr.recordCanvas, ...void 0 !== pe2 ? { maskCanvasClass: pe2 } : {} };
3838
3851
  if (Ce2.ws && 1 === Ce2.ws.readyState) return;
3839
- if ((_d2 = Q3.data) == null ? void 0 : _d2.startRecordingSession) {
3852
+ if ((_d2 = J3.data) == null ? void 0 : _d2.startRecordingSession) {
3840
3853
  const w3 = (j2 == null ? void 0 : j2.env) || (j2 == null ? void 0 : j2.environment);
3841
3854
  await yieldToMain();
3842
- const x4 = await initializeRecording(te3, C2, e2, ke2, w3, Se2, ee2, Z2 ?? false);
3855
+ const x4 = await initializeRecording(te3, C2, e2, ke2, w3, Se2, ee2, Q2 ?? false);
3843
3856
  Ce2.ws = x4, Ce2.initialized = true, trackDomainChangesOnce(), Ce2.sentMapUuidOnce || (!(function sendMapUuidIfAvailable(e3 = "", w4 = "") {
3844
3857
  window.sfMapUuid && sendMessage({ type: "mapUuid", data: { mapUuid: window.sfMapUuid, serviceIdentifier: e3, serviceVersion: w4 } });
3845
3858
  })(_2, I2), Ce2.sentMapUuidOnce = true);
3846
- } else console.error("Failed to start recording session:", Q3.errors || Q3);
3859
+ } else console.error("Failed to start recording session:", J3.errors || J3);
3847
3860
  } catch (e3) {
3848
3861
  console.error("Error starting recording:", e3);
3849
3862
  }
@@ -3851,7 +3864,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
3851
3864
  function getDefaultExportFromCjs(e2) {
3852
3865
  return e2 && e2.__esModule && Object.prototype.hasOwnProperty.call(e2, "default") ? e2.default : e2;
3853
3866
  }
3854
- var mr, gr, yr = {}, wr = {}, vr = {}, br = {};
3867
+ var mr, gr, yr = {}, vr = {}, wr = {}, br = {};
3855
3868
  function requireBase64() {
3856
3869
  if (mr) return br;
3857
3870
  mr = 1;
@@ -3864,10 +3877,10 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
3864
3877
  }, br;
3865
3878
  }
3866
3879
  function requireBase64Vlq() {
3867
- if (gr) return vr;
3880
+ if (gr) return wr;
3868
3881
  gr = 1;
3869
3882
  var e2 = requireBase64();
3870
- return vr.encode = function base64VLQ_encode(w2) {
3883
+ return wr.encode = function base64VLQ_encode(w2) {
3871
3884
  var C2, x2 = "", M2 = (function toVLQSigned(e3) {
3872
3885
  return e3 < 0 ? 1 + (-e3 << 1) : 0 + (e3 << 1);
3873
3886
  })(w2);
@@ -3875,7 +3888,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
3875
3888
  C2 = 31 & M2, (M2 >>>= 5) > 0 && (C2 |= 32), x2 += e2.encode(C2);
3876
3889
  } while (M2 > 0);
3877
3890
  return x2;
3878
- }, vr.decode = function base64VLQ_decode(w2, C2, x2) {
3891
+ }, wr.decode = function base64VLQ_decode(w2, C2, x2) {
3879
3892
  var M2, I2, _2 = w2.length, U2 = 0, j2 = 0;
3880
3893
  do {
3881
3894
  if (C2 >= _2) throw new Error("Expected more digits in base 64 VLQ value.");
@@ -3886,7 +3899,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
3886
3899
  var w3 = e3 >> 1;
3887
3900
  return 1 & ~e3 ? w3 : -w3;
3888
3901
  })(U2), x2.rest = C2;
3889
- }, vr;
3902
+ }, wr;
3890
3903
  }
3891
3904
  var Sr, Mr = {};
3892
3905
  function requireUtil() {
@@ -4060,7 +4073,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
4060
4073
  }, Lr.MappingList = MappingList, Lr;
4061
4074
  }
4062
4075
  function requireSourceMapGenerator() {
4063
- if (Or) return wr;
4076
+ if (Or) return vr;
4064
4077
  Or = 1;
4065
4078
  var e2 = requireBase64Vlq(), w2 = requireUtil(), C2 = requireArraySet().ArraySet, x2 = requireMappingList().MappingList;
4066
4079
  function SourceMapGenerator(e3) {
@@ -4117,7 +4130,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
4117
4130
  throw new Error(M2);
4118
4131
  }
4119
4132
  }, SourceMapGenerator.prototype._serializeMappings = function SourceMapGenerator_serializeMappings() {
4120
- for (var C3, x3, M2, I2, _2 = 0, U2 = 1, j2 = 0, W2 = 0, z2 = 0, H2 = 0, K2 = "", X2 = this._mappings.toArray(), Y2 = 0, J2 = X2.length; Y2 < J2; Y2++) {
4133
+ for (var C3, x3, M2, I2, _2 = 0, U2 = 1, j2 = 0, W2 = 0, z2 = 0, H2 = 0, K2 = "", X2 = this._mappings.toArray(), Y2 = 0, Z2 = X2.length; Y2 < Z2; Y2++) {
4121
4134
  if (C3 = "", (x3 = X2[Y2]).generatedLine !== U2) for (_2 = 0; x3.generatedLine !== U2; ) C3 += ";", U2++;
4122
4135
  else if (Y2 > 0) {
4123
4136
  if (!w2.compareByGeneratedPositionsInflated(x3, X2[Y2 - 1])) continue;
@@ -4138,7 +4151,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
4138
4151
  return null != this._file && (e3.file = this._file), null != this._sourceRoot && (e3.sourceRoot = this._sourceRoot), this._sourcesContents && (e3.sourcesContent = this._generateSourcesContent(e3.sources, e3.sourceRoot)), e3;
4139
4152
  }, SourceMapGenerator.prototype.toString = function SourceMapGenerator_toString() {
4140
4153
  return JSON.stringify(this.toJSON());
4141
- }, wr.SourceMapGenerator = SourceMapGenerator, wr;
4154
+ }, vr.SourceMapGenerator = SourceMapGenerator, vr;
4142
4155
  }
4143
4156
  var _r, Ar = {}, Dr = {};
4144
4157
  function requireBinarySearch() {
@@ -4294,13 +4307,13 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
4294
4307
  });
4295
4308
  }
4296
4309
  return BasicSourceMapConsumer.prototype._parseMappings = function SourceMapConsumer_parseMappings(w3, C3) {
4297
- var I3, _2, U2, j2, W2 = 1, z2 = 0, H2 = 0, K2 = 0, X2 = 0, Y2 = 0, J2 = w3.length, Q2 = 0, Z2 = {}, ee2 = [], te2 = [];
4310
+ var I3, _2, U2, j2, W2 = 1, z2 = 0, H2 = 0, K2 = 0, X2 = 0, Y2 = 0, Z2 = w3.length, J2 = 0, Q2 = {}, ee2 = [], te2 = [];
4298
4311
  let ne2 = 0;
4299
- for (; Q2 < J2; ) if (";" === w3.charAt(Q2)) W2++, Q2++, z2 = 0, sortGenerated(te2, ne2), ne2 = te2.length;
4300
- else if ("," === w3.charAt(Q2)) Q2++;
4312
+ for (; J2 < Z2; ) if (";" === w3.charAt(J2)) W2++, J2++, z2 = 0, sortGenerated(te2, ne2), ne2 = te2.length;
4313
+ else if ("," === w3.charAt(J2)) J2++;
4301
4314
  else {
4302
- for ((I3 = new Mapping()).generatedLine = W2, U2 = Q2; U2 < J2 && !this._charIsMappingSeparator(w3, U2); U2++) ;
4303
- for (w3.slice(Q2, U2), _2 = []; Q2 < U2; ) x2.decode(w3, Q2, Z2), j2 = Z2.value, Q2 = Z2.rest, _2.push(j2);
4315
+ for ((I3 = new Mapping()).generatedLine = W2, U2 = J2; U2 < Z2 && !this._charIsMappingSeparator(w3, U2); U2++) ;
4316
+ for (w3.slice(J2, U2), _2 = []; J2 < U2; ) x2.decode(w3, J2, Q2), j2 = Q2.value, J2 = Q2.rest, _2.push(j2);
4304
4317
  if (2 === _2.length) throw new Error("Found a source, but no line and column");
4305
4318
  if (3 === _2.length) throw new Error("Found a source and line, but no column");
4306
4319
  if (I3.generatedColumn = z2 + _2[0], z2 = I3.generatedColumn, _2.length > 1 && (I3.source = X2 + _2[1], X2 += _2[1], I3.originalLine = H2 + _2[2], H2 = I3.originalLine, I3.originalLine += 1, I3.originalColumn = K2 + _2[3], K2 = I3.originalColumn, _2.length > 4 && (I3.name = Y2 + _2[4], Y2 += _2[4])), te2.push(I3), "number" == typeof I3.originalLine) {
@@ -5131,13 +5144,13 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
5131
5144
  function En() {
5132
5145
  return Ko++;
5133
5146
  }
5134
- let Yo, Jo;
5135
- const Qo = /url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm, Zo = /^(?:[a-z+]+:)?\/\//i, es = /^www\..*/i, ns = /^(data:)([^,]*),(.*)/i;
5147
+ let Yo, Zo;
5148
+ const Jo = /url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm, Qo = /^(?:[a-z+]+:)?\/\//i, es = /^www\..*/i, ns = /^(data:)([^,]*),(.*)/i;
5136
5149
  function Nt(e2, w2) {
5137
- return (e2 || "").replace(Qo, (e3, C2, x2, M2, I2, _2) => {
5150
+ return (e2 || "").replace(Jo, (e3, C2, x2, M2, I2, _2) => {
5138
5151
  const U2 = x2 || I2 || _2, j2 = C2 || M2 || "";
5139
5152
  if (!U2) return e3;
5140
- if (Zo.test(U2) || es.test(U2)) return `url(${j2}${U2}${j2})`;
5153
+ if (Qo.test(U2) || es.test(U2)) return `url(${j2}${U2}${j2})`;
5141
5154
  if (ns.test(U2)) return `url(${j2}${U2}${j2})`;
5142
5155
  if ("/" === U2[0]) return `url(${j2}${(function Ai(e4) {
5143
5156
  let w3 = "";
@@ -5238,7 +5251,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
5238
5251
  return false;
5239
5252
  }
5240
5253
  function Gi(e2, w2) {
5241
- const { doc: C2, mirror: x2, blockClass: M2, blockSelector: I2, needsMask: _2, inlineStylesheet: U2, maskInputOptions: j2 = {}, maskTextFn: W2, maskInputFn: z2, dataURLOptions: H2 = {}, inlineImages: K2, recordCanvas: X2, keepIframeSrcFn: Y2, newlyAddedElement: J2 = false, corruptedRules: Q2 } = w2, Z2 = (function Yi(e3, w3) {
5254
+ const { doc: C2, mirror: x2, blockClass: M2, blockSelector: I2, needsMask: _2, inlineStylesheet: U2, maskInputOptions: j2 = {}, maskTextFn: W2, maskInputFn: z2, dataURLOptions: H2 = {}, inlineImages: K2, recordCanvas: X2, keepIframeSrcFn: Y2, newlyAddedElement: Z2 = false, corruptedRules: J2 } = w2, Q2 = (function Yi(e3, w3) {
5242
5255
  if (!w3.hasNode(e3)) return;
5243
5256
  const C3 = w3.getId(e3);
5244
5257
  return 1 === C3 ? void 0 : C3;
@@ -5247,10 +5260,10 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
5247
5260
  case e2.DOCUMENT_NODE:
5248
5261
  return "CSS1Compat" !== e2.compatMode ? { type: zo.Document, childNodes: [], compatMode: e2.compatMode } : { type: zo.Document, childNodes: [] };
5249
5262
  case e2.DOCUMENT_TYPE_NODE:
5250
- return { type: zo.DocumentType, name: e2.name, publicId: e2.publicId, systemId: e2.systemId, rootId: Z2 };
5263
+ return { type: zo.DocumentType, name: e2.name, publicId: e2.publicId, systemId: e2.systemId, rootId: Q2 };
5251
5264
  case e2.ELEMENT_NODE:
5252
5265
  return (function Hi(e3, w3) {
5253
- const { doc: C3, blockClass: x3, blockSelector: M3, inlineStylesheet: I3, maskInputOptions: _3 = {}, maskInputFn: U3, dataURLOptions: j3 = {}, inlineImages: W3, recordCanvas: z3, keepIframeSrcFn: H3, newlyAddedElement: K3 = false, rootId: X3, corruptedRules: Y3 } = w3, J3 = (function ji(e4, w4, C4) {
5266
+ const { doc: C3, blockClass: x3, blockSelector: M3, inlineStylesheet: I3, maskInputOptions: _3 = {}, maskInputFn: U3, dataURLOptions: j3 = {}, inlineImages: W3, recordCanvas: z3, keepIframeSrcFn: H3, newlyAddedElement: K3 = false, rootId: X3, corruptedRules: Y3 } = w3, Z3 = (function ji(e4, w4, C4) {
5254
5267
  try {
5255
5268
  if ("string" == typeof w4) {
5256
5269
  if (e4.classList.contains(w4)) return true;
@@ -5262,28 +5275,28 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
5262
5275
  } catch {
5263
5276
  }
5264
5277
  return false;
5265
- })(e3, x3, M3), Q3 = (function Pi(e4) {
5278
+ })(e3, x3, M3), J3 = (function Pi(e4) {
5266
5279
  if (e4 instanceof HTMLFormElement) return "form";
5267
5280
  const w4 = fe(e4.tagName);
5268
5281
  return Xo.test(w4) ? "div" : w4;
5269
5282
  })(e3);
5270
- let Z3 = {};
5283
+ let Q3 = {};
5271
5284
  const ee2 = e3.attributes.length;
5272
5285
  for (let w4 = 0; w4 < ee2; w4++) {
5273
5286
  const x4 = e3.attributes[w4];
5274
- Ln(Q3, x4.name, x4.value) || (Z3[x4.name] = Tn(C3, Q3, fe(x4.name), x4.value));
5287
+ Ln(J3, x4.name, x4.value) || (Q3[x4.name] = Tn(C3, J3, fe(x4.name), x4.value));
5275
5288
  }
5276
- if ("link" === Q3 && I3) {
5289
+ if ("link" === J3 && I3) {
5277
5290
  const w4 = Array.from(C3.styleSheets).find((w5) => w5.href === e3.href);
5278
5291
  let x4 = null;
5279
- w4 && (x4 = At(w4, C3, Y3)), x4 && (delete Z3.rel, delete Z3.href, Z3._cssText = Nt(x4, w4.href));
5292
+ w4 && (x4 = At(w4, C3, Y3)), x4 && (delete Q3.rel, delete Q3.href, Q3._cssText = Nt(x4, w4.href));
5280
5293
  }
5281
- if ("style" === Q3 && e3.sheet && !(e3.innerText || e3.textContent || "").trim().length) {
5294
+ if ("style" === J3 && e3.sheet && !(e3.innerText || e3.textContent || "").trim().length) {
5282
5295
  const w4 = At(e3.sheet, C3, Y3);
5283
- w4 && (Z3._cssText = Nt(w4, Xt(C3)));
5296
+ w4 && (Q3._cssText = Nt(w4, Xt(C3)));
5284
5297
  }
5285
- if (Y3 && Y3.length > 0 && !J3) {
5286
- const w4 = "string" == typeof Z3.style ? Z3.style : "";
5298
+ if (Y3 && Y3.length > 0 && !Z3) {
5299
+ const w4 = "string" == typeof Q3.style ? Q3.style : "";
5287
5300
  let C4 = "";
5288
5301
  for (const { selector: w5, properties: x4 } of Y3) try {
5289
5302
  if (e3.matches(w5)) {
@@ -5295,16 +5308,16 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
5295
5308
  }
5296
5309
  } catch {
5297
5310
  }
5298
- C4 && (Z3.style = w4 ? `${w4}; ${C4.trim()}` : C4.trim());
5311
+ C4 && (Q3.style = w4 ? `${w4}; ${C4.trim()}` : C4.trim());
5299
5312
  }
5300
- if ("input" === Q3 || "textarea" === Q3 || "select" === Q3) {
5313
+ if ("input" === J3 || "textarea" === J3 || "select" === J3) {
5301
5314
  const w4 = e3.value, C4 = e3.checked;
5302
- if ("radio" !== Z3.type && "checkbox" !== Z3.type && "submit" !== Z3.type && "button" !== Z3.type && w4) {
5303
- const C5 = Zt({ element: e3, type: Ht(e3), tagName: Q3, value: w4, maskInputOptions: _3, maskInputFn: U3 });
5304
- Z3.value = C5.value, C5.masked && (Z3.masked = true);
5305
- } else C4 && (Z3.checked = C4);
5315
+ if ("radio" !== Q3.type && "checkbox" !== Q3.type && "submit" !== Q3.type && "button" !== Q3.type && w4) {
5316
+ const C5 = Zt({ element: e3, type: Ht(e3), tagName: J3, value: w4, maskInputOptions: _3, maskInputFn: U3 });
5317
+ Q3.value = C5.value, C5.masked && (Q3.masked = true);
5318
+ } else C4 && (Q3.checked = C4);
5306
5319
  }
5307
- if ("option" === Q3 && (e3.selected && !_3.select ? Z3.selected = true : delete Z3.selected), "canvas" === Q3 && z3) {
5320
+ if ("option" === J3 && (e3.selected && !_3.select ? Q3.selected = true : delete Q3.selected), "canvas" === J3 && z3) {
5308
5321
  if ("2d" === e3.__context) (function Ei(e4) {
5309
5322
  const w4 = e4.getContext("2d");
5310
5323
  if (!w4) return true;
@@ -5313,43 +5326,43 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
5313
5326
  if (new Uint32Array(I4.call(w4, C4, x4, Math.min(50, e4.width - C4), Math.min(50, e4.height - x4)).data.buffer).some((e5) => 0 !== e5)) return false;
5314
5327
  }
5315
5328
  return true;
5316
- })(e3) || (Z3.rr_dataURL = e3.toDataURL(j3.type, j3.quality));
5329
+ })(e3) || (Q3.rr_dataURL = e3.toDataURL(j3.type, j3.quality));
5317
5330
  else if (!("__context" in e3)) {
5318
5331
  const w4 = e3.toDataURL(j3.type, j3.quality), x4 = C3.createElement("canvas");
5319
5332
  x4.width = e3.width, x4.height = e3.height;
5320
- w4 !== x4.toDataURL(j3.type, j3.quality) && (Z3.rr_dataURL = w4);
5333
+ w4 !== x4.toDataURL(j3.type, j3.quality) && (Q3.rr_dataURL = w4);
5321
5334
  }
5322
5335
  }
5323
- if ("img" === Q3 && W3) {
5324
- Yo || (Yo = C3.createElement("canvas"), Jo = Yo.getContext("2d"));
5336
+ if ("img" === J3 && W3) {
5337
+ Yo || (Yo = C3.createElement("canvas"), Zo = Yo.getContext("2d"));
5325
5338
  const w4 = e3, x4 = w4.currentSrc || w4.getAttribute("src") || "<unknown-src>", M4 = w4.crossOrigin, T2 = () => {
5326
5339
  w4.removeEventListener("load", T2);
5327
5340
  try {
5328
- Yo.width = w4.naturalWidth, Yo.height = w4.naturalHeight, Jo.drawImage(w4, 0, 0), Z3.rr_dataURL = Yo.toDataURL(j3.type, j3.quality);
5341
+ Yo.width = w4.naturalWidth, Yo.height = w4.naturalHeight, Zo.drawImage(w4, 0, 0), Q3.rr_dataURL = Yo.toDataURL(j3.type, j3.quality);
5329
5342
  } catch (e4) {
5330
5343
  if ("anonymous" !== w4.crossOrigin) return w4.crossOrigin = "anonymous", void (w4.complete && 0 !== w4.naturalWidth ? T2() : w4.addEventListener("load", T2));
5331
5344
  console.warn(`Cannot inline img src=${x4}! Error: ${e4}`);
5332
5345
  }
5333
- "anonymous" === w4.crossOrigin && (M4 ? Z3.crossOrigin = M4 : w4.removeAttribute("crossorigin"));
5346
+ "anonymous" === w4.crossOrigin && (M4 ? Q3.crossOrigin = M4 : w4.removeAttribute("crossorigin"));
5334
5347
  };
5335
5348
  w4.complete && 0 !== w4.naturalWidth ? T2() : w4.addEventListener("load", T2);
5336
5349
  }
5337
- if ("audio" === Q3 || "video" === Q3) {
5338
- const w4 = Z3;
5350
+ if ("audio" === J3 || "video" === J3) {
5351
+ const w4 = Q3;
5339
5352
  w4.rr_mediaState = e3.paused ? "paused" : "played", w4.rr_mediaCurrentTime = e3.currentTime, w4.rr_mediaPlaybackRate = e3.playbackRate, w4.rr_mediaMuted = e3.muted, w4.rr_mediaLoop = e3.loop, w4.rr_mediaVolume = e3.volume;
5340
5353
  }
5341
- if (K3 || (e3.scrollLeft && (Z3.rr_scrollLeft = e3.scrollLeft), e3.scrollTop && (Z3.rr_scrollTop = e3.scrollTop)), J3) {
5354
+ if (K3 || (e3.scrollLeft && (Q3.rr_scrollLeft = e3.scrollLeft), e3.scrollTop && (Q3.rr_scrollTop = e3.scrollTop)), Z3) {
5342
5355
  const { width: w4, height: C4 } = e3.getBoundingClientRect();
5343
- Z3 = { class: Z3.class, rr_width: `${w4}px`, rr_height: `${C4}px` };
5356
+ Q3 = { class: Q3.class, rr_width: `${w4}px`, rr_height: `${C4}px` };
5344
5357
  }
5345
5358
  let te2;
5346
- "iframe" === Q3 && !H3(Z3.src) && (e3.contentDocument || (Z3.rr_src = Z3.src), delete Z3.src);
5359
+ "iframe" === J3 && !H3(Q3.src) && (e3.contentDocument || (Q3.rr_src = Q3.src), delete Q3.src);
5347
5360
  try {
5348
- customElements.get(Q3) && (te2 = true);
5361
+ customElements.get(J3) && (te2 = true);
5349
5362
  } catch {
5350
5363
  }
5351
- return { type: zo.Element, tagName: Q3, attributes: Z3, childNodes: [], isSVG: Bi(e3) || void 0, needBlock: J3, rootId: X3, isCustom: te2 };
5352
- })(e2, { doc: C2, blockClass: M2, blockSelector: I2, inlineStylesheet: U2, maskInputOptions: j2, maskInputFn: z2, dataURLOptions: H2, inlineImages: K2, recordCanvas: X2, keepIframeSrcFn: Y2, newlyAddedElement: J2, rootId: Z2, corruptedRules: Q2 });
5364
+ return { type: zo.Element, tagName: J3, attributes: Q3, childNodes: [], isSVG: Bi(e3) || void 0, needBlock: Z3, rootId: X3, isCustom: te2 };
5365
+ })(e2, { doc: C2, blockClass: M2, blockSelector: I2, inlineStylesheet: U2, maskInputOptions: j2, maskInputFn: z2, dataURLOptions: H2, inlineImages: K2, recordCanvas: X2, keepIframeSrcFn: Y2, newlyAddedElement: Z2, rootId: Q2, corruptedRules: J2 });
5353
5366
  case e2.TEXT_NODE:
5354
5367
  return (function Zi(e3, w3) {
5355
5368
  var C3;
@@ -5365,11 +5378,11 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
5365
5378
  U3 = Nt(U3, Xt(w3.doc));
5366
5379
  }
5367
5380
  return W3 && (U3 = "SCRIPT_PLACEHOLDER"), !j3 && !W3 && U3 && x3 && (U3 = M3 ? M3(U3, e3.parentElement) : U3.replace(/[\S]/g, "*")), { type: zo.Text, textContent: U3 || "", isStyle: j3, rootId: I3 };
5368
- })(e2, { doc: C2, needsMask: _2, maskTextFn: W2, rootId: Z2, corruptedRules: Q2 });
5381
+ })(e2, { doc: C2, needsMask: _2, maskTextFn: W2, rootId: Q2, corruptedRules: J2 });
5369
5382
  case e2.CDATA_SECTION_NODE:
5370
- return { type: zo.CDATA, textContent: "", rootId: Z2 };
5383
+ return { type: zo.CDATA, textContent: "", rootId: Q2 };
5371
5384
  case e2.COMMENT_NODE:
5372
- return { type: zo.Comment, textContent: e2.textContent || "", rootId: Z2 };
5385
+ return { type: zo.Comment, textContent: e2.textContent || "", rootId: Q2 };
5373
5386
  default:
5374
5387
  return false;
5375
5388
  }
@@ -5378,10 +5391,10 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
5378
5391
  return null == e2 ? "" : e2.toLowerCase();
5379
5392
  }
5380
5393
  function ve(e2, w2) {
5381
- const { doc: C2, mirror: x2, blockClass: M2, blockSelector: I2, maskTextClass: _2, maskTextSelector: U2, skipChild: j2 = false, inlineStylesheet: W2 = true, maskInputOptions: z2 = {}, maskTextFn: H2, maskInputFn: K2, slimDOMOptions: X2, dataURLOptions: Y2 = {}, inlineImages: J2 = false, recordCanvas: Q2 = false, onSerialize: Z2, onIframeLoad: ee2, iframeLoadTimeout: te2 = 5e3, onStylesheetLoad: ne2, stylesheetLoadTimeout: re2 = 5e3, keepIframeSrcFn: se2 = () => false, newlyAddedElement: ie2 = false, corruptedRules: ae2 } = w2;
5394
+ const { doc: C2, mirror: x2, blockClass: M2, blockSelector: I2, maskTextClass: _2, maskTextSelector: U2, skipChild: j2 = false, inlineStylesheet: W2 = true, maskInputOptions: z2 = {}, maskTextFn: H2, maskInputFn: K2, slimDOMOptions: X2, dataURLOptions: Y2 = {}, inlineImages: Z2 = false, recordCanvas: J2 = false, onSerialize: Q2, onIframeLoad: ee2, iframeLoadTimeout: te2 = 5e3, onStylesheetLoad: ne2, stylesheetLoadTimeout: re2 = 5e3, keepIframeSrcFn: se2 = () => false, newlyAddedElement: ie2 = false, corruptedRules: ae2 } = w2;
5382
5395
  let { needsMask: ce2 } = w2, { preserveWhiteSpace: le2 = true } = w2;
5383
5396
  ce2 || (ce2 = Pn(e2, _2, U2, void 0 === ce2));
5384
- const de2 = Gi(e2, { doc: C2, mirror: x2, blockClass: M2, blockSelector: I2, needsMask: ce2, inlineStylesheet: W2, maskInputOptions: z2, maskTextFn: H2, maskInputFn: K2, dataURLOptions: Y2, inlineImages: J2, recordCanvas: Q2, keepIframeSrcFn: se2, newlyAddedElement: ie2, corruptedRules: ae2 });
5397
+ const de2 = Gi(e2, { doc: C2, mirror: x2, blockClass: M2, blockSelector: I2, needsMask: ce2, inlineStylesheet: W2, maskInputOptions: z2, maskTextFn: H2, maskInputFn: K2, dataURLOptions: Y2, inlineImages: Z2, recordCanvas: J2, keepIframeSrcFn: se2, newlyAddedElement: ie2, corruptedRules: ae2 });
5385
5398
  if (!de2) return console.warn(e2, "not serialized"), null;
5386
5399
  let pe2;
5387
5400
  pe2 = x2.hasNode(e2) ? x2.getId(e2) : (function Xi(e3, w3) {
@@ -5389,7 +5402,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
5389
5402
  })(de2, X2) || !le2 && de2.type === zo.Text && !de2.isStyle && !de2.textContent.replace(/^\s+|\s+$/gm, "").length ? -2 : En();
5390
5403
  const me2 = Object.assign(de2, { id: pe2 });
5391
5404
  if (x2.add(e2, me2), -2 === pe2) return null;
5392
- Z2 && Z2(e2);
5405
+ Q2 && Q2(e2);
5393
5406
  let ge2 = !j2;
5394
5407
  if (me2.type === zo.Element) {
5395
5408
  ge2 = ge2 && !me2.needBlock, delete me2.needBlock;
@@ -5398,7 +5411,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
5398
5411
  }
5399
5412
  if ((me2.type === zo.Document || me2.type === zo.Element) && ge2) {
5400
5413
  X2.headWhitespace && me2.type === zo.Element && "head" === me2.tagName && (le2 = false);
5401
- const w3 = { doc: C2, mirror: x2, blockClass: M2, blockSelector: I2, needsMask: ce2, maskTextClass: _2, maskTextSelector: U2, skipChild: j2, inlineStylesheet: W2, maskInputOptions: z2, maskTextFn: H2, maskInputFn: K2, slimDOMOptions: X2, dataURLOptions: Y2, inlineImages: J2, recordCanvas: Q2, preserveWhiteSpace: le2, onSerialize: Z2, onIframeLoad: ee2, iframeLoadTimeout: te2, onStylesheetLoad: ne2, stylesheetLoadTimeout: re2, keepIframeSrcFn: se2, corruptedRules: ae2 };
5414
+ const w3 = { doc: C2, mirror: x2, blockClass: M2, blockSelector: I2, needsMask: ce2, maskTextClass: _2, maskTextSelector: U2, skipChild: j2, inlineStylesheet: W2, maskInputOptions: z2, maskTextFn: H2, maskInputFn: K2, slimDOMOptions: X2, dataURLOptions: Y2, inlineImages: Z2, recordCanvas: J2, preserveWhiteSpace: le2, onSerialize: Q2, onIframeLoad: ee2, iframeLoadTimeout: te2, onStylesheetLoad: ne2, stylesheetLoadTimeout: re2, keepIframeSrcFn: se2, corruptedRules: ae2 };
5402
5415
  if (me2.type !== zo.Element || "textarea" !== me2.tagName || void 0 === me2.attributes.value) for (const C3 of Array.from(e2.childNodes)) {
5403
5416
  const e3 = ve(C3, w3);
5404
5417
  e3 && me2.childNodes.push(e3);
@@ -5431,7 +5444,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
5431
5444
  })(e2, () => {
5432
5445
  const w3 = e2.contentDocument;
5433
5446
  if (w3 && ee2) {
5434
- const C3 = ve(w3, { doc: w3, mirror: x2, blockClass: M2, blockSelector: I2, needsMask: ce2, maskTextClass: _2, maskTextSelector: U2, skipChild: false, inlineStylesheet: W2, maskInputOptions: z2, maskTextFn: H2, maskInputFn: K2, slimDOMOptions: X2, dataURLOptions: Y2, inlineImages: J2, recordCanvas: Q2, preserveWhiteSpace: le2, onSerialize: Z2, onIframeLoad: ee2, iframeLoadTimeout: te2, onStylesheetLoad: ne2, stylesheetLoadTimeout: re2, keepIframeSrcFn: se2 });
5447
+ const C3 = ve(w3, { doc: w3, mirror: x2, blockClass: M2, blockSelector: I2, needsMask: ce2, maskTextClass: _2, maskTextSelector: U2, skipChild: false, inlineStylesheet: W2, maskInputOptions: z2, maskTextFn: H2, maskInputFn: K2, slimDOMOptions: X2, dataURLOptions: Y2, inlineImages: Z2, recordCanvas: J2, preserveWhiteSpace: le2, onSerialize: Q2, onIframeLoad: ee2, iframeLoadTimeout: te2, onStylesheetLoad: ne2, stylesheetLoadTimeout: re2, keepIframeSrcFn: se2 });
5435
5448
  C3 && ee2(e2, C3);
5436
5449
  }
5437
5450
  }, te2), me2.type === zo.Element && "link" === me2.tagName && "string" == typeof me2.attributes.rel && ("stylesheet" === me2.attributes.rel || "preload" === me2.attributes.rel && "string" == typeof me2.attributes.href && "css" === Rn(me2.attributes.href)) && (function $i(e3, w3, C3) {
@@ -5450,7 +5463,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
5450
5463
  });
5451
5464
  })(e2, () => {
5452
5465
  if (ne2) {
5453
- const w3 = ve(e2, { doc: C2, mirror: x2, blockClass: M2, blockSelector: I2, needsMask: ce2, maskTextClass: _2, maskTextSelector: U2, skipChild: false, inlineStylesheet: W2, maskInputOptions: z2, maskTextFn: H2, maskInputFn: K2, slimDOMOptions: X2, dataURLOptions: Y2, inlineImages: J2, recordCanvas: Q2, preserveWhiteSpace: le2, onSerialize: Z2, onIframeLoad: ee2, iframeLoadTimeout: te2, onStylesheetLoad: ne2, stylesheetLoadTimeout: re2, keepIframeSrcFn: se2 });
5466
+ const w3 = ve(e2, { doc: C2, mirror: x2, blockClass: M2, blockSelector: I2, needsMask: ce2, maskTextClass: _2, maskTextSelector: U2, skipChild: false, inlineStylesheet: W2, maskInputOptions: z2, maskTextFn: H2, maskInputFn: K2, slimDOMOptions: X2, dataURLOptions: Y2, inlineImages: Z2, recordCanvas: J2, preserveWhiteSpace: le2, onSerialize: Q2, onIframeLoad: ee2, iframeLoadTimeout: te2, onStylesheetLoad: ne2, stylesheetLoadTimeout: re2, keepIframeSrcFn: se2 });
5454
5467
  w3 && ne2(e2, w3);
5455
5468
  }
5456
5469
  }, re2), me2;
@@ -5660,15 +5673,15 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
5660
5673
  };
5661
5674
  var ys = ms;
5662
5675
  ms.default = ms;
5663
- let ws = ys;
5676
+ let vs = ys;
5664
5677
  function xs(e2, w2) {
5665
- new ws(w2).stringify(e2);
5678
+ new vs(w2).stringify(e2);
5666
5679
  }
5667
- var vs = xs;
5680
+ var ws = xs;
5668
5681
  xs.default = xs;
5669
5682
  var bs = {};
5670
5683
  bs.isClean = Symbol("isClean"), bs.my = Symbol("my");
5671
- let Ss = hs, ks = ys, Cs = vs, { isClean: Ms, my: Es } = bs;
5684
+ let Ss = hs, ks = ys, Cs = ws, { isClean: Ms, my: Es } = bs;
5672
5685
  function Is(e2, w2) {
5673
5686
  let C2 = new e2.constructor();
5674
5687
  for (let x2 in e2) {
@@ -5863,7 +5876,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
5863
5876
  function Vn(e2) {
5864
5877
  if (e2[Xs] = false, e2.proxyOf.nodes) for (let w2 of e2.proxyOf.nodes) Vn(w2);
5865
5878
  }
5866
- let Js = class $n extends Ks {
5879
+ let Zs = class $n extends Ks {
5867
5880
  get first() {
5868
5881
  if (this.proxyOf.nodes) return this.proxyOf.nodes[0];
5869
5882
  }
@@ -6009,22 +6022,22 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
6009
6022
  }));
6010
6023
  }
6011
6024
  };
6012
- Js.registerParse = (e2) => {
6025
+ Zs.registerParse = (e2) => {
6013
6026
  $s = e2;
6014
- }, Js.registerRule = (e2) => {
6027
+ }, Zs.registerRule = (e2) => {
6015
6028
  Gs = e2;
6016
- }, Js.registerAtRule = (e2) => {
6029
+ }, Zs.registerAtRule = (e2) => {
6017
6030
  Bs = e2;
6018
- }, Js.registerRoot = (e2) => {
6031
+ }, Zs.registerRoot = (e2) => {
6019
6032
  zs = e2;
6020
6033
  };
6021
- var Zs = Js;
6022
- Js.default = Js, Js.rebuild = (e2) => {
6034
+ var Js = Zs;
6035
+ Zs.default = Zs, Zs.rebuild = (e2) => {
6023
6036
  "atrule" === e2.type ? Object.setPrototypeOf(e2, Bs.prototype) : "rule" === e2.type ? Object.setPrototypeOf(e2, Gs.prototype) : "decl" === e2.type ? Object.setPrototypeOf(e2, qs.prototype) : "comment" === e2.type ? Object.setPrototypeOf(e2, Hs.prototype) : "root" === e2.type && Object.setPrototypeOf(e2, zs.prototype), e2[Ys] = true, e2.nodes && e2.nodes.forEach((e3) => {
6024
- Js.rebuild(e3);
6037
+ Zs.rebuild(e3);
6025
6038
  });
6026
6039
  };
6027
- let ei = Zs, ti = class extends ei {
6040
+ let ei = Js, ti = class extends ei {
6028
6041
  constructor(e2) {
6029
6042
  super(e2), this.type = "atrule";
6030
6043
  }
@@ -6037,7 +6050,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
6037
6050
  };
6038
6051
  var ni = ti;
6039
6052
  ti.default = ti, ei.registerAtRule(ti);
6040
- let ri, oi, si = Zs, ii = class extends si {
6053
+ let ri, oi, si = Js, ii = class extends si {
6041
6054
  constructor(e2) {
6042
6055
  super({ type: "document", ...e2 }), this.nodes || (this.nodes = []);
6043
6056
  }
@@ -6058,7 +6071,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
6058
6071
  return w2;
6059
6072
  } };
6060
6073
  let { existsSync: pi, readFileSync: hi } = ls, { dirname: fi, join: mi } = ls, { SourceMapConsumer: gi, SourceMapGenerator: yi } = ls;
6061
- let wi = class {
6074
+ let vi = class {
6062
6075
  constructor(e2, w2) {
6063
6076
  if (false === w2.map) return;
6064
6077
  this.loadAnnotation(e2), this.inline = this.startWith(this.annotation, "data:");
@@ -6126,9 +6139,9 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
6126
6139
  return !!(this.consumer().sourcesContent && this.consumer().sourcesContent.length > 0);
6127
6140
  }
6128
6141
  };
6129
- var vi = wi;
6130
- wi.default = wi;
6131
- let { nanoid: bi } = di, { isAbsolute: Si, resolve: Ti } = ls, { SourceMapConsumer: Li, SourceMapGenerator: _i } = ls, { fileURLToPath: Di, pathToFileURL: Ni } = ls, Fi = hs, Ui = vi, Wi = ls, qi = Symbol("fromOffsetCache"), ea = !(!Li || !_i), ta = !(!Ti || !Si), na = class {
6142
+ var wi = vi;
6143
+ vi.default = vi;
6144
+ let { nanoid: bi } = di, { isAbsolute: Si, resolve: Ti } = ls, { SourceMapConsumer: Li, SourceMapGenerator: _i } = ls, { fileURLToPath: Di, pathToFileURL: Ni } = ls, Fi = hs, Ui = wi, Wi = ls, qi = Symbol("fromOffsetCache"), ea = !(!Li || !_i), ta = !(!Ti || !Si), na = class {
6132
6145
  get from() {
6133
6146
  return this.file || this.id;
6134
6147
  }
@@ -6213,7 +6226,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
6213
6226
  };
6214
6227
  var ra = na;
6215
6228
  na.default = na, Wi && Wi.registerInput && Wi.registerInput(na);
6216
- let oa, ia, aa = Zs, ca = class extends aa {
6229
+ let oa, ia, aa = Js, ca = class extends aa {
6217
6230
  constructor(e2) {
6218
6231
  super(e2), this.type = "root", this.nodes || (this.nodes = []);
6219
6232
  }
@@ -6250,7 +6263,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
6250
6263
  } };
6251
6264
  var da = ua;
6252
6265
  ua.default = ua;
6253
- let pa = Zs, ha = da, fa = class extends pa {
6266
+ let pa = Js, ha = da, fa = class extends pa {
6254
6267
  get selectors() {
6255
6268
  return ha.comma(this.selector);
6256
6269
  }
@@ -6264,7 +6277,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
6264
6277
  };
6265
6278
  var ma = fa;
6266
6279
  fa.default = fa, pa.registerRule(fa);
6267
- let ga = ni, ya = As, va = Fs, ba = ra, Sa = vi, ka = la, Ca = ma;
6280
+ let ga = ni, ya = As, va = Fs, ba = ra, Sa = wi, ka = la, Ca = ma;
6268
6281
  function Ye(e2, w2) {
6269
6282
  if (Array.isArray(e2)) return e2.map((e3) => Ye(e3));
6270
6283
  let { inputs: C2, ...x2 } = e2;
@@ -6419,29 +6432,29 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
6419
6432
  };
6420
6433
  const Na = /[\t\n\f\r "#'()/;[\\\]{}]/g, Fa = /[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g, Ba = /.[\r\n"'(/\\]/, $a = /[\da-f]/i;
6421
6434
  let Ua = ni, ja = As, Wa = Fs, za = la, Ga = ma, qa = function(e2, w2 = {}) {
6422
- let C2, x2, M2, I2, _2, U2, j2, W2, z2, H2, K2 = e2.css.valueOf(), X2 = w2.ignoreErrors, Y2 = K2.length, J2 = 0, Q2 = [], Z2 = [];
6435
+ let C2, x2, M2, I2, _2, U2, j2, W2, z2, H2, K2 = e2.css.valueOf(), X2 = w2.ignoreErrors, Y2 = K2.length, Z2 = 0, J2 = [], Q2 = [];
6423
6436
  function v2(w3) {
6424
- throw e2.error("Unclosed " + w3, J2);
6437
+ throw e2.error("Unclosed " + w3, Z2);
6425
6438
  }
6426
6439
  return { back: function O(e3) {
6427
- Z2.push(e3);
6440
+ Q2.push(e3);
6428
6441
  }, endOfFile: function S() {
6429
- return 0 === Z2.length && J2 >= Y2;
6442
+ return 0 === Q2.length && Z2 >= Y2;
6430
6443
  }, nextToken: function k2(e3) {
6431
- if (Z2.length) return Z2.pop();
6432
- if (J2 >= Y2) return;
6444
+ if (Q2.length) return Q2.pop();
6445
+ if (Z2 >= Y2) return;
6433
6446
  let w3 = !!e3 && e3.ignoreUnclosed;
6434
- switch (C2 = K2.charCodeAt(J2), C2) {
6447
+ switch (C2 = K2.charCodeAt(Z2), C2) {
6435
6448
  case 10:
6436
6449
  case 32:
6437
6450
  case 9:
6438
6451
  case 13:
6439
6452
  case 12:
6440
- I2 = J2;
6453
+ I2 = Z2;
6441
6454
  do {
6442
6455
  I2 += 1, C2 = K2.charCodeAt(I2);
6443
6456
  } while (32 === C2 || 10 === C2 || 9 === C2 || 13 === C2 || 12 === C2);
6444
- U2 = ["space", K2.slice(J2, I2)], J2 = I2 - 1;
6457
+ U2 = ["space", K2.slice(Z2, I2)], Z2 = I2 - 1;
6445
6458
  break;
6446
6459
  case 91:
6447
6460
  case 93:
@@ -6451,57 +6464,57 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
6451
6464
  case 59:
6452
6465
  case 41: {
6453
6466
  let e4 = String.fromCharCode(C2);
6454
- U2 = [e4, e4, J2];
6467
+ U2 = [e4, e4, Z2];
6455
6468
  break;
6456
6469
  }
6457
6470
  case 40:
6458
- if (H2 = Q2.length ? Q2.pop()[1] : "", z2 = K2.charCodeAt(J2 + 1), "url" === H2 && 39 !== z2 && 34 !== z2 && 32 !== z2 && 10 !== z2 && 9 !== z2 && 12 !== z2 && 13 !== z2) {
6459
- I2 = J2;
6471
+ if (H2 = J2.length ? J2.pop()[1] : "", z2 = K2.charCodeAt(Z2 + 1), "url" === H2 && 39 !== z2 && 34 !== z2 && 32 !== z2 && 10 !== z2 && 9 !== z2 && 12 !== z2 && 13 !== z2) {
6472
+ I2 = Z2;
6460
6473
  do {
6461
6474
  if (j2 = false, I2 = K2.indexOf(")", I2 + 1), -1 === I2) {
6462
6475
  if (X2 || w3) {
6463
- I2 = J2;
6476
+ I2 = Z2;
6464
6477
  break;
6465
6478
  }
6466
6479
  v2("bracket");
6467
6480
  }
6468
6481
  for (W2 = I2; 92 === K2.charCodeAt(W2 - 1); ) W2 -= 1, j2 = !j2;
6469
6482
  } while (j2);
6470
- U2 = ["brackets", K2.slice(J2, I2 + 1), J2, I2], J2 = I2;
6471
- } else I2 = K2.indexOf(")", J2 + 1), x2 = K2.slice(J2, I2 + 1), -1 === I2 || Ba.test(x2) ? U2 = ["(", "(", J2] : (U2 = ["brackets", x2, J2, I2], J2 = I2);
6483
+ U2 = ["brackets", K2.slice(Z2, I2 + 1), Z2, I2], Z2 = I2;
6484
+ } else I2 = K2.indexOf(")", Z2 + 1), x2 = K2.slice(Z2, I2 + 1), -1 === I2 || Ba.test(x2) ? U2 = ["(", "(", Z2] : (U2 = ["brackets", x2, Z2, I2], Z2 = I2);
6472
6485
  break;
6473
6486
  case 39:
6474
6487
  case 34:
6475
- _2 = 39 === C2 ? "'" : '"', I2 = J2;
6488
+ _2 = 39 === C2 ? "'" : '"', I2 = Z2;
6476
6489
  do {
6477
6490
  if (j2 = false, I2 = K2.indexOf(_2, I2 + 1), -1 === I2) {
6478
6491
  if (X2 || w3) {
6479
- I2 = J2 + 1;
6492
+ I2 = Z2 + 1;
6480
6493
  break;
6481
6494
  }
6482
6495
  v2("string");
6483
6496
  }
6484
6497
  for (W2 = I2; 92 === K2.charCodeAt(W2 - 1); ) W2 -= 1, j2 = !j2;
6485
6498
  } while (j2);
6486
- U2 = ["string", K2.slice(J2, I2 + 1), J2, I2], J2 = I2;
6499
+ U2 = ["string", K2.slice(Z2, I2 + 1), Z2, I2], Z2 = I2;
6487
6500
  break;
6488
6501
  case 64:
6489
- Na.lastIndex = J2 + 1, Na.test(K2), I2 = 0 === Na.lastIndex ? K2.length - 1 : Na.lastIndex - 2, U2 = ["at-word", K2.slice(J2, I2 + 1), J2, I2], J2 = I2;
6502
+ Na.lastIndex = Z2 + 1, Na.test(K2), I2 = 0 === Na.lastIndex ? K2.length - 1 : Na.lastIndex - 2, U2 = ["at-word", K2.slice(Z2, I2 + 1), Z2, I2], Z2 = I2;
6490
6503
  break;
6491
6504
  case 92:
6492
- for (I2 = J2, M2 = true; 92 === K2.charCodeAt(I2 + 1); ) I2 += 1, M2 = !M2;
6505
+ for (I2 = Z2, M2 = true; 92 === K2.charCodeAt(I2 + 1); ) I2 += 1, M2 = !M2;
6493
6506
  if (C2 = K2.charCodeAt(I2 + 1), M2 && 47 !== C2 && 32 !== C2 && 10 !== C2 && 9 !== C2 && 13 !== C2 && 12 !== C2 && (I2 += 1, $a.test(K2.charAt(I2)))) {
6494
6507
  for (; $a.test(K2.charAt(I2 + 1)); ) I2 += 1;
6495
6508
  32 === K2.charCodeAt(I2 + 1) && (I2 += 1);
6496
6509
  }
6497
- U2 = ["word", K2.slice(J2, I2 + 1), J2, I2], J2 = I2;
6510
+ U2 = ["word", K2.slice(Z2, I2 + 1), Z2, I2], Z2 = I2;
6498
6511
  break;
6499
6512
  default:
6500
- 47 === C2 && 42 === K2.charCodeAt(J2 + 1) ? (I2 = K2.indexOf("*/", J2 + 2) + 1, 0 === I2 && (X2 || w3 ? I2 = K2.length : v2("comment")), U2 = ["comment", K2.slice(J2, I2 + 1), J2, I2], J2 = I2) : (Fa.lastIndex = J2 + 1, Fa.test(K2), I2 = 0 === Fa.lastIndex ? K2.length - 1 : Fa.lastIndex - 2, U2 = ["word", K2.slice(J2, I2 + 1), J2, I2], Q2.push(U2), J2 = I2);
6513
+ 47 === C2 && 42 === K2.charCodeAt(Z2 + 1) ? (I2 = K2.indexOf("*/", Z2 + 2) + 1, 0 === I2 && (X2 || w3 ? I2 = K2.length : v2("comment")), U2 = ["comment", K2.slice(Z2, I2 + 1), Z2, I2], Z2 = I2) : (Fa.lastIndex = Z2 + 1, Fa.test(K2), I2 = 0 === Fa.lastIndex ? K2.length - 1 : Fa.lastIndex - 2, U2 = ["word", K2.slice(Z2, I2 + 1), Z2, I2], J2.push(U2), Z2 = I2);
6501
6514
  }
6502
- return J2++, U2;
6515
+ return Z2++, U2;
6503
6516
  }, position: function b() {
6504
- return J2;
6517
+ return Z2;
6505
6518
  } };
6506
6519
  };
6507
6520
  const Va = { empty: true, space: true };
@@ -6749,7 +6762,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
6749
6762
  throw this.input.error("At-rule without name", { offset: w2[2] }, { offset: w2[2] + w2[1].length });
6750
6763
  }
6751
6764
  };
6752
- let Ka = Zs, Xa = ra, Ya = Ha;
6765
+ let Ka = Js, Xa = ra, Ya = Ha;
6753
6766
  function zt(e2, w2) {
6754
6767
  let C2 = new Xa(e2, w2), x2 = new Ya(C2);
6755
6768
  try {
@@ -6759,9 +6772,9 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
6759
6772
  }
6760
6773
  return x2.root;
6761
6774
  }
6762
- var Ja = zt;
6775
+ var Za = zt;
6763
6776
  zt.default = zt, Ka.registerParse(zt);
6764
- let Qa = class {
6777
+ let Ja = class {
6765
6778
  constructor(e2, w2 = {}) {
6766
6779
  if (this.type = "warning", this.text = e2, w2.node && w2.node.source) {
6767
6780
  let e3 = w2.node.rangeBy(w2);
@@ -6773,9 +6786,9 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
6773
6786
  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;
6774
6787
  }
6775
6788
  };
6776
- var Za = Qa;
6777
- Qa.default = Qa;
6778
- let ec = Za, tc = class {
6789
+ var Qa = Ja;
6790
+ Ja.default = Ja;
6791
+ let ec = Qa, tc = class {
6779
6792
  get content() {
6780
6793
  return this.css;
6781
6794
  }
@@ -6800,7 +6813,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
6800
6813
  var io = function(e2) {
6801
6814
  rc[e2] || (rc[e2] = true, typeof console < "u" && console.warn && console.warn(e2));
6802
6815
  };
6803
- let oc = Zs, sc = ci, ic = Pa, ac = Ja, cc = nc, lc = la, uc = vs, { isClean: dc, my: pc } = bs, hc = io;
6816
+ let oc = Js, sc = ci, ic = Pa, ac = Za, cc = nc, lc = la, uc = ws, { isClean: dc, my: pc } = bs, hc = io;
6804
6817
  const fc = { atrule: "AtRule", comment: "Comment", decl: "Declaration", document: "Document", root: "Root", rule: "Rule" }, mc = { 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 };
6805
6818
  function De(e2) {
6806
6819
  return "object" == typeof e2 && "function" == typeof e2.then;
@@ -6816,7 +6829,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
6816
6829
  function Ns(e2) {
6817
6830
  return e2[dc] = false, e2.nodes && e2.nodes.forEach((e3) => Ns(e3)), e2;
6818
6831
  }
6819
- let yc = {}, wc = class lo {
6832
+ let yc = {}, vc = class lo {
6820
6833
  get content() {
6821
6834
  return this.stringify().content;
6822
6835
  }
@@ -7032,14 +7045,14 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
7032
7045
  return this.sync().warnings();
7033
7046
  }
7034
7047
  };
7035
- wc.registerPostcss = (e2) => {
7048
+ vc.registerPostcss = (e2) => {
7036
7049
  yc = e2;
7037
7050
  };
7038
- var vc = wc;
7039
- wc.default = wc, lc.registerLazyResult(wc), sc.registerLazyResult(wc);
7040
- let bc = Pa, Sc = Ja;
7051
+ var wc = vc;
7052
+ vc.default = vc, lc.registerLazyResult(vc), sc.registerLazyResult(vc);
7053
+ let bc = Pa, Sc = Za;
7041
7054
  const kc = nc;
7042
- let Cc = vs, xc = io, Mc = class {
7055
+ let Cc = ws, xc = io, Mc = class {
7043
7056
  get content() {
7044
7057
  return this.result.css;
7045
7058
  }
@@ -7109,7 +7122,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
7109
7122
  };
7110
7123
  var Ic = Mc;
7111
7124
  Mc.default = Mc;
7112
- let Rc = ci, Oc = vc, Lc = Ic, _c = la, Ac = class {
7125
+ let Rc = ci, Oc = wc, Lc = Ic, _c = la, Ac = class {
7113
7126
  constructor(e2 = []) {
7114
7127
  this.version = "8.5.3", this.plugins = this.normalize(e2);
7115
7128
  }
@@ -7133,7 +7146,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
7133
7146
  };
7134
7147
  var Dc = Ac;
7135
7148
  Ac.default = Ac, _c.registerProcessor(Ac), Rc.registerProcessor(Ac);
7136
- let Pc = ni, Nc = As, Fc = Zs, Bc = hs, $c = Fs, Uc = ci, jc = xa, Wc = ra, zc = vc, Gc = da, Vc = Rs, Hc = Ja, qc = Dc, Kc = nc, Xc = la, Yc = ma, Jc = vs, Qc = Za;
7149
+ let Pc = ni, Nc = As, Fc = Js, Bc = hs, $c = Fs, Uc = ci, jc = xa, Wc = ra, zc = wc, Gc = da, Vc = Rs, Hc = Za, qc = Dc, Kc = nc, Xc = la, Yc = ma, Zc = ws, Jc = Qa;
7137
7150
  function N(...e2) {
7138
7151
  return 1 === e2.length && Array.isArray(e2[0]) && (e2 = e2[0]), new qc(e2);
7139
7152
  }
@@ -7147,10 +7160,10 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
7147
7160
  return Object.defineProperty(r, "postcss", { get: () => (C2 || (C2 = r()), C2) }), r.process = function(e3, w3, C3) {
7148
7161
  return N([r(C3)]).process(e3, w3);
7149
7162
  }, r;
7150
- }, N.stringify = Jc, N.parse = Hc, N.fromJSON = jc, N.list = Gc, N.comment = (e2) => new Nc(e2), N.atRule = (e2) => new Pc(e2), N.decl = (e2) => new $c(e2), N.rule = (e2) => new Yc(e2), N.root = (e2) => new Xc(e2), N.document = (e2) => new Uc(e2), N.CssSyntaxError = Bc, N.Declaration = $c, N.Container = Fc, N.Processor = qc, N.Document = Uc, N.Comment = Nc, N.Warning = Qc, N.AtRule = Pc, N.Result = Kc, N.Input = Wc, N.Rule = Yc, N.Root = Xc, N.Node = Vc, zc.registerPostcss(N);
7151
- var Zc = N;
7163
+ }, N.stringify = Zc, N.parse = Hc, N.fromJSON = jc, N.list = Gc, N.comment = (e2) => new Nc(e2), N.atRule = (e2) => new Pc(e2), N.decl = (e2) => new $c(e2), N.rule = (e2) => new Yc(e2), N.root = (e2) => new Xc(e2), N.document = (e2) => new Uc(e2), N.CssSyntaxError = Bc, N.Declaration = $c, N.Container = Fc, N.Processor = qc, N.Document = Uc, N.Comment = Nc, N.Warning = Jc, N.AtRule = Pc, N.Result = Kc, N.Input = Wc, N.Rule = Yc, N.Root = Xc, N.Node = Vc, zc.registerPostcss(N);
7164
+ var Qc = N;
7152
7165
  N.default = N;
7153
- const tl = Ki(Zc);
7166
+ const tl = Ki(Qc);
7154
7167
  tl.stringify, tl.fromJSON, tl.plugin, tl.parse, tl.list, tl.document, tl.comment, tl.atRule, tl.rule, tl.decl, tl.root, tl.CssSyntaxError, tl.Declaration, tl.Container, tl.Processor, tl.Document, tl.Comment, tl.Warning, tl.AtRule, tl.Result, tl.Input, tl.Rule, tl.Root, tl.Node;
7155
7168
  var nl = ((e2) => (e2[e2.DomContentLoaded = 0] = "DomContentLoaded", e2[e2.Load = 1] = "Load", e2[e2.FullSnapshot = 2] = "FullSnapshot", e2[e2.IncrementalSnapshot = 3] = "IncrementalSnapshot", e2[e2.Meta = 4] = "Meta", e2[e2.Custom = 5] = "Custom", e2[e2.Plugin = 6] = "Plugin", e2[e2.Device = 24] = "Device", e2[e2.SailfishCustom = 25] = "SailfishCustom", e2))(nl || {}), rl = ((e2) => (e2[e2.Mutation = 0] = "Mutation", e2[e2.MouseMove = 1] = "MouseMove", e2[e2.MouseInteraction = 2] = "MouseInteraction", e2[e2.Scroll = 3] = "Scroll", e2[e2.ViewportResize = 4] = "ViewportResize", e2[e2.Input = 5] = "Input", e2[e2.TouchMove = 6] = "TouchMove", e2[e2.MediaInteraction = 7] = "MediaInteraction", e2[e2.StyleSheetRule = 8] = "StyleSheetRule", e2[e2.CanvasMutation = 9] = "CanvasMutation", e2[e2.Font = 10] = "Font", e2[e2.Log = 11] = "Log", e2[e2.Drag = 12] = "Drag", e2[e2.StyleDeclaration = 13] = "StyleDeclaration", e2[e2.Selection = 14] = "Selection", e2[e2.AdoptedStyleSheet = 15] = "AdoptedStyleSheet", e2[e2.CustomElement = 16] = "CustomElement", e2[e2.Typing = 17] = "Typing", e2))(rl || {}), ol = ((e2) => (e2.Append = "append", e2.Insert = "insert", e2.Delete = "delete", e2.Replace = "replace", e2))(ol || {}), sl = ((e2) => (e2[e2.MouseUp = 0] = "MouseUp", e2[e2.MouseDown = 1] = "MouseDown", e2[e2.Click = 2] = "Click", e2[e2.ContextMenu = 3] = "ContextMenu", e2[e2.DblClick = 4] = "DblClick", e2[e2.Focus = 5] = "Focus", e2[e2.Blur = 6] = "Blur", e2[e2.TouchStart = 7] = "TouchStart", e2[e2.TouchMove_Departed = 8] = "TouchMove_Departed", e2[e2.TouchEnd = 9] = "TouchEnd", e2[e2.TouchCancel = 10] = "TouchCancel", e2))(sl || {}), il = ((e2) => (e2[e2.Mouse = 0] = "Mouse", e2[e2.Pen = 1] = "Pen", e2[e2.Touch = 2] = "Touch", e2))(il || {}), al = ((e2) => (e2[e2["2D"] = 0] = "2D", e2[e2.WebGL = 1] = "WebGL", e2[e2.WebGL2 = 2] = "WebGL2", e2))(al || {}), cl = ((e2) => (e2[e2.Play = 0] = "Play", e2[e2.Pause = 1] = "Pause", e2[e2.Seeked = 2] = "Seeked", e2[e2.VolumeChange = 3] = "VolumeChange", e2[e2.RateChange = 4] = "RateChange", e2))(cl || {});
7156
7169
  function V(e2, w2, C2 = document) {
@@ -7833,7 +7846,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
7833
7846
  };
7834
7847
  let x2;
7835
7848
  !(function du(e3, w3) {
7836
- const { mutationCb: C3, mousemoveCb: x3, mouseInteractionCb: M3, scrollCb: I3, viewportResizeCb: _3, inputCb: U3, typingCb: j3, deviceChangeCb: W3, mediaInteractionCb: z3, styleSheetRuleCb: H3, styleDeclarationCb: K3, canvasMutationCb: X3, fontCb: Y3, selectionCb: J2, customElementCb: Q2 } = e3;
7849
+ const { mutationCb: C3, mousemoveCb: x3, mouseInteractionCb: M3, scrollCb: I3, viewportResizeCb: _3, inputCb: U3, typingCb: j3, deviceChangeCb: W3, mediaInteractionCb: z3, styleSheetRuleCb: H3, styleDeclarationCb: K3, canvasMutationCb: X3, fontCb: Y3, selectionCb: Z2, customElementCb: J2 } = e3;
7837
7850
  e3.mutationCb = (...e4) => {
7838
7851
  w3.mutation && w3.mutation(...e4), C3(...e4);
7839
7852
  }, e3.mousemoveCb = (...e4) => {
@@ -7861,9 +7874,9 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
7861
7874
  }, e3.fontCb = (...e4) => {
7862
7875
  w3.font && w3.font(...e4), Y3(...e4);
7863
7876
  }, e3.selectionCb = (...e4) => {
7864
- w3.selection && w3.selection(...e4), J2(...e4);
7877
+ w3.selection && w3.selection(...e4), Z2(...e4);
7865
7878
  }, e3.customElementCb = (...e4) => {
7866
- w3.customElement && w3.customElement(...e4), Q2(...e4);
7879
+ w3.customElement && w3.customElement(...e4), J2(...e4);
7867
7880
  };
7868
7881
  })(e2, w2), e2.recordDOM && (x2 = Oo(e2, e2.doc));
7869
7882
  const M2 = (function eu({ mousemoveCb: e3, sampling: w3, doc: C3, mirror: x3 }) {
@@ -7893,13 +7906,13 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
7893
7906
  const W4 = e4.isTrusted, H4 = C4 && C4.tagName;
7894
7907
  if (C4 && "OPTION" === H4 && (C4 = C4.parentElement), !C4 || !H4 || fl.indexOf(H4) < 0 || $(C4, x3, M3, true) || C4.classList.contains(I3) || _3 && C4.matches(_3)) return;
7895
7908
  let K4 = C4.value, X4 = false;
7896
- const Y4 = Ht(C4) || "", { value: J2, masked: Q2 } = Zt({ element: C4, maskInputOptions: U3, tagName: H4, type: Y4, value: K4, maskInputFn: j3 });
7897
- K4 = J2, ("radio" === Y4 || "checkbox" === Y4) && (X4 = C4.checked), m3(C4, z3 ? { text: K4, isChecked: X4, masked: Q2, userTriggered: W4 } : { text: K4, isChecked: X4, masked: Q2 });
7898
- const Z2 = C4.name;
7899
- "radio" === Y4 && Z2 && X4 && w3.querySelectorAll(`input[type='radio'][name='${Z2}']`).forEach((e5) => {
7909
+ const Y4 = Ht(C4) || "", { value: Z2, masked: J2 } = Zt({ element: C4, maskInputOptions: U3, tagName: H4, type: Y4, value: K4, maskInputFn: j3 });
7910
+ K4 = Z2, ("radio" === Y4 || "checkbox" === Y4) && (X4 = C4.checked), m3(C4, z3 ? { text: K4, isChecked: X4, masked: J2, userTriggered: W4 } : { text: K4, isChecked: X4, masked: J2 });
7911
+ const Q2 = C4.name;
7912
+ "radio" === Y4 && Q2 && X4 && w3.querySelectorAll(`input[type='radio'][name='${Q2}']`).forEach((e5) => {
7900
7913
  if (e5 !== C4) {
7901
7914
  const w4 = e5.value;
7902
- m3(e5, z3 ? { text: w4, isChecked: !X4, masked: Q2, userTriggered: false } : { text: w4, isChecked: !X4, masked: Q2 });
7915
+ m3(e5, z3 ? { text: w4, isChecked: !X4, masked: J2, userTriggered: false } : { text: w4, isChecked: !X4, masked: J2 });
7903
7916
  }
7904
7917
  });
7905
7918
  }
@@ -8089,8 +8102,8 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
8089
8102
  function yt(e2) {
8090
8103
  return !!(typeof window[e2] < "u" && window[e2].prototype && "insertRule" in window[e2].prototype && "deleteRule" in window[e2].prototype);
8091
8104
  }
8092
- const gl = "KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO2Zvcih2YXIgcj0iQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyIsdz10eXBlb2YgVWludDhBcnJheT4idSI/W106bmV3IFVpbnQ4QXJyYXkoMjU2KSxpPTA7aTxyLmxlbmd0aDtpKyspd1tyLmNoYXJDb2RlQXQoaSldPWk7dmFyIHA9ZnVuY3Rpb24ocyl7dmFyIGU9bmV3IFVpbnQ4QXJyYXkocyksbixhPWUubGVuZ3RoLHQ9IiI7Zm9yKG49MDtuPGE7bis9Myl0Kz1yW2Vbbl0+PjJdLHQrPXJbKGVbbl0mMyk8PDR8ZVtuKzFdPj40XSx0Kz1yWyhlW24rMV0mMTUpPDwyfGVbbisyXT4+Nl0sdCs9cltlW24rMl0mNjNdO3JldHVybiBhJTM9PT0yP3Q9dC5zdWJzdHJpbmcoMCx0Lmxlbmd0aC0xKSsiPSI6YSUzPT09MSYmKHQ9dC5zdWJzdHJpbmcoMCx0Lmxlbmd0aC0yKSsiPT0iKSx0fTtjb25zdCBsPW5ldyBNYXAsYj1uZXcgTWFwO2FzeW5jIGZ1bmN0aW9uIHkocyxlLG4pe2NvbnN0IGE9YCR7c30tJHtlfWA7aWYoIk9mZnNjcmVlbkNhbnZhcyJpbiBnbG9iYWxUaGlzKXtpZihiLmhhcyhhKSlyZXR1cm4gYi5nZXQoYSk7Y29uc3QgdD1uZXcgT2Zmc2NyZWVuQ2FudmFzKHMsZSk7dC5nZXRDb250ZXh0KCIyZCIpO2NvbnN0IGc9YXdhaXQoYXdhaXQgdC5jb252ZXJ0VG9CbG9iKG4pKS5hcnJheUJ1ZmZlcigpLGM9cChnKTtyZXR1cm4gYi5zZXQoYSxjKSxjfWVsc2UgcmV0dXJuIiJ9Y29uc3Qgbz1zZWxmO28ub25tZXNzYWdlPWFzeW5jIGZ1bmN0aW9uKHMpe2lmKCJPZmZzY3JlZW5DYW52YXMiaW4gZ2xvYmFsVGhpcyl7Y29uc3R7aWQ6ZSxiaXRtYXA6bix3aWR0aDphLGhlaWdodDp0LGRhdGFVUkxPcHRpb25zOnV9PXMuZGF0YSxnPXkoYSx0LHUpLGM9bmV3IE9mZnNjcmVlbkNhbnZhcyhhLHQpO2MuZ2V0Q29udGV4dCgiMmQiKS5kcmF3SW1hZ2UobiwwLDApLG4uY2xvc2UoKTtjb25zdCBkPWF3YWl0IGMuY29udmVydFRvQmxvYih1KSx2PWQudHlwZSxoPWF3YWl0IGQuYXJyYXlCdWZmZXIoKSxmPXAoaCk7aWYoIWwuaGFzKGUpJiZhd2FpdCBnPT09ZilyZXR1cm4gbC5zZXQoZSxmKSxvLnBvc3RNZXNzYWdlKHtpZDplfSk7aWYobC5nZXQoZSk9PT1mKXJldHVybiBvLnBvc3RNZXNzYWdlKHtpZDplfSk7by5wb3N0TWVzc2FnZSh7aWQ6ZSx0eXBlOnYsYmFzZTY0OmYsd2lkdGg6YSxoZWlnaHQ6dH0pLGwuc2V0KGUsZil9ZWxzZSByZXR1cm4gby5wb3N0TWVzc2FnZSh7aWQ6cy5kYXRhLmlkfSl9fSkoKTsKLy8jIHNvdXJjZU1hcHBpbmdVUkw9aW1hZ2UtYml0bWFwLWRhdGEtdXJsLXdvcmtlci1Cb1hHVm1Zby5qcy5tYXAK", yl = typeof self < "u" && self.Blob && new Blob([(wl = gl, Uint8Array.from(atob(wl), (e2) => e2.charCodeAt(0)))], { type: "text/javascript;charset=utf-8" });
8093
- var wl;
8105
+ const gl = "KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO2Zvcih2YXIgcj0iQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyIsdz10eXBlb2YgVWludDhBcnJheT4idSI/W106bmV3IFVpbnQ4QXJyYXkoMjU2KSxpPTA7aTxyLmxlbmd0aDtpKyspd1tyLmNoYXJDb2RlQXQoaSldPWk7dmFyIHA9ZnVuY3Rpb24ocyl7dmFyIGU9bmV3IFVpbnQ4QXJyYXkocyksbixhPWUubGVuZ3RoLHQ9IiI7Zm9yKG49MDtuPGE7bis9Myl0Kz1yW2Vbbl0+PjJdLHQrPXJbKGVbbl0mMyk8PDR8ZVtuKzFdPj40XSx0Kz1yWyhlW24rMV0mMTUpPDwyfGVbbisyXT4+Nl0sdCs9cltlW24rMl0mNjNdO3JldHVybiBhJTM9PT0yP3Q9dC5zdWJzdHJpbmcoMCx0Lmxlbmd0aC0xKSsiPSI6YSUzPT09MSYmKHQ9dC5zdWJzdHJpbmcoMCx0Lmxlbmd0aC0yKSsiPT0iKSx0fTtjb25zdCBsPW5ldyBNYXAsYj1uZXcgTWFwO2FzeW5jIGZ1bmN0aW9uIHkocyxlLG4pe2NvbnN0IGE9YCR7c30tJHtlfWA7aWYoIk9mZnNjcmVlbkNhbnZhcyJpbiBnbG9iYWxUaGlzKXtpZihiLmhhcyhhKSlyZXR1cm4gYi5nZXQoYSk7Y29uc3QgdD1uZXcgT2Zmc2NyZWVuQ2FudmFzKHMsZSk7dC5nZXRDb250ZXh0KCIyZCIpO2NvbnN0IGc9YXdhaXQoYXdhaXQgdC5jb252ZXJ0VG9CbG9iKG4pKS5hcnJheUJ1ZmZlcigpLGM9cChnKTtyZXR1cm4gYi5zZXQoYSxjKSxjfWVsc2UgcmV0dXJuIiJ9Y29uc3Qgbz1zZWxmO28ub25tZXNzYWdlPWFzeW5jIGZ1bmN0aW9uKHMpe2lmKCJPZmZzY3JlZW5DYW52YXMiaW4gZ2xvYmFsVGhpcyl7Y29uc3R7aWQ6ZSxiaXRtYXA6bix3aWR0aDphLGhlaWdodDp0LGRhdGFVUkxPcHRpb25zOnV9PXMuZGF0YSxnPXkoYSx0LHUpLGM9bmV3IE9mZnNjcmVlbkNhbnZhcyhhLHQpO2MuZ2V0Q29udGV4dCgiMmQiKS5kcmF3SW1hZ2UobiwwLDApLG4uY2xvc2UoKTtjb25zdCBkPWF3YWl0IGMuY29udmVydFRvQmxvYih1KSx2PWQudHlwZSxoPWF3YWl0IGQuYXJyYXlCdWZmZXIoKSxmPXAoaCk7aWYoIWwuaGFzKGUpJiZhd2FpdCBnPT09ZilyZXR1cm4gbC5zZXQoZSxmKSxvLnBvc3RNZXNzYWdlKHtpZDplfSk7aWYobC5nZXQoZSk9PT1mKXJldHVybiBvLnBvc3RNZXNzYWdlKHtpZDplfSk7by5wb3N0TWVzc2FnZSh7aWQ6ZSx0eXBlOnYsYmFzZTY0OmYsd2lkdGg6YSxoZWlnaHQ6dH0pLGwuc2V0KGUsZil9ZWxzZSByZXR1cm4gby5wb3N0TWVzc2FnZSh7aWQ6cy5kYXRhLmlkfSl9fSkoKTsKLy8jIHNvdXJjZU1hcHBpbmdVUkw9aW1hZ2UtYml0bWFwLWRhdGEtdXJsLXdvcmtlci1Cb1hHVm1Zby5qcy5tYXAK", yl = typeof self < "u" && self.Blob && new Blob([(vl = gl, Uint8Array.from(atob(vl), (e2) => e2.charCodeAt(0)))], { type: "text/javascript;charset=utf-8" });
8106
+ var vl;
8094
8107
  function gu(e2) {
8095
8108
  let w2;
8096
8109
  try {
@@ -8105,7 +8118,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
8105
8118
  w2 && (self.URL || self.webkitURL).revokeObjectURL(w2);
8106
8119
  }
8107
8120
  }
8108
- for (var vl = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", bl = typeof Uint8Array > "u" ? [] : new Uint8Array(256), Sl = 0; Sl < 64; Sl++) bl[vl.charCodeAt(Sl)] = Sl;
8121
+ for (var wl = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", bl = typeof Uint8Array > "u" ? [] : new Uint8Array(256), Sl = 0; Sl < 64; Sl++) bl[wl.charCodeAt(Sl)] = Sl;
8109
8122
  const kl = /* @__PURE__ */ new Map();
8110
8123
  const Lo = (e2, w2, C2) => {
8111
8124
  if (!e2 || !Ao(e2, w2) && "object" != typeof e2) return;
@@ -8123,7 +8136,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
8123
8136
  if (e2 instanceof ArrayBuffer) {
8124
8137
  const w3 = e2.constructor.name, C3 = (function(e3) {
8125
8138
  var w4, C4 = new Uint8Array(e3), x2 = C4.length, M2 = "";
8126
- for (w4 = 0; w4 < x2; w4 += 3) M2 += vl[C4[w4] >> 2], M2 += vl[(3 & C4[w4]) << 4 | C4[w4 + 1] >> 4], M2 += vl[(15 & C4[w4 + 1]) << 2 | C4[w4 + 2] >> 6], M2 += vl[63 & C4[w4 + 2]];
8139
+ for (w4 = 0; w4 < x2; w4 += 3) M2 += wl[C4[w4] >> 2], M2 += wl[(3 & C4[w4]) << 4 | C4[w4 + 1] >> 4], M2 += wl[(15 & C4[w4 + 1]) << 2 | C4[w4 + 2] >> 6], M2 += wl[63 & C4[w4 + 2]];
8127
8140
  return x2 % 3 == 2 ? M2 = M2.substring(0, M2.length - 1) + "=" : x2 % 3 == 1 && (M2 = M2.substring(0, M2.length - 2) + "=="), M2;
8128
8141
  })(e2);
8129
8142
  return { rr_type: w3, base64: C3 };
@@ -8393,14 +8406,14 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
8393
8406
  const e2 = document.createElement("iframe");
8394
8407
  document.body.appendChild(e2), Array.from = (null == (El = e2.contentWindow) ? void 0 : El.Array.from) || Array.from, document.body.removeChild(e2);
8395
8408
  }
8396
- } catch (wl2) {
8397
- console.debug("Unable to override Array.from", wl2);
8409
+ } catch (vl2) {
8410
+ console.debug("Unable to override Array.from", vl2);
8398
8411
  }
8399
8412
  const Tl = (function Ri() {
8400
8413
  return new Ho();
8401
8414
  })();
8402
8415
  function ue(e2 = {}) {
8403
- const { emit: w2, checkoutEveryNms: C2, checkoutEveryNth: x2, blockClass: M2 = "rr-block", blockSelector: I2 = null, ignoreClass: _2 = "rr-ignore", ignoreSelector: U2 = null, maskTextClass: j2 = "rr-mask", maskTextSelector: W2 = null, inlineStylesheet: z2 = true, maskAllInputs: H2, maskInputOptions: K2, slimDOMOptions: X2, maskInputFn: Y2, maskTextFn: J2, hooks: Q2, packFn: Z2, sampling: ee2 = {}, dataURLOptions: te2 = {}, mousemoveWait: ne2, recordDOM: re2 = true, recordCanvas: se2 = false, recordCrossOriginIframes: ie2 = false, recordAfter: ae2 = "DOMContentLoaded" === e2.recordAfter ? e2.recordAfter : "load", userTriggeredOnInput: ce2 = false, collectFonts: le2 = false, inlineImages: de2 = false, plugins: pe2, keepIframeSrcFn: me2 = () => false, ignoreCSSAttributes: ge2 = /* @__PURE__ */ new Set([]), errorHandler: ye2 } = e2;
8416
+ const { emit: w2, checkoutEveryNms: C2, checkoutEveryNth: x2, blockClass: M2 = "rr-block", blockSelector: I2 = null, ignoreClass: _2 = "rr-ignore", ignoreSelector: U2 = null, maskTextClass: j2 = "rr-mask", maskTextSelector: W2 = null, inlineStylesheet: z2 = true, maskAllInputs: H2, maskInputOptions: K2, slimDOMOptions: X2, maskInputFn: Y2, maskTextFn: Z2, hooks: J2, packFn: Q2, sampling: ee2 = {}, dataURLOptions: te2 = {}, mousemoveWait: ne2, recordDOM: re2 = true, recordCanvas: se2 = false, recordCrossOriginIframes: ie2 = false, recordAfter: ae2 = "DOMContentLoaded" === e2.recordAfter ? e2.recordAfter : "load", userTriggeredOnInput: ce2 = false, collectFonts: le2 = false, inlineImages: de2 = false, plugins: pe2, keepIframeSrcFn: me2 = () => false, ignoreCSSAttributes: ge2 = /* @__PURE__ */ new Set([]), errorHandler: ye2 } = e2;
8404
8417
  !(function Yl(e3) {
8405
8418
  dl = e3;
8406
8419
  })(ye2);
@@ -8429,7 +8442,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
8429
8442
  let Ce2, xe2 = 0;
8430
8443
  const kr = (e3) => {
8431
8444
  for (const w3 of pe2 || []) w3.eventProcessor && (e3 = w3.eventProcessor(e3));
8432
- return Z2 && !be2 && (e3 = Z2(e3)), e3;
8445
+ return Q2 && !be2 && (e3 = Q2(e3)), e3;
8433
8446
  };
8434
8447
  Cl = (e3, M3) => {
8435
8448
  var I3;
@@ -8453,14 +8466,14 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
8453
8466
  for (const e3 of pe2 || []) e3.getMirror && e3.getMirror({ nodeMirror: Tl, crossOriginIframeMirror: Ie2.crossOriginIframeMirror, crossOriginIframeStyleMirror: Ie2.crossOriginIframeStyleMirror });
8454
8467
  const Ee2 = new xu();
8455
8468
  Ml = new Cu({ recordCanvas: se2, mutationCb: xr, win: window, blockClass: M2, blockSelector: I2, mirror: Tl, sampling: ee2.canvas, dataURLOptions: te2 });
8456
- const Re2 = new Iu({ mutationCb: ot, scrollCb: Cr, bypassOptions: { blockClass: M2, blockSelector: I2, maskTextClass: j2, maskTextSelector: W2, inlineStylesheet: z2, maskInputOptions: Se2, dataURLOptions: te2, maskTextFn: J2, maskInputFn: Y2, recordCanvas: se2, inlineImages: de2, sampling: ee2, slimDOMOptions: ke2, iframeManager: Ie2, stylesheetManager: Me2, canvasManager: Ml, keepIframeSrcFn: me2, processedNodeManager: Ee2 }, mirror: Tl });
8469
+ const Re2 = new Iu({ mutationCb: ot, scrollCb: Cr, bypassOptions: { blockClass: M2, blockSelector: I2, maskTextClass: j2, maskTextSelector: W2, inlineStylesheet: z2, maskInputOptions: Se2, dataURLOptions: te2, maskTextFn: Z2, maskInputFn: Y2, recordCanvas: se2, inlineImages: de2, sampling: ee2, slimDOMOptions: ke2, iframeManager: Ie2, stylesheetManager: Me2, canvasManager: Ml, keepIframeSrcFn: me2, processedNodeManager: Ee2 }, mirror: Tl });
8457
8470
  xl = (e3 = false) => {
8458
8471
  if (!re2) return;
8459
8472
  Cl({ type: nl.Meta, data: { href: window.location.href, width: bo(), height: wo() } }, e3), Me2.reset(), Re2.init(), hl.forEach((e4) => e4.lock());
8460
8473
  const w3 = [], C3 = (function Ji(e4, w4) {
8461
- const { mirror: C4 = new Ho(), blockClass: x3 = "rr-block", blockSelector: M3 = null, maskTextClass: I3 = "rr-mask", maskTextSelector: _3 = null, inlineStylesheet: U3 = true, inlineImages: j3 = false, recordCanvas: W3 = false, maskAllInputs: z3 = false, maskTextFn: H3, maskInputFn: K3, slimDOM: X3 = false, dataURLOptions: Y3, preserveWhiteSpace: J3, onSerialize: Q3, onIframeLoad: Z3, iframeLoadTimeout: ee3, onStylesheetLoad: te3, stylesheetLoadTimeout: ne3, keepIframeSrcFn: re3 = () => false, corruptedRules: se3 } = w4 || {};
8462
- return ve(e4, { doc: e4, mirror: C4, blockClass: x3, blockSelector: M3, maskTextClass: I3, maskTextSelector: _3, skipChild: false, inlineStylesheet: U3, maskInputOptions: true === z3 ? { 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 === z3 ? { password: true } : z3, maskTextFn: H3, maskInputFn: K3, slimDOMOptions: true === X3 || "all" === X3 ? { script: true, comment: true, headFavicon: true, headWhitespace: true, headMetaDescKeywords: "all" === X3, headMetaSocial: true, headMetaRobots: true, headMetaHttpEquiv: true, headMetaAuthorship: true, headMetaVerification: true } : false === X3 ? {} : X3, dataURLOptions: Y3, inlineImages: j3, recordCanvas: W3, preserveWhiteSpace: J3, onSerialize: Q3, onIframeLoad: Z3, iframeLoadTimeout: ee3, onStylesheetLoad: te3, stylesheetLoadTimeout: ne3, keepIframeSrcFn: re3, newlyAddedElement: false, corruptedRules: se3 });
8463
- })(document, { mirror: Tl, blockClass: M2, blockSelector: I2, maskTextClass: j2, maskTextSelector: W2, inlineStylesheet: z2, maskAllInputs: Se2, maskTextFn: J2, maskInputFn: Y2, slimDOM: ke2, dataURLOptions: te2, recordCanvas: se2, inlineImages: de2, corruptedRules: w3, onSerialize: (e4) => {
8474
+ const { mirror: C4 = new Ho(), blockClass: x3 = "rr-block", blockSelector: M3 = null, maskTextClass: I3 = "rr-mask", maskTextSelector: _3 = null, inlineStylesheet: U3 = true, inlineImages: j3 = false, recordCanvas: W3 = false, maskAllInputs: z3 = false, maskTextFn: H3, maskInputFn: K3, slimDOM: X3 = false, dataURLOptions: Y3, preserveWhiteSpace: Z3, onSerialize: J3, onIframeLoad: Q3, iframeLoadTimeout: ee3, onStylesheetLoad: te3, stylesheetLoadTimeout: ne3, keepIframeSrcFn: re3 = () => false, corruptedRules: se3 } = w4 || {};
8475
+ return ve(e4, { doc: e4, mirror: C4, blockClass: x3, blockSelector: M3, maskTextClass: I3, maskTextSelector: _3, skipChild: false, inlineStylesheet: U3, maskInputOptions: true === z3 ? { 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 === z3 ? { password: true } : z3, maskTextFn: H3, maskInputFn: K3, slimDOMOptions: true === X3 || "all" === X3 ? { script: true, comment: true, headFavicon: true, headWhitespace: true, headMetaDescKeywords: "all" === X3, headMetaSocial: true, headMetaRobots: true, headMetaHttpEquiv: true, headMetaAuthorship: true, headMetaVerification: true } : false === X3 ? {} : X3, dataURLOptions: Y3, inlineImages: j3, recordCanvas: W3, preserveWhiteSpace: Z3, onSerialize: J3, onIframeLoad: Q3, iframeLoadTimeout: ee3, onStylesheetLoad: te3, stylesheetLoadTimeout: ne3, keepIframeSrcFn: re3, newlyAddedElement: false, corruptedRules: se3 });
8476
+ })(document, { mirror: Tl, blockClass: M2, blockSelector: I2, maskTextClass: j2, maskTextSelector: W2, inlineStylesheet: z2, maskAllInputs: Se2, maskTextFn: Z2, maskInputFn: Y2, slimDOM: ke2, dataURLOptions: te2, recordCanvas: se2, inlineImages: de2, corruptedRules: w3, onSerialize: (e4) => {
8464
8477
  ko(e4, Tl) && Ie2.addIframe(e4), Co(e4, Tl) && Me2.trackLinkElement(e4), _s(e4) && Re2.addShadowRoot(e4.shadowRoot, document);
8465
8478
  }, onIframeLoad: (e4, w4) => {
8466
8479
  Ie2.attachIframe(e4, w4), Re2.observeAttachShadow(e4);
@@ -8481,7 +8494,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
8481
8494
  Cl({ type: nl.IncrementalSnapshot, data: { ...e5 } });
8482
8495
  }, deviceChangeCb: (e5) => {
8483
8496
  Cl({ type: nl.Device, data: { ...e5 } });
8484
- }, blockClass: M2, ignoreClass: _2, ignoreSelector: U2, maskTextClass: j2, maskTextSelector: W2, maskInputOptions: Se2, inlineStylesheet: z2, sampling: ee2, recordDOM: re2, recordCanvas: se2, inlineImages: de2, userTriggeredOnInput: ce2, collectFonts: le2, doc: e4, maskInputFn: Y2, maskTextFn: J2, keepIframeSrcFn: me2, blockSelector: I2, slimDOMOptions: ke2, dataURLOptions: te2, mirror: Tl, iframeManager: Ie2, stylesheetManager: Me2, shadowDomManager: Re2, processedNodeManager: Ee2, canvasManager: Ml, ignoreCSSAttributes: ge2, plugins: (null == (w3 = null == pe2 ? void 0 : pe2.filter((e5) => e5.observer)) ? void 0 : w3.map((e5) => ({ observer: e5.observer, options: e5.options, callback: (w4) => Cl({ type: nl.Plugin, data: { plugin: e5.name, payload: w4 } }) }))) || [] }, Q2);
8497
+ }, blockClass: M2, ignoreClass: _2, ignoreSelector: U2, maskTextClass: j2, maskTextSelector: W2, maskInputOptions: Se2, inlineStylesheet: z2, sampling: ee2, recordDOM: re2, recordCanvas: se2, inlineImages: de2, userTriggeredOnInput: ce2, collectFonts: le2, doc: e4, maskInputFn: Y2, maskTextFn: Z2, keepIframeSrcFn: me2, blockSelector: I2, slimDOMOptions: ke2, dataURLOptions: te2, mirror: Tl, iframeManager: Ie2, stylesheetManager: Me2, shadowDomManager: Re2, processedNodeManager: Ee2, canvasManager: Ml, ignoreCSSAttributes: ge2, plugins: (null == (w3 = null == pe2 ? void 0 : pe2.filter((e5) => e5.observer)) ? void 0 : w3.map((e5) => ({ observer: e5.observer, options: e5.options, callback: (w4) => Cl({ type: nl.Plugin, data: { plugin: e5.name, payload: w4 } }) }))) || [] }, J2);
8485
8498
  };
8486
8499
  Ie2.addLoadListener((w3) => {
8487
8500
  try {
@@ -8926,7 +8939,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
8926
8939
  function $o(e2) {
8927
8940
  if (e2[Xu] = false, e2.proxyOf.nodes) for (let w2 of e2.proxyOf.nodes) $o(w2);
8928
8941
  }
8929
- let Ju = class Go extends Ku {
8942
+ let Zu = class Go extends Ku {
8930
8943
  get first() {
8931
8944
  if (this.proxyOf.nodes) return this.proxyOf.nodes[0];
8932
8945
  }
@@ -9072,22 +9085,22 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
9072
9085
  }));
9073
9086
  }
9074
9087
  };
9075
- Ju.registerParse = (e2) => {
9088
+ Zu.registerParse = (e2) => {
9076
9089
  Wu = e2;
9077
- }, Ju.registerRule = (e2) => {
9090
+ }, Zu.registerRule = (e2) => {
9078
9091
  Gu = e2;
9079
- }, Ju.registerAtRule = (e2) => {
9092
+ }, Zu.registerAtRule = (e2) => {
9080
9093
  ju = e2;
9081
- }, Ju.registerRoot = (e2) => {
9094
+ }, Zu.registerRoot = (e2) => {
9082
9095
  zu = e2;
9083
9096
  };
9084
- var Qu = Ju;
9085
- Ju.default = Ju, Ju.rebuild = (e2) => {
9097
+ var Ju = Zu;
9098
+ Zu.default = Zu, Zu.rebuild = (e2) => {
9086
9099
  "atrule" === e2.type ? Object.setPrototypeOf(e2, ju.prototype) : "rule" === e2.type ? Object.setPrototypeOf(e2, Gu.prototype) : "decl" === e2.type ? Object.setPrototypeOf(e2, qu.prototype) : "comment" === e2.type ? Object.setPrototypeOf(e2, Vu.prototype) : "root" === e2.type && Object.setPrototypeOf(e2, zu.prototype), e2[Yu] = true, e2.nodes && e2.nodes.forEach((e3) => {
9087
- Ju.rebuild(e3);
9100
+ Zu.rebuild(e3);
9088
9101
  });
9089
9102
  };
9090
- let Zu = Qu, ed = class extends Zu {
9103
+ let Qu = Ju, ed = class extends Qu {
9091
9104
  constructor(e2) {
9092
9105
  super(e2), this.type = "atrule";
9093
9106
  }
@@ -9099,8 +9112,8 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
9099
9112
  }
9100
9113
  };
9101
9114
  var td = ed;
9102
- ed.default = ed, Zu.registerAtRule(ed);
9103
- let nd, rd, od = Qu, sd = class extends od {
9115
+ ed.default = ed, Qu.registerAtRule(ed);
9116
+ let nd, rd, od = Ju, sd = class extends od {
9104
9117
  constructor(e2) {
9105
9118
  super({ type: "document", ...e2 }), this.nodes || (this.nodes = []);
9106
9119
  }
@@ -9191,13 +9204,13 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
9191
9204
  };
9192
9205
  var md = fd;
9193
9206
  fd.default = fd;
9194
- let { nanoid: gd } = ad, { isAbsolute: yd, resolve: wd } = _l, { SourceMapConsumer: vd, SourceMapGenerator: bd } = _l, { fileURLToPath: Sd, pathToFileURL: kd } = _l, Cd = Nl, xd = md, Md = _l, Id = Symbol("fromOffsetCache"), Ed = !(!vd || !bd), Td = !(!wd || !yd), Rd = class {
9207
+ let { nanoid: gd } = ad, { isAbsolute: yd, resolve: vd } = _l, { SourceMapConsumer: wd, SourceMapGenerator: bd } = _l, { fileURLToPath: Sd, pathToFileURL: kd } = _l, Cd = Nl, xd = md, Md = _l, Id = Symbol("fromOffsetCache"), Ed = !(!wd || !bd), Td = !(!vd || !yd), Rd = class {
9195
9208
  get from() {
9196
9209
  return this.file || this.id;
9197
9210
  }
9198
9211
  constructor(e2, w2 = {}) {
9199
9212
  if (null === e2 || typeof e2 > "u" || "object" == typeof e2 && !e2.toString) throw new Error(`PostCSS received ${e2} instead of CSS string`);
9200
- if (this.css = e2.toString(), "\uFEFF" === this.css[0] || "￾" === this.css[0] ? (this.hasBOM = true, this.css = this.css.slice(1)) : this.hasBOM = false, this.document = this.css, w2.document && (this.document = w2.document.toString()), w2.from && (!Td || /^\w+:\/\//.test(w2.from) || yd(w2.from) ? this.file = w2.from : this.file = wd(w2.from)), Td && Ed) {
9213
+ if (this.css = e2.toString(), "\uFEFF" === this.css[0] || "￾" === this.css[0] ? (this.hasBOM = true, this.css = this.css.slice(1)) : this.hasBOM = false, this.document = this.css, w2.document && (this.document = w2.document.toString()), w2.from && (!Td || /^\w+:\/\//.test(w2.from) || yd(w2.from) ? this.file = w2.from : this.file = vd(w2.from)), Td && Ed) {
9201
9214
  let e3 = new xd(this.css, w2);
9202
9215
  if (e3.text) {
9203
9216
  this.map = e3;
@@ -9253,7 +9266,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
9253
9266
  return { col: e2 - C2[x2] + 1, line: x2 + 1 };
9254
9267
  }
9255
9268
  mapResolve(e2) {
9256
- return /^\w+:\/\//.test(e2) ? e2 : wd(this.map.consumer().sourceRoot || this.map.root || ".", e2);
9269
+ return /^\w+:\/\//.test(e2) ? e2 : vd(this.map.consumer().sourceRoot || this.map.root || ".", e2);
9257
9270
  }
9258
9271
  origin(e2, w2, C2, x2) {
9259
9272
  if (!this.map) return false;
@@ -9276,7 +9289,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
9276
9289
  };
9277
9290
  var Od = Rd;
9278
9291
  Rd.default = Rd, Md && Md.registerInput && Md.registerInput(Rd);
9279
- let Ld, _d, Ad = Qu, Dd = class extends Ad {
9292
+ let Ld, _d, Ad = Ju, Dd = class extends Ad {
9280
9293
  constructor(e2) {
9281
9294
  super(e2), this.type = "root", this.nodes || (this.nodes = []);
9282
9295
  }
@@ -9313,7 +9326,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
9313
9326
  } };
9314
9327
  var Fd = Nd;
9315
9328
  Nd.default = Nd;
9316
- let Bd = Qu, $d = Fd, Ud = class extends Bd {
9329
+ let Bd = Ju, $d = Fd, Ud = class extends Bd {
9317
9330
  get selectors() {
9318
9331
  return $d.comma(this.selector);
9319
9332
  }
@@ -9351,7 +9364,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
9351
9364
  }
9352
9365
  var Xd = Qe;
9353
9366
  Qe.default = Qe;
9354
- let { dirname: Yd, relative: Jd, resolve: Qd, sep: Zd } = _l, { SourceMapConsumer: ep, SourceMapGenerator: tp } = _l, { pathToFileURL: np } = _l, rp = Od, op = !(!ep || !tp), sp = !!(Yd && Qd && Jd && Zd);
9367
+ let { dirname: Yd, relative: Zd, resolve: Jd, sep: Qd } = _l, { SourceMapConsumer: ep, SourceMapGenerator: tp } = _l, { pathToFileURL: np } = _l, rp = Od, op = !(!ep || !tp), sp = !!(Yd && Jd && Zd && Qd);
9355
9368
  var ip = class {
9356
9369
  constructor(e2, w2, C2, x2) {
9357
9370
  this.stringify = e2, this.mapOpts = C2.map || {}, this.root = w2, this.opts = C2, this.css = x2, this.originalCSS = x2, this.usesFileUrls = !this.mapOpts.from && this.mapOpts.absolute, this.memoizedFileURLs = /* @__PURE__ */ new Map(), this.memoizedPaths = /* @__PURE__ */ new Map(), this.memoizedURLs = /* @__PURE__ */ new Map();
@@ -9423,8 +9436,8 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
9423
9436
  let w2 = this.memoizedPaths.get(e2);
9424
9437
  if (w2) return w2;
9425
9438
  let C2 = this.opts.to ? Yd(this.opts.to) : ".";
9426
- "string" == typeof this.mapOpts.annotation && (C2 = Yd(Qd(C2, this.mapOpts.annotation)));
9427
- let x2 = Jd(C2, e2);
9439
+ "string" == typeof this.mapOpts.annotation && (C2 = Yd(Jd(C2, this.mapOpts.annotation)));
9440
+ let x2 = Zd(C2, e2);
9428
9441
  return this.memoizedPaths.set(e2, x2), x2;
9429
9442
  }
9430
9443
  previous() {
@@ -9475,36 +9488,36 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
9475
9488
  toUrl(e2) {
9476
9489
  let w2 = this.memoizedURLs.get(e2);
9477
9490
  if (w2) return w2;
9478
- "\\" === Zd && (e2 = e2.replace(/\\/g, "/"));
9491
+ "\\" === Qd && (e2 = e2.replace(/\\/g, "/"));
9479
9492
  let C2 = encodeURI(e2).replace(/[#?]/g, encodeURIComponent);
9480
9493
  return this.memoizedURLs.set(e2, C2), C2;
9481
9494
  }
9482
9495
  };
9483
9496
  const ap = /[\t\n\f\r "#'()/;[\\\]{}]/g, cp = /[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g, lp = /.[\r\n"'(/\\]/, up = /[\da-f]/i;
9484
9497
  let dp = td, pp = Fu, hp = Uu, fp = Pd, mp = jd, Ec = function(e2, w2 = {}) {
9485
- let C2, x2, M2, I2, _2, U2, j2, W2, z2, H2, K2 = e2.css.valueOf(), X2 = w2.ignoreErrors, Y2 = K2.length, J2 = 0, Q2 = [], Z2 = [];
9498
+ let C2, x2, M2, I2, _2, U2, j2, W2, z2, H2, K2 = e2.css.valueOf(), X2 = w2.ignoreErrors, Y2 = K2.length, Z2 = 0, J2 = [], Q2 = [];
9486
9499
  function v2(w3) {
9487
- throw e2.error("Unclosed " + w3, J2);
9500
+ throw e2.error("Unclosed " + w3, Z2);
9488
9501
  }
9489
9502
  return { back: function O(e3) {
9490
- Z2.push(e3);
9503
+ Q2.push(e3);
9491
9504
  }, endOfFile: function S() {
9492
- return 0 === Z2.length && J2 >= Y2;
9505
+ return 0 === Q2.length && Z2 >= Y2;
9493
9506
  }, nextToken: function k2(e3) {
9494
- if (Z2.length) return Z2.pop();
9495
- if (J2 >= Y2) return;
9507
+ if (Q2.length) return Q2.pop();
9508
+ if (Z2 >= Y2) return;
9496
9509
  let w3 = !!e3 && e3.ignoreUnclosed;
9497
- switch (C2 = K2.charCodeAt(J2), C2) {
9510
+ switch (C2 = K2.charCodeAt(Z2), C2) {
9498
9511
  case 10:
9499
9512
  case 32:
9500
9513
  case 9:
9501
9514
  case 13:
9502
9515
  case 12:
9503
- I2 = J2;
9516
+ I2 = Z2;
9504
9517
  do {
9505
9518
  I2 += 1, C2 = K2.charCodeAt(I2);
9506
9519
  } while (32 === C2 || 10 === C2 || 9 === C2 || 13 === C2 || 12 === C2);
9507
- U2 = ["space", K2.slice(J2, I2)], J2 = I2 - 1;
9520
+ U2 = ["space", K2.slice(Z2, I2)], Z2 = I2 - 1;
9508
9521
  break;
9509
9522
  case 91:
9510
9523
  case 93:
@@ -9514,57 +9527,57 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
9514
9527
  case 59:
9515
9528
  case 41: {
9516
9529
  let e4 = String.fromCharCode(C2);
9517
- U2 = [e4, e4, J2];
9530
+ U2 = [e4, e4, Z2];
9518
9531
  break;
9519
9532
  }
9520
9533
  case 40:
9521
- if (H2 = Q2.length ? Q2.pop()[1] : "", z2 = K2.charCodeAt(J2 + 1), "url" === H2 && 39 !== z2 && 34 !== z2 && 32 !== z2 && 10 !== z2 && 9 !== z2 && 12 !== z2 && 13 !== z2) {
9522
- I2 = J2;
9534
+ if (H2 = J2.length ? J2.pop()[1] : "", z2 = K2.charCodeAt(Z2 + 1), "url" === H2 && 39 !== z2 && 34 !== z2 && 32 !== z2 && 10 !== z2 && 9 !== z2 && 12 !== z2 && 13 !== z2) {
9535
+ I2 = Z2;
9523
9536
  do {
9524
9537
  if (j2 = false, I2 = K2.indexOf(")", I2 + 1), -1 === I2) {
9525
9538
  if (X2 || w3) {
9526
- I2 = J2;
9539
+ I2 = Z2;
9527
9540
  break;
9528
9541
  }
9529
9542
  v2("bracket");
9530
9543
  }
9531
9544
  for (W2 = I2; 92 === K2.charCodeAt(W2 - 1); ) W2 -= 1, j2 = !j2;
9532
9545
  } while (j2);
9533
- U2 = ["brackets", K2.slice(J2, I2 + 1), J2, I2], J2 = I2;
9534
- } else I2 = K2.indexOf(")", J2 + 1), x2 = K2.slice(J2, I2 + 1), -1 === I2 || lp.test(x2) ? U2 = ["(", "(", J2] : (U2 = ["brackets", x2, J2, I2], J2 = I2);
9546
+ U2 = ["brackets", K2.slice(Z2, I2 + 1), Z2, I2], Z2 = I2;
9547
+ } else I2 = K2.indexOf(")", Z2 + 1), x2 = K2.slice(Z2, I2 + 1), -1 === I2 || lp.test(x2) ? U2 = ["(", "(", Z2] : (U2 = ["brackets", x2, Z2, I2], Z2 = I2);
9535
9548
  break;
9536
9549
  case 39:
9537
9550
  case 34:
9538
- _2 = 39 === C2 ? "'" : '"', I2 = J2;
9551
+ _2 = 39 === C2 ? "'" : '"', I2 = Z2;
9539
9552
  do {
9540
9553
  if (j2 = false, I2 = K2.indexOf(_2, I2 + 1), -1 === I2) {
9541
9554
  if (X2 || w3) {
9542
- I2 = J2 + 1;
9555
+ I2 = Z2 + 1;
9543
9556
  break;
9544
9557
  }
9545
9558
  v2("string");
9546
9559
  }
9547
9560
  for (W2 = I2; 92 === K2.charCodeAt(W2 - 1); ) W2 -= 1, j2 = !j2;
9548
9561
  } while (j2);
9549
- U2 = ["string", K2.slice(J2, I2 + 1), J2, I2], J2 = I2;
9562
+ U2 = ["string", K2.slice(Z2, I2 + 1), Z2, I2], Z2 = I2;
9550
9563
  break;
9551
9564
  case 64:
9552
- ap.lastIndex = J2 + 1, ap.test(K2), I2 = 0 === ap.lastIndex ? K2.length - 1 : ap.lastIndex - 2, U2 = ["at-word", K2.slice(J2, I2 + 1), J2, I2], J2 = I2;
9565
+ ap.lastIndex = Z2 + 1, ap.test(K2), I2 = 0 === ap.lastIndex ? K2.length - 1 : ap.lastIndex - 2, U2 = ["at-word", K2.slice(Z2, I2 + 1), Z2, I2], Z2 = I2;
9553
9566
  break;
9554
9567
  case 92:
9555
- for (I2 = J2, M2 = true; 92 === K2.charCodeAt(I2 + 1); ) I2 += 1, M2 = !M2;
9568
+ for (I2 = Z2, M2 = true; 92 === K2.charCodeAt(I2 + 1); ) I2 += 1, M2 = !M2;
9556
9569
  if (C2 = K2.charCodeAt(I2 + 1), M2 && 47 !== C2 && 32 !== C2 && 10 !== C2 && 9 !== C2 && 13 !== C2 && 12 !== C2 && (I2 += 1, up.test(K2.charAt(I2)))) {
9557
9570
  for (; up.test(K2.charAt(I2 + 1)); ) I2 += 1;
9558
9571
  32 === K2.charCodeAt(I2 + 1) && (I2 += 1);
9559
9572
  }
9560
- U2 = ["word", K2.slice(J2, I2 + 1), J2, I2], J2 = I2;
9573
+ U2 = ["word", K2.slice(Z2, I2 + 1), Z2, I2], Z2 = I2;
9561
9574
  break;
9562
9575
  default:
9563
- 47 === C2 && 42 === K2.charCodeAt(J2 + 1) ? (I2 = K2.indexOf("*/", J2 + 2) + 1, 0 === I2 && (X2 || w3 ? I2 = K2.length : v2("comment")), U2 = ["comment", K2.slice(J2, I2 + 1), J2, I2], J2 = I2) : (cp.lastIndex = J2 + 1, cp.test(K2), I2 = 0 === cp.lastIndex ? K2.length - 1 : cp.lastIndex - 2, U2 = ["word", K2.slice(J2, I2 + 1), J2, I2], Q2.push(U2), J2 = I2);
9576
+ 47 === C2 && 42 === K2.charCodeAt(Z2 + 1) ? (I2 = K2.indexOf("*/", Z2 + 2) + 1, 0 === I2 && (X2 || w3 ? I2 = K2.length : v2("comment")), U2 = ["comment", K2.slice(Z2, I2 + 1), Z2, I2], Z2 = I2) : (cp.lastIndex = Z2 + 1, cp.test(K2), I2 = 0 === cp.lastIndex ? K2.length - 1 : cp.lastIndex - 2, U2 = ["word", K2.slice(Z2, I2 + 1), Z2, I2], J2.push(U2), Z2 = I2);
9564
9577
  }
9565
- return J2++, U2;
9578
+ return Z2++, U2;
9566
9579
  }, position: function b() {
9567
- return J2;
9580
+ return Z2;
9568
9581
  } };
9569
9582
  };
9570
9583
  const gp = { empty: true, space: true };
@@ -9812,9 +9825,9 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
9812
9825
  throw this.input.error("At-rule without name", { offset: w2[2] }, { offset: w2[2] + w2[1].length });
9813
9826
  }
9814
9827
  };
9815
- let wp = Qu, vp = Od, bp = yp;
9828
+ let vp = Ju, wp = Od, bp = yp;
9816
9829
  function Yt(e2, w2) {
9817
- let C2 = new vp(e2, w2), x2 = new bp(C2);
9830
+ let C2 = new wp(e2, w2), x2 = new bp(C2);
9818
9831
  try {
9819
9832
  x2.parse();
9820
9833
  } catch (e3) {
@@ -9823,7 +9836,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
9823
9836
  return x2.root;
9824
9837
  }
9825
9838
  var Sp = Yt;
9826
- Yt.default = Yt, wp.registerParse(Yt);
9839
+ Yt.default = Yt, vp.registerParse(Yt);
9827
9840
  let kp = class {
9828
9841
  constructor(e2, w2 = {}) {
9829
9842
  if (this.type = "warning", this.text = e2, w2.node && w2.node.source) {
@@ -9863,7 +9876,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
9863
9876
  var ai = function(e2) {
9864
9877
  Ep[e2] || (Ep[e2] = true, typeof console < "u" && console.warn && console.warn(e2));
9865
9878
  };
9866
- let Tp = Qu, Rp = id, Op = ip, Lp = Sp, _p = Ip, Ap = Pd, Dp = ru, { isClean: Pp, my: Np } = mu, Fp = ai;
9879
+ let Tp = Ju, Rp = id, Op = ip, Lp = Sp, _p = Ip, Ap = Pd, Dp = ru, { isClean: Pp, my: Np } = mu, Fp = ai;
9867
9880
  const Bp = { atrule: "AtRule", comment: "Comment", decl: "Declaration", document: "Document", root: "Root", rule: "Rule" }, $p = { 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 }, Up = { Once: true, postcssPlugin: true, prepare: true };
9868
9881
  function We(e2) {
9869
9882
  return "object" == typeof e2 && "function" == typeof e2.then;
@@ -10172,7 +10185,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
10172
10185
  };
10173
10186
  var Yp = Xp;
10174
10187
  Xp.default = Xp;
10175
- let Jp = id, Qp = zp, Zp = Yp, eh = Pd, th = class {
10188
+ let Zp = id, Jp = zp, Qp = Yp, eh = Pd, th = class {
10176
10189
  constructor(e2 = []) {
10177
10190
  this.version = "8.5.3", this.plugins = this.normalize(e2);
10178
10191
  }
@@ -10188,15 +10201,15 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
10188
10201
  return w2;
10189
10202
  }
10190
10203
  process(e2, w2 = {}) {
10191
- return this.plugins.length || w2.parser || w2.stringifier || w2.syntax ? new Qp(this, e2, w2) : new Zp(this, e2, w2);
10204
+ return this.plugins.length || w2.parser || w2.stringifier || w2.syntax ? new Jp(this, e2, w2) : new Qp(this, e2, w2);
10192
10205
  }
10193
10206
  use(e2) {
10194
10207
  return this.plugins = this.plugins.concat(this.normalize([e2])), this;
10195
10208
  }
10196
10209
  };
10197
10210
  var nh = th;
10198
- th.default = th, eh.registerProcessor(th), Jp.registerProcessor(th);
10199
- let rh = td, oh = Fu, sh = Qu, ih = Nl, ah = Uu, ch = id, lh = Xd, uh = Od, dh = zp, ph = Fd, hh = Au, fh = Sp, mh = nh, gh = Ip, yh = Pd, wh = jd, vh = ru, bh = Cp;
10211
+ th.default = th, eh.registerProcessor(th), Zp.registerProcessor(th);
10212
+ let rh = td, oh = Fu, sh = Ju, ih = Nl, ah = Uu, ch = id, lh = Xd, uh = Od, dh = zp, ph = Fd, hh = Au, fh = Sp, mh = nh, gh = Ip, yh = Pd, vh = jd, wh = ru, bh = Cp;
10200
10213
  function D(...e2) {
10201
10214
  return 1 === e2.length && Array.isArray(e2[0]) && (e2 = e2[0]), new mh(e2);
10202
10215
  }
@@ -10210,7 +10223,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
10210
10223
  return Object.defineProperty(r, "postcss", { get: () => (C2 || (C2 = r()), C2) }), r.process = function(e3, w3, C3) {
10211
10224
  return D([r(C3)]).process(e3, w3);
10212
10225
  }, r;
10213
- }, D.stringify = vh, D.parse = fh, D.fromJSON = lh, D.list = ph, D.comment = (e2) => new oh(e2), D.atRule = (e2) => new rh(e2), D.decl = (e2) => new ah(e2), D.rule = (e2) => new wh(e2), D.root = (e2) => new yh(e2), D.document = (e2) => new ch(e2), D.CssSyntaxError = ih, D.Declaration = ah, D.Container = sh, D.Processor = mh, D.Document = ch, D.Comment = oh, D.Warning = bh, D.AtRule = rh, D.Result = gh, D.Input = uh, D.Rule = wh, D.Root = yh, D.Node = hh, dh.registerPostcss(D);
10226
+ }, D.stringify = wh, D.parse = fh, D.fromJSON = lh, D.list = ph, D.comment = (e2) => new oh(e2), D.atRule = (e2) => new rh(e2), D.decl = (e2) => new ah(e2), D.rule = (e2) => new vh(e2), D.root = (e2) => new yh(e2), D.document = (e2) => new ch(e2), D.CssSyntaxError = ih, D.Declaration = ah, D.Container = sh, D.Processor = mh, D.Document = ch, D.Comment = oh, D.Warning = bh, D.AtRule = rh, D.Result = gh, D.Input = uh, D.Rule = vh, D.Root = yh, D.Node = hh, dh.registerPostcss(D);
10214
10227
  var Sh = D;
10215
10228
  D.default = D;
10216
10229
  const kh = Ou(Sh);
@@ -10240,7 +10253,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
10240
10253
  function isUnmasked(e3) {
10241
10254
  return closestSelectorSafe(e3, X2);
10242
10255
  }
10243
- let Y2 = 100001, J2 = 0, Q2 = performance.now();
10256
+ let Y2 = 100001, Z2 = 0, J2 = performance.now();
10244
10257
  function genId(e3) {
10245
10258
  if (w2.hasNode(e3)) return w2.getId(e3);
10246
10259
  const C3 = Y2++;
@@ -10280,7 +10293,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
10280
10293
  return await (async function serialize(w3) {
10281
10294
  if (w3 !== e2 && !w3.parentNode) return null;
10282
10295
  switch (await (async function maybeYield() {
10283
- J2++, (J2 % x2 === 0 || performance.now() - Q2 > M2) && (await yieldToMain(), Q2 = performance.now());
10296
+ Z2++, (Z2 % x2 === 0 || performance.now() - J2 > M2) && (await yieldToMain(), J2 = performance.now());
10284
10297
  })(), w3.nodeType) {
10285
10298
  case Node.DOCUMENT_NODE: {
10286
10299
  const e3 = genId(w3), C3 = [];
@@ -10330,21 +10343,153 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
10330
10343
  } catch (e3) {
10331
10344
  return console.warn("[Sailfish] chunkSnapshot serialization error:", e3), null;
10332
10345
  }
10346
+ } }, Symbol.toStringTag, { value: "Module" })), Oh = /* @__PURE__ */ new Set(["menu", "menuitem", "menubar", "tooltip"]);
10347
+ let Lh = -1, _h = [];
10348
+ function collectHoverBases(e2, w2) {
10349
+ for (const C2 of e2.split(",")) if (-1 !== C2.indexOf(":hover")) for (const e3 of C2.split(/\s*[>+~]\s*|\s+/)) {
10350
+ if (-1 === e3.indexOf(":hover")) continue;
10351
+ const C3 = e3.replace(/:hover\b/g, "").replace(/::[a-zA-Z-]+/g, "").trim();
10352
+ C3 && w2.push(C3);
10353
+ }
10354
+ }
10355
+ function collectFromRules(e2, w2, C2) {
10356
+ if (!(C2 > 10)) for (let x2 = 0; x2 < e2.length; x2++) {
10357
+ const M2 = e2[x2], I2 = M2.selectorText;
10358
+ I2 && -1 !== I2.indexOf(":hover") && collectHoverBases(I2, w2);
10359
+ let _2 = null;
10360
+ try {
10361
+ _2 = M2.cssRules ?? null;
10362
+ } catch {
10363
+ _2 = null;
10364
+ }
10365
+ _2 && _2.length && collectFromRules(_2, w2, C2 + 1);
10366
+ }
10367
+ }
10368
+ function matchesHoverRule(e2) {
10369
+ const w2 = (function getHoverBaseSelectors() {
10370
+ const e3 = document.styleSheets;
10371
+ if (e3.length === Lh) return _h;
10372
+ Lh = e3.length;
10373
+ const w3 = [];
10374
+ for (let C2 = 0; C2 < e3.length; C2++) {
10375
+ let x2 = null;
10376
+ try {
10377
+ x2 = e3[C2].cssRules;
10378
+ } catch {
10379
+ continue;
10380
+ }
10381
+ x2 && collectFromRules(x2, w3, 0);
10382
+ }
10383
+ return _h = w3, w3;
10384
+ })();
10385
+ for (let C2 = 0; C2 < w2.length; C2++) try {
10386
+ if (e2.matches(w2[C2])) return true;
10387
+ } catch {
10388
+ }
10389
+ return false;
10390
+ }
10391
+ function hasHoverAffordance(e2, w2) {
10392
+ if (e2.hasAttribute("title") || e2.hasAttribute("data-tooltip") || e2.hasAttribute("aria-describedby")) return true;
10393
+ const C2 = e2.getAttribute("role");
10394
+ if (e2.hasAttribute("aria-haspopup") || C2 && Oh.has(C2)) return true;
10395
+ if (matchesHoverRule(e2)) return true;
10396
+ if (!w2) try {
10397
+ if ("function" == typeof window.getComputedStyle && "pointer" === window.getComputedStyle(e2).cursor) return true;
10398
+ } catch {
10399
+ }
10400
+ return false;
10401
+ }
10402
+ class TokenBucket {
10403
+ constructor(e2, w2, C2) {
10404
+ __publicField(this, "tokens");
10405
+ __publicField(this, "last");
10406
+ this.capacity = e2, this.refillPerSec = w2, this.tokens = e2, this.last = C2;
10407
+ }
10408
+ tryConsume(e2) {
10409
+ return this.tokens = Math.min(this.capacity, this.tokens + (e2 - this.last) / 1e3 * this.refillPerSec), this.last = e2, !(this.tokens < 1) && (this.tokens -= 1, true);
10410
+ }
10411
+ }
10412
+ let Ah = null;
10413
+ const Dh = Object.freeze(Object.defineProperty({ __proto__: null, installHoverDetection: function installHoverDetection(e2, w2) {
10414
+ if ("undefined" == typeof window || "undefined" == typeof document) return () => {
10415
+ };
10416
+ Ah && (Ah(), Ah = null);
10417
+ const C2 = Math.max(0, w2.dwellMs), x2 = Math.max(0, w2.cooldownMs ?? 3e3), M2 = w2.maxPerSession ?? 300, I2 = w2.maxPerSecond ?? 1, _2 = w2.maxDwellMs ?? 6e4, U2 = w2.maxAncestorDepth ?? 5, j2 = w2.strictAffordance ?? true, now2 = () => Date.now(), W2 = /* @__PURE__ */ new Map();
10418
+ let z2 = 0;
10419
+ const H2 = new TokenBucket(Math.max(10, I2), I2, now2());
10420
+ let K2 = null, X2 = 0, Y2 = false, Z2 = null, J2 = null;
10421
+ const reset = () => {
10422
+ null !== Z2 && (clearTimeout(Z2), Z2 = null), null !== J2 && (clearTimeout(J2), J2 = null), K2 = null, Y2 = false;
10423
+ }, emit2 = (w3, C3, I3) => {
10424
+ var _a2, _b, _c2;
10425
+ const _3 = ((_b = (_a2 = e2.mirror) == null ? void 0 : _a2.getId) == null ? void 0 : _b.call(_a2, w3)) ?? -1;
10426
+ !_3 || _3 <= 0 || ((e3, w4) => {
10427
+ if (z2 >= M2) return false;
10428
+ const C4 = W2.get(e3);
10429
+ if (void 0 !== C4 && w4 - C4 < x2) return false;
10430
+ if (!H2.tryConsume(w4)) return false;
10431
+ if (W2.delete(e3), W2.set(e3, w4), W2.size > 500) {
10432
+ const e4 = W2.keys().next().value;
10433
+ void 0 !== e4 && W2.delete(e4);
10434
+ }
10435
+ return z2 += 1, true;
10436
+ })(_3, I3) && ((_c2 = e2.addSailfishEvent) == null ? void 0 : _c2.call(e2, dt.SailfishCustom, { action: "hover", element_id: _3, started_at: Math.round(C3), ended_at: Math.round(I3), duration_ms: Math.max(0, Math.round(I3 - C3)) }));
10437
+ }, endHover = (e3) => {
10438
+ const w3 = K2, C3 = Y2, x3 = X2;
10439
+ reset(), w3 && C3 && "click" !== e3 && emit2(w3, x3, now2());
10440
+ }, onPointerOver = (e3) => {
10441
+ const w3 = e3.target;
10442
+ if (!(w3 instanceof Element)) return;
10443
+ const x3 = (function resolveHoverAffordance(e4, w4, C3) {
10444
+ let x4 = e4, M3 = 0;
10445
+ for (; x4 && M3 <= w4; ) {
10446
+ if (hasHoverAffordance(x4, C3)) return x4;
10447
+ x4 = x4.parentElement, M3++;
10448
+ }
10449
+ return null;
10450
+ })(w3, U2, j2);
10451
+ x3 ? x3 !== K2 && (K2 && endHover("switch"), ((e4) => {
10452
+ reset(), K2 = e4, X2 = now2(), Y2 = false, Z2 = setTimeout(() => {
10453
+ Z2 = null, K2 && (function stillHovering(e5) {
10454
+ try {
10455
+ return e5.matches(":hover");
10456
+ } catch {
10457
+ return true;
10458
+ }
10459
+ })(K2) ? (Y2 = true, J2 = setTimeout(() => {
10460
+ J2 = null, endHover("cap");
10461
+ }, Math.max(0, _2 - C2))) : reset();
10462
+ }, C2);
10463
+ })(x3)) : K2 && !K2.contains(w3) && endHover("leave");
10464
+ }, onPointerOut = (e3) => {
10465
+ const w3 = e3.relatedTarget;
10466
+ !K2 || w3 instanceof Node && K2.contains(w3) || endHover("leave");
10467
+ }, onPointerDown2 = (e3) => {
10468
+ const w3 = e3.target;
10469
+ K2 && w3 instanceof Node && (K2 === w3 || K2.contains(w3)) && endHover("click");
10470
+ }, onVisibility = () => {
10471
+ "hidden" === document.visibilityState && endHover("flush");
10472
+ }, Q2 = { capture: true, passive: true };
10473
+ document.addEventListener("pointerover", onPointerOver, Q2), document.addEventListener("pointerout", onPointerOut, Q2), document.addEventListener("pointerdown", onPointerDown2, Q2), document.addEventListener("visibilitychange", onVisibility, true), window.addEventListener("pagehide", onVisibility, true);
10474
+ const teardown = () => {
10475
+ endHover("flush"), reset(), document.removeEventListener("pointerover", onPointerOver, { capture: true }), document.removeEventListener("pointerout", onPointerOut, { capture: true }), document.removeEventListener("pointerdown", onPointerDown2, { capture: true }), document.removeEventListener("visibilitychange", onVisibility, true), window.removeEventListener("pagehide", onVisibility, true), Ah === teardown && (Ah = null);
10476
+ };
10477
+ return Ah = teardown, teardown;
10333
10478
  } }, Symbol.toStringTag, { value: "Module" }));
10334
10479
  function createBlobWorker(e2) {
10335
10480
  const w2 = new Blob([e2], { type: "application/javascript" }), C2 = URL.createObjectURL(w2), x2 = new Worker(C2);
10336
10481
  return URL.revokeObjectURL(C2), x2;
10337
10482
  }
10338
- let Oh = null, Lh = 1;
10339
- const _h = /* @__PURE__ */ new Map();
10483
+ let Ph = null, Nh = 1;
10484
+ const Fh = /* @__PURE__ */ new Map();
10340
10485
  function encodeBitmap(e2, w2, C2 = false) {
10341
- const x2 = Lh++;
10486
+ const x2 = Nh++;
10342
10487
  return new Promise((M2) => {
10343
- _h.set(x2, M2), (function getImgWorker() {
10344
- return Oh || (Oh = createBlobWorker("\nself.onmessage = async (e) => {\n const { id, bitmap, quality, wantBytes } = e.data;\n try {\n const off = new OffscreenCanvas(bitmap.width, bitmap.height);\n const ctx = off.getContext('2d');\n ctx.drawImage(bitmap, 0, 0);\n bitmap.close();\n const blob = await off.convertToBlob({ type: 'image/webp', quality });\n if (wantBytes) {\n const buf = await blob.arrayBuffer();\n self.postMessage({ id, size: buf.byteLength, bytes: buf }, [buf]);\n } else {\n self.postMessage({ id, size: blob.size });\n }\n } catch (err) {\n self.postMessage({ id, size: 0, error: String(err) });\n }\n};\n"), Oh.onmessage = (e3) => {
10345
- const w3 = _h.get(e3.data.id);
10346
- w3 && (_h.delete(e3.data.id), w3({ size: e3.data.size, bytes: e3.data.bytes }));
10347
- }), Oh;
10488
+ Fh.set(x2, M2), (function getImgWorker() {
10489
+ return Ph || (Ph = createBlobWorker("\nself.onmessage = async (e) => {\n const { id, bitmap, quality, wantBytes } = e.data;\n try {\n const off = new OffscreenCanvas(bitmap.width, bitmap.height);\n const ctx = off.getContext('2d');\n ctx.drawImage(bitmap, 0, 0);\n bitmap.close();\n const blob = await off.convertToBlob({ type: 'image/webp', quality });\n if (wantBytes) {\n const buf = await blob.arrayBuffer();\n self.postMessage({ id, size: buf.byteLength, bytes: buf }, [buf]);\n } else {\n self.postMessage({ id, size: blob.size });\n }\n } catch (err) {\n self.postMessage({ id, size: 0, error: String(err) });\n }\n};\n"), Ph.onmessage = (e3) => {
10490
+ const w3 = Fh.get(e3.data.id);
10491
+ w3 && (Fh.delete(e3.data.id), w3({ size: e3.data.size, bytes: e3.data.bytes }));
10492
+ }), Ph;
10348
10493
  })().postMessage({ id: x2, bitmap: e2, quality: w2, wantBytes: C2 }, [e2]);
10349
10494
  });
10350
10495
  }
@@ -10427,7 +10572,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
10427
10572
  this.worker.terminate();
10428
10573
  }
10429
10574
  }
10430
- const Ah = { maxBytesPerSec: 524288, sustainMs: 3e3, maxVideoDrawsPerSec: 2, maxOpsPerFrame: 5e3 };
10575
+ const Bh = { maxBytesPerSec: 524288, sustainMs: 3e3, maxVideoDrawsPerSec: 2, maxOpsPerFrame: 5e3 };
10431
10576
  class CanvasGovernor {
10432
10577
  constructor(e2, w2) {
10433
10578
  __publicField(this, "thresholds");
@@ -10436,7 +10581,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
10436
10581
  __publicField(this, "frameT", NaN);
10437
10582
  __publicField(this, "frameOps", 0);
10438
10583
  __publicField(this, "opsExceeded", false);
10439
- this.now = e2, this.thresholds = { ...Ah, ...w2 };
10584
+ this.now = e2, this.thresholds = { ...Bh, ...w2 };
10440
10585
  }
10441
10586
  addBytes(e2) {
10442
10587
  const w2 = this.now();
@@ -10526,35 +10671,35 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
10526
10671
  this.scratch = null, this.scratchCtx = null;
10527
10672
  }
10528
10673
  }
10529
- const Dh = /^create[A-Z]/, Ph = /* @__PURE__ */ new Set(["getUniformLocation", "getExtension"]), Nh = /^(get(?!Extension$|UniformLocation$)|is[A-Z]|check|read|finish$|flush$)/;
10530
- let Fh = false;
10531
- const Bh = /* @__PURE__ */ new WeakMap();
10532
- let $h = null;
10674
+ const $h = /^create[A-Z]/, Uh = /* @__PURE__ */ new Set(["getUniformLocation", "getExtension"]), jh = /^(get(?!Extension$|UniformLocation$)|is[A-Z]|check|read|finish$|flush$)/;
10675
+ let Wh = false;
10676
+ const zh = /* @__PURE__ */ new WeakMap();
10677
+ let Gh = null;
10533
10678
  function texSourceToImageData(e2) {
10534
10679
  if ("undefined" != typeof ImageData && e2 instanceof ImageData) return e2;
10535
10680
  const w2 = e2, C2 = Number(w2.naturalWidth || w2.width) || 0, x2 = Number(w2.naturalHeight || w2.height) || 0;
10536
10681
  if (!C2 || !x2) return null;
10537
10682
  const M2 = (function texScratchCtx(e3, w3) {
10538
10683
  if ("undefined" == typeof document) return null;
10539
- if (!$h) {
10540
- $h = document.createElement("canvas");
10541
- const e4 = $h.getContext("2d");
10684
+ if (!Gh) {
10685
+ Gh = document.createElement("canvas");
10686
+ const e4 = Gh.getContext("2d");
10542
10687
  e4 && ignore2DContext(e4);
10543
10688
  }
10544
- $h.width === e3 && $h.height === w3 || ($h.width = e3, $h.height = w3);
10545
- const C3 = $h.getContext("2d");
10689
+ Gh.width === e3 && Gh.height === w3 || (Gh.width = e3, Gh.height = w3);
10690
+ const C3 = Gh.getContext("2d");
10546
10691
  return C3 && ignore2DContext(C3), C3;
10547
10692
  })(C2, x2);
10548
10693
  return M2 ? (M2.clearRect(0, 0, C2, x2), M2.drawImage(e2, 0, 0), M2.getImageData(0, 0, C2, x2)) : null;
10549
10694
  }
10550
- let Uh = null;
10695
+ let Vh = null;
10551
10696
  function setUntrackedGLContextNotifier(e2) {
10552
- Uh = e2;
10697
+ Vh = e2;
10553
10698
  }
10554
- let jh = null;
10555
- const Wh = /* @__PURE__ */ new Map();
10699
+ let Hh = null;
10700
+ const qh = /* @__PURE__ */ new Map();
10556
10701
  function setGLAutoAttach(e2) {
10557
- jh = e2, e2 && Wh.clear();
10702
+ Hh = e2, e2 && qh.clear();
10558
10703
  }
10559
10704
  class GLRecorder {
10560
10705
  constructor(e2, w2) {
@@ -10617,7 +10762,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
10617
10762
  recordCall(e2, w2, C2) {
10618
10763
  if (this.sink instanceof DiscardSink) return this.sink.onOp(en), void (this.pendingSiteId = void 0);
10619
10764
  const x2 = performance.now(), M2 = this.now(), I2 = this.pendingSiteId;
10620
- if (this.pendingSiteId = void 0, (Dh.test(e2) || Ph.has(e2)) && C2 && "object" == typeof C2) {
10765
+ if (this.pendingSiteId = void 0, ($h.test(e2) || Uh.has(e2)) && C2 && "object" == typeof C2) {
10621
10766
  const x3 = this.nextId++;
10622
10767
  this.refs.set(C2, x3), this.sink.onOp({ t: M2, op: "__create", create: true, args: [e2, x3, ...w2.map((e3) => this.arg(e3, M2))] });
10623
10768
  } else {
@@ -10647,36 +10792,36 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
10647
10792
  }
10648
10793
  }
10649
10794
  function attachGLRecorder(e2, w2, C2, x2) {
10650
- const M2 = Wh.get(e2);
10795
+ const M2 = qh.get(e2);
10651
10796
  if (M2) return M2.swapSink(C2), M2;
10652
10797
  const I2 = e2.getContext(w2);
10653
10798
  if (!I2) return null;
10654
10799
  const _2 = new GLRecorder(C2, x2);
10655
- return _2.rawCtx = I2, _2.bound = true, Bh.set(I2, _2), _2;
10800
+ return _2.rawCtx = I2, _2.bound = true, zh.set(I2, _2), _2;
10656
10801
  }
10657
10802
  function detachGLRecorderFromContext(e2) {
10658
- Bh.delete(e2);
10803
+ zh.delete(e2);
10659
10804
  }
10660
- const zh = 7340032, Gh = "__gpu";
10661
- let Vh = false, Hh = null, qh = null, Kh = false, Xh = false;
10805
+ const Kh = 7340032, Xh = "__gpu";
10806
+ let Yh = false, Zh = null, Jh = null, Qh = false, ef = false;
10662
10807
  function setGPUDeviceLostNotifier(e2) {
10663
- qh = e2, Kh = false, Xh = false;
10808
+ Jh = e2, Qh = false, ef = false;
10664
10809
  }
10665
- let Yh = null, nowFn = () => 0, Jh = 0, Qh = 3e6, Zh = false, ef = null, tf = null;
10666
- const nf = /* @__PURE__ */ new WeakMap(), rf = /* @__PURE__ */ new WeakMap(), of = /* @__PURE__ */ new WeakMap();
10810
+ let tf = null, nowFn = () => 0, nf = 0, rf = 3e6, of = false, sf = null, af = null;
10811
+ const cf = /* @__PURE__ */ new WeakMap(), lf = /* @__PURE__ */ new WeakMap(), uf = /* @__PURE__ */ new WeakMap();
10667
10812
  function emit(e2) {
10668
- Yh == null ? void 0 : Yh.onOp(e2);
10813
+ tf == null ? void 0 : tf.onOp(e2);
10669
10814
  }
10670
10815
  function intern(e2) {
10671
- let w2 = nf.get(e2);
10672
- return void 0 === w2 && (w2 = Qh++, nf.set(e2, w2)), w2;
10816
+ let w2 = cf.get(e2);
10817
+ return void 0 === w2 && (w2 = rf++, cf.set(e2, w2)), w2;
10673
10818
  }
10674
10819
  function deproxy(e2) {
10675
- return e2 && "object" == typeof e2 && of.has(e2) ? of.get(e2) : e2;
10820
+ return e2 && "object" == typeof e2 && uf.has(e2) ? uf.get(e2) : e2;
10676
10821
  }
10677
10822
  function deepDeproxy(e2) {
10678
10823
  if (!e2 || "object" != typeof e2) return e2;
10679
- if (of.has(e2)) return of.get(e2);
10824
+ if (uf.has(e2)) return uf.get(e2);
10680
10825
  if (ArrayBuffer.isView(e2) || e2 instanceof ArrayBuffer) return e2;
10681
10826
  if (Array.isArray(e2)) {
10682
10827
  let w3 = false;
@@ -10698,7 +10843,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
10698
10843
  }
10699
10844
  return e2;
10700
10845
  }
10701
- const sf = function serializeGPUArg(e2) {
10846
+ const df = function serializeGPUArg(e2) {
10702
10847
  var _a2;
10703
10848
  if (null == e2) return null;
10704
10849
  switch (typeof e2) {
@@ -10713,17 +10858,17 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
10713
10858
  return { $: "unsupported", kind: typeof e2 };
10714
10859
  }
10715
10860
  const w2 = deproxy(e2);
10716
- if (ArrayBuffer.isView(w2) || w2 instanceof ArrayBuffer) return w2.byteLength > zh ? { $: "unsupported", kind: "buffer-too-large" } : serializeTypedArray(w2);
10717
- const C2 = nf.get(w2);
10861
+ if (ArrayBuffer.isView(w2) || w2 instanceof ArrayBuffer) return w2.byteLength > Kh ? { $: "unsupported", kind: "buffer-too-large" } : serializeTypedArray(w2);
10862
+ const C2 = cf.get(w2);
10718
10863
  if (void 0 !== C2) return { $: "obj", id: C2 };
10719
10864
  try {
10720
10865
  const e3 = JSON.stringify(w2, (e4, w3) => {
10721
10866
  if (w3 && "object" == typeof w3) {
10722
- const e5 = deproxy(w3), C3 = nf.get(e5);
10867
+ const e5 = deproxy(w3), C3 = cf.get(e5);
10723
10868
  if (void 0 !== C3) return { __sfRef: C3 };
10724
10869
  if (ArrayBuffer.isView(e5)) {
10725
10870
  const w4 = e5;
10726
- if (w4.byteLength > zh) return { __sfUnsupported: "buffer-too-large" };
10871
+ if (w4.byteLength > Kh) return { __sfUnsupported: "buffer-too-large" };
10727
10872
  const C4 = Qt.findIndex((e6) => w4 instanceof e6);
10728
10873
  return C4 < 0 ? { __sfUnsupported: "typed-array-kind" } : { __sfTa: Array.from(w4), __sfK: C4 };
10729
10874
  }
@@ -10743,23 +10888,23 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
10743
10888
  }
10744
10889
  function wrap(e2) {
10745
10890
  var _a2;
10746
- const w2 = rf.get(e2);
10891
+ const w2 = lf.get(e2);
10747
10892
  if (w2) return w2;
10748
10893
  "GPUDevice" === ((_a2 = e2.constructor) == null ? void 0 : _a2.name) && (function watchDeviceLost(e3) {
10749
10894
  const w3 = e3.lost;
10750
10895
  if (w3 && "function" == typeof w3.then) {
10751
- if (Xh && !Kh) {
10752
- Kh = true;
10896
+ if (ef && !Qh) {
10897
+ Qh = true;
10753
10898
  try {
10754
- qh == null ? void 0 : qh(false);
10899
+ Jh == null ? void 0 : Jh(false);
10755
10900
  } catch {
10756
10901
  }
10757
10902
  }
10758
10903
  w3.then((e4) => {
10759
- if (!(e4 && "destroyed" === e4.reason || Xh)) {
10760
- Xh = true;
10904
+ if (!(e4 && "destroyed" === e4.reason || ef)) {
10905
+ ef = true;
10761
10906
  try {
10762
- qh == null ? void 0 : qh(true);
10907
+ Jh == null ? void 0 : Jh(true);
10763
10908
  } catch {
10764
10909
  }
10765
10910
  }
@@ -10772,33 +10917,33 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
10772
10917
  if ("symbol" == typeof w3) return x2;
10773
10918
  if ("function" == typeof x2) return (...C4) => {
10774
10919
  const M2 = performance.now(), I2 = C4.map(deepDeproxy), _2 = x2.apply(e3, I2);
10775
- if (Yh instanceof DiscardSink) return Yh.onOp(en), _2 && "object" == typeof _2 && "function" == typeof _2.then ? _2.then((e4) => e4 && "object" == typeof e4 && shouldProxyResult(e4) ? (intern(e4), wrap(e4)) : e4) : shouldProxyResult(_2) ? (intern(_2), wrap(_2)) : _2;
10776
- if (Yh) {
10920
+ if (tf instanceof DiscardSink) return tf.onOp(en), _2 && "object" == typeof _2 && "function" == typeof _2.then ? _2.then((e4) => e4 && "object" == typeof e4 && shouldProxyResult(e4) ? (intern(e4), wrap(e4)) : e4) : shouldProxyResult(_2) ? (intern(_2), wrap(_2)) : _2;
10921
+ if (tf) {
10777
10922
  const x3 = intern(e3);
10778
10923
  if (_2 && "object" == typeof _2 && "function" == typeof _2.then) {
10779
- const e4 = Qh++;
10780
- return emit({ t: nowFn(), op: Gh, objcall: true, args: [x3, String(w3), e4, ...C4.map(sf)] }), Jh += performance.now() - M2, _2.then((w4) => w4 && "object" == typeof w4 ? (nf.set(w4, e4), wrap(w4)) : w4);
10924
+ const e4 = rf++;
10925
+ return emit({ t: nowFn(), op: Xh, objcall: true, args: [x3, String(w3), e4, ...C4.map(df)] }), nf += performance.now() - M2, _2.then((w4) => w4 && "object" == typeof w4 ? (cf.set(w4, e4), wrap(w4)) : w4);
10781
10926
  }
10782
10927
  let I3 = 0;
10783
- return shouldProxyResult(_2) && (I3 = intern(_2)), emit({ t: nowFn(), op: Gh, objcall: true, args: [x3, String(w3), I3, ...C4.map(sf)] }), Jh += performance.now() - M2, shouldProxyResult(_2) ? wrap(_2) : _2;
10928
+ return shouldProxyResult(_2) && (I3 = intern(_2)), emit({ t: nowFn(), op: Xh, objcall: true, args: [x3, String(w3), I3, ...C4.map(df)] }), nf += performance.now() - M2, shouldProxyResult(_2) ? wrap(_2) : _2;
10784
10929
  }
10785
10930
  return _2 && "object" == typeof _2 && "function" == typeof _2.then ? _2.then((e4) => e4 && "object" == typeof e4 && shouldProxyResult(e4) ? (intern(e4), wrap(e4)) : e4) : shouldProxyResult(_2) ? (intern(_2), wrap(_2)) : _2;
10786
10931
  };
10787
10932
  if (shouldProxyResult(x2)) {
10788
- const C4 = nf.has(x2), M2 = intern(x2);
10789
- return C4 || !Yh || Yh instanceof DiscardSink || emit({ t: nowFn(), op: "__gpuprop", objcall: true, args: [intern(e3), String(w3), M2] }), wrap(x2);
10933
+ const C4 = cf.has(x2), M2 = intern(x2);
10934
+ return C4 || !tf || tf instanceof DiscardSink || emit({ t: nowFn(), op: "__gpuprop", objcall: true, args: [intern(e3), String(w3), M2] }), wrap(x2);
10790
10935
  }
10791
10936
  return x2;
10792
10937
  } });
10793
- return rf.set(e2, C2), of.set(C2, e2), C2;
10938
+ return lf.set(e2, C2), uf.set(C2, e2), C2;
10794
10939
  }
10795
10940
  function setGPUAutoAttach(e2) {
10796
- Hh = e2, e2 && (nowFn = e2.now, Yh || (Yh = new BufferSink(), Zh = false));
10941
+ Zh = e2, e2 && (nowFn = e2.now, tf || (tf = new BufferSink(), of = false));
10797
10942
  }
10798
- const af = ["video/webm;codecs=vp9", "video/webm;codecs=vp8", "video/webm", "video/mp4"];
10943
+ const pf = ["video/webm;codecs=vp9", "video/webm;codecs=vp8", "video/webm", "video/mp4"];
10799
10944
  function pickMime() {
10800
10945
  if ("undefined" == typeof MediaRecorder || "function" != typeof MediaRecorder.isTypeSupported) return null;
10801
- for (const e2 of af) try {
10946
+ for (const e2 of pf) try {
10802
10947
  if (MediaRecorder.isTypeSupported(e2)) return e2;
10803
10948
  } catch {
10804
10949
  }
@@ -10918,7 +11063,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
10918
11063
  } catch {
10919
11064
  }
10920
11065
  }
10921
- const cf = 18e5;
11066
+ const hf = 18e5;
10922
11067
  class VideoCapture {
10923
11068
  constructor(e2, w2, C2, x2) {
10924
11069
  __publicField(this, "client", null);
@@ -10945,7 +11090,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
10945
11090
  const e2 = this.canvas.width, w2 = this.canvas.height;
10946
11091
  if (!e2 || !w2) return this.failed = true, this.out.note("zero-size canvas — video capture unavailable"), false;
10947
11092
  this.client = new VideoEncoderClient({ onDecoderConfig: (e3, w3) => this.out.onInit(e3, w3), onChunk: (e3, w3, C2) => this.out.onChunk(C2, w3, e3), onError: (e3) => this.out.note(e3) });
10948
- return await this.client.configure({ width: e2, height: w2, bitrate: cf, codecs: ["avc1.42001f", "vp8", "vp09.00.10.08"] }) ? (this.configured = true, this.configuredW = e2, this.configuredH = w2, ((_a2 = this.opts) == null ? void 0 : _a2.intervalPaced) && (this.intervalId = setInterval(() => this.afterRender(this.now()), 50)), true) : (this.failed = true, this.out.note("no supported video codec"), this.client.terminate(), this.client = null, false);
11093
+ return await this.client.configure({ width: e2, height: w2, bitrate: hf, codecs: ["avc1.42001f", "vp8", "vp09.00.10.08"] }) ? (this.configured = true, this.configuredW = e2, this.configuredH = w2, ((_a2 = this.opts) == null ? void 0 : _a2.intervalPaced) && (this.intervalId = setInterval(() => this.afterRender(this.now()), 50)), true) : (this.failed = true, this.out.note("no supported video codec"), this.client.terminate(), this.client = null, false);
10949
11094
  }
10950
11095
  onInteraction(e2) {
10951
11096
  this.boostUntil = e2 + 1500, this.lastKey = -1 / 0;
@@ -10982,7 +11127,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
10982
11127
  } catch {
10983
11128
  }
10984
11129
  if (this.stopped) return;
10985
- const x2 = new VideoEncoderClient({ onDecoderConfig: (e3, w3) => this.out.onInit(e3, w3), onChunk: (e3, w3, C3) => this.out.onChunk(C3, w3, e3), onError: (e3) => this.out.note(e3) }), M2 = await x2.configure({ width: e2, height: w2, bitrate: cf, codecs: ["avc1.42001f", "vp8", "vp09.00.10.08"] });
11130
+ const x2 = new VideoEncoderClient({ onDecoderConfig: (e3, w3) => this.out.onInit(e3, w3), onChunk: (e3, w3, C3) => this.out.onChunk(C3, w3, e3), onError: (e3) => this.out.note(e3) }), M2 = await x2.configure({ width: e2, height: w2, bitrate: hf, codecs: ["avc1.42001f", "vp8", "vp09.00.10.08"] });
10986
11131
  if (this.stopped || !M2) return x2.terminate(), void (M2 || this.out.note("encoder restart failed after resize — frames dropped until next resize"));
10987
11132
  this.client = x2, this.configuredW = e2, this.configuredH = w2, this.configured = true, this.forceKeyNext = true, this.lastFrame = -1 / 0, this.lastKey = -1 / 0;
10988
11133
  } finally {
@@ -11000,15 +11145,15 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
11000
11145
  this.stopped || (this.stopped = true, null != this.intervalId && (clearInterval(this.intervalId), this.intervalId = null), this.client && (await this.client.stop(), this.client.terminate(), this.client = null));
11001
11146
  }
11002
11147
  }
11003
- const lf = /* @__PURE__ */ new WeakMap(), uf = /* @__PURE__ */ new Map();
11004
- let df = false, pf = null;
11148
+ const ff = /* @__PURE__ */ new WeakMap(), mf = /* @__PURE__ */ new Map();
11149
+ let gf = false, yf = null;
11005
11150
  function setWorkerAssociationNotifier(e2) {
11006
- pf = e2;
11151
+ yf = e2;
11007
11152
  }
11008
- const hf = 1048576, ff = { deviceClass: "desktop", sessionByteBudget: 256 * hf, maxConcurrentVideo: 4, governor: {}, preferMediaRecorder: false }, mf = { deviceClass: "mobile", sessionByteBudget: 96 * hf, maxConcurrentVideo: 2, governor: { maxBytesPerSec: 262144, maxOpsPerFrame: 3e3 }, preferMediaRecorder: false }, gf = { deviceClass: "mobile-lowend", sessionByteBudget: 48 * hf, maxConcurrentVideo: 1, governor: { maxBytesPerSec: 131072, maxOpsPerFrame: 2e3, maxVideoDrawsPerSec: 1 }, preferMediaRecorder: false };
11153
+ const vf = 1048576, wf = { deviceClass: "desktop", sessionByteBudget: 256 * vf, maxConcurrentVideo: 4, governor: {}, preferMediaRecorder: false }, bf = { deviceClass: "mobile", sessionByteBudget: 96 * vf, maxConcurrentVideo: 2, governor: { maxBytesPerSec: 262144, maxOpsPerFrame: 3e3 }, preferMediaRecorder: false }, Sf = { deviceClass: "mobile-lowend", sessionByteBudget: 48 * vf, maxConcurrentVideo: 1, governor: { maxBytesPerSec: 131072, maxOpsPerFrame: 2e3, maxVideoDrawsPerSec: 1 }, preferMediaRecorder: false };
11009
11154
  function resolveDeviceBudgets(e2) {
11010
11155
  const w2 = "undefined" != typeof navigator ? navigator : void 0;
11011
- if (!w2) return ff;
11156
+ if (!w2) return wf;
11012
11157
  const C2 = w2.deviceMemory, x2 = w2.hardwareConcurrency, M2 = "number" == typeof C2 && C2 <= 2, I2 = "number" == typeof x2 && x2 <= 4, _2 = (function isExplicitIOS(e3) {
11013
11158
  return /iPhone|iPad|iPod/.test(e3.userAgent ?? "");
11014
11159
  })(w2);
@@ -11017,7 +11162,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
11017
11162
  return /Mobi|Android|iPhone|iPad|iPod/.test(e3.userAgent ?? "") || (function isIPadDesktopUA(e4) {
11018
11163
  return /Macintosh/.test(e4.userAgent ?? "") && (e4.maxTouchPoints ?? 0) > 1;
11019
11164
  })(e3);
11020
- })(w2) ? M2 && I2 ? gf : mf : M2 && I2 ? gf : ff, _2 ? { ...U2, preferMediaRecorder: true } : U2;
11165
+ })(w2) ? M2 && I2 ? Sf : bf : M2 && I2 ? Sf : wf, _2 ? { ...U2, preferMediaRecorder: true } : U2;
11021
11166
  }
11022
11167
  function decayBytes(e2, w2, C2, x2) {
11023
11168
  return x2 <= 0 || w2 <= 0 || C2 <= 0 ? Math.max(0, e2) : Math.max(0, e2 - x2 * (w2 / C2));
@@ -11040,12 +11185,12 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
11040
11185
  return this.max - this.used;
11041
11186
  }
11042
11187
  }
11043
- let yf = null;
11188
+ let kf = null;
11044
11189
  const now = () => Date.now(), encodeImage = (e2) => encodeBitmap(e2, 0.85, true);
11045
11190
  function noteOnce(e2) {
11046
11191
  var _a2;
11047
- if (yf && !yf.notes.has(e2)) {
11048
- yf.notes.add(e2);
11192
+ if (kf && !kf.notes.has(e2)) {
11193
+ kf.notes.add(e2);
11049
11194
  try {
11050
11195
  (_a2 = console.debug) == null ? void 0 : _a2.call(console, "[Sailfish][canvas]", e2);
11051
11196
  } catch {
@@ -11053,13 +11198,13 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
11053
11198
  }
11054
11199
  }
11055
11200
  function emitEvent(e2) {
11056
- if (yf) try {
11057
- yf.deps.addSailfishEvent(e2);
11201
+ if (kf) try {
11202
+ kf.deps.addSailfishEvent(e2);
11058
11203
  } catch {
11059
11204
  }
11060
11205
  }
11061
11206
  function sendFrame(e2, w2, C2, x2, M2 = Date.now()) {
11062
- const I2 = yf;
11207
+ const I2 = kf;
11063
11208
  if (!I2) return;
11064
11209
  const _2 = null == x2 ? 0 : x2.byteLength;
11065
11210
  if (_2 > 8388608) return void noteOnce(`oversize ${w2} frame dropped (${_2}B > 8MiB)`);
@@ -11080,7 +11225,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
11080
11225
  function markDirty(e2) {
11081
11226
  e2.dirty = true, e2.everDirty = true, e2.pumpScheduled || (e2.pumpScheduled = true, queueMicrotask(() => (function pumpCanvas(e3) {
11082
11227
  var _a2, _b, _c2, _d2, _e2;
11083
- if (e3.pumpScheduled = false, !yf || e3.stopped || !e3.dirty) return;
11228
+ if (e3.pumpScheduled = false, !kf || e3.stopped || !e3.dirty) return;
11084
11229
  if (e3.contextLost) return void (e3.dirty = false);
11085
11230
  e3.dirty = false;
11086
11231
  const w2 = now();
@@ -11141,9 +11286,9 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
11141
11286
  e2.demoted = true, flushBatch(e2), (_a2 = e2.keyframes) == null ? void 0 : _a2.takeKeyframe(now());
11142
11287
  const C2 = new DiscardSink(() => markDirty(e2));
11143
11288
  if (e2.recorder2d && e2.recorder2d.swapSink(C2), e2.recorderGL && e2.recorderGL.swapSink(C2), e2.recorderGPU && (function swapGPUSink(e3) {
11144
- Yh && (Yh = e3);
11145
- })(C2), !(yf == null ? void 0 : yf.budgets.preferMediaRecorder) || !tryStartMediaRecorder(e2, w2)) if (VideoCapture.supported()) {
11146
- if (!tryAcquireVideoSlot(e2)) return e2.mode = "none", noteOnce(`video-encoder cap (${(yf == null ? void 0 : yf.budgets.maxConcurrentVideo) ?? 4}) reached — canvas kept on keyframes`), void emitEvent({ op: "mode", canvasId: e2.canvasId, mode: "none", reason: `${w2} (video-encoder cap reached — keyframes only)` });
11289
+ tf && (tf = e3);
11290
+ })(C2), !(kf == null ? void 0 : kf.budgets.preferMediaRecorder) || !tryStartMediaRecorder(e2, w2)) if (VideoCapture.supported()) {
11291
+ if (!tryAcquireVideoSlot(e2)) return e2.mode = "none", noteOnce(`video-encoder cap (${(kf == null ? void 0 : kf.budgets.maxConcurrentVideo) ?? 4}) reached — canvas kept on keyframes`), void emitEvent({ op: "mode", canvasId: e2.canvasId, mode: "none", reason: `${w2} (video-encoder cap reached — keyframes only)` });
11147
11292
  e2.mode = "video", emitEvent({ op: "mode", canvasId: e2.canvasId, mode: "video", reason: w2 });
11148
11293
  const C3 = makeVideo(e2, false);
11149
11294
  e2.video = C3, C3.start().then((w3) => {
@@ -11158,7 +11303,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
11158
11303
  });
11159
11304
  }
11160
11305
  function maybeInitialKeyframe(e2) {
11161
- const w2 = yf;
11306
+ const w2 = kf;
11162
11307
  if (w2 && e2.keyframes && !(function wasPreAttachMaskUsed(e3) {
11163
11308
  return !!un || !!e3 && ln.has(e3);
11164
11309
  })(e2.canvas) && w2.preExisting.has(e2.canvas)) {
@@ -11170,21 +11315,21 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
11170
11315
  }
11171
11316
  }
11172
11317
  function tryAcquireVideoSlot(e2) {
11173
- const w2 = yf;
11318
+ const w2 = kf;
11174
11319
  return !!w2 && (!!e2.hasVideoSlot || !!w2.videoSlots.acquire() && (e2.hasVideoSlot = true, true));
11175
11320
  }
11176
11321
  function releaseVideoSlot(e2) {
11177
- e2.hasVideoSlot && (e2.hasVideoSlot = false, yf == null ? void 0 : yf.videoSlots.release());
11322
+ e2.hasVideoSlot && (e2.hasVideoSlot = false, kf == null ? void 0 : kf.videoSlots.release());
11178
11323
  }
11179
11324
  function makeVideo(e2, w2) {
11180
- return new VideoCapture(e2.canvas, now, { onInit: (w3, C2) => sendFrame(e2, "video-init", { codec: w3, description: C2 ? bytesToBase64(C2) : null }, null), onChunk: (w3, C2, x2) => sendFrame(e2, "video-chunk", { key: w3, timestampUs: C2 }, x2), note: noteOnce, isTransportSaturated: (yf == null ? void 0 : yf.deps.isTransportSaturated) ? () => {
11325
+ return new VideoCapture(e2.canvas, now, { onInit: (w3, C2) => sendFrame(e2, "video-init", { codec: w3, description: C2 ? bytesToBase64(C2) : null }, null), onChunk: (w3, C2, x2) => sendFrame(e2, "video-chunk", { key: w3, timestampUs: C2 }, x2), note: noteOnce, isTransportSaturated: (kf == null ? void 0 : kf.deps.isTransportSaturated) ? () => {
11181
11326
  var _a2, _b;
11182
- return !!((_b = yf == null ? void 0 : (_a2 = yf.deps).isTransportSaturated) == null ? void 0 : _b.call(_a2));
11327
+ return !!((_b = kf == null ? void 0 : (_a2 = kf.deps).isTransportSaturated) == null ? void 0 : _b.call(_a2));
11183
11328
  } : void 0 }, { intervalPaced: w2 });
11184
11329
  }
11185
11330
  function tryStartMediaRecorder(e2, w2) {
11186
11331
  if (!MediaRecorderCapture.supported()) return false;
11187
- if (!tryAcquireVideoSlot(e2)) return noteOnce(`video-encoder cap (${(yf == null ? void 0 : yf.budgets.maxConcurrentVideo) ?? 4}) reached — canvas kept on keyframes`), false;
11332
+ if (!tryAcquireVideoSlot(e2)) return noteOnce(`video-encoder cap (${(kf == null ? void 0 : kf.budgets.maxConcurrentVideo) ?? 4}) reached — canvas kept on keyframes`), false;
11188
11333
  const C2 = (function makeMediaRecorder(e3) {
11189
11334
  return new MediaRecorderCapture(e3.canvas, { onInit: (w3, C3, x2) => sendFrame(e3, "video-init", { codec: "mediarecorder", mimeType: w3, w: C3, h: x2 }, null), onChunk: (w3, C3) => sendFrame(e3, "video-chunk", { codec: "mediarecorder", seq: w3 }, C3), note: noteOnce });
11190
11335
  })(e2);
@@ -11194,7 +11339,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
11194
11339
  }
11195
11340
  function baseController(e2, w2, C2, x2, M2 = "normal") {
11196
11341
  var _a2;
11197
- return { canvas: e2, canvasId: w2, contextType: C2, mode: x2, privacyMode: M2, seq: 0, dirty: false, everDirty: false, pumpScheduled: false, flushTimer: null, stopped: false, demoted: false, hasVideoSlot: false, contextLost: false, taintEmitted: false, lastW: e2.width, lastH: e2.height, removeContextLossListeners: null, governor: new CanvasGovernor(now, (_a2 = yf == null ? void 0 : yf.budgets) == null ? void 0 : _a2.governor), encoder: null, batchStart: 0, flushChain: Promise.resolve(), keyframes: null, video: null, mediaRecorder: null, recorder2d: null, recorderGL: null, recorderGPU: null, worker: null, workerDone: null, removeWorkerListener: null, pixelSuppressed: false };
11342
+ return { canvas: e2, canvasId: w2, contextType: C2, mode: x2, privacyMode: M2, seq: 0, dirty: false, everDirty: false, pumpScheduled: false, flushTimer: null, stopped: false, demoted: false, hasVideoSlot: false, contextLost: false, taintEmitted: false, lastW: e2.width, lastH: e2.height, removeContextLossListeners: null, governor: new CanvasGovernor(now, (_a2 = kf == null ? void 0 : kf.budgets) == null ? void 0 : _a2.governor), encoder: null, batchStart: 0, flushChain: Promise.resolve(), keyframes: null, video: null, mediaRecorder: null, recorder2d: null, recorderGL: null, recorderGPU: null, worker: null, workerDone: null, removeWorkerListener: null, pixelSuppressed: false };
11198
11343
  }
11199
11344
  function dpr() {
11200
11345
  return "undefined" != typeof window ? window.devicePixelRatio : 1;
@@ -11225,23 +11370,23 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
11225
11370
  return { recordSsn: e2.recordSsn, recordCreditCardInfo: e2.recordCreditCardInfo, recordDob: e2.recordDob };
11226
11371
  }
11227
11372
  function classify(e2) {
11228
- return yf ? classifyCanvasPrivacy(e2, yf.privacySettings) : "normal";
11373
+ return kf ? classifyCanvasPrivacy(e2, kf.privacySettings) : "normal";
11229
11374
  }
11230
11375
  function makeTextRedactor(e2) {
11231
11376
  if ("redact" === e2) return (e3) => redactCanvasText(e3, "redact", {});
11232
11377
  if ("normal" === e2 && (function contentDetectionActive() {
11233
- const e3 = yf == null ? void 0 : yf.contentFlags;
11378
+ const e3 = kf == null ? void 0 : kf.contentFlags;
11234
11379
  return !!e3 && (false === e3.recordCreditCardInfo || false === e3.recordSsn || false === e3.recordDob);
11235
11380
  })()) {
11236
- const e3 = yf.contentFlags;
11381
+ const e3 = kf.contentFlags;
11237
11382
  return (w2) => redactCanvasText(w2, "normal", e3);
11238
11383
  }
11239
11384
  }
11240
11385
  function emitMasked(e2, w2) {
11241
- const C2 = yf ? (function suppressReason(e3, w3) {
11386
+ const C2 = kf ? (function suppressReason(e3, w3) {
11242
11387
  if (!closestSafe(e3, w3.unmaskSelector)) return closestSafe(e3, w3.blockSelector) ? "block" : closestSafe(e3, maskCanvasSelector(w3)) ? "mask" : void 0;
11243
- })(e2, yf.privacySettings) : void 0, x2 = { op: "masked", canvasId: w2 };
11244
- C2 && (x2.reason = C2), emitEvent(x2), yf == null ? void 0 : yf.suppressed.add(e2);
11388
+ })(e2, kf.privacySettings) : void 0, x2 = { op: "masked", canvasId: w2 };
11389
+ C2 && (x2.reason = C2), emitEvent(x2), kf == null ? void 0 : kf.suppressed.add(e2);
11245
11390
  }
11246
11391
  function escalateRedactIfPixelText(e2, w2) {
11247
11392
  return "redact" !== e2 ? e2 : "webgl" === w2 || "webgl2" === w2 || "experimental-webgl" === w2 || "webgpu" === w2 || "worker" === w2 ? (noteOnce(`redact canvas with pixel-only text (${w2}) — escalated to suppress`), "suppress") : e2;
@@ -11250,10 +11395,10 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
11250
11395
  return new Promise((w2) => {
11251
11396
  let C2 = 0;
11252
11397
  const attempt = () => {
11253
- if (!yf || yf.stopped) return w2(null);
11398
+ if (!kf || kf.stopped) return w2(null);
11254
11399
  let x2 = -1;
11255
11400
  try {
11256
- x2 = yf.deps.mirror.getId(e2);
11401
+ x2 = kf.deps.mirror.getId(e2);
11257
11402
  } catch {
11258
11403
  }
11259
11404
  return "number" == typeof x2 && x2 >= 0 ? w2(String(x2)) : ++C2 > 30 ? (noteOnce("canvas never received an rrweb mirror id — not recorded"), w2(null)) : void setTimeout(attempt, 300);
@@ -11262,11 +11407,11 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
11262
11407
  });
11263
11408
  }
11264
11409
  function rearmCanvas(e2) {
11265
- const w2 = yf;
11410
+ const w2 = kf;
11266
11411
  w2 && !w2.stopped && (w2.handled.delete(e2), w2.suppressed.delete(e2), considerCanvas(e2));
11267
11412
  }
11268
11413
  function reevaluateAllMasking() {
11269
- const e2 = yf;
11414
+ const e2 = kf;
11270
11415
  if (e2 && !e2.stopped) {
11271
11416
  for (const w2 of [...e2.controllers.values()]) {
11272
11417
  if (w2.stopped) continue;
@@ -11288,7 +11433,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
11288
11433
  }
11289
11434
  }
11290
11435
  function onCanvasRemoved(e2) {
11291
- const w2 = yf;
11436
+ const w2 = kf;
11292
11437
  if (!w2 || w2.stopped) return;
11293
11438
  if (e2.isConnected) return;
11294
11439
  const C2 = w2.controllers.get(e2);
@@ -11299,7 +11444,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
11299
11444
  w2.handled.delete(e2), w2.suppressed.delete(e2);
11300
11445
  }
11301
11446
  function considerCanvas(e2) {
11302
- const w2 = yf;
11447
+ const w2 = kf;
11303
11448
  if (!w2 || w2.stopped || w2.handled.has(e2)) return;
11304
11449
  if (!e2.isConnected) return (function releaseAutoRecorder(e3) {
11305
11450
  const w3 = bn.get(e3);
@@ -11310,12 +11455,12 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
11310
11455
  null != w3 && emitMasked(e2, w3);
11311
11456
  });
11312
11457
  const x2 = (function getWorkerForCanvas(e3) {
11313
- return uf.get(e3);
11458
+ return mf.get(e3);
11314
11459
  })(e2), M2 = (function getContextInfo(e3) {
11315
11460
  return Sn.get(e3);
11316
11461
  })(e2);
11317
11462
  (x2 || M2) && (w2.handled.add(e2), resolveCanvasId(e2).then((w3) => {
11318
- if (null != w3 && yf && !yf.stopped) if (x2) {
11463
+ if (null != w3 && kf && !kf.stopped) if (x2) {
11319
11464
  if ("redact" === C2) return noteOnce("redact worker/offscreen canvas — escalated to suppress (no DOM to redact)"), void emitMasked(e2, w3);
11320
11465
  !(async function buildWorkerController(e3, w4, C3) {
11321
11466
  const x3 = await (function pingWorkerShim(e4, w5 = 500) {
@@ -11334,7 +11479,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
11334
11479
  finish(false);
11335
11480
  }
11336
11481
  });
11337
- })(C3), M3 = yf;
11482
+ })(C3), M3 = kf;
11338
11483
  if (!M3 || M3.stopped) return;
11339
11484
  if (x3) {
11340
11485
  const x4 = baseController(e3, w4, "worker", "commands");
@@ -11348,7 +11493,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
11348
11493
  else if ("sf-record-noctx" === (w5 == null ? void 0 : w5.type)) {
11349
11494
  if (!x4.stopped && "commands" === x4.mode && !x4.video && !x4.mediaRecorder) {
11350
11495
  const e5 = VideoCapture.supported() && tryAcquireVideoSlot(x4);
11351
- if (VideoCapture.supported() && !e5 && noteOnce(`video-encoder cap (${(yf == null ? void 0 : yf.budgets.maxConcurrentVideo) ?? 4}) reached — worker canvas kept on keyframes`), e5) {
11496
+ if (VideoCapture.supported() && !e5 && noteOnce(`video-encoder cap (${(kf == null ? void 0 : kf.budgets.maxConcurrentVideo) ?? 4}) reached — worker canvas kept on keyframes`), e5) {
11352
11497
  x4.mode = "video", emitEvent({ op: "mode", canvasId: x4.canvasId, mode: "video", reason: "worker-no-2d-context" });
11353
11498
  const e6 = makeVideo(x4, true);
11354
11499
  x4.video = e6, e6.start().then((e7) => {
@@ -11373,7 +11518,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
11373
11518
  I2.video = e4, e4.start().then((e5) => {
11374
11519
  e5 || I2.stopped || (I2.video = null, releaseVideoSlot(I2), I2.mode = "none", emitEvent({ op: "mode", canvasId: I2.canvasId, mode: "none", reason: "video-start-failed" }));
11375
11520
  });
11376
- } else VideoCapture.supported() ? noteOnce(`video-encoder cap (${(yf == null ? void 0 : yf.budgets.maxConcurrentVideo) ?? 4}) reached — worker placeholder canvas not captured`) : tryStartMediaRecorder(I2, "worker-no-shim") || noteOnce("worker canvas without shim and no usable video backend — not captured");
11521
+ } else VideoCapture.supported() ? noteOnce(`video-encoder cap (${(kf == null ? void 0 : kf.budgets.maxConcurrentVideo) ?? 4}) reached — worker placeholder canvas not captured`) : tryStartMediaRecorder(I2, "worker-no-shim") || noteOnce("worker canvas without shim and no usable video backend — not captured");
11377
11522
  emitStart(I2);
11378
11523
  })(e2, w3, x2);
11379
11524
  } else if ("2d" === M2.type) build2DController(e2, w3, null, C2);
@@ -11381,7 +11526,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
11381
11526
  const x3 = escalateRedactIfPixelText(C2, M2.type);
11382
11527
  if ("suppress" === x3) return void emitMasked(e2, w3);
11383
11528
  !(function buildGLController(e3, w4, C3, x4, M3 = "normal") {
11384
- const I2 = yf;
11529
+ const I2 = kf;
11385
11530
  if (!I2 || I2.stopped) return;
11386
11531
  const _2 = "experimental-webgl" === C3 ? "webgl" : C3;
11387
11532
  if ("suppress" === escalateRedactIfPixelText(M3, _2)) return void emitMasked(e3, w4);
@@ -11396,22 +11541,22 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
11396
11541
  const x3 = escalateRedactIfPixelText(C2, "webgpu");
11397
11542
  if ("suppress" === x3) return void emitMasked(e2, w3);
11398
11543
  !(function buildGPUController(e3, w4, C3 = "normal") {
11399
- const x4 = yf;
11544
+ const x4 = kf;
11400
11545
  if (!x4 || x4.stopped) return;
11401
11546
  if ("suppress" === escalateRedactIfPixelText(C3, "webgpu")) return void emitMasked(e3, w4);
11402
11547
  const M3 = baseController(e3, w4, "webgpu", "commands", C3);
11403
11548
  M3.encoder = new CommandEncoder();
11404
11549
  const I2 = (function attachGPURecorder(e4, w5, C4) {
11405
- if (ef !== e4 || !Yh) return null;
11406
- tf = e4, nowFn = C4;
11407
- const x5 = Yh;
11408
- if (Yh = w5, x5 instanceof BufferSink) {
11550
+ if (sf !== e4 || !tf) return null;
11551
+ af = e4, nowFn = C4;
11552
+ const x5 = tf;
11553
+ if (tf = w5, x5 instanceof BufferSink) {
11409
11554
  for (const e5 of x5.ops) w5.onOp(e5);
11410
11555
  for (const e5 of x5.notes) w5.note(e5);
11411
11556
  }
11412
11557
  return { detach() {
11413
- Yh = null, tf = null, ef = null;
11414
- }, cpuMs: () => Jh };
11558
+ tf = null, af = null, sf = null;
11559
+ }, cpuMs: () => nf };
11415
11560
  })(e3, makeCommandSink(M3), now);
11416
11561
  I2 || (M3.mode = "none", noteOnce("WebGPU recorder not armed for this canvas — nothing recorded"));
11417
11562
  M3.recorderGPU = I2, M3.keyframes = makeKeyframes(M3), (function installGPUContextLossHandling(e4) {
@@ -11434,12 +11579,12 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
11434
11579
  })(e2, w3, x3);
11435
11580
  } else {
11436
11581
  const C3 = baseController(e2, w3, "unknown", "none");
11437
- yf.controllers.set(e2, C3), emitStart(C3), noteOnce(`unsupported context type "${M2.type}" — not captured`);
11582
+ kf.controllers.set(e2, C3), emitStart(C3), noteOnce(`unsupported context type "${M2.type}" — not captured`);
11438
11583
  }
11439
11584
  }));
11440
11585
  }
11441
11586
  function build2DController(e2, w2, C2, x2 = "normal") {
11442
- const M2 = yf;
11587
+ const M2 = kf;
11443
11588
  if (!M2 || M2.stopped) return;
11444
11589
  const I2 = baseController(e2, w2, "2d", "commands", x2);
11445
11590
  I2.encoder = new CommandEncoder();
@@ -11488,7 +11633,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
11488
11633
  };
11489
11634
  }
11490
11635
  function onUntracked2D(e2) {
11491
- const w2 = yf;
11636
+ const w2 = kf;
11492
11637
  if (!w2 || w2.stopped || w2.seenContexts.has(e2)) return;
11493
11638
  w2.seenContexts.add(e2);
11494
11639
  const C2 = e2.canvas;
@@ -11505,11 +11650,11 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
11505
11650
  return _2.bound = true, fn.set(e3, _2), _2;
11506
11651
  })(e2, new BufferSink(), now, "cas", encodeImage, { retainAssets: false });
11507
11652
  resolveCanvasId(C2).then((w3) => {
11508
- null != w3 && yf && !yf.stopped ? build2DController(C2, w3, M2, x2) : detachRecorderFromContext(e2);
11653
+ null != w3 && kf && !kf.stopped ? build2DController(C2, w3, M2, x2) : detachRecorderFromContext(e2);
11509
11654
  });
11510
11655
  }
11511
11656
  function onUntrackedGL(e2) {
11512
- const w2 = yf;
11657
+ const w2 = kf;
11513
11658
  if (!w2 || w2.stopped || w2.seenContexts.has(e2)) return;
11514
11659
  w2.seenContexts.add(e2);
11515
11660
  const C2 = e2.canvas;
@@ -11523,17 +11668,17 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
11523
11668
  w2.handled.add(C2);
11524
11669
  const I2 = M2, _2 = new BufferSink(), U2 = (function attachGLRecorderToContext(e3, w3, C3) {
11525
11670
  const x3 = new GLRecorder(w3, C3);
11526
- return x3.rawCtx = e3, x3.bound = true, Bh.set(e3, x3), x3;
11671
+ return x3.rawCtx = e3, x3.bound = true, zh.set(e3, x3), x3;
11527
11672
  })(e2, _2, now);
11528
11673
  resolveCanvasId(C2).then((w3) => {
11529
- if (null == w3 || !yf || yf.stopped) return void detachGLRecorderFromContext(e2);
11530
- const M3 = yf, _3 = baseController(C2, w3, I2, "commands", x2);
11674
+ if (null == w3 || !kf || kf.stopped) return void detachGLRecorderFromContext(e2);
11675
+ const M3 = kf, _3 = baseController(C2, w3, I2, "commands", x2);
11531
11676
  _3.encoder = new CommandEncoder(), U2.swapSink(makeCommandSink(_3)), _3.recorderGL = U2, _3.keyframes = makeKeyframes(_3), installGLContextLossHandling(_3), M3.controllers.set(C2, _3), emitStart(_3), maybeInitialKeyframe(_3);
11532
11677
  });
11533
11678
  }
11534
11679
  function teardownController(e2) {
11535
11680
  var _a2, _b, _c2, _d2, _e2, _f, _g;
11536
- if (e2.stopped) yf == null ? void 0 : yf.controllers.delete(e2.canvas);
11681
+ if (e2.stopped) kf == null ? void 0 : kf.controllers.delete(e2.canvas);
11537
11682
  else {
11538
11683
  e2.stopped = true;
11539
11684
  try {
@@ -11580,7 +11725,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
11580
11725
  (_g = e2.recorderGPU) == null ? void 0 : _g.detach();
11581
11726
  } catch {
11582
11727
  }
11583
- yf == null ? void 0 : yf.controllers.delete(e2.canvas);
11728
+ kf == null ? void 0 : kf.controllers.delete(e2.canvas);
11584
11729
  }
11585
11730
  }
11586
11731
  function settleOrTimeout(e2, w2) {
@@ -11622,15 +11767,15 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
11622
11767
  releaseVideoSlot(e2), emitEvent({ op: "stop", canvasId: e2.canvasId });
11623
11768
  }
11624
11769
  }
11625
- const wf = { initState(e2) {
11626
- yf = { deps: e2, maskSelector: ".sailfishSanitize, [data-sf-mask]", privacySettings: derivePrivacySettings(e2.settings), contentFlags: deriveContentFlags(e2.settings), redactStyle: resolveRedactStyle(Vt, e2.settings.canvasRedactStyle), budgets: resolveDeviceBudgets(), controllers: /* @__PURE__ */ new Map(), handled: /* @__PURE__ */ new WeakSet(), suppressed: /* @__PURE__ */ new Set(), preExisting: /* @__PURE__ */ new WeakSet(), seenContexts: /* @__PURE__ */ new WeakSet(), observer: null, removeListeners: [], totalBytes: 0, budgetExceeded: false, lastBudgetTickMs: 0, notes: /* @__PURE__ */ new Set(), stopped: false, videoSlots: new VideoSlotPool(resolveDeviceBudgets().maxConcurrentVideo) };
11770
+ const Cf = { initState(e2) {
11771
+ kf = { deps: e2, maskSelector: ".sailfishSanitize, [data-sf-mask]", privacySettings: derivePrivacySettings(e2.settings), contentFlags: deriveContentFlags(e2.settings), redactStyle: resolveRedactStyle(Vt, e2.settings.canvasRedactStyle), budgets: resolveDeviceBudgets(), controllers: /* @__PURE__ */ new Map(), handled: /* @__PURE__ */ new WeakSet(), suppressed: /* @__PURE__ */ new Set(), preExisting: /* @__PURE__ */ new WeakSet(), seenContexts: /* @__PURE__ */ new WeakSet(), observer: null, removeListeners: [], totalBytes: 0, budgetExceeded: false, lastBudgetTickMs: 0, notes: /* @__PURE__ */ new Set(), stopped: false, videoSlots: new VideoSlotPool(resolveDeviceBudgets().maxConcurrentVideo) };
11627
11772
  }, addController(e2, w2, C2 = "normal") {
11628
11773
  const x2 = baseController(e2, w2, "2d", "commands", C2);
11629
- return yf.controllers.set(e2, x2), x2;
11774
+ return kf.controllers.set(e2, x2), x2;
11630
11775
  }, classify: (e2) => classify(e2), makeTextRedactor: (e2) => makeTextRedactor(e2), reevaluate() {
11631
11776
  reevaluateAllMasking();
11632
- }, escalate: (e2, w2) => escalateRedactIfPixelText(e2, w2), isTracked: (e2) => !!(yf == null ? void 0 : yf.controllers.get(e2)), isSuppressed: (e2) => !!(yf == null ? void 0 : yf.suppressed.has(e2)), markSuppressed(e2) {
11633
- yf == null ? void 0 : yf.handled.add(e2), yf == null ? void 0 : yf.suppressed.add(e2);
11777
+ }, escalate: (e2, w2) => escalateRedactIfPixelText(e2, w2), isTracked: (e2) => !!(kf == null ? void 0 : kf.controllers.get(e2)), isSuppressed: (e2) => !!(kf == null ? void 0 : kf.suppressed.has(e2)), markSuppressed(e2) {
11778
+ kf == null ? void 0 : kf.handled.add(e2), kf == null ? void 0 : kf.suppressed.add(e2);
11634
11779
  }, controllerPrivacy: (e2) => ({ mode: e2.privacyMode, hasKeyframes: null != e2.keyframes }), tryDemote(e2) {
11635
11780
  maybeDemote(e2);
11636
11781
  }, emitResize(e2) {
@@ -11638,15 +11783,15 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
11638
11783
  }, build2DWithFakeRecorder(e2, w2, C2) {
11639
11784
  const x2 = { swapSink: () => {
11640
11785
  }, textRedactor: void 0, rawCtx: {} };
11641
- return build2DController(e2, w2, x2, C2), { ctl: yf == null ? void 0 : yf.controllers.get(e2), redactor: x2.textRedactor };
11786
+ return build2DController(e2, w2, x2, C2), { ctl: kf == null ? void 0 : kf.controllers.get(e2), redactor: x2.textRedactor };
11642
11787
  }, demote(e2, w2 = "bytes") {
11643
11788
  demote(e2, w2);
11644
11789
  }, teardown(e2) {
11645
11790
  teardownController(e2);
11646
- }, slotsInUse: () => (yf == null ? void 0 : yf.videoSlots.inUse) ?? -1, controllerHasSlot: (e2) => e2.hasVideoSlot, reset() {
11647
- yf = null;
11648
- } }, vf = Object.freeze(Object.defineProperty({ __proto__: null, MAX_CONCURRENT_VIDEO_CANVASES: 4, VideoSlotPool, __canvasManagerTestHooks: wf, collectMalformedSelectors, decayBytes, flushAllCanvas: async function flushAllCanvas() {
11649
- const e2 = yf;
11791
+ }, slotsInUse: () => (kf == null ? void 0 : kf.videoSlots.inUse) ?? -1, controllerHasSlot: (e2) => e2.hasVideoSlot, reset() {
11792
+ kf = null;
11793
+ } }, xf = Object.freeze(Object.defineProperty({ __proto__: null, MAX_CONCURRENT_VIDEO_CANVASES: 4, VideoSlotPool, __canvasManagerTestHooks: Cf, collectMalformedSelectors, decayBytes, flushAllCanvas: async function flushAllCanvas() {
11794
+ const e2 = kf;
11650
11795
  if (!e2 || e2.stopped) return;
11651
11796
  now();
11652
11797
  const w2 = [];
@@ -11663,46 +11808,46 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
11663
11808
  await Promise.all(w2).catch(() => {
11664
11809
  });
11665
11810
  }, isCanvasRecordingActive: function isCanvasRecordingActive() {
11666
- return null != yf && !yf.stopped;
11811
+ return null != kf && !kf.stopped;
11667
11812
  }, settleOrTimeout, startCanvasRecording: function startCanvasRecording(e2) {
11668
11813
  if ("undefined" == typeof window || "undefined" == typeof document) return;
11669
- if (yf) return;
11814
+ if (kf) return;
11670
11815
  const w2 = e2.settings.maskCanvasClass || "sailfishSanitize", C2 = resolveDeviceBudgets();
11671
- yf = { deps: e2, maskSelector: `.${w2}, [data-sf-mask]`, privacySettings: derivePrivacySettings(e2.settings), contentFlags: deriveContentFlags(e2.settings), redactStyle: resolveRedactStyle(Vt, e2.settings.canvasRedactStyle), budgets: C2, controllers: /* @__PURE__ */ new Map(), handled: /* @__PURE__ */ new WeakSet(), suppressed: /* @__PURE__ */ new Set(), preExisting: /* @__PURE__ */ new WeakSet(), seenContexts: /* @__PURE__ */ new WeakSet(), observer: null, removeListeners: [], totalBytes: 0, budgetExceeded: false, lastBudgetTickMs: 0, notes: /* @__PURE__ */ new Set(), stopped: false, videoSlots: new VideoSlotPool(C2.maxConcurrentVideo) };
11816
+ kf = { deps: e2, maskSelector: `.${w2}, [data-sf-mask]`, privacySettings: derivePrivacySettings(e2.settings), contentFlags: deriveContentFlags(e2.settings), redactStyle: resolveRedactStyle(Vt, e2.settings.canvasRedactStyle), budgets: C2, controllers: /* @__PURE__ */ new Map(), handled: /* @__PURE__ */ new WeakSet(), suppressed: /* @__PURE__ */ new Set(), preExisting: /* @__PURE__ */ new WeakSet(), seenContexts: /* @__PURE__ */ new WeakSet(), observer: null, removeListeners: [], totalBytes: 0, budgetExceeded: false, lastBudgetTickMs: 0, notes: /* @__PURE__ */ new Set(), stopped: false, videoSlots: new VideoSlotPool(C2.maxConcurrentVideo) };
11672
11817
  for (const w3 of collectMalformedSelectors(e2.settings)) noteOnce(`malformed canvas privacy selector "${w3}" is invalid and will not match — that privacy rule is disabled`);
11673
11818
  installCommandHooks(), (function installGLHooks() {
11674
- if (Fh) return;
11675
- Fh = true;
11819
+ if (Wh) return;
11820
+ Wh = true;
11676
11821
  const e3 = [];
11677
11822
  "undefined" != typeof WebGLRenderingContext && e3.push(WebGLRenderingContext.prototype), "undefined" != typeof WebGL2RenderingContext && e3.push(WebGL2RenderingContext.prototype);
11678
11823
  for (const w4 of e3) for (const e4 of Object.getOwnPropertyNames(w4)) {
11679
11824
  const C3 = Object.getOwnPropertyDescriptor(w4, e4);
11680
11825
  if (!C3 || "function" != typeof C3.value || "constructor" === e4) continue;
11681
- if (Nh.test(e4) && !Ph.has(e4)) continue;
11826
+ if (jh.test(e4) && !Uh.has(e4)) continue;
11682
11827
  const x3 = C3.value;
11683
11828
  w4[e4] = function(...w5) {
11684
- const C4 = x3.apply(this, w5), M2 = Bh.get(this);
11685
- return M2 ? M2.recordCall(e4, w5, C4) : Uh && Uh(this), C4;
11829
+ const C4 = x3.apply(this, w5), M2 = zh.get(this);
11830
+ return M2 ? M2.recordCall(e4, w5, C4) : Vh && Vh(this), C4;
11686
11831
  };
11687
11832
  }
11688
11833
  if ("undefined" == typeof HTMLCanvasElement) return;
11689
11834
  const w3 = HTMLCanvasElement.prototype.getContext;
11690
11835
  HTMLCanvasElement.prototype.getContext = function(e4, C3) {
11691
11836
  const x3 = w3.call(this, e4, C3);
11692
- if (("webgl" === e4 || "webgl2" === e4 || "experimental-webgl" === e4) && x3 && jh && !Bh.has(x3)) {
11693
- const e5 = new GLRecorder(new BufferSink(), jh.now);
11694
- e5.rawCtx = x3, Bh.set(x3, e5), Wh.set(this, e5);
11837
+ if (("webgl" === e4 || "webgl2" === e4 || "experimental-webgl" === e4) && x3 && Hh && !zh.has(x3)) {
11838
+ const e5 = new GLRecorder(new BufferSink(), Hh.now);
11839
+ e5.rawCtx = x3, zh.set(x3, e5), qh.set(this, e5);
11695
11840
  }
11696
11841
  return x3;
11697
11842
  };
11698
11843
  })(), (function installGPUHooks() {
11699
- if (Vh) return;
11700
- if (Vh = true, "undefined" == typeof navigator || !("gpu" in navigator)) return;
11844
+ if (Yh) return;
11845
+ if (Yh = true, "undefined" == typeof navigator || !("gpu" in navigator)) return;
11701
11846
  const e3 = navigator.gpu;
11702
11847
  if (Object.defineProperty(navigator, "gpu", { configurable: true, get() {
11703
- if (Hh || Yh) {
11704
- if (!Zh) {
11705
- Zh = true;
11848
+ if (Zh || tf) {
11849
+ if (!of) {
11850
+ of = true;
11706
11851
  const w4 = intern(e3);
11707
11852
  emit({ t: nowFn(), op: "__gpuroot", args: [w4] });
11708
11853
  }
@@ -11713,20 +11858,20 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
11713
11858
  const w3 = HTMLCanvasElement.prototype.getContext;
11714
11859
  HTMLCanvasElement.prototype.getContext = function(e4, C3) {
11715
11860
  const x3 = w3.call(this, e4, C3);
11716
- if ("webgpu" === e4 && x3 && (Hh || Yh)) {
11717
- ef = this;
11718
- const e5 = nf.has(x3), w4 = intern(x3);
11861
+ if ("webgpu" === e4 && x3 && (Zh || tf)) {
11862
+ sf = this;
11863
+ const e5 = cf.has(x3), w4 = intern(x3);
11719
11864
  return e5 || emit({ t: nowFn(), op: "__gpuctx", args: [w4] }), wrap(x3);
11720
11865
  }
11721
11866
  return x3;
11722
11867
  };
11723
11868
  })(), (function installWorkerRelay() {
11724
- if (!df) {
11725
- if (df = true, "undefined" != typeof HTMLCanvasElement && "function" == typeof HTMLCanvasElement.prototype.transferControlToOffscreen) {
11869
+ if (!gf) {
11870
+ if (gf = true, "undefined" != typeof HTMLCanvasElement && "function" == typeof HTMLCanvasElement.prototype.transferControlToOffscreen) {
11726
11871
  const e3 = HTMLCanvasElement.prototype.transferControlToOffscreen;
11727
11872
  HTMLCanvasElement.prototype.transferControlToOffscreen = function() {
11728
11873
  const w3 = e3.call(this);
11729
- return lf.set(w3, this), w3;
11874
+ return ff.set(w3, this), w3;
11730
11875
  };
11731
11876
  }
11732
11877
  if ("undefined" != typeof Worker) {
@@ -11734,8 +11879,8 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
11734
11879
  Worker.prototype.postMessage = function(w3, C3) {
11735
11880
  const x3 = Array.isArray(C3) ? C3 : C3 == null ? void 0 : C3.transfer;
11736
11881
  if (x3) for (const e4 of x3) {
11737
- const w4 = e4 && "object" == typeof e4 ? lf.get(e4) : void 0;
11738
- w4 && !uf.has(w4) && (uf.set(w4, this), pf == null ? void 0 : pf(w4, this));
11882
+ const w4 = e4 && "object" == typeof e4 ? ff.get(e4) : void 0;
11883
+ w4 && !mf.has(w4) && (mf.set(w4, this), yf == null ? void 0 : yf(w4, this));
11739
11884
  }
11740
11885
  return e3.apply(this, [w3, C3]);
11741
11886
  };
@@ -11747,20 +11892,20 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
11747
11892
  const C3 = fn.get(e4);
11748
11893
  return !!C3 && (C3.pendingSiteId = w4, true);
11749
11894
  })(e3, w3) || (function noteGLPendingSiteId(e4, w4) {
11750
- const C3 = Bh.get(e4);
11895
+ const C3 = zh.get(e4);
11751
11896
  return !!C3 && (C3.pendingSiteId = w4, true);
11752
11897
  })(e3, w3)), e3), installAdapters({ canvasIdFor: (e3) => {
11753
11898
  var _a2;
11754
- return ((_a2 = yf == null ? void 0 : yf.controllers.get(e3)) == null ? void 0 : _a2.canvasId) ?? null;
11899
+ return ((_a2 = kf == null ? void 0 : kf.controllers.get(e3)) == null ? void 0 : _a2.canvasId) ?? null;
11755
11900
  }, emitHit: (e3) => emitEvent(e3), now });
11756
11901
  const onInteraction = () => {
11757
11902
  var _a2, _b, _c2;
11758
- const e3 = yf;
11903
+ const e3 = kf;
11759
11904
  if (!e3 || e3.stopped) return;
11760
11905
  const w3 = now();
11761
11906
  for (const C3 of e3.controllers.values()) C3.stopped || ("video" === C3.mode ? ((_a2 = C3.video) == null ? void 0 : _a2.onInteraction(w3), (_b = C3.mediaRecorder) == null ? void 0 : _b.onInteraction(w3)) : (_c2 = C3.keyframes) == null ? void 0 : _c2.onInteraction(w3));
11762
11907
  };
11763
- window.addEventListener("pointerdown", onInteraction, { capture: true, passive: true }), window.addEventListener("keydown", onInteraction, { capture: true, passive: true }), yf.removeListeners.push(() => {
11908
+ window.addEventListener("pointerdown", onInteraction, { capture: true, passive: true }), window.addEventListener("keydown", onInteraction, { capture: true, passive: true }), kf.removeListeners.push(() => {
11764
11909
  window.removeEventListener("pointerdown", onInteraction, { capture: true }), window.removeEventListener("keydown", onInteraction, { capture: true });
11765
11910
  });
11766
11911
  const x2 = new MutationObserver((e3) => {
@@ -11772,12 +11917,12 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
11772
11917
  })) : w3 = true;
11773
11918
  w3 && reevaluateAllMasking();
11774
11919
  });
11775
- x2.observe(document.documentElement, { childList: true, subtree: true, attributes: true }), yf.observer = x2, document.querySelectorAll("canvas").forEach((e3) => {
11776
- yf.preExisting.add(e3), considerCanvas(e3);
11920
+ x2.observe(document.documentElement, { childList: true, subtree: true, attributes: true }), kf.observer = x2, document.querySelectorAll("canvas").forEach((e3) => {
11921
+ kf.preExisting.add(e3), considerCanvas(e3);
11777
11922
  });
11778
11923
  }, stopCanvasRecording: async function stopCanvasRecording() {
11779
11924
  var _a2;
11780
- const e2 = yf;
11925
+ const e2 = kf;
11781
11926
  if (!e2 || e2.stopped) return;
11782
11927
  e2.stopped = true, setAutoAttach(null), setGLAutoAttach(null), setGPUAutoAttach(null), setGPUDeviceLostNotifier(null), setContextCreatedNotifier(null), setUntracked2DContextNotifier(null), setUntrackedGLContextNotifier(null), setWorkerAssociationNotifier(null), delete globalThis.__sfDrawSite, (function uninstallAdapters() {
11783
11928
  nr = null, rr && "undefined" != typeof window && window.removeEventListener("pointerdown", onPointerDown, { capture: true }), rr = false, tr.clear();
@@ -11796,13 +11941,13 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
11796
11941
  }))), (function pruneUnboundRecorders() {
11797
11942
  for (const [e3, w3] of bn) w3.bound || (fn.delete(w3.rawCtx), bn.delete(e3));
11798
11943
  })(), (function pruneUnboundGLRecorders() {
11799
- for (const [e3, w3] of Wh) w3.bound || (Bh.delete(w3.rawCtx), Wh.delete(e3));
11944
+ for (const [e3, w3] of qh) w3.bound || (zh.delete(w3.rawCtx), qh.delete(e3));
11800
11945
  })(), (function pruneUnboundGPURecorders() {
11801
- Yh instanceof BufferSink && !tf && (ef || (Yh = null));
11946
+ tf instanceof BufferSink && !af && (sf || (tf = null));
11802
11947
  })(), (function terminateImgEncoder() {
11803
- Oh && (Oh.terminate(), Oh = null);
11804
- for (const [e3, w3] of _h) _h.delete(e3), w3({ size: 0 });
11805
- })(), yf = null;
11948
+ Ph && (Ph.terminate(), Ph = null);
11949
+ for (const [e3, w3] of Fh) Fh.delete(e3), w3({ size: 0 });
11950
+ })(), kf = null;
11806
11951
  } }, Symbol.toStringTag, { value: "Module" }));
11807
11952
  e.DEFAULT_CAPTURE_SETTINGS = pr, e.DEFAULT_CONSOLE_RECORDING_SETTINGS = hr, e.STORAGE_VERSION = 1, e.addOrUpdateMetadata = function addOrUpdateMetadata(e2) {
11808
11953
  const w2 = { type: "addOrUpdateMetadata", metadata: e2 };
@@ -11818,7 +11963,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
11818
11963
  return clearPageVisitDataFromSessionStorage(), w2.initialized && w2.sessionId === C2 && w2.ws && 1 === w2.ws.readyState ? void 0 : (w2.initPromise || (w2.initPromise = (async () => {
11819
11964
  try {
11820
11965
  if (w2.hasLoggedInitOnce || (console.log("Initializing Sailfish Recorder (first run) …"), w2.hasLoggedInitOnce = true), await startRecording(e2), !w2.issueReportingInit) {
11821
- const C3 = e2.backendApi ?? "https://api-service.sailfishqa.com", [{ setupIssueReporting: x2 }, { fetchIntegrationData: M2, getIntegrationData: I2 }] = await Promise.all([Promise.resolve().then(() => Zn), Promise.resolve().then(() => Kn)]);
11966
+ const C3 = e2.backendApi ?? "https://api-service.sailfishqa.com", [{ setupIssueReporting: x2 }, { fetchIntegrationData: M2, getIntegrationData: I2 }] = await Promise.all([Promise.resolve().then(() => Qn), Promise.resolve().then(() => Kn)]);
11822
11967
  let _2 = null;
11823
11968
  try {
11824
11969
  await M2(e2.apiKey, C3), _2 = I2();
@@ -11959,7 +12104,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
11959
12104
  return () => {
11960
12105
  };
11961
12106
  }
11962
- }, e.requestTimeSync = requestTimeSync, e.restoreFuncSpanState = restoreFuncSpanState, e.sendDomainsToNotPropagateHeaderTo = sendDomainsToNotPropagateHeaderTo, e.sendEvent = sendEvent, e.sendGraphQLRequest = sendGraphQLRequest, e.sendMessage = sendMessage, e.startRecording = startRecording, e.startRecordingSession = startRecordingSession, e.toAbsoluteUrl = toAbsoluteUrl, e.trackingEvent = function trackingEvent(w2) {
12107
+ }, e.requestTimeSync = requestTimeSync, e.resolveFailedFetchStatus = resolveFailedFetchStatus, e.restoreFuncSpanState = restoreFuncSpanState, e.sendDomainsToNotPropagateHeaderTo = sendDomainsToNotPropagateHeaderTo, e.sendEvent = sendEvent, e.sendGraphQLRequest = sendGraphQLRequest, e.sendMessage = sendMessage, e.startRecording = startRecording, e.startRecordingSession = startRecordingSession, e.toAbsoluteUrl = toAbsoluteUrl, e.trackingEvent = function trackingEvent(w2) {
11963
12108
  sendMessage({ type: "trackingEvent", trackingData: w2, timestamp: e.nowTimestamp() });
11964
12109
  }, e.withAppUrlMetadata = withAppUrlMetadata, e.wsSendBinary = wsSendBinary, Object.defineProperty(e, Symbol.toStringTag, { value: "Module" });
11965
12110
  });