@applitools/eyes-browser 1.5.16 → 1.5.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -22142,7 +22142,7 @@ var require_requests = __commonJS({
22142
22142
  logger.log('Request "openEyes" called with settings', settings);
22143
22143
  const account = await getAccountInfoWithCache({ settings });
22144
22144
  if (account.processKeepaliveIntervalSec) {
22145
- heartbeat.acquire({
22145
+ settings.processId = heartbeat.acquire({
22146
22146
  eyesServerUrl: settings.eyesServerUrl,
22147
22147
  apiKey: settings.apiKey,
22148
22148
  proxy: settings.proxy,
@@ -22482,6 +22482,9 @@ var require_requests = __commonJS({
22482
22482
  supportedEnvironmentsUrl,
22483
22483
  uploadUrl,
22484
22484
  serverConcurrency: (0, server_concurrency_converter_1.handleConcurrency)(serverConcurrency),
22485
+ scmSettings: {
22486
+ isFallbackBranchListEnabled: res.isFallbackBranchListEnabled
22487
+ },
22485
22488
  ...rest
22486
22489
  };
22487
22490
  logger.mask(result.ufgServer.accessToken);
@@ -22661,7 +22664,8 @@ var require_requests = __commonJS({
22661
22664
  },
22662
22665
  hooks: {
22663
22666
  afterError({ error }) {
22664
- if (error.message.includes("Bad Request(400)") || error.message.includes("(400)")) {
22667
+ if (error.message.includes("Bad Request(400)") || error.message.includes("Not Found(404)") || // validation issue in start session
22668
+ error.message.includes("(400)") || error.message.includes("(404)")) {
22665
22669
  error.message = "This process is expired. All its sessions were abandoned";
22666
22670
  }
22667
22671
  }
@@ -23106,6 +23110,8 @@ var require_requests = __commonJS({
23106
23110
  baselineBranchName: settings.baselineBranchName,
23107
23111
  compareWithParentBranch: settings.compareWithParentBranch,
23108
23112
  parentBranchBaselineSavedBefore: settings.gitBranchingTimestamp,
23113
+ branchLookupFallbackList: settings.branchLookupFallbackList,
23114
+ gitBranchName: settings.gitBranchName,
23109
23115
  ignoreBaseline: settings.ignoreBaseline,
23110
23116
  saveDiffs: settings.saveDiffs,
23111
23117
  timeout: settings.abortIdleTestTimeout,
@@ -60277,6 +60283,9 @@ var require_requests_offline = __commonJS({
60277
60283
  sessionConcurrency: -1,
60278
60284
  componentConcurrency: -1
60279
60285
  // unlimited
60286
+ },
60287
+ scmSettings: {
60288
+ isFallbackBranchListEnabled: false
60280
60289
  }
60281
60290
  };
60282
60291
  }
@@ -67326,38 +67335,50 @@ var require_heartbeat = __commonJS({
67326
67335
  const logger = mainLogger.extend(mainLogger, { tags: [`heartbeat-base-${utils34.general.shortid()}`] });
67327
67336
  function stopHeartbeats() {
67328
67337
  logger.log("Stopping heartbeats");
67329
- isRunning = false;
67330
67338
  if (intervalId) {
67331
67339
  clearInterval(intervalId);
67332
67340
  intervalId = void 0;
67341
+ isRunning = false;
67342
+ processId = utils34.general.guid();
67343
+ logger.log("Generated new processId after expiration:", processId);
67333
67344
  }
67334
67345
  }
67335
67346
  async function startHeartbeats(settings) {
67336
- if (!isRunning) {
67337
- processId = utils34.general.guid();
67338
- isRunning = true;
67339
- logger.log("Starting heartbeats with new processId:", processId);
67340
- await requests.sendHeartbeat({ settings: { ...settings, processId }, logger }).catch((error) => {
67341
- logger.error("Failed to send heartbeat:", error);
67342
- });
67343
- intervalId = setIntervalBrowser(async () => {
67344
- try {
67345
- await requests.sendHeartbeat({ settings: { ...settings, processId }, logger });
67346
- } catch (error) {
67347
- if (error.message === "This process is expired. All its sessions were abandoned") {
67348
- stopHeartbeats();
67349
- }
67347
+ await requests.sendHeartbeat({ settings: { ...settings, processId }, logger }).catch((error) => {
67348
+ logger.error("Failed to send heartbeat:", error);
67349
+ });
67350
+ intervalId = setIntervalBrowser(async () => {
67351
+ try {
67352
+ await requests.sendHeartbeat({ settings: { ...settings, processId }, logger });
67353
+ } catch (error) {
67354
+ if (error.message === "This process is expired. All its sessions were abandoned") {
67355
+ logger.log("Heartbeat process expired on server");
67356
+ stopHeartbeats();
67350
67357
  }
67351
- }, settings.interval);
67352
- intervalId.unref();
67353
- }
67358
+ }
67359
+ }, settings.interval);
67360
+ intervalId.unref();
67354
67361
  }
67355
67362
  function acquire(settings) {
67356
67363
  refCount++;
67357
67364
  logger.log("Heartbeat acquired, refCount:", refCount);
67358
- void startHeartbeats(settings).catch((error) => {
67359
- logger.error("Failed to start heartbeats:", error);
67360
- });
67365
+ if (!isRunning) {
67366
+ if (settings.processId && settings.processId === processId) {
67367
+ logger.log("Starting heartbeats with provided processId:", processId);
67368
+ } else if (!settings.processId || settings.processId !== processId) {
67369
+ if (settings.processId && settings.processId !== processId) {
67370
+ logger.log("Provided processId differs from current, using current processId:", processId);
67371
+ } else {
67372
+ processId = utils34.general.guid();
67373
+ logger.log("Starting heartbeats with new processId:", processId);
67374
+ }
67375
+ }
67376
+ isRunning = true;
67377
+ void startHeartbeats(settings).catch((error) => {
67378
+ logger.error("Failed to start heartbeats:", error);
67379
+ });
67380
+ }
67381
+ return processId;
67361
67382
  }
67362
67383
  function release() {
67363
67384
  if (refCount > 0) {
@@ -93379,7 +93400,7 @@ var require_processPagePollCjs = __commonJS({
93379
93400
  }
93380
93401
  return e3;
93381
93402
  } }, matches: Vs, is: Vs, "-moz-any": Vs, "-webkit-any": Vs, where: Vs, not: Vs, "nth-child": Ks, "nth-last-child": Ks, "nth-last-of-type": Ks, "nth-of-type": Ks, slotted: Zs, host: Zs, "host-context": Zs }, node: Object.freeze({ __proto__: null, AnPlusB: ho, Atrule: bo, AtrulePrelude: ko, AttributeSelector: Lo, Block: Do, Brackets: Bo, CDC: Uo, CDO: qo, ClassSelector: Vo, Combinator: Ho, Comment: Xo, Condition: ri, Declaration: gi, DeclarationList: vi, Dimension: Si, Feature: Ai, FeatureFunction: Ei, FeatureRange: Ui, Function: Wi, GeneralEnclosed: Zi, Hash: Gi, IdSelector: ta, Identifier: Qi, Layer: oa, LayerList: aa, MediaQuery: ca, MediaQueryList: ha, NestingSelector: pa, Nth: fa, Number: ya, Operator: va, Parentheses: _a, Percentage: za, PseudoClassSelector: Oa, PseudoElementSelector: Ra, Ratio: Ia, Raw: Fa, Rule: Wa, Scope: Va, Selector: Ka, SelectorList: Ga, String: ns, StyleSheet: is, SupportsDeclaration: ss, TypeSelector: ds, UnicodeRange: xs, Url: Cs, Value: As, WhiteSpace: Es }), node: Ns }));
93382
- const { tokenize: Gs, parse: Ys, generate: Xs, lexer: Qs, createLexer: Js, walk: el, find: tl, findLast: nl, findAll: rl, toPlainObject: ol, fromPlainObject: il, fork: al } = Hs, sl = /* @__PURE__ */ new Map([["background", /* @__PURE__ */ new Set(["background-color", "background-position", "background-position-x", "background-position-y", "background-size", "background-repeat", "background-repeat-x", "background-repeat-y", "background-clip", "background-origin", "background-attachment", "background-image"])], ["background-position", /* @__PURE__ */ new Set(["background-position-x", "background-position-y"])], ["background-repeat", /* @__PURE__ */ new Set(["background-repeat-x", "background-repeat-y"])], ["font", /* @__PURE__ */ new Set(["font-style", "font-variant-caps", "font-weight", "font-stretch", "font-size", "line-height", "font-family", "font-size-adjust", "font-kerning", "font-optical-sizing", "font-variant-alternates", "font-variant-east-asian", "font-variant-ligatures", "font-variant-numeric", "font-variant-position", "font-language-override", "font-feature-settings", "font-variation-settings"])], ["font-variant", /* @__PURE__ */ new Set(["font-variant-caps", "font-variant-numeric", "font-variant-alternates", "font-variant-ligatures", "font-variant-east-asian"])], ["outline", /* @__PURE__ */ new Set(["outline-width", "outline-style", "outline-color"])], ["border", /* @__PURE__ */ new Set(["border-top-width", "border-right-width", "border-bottom-width", "border-left-width", "border-top-style", "border-right-style", "border-bottom-style", "border-left-style", "border-top-color", "border-right-color", "border-bottom-color", "border-left-color", "border-image-source", "border-image-slice", "border-image-width", "border-image-outset", "border-image-repeat"])], ["border-width", /* @__PURE__ */ new Set(["border-top-width", "border-right-width", "border-bottom-width", "border-left-width"])], ["border-style", /* @__PURE__ */ new Set(["border-top-style", "border-right-style", "border-bottom-style", "border-left-style"])], ["border-color", /* @__PURE__ */ new Set(["border-top-color", "border-right-color", "border-bottom-color", "border-left-color"])], ["border-block", /* @__PURE__ */ new Set(["border-block-start-width", "border-block-end-width", "border-block-start-style", "border-block-end-style", "border-block-start-color", "border-block-end-color"])], ["border-block-start", /* @__PURE__ */ new Set(["border-block-start-width", "border-block-start-style", "border-block-start-color"])], ["border-block-end", /* @__PURE__ */ new Set(["border-block-end-width", "border-block-end-style", "border-block-end-color"])], ["border-inline", /* @__PURE__ */ new Set(["border-inline-start-width", "border-inline-end-width", "border-inline-start-style", "border-inline-end-style", "border-inline-start-color", "border-inline-end-color"])], ["border-inline-start", /* @__PURE__ */ new Set(["border-inline-start-width", "border-inline-start-style", "border-inline-start-color"])], ["border-inline-end", /* @__PURE__ */ new Set(["border-inline-end-width", "border-inline-end-style", "border-inline-end-color"])], ["border-image", /* @__PURE__ */ new Set(["border-image-source", "border-image-slice", "border-image-width", "border-image-outset", "border-image-repeat"])], ["border-radius", /* @__PURE__ */ new Set(["border-top-left-radius", "border-top-right-radius", "border-bottom-right-radius", "border-bottom-left-radius"])], ["padding", /* @__PURE__ */ new Set(["padding-top", "padding-right", "padding-bottom", "padding-left"])], ["padding-block", /* @__PURE__ */ new Set(["padding-block-start", "padding-block-end"])], ["padding-inline", /* @__PURE__ */ new Set(["padding-inline-start", "padding-inline-end"])], ["margin", /* @__PURE__ */ new Set(["margin-top", "margin-right", "margin-bottom", "margin-left"])], ["margin-block", /* @__PURE__ */ new Set(["margin-block-start", "margin-block-end"])], ["margin-inline", /* @__PURE__ */ new Set(["margin-inline-start", "margin-inline-end"])], ["inset", /* @__PURE__ */ new Set(["top", "right", "bottom", "left"])], ["inset-block", /* @__PURE__ */ new Set(["inset-block-start", "inset-block-end"])], ["inset-inline", /* @__PURE__ */ new Set(["inset-inline-start", "inset-inline-end"])], ["flex", /* @__PURE__ */ new Set(["flex-grow", "flex-shrink", "flex-basis"])], ["flex-flow", /* @__PURE__ */ new Set(["flex-direction", "flex-wrap"])], ["gap", /* @__PURE__ */ new Set(["row-gap", "column-gap"])], ["transition", /* @__PURE__ */ new Set(["transition-duration", "transition-timing-function", "transition-delay", "transition-property"])], ["grid", /* @__PURE__ */ new Set(["grid-template-rows", "grid-template-columns", "grid-template-areas", "grid-auto-flow", "grid-auto-columns", "grid-auto-rows"])], ["grid-template", /* @__PURE__ */ new Set(["grid-template-rows", "grid-template-columns", "grid-template-areas"])], ["grid-row", /* @__PURE__ */ new Set(["grid-row-start", "grid-row-end"])], ["grid-column", /* @__PURE__ */ new Set(["grid-column-start", "grid-column-end"])], ["grid-gap", /* @__PURE__ */ new Set(["grid-row-gap", "grid-column-gap", "row-gap", "column-gap"])], ["place-content", /* @__PURE__ */ new Set(["align-content", "justify-content"])], ["place-items", /* @__PURE__ */ new Set(["align-items", "justify-items"])], ["place-self", /* @__PURE__ */ new Set(["align-self", "justify-self"])], ["columns", /* @__PURE__ */ new Set(["column-width", "column-count"])], ["column-rule", /* @__PURE__ */ new Set(["column-rule-width", "column-rule-style", "column-rule-color"])], ["list-style", /* @__PURE__ */ new Set(["list-style-type", "list-style-position", "list-style-image"])], ["offset", /* @__PURE__ */ new Set(["offset-position", "offset-path", "offset-distance", "offset-rotate", "offset-anchor"])], ["overflow", /* @__PURE__ */ new Set(["overflow-x", "overflow-y"])], ["overscroll-behavior", /* @__PURE__ */ new Set(["overscroll-behavior-x", "overscroll-behavior-y"])], ["scroll-margin", /* @__PURE__ */ new Set(["scroll-margin-top", "scroll-margin-right", "scroll-margin-bottom", "scroll-margin-left"])], ["scroll-padding", /* @__PURE__ */ new Set(["scroll-padding-top", "scroll-padding-right", "scroll-padding-bottom", "scroll-padding-left"])], ["text-decoration", /* @__PURE__ */ new Set(["text-decoration-line", "text-decoration-style", "text-decoration-color", "text-decoration-thickness"])], ["text-stroke", /* @__PURE__ */ new Set(["text-stroke-color", "text-stroke-width"])], ["animation", /* @__PURE__ */ new Set(["animation-duration", "animation-timing-function", "animation-delay", "animation-iteration-count", "animation-direction", "animation-fill-mode", "animation-play-state", "animation-name", "animation-timeline", "animation-range-start", "animation-range-end"])], ["mask", /* @__PURE__ */ new Set(["mask-image", "mask-mode", "mask-repeat-x", "mask-repeat-y", "mask-position-x", "mask-position-y", "mask-clip", "mask-origin", "mask-size", "mask-composite"])], ["mask-repeat", /* @__PURE__ */ new Set(["mask-repeat-x", "mask-repeat-y"])], ["mask-position", /* @__PURE__ */ new Set(["mask-position-x", "mask-position-y"])], ["perspective-origin", /* @__PURE__ */ new Set(["perspective-origin-x", "perspective-origin-y"])], ["transform-origin", /* @__PURE__ */ new Set(["transform-origin-x", "transform-origin-y", "transform-origin-z"])], ["white-space", /* @__PURE__ */ new Set(["white-space-collapse", "text-wrap"])]]), ll = new Map([dl("animation", "moz"), dl("border-image", "moz"), dl("mask", "moz"), dl("transition", "moz"), dl("columns", "moz"), dl("text-stroke", "moz"), dl("column-rule", "moz"), ["-moz-border-end", /* @__PURE__ */ new Set(["-moz-border-end-color", "-moz-border-end-style", "-moz-border-end-width"])], ["-moz-border-start", /* @__PURE__ */ new Set(["-moz-border-start-color", "-moz-border-start-style", "-moz-border-start-width"])], ["-moz-outline-radius", /* @__PURE__ */ new Set(["-moz-outline-radius-topleft", "-moz-outline-radius-topright", "-moz-outline-radius-bottomright", "-moz-outline-radius-bottomleft"])]]), cl = new Map([dl("animation", "webkit"), dl("border-radius", "webkit"), dl("column-rule", "webkit"), dl("columns", "webkit"), dl("flex", "webkit"), dl("flex-flow", "webkit"), dl("mask", "webkit"), dl("text-stroke", "webkit"), dl("perspective-origin", "webkit"), dl("transform-origin", "webkit"), dl("transition", "webkit"), ["-webkit-border-start", /* @__PURE__ */ new Set(["-webkit-border-start-color", "-webkit-border-start-style", "-webkit-border-start-width"])], ["-webkit-border-before", /* @__PURE__ */ new Set(["-webkit-border-before-color", "-webkit-border-before-style", "-webkit-border-before-width"])], ["-webkit-border-end", /* @__PURE__ */ new Set(["-webkit-border-end-color", "-webkit-border-end-style", "-webkit-border-end-width"])], ["-webkit-border-after", /* @__PURE__ */ new Set(["-webkit-border-after-color", "-webkit-border-after-style", "-webkit-border-after-width"])]]), ul = ["background-position", "background-repeat", "text-decoration"];
93403
+ const { tokenize: Gs, parse: Ys, generate: Xs, lexer: Qs, createLexer: Js, walk: el, find: tl, findLast: nl, findAll: rl, toPlainObject: ol, fromPlainObject: il, fork: al } = Hs, sl = /* @__PURE__ */ new Map([["background", /* @__PURE__ */ new Set(["background-color", "background-position", "background-position-x", "background-position-y", "background-size", "background-repeat", "background-repeat-x", "background-repeat-y", "background-clip", "background-origin", "background-attachment", "background-image"])], ["background-position", /* @__PURE__ */ new Set(["background-position-x", "background-position-y"])], ["background-repeat", /* @__PURE__ */ new Set(["background-repeat-x", "background-repeat-y"])], ["font", /* @__PURE__ */ new Set(["font-style", "font-variant-caps", "font-weight", "font-stretch", "font-size", "line-height", "font-family", "font-size-adjust", "font-kerning", "font-optical-sizing", "font-palette", "font-synthesis-style", "font-synthesis-weight", "font-synthesis-small-caps", "font-variant-alternates", "font-variant-east-asian", "font-variant-emoji", "font-variant-ligatures", "font-variant-numeric", "font-variant-position", "font-language-override", "font-feature-settings", "font-variation-settings"])], ["font-synthesis", /* @__PURE__ */ new Set(["font-synthesis-style", "font-synthesis-weight", "font-synthesis-small-caps"])], ["font-variant", /* @__PURE__ */ new Set(["font-variant-caps", "font-variant-numeric", "font-variant-alternates", "font-variant-ligatures", "font-variant-east-asian", "font-variant-emoji", "font-variant-position"])], ["outline", /* @__PURE__ */ new Set(["outline-width", "outline-style", "outline-color"])], ["border", /* @__PURE__ */ new Set(["border-top-width", "border-right-width", "border-bottom-width", "border-left-width", "border-top-style", "border-right-style", "border-bottom-style", "border-left-style", "border-top-color", "border-right-color", "border-bottom-color", "border-left-color", "border-image-source", "border-image-slice", "border-image-width", "border-image-outset", "border-image-repeat"])], ["border-width", /* @__PURE__ */ new Set(["border-top-width", "border-right-width", "border-bottom-width", "border-left-width"])], ["border-style", /* @__PURE__ */ new Set(["border-top-style", "border-right-style", "border-bottom-style", "border-left-style"])], ["border-color", /* @__PURE__ */ new Set(["border-top-color", "border-right-color", "border-bottom-color", "border-left-color"])], ["border-block", /* @__PURE__ */ new Set(["border-block-start-width", "border-block-end-width", "border-block-start-style", "border-block-end-style", "border-block-start-color", "border-block-end-color"])], ["border-block-start", /* @__PURE__ */ new Set(["border-block-start-width", "border-block-start-style", "border-block-start-color"])], ["border-block-end", /* @__PURE__ */ new Set(["border-block-end-width", "border-block-end-style", "border-block-end-color"])], ["border-inline", /* @__PURE__ */ new Set(["border-inline-start-width", "border-inline-end-width", "border-inline-start-style", "border-inline-end-style", "border-inline-start-color", "border-inline-end-color"])], ["border-inline-start", /* @__PURE__ */ new Set(["border-inline-start-width", "border-inline-start-style", "border-inline-start-color"])], ["border-inline-end", /* @__PURE__ */ new Set(["border-inline-end-width", "border-inline-end-style", "border-inline-end-color"])], ["border-image", /* @__PURE__ */ new Set(["border-image-source", "border-image-slice", "border-image-width", "border-image-outset", "border-image-repeat"])], ["border-radius", /* @__PURE__ */ new Set(["border-top-left-radius", "border-top-right-radius", "border-bottom-right-radius", "border-bottom-left-radius"])], ["padding", /* @__PURE__ */ new Set(["padding-top", "padding-right", "padding-bottom", "padding-left"])], ["padding-block", /* @__PURE__ */ new Set(["padding-block-start", "padding-block-end"])], ["padding-inline", /* @__PURE__ */ new Set(["padding-inline-start", "padding-inline-end"])], ["margin", /* @__PURE__ */ new Set(["margin-top", "margin-right", "margin-bottom", "margin-left"])], ["margin-block", /* @__PURE__ */ new Set(["margin-block-start", "margin-block-end"])], ["margin-inline", /* @__PURE__ */ new Set(["margin-inline-start", "margin-inline-end"])], ["inset", /* @__PURE__ */ new Set(["top", "right", "bottom", "left"])], ["inset-block", /* @__PURE__ */ new Set(["inset-block-start", "inset-block-end"])], ["inset-inline", /* @__PURE__ */ new Set(["inset-inline-start", "inset-inline-end"])], ["flex", /* @__PURE__ */ new Set(["flex-grow", "flex-shrink", "flex-basis"])], ["flex-flow", /* @__PURE__ */ new Set(["flex-direction", "flex-wrap"])], ["gap", /* @__PURE__ */ new Set(["row-gap", "column-gap"])], ["transition", /* @__PURE__ */ new Set(["transition-duration", "transition-timing-function", "transition-delay", "transition-property"])], ["grid", /* @__PURE__ */ new Set(["grid-template-rows", "grid-template-columns", "grid-template-areas", "grid-auto-flow", "grid-auto-columns", "grid-auto-rows"])], ["grid-template", /* @__PURE__ */ new Set(["grid-template-rows", "grid-template-columns", "grid-template-areas"])], ["grid-row", /* @__PURE__ */ new Set(["grid-row-start", "grid-row-end"])], ["grid-column", /* @__PURE__ */ new Set(["grid-column-start", "grid-column-end"])], ["grid-gap", /* @__PURE__ */ new Set(["grid-row-gap", "grid-column-gap", "row-gap", "column-gap"])], ["place-content", /* @__PURE__ */ new Set(["align-content", "justify-content"])], ["place-items", /* @__PURE__ */ new Set(["align-items", "justify-items"])], ["place-self", /* @__PURE__ */ new Set(["align-self", "justify-self"])], ["columns", /* @__PURE__ */ new Set(["column-width", "column-count"])], ["column-rule", /* @__PURE__ */ new Set(["column-rule-width", "column-rule-style", "column-rule-color"])], ["list-style", /* @__PURE__ */ new Set(["list-style-type", "list-style-position", "list-style-image"])], ["offset", /* @__PURE__ */ new Set(["offset-position", "offset-path", "offset-distance", "offset-rotate", "offset-anchor"])], ["overflow", /* @__PURE__ */ new Set(["overflow-x", "overflow-y"])], ["overscroll-behavior", /* @__PURE__ */ new Set(["overscroll-behavior-x", "overscroll-behavior-y"])], ["scroll-margin", /* @__PURE__ */ new Set(["scroll-margin-top", "scroll-margin-right", "scroll-margin-bottom", "scroll-margin-left"])], ["scroll-padding", /* @__PURE__ */ new Set(["scroll-padding-top", "scroll-padding-right", "scroll-padding-bottom", "scroll-padding-left"])], ["text-decoration", /* @__PURE__ */ new Set(["text-decoration-line", "text-decoration-style", "text-decoration-color", "text-decoration-thickness"])], ["text-stroke", /* @__PURE__ */ new Set(["text-stroke-color", "text-stroke-width"])], ["animation", /* @__PURE__ */ new Set(["animation-duration", "animation-timing-function", "animation-delay", "animation-iteration-count", "animation-direction", "animation-fill-mode", "animation-play-state", "animation-name", "animation-timeline", "animation-range-start", "animation-range-end"])], ["mask", /* @__PURE__ */ new Set(["mask-image", "mask-mode", "mask-repeat-x", "mask-repeat-y", "mask-position-x", "mask-position-y", "mask-clip", "mask-origin", "mask-size", "mask-composite"])], ["mask-repeat", /* @__PURE__ */ new Set(["mask-repeat-x", "mask-repeat-y"])], ["mask-position", /* @__PURE__ */ new Set(["mask-position-x", "mask-position-y"])], ["perspective-origin", /* @__PURE__ */ new Set(["perspective-origin-x", "perspective-origin-y"])], ["transform-origin", /* @__PURE__ */ new Set(["transform-origin-x", "transform-origin-y", "transform-origin-z"])], ["white-space", /* @__PURE__ */ new Set(["white-space-collapse", "text-wrap"])]]), ll = new Map([dl("animation", "moz"), dl("border-image", "moz"), dl("mask", "moz"), dl("transition", "moz"), dl("columns", "moz"), dl("text-stroke", "moz"), dl("column-rule", "moz"), ["-moz-border-end", /* @__PURE__ */ new Set(["-moz-border-end-color", "-moz-border-end-style", "-moz-border-end-width"])], ["-moz-border-start", /* @__PURE__ */ new Set(["-moz-border-start-color", "-moz-border-start-style", "-moz-border-start-width"])], ["-moz-outline-radius", /* @__PURE__ */ new Set(["-moz-outline-radius-topleft", "-moz-outline-radius-topright", "-moz-outline-radius-bottomright", "-moz-outline-radius-bottomleft"])]]), cl = new Map([dl("animation", "webkit"), dl("border-radius", "webkit"), dl("column-rule", "webkit"), dl("columns", "webkit"), dl("flex", "webkit"), dl("flex-flow", "webkit"), dl("mask", "webkit"), dl("text-stroke", "webkit"), dl("perspective-origin", "webkit"), dl("transform-origin", "webkit"), dl("transition", "webkit"), ["-webkit-border-start", /* @__PURE__ */ new Set(["-webkit-border-start-color", "-webkit-border-start-style", "-webkit-border-start-width"])], ["-webkit-border-before", /* @__PURE__ */ new Set(["-webkit-border-before-color", "-webkit-border-before-style", "-webkit-border-before-width"])], ["-webkit-border-end", /* @__PURE__ */ new Set(["-webkit-border-end-color", "-webkit-border-end-style", "-webkit-border-end-width"])], ["-webkit-border-after", /* @__PURE__ */ new Set(["-webkit-border-after-color", "-webkit-border-after-style", "-webkit-border-after-width"])]]), ul = ["background-position", "background-repeat", "text-decoration"];
93383
93404
  ll.forEach((e3, t3) => sl.set(t3, e3)), cl.forEach((e3, t3) => sl.set(t3, e3));
93384
93405
  const hl = /* @__PURE__ */ new Map();
93385
93406
  function dl(e3, t3) {
@@ -93392,21 +93413,40 @@ var require_processPagePollCjs = __commonJS({
93392
93413
  return !!n3 && n3.has(t3);
93393
93414
  }
93394
93415
  function ml(e3) {
93395
- const t3 = Array.from(e3).reduce((t4, n3) => {
93396
- const r3 = function(e4) {
93397
- return ul.find((t5) => sl.get(t5).has(e4));
93398
- }(n3) || n3;
93399
- t4.set(r3, fl(e3, r3));
93416
+ return ul.find((t3) => sl.get(t3).has(e3));
93417
+ }
93418
+ function fl(e3, t3, n3) {
93419
+ const r3 = Array.from(e3).reduce((t4, n4) => {
93420
+ const r4 = ml(n4) || n4;
93421
+ t4.set(r4, gl(e3, r4));
93400
93422
  const o3 = function(e4) {
93401
93423
  return hl.get(e4);
93402
- }(n3);
93403
- return o3 && o3.forEach((n4) => {
93404
- e3.getPropertyValue(n4) && (t4.delete(n4), t4.set(n4, fl(e3, n4)));
93424
+ }(n4);
93425
+ return o3 && o3.forEach((n5) => {
93426
+ e3.getPropertyValue(n5) && (t4.delete(n5), t4.set(n5, gl(e3, n5)));
93405
93427
  }), t4;
93406
93428
  }, /* @__PURE__ */ new Map());
93407
- return Array.from(t3.values());
93429
+ if (t3 && n3) {
93430
+ const o3 = Array.from(e3).filter((t4) => !e3.getPropertyValue(t4));
93431
+ if (o3.length > 0)
93432
+ try {
93433
+ const i3 = t3.querySelector(n3);
93434
+ if (i3) {
93435
+ const t4 = window.getComputedStyle(i3);
93436
+ o3.forEach((n4) => {
93437
+ const o4 = t4.getPropertyValue(n4);
93438
+ if (o4) {
93439
+ const t5 = ml(n4) || n4;
93440
+ r3.set(t5, { type: "Declaration", important: "important" === e3.getPropertyPriority(t5), property: t5, value: { type: "Raw", value: o4 } });
93441
+ }
93442
+ });
93443
+ }
93444
+ } catch (e4) {
93445
+ }
93446
+ }
93447
+ return Array.from(r3.values());
93408
93448
  }
93409
- function fl(e3, t3) {
93449
+ function gl(e3, t3) {
93410
93450
  return { type: "Declaration", important: Boolean(e3.getPropertyPriority(t3)), property: t3, value: { type: "Raw", value: e3.getPropertyValue(t3) } };
93411
93451
  }
93412
93452
  sl.forEach((e3, t3) => {
@@ -93414,36 +93454,41 @@ var require_processPagePollCjs = __commonJS({
93414
93454
  hl.get(e4) || hl.set(e4, /* @__PURE__ */ new Set()), hl.get(e4).add(t3);
93415
93455
  });
93416
93456
  });
93417
- const gl = { CSSPropertyRule: { atrule: "property", prelude: "name" }, 2: { atrule: "charset", prelude: "charset" }, CSSImportRule: { atrule: "import", prelude: "import" }, CSSNamespaceRule: { atrule: "namespace", prelude: "namespace" }, CSSStyleRule: { prelude: "selector", block: "style-and-nested" }, CSSKeyframeRule: { prelude: "key", block: "style" }, CSSPageRule: { atrule: "page", prelude: "selector", block: "style" }, CSSFontFaceRule: { atrule: "font-face", block: "style" }, CSSMediaRule: { atrule: "media", prelude: "condition", block: "nested" }, CSSSupportsRule: { atrule: "supports", prelude: "condition", block: "nested" }, 13: { atrule: "document", prelude: "condition", block: "nested" }, CSSKeyframesRule: { atrule: "keyframes", prelude: "name", block: "nested" }, CSSContainerRule: { atrule: "container", prelude: "condition", block: "nested" }, CSSLayerStatementRule: { atrule: "layer", prelude: "nameList" }, CSSLayerBlockRule: { atrule: "layer", prelude: "name", block: "nested" } };
93418
- function bl(e3, t3) {
93457
+ const bl = { CSSPropertyRule: { atrule: "property", prelude: "name" }, 2: { atrule: "charset", prelude: "charset" }, CSSImportRule: { atrule: "import", prelude: "import" }, CSSNamespaceRule: { atrule: "namespace", prelude: "namespace" }, CSSStyleRule: { prelude: "selector", block: "style-and-nested" }, CSSKeyframeRule: { prelude: "key", block: "style" }, CSSPageRule: { atrule: "page", prelude: "selector", block: "style" }, CSSFontFaceRule: { atrule: "font-face", block: "style" }, CSSMediaRule: { atrule: "media", prelude: "condition", block: "nested" }, CSSSupportsRule: { atrule: "supports", prelude: "condition", block: "nested" }, 13: { atrule: "document", prelude: "condition", block: "nested" }, CSSKeyframesRule: { atrule: "keyframes", prelude: "name", block: "nested" }, CSSContainerRule: { atrule: "container", prelude: "condition", block: "nested" }, CSSLayerStatementRule: { atrule: "layer", prelude: "nameList" }, CSSLayerBlockRule: { atrule: "layer", prelude: "name", block: "nested" } };
93458
+ function yl(e3, t3, n3) {
93419
93459
  return Array.from(e3, (e4) => {
93420
- var n3, r3, o3;
93421
- const i3 = null !== (n3 = gl[e4.type]) && void 0 !== n3 ? n3 : gl[e4.constructor.name];
93422
- if (!i3)
93423
- return t3.error(`createAstFromCssom | Unknown CSS object model rule ${e4.constructor.name} ${null === (r3 = e4.cssText) || void 0 === r3 ? void 0 : r3.substring(0, 150)}`), { type: "Raw", value: e4.cssText || "" };
93424
- const a3 = {};
93425
- if (i3.atrule) {
93426
- a3.type = "Atrule";
93427
- const [t4, n4] = e4.cssText.match(new RegExp(`^@(-\\w+-)?${i3.atrule}`)) || [];
93428
- a3.name = n4 ? n4 + i3.atrule : i3.atrule;
93460
+ var r3, o3, i3;
93461
+ const a3 = null !== (r3 = bl[e4.type]) && void 0 !== r3 ? r3 : bl[e4.constructor.name];
93462
+ if (!a3)
93463
+ return t3.error(`createAstFromCssom | Unknown CSS object model rule ${e4.constructor.name} ${null === (o3 = e4.cssText) || void 0 === o3 ? void 0 : o3.substring(0, 150)}`), { type: "Raw", value: e4.cssText || "" };
93464
+ const s3 = {};
93465
+ if (a3.atrule) {
93466
+ s3.type = "Atrule";
93467
+ const [t4, n4] = e4.cssText.match(new RegExp(`^@(-\\w+-)?${a3.atrule}`)) || [];
93468
+ s3.name = n4 ? n4 + a3.atrule : a3.atrule;
93429
93469
  } else
93430
- a3.type = "Rule";
93431
- let s3;
93432
- if ("property" === i3.atrule ? (s3 = e4.name, a3.syntax = e4.syntax, a3.inherits = e4.inherits, a3.initialValue = e4.initialValue) : "selector" === i3.prelude ? s3 = e4.selectorText : "key" === i3.prelude ? s3 = e4.keyText : "condition" === i3.prelude ? s3 = e4.conditionText : "name" === i3.prelude ? s3 = e4.name : "import" === i3.prelude ? s3 = `url("${e4.href}") ${e4.media.mediaText}` : "namespace" === i3.prelude ? s3 = `${e4.prefix} url("${e4.namespaceURI}")` : "charset" === i3.prelude ? s3 = `"${e4.encoding}"` : "nameList" === i3.prelude && (s3 = e4.nameList), s3) {
93433
- const e5 = i3.atrule ? { context: "atrulePrelude", atrule: i3.atrule } : { context: "selectorList" };
93434
- a3.prelude = ol(Ys(s3, e5));
93470
+ s3.type = "Rule";
93471
+ let l2;
93472
+ if ("property" === a3.atrule ? (l2 = e4.name, s3.syntax = e4.syntax, s3.inherits = e4.inherits, s3.initialValue = e4.initialValue) : "selector" === a3.prelude ? l2 = e4.selectorText : "key" === a3.prelude ? l2 = e4.keyText : "condition" === a3.prelude ? l2 = e4.conditionText : "name" === a3.prelude ? l2 = e4.name : "import" === a3.prelude ? l2 = `url("${e4.href}") ${e4.media.mediaText}` : "namespace" === a3.prelude ? l2 = `${e4.prefix} url("${e4.namespaceURI}")` : "charset" === a3.prelude ? l2 = `"${e4.encoding}"` : "nameList" === a3.prelude && (l2 = e4.nameList), l2) {
93473
+ const e5 = a3.atrule ? { context: "atrulePrelude", atrule: a3.atrule } : { context: "selectorList" };
93474
+ s3.prelude = ol(Ys(l2, e5));
93435
93475
  } else
93436
- a3.prelude = null;
93437
- if ("style-and-nested" === i3.block) {
93438
- const n4 = ml(e4.style), r4 = e4.cssRules, o4 = (null == r4 ? void 0 : r4.length) ? bl(r4, t3) : [];
93439
- a3.block = { type: "Block", children: n4.concat(o4) };
93476
+ s3.prelude = null;
93477
+ if ("style-and-nested" === a3.block) {
93478
+ const r4 = e4.selectorText, o4 = fl(e4.style, n3, r4), i4 = e4.cssRules, a4 = (null == i4 ? void 0 : i4.length) ? yl(i4, t3, n3) : [];
93479
+ s3.block = { type: "Block", children: o4.concat(a4) };
93480
+ } else if ("nested" === a3.block || (null === (i3 = e4.cssRules) || void 0 === i3 ? void 0 : i3.length) > 0)
93481
+ s3.block = { type: "Block", children: yl(e4.cssRules, t3, n3) };
93482
+ else if ("style" === a3.block) {
93483
+ const t4 = "selector" === a3.prelude ? e4.selectorText : void 0;
93484
+ s3.block = { type: "Block", children: fl(e4.style, n3, t4) };
93440
93485
  } else
93441
- "nested" === i3.block || (null === (o3 = e4.cssRules) || void 0 === o3 ? void 0 : o3.length) > 0 ? a3.block = { type: "Block", children: bl(e4.cssRules, t3) } : "style" === i3.block ? a3.block = { type: "Block", children: ml(e4.style) } : a3.block = null;
93442
- return a3;
93486
+ s3.block = null;
93487
+ return s3;
93443
93488
  });
93444
93489
  }
93445
- const yl = /* @__PURE__ */ new Set(["before", "after", "first-line", "first-letter"]), kl = { "word-wrap": "overflow-wrap", clip: "clip-path" };
93446
- function wl(e3, t3) {
93490
+ const kl = /* @__PURE__ */ new Set(["before", "after", "first-line", "first-letter"]), wl = { "word-wrap": "overflow-wrap", clip: "clip-path" };
93491
+ function vl(e3, t3) {
93447
93492
  let n3 = 0;
93448
93493
  const r3 = [];
93449
93494
  return e3.forEach((e4) => {
@@ -93456,24 +93501,35 @@ var require_processPagePollCjs = __commonJS({
93456
93501
  return r4;
93457
93502
  return -1;
93458
93503
  }(e5, t4, (e6) => {
93459
- return e6.type === n4.type && e6.name === n4.name && (o4 = e6.prelude, i4 = n4.prelude, !o4 && !i4 || o4.type === i4.type && xl(o4.children, i4.children)) && (!_l(n4) || (t5 = e6.block.children, (r4 = n4.block.children).reduce((e7, n5) => {
93460
- const r5 = "Declaration" === n5.type && (function(e8) {
93461
- return /^(-\w+-)/.test(e8);
93462
- }(n5.property) || t5.some((e8) => function(e9, t6) {
93463
- const n6 = kl[e9] || e9, r6 = kl[t6] || t6;
93464
- return n6 === r6 || pl(r6, n6) || pl(n6, r6);
93465
- }(e8.property, n5.property)));
93466
- return e7 + (r5 ? 1 : 0);
93467
- }, 0) >= r4.length));
93468
- var t5, r4, o4, i4;
93504
+ return e6.type === n4.type && e6.name === n4.name && (t5 = e6.prelude, r4 = n4.prelude, !t5 && !r4 || t5.type === r4.type && _l(t5.children, r4.children)) && (!Sl(n4) || function(e7, t6) {
93505
+ const n5 = t6.reduce((t7, n6) => {
93506
+ const r6 = "Declaration" === n6.type && (function(e8) {
93507
+ return /^(-\w+-)/.test(e8);
93508
+ }(n6.property) || e7.some((e8) => function(e9, t8) {
93509
+ const n7 = wl[e9] || e9, r7 = wl[t8] || t8;
93510
+ return n7 === r7 || pl(r7, n7) || pl(n7, r7);
93511
+ }(e8.property, n6.property)));
93512
+ return t7 + (r6 ? 1 : 0);
93513
+ }, 0), r5 = t6.filter((e8) => "Rule" !== e8.type && "Atrule" !== e8.type).length;
93514
+ return n5 >= r5;
93515
+ }(e6.block.children, n4.block.children));
93516
+ var t5, r4;
93469
93517
  });
93470
93518
  }(t3, n3, e4);
93471
- i3 > n3 && Sl(t3, n3, i3, (e5) => r3.push(e5)), i3 >= 0 && (n3 = i3 + 1, function(e5) {
93472
- return "Atrule" === e5.type && /^(-\w+-)?(media|supports|document|keyframes)$/.test(e5.name);
93473
- }(e4) ? o3.block = { type: "Block", children: wl(e4.block.children, t3[i3].block.children) } : _l(e4) && (o3.block = { type: "Block", children: vl(e4.block.children, t3[i3].block.children) })), r3.push(o3);
93474
- }, []), n3 < t3.length && Sl(t3, n3, t3.length, (e4) => r3.push(e4)), r3;
93519
+ if (i3 > n3 && Cl(t3, n3, i3, (e5) => r3.push(e5)), i3 >= 0) {
93520
+ if (n3 = i3 + 1, function(e5) {
93521
+ return "Atrule" === e5.type && /^(-\w+-)?(media|supports|document|keyframes|layer)$/.test(e5.name);
93522
+ }(e4))
93523
+ o3.block = { type: "Block", children: vl(e4.block.children, t3[i3].block.children) };
93524
+ else if (Sl(e4)) {
93525
+ const n4 = e4.block.children, r4 = t3[i3].block.children, a3 = n4.some((e5) => "Rule" === e5.type || "Atrule" === e5.type), s3 = r4.some((e5) => "Rule" === e5.type || "Atrule" === e5.type);
93526
+ o3.block = a3 || s3 ? { type: "Block", children: vl(n4, r4) } : { type: "Block", children: xl(n4, r4) };
93527
+ }
93528
+ }
93529
+ r3.push(o3);
93530
+ }, []), n3 < t3.length && Cl(t3, n3, t3.length, (e4) => r3.push(e4)), r3;
93475
93531
  }
93476
- function vl(e3, t3) {
93532
+ function xl(e3, t3) {
93477
93533
  let n3 = [];
93478
93534
  return e3.forEach((e4) => {
93479
93535
  "Declaration" === e4.type && n3.push(e4);
@@ -93499,26 +93555,26 @@ var require_processPagePollCjs = __commonJS({
93499
93555
  var o3;
93500
93556
  }), n3;
93501
93557
  }
93502
- function xl(e3, t3) {
93558
+ function _l(e3, t3) {
93503
93559
  return !Array.isArray(e3) && !Array.isArray(t3) || Array.isArray(e3) && Array.isArray(t3) && e3.length === t3.length && e3.every((e4, n3) => {
93504
93560
  const r3 = t3[n3];
93505
- return e4.type === r3.type && ((a3 = e4.name) === (s3 = r3.name) || a3 && s3 && a3.name && a3.name === s3.name) && ((o3 = e4.value) === (i3 = r3.value) || o3.type === i3.type && o3.value === i3.value) && xl(e4.children, r3.children);
93561
+ return e4.type === r3.type && ((a3 = e4.name) === (s3 = r3.name) || a3 && s3 && a3.name && a3.name === s3.name) && ((o3 = e4.value) === (i3 = r3.value) || o3.type === i3.type && o3.value === i3.value) && _l(e4.children, r3.children);
93506
93562
  var o3, i3, a3, s3;
93507
93563
  });
93508
93564
  }
93509
- function _l(e3) {
93565
+ function Sl(e3) {
93510
93566
  return "Rule" === e3.type || /^(-\w+-)?(page|font-face)$/.test(e3.name);
93511
93567
  }
93512
- function Sl(e3, t3, n3, r3) {
93568
+ function Cl(e3, t3, n3, r3) {
93513
93569
  for (let o3 = t3; o3 < n3; ++o3)
93514
93570
  r3(e3[o3], o3, e3);
93515
93571
  }
93516
- function Cl(e3) {
93572
+ function zl(e3) {
93517
93573
  const t3 = Array.from(e3.attributes).map((t4) => "id" === t4.name ? `#${t4.value}` : "class" === t4.name ? Array.from(e3.classList).map((e4) => `.${e4}`).join("") : `[${t4.name}="${t4.value}"]`).join("");
93518
93574
  return `${e3.nodeName}${t3}`;
93519
93575
  }
93520
- function zl(e3, t3) {
93521
- t3.log("[processInlineCss] processing inline css for", Cl(e3));
93576
+ function Al(e3, t3) {
93577
+ t3.log("[processInlineCss] processing inline css for", zl(e3));
93522
93578
  try {
93523
93579
  const n3 = function(e4) {
93524
93580
  const t4 = Ys(e4, { context: "stylesheet", parseAtrulePrelude: true, parseRulePrelude: true, parseValue: false, parseCustomProperty: false });
@@ -93530,7 +93586,7 @@ var require_processPagePollCjs = __commonJS({
93530
93586
  "String" === r4.type && (t5[n4] = { type: "Url", value: r4.value }, e5.children.fromArray(t5));
93531
93587
  }
93532
93588
  } }), el(t4, { visit: "PseudoClassSelector", enter(e5) {
93533
- yl.has(e5.name) && (e5.type = "PseudoElementSelector");
93589
+ kl.has(e5.name) && (e5.type = "PseudoElementSelector");
93534
93590
  } }), el(t4, { visit: "Selector", enter(e5) {
93535
93591
  const t5 = e5.children.toArray();
93536
93592
  if (t5.length > 1) {
@@ -93545,9 +93601,9 @@ var require_processPagePollCjs = __commonJS({
93545
93601
  } }), ol(t4);
93546
93602
  }(e3.textContent);
93547
93603
  t3.log("[processInlineCss] created AST for textContent");
93548
- const r3 = bl(e3.sheet.cssRules, t3);
93604
+ const r3 = yl(e3.sheet.cssRules, t3);
93549
93605
  t3.log("[processInlineCss] created AST for CSSOM");
93550
- const o3 = wl(n3.children, r3);
93606
+ const o3 = vl(n3.children, r3);
93551
93607
  t3.log("[processInlineCss] merged AST");
93552
93608
  const i3 = Xs(il({ type: "StyleSheet", children: o3 }));
93553
93609
  return t3.log("[processInlineCss] generated cssText of length", i3.length), i3;
@@ -93555,43 +93611,43 @@ var require_processPagePollCjs = __commonJS({
93555
93611
  return t3.log("[processInlineCss] error while processing inline css:", n3.message, n3), t3.log("[processInlineCss] try to set fallback"), "string" == typeof e3.textContent && e3.textContent.length > 0 ? (t3.log("[processInlineCss] set style from `styleNode.textContent`"), e3.textContent) : e3.sheet && e3.sheet.cssRules ? (t3.log("[processInlineCss] set style from reduce `sheet.cssRules`"), Array.from(e3.sheet.cssRules).reduce((e4, { cssText: t4 }) => e4 + t4, "")) : (t3.log("[processInlineCss] could not set fallback to inline css"), "");
93556
93612
  }
93557
93613
  }
93558
- function Al(e3, t3) {
93614
+ function Tl(e3, t3) {
93559
93615
  let n3 = e3[0], r3 = e3[1], o3 = e3[2], i3 = e3[3];
93560
- n3 = Ol(n3, r3, o3, i3, t3[0], 7, -680876936), i3 = Ol(i3, n3, r3, o3, t3[1], 12, -389564586), o3 = Ol(o3, i3, n3, r3, t3[2], 17, 606105819), r3 = Ol(r3, o3, i3, n3, t3[3], 22, -1044525330), n3 = Ol(n3, r3, o3, i3, t3[4], 7, -176418897), i3 = Ol(i3, n3, r3, o3, t3[5], 12, 1200080426), o3 = Ol(o3, i3, n3, r3, t3[6], 17, -1473231341), r3 = Ol(r3, o3, i3, n3, t3[7], 22, -45705983), n3 = Ol(n3, r3, o3, i3, t3[8], 7, 1770035416), i3 = Ol(i3, n3, r3, o3, t3[9], 12, -1958414417), o3 = Ol(o3, i3, n3, r3, t3[10], 17, -42063), r3 = Ol(r3, o3, i3, n3, t3[11], 22, -1990404162), n3 = Ol(n3, r3, o3, i3, t3[12], 7, 1804603682), i3 = Ol(i3, n3, r3, o3, t3[13], 12, -40341101), o3 = Ol(o3, i3, n3, r3, t3[14], 17, -1502002290), r3 = Ol(r3, o3, i3, n3, t3[15], 22, 1236535329), n3 = Ll(n3, r3, o3, i3, t3[1], 5, -165796510), i3 = Ll(i3, n3, r3, o3, t3[6], 9, -1069501632), o3 = Ll(o3, i3, n3, r3, t3[11], 14, 643717713), r3 = Ll(r3, o3, i3, n3, t3[0], 20, -373897302), n3 = Ll(n3, r3, o3, i3, t3[5], 5, -701558691), i3 = Ll(i3, n3, r3, o3, t3[10], 9, 38016083), o3 = Ll(o3, i3, n3, r3, t3[15], 14, -660478335), r3 = Ll(r3, o3, i3, n3, t3[4], 20, -405537848), n3 = Ll(n3, r3, o3, i3, t3[9], 5, 568446438), i3 = Ll(i3, n3, r3, o3, t3[14], 9, -1019803690), o3 = Ll(o3, i3, n3, r3, t3[3], 14, -187363961), r3 = Ll(r3, o3, i3, n3, t3[8], 20, 1163531501), n3 = Ll(n3, r3, o3, i3, t3[13], 5, -1444681467), i3 = Ll(i3, n3, r3, o3, t3[2], 9, -51403784), o3 = Ll(o3, i3, n3, r3, t3[7], 14, 1735328473), r3 = Ll(r3, o3, i3, n3, t3[12], 20, -1926607734), n3 = El(n3, r3, o3, i3, t3[5], 4, -378558), i3 = El(i3, n3, r3, o3, t3[8], 11, -2022574463), o3 = El(o3, i3, n3, r3, t3[11], 16, 1839030562), r3 = El(r3, o3, i3, n3, t3[14], 23, -35309556), n3 = El(n3, r3, o3, i3, t3[1], 4, -1530992060), i3 = El(i3, n3, r3, o3, t3[4], 11, 1272893353), o3 = El(o3, i3, n3, r3, t3[7], 16, -155497632), r3 = El(r3, o3, i3, n3, t3[10], 23, -1094730640), n3 = El(n3, r3, o3, i3, t3[13], 4, 681279174), i3 = El(i3, n3, r3, o3, t3[0], 11, -358537222), o3 = El(o3, i3, n3, r3, t3[3], 16, -722521979), r3 = El(r3, o3, i3, n3, t3[6], 23, 76029189), n3 = El(n3, r3, o3, i3, t3[9], 4, -640364487), i3 = El(i3, n3, r3, o3, t3[12], 11, -421815835), o3 = El(o3, i3, n3, r3, t3[15], 16, 530742520), r3 = El(r3, o3, i3, n3, t3[2], 23, -995338651), n3 = Rl(n3, r3, o3, i3, t3[0], 6, -198630844), i3 = Rl(i3, n3, r3, o3, t3[7], 10, 1126891415), o3 = Rl(o3, i3, n3, r3, t3[14], 15, -1416354905), r3 = Rl(r3, o3, i3, n3, t3[5], 21, -57434055), n3 = Rl(n3, r3, o3, i3, t3[12], 6, 1700485571), i3 = Rl(i3, n3, r3, o3, t3[3], 10, -1894986606), o3 = Rl(o3, i3, n3, r3, t3[10], 15, -1051523), r3 = Rl(r3, o3, i3, n3, t3[1], 21, -2054922799), n3 = Rl(n3, r3, o3, i3, t3[8], 6, 1873313359), i3 = Rl(i3, n3, r3, o3, t3[15], 10, -30611744), o3 = Rl(o3, i3, n3, r3, t3[6], 15, -1560198380), r3 = Rl(r3, o3, i3, n3, t3[13], 21, 1309151649), n3 = Rl(n3, r3, o3, i3, t3[4], 6, -145523070), i3 = Rl(i3, n3, r3, o3, t3[11], 10, -1120210379), o3 = Rl(o3, i3, n3, r3, t3[2], 15, 718787259), r3 = Rl(r3, o3, i3, n3, t3[9], 21, -343485551), e3[0] = Dl(n3, e3[0]), e3[1] = Dl(r3, e3[1]), e3[2] = Dl(o3, e3[2]), e3[3] = Dl(i3, e3[3]);
93561
- }
93562
- function Tl(e3, t3, n3, r3, o3, i3) {
93563
- return t3 = Dl(Dl(t3, e3), Dl(r3, i3)), Dl(t3 << o3 | t3 >>> 32 - o3, n3);
93616
+ n3 = Ll(n3, r3, o3, i3, t3[0], 7, -680876936), i3 = Ll(i3, n3, r3, o3, t3[1], 12, -389564586), o3 = Ll(o3, i3, n3, r3, t3[2], 17, 606105819), r3 = Ll(r3, o3, i3, n3, t3[3], 22, -1044525330), n3 = Ll(n3, r3, o3, i3, t3[4], 7, -176418897), i3 = Ll(i3, n3, r3, o3, t3[5], 12, 1200080426), o3 = Ll(o3, i3, n3, r3, t3[6], 17, -1473231341), r3 = Ll(r3, o3, i3, n3, t3[7], 22, -45705983), n3 = Ll(n3, r3, o3, i3, t3[8], 7, 1770035416), i3 = Ll(i3, n3, r3, o3, t3[9], 12, -1958414417), o3 = Ll(o3, i3, n3, r3, t3[10], 17, -42063), r3 = Ll(r3, o3, i3, n3, t3[11], 22, -1990404162), n3 = Ll(n3, r3, o3, i3, t3[12], 7, 1804603682), i3 = Ll(i3, n3, r3, o3, t3[13], 12, -40341101), o3 = Ll(o3, i3, n3, r3, t3[14], 17, -1502002290), r3 = Ll(r3, o3, i3, n3, t3[15], 22, 1236535329), n3 = El(n3, r3, o3, i3, t3[1], 5, -165796510), i3 = El(i3, n3, r3, o3, t3[6], 9, -1069501632), o3 = El(o3, i3, n3, r3, t3[11], 14, 643717713), r3 = El(r3, o3, i3, n3, t3[0], 20, -373897302), n3 = El(n3, r3, o3, i3, t3[5], 5, -701558691), i3 = El(i3, n3, r3, o3, t3[10], 9, 38016083), o3 = El(o3, i3, n3, r3, t3[15], 14, -660478335), r3 = El(r3, o3, i3, n3, t3[4], 20, -405537848), n3 = El(n3, r3, o3, i3, t3[9], 5, 568446438), i3 = El(i3, n3, r3, o3, t3[14], 9, -1019803690), o3 = El(o3, i3, n3, r3, t3[3], 14, -187363961), r3 = El(r3, o3, i3, n3, t3[8], 20, 1163531501), n3 = El(n3, r3, o3, i3, t3[13], 5, -1444681467), i3 = El(i3, n3, r3, o3, t3[2], 9, -51403784), o3 = El(o3, i3, n3, r3, t3[7], 14, 1735328473), r3 = El(r3, o3, i3, n3, t3[12], 20, -1926607734), n3 = Rl(n3, r3, o3, i3, t3[5], 4, -378558), i3 = Rl(i3, n3, r3, o3, t3[8], 11, -2022574463), o3 = Rl(o3, i3, n3, r3, t3[11], 16, 1839030562), r3 = Rl(r3, o3, i3, n3, t3[14], 23, -35309556), n3 = Rl(n3, r3, o3, i3, t3[1], 4, -1530992060), i3 = Rl(i3, n3, r3, o3, t3[4], 11, 1272893353), o3 = Rl(o3, i3, n3, r3, t3[7], 16, -155497632), r3 = Rl(r3, o3, i3, n3, t3[10], 23, -1094730640), n3 = Rl(n3, r3, o3, i3, t3[13], 4, 681279174), i3 = Rl(i3, n3, r3, o3, t3[0], 11, -358537222), o3 = Rl(o3, i3, n3, r3, t3[3], 16, -722521979), r3 = Rl(r3, o3, i3, n3, t3[6], 23, 76029189), n3 = Rl(n3, r3, o3, i3, t3[9], 4, -640364487), i3 = Rl(i3, n3, r3, o3, t3[12], 11, -421815835), o3 = Rl(o3, i3, n3, r3, t3[15], 16, 530742520), r3 = Rl(r3, o3, i3, n3, t3[2], 23, -995338651), n3 = Nl(n3, r3, o3, i3, t3[0], 6, -198630844), i3 = Nl(i3, n3, r3, o3, t3[7], 10, 1126891415), o3 = Nl(o3, i3, n3, r3, t3[14], 15, -1416354905), r3 = Nl(r3, o3, i3, n3, t3[5], 21, -57434055), n3 = Nl(n3, r3, o3, i3, t3[12], 6, 1700485571), i3 = Nl(i3, n3, r3, o3, t3[3], 10, -1894986606), o3 = Nl(o3, i3, n3, r3, t3[10], 15, -1051523), r3 = Nl(r3, o3, i3, n3, t3[1], 21, -2054922799), n3 = Nl(n3, r3, o3, i3, t3[8], 6, 1873313359), i3 = Nl(i3, n3, r3, o3, t3[15], 10, -30611744), o3 = Nl(o3, i3, n3, r3, t3[6], 15, -1560198380), r3 = Nl(r3, o3, i3, n3, t3[13], 21, 1309151649), n3 = Nl(n3, r3, o3, i3, t3[4], 6, -145523070), i3 = Nl(i3, n3, r3, o3, t3[11], 10, -1120210379), o3 = Nl(o3, i3, n3, r3, t3[2], 15, 718787259), r3 = Nl(r3, o3, i3, n3, t3[9], 21, -343485551), e3[0] = Pl(n3, e3[0]), e3[1] = Pl(r3, e3[1]), e3[2] = Pl(o3, e3[2]), e3[3] = Pl(i3, e3[3]);
93564
93617
  }
93565
- function Ol(e3, t3, n3, r3, o3, i3, a3) {
93566
- return Tl(t3 & n3 | ~t3 & r3, e3, t3, o3, i3, a3);
93618
+ function Ol(e3, t3, n3, r3, o3, i3) {
93619
+ return t3 = Pl(Pl(t3, e3), Pl(r3, i3)), Pl(t3 << o3 | t3 >>> 32 - o3, n3);
93567
93620
  }
93568
93621
  function Ll(e3, t3, n3, r3, o3, i3, a3) {
93569
- return Tl(t3 & r3 | n3 & ~r3, e3, t3, o3, i3, a3);
93622
+ return Ol(t3 & n3 | ~t3 & r3, e3, t3, o3, i3, a3);
93570
93623
  }
93571
93624
  function El(e3, t3, n3, r3, o3, i3, a3) {
93572
- return Tl(t3 ^ n3 ^ r3, e3, t3, o3, i3, a3);
93625
+ return Ol(t3 & r3 | n3 & ~r3, e3, t3, o3, i3, a3);
93573
93626
  }
93574
93627
  function Rl(e3, t3, n3, r3, o3, i3, a3) {
93575
- return Tl(n3 ^ (t3 | ~r3), e3, t3, o3, i3, a3);
93628
+ return Ol(t3 ^ n3 ^ r3, e3, t3, o3, i3, a3);
93576
93629
  }
93577
- function Nl(e3) {
93630
+ function Nl(e3, t3, n3, r3, o3, i3, a3) {
93631
+ return Ol(n3 ^ (t3 | ~r3), e3, t3, o3, i3, a3);
93632
+ }
93633
+ function jl(e3) {
93578
93634
  const t3 = [];
93579
93635
  let n3;
93580
93636
  for (n3 = 0; n3 < 64; n3 += 4)
93581
93637
  t3[n3 >> 2] = e3.charCodeAt(n3) + (e3.charCodeAt(n3 + 1) << 8) + (e3.charCodeAt(n3 + 2) << 16) + (e3.charCodeAt(n3 + 3) << 24);
93582
93638
  return t3;
93583
93639
  }
93584
- const jl = "0123456789abcdef".split("");
93585
- function Il(e3) {
93640
+ const Il = "0123456789abcdef".split("");
93641
+ function Dl(e3) {
93586
93642
  let t3 = "", n3 = 0;
93587
93643
  for (; n3 < 4; n3++)
93588
- t3 += jl[e3 >> 8 * n3 + 4 & 15] + jl[e3 >> 8 * n3 & 15];
93644
+ t3 += Il[e3 >> 8 * n3 + 4 & 15] + Il[e3 >> 8 * n3 & 15];
93589
93645
  return t3;
93590
93646
  }
93591
- function Dl(e3, t3) {
93647
+ function Pl(e3, t3) {
93592
93648
  return e3 + t3 & 4294967295;
93593
93649
  }
93594
- function Pl(e3, { removeReverseProxyURLPrefixes: t3 } = {}) {
93650
+ function Bl(e3, { removeReverseProxyURLPrefixes: t3 } = {}) {
93595
93651
  const n3 = [];
93596
93652
  return [/url\((?!['"]?:)'([^']*)'\)/g, /url\((?!['"]?:)"([^"]*)"\)/g, /url\((?!['"]?:)([^()'"]*)\)/g].forEach((t4) => {
93597
93653
  let r3;
@@ -93602,29 +93658,29 @@ var require_processPagePollCjs = __commonJS({
93602
93658
  return t4 && t4.length ? t4[0].substring(1) : e4;
93603
93659
  }) : n3;
93604
93660
  }
93605
- function Bl(e3) {
93661
+ function Fl(e3) {
93606
93662
  let t3 = [];
93607
93663
  for (let n3 = 0, r3 = e3.length; n3 < r3; n3++) {
93608
93664
  const r4 = e3[n3];
93609
93665
  let o3 = e3.getPropertyValue(r4);
93610
93666
  (/^\s*var\s*\(/.test(o3) || /^--/.test(r4)) && (o3 = o3.replace(/(\\[0-9a-fA-F]{1,6}\s?)/g, (e4) => String.fromCodePoint(parseInt(e4.substr(1).trim(), 16))).replace(/\\([^0-9a-fA-F])/g, "$1"));
93611
- const i3 = Pl(o3);
93667
+ const i3 = Bl(o3);
93612
93668
  t3 = t3.concat(i3);
93613
93669
  }
93614
93670
  return t3;
93615
93671
  }
93616
- const Fl = /(\S+)(?:\s+[\d.]+[wx])?(?:,|$)/g;
93617
- function Ul(e3) {
93672
+ const Ul = /(\S+)(?:\s+[\d.]+[wx])?(?:,|$)/g;
93673
+ function Ml(e3) {
93618
93674
  const { ownerDocument: t3 } = e3;
93619
93675
  if (!t3)
93620
93676
  return true;
93621
93677
  const { display: n3 } = t3.defaultView.getComputedStyle(e3), { width: r3, height: o3 } = e3.getBoundingClientRect();
93622
93678
  return "none" === n3 || 0 === r3 || 0 === o3;
93623
93679
  }
93624
- function Ml(e3) {
93680
+ function ql(e3) {
93625
93681
  try {
93626
93682
  return ol(Ys(e3.toLowerCase(), { context: "mediaQueryList" })).children.some((e4) => {
93627
- const t3 = ql(e4);
93683
+ const t3 = Wl(e4);
93628
93684
  return e4.mediaType && t3.unshift(e4), t3.every((e5) => {
93629
93685
  var t4, n3;
93630
93686
  return !(e5.modifier && !["not", "only"].includes(e5.modifier)) && ("Feature" === e5.type || ("Identifier" !== e5.type && "MediaQuery" !== e5.type || !["all", "screen"].includes(null !== (n3 = null !== (t4 = e5.name) && void 0 !== t4 ? t4 : e5.mediaType) && void 0 !== n3 ? n3 : "") ? e5.modifier && "not" === e5.modifier : !e5.modifier || "not" !== e5.modifier));
@@ -93634,19 +93690,19 @@ var require_processPagePollCjs = __commonJS({
93634
93690
  return false;
93635
93691
  }
93636
93692
  }
93637
- function ql(e3) {
93693
+ function Wl(e3) {
93638
93694
  var t3, n3;
93639
93695
  const r3 = [];
93640
93696
  if (e3.condition)
93641
- r3.push(...ql(e3.condition));
93697
+ r3.push(...Wl(e3.condition));
93642
93698
  else {
93643
- const o3 = null !== (n3 = null === (t3 = e3.children) || void 0 === t3 ? void 0 : t3.reduce((e4, t4) => ("Condition" === t4.type ? e4.push(...ql(t4)) : "Identifier" === t4.type && "and" === t4.name || e4.push(t4), e4), [])) && void 0 !== n3 ? n3 : [];
93699
+ const o3 = null !== (n3 = null === (t3 = e3.children) || void 0 === t3 ? void 0 : t3.reduce((e4, t4) => ("Condition" === t4.type ? e4.push(...Wl(t4)) : "Identifier" === t4.type && "and" === t4.name || e4.push(t4), e4), [])) && void 0 !== n3 ? n3 : [];
93644
93700
  r3.push(...o3);
93645
93701
  }
93646
93702
  return r3;
93647
93703
  }
93648
- const Wl = Symbol("raw");
93649
- function $l(e3) {
93704
+ const $l = Symbol("raw");
93705
+ function Vl(e3) {
93650
93706
  const t3 = function(e4) {
93651
93707
  if ("undefined" == typeof window)
93652
93708
  return null;
@@ -93654,7 +93710,7 @@ var require_processPagePollCjs = __commonJS({
93654
93710
  return window[t4];
93655
93711
  }(e3);
93656
93712
  return t3 ? (n3 = e3, r3 = t3.prototype, new Proxy(Object.create(n3), { get(e4, t4, o3) {
93657
- if (t4 === Wl)
93713
+ if (t4 === $l)
93658
93714
  return n3;
93659
93715
  const i3 = Reflect.get(r3, t4, n3);
93660
93716
  return "function" == typeof i3 ? function() {
@@ -93663,15 +93719,15 @@ var require_processPagePollCjs = __commonJS({
93663
93719
  } })) : e3;
93664
93720
  var n3, r3;
93665
93721
  }
93666
- $l.unwrap = function(e3) {
93667
- return e3[Wl] || e3;
93722
+ Vl.unwrap = function(e3) {
93723
+ return e3[$l] || e3;
93668
93724
  };
93669
- const Vl = /* @__PURE__ */ new Set(["date", "datetime-local", "email", "month", "number", "password", "search", "tel", "text", "time", "url", "week", "range"]), Zl = /^on[a-z]+$/;
93670
- function Kl(e3, t3, n3) {
93725
+ const Zl = /* @__PURE__ */ new Set(["date", "datetime-local", "email", "month", "number", "password", "search", "tel", "text", "time", "url", "week", "range"]), Kl = /^on[a-z]+$/;
93726
+ function Hl(e3, t3, n3) {
93671
93727
  const r3 = [{ nodeType: Node.DOCUMENT_NODE }], o3 = [e3], i3 = [], a3 = [], s3 = [], l2 = [];
93672
93728
  let c2 = [];
93673
93729
  const u2 = [], h2 = [];
93674
- return r3[0].childNodeIndexes = p2(r3, e3.childNodes), e3.adoptedStyleSheets && e3.adoptedStyleSheets.length > 0 && (r3[0].exp_adoptedStyleSheets = Yl(e3, n3)), { cdt: r3, docRoots: o3, canvasElements: i3, frames: s3, inlineFrames: a3, crossFrames: l2, linkUrls: c2, imageBlobs: u2, videoBlobs: h2 };
93730
+ return r3[0].childNodeIndexes = p2(r3, e3.childNodes), e3.adoptedStyleSheets && e3.adoptedStyleSheets.length > 0 && (r3[0].exp_adoptedStyleSheets = Xl(e3, n3)), { cdt: r3, docRoots: o3, canvasElements: i3, frames: s3, inlineFrames: a3, crossFrames: l2, linkUrls: c2, imageBlobs: u2, videoBlobs: h2 };
93675
93731
  function p2(e4, t4) {
93676
93732
  if (!t4 || 0 === t4.length)
93677
93733
  return null;
@@ -93683,29 +93739,29 @@ var require_processPagePollCjs = __commonJS({
93683
93739
  }
93684
93740
  function m2(e4, r4) {
93685
93741
  var f2;
93686
- const g2 = $l(r4);
93742
+ const g2 = Vl(r4);
93687
93743
  let b2;
93688
93744
  if ([Node.ELEMENT_NODE, Node.DOCUMENT_FRAGMENT_NODE].includes(g2.nodeType)) {
93689
93745
  if (g2.hasAttribute && g2.hasAttribute("data-applitools-skip"))
93690
93746
  return null;
93691
- if (["LINK", "STYLE", "SOURCE"].includes(g2.nodeName) && (null === (f2 = g2.media) || void 0 === f2 ? void 0 : f2.trim()) && !Ml(g2.media))
93747
+ if (["LINK", "STYLE", "SOURCE"].includes(g2.nodeName) && (null === (f2 = g2.media) || void 0 === f2 ? void 0 : f2.trim()) && !ql(g2.media))
93692
93748
  return null;
93693
93749
  if ("SCRIPT" === g2.nodeName)
93694
93750
  b2 = function(e5) {
93695
- return { nodeType: Node.ELEMENT_NODE, nodeName: "SCRIPT", attributes: Hl(e5).map((t4) => {
93751
+ return { nodeType: Node.ELEMENT_NODE, nodeName: "SCRIPT", attributes: Gl(e5).map((t4) => {
93696
93752
  const n4 = e5.attributes[t4].name;
93697
- return { name: n4, value: Zl.test(n4) ? "" : e5.attributes[t4].value };
93753
+ return { name: n4, value: Kl.test(n4) ? "" : e5.attributes[t4].value };
93698
93754
  }).filter((e6) => "src" !== e6.name), childNodeIndexes: [] };
93699
93755
  }(g2);
93700
93756
  else {
93701
93757
  const c3 = g2.shadowRoot && g2.shadowRoot.childNodes.length && "ShadowRoot" !== g2.shadowRoot.constructor.name;
93702
93758
  if (b2 = function(e5) {
93703
93759
  var t4, n4, r5;
93704
- const o4 = { nodeType: e5.nodeType, nodeName: e5.nodeName, attributes: Hl(e5).map((t5) => {
93760
+ const o4 = { nodeType: e5.nodeType, nodeName: e5.nodeName, attributes: Gl(e5).map((t5) => {
93705
93761
  let n5 = e5.attributes[t5].value;
93706
93762
  const r6 = e5.attributes[t5].name;
93707
- return n5.includes("blob:") ? n5 = n5.replace(/blob:/g, "") : Zl.test(r6) ? n5 = "" : "IFRAME" === e5.nodeName && d(e5) && "src" === r6 && "about:blank" !== e5.contentDocument.location.href && e5.contentDocument.location.href !== y(n5, e5.ownerDocument.location.href) ? n5 = e5.contentDocument.location.href : "style" === r6 && (n5 = function(e6) {
93708
- const t6 = { type: "DeclarationList", children: ml(e6) };
93763
+ return n5.includes("blob:") ? n5 = n5.replace(/blob:/g, "") : Kl.test(r6) ? n5 = "" : "IFRAME" === e5.nodeName && d(e5) && "src" === r6 && "about:blank" !== e5.contentDocument.location.href && e5.contentDocument.location.href !== y(n5, e5.ownerDocument.location.href) ? n5 = e5.contentDocument.location.href : "style" === r6 && (n5 = function(e6) {
93764
+ const t6 = { type: "DeclarationList", children: fl(e6) };
93709
93765
  return Xs(t6);
93710
93766
  }(e5.style)), { name: r6, value: n5 };
93711
93767
  }) };
@@ -93716,44 +93772,44 @@ var require_processPagePollCjs = __commonJS({
93716
93772
  }
93717
93773
  !e5.attributes.getNamedItem("checked") && e5.checked && o4.attributes.push({ name: "checked" }), e5.indeterminate && o4.attributes.push({ name: "data-applitools-js-properties", value: JSON.stringify({ indeterminate: true }) });
93718
93774
  }
93719
- if ("INPUT" === e5.tagName && Vl.has(e5.type)) {
93775
+ if ("INPUT" === e5.tagName && Zl.has(e5.type)) {
93720
93776
  const i4 = null !== e5.attributes.getNamedItem("value"), a4 = null !== (n4 = null === (t4 = e5.attributes.getNamedItem("value")) || void 0 === t4 ? void 0 : t4.value) && void 0 !== n4 ? n4 : "", s4 = null !== (r5 = e5.value) && void 0 !== r5 ? r5 : "";
93721
- i4 && a4 === s4 || Gl(o4.attributes, "value", s4);
93777
+ i4 && a4 === s4 || Yl(o4.attributes, "value", s4);
93722
93778
  }
93723
- return "OPTION" === e5.tagName && e5.parentElement && e5.parentElement.selectedOptions && Array.from(e5.parentElement.selectedOptions).indexOf($l.unwrap(e5)) > -1 && Gl(o4.attributes, "selected", ""), "STYLE" === e5.tagName && e5.sheet && e5.sheet.disabled && o4.attributes.push({ name: "data-applitools-disabled", value: "" }), "LINK" === e5.tagName && "text/css" === e5.type && e5.sheet && e5.sheet.disabled && Gl(o4.attributes, "disabled", ""), o4;
93779
+ return "OPTION" === e5.tagName && e5.parentElement && e5.parentElement.selectedOptions && Array.from(e5.parentElement.selectedOptions).indexOf(Vl.unwrap(e5)) > -1 && Yl(o4.attributes, "selected", ""), "STYLE" === e5.tagName && e5.sheet && e5.sheet.disabled && o4.attributes.push({ name: "data-applitools-disabled", value: "" }), "LINK" === e5.tagName && "text/css" === e5.type && e5.sheet && e5.sheet.disabled && Yl(o4.attributes, "disabled", ""), o4;
93724
93780
  }(g2), "STYLE" === g2.nodeName && g2.sheet && g2.sheet.cssRules.length ? (e4.push(function(e5, t4, n4) {
93725
93781
  const r5 = (o4 = e5, function(e6) {
93726
93782
  return t5 = function(e7) {
93727
93783
  const t6 = e7.length, n5 = [1732584193, -271733879, -1732584194, 271733878];
93728
93784
  let r6;
93729
93785
  for (r6 = 64; r6 <= e7.length; r6 += 64)
93730
- Al(n5, Nl(e7.substring(r6 - 64, r6)));
93786
+ Tl(n5, jl(e7.substring(r6 - 64, r6)));
93731
93787
  e7 = e7.substring(r6 - 64);
93732
93788
  const o5 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
93733
93789
  for (r6 = 0; r6 < e7.length; r6++)
93734
93790
  o5[r6 >> 2] |= e7.charCodeAt(r6) << (r6 % 4 << 3);
93735
93791
  if (o5[r6 >> 2] |= 128 << (r6 % 4 << 3), r6 > 55)
93736
- for (Al(n5, o5), r6 = 0; r6 < 16; r6++)
93792
+ for (Tl(n5, o5), r6 = 0; r6 < 16; r6++)
93737
93793
  o5[r6] = 0;
93738
- return o5[14] = 8 * t6, Al(n5, o5), n5;
93739
- }(e6), t5.map(Il).join("");
93794
+ return o5[14] = 8 * t6, Tl(n5, o5), n5;
93795
+ }(e6), t5.map(Dl).join("");
93740
93796
  var t5;
93741
93797
  }(Array.prototype.map.call(o4.sheet.cssRules, (e6) => e6.cssText).join("")));
93742
93798
  var o4;
93743
- return n4.__dsNodeCache && n4.__dsNodeCache.key === r5 ? t4.log("[domNodesToCdt] using cache for inline css of", Cl(e5)) : n4.__dsNodeCache = { key: r5, value: zl(e5, t4) }, { nodeType: Node.TEXT_NODE, nodeValue: n4.__dsNodeCache.value };
93799
+ return n4.__dsNodeCache && n4.__dsNodeCache.key === r5 ? t4.log("[domNodesToCdt] using cache for inline css of", zl(e5)) : n4.__dsNodeCache = { key: r5, value: Al(e5, t4) }, { nodeType: Node.TEXT_NODE, nodeValue: n4.__dsNodeCache.value };
93744
93800
  }(g2, n3, r4)), b2.childNodeIndexes = [e4.length - 1]) : "TEXTAREA" === g2.tagName && g2.value !== g2.textContent ? (e4.push(function(e5) {
93745
93801
  return { nodeType: Node.TEXT_NODE, nodeValue: e5.value };
93746
93802
  }(g2)), b2.childNodeIndexes = [e4.length - 1]) : b2.childNodeIndexes = !c3 && g2.childNodes.length ? p2(e4, g2.childNodes) : [], c3 && "SLOT" === g2.tagName && "function" == typeof g2.assignedNodes) {
93747
93803
  const t4 = g2.assignedNodes();
93748
93804
  b2.childNodeIndexes = b2.childNodeIndexes || [], b2.childNodeIndexes = t4.length ? b2.childNodeIndexes.concat(p2(e4, t4)) : b2.childNodeIndexes;
93749
93805
  }
93750
- if (g2.shadowRoot && (c3 ? b2.childNodeIndexes = b2.childNodeIndexes.concat(p2(e4, g2.shadowRoot.childNodes)) : (b2.shadowRootIndex = m2(e4, g2.shadowRoot), o3.push(g2.shadowRoot))), "CANVAS" === g2.nodeName && !Ul(r4)) {
93806
+ if (g2.shadowRoot && (c3 ? b2.childNodeIndexes = b2.childNodeIndexes.concat(p2(e4, g2.shadowRoot.childNodes)) : (b2.shadowRootIndex = m2(e4, g2.shadowRoot), o3.push(g2.shadowRoot))), "CANVAS" === g2.nodeName && !Ml(r4)) {
93751
93807
  const e5 = y(`applitools-canvas-${S()}.png`, t3);
93752
93808
  b2.attributes.push({ name: "data-applitools-src", value: e5 }), i3.push({ element: g2, cdtNode: b2, url: e5 });
93753
93809
  }
93754
93810
  if ("IFRAME" === g2.nodeName) {
93755
93811
  const n4 = S();
93756
- if (g2.setAttribute("data-applitools-selector", n4.toString()), Ul(r4))
93812
+ if (g2.setAttribute("data-applitools-selector", n4.toString()), Ml(r4))
93757
93813
  b2.attributes.forEach((e5) => {
93758
93814
  "src" !== e5.name && "srcdoc" !== e5.name || (b2.attributes.push({ name: `data-applitools-original-${e5.name}`, value: e5.value }), e5.value = "");
93759
93815
  });
@@ -93770,7 +93826,7 @@ var require_processPagePollCjs = __commonJS({
93770
93826
  l2.push({ selector: t4, index: e4.length });
93771
93827
  }
93772
93828
  }
93773
- g2.adoptedStyleSheets && g2.adoptedStyleSheets.length > 0 && (b2.exp_adoptedStyleSheets = Yl(g2, n3));
93829
+ g2.adoptedStyleSheets && g2.adoptedStyleSheets.length > 0 && (b2.exp_adoptedStyleSheets = Xl(g2, n3));
93774
93830
  }
93775
93831
  if (g2.nodeType === Node.ELEMENT_NODE) {
93776
93832
  const e5 = function(e6) {
@@ -93784,7 +93840,7 @@ var require_processPagePollCjs = __commonJS({
93784
93840
  for (; (a4 = o4.exec(t6)) && (r6.push(n5(a4)), i4); )
93785
93841
  ;
93786
93842
  return r6;
93787
- }(Fl, t5, (e7) => e7[1]));
93843
+ }(Ul, t5, (e7) => e7[1]));
93788
93844
  }
93789
93845
  if (t4('img[src],source[src],input[type="image"][src],audio[src],video[src]')) {
93790
93846
  const t5 = e6.getAttribute("src");
@@ -93815,7 +93871,7 @@ var require_processPagePollCjs = __commonJS({
93815
93871
  }
93816
93872
  const r5 = function(e7) {
93817
93873
  if (e7.hasAttribute("style"))
93818
- return Bl(e7.style);
93874
+ return Fl(e7.style);
93819
93875
  }(e6);
93820
93876
  return r5 && (n4 = n4.concat(r5)), n4;
93821
93877
  }(g2);
@@ -93837,27 +93893,27 @@ var require_processPagePollCjs = __commonJS({
93837
93893
  return b2 ? (e4.push(b2), e4.length - 1) : null;
93838
93894
  }
93839
93895
  }
93840
- function Hl(e3) {
93896
+ function Gl(e3) {
93841
93897
  return Object.keys(e3.attributes || {}).filter((t3) => e3.attributes[t3] && e3.attributes[t3].name);
93842
93898
  }
93843
- function Gl(e3, t3, n3) {
93899
+ function Yl(e3, t3, n3) {
93844
93900
  const r3 = e3.find((e4) => e4.name === t3);
93845
93901
  r3 ? r3.value = n3 : e3.push({ name: t3, value: n3 });
93846
93902
  }
93847
- function Yl(e3, t3) {
93848
- return Array.from(e3.adoptedStyleSheets).map((e4) => function(e5, t4) {
93849
- const n3 = bl(e5.cssRules, t4);
93850
- return Xs(il({ type: "StyleSheet", children: n3 }));
93851
- }(e4, t3));
93903
+ function Xl(e3, t3) {
93904
+ return Array.from(e3.adoptedStyleSheets).map((n3) => function(e4, t4, n4) {
93905
+ const r3 = yl(e4.cssRules, t4, n4);
93906
+ return Xs(il({ type: "StyleSheet", children: r3 }));
93907
+ }(n3, t3, e3));
93852
93908
  }
93853
- function Xl(e3) {
93909
+ function Ql(e3) {
93854
93910
  const t3 = [];
93855
93911
  return new Set(e3).forEach((e4) => e4 && t3.push(e4)), t3;
93856
93912
  }
93857
- function Ql(e3) {
93858
- return e3.reduce(({ resourceUrls: e4, blobsObj: t3 }, { resourceUrls: n3, blobsObj: r3 }) => ({ resourceUrls: Xl(e4.concat(n3)), blobsObj: Object.assign(t3, r3) }), { resourceUrls: [], blobsObj: {} });
93913
+ function Jl(e3) {
93914
+ return e3.reduce(({ resourceUrls: e4, blobsObj: t3 }, { resourceUrls: n3, blobsObj: r3 }) => ({ resourceUrls: Ql(e4.concat(n3)), blobsObj: Object.assign(t3, r3) }), { resourceUrls: [], blobsObj: {} });
93859
93915
  }
93860
- var Jl = {};
93916
+ var ec = {};
93861
93917
  !function(e3) {
93862
93918
  var t3 = "undefined" != typeof Uint8Array && "undefined" != typeof Uint16Array && "undefined" != typeof Int32Array;
93863
93919
  function n3(e4, t4) {
@@ -93899,102 +93955,102 @@ var require_processPagePollCjs = __commonJS({
93899
93955
  e3.setTyped = function(t4) {
93900
93956
  t4 ? (e3.Buf8 = Uint8Array, e3.Buf16 = Uint16Array, e3.Buf32 = Int32Array, e3.assign(e3, r3)) : (e3.Buf8 = Array, e3.Buf16 = Array, e3.Buf32 = Array, e3.assign(e3, o3));
93901
93957
  }, e3.setTyped(t3);
93902
- }(Jl);
93903
- var ec = {}, tc = {}, nc = {}, rc = Jl;
93904
- function oc(e3) {
93958
+ }(ec);
93959
+ var tc = {}, nc = {}, rc = {}, oc = ec;
93960
+ function ic(e3) {
93905
93961
  for (var t3 = e3.length; --t3 >= 0; )
93906
93962
  e3[t3] = 0;
93907
93963
  }
93908
- var ic = 256, ac = 286, sc = 30, lc = 15, cc = 16, uc = [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0], hc = [0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13], dc = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7], pc = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15], mc = new Array(576);
93909
- oc(mc);
93910
- var fc = new Array(60);
93911
- oc(fc);
93912
- var gc = new Array(512);
93913
- oc(gc);
93914
- var bc = new Array(256);
93915
- oc(bc);
93916
- var yc = new Array(29);
93917
- oc(yc);
93918
- var kc, wc, vc, xc = new Array(sc);
93919
- function _c(e3, t3, n3, r3, o3) {
93964
+ var ac = 256, sc = 286, lc = 30, cc = 15, uc = 16, hc = [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0], dc = [0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13], pc = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7], mc = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15], fc = new Array(576);
93965
+ ic(fc);
93966
+ var gc = new Array(60);
93967
+ ic(gc);
93968
+ var bc = new Array(512);
93969
+ ic(bc);
93970
+ var yc = new Array(256);
93971
+ ic(yc);
93972
+ var kc = new Array(29);
93973
+ ic(kc);
93974
+ var wc, vc, xc, _c = new Array(lc);
93975
+ function Sc(e3, t3, n3, r3, o3) {
93920
93976
  this.static_tree = e3, this.extra_bits = t3, this.extra_base = n3, this.elems = r3, this.max_length = o3, this.has_stree = e3 && e3.length;
93921
93977
  }
93922
- function Sc(e3, t3) {
93978
+ function Cc(e3, t3) {
93923
93979
  this.dyn_tree = e3, this.max_code = 0, this.stat_desc = t3;
93924
93980
  }
93925
- function Cc(e3) {
93926
- return e3 < 256 ? gc[e3] : gc[256 + (e3 >>> 7)];
93981
+ function zc(e3) {
93982
+ return e3 < 256 ? bc[e3] : bc[256 + (e3 >>> 7)];
93927
93983
  }
93928
- function zc(e3, t3) {
93984
+ function Ac(e3, t3) {
93929
93985
  e3.pending_buf[e3.pending++] = 255 & t3, e3.pending_buf[e3.pending++] = t3 >>> 8 & 255;
93930
93986
  }
93931
- function Ac(e3, t3, n3) {
93932
- e3.bi_valid > cc - n3 ? (e3.bi_buf |= t3 << e3.bi_valid & 65535, zc(e3, e3.bi_buf), e3.bi_buf = t3 >> cc - e3.bi_valid, e3.bi_valid += n3 - cc) : (e3.bi_buf |= t3 << e3.bi_valid & 65535, e3.bi_valid += n3);
93933
- }
93934
93987
  function Tc(e3, t3, n3) {
93935
- Ac(e3, n3[2 * t3], n3[2 * t3 + 1]);
93988
+ e3.bi_valid > uc - n3 ? (e3.bi_buf |= t3 << e3.bi_valid & 65535, Ac(e3, e3.bi_buf), e3.bi_buf = t3 >> uc - e3.bi_valid, e3.bi_valid += n3 - uc) : (e3.bi_buf |= t3 << e3.bi_valid & 65535, e3.bi_valid += n3);
93936
93989
  }
93937
- function Oc(e3, t3) {
93990
+ function Oc(e3, t3, n3) {
93991
+ Tc(e3, n3[2 * t3], n3[2 * t3 + 1]);
93992
+ }
93993
+ function Lc(e3, t3) {
93938
93994
  var n3 = 0;
93939
93995
  do {
93940
93996
  n3 |= 1 & e3, e3 >>>= 1, n3 <<= 1;
93941
93997
  } while (--t3 > 0);
93942
93998
  return n3 >>> 1;
93943
93999
  }
93944
- function Lc(e3, t3, n3) {
93945
- var r3, o3, i3 = new Array(lc + 1), a3 = 0;
93946
- for (r3 = 1; r3 <= lc; r3++)
94000
+ function Ec(e3, t3, n3) {
94001
+ var r3, o3, i3 = new Array(cc + 1), a3 = 0;
94002
+ for (r3 = 1; r3 <= cc; r3++)
93947
94003
  i3[r3] = a3 = a3 + n3[r3 - 1] << 1;
93948
94004
  for (o3 = 0; o3 <= t3; o3++) {
93949
94005
  var s3 = e3[2 * o3 + 1];
93950
- 0 !== s3 && (e3[2 * o3] = Oc(i3[s3]++, s3));
94006
+ 0 !== s3 && (e3[2 * o3] = Lc(i3[s3]++, s3));
93951
94007
  }
93952
94008
  }
93953
- function Ec(e3) {
94009
+ function Rc(e3) {
93954
94010
  var t3;
93955
- for (t3 = 0; t3 < ac; t3++)
93956
- e3.dyn_ltree[2 * t3] = 0;
93957
94011
  for (t3 = 0; t3 < sc; t3++)
94012
+ e3.dyn_ltree[2 * t3] = 0;
94013
+ for (t3 = 0; t3 < lc; t3++)
93958
94014
  e3.dyn_dtree[2 * t3] = 0;
93959
94015
  for (t3 = 0; t3 < 19; t3++)
93960
94016
  e3.bl_tree[2 * t3] = 0;
93961
94017
  e3.dyn_ltree[512] = 1, e3.opt_len = e3.static_len = 0, e3.last_lit = e3.matches = 0;
93962
94018
  }
93963
- function Rc(e3) {
93964
- e3.bi_valid > 8 ? zc(e3, e3.bi_buf) : e3.bi_valid > 0 && (e3.pending_buf[e3.pending++] = e3.bi_buf), e3.bi_buf = 0, e3.bi_valid = 0;
94019
+ function Nc(e3) {
94020
+ e3.bi_valid > 8 ? Ac(e3, e3.bi_buf) : e3.bi_valid > 0 && (e3.pending_buf[e3.pending++] = e3.bi_buf), e3.bi_buf = 0, e3.bi_valid = 0;
93965
94021
  }
93966
- function Nc(e3, t3, n3, r3) {
94022
+ function jc(e3, t3, n3, r3) {
93967
94023
  var o3 = 2 * t3, i3 = 2 * n3;
93968
94024
  return e3[o3] < e3[i3] || e3[o3] === e3[i3] && r3[t3] <= r3[n3];
93969
94025
  }
93970
- function jc(e3, t3, n3) {
93971
- for (var r3 = e3.heap[n3], o3 = n3 << 1; o3 <= e3.heap_len && (o3 < e3.heap_len && Nc(t3, e3.heap[o3 + 1], e3.heap[o3], e3.depth) && o3++, !Nc(t3, r3, e3.heap[o3], e3.depth)); )
94026
+ function Ic(e3, t3, n3) {
94027
+ for (var r3 = e3.heap[n3], o3 = n3 << 1; o3 <= e3.heap_len && (o3 < e3.heap_len && jc(t3, e3.heap[o3 + 1], e3.heap[o3], e3.depth) && o3++, !jc(t3, r3, e3.heap[o3], e3.depth)); )
93972
94028
  e3.heap[n3] = e3.heap[o3], n3 = o3, o3 <<= 1;
93973
94029
  e3.heap[n3] = r3;
93974
94030
  }
93975
- function Ic(e3, t3, n3) {
94031
+ function Dc(e3, t3, n3) {
93976
94032
  var r3, o3, i3, a3, s3 = 0;
93977
94033
  if (0 !== e3.last_lit)
93978
94034
  do {
93979
- r3 = e3.pending_buf[e3.d_buf + 2 * s3] << 8 | e3.pending_buf[e3.d_buf + 2 * s3 + 1], o3 = e3.pending_buf[e3.l_buf + s3], s3++, 0 === r3 ? Tc(e3, o3, t3) : (Tc(e3, (i3 = bc[o3]) + ic + 1, t3), 0 !== (a3 = uc[i3]) && Ac(e3, o3 -= yc[i3], a3), Tc(e3, i3 = Cc(--r3), n3), 0 !== (a3 = hc[i3]) && Ac(e3, r3 -= xc[i3], a3));
94035
+ r3 = e3.pending_buf[e3.d_buf + 2 * s3] << 8 | e3.pending_buf[e3.d_buf + 2 * s3 + 1], o3 = e3.pending_buf[e3.l_buf + s3], s3++, 0 === r3 ? Oc(e3, o3, t3) : (Oc(e3, (i3 = yc[o3]) + ac + 1, t3), 0 !== (a3 = hc[i3]) && Tc(e3, o3 -= kc[i3], a3), Oc(e3, i3 = zc(--r3), n3), 0 !== (a3 = dc[i3]) && Tc(e3, r3 -= _c[i3], a3));
93980
94036
  } while (s3 < e3.last_lit);
93981
- Tc(e3, 256, t3);
94037
+ Oc(e3, 256, t3);
93982
94038
  }
93983
- function Dc(e3, t3) {
94039
+ function Pc(e3, t3) {
93984
94040
  var n3, r3, o3, i3 = t3.dyn_tree, a3 = t3.stat_desc.static_tree, s3 = t3.stat_desc.has_stree, l2 = t3.stat_desc.elems, c2 = -1;
93985
94041
  for (e3.heap_len = 0, e3.heap_max = 573, n3 = 0; n3 < l2; n3++)
93986
94042
  0 !== i3[2 * n3] ? (e3.heap[++e3.heap_len] = c2 = n3, e3.depth[n3] = 0) : i3[2 * n3 + 1] = 0;
93987
94043
  for (; e3.heap_len < 2; )
93988
94044
  i3[2 * (o3 = e3.heap[++e3.heap_len] = c2 < 2 ? ++c2 : 0)] = 1, e3.depth[o3] = 0, e3.opt_len--, s3 && (e3.static_len -= a3[2 * o3 + 1]);
93989
94045
  for (t3.max_code = c2, n3 = e3.heap_len >> 1; n3 >= 1; n3--)
93990
- jc(e3, i3, n3);
94046
+ Ic(e3, i3, n3);
93991
94047
  o3 = l2;
93992
94048
  do {
93993
- n3 = e3.heap[1], e3.heap[1] = e3.heap[e3.heap_len--], jc(e3, i3, 1), r3 = e3.heap[1], e3.heap[--e3.heap_max] = n3, e3.heap[--e3.heap_max] = r3, i3[2 * o3] = i3[2 * n3] + i3[2 * r3], e3.depth[o3] = (e3.depth[n3] >= e3.depth[r3] ? e3.depth[n3] : e3.depth[r3]) + 1, i3[2 * n3 + 1] = i3[2 * r3 + 1] = o3, e3.heap[1] = o3++, jc(e3, i3, 1);
94049
+ n3 = e3.heap[1], e3.heap[1] = e3.heap[e3.heap_len--], Ic(e3, i3, 1), r3 = e3.heap[1], e3.heap[--e3.heap_max] = n3, e3.heap[--e3.heap_max] = r3, i3[2 * o3] = i3[2 * n3] + i3[2 * r3], e3.depth[o3] = (e3.depth[n3] >= e3.depth[r3] ? e3.depth[n3] : e3.depth[r3]) + 1, i3[2 * n3 + 1] = i3[2 * r3 + 1] = o3, e3.heap[1] = o3++, Ic(e3, i3, 1);
93994
94050
  } while (e3.heap_len >= 2);
93995
94051
  e3.heap[--e3.heap_max] = e3.heap[1], function(e4, t4) {
93996
94052
  var n4, r4, o4, i4, a4, s4, l3 = t4.dyn_tree, c3 = t4.max_code, u2 = t4.stat_desc.static_tree, h2 = t4.stat_desc.has_stree, d2 = t4.stat_desc.extra_bits, p2 = t4.stat_desc.extra_base, m2 = t4.stat_desc.max_length, f2 = 0;
93997
- for (i4 = 0; i4 <= lc; i4++)
94053
+ for (i4 = 0; i4 <= cc; i4++)
93998
94054
  e4.bl_count[i4] = 0;
93999
94055
  for (l3[2 * e4.heap[e4.heap_max] + 1] = 0, n4 = e4.heap_max + 1; n4 < 573; n4++)
94000
94056
  (i4 = l3[2 * l3[2 * (r4 = e4.heap[n4]) + 1] + 1] + 1) > m2 && (i4 = m2, f2++), l3[2 * r4 + 1] = i4, r4 > c3 || (e4.bl_count[i4]++, a4 = 0, r4 >= p2 && (a4 = d2[r4 - p2]), s4 = l3[2 * r4], e4.opt_len += s4 * (i4 + a4), h2 && (e4.static_len += s4 * (u2[2 * r4 + 1] + a4)));
@@ -94008,60 +94064,60 @@ var require_processPagePollCjs = __commonJS({
94008
94064
  for (r4 = e4.bl_count[i4]; 0 !== r4; )
94009
94065
  (o4 = e4.heap[--n4]) > c3 || (l3[2 * o4 + 1] !== i4 && (e4.opt_len += (i4 - l3[2 * o4 + 1]) * l3[2 * o4], l3[2 * o4 + 1] = i4), r4--);
94010
94066
  }
94011
- }(e3, t3), Lc(i3, c2, e3.bl_count);
94067
+ }(e3, t3), Ec(i3, c2, e3.bl_count);
94012
94068
  }
94013
- function Pc(e3, t3, n3) {
94069
+ function Bc(e3, t3, n3) {
94014
94070
  var r3, o3, i3 = -1, a3 = t3[1], s3 = 0, l2 = 7, c2 = 4;
94015
94071
  for (0 === a3 && (l2 = 138, c2 = 3), t3[2 * (n3 + 1) + 1] = 65535, r3 = 0; r3 <= n3; r3++)
94016
94072
  o3 = a3, a3 = t3[2 * (r3 + 1) + 1], ++s3 < l2 && o3 === a3 || (s3 < c2 ? e3.bl_tree[2 * o3] += s3 : 0 !== o3 ? (o3 !== i3 && e3.bl_tree[2 * o3]++, e3.bl_tree[32]++) : s3 <= 10 ? e3.bl_tree[34]++ : e3.bl_tree[36]++, s3 = 0, i3 = o3, 0 === a3 ? (l2 = 138, c2 = 3) : o3 === a3 ? (l2 = 6, c2 = 3) : (l2 = 7, c2 = 4));
94017
94073
  }
94018
- function Bc(e3, t3, n3) {
94074
+ function Fc(e3, t3, n3) {
94019
94075
  var r3, o3, i3 = -1, a3 = t3[1], s3 = 0, l2 = 7, c2 = 4;
94020
94076
  for (0 === a3 && (l2 = 138, c2 = 3), r3 = 0; r3 <= n3; r3++)
94021
94077
  if (o3 = a3, a3 = t3[2 * (r3 + 1) + 1], !(++s3 < l2 && o3 === a3)) {
94022
94078
  if (s3 < c2)
94023
94079
  do {
94024
- Tc(e3, o3, e3.bl_tree);
94080
+ Oc(e3, o3, e3.bl_tree);
94025
94081
  } while (0 != --s3);
94026
94082
  else
94027
- 0 !== o3 ? (o3 !== i3 && (Tc(e3, o3, e3.bl_tree), s3--), Tc(e3, 16, e3.bl_tree), Ac(e3, s3 - 3, 2)) : s3 <= 10 ? (Tc(e3, 17, e3.bl_tree), Ac(e3, s3 - 3, 3)) : (Tc(e3, 18, e3.bl_tree), Ac(e3, s3 - 11, 7));
94083
+ 0 !== o3 ? (o3 !== i3 && (Oc(e3, o3, e3.bl_tree), s3--), Oc(e3, 16, e3.bl_tree), Tc(e3, s3 - 3, 2)) : s3 <= 10 ? (Oc(e3, 17, e3.bl_tree), Tc(e3, s3 - 3, 3)) : (Oc(e3, 18, e3.bl_tree), Tc(e3, s3 - 11, 7));
94028
94084
  s3 = 0, i3 = o3, 0 === a3 ? (l2 = 138, c2 = 3) : o3 === a3 ? (l2 = 6, c2 = 3) : (l2 = 7, c2 = 4);
94029
94085
  }
94030
94086
  }
94031
- oc(xc);
94032
- var Fc = false;
94033
- function Uc(e3, t3, n3, r3) {
94034
- Ac(e3, 0 + (r3 ? 1 : 0), 3), function(e4, t4, n4, r4) {
94035
- Rc(e4), zc(e4, n4), zc(e4, ~n4), rc.arraySet(e4.pending_buf, e4.window, t4, n4, e4.pending), e4.pending += n4;
94087
+ ic(_c);
94088
+ var Uc = false;
94089
+ function Mc(e3, t3, n3, r3) {
94090
+ Tc(e3, 0 + (r3 ? 1 : 0), 3), function(e4, t4, n4, r4) {
94091
+ Nc(e4), Ac(e4, n4), Ac(e4, ~n4), oc.arraySet(e4.pending_buf, e4.window, t4, n4, e4.pending), e4.pending += n4;
94036
94092
  }(e3, t3, n3);
94037
94093
  }
94038
- nc._tr_init = function(e3) {
94039
- Fc || (function() {
94040
- var e4, t3, n3, r3, o3, i3 = new Array(lc + 1);
94094
+ rc._tr_init = function(e3) {
94095
+ Uc || (function() {
94096
+ var e4, t3, n3, r3, o3, i3 = new Array(cc + 1);
94041
94097
  for (n3 = 0, r3 = 0; r3 < 28; r3++)
94042
- for (yc[r3] = n3, e4 = 0; e4 < 1 << uc[r3]; e4++)
94043
- bc[n3++] = r3;
94044
- for (bc[n3 - 1] = r3, o3 = 0, r3 = 0; r3 < 16; r3++)
94045
- for (xc[r3] = o3, e4 = 0; e4 < 1 << hc[r3]; e4++)
94046
- gc[o3++] = r3;
94047
- for (o3 >>= 7; r3 < sc; r3++)
94048
- for (xc[r3] = o3 << 7, e4 = 0; e4 < 1 << hc[r3] - 7; e4++)
94049
- gc[256 + o3++] = r3;
94050
- for (t3 = 0; t3 <= lc; t3++)
94098
+ for (kc[r3] = n3, e4 = 0; e4 < 1 << hc[r3]; e4++)
94099
+ yc[n3++] = r3;
94100
+ for (yc[n3 - 1] = r3, o3 = 0, r3 = 0; r3 < 16; r3++)
94101
+ for (_c[r3] = o3, e4 = 0; e4 < 1 << dc[r3]; e4++)
94102
+ bc[o3++] = r3;
94103
+ for (o3 >>= 7; r3 < lc; r3++)
94104
+ for (_c[r3] = o3 << 7, e4 = 0; e4 < 1 << dc[r3] - 7; e4++)
94105
+ bc[256 + o3++] = r3;
94106
+ for (t3 = 0; t3 <= cc; t3++)
94051
94107
  i3[t3] = 0;
94052
94108
  for (e4 = 0; e4 <= 143; )
94053
- mc[2 * e4 + 1] = 8, e4++, i3[8]++;
94109
+ fc[2 * e4 + 1] = 8, e4++, i3[8]++;
94054
94110
  for (; e4 <= 255; )
94055
- mc[2 * e4 + 1] = 9, e4++, i3[9]++;
94111
+ fc[2 * e4 + 1] = 9, e4++, i3[9]++;
94056
94112
  for (; e4 <= 279; )
94057
- mc[2 * e4 + 1] = 7, e4++, i3[7]++;
94113
+ fc[2 * e4 + 1] = 7, e4++, i3[7]++;
94058
94114
  for (; e4 <= 287; )
94059
- mc[2 * e4 + 1] = 8, e4++, i3[8]++;
94060
- for (Lc(mc, 287, i3), e4 = 0; e4 < sc; e4++)
94061
- fc[2 * e4 + 1] = 5, fc[2 * e4] = Oc(e4, 5);
94062
- kc = new _c(mc, uc, 257, ac, lc), wc = new _c(fc, hc, 0, sc, lc), vc = new _c(new Array(0), dc, 0, 19, 7);
94063
- }(), Fc = true), e3.l_desc = new Sc(e3.dyn_ltree, kc), e3.d_desc = new Sc(e3.dyn_dtree, wc), e3.bl_desc = new Sc(e3.bl_tree, vc), e3.bi_buf = 0, e3.bi_valid = 0, Ec(e3);
94064
- }, nc._tr_stored_block = Uc, nc._tr_flush_block = function(e3, t3, n3, r3) {
94115
+ fc[2 * e4 + 1] = 8, e4++, i3[8]++;
94116
+ for (Ec(fc, 287, i3), e4 = 0; e4 < lc; e4++)
94117
+ gc[2 * e4 + 1] = 5, gc[2 * e4] = Lc(e4, 5);
94118
+ wc = new Sc(fc, hc, 257, sc, cc), vc = new Sc(gc, dc, 0, lc, cc), xc = new Sc(new Array(0), pc, 0, 19, 7);
94119
+ }(), Uc = true), e3.l_desc = new Cc(e3.dyn_ltree, wc), e3.d_desc = new Cc(e3.dyn_dtree, vc), e3.bl_desc = new Cc(e3.bl_tree, xc), e3.bi_buf = 0, e3.bi_valid = 0, Rc(e3);
94120
+ }, rc._tr_stored_block = Mc, rc._tr_flush_block = function(e3, t3, n3, r3) {
94065
94121
  var o3, i3, a3 = 0;
94066
94122
  e3.level > 0 ? (2 === e3.strm.data_type && (e3.strm.data_type = function(e4) {
94067
94123
  var t4, n4 = 4093624447;
@@ -94070,29 +94126,29 @@ var require_processPagePollCjs = __commonJS({
94070
94126
  return 0;
94071
94127
  if (0 !== e4.dyn_ltree[18] || 0 !== e4.dyn_ltree[20] || 0 !== e4.dyn_ltree[26])
94072
94128
  return 1;
94073
- for (t4 = 32; t4 < ic; t4++)
94129
+ for (t4 = 32; t4 < ac; t4++)
94074
94130
  if (0 !== e4.dyn_ltree[2 * t4])
94075
94131
  return 1;
94076
94132
  return 0;
94077
- }(e3)), Dc(e3, e3.l_desc), Dc(e3, e3.d_desc), a3 = function(e4) {
94133
+ }(e3)), Pc(e3, e3.l_desc), Pc(e3, e3.d_desc), a3 = function(e4) {
94078
94134
  var t4;
94079
- for (Pc(e4, e4.dyn_ltree, e4.l_desc.max_code), Pc(e4, e4.dyn_dtree, e4.d_desc.max_code), Dc(e4, e4.bl_desc), t4 = 18; t4 >= 3 && 0 === e4.bl_tree[2 * pc[t4] + 1]; t4--)
94135
+ for (Bc(e4, e4.dyn_ltree, e4.l_desc.max_code), Bc(e4, e4.dyn_dtree, e4.d_desc.max_code), Pc(e4, e4.bl_desc), t4 = 18; t4 >= 3 && 0 === e4.bl_tree[2 * mc[t4] + 1]; t4--)
94080
94136
  ;
94081
94137
  return e4.opt_len += 3 * (t4 + 1) + 5 + 5 + 4, t4;
94082
- }(e3), o3 = e3.opt_len + 3 + 7 >>> 3, (i3 = e3.static_len + 3 + 7 >>> 3) <= o3 && (o3 = i3)) : o3 = i3 = n3 + 5, n3 + 4 <= o3 && -1 !== t3 ? Uc(e3, t3, n3, r3) : 4 === e3.strategy || i3 === o3 ? (Ac(e3, 2 + (r3 ? 1 : 0), 3), Ic(e3, mc, fc)) : (Ac(e3, 4 + (r3 ? 1 : 0), 3), function(e4, t4, n4, r4) {
94138
+ }(e3), o3 = e3.opt_len + 3 + 7 >>> 3, (i3 = e3.static_len + 3 + 7 >>> 3) <= o3 && (o3 = i3)) : o3 = i3 = n3 + 5, n3 + 4 <= o3 && -1 !== t3 ? Mc(e3, t3, n3, r3) : 4 === e3.strategy || i3 === o3 ? (Tc(e3, 2 + (r3 ? 1 : 0), 3), Dc(e3, fc, gc)) : (Tc(e3, 4 + (r3 ? 1 : 0), 3), function(e4, t4, n4, r4) {
94083
94139
  var o4;
94084
- for (Ac(e4, t4 - 257, 5), Ac(e4, n4 - 1, 5), Ac(e4, r4 - 4, 4), o4 = 0; o4 < r4; o4++)
94085
- Ac(e4, e4.bl_tree[2 * pc[o4] + 1], 3);
94086
- Bc(e4, e4.dyn_ltree, t4 - 1), Bc(e4, e4.dyn_dtree, n4 - 1);
94087
- }(e3, e3.l_desc.max_code + 1, e3.d_desc.max_code + 1, a3 + 1), Ic(e3, e3.dyn_ltree, e3.dyn_dtree)), Ec(e3), r3 && Rc(e3);
94088
- }, nc._tr_tally = function(e3, t3, n3) {
94089
- return e3.pending_buf[e3.d_buf + 2 * e3.last_lit] = t3 >>> 8 & 255, e3.pending_buf[e3.d_buf + 2 * e3.last_lit + 1] = 255 & t3, e3.pending_buf[e3.l_buf + e3.last_lit] = 255 & n3, e3.last_lit++, 0 === t3 ? e3.dyn_ltree[2 * n3]++ : (e3.matches++, t3--, e3.dyn_ltree[2 * (bc[n3] + ic + 1)]++, e3.dyn_dtree[2 * Cc(t3)]++), e3.last_lit === e3.lit_bufsize - 1;
94090
- }, nc._tr_align = function(e3) {
94091
- Ac(e3, 2, 3), Tc(e3, 256, mc), function(e4) {
94092
- 16 === e4.bi_valid ? (zc(e4, e4.bi_buf), e4.bi_buf = 0, e4.bi_valid = 0) : e4.bi_valid >= 8 && (e4.pending_buf[e4.pending++] = 255 & e4.bi_buf, e4.bi_buf >>= 8, e4.bi_valid -= 8);
94140
+ for (Tc(e4, t4 - 257, 5), Tc(e4, n4 - 1, 5), Tc(e4, r4 - 4, 4), o4 = 0; o4 < r4; o4++)
94141
+ Tc(e4, e4.bl_tree[2 * mc[o4] + 1], 3);
94142
+ Fc(e4, e4.dyn_ltree, t4 - 1), Fc(e4, e4.dyn_dtree, n4 - 1);
94143
+ }(e3, e3.l_desc.max_code + 1, e3.d_desc.max_code + 1, a3 + 1), Dc(e3, e3.dyn_ltree, e3.dyn_dtree)), Rc(e3), r3 && Nc(e3);
94144
+ }, rc._tr_tally = function(e3, t3, n3) {
94145
+ return e3.pending_buf[e3.d_buf + 2 * e3.last_lit] = t3 >>> 8 & 255, e3.pending_buf[e3.d_buf + 2 * e3.last_lit + 1] = 255 & t3, e3.pending_buf[e3.l_buf + e3.last_lit] = 255 & n3, e3.last_lit++, 0 === t3 ? e3.dyn_ltree[2 * n3]++ : (e3.matches++, t3--, e3.dyn_ltree[2 * (yc[n3] + ac + 1)]++, e3.dyn_dtree[2 * zc(t3)]++), e3.last_lit === e3.lit_bufsize - 1;
94146
+ }, rc._tr_align = function(e3) {
94147
+ Tc(e3, 2, 3), Oc(e3, 256, fc), function(e4) {
94148
+ 16 === e4.bi_valid ? (Ac(e4, e4.bi_buf), e4.bi_buf = 0, e4.bi_valid = 0) : e4.bi_valid >= 8 && (e4.pending_buf[e4.pending++] = 255 & e4.bi_buf, e4.bi_buf >>= 8, e4.bi_valid -= 8);
94093
94149
  }(e3);
94094
94150
  };
94095
- var Mc, qc = function(e3, t3, n3, r3) {
94151
+ var qc, Wc = function(e3, t3, n3, r3) {
94096
94152
  for (var o3 = 65535 & e3 | 0, i3 = e3 >>> 16 & 65535 | 0, a3 = 0; 0 !== n3; ) {
94097
94153
  n3 -= a3 = n3 > 2e3 ? 2e3 : n3;
94098
94154
  do {
@@ -94101,7 +94157,7 @@ var require_processPagePollCjs = __commonJS({
94101
94157
  o3 %= 65521, i3 %= 65521;
94102
94158
  }
94103
94159
  return o3 | i3 << 16 | 0;
94104
- }, Wc = function() {
94160
+ }, $c = function() {
94105
94161
  for (var e3, t3 = [], n3 = 0; n3 < 256; n3++) {
94106
94162
  e3 = n3;
94107
94163
  for (var r3 = 0; r3 < 8; r3++)
@@ -94109,45 +94165,45 @@ var require_processPagePollCjs = __commonJS({
94109
94165
  t3[n3] = e3;
94110
94166
  }
94111
94167
  return t3;
94112
- }(), $c = function(e3, t3, n3, r3) {
94113
- var o3 = Wc, i3 = r3 + n3;
94168
+ }(), Vc = function(e3, t3, n3, r3) {
94169
+ var o3 = $c, i3 = r3 + n3;
94114
94170
  e3 ^= -1;
94115
94171
  for (var a3 = r3; a3 < i3; a3++)
94116
94172
  e3 = e3 >>> 8 ^ o3[255 & (e3 ^ t3[a3])];
94117
94173
  return -1 ^ e3;
94118
- }, Vc = { 2: "need dictionary", 1: "stream end", 0: "", "-1": "file error", "-2": "stream error", "-3": "data error", "-4": "insufficient memory", "-5": "buffer error", "-6": "incompatible version" }, Zc = Jl, Kc = nc, Hc = qc, Gc = $c, Yc = Vc, Xc = 0, Qc = 0, Jc = -2, eu = 2, tu = 8, nu = 286, ru = 30, ou = 19, iu = 2 * nu + 1, au = 15, su = 3, lu = 258, cu = lu + su + 1, uu = 42, hu = 103, du = 113, pu = 666;
94119
- function mu(e3, t3) {
94120
- return e3.msg = Yc[t3], t3;
94174
+ }, Zc = { 2: "need dictionary", 1: "stream end", 0: "", "-1": "file error", "-2": "stream error", "-3": "data error", "-4": "insufficient memory", "-5": "buffer error", "-6": "incompatible version" }, Kc = ec, Hc = rc, Gc = Wc, Yc = Vc, Xc = Zc, Qc = 0, Jc = 0, eu = -2, tu = 2, nu = 8, ru = 286, ou = 30, iu = 19, au = 2 * ru + 1, su = 15, lu = 3, cu = 258, uu = cu + lu + 1, hu = 42, du = 103, pu = 113, mu = 666;
94175
+ function fu(e3, t3) {
94176
+ return e3.msg = Xc[t3], t3;
94121
94177
  }
94122
- function fu(e3) {
94178
+ function gu(e3) {
94123
94179
  return (e3 << 1) - (e3 > 4 ? 9 : 0);
94124
94180
  }
94125
- function gu(e3) {
94181
+ function bu(e3) {
94126
94182
  for (var t3 = e3.length; --t3 >= 0; )
94127
94183
  e3[t3] = 0;
94128
94184
  }
94129
- function bu(e3) {
94185
+ function yu(e3) {
94130
94186
  var t3 = e3.state, n3 = t3.pending;
94131
- n3 > e3.avail_out && (n3 = e3.avail_out), 0 !== n3 && (Zc.arraySet(e3.output, t3.pending_buf, t3.pending_out, n3, e3.next_out), e3.next_out += n3, t3.pending_out += n3, e3.total_out += n3, e3.avail_out -= n3, t3.pending -= n3, 0 === t3.pending && (t3.pending_out = 0));
94132
- }
94133
- function yu(e3, t3) {
94134
- Kc._tr_flush_block(e3, e3.block_start >= 0 ? e3.block_start : -1, e3.strstart - e3.block_start, t3), e3.block_start = e3.strstart, bu(e3.strm);
94187
+ n3 > e3.avail_out && (n3 = e3.avail_out), 0 !== n3 && (Kc.arraySet(e3.output, t3.pending_buf, t3.pending_out, n3, e3.next_out), e3.next_out += n3, t3.pending_out += n3, e3.total_out += n3, e3.avail_out -= n3, t3.pending -= n3, 0 === t3.pending && (t3.pending_out = 0));
94135
94188
  }
94136
94189
  function ku(e3, t3) {
94137
- e3.pending_buf[e3.pending++] = t3;
94190
+ Hc._tr_flush_block(e3, e3.block_start >= 0 ? e3.block_start : -1, e3.strstart - e3.block_start, t3), e3.block_start = e3.strstart, yu(e3.strm);
94138
94191
  }
94139
94192
  function wu(e3, t3) {
94140
- e3.pending_buf[e3.pending++] = t3 >>> 8 & 255, e3.pending_buf[e3.pending++] = 255 & t3;
94193
+ e3.pending_buf[e3.pending++] = t3;
94141
94194
  }
94142
94195
  function vu(e3, t3) {
94143
- var n3, r3, o3 = e3.max_chain_length, i3 = e3.strstart, a3 = e3.prev_length, s3 = e3.nice_match, l2 = e3.strstart > e3.w_size - cu ? e3.strstart - (e3.w_size - cu) : 0, c2 = e3.window, u2 = e3.w_mask, h2 = e3.prev, d2 = e3.strstart + lu, p2 = c2[i3 + a3 - 1], m2 = c2[i3 + a3];
94196
+ e3.pending_buf[e3.pending++] = t3 >>> 8 & 255, e3.pending_buf[e3.pending++] = 255 & t3;
94197
+ }
94198
+ function xu(e3, t3) {
94199
+ var n3, r3, o3 = e3.max_chain_length, i3 = e3.strstart, a3 = e3.prev_length, s3 = e3.nice_match, l2 = e3.strstart > e3.w_size - uu ? e3.strstart - (e3.w_size - uu) : 0, c2 = e3.window, u2 = e3.w_mask, h2 = e3.prev, d2 = e3.strstart + cu, p2 = c2[i3 + a3 - 1], m2 = c2[i3 + a3];
94144
94200
  e3.prev_length >= e3.good_match && (o3 >>= 2), s3 > e3.lookahead && (s3 = e3.lookahead);
94145
94201
  do {
94146
94202
  if (c2[(n3 = t3) + a3] === m2 && c2[n3 + a3 - 1] === p2 && c2[n3] === c2[i3] && c2[++n3] === c2[i3 + 1]) {
94147
94203
  i3 += 2, n3++;
94148
94204
  do {
94149
94205
  } while (c2[++i3] === c2[++n3] && c2[++i3] === c2[++n3] && c2[++i3] === c2[++n3] && c2[++i3] === c2[++n3] && c2[++i3] === c2[++n3] && c2[++i3] === c2[++n3] && c2[++i3] === c2[++n3] && c2[++i3] === c2[++n3] && i3 < d2);
94150
- if (r3 = lu - (d2 - i3), i3 = d2 - lu, r3 > a3) {
94206
+ if (r3 = cu - (d2 - i3), i3 = d2 - cu, r3 > a3) {
94151
94207
  if (e3.match_start = t3, a3 = r3, r3 >= s3)
94152
94208
  break;
94153
94209
  p2 = c2[i3 + a3 - 1], m2 = c2[i3 + a3];
@@ -94156,11 +94212,11 @@ var require_processPagePollCjs = __commonJS({
94156
94212
  } while ((t3 = h2[t3 & u2]) > l2 && 0 != --o3);
94157
94213
  return a3 <= e3.lookahead ? a3 : e3.lookahead;
94158
94214
  }
94159
- function xu(e3) {
94215
+ function _u(e3) {
94160
94216
  var t3, n3, r3, o3, i3, a3, s3, l2, c2, u2, h2 = e3.w_size;
94161
94217
  do {
94162
- if (o3 = e3.window_size - e3.lookahead - e3.strstart, e3.strstart >= h2 + (h2 - cu)) {
94163
- Zc.arraySet(e3.window, e3.window, h2, h2, 0), e3.match_start -= h2, e3.strstart -= h2, e3.block_start -= h2, t3 = n3 = e3.hash_size;
94218
+ if (o3 = e3.window_size - e3.lookahead - e3.strstart, e3.strstart >= h2 + (h2 - uu)) {
94219
+ Kc.arraySet(e3.window, e3.window, h2, h2, 0), e3.match_start -= h2, e3.strstart -= h2, e3.block_start -= h2, t3 = n3 = e3.hash_size;
94164
94220
  do {
94165
94221
  r3 = e3.head[--t3], e3.head[t3] = r3 >= h2 ? r3 - h2 : 0;
94166
94222
  } while (--n3);
@@ -94172,309 +94228,309 @@ var require_processPagePollCjs = __commonJS({
94172
94228
  }
94173
94229
  if (0 === e3.strm.avail_in)
94174
94230
  break;
94175
- if (a3 = e3.strm, s3 = e3.window, l2 = e3.strstart + e3.lookahead, c2 = o3, u2 = void 0, (u2 = a3.avail_in) > c2 && (u2 = c2), n3 = 0 === u2 ? 0 : (a3.avail_in -= u2, Zc.arraySet(s3, a3.input, a3.next_in, u2, l2), 1 === a3.state.wrap ? a3.adler = Hc(a3.adler, s3, u2, l2) : 2 === a3.state.wrap && (a3.adler = Gc(a3.adler, s3, u2, l2)), a3.next_in += u2, a3.total_in += u2, u2), e3.lookahead += n3, e3.lookahead + e3.insert >= su)
94176
- for (i3 = e3.strstart - e3.insert, e3.ins_h = e3.window[i3], e3.ins_h = (e3.ins_h << e3.hash_shift ^ e3.window[i3 + 1]) & e3.hash_mask; e3.insert && (e3.ins_h = (e3.ins_h << e3.hash_shift ^ e3.window[i3 + su - 1]) & e3.hash_mask, e3.prev[i3 & e3.w_mask] = e3.head[e3.ins_h], e3.head[e3.ins_h] = i3, i3++, e3.insert--, !(e3.lookahead + e3.insert < su)); )
94231
+ if (a3 = e3.strm, s3 = e3.window, l2 = e3.strstart + e3.lookahead, c2 = o3, u2 = void 0, (u2 = a3.avail_in) > c2 && (u2 = c2), n3 = 0 === u2 ? 0 : (a3.avail_in -= u2, Kc.arraySet(s3, a3.input, a3.next_in, u2, l2), 1 === a3.state.wrap ? a3.adler = Gc(a3.adler, s3, u2, l2) : 2 === a3.state.wrap && (a3.adler = Yc(a3.adler, s3, u2, l2)), a3.next_in += u2, a3.total_in += u2, u2), e3.lookahead += n3, e3.lookahead + e3.insert >= lu)
94232
+ for (i3 = e3.strstart - e3.insert, e3.ins_h = e3.window[i3], e3.ins_h = (e3.ins_h << e3.hash_shift ^ e3.window[i3 + 1]) & e3.hash_mask; e3.insert && (e3.ins_h = (e3.ins_h << e3.hash_shift ^ e3.window[i3 + lu - 1]) & e3.hash_mask, e3.prev[i3 & e3.w_mask] = e3.head[e3.ins_h], e3.head[e3.ins_h] = i3, i3++, e3.insert--, !(e3.lookahead + e3.insert < lu)); )
94177
94233
  ;
94178
- } while (e3.lookahead < cu && 0 !== e3.strm.avail_in);
94234
+ } while (e3.lookahead < uu && 0 !== e3.strm.avail_in);
94179
94235
  }
94180
- function _u(e3, t3) {
94236
+ function Su(e3, t3) {
94181
94237
  for (var n3, r3; ; ) {
94182
- if (e3.lookahead < cu) {
94183
- if (xu(e3), e3.lookahead < cu && t3 === Xc)
94238
+ if (e3.lookahead < uu) {
94239
+ if (_u(e3), e3.lookahead < uu && t3 === Qc)
94184
94240
  return 1;
94185
94241
  if (0 === e3.lookahead)
94186
94242
  break;
94187
94243
  }
94188
- if (n3 = 0, e3.lookahead >= su && (e3.ins_h = (e3.ins_h << e3.hash_shift ^ e3.window[e3.strstart + su - 1]) & e3.hash_mask, n3 = e3.prev[e3.strstart & e3.w_mask] = e3.head[e3.ins_h], e3.head[e3.ins_h] = e3.strstart), 0 !== n3 && e3.strstart - n3 <= e3.w_size - cu && (e3.match_length = vu(e3, n3)), e3.match_length >= su)
94189
- if (r3 = Kc._tr_tally(e3, e3.strstart - e3.match_start, e3.match_length - su), e3.lookahead -= e3.match_length, e3.match_length <= e3.max_lazy_match && e3.lookahead >= su) {
94244
+ if (n3 = 0, e3.lookahead >= lu && (e3.ins_h = (e3.ins_h << e3.hash_shift ^ e3.window[e3.strstart + lu - 1]) & e3.hash_mask, n3 = e3.prev[e3.strstart & e3.w_mask] = e3.head[e3.ins_h], e3.head[e3.ins_h] = e3.strstart), 0 !== n3 && e3.strstart - n3 <= e3.w_size - uu && (e3.match_length = xu(e3, n3)), e3.match_length >= lu)
94245
+ if (r3 = Hc._tr_tally(e3, e3.strstart - e3.match_start, e3.match_length - lu), e3.lookahead -= e3.match_length, e3.match_length <= e3.max_lazy_match && e3.lookahead >= lu) {
94190
94246
  e3.match_length--;
94191
94247
  do {
94192
- e3.strstart++, e3.ins_h = (e3.ins_h << e3.hash_shift ^ e3.window[e3.strstart + su - 1]) & e3.hash_mask, n3 = e3.prev[e3.strstart & e3.w_mask] = e3.head[e3.ins_h], e3.head[e3.ins_h] = e3.strstart;
94248
+ e3.strstart++, e3.ins_h = (e3.ins_h << e3.hash_shift ^ e3.window[e3.strstart + lu - 1]) & e3.hash_mask, n3 = e3.prev[e3.strstart & e3.w_mask] = e3.head[e3.ins_h], e3.head[e3.ins_h] = e3.strstart;
94193
94249
  } while (0 != --e3.match_length);
94194
94250
  e3.strstart++;
94195
94251
  } else
94196
94252
  e3.strstart += e3.match_length, e3.match_length = 0, e3.ins_h = e3.window[e3.strstart], e3.ins_h = (e3.ins_h << e3.hash_shift ^ e3.window[e3.strstart + 1]) & e3.hash_mask;
94197
94253
  else
94198
- r3 = Kc._tr_tally(e3, 0, e3.window[e3.strstart]), e3.lookahead--, e3.strstart++;
94199
- if (r3 && (yu(e3, false), 0 === e3.strm.avail_out))
94254
+ r3 = Hc._tr_tally(e3, 0, e3.window[e3.strstart]), e3.lookahead--, e3.strstart++;
94255
+ if (r3 && (ku(e3, false), 0 === e3.strm.avail_out))
94200
94256
  return 1;
94201
94257
  }
94202
- return e3.insert = e3.strstart < su - 1 ? e3.strstart : su - 1, 4 === t3 ? (yu(e3, true), 0 === e3.strm.avail_out ? 3 : 4) : e3.last_lit && (yu(e3, false), 0 === e3.strm.avail_out) ? 1 : 2;
94258
+ return e3.insert = e3.strstart < lu - 1 ? e3.strstart : lu - 1, 4 === t3 ? (ku(e3, true), 0 === e3.strm.avail_out ? 3 : 4) : e3.last_lit && (ku(e3, false), 0 === e3.strm.avail_out) ? 1 : 2;
94203
94259
  }
94204
- function Su(e3, t3) {
94260
+ function Cu(e3, t3) {
94205
94261
  for (var n3, r3, o3; ; ) {
94206
- if (e3.lookahead < cu) {
94207
- if (xu(e3), e3.lookahead < cu && t3 === Xc)
94262
+ if (e3.lookahead < uu) {
94263
+ if (_u(e3), e3.lookahead < uu && t3 === Qc)
94208
94264
  return 1;
94209
94265
  if (0 === e3.lookahead)
94210
94266
  break;
94211
94267
  }
94212
- if (n3 = 0, e3.lookahead >= su && (e3.ins_h = (e3.ins_h << e3.hash_shift ^ e3.window[e3.strstart + su - 1]) & e3.hash_mask, n3 = e3.prev[e3.strstart & e3.w_mask] = e3.head[e3.ins_h], e3.head[e3.ins_h] = e3.strstart), e3.prev_length = e3.match_length, e3.prev_match = e3.match_start, e3.match_length = su - 1, 0 !== n3 && e3.prev_length < e3.max_lazy_match && e3.strstart - n3 <= e3.w_size - cu && (e3.match_length = vu(e3, n3), e3.match_length <= 5 && (1 === e3.strategy || e3.match_length === su && e3.strstart - e3.match_start > 4096) && (e3.match_length = su - 1)), e3.prev_length >= su && e3.match_length <= e3.prev_length) {
94213
- o3 = e3.strstart + e3.lookahead - su, r3 = Kc._tr_tally(e3, e3.strstart - 1 - e3.prev_match, e3.prev_length - su), e3.lookahead -= e3.prev_length - 1, e3.prev_length -= 2;
94268
+ if (n3 = 0, e3.lookahead >= lu && (e3.ins_h = (e3.ins_h << e3.hash_shift ^ e3.window[e3.strstart + lu - 1]) & e3.hash_mask, n3 = e3.prev[e3.strstart & e3.w_mask] = e3.head[e3.ins_h], e3.head[e3.ins_h] = e3.strstart), e3.prev_length = e3.match_length, e3.prev_match = e3.match_start, e3.match_length = lu - 1, 0 !== n3 && e3.prev_length < e3.max_lazy_match && e3.strstart - n3 <= e3.w_size - uu && (e3.match_length = xu(e3, n3), e3.match_length <= 5 && (1 === e3.strategy || e3.match_length === lu && e3.strstart - e3.match_start > 4096) && (e3.match_length = lu - 1)), e3.prev_length >= lu && e3.match_length <= e3.prev_length) {
94269
+ o3 = e3.strstart + e3.lookahead - lu, r3 = Hc._tr_tally(e3, e3.strstart - 1 - e3.prev_match, e3.prev_length - lu), e3.lookahead -= e3.prev_length - 1, e3.prev_length -= 2;
94214
94270
  do {
94215
- ++e3.strstart <= o3 && (e3.ins_h = (e3.ins_h << e3.hash_shift ^ e3.window[e3.strstart + su - 1]) & e3.hash_mask, n3 = e3.prev[e3.strstart & e3.w_mask] = e3.head[e3.ins_h], e3.head[e3.ins_h] = e3.strstart);
94271
+ ++e3.strstart <= o3 && (e3.ins_h = (e3.ins_h << e3.hash_shift ^ e3.window[e3.strstart + lu - 1]) & e3.hash_mask, n3 = e3.prev[e3.strstart & e3.w_mask] = e3.head[e3.ins_h], e3.head[e3.ins_h] = e3.strstart);
94216
94272
  } while (0 != --e3.prev_length);
94217
- if (e3.match_available = 0, e3.match_length = su - 1, e3.strstart++, r3 && (yu(e3, false), 0 === e3.strm.avail_out))
94273
+ if (e3.match_available = 0, e3.match_length = lu - 1, e3.strstart++, r3 && (ku(e3, false), 0 === e3.strm.avail_out))
94218
94274
  return 1;
94219
94275
  } else if (e3.match_available) {
94220
- if ((r3 = Kc._tr_tally(e3, 0, e3.window[e3.strstart - 1])) && yu(e3, false), e3.strstart++, e3.lookahead--, 0 === e3.strm.avail_out)
94276
+ if ((r3 = Hc._tr_tally(e3, 0, e3.window[e3.strstart - 1])) && ku(e3, false), e3.strstart++, e3.lookahead--, 0 === e3.strm.avail_out)
94221
94277
  return 1;
94222
94278
  } else
94223
94279
  e3.match_available = 1, e3.strstart++, e3.lookahead--;
94224
94280
  }
94225
- return e3.match_available && (r3 = Kc._tr_tally(e3, 0, e3.window[e3.strstart - 1]), e3.match_available = 0), e3.insert = e3.strstart < su - 1 ? e3.strstart : su - 1, 4 === t3 ? (yu(e3, true), 0 === e3.strm.avail_out ? 3 : 4) : e3.last_lit && (yu(e3, false), 0 === e3.strm.avail_out) ? 1 : 2;
94281
+ return e3.match_available && (r3 = Hc._tr_tally(e3, 0, e3.window[e3.strstart - 1]), e3.match_available = 0), e3.insert = e3.strstart < lu - 1 ? e3.strstart : lu - 1, 4 === t3 ? (ku(e3, true), 0 === e3.strm.avail_out ? 3 : 4) : e3.last_lit && (ku(e3, false), 0 === e3.strm.avail_out) ? 1 : 2;
94226
94282
  }
94227
- function Cu(e3, t3, n3, r3, o3) {
94283
+ function zu(e3, t3, n3, r3, o3) {
94228
94284
  this.good_length = e3, this.max_lazy = t3, this.nice_length = n3, this.max_chain = r3, this.func = o3;
94229
94285
  }
94230
- function zu() {
94231
- this.strm = null, this.status = 0, this.pending_buf = null, this.pending_buf_size = 0, this.pending_out = 0, this.pending = 0, this.wrap = 0, this.gzhead = null, this.gzindex = 0, this.method = tu, this.last_flush = -1, this.w_size = 0, this.w_bits = 0, this.w_mask = 0, this.window = null, this.window_size = 0, this.prev = null, this.head = null, this.ins_h = 0, this.hash_size = 0, this.hash_bits = 0, this.hash_mask = 0, this.hash_shift = 0, this.block_start = 0, this.match_length = 0, this.prev_match = 0, this.match_available = 0, this.strstart = 0, this.match_start = 0, this.lookahead = 0, this.prev_length = 0, this.max_chain_length = 0, this.max_lazy_match = 0, this.level = 0, this.strategy = 0, this.good_match = 0, this.nice_match = 0, this.dyn_ltree = new Zc.Buf16(2 * iu), this.dyn_dtree = new Zc.Buf16(2 * (2 * ru + 1)), this.bl_tree = new Zc.Buf16(2 * (2 * ou + 1)), gu(this.dyn_ltree), gu(this.dyn_dtree), gu(this.bl_tree), this.l_desc = null, this.d_desc = null, this.bl_desc = null, this.bl_count = new Zc.Buf16(au + 1), this.heap = new Zc.Buf16(2 * nu + 1), gu(this.heap), this.heap_len = 0, this.heap_max = 0, this.depth = new Zc.Buf16(2 * nu + 1), gu(this.depth), this.l_buf = 0, this.lit_bufsize = 0, this.last_lit = 0, this.d_buf = 0, this.opt_len = 0, this.static_len = 0, this.matches = 0, this.insert = 0, this.bi_buf = 0, this.bi_valid = 0;
94286
+ function Au() {
94287
+ this.strm = null, this.status = 0, this.pending_buf = null, this.pending_buf_size = 0, this.pending_out = 0, this.pending = 0, this.wrap = 0, this.gzhead = null, this.gzindex = 0, this.method = nu, this.last_flush = -1, this.w_size = 0, this.w_bits = 0, this.w_mask = 0, this.window = null, this.window_size = 0, this.prev = null, this.head = null, this.ins_h = 0, this.hash_size = 0, this.hash_bits = 0, this.hash_mask = 0, this.hash_shift = 0, this.block_start = 0, this.match_length = 0, this.prev_match = 0, this.match_available = 0, this.strstart = 0, this.match_start = 0, this.lookahead = 0, this.prev_length = 0, this.max_chain_length = 0, this.max_lazy_match = 0, this.level = 0, this.strategy = 0, this.good_match = 0, this.nice_match = 0, this.dyn_ltree = new Kc.Buf16(2 * au), this.dyn_dtree = new Kc.Buf16(2 * (2 * ou + 1)), this.bl_tree = new Kc.Buf16(2 * (2 * iu + 1)), bu(this.dyn_ltree), bu(this.dyn_dtree), bu(this.bl_tree), this.l_desc = null, this.d_desc = null, this.bl_desc = null, this.bl_count = new Kc.Buf16(su + 1), this.heap = new Kc.Buf16(2 * ru + 1), bu(this.heap), this.heap_len = 0, this.heap_max = 0, this.depth = new Kc.Buf16(2 * ru + 1), bu(this.depth), this.l_buf = 0, this.lit_bufsize = 0, this.last_lit = 0, this.d_buf = 0, this.opt_len = 0, this.static_len = 0, this.matches = 0, this.insert = 0, this.bi_buf = 0, this.bi_valid = 0;
94232
94288
  }
94233
- function Au(e3) {
94289
+ function Tu(e3) {
94234
94290
  var t3;
94235
- return e3 && e3.state ? (e3.total_in = e3.total_out = 0, e3.data_type = eu, (t3 = e3.state).pending = 0, t3.pending_out = 0, t3.wrap < 0 && (t3.wrap = -t3.wrap), t3.status = t3.wrap ? uu : du, e3.adler = 2 === t3.wrap ? 0 : 1, t3.last_flush = Xc, Kc._tr_init(t3), Qc) : mu(e3, Jc);
94291
+ return e3 && e3.state ? (e3.total_in = e3.total_out = 0, e3.data_type = tu, (t3 = e3.state).pending = 0, t3.pending_out = 0, t3.wrap < 0 && (t3.wrap = -t3.wrap), t3.status = t3.wrap ? hu : pu, e3.adler = 2 === t3.wrap ? 0 : 1, t3.last_flush = Qc, Hc._tr_init(t3), Jc) : fu(e3, eu);
94236
94292
  }
94237
- function Tu(e3) {
94238
- var t3, n3 = Au(e3);
94239
- return n3 === Qc && ((t3 = e3.state).window_size = 2 * t3.w_size, gu(t3.head), t3.max_lazy_match = Mc[t3.level].max_lazy, t3.good_match = Mc[t3.level].good_length, t3.nice_match = Mc[t3.level].nice_length, t3.max_chain_length = Mc[t3.level].max_chain, t3.strstart = 0, t3.block_start = 0, t3.lookahead = 0, t3.insert = 0, t3.match_length = t3.prev_length = su - 1, t3.match_available = 0, t3.ins_h = 0), n3;
94293
+ function Ou(e3) {
94294
+ var t3, n3 = Tu(e3);
94295
+ return n3 === Jc && ((t3 = e3.state).window_size = 2 * t3.w_size, bu(t3.head), t3.max_lazy_match = qc[t3.level].max_lazy, t3.good_match = qc[t3.level].good_length, t3.nice_match = qc[t3.level].nice_length, t3.max_chain_length = qc[t3.level].max_chain, t3.strstart = 0, t3.block_start = 0, t3.lookahead = 0, t3.insert = 0, t3.match_length = t3.prev_length = lu - 1, t3.match_available = 0, t3.ins_h = 0), n3;
94240
94296
  }
94241
- function Ou(e3, t3, n3, r3, o3, i3) {
94297
+ function Lu(e3, t3, n3, r3, o3, i3) {
94242
94298
  if (!e3)
94243
- return Jc;
94299
+ return eu;
94244
94300
  var a3 = 1;
94245
- if (-1 === t3 && (t3 = 6), r3 < 0 ? (a3 = 0, r3 = -r3) : r3 > 15 && (a3 = 2, r3 -= 16), o3 < 1 || o3 > 9 || n3 !== tu || r3 < 8 || r3 > 15 || t3 < 0 || t3 > 9 || i3 < 0 || i3 > 4)
94246
- return mu(e3, Jc);
94301
+ if (-1 === t3 && (t3 = 6), r3 < 0 ? (a3 = 0, r3 = -r3) : r3 > 15 && (a3 = 2, r3 -= 16), o3 < 1 || o3 > 9 || n3 !== nu || r3 < 8 || r3 > 15 || t3 < 0 || t3 > 9 || i3 < 0 || i3 > 4)
94302
+ return fu(e3, eu);
94247
94303
  8 === r3 && (r3 = 9);
94248
- var s3 = new zu();
94249
- return e3.state = s3, s3.strm = e3, s3.wrap = a3, s3.gzhead = null, s3.w_bits = r3, s3.w_size = 1 << s3.w_bits, s3.w_mask = s3.w_size - 1, s3.hash_bits = o3 + 7, s3.hash_size = 1 << s3.hash_bits, s3.hash_mask = s3.hash_size - 1, s3.hash_shift = ~~((s3.hash_bits + su - 1) / su), s3.window = new Zc.Buf8(2 * s3.w_size), s3.head = new Zc.Buf16(s3.hash_size), s3.prev = new Zc.Buf16(s3.w_size), s3.lit_bufsize = 1 << o3 + 6, s3.pending_buf_size = 4 * s3.lit_bufsize, s3.pending_buf = new Zc.Buf8(s3.pending_buf_size), s3.d_buf = 1 * s3.lit_bufsize, s3.l_buf = 3 * s3.lit_bufsize, s3.level = t3, s3.strategy = i3, s3.method = n3, Tu(e3);
94304
+ var s3 = new Au();
94305
+ return e3.state = s3, s3.strm = e3, s3.wrap = a3, s3.gzhead = null, s3.w_bits = r3, s3.w_size = 1 << s3.w_bits, s3.w_mask = s3.w_size - 1, s3.hash_bits = o3 + 7, s3.hash_size = 1 << s3.hash_bits, s3.hash_mask = s3.hash_size - 1, s3.hash_shift = ~~((s3.hash_bits + lu - 1) / lu), s3.window = new Kc.Buf8(2 * s3.w_size), s3.head = new Kc.Buf16(s3.hash_size), s3.prev = new Kc.Buf16(s3.w_size), s3.lit_bufsize = 1 << o3 + 6, s3.pending_buf_size = 4 * s3.lit_bufsize, s3.pending_buf = new Kc.Buf8(s3.pending_buf_size), s3.d_buf = 1 * s3.lit_bufsize, s3.l_buf = 3 * s3.lit_bufsize, s3.level = t3, s3.strategy = i3, s3.method = n3, Ou(e3);
94250
94306
  }
94251
- Mc = [new Cu(0, 0, 0, 0, function(e3, t3) {
94307
+ qc = [new zu(0, 0, 0, 0, function(e3, t3) {
94252
94308
  var n3 = 65535;
94253
94309
  for (n3 > e3.pending_buf_size - 5 && (n3 = e3.pending_buf_size - 5); ; ) {
94254
94310
  if (e3.lookahead <= 1) {
94255
- if (xu(e3), 0 === e3.lookahead && t3 === Xc)
94311
+ if (_u(e3), 0 === e3.lookahead && t3 === Qc)
94256
94312
  return 1;
94257
94313
  if (0 === e3.lookahead)
94258
94314
  break;
94259
94315
  }
94260
94316
  e3.strstart += e3.lookahead, e3.lookahead = 0;
94261
94317
  var r3 = e3.block_start + n3;
94262
- if ((0 === e3.strstart || e3.strstart >= r3) && (e3.lookahead = e3.strstart - r3, e3.strstart = r3, yu(e3, false), 0 === e3.strm.avail_out))
94318
+ if ((0 === e3.strstart || e3.strstart >= r3) && (e3.lookahead = e3.strstart - r3, e3.strstart = r3, ku(e3, false), 0 === e3.strm.avail_out))
94263
94319
  return 1;
94264
- if (e3.strstart - e3.block_start >= e3.w_size - cu && (yu(e3, false), 0 === e3.strm.avail_out))
94320
+ if (e3.strstart - e3.block_start >= e3.w_size - uu && (ku(e3, false), 0 === e3.strm.avail_out))
94265
94321
  return 1;
94266
94322
  }
94267
- return e3.insert = 0, 4 === t3 ? (yu(e3, true), 0 === e3.strm.avail_out ? 3 : 4) : (e3.strstart > e3.block_start && (yu(e3, false), e3.strm.avail_out), 1);
94268
- }), new Cu(4, 4, 8, 4, _u), new Cu(4, 5, 16, 8, _u), new Cu(4, 6, 32, 32, _u), new Cu(4, 4, 16, 16, Su), new Cu(8, 16, 32, 32, Su), new Cu(8, 16, 128, 128, Su), new Cu(8, 32, 128, 256, Su), new Cu(32, 128, 258, 1024, Su), new Cu(32, 258, 258, 4096, Su)], tc.deflateInit = function(e3, t3) {
94269
- return Ou(e3, t3, tu, 15, 8, 0);
94270
- }, tc.deflateInit2 = Ou, tc.deflateReset = Tu, tc.deflateResetKeep = Au, tc.deflateSetHeader = function(e3, t3) {
94271
- return e3 && e3.state ? 2 !== e3.state.wrap ? Jc : (e3.state.gzhead = t3, Qc) : Jc;
94272
- }, tc.deflate = function(e3, t3) {
94323
+ return e3.insert = 0, 4 === t3 ? (ku(e3, true), 0 === e3.strm.avail_out ? 3 : 4) : (e3.strstart > e3.block_start && (ku(e3, false), e3.strm.avail_out), 1);
94324
+ }), new zu(4, 4, 8, 4, Su), new zu(4, 5, 16, 8, Su), new zu(4, 6, 32, 32, Su), new zu(4, 4, 16, 16, Cu), new zu(8, 16, 32, 32, Cu), new zu(8, 16, 128, 128, Cu), new zu(8, 32, 128, 256, Cu), new zu(32, 128, 258, 1024, Cu), new zu(32, 258, 258, 4096, Cu)], nc.deflateInit = function(e3, t3) {
94325
+ return Lu(e3, t3, nu, 15, 8, 0);
94326
+ }, nc.deflateInit2 = Lu, nc.deflateReset = Ou, nc.deflateResetKeep = Tu, nc.deflateSetHeader = function(e3, t3) {
94327
+ return e3 && e3.state ? 2 !== e3.state.wrap ? eu : (e3.state.gzhead = t3, Jc) : eu;
94328
+ }, nc.deflate = function(e3, t3) {
94273
94329
  var n3, r3, o3, i3;
94274
94330
  if (!e3 || !e3.state || t3 > 5 || t3 < 0)
94275
- return e3 ? mu(e3, Jc) : Jc;
94276
- if (r3 = e3.state, !e3.output || !e3.input && 0 !== e3.avail_in || r3.status === pu && 4 !== t3)
94277
- return mu(e3, 0 === e3.avail_out ? -5 : Jc);
94278
- if (r3.strm = e3, n3 = r3.last_flush, r3.last_flush = t3, r3.status === uu)
94331
+ return e3 ? fu(e3, eu) : eu;
94332
+ if (r3 = e3.state, !e3.output || !e3.input && 0 !== e3.avail_in || r3.status === mu && 4 !== t3)
94333
+ return fu(e3, 0 === e3.avail_out ? -5 : eu);
94334
+ if (r3.strm = e3, n3 = r3.last_flush, r3.last_flush = t3, r3.status === hu)
94279
94335
  if (2 === r3.wrap)
94280
- e3.adler = 0, ku(r3, 31), ku(r3, 139), ku(r3, 8), r3.gzhead ? (ku(r3, (r3.gzhead.text ? 1 : 0) + (r3.gzhead.hcrc ? 2 : 0) + (r3.gzhead.extra ? 4 : 0) + (r3.gzhead.name ? 8 : 0) + (r3.gzhead.comment ? 16 : 0)), ku(r3, 255 & r3.gzhead.time), ku(r3, r3.gzhead.time >> 8 & 255), ku(r3, r3.gzhead.time >> 16 & 255), ku(r3, r3.gzhead.time >> 24 & 255), ku(r3, 9 === r3.level ? 2 : r3.strategy >= 2 || r3.level < 2 ? 4 : 0), ku(r3, 255 & r3.gzhead.os), r3.gzhead.extra && r3.gzhead.extra.length && (ku(r3, 255 & r3.gzhead.extra.length), ku(r3, r3.gzhead.extra.length >> 8 & 255)), r3.gzhead.hcrc && (e3.adler = Gc(e3.adler, r3.pending_buf, r3.pending, 0)), r3.gzindex = 0, r3.status = 69) : (ku(r3, 0), ku(r3, 0), ku(r3, 0), ku(r3, 0), ku(r3, 0), ku(r3, 9 === r3.level ? 2 : r3.strategy >= 2 || r3.level < 2 ? 4 : 0), ku(r3, 3), r3.status = du);
94336
+ e3.adler = 0, wu(r3, 31), wu(r3, 139), wu(r3, 8), r3.gzhead ? (wu(r3, (r3.gzhead.text ? 1 : 0) + (r3.gzhead.hcrc ? 2 : 0) + (r3.gzhead.extra ? 4 : 0) + (r3.gzhead.name ? 8 : 0) + (r3.gzhead.comment ? 16 : 0)), wu(r3, 255 & r3.gzhead.time), wu(r3, r3.gzhead.time >> 8 & 255), wu(r3, r3.gzhead.time >> 16 & 255), wu(r3, r3.gzhead.time >> 24 & 255), wu(r3, 9 === r3.level ? 2 : r3.strategy >= 2 || r3.level < 2 ? 4 : 0), wu(r3, 255 & r3.gzhead.os), r3.gzhead.extra && r3.gzhead.extra.length && (wu(r3, 255 & r3.gzhead.extra.length), wu(r3, r3.gzhead.extra.length >> 8 & 255)), r3.gzhead.hcrc && (e3.adler = Yc(e3.adler, r3.pending_buf, r3.pending, 0)), r3.gzindex = 0, r3.status = 69) : (wu(r3, 0), wu(r3, 0), wu(r3, 0), wu(r3, 0), wu(r3, 0), wu(r3, 9 === r3.level ? 2 : r3.strategy >= 2 || r3.level < 2 ? 4 : 0), wu(r3, 3), r3.status = pu);
94281
94337
  else {
94282
- var a3 = tu + (r3.w_bits - 8 << 4) << 8;
94283
- a3 |= (r3.strategy >= 2 || r3.level < 2 ? 0 : r3.level < 6 ? 1 : 6 === r3.level ? 2 : 3) << 6, 0 !== r3.strstart && (a3 |= 32), a3 += 31 - a3 % 31, r3.status = du, wu(r3, a3), 0 !== r3.strstart && (wu(r3, e3.adler >>> 16), wu(r3, 65535 & e3.adler)), e3.adler = 1;
94338
+ var a3 = nu + (r3.w_bits - 8 << 4) << 8;
94339
+ a3 |= (r3.strategy >= 2 || r3.level < 2 ? 0 : r3.level < 6 ? 1 : 6 === r3.level ? 2 : 3) << 6, 0 !== r3.strstart && (a3 |= 32), a3 += 31 - a3 % 31, r3.status = pu, vu(r3, a3), 0 !== r3.strstart && (vu(r3, e3.adler >>> 16), vu(r3, 65535 & e3.adler)), e3.adler = 1;
94284
94340
  }
94285
94341
  if (69 === r3.status)
94286
94342
  if (r3.gzhead.extra) {
94287
- for (o3 = r3.pending; r3.gzindex < (65535 & r3.gzhead.extra.length) && (r3.pending !== r3.pending_buf_size || (r3.gzhead.hcrc && r3.pending > o3 && (e3.adler = Gc(e3.adler, r3.pending_buf, r3.pending - o3, o3)), bu(e3), o3 = r3.pending, r3.pending !== r3.pending_buf_size)); )
94288
- ku(r3, 255 & r3.gzhead.extra[r3.gzindex]), r3.gzindex++;
94289
- r3.gzhead.hcrc && r3.pending > o3 && (e3.adler = Gc(e3.adler, r3.pending_buf, r3.pending - o3, o3)), r3.gzindex === r3.gzhead.extra.length && (r3.gzindex = 0, r3.status = 73);
94343
+ for (o3 = r3.pending; r3.gzindex < (65535 & r3.gzhead.extra.length) && (r3.pending !== r3.pending_buf_size || (r3.gzhead.hcrc && r3.pending > o3 && (e3.adler = Yc(e3.adler, r3.pending_buf, r3.pending - o3, o3)), yu(e3), o3 = r3.pending, r3.pending !== r3.pending_buf_size)); )
94344
+ wu(r3, 255 & r3.gzhead.extra[r3.gzindex]), r3.gzindex++;
94345
+ r3.gzhead.hcrc && r3.pending > o3 && (e3.adler = Yc(e3.adler, r3.pending_buf, r3.pending - o3, o3)), r3.gzindex === r3.gzhead.extra.length && (r3.gzindex = 0, r3.status = 73);
94290
94346
  } else
94291
94347
  r3.status = 73;
94292
94348
  if (73 === r3.status)
94293
94349
  if (r3.gzhead.name) {
94294
94350
  o3 = r3.pending;
94295
94351
  do {
94296
- if (r3.pending === r3.pending_buf_size && (r3.gzhead.hcrc && r3.pending > o3 && (e3.adler = Gc(e3.adler, r3.pending_buf, r3.pending - o3, o3)), bu(e3), o3 = r3.pending, r3.pending === r3.pending_buf_size)) {
94352
+ if (r3.pending === r3.pending_buf_size && (r3.gzhead.hcrc && r3.pending > o3 && (e3.adler = Yc(e3.adler, r3.pending_buf, r3.pending - o3, o3)), yu(e3), o3 = r3.pending, r3.pending === r3.pending_buf_size)) {
94297
94353
  i3 = 1;
94298
94354
  break;
94299
94355
  }
94300
- i3 = r3.gzindex < r3.gzhead.name.length ? 255 & r3.gzhead.name.charCodeAt(r3.gzindex++) : 0, ku(r3, i3);
94356
+ i3 = r3.gzindex < r3.gzhead.name.length ? 255 & r3.gzhead.name.charCodeAt(r3.gzindex++) : 0, wu(r3, i3);
94301
94357
  } while (0 !== i3);
94302
- r3.gzhead.hcrc && r3.pending > o3 && (e3.adler = Gc(e3.adler, r3.pending_buf, r3.pending - o3, o3)), 0 === i3 && (r3.gzindex = 0, r3.status = 91);
94358
+ r3.gzhead.hcrc && r3.pending > o3 && (e3.adler = Yc(e3.adler, r3.pending_buf, r3.pending - o3, o3)), 0 === i3 && (r3.gzindex = 0, r3.status = 91);
94303
94359
  } else
94304
94360
  r3.status = 91;
94305
94361
  if (91 === r3.status)
94306
94362
  if (r3.gzhead.comment) {
94307
94363
  o3 = r3.pending;
94308
94364
  do {
94309
- if (r3.pending === r3.pending_buf_size && (r3.gzhead.hcrc && r3.pending > o3 && (e3.adler = Gc(e3.adler, r3.pending_buf, r3.pending - o3, o3)), bu(e3), o3 = r3.pending, r3.pending === r3.pending_buf_size)) {
94365
+ if (r3.pending === r3.pending_buf_size && (r3.gzhead.hcrc && r3.pending > o3 && (e3.adler = Yc(e3.adler, r3.pending_buf, r3.pending - o3, o3)), yu(e3), o3 = r3.pending, r3.pending === r3.pending_buf_size)) {
94310
94366
  i3 = 1;
94311
94367
  break;
94312
94368
  }
94313
- i3 = r3.gzindex < r3.gzhead.comment.length ? 255 & r3.gzhead.comment.charCodeAt(r3.gzindex++) : 0, ku(r3, i3);
94369
+ i3 = r3.gzindex < r3.gzhead.comment.length ? 255 & r3.gzhead.comment.charCodeAt(r3.gzindex++) : 0, wu(r3, i3);
94314
94370
  } while (0 !== i3);
94315
- r3.gzhead.hcrc && r3.pending > o3 && (e3.adler = Gc(e3.adler, r3.pending_buf, r3.pending - o3, o3)), 0 === i3 && (r3.status = hu);
94371
+ r3.gzhead.hcrc && r3.pending > o3 && (e3.adler = Yc(e3.adler, r3.pending_buf, r3.pending - o3, o3)), 0 === i3 && (r3.status = du);
94316
94372
  } else
94317
- r3.status = hu;
94318
- if (r3.status === hu && (r3.gzhead.hcrc ? (r3.pending + 2 > r3.pending_buf_size && bu(e3), r3.pending + 2 <= r3.pending_buf_size && (ku(r3, 255 & e3.adler), ku(r3, e3.adler >> 8 & 255), e3.adler = 0, r3.status = du)) : r3.status = du), 0 !== r3.pending) {
94319
- if (bu(e3), 0 === e3.avail_out)
94320
- return r3.last_flush = -1, Qc;
94321
- } else if (0 === e3.avail_in && fu(t3) <= fu(n3) && 4 !== t3)
94322
- return mu(e3, -5);
94323
- if (r3.status === pu && 0 !== e3.avail_in)
94324
- return mu(e3, -5);
94325
- if (0 !== e3.avail_in || 0 !== r3.lookahead || t3 !== Xc && r3.status !== pu) {
94373
+ r3.status = du;
94374
+ if (r3.status === du && (r3.gzhead.hcrc ? (r3.pending + 2 > r3.pending_buf_size && yu(e3), r3.pending + 2 <= r3.pending_buf_size && (wu(r3, 255 & e3.adler), wu(r3, e3.adler >> 8 & 255), e3.adler = 0, r3.status = pu)) : r3.status = pu), 0 !== r3.pending) {
94375
+ if (yu(e3), 0 === e3.avail_out)
94376
+ return r3.last_flush = -1, Jc;
94377
+ } else if (0 === e3.avail_in && gu(t3) <= gu(n3) && 4 !== t3)
94378
+ return fu(e3, -5);
94379
+ if (r3.status === mu && 0 !== e3.avail_in)
94380
+ return fu(e3, -5);
94381
+ if (0 !== e3.avail_in || 0 !== r3.lookahead || t3 !== Qc && r3.status !== mu) {
94326
94382
  var s3 = 2 === r3.strategy ? function(e4, t4) {
94327
94383
  for (var n4; ; ) {
94328
- if (0 === e4.lookahead && (xu(e4), 0 === e4.lookahead)) {
94329
- if (t4 === Xc)
94384
+ if (0 === e4.lookahead && (_u(e4), 0 === e4.lookahead)) {
94385
+ if (t4 === Qc)
94330
94386
  return 1;
94331
94387
  break;
94332
94388
  }
94333
- if (e4.match_length = 0, n4 = Kc._tr_tally(e4, 0, e4.window[e4.strstart]), e4.lookahead--, e4.strstart++, n4 && (yu(e4, false), 0 === e4.strm.avail_out))
94389
+ if (e4.match_length = 0, n4 = Hc._tr_tally(e4, 0, e4.window[e4.strstart]), e4.lookahead--, e4.strstart++, n4 && (ku(e4, false), 0 === e4.strm.avail_out))
94334
94390
  return 1;
94335
94391
  }
94336
- return e4.insert = 0, 4 === t4 ? (yu(e4, true), 0 === e4.strm.avail_out ? 3 : 4) : e4.last_lit && (yu(e4, false), 0 === e4.strm.avail_out) ? 1 : 2;
94392
+ return e4.insert = 0, 4 === t4 ? (ku(e4, true), 0 === e4.strm.avail_out ? 3 : 4) : e4.last_lit && (ku(e4, false), 0 === e4.strm.avail_out) ? 1 : 2;
94337
94393
  }(r3, t3) : 3 === r3.strategy ? function(e4, t4) {
94338
94394
  for (var n4, r4, o4, i4, a4 = e4.window; ; ) {
94339
- if (e4.lookahead <= lu) {
94340
- if (xu(e4), e4.lookahead <= lu && t4 === Xc)
94395
+ if (e4.lookahead <= cu) {
94396
+ if (_u(e4), e4.lookahead <= cu && t4 === Qc)
94341
94397
  return 1;
94342
94398
  if (0 === e4.lookahead)
94343
94399
  break;
94344
94400
  }
94345
- if (e4.match_length = 0, e4.lookahead >= su && e4.strstart > 0 && (r4 = a4[o4 = e4.strstart - 1]) === a4[++o4] && r4 === a4[++o4] && r4 === a4[++o4]) {
94346
- i4 = e4.strstart + lu;
94401
+ if (e4.match_length = 0, e4.lookahead >= lu && e4.strstart > 0 && (r4 = a4[o4 = e4.strstart - 1]) === a4[++o4] && r4 === a4[++o4] && r4 === a4[++o4]) {
94402
+ i4 = e4.strstart + cu;
94347
94403
  do {
94348
94404
  } while (r4 === a4[++o4] && r4 === a4[++o4] && r4 === a4[++o4] && r4 === a4[++o4] && r4 === a4[++o4] && r4 === a4[++o4] && r4 === a4[++o4] && r4 === a4[++o4] && o4 < i4);
94349
- e4.match_length = lu - (i4 - o4), e4.match_length > e4.lookahead && (e4.match_length = e4.lookahead);
94405
+ e4.match_length = cu - (i4 - o4), e4.match_length > e4.lookahead && (e4.match_length = e4.lookahead);
94350
94406
  }
94351
- if (e4.match_length >= su ? (n4 = Kc._tr_tally(e4, 1, e4.match_length - su), e4.lookahead -= e4.match_length, e4.strstart += e4.match_length, e4.match_length = 0) : (n4 = Kc._tr_tally(e4, 0, e4.window[e4.strstart]), e4.lookahead--, e4.strstart++), n4 && (yu(e4, false), 0 === e4.strm.avail_out))
94407
+ if (e4.match_length >= lu ? (n4 = Hc._tr_tally(e4, 1, e4.match_length - lu), e4.lookahead -= e4.match_length, e4.strstart += e4.match_length, e4.match_length = 0) : (n4 = Hc._tr_tally(e4, 0, e4.window[e4.strstart]), e4.lookahead--, e4.strstart++), n4 && (ku(e4, false), 0 === e4.strm.avail_out))
94352
94408
  return 1;
94353
94409
  }
94354
- return e4.insert = 0, 4 === t4 ? (yu(e4, true), 0 === e4.strm.avail_out ? 3 : 4) : e4.last_lit && (yu(e4, false), 0 === e4.strm.avail_out) ? 1 : 2;
94355
- }(r3, t3) : Mc[r3.level].func(r3, t3);
94356
- if (3 !== s3 && 4 !== s3 || (r3.status = pu), 1 === s3 || 3 === s3)
94357
- return 0 === e3.avail_out && (r3.last_flush = -1), Qc;
94358
- if (2 === s3 && (1 === t3 ? Kc._tr_align(r3) : 5 !== t3 && (Kc._tr_stored_block(r3, 0, 0, false), 3 === t3 && (gu(r3.head), 0 === r3.lookahead && (r3.strstart = 0, r3.block_start = 0, r3.insert = 0))), bu(e3), 0 === e3.avail_out))
94359
- return r3.last_flush = -1, Qc;
94360
- }
94361
- return 4 !== t3 ? Qc : r3.wrap <= 0 ? 1 : (2 === r3.wrap ? (ku(r3, 255 & e3.adler), ku(r3, e3.adler >> 8 & 255), ku(r3, e3.adler >> 16 & 255), ku(r3, e3.adler >> 24 & 255), ku(r3, 255 & e3.total_in), ku(r3, e3.total_in >> 8 & 255), ku(r3, e3.total_in >> 16 & 255), ku(r3, e3.total_in >> 24 & 255)) : (wu(r3, e3.adler >>> 16), wu(r3, 65535 & e3.adler)), bu(e3), r3.wrap > 0 && (r3.wrap = -r3.wrap), 0 !== r3.pending ? Qc : 1);
94362
- }, tc.deflateEnd = function(e3) {
94410
+ return e4.insert = 0, 4 === t4 ? (ku(e4, true), 0 === e4.strm.avail_out ? 3 : 4) : e4.last_lit && (ku(e4, false), 0 === e4.strm.avail_out) ? 1 : 2;
94411
+ }(r3, t3) : qc[r3.level].func(r3, t3);
94412
+ if (3 !== s3 && 4 !== s3 || (r3.status = mu), 1 === s3 || 3 === s3)
94413
+ return 0 === e3.avail_out && (r3.last_flush = -1), Jc;
94414
+ if (2 === s3 && (1 === t3 ? Hc._tr_align(r3) : 5 !== t3 && (Hc._tr_stored_block(r3, 0, 0, false), 3 === t3 && (bu(r3.head), 0 === r3.lookahead && (r3.strstart = 0, r3.block_start = 0, r3.insert = 0))), yu(e3), 0 === e3.avail_out))
94415
+ return r3.last_flush = -1, Jc;
94416
+ }
94417
+ return 4 !== t3 ? Jc : r3.wrap <= 0 ? 1 : (2 === r3.wrap ? (wu(r3, 255 & e3.adler), wu(r3, e3.adler >> 8 & 255), wu(r3, e3.adler >> 16 & 255), wu(r3, e3.adler >> 24 & 255), wu(r3, 255 & e3.total_in), wu(r3, e3.total_in >> 8 & 255), wu(r3, e3.total_in >> 16 & 255), wu(r3, e3.total_in >> 24 & 255)) : (vu(r3, e3.adler >>> 16), vu(r3, 65535 & e3.adler)), yu(e3), r3.wrap > 0 && (r3.wrap = -r3.wrap), 0 !== r3.pending ? Jc : 1);
94418
+ }, nc.deflateEnd = function(e3) {
94363
94419
  var t3;
94364
- return e3 && e3.state ? (t3 = e3.state.status) !== uu && 69 !== t3 && 73 !== t3 && 91 !== t3 && t3 !== hu && t3 !== du && t3 !== pu ? mu(e3, Jc) : (e3.state = null, t3 === du ? mu(e3, -3) : Qc) : Jc;
94365
- }, tc.deflateSetDictionary = function(e3, t3) {
94420
+ return e3 && e3.state ? (t3 = e3.state.status) !== hu && 69 !== t3 && 73 !== t3 && 91 !== t3 && t3 !== du && t3 !== pu && t3 !== mu ? fu(e3, eu) : (e3.state = null, t3 === pu ? fu(e3, -3) : Jc) : eu;
94421
+ }, nc.deflateSetDictionary = function(e3, t3) {
94366
94422
  var n3, r3, o3, i3, a3, s3, l2, c2, u2 = t3.length;
94367
94423
  if (!e3 || !e3.state)
94368
- return Jc;
94369
- if (2 === (i3 = (n3 = e3.state).wrap) || 1 === i3 && n3.status !== uu || n3.lookahead)
94370
- return Jc;
94371
- for (1 === i3 && (e3.adler = Hc(e3.adler, t3, u2, 0)), n3.wrap = 0, u2 >= n3.w_size && (0 === i3 && (gu(n3.head), n3.strstart = 0, n3.block_start = 0, n3.insert = 0), c2 = new Zc.Buf8(n3.w_size), Zc.arraySet(c2, t3, u2 - n3.w_size, n3.w_size, 0), t3 = c2, u2 = n3.w_size), a3 = e3.avail_in, s3 = e3.next_in, l2 = e3.input, e3.avail_in = u2, e3.next_in = 0, e3.input = t3, xu(n3); n3.lookahead >= su; ) {
94372
- r3 = n3.strstart, o3 = n3.lookahead - (su - 1);
94424
+ return eu;
94425
+ if (2 === (i3 = (n3 = e3.state).wrap) || 1 === i3 && n3.status !== hu || n3.lookahead)
94426
+ return eu;
94427
+ for (1 === i3 && (e3.adler = Gc(e3.adler, t3, u2, 0)), n3.wrap = 0, u2 >= n3.w_size && (0 === i3 && (bu(n3.head), n3.strstart = 0, n3.block_start = 0, n3.insert = 0), c2 = new Kc.Buf8(n3.w_size), Kc.arraySet(c2, t3, u2 - n3.w_size, n3.w_size, 0), t3 = c2, u2 = n3.w_size), a3 = e3.avail_in, s3 = e3.next_in, l2 = e3.input, e3.avail_in = u2, e3.next_in = 0, e3.input = t3, _u(n3); n3.lookahead >= lu; ) {
94428
+ r3 = n3.strstart, o3 = n3.lookahead - (lu - 1);
94373
94429
  do {
94374
- n3.ins_h = (n3.ins_h << n3.hash_shift ^ n3.window[r3 + su - 1]) & n3.hash_mask, n3.prev[r3 & n3.w_mask] = n3.head[n3.ins_h], n3.head[n3.ins_h] = r3, r3++;
94430
+ n3.ins_h = (n3.ins_h << n3.hash_shift ^ n3.window[r3 + lu - 1]) & n3.hash_mask, n3.prev[r3 & n3.w_mask] = n3.head[n3.ins_h], n3.head[n3.ins_h] = r3, r3++;
94375
94431
  } while (--o3);
94376
- n3.strstart = r3, n3.lookahead = su - 1, xu(n3);
94432
+ n3.strstart = r3, n3.lookahead = lu - 1, _u(n3);
94377
94433
  }
94378
- return n3.strstart += n3.lookahead, n3.block_start = n3.strstart, n3.insert = n3.lookahead, n3.lookahead = 0, n3.match_length = n3.prev_length = su - 1, n3.match_available = 0, e3.next_in = s3, e3.input = l2, e3.avail_in = a3, n3.wrap = i3, Qc;
94379
- }, tc.deflateInfo = "pako deflate (from Nodeca project)";
94380
- var Lu = {}, Eu = Jl, Ru = true, Nu = true;
94434
+ return n3.strstart += n3.lookahead, n3.block_start = n3.strstart, n3.insert = n3.lookahead, n3.lookahead = 0, n3.match_length = n3.prev_length = lu - 1, n3.match_available = 0, e3.next_in = s3, e3.input = l2, e3.avail_in = a3, n3.wrap = i3, Jc;
94435
+ }, nc.deflateInfo = "pako deflate (from Nodeca project)";
94436
+ var Eu = {}, Ru = ec, Nu = true, ju = true;
94381
94437
  try {
94382
94438
  String.fromCharCode.apply(null, [0]);
94383
94439
  } catch (t3) {
94384
- Ru = false;
94440
+ Nu = false;
94385
94441
  }
94386
94442
  try {
94387
94443
  String.fromCharCode.apply(null, new Uint8Array(1));
94388
94444
  } catch (t3) {
94389
- Nu = false;
94445
+ ju = false;
94390
94446
  }
94391
- for (var ju = new Eu.Buf8(256), Iu = 0; Iu < 256; Iu++)
94392
- ju[Iu] = Iu >= 252 ? 6 : Iu >= 248 ? 5 : Iu >= 240 ? 4 : Iu >= 224 ? 3 : Iu >= 192 ? 2 : 1;
94393
- function Du(e3, t3) {
94394
- if (t3 < 65534 && (e3.subarray && Nu || !e3.subarray && Ru))
94395
- return String.fromCharCode.apply(null, Eu.shrinkBuf(e3, t3));
94447
+ for (var Iu = new Ru.Buf8(256), Du = 0; Du < 256; Du++)
94448
+ Iu[Du] = Du >= 252 ? 6 : Du >= 248 ? 5 : Du >= 240 ? 4 : Du >= 224 ? 3 : Du >= 192 ? 2 : 1;
94449
+ function Pu(e3, t3) {
94450
+ if (t3 < 65534 && (e3.subarray && ju || !e3.subarray && Nu))
94451
+ return String.fromCharCode.apply(null, Ru.shrinkBuf(e3, t3));
94396
94452
  for (var n3 = "", r3 = 0; r3 < t3; r3++)
94397
94453
  n3 += String.fromCharCode(e3[r3]);
94398
94454
  return n3;
94399
94455
  }
94400
- ju[254] = ju[254] = 1, Lu.string2buf = function(e3) {
94456
+ Iu[254] = Iu[254] = 1, Eu.string2buf = function(e3) {
94401
94457
  var t3, n3, r3, o3, i3, a3 = e3.length, s3 = 0;
94402
94458
  for (o3 = 0; o3 < a3; o3++)
94403
94459
  55296 == (64512 & (n3 = e3.charCodeAt(o3))) && o3 + 1 < a3 && 56320 == (64512 & (r3 = e3.charCodeAt(o3 + 1))) && (n3 = 65536 + (n3 - 55296 << 10) + (r3 - 56320), o3++), s3 += n3 < 128 ? 1 : n3 < 2048 ? 2 : n3 < 65536 ? 3 : 4;
94404
- for (t3 = new Eu.Buf8(s3), i3 = 0, o3 = 0; i3 < s3; o3++)
94460
+ for (t3 = new Ru.Buf8(s3), i3 = 0, o3 = 0; i3 < s3; o3++)
94405
94461
  55296 == (64512 & (n3 = e3.charCodeAt(o3))) && o3 + 1 < a3 && 56320 == (64512 & (r3 = e3.charCodeAt(o3 + 1))) && (n3 = 65536 + (n3 - 55296 << 10) + (r3 - 56320), o3++), n3 < 128 ? t3[i3++] = n3 : n3 < 2048 ? (t3[i3++] = 192 | n3 >>> 6, t3[i3++] = 128 | 63 & n3) : n3 < 65536 ? (t3[i3++] = 224 | n3 >>> 12, t3[i3++] = 128 | n3 >>> 6 & 63, t3[i3++] = 128 | 63 & n3) : (t3[i3++] = 240 | n3 >>> 18, t3[i3++] = 128 | n3 >>> 12 & 63, t3[i3++] = 128 | n3 >>> 6 & 63, t3[i3++] = 128 | 63 & n3);
94406
94462
  return t3;
94407
- }, Lu.buf2binstring = function(e3) {
94408
- return Du(e3, e3.length);
94409
- }, Lu.binstring2buf = function(e3) {
94410
- for (var t3 = new Eu.Buf8(e3.length), n3 = 0, r3 = t3.length; n3 < r3; n3++)
94463
+ }, Eu.buf2binstring = function(e3) {
94464
+ return Pu(e3, e3.length);
94465
+ }, Eu.binstring2buf = function(e3) {
94466
+ for (var t3 = new Ru.Buf8(e3.length), n3 = 0, r3 = t3.length; n3 < r3; n3++)
94411
94467
  t3[n3] = e3.charCodeAt(n3);
94412
94468
  return t3;
94413
- }, Lu.buf2string = function(e3, t3) {
94469
+ }, Eu.buf2string = function(e3, t3) {
94414
94470
  var n3, r3, o3, i3, a3 = t3 || e3.length, s3 = new Array(2 * a3);
94415
94471
  for (r3 = 0, n3 = 0; n3 < a3; )
94416
94472
  if ((o3 = e3[n3++]) < 128)
94417
94473
  s3[r3++] = o3;
94418
- else if ((i3 = ju[o3]) > 4)
94474
+ else if ((i3 = Iu[o3]) > 4)
94419
94475
  s3[r3++] = 65533, n3 += i3 - 1;
94420
94476
  else {
94421
94477
  for (o3 &= 2 === i3 ? 31 : 3 === i3 ? 15 : 7; i3 > 1 && n3 < a3; )
94422
94478
  o3 = o3 << 6 | 63 & e3[n3++], i3--;
94423
94479
  i3 > 1 ? s3[r3++] = 65533 : o3 < 65536 ? s3[r3++] = o3 : (o3 -= 65536, s3[r3++] = 55296 | o3 >> 10 & 1023, s3[r3++] = 56320 | 1023 & o3);
94424
94480
  }
94425
- return Du(s3, r3);
94426
- }, Lu.utf8border = function(e3, t3) {
94481
+ return Pu(s3, r3);
94482
+ }, Eu.utf8border = function(e3, t3) {
94427
94483
  var n3;
94428
94484
  for ((t3 = t3 || e3.length) > e3.length && (t3 = e3.length), n3 = t3 - 1; n3 >= 0 && 128 == (192 & e3[n3]); )
94429
94485
  n3--;
94430
- return n3 < 0 || 0 === n3 ? t3 : n3 + ju[e3[n3]] > t3 ? n3 : t3;
94486
+ return n3 < 0 || 0 === n3 ? t3 : n3 + Iu[e3[n3]] > t3 ? n3 : t3;
94431
94487
  };
94432
- var Pu = function() {
94488
+ var Bu = function() {
94433
94489
  this.input = null, this.next_in = 0, this.avail_in = 0, this.total_in = 0, this.output = null, this.next_out = 0, this.avail_out = 0, this.total_out = 0, this.msg = "", this.state = null, this.data_type = 2, this.adler = 0;
94434
- }, Bu = tc, Fu = Jl, Uu = Lu, Mu = Vc, qu = Pu, Wu = Object.prototype.toString, $u = 0, Vu = -1, Zu = 0, Ku = 8;
94435
- function Hu(e3) {
94436
- if (!(this instanceof Hu))
94437
- return new Hu(e3);
94438
- this.options = Fu.assign({ level: Vu, method: Ku, chunkSize: 16384, windowBits: 15, memLevel: 8, strategy: Zu, to: "" }, e3 || {});
94490
+ }, Fu = nc, Uu = ec, Mu = Eu, qu = Zc, Wu = Bu, $u = Object.prototype.toString, Vu = 0, Zu = -1, Ku = 0, Hu = 8;
94491
+ function Gu(e3) {
94492
+ if (!(this instanceof Gu))
94493
+ return new Gu(e3);
94494
+ this.options = Uu.assign({ level: Zu, method: Hu, chunkSize: 16384, windowBits: 15, memLevel: 8, strategy: Ku, to: "" }, e3 || {});
94439
94495
  var t3 = this.options;
94440
- t3.raw && t3.windowBits > 0 ? t3.windowBits = -t3.windowBits : t3.gzip && t3.windowBits > 0 && t3.windowBits < 16 && (t3.windowBits += 16), this.err = 0, this.msg = "", this.ended = false, this.chunks = [], this.strm = new qu(), this.strm.avail_out = 0;
94441
- var n3 = Bu.deflateInit2(this.strm, t3.level, t3.method, t3.windowBits, t3.memLevel, t3.strategy);
94442
- if (n3 !== $u)
94443
- throw new Error(Mu[n3]);
94444
- if (t3.header && Bu.deflateSetHeader(this.strm, t3.header), t3.dictionary) {
94496
+ t3.raw && t3.windowBits > 0 ? t3.windowBits = -t3.windowBits : t3.gzip && t3.windowBits > 0 && t3.windowBits < 16 && (t3.windowBits += 16), this.err = 0, this.msg = "", this.ended = false, this.chunks = [], this.strm = new Wu(), this.strm.avail_out = 0;
94497
+ var n3 = Fu.deflateInit2(this.strm, t3.level, t3.method, t3.windowBits, t3.memLevel, t3.strategy);
94498
+ if (n3 !== Vu)
94499
+ throw new Error(qu[n3]);
94500
+ if (t3.header && Fu.deflateSetHeader(this.strm, t3.header), t3.dictionary) {
94445
94501
  var r3;
94446
- if (r3 = "string" == typeof t3.dictionary ? Uu.string2buf(t3.dictionary) : "[object ArrayBuffer]" === Wu.call(t3.dictionary) ? new Uint8Array(t3.dictionary) : t3.dictionary, (n3 = Bu.deflateSetDictionary(this.strm, r3)) !== $u)
94447
- throw new Error(Mu[n3]);
94502
+ if (r3 = "string" == typeof t3.dictionary ? Mu.string2buf(t3.dictionary) : "[object ArrayBuffer]" === $u.call(t3.dictionary) ? new Uint8Array(t3.dictionary) : t3.dictionary, (n3 = Fu.deflateSetDictionary(this.strm, r3)) !== Vu)
94503
+ throw new Error(qu[n3]);
94448
94504
  this._dict_set = true;
94449
94505
  }
94450
94506
  }
94451
- function Gu(e3, t3) {
94452
- var n3 = new Hu(t3);
94507
+ function Yu(e3, t3) {
94508
+ var n3 = new Gu(t3);
94453
94509
  if (n3.push(e3, true), n3.err)
94454
- throw n3.msg || Mu[n3.err];
94510
+ throw n3.msg || qu[n3.err];
94455
94511
  return n3.result;
94456
94512
  }
94457
- Hu.prototype.push = function(e3, t3) {
94513
+ Gu.prototype.push = function(e3, t3) {
94458
94514
  var n3, r3, o3 = this.strm, i3 = this.options.chunkSize;
94459
94515
  if (this.ended)
94460
94516
  return false;
94461
- r3 = t3 === ~~t3 ? t3 : true === t3 ? 4 : 0, "string" == typeof e3 ? o3.input = Uu.string2buf(e3) : "[object ArrayBuffer]" === Wu.call(e3) ? o3.input = new Uint8Array(e3) : o3.input = e3, o3.next_in = 0, o3.avail_in = o3.input.length;
94517
+ r3 = t3 === ~~t3 ? t3 : true === t3 ? 4 : 0, "string" == typeof e3 ? o3.input = Mu.string2buf(e3) : "[object ArrayBuffer]" === $u.call(e3) ? o3.input = new Uint8Array(e3) : o3.input = e3, o3.next_in = 0, o3.avail_in = o3.input.length;
94462
94518
  do {
94463
- if (0 === o3.avail_out && (o3.output = new Fu.Buf8(i3), o3.next_out = 0, o3.avail_out = i3), 1 !== (n3 = Bu.deflate(o3, r3)) && n3 !== $u)
94519
+ if (0 === o3.avail_out && (o3.output = new Uu.Buf8(i3), o3.next_out = 0, o3.avail_out = i3), 1 !== (n3 = Fu.deflate(o3, r3)) && n3 !== Vu)
94464
94520
  return this.onEnd(n3), this.ended = true, false;
94465
- 0 !== o3.avail_out && (0 !== o3.avail_in || 4 !== r3 && 2 !== r3) || ("string" === this.options.to ? this.onData(Uu.buf2binstring(Fu.shrinkBuf(o3.output, o3.next_out))) : this.onData(Fu.shrinkBuf(o3.output, o3.next_out)));
94521
+ 0 !== o3.avail_out && (0 !== o3.avail_in || 4 !== r3 && 2 !== r3) || ("string" === this.options.to ? this.onData(Mu.buf2binstring(Uu.shrinkBuf(o3.output, o3.next_out))) : this.onData(Uu.shrinkBuf(o3.output, o3.next_out)));
94466
94522
  } while ((o3.avail_in > 0 || 0 === o3.avail_out) && 1 !== n3);
94467
- return 4 === r3 ? (n3 = Bu.deflateEnd(this.strm), this.onEnd(n3), this.ended = true, n3 === $u) : 2 !== r3 || (this.onEnd($u), o3.avail_out = 0, true);
94468
- }, Hu.prototype.onData = function(e3) {
94523
+ return 4 === r3 ? (n3 = Fu.deflateEnd(this.strm), this.onEnd(n3), this.ended = true, n3 === Vu) : 2 !== r3 || (this.onEnd(Vu), o3.avail_out = 0, true);
94524
+ }, Gu.prototype.onData = function(e3) {
94469
94525
  this.chunks.push(e3);
94470
- }, Hu.prototype.onEnd = function(e3) {
94471
- e3 === $u && ("string" === this.options.to ? this.result = this.chunks.join("") : this.result = Fu.flattenChunks(this.chunks)), this.chunks = [], this.err = e3, this.msg = this.strm.msg;
94472
- }, ec.Deflate = Hu, ec.deflate = Gu, ec.deflateRaw = function(e3, t3) {
94473
- return (t3 = t3 || {}).raw = true, Gu(e3, t3);
94474
- }, ec.gzip = function(e3, t3) {
94475
- return (t3 = t3 || {}).gzip = true, Gu(e3, t3);
94526
+ }, Gu.prototype.onEnd = function(e3) {
94527
+ e3 === Vu && ("string" === this.options.to ? this.result = this.chunks.join("") : this.result = Uu.flattenChunks(this.chunks)), this.chunks = [], this.err = e3, this.msg = this.strm.msg;
94528
+ }, tc.Deflate = Gu, tc.deflate = Yu, tc.deflateRaw = function(e3, t3) {
94529
+ return (t3 = t3 || {}).raw = true, Yu(e3, t3);
94530
+ }, tc.gzip = function(e3, t3) {
94531
+ return (t3 = t3 || {}).gzip = true, Yu(e3, t3);
94476
94532
  };
94477
- var Yu = {}, Xu = {}, Qu = Jl, Ju = [3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 0, 0], eh = [16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 18, 18, 18, 18, 19, 19, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 16, 72, 78], th = [1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577, 0, 0], nh = [16, 16, 16, 16, 17, 17, 18, 18, 19, 19, 20, 20, 21, 21, 22, 22, 23, 23, 24, 24, 25, 25, 26, 26, 27, 27, 28, 28, 29, 29, 64, 64], rh = Jl, oh = qc, ih = $c, ah = function(e3, t3) {
94533
+ var Xu = {}, Qu = {}, Ju = ec, eh = [3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 0, 0], th = [16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 18, 18, 18, 18, 19, 19, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 16, 72, 78], nh = [1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577, 0, 0], rh = [16, 16, 16, 16, 17, 17, 18, 18, 19, 19, 20, 20, 21, 21, 22, 22, 23, 23, 24, 24, 25, 25, 26, 26, 27, 27, 28, 28, 29, 29, 64, 64], oh = ec, ih = Wc, ah = Vc, sh = function(e3, t3) {
94478
94534
  var n3, r3, o3, i3, a3, s3, l2, c2, u2, h2, d2, p2, m2, f2, g2, b2, y2, k2, w2, v2, x2, _2, S2, C2, z2;
94479
94535
  n3 = e3.state, r3 = e3.next_in, C2 = e3.input, o3 = r3 + (e3.avail_in - 5), i3 = e3.next_out, z2 = e3.output, a3 = i3 - (t3 - e3.avail_out), s3 = i3 + (e3.avail_out - 257), l2 = n3.dmax, c2 = n3.wsize, u2 = n3.whave, h2 = n3.wnext, d2 = n3.window, p2 = n3.hold, m2 = n3.bits, f2 = n3.lencode, g2 = n3.distcode, b2 = (1 << n3.lenbits) - 1, y2 = (1 << n3.distbits) - 1;
94480
94536
  e:
@@ -94563,8 +94619,8 @@ var require_processPagePollCjs = __commonJS({
94563
94619
  }
94564
94620
  } while (r3 < o3 && i3 < s3);
94565
94621
  r3 -= v2 = m2 >> 3, p2 &= (1 << (m2 -= v2 << 3)) - 1, e3.next_in = r3, e3.next_out = i3, e3.avail_in = r3 < o3 ? o3 - r3 + 5 : 5 - (r3 - o3), e3.avail_out = i3 < s3 ? s3 - i3 + 257 : 257 - (i3 - s3), n3.hold = p2, n3.bits = m2;
94566
- }, sh = function(e3, t3, n3, r3, o3, i3, a3, s3) {
94567
- var l2, c2, u2, h2, d2, p2, m2, f2, g2, b2 = s3.bits, y2 = 0, k2 = 0, w2 = 0, v2 = 0, x2 = 0, _2 = 0, S2 = 0, C2 = 0, z2 = 0, A2 = 0, T2 = null, O2 = 0, L2 = new Qu.Buf16(16), E2 = new Qu.Buf16(16), R2 = null, N2 = 0;
94622
+ }, lh = function(e3, t3, n3, r3, o3, i3, a3, s3) {
94623
+ var l2, c2, u2, h2, d2, p2, m2, f2, g2, b2 = s3.bits, y2 = 0, k2 = 0, w2 = 0, v2 = 0, x2 = 0, _2 = 0, S2 = 0, C2 = 0, z2 = 0, A2 = 0, T2 = null, O2 = 0, L2 = new Ju.Buf16(16), E2 = new Ju.Buf16(16), R2 = null, N2 = 0;
94568
94624
  for (y2 = 0; y2 <= 15; y2++)
94569
94625
  L2[y2] = 0;
94570
94626
  for (k2 = 0; k2 < r3; k2++)
@@ -94584,7 +94640,7 @@ var require_processPagePollCjs = __commonJS({
94584
94640
  E2[y2 + 1] = E2[y2] + L2[y2];
94585
94641
  for (k2 = 0; k2 < r3; k2++)
94586
94642
  0 !== t3[n3 + k2] && (a3[E2[t3[n3 + k2]]++] = k2);
94587
- if (0 === e3 ? (T2 = R2 = a3, p2 = 19) : 1 === e3 ? (T2 = Ju, O2 -= 257, R2 = eh, N2 -= 257, p2 = 256) : (T2 = th, R2 = nh, p2 = -1), A2 = 0, k2 = 0, y2 = w2, d2 = i3, _2 = x2, S2 = 0, u2 = -1, h2 = (z2 = 1 << x2) - 1, 1 === e3 && z2 > 852 || 2 === e3 && z2 > 592)
94643
+ if (0 === e3 ? (T2 = R2 = a3, p2 = 19) : 1 === e3 ? (T2 = eh, O2 -= 257, R2 = th, N2 -= 257, p2 = 256) : (T2 = nh, R2 = rh, p2 = -1), A2 = 0, k2 = 0, y2 = w2, d2 = i3, _2 = x2, S2 = 0, u2 = -1, h2 = (z2 = 1 << x2) - 1, 1 === e3 && z2 > 852 || 2 === e3 && z2 > 592)
94588
94644
  return 1;
94589
94645
  for (; ; ) {
94590
94646
  m2 = y2 - S2, a3[k2] < p2 ? (f2 = 0, g2 = a3[k2]) : a3[k2] > p2 ? (f2 = R2[N2 + a3[k2]], g2 = T2[O2 + a3[k2]]) : (f2 = 96, g2 = 0), l2 = 1 << y2 - S2, w2 = c2 = 1 << _2;
@@ -94607,34 +94663,34 @@ var require_processPagePollCjs = __commonJS({
94607
94663
  }
94608
94664
  }
94609
94665
  return 0 !== A2 && (o3[d2 + A2] = y2 - S2 << 24 | 64 << 16 | 0), s3.bits = x2, 0;
94610
- }, lh = 0, ch = -2, uh = 1, hh = 12, dh = 30, ph = 852, mh = 592;
94611
- function fh(e3) {
94666
+ }, ch = 0, uh = -2, hh = 1, dh = 12, ph = 30, mh = 852, fh = 592;
94667
+ function gh(e3) {
94612
94668
  return (e3 >>> 24 & 255) + (e3 >>> 8 & 65280) + ((65280 & e3) << 8) + ((255 & e3) << 24);
94613
94669
  }
94614
- function gh() {
94615
- this.mode = 0, this.last = false, this.wrap = 0, this.havedict = false, this.flags = 0, this.dmax = 0, this.check = 0, this.total = 0, this.head = null, this.wbits = 0, this.wsize = 0, this.whave = 0, this.wnext = 0, this.window = null, this.hold = 0, this.bits = 0, this.length = 0, this.offset = 0, this.extra = 0, this.lencode = null, this.distcode = null, this.lenbits = 0, this.distbits = 0, this.ncode = 0, this.nlen = 0, this.ndist = 0, this.have = 0, this.next = null, this.lens = new rh.Buf16(320), this.work = new rh.Buf16(288), this.lendyn = null, this.distdyn = null, this.sane = 0, this.back = 0, this.was = 0;
94670
+ function bh() {
94671
+ this.mode = 0, this.last = false, this.wrap = 0, this.havedict = false, this.flags = 0, this.dmax = 0, this.check = 0, this.total = 0, this.head = null, this.wbits = 0, this.wsize = 0, this.whave = 0, this.wnext = 0, this.window = null, this.hold = 0, this.bits = 0, this.length = 0, this.offset = 0, this.extra = 0, this.lencode = null, this.distcode = null, this.lenbits = 0, this.distbits = 0, this.ncode = 0, this.nlen = 0, this.ndist = 0, this.have = 0, this.next = null, this.lens = new oh.Buf16(320), this.work = new oh.Buf16(288), this.lendyn = null, this.distdyn = null, this.sane = 0, this.back = 0, this.was = 0;
94616
94672
  }
94617
- function bh(e3) {
94673
+ function yh(e3) {
94618
94674
  var t3;
94619
- return e3 && e3.state ? (t3 = e3.state, e3.total_in = e3.total_out = t3.total = 0, e3.msg = "", t3.wrap && (e3.adler = 1 & t3.wrap), t3.mode = uh, t3.last = 0, t3.havedict = 0, t3.dmax = 32768, t3.head = null, t3.hold = 0, t3.bits = 0, t3.lencode = t3.lendyn = new rh.Buf32(ph), t3.distcode = t3.distdyn = new rh.Buf32(mh), t3.sane = 1, t3.back = -1, lh) : ch;
94675
+ return e3 && e3.state ? (t3 = e3.state, e3.total_in = e3.total_out = t3.total = 0, e3.msg = "", t3.wrap && (e3.adler = 1 & t3.wrap), t3.mode = hh, t3.last = 0, t3.havedict = 0, t3.dmax = 32768, t3.head = null, t3.hold = 0, t3.bits = 0, t3.lencode = t3.lendyn = new oh.Buf32(mh), t3.distcode = t3.distdyn = new oh.Buf32(fh), t3.sane = 1, t3.back = -1, ch) : uh;
94620
94676
  }
94621
- function yh(e3) {
94677
+ function kh(e3) {
94622
94678
  var t3;
94623
- return e3 && e3.state ? ((t3 = e3.state).wsize = 0, t3.whave = 0, t3.wnext = 0, bh(e3)) : ch;
94679
+ return e3 && e3.state ? ((t3 = e3.state).wsize = 0, t3.whave = 0, t3.wnext = 0, yh(e3)) : uh;
94624
94680
  }
94625
- function kh(e3, t3) {
94681
+ function wh(e3, t3) {
94626
94682
  var n3, r3;
94627
- return e3 && e3.state ? (r3 = e3.state, t3 < 0 ? (n3 = 0, t3 = -t3) : (n3 = 1 + (t3 >> 4), t3 < 48 && (t3 &= 15)), t3 && (t3 < 8 || t3 > 15) ? ch : (null !== r3.window && r3.wbits !== t3 && (r3.window = null), r3.wrap = n3, r3.wbits = t3, yh(e3))) : ch;
94683
+ return e3 && e3.state ? (r3 = e3.state, t3 < 0 ? (n3 = 0, t3 = -t3) : (n3 = 1 + (t3 >> 4), t3 < 48 && (t3 &= 15)), t3 && (t3 < 8 || t3 > 15) ? uh : (null !== r3.window && r3.wbits !== t3 && (r3.window = null), r3.wrap = n3, r3.wbits = t3, kh(e3))) : uh;
94628
94684
  }
94629
- function wh(e3, t3) {
94685
+ function vh(e3, t3) {
94630
94686
  var n3, r3;
94631
- return e3 ? (r3 = new gh(), e3.state = r3, r3.window = null, (n3 = kh(e3, t3)) !== lh && (e3.state = null), n3) : ch;
94687
+ return e3 ? (r3 = new bh(), e3.state = r3, r3.window = null, (n3 = wh(e3, t3)) !== ch && (e3.state = null), n3) : uh;
94632
94688
  }
94633
- var vh, xh, _h = true;
94634
- function Sh(e3) {
94635
- if (_h) {
94689
+ var xh, _h, Sh = true;
94690
+ function Ch(e3) {
94691
+ if (Sh) {
94636
94692
  var t3;
94637
- for (vh = new rh.Buf32(512), xh = new rh.Buf32(32), t3 = 0; t3 < 144; )
94693
+ for (xh = new oh.Buf32(512), _h = new oh.Buf32(32), t3 = 0; t3 < 144; )
94638
94694
  e3.lens[t3++] = 8;
94639
94695
  for (; t3 < 256; )
94640
94696
  e3.lens[t3++] = 9;
@@ -94642,27 +94698,27 @@ var require_processPagePollCjs = __commonJS({
94642
94698
  e3.lens[t3++] = 7;
94643
94699
  for (; t3 < 288; )
94644
94700
  e3.lens[t3++] = 8;
94645
- for (sh(1, e3.lens, 0, 288, vh, 0, e3.work, { bits: 9 }), t3 = 0; t3 < 32; )
94701
+ for (lh(1, e3.lens, 0, 288, xh, 0, e3.work, { bits: 9 }), t3 = 0; t3 < 32; )
94646
94702
  e3.lens[t3++] = 5;
94647
- sh(2, e3.lens, 0, 32, xh, 0, e3.work, { bits: 5 }), _h = false;
94703
+ lh(2, e3.lens, 0, 32, _h, 0, e3.work, { bits: 5 }), Sh = false;
94648
94704
  }
94649
- e3.lencode = vh, e3.lenbits = 9, e3.distcode = xh, e3.distbits = 5;
94705
+ e3.lencode = xh, e3.lenbits = 9, e3.distcode = _h, e3.distbits = 5;
94650
94706
  }
94651
- function Ch(e3, t3, n3, r3) {
94707
+ function zh(e3, t3, n3, r3) {
94652
94708
  var o3, i3 = e3.state;
94653
- return null === i3.window && (i3.wsize = 1 << i3.wbits, i3.wnext = 0, i3.whave = 0, i3.window = new rh.Buf8(i3.wsize)), r3 >= i3.wsize ? (rh.arraySet(i3.window, t3, n3 - i3.wsize, i3.wsize, 0), i3.wnext = 0, i3.whave = i3.wsize) : ((o3 = i3.wsize - i3.wnext) > r3 && (o3 = r3), rh.arraySet(i3.window, t3, n3 - r3, o3, i3.wnext), (r3 -= o3) ? (rh.arraySet(i3.window, t3, n3 - r3, r3, 0), i3.wnext = r3, i3.whave = i3.wsize) : (i3.wnext += o3, i3.wnext === i3.wsize && (i3.wnext = 0), i3.whave < i3.wsize && (i3.whave += o3))), 0;
94709
+ return null === i3.window && (i3.wsize = 1 << i3.wbits, i3.wnext = 0, i3.whave = 0, i3.window = new oh.Buf8(i3.wsize)), r3 >= i3.wsize ? (oh.arraySet(i3.window, t3, n3 - i3.wsize, i3.wsize, 0), i3.wnext = 0, i3.whave = i3.wsize) : ((o3 = i3.wsize - i3.wnext) > r3 && (o3 = r3), oh.arraySet(i3.window, t3, n3 - r3, o3, i3.wnext), (r3 -= o3) ? (oh.arraySet(i3.window, t3, n3 - r3, r3, 0), i3.wnext = r3, i3.whave = i3.wsize) : (i3.wnext += o3, i3.wnext === i3.wsize && (i3.wnext = 0), i3.whave < i3.wsize && (i3.whave += o3))), 0;
94654
94710
  }
94655
- Xu.inflateReset = yh, Xu.inflateReset2 = kh, Xu.inflateResetKeep = bh, Xu.inflateInit = function(e3) {
94656
- return wh(e3, 15);
94657
- }, Xu.inflateInit2 = wh, Xu.inflate = function(e3, t3) {
94658
- var n3, r3, o3, i3, a3, s3, l2, c2, u2, h2, d2, p2, m2, f2, g2, b2, y2, k2, w2, v2, x2, _2, S2, C2, z2 = 0, A2 = new rh.Buf8(4), T2 = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
94711
+ Qu.inflateReset = kh, Qu.inflateReset2 = wh, Qu.inflateResetKeep = yh, Qu.inflateInit = function(e3) {
94712
+ return vh(e3, 15);
94713
+ }, Qu.inflateInit2 = vh, Qu.inflate = function(e3, t3) {
94714
+ var n3, r3, o3, i3, a3, s3, l2, c2, u2, h2, d2, p2, m2, f2, g2, b2, y2, k2, w2, v2, x2, _2, S2, C2, z2 = 0, A2 = new oh.Buf8(4), T2 = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
94659
94715
  if (!e3 || !e3.state || !e3.output || !e3.input && 0 !== e3.avail_in)
94660
- return ch;
94661
- (n3 = e3.state).mode === hh && (n3.mode = 13), a3 = e3.next_out, o3 = e3.output, l2 = e3.avail_out, i3 = e3.next_in, r3 = e3.input, s3 = e3.avail_in, c2 = n3.hold, u2 = n3.bits, h2 = s3, d2 = l2, _2 = lh;
94716
+ return uh;
94717
+ (n3 = e3.state).mode === dh && (n3.mode = 13), a3 = e3.next_out, o3 = e3.output, l2 = e3.avail_out, i3 = e3.next_in, r3 = e3.input, s3 = e3.avail_in, c2 = n3.hold, u2 = n3.bits, h2 = s3, d2 = l2, _2 = ch;
94662
94718
  e:
94663
94719
  for (; ; )
94664
94720
  switch (n3.mode) {
94665
- case uh:
94721
+ case hh:
94666
94722
  if (0 === n3.wrap) {
94667
94723
  n3.mode = 13;
94668
94724
  break;
@@ -94673,24 +94729,24 @@ var require_processPagePollCjs = __commonJS({
94673
94729
  s3--, c2 += r3[i3++] << u2, u2 += 8;
94674
94730
  }
94675
94731
  if (2 & n3.wrap && 35615 === c2) {
94676
- n3.check = 0, A2[0] = 255 & c2, A2[1] = c2 >>> 8 & 255, n3.check = ih(n3.check, A2, 2, 0), c2 = 0, u2 = 0, n3.mode = 2;
94732
+ n3.check = 0, A2[0] = 255 & c2, A2[1] = c2 >>> 8 & 255, n3.check = ah(n3.check, A2, 2, 0), c2 = 0, u2 = 0, n3.mode = 2;
94677
94733
  break;
94678
94734
  }
94679
94735
  if (n3.flags = 0, n3.head && (n3.head.done = false), !(1 & n3.wrap) || (((255 & c2) << 8) + (c2 >> 8)) % 31) {
94680
- e3.msg = "incorrect header check", n3.mode = dh;
94736
+ e3.msg = "incorrect header check", n3.mode = ph;
94681
94737
  break;
94682
94738
  }
94683
94739
  if (8 != (15 & c2)) {
94684
- e3.msg = "unknown compression method", n3.mode = dh;
94740
+ e3.msg = "unknown compression method", n3.mode = ph;
94685
94741
  break;
94686
94742
  }
94687
94743
  if (u2 -= 4, x2 = 8 + (15 & (c2 >>>= 4)), 0 === n3.wbits)
94688
94744
  n3.wbits = x2;
94689
94745
  else if (x2 > n3.wbits) {
94690
- e3.msg = "invalid window size", n3.mode = dh;
94746
+ e3.msg = "invalid window size", n3.mode = ph;
94691
94747
  break;
94692
94748
  }
94693
- n3.dmax = 1 << x2, e3.adler = n3.check = 1, n3.mode = 512 & c2 ? 10 : hh, c2 = 0, u2 = 0;
94749
+ n3.dmax = 1 << x2, e3.adler = n3.check = 1, n3.mode = 512 & c2 ? 10 : dh, c2 = 0, u2 = 0;
94694
94750
  break;
94695
94751
  case 2:
94696
94752
  for (; u2 < 16; ) {
@@ -94699,28 +94755,28 @@ var require_processPagePollCjs = __commonJS({
94699
94755
  s3--, c2 += r3[i3++] << u2, u2 += 8;
94700
94756
  }
94701
94757
  if (n3.flags = c2, 8 != (255 & n3.flags)) {
94702
- e3.msg = "unknown compression method", n3.mode = dh;
94758
+ e3.msg = "unknown compression method", n3.mode = ph;
94703
94759
  break;
94704
94760
  }
94705
94761
  if (57344 & n3.flags) {
94706
- e3.msg = "unknown header flags set", n3.mode = dh;
94762
+ e3.msg = "unknown header flags set", n3.mode = ph;
94707
94763
  break;
94708
94764
  }
94709
- n3.head && (n3.head.text = c2 >> 8 & 1), 512 & n3.flags && (A2[0] = 255 & c2, A2[1] = c2 >>> 8 & 255, n3.check = ih(n3.check, A2, 2, 0)), c2 = 0, u2 = 0, n3.mode = 3;
94765
+ n3.head && (n3.head.text = c2 >> 8 & 1), 512 & n3.flags && (A2[0] = 255 & c2, A2[1] = c2 >>> 8 & 255, n3.check = ah(n3.check, A2, 2, 0)), c2 = 0, u2 = 0, n3.mode = 3;
94710
94766
  case 3:
94711
94767
  for (; u2 < 32; ) {
94712
94768
  if (0 === s3)
94713
94769
  break e;
94714
94770
  s3--, c2 += r3[i3++] << u2, u2 += 8;
94715
94771
  }
94716
- n3.head && (n3.head.time = c2), 512 & n3.flags && (A2[0] = 255 & c2, A2[1] = c2 >>> 8 & 255, A2[2] = c2 >>> 16 & 255, A2[3] = c2 >>> 24 & 255, n3.check = ih(n3.check, A2, 4, 0)), c2 = 0, u2 = 0, n3.mode = 4;
94772
+ n3.head && (n3.head.time = c2), 512 & n3.flags && (A2[0] = 255 & c2, A2[1] = c2 >>> 8 & 255, A2[2] = c2 >>> 16 & 255, A2[3] = c2 >>> 24 & 255, n3.check = ah(n3.check, A2, 4, 0)), c2 = 0, u2 = 0, n3.mode = 4;
94717
94773
  case 4:
94718
94774
  for (; u2 < 16; ) {
94719
94775
  if (0 === s3)
94720
94776
  break e;
94721
94777
  s3--, c2 += r3[i3++] << u2, u2 += 8;
94722
94778
  }
94723
- n3.head && (n3.head.xflags = 255 & c2, n3.head.os = c2 >> 8), 512 & n3.flags && (A2[0] = 255 & c2, A2[1] = c2 >>> 8 & 255, n3.check = ih(n3.check, A2, 2, 0)), c2 = 0, u2 = 0, n3.mode = 5;
94779
+ n3.head && (n3.head.xflags = 255 & c2, n3.head.os = c2 >> 8), 512 & n3.flags && (A2[0] = 255 & c2, A2[1] = c2 >>> 8 & 255, n3.check = ah(n3.check, A2, 2, 0)), c2 = 0, u2 = 0, n3.mode = 5;
94724
94780
  case 5:
94725
94781
  if (1024 & n3.flags) {
94726
94782
  for (; u2 < 16; ) {
@@ -94728,12 +94784,12 @@ var require_processPagePollCjs = __commonJS({
94728
94784
  break e;
94729
94785
  s3--, c2 += r3[i3++] << u2, u2 += 8;
94730
94786
  }
94731
- n3.length = c2, n3.head && (n3.head.extra_len = c2), 512 & n3.flags && (A2[0] = 255 & c2, A2[1] = c2 >>> 8 & 255, n3.check = ih(n3.check, A2, 2, 0)), c2 = 0, u2 = 0;
94787
+ n3.length = c2, n3.head && (n3.head.extra_len = c2), 512 & n3.flags && (A2[0] = 255 & c2, A2[1] = c2 >>> 8 & 255, n3.check = ah(n3.check, A2, 2, 0)), c2 = 0, u2 = 0;
94732
94788
  } else
94733
94789
  n3.head && (n3.head.extra = null);
94734
94790
  n3.mode = 6;
94735
94791
  case 6:
94736
- if (1024 & n3.flags && ((p2 = n3.length) > s3 && (p2 = s3), p2 && (n3.head && (x2 = n3.head.extra_len - n3.length, n3.head.extra || (n3.head.extra = new Array(n3.head.extra_len)), rh.arraySet(n3.head.extra, r3, i3, p2, x2)), 512 & n3.flags && (n3.check = ih(n3.check, r3, p2, i3)), s3 -= p2, i3 += p2, n3.length -= p2), n3.length))
94792
+ if (1024 & n3.flags && ((p2 = n3.length) > s3 && (p2 = s3), p2 && (n3.head && (x2 = n3.head.extra_len - n3.length, n3.head.extra || (n3.head.extra = new Array(n3.head.extra_len)), oh.arraySet(n3.head.extra, r3, i3, p2, x2)), 512 & n3.flags && (n3.check = ah(n3.check, r3, p2, i3)), s3 -= p2, i3 += p2, n3.length -= p2), n3.length))
94737
94793
  break e;
94738
94794
  n3.length = 0, n3.mode = 7;
94739
94795
  case 7:
@@ -94744,7 +94800,7 @@ var require_processPagePollCjs = __commonJS({
94744
94800
  do {
94745
94801
  x2 = r3[i3 + p2++], n3.head && x2 && n3.length < 65536 && (n3.head.name += String.fromCharCode(x2));
94746
94802
  } while (x2 && p2 < s3);
94747
- if (512 & n3.flags && (n3.check = ih(n3.check, r3, p2, i3)), s3 -= p2, i3 += p2, x2)
94803
+ if (512 & n3.flags && (n3.check = ah(n3.check, r3, p2, i3)), s3 -= p2, i3 += p2, x2)
94748
94804
  break e;
94749
94805
  } else
94750
94806
  n3.head && (n3.head.name = null);
@@ -94757,7 +94813,7 @@ var require_processPagePollCjs = __commonJS({
94757
94813
  do {
94758
94814
  x2 = r3[i3 + p2++], n3.head && x2 && n3.length < 65536 && (n3.head.comment += String.fromCharCode(x2));
94759
94815
  } while (x2 && p2 < s3);
94760
- if (512 & n3.flags && (n3.check = ih(n3.check, r3, p2, i3)), s3 -= p2, i3 += p2, x2)
94816
+ if (512 & n3.flags && (n3.check = ah(n3.check, r3, p2, i3)), s3 -= p2, i3 += p2, x2)
94761
94817
  break e;
94762
94818
  } else
94763
94819
  n3.head && (n3.head.comment = null);
@@ -94770,12 +94826,12 @@ var require_processPagePollCjs = __commonJS({
94770
94826
  s3--, c2 += r3[i3++] << u2, u2 += 8;
94771
94827
  }
94772
94828
  if (c2 !== (65535 & n3.check)) {
94773
- e3.msg = "header crc mismatch", n3.mode = dh;
94829
+ e3.msg = "header crc mismatch", n3.mode = ph;
94774
94830
  break;
94775
94831
  }
94776
94832
  c2 = 0, u2 = 0;
94777
94833
  }
94778
- n3.head && (n3.head.hcrc = n3.flags >> 9 & 1, n3.head.done = true), e3.adler = n3.check = 0, n3.mode = hh;
94834
+ n3.head && (n3.head.hcrc = n3.flags >> 9 & 1, n3.head.done = true), e3.adler = n3.check = 0, n3.mode = dh;
94779
94835
  break;
94780
94836
  case 10:
94781
94837
  for (; u2 < 32; ) {
@@ -94783,12 +94839,12 @@ var require_processPagePollCjs = __commonJS({
94783
94839
  break e;
94784
94840
  s3--, c2 += r3[i3++] << u2, u2 += 8;
94785
94841
  }
94786
- e3.adler = n3.check = fh(c2), c2 = 0, u2 = 0, n3.mode = 11;
94842
+ e3.adler = n3.check = gh(c2), c2 = 0, u2 = 0, n3.mode = 11;
94787
94843
  case 11:
94788
94844
  if (0 === n3.havedict)
94789
94845
  return e3.next_out = a3, e3.avail_out = l2, e3.next_in = i3, e3.avail_in = s3, n3.hold = c2, n3.bits = u2, 2;
94790
- e3.adler = n3.check = 1, n3.mode = hh;
94791
- case hh:
94846
+ e3.adler = n3.check = 1, n3.mode = dh;
94847
+ case dh:
94792
94848
  if (5 === t3 || 6 === t3)
94793
94849
  break e;
94794
94850
  case 13:
@@ -94806,7 +94862,7 @@ var require_processPagePollCjs = __commonJS({
94806
94862
  n3.mode = 14;
94807
94863
  break;
94808
94864
  case 1:
94809
- if (Sh(n3), n3.mode = 20, 6 === t3) {
94865
+ if (Ch(n3), n3.mode = 20, 6 === t3) {
94810
94866
  c2 >>>= 2, u2 -= 2;
94811
94867
  break e;
94812
94868
  }
@@ -94815,7 +94871,7 @@ var require_processPagePollCjs = __commonJS({
94815
94871
  n3.mode = 17;
94816
94872
  break;
94817
94873
  case 3:
94818
- e3.msg = "invalid block type", n3.mode = dh;
94874
+ e3.msg = "invalid block type", n3.mode = ph;
94819
94875
  }
94820
94876
  c2 >>>= 2, u2 -= 2;
94821
94877
  break;
@@ -94826,7 +94882,7 @@ var require_processPagePollCjs = __commonJS({
94826
94882
  s3--, c2 += r3[i3++] << u2, u2 += 8;
94827
94883
  }
94828
94884
  if ((65535 & c2) != (c2 >>> 16 ^ 65535)) {
94829
- e3.msg = "invalid stored block lengths", n3.mode = dh;
94885
+ e3.msg = "invalid stored block lengths", n3.mode = ph;
94830
94886
  break;
94831
94887
  }
94832
94888
  if (n3.length = 65535 & c2, c2 = 0, u2 = 0, n3.mode = 15, 6 === t3)
@@ -94837,10 +94893,10 @@ var require_processPagePollCjs = __commonJS({
94837
94893
  if (p2 = n3.length) {
94838
94894
  if (p2 > s3 && (p2 = s3), p2 > l2 && (p2 = l2), 0 === p2)
94839
94895
  break e;
94840
- rh.arraySet(o3, r3, i3, p2, a3), s3 -= p2, i3 += p2, l2 -= p2, a3 += p2, n3.length -= p2;
94896
+ oh.arraySet(o3, r3, i3, p2, a3), s3 -= p2, i3 += p2, l2 -= p2, a3 += p2, n3.length -= p2;
94841
94897
  break;
94842
94898
  }
94843
- n3.mode = hh;
94899
+ n3.mode = dh;
94844
94900
  break;
94845
94901
  case 17:
94846
94902
  for (; u2 < 14; ) {
@@ -94849,7 +94905,7 @@ var require_processPagePollCjs = __commonJS({
94849
94905
  s3--, c2 += r3[i3++] << u2, u2 += 8;
94850
94906
  }
94851
94907
  if (n3.nlen = 257 + (31 & c2), c2 >>>= 5, u2 -= 5, n3.ndist = 1 + (31 & c2), c2 >>>= 5, u2 -= 5, n3.ncode = 4 + (15 & c2), c2 >>>= 4, u2 -= 4, n3.nlen > 286 || n3.ndist > 30) {
94852
- e3.msg = "too many length or distance symbols", n3.mode = dh;
94908
+ e3.msg = "too many length or distance symbols", n3.mode = ph;
94853
94909
  break;
94854
94910
  }
94855
94911
  n3.have = 0, n3.mode = 18;
@@ -94864,8 +94920,8 @@ var require_processPagePollCjs = __commonJS({
94864
94920
  }
94865
94921
  for (; n3.have < 19; )
94866
94922
  n3.lens[T2[n3.have++]] = 0;
94867
- if (n3.lencode = n3.lendyn, n3.lenbits = 7, S2 = { bits: n3.lenbits }, _2 = sh(0, n3.lens, 0, 19, n3.lencode, 0, n3.work, S2), n3.lenbits = S2.bits, _2) {
94868
- e3.msg = "invalid code lengths set", n3.mode = dh;
94923
+ if (n3.lencode = n3.lendyn, n3.lenbits = 7, S2 = { bits: n3.lenbits }, _2 = lh(0, n3.lens, 0, 19, n3.lencode, 0, n3.work, S2), n3.lenbits = S2.bits, _2) {
94924
+ e3.msg = "invalid code lengths set", n3.mode = ph;
94869
94925
  break;
94870
94926
  }
94871
94927
  n3.have = 0, n3.mode = 19;
@@ -94886,7 +94942,7 @@ var require_processPagePollCjs = __commonJS({
94886
94942
  s3--, c2 += r3[i3++] << u2, u2 += 8;
94887
94943
  }
94888
94944
  if (c2 >>>= g2, u2 -= g2, 0 === n3.have) {
94889
- e3.msg = "invalid bit length repeat", n3.mode = dh;
94945
+ e3.msg = "invalid bit length repeat", n3.mode = ph;
94890
94946
  break;
94891
94947
  }
94892
94948
  x2 = n3.lens[n3.have - 1], p2 = 3 + (3 & c2), c2 >>>= 2, u2 -= 2;
@@ -94906,25 +94962,25 @@ var require_processPagePollCjs = __commonJS({
94906
94962
  u2 -= g2, x2 = 0, p2 = 11 + (127 & (c2 >>>= g2)), c2 >>>= 7, u2 -= 7;
94907
94963
  }
94908
94964
  if (n3.have + p2 > n3.nlen + n3.ndist) {
94909
- e3.msg = "invalid bit length repeat", n3.mode = dh;
94965
+ e3.msg = "invalid bit length repeat", n3.mode = ph;
94910
94966
  break;
94911
94967
  }
94912
94968
  for (; p2--; )
94913
94969
  n3.lens[n3.have++] = x2;
94914
94970
  }
94915
94971
  }
94916
- if (n3.mode === dh)
94972
+ if (n3.mode === ph)
94917
94973
  break;
94918
94974
  if (0 === n3.lens[256]) {
94919
- e3.msg = "invalid code -- missing end-of-block", n3.mode = dh;
94975
+ e3.msg = "invalid code -- missing end-of-block", n3.mode = ph;
94920
94976
  break;
94921
94977
  }
94922
- if (n3.lenbits = 9, S2 = { bits: n3.lenbits }, _2 = sh(1, n3.lens, 0, n3.nlen, n3.lencode, 0, n3.work, S2), n3.lenbits = S2.bits, _2) {
94923
- e3.msg = "invalid literal/lengths set", n3.mode = dh;
94978
+ if (n3.lenbits = 9, S2 = { bits: n3.lenbits }, _2 = lh(1, n3.lens, 0, n3.nlen, n3.lencode, 0, n3.work, S2), n3.lenbits = S2.bits, _2) {
94979
+ e3.msg = "invalid literal/lengths set", n3.mode = ph;
94924
94980
  break;
94925
94981
  }
94926
- if (n3.distbits = 6, n3.distcode = n3.distdyn, S2 = { bits: n3.distbits }, _2 = sh(2, n3.lens, n3.nlen, n3.ndist, n3.distcode, 0, n3.work, S2), n3.distbits = S2.bits, _2) {
94927
- e3.msg = "invalid distances set", n3.mode = dh;
94982
+ if (n3.distbits = 6, n3.distcode = n3.distdyn, S2 = { bits: n3.distbits }, _2 = lh(2, n3.lens, n3.nlen, n3.ndist, n3.distcode, 0, n3.work, S2), n3.distbits = S2.bits, _2) {
94983
+ e3.msg = "invalid distances set", n3.mode = ph;
94928
94984
  break;
94929
94985
  }
94930
94986
  if (n3.mode = 20, 6 === t3)
@@ -94933,7 +94989,7 @@ var require_processPagePollCjs = __commonJS({
94933
94989
  n3.mode = 21;
94934
94990
  case 21:
94935
94991
  if (s3 >= 6 && l2 >= 258) {
94936
- e3.next_out = a3, e3.avail_out = l2, e3.next_in = i3, e3.avail_in = s3, n3.hold = c2, n3.bits = u2, ah(e3, d2), a3 = e3.next_out, o3 = e3.output, l2 = e3.avail_out, i3 = e3.next_in, r3 = e3.input, s3 = e3.avail_in, c2 = n3.hold, u2 = n3.bits, n3.mode === hh && (n3.back = -1);
94992
+ e3.next_out = a3, e3.avail_out = l2, e3.next_in = i3, e3.avail_in = s3, n3.hold = c2, n3.bits = u2, sh(e3, d2), a3 = e3.next_out, o3 = e3.output, l2 = e3.avail_out, i3 = e3.next_in, r3 = e3.input, s3 = e3.avail_in, c2 = n3.hold, u2 = n3.bits, n3.mode === dh && (n3.back = -1);
94937
94993
  break;
94938
94994
  }
94939
94995
  for (n3.back = 0; b2 = (z2 = n3.lencode[c2 & (1 << n3.lenbits) - 1]) >>> 16 & 255, y2 = 65535 & z2, !((g2 = z2 >>> 24) <= u2); ) {
@@ -94954,11 +95010,11 @@ var require_processPagePollCjs = __commonJS({
94954
95010
  break;
94955
95011
  }
94956
95012
  if (32 & b2) {
94957
- n3.back = -1, n3.mode = hh;
95013
+ n3.back = -1, n3.mode = dh;
94958
95014
  break;
94959
95015
  }
94960
95016
  if (64 & b2) {
94961
- e3.msg = "invalid literal/length code", n3.mode = dh;
95017
+ e3.msg = "invalid literal/length code", n3.mode = ph;
94962
95018
  break;
94963
95019
  }
94964
95020
  n3.extra = 15 & b2, n3.mode = 22;
@@ -94987,7 +95043,7 @@ var require_processPagePollCjs = __commonJS({
94987
95043
  c2 >>>= k2, u2 -= k2, n3.back += k2;
94988
95044
  }
94989
95045
  if (c2 >>>= g2, u2 -= g2, n3.back += g2, 64 & b2) {
94990
- e3.msg = "invalid distance code", n3.mode = dh;
95046
+ e3.msg = "invalid distance code", n3.mode = ph;
94991
95047
  break;
94992
95048
  }
94993
95049
  n3.offset = y2, n3.extra = 15 & b2, n3.mode = 24;
@@ -95001,7 +95057,7 @@ var require_processPagePollCjs = __commonJS({
95001
95057
  n3.offset += c2 & (1 << n3.extra) - 1, c2 >>>= n3.extra, u2 -= n3.extra, n3.back += n3.extra;
95002
95058
  }
95003
95059
  if (n3.offset > n3.dmax) {
95004
- e3.msg = "invalid distance too far back", n3.mode = dh;
95060
+ e3.msg = "invalid distance too far back", n3.mode = ph;
95005
95061
  break;
95006
95062
  }
95007
95063
  n3.mode = 25;
@@ -95010,7 +95066,7 @@ var require_processPagePollCjs = __commonJS({
95010
95066
  break e;
95011
95067
  if (p2 = d2 - l2, n3.offset > p2) {
95012
95068
  if ((p2 = n3.offset - p2) > n3.whave && n3.sane) {
95013
- e3.msg = "invalid distance too far back", n3.mode = dh;
95069
+ e3.msg = "invalid distance too far back", n3.mode = ph;
95014
95070
  break;
95015
95071
  }
95016
95072
  p2 > n3.wnext ? (p2 -= n3.wnext, m2 = n3.wsize - p2) : m2 = n3.wnext - p2, p2 > n3.length && (p2 = n3.length), f2 = n3.window;
@@ -95034,8 +95090,8 @@ var require_processPagePollCjs = __commonJS({
95034
95090
  break e;
95035
95091
  s3--, c2 |= r3[i3++] << u2, u2 += 8;
95036
95092
  }
95037
- if (d2 -= l2, e3.total_out += d2, n3.total += d2, d2 && (e3.adler = n3.check = n3.flags ? ih(n3.check, o3, d2, a3 - d2) : oh(n3.check, o3, d2, a3 - d2)), d2 = l2, (n3.flags ? c2 : fh(c2)) !== n3.check) {
95038
- e3.msg = "incorrect data check", n3.mode = dh;
95093
+ if (d2 -= l2, e3.total_out += d2, n3.total += d2, d2 && (e3.adler = n3.check = n3.flags ? ah(n3.check, o3, d2, a3 - d2) : ih(n3.check, o3, d2, a3 - d2)), d2 = l2, (n3.flags ? c2 : gh(c2)) !== n3.check) {
95094
+ e3.msg = "incorrect data check", n3.mode = ph;
95039
95095
  break;
95040
95096
  }
95041
95097
  c2 = 0, u2 = 0;
@@ -95049,7 +95105,7 @@ var require_processPagePollCjs = __commonJS({
95049
95105
  s3--, c2 += r3[i3++] << u2, u2 += 8;
95050
95106
  }
95051
95107
  if (c2 !== (4294967295 & n3.total)) {
95052
- e3.msg = "incorrect length check", n3.mode = dh;
95108
+ e3.msg = "incorrect length check", n3.mode = ph;
95053
95109
  break;
95054
95110
  }
95055
95111
  c2 = 0, u2 = 0;
@@ -95058,72 +95114,72 @@ var require_processPagePollCjs = __commonJS({
95058
95114
  case 29:
95059
95115
  _2 = 1;
95060
95116
  break e;
95061
- case dh:
95117
+ case ph:
95062
95118
  _2 = -3;
95063
95119
  break e;
95064
95120
  case 31:
95065
95121
  return -4;
95066
95122
  default:
95067
- return ch;
95123
+ return uh;
95068
95124
  }
95069
- return e3.next_out = a3, e3.avail_out = l2, e3.next_in = i3, e3.avail_in = s3, n3.hold = c2, n3.bits = u2, (n3.wsize || d2 !== e3.avail_out && n3.mode < dh && (n3.mode < 27 || 4 !== t3)) && Ch(e3, e3.output, e3.next_out, d2 - e3.avail_out), h2 -= e3.avail_in, d2 -= e3.avail_out, e3.total_in += h2, e3.total_out += d2, n3.total += d2, n3.wrap && d2 && (e3.adler = n3.check = n3.flags ? ih(n3.check, o3, d2, e3.next_out - d2) : oh(n3.check, o3, d2, e3.next_out - d2)), e3.data_type = n3.bits + (n3.last ? 64 : 0) + (n3.mode === hh ? 128 : 0) + (20 === n3.mode || 15 === n3.mode ? 256 : 0), (0 === h2 && 0 === d2 || 4 === t3) && _2 === lh && (_2 = -5), _2;
95070
- }, Xu.inflateEnd = function(e3) {
95125
+ return e3.next_out = a3, e3.avail_out = l2, e3.next_in = i3, e3.avail_in = s3, n3.hold = c2, n3.bits = u2, (n3.wsize || d2 !== e3.avail_out && n3.mode < ph && (n3.mode < 27 || 4 !== t3)) && zh(e3, e3.output, e3.next_out, d2 - e3.avail_out), h2 -= e3.avail_in, d2 -= e3.avail_out, e3.total_in += h2, e3.total_out += d2, n3.total += d2, n3.wrap && d2 && (e3.adler = n3.check = n3.flags ? ah(n3.check, o3, d2, e3.next_out - d2) : ih(n3.check, o3, d2, e3.next_out - d2)), e3.data_type = n3.bits + (n3.last ? 64 : 0) + (n3.mode === dh ? 128 : 0) + (20 === n3.mode || 15 === n3.mode ? 256 : 0), (0 === h2 && 0 === d2 || 4 === t3) && _2 === ch && (_2 = -5), _2;
95126
+ }, Qu.inflateEnd = function(e3) {
95071
95127
  if (!e3 || !e3.state)
95072
- return ch;
95128
+ return uh;
95073
95129
  var t3 = e3.state;
95074
- return t3.window && (t3.window = null), e3.state = null, lh;
95075
- }, Xu.inflateGetHeader = function(e3, t3) {
95130
+ return t3.window && (t3.window = null), e3.state = null, ch;
95131
+ }, Qu.inflateGetHeader = function(e3, t3) {
95076
95132
  var n3;
95077
- return e3 && e3.state ? 0 == (2 & (n3 = e3.state).wrap) ? ch : (n3.head = t3, t3.done = false, lh) : ch;
95078
- }, Xu.inflateSetDictionary = function(e3, t3) {
95133
+ return e3 && e3.state ? 0 == (2 & (n3 = e3.state).wrap) ? uh : (n3.head = t3, t3.done = false, ch) : uh;
95134
+ }, Qu.inflateSetDictionary = function(e3, t3) {
95079
95135
  var n3, r3 = t3.length;
95080
- return e3 && e3.state ? 0 !== (n3 = e3.state).wrap && 11 !== n3.mode ? ch : 11 === n3.mode && oh(1, t3, r3, 0) !== n3.check ? -3 : Ch(e3, t3, r3, r3) ? (n3.mode = 31, -4) : (n3.havedict = 1, lh) : ch;
95081
- }, Xu.inflateInfo = "pako inflate (from Nodeca project)";
95082
- var zh = { Z_NO_FLUSH: 0, Z_PARTIAL_FLUSH: 1, Z_SYNC_FLUSH: 2, Z_FULL_FLUSH: 3, Z_FINISH: 4, Z_BLOCK: 5, Z_TREES: 6, Z_OK: 0, Z_STREAM_END: 1, Z_NEED_DICT: 2, Z_ERRNO: -1, Z_STREAM_ERROR: -2, Z_DATA_ERROR: -3, Z_BUF_ERROR: -5, Z_NO_COMPRESSION: 0, Z_BEST_SPEED: 1, Z_BEST_COMPRESSION: 9, Z_DEFAULT_COMPRESSION: -1, Z_FILTERED: 1, Z_HUFFMAN_ONLY: 2, Z_RLE: 3, Z_FIXED: 4, Z_DEFAULT_STRATEGY: 0, Z_BINARY: 0, Z_TEXT: 1, Z_UNKNOWN: 2, Z_DEFLATED: 8 }, Ah = Xu, Th = Jl, Oh = Lu, Lh = zh, Eh = Vc, Rh = Pu, Nh = function() {
95136
+ return e3 && e3.state ? 0 !== (n3 = e3.state).wrap && 11 !== n3.mode ? uh : 11 === n3.mode && ih(1, t3, r3, 0) !== n3.check ? -3 : zh(e3, t3, r3, r3) ? (n3.mode = 31, -4) : (n3.havedict = 1, ch) : uh;
95137
+ }, Qu.inflateInfo = "pako inflate (from Nodeca project)";
95138
+ var Ah = { Z_NO_FLUSH: 0, Z_PARTIAL_FLUSH: 1, Z_SYNC_FLUSH: 2, Z_FULL_FLUSH: 3, Z_FINISH: 4, Z_BLOCK: 5, Z_TREES: 6, Z_OK: 0, Z_STREAM_END: 1, Z_NEED_DICT: 2, Z_ERRNO: -1, Z_STREAM_ERROR: -2, Z_DATA_ERROR: -3, Z_BUF_ERROR: -5, Z_NO_COMPRESSION: 0, Z_BEST_SPEED: 1, Z_BEST_COMPRESSION: 9, Z_DEFAULT_COMPRESSION: -1, Z_FILTERED: 1, Z_HUFFMAN_ONLY: 2, Z_RLE: 3, Z_FIXED: 4, Z_DEFAULT_STRATEGY: 0, Z_BINARY: 0, Z_TEXT: 1, Z_UNKNOWN: 2, Z_DEFLATED: 8 }, Th = Qu, Oh = ec, Lh = Eu, Eh = Ah, Rh = Zc, Nh = Bu, jh = function() {
95083
95139
  this.text = 0, this.time = 0, this.xflags = 0, this.os = 0, this.extra = null, this.extra_len = 0, this.name = "", this.comment = "", this.hcrc = 0, this.done = false;
95084
- }, jh = Object.prototype.toString;
95085
- function Ih(e3) {
95086
- if (!(this instanceof Ih))
95087
- return new Ih(e3);
95088
- this.options = Th.assign({ chunkSize: 16384, windowBits: 0, to: "" }, e3 || {});
95140
+ }, Ih = Object.prototype.toString;
95141
+ function Dh(e3) {
95142
+ if (!(this instanceof Dh))
95143
+ return new Dh(e3);
95144
+ this.options = Oh.assign({ chunkSize: 16384, windowBits: 0, to: "" }, e3 || {});
95089
95145
  var t3 = this.options;
95090
- t3.raw && t3.windowBits >= 0 && t3.windowBits < 16 && (t3.windowBits = -t3.windowBits, 0 === t3.windowBits && (t3.windowBits = -15)), !(t3.windowBits >= 0 && t3.windowBits < 16) || e3 && e3.windowBits || (t3.windowBits += 32), t3.windowBits > 15 && t3.windowBits < 48 && 0 == (15 & t3.windowBits) && (t3.windowBits |= 15), this.err = 0, this.msg = "", this.ended = false, this.chunks = [], this.strm = new Rh(), this.strm.avail_out = 0;
95091
- var n3 = Ah.inflateInit2(this.strm, t3.windowBits);
95092
- if (n3 !== Lh.Z_OK)
95093
- throw new Error(Eh[n3]);
95094
- if (this.header = new Nh(), Ah.inflateGetHeader(this.strm, this.header), t3.dictionary && ("string" == typeof t3.dictionary ? t3.dictionary = Oh.string2buf(t3.dictionary) : "[object ArrayBuffer]" === jh.call(t3.dictionary) && (t3.dictionary = new Uint8Array(t3.dictionary)), t3.raw && (n3 = Ah.inflateSetDictionary(this.strm, t3.dictionary)) !== Lh.Z_OK))
95095
- throw new Error(Eh[n3]);
95096
- }
95097
- function Dh(e3, t3) {
95098
- var n3 = new Ih(t3);
95146
+ t3.raw && t3.windowBits >= 0 && t3.windowBits < 16 && (t3.windowBits = -t3.windowBits, 0 === t3.windowBits && (t3.windowBits = -15)), !(t3.windowBits >= 0 && t3.windowBits < 16) || e3 && e3.windowBits || (t3.windowBits += 32), t3.windowBits > 15 && t3.windowBits < 48 && 0 == (15 & t3.windowBits) && (t3.windowBits |= 15), this.err = 0, this.msg = "", this.ended = false, this.chunks = [], this.strm = new Nh(), this.strm.avail_out = 0;
95147
+ var n3 = Th.inflateInit2(this.strm, t3.windowBits);
95148
+ if (n3 !== Eh.Z_OK)
95149
+ throw new Error(Rh[n3]);
95150
+ if (this.header = new jh(), Th.inflateGetHeader(this.strm, this.header), t3.dictionary && ("string" == typeof t3.dictionary ? t3.dictionary = Lh.string2buf(t3.dictionary) : "[object ArrayBuffer]" === Ih.call(t3.dictionary) && (t3.dictionary = new Uint8Array(t3.dictionary)), t3.raw && (n3 = Th.inflateSetDictionary(this.strm, t3.dictionary)) !== Eh.Z_OK))
95151
+ throw new Error(Rh[n3]);
95152
+ }
95153
+ function Ph(e3, t3) {
95154
+ var n3 = new Dh(t3);
95099
95155
  if (n3.push(e3, true), n3.err)
95100
- throw n3.msg || Eh[n3.err];
95156
+ throw n3.msg || Rh[n3.err];
95101
95157
  return n3.result;
95102
95158
  }
95103
- Ih.prototype.push = function(e3, t3) {
95159
+ Dh.prototype.push = function(e3, t3) {
95104
95160
  var n3, r3, o3, i3, a3, s3 = this.strm, l2 = this.options.chunkSize, c2 = this.options.dictionary, u2 = false;
95105
95161
  if (this.ended)
95106
95162
  return false;
95107
- r3 = t3 === ~~t3 ? t3 : true === t3 ? Lh.Z_FINISH : Lh.Z_NO_FLUSH, "string" == typeof e3 ? s3.input = Oh.binstring2buf(e3) : "[object ArrayBuffer]" === jh.call(e3) ? s3.input = new Uint8Array(e3) : s3.input = e3, s3.next_in = 0, s3.avail_in = s3.input.length;
95163
+ r3 = t3 === ~~t3 ? t3 : true === t3 ? Eh.Z_FINISH : Eh.Z_NO_FLUSH, "string" == typeof e3 ? s3.input = Lh.binstring2buf(e3) : "[object ArrayBuffer]" === Ih.call(e3) ? s3.input = new Uint8Array(e3) : s3.input = e3, s3.next_in = 0, s3.avail_in = s3.input.length;
95108
95164
  do {
95109
- if (0 === s3.avail_out && (s3.output = new Th.Buf8(l2), s3.next_out = 0, s3.avail_out = l2), (n3 = Ah.inflate(s3, Lh.Z_NO_FLUSH)) === Lh.Z_NEED_DICT && c2 && (n3 = Ah.inflateSetDictionary(this.strm, c2)), n3 === Lh.Z_BUF_ERROR && true === u2 && (n3 = Lh.Z_OK, u2 = false), n3 !== Lh.Z_STREAM_END && n3 !== Lh.Z_OK)
95165
+ if (0 === s3.avail_out && (s3.output = new Oh.Buf8(l2), s3.next_out = 0, s3.avail_out = l2), (n3 = Th.inflate(s3, Eh.Z_NO_FLUSH)) === Eh.Z_NEED_DICT && c2 && (n3 = Th.inflateSetDictionary(this.strm, c2)), n3 === Eh.Z_BUF_ERROR && true === u2 && (n3 = Eh.Z_OK, u2 = false), n3 !== Eh.Z_STREAM_END && n3 !== Eh.Z_OK)
95110
95166
  return this.onEnd(n3), this.ended = true, false;
95111
- s3.next_out && (0 !== s3.avail_out && n3 !== Lh.Z_STREAM_END && (0 !== s3.avail_in || r3 !== Lh.Z_FINISH && r3 !== Lh.Z_SYNC_FLUSH) || ("string" === this.options.to ? (o3 = Oh.utf8border(s3.output, s3.next_out), i3 = s3.next_out - o3, a3 = Oh.buf2string(s3.output, o3), s3.next_out = i3, s3.avail_out = l2 - i3, i3 && Th.arraySet(s3.output, s3.output, o3, i3, 0), this.onData(a3)) : this.onData(Th.shrinkBuf(s3.output, s3.next_out)))), 0 === s3.avail_in && 0 === s3.avail_out && (u2 = true);
95112
- } while ((s3.avail_in > 0 || 0 === s3.avail_out) && n3 !== Lh.Z_STREAM_END);
95113
- return n3 === Lh.Z_STREAM_END && (r3 = Lh.Z_FINISH), r3 === Lh.Z_FINISH ? (n3 = Ah.inflateEnd(this.strm), this.onEnd(n3), this.ended = true, n3 === Lh.Z_OK) : r3 !== Lh.Z_SYNC_FLUSH || (this.onEnd(Lh.Z_OK), s3.avail_out = 0, true);
95114
- }, Ih.prototype.onData = function(e3) {
95167
+ s3.next_out && (0 !== s3.avail_out && n3 !== Eh.Z_STREAM_END && (0 !== s3.avail_in || r3 !== Eh.Z_FINISH && r3 !== Eh.Z_SYNC_FLUSH) || ("string" === this.options.to ? (o3 = Lh.utf8border(s3.output, s3.next_out), i3 = s3.next_out - o3, a3 = Lh.buf2string(s3.output, o3), s3.next_out = i3, s3.avail_out = l2 - i3, i3 && Oh.arraySet(s3.output, s3.output, o3, i3, 0), this.onData(a3)) : this.onData(Oh.shrinkBuf(s3.output, s3.next_out)))), 0 === s3.avail_in && 0 === s3.avail_out && (u2 = true);
95168
+ } while ((s3.avail_in > 0 || 0 === s3.avail_out) && n3 !== Eh.Z_STREAM_END);
95169
+ return n3 === Eh.Z_STREAM_END && (r3 = Eh.Z_FINISH), r3 === Eh.Z_FINISH ? (n3 = Th.inflateEnd(this.strm), this.onEnd(n3), this.ended = true, n3 === Eh.Z_OK) : r3 !== Eh.Z_SYNC_FLUSH || (this.onEnd(Eh.Z_OK), s3.avail_out = 0, true);
95170
+ }, Dh.prototype.onData = function(e3) {
95115
95171
  this.chunks.push(e3);
95116
- }, Ih.prototype.onEnd = function(e3) {
95117
- e3 === Lh.Z_OK && ("string" === this.options.to ? this.result = this.chunks.join("") : this.result = Th.flattenChunks(this.chunks)), this.chunks = [], this.err = e3, this.msg = this.strm.msg;
95118
- }, Yu.Inflate = Ih, Yu.inflate = Dh, Yu.inflateRaw = function(e3, t3) {
95119
- return (t3 = t3 || {}).raw = true, Dh(e3, t3);
95120
- }, Yu.ungzip = Dh;
95121
- var Ph = {};
95122
- (0, Jl.assign)(Ph, ec, Yu, zh);
95123
- var Bh = Ph;
95124
- function Fh({ type: e3, value: t3, compress: n3, serialize: r3 }) {
95172
+ }, Dh.prototype.onEnd = function(e3) {
95173
+ e3 === Eh.Z_OK && ("string" === this.options.to ? this.result = this.chunks.join("") : this.result = Oh.flattenChunks(this.chunks)), this.chunks = [], this.err = e3, this.msg = this.strm.msg;
95174
+ }, Xu.Inflate = Dh, Xu.inflate = Ph, Xu.inflateRaw = function(e3, t3) {
95175
+ return (t3 = t3 || {}).raw = true, Ph(e3, t3);
95176
+ }, Xu.ungzip = Ph;
95177
+ var Bh = {};
95178
+ (0, ec.assign)(Bh, tc, Xu, Ah);
95179
+ var Fh = Bh;
95180
+ function Uh({ type: e3, value: t3, compress: n3, serialize: r3 }) {
95125
95181
  const o3 = { type: e3, value: t3 };
95126
- return n3 && (o3.value = Bh.deflate(new Uint8Array(o3.value)), o3.compressed = true), r3 && (o3.value = function(e4) {
95182
+ return n3 && (o3.value = Fh.deflate(new Uint8Array(o3.value)), o3.compressed = true), r3 && (o3.value = function(e4) {
95127
95183
  const t4 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""), n4 = new Uint8Array(e4), r4 = n4.length, o4 = r4 % 3, i3 = [], a3 = 16383;
95128
95184
  let s3;
95129
95185
  for (let e5 = 0, t5 = r4 - o4; e5 < t5; e5 += a3)
@@ -95139,38 +95195,38 @@ var require_processPagePollCjs = __commonJS({
95139
95195
  }
95140
95196
  }(o3.value)), o3;
95141
95197
  }
95142
- function Uh(e3) {
95198
+ function Mh(e3) {
95143
95199
  return /^(blob|https?):/.test(e3);
95144
95200
  }
95145
- function Mh(e3) {
95201
+ function qh(e3) {
95146
95202
  const t3 = e3 && e3.match(/(^[^#]*)/), n3 = t3 && t3[1] || e3;
95147
95203
  return n3 && n3.replace(/\?\s*$/, "?") || e3;
95148
95204
  }
95149
- const qh = (...e3) => {
95205
+ const Wh = (...e3) => {
95150
95206
  };
95151
- function Wh(e3) {
95207
+ function $h(e3) {
95152
95208
  return e3.reduce((e4, t3) => e4.concat(t3), []);
95153
95209
  }
95154
- function $h(t3) {
95210
+ function Vh(t3) {
95155
95211
  const n3 = new TextDecoder("utf-8").decode(t3), r3 = e2.head || e2.querySelectorAll("head")[0], o3 = e2.createElement("style");
95156
95212
  return o3.type = "text/css", o3.setAttribute("data-desc", "Applitools tmp variable created by DOM SNAPSHOT"), r3.appendChild(o3), o3.styleSheet ? o3.styleSheet.cssText = n3 : o3.appendChild(e2.createTextNode(n3)), o3.sheet;
95157
95213
  }
95158
- function Vh(e3, t3, n3 = qh) {
95214
+ function Zh(e3, t3, n3 = Wh) {
95159
95215
  let r3;
95160
95216
  if (t3)
95161
95217
  try {
95162
95218
  t3.cssRules, r3 = t3;
95163
95219
  } catch (o3) {
95164
95220
  n3(`[dom-snapshot] could not access cssRules for ${t3.href} ${o3}
95165
- creating temp style for access.`), r3 = $h(e3);
95221
+ creating temp style for access.`), r3 = Vh(e3);
95166
95222
  }
95167
95223
  else
95168
- r3 = $h(e3);
95224
+ r3 = Vh(e3);
95169
95225
  return { corsFreeStyleSheet: r3, cleanStyleSheet: function() {
95170
95226
  r3 !== t3 && r3.ownerNode.parentNode.removeChild(r3.ownerNode);
95171
95227
  } };
95172
95228
  }
95173
- function Zh(e3, { log: t3, compress: n3, serialize: r3 }) {
95229
+ function Kh(e3, { log: t3, compress: n3, serialize: r3 }) {
95174
95230
  return e3.reduce(async (e4, { url: o3, element: i3, cdtNode: a3 }) => {
95175
95231
  const s3 = new Promise(async (e5) => {
95176
95232
  try {
@@ -95189,19 +95245,19 @@ creating temp style for access.`), r3 = $h(e3);
95189
95245
  });
95190
95246
  return e4.then((e5) => s3.then((t4) => {
95191
95247
  if (t4) {
95192
- const i4 = Fh({ type: "image/png", value: t4, compress: n3, serialize: r3 }), a4 = { ...i4, value: i4.value, url: o3 };
95248
+ const i4 = Uh({ type: "image/png", value: t4, compress: n3, serialize: r3 }), a4 = { ...i4, value: i4.value, url: o3 };
95193
95249
  e5.push(a4);
95194
95250
  }
95195
95251
  return e5;
95196
95252
  }));
95197
95253
  }, Promise.resolve([]));
95198
95254
  }
95199
- const Kh = "__process_resource";
95200
- function Hh(e3) {
95201
- return e3 && Uh(e3);
95255
+ const Hh = "__process_resource";
95256
+ function Gh(e3) {
95257
+ return e3 && Mh(e3);
95202
95258
  }
95203
95259
  window[x] = window[x] || {};
95204
- const Gh = f(function({ doc: t3 = e2, showLogs: n3, useSessionCache: r3, dontFetchResources: o3, fetchTimeout: i3, skipResources: a3, compressResources: s3, serializeResources: l2, removeReverseProxyURLPrefixes: c2, elements: u2 } = {}) {
95260
+ const Yh = f(function({ doc: t3 = e2, showLogs: n3, useSessionCache: r3, dontFetchResources: o3, fetchTimeout: i3, skipResources: a3, compressResources: s3, serializeResources: l2, removeReverseProxyURLPrefixes: c2, elements: u2 } = {}) {
95205
95261
  if (arguments[0] instanceof Document) {
95206
95262
  t3 = arguments[0];
95207
95263
  const e3 = arguments[1];
@@ -95232,7 +95288,7 @@ creating temp style for access.`), r3 = $h(e3);
95232
95288
  try {
95233
95289
  const e4 = t4 || ("undefined" != typeof window ? window.sessionStorage : void 0);
95234
95290
  if (e4) {
95235
- const t5 = e4.getItem(Kh);
95291
+ const t5 = e4.getItem(Hh);
95236
95292
  n4 = t5 ? JSON.parse(t5) : {};
95237
95293
  }
95238
95294
  } catch (t5) {
@@ -95248,22 +95304,22 @@ creating temp style for access.`), r3 = $h(e3);
95248
95304
  }, persist: function() {
95249
95305
  if (n4) {
95250
95306
  const e4 = t4 || ("undefined" != typeof window ? window.sessionStorage : void 0);
95251
- e4 && e4.setItem(Kh, JSON.stringify(n4));
95307
+ e4 && e4.setItem(Hh, JSON.stringify(n4));
95252
95308
  }
95253
95309
  } };
95254
95310
  }({ log: h2.log }), p2 = {}, m2 = function({ styleSheetCache: e3, CSSRule: t4 = window.CSSRule, removeReverseProxyURLPrefixes: n4 }) {
95255
95311
  return function r4(o4) {
95256
- return Xl(Array.from(o4.cssRules || []).reduce((o5, i4) => {
95312
+ return Ql(Array.from(o4.cssRules || []).reduce((o5, i4) => {
95257
95313
  const a4 = { [t4.IMPORT_RULE]: () => {
95258
95314
  const t5 = i4;
95259
95315
  return t5.styleSheet && (e3[t5.styleSheet.href] = t5.styleSheet, t5.styleSheet.href) ? t5.styleSheet.href : t5.href;
95260
- }, [t4.FONT_FACE_RULE]: () => Pl(i4.cssText, { removeReverseProxyURLPrefixes: n4 }), [t4.SUPPORTS_RULE]: () => r4(i4), [t4.MEDIA_RULE]: () => r4(i4), [t4.STYLE_RULE]: () => Bl(i4.style) }[i4.type], s4 = a4 && a4() || [];
95316
+ }, [t4.FONT_FACE_RULE]: () => Bl(i4.cssText, { removeReverseProxyURLPrefixes: n4 }), [t4.SUPPORTS_RULE]: () => r4(i4), [t4.MEDIA_RULE]: () => r4(i4), [t4.STYLE_RULE]: () => Fl(i4.style) }[i4.type], s4 = a4 && a4() || [];
95261
95317
  return (null == i4 ? void 0 : i4.cssRules) && s4.push(...r4(i4)), o5.concat(s4);
95262
95318
  }, [])).filter((e4) => "#" !== e4[0]);
95263
95319
  };
95264
95320
  }({ styleSheetCache: p2, removeReverseProxyURLPrefixes: Boolean(null == c2 ? void 0 : c2.length) }), f2 = function({ styleSheetCache: e3 }) {
95265
95321
  return function(t4, n4) {
95266
- const r4 = Wh(n4.map((e4) => {
95322
+ const r4 = $h(n4.map((e4) => {
95267
95323
  try {
95268
95324
  return Array.from(e4.styleSheets);
95269
95325
  } catch (e5) {
@@ -95271,7 +95327,7 @@ creating temp style for access.`), r3 = $h(e3);
95271
95327
  }
95272
95328
  }));
95273
95329
  return e3[t4] || r4.find((e4) => {
95274
- const n5 = e4.href && Mh(e4.href);
95330
+ const n5 = e4.href && qh(e4.href);
95275
95331
  return n5 && function(e5) {
95276
95332
  const t5 = new URL(e5);
95277
95333
  return t5.username && (t5.username = ""), t5.password && (t5.password = ""), t5.href;
@@ -95280,14 +95336,14 @@ creating temp style for access.`), r3 = $h(e3);
95280
95336
  };
95281
95337
  }({ styleSheetCache: p2 }), g2 = function(e3) {
95282
95338
  return function(t4, n4 = true) {
95283
- return Xl(Array.from(t4.querySelectorAll("style")).reduce((r4, o4) => {
95339
+ return Ql(Array.from(t4.querySelectorAll("style")).reduce((r4, o4) => {
95284
95340
  const i4 = n4 ? Array.from(t4.styleSheets).find((e4) => e4.ownerNode === o4) : o4.sheet;
95285
95341
  return i4 ? r4.concat(e3(i4)) : r4;
95286
95342
  }, []));
95287
95343
  };
95288
95344
  }(m2), b2 = function(e3) {
95289
95345
  return function(t4) {
95290
- return t4.adoptedStyleSheets ? Xl(t4.adoptedStyleSheets.reduce((t5, n4) => t5.concat(e3(n4)), [])) : [];
95346
+ return t4.adoptedStyleSheets ? Ql(t4.adoptedStyleSheets.reduce((t5, n4) => t5.concat(e3(n4)), [])) : [];
95291
95347
  };
95292
95348
  }(m2), k2 = function({ parser: e3, decoder: t4, extractResourceUrlsFromStyleTags: n4 }) {
95293
95349
  return function(r4) {
@@ -95295,7 +95351,7 @@ creating temp style for access.`), r3 = $h(e3);
95295
95351
  const t5 = e4.getAttribute("srcset");
95296
95352
  return t5 ? t5.split(", ").map((e5) => e5.trim().split(/\s+/)[0]) : [];
95297
95353
  }).reduce((e4, t5) => e4.concat(t5), []), s4 = Array.from(i4.querySelectorAll("img[src]")).map((e4) => e4.getAttribute("src")).filter(Boolean), l3 = Array.from(i4.querySelectorAll('image,use,link[rel="stylesheet"]')).map((e4) => e4.getAttribute("href") || e4.getAttribute("xlink:href")).filter(Boolean), c3 = Array.from(i4.getElementsByTagName("object")).map((e4) => e4.getAttribute("data")).filter(Boolean), u3 = n4(i4, false), h3 = function(e4) {
95298
- return Wh(Array.from(e4.querySelectorAll("*[style]")).map((e5) => e5.style.cssText).map((e5) => Pl(e5)).filter(Boolean));
95354
+ return $h(Array.from(e4.querySelectorAll("*[style]")).map((e5) => e5.style.cssText).map((e5) => Bl(e5)).filter(Boolean));
95299
95355
  }(i4);
95300
95356
  return a4.concat(s4).concat(l3).concat(c3).concat(u3).concat(h3).filter((e4) => "#" !== e4[0]);
95301
95357
  };
@@ -95315,13 +95371,13 @@ creating temp style for access.`), r3 = $h(e3);
95315
95371
  }).then(i4).catch((e4) => a4(e4));
95316
95372
  });
95317
95373
  };
95318
- }({ timeout: i3 }), v2 = function({ fetchUrl: e3, findStyleSheetByUrl: t4, getCorsFreeStyleSheet: n4, extractResourcesFromStyleSheet: r4, extractResourcesFromSvg: o4, sessionCache: i4, cache: a4 = {}, compress: s4, serialize: l3, log: c3 = qh }) {
95374
+ }({ timeout: i3 }), v2 = function({ fetchUrl: e3, findStyleSheetByUrl: t4, getCorsFreeStyleSheet: n4, extractResourcesFromStyleSheet: r4, extractResourcesFromSvg: o4, sessionCache: i4, cache: a4 = {}, compress: s4, serialize: l3, log: c3 = Wh }) {
95319
95375
  return function({ url: u3, documents: h3, getResourceUrlsAndBlobs: d3, forceCreateStyle: p3 = false, skipResources: m3 }) {
95320
95376
  if (!a4[u3])
95321
95377
  if (i4 && i4.getItem(u3)) {
95322
95378
  const e4 = function e5(t5) {
95323
95379
  const n5 = i4.getItem(t5);
95324
- return [t5].concat(n5 ? Xl(Wh(n5.map(e5))) : []);
95380
+ return [t5].concat(n5 ? Ql($h(n5.map(e5))) : []);
95325
95381
  }(u3);
95326
95382
  c3("doProcessResource from sessionStorage", u3, "deps:", e4.slice(1)), a4[u3] = Promise.resolve({ resourceUrls: e4 });
95327
95383
  } else if (m3 && m3.indexOf(u3) > -1 || /https:\/\/fonts\.googleapis\.com/.test(u3))
@@ -95356,9 +95412,9 @@ creating temp style for access.`), r3 = $h(e3);
95356
95412
  } catch (e5) {
95357
95413
  c3("could not parse svg content", e5);
95358
95414
  }
95359
- const v3 = { [e4]: Fh({ type: a6, value: f4, compress: s4, serialize: l3 }) };
95415
+ const v3 = { [e4]: Uh({ type: a6, value: f4, compress: s4, serialize: l3 }) };
95360
95416
  if (w3) {
95361
- const t5 = w3.map((t6) => y(t6, e4.replace(/^blob:/, ""))).map(Mh).filter(Uh);
95417
+ const t5 = w3.map((t6) => y(t6, e4.replace(/^blob:/, ""))).map(qh).filter(Mh);
95362
95418
  return t5.length && (v3[e4].dependencies = t5), i4 && i4.setItem(e4, t5), d3({ documents: h3, urls: t5, forceCreateStyle: p3, skipResources: m3 }).then(({ resourceUrls: e5, blobsObj: t6 }) => ({ resourceUrls: e5, blobsObj: Object.assign(t6, v3) }));
95363
95419
  }
95364
95420
  return i4 && i4.setItem(e4, []), { blobsObj: v3 };
@@ -95373,11 +95429,11 @@ creating temp style for access.`), r3 = $h(e3);
95373
95429
  }), c3("cleared from sessionStorage:", u3);
95374
95430
  }
95375
95431
  };
95376
- }({ fetchUrl: w2, findStyleSheetByUrl: f2, getCorsFreeStyleSheet: Vh, extractResourcesFromStyleSheet: m2, extractResourcesFromSvg: k2, log: h2.log, sessionCache: d2, compress: s3, serialize: l2 }), x2 = function({ processResource: e3, aggregateResourceUrlsAndBlobs: t4 }) {
95432
+ }({ fetchUrl: w2, findStyleSheetByUrl: f2, getCorsFreeStyleSheet: Zh, extractResourcesFromStyleSheet: m2, extractResourcesFromSvg: k2, log: h2.log, sessionCache: d2, compress: s3, serialize: l2 }), x2 = function({ processResource: e3, aggregateResourceUrlsAndBlobs: t4 }) {
95377
95433
  return function n4({ documents: r4, urls: o4, forceCreateStyle: i4 = false, skipResources: a4 }) {
95378
95434
  return Promise.all(o4.map((t5) => e3({ url: t5, documents: r4, getResourceUrlsAndBlobs: n4, forceCreateStyle: i4, skipResources: a4 }))).then((e4) => t4(e4));
95379
95435
  };
95380
- }({ processResource: v2, aggregateResourceUrlsAndBlobs: Ql });
95436
+ }({ processResource: v2, aggregateResourceUrlsAndBlobs: Jl });
95381
95437
  return function t4(n4, r4 = n4.location.href) {
95382
95438
  const i4 = function(e3) {
95383
95439
  const t5 = e3.querySelectorAll("base")[0] && e3.querySelectorAll("base")[0].href;
@@ -95465,12 +95521,12 @@ creating temp style for access.`), r3 = $h(e3);
95465
95521
  return o4 += e3.length, t6;
95466
95522
  });
95467
95523
  return i5;
95468
- }(u2), { cdt: p3, docRoots: m3, canvasElements: f3, frames: k3, inlineFrames: w3, crossFrames: v3, linkUrls: S2, imageBlobs: C2, videoBlobs: z2 } = Kl(n4, i4, h2), A2 = Wh(m3.map((e3) => g2(e3))), T2 = Wh(m3.map((e3) => b2(e3))), O2 = (P2 = i4, function(e3) {
95524
+ }(u2), { cdt: p3, docRoots: m3, canvasElements: f3, frames: k3, inlineFrames: w3, crossFrames: v3, linkUrls: S2, imageBlobs: C2, videoBlobs: z2 } = Hl(n4, i4, h2), A2 = $h(m3.map((e3) => g2(e3))), T2 = $h(m3.map((e3) => b2(e3))), O2 = (P2 = i4, function(e3) {
95469
95525
  try {
95470
95526
  return _(y(e3, P2));
95471
95527
  } catch (e4) {
95472
95528
  }
95473
- }), L2 = Xl(Array.from(S2).concat(Array.from(A2)).concat(Array.from(T2))).map((e3) => e3.trim()).reduce((e3, t5) => {
95529
+ }), L2 = Ql(Array.from(S2).concat(Array.from(A2)).concat(Array.from(T2))).map((e3) => e3.trim()).reduce((e3, t5) => {
95474
95530
  e3.push(t5);
95475
95531
  const n5 = function(e4) {
95476
95532
  return e4 && e4.replace(/(\\[0-9a-fA-F]{1,6}\s?)/g, (e5) => {
@@ -95479,18 +95535,18 @@ creating temp style for access.`), r3 = $h(e3);
95479
95535
  }) || e4;
95480
95536
  }(t5);
95481
95537
  return n5 !== t5 && e3.push(n5), e3;
95482
- }, []).map(O2).map(Mh).filter(Hh), E2 = o3 ? Promise.resolve({ resourceUrls: L2, blobsObj: {} }) : x2({ documents: m3, urls: L2, skipResources: a3 }).then((e3) => (d2 && d2.persist(), e3)), R2 = Zh(f3, { log: h2.log, compress: s3, serialize: l2 }), N2 = E2.then((e3) => function(e4, { doc: t5, fetchedBlobs: n5, log: r5, compress: o4, serialize: i5, sessionCache: a4 }) {
95538
+ }, []).map(O2).map(qh).filter(Gh), E2 = o3 ? Promise.resolve({ resourceUrls: L2, blobsObj: {} }) : x2({ documents: m3, urls: L2, skipResources: a3 }).then((e3) => (d2 && d2.persist(), e3)), R2 = Kh(f3, { log: h2.log, compress: s3, serialize: l2 }), N2 = E2.then((e3) => function(e4, { doc: t5, fetchedBlobs: n5, log: r5, compress: o4, serialize: i5, sessionCache: a4 }) {
95483
95539
  if (!t5.body || 0 === e4.length)
95484
95540
  return Promise.resolve([]);
95485
95541
  const s4 = new Set(Object.keys(n5)), l3 = e4.filter(({ url: e5 }) => !(s4.has("blob:" + e5) || a4 && a4.getItem("blob:" + e5))), c4 = t5.createElement("canvas");
95486
95542
  c4.style.display = "none";
95487
- const u3 = $l(t5.body);
95543
+ const u3 = Vl(t5.body);
95488
95544
  return u3.appendChild(c4), Promise.all(l3.map(({ element: e5, url: t6, cdtNode: n6 }) => {
95489
95545
  try {
95490
- return c4.width = e5.naturalWidth, c4.height = e5.naturalHeight, c4.getContext("2d").drawImage($l.unwrap(e5), 0, 0), Zh([{ url: t6, element: c4, cdtNode: n6 }], { log: r5, compress: o4, serialize: i5 });
95546
+ return c4.width = e5.naturalWidth, c4.height = e5.naturalHeight, c4.getContext("2d").drawImage(Vl.unwrap(e5), 0, 0), Kh([{ url: t6, element: c4, cdtNode: n6 }], { log: r5, compress: o4, serialize: i5 });
95491
95547
  } catch (e6) {
95492
95548
  }
95493
- })).then((e5) => Wh(e5)).catch().finally(() => {
95549
+ })).then((e5) => $h(e5)).catch().finally(() => {
95494
95550
  u3.removeChild(c4);
95495
95551
  });
95496
95552
  }(C2, { fetchedBlobs: e3.blobsObj, doc: n4, log: h2.log, compress: s3, serialize: l2, sessionCache: d2 })), j2 = E2.then((e3) => function(e4, { doc: t5, fetchedBlobs: n5, compress: r5, serialize: o4, sessionCache: i5 }) {
@@ -95503,12 +95559,12 @@ creating temp style for access.`), r3 = $h(e3);
95503
95559
  const a5 = new MediaRecorder(n6, { mimeType: "video/webm" });
95504
95560
  a5.addEventListener("dataavailable", (n7) => {
95505
95561
  a5.stop(), e5.pause(), n7.data.arrayBuffer().then((e6) => {
95506
- const a6 = Fh({ type: n7.data.type, value: e6, compress: r5, serialize: o4 });
95562
+ const a6 = Uh({ type: n7.data.type, value: e6, compress: r5, serialize: o4 });
95507
95563
  a6.url = t6, i6(a6);
95508
95564
  });
95509
95565
  }, { once: true }), e5.play(), a5.start(), setTimeout(() => a5.requestData(), 1e3);
95510
95566
  });
95511
- })).then((e5) => Wh(e5));
95567
+ })).then((e5) => $h(e5));
95512
95568
  }(z2, { fetchedBlobs: e3.blobsObj, doc: n4, log: h2.log, compress: s3, serialize: l2, sessionCache: d2 })), I2 = k3.map(({ element: e3, url: n5 }) => t4(e3.contentDocument, n5)), D2 = w3.map(({ element: e3, url: n5 }) => t4(e3.contentDocument, n5));
95513
95569
  var P2;
95514
95570
  return Promise.all([E2, R2, N2, j2, ...I2, ...D2]).then(function(t5) {
@@ -95541,11 +95597,11 @@ creating temp style for access.`), r3 = $h(e3);
95541
95597
  function B2(e3) {
95542
95598
  return n4.defaultView && n4.defaultView.frameElement && n4.defaultView.frameElement.getAttribute(e3);
95543
95599
  }
95544
- }(t3).then((e3) => (h2.log("processPage end"), e3.scriptVersion = "4.15.1", e3));
95600
+ }(t3).then((e3) => (h2.log("processPage end"), e3.scriptVersion = "4.15.3", e3));
95545
95601
  }, window[x], "domSnapshotResult");
95546
95602
  return function(e3) {
95547
95603
  try {
95548
- return JSON.stringify(Gh(e3)(e3));
95604
+ return JSON.stringify(Yh(e3)(e3));
95549
95605
  } catch (e4) {
95550
95606
  return JSON.stringify({ status: "ERROR", error: e4.message });
95551
95607
  }
@@ -119541,12 +119597,29 @@ var require_extract_git_info = __commonJS({
119541
119597
  return mod && mod.__esModule ? mod : { "default": mod };
119542
119598
  };
119543
119599
  Object.defineProperty(exports, "__esModule", { value: true });
119544
- exports.isISODate = exports.extractBranchingTimestamp = exports.extractBuildIdFromCI = exports.extractGitRepo = exports.extractGitBranch = exports.extractLatestCommitInfo = exports.cacheKey = void 0;
119600
+ exports.extractBranchLookupFallbackList = exports.isISODate = exports.extractBranchingTimestamp = exports.extractBuildIdFromCI = exports.extractGitRepo = exports.extractGitBranch = exports.extractLatestCommitInfo = exports.getPrimaryRemoteName = exports.cacheKey = void 0;
119545
119601
  var utils34 = __importStar(require_browser3());
119546
119602
  var fs_1 = __importDefault((init_fs(), __toCommonJS(fs_exports)));
119547
119603
  var path_1 = __importDefault(require_path_browserify());
119548
119604
  var logger_1 = require_browser6();
119605
+ var isDebugMode = () => process.env.RUNNER_DEBUG === "1";
119549
119606
  exports.cacheKey = "default";
119607
+ exports.getPrimaryRemoteName = utils34.general.cachify(async function({ execOptions, logger = (0, logger_1.makeLogger)() }) {
119608
+ const result = await executeWithLog("git remote show", { execOptions, logger });
119609
+ if (result.stderr) {
119610
+ logger.log(`Error during extracting remotes from git`, result.stderr);
119611
+ return "origin";
119612
+ }
119613
+ const remotes = result.stdout.trim().split(/\s+/);
119614
+ const remote = remotes.includes("origin") ? "origin" : remotes[0] || "origin";
119615
+ logger.log(`Primary remote name: ${remote}`);
119616
+ return remote;
119617
+ }, (args) => {
119618
+ var _a;
119619
+ return {
119620
+ cwd: (_a = args[0].execOptions) === null || _a === void 0 ? void 0 : _a.cwd
119621
+ };
119622
+ });
119550
119623
  exports.extractLatestCommitInfo = utils34.general.cachify(async function({ execOptions, logger = (0, logger_1.makeLogger)() }) {
119551
119624
  let result;
119552
119625
  try {
@@ -119571,7 +119644,8 @@ var require_extract_git_info = __commonJS({
119571
119644
  async function extractGithubPullRequestLastCommitSha() {
119572
119645
  var _a, _b, _c;
119573
119646
  if (((_a = process.env.GITHUB_EVENT_NAME) === null || _a === void 0 ? void 0 : _a.startsWith("pull_request")) && process.env.GITHUB_EVENT_PATH) {
119574
- await executeWithLog(`git fetch origin --depth=2`, { execOptions, logger });
119647
+ const remoteName = await (0, exports.getPrimaryRemoteName)({ execOptions, logger });
119648
+ await executeWithLog(`git fetch ${remoteName} --depth=2`, { execOptions, logger });
119575
119649
  const event = await fs_1.default.promises.readFile(process.env.GITHUB_EVENT_PATH, "utf-8").then(JSON.parse);
119576
119650
  return (_c = (_b = event === null || event === void 0 ? void 0 : event.pull_request) === null || _b === void 0 ? void 0 : _b.head) === null || _c === void 0 ? void 0 : _c.sha;
119577
119651
  }
@@ -119592,7 +119666,10 @@ var require_extract_git_info = __commonJS({
119592
119666
  logger.log(`Extracted current git branch: "${branch}"`);
119593
119667
  return branch;
119594
119668
  }
119595
- }, () => exports.cacheKey);
119669
+ }, (args) => {
119670
+ var _a, _b, _c;
119671
+ return { cwd: (_b = (_a = args[0]) === null || _a === void 0 ? void 0 : _a.execOptions) === null || _b === void 0 ? void 0 : _b.cwd, ignoreGitBranching: (_c = args[0]) === null || _c === void 0 ? void 0 : _c.ignoreGitBranching };
119672
+ });
119596
119673
  exports.extractGitRepo = utils34.general.cachify(async function({ execOptions, logger = (0, logger_1.makeLogger)() }) {
119597
119674
  const remotes = await extractRemotes();
119598
119675
  logger.log(`Extracted remotes from git: ${remotes}`);
@@ -119632,21 +119709,40 @@ var require_extract_git_info = __commonJS({
119632
119709
  exports.extractBranchingTimestamp = utils34.general.cachify(async function({ branchName, parentBranchName, execOptions, logger = (0, logger_1.makeLogger)() }) {
119633
119710
  var _a;
119634
119711
  logger = logger.extend({ tags: [`extract-branching-timestamp-${utils34.general.shortid()}`] });
119712
+ const remoteName = await (0, exports.getPrimaryRemoteName)({ execOptions, logger });
119635
119713
  const command = `HASH=$(git merge-base ${branchName} ${parentBranchName}) && git show -q --format=%aI $HASH`;
119636
119714
  let result = await executeWithLog(command, { execOptions, logger });
119637
- for (let i = 0; i < 2; i++) {
119638
- if (result.stderr) {
119639
- const [, missingBranch] = (_a = result.stderr.match(/Not a valid object name ([^\s]+)/)) !== null && _a !== void 0 ? _a : [];
119640
- if (missingBranch) {
119641
- result = await executeWithLog(`git fetch origin ${missingBranch}:${missingBranch} && ${command}`, {
119642
- execOptions,
119643
- logger
119644
- });
119715
+ if (result.stderr) {
119716
+ const commandWithRemoteRefs = `HASH=$(git merge-base ${remoteName}/${branchName} ${remoteName}/${parentBranchName}) && git show -q --format=%aI $HASH`;
119717
+ result = await executeWithLog(commandWithRemoteRefs, { execOptions, logger });
119718
+ }
119719
+ if (result.stderr) {
119720
+ const remoteBranches = await getAllRemoteBranches({ execOptions, logger });
119721
+ for (let i = 0; i < 2; i++) {
119722
+ if (result.stderr) {
119723
+ const [, missingBranch] = (_a = result.stderr.match(/Not a valid object name ([^\s]+)/)) !== null && _a !== void 0 ? _a : [];
119724
+ if (missingBranch) {
119725
+ const normalizedBranchName = missingBranch.replace(new RegExp(`^${remoteName}/`), "");
119726
+ if (!remoteBranches.has(normalizedBranchName)) {
119727
+ logger.log(`Branch ${missingBranch} not found on remote, skipping fetch`);
119728
+ return void 0;
119729
+ }
119730
+ logger.log(`Fetching missing branch ${missingBranch} from remote`);
119731
+ const command2 = `HASH=$(git merge-base ${branchName} ${parentBranchName}) && git show -q --format=%aI $HASH`;
119732
+ result = await executeWithLog(`git fetch ${remoteName} ${normalizedBranchName}:${normalizedBranchName} --filter=tree:0 && ${command2}`, {
119733
+ execOptions,
119734
+ logger
119735
+ });
119736
+ }
119645
119737
  }
119646
119738
  }
119647
119739
  }
119648
119740
  if (!result.stdout) {
119649
- result = await executeWithLog(`git fetch origin --unshallow && ${command}`, { execOptions, logger });
119741
+ const command2 = `HASH=$(git merge-base ${branchName} ${parentBranchName}) && git show -q --format=%aI $HASH`;
119742
+ result = await executeWithLog(`git fetch ${remoteName} --unshallow --filter=tree:0 && ${command2}`, {
119743
+ execOptions,
119744
+ logger
119745
+ });
119650
119746
  }
119651
119747
  const timestamp = result.stdout.replace(/\s/g, "");
119652
119748
  if (isISODate2(timestamp)) {
@@ -119655,7 +119751,14 @@ var require_extract_git_info = __commonJS({
119655
119751
  } else {
119656
119752
  logger.log(`Error during extracting merge timestamp: git branching timestamp is an invalid ISO date string: ${timestamp}. stderr: ${result.stderr}, stdout: ${result.stdout}`);
119657
119753
  }
119658
- }, () => exports.cacheKey);
119754
+ }, (args) => {
119755
+ var _a;
119756
+ return {
119757
+ branchName: args[0].branchName,
119758
+ parentBranchName: args[0].parentBranchName,
119759
+ cwd: (_a = args[0].execOptions) === null || _a === void 0 ? void 0 : _a.cwd
119760
+ };
119761
+ });
119659
119762
  async function executeWithLog(command, { execOptions, logger = (0, logger_1.makeLogger)() } = {
119660
119763
  execOptions: {},
119661
119764
  logger: (0, logger_1.makeLogger)()
@@ -119671,6 +119774,365 @@ var require_extract_git_info = __commonJS({
119671
119774
  return /\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\+\d{2}:\d{2})?/.test(str);
119672
119775
  }
119673
119776
  exports.isISODate = isISODate2;
119777
+ async function parallelWithLimit(items, concurrency, fn) {
119778
+ const results = [];
119779
+ for (let i = 0; i < items.length; i += concurrency) {
119780
+ const batch = items.slice(i, i + concurrency);
119781
+ const batchResults = await Promise.all(batch.map(fn));
119782
+ results.push(...batchResults);
119783
+ }
119784
+ return results;
119785
+ }
119786
+ var getAllRemoteBranches = utils34.general.cachify(
119787
+ async function({ execOptions, logger }) {
119788
+ var _a;
119789
+ if (isDebugMode()) {
119790
+ logger.log("[getAllRemoteBranches] Starting git ls-remote to fetch all remote branches...");
119791
+ logger.log("[getAllRemoteBranches] execOptions.cwd:", (execOptions === null || execOptions === void 0 ? void 0 : execOptions.cwd) || "undefined");
119792
+ }
119793
+ try {
119794
+ const remoteName = await (0, exports.getPrimaryRemoteName)({ execOptions, logger });
119795
+ const startTime = Date.now();
119796
+ const result = await executeWithLog(`git ls-remote --heads ${remoteName}`, {
119797
+ execOptions,
119798
+ logger
119799
+ });
119800
+ if (isDebugMode()) {
119801
+ logger.log(`[getAllRemoteBranches] git ls-remote completed in ${Date.now() - startTime}ms`);
119802
+ logger.log("[getAllRemoteBranches] stdout length:", ((_a = result.stdout) === null || _a === void 0 ? void 0 : _a.length) || 0);
119803
+ logger.log("[getAllRemoteBranches] stderr:", result.stderr || "(empty)");
119804
+ logger.log("[getAllRemoteBranches] exit code:", result.code);
119805
+ }
119806
+ const branches = /* @__PURE__ */ new Set();
119807
+ if (result.stdout.trim()) {
119808
+ const lines = result.stdout.split("\n");
119809
+ if (isDebugMode()) {
119810
+ logger.log(`[getAllRemoteBranches] Processing ${lines.length} lines from git ls-remote output`);
119811
+ }
119812
+ lines.forEach((line, index) => {
119813
+ const match = line.match(/refs\/heads\/(.+)$/);
119814
+ if (match) {
119815
+ const branchName = match[1];
119816
+ branches.add(branchName);
119817
+ if (isDebugMode() && index < 5) {
119818
+ logger.log(`[getAllRemoteBranches] Found branch: ${branchName}`);
119819
+ }
119820
+ }
119821
+ });
119822
+ if (isDebugMode() && lines.length > 5) {
119823
+ logger.log(`[getAllRemoteBranches] ... and ${lines.length - 5} more branches`);
119824
+ }
119825
+ } else {
119826
+ logger.log("[getAllRemoteBranches] WARNING: git ls-remote returned empty output");
119827
+ }
119828
+ logger.log(`[getAllRemoteBranches] \u2713 Found ${branches.size} remote branches via git ls-remote`);
119829
+ if (isDebugMode()) {
119830
+ const branchList = Array.from(branches).slice(0, 20);
119831
+ logger.log("[getAllRemoteBranches] Branch list:", branchList.join(", ") + (branches.size > 20 ? ` ... and ${branches.size - 20} more` : ""));
119832
+ }
119833
+ return branches;
119834
+ } catch (err) {
119835
+ logger.log("[getAllRemoteBranches] \u2717 ERROR: Could not fetch remote branches list");
119836
+ logger.log("[getAllRemoteBranches] Error details:", err);
119837
+ logger.log("[getAllRemoteBranches] Error type:", typeof err);
119838
+ if (err instanceof Error) {
119839
+ logger.log("[getAllRemoteBranches] Error message:", err.message);
119840
+ logger.log("[getAllRemoteBranches] Error stack:", err.stack);
119841
+ }
119842
+ return /* @__PURE__ */ new Set();
119843
+ }
119844
+ },
119845
+ // Custom cache key generator - only cache by cwd, not by logger instance
119846
+ (args) => {
119847
+ var _a;
119848
+ return { cwd: (_a = args[0].execOptions) === null || _a === void 0 ? void 0 : _a.cwd };
119849
+ },
119850
+ 5 * 60 * 1e3
119851
+ );
119852
+ async function executeFetchStrategy(isShallow, execOptions, logger) {
119853
+ const remoteName = await (0, exports.getPrimaryRemoteName)({ execOptions, logger });
119854
+ if (isShallow) {
119855
+ logger.log(`Shallow repository detected, unshallowing to enable topology discovery...`);
119856
+ await executeWithLog(`git fetch ${remoteName} --unshallow --filter=tree:0`, {
119857
+ execOptions,
119858
+ logger
119859
+ });
119860
+ logger.log(`Repository unshallowed successfully`);
119861
+ } else {
119862
+ logger.log(`Non-shallow clone detected, fetching all remote branches for topology discovery...`);
119863
+ await executeWithLog(`git fetch ${remoteName} --filter=tree:0`, {
119864
+ execOptions,
119865
+ logger
119866
+ });
119867
+ logger.log(`All remote branches fetched successfully`);
119868
+ }
119869
+ }
119870
+ async function ensureRemoteBranchesAvailable(branchName, isShallow, execOptions, logger) {
119871
+ try {
119872
+ const remoteName = await (0, exports.getPrimaryRemoteName)({ execOptions, logger });
119873
+ const symbolicResult = await executeWithLog(`git rev-parse --abbrev-ref ${branchName}@{upstream} `, {
119874
+ execOptions,
119875
+ logger
119876
+ });
119877
+ const isRemoteBranch = symbolicResult.stdout.trim().startsWith(`${remoteName}/`);
119878
+ if (!isRemoteBranch) {
119879
+ return;
119880
+ }
119881
+ logger.log(`Detected remote branch scenario, fetching ancestor branches...`);
119882
+ await executeWithLog(`git config remote.${remoteName}.fetch "+refs/heads/*:refs/remotes/${remoteName}/*"`, {
119883
+ execOptions,
119884
+ logger
119885
+ });
119886
+ await executeFetchStrategy(isShallow, execOptions, logger);
119887
+ logger.log(`Remote branches fetched successfully for complete ancestor check`);
119888
+ } catch (err) {
119889
+ logger.log("Note: Could not determine if branch is remote, continuing with topology discovery", err);
119890
+ }
119891
+ }
119892
+ exports.extractBranchLookupFallbackList = utils34.general.cachify(async function({ gitBranchName, execOptions, logger = (0, logger_1.makeLogger)(), enableShallowClone = true }) {
119893
+ const functionStartTime = Date.now();
119894
+ logger = logger.extend({ tags: [`extract-branch-fallback-list-${utils34.general.shortid()}`] });
119895
+ logger.log(`[PERF] extractBranchLookupFallbackList started for branch: ${gitBranchName}`);
119896
+ try {
119897
+ const shallowCheckStartTime = Date.now();
119898
+ const shallowCheckResult = await executeWithLog("git rev-parse --is-shallow-repository", {
119899
+ execOptions,
119900
+ logger
119901
+ });
119902
+ logger.log(`[PERF] Shallow check took ${Date.now() - shallowCheckStartTime}ms`);
119903
+ const isShallow = shallowCheckResult.stdout.trim() === "true";
119904
+ if (!enableShallowClone && isShallow) {
119905
+ logger.log("Shallow clone detected and APPLITOOLS_SKIP_BRANCH_LOOKUP_IN_SHALLOW_CLONE is enabled, skipping branch lookup");
119906
+ return void 0;
119907
+ }
119908
+ const ensureRemoteStartTime = Date.now();
119909
+ await ensureRemoteBranchesAvailable(gitBranchName, isShallow, execOptions, logger);
119910
+ logger.log(`[PERF] ensureRemoteBranchesAvailable took ${Date.now() - ensureRemoteStartTime}ms`);
119911
+ const topologyStartTime = Date.now();
119912
+ logger.log(`Discovering ancestor branches using git topology for ${gitBranchName}...`);
119913
+ const remoteName = await (0, exports.getPrimaryRemoteName)({ execOptions, logger });
119914
+ const logResult = await executeWithLog(`git log --first-parent --simplify-by-decoration --format="%D" ${gitBranchName}`, { execOptions, logger });
119915
+ const foundBranches = /* @__PURE__ */ new Set();
119916
+ if (!logResult.stderr && logResult.stdout.trim()) {
119917
+ const rawLines = logResult.stdout.split("\n");
119918
+ for (const line of rawLines) {
119919
+ const refs = line.split(",").map((r) => r.trim());
119920
+ for (const ref of refs) {
119921
+ if (ref.includes("tag:"))
119922
+ continue;
119923
+ const cleanRef = ref.replace("HEAD -> ", "").replace(new RegExp(`^${remoteName}/`), "");
119924
+ if (cleanRef && cleanRef !== gitBranchName && cleanRef !== "HEAD")
119925
+ foundBranches.add(cleanRef);
119926
+ }
119927
+ }
119928
+ }
119929
+ let allBranches = Array.from(foundBranches);
119930
+ logger.log(`[PERF] Topology discovery took ${Date.now() - topologyStartTime}ms`);
119931
+ if (isDebugMode()) {
119932
+ logger.log(`Topology discovered ${allBranches.length} potential ancestor branches: ${allBranches.join(", ")}`);
119933
+ } else {
119934
+ logger.log(`Topology discovered ${allBranches.length} potential ancestor branches`);
119935
+ }
119936
+ const remoteBranchesStartTime = Date.now();
119937
+ if (isDebugMode()) {
119938
+ logger.log("[Remote Filtering] ========================================");
119939
+ logger.log("[Remote Filtering] Starting remote branch filtering...");
119940
+ logger.log("[Remote Filtering] Branches to check:", allBranches.join(", "));
119941
+ logger.log("[Remote Filtering] Number of branches before filtering:", allBranches.length);
119942
+ }
119943
+ try {
119944
+ if (isDebugMode()) {
119945
+ logger.log("[Remote Filtering] Calling getAllRemoteBranches...");
119946
+ }
119947
+ const remoteBranches = await getAllRemoteBranches({ execOptions, logger });
119948
+ if (isDebugMode()) {
119949
+ logger.log("[Remote Filtering] getAllRemoteBranches returned");
119950
+ logger.log("[Remote Filtering] Remote branches size:", remoteBranches.size);
119951
+ const remoteBranchList = Array.from(remoteBranches).slice(0, 20);
119952
+ logger.log("[Remote Filtering] Remote branches:", remoteBranchList.join(", ") + (remoteBranches.size > 20 ? ` ... and ${remoteBranches.size - 20} more` : ""));
119953
+ }
119954
+ if (remoteBranches.size > 0) {
119955
+ const beforeFilter = allBranches.length;
119956
+ if (isDebugMode()) {
119957
+ logger.log("[Remote Filtering] Filtering branches against remote...");
119958
+ allBranches.forEach((branch) => {
119959
+ const exists = remoteBranches.has(branch);
119960
+ logger.log(`[Remote Filtering] Branch "${branch}": ${exists ? "\u2713 EXISTS" : "\u2717 MISSING"} on remote`);
119961
+ });
119962
+ }
119963
+ allBranches = allBranches.filter((branch) => remoteBranches.has(branch));
119964
+ const filtered = beforeFilter - allBranches.length;
119965
+ if (isDebugMode()) {
119966
+ logger.log("[Remote Filtering] Branches after filtering:", allBranches.join(", "));
119967
+ logger.log("[Remote Filtering] Number of branches after filtering:", allBranches.length);
119968
+ }
119969
+ if (filtered > 0) {
119970
+ logger.log(`[Remote Filtering] \u2713 Filtered out ${filtered} branches not found on remote`);
119971
+ } else if (isDebugMode()) {
119972
+ logger.log("[Remote Filtering] No branches were filtered out (all exist on remote)");
119973
+ }
119974
+ } else {
119975
+ logger.log("[Remote Filtering] WARNING: No remote branches found, skipping filter");
119976
+ }
119977
+ } catch (err) {
119978
+ logger.log("[Remote Filtering] \u2717 ERROR: Could not filter by remote branches");
119979
+ if (isDebugMode()) {
119980
+ logger.log("[Remote Filtering] Error details:", err);
119981
+ logger.log("[Remote Filtering] Continuing with all discovered branches");
119982
+ }
119983
+ }
119984
+ logger.log(`[Remote Filtering] [PERF] Remote branch filtering took ${Date.now() - remoteBranchesStartTime}ms`);
119985
+ if (isDebugMode()) {
119986
+ logger.log("[Remote Filtering] ========================================");
119987
+ }
119988
+ const filteringStartTime = Date.now();
119989
+ logger.log(`Filtering out sibling branches to keep only true ancestors...`);
119990
+ const ANCESTOR_CHECK_CONCURRENCY = 10;
119991
+ const ancestorChecks = await parallelWithLimit(allBranches, ANCESTOR_CHECK_CONCURRENCY, async (candidateBranch) => {
119992
+ try {
119993
+ const isAncestorResult = await executeWithLog(`git merge-base --is-ancestor ${candidateBranch} ${gitBranchName}`, {
119994
+ execOptions,
119995
+ logger
119996
+ });
119997
+ if (isAncestorResult.code === 0) {
119998
+ logger.log(`\u2713 ${candidateBranch} is a true ancestor`);
119999
+ return { branch: candidateBranch, isAncestor: true };
120000
+ } else if (isAncestorResult.code === 1) {
120001
+ logger.log(`\u2717 ${candidateBranch} is a sibling, not an ancestor`);
120002
+ return { branch: candidateBranch, isAncestor: false };
120003
+ } else {
120004
+ logger.log(`\u26A0 Could not determine if ${candidateBranch} is an ancestor (exit code: ${isAncestorResult.code}), including it to be safe`);
120005
+ return { branch: candidateBranch, isAncestor: true };
120006
+ }
120007
+ } catch (err) {
120008
+ logger.log(`Error checking if ${candidateBranch} is a true ancestor:`, err);
120009
+ return { branch: candidateBranch, isAncestor: true };
120010
+ }
120011
+ });
120012
+ const trueAncestors = ancestorChecks.filter((result) => result.isAncestor).map((result) => result.branch);
120013
+ logger.log(`[PERF] Sibling filtering took ${Date.now() - filteringStartTime}ms`);
120014
+ logger.log(`Filtered to ${trueAncestors.length} true ancestors: ${trueAncestors.join(", ")}`);
120015
+ const timestampStartTime = Date.now();
120016
+ const branchesWithTimestamps = await Promise.all(trueAncestors.map(async (ancestorBranch) => {
120017
+ const timestamp = await (0, exports.extractBranchingTimestamp)({
120018
+ branchName: gitBranchName,
120019
+ parentBranchName: ancestorBranch,
120020
+ execOptions,
120021
+ logger
120022
+ });
120023
+ return timestamp ? { branchName: ancestorBranch, latestViableTimestamp: timestamp } : null;
120024
+ }));
120025
+ logger.log(`[PERF] Timestamp extraction took ${Date.now() - timestampStartTime}ms`);
120026
+ const validBranches = branchesWithTimestamps.filter((item) => item !== null).sort((a, b) => {
120027
+ const timeDiff = new Date(b.latestViableTimestamp).getTime() - new Date(a.latestViableTimestamp).getTime();
120028
+ if (timeDiff === 0) {
120029
+ return a.branchName.localeCompare(b.branchName);
120030
+ }
120031
+ return timeDiff;
120032
+ });
120033
+ try {
120034
+ const firstCommitResult = await executeWithLog("git rev-list --max-parents=0 HEAD", {
120035
+ execOptions,
120036
+ logger
120037
+ });
120038
+ if (firstCommitResult.stdout.trim()) {
120039
+ const firstCommitHash = firstCommitResult.stdout.trim().split("\n")[0];
120040
+ logger.log(`Found root commit: ${firstCommitHash}`);
120041
+ let branchesContainingRootResult = await executeWithLog(`git branch -r --contains ${firstCommitHash}`, {
120042
+ execOptions,
120043
+ logger
120044
+ });
120045
+ if (!branchesContainingRootResult.stdout.trim()) {
120046
+ logger.log("No remote branches contain root commit, trying local branches");
120047
+ branchesContainingRootResult = await executeWithLog(`git branch --contains ${firstCommitHash}`, {
120048
+ execOptions,
120049
+ logger
120050
+ });
120051
+ }
120052
+ if (branchesContainingRootResult.stdout.trim()) {
120053
+ const branchesContainingRoot = branchesContainingRootResult.stdout.split("\n").map((line) => line.trim()).filter((line) => line && !line.includes("->") && !line.includes("HEAD")).map((line) => line.replace(new RegExp(`^${remoteName}/`), "").replace(/^\* /, ""));
120054
+ const commonRootNames = ["main", "master", "develop", "trunk"];
120055
+ let rootBranch = null;
120056
+ for (const commonName of commonRootNames) {
120057
+ if (branchesContainingRoot.includes(commonName)) {
120058
+ rootBranch = commonName;
120059
+ logger.log(`Found root branch using common name: ${rootBranch}`);
120060
+ break;
120061
+ }
120062
+ }
120063
+ if (!rootBranch && branchesContainingRoot.length > 0) {
120064
+ const branchTimestamps = await Promise.all(branchesContainingRoot.slice(0, 10).map(async (branch) => {
120065
+ try {
120066
+ const branchTimestampResult = await executeWithLog(`git log -1 --format=%aI ${branch}`, {
120067
+ execOptions,
120068
+ logger
120069
+ });
120070
+ return {
120071
+ branch,
120072
+ timestamp: branchTimestampResult.stdout.trim()
120073
+ };
120074
+ } catch {
120075
+ return null;
120076
+ }
120077
+ }));
120078
+ const validTimestamps = branchTimestamps.filter((item) => item !== null && isISODate2(item.timestamp)).sort((a, b) => new Date(a.timestamp).getTime() - new Date(b.timestamp).getTime());
120079
+ if (validTimestamps.length > 0) {
120080
+ rootBranch = validTimestamps[0].branch;
120081
+ logger.log(`Found root branch by oldest timestamp: ${rootBranch}`);
120082
+ }
120083
+ }
120084
+ if (rootBranch && rootBranch !== gitBranchName) {
120085
+ const alreadyIncluded = validBranches.some((b) => b.branchName === rootBranch);
120086
+ if (!alreadyIncluded) {
120087
+ try {
120088
+ const isAncestorResult = await executeWithLog(`git merge-base --is-ancestor ${rootBranch} ${gitBranchName}`, {
120089
+ execOptions,
120090
+ logger
120091
+ });
120092
+ if (isAncestorResult.code === 0) {
120093
+ logger.log(`Root branch ${rootBranch} is a true ancestor, adding it as final fallback`);
120094
+ const rootTimestamp = await (0, exports.extractBranchingTimestamp)({
120095
+ branchName: gitBranchName,
120096
+ parentBranchName: rootBranch,
120097
+ execOptions,
120098
+ logger
120099
+ });
120100
+ if (rootTimestamp) {
120101
+ validBranches.push({
120102
+ branchName: rootBranch,
120103
+ latestViableTimestamp: rootTimestamp
120104
+ });
120105
+ logger.log(`Added root branch ${rootBranch} with timestamp ${rootTimestamp}`);
120106
+ }
120107
+ } else {
120108
+ logger.log(`Root branch ${rootBranch} is not an ancestor of ${gitBranchName}, skipping`);
120109
+ }
120110
+ } catch (err) {
120111
+ logger.log(`Error checking if root branch ${rootBranch} is an ancestor:`, err);
120112
+ }
120113
+ } else {
120114
+ logger.log(`Root branch ${rootBranch} already included in the list`);
120115
+ }
120116
+ }
120117
+ }
120118
+ }
120119
+ } catch (err) {
120120
+ logger.log("Failed to detect and add root branch, continuing without it", err);
120121
+ }
120122
+ logger.log(`[PERF] extractBranchLookupFallbackList completed in ${Date.now() - functionStartTime}ms total`);
120123
+ logger.log("Successfully extracted branch lookup fallback list", JSON.stringify(validBranches));
120124
+ return validBranches.length > 0 ? validBranches : void 0;
120125
+ } catch (err) {
120126
+ logger.log("Error during extracting branch lookup fallback list", err);
120127
+ return void 0;
120128
+ }
120129
+ }, (args) => {
120130
+ var _a;
120131
+ return {
120132
+ gitBranchName: args[0].gitBranchName,
120133
+ cwd: (_a = args[0].execOptions) === null || _a === void 0 ? void 0 : _a.cwd
120134
+ };
120135
+ });
119674
120136
  }
119675
120137
  });
119676
120138
 
@@ -119736,6 +120198,7 @@ var require_open_eyes4 = __commonJS({
119736
120198
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0;
119737
120199
  var _1, _2, _3, _4, _5;
119738
120200
  logger = logger.extend(mainLogger, { tags: [`eyes-${type}-${utils34.general.shortid()}`] });
120201
+ logger.log(`Opening Eyes in directory "${cwd}"`);
119739
120202
  const settings = { environments: config === null || config === void 0 ? void 0 : config.check.environments, ...config === null || config === void 0 ? void 0 : config.open, ...openSettings };
119740
120203
  const eyesServerSettings = (0, populate_eyes_server_settings_1.populateEyesServerSettings)(settings);
119741
120204
  logger.mask(eyesServerSettings.apiKey);
@@ -119795,6 +120258,7 @@ var require_open_eyes4 = __commonJS({
119795
120258
  }
119796
120259
  }
119797
120260
  const account = await core.getAccountInfo({ settings: eyesServerSettings, logger });
120261
+ await handleBranchFallbackList(account, settings, logger);
119798
120262
  const componentConcurrency = account.serverConcurrency.componentConcurrency;
119799
120263
  settings.sessionConcurrency = handleConcurrency({
119800
120264
  userConcurrency: concurrency,
@@ -119878,6 +120342,31 @@ var require_open_eyes4 = __commonJS({
119878
120342
  }
119879
120343
  }
119880
120344
  };
120345
+ async function handleBranchFallbackList(account, settings, logger) {
120346
+ var _a, _b;
120347
+ const scm = getScmSettings(account.scmSettings);
120348
+ if (!settings.ignoreGitBranching && scm.lookupFallbackList) {
120349
+ logger.log(`Extracting git branch name, ${cwd}`);
120350
+ settings.gitBranchName = await (0, extract_git_info_1.extractGitBranch)({
120351
+ execOptions: { cwd },
120352
+ logger,
120353
+ ignoreGitBranching: settings.ignoreGitBranching
120354
+ });
120355
+ logger.log(`Extracted git branch name: ${settings.gitBranchName}`);
120356
+ (_a = settings.branchName) !== null && _a !== void 0 ? _a : settings.branchName = settings.gitBranchName;
120357
+ } else {
120358
+ logger.log(`Skipping extraction of git branch name as ignoreGitBranching is set to true`);
120359
+ }
120360
+ if (settings.gitBranchName && !settings.ignoreGitBranching && scm.lookupFallbackList) {
120361
+ logger.log(`Extracting branch lookup fallback list for branch "${settings.gitBranchName}, ${cwd}"`);
120362
+ settings.branchLookupFallbackList = await (0, extract_git_info_1.extractBranchLookupFallbackList)({
120363
+ gitBranchName: `${settings.gitBranchName}`,
120364
+ enableShallowClone: (_b = scm.enableShallowClone) !== null && _b !== void 0 ? _b : false,
120365
+ execOptions: { cwd },
120366
+ logger
120367
+ });
120368
+ }
120369
+ }
119881
120370
  }
119882
120371
  exports.makeOpenEyes = makeOpenEyes;
119883
120372
  function refineMissingApiKeyException(error, sdk) {
@@ -119898,8 +120387,7 @@ var require_open_eyes4 = __commonJS({
119898
120387
  eyes_appium: void 0,
119899
120388
  eyes_selenium: void 0,
119900
120389
  eyes_universal: void 0,
119901
- eyes_capybara: void 0,
119902
- eyes_calabash: void 0
120390
+ eyes_capybara: void 0
119903
120391
  },
119904
120392
  java: {
119905
120393
  java_appium: void 0,
@@ -119951,6 +120439,23 @@ var require_open_eyes4 = __commonJS({
119951
120439
  function isRealBatchId(batchId) {
119952
120440
  return !!batchId && !batchId.startsWith("generated");
119953
120441
  }
120442
+ function getScmSettings(scmSettings) {
120443
+ var _a, _b;
120444
+ let enableShallowClone = (_a = scmSettings.isShallowCloneEnabled) !== null && _a !== void 0 ? _a : true;
120445
+ let lookupFallbackList = (_b = scmSettings.isFallbackBranchListEnabled) !== null && _b !== void 0 ? _b : false;
120446
+ const envLookupFallbackList = utils34.general.getEnvValue("ENABLE_BRANCH_LOOKUP_FALLBACK_LIST", "boolean");
120447
+ const envShallowClone = utils34.general.getEnvValue("SKIP_BRANCH_LOOKUP_IN_SHALLOW_CLONE", "boolean");
120448
+ if (envLookupFallbackList !== void 0) {
120449
+ lookupFallbackList = envLookupFallbackList;
120450
+ }
120451
+ if (envShallowClone !== void 0) {
120452
+ enableShallowClone = !envShallowClone;
120453
+ }
120454
+ return {
120455
+ lookupFallbackList,
120456
+ enableShallowClone
120457
+ };
120458
+ }
119954
120459
  function handleConcurrency({ userConcurrency, componentConcurrency, useServerConcurrency, shouldPrintConcurrencyWarning, logger }) {
119955
120460
  let sessionConcurrency;
119956
120461
  if (userConcurrency !== void 0 && userConcurrency <= 0) {
@@ -120462,7 +120967,7 @@ var require_package3 = __commonJS({
120462
120967
  "../core/package.json"(exports, module) {
120463
120968
  module.exports = {
120464
120969
  name: "@applitools/core",
120465
- version: "4.53.0",
120970
+ version: "4.54.0",
120466
120971
  homepage: "https://applitools.com",
120467
120972
  bugs: {
120468
120973
  url: "https://github.com/applitools/eyes.sdk.javascript1/issues"
@@ -120513,12 +121018,13 @@ var require_package3 = __commonJS({
120513
121018
  "build:bin": "yarn build && sea",
120514
121019
  "build:bin:zip": "zip -j ./bin/core.zip $(find ./bin -type f -not -name '*.zip' -not -name '*.tar.gz' | xargs)",
120515
121020
  "build:bin:tgz": "tar -czf ./bin/core.tar.gz $(find ./bin -type f -not -name '*.zip' -not -name '*.tar.gz' | xargs)",
120516
- test: "run --top-level mocha './test/**/*.spec.ts' --exclude './test/bin/**' --parallel --jobs ${MOCHA_JOBS:-15} --exit --require ./test/mocha-global-setup.js",
121021
+ test: "run --top-level mocha './test/**/*.spec.ts' --exclude './test/bin/**' --exclude './test/e2e/mocha-sync/**' --parallel --jobs ${MOCHA_JOBS:-15} --exit --require ./test/mocha-global-setup.js",
120517
121022
  "test:local": "MOCHA_OMIT_TAGS=sauce,browserstack run test",
120518
121023
  "test:sauce": "MOCHA_ONLY_TAGS=sauce,browserstack run test",
120519
121024
  "test:bin": "MOCHA_GROUP=bin run --top-level mocha './test/bin/**/*.spec.ts' --parallel --jobs ${MOCHA_JOBS:-15} --require ./test/mocha-global-setup.js",
120520
- "test:e2e": "MOCHA_GROUP=e2e run --top-level mocha './test/e2e/**/*.spec.ts' --parallel --jobs ${MOCHA_JOBS:-15} --exit --require ./test/mocha-global-setup.js",
121025
+ "test:e2e": "MOCHA_GROUP=e2e run --top-level mocha './test/e2e/**/*.spec.ts' --exclude './test/e2e/mocha-sync/**' --parallel --jobs ${MOCHA_JOBS:-15} --exit --require ./test/mocha-global-setup.js",
120521
121026
  "test:it": "MOCHA_GROUP=it run --top-level mocha './test/it/**/*.spec.ts' --require ./test/mocha-global-setup.js",
121027
+ "test:e2e:sync": "MOCHA_GROUP=e2e SYNC=true run --top-level mocha './test/e2e/mocha-sync/**/*.spec.ts' --exit --require ./test/mocha-global-setup.js",
120522
121028
  "test:unit": "MOCHA_GROUP=unit run --top-level mocha './test/unit/**/*.spec.ts' --require ./test/mocha-global-setup.js",
120523
121029
  setup: "run --top-level browsers:setup && run --top-level xvfb:setup",
120524
121030
  "setup:standalone": "sh -c 'yarn chromedriver --port=4444 --verbose &'"
@@ -125128,7 +125634,9 @@ var require_spec_driver2 = __commonJS({
125128
125634
  }
125129
125635
  }
125130
125636
  function getWebDriver() {
125131
- return getFrameworkMajorVersion() < 8 ? __require("webdriver").default : __require("webdriver");
125637
+ var _a;
125638
+ const webdriver = __require("webdriver");
125639
+ return (_a = webdriver.default) !== null && _a !== void 0 ? _a : webdriver;
125132
125640
  }
125133
125641
  function getProxyConfiguration() {
125134
125642
  const httpProxy2 = utils34.general.getEnvCaseInsensitive("HTTP_PROXY");
@@ -126727,11 +127235,14 @@ var require_calculate_estimated_time = __commonJS({
126727
127235
  var _a;
126728
127236
  (0, populate_eyes_server_settings_1.populateEyesServerSettings)(settings);
126729
127237
  const accountInfo = await core.getAccountInfo({ settings, logger });
126730
- const ufgClient = await core.getUFGClient({ settings: {
126731
- ...settings,
126732
- ufgServerUrl: accountInfo.ufgServer.ufgServerUrl,
126733
- accessToken: accountInfo.ufgServer.accessToken
126734
- }, logger });
127238
+ const ufgClient = await core.getUFGClient({
127239
+ settings: {
127240
+ ...settings,
127241
+ ufgServerUrl: accountInfo.ufgServer.ufgServerUrl,
127242
+ accessToken: accountInfo.ufgServer.accessToken
127243
+ },
127244
+ logger
127245
+ });
126735
127246
  const deviceProviders = {
126736
127247
  getChromeEmulationDevices: ufgClient.getChromeEmulationDevices.bind(ufgClient),
126737
127248
  getIOSDevices: ufgClient.getIOSDevices.bind(ufgClient)
@@ -127372,7 +127883,7 @@ var require_package4 = __commonJS({
127372
127883
  "../eyes/package.json"(exports, module) {
127373
127884
  module.exports = {
127374
127885
  name: "@applitools/eyes",
127375
- version: "1.36.16",
127886
+ version: "1.36.18",
127376
127887
  keywords: [
127377
127888
  "applitools",
127378
127889
  "eyes",
@@ -127821,6 +128332,9 @@ var IosMultiDeviceTarget = {
127821
128332
  get iPhone_16() {
127822
128333
  return new IosDeviceTarget("iPhone 16");
127823
128334
  },
128335
+ get iPhone_16e() {
128336
+ return new IosDeviceTarget("iPhone 16e");
128337
+ },
127824
128338
  get iPhone_16_Pro() {
127825
128339
  return new IosDeviceTarget("iPhone 16 Pro");
127826
128340
  },
@@ -127829,6 +128343,18 @@ var IosMultiDeviceTarget = {
127829
128343
  },
127830
128344
  get iPhone_16_Pro_Max() {
127831
128345
  return new IosDeviceTarget("iPhone 16 Pro Max");
128346
+ },
128347
+ get iPhone_17() {
128348
+ return new IosDeviceTarget("iPhone 17");
128349
+ },
128350
+ get iPhone_17_Pro() {
128351
+ return new IosDeviceTarget("iPhone 17 Pro");
128352
+ },
128353
+ get iPhone_17_Pro_Max() {
128354
+ return new IosDeviceTarget("iPhone 17 Pro Max");
128355
+ },
128356
+ get iPhone_Air() {
128357
+ return new IosDeviceTarget("iPhone Air");
127832
128358
  }
127833
128359
  };
127834
128360