@vouchfor/embeds 1.2.1 → 1.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (27) hide show
  1. package/dist/es/{browser-47f3e1d6.js → browser-4d54600e.js} +2 -2
  2. package/dist/es/{browser-47f3e1d6.js.map → browser-4d54600e.js.map} +1 -1
  3. package/dist/es/embeds.js +1 -1
  4. package/dist/es/{index-d6ce78b6.js → index-14868944.js} +90 -88
  5. package/dist/es/{index-d6ce78b6.js.map → index-14868944.js.map} +1 -1
  6. package/dist/es/src/components/DialogEmbed/index.d.ts +1 -0
  7. package/dist/iife/dialog-embed/{browser-7ead22f3.js → browser-d8ab928d.js} +2 -2
  8. package/dist/iife/dialog-embed/{browser-7ead22f3.js.map → browser-d8ab928d.js.map} +1 -1
  9. package/dist/iife/dialog-embed/embed.iife.js +51 -50
  10. package/dist/iife/dialog-embed/embed.iife.js.map +1 -1
  11. package/dist/iife/dialog-embed/embed.js +1 -1
  12. package/dist/iife/dialog-embed/{index-0f8b2027.js → index-568f189c.js} +247 -246
  13. package/dist/iife/dialog-embed/{index-0f8b2027.js.map → index-568f189c.js.map} +1 -1
  14. package/dist/iife/dialog-embed/src/components/DialogEmbed/index.d.ts +1 -0
  15. package/dist/iife/embeds.iife.js +26 -25
  16. package/dist/iife/embeds.iife.js.map +1 -1
  17. package/dist/iife/player-embed/{browser-e97870ba.js → browser-951710ee.js} +2 -2
  18. package/dist/iife/player-embed/{browser-e97870ba.js.map → browser-951710ee.js.map} +1 -1
  19. package/dist/iife/player-embed/embed.iife.js +1 -1
  20. package/dist/iife/player-embed/embed.js +1 -1
  21. package/dist/iife/player-embed/{index-5907ffee.js → index-86dfade0.js} +4 -4
  22. package/dist/iife/player-embed/{index-5907ffee.js.map → index-86dfade0.js.map} +1 -1
  23. package/dist/iife/player-embed/src/components/DialogEmbed/index.d.ts +1 -0
  24. package/package.json +1 -1
  25. package/src/components/DialogEmbed/Dialog.stories.ts +12 -0
  26. package/src/components/DialogEmbed/DialogPortal.ts +22 -10
  27. package/src/components/DialogEmbed/index.ts +5 -1
@@ -2,7 +2,7 @@ import { property as Ne, state as qa, customElement as z2 } from "lit/decorators
2
2
  import { ifDefined as Mr } from "lit/directives/if-defined.js";
3
3
  import { createRef as Ka, ref as ei } from "lit/directives/ref.js";
4
4
  import { Task as Nn } from "@lit/task";
5
- import { v4 as ht } from "uuid";
5
+ import { v4 as K0 } from "uuid";
6
6
  import "@vouchfor/media-player";
7
7
  import { classMap as Tn } from "lit/directives/class-map.js";
8
8
  import "@a11y/focus-trap";
@@ -50,7 +50,7 @@ const Pc = (f) => new Sc(typeof f == "string" ? f : f + "", void 0, co), Cc = (f
50
50
  * Copyright 2017 Google LLC
51
51
  * SPDX-License-Identifier: BSD-3-Clause
52
52
  */
53
- const { is: xc, defineProperty: Nc, getOwnPropertyDescriptor: Tc, getOwnPropertyNames: Oc, getOwnPropertySymbols: Ic, getPrototypeOf: Bc } = Object, et = globalThis, Bn = et.trustedTypes, Wc = Bn ? Bn.emptyScript : "", Ta = et.reactiveElementPolyfillSupport, e2 = (f, s) => f, Va = { toAttribute(f, s) {
53
+ const { is: xc, defineProperty: Nc, getOwnPropertyDescriptor: Tc, getOwnPropertyNames: Oc, getOwnPropertySymbols: Ic, getPrototypeOf: Bc } = Object, rt = globalThis, Bn = rt.trustedTypes, Wc = Bn ? Bn.emptyScript : "", Ta = rt.reactiveElementPolyfillSupport, e2 = (f, s) => f, Va = { toAttribute(f, s) {
54
54
  switch (s) {
55
55
  case Boolean:
56
56
  f = f ? Wc : null;
@@ -79,7 +79,7 @@ const { is: xc, defineProperty: Nc, getOwnPropertyDescriptor: Tc, getOwnProperty
79
79
  }
80
80
  return l;
81
81
  } }, lo = (f, s) => !xc(f, s), Wn = { attribute: !0, type: String, converter: Va, reflect: !1, hasChanged: lo };
82
- Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), et.litPropertyMetadata ?? (et.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
82
+ Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), rt.litPropertyMetadata ?? (rt.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
83
83
  let zt = class extends HTMLElement {
84
84
  static addInitializer(s) {
85
85
  this._$Ei(), (this.l ?? (this.l = [])).push(s);
@@ -291,14 +291,14 @@ let zt = class extends HTMLElement {
291
291
  firstUpdated(s) {
292
292
  }
293
293
  };
294
- zt.elementStyles = [], zt.shadowRootOptions = { mode: "open" }, zt[e2("elementProperties")] = /* @__PURE__ */ new Map(), zt[e2("finalized")] = /* @__PURE__ */ new Map(), Ta == null || Ta({ ReactiveElement: zt }), (et.reactiveElementVersions ?? (et.reactiveElementVersions = [])).push("2.0.2");
294
+ zt.elementStyles = [], zt.shadowRootOptions = { mode: "open" }, zt[e2("elementProperties")] = /* @__PURE__ */ new Map(), zt[e2("finalized")] = /* @__PURE__ */ new Map(), Ta == null || Ta({ ReactiveElement: zt }), (rt.reactiveElementVersions ?? (rt.reactiveElementVersions = [])).push("2.0.2");
295
295
  /**
296
296
  * @license
297
297
  * Copyright 2017 Google LLC
298
298
  * SPDX-License-Identifier: BSD-3-Clause
299
299
  */
300
300
  const r2 = globalThis, Z2 = r2.trustedTypes, Un = Z2 ? Z2.createPolicy("lit-html", { createHTML: (f) => f }) : void 0, uo = "$lit$", J0 = `lit$${(Math.random() + "").slice(9)}$`, ho = "?" + J0, Uc = `<${ho}>`, At = document, M2 = () => At.createComment(""), o2 = (f) => f === null || typeof f != "object" && typeof f != "function", bo = Array.isArray, Gc = (f) => bo(f) || typeof (f == null ? void 0 : f[Symbol.iterator]) == "function", Oa = `[
301
- \f\r]`, Yt = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Gn = /-->/g, Ln = />/g, ft = RegExp(`>|${Oa}(?:([^\\s"'>=/]+)(${Oa}*=${Oa}*(?:[^
301
+ \f\r]`, Yt = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Gn = /-->/g, Ln = />/g, ct = RegExp(`>|${Oa}(?:([^\\s"'>=/]+)(${Oa}*=${Oa}*(?:[^
302
302
  \f\r"'\`<>=]|("|')|))|$)`, "g"), Hn = /'/g, Vn = /"/g, po = /^(?:script|style|textarea|title)$/i, Bt = Symbol.for("lit-noChange"), mr = Symbol.for("lit-nothing"), Zn = /* @__PURE__ */ new WeakMap(), dt = At.createTreeWalker(At, 129);
303
303
  function Ao(f, s) {
304
304
  if (!Array.isArray(f) || !f.hasOwnProperty("raw"))
@@ -312,8 +312,8 @@ const Lc = (f, s) => {
312
312
  const O = f[T];
313
313
  let K, ae, te = -1, me = 0;
314
314
  for (; me < O.length && (v.lastIndex = me, ae = v.exec(O), ae !== null); )
315
- me = v.lastIndex, v === Yt ? ae[1] === "!--" ? v = Gn : ae[1] !== void 0 ? v = Ln : ae[2] !== void 0 ? (po.test(ae[2]) && (d = RegExp("</" + ae[2], "g")), v = ft) : ae[3] !== void 0 && (v = ft) : v === ft ? ae[0] === ">" ? (v = d ?? Yt, te = -1) : ae[1] === void 0 ? te = -2 : (te = v.lastIndex - ae[2].length, K = ae[1], v = ae[3] === void 0 ? ft : ae[3] === '"' ? Vn : Hn) : v === Vn || v === Hn ? v = ft : v === Gn || v === Ln ? v = Yt : (v = ft, d = void 0);
316
- const Te = v === ft && f[T + 1].startsWith("/>") ? " " : "";
315
+ me = v.lastIndex, v === Yt ? ae[1] === "!--" ? v = Gn : ae[1] !== void 0 ? v = Ln : ae[2] !== void 0 ? (po.test(ae[2]) && (d = RegExp("</" + ae[2], "g")), v = ct) : ae[3] !== void 0 && (v = ct) : v === ct ? ae[0] === ">" ? (v = d ?? Yt, te = -1) : ae[1] === void 0 ? te = -2 : (te = v.lastIndex - ae[2].length, K = ae[1], v = ae[3] === void 0 ? ct : ae[3] === '"' ? Vn : Hn) : v === Vn || v === Hn ? v = ct : v === Gn || v === Ln ? v = Yt : (v = ct, d = void 0);
316
+ const Te = v === ct && f[T + 1].startsWith("/>") ? " " : "";
317
317
  p += v === Yt ? O + Uc : te >= 0 ? (u.push(K), O.slice(0, te) + uo + O.slice(te) + J0 + Te) : O + J0 + (te === -2 ? T : Te);
318
318
  }
319
319
  return [Ao(f, p + (f[l] || "<?>") + (s === 2 ? "</svg>" : "")), u];
@@ -582,7 +582,7 @@ const Dc = (f) => new vo(typeof f == "string" ? f : f + "", void 0, ai), ii = (f
582
582
  * Copyright 2017 Google LLC
583
583
  * SPDX-License-Identifier: BSD-3-Clause
584
584
  */
585
- const { is: jc, defineProperty: zc, getOwnPropertyDescriptor: Yc, getOwnPropertyNames: Qc, getOwnPropertySymbols: Jc, getPrototypeOf: qc } = Object, rt = globalThis, Dn = rt.trustedTypes, Kc = Dn ? Dn.emptyScript : "", Ba = rt.reactiveElementPolyfillSupport, t2 = (f, s) => f, Ma = { toAttribute(f, s) {
585
+ const { is: jc, defineProperty: zc, getOwnPropertyDescriptor: Yc, getOwnPropertyNames: Qc, getOwnPropertySymbols: Jc, getPrototypeOf: qc } = Object, tt = globalThis, Dn = tt.trustedTypes, Kc = Dn ? Dn.emptyScript : "", Ba = tt.reactiveElementPolyfillSupport, t2 = (f, s) => f, Ma = { toAttribute(f, s) {
586
586
  switch (s) {
587
587
  case Boolean:
588
588
  f = f ? Kc : null;
@@ -611,7 +611,7 @@ const { is: jc, defineProperty: zc, getOwnPropertyDescriptor: Yc, getOwnProperty
611
611
  }
612
612
  return l;
613
613
  } }, go = (f, s) => !jc(f, s), Xn = { attribute: !0, type: String, converter: Ma, reflect: !1, hasChanged: go };
614
- Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), rt.litPropertyMetadata ?? (rt.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
614
+ Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), tt.litPropertyMetadata ?? (tt.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
615
615
  class Ot extends HTMLElement {
616
616
  static addInitializer(s) {
617
617
  this._$Ei(), (this.l ?? (this.l = [])).push(s);
@@ -823,14 +823,14 @@ class Ot extends HTMLElement {
823
823
  firstUpdated(s) {
824
824
  }
825
825
  }
826
- Ot.elementStyles = [], Ot.shadowRootOptions = { mode: "open" }, Ot[t2("elementProperties")] = /* @__PURE__ */ new Map(), Ot[t2("finalized")] = /* @__PURE__ */ new Map(), Ba == null || Ba({ ReactiveElement: Ot }), (rt.reactiveElementVersions ?? (rt.reactiveElementVersions = [])).push("2.0.2");
826
+ Ot.elementStyles = [], Ot.shadowRootOptions = { mode: "open" }, Ot[t2("elementProperties")] = /* @__PURE__ */ new Map(), Ot[t2("finalized")] = /* @__PURE__ */ new Map(), Ba == null || Ba({ ReactiveElement: Ot }), (tt.reactiveElementVersions ?? (tt.reactiveElementVersions = [])).push("2.0.2");
827
827
  /**
828
828
  * @license
829
829
  * Copyright 2017 Google LLC
830
830
  * SPDX-License-Identifier: BSD-3-Clause
831
831
  */
832
832
  const a2 = globalThis, F2 = a2.trustedTypes, jn = F2 ? F2.createPolicy("lit-html", { createHTML: (f) => f }) : void 0, _o = "$lit$", q0 = `lit$${(Math.random() + "").slice(9)}$`, wo = "?" + q0, e4 = `<${wo}>`, kt = document, s2 = () => kt.createComment(""), f2 = (f) => f === null || typeof f != "object" && typeof f != "function", Eo = Array.isArray, r4 = (f) => Eo(f) || typeof (f == null ? void 0 : f[Symbol.iterator]) == "function", Wa = `[
833
- \f\r]`, Qt = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, zn = /-->/g, Yn = />/g, ct = RegExp(`>|${Wa}(?:([^\\s"'>=/]+)(${Wa}*=${Wa}*(?:[^
833
+ \f\r]`, Qt = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, zn = /-->/g, Yn = />/g, lt = RegExp(`>|${Wa}(?:([^\\s"'>=/]+)(${Wa}*=${Wa}*(?:[^
834
834
  \f\r"'\`<>=]|("|')|))|$)`, "g"), Qn = /'/g, Jn = /"/g, $o = /^(?:script|style|textarea|title)$/i, t4 = (f) => (s, ...l) => ({ _$litType$: f, strings: s, values: l }), It = t4(1), Ut = Symbol.for("lit-noChange"), yr = Symbol.for("lit-nothing"), qn = /* @__PURE__ */ new WeakMap(), bt = kt.createTreeWalker(kt, 129);
835
835
  function Ro(f, s) {
836
836
  if (!Array.isArray(f) || !f.hasOwnProperty("raw"))
@@ -844,8 +844,8 @@ const a4 = (f, s) => {
844
844
  const O = f[T];
845
845
  let K, ae, te = -1, me = 0;
846
846
  for (; me < O.length && (v.lastIndex = me, ae = v.exec(O), ae !== null); )
847
- me = v.lastIndex, v === Qt ? ae[1] === "!--" ? v = zn : ae[1] !== void 0 ? v = Yn : ae[2] !== void 0 ? ($o.test(ae[2]) && (d = RegExp("</" + ae[2], "g")), v = ct) : ae[3] !== void 0 && (v = ct) : v === ct ? ae[0] === ">" ? (v = d ?? Qt, te = -1) : ae[1] === void 0 ? te = -2 : (te = v.lastIndex - ae[2].length, K = ae[1], v = ae[3] === void 0 ? ct : ae[3] === '"' ? Jn : Qn) : v === Jn || v === Qn ? v = ct : v === zn || v === Yn ? v = Qt : (v = ct, d = void 0);
848
- const Te = v === ct && f[T + 1].startsWith("/>") ? " " : "";
847
+ me = v.lastIndex, v === Qt ? ae[1] === "!--" ? v = zn : ae[1] !== void 0 ? v = Yn : ae[2] !== void 0 ? ($o.test(ae[2]) && (d = RegExp("</" + ae[2], "g")), v = lt) : ae[3] !== void 0 && (v = lt) : v === lt ? ae[0] === ">" ? (v = d ?? Qt, te = -1) : ae[1] === void 0 ? te = -2 : (te = v.lastIndex - ae[2].length, K = ae[1], v = ae[3] === void 0 ? lt : ae[3] === '"' ? Jn : Qn) : v === Jn || v === Qn ? v = lt : v === zn || v === Yn ? v = Qt : (v = lt, d = void 0);
848
+ const Te = v === lt && f[T + 1].startsWith("/>") ? " " : "";
849
849
  p += v === Qt ? O + e4 : te >= 0 ? (u.push(K), O.slice(0, te) + _o + O.slice(te) + q0 + Te) : O + q0 + (te === -2 ? T : Te);
850
850
  }
851
851
  return [Ro(f, p + (f[l] || "<?>") + (s === 2 ? "</svg>" : "")), u];
@@ -1081,7 +1081,7 @@ const c4 = (f, s, l) => {
1081
1081
  * Copyright 2017 Google LLC
1082
1082
  * SPDX-License-Identifier: BSD-3-Clause
1083
1083
  */
1084
- class tt extends Ot {
1084
+ class at extends Ot {
1085
1085
  constructor() {
1086
1086
  super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
1087
1087
  }
@@ -1107,9 +1107,9 @@ class tt extends Ot {
1107
1107
  }
1108
1108
  }
1109
1109
  var fo;
1110
- tt._$litElement$ = !0, tt.finalized = !0, (fo = globalThis.litElementHydrateSupport) == null || fo.call(globalThis, { LitElement: tt });
1110
+ at._$litElement$ = !0, at.finalized = !0, (fo = globalThis.litElementHydrateSupport) == null || fo.call(globalThis, { LitElement: at });
1111
1111
  const Ga = globalThis.litElementPolyfillSupport;
1112
- Ga == null || Ga({ LitElement: tt });
1112
+ Ga == null || Ga({ LitElement: at });
1113
1113
  (globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.0.2");
1114
1114
  function l4(f, s, l) {
1115
1115
  function u(d) {
@@ -1172,7 +1172,7 @@ class v4 {
1172
1172
  constructor(s) {
1173
1173
  this._fetching = !1, this.getVouch = async (l, u, d) => {
1174
1174
  var ae;
1175
- const { embedApiUrl: p } = D2(l), v = ht(), T = await fetch(`${p}/vouches/${d}`, {
1175
+ const { embedApiUrl: p } = D2(l), v = K0(), T = await fetch(`${p}/vouches/${d}`, {
1176
1176
  method: "GET",
1177
1177
  headers: [
1178
1178
  ["X-Api-Key", u],
@@ -1188,7 +1188,7 @@ class v4 {
1188
1188
  }), O;
1189
1189
  }, this.getTemplate = async (l, u, d) => {
1190
1190
  var ae;
1191
- const { embedApiUrl: p } = D2(l), v = ht(), T = await fetch(`${p}/templates/${d}`, {
1191
+ const { embedApiUrl: p } = D2(l), v = K0(), T = await fetch(`${p}/templates/${d}`, {
1192
1192
  method: "GET",
1193
1193
  headers: [
1194
1194
  ["X-Api-Key", u],
@@ -1557,7 +1557,7 @@ var Da = { exports: {} };
1557
1557
  return X += "catch" + (se.res ? "(" + se.res + ")" : "") + "{" + ur(se.d, B) + "}";
1558
1558
  }, block: function(C, B) {
1559
1559
  return er("block", C.b, C.f, !0), "if(!" + B.varName + "[" + C.p + "]){tR+=(" + W0(C.d, "", B) + ")()}else{tR+=" + B.varName + "[" + C.p + "]}";
1560
- } }), at = new a0({ e: function(C) {
1560
+ } }), it = new a0({ e: function(C) {
1561
1561
  var B = String(C);
1562
1562
  return /[&<>"']/.test(B) ? B.replace(/[&<>"']/g, Br) : B;
1563
1563
  } }), i0 = { varName: "it", autoTrim: [!1, "nl"], autoEscape: !0, defaultFilter: !1, tags: ["{{", "}}"], l: function(C, B) {
@@ -1573,7 +1573,7 @@ var Da = { exports: {} };
1573
1573
  return se;
1574
1574
  throw u("Can't find filter '" + B + "'");
1575
1575
  }
1576
- }, async: !1, storage: { helpers: sr, nativeHelpers: vr, filters: at, templates: Kr }, prefixes: { h: "@", b: "#", i: "", r: "*", c: "/", e: "!" }, cache: !1, plugins: [], useWith: !1 };
1576
+ }, async: !1, storage: { helpers: sr, nativeHelpers: vr, filters: it, templates: Kr }, prefixes: { h: "@", b: "#", i: "", r: "*", c: "/", e: "!" }, cache: !1, plugins: [], useWith: !1 };
1577
1577
  function W(C, B) {
1578
1578
  var X = {};
1579
1579
  return O(X, i0), B && O(X, B), C && O(X, C), X.l.bind(X), X;
@@ -1599,7 +1599,7 @@ var Da = { exports: {} };
1599
1599
  var X;
1600
1600
  return B.cache && B.name && B.storage.templates.get(B.name) ? B.storage.templates.get(B.name) : (X = typeof C == "function" ? C : q(C, B), B.cache && B.name && B.storage.templates.define(B.name, X), X);
1601
1601
  }
1602
- i0.l.bind(i0), l.compile = q, l.compileScope = ur, l.compileScopeIntoFunction = W0, l.compileToString = Jr, l.defaultConfig = i0, l.filters = at, l.getConfig = W, l.helpers = sr, l.nativeHelpers = vr, l.parse = We, l.render = function(C, B, X, se) {
1602
+ i0.l.bind(i0), l.compile = q, l.compileScope = ur, l.compileScopeIntoFunction = W0, l.compileToString = Jr, l.defaultConfig = i0, l.filters = it, l.getConfig = W, l.helpers = sr, l.nativeHelpers = vr, l.parse = We, l.render = function(C, B, X, se) {
1603
1603
  var fe = W(X || {});
1604
1604
  if (!fe.async)
1605
1605
  return ve(C, fe)(B, fe);
@@ -1866,9 +1866,9 @@ var Po = Da.exports, Xa = { exports: {} };
1866
1866
  var W = new vr(null, { status: 0, statusText: "" });
1867
1867
  return W.type = "error", W;
1868
1868
  };
1869
- var at = [301, 302, 303, 307, 308];
1869
+ var it = [301, 302, 303, 307, 308];
1870
1870
  vr.redirect = function(W, q) {
1871
- if (at.indexOf(q) === -1)
1871
+ if (it.indexOf(q) === -1)
1872
1872
  throw new RangeError("Invalid status code");
1873
1873
  return new vr(null, { status: q, headers: { location: W } });
1874
1874
  }, v.DOMException = T.DOMException;
@@ -2068,14 +2068,14 @@ let W2 = /* @__PURE__ */ function(f) {
2068
2068
  return f[f.Column = 0] = "Column", f[f.Row = 1] = "Row", f[f.All = 2] = "All", f;
2069
2069
  }({});
2070
2070
  we.Gutter = W2;
2071
- let lt = /* @__PURE__ */ function(f) {
2071
+ let ut = /* @__PURE__ */ function(f) {
2072
2072
  return f[f.FlexStart = 0] = "FlexStart", f[f.Center = 1] = "Center", f[f.FlexEnd = 2] = "FlexEnd", f[f.SpaceBetween = 3] = "SpaceBetween", f[f.SpaceAround = 4] = "SpaceAround", f[f.SpaceEvenly = 5] = "SpaceEvenly", f;
2073
2073
  }({});
2074
- we.Justify = lt;
2075
- let ut = /* @__PURE__ */ function(f) {
2074
+ we.Justify = ut;
2075
+ let ht = /* @__PURE__ */ function(f) {
2076
2076
  return f[f.Error = 0] = "Error", f[f.Warn = 1] = "Warn", f[f.Info = 2] = "Info", f[f.Debug = 3] = "Debug", f[f.Verbose = 4] = "Verbose", f[f.Fatal = 5] = "Fatal", f;
2077
2077
  }({});
2078
- we.LogLevel = ut;
2078
+ we.LogLevel = ht;
2079
2079
  let U2 = /* @__PURE__ */ function(f) {
2080
2080
  return f[f.Undefined = 0] = "Undefined", f[f.Exactly = 1] = "Exactly", f[f.AtMost = 2] = "AtMost", f;
2081
2081
  }({});
@@ -2143,18 +2143,18 @@ const M4 = {
2143
2143
  GUTTER_COLUMN: W2.Column,
2144
2144
  GUTTER_ROW: W2.Row,
2145
2145
  GUTTER_ALL: W2.All,
2146
- JUSTIFY_FLEX_START: lt.FlexStart,
2147
- JUSTIFY_CENTER: lt.Center,
2148
- JUSTIFY_FLEX_END: lt.FlexEnd,
2149
- JUSTIFY_SPACE_BETWEEN: lt.SpaceBetween,
2150
- JUSTIFY_SPACE_AROUND: lt.SpaceAround,
2151
- JUSTIFY_SPACE_EVENLY: lt.SpaceEvenly,
2152
- LOG_LEVEL_ERROR: ut.Error,
2153
- LOG_LEVEL_WARN: ut.Warn,
2154
- LOG_LEVEL_INFO: ut.Info,
2155
- LOG_LEVEL_DEBUG: ut.Debug,
2156
- LOG_LEVEL_VERBOSE: ut.Verbose,
2157
- LOG_LEVEL_FATAL: ut.Fatal,
2146
+ JUSTIFY_FLEX_START: ut.FlexStart,
2147
+ JUSTIFY_CENTER: ut.Center,
2148
+ JUSTIFY_FLEX_END: ut.FlexEnd,
2149
+ JUSTIFY_SPACE_BETWEEN: ut.SpaceBetween,
2150
+ JUSTIFY_SPACE_AROUND: ut.SpaceAround,
2151
+ JUSTIFY_SPACE_EVENLY: ut.SpaceEvenly,
2152
+ LOG_LEVEL_ERROR: ht.Error,
2153
+ LOG_LEVEL_WARN: ht.Warn,
2154
+ LOG_LEVEL_INFO: ht.Info,
2155
+ LOG_LEVEL_DEBUG: ht.Debug,
2156
+ LOG_LEVEL_VERBOSE: ht.Verbose,
2157
+ LOG_LEVEL_FATAL: ht.Fatal,
2158
2158
  MEASURE_MODE_UNDEFINED: U2.Undefined,
2159
2159
  MEASURE_MODE_EXACTLY: U2.Exactly,
2160
2160
  MEASURE_MODE_AT_MOST: U2.AtMost,
@@ -2800,7 +2800,7 @@ var xo = { exports: {} };
2800
2800
  break s;
2801
2801
  t[g + 356 >> 2] = 1, m[g + 24 >> 2] = n(Je - _e) * a;
2802
2802
  }
2803
- if (St(de, 2, D, D, g + 356 | 0, g + 24 | 0), St(de, 0, Je, D, g + 352 | 0, g + 360 | 0), it(de, m[g + 24 >> 2], m[g + 360 >> 2], Or, t[g + 356 >> 2], t[g + 352 >> 2], D, Je, 0, 5, $, x, V, P), r = m[(de + (t[(M << 2) + 4320 >> 2] << 2) | 0) + 516 >> 2], i = r != r, a = n(n(He(de, M, D) + Ce(de, M)) + n(Ve(de, M, D) + Be(de, M))), !(i | a != a)) {
2803
+ if (St(de, 2, D, D, g + 356 | 0, g + 24 | 0), St(de, 0, Je, D, g + 352 | 0, g + 360 | 0), nt(de, m[g + 24 >> 2], m[g + 360 >> 2], Or, t[g + 356 >> 2], t[g + 352 >> 2], D, Je, 0, 5, $, x, V, P), r = m[(de + (t[(M << 2) + 4320 >> 2] << 2) | 0) + 516 >> 2], i = r != r, a = n(n(He(de, M, D) + Ce(de, M)) + n(Ve(de, M, D) + Be(de, M))), !(i | a != a)) {
2804
2804
  a = $e(r, a);
2805
2805
  break o;
2806
2806
  }
@@ -3169,7 +3169,7 @@ var xo = { exports: {} };
3169
3169
  if (w0 | (!(r < n(0)) | ((c | 0) != 2 | a != a)))
3170
3170
  break i;
3171
3171
  }
3172
- if (c = t[i + 24 >> 2] >>> 13 & 7, c || (c = t[e + 24 >> 2] >>> 10 & 7), (c | 0) != 4 || (ot(g + 24 | 0, i, N), t[g + 28 >> 2] == 3) || (nt(g + 360 | 0, i, N), t[g + 364 >> 2] == 3))
3172
+ if (c = t[i + 24 >> 2] >>> 13 & 7, c || (c = t[e + 24 >> 2] >>> 10 & 7), (c | 0) != 4 || (st(g + 24 | 0, i, N), t[g + 28 >> 2] == 3) || (ot(g + 360 | 0, i, N), t[g + 364 >> 2] == 3))
3173
3173
  break i;
3174
3174
  t[g + 348 >> 2] = 1, m[g + 356 >> 2] = Ze;
3175
3175
  break r;
@@ -3243,14 +3243,14 @@ var xo = { exports: {} };
3243
3243
  if (ke = 0, T0)
3244
3244
  break r;
3245
3245
  }
3246
- if (ke = 0, c = t[i + 24 >> 2] >>> 13 & 7, c || (c = t[e + 24 >> 2] >>> 10 & 7), (c | 0) != 4 || (ot(g + 24 | 0, i, N), t[g + 28 >> 2] == 3))
3246
+ if (ke = 0, c = t[i + 24 >> 2] >>> 13 & 7, c || (c = t[e + 24 >> 2] >>> 10 & 7), (c | 0) != 4 || (st(g + 24 | 0, i, N), t[g + 28 >> 2] == 3))
3247
3247
  break r;
3248
- nt(g + 360 | 0, i, N), ke = t[g + 364 >> 2] != 3;
3248
+ ot(g + 360 | 0, i, N), ke = t[g + 364 >> 2] != 3;
3249
3249
  break r;
3250
3250
  }
3251
3251
  ke = 0;
3252
3252
  }
3253
- r = m[g + 352 >> 2], a = m[g + 356 >> 2], c = J >>> 0 > 1, Ge = c ? r : a, r = c ? a : r, z0 = t[g + 344 >> 2], Na = t[g + 348 >> 2], xn = c ? z0 : Na, z0 = c ? Na : z0, c = (ke ^ 1) & y, it(i, Ge, r, j[e + 300 | 0] & 3, xn, z0, D, Je, c, c ? 4 : 7, $, x, V, P), G = n(G + n(E - ce)), c = j[e + 300 | 0];
3253
+ r = m[g + 352 >> 2], a = m[g + 356 >> 2], c = J >>> 0 > 1, Ge = c ? r : a, r = c ? a : r, z0 = t[g + 344 >> 2], Na = t[g + 348 >> 2], xn = c ? z0 : Na, z0 = c ? Na : z0, c = (ke ^ 1) & y, nt(i, Ge, r, j[e + 300 | 0] & 3, xn, z0, D, Je, c, c ? 4 : 7, $, x, V, P), G = n(G + n(E - ce)), c = j[e + 300 | 0];
3254
3254
  r: {
3255
3255
  i: {
3256
3256
  if (c & 4) {
@@ -3335,7 +3335,7 @@ var xo = { exports: {} };
3335
3335
  for (ir = t[e + 556 >> 2], i = t[e + 560 >> 2] - ir >> 2, $r = i >>> 0 < U >>> 0 ? U : i, oe = 0, i = U; ; ) {
3336
3336
  if ((i | 0) == ($r | 0))
3337
3337
  break a;
3338
- if (c = t[ir + (i << 2) >> 2], (t[c + 24 >> 2] & 196608) != 131072 && (w0 = g + 24 | 0, ot(w0, c, J), jt = t[g + 28 >> 2], nt(w0, c, J), oe = (((jt | 0) == 3) + oe | 0) + (t[g + 28 >> 2] == 3) | 0), i = i + 1 | 0, (R | 0) == (i | 0))
3338
+ if (c = t[ir + (i << 2) >> 2], (t[c + 24 >> 2] & 196608) != 131072 && (w0 = g + 24 | 0, st(w0, c, J), jt = t[g + 28 >> 2], ot(w0, c, J), oe = (((jt | 0) == 3) + oe | 0) + (t[g + 28 >> 2] == 3) | 0), i = i + 1 | 0, (R | 0) == (i | 0))
3339
3339
  break;
3340
3340
  }
3341
3341
  if (Ge = n(0), a = ce, oe)
@@ -3384,7 +3384,7 @@ var xo = { exports: {} };
3384
3384
  G = Z0(c, J, xe), kr = Ce(e, J), N2 = Se(c, J, D), m[M + (t[l0 >> 2] << 2) >> 2] = N2 + n(G + kr);
3385
3385
  break t;
3386
3386
  }
3387
- if (ot(g + 360 | 0, c, J), r = n(r + (t[g + 364 >> 2] == 3 ? Xt : n(-0))), y && (oe = M, M = t[l0 >> 2] << 2, m[oe + M >> 2] = r + m[M + (g + 24 | 0) >> 2]), nt(g + 360 | 0, c, J), r = n(r + (t[g + 364 >> 2] == 3 ? Xt : n(-0))), !Sn) {
3387
+ if (st(g + 360 | 0, c, J), r = n(r + (t[g + 364 >> 2] == 3 ? Xt : n(-0))), y && (oe = M, M = t[l0 >> 2] << 2, m[oe + M >> 2] = r + m[M + (g + 24 | 0) >> 2]), ot(g + 360 | 0, c, J), r = n(r + (t[g + 364 >> 2] == 3 ? Xt : n(-0))), !Sn) {
3388
3388
  r = n(r + n(n(a + n(Se(c, J, D) + Ie(c, J, D))) + m[g + 104 >> 2])), S = Ze;
3389
3389
  break t;
3390
3390
  }
@@ -3466,7 +3466,7 @@ var xo = { exports: {} };
3466
3466
  c = t[e + 24 >> 2] & 8 ? 5 : 1;
3467
3467
  break i;
3468
3468
  }
3469
- if ((c | 0) != 4 || (ot(g + 24 | 0, M, N), c = 4, t[g + 28 >> 2] == 3) || (nt(g + 360 | 0, M, N), t[g + 364 >> 2] == 3))
3469
+ if ((c | 0) != 4 || (st(g + 24 | 0, M, N), c = 4, t[g + 28 >> 2] == 3) || (ot(g + 360 | 0, M, N), t[g + 364 >> 2] == 3))
3470
3470
  break i;
3471
3471
  c = M + (t[Me >> 2] << 3) | 0, S = m[c + 572 >> 2];
3472
3472
  n: {
@@ -3486,19 +3486,19 @@ var xo = { exports: {} };
3486
3486
  if (a = ze, T0 & !(S < n(0)) | ((i | 0) != 2 | ce != ce))
3487
3487
  break r;
3488
3488
  }
3489
- S = m[(M + (t[X0 >> 2] << 2) | 0) + 516 >> 2], a = E, ce = m[M + 224 >> 2], ce == ce && (a = n(n(Se(M, N, D) + Ie(M, N, D)) + n(Zr ? S * ce : S / ce))), m[g + 360 >> 2] = a, qe = g, Ke = n(S + n(Se(M, J, D) + Ie(M, J, D))), m[qe + 24 >> 2] = Ke, t[g + 356 >> 2] = 1, t[g + 352 >> 2] = 1, St(M, J, xe, D, g + 356 | 0, g + 24 | 0), St(M, N, Ze, D, g + 352 | 0, g + 360 | 0), S = m[g + 360 >> 2], ce = m[g + 24 >> 2], i = J >>> 0 > 1, a = i ? S : ce, S = i ? ce : S, i = (_0 | 0) != 0 & (t[e + 24 >> 2] & 896) != 512, it(M, S, a, Or, !(i & Zr | S != S), (!i | Zr) & a == a, D, Je, 1, 2, $, x, V, P), a = ze;
3489
+ S = m[(M + (t[X0 >> 2] << 2) | 0) + 516 >> 2], a = E, ce = m[M + 224 >> 2], ce == ce && (a = n(n(Se(M, N, D) + Ie(M, N, D)) + n(Zr ? S * ce : S / ce))), m[g + 360 >> 2] = a, qe = g, Ke = n(S + n(Se(M, J, D) + Ie(M, J, D))), m[qe + 24 >> 2] = Ke, t[g + 356 >> 2] = 1, t[g + 352 >> 2] = 1, St(M, J, xe, D, g + 356 | 0, g + 24 | 0), St(M, N, Ze, D, g + 352 | 0, g + 360 | 0), S = m[g + 360 >> 2], ce = m[g + 24 >> 2], i = J >>> 0 > 1, a = i ? S : ce, S = i ? ce : S, i = (_0 | 0) != 0 & (t[e + 24 >> 2] & 896) != 512, nt(M, S, a, Or, !(i & Zr | S != S), (!i | Zr) & a == a, D, Je, 1, 2, $, x, V, P), a = ze;
3490
3490
  break r;
3491
3491
  }
3492
- a = m[(M + (t[Me >> 2] << 2) | 0) + 516 >> 2], S = Se(M, N, D), ce = Ie(M, N, D), ot(g + 24 | 0, M, N), S = n(G - n(a + n(S + ce)));
3492
+ a = m[(M + (t[Me >> 2] << 2) | 0) + 516 >> 2], S = Se(M, N, D), ce = Ie(M, N, D), st(g + 24 | 0, M, N), S = n(G - n(a + n(S + ce)));
3493
3493
  i: {
3494
- if (t[g + 28 >> 2] != 3 || (nt(g + 360 | 0, M, N), t[g + 364 >> 2] != 3))
3494
+ if (t[g + 28 >> 2] != 3 || (ot(g + 360 | 0, M, N), t[g + 364 >> 2] != 3))
3495
3495
  break i;
3496
3496
  a = n(S * n(0.5)), a = n(ze + (Ke = n(0), Tt = $e(a, n(0)), qe = a != a, qe ? Ke : Tt));
3497
3497
  break r;
3498
3498
  }
3499
- if (nt(g + 24 | 0, M, N), a = ze, t[g + 28 >> 2] == 3)
3499
+ if (ot(g + 24 | 0, M, N), a = ze, t[g + 28 >> 2] == 3)
3500
3500
  break r;
3501
- if (ot(g + 24 | 0, M, N), t[g + 28 >> 2] == 3) {
3501
+ if (st(g + 24 | 0, M, N), t[g + 28 >> 2] == 3) {
3502
3502
  a = n(ze + (Ke = n(0), Tt = $e(S, n(0)), qe = S != S, qe ? Ke : Tt));
3503
3503
  break r;
3504
3504
  }
@@ -3700,7 +3700,7 @@ var xo = { exports: {} };
3700
3700
  if (R)
3701
3701
  break r;
3702
3702
  }
3703
- it(U, E, S, Or, 1, 1, D, Je, 1, 3, $, x, V, P);
3703
+ nt(U, E, S, Or, 1, 1, D, Je, 1, 3, $, x, V, P);
3704
3704
  break r;
3705
3705
  }
3706
3706
  qe = U, Ke = n(n(ce - $2(U)) + Z0(U, 0, Ze)), m[qe + 232 >> 2] = Ke;
@@ -3963,9 +3963,9 @@ var xo = { exports: {} };
3963
3963
  }
3964
3964
  i = 1;
3965
3965
  }
3966
- ke = E > n(0), Hr = i & oe & R >>> 0 < 2, a = Hr && ke ? E : a, i = i ^ 1, it(o, a, r, Or, Hr && ke ? 2 : i, r == r, a, r, 0, 6, $, x, V, P), a = n(m[o + 516 >> 2] + bn(o, 2, E)), r = n(m[o + 520 >> 2] + bn(o, 0, E));
3966
+ ke = E > n(0), Hr = i & oe & R >>> 0 < 2, a = Hr && ke ? E : a, i = i ^ 1, nt(o, a, r, Or, Hr && ke ? 2 : i, r == r, a, r, 0, 6, $, x, V, P), a = n(m[o + 516 >> 2] + bn(o, 2, E)), r = n(m[o + 520 >> 2] + bn(o, 0, E));
3967
3967
  }
3968
- it(o, a, r, Or, 1, 1, a, r, 1, 1, $, x, V, P);
3968
+ nt(o, a, r, Or, 1, 1, a, r, 1, 1, $, x, V, P);
3969
3969
  i: {
3970
3970
  n: {
3971
3971
  o: {
@@ -4959,7 +4959,7 @@ var xo = { exports: {} };
4959
4959
  }
4960
4960
  e = 2, c = o;
4961
4961
  }
4962
- it(h, V, c, i, x, e, b, $, 1, 0, t[h + 568 >> 2], P + 8 | 0, 0, t[1755]) && (Zi(h, j[h + 300 | 0] & 3, b, $, b), Li(h, +m[t[h + 568 >> 2] + 20 >> 2], 0, 0)), z = P - -64 | 0;
4962
+ nt(h, V, c, i, x, e, b, $, 1, 0, t[h + 568 >> 2], P + 8 | 0, 0, t[1755]) && (Zi(h, j[h + 300 | 0] & 3, b, $, b), Li(h, +m[t[h + 568 >> 2] + 20 >> 2], 0, 0)), z = P - -64 | 0;
4963
4963
  }
4964
4964
  function Gs(e, r) {
4965
4965
  e = e | 0, r = r | 0;
@@ -5164,7 +5164,7 @@ var xo = { exports: {} };
5164
5164
  }
5165
5165
  z = h + 32 | 0, ie(0, r | 0), ie(1, P & -2147483648 | e), R = g, S = +Oe(), Xe[R >> 3] = S;
5166
5166
  }
5167
- function it(e, r, a, i, o, c, h, b, y, $, x, V, P, N) {
5167
+ function nt(e, r, a, i, o, c, h, b, y, $, x, V, P, N) {
5168
5168
  var g = n(0), E = 0, R = 0, S = 0, U = 0, G = n(0), M = 0, D = 0, J = n(0);
5169
5169
  e: {
5170
5170
  if (!(t[e + 312 >> 2] != (N | 0) && j[e + 4 | 0] & 4) && (U = 0, t[e + 316 >> 2] == (i | 0)))
@@ -7840,7 +7840,7 @@ var xo = { exports: {} };
7840
7840
  }
7841
7841
  z = c + 256 | 0;
7842
7842
  }
7843
- function nt(e, r, a) {
7843
+ function ot(e, r, a) {
7844
7844
  var i = 0, o = n(0);
7845
7845
  e: {
7846
7846
  if ((a & -2) == 2 && (i = r - -64 | 0, o = m[i >> 2], i = t[i >> 2], (i | 0) == 2139156720 | (i | 0) == 2140081935 | (i | 0) == 2141891242 | o == o))
@@ -7849,7 +7849,7 @@ var xo = { exports: {} };
7849
7849
  }
7850
7850
  Mi(e, i);
7851
7851
  }
7852
- function ot(e, r, a) {
7852
+ function st(e, r, a) {
7853
7853
  var i = 0, o = n(0);
7854
7854
  e: {
7855
7855
  if ((a & -2) == 2 && (i = t[r + 60 >> 2], o = m[r + 60 >> 2], (i | 0) == 2139156720 | (i | 0) == 2140081935 | (i | 0) == 2141891242 | o == o))
@@ -7995,7 +7995,7 @@ var xo = { exports: {} };
7995
7995
  var i = 0;
7996
7996
  i = t[e >> 2], e = t[e + 4 >> 2], r = (e >> 1) + r | 0, e & 1 && (i = t[i + t[r >> 2] >> 2]), ne[i | 0](r, a);
7997
7997
  }
7998
- function st(e, r) {
7998
+ function ft(e, r) {
7999
7999
  e = e | 0, r = r | 0;
8000
8000
  var a = 0;
8001
8001
  return a = t[e >> 2], e = t[e + 4 >> 2], r = (e >> 1) + r | 0, e & 1 && (a = t[a + t[r >> 2] >> 2]), ne[a | 0](r) | 0;
@@ -8434,7 +8434,7 @@ var xo = { exports: {} };
8434
8434
  H0(), Re();
8435
8435
  }
8436
8436
  w = j, Q();
8437
- var ne = _([null, V1, Ws, Ls, f0, If, _f, wf, f0, f0, f0, f0, f0, f0, P1, lf, Pi, kc, C2, c1, mc, f0, f0, C2, vn, An, tn, Y1, js, F1, yc, C2, on, vc, f0, f0, C2, vn, An, tn, Q1, D1, gc, un, mn, C1, yn, un, I1, en, Ds, L1, sf, M0, Yf, M0, cf, ef, rn, Qf, st, sc, st, fc, pc, Ea, K1, Ea, tf, Ea, wa, _a, Cf, mf, _c, Wi, mn, Ac, zf, dc, yn, Wi, Zs, on, Gs, M0, A1, M0, Af, U1, kf, cc, lc, uc, _1, p1, g1, uf, hf, yf, d1, b1, m1, H1, Xf, jf, hc, y1, v1, xf, Nf, qf, Tf, Of, Kf, Bf, Wf, Uf, Gf, Lf, Df, Hf, Vf, k1, l1, bf, pf, u1, Jf, st, Qs, E1, Zf, Ef, $f, Mf, Rf, Ff, Js, s1, R1, of, Z1, X1, Ks, e1, r1, t1, a1, qs, af, h1, G1, Sf, Pf, Ys, f1, W1, Hs, en, Vs, M0, ff, st, nf, st, O1, rn, vf, st, w1, M0, j1, M0, q1, M1, M0, z1, $1, gf, st, Us, B1, ec, rc, tc, ac, ic, nc, x1, N1, i1, n1, o1, wa, _a, wa, _a, Ui, fn, Ec, Xs, gn, _n, sn, wc, bc, gn, oc, Ms, T1, $c, df, zs, _n]);
8437
+ var ne = _([null, V1, Ws, Ls, f0, If, _f, wf, f0, f0, f0, f0, f0, f0, P1, lf, Pi, kc, C2, c1, mc, f0, f0, C2, vn, An, tn, Y1, js, F1, yc, C2, on, vc, f0, f0, C2, vn, An, tn, Q1, D1, gc, un, mn, C1, yn, un, I1, en, Ds, L1, sf, M0, Yf, M0, cf, ef, rn, Qf, ft, sc, ft, fc, pc, Ea, K1, Ea, tf, Ea, wa, _a, Cf, mf, _c, Wi, mn, Ac, zf, dc, yn, Wi, Zs, on, Gs, M0, A1, M0, Af, U1, kf, cc, lc, uc, _1, p1, g1, uf, hf, yf, d1, b1, m1, H1, Xf, jf, hc, y1, v1, xf, Nf, qf, Tf, Of, Kf, Bf, Wf, Uf, Gf, Lf, Df, Hf, Vf, k1, l1, bf, pf, u1, Jf, ft, Qs, E1, Zf, Ef, $f, Mf, Rf, Ff, Js, s1, R1, of, Z1, X1, Ks, e1, r1, t1, a1, qs, af, h1, G1, Sf, Pf, Ys, f1, W1, Hs, en, Vs, M0, ff, ft, nf, ft, O1, rn, vf, ft, w1, M0, j1, M0, q1, M1, M0, z1, $1, gf, ft, Us, B1, ec, rc, tc, ac, ic, nc, x1, N1, i1, n1, o1, wa, _a, wa, _a, Ui, fn, Ec, Xs, gn, _n, sn, wc, bc, gn, oc, Ms, T1, $c, df, zs, _n]);
8438
8438
  function wn() {
8439
8439
  return Cr.byteLength / 65536 | 0;
8440
8440
  }
@@ -8474,9 +8474,9 @@ var xo = { exports: {} };
8474
8474
  }
8475
8475
  return w;
8476
8476
  }
8477
- var ur, a0, er, u0, Br, Kr, sr, vr, at;
8477
+ var ur, a0, er, u0, Br, Kr, sr, vr, it;
8478
8478
  function i0(A) {
8479
- ur = A, p.HEAP8 = a0 = new Int8Array(A), p.HEAP16 = u0 = new Int16Array(A), p.HEAP32 = Kr = new Int32Array(A), p.HEAPU8 = er = new Uint8Array(A), p.HEAPU16 = Br = new Uint16Array(A), p.HEAPU32 = sr = new Uint32Array(A), p.HEAPF32 = vr = new Float32Array(A), p.HEAPF64 = at = new Float64Array(A);
8479
+ ur = A, p.HEAP8 = a0 = new Int8Array(A), p.HEAP16 = u0 = new Int16Array(A), p.HEAP32 = Kr = new Int32Array(A), p.HEAPU8 = er = new Uint8Array(A), p.HEAPU16 = Br = new Uint16Array(A), p.HEAPU32 = sr = new Uint32Array(A), p.HEAPF32 = vr = new Float32Array(A), p.HEAPF64 = it = new Float64Array(A);
8480
8480
  }
8481
8481
  var W = p.INITIAL_MEMORY || 16777216;
8482
8482
  p.wasmMemory ? qr = p.wasmMemory : qr = new Te(), qr && (ur = qr.buffer), W = ur.byteLength, i0(ur);
@@ -8823,7 +8823,7 @@ var xo = { exports: {} };
8823
8823
  };
8824
8824
  case 3:
8825
8825
  return function(_) {
8826
- return this.fromWireType(at[_ >> 3]);
8826
+ return this.fromWireType(it[_ >> 3]);
8827
8827
  };
8828
8828
  default:
8829
8829
  throw new TypeError("Unknown float type: " + A);
@@ -9506,7 +9506,7 @@ const fi = (f, s) => (l) => !!(h2(l) && Y4.test(l) && l.startsWith(f) || s && Ob
9506
9506
  test: fi("hsl", "hue"),
9507
9507
  parse: Io("hue", "saturation", "lightness"),
9508
9508
  transform: ({ hue: f, saturation: s, lightness: l, alpha: u = 1 }) => "hsla(" + Math.round(f) + ", " + n2.transform(i2(s)) + ", " + n2.transform(i2(l)) + ", " + i2(Oo.transform(u)) + ")"
9509
- }, J4 = To(0, 255), La = Object.assign(Object.assign({}, J2), { transform: (f) => Math.round(J4(f)) }), K0 = {
9509
+ }, J4 = To(0, 255), La = Object.assign(Object.assign({}, J2), { transform: (f) => Math.round(J4(f)) }), et = {
9510
9510
  test: fi("rgb", "red"),
9511
9511
  parse: Io("red", "green", "blue"),
9512
9512
  transform: ({ red: f, green: s, blue: l, alpha: u = 1 }) => "rgba(" + La.transform(f) + ", " + La.transform(s) + ", " + La.transform(l) + ", " + i2(Oo.transform(u)) + ")"
@@ -9523,11 +9523,11 @@ function q4(f) {
9523
9523
  const Ja = {
9524
9524
  test: fi("#"),
9525
9525
  parse: q4,
9526
- transform: K0.transform
9526
+ transform: et.transform
9527
9527
  }, q2 = {
9528
- test: (f) => K0.test(f) || Ja.test(f) || pt.test(f),
9529
- parse: (f) => K0.test(f) ? K0.parse(f) : pt.test(f) ? pt.parse(f) : Ja.parse(f),
9530
- transform: (f) => h2(f) ? f : f.hasOwnProperty("red") ? K0.transform(f) : pt.transform(f)
9528
+ test: (f) => et.test(f) || Ja.test(f) || pt.test(f),
9529
+ parse: (f) => et.test(f) ? et.parse(f) : pt.test(f) ? pt.parse(f) : Ja.parse(f),
9530
+ transform: (f) => h2(f) ? f : f.hasOwnProperty("red") ? et.transform(f) : pt.transform(f)
9531
9531
  }, Bo = "${c}", Wo = "${n}";
9532
9532
  function K4(f) {
9533
9533
  var s, l, u, d;
@@ -9582,9 +9582,9 @@ function io({ hue: f, saturation: s, lightness: l, alpha: u }) {
9582
9582
  const tl = (f, s, l) => {
9583
9583
  const u = f * f, d = s * s;
9584
9584
  return Math.sqrt(Math.max(0, l * (d - u) + u));
9585
- }, al = [Ja, K0, pt], no = (f) => al.find((s) => s.test(f)), Vo = (f, s) => {
9585
+ }, al = [Ja, et, pt], no = (f) => al.find((s) => s.test(f)), Vo = (f, s) => {
9586
9586
  let l = no(f), u = no(s), d = l.parse(f), p = u.parse(s);
9587
- l === pt && (d = io(d), l = K0), u === pt && (p = io(p), u = K0);
9587
+ l === pt && (d = io(d), l = et), u === pt && (p = io(p), u = et);
9588
9588
  const v = Object.assign({}, d);
9589
9589
  return (T) => {
9590
9590
  for (const O in v)
@@ -9844,7 +9844,7 @@ const Qo = /(?<value>\d+\.?\d*)(?=px)/, Nl = ni(
9844
9844
  1 / 3, (/* @__PURE__ */ new Date()).toISOString(), (/* @__PURE__ */ new Date()).toISOString();
9845
9845
  async function Ol() {
9846
9846
  if (typeof window > "u") {
9847
- const f = await import("./browser-47f3e1d6.js").then((s) => s.b);
9847
+ const f = await import("./browser-4d54600e.js").then((s) => s.b);
9848
9848
  return new f.Image();
9849
9849
  }
9850
9850
  return new Image();
@@ -9903,7 +9903,7 @@ Po.helpers.define(
9903
9903
  }
9904
9904
  )
9905
9905
  );
9906
- const Gl = "2", Ll = "@vouchfor/embeds", Hl = "1.2.1", Vl = "MIT", Zl = "Aaron Williams", Ml = "dist/es/embeds.js", Fl = "dist/es/embeds.js", Dl = "module", Xl = "dist/es/src/index.d.ts", jl = {
9906
+ const Gl = "2", Ll = "@vouchfor/embeds", Hl = "1.2.2", Vl = "MIT", Zl = "Aaron Williams", Ml = "dist/es/embeds.js", Fl = "dist/es/embeds.js", Dl = "module", Xl = "dist/es/src/index.d.ts", jl = {
9907
9907
  ".": "./dist/es/embeds.js"
9908
9908
  }, zl = [
9909
9909
  "dist",
@@ -9990,7 +9990,7 @@ const Gl = "2", Ll = "@vouchfor/embeds", Hl = "1.2.1", Vl = "MIT", Zl = "Aaron W
9990
9990
  devDependencies: Kl
9991
9991
  };
9992
9992
  function ru(f) {
9993
- const { publicApiUrl: s } = D2(f), l = ht();
9993
+ const { publicApiUrl: s } = D2(f), l = K0();
9994
9994
  return navigator.sendBeacon(`${s}/api/visitor`, JSON.stringify({ visitorId: l })), l;
9995
9995
  }
9996
9996
  function tu(f) {
@@ -9999,11 +9999,11 @@ function tu(f) {
9999
9999
  return {
10000
10000
  client: null,
10001
10001
  tab: null,
10002
- request: ht()
10002
+ request: K0()
10003
10003
  };
10004
10004
  let s = (v = (p = window.localStorage) == null ? void 0 : p.getItem) == null ? void 0 : v.call(p, "vouch-uid-visitor"), l = (O = (T = window.localStorage) == null ? void 0 : T.getItem) == null ? void 0 : O.call(T, "vouch-uid-client"), u = (ae = (K = window.sessionStorage) == null ? void 0 : K.getItem) == null ? void 0 : ae.call(K, "vouch-uid-tab");
10005
- const d = ht();
10006
- return s || (s = ru(f), (me = (te = window.localStorage) == null ? void 0 : te.setItem) == null || me.call(te, "vouch-uid-visitor", s)), l || (l = ht(), (Fe = (Te = window.localStorage) == null ? void 0 : Te.setItem) == null || Fe.call(Te, "vouch-uid-client", l)), u || (u = ht(), (Jr = (We = window.sessionStorage) == null ? void 0 : We.setItem) == null || Jr.call(We, "vouch-uid-tab", u)), {
10005
+ const d = K0();
10006
+ return s || (s = ru(f), (me = (te = window.localStorage) == null ? void 0 : te.setItem) == null || me.call(te, "vouch-uid-visitor", s)), l || (l = K0(), (Fe = (Te = window.localStorage) == null ? void 0 : Te.setItem) == null || Fe.call(Te, "vouch-uid-client", l)), u || (u = K0(), (Jr = (We = window.sessionStorage) == null ? void 0 : We.setItem) == null || Jr.call(We, "vouch-uid-tab", u)), {
10007
10007
  client: l,
10008
10008
  tab: u,
10009
10009
  request: d,
@@ -10221,7 +10221,7 @@ var su = Object.defineProperty, fu = Object.getOwnPropertyDescriptor, Ir = (f, s
10221
10221
  (v = f[p]) && (d = (u ? v(s, l, d) : v(d)) || d);
10222
10222
  return u && d && su(s, l, d), d;
10223
10223
  };
10224
- let Er = class extends ou(tt) {
10224
+ let Er = class extends ou(at) {
10225
10225
  constructor() {
10226
10226
  super(...arguments), this.env = "prod", this.apiKey = "", this.disableTracking = !1, this.trackingSource = "embedded_player", this.preload = "auto", this.autoplay = !1, this.aspectRatio = 0, this.eventController = new u4(this, [
10227
10227
  "durationchange",
@@ -10400,7 +10400,7 @@ var du = Object.defineProperty, bu = Object.getOwnPropertyDescriptor, hi = (f, s
10400
10400
  (v = f[p]) && (d = (u ? v(s, l, d) : v(d)) || d);
10401
10401
  return u && d && du(s, l, d), d;
10402
10402
  };
10403
- let l2 = class extends tt {
10403
+ let l2 = class extends at {
10404
10404
  constructor() {
10405
10405
  super(...arguments), this.open = !1, this.aspectRatio = 0;
10406
10406
  }
@@ -10520,11 +10520,11 @@ var pu = Object.defineProperty, Au = Object.getOwnPropertyDescriptor, Qr = (f, s
10520
10520
  (v = f[p]) && (d = (u ? v(s, l, d) : v(d)) || d);
10521
10521
  return u && d && pu(s, l, d), d;
10522
10522
  };
10523
- let Fr = class extends tt {
10523
+ let Fr = class extends at {
10524
10524
  constructor() {
10525
- super(...arguments), this.env = "prod", this.apiKey = "", this.disableTracking = !1, this.trackingSource = "embedded_player", this.preload = "none", this.disableAutoplay = !1, this.aspectRatio = 0, this._mediaPlayerRef = Ka(), this.open = !1, this._handleToggle = () => {
10526
- var f, s, l;
10527
- this.open = !this.open, this.open ? !this.disableAutoplay && ((f = this._mediaPlayerRef) != null && f.value) && (this._mediaPlayerRef.value.muted = !1, this._mediaPlayerRef.value.play()) : (l = (s = this._mediaPlayerRef) == null ? void 0 : s.value) == null || l.pause();
10525
+ super(...arguments), this.env = "prod", this.apiKey = "", this.disableTracking = !1, this.trackingSource = "embedded_player", this.preload = "none", this.disableAutoplay = !1, this.aspectRatio = 0, this._mediaPlayerRef = Ka(), this.open = !1, this._handleToggle = ({ detail: f }) => {
10526
+ var s, l, u;
10527
+ this.id === f && (this.open = !this.open, this.open ? !this.disableAutoplay && ((s = this._mediaPlayerRef) != null && s.value) && (this._mediaPlayerRef.value.muted = !1, this._mediaPlayerRef.value.play()) : (u = (l = this._mediaPlayerRef) == null ? void 0 : l.value) == null || u.pause());
10528
10528
  }, this._handleClose = () => {
10529
10529
  var f, s;
10530
10530
  this.open = !1, (s = (f = this._mediaPlayerRef) == null ? void 0 : f.value) == null || s.pause();
@@ -10539,7 +10539,8 @@ let Fr = class extends tt {
10539
10539
  super.disconnectedCallback(), document.removeEventListener("dialogembed:click", this._handleToggle), document.removeEventListener("keyup", this._handleDocumentKeyUp), document.removeEventListener("close:click", this._handleClose), document.removeEventListener("overlay:click", this._handleClose);
10540
10540
  }
10541
10541
  createRenderRoot() {
10542
- return document.body;
10542
+ const f = document.createElement("div");
10543
+ return document.body.appendChild(f), f;
10543
10544
  }
10544
10545
  render() {
10545
10546
  return It`
@@ -10610,10 +10611,10 @@ var ku = Object.defineProperty, mu = Object.getOwnPropertyDescriptor, t0 = (f, s
10610
10611
  (v = f[p]) && (d = (u ? v(s, l, d) : v(d)) || d);
10611
10612
  return u && d && ku(s, l, d), d;
10612
10613
  };
10613
- let Dr = class extends tt {
10614
+ let Dr = class extends at {
10614
10615
  constructor() {
10615
- super(...arguments), this.env = "prod", this.apiKey = "", this.disableTracking = !1, this.trackingSource = "embedded_player", this.preload = "none", this.disableAutoplay = !1, this.aspectRatio = 0, this._handleRootClick = () => {
10616
- this.dispatchEvent(new CustomEvent("dialogembed:click", { bubbles: !0, composed: !0 }));
10616
+ super(...arguments), this.env = "prod", this.apiKey = "", this.disableTracking = !1, this.trackingSource = "embedded_player", this.preload = "none", this.disableAutoplay = !1, this.aspectRatio = 0, this._id = K0(), this._handleRootClick = () => {
10617
+ this.dispatchEvent(new CustomEvent("dialogembed:click", { detail: this._id, bubbles: !0, composed: !0 }));
10617
10618
  };
10618
10619
  }
10619
10620
  connectedCallback() {
@@ -10628,6 +10629,7 @@ let Dr = class extends tt {
10628
10629
  <vmp-button size="large">Play</vmp-button>
10629
10630
  </slot>
10630
10631
  <vouch-embed-dialog-portal
10632
+ id=${this._id}
10631
10633
  ?autoplay=${!1}
10632
10634
  vouchId=${Mr(this.vouchId)}
10633
10635
  templateId=${Mr(this.templateId)}
@@ -10698,4 +10700,4 @@ export {
10698
10700
  Fa as c,
10699
10701
  x4 as g
10700
10702
  };
10701
- //# sourceMappingURL=index-d6ce78b6.js.map
10703
+ //# sourceMappingURL=index-14868944.js.map