@applitools/eyes-browser 1.5.15 → 1.5.17

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
@@ -13585,7 +13585,7 @@ var init_agent_browser = __esm({
13585
13585
  });
13586
13586
 
13587
13587
  // ../req/dist/req-errors.js
13588
- var AbortCode, RequestTimeoutError, ConnectionTimeoutError;
13588
+ var AbortCode, RequestTimeoutError, ConnectionTimeoutError, RetryTimeoutError;
13589
13589
  var init_req_errors = __esm({
13590
13590
  "../req/dist/req-errors.js"() {
13591
13591
  "use strict";
@@ -13596,6 +13596,7 @@ var init_req_errors = __esm({
13596
13596
  (function(AbortCode2) {
13597
13597
  AbortCode2["requestTimeout"] = "STUCK_REQUEST";
13598
13598
  AbortCode2["connectionTimeout"] = "MAX_TIMEOUT_REACHED";
13599
+ AbortCode2["retryTimeout"] = "RETRY_DURATION_EXCEEDED";
13599
13600
  })(AbortCode || (AbortCode = {}));
13600
13601
  RequestTimeoutError = class extends Error {
13601
13602
  constructor() {
@@ -13611,6 +13612,13 @@ var init_req_errors = __esm({
13611
13612
  this.name = "ConnectionTimeoutError";
13612
13613
  }
13613
13614
  };
13615
+ RetryTimeoutError = class extends Error {
13616
+ constructor(timeout) {
13617
+ super(`Retry duration of ${timeout} ms was exceeded.`);
13618
+ this.code = AbortCode.retryTimeout;
13619
+ this.name = "RetryTimeoutError";
13620
+ }
13621
+ };
13614
13622
  }
13615
13623
  });
13616
13624
 
@@ -13621,6 +13629,7 @@ function makeReq(baseOptions) {
13621
13629
  async function req(input, ...requestOptions) {
13622
13630
  const options = mergeOptions({}, ...requestOptions);
13623
13631
  let abortCode;
13632
+ let retryStartTime = null;
13624
13633
  if (options.baseUrl && !options.baseUrl.endsWith("/"))
13625
13634
  options.baseUrl += "/";
13626
13635
  if (options.headers)
@@ -13649,121 +13658,189 @@ async function req(input, ...requestOptions) {
13649
13658
  if (connectionTimer)
13650
13659
  clearTimeout(connectionTimer);
13651
13660
  }
13652
- async function singleReq(input2, options2) {
13653
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
13654
- const url = new URL(String((_a = input2.url) !== null && _a !== void 0 ? _a : input2), options2.baseUrl);
13655
- const fetch2 = (_b = options2.fetch) !== null && _b !== void 0 ? _b : fetch_browser_default;
13656
- let optionsFallbacks = [];
13657
- if (options2.fallbacks)
13658
- optionsFallbacks = utils28.types.isArray(options2.fallbacks) ? options2.fallbacks : [options2.fallbacks];
13659
- const fb = optionsFallbacks.find((fallback) => {
13660
- var _a2;
13661
- return (_a2 = fallback.cache) === null || _a2 === void 0 ? void 0 : _a2.get(url.origin);
13662
- });
13663
- if (fb === null || fb === void 0 ? void 0 : fb.updateOptions)
13664
- options2 = await fb.updateOptions({ options: options2 });
13661
+ function setupRequestController(opts) {
13665
13662
  const requestController = new AbortController2();
13666
- const timeout = calculateTimeout(options2.requestTimeout, options2.body, options2);
13663
+ const timeout = calculateTimeout(opts.requestTimeout, opts.body, opts);
13667
13664
  const requestTimer = timeout ? setTimeout(() => {
13668
13665
  abortCode !== null && abortCode !== void 0 ? abortCode : abortCode = AbortCode.requestTimeout;
13669
13666
  requestController.abort();
13670
13667
  }, timeout) : null;
13668
+ const abortHandler = () => requestController.abort();
13671
13669
  if (connectionController.signal.aborted)
13672
13670
  requestController.abort();
13673
- connectionController.signal.onabort = () => requestController.abort();
13674
- if (options2.signal) {
13675
- if (options2.signal.aborted)
13671
+ connectionController.signal.addEventListener("abort", abortHandler);
13672
+ if (opts.signal) {
13673
+ if (opts.signal.aborted)
13676
13674
  requestController.abort();
13677
- options2.signal.onabort = () => requestController.abort();
13675
+ opts.signal.addEventListener("abort", abortHandler);
13678
13676
  }
13679
- if (options2.query) {
13680
- Object.entries(options2.query).forEach(([key, value]) => {
13677
+ return { requestController, requestTimer, abortHandler };
13678
+ }
13679
+ async function buildRequest(input2, opts, requestController) {
13680
+ var _a, _b, _c, _d, _e;
13681
+ const url = new URL(String((_a = input2.url) !== null && _a !== void 0 ? _a : input2), opts.baseUrl);
13682
+ if (opts.query) {
13683
+ Object.entries(opts.query).forEach(([key, value]) => {
13681
13684
  if (!utils28.types.isNull(value))
13682
13685
  url.searchParams.set(key, String(value));
13683
13686
  });
13684
13687
  }
13685
13688
  const extraHeaders = {};
13686
- if (utils28.types.isPlainObject(options2.body) || utils28.types.isArray(options2.body) || options2.body === null) {
13687
- options2.body = JSON.stringify(options2.body);
13689
+ if (utils28.types.isPlainObject(opts.body) || utils28.types.isArray(opts.body) || opts.body === null) {
13690
+ opts.body = JSON.stringify(opts.body);
13688
13691
  extraHeaders["content-type"] = "application/json";
13689
13692
  }
13690
13693
  let request = new Request(url, {
13691
- method: (_c = options2.method) !== null && _c !== void 0 ? _c : input2.method,
13694
+ method: (_b = opts.method) !== null && _b !== void 0 ? _b : input2.method,
13692
13695
  headers: {
13693
13696
  ...extraHeaders,
13694
- ...Object.fromEntries((_e = (_d = input2.headers) === null || _d === void 0 ? void 0 : _d.entries()) !== null && _e !== void 0 ? _e : []),
13695
- ...Object.fromEntries(new Headers(options2.headers).entries())
13697
+ ...Object.fromEntries((_d = (_c = input2.headers) === null || _c === void 0 ? void 0 : _c.entries()) !== null && _d !== void 0 ? _d : []),
13698
+ ...Object.fromEntries(new Headers(opts.headers).entries())
13696
13699
  },
13697
- body: (_f = options2.body) !== null && _f !== void 0 ? _f : input2.body,
13700
+ body: (_e = opts.body) !== null && _e !== void 0 ? _e : input2.body,
13698
13701
  highWaterMark: 1024 * 1024 * 100 + 1,
13699
13702
  agent: makeAgent({
13700
- proxy: options2.proxy,
13701
- useDnsCache: options2.useDnsCache,
13702
- keepAliveOptions: options2.keepAliveOptions
13703
+ proxy: opts.proxy,
13704
+ useDnsCache: opts.useDnsCache,
13705
+ keepAliveOptions: opts.keepAliveOptions
13703
13706
  }),
13704
13707
  signal: requestController.signal
13705
13708
  });
13706
- request = await beforeRequest({ request, options: options2 });
13707
- try {
13708
- let response = await fetch2(request);
13709
- if (!response.ok && optionsFallbacks.length > 0) {
13710
- const fallbackStrategy = optionsFallbacks[0];
13711
- const shouldFallback = await fallbackStrategy.shouldFallbackCondition({ request, response });
13712
- const fallbackOptions = shouldFallback && await ((_g = fallbackStrategy === null || fallbackStrategy === void 0 ? void 0 : fallbackStrategy.updateOptions) === null || _g === void 0 ? void 0 : _g.call(fallbackStrategy, {
13713
- options: { ...options2, fallbacks: optionsFallbacks.slice(1) }
13714
- }));
13715
- if (fallbackOptions) {
13716
- const fallbackStrategyResponse = await singleReq(request, fallbackOptions);
13717
- (_h = fallbackStrategy.cache) !== null && _h !== void 0 ? _h : fallbackStrategy.cache = /* @__PURE__ */ new Map();
13718
- fallbackStrategy.cache.set(new URL(request.url).origin, fallbackStrategyResponse.ok);
13719
- return fallbackStrategyResponse;
13720
- }
13721
- }
13722
- const retry = await ((_j = options2.retry) === null || _j === void 0 ? void 0 : _j.reduce(async (prev, retry2) => {
13723
- var _a2, _b2;
13709
+ request = await beforeRequest({ request, options: opts });
13710
+ return request;
13711
+ }
13712
+ async function tryFallback(request, response, opts, optionsFallbacks) {
13713
+ var _a, _b;
13714
+ if (response.ok || optionsFallbacks.length === 0)
13715
+ return null;
13716
+ const fallbackStrategy = optionsFallbacks[0];
13717
+ const shouldFallback = await fallbackStrategy.shouldFallbackCondition({ request, response });
13718
+ const fallbackOptions = shouldFallback && await ((_a = fallbackStrategy === null || fallbackStrategy === void 0 ? void 0 : fallbackStrategy.updateOptions) === null || _a === void 0 ? void 0 : _a.call(fallbackStrategy, {
13719
+ options: { ...opts, fallbacks: optionsFallbacks.slice(1) }
13720
+ }));
13721
+ if (fallbackOptions) {
13722
+ const fallbackStrategyResponse = await singleReq(request, fallbackOptions);
13723
+ (_b = fallbackStrategy.cache) !== null && _b !== void 0 ? _b : fallbackStrategy.cache = /* @__PURE__ */ new Map();
13724
+ fallbackStrategy.cache.set(new URL(request.url).origin, fallbackStrategyResponse.ok);
13725
+ return fallbackStrategyResponse;
13726
+ }
13727
+ return null;
13728
+ }
13729
+ async function findApplicableRetry(opts, context) {
13730
+ const retries = opts.retry;
13731
+ if (!retries)
13732
+ return null;
13733
+ if (context.response) {
13734
+ return await retries.reduce(async (prev, retry) => {
13735
+ var _a, _b;
13724
13736
  const result = await prev;
13725
- return result !== null && result !== void 0 ? result : (((_a2 = retry2.statuses) === null || _a2 === void 0 ? void 0 : _a2.includes(response.status)) || await ((_b2 = retry2.validate) === null || _b2 === void 0 ? void 0 : _b2.call(retry2, { response }))) && (!retry2.limit || !retry2.attempt || retry2.attempt < retry2.limit) ? retry2 : null;
13726
- }, Promise.resolve(null)));
13727
- if (retry) {
13728
- (_k = retry.attempt) !== null && _k !== void 0 ? _k : retry.attempt = 0;
13729
- const delay = response.headers.has("Retry-After") ? Number(response.headers.get("Retry-After")) * 1e3 : utils28.types.isArray(retry.timeout) ? retry.timeout[Math.min(retry.attempt, retry.timeout.length - 1)] : (_l = retry.timeout) !== null && _l !== void 0 ? _l : 0;
13730
- await utils28.general.sleep(delay);
13731
- retry.attempt += 1;
13732
- const retryRequest = await beforeRetry({ request, response, attempt: retry.attempt, stop, options: options2 });
13733
- if (retryRequest !== stop) {
13734
- return singleReq(retryRequest, options2);
13735
- }
13736
- }
13737
- response = await afterResponse({ request, response, options: options2 });
13738
- return response;
13739
- } catch (error) {
13740
- if (abortCode === AbortCode.requestTimeout)
13741
- error = new RequestTimeoutError();
13742
- else if (abortCode === AbortCode.connectionTimeout)
13743
- error = new ConnectionTimeoutError();
13744
- const retry = await ((_m = options2.retry) === null || _m === void 0 ? void 0 : _m.reduce((prev, retry2) => {
13737
+ return result !== null && result !== void 0 ? result : (((_a = retry.statuses) === null || _a === void 0 ? void 0 : _a.includes(context.response.status)) || await ((_b = retry.validate) === null || _b === void 0 ? void 0 : _b.call(retry, { response: context.response }))) && (!retry.limit || !retry.attempt || retry.attempt < retry.limit) ? retry : null;
13738
+ }, Promise.resolve(null));
13739
+ }
13740
+ if (context.error) {
13741
+ return await retries.reduce((prev, retry) => {
13745
13742
  return prev.then(async (result) => {
13746
- var _a2, _b2;
13747
- return (result !== null && result !== void 0 ? result : (((_a2 = retry2.codes) === null || _a2 === void 0 ? void 0 : _a2.includes(error.code)) || await ((_b2 = retry2.validate) === null || _b2 === void 0 ? void 0 : _b2.call(retry2, { error }))) && (!retry2.limit || !retry2.attempt || retry2.attempt < retry2.limit)) ? retry2 : null;
13743
+ var _a, _b;
13744
+ return (result !== null && result !== void 0 ? result : (((_a = retry.codes) === null || _a === void 0 ? void 0 : _a.includes(context.error.code)) || await ((_b = retry.validate) === null || _b === void 0 ? void 0 : _b.call(retry, { error: context.error }))) && (!retry.limit || !retry.attempt || retry.attempt < retry.limit)) ? retry : null;
13748
13745
  });
13749
- }, Promise.resolve(null)));
13750
- if (retry) {
13751
- (_o = retry.attempt) !== null && _o !== void 0 ? _o : retry.attempt = 0;
13752
- const delay = utils28.types.isArray(retry.timeout) ? retry.timeout[Math.min(retry.attempt, retry.timeout.length)] : (_p = retry.timeout) !== null && _p !== void 0 ? _p : 0;
13753
- await utils28.general.sleep(delay);
13754
- retry.attempt = retry.attempt + 1;
13755
- const retryRequest = await beforeRetry({ request, error, attempt: retry.attempt, stop, options: options2 });
13756
- if (retryRequest !== stop) {
13757
- return singleReq(retryRequest, options2);
13758
- }
13759
- }
13760
- error = await afterError({ request, error, options: options2 });
13761
- throw error;
13762
- } finally {
13763
- if (options2.signal)
13764
- options2.signal.onabort = null;
13765
- if (requestTimer)
13766
- clearTimeout(requestTimer);
13746
+ }, Promise.resolve(null));
13747
+ }
13748
+ return null;
13749
+ }
13750
+ function calculateRetryDelay(retry, response) {
13751
+ var _a, _b;
13752
+ if (response === null || response === void 0 ? void 0 : response.headers.has("Retry-After")) {
13753
+ return Number(response.headers.get("Retry-After")) * 1e3;
13754
+ }
13755
+ if (utils28.types.isArray(retry.timeout)) {
13756
+ return retry.timeout[Math.min((_a = retry.attempt) !== null && _a !== void 0 ? _a : 0, retry.timeout.length - 1)];
13757
+ }
13758
+ return (_b = retry.timeout) !== null && _b !== void 0 ? _b : 0;
13759
+ }
13760
+ function checkRetryTimeout() {
13761
+ if (options.retryTimeout && retryStartTime && Date.now() - retryStartTime >= options.retryTimeout) {
13762
+ throw new RetryTimeoutError(options.retryTimeout);
13763
+ }
13764
+ }
13765
+ async function handleRetry(request, retry, context, opts) {
13766
+ var _a;
13767
+ (_a = retry.attempt) !== null && _a !== void 0 ? _a : retry.attempt = 0;
13768
+ retryStartTime !== null && retryStartTime !== void 0 ? retryStartTime : retryStartTime = Date.now();
13769
+ checkRetryTimeout();
13770
+ const delay = calculateRetryDelay(retry, context.response);
13771
+ await utils28.general.sleep(delay);
13772
+ retry.attempt += 1;
13773
+ return await beforeRetry({
13774
+ request,
13775
+ ...context,
13776
+ attempt: retry.attempt,
13777
+ stop,
13778
+ options: opts
13779
+ });
13780
+ }
13781
+ function normalizeAbortError(error) {
13782
+ if (abortCode === AbortCode.requestTimeout)
13783
+ return new RequestTimeoutError();
13784
+ if (abortCode === AbortCode.connectionTimeout)
13785
+ return new ConnectionTimeoutError();
13786
+ return error;
13787
+ }
13788
+ function cleanupRequest(opts, requestTimer, abortHandler) {
13789
+ if (requestTimer)
13790
+ clearTimeout(requestTimer);
13791
+ connectionController.signal.removeEventListener("abort", abortHandler);
13792
+ if (opts.signal) {
13793
+ opts.signal.removeEventListener("abort", abortHandler);
13794
+ }
13795
+ }
13796
+ async function singleReq(input2, options2) {
13797
+ var _a, _b;
13798
+ const fetch2 = (_a = options2.fetch) !== null && _a !== void 0 ? _a : fetch_browser_default;
13799
+ let optionsFallbacks = [];
13800
+ if (options2.fallbacks)
13801
+ optionsFallbacks = utils28.types.isArray(options2.fallbacks) ? options2.fallbacks : [options2.fallbacks];
13802
+ const url = new URL(String((_b = input2.url) !== null && _b !== void 0 ? _b : input2), options2.baseUrl);
13803
+ const fb = optionsFallbacks.find((fallback) => {
13804
+ var _a2;
13805
+ return (_a2 = fallback.cache) === null || _a2 === void 0 ? void 0 : _a2.get(url.origin);
13806
+ });
13807
+ if (fb === null || fb === void 0 ? void 0 : fb.updateOptions)
13808
+ options2 = await fb.updateOptions({ options: options2 });
13809
+ while (true) {
13810
+ const { requestController, requestTimer, abortHandler } = setupRequestController(options2);
13811
+ const request = await buildRequest(input2, options2, requestController);
13812
+ try {
13813
+ let response = await fetch2(request);
13814
+ const fallbackResponse = await tryFallback(request, response, options2, optionsFallbacks);
13815
+ if (fallbackResponse)
13816
+ return fallbackResponse;
13817
+ const retry = await findApplicableRetry(options2, { response });
13818
+ if (retry) {
13819
+ const retryRequest = await handleRetry(request, retry, { response }, options2);
13820
+ if (retryRequest !== stop) {
13821
+ cleanupRequest(options2, requestTimer, abortHandler);
13822
+ input2 = retryRequest;
13823
+ continue;
13824
+ }
13825
+ }
13826
+ response = await afterResponse({ request, response, options: options2 });
13827
+ return response;
13828
+ } catch (error) {
13829
+ error = normalizeAbortError(error);
13830
+ const retry = await findApplicableRetry(options2, { error });
13831
+ if (retry) {
13832
+ const retryRequest = await handleRetry(request, retry, { error }, options2);
13833
+ if (retryRequest !== stop) {
13834
+ cleanupRequest(options2, requestTimer, abortHandler);
13835
+ input2 = retryRequest;
13836
+ continue;
13837
+ }
13838
+ }
13839
+ error = await afterError({ request, error, options: options2 });
13840
+ throw error;
13841
+ } finally {
13842
+ cleanupRequest(options2, requestTimer, abortHandler);
13843
+ }
13767
13844
  }
13768
13845
  }
13769
13846
  }
@@ -13868,7 +13945,7 @@ function calculateTimeout(requestTimeout, body, options) {
13868
13945
  return base + perByte * body.byteLength;
13869
13946
  if (global.Blob && utils28.types.instanceOf(body, Blob))
13870
13947
  return base + perByte * body.size;
13871
- if (global.Buffer && utils28.types.instanceOf(body, import_buffer64.Buffer))
13948
+ if (global.Buffer && utils28.types.instanceOf(body, import_buffer68.Buffer))
13872
13949
  return base + perByte * body.byteLength;
13873
13950
  const allHooks = (_a = options === null || options === void 0 ? void 0 : options.hooks) !== null && _a !== void 0 ? _a : [];
13874
13951
  allHooks.forEach((hooks) => {
@@ -13879,7 +13956,7 @@ function calculateTimeout(requestTimeout, body, options) {
13879
13956
  }
13880
13957
  return requestTimeout;
13881
13958
  }
13882
- var utils28, import_buffer64, disableHttpAgentReuse;
13959
+ var utils28, import_buffer68, disableHttpAgentReuse;
13883
13960
  var init_req = __esm({
13884
13961
  "../req/dist/req.js"() {
13885
13962
  "use strict";
@@ -13893,7 +13970,7 @@ var init_req = __esm({
13893
13970
  init_req_errors();
13894
13971
  init_fetch_browser();
13895
13972
  utils28 = __toESM(require_browser3(), 1);
13896
- import_buffer64 = __toESM(require_buffer(), 1);
13973
+ import_buffer68 = __toESM(require_buffer(), 1);
13897
13974
  disableHttpAgentReuse = process.env.APPLITOOLS_DISABLE_AGENT_CACHIFY;
13898
13975
  }
13899
13976
  });
@@ -13901,9 +13978,12 @@ var init_req = __esm({
13901
13978
  // ../req/dist/index.js
13902
13979
  var dist_exports = {};
13903
13980
  __export(dist_exports, {
13981
+ ConnectionTimeoutError: () => ConnectionTimeoutError,
13904
13982
  Headers: () => Headers,
13905
13983
  Request: () => Request,
13984
+ RequestTimeoutError: () => RequestTimeoutError,
13906
13985
  Response: () => Response,
13986
+ RetryTimeoutError: () => RetryTimeoutError,
13907
13987
  default: () => req,
13908
13988
  makeReq: () => makeReq,
13909
13989
  req: () => req,
@@ -13919,6 +13999,7 @@ var init_dist = __esm({
13919
13999
  init_fetch_browser();
13920
14000
  init_req();
13921
14001
  init_req();
14002
+ init_req_errors();
13922
14003
  }
13923
14004
  });
13924
14005
 
@@ -14461,6 +14542,24 @@ var require_mask = __commonJS({
14461
14542
  }
14462
14543
  });
14463
14544
 
14545
+ // ../core-base/dist/utils/addRetryTimeout.js
14546
+ var require_addRetryTimeout = __commonJS({
14547
+ "../core-base/dist/utils/addRetryTimeout.js"(exports) {
14548
+ "use strict";
14549
+ init_process();
14550
+ init_setImmediate();
14551
+ init_buffer();
14552
+ init_setInterval();
14553
+ Object.defineProperty(exports, "__esModule", { value: true });
14554
+ exports.addRetryTimeout = void 0;
14555
+ var DEFAULT_RETRY_TIMEOUT_MINUTES = 60;
14556
+ function addRetryTimeout(retryTimeout) {
14557
+ return retryTimeout !== void 0 ? { retryTimeout } : { retryTimeout: DEFAULT_RETRY_TIMEOUT_MINUTES * 60 * 1e3 };
14558
+ }
14559
+ exports.addRetryTimeout = addRetryTimeout;
14560
+ }
14561
+ });
14562
+
14464
14563
  // ../core-base/dist/server/req-eyes.js
14465
14564
  var require_req_eyes = __commonJS({
14466
14565
  "../core-base/dist/server/req-eyes.js"(exports) {
@@ -14509,10 +14608,41 @@ var require_req_eyes = __commonJS({
14509
14608
  var missingApiKeyError_1 = require_missingApiKeyError();
14510
14609
  var invalidApiKeyError_1 = require_invalidApiKeyError();
14511
14610
  var mask_1 = require_mask();
14611
+ var addRetryTimeout_1 = require_addRetryTimeout();
14612
+ var backoffDelays = [
14613
+ 1e3,
14614
+ 1150,
14615
+ 1300,
14616
+ 1500,
14617
+ 1700,
14618
+ 2e3,
14619
+ 2300,
14620
+ 2700,
14621
+ 3100,
14622
+ 3500,
14623
+ 4e3,
14624
+ 4700,
14625
+ 5400,
14626
+ 6200,
14627
+ 7100,
14628
+ 8100,
14629
+ 9400,
14630
+ 10800,
14631
+ 12400,
14632
+ 14200,
14633
+ 16400,
14634
+ 18800,
14635
+ 18800,
14636
+ 21600,
14637
+ 24900,
14638
+ 28600,
14639
+ 3e4
14640
+ ];
14512
14641
  function makeReqEyes({ settings, fetch: fetch2, logger }) {
14513
- var _a, _b, _c;
14642
+ var _a, _b, _c, _d;
14514
14643
  const retryLimit = process.env.EYES_NETWORK_RETRY_LIMIT ? Number(process.env.EYES_NETWORK_RETRY_LIMIT) : 5;
14515
14644
  const retryTimeout = process.env.EYES_NETWORK_RETRY_TIMEOUT ? Number(process.env.EYES_NETWORK_RETRY_TIMEOUT) : 200;
14645
+ const retryDuration = process.env.EYES_NETWORK_RETRY_DURATION ? Number(process.env.EYES_NETWORK_RETRY_DURATION) : void 0;
14516
14646
  return (0, req_1.makeReq)({
14517
14647
  baseUrl: settings.eyesServerUrl,
14518
14648
  query: { removeSession: settings.removeSession },
@@ -14527,7 +14657,8 @@ var require_req_eyes = __commonJS({
14527
14657
  useDnsCache: settings.useDnsCache,
14528
14658
  connectionTimeout: (_a = settings.connectionTimeout) !== null && _a !== void 0 ? _a : 3e5,
14529
14659
  requestTimeout: (_b = settings.requestTimeout) !== null && _b !== void 0 ? _b : 3e4,
14530
- retry: (_c = settings.retry) !== null && _c !== void 0 ? _c : [
14660
+ retryTimeout: (_c = settings.retryTimeout) !== null && _c !== void 0 ? _c : retryDuration,
14661
+ retry: (_d = settings.retry) !== null && _d !== void 0 ? _d : [
14531
14662
  // retry on network issues
14532
14663
  {
14533
14664
  limit: retryLimit,
@@ -14543,8 +14674,8 @@ var require_req_eyes = __commonJS({
14543
14674
  "ENOMEM"
14544
14675
  ],
14545
14676
  validate(options) {
14546
- var _a2, _b2, _c2, _d;
14547
- return [404, 502, 503, 504, 500].includes((_b2 = (_a2 = options === null || options === void 0 ? void 0 : options.response) === null || _a2 === void 0 ? void 0 : _a2.status) !== null && _b2 !== void 0 ? _b2 : 0) && !((_d = (_c2 = options === null || options === void 0 ? void 0 : options.response) === null || _c2 === void 0 ? void 0 : _c2.headers) === null || _d === void 0 ? void 0 : _d.get("x-applitools-dont-retry"));
14677
+ var _a2, _b2, _c2, _d2;
14678
+ return [404, 502, 503, 504, 500].includes((_b2 = (_a2 = options === null || options === void 0 ? void 0 : options.response) === null || _a2 === void 0 ? void 0 : _a2.status) !== null && _b2 !== void 0 ? _b2 : 0) && !((_d2 = (_c2 = options === null || options === void 0 ? void 0 : options.response) === null || _c2 === void 0 ? void 0 : _c2.headers) === null || _d2 === void 0 ? void 0 : _d2.get("x-applitools-dont-retry"));
14548
14679
  }
14549
14680
  }
14550
14681
  ],
@@ -14622,6 +14753,7 @@ var require_req_eyes = __commonJS({
14622
14753
  request.headers.set("Eyes-Date", (/* @__PURE__ */ new Date()).toUTCString());
14623
14754
  },
14624
14755
  async afterResponse({ response, options }) {
14756
+ var _a;
14625
14757
  const logger = options.logger;
14626
14758
  logger === null || logger === void 0 ? void 0 : logger.log(`Location header: ${response.headers.has("Location") ? response.headers.get("Location") : "not found"}`);
14627
14759
  if (response.status === 202 && response.headers.has("Location")) {
@@ -14629,16 +14761,18 @@ var require_req_eyes = __commonJS({
14629
14761
  await utils34.general.sleep(Number(response.headers.get("Retry-After")) * 1e3);
14630
14762
  }
14631
14763
  const resultUrl = updateOriginAndPath(response.headers.get("Location"), settings.eyesServerUrl);
14632
- logger === null || logger === void 0 ? void 0 : logger.log(`Polling started for location: ${resultUrl}`);
14764
+ const currentRetryTimeout = (_a = options === null || options === void 0 ? void 0 : options.retryTimeout) !== null && _a !== void 0 ? _a : settings.retryTimeout;
14765
+ logger === null || logger === void 0 ? void 0 : logger.log(`Polling started for location: ${resultUrl}, with retryTimeout: ${currentRetryTimeout}`);
14633
14766
  const pollResponse = await req2(resultUrl, options !== null && options !== void 0 ? options : {}, {
14634
14767
  method: "GET",
14635
14768
  body: void 0,
14769
+ ...(0, addRetryTimeout_1.addRetryTimeout)(currentRetryTimeout),
14636
14770
  expected: [200, 201, 202, 203, 204, 205, 206, 207, 208, 502, 503, 504],
14637
14771
  retry: {
14638
- timeout: [...Array(5).fill(1e3), ...Array(5).fill(2e3), 5e3],
14772
+ timeout: backoffDelays,
14639
14773
  validate: async ({ response: response2 }) => {
14640
- var _a;
14641
- return !(response2 === null || response2 === void 0 ? void 0 : response2.headers.get("x-applitools-dont-retry")) && ![400, 401, 403, 500].includes((_a = response2 === null || response2 === void 0 ? void 0 : response2.status) !== null && _a !== void 0 ? _a : 400);
14774
+ var _a2;
14775
+ return !(response2 === null || response2 === void 0 ? void 0 : response2.headers.get("x-applitools-dont-retry")) && ![400, 401, 403, 500].includes((_a2 = response2 === null || response2 === void 0 ? void 0 : response2.status) !== null && _a2 !== void 0 ? _a2 : 400);
14642
14776
  }
14643
14777
  },
14644
14778
  connectionTimeout: 0,
@@ -21807,7 +21941,7 @@ var require_server_region_converter = __commonJS({
21807
21941
  function toAccessibilityRegions(regions) {
21808
21942
  return regions === null || regions === void 0 ? void 0 : regions.map((region) => {
21809
21943
  const serverRegion = toServerRegion(region);
21810
- if (utils34.types.has(region, "type")) {
21944
+ if (utils34.types.has(region, "type") && region.type !== void 0) {
21811
21945
  serverRegion.type = region.type;
21812
21946
  }
21813
21947
  return serverRegion;
@@ -21816,7 +21950,7 @@ var require_server_region_converter = __commonJS({
21816
21950
  function toDynamicRegions(regions) {
21817
21951
  return regions === null || regions === void 0 ? void 0 : regions.map((region) => {
21818
21952
  const serverRegion = toServerRegion(region);
21819
- if (utils34.types.has(region, "type")) {
21953
+ if (utils34.types.has(region, "type") && region.type !== void 0) {
21820
21954
  serverRegion.dynamicSettings = {
21821
21955
  ignorePatterns: utils34.types.isArray(region.type) ? region.type : [region.type]
21822
21956
  };
@@ -21828,7 +21962,9 @@ var require_server_region_converter = __commonJS({
21828
21962
  var _a;
21829
21963
  const options = {};
21830
21964
  if (utils34.types.has(region, "region")) {
21831
- options.regionId = region.regionId;
21965
+ if (region.regionId !== void 0) {
21966
+ options.regionId = region.regionId;
21967
+ }
21832
21968
  if (utils34.types.has(region, "offset")) {
21833
21969
  const offset = region.offset;
21834
21970
  options.maxUpOffset = offset.top;
@@ -21970,6 +22106,7 @@ var require_requests = __commonJS({
21970
22106
  var mask_1 = require_mask();
21971
22107
  var chalk_1 = __importDefault(require_source());
21972
22108
  var server_concurrency_converter_1 = require_server_concurrency_converter();
22109
+ var addRetryTimeout_1 = require_addRetryTimeout();
21973
22110
  exports.makeCoreRequestsWithCache = utils34.general.cachify(makeCoreRequests, () => "default");
21974
22111
  function makeCoreRequests({ fetch: fetch2, logger: defaultLogger } = {}) {
21975
22112
  const mainLogger = (0, logger_1.makeLogger)({ logger: defaultLogger, format: { label: "core-requests" } });
@@ -22005,7 +22142,7 @@ var require_requests = __commonJS({
22005
22142
  logger.log('Request "openEyes" called with settings', settings);
22006
22143
  const account = await getAccountInfoWithCache({ settings });
22007
22144
  if (account.processKeepaliveIntervalSec) {
22008
- heartbeat.startPeriodicHeartbeatMessaging({
22145
+ heartbeat.acquire({
22009
22146
  eyesServerUrl: settings.eyesServerUrl,
22010
22147
  apiKey: settings.apiKey,
22011
22148
  proxy: settings.proxy,
@@ -22062,7 +22199,7 @@ var require_requests = __commonJS({
22062
22199
  return makeEyesRequests({ core, test, req: req2, logger });
22063
22200
  }
22064
22201
  async function openFunctionalSession({ settings, logger = mainLogger }) {
22065
- var _a, _b, _c, _d, _e;
22202
+ var _a, _b, _c, _d, _f;
22066
22203
  logger = logger.extend(mainLogger, { tags: [`core-request-${utils34.general.shortid()}`] });
22067
22204
  const req2 = (0, req_eyes_1.makeReqEyes)({ settings, fetch: fetch2, logger });
22068
22205
  logger.log('Request "openFunctionalSession" called with settings', settings);
@@ -22090,7 +22227,7 @@ var require_requests = __commonJS({
22090
22227
  properties: settings.batch.properties,
22091
22228
  buildId: settings.batch.buildId
22092
22229
  },
22093
- egSessionId: (_e = (_d = settings.environment) === null || _d === void 0 ? void 0 : _d.ecSessionId) !== null && _e !== void 0 ? _e : null,
22230
+ egSessionId: (_f = (_d = settings.environment) === null || _d === void 0 ? void 0 : _d.ecSessionId) !== null && _f !== void 0 ? _f : null,
22094
22231
  environment: settings.environment && (settings.environment.rawEnvironment ? {
22095
22232
  ...settings.environment.rawEnvironment,
22096
22233
  os: settings.environment.os,
@@ -22135,7 +22272,7 @@ var require_requests = __commonJS({
22135
22272
  return makeFunctionalSessionRequests({ core, test, req: req2, logger });
22136
22273
  }
22137
22274
  async function openCheckAndClose({ target, settings, logger = mainLogger }) {
22138
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
22275
+ var _a, _b, _c, _d, _f, _g, _h, _j, _k;
22139
22276
  const req2 = (0, req_eyes_1.makeReqEyes)({ settings, fetch: fetch2, logger });
22140
22277
  logger.log('Request "openCheckAndClose" called with settings', settings);
22141
22278
  const account = await getAccountInfoWithCache({ settings, logger });
@@ -22171,13 +22308,13 @@ var require_requests = __commonJS({
22171
22308
  properties: settings.batch.properties,
22172
22309
  buildId: settings.batch.buildId
22173
22310
  },
22174
- egSessionId: (_e = (_d = settings.environment) === null || _d === void 0 ? void 0 : _d.ecSessionId) !== null && _e !== void 0 ? _e : null,
22311
+ egSessionId: (_f = (_d = settings.environment) === null || _d === void 0 ? void 0 : _d.ecSessionId) !== null && _f !== void 0 ? _f : null,
22175
22312
  environment: settings.environment && (settings.environment.rawEnvironment ? {
22176
22313
  ...settings.environment.rawEnvironment,
22177
- os: (_f = settings.environment.os) !== null && _f !== void 0 ? _f : settings.environment.rawEnvironment.os,
22178
- osInfo: (_g = settings.environment.displayOs) !== null && _g !== void 0 ? _g : settings.environment.rawEnvironment.osInfo,
22179
- hostingApp: (_h = settings.environment.hostingApp) !== null && _h !== void 0 ? _h : settings.environment.rawEnvironment.hostingApp,
22180
- hostingAppInfo: (_j = settings.environment.displayHostingApp) !== null && _j !== void 0 ? _j : settings.environment.rawEnvironment.hostingAppInfo
22314
+ os: (_g = settings.environment.os) !== null && _g !== void 0 ? _g : settings.environment.rawEnvironment.os,
22315
+ osInfo: (_h = settings.environment.displayOs) !== null && _h !== void 0 ? _h : settings.environment.rawEnvironment.osInfo,
22316
+ hostingApp: (_j = settings.environment.hostingApp) !== null && _j !== void 0 ? _j : settings.environment.rawEnvironment.hostingApp,
22317
+ hostingAppInfo: (_k = settings.environment.displayHostingApp) !== null && _k !== void 0 ? _k : settings.environment.rawEnvironment.hostingAppInfo
22181
22318
  } : {
22182
22319
  deviceInfo: settings.environment.deviceName,
22183
22320
  os: settings.environment.os,
@@ -22213,6 +22350,7 @@ var require_requests = __commonJS({
22213
22350
  updateBaselineIfDifferent: settings.updateBaselineIfDifferent
22214
22351
  },
22215
22352
  expected: [200, 201],
22353
+ ...(0, addRetryTimeout_1.addRetryTimeout)(settings.retryTimeout),
22216
22354
  logger
22217
22355
  });
22218
22356
  return openCheckAndCloseResponse.then(() => {
@@ -22473,6 +22611,7 @@ var require_requests = __commonJS({
22473
22611
  accessToken: settings.secretToken
22474
22612
  },
22475
22613
  expected: 200,
22614
+ ...(0, addRetryTimeout_1.addRetryTimeout)(settings.retryTimeout),
22476
22615
  logger
22477
22616
  });
22478
22617
  logger.log('Request "deleteTest" finished successfully');
@@ -22522,7 +22661,8 @@ var require_requests = __commonJS({
22522
22661
  },
22523
22662
  hooks: {
22524
22663
  afterError({ error }) {
22525
- if (error.message.includes("Bad Request(400)") || error.message.includes("(400)")) {
22664
+ if (error.message.includes("Bad Request(400)") || error.message.includes("Not Found(404)") || // validation issue in start session
22665
+ error.message.includes("(400)") || error.message.includes("(404)")) {
22526
22666
  error.message = "This process is expired. All its sessions were abandoned";
22527
22667
  }
22528
22668
  }
@@ -22545,7 +22685,7 @@ var require_requests = __commonJS({
22545
22685
  logger.log('Request "openCheckAndClose" called for target', target, "with settings", settings);
22546
22686
  const account = await getAccountInfoWithCache({ settings });
22547
22687
  if (account.processKeepaliveIntervalSec) {
22548
- heartbeat.startPeriodicHeartbeatMessaging({
22688
+ heartbeat.acquire({
22549
22689
  eyesServerUrl: settings.eyesServerUrl,
22550
22690
  apiKey: settings.apiKey,
22551
22691
  proxy: settings.proxy,
@@ -22588,6 +22728,7 @@ var require_requests = __commonJS({
22588
22728
  }
22589
22729
  },
22590
22730
  expected: [200, 404],
22731
+ ...(0, addRetryTimeout_1.addRetryTimeout)(settings.retryTimeout),
22591
22732
  logger
22592
22733
  }).then(async (response) => {
22593
22734
  if (response.status === 404) {
@@ -22639,7 +22780,7 @@ var require_requests = __commonJS({
22639
22780
  let resultResponsePromise;
22640
22781
  let supportsCheckAndClose = true;
22641
22782
  let abortReason;
22642
- const req2 = defaultReq !== null && defaultReq !== void 0 ? defaultReq : (0, req_eyes_1.makeReqEyes)({ settings: test.eyesServer, fetch: fetch2, logger: mainLogger });
22783
+ const req2 = defaultReq !== null && defaultReq !== void 0 ? defaultReq : (0, req_eyes_1.makeReqEyes)({ settings: { ...test.eyesServer }, fetch: fetch2, logger: mainLogger });
22643
22784
  const upload = (0, upload_1.makeUpload)({
22644
22785
  settings: { uploadUrl: test.account.uploadUrl, proxy: test.eyesServer.proxy },
22645
22786
  logger: mainLogger
@@ -22668,6 +22809,7 @@ var require_requests = __commonJS({
22668
22809
  ]);
22669
22810
  const response = await req2(`./api/sessions/running/${encodeURIComponent(test.testId)}`, {
22670
22811
  name: "check",
22812
+ ...(0, addRetryTimeout_1.addRetryTimeout)(settings.retryTimeout),
22671
22813
  method: "POST",
22672
22814
  body: toServerMatchOptions({ target, settings }),
22673
22815
  expected: 200,
@@ -22697,6 +22839,7 @@ var require_requests = __commonJS({
22697
22839
  resultResponsePromise = req2(`./api/sessions/running/${encodeURIComponent(test.testId)}/matchandend`, {
22698
22840
  name: "checkAndClose",
22699
22841
  method: "POST",
22842
+ ...(0, addRetryTimeout_1.addRetryTimeout)(settings.retryTimeout),
22700
22843
  body: {
22701
22844
  ...matchOptions,
22702
22845
  options: {
@@ -22735,6 +22878,7 @@ var require_requests = __commonJS({
22735
22878
  resultResponsePromise = report({ settings, logger }).then(() => req2(`./api/sessions/running/${encodeURIComponent(test.testId)}`, {
22736
22879
  name: "close",
22737
22880
  method: "DELETE",
22881
+ ...(0, addRetryTimeout_1.addRetryTimeout)(settings === null || settings === void 0 ? void 0 : settings.retryTimeout),
22738
22882
  query: {
22739
22883
  aborted: false,
22740
22884
  updateBaseline: test.isNew ? settings === null || settings === void 0 ? void 0 : settings.updateBaselineIfNew : settings === null || settings === void 0 ? void 0 : settings.updateBaselineIfDifferent
@@ -22744,7 +22888,7 @@ var require_requests = __commonJS({
22744
22888
  }));
22745
22889
  return resultResponsePromise.then(() => {
22746
22890
  logger.log('Request "close" finished successfully');
22747
- }).catch(() => void 0);
22891
+ }).catch((_e) => void 0);
22748
22892
  }
22749
22893
  async function abort({ settings, logger = mainLogger } = {}) {
22750
22894
  logger = logger.extend(mainLogger, { tags: [`core-request-${utils34.general.shortid()}`] });
@@ -22760,6 +22904,7 @@ var require_requests = __commonJS({
22760
22904
  query: {
22761
22905
  aborted: true
22762
22906
  },
22907
+ ...(0, addRetryTimeout_1.addRetryTimeout)(settings === null || settings === void 0 ? void 0 : settings.retryTimeout),
22763
22908
  expected: 200,
22764
22909
  logger
22765
22910
  }));
@@ -22845,6 +22990,7 @@ var require_requests = __commonJS({
22845
22990
  return req2(`./api/sessions/running/${encodeURIComponent(test.testId)}`, {
22846
22991
  name: "close",
22847
22992
  method: "DELETE",
22993
+ ...(0, addRetryTimeout_1.addRetryTimeout)(settings === null || settings === void 0 ? void 0 : settings.retryTimeout),
22848
22994
  query: { aborted: false, nonVisualStatus: (_a = settings === null || settings === void 0 ? void 0 : settings.status) !== null && _a !== void 0 ? _a : "Completed" },
22849
22995
  expected: 200,
22850
22996
  logger
@@ -22864,6 +23010,7 @@ var require_requests = __commonJS({
22864
23010
  resultResponsePromise = report({ settings, logger }).then(() => req2(`./api/sessions/running/${encodeURIComponent(test.testId)}`, {
22865
23011
  name: "abort",
22866
23012
  method: "DELETE",
23013
+ ...(0, addRetryTimeout_1.addRetryTimeout)(settings === null || settings === void 0 ? void 0 : settings.retryTimeout),
22867
23014
  query: {
22868
23015
  aborted: true
22869
23016
  },
@@ -22918,7 +23065,7 @@ var require_requests = __commonJS({
22918
23065
  }
22919
23066
  exports.makeFunctionalSessionRequests = makeFunctionalSessionRequests;
22920
23067
  function toStartInfo({ settings }) {
22921
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
23068
+ var _a, _b, _c, _d, _f, _g, _h, _j, _k;
22922
23069
  return {
22923
23070
  agentId: settings.agentId,
22924
23071
  agentSessionId: settings.userTestId,
@@ -22937,13 +23084,13 @@ var require_requests = __commonJS({
22937
23084
  properties: settings.batch.properties,
22938
23085
  buildId: settings.batch.buildId
22939
23086
  },
22940
- egSessionId: (_e = (_d = settings.environment) === null || _d === void 0 ? void 0 : _d.ecSessionId) !== null && _e !== void 0 ? _e : null,
23087
+ egSessionId: (_f = (_d = settings.environment) === null || _d === void 0 ? void 0 : _d.ecSessionId) !== null && _f !== void 0 ? _f : null,
22941
23088
  environment: settings.environment && (settings.environment.rawEnvironment ? {
22942
23089
  ...settings.environment.rawEnvironment,
22943
- os: (_f = settings.environment.os) !== null && _f !== void 0 ? _f : settings.environment.rawEnvironment.os,
22944
- osInfo: (_g = settings.environment.displayOs) !== null && _g !== void 0 ? _g : settings.environment.rawEnvironment.osInfo,
22945
- hostingApp: (_h = settings.environment.hostingApp) !== null && _h !== void 0 ? _h : settings.environment.rawEnvironment.hostingApp,
22946
- hostingAppInfo: (_j = settings.environment.displayHostingApp) !== null && _j !== void 0 ? _j : settings.environment.rawEnvironment.hostingAppInfo
23090
+ os: (_g = settings.environment.os) !== null && _g !== void 0 ? _g : settings.environment.rawEnvironment.os,
23091
+ osInfo: (_h = settings.environment.displayOs) !== null && _h !== void 0 ? _h : settings.environment.rawEnvironment.osInfo,
23092
+ hostingApp: (_j = settings.environment.hostingApp) !== null && _j !== void 0 ? _j : settings.environment.rawEnvironment.hostingApp,
23093
+ hostingAppInfo: (_k = settings.environment.displayHostingApp) !== null && _k !== void 0 ? _k : settings.environment.rawEnvironment.hostingAppInfo
22947
23094
  } : {
22948
23095
  deviceInfo: settings.environment.deviceName,
22949
23096
  os: settings.environment.os,
@@ -66217,7 +66364,7 @@ var require_check_and_close = __commonJS({
66217
66364
  var transform_target_1 = require_transform_target();
66218
66365
  var transform_dom_mapping_1 = require_transform_dom_mapping();
66219
66366
  var utils34 = __importStar(require_browser3());
66220
- function makeCheckAndClose({ requests, done, signal, logger: mainLogger }) {
66367
+ function makeCheckAndClose({ requests, done, signal, heartbeat, logger: mainLogger }) {
66221
66368
  return async function checkAndClose({ target, settings, logger = mainLogger }) {
66222
66369
  var _a, _b, _c, _d, _e;
66223
66370
  logger = logger.extend(mainLogger, { tags: [`check-and-close-base-${utils34.general.shortid()}`] });
@@ -66233,7 +66380,7 @@ var require_check_and_close = __commonJS({
66233
66380
  if (signal.aborted) {
66234
66381
  throw new Error('Command "checkAndClose" was aborted');
66235
66382
  }
66236
- return requests.checkAndClose({ target, settings, logger }).finally(done);
66383
+ return requests.checkAndClose({ target, settings, logger }).finally(done).finally(() => heartbeat === null || heartbeat === void 0 ? void 0 : heartbeat.release());
66237
66384
  };
66238
66385
  }
66239
66386
  exports.makeCheckAndClose = makeCheckAndClose;
@@ -66283,11 +66430,11 @@ var require_close = __commonJS({
66283
66430
  Object.defineProperty(exports, "__esModule", { value: true });
66284
66431
  exports.makeClose = void 0;
66285
66432
  var utils34 = __importStar(require_browser3());
66286
- function makeClose({ requests, done, logger: mainLogger }) {
66433
+ function makeClose({ requests, done, heartbeat, logger: mainLogger }) {
66287
66434
  return async function close({ settings, logger = mainLogger } = {}) {
66288
66435
  logger = logger.extend(mainLogger, { tags: [`close-base-${utils34.general.shortid()}`] });
66289
66436
  logger.log('Command "close" is called with settings', settings);
66290
- void requests.close({ settings, logger }).finally(done);
66437
+ void requests.close({ settings, logger }).finally(done).finally(() => heartbeat === null || heartbeat === void 0 ? void 0 : heartbeat.release());
66291
66438
  };
66292
66439
  }
66293
66440
  exports.makeClose = makeClose;
@@ -66337,12 +66484,12 @@ var require_abort = __commonJS({
66337
66484
  Object.defineProperty(exports, "__esModule", { value: true });
66338
66485
  exports.makeAbort = void 0;
66339
66486
  var utils34 = __importStar(require_browser3());
66340
- function makeAbort({ requests, done, controller, logger: mainLogger }) {
66487
+ function makeAbort({ requests, done, controller, heartbeat, logger: mainLogger }) {
66341
66488
  return async function abort({ settings, logger = mainLogger } = {}) {
66342
66489
  logger = logger.extend(mainLogger, { tags: [`abort-base-${utils34.general.shortid()}`] });
66343
66490
  logger.log('Command "abort" is called with settings', settings);
66344
66491
  controller.abort();
66345
- void requests.abort({ settings, logger }).finally(done);
66492
+ void requests.abort({ settings, logger }).finally(done).finally(() => heartbeat === null || heartbeat === void 0 ? void 0 : heartbeat.release());
66346
66493
  };
66347
66494
  }
66348
66495
  exports.makeAbort = makeAbort;
@@ -66646,9 +66793,10 @@ var require_open_eyes = __commonJS({
66646
66793
  };
66647
66794
  resolve(utils34.general.extend(eyesRequests, {
66648
66795
  check: (0, check_1.makeCheck)({ requests: eyesRequests, signal: controller.signal, logger }),
66649
- checkAndClose: (0, check_and_close_1.makeCheckAndClose)({ requests: eyesRequests, done, signal: controller.signal, logger }),
66650
- close: (0, close_1.makeClose)({ requests: eyesRequests, done, logger }),
66651
- abort: (0, abort_1.makeAbort)({ requests: eyesRequests, done, controller, logger }),
66796
+ // eslint-disable-next-line prettier/prettier
66797
+ checkAndClose: (0, check_and_close_1.makeCheckAndClose)({ requests: eyesRequests, done, signal: controller.signal, heartbeat, logger }),
66798
+ close: (0, close_1.makeClose)({ requests: eyesRequests, done, heartbeat, logger }),
66799
+ abort: (0, abort_1.makeAbort)({ requests: eyesRequests, done, controller, heartbeat, logger }),
66652
66800
  getResults: (0, get_results_1.makeGetResults)({ requests: eyesRequests, logger })
66653
66801
  }));
66654
66802
  } catch (error) {
@@ -67172,33 +67320,61 @@ var require_heartbeat = __commonJS({
67172
67320
  exports.makeHeartbeat = void 0;
67173
67321
  var utils34 = __importStar(require_browser3());
67174
67322
  var processId = utils34.general.guid();
67175
- var isStarted = false;
67323
+ var isRunning = false;
67176
67324
  var intervalId;
67325
+ var refCount = 0;
67177
67326
  function makeHeartbeat({ requests, logger: mainLogger }) {
67178
67327
  const logger = mainLogger.extend(mainLogger, { tags: [`heartbeat-base-${utils34.general.shortid()}`] });
67179
- async function startPeriodicHeartbeatMessaging(settings) {
67180
- if (!isStarted) {
67181
- isStarted = true;
67182
- await requests.sendHeartbeat({ settings: { ...settings, processId }, logger });
67328
+ function stopHeartbeats() {
67329
+ logger.log("Stopping heartbeats");
67330
+ isRunning = false;
67331
+ if (intervalId) {
67332
+ clearInterval(intervalId);
67333
+ intervalId = void 0;
67334
+ }
67335
+ }
67336
+ async function startHeartbeats(settings) {
67337
+ if (!isRunning) {
67338
+ processId = utils34.general.guid();
67339
+ isRunning = true;
67340
+ logger.log("Starting heartbeats with new processId:", processId);
67341
+ await requests.sendHeartbeat({ settings: { ...settings, processId }, logger }).catch((error) => {
67342
+ logger.error("Failed to send heartbeat:", error);
67343
+ });
67183
67344
  intervalId = setIntervalBrowser(async () => {
67184
67345
  try {
67185
67346
  await requests.sendHeartbeat({ settings: { ...settings, processId }, logger });
67186
67347
  } catch (error) {
67187
67348
  if (error.message === "This process is expired. All its sessions were abandoned") {
67188
- isStarted = false;
67189
- processId = utils34.general.guid();
67190
- clearInterval(intervalId);
67349
+ stopHeartbeats();
67191
67350
  }
67192
67351
  }
67193
67352
  }, settings.interval);
67194
67353
  intervalId.unref();
67195
67354
  }
67196
67355
  }
67356
+ function acquire(settings) {
67357
+ refCount++;
67358
+ logger.log("Heartbeat acquired, refCount:", refCount);
67359
+ void startHeartbeats(settings).catch((error) => {
67360
+ logger.error("Failed to start heartbeats:", error);
67361
+ });
67362
+ }
67363
+ function release() {
67364
+ if (refCount > 0) {
67365
+ refCount--;
67366
+ logger.log("Heartbeat released, refCount:", refCount);
67367
+ if (refCount === 0) {
67368
+ stopHeartbeats();
67369
+ }
67370
+ }
67371
+ }
67197
67372
  return {
67198
67373
  get processId() {
67199
67374
  return processId;
67200
67375
  },
67201
- startPeriodicHeartbeatMessaging
67376
+ acquire,
67377
+ release
67202
67378
  };
67203
67379
  }
67204
67380
  exports.makeHeartbeat = makeHeartbeat;
@@ -73931,7 +74107,7 @@ ${l2}`}`, { bundledCss: i2, unfetchedResources: u2 };
73931
74107
  return d4 && (N3.shadowRoot = d4), N3;
73932
74108
  }
73933
74109
  }(t4);
73934
- d2(i2.doCaptureDoc), l2(i2.waitForImages), await Promise.all(f2), d2(i2.waitForImages), N2.version = "1.3.0", N2.scriptVersion = "11.6.6";
74110
+ d2(i2.doCaptureDoc), l2(i2.waitForImages), await Promise.all(f2), d2(i2.waitForImages), N2.version = "1.3.0", N2.scriptVersion = "11.6.7";
73935
74111
  const S2 = h2.length ? `${h2.join("\n")}
73936
74112
  ` : "", A2 = m2.size ? `${Array.from(m2).join("\n")}
73937
74113
  ` : "", _2 = JSON.stringify({ separator: y2, cssStartToken: g2, cssEndToken: g2, iframeStartToken: `"${p2}`, iframeEndToken: `${p2}"` });
@@ -80812,7 +80988,7 @@ var require_captureDomPollForIE = __commonJS({
80812
80988
  case 23:
80813
80989
  return I2 = e5.sent, A2(w2.prefetchCss), L2 = N0({ parseCss: U0, CSSImportRule, getCssFromCache: I2, absolutizeUrl: L0, unfetchedToken: R2 }), j2 = B0({ getCssFromCache: I2, absolutizeUrl: L0 }), k2 = z0({ extractCssFromNode: j2, getBundledCssFromCssText: L2, unfetchedToken: R2 }), E2(w2.doCaptureDoc), C2 = V2(i3), A2(w2.doCaptureDoc), E2(w2.waitForImages), e5.next = 34, Promise.all(S2);
80814
80990
  case 34:
80815
- return A2(w2.waitForImages), C2.version = "1.3.0", C2.scriptVersion = "11.6.6", M2 = x2.length ? x2.join("\n") + "\n" : "", N2 = O2.size ? Array.from(O2).join("\n") + "\n" : "", U2 = JSON.stringify({ separator: _2, cssStartToken: R2, cssEndToken: R2, iframeStartToken: '"' + T2, iframeEndToken: T2 + '"' }), A2(w2.total), F2 = U2 + "\n" + N2 + _2 + "\n" + M2 + _2 + "\n" + JSON.stringify(C2) + D2(), console.log("[captureFrame]", JSON.stringify(w2)), e5.abrupt("return", F2);
80991
+ return A2(w2.waitForImages), C2.version = "1.3.0", C2.scriptVersion = "11.6.7", M2 = x2.length ? x2.join("\n") + "\n" : "", N2 = O2.size ? Array.from(O2).join("\n") + "\n" : "", U2 = JSON.stringify({ separator: _2, cssStartToken: R2, cssEndToken: R2, iframeStartToken: '"' + T2, iframeEndToken: T2 + '"' }), A2(w2.total), F2 = U2 + "\n" + N2 + _2 + "\n" + M2 + _2 + "\n" + JSON.stringify(C2) + D2(), console.log("[captureFrame]", JSON.stringify(w2)), e5.abrupt("return", F2);
80816
80992
  case 44:
80817
80993
  case "end":
80818
80994
  return e5.stop();
@@ -87433,7 +87609,7 @@ var require_requests2 = __commonJS({
87433
87609
  brokerUrl = result.nextPath;
87434
87610
  }
87435
87611
  async function takeScreenshots({ settings: settings2, logger = mainLogger }) {
87436
- var _a;
87612
+ var _a, _b;
87437
87613
  logger = logger.extend(mainLogger, { tags: [`nml-request-${utils34.general.shortid()}`] });
87438
87614
  logger.log('Request "takeScreenshots" called with settings', settings2);
87439
87615
  const { localEnvironment, renderEnvironments, environmentSettings } = await (0, get_environments_info_1.getNMLEnvironmentsInfo)({
@@ -87466,24 +87642,32 @@ var require_requests2 = __commonJS({
87466
87642
  let screenshots;
87467
87643
  if (Number(result.protocolVersion) >= 2) {
87468
87644
  logger.log(`Request "takeScreenshots" was performed on applitools lib v${result.nmlVersion} through protocol v${result.protocolVersion} on device`, result.payload.debugInfo);
87469
- screenshots = localEnvironment ? [
87470
- {
87471
- image: result.payload.result[0].result.screenshotUrl,
87472
- environment: localEnvironment,
87473
- calculateRegions: result.payload.result[0].result.selectorRegions,
87474
- dom: result.payload.result[0].result.dom
87475
- }
87476
- ] : renderEnvironments.map((environment, index) => {
87477
- if (result.payload.result[index].error) {
87478
- throw new Error(`There was a problem in taking screenshot for environment ${JSON.stringify(environment)}. The provided error message was "${result.payload.result[index].error.message}" and had a stack trace of "${result.payload.result[index].error.stack}"`);
87645
+ if ((_b = result.payload.result) === null || _b === void 0 ? void 0 : _b.some((res) => res.error)) {
87646
+ const errors = result.payload.result.filter((res) => res.error);
87647
+ let errMessage = "There were problems in taking screenshots for";
87648
+ if (localEnvironment) {
87649
+ errMessage += ` local environment ${JSON.stringify(localEnvironment)}:
87650
+ `;
87651
+ errMessage += ` ${JSON.stringify(errors)}`;
87652
+ } else {
87653
+ errMessage += " environments:";
87654
+ errMessage += `
87655
+ ${errors.map((err, index) => `Environment ${JSON.stringify(renderEnvironments[index])}: ${JSON.stringify(err)}`).join("\n ")}`;
87479
87656
  }
87657
+ throw new Error(errMessage);
87658
+ }
87659
+ screenshots = renderEnvironments.map((environment, index) => {
87480
87660
  return {
87481
87661
  image: result.payload.result[index].result.screenshotUrl,
87482
87662
  calculateRegions: result.payload.result[index].result.selectorRegions,
87483
87663
  dom: result.payload.result[index].result.dom,
87484
- environment
87664
+ environment: localEnvironment || environment
87485
87665
  };
87486
87666
  });
87667
+ if (localEnvironment && renderEnvironments.length > 1) {
87668
+ logger.warn(`Local environment detected with ${renderEnvironments.length} rendered environment(s). Using local environment ${JSON.stringify(localEnvironment)} and ignoring rendered environments: ${JSON.stringify(renderEnvironments)}. Note - this warning shouldn't appear in normal usage.`);
87669
+ screenshots = [screenshots[0]];
87670
+ }
87487
87671
  } else {
87488
87672
  screenshots = localEnvironment ? [
87489
87673
  {
@@ -88342,13 +88526,13 @@ var require_check2 = __commonJS({
88342
88526
  let driver = void 0;
88343
88527
  if ((0, driver_1.isDriver)(target, spec)) {
88344
88528
  driver = await (0, driver_1.makeDriver)({ spec, driver: target, reset: target === defaultTarget, logger });
88345
- if (settings.retryTimeout) {
88346
- logger.log(`Retry timeout is set to ${settings.retryTimeout}ms - will retry checking until it passes or timeout is reached`);
88529
+ if (settings.matchTimeout) {
88530
+ logger.log(`Match timeout is set to ${settings.matchTimeout}ms - will retry checking until it passes or timeout is reached`);
88347
88531
  const start = Date.now();
88348
88532
  const environmentLogger = logger.extend({ tags: [`environment-${utils34.general.shortid()}`] });
88349
88533
  const baseEyes = await Promise.all(uniqueEnvironments.map((environment) => getBaseEyes({ environment, driver, logger: environmentLogger })));
88350
88534
  if (baseEyes.map((baseEye) => baseEye.test.isNew).some((isNew) => isNew)) {
88351
- await new Promise((resolve) => setTimeout(resolve, settings.retryTimeout));
88535
+ await new Promise((resolve) => setTimeout(resolve, settings.matchTimeout));
88352
88536
  }
88353
88537
  let asExpected = false, retries = 0;
88354
88538
  do {
@@ -88375,7 +88559,7 @@ var require_check2 = __commonJS({
88375
88559
  putInStorage(exactEnvironment, eyes, Promise.resolve());
88376
88560
  });
88377
88561
  }
88378
- } while (!asExpected && Date.now() - start < settings.retryTimeout);
88562
+ } while (!asExpected && Date.now() - start < settings.matchTimeout);
88379
88563
  } else {
88380
88564
  const baseScreenshotsAndSettings = await generateBaseScreenshotsAndSettings(settings, uniqueEnvironments, eyes, logger, driver);
88381
88565
  baseScreenshotsAndSettings.forEach(({ exactEnvironment: environment, baseSetting, baseTarget }) => {
@@ -93196,7 +93380,7 @@ var require_processPagePollCjs = __commonJS({
93196
93380
  }
93197
93381
  return e3;
93198
93382
  } }, 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 }));
93199
- 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"];
93383
+ 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"];
93200
93384
  ll.forEach((e3, t3) => sl.set(t3, e3)), cl.forEach((e3, t3) => sl.set(t3, e3));
93201
93385
  const hl = /* @__PURE__ */ new Map();
93202
93386
  function dl(e3, t3) {
@@ -93209,21 +93393,40 @@ var require_processPagePollCjs = __commonJS({
93209
93393
  return !!n3 && n3.has(t3);
93210
93394
  }
93211
93395
  function ml(e3) {
93212
- const t3 = Array.from(e3).reduce((t4, n3) => {
93213
- const r3 = function(e4) {
93214
- return ul.find((t5) => sl.get(t5).has(e4));
93215
- }(n3) || n3;
93216
- t4.set(r3, fl(e3, r3));
93396
+ return ul.find((t3) => sl.get(t3).has(e3));
93397
+ }
93398
+ function fl(e3, t3, n3) {
93399
+ const r3 = Array.from(e3).reduce((t4, n4) => {
93400
+ const r4 = ml(n4) || n4;
93401
+ t4.set(r4, gl(e3, r4));
93217
93402
  const o3 = function(e4) {
93218
93403
  return hl.get(e4);
93219
- }(n3);
93220
- return o3 && o3.forEach((n4) => {
93221
- e3.getPropertyValue(n4) && (t4.delete(n4), t4.set(n4, fl(e3, n4)));
93404
+ }(n4);
93405
+ return o3 && o3.forEach((n5) => {
93406
+ e3.getPropertyValue(n5) && (t4.delete(n5), t4.set(n5, gl(e3, n5)));
93222
93407
  }), t4;
93223
93408
  }, /* @__PURE__ */ new Map());
93224
- return Array.from(t3.values());
93409
+ if (t3 && n3) {
93410
+ const o3 = Array.from(e3).filter((t4) => !e3.getPropertyValue(t4));
93411
+ if (o3.length > 0)
93412
+ try {
93413
+ const i3 = t3.querySelector(n3);
93414
+ if (i3) {
93415
+ const t4 = window.getComputedStyle(i3);
93416
+ o3.forEach((n4) => {
93417
+ const o4 = t4.getPropertyValue(n4);
93418
+ if (o4) {
93419
+ const t5 = ml(n4) || n4;
93420
+ r3.set(t5, { type: "Declaration", important: "important" === e3.getPropertyPriority(t5), property: t5, value: { type: "Raw", value: o4 } });
93421
+ }
93422
+ });
93423
+ }
93424
+ } catch (e4) {
93425
+ }
93426
+ }
93427
+ return Array.from(r3.values());
93225
93428
  }
93226
- function fl(e3, t3) {
93429
+ function gl(e3, t3) {
93227
93430
  return { type: "Declaration", important: Boolean(e3.getPropertyPriority(t3)), property: t3, value: { type: "Raw", value: e3.getPropertyValue(t3) } };
93228
93431
  }
93229
93432
  sl.forEach((e3, t3) => {
@@ -93231,36 +93434,41 @@ var require_processPagePollCjs = __commonJS({
93231
93434
  hl.get(e4) || hl.set(e4, /* @__PURE__ */ new Set()), hl.get(e4).add(t3);
93232
93435
  });
93233
93436
  });
93234
- 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" } };
93235
- function bl(e3, t3) {
93437
+ 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" } };
93438
+ function yl(e3, t3, n3) {
93236
93439
  return Array.from(e3, (e4) => {
93237
- var n3, r3, o3;
93238
- const i3 = null !== (n3 = gl[e4.type]) && void 0 !== n3 ? n3 : gl[e4.constructor.name];
93239
- if (!i3)
93240
- 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 || "" };
93241
- const a3 = {};
93242
- if (i3.atrule) {
93243
- a3.type = "Atrule";
93244
- const [t4, n4] = e4.cssText.match(new RegExp(`^@(-\\w+-)?${i3.atrule}`)) || [];
93245
- a3.name = n4 ? n4 + i3.atrule : i3.atrule;
93440
+ var r3, o3, i3;
93441
+ const a3 = null !== (r3 = bl[e4.type]) && void 0 !== r3 ? r3 : bl[e4.constructor.name];
93442
+ if (!a3)
93443
+ 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 || "" };
93444
+ const s3 = {};
93445
+ if (a3.atrule) {
93446
+ s3.type = "Atrule";
93447
+ const [t4, n4] = e4.cssText.match(new RegExp(`^@(-\\w+-)?${a3.atrule}`)) || [];
93448
+ s3.name = n4 ? n4 + a3.atrule : a3.atrule;
93246
93449
  } else
93247
- a3.type = "Rule";
93248
- let s3;
93249
- 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) {
93250
- const e5 = i3.atrule ? { context: "atrulePrelude", atrule: i3.atrule } : { context: "selectorList" };
93251
- a3.prelude = ol(Ys(s3, e5));
93450
+ s3.type = "Rule";
93451
+ let l2;
93452
+ 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) {
93453
+ const e5 = a3.atrule ? { context: "atrulePrelude", atrule: a3.atrule } : { context: "selectorList" };
93454
+ s3.prelude = ol(Ys(l2, e5));
93252
93455
  } else
93253
- a3.prelude = null;
93254
- if ("style-and-nested" === i3.block) {
93255
- const n4 = ml(e4.style), r4 = e4.cssRules, o4 = (null == r4 ? void 0 : r4.length) ? bl(r4, t3) : [];
93256
- a3.block = { type: "Block", children: n4.concat(o4) };
93456
+ s3.prelude = null;
93457
+ if ("style-and-nested" === a3.block) {
93458
+ const r4 = e4.selectorText, o4 = fl(e4.style, n3, r4), i4 = e4.cssRules, a4 = (null == i4 ? void 0 : i4.length) ? yl(i4, t3, n3) : [];
93459
+ s3.block = { type: "Block", children: o4.concat(a4) };
93460
+ } else if ("nested" === a3.block || (null === (i3 = e4.cssRules) || void 0 === i3 ? void 0 : i3.length) > 0)
93461
+ s3.block = { type: "Block", children: yl(e4.cssRules, t3, n3) };
93462
+ else if ("style" === a3.block) {
93463
+ const t4 = "selector" === a3.prelude ? e4.selectorText : void 0;
93464
+ s3.block = { type: "Block", children: fl(e4.style, n3, t4) };
93257
93465
  } else
93258
- "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;
93259
- return a3;
93466
+ s3.block = null;
93467
+ return s3;
93260
93468
  });
93261
93469
  }
93262
- const yl = /* @__PURE__ */ new Set(["before", "after", "first-line", "first-letter"]), kl = { "word-wrap": "overflow-wrap", clip: "clip-path" };
93263
- function wl(e3, t3) {
93470
+ const kl = /* @__PURE__ */ new Set(["before", "after", "first-line", "first-letter"]), wl = { "word-wrap": "overflow-wrap", clip: "clip-path" };
93471
+ function vl(e3, t3) {
93264
93472
  let n3 = 0;
93265
93473
  const r3 = [];
93266
93474
  return e3.forEach((e4) => {
@@ -93273,24 +93481,35 @@ var require_processPagePollCjs = __commonJS({
93273
93481
  return r4;
93274
93482
  return -1;
93275
93483
  }(e5, t4, (e6) => {
93276
- 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) => {
93277
- const r5 = "Declaration" === n5.type && (function(e8) {
93278
- return /^(-\w+-)/.test(e8);
93279
- }(n5.property) || t5.some((e8) => function(e9, t6) {
93280
- const n6 = kl[e9] || e9, r6 = kl[t6] || t6;
93281
- return n6 === r6 || pl(r6, n6) || pl(n6, r6);
93282
- }(e8.property, n5.property)));
93283
- return e7 + (r5 ? 1 : 0);
93284
- }, 0) >= r4.length));
93285
- var t5, r4, o4, i4;
93484
+ 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) {
93485
+ const n5 = t6.reduce((t7, n6) => {
93486
+ const r6 = "Declaration" === n6.type && (function(e8) {
93487
+ return /^(-\w+-)/.test(e8);
93488
+ }(n6.property) || e7.some((e8) => function(e9, t8) {
93489
+ const n7 = wl[e9] || e9, r7 = wl[t8] || t8;
93490
+ return n7 === r7 || pl(r7, n7) || pl(n7, r7);
93491
+ }(e8.property, n6.property)));
93492
+ return t7 + (r6 ? 1 : 0);
93493
+ }, 0), r5 = t6.filter((e8) => "Rule" !== e8.type && "Atrule" !== e8.type).length;
93494
+ return n5 >= r5;
93495
+ }(e6.block.children, n4.block.children));
93496
+ var t5, r4;
93286
93497
  });
93287
93498
  }(t3, n3, e4);
93288
- i3 > n3 && Sl(t3, n3, i3, (e5) => r3.push(e5)), i3 >= 0 && (n3 = i3 + 1, function(e5) {
93289
- return "Atrule" === e5.type && /^(-\w+-)?(media|supports|document|keyframes)$/.test(e5.name);
93290
- }(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);
93291
- }, []), n3 < t3.length && Sl(t3, n3, t3.length, (e4) => r3.push(e4)), r3;
93499
+ if (i3 > n3 && Cl(t3, n3, i3, (e5) => r3.push(e5)), i3 >= 0) {
93500
+ if (n3 = i3 + 1, function(e5) {
93501
+ return "Atrule" === e5.type && /^(-\w+-)?(media|supports|document|keyframes|layer)$/.test(e5.name);
93502
+ }(e4))
93503
+ o3.block = { type: "Block", children: vl(e4.block.children, t3[i3].block.children) };
93504
+ else if (Sl(e4)) {
93505
+ 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);
93506
+ o3.block = a3 || s3 ? { type: "Block", children: vl(n4, r4) } : { type: "Block", children: xl(n4, r4) };
93507
+ }
93508
+ }
93509
+ r3.push(o3);
93510
+ }, []), n3 < t3.length && Cl(t3, n3, t3.length, (e4) => r3.push(e4)), r3;
93292
93511
  }
93293
- function vl(e3, t3) {
93512
+ function xl(e3, t3) {
93294
93513
  let n3 = [];
93295
93514
  return e3.forEach((e4) => {
93296
93515
  "Declaration" === e4.type && n3.push(e4);
@@ -93316,26 +93535,26 @@ var require_processPagePollCjs = __commonJS({
93316
93535
  var o3;
93317
93536
  }), n3;
93318
93537
  }
93319
- function xl(e3, t3) {
93538
+ function _l(e3, t3) {
93320
93539
  return !Array.isArray(e3) && !Array.isArray(t3) || Array.isArray(e3) && Array.isArray(t3) && e3.length === t3.length && e3.every((e4, n3) => {
93321
93540
  const r3 = t3[n3];
93322
- 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);
93541
+ 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);
93323
93542
  var o3, i3, a3, s3;
93324
93543
  });
93325
93544
  }
93326
- function _l(e3) {
93545
+ function Sl(e3) {
93327
93546
  return "Rule" === e3.type || /^(-\w+-)?(page|font-face)$/.test(e3.name);
93328
93547
  }
93329
- function Sl(e3, t3, n3, r3) {
93548
+ function Cl(e3, t3, n3, r3) {
93330
93549
  for (let o3 = t3; o3 < n3; ++o3)
93331
93550
  r3(e3[o3], o3, e3);
93332
93551
  }
93333
- function Cl(e3) {
93552
+ function zl(e3) {
93334
93553
  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("");
93335
93554
  return `${e3.nodeName}${t3}`;
93336
93555
  }
93337
- function zl(e3, t3) {
93338
- t3.log("[processInlineCss] processing inline css for", Cl(e3));
93556
+ function Al(e3, t3) {
93557
+ t3.log("[processInlineCss] processing inline css for", zl(e3));
93339
93558
  try {
93340
93559
  const n3 = function(e4) {
93341
93560
  const t4 = Ys(e4, { context: "stylesheet", parseAtrulePrelude: true, parseRulePrelude: true, parseValue: false, parseCustomProperty: false });
@@ -93347,7 +93566,7 @@ var require_processPagePollCjs = __commonJS({
93347
93566
  "String" === r4.type && (t5[n4] = { type: "Url", value: r4.value }, e5.children.fromArray(t5));
93348
93567
  }
93349
93568
  } }), el(t4, { visit: "PseudoClassSelector", enter(e5) {
93350
- yl.has(e5.name) && (e5.type = "PseudoElementSelector");
93569
+ kl.has(e5.name) && (e5.type = "PseudoElementSelector");
93351
93570
  } }), el(t4, { visit: "Selector", enter(e5) {
93352
93571
  const t5 = e5.children.toArray();
93353
93572
  if (t5.length > 1) {
@@ -93362,9 +93581,9 @@ var require_processPagePollCjs = __commonJS({
93362
93581
  } }), ol(t4);
93363
93582
  }(e3.textContent);
93364
93583
  t3.log("[processInlineCss] created AST for textContent");
93365
- const r3 = bl(e3.sheet.cssRules, t3);
93584
+ const r3 = yl(e3.sheet.cssRules, t3);
93366
93585
  t3.log("[processInlineCss] created AST for CSSOM");
93367
- const o3 = wl(n3.children, r3);
93586
+ const o3 = vl(n3.children, r3);
93368
93587
  t3.log("[processInlineCss] merged AST");
93369
93588
  const i3 = Xs(il({ type: "StyleSheet", children: o3 }));
93370
93589
  return t3.log("[processInlineCss] generated cssText of length", i3.length), i3;
@@ -93372,43 +93591,43 @@ var require_processPagePollCjs = __commonJS({
93372
93591
  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"), "");
93373
93592
  }
93374
93593
  }
93375
- function Al(e3, t3) {
93594
+ function Tl(e3, t3) {
93376
93595
  let n3 = e3[0], r3 = e3[1], o3 = e3[2], i3 = e3[3];
93377
- 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]);
93378
- }
93379
- function Tl(e3, t3, n3, r3, o3, i3) {
93380
- return t3 = Dl(Dl(t3, e3), Dl(r3, i3)), Dl(t3 << o3 | t3 >>> 32 - o3, n3);
93596
+ 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]);
93381
93597
  }
93382
- function Ol(e3, t3, n3, r3, o3, i3, a3) {
93383
- return Tl(t3 & n3 | ~t3 & r3, e3, t3, o3, i3, a3);
93598
+ function Ol(e3, t3, n3, r3, o3, i3) {
93599
+ return t3 = Pl(Pl(t3, e3), Pl(r3, i3)), Pl(t3 << o3 | t3 >>> 32 - o3, n3);
93384
93600
  }
93385
93601
  function Ll(e3, t3, n3, r3, o3, i3, a3) {
93386
- return Tl(t3 & r3 | n3 & ~r3, e3, t3, o3, i3, a3);
93602
+ return Ol(t3 & n3 | ~t3 & r3, e3, t3, o3, i3, a3);
93387
93603
  }
93388
93604
  function El(e3, t3, n3, r3, o3, i3, a3) {
93389
- return Tl(t3 ^ n3 ^ r3, e3, t3, o3, i3, a3);
93605
+ return Ol(t3 & r3 | n3 & ~r3, e3, t3, o3, i3, a3);
93390
93606
  }
93391
93607
  function Rl(e3, t3, n3, r3, o3, i3, a3) {
93392
- return Tl(n3 ^ (t3 | ~r3), e3, t3, o3, i3, a3);
93608
+ return Ol(t3 ^ n3 ^ r3, e3, t3, o3, i3, a3);
93609
+ }
93610
+ function Nl(e3, t3, n3, r3, o3, i3, a3) {
93611
+ return Ol(n3 ^ (t3 | ~r3), e3, t3, o3, i3, a3);
93393
93612
  }
93394
- function Nl(e3) {
93613
+ function jl(e3) {
93395
93614
  const t3 = [];
93396
93615
  let n3;
93397
93616
  for (n3 = 0; n3 < 64; n3 += 4)
93398
93617
  t3[n3 >> 2] = e3.charCodeAt(n3) + (e3.charCodeAt(n3 + 1) << 8) + (e3.charCodeAt(n3 + 2) << 16) + (e3.charCodeAt(n3 + 3) << 24);
93399
93618
  return t3;
93400
93619
  }
93401
- const jl = "0123456789abcdef".split("");
93402
- function Il(e3) {
93620
+ const Il = "0123456789abcdef".split("");
93621
+ function Dl(e3) {
93403
93622
  let t3 = "", n3 = 0;
93404
93623
  for (; n3 < 4; n3++)
93405
- t3 += jl[e3 >> 8 * n3 + 4 & 15] + jl[e3 >> 8 * n3 & 15];
93624
+ t3 += Il[e3 >> 8 * n3 + 4 & 15] + Il[e3 >> 8 * n3 & 15];
93406
93625
  return t3;
93407
93626
  }
93408
- function Dl(e3, t3) {
93627
+ function Pl(e3, t3) {
93409
93628
  return e3 + t3 & 4294967295;
93410
93629
  }
93411
- function Pl(e3, { removeReverseProxyURLPrefixes: t3 } = {}) {
93630
+ function Bl(e3, { removeReverseProxyURLPrefixes: t3 } = {}) {
93412
93631
  const n3 = [];
93413
93632
  return [/url\((?!['"]?:)'([^']*)'\)/g, /url\((?!['"]?:)"([^"]*)"\)/g, /url\((?!['"]?:)([^()'"]*)\)/g].forEach((t4) => {
93414
93633
  let r3;
@@ -93419,29 +93638,29 @@ var require_processPagePollCjs = __commonJS({
93419
93638
  return t4 && t4.length ? t4[0].substring(1) : e4;
93420
93639
  }) : n3;
93421
93640
  }
93422
- function Bl(e3) {
93641
+ function Fl(e3) {
93423
93642
  let t3 = [];
93424
93643
  for (let n3 = 0, r3 = e3.length; n3 < r3; n3++) {
93425
93644
  const r4 = e3[n3];
93426
93645
  let o3 = e3.getPropertyValue(r4);
93427
93646
  (/^\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"));
93428
- const i3 = Pl(o3);
93647
+ const i3 = Bl(o3);
93429
93648
  t3 = t3.concat(i3);
93430
93649
  }
93431
93650
  return t3;
93432
93651
  }
93433
- const Fl = /(\S+)(?:\s+[\d.]+[wx])?(?:,|$)/g;
93434
- function Ul(e3) {
93652
+ const Ul = /(\S+)(?:\s+[\d.]+[wx])?(?:,|$)/g;
93653
+ function Ml(e3) {
93435
93654
  const { ownerDocument: t3 } = e3;
93436
93655
  if (!t3)
93437
93656
  return true;
93438
93657
  const { display: n3 } = t3.defaultView.getComputedStyle(e3), { width: r3, height: o3 } = e3.getBoundingClientRect();
93439
93658
  return "none" === n3 || 0 === r3 || 0 === o3;
93440
93659
  }
93441
- function Ml(e3) {
93660
+ function ql(e3) {
93442
93661
  try {
93443
93662
  return ol(Ys(e3.toLowerCase(), { context: "mediaQueryList" })).children.some((e4) => {
93444
- const t3 = ql(e4);
93663
+ const t3 = Wl(e4);
93445
93664
  return e4.mediaType && t3.unshift(e4), t3.every((e5) => {
93446
93665
  var t4, n3;
93447
93666
  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));
@@ -93451,19 +93670,19 @@ var require_processPagePollCjs = __commonJS({
93451
93670
  return false;
93452
93671
  }
93453
93672
  }
93454
- function ql(e3) {
93673
+ function Wl(e3) {
93455
93674
  var t3, n3;
93456
93675
  const r3 = [];
93457
93676
  if (e3.condition)
93458
- r3.push(...ql(e3.condition));
93677
+ r3.push(...Wl(e3.condition));
93459
93678
  else {
93460
- 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 : [];
93679
+ 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 : [];
93461
93680
  r3.push(...o3);
93462
93681
  }
93463
93682
  return r3;
93464
93683
  }
93465
- const Wl = Symbol("raw");
93466
- function $l(e3) {
93684
+ const $l = Symbol("raw");
93685
+ function Vl(e3) {
93467
93686
  const t3 = function(e4) {
93468
93687
  if ("undefined" == typeof window)
93469
93688
  return null;
@@ -93471,7 +93690,7 @@ var require_processPagePollCjs = __commonJS({
93471
93690
  return window[t4];
93472
93691
  }(e3);
93473
93692
  return t3 ? (n3 = e3, r3 = t3.prototype, new Proxy(Object.create(n3), { get(e4, t4, o3) {
93474
- if (t4 === Wl)
93693
+ if (t4 === $l)
93475
93694
  return n3;
93476
93695
  const i3 = Reflect.get(r3, t4, n3);
93477
93696
  return "function" == typeof i3 ? function() {
@@ -93480,15 +93699,15 @@ var require_processPagePollCjs = __commonJS({
93480
93699
  } })) : e3;
93481
93700
  var n3, r3;
93482
93701
  }
93483
- $l.unwrap = function(e3) {
93484
- return e3[Wl] || e3;
93702
+ Vl.unwrap = function(e3) {
93703
+ return e3[$l] || e3;
93485
93704
  };
93486
- const Vl = /* @__PURE__ */ new Set(["date", "datetime-local", "email", "month", "number", "password", "search", "tel", "text", "time", "url", "week", "range"]), Zl = /^on[a-z]+$/;
93487
- function Kl(e3, t3, n3) {
93705
+ const Zl = /* @__PURE__ */ new Set(["date", "datetime-local", "email", "month", "number", "password", "search", "tel", "text", "time", "url", "week", "range"]), Kl = /^on[a-z]+$/;
93706
+ function Hl(e3, t3, n3) {
93488
93707
  const r3 = [{ nodeType: Node.DOCUMENT_NODE }], o3 = [e3], i3 = [], a3 = [], s3 = [], l2 = [];
93489
93708
  let c2 = [];
93490
93709
  const u2 = [], h2 = [];
93491
- 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 };
93710
+ 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 };
93492
93711
  function p2(e4, t4) {
93493
93712
  if (!t4 || 0 === t4.length)
93494
93713
  return null;
@@ -93500,29 +93719,29 @@ var require_processPagePollCjs = __commonJS({
93500
93719
  }
93501
93720
  function m2(e4, r4) {
93502
93721
  var f2;
93503
- const g2 = $l(r4);
93722
+ const g2 = Vl(r4);
93504
93723
  let b2;
93505
93724
  if ([Node.ELEMENT_NODE, Node.DOCUMENT_FRAGMENT_NODE].includes(g2.nodeType)) {
93506
93725
  if (g2.hasAttribute && g2.hasAttribute("data-applitools-skip"))
93507
93726
  return null;
93508
- if (["LINK", "STYLE", "SOURCE"].includes(g2.nodeName) && (null === (f2 = g2.media) || void 0 === f2 ? void 0 : f2.trim()) && !Ml(g2.media))
93727
+ if (["LINK", "STYLE", "SOURCE"].includes(g2.nodeName) && (null === (f2 = g2.media) || void 0 === f2 ? void 0 : f2.trim()) && !ql(g2.media))
93509
93728
  return null;
93510
93729
  if ("SCRIPT" === g2.nodeName)
93511
93730
  b2 = function(e5) {
93512
- return { nodeType: Node.ELEMENT_NODE, nodeName: "SCRIPT", attributes: Hl(e5).map((t4) => {
93731
+ return { nodeType: Node.ELEMENT_NODE, nodeName: "SCRIPT", attributes: Gl(e5).map((t4) => {
93513
93732
  const n4 = e5.attributes[t4].name;
93514
- return { name: n4, value: Zl.test(n4) ? "" : e5.attributes[t4].value };
93733
+ return { name: n4, value: Kl.test(n4) ? "" : e5.attributes[t4].value };
93515
93734
  }).filter((e6) => "src" !== e6.name), childNodeIndexes: [] };
93516
93735
  }(g2);
93517
93736
  else {
93518
93737
  const c3 = g2.shadowRoot && g2.shadowRoot.childNodes.length && "ShadowRoot" !== g2.shadowRoot.constructor.name;
93519
93738
  if (b2 = function(e5) {
93520
93739
  var t4, n4, r5;
93521
- const o4 = { nodeType: e5.nodeType, nodeName: e5.nodeName, attributes: Hl(e5).map((t5) => {
93740
+ const o4 = { nodeType: e5.nodeType, nodeName: e5.nodeName, attributes: Gl(e5).map((t5) => {
93522
93741
  let n5 = e5.attributes[t5].value;
93523
93742
  const r6 = e5.attributes[t5].name;
93524
- 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) {
93525
- const t6 = { type: "DeclarationList", children: ml(e6) };
93743
+ 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) {
93744
+ const t6 = { type: "DeclarationList", children: fl(e6) };
93526
93745
  return Xs(t6);
93527
93746
  }(e5.style)), { name: r6, value: n5 };
93528
93747
  }) };
@@ -93533,44 +93752,44 @@ var require_processPagePollCjs = __commonJS({
93533
93752
  }
93534
93753
  !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 }) });
93535
93754
  }
93536
- if ("INPUT" === e5.tagName && Vl.has(e5.type)) {
93755
+ if ("INPUT" === e5.tagName && Zl.has(e5.type)) {
93537
93756
  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 : "";
93538
- i4 && a4 === s4 || Gl(o4.attributes, "value", s4);
93757
+ i4 && a4 === s4 || Yl(o4.attributes, "value", s4);
93539
93758
  }
93540
- 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;
93759
+ 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;
93541
93760
  }(g2), "STYLE" === g2.nodeName && g2.sheet && g2.sheet.cssRules.length ? (e4.push(function(e5, t4, n4) {
93542
93761
  const r5 = (o4 = e5, function(e6) {
93543
93762
  return t5 = function(e7) {
93544
93763
  const t6 = e7.length, n5 = [1732584193, -271733879, -1732584194, 271733878];
93545
93764
  let r6;
93546
93765
  for (r6 = 64; r6 <= e7.length; r6 += 64)
93547
- Al(n5, Nl(e7.substring(r6 - 64, r6)));
93766
+ Tl(n5, jl(e7.substring(r6 - 64, r6)));
93548
93767
  e7 = e7.substring(r6 - 64);
93549
93768
  const o5 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
93550
93769
  for (r6 = 0; r6 < e7.length; r6++)
93551
93770
  o5[r6 >> 2] |= e7.charCodeAt(r6) << (r6 % 4 << 3);
93552
93771
  if (o5[r6 >> 2] |= 128 << (r6 % 4 << 3), r6 > 55)
93553
- for (Al(n5, o5), r6 = 0; r6 < 16; r6++)
93772
+ for (Tl(n5, o5), r6 = 0; r6 < 16; r6++)
93554
93773
  o5[r6] = 0;
93555
- return o5[14] = 8 * t6, Al(n5, o5), n5;
93556
- }(e6), t5.map(Il).join("");
93774
+ return o5[14] = 8 * t6, Tl(n5, o5), n5;
93775
+ }(e6), t5.map(Dl).join("");
93557
93776
  var t5;
93558
93777
  }(Array.prototype.map.call(o4.sheet.cssRules, (e6) => e6.cssText).join("")));
93559
93778
  var o4;
93560
- 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 };
93779
+ 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 };
93561
93780
  }(g2, n3, r4)), b2.childNodeIndexes = [e4.length - 1]) : "TEXTAREA" === g2.tagName && g2.value !== g2.textContent ? (e4.push(function(e5) {
93562
93781
  return { nodeType: Node.TEXT_NODE, nodeValue: e5.value };
93563
93782
  }(g2)), b2.childNodeIndexes = [e4.length - 1]) : b2.childNodeIndexes = !c3 && g2.childNodes.length ? p2(e4, g2.childNodes) : [], c3 && "SLOT" === g2.tagName && "function" == typeof g2.assignedNodes) {
93564
93783
  const t4 = g2.assignedNodes();
93565
93784
  b2.childNodeIndexes = b2.childNodeIndexes || [], b2.childNodeIndexes = t4.length ? b2.childNodeIndexes.concat(p2(e4, t4)) : b2.childNodeIndexes;
93566
93785
  }
93567
- 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)) {
93786
+ 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)) {
93568
93787
  const e5 = y(`applitools-canvas-${S()}.png`, t3);
93569
93788
  b2.attributes.push({ name: "data-applitools-src", value: e5 }), i3.push({ element: g2, cdtNode: b2, url: e5 });
93570
93789
  }
93571
93790
  if ("IFRAME" === g2.nodeName) {
93572
93791
  const n4 = S();
93573
- if (g2.setAttribute("data-applitools-selector", n4.toString()), Ul(r4))
93792
+ if (g2.setAttribute("data-applitools-selector", n4.toString()), Ml(r4))
93574
93793
  b2.attributes.forEach((e5) => {
93575
93794
  "src" !== e5.name && "srcdoc" !== e5.name || (b2.attributes.push({ name: `data-applitools-original-${e5.name}`, value: e5.value }), e5.value = "");
93576
93795
  });
@@ -93587,7 +93806,7 @@ var require_processPagePollCjs = __commonJS({
93587
93806
  l2.push({ selector: t4, index: e4.length });
93588
93807
  }
93589
93808
  }
93590
- g2.adoptedStyleSheets && g2.adoptedStyleSheets.length > 0 && (b2.exp_adoptedStyleSheets = Yl(g2, n3));
93809
+ g2.adoptedStyleSheets && g2.adoptedStyleSheets.length > 0 && (b2.exp_adoptedStyleSheets = Xl(g2, n3));
93591
93810
  }
93592
93811
  if (g2.nodeType === Node.ELEMENT_NODE) {
93593
93812
  const e5 = function(e6) {
@@ -93601,7 +93820,7 @@ var require_processPagePollCjs = __commonJS({
93601
93820
  for (; (a4 = o4.exec(t6)) && (r6.push(n5(a4)), i4); )
93602
93821
  ;
93603
93822
  return r6;
93604
- }(Fl, t5, (e7) => e7[1]));
93823
+ }(Ul, t5, (e7) => e7[1]));
93605
93824
  }
93606
93825
  if (t4('img[src],source[src],input[type="image"][src],audio[src],video[src]')) {
93607
93826
  const t5 = e6.getAttribute("src");
@@ -93632,7 +93851,7 @@ var require_processPagePollCjs = __commonJS({
93632
93851
  }
93633
93852
  const r5 = function(e7) {
93634
93853
  if (e7.hasAttribute("style"))
93635
- return Bl(e7.style);
93854
+ return Fl(e7.style);
93636
93855
  }(e6);
93637
93856
  return r5 && (n4 = n4.concat(r5)), n4;
93638
93857
  }(g2);
@@ -93654,27 +93873,27 @@ var require_processPagePollCjs = __commonJS({
93654
93873
  return b2 ? (e4.push(b2), e4.length - 1) : null;
93655
93874
  }
93656
93875
  }
93657
- function Hl(e3) {
93876
+ function Gl(e3) {
93658
93877
  return Object.keys(e3.attributes || {}).filter((t3) => e3.attributes[t3] && e3.attributes[t3].name);
93659
93878
  }
93660
- function Gl(e3, t3, n3) {
93879
+ function Yl(e3, t3, n3) {
93661
93880
  const r3 = e3.find((e4) => e4.name === t3);
93662
93881
  r3 ? r3.value = n3 : e3.push({ name: t3, value: n3 });
93663
93882
  }
93664
- function Yl(e3, t3) {
93665
- return Array.from(e3.adoptedStyleSheets).map((e4) => function(e5, t4) {
93666
- const n3 = bl(e5.cssRules, t4);
93667
- return Xs(il({ type: "StyleSheet", children: n3 }));
93668
- }(e4, t3));
93883
+ function Xl(e3, t3) {
93884
+ return Array.from(e3.adoptedStyleSheets).map((n3) => function(e4, t4, n4) {
93885
+ const r3 = yl(e4.cssRules, t4, n4);
93886
+ return Xs(il({ type: "StyleSheet", children: r3 }));
93887
+ }(n3, t3, e3));
93669
93888
  }
93670
- function Xl(e3) {
93889
+ function Ql(e3) {
93671
93890
  const t3 = [];
93672
93891
  return new Set(e3).forEach((e4) => e4 && t3.push(e4)), t3;
93673
93892
  }
93674
- function Ql(e3) {
93675
- return e3.reduce(({ resourceUrls: e4, blobsObj: t3 }, { resourceUrls: n3, blobsObj: r3 }) => ({ resourceUrls: Xl(e4.concat(n3)), blobsObj: Object.assign(t3, r3) }), { resourceUrls: [], blobsObj: {} });
93893
+ function Jl(e3) {
93894
+ return e3.reduce(({ resourceUrls: e4, blobsObj: t3 }, { resourceUrls: n3, blobsObj: r3 }) => ({ resourceUrls: Ql(e4.concat(n3)), blobsObj: Object.assign(t3, r3) }), { resourceUrls: [], blobsObj: {} });
93676
93895
  }
93677
- var Jl = {};
93896
+ var ec = {};
93678
93897
  !function(e3) {
93679
93898
  var t3 = "undefined" != typeof Uint8Array && "undefined" != typeof Uint16Array && "undefined" != typeof Int32Array;
93680
93899
  function n3(e4, t4) {
@@ -93716,102 +93935,102 @@ var require_processPagePollCjs = __commonJS({
93716
93935
  e3.setTyped = function(t4) {
93717
93936
  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));
93718
93937
  }, e3.setTyped(t3);
93719
- }(Jl);
93720
- var ec = {}, tc = {}, nc = {}, rc = Jl;
93721
- function oc(e3) {
93938
+ }(ec);
93939
+ var tc = {}, nc = {}, rc = {}, oc = ec;
93940
+ function ic(e3) {
93722
93941
  for (var t3 = e3.length; --t3 >= 0; )
93723
93942
  e3[t3] = 0;
93724
93943
  }
93725
- 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);
93726
- oc(mc);
93727
- var fc = new Array(60);
93728
- oc(fc);
93729
- var gc = new Array(512);
93730
- oc(gc);
93731
- var bc = new Array(256);
93732
- oc(bc);
93733
- var yc = new Array(29);
93734
- oc(yc);
93735
- var kc, wc, vc, xc = new Array(sc);
93736
- function _c(e3, t3, n3, r3, o3) {
93944
+ 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);
93945
+ ic(fc);
93946
+ var gc = new Array(60);
93947
+ ic(gc);
93948
+ var bc = new Array(512);
93949
+ ic(bc);
93950
+ var yc = new Array(256);
93951
+ ic(yc);
93952
+ var kc = new Array(29);
93953
+ ic(kc);
93954
+ var wc, vc, xc, _c = new Array(lc);
93955
+ function Sc(e3, t3, n3, r3, o3) {
93737
93956
  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;
93738
93957
  }
93739
- function Sc(e3, t3) {
93958
+ function Cc(e3, t3) {
93740
93959
  this.dyn_tree = e3, this.max_code = 0, this.stat_desc = t3;
93741
93960
  }
93742
- function Cc(e3) {
93743
- return e3 < 256 ? gc[e3] : gc[256 + (e3 >>> 7)];
93961
+ function zc(e3) {
93962
+ return e3 < 256 ? bc[e3] : bc[256 + (e3 >>> 7)];
93744
93963
  }
93745
- function zc(e3, t3) {
93964
+ function Ac(e3, t3) {
93746
93965
  e3.pending_buf[e3.pending++] = 255 & t3, e3.pending_buf[e3.pending++] = t3 >>> 8 & 255;
93747
93966
  }
93748
- function Ac(e3, t3, n3) {
93749
- 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);
93750
- }
93751
93967
  function Tc(e3, t3, n3) {
93752
- Ac(e3, n3[2 * t3], n3[2 * t3 + 1]);
93968
+ 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);
93969
+ }
93970
+ function Oc(e3, t3, n3) {
93971
+ Tc(e3, n3[2 * t3], n3[2 * t3 + 1]);
93753
93972
  }
93754
- function Oc(e3, t3) {
93973
+ function Lc(e3, t3) {
93755
93974
  var n3 = 0;
93756
93975
  do {
93757
93976
  n3 |= 1 & e3, e3 >>>= 1, n3 <<= 1;
93758
93977
  } while (--t3 > 0);
93759
93978
  return n3 >>> 1;
93760
93979
  }
93761
- function Lc(e3, t3, n3) {
93762
- var r3, o3, i3 = new Array(lc + 1), a3 = 0;
93763
- for (r3 = 1; r3 <= lc; r3++)
93980
+ function Ec(e3, t3, n3) {
93981
+ var r3, o3, i3 = new Array(cc + 1), a3 = 0;
93982
+ for (r3 = 1; r3 <= cc; r3++)
93764
93983
  i3[r3] = a3 = a3 + n3[r3 - 1] << 1;
93765
93984
  for (o3 = 0; o3 <= t3; o3++) {
93766
93985
  var s3 = e3[2 * o3 + 1];
93767
- 0 !== s3 && (e3[2 * o3] = Oc(i3[s3]++, s3));
93986
+ 0 !== s3 && (e3[2 * o3] = Lc(i3[s3]++, s3));
93768
93987
  }
93769
93988
  }
93770
- function Ec(e3) {
93989
+ function Rc(e3) {
93771
93990
  var t3;
93772
- for (t3 = 0; t3 < ac; t3++)
93773
- e3.dyn_ltree[2 * t3] = 0;
93774
93991
  for (t3 = 0; t3 < sc; t3++)
93992
+ e3.dyn_ltree[2 * t3] = 0;
93993
+ for (t3 = 0; t3 < lc; t3++)
93775
93994
  e3.dyn_dtree[2 * t3] = 0;
93776
93995
  for (t3 = 0; t3 < 19; t3++)
93777
93996
  e3.bl_tree[2 * t3] = 0;
93778
93997
  e3.dyn_ltree[512] = 1, e3.opt_len = e3.static_len = 0, e3.last_lit = e3.matches = 0;
93779
93998
  }
93780
- function Rc(e3) {
93781
- 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;
93999
+ function Nc(e3) {
94000
+ 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;
93782
94001
  }
93783
- function Nc(e3, t3, n3, r3) {
94002
+ function jc(e3, t3, n3, r3) {
93784
94003
  var o3 = 2 * t3, i3 = 2 * n3;
93785
94004
  return e3[o3] < e3[i3] || e3[o3] === e3[i3] && r3[t3] <= r3[n3];
93786
94005
  }
93787
- function jc(e3, t3, n3) {
93788
- 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)); )
94006
+ function Ic(e3, t3, n3) {
94007
+ 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)); )
93789
94008
  e3.heap[n3] = e3.heap[o3], n3 = o3, o3 <<= 1;
93790
94009
  e3.heap[n3] = r3;
93791
94010
  }
93792
- function Ic(e3, t3, n3) {
94011
+ function Dc(e3, t3, n3) {
93793
94012
  var r3, o3, i3, a3, s3 = 0;
93794
94013
  if (0 !== e3.last_lit)
93795
94014
  do {
93796
- 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));
94015
+ 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));
93797
94016
  } while (s3 < e3.last_lit);
93798
- Tc(e3, 256, t3);
94017
+ Oc(e3, 256, t3);
93799
94018
  }
93800
- function Dc(e3, t3) {
94019
+ function Pc(e3, t3) {
93801
94020
  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;
93802
94021
  for (e3.heap_len = 0, e3.heap_max = 573, n3 = 0; n3 < l2; n3++)
93803
94022
  0 !== i3[2 * n3] ? (e3.heap[++e3.heap_len] = c2 = n3, e3.depth[n3] = 0) : i3[2 * n3 + 1] = 0;
93804
94023
  for (; e3.heap_len < 2; )
93805
94024
  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]);
93806
94025
  for (t3.max_code = c2, n3 = e3.heap_len >> 1; n3 >= 1; n3--)
93807
- jc(e3, i3, n3);
94026
+ Ic(e3, i3, n3);
93808
94027
  o3 = l2;
93809
94028
  do {
93810
- 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);
94029
+ 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);
93811
94030
  } while (e3.heap_len >= 2);
93812
94031
  e3.heap[--e3.heap_max] = e3.heap[1], function(e4, t4) {
93813
94032
  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;
93814
- for (i4 = 0; i4 <= lc; i4++)
94033
+ for (i4 = 0; i4 <= cc; i4++)
93815
94034
  e4.bl_count[i4] = 0;
93816
94035
  for (l3[2 * e4.heap[e4.heap_max] + 1] = 0, n4 = e4.heap_max + 1; n4 < 573; n4++)
93817
94036
  (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)));
@@ -93825,60 +94044,60 @@ var require_processPagePollCjs = __commonJS({
93825
94044
  for (r4 = e4.bl_count[i4]; 0 !== r4; )
93826
94045
  (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--);
93827
94046
  }
93828
- }(e3, t3), Lc(i3, c2, e3.bl_count);
94047
+ }(e3, t3), Ec(i3, c2, e3.bl_count);
93829
94048
  }
93830
- function Pc(e3, t3, n3) {
94049
+ function Bc(e3, t3, n3) {
93831
94050
  var r3, o3, i3 = -1, a3 = t3[1], s3 = 0, l2 = 7, c2 = 4;
93832
94051
  for (0 === a3 && (l2 = 138, c2 = 3), t3[2 * (n3 + 1) + 1] = 65535, r3 = 0; r3 <= n3; r3++)
93833
94052
  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));
93834
94053
  }
93835
- function Bc(e3, t3, n3) {
94054
+ function Fc(e3, t3, n3) {
93836
94055
  var r3, o3, i3 = -1, a3 = t3[1], s3 = 0, l2 = 7, c2 = 4;
93837
94056
  for (0 === a3 && (l2 = 138, c2 = 3), r3 = 0; r3 <= n3; r3++)
93838
94057
  if (o3 = a3, a3 = t3[2 * (r3 + 1) + 1], !(++s3 < l2 && o3 === a3)) {
93839
94058
  if (s3 < c2)
93840
94059
  do {
93841
- Tc(e3, o3, e3.bl_tree);
94060
+ Oc(e3, o3, e3.bl_tree);
93842
94061
  } while (0 != --s3);
93843
94062
  else
93844
- 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));
94063
+ 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));
93845
94064
  s3 = 0, i3 = o3, 0 === a3 ? (l2 = 138, c2 = 3) : o3 === a3 ? (l2 = 6, c2 = 3) : (l2 = 7, c2 = 4);
93846
94065
  }
93847
94066
  }
93848
- oc(xc);
93849
- var Fc = false;
93850
- function Uc(e3, t3, n3, r3) {
93851
- Ac(e3, 0 + (r3 ? 1 : 0), 3), function(e4, t4, n4, r4) {
93852
- Rc(e4), zc(e4, n4), zc(e4, ~n4), rc.arraySet(e4.pending_buf, e4.window, t4, n4, e4.pending), e4.pending += n4;
94067
+ ic(_c);
94068
+ var Uc = false;
94069
+ function Mc(e3, t3, n3, r3) {
94070
+ Tc(e3, 0 + (r3 ? 1 : 0), 3), function(e4, t4, n4, r4) {
94071
+ Nc(e4), Ac(e4, n4), Ac(e4, ~n4), oc.arraySet(e4.pending_buf, e4.window, t4, n4, e4.pending), e4.pending += n4;
93853
94072
  }(e3, t3, n3);
93854
94073
  }
93855
- nc._tr_init = function(e3) {
93856
- Fc || (function() {
93857
- var e4, t3, n3, r3, o3, i3 = new Array(lc + 1);
94074
+ rc._tr_init = function(e3) {
94075
+ Uc || (function() {
94076
+ var e4, t3, n3, r3, o3, i3 = new Array(cc + 1);
93858
94077
  for (n3 = 0, r3 = 0; r3 < 28; r3++)
93859
- for (yc[r3] = n3, e4 = 0; e4 < 1 << uc[r3]; e4++)
93860
- bc[n3++] = r3;
93861
- for (bc[n3 - 1] = r3, o3 = 0, r3 = 0; r3 < 16; r3++)
93862
- for (xc[r3] = o3, e4 = 0; e4 < 1 << hc[r3]; e4++)
93863
- gc[o3++] = r3;
93864
- for (o3 >>= 7; r3 < sc; r3++)
93865
- for (xc[r3] = o3 << 7, e4 = 0; e4 < 1 << hc[r3] - 7; e4++)
93866
- gc[256 + o3++] = r3;
93867
- for (t3 = 0; t3 <= lc; t3++)
94078
+ for (kc[r3] = n3, e4 = 0; e4 < 1 << hc[r3]; e4++)
94079
+ yc[n3++] = r3;
94080
+ for (yc[n3 - 1] = r3, o3 = 0, r3 = 0; r3 < 16; r3++)
94081
+ for (_c[r3] = o3, e4 = 0; e4 < 1 << dc[r3]; e4++)
94082
+ bc[o3++] = r3;
94083
+ for (o3 >>= 7; r3 < lc; r3++)
94084
+ for (_c[r3] = o3 << 7, e4 = 0; e4 < 1 << dc[r3] - 7; e4++)
94085
+ bc[256 + o3++] = r3;
94086
+ for (t3 = 0; t3 <= cc; t3++)
93868
94087
  i3[t3] = 0;
93869
94088
  for (e4 = 0; e4 <= 143; )
93870
- mc[2 * e4 + 1] = 8, e4++, i3[8]++;
94089
+ fc[2 * e4 + 1] = 8, e4++, i3[8]++;
93871
94090
  for (; e4 <= 255; )
93872
- mc[2 * e4 + 1] = 9, e4++, i3[9]++;
94091
+ fc[2 * e4 + 1] = 9, e4++, i3[9]++;
93873
94092
  for (; e4 <= 279; )
93874
- mc[2 * e4 + 1] = 7, e4++, i3[7]++;
94093
+ fc[2 * e4 + 1] = 7, e4++, i3[7]++;
93875
94094
  for (; e4 <= 287; )
93876
- mc[2 * e4 + 1] = 8, e4++, i3[8]++;
93877
- for (Lc(mc, 287, i3), e4 = 0; e4 < sc; e4++)
93878
- fc[2 * e4 + 1] = 5, fc[2 * e4] = Oc(e4, 5);
93879
- 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);
93880
- }(), 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);
93881
- }, nc._tr_stored_block = Uc, nc._tr_flush_block = function(e3, t3, n3, r3) {
94095
+ fc[2 * e4 + 1] = 8, e4++, i3[8]++;
94096
+ for (Ec(fc, 287, i3), e4 = 0; e4 < lc; e4++)
94097
+ gc[2 * e4 + 1] = 5, gc[2 * e4] = Lc(e4, 5);
94098
+ 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);
94099
+ }(), 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);
94100
+ }, rc._tr_stored_block = Mc, rc._tr_flush_block = function(e3, t3, n3, r3) {
93882
94101
  var o3, i3, a3 = 0;
93883
94102
  e3.level > 0 ? (2 === e3.strm.data_type && (e3.strm.data_type = function(e4) {
93884
94103
  var t4, n4 = 4093624447;
@@ -93887,29 +94106,29 @@ var require_processPagePollCjs = __commonJS({
93887
94106
  return 0;
93888
94107
  if (0 !== e4.dyn_ltree[18] || 0 !== e4.dyn_ltree[20] || 0 !== e4.dyn_ltree[26])
93889
94108
  return 1;
93890
- for (t4 = 32; t4 < ic; t4++)
94109
+ for (t4 = 32; t4 < ac; t4++)
93891
94110
  if (0 !== e4.dyn_ltree[2 * t4])
93892
94111
  return 1;
93893
94112
  return 0;
93894
- }(e3)), Dc(e3, e3.l_desc), Dc(e3, e3.d_desc), a3 = function(e4) {
94113
+ }(e3)), Pc(e3, e3.l_desc), Pc(e3, e3.d_desc), a3 = function(e4) {
93895
94114
  var t4;
93896
- 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--)
94115
+ 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--)
93897
94116
  ;
93898
94117
  return e4.opt_len += 3 * (t4 + 1) + 5 + 5 + 4, t4;
93899
- }(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) {
94118
+ }(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) {
93900
94119
  var o4;
93901
- for (Ac(e4, t4 - 257, 5), Ac(e4, n4 - 1, 5), Ac(e4, r4 - 4, 4), o4 = 0; o4 < r4; o4++)
93902
- Ac(e4, e4.bl_tree[2 * pc[o4] + 1], 3);
93903
- Bc(e4, e4.dyn_ltree, t4 - 1), Bc(e4, e4.dyn_dtree, n4 - 1);
93904
- }(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);
93905
- }, nc._tr_tally = function(e3, t3, n3) {
93906
- 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;
93907
- }, nc._tr_align = function(e3) {
93908
- Ac(e3, 2, 3), Tc(e3, 256, mc), function(e4) {
93909
- 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);
94120
+ for (Tc(e4, t4 - 257, 5), Tc(e4, n4 - 1, 5), Tc(e4, r4 - 4, 4), o4 = 0; o4 < r4; o4++)
94121
+ Tc(e4, e4.bl_tree[2 * mc[o4] + 1], 3);
94122
+ Fc(e4, e4.dyn_ltree, t4 - 1), Fc(e4, e4.dyn_dtree, n4 - 1);
94123
+ }(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);
94124
+ }, rc._tr_tally = function(e3, t3, n3) {
94125
+ 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;
94126
+ }, rc._tr_align = function(e3) {
94127
+ Tc(e3, 2, 3), Oc(e3, 256, fc), function(e4) {
94128
+ 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);
93910
94129
  }(e3);
93911
94130
  };
93912
- var Mc, qc = function(e3, t3, n3, r3) {
94131
+ var qc, Wc = function(e3, t3, n3, r3) {
93913
94132
  for (var o3 = 65535 & e3 | 0, i3 = e3 >>> 16 & 65535 | 0, a3 = 0; 0 !== n3; ) {
93914
94133
  n3 -= a3 = n3 > 2e3 ? 2e3 : n3;
93915
94134
  do {
@@ -93918,7 +94137,7 @@ var require_processPagePollCjs = __commonJS({
93918
94137
  o3 %= 65521, i3 %= 65521;
93919
94138
  }
93920
94139
  return o3 | i3 << 16 | 0;
93921
- }, Wc = function() {
94140
+ }, $c = function() {
93922
94141
  for (var e3, t3 = [], n3 = 0; n3 < 256; n3++) {
93923
94142
  e3 = n3;
93924
94143
  for (var r3 = 0; r3 < 8; r3++)
@@ -93926,45 +94145,45 @@ var require_processPagePollCjs = __commonJS({
93926
94145
  t3[n3] = e3;
93927
94146
  }
93928
94147
  return t3;
93929
- }(), $c = function(e3, t3, n3, r3) {
93930
- var o3 = Wc, i3 = r3 + n3;
94148
+ }(), Vc = function(e3, t3, n3, r3) {
94149
+ var o3 = $c, i3 = r3 + n3;
93931
94150
  e3 ^= -1;
93932
94151
  for (var a3 = r3; a3 < i3; a3++)
93933
94152
  e3 = e3 >>> 8 ^ o3[255 & (e3 ^ t3[a3])];
93934
94153
  return -1 ^ e3;
93935
- }, 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;
93936
- function mu(e3, t3) {
93937
- return e3.msg = Yc[t3], t3;
94154
+ }, 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;
94155
+ function fu(e3, t3) {
94156
+ return e3.msg = Xc[t3], t3;
93938
94157
  }
93939
- function fu(e3) {
94158
+ function gu(e3) {
93940
94159
  return (e3 << 1) - (e3 > 4 ? 9 : 0);
93941
94160
  }
93942
- function gu(e3) {
94161
+ function bu(e3) {
93943
94162
  for (var t3 = e3.length; --t3 >= 0; )
93944
94163
  e3[t3] = 0;
93945
94164
  }
93946
- function bu(e3) {
94165
+ function yu(e3) {
93947
94166
  var t3 = e3.state, n3 = t3.pending;
93948
- 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));
93949
- }
93950
- function yu(e3, t3) {
93951
- 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);
94167
+ 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));
93952
94168
  }
93953
94169
  function ku(e3, t3) {
93954
- e3.pending_buf[e3.pending++] = t3;
94170
+ 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);
93955
94171
  }
93956
94172
  function wu(e3, t3) {
93957
- e3.pending_buf[e3.pending++] = t3 >>> 8 & 255, e3.pending_buf[e3.pending++] = 255 & t3;
94173
+ e3.pending_buf[e3.pending++] = t3;
93958
94174
  }
93959
94175
  function vu(e3, t3) {
93960
- 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];
94176
+ e3.pending_buf[e3.pending++] = t3 >>> 8 & 255, e3.pending_buf[e3.pending++] = 255 & t3;
94177
+ }
94178
+ function xu(e3, t3) {
94179
+ 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];
93961
94180
  e3.prev_length >= e3.good_match && (o3 >>= 2), s3 > e3.lookahead && (s3 = e3.lookahead);
93962
94181
  do {
93963
94182
  if (c2[(n3 = t3) + a3] === m2 && c2[n3 + a3 - 1] === p2 && c2[n3] === c2[i3] && c2[++n3] === c2[i3 + 1]) {
93964
94183
  i3 += 2, n3++;
93965
94184
  do {
93966
94185
  } 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);
93967
- if (r3 = lu - (d2 - i3), i3 = d2 - lu, r3 > a3) {
94186
+ if (r3 = cu - (d2 - i3), i3 = d2 - cu, r3 > a3) {
93968
94187
  if (e3.match_start = t3, a3 = r3, r3 >= s3)
93969
94188
  break;
93970
94189
  p2 = c2[i3 + a3 - 1], m2 = c2[i3 + a3];
@@ -93973,11 +94192,11 @@ var require_processPagePollCjs = __commonJS({
93973
94192
  } while ((t3 = h2[t3 & u2]) > l2 && 0 != --o3);
93974
94193
  return a3 <= e3.lookahead ? a3 : e3.lookahead;
93975
94194
  }
93976
- function xu(e3) {
94195
+ function _u(e3) {
93977
94196
  var t3, n3, r3, o3, i3, a3, s3, l2, c2, u2, h2 = e3.w_size;
93978
94197
  do {
93979
- if (o3 = e3.window_size - e3.lookahead - e3.strstart, e3.strstart >= h2 + (h2 - cu)) {
93980
- 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;
94198
+ if (o3 = e3.window_size - e3.lookahead - e3.strstart, e3.strstart >= h2 + (h2 - uu)) {
94199
+ 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;
93981
94200
  do {
93982
94201
  r3 = e3.head[--t3], e3.head[t3] = r3 >= h2 ? r3 - h2 : 0;
93983
94202
  } while (--n3);
@@ -93989,309 +94208,309 @@ var require_processPagePollCjs = __commonJS({
93989
94208
  }
93990
94209
  if (0 === e3.strm.avail_in)
93991
94210
  break;
93992
- 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)
93993
- 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)); )
94211
+ 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)
94212
+ 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)); )
93994
94213
  ;
93995
- } while (e3.lookahead < cu && 0 !== e3.strm.avail_in);
94214
+ } while (e3.lookahead < uu && 0 !== e3.strm.avail_in);
93996
94215
  }
93997
- function _u(e3, t3) {
94216
+ function Su(e3, t3) {
93998
94217
  for (var n3, r3; ; ) {
93999
- if (e3.lookahead < cu) {
94000
- if (xu(e3), e3.lookahead < cu && t3 === Xc)
94218
+ if (e3.lookahead < uu) {
94219
+ if (_u(e3), e3.lookahead < uu && t3 === Qc)
94001
94220
  return 1;
94002
94221
  if (0 === e3.lookahead)
94003
94222
  break;
94004
94223
  }
94005
- 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)
94006
- 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) {
94224
+ 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)
94225
+ 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) {
94007
94226
  e3.match_length--;
94008
94227
  do {
94009
- 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;
94228
+ 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;
94010
94229
  } while (0 != --e3.match_length);
94011
94230
  e3.strstart++;
94012
94231
  } else
94013
94232
  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;
94014
94233
  else
94015
- r3 = Kc._tr_tally(e3, 0, e3.window[e3.strstart]), e3.lookahead--, e3.strstart++;
94016
- if (r3 && (yu(e3, false), 0 === e3.strm.avail_out))
94234
+ r3 = Hc._tr_tally(e3, 0, e3.window[e3.strstart]), e3.lookahead--, e3.strstart++;
94235
+ if (r3 && (ku(e3, false), 0 === e3.strm.avail_out))
94017
94236
  return 1;
94018
94237
  }
94019
- 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;
94238
+ 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;
94020
94239
  }
94021
- function Su(e3, t3) {
94240
+ function Cu(e3, t3) {
94022
94241
  for (var n3, r3, o3; ; ) {
94023
- if (e3.lookahead < cu) {
94024
- if (xu(e3), e3.lookahead < cu && t3 === Xc)
94242
+ if (e3.lookahead < uu) {
94243
+ if (_u(e3), e3.lookahead < uu && t3 === Qc)
94025
94244
  return 1;
94026
94245
  if (0 === e3.lookahead)
94027
94246
  break;
94028
94247
  }
94029
- 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) {
94030
- 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;
94248
+ 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) {
94249
+ 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;
94031
94250
  do {
94032
- ++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);
94251
+ ++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);
94033
94252
  } while (0 != --e3.prev_length);
94034
- if (e3.match_available = 0, e3.match_length = su - 1, e3.strstart++, r3 && (yu(e3, false), 0 === e3.strm.avail_out))
94253
+ if (e3.match_available = 0, e3.match_length = lu - 1, e3.strstart++, r3 && (ku(e3, false), 0 === e3.strm.avail_out))
94035
94254
  return 1;
94036
94255
  } else if (e3.match_available) {
94037
- if ((r3 = Kc._tr_tally(e3, 0, e3.window[e3.strstart - 1])) && yu(e3, false), e3.strstart++, e3.lookahead--, 0 === e3.strm.avail_out)
94256
+ if ((r3 = Hc._tr_tally(e3, 0, e3.window[e3.strstart - 1])) && ku(e3, false), e3.strstart++, e3.lookahead--, 0 === e3.strm.avail_out)
94038
94257
  return 1;
94039
94258
  } else
94040
94259
  e3.match_available = 1, e3.strstart++, e3.lookahead--;
94041
94260
  }
94042
- 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;
94261
+ 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;
94043
94262
  }
94044
- function Cu(e3, t3, n3, r3, o3) {
94263
+ function zu(e3, t3, n3, r3, o3) {
94045
94264
  this.good_length = e3, this.max_lazy = t3, this.nice_length = n3, this.max_chain = r3, this.func = o3;
94046
94265
  }
94047
- function zu() {
94048
- 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;
94266
+ function Au() {
94267
+ 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;
94049
94268
  }
94050
- function Au(e3) {
94269
+ function Tu(e3) {
94051
94270
  var t3;
94052
- 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);
94271
+ 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);
94053
94272
  }
94054
- function Tu(e3) {
94055
- var t3, n3 = Au(e3);
94056
- 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;
94273
+ function Ou(e3) {
94274
+ var t3, n3 = Tu(e3);
94275
+ 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;
94057
94276
  }
94058
- function Ou(e3, t3, n3, r3, o3, i3) {
94277
+ function Lu(e3, t3, n3, r3, o3, i3) {
94059
94278
  if (!e3)
94060
- return Jc;
94279
+ return eu;
94061
94280
  var a3 = 1;
94062
- 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)
94063
- return mu(e3, Jc);
94281
+ 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)
94282
+ return fu(e3, eu);
94064
94283
  8 === r3 && (r3 = 9);
94065
- var s3 = new zu();
94066
- 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);
94284
+ var s3 = new Au();
94285
+ 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);
94067
94286
  }
94068
- Mc = [new Cu(0, 0, 0, 0, function(e3, t3) {
94287
+ qc = [new zu(0, 0, 0, 0, function(e3, t3) {
94069
94288
  var n3 = 65535;
94070
94289
  for (n3 > e3.pending_buf_size - 5 && (n3 = e3.pending_buf_size - 5); ; ) {
94071
94290
  if (e3.lookahead <= 1) {
94072
- if (xu(e3), 0 === e3.lookahead && t3 === Xc)
94291
+ if (_u(e3), 0 === e3.lookahead && t3 === Qc)
94073
94292
  return 1;
94074
94293
  if (0 === e3.lookahead)
94075
94294
  break;
94076
94295
  }
94077
94296
  e3.strstart += e3.lookahead, e3.lookahead = 0;
94078
94297
  var r3 = e3.block_start + n3;
94079
- if ((0 === e3.strstart || e3.strstart >= r3) && (e3.lookahead = e3.strstart - r3, e3.strstart = r3, yu(e3, false), 0 === e3.strm.avail_out))
94298
+ if ((0 === e3.strstart || e3.strstart >= r3) && (e3.lookahead = e3.strstart - r3, e3.strstart = r3, ku(e3, false), 0 === e3.strm.avail_out))
94080
94299
  return 1;
94081
- if (e3.strstart - e3.block_start >= e3.w_size - cu && (yu(e3, false), 0 === e3.strm.avail_out))
94300
+ if (e3.strstart - e3.block_start >= e3.w_size - uu && (ku(e3, false), 0 === e3.strm.avail_out))
94082
94301
  return 1;
94083
94302
  }
94084
- 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);
94085
- }), 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) {
94086
- return Ou(e3, t3, tu, 15, 8, 0);
94087
- }, tc.deflateInit2 = Ou, tc.deflateReset = Tu, tc.deflateResetKeep = Au, tc.deflateSetHeader = function(e3, t3) {
94088
- return e3 && e3.state ? 2 !== e3.state.wrap ? Jc : (e3.state.gzhead = t3, Qc) : Jc;
94089
- }, tc.deflate = function(e3, t3) {
94303
+ 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);
94304
+ }), 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) {
94305
+ return Lu(e3, t3, nu, 15, 8, 0);
94306
+ }, nc.deflateInit2 = Lu, nc.deflateReset = Ou, nc.deflateResetKeep = Tu, nc.deflateSetHeader = function(e3, t3) {
94307
+ return e3 && e3.state ? 2 !== e3.state.wrap ? eu : (e3.state.gzhead = t3, Jc) : eu;
94308
+ }, nc.deflate = function(e3, t3) {
94090
94309
  var n3, r3, o3, i3;
94091
94310
  if (!e3 || !e3.state || t3 > 5 || t3 < 0)
94092
- return e3 ? mu(e3, Jc) : Jc;
94093
- if (r3 = e3.state, !e3.output || !e3.input && 0 !== e3.avail_in || r3.status === pu && 4 !== t3)
94094
- return mu(e3, 0 === e3.avail_out ? -5 : Jc);
94095
- if (r3.strm = e3, n3 = r3.last_flush, r3.last_flush = t3, r3.status === uu)
94311
+ return e3 ? fu(e3, eu) : eu;
94312
+ if (r3 = e3.state, !e3.output || !e3.input && 0 !== e3.avail_in || r3.status === mu && 4 !== t3)
94313
+ return fu(e3, 0 === e3.avail_out ? -5 : eu);
94314
+ if (r3.strm = e3, n3 = r3.last_flush, r3.last_flush = t3, r3.status === hu)
94096
94315
  if (2 === r3.wrap)
94097
- 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);
94316
+ 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);
94098
94317
  else {
94099
- var a3 = tu + (r3.w_bits - 8 << 4) << 8;
94100
- 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;
94318
+ var a3 = nu + (r3.w_bits - 8 << 4) << 8;
94319
+ 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;
94101
94320
  }
94102
94321
  if (69 === r3.status)
94103
94322
  if (r3.gzhead.extra) {
94104
- 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)); )
94105
- ku(r3, 255 & r3.gzhead.extra[r3.gzindex]), r3.gzindex++;
94106
- 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);
94323
+ 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)); )
94324
+ wu(r3, 255 & r3.gzhead.extra[r3.gzindex]), r3.gzindex++;
94325
+ 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);
94107
94326
  } else
94108
94327
  r3.status = 73;
94109
94328
  if (73 === r3.status)
94110
94329
  if (r3.gzhead.name) {
94111
94330
  o3 = r3.pending;
94112
94331
  do {
94113
- 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)) {
94332
+ 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)) {
94114
94333
  i3 = 1;
94115
94334
  break;
94116
94335
  }
94117
- i3 = r3.gzindex < r3.gzhead.name.length ? 255 & r3.gzhead.name.charCodeAt(r3.gzindex++) : 0, ku(r3, i3);
94336
+ i3 = r3.gzindex < r3.gzhead.name.length ? 255 & r3.gzhead.name.charCodeAt(r3.gzindex++) : 0, wu(r3, i3);
94118
94337
  } while (0 !== i3);
94119
- 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);
94338
+ 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);
94120
94339
  } else
94121
94340
  r3.status = 91;
94122
94341
  if (91 === r3.status)
94123
94342
  if (r3.gzhead.comment) {
94124
94343
  o3 = r3.pending;
94125
94344
  do {
94126
- 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)) {
94345
+ 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)) {
94127
94346
  i3 = 1;
94128
94347
  break;
94129
94348
  }
94130
- i3 = r3.gzindex < r3.gzhead.comment.length ? 255 & r3.gzhead.comment.charCodeAt(r3.gzindex++) : 0, ku(r3, i3);
94349
+ i3 = r3.gzindex < r3.gzhead.comment.length ? 255 & r3.gzhead.comment.charCodeAt(r3.gzindex++) : 0, wu(r3, i3);
94131
94350
  } while (0 !== i3);
94132
- r3.gzhead.hcrc && r3.pending > o3 && (e3.adler = Gc(e3.adler, r3.pending_buf, r3.pending - o3, o3)), 0 === i3 && (r3.status = hu);
94351
+ r3.gzhead.hcrc && r3.pending > o3 && (e3.adler = Yc(e3.adler, r3.pending_buf, r3.pending - o3, o3)), 0 === i3 && (r3.status = du);
94133
94352
  } else
94134
- r3.status = hu;
94135
- 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) {
94136
- if (bu(e3), 0 === e3.avail_out)
94137
- return r3.last_flush = -1, Qc;
94138
- } else if (0 === e3.avail_in && fu(t3) <= fu(n3) && 4 !== t3)
94139
- return mu(e3, -5);
94140
- if (r3.status === pu && 0 !== e3.avail_in)
94141
- return mu(e3, -5);
94142
- if (0 !== e3.avail_in || 0 !== r3.lookahead || t3 !== Xc && r3.status !== pu) {
94353
+ r3.status = du;
94354
+ 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) {
94355
+ if (yu(e3), 0 === e3.avail_out)
94356
+ return r3.last_flush = -1, Jc;
94357
+ } else if (0 === e3.avail_in && gu(t3) <= gu(n3) && 4 !== t3)
94358
+ return fu(e3, -5);
94359
+ if (r3.status === mu && 0 !== e3.avail_in)
94360
+ return fu(e3, -5);
94361
+ if (0 !== e3.avail_in || 0 !== r3.lookahead || t3 !== Qc && r3.status !== mu) {
94143
94362
  var s3 = 2 === r3.strategy ? function(e4, t4) {
94144
94363
  for (var n4; ; ) {
94145
- if (0 === e4.lookahead && (xu(e4), 0 === e4.lookahead)) {
94146
- if (t4 === Xc)
94364
+ if (0 === e4.lookahead && (_u(e4), 0 === e4.lookahead)) {
94365
+ if (t4 === Qc)
94147
94366
  return 1;
94148
94367
  break;
94149
94368
  }
94150
- 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))
94369
+ 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))
94151
94370
  return 1;
94152
94371
  }
94153
- 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;
94372
+ 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;
94154
94373
  }(r3, t3) : 3 === r3.strategy ? function(e4, t4) {
94155
94374
  for (var n4, r4, o4, i4, a4 = e4.window; ; ) {
94156
- if (e4.lookahead <= lu) {
94157
- if (xu(e4), e4.lookahead <= lu && t4 === Xc)
94375
+ if (e4.lookahead <= cu) {
94376
+ if (_u(e4), e4.lookahead <= cu && t4 === Qc)
94158
94377
  return 1;
94159
94378
  if (0 === e4.lookahead)
94160
94379
  break;
94161
94380
  }
94162
- 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]) {
94163
- i4 = e4.strstart + lu;
94381
+ 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]) {
94382
+ i4 = e4.strstart + cu;
94164
94383
  do {
94165
94384
  } 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);
94166
- e4.match_length = lu - (i4 - o4), e4.match_length > e4.lookahead && (e4.match_length = e4.lookahead);
94385
+ e4.match_length = cu - (i4 - o4), e4.match_length > e4.lookahead && (e4.match_length = e4.lookahead);
94167
94386
  }
94168
- 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))
94387
+ 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))
94169
94388
  return 1;
94170
94389
  }
94171
- 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;
94172
- }(r3, t3) : Mc[r3.level].func(r3, t3);
94173
- if (3 !== s3 && 4 !== s3 || (r3.status = pu), 1 === s3 || 3 === s3)
94174
- return 0 === e3.avail_out && (r3.last_flush = -1), Qc;
94175
- 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))
94176
- return r3.last_flush = -1, Qc;
94177
- }
94178
- 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);
94179
- }, tc.deflateEnd = function(e3) {
94390
+ 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;
94391
+ }(r3, t3) : qc[r3.level].func(r3, t3);
94392
+ if (3 !== s3 && 4 !== s3 || (r3.status = mu), 1 === s3 || 3 === s3)
94393
+ return 0 === e3.avail_out && (r3.last_flush = -1), Jc;
94394
+ 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))
94395
+ return r3.last_flush = -1, Jc;
94396
+ }
94397
+ 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);
94398
+ }, nc.deflateEnd = function(e3) {
94180
94399
  var t3;
94181
- 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;
94182
- }, tc.deflateSetDictionary = function(e3, t3) {
94400
+ 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;
94401
+ }, nc.deflateSetDictionary = function(e3, t3) {
94183
94402
  var n3, r3, o3, i3, a3, s3, l2, c2, u2 = t3.length;
94184
94403
  if (!e3 || !e3.state)
94185
- return Jc;
94186
- if (2 === (i3 = (n3 = e3.state).wrap) || 1 === i3 && n3.status !== uu || n3.lookahead)
94187
- return Jc;
94188
- 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; ) {
94189
- r3 = n3.strstart, o3 = n3.lookahead - (su - 1);
94404
+ return eu;
94405
+ if (2 === (i3 = (n3 = e3.state).wrap) || 1 === i3 && n3.status !== hu || n3.lookahead)
94406
+ return eu;
94407
+ 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; ) {
94408
+ r3 = n3.strstart, o3 = n3.lookahead - (lu - 1);
94190
94409
  do {
94191
- 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++;
94410
+ 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++;
94192
94411
  } while (--o3);
94193
- n3.strstart = r3, n3.lookahead = su - 1, xu(n3);
94412
+ n3.strstart = r3, n3.lookahead = lu - 1, _u(n3);
94194
94413
  }
94195
- 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;
94196
- }, tc.deflateInfo = "pako deflate (from Nodeca project)";
94197
- var Lu = {}, Eu = Jl, Ru = true, Nu = true;
94414
+ 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;
94415
+ }, nc.deflateInfo = "pako deflate (from Nodeca project)";
94416
+ var Eu = {}, Ru = ec, Nu = true, ju = true;
94198
94417
  try {
94199
94418
  String.fromCharCode.apply(null, [0]);
94200
94419
  } catch (t3) {
94201
- Ru = false;
94420
+ Nu = false;
94202
94421
  }
94203
94422
  try {
94204
94423
  String.fromCharCode.apply(null, new Uint8Array(1));
94205
94424
  } catch (t3) {
94206
- Nu = false;
94425
+ ju = false;
94207
94426
  }
94208
- for (var ju = new Eu.Buf8(256), Iu = 0; Iu < 256; Iu++)
94209
- ju[Iu] = Iu >= 252 ? 6 : Iu >= 248 ? 5 : Iu >= 240 ? 4 : Iu >= 224 ? 3 : Iu >= 192 ? 2 : 1;
94210
- function Du(e3, t3) {
94211
- if (t3 < 65534 && (e3.subarray && Nu || !e3.subarray && Ru))
94212
- return String.fromCharCode.apply(null, Eu.shrinkBuf(e3, t3));
94427
+ for (var Iu = new Ru.Buf8(256), Du = 0; Du < 256; Du++)
94428
+ Iu[Du] = Du >= 252 ? 6 : Du >= 248 ? 5 : Du >= 240 ? 4 : Du >= 224 ? 3 : Du >= 192 ? 2 : 1;
94429
+ function Pu(e3, t3) {
94430
+ if (t3 < 65534 && (e3.subarray && ju || !e3.subarray && Nu))
94431
+ return String.fromCharCode.apply(null, Ru.shrinkBuf(e3, t3));
94213
94432
  for (var n3 = "", r3 = 0; r3 < t3; r3++)
94214
94433
  n3 += String.fromCharCode(e3[r3]);
94215
94434
  return n3;
94216
94435
  }
94217
- ju[254] = ju[254] = 1, Lu.string2buf = function(e3) {
94436
+ Iu[254] = Iu[254] = 1, Eu.string2buf = function(e3) {
94218
94437
  var t3, n3, r3, o3, i3, a3 = e3.length, s3 = 0;
94219
94438
  for (o3 = 0; o3 < a3; o3++)
94220
94439
  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;
94221
- for (t3 = new Eu.Buf8(s3), i3 = 0, o3 = 0; i3 < s3; o3++)
94440
+ for (t3 = new Ru.Buf8(s3), i3 = 0, o3 = 0; i3 < s3; o3++)
94222
94441
  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);
94223
94442
  return t3;
94224
- }, Lu.buf2binstring = function(e3) {
94225
- return Du(e3, e3.length);
94226
- }, Lu.binstring2buf = function(e3) {
94227
- for (var t3 = new Eu.Buf8(e3.length), n3 = 0, r3 = t3.length; n3 < r3; n3++)
94443
+ }, Eu.buf2binstring = function(e3) {
94444
+ return Pu(e3, e3.length);
94445
+ }, Eu.binstring2buf = function(e3) {
94446
+ for (var t3 = new Ru.Buf8(e3.length), n3 = 0, r3 = t3.length; n3 < r3; n3++)
94228
94447
  t3[n3] = e3.charCodeAt(n3);
94229
94448
  return t3;
94230
- }, Lu.buf2string = function(e3, t3) {
94449
+ }, Eu.buf2string = function(e3, t3) {
94231
94450
  var n3, r3, o3, i3, a3 = t3 || e3.length, s3 = new Array(2 * a3);
94232
94451
  for (r3 = 0, n3 = 0; n3 < a3; )
94233
94452
  if ((o3 = e3[n3++]) < 128)
94234
94453
  s3[r3++] = o3;
94235
- else if ((i3 = ju[o3]) > 4)
94454
+ else if ((i3 = Iu[o3]) > 4)
94236
94455
  s3[r3++] = 65533, n3 += i3 - 1;
94237
94456
  else {
94238
94457
  for (o3 &= 2 === i3 ? 31 : 3 === i3 ? 15 : 7; i3 > 1 && n3 < a3; )
94239
94458
  o3 = o3 << 6 | 63 & e3[n3++], i3--;
94240
94459
  i3 > 1 ? s3[r3++] = 65533 : o3 < 65536 ? s3[r3++] = o3 : (o3 -= 65536, s3[r3++] = 55296 | o3 >> 10 & 1023, s3[r3++] = 56320 | 1023 & o3);
94241
94460
  }
94242
- return Du(s3, r3);
94243
- }, Lu.utf8border = function(e3, t3) {
94461
+ return Pu(s3, r3);
94462
+ }, Eu.utf8border = function(e3, t3) {
94244
94463
  var n3;
94245
94464
  for ((t3 = t3 || e3.length) > e3.length && (t3 = e3.length), n3 = t3 - 1; n3 >= 0 && 128 == (192 & e3[n3]); )
94246
94465
  n3--;
94247
- return n3 < 0 || 0 === n3 ? t3 : n3 + ju[e3[n3]] > t3 ? n3 : t3;
94466
+ return n3 < 0 || 0 === n3 ? t3 : n3 + Iu[e3[n3]] > t3 ? n3 : t3;
94248
94467
  };
94249
- var Pu = function() {
94468
+ var Bu = function() {
94250
94469
  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;
94251
- }, Bu = tc, Fu = Jl, Uu = Lu, Mu = Vc, qu = Pu, Wu = Object.prototype.toString, $u = 0, Vu = -1, Zu = 0, Ku = 8;
94252
- function Hu(e3) {
94253
- if (!(this instanceof Hu))
94254
- return new Hu(e3);
94255
- this.options = Fu.assign({ level: Vu, method: Ku, chunkSize: 16384, windowBits: 15, memLevel: 8, strategy: Zu, to: "" }, e3 || {});
94470
+ }, Fu = nc, Uu = ec, Mu = Eu, qu = Zc, Wu = Bu, $u = Object.prototype.toString, Vu = 0, Zu = -1, Ku = 0, Hu = 8;
94471
+ function Gu(e3) {
94472
+ if (!(this instanceof Gu))
94473
+ return new Gu(e3);
94474
+ this.options = Uu.assign({ level: Zu, method: Hu, chunkSize: 16384, windowBits: 15, memLevel: 8, strategy: Ku, to: "" }, e3 || {});
94256
94475
  var t3 = this.options;
94257
- 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;
94258
- var n3 = Bu.deflateInit2(this.strm, t3.level, t3.method, t3.windowBits, t3.memLevel, t3.strategy);
94259
- if (n3 !== $u)
94260
- throw new Error(Mu[n3]);
94261
- if (t3.header && Bu.deflateSetHeader(this.strm, t3.header), t3.dictionary) {
94476
+ 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;
94477
+ var n3 = Fu.deflateInit2(this.strm, t3.level, t3.method, t3.windowBits, t3.memLevel, t3.strategy);
94478
+ if (n3 !== Vu)
94479
+ throw new Error(qu[n3]);
94480
+ if (t3.header && Fu.deflateSetHeader(this.strm, t3.header), t3.dictionary) {
94262
94481
  var r3;
94263
- 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)
94264
- throw new Error(Mu[n3]);
94482
+ 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)
94483
+ throw new Error(qu[n3]);
94265
94484
  this._dict_set = true;
94266
94485
  }
94267
94486
  }
94268
- function Gu(e3, t3) {
94269
- var n3 = new Hu(t3);
94487
+ function Yu(e3, t3) {
94488
+ var n3 = new Gu(t3);
94270
94489
  if (n3.push(e3, true), n3.err)
94271
- throw n3.msg || Mu[n3.err];
94490
+ throw n3.msg || qu[n3.err];
94272
94491
  return n3.result;
94273
94492
  }
94274
- Hu.prototype.push = function(e3, t3) {
94493
+ Gu.prototype.push = function(e3, t3) {
94275
94494
  var n3, r3, o3 = this.strm, i3 = this.options.chunkSize;
94276
94495
  if (this.ended)
94277
94496
  return false;
94278
- 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;
94497
+ 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;
94279
94498
  do {
94280
- 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)
94499
+ 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)
94281
94500
  return this.onEnd(n3), this.ended = true, false;
94282
- 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)));
94501
+ 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)));
94283
94502
  } while ((o3.avail_in > 0 || 0 === o3.avail_out) && 1 !== n3);
94284
- 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);
94285
- }, Hu.prototype.onData = function(e3) {
94503
+ 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);
94504
+ }, Gu.prototype.onData = function(e3) {
94286
94505
  this.chunks.push(e3);
94287
- }, Hu.prototype.onEnd = function(e3) {
94288
- 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;
94289
- }, ec.Deflate = Hu, ec.deflate = Gu, ec.deflateRaw = function(e3, t3) {
94290
- return (t3 = t3 || {}).raw = true, Gu(e3, t3);
94291
- }, ec.gzip = function(e3, t3) {
94292
- return (t3 = t3 || {}).gzip = true, Gu(e3, t3);
94506
+ }, Gu.prototype.onEnd = function(e3) {
94507
+ 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;
94508
+ }, tc.Deflate = Gu, tc.deflate = Yu, tc.deflateRaw = function(e3, t3) {
94509
+ return (t3 = t3 || {}).raw = true, Yu(e3, t3);
94510
+ }, tc.gzip = function(e3, t3) {
94511
+ return (t3 = t3 || {}).gzip = true, Yu(e3, t3);
94293
94512
  };
94294
- 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) {
94513
+ 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) {
94295
94514
  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;
94296
94515
  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;
94297
94516
  e:
@@ -94380,8 +94599,8 @@ var require_processPagePollCjs = __commonJS({
94380
94599
  }
94381
94600
  } while (r3 < o3 && i3 < s3);
94382
94601
  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;
94383
- }, sh = function(e3, t3, n3, r3, o3, i3, a3, s3) {
94384
- 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;
94602
+ }, lh = function(e3, t3, n3, r3, o3, i3, a3, s3) {
94603
+ 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;
94385
94604
  for (y2 = 0; y2 <= 15; y2++)
94386
94605
  L2[y2] = 0;
94387
94606
  for (k2 = 0; k2 < r3; k2++)
@@ -94401,7 +94620,7 @@ var require_processPagePollCjs = __commonJS({
94401
94620
  E2[y2 + 1] = E2[y2] + L2[y2];
94402
94621
  for (k2 = 0; k2 < r3; k2++)
94403
94622
  0 !== t3[n3 + k2] && (a3[E2[t3[n3 + k2]]++] = k2);
94404
- 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)
94623
+ 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)
94405
94624
  return 1;
94406
94625
  for (; ; ) {
94407
94626
  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;
@@ -94424,34 +94643,34 @@ var require_processPagePollCjs = __commonJS({
94424
94643
  }
94425
94644
  }
94426
94645
  return 0 !== A2 && (o3[d2 + A2] = y2 - S2 << 24 | 64 << 16 | 0), s3.bits = x2, 0;
94427
- }, lh = 0, ch = -2, uh = 1, hh = 12, dh = 30, ph = 852, mh = 592;
94428
- function fh(e3) {
94646
+ }, ch = 0, uh = -2, hh = 1, dh = 12, ph = 30, mh = 852, fh = 592;
94647
+ function gh(e3) {
94429
94648
  return (e3 >>> 24 & 255) + (e3 >>> 8 & 65280) + ((65280 & e3) << 8) + ((255 & e3) << 24);
94430
94649
  }
94431
- function gh() {
94432
- 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;
94650
+ function bh() {
94651
+ 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;
94433
94652
  }
94434
- function bh(e3) {
94653
+ function yh(e3) {
94435
94654
  var t3;
94436
- 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;
94655
+ 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;
94437
94656
  }
94438
- function yh(e3) {
94657
+ function kh(e3) {
94439
94658
  var t3;
94440
- return e3 && e3.state ? ((t3 = e3.state).wsize = 0, t3.whave = 0, t3.wnext = 0, bh(e3)) : ch;
94659
+ return e3 && e3.state ? ((t3 = e3.state).wsize = 0, t3.whave = 0, t3.wnext = 0, yh(e3)) : uh;
94441
94660
  }
94442
- function kh(e3, t3) {
94661
+ function wh(e3, t3) {
94443
94662
  var n3, r3;
94444
- 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;
94663
+ 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;
94445
94664
  }
94446
- function wh(e3, t3) {
94665
+ function vh(e3, t3) {
94447
94666
  var n3, r3;
94448
- return e3 ? (r3 = new gh(), e3.state = r3, r3.window = null, (n3 = kh(e3, t3)) !== lh && (e3.state = null), n3) : ch;
94667
+ return e3 ? (r3 = new bh(), e3.state = r3, r3.window = null, (n3 = wh(e3, t3)) !== ch && (e3.state = null), n3) : uh;
94449
94668
  }
94450
- var vh, xh, _h = true;
94451
- function Sh(e3) {
94452
- if (_h) {
94669
+ var xh, _h, Sh = true;
94670
+ function Ch(e3) {
94671
+ if (Sh) {
94453
94672
  var t3;
94454
- for (vh = new rh.Buf32(512), xh = new rh.Buf32(32), t3 = 0; t3 < 144; )
94673
+ for (xh = new oh.Buf32(512), _h = new oh.Buf32(32), t3 = 0; t3 < 144; )
94455
94674
  e3.lens[t3++] = 8;
94456
94675
  for (; t3 < 256; )
94457
94676
  e3.lens[t3++] = 9;
@@ -94459,27 +94678,27 @@ var require_processPagePollCjs = __commonJS({
94459
94678
  e3.lens[t3++] = 7;
94460
94679
  for (; t3 < 288; )
94461
94680
  e3.lens[t3++] = 8;
94462
- for (sh(1, e3.lens, 0, 288, vh, 0, e3.work, { bits: 9 }), t3 = 0; t3 < 32; )
94681
+ for (lh(1, e3.lens, 0, 288, xh, 0, e3.work, { bits: 9 }), t3 = 0; t3 < 32; )
94463
94682
  e3.lens[t3++] = 5;
94464
- sh(2, e3.lens, 0, 32, xh, 0, e3.work, { bits: 5 }), _h = false;
94683
+ lh(2, e3.lens, 0, 32, _h, 0, e3.work, { bits: 5 }), Sh = false;
94465
94684
  }
94466
- e3.lencode = vh, e3.lenbits = 9, e3.distcode = xh, e3.distbits = 5;
94685
+ e3.lencode = xh, e3.lenbits = 9, e3.distcode = _h, e3.distbits = 5;
94467
94686
  }
94468
- function Ch(e3, t3, n3, r3) {
94687
+ function zh(e3, t3, n3, r3) {
94469
94688
  var o3, i3 = e3.state;
94470
- 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;
94689
+ 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;
94471
94690
  }
94472
- Xu.inflateReset = yh, Xu.inflateReset2 = kh, Xu.inflateResetKeep = bh, Xu.inflateInit = function(e3) {
94473
- return wh(e3, 15);
94474
- }, Xu.inflateInit2 = wh, Xu.inflate = function(e3, t3) {
94475
- 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];
94691
+ Qu.inflateReset = kh, Qu.inflateReset2 = wh, Qu.inflateResetKeep = yh, Qu.inflateInit = function(e3) {
94692
+ return vh(e3, 15);
94693
+ }, Qu.inflateInit2 = vh, Qu.inflate = function(e3, t3) {
94694
+ 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];
94476
94695
  if (!e3 || !e3.state || !e3.output || !e3.input && 0 !== e3.avail_in)
94477
- return ch;
94478
- (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;
94696
+ return uh;
94697
+ (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;
94479
94698
  e:
94480
94699
  for (; ; )
94481
94700
  switch (n3.mode) {
94482
- case uh:
94701
+ case hh:
94483
94702
  if (0 === n3.wrap) {
94484
94703
  n3.mode = 13;
94485
94704
  break;
@@ -94490,24 +94709,24 @@ var require_processPagePollCjs = __commonJS({
94490
94709
  s3--, c2 += r3[i3++] << u2, u2 += 8;
94491
94710
  }
94492
94711
  if (2 & n3.wrap && 35615 === c2) {
94493
- 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;
94712
+ 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;
94494
94713
  break;
94495
94714
  }
94496
94715
  if (n3.flags = 0, n3.head && (n3.head.done = false), !(1 & n3.wrap) || (((255 & c2) << 8) + (c2 >> 8)) % 31) {
94497
- e3.msg = "incorrect header check", n3.mode = dh;
94716
+ e3.msg = "incorrect header check", n3.mode = ph;
94498
94717
  break;
94499
94718
  }
94500
94719
  if (8 != (15 & c2)) {
94501
- e3.msg = "unknown compression method", n3.mode = dh;
94720
+ e3.msg = "unknown compression method", n3.mode = ph;
94502
94721
  break;
94503
94722
  }
94504
94723
  if (u2 -= 4, x2 = 8 + (15 & (c2 >>>= 4)), 0 === n3.wbits)
94505
94724
  n3.wbits = x2;
94506
94725
  else if (x2 > n3.wbits) {
94507
- e3.msg = "invalid window size", n3.mode = dh;
94726
+ e3.msg = "invalid window size", n3.mode = ph;
94508
94727
  break;
94509
94728
  }
94510
- n3.dmax = 1 << x2, e3.adler = n3.check = 1, n3.mode = 512 & c2 ? 10 : hh, c2 = 0, u2 = 0;
94729
+ n3.dmax = 1 << x2, e3.adler = n3.check = 1, n3.mode = 512 & c2 ? 10 : dh, c2 = 0, u2 = 0;
94511
94730
  break;
94512
94731
  case 2:
94513
94732
  for (; u2 < 16; ) {
@@ -94516,28 +94735,28 @@ var require_processPagePollCjs = __commonJS({
94516
94735
  s3--, c2 += r3[i3++] << u2, u2 += 8;
94517
94736
  }
94518
94737
  if (n3.flags = c2, 8 != (255 & n3.flags)) {
94519
- e3.msg = "unknown compression method", n3.mode = dh;
94738
+ e3.msg = "unknown compression method", n3.mode = ph;
94520
94739
  break;
94521
94740
  }
94522
94741
  if (57344 & n3.flags) {
94523
- e3.msg = "unknown header flags set", n3.mode = dh;
94742
+ e3.msg = "unknown header flags set", n3.mode = ph;
94524
94743
  break;
94525
94744
  }
94526
- 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;
94745
+ 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;
94527
94746
  case 3:
94528
94747
  for (; u2 < 32; ) {
94529
94748
  if (0 === s3)
94530
94749
  break e;
94531
94750
  s3--, c2 += r3[i3++] << u2, u2 += 8;
94532
94751
  }
94533
- 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;
94752
+ 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;
94534
94753
  case 4:
94535
94754
  for (; u2 < 16; ) {
94536
94755
  if (0 === s3)
94537
94756
  break e;
94538
94757
  s3--, c2 += r3[i3++] << u2, u2 += 8;
94539
94758
  }
94540
- 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;
94759
+ 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;
94541
94760
  case 5:
94542
94761
  if (1024 & n3.flags) {
94543
94762
  for (; u2 < 16; ) {
@@ -94545,12 +94764,12 @@ var require_processPagePollCjs = __commonJS({
94545
94764
  break e;
94546
94765
  s3--, c2 += r3[i3++] << u2, u2 += 8;
94547
94766
  }
94548
- 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;
94767
+ 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;
94549
94768
  } else
94550
94769
  n3.head && (n3.head.extra = null);
94551
94770
  n3.mode = 6;
94552
94771
  case 6:
94553
- 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))
94772
+ 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))
94554
94773
  break e;
94555
94774
  n3.length = 0, n3.mode = 7;
94556
94775
  case 7:
@@ -94561,7 +94780,7 @@ var require_processPagePollCjs = __commonJS({
94561
94780
  do {
94562
94781
  x2 = r3[i3 + p2++], n3.head && x2 && n3.length < 65536 && (n3.head.name += String.fromCharCode(x2));
94563
94782
  } while (x2 && p2 < s3);
94564
- if (512 & n3.flags && (n3.check = ih(n3.check, r3, p2, i3)), s3 -= p2, i3 += p2, x2)
94783
+ if (512 & n3.flags && (n3.check = ah(n3.check, r3, p2, i3)), s3 -= p2, i3 += p2, x2)
94565
94784
  break e;
94566
94785
  } else
94567
94786
  n3.head && (n3.head.name = null);
@@ -94574,7 +94793,7 @@ var require_processPagePollCjs = __commonJS({
94574
94793
  do {
94575
94794
  x2 = r3[i3 + p2++], n3.head && x2 && n3.length < 65536 && (n3.head.comment += String.fromCharCode(x2));
94576
94795
  } while (x2 && p2 < s3);
94577
- if (512 & n3.flags && (n3.check = ih(n3.check, r3, p2, i3)), s3 -= p2, i3 += p2, x2)
94796
+ if (512 & n3.flags && (n3.check = ah(n3.check, r3, p2, i3)), s3 -= p2, i3 += p2, x2)
94578
94797
  break e;
94579
94798
  } else
94580
94799
  n3.head && (n3.head.comment = null);
@@ -94587,12 +94806,12 @@ var require_processPagePollCjs = __commonJS({
94587
94806
  s3--, c2 += r3[i3++] << u2, u2 += 8;
94588
94807
  }
94589
94808
  if (c2 !== (65535 & n3.check)) {
94590
- e3.msg = "header crc mismatch", n3.mode = dh;
94809
+ e3.msg = "header crc mismatch", n3.mode = ph;
94591
94810
  break;
94592
94811
  }
94593
94812
  c2 = 0, u2 = 0;
94594
94813
  }
94595
- n3.head && (n3.head.hcrc = n3.flags >> 9 & 1, n3.head.done = true), e3.adler = n3.check = 0, n3.mode = hh;
94814
+ n3.head && (n3.head.hcrc = n3.flags >> 9 & 1, n3.head.done = true), e3.adler = n3.check = 0, n3.mode = dh;
94596
94815
  break;
94597
94816
  case 10:
94598
94817
  for (; u2 < 32; ) {
@@ -94600,12 +94819,12 @@ var require_processPagePollCjs = __commonJS({
94600
94819
  break e;
94601
94820
  s3--, c2 += r3[i3++] << u2, u2 += 8;
94602
94821
  }
94603
- e3.adler = n3.check = fh(c2), c2 = 0, u2 = 0, n3.mode = 11;
94822
+ e3.adler = n3.check = gh(c2), c2 = 0, u2 = 0, n3.mode = 11;
94604
94823
  case 11:
94605
94824
  if (0 === n3.havedict)
94606
94825
  return e3.next_out = a3, e3.avail_out = l2, e3.next_in = i3, e3.avail_in = s3, n3.hold = c2, n3.bits = u2, 2;
94607
- e3.adler = n3.check = 1, n3.mode = hh;
94608
- case hh:
94826
+ e3.adler = n3.check = 1, n3.mode = dh;
94827
+ case dh:
94609
94828
  if (5 === t3 || 6 === t3)
94610
94829
  break e;
94611
94830
  case 13:
@@ -94623,7 +94842,7 @@ var require_processPagePollCjs = __commonJS({
94623
94842
  n3.mode = 14;
94624
94843
  break;
94625
94844
  case 1:
94626
- if (Sh(n3), n3.mode = 20, 6 === t3) {
94845
+ if (Ch(n3), n3.mode = 20, 6 === t3) {
94627
94846
  c2 >>>= 2, u2 -= 2;
94628
94847
  break e;
94629
94848
  }
@@ -94632,7 +94851,7 @@ var require_processPagePollCjs = __commonJS({
94632
94851
  n3.mode = 17;
94633
94852
  break;
94634
94853
  case 3:
94635
- e3.msg = "invalid block type", n3.mode = dh;
94854
+ e3.msg = "invalid block type", n3.mode = ph;
94636
94855
  }
94637
94856
  c2 >>>= 2, u2 -= 2;
94638
94857
  break;
@@ -94643,7 +94862,7 @@ var require_processPagePollCjs = __commonJS({
94643
94862
  s3--, c2 += r3[i3++] << u2, u2 += 8;
94644
94863
  }
94645
94864
  if ((65535 & c2) != (c2 >>> 16 ^ 65535)) {
94646
- e3.msg = "invalid stored block lengths", n3.mode = dh;
94865
+ e3.msg = "invalid stored block lengths", n3.mode = ph;
94647
94866
  break;
94648
94867
  }
94649
94868
  if (n3.length = 65535 & c2, c2 = 0, u2 = 0, n3.mode = 15, 6 === t3)
@@ -94654,10 +94873,10 @@ var require_processPagePollCjs = __commonJS({
94654
94873
  if (p2 = n3.length) {
94655
94874
  if (p2 > s3 && (p2 = s3), p2 > l2 && (p2 = l2), 0 === p2)
94656
94875
  break e;
94657
- rh.arraySet(o3, r3, i3, p2, a3), s3 -= p2, i3 += p2, l2 -= p2, a3 += p2, n3.length -= p2;
94876
+ oh.arraySet(o3, r3, i3, p2, a3), s3 -= p2, i3 += p2, l2 -= p2, a3 += p2, n3.length -= p2;
94658
94877
  break;
94659
94878
  }
94660
- n3.mode = hh;
94879
+ n3.mode = dh;
94661
94880
  break;
94662
94881
  case 17:
94663
94882
  for (; u2 < 14; ) {
@@ -94666,7 +94885,7 @@ var require_processPagePollCjs = __commonJS({
94666
94885
  s3--, c2 += r3[i3++] << u2, u2 += 8;
94667
94886
  }
94668
94887
  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) {
94669
- e3.msg = "too many length or distance symbols", n3.mode = dh;
94888
+ e3.msg = "too many length or distance symbols", n3.mode = ph;
94670
94889
  break;
94671
94890
  }
94672
94891
  n3.have = 0, n3.mode = 18;
@@ -94681,8 +94900,8 @@ var require_processPagePollCjs = __commonJS({
94681
94900
  }
94682
94901
  for (; n3.have < 19; )
94683
94902
  n3.lens[T2[n3.have++]] = 0;
94684
- 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) {
94685
- e3.msg = "invalid code lengths set", n3.mode = dh;
94903
+ 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) {
94904
+ e3.msg = "invalid code lengths set", n3.mode = ph;
94686
94905
  break;
94687
94906
  }
94688
94907
  n3.have = 0, n3.mode = 19;
@@ -94703,7 +94922,7 @@ var require_processPagePollCjs = __commonJS({
94703
94922
  s3--, c2 += r3[i3++] << u2, u2 += 8;
94704
94923
  }
94705
94924
  if (c2 >>>= g2, u2 -= g2, 0 === n3.have) {
94706
- e3.msg = "invalid bit length repeat", n3.mode = dh;
94925
+ e3.msg = "invalid bit length repeat", n3.mode = ph;
94707
94926
  break;
94708
94927
  }
94709
94928
  x2 = n3.lens[n3.have - 1], p2 = 3 + (3 & c2), c2 >>>= 2, u2 -= 2;
@@ -94723,25 +94942,25 @@ var require_processPagePollCjs = __commonJS({
94723
94942
  u2 -= g2, x2 = 0, p2 = 11 + (127 & (c2 >>>= g2)), c2 >>>= 7, u2 -= 7;
94724
94943
  }
94725
94944
  if (n3.have + p2 > n3.nlen + n3.ndist) {
94726
- e3.msg = "invalid bit length repeat", n3.mode = dh;
94945
+ e3.msg = "invalid bit length repeat", n3.mode = ph;
94727
94946
  break;
94728
94947
  }
94729
94948
  for (; p2--; )
94730
94949
  n3.lens[n3.have++] = x2;
94731
94950
  }
94732
94951
  }
94733
- if (n3.mode === dh)
94952
+ if (n3.mode === ph)
94734
94953
  break;
94735
94954
  if (0 === n3.lens[256]) {
94736
- e3.msg = "invalid code -- missing end-of-block", n3.mode = dh;
94955
+ e3.msg = "invalid code -- missing end-of-block", n3.mode = ph;
94737
94956
  break;
94738
94957
  }
94739
- 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) {
94740
- e3.msg = "invalid literal/lengths set", n3.mode = dh;
94958
+ 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) {
94959
+ e3.msg = "invalid literal/lengths set", n3.mode = ph;
94741
94960
  break;
94742
94961
  }
94743
- 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) {
94744
- e3.msg = "invalid distances set", n3.mode = dh;
94962
+ 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) {
94963
+ e3.msg = "invalid distances set", n3.mode = ph;
94745
94964
  break;
94746
94965
  }
94747
94966
  if (n3.mode = 20, 6 === t3)
@@ -94750,7 +94969,7 @@ var require_processPagePollCjs = __commonJS({
94750
94969
  n3.mode = 21;
94751
94970
  case 21:
94752
94971
  if (s3 >= 6 && l2 >= 258) {
94753
- 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);
94972
+ 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);
94754
94973
  break;
94755
94974
  }
94756
94975
  for (n3.back = 0; b2 = (z2 = n3.lencode[c2 & (1 << n3.lenbits) - 1]) >>> 16 & 255, y2 = 65535 & z2, !((g2 = z2 >>> 24) <= u2); ) {
@@ -94771,11 +94990,11 @@ var require_processPagePollCjs = __commonJS({
94771
94990
  break;
94772
94991
  }
94773
94992
  if (32 & b2) {
94774
- n3.back = -1, n3.mode = hh;
94993
+ n3.back = -1, n3.mode = dh;
94775
94994
  break;
94776
94995
  }
94777
94996
  if (64 & b2) {
94778
- e3.msg = "invalid literal/length code", n3.mode = dh;
94997
+ e3.msg = "invalid literal/length code", n3.mode = ph;
94779
94998
  break;
94780
94999
  }
94781
95000
  n3.extra = 15 & b2, n3.mode = 22;
@@ -94804,7 +95023,7 @@ var require_processPagePollCjs = __commonJS({
94804
95023
  c2 >>>= k2, u2 -= k2, n3.back += k2;
94805
95024
  }
94806
95025
  if (c2 >>>= g2, u2 -= g2, n3.back += g2, 64 & b2) {
94807
- e3.msg = "invalid distance code", n3.mode = dh;
95026
+ e3.msg = "invalid distance code", n3.mode = ph;
94808
95027
  break;
94809
95028
  }
94810
95029
  n3.offset = y2, n3.extra = 15 & b2, n3.mode = 24;
@@ -94818,7 +95037,7 @@ var require_processPagePollCjs = __commonJS({
94818
95037
  n3.offset += c2 & (1 << n3.extra) - 1, c2 >>>= n3.extra, u2 -= n3.extra, n3.back += n3.extra;
94819
95038
  }
94820
95039
  if (n3.offset > n3.dmax) {
94821
- e3.msg = "invalid distance too far back", n3.mode = dh;
95040
+ e3.msg = "invalid distance too far back", n3.mode = ph;
94822
95041
  break;
94823
95042
  }
94824
95043
  n3.mode = 25;
@@ -94827,7 +95046,7 @@ var require_processPagePollCjs = __commonJS({
94827
95046
  break e;
94828
95047
  if (p2 = d2 - l2, n3.offset > p2) {
94829
95048
  if ((p2 = n3.offset - p2) > n3.whave && n3.sane) {
94830
- e3.msg = "invalid distance too far back", n3.mode = dh;
95049
+ e3.msg = "invalid distance too far back", n3.mode = ph;
94831
95050
  break;
94832
95051
  }
94833
95052
  p2 > n3.wnext ? (p2 -= n3.wnext, m2 = n3.wsize - p2) : m2 = n3.wnext - p2, p2 > n3.length && (p2 = n3.length), f2 = n3.window;
@@ -94851,8 +95070,8 @@ var require_processPagePollCjs = __commonJS({
94851
95070
  break e;
94852
95071
  s3--, c2 |= r3[i3++] << u2, u2 += 8;
94853
95072
  }
94854
- 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) {
94855
- e3.msg = "incorrect data check", n3.mode = dh;
95073
+ 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) {
95074
+ e3.msg = "incorrect data check", n3.mode = ph;
94856
95075
  break;
94857
95076
  }
94858
95077
  c2 = 0, u2 = 0;
@@ -94866,7 +95085,7 @@ var require_processPagePollCjs = __commonJS({
94866
95085
  s3--, c2 += r3[i3++] << u2, u2 += 8;
94867
95086
  }
94868
95087
  if (c2 !== (4294967295 & n3.total)) {
94869
- e3.msg = "incorrect length check", n3.mode = dh;
95088
+ e3.msg = "incorrect length check", n3.mode = ph;
94870
95089
  break;
94871
95090
  }
94872
95091
  c2 = 0, u2 = 0;
@@ -94875,72 +95094,72 @@ var require_processPagePollCjs = __commonJS({
94875
95094
  case 29:
94876
95095
  _2 = 1;
94877
95096
  break e;
94878
- case dh:
95097
+ case ph:
94879
95098
  _2 = -3;
94880
95099
  break e;
94881
95100
  case 31:
94882
95101
  return -4;
94883
95102
  default:
94884
- return ch;
95103
+ return uh;
94885
95104
  }
94886
- 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;
94887
- }, Xu.inflateEnd = function(e3) {
95105
+ 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;
95106
+ }, Qu.inflateEnd = function(e3) {
94888
95107
  if (!e3 || !e3.state)
94889
- return ch;
95108
+ return uh;
94890
95109
  var t3 = e3.state;
94891
- return t3.window && (t3.window = null), e3.state = null, lh;
94892
- }, Xu.inflateGetHeader = function(e3, t3) {
95110
+ return t3.window && (t3.window = null), e3.state = null, ch;
95111
+ }, Qu.inflateGetHeader = function(e3, t3) {
94893
95112
  var n3;
94894
- return e3 && e3.state ? 0 == (2 & (n3 = e3.state).wrap) ? ch : (n3.head = t3, t3.done = false, lh) : ch;
94895
- }, Xu.inflateSetDictionary = function(e3, t3) {
95113
+ return e3 && e3.state ? 0 == (2 & (n3 = e3.state).wrap) ? uh : (n3.head = t3, t3.done = false, ch) : uh;
95114
+ }, Qu.inflateSetDictionary = function(e3, t3) {
94896
95115
  var n3, r3 = t3.length;
94897
- 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;
94898
- }, Xu.inflateInfo = "pako inflate (from Nodeca project)";
94899
- 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() {
95116
+ 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;
95117
+ }, Qu.inflateInfo = "pako inflate (from Nodeca project)";
95118
+ 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() {
94900
95119
  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;
94901
- }, jh = Object.prototype.toString;
94902
- function Ih(e3) {
94903
- if (!(this instanceof Ih))
94904
- return new Ih(e3);
94905
- this.options = Th.assign({ chunkSize: 16384, windowBits: 0, to: "" }, e3 || {});
95120
+ }, Ih = Object.prototype.toString;
95121
+ function Dh(e3) {
95122
+ if (!(this instanceof Dh))
95123
+ return new Dh(e3);
95124
+ this.options = Oh.assign({ chunkSize: 16384, windowBits: 0, to: "" }, e3 || {});
94906
95125
  var t3 = this.options;
94907
- 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;
94908
- var n3 = Ah.inflateInit2(this.strm, t3.windowBits);
94909
- if (n3 !== Lh.Z_OK)
94910
- throw new Error(Eh[n3]);
94911
- 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))
94912
- throw new Error(Eh[n3]);
94913
- }
94914
- function Dh(e3, t3) {
94915
- var n3 = new Ih(t3);
95126
+ 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;
95127
+ var n3 = Th.inflateInit2(this.strm, t3.windowBits);
95128
+ if (n3 !== Eh.Z_OK)
95129
+ throw new Error(Rh[n3]);
95130
+ 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))
95131
+ throw new Error(Rh[n3]);
95132
+ }
95133
+ function Ph(e3, t3) {
95134
+ var n3 = new Dh(t3);
94916
95135
  if (n3.push(e3, true), n3.err)
94917
- throw n3.msg || Eh[n3.err];
95136
+ throw n3.msg || Rh[n3.err];
94918
95137
  return n3.result;
94919
95138
  }
94920
- Ih.prototype.push = function(e3, t3) {
95139
+ Dh.prototype.push = function(e3, t3) {
94921
95140
  var n3, r3, o3, i3, a3, s3 = this.strm, l2 = this.options.chunkSize, c2 = this.options.dictionary, u2 = false;
94922
95141
  if (this.ended)
94923
95142
  return false;
94924
- 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;
95143
+ 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;
94925
95144
  do {
94926
- 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)
95145
+ 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)
94927
95146
  return this.onEnd(n3), this.ended = true, false;
94928
- 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);
94929
- } while ((s3.avail_in > 0 || 0 === s3.avail_out) && n3 !== Lh.Z_STREAM_END);
94930
- 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);
94931
- }, Ih.prototype.onData = function(e3) {
95147
+ 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);
95148
+ } while ((s3.avail_in > 0 || 0 === s3.avail_out) && n3 !== Eh.Z_STREAM_END);
95149
+ 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);
95150
+ }, Dh.prototype.onData = function(e3) {
94932
95151
  this.chunks.push(e3);
94933
- }, Ih.prototype.onEnd = function(e3) {
94934
- 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;
94935
- }, Yu.Inflate = Ih, Yu.inflate = Dh, Yu.inflateRaw = function(e3, t3) {
94936
- return (t3 = t3 || {}).raw = true, Dh(e3, t3);
94937
- }, Yu.ungzip = Dh;
94938
- var Ph = {};
94939
- (0, Jl.assign)(Ph, ec, Yu, zh);
94940
- var Bh = Ph;
94941
- function Fh({ type: e3, value: t3, compress: n3, serialize: r3 }) {
95152
+ }, Dh.prototype.onEnd = function(e3) {
95153
+ 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;
95154
+ }, Xu.Inflate = Dh, Xu.inflate = Ph, Xu.inflateRaw = function(e3, t3) {
95155
+ return (t3 = t3 || {}).raw = true, Ph(e3, t3);
95156
+ }, Xu.ungzip = Ph;
95157
+ var Bh = {};
95158
+ (0, ec.assign)(Bh, tc, Xu, Ah);
95159
+ var Fh = Bh;
95160
+ function Uh({ type: e3, value: t3, compress: n3, serialize: r3 }) {
94942
95161
  const o3 = { type: e3, value: t3 };
94943
- return n3 && (o3.value = Bh.deflate(new Uint8Array(o3.value)), o3.compressed = true), r3 && (o3.value = function(e4) {
95162
+ return n3 && (o3.value = Fh.deflate(new Uint8Array(o3.value)), o3.compressed = true), r3 && (o3.value = function(e4) {
94944
95163
  const t4 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""), n4 = new Uint8Array(e4), r4 = n4.length, o4 = r4 % 3, i3 = [], a3 = 16383;
94945
95164
  let s3;
94946
95165
  for (let e5 = 0, t5 = r4 - o4; e5 < t5; e5 += a3)
@@ -94956,38 +95175,38 @@ var require_processPagePollCjs = __commonJS({
94956
95175
  }
94957
95176
  }(o3.value)), o3;
94958
95177
  }
94959
- function Uh(e3) {
95178
+ function Mh(e3) {
94960
95179
  return /^(blob|https?):/.test(e3);
94961
95180
  }
94962
- function Mh(e3) {
95181
+ function qh(e3) {
94963
95182
  const t3 = e3 && e3.match(/(^[^#]*)/), n3 = t3 && t3[1] || e3;
94964
95183
  return n3 && n3.replace(/\?\s*$/, "?") || e3;
94965
95184
  }
94966
- const qh = (...e3) => {
95185
+ const Wh = (...e3) => {
94967
95186
  };
94968
- function Wh(e3) {
95187
+ function $h(e3) {
94969
95188
  return e3.reduce((e4, t3) => e4.concat(t3), []);
94970
95189
  }
94971
- function $h(t3) {
95190
+ function Vh(t3) {
94972
95191
  const n3 = new TextDecoder("utf-8").decode(t3), r3 = e2.head || e2.querySelectorAll("head")[0], o3 = e2.createElement("style");
94973
95192
  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;
94974
95193
  }
94975
- function Vh(e3, t3, n3 = qh) {
95194
+ function Zh(e3, t3, n3 = Wh) {
94976
95195
  let r3;
94977
95196
  if (t3)
94978
95197
  try {
94979
95198
  t3.cssRules, r3 = t3;
94980
95199
  } catch (o3) {
94981
95200
  n3(`[dom-snapshot] could not access cssRules for ${t3.href} ${o3}
94982
- creating temp style for access.`), r3 = $h(e3);
95201
+ creating temp style for access.`), r3 = Vh(e3);
94983
95202
  }
94984
95203
  else
94985
- r3 = $h(e3);
95204
+ r3 = Vh(e3);
94986
95205
  return { corsFreeStyleSheet: r3, cleanStyleSheet: function() {
94987
95206
  r3 !== t3 && r3.ownerNode.parentNode.removeChild(r3.ownerNode);
94988
95207
  } };
94989
95208
  }
94990
- function Zh(e3, { log: t3, compress: n3, serialize: r3 }) {
95209
+ function Kh(e3, { log: t3, compress: n3, serialize: r3 }) {
94991
95210
  return e3.reduce(async (e4, { url: o3, element: i3, cdtNode: a3 }) => {
94992
95211
  const s3 = new Promise(async (e5) => {
94993
95212
  try {
@@ -95006,19 +95225,19 @@ creating temp style for access.`), r3 = $h(e3);
95006
95225
  });
95007
95226
  return e4.then((e5) => s3.then((t4) => {
95008
95227
  if (t4) {
95009
- const i4 = Fh({ type: "image/png", value: t4, compress: n3, serialize: r3 }), a4 = { ...i4, value: i4.value, url: o3 };
95228
+ const i4 = Uh({ type: "image/png", value: t4, compress: n3, serialize: r3 }), a4 = { ...i4, value: i4.value, url: o3 };
95010
95229
  e5.push(a4);
95011
95230
  }
95012
95231
  return e5;
95013
95232
  }));
95014
95233
  }, Promise.resolve([]));
95015
95234
  }
95016
- const Kh = "__process_resource";
95017
- function Hh(e3) {
95018
- return e3 && Uh(e3);
95235
+ const Hh = "__process_resource";
95236
+ function Gh(e3) {
95237
+ return e3 && Mh(e3);
95019
95238
  }
95020
95239
  window[x] = window[x] || {};
95021
- 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 } = {}) {
95240
+ 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 } = {}) {
95022
95241
  if (arguments[0] instanceof Document) {
95023
95242
  t3 = arguments[0];
95024
95243
  const e3 = arguments[1];
@@ -95049,7 +95268,7 @@ creating temp style for access.`), r3 = $h(e3);
95049
95268
  try {
95050
95269
  const e4 = t4 || ("undefined" != typeof window ? window.sessionStorage : void 0);
95051
95270
  if (e4) {
95052
- const t5 = e4.getItem(Kh);
95271
+ const t5 = e4.getItem(Hh);
95053
95272
  n4 = t5 ? JSON.parse(t5) : {};
95054
95273
  }
95055
95274
  } catch (t5) {
@@ -95065,22 +95284,22 @@ creating temp style for access.`), r3 = $h(e3);
95065
95284
  }, persist: function() {
95066
95285
  if (n4) {
95067
95286
  const e4 = t4 || ("undefined" != typeof window ? window.sessionStorage : void 0);
95068
- e4 && e4.setItem(Kh, JSON.stringify(n4));
95287
+ e4 && e4.setItem(Hh, JSON.stringify(n4));
95069
95288
  }
95070
95289
  } };
95071
95290
  }({ log: h2.log }), p2 = {}, m2 = function({ styleSheetCache: e3, CSSRule: t4 = window.CSSRule, removeReverseProxyURLPrefixes: n4 }) {
95072
95291
  return function r4(o4) {
95073
- return Xl(Array.from(o4.cssRules || []).reduce((o5, i4) => {
95292
+ return Ql(Array.from(o4.cssRules || []).reduce((o5, i4) => {
95074
95293
  const a4 = { [t4.IMPORT_RULE]: () => {
95075
95294
  const t5 = i4;
95076
95295
  return t5.styleSheet && (e3[t5.styleSheet.href] = t5.styleSheet, t5.styleSheet.href) ? t5.styleSheet.href : t5.href;
95077
- }, [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() || [];
95296
+ }, [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() || [];
95078
95297
  return (null == i4 ? void 0 : i4.cssRules) && s4.push(...r4(i4)), o5.concat(s4);
95079
95298
  }, [])).filter((e4) => "#" !== e4[0]);
95080
95299
  };
95081
95300
  }({ styleSheetCache: p2, removeReverseProxyURLPrefixes: Boolean(null == c2 ? void 0 : c2.length) }), f2 = function({ styleSheetCache: e3 }) {
95082
95301
  return function(t4, n4) {
95083
- const r4 = Wh(n4.map((e4) => {
95302
+ const r4 = $h(n4.map((e4) => {
95084
95303
  try {
95085
95304
  return Array.from(e4.styleSheets);
95086
95305
  } catch (e5) {
@@ -95088,7 +95307,7 @@ creating temp style for access.`), r3 = $h(e3);
95088
95307
  }
95089
95308
  }));
95090
95309
  return e3[t4] || r4.find((e4) => {
95091
- const n5 = e4.href && Mh(e4.href);
95310
+ const n5 = e4.href && qh(e4.href);
95092
95311
  return n5 && function(e5) {
95093
95312
  const t5 = new URL(e5);
95094
95313
  return t5.username && (t5.username = ""), t5.password && (t5.password = ""), t5.href;
@@ -95097,14 +95316,14 @@ creating temp style for access.`), r3 = $h(e3);
95097
95316
  };
95098
95317
  }({ styleSheetCache: p2 }), g2 = function(e3) {
95099
95318
  return function(t4, n4 = true) {
95100
- return Xl(Array.from(t4.querySelectorAll("style")).reduce((r4, o4) => {
95319
+ return Ql(Array.from(t4.querySelectorAll("style")).reduce((r4, o4) => {
95101
95320
  const i4 = n4 ? Array.from(t4.styleSheets).find((e4) => e4.ownerNode === o4) : o4.sheet;
95102
95321
  return i4 ? r4.concat(e3(i4)) : r4;
95103
95322
  }, []));
95104
95323
  };
95105
95324
  }(m2), b2 = function(e3) {
95106
95325
  return function(t4) {
95107
- return t4.adoptedStyleSheets ? Xl(t4.adoptedStyleSheets.reduce((t5, n4) => t5.concat(e3(n4)), [])) : [];
95326
+ return t4.adoptedStyleSheets ? Ql(t4.adoptedStyleSheets.reduce((t5, n4) => t5.concat(e3(n4)), [])) : [];
95108
95327
  };
95109
95328
  }(m2), k2 = function({ parser: e3, decoder: t4, extractResourceUrlsFromStyleTags: n4 }) {
95110
95329
  return function(r4) {
@@ -95112,7 +95331,7 @@ creating temp style for access.`), r3 = $h(e3);
95112
95331
  const t5 = e4.getAttribute("srcset");
95113
95332
  return t5 ? t5.split(", ").map((e5) => e5.trim().split(/\s+/)[0]) : [];
95114
95333
  }).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) {
95115
- return Wh(Array.from(e4.querySelectorAll("*[style]")).map((e5) => e5.style.cssText).map((e5) => Pl(e5)).filter(Boolean));
95334
+ return $h(Array.from(e4.querySelectorAll("*[style]")).map((e5) => e5.style.cssText).map((e5) => Bl(e5)).filter(Boolean));
95116
95335
  }(i4);
95117
95336
  return a4.concat(s4).concat(l3).concat(c3).concat(u3).concat(h3).filter((e4) => "#" !== e4[0]);
95118
95337
  };
@@ -95132,13 +95351,13 @@ creating temp style for access.`), r3 = $h(e3);
95132
95351
  }).then(i4).catch((e4) => a4(e4));
95133
95352
  });
95134
95353
  };
95135
- }({ 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 }) {
95354
+ }({ 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 }) {
95136
95355
  return function({ url: u3, documents: h3, getResourceUrlsAndBlobs: d3, forceCreateStyle: p3 = false, skipResources: m3 }) {
95137
95356
  if (!a4[u3])
95138
95357
  if (i4 && i4.getItem(u3)) {
95139
95358
  const e4 = function e5(t5) {
95140
95359
  const n5 = i4.getItem(t5);
95141
- return [t5].concat(n5 ? Xl(Wh(n5.map(e5))) : []);
95360
+ return [t5].concat(n5 ? Ql($h(n5.map(e5))) : []);
95142
95361
  }(u3);
95143
95362
  c3("doProcessResource from sessionStorage", u3, "deps:", e4.slice(1)), a4[u3] = Promise.resolve({ resourceUrls: e4 });
95144
95363
  } else if (m3 && m3.indexOf(u3) > -1 || /https:\/\/fonts\.googleapis\.com/.test(u3))
@@ -95173,9 +95392,9 @@ creating temp style for access.`), r3 = $h(e3);
95173
95392
  } catch (e5) {
95174
95393
  c3("could not parse svg content", e5);
95175
95394
  }
95176
- const v3 = { [e4]: Fh({ type: a6, value: f4, compress: s4, serialize: l3 }) };
95395
+ const v3 = { [e4]: Uh({ type: a6, value: f4, compress: s4, serialize: l3 }) };
95177
95396
  if (w3) {
95178
- const t5 = w3.map((t6) => y(t6, e4.replace(/^blob:/, ""))).map(Mh).filter(Uh);
95397
+ const t5 = w3.map((t6) => y(t6, e4.replace(/^blob:/, ""))).map(qh).filter(Mh);
95179
95398
  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) }));
95180
95399
  }
95181
95400
  return i4 && i4.setItem(e4, []), { blobsObj: v3 };
@@ -95190,11 +95409,11 @@ creating temp style for access.`), r3 = $h(e3);
95190
95409
  }), c3("cleared from sessionStorage:", u3);
95191
95410
  }
95192
95411
  };
95193
- }({ 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 }) {
95412
+ }({ 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 }) {
95194
95413
  return function n4({ documents: r4, urls: o4, forceCreateStyle: i4 = false, skipResources: a4 }) {
95195
95414
  return Promise.all(o4.map((t5) => e3({ url: t5, documents: r4, getResourceUrlsAndBlobs: n4, forceCreateStyle: i4, skipResources: a4 }))).then((e4) => t4(e4));
95196
95415
  };
95197
- }({ processResource: v2, aggregateResourceUrlsAndBlobs: Ql });
95416
+ }({ processResource: v2, aggregateResourceUrlsAndBlobs: Jl });
95198
95417
  return function t4(n4, r4 = n4.location.href) {
95199
95418
  const i4 = function(e3) {
95200
95419
  const t5 = e3.querySelectorAll("base")[0] && e3.querySelectorAll("base")[0].href;
@@ -95282,12 +95501,12 @@ creating temp style for access.`), r3 = $h(e3);
95282
95501
  return o4 += e3.length, t6;
95283
95502
  });
95284
95503
  return i5;
95285
- }(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) {
95504
+ }(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) {
95286
95505
  try {
95287
95506
  return _(y(e3, P2));
95288
95507
  } catch (e4) {
95289
95508
  }
95290
- }), L2 = Xl(Array.from(S2).concat(Array.from(A2)).concat(Array.from(T2))).map((e3) => e3.trim()).reduce((e3, t5) => {
95509
+ }), L2 = Ql(Array.from(S2).concat(Array.from(A2)).concat(Array.from(T2))).map((e3) => e3.trim()).reduce((e3, t5) => {
95291
95510
  e3.push(t5);
95292
95511
  const n5 = function(e4) {
95293
95512
  return e4 && e4.replace(/(\\[0-9a-fA-F]{1,6}\s?)/g, (e5) => {
@@ -95296,18 +95515,18 @@ creating temp style for access.`), r3 = $h(e3);
95296
95515
  }) || e4;
95297
95516
  }(t5);
95298
95517
  return n5 !== t5 && e3.push(n5), e3;
95299
- }, []).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 }) {
95518
+ }, []).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 }) {
95300
95519
  if (!t5.body || 0 === e4.length)
95301
95520
  return Promise.resolve([]);
95302
95521
  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");
95303
95522
  c4.style.display = "none";
95304
- const u3 = $l(t5.body);
95523
+ const u3 = Vl(t5.body);
95305
95524
  return u3.appendChild(c4), Promise.all(l3.map(({ element: e5, url: t6, cdtNode: n6 }) => {
95306
95525
  try {
95307
- 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 });
95526
+ 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 });
95308
95527
  } catch (e6) {
95309
95528
  }
95310
- })).then((e5) => Wh(e5)).catch().finally(() => {
95529
+ })).then((e5) => $h(e5)).catch().finally(() => {
95311
95530
  u3.removeChild(c4);
95312
95531
  });
95313
95532
  }(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 }) {
@@ -95320,12 +95539,12 @@ creating temp style for access.`), r3 = $h(e3);
95320
95539
  const a5 = new MediaRecorder(n6, { mimeType: "video/webm" });
95321
95540
  a5.addEventListener("dataavailable", (n7) => {
95322
95541
  a5.stop(), e5.pause(), n7.data.arrayBuffer().then((e6) => {
95323
- const a6 = Fh({ type: n7.data.type, value: e6, compress: r5, serialize: o4 });
95542
+ const a6 = Uh({ type: n7.data.type, value: e6, compress: r5, serialize: o4 });
95324
95543
  a6.url = t6, i6(a6);
95325
95544
  });
95326
95545
  }, { once: true }), e5.play(), a5.start(), setTimeout(() => a5.requestData(), 1e3);
95327
95546
  });
95328
- })).then((e5) => Wh(e5));
95547
+ })).then((e5) => $h(e5));
95329
95548
  }(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));
95330
95549
  var P2;
95331
95550
  return Promise.all([E2, R2, N2, j2, ...I2, ...D2]).then(function(t5) {
@@ -95358,11 +95577,11 @@ creating temp style for access.`), r3 = $h(e3);
95358
95577
  function B2(e3) {
95359
95578
  return n4.defaultView && n4.defaultView.frameElement && n4.defaultView.frameElement.getAttribute(e3);
95360
95579
  }
95361
- }(t3).then((e3) => (h2.log("processPage end"), e3.scriptVersion = "4.15.0", e3));
95580
+ }(t3).then((e3) => (h2.log("processPage end"), e3.scriptVersion = "4.15.3", e3));
95362
95581
  }, window[x], "domSnapshotResult");
95363
95582
  return function(e3) {
95364
95583
  try {
95365
- return JSON.stringify(Gh(e3)(e3));
95584
+ return JSON.stringify(Yh(e3)(e3));
95366
95585
  } catch (e4) {
95367
95586
  return JSON.stringify({ status: "ERROR", error: e4.message });
95368
95587
  }
@@ -119051,7 +119270,7 @@ var require_check4 = __commonJS({
119051
119270
  (_g = settings.sendDom) !== null && _g !== void 0 ? _g : settings.sendDom = eyes.test.account.rcaEnabled || settings.matchLevel === "Layout" || settings.matchLevel === "Dynamic" || settings.enablePatterns || settings.useDom || !utils34.types.isEmpty(settings.dynamicRegions) || !utils34.types.isEmpty(settings.layoutRegions) || !utils34.types.isEmpty(settings.accessibilitySettings);
119052
119271
  (_h = settings.autProxy) !== null && _h !== void 0 ? _h : settings.autProxy = eyes.test.eyesServer.proxy;
119053
119272
  (_j = settings.useDom) !== null && _j !== void 0 ? _j : settings.useDom = false;
119054
- (_k = (_r = settings).retryTimeout) !== null && _k !== void 0 ? _k : _r.retryTimeout = 0;
119273
+ (_k = (_r = settings).matchTimeout) !== null && _k !== void 0 ? _k : _r.matchTimeout = 0;
119055
119274
  settings.lazyLoad = settings.lazyLoad === true ? {} : settings.lazyLoad;
119056
119275
  if (settings.lazyLoad) {
119057
119276
  (_l = (_s = settings.lazyLoad).scrollLength) !== null && _l !== void 0 ? _l : _s.scrollLength = defaults_1.DEFAULT_LAZY_LOAD.scrollLength;
@@ -119715,8 +119934,7 @@ var require_open_eyes4 = __commonJS({
119715
119934
  eyes_appium: void 0,
119716
119935
  eyes_selenium: void 0,
119717
119936
  eyes_universal: void 0,
119718
- eyes_capybara: void 0,
119719
- eyes_calabash: void 0
119937
+ eyes_capybara: void 0
119720
119938
  },
119721
119939
  java: {
119722
119940
  java_appium: void 0,
@@ -120279,7 +120497,7 @@ var require_package3 = __commonJS({
120279
120497
  "../core/package.json"(exports, module) {
120280
120498
  module.exports = {
120281
120499
  name: "@applitools/core",
120282
- version: "4.52.0",
120500
+ version: "4.53.2",
120283
120501
  homepage: "https://applitools.com",
120284
120502
  bugs: {
120285
120503
  url: "https://github.com/applitools/eyes.sdk.javascript1/issues"
@@ -124945,7 +125163,9 @@ var require_spec_driver2 = __commonJS({
124945
125163
  }
124946
125164
  }
124947
125165
  function getWebDriver() {
124948
- return getFrameworkMajorVersion() < 8 ? __require("webdriver").default : __require("webdriver");
125166
+ var _a;
125167
+ const webdriver = __require("webdriver");
125168
+ return (_a = webdriver.default) !== null && _a !== void 0 ? _a : webdriver;
124949
125169
  }
124950
125170
  function getProxyConfiguration() {
124951
125171
  const httpProxy2 = utils34.general.getEnvCaseInsensitive("HTTP_PROXY");
@@ -126544,11 +126764,14 @@ var require_calculate_estimated_time = __commonJS({
126544
126764
  var _a;
126545
126765
  (0, populate_eyes_server_settings_1.populateEyesServerSettings)(settings);
126546
126766
  const accountInfo = await core.getAccountInfo({ settings, logger });
126547
- const ufgClient = await core.getUFGClient({ settings: {
126548
- ...settings,
126549
- ufgServerUrl: accountInfo.ufgServer.ufgServerUrl,
126550
- accessToken: accountInfo.ufgServer.accessToken
126551
- }, logger });
126767
+ const ufgClient = await core.getUFGClient({
126768
+ settings: {
126769
+ ...settings,
126770
+ ufgServerUrl: accountInfo.ufgServer.ufgServerUrl,
126771
+ accessToken: accountInfo.ufgServer.accessToken
126772
+ },
126773
+ logger
126774
+ });
126552
126775
  const deviceProviders = {
126553
126776
  getChromeEmulationDevices: ufgClient.getChromeEmulationDevices.bind(ufgClient),
126554
126777
  getIOSDevices: ufgClient.getIOSDevices.bind(ufgClient)
@@ -127189,7 +127412,7 @@ var require_package4 = __commonJS({
127189
127412
  "../eyes/package.json"(exports, module) {
127190
127413
  module.exports = {
127191
127414
  name: "@applitools/eyes",
127192
- version: "1.36.15",
127415
+ version: "1.36.17",
127193
127416
  keywords: [
127194
127417
  "applitools",
127195
127418
  "eyes",
@@ -127426,10 +127649,15 @@ var IosDeviceNameEnum = /* @__PURE__ */ ((IosDeviceNameEnum2) => {
127426
127649
  IosDeviceNameEnum2["iPad_10"] = "iPad (10th generation)";
127427
127650
  IosDeviceNameEnum2["iPad_mini_6"] = "iPad mini (6th generation)";
127428
127651
  IosDeviceNameEnum2["iPad_Air_4"] = "iPad Air (4th generation)";
127652
+ IosDeviceNameEnum2["iPad_Air_11_inch_M3"] = "iPad Air 11-inch (M3)";
127653
+ IosDeviceNameEnum2["iPad_Air_13_inch_M3"] = "iPad Air 13-inch (M3)";
127654
+ IosDeviceNameEnum2["iPad_A16"] = "iPad (A16)";
127429
127655
  IosDeviceNameEnum2["iPad_Pro_3"] = "iPad Pro (12.9-inch) (3rd generation)";
127430
- IosDeviceNameEnum2["iPad_Pro_12_9_inch_3"] = "iPad Pro (12.9-inch) (3rd generation)";
127431
127656
  IosDeviceNameEnum2["iPad_Pro_4"] = "iPad Pro (11-inch) (4th generation)";
127432
127657
  IosDeviceNameEnum2["iPad_Pro_11_inch_4"] = "iPad Pro (11-inch) (4th generation)";
127658
+ IosDeviceNameEnum2["iPad_Pro_11_inch_M5"] = "iPad Pro 11-inch (M5)";
127659
+ IosDeviceNameEnum2["iPad_Pro_13_inch_M5"] = "iPad Pro 13-inch (M5)";
127660
+ IosDeviceNameEnum2["iPad_Pro_12_9_inch_3"] = "iPad Pro (12.9-inch) (3rd generation)";
127433
127661
  IosDeviceNameEnum2["iPhone_SE_2"] = "iPhone SE (2nd generation)";
127434
127662
  IosDeviceNameEnum2["iPhone_SE_3"] = "iPhone SE (3rd generation)";
127435
127663
  IosDeviceNameEnum2["iPhone_XR"] = "iPhone XR";
@@ -127458,9 +127686,274 @@ var IosDeviceNameEnum = /* @__PURE__ */ ((IosDeviceNameEnum2) => {
127458
127686
  IosDeviceNameEnum2["iPhone_16_Pro_Max"] = "iPhone 16 Pro Max";
127459
127687
  IosDeviceNameEnum2["iPhone_16_Pro"] = "iPhone 16 Pro";
127460
127688
  IosDeviceNameEnum2["iPhone_16_Plus"] = "iPhone 16 Plus";
127689
+ IosDeviceNameEnum2["iPhone_17"] = "iPhone 17";
127690
+ IosDeviceNameEnum2["iPhone_17_Pro"] = "iPhone 17 Pro";
127691
+ IosDeviceNameEnum2["iPhone_17_Pro_Max"] = "iPhone 17 Pro Max";
127692
+ IosDeviceNameEnum2["iPhone_Air"] = "iPhone Air";
127461
127693
  return IosDeviceNameEnum2;
127462
127694
  })(IosDeviceNameEnum || {});
127463
127695
 
127696
+ // ../eyes/src/enums/IosMultiDeviceTarget.ts
127697
+ init_process();
127698
+ init_setImmediate();
127699
+ init_buffer();
127700
+ init_setInterval();
127701
+
127702
+ // ../eyes/src/input/IosDeviceTarget.ts
127703
+ init_process();
127704
+ init_setImmediate();
127705
+ init_buffer();
127706
+ init_setInterval();
127707
+
127708
+ // ../eyes/src/enums/ScreenOrientation.ts
127709
+ init_process();
127710
+ init_setImmediate();
127711
+ init_buffer();
127712
+ init_setInterval();
127713
+ var ScreenOrientationEnum = /* @__PURE__ */ ((ScreenOrientationEnum2) => {
127714
+ ScreenOrientationEnum2["PORTRAIT"] = "portrait";
127715
+ ScreenOrientationEnum2["LANDSCAPE"] = "landscape";
127716
+ return ScreenOrientationEnum2;
127717
+ })(ScreenOrientationEnum || {});
127718
+
127719
+ // ../eyes/src/input/IosDeviceTarget.ts
127720
+ var IosDeviceTarget = class {
127721
+ constructor(deviceName) {
127722
+ this.deviceName = deviceName;
127723
+ }
127724
+ /**
127725
+ * Sets the device orientation to landscape.
127726
+ * @returns this instance for method chaining
127727
+ */
127728
+ landscape() {
127729
+ this.screenOrientation = "landscape" /* LANDSCAPE */;
127730
+ return this;
127731
+ }
127732
+ /**
127733
+ * Sets the device orientation to portrait.
127734
+ * @returns this instance for method chaining
127735
+ */
127736
+ portrait() {
127737
+ this.screenOrientation = "portrait" /* PORTRAIT */;
127738
+ return this;
127739
+ }
127740
+ /**
127741
+ * Gets the configured orientation for this device target.
127742
+ * @returns the screen orientation, or undefined if not set
127743
+ */
127744
+ getOrientation() {
127745
+ return this.screenOrientation;
127746
+ }
127747
+ /**
127748
+ * Gets the device name.
127749
+ * @returns the device name string
127750
+ */
127751
+ getDeviceName() {
127752
+ return this.deviceName;
127753
+ }
127754
+ /**
127755
+ * String representation of this device target.
127756
+ * @returns the device name
127757
+ */
127758
+ toString() {
127759
+ return this.deviceName;
127760
+ }
127761
+ };
127762
+
127763
+ // ../eyes/src/enums/IosMultiDeviceTarget.ts
127764
+ var IosMultiDeviceTarget = {
127765
+ get iPhone_SE_1() {
127766
+ return new IosDeviceTarget("iPhone SE (1st generation)");
127767
+ },
127768
+ get iPhone_SE_2() {
127769
+ return new IosDeviceTarget("iPhone SE (2nd generation)");
127770
+ },
127771
+ get iPhone_SE_3() {
127772
+ return new IosDeviceTarget("iPhone SE (3rd generation)");
127773
+ },
127774
+ get iPhone_6() {
127775
+ return new IosDeviceTarget("iPhone 6");
127776
+ },
127777
+ get iPhone_6_Plus() {
127778
+ return new IosDeviceTarget("iPhone 6 Plus");
127779
+ },
127780
+ get iPhone_7() {
127781
+ return new IosDeviceTarget("iPhone 7");
127782
+ },
127783
+ get iPhone_7_Plus() {
127784
+ return new IosDeviceTarget("iPhone 7 Plus");
127785
+ },
127786
+ get iPhone_8() {
127787
+ return new IosDeviceTarget("iPhone 8");
127788
+ },
127789
+ get iPhone_8_Plus() {
127790
+ return new IosDeviceTarget("iPhone 8 Plus");
127791
+ },
127792
+ get iPhone_X() {
127793
+ return new IosDeviceTarget("iPhone X");
127794
+ },
127795
+ get iPhone_XR() {
127796
+ return new IosDeviceTarget("iPhone XR");
127797
+ },
127798
+ get iPhone_Xs() {
127799
+ return new IosDeviceTarget("iPhone Xs");
127800
+ },
127801
+ get iPhone_Xs_Max() {
127802
+ return new IosDeviceTarget("iPhone Xs Max");
127803
+ },
127804
+ get iPhone_11() {
127805
+ return new IosDeviceTarget("iPhone 11");
127806
+ },
127807
+ get iPhone_11_Pro() {
127808
+ return new IosDeviceTarget("iPhone 11 Pro");
127809
+ },
127810
+ get iPhone_11_Pro_Max() {
127811
+ return new IosDeviceTarget("iPhone 11 Pro Max");
127812
+ },
127813
+ get iPhone_12() {
127814
+ return new IosDeviceTarget("iPhone 12");
127815
+ },
127816
+ get iPhone_12_mini() {
127817
+ return new IosDeviceTarget("iPhone 12 mini");
127818
+ },
127819
+ get iPhone_12_Pro() {
127820
+ return new IosDeviceTarget("iPhone 12 Pro");
127821
+ },
127822
+ get iPhone_12_Pro_Max() {
127823
+ return new IosDeviceTarget("iPhone 12 Pro Max");
127824
+ },
127825
+ get iPhone_13() {
127826
+ return new IosDeviceTarget("iPhone 13");
127827
+ },
127828
+ get iPhone_13_mini() {
127829
+ return new IosDeviceTarget("iPhone 13 mini");
127830
+ },
127831
+ get iPhone_13_Pro() {
127832
+ return new IosDeviceTarget("iPhone 13 Pro");
127833
+ },
127834
+ get iPhone_13_Pro_Max() {
127835
+ return new IosDeviceTarget("iPhone 13 Pro Max");
127836
+ },
127837
+ get iPhone_14() {
127838
+ return new IosDeviceTarget("iPhone 14");
127839
+ },
127840
+ get iPhone_14_Pro() {
127841
+ return new IosDeviceTarget("iPhone 14 Pro");
127842
+ },
127843
+ get iPhone_14_Plus() {
127844
+ return new IosDeviceTarget("iPhone 14 Plus");
127845
+ },
127846
+ get iPhone_14_Pro_Max() {
127847
+ return new IosDeviceTarget("iPhone 14 Pro Max");
127848
+ },
127849
+ get iPhone_15() {
127850
+ return new IosDeviceTarget("iPhone 15");
127851
+ },
127852
+ get iPhone_15_Pro() {
127853
+ return new IosDeviceTarget("iPhone 15 Pro");
127854
+ },
127855
+ get iPhone_15_Plus() {
127856
+ return new IosDeviceTarget("iPhone 15 Plus");
127857
+ },
127858
+ get iPhone_15_Pro_Max() {
127859
+ return new IosDeviceTarget("iPhone 15 Pro Max");
127860
+ },
127861
+ get iPhone_16() {
127862
+ return new IosDeviceTarget("iPhone 16");
127863
+ },
127864
+ get iPhone_16e() {
127865
+ return new IosDeviceTarget("iPhone 16e");
127866
+ },
127867
+ get iPhone_16_Pro() {
127868
+ return new IosDeviceTarget("iPhone 16 Pro");
127869
+ },
127870
+ get iPhone_16_Plus() {
127871
+ return new IosDeviceTarget("iPhone 16 Plus");
127872
+ },
127873
+ get iPhone_16_Pro_Max() {
127874
+ return new IosDeviceTarget("iPhone 16 Pro Max");
127875
+ },
127876
+ get iPhone_17() {
127877
+ return new IosDeviceTarget("iPhone 17");
127878
+ },
127879
+ get iPhone_17_Pro() {
127880
+ return new IosDeviceTarget("iPhone 17 Pro");
127881
+ },
127882
+ get iPhone_17_Pro_Max() {
127883
+ return new IosDeviceTarget("iPhone 17 Pro Max");
127884
+ },
127885
+ get iPhone_Air() {
127886
+ return new IosDeviceTarget("iPhone Air");
127887
+ }
127888
+ };
127889
+
127890
+ // ../eyes/src/enums/AndroidMultiDeviceTarget.ts
127891
+ init_process();
127892
+ init_setImmediate();
127893
+ init_buffer();
127894
+ init_setInterval();
127895
+
127896
+ // ../eyes/src/input/AndroidDeviceTarget.ts
127897
+ init_process();
127898
+ init_setImmediate();
127899
+ init_buffer();
127900
+ init_setInterval();
127901
+ var AndroidDeviceTarget = class {
127902
+ constructor(deviceName) {
127903
+ this.deviceName = deviceName;
127904
+ }
127905
+ /**
127906
+ * Sets the device orientation to landscape.
127907
+ * @returns this instance for method chaining
127908
+ */
127909
+ landscape() {
127910
+ this.screenOrientation = "landscape" /* LANDSCAPE */;
127911
+ return this;
127912
+ }
127913
+ /**
127914
+ * Sets the device orientation to portrait.
127915
+ * @returns this instance for method chaining
127916
+ */
127917
+ portrait() {
127918
+ this.screenOrientation = "portrait" /* PORTRAIT */;
127919
+ return this;
127920
+ }
127921
+ /**
127922
+ * Gets the configured orientation for this device target.
127923
+ * @returns the screen orientation, or undefined if not set
127924
+ */
127925
+ getOrientation() {
127926
+ return this.screenOrientation;
127927
+ }
127928
+ /**
127929
+ * Gets the device name.
127930
+ * @returns the device name string
127931
+ */
127932
+ getDeviceName() {
127933
+ return this.deviceName;
127934
+ }
127935
+ /**
127936
+ * String representation of this device target.
127937
+ * @returns the device name
127938
+ */
127939
+ toString() {
127940
+ return this.deviceName;
127941
+ }
127942
+ };
127943
+
127944
+ // ../eyes/src/enums/AndroidMultiDeviceTarget.ts
127945
+ var AndroidMultiDeviceTarget = {
127946
+ get Galaxy_S25() {
127947
+ return new AndroidDeviceTarget("Galaxy S25");
127948
+ },
127949
+ get Galaxy_S25_Ultra() {
127950
+ return new AndroidDeviceTarget("Galaxy S25 Ultra");
127951
+ },
127952
+ get Pixel_9() {
127953
+ return new AndroidDeviceTarget("Pixel 9");
127954
+ }
127955
+ };
127956
+
127464
127957
  // ../eyes/src/enums/IosVersion.ts
127465
127958
  init_process();
127466
127959
  init_setImmediate();
@@ -127491,17 +127984,6 @@ var MatchLevelEnum = /* @__PURE__ */ ((MatchLevelEnum2) => {
127491
127984
  return MatchLevelEnum2;
127492
127985
  })(MatchLevelEnum || {});
127493
127986
 
127494
- // ../eyes/src/enums/ScreenOrientation.ts
127495
- init_process();
127496
- init_setImmediate();
127497
- init_buffer();
127498
- init_setInterval();
127499
- var ScreenOrientationEnum = /* @__PURE__ */ ((ScreenOrientationEnum2) => {
127500
- ScreenOrientationEnum2["PORTRAIT"] = "portrait";
127501
- ScreenOrientationEnum2["LANDSCAPE"] = "landscape";
127502
- return ScreenOrientationEnum2;
127503
- })(ScreenOrientationEnum || {});
127504
-
127505
127987
  // ../eyes/src/enums/SessionType.ts
127506
127988
  init_process();
127507
127989
  init_setImmediate();
@@ -129306,7 +129788,7 @@ var CheckSettingsAutomationFluent = class extends CheckSettingsBaseFluent {
129306
129788
  pageId: this._settings.pageId,
129307
129789
  lazyLoad: this._settings.lazyLoad,
129308
129790
  waitBeforeCapture: this._settings.waitBeforeCapture,
129309
- retryTimeout: this._settings.timeout,
129791
+ matchTimeout: this._settings.timeout,
129310
129792
  userCommandId: this._settings.variationGroupId,
129311
129793
  densityMetrics: this._settings.densityMetrics,
129312
129794
  assumesMutability: this.assumesMutability(),
@@ -130100,12 +130582,79 @@ var ConfigurationData = class {
130100
130582
  this.browsersInfo.push({ chromeEmulationInfo: { deviceName, screenOrientation } });
130101
130583
  return this;
130102
130584
  }
130103
- addMultiDeviceTarget(deviceName) {
130585
+ /**
130586
+ * Add iOS and/or Android devices for multi-device testing.
130587
+ *
130588
+ * @param devices - Device targets. Supports three formats:
130589
+ * - Plain strings: `'iPhone 13'`, `'Galaxy S25'`
130590
+ * - Enum values: `IosMultiDeviceTarget.iPhone_13`, `AndroidMultiDeviceTarget.Galaxy_S25`
130591
+ * - Fluent API: `IosMultiDeviceTarget.iPhone_13.landscape()`, `AndroidMultiDeviceTarget.Galaxy_S25.portrait()`
130592
+ *
130593
+ * @example
130594
+ * ```typescript
130595
+ * // Plain strings (backward compatible)
130596
+ * config.addMultiDeviceTarget('iPhone 13', 'Galaxy S25')
130597
+ *
130598
+ * // Enum values
130599
+ * config.addMultiDeviceTarget(IosMultiDeviceTarget.iPhone_13, AndroidMultiDeviceTargetEnum.Galaxy_S25)
130600
+ *
130601
+ * // Fluent API with orientation
130602
+ * config.addMultiDeviceTarget(
130603
+ * IosMultiDeviceTarget.iPhone_13.landscape(),
130604
+ * AndroidMultiDeviceTarget.Galaxy_S25.portrait()
130605
+ * )
130606
+ *
130607
+ * // Mix all three styles
130608
+ * config.addMultiDeviceTarget(
130609
+ * 'iPhone 14',
130610
+ * IosMultiDeviceTarget.iPhone_15,
130611
+ * IosMultiDeviceTarget.iPhone_16.landscape()
130612
+ * )
130613
+ * ```
130614
+ */
130615
+ addMultiDeviceTarget(...devices) {
130104
130616
  if (!this.browsersInfo)
130105
130617
  this.browsersInfo = [];
130106
- this.browsersInfo.push({ iosDeviceInfo: { deviceName } });
130618
+ for (const device of devices) {
130619
+ if (device instanceof IosDeviceTarget || device instanceof AndroidDeviceTarget) {
130620
+ const deviceName = device.getDeviceName();
130621
+ const screenOrientation = device.getOrientation();
130622
+ if (device instanceof IosDeviceTarget || this._isIosDevice(deviceName)) {
130623
+ this.browsersInfo.push({
130624
+ iosDeviceInfo: {
130625
+ deviceName,
130626
+ ...screenOrientation && { screenOrientation }
130627
+ }
130628
+ });
130629
+ } else {
130630
+ this.browsersInfo.push({
130631
+ androidDeviceInfo: {
130632
+ deviceName,
130633
+ ...screenOrientation && { screenOrientation }
130634
+ }
130635
+ });
130636
+ }
130637
+ } else {
130638
+ const deviceName = device;
130639
+ if (this._isIosDevice(deviceName)) {
130640
+ this.browsersInfo.push({ iosDeviceInfo: { deviceName } });
130641
+ } else if (this._isAndroidDevice(deviceName)) {
130642
+ this.browsersInfo.push({ androidDeviceInfo: { deviceName } });
130643
+ } else {
130644
+ throw new Error(
130645
+ `Invalid device name: "${deviceName}". Supported iOS devices: ${Object.values(IosMultiDeviceTarget).map((d) => d.getDeviceName()).join(", ")}. Supported Android devices: ${Object.values(AndroidMultiDeviceTarget).map((d) => d.getDeviceName()).join(", ")}.`
130646
+ );
130647
+ }
130648
+ }
130649
+ }
130107
130650
  return this;
130108
130651
  }
130652
+ _isIosDevice(deviceName) {
130653
+ return Object.values(IosMultiDeviceTarget).map((target) => target.getDeviceName()).includes(deviceName);
130654
+ }
130655
+ _isAndroidDevice(deviceName) {
130656
+ return Object.values(AndroidMultiDeviceTarget).map((target) => target.getDeviceName()).includes(deviceName);
130657
+ }
130109
130658
  get captureStatusBar() {
130110
130659
  return this._config.captureStatusBar;
130111
130660
  }
@@ -131007,7 +131556,7 @@ var ConfigurationData = class {
131007
131556
  disableBrowserFetching: this.disableBrowserFetching,
131008
131557
  autProxy: this.autProxy,
131009
131558
  sendDom: this.sendDom,
131010
- retryTimeout: this.matchTimeout,
131559
+ matchTimeout: this.matchTimeout,
131011
131560
  matchLevel: (_e = this.defaultMatchSettings) == null ? void 0 : _e.matchLevel,
131012
131561
  ignoreCaret: (_f = this.defaultMatchSettings) == null ? void 0 : _f.ignoreCaret,
131013
131562
  ignoreDisplacements: (_g = this.defaultMatchSettings) == null ? void 0 : _g.ignoreDisplacements,
@@ -132681,6 +133230,8 @@ export {
132681
133230
  AccessibilityMatchSettingsData as AccessibilityMatchSettings,
132682
133231
  AccessibilityRegionTypeEnum as AccessibilityRegionType,
132683
133232
  AccessibilityStatusEnum as AccessibilityStatus,
133233
+ AndroidDeviceTarget,
133234
+ AndroidMultiDeviceTarget,
132684
133235
  ApiUrlsData as ApiUrls,
132685
133236
  AppUrlsData as AppUrls,
132686
133237
  BatchClose,
@@ -132707,6 +133258,8 @@ export {
132707
133258
  ImageMatchSettingsData as ImageMatchSettings,
132708
133259
  ImageRotationData as ImageRotation,
132709
133260
  IosDeviceNameEnum as IosDeviceName,
133261
+ IosDeviceTarget,
133262
+ IosMultiDeviceTarget,
132710
133263
  IosVersionEnum as IosVersion,
132711
133264
  LocationData as Location,
132712
133265
  LogHandlerData as LogHandler,