@vouchfor/embeds 0.0.0-experiment.c840098 → 0.0.0-experiment.cb158c1
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/es/embeds.js +983 -1424
 - package/dist/es/embeds.js.map +1 -1
 - package/dist/es/src/components/DialogEmbed/DialogOverlay.d.ts +20 -0
 - package/dist/es/src/components/DialogEmbed/DialogPortal.d.ts +36 -0
 - package/dist/es/src/components/DialogEmbed/index.d.ts +38 -0
 - package/dist/es/src/components/PlayerEmbed/controllers/event-forwarder.d.ts +15 -0
 - package/dist/es/src/components/{Embed → PlayerEmbed}/controllers/fetcher.d.ts +5 -4
 - package/dist/es/src/components/{Embed/controllers/tracking.d.ts → PlayerEmbed/controllers/tracking/index.d.ts} +14 -11
 - package/dist/es/src/components/PlayerEmbed/controllers/tracking/utils.d.ts +17 -0
 - package/dist/es/src/components/PlayerEmbed/index.d.ts +77 -0
 - package/dist/es/src/components/PlayerEmbed/tests/data.d.ts +3 -0
 - package/dist/es/src/index.d.ts +2 -1
 - package/dist/iife/dialog-embed/embed.iife.js +1757 -0
 - package/dist/iife/dialog-embed/embed.iife.js.map +1 -0
 - package/dist/iife/embeds.iife.js +769 -446
 - package/dist/iife/embeds.iife.js.map +1 -1
 - package/dist/iife/player-embed/embed.iife.js +1619 -0
 - package/dist/iife/player-embed/embed.iife.js.map +1 -0
 - package/package.json +44 -31
 - package/src/components/DialogEmbed/Dialog.stories.ts +91 -0
 - package/src/components/DialogEmbed/DialogOverlay.ts +131 -0
 - package/src/components/DialogEmbed/DialogPortal.ts +126 -0
 - package/src/components/DialogEmbed/index.ts +97 -0
 - package/src/components/PlayerEmbed/MultiEmbed.stories.ts +135 -0
 - package/src/components/{Embed/Embed.stories.ts → PlayerEmbed/PlayerEmbed.stories.ts} +42 -15
 - package/src/components/{Embed → PlayerEmbed}/controllers/event-forwarder.ts +6 -5
 - package/src/components/{Embed → PlayerEmbed}/controllers/fetcher.ts +33 -14
 - package/src/components/{Embed/controllers/tracking.ts → PlayerEmbed/controllers/tracking/index.ts} +47 -115
 - package/src/components/PlayerEmbed/controllers/tracking/utils.ts +95 -0
 - package/src/components/{Embed → PlayerEmbed}/index.ts +91 -28
 - package/src/components/PlayerEmbed/tests/PlayerEmbed.spec.ts +80 -0
 - package/src/components/PlayerEmbed/tests/data.ts +183 -0
 - package/src/index.ts +2 -1
 - package/dist/es/src/components/Embed/index.d.ts +0 -66
 
    
        package/dist/es/embeds.js
    CHANGED
    
    | 
         @@ -1,1237 +1,226 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            import {  
     | 
| 
       2 
     | 
    
         
            -
            import {  
     | 
| 
       3 
     | 
    
         
            -
            import {  
     | 
| 
       4 
     | 
    
         
            -
            import {  
     | 
| 
       5 
     | 
    
         
            -
            import {  
     | 
| 
      
 1 
     | 
    
         
            +
            import { css, LitElement, html } from "lit";
         
     | 
| 
      
 2 
     | 
    
         
            +
            import { property, state, customElement } from "lit/decorators.js";
         
     | 
| 
      
 3 
     | 
    
         
            +
            import { ifDefined } from "lit/directives/if-defined.js";
         
     | 
| 
      
 4 
     | 
    
         
            +
            import { createRef, ref } from "lit/directives/ref.js";
         
     | 
| 
      
 5 
     | 
    
         
            +
            import { Task } from "@lit/task";
         
     | 
| 
      
 6 
     | 
    
         
            +
            import { v4 } from "uuid";
         
     | 
| 
      
 7 
     | 
    
         
            +
            import { TEMPLATE_VERSION } from "@vouchfor/canvas-video";
         
     | 
| 
       6 
8 
     | 
    
         
             
            import "@vouchfor/media-player";
         
     | 
| 
       7 
     | 
    
         
            -
             
     | 
| 
       8 
     | 
    
         
            -
              
     | 
| 
       9 
     | 
    
         
            -
              
     | 
| 
       10 
     | 
    
         
            -
              
     | 
| 
       11 
     | 
    
         
            -
              
     | 
| 
       12 
     | 
    
         
            -
             
     | 
| 
       13 
     | 
    
         
            -
             
     | 
| 
       14 
     | 
    
         
            -
               
     | 
| 
       15 
     | 
    
         
            -
             
     | 
| 
       16 
     | 
    
         
            -
             
     | 
| 
       17 
     | 
    
         
            -
                this.cssText = t, this.t = e;
         
     | 
| 
       18 
     | 
    
         
            -
              }
         
     | 
| 
       19 
     | 
    
         
            -
              get styleSheet() {
         
     | 
| 
       20 
     | 
    
         
            -
                let t = this.o;
         
     | 
| 
       21 
     | 
    
         
            -
                const e = this.t;
         
     | 
| 
       22 
     | 
    
         
            -
                if (_t && t === void 0) {
         
     | 
| 
       23 
     | 
    
         
            -
                  const i = e !== void 0 && e.length === 1;
         
     | 
| 
       24 
     | 
    
         
            -
                  i && (t = gt.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), i && gt.set(e, t));
         
     | 
| 
       25 
     | 
    
         
            -
                }
         
     | 
| 
       26 
     | 
    
         
            -
                return t;
         
     | 
| 
       27 
     | 
    
         
            -
              }
         
     | 
| 
       28 
     | 
    
         
            -
              toString() {
         
     | 
| 
       29 
     | 
    
         
            -
                return this.cssText;
         
     | 
| 
       30 
     | 
    
         
            -
              }
         
     | 
| 
       31 
     | 
    
         
            -
            };
         
     | 
| 
       32 
     | 
    
         
            -
            const ce = (r) => new de(typeof r == "string" ? r : r + "", void 0, qt), pe = (r, t) => {
         
     | 
| 
       33 
     | 
    
         
            -
              if (_t)
         
     | 
| 
       34 
     | 
    
         
            -
                r.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
         
     | 
| 
       35 
     | 
    
         
            -
              else
         
     | 
| 
       36 
     | 
    
         
            -
                for (const e of t) {
         
     | 
| 
       37 
     | 
    
         
            -
                  const i = document.createElement("style"), s = G.litNonce;
         
     | 
| 
       38 
     | 
    
         
            -
                  s !== void 0 && i.setAttribute("nonce", s), i.textContent = e.cssText, r.appendChild(i);
         
     | 
| 
       39 
     | 
    
         
            -
                }
         
     | 
| 
       40 
     | 
    
         
            -
            }, vt = _t ? (r) => r : (r) => r instanceof CSSStyleSheet ? ((t) => {
         
     | 
| 
       41 
     | 
    
         
            -
              let e = "";
         
     | 
| 
       42 
     | 
    
         
            -
              for (const i of t.cssRules)
         
     | 
| 
       43 
     | 
    
         
            -
                e += i.cssText;
         
     | 
| 
       44 
     | 
    
         
            -
              return ce(e);
         
     | 
| 
       45 
     | 
    
         
            -
            })(r) : r;
         
     | 
| 
       46 
     | 
    
         
            -
            /**
         
     | 
| 
       47 
     | 
    
         
            -
             * @license
         
     | 
| 
       48 
     | 
    
         
            -
             * Copyright 2017 Google LLC
         
     | 
| 
       49 
     | 
    
         
            -
             * SPDX-License-Identifier: BSD-3-Clause
         
     | 
| 
       50 
     | 
    
         
            -
             */
         
     | 
| 
       51 
     | 
    
         
            -
            const { is: ue, defineProperty: _e, getOwnPropertyDescriptor: me, getOwnPropertyNames: $e, getOwnPropertySymbols: fe, getPrototypeOf: ge } = Object, b = globalThis, yt = b.trustedTypes, ve = yt ? yt.emptyScript : "", rt = b.reactiveElementPolyfillSupport, I = (r, t) => r, ct = { toAttribute(r, t) {
         
     | 
| 
       52 
     | 
    
         
            -
              switch (t) {
         
     | 
| 
       53 
     | 
    
         
            -
                case Boolean:
         
     | 
| 
       54 
     | 
    
         
            -
                  r = r ? ve : null;
         
     | 
| 
       55 
     | 
    
         
            -
                  break;
         
     | 
| 
       56 
     | 
    
         
            -
                case Object:
         
     | 
| 
       57 
     | 
    
         
            -
                case Array:
         
     | 
| 
       58 
     | 
    
         
            -
                  r = r == null ? r : JSON.stringify(r);
         
     | 
| 
       59 
     | 
    
         
            -
              }
         
     | 
| 
       60 
     | 
    
         
            -
              return r;
         
     | 
| 
       61 
     | 
    
         
            -
            }, fromAttribute(r, t) {
         
     | 
| 
       62 
     | 
    
         
            -
              let e = r;
         
     | 
| 
       63 
     | 
    
         
            -
              switch (t) {
         
     | 
| 
       64 
     | 
    
         
            -
                case Boolean:
         
     | 
| 
       65 
     | 
    
         
            -
                  e = r !== null;
         
     | 
| 
       66 
     | 
    
         
            -
                  break;
         
     | 
| 
       67 
     | 
    
         
            -
                case Number:
         
     | 
| 
       68 
     | 
    
         
            -
                  e = r === null ? null : Number(r);
         
     | 
| 
       69 
     | 
    
         
            -
                  break;
         
     | 
| 
       70 
     | 
    
         
            -
                case Object:
         
     | 
| 
       71 
     | 
    
         
            -
                case Array:
         
     | 
| 
       72 
     | 
    
         
            -
                  try {
         
     | 
| 
       73 
     | 
    
         
            -
                    e = JSON.parse(r);
         
     | 
| 
       74 
     | 
    
         
            -
                  } catch {
         
     | 
| 
       75 
     | 
    
         
            -
                    e = null;
         
     | 
| 
       76 
     | 
    
         
            -
                  }
         
     | 
| 
       77 
     | 
    
         
            -
              }
         
     | 
| 
       78 
     | 
    
         
            -
              return e;
         
     | 
| 
       79 
     | 
    
         
            -
            } }, Xt = (r, t) => !ue(r, t), At = { attribute: !0, type: String, converter: ct, reflect: !1, hasChanged: Xt };
         
     | 
| 
       80 
     | 
    
         
            -
            Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), b.litPropertyMetadata ?? (b.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
         
     | 
| 
       81 
     | 
    
         
            -
            let N = class extends HTMLElement {
         
     | 
| 
       82 
     | 
    
         
            -
              static addInitializer(t) {
         
     | 
| 
       83 
     | 
    
         
            -
                this._$Ei(), (this.l ?? (this.l = [])).push(t);
         
     | 
| 
       84 
     | 
    
         
            -
              }
         
     | 
| 
       85 
     | 
    
         
            -
              static get observedAttributes() {
         
     | 
| 
       86 
     | 
    
         
            -
                return this.finalize(), this._$Eh && [...this._$Eh.keys()];
         
     | 
| 
       87 
     | 
    
         
            -
              }
         
     | 
| 
       88 
     | 
    
         
            -
              static createProperty(t, e = At) {
         
     | 
| 
       89 
     | 
    
         
            -
                if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
         
     | 
| 
       90 
     | 
    
         
            -
                  const i = Symbol(), s = this.getPropertyDescriptor(t, i, e);
         
     | 
| 
       91 
     | 
    
         
            -
                  s !== void 0 && _e(this.prototype, t, s);
         
     | 
| 
       92 
     | 
    
         
            -
                }
         
     | 
| 
       93 
     | 
    
         
            -
              }
         
     | 
| 
       94 
     | 
    
         
            -
              static getPropertyDescriptor(t, e, i) {
         
     | 
| 
       95 
     | 
    
         
            -
                const { get: s, set: n } = me(this.prototype, t) ?? { get() {
         
     | 
| 
       96 
     | 
    
         
            -
                  return this[e];
         
     | 
| 
       97 
     | 
    
         
            -
                }, set(o) {
         
     | 
| 
       98 
     | 
    
         
            -
                  this[e] = o;
         
     | 
| 
       99 
     | 
    
         
            -
                } };
         
     | 
| 
       100 
     | 
    
         
            -
                return { get() {
         
     | 
| 
       101 
     | 
    
         
            -
                  return s == null ? void 0 : s.call(this);
         
     | 
| 
       102 
     | 
    
         
            -
                }, set(o) {
         
     | 
| 
       103 
     | 
    
         
            -
                  const h = s == null ? void 0 : s.call(this);
         
     | 
| 
       104 
     | 
    
         
            -
                  n.call(this, o), this.requestUpdate(t, h, i);
         
     | 
| 
       105 
     | 
    
         
            -
                }, configurable: !0, enumerable: !0 };
         
     | 
| 
       106 
     | 
    
         
            -
              }
         
     | 
| 
       107 
     | 
    
         
            -
              static getPropertyOptions(t) {
         
     | 
| 
       108 
     | 
    
         
            -
                return this.elementProperties.get(t) ?? At;
         
     | 
| 
       109 
     | 
    
         
            -
              }
         
     | 
| 
       110 
     | 
    
         
            -
              static _$Ei() {
         
     | 
| 
       111 
     | 
    
         
            -
                if (this.hasOwnProperty(I("elementProperties")))
         
     | 
| 
       112 
     | 
    
         
            -
                  return;
         
     | 
| 
       113 
     | 
    
         
            -
                const t = ge(this);
         
     | 
| 
       114 
     | 
    
         
            -
                t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
         
     | 
| 
       115 
     | 
    
         
            -
              }
         
     | 
| 
       116 
     | 
    
         
            -
              static finalize() {
         
     | 
| 
       117 
     | 
    
         
            -
                if (this.hasOwnProperty(I("finalized")))
         
     | 
| 
       118 
     | 
    
         
            -
                  return;
         
     | 
| 
       119 
     | 
    
         
            -
                if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(I("properties"))) {
         
     | 
| 
       120 
     | 
    
         
            -
                  const e = this.properties, i = [...$e(e), ...fe(e)];
         
     | 
| 
       121 
     | 
    
         
            -
                  for (const s of i)
         
     | 
| 
       122 
     | 
    
         
            -
                    this.createProperty(s, e[s]);
         
     | 
| 
       123 
     | 
    
         
            -
                }
         
     | 
| 
       124 
     | 
    
         
            -
                const t = this[Symbol.metadata];
         
     | 
| 
       125 
     | 
    
         
            -
                if (t !== null) {
         
     | 
| 
       126 
     | 
    
         
            -
                  const e = litPropertyMetadata.get(t);
         
     | 
| 
       127 
     | 
    
         
            -
                  if (e !== void 0)
         
     | 
| 
       128 
     | 
    
         
            -
                    for (const [i, s] of e)
         
     | 
| 
       129 
     | 
    
         
            -
                      this.elementProperties.set(i, s);
         
     | 
| 
       130 
     | 
    
         
            -
                }
         
     | 
| 
       131 
     | 
    
         
            -
                this._$Eh = /* @__PURE__ */ new Map();
         
     | 
| 
       132 
     | 
    
         
            -
                for (const [e, i] of this.elementProperties) {
         
     | 
| 
       133 
     | 
    
         
            -
                  const s = this._$Eu(e, i);
         
     | 
| 
       134 
     | 
    
         
            -
                  s !== void 0 && this._$Eh.set(s, e);
         
     | 
| 
       135 
     | 
    
         
            -
                }
         
     | 
| 
       136 
     | 
    
         
            -
                this.elementStyles = this.finalizeStyles(this.styles);
         
     | 
| 
       137 
     | 
    
         
            -
              }
         
     | 
| 
       138 
     | 
    
         
            -
              static finalizeStyles(t) {
         
     | 
| 
       139 
     | 
    
         
            -
                const e = [];
         
     | 
| 
       140 
     | 
    
         
            -
                if (Array.isArray(t)) {
         
     | 
| 
       141 
     | 
    
         
            -
                  const i = new Set(t.flat(1 / 0).reverse());
         
     | 
| 
       142 
     | 
    
         
            -
                  for (const s of i)
         
     | 
| 
       143 
     | 
    
         
            -
                    e.unshift(vt(s));
         
     | 
| 
       144 
     | 
    
         
            -
                } else
         
     | 
| 
       145 
     | 
    
         
            -
                  t !== void 0 && e.push(vt(t));
         
     | 
| 
       146 
     | 
    
         
            -
                return e;
         
     | 
| 
       147 
     | 
    
         
            -
              }
         
     | 
| 
       148 
     | 
    
         
            -
              static _$Eu(t, e) {
         
     | 
| 
       149 
     | 
    
         
            -
                const i = e.attribute;
         
     | 
| 
       150 
     | 
    
         
            -
                return i === !1 ? void 0 : typeof i == "string" ? i : typeof t == "string" ? t.toLowerCase() : void 0;
         
     | 
| 
       151 
     | 
    
         
            -
              }
         
     | 
| 
       152 
     | 
    
         
            -
              constructor() {
         
     | 
| 
       153 
     | 
    
         
            -
                super(), this._$Ep = void 0, this.isUpdatePending = !1, this.hasUpdated = !1, this._$Em = null, this._$Ev();
         
     | 
| 
       154 
     | 
    
         
            -
              }
         
     | 
| 
       155 
     | 
    
         
            -
              _$Ev() {
         
     | 
| 
       156 
     | 
    
         
            -
                var t;
         
     | 
| 
       157 
     | 
    
         
            -
                this._$Eg = new Promise((e) => this.enableUpdating = e), this._$AL = /* @__PURE__ */ new Map(), this._$ES(), this.requestUpdate(), (t = this.constructor.l) == null || t.forEach((e) => e(this));
         
     | 
| 
       158 
     | 
    
         
            -
              }
         
     | 
| 
       159 
     | 
    
         
            -
              addController(t) {
         
     | 
| 
       160 
     | 
    
         
            -
                var e;
         
     | 
| 
       161 
     | 
    
         
            -
                (this._$E_ ?? (this._$E_ = /* @__PURE__ */ new Set())).add(t), this.renderRoot !== void 0 && this.isConnected && ((e = t.hostConnected) == null || e.call(t));
         
     | 
| 
       162 
     | 
    
         
            -
              }
         
     | 
| 
       163 
     | 
    
         
            -
              removeController(t) {
         
     | 
| 
       164 
     | 
    
         
            -
                var e;
         
     | 
| 
       165 
     | 
    
         
            -
                (e = this._$E_) == null || e.delete(t);
         
     | 
| 
       166 
     | 
    
         
            -
              }
         
     | 
| 
       167 
     | 
    
         
            -
              _$ES() {
         
     | 
| 
       168 
     | 
    
         
            -
                const t = /* @__PURE__ */ new Map(), e = this.constructor.elementProperties;
         
     | 
| 
       169 
     | 
    
         
            -
                for (const i of e.keys())
         
     | 
| 
       170 
     | 
    
         
            -
                  this.hasOwnProperty(i) && (t.set(i, this[i]), delete this[i]);
         
     | 
| 
       171 
     | 
    
         
            -
                t.size > 0 && (this._$Ep = t);
         
     | 
| 
       172 
     | 
    
         
            -
              }
         
     | 
| 
       173 
     | 
    
         
            -
              createRenderRoot() {
         
     | 
| 
       174 
     | 
    
         
            -
                const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
         
     | 
| 
       175 
     | 
    
         
            -
                return pe(t, this.constructor.elementStyles), t;
         
     | 
| 
       176 
     | 
    
         
            -
              }
         
     | 
| 
       177 
     | 
    
         
            -
              connectedCallback() {
         
     | 
| 
       178 
     | 
    
         
            -
                var t;
         
     | 
| 
       179 
     | 
    
         
            -
                this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (t = this._$E_) == null || t.forEach((e) => {
         
     | 
| 
       180 
     | 
    
         
            -
                  var i;
         
     | 
| 
       181 
     | 
    
         
            -
                  return (i = e.hostConnected) == null ? void 0 : i.call(e);
         
     | 
| 
       182 
     | 
    
         
            -
                });
         
     | 
| 
       183 
     | 
    
         
            -
              }
         
     | 
| 
       184 
     | 
    
         
            -
              enableUpdating(t) {
         
     | 
| 
       185 
     | 
    
         
            -
              }
         
     | 
| 
       186 
     | 
    
         
            -
              disconnectedCallback() {
         
     | 
| 
       187 
     | 
    
         
            -
                var t;
         
     | 
| 
       188 
     | 
    
         
            -
                (t = this._$E_) == null || t.forEach((e) => {
         
     | 
| 
       189 
     | 
    
         
            -
                  var i;
         
     | 
| 
       190 
     | 
    
         
            -
                  return (i = e.hostDisconnected) == null ? void 0 : i.call(e);
         
     | 
| 
       191 
     | 
    
         
            -
                });
         
     | 
| 
       192 
     | 
    
         
            -
              }
         
     | 
| 
       193 
     | 
    
         
            -
              attributeChangedCallback(t, e, i) {
         
     | 
| 
       194 
     | 
    
         
            -
                this._$AK(t, i);
         
     | 
| 
       195 
     | 
    
         
            -
              }
         
     | 
| 
       196 
     | 
    
         
            -
              _$EO(t, e) {
         
     | 
| 
       197 
     | 
    
         
            -
                var n;
         
     | 
| 
       198 
     | 
    
         
            -
                const i = this.constructor.elementProperties.get(t), s = this.constructor._$Eu(t, i);
         
     | 
| 
       199 
     | 
    
         
            -
                if (s !== void 0 && i.reflect === !0) {
         
     | 
| 
       200 
     | 
    
         
            -
                  const o = (((n = i.converter) == null ? void 0 : n.toAttribute) !== void 0 ? i.converter : ct).toAttribute(e, i.type);
         
     | 
| 
       201 
     | 
    
         
            -
                  this._$Em = t, o == null ? this.removeAttribute(s) : this.setAttribute(s, o), this._$Em = null;
         
     | 
| 
       202 
     | 
    
         
            -
                }
         
     | 
| 
       203 
     | 
    
         
            -
              }
         
     | 
| 
       204 
     | 
    
         
            -
              _$AK(t, e) {
         
     | 
| 
       205 
     | 
    
         
            -
                var n;
         
     | 
| 
       206 
     | 
    
         
            -
                const i = this.constructor, s = i._$Eh.get(t);
         
     | 
| 
       207 
     | 
    
         
            -
                if (s !== void 0 && this._$Em !== s) {
         
     | 
| 
       208 
     | 
    
         
            -
                  const o = i.getPropertyOptions(s), h = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((n = o.converter) == null ? void 0 : n.fromAttribute) !== void 0 ? o.converter : ct;
         
     | 
| 
       209 
     | 
    
         
            -
                  this._$Em = s, this[s] = h.fromAttribute(e, o.type), this._$Em = null;
         
     | 
| 
       210 
     | 
    
         
            -
                }
         
     | 
| 
       211 
     | 
    
         
            -
              }
         
     | 
| 
       212 
     | 
    
         
            -
              requestUpdate(t, e, i, s = !1, n) {
         
     | 
| 
       213 
     | 
    
         
            -
                if (t !== void 0) {
         
     | 
| 
       214 
     | 
    
         
            -
                  if (i ?? (i = this.constructor.getPropertyOptions(t)), !(i.hasChanged ?? Xt)(s ? n : this[t], e))
         
     | 
| 
       215 
     | 
    
         
            -
                    return;
         
     | 
| 
       216 
     | 
    
         
            -
                  this.C(t, e, i);
         
     | 
| 
       217 
     | 
    
         
            -
                }
         
     | 
| 
       218 
     | 
    
         
            -
                this.isUpdatePending === !1 && (this._$Eg = this._$EP());
         
     | 
| 
       219 
     | 
    
         
            -
              }
         
     | 
| 
       220 
     | 
    
         
            -
              C(t, e, i) {
         
     | 
| 
       221 
     | 
    
         
            -
                this._$AL.has(t) || this._$AL.set(t, e), i.reflect === !0 && this._$Em !== t && (this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Set())).add(t);
         
     | 
| 
       222 
     | 
    
         
            -
              }
         
     | 
| 
       223 
     | 
    
         
            -
              async _$EP() {
         
     | 
| 
       224 
     | 
    
         
            -
                this.isUpdatePending = !0;
         
     | 
| 
       225 
     | 
    
         
            -
                try {
         
     | 
| 
       226 
     | 
    
         
            -
                  await this._$Eg;
         
     | 
| 
       227 
     | 
    
         
            -
                } catch (e) {
         
     | 
| 
       228 
     | 
    
         
            -
                  Promise.reject(e);
         
     | 
| 
       229 
     | 
    
         
            -
                }
         
     | 
| 
       230 
     | 
    
         
            -
                const t = this.scheduleUpdate();
         
     | 
| 
       231 
     | 
    
         
            -
                return t != null && await t, !this.isUpdatePending;
         
     | 
| 
       232 
     | 
    
         
            -
              }
         
     | 
| 
       233 
     | 
    
         
            -
              scheduleUpdate() {
         
     | 
| 
       234 
     | 
    
         
            -
                return this.performUpdate();
         
     | 
| 
       235 
     | 
    
         
            -
              }
         
     | 
| 
       236 
     | 
    
         
            -
              performUpdate() {
         
     | 
| 
       237 
     | 
    
         
            -
                var i;
         
     | 
| 
       238 
     | 
    
         
            -
                if (!this.isUpdatePending)
         
     | 
| 
       239 
     | 
    
         
            -
                  return;
         
     | 
| 
       240 
     | 
    
         
            -
                if (!this.hasUpdated) {
         
     | 
| 
       241 
     | 
    
         
            -
                  if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
         
     | 
| 
       242 
     | 
    
         
            -
                    for (const [n, o] of this._$Ep)
         
     | 
| 
       243 
     | 
    
         
            -
                      this[n] = o;
         
     | 
| 
       244 
     | 
    
         
            -
                    this._$Ep = void 0;
         
     | 
| 
       245 
     | 
    
         
            -
                  }
         
     | 
| 
       246 
     | 
    
         
            -
                  const s = this.constructor.elementProperties;
         
     | 
| 
       247 
     | 
    
         
            -
                  if (s.size > 0)
         
     | 
| 
       248 
     | 
    
         
            -
                    for (const [n, o] of s)
         
     | 
| 
       249 
     | 
    
         
            -
                      o.wrapped !== !0 || this._$AL.has(n) || this[n] === void 0 || this.C(n, this[n], o);
         
     | 
| 
       250 
     | 
    
         
            -
                }
         
     | 
| 
       251 
     | 
    
         
            -
                let t = !1;
         
     | 
| 
       252 
     | 
    
         
            -
                const e = this._$AL;
         
     | 
| 
       253 
     | 
    
         
            -
                try {
         
     | 
| 
       254 
     | 
    
         
            -
                  t = this.shouldUpdate(e), t ? (this.willUpdate(e), (i = this._$E_) == null || i.forEach((s) => {
         
     | 
| 
       255 
     | 
    
         
            -
                    var n;
         
     | 
| 
       256 
     | 
    
         
            -
                    return (n = s.hostUpdate) == null ? void 0 : n.call(s);
         
     | 
| 
       257 
     | 
    
         
            -
                  }), this.update(e)) : this._$ET();
         
     | 
| 
       258 
     | 
    
         
            -
                } catch (s) {
         
     | 
| 
       259 
     | 
    
         
            -
                  throw t = !1, this._$ET(), s;
         
     | 
| 
       260 
     | 
    
         
            -
                }
         
     | 
| 
       261 
     | 
    
         
            -
                t && this._$AE(e);
         
     | 
| 
       262 
     | 
    
         
            -
              }
         
     | 
| 
       263 
     | 
    
         
            -
              willUpdate(t) {
         
     | 
| 
       264 
     | 
    
         
            -
              }
         
     | 
| 
       265 
     | 
    
         
            -
              _$AE(t) {
         
     | 
| 
       266 
     | 
    
         
            -
                var e;
         
     | 
| 
       267 
     | 
    
         
            -
                (e = this._$E_) == null || e.forEach((i) => {
         
     | 
| 
       268 
     | 
    
         
            -
                  var s;
         
     | 
| 
       269 
     | 
    
         
            -
                  return (s = i.hostUpdated) == null ? void 0 : s.call(i);
         
     | 
| 
       270 
     | 
    
         
            -
                }), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
         
     | 
| 
       271 
     | 
    
         
            -
              }
         
     | 
| 
       272 
     | 
    
         
            -
              _$ET() {
         
     | 
| 
       273 
     | 
    
         
            -
                this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = !1;
         
     | 
| 
       274 
     | 
    
         
            -
              }
         
     | 
| 
       275 
     | 
    
         
            -
              get updateComplete() {
         
     | 
| 
       276 
     | 
    
         
            -
                return this.getUpdateComplete();
         
     | 
| 
       277 
     | 
    
         
            -
              }
         
     | 
| 
       278 
     | 
    
         
            -
              getUpdateComplete() {
         
     | 
| 
       279 
     | 
    
         
            -
                return this._$Eg;
         
     | 
| 
       280 
     | 
    
         
            -
              }
         
     | 
| 
       281 
     | 
    
         
            -
              shouldUpdate(t) {
         
     | 
| 
       282 
     | 
    
         
            -
                return !0;
         
     | 
| 
       283 
     | 
    
         
            -
              }
         
     | 
| 
       284 
     | 
    
         
            -
              update(t) {
         
     | 
| 
       285 
     | 
    
         
            -
                this._$Ej && (this._$Ej = this._$Ej.forEach((e) => this._$EO(e, this[e]))), this._$ET();
         
     | 
| 
       286 
     | 
    
         
            -
              }
         
     | 
| 
       287 
     | 
    
         
            -
              updated(t) {
         
     | 
| 
       288 
     | 
    
         
            -
              }
         
     | 
| 
       289 
     | 
    
         
            -
              firstUpdated(t) {
         
     | 
| 
       290 
     | 
    
         
            -
              }
         
     | 
| 
       291 
     | 
    
         
            -
            };
         
     | 
| 
       292 
     | 
    
         
            -
            N.elementStyles = [], N.shadowRootOptions = { mode: "open" }, N[I("elementProperties")] = /* @__PURE__ */ new Map(), N[I("finalized")] = /* @__PURE__ */ new Map(), rt == null || rt({ ReactiveElement: N }), (b.reactiveElementVersions ?? (b.reactiveElementVersions = [])).push("2.0.2");
         
     | 
| 
       293 
     | 
    
         
            -
            /**
         
     | 
| 
       294 
     | 
    
         
            -
             * @license
         
     | 
| 
       295 
     | 
    
         
            -
             * Copyright 2017 Google LLC
         
     | 
| 
       296 
     | 
    
         
            -
             * SPDX-License-Identifier: BSD-3-Clause
         
     | 
| 
       297 
     | 
    
         
            -
             */
         
     | 
| 
       298 
     | 
    
         
            -
            const V = globalThis, Y = V.trustedTypes, bt = Y ? Y.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, Jt = "$lit$", y = `lit$${(Math.random() + "").slice(9)}$`, Kt = "?" + y, ye = `<${Kt}>`, T = document, Q = () => T.createComment(""), B = (r) => r === null || typeof r != "object" && typeof r != "function", Ft = Array.isArray, Ae = (r) => Ft(r) || typeof (r == null ? void 0 : r[Symbol.iterator]) == "function", nt = `[ 	
         
     | 
| 
       299 
     | 
    
         
            -
            \f\r]`, L = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Et = /-->/g, St = />/g, S = RegExp(`>|${nt}(?:([^\\s"'>=/]+)(${nt}*=${nt}*(?:[^ 	
         
     | 
| 
       300 
     | 
    
         
            -
            \f\r"'\`<>=]|("|')|))|$)`, "g"), wt = /'/g, Pt = /"/g, Gt = /^(?:script|style|textarea|title)$/i, W = Symbol.for("lit-noChange"), _ = Symbol.for("lit-nothing"), Ct = /* @__PURE__ */ new WeakMap(), C = T.createTreeWalker(T, 129);
         
     | 
| 
       301 
     | 
    
         
            -
            function Zt(r, t) {
         
     | 
| 
       302 
     | 
    
         
            -
              if (!Array.isArray(r) || !r.hasOwnProperty("raw"))
         
     | 
| 
       303 
     | 
    
         
            -
                throw Error("invalid template strings array");
         
     | 
| 
       304 
     | 
    
         
            -
              return bt !== void 0 ? bt.createHTML(t) : t;
         
     | 
| 
       305 
     | 
    
         
            -
            }
         
     | 
| 
       306 
     | 
    
         
            -
            const be = (r, t) => {
         
     | 
| 
       307 
     | 
    
         
            -
              const e = r.length - 1, i = [];
         
     | 
| 
       308 
     | 
    
         
            -
              let s, n = t === 2 ? "<svg>" : "", o = L;
         
     | 
| 
       309 
     | 
    
         
            -
              for (let h = 0; h < e; h++) {
         
     | 
| 
       310 
     | 
    
         
            -
                const a = r[h];
         
     | 
| 
       311 
     | 
    
         
            -
                let d, c, l = -1, p = 0;
         
     | 
| 
       312 
     | 
    
         
            -
                for (; p < a.length && (o.lastIndex = p, c = o.exec(a), c !== null); )
         
     | 
| 
       313 
     | 
    
         
            -
                  p = o.lastIndex, o === L ? c[1] === "!--" ? o = Et : c[1] !== void 0 ? o = St : c[2] !== void 0 ? (Gt.test(c[2]) && (s = RegExp("</" + c[2], "g")), o = S) : c[3] !== void 0 && (o = S) : o === S ? c[0] === ">" ? (o = s ?? L, l = -1) : c[1] === void 0 ? l = -2 : (l = o.lastIndex - c[2].length, d = c[1], o = c[3] === void 0 ? S : c[3] === '"' ? Pt : wt) : o === Pt || o === wt ? o = S : o === Et || o === St ? o = L : (o = S, s = void 0);
         
     | 
| 
       314 
     | 
    
         
            -
                const u = o === S && r[h + 1].startsWith("/>") ? " " : "";
         
     | 
| 
       315 
     | 
    
         
            -
                n += o === L ? a + ye : l >= 0 ? (i.push(d), a.slice(0, l) + Jt + a.slice(l) + y + u) : a + y + (l === -2 ? h : u);
         
     | 
| 
       316 
     | 
    
         
            -
              }
         
     | 
| 
       317 
     | 
    
         
            -
              return [Zt(r, n + (r[e] || "<?>") + (t === 2 ? "</svg>" : "")), i];
         
     | 
| 
       318 
     | 
    
         
            -
            };
         
     | 
| 
       319 
     | 
    
         
            -
            let pt = class Yt {
         
     | 
| 
       320 
     | 
    
         
            -
              constructor({ strings: t, _$litType$: e }, i) {
         
     | 
| 
       321 
     | 
    
         
            -
                let s;
         
     | 
| 
       322 
     | 
    
         
            -
                this.parts = [];
         
     | 
| 
       323 
     | 
    
         
            -
                let n = 0, o = 0;
         
     | 
| 
       324 
     | 
    
         
            -
                const h = t.length - 1, a = this.parts, [d, c] = be(t, e);
         
     | 
| 
       325 
     | 
    
         
            -
                if (this.el = Yt.createElement(d, i), C.currentNode = this.el.content, e === 2) {
         
     | 
| 
       326 
     | 
    
         
            -
                  const l = this.el.content.firstChild;
         
     | 
| 
       327 
     | 
    
         
            -
                  l.replaceWith(...l.childNodes);
         
     | 
| 
       328 
     | 
    
         
            -
                }
         
     | 
| 
       329 
     | 
    
         
            -
                for (; (s = C.nextNode()) !== null && a.length < h; ) {
         
     | 
| 
       330 
     | 
    
         
            -
                  if (s.nodeType === 1) {
         
     | 
| 
       331 
     | 
    
         
            -
                    if (s.hasAttributes())
         
     | 
| 
       332 
     | 
    
         
            -
                      for (const l of s.getAttributeNames())
         
     | 
| 
       333 
     | 
    
         
            -
                        if (l.endsWith(Jt)) {
         
     | 
| 
       334 
     | 
    
         
            -
                          const p = c[o++], u = s.getAttribute(l).split(y), g = /([.?@])?(.*)/.exec(p);
         
     | 
| 
       335 
     | 
    
         
            -
                          a.push({ type: 1, index: n, name: g[2], strings: u, ctor: g[1] === "." ? Se : g[1] === "?" ? we : g[1] === "@" ? Pe : it }), s.removeAttribute(l);
         
     | 
| 
       336 
     | 
    
         
            -
                        } else
         
     | 
| 
       337 
     | 
    
         
            -
                          l.startsWith(y) && (a.push({ type: 6, index: n }), s.removeAttribute(l));
         
     | 
| 
       338 
     | 
    
         
            -
                    if (Gt.test(s.tagName)) {
         
     | 
| 
       339 
     | 
    
         
            -
                      const l = s.textContent.split(y), p = l.length - 1;
         
     | 
| 
       340 
     | 
    
         
            -
                      if (p > 0) {
         
     | 
| 
       341 
     | 
    
         
            -
                        s.textContent = Y ? Y.emptyScript : "";
         
     | 
| 
       342 
     | 
    
         
            -
                        for (let u = 0; u < p; u++)
         
     | 
| 
       343 
     | 
    
         
            -
                          s.append(l[u], Q()), C.nextNode(), a.push({ type: 2, index: ++n });
         
     | 
| 
       344 
     | 
    
         
            -
                        s.append(l[p], Q());
         
     | 
| 
       345 
     | 
    
         
            -
                      }
         
     | 
| 
       346 
     | 
    
         
            -
                    }
         
     | 
| 
       347 
     | 
    
         
            -
                  } else if (s.nodeType === 8)
         
     | 
| 
       348 
     | 
    
         
            -
                    if (s.data === Kt)
         
     | 
| 
       349 
     | 
    
         
            -
                      a.push({ type: 2, index: n });
         
     | 
| 
       350 
     | 
    
         
            -
                    else {
         
     | 
| 
       351 
     | 
    
         
            -
                      let l = -1;
         
     | 
| 
       352 
     | 
    
         
            -
                      for (; (l = s.data.indexOf(y, l + 1)) !== -1; )
         
     | 
| 
       353 
     | 
    
         
            -
                        a.push({ type: 7, index: n }), l += y.length - 1;
         
     | 
| 
       354 
     | 
    
         
            -
                    }
         
     | 
| 
       355 
     | 
    
         
            -
                  n++;
         
     | 
| 
       356 
     | 
    
         
            -
                }
         
     | 
| 
       357 
     | 
    
         
            -
              }
         
     | 
| 
       358 
     | 
    
         
            -
              static createElement(t, e) {
         
     | 
| 
       359 
     | 
    
         
            -
                const i = T.createElement("template");
         
     | 
| 
       360 
     | 
    
         
            -
                return i.innerHTML = t, i;
         
     | 
| 
       361 
     | 
    
         
            -
              }
         
     | 
| 
       362 
     | 
    
         
            -
            };
         
     | 
| 
       363 
     | 
    
         
            -
            function H(r, t, e = r, i) {
         
     | 
| 
       364 
     | 
    
         
            -
              var o, h;
         
     | 
| 
       365 
     | 
    
         
            -
              if (t === W)
         
     | 
| 
       366 
     | 
    
         
            -
                return t;
         
     | 
| 
       367 
     | 
    
         
            -
              let s = i !== void 0 ? (o = e._$Co) == null ? void 0 : o[i] : e._$Cl;
         
     | 
| 
       368 
     | 
    
         
            -
              const n = B(t) ? void 0 : t._$litDirective$;
         
     | 
| 
       369 
     | 
    
         
            -
              return (s == null ? void 0 : s.constructor) !== n && ((h = s == null ? void 0 : s._$AO) == null || h.call(s, !1), n === void 0 ? s = void 0 : (s = new n(r), s._$AT(r, e, i)), i !== void 0 ? (e._$Co ?? (e._$Co = []))[i] = s : e._$Cl = s), s !== void 0 && (t = H(r, s._$AS(r, t.values), s, i)), t;
         
     | 
| 
       370 
     | 
    
         
            -
            }
         
     | 
| 
       371 
     | 
    
         
            -
            let Ee = class {
         
     | 
| 
       372 
     | 
    
         
            -
              constructor(t, e) {
         
     | 
| 
       373 
     | 
    
         
            -
                this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
         
     | 
| 
       374 
     | 
    
         
            -
              }
         
     | 
| 
       375 
     | 
    
         
            -
              get parentNode() {
         
     | 
| 
       376 
     | 
    
         
            -
                return this._$AM.parentNode;
         
     | 
| 
       377 
     | 
    
         
            -
              }
         
     | 
| 
       378 
     | 
    
         
            -
              get _$AU() {
         
     | 
| 
       379 
     | 
    
         
            -
                return this._$AM._$AU;
         
     | 
| 
       380 
     | 
    
         
            -
              }
         
     | 
| 
       381 
     | 
    
         
            -
              u(t) {
         
     | 
| 
       382 
     | 
    
         
            -
                const { el: { content: e }, parts: i } = this._$AD, s = ((t == null ? void 0 : t.creationScope) ?? T).importNode(e, !0);
         
     | 
| 
       383 
     | 
    
         
            -
                C.currentNode = s;
         
     | 
| 
       384 
     | 
    
         
            -
                let n = C.nextNode(), o = 0, h = 0, a = i[0];
         
     | 
| 
       385 
     | 
    
         
            -
                for (; a !== void 0; ) {
         
     | 
| 
       386 
     | 
    
         
            -
                  if (o === a.index) {
         
     | 
| 
       387 
     | 
    
         
            -
                    let d;
         
     | 
| 
       388 
     | 
    
         
            -
                    a.type === 2 ? d = new Qt(n, n.nextSibling, this, t) : a.type === 1 ? d = new a.ctor(n, a.name, a.strings, this, t) : a.type === 6 && (d = new Ce(n, this, t)), this._$AV.push(d), a = i[++h];
         
     | 
| 
       389 
     | 
    
         
            -
                  }
         
     | 
| 
       390 
     | 
    
         
            -
                  o !== (a == null ? void 0 : a.index) && (n = C.nextNode(), o++);
         
     | 
| 
       391 
     | 
    
         
            -
                }
         
     | 
| 
       392 
     | 
    
         
            -
                return C.currentNode = T, s;
         
     | 
| 
       393 
     | 
    
         
            -
              }
         
     | 
| 
       394 
     | 
    
         
            -
              p(t) {
         
     | 
| 
       395 
     | 
    
         
            -
                let e = 0;
         
     | 
| 
       396 
     | 
    
         
            -
                for (const i of this._$AV)
         
     | 
| 
       397 
     | 
    
         
            -
                  i !== void 0 && (i.strings !== void 0 ? (i._$AI(t, i, e), e += i.strings.length - 2) : i._$AI(t[e])), e++;
         
     | 
| 
       398 
     | 
    
         
            -
              }
         
     | 
| 
       399 
     | 
    
         
            -
            }, Qt = class te {
         
     | 
| 
       400 
     | 
    
         
            -
              get _$AU() {
         
     | 
| 
       401 
     | 
    
         
            -
                var t;
         
     | 
| 
       402 
     | 
    
         
            -
                return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
         
     | 
| 
       403 
     | 
    
         
            -
              }
         
     | 
| 
       404 
     | 
    
         
            -
              constructor(t, e, i, s) {
         
     | 
| 
       405 
     | 
    
         
            -
                this.type = 2, this._$AH = _, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = i, this.options = s, this._$Cv = (s == null ? void 0 : s.isConnected) ?? !0;
         
     | 
| 
       406 
     | 
    
         
            -
              }
         
     | 
| 
       407 
     | 
    
         
            -
              get parentNode() {
         
     | 
| 
       408 
     | 
    
         
            -
                let t = this._$AA.parentNode;
         
     | 
| 
       409 
     | 
    
         
            -
                const e = this._$AM;
         
     | 
| 
       410 
     | 
    
         
            -
                return e !== void 0 && (t == null ? void 0 : t.nodeType) === 11 && (t = e.parentNode), t;
         
     | 
| 
       411 
     | 
    
         
            -
              }
         
     | 
| 
       412 
     | 
    
         
            -
              get startNode() {
         
     | 
| 
       413 
     | 
    
         
            -
                return this._$AA;
         
     | 
| 
       414 
     | 
    
         
            -
              }
         
     | 
| 
       415 
     | 
    
         
            -
              get endNode() {
         
     | 
| 
       416 
     | 
    
         
            -
                return this._$AB;
         
     | 
| 
       417 
     | 
    
         
            -
              }
         
     | 
| 
       418 
     | 
    
         
            -
              _$AI(t, e = this) {
         
     | 
| 
       419 
     | 
    
         
            -
                t = H(this, t, e), B(t) ? t === _ || t == null || t === "" ? (this._$AH !== _ && this._$AR(), this._$AH = _) : t !== this._$AH && t !== W && this._(t) : t._$litType$ !== void 0 ? this.g(t) : t.nodeType !== void 0 ? this.$(t) : Ae(t) ? this.T(t) : this._(t);
         
     | 
| 
       420 
     | 
    
         
            -
              }
         
     | 
| 
       421 
     | 
    
         
            -
              k(t) {
         
     | 
| 
       422 
     | 
    
         
            -
                return this._$AA.parentNode.insertBefore(t, this._$AB);
         
     | 
| 
       423 
     | 
    
         
            -
              }
         
     | 
| 
       424 
     | 
    
         
            -
              $(t) {
         
     | 
| 
       425 
     | 
    
         
            -
                this._$AH !== t && (this._$AR(), this._$AH = this.k(t));
         
     | 
| 
       426 
     | 
    
         
            -
              }
         
     | 
| 
       427 
     | 
    
         
            -
              _(t) {
         
     | 
| 
       428 
     | 
    
         
            -
                this._$AH !== _ && B(this._$AH) ? this._$AA.nextSibling.data = t : this.$(T.createTextNode(t)), this._$AH = t;
         
     | 
| 
       429 
     | 
    
         
            -
              }
         
     | 
| 
       430 
     | 
    
         
            -
              g(t) {
         
     | 
| 
       431 
     | 
    
         
            -
                var n;
         
     | 
| 
       432 
     | 
    
         
            -
                const { values: e, _$litType$: i } = t, s = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = pt.createElement(Zt(i.h, i.h[0]), this.options)), i);
         
     | 
| 
       433 
     | 
    
         
            -
                if (((n = this._$AH) == null ? void 0 : n._$AD) === s)
         
     | 
| 
       434 
     | 
    
         
            -
                  this._$AH.p(e);
         
     | 
| 
       435 
     | 
    
         
            -
                else {
         
     | 
| 
       436 
     | 
    
         
            -
                  const o = new Ee(s, this), h = o.u(this.options);
         
     | 
| 
       437 
     | 
    
         
            -
                  o.p(e), this.$(h), this._$AH = o;
         
     | 
| 
       438 
     | 
    
         
            -
                }
         
     | 
| 
       439 
     | 
    
         
            -
              }
         
     | 
| 
       440 
     | 
    
         
            -
              _$AC(t) {
         
     | 
| 
       441 
     | 
    
         
            -
                let e = Ct.get(t.strings);
         
     | 
| 
       442 
     | 
    
         
            -
                return e === void 0 && Ct.set(t.strings, e = new pt(t)), e;
         
     | 
| 
       443 
     | 
    
         
            -
              }
         
     | 
| 
       444 
     | 
    
         
            -
              T(t) {
         
     | 
| 
       445 
     | 
    
         
            -
                Ft(this._$AH) || (this._$AH = [], this._$AR());
         
     | 
| 
       446 
     | 
    
         
            -
                const e = this._$AH;
         
     | 
| 
       447 
     | 
    
         
            -
                let i, s = 0;
         
     | 
| 
       448 
     | 
    
         
            -
                for (const n of t)
         
     | 
| 
       449 
     | 
    
         
            -
                  s === e.length ? e.push(i = new te(this.k(Q()), this.k(Q()), this, this.options)) : i = e[s], i._$AI(n), s++;
         
     | 
| 
       450 
     | 
    
         
            -
                s < e.length && (this._$AR(i && i._$AB.nextSibling, s), e.length = s);
         
     | 
| 
       451 
     | 
    
         
            -
              }
         
     | 
| 
       452 
     | 
    
         
            -
              _$AR(t = this._$AA.nextSibling, e) {
         
     | 
| 
       453 
     | 
    
         
            -
                var i;
         
     | 
| 
       454 
     | 
    
         
            -
                for ((i = this._$AP) == null ? void 0 : i.call(this, !1, !0, e); t && t !== this._$AB; ) {
         
     | 
| 
       455 
     | 
    
         
            -
                  const s = t.nextSibling;
         
     | 
| 
       456 
     | 
    
         
            -
                  t.remove(), t = s;
         
     | 
| 
       457 
     | 
    
         
            -
                }
         
     | 
| 
       458 
     | 
    
         
            -
              }
         
     | 
| 
       459 
     | 
    
         
            -
              setConnected(t) {
         
     | 
| 
       460 
     | 
    
         
            -
                var e;
         
     | 
| 
       461 
     | 
    
         
            -
                this._$AM === void 0 && (this._$Cv = t, (e = this._$AP) == null || e.call(this, t));
         
     | 
| 
       462 
     | 
    
         
            -
              }
         
     | 
| 
       463 
     | 
    
         
            -
            }, it = class {
         
     | 
| 
       464 
     | 
    
         
            -
              get tagName() {
         
     | 
| 
       465 
     | 
    
         
            -
                return this.element.tagName;
         
     | 
| 
       466 
     | 
    
         
            -
              }
         
     | 
| 
       467 
     | 
    
         
            -
              get _$AU() {
         
     | 
| 
       468 
     | 
    
         
            -
                return this._$AM._$AU;
         
     | 
| 
       469 
     | 
    
         
            -
              }
         
     | 
| 
       470 
     | 
    
         
            -
              constructor(t, e, i, s, n) {
         
     | 
| 
       471 
     | 
    
         
            -
                this.type = 1, this._$AH = _, this._$AN = void 0, this.element = t, this.name = e, this._$AM = s, this.options = n, i.length > 2 || i[0] !== "" || i[1] !== "" ? (this._$AH = Array(i.length - 1).fill(new String()), this.strings = i) : this._$AH = _;
         
     | 
| 
       472 
     | 
    
         
            -
              }
         
     | 
| 
       473 
     | 
    
         
            -
              _$AI(t, e = this, i, s) {
         
     | 
| 
       474 
     | 
    
         
            -
                const n = this.strings;
         
     | 
| 
       475 
     | 
    
         
            -
                let o = !1;
         
     | 
| 
       476 
     | 
    
         
            -
                if (n === void 0)
         
     | 
| 
       477 
     | 
    
         
            -
                  t = H(this, t, e, 0), o = !B(t) || t !== this._$AH && t !== W, o && (this._$AH = t);
         
     | 
| 
       478 
     | 
    
         
            -
                else {
         
     | 
| 
       479 
     | 
    
         
            -
                  const h = t;
         
     | 
| 
       480 
     | 
    
         
            -
                  let a, d;
         
     | 
| 
       481 
     | 
    
         
            -
                  for (t = n[0], a = 0; a < n.length - 1; a++)
         
     | 
| 
       482 
     | 
    
         
            -
                    d = H(this, h[i + a], e, a), d === W && (d = this._$AH[a]), o || (o = !B(d) || d !== this._$AH[a]), d === _ ? t = _ : t !== _ && (t += (d ?? "") + n[a + 1]), this._$AH[a] = d;
         
     | 
| 
       483 
     | 
    
         
            -
                }
         
     | 
| 
       484 
     | 
    
         
            -
                o && !s && this.O(t);
         
     | 
| 
       485 
     | 
    
         
            -
              }
         
     | 
| 
       486 
     | 
    
         
            -
              O(t) {
         
     | 
| 
       487 
     | 
    
         
            -
                t === _ ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
         
     | 
| 
       488 
     | 
    
         
            -
              }
         
     | 
| 
       489 
     | 
    
         
            -
            }, Se = class extends it {
         
     | 
| 
       490 
     | 
    
         
            -
              constructor() {
         
     | 
| 
       491 
     | 
    
         
            -
                super(...arguments), this.type = 3;
         
     | 
| 
       492 
     | 
    
         
            -
              }
         
     | 
| 
       493 
     | 
    
         
            -
              O(t) {
         
     | 
| 
       494 
     | 
    
         
            -
                this.element[this.name] = t === _ ? void 0 : t;
         
     | 
| 
       495 
     | 
    
         
            -
              }
         
     | 
| 
       496 
     | 
    
         
            -
            }, we = class extends it {
         
     | 
| 
       497 
     | 
    
         
            -
              constructor() {
         
     | 
| 
       498 
     | 
    
         
            -
                super(...arguments), this.type = 4;
         
     | 
| 
       499 
     | 
    
         
            -
              }
         
     | 
| 
       500 
     | 
    
         
            -
              O(t) {
         
     | 
| 
       501 
     | 
    
         
            -
                this.element.toggleAttribute(this.name, !!t && t !== _);
         
     | 
| 
       502 
     | 
    
         
            -
              }
         
     | 
| 
       503 
     | 
    
         
            -
            }, Pe = class extends it {
         
     | 
| 
       504 
     | 
    
         
            -
              constructor(t, e, i, s, n) {
         
     | 
| 
       505 
     | 
    
         
            -
                super(t, e, i, s, n), this.type = 5;
         
     | 
| 
       506 
     | 
    
         
            -
              }
         
     | 
| 
       507 
     | 
    
         
            -
              _$AI(t, e = this) {
         
     | 
| 
       508 
     | 
    
         
            -
                if ((t = H(this, t, e, 0) ?? _) === W)
         
     | 
| 
       509 
     | 
    
         
            -
                  return;
         
     | 
| 
       510 
     | 
    
         
            -
                const i = this._$AH, s = t === _ && i !== _ || t.capture !== i.capture || t.once !== i.once || t.passive !== i.passive, n = t !== _ && (i === _ || s);
         
     | 
| 
       511 
     | 
    
         
            -
                s && this.element.removeEventListener(this.name, this, i), n && this.element.addEventListener(this.name, this, t), this._$AH = t;
         
     | 
| 
       512 
     | 
    
         
            -
              }
         
     | 
| 
       513 
     | 
    
         
            -
              handleEvent(t) {
         
     | 
| 
       514 
     | 
    
         
            -
                var e;
         
     | 
| 
       515 
     | 
    
         
            -
                typeof this._$AH == "function" ? this._$AH.call(((e = this.options) == null ? void 0 : e.host) ?? this.element, t) : this._$AH.handleEvent(t);
         
     | 
| 
       516 
     | 
    
         
            -
              }
         
     | 
| 
       517 
     | 
    
         
            -
            }, Ce = class {
         
     | 
| 
       518 
     | 
    
         
            -
              constructor(t, e, i) {
         
     | 
| 
       519 
     | 
    
         
            -
                this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = i;
         
     | 
| 
       520 
     | 
    
         
            -
              }
         
     | 
| 
       521 
     | 
    
         
            -
              get _$AU() {
         
     | 
| 
       522 
     | 
    
         
            -
                return this._$AM._$AU;
         
     | 
| 
       523 
     | 
    
         
            -
              }
         
     | 
| 
       524 
     | 
    
         
            -
              _$AI(t) {
         
     | 
| 
       525 
     | 
    
         
            -
                H(this, t);
         
     | 
| 
       526 
     | 
    
         
            -
              }
         
     | 
| 
       527 
     | 
    
         
            -
            };
         
     | 
| 
       528 
     | 
    
         
            -
            const ot = V.litHtmlPolyfillSupport;
         
     | 
| 
       529 
     | 
    
         
            -
            ot == null || ot(pt, Qt), (V.litHtmlVersions ?? (V.litHtmlVersions = [])).push("3.1.0");
         
     | 
| 
       530 
     | 
    
         
            -
            /**
         
     | 
| 
       531 
     | 
    
         
            -
             * @license
         
     | 
| 
       532 
     | 
    
         
            -
             * Copyright 2019 Google LLC
         
     | 
| 
       533 
     | 
    
         
            -
             * SPDX-License-Identifier: BSD-3-Clause
         
     | 
| 
       534 
     | 
    
         
            -
             */
         
     | 
| 
       535 
     | 
    
         
            -
            const Z = globalThis, mt = Z.ShadowRoot && (Z.ShadyCSS === void 0 || Z.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, ee = Symbol(), Ut = /* @__PURE__ */ new WeakMap();
         
     | 
| 
       536 
     | 
    
         
            -
            let Ue = class {
         
     | 
| 
       537 
     | 
    
         
            -
              constructor(t, e, i) {
         
     | 
| 
       538 
     | 
    
         
            -
                if (this._$cssResult$ = !0, i !== ee)
         
     | 
| 
       539 
     | 
    
         
            -
                  throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
         
     | 
| 
       540 
     | 
    
         
            -
                this.cssText = t, this.t = e;
         
     | 
| 
       541 
     | 
    
         
            -
              }
         
     | 
| 
       542 
     | 
    
         
            -
              get styleSheet() {
         
     | 
| 
       543 
     | 
    
         
            -
                let t = this.o;
         
     | 
| 
       544 
     | 
    
         
            -
                const e = this.t;
         
     | 
| 
       545 
     | 
    
         
            -
                if (mt && t === void 0) {
         
     | 
| 
       546 
     | 
    
         
            -
                  const i = e !== void 0 && e.length === 1;
         
     | 
| 
       547 
     | 
    
         
            -
                  i && (t = Ut.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), i && Ut.set(e, t));
         
     | 
| 
       548 
     | 
    
         
            -
                }
         
     | 
| 
       549 
     | 
    
         
            -
                return t;
         
     | 
| 
       550 
     | 
    
         
            -
              }
         
     | 
| 
       551 
     | 
    
         
            -
              toString() {
         
     | 
| 
       552 
     | 
    
         
            -
                return this.cssText;
         
     | 
| 
       553 
     | 
    
         
            -
              }
         
     | 
| 
       554 
     | 
    
         
            -
            };
         
     | 
| 
       555 
     | 
    
         
            -
            const Te = (r) => new Ue(typeof r == "string" ? r : r + "", void 0, ee), xe = (r, t) => {
         
     | 
| 
       556 
     | 
    
         
            -
              if (mt)
         
     | 
| 
       557 
     | 
    
         
            -
                r.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
         
     | 
| 
       558 
     | 
    
         
            -
              else
         
     | 
| 
       559 
     | 
    
         
            -
                for (const e of t) {
         
     | 
| 
       560 
     | 
    
         
            -
                  const i = document.createElement("style"), s = Z.litNonce;
         
     | 
| 
       561 
     | 
    
         
            -
                  s !== void 0 && i.setAttribute("nonce", s), i.textContent = e.cssText, r.appendChild(i);
         
     | 
| 
       562 
     | 
    
         
            -
                }
         
     | 
| 
       563 
     | 
    
         
            -
            }, Tt = mt ? (r) => r : (r) => r instanceof CSSStyleSheet ? ((t) => {
         
     | 
| 
       564 
     | 
    
         
            -
              let e = "";
         
     | 
| 
       565 
     | 
    
         
            -
              for (const i of t.cssRules)
         
     | 
| 
       566 
     | 
    
         
            -
                e += i.cssText;
         
     | 
| 
       567 
     | 
    
         
            -
              return Te(e);
         
     | 
| 
       568 
     | 
    
         
            -
            })(r) : r;
         
     | 
| 
       569 
     | 
    
         
            -
            /**
         
     | 
| 
       570 
     | 
    
         
            -
             * @license
         
     | 
| 
       571 
     | 
    
         
            -
             * Copyright 2017 Google LLC
         
     | 
| 
       572 
     | 
    
         
            -
             * SPDX-License-Identifier: BSD-3-Clause
         
     | 
| 
       573 
     | 
    
         
            -
             */
         
     | 
| 
       574 
     | 
    
         
            -
            const { is: Re, defineProperty: He, getOwnPropertyDescriptor: ke, getOwnPropertyNames: Oe, getOwnPropertySymbols: Ne, getPrototypeOf: Le } = Object, E = globalThis, xt = E.trustedTypes, Me = xt ? xt.emptyScript : "", at = E.reactiveElementPolyfillSupport, D = (r, t) => r, ut = { toAttribute(r, t) {
         
     | 
| 
       575 
     | 
    
         
            -
              switch (t) {
         
     | 
| 
       576 
     | 
    
         
            -
                case Boolean:
         
     | 
| 
       577 
     | 
    
         
            -
                  r = r ? Me : null;
         
     | 
| 
       578 
     | 
    
         
            -
                  break;
         
     | 
| 
       579 
     | 
    
         
            -
                case Object:
         
     | 
| 
       580 
     | 
    
         
            -
                case Array:
         
     | 
| 
       581 
     | 
    
         
            -
                  r = r == null ? r : JSON.stringify(r);
         
     | 
| 
       582 
     | 
    
         
            -
              }
         
     | 
| 
       583 
     | 
    
         
            -
              return r;
         
     | 
| 
       584 
     | 
    
         
            -
            }, fromAttribute(r, t) {
         
     | 
| 
       585 
     | 
    
         
            -
              let e = r;
         
     | 
| 
       586 
     | 
    
         
            -
              switch (t) {
         
     | 
| 
       587 
     | 
    
         
            -
                case Boolean:
         
     | 
| 
       588 
     | 
    
         
            -
                  e = r !== null;
         
     | 
| 
       589 
     | 
    
         
            -
                  break;
         
     | 
| 
       590 
     | 
    
         
            -
                case Number:
         
     | 
| 
       591 
     | 
    
         
            -
                  e = r === null ? null : Number(r);
         
     | 
| 
       592 
     | 
    
         
            -
                  break;
         
     | 
| 
       593 
     | 
    
         
            -
                case Object:
         
     | 
| 
       594 
     | 
    
         
            -
                case Array:
         
     | 
| 
       595 
     | 
    
         
            -
                  try {
         
     | 
| 
       596 
     | 
    
         
            -
                    e = JSON.parse(r);
         
     | 
| 
       597 
     | 
    
         
            -
                  } catch {
         
     | 
| 
       598 
     | 
    
         
            -
                    e = null;
         
     | 
| 
       599 
     | 
    
         
            -
                  }
         
     | 
| 
       600 
     | 
    
         
            -
              }
         
     | 
| 
       601 
     | 
    
         
            -
              return e;
         
     | 
| 
       602 
     | 
    
         
            -
            } }, ie = (r, t) => !Re(r, t), Rt = { attribute: !0, type: String, converter: ut, reflect: !1, hasChanged: ie };
         
     | 
| 
       603 
     | 
    
         
            -
            Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), E.litPropertyMetadata ?? (E.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
         
     | 
| 
       604 
     | 
    
         
            -
            class R extends HTMLElement {
         
     | 
| 
       605 
     | 
    
         
            -
              static addInitializer(t) {
         
     | 
| 
       606 
     | 
    
         
            -
                this._$Ei(), (this.l ?? (this.l = [])).push(t);
         
     | 
| 
       607 
     | 
    
         
            -
              }
         
     | 
| 
       608 
     | 
    
         
            -
              static get observedAttributes() {
         
     | 
| 
       609 
     | 
    
         
            -
                return this.finalize(), this._$Eh && [...this._$Eh.keys()];
         
     | 
| 
       610 
     | 
    
         
            -
              }
         
     | 
| 
       611 
     | 
    
         
            -
              static createProperty(t, e = Rt) {
         
     | 
| 
       612 
     | 
    
         
            -
                if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
         
     | 
| 
       613 
     | 
    
         
            -
                  const i = Symbol(), s = this.getPropertyDescriptor(t, i, e);
         
     | 
| 
       614 
     | 
    
         
            -
                  s !== void 0 && He(this.prototype, t, s);
         
     | 
| 
       615 
     | 
    
         
            -
                }
         
     | 
| 
       616 
     | 
    
         
            -
              }
         
     | 
| 
       617 
     | 
    
         
            -
              static getPropertyDescriptor(t, e, i) {
         
     | 
| 
       618 
     | 
    
         
            -
                const { get: s, set: n } = ke(this.prototype, t) ?? { get() {
         
     | 
| 
       619 
     | 
    
         
            -
                  return this[e];
         
     | 
| 
       620 
     | 
    
         
            -
                }, set(o) {
         
     | 
| 
       621 
     | 
    
         
            -
                  this[e] = o;
         
     | 
| 
       622 
     | 
    
         
            -
                } };
         
     | 
| 
       623 
     | 
    
         
            -
                return { get() {
         
     | 
| 
       624 
     | 
    
         
            -
                  return s == null ? void 0 : s.call(this);
         
     | 
| 
       625 
     | 
    
         
            -
                }, set(o) {
         
     | 
| 
       626 
     | 
    
         
            -
                  const h = s == null ? void 0 : s.call(this);
         
     | 
| 
       627 
     | 
    
         
            -
                  n.call(this, o), this.requestUpdate(t, h, i);
         
     | 
| 
       628 
     | 
    
         
            -
                }, configurable: !0, enumerable: !0 };
         
     | 
| 
       629 
     | 
    
         
            -
              }
         
     | 
| 
       630 
     | 
    
         
            -
              static getPropertyOptions(t) {
         
     | 
| 
       631 
     | 
    
         
            -
                return this.elementProperties.get(t) ?? Rt;
         
     | 
| 
       632 
     | 
    
         
            -
              }
         
     | 
| 
       633 
     | 
    
         
            -
              static _$Ei() {
         
     | 
| 
       634 
     | 
    
         
            -
                if (this.hasOwnProperty(D("elementProperties")))
         
     | 
| 
       635 
     | 
    
         
            -
                  return;
         
     | 
| 
       636 
     | 
    
         
            -
                const t = Le(this);
         
     | 
| 
       637 
     | 
    
         
            -
                t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
         
     | 
| 
       638 
     | 
    
         
            -
              }
         
     | 
| 
       639 
     | 
    
         
            -
              static finalize() {
         
     | 
| 
       640 
     | 
    
         
            -
                if (this.hasOwnProperty(D("finalized")))
         
     | 
| 
       641 
     | 
    
         
            -
                  return;
         
     | 
| 
       642 
     | 
    
         
            -
                if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(D("properties"))) {
         
     | 
| 
       643 
     | 
    
         
            -
                  const e = this.properties, i = [...Oe(e), ...Ne(e)];
         
     | 
| 
       644 
     | 
    
         
            -
                  for (const s of i)
         
     | 
| 
       645 
     | 
    
         
            -
                    this.createProperty(s, e[s]);
         
     | 
| 
       646 
     | 
    
         
            -
                }
         
     | 
| 
       647 
     | 
    
         
            -
                const t = this[Symbol.metadata];
         
     | 
| 
       648 
     | 
    
         
            -
                if (t !== null) {
         
     | 
| 
       649 
     | 
    
         
            -
                  const e = litPropertyMetadata.get(t);
         
     | 
| 
       650 
     | 
    
         
            -
                  if (e !== void 0)
         
     | 
| 
       651 
     | 
    
         
            -
                    for (const [i, s] of e)
         
     | 
| 
       652 
     | 
    
         
            -
                      this.elementProperties.set(i, s);
         
     | 
| 
       653 
     | 
    
         
            -
                }
         
     | 
| 
       654 
     | 
    
         
            -
                this._$Eh = /* @__PURE__ */ new Map();
         
     | 
| 
       655 
     | 
    
         
            -
                for (const [e, i] of this.elementProperties) {
         
     | 
| 
       656 
     | 
    
         
            -
                  const s = this._$Eu(e, i);
         
     | 
| 
       657 
     | 
    
         
            -
                  s !== void 0 && this._$Eh.set(s, e);
         
     | 
| 
       658 
     | 
    
         
            -
                }
         
     | 
| 
       659 
     | 
    
         
            -
                this.elementStyles = this.finalizeStyles(this.styles);
         
     | 
| 
       660 
     | 
    
         
            -
              }
         
     | 
| 
       661 
     | 
    
         
            -
              static finalizeStyles(t) {
         
     | 
| 
       662 
     | 
    
         
            -
                const e = [];
         
     | 
| 
       663 
     | 
    
         
            -
                if (Array.isArray(t)) {
         
     | 
| 
       664 
     | 
    
         
            -
                  const i = new Set(t.flat(1 / 0).reverse());
         
     | 
| 
       665 
     | 
    
         
            -
                  for (const s of i)
         
     | 
| 
       666 
     | 
    
         
            -
                    e.unshift(Tt(s));
         
     | 
| 
       667 
     | 
    
         
            -
                } else
         
     | 
| 
       668 
     | 
    
         
            -
                  t !== void 0 && e.push(Tt(t));
         
     | 
| 
       669 
     | 
    
         
            -
                return e;
         
     | 
| 
       670 
     | 
    
         
            -
              }
         
     | 
| 
       671 
     | 
    
         
            -
              static _$Eu(t, e) {
         
     | 
| 
       672 
     | 
    
         
            -
                const i = e.attribute;
         
     | 
| 
       673 
     | 
    
         
            -
                return i === !1 ? void 0 : typeof i == "string" ? i : typeof t == "string" ? t.toLowerCase() : void 0;
         
     | 
| 
       674 
     | 
    
         
            -
              }
         
     | 
| 
       675 
     | 
    
         
            -
              constructor() {
         
     | 
| 
       676 
     | 
    
         
            -
                super(), this._$Ep = void 0, this.isUpdatePending = !1, this.hasUpdated = !1, this._$Em = null, this._$Ev();
         
     | 
| 
       677 
     | 
    
         
            -
              }
         
     | 
| 
       678 
     | 
    
         
            -
              _$Ev() {
         
     | 
| 
       679 
     | 
    
         
            -
                var t;
         
     | 
| 
       680 
     | 
    
         
            -
                this._$Eg = new Promise((e) => this.enableUpdating = e), this._$AL = /* @__PURE__ */ new Map(), this._$ES(), this.requestUpdate(), (t = this.constructor.l) == null || t.forEach((e) => e(this));
         
     | 
| 
       681 
     | 
    
         
            -
              }
         
     | 
| 
       682 
     | 
    
         
            -
              addController(t) {
         
     | 
| 
       683 
     | 
    
         
            -
                var e;
         
     | 
| 
       684 
     | 
    
         
            -
                (this._$E_ ?? (this._$E_ = /* @__PURE__ */ new Set())).add(t), this.renderRoot !== void 0 && this.isConnected && ((e = t.hostConnected) == null || e.call(t));
         
     | 
| 
       685 
     | 
    
         
            -
              }
         
     | 
| 
       686 
     | 
    
         
            -
              removeController(t) {
         
     | 
| 
       687 
     | 
    
         
            -
                var e;
         
     | 
| 
       688 
     | 
    
         
            -
                (e = this._$E_) == null || e.delete(t);
         
     | 
| 
       689 
     | 
    
         
            -
              }
         
     | 
| 
       690 
     | 
    
         
            -
              _$ES() {
         
     | 
| 
       691 
     | 
    
         
            -
                const t = /* @__PURE__ */ new Map(), e = this.constructor.elementProperties;
         
     | 
| 
       692 
     | 
    
         
            -
                for (const i of e.keys())
         
     | 
| 
       693 
     | 
    
         
            -
                  this.hasOwnProperty(i) && (t.set(i, this[i]), delete this[i]);
         
     | 
| 
       694 
     | 
    
         
            -
                t.size > 0 && (this._$Ep = t);
         
     | 
| 
       695 
     | 
    
         
            -
              }
         
     | 
| 
       696 
     | 
    
         
            -
              createRenderRoot() {
         
     | 
| 
       697 
     | 
    
         
            -
                const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
         
     | 
| 
       698 
     | 
    
         
            -
                return xe(t, this.constructor.elementStyles), t;
         
     | 
| 
       699 
     | 
    
         
            -
              }
         
     | 
| 
       700 
     | 
    
         
            -
              connectedCallback() {
         
     | 
| 
       701 
     | 
    
         
            -
                var t;
         
     | 
| 
       702 
     | 
    
         
            -
                this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (t = this._$E_) == null || t.forEach((e) => {
         
     | 
| 
       703 
     | 
    
         
            -
                  var i;
         
     | 
| 
       704 
     | 
    
         
            -
                  return (i = e.hostConnected) == null ? void 0 : i.call(e);
         
     | 
| 
       705 
     | 
    
         
            -
                });
         
     | 
| 
       706 
     | 
    
         
            -
              }
         
     | 
| 
       707 
     | 
    
         
            -
              enableUpdating(t) {
         
     | 
| 
       708 
     | 
    
         
            -
              }
         
     | 
| 
       709 
     | 
    
         
            -
              disconnectedCallback() {
         
     | 
| 
       710 
     | 
    
         
            -
                var t;
         
     | 
| 
       711 
     | 
    
         
            -
                (t = this._$E_) == null || t.forEach((e) => {
         
     | 
| 
       712 
     | 
    
         
            -
                  var i;
         
     | 
| 
       713 
     | 
    
         
            -
                  return (i = e.hostDisconnected) == null ? void 0 : i.call(e);
         
     | 
| 
       714 
     | 
    
         
            -
                });
         
     | 
| 
       715 
     | 
    
         
            -
              }
         
     | 
| 
       716 
     | 
    
         
            -
              attributeChangedCallback(t, e, i) {
         
     | 
| 
       717 
     | 
    
         
            -
                this._$AK(t, i);
         
     | 
| 
       718 
     | 
    
         
            -
              }
         
     | 
| 
       719 
     | 
    
         
            -
              _$EO(t, e) {
         
     | 
| 
       720 
     | 
    
         
            -
                var n;
         
     | 
| 
       721 
     | 
    
         
            -
                const i = this.constructor.elementProperties.get(t), s = this.constructor._$Eu(t, i);
         
     | 
| 
       722 
     | 
    
         
            -
                if (s !== void 0 && i.reflect === !0) {
         
     | 
| 
       723 
     | 
    
         
            -
                  const o = (((n = i.converter) == null ? void 0 : n.toAttribute) !== void 0 ? i.converter : ut).toAttribute(e, i.type);
         
     | 
| 
       724 
     | 
    
         
            -
                  this._$Em = t, o == null ? this.removeAttribute(s) : this.setAttribute(s, o), this._$Em = null;
         
     | 
| 
       725 
     | 
    
         
            -
                }
         
     | 
| 
       726 
     | 
    
         
            -
              }
         
     | 
| 
       727 
     | 
    
         
            -
              _$AK(t, e) {
         
     | 
| 
       728 
     | 
    
         
            -
                var n;
         
     | 
| 
       729 
     | 
    
         
            -
                const i = this.constructor, s = i._$Eh.get(t);
         
     | 
| 
       730 
     | 
    
         
            -
                if (s !== void 0 && this._$Em !== s) {
         
     | 
| 
       731 
     | 
    
         
            -
                  const o = i.getPropertyOptions(s), h = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((n = o.converter) == null ? void 0 : n.fromAttribute) !== void 0 ? o.converter : ut;
         
     | 
| 
       732 
     | 
    
         
            -
                  this._$Em = s, this[s] = h.fromAttribute(e, o.type), this._$Em = null;
         
     | 
| 
       733 
     | 
    
         
            -
                }
         
     | 
| 
       734 
     | 
    
         
            -
              }
         
     | 
| 
       735 
     | 
    
         
            -
              requestUpdate(t, e, i, s = !1, n) {
         
     | 
| 
       736 
     | 
    
         
            -
                if (t !== void 0) {
         
     | 
| 
       737 
     | 
    
         
            -
                  if (i ?? (i = this.constructor.getPropertyOptions(t)), !(i.hasChanged ?? ie)(s ? n : this[t], e))
         
     | 
| 
       738 
     | 
    
         
            -
                    return;
         
     | 
| 
       739 
     | 
    
         
            -
                  this.C(t, e, i);
         
     | 
| 
       740 
     | 
    
         
            -
                }
         
     | 
| 
       741 
     | 
    
         
            -
                this.isUpdatePending === !1 && (this._$Eg = this._$EP());
         
     | 
| 
       742 
     | 
    
         
            -
              }
         
     | 
| 
       743 
     | 
    
         
            -
              C(t, e, i) {
         
     | 
| 
       744 
     | 
    
         
            -
                this._$AL.has(t) || this._$AL.set(t, e), i.reflect === !0 && this._$Em !== t && (this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Set())).add(t);
         
     | 
| 
       745 
     | 
    
         
            -
              }
         
     | 
| 
       746 
     | 
    
         
            -
              async _$EP() {
         
     | 
| 
       747 
     | 
    
         
            -
                this.isUpdatePending = !0;
         
     | 
| 
       748 
     | 
    
         
            -
                try {
         
     | 
| 
       749 
     | 
    
         
            -
                  await this._$Eg;
         
     | 
| 
       750 
     | 
    
         
            -
                } catch (e) {
         
     | 
| 
       751 
     | 
    
         
            -
                  Promise.reject(e);
         
     | 
| 
       752 
     | 
    
         
            -
                }
         
     | 
| 
       753 
     | 
    
         
            -
                const t = this.scheduleUpdate();
         
     | 
| 
       754 
     | 
    
         
            -
                return t != null && await t, !this.isUpdatePending;
         
     | 
| 
       755 
     | 
    
         
            -
              }
         
     | 
| 
       756 
     | 
    
         
            -
              scheduleUpdate() {
         
     | 
| 
       757 
     | 
    
         
            -
                return this.performUpdate();
         
     | 
| 
       758 
     | 
    
         
            -
              }
         
     | 
| 
       759 
     | 
    
         
            -
              performUpdate() {
         
     | 
| 
       760 
     | 
    
         
            -
                var i;
         
     | 
| 
       761 
     | 
    
         
            -
                if (!this.isUpdatePending)
         
     | 
| 
       762 
     | 
    
         
            -
                  return;
         
     | 
| 
       763 
     | 
    
         
            -
                if (!this.hasUpdated) {
         
     | 
| 
       764 
     | 
    
         
            -
                  if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
         
     | 
| 
       765 
     | 
    
         
            -
                    for (const [n, o] of this._$Ep)
         
     | 
| 
       766 
     | 
    
         
            -
                      this[n] = o;
         
     | 
| 
       767 
     | 
    
         
            -
                    this._$Ep = void 0;
         
     | 
| 
       768 
     | 
    
         
            -
                  }
         
     | 
| 
       769 
     | 
    
         
            -
                  const s = this.constructor.elementProperties;
         
     | 
| 
       770 
     | 
    
         
            -
                  if (s.size > 0)
         
     | 
| 
       771 
     | 
    
         
            -
                    for (const [n, o] of s)
         
     | 
| 
       772 
     | 
    
         
            -
                      o.wrapped !== !0 || this._$AL.has(n) || this[n] === void 0 || this.C(n, this[n], o);
         
     | 
| 
       773 
     | 
    
         
            -
                }
         
     | 
| 
       774 
     | 
    
         
            -
                let t = !1;
         
     | 
| 
       775 
     | 
    
         
            -
                const e = this._$AL;
         
     | 
| 
       776 
     | 
    
         
            -
                try {
         
     | 
| 
       777 
     | 
    
         
            -
                  t = this.shouldUpdate(e), t ? (this.willUpdate(e), (i = this._$E_) == null || i.forEach((s) => {
         
     | 
| 
       778 
     | 
    
         
            -
                    var n;
         
     | 
| 
       779 
     | 
    
         
            -
                    return (n = s.hostUpdate) == null ? void 0 : n.call(s);
         
     | 
| 
       780 
     | 
    
         
            -
                  }), this.update(e)) : this._$ET();
         
     | 
| 
       781 
     | 
    
         
            -
                } catch (s) {
         
     | 
| 
       782 
     | 
    
         
            -
                  throw t = !1, this._$ET(), s;
         
     | 
| 
       783 
     | 
    
         
            -
                }
         
     | 
| 
       784 
     | 
    
         
            -
                t && this._$AE(e);
         
     | 
| 
       785 
     | 
    
         
            -
              }
         
     | 
| 
       786 
     | 
    
         
            -
              willUpdate(t) {
         
     | 
| 
       787 
     | 
    
         
            -
              }
         
     | 
| 
       788 
     | 
    
         
            -
              _$AE(t) {
         
     | 
| 
       789 
     | 
    
         
            -
                var e;
         
     | 
| 
       790 
     | 
    
         
            -
                (e = this._$E_) == null || e.forEach((i) => {
         
     | 
| 
       791 
     | 
    
         
            -
                  var s;
         
     | 
| 
       792 
     | 
    
         
            -
                  return (s = i.hostUpdated) == null ? void 0 : s.call(i);
         
     | 
| 
       793 
     | 
    
         
            -
                }), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
         
     | 
| 
       794 
     | 
    
         
            -
              }
         
     | 
| 
       795 
     | 
    
         
            -
              _$ET() {
         
     | 
| 
       796 
     | 
    
         
            -
                this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = !1;
         
     | 
| 
       797 
     | 
    
         
            -
              }
         
     | 
| 
       798 
     | 
    
         
            -
              get updateComplete() {
         
     | 
| 
       799 
     | 
    
         
            -
                return this.getUpdateComplete();
         
     | 
| 
       800 
     | 
    
         
            -
              }
         
     | 
| 
       801 
     | 
    
         
            -
              getUpdateComplete() {
         
     | 
| 
       802 
     | 
    
         
            -
                return this._$Eg;
         
     | 
| 
       803 
     | 
    
         
            -
              }
         
     | 
| 
       804 
     | 
    
         
            -
              shouldUpdate(t) {
         
     | 
| 
       805 
     | 
    
         
            -
                return !0;
         
     | 
| 
       806 
     | 
    
         
            -
              }
         
     | 
| 
       807 
     | 
    
         
            -
              update(t) {
         
     | 
| 
       808 
     | 
    
         
            -
                this._$Ej && (this._$Ej = this._$Ej.forEach((e) => this._$EO(e, this[e]))), this._$ET();
         
     | 
| 
       809 
     | 
    
         
            -
              }
         
     | 
| 
       810 
     | 
    
         
            -
              updated(t) {
         
     | 
| 
       811 
     | 
    
         
            -
              }
         
     | 
| 
       812 
     | 
    
         
            -
              firstUpdated(t) {
         
     | 
| 
       813 
     | 
    
         
            -
              }
         
     | 
| 
       814 
     | 
    
         
            -
            }
         
     | 
| 
       815 
     | 
    
         
            -
            R.elementStyles = [], R.shadowRootOptions = { mode: "open" }, R[D("elementProperties")] = /* @__PURE__ */ new Map(), R[D("finalized")] = /* @__PURE__ */ new Map(), at == null || at({ ReactiveElement: R }), (E.reactiveElementVersions ?? (E.reactiveElementVersions = [])).push("2.0.2");
         
     | 
| 
       816 
     | 
    
         
            -
            /**
         
     | 
| 
       817 
     | 
    
         
            -
             * @license
         
     | 
| 
       818 
     | 
    
         
            -
             * Copyright 2017 Google LLC
         
     | 
| 
       819 
     | 
    
         
            -
             * SPDX-License-Identifier: BSD-3-Clause
         
     | 
| 
       820 
     | 
    
         
            -
             */
         
     | 
| 
       821 
     | 
    
         
            -
            const z = globalThis, tt = z.trustedTypes, Ht = tt ? tt.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, se = "$lit$", A = `lit$${(Math.random() + "").slice(9)}$`, re = "?" + A, Ie = `<${re}>`, x = document, q = () => x.createComment(""), X = (r) => r === null || typeof r != "object" && typeof r != "function", ne = Array.isArray, Ve = (r) => ne(r) || typeof (r == null ? void 0 : r[Symbol.iterator]) == "function", ht = `[ 	
         
     | 
| 
       822 
     | 
    
         
            -
            \f\r]`, M = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, kt = /-->/g, Ot = />/g, w = RegExp(`>|${ht}(?:([^\\s"'>=/]+)(${ht}*=${ht}*(?:[^ 	
         
     | 
| 
       823 
     | 
    
         
            -
            \f\r"'\`<>=]|("|')|))|$)`, "g"), Nt = /'/g, Lt = /"/g, oe = /^(?:script|style|textarea|title)$/i, De = (r) => (t, ...e) => ({ _$litType$: r, strings: t, values: e }), ze = De(1), k = Symbol.for("lit-noChange"), m = Symbol.for("lit-nothing"), Mt = /* @__PURE__ */ new WeakMap(), U = x.createTreeWalker(x, 129);
         
     | 
| 
       824 
     | 
    
         
            -
            function ae(r, t) {
         
     | 
| 
       825 
     | 
    
         
            -
              if (!Array.isArray(r) || !r.hasOwnProperty("raw"))
         
     | 
| 
       826 
     | 
    
         
            -
                throw Error("invalid template strings array");
         
     | 
| 
       827 
     | 
    
         
            -
              return Ht !== void 0 ? Ht.createHTML(t) : t;
         
     | 
| 
       828 
     | 
    
         
            -
            }
         
     | 
| 
       829 
     | 
    
         
            -
            const je = (r, t) => {
         
     | 
| 
       830 
     | 
    
         
            -
              const e = r.length - 1, i = [];
         
     | 
| 
       831 
     | 
    
         
            -
              let s, n = t === 2 ? "<svg>" : "", o = M;
         
     | 
| 
       832 
     | 
    
         
            -
              for (let h = 0; h < e; h++) {
         
     | 
| 
       833 
     | 
    
         
            -
                const a = r[h];
         
     | 
| 
       834 
     | 
    
         
            -
                let d, c, l = -1, p = 0;
         
     | 
| 
       835 
     | 
    
         
            -
                for (; p < a.length && (o.lastIndex = p, c = o.exec(a), c !== null); )
         
     | 
| 
       836 
     | 
    
         
            -
                  p = o.lastIndex, o === M ? c[1] === "!--" ? o = kt : c[1] !== void 0 ? o = Ot : c[2] !== void 0 ? (oe.test(c[2]) && (s = RegExp("</" + c[2], "g")), o = w) : c[3] !== void 0 && (o = w) : o === w ? c[0] === ">" ? (o = s ?? M, l = -1) : c[1] === void 0 ? l = -2 : (l = o.lastIndex - c[2].length, d = c[1], o = c[3] === void 0 ? w : c[3] === '"' ? Lt : Nt) : o === Lt || o === Nt ? o = w : o === kt || o === Ot ? o = M : (o = w, s = void 0);
         
     | 
| 
       837 
     | 
    
         
            -
                const u = o === w && r[h + 1].startsWith("/>") ? " " : "";
         
     | 
| 
       838 
     | 
    
         
            -
                n += o === M ? a + Ie : l >= 0 ? (i.push(d), a.slice(0, l) + se + a.slice(l) + A + u) : a + A + (l === -2 ? h : u);
         
     | 
| 
       839 
     | 
    
         
            -
              }
         
     | 
| 
       840 
     | 
    
         
            -
              return [ae(r, n + (r[e] || "<?>") + (t === 2 ? "</svg>" : "")), i];
         
     | 
| 
       841 
     | 
    
         
            -
            };
         
     | 
| 
       842 
     | 
    
         
            -
            class J {
         
     | 
| 
       843 
     | 
    
         
            -
              constructor({ strings: t, _$litType$: e }, i) {
         
     | 
| 
       844 
     | 
    
         
            -
                let s;
         
     | 
| 
       845 
     | 
    
         
            -
                this.parts = [];
         
     | 
| 
       846 
     | 
    
         
            -
                let n = 0, o = 0;
         
     | 
| 
       847 
     | 
    
         
            -
                const h = t.length - 1, a = this.parts, [d, c] = je(t, e);
         
     | 
| 
       848 
     | 
    
         
            -
                if (this.el = J.createElement(d, i), U.currentNode = this.el.content, e === 2) {
         
     | 
| 
       849 
     | 
    
         
            -
                  const l = this.el.content.firstChild;
         
     | 
| 
       850 
     | 
    
         
            -
                  l.replaceWith(...l.childNodes);
         
     | 
| 
       851 
     | 
    
         
            -
                }
         
     | 
| 
       852 
     | 
    
         
            -
                for (; (s = U.nextNode()) !== null && a.length < h; ) {
         
     | 
| 
       853 
     | 
    
         
            -
                  if (s.nodeType === 1) {
         
     | 
| 
       854 
     | 
    
         
            -
                    if (s.hasAttributes())
         
     | 
| 
       855 
     | 
    
         
            -
                      for (const l of s.getAttributeNames())
         
     | 
| 
       856 
     | 
    
         
            -
                        if (l.endsWith(se)) {
         
     | 
| 
       857 
     | 
    
         
            -
                          const p = c[o++], u = s.getAttribute(l).split(A), g = /([.?@])?(.*)/.exec(p);
         
     | 
| 
       858 
     | 
    
         
            -
                          a.push({ type: 1, index: n, name: g[2], strings: u, ctor: g[1] === "." ? We : g[1] === "?" ? qe : g[1] === "@" ? Xe : st }), s.removeAttribute(l);
         
     | 
| 
       859 
     | 
    
         
            -
                        } else
         
     | 
| 
       860 
     | 
    
         
            -
                          l.startsWith(A) && (a.push({ type: 6, index: n }), s.removeAttribute(l));
         
     | 
| 
       861 
     | 
    
         
            -
                    if (oe.test(s.tagName)) {
         
     | 
| 
       862 
     | 
    
         
            -
                      const l = s.textContent.split(A), p = l.length - 1;
         
     | 
| 
       863 
     | 
    
         
            -
                      if (p > 0) {
         
     | 
| 
       864 
     | 
    
         
            -
                        s.textContent = tt ? tt.emptyScript : "";
         
     | 
| 
       865 
     | 
    
         
            -
                        for (let u = 0; u < p; u++)
         
     | 
| 
       866 
     | 
    
         
            -
                          s.append(l[u], q()), U.nextNode(), a.push({ type: 2, index: ++n });
         
     | 
| 
       867 
     | 
    
         
            -
                        s.append(l[p], q());
         
     | 
| 
       868 
     | 
    
         
            -
                      }
         
     | 
| 
       869 
     | 
    
         
            -
                    }
         
     | 
| 
       870 
     | 
    
         
            -
                  } else if (s.nodeType === 8)
         
     | 
| 
       871 
     | 
    
         
            -
                    if (s.data === re)
         
     | 
| 
       872 
     | 
    
         
            -
                      a.push({ type: 2, index: n });
         
     | 
| 
       873 
     | 
    
         
            -
                    else {
         
     | 
| 
       874 
     | 
    
         
            -
                      let l = -1;
         
     | 
| 
       875 
     | 
    
         
            -
                      for (; (l = s.data.indexOf(A, l + 1)) !== -1; )
         
     | 
| 
       876 
     | 
    
         
            -
                        a.push({ type: 7, index: n }), l += A.length - 1;
         
     | 
| 
       877 
     | 
    
         
            -
                    }
         
     | 
| 
       878 
     | 
    
         
            -
                  n++;
         
     | 
| 
       879 
     | 
    
         
            -
                }
         
     | 
| 
       880 
     | 
    
         
            -
              }
         
     | 
| 
       881 
     | 
    
         
            -
              static createElement(t, e) {
         
     | 
| 
       882 
     | 
    
         
            -
                const i = x.createElement("template");
         
     | 
| 
       883 
     | 
    
         
            -
                return i.innerHTML = t, i;
         
     | 
| 
       884 
     | 
    
         
            -
              }
         
     | 
| 
       885 
     | 
    
         
            -
            }
         
     | 
| 
       886 
     | 
    
         
            -
            function O(r, t, e = r, i) {
         
     | 
| 
       887 
     | 
    
         
            -
              var o, h;
         
     | 
| 
       888 
     | 
    
         
            -
              if (t === k)
         
     | 
| 
       889 
     | 
    
         
            -
                return t;
         
     | 
| 
       890 
     | 
    
         
            -
              let s = i !== void 0 ? (o = e._$Co) == null ? void 0 : o[i] : e._$Cl;
         
     | 
| 
       891 
     | 
    
         
            -
              const n = X(t) ? void 0 : t._$litDirective$;
         
     | 
| 
       892 
     | 
    
         
            -
              return (s == null ? void 0 : s.constructor) !== n && ((h = s == null ? void 0 : s._$AO) == null || h.call(s, !1), n === void 0 ? s = void 0 : (s = new n(r), s._$AT(r, e, i)), i !== void 0 ? (e._$Co ?? (e._$Co = []))[i] = s : e._$Cl = s), s !== void 0 && (t = O(r, s._$AS(r, t.values), s, i)), t;
         
     | 
| 
       893 
     | 
    
         
            -
            }
         
     | 
| 
       894 
     | 
    
         
            -
            class Be {
         
     | 
| 
       895 
     | 
    
         
            -
              constructor(t, e) {
         
     | 
| 
       896 
     | 
    
         
            -
                this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
         
     | 
| 
       897 
     | 
    
         
            -
              }
         
     | 
| 
       898 
     | 
    
         
            -
              get parentNode() {
         
     | 
| 
       899 
     | 
    
         
            -
                return this._$AM.parentNode;
         
     | 
| 
       900 
     | 
    
         
            -
              }
         
     | 
| 
       901 
     | 
    
         
            -
              get _$AU() {
         
     | 
| 
       902 
     | 
    
         
            -
                return this._$AM._$AU;
         
     | 
| 
       903 
     | 
    
         
            -
              }
         
     | 
| 
       904 
     | 
    
         
            -
              u(t) {
         
     | 
| 
       905 
     | 
    
         
            -
                const { el: { content: e }, parts: i } = this._$AD, s = ((t == null ? void 0 : t.creationScope) ?? x).importNode(e, !0);
         
     | 
| 
       906 
     | 
    
         
            -
                U.currentNode = s;
         
     | 
| 
       907 
     | 
    
         
            -
                let n = U.nextNode(), o = 0, h = 0, a = i[0];
         
     | 
| 
       908 
     | 
    
         
            -
                for (; a !== void 0; ) {
         
     | 
| 
       909 
     | 
    
         
            -
                  if (o === a.index) {
         
     | 
| 
       910 
     | 
    
         
            -
                    let d;
         
     | 
| 
       911 
     | 
    
         
            -
                    a.type === 2 ? d = new K(n, n.nextSibling, this, t) : a.type === 1 ? d = new a.ctor(n, a.name, a.strings, this, t) : a.type === 6 && (d = new Je(n, this, t)), this._$AV.push(d), a = i[++h];
         
     | 
| 
       912 
     | 
    
         
            -
                  }
         
     | 
| 
       913 
     | 
    
         
            -
                  o !== (a == null ? void 0 : a.index) && (n = U.nextNode(), o++);
         
     | 
| 
       914 
     | 
    
         
            -
                }
         
     | 
| 
       915 
     | 
    
         
            -
                return U.currentNode = x, s;
         
     | 
| 
       916 
     | 
    
         
            -
              }
         
     | 
| 
       917 
     | 
    
         
            -
              p(t) {
         
     | 
| 
       918 
     | 
    
         
            -
                let e = 0;
         
     | 
| 
       919 
     | 
    
         
            -
                for (const i of this._$AV)
         
     | 
| 
       920 
     | 
    
         
            -
                  i !== void 0 && (i.strings !== void 0 ? (i._$AI(t, i, e), e += i.strings.length - 2) : i._$AI(t[e])), e++;
         
     | 
| 
       921 
     | 
    
         
            -
              }
         
     | 
| 
       922 
     | 
    
         
            -
            }
         
     | 
| 
       923 
     | 
    
         
            -
            class K {
         
     | 
| 
       924 
     | 
    
         
            -
              get _$AU() {
         
     | 
| 
       925 
     | 
    
         
            -
                var t;
         
     | 
| 
       926 
     | 
    
         
            -
                return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
         
     | 
| 
       927 
     | 
    
         
            -
              }
         
     | 
| 
       928 
     | 
    
         
            -
              constructor(t, e, i, s) {
         
     | 
| 
       929 
     | 
    
         
            -
                this.type = 2, this._$AH = m, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = i, this.options = s, this._$Cv = (s == null ? void 0 : s.isConnected) ?? !0;
         
     | 
| 
       930 
     | 
    
         
            -
              }
         
     | 
| 
       931 
     | 
    
         
            -
              get parentNode() {
         
     | 
| 
       932 
     | 
    
         
            -
                let t = this._$AA.parentNode;
         
     | 
| 
       933 
     | 
    
         
            -
                const e = this._$AM;
         
     | 
| 
       934 
     | 
    
         
            -
                return e !== void 0 && (t == null ? void 0 : t.nodeType) === 11 && (t = e.parentNode), t;
         
     | 
| 
       935 
     | 
    
         
            -
              }
         
     | 
| 
       936 
     | 
    
         
            -
              get startNode() {
         
     | 
| 
       937 
     | 
    
         
            -
                return this._$AA;
         
     | 
| 
       938 
     | 
    
         
            -
              }
         
     | 
| 
       939 
     | 
    
         
            -
              get endNode() {
         
     | 
| 
       940 
     | 
    
         
            -
                return this._$AB;
         
     | 
| 
       941 
     | 
    
         
            -
              }
         
     | 
| 
       942 
     | 
    
         
            -
              _$AI(t, e = this) {
         
     | 
| 
       943 
     | 
    
         
            -
                t = O(this, t, e), X(t) ? t === m || t == null || t === "" ? (this._$AH !== m && this._$AR(), this._$AH = m) : t !== this._$AH && t !== k && this._(t) : t._$litType$ !== void 0 ? this.g(t) : t.nodeType !== void 0 ? this.$(t) : Ve(t) ? this.T(t) : this._(t);
         
     | 
| 
       944 
     | 
    
         
            -
              }
         
     | 
| 
       945 
     | 
    
         
            -
              k(t) {
         
     | 
| 
       946 
     | 
    
         
            -
                return this._$AA.parentNode.insertBefore(t, this._$AB);
         
     | 
| 
       947 
     | 
    
         
            -
              }
         
     | 
| 
       948 
     | 
    
         
            -
              $(t) {
         
     | 
| 
       949 
     | 
    
         
            -
                this._$AH !== t && (this._$AR(), this._$AH = this.k(t));
         
     | 
| 
       950 
     | 
    
         
            -
              }
         
     | 
| 
       951 
     | 
    
         
            -
              _(t) {
         
     | 
| 
       952 
     | 
    
         
            -
                this._$AH !== m && X(this._$AH) ? this._$AA.nextSibling.data = t : this.$(x.createTextNode(t)), this._$AH = t;
         
     | 
| 
       953 
     | 
    
         
            -
              }
         
     | 
| 
       954 
     | 
    
         
            -
              g(t) {
         
     | 
| 
       955 
     | 
    
         
            -
                var n;
         
     | 
| 
       956 
     | 
    
         
            -
                const { values: e, _$litType$: i } = t, s = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = J.createElement(ae(i.h, i.h[0]), this.options)), i);
         
     | 
| 
       957 
     | 
    
         
            -
                if (((n = this._$AH) == null ? void 0 : n._$AD) === s)
         
     | 
| 
       958 
     | 
    
         
            -
                  this._$AH.p(e);
         
     | 
| 
       959 
     | 
    
         
            -
                else {
         
     | 
| 
       960 
     | 
    
         
            -
                  const o = new Be(s, this), h = o.u(this.options);
         
     | 
| 
       961 
     | 
    
         
            -
                  o.p(e), this.$(h), this._$AH = o;
         
     | 
| 
       962 
     | 
    
         
            -
                }
         
     | 
| 
       963 
     | 
    
         
            -
              }
         
     | 
| 
       964 
     | 
    
         
            -
              _$AC(t) {
         
     | 
| 
       965 
     | 
    
         
            -
                let e = Mt.get(t.strings);
         
     | 
| 
       966 
     | 
    
         
            -
                return e === void 0 && Mt.set(t.strings, e = new J(t)), e;
         
     | 
| 
       967 
     | 
    
         
            -
              }
         
     | 
| 
       968 
     | 
    
         
            -
              T(t) {
         
     | 
| 
       969 
     | 
    
         
            -
                ne(this._$AH) || (this._$AH = [], this._$AR());
         
     | 
| 
       970 
     | 
    
         
            -
                const e = this._$AH;
         
     | 
| 
       971 
     | 
    
         
            -
                let i, s = 0;
         
     | 
| 
       972 
     | 
    
         
            -
                for (const n of t)
         
     | 
| 
       973 
     | 
    
         
            -
                  s === e.length ? e.push(i = new K(this.k(q()), this.k(q()), this, this.options)) : i = e[s], i._$AI(n), s++;
         
     | 
| 
       974 
     | 
    
         
            -
                s < e.length && (this._$AR(i && i._$AB.nextSibling, s), e.length = s);
         
     | 
| 
       975 
     | 
    
         
            -
              }
         
     | 
| 
       976 
     | 
    
         
            -
              _$AR(t = this._$AA.nextSibling, e) {
         
     | 
| 
       977 
     | 
    
         
            -
                var i;
         
     | 
| 
       978 
     | 
    
         
            -
                for ((i = this._$AP) == null ? void 0 : i.call(this, !1, !0, e); t && t !== this._$AB; ) {
         
     | 
| 
       979 
     | 
    
         
            -
                  const s = t.nextSibling;
         
     | 
| 
       980 
     | 
    
         
            -
                  t.remove(), t = s;
         
     | 
| 
       981 
     | 
    
         
            -
                }
         
     | 
| 
       982 
     | 
    
         
            -
              }
         
     | 
| 
       983 
     | 
    
         
            -
              setConnected(t) {
         
     | 
| 
       984 
     | 
    
         
            -
                var e;
         
     | 
| 
       985 
     | 
    
         
            -
                this._$AM === void 0 && (this._$Cv = t, (e = this._$AP) == null || e.call(this, t));
         
     | 
| 
       986 
     | 
    
         
            -
              }
         
     | 
| 
       987 
     | 
    
         
            -
            }
         
     | 
| 
       988 
     | 
    
         
            -
            class st {
         
     | 
| 
       989 
     | 
    
         
            -
              get tagName() {
         
     | 
| 
       990 
     | 
    
         
            -
                return this.element.tagName;
         
     | 
| 
       991 
     | 
    
         
            -
              }
         
     | 
| 
       992 
     | 
    
         
            -
              get _$AU() {
         
     | 
| 
       993 
     | 
    
         
            -
                return this._$AM._$AU;
         
     | 
| 
       994 
     | 
    
         
            -
              }
         
     | 
| 
       995 
     | 
    
         
            -
              constructor(t, e, i, s, n) {
         
     | 
| 
       996 
     | 
    
         
            -
                this.type = 1, this._$AH = m, this._$AN = void 0, this.element = t, this.name = e, this._$AM = s, this.options = n, i.length > 2 || i[0] !== "" || i[1] !== "" ? (this._$AH = Array(i.length - 1).fill(new String()), this.strings = i) : this._$AH = m;
         
     | 
| 
       997 
     | 
    
         
            -
              }
         
     | 
| 
       998 
     | 
    
         
            -
              _$AI(t, e = this, i, s) {
         
     | 
| 
       999 
     | 
    
         
            -
                const n = this.strings;
         
     | 
| 
       1000 
     | 
    
         
            -
                let o = !1;
         
     | 
| 
       1001 
     | 
    
         
            -
                if (n === void 0)
         
     | 
| 
       1002 
     | 
    
         
            -
                  t = O(this, t, e, 0), o = !X(t) || t !== this._$AH && t !== k, o && (this._$AH = t);
         
     | 
| 
       1003 
     | 
    
         
            -
                else {
         
     | 
| 
       1004 
     | 
    
         
            -
                  const h = t;
         
     | 
| 
       1005 
     | 
    
         
            -
                  let a, d;
         
     | 
| 
       1006 
     | 
    
         
            -
                  for (t = n[0], a = 0; a < n.length - 1; a++)
         
     | 
| 
       1007 
     | 
    
         
            -
                    d = O(this, h[i + a], e, a), d === k && (d = this._$AH[a]), o || (o = !X(d) || d !== this._$AH[a]), d === m ? t = m : t !== m && (t += (d ?? "") + n[a + 1]), this._$AH[a] = d;
         
     | 
| 
       1008 
     | 
    
         
            -
                }
         
     | 
| 
       1009 
     | 
    
         
            -
                o && !s && this.O(t);
         
     | 
| 
       1010 
     | 
    
         
            -
              }
         
     | 
| 
       1011 
     | 
    
         
            -
              O(t) {
         
     | 
| 
       1012 
     | 
    
         
            -
                t === m ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
         
     | 
| 
       1013 
     | 
    
         
            -
              }
         
     | 
| 
       1014 
     | 
    
         
            -
            }
         
     | 
| 
       1015 
     | 
    
         
            -
            class We extends st {
         
     | 
| 
       1016 
     | 
    
         
            -
              constructor() {
         
     | 
| 
       1017 
     | 
    
         
            -
                super(...arguments), this.type = 3;
         
     | 
| 
       1018 
     | 
    
         
            -
              }
         
     | 
| 
       1019 
     | 
    
         
            -
              O(t) {
         
     | 
| 
       1020 
     | 
    
         
            -
                this.element[this.name] = t === m ? void 0 : t;
         
     | 
| 
       1021 
     | 
    
         
            -
              }
         
     | 
| 
       1022 
     | 
    
         
            -
            }
         
     | 
| 
       1023 
     | 
    
         
            -
            class qe extends st {
         
     | 
| 
       1024 
     | 
    
         
            -
              constructor() {
         
     | 
| 
       1025 
     | 
    
         
            -
                super(...arguments), this.type = 4;
         
     | 
| 
       1026 
     | 
    
         
            -
              }
         
     | 
| 
       1027 
     | 
    
         
            -
              O(t) {
         
     | 
| 
       1028 
     | 
    
         
            -
                this.element.toggleAttribute(this.name, !!t && t !== m);
         
     | 
| 
       1029 
     | 
    
         
            -
              }
         
     | 
| 
       1030 
     | 
    
         
            -
            }
         
     | 
| 
       1031 
     | 
    
         
            -
            class Xe extends st {
         
     | 
| 
       1032 
     | 
    
         
            -
              constructor(t, e, i, s, n) {
         
     | 
| 
       1033 
     | 
    
         
            -
                super(t, e, i, s, n), this.type = 5;
         
     | 
| 
       1034 
     | 
    
         
            -
              }
         
     | 
| 
       1035 
     | 
    
         
            -
              _$AI(t, e = this) {
         
     | 
| 
       1036 
     | 
    
         
            -
                if ((t = O(this, t, e, 0) ?? m) === k)
         
     | 
| 
       1037 
     | 
    
         
            -
                  return;
         
     | 
| 
       1038 
     | 
    
         
            -
                const i = this._$AH, s = t === m && i !== m || t.capture !== i.capture || t.once !== i.once || t.passive !== i.passive, n = t !== m && (i === m || s);
         
     | 
| 
       1039 
     | 
    
         
            -
                s && this.element.removeEventListener(this.name, this, i), n && this.element.addEventListener(this.name, this, t), this._$AH = t;
         
     | 
| 
       1040 
     | 
    
         
            -
              }
         
     | 
| 
       1041 
     | 
    
         
            -
              handleEvent(t) {
         
     | 
| 
       1042 
     | 
    
         
            -
                var e;
         
     | 
| 
       1043 
     | 
    
         
            -
                typeof this._$AH == "function" ? this._$AH.call(((e = this.options) == null ? void 0 : e.host) ?? this.element, t) : this._$AH.handleEvent(t);
         
     | 
| 
       1044 
     | 
    
         
            -
              }
         
     | 
| 
       1045 
     | 
    
         
            -
            }
         
     | 
| 
       1046 
     | 
    
         
            -
            class Je {
         
     | 
| 
       1047 
     | 
    
         
            -
              constructor(t, e, i) {
         
     | 
| 
       1048 
     | 
    
         
            -
                this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = i;
         
     | 
| 
       1049 
     | 
    
         
            -
              }
         
     | 
| 
       1050 
     | 
    
         
            -
              get _$AU() {
         
     | 
| 
       1051 
     | 
    
         
            -
                return this._$AM._$AU;
         
     | 
| 
       1052 
     | 
    
         
            -
              }
         
     | 
| 
       1053 
     | 
    
         
            -
              _$AI(t) {
         
     | 
| 
       1054 
     | 
    
         
            -
                O(this, t);
         
     | 
| 
       1055 
     | 
    
         
            -
              }
         
     | 
| 
       1056 
     | 
    
         
            -
            }
         
     | 
| 
       1057 
     | 
    
         
            -
            const lt = z.litHtmlPolyfillSupport;
         
     | 
| 
       1058 
     | 
    
         
            -
            lt == null || lt(J, K), (z.litHtmlVersions ?? (z.litHtmlVersions = [])).push("3.1.0");
         
     | 
| 
       1059 
     | 
    
         
            -
            const Ke = (r, t, e) => {
         
     | 
| 
       1060 
     | 
    
         
            -
              const i = (e == null ? void 0 : e.renderBefore) ?? t;
         
     | 
| 
       1061 
     | 
    
         
            -
              let s = i._$litPart$;
         
     | 
| 
       1062 
     | 
    
         
            -
              if (s === void 0) {
         
     | 
| 
       1063 
     | 
    
         
            -
                const n = (e == null ? void 0 : e.renderBefore) ?? null;
         
     | 
| 
       1064 
     | 
    
         
            -
                i._$litPart$ = s = new K(t.insertBefore(q(), n), n, void 0, e ?? {});
         
     | 
| 
       1065 
     | 
    
         
            -
              }
         
     | 
| 
       1066 
     | 
    
         
            -
              return s._$AI(r), s;
         
     | 
| 
       1067 
     | 
    
         
            -
            };
         
     | 
| 
       1068 
     | 
    
         
            -
            /**
         
     | 
| 
       1069 
     | 
    
         
            -
             * @license
         
     | 
| 
       1070 
     | 
    
         
            -
             * Copyright 2017 Google LLC
         
     | 
| 
       1071 
     | 
    
         
            -
             * SPDX-License-Identifier: BSD-3-Clause
         
     | 
| 
       1072 
     | 
    
         
            -
             */
         
     | 
| 
       1073 
     | 
    
         
            -
            class j extends R {
         
     | 
| 
       1074 
     | 
    
         
            -
              constructor() {
         
     | 
| 
       1075 
     | 
    
         
            -
                super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
         
     | 
| 
       1076 
     | 
    
         
            -
              }
         
     | 
| 
       1077 
     | 
    
         
            -
              createRenderRoot() {
         
     | 
| 
       1078 
     | 
    
         
            -
                var e;
         
     | 
| 
       1079 
     | 
    
         
            -
                const t = super.createRenderRoot();
         
     | 
| 
       1080 
     | 
    
         
            -
                return (e = this.renderOptions).renderBefore ?? (e.renderBefore = t.firstChild), t;
         
     | 
| 
       1081 
     | 
    
         
            -
              }
         
     | 
| 
       1082 
     | 
    
         
            -
              update(t) {
         
     | 
| 
       1083 
     | 
    
         
            -
                const e = this.render();
         
     | 
| 
       1084 
     | 
    
         
            -
                this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = Ke(e, this.renderRoot, this.renderOptions);
         
     | 
| 
       1085 
     | 
    
         
            -
              }
         
     | 
| 
       1086 
     | 
    
         
            -
              connectedCallback() {
         
     | 
| 
       1087 
     | 
    
         
            -
                var t;
         
     | 
| 
       1088 
     | 
    
         
            -
                super.connectedCallback(), (t = this._$Do) == null || t.setConnected(!0);
         
     | 
| 
       1089 
     | 
    
         
            -
              }
         
     | 
| 
       1090 
     | 
    
         
            -
              disconnectedCallback() {
         
     | 
| 
       1091 
     | 
    
         
            -
                var t;
         
     | 
| 
       1092 
     | 
    
         
            -
                super.disconnectedCallback(), (t = this._$Do) == null || t.setConnected(!1);
         
     | 
| 
       1093 
     | 
    
         
            -
              }
         
     | 
| 
       1094 
     | 
    
         
            -
              render() {
         
     | 
| 
       1095 
     | 
    
         
            -
                return k;
         
     | 
| 
       1096 
     | 
    
         
            -
              }
         
     | 
| 
       1097 
     | 
    
         
            -
            }
         
     | 
| 
       1098 
     | 
    
         
            -
            var zt;
         
     | 
| 
       1099 
     | 
    
         
            -
            j._$litElement$ = !0, j.finalized = !0, (zt = globalThis.litElementHydrateSupport) == null || zt.call(globalThis, { LitElement: j });
         
     | 
| 
       1100 
     | 
    
         
            -
            const dt = globalThis.litElementPolyfillSupport;
         
     | 
| 
       1101 
     | 
    
         
            -
            dt == null || dt({ LitElement: j });
         
     | 
| 
       1102 
     | 
    
         
            -
            (globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.0.2");
         
     | 
| 
       1103 
     | 
    
         
            -
            function Fe(r, t, e) {
         
     | 
| 
       1104 
     | 
    
         
            -
              function i(s) {
         
     | 
| 
       1105 
     | 
    
         
            -
                e.dispatchEvent(new CustomEvent(s.type, s));
         
     | 
| 
       1106 
     | 
    
         
            -
              }
         
     | 
| 
       1107 
     | 
    
         
            -
              return t.addEventListener(r, i), () => {
         
     | 
| 
       1108 
     | 
    
         
            -
                t.removeEventListener(r, i);
         
     | 
| 
      
 9 
     | 
    
         
            +
            import { styleMap } from "lit/directives/style-map.js";
         
     | 
| 
      
 10 
     | 
    
         
            +
            import { classMap } from "lit/directives/class-map.js";
         
     | 
| 
      
 11 
     | 
    
         
            +
            import "@a11y/focus-trap";
         
     | 
| 
      
 12 
     | 
    
         
            +
            function forwardEvent(type2, fromElement, toElement) {
         
     | 
| 
      
 13 
     | 
    
         
            +
              function forwarder(event) {
         
     | 
| 
      
 14 
     | 
    
         
            +
                toElement.dispatchEvent(new CustomEvent(event.type, event));
         
     | 
| 
      
 15 
     | 
    
         
            +
              }
         
     | 
| 
      
 16 
     | 
    
         
            +
              fromElement.addEventListener(type2, forwarder);
         
     | 
| 
      
 17 
     | 
    
         
            +
              return () => {
         
     | 
| 
      
 18 
     | 
    
         
            +
                fromElement.removeEventListener(type2, forwarder);
         
     | 
| 
       1109 
19 
     | 
    
         
             
              };
         
     | 
| 
       1110 
20 
     | 
    
         
             
            }
         
     | 
| 
       1111 
     | 
    
         
            -
            class  
     | 
| 
       1112 
     | 
    
         
            -
              constructor( 
     | 
| 
       1113 
     | 
    
         
            -
                this._events = [] 
     | 
| 
      
 21 
     | 
    
         
            +
            class EventForwardController {
         
     | 
| 
      
 22 
     | 
    
         
            +
              constructor(host, events) {
         
     | 
| 
      
 23 
     | 
    
         
            +
                this._events = [];
         
     | 
| 
      
 24 
     | 
    
         
            +
                this._cleanup = [];
         
     | 
| 
      
 25 
     | 
    
         
            +
                this._forwardElementRef = createRef();
         
     | 
| 
      
 26 
     | 
    
         
            +
                this.host = host;
         
     | 
| 
      
 27 
     | 
    
         
            +
                this._events = events;
         
     | 
| 
      
 28 
     | 
    
         
            +
                host.addController(this);
         
     | 
| 
       1114 
29 
     | 
    
         
             
              }
         
     | 
| 
       1115 
30 
     | 
    
         
             
              register() {
         
     | 
| 
       1116 
     | 
    
         
            -
                return  
     | 
| 
      
 31 
     | 
    
         
            +
                return ref(this._forwardElementRef);
         
     | 
| 
       1117 
32 
     | 
    
         
             
              }
         
     | 
| 
       1118 
33 
     | 
    
         
             
              hostConnected() {
         
     | 
| 
       1119 
34 
     | 
    
         
             
                requestAnimationFrame(() => {
         
     | 
| 
       1120 
     | 
    
         
            -
                  this._events.forEach(( 
     | 
| 
       1121 
     | 
    
         
            -
                     
     | 
| 
      
 35 
     | 
    
         
            +
                  this._events.forEach((event) => {
         
     | 
| 
      
 36 
     | 
    
         
            +
                    if (this._forwardElementRef.value) {
         
     | 
| 
      
 37 
     | 
    
         
            +
                      this._cleanup.push(forwardEvent(event, this._forwardElementRef.value, this.host));
         
     | 
| 
      
 38 
     | 
    
         
            +
                    }
         
     | 
| 
       1122 
39 
     | 
    
         
             
                  });
         
     | 
| 
       1123 
40 
     | 
    
         
             
                });
         
     | 
| 
       1124 
41 
     | 
    
         
             
              }
         
     | 
| 
       1125 
42 
     | 
    
         
             
              hostDisconnected() {
         
     | 
| 
       1126 
     | 
    
         
            -
                this._cleanup.forEach(( 
     | 
| 
       1127 
     | 
    
         
            -
                   
     | 
| 
       1128 
     | 
    
         
            -
                }) 
     | 
| 
      
 43 
     | 
    
         
            +
                this._cleanup.forEach((fn) => {
         
     | 
| 
      
 44 
     | 
    
         
            +
                  fn();
         
     | 
| 
      
 45 
     | 
    
         
            +
                });
         
     | 
| 
      
 46 
     | 
    
         
            +
                this._cleanup = [];
         
     | 
| 
       1129 
47 
     | 
    
         
             
              }
         
     | 
| 
       1130 
48 
     | 
    
         
             
            }
         
     | 
| 
       1131 
     | 
    
         
            -
            const  
     | 
| 
       1132 
     | 
    
         
            -
             
     | 
| 
       1133 
     | 
    
         
            -
             
     | 
| 
       1134 
     | 
    
         
            -
             
     | 
| 
       1135 
     | 
    
         
            -
             
     | 
| 
      
 49 
     | 
    
         
            +
            const devVideoUrl = "https://d2rxhdlm2q91uk.cloudfront.net";
         
     | 
| 
      
 50 
     | 
    
         
            +
            const stagingVideoUrl = "https://d1ix11aj5kfygl.cloudfront.net";
         
     | 
| 
      
 51 
     | 
    
         
            +
            const prodVideoUrl = "https://d157jlwnudd93d.cloudfront.net";
         
     | 
| 
      
 52 
     | 
    
         
            +
            const devPublicApiUrl = "https://bshyfw4h5a.execute-api.ap-southeast-2.amazonaws.com/dev";
         
     | 
| 
      
 53 
     | 
    
         
            +
            const stagingPublicApiUrl = "https://gyzw7rpbq3.execute-api.ap-southeast-2.amazonaws.com/staging";
         
     | 
| 
      
 54 
     | 
    
         
            +
            const prodPublicApiUrl = "https://vfcjuim1l3.execute-api.ap-southeast-2.amazonaws.com/prod";
         
     | 
| 
      
 55 
     | 
    
         
            +
            const localEmbedApiUrl = "http://localhost:6060/v2";
         
     | 
| 
      
 56 
     | 
    
         
            +
            const devEmbedApiUrl = "https://embed-dev.vouchfor.com/v2";
         
     | 
| 
      
 57 
     | 
    
         
            +
            const stagingEmbedApiUrl = "https://embed-staging.vouchfor.com/v2";
         
     | 
| 
      
 58 
     | 
    
         
            +
            const prodEmbedApiUrl = "https://embed.vouchfor.com/v2";
         
     | 
| 
      
 59 
     | 
    
         
            +
            function getEnvUrls(env) {
         
     | 
| 
      
 60 
     | 
    
         
            +
              if (!["local", "dev", "staging", "prod"].includes(env)) {
         
     | 
| 
      
 61 
     | 
    
         
            +
                throw new Error(`Unknown environment: ${env}`);
         
     | 
| 
      
 62 
     | 
    
         
            +
              }
         
     | 
| 
      
 63 
     | 
    
         
            +
              if (env === "local") {
         
     | 
| 
       1136 
64 
     | 
    
         
             
                return {
         
     | 
| 
       1137 
     | 
    
         
            -
                  videoUrl:  
     | 
| 
       1138 
     | 
    
         
            -
                  publicApiUrl:  
     | 
| 
       1139 
     | 
    
         
            -
                  embedApiUrl:  
     | 
| 
      
 65 
     | 
    
         
            +
                  videoUrl: devVideoUrl,
         
     | 
| 
      
 66 
     | 
    
         
            +
                  publicApiUrl: devPublicApiUrl,
         
     | 
| 
      
 67 
     | 
    
         
            +
                  embedApiUrl: localEmbedApiUrl
         
     | 
| 
       1140 
68 
     | 
    
         
             
                };
         
     | 
| 
       1141 
     | 
    
         
            -
               
     | 
| 
      
 69 
     | 
    
         
            +
              }
         
     | 
| 
      
 70 
     | 
    
         
            +
              if (env === "dev") {
         
     | 
| 
       1142 
71 
     | 
    
         
             
                return {
         
     | 
| 
       1143 
     | 
    
         
            -
                  videoUrl:  
     | 
| 
       1144 
     | 
    
         
            -
                  publicApiUrl:  
     | 
| 
       1145 
     | 
    
         
            -
                  embedApiUrl:  
     | 
| 
      
 72 
     | 
    
         
            +
                  videoUrl: devVideoUrl,
         
     | 
| 
      
 73 
     | 
    
         
            +
                  publicApiUrl: devPublicApiUrl,
         
     | 
| 
      
 74 
     | 
    
         
            +
                  embedApiUrl: devEmbedApiUrl
         
     | 
| 
       1146 
75 
     | 
    
         
             
                };
         
     | 
| 
       1147 
     | 
    
         
            -
               
     | 
| 
      
 76 
     | 
    
         
            +
              }
         
     | 
| 
      
 77 
     | 
    
         
            +
              if (env === "staging") {
         
     | 
| 
       1148 
78 
     | 
    
         
             
                return {
         
     | 
| 
       1149 
     | 
    
         
            -
                  videoUrl:  
     | 
| 
       1150 
     | 
    
         
            -
                  publicApiUrl:  
     | 
| 
       1151 
     | 
    
         
            -
                  embedApiUrl:  
     | 
| 
      
 79 
     | 
    
         
            +
                  videoUrl: stagingVideoUrl,
         
     | 
| 
      
 80 
     | 
    
         
            +
                  publicApiUrl: stagingPublicApiUrl,
         
     | 
| 
      
 81 
     | 
    
         
            +
                  embedApiUrl: stagingEmbedApiUrl
         
     | 
| 
       1152 
82 
     | 
    
         
             
                };
         
     | 
| 
       1153 
     | 
    
         
            -
               
     | 
| 
      
 83 
     | 
    
         
            +
              }
         
     | 
| 
      
 84 
     | 
    
         
            +
              if (env === "prod") {
         
     | 
| 
       1154 
85 
     | 
    
         
             
                return {
         
     | 
| 
       1155 
     | 
    
         
            -
                  videoUrl:  
     | 
| 
       1156 
     | 
    
         
            -
                  publicApiUrl:  
     | 
| 
       1157 
     | 
    
         
            -
                  embedApiUrl:  
     | 
| 
      
 86 
     | 
    
         
            +
                  videoUrl: prodVideoUrl,
         
     | 
| 
      
 87 
     | 
    
         
            +
                  publicApiUrl: prodPublicApiUrl,
         
     | 
| 
      
 88 
     | 
    
         
            +
                  embedApiUrl: prodEmbedApiUrl
         
     | 
| 
       1158 
89 
     | 
    
         
             
                };
         
     | 
| 
      
 90 
     | 
    
         
            +
              }
         
     | 
| 
       1159 
91 
     | 
    
         
             
            }
         
     | 
| 
       1160 
     | 
    
         
            -
            class  
     | 
| 
       1161 
     | 
    
         
            -
              constructor( 
     | 
| 
       1162 
     | 
    
         
            -
                this._fetching =  
     | 
| 
       1163 
     | 
    
         
            -
             
     | 
| 
       1164 
     | 
    
         
            -
                   
     | 
| 
       1165 
     | 
    
         
            -
             
     | 
| 
       1166 
     | 
    
         
            -
             
     | 
| 
       1167 
     | 
    
         
            -
             
     | 
| 
       1168 
     | 
    
         
            -
                      ["X-Cache-Check", o]
         
     | 
| 
       1169 
     | 
    
         
            -
                    ]
         
     | 
| 
       1170 
     | 
    
         
            -
                  }), a = await h.json();
         
     | 
| 
       1171 
     | 
    
         
            -
                  return this.host.dispatchEvent(new CustomEvent("vouch:loaded", { detail: a == null ? void 0 : a.id })), ((c = h == null ? void 0 : h.headers) == null ? void 0 : c.get("X-Cache-Check")) !== o && fetch(`${n}/vouches/${s}`, {
         
     | 
| 
       1172 
     | 
    
         
            -
                    method: "GET",
         
     | 
| 
       1173 
     | 
    
         
            -
                    headers: [
         
     | 
| 
       1174 
     | 
    
         
            -
                      ["X-Api-Key", i],
         
     | 
| 
       1175 
     | 
    
         
            -
                      ["Cache-Control", "max-age=0"]
         
     | 
| 
       1176 
     | 
    
         
            -
                    ]
         
     | 
| 
       1177 
     | 
    
         
            -
                  }), a;
         
     | 
| 
       1178 
     | 
    
         
            -
                }, this.getTemplate = async (e, i, s) => {
         
     | 
| 
       1179 
     | 
    
         
            -
                  var c;
         
     | 
| 
       1180 
     | 
    
         
            -
                  const { embedApiUrl: n } = et(e), o = P(), h = await fetch(`${n}/templates/${s}`, {
         
     | 
| 
      
 92 
     | 
    
         
            +
            class FetcherController {
         
     | 
| 
      
 93 
     | 
    
         
            +
              constructor(host) {
         
     | 
| 
      
 94 
     | 
    
         
            +
                this._fetching = false;
         
     | 
| 
      
 95 
     | 
    
         
            +
                this.getVouch = async (env, apiKey, vouchId) => {
         
     | 
| 
      
 96 
     | 
    
         
            +
                  var _a;
         
     | 
| 
      
 97 
     | 
    
         
            +
                  const { embedApiUrl } = getEnvUrls(env);
         
     | 
| 
      
 98 
     | 
    
         
            +
                  const cacheCheck = v4();
         
     | 
| 
      
 99 
     | 
    
         
            +
                  const res = await fetch(`${embedApiUrl}/vouches/${vouchId}`, {
         
     | 
| 
       1181 
100 
     | 
    
         
             
                    method: "GET",
         
     | 
| 
       1182 
101 
     | 
    
         
             
                    headers: [
         
     | 
| 
       1183 
     | 
    
         
            -
                      ["X-Api-Key",  
     | 
| 
       1184 
     | 
    
         
            -
                      ["X-Cache-Check",  
     | 
| 
      
 102 
     | 
    
         
            +
                      ["X-Api-Key", apiKey],
         
     | 
| 
      
 103 
     | 
    
         
            +
                      ["X-Cache-Check", cacheCheck]
         
     | 
| 
       1185 
104 
     | 
    
         
             
                    ]
         
     | 
| 
       1186 
     | 
    
         
            -
                  }) 
     | 
| 
       1187 
     | 
    
         
            -
                   
     | 
| 
      
 105 
     | 
    
         
            +
                  });
         
     | 
| 
      
 106 
     | 
    
         
            +
                  const vouch = await res.json();
         
     | 
| 
      
 107 
     | 
    
         
            +
                  this.host.dispatchEvent(new CustomEvent("vouch:loaded", { detail: vouch == null ? void 0 : vouch.id }));
         
     | 
| 
      
 108 
     | 
    
         
            +
                  const resCacheCheck = (_a = res == null ? void 0 : res.headers) == null ? void 0 : _a.get("X-Cache-Check");
         
     | 
| 
      
 109 
     | 
    
         
            +
                  if (resCacheCheck !== cacheCheck) {
         
     | 
| 
      
 110 
     | 
    
         
            +
                    fetch(`${embedApiUrl}/vouches/${vouchId}`, {
         
     | 
| 
      
 111 
     | 
    
         
            +
                      method: "GET",
         
     | 
| 
      
 112 
     | 
    
         
            +
                      headers: [
         
     | 
| 
      
 113 
     | 
    
         
            +
                        ["X-Api-Key", apiKey],
         
     | 
| 
      
 114 
     | 
    
         
            +
                        ["Cache-Control", "max-age=0"]
         
     | 
| 
      
 115 
     | 
    
         
            +
                      ]
         
     | 
| 
      
 116 
     | 
    
         
            +
                    });
         
     | 
| 
      
 117 
     | 
    
         
            +
                  }
         
     | 
| 
      
 118 
     | 
    
         
            +
                  return vouch;
         
     | 
| 
      
 119 
     | 
    
         
            +
                };
         
     | 
| 
      
 120 
     | 
    
         
            +
                this.getTemplate = async (env, apiKey, templateId) => {
         
     | 
| 
      
 121 
     | 
    
         
            +
                  var _a;
         
     | 
| 
      
 122 
     | 
    
         
            +
                  const { embedApiUrl } = getEnvUrls(env);
         
     | 
| 
      
 123 
     | 
    
         
            +
                  const cacheCheck = v4();
         
     | 
| 
      
 124 
     | 
    
         
            +
                  const res = await fetch(`${embedApiUrl}/templates/${templateId}`, {
         
     | 
| 
       1188 
125 
     | 
    
         
             
                    method: "GET",
         
     | 
| 
       1189 
126 
     | 
    
         
             
                    headers: [
         
     | 
| 
       1190 
     | 
    
         
            -
                      ["X-Api-Key",  
     | 
| 
       1191 
     | 
    
         
            -
                      ["Cache- 
     | 
| 
      
 127 
     | 
    
         
            +
                      ["X-Api-Key", apiKey],
         
     | 
| 
      
 128 
     | 
    
         
            +
                      ["X-Cache-Check", cacheCheck]
         
     | 
| 
       1192 
129 
     | 
    
         
             
                    ]
         
     | 
| 
       1193 
     | 
    
         
            -
                  }) 
     | 
| 
       1194 
     | 
    
         
            -
             
     | 
| 
      
 130 
     | 
    
         
            +
                  });
         
     | 
| 
      
 131 
     | 
    
         
            +
                  const template = await res.json();
         
     | 
| 
      
 132 
     | 
    
         
            +
                  const resCacheCheck = (_a = res == null ? void 0 : res.headers) == null ? void 0 : _a.get("X-Cache-Check");
         
     | 
| 
      
 133 
     | 
    
         
            +
                  if (resCacheCheck !== cacheCheck) {
         
     | 
| 
      
 134 
     | 
    
         
            +
                    fetch(`${embedApiUrl}/templates/${templateId}`, {
         
     | 
| 
      
 135 
     | 
    
         
            +
                      method: "GET",
         
     | 
| 
      
 136 
     | 
    
         
            +
                      headers: [
         
     | 
| 
      
 137 
     | 
    
         
            +
                        ["X-Api-Key", apiKey],
         
     | 
| 
      
 138 
     | 
    
         
            +
                        ["Cache-Control", "max-age=0"]
         
     | 
| 
      
 139 
     | 
    
         
            +
                      ]
         
     | 
| 
      
 140 
     | 
    
         
            +
                    });
         
     | 
| 
      
 141 
     | 
    
         
            +
                  }
         
     | 
| 
      
 142 
     | 
    
         
            +
                  return template;
         
     | 
| 
      
 143 
     | 
    
         
            +
                };
         
     | 
| 
      
 144 
     | 
    
         
            +
                this.host = host;
         
     | 
| 
      
 145 
     | 
    
         
            +
                new Task(
         
     | 
| 
       1195 
146 
     | 
    
         
             
                  this.host,
         
     | 
| 
       1196 
     | 
    
         
            -
                  async ([ 
     | 
| 
       1197 
     | 
    
         
            -
                    var  
     | 
| 
      
 147 
     | 
    
         
            +
                  async ([env, apiKey, data, vouchId, templateId]) => {
         
     | 
| 
      
 148 
     | 
    
         
            +
                    var _a, _b, _c, _d;
         
     | 
| 
       1198 
149 
     | 
    
         
             
                    try {
         
     | 
| 
       1199 
     | 
    
         
            -
                       
     | 
| 
       1200 
     | 
    
         
            -
             
     | 
| 
       1201 
     | 
    
         
            -
             
     | 
| 
       1202 
     | 
    
         
            -
             
     | 
| 
       1203 
     | 
    
         
            -
                         
     | 
| 
       1204 
     | 
    
         
            -
             
     | 
| 
       1205 
     | 
    
         
            -
                          this. 
     | 
| 
       1206 
     | 
    
         
            -
             
     | 
| 
      
 150 
     | 
    
         
            +
                      host.vouch = void 0;
         
     | 
| 
      
 151 
     | 
    
         
            +
                      host.template = void 0;
         
     | 
| 
      
 152 
     | 
    
         
            +
                      if (data) {
         
     | 
| 
      
 153 
     | 
    
         
            +
                        let template;
         
     | 
| 
      
 154 
     | 
    
         
            +
                        if (templateId) {
         
     | 
| 
      
 155 
     | 
    
         
            +
                          this.fetching = true;
         
     | 
| 
      
 156 
     | 
    
         
            +
                          template = await this.getTemplate(env, apiKey, templateId);
         
     | 
| 
      
 157 
     | 
    
         
            +
                        }
         
     | 
| 
      
 158 
     | 
    
         
            +
                        this._vouch = data;
         
     | 
| 
      
 159 
     | 
    
         
            +
                        host.template = template ?? ((_b = (_a = data == null ? void 0 : data.settings) == null ? void 0 : _a.template) == null ? void 0 : _b.instance);
         
     | 
| 
      
 160 
     | 
    
         
            +
                      } else if (vouchId) {
         
     | 
| 
      
 161 
     | 
    
         
            +
                        this.fetching = true;
         
     | 
| 
      
 162 
     | 
    
         
            +
                        const [vouch, template] = await Promise.all([
         
     | 
| 
      
 163 
     | 
    
         
            +
                          this.getVouch(env, apiKey, vouchId),
         
     | 
| 
      
 164 
     | 
    
         
            +
                          templateId ? this.getTemplate(env, apiKey, templateId) : null
         
     | 
| 
       1207 
165 
     | 
    
         
             
                        ]);
         
     | 
| 
       1208 
     | 
    
         
            -
                         
     | 
| 
      
 166 
     | 
    
         
            +
                        this._vouch = vouch;
         
     | 
| 
      
 167 
     | 
    
         
            +
                        host.template = template ?? ((_d = (_c = vouch == null ? void 0 : vouch.settings) == null ? void 0 : _c.template) == null ? void 0 : _d.instance);
         
     | 
| 
       1209 
168 
     | 
    
         
             
                      }
         
     | 
| 
       1210 
169 
     | 
    
         
             
                    } finally {
         
     | 
| 
       1211 
     | 
    
         
            -
                      this.fetching =  
     | 
| 
      
 170 
     | 
    
         
            +
                      this.fetching = false;
         
     | 
| 
       1212 
171 
     | 
    
         
             
                    }
         
     | 
| 
       1213 
172 
     | 
    
         
             
                  },
         
     | 
| 
       1214 
     | 
    
         
            -
                  () => [ 
     | 
| 
      
 173 
     | 
    
         
            +
                  () => [host.env, host.apiKey, host.data, host.vouchId, host.templateId]
         
     | 
| 
      
 174 
     | 
    
         
            +
                );
         
     | 
| 
      
 175 
     | 
    
         
            +
                new Task(
         
     | 
| 
      
 176 
     | 
    
         
            +
                  this.host,
         
     | 
| 
      
 177 
     | 
    
         
            +
                  ([vouch, questions]) => {
         
     | 
| 
      
 178 
     | 
    
         
            +
                    host.vouch = vouch ? {
         
     | 
| 
      
 179 
     | 
    
         
            +
                      ...vouch,
         
     | 
| 
      
 180 
     | 
    
         
            +
                      questions: {
         
     | 
| 
      
 181 
     | 
    
         
            +
                        items: vouch == null ? void 0 : vouch.questions.items.filter((_, index) => !(questions == null ? void 0 : questions.length) || (questions == null ? void 0 : questions.includes(index + 1)))
         
     | 
| 
      
 182 
     | 
    
         
            +
                      }
         
     | 
| 
      
 183 
     | 
    
         
            +
                    } : void 0;
         
     | 
| 
      
 184 
     | 
    
         
            +
                  },
         
     | 
| 
      
 185 
     | 
    
         
            +
                  () => [this._vouch, host.questions]
         
     | 
| 
       1215 
186 
     | 
    
         
             
                );
         
     | 
| 
       1216 
187 
     | 
    
         
             
              }
         
     | 
| 
       1217 
     | 
    
         
            -
              set fetching( 
     | 
| 
       1218 
     | 
    
         
            -
                 
     | 
| 
      
 188 
     | 
    
         
            +
              set fetching(value) {
         
     | 
| 
      
 189 
     | 
    
         
            +
                if (this._fetching !== value) {
         
     | 
| 
      
 190 
     | 
    
         
            +
                  this._fetching = value;
         
     | 
| 
      
 191 
     | 
    
         
            +
                  this.host.requestUpdate();
         
     | 
| 
      
 192 
     | 
    
         
            +
                }
         
     | 
| 
       1219 
193 
     | 
    
         
             
              }
         
     | 
| 
       1220 
194 
     | 
    
         
             
              get fetching() {
         
     | 
| 
       1221 
195 
     | 
    
         
             
                return this._fetching;
         
     | 
| 
       1222 
196 
     | 
    
         
             
              }
         
     | 
| 
       1223 
197 
     | 
    
         
             
            }
         
     | 
| 
       1224 
     | 
    
         
            -
            const  
     | 
| 
      
 198 
     | 
    
         
            +
            const name = "@vouchfor/embeds";
         
     | 
| 
      
 199 
     | 
    
         
            +
            const version = "0.0.0-experiment.cb158c1";
         
     | 
| 
      
 200 
     | 
    
         
            +
            const license = "MIT";
         
     | 
| 
      
 201 
     | 
    
         
            +
            const author = "Aaron Williams";
         
     | 
| 
      
 202 
     | 
    
         
            +
            const main = "dist/es/embeds.js";
         
     | 
| 
      
 203 
     | 
    
         
            +
            const module = "dist/es/embeds.js";
         
     | 
| 
      
 204 
     | 
    
         
            +
            const type = "module";
         
     | 
| 
      
 205 
     | 
    
         
            +
            const types = "dist/es/src/index.d.ts";
         
     | 
| 
      
 206 
     | 
    
         
            +
            const exports = {
         
     | 
| 
       1225 
207 
     | 
    
         
             
              ".": "./dist/es/embeds.js"
         
     | 
| 
       1226 
     | 
    
         
            -
            } 
     | 
| 
      
 208 
     | 
    
         
            +
            };
         
     | 
| 
      
 209 
     | 
    
         
            +
            const files = [
         
     | 
| 
       1227 
210 
     | 
    
         
             
              "dist",
         
     | 
| 
       1228 
211 
     | 
    
         
             
              "src"
         
     | 
| 
       1229 
     | 
    
         
            -
            ] 
     | 
| 
      
 212 
     | 
    
         
            +
            ];
         
     | 
| 
      
 213 
     | 
    
         
            +
            const publishConfig = {
         
     | 
| 
       1230 
214 
     | 
    
         
             
              tag: "experiment",
         
     | 
| 
       1231 
215 
     | 
    
         
             
              access: "public"
         
     | 
| 
       1232 
     | 
    
         
            -
            } 
     | 
| 
       1233 
     | 
    
         
            -
             
     | 
| 
      
 216 
     | 
    
         
            +
            };
         
     | 
| 
      
 217 
     | 
    
         
            +
            const engines = {
         
     | 
| 
      
 218 
     | 
    
         
            +
              node: ">=18.18.0"
         
     | 
| 
      
 219 
     | 
    
         
            +
            };
         
     | 
| 
      
 220 
     | 
    
         
            +
            const scripts = {
         
     | 
| 
      
 221 
     | 
    
         
            +
              build: "rm -rf dist && tsc && yarn build:self",
         
     | 
| 
       1234 
222 
     | 
    
         
             
              "build:deps": "yarn --cwd ../media-player build",
         
     | 
| 
      
 223 
     | 
    
         
            +
              "build:self": "vite build --mode iife && vite build --mode es && node scripts/build.cjs",
         
     | 
| 
       1235 
224 
     | 
    
         
             
              "build:package": "yarn build",
         
     | 
| 
       1236 
225 
     | 
    
         
             
              "build:storybook": "yarn prebuild && storybook build",
         
     | 
| 
       1237 
226 
     | 
    
         
             
              "generate:manifest": "wca src --outFile custom-elements.json",
         
     | 
| 
         @@ -1242,187 +231,325 @@ const oi = "@vouchfor/embeds", ai = "0.0.0-experiment.c840098", hi = "MIT", li = 
     | 
|
| 
       1242 
231 
     | 
    
         
             
              size: "size-limit",
         
     | 
| 
       1243 
232 
     | 
    
         
             
              storybook: "yarn prebuild && storybook dev -p 6007",
         
     | 
| 
       1244 
233 
     | 
    
         
             
              prebuild: "yarn build:deps && yarn generate:manifest",
         
     | 
| 
       1245 
     | 
    
         
            -
              test: " 
     | 
| 
       1246 
     | 
    
         
            -
             
     | 
| 
      
 234 
     | 
    
         
            +
              test: "rm -rf test/lib && yarn prebuild && vite build --mode test && web-test-runner",
         
     | 
| 
      
 235 
     | 
    
         
            +
              "test:ci": "yarn test --config web-test-runner.ci.config.js",
         
     | 
| 
      
 236 
     | 
    
         
            +
              "test:watch": "yarn test --watch"
         
     | 
| 
      
 237 
     | 
    
         
            +
            };
         
     | 
| 
      
 238 
     | 
    
         
            +
            const dependencies = {
         
     | 
| 
      
 239 
     | 
    
         
            +
              "@a11y/focus-trap": "^1.0.5",
         
     | 
| 
       1247 
240 
     | 
    
         
             
              "@lit/task": "^1.0.0",
         
     | 
| 
       1248 
     | 
    
         
            -
              "@vouchfor/ 
     | 
| 
      
 241 
     | 
    
         
            +
              "@vouchfor/canvas-video": "0.0.0-experiment.cb158c1",
         
     | 
| 
      
 242 
     | 
    
         
            +
              "@vouchfor/media-player": "0.0.0-experiment.cb158c1",
         
     | 
| 
       1249 
243 
     | 
    
         
             
              uuid: "^9.0.1"
         
     | 
| 
       1250 
     | 
    
         
            -
            } 
     | 
| 
       1251 
     | 
    
         
            -
             
     | 
| 
       1252 
     | 
    
         
            -
             
     | 
| 
      
 244 
     | 
    
         
            +
            };
         
     | 
| 
      
 245 
     | 
    
         
            +
            const peerDependencies = {
         
     | 
| 
      
 246 
     | 
    
         
            +
              lit: "^3.1.2"
         
     | 
| 
      
 247 
     | 
    
         
            +
            };
         
     | 
| 
      
 248 
     | 
    
         
            +
            const devDependencies = {
         
     | 
| 
       1253 
249 
     | 
    
         
             
              "@esm-bundle/chai": "^4.3.4-fix.0",
         
     | 
| 
       1254 
     | 
    
         
            -
              "@open-wc/testing": "^ 
     | 
| 
       1255 
     | 
    
         
            -
              "@storybook/addon-essentials": "^ 
     | 
| 
       1256 
     | 
    
         
            -
              "@storybook/addon-links": "^ 
     | 
| 
       1257 
     | 
    
         
            -
              "@storybook/blocks": "^ 
     | 
| 
       1258 
     | 
    
         
            -
              "@storybook/web-components": "^ 
     | 
| 
       1259 
     | 
    
         
            -
              "@storybook/web-components-vite": "^ 
     | 
| 
       1260 
     | 
    
         
            -
              "@ 
     | 
| 
       1261 
     | 
    
         
            -
              "@ 
     | 
| 
       1262 
     | 
    
         
            -
              "@ 
     | 
| 
       1263 
     | 
    
         
            -
              "@ 
     | 
| 
       1264 
     | 
    
         
            -
              "@ 
     | 
| 
       1265 
     | 
    
         
            -
              "@ 
     | 
| 
       1266 
     | 
    
         
            -
              "@web/ 
     | 
| 
       1267 
     | 
    
         
            -
              "@web/test-runner 
     | 
| 
       1268 
     | 
    
         
            -
               
     | 
| 
       1269 
     | 
    
         
            -
               
     | 
| 
       1270 
     | 
    
         
            -
              " 
     | 
| 
       1271 
     | 
    
         
            -
               
     | 
| 
       1272 
     | 
    
         
            -
               
     | 
| 
       1273 
     | 
    
         
            -
               
     | 
| 
      
 250 
     | 
    
         
            +
              "@open-wc/testing": "^4.0.0",
         
     | 
| 
      
 251 
     | 
    
         
            +
              "@storybook/addon-essentials": "^8.0.4",
         
     | 
| 
      
 252 
     | 
    
         
            +
              "@storybook/addon-links": "^8.0.4",
         
     | 
| 
      
 253 
     | 
    
         
            +
              "@storybook/blocks": "^8.0.4",
         
     | 
| 
      
 254 
     | 
    
         
            +
              "@storybook/web-components": "^8.0.4",
         
     | 
| 
      
 255 
     | 
    
         
            +
              "@storybook/web-components-vite": "^8.0.4",
         
     | 
| 
      
 256 
     | 
    
         
            +
              "@svgr/core": "^8.1.0",
         
     | 
| 
      
 257 
     | 
    
         
            +
              "@types/flat": "^5.0.5",
         
     | 
| 
      
 258 
     | 
    
         
            +
              "@types/mocha": "^10.0.6",
         
     | 
| 
      
 259 
     | 
    
         
            +
              "@vouchfor/eslint-config": "^1.0.1",
         
     | 
| 
      
 260 
     | 
    
         
            +
              "@vouchfor/prettier-config": "^1.0.1",
         
     | 
| 
      
 261 
     | 
    
         
            +
              "@vouchfor/video-utils": "0.0.0-experiment.cb158c1",
         
     | 
| 
      
 262 
     | 
    
         
            +
              "@web/dev-server-esbuild": "^1.0.2",
         
     | 
| 
      
 263 
     | 
    
         
            +
              "@web/test-runner": "^0.18.1",
         
     | 
| 
      
 264 
     | 
    
         
            +
              "@web/test-runner-browserstack": "^0.7.1",
         
     | 
| 
      
 265 
     | 
    
         
            +
              "@web/test-runner-mocha": "^0.9.0",
         
     | 
| 
      
 266 
     | 
    
         
            +
              "@web/test-runner-playwright": "^0.11.0",
         
     | 
| 
      
 267 
     | 
    
         
            +
              glob: "^10.3.10",
         
     | 
| 
      
 268 
     | 
    
         
            +
              "lint-staged": "^15.2.2",
         
     | 
| 
      
 269 
     | 
    
         
            +
              lit: "^3.1.2",
         
     | 
| 
      
 270 
     | 
    
         
            +
              lodash: "^4.17.21",
         
     | 
| 
       1274 
271 
     | 
    
         
             
              react: "^18.2.0",
         
     | 
| 
       1275 
272 
     | 
    
         
             
              "react-dom": "^18.2.0",
         
     | 
| 
       1276 
     | 
    
         
            -
               
     | 
| 
       1277 
     | 
    
         
            -
               
     | 
| 
       1278 
     | 
    
         
            -
               
     | 
| 
       1279 
     | 
    
         
            -
               
     | 
| 
       1280 
     | 
    
         
            -
               
     | 
| 
       1281 
     | 
    
         
            -
             
     | 
| 
       1282 
     | 
    
         
            -
               
     | 
| 
       1283 
     | 
    
         
            -
               
     | 
| 
       1284 
     | 
    
         
            -
               
     | 
| 
       1285 
     | 
    
         
            -
             
     | 
| 
       1286 
     | 
    
         
            -
             
     | 
| 
       1287 
     | 
    
         
            -
               
     | 
| 
       1288 
     | 
    
         
            -
               
     | 
| 
       1289 
     | 
    
         
            -
               
     | 
| 
       1290 
     | 
    
         
            -
               
     | 
| 
       1291 
     | 
    
         
            -
               
     | 
| 
       1292 
     | 
    
         
            -
               
     | 
| 
       1293 
     | 
    
         
            -
               
     | 
| 
      
 273 
     | 
    
         
            +
              "rollup-plugin-tla": "^0.0.2",
         
     | 
| 
      
 274 
     | 
    
         
            +
              sinon: "^17.0.1",
         
     | 
| 
      
 275 
     | 
    
         
            +
              storybook: "^8.0.4",
         
     | 
| 
      
 276 
     | 
    
         
            +
              svgson: "^5.3.1",
         
     | 
| 
      
 277 
     | 
    
         
            +
              typescript: "^5.4.3",
         
     | 
| 
      
 278 
     | 
    
         
            +
              vite: "^5.2.2",
         
     | 
| 
      
 279 
     | 
    
         
            +
              "vite-plugin-commonjs": "^0.10.1",
         
     | 
| 
      
 280 
     | 
    
         
            +
              "vite-plugin-dts": "^3.7.3",
         
     | 
| 
      
 281 
     | 
    
         
            +
              "web-component-analyzer": "^2.0.0"
         
     | 
| 
      
 282 
     | 
    
         
            +
            };
         
     | 
| 
      
 283 
     | 
    
         
            +
            const packageJson = {
         
     | 
| 
      
 284 
     | 
    
         
            +
              name,
         
     | 
| 
      
 285 
     | 
    
         
            +
              version,
         
     | 
| 
      
 286 
     | 
    
         
            +
              license,
         
     | 
| 
      
 287 
     | 
    
         
            +
              author,
         
     | 
| 
      
 288 
     | 
    
         
            +
              main,
         
     | 
| 
      
 289 
     | 
    
         
            +
              module,
         
     | 
| 
      
 290 
     | 
    
         
            +
              type,
         
     | 
| 
      
 291 
     | 
    
         
            +
              types,
         
     | 
| 
      
 292 
     | 
    
         
            +
              exports,
         
     | 
| 
      
 293 
     | 
    
         
            +
              files,
         
     | 
| 
      
 294 
     | 
    
         
            +
              publishConfig,
         
     | 
| 
      
 295 
     | 
    
         
            +
              engines,
         
     | 
| 
      
 296 
     | 
    
         
            +
              scripts,
         
     | 
| 
       1294 
297 
     | 
    
         
             
              "lint-staged": {
         
     | 
| 
       1295 
298 
     | 
    
         
             
                "**/*.{ts,tsx,js}": "eslint --fix --quiet",
         
     | 
| 
       1296 
299 
     | 
    
         
             
                "**/*.{md,json,yml}": "prettier --write"
         
     | 
| 
       1297 
300 
     | 
    
         
             
              },
         
     | 
| 
       1298 
     | 
    
         
            -
              dependencies 
     | 
| 
       1299 
     | 
    
         
            -
              peerDependencies 
     | 
| 
       1300 
     | 
    
         
            -
              devDependencies 
     | 
| 
       1301 
     | 
    
         
            -
            } 
     | 
| 
       1302 
     | 
    
         
            -
             
     | 
| 
       1303 
     | 
    
         
            -
               
     | 
| 
       1304 
     | 
    
         
            -
             
     | 
| 
       1305 
     | 
    
         
            -
             
     | 
| 
       1306 
     | 
    
         
            -
             
     | 
| 
       1307 
     | 
    
         
            -
             
     | 
| 
       1308 
     | 
    
         
            -
             
     | 
| 
       1309 
     | 
    
         
            -
             
     | 
| 
       1310 
     | 
    
         
            -
             
     | 
| 
       1311 
     | 
    
         
            -
             
     | 
| 
       1312 
     | 
    
         
            -
             
     | 
| 
       1313 
     | 
    
         
            -
             
     | 
| 
       1314 
     | 
    
         
            -
             
     | 
| 
      
 301 
     | 
    
         
            +
              dependencies,
         
     | 
| 
      
 302 
     | 
    
         
            +
              peerDependencies,
         
     | 
| 
      
 303 
     | 
    
         
            +
              devDependencies
         
     | 
| 
      
 304 
     | 
    
         
            +
            };
         
     | 
| 
      
 305 
     | 
    
         
            +
            function createVisitor(env) {
         
     | 
| 
      
 306 
     | 
    
         
            +
              const { publicApiUrl } = getEnvUrls(env);
         
     | 
| 
      
 307 
     | 
    
         
            +
              const visitorId = v4();
         
     | 
| 
      
 308 
     | 
    
         
            +
              navigator.sendBeacon(`${publicApiUrl}/api/visitor`, JSON.stringify({ visitorId }));
         
     | 
| 
      
 309 
     | 
    
         
            +
              return visitorId;
         
     | 
| 
      
 310 
     | 
    
         
            +
            }
         
     | 
| 
      
 311 
     | 
    
         
            +
            function getUids(env) {
         
     | 
| 
      
 312 
     | 
    
         
            +
              var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
         
     | 
| 
      
 313 
     | 
    
         
            +
              if (typeof window === "undefined") {
         
     | 
| 
      
 314 
     | 
    
         
            +
                return {
         
     | 
| 
      
 315 
     | 
    
         
            +
                  client: null,
         
     | 
| 
      
 316 
     | 
    
         
            +
                  tab: null,
         
     | 
| 
      
 317 
     | 
    
         
            +
                  request: v4()
         
     | 
| 
      
 318 
     | 
    
         
            +
                };
         
     | 
| 
      
 319 
     | 
    
         
            +
              }
         
     | 
| 
      
 320 
     | 
    
         
            +
              let visitorId = (_b = (_a = window.localStorage) == null ? void 0 : _a.getItem) == null ? void 0 : _b.call(_a, "vouch-uid-visitor");
         
     | 
| 
      
 321 
     | 
    
         
            +
              let clientId = (_d = (_c = window.localStorage) == null ? void 0 : _c.getItem) == null ? void 0 : _d.call(_c, "vouch-uid-client");
         
     | 
| 
      
 322 
     | 
    
         
            +
              let tabId = (_f = (_e = window.sessionStorage) == null ? void 0 : _e.getItem) == null ? void 0 : _f.call(_e, "vouch-uid-tab");
         
     | 
| 
      
 323 
     | 
    
         
            +
              const requestId = v4();
         
     | 
| 
      
 324 
     | 
    
         
            +
              if (!visitorId) {
         
     | 
| 
      
 325 
     | 
    
         
            +
                visitorId = createVisitor(env);
         
     | 
| 
      
 326 
     | 
    
         
            +
                (_h = (_g = window.localStorage) == null ? void 0 : _g.setItem) == null ? void 0 : _h.call(_g, "vouch-uid-visitor", visitorId);
         
     | 
| 
      
 327 
     | 
    
         
            +
              }
         
     | 
| 
      
 328 
     | 
    
         
            +
              if (!clientId) {
         
     | 
| 
      
 329 
     | 
    
         
            +
                clientId = v4();
         
     | 
| 
      
 330 
     | 
    
         
            +
                (_j = (_i = window.localStorage) == null ? void 0 : _i.setItem) == null ? void 0 : _j.call(_i, "vouch-uid-client", clientId);
         
     | 
| 
      
 331 
     | 
    
         
            +
              }
         
     | 
| 
      
 332 
     | 
    
         
            +
              if (!tabId) {
         
     | 
| 
      
 333 
     | 
    
         
            +
                tabId = v4();
         
     | 
| 
      
 334 
     | 
    
         
            +
                (_l = (_k = window.sessionStorage) == null ? void 0 : _k.setItem) == null ? void 0 : _l.call(_k, "vouch-uid-tab", tabId);
         
     | 
| 
      
 335 
     | 
    
         
            +
              }
         
     | 
| 
      
 336 
     | 
    
         
            +
              return {
         
     | 
| 
      
 337 
     | 
    
         
            +
                client: clientId,
         
     | 
| 
      
 338 
     | 
    
         
            +
                tab: tabId,
         
     | 
| 
      
 339 
     | 
    
         
            +
                request: requestId,
         
     | 
| 
      
 340 
     | 
    
         
            +
                visitor: visitorId
         
     | 
| 
      
 341 
     | 
    
         
            +
              };
         
     | 
| 
      
 342 
     | 
    
         
            +
            }
         
     | 
| 
      
 343 
     | 
    
         
            +
            function findVouchId(payload, vouch) {
         
     | 
| 
      
 344 
     | 
    
         
            +
              if (payload && "vouchId" in payload) {
         
     | 
| 
      
 345 
     | 
    
         
            +
                return payload.vouchId;
         
     | 
| 
      
 346 
     | 
    
         
            +
              }
         
     | 
| 
      
 347 
     | 
    
         
            +
              return (vouch == null ? void 0 : vouch.id) ?? null;
         
     | 
| 
      
 348 
     | 
    
         
            +
            }
         
     | 
| 
      
 349 
     | 
    
         
            +
            function getReportingMetadata(source = "embedded_player") {
         
     | 
| 
      
 350 
     | 
    
         
            +
              var _a, _b;
         
     | 
| 
      
 351 
     | 
    
         
            +
              const [country, region] = ((_b = (_a = Intl.DateTimeFormat().resolvedOptions().timeZone) == null ? void 0 : _a.split) == null ? void 0 : _b.call(_a, "/")) ?? [];
         
     | 
| 
      
 352 
     | 
    
         
            +
              const utmParams = {};
         
     | 
| 
      
 353 
     | 
    
         
            +
              [...new URLSearchParams(location.search).entries()].forEach(([key, value]) => {
         
     | 
| 
      
 354 
     | 
    
         
            +
                if (/utm/.test(key)) {
         
     | 
| 
      
 355 
     | 
    
         
            +
                  const param = key.toLowerCase().replace(/[-_][a-z0-9]/g, (group) => group.slice(-1).toUpperCase());
         
     | 
| 
      
 356 
     | 
    
         
            +
                  utmParams[param] = value;
         
     | 
| 
      
 357 
     | 
    
         
            +
                }
         
     | 
| 
      
 358 
     | 
    
         
            +
              });
         
     | 
| 
      
 359 
     | 
    
         
            +
              return {
         
     | 
| 
      
 360 
     | 
    
         
            +
                source,
         
     | 
| 
      
 361 
     | 
    
         
            +
                time: /* @__PURE__ */ new Date(),
         
     | 
| 
      
 362 
     | 
    
         
            +
                region,
         
     | 
| 
      
 363 
     | 
    
         
            +
                country,
         
     | 
| 
      
 364 
     | 
    
         
            +
                screenHeight: window.screen.height,
         
     | 
| 
      
 365 
     | 
    
         
            +
                screenWidth: window.screen.width,
         
     | 
| 
      
 366 
     | 
    
         
            +
                referrer: document.referrer,
         
     | 
| 
      
 367 
     | 
    
         
            +
                currentUrl: location.href,
         
     | 
| 
      
 368 
     | 
    
         
            +
                embedType: "media-player-embed",
         
     | 
| 
      
 369 
     | 
    
         
            +
                embedVersion: packageJson.version,
         
     | 
| 
      
 370 
     | 
    
         
            +
                templateVersion: TEMPLATE_VERSION,
         
     | 
| 
      
 371 
     | 
    
         
            +
                ...utmParams
         
     | 
| 
      
 372 
     | 
    
         
            +
              };
         
     | 
| 
      
 373 
     | 
    
         
            +
            }
         
     | 
| 
      
 374 
     | 
    
         
            +
            const MINIMUM_SEND_THRESHOLD = 1;
         
     | 
| 
      
 375 
     | 
    
         
            +
            class TrackingController {
         
     | 
| 
      
 376 
     | 
    
         
            +
              constructor(host) {
         
     | 
| 
      
 377 
     | 
    
         
            +
                this._batchedEvents = [];
         
     | 
| 
      
 378 
     | 
    
         
            +
                this._hasPlayed = false;
         
     | 
| 
      
 379 
     | 
    
         
            +
                this._hasLoaded = {};
         
     | 
| 
      
 380 
     | 
    
         
            +
                this._answersViewed = {};
         
     | 
| 
      
 381 
     | 
    
         
            +
                this._streamStartTime = {};
         
     | 
| 
      
 382 
     | 
    
         
            +
                this._streamLatestTime = {};
         
     | 
| 
      
 383 
     | 
    
         
            +
                this._currentlyPlayingVideo = null;
         
     | 
| 
      
 384 
     | 
    
         
            +
                this._createTrackingEvent = (event, payload) => {
         
     | 
| 
      
 385 
     | 
    
         
            +
                  const vouchId = findVouchId(payload, this.host.vouch);
         
     | 
| 
      
 386 
     | 
    
         
            +
                  if (!vouchId || this.host.disableTracking) {
         
     | 
| 
      
 387 
     | 
    
         
            +
                    return;
         
     | 
| 
      
 388 
     | 
    
         
            +
                  }
         
     | 
| 
      
 389 
     | 
    
         
            +
                  this._batchedEvents.push({
         
     | 
| 
      
 390 
     | 
    
         
            +
                    event,
         
     | 
| 
      
 391 
     | 
    
         
            +
                    payload: {
         
     | 
| 
      
 392 
     | 
    
         
            +
                      ...payload,
         
     | 
| 
      
 393 
     | 
    
         
            +
                      vouchId,
         
     | 
| 
      
 394 
     | 
    
         
            +
                      time: (/* @__PURE__ */ new Date()).toISOString()
         
     | 
| 
       1315 
395 
     | 
    
         
             
                    }
         
     | 
| 
       1316 
     | 
    
         
            -
                  }) 
     | 
| 
       1317 
     | 
    
         
            -
             
     | 
| 
       1318 
     | 
    
         
            -
             
     | 
| 
       1319 
     | 
    
         
            -
             
     | 
| 
       1320 
     | 
    
         
            -
                    country: e,
         
     | 
| 
       1321 
     | 
    
         
            -
                    screenHeight: window.screen.height,
         
     | 
| 
       1322 
     | 
    
         
            -
                    screenWidth: window.screen.width,
         
     | 
| 
       1323 
     | 
    
         
            -
                    referrer: document.referrer,
         
     | 
| 
       1324 
     | 
    
         
            -
                    currentUrl: location.href,
         
     | 
| 
       1325 
     | 
    
         
            -
                    ...s
         
     | 
| 
       1326 
     | 
    
         
            -
                  };
         
     | 
| 
       1327 
     | 
    
         
            -
                }, this._sendTrackingEvent = (e, i) => {
         
     | 
| 
       1328 
     | 
    
         
            -
                  const s = this._findVouchId(i);
         
     | 
| 
       1329 
     | 
    
         
            -
                  if (!s || this.host.disableTracking)
         
     | 
| 
      
 396 
     | 
    
         
            +
                  });
         
     | 
| 
      
 397 
     | 
    
         
            +
                };
         
     | 
| 
      
 398 
     | 
    
         
            +
                this._sendTrackingEvent = () => {
         
     | 
| 
      
 399 
     | 
    
         
            +
                  if (this._batchedEvents.length <= 0) {
         
     | 
| 
       1330 
400 
     | 
    
         
             
                    return;
         
     | 
| 
       1331 
     | 
    
         
            -
                   
     | 
| 
      
 401 
     | 
    
         
            +
                  }
         
     | 
| 
      
 402 
     | 
    
         
            +
                  const { publicApiUrl } = getEnvUrls(this.host.env);
         
     | 
| 
      
 403 
     | 
    
         
            +
                  const { client, tab, request, visitor } = getUids(this.host.env);
         
     | 
| 
       1332 
404 
     | 
    
         
             
                  navigator.sendBeacon(
         
     | 
| 
       1333 
     | 
    
         
            -
                    `${ 
     | 
| 
      
 405 
     | 
    
         
            +
                    `${publicApiUrl}/api/batchevents`,
         
     | 
| 
       1334 
406 
     | 
    
         
             
                    JSON.stringify({
         
     | 
| 
       1335 
     | 
    
         
            -
                      event: e,
         
     | 
| 
       1336 
407 
     | 
    
         
             
                      payload: {
         
     | 
| 
       1337 
     | 
    
         
            -
                         
     | 
| 
       1338 
     | 
    
         
            -
                        vouchId: s
         
     | 
| 
      
 408 
     | 
    
         
            +
                        events: this._batchedEvents
         
     | 
| 
       1339 
409 
     | 
    
         
             
                      },
         
     | 
| 
       1340 
410 
     | 
    
         
             
                      context: {
         
     | 
| 
       1341 
     | 
    
         
            -
                        "x-uid-client":  
     | 
| 
       1342 
     | 
    
         
            -
                        "x-uid-tab":  
     | 
| 
       1343 
     | 
    
         
            -
                        "x-uid-request":  
     | 
| 
       1344 
     | 
    
         
            -
                        "x-uid-visitor":  
     | 
| 
       1345 
     | 
    
         
            -
                        "x-reporting-metadata": this. 
     | 
| 
       1346 
     | 
    
         
            -
                        "x-embeds-version": Ai.version
         
     | 
| 
      
 411 
     | 
    
         
            +
                        "x-uid-client": client,
         
     | 
| 
      
 412 
     | 
    
         
            +
                        "x-uid-tab": tab,
         
     | 
| 
      
 413 
     | 
    
         
            +
                        "x-uid-request": request,
         
     | 
| 
      
 414 
     | 
    
         
            +
                        "x-uid-visitor": visitor,
         
     | 
| 
      
 415 
     | 
    
         
            +
                        "x-reporting-metadata": getReportingMetadata(this.host.trackingSource)
         
     | 
| 
       1347 
416 
     | 
    
         
             
                      }
         
     | 
| 
       1348 
417 
     | 
    
         
             
                    })
         
     | 
| 
       1349 
418 
     | 
    
         
             
                  );
         
     | 
| 
       1350 
     | 
    
         
            -
             
     | 
| 
      
 419 
     | 
    
         
            +
                  this._batchedEvents = [];
         
     | 
| 
      
 420 
     | 
    
         
            +
                };
         
     | 
| 
      
 421 
     | 
    
         
            +
                this._streamEnded = () => {
         
     | 
| 
       1351 
422 
     | 
    
         
             
                  if (this._currentlyPlayingVideo) {
         
     | 
| 
       1352 
     | 
    
         
            -
                    const { id 
     | 
| 
       1353 
     | 
    
         
            -
                    this._streamLatestTime[ 
     | 
| 
       1354 
     | 
    
         
            -
                       
     | 
| 
       1355 
     | 
    
         
            -
             
     | 
| 
       1356 
     | 
    
         
            -
             
     | 
| 
       1357 
     | 
    
         
            -
             
     | 
| 
      
 423 
     | 
    
         
            +
                    const { id, key } = this._currentlyPlayingVideo;
         
     | 
| 
      
 424 
     | 
    
         
            +
                    if (this._streamLatestTime[key] > this._streamStartTime[key] + MINIMUM_SEND_THRESHOLD) {
         
     | 
| 
      
 425 
     | 
    
         
            +
                      this._createTrackingEvent("VIDEO_STREAMED", {
         
     | 
| 
      
 426 
     | 
    
         
            +
                        answerId: id,
         
     | 
| 
      
 427 
     | 
    
         
            +
                        streamStart: this._streamStartTime[key],
         
     | 
| 
      
 428 
     | 
    
         
            +
                        streamEnd: this._streamLatestTime[key]
         
     | 
| 
      
 429 
     | 
    
         
            +
                      });
         
     | 
| 
      
 430 
     | 
    
         
            +
                    }
         
     | 
| 
      
 431 
     | 
    
         
            +
                    delete this._streamStartTime[key];
         
     | 
| 
      
 432 
     | 
    
         
            +
                    delete this._streamLatestTime[key];
         
     | 
| 
      
 433 
     | 
    
         
            +
                  }
         
     | 
| 
      
 434 
     | 
    
         
            +
                };
         
     | 
| 
      
 435 
     | 
    
         
            +
                this._handleVouchLoaded = ({ detail: vouchId }) => {
         
     | 
| 
      
 436 
     | 
    
         
            +
                  if (!vouchId) {
         
     | 
| 
      
 437 
     | 
    
         
            +
                    return;
         
     | 
| 
      
 438 
     | 
    
         
            +
                  }
         
     | 
| 
      
 439 
     | 
    
         
            +
                  if (!this._hasLoaded[vouchId]) {
         
     | 
| 
      
 440 
     | 
    
         
            +
                    this._createTrackingEvent("VOUCH_LOADED", { vouchId });
         
     | 
| 
      
 441 
     | 
    
         
            +
                    this._hasLoaded[vouchId] = true;
         
     | 
| 
      
 442 
     | 
    
         
            +
                  }
         
     | 
| 
      
 443 
     | 
    
         
            +
                };
         
     | 
| 
      
 444 
     | 
    
         
            +
                this._handlePlay = () => {
         
     | 
| 
      
 445 
     | 
    
         
            +
                  if (!this._hasPlayed) {
         
     | 
| 
      
 446 
     | 
    
         
            +
                    this._createTrackingEvent("VIDEO_PLAYED", {
         
     | 
| 
      
 447 
     | 
    
         
            +
                      streamStart: this.host.currentTime
         
     | 
| 
      
 448 
     | 
    
         
            +
                    });
         
     | 
| 
      
 449 
     | 
    
         
            +
                    this._hasPlayed = true;
         
     | 
| 
      
 450 
     | 
    
         
            +
                  }
         
     | 
| 
      
 451 
     | 
    
         
            +
                };
         
     | 
| 
      
 452 
     | 
    
         
            +
                this._handleVideoPlay = ({ detail: { id, key } }) => {
         
     | 
| 
      
 453 
     | 
    
         
            +
                  if (!this._answersViewed[key]) {
         
     | 
| 
      
 454 
     | 
    
         
            +
                    this._createTrackingEvent("VOUCH_RESPONSE_VIEWED", {
         
     | 
| 
      
 455 
     | 
    
         
            +
                      answerId: id
         
     | 
| 
      
 456 
     | 
    
         
            +
                    });
         
     | 
| 
      
 457 
     | 
    
         
            +
                    this._answersViewed[key] = true;
         
     | 
| 
      
 458 
     | 
    
         
            +
                  }
         
     | 
| 
      
 459 
     | 
    
         
            +
                };
         
     | 
| 
      
 460 
     | 
    
         
            +
                this._handleVideoTimeUpdate = ({ detail: { id, key, node } }) => {
         
     | 
| 
      
 461 
     | 
    
         
            +
                  var _a, _b;
         
     | 
| 
      
 462 
     | 
    
         
            +
                  if (
         
     | 
| 
      
 463 
     | 
    
         
            +
                    // We only want to count any time that the video is actually playing
         
     | 
| 
      
 464 
     | 
    
         
            +
                    !this.host.paused && // Only update the latest time if this event fires for the currently active video
         
     | 
| 
      
 465 
     | 
    
         
            +
                    id === ((_b = (_a = this.host.scene) == null ? void 0 : _a.video) == null ? void 0 : _b.id)
         
     | 
| 
      
 466 
     | 
    
         
            +
                  ) {
         
     | 
| 
      
 467 
     | 
    
         
            +
                    this._currentlyPlayingVideo = { id, key, node };
         
     | 
| 
      
 468 
     | 
    
         
            +
                    this._streamLatestTime[key] = node.currentTime;
         
     | 
| 
      
 469 
     | 
    
         
            +
                    if (!this._streamStartTime[key]) {
         
     | 
| 
      
 470 
     | 
    
         
            +
                      this._streamStartTime[key] = node.currentTime;
         
     | 
| 
      
 471 
     | 
    
         
            +
                      this._streamLatestTime[key] = node.currentTime;
         
     | 
| 
      
 472 
     | 
    
         
            +
                    }
         
     | 
| 
      
 473 
     | 
    
         
            +
                  }
         
     | 
| 
      
 474 
     | 
    
         
            +
                };
         
     | 
| 
      
 475 
     | 
    
         
            +
                this._handleVideoPause = ({ detail: { id, key } }) => {
         
     | 
| 
      
 476 
     | 
    
         
            +
                  if (this._streamLatestTime[key] > this._streamStartTime[key] + MINIMUM_SEND_THRESHOLD) {
         
     | 
| 
      
 477 
     | 
    
         
            +
                    this._createTrackingEvent("VIDEO_STREAMED", {
         
     | 
| 
      
 478 
     | 
    
         
            +
                      answerId: id,
         
     | 
| 
      
 479 
     | 
    
         
            +
                      streamStart: this._streamStartTime[key],
         
     | 
| 
      
 480 
     | 
    
         
            +
                      streamEnd: this._streamLatestTime[key]
         
     | 
| 
      
 481 
     | 
    
         
            +
                    });
         
     | 
| 
      
 482 
     | 
    
         
            +
                  }
         
     | 
| 
      
 483 
     | 
    
         
            +
                  delete this._streamStartTime[key];
         
     | 
| 
      
 484 
     | 
    
         
            +
                  delete this._streamLatestTime[key];
         
     | 
| 
      
 485 
     | 
    
         
            +
                };
         
     | 
| 
      
 486 
     | 
    
         
            +
                this._pageUnloading = () => {
         
     | 
| 
      
 487 
     | 
    
         
            +
                  this._streamEnded();
         
     | 
| 
      
 488 
     | 
    
         
            +
                  this._sendTrackingEvent();
         
     | 
| 
      
 489 
     | 
    
         
            +
                };
         
     | 
| 
      
 490 
     | 
    
         
            +
                this._handleVisibilityChange = () => {
         
     | 
| 
      
 491 
     | 
    
         
            +
                  if (document.visibilityState === "hidden") {
         
     | 
| 
      
 492 
     | 
    
         
            +
                    this._pageUnloading();
         
     | 
| 
       1358 
493 
     | 
    
         
             
                  }
         
     | 
| 
       1359 
     | 
    
         
            -
                } 
     | 
| 
       1360 
     | 
    
         
            -
             
     | 
| 
       1361 
     | 
    
         
            -
                }, this._handlePlay = () => {
         
     | 
| 
       1362 
     | 
    
         
            -
                  this._hasPlayed || (this._sendTrackingEvent("VIDEO_PLAYED", {
         
     | 
| 
       1363 
     | 
    
         
            -
                    streamStart: this.host.currentTime
         
     | 
| 
       1364 
     | 
    
         
            -
                  }), this._hasPlayed = !0);
         
     | 
| 
       1365 
     | 
    
         
            -
                }, this._handleVideoPlay = ({ detail: { id: e, key: i, node: s } }) => {
         
     | 
| 
       1366 
     | 
    
         
            -
                  this._answersViewed[i] || (this._sendTrackingEvent("VOUCH_RESPONSE_VIEWED", {
         
     | 
| 
       1367 
     | 
    
         
            -
                    answerId: e
         
     | 
| 
       1368 
     | 
    
         
            -
                  }), this._answersViewed[i] = !0), this._streamStartTime[i] || (this._streamStartTime[i] = s.currentTime, this._streamLatestTime[i] = s.currentTime);
         
     | 
| 
       1369 
     | 
    
         
            -
                }, this._handleVideoTimeUpdate = ({ detail: { id: e, key: i, node: s } }) => {
         
     | 
| 
       1370 
     | 
    
         
            -
                  var n, o;
         
     | 
| 
       1371 
     | 
    
         
            -
                  // We only want to count any time that the video is actually playing
         
     | 
| 
       1372 
     | 
    
         
            -
                  !this.host.paused && // Only update the latest time if this event fires for the currently active video
         
     | 
| 
       1373 
     | 
    
         
            -
                  e === ((o = (n = this.host.scene) == null ? void 0 : n.video) == null ? void 0 : o.id) && (this._currentlyPlayingVideo = { id: e, key: i, node: s }, this._streamLatestTime[i] = s.currentTime);
         
     | 
| 
       1374 
     | 
    
         
            -
                }, this._handleVideoPause = ({ detail: { id: e, key: i } }) => {
         
     | 
| 
       1375 
     | 
    
         
            -
                  this._streamLatestTime[i] > this._streamStartTime[i] + Dt && this._sendTrackingEvent("VIDEO_STREAMED", {
         
     | 
| 
       1376 
     | 
    
         
            -
                    answerId: e,
         
     | 
| 
       1377 
     | 
    
         
            -
                    streamStart: this._streamStartTime[i],
         
     | 
| 
       1378 
     | 
    
         
            -
                    streamEnd: this._streamLatestTime[i]
         
     | 
| 
       1379 
     | 
    
         
            -
                  }), delete this._streamStartTime[i], delete this._streamLatestTime[i];
         
     | 
| 
       1380 
     | 
    
         
            -
                }, this._pageUnloading = () => {
         
     | 
| 
       1381 
     | 
    
         
            -
                  this._streamEnded(), this.host.pause();
         
     | 
| 
       1382 
     | 
    
         
            -
                }, this._handleVisibilityChange = () => {
         
     | 
| 
       1383 
     | 
    
         
            -
                  document.visibilityState === "hidden" && this._pageUnloading();
         
     | 
| 
       1384 
     | 
    
         
            -
                }, this._handlePageHide = () => {
         
     | 
| 
      
 494 
     | 
    
         
            +
                };
         
     | 
| 
      
 495 
     | 
    
         
            +
                this._handlePageHide = () => {
         
     | 
| 
       1385 
496 
     | 
    
         
             
                  this._pageUnloading();
         
     | 
| 
       1386 
     | 
    
         
            -
                }, this.host = t, t.addController(this);
         
     | 
| 
       1387 
     | 
    
         
            -
              }
         
     | 
| 
       1388 
     | 
    
         
            -
              _findVouchId(t) {
         
     | 
| 
       1389 
     | 
    
         
            -
                return t && "vouchId" in t ? t.vouchId : this.host.vouch ? this.host.vouch.id : null;
         
     | 
| 
       1390 
     | 
    
         
            -
              }
         
     | 
| 
       1391 
     | 
    
         
            -
              _getUids() {
         
     | 
| 
       1392 
     | 
    
         
            -
                var n, o, h, a, d, c, l, p, u, g, F, $t;
         
     | 
| 
       1393 
     | 
    
         
            -
                if (typeof window > "u")
         
     | 
| 
       1394 
     | 
    
         
            -
                  return {
         
     | 
| 
       1395 
     | 
    
         
            -
                    client: null,
         
     | 
| 
       1396 
     | 
    
         
            -
                    tab: null,
         
     | 
| 
       1397 
     | 
    
         
            -
                    request: P()
         
     | 
| 
       1398 
     | 
    
         
            -
                  };
         
     | 
| 
       1399 
     | 
    
         
            -
                const t = this._visitorId || ((o = (n = window.localStorage) == null ? void 0 : n.getItem) == null ? void 0 : o.call(n, "vouch-uid-visitor")) || this._createVisitor(P()), e = this._clientId || ((a = (h = window.localStorage) == null ? void 0 : h.getItem) == null ? void 0 : a.call(h, "vouch-uid-client")) || P(), i = this._tabId || ((c = (d = window.sessionStorage) == null ? void 0 : d.getItem) == null ? void 0 : c.call(d, "vouch-uid-tab")) || P(), s = P();
         
     | 
| 
       1400 
     | 
    
         
            -
                return t !== this._visitorId && (this._visitorId = t, (p = (l = window.localStorage) == null ? void 0 : l.setItem) == null || p.call(l, "vouch-uid-visitor", t)), e !== this._clientId && (this._clientId = e, (g = (u = window.localStorage) == null ? void 0 : u.setItem) == null || g.call(u, "vouch-uid-client", e)), i !== this._tabId && (this._tabId = i, ($t = (F = window.sessionStorage) == null ? void 0 : F.setItem) == null || $t.call(F, "vouch-uid-tab", i)), {
         
     | 
| 
       1401 
     | 
    
         
            -
                  client: e,
         
     | 
| 
       1402 
     | 
    
         
            -
                  tab: i,
         
     | 
| 
       1403 
     | 
    
         
            -
                  request: s,
         
     | 
| 
       1404 
     | 
    
         
            -
                  visitor: t
         
     | 
| 
       1405 
497 
     | 
    
         
             
                };
         
     | 
| 
      
 498 
     | 
    
         
            +
                this.host = host;
         
     | 
| 
      
 499 
     | 
    
         
            +
                host.addController(this);
         
     | 
| 
       1406 
500 
     | 
    
         
             
              }
         
     | 
| 
       1407 
501 
     | 
    
         
             
              hostConnected() {
         
     | 
| 
       1408 
502 
     | 
    
         
             
                requestAnimationFrame(() => {
         
     | 
| 
       1409 
     | 
    
         
            -
                  var  
     | 
| 
       1410 
     | 
    
         
            -
                  "onvisibilitychange" in document 
     | 
| 
      
 503 
     | 
    
         
            +
                  var _a, _b, _c, _d;
         
     | 
| 
      
 504 
     | 
    
         
            +
                  if ("onvisibilitychange" in document) {
         
     | 
| 
      
 505 
     | 
    
         
            +
                    document.addEventListener("visibilitychange", this._handleVisibilityChange);
         
     | 
| 
      
 506 
     | 
    
         
            +
                  } else {
         
     | 
| 
      
 507 
     | 
    
         
            +
                    window.addEventListener("pagehide", this._handlePageHide);
         
     | 
| 
      
 508 
     | 
    
         
            +
                  }
         
     | 
| 
      
 509 
     | 
    
         
            +
                  this.host.addEventListener("vouch:loaded", this._handleVouchLoaded);
         
     | 
| 
      
 510 
     | 
    
         
            +
                  (_a = this.host.mediaPlayer) == null ? void 0 : _a.addEventListener("play", this._handlePlay);
         
     | 
| 
      
 511 
     | 
    
         
            +
                  (_b = this.host.mediaPlayer) == null ? void 0 : _b.addEventListener("video:play", this._handleVideoPlay);
         
     | 
| 
      
 512 
     | 
    
         
            +
                  (_c = this.host.mediaPlayer) == null ? void 0 : _c.addEventListener("video:pause", this._handleVideoPause);
         
     | 
| 
      
 513 
     | 
    
         
            +
                  (_d = this.host.mediaPlayer) == null ? void 0 : _d.addEventListener("video:timeupdate", this._handleVideoTimeUpdate);
         
     | 
| 
       1411 
514 
     | 
    
         
             
                });
         
     | 
| 
       1412 
515 
     | 
    
         
             
              }
         
     | 
| 
       1413 
516 
     | 
    
         
             
              hostDisconnected() {
         
     | 
| 
       1414 
     | 
    
         
            -
                var  
     | 
| 
       1415 
     | 
    
         
            -
                this. 
     | 
| 
      
 517 
     | 
    
         
            +
                var _a, _b, _c, _d;
         
     | 
| 
      
 518 
     | 
    
         
            +
                this._pageUnloading();
         
     | 
| 
      
 519 
     | 
    
         
            +
                if ("onvisibilitychange" in document) {
         
     | 
| 
      
 520 
     | 
    
         
            +
                  document.removeEventListener("visibilitychange", this._handleVisibilityChange);
         
     | 
| 
      
 521 
     | 
    
         
            +
                } else {
         
     | 
| 
      
 522 
     | 
    
         
            +
                  window.removeEventListener("pagehide", this._handlePageHide);
         
     | 
| 
      
 523 
     | 
    
         
            +
                }
         
     | 
| 
      
 524 
     | 
    
         
            +
                this.host.removeEventListener("vouch:loaded", this._handleVouchLoaded);
         
     | 
| 
      
 525 
     | 
    
         
            +
                (_a = this.host.mediaPlayer) == null ? void 0 : _a.removeEventListener("play", this._handlePlay);
         
     | 
| 
      
 526 
     | 
    
         
            +
                (_b = this.host.mediaPlayer) == null ? void 0 : _b.removeEventListener("video:play", this._handleVideoPlay);
         
     | 
| 
      
 527 
     | 
    
         
            +
                (_c = this.host.mediaPlayer) == null ? void 0 : _c.removeEventListener("video:pause", this._handleVideoPause);
         
     | 
| 
      
 528 
     | 
    
         
            +
                (_d = this.host.mediaPlayer) == null ? void 0 : _d.removeEventListener("video:timeupdate", this._handleVideoTimeUpdate);
         
     | 
| 
       1416 
529 
     | 
    
         
             
              }
         
     | 
| 
       1417 
530 
     | 
    
         
             
            }
         
     | 
| 
       1418 
     | 
    
         
            -
            var  
     | 
| 
       1419 
     | 
    
         
            -
             
     | 
| 
       1420 
     | 
    
         
            -
             
     | 
| 
       1421 
     | 
    
         
            -
               
     | 
| 
      
 531 
     | 
    
         
            +
            var __defProp$3 = Object.defineProperty;
         
     | 
| 
      
 532 
     | 
    
         
            +
            var __getOwnPropDesc$3 = Object.getOwnPropertyDescriptor;
         
     | 
| 
      
 533 
     | 
    
         
            +
            var __decorateClass$3 = (decorators, target, key, kind) => {
         
     | 
| 
      
 534 
     | 
    
         
            +
              var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$3(target, key) : target;
         
     | 
| 
      
 535 
     | 
    
         
            +
              for (var i = decorators.length - 1, decorator; i >= 0; i--)
         
     | 
| 
      
 536 
     | 
    
         
            +
                if (decorator = decorators[i])
         
     | 
| 
      
 537 
     | 
    
         
            +
                  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
         
     | 
| 
      
 538 
     | 
    
         
            +
              if (kind && result)
         
     | 
| 
      
 539 
     | 
    
         
            +
                __defProp$3(target, key, result);
         
     | 
| 
      
 540 
     | 
    
         
            +
              return result;
         
     | 
| 
       1422 
541 
     | 
    
         
             
            };
         
     | 
| 
       1423 
     | 
    
         
            -
            let  
     | 
| 
      
 542 
     | 
    
         
            +
            let PlayerEmbed = class extends LitElement {
         
     | 
| 
       1424 
543 
     | 
    
         
             
              constructor() {
         
     | 
| 
       1425 
     | 
    
         
            -
                super(...arguments) 
     | 
| 
      
 544 
     | 
    
         
            +
                super(...arguments);
         
     | 
| 
      
 545 
     | 
    
         
            +
                this.env = "prod";
         
     | 
| 
      
 546 
     | 
    
         
            +
                this.apiKey = "";
         
     | 
| 
      
 547 
     | 
    
         
            +
                this.disableTracking = false;
         
     | 
| 
      
 548 
     | 
    
         
            +
                this.trackingSource = "embedded_player";
         
     | 
| 
      
 549 
     | 
    
         
            +
                this.preload = "auto";
         
     | 
| 
      
 550 
     | 
    
         
            +
                this.autoplay = false;
         
     | 
| 
      
 551 
     | 
    
         
            +
                this.aspectRatio = 0;
         
     | 
| 
      
 552 
     | 
    
         
            +
                this.eventController = new EventForwardController(this, [
         
     | 
| 
       1426 
553 
     | 
    
         
             
                  "durationchange",
         
     | 
| 
       1427 
554 
     | 
    
         
             
                  "ended",
         
     | 
| 
       1428 
555 
     | 
    
         
             
                  "error",
         
     | 
| 
         @@ -1433,10 +560,12 @@ let $ = class extends j { 
     | 
|
| 
       1433 
560 
     | 
    
         
             
                  "playing",
         
     | 
| 
       1434 
561 
     | 
    
         
             
                  "ratechange",
         
     | 
| 
       1435 
562 
     | 
    
         
             
                  "scenechange",
         
     | 
| 
      
 563 
     | 
    
         
            +
                  "scenesupdate",
         
     | 
| 
       1436 
564 
     | 
    
         
             
                  "seeking",
         
     | 
| 
       1437 
565 
     | 
    
         
             
                  "seeked",
         
     | 
| 
       1438 
566 
     | 
    
         
             
                  "timeupdate",
         
     | 
| 
       1439 
567 
     | 
    
         
             
                  "volumechange",
         
     | 
| 
      
 568 
     | 
    
         
            +
                  "processing",
         
     | 
| 
       1440 
569 
     | 
    
         
             
                  "waiting",
         
     | 
| 
       1441 
570 
     | 
    
         
             
                  "video:loadeddata",
         
     | 
| 
       1442 
571 
     | 
    
         
             
                  "video:seeking",
         
     | 
| 
         @@ -1448,149 +577,579 @@ let $ = class extends j { 
     | 
|
| 
       1448 
577 
     | 
    
         
             
                  "video:timeupdate",
         
     | 
| 
       1449 
578 
     | 
    
         
             
                  "video:ended",
         
     | 
| 
       1450 
579 
     | 
    
         
             
                  "video:error"
         
     | 
| 
       1451 
     | 
    
         
            -
                ]) 
     | 
| 
      
 580 
     | 
    
         
            +
                ]);
         
     | 
| 
      
 581 
     | 
    
         
            +
                this._fetcherController = new FetcherController(this);
         
     | 
| 
      
 582 
     | 
    
         
            +
                this._trackingController = new TrackingController(this);
         
     | 
| 
      
 583 
     | 
    
         
            +
                this._mediaPlayerRef = createRef();
         
     | 
| 
       1452 
584 
     | 
    
         
             
              }
         
     | 
| 
       1453 
585 
     | 
    
         
             
              get fetching() {
         
     | 
| 
       1454 
586 
     | 
    
         
             
                return this._fetcherController.fetching;
         
     | 
| 
       1455 
587 
     | 
    
         
             
              }
         
     | 
| 
       1456 
588 
     | 
    
         
             
              get waiting() {
         
     | 
| 
       1457 
     | 
    
         
            -
                var  
     | 
| 
       1458 
     | 
    
         
            -
                return ( 
     | 
| 
      
 589 
     | 
    
         
            +
                var _a;
         
     | 
| 
      
 590 
     | 
    
         
            +
                return (_a = this._mediaPlayerRef.value) == null ? void 0 : _a.waiting;
         
     | 
| 
      
 591 
     | 
    
         
            +
              }
         
     | 
| 
      
 592 
     | 
    
         
            +
              get initialised() {
         
     | 
| 
      
 593 
     | 
    
         
            +
                var _a;
         
     | 
| 
      
 594 
     | 
    
         
            +
                return (_a = this._mediaPlayerRef.value) == null ? void 0 : _a.initialised;
         
     | 
| 
       1459 
595 
     | 
    
         
             
              }
         
     | 
| 
       1460 
596 
     | 
    
         
             
              get seeking() {
         
     | 
| 
       1461 
     | 
    
         
            -
                var  
     | 
| 
       1462 
     | 
    
         
            -
                return ( 
     | 
| 
      
 597 
     | 
    
         
            +
                var _a;
         
     | 
| 
      
 598 
     | 
    
         
            +
                return (_a = this._mediaPlayerRef.value) == null ? void 0 : _a.seeking;
         
     | 
| 
       1463 
599 
     | 
    
         
             
              }
         
     | 
| 
       1464 
600 
     | 
    
         
             
              get paused() {
         
     | 
| 
       1465 
     | 
    
         
            -
                var  
     | 
| 
       1466 
     | 
    
         
            -
                return ( 
     | 
| 
      
 601 
     | 
    
         
            +
                var _a;
         
     | 
| 
      
 602 
     | 
    
         
            +
                return (_a = this._mediaPlayerRef.value) == null ? void 0 : _a.paused;
         
     | 
| 
       1467 
603 
     | 
    
         
             
              }
         
     | 
| 
       1468 
604 
     | 
    
         
             
              get captions() {
         
     | 
| 
       1469 
     | 
    
         
            -
                var  
     | 
| 
       1470 
     | 
    
         
            -
                return ( 
     | 
| 
      
 605 
     | 
    
         
            +
                var _a;
         
     | 
| 
      
 606 
     | 
    
         
            +
                return (_a = this._mediaPlayerRef.value) == null ? void 0 : _a.captions;
         
     | 
| 
       1471 
607 
     | 
    
         
             
              }
         
     | 
| 
       1472 
608 
     | 
    
         
             
              get fullscreen() {
         
     | 
| 
       1473 
     | 
    
         
            -
                var  
     | 
| 
       1474 
     | 
    
         
            -
                return ( 
     | 
| 
      
 609 
     | 
    
         
            +
                var _a;
         
     | 
| 
      
 610 
     | 
    
         
            +
                return (_a = this._mediaPlayerRef.value) == null ? void 0 : _a.fullscreen;
         
     | 
| 
       1475 
611 
     | 
    
         
             
              }
         
     | 
| 
       1476 
612 
     | 
    
         
             
              get duration() {
         
     | 
| 
       1477 
     | 
    
         
            -
                var  
     | 
| 
       1478 
     | 
    
         
            -
                return ( 
     | 
| 
      
 613 
     | 
    
         
            +
                var _a;
         
     | 
| 
      
 614 
     | 
    
         
            +
                return (_a = this._mediaPlayerRef.value) == null ? void 0 : _a.duration;
         
     | 
| 
       1479 
615 
     | 
    
         
             
              }
         
     | 
| 
       1480 
     | 
    
         
            -
              set currentTime( 
     | 
| 
       1481 
     | 
    
         
            -
                 
     | 
| 
      
 616 
     | 
    
         
            +
              set currentTime(value) {
         
     | 
| 
      
 617 
     | 
    
         
            +
                if (this._mediaPlayerRef.value) {
         
     | 
| 
      
 618 
     | 
    
         
            +
                  this._mediaPlayerRef.value.currentTime = value;
         
     | 
| 
      
 619 
     | 
    
         
            +
                }
         
     | 
| 
       1482 
620 
     | 
    
         
             
              }
         
     | 
| 
       1483 
621 
     | 
    
         
             
              get currentTime() {
         
     | 
| 
       1484 
     | 
    
         
            -
                var  
     | 
| 
       1485 
     | 
    
         
            -
                return (( 
     | 
| 
      
 622 
     | 
    
         
            +
                var _a;
         
     | 
| 
      
 623 
     | 
    
         
            +
                return ((_a = this._mediaPlayerRef.value) == null ? void 0 : _a.currentTime) ?? 0;
         
     | 
| 
       1486 
624 
     | 
    
         
             
              }
         
     | 
| 
       1487 
     | 
    
         
            -
              set playbackRate( 
     | 
| 
       1488 
     | 
    
         
            -
                 
     | 
| 
      
 625 
     | 
    
         
            +
              set playbackRate(value) {
         
     | 
| 
      
 626 
     | 
    
         
            +
                if (this._mediaPlayerRef.value) {
         
     | 
| 
      
 627 
     | 
    
         
            +
                  this._mediaPlayerRef.value.playbackRate = value;
         
     | 
| 
      
 628 
     | 
    
         
            +
                }
         
     | 
| 
       1489 
629 
     | 
    
         
             
              }
         
     | 
| 
       1490 
630 
     | 
    
         
             
              get playbackRate() {
         
     | 
| 
       1491 
     | 
    
         
            -
                var  
     | 
| 
       1492 
     | 
    
         
            -
                return (( 
     | 
| 
      
 631 
     | 
    
         
            +
                var _a;
         
     | 
| 
      
 632 
     | 
    
         
            +
                return ((_a = this._mediaPlayerRef.value) == null ? void 0 : _a.playbackRate) ?? 1;
         
     | 
| 
       1493 
633 
     | 
    
         
             
              }
         
     | 
| 
       1494 
     | 
    
         
            -
              set volume( 
     | 
| 
       1495 
     | 
    
         
            -
                 
     | 
| 
      
 634 
     | 
    
         
            +
              set volume(value) {
         
     | 
| 
      
 635 
     | 
    
         
            +
                if (this._mediaPlayerRef.value) {
         
     | 
| 
      
 636 
     | 
    
         
            +
                  this._mediaPlayerRef.value.volume = value;
         
     | 
| 
      
 637 
     | 
    
         
            +
                }
         
     | 
| 
       1496 
638 
     | 
    
         
             
              }
         
     | 
| 
       1497 
639 
     | 
    
         
             
              get volume() {
         
     | 
| 
       1498 
     | 
    
         
            -
                var  
     | 
| 
       1499 
     | 
    
         
            -
                return (( 
     | 
| 
      
 640 
     | 
    
         
            +
                var _a;
         
     | 
| 
      
 641 
     | 
    
         
            +
                return ((_a = this._mediaPlayerRef.value) == null ? void 0 : _a.volume) ?? 1;
         
     | 
| 
       1500 
642 
     | 
    
         
             
              }
         
     | 
| 
       1501 
     | 
    
         
            -
              set muted( 
     | 
| 
       1502 
     | 
    
         
            -
                 
     | 
| 
      
 643 
     | 
    
         
            +
              set muted(value) {
         
     | 
| 
      
 644 
     | 
    
         
            +
                if (this._mediaPlayerRef.value) {
         
     | 
| 
      
 645 
     | 
    
         
            +
                  this._mediaPlayerRef.value.muted = value;
         
     | 
| 
      
 646 
     | 
    
         
            +
                }
         
     | 
| 
       1503 
647 
     | 
    
         
             
              }
         
     | 
| 
       1504 
648 
     | 
    
         
             
              get muted() {
         
     | 
| 
       1505 
     | 
    
         
            -
                var  
     | 
| 
       1506 
     | 
    
         
            -
                return (( 
     | 
| 
      
 649 
     | 
    
         
            +
                var _a;
         
     | 
| 
      
 650 
     | 
    
         
            +
                return ((_a = this._mediaPlayerRef.value) == null ? void 0 : _a.muted) ?? false;
         
     | 
| 
       1507 
651 
     | 
    
         
             
              }
         
     | 
| 
       1508 
652 
     | 
    
         
             
              get scene() {
         
     | 
| 
       1509 
     | 
    
         
            -
                var  
     | 
| 
       1510 
     | 
    
         
            -
                return (( 
     | 
| 
      
 653 
     | 
    
         
            +
                var _a;
         
     | 
| 
      
 654 
     | 
    
         
            +
                return ((_a = this._mediaPlayerRef.value) == null ? void 0 : _a.scene) ?? null;
         
     | 
| 
       1511 
655 
     | 
    
         
             
              }
         
     | 
| 
       1512 
656 
     | 
    
         
             
              get scenes() {
         
     | 
| 
       1513 
     | 
    
         
            -
                var  
     | 
| 
       1514 
     | 
    
         
            -
                return (( 
     | 
| 
      
 657 
     | 
    
         
            +
                var _a;
         
     | 
| 
      
 658 
     | 
    
         
            +
                return ((_a = this._mediaPlayerRef.value) == null ? void 0 : _a.scenes) ?? [];
         
     | 
| 
      
 659 
     | 
    
         
            +
              }
         
     | 
| 
      
 660 
     | 
    
         
            +
              get sceneConfig() {
         
     | 
| 
      
 661 
     | 
    
         
            +
                var _a;
         
     | 
| 
      
 662 
     | 
    
         
            +
                return ((_a = this._mediaPlayerRef.value) == null ? void 0 : _a.sceneConfig) ?? null;
         
     | 
| 
       1515 
663 
     | 
    
         
             
              }
         
     | 
| 
       1516 
664 
     | 
    
         
             
              get videoState() {
         
     | 
| 
       1517 
     | 
    
         
            -
                var  
     | 
| 
       1518 
     | 
    
         
            -
                return ( 
     | 
| 
      
 665 
     | 
    
         
            +
                var _a;
         
     | 
| 
      
 666 
     | 
    
         
            +
                return (_a = this._mediaPlayerRef.value) == null ? void 0 : _a.videoState;
         
     | 
| 
       1519 
667 
     | 
    
         
             
              }
         
     | 
| 
       1520 
668 
     | 
    
         
             
              get mediaPlayer() {
         
     | 
| 
       1521 
669 
     | 
    
         
             
                return this._mediaPlayerRef.value;
         
     | 
| 
       1522 
670 
     | 
    
         
             
              }
         
     | 
| 
       1523 
671 
     | 
    
         
             
              play() {
         
     | 
| 
       1524 
     | 
    
         
            -
                var  
     | 
| 
       1525 
     | 
    
         
            -
                ( 
     | 
| 
      
 672 
     | 
    
         
            +
                var _a;
         
     | 
| 
      
 673 
     | 
    
         
            +
                (_a = this._mediaPlayerRef.value) == null ? void 0 : _a.play();
         
     | 
| 
       1526 
674 
     | 
    
         
             
              }
         
     | 
| 
       1527 
675 
     | 
    
         
             
              pause() {
         
     | 
| 
       1528 
     | 
    
         
            -
                var  
     | 
| 
       1529 
     | 
    
         
            -
                ( 
     | 
| 
      
 676 
     | 
    
         
            +
                var _a;
         
     | 
| 
      
 677 
     | 
    
         
            +
                (_a = this._mediaPlayerRef.value) == null ? void 0 : _a.pause();
         
     | 
| 
      
 678 
     | 
    
         
            +
              }
         
     | 
| 
      
 679 
     | 
    
         
            +
              reset(time = 0, play = false) {
         
     | 
| 
      
 680 
     | 
    
         
            +
                var _a;
         
     | 
| 
      
 681 
     | 
    
         
            +
                (_a = this._mediaPlayerRef.value) == null ? void 0 : _a.reset(time, play);
         
     | 
| 
      
 682 
     | 
    
         
            +
              }
         
     | 
| 
      
 683 
     | 
    
         
            +
              setScene(index) {
         
     | 
| 
      
 684 
     | 
    
         
            +
                var _a;
         
     | 
| 
      
 685 
     | 
    
         
            +
                (_a = this._mediaPlayerRef.value) == null ? void 0 : _a.setScene(index);
         
     | 
| 
      
 686 
     | 
    
         
            +
              }
         
     | 
| 
      
 687 
     | 
    
         
            +
              _renderStyles() {
         
     | 
| 
      
 688 
     | 
    
         
            +
                if (!this.aspectRatio) {
         
     | 
| 
      
 689 
     | 
    
         
            +
                  return html`
         
     | 
| 
      
 690 
     | 
    
         
            +
                    <style>
         
     | 
| 
      
 691 
     | 
    
         
            +
                      :host {
         
     | 
| 
      
 692 
     | 
    
         
            +
                        width: 100%;
         
     | 
| 
      
 693 
     | 
    
         
            +
                        height: 100%;
         
     | 
| 
      
 694 
     | 
    
         
            +
                      }
         
     | 
| 
      
 695 
     | 
    
         
            +
                    </style>
         
     | 
| 
      
 696 
     | 
    
         
            +
                  `;
         
     | 
| 
      
 697 
     | 
    
         
            +
                }
         
     | 
| 
      
 698 
     | 
    
         
            +
                if (typeof this.aspectRatio === "number") {
         
     | 
| 
      
 699 
     | 
    
         
            +
                  return html`
         
     | 
| 
      
 700 
     | 
    
         
            +
                    <style>
         
     | 
| 
      
 701 
     | 
    
         
            +
                      :host {
         
     | 
| 
      
 702 
     | 
    
         
            +
                        aspect-ratio: ${this.aspectRatio};
         
     | 
| 
      
 703 
     | 
    
         
            +
                      }
         
     | 
| 
      
 704 
     | 
    
         
            +
                    </style>
         
     | 
| 
      
 705 
     | 
    
         
            +
                  `;
         
     | 
| 
      
 706 
     | 
    
         
            +
                }
         
     | 
| 
      
 707 
     | 
    
         
            +
                return null;
         
     | 
| 
       1530 
708 
     | 
    
         
             
              }
         
     | 
| 
       1531 
     | 
    
         
            -
               
     | 
| 
       1532 
     | 
    
         
            -
                 
     | 
| 
       1533 
     | 
    
         
            -
             
     | 
| 
      
 709 
     | 
    
         
            +
              willUpdate(changedProperties) {
         
     | 
| 
      
 710 
     | 
    
         
            +
                if (changedProperties.has("vouchId") && this.vouchId !== changedProperties.get("vouchId")) {
         
     | 
| 
      
 711 
     | 
    
         
            +
                  this.reset(0, false);
         
     | 
| 
      
 712 
     | 
    
         
            +
                }
         
     | 
| 
       1534 
713 
     | 
    
         
             
              }
         
     | 
| 
       1535 
714 
     | 
    
         
             
              render() {
         
     | 
| 
       1536 
     | 
    
         
            -
                return  
     | 
| 
       1537 
     | 
    
         
            -
                   
     | 
| 
       1538 
     | 
    
         
            -
             
     | 
| 
      
 715 
     | 
    
         
            +
                return html`
         
     | 
| 
      
 716 
     | 
    
         
            +
                  ${this._renderStyles()}
         
     | 
| 
      
 717 
     | 
    
         
            +
                  <vmp-media-player
         
     | 
| 
      
 718 
     | 
    
         
            +
                    ${ref(this._mediaPlayerRef)}
         
     | 
| 
       1539 
719 
     | 
    
         
             
                    ${this.eventController.register()}
         
     | 
| 
       1540 
720 
     | 
    
         
             
                    ?autoplay=${this.autoplay}
         
     | 
| 
       1541 
721 
     | 
    
         
             
                    ?loading=${this.fetching}
         
     | 
| 
       1542 
722 
     | 
    
         
             
                    .data=${this.vouch}
         
     | 
| 
       1543 
723 
     | 
    
         
             
                    .template=${this.template}
         
     | 
| 
       1544 
     | 
    
         
            -
                    aspectRatio=${ 
     | 
| 
       1545 
     | 
    
         
            -
                    preload=${ 
     | 
| 
      
 724 
     | 
    
         
            +
                    aspectRatio=${ifDefined(this.aspectRatio)}
         
     | 
| 
      
 725 
     | 
    
         
            +
                    preload=${ifDefined(this.preload)}
         
     | 
| 
      
 726 
     | 
    
         
            +
                    language=${ifDefined(this.language)}
         
     | 
| 
      
 727 
     | 
    
         
            +
                    .controls=${this.controls}
         
     | 
| 
      
 728 
     | 
    
         
            +
                  ></vmp-media-player>
         
     | 
| 
      
 729 
     | 
    
         
            +
                `;
         
     | 
| 
      
 730 
     | 
    
         
            +
              }
         
     | 
| 
      
 731 
     | 
    
         
            +
            };
         
     | 
| 
      
 732 
     | 
    
         
            +
            PlayerEmbed.styles = [
         
     | 
| 
      
 733 
     | 
    
         
            +
              css`
         
     | 
| 
      
 734 
     | 
    
         
            +
                  :host {
         
     | 
| 
      
 735 
     | 
    
         
            +
                    display: flex;
         
     | 
| 
      
 736 
     | 
    
         
            +
                  }
         
     | 
| 
      
 737 
     | 
    
         
            +
                `
         
     | 
| 
      
 738 
     | 
    
         
            +
            ];
         
     | 
| 
      
 739 
     | 
    
         
            +
            __decorateClass$3([
         
     | 
| 
      
 740 
     | 
    
         
            +
              property({ type: Object })
         
     | 
| 
      
 741 
     | 
    
         
            +
            ], PlayerEmbed.prototype, "data", 2);
         
     | 
| 
      
 742 
     | 
    
         
            +
            __decorateClass$3([
         
     | 
| 
      
 743 
     | 
    
         
            +
              property({ type: String })
         
     | 
| 
      
 744 
     | 
    
         
            +
            ], PlayerEmbed.prototype, "vouchId", 2);
         
     | 
| 
      
 745 
     | 
    
         
            +
            __decorateClass$3([
         
     | 
| 
      
 746 
     | 
    
         
            +
              property({ type: String })
         
     | 
| 
      
 747 
     | 
    
         
            +
            ], PlayerEmbed.prototype, "templateId", 2);
         
     | 
| 
      
 748 
     | 
    
         
            +
            __decorateClass$3([
         
     | 
| 
      
 749 
     | 
    
         
            +
              property({ type: Array })
         
     | 
| 
      
 750 
     | 
    
         
            +
            ], PlayerEmbed.prototype, "questions", 2);
         
     | 
| 
      
 751 
     | 
    
         
            +
            __decorateClass$3([
         
     | 
| 
      
 752 
     | 
    
         
            +
              property({ type: String })
         
     | 
| 
      
 753 
     | 
    
         
            +
            ], PlayerEmbed.prototype, "env", 2);
         
     | 
| 
      
 754 
     | 
    
         
            +
            __decorateClass$3([
         
     | 
| 
      
 755 
     | 
    
         
            +
              property({ type: String })
         
     | 
| 
      
 756 
     | 
    
         
            +
            ], PlayerEmbed.prototype, "apiKey", 2);
         
     | 
| 
      
 757 
     | 
    
         
            +
            __decorateClass$3([
         
     | 
| 
      
 758 
     | 
    
         
            +
              property({ type: Boolean })
         
     | 
| 
      
 759 
     | 
    
         
            +
            ], PlayerEmbed.prototype, "disableTracking", 2);
         
     | 
| 
      
 760 
     | 
    
         
            +
            __decorateClass$3([
         
     | 
| 
      
 761 
     | 
    
         
            +
              property({ type: String })
         
     | 
| 
      
 762 
     | 
    
         
            +
            ], PlayerEmbed.prototype, "trackingSource", 2);
         
     | 
| 
      
 763 
     | 
    
         
            +
            __decorateClass$3([
         
     | 
| 
      
 764 
     | 
    
         
            +
              property({ type: Array })
         
     | 
| 
      
 765 
     | 
    
         
            +
            ], PlayerEmbed.prototype, "controls", 2);
         
     | 
| 
      
 766 
     | 
    
         
            +
            __decorateClass$3([
         
     | 
| 
      
 767 
     | 
    
         
            +
              property({ type: String })
         
     | 
| 
      
 768 
     | 
    
         
            +
            ], PlayerEmbed.prototype, "preload", 2);
         
     | 
| 
      
 769 
     | 
    
         
            +
            __decorateClass$3([
         
     | 
| 
      
 770 
     | 
    
         
            +
              property({ type: Boolean })
         
     | 
| 
      
 771 
     | 
    
         
            +
            ], PlayerEmbed.prototype, "autoplay", 2);
         
     | 
| 
      
 772 
     | 
    
         
            +
            __decorateClass$3([
         
     | 
| 
      
 773 
     | 
    
         
            +
              property({ type: Number })
         
     | 
| 
      
 774 
     | 
    
         
            +
            ], PlayerEmbed.prototype, "aspectRatio", 2);
         
     | 
| 
      
 775 
     | 
    
         
            +
            __decorateClass$3([
         
     | 
| 
      
 776 
     | 
    
         
            +
              property({ type: String })
         
     | 
| 
      
 777 
     | 
    
         
            +
            ], PlayerEmbed.prototype, "language", 2);
         
     | 
| 
      
 778 
     | 
    
         
            +
            __decorateClass$3([
         
     | 
| 
      
 779 
     | 
    
         
            +
              state()
         
     | 
| 
      
 780 
     | 
    
         
            +
            ], PlayerEmbed.prototype, "vouch", 2);
         
     | 
| 
      
 781 
     | 
    
         
            +
            __decorateClass$3([
         
     | 
| 
      
 782 
     | 
    
         
            +
              state()
         
     | 
| 
      
 783 
     | 
    
         
            +
            ], PlayerEmbed.prototype, "template", 2);
         
     | 
| 
      
 784 
     | 
    
         
            +
            PlayerEmbed = __decorateClass$3([
         
     | 
| 
      
 785 
     | 
    
         
            +
              customElement("vouch-embed-player")
         
     | 
| 
      
 786 
     | 
    
         
            +
            ], PlayerEmbed);
         
     | 
| 
      
 787 
     | 
    
         
            +
            var __defProp$2 = Object.defineProperty;
         
     | 
| 
      
 788 
     | 
    
         
            +
            var __getOwnPropDesc$2 = Object.getOwnPropertyDescriptor;
         
     | 
| 
      
 789 
     | 
    
         
            +
            var __decorateClass$2 = (decorators, target, key, kind) => {
         
     | 
| 
      
 790 
     | 
    
         
            +
              var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$2(target, key) : target;
         
     | 
| 
      
 791 
     | 
    
         
            +
              for (var i = decorators.length - 1, decorator; i >= 0; i--)
         
     | 
| 
      
 792 
     | 
    
         
            +
                if (decorator = decorators[i])
         
     | 
| 
      
 793 
     | 
    
         
            +
                  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
         
     | 
| 
      
 794 
     | 
    
         
            +
              if (kind && result)
         
     | 
| 
      
 795 
     | 
    
         
            +
                __defProp$2(target, key, result);
         
     | 
| 
      
 796 
     | 
    
         
            +
              return result;
         
     | 
| 
      
 797 
     | 
    
         
            +
            };
         
     | 
| 
      
 798 
     | 
    
         
            +
            let DialogOverlay = class extends LitElement {
         
     | 
| 
      
 799 
     | 
    
         
            +
              constructor() {
         
     | 
| 
      
 800 
     | 
    
         
            +
                super(...arguments);
         
     | 
| 
      
 801 
     | 
    
         
            +
                this.open = false;
         
     | 
| 
      
 802 
     | 
    
         
            +
                this.aspectRatio = 0;
         
     | 
| 
      
 803 
     | 
    
         
            +
              }
         
     | 
| 
      
 804 
     | 
    
         
            +
              render() {
         
     | 
| 
      
 805 
     | 
    
         
            +
                return html`
         
     | 
| 
      
 806 
     | 
    
         
            +
                  <div
         
     | 
| 
      
 807 
     | 
    
         
            +
                    class=${classMap({
         
     | 
| 
      
 808 
     | 
    
         
            +
                  container: true,
         
     | 
| 
      
 809 
     | 
    
         
            +
                  hidden: !this.open
         
     | 
| 
      
 810 
     | 
    
         
            +
                })}
         
     | 
| 
      
 811 
     | 
    
         
            +
                  >
         
     | 
| 
      
 812 
     | 
    
         
            +
                    <div
         
     | 
| 
      
 813 
     | 
    
         
            +
                      class="background"
         
     | 
| 
      
 814 
     | 
    
         
            +
                      @click=${() => this.dispatchEvent(new CustomEvent("overlay:click", { bubbles: true, composed: true }))}
         
     | 
| 
      
 815 
     | 
    
         
            +
                    ></div>
         
     | 
| 
      
 816 
     | 
    
         
            +
                    <focus-trap>
         
     | 
| 
      
 817 
     | 
    
         
            +
                      <div
         
     | 
| 
      
 818 
     | 
    
         
            +
                        class=${classMap({
         
     | 
| 
      
 819 
     | 
    
         
            +
                  "video-frame": true,
         
     | 
| 
      
 820 
     | 
    
         
            +
                  grow: this.aspectRatio === 0
         
     | 
| 
      
 821 
     | 
    
         
            +
                })}
         
     | 
| 
      
 822 
     | 
    
         
            +
                        style=${styleMap({
         
     | 
| 
      
 823 
     | 
    
         
            +
                  aspectRatio: this.aspectRatio
         
     | 
| 
      
 824 
     | 
    
         
            +
                })}
         
     | 
| 
      
 825 
     | 
    
         
            +
                      >
         
     | 
| 
      
 826 
     | 
    
         
            +
                        <slot></slot>
         
     | 
| 
      
 827 
     | 
    
         
            +
                        <vmp-icon-button
         
     | 
| 
      
 828 
     | 
    
         
            +
                          icon="close"
         
     | 
| 
      
 829 
     | 
    
         
            +
                          rounded="full"
         
     | 
| 
      
 830 
     | 
    
         
            +
                          weight="heavy"
         
     | 
| 
      
 831 
     | 
    
         
            +
                          @click=${() => this.dispatchEvent(new CustomEvent("close:click", { bubbles: true, composed: true }))}
         
     | 
| 
      
 832 
     | 
    
         
            +
                        ></vmp-icon-button>
         
     | 
| 
      
 833 
     | 
    
         
            +
                      </div>
         
     | 
| 
      
 834 
     | 
    
         
            +
                    </focus-trap>
         
     | 
| 
      
 835 
     | 
    
         
            +
                  </div>
         
     | 
| 
      
 836 
     | 
    
         
            +
                `;
         
     | 
| 
      
 837 
     | 
    
         
            +
              }
         
     | 
| 
      
 838 
     | 
    
         
            +
            };
         
     | 
| 
      
 839 
     | 
    
         
            +
            DialogOverlay.styles = [
         
     | 
| 
      
 840 
     | 
    
         
            +
              css`
         
     | 
| 
      
 841 
     | 
    
         
            +
                  :host {
         
     | 
| 
      
 842 
     | 
    
         
            +
                    --vouch-media-player-border-radius: var(--vu-media-player-border-radius, 12px);
         
     | 
| 
      
 843 
     | 
    
         
            +
                    --overlay-background-color: var(--vu-overlay-background-color, black);
         
     | 
| 
      
 844 
     | 
    
         
            +
                    --overlay-background-opacity: var(--vu-overlay-background-opacity, 0.4);
         
     | 
| 
      
 845 
     | 
    
         
            +
             
     | 
| 
      
 846 
     | 
    
         
            +
                    --dialog-width: var(--vu-dialog-width, 890px);
         
     | 
| 
      
 847 
     | 
    
         
            +
                    --dialog-height: var(--vu-dialog-height, 500px);
         
     | 
| 
      
 848 
     | 
    
         
            +
                  }
         
     | 
| 
      
 849 
     | 
    
         
            +
             
     | 
| 
      
 850 
     | 
    
         
            +
                  .container {
         
     | 
| 
      
 851 
     | 
    
         
            +
                    position: fixed;
         
     | 
| 
      
 852 
     | 
    
         
            +
                    display: flex;
         
     | 
| 
      
 853 
     | 
    
         
            +
                    inset: 0;
         
     | 
| 
      
 854 
     | 
    
         
            +
                    opacity: 1;
         
     | 
| 
      
 855 
     | 
    
         
            +
                    z-index: 2147483647;
         
     | 
| 
      
 856 
     | 
    
         
            +
                    align-items: center;
         
     | 
| 
      
 857 
     | 
    
         
            +
                    justify-content: center;
         
     | 
| 
      
 858 
     | 
    
         
            +
                    transition: opacity 100ms ease-in;
         
     | 
| 
      
 859 
     | 
    
         
            +
                  }
         
     | 
| 
      
 860 
     | 
    
         
            +
             
     | 
| 
      
 861 
     | 
    
         
            +
                  .hidden {
         
     | 
| 
      
 862 
     | 
    
         
            +
                    opacity: 0;
         
     | 
| 
      
 863 
     | 
    
         
            +
                    pointer-events: none;
         
     | 
| 
      
 864 
     | 
    
         
            +
                  }
         
     | 
| 
      
 865 
     | 
    
         
            +
             
     | 
| 
      
 866 
     | 
    
         
            +
                  .background {
         
     | 
| 
      
 867 
     | 
    
         
            +
                    position: absolute;
         
     | 
| 
      
 868 
     | 
    
         
            +
                    inset: 0;
         
     | 
| 
      
 869 
     | 
    
         
            +
                    opacity: var(--overlay-background-opacity);
         
     | 
| 
      
 870 
     | 
    
         
            +
                    background-color: var(--overlay-background-color);
         
     | 
| 
      
 871 
     | 
    
         
            +
                  }
         
     | 
| 
      
 872 
     | 
    
         
            +
             
     | 
| 
      
 873 
     | 
    
         
            +
                  focus-trap {
         
     | 
| 
      
 874 
     | 
    
         
            +
                    display: flex;
         
     | 
| 
      
 875 
     | 
    
         
            +
                    align-items: center;
         
     | 
| 
      
 876 
     | 
    
         
            +
                    justify-content: center;
         
     | 
| 
      
 877 
     | 
    
         
            +
                    margin: 40px;
         
     | 
| 
      
 878 
     | 
    
         
            +
                    width: var(--dialog-width);
         
     | 
| 
      
 879 
     | 
    
         
            +
                    height: var(--dialog-height);
         
     | 
| 
      
 880 
     | 
    
         
            +
                    max-width: calc(100% - 80px);
         
     | 
| 
      
 881 
     | 
    
         
            +
                    max-height: calc(100% - 80px);
         
     | 
| 
      
 882 
     | 
    
         
            +
                  }
         
     | 
| 
      
 883 
     | 
    
         
            +
             
     | 
| 
      
 884 
     | 
    
         
            +
                  .video-frame {
         
     | 
| 
      
 885 
     | 
    
         
            +
                    position: relative;
         
     | 
| 
      
 886 
     | 
    
         
            +
                    display: flex;
         
     | 
| 
      
 887 
     | 
    
         
            +
                    align-items: center;
         
     | 
| 
      
 888 
     | 
    
         
            +
                    justify-content: center;
         
     | 
| 
      
 889 
     | 
    
         
            +
                    max-width: 100%;
         
     | 
| 
      
 890 
     | 
    
         
            +
                    max-height: 100%;
         
     | 
| 
      
 891 
     | 
    
         
            +
                  }
         
     | 
| 
      
 892 
     | 
    
         
            +
             
     | 
| 
      
 893 
     | 
    
         
            +
                  .video-frame.grow {
         
     | 
| 
      
 894 
     | 
    
         
            +
                    width: 100%;
         
     | 
| 
      
 895 
     | 
    
         
            +
                    height: 100%;
         
     | 
| 
      
 896 
     | 
    
         
            +
                  }
         
     | 
| 
      
 897 
     | 
    
         
            +
             
     | 
| 
      
 898 
     | 
    
         
            +
                  vmp-icon-button {
         
     | 
| 
      
 899 
     | 
    
         
            +
                    position: absolute;
         
     | 
| 
      
 900 
     | 
    
         
            +
                    top: 0;
         
     | 
| 
      
 901 
     | 
    
         
            +
                    right: 0;
         
     | 
| 
      
 902 
     | 
    
         
            +
                    margin: 10px;
         
     | 
| 
      
 903 
     | 
    
         
            +
                  }
         
     | 
| 
      
 904 
     | 
    
         
            +
                `
         
     | 
| 
      
 905 
     | 
    
         
            +
            ];
         
     | 
| 
      
 906 
     | 
    
         
            +
            __decorateClass$2([
         
     | 
| 
      
 907 
     | 
    
         
            +
              property({ type: Boolean })
         
     | 
| 
      
 908 
     | 
    
         
            +
            ], DialogOverlay.prototype, "open", 2);
         
     | 
| 
      
 909 
     | 
    
         
            +
            __decorateClass$2([
         
     | 
| 
      
 910 
     | 
    
         
            +
              property({ type: Number })
         
     | 
| 
      
 911 
     | 
    
         
            +
            ], DialogOverlay.prototype, "aspectRatio", 2);
         
     | 
| 
      
 912 
     | 
    
         
            +
            DialogOverlay = __decorateClass$2([
         
     | 
| 
      
 913 
     | 
    
         
            +
              customElement("vouch-embed-dialog-overlay")
         
     | 
| 
      
 914 
     | 
    
         
            +
            ], DialogOverlay);
         
     | 
| 
      
 915 
     | 
    
         
            +
            var __defProp$1 = Object.defineProperty;
         
     | 
| 
      
 916 
     | 
    
         
            +
            var __getOwnPropDesc$1 = Object.getOwnPropertyDescriptor;
         
     | 
| 
      
 917 
     | 
    
         
            +
            var __decorateClass$1 = (decorators, target, key, kind) => {
         
     | 
| 
      
 918 
     | 
    
         
            +
              var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$1(target, key) : target;
         
     | 
| 
      
 919 
     | 
    
         
            +
              for (var i = decorators.length - 1, decorator; i >= 0; i--)
         
     | 
| 
      
 920 
     | 
    
         
            +
                if (decorator = decorators[i])
         
     | 
| 
      
 921 
     | 
    
         
            +
                  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
         
     | 
| 
      
 922 
     | 
    
         
            +
              if (kind && result)
         
     | 
| 
      
 923 
     | 
    
         
            +
                __defProp$1(target, key, result);
         
     | 
| 
      
 924 
     | 
    
         
            +
              return result;
         
     | 
| 
      
 925 
     | 
    
         
            +
            };
         
     | 
| 
      
 926 
     | 
    
         
            +
            let DialogPortal = class extends LitElement {
         
     | 
| 
      
 927 
     | 
    
         
            +
              constructor() {
         
     | 
| 
      
 928 
     | 
    
         
            +
                super(...arguments);
         
     | 
| 
      
 929 
     | 
    
         
            +
                this.env = "prod";
         
     | 
| 
      
 930 
     | 
    
         
            +
                this.apiKey = "";
         
     | 
| 
      
 931 
     | 
    
         
            +
                this.disableTracking = false;
         
     | 
| 
      
 932 
     | 
    
         
            +
                this.trackingSource = "embedded_player";
         
     | 
| 
      
 933 
     | 
    
         
            +
                this.preload = "none";
         
     | 
| 
      
 934 
     | 
    
         
            +
                this.disableAutoplay = false;
         
     | 
| 
      
 935 
     | 
    
         
            +
                this.aspectRatio = 0;
         
     | 
| 
      
 936 
     | 
    
         
            +
                this._mediaPlayerRef = createRef();
         
     | 
| 
      
 937 
     | 
    
         
            +
                this.open = false;
         
     | 
| 
      
 938 
     | 
    
         
            +
                this._handleToggle = ({ detail }) => {
         
     | 
| 
      
 939 
     | 
    
         
            +
                  var _a, _b, _c;
         
     | 
| 
      
 940 
     | 
    
         
            +
                  if (this.id === detail) {
         
     | 
| 
      
 941 
     | 
    
         
            +
                    this.open = !this.open;
         
     | 
| 
      
 942 
     | 
    
         
            +
                    if (this.open) {
         
     | 
| 
      
 943 
     | 
    
         
            +
                      if (!this.disableAutoplay && ((_a = this._mediaPlayerRef) == null ? void 0 : _a.value)) {
         
     | 
| 
      
 944 
     | 
    
         
            +
                        this._mediaPlayerRef.value.muted = false;
         
     | 
| 
      
 945 
     | 
    
         
            +
                        this._mediaPlayerRef.value.play();
         
     | 
| 
      
 946 
     | 
    
         
            +
                      }
         
     | 
| 
      
 947 
     | 
    
         
            +
                    } else {
         
     | 
| 
      
 948 
     | 
    
         
            +
                      (_c = (_b = this._mediaPlayerRef) == null ? void 0 : _b.value) == null ? void 0 : _c.pause();
         
     | 
| 
      
 949 
     | 
    
         
            +
                    }
         
     | 
| 
      
 950 
     | 
    
         
            +
                  }
         
     | 
| 
      
 951 
     | 
    
         
            +
                };
         
     | 
| 
      
 952 
     | 
    
         
            +
                this._handleClose = () => {
         
     | 
| 
      
 953 
     | 
    
         
            +
                  var _a, _b;
         
     | 
| 
      
 954 
     | 
    
         
            +
                  this.open = false;
         
     | 
| 
      
 955 
     | 
    
         
            +
                  (_b = (_a = this._mediaPlayerRef) == null ? void 0 : _a.value) == null ? void 0 : _b.pause();
         
     | 
| 
      
 956 
     | 
    
         
            +
                };
         
     | 
| 
      
 957 
     | 
    
         
            +
                this._handleDocumentKeyUp = (e) => {
         
     | 
| 
      
 958 
     | 
    
         
            +
                  if (e.key === "Escape") {
         
     | 
| 
      
 959 
     | 
    
         
            +
                    this._handleClose();
         
     | 
| 
      
 960 
     | 
    
         
            +
                  }
         
     | 
| 
      
 961 
     | 
    
         
            +
                };
         
     | 
| 
      
 962 
     | 
    
         
            +
              }
         
     | 
| 
      
 963 
     | 
    
         
            +
              connectedCallback() {
         
     | 
| 
      
 964 
     | 
    
         
            +
                super.connectedCallback();
         
     | 
| 
      
 965 
     | 
    
         
            +
                document.addEventListener("dialogembed:click", this._handleToggle);
         
     | 
| 
      
 966 
     | 
    
         
            +
                document.addEventListener("keyup", this._handleDocumentKeyUp);
         
     | 
| 
      
 967 
     | 
    
         
            +
                document.addEventListener("close:click", this._handleClose);
         
     | 
| 
      
 968 
     | 
    
         
            +
                document.addEventListener("overlay:click", this._handleClose);
         
     | 
| 
      
 969 
     | 
    
         
            +
              }
         
     | 
| 
      
 970 
     | 
    
         
            +
              disconnectedCallback() {
         
     | 
| 
      
 971 
     | 
    
         
            +
                super.disconnectedCallback();
         
     | 
| 
      
 972 
     | 
    
         
            +
                document.removeEventListener("dialogembed:click", this._handleToggle);
         
     | 
| 
      
 973 
     | 
    
         
            +
                document.removeEventListener("keyup", this._handleDocumentKeyUp);
         
     | 
| 
      
 974 
     | 
    
         
            +
                document.removeEventListener("close:click", this._handleClose);
         
     | 
| 
      
 975 
     | 
    
         
            +
                document.removeEventListener("overlay:click", this._handleClose);
         
     | 
| 
      
 976 
     | 
    
         
            +
              }
         
     | 
| 
      
 977 
     | 
    
         
            +
              createRenderRoot() {
         
     | 
| 
      
 978 
     | 
    
         
            +
                const newNode = document.createElement("div");
         
     | 
| 
      
 979 
     | 
    
         
            +
                document.body.appendChild(newNode);
         
     | 
| 
      
 980 
     | 
    
         
            +
                return newNode;
         
     | 
| 
      
 981 
     | 
    
         
            +
              }
         
     | 
| 
      
 982 
     | 
    
         
            +
              render() {
         
     | 
| 
      
 983 
     | 
    
         
            +
                return html`
         
     | 
| 
      
 984 
     | 
    
         
            +
                  <vouch-embed-dialog-overlay ?open=${this.open} aspectRatio=${this.aspectRatio}>
         
     | 
| 
      
 985 
     | 
    
         
            +
                    <vouch-embed-player
         
     | 
| 
      
 986 
     | 
    
         
            +
                      ${ref(this._mediaPlayerRef)}
         
     | 
| 
      
 987 
     | 
    
         
            +
                      style=${styleMap({
         
     | 
| 
      
 988 
     | 
    
         
            +
                  maxWidth: "100%",
         
     | 
| 
      
 989 
     | 
    
         
            +
                  maxHeight: "100%"
         
     | 
| 
      
 990 
     | 
    
         
            +
                })}
         
     | 
| 
      
 991 
     | 
    
         
            +
                      ?autoplay=${false}
         
     | 
| 
      
 992 
     | 
    
         
            +
                      vouchId=${ifDefined(this.vouchId)}
         
     | 
| 
      
 993 
     | 
    
         
            +
                      templateId=${ifDefined(this.templateId)}
         
     | 
| 
      
 994 
     | 
    
         
            +
                      .questions=${this.questions}
         
     | 
| 
      
 995 
     | 
    
         
            +
                      .controls=${this.controls}
         
     | 
| 
      
 996 
     | 
    
         
            +
                      env=${ifDefined(this.env)}
         
     | 
| 
      
 997 
     | 
    
         
            +
                      apiKey=${ifDefined(this.apiKey)}
         
     | 
| 
      
 998 
     | 
    
         
            +
                      ?disableTracking=${this.disableTracking}
         
     | 
| 
      
 999 
     | 
    
         
            +
                      trackingSource=${ifDefined(this.trackingSource)}
         
     | 
| 
      
 1000 
     | 
    
         
            +
                      preload=${ifDefined(this.preload)}
         
     | 
| 
      
 1001 
     | 
    
         
            +
                      aspectRatio=${this.aspectRatio}
         
     | 
| 
      
 1002 
     | 
    
         
            +
                    ></vouch-embed-player>
         
     | 
| 
      
 1003 
     | 
    
         
            +
                  </vouch-embed-dialog-overlay>
         
     | 
| 
      
 1004 
     | 
    
         
            +
                `;
         
     | 
| 
      
 1005 
     | 
    
         
            +
              }
         
     | 
| 
      
 1006 
     | 
    
         
            +
            };
         
     | 
| 
      
 1007 
     | 
    
         
            +
            __decorateClass$1([
         
     | 
| 
      
 1008 
     | 
    
         
            +
              property({ type: String })
         
     | 
| 
      
 1009 
     | 
    
         
            +
            ], DialogPortal.prototype, "vouchId", 2);
         
     | 
| 
      
 1010 
     | 
    
         
            +
            __decorateClass$1([
         
     | 
| 
      
 1011 
     | 
    
         
            +
              property({ type: String })
         
     | 
| 
      
 1012 
     | 
    
         
            +
            ], DialogPortal.prototype, "templateId", 2);
         
     | 
| 
      
 1013 
     | 
    
         
            +
            __decorateClass$1([
         
     | 
| 
      
 1014 
     | 
    
         
            +
              property({ type: Array })
         
     | 
| 
      
 1015 
     | 
    
         
            +
            ], DialogPortal.prototype, "questions", 2);
         
     | 
| 
      
 1016 
     | 
    
         
            +
            __decorateClass$1([
         
     | 
| 
      
 1017 
     | 
    
         
            +
              property({ type: String })
         
     | 
| 
      
 1018 
     | 
    
         
            +
            ], DialogPortal.prototype, "env", 2);
         
     | 
| 
      
 1019 
     | 
    
         
            +
            __decorateClass$1([
         
     | 
| 
      
 1020 
     | 
    
         
            +
              property({ type: String })
         
     | 
| 
      
 1021 
     | 
    
         
            +
            ], DialogPortal.prototype, "apiKey", 2);
         
     | 
| 
      
 1022 
     | 
    
         
            +
            __decorateClass$1([
         
     | 
| 
      
 1023 
     | 
    
         
            +
              property({ type: Boolean })
         
     | 
| 
      
 1024 
     | 
    
         
            +
            ], DialogPortal.prototype, "disableTracking", 2);
         
     | 
| 
      
 1025 
     | 
    
         
            +
            __decorateClass$1([
         
     | 
| 
      
 1026 
     | 
    
         
            +
              property({ type: String })
         
     | 
| 
      
 1027 
     | 
    
         
            +
            ], DialogPortal.prototype, "trackingSource", 2);
         
     | 
| 
      
 1028 
     | 
    
         
            +
            __decorateClass$1([
         
     | 
| 
      
 1029 
     | 
    
         
            +
              property({ type: Array })
         
     | 
| 
      
 1030 
     | 
    
         
            +
            ], DialogPortal.prototype, "controls", 2);
         
     | 
| 
      
 1031 
     | 
    
         
            +
            __decorateClass$1([
         
     | 
| 
      
 1032 
     | 
    
         
            +
              property({ type: String })
         
     | 
| 
      
 1033 
     | 
    
         
            +
            ], DialogPortal.prototype, "preload", 2);
         
     | 
| 
      
 1034 
     | 
    
         
            +
            __decorateClass$1([
         
     | 
| 
      
 1035 
     | 
    
         
            +
              property({ type: Boolean })
         
     | 
| 
      
 1036 
     | 
    
         
            +
            ], DialogPortal.prototype, "disableAutoplay", 2);
         
     | 
| 
      
 1037 
     | 
    
         
            +
            __decorateClass$1([
         
     | 
| 
      
 1038 
     | 
    
         
            +
              property({ type: Number })
         
     | 
| 
      
 1039 
     | 
    
         
            +
            ], DialogPortal.prototype, "aspectRatio", 2);
         
     | 
| 
      
 1040 
     | 
    
         
            +
            __decorateClass$1([
         
     | 
| 
      
 1041 
     | 
    
         
            +
              state()
         
     | 
| 
      
 1042 
     | 
    
         
            +
            ], DialogPortal.prototype, "open", 2);
         
     | 
| 
      
 1043 
     | 
    
         
            +
            DialogPortal = __decorateClass$1([
         
     | 
| 
      
 1044 
     | 
    
         
            +
              customElement("vouch-embed-dialog-portal")
         
     | 
| 
      
 1045 
     | 
    
         
            +
            ], DialogPortal);
         
     | 
| 
      
 1046 
     | 
    
         
            +
            var __defProp = Object.defineProperty;
         
     | 
| 
      
 1047 
     | 
    
         
            +
            var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
         
     | 
| 
      
 1048 
     | 
    
         
            +
            var __decorateClass = (decorators, target, key, kind) => {
         
     | 
| 
      
 1049 
     | 
    
         
            +
              var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
         
     | 
| 
      
 1050 
     | 
    
         
            +
              for (var i = decorators.length - 1, decorator; i >= 0; i--)
         
     | 
| 
      
 1051 
     | 
    
         
            +
                if (decorator = decorators[i])
         
     | 
| 
      
 1052 
     | 
    
         
            +
                  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
         
     | 
| 
      
 1053 
     | 
    
         
            +
              if (kind && result)
         
     | 
| 
      
 1054 
     | 
    
         
            +
                __defProp(target, key, result);
         
     | 
| 
      
 1055 
     | 
    
         
            +
              return result;
         
     | 
| 
      
 1056 
     | 
    
         
            +
            };
         
     | 
| 
      
 1057 
     | 
    
         
            +
            let DialogEmbed = class extends LitElement {
         
     | 
| 
      
 1058 
     | 
    
         
            +
              constructor() {
         
     | 
| 
      
 1059 
     | 
    
         
            +
                super(...arguments);
         
     | 
| 
      
 1060 
     | 
    
         
            +
                this.env = "prod";
         
     | 
| 
      
 1061 
     | 
    
         
            +
                this.apiKey = "";
         
     | 
| 
      
 1062 
     | 
    
         
            +
                this.disableTracking = false;
         
     | 
| 
      
 1063 
     | 
    
         
            +
                this.trackingSource = "embedded_player";
         
     | 
| 
      
 1064 
     | 
    
         
            +
                this.preload = "none";
         
     | 
| 
      
 1065 
     | 
    
         
            +
                this.disableAutoplay = false;
         
     | 
| 
      
 1066 
     | 
    
         
            +
                this.aspectRatio = 0;
         
     | 
| 
      
 1067 
     | 
    
         
            +
                this._id = v4();
         
     | 
| 
      
 1068 
     | 
    
         
            +
                this._handleRootClick = () => {
         
     | 
| 
      
 1069 
     | 
    
         
            +
                  this.dispatchEvent(new CustomEvent("dialogembed:click", { detail: this._id, bubbles: true, composed: true }));
         
     | 
| 
      
 1070 
     | 
    
         
            +
                };
         
     | 
| 
      
 1071 
     | 
    
         
            +
              }
         
     | 
| 
      
 1072 
     | 
    
         
            +
              connectedCallback() {
         
     | 
| 
      
 1073 
     | 
    
         
            +
                super.connectedCallback();
         
     | 
| 
      
 1074 
     | 
    
         
            +
                this.addEventListener("click", this._handleRootClick);
         
     | 
| 
      
 1075 
     | 
    
         
            +
              }
         
     | 
| 
      
 1076 
     | 
    
         
            +
              disconnectedCallback() {
         
     | 
| 
      
 1077 
     | 
    
         
            +
                super.disconnectedCallback();
         
     | 
| 
      
 1078 
     | 
    
         
            +
                this.removeEventListener("click", this._handleRootClick);
         
     | 
| 
      
 1079 
     | 
    
         
            +
              }
         
     | 
| 
      
 1080 
     | 
    
         
            +
              render() {
         
     | 
| 
      
 1081 
     | 
    
         
            +
                return html`
         
     | 
| 
      
 1082 
     | 
    
         
            +
                  <slot>
         
     | 
| 
      
 1083 
     | 
    
         
            +
                    <vmp-button size="large">Play</vmp-button>
         
     | 
| 
      
 1084 
     | 
    
         
            +
                  </slot>
         
     | 
| 
      
 1085 
     | 
    
         
            +
                  <vouch-embed-dialog-portal
         
     | 
| 
      
 1086 
     | 
    
         
            +
                    id=${this._id}
         
     | 
| 
      
 1087 
     | 
    
         
            +
                    ?autoplay=${false}
         
     | 
| 
      
 1088 
     | 
    
         
            +
                    vouchId=${ifDefined(this.vouchId)}
         
     | 
| 
      
 1089 
     | 
    
         
            +
                    templateId=${ifDefined(this.templateId)}
         
     | 
| 
      
 1090 
     | 
    
         
            +
                    .questions=${this.questions}
         
     | 
| 
       1546 
1091 
     | 
    
         
             
                    .controls=${this.controls}
         
     | 
| 
       1547 
     | 
    
         
            -
             
     | 
| 
      
 1092 
     | 
    
         
            +
                    env=${ifDefined(this.env)}
         
     | 
| 
      
 1093 
     | 
    
         
            +
                    apiKey=${ifDefined(this.apiKey)}
         
     | 
| 
      
 1094 
     | 
    
         
            +
                    ?disableTracking=${this.disableTracking}
         
     | 
| 
      
 1095 
     | 
    
         
            +
                    trackingSource=${ifDefined(this.trackingSource)}
         
     | 
| 
      
 1096 
     | 
    
         
            +
                    preload=${ifDefined(this.preload)}
         
     | 
| 
      
 1097 
     | 
    
         
            +
                    aspectRatio=${this.aspectRatio}
         
     | 
| 
      
 1098 
     | 
    
         
            +
                  ></vouch-embed-dialog-portal>
         
     | 
| 
       1548 
1099 
     | 
    
         
             
                `;
         
     | 
| 
       1549 
1100 
     | 
    
         
             
              }
         
     | 
| 
       1550 
1101 
     | 
    
         
             
            };
         
     | 
| 
       1551 
     | 
    
         
            -
             
     | 
| 
       1552 
     | 
    
         
            -
               
     | 
| 
       1553 
     | 
    
         
            -
             
     | 
| 
       1554 
     | 
    
         
            -
             
     | 
| 
       1555 
     | 
    
         
            -
             
     | 
| 
       1556 
     | 
    
         
            -
             
     | 
| 
       1557 
     | 
    
         
            -
             
     | 
| 
       1558 
     | 
    
         
            -
             
     | 
| 
       1559 
     | 
    
         
            -
             
     | 
| 
       1560 
     | 
    
         
            -
             
     | 
| 
       1561 
     | 
    
         
            -
             
     | 
| 
       1562 
     | 
    
         
            -
             
     | 
| 
       1563 
     | 
    
         
            -
             
     | 
| 
       1564 
     | 
    
         
            -
             
     | 
| 
       1565 
     | 
    
         
            -
             
     | 
| 
       1566 
     | 
    
         
            -
             
     | 
| 
       1567 
     | 
    
         
            -
             
     | 
| 
       1568 
     | 
    
         
            -
             
     | 
| 
       1569 
     | 
    
         
            -
             
     | 
| 
       1570 
     | 
    
         
            -
             
     | 
| 
       1571 
     | 
    
         
            -
             
     | 
| 
       1572 
     | 
    
         
            -
             
     | 
| 
       1573 
     | 
    
         
            -
             
     | 
| 
       1574 
     | 
    
         
            -
             
     | 
| 
       1575 
     | 
    
         
            -
             
     | 
| 
       1576 
     | 
    
         
            -
             
     | 
| 
       1577 
     | 
    
         
            -
             
     | 
| 
       1578 
     | 
    
         
            -
             
     | 
| 
       1579 
     | 
    
         
            -
             
     | 
| 
       1580 
     | 
    
         
            -
             
     | 
| 
       1581 
     | 
    
         
            -
             
     | 
| 
       1582 
     | 
    
         
            -
             
     | 
| 
       1583 
     | 
    
         
            -
             
     | 
| 
       1584 
     | 
    
         
            -
             
     | 
| 
       1585 
     | 
    
         
            -
             
     | 
| 
       1586 
     | 
    
         
            -
             
     | 
| 
       1587 
     | 
    
         
            -
             
     | 
| 
       1588 
     | 
    
         
            -
             
     | 
| 
       1589 
     | 
    
         
            -
             
     | 
| 
       1590 
     | 
    
         
            -
             
     | 
| 
       1591 
     | 
    
         
            -
             
     | 
| 
       1592 
     | 
    
         
            -
             
     | 
| 
      
 1102 
     | 
    
         
            +
            DialogEmbed.styles = [
         
     | 
| 
      
 1103 
     | 
    
         
            +
              css`
         
     | 
| 
      
 1104 
     | 
    
         
            +
                  :host {
         
     | 
| 
      
 1105 
     | 
    
         
            +
                    --vu-button-padding: 10px 20px;
         
     | 
| 
      
 1106 
     | 
    
         
            +
                    --vu-button-background: #287179;
         
     | 
| 
      
 1107 
     | 
    
         
            +
                    --vu-button-background-hover: #4faab2;
         
     | 
| 
      
 1108 
     | 
    
         
            +
             
     | 
| 
      
 1109 
     | 
    
         
            +
                    display: flex;
         
     | 
| 
      
 1110 
     | 
    
         
            +
                    width: fit-content;
         
     | 
| 
      
 1111 
     | 
    
         
            +
                    height: fit-content;
         
     | 
| 
      
 1112 
     | 
    
         
            +
                  }
         
     | 
| 
      
 1113 
     | 
    
         
            +
                `
         
     | 
| 
      
 1114 
     | 
    
         
            +
            ];
         
     | 
| 
      
 1115 
     | 
    
         
            +
            __decorateClass([
         
     | 
| 
      
 1116 
     | 
    
         
            +
              property({ type: String })
         
     | 
| 
      
 1117 
     | 
    
         
            +
            ], DialogEmbed.prototype, "vouchId", 2);
         
     | 
| 
      
 1118 
     | 
    
         
            +
            __decorateClass([
         
     | 
| 
      
 1119 
     | 
    
         
            +
              property({ type: String })
         
     | 
| 
      
 1120 
     | 
    
         
            +
            ], DialogEmbed.prototype, "templateId", 2);
         
     | 
| 
      
 1121 
     | 
    
         
            +
            __decorateClass([
         
     | 
| 
      
 1122 
     | 
    
         
            +
              property({ type: Array })
         
     | 
| 
      
 1123 
     | 
    
         
            +
            ], DialogEmbed.prototype, "questions", 2);
         
     | 
| 
      
 1124 
     | 
    
         
            +
            __decorateClass([
         
     | 
| 
      
 1125 
     | 
    
         
            +
              property({ type: String })
         
     | 
| 
      
 1126 
     | 
    
         
            +
            ], DialogEmbed.prototype, "env", 2);
         
     | 
| 
      
 1127 
     | 
    
         
            +
            __decorateClass([
         
     | 
| 
      
 1128 
     | 
    
         
            +
              property({ type: String })
         
     | 
| 
      
 1129 
     | 
    
         
            +
            ], DialogEmbed.prototype, "apiKey", 2);
         
     | 
| 
      
 1130 
     | 
    
         
            +
            __decorateClass([
         
     | 
| 
      
 1131 
     | 
    
         
            +
              property({ type: Boolean })
         
     | 
| 
      
 1132 
     | 
    
         
            +
            ], DialogEmbed.prototype, "disableTracking", 2);
         
     | 
| 
      
 1133 
     | 
    
         
            +
            __decorateClass([
         
     | 
| 
      
 1134 
     | 
    
         
            +
              property({ type: String })
         
     | 
| 
      
 1135 
     | 
    
         
            +
            ], DialogEmbed.prototype, "trackingSource", 2);
         
     | 
| 
      
 1136 
     | 
    
         
            +
            __decorateClass([
         
     | 
| 
      
 1137 
     | 
    
         
            +
              property({ type: Array })
         
     | 
| 
      
 1138 
     | 
    
         
            +
            ], DialogEmbed.prototype, "controls", 2);
         
     | 
| 
      
 1139 
     | 
    
         
            +
            __decorateClass([
         
     | 
| 
      
 1140 
     | 
    
         
            +
              property({ type: String })
         
     | 
| 
      
 1141 
     | 
    
         
            +
            ], DialogEmbed.prototype, "preload", 2);
         
     | 
| 
      
 1142 
     | 
    
         
            +
            __decorateClass([
         
     | 
| 
      
 1143 
     | 
    
         
            +
              property({ type: Boolean })
         
     | 
| 
      
 1144 
     | 
    
         
            +
            ], DialogEmbed.prototype, "disableAutoplay", 2);
         
     | 
| 
      
 1145 
     | 
    
         
            +
            __decorateClass([
         
     | 
| 
      
 1146 
     | 
    
         
            +
              property({ type: Number })
         
     | 
| 
      
 1147 
     | 
    
         
            +
            ], DialogEmbed.prototype, "aspectRatio", 2);
         
     | 
| 
      
 1148 
     | 
    
         
            +
            DialogEmbed = __decorateClass([
         
     | 
| 
      
 1149 
     | 
    
         
            +
              customElement("vouch-embed-dialog")
         
     | 
| 
      
 1150 
     | 
    
         
            +
            ], DialogEmbed);
         
     | 
| 
       1593 
1151 
     | 
    
         
             
            export {
         
     | 
| 
       1594 
     | 
    
         
            -
               
     | 
| 
      
 1152 
     | 
    
         
            +
              DialogEmbed,
         
     | 
| 
      
 1153 
     | 
    
         
            +
              PlayerEmbed
         
     | 
| 
       1595 
1154 
     | 
    
         
             
            };
         
     | 
| 
       1596 
1155 
     | 
    
         
             
            //# sourceMappingURL=embeds.js.map
         
     |