idmission-web-sdk 2.5.81-changeset-release-develop-3ddb15a → 2.5.81-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,12 +21,12 @@ 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).
32
- var webSdkUiVersion = '0.5.0';
29
+ var webSdkUiVersion = '0.4.0';
33
30
 
34
31
  function asyncGeneratorStep(n, t, e, r, o, a, c) {
35
32
  try {
@@ -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,10 +489,10 @@ 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
- var webSdkCoreVersion = '0.5.0';
495
+ var webSdkCoreVersion = '0.4.0';
499
496
 
500
497
  var maxTime = 86400000;
501
498
  var maxCount = 1000000;
@@ -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':
@@ -2872,7 +2907,7 @@ function _objectWithoutPropertiesLoose(r, e) {
2872
2907
  return t;
2873
2908
  }
2874
2909
 
2875
- var _excluded$j = ["nonce", "web", "os"];
2910
+ var _excluded$k = ["nonce", "web", "os"];
2876
2911
  /**
2877
2912
  * Grade the envelope from whichever inputs are present:
2878
2913
  * - OS token present -> 'os-attested' (attach `os`)
@@ -2886,7 +2921,7 @@ function buildClientAttestation(input) {
2886
2921
  var nonce = input.nonce,
2887
2922
  web = input.web,
2888
2923
  os = input.os,
2889
- versions = _objectWithoutPropertiesLoose(input, _excluded$j);
2924
+ versions = _objectWithoutPropertiesLoose(input, _excluded$k);
2890
2925
  if (os) {
2891
2926
  return _extends({
2892
2927
  assuranceLevel: 'os-attested',
@@ -3469,9 +3504,9 @@ function blobToB64(blob) {
3469
3504
  });
3470
3505
  }
3471
3506
 
3472
- 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."); }
3473
- 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; } }
3474
- 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; }
3507
+ 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."); }
3508
+ 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; } }
3509
+ 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; }
3475
3510
  /**
3476
3511
  * Parser for AAMVA (American Association of Motor Vehicle Administrators)
3477
3512
  * PDF417 barcode data found on US and Canadian driver's licenses.
@@ -3733,7 +3768,7 @@ function parseAAMVABarcode(rawData) {
3733
3768
  DAD: false
3734
3769
  };
3735
3770
  var daaValue = null;
3736
- for (var _iterator = _createForOfIteratorHelperLoose$s(lines), _step; !(_step = _iterator()).done;) {
3771
+ for (var _iterator = _createForOfIteratorHelperLoose$t(lines), _step; !(_step = _iterator()).done;) {
3737
3772
  var line = _step.value;
3738
3773
  var match = line.match(fieldRegex);
3739
3774
  if (match) {
@@ -3774,7 +3809,7 @@ function parseAAMVABarcode(rawData) {
3774
3809
  result.fields.push(field);
3775
3810
  }
3776
3811
  };
3777
- for (var _iterator2 = _createForOfIteratorHelperLoose$s(daaFields), _step2; !(_step2 = _iterator2()).done;) {
3812
+ for (var _iterator2 = _createForOfIteratorHelperLoose$t(daaFields), _step2; !(_step2 = _iterator2()).done;) {
3778
3813
  _loop();
3779
3814
  }
3780
3815
  }
@@ -4830,7 +4865,7 @@ function createIdmissionClient(config) {
4830
4865
  sessionCheckState: 'READY',
4831
4866
  canRefreshSession: typeof config.sessionId === 'function'
4832
4867
  };
4833
- var store = vanilla.createStore(function () {
4868
+ var store = createStore(function () {
4834
4869
  return {
4835
4870
  session: initialSession,
4836
4871
  submissionStatus: SubmissionStatus.READY
@@ -6467,7 +6502,7 @@ var fr = {
6467
6502
  'Barcode capture in progress, please hold still': 'Capture du code-barres en cours, veuillez ne pas bouger'
6468
6503
  };
6469
6504
 
6470
- var it = {
6505
+ var it$1 = {
6471
6506
  'English - en': 'Italian - it',
6472
6507
  'Use your device camera to capture your ID': 'Utilizzare la fotocamera del dispositivo per acquisire il documento',
6473
6508
  'Use your iPhone as a webcam': 'Utilizza iPhone come webcam',
@@ -6763,7 +6798,7 @@ var ja = {
6763
6798
  'Barcode capture in progress, please hold still': 'バーコードを読み取っています。動かないでください'
6764
6799
  };
6765
6800
 
6766
- var pt = {
6801
+ var pt$1 = {
6767
6802
  'English - en': 'Portuguese (Brazil) - pt',
6768
6803
  'Use your device camera to capture your ID': 'Usar a câmera do dispositivo para fotografar sua identidade',
6769
6804
  'Use your iPhone as a webcam': 'Use seu iPhone como uma câmera Web',
@@ -7313,13 +7348,13 @@ var resources = {
7313
7348
  translation: withThreeOhTranslations('fr', fr)
7314
7349
  },
7315
7350
  it: {
7316
- translation: withThreeOhTranslations('it', it)
7351
+ translation: withThreeOhTranslations('it', it$1)
7317
7352
  },
7318
7353
  ja: {
7319
7354
  translation: withThreeOhTranslations('ja', ja)
7320
7355
  },
7321
7356
  pt: {
7322
- translation: withThreeOhTranslations('pt', pt)
7357
+ translation: withThreeOhTranslations('pt', pt$1)
7323
7358
  },
7324
7359
  ru: {
7325
7360
  translation: withThreeOhTranslations('ru', ru)
@@ -7634,10 +7669,10 @@ function useGuideOrientationContext() {
7634
7669
  }
7635
7670
 
7636
7671
  var _templateObject$_, _templateObject2$Q;
7637
- var _excluded$i = ["isRearFacing"];
7672
+ var _excluded$j = ["isRearFacing"];
7638
7673
  var CameraVideoTag = /*#__PURE__*/React.forwardRef(function CameraVideoTag(_ref, ref) {
7639
7674
  var isRearFacing = _ref.isRearFacing,
7640
- props = _objectWithoutPropertiesLoose(_ref, _excluded$i);
7675
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$j);
7641
7676
  return jsxRuntime.jsx(FullscreenVideoTag, _extends({
7642
7677
  autoPlay: true,
7643
7678
  playsInline: true,
@@ -7705,9 +7740,9 @@ function ScalingCameraFeed(_ref2) {
7705
7740
  }
7706
7741
 
7707
7742
  var _templateObject$Z, _templateObject2$P, _templateObject3$D, _templateObject4$y, _templateObject5$t, _templateObject6$l;
7708
- 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."); }
7709
- 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; } }
7710
- 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; }
7743
+ 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."); }
7744
+ 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; } }
7745
+ 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; }
7711
7746
  /** Displays camera readiness and available source-frame dimensions. */
7712
7747
  function CameraDebugStatus(_ref) {
7713
7748
  var ready = _ref.ready,
@@ -7724,7 +7759,7 @@ function DebugStatsPane(_ref2) {
7724
7759
  });
7725
7760
  var portalLocation = document.getElementById('idmission-above-guides-content');
7726
7761
  if (!portalLocation) return element;
7727
- return /*#__PURE__*/reactDom.createPortal(element, portalLocation);
7762
+ return /*#__PURE__*/ReactDOM.createPortal(element, portalLocation);
7728
7763
  }
7729
7764
  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"])));
7730
7765
  var ObjectDetectionDebugOverlayDiv = styledComponents.styled.div(_templateObject2$P || (_templateObject2$P = _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) {
@@ -7972,7 +8007,7 @@ function SelfieCaptureFaceMesh(_ref15) {
7972
8007
  groups.forEach(function (indices, color) {
7973
8008
  ctx.fillStyle = color;
7974
8009
  ctx.beginPath();
7975
- for (var _iterator = _createForOfIteratorHelperLoose$r(indices), _step; !(_step = _iterator()).done;) {
8010
+ for (var _iterator = _createForOfIteratorHelperLoose$s(indices), _step; !(_step = _iterator()).done;) {
7976
8011
  var _i = _step.value;
7977
8012
  var p = meshLandmarks[_i];
7978
8013
  ctx.moveTo(p.x + dotRadius, p.y);
@@ -8127,7 +8162,7 @@ function BrowserEdgeTint(_ref) {
8127
8162
  }, []);
8128
8163
  if (!target) return null;
8129
8164
  var bottomColor = hiddenBottomColor != null ? hiddenBottomColor : color;
8130
- return /*#__PURE__*/reactDom.createPortal(jsxRuntime.jsxs(jsxRuntime.Fragment, {
8165
+ return /*#__PURE__*/ReactDOM.createPortal(jsxRuntime.jsxs(jsxRuntime.Fragment, {
8131
8166
  children: [jsxRuntime.jsx(EdgeStrip, {
8132
8167
  "$edge": "top",
8133
8168
  "$color": color,
@@ -8154,7 +8189,7 @@ var EdgeStrip = styledComponents.styled.div(_templateObject$Y || (_templateObjec
8154
8189
  });
8155
8190
 
8156
8191
  var _templateObject$X;
8157
- var _excluded$h = ["children", "className", "colors", "disabled", "finished", "variant"];
8192
+ var _excluded$i = ["children", "className", "colors", "disabled", "finished", "variant"];
8158
8193
  var LoaderButton = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
8159
8194
  var children = _ref.children,
8160
8195
  className = _ref.className,
@@ -8164,7 +8199,7 @@ var LoaderButton = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
8164
8199
  finished = _ref.finished,
8165
8200
  _ref$variant = _ref.variant,
8166
8201
  variant = _ref$variant === void 0 ? 'primary' : _ref$variant,
8167
- props = _objectWithoutPropertiesLoose(_ref, _excluded$h);
8202
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$i);
8168
8203
  var buttonRef = React.useRef(null);
8169
8204
  var laddaRef = React.useRef(null);
8170
8205
  var _useState = React.useState(false),
@@ -8241,7 +8276,7 @@ var GuidanceMessageContainer = function GuidanceMessageContainer(props) {
8241
8276
  var element = jsxRuntime.jsx(GuidanceMessageContainerDiv, _extends({}, props));
8242
8277
  var portalLocation = document.getElementById('idmission-above-guides-content');
8243
8278
  if (!portalLocation) return element;
8244
- return /*#__PURE__*/reactDom.createPortal(element, portalLocation);
8279
+ return /*#__PURE__*/ReactDOM.createPortal(element, portalLocation);
8245
8280
  };
8246
8281
  var GuidanceMessage = styledComponents.styled.div(_templateObject2$O || (_templateObject2$O = _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) {
8247
8282
  var _ref3, _props$$background, _props$theme, _props$$variant;
@@ -8475,7 +8510,7 @@ var error = function error() {
8475
8510
  return (console.error ).apply(void 0, arguments);
8476
8511
  }; // eslint-disable-line no-console
8477
8512
 
8478
- var _excluded$g = ["children", "status", "borderWidth", "borderRadius", "borderColor", "aspectRatio", "progress", "guideBoxDisabled"],
8513
+ var _excluded$h = ["children", "status", "borderWidth", "borderRadius", "borderColor", "aspectRatio", "progress", "guideBoxDisabled"],
8479
8514
  _excluded2$5 = ["borderRadius", "borderColor", "borderWidth", "borderOpacity", "progress", "isProgressBar", "scaleBorderRadius"];
8480
8515
  var _templateObject$S, _templateObject2$L, _templateObject3$A, _templateObject4$v, _templateObject5$r, _templateObject6$j, _templateObject7$g;
8481
8516
  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) {
@@ -8505,7 +8540,7 @@ function IdCardBorder(_ref) {
8505
8540
  progress = _ref$progress === void 0 ? 0 : _ref$progress,
8506
8541
  _ref$guideBoxDisabled = _ref.guideBoxDisabled,
8507
8542
  guideBoxDisabled = _ref$guideBoxDisabled === void 0 ? false : _ref$guideBoxDisabled,
8508
- props = _objectWithoutPropertiesLoose(_ref, _excluded$g);
8543
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$h);
8509
8544
  var _useResizeObserver = useResizeObserver(),
8510
8545
  ref = _useResizeObserver.ref,
8511
8546
  _useResizeObserver$wi = _useResizeObserver.width,
@@ -9895,11 +9930,11 @@ var LoadingGraphicPhoneGroup = styledComponents.styled.g(_templateObject4$s || (
9895
9930
  return props.$offScreen ? '40px' : '0';
9896
9931
  });
9897
9932
 
9898
- var _excluded$f = ["state"];
9933
+ var _excluded$g = ["state"];
9899
9934
  function LoadingListItemIndicator(_ref) {
9900
9935
  var _ref$state = _ref.state,
9901
9936
  state = _ref$state === void 0 ? 'running' : _ref$state,
9902
- svgProps = _objectWithoutPropertiesLoose(_ref, _excluded$f);
9937
+ svgProps = _objectWithoutPropertiesLoose(_ref, _excluded$g);
9903
9938
  return jsxRuntime.jsx("svg", _extends({
9904
9939
  width: "16",
9905
9940
  height: "16",
@@ -10404,9 +10439,9 @@ function loadingOverlayBottomEdgeColor(theme, modelsReady) {
10404
10439
  });
10405
10440
  }
10406
10441
 
10407
- 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."); }
10408
- 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; } }
10409
- 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; }
10442
+ 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."); }
10443
+ 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; } }
10444
+ 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; }
10410
10445
  var DEFAULT_THRESHOLD = 0.03;
10411
10446
  // Minimum confidence a `'Finger'` detection must clear before it counts
10412
10447
  // toward occlusion. The LiteRT document detector emits low-score
@@ -10457,7 +10492,7 @@ function computeFingerOcclusion(bestDocument, detectedObjects, documentType, thr
10457
10492
  // overlap each other the shared area gets double-counted — that errs
10458
10493
  // toward over-blocking, which is the safer direction for occlusion.
10459
10494
  var totalOverlap = 0;
10460
- for (var _iterator = _createForOfIteratorHelperLoose$q(detectedObjects), _step; !(_step = _iterator()).done;) {
10495
+ for (var _iterator = _createForOfIteratorHelperLoose$r(detectedObjects), _step; !(_step = _iterator()).done;) {
10461
10496
  var obj = _step.value;
10462
10497
  if (obj.label !== 'Finger') continue;
10463
10498
  if (obj.score < MIN_FINGER_SCORE) continue;
@@ -10489,7 +10524,7 @@ function anyOverlapByLabel(bestDocument, detectedObjects, label, minScore) {
10489
10524
  if (!bestDocument) return false;
10490
10525
  var docBox = bestDocument.box;
10491
10526
  if (docBox.width <= 0 || docBox.height <= 0) return false;
10492
- for (var _iterator2 = _createForOfIteratorHelperLoose$q(detectedObjects), _step2; !(_step2 = _iterator2()).done;) {
10527
+ for (var _iterator2 = _createForOfIteratorHelperLoose$r(detectedObjects), _step2; !(_step2 = _iterator2()).done;) {
10493
10528
  var obj = _step2.value;
10494
10529
  if (obj.label !== label) continue;
10495
10530
  if (obj.score < minScore) continue;
@@ -10665,9 +10700,9 @@ var initialFlowState = {
10665
10700
 
10666
10701
  var CapturedDocumentTypeValues = ['idCardFront', 'idCardBack', 'passport', 'singlePage', 'selfie', 'idFrontIrImage', 'idBackIrImage', 'idFrontUvImage', 'idBackUvImage', 'idBarcodeImage'];
10667
10702
 
10668
- 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."); }
10669
- 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; } }
10670
- 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; }
10703
+ 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."); }
10704
+ 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; } }
10705
+ 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; }
10671
10706
  // Tuning constants — seeded estimates. Expect on-device tuning against real
10672
10707
  // captures across angles/devices (same posture as the liveness geometry).
10673
10708
  var CONTAINMENT_MIN = 0.8; // fraction of inner box inside the outer box
@@ -10695,7 +10730,7 @@ function containment(inner, outer) {
10695
10730
  }
10696
10731
  function bestByLabel(objs, label) {
10697
10732
  var best = null;
10698
- for (var _iterator = _createForOfIteratorHelperLoose$p(objs), _step; !(_step = _iterator()).done;) {
10733
+ for (var _iterator = _createForOfIteratorHelperLoose$q(objs), _step; !(_step = _iterator()).done;) {
10699
10734
  var o = _step.value;
10700
10735
  if (o.label !== label) continue;
10701
10736
  if (o.score < MIN_BOOKLET_SCORE) continue;
@@ -10870,9 +10905,9 @@ function remainingIdCaptureRequirements(captureRequirement, capturedDocuments, r
10870
10905
  });
10871
10906
  }
10872
10907
 
10873
- 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."); }
10874
- 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; } }
10875
- 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; }
10908
+ 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."); }
10909
+ 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; } }
10910
+ 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; }
10876
10911
  /**
10877
10912
  * Clears the current frame's verdict (sdk2 idCaptureReducer.ts:367-389). Both
10878
10913
  * of these describe "the last frame we looked at", so they are meaningless —
@@ -10956,7 +10991,7 @@ var _reduceIdCapture = function reduceIdCapture(state, action, now) {
10956
10991
  // from one the user captured -- `documentCaptured` erases the
10957
10992
  // difference by design (see state.ts precapturedDocumentTypes).
10958
10993
  var seeded = [];
10959
- for (var _iterator = _createForOfIteratorHelperLoose$o(CapturedDocumentTypeValues), _step; !(_step = _iterator()).done;) {
10994
+ for (var _iterator = _createForOfIteratorHelperLoose$p(CapturedDocumentTypeValues), _step; !(_step = _iterator()).done;) {
10960
10995
  var k = _step.value;
10961
10996
  var payload = precapturedDocuments[k];
10962
10997
  if (payload) {
@@ -11294,7 +11329,7 @@ var _reduceIdCapture = function reduceIdCapture(state, action, now) {
11294
11329
  case 'documentsCaptured':
11295
11330
  {
11296
11331
  var _newState2 = _extends({}, state);
11297
- for (var _iterator2 = _createForOfIteratorHelperLoose$o(action.payload), _step2; !(_step2 = _iterator2()).done;) {
11332
+ for (var _iterator2 = _createForOfIteratorHelperLoose$p(action.payload), _step2; !(_step2 = _iterator2()).done;) {
11298
11333
  var doc = _step2.value;
11299
11334
  _newState2 = _reduceIdCapture(_newState2, {
11300
11335
  type: 'documentCaptured',
@@ -13496,9 +13531,9 @@ function evaluateIsMobile(nav) {
13496
13531
  return false;
13497
13532
  }
13498
13533
 
13499
- 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."); }
13500
- 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; } }
13501
- 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; }
13534
+ 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."); }
13535
+ 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; } }
13536
+ 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; }
13502
13537
  // zxing-js UMD build, self-hosted on the SDK's own CDN (version-pinned) rather
13503
13538
  // than fetched from unpkg. The previous `@latest` URL was both an external
13504
13539
  // dependency and a supply-chain risk — it executed whatever unpkg served as
@@ -14238,7 +14273,7 @@ function _decodePDF() {
14238
14273
  }
14239
14274
  base = _bases[_i];
14240
14275
  log$1("[NativeBarcodeDecoder] Trying fine rotation deskew around " + base.angle + "\xB0...");
14241
- _iterator = _createForOfIteratorHelperLoose$n(FINE_ROTATION_ANGLES);
14276
+ _iterator = _createForOfIteratorHelperLoose$o(FINE_ROTATION_ANGLES);
14242
14277
  case 11:
14243
14278
  if ((_step = _iterator()).done) {
14244
14279
  _context0.next = 14;
@@ -14763,7 +14798,7 @@ function _decodePDF417WithDetails() {
14763
14798
  }
14764
14799
  base = _bases2[_i2];
14765
14800
  log$1("[NativeBarcodeDecoder] Trying fine rotation deskew around " + base.angle + "\xB0 (detailed)...");
14766
- _iterator2 = _createForOfIteratorHelperLoose$n(FINE_ROTATION_ANGLES);
14801
+ _iterator2 = _createForOfIteratorHelperLoose$o(FINE_ROTATION_ANGLES);
14767
14802
  case 12:
14768
14803
  if ((_step2 = _iterator2()).done) {
14769
14804
  _context12.next = 15;
@@ -14882,9 +14917,9 @@ var CaptureAttachError = /*#__PURE__*/function (_Error) {
14882
14917
  return CaptureAttachError;
14883
14918
  }(/*#__PURE__*/_wrapNativeSuper(Error));
14884
14919
 
14885
- 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."); }
14886
- 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; } }
14887
- 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; }
14920
+ 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."); }
14921
+ 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; } }
14922
+ 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; }
14888
14923
  /**
14889
14924
  * Analyzes barcode readability for a detected document
14890
14925
  * (IdCaptureModelsProvider.tsx:83-199, ported verbatim; the last two
@@ -15345,7 +15380,7 @@ function createDetectionPipeline(opts) {
15345
15380
  });
15346
15381
  if (failed) {
15347
15382
  loadSettled = true;
15348
- for (var _iterator = _createForOfIteratorHelperLoose$m(lifecycleHandles), _step; !(_step = _iterator()).done;) {
15383
+ for (var _iterator = _createForOfIteratorHelperLoose$n(lifecycleHandles), _step; !(_step = _iterator()).done;) {
15349
15384
  var handle = _step.value;
15350
15385
  handle.cancel();
15351
15386
  }
@@ -16631,9 +16666,9 @@ function maybeDataUrlToBase64Sync(url) {
16631
16666
  return dataUrlToBase64Sync(url);
16632
16667
  }
16633
16668
 
16634
- 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."); }
16635
- 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; } }
16636
- 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; }
16669
+ 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."); }
16670
+ 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; } }
16671
+ 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; }
16637
16672
  // Document types whose capture attempt becomes an upload's `filemetadata`, in
16638
16673
  // write order: `singlePage` after `idCardFront` so it wins `idFrontImage`,
16639
16674
  // exactly as the image does below.
@@ -16723,7 +16758,7 @@ function buildIdCaptureArtifacts(inputs, now) {
16723
16758
  };
16724
16759
  if (ocrMetadata) meta.ocrMetadata = ocrMetadata;
16725
16760
  var documentFileMetadata = {};
16726
- for (var _iterator = _createForOfIteratorHelperLoose$l(FILE_METADATA_KEYS), _step; !(_step = _iterator()).done;) {
16761
+ for (var _iterator = _createForOfIteratorHelperLoose$m(FILE_METADATA_KEYS), _step; !(_step = _iterator()).done;) {
16727
16762
  var _step$value = _slicedToArray(_step.value, 2),
16728
16763
  documentType = _step$value[0],
16729
16764
  documentKey = _step$value[1];
@@ -16750,10 +16785,10 @@ function buildIdCaptureArtifacts(inputs, now) {
16750
16785
  };
16751
16786
  }
16752
16787
 
16753
- var _excluded$e = ["bestBarcodeScore", "barcodeBoundingBox"];
16754
- 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."); }
16755
- 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; } }
16756
- 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; }
16788
+ var _excluded$f = ["bestBarcodeScore", "barcodeBoundingBox"];
16789
+ 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."); }
16790
+ 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; } }
16791
+ 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; }
16757
16792
  // sdk2/src/components/id_capture/IdCaptureWizard.tsx:253-262
16758
16793
  var lastDocumentDetectedAtDefaults = {
16759
16794
  idCardFront: null,
@@ -16834,7 +16869,7 @@ function createIdCaptureController(config) {
16834
16869
  // ---------------------------------------------------------------------
16835
16870
  // Store
16836
16871
  // ---------------------------------------------------------------------
16837
- var internal = vanilla.createStore(function () {
16872
+ var internal = createStore(function () {
16838
16873
  return _extends({}, initialFlowState, {
16839
16874
  error: null,
16840
16875
  submission: 'idle',
@@ -16923,7 +16958,7 @@ function createIdCaptureController(config) {
16923
16958
  // payload.ts's buildNoBarcodeOCRMetadata fallback counts).
16924
16959
  var bestBarcodeScore = metadata.bestBarcodeScore,
16925
16960
  barcodeBoundingBox = metadata.barcodeBoundingBox,
16926
- captureAttemptWithoutBarcode = _objectWithoutPropertiesLoose(metadata, _excluded$e);
16961
+ captureAttemptWithoutBarcode = _objectWithoutPropertiesLoose(metadata, _excluded$f);
16927
16962
  captureAttempts.back.push(captureAttemptWithoutBarcode);
16928
16963
  // :619-629 -- appended whenever a barcode score was recorded at all
16929
16964
  // (0 counts: auto-capture stamps `bestBarcodeScore: bestBarcode?.score
@@ -16963,7 +16998,7 @@ function createIdCaptureController(config) {
16963
16998
  }
16964
16999
  }
16965
17000
  function clearAllTimers() {
16966
- for (var _iterator = _createForOfIteratorHelperLoose$k(timers.values()), _step; !(_step = _iterator()).done;) {
17001
+ for (var _iterator = _createForOfIteratorHelperLoose$l(timers.values()), _step; !(_step = _iterator()).done;) {
16967
17002
  var handle = _step.value;
16968
17003
  io.clearTimeout(handle);
16969
17004
  }
@@ -19970,7 +20005,7 @@ var ContinueButton$2 = styledComponents.styled(LoaderButton)(_templateObject7$c
19970
20005
  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';
19971
20006
  });
19972
20007
 
19973
- var _excluded$d = ["mode"];
20008
+ var _excluded$e = ["mode"];
19974
20009
  var components$1 = {
19975
20010
  "default": IdCaptureLoadingOverlayDefault,
19976
20011
  legacy: IdCaptureLoadingOverlayLegacy,
@@ -19980,7 +20015,7 @@ var IdCaptureLoadingOverlay = function IdCaptureLoadingOverlay(_ref) {
19980
20015
  var _components$mode;
19981
20016
  var _ref$mode = _ref.mode,
19982
20017
  mode = _ref$mode === void 0 ? 'default' : _ref$mode,
19983
- props = _objectWithoutPropertiesLoose(_ref, _excluded$d);
20018
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$e);
19984
20019
  var Component = (_components$mode = components$1[mode]) != null ? _components$mode : components$1["default"];
19985
20020
  return jsxRuntime.jsx(Component, _extends({}, props));
19986
20021
  };
@@ -21567,9 +21602,9 @@ function useSessionReady() {
21567
21602
  }
21568
21603
 
21569
21604
  var _templateObject$w;
21570
- 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."); }
21571
- 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; } }
21572
- 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; }
21605
+ 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."); }
21606
+ 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; } }
21607
+ 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; }
21573
21608
  // Unlike SelfieCaptureView/FaceLivenessView, this view has no root
21574
21609
  // container of its own -- ScalingCameraFeed/IdCaptureGuides/etc. render as
21575
21610
  // siblings relying on whatever positioned ancestor the host page provides.
@@ -21837,7 +21872,7 @@ function IdCaptureViewContent(_ref) {
21837
21872
  // after this effect first runs with an empty state). Folding it in here,
21838
21873
  // rather than seeding once on mount, is what makes the skip actually
21839
21874
  // apply. `seen` keeps a consumed exclusion from being re-armed.
21840
- for (var _iterator = _createForOfIteratorHelperLoose$j(state.precapturedDocumentTypes), _step; !(_step = _iterator()).done;) {
21875
+ for (var _iterator = _createForOfIteratorHelperLoose$k(state.precapturedDocumentTypes), _step; !(_step = _iterator()).done;) {
21841
21876
  var _documentType = _step.value;
21842
21877
  if (seenPrecapturedRef.current.has(_documentType)) continue;
21843
21878
  seenPrecapturedRef.current.add(_documentType);
@@ -23227,9 +23262,9 @@ function guidanceFor(state, prediction, at) {
23227
23262
  return code === SelfieGuidanceCode.HOLD_STILL && handOverFaceHeld(state.handOverFaceAt, at) ? SelfieGuidanceCode.HAND_OVER_FACE : code;
23228
23263
  }
23229
23264
 
23230
- 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."); }
23231
- 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; } }
23232
- 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; }
23265
+ 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."); }
23266
+ 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; } }
23267
+ 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; }
23233
23268
  // sdk2 componenets/selfie_capture/faceDetectorDefault.ts:5
23234
23269
  // (DEFAULT_FACE_DETECTOR): face-landmarker is the default face model as of
23235
23270
  // 2.4.0.
@@ -23259,7 +23294,7 @@ function mapDetectionsToFaces(prediction) {
23259
23294
  if (!prediction) return null;
23260
23295
  var faceDetections = [];
23261
23296
  var noseDetections = [];
23262
- for (var _iterator = _createForOfIteratorHelperLoose$i(prediction.detections), _step; !(_step = _iterator()).done;) {
23297
+ for (var _iterator = _createForOfIteratorHelperLoose$j(prediction.detections), _step; !(_step = _iterator()).done;) {
23263
23298
  var detection = _step.value;
23264
23299
  if (isNoseDetection(detection)) {
23265
23300
  noseDetections.push(detection);
@@ -23273,7 +23308,7 @@ function mapDetectionsToFaces(prediction) {
23273
23308
  var faceBox = d.boundingBox;
23274
23309
  if (!faceBox) continue;
23275
23310
  var nose = null;
23276
- for (var _iterator2 = _createForOfIteratorHelperLoose$i(noseDetections), _step2; !(_step2 = _iterator2()).done;) {
23311
+ for (var _iterator2 = _createForOfIteratorHelperLoose$j(noseDetections), _step2; !(_step2 = _iterator2()).done;) {
23277
23312
  var n = _step2.value;
23278
23313
  var noseBox = n.boundingBox;
23279
23314
  if (!noseBox) continue;
@@ -24075,9 +24110,9 @@ function captureQualityException(reason, measurements, originalThresholds, recov
24075
24110
  };
24076
24111
  }
24077
24112
 
24078
- 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."); }
24079
- 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; } }
24080
- 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; }
24113
+ 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."); }
24114
+ 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; } }
24115
+ 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; }
24081
24116
  // sdk2 SelfieGuidanceModelsProvider.tsx onPredictionMade's useThrottledCallback
24082
24117
  // second argument (SelfieCapture.tsx:225 -- "locks to 60fps maximum").
24083
24118
  var DEFAULT_PREDICTION_THROTTLE_MS = 16;
@@ -24162,7 +24197,7 @@ function createSelfieCaptureController(config) {
24162
24197
  }
24163
24198
  var handCheckEnabled = ((_config$handOverFaceC2 = config.handOverFaceCheck) == null ? void 0 : _config$handOverFaceC2.enabled) === true && detectorKind === 'face-landmarker';
24164
24199
  if (config.captureRecovery) validateCaptureRecovery(config.captureRecovery);
24165
- var internal = vanilla.createStore(function () {
24200
+ var internal = createStore(function () {
24166
24201
  return _extends({}, createInitialSelfieCaptureState({
24167
24202
  thresholds: config.thresholds
24168
24203
  }), {
@@ -24199,7 +24234,7 @@ function createSelfieCaptureController(config) {
24199
24234
  // --- timers (idCapture pattern, colon-namespaced) ---
24200
24235
  var timers = new Map();
24201
24236
  function clearAllTimers() {
24202
- for (var _iterator = _createForOfIteratorHelperLoose$h(timers.values()), _step; !(_step = _iterator()).done;) {
24237
+ for (var _iterator = _createForOfIteratorHelperLoose$i(timers.values()), _step; !(_step = _iterator()).done;) {
24203
24238
  var handle = _step.value;
24204
24239
  io.clearTimeout(handle);
24205
24240
  }
@@ -25998,7 +26033,7 @@ function SelfieCameraFeed(_ref) {
25998
26033
  }
25999
26034
 
26000
26035
  var _templateObject$u, _templateObject2$s, _templateObject3$j, _templateObject4$f;
26001
- var _excluded$c = ["borderColor", "borderOpacity", "borderWidth", "status"],
26036
+ var _excluded$d = ["borderColor", "borderOpacity", "borderWidth", "status"],
26002
26037
  _excluded2$4 = ["status", "guideStyle"],
26003
26038
  _excluded3 = ["frame", "borderWidth", "borderColor", "borderOpacity", "verticalAlign", "status", "guideStyle"],
26004
26039
  _excluded4 = ["status"];
@@ -26015,7 +26050,7 @@ var HeadGuideSvg = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
26015
26050
  borderWidth = _ref$borderWidth === void 0 ? 5 : _ref$borderWidth,
26016
26051
  _ref$status = _ref.status,
26017
26052
  status = _ref$status === void 0 ? 'ready' : _ref$status,
26018
- props = _objectWithoutPropertiesLoose(_ref, _excluded$c);
26053
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$d);
26019
26054
  return jsxRuntime.jsxs("svg", _extends({}, props, {
26020
26055
  ref: ref,
26021
26056
  viewBox: "271 92 297 406",
@@ -27302,7 +27337,7 @@ var ContinueButton = styledComponents.styled(LoaderButton)(_templateObject7$8 ||
27302
27337
  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';
27303
27338
  });
27304
27339
 
27305
- var _excluded$b = ["mode"];
27340
+ var _excluded$c = ["mode"];
27306
27341
  var components = {
27307
27342
  "default": SelfieCaptureLoadingOverlayDefault,
27308
27343
  legacy: SelfieCaptureLoadingOverlayLegacy,
@@ -27312,7 +27347,7 @@ var SelfieCaptureLoadingOverlay = function SelfieCaptureLoadingOverlay(_ref) {
27312
27347
  var _components$mode;
27313
27348
  var _ref$mode = _ref.mode,
27314
27349
  mode = _ref$mode === void 0 ? 'default' : _ref$mode,
27315
- props = _objectWithoutPropertiesLoose(_ref, _excluded$b);
27350
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$c);
27316
27351
  var Component = (_components$mode = components[mode]) != null ? _components$mode : components["default"];
27317
27352
  return jsxRuntime.jsx(Component, _extends({}, props));
27318
27353
  };
@@ -28684,9 +28719,9 @@ function FaceLivenessViewContent(_ref) {
28684
28719
  });
28685
28720
  }
28686
28721
 
28687
- 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."); }
28688
- 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; } }
28689
- 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; }
28722
+ 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."); }
28723
+ 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; } }
28724
+ 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; }
28690
28725
  /**
28691
28726
  * Signature validity estimate (AMEXDESK-676).
28692
28727
  *
@@ -28789,7 +28824,7 @@ function countSignaturePoints(strokes) {
28789
28824
  */
28790
28825
  function measurePenDownMs(strokes) {
28791
28826
  var total = 0;
28792
- for (var _iterator = _createForOfIteratorHelperLoose$g(strokes), _step; !(_step = _iterator()).done;) {
28827
+ for (var _iterator = _createForOfIteratorHelperLoose$h(strokes), _step; !(_step = _iterator()).done;) {
28793
28828
  var stroke = _step.value;
28794
28829
  if (stroke.length < 2) continue;
28795
28830
  total += stroke[stroke.length - 1].time - stroke[0].time;
@@ -28808,9 +28843,9 @@ function boundingBox(strokes) {
28808
28843
  var minY = Infinity;
28809
28844
  var maxX = -Infinity;
28810
28845
  var maxY = -Infinity;
28811
- for (var _iterator2 = _createForOfIteratorHelperLoose$g(strokes), _step2; !(_step2 = _iterator2()).done;) {
28846
+ for (var _iterator2 = _createForOfIteratorHelperLoose$h(strokes), _step2; !(_step2 = _iterator2()).done;) {
28812
28847
  var stroke = _step2.value;
28813
- for (var _iterator3 = _createForOfIteratorHelperLoose$g(stroke), _step3; !(_step3 = _iterator3()).done;) {
28848
+ for (var _iterator3 = _createForOfIteratorHelperLoose$h(stroke), _step3; !(_step3 = _iterator3()).done;) {
28814
28849
  var p = _step3.value;
28815
28850
  if (p.x < minX) minX = p.x;
28816
28851
  if (p.y < minY) minY = p.y;
@@ -28829,7 +28864,7 @@ function boundingBox(strokes) {
28829
28864
  /** Sum of Euclidean distances between consecutive points within each stroke. */
28830
28865
  function totalPathLength(strokes) {
28831
28866
  var length = 0;
28832
- for (var _iterator4 = _createForOfIteratorHelperLoose$g(strokes), _step4; !(_step4 = _iterator4()).done;) {
28867
+ for (var _iterator4 = _createForOfIteratorHelperLoose$h(strokes), _step4; !(_step4 = _iterator4()).done;) {
28833
28868
  var stroke = _step4.value;
28834
28869
  for (var i = 1; i < stroke.length; i++) {
28835
28870
  var dx = stroke[i].x - stroke[i - 1].x;
@@ -28885,7 +28920,7 @@ function resampleStroke(stroke, step) {
28885
28920
  */
28886
28921
  function countDirectionChanges(strokes, step) {
28887
28922
  var totalTurning = 0;
28888
- for (var _iterator5 = _createForOfIteratorHelperLoose$g(strokes), _step5; !(_step5 = _iterator5()).done;) {
28923
+ for (var _iterator5 = _createForOfIteratorHelperLoose$h(strokes), _step5; !(_step5 = _iterator5()).done;) {
28889
28924
  var stroke = _step5.value;
28890
28925
  var pts = resampleStroke(stroke, step);
28891
28926
  var prevAngle = null;
@@ -28918,9 +28953,9 @@ function countZonesCovered(strokes, canvasWidth, canvasHeight, box) {
28918
28953
  var height = useCanvas ? canvasHeight : box.maxY - box.minY;
28919
28954
  if (width <= 0 || height <= 0) return 0;
28920
28955
  var occupied = new Set();
28921
- for (var _iterator6 = _createForOfIteratorHelperLoose$g(strokes), _step6; !(_step6 = _iterator6()).done;) {
28956
+ for (var _iterator6 = _createForOfIteratorHelperLoose$h(strokes), _step6; !(_step6 = _iterator6()).done;) {
28922
28957
  var stroke = _step6.value;
28923
- for (var _iterator7 = _createForOfIteratorHelperLoose$g(stroke), _step7; !(_step7 = _iterator7()).done;) {
28958
+ for (var _iterator7 = _createForOfIteratorHelperLoose$h(stroke), _step7; !(_step7 = _iterator7()).done;) {
28924
28959
  var p = _step7.value;
28925
28960
  var col = Math.min(2, Math.max(0, Math.floor((p.x - originX) / width * 3)));
28926
28961
  var row = Math.min(2, Math.max(0, Math.floor((p.y - originY) / height * 3)));
@@ -29011,9 +29046,9 @@ function evaluateSignatureValidity(strokes, canvasWidth, canvasHeight, config) {
29011
29046
  };
29012
29047
  }
29013
29048
 
29014
- 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."); }
29015
- 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; } }
29016
- 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; }
29049
+ 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."); }
29050
+ 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; } }
29051
+ 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; }
29017
29052
  /**
29018
29053
  * Off-screen, post-capture validation that proves a real frame renders at the
29019
29054
  * signature's trim start offset. This is the authoritative detector for the
@@ -29462,7 +29497,7 @@ function _seekProbes() {
29462
29497
  while (1) switch (_context4.prev = _context4.next) {
29463
29498
  case 0:
29464
29499
  probes = [];
29465
- _iterator = _createForOfIteratorHelperLoose$f(probeTimesMs);
29500
+ _iterator = _createForOfIteratorHelperLoose$g(probeTimesMs);
29466
29501
  case 1:
29467
29502
  if ((_step = _iterator()).done) {
29468
29503
  _context4.next = 4;
@@ -29532,7 +29567,7 @@ function _playbackProbes() {
29532
29567
  };
29533
29568
  var grab = function grab(mediaSec) {
29534
29569
  if (mediaSec * 1000 > maxMediaMs) maxMediaMs = mediaSec * 1000;
29535
- for (var _iterator2 = _createForOfIteratorHelperLoose$f(targets), _step2; !(_step2 = _iterator2()).done;) {
29570
+ for (var _iterator2 = _createForOfIteratorHelperLoose$g(targets), _step2; !(_step2 = _iterator2()).done;) {
29536
29571
  var t = _step2.value;
29537
29572
  if (t.result != null) continue;
29538
29573
  if (maxMediaMs + SEEK_TOLERANCE_MS < t.ms) continue;
@@ -29585,7 +29620,7 @@ function _playbackProbes() {
29585
29620
  video.play()["catch"](_finish);
29586
29621
  });
29587
29622
  case 2:
29588
- _iterator3 = _createForOfIteratorHelperLoose$f(targets);
29623
+ _iterator3 = _createForOfIteratorHelperLoose$g(targets);
29589
29624
  case 3:
29590
29625
  if ((_step3 = _iterator3()).done) {
29591
29626
  _context5.next = 6;
@@ -31297,9 +31332,9 @@ function reduceSignatureCapture(state, event) {
31297
31332
  }
31298
31333
  }
31299
31334
 
31300
- 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."); }
31301
- 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; } }
31302
- 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; }
31335
+ 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."); }
31336
+ 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; } }
31337
+ 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; }
31303
31338
  /**
31304
31339
  * Marks a microphone acquisition failure so `captureError` can type it.
31305
31340
  *
@@ -31402,7 +31437,7 @@ function createSignatureCaptureController(config) {
31402
31437
  var captureAudio = ((_config$captureAudio = config.captureAudio) != null ? _config$captureAudio : false) && mode === 'video';
31403
31438
  var microphone = null;
31404
31439
  var validityConfig = resolveSignatureValidityConfig(config.signatureValidity, config.minSignaturePadPoints);
31405
- var store = vanilla.createStore(function () {
31440
+ var store = createStore(function () {
31406
31441
  return createInitialSignatureCaptureState(mode);
31407
31442
  });
31408
31443
  var listeners = new Set();
@@ -31433,7 +31468,7 @@ function createSignatureCaptureController(config) {
31433
31468
  }
31434
31469
  function publish() {
31435
31470
  snapshot = store.getState();
31436
- for (var _iterator = _createForOfIteratorHelperLoose$e(listeners), _step; !(_step = _iterator()).done;) {
31471
+ for (var _iterator = _createForOfIteratorHelperLoose$f(listeners), _step; !(_step = _iterator()).done;) {
31437
31472
  var listener = _step.value;
31438
31473
  try {
31439
31474
  listener(snapshot);
@@ -32264,7 +32299,7 @@ function useSignatureCapture(controller) {
32264
32299
  }
32265
32300
 
32266
32301
  var _templateObject$j, _templateObject2$j, _templateObject3$f, _templateObject4$b, _templateObject5$b, _templateObject6$8;
32267
- var _excluded$a = ["device", "frameDecode"];
32302
+ var _excluded$b = ["device", "frameDecode"];
32268
32303
  var ASSUMED_TRIM_PADDING = {
32269
32304
  startMs: TRIM_PADDING_START_MS,
32270
32305
  endMs: TRIM_PADDING_END_MS
@@ -32496,7 +32531,7 @@ function trippedSignals(warning) {
32496
32531
  var _warning$signals = warning.signals,
32497
32532
  device = _warning$signals.device,
32498
32533
  frameDecode = _warning$signals.frameDecode,
32499
- top = _objectWithoutPropertiesLoose(_warning$signals, _excluded$a);
32534
+ top = _objectWithoutPropertiesLoose(_warning$signals, _excluded$b);
32500
32535
  var tripped = [].concat(_toConsumableArray(Object.entries(top).filter(function (_ref2) {
32501
32536
  var _ref3 = _slicedToArray(_ref2, 2),
32502
32537
  signal = _ref3[1];
@@ -33555,9 +33590,9 @@ function buildVideoIdCaptureArtifacts(artifact) {
33555
33590
  };
33556
33591
  }
33557
33592
 
33558
- 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."); }
33559
- 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; } }
33560
- 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; }
33593
+ 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."); }
33594
+ 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; } }
33595
+ 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; }
33561
33596
  var DEFAULT_VIDEO_ID_PREDICTION_THROTTLE_MS = 16;
33562
33597
  var RECENT_DETECTION_WINDOW_MS = 2000;
33563
33598
  var defaultVideoIdCaptureThresholds = {
@@ -33701,7 +33736,7 @@ function createVideoIdCaptureController(config) {
33701
33736
  var backImage = null;
33702
33737
  function update(patch) {
33703
33738
  state = _extends({}, state, patch);
33704
- for (var _iterator = _createForOfIteratorHelperLoose$d(listeners), _step; !(_step = _iterator()).done;) {
33739
+ for (var _iterator = _createForOfIteratorHelperLoose$e(listeners), _step; !(_step = _iterator()).done;) {
33705
33740
  var listener = _step.value;
33706
33741
  try {
33707
33742
  listener(state);
@@ -38542,9 +38577,9 @@ var highlightJson = function highlightJson(str) {
38542
38577
  };
38543
38578
 
38544
38579
  var _templateObject$3, _templateObject2$3, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject0, _templateObject1, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22, _templateObject23, _templateObject24;
38545
- 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."); }
38546
- 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; } }
38547
- 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; }
38580
+ 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."); }
38581
+ 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; } }
38582
+ 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; }
38548
38583
  var SUBMISSION_SUCCESS_FALLBACKS = {
38549
38584
  completeText: 'Submission complete',
38550
38585
  responseReceivedText: 'Response received',
@@ -38620,7 +38655,7 @@ var quickFactConfig = [{
38620
38655
  */
38621
38656
  var readDocumentId = function readDocumentId(request, path) {
38622
38657
  var node = request;
38623
- for (var _iterator = _createForOfIteratorHelperLoose$c(path), _step; !(_step = _iterator()).done;) {
38658
+ for (var _iterator = _createForOfIteratorHelperLoose$d(path), _step; !(_step = _iterator()).done;) {
38624
38659
  var segment = _step.value;
38625
38660
  if (!node || typeof node !== 'object') return null;
38626
38661
  node = node[segment];
@@ -38731,10 +38766,10 @@ var ASSET_CONFIG = [{
38731
38766
  */
38732
38767
  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']];
38733
38768
  function truncateImagePaths(body) {
38734
- for (var _iterator2 = _createForOfIteratorHelperLoose$c(TRUNCATABLE_IMAGE_PATHS), _step2; !(_step2 = _iterator2()).done;) {
38769
+ for (var _iterator2 = _createForOfIteratorHelperLoose$d(TRUNCATABLE_IMAGE_PATHS), _step2; !(_step2 = _iterator2()).done;) {
38735
38770
  var path = _step2.value;
38736
38771
  var node = body;
38737
- for (var _iterator3 = _createForOfIteratorHelperLoose$c(path.slice(0, -1)), _step3; !(_step3 = _iterator3()).done;) {
38772
+ for (var _iterator3 = _createForOfIteratorHelperLoose$d(path.slice(0, -1)), _step3; !(_step3 = _iterator3()).done;) {
38738
38773
  var segment = _step3.value;
38739
38774
  if (!isRecord(node)) break;
38740
38775
  node = node[segment];
@@ -39133,6 +39168,847 @@ var JsonBlockHeader = styledComponents.styled.div(_templateObject22 || (_templat
39133
39168
  var JsonBlockActions = styledComponents.styled.div(_templateObject23 || (_templateObject23 = _taggedTemplateLiteralLoose(["\n display: flex;\n gap: 8px;\n"])));
39134
39169
  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"])));
39135
39170
 
39171
+ var _excluded$a = ["state", "size", "theme", "speed", "paused", "style", "aria-label"];
39172
+ 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."); }
39173
+ 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; } }
39174
+ 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; }
39175
+ function F(e, n) {
39176
+ var s = Math.sin(e * 12.9898 + n * 78.233) * 43758.5453;
39177
+ return s - Math.floor(s);
39178
+ }
39179
+ function st(e, n) {
39180
+ var s = Math.PI * (3 - Math.sqrt(5)),
39181
+ r = 1 - 2 * (e + 0.5) / n,
39182
+ t = Math.sqrt(1 - r * r),
39183
+ o = e * s;
39184
+ return [t * Math.cos(o), r, t * Math.sin(o)];
39185
+ }
39186
+ function ot(e, n) {
39187
+ return Math.atan2(Math.sin(e - n), Math.cos(e - n));
39188
+ }
39189
+ function q(e, n, s, r, t) {
39190
+ var o = Math.sin(n),
39191
+ c = Math.cos(n),
39192
+ a = Math.sin(e),
39193
+ i = Math.cos(e);
39194
+ return function (m, g, M) {
39195
+ var u = m * i + M * a,
39196
+ h = -m * a + M * i,
39197
+ b = g * c - h * o,
39198
+ x = g * o + h * c;
39199
+ return [s + u * t, r - b * t, x];
39200
+ };
39201
+ }
39202
+ function _(e, n, s, r) {
39203
+ if (r === void 0) {
39204
+ r = 0.3;
39205
+ }
39206
+ n.sort(function (t, o) {
39207
+ return t.z - o.z;
39208
+ });
39209
+ for (var _iterator = _createForOfIteratorHelperLoose$c(n), _step; !(_step = _iterator()).done;) {
39210
+ var _t$a;
39211
+ var t = _step.value;
39212
+ var o = (_t$a = t.a) != null ? _t$a : 1;
39213
+ if (o < 0.02) continue;
39214
+ var c = Math.min(1, Math.max(0, t.white)),
39215
+ a = Math.round((s ? 1 - c : c) * 255);
39216
+ 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();
39217
+ }
39218
+ }
39219
+ function $(e, n) {
39220
+ return Math.pow(e / 300, n);
39221
+ }
39222
+ function et(e, n, s, r) {
39223
+ var t = 2 * n * s + r,
39224
+ o = e % t,
39225
+ c = new Array(n).fill(0);
39226
+ var a = -1;
39227
+ if (o < 2 * n * s) {
39228
+ var i = Math.floor(o / s),
39229
+ m = (o - i * s) / s,
39230
+ M = 1 - Math.pow(1 - Math.min(1, m / 0.7), 3);
39231
+ if (i < n) {
39232
+ for (var u = 0; u < i; u++) c[u] = 1;
39233
+ c[i] = M, a = i;
39234
+ } else {
39235
+ var _u = 2 * n - 1 - i;
39236
+ for (var h = 0; h < _u; h++) c[h] = 1;
39237
+ c[_u] = 1 - M, a = _u;
39238
+ }
39239
+ }
39240
+ return {
39241
+ amount: c,
39242
+ active: a
39243
+ };
39244
+ }
39245
+ function ct(e, n, s) {
39246
+ var _e = _slicedToArray(e, 3),
39247
+ r = _e[0],
39248
+ t = _e[1],
39249
+ o = _e[2],
39250
+ c = false;
39251
+ for (var a = 0; a < n.length; a++) {
39252
+ if (s.amount[a] <= 0) continue;
39253
+ var i = n[a],
39254
+ m = i.axis === 0 ? r : i.axis === 1 ? t : o;
39255
+ if (m < i.lo || m >= i.hi) continue;
39256
+ a === s.active && (c = true);
39257
+ var g = i.ang * s.amount[a],
39258
+ M = Math.cos(g),
39259
+ u = Math.sin(g);
39260
+ if (i.axis === 0) {
39261
+ var h = t * M - o * u;
39262
+ o = t * u + o * M, t = h;
39263
+ } else if (i.axis === 1) {
39264
+ var _h = r * M + o * u;
39265
+ o = -r * u + o * M, r = _h;
39266
+ } else {
39267
+ var _h2 = r * M - t * u;
39268
+ t = r * u + t * M, r = _h2;
39269
+ }
39270
+ }
39271
+ return [r, t, o, c];
39272
+ }
39273
+ function at(e) {
39274
+ var n = [];
39275
+ for (var s = 0; s < e; s++) {
39276
+ var r = Math.min(2, Math.floor(F(s, 2.3) * 3)),
39277
+ t = -1 + 0.5 * Math.min(3, Math.floor(F(s, 5.9) * 4)),
39278
+ o = F(s, 7.7) < 0.5 ? 1 : -1;
39279
+ n.push({
39280
+ axis: r,
39281
+ lo: t,
39282
+ hi: t + 0.5,
39283
+ ang: o * Math.PI / 2
39284
+ });
39285
+ }
39286
+ return n;
39287
+ }
39288
+ var rt = function rt(e, n, s, r, t) {
39289
+ var _t$scanMul, _t$rsPow, _t$dimBase, _t$latRings, _t$lonDensity;
39290
+ var c = n / 2,
39291
+ a = n / 2,
39292
+ i = n / 2 * 0.82,
39293
+ m = 0.4 + 0.06 * Math.sin(s * 0.35),
39294
+ g = q(s * 0.5, m, c, a, i),
39295
+ M = s * (0.5 + (1.7 - 0.5) * ((_t$scanMul = t.scanMul) != null ? _t$scanMul : 1)),
39296
+ u = $(n, (_t$rsPow = t.rsPow) != null ? _t$rsPow : 0.6),
39297
+ h = (_t$dimBase = t.dimBase) != null ? _t$dimBase : 1,
39298
+ b = [],
39299
+ x = (_t$latRings = t.latRings) != null ? _t$latRings : 17,
39300
+ I = (_t$lonDensity = t.lonDensity) != null ? _t$lonDensity : 44;
39301
+ for (var P = 0; P <= x; P++) {
39302
+ var y = -Math.PI / 2 + P / x * Math.PI,
39303
+ D = Math.cos(y),
39304
+ w = Math.sin(y),
39305
+ k = Math.max(1, Math.round(Math.abs(D) * I));
39306
+ for (var v = 0; v < k; v++) {
39307
+ var _t$rBase, _t$rDepth, _t$rBoost, _t$inkFar, _t$inkSpan;
39308
+ var R = v / k * 2 * Math.PI,
39309
+ _g = g(D * Math.cos(R), w, D * Math.sin(R)),
39310
+ _g2 = _slicedToArray(_g, 3),
39311
+ p = _g2[0],
39312
+ d = _g2[1],
39313
+ l = _g2[2],
39314
+ f = (l + 1) / 2,
39315
+ S = ot(R + s * 0.5, M),
39316
+ L = Math.exp(-(S * S) / 0.18) * Math.max(0, l);
39317
+ b.push({
39318
+ x: p,
39319
+ y: d,
39320
+ z: l,
39321
+ 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,
39322
+ white: ((_t$inkFar = t.inkFar) != null ? _t$inkFar : 0.62) - ((_t$inkSpan = t.inkSpan) != null ? _t$inkSpan : 0.54) * f,
39323
+ // dimBase < 1 fades un-scanned dots so the meridian reads clearly
39324
+ a: h + (1 - h) * Math.min(1, L)
39325
+ });
39326
+ }
39327
+ }
39328
+ _(e, b, r, t.rMin);
39329
+ },
39330
+ it = function it(e, n, s, r, t) {
39331
+ var _t$rsPow2, _t$moveCount, _t$latRings2, _t$lonDensity2;
39332
+ var o = n / 2,
39333
+ c = n / 2,
39334
+ a = n / 2 * 0.82,
39335
+ i = q(s * 0.55, 0.35 + 0.1 * Math.sin(s * 0.9), o, c, a),
39336
+ m = $(n, (_t$rsPow2 = t.rsPow) != null ? _t$rsPow2 : 0.6),
39337
+ g = (_t$moveCount = t.moveCount) != null ? _t$moveCount : 14,
39338
+ M = at(g),
39339
+ u = et(s, g, 0.42, 1.2),
39340
+ h = [],
39341
+ b = (_t$latRings2 = t.latRings) != null ? _t$latRings2 : 15,
39342
+ x = (_t$lonDensity2 = t.lonDensity) != null ? _t$lonDensity2 : 40;
39343
+ for (var I = 0; I <= b; I++) {
39344
+ var P = -Math.PI / 2 + I / b * Math.PI,
39345
+ y = Math.cos(P),
39346
+ D = Math.sin(P),
39347
+ w = Math.max(1, Math.round(Math.abs(y) * x));
39348
+ for (var k = 0; k < w; k++) {
39349
+ var _t$rBase2, _t$rDepth2, _t$rActive, _t$inkFar2, _t$inkSpan2;
39350
+ var v = k / w * 2 * Math.PI,
39351
+ _ct = ct([y * Math.cos(v), D, y * Math.sin(v)], M, u),
39352
+ _ct2 = _slicedToArray(_ct, 4),
39353
+ R = _ct2[0],
39354
+ p = _ct2[1],
39355
+ d = _ct2[2],
39356
+ l = _ct2[3],
39357
+ _i = i(R, p, d),
39358
+ _i2 = _slicedToArray(_i, 3),
39359
+ f = _i2[0],
39360
+ S = _i2[1],
39361
+ L = _i2[2],
39362
+ A = (L + 1) / 2;
39363
+ h.push({
39364
+ x: f,
39365
+ y: S,
39366
+ z: L,
39367
+ 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,
39368
+ white: ((_t$inkFar2 = t.inkFar) != null ? _t$inkFar2 : 0.62) - ((_t$inkSpan2 = t.inkSpan) != null ? _t$inkSpan2 : 0.54) * A - (l ? 0.14 : 0)
39369
+ });
39370
+ }
39371
+ }
39372
+ _(e, h, r, t.rMin);
39373
+ },
39374
+ ht = function ht(e, n, s, r, t) {
39375
+ var _t$rsPow3, _t$rings, _t$lonDensity3;
39376
+ var o = n / 2,
39377
+ c = n / 2,
39378
+ a = n / 2 * 0.874,
39379
+ i = q(s * 0.18, 0.38, o, c, 1),
39380
+ m = $(n, (_t$rsPow3 = t.rsPow) != null ? _t$rsPow3 : 0.6),
39381
+ g = [],
39382
+ M = (_t$rings = t.rings) != null ? _t$rings : 15,
39383
+ u = (_t$lonDensity3 = t.lonDensity) != null ? _t$lonDensity3 : 40;
39384
+ for (var h = 0; h <= M; h++) {
39385
+ var b = -Math.PI / 2 + h / M * Math.PI,
39386
+ x = Math.cos(b),
39387
+ I = Math.sin(b),
39388
+ P = 0.62 * Math.sin(s * 2.1 - h * 0.52) + 0.38 * Math.sin(s * 1.27 + h * 0.83),
39389
+ y = a * (0.88 + 0.105 * P),
39390
+ D = Math.max(1, Math.round(Math.abs(x) * u));
39391
+ for (var w = 0; w < D; w++) {
39392
+ var _t$rBase3, _t$rDepth3;
39393
+ var k = w / D * 2 * Math.PI,
39394
+ _i3 = i(x * Math.cos(k) * y, I * y, x * Math.sin(k) * y),
39395
+ _i4 = _slicedToArray(_i3, 3),
39396
+ v = _i4[0],
39397
+ R = _i4[1],
39398
+ p = _i4[2],
39399
+ d = (p / a + 1) / 2,
39400
+ l = Math.max(0, P);
39401
+ g.push({
39402
+ x: v,
39403
+ y: R,
39404
+ z: p,
39405
+ 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,
39406
+ white: 0.66 - 0.56 * d - 0.1 * l
39407
+ });
39408
+ }
39409
+ }
39410
+ _(e, g, r, t.rMin);
39411
+ };
39412
+ function lt(e) {
39413
+ return e * e * (3 - 2 * e);
39414
+ }
39415
+ function Q(e) {
39416
+ var n = e.length,
39417
+ s = [];
39418
+ var r = 0;
39419
+ for (var t = 0; t < n; t++) {
39420
+ var o = e[t],
39421
+ c = e[(t + 1) % n],
39422
+ a = Math.hypot(c[0] - o[0], c[1] - o[1]);
39423
+ s.push(a), r += a;
39424
+ }
39425
+ return function (t) {
39426
+ var o = t * r,
39427
+ c = 0;
39428
+ for (; o > s[c] && c < n - 1;) o -= s[c], c++;
39429
+ var a = e[c],
39430
+ i = e[(c + 1) % n],
39431
+ m = s[c] ? Math.min(1, o / s[c]) : 0;
39432
+ return [a[0] + (i[0] - a[0]) * m, a[1] + (i[1] - a[1]) * m];
39433
+ };
39434
+ }
39435
+ var ut = function ut(e) {
39436
+ var n = -Math.PI / 2 + e * 2 * Math.PI;
39437
+ return [Math.cos(n) * 0.24, Math.sin(n) * 0.24];
39438
+ },
39439
+ Mt = Q([[0, -0.26], [0.24, 0.16], [-0.24, 0.16]]),
39440
+ pt = Q([[0, -0.2], [0.2, -0.2], [0.2, 0.2], [-0.2, 0.2], [-0.2, -0.2]]),
39441
+ Y = [ut, Mt, pt];
39442
+ function dt(e) {
39443
+ return Math.max(6, Math.round(34 * e));
39444
+ }
39445
+ var U = 1.4,
39446
+ J = 0.9,
39447
+ K = U + J,
39448
+ ft = function ft(e, n, s, r, t) {
39449
+ var _t$spread, _t$iconD, _t$rDot;
39450
+ var o = Y.length,
39451
+ c = s % (K * o),
39452
+ a = Math.floor(c / K),
39453
+ i = c - a * K,
39454
+ m = i > U ? lt((i - U) / J) : 0,
39455
+ g = (_t$spread = t.spread) != null ? _t$spread : 1,
39456
+ M = Y[a],
39457
+ u = Y[(a + 1) % o],
39458
+ h = 160,
39459
+ b = [];
39460
+ for (var p = 0; p < h; p++) {
39461
+ var d = p / h,
39462
+ l = M(d),
39463
+ f = u(d);
39464
+ b.push([(l[0] + (f[0] - l[0]) * m) * g, (l[1] + (f[1] - l[1]) * m) * g]);
39465
+ }
39466
+ var x = [];
39467
+ var I = 0;
39468
+ for (var _p = 0; _p < h; _p++) {
39469
+ var _d = b[_p],
39470
+ _l = b[(_p + 1) % h],
39471
+ _f = Math.hypot(_l[0] - _d[0], _l[1] - _d[1]);
39472
+ x.push(_f), I += _f;
39473
+ }
39474
+ var P = dt((_t$iconD = t.iconD) != null ? _t$iconD : 1),
39475
+ y = ((_t$rDot = t.rDot) != null ? _t$rDot : 0.021) * 1.35 * g,
39476
+ D = 1 + 0.02 * Math.sin(i * 3.1),
39477
+ w = [],
39478
+ k = n / 2;
39479
+ var v = 0,
39480
+ R = 0;
39481
+ for (var _p2 = 0; _p2 < P; _p2++) {
39482
+ var _d2 = _p2 / P * I;
39483
+ for (; R + x[v] < _d2 && v < h - 1;) R += x[v], v++;
39484
+ var _l2 = b[v],
39485
+ _f2 = b[(v + 1) % h],
39486
+ S = x[v] ? Math.min(1, (_d2 - R) / x[v]) : 0,
39487
+ L = (_l2[0] + (_f2[0] - _l2[0]) * S) * D,
39488
+ A = (_l2[1] + (_f2[1] - _l2[1]) * S) * D;
39489
+ w.push({
39490
+ x: k + L * n,
39491
+ y: k + A * n,
39492
+ z: 0,
39493
+ r: Math.max(0.35, y * n),
39494
+ white: 0.1
39495
+ });
39496
+ }
39497
+ _(e, w, r, t.rMin);
39498
+ },
39499
+ mt = function mt(e, n, s, r, t) {
39500
+ var _t$rsPow4, _t$orbitN, _t$ghostN, _t$particles;
39501
+ var o = n / 2,
39502
+ c = n / 2,
39503
+ a = n / 2 * 0.82,
39504
+ i = q(s * 0.12, 0.3, o, c, 1),
39505
+ m = $(n, (_t$rsPow4 = t.rsPow) != null ? _t$rsPow4 : 0.6),
39506
+ g = [],
39507
+ M = (_t$orbitN = t.orbitN) != null ? _t$orbitN : 12,
39508
+ u = (_t$ghostN = t.ghostN) != null ? _t$ghostN : 40,
39509
+ h = (_t$particles = t.particles) != null ? _t$particles : 3;
39510
+ for (var b = 0; b < M; b++) {
39511
+ var x = F(b, 1.7),
39512
+ I = F(b, 5.2),
39513
+ P = F(b, 8.9),
39514
+ y = a * (0.45 + 0.52 * x),
39515
+ D = x * 2 * Math.PI,
39516
+ w = Math.acos(2 * I - 1),
39517
+ k = Math.sin(w) * Math.cos(D),
39518
+ v = Math.cos(w),
39519
+ R = Math.sin(w) * Math.sin(D);
39520
+ var p = -v,
39521
+ d = k;
39522
+ var l = 0,
39523
+ f = Math.max(1e-6, Math.sqrt(p * p + d * d));
39524
+ p /= f, d /= f;
39525
+ var S = v * l - R * d,
39526
+ L = R * p - k * l,
39527
+ A = k * d - v * p,
39528
+ B = (0.25 + 0.55 * P) * (P > 0.5 ? 1 : -1);
39529
+ for (var C = 0; C < u; C++) {
39530
+ var _t$ghostR, _t$ghostA;
39531
+ var E = C / u * 2 * Math.PI,
39532
+ _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),
39533
+ _i6 = _slicedToArray(_i5, 3),
39534
+ T = _i6[0],
39535
+ z = _i6[1],
39536
+ N = _i6[2],
39537
+ O = (N / y + 1) / 2;
39538
+ g.push({
39539
+ x: T,
39540
+ y: z,
39541
+ z: N,
39542
+ r: ((_t$ghostR = t.ghostR) != null ? _t$ghostR : 0.9) * m,
39543
+ white: 0.72,
39544
+ a: ((_t$ghostA = t.ghostA) != null ? _t$ghostA : 0.5) * (0.4 + 0.6 * O)
39545
+ });
39546
+ }
39547
+ for (var _C = 0; _C < h; _C++) {
39548
+ var _t$partR, _t$partRDepth;
39549
+ var _E = s * B + _C / h * 2 * Math.PI + I * 6,
39550
+ _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),
39551
+ _i8 = _slicedToArray(_i7, 3),
39552
+ _T = _i8[0],
39553
+ _z = _i8[1],
39554
+ _N = _i8[2],
39555
+ _O = (_N / y + 1) / 2;
39556
+ g.push({
39557
+ x: _T,
39558
+ y: _z,
39559
+ z: _N,
39560
+ r: (((_t$partR = t.partR) != null ? _t$partR : 1.2) + ((_t$partRDepth = t.partRDepth) != null ? _t$partRDepth : 1.6) * _O) * m,
39561
+ white: 0.3 - 0.22 * _O
39562
+ });
39563
+ }
39564
+ }
39565
+ _(e, g, r, t.rMin);
39566
+ },
39567
+ gt = function gt(e, n, s, r, t) {
39568
+ var _t$spin, _t$rsPow5, _t$ghostN2, _t$lanes, _t$segs, _t$bandMul;
39569
+ var o = n / 2,
39570
+ c = n / 2,
39571
+ a = n / 2 * 0.78,
39572
+ i = (_t$spin = t.spin) != null ? _t$spin : 1,
39573
+ m = q(s * 0.1 * i, 0.3, o, c, 1),
39574
+ g = $(n, (_t$rsPow5 = t.rsPow) != null ? _t$rsPow5 : 0.6),
39575
+ M = [],
39576
+ u = (_t$ghostN2 = t.ghostN) != null ? _t$ghostN2 : 150;
39577
+ for (var f = 0; f < u; f++) {
39578
+ var S = st(f, u),
39579
+ _m = m(S[0] * a, S[1] * a, S[2] * a),
39580
+ _m2 = _slicedToArray(_m, 3),
39581
+ L = _m2[0],
39582
+ A = _m2[1],
39583
+ B = _m2[2],
39584
+ C = (B / a + 1) / 2;
39585
+ M.push({
39586
+ x: L,
39587
+ y: A,
39588
+ z: B,
39589
+ r: 0.8 * g,
39590
+ white: 0.78,
39591
+ a: 0.1 + 0.22 * C
39592
+ });
39593
+ }
39594
+ var h = s * 0.24 * i,
39595
+ b = 0.55 + 0.3 * Math.sin(s * 0.18) * i,
39596
+ x = Math.cos(h),
39597
+ I = 0,
39598
+ P = Math.sin(h),
39599
+ y = -P * Math.sin(b),
39600
+ D = Math.cos(b),
39601
+ w = x * Math.sin(b),
39602
+ k = I * w - P * D,
39603
+ v = P * y - x * w,
39604
+ R = x * D - I * y,
39605
+ p = (_t$lanes = t.lanes) != null ? _t$lanes : 5,
39606
+ d = (_t$segs = t.segs) != null ? _t$segs : 88,
39607
+ l = Math.max(1, Math.round(p * ((_t$bandMul = t.bandMul) != null ? _t$bandMul : 1)));
39608
+ for (var _f3 = 0; _f3 < l; _f3++) {
39609
+ var _S = (_f3 - (l - 1) / 2) * 0.075,
39610
+ _L = Math.abs(_f3 - (l - 1) / 2) / Math.max(1, (l - 1) / 2);
39611
+ for (var _A = 0; _A < d; _A++) {
39612
+ var _t$wobMul, _t$rBase4, _t$rDepth4;
39613
+ var _B = _A / d * 2 * Math.PI,
39614
+ _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),
39615
+ E = _S + _C2,
39616
+ T = x * Math.cos(_B) + y * Math.sin(_B) + k * E,
39617
+ z = I * Math.cos(_B) + D * Math.sin(_B) + v * E,
39618
+ N = P * Math.cos(_B) + w * Math.sin(_B) + R * E,
39619
+ O = Math.sqrt(T * T + z * z + N * N),
39620
+ _m3 = m(T / O * a, z / O * a, N / O * a),
39621
+ _m4 = _slicedToArray(_m3, 3),
39622
+ X = _m4[0],
39623
+ Z = _m4[1],
39624
+ W = _m4[2],
39625
+ j = (W / a + 1) / 2;
39626
+ M.push({
39627
+ x: X,
39628
+ y: Z,
39629
+ z: W,
39630
+ 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,
39631
+ white: 0.52 - 0.44 * j + 0.18 * _L,
39632
+ a: 0.4 + 0.6 * j
39633
+ });
39634
+ }
39635
+ }
39636
+ _(e, M, r, t.rMin);
39637
+ },
39638
+ bt = {
39639
+ orbits: mt,
39640
+ globe: rt,
39641
+ rubik: it,
39642
+ wave: ht,
39643
+ ribbon: gt,
39644
+ morph: ft
39645
+ },
39646
+ yt = [["latRings", "lonDensity"], ["rings", "lonDensity"], ["lanes", "segs"]],
39647
+ xt = ["orbitN", "ghostN"],
39648
+ vt = ["iconD"],
39649
+ wt = ["rBase", "rDepth", "rActive", "rDot", "ghostR", "partR", "partRDepth"];
39650
+ function kt(e, n) {
39651
+ var s = _extends({}, e),
39652
+ r = /* @__PURE__ */new Set(),
39653
+ t = Math.sqrt(n);
39654
+ for (var _iterator2 = _createForOfIteratorHelperLoose$c(yt), _step2; !(_step2 = _iterator2()).done;) {
39655
+ var _step2$value = _slicedToArray(_step2.value, 2),
39656
+ o = _step2$value[0],
39657
+ c = _step2$value[1];
39658
+ var a = s[o],
39659
+ i = s[c];
39660
+ 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));
39661
+ }
39662
+ for (var _iterator3 = _createForOfIteratorHelperLoose$c(xt), _step3; !(_step3 = _iterator3()).done;) {
39663
+ var _o = _step3.value;
39664
+ var _c = s[_o];
39665
+ _c != null && !r.has(_o) && (s[_o] = Math.max(1, Math.round(_c * n)));
39666
+ }
39667
+ for (var _iterator4 = _createForOfIteratorHelperLoose$c(vt), _step4; !(_step4 = _iterator4()).done;) {
39668
+ var _o2 = _step4.value;
39669
+ var _c2 = s[_o2];
39670
+ _c2 != null && (s[_o2] = Math.max(0.02, _c2 * n));
39671
+ }
39672
+ return s;
39673
+ }
39674
+ function Pt(e, n) {
39675
+ var _s$rSizeMul;
39676
+ var s = _extends({}, e);
39677
+ for (var _iterator5 = _createForOfIteratorHelperLoose$c(wt), _step5; !(_step5 = _iterator5()).done;) {
39678
+ var r = _step5.value;
39679
+ var t = s[r];
39680
+ t != null && (s[r] = t * n);
39681
+ }
39682
+ return s.rSizeMul = ((_s$rSizeMul = s.rSizeMul) != null ? _s$rSizeMul : 1) * n, s;
39683
+ }
39684
+ var Dt = {
39685
+ globe: {
39686
+ latRings: 17,
39687
+ lonDensity: 44,
39688
+ rBase: 0.6,
39689
+ rDepth: 1.7,
39690
+ rBoost: 1,
39691
+ inkFar: 0.62,
39692
+ inkSpan: 0.54,
39693
+ rsPow: 0.6,
39694
+ rMin: 0.3
39695
+ },
39696
+ orbits: {
39697
+ orbitN: 12,
39698
+ ghostN: 40,
39699
+ ghostR: 0.9,
39700
+ ghostA: 0.5,
39701
+ particles: 3,
39702
+ partR: 1.2,
39703
+ partRDepth: 1.6,
39704
+ rsPow: 0.6,
39705
+ rMin: 0.3
39706
+ },
39707
+ rubik: {
39708
+ latRings: 15,
39709
+ lonDensity: 40,
39710
+ moveCount: 14,
39711
+ rBase: 0.6,
39712
+ rDepth: 1.7,
39713
+ rActive: 0.3,
39714
+ inkFar: 0.62,
39715
+ inkSpan: 0.54,
39716
+ rsPow: 0.6,
39717
+ rMin: 0.3
39718
+ },
39719
+ wave: {
39720
+ rings: 15,
39721
+ lonDensity: 40,
39722
+ rBase: 0.6,
39723
+ rDepth: 1.7,
39724
+ rsPow: 0.6,
39725
+ rMin: 0.3
39726
+ },
39727
+ ribbon: {
39728
+ lanes: 5,
39729
+ segs: 88,
39730
+ ghostN: 150,
39731
+ rBase: 1.1,
39732
+ rDepth: 1.7,
39733
+ rsPow: 0.6,
39734
+ rMin: 0.3
39735
+ },
39736
+ morph: {
39737
+ rDot: 0.021,
39738
+ iconD: 1,
39739
+ rMin: 0.25
39740
+ }
39741
+ },
39742
+ Rt = {
39743
+ working: "orbits",
39744
+ searching: "globe",
39745
+ solving: "rubik",
39746
+ listening: "wave",
39747
+ composing: "ribbon",
39748
+ shaping: "morph"
39749
+ },
39750
+ St = {
39751
+ orbits: {
39752
+ 64: {
39753
+ speed: 1.885,
39754
+ count: 1,
39755
+ size: 1
39756
+ },
39757
+ 20: {
39758
+ speed: 3.9,
39759
+ count: 0.238,
39760
+ size: 2.4
39761
+ }
39762
+ },
39763
+ globe: {
39764
+ 64: {
39765
+ speed: 2.015,
39766
+ count: 0.42,
39767
+ size: 1.15,
39768
+ extra: {
39769
+ scanMul: 4.08,
39770
+ dimBase: 0.45
39771
+ }
39772
+ },
39773
+ 20: {
39774
+ speed: 2.665,
39775
+ count: 0.105,
39776
+ size: 1.75,
39777
+ extra: {
39778
+ scanMul: 4.335,
39779
+ dimBase: 0.45
39780
+ }
39781
+ }
39782
+ },
39783
+ rubik: {
39784
+ 64: {
39785
+ speed: 1.82,
39786
+ count: 0.35,
39787
+ size: 1.05
39788
+ },
39789
+ 20: {
39790
+ speed: 1.95,
39791
+ count: 0.088,
39792
+ size: 1.9
39793
+ }
39794
+ },
39795
+ wave: {
39796
+ 64: {
39797
+ speed: 4.388,
39798
+ count: 0.341,
39799
+ size: 1
39800
+ },
39801
+ 20: {
39802
+ speed: 3.998,
39803
+ count: 0.105,
39804
+ size: 1.6
39805
+ }
39806
+ },
39807
+ ribbon: {
39808
+ 64: {
39809
+ speed: 2.34,
39810
+ count: 0.25,
39811
+ size: 0.85,
39812
+ extra: {
39813
+ spin: 0,
39814
+ bandMul: 3.9,
39815
+ wobMul: 1
39816
+ }
39817
+ },
39818
+ 20: {
39819
+ speed: 3.12,
39820
+ count: 0.051,
39821
+ size: 1.073,
39822
+ extra: {
39823
+ spin: 0,
39824
+ bandMul: 4.94,
39825
+ wobMul: 1
39826
+ }
39827
+ }
39828
+ },
39829
+ morph: {
39830
+ 64: {
39831
+ speed: 2.405,
39832
+ count: 0.54,
39833
+ size: 0.395,
39834
+ extra: {
39835
+ spread: 1.45
39836
+ }
39837
+ },
39838
+ 20: {
39839
+ speed: 2.08,
39840
+ count: 0.53,
39841
+ size: 1.011,
39842
+ extra: {
39843
+ spread: 1.45
39844
+ }
39845
+ }
39846
+ }
39847
+ },
39848
+ H = /* @__PURE__ */new Map();
39849
+ function It(e, n) {
39850
+ var s = e + "-" + n,
39851
+ r = H.get(s);
39852
+ if (r) return r;
39853
+ var t = Rt[e],
39854
+ o = St[t][n];
39855
+ var c = _extends({}, Dt[t]);
39856
+ o.count !== 1 && (c = kt(c, o.count)), o.size !== 1 && (c = Pt(c, o.size)), o.extra && (c = _extends({}, c, o.extra));
39857
+ var a = {
39858
+ mode: t,
39859
+ speed: o.speed,
39860
+ opts: c
39861
+ };
39862
+ return H.set(s, a), a;
39863
+ }
39864
+ function Et(e) {
39865
+ var n = e;
39866
+ for (; n;) {
39867
+ var s = n.getAttribute("data-theme");
39868
+ if (s === "dark") return true;
39869
+ if (s === "light") return false;
39870
+ if (n.classList.contains("dark")) return true;
39871
+ if (n.classList.contains("light")) return false;
39872
+ n = n.parentElement;
39873
+ }
39874
+ return null;
39875
+ }
39876
+ function Lt() {
39877
+ return typeof matchMedia > "u" || matchMedia("(prefers-color-scheme: dark)").matches;
39878
+ }
39879
+ function At(e, n) {
39880
+ var _V = React.useState(true),
39881
+ _V2 = _slicedToArray(_V, 2),
39882
+ s = _V2[0],
39883
+ r = _V2[1];
39884
+ return React.useEffect(function () {
39885
+ if (e === "dark") {
39886
+ r(true);
39887
+ return;
39888
+ }
39889
+ if (e === "light") {
39890
+ r(false);
39891
+ return;
39892
+ }
39893
+ var t = function t() {
39894
+ var i = Et(n.current);
39895
+ r(i != null ? i : Lt());
39896
+ };
39897
+ t();
39898
+ var o = typeof matchMedia < "u" ? matchMedia("(prefers-color-scheme: dark)") : null,
39899
+ c = function c() {
39900
+ return t();
39901
+ };
39902
+ o == null || o.addEventListener("change", c);
39903
+ var a = null;
39904
+ return typeof MutationObserver < "u" && n.current && (a = new MutationObserver(t), a.observe(document.documentElement, {
39905
+ attributes: true,
39906
+ attributeFilter: ["class", "data-theme"],
39907
+ subtree: true
39908
+ })), function () {
39909
+ o == null || o.removeEventListener("change", c), a == null || a.disconnect();
39910
+ };
39911
+ }, [e, n]), s;
39912
+ }
39913
+ function Bt() {
39914
+ var _V3 = React.useState(false),
39915
+ _V4 = _slicedToArray(_V3, 2),
39916
+ e = _V4[0],
39917
+ n = _V4[1];
39918
+ return React.useEffect(function () {
39919
+ if (typeof matchMedia > "u") return;
39920
+ var s = matchMedia("(prefers-reduced-motion: reduce)");
39921
+ n(s.matches);
39922
+ var r = function r(t) {
39923
+ return n(t.matches);
39924
+ };
39925
+ return s.addEventListener("change", r), function () {
39926
+ return s.removeEventListener("change", r);
39927
+ };
39928
+ }, []), e;
39929
+ }
39930
+ var Ct = {
39931
+ working: "Working…",
39932
+ searching: "Searching…",
39933
+ solving: "Solving…",
39934
+ listening: "Listening…",
39935
+ composing: "Composing…",
39936
+ shaping: "Shaping…"
39937
+ };
39938
+ function Tt(_ref) {
39939
+ var _ref$state = _ref.state,
39940
+ e = _ref$state === void 0 ? "working" : _ref$state,
39941
+ _ref$size = _ref.size,
39942
+ n = _ref$size === void 0 ? 64 : _ref$size,
39943
+ _ref$theme = _ref.theme,
39944
+ s = _ref$theme === void 0 ? "auto" : _ref$theme,
39945
+ _ref$speed = _ref.speed,
39946
+ r = _ref$speed === void 0 ? 1 : _ref$speed,
39947
+ _ref$paused = _ref.paused,
39948
+ t = _ref$paused === void 0 ? false : _ref$paused,
39949
+ o = _ref.style,
39950
+ c = _ref["aria-label"],
39951
+ a = _objectWithoutPropertiesLoose(_ref, _excluded$a);
39952
+ var i = React.useRef(null),
39953
+ m = At(s, i),
39954
+ g = Bt();
39955
+ return React.useEffect(function () {
39956
+ var M = i.current;
39957
+ if (!M) return;
39958
+ var u = Math.min(2, typeof devicePixelRatio < "u" && devicePixelRatio || 1);
39959
+ M.width = Math.round(n * u), M.height = Math.round(n * u);
39960
+ var h = M.getContext("2d");
39961
+ if (!h) return;
39962
+ var _It = It(e, n),
39963
+ b = _It.mode,
39964
+ x = _It.speed,
39965
+ I = _It.opts,
39966
+ P = bt[b],
39967
+ y = x * r,
39968
+ D = function D(S) {
39969
+ h.setTransform(u, 0, 0, u, 0, 0), h.clearRect(0, 0, n, n), P(h, n, S, m, I);
39970
+ };
39971
+ if (g) {
39972
+ D(0.6);
39973
+ return;
39974
+ }
39975
+ var w = 0,
39976
+ k = false;
39977
+ var _v = function v() {
39978
+ D(performance.now() / 1e3 * y), k && (w = requestAnimationFrame(_v));
39979
+ },
39980
+ R = function R() {
39981
+ k || t || (k = true, w = requestAnimationFrame(_v));
39982
+ },
39983
+ p = function p() {
39984
+ k = false, cancelAnimationFrame(w);
39985
+ };
39986
+ D(performance.now() / 1e3 * y);
39987
+ var d = true;
39988
+ var l = typeof IntersectionObserver < "u" ? new IntersectionObserver(function (_ref2) {
39989
+ var _ref3 = _slicedToArray(_ref2, 1),
39990
+ S = _ref3[0];
39991
+ d = S.isIntersecting, d && document.visibilityState !== "hidden" ? R() : p();
39992
+ }) : null;
39993
+ l == null || l.observe(M);
39994
+ var f = function f() {
39995
+ document.visibilityState === "hidden" ? p() : d && R();
39996
+ };
39997
+ return document.addEventListener("visibilitychange", f), l || R(), function () {
39998
+ p(), l == null || l.disconnect(), document.removeEventListener("visibilitychange", f);
39999
+ };
40000
+ }, [e, n, m, r, t, g]), /* @__PURE__ */jsxRuntime.jsx("canvas", _extends({
40001
+ ref: i,
40002
+ role: "img",
40003
+ "aria-label": c != null ? c : Ct[e],
40004
+ style: _extends({
40005
+ width: n,
40006
+ height: n,
40007
+ display: "block"
40008
+ }, o)
40009
+ }, a));
40010
+ }
40011
+
39136
40012
  var _templateObject$2, _templateObject2$2;
39137
40013
  function OrbStatusScreen(_ref) {
39138
40014
  var state = _ref.state,
@@ -39141,7 +40017,7 @@ function OrbStatusScreen(_ref) {
39141
40017
  loadingStage = _ref.loadingStage;
39142
40018
  var theme = styledComponents.useTheme();
39143
40019
  var label = accessibleLabel != null ? accessibleLabel : typeof text === 'string' ? text : undefined;
39144
- var orb = jsxRuntime.jsx(thinkingOrbs.ThinkingOrb, {
40020
+ var orb = jsxRuntime.jsx(Tt, {
39145
40021
  state: state,
39146
40022
  size: 64,
39147
40023
  style: {
@@ -43460,7 +44336,7 @@ function createDocumentCaptureController(config) {
43460
44336
  var createCanvas = (_config$io$createCanv = (_config$io6 = config.io) == null ? void 0 : _config$io6.createCanvas) != null ? _config$io$createCanv : function () {
43461
44337
  return document.createElement('canvas');
43462
44338
  };
43463
- var store = vanilla.createStore(function () {
44339
+ var store = createStore(function () {
43464
44340
  var _config$documents;
43465
44341
  return createInitialDocumentCaptureState(buildEntries((_config$documents = config.documents) != null ? _config$documents : [], createObjectUrl));
43466
44342
  });
@@ -48453,7 +49329,7 @@ function mapCustomerIdAndBiometricsEnrollmentProps(props, ctx) {
48453
49329
  });
48454
49330
  }
48455
49331
 
48456
- var webSdkVersion = '2.5.81-changeset-release-develop-3ddb15a';
49332
+ var webSdkVersion = '2.5.81-react16compat.0';
48457
49333
 
48458
49334
  // GENERATED by scripts/styleBagTypes.mjs from
48459
49335
  // src/__fixtures__/sdk2StyleBags.json and the mapper sweep — do not
@@ -51343,6 +52219,25 @@ var CustomerIdAndBiometricsEnrollment = function CustomerIdAndBiometricsEnrollme
51343
52219
  }, mapCustomerIdAndBiometricsEnrollmentProps(props, ctx)), props.children);
51344
52220
  };
51345
52221
 
52222
+ /**
52223
+ * react-16-compat: React 16/17 have no `createRoot`, so this adapts the legacy
52224
+ * `ReactDOM.render` API to the root shape the rest of this module expects.
52225
+ * Keeping that shape means the teardown logic below stays byte-identical to
52226
+ * develop and merges cleanly. Runs on React 16.14 through 18; React 19
52227
+ * removed `ReactDOM.render`, which is why this build's peer range stops at 18.
52228
+ */
52229
+ function createRoot(container) {
52230
+ return {
52231
+ render: function render(element) {
52232
+ // eslint-disable-next-line react/no-deprecated -- the only mount API React 16 has
52233
+ ReactDOM__default.default.render(element, container);
52234
+ },
52235
+ unmount: function unmount() {
52236
+ // eslint-disable-next-line react/no-deprecated -- pairs with ReactDOM.render above
52237
+ ReactDOM__default.default.unmountComponentAtNode(container);
52238
+ }
52239
+ };
52240
+ }
51346
52241
  /**
51347
52242
  * Targets whose `remove` this module has already wrapped. Permanent: the
51348
52243
  * wrapper is installed at most once per element, so repeat renders can never
@@ -51370,8 +52265,7 @@ function renderElement(component, targetElement) {
51370
52265
  targetElement = document.createElement('div');
51371
52266
  document.body.append(targetElement);
51372
52267
  }
51373
- var root = ReactDOM__default.default.createRoot(targetElement);
51374
- root.render(/*#__PURE__*/React__default.default.createElement(OverlayContainer, null, component));
52268
+ var root = createRoot(targetElement);
51375
52269
  if ('remove' in targetElement) {
51376
52270
  var element_1 = targetElement;
51377
52271
  // Always point at the newest root, even when the wrapper is already
@@ -51421,6 +52315,10 @@ function renderElement(component, targetElement) {
51421
52315
  };
51422
52316
  }
51423
52317
  }
52318
+ // react-16-compat: render LAST. A legacy root mounts synchronously, so layout
52319
+ // effects (e.g. a customer `loadingSpinner`) run inside this call; one that
52320
+ // calls `.remove()` must already hit the wrapper above, not the native method.
52321
+ root.render(/*#__PURE__*/React__default.default.createElement(OverlayContainer, null, component));
51424
52322
  return targetElement;
51425
52323
  }
51426
52324
  function renderComponent(Component, targetElement, options) {