@microblink/capture 1.2.3 → 1.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/capture.js CHANGED
@@ -802,13 +802,13 @@ var Er = { exports: {} };
802
802
  (function(e, t) {
803
803
  (function(n, i) {
804
804
  var r = "1.0.36", o = "", s = "?", a = "function", c = "undefined", u = "object", l = "string", g = "major", f = "model", h = "name", d = "type", M = "vendor", y = "version", m = "architecture", T = "console", N = "mobile", j = "tablet", E = "smarttv", A = "wearable", S = "embedded", I = 350, z = "Amazon", C = "Apple", P = "ASUS", F = "BlackBerry", x = "Browser", D = "Chrome", b = "Edge", w = "Firefox", v = "Google", O = "Huawei", _ = "LG", K = "Microsoft", q = "Motorola", oe = "Opera", Te = "Samsung", et = "Sharp", We = "Sony", k = "Xiaomi", de = "Zebra", ue = "Facebook", vt = "Chromium OS", jn = "Mac OS", Ot = function($, re) {
805
- var H = {};
805
+ var Q = {};
806
806
  for (var ae in $)
807
- re[ae] && re[ae].length % 2 === 0 ? H[ae] = re[ae].concat($[ae]) : H[ae] = $[ae];
808
- return H;
807
+ re[ae] && re[ae].length % 2 === 0 ? Q[ae] = re[ae].concat($[ae]) : Q[ae] = $[ae];
808
+ return Q;
809
809
  }, Ct = function($) {
810
- for (var re = {}, H = 0; H < $.length; H++)
811
- re[$[H].toUpperCase()] = $[H];
810
+ for (var re = {}, Q = 0; Q < $.length; Q++)
811
+ re[$[Q].toUpperCase()] = $[Q];
812
812
  return re;
813
813
  }, $n = function($, re) {
814
814
  return typeof $ === l ? En(re).indexOf(En($)) !== -1 : !1;
@@ -820,22 +820,22 @@ var Er = { exports: {} };
820
820
  if (typeof $ === l)
821
821
  return $ = $.replace(/^\s\s*/, o), typeof re === c ? $ : $.substring(0, I);
822
822
  }, An = function($, re) {
823
- for (var H = 0, ae, yt, tt, ne, B, nt; H < re.length && !B; ) {
824
- var Zi = re[H], Qo = re[H + 1];
823
+ for (var Q = 0, ae, yt, tt, ne, B, nt; Q < re.length && !B; ) {
824
+ var Zi = re[Q], Qo = re[Q + 1];
825
825
  for (ae = yt = 0; ae < Zi.length && !B && Zi[ae]; )
826
826
  if (B = Zi[ae++].exec($), B)
827
827
  for (tt = 0; tt < Qo.length; tt++)
828
828
  nt = B[++yt], ne = Qo[tt], typeof ne === u && ne.length > 0 ? ne.length === 2 ? typeof ne[1] == a ? this[ne[0]] = ne[1].call(this, nt) : this[ne[0]] = ne[1] : ne.length === 3 ? typeof ne[1] === a && !(ne[1].exec && ne[1].test) ? this[ne[0]] = nt ? ne[1].call(this, nt, ne[2]) : i : this[ne[0]] = nt ? nt.replace(ne[1], ne[2]) : i : ne.length === 4 && (this[ne[0]] = nt ? ne[3].call(this, nt.replace(ne[1], ne[2])) : i) : this[ne] = nt || i;
829
- H += 2;
829
+ Q += 2;
830
830
  }
831
831
  }, Wi = function($, re) {
832
- for (var H in re)
833
- if (typeof re[H] === u && re[H].length > 0) {
834
- for (var ae = 0; ae < re[H].length; ae++)
835
- if ($n(re[H][ae], $))
836
- return H === s ? i : H;
837
- } else if ($n(re[H], $))
838
- return H === s ? i : H;
832
+ for (var Q in re)
833
+ if (typeof re[Q] === u && re[Q].length > 0) {
834
+ for (var ae = 0; ae < re[Q].length; ae++)
835
+ if ($n(re[Q][ae], $))
836
+ return Q === s ? i : Q;
837
+ } else if ($n(re[Q], $))
838
+ return Q === s ? i : Q;
839
839
  return $;
840
840
  }, Ou = {
841
841
  "1.0": "/8",
@@ -1884,16 +1884,16 @@ var Er = { exports: {} };
1884
1884
  }, Ze = function($, re) {
1885
1885
  if (typeof $ === u && (re = $, $ = i), !(this instanceof Ze))
1886
1886
  return new Ze($, re).getResult();
1887
- var H = typeof n !== c && n.navigator ? n.navigator : i, ae = $ || (H && H.userAgent ? H.userAgent : o), yt = H && H.userAgentData ? H.userAgentData : i, tt = re ? Ot(Ho, re) : Ho, ne = H && H.userAgent == ae;
1887
+ var Q = typeof n !== c && n.navigator ? n.navigator : i, ae = $ || (Q && Q.userAgent ? Q.userAgent : o), yt = Q && Q.userAgentData ? Q.userAgentData : i, tt = re ? Ot(Ho, re) : Ho, ne = Q && Q.userAgent == ae;
1888
1888
  return this.getBrowser = function() {
1889
1889
  var B = {};
1890
- return B[h] = i, B[y] = i, An.call(B, ae, tt.browser), B[g] = vu(B[y]), ne && H && H.brave && typeof H.brave.isBrave == a && (B[h] = "Brave"), B;
1890
+ return B[h] = i, B[y] = i, An.call(B, ae, tt.browser), B[g] = vu(B[y]), ne && Q && Q.brave && typeof Q.brave.isBrave == a && (B[h] = "Brave"), B;
1891
1891
  }, this.getCPU = function() {
1892
1892
  var B = {};
1893
1893
  return B[m] = i, An.call(B, ae, tt.cpu), B;
1894
1894
  }, this.getDevice = function() {
1895
1895
  var B = {};
1896
- return B[M] = i, B[f] = i, B[d] = i, An.call(B, ae, tt.device), ne && !B[d] && yt && yt.mobile && (B[d] = N), ne && B[f] == "Macintosh" && H && typeof H.standalone !== c && H.maxTouchPoints && H.maxTouchPoints > 2 && (B[f] = "iPad", B[d] = j), B;
1896
+ return B[M] = i, B[f] = i, B[d] = i, An.call(B, ae, tt.device), ne && !B[d] && yt && yt.mobile && (B[d] = N), ne && B[f] == "Macintosh" && Q && typeof Q.standalone !== c && Q.maxTouchPoints && Q.maxTouchPoints > 2 && (B[f] = "iPad", B[d] = j), B;
1897
1897
  }, this.getEngine = function() {
1898
1898
  var B = {};
1899
1899
  return B[h] = i, B[y] = i, An.call(B, ae, tt.engine), B;
@@ -1924,8 +1924,8 @@ var Er = { exports: {} };
1924
1924
  }, Ht.ua.set = function($) {
1925
1925
  Wn.setUA($);
1926
1926
  var re = Wn.getResult();
1927
- for (var H in re)
1928
- Ht.ua[H] = re[H];
1927
+ for (var Q in re)
1928
+ Ht.ua[Q] = re[Q];
1929
1929
  };
1930
1930
  }
1931
1931
  })(typeof window == "object" ? window : gl);
@@ -3243,7 +3243,7 @@ function Ve(e, t, n) {
3243
3243
  const i = ki(e, t, !1, Mt);
3244
3244
  Mn(i);
3245
3245
  }
3246
- function Q(e, t, n) {
3246
+ function H(e, t, n) {
3247
3247
  Fa = cf;
3248
3248
  const i = ki(e, t, !1, Mt);
3249
3249
  (!n || !n.render) && (i.user = !0), ft ? ft.push(i) : Mn(i);
@@ -3287,7 +3287,7 @@ function Je(e, t, n) {
3287
3287
  };
3288
3288
  }
3289
3289
  function xt(e) {
3290
- Q(() => ye(e));
3290
+ H(() => ye(e));
3291
3291
  }
3292
3292
  function V(e) {
3293
3293
  return te === null || (te.cleanups === null ? te.cleanups = [e] : te.cleanups.push(e)), e;
@@ -4259,7 +4259,7 @@ function qa(e, t = !1) {
4259
4259
  function Mo(e) {
4260
4260
  const { useShadow: t } = e, n = document.createTextNode(""), i = () => e.mount || document.body, r = tf();
4261
4261
  let o, s = !!Ra.context;
4262
- return Q(
4262
+ return H(
4263
4263
  () => {
4264
4264
  o || (o = nf(r, () => Y(() => e.children)));
4265
4265
  const a = i();
@@ -4699,7 +4699,7 @@ function ad(e, t, n, i) {
4699
4699
  o && fs(p(t)).forEach((s) => sd(o, s, n, i));
4700
4700
  });
4701
4701
  };
4702
- typeof e == "function" ? Q(r) : Ve(r);
4702
+ typeof e == "function" ? H(r) : Ve(r);
4703
4703
  }
4704
4704
  var nr = Symbol("fallback");
4705
4705
  function ds(e) {
@@ -5258,7 +5258,7 @@ function Ud(e, t = []) {
5258
5258
  getDisabled: p(e.getDisabled),
5259
5259
  getSectionChildren: p(e.getSectionChildren)
5260
5260
  }), [i, r] = R(e.factory(n));
5261
- return Q(Je([
5261
+ return H(Je([
5262
5262
  () => p(e.dataSource),
5263
5263
  () => p(e.getKey),
5264
5264
  () => p(e.getTextValue),
@@ -5333,7 +5333,7 @@ function Rd(e) {
5333
5333
  const t = (n) => {
5334
5334
  n.key === sc.Escape && e.onEscapeKeyDown?.(n);
5335
5335
  };
5336
- Q(() => {
5336
+ H(() => {
5337
5337
  if (p(e.isDisabled))
5338
5338
  return;
5339
5339
  const n = e.ownerDocument?.() ?? Ue();
@@ -5478,7 +5478,7 @@ function yc(e, t) {
5478
5478
  const M = vn(d);
5479
5479
  return !M || Ge(d, M) ? !1 : fc(M);
5480
5480
  };
5481
- Q(() => {
5481
+ H(() => {
5482
5482
  const d = t();
5483
5483
  if (!d)
5484
5484
  return;
@@ -5496,7 +5496,7 @@ function yc(e, t) {
5496
5496
  h() && m.preventDefault(), d.addEventListener(or, a), d.dispatchEvent(m), m.defaultPrevented || je(M ?? c().body), d.removeEventListener(or, a), As.remove(r);
5497
5497
  }, 0);
5498
5498
  });
5499
- }), Q(() => {
5499
+ }), H(() => {
5500
5500
  const d = t();
5501
5501
  if (!d || !p(e.trapFocus) || n())
5502
5502
  return;
@@ -5510,7 +5510,7 @@ function yc(e, t) {
5510
5510
  c().addEventListener("focusin", M), c().addEventListener("focusout", y), V(() => {
5511
5511
  c().removeEventListener("focusin", M), c().removeEventListener("focusout", y);
5512
5512
  });
5513
- }), Q(() => {
5513
+ }), H(() => {
5514
5514
  const d = t();
5515
5515
  if (!d || !p(e.trapFocus) || n())
5516
5516
  return;
@@ -5543,7 +5543,7 @@ function yc(e, t) {
5543
5543
  * https://github.com/chakra-ui/zag/blob/c1e6c7689b22bf58741ded7cf224dd9baec2a046/packages/utilities/form-utils/src/form.ts
5544
5544
  */
5545
5545
  function Wd(e, t) {
5546
- Q(Je(e, (n) => {
5546
+ H(Je(e, (n) => {
5547
5547
  if (n == null)
5548
5548
  return;
5549
5549
  const i = Zd(n);
@@ -5574,7 +5574,7 @@ const Xd = "data-live-announcer";
5574
5574
  * https://github.com/adobe/react-spectrum/blob/810579b671791f1593108f62cdc1893de3a220e3/packages/@react-aria/overlays/src/ariaHideOutside.ts
5575
5575
  */
5576
5576
  function mc(e) {
5577
- Q(() => {
5577
+ H(() => {
5578
5578
  p(e.isDisabled) || V(Jd(p(e.targets), p(e.root)));
5579
5579
  });
5580
5580
  }
@@ -5686,7 +5686,7 @@ function eg(e, t) {
5686
5686
  });
5687
5687
  h.dispatchEvent(M);
5688
5688
  };
5689
- Q(() => {
5689
+ H(() => {
5690
5690
  p(e.isDisabled) || (n = window.setTimeout(() => {
5691
5691
  r().addEventListener("pointerdown", u, !0);
5692
5692
  }, 0), r().addEventListener("focusin", l, !0), V(() => {
@@ -5718,15 +5718,15 @@ function pi(e) {
5718
5718
  MOUNT: "mounted"
5719
5719
  }
5720
5720
  });
5721
- return Q(Je(s, (c) => {
5721
+ return H(Je(s, (c) => {
5722
5722
  const u = ii(i);
5723
5723
  o = c === "mounted" ? u : "none";
5724
- })), Q(Je(e, (c) => {
5724
+ })), H(Je(e, (c) => {
5725
5725
  if (r === c)
5726
5726
  return;
5727
5727
  const u = ii(i);
5728
5728
  c ? a("MOUNT") : i?.display === "none" ? a("UNMOUNT") : a(r && o !== u ? "ANIMATION_OUT" : "UNMOUNT"), r = c;
5729
- })), Q(Je(t, (c) => {
5729
+ })), H(Je(t, (c) => {
5730
5730
  if (c) {
5731
5731
  const u = (g) => {
5732
5732
  const h = ii(i).includes(g.animationName);
@@ -5792,7 +5792,7 @@ function ig(e) {
5792
5792
  return Math.round(t) + e.scrollLeft ? "paddingLeft" : "paddingRight";
5793
5793
  }
5794
5794
  function Nc(e) {
5795
- Q(() => {
5795
+ H(() => {
5796
5796
  if (!p(e.ownerRef) || p(e.isDisabled))
5797
5797
  return;
5798
5798
  const t = Ue(p(e.ownerRef)), n = No(p(e.ownerRef)), { documentElement: i, body: r } = t;
@@ -5832,7 +5832,7 @@ function ze(e) {
5832
5832
  */
5833
5833
  function rg(e, t) {
5834
5834
  const [n, i] = R(ws(t?.()));
5835
- return Q(() => {
5835
+ return H(() => {
5836
5836
  i(e()?.tagName.toLowerCase() || ws(t?.()));
5837
5837
  }), n;
5838
5838
  }
@@ -5907,7 +5907,7 @@ function cg(e) {
5907
5907
  const t = So();
5908
5908
  return e = Me({
5909
5909
  id: t.generateId("field")
5910
- }, e), Q(() => V(t.registerField(p(e.id)))), {
5910
+ }, e), H(() => V(t.registerField(p(e.id)))), {
5911
5911
  fieldProps: {
5912
5912
  id: () => p(e.id),
5913
5913
  ariaLabel: () => p(e["aria-label"]),
@@ -9023,10 +9023,10 @@ function hM(e) {
9023
9023
  }), [u, l] = R(p(e.selectionBehavior)), g = () => p(e.selectionMode), f = () => p(e.disallowEmptySelection) ?? !1, h = (d) => {
9024
9024
  (p(e.allowDuplicateSelectionEvents) || !MM(d, a())) && c(d);
9025
9025
  };
9026
- return Q(() => {
9026
+ return H(() => {
9027
9027
  const d = a();
9028
9028
  p(e.selectionBehavior) === "replace" && u() === "toggle" && typeof d == "object" && d.size === 0 && l("replace");
9029
- }), Q(() => {
9029
+ }), H(() => {
9030
9030
  l(p(e.selectionBehavior) ?? "toggle");
9031
9031
  }), {
9032
9032
  selectionMode: g,
@@ -9230,7 +9230,7 @@ function NM(e, t, n) {
9230
9230
  };
9231
9231
  return xt(() => {
9232
9232
  e.deferAutoFocus ? setTimeout(f, 0) : f();
9233
- }), Q(Je([
9233
+ }), H(Je([
9234
9234
  r,
9235
9235
  () => p(e.isVirtualized),
9236
9236
  () => p(e.selectionManager).focusedKey()
@@ -9282,7 +9282,7 @@ function TM(e, t) {
9282
9282
  if (!(r() || a()))
9283
9283
  return i() === n().focusedKey() ? 0 : -1;
9284
9284
  }), m = Y(() => p(e.virtualized) ? void 0 : i());
9285
- return Q(Je([t, i, r, () => n().focusedKey(), () => n().isFocused()], ([T, N, j, E, A]) => {
9285
+ return H(Je([t, i, r, () => n().focusedKey(), () => n().isFocused()], ([T, N, j, E, A]) => {
9286
9286
  T && N === E && A && !j && document.activeElement !== T && (e.focus ? e.focus() : je(T));
9287
9287
  })), {
9288
9288
  isSelected: s,
@@ -9816,7 +9816,7 @@ function Do(e) {
9816
9816
  ve.assignPointerEventToLayers(), ve.disableBodyPointerEvents(t), V(() => {
9817
9817
  t && (ve.removeLayer(t), g?.(), ve.assignPointerEventToLayers(), ve.restoreBodyPointerEvents(t));
9818
9818
  });
9819
- }), Q(Je([() => t, () => i.disableOutsidePointerEvents], ([g, f]) => {
9819
+ }), H(Je([() => t, () => i.disableOutsidePointerEvents], ([g, f]) => {
9820
9820
  if (!g)
9821
9821
  return;
9822
9822
  const h = ve.find(g);
@@ -9869,7 +9869,7 @@ function Bi(e) {
9869
9869
  trapFocus: () => n.isOpen() && n.modal(),
9870
9870
  onMountAutoFocus: i.onOpenAutoFocus,
9871
9871
  onUnmountAutoFocus: l
9872
- }, () => t), Q(() => V(n.registerContentId(r.id))), L(he, {
9872
+ }, () => t), H(() => V(n.registerContentId(r.id))), L(he, {
9873
9873
  get when() {
9874
9874
  return n.contentPresence.isPresent();
9875
9875
  },
@@ -9917,7 +9917,7 @@ function pM(e) {
9917
9917
  id: t.generateId("description")
9918
9918
  }, e);
9919
9919
  const [n, i] = ce(e, ["id"]);
9920
- return Q(() => V(t.registerDescriptionId(n.id))), L(be, X({
9920
+ return H(() => V(t.registerDescriptionId(n.id))), L(be, X({
9921
9921
  as: "p",
9922
9922
  get id() {
9923
9923
  return n.id;
@@ -10009,7 +10009,7 @@ function IM(e) {
10009
10009
  id: t.generateId("title")
10010
10010
  }, e);
10011
10011
  const [n, i] = ce(e, ["id"]);
10012
- return Q(() => V(t.registerTitleId(n.id))), L(be, X({
10012
+ return H(() => V(t.registerTitleId(n.id))), L(be, X({
10013
10013
  as: "h2",
10014
10014
  get id() {
10015
10015
  return n.id;
@@ -10070,7 +10070,7 @@ function bM(e) {
10070
10070
  }
10071
10071
  function vM(e) {
10072
10072
  const [t, n] = R();
10073
- return Q(() => {
10073
+ return H(() => {
10074
10074
  const i = e();
10075
10075
  i && n(No(i).getComputedStyle(i));
10076
10076
  }), t;
@@ -11213,7 +11213,7 @@ function iu(e) {
11213
11213
  });
11214
11214
  }
11215
11215
  }
11216
- Q(() => {
11216
+ H(() => {
11217
11217
  const g = a(), f = t();
11218
11218
  if (!g || !f)
11219
11219
  return;
@@ -11222,7 +11222,7 @@ function iu(e) {
11222
11222
  elementResize: typeof ResizeObserver == "function"
11223
11223
  });
11224
11224
  V(h);
11225
- }), Q(() => {
11225
+ }), H(() => {
11226
11226
  const g = t(), f = e.contentRef();
11227
11227
  !g || !f || queueMicrotask(() => {
11228
11228
  g.style.zIndex = getComputedStyle(f).zIndex;
@@ -11376,7 +11376,7 @@ function Th(e) {
11376
11376
  id: t.generateId("label")
11377
11377
  }, e);
11378
11378
  const [n, i] = ce(e, ["id"]);
11379
- return Q(() => V(t.registerLabelId(n.id))), L(be, X({
11379
+ return H(() => V(t.registerLabelId(n.id))), L(be, X({
11380
11380
  as: "div",
11381
11381
  get id() {
11382
11382
  return n.id;
@@ -11576,7 +11576,7 @@ function Ah(e) {
11576
11576
  id: t.generateId("listbox")
11577
11577
  }, e);
11578
11578
  const [n, i] = ce(e, ["ref", "id", "onKeyDown"]);
11579
- return Q(() => V(t.registerListboxId(n.id))), L(Lh, X({
11579
+ return H(() => V(t.registerListboxId(n.id))), L(Lh, X({
11580
11580
  ref(o) {
11581
11581
  const s = Pe(t.setListboxRef, n.ref);
11582
11582
  typeof s == "function" && s(o);
@@ -11696,7 +11696,7 @@ function ph(e) {
11696
11696
  }), Te = (k) => n.sectionComponent?.({
11697
11697
  section: k
11698
11698
  });
11699
- Q(Je([I], ([k]) => {
11699
+ H(Je([I], ([k]) => {
11700
11700
  const ue = [...P.selectionManager().selectedKeys()].filter((vt) => k.includes(vt));
11701
11701
  P.selectionManager().setSelectedKeys(ue);
11702
11702
  }, {
@@ -11831,7 +11831,7 @@ function wh(e) {
11831
11831
  }, y = (m) => {
11832
11832
  me(m, i.onBlur), !n.isOpen() && s().setFocused(!1);
11833
11833
  };
11834
- return Q(() => V(n.registerTriggerId(u.id()))), Q(() => {
11834
+ return H(() => V(n.registerTriggerId(u.id()))), H(() => {
11835
11835
  n.setListboxAriaLabelledBy([u.ariaLabelledBy(), u.ariaLabel() && !u.ariaLabelledBy() ? u.id() : null].filter(Boolean).join(" ") || void 0);
11836
11836
  }), L(Fi, X({
11837
11837
  ref(m) {
@@ -11877,7 +11877,7 @@ function Dh(e) {
11877
11877
  const a = o().selectedKeys();
11878
11878
  return a.size === 1 && a.has("") ? !0 : o().isEmpty();
11879
11879
  };
11880
- return Q(() => V(n.registerValueId(i.id))), (() => {
11880
+ return H(() => V(n.registerValueId(i.id))), (() => {
11881
11881
  const a = xh();
11882
11882
  return De(a, X({
11883
11883
  get id() {
@@ -11929,7 +11929,7 @@ function vh(e) {
11929
11929
  id: t.generateId("content")
11930
11930
  }, e);
11931
11931
  const [n, i] = ce(e, ["ref", "style"]);
11932
- return Q(() => V(t.registerContentId(i.id))), L(he, {
11932
+ return H(() => V(t.registerContentId(i.id))), L(he, {
11933
11933
  get when() {
11934
11934
  return t.contentPresence.isPresent();
11935
11935
  },
@@ -12054,14 +12054,14 @@ function _h(e) {
12054
12054
  }
12055
12055
  o || T();
12056
12056
  };
12057
- Q(() => {
12057
+ H(() => {
12058
12058
  if (!d.isOpen())
12059
12059
  return;
12060
12060
  const x = Ue();
12061
12061
  x.addEventListener("pointermove", C, !0), V(() => {
12062
12062
  x.removeEventListener("pointermove", C, !0);
12063
12063
  });
12064
- }), Q(() => {
12064
+ }), H(() => {
12065
12065
  const x = c();
12066
12066
  if (!x || !d.isOpen())
12067
12067
  return;
@@ -12199,7 +12199,7 @@ const lu = Ye(), Qh = (e) => {
12199
12199
  // eslint-disable-next-line solid/reactivity
12200
12200
  e.solidStoreDefaults
12201
12201
  ), i = Hh(U);
12202
- Q(() => {
12202
+ H(() => {
12203
12203
  n({
12204
12204
  captureSdk: e.captureSdk
12205
12205
  });
@@ -12964,7 +12964,7 @@ function K0(e, t, n, i) {
12964
12964
  const o = r.mount(e());
12965
12965
  V(() => {
12966
12966
  n && t().exit ? (r.setActive("exit", !0), Eu(e(), o)) : o();
12967
- }), ln(t) && Q(() => r.update(t()));
12967
+ }), ln(t) && H(() => r.update(t()));
12968
12968
  }), [r, H0(r.getTarget())];
12969
12969
  }
12970
12970
  const $0 = ["initial", "animate", "inView", "inViewOptions", "hover", "press", "variants", "transition", "exit"], W0 = ["tag", "ref", "style", "onMotionStart", "onMotionComplete", "onHoverStart", "onHoverEnd", "onPressStart", "onPressEnd", "onViewEnter", "onViewLeave"], eo = Ye(), ua = (e) => {
@@ -13953,7 +13953,7 @@ const by = (e, ...t) => {
13953
13953
  (g) => {
13954
13954
  i = g, i.classList.add("keen-slider"), xt(() => {
13955
13955
  n = new Dy(i, c(), t), n.on("slideChanged", () => s(n.track.details.rel));
13956
- }), V(a), typeof e == "function" && Q(Je(() => e, u));
13956
+ }), V(a), typeof e == "function" && H(Je(() => e, u));
13957
13957
  },
13958
13958
  {
13959
13959
  current: o,
@@ -14141,7 +14141,7 @@ const Uy = /* @__PURE__ */ ie('<div><img alt=""srcset=""><h2></h2><p>'), Yy = /*
14141
14141
  const t = Ry();
14142
14142
  return De(t, e, !0, !0), t;
14143
14143
  })();
14144
- const By = /* @__PURE__ */ ie('<div><div></div><video src="">'), Hy = /* @__PURE__ */ ie("<div>"), bu = () => {
14144
+ const By = /* @__PURE__ */ ie("<div><div></div><div>"), Hy = /* @__PURE__ */ ie("<div>"), bu = () => {
14145
14145
  let e;
14146
14146
  const {
14147
14147
  solidStore: t,
@@ -14149,21 +14149,23 @@ const By = /* @__PURE__ */ ie('<div><div></div><video src="">'), Hy = /* @__PURE
14149
14149
  } = bt(), {
14150
14150
  t: i
14151
14151
  } = yn();
14152
- return Q(() => {
14152
+ return H(() => {
14153
14153
  const r = t.captureSdk;
14154
- !n || !r || r.startCameraStream(e).then(async () => {
14154
+ !n || !r || !e || r.startCameraStream(e).then(async () => {
14155
14155
  t.uiSettings.showTutorial || await r.startCapture();
14156
14156
  });
14157
+ }), H(() => {
14158
+ e && (e.style.transform = `scaleX(${n.mirrorX ? -1 : 1})`);
14157
14159
  }), (() => {
14158
14160
  const r = By(), o = r.firstChild, s = o.nextSibling;
14159
- G(r, L(he, {
14161
+ return G(r, L(he, {
14160
14162
  get when() {
14161
14163
  return !n.isQueryingCameras;
14162
14164
  },
14163
14165
  get fallback() {
14164
14166
  return (() => {
14165
- const c = Hy();
14166
- return G(c, () => i.camera_query_in_progress), c;
14167
+ const a = Hy();
14168
+ return G(a, () => i.camera_query_in_progress), a;
14167
14169
  })();
14168
14170
  },
14169
14171
  get children() {
@@ -14195,15 +14197,15 @@ const By = /* @__PURE__ */ ie('<div><div></div><video src="">'), Hy = /* @__PURE
14195
14197
  }
14196
14198
  }), o), G(o, L(Fy, {
14197
14199
  class: Ky
14198
- })), G(r, L(Ty, {}), s);
14199
- const a = e;
14200
- return typeof a == "function" ? Za(a, s) : e = s, ge(s, Wy), Ve((c) => {
14201
- const u = at("mb-style-scope", Gy, "mb-video-screen"), l = at($y, "mb-logo"), g = `scaleX(${n.mirrorX ? -1 : 1})`;
14202
- return u !== c._v$ && ge(r, c._v$ = u), l !== c._v$2 && ge(o, c._v$2 = l), g !== c._v$3 && ((c._v$3 = g) != null ? s.style.setProperty("transform", g) : s.style.removeProperty("transform")), c;
14200
+ })), G(r, L(Ty, {}), s), Za((a) => {
14201
+ const c = document.createElement("video");
14202
+ c.className = Wy, c.setAttribute("aria-hidden", "true"), c.tabIndex = -1, a.replaceWith(c), e = c;
14203
+ }, s), Ve((a) => {
14204
+ const c = at("mb-style-scope", Gy, "mb-video-screen"), u = at($y, "mb-logo");
14205
+ return c !== a._v$ && ge(r, a._v$ = c), u !== a._v$2 && ge(o, a._v$2 = u), a;
14203
14206
  }, {
14204
14207
  _v$: void 0,
14205
- _v$2: void 0,
14206
- _v$3: void 0
14208
+ _v$2: void 0
14207
14209
  }), r;
14208
14210
  })();
14209
14211
  }, Qy = () => L(Qi, {
@@ -14279,7 +14281,7 @@ const tm = () => {
14279
14281
  function n() {
14280
14282
  e.captureSdk && e.uiSettings.destroyInstanceOnDismount && e.captureSdk.destroy();
14281
14283
  }
14282
- return Q(() => {
14284
+ return H(() => {
14283
14285
  if (e.captureSdk) {
14284
14286
  const i = e.captureSdk.subscribe(
14285
14287
  (r) => r.videoElement,