idmission-web-sdk 2.5.60-fix-auth-client-request-errors-235b09d → 2.5.60-react16compat.0

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.
@@ -1,7 +1,6 @@
1
1
  'use strict';
2
2
 
3
3
  var React = require('react');
4
- var vanilla = require('zustand/vanilla');
5
4
  var platform = require('platform');
6
5
  var tusJsClient = require('tus-js-client');
7
6
  var SparkMD5 = require('spark-md5');
@@ -11,10 +10,8 @@ var shim = require('use-sync-external-store/shim');
11
10
  var reactI18next = require('react-i18next');
12
11
  var LanguageDetector = require('i18next-browser-languagedetector');
13
12
  var i18next = require('i18next');
14
- var reactDom = require('react-dom');
13
+ var ReactDOM = require('react-dom');
15
14
  var SignaturePad = require('signature_pad');
16
- var thinkingOrbs = require('thinking-orbs');
17
- var ReactDOM = require('react-dom/client');
18
15
  var tasksVision = require('@mediapipe/tasks-vision');
19
16
  var core = require('@litertjs/core');
20
17
 
@@ -24,8 +21,8 @@ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
24
21
  var platform__default = /*#__PURE__*/_interopDefaultCompat(platform);
25
22
  var SparkMD5__default = /*#__PURE__*/_interopDefaultCompat(SparkMD5);
26
23
  var LanguageDetector__default = /*#__PURE__*/_interopDefaultCompat(LanguageDetector);
27
- var SignaturePad__default = /*#__PURE__*/_interopDefaultCompat(SignaturePad);
28
24
  var ReactDOM__default = /*#__PURE__*/_interopDefaultCompat(ReactDOM);
25
+ var SignaturePad__default = /*#__PURE__*/_interopDefaultCompat(SignaturePad);
29
26
 
30
27
  // Extracted from the barrel so modules inside this package can read the
31
28
  // version without importing index.ts (which would be circular).
@@ -457,17 +454,17 @@ function _iterableToArrayLimit(r, l) {
457
454
  }
458
455
  }
459
456
 
460
- function _arrayLikeToArray$v(r, a) {
457
+ function _arrayLikeToArray$w(r, a) {
461
458
  (null == a || a > r.length) && (a = r.length);
462
459
  for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
463
460
  return n;
464
461
  }
465
462
 
466
- function _unsupportedIterableToArray$v(r, a) {
463
+ function _unsupportedIterableToArray$w(r, a) {
467
464
  if (r) {
468
- if ("string" == typeof r) return _arrayLikeToArray$v(r, a);
465
+ if ("string" == typeof r) return _arrayLikeToArray$w(r, a);
469
466
  var t = {}.toString.call(r).slice(8, -1);
470
- return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$v(r, a) : void 0;
467
+ return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$w(r, a) : void 0;
471
468
  }
472
469
  }
473
470
 
@@ -476,11 +473,11 @@ function _nonIterableRest() {
476
473
  }
477
474
 
478
475
  function _slicedToArray(r, e) {
479
- return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray$v(r, e) || _nonIterableRest();
476
+ return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray$w(r, e) || _nonIterableRest();
480
477
  }
481
478
 
482
479
  function _arrayWithoutHoles(r) {
483
- if (Array.isArray(r)) return _arrayLikeToArray$v(r);
480
+ if (Array.isArray(r)) return _arrayLikeToArray$w(r);
484
481
  }
485
482
 
486
483
  function _iterableToArray(r) {
@@ -492,7 +489,7 @@ function _nonIterableSpread() {
492
489
  }
493
490
 
494
491
  function _toConsumableArray(r) {
495
- return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray$v(r) || _nonIterableSpread();
492
+ return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray$w(r) || _nonIterableSpread();
496
493
  }
497
494
 
498
495
  var webSdkCoreVersion = '0.4.0';
@@ -1267,9 +1264,9 @@ var attemptStatuses = ["active", "completed", "failed", "superseded", "disposed"
1267
1264
  ({
1268
1265
  workflowMilestones: [].concat(_toConsumableArray(workflowMilestones), ["task-completed"])});
1269
1266
 
1270
- function _createForOfIteratorHelperLoose$u(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$u(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
1271
- function _unsupportedIterableToArray$u(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$u(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$u(r, a) : void 0; } }
1272
- function _arrayLikeToArray$u(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
1267
+ function _createForOfIteratorHelperLoose$v(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$v(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
1268
+ function _unsupportedIterableToArray$v(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$v(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$v(r, a) : void 0; } }
1269
+ function _arrayLikeToArray$v(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
1273
1270
  var maximumBytes = 32 * 1024;
1274
1271
  var maximumTime = 86400000;
1275
1272
  var uuidPattern = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
@@ -1337,7 +1334,7 @@ function validateSnapshot(report) {
1337
1334
  unique(report.phaseTotals.map(function (total) {
1338
1335
  return total.phase;
1339
1336
  }));
1340
- for (var _iterator = _createForOfIteratorHelperLoose$u(report.phaseTotals), _step; !(_step = _iterator()).done;) {
1337
+ for (var _iterator = _createForOfIteratorHelperLoose$v(report.phaseTotals), _step; !(_step = _iterator()).done;) {
1341
1338
  var _total4 = _step.value;
1342
1339
  requireValid(member(phases, _total4.phase) && integer(_total4.completions, 1000000) && _total4.completions <= _total4.duration.entries);
1343
1340
  durationValid(_total4.duration);
@@ -1359,7 +1356,7 @@ function validateSnapshot(report) {
1359
1356
  requireValid(report.recentTransitions.length <= 32);
1360
1357
  var index = 0;
1361
1358
  var atMs = 0;
1362
- for (var _iterator2 = _createForOfIteratorHelperLoose$u(report.recentTransitions), _step2; !(_step2 = _iterator2()).done;) {
1359
+ for (var _iterator2 = _createForOfIteratorHelperLoose$v(report.recentTransitions), _step2; !(_step2 = _iterator2()).done;) {
1363
1360
  var transition = _step2.value;
1364
1361
  requireValid(member(transitionKinds, transition.kind));
1365
1362
  requireValid(integer(transition.index, 1000000) && transition.index > index && integer(transition.atMs) && transition.atMs >= atMs && transition.atMs <= report.elapsedMs);
@@ -1383,12 +1380,12 @@ function validateSnapshot(report) {
1383
1380
  unique(report.controllerGuidanceTotals.map(function (total) {
1384
1381
  return JSON.stringify([total.phase, total.guidance]);
1385
1382
  }));
1386
- for (var _iterator3 = _createForOfIteratorHelperLoose$u(report.guidanceTotals), _step3; !(_step3 = _iterator3()).done;) {
1383
+ for (var _iterator3 = _createForOfIteratorHelperLoose$v(report.guidanceTotals), _step3; !(_step3 = _iterator3()).done;) {
1387
1384
  var _total2 = _step3.value;
1388
1385
  durationValid(_total2.duration);
1389
1386
  exposureValid(_total2.phase, _total2.exposure);
1390
1387
  }
1391
- for (var _iterator4 = _createForOfIteratorHelperLoose$u(report.controllerGuidanceTotals), _step4; !(_step4 = _iterator4()).done;) {
1388
+ for (var _iterator4 = _createForOfIteratorHelperLoose$v(report.controllerGuidanceTotals), _step4; !(_step4 = _iterator4()).done;) {
1392
1389
  var _total3 = _step4.value;
1393
1390
  durationValid(_total3.duration);
1394
1391
  guidanceValid(_total3.phase, _total3.guidance, false);
@@ -1422,7 +1419,7 @@ function encodeProgressBatch(batch) {
1422
1419
  requireValid(batch.schemaVersion === 1 && batch.sdkVersion.length > 0 && batch.sdkVersion.length <= 32 && batch.sessionId.length > 0 && uuidPattern.test(batch.producerId) && integer(batch.sentAtUnixMs, Number.MAX_SAFE_INTEGER));
1423
1420
  var reports = [];
1424
1421
  var dropped = [];
1425
- for (var _iterator5 = _createForOfIteratorHelperLoose$u(batch.reports), _step5; !(_step5 = _iterator5()).done;) {
1422
+ for (var _iterator5 = _createForOfIteratorHelperLoose$v(batch.reports), _step5; !(_step5 = _iterator5()).done;) {
1426
1423
  var report = _step5.value;
1427
1424
  try {
1428
1425
  validateSnapshot(report);
@@ -1451,9 +1448,9 @@ function encodeProgressBatch(batch) {
1451
1448
  };
1452
1449
  }
1453
1450
 
1454
- function _createForOfIteratorHelperLoose$t(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$t(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
1455
- function _unsupportedIterableToArray$t(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$t(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$t(r, a) : void 0; } }
1456
- function _arrayLikeToArray$t(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
1451
+ function _createForOfIteratorHelperLoose$u(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$u(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
1452
+ function _unsupportedIterableToArray$u(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$u(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$u(r, a) : void 0; } }
1453
+ function _arrayLikeToArray$u(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
1457
1454
  var taskOpeners = new WeakMap();
1458
1455
  var inertObserver = {
1459
1456
  observe: function observe() {},
@@ -1507,7 +1504,7 @@ function createSessionActor(options, deps) {
1507
1504
  var due = new Map();
1508
1505
  var eligibilityRetries = new Map();
1509
1506
  function dropped(report) {
1510
- for (var _iterator = _createForOfIteratorHelperLoose$t(streams), _step; !(_step = _iterator()).done;) {
1507
+ for (var _iterator = _createForOfIteratorHelperLoose$u(streams), _step; !(_step = _iterator()).done;) {
1511
1508
  var stream = _step.value;
1512
1509
  if (stream.state.report.streamId === report.streamId) stream.state = _extends({}, stream.state, {
1513
1510
  report: _extends({}, stream.state.report, {
@@ -1551,7 +1548,7 @@ function createSessionActor(options, deps) {
1551
1548
  var retained = new Set(queued.map(function (report) {
1552
1549
  return report.sequence;
1553
1550
  }));
1554
- for (var _iterator2 = _createForOfIteratorHelperLoose$t(due.keys()), _step2; !(_step2 = _iterator2()).done;) {
1551
+ for (var _iterator2 = _createForOfIteratorHelperLoose$u(due.keys()), _step2; !(_step2 = _iterator2()).done;) {
1555
1552
  var _sequence = _step2.value;
1556
1553
  if (!retained.has(_sequence)) due["delete"](_sequence);
1557
1554
  }
@@ -1564,7 +1561,7 @@ function createSessionActor(options, deps) {
1564
1561
  var keys = new Set(reports.map(function (report) {
1565
1562
  return report.sequence;
1566
1563
  }));
1567
- for (var _iterator3 = _createForOfIteratorHelperLoose$t(pending), _step3; !(_step3 = _iterator3()).done;) {
1564
+ for (var _iterator3 = _createForOfIteratorHelperLoose$u(pending), _step3; !(_step3 = _iterator3()).done;) {
1568
1565
  var _step3$value = _slicedToArray(_step3.value, 2),
1569
1566
  key = _step3$value[0],
1570
1567
  report = _step3$value[1];
@@ -1588,14 +1585,14 @@ function createSessionActor(options, deps) {
1588
1585
  if ((_emergency = emergency) != null && _emergency.reports.some(function (report) {
1589
1586
  return report.context === context;
1590
1587
  })) emergency = null;
1591
- for (var _iterator4 = _createForOfIteratorHelperLoose$t(pending), _step4; !(_step4 = _iterator4()).done;) {
1588
+ for (var _iterator4 = _createForOfIteratorHelperLoose$u(pending), _step4; !(_step4 = _iterator4()).done;) {
1592
1589
  var _step4$value = _slicedToArray(_step4.value, 2),
1593
1590
  key = _step4$value[0],
1594
1591
  report = _step4$value[1];
1595
1592
  if (report.context === context) pending["delete"](key);
1596
1593
  }
1597
1594
  for (var i = terminal.length - 1; i >= 0; i--) if (terminal[i].context === context) terminal.splice(i, 1);
1598
- for (var _iterator5 = _createForOfIteratorHelperLoose$t(streams), _step5; !(_step5 = _iterator5()).done;) {
1595
+ for (var _iterator5 = _createForOfIteratorHelperLoose$u(streams), _step5; !(_step5 = _iterator5()).done;) {
1599
1596
  var stream = _step5.value;
1600
1597
  if (stream.state.report.context === context) {
1601
1598
  stream.disposed = true;
@@ -1624,7 +1621,7 @@ function createSessionActor(options, deps) {
1624
1621
  unsubscribe();
1625
1622
  cancelTimer == null || cancelTimer();
1626
1623
  cancelRequest == null || cancelRequest();
1627
- for (var _iterator6 = _createForOfIteratorHelperLoose$t(streams), _step6; !(_step6 = _iterator6()).done;) {
1624
+ for (var _iterator6 = _createForOfIteratorHelperLoose$u(streams), _step6; !(_step6 = _iterator6()).done;) {
1628
1625
  var stream = _step6.value;
1629
1626
  stream.disposed = true;
1630
1627
  }
@@ -1646,7 +1643,7 @@ function createSessionActor(options, deps) {
1646
1643
  sentAtUnixMs: Math.floor(deps.unixMs()),
1647
1644
  reports: reports
1648
1645
  });
1649
- for (var _iterator7 = _createForOfIteratorHelperLoose$t(result.dropped), _step7; !(_step7 = _iterator7()).done;) {
1646
+ for (var _iterator7 = _createForOfIteratorHelperLoose$u(result.dropped), _step7; !(_step7 = _iterator7()).done;) {
1650
1647
  var report = _step7.value;
1651
1648
  dropped(report);
1652
1649
  removeReports([report]);
@@ -1816,14 +1813,14 @@ function createSessionActor(options, deps) {
1816
1813
  retries = 0;
1817
1814
  failureStreak = 0;
1818
1815
  } else if (result.kind === "permanent") {
1819
- for (_iterator11 = _createForOfIteratorHelperLoose$t(sending.reports); !(_step11 = _iterator11()).done;) {
1816
+ for (_iterator11 = _createForOfIteratorHelperLoose$u(sending.reports); !(_step11 = _iterator11()).done;) {
1820
1817
  report = _step11.value;
1821
1818
  disable(report.context);
1822
1819
  }
1823
1820
  } else {
1824
1821
  backoff(result);
1825
1822
  if (++retries > 3) {
1826
- for (_iterator12 = _createForOfIteratorHelperLoose$t(sending.reports); !(_step12 = _iterator12()).done;) {
1823
+ for (_iterator12 = _createForOfIteratorHelperLoose$u(sending.reports); !(_step12 = _iterator12()).done;) {
1827
1824
  _report = _step12.value;
1828
1825
  dropped(_report);
1829
1826
  }
@@ -1845,7 +1842,7 @@ function createSessionActor(options, deps) {
1845
1842
  backoff({});
1846
1843
  if (authorizing) failedEligibility(authorizing);
1847
1844
  if (frozen && ++retries > 3) {
1848
- for (_iterator13 = _createForOfIteratorHelperLoose$t(frozen.reports); !(_step13 = _iterator13()).done;) {
1845
+ for (_iterator13 = _createForOfIteratorHelperLoose$u(frozen.reports); !(_step13 = _iterator13()).done;) {
1849
1846
  _report2 = _step13.value;
1850
1847
  dropped(_report2);
1851
1848
  }
@@ -1888,7 +1885,7 @@ function createSessionActor(options, deps) {
1888
1885
  } else if (outcome.kind === "committed") {
1889
1886
  if (emergency === sending) emergency = null;
1890
1887
  } else if (outcome.kind === "permanent") {
1891
- for (var _iterator8 = _createForOfIteratorHelperLoose$t(sending.reports), _step8; !(_step8 = _iterator8()).done;) {
1888
+ for (var _iterator8 = _createForOfIteratorHelperLoose$u(sending.reports), _step8; !(_step8 = _iterator8()).done;) {
1892
1889
  var report = _step8.value;
1893
1890
  disable(report.context);
1894
1891
  }
@@ -1920,7 +1917,7 @@ function createSessionActor(options, deps) {
1920
1917
  }
1921
1918
  function tick() {
1922
1919
  if (disposed || visibility === "hidden") return;
1923
- for (var _iterator9 = _createForOfIteratorHelperLoose$t(streams), _step9; !(_step9 = _iterator9()).done;) {
1920
+ for (var _iterator9 = _createForOfIteratorHelperLoose$u(streams), _step9; !(_step9 = _iterator9()).done;) {
1924
1921
  var stream = _step9.value;
1925
1922
  var report = prepareDeadline(stream);
1926
1923
  if (!(report != null && report.current)) continue;
@@ -1947,7 +1944,7 @@ function createSessionActor(options, deps) {
1947
1944
  if (disposed || visibility === "hidden") return;
1948
1945
  var delay = Infinity;
1949
1946
  if (!busy && (pending.size || terminal.length || frozen || emergency)) delay = Math.max(0, deliveryReadyAt() - deps.now());
1950
- for (var _iterator0 = _createForOfIteratorHelperLoose$t(streams), _step0; !(_step0 = _iterator0()).done;) {
1947
+ for (var _iterator0 = _createForOfIteratorHelperLoose$u(streams), _step0; !(_step0 = _iterator0()).done;) {
1951
1948
  var stream = _step0.value;
1952
1949
  var report = prepareDeadline(stream);
1953
1950
  if (!(report != null && report.current)) continue;
@@ -2033,7 +2030,7 @@ function createSessionActor(options, deps) {
2033
2030
  return guard$2(function () {
2034
2031
  if (disposed || next === visibility) return;
2035
2032
  visibility = next;
2036
- for (var _iterator1 = _createForOfIteratorHelperLoose$t(streams), _step1; !(_step1 = _iterator1()).done;) {
2033
+ for (var _iterator1 = _createForOfIteratorHelperLoose$u(streams), _step1; !(_step1 = _iterator1()).done;) {
2037
2034
  var stream = _step1.value;
2038
2035
  if (stream.state.report.attemptStatus !== "active") continue;
2039
2036
  stream.state = reduceObservation(stream.state, {
@@ -2074,7 +2071,7 @@ function createSessionActor(options, deps) {
2074
2071
  if (taskDisposed) return;
2075
2072
  taskDisposed = true;
2076
2073
  if (workflowStream) close(workflowStream, "disposed");
2077
- for (var _iterator10 = _createForOfIteratorHelperLoose$t(captures), _step10; !(_step10 = _iterator10()).done;) {
2074
+ for (var _iterator10 = _createForOfIteratorHelperLoose$u(captures), _step10; !(_step10 = _iterator10()).done;) {
2078
2075
  var capture = _step10.value;
2079
2076
  capture.dispose();
2080
2077
  }
@@ -2212,6 +2209,44 @@ function isApprovedResponse(action, response) {
2212
2209
  return action === SubmissionAction.ENROLL ? result === "Customer Onboarded" : result === "Approved";
2213
2210
  }
2214
2211
 
2212
+ var createStoreImpl = function createStoreImpl(createState) {
2213
+ var state;
2214
+ var listeners = /* @__PURE__ */new Set();
2215
+ var setState = function setState(partial, replace) {
2216
+ var nextState = typeof partial === "function" ? partial(state) : partial;
2217
+ if (!Object.is(nextState, state)) {
2218
+ var previousState = state;
2219
+ state = (replace != null ? replace : typeof nextState !== "object" || nextState === null) ? nextState : Object.assign({}, state, nextState);
2220
+ listeners.forEach(function (listener) {
2221
+ return listener(state, previousState);
2222
+ });
2223
+ }
2224
+ };
2225
+ var getState = function getState() {
2226
+ return state;
2227
+ };
2228
+ var getInitialState = function getInitialState() {
2229
+ return initialState;
2230
+ };
2231
+ var subscribe = function subscribe(listener) {
2232
+ listeners.add(listener);
2233
+ return function () {
2234
+ return listeners["delete"](listener);
2235
+ };
2236
+ };
2237
+ var api = {
2238
+ setState: setState,
2239
+ getState: getState,
2240
+ getInitialState: getInitialState,
2241
+ subscribe: subscribe
2242
+ };
2243
+ var initialState = state = createState(setState, getState, api);
2244
+ return api;
2245
+ };
2246
+ var createStore = function createStore(createState) {
2247
+ return createState ? createStoreImpl(createState) : createStoreImpl;
2248
+ };
2249
+
2215
2250
  function sessionReducer(state, action) {
2216
2251
  switch (action.type) {
2217
2252
  case 'setSessionId':
@@ -2869,7 +2904,7 @@ function _objectWithoutPropertiesLoose(r, e) {
2869
2904
  return t;
2870
2905
  }
2871
2906
 
2872
- var _excluded$j = ["nonce", "web", "os"];
2907
+ var _excluded$k = ["nonce", "web", "os"];
2873
2908
  /**
2874
2909
  * Grade the envelope from whichever inputs are present:
2875
2910
  * - OS token present -> 'os-attested' (attach `os`)
@@ -2883,7 +2918,7 @@ function buildClientAttestation(input) {
2883
2918
  var nonce = input.nonce,
2884
2919
  web = input.web,
2885
2920
  os = input.os,
2886
- versions = _objectWithoutPropertiesLoose(input, _excluded$j);
2921
+ versions = _objectWithoutPropertiesLoose(input, _excluded$k);
2887
2922
  if (os) {
2888
2923
  return _extends({
2889
2924
  assuranceLevel: 'os-attested',
@@ -3466,9 +3501,9 @@ function blobToB64(blob) {
3466
3501
  });
3467
3502
  }
3468
3503
 
3469
- function _createForOfIteratorHelperLoose$s(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$s(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
3470
- function _unsupportedIterableToArray$s(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$s(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$s(r, a) : void 0; } }
3471
- function _arrayLikeToArray$s(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
3504
+ function _createForOfIteratorHelperLoose$t(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$t(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
3505
+ function _unsupportedIterableToArray$t(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$t(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$t(r, a) : void 0; } }
3506
+ function _arrayLikeToArray$t(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
3472
3507
  /**
3473
3508
  * Parser for AAMVA (American Association of Motor Vehicle Administrators)
3474
3509
  * PDF417 barcode data found on US and Canadian driver's licenses.
@@ -3730,7 +3765,7 @@ function parseAAMVABarcode(rawData) {
3730
3765
  DAD: false
3731
3766
  };
3732
3767
  var daaValue = null;
3733
- for (var _iterator = _createForOfIteratorHelperLoose$s(lines), _step; !(_step = _iterator()).done;) {
3768
+ for (var _iterator = _createForOfIteratorHelperLoose$t(lines), _step; !(_step = _iterator()).done;) {
3734
3769
  var line = _step.value;
3735
3770
  var match = line.match(fieldRegex);
3736
3771
  if (match) {
@@ -3771,7 +3806,7 @@ function parseAAMVABarcode(rawData) {
3771
3806
  result.fields.push(field);
3772
3807
  }
3773
3808
  };
3774
- for (var _iterator2 = _createForOfIteratorHelperLoose$s(daaFields), _step2; !(_step2 = _iterator2()).done;) {
3809
+ for (var _iterator2 = _createForOfIteratorHelperLoose$t(daaFields), _step2; !(_step2 = _iterator2()).done;) {
3775
3810
  _loop();
3776
3811
  }
3777
3812
  }
@@ -4827,7 +4862,7 @@ function createIdmissionClient(config) {
4827
4862
  sessionCheckState: 'READY',
4828
4863
  canRefreshSession: typeof config.sessionId === 'function'
4829
4864
  };
4830
- var store = vanilla.createStore(function () {
4865
+ var store = createStore(function () {
4831
4866
  return {
4832
4867
  session: initialSession,
4833
4868
  submissionStatus: SubmissionStatus.READY
@@ -6464,7 +6499,7 @@ var fr = {
6464
6499
  'Barcode capture in progress, please hold still': 'Capture du code-barres en cours, veuillez ne pas bouger'
6465
6500
  };
6466
6501
 
6467
- var it = {
6502
+ var it$1 = {
6468
6503
  'English - en': 'Italian - it',
6469
6504
  'Use your device camera to capture your ID': 'Utilizzare la fotocamera del dispositivo per acquisire il documento',
6470
6505
  'Use your iPhone as a webcam': 'Utilizza iPhone come webcam',
@@ -6760,7 +6795,7 @@ var ja = {
6760
6795
  'Barcode capture in progress, please hold still': 'バーコードを読み取っています。動かないでください'
6761
6796
  };
6762
6797
 
6763
- var pt = {
6798
+ var pt$1 = {
6764
6799
  'English - en': 'Portuguese (Brazil) - pt',
6765
6800
  'Use your device camera to capture your ID': 'Usar a câmera do dispositivo para fotografar sua identidade',
6766
6801
  'Use your iPhone as a webcam': 'Use seu iPhone como uma câmera Web',
@@ -7310,13 +7345,13 @@ var resources = {
7310
7345
  translation: withThreeOhTranslations('fr', fr)
7311
7346
  },
7312
7347
  it: {
7313
- translation: withThreeOhTranslations('it', it)
7348
+ translation: withThreeOhTranslations('it', it$1)
7314
7349
  },
7315
7350
  ja: {
7316
7351
  translation: withThreeOhTranslations('ja', ja)
7317
7352
  },
7318
7353
  pt: {
7319
- translation: withThreeOhTranslations('pt', pt)
7354
+ translation: withThreeOhTranslations('pt', pt$1)
7320
7355
  },
7321
7356
  ru: {
7322
7357
  translation: withThreeOhTranslations('ru', ru)
@@ -7631,10 +7666,10 @@ function useGuideOrientationContext() {
7631
7666
  }
7632
7667
 
7633
7668
  var _templateObject$_, _templateObject2$P;
7634
- var _excluded$i = ["isRearFacing"];
7669
+ var _excluded$j = ["isRearFacing"];
7635
7670
  var CameraVideoTag = /*#__PURE__*/React.forwardRef(function CameraVideoTag(_ref, ref) {
7636
7671
  var isRearFacing = _ref.isRearFacing,
7637
- props = _objectWithoutPropertiesLoose(_ref, _excluded$i);
7672
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$j);
7638
7673
  return jsxRuntime.jsx(FullscreenVideoTag, _extends({
7639
7674
  autoPlay: true,
7640
7675
  playsInline: true,
@@ -7702,9 +7737,9 @@ function ScalingCameraFeed(_ref2) {
7702
7737
  }
7703
7738
 
7704
7739
  var _templateObject$Z, _templateObject2$O, _templateObject3$D, _templateObject4$y, _templateObject5$t, _templateObject6$l;
7705
- function _createForOfIteratorHelperLoose$r(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$r(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
7706
- function _unsupportedIterableToArray$r(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$r(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$r(r, a) : void 0; } }
7707
- function _arrayLikeToArray$r(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
7740
+ function _createForOfIteratorHelperLoose$s(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$s(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
7741
+ function _unsupportedIterableToArray$s(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$s(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$s(r, a) : void 0; } }
7742
+ function _arrayLikeToArray$s(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
7708
7743
  /** Displays camera readiness and available source-frame dimensions. */
7709
7744
  function CameraDebugStatus(_ref) {
7710
7745
  var ready = _ref.ready,
@@ -7721,7 +7756,7 @@ function DebugStatsPane(_ref2) {
7721
7756
  });
7722
7757
  var portalLocation = document.getElementById('idmission-above-guides-content');
7723
7758
  if (!portalLocation) return element;
7724
- return /*#__PURE__*/reactDom.createPortal(element, portalLocation);
7759
+ return /*#__PURE__*/ReactDOM.createPortal(element, portalLocation);
7725
7760
  }
7726
7761
  var DebugStatsPaneDiv = styledComponents.styled.span(_templateObject$Z || (_templateObject$Z = _taggedTemplateLiteralLoose(["\n font-size: 16px;\n font-family: monospace;\n position: absolute;\n left: 20px;\n bottom: 20px;\n margin-right: 20px;\n padding: 8px;\n color: limegreen;\n background: rgba(0, 0, 0, 0.5);\n z-index: 10002;\n pointer-events: none;\n"])));
7727
7762
  var ObjectDetectionDebugOverlayDiv = styledComponents.styled.div(_templateObject2$O || (_templateObject2$O = _taggedTemplateLiteralLoose(["\n position: absolute;\n z-index: 1001;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n max-width: 100%;\n max-height: 100%;\n overflow: hidden;\n pointer-events: none;\n ", "\n transform-style: preserve-3d;\n"])), function (_ref3) {
@@ -7969,7 +8004,7 @@ function SelfieCaptureFaceMesh(_ref15) {
7969
8004
  groups.forEach(function (indices, color) {
7970
8005
  ctx.fillStyle = color;
7971
8006
  ctx.beginPath();
7972
- for (var _iterator = _createForOfIteratorHelperLoose$r(indices), _step; !(_step = _iterator()).done;) {
8007
+ for (var _iterator = _createForOfIteratorHelperLoose$s(indices), _step; !(_step = _iterator()).done;) {
7973
8008
  var _i = _step.value;
7974
8009
  var p = meshLandmarks[_i];
7975
8010
  ctx.moveTo(p.x + dotRadius, p.y);
@@ -8124,7 +8159,7 @@ function BrowserEdgeTint(_ref) {
8124
8159
  }, []);
8125
8160
  if (!target) return null;
8126
8161
  var bottomColor = hiddenBottomColor != null ? hiddenBottomColor : color;
8127
- return /*#__PURE__*/reactDom.createPortal(jsxRuntime.jsxs(jsxRuntime.Fragment, {
8162
+ return /*#__PURE__*/ReactDOM.createPortal(jsxRuntime.jsxs(jsxRuntime.Fragment, {
8128
8163
  children: [jsxRuntime.jsx(EdgeStrip, {
8129
8164
  "$edge": "top",
8130
8165
  "$color": color,
@@ -8151,7 +8186,7 @@ var EdgeStrip = styledComponents.styled.div(_templateObject$Y || (_templateObjec
8151
8186
  });
8152
8187
 
8153
8188
  var _templateObject$X;
8154
- var _excluded$h = ["children", "className", "colors", "disabled", "finished", "variant"];
8189
+ var _excluded$i = ["children", "className", "colors", "disabled", "finished", "variant"];
8155
8190
  var LoaderButton = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
8156
8191
  var children = _ref.children,
8157
8192
  className = _ref.className,
@@ -8161,7 +8196,7 @@ var LoaderButton = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
8161
8196
  finished = _ref.finished,
8162
8197
  _ref$variant = _ref.variant,
8163
8198
  variant = _ref$variant === void 0 ? 'primary' : _ref$variant,
8164
- props = _objectWithoutPropertiesLoose(_ref, _excluded$h);
8199
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$i);
8165
8200
  var buttonRef = React.useRef(null);
8166
8201
  var laddaRef = React.useRef(null);
8167
8202
  var _useState = React.useState(false),
@@ -8238,7 +8273,7 @@ var GuidanceMessageContainer = function GuidanceMessageContainer(props) {
8238
8273
  var element = jsxRuntime.jsx(GuidanceMessageContainerDiv, _extends({}, props));
8239
8274
  var portalLocation = document.getElementById('idmission-above-guides-content');
8240
8275
  if (!portalLocation) return element;
8241
- return /*#__PURE__*/reactDom.createPortal(element, portalLocation);
8276
+ return /*#__PURE__*/ReactDOM.createPortal(element, portalLocation);
8242
8277
  };
8243
8278
  var GuidanceMessage = styledComponents.styled.div(_templateObject2$N || (_templateObject2$N = _taggedTemplateLiteralLoose(["\n margin-left: auto;\n margin-right: auto;\n background: ", ";\n color: ", ";\n border-radius: 8px;\n z-index: 10001;\n padding: 16px 24px;\n font-size: 18px;\n font-weight: bold;\n box-shadow:\n 0 1px 3px 0 rgb(0 0 0 / 0.1),\n 0 1px 2px -1px rgb(0 0 0 / 0.1);\n"])), function (props) {
8244
8279
  var _ref3, _props$$background, _props$theme, _props$$variant;
@@ -8472,7 +8507,7 @@ var error = function error() {
8472
8507
  return (console.error ).apply(void 0, arguments);
8473
8508
  }; // eslint-disable-line no-console
8474
8509
 
8475
- var _excluded$g = ["children", "status", "borderWidth", "borderRadius", "borderColor", "aspectRatio", "progress", "guideBoxDisabled"],
8510
+ var _excluded$h = ["children", "status", "borderWidth", "borderRadius", "borderColor", "aspectRatio", "progress", "guideBoxDisabled"],
8476
8511
  _excluded2$5 = ["borderRadius", "borderColor", "borderWidth", "borderOpacity", "progress", "isProgressBar", "scaleBorderRadius"];
8477
8512
  var _templateObject$S, _templateObject2$K, _templateObject3$A, _templateObject4$v, _templateObject5$r, _templateObject6$j, _templateObject7$g;
8478
8513
  var IdCardGuideImageContainer = styledComponents.styled(IdCardBorder)(_templateObject$S || (_templateObject$S = _taggedTemplateLiteralLoose(["\n position: relative;\n ", "\n box-sizing: border-box;\n max-width: 100%;\n max-height: 100%;\n ", ";\n"])), function (props) {
@@ -8502,7 +8537,7 @@ function IdCardBorder(_ref) {
8502
8537
  progress = _ref$progress === void 0 ? 0 : _ref$progress,
8503
8538
  _ref$guideBoxDisabled = _ref.guideBoxDisabled,
8504
8539
  guideBoxDisabled = _ref$guideBoxDisabled === void 0 ? false : _ref$guideBoxDisabled,
8505
- props = _objectWithoutPropertiesLoose(_ref, _excluded$g);
8540
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$h);
8506
8541
  var _useResizeObserver = useResizeObserver(),
8507
8542
  ref = _useResizeObserver.ref,
8508
8543
  _useResizeObserver$wi = _useResizeObserver.width,
@@ -9892,11 +9927,11 @@ var LoadingGraphicPhoneGroup = styledComponents.styled.g(_templateObject4$s || (
9892
9927
  return props.$offScreen ? '40px' : '0';
9893
9928
  });
9894
9929
 
9895
- var _excluded$f = ["state"];
9930
+ var _excluded$g = ["state"];
9896
9931
  function LoadingListItemIndicator(_ref) {
9897
9932
  var _ref$state = _ref.state,
9898
9933
  state = _ref$state === void 0 ? 'running' : _ref$state,
9899
- svgProps = _objectWithoutPropertiesLoose(_ref, _excluded$f);
9934
+ svgProps = _objectWithoutPropertiesLoose(_ref, _excluded$g);
9900
9935
  return jsxRuntime.jsx("svg", _extends({
9901
9936
  width: "16",
9902
9937
  height: "16",
@@ -10401,9 +10436,9 @@ function loadingOverlayBottomEdgeColor(theme, modelsReady) {
10401
10436
  });
10402
10437
  }
10403
10438
 
10404
- function _createForOfIteratorHelperLoose$q(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$q(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
10405
- function _unsupportedIterableToArray$q(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$q(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$q(r, a) : void 0; } }
10406
- function _arrayLikeToArray$q(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
10439
+ function _createForOfIteratorHelperLoose$r(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$r(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
10440
+ function _unsupportedIterableToArray$r(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$r(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$r(r, a) : void 0; } }
10441
+ function _arrayLikeToArray$r(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
10407
10442
  var DEFAULT_THRESHOLD = 0.03;
10408
10443
  // Minimum confidence a `'Finger'` detection must clear before it counts
10409
10444
  // toward occlusion. The LiteRT document detector emits low-score
@@ -10454,7 +10489,7 @@ function computeFingerOcclusion(bestDocument, detectedObjects, documentType, thr
10454
10489
  // overlap each other the shared area gets double-counted — that errs
10455
10490
  // toward over-blocking, which is the safer direction for occlusion.
10456
10491
  var totalOverlap = 0;
10457
- for (var _iterator = _createForOfIteratorHelperLoose$q(detectedObjects), _step; !(_step = _iterator()).done;) {
10492
+ for (var _iterator = _createForOfIteratorHelperLoose$r(detectedObjects), _step; !(_step = _iterator()).done;) {
10458
10493
  var obj = _step.value;
10459
10494
  if (obj.label !== 'Finger') continue;
10460
10495
  if (obj.score < MIN_FINGER_SCORE) continue;
@@ -10486,7 +10521,7 @@ function anyOverlapByLabel(bestDocument, detectedObjects, label, minScore) {
10486
10521
  if (!bestDocument) return false;
10487
10522
  var docBox = bestDocument.box;
10488
10523
  if (docBox.width <= 0 || docBox.height <= 0) return false;
10489
- for (var _iterator2 = _createForOfIteratorHelperLoose$q(detectedObjects), _step2; !(_step2 = _iterator2()).done;) {
10524
+ for (var _iterator2 = _createForOfIteratorHelperLoose$r(detectedObjects), _step2; !(_step2 = _iterator2()).done;) {
10490
10525
  var obj = _step2.value;
10491
10526
  if (obj.label !== label) continue;
10492
10527
  if (obj.score < minScore) continue;
@@ -10662,9 +10697,9 @@ var initialFlowState = {
10662
10697
 
10663
10698
  var CapturedDocumentTypeValues = ['idCardFront', 'idCardBack', 'passport', 'singlePage', 'selfie', 'idFrontIrImage', 'idBackIrImage', 'idFrontUvImage', 'idBackUvImage', 'idBarcodeImage'];
10664
10699
 
10665
- function _createForOfIteratorHelperLoose$p(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$p(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
10666
- function _unsupportedIterableToArray$p(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$p(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$p(r, a) : void 0; } }
10667
- function _arrayLikeToArray$p(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
10700
+ function _createForOfIteratorHelperLoose$q(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$q(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
10701
+ function _unsupportedIterableToArray$q(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$q(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$q(r, a) : void 0; } }
10702
+ function _arrayLikeToArray$q(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
10668
10703
  // Tuning constants — seeded estimates. Expect on-device tuning against real
10669
10704
  // captures across angles/devices (same posture as the liveness geometry).
10670
10705
  var CONTAINMENT_MIN = 0.8; // fraction of inner box inside the outer box
@@ -10692,7 +10727,7 @@ function containment(inner, outer) {
10692
10727
  }
10693
10728
  function bestByLabel(objs, label) {
10694
10729
  var best = null;
10695
- for (var _iterator = _createForOfIteratorHelperLoose$p(objs), _step; !(_step = _iterator()).done;) {
10730
+ for (var _iterator = _createForOfIteratorHelperLoose$q(objs), _step; !(_step = _iterator()).done;) {
10696
10731
  var o = _step.value;
10697
10732
  if (o.label !== label) continue;
10698
10733
  if (o.score < MIN_BOOKLET_SCORE) continue;
@@ -10867,9 +10902,9 @@ function remainingIdCaptureRequirements(captureRequirement, capturedDocuments, r
10867
10902
  });
10868
10903
  }
10869
10904
 
10870
- function _createForOfIteratorHelperLoose$o(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$o(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
10871
- function _unsupportedIterableToArray$o(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$o(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$o(r, a) : void 0; } }
10872
- function _arrayLikeToArray$o(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
10905
+ function _createForOfIteratorHelperLoose$p(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$p(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
10906
+ function _unsupportedIterableToArray$p(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$p(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$p(r, a) : void 0; } }
10907
+ function _arrayLikeToArray$p(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
10873
10908
  /**
10874
10909
  * Clears the current frame's verdict (sdk2 idCaptureReducer.ts:367-389). Both
10875
10910
  * of these describe "the last frame we looked at", so they are meaningless —
@@ -10953,7 +10988,7 @@ var _reduceIdCapture = function reduceIdCapture(state, action, now) {
10953
10988
  // from one the user captured -- `documentCaptured` erases the
10954
10989
  // difference by design (see state.ts precapturedDocumentTypes).
10955
10990
  var seeded = [];
10956
- for (var _iterator = _createForOfIteratorHelperLoose$o(CapturedDocumentTypeValues), _step; !(_step = _iterator()).done;) {
10991
+ for (var _iterator = _createForOfIteratorHelperLoose$p(CapturedDocumentTypeValues), _step; !(_step = _iterator()).done;) {
10957
10992
  var k = _step.value;
10958
10993
  var payload = precapturedDocuments[k];
10959
10994
  if (payload) {
@@ -11291,7 +11326,7 @@ var _reduceIdCapture = function reduceIdCapture(state, action, now) {
11291
11326
  case 'documentsCaptured':
11292
11327
  {
11293
11328
  var _newState2 = _extends({}, state);
11294
- for (var _iterator2 = _createForOfIteratorHelperLoose$o(action.payload), _step2; !(_step2 = _iterator2()).done;) {
11329
+ for (var _iterator2 = _createForOfIteratorHelperLoose$p(action.payload), _step2; !(_step2 = _iterator2()).done;) {
11295
11330
  var doc = _step2.value;
11296
11331
  _newState2 = _reduceIdCapture(_newState2, {
11297
11332
  type: 'documentCaptured',
@@ -13493,9 +13528,9 @@ function evaluateIsMobile(nav) {
13493
13528
  return false;
13494
13529
  }
13495
13530
 
13496
- function _createForOfIteratorHelperLoose$n(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$n(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
13497
- function _unsupportedIterableToArray$n(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$n(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$n(r, a) : void 0; } }
13498
- function _arrayLikeToArray$n(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
13531
+ function _createForOfIteratorHelperLoose$o(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$o(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
13532
+ function _unsupportedIterableToArray$o(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$o(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$o(r, a) : void 0; } }
13533
+ function _arrayLikeToArray$o(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
13499
13534
  // zxing-js UMD build, self-hosted on the SDK's own CDN (version-pinned) rather
13500
13535
  // than fetched from unpkg. The previous `@latest` URL was both an external
13501
13536
  // dependency and a supply-chain risk — it executed whatever unpkg served as
@@ -14235,7 +14270,7 @@ function _decodePDF() {
14235
14270
  }
14236
14271
  base = _bases[_i];
14237
14272
  log$1("[NativeBarcodeDecoder] Trying fine rotation deskew around " + base.angle + "\xB0...");
14238
- _iterator = _createForOfIteratorHelperLoose$n(FINE_ROTATION_ANGLES);
14273
+ _iterator = _createForOfIteratorHelperLoose$o(FINE_ROTATION_ANGLES);
14239
14274
  case 11:
14240
14275
  if ((_step = _iterator()).done) {
14241
14276
  _context0.next = 14;
@@ -14760,7 +14795,7 @@ function _decodePDF417WithDetails() {
14760
14795
  }
14761
14796
  base = _bases2[_i2];
14762
14797
  log$1("[NativeBarcodeDecoder] Trying fine rotation deskew around " + base.angle + "\xB0 (detailed)...");
14763
- _iterator2 = _createForOfIteratorHelperLoose$n(FINE_ROTATION_ANGLES);
14798
+ _iterator2 = _createForOfIteratorHelperLoose$o(FINE_ROTATION_ANGLES);
14764
14799
  case 12:
14765
14800
  if ((_step2 = _iterator2()).done) {
14766
14801
  _context12.next = 15;
@@ -14879,9 +14914,9 @@ var CaptureAttachError = /*#__PURE__*/function (_Error) {
14879
14914
  return CaptureAttachError;
14880
14915
  }(/*#__PURE__*/_wrapNativeSuper(Error));
14881
14916
 
14882
- function _createForOfIteratorHelperLoose$m(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$m(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
14883
- function _unsupportedIterableToArray$m(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$m(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$m(r, a) : void 0; } }
14884
- function _arrayLikeToArray$m(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
14917
+ function _createForOfIteratorHelperLoose$n(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$n(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
14918
+ function _unsupportedIterableToArray$n(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$n(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$n(r, a) : void 0; } }
14919
+ function _arrayLikeToArray$n(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
14885
14920
  /**
14886
14921
  * Analyzes barcode readability for a detected document
14887
14922
  * (IdCaptureModelsProvider.tsx:83-199, ported verbatim; the last two
@@ -15342,7 +15377,7 @@ function createDetectionPipeline(opts) {
15342
15377
  });
15343
15378
  if (failed) {
15344
15379
  loadSettled = true;
15345
- for (var _iterator = _createForOfIteratorHelperLoose$m(lifecycleHandles), _step; !(_step = _iterator()).done;) {
15380
+ for (var _iterator = _createForOfIteratorHelperLoose$n(lifecycleHandles), _step; !(_step = _iterator()).done;) {
15346
15381
  var handle = _step.value;
15347
15382
  handle.cancel();
15348
15383
  }
@@ -16628,9 +16663,9 @@ function maybeDataUrlToBase64Sync(url) {
16628
16663
  return dataUrlToBase64Sync(url);
16629
16664
  }
16630
16665
 
16631
- function _createForOfIteratorHelperLoose$l(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$l(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
16632
- function _unsupportedIterableToArray$l(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$l(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$l(r, a) : void 0; } }
16633
- function _arrayLikeToArray$l(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
16666
+ function _createForOfIteratorHelperLoose$m(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$m(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
16667
+ function _unsupportedIterableToArray$m(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$m(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$m(r, a) : void 0; } }
16668
+ function _arrayLikeToArray$m(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
16634
16669
  // Document types whose capture attempt becomes an upload's `filemetadata`, in
16635
16670
  // write order: `singlePage` after `idCardFront` so it wins `idFrontImage`,
16636
16671
  // exactly as the image does below.
@@ -16720,7 +16755,7 @@ function buildIdCaptureArtifacts(inputs, now) {
16720
16755
  };
16721
16756
  if (ocrMetadata) meta.ocrMetadata = ocrMetadata;
16722
16757
  var documentFileMetadata = {};
16723
- for (var _iterator = _createForOfIteratorHelperLoose$l(FILE_METADATA_KEYS), _step; !(_step = _iterator()).done;) {
16758
+ for (var _iterator = _createForOfIteratorHelperLoose$m(FILE_METADATA_KEYS), _step; !(_step = _iterator()).done;) {
16724
16759
  var _step$value = _slicedToArray(_step.value, 2),
16725
16760
  documentType = _step$value[0],
16726
16761
  documentKey = _step$value[1];
@@ -16747,10 +16782,10 @@ function buildIdCaptureArtifacts(inputs, now) {
16747
16782
  };
16748
16783
  }
16749
16784
 
16750
- var _excluded$e = ["bestBarcodeScore", "barcodeBoundingBox"];
16751
- function _createForOfIteratorHelperLoose$k(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$k(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
16752
- function _unsupportedIterableToArray$k(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$k(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$k(r, a) : void 0; } }
16753
- function _arrayLikeToArray$k(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
16785
+ var _excluded$f = ["bestBarcodeScore", "barcodeBoundingBox"];
16786
+ function _createForOfIteratorHelperLoose$l(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$l(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
16787
+ function _unsupportedIterableToArray$l(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$l(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$l(r, a) : void 0; } }
16788
+ function _arrayLikeToArray$l(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
16754
16789
  // sdk2/src/components/id_capture/IdCaptureWizard.tsx:253-262
16755
16790
  var lastDocumentDetectedAtDefaults = {
16756
16791
  idCardFront: null,
@@ -16831,7 +16866,7 @@ function createIdCaptureController(config) {
16831
16866
  // ---------------------------------------------------------------------
16832
16867
  // Store
16833
16868
  // ---------------------------------------------------------------------
16834
- var internal = vanilla.createStore(function () {
16869
+ var internal = createStore(function () {
16835
16870
  return _extends({}, initialFlowState, {
16836
16871
  error: null,
16837
16872
  submission: 'idle',
@@ -16920,7 +16955,7 @@ function createIdCaptureController(config) {
16920
16955
  // payload.ts's buildNoBarcodeOCRMetadata fallback counts).
16921
16956
  var bestBarcodeScore = metadata.bestBarcodeScore,
16922
16957
  barcodeBoundingBox = metadata.barcodeBoundingBox,
16923
- captureAttemptWithoutBarcode = _objectWithoutPropertiesLoose(metadata, _excluded$e);
16958
+ captureAttemptWithoutBarcode = _objectWithoutPropertiesLoose(metadata, _excluded$f);
16924
16959
  captureAttempts.back.push(captureAttemptWithoutBarcode);
16925
16960
  // :619-629 -- appended whenever a barcode score was recorded at all
16926
16961
  // (0 counts: auto-capture stamps `bestBarcodeScore: bestBarcode?.score
@@ -16960,7 +16995,7 @@ function createIdCaptureController(config) {
16960
16995
  }
16961
16996
  }
16962
16997
  function clearAllTimers() {
16963
- for (var _iterator = _createForOfIteratorHelperLoose$k(timers.values()), _step; !(_step = _iterator()).done;) {
16998
+ for (var _iterator = _createForOfIteratorHelperLoose$l(timers.values()), _step; !(_step = _iterator()).done;) {
16964
16999
  var handle = _step.value;
16965
17000
  io.clearTimeout(handle);
16966
17001
  }
@@ -19967,7 +20002,7 @@ var ContinueButton$2 = styledComponents.styled(LoaderButton)(_templateObject7$c
19967
20002
  return (_props$theme$idCaptur5 = (_props$theme7 = props.theme) == null || (_props$theme7 = _props$theme7.idCapture) == null || (_props$theme7 = _props$theme7.loadingOverlay) == null ? void 0 : _props$theme7.continueBtnDisabledBorder) != null ? _props$theme$idCaptur5 : 'none';
19968
20003
  });
19969
20004
 
19970
- var _excluded$d = ["mode"];
20005
+ var _excluded$e = ["mode"];
19971
20006
  var components$1 = {
19972
20007
  "default": IdCaptureLoadingOverlayDefault,
19973
20008
  legacy: IdCaptureLoadingOverlayLegacy,
@@ -19977,7 +20012,7 @@ var IdCaptureLoadingOverlay = function IdCaptureLoadingOverlay(_ref) {
19977
20012
  var _components$mode;
19978
20013
  var _ref$mode = _ref.mode,
19979
20014
  mode = _ref$mode === void 0 ? 'default' : _ref$mode,
19980
- props = _objectWithoutPropertiesLoose(_ref, _excluded$d);
20015
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$e);
19981
20016
  var Component = (_components$mode = components$1[mode]) != null ? _components$mode : components$1["default"];
19982
20017
  return jsxRuntime.jsx(Component, _extends({}, props));
19983
20018
  };
@@ -21560,9 +21595,9 @@ function useSessionReady() {
21560
21595
  }
21561
21596
 
21562
21597
  var _templateObject$w;
21563
- function _createForOfIteratorHelperLoose$j(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$j(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
21564
- function _unsupportedIterableToArray$j(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$j(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$j(r, a) : void 0; } }
21565
- function _arrayLikeToArray$j(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
21598
+ function _createForOfIteratorHelperLoose$k(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$k(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
21599
+ function _unsupportedIterableToArray$k(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$k(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$k(r, a) : void 0; } }
21600
+ function _arrayLikeToArray$k(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
21566
21601
  // Unlike SelfieCaptureView/FaceLivenessView, this view has no root
21567
21602
  // container of its own -- ScalingCameraFeed/IdCaptureGuides/etc. render as
21568
21603
  // siblings relying on whatever positioned ancestor the host page provides.
@@ -21830,7 +21865,7 @@ function IdCaptureViewContent(_ref) {
21830
21865
  // after this effect first runs with an empty state). Folding it in here,
21831
21866
  // rather than seeding once on mount, is what makes the skip actually
21832
21867
  // apply. `seen` keeps a consumed exclusion from being re-armed.
21833
- for (var _iterator = _createForOfIteratorHelperLoose$j(state.precapturedDocumentTypes), _step; !(_step = _iterator()).done;) {
21868
+ for (var _iterator = _createForOfIteratorHelperLoose$k(state.precapturedDocumentTypes), _step; !(_step = _iterator()).done;) {
21834
21869
  var _documentType = _step.value;
21835
21870
  if (seenPrecapturedRef.current.has(_documentType)) continue;
21836
21871
  seenPrecapturedRef.current.add(_documentType);
@@ -23206,9 +23241,9 @@ function guidanceFor(state, prediction, at) {
23206
23241
  return code === SelfieGuidanceCode.HOLD_STILL && handOverFaceHeld(state.handOverFaceAt, at) ? SelfieGuidanceCode.HAND_OVER_FACE : code;
23207
23242
  }
23208
23243
 
23209
- function _createForOfIteratorHelperLoose$i(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$i(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
23210
- function _unsupportedIterableToArray$i(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$i(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$i(r, a) : void 0; } }
23211
- function _arrayLikeToArray$i(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
23244
+ function _createForOfIteratorHelperLoose$j(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$j(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
23245
+ function _unsupportedIterableToArray$j(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$j(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$j(r, a) : void 0; } }
23246
+ function _arrayLikeToArray$j(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
23212
23247
  // sdk2 componenets/selfie_capture/faceDetectorDefault.ts:5
23213
23248
  // (DEFAULT_FACE_DETECTOR): face-landmarker is the default face model as of
23214
23249
  // 2.4.0.
@@ -23238,7 +23273,7 @@ function mapDetectionsToFaces(prediction) {
23238
23273
  if (!prediction) return null;
23239
23274
  var faceDetections = [];
23240
23275
  var noseDetections = [];
23241
- for (var _iterator = _createForOfIteratorHelperLoose$i(prediction.detections), _step; !(_step = _iterator()).done;) {
23276
+ for (var _iterator = _createForOfIteratorHelperLoose$j(prediction.detections), _step; !(_step = _iterator()).done;) {
23242
23277
  var detection = _step.value;
23243
23278
  if (isNoseDetection(detection)) {
23244
23279
  noseDetections.push(detection);
@@ -23252,7 +23287,7 @@ function mapDetectionsToFaces(prediction) {
23252
23287
  var faceBox = d.boundingBox;
23253
23288
  if (!faceBox) continue;
23254
23289
  var nose = null;
23255
- for (var _iterator2 = _createForOfIteratorHelperLoose$i(noseDetections), _step2; !(_step2 = _iterator2()).done;) {
23290
+ for (var _iterator2 = _createForOfIteratorHelperLoose$j(noseDetections), _step2; !(_step2 = _iterator2()).done;) {
23256
23291
  var n = _step2.value;
23257
23292
  var noseBox = n.boundingBox;
23258
23293
  if (!noseBox) continue;
@@ -24054,9 +24089,9 @@ function captureQualityException(reason, measurements, originalThresholds, recov
24054
24089
  };
24055
24090
  }
24056
24091
 
24057
- function _createForOfIteratorHelperLoose$h(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$h(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
24058
- function _unsupportedIterableToArray$h(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$h(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$h(r, a) : void 0; } }
24059
- function _arrayLikeToArray$h(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
24092
+ function _createForOfIteratorHelperLoose$i(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$i(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
24093
+ function _unsupportedIterableToArray$i(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$i(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$i(r, a) : void 0; } }
24094
+ function _arrayLikeToArray$i(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
24060
24095
  // sdk2 SelfieGuidanceModelsProvider.tsx onPredictionMade's useThrottledCallback
24061
24096
  // second argument (SelfieCapture.tsx:225 -- "locks to 60fps maximum").
24062
24097
  var DEFAULT_PREDICTION_THROTTLE_MS = 16;
@@ -24141,7 +24176,7 @@ function createSelfieCaptureController(config) {
24141
24176
  }
24142
24177
  var handCheckEnabled = ((_config$handOverFaceC2 = config.handOverFaceCheck) == null ? void 0 : _config$handOverFaceC2.enabled) === true && detectorKind === 'face-landmarker';
24143
24178
  if (config.captureRecovery) validateCaptureRecovery(config.captureRecovery);
24144
- var internal = vanilla.createStore(function () {
24179
+ var internal = createStore(function () {
24145
24180
  return _extends({}, createInitialSelfieCaptureState({
24146
24181
  thresholds: config.thresholds
24147
24182
  }), {
@@ -24178,7 +24213,7 @@ function createSelfieCaptureController(config) {
24178
24213
  // --- timers (idCapture pattern, colon-namespaced) ---
24179
24214
  var timers = new Map();
24180
24215
  function clearAllTimers() {
24181
- for (var _iterator = _createForOfIteratorHelperLoose$h(timers.values()), _step; !(_step = _iterator()).done;) {
24216
+ for (var _iterator = _createForOfIteratorHelperLoose$i(timers.values()), _step; !(_step = _iterator()).done;) {
24182
24217
  var handle = _step.value;
24183
24218
  io.clearTimeout(handle);
24184
24219
  }
@@ -25945,7 +25980,7 @@ function SelfieCameraFeed(_ref) {
25945
25980
  }
25946
25981
 
25947
25982
  var _templateObject$u, _templateObject2$r, _templateObject3$j, _templateObject4$f;
25948
- var _excluded$c = ["borderColor", "borderOpacity", "borderWidth", "status"],
25983
+ var _excluded$d = ["borderColor", "borderOpacity", "borderWidth", "status"],
25949
25984
  _excluded2$4 = ["status", "guideStyle"],
25950
25985
  _excluded3 = ["frame", "borderWidth", "borderColor", "borderOpacity", "verticalAlign", "status", "guideStyle"],
25951
25986
  _excluded4 = ["status"];
@@ -25962,7 +25997,7 @@ var HeadGuideSvg = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
25962
25997
  borderWidth = _ref$borderWidth === void 0 ? 5 : _ref$borderWidth,
25963
25998
  _ref$status = _ref.status,
25964
25999
  status = _ref$status === void 0 ? 'ready' : _ref$status,
25965
- props = _objectWithoutPropertiesLoose(_ref, _excluded$c);
26000
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$d);
25966
26001
  return jsxRuntime.jsxs("svg", _extends({}, props, {
25967
26002
  ref: ref,
25968
26003
  viewBox: "271 92 297 406",
@@ -27248,7 +27283,7 @@ var ContinueButton = styledComponents.styled(LoaderButton)(_templateObject7$8 ||
27248
27283
  return (_props$theme$selfieCa5 = (_props$theme7 = props.theme) == null || (_props$theme7 = _props$theme7.selfieCapture) == null || (_props$theme7 = _props$theme7.loadingOverlay) == null ? void 0 : _props$theme7.continueBtnDisabledBorder) != null ? _props$theme$selfieCa5 : 'none';
27249
27284
  });
27250
27285
 
27251
- var _excluded$b = ["mode"];
27286
+ var _excluded$c = ["mode"];
27252
27287
  var components = {
27253
27288
  "default": SelfieCaptureLoadingOverlayDefault,
27254
27289
  legacy: SelfieCaptureLoadingOverlayLegacy,
@@ -27258,7 +27293,7 @@ var SelfieCaptureLoadingOverlay = function SelfieCaptureLoadingOverlay(_ref) {
27258
27293
  var _components$mode;
27259
27294
  var _ref$mode = _ref.mode,
27260
27295
  mode = _ref$mode === void 0 ? 'default' : _ref$mode,
27261
- props = _objectWithoutPropertiesLoose(_ref, _excluded$b);
27296
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$c);
27262
27297
  var Component = (_components$mode = components[mode]) != null ? _components$mode : components["default"];
27263
27298
  return jsxRuntime.jsx(Component, _extends({}, props));
27264
27299
  };
@@ -28623,9 +28658,9 @@ function FaceLivenessViewContent(_ref) {
28623
28658
  });
28624
28659
  }
28625
28660
 
28626
- function _createForOfIteratorHelperLoose$g(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$g(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
28627
- function _unsupportedIterableToArray$g(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$g(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$g(r, a) : void 0; } }
28628
- function _arrayLikeToArray$g(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
28661
+ function _createForOfIteratorHelperLoose$h(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$h(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
28662
+ function _unsupportedIterableToArray$h(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$h(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$h(r, a) : void 0; } }
28663
+ function _arrayLikeToArray$h(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
28629
28664
  /**
28630
28665
  * Signature validity estimate (AMEXDESK-676).
28631
28666
  *
@@ -28728,7 +28763,7 @@ function countSignaturePoints(strokes) {
28728
28763
  */
28729
28764
  function measurePenDownMs(strokes) {
28730
28765
  var total = 0;
28731
- for (var _iterator = _createForOfIteratorHelperLoose$g(strokes), _step; !(_step = _iterator()).done;) {
28766
+ for (var _iterator = _createForOfIteratorHelperLoose$h(strokes), _step; !(_step = _iterator()).done;) {
28732
28767
  var stroke = _step.value;
28733
28768
  if (stroke.length < 2) continue;
28734
28769
  total += stroke[stroke.length - 1].time - stroke[0].time;
@@ -28747,9 +28782,9 @@ function boundingBox(strokes) {
28747
28782
  var minY = Infinity;
28748
28783
  var maxX = -Infinity;
28749
28784
  var maxY = -Infinity;
28750
- for (var _iterator2 = _createForOfIteratorHelperLoose$g(strokes), _step2; !(_step2 = _iterator2()).done;) {
28785
+ for (var _iterator2 = _createForOfIteratorHelperLoose$h(strokes), _step2; !(_step2 = _iterator2()).done;) {
28751
28786
  var stroke = _step2.value;
28752
- for (var _iterator3 = _createForOfIteratorHelperLoose$g(stroke), _step3; !(_step3 = _iterator3()).done;) {
28787
+ for (var _iterator3 = _createForOfIteratorHelperLoose$h(stroke), _step3; !(_step3 = _iterator3()).done;) {
28753
28788
  var p = _step3.value;
28754
28789
  if (p.x < minX) minX = p.x;
28755
28790
  if (p.y < minY) minY = p.y;
@@ -28768,7 +28803,7 @@ function boundingBox(strokes) {
28768
28803
  /** Sum of Euclidean distances between consecutive points within each stroke. */
28769
28804
  function totalPathLength(strokes) {
28770
28805
  var length = 0;
28771
- for (var _iterator4 = _createForOfIteratorHelperLoose$g(strokes), _step4; !(_step4 = _iterator4()).done;) {
28806
+ for (var _iterator4 = _createForOfIteratorHelperLoose$h(strokes), _step4; !(_step4 = _iterator4()).done;) {
28772
28807
  var stroke = _step4.value;
28773
28808
  for (var i = 1; i < stroke.length; i++) {
28774
28809
  var dx = stroke[i].x - stroke[i - 1].x;
@@ -28824,7 +28859,7 @@ function resampleStroke(stroke, step) {
28824
28859
  */
28825
28860
  function countDirectionChanges(strokes, step) {
28826
28861
  var totalTurning = 0;
28827
- for (var _iterator5 = _createForOfIteratorHelperLoose$g(strokes), _step5; !(_step5 = _iterator5()).done;) {
28862
+ for (var _iterator5 = _createForOfIteratorHelperLoose$h(strokes), _step5; !(_step5 = _iterator5()).done;) {
28828
28863
  var stroke = _step5.value;
28829
28864
  var pts = resampleStroke(stroke, step);
28830
28865
  var prevAngle = null;
@@ -28857,9 +28892,9 @@ function countZonesCovered(strokes, canvasWidth, canvasHeight, box) {
28857
28892
  var height = useCanvas ? canvasHeight : box.maxY - box.minY;
28858
28893
  if (width <= 0 || height <= 0) return 0;
28859
28894
  var occupied = new Set();
28860
- for (var _iterator6 = _createForOfIteratorHelperLoose$g(strokes), _step6; !(_step6 = _iterator6()).done;) {
28895
+ for (var _iterator6 = _createForOfIteratorHelperLoose$h(strokes), _step6; !(_step6 = _iterator6()).done;) {
28861
28896
  var stroke = _step6.value;
28862
- for (var _iterator7 = _createForOfIteratorHelperLoose$g(stroke), _step7; !(_step7 = _iterator7()).done;) {
28897
+ for (var _iterator7 = _createForOfIteratorHelperLoose$h(stroke), _step7; !(_step7 = _iterator7()).done;) {
28863
28898
  var p = _step7.value;
28864
28899
  var col = Math.min(2, Math.max(0, Math.floor((p.x - originX) / width * 3)));
28865
28900
  var row = Math.min(2, Math.max(0, Math.floor((p.y - originY) / height * 3)));
@@ -28950,9 +28985,9 @@ function evaluateSignatureValidity(strokes, canvasWidth, canvasHeight, config) {
28950
28985
  };
28951
28986
  }
28952
28987
 
28953
- function _createForOfIteratorHelperLoose$f(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$f(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
28954
- function _unsupportedIterableToArray$f(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$f(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$f(r, a) : void 0; } }
28955
- function _arrayLikeToArray$f(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
28988
+ function _createForOfIteratorHelperLoose$g(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$g(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
28989
+ function _unsupportedIterableToArray$g(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$g(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$g(r, a) : void 0; } }
28990
+ function _arrayLikeToArray$g(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
28956
28991
  /**
28957
28992
  * Off-screen, post-capture validation that proves a real frame renders at the
28958
28993
  * signature's trim start offset. This is the authoritative detector for the
@@ -29401,7 +29436,7 @@ function _seekProbes() {
29401
29436
  while (1) switch (_context4.prev = _context4.next) {
29402
29437
  case 0:
29403
29438
  probes = [];
29404
- _iterator = _createForOfIteratorHelperLoose$f(probeTimesMs);
29439
+ _iterator = _createForOfIteratorHelperLoose$g(probeTimesMs);
29405
29440
  case 1:
29406
29441
  if ((_step = _iterator()).done) {
29407
29442
  _context4.next = 4;
@@ -29471,7 +29506,7 @@ function _playbackProbes() {
29471
29506
  };
29472
29507
  var grab = function grab(mediaSec) {
29473
29508
  if (mediaSec * 1000 > maxMediaMs) maxMediaMs = mediaSec * 1000;
29474
- for (var _iterator2 = _createForOfIteratorHelperLoose$f(targets), _step2; !(_step2 = _iterator2()).done;) {
29509
+ for (var _iterator2 = _createForOfIteratorHelperLoose$g(targets), _step2; !(_step2 = _iterator2()).done;) {
29475
29510
  var t = _step2.value;
29476
29511
  if (t.result != null) continue;
29477
29512
  if (maxMediaMs + SEEK_TOLERANCE_MS < t.ms) continue;
@@ -29524,7 +29559,7 @@ function _playbackProbes() {
29524
29559
  video.play()["catch"](_finish);
29525
29560
  });
29526
29561
  case 2:
29527
- _iterator3 = _createForOfIteratorHelperLoose$f(targets);
29562
+ _iterator3 = _createForOfIteratorHelperLoose$g(targets);
29528
29563
  case 3:
29529
29564
  if ((_step3 = _iterator3()).done) {
29530
29565
  _context5.next = 6;
@@ -31236,9 +31271,9 @@ function reduceSignatureCapture(state, event) {
31236
31271
  }
31237
31272
  }
31238
31273
 
31239
- function _createForOfIteratorHelperLoose$e(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$e(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
31240
- function _unsupportedIterableToArray$e(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$e(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$e(r, a) : void 0; } }
31241
- function _arrayLikeToArray$e(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
31274
+ function _createForOfIteratorHelperLoose$f(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$f(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
31275
+ function _unsupportedIterableToArray$f(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$f(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$f(r, a) : void 0; } }
31276
+ function _arrayLikeToArray$f(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
31242
31277
  /**
31243
31278
  * Marks a microphone acquisition failure so `captureError` can type it.
31244
31279
  *
@@ -31341,7 +31376,7 @@ function createSignatureCaptureController(config) {
31341
31376
  var captureAudio = ((_config$captureAudio = config.captureAudio) != null ? _config$captureAudio : false) && mode === 'video';
31342
31377
  var microphone = null;
31343
31378
  var validityConfig = resolveSignatureValidityConfig(config.signatureValidity, config.minSignaturePadPoints);
31344
- var store = vanilla.createStore(function () {
31379
+ var store = createStore(function () {
31345
31380
  return createInitialSignatureCaptureState(mode);
31346
31381
  });
31347
31382
  var listeners = new Set();
@@ -31372,7 +31407,7 @@ function createSignatureCaptureController(config) {
31372
31407
  }
31373
31408
  function publish() {
31374
31409
  snapshot = store.getState();
31375
- for (var _iterator = _createForOfIteratorHelperLoose$e(listeners), _step; !(_step = _iterator()).done;) {
31410
+ for (var _iterator = _createForOfIteratorHelperLoose$f(listeners), _step; !(_step = _iterator()).done;) {
31376
31411
  var listener = _step.value;
31377
31412
  try {
31378
31413
  listener(snapshot);
@@ -32203,7 +32238,7 @@ function useSignatureCapture(controller) {
32203
32238
  }
32204
32239
 
32205
32240
  var _templateObject$j, _templateObject2$i, _templateObject3$f, _templateObject4$b, _templateObject5$b, _templateObject6$8;
32206
- var _excluded$a = ["device", "frameDecode"];
32241
+ var _excluded$b = ["device", "frameDecode"];
32207
32242
  var ASSUMED_TRIM_PADDING = {
32208
32243
  startMs: TRIM_PADDING_START_MS,
32209
32244
  endMs: TRIM_PADDING_END_MS
@@ -32435,7 +32470,7 @@ function trippedSignals(warning) {
32435
32470
  var _warning$signals = warning.signals,
32436
32471
  device = _warning$signals.device,
32437
32472
  frameDecode = _warning$signals.frameDecode,
32438
- top = _objectWithoutPropertiesLoose(_warning$signals, _excluded$a);
32473
+ top = _objectWithoutPropertiesLoose(_warning$signals, _excluded$b);
32439
32474
  var tripped = [].concat(_toConsumableArray(Object.entries(top).filter(function (_ref2) {
32440
32475
  var _ref3 = _slicedToArray(_ref2, 2),
32441
32476
  signal = _ref3[1];
@@ -33487,9 +33522,9 @@ function buildVideoIdCaptureArtifacts(artifact) {
33487
33522
  };
33488
33523
  }
33489
33524
 
33490
- function _createForOfIteratorHelperLoose$d(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$d(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
33491
- function _unsupportedIterableToArray$d(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$d(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$d(r, a) : void 0; } }
33492
- function _arrayLikeToArray$d(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
33525
+ function _createForOfIteratorHelperLoose$e(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$e(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
33526
+ function _unsupportedIterableToArray$e(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$e(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$e(r, a) : void 0; } }
33527
+ function _arrayLikeToArray$e(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
33493
33528
  var DEFAULT_VIDEO_ID_PREDICTION_THROTTLE_MS = 16;
33494
33529
  var RECENT_DETECTION_WINDOW_MS = 2000;
33495
33530
  var defaultVideoIdCaptureThresholds = {
@@ -33633,7 +33668,7 @@ function createVideoIdCaptureController(config) {
33633
33668
  var backImage = null;
33634
33669
  function update(patch) {
33635
33670
  state = _extends({}, state, patch);
33636
- for (var _iterator = _createForOfIteratorHelperLoose$d(listeners), _step; !(_step = _iterator()).done;) {
33671
+ for (var _iterator = _createForOfIteratorHelperLoose$e(listeners), _step; !(_step = _iterator()).done;) {
33637
33672
  var listener = _step.value;
33638
33673
  try {
33639
33674
  listener(state);
@@ -38463,9 +38498,9 @@ var highlightJson = function highlightJson(str) {
38463
38498
  };
38464
38499
 
38465
38500
  var _templateObject$3, _templateObject2$2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject0, _templateObject1, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22, _templateObject23, _templateObject24;
38466
- function _createForOfIteratorHelperLoose$c(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$c(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
38467
- function _unsupportedIterableToArray$c(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$c(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$c(r, a) : void 0; } }
38468
- function _arrayLikeToArray$c(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
38501
+ function _createForOfIteratorHelperLoose$d(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$d(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
38502
+ function _unsupportedIterableToArray$d(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$d(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$d(r, a) : void 0; } }
38503
+ function _arrayLikeToArray$d(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
38469
38504
  var SUBMISSION_SUCCESS_FALLBACKS = {
38470
38505
  completeText: 'Submission complete',
38471
38506
  responseReceivedText: 'Response received',
@@ -38541,7 +38576,7 @@ var quickFactConfig = [{
38541
38576
  */
38542
38577
  var readDocumentId = function readDocumentId(request, path) {
38543
38578
  var node = request;
38544
- for (var _iterator = _createForOfIteratorHelperLoose$c(path), _step; !(_step = _iterator()).done;) {
38579
+ for (var _iterator = _createForOfIteratorHelperLoose$d(path), _step; !(_step = _iterator()).done;) {
38545
38580
  var segment = _step.value;
38546
38581
  if (!node || typeof node !== 'object') return null;
38547
38582
  node = node[segment];
@@ -38652,10 +38687,10 @@ var ASSET_CONFIG = [{
38652
38687
  */
38653
38688
  var TRUNCATABLE_IMAGE_PATHS = [['customerData', 'idData', 'idImageFront'], ['customerData', 'idData', 'idImageBack'], ['customerData', 'idData', 'idBarcodeImage'], ['customerData', 'idData', 'idFrontIrImage'], ['customerData', 'idData', 'idBackIrImage'], ['customerData', 'idData', 'idFrontUvImage'], ['customerData', 'idData', 'idBackUvImage'], ['customerData', 'idData', 'videoIdImageFront'], ['customerData', 'idData', 'videoIdImageBack'], ['customerData', 'biometricData', 'selfie']];
38654
38689
  function truncateImagePaths(body) {
38655
- for (var _iterator2 = _createForOfIteratorHelperLoose$c(TRUNCATABLE_IMAGE_PATHS), _step2; !(_step2 = _iterator2()).done;) {
38690
+ for (var _iterator2 = _createForOfIteratorHelperLoose$d(TRUNCATABLE_IMAGE_PATHS), _step2; !(_step2 = _iterator2()).done;) {
38656
38691
  var path = _step2.value;
38657
38692
  var node = body;
38658
- for (var _iterator3 = _createForOfIteratorHelperLoose$c(path.slice(0, -1)), _step3; !(_step3 = _iterator3()).done;) {
38693
+ for (var _iterator3 = _createForOfIteratorHelperLoose$d(path.slice(0, -1)), _step3; !(_step3 = _iterator3()).done;) {
38659
38694
  var segment = _step3.value;
38660
38695
  if (!isRecord(node)) break;
38661
38696
  node = node[segment];
@@ -39054,6 +39089,847 @@ var JsonBlockHeader = styledComponents.styled.div(_templateObject22 || (_templat
39054
39089
  var JsonBlockActions = styledComponents.styled.div(_templateObject23 || (_templateObject23 = _taggedTemplateLiteralLoose(["\n display: flex;\n gap: 8px;\n"])));
39055
39090
  var ResponsePre = styledComponents.styled.pre(_templateObject24 || (_templateObject24 = _taggedTemplateLiteralLoose(["\n box-sizing: border-box;\n width: 100%;\n overflow: auto;\n padding: 18px;\n border-radius: 8px;\n background: #17211d;\n color: #dff9e9;\n font-size: 0.8rem;\n line-height: 1.55;\n text-align: left;\n"])));
39056
39091
 
39092
+ var _excluded$a = ["state", "size", "theme", "speed", "paused", "style", "aria-label"];
39093
+ function _createForOfIteratorHelperLoose$c(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$c(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
39094
+ function _unsupportedIterableToArray$c(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$c(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$c(r, a) : void 0; } }
39095
+ function _arrayLikeToArray$c(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
39096
+ function F(e, n) {
39097
+ var s = Math.sin(e * 12.9898 + n * 78.233) * 43758.5453;
39098
+ return s - Math.floor(s);
39099
+ }
39100
+ function st(e, n) {
39101
+ var s = Math.PI * (3 - Math.sqrt(5)),
39102
+ r = 1 - 2 * (e + 0.5) / n,
39103
+ t = Math.sqrt(1 - r * r),
39104
+ o = e * s;
39105
+ return [t * Math.cos(o), r, t * Math.sin(o)];
39106
+ }
39107
+ function ot(e, n) {
39108
+ return Math.atan2(Math.sin(e - n), Math.cos(e - n));
39109
+ }
39110
+ function q(e, n, s, r, t) {
39111
+ var o = Math.sin(n),
39112
+ c = Math.cos(n),
39113
+ a = Math.sin(e),
39114
+ i = Math.cos(e);
39115
+ return function (m, g, M) {
39116
+ var u = m * i + M * a,
39117
+ h = -m * a + M * i,
39118
+ b = g * c - h * o,
39119
+ x = g * o + h * c;
39120
+ return [s + u * t, r - b * t, x];
39121
+ };
39122
+ }
39123
+ function _(e, n, s, r) {
39124
+ if (r === void 0) {
39125
+ r = 0.3;
39126
+ }
39127
+ n.sort(function (t, o) {
39128
+ return t.z - o.z;
39129
+ });
39130
+ for (var _iterator = _createForOfIteratorHelperLoose$c(n), _step; !(_step = _iterator()).done;) {
39131
+ var _t$a;
39132
+ var t = _step.value;
39133
+ var o = (_t$a = t.a) != null ? _t$a : 1;
39134
+ if (o < 0.02) continue;
39135
+ var c = Math.min(1, Math.max(0, t.white)),
39136
+ a = Math.round((s ? 1 - c : c) * 255);
39137
+ e.fillStyle = "rgba(" + a + "," + a + "," + a + "," + o + ")", e.beginPath(), e.arc(t.x, t.y, Math.max(r, t.r), 0, Math.PI * 2), e.fill();
39138
+ }
39139
+ }
39140
+ function $(e, n) {
39141
+ return Math.pow(e / 300, n);
39142
+ }
39143
+ function et(e, n, s, r) {
39144
+ var t = 2 * n * s + r,
39145
+ o = e % t,
39146
+ c = new Array(n).fill(0);
39147
+ var a = -1;
39148
+ if (o < 2 * n * s) {
39149
+ var i = Math.floor(o / s),
39150
+ m = (o - i * s) / s,
39151
+ M = 1 - Math.pow(1 - Math.min(1, m / 0.7), 3);
39152
+ if (i < n) {
39153
+ for (var u = 0; u < i; u++) c[u] = 1;
39154
+ c[i] = M, a = i;
39155
+ } else {
39156
+ var _u = 2 * n - 1 - i;
39157
+ for (var h = 0; h < _u; h++) c[h] = 1;
39158
+ c[_u] = 1 - M, a = _u;
39159
+ }
39160
+ }
39161
+ return {
39162
+ amount: c,
39163
+ active: a
39164
+ };
39165
+ }
39166
+ function ct(e, n, s) {
39167
+ var _e = _slicedToArray(e, 3),
39168
+ r = _e[0],
39169
+ t = _e[1],
39170
+ o = _e[2],
39171
+ c = false;
39172
+ for (var a = 0; a < n.length; a++) {
39173
+ if (s.amount[a] <= 0) continue;
39174
+ var i = n[a],
39175
+ m = i.axis === 0 ? r : i.axis === 1 ? t : o;
39176
+ if (m < i.lo || m >= i.hi) continue;
39177
+ a === s.active && (c = true);
39178
+ var g = i.ang * s.amount[a],
39179
+ M = Math.cos(g),
39180
+ u = Math.sin(g);
39181
+ if (i.axis === 0) {
39182
+ var h = t * M - o * u;
39183
+ o = t * u + o * M, t = h;
39184
+ } else if (i.axis === 1) {
39185
+ var _h = r * M + o * u;
39186
+ o = -r * u + o * M, r = _h;
39187
+ } else {
39188
+ var _h2 = r * M - t * u;
39189
+ t = r * u + t * M, r = _h2;
39190
+ }
39191
+ }
39192
+ return [r, t, o, c];
39193
+ }
39194
+ function at(e) {
39195
+ var n = [];
39196
+ for (var s = 0; s < e; s++) {
39197
+ var r = Math.min(2, Math.floor(F(s, 2.3) * 3)),
39198
+ t = -1 + 0.5 * Math.min(3, Math.floor(F(s, 5.9) * 4)),
39199
+ o = F(s, 7.7) < 0.5 ? 1 : -1;
39200
+ n.push({
39201
+ axis: r,
39202
+ lo: t,
39203
+ hi: t + 0.5,
39204
+ ang: o * Math.PI / 2
39205
+ });
39206
+ }
39207
+ return n;
39208
+ }
39209
+ var rt = function rt(e, n, s, r, t) {
39210
+ var _t$scanMul, _t$rsPow, _t$dimBase, _t$latRings, _t$lonDensity;
39211
+ var c = n / 2,
39212
+ a = n / 2,
39213
+ i = n / 2 * 0.82,
39214
+ m = 0.4 + 0.06 * Math.sin(s * 0.35),
39215
+ g = q(s * 0.5, m, c, a, i),
39216
+ M = s * (0.5 + (1.7 - 0.5) * ((_t$scanMul = t.scanMul) != null ? _t$scanMul : 1)),
39217
+ u = $(n, (_t$rsPow = t.rsPow) != null ? _t$rsPow : 0.6),
39218
+ h = (_t$dimBase = t.dimBase) != null ? _t$dimBase : 1,
39219
+ b = [],
39220
+ x = (_t$latRings = t.latRings) != null ? _t$latRings : 17,
39221
+ I = (_t$lonDensity = t.lonDensity) != null ? _t$lonDensity : 44;
39222
+ for (var P = 0; P <= x; P++) {
39223
+ var y = -Math.PI / 2 + P / x * Math.PI,
39224
+ D = Math.cos(y),
39225
+ w = Math.sin(y),
39226
+ k = Math.max(1, Math.round(Math.abs(D) * I));
39227
+ for (var v = 0; v < k; v++) {
39228
+ var _t$rBase, _t$rDepth, _t$rBoost, _t$inkFar, _t$inkSpan;
39229
+ var R = v / k * 2 * Math.PI,
39230
+ _g = g(D * Math.cos(R), w, D * Math.sin(R)),
39231
+ _g2 = _slicedToArray(_g, 3),
39232
+ p = _g2[0],
39233
+ d = _g2[1],
39234
+ l = _g2[2],
39235
+ f = (l + 1) / 2,
39236
+ S = ot(R + s * 0.5, M),
39237
+ L = Math.exp(-(S * S) / 0.18) * Math.max(0, l);
39238
+ b.push({
39239
+ x: p,
39240
+ y: d,
39241
+ z: l,
39242
+ r: (((_t$rBase = t.rBase) != null ? _t$rBase : 0.6) + ((_t$rDepth = t.rDepth) != null ? _t$rDepth : 1.7) * f + ((_t$rBoost = t.rBoost) != null ? _t$rBoost : 1) * L) * u,
39243
+ white: ((_t$inkFar = t.inkFar) != null ? _t$inkFar : 0.62) - ((_t$inkSpan = t.inkSpan) != null ? _t$inkSpan : 0.54) * f,
39244
+ // dimBase < 1 fades un-scanned dots so the meridian reads clearly
39245
+ a: h + (1 - h) * Math.min(1, L)
39246
+ });
39247
+ }
39248
+ }
39249
+ _(e, b, r, t.rMin);
39250
+ },
39251
+ it = function it(e, n, s, r, t) {
39252
+ var _t$rsPow2, _t$moveCount, _t$latRings2, _t$lonDensity2;
39253
+ var o = n / 2,
39254
+ c = n / 2,
39255
+ a = n / 2 * 0.82,
39256
+ i = q(s * 0.55, 0.35 + 0.1 * Math.sin(s * 0.9), o, c, a),
39257
+ m = $(n, (_t$rsPow2 = t.rsPow) != null ? _t$rsPow2 : 0.6),
39258
+ g = (_t$moveCount = t.moveCount) != null ? _t$moveCount : 14,
39259
+ M = at(g),
39260
+ u = et(s, g, 0.42, 1.2),
39261
+ h = [],
39262
+ b = (_t$latRings2 = t.latRings) != null ? _t$latRings2 : 15,
39263
+ x = (_t$lonDensity2 = t.lonDensity) != null ? _t$lonDensity2 : 40;
39264
+ for (var I = 0; I <= b; I++) {
39265
+ var P = -Math.PI / 2 + I / b * Math.PI,
39266
+ y = Math.cos(P),
39267
+ D = Math.sin(P),
39268
+ w = Math.max(1, Math.round(Math.abs(y) * x));
39269
+ for (var k = 0; k < w; k++) {
39270
+ var _t$rBase2, _t$rDepth2, _t$rActive, _t$inkFar2, _t$inkSpan2;
39271
+ var v = k / w * 2 * Math.PI,
39272
+ _ct = ct([y * Math.cos(v), D, y * Math.sin(v)], M, u),
39273
+ _ct2 = _slicedToArray(_ct, 4),
39274
+ R = _ct2[0],
39275
+ p = _ct2[1],
39276
+ d = _ct2[2],
39277
+ l = _ct2[3],
39278
+ _i = i(R, p, d),
39279
+ _i2 = _slicedToArray(_i, 3),
39280
+ f = _i2[0],
39281
+ S = _i2[1],
39282
+ L = _i2[2],
39283
+ A = (L + 1) / 2;
39284
+ h.push({
39285
+ x: f,
39286
+ y: S,
39287
+ z: L,
39288
+ r: (((_t$rBase2 = t.rBase) != null ? _t$rBase2 : 0.6) + ((_t$rDepth2 = t.rDepth) != null ? _t$rDepth2 : 1.7) * A + (l ? (_t$rActive = t.rActive) != null ? _t$rActive : 0.3 : 0)) * m,
39289
+ white: ((_t$inkFar2 = t.inkFar) != null ? _t$inkFar2 : 0.62) - ((_t$inkSpan2 = t.inkSpan) != null ? _t$inkSpan2 : 0.54) * A - (l ? 0.14 : 0)
39290
+ });
39291
+ }
39292
+ }
39293
+ _(e, h, r, t.rMin);
39294
+ },
39295
+ ht = function ht(e, n, s, r, t) {
39296
+ var _t$rsPow3, _t$rings, _t$lonDensity3;
39297
+ var o = n / 2,
39298
+ c = n / 2,
39299
+ a = n / 2 * 0.874,
39300
+ i = q(s * 0.18, 0.38, o, c, 1),
39301
+ m = $(n, (_t$rsPow3 = t.rsPow) != null ? _t$rsPow3 : 0.6),
39302
+ g = [],
39303
+ M = (_t$rings = t.rings) != null ? _t$rings : 15,
39304
+ u = (_t$lonDensity3 = t.lonDensity) != null ? _t$lonDensity3 : 40;
39305
+ for (var h = 0; h <= M; h++) {
39306
+ var b = -Math.PI / 2 + h / M * Math.PI,
39307
+ x = Math.cos(b),
39308
+ I = Math.sin(b),
39309
+ P = 0.62 * Math.sin(s * 2.1 - h * 0.52) + 0.38 * Math.sin(s * 1.27 + h * 0.83),
39310
+ y = a * (0.88 + 0.105 * P),
39311
+ D = Math.max(1, Math.round(Math.abs(x) * u));
39312
+ for (var w = 0; w < D; w++) {
39313
+ var _t$rBase3, _t$rDepth3;
39314
+ var k = w / D * 2 * Math.PI,
39315
+ _i3 = i(x * Math.cos(k) * y, I * y, x * Math.sin(k) * y),
39316
+ _i4 = _slicedToArray(_i3, 3),
39317
+ v = _i4[0],
39318
+ R = _i4[1],
39319
+ p = _i4[2],
39320
+ d = (p / a + 1) / 2,
39321
+ l = Math.max(0, P);
39322
+ g.push({
39323
+ x: v,
39324
+ y: R,
39325
+ z: p,
39326
+ r: (((_t$rBase3 = t.rBase) != null ? _t$rBase3 : 0.6) + ((_t$rDepth3 = t.rDepth) != null ? _t$rDepth3 : 1.7) * d) * (1 + 0.4 * l) * m,
39327
+ white: 0.66 - 0.56 * d - 0.1 * l
39328
+ });
39329
+ }
39330
+ }
39331
+ _(e, g, r, t.rMin);
39332
+ };
39333
+ function lt(e) {
39334
+ return e * e * (3 - 2 * e);
39335
+ }
39336
+ function Q(e) {
39337
+ var n = e.length,
39338
+ s = [];
39339
+ var r = 0;
39340
+ for (var t = 0; t < n; t++) {
39341
+ var o = e[t],
39342
+ c = e[(t + 1) % n],
39343
+ a = Math.hypot(c[0] - o[0], c[1] - o[1]);
39344
+ s.push(a), r += a;
39345
+ }
39346
+ return function (t) {
39347
+ var o = t * r,
39348
+ c = 0;
39349
+ for (; o > s[c] && c < n - 1;) o -= s[c], c++;
39350
+ var a = e[c],
39351
+ i = e[(c + 1) % n],
39352
+ m = s[c] ? Math.min(1, o / s[c]) : 0;
39353
+ return [a[0] + (i[0] - a[0]) * m, a[1] + (i[1] - a[1]) * m];
39354
+ };
39355
+ }
39356
+ var ut = function ut(e) {
39357
+ var n = -Math.PI / 2 + e * 2 * Math.PI;
39358
+ return [Math.cos(n) * 0.24, Math.sin(n) * 0.24];
39359
+ },
39360
+ Mt = Q([[0, -0.26], [0.24, 0.16], [-0.24, 0.16]]),
39361
+ pt = Q([[0, -0.2], [0.2, -0.2], [0.2, 0.2], [-0.2, 0.2], [-0.2, -0.2]]),
39362
+ Y = [ut, Mt, pt];
39363
+ function dt(e) {
39364
+ return Math.max(6, Math.round(34 * e));
39365
+ }
39366
+ var U = 1.4,
39367
+ J = 0.9,
39368
+ K = U + J,
39369
+ ft = function ft(e, n, s, r, t) {
39370
+ var _t$spread, _t$iconD, _t$rDot;
39371
+ var o = Y.length,
39372
+ c = s % (K * o),
39373
+ a = Math.floor(c / K),
39374
+ i = c - a * K,
39375
+ m = i > U ? lt((i - U) / J) : 0,
39376
+ g = (_t$spread = t.spread) != null ? _t$spread : 1,
39377
+ M = Y[a],
39378
+ u = Y[(a + 1) % o],
39379
+ h = 160,
39380
+ b = [];
39381
+ for (var p = 0; p < h; p++) {
39382
+ var d = p / h,
39383
+ l = M(d),
39384
+ f = u(d);
39385
+ b.push([(l[0] + (f[0] - l[0]) * m) * g, (l[1] + (f[1] - l[1]) * m) * g]);
39386
+ }
39387
+ var x = [];
39388
+ var I = 0;
39389
+ for (var _p = 0; _p < h; _p++) {
39390
+ var _d = b[_p],
39391
+ _l = b[(_p + 1) % h],
39392
+ _f = Math.hypot(_l[0] - _d[0], _l[1] - _d[1]);
39393
+ x.push(_f), I += _f;
39394
+ }
39395
+ var P = dt((_t$iconD = t.iconD) != null ? _t$iconD : 1),
39396
+ y = ((_t$rDot = t.rDot) != null ? _t$rDot : 0.021) * 1.35 * g,
39397
+ D = 1 + 0.02 * Math.sin(i * 3.1),
39398
+ w = [],
39399
+ k = n / 2;
39400
+ var v = 0,
39401
+ R = 0;
39402
+ for (var _p2 = 0; _p2 < P; _p2++) {
39403
+ var _d2 = _p2 / P * I;
39404
+ for (; R + x[v] < _d2 && v < h - 1;) R += x[v], v++;
39405
+ var _l2 = b[v],
39406
+ _f2 = b[(v + 1) % h],
39407
+ S = x[v] ? Math.min(1, (_d2 - R) / x[v]) : 0,
39408
+ L = (_l2[0] + (_f2[0] - _l2[0]) * S) * D,
39409
+ A = (_l2[1] + (_f2[1] - _l2[1]) * S) * D;
39410
+ w.push({
39411
+ x: k + L * n,
39412
+ y: k + A * n,
39413
+ z: 0,
39414
+ r: Math.max(0.35, y * n),
39415
+ white: 0.1
39416
+ });
39417
+ }
39418
+ _(e, w, r, t.rMin);
39419
+ },
39420
+ mt = function mt(e, n, s, r, t) {
39421
+ var _t$rsPow4, _t$orbitN, _t$ghostN, _t$particles;
39422
+ var o = n / 2,
39423
+ c = n / 2,
39424
+ a = n / 2 * 0.82,
39425
+ i = q(s * 0.12, 0.3, o, c, 1),
39426
+ m = $(n, (_t$rsPow4 = t.rsPow) != null ? _t$rsPow4 : 0.6),
39427
+ g = [],
39428
+ M = (_t$orbitN = t.orbitN) != null ? _t$orbitN : 12,
39429
+ u = (_t$ghostN = t.ghostN) != null ? _t$ghostN : 40,
39430
+ h = (_t$particles = t.particles) != null ? _t$particles : 3;
39431
+ for (var b = 0; b < M; b++) {
39432
+ var x = F(b, 1.7),
39433
+ I = F(b, 5.2),
39434
+ P = F(b, 8.9),
39435
+ y = a * (0.45 + 0.52 * x),
39436
+ D = x * 2 * Math.PI,
39437
+ w = Math.acos(2 * I - 1),
39438
+ k = Math.sin(w) * Math.cos(D),
39439
+ v = Math.cos(w),
39440
+ R = Math.sin(w) * Math.sin(D);
39441
+ var p = -v,
39442
+ d = k;
39443
+ var l = 0,
39444
+ f = Math.max(1e-6, Math.sqrt(p * p + d * d));
39445
+ p /= f, d /= f;
39446
+ var S = v * l - R * d,
39447
+ L = R * p - k * l,
39448
+ A = k * d - v * p,
39449
+ B = (0.25 + 0.55 * P) * (P > 0.5 ? 1 : -1);
39450
+ for (var C = 0; C < u; C++) {
39451
+ var _t$ghostR, _t$ghostA;
39452
+ var E = C / u * 2 * Math.PI,
39453
+ _i5 = i((p * Math.cos(E) + S * Math.sin(E)) * y, (d * Math.cos(E) + L * Math.sin(E)) * y, (l * Math.cos(E) + A * Math.sin(E)) * y),
39454
+ _i6 = _slicedToArray(_i5, 3),
39455
+ T = _i6[0],
39456
+ z = _i6[1],
39457
+ N = _i6[2],
39458
+ O = (N / y + 1) / 2;
39459
+ g.push({
39460
+ x: T,
39461
+ y: z,
39462
+ z: N,
39463
+ r: ((_t$ghostR = t.ghostR) != null ? _t$ghostR : 0.9) * m,
39464
+ white: 0.72,
39465
+ a: ((_t$ghostA = t.ghostA) != null ? _t$ghostA : 0.5) * (0.4 + 0.6 * O)
39466
+ });
39467
+ }
39468
+ for (var _C = 0; _C < h; _C++) {
39469
+ var _t$partR, _t$partRDepth;
39470
+ var _E = s * B + _C / h * 2 * Math.PI + I * 6,
39471
+ _i7 = i((p * Math.cos(_E) + S * Math.sin(_E)) * y, (d * Math.cos(_E) + L * Math.sin(_E)) * y, (l * Math.cos(_E) + A * Math.sin(_E)) * y),
39472
+ _i8 = _slicedToArray(_i7, 3),
39473
+ _T = _i8[0],
39474
+ _z = _i8[1],
39475
+ _N = _i8[2],
39476
+ _O = (_N / y + 1) / 2;
39477
+ g.push({
39478
+ x: _T,
39479
+ y: _z,
39480
+ z: _N,
39481
+ r: (((_t$partR = t.partR) != null ? _t$partR : 1.2) + ((_t$partRDepth = t.partRDepth) != null ? _t$partRDepth : 1.6) * _O) * m,
39482
+ white: 0.3 - 0.22 * _O
39483
+ });
39484
+ }
39485
+ }
39486
+ _(e, g, r, t.rMin);
39487
+ },
39488
+ gt = function gt(e, n, s, r, t) {
39489
+ var _t$spin, _t$rsPow5, _t$ghostN2, _t$lanes, _t$segs, _t$bandMul;
39490
+ var o = n / 2,
39491
+ c = n / 2,
39492
+ a = n / 2 * 0.78,
39493
+ i = (_t$spin = t.spin) != null ? _t$spin : 1,
39494
+ m = q(s * 0.1 * i, 0.3, o, c, 1),
39495
+ g = $(n, (_t$rsPow5 = t.rsPow) != null ? _t$rsPow5 : 0.6),
39496
+ M = [],
39497
+ u = (_t$ghostN2 = t.ghostN) != null ? _t$ghostN2 : 150;
39498
+ for (var f = 0; f < u; f++) {
39499
+ var S = st(f, u),
39500
+ _m = m(S[0] * a, S[1] * a, S[2] * a),
39501
+ _m2 = _slicedToArray(_m, 3),
39502
+ L = _m2[0],
39503
+ A = _m2[1],
39504
+ B = _m2[2],
39505
+ C = (B / a + 1) / 2;
39506
+ M.push({
39507
+ x: L,
39508
+ y: A,
39509
+ z: B,
39510
+ r: 0.8 * g,
39511
+ white: 0.78,
39512
+ a: 0.1 + 0.22 * C
39513
+ });
39514
+ }
39515
+ var h = s * 0.24 * i,
39516
+ b = 0.55 + 0.3 * Math.sin(s * 0.18) * i,
39517
+ x = Math.cos(h),
39518
+ I = 0,
39519
+ P = Math.sin(h),
39520
+ y = -P * Math.sin(b),
39521
+ D = Math.cos(b),
39522
+ w = x * Math.sin(b),
39523
+ k = I * w - P * D,
39524
+ v = P * y - x * w,
39525
+ R = x * D - I * y,
39526
+ p = (_t$lanes = t.lanes) != null ? _t$lanes : 5,
39527
+ d = (_t$segs = t.segs) != null ? _t$segs : 88,
39528
+ l = Math.max(1, Math.round(p * ((_t$bandMul = t.bandMul) != null ? _t$bandMul : 1)));
39529
+ for (var _f3 = 0; _f3 < l; _f3++) {
39530
+ var _S = (_f3 - (l - 1) / 2) * 0.075,
39531
+ _L = Math.abs(_f3 - (l - 1) / 2) / Math.max(1, (l - 1) / 2);
39532
+ for (var _A = 0; _A < d; _A++) {
39533
+ var _t$wobMul, _t$rBase4, _t$rDepth4;
39534
+ var _B = _A / d * 2 * Math.PI,
39535
+ _C2 = (0.16 * Math.sin(_B * 3 - s * 1.7 + _f3 * 0.22) + 0.07 * Math.sin(_B * 5 + s * 1.1)) * ((_t$wobMul = t.wobMul) != null ? _t$wobMul : 1),
39536
+ E = _S + _C2,
39537
+ T = x * Math.cos(_B) + y * Math.sin(_B) + k * E,
39538
+ z = I * Math.cos(_B) + D * Math.sin(_B) + v * E,
39539
+ N = P * Math.cos(_B) + w * Math.sin(_B) + R * E,
39540
+ O = Math.sqrt(T * T + z * z + N * N),
39541
+ _m3 = m(T / O * a, z / O * a, N / O * a),
39542
+ _m4 = _slicedToArray(_m3, 3),
39543
+ X = _m4[0],
39544
+ Z = _m4[1],
39545
+ W = _m4[2],
39546
+ j = (W / a + 1) / 2;
39547
+ M.push({
39548
+ x: X,
39549
+ y: Z,
39550
+ z: W,
39551
+ r: (((_t$rBase4 = t.rBase) != null ? _t$rBase4 : 1.1) + ((_t$rDepth4 = t.rDepth) != null ? _t$rDepth4 : 1.7) * j) * (1 - 0.25 * _L) * g,
39552
+ white: 0.52 - 0.44 * j + 0.18 * _L,
39553
+ a: 0.4 + 0.6 * j
39554
+ });
39555
+ }
39556
+ }
39557
+ _(e, M, r, t.rMin);
39558
+ },
39559
+ bt = {
39560
+ orbits: mt,
39561
+ globe: rt,
39562
+ rubik: it,
39563
+ wave: ht,
39564
+ ribbon: gt,
39565
+ morph: ft
39566
+ },
39567
+ yt = [["latRings", "lonDensity"], ["rings", "lonDensity"], ["lanes", "segs"]],
39568
+ xt = ["orbitN", "ghostN"],
39569
+ vt = ["iconD"],
39570
+ wt = ["rBase", "rDepth", "rActive", "rDot", "ghostR", "partR", "partRDepth"];
39571
+ function kt(e, n) {
39572
+ var s = _extends({}, e),
39573
+ r = /* @__PURE__ */new Set(),
39574
+ t = Math.sqrt(n);
39575
+ for (var _iterator2 = _createForOfIteratorHelperLoose$c(yt), _step2; !(_step2 = _iterator2()).done;) {
39576
+ var _step2$value = _slicedToArray(_step2.value, 2),
39577
+ o = _step2$value[0],
39578
+ c = _step2$value[1];
39579
+ var a = s[o],
39580
+ i = s[c];
39581
+ a != null && i != null && !r.has(o) && !r.has(c) && (s[o] = Math.max(2, Math.round(a * t)), s[c] = Math.max(2, Math.round(i * t)), r.add(o), r.add(c));
39582
+ }
39583
+ for (var _iterator3 = _createForOfIteratorHelperLoose$c(xt), _step3; !(_step3 = _iterator3()).done;) {
39584
+ var _o = _step3.value;
39585
+ var _c = s[_o];
39586
+ _c != null && !r.has(_o) && (s[_o] = Math.max(1, Math.round(_c * n)));
39587
+ }
39588
+ for (var _iterator4 = _createForOfIteratorHelperLoose$c(vt), _step4; !(_step4 = _iterator4()).done;) {
39589
+ var _o2 = _step4.value;
39590
+ var _c2 = s[_o2];
39591
+ _c2 != null && (s[_o2] = Math.max(0.02, _c2 * n));
39592
+ }
39593
+ return s;
39594
+ }
39595
+ function Pt(e, n) {
39596
+ var _s$rSizeMul;
39597
+ var s = _extends({}, e);
39598
+ for (var _iterator5 = _createForOfIteratorHelperLoose$c(wt), _step5; !(_step5 = _iterator5()).done;) {
39599
+ var r = _step5.value;
39600
+ var t = s[r];
39601
+ t != null && (s[r] = t * n);
39602
+ }
39603
+ return s.rSizeMul = ((_s$rSizeMul = s.rSizeMul) != null ? _s$rSizeMul : 1) * n, s;
39604
+ }
39605
+ var Dt = {
39606
+ globe: {
39607
+ latRings: 17,
39608
+ lonDensity: 44,
39609
+ rBase: 0.6,
39610
+ rDepth: 1.7,
39611
+ rBoost: 1,
39612
+ inkFar: 0.62,
39613
+ inkSpan: 0.54,
39614
+ rsPow: 0.6,
39615
+ rMin: 0.3
39616
+ },
39617
+ orbits: {
39618
+ orbitN: 12,
39619
+ ghostN: 40,
39620
+ ghostR: 0.9,
39621
+ ghostA: 0.5,
39622
+ particles: 3,
39623
+ partR: 1.2,
39624
+ partRDepth: 1.6,
39625
+ rsPow: 0.6,
39626
+ rMin: 0.3
39627
+ },
39628
+ rubik: {
39629
+ latRings: 15,
39630
+ lonDensity: 40,
39631
+ moveCount: 14,
39632
+ rBase: 0.6,
39633
+ rDepth: 1.7,
39634
+ rActive: 0.3,
39635
+ inkFar: 0.62,
39636
+ inkSpan: 0.54,
39637
+ rsPow: 0.6,
39638
+ rMin: 0.3
39639
+ },
39640
+ wave: {
39641
+ rings: 15,
39642
+ lonDensity: 40,
39643
+ rBase: 0.6,
39644
+ rDepth: 1.7,
39645
+ rsPow: 0.6,
39646
+ rMin: 0.3
39647
+ },
39648
+ ribbon: {
39649
+ lanes: 5,
39650
+ segs: 88,
39651
+ ghostN: 150,
39652
+ rBase: 1.1,
39653
+ rDepth: 1.7,
39654
+ rsPow: 0.6,
39655
+ rMin: 0.3
39656
+ },
39657
+ morph: {
39658
+ rDot: 0.021,
39659
+ iconD: 1,
39660
+ rMin: 0.25
39661
+ }
39662
+ },
39663
+ Rt = {
39664
+ working: "orbits",
39665
+ searching: "globe",
39666
+ solving: "rubik",
39667
+ listening: "wave",
39668
+ composing: "ribbon",
39669
+ shaping: "morph"
39670
+ },
39671
+ St = {
39672
+ orbits: {
39673
+ 64: {
39674
+ speed: 1.885,
39675
+ count: 1,
39676
+ size: 1
39677
+ },
39678
+ 20: {
39679
+ speed: 3.9,
39680
+ count: 0.238,
39681
+ size: 2.4
39682
+ }
39683
+ },
39684
+ globe: {
39685
+ 64: {
39686
+ speed: 2.015,
39687
+ count: 0.42,
39688
+ size: 1.15,
39689
+ extra: {
39690
+ scanMul: 4.08,
39691
+ dimBase: 0.45
39692
+ }
39693
+ },
39694
+ 20: {
39695
+ speed: 2.665,
39696
+ count: 0.105,
39697
+ size: 1.75,
39698
+ extra: {
39699
+ scanMul: 4.335,
39700
+ dimBase: 0.45
39701
+ }
39702
+ }
39703
+ },
39704
+ rubik: {
39705
+ 64: {
39706
+ speed: 1.82,
39707
+ count: 0.35,
39708
+ size: 1.05
39709
+ },
39710
+ 20: {
39711
+ speed: 1.95,
39712
+ count: 0.088,
39713
+ size: 1.9
39714
+ }
39715
+ },
39716
+ wave: {
39717
+ 64: {
39718
+ speed: 4.388,
39719
+ count: 0.341,
39720
+ size: 1
39721
+ },
39722
+ 20: {
39723
+ speed: 3.998,
39724
+ count: 0.105,
39725
+ size: 1.6
39726
+ }
39727
+ },
39728
+ ribbon: {
39729
+ 64: {
39730
+ speed: 2.34,
39731
+ count: 0.25,
39732
+ size: 0.85,
39733
+ extra: {
39734
+ spin: 0,
39735
+ bandMul: 3.9,
39736
+ wobMul: 1
39737
+ }
39738
+ },
39739
+ 20: {
39740
+ speed: 3.12,
39741
+ count: 0.051,
39742
+ size: 1.073,
39743
+ extra: {
39744
+ spin: 0,
39745
+ bandMul: 4.94,
39746
+ wobMul: 1
39747
+ }
39748
+ }
39749
+ },
39750
+ morph: {
39751
+ 64: {
39752
+ speed: 2.405,
39753
+ count: 0.54,
39754
+ size: 0.395,
39755
+ extra: {
39756
+ spread: 1.45
39757
+ }
39758
+ },
39759
+ 20: {
39760
+ speed: 2.08,
39761
+ count: 0.53,
39762
+ size: 1.011,
39763
+ extra: {
39764
+ spread: 1.45
39765
+ }
39766
+ }
39767
+ }
39768
+ },
39769
+ H = /* @__PURE__ */new Map();
39770
+ function It(e, n) {
39771
+ var s = e + "-" + n,
39772
+ r = H.get(s);
39773
+ if (r) return r;
39774
+ var t = Rt[e],
39775
+ o = St[t][n];
39776
+ var c = _extends({}, Dt[t]);
39777
+ o.count !== 1 && (c = kt(c, o.count)), o.size !== 1 && (c = Pt(c, o.size)), o.extra && (c = _extends({}, c, o.extra));
39778
+ var a = {
39779
+ mode: t,
39780
+ speed: o.speed,
39781
+ opts: c
39782
+ };
39783
+ return H.set(s, a), a;
39784
+ }
39785
+ function Et(e) {
39786
+ var n = e;
39787
+ for (; n;) {
39788
+ var s = n.getAttribute("data-theme");
39789
+ if (s === "dark") return true;
39790
+ if (s === "light") return false;
39791
+ if (n.classList.contains("dark")) return true;
39792
+ if (n.classList.contains("light")) return false;
39793
+ n = n.parentElement;
39794
+ }
39795
+ return null;
39796
+ }
39797
+ function Lt() {
39798
+ return typeof matchMedia > "u" || matchMedia("(prefers-color-scheme: dark)").matches;
39799
+ }
39800
+ function At(e, n) {
39801
+ var _V = React.useState(true),
39802
+ _V2 = _slicedToArray(_V, 2),
39803
+ s = _V2[0],
39804
+ r = _V2[1];
39805
+ return React.useEffect(function () {
39806
+ if (e === "dark") {
39807
+ r(true);
39808
+ return;
39809
+ }
39810
+ if (e === "light") {
39811
+ r(false);
39812
+ return;
39813
+ }
39814
+ var t = function t() {
39815
+ var i = Et(n.current);
39816
+ r(i != null ? i : Lt());
39817
+ };
39818
+ t();
39819
+ var o = typeof matchMedia < "u" ? matchMedia("(prefers-color-scheme: dark)") : null,
39820
+ c = function c() {
39821
+ return t();
39822
+ };
39823
+ o == null || o.addEventListener("change", c);
39824
+ var a = null;
39825
+ return typeof MutationObserver < "u" && n.current && (a = new MutationObserver(t), a.observe(document.documentElement, {
39826
+ attributes: true,
39827
+ attributeFilter: ["class", "data-theme"],
39828
+ subtree: true
39829
+ })), function () {
39830
+ o == null || o.removeEventListener("change", c), a == null || a.disconnect();
39831
+ };
39832
+ }, [e, n]), s;
39833
+ }
39834
+ function Bt() {
39835
+ var _V3 = React.useState(false),
39836
+ _V4 = _slicedToArray(_V3, 2),
39837
+ e = _V4[0],
39838
+ n = _V4[1];
39839
+ return React.useEffect(function () {
39840
+ if (typeof matchMedia > "u") return;
39841
+ var s = matchMedia("(prefers-reduced-motion: reduce)");
39842
+ n(s.matches);
39843
+ var r = function r(t) {
39844
+ return n(t.matches);
39845
+ };
39846
+ return s.addEventListener("change", r), function () {
39847
+ return s.removeEventListener("change", r);
39848
+ };
39849
+ }, []), e;
39850
+ }
39851
+ var Ct = {
39852
+ working: "Working…",
39853
+ searching: "Searching…",
39854
+ solving: "Solving…",
39855
+ listening: "Listening…",
39856
+ composing: "Composing…",
39857
+ shaping: "Shaping…"
39858
+ };
39859
+ function Tt(_ref) {
39860
+ var _ref$state = _ref.state,
39861
+ e = _ref$state === void 0 ? "working" : _ref$state,
39862
+ _ref$size = _ref.size,
39863
+ n = _ref$size === void 0 ? 64 : _ref$size,
39864
+ _ref$theme = _ref.theme,
39865
+ s = _ref$theme === void 0 ? "auto" : _ref$theme,
39866
+ _ref$speed = _ref.speed,
39867
+ r = _ref$speed === void 0 ? 1 : _ref$speed,
39868
+ _ref$paused = _ref.paused,
39869
+ t = _ref$paused === void 0 ? false : _ref$paused,
39870
+ o = _ref.style,
39871
+ c = _ref["aria-label"],
39872
+ a = _objectWithoutPropertiesLoose(_ref, _excluded$a);
39873
+ var i = React.useRef(null),
39874
+ m = At(s, i),
39875
+ g = Bt();
39876
+ return React.useEffect(function () {
39877
+ var M = i.current;
39878
+ if (!M) return;
39879
+ var u = Math.min(2, typeof devicePixelRatio < "u" && devicePixelRatio || 1);
39880
+ M.width = Math.round(n * u), M.height = Math.round(n * u);
39881
+ var h = M.getContext("2d");
39882
+ if (!h) return;
39883
+ var _It = It(e, n),
39884
+ b = _It.mode,
39885
+ x = _It.speed,
39886
+ I = _It.opts,
39887
+ P = bt[b],
39888
+ y = x * r,
39889
+ D = function D(S) {
39890
+ h.setTransform(u, 0, 0, u, 0, 0), h.clearRect(0, 0, n, n), P(h, n, S, m, I);
39891
+ };
39892
+ if (g) {
39893
+ D(0.6);
39894
+ return;
39895
+ }
39896
+ var w = 0,
39897
+ k = false;
39898
+ var _v = function v() {
39899
+ D(performance.now() / 1e3 * y), k && (w = requestAnimationFrame(_v));
39900
+ },
39901
+ R = function R() {
39902
+ k || t || (k = true, w = requestAnimationFrame(_v));
39903
+ },
39904
+ p = function p() {
39905
+ k = false, cancelAnimationFrame(w);
39906
+ };
39907
+ D(performance.now() / 1e3 * y);
39908
+ var d = true;
39909
+ var l = typeof IntersectionObserver < "u" ? new IntersectionObserver(function (_ref2) {
39910
+ var _ref3 = _slicedToArray(_ref2, 1),
39911
+ S = _ref3[0];
39912
+ d = S.isIntersecting, d && document.visibilityState !== "hidden" ? R() : p();
39913
+ }) : null;
39914
+ l == null || l.observe(M);
39915
+ var f = function f() {
39916
+ document.visibilityState === "hidden" ? p() : d && R();
39917
+ };
39918
+ return document.addEventListener("visibilitychange", f), l || R(), function () {
39919
+ p(), l == null || l.disconnect(), document.removeEventListener("visibilitychange", f);
39920
+ };
39921
+ }, [e, n, m, r, t, g]), /* @__PURE__ */jsxRuntime.jsx("canvas", _extends({
39922
+ ref: i,
39923
+ role: "img",
39924
+ "aria-label": c != null ? c : Ct[e],
39925
+ style: _extends({
39926
+ width: n,
39927
+ height: n,
39928
+ display: "block"
39929
+ }, o)
39930
+ }, a));
39931
+ }
39932
+
39057
39933
  var _templateObject$2, _templateObject2$1;
39058
39934
  function OrbStatusScreen(_ref) {
39059
39935
  var state = _ref.state,
@@ -39062,7 +39938,7 @@ function OrbStatusScreen(_ref) {
39062
39938
  loadingStage = _ref.loadingStage;
39063
39939
  var theme = styledComponents.useTheme();
39064
39940
  var label = accessibleLabel != null ? accessibleLabel : typeof text === 'string' ? text : undefined;
39065
- var orb = jsxRuntime.jsx(thinkingOrbs.ThinkingOrb, {
39941
+ var orb = jsxRuntime.jsx(Tt, {
39066
39942
  state: state,
39067
39943
  size: 64,
39068
39944
  style: {
@@ -43337,7 +44213,7 @@ function createDocumentCaptureController(config) {
43337
44213
  var createCanvas = (_config$io$createCanv = (_config$io6 = config.io) == null ? void 0 : _config$io6.createCanvas) != null ? _config$io$createCanv : function () {
43338
44214
  return document.createElement('canvas');
43339
44215
  };
43340
- var store = vanilla.createStore(function () {
44216
+ var store = createStore(function () {
43341
44217
  var _config$documents;
43342
44218
  return createInitialDocumentCaptureState(buildEntries((_config$documents = config.documents) != null ? _config$documents : [], createObjectUrl));
43343
44219
  });
@@ -48027,7 +48903,7 @@ function mapCustomerIdAndBiometricsEnrollmentProps(props, ctx) {
48027
48903
  });
48028
48904
  }
48029
48905
 
48030
- var webSdkVersion = '2.5.60-fix-auth-client-request-errors-235b09d';
48906
+ var webSdkVersion = '2.5.60-react16compat.0';
48031
48907
 
48032
48908
  var MAPPED = 'mapped';
48033
48909
  var NOOP = 'dropped-noop';
@@ -49028,6 +49904,25 @@ var CustomerIdAndBiometricsEnrollment = function CustomerIdAndBiometricsEnrollme
49028
49904
  }, mapCustomerIdAndBiometricsEnrollmentProps(props, ctx)), props.children);
49029
49905
  };
49030
49906
 
49907
+ /**
49908
+ * react-16-compat: React 16/17 have no `createRoot`, so this adapts the legacy
49909
+ * `ReactDOM.render` API to the root shape the rest of this module expects.
49910
+ * Keeping that shape means the teardown logic below stays byte-identical to
49911
+ * develop and merges cleanly. Runs on React 16.14 through 18; React 19
49912
+ * removed `ReactDOM.render`, which is why this build's peer range stops at 18.
49913
+ */
49914
+ function createRoot(container) {
49915
+ return {
49916
+ render: function render(element) {
49917
+ // eslint-disable-next-line react/no-deprecated -- the only mount API React 16 has
49918
+ ReactDOM__default.default.render(element, container);
49919
+ },
49920
+ unmount: function unmount() {
49921
+ // eslint-disable-next-line react/no-deprecated -- pairs with ReactDOM.render above
49922
+ ReactDOM__default.default.unmountComponentAtNode(container);
49923
+ }
49924
+ };
49925
+ }
49031
49926
  /**
49032
49927
  * Targets whose `remove` this module has already wrapped. Permanent: the
49033
49928
  * wrapper is installed at most once per element, so repeat renders can never
@@ -49055,8 +49950,7 @@ function renderElement(component, targetElement) {
49055
49950
  targetElement = document.createElement('div');
49056
49951
  document.body.append(targetElement);
49057
49952
  }
49058
- var root = ReactDOM__default.default.createRoot(targetElement);
49059
- root.render(/*#__PURE__*/React__default.default.createElement(OverlayContainer, null, component));
49953
+ var root = createRoot(targetElement);
49060
49954
  if ('remove' in targetElement) {
49061
49955
  var element_1 = targetElement;
49062
49956
  // Always point at the newest root, even when the wrapper is already
@@ -49106,6 +50000,10 @@ function renderElement(component, targetElement) {
49106
50000
  };
49107
50001
  }
49108
50002
  }
50003
+ // react-16-compat: render LAST. A legacy root mounts synchronously, so layout
50004
+ // effects (e.g. a customer `loadingSpinner`) run inside this call; one that
50005
+ // calls `.remove()` must already hit the wrapper above, not the native method.
50006
+ root.render(/*#__PURE__*/React__default.default.createElement(OverlayContainer, null, component));
49109
50007
  return targetElement;
49110
50008
  }
49111
50009
  function renderComponent(Component, targetElement, options) {