@glance-networks/agent-plugin
Version:
Glance Networks Agent Plugin
1,268 lines (1,266 loc) • 1.16 MB
JavaScript
import * as React from "react";
import React__default, { useState, useEffect, useRef, useMemo, cloneElement, useLayoutEffect } from "react";
import { createPortal } from "react-dom";
function getDefaultExportFromCjs(e) {
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
}
var jsxRuntime = { exports: {} }, reactJsxRuntime_production_min = {};
/**
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var hasRequiredReactJsxRuntime_production_min;
function requireReactJsxRuntime_production_min() {
if (hasRequiredReactJsxRuntime_production_min) return reactJsxRuntime_production_min;
hasRequiredReactJsxRuntime_production_min = 1;
var e = React__default, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, r = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
function s(a, l, d) {
var f, c = {}, u = null, g = null;
d !== void 0 && (u = "" + d), l.key !== void 0 && (u = "" + l.key), l.ref !== void 0 && (g = l.ref);
for (f in l) o.call(l, f) && !i.hasOwnProperty(f) && (c[f] = l[f]);
if (a && a.defaultProps) for (f in l = a.defaultProps, l) c[f] === void 0 && (c[f] = l[f]);
return { $$typeof: t, type: a, key: u, ref: g, props: c, _owner: r.current };
}
return reactJsxRuntime_production_min.Fragment = n, reactJsxRuntime_production_min.jsx = s, reactJsxRuntime_production_min.jsxs = s, reactJsxRuntime_production_min;
}
var reactJsxRuntime_development = {};
/**
* @license React
* react-jsx-runtime.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var hasRequiredReactJsxRuntime_development;
function requireReactJsxRuntime_development() {
return hasRequiredReactJsxRuntime_development || (hasRequiredReactJsxRuntime_development = 1, process.env.NODE_ENV !== "production" && function() {
var e = React__default, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), a = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), c = Symbol.for("react.memo"), u = Symbol.for("react.lazy"), g = Symbol.for("react.offscreen"), m = Symbol.iterator, C = "@@iterator";
function h(b) {
if (b === null || typeof b != "object")
return null;
var V = m && b[m] || b[C];
return typeof V == "function" ? V : null;
}
var p = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
function y(b) {
{
for (var V = arguments.length, j = new Array(V > 1 ? V - 1 : 0), B = 1; B < V; B++)
j[B - 1] = arguments[B];
L("error", b, j);
}
}
function L(b, V, j) {
{
var B = p.ReactDebugCurrentFrame, Q = B.getStackAddendum();
Q !== "" && (V += "%s", j = j.concat([Q]));
var te = j.map(function(J) {
return String(J);
});
te.unshift("Warning: " + V), Function.prototype.apply.call(console[b], console, te);
}
}
var w = !1, E = !1, A = !1, P = !1, z = !1, M;
M = Symbol.for("react.module.reference");
function S(b) {
return !!(typeof b == "string" || typeof b == "function" || b === o || b === i || z || b === r || b === d || b === f || P || b === g || w || E || A || typeof b == "object" && b !== null && (b.$$typeof === u || b.$$typeof === c || b.$$typeof === s || b.$$typeof === a || b.$$typeof === l || // This needs to include all possible module reference object
// types supported by any Flight configuration anywhere since
// we don't know which Flight build this will end up being used
// with.
b.$$typeof === M || b.getModuleId !== void 0));
}
function G(b, V, j) {
var B = b.displayName;
if (B)
return B;
var Q = V.displayName || V.name || "";
return Q !== "" ? j + "(" + Q + ")" : j;
}
function v(b) {
return b.displayName || "Context";
}
function I(b) {
if (b == null)
return null;
if (typeof b.tag == "number" && y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof b == "function")
return b.displayName || b.name || null;
if (typeof b == "string")
return b;
switch (b) {
case o:
return "Fragment";
case n:
return "Portal";
case i:
return "Profiler";
case r:
return "StrictMode";
case d:
return "Suspense";
case f:
return "SuspenseList";
}
if (typeof b == "object")
switch (b.$$typeof) {
case a:
var V = b;
return v(V) + ".Consumer";
case s:
var j = b;
return v(j._context) + ".Provider";
case l:
return G(b, b.render, "ForwardRef");
case c:
var B = b.displayName || null;
return B !== null ? B : I(b.type) || "Memo";
case u: {
var Q = b, te = Q._payload, J = Q._init;
try {
return I(J(te));
} catch {
return null;
}
}
}
return null;
}
var k = Object.assign, _ = 0, T, N, R, D, O, H, ae;
function F() {
}
F.__reactDisabledLog = !0;
function $() {
{
if (_ === 0) {
T = console.log, N = console.info, R = console.warn, D = console.error, O = console.group, H = console.groupCollapsed, ae = console.groupEnd;
var b = {
configurable: !0,
enumerable: !0,
value: F,
writable: !0
};
Object.defineProperties(console, {
info: b,
log: b,
warn: b,
error: b,
group: b,
groupCollapsed: b,
groupEnd: b
});
}
_++;
}
}
function W() {
{
if (_--, _ === 0) {
var b = {
configurable: !0,
enumerable: !0,
writable: !0
};
Object.defineProperties(console, {
log: k({}, b, {
value: T
}),
info: k({}, b, {
value: N
}),
warn: k({}, b, {
value: R
}),
error: k({}, b, {
value: D
}),
group: k({}, b, {
value: O
}),
groupCollapsed: k({}, b, {
value: H
}),
groupEnd: k({}, b, {
value: ae
})
});
}
_ < 0 && y("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
}
}
var oe = p.ReactCurrentDispatcher, Y;
function Z(b, V, j) {
{
if (Y === void 0)
try {
throw Error();
} catch (Q) {
var B = Q.stack.trim().match(/\n( *(at )?)/);
Y = B && B[1] || "";
}
return `
` + Y + b;
}
}
var fe = !1, de;
{
var he = typeof WeakMap == "function" ? WeakMap : Map;
de = new he();
}
function Le(b, V) {
if (!b || fe)
return "";
{
var j = de.get(b);
if (j !== void 0)
return j;
}
var B;
fe = !0;
var Q = Error.prepareStackTrace;
Error.prepareStackTrace = void 0;
var te;
te = oe.current, oe.current = null, $();
try {
if (V) {
var J = function() {
throw Error();
};
if (Object.defineProperty(J.prototype, "props", {
set: function() {
throw Error();
}
}), typeof Reflect == "object" && Reflect.construct) {
try {
Reflect.construct(J, []);
} catch (ge) {
B = ge;
}
Reflect.construct(b, [], J);
} else {
try {
J.call();
} catch (ge) {
B = ge;
}
b.call(J.prototype);
}
} else {
try {
throw Error();
} catch (ge) {
B = ge;
}
b();
}
} catch (ge) {
if (ge && B && typeof ge.stack == "string") {
for (var K = ge.stack.split(`
`), ce = B.stack.split(`
`), re = K.length - 1, ie = ce.length - 1; re >= 1 && ie >= 0 && K[re] !== ce[ie]; )
ie--;
for (; re >= 1 && ie >= 0; re--, ie--)
if (K[re] !== ce[ie]) {
if (re !== 1 || ie !== 1)
do
if (re--, ie--, ie < 0 || K[re] !== ce[ie]) {
var Ce = `
` + K[re].replace(" at new ", " at ");
return b.displayName && Ce.includes("<anonymous>") && (Ce = Ce.replace("<anonymous>", b.displayName)), typeof b == "function" && de.set(b, Ce), Ce;
}
while (re >= 1 && ie >= 0);
break;
}
}
} finally {
fe = !1, oe.current = te, W(), Error.prepareStackTrace = Q;
}
var Ae = b ? b.displayName || b.name : "", Me = Ae ? Z(Ae) : "";
return typeof b == "function" && de.set(b, Me), Me;
}
function _e(b, V, j) {
return Le(b, !1);
}
function be(b) {
var V = b.prototype;
return !!(V && V.isReactComponent);
}
function U(b, V, j) {
if (b == null)
return "";
if (typeof b == "function")
return Le(b, be(b));
if (typeof b == "string")
return Z(b);
switch (b) {
case d:
return Z("Suspense");
case f:
return Z("SuspenseList");
}
if (typeof b == "object")
switch (b.$$typeof) {
case l:
return _e(b.render);
case c:
return U(b.type, V, j);
case u: {
var B = b, Q = B._payload, te = B._init;
try {
return U(te(Q), V, j);
} catch {
}
}
}
return "";
}
var pe = Object.prototype.hasOwnProperty, ve = {}, X = p.ReactDebugCurrentFrame;
function ne(b) {
if (b) {
var V = b._owner, j = U(b.type, b._source, V ? V.type : null);
X.setExtraStackFrame(j);
} else
X.setExtraStackFrame(null);
}
function se(b, V, j, B, Q) {
{
var te = Function.call.bind(pe);
for (var J in b)
if (te(b, J)) {
var K = void 0;
try {
if (typeof b[J] != "function") {
var ce = Error((B || "React class") + ": " + j + " type `" + J + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof b[J] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
throw ce.name = "Invariant Violation", ce;
}
K = b[J](V, J, B, j, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
} catch (re) {
K = re;
}
K && !(K instanceof Error) && (ne(Q), y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", B || "React class", j, J, typeof K), ne(null)), K instanceof Error && !(K.message in ve) && (ve[K.message] = !0, ne(Q), y("Failed %s type: %s", j, K.message), ne(null));
}
}
}
var me = Array.isArray;
function ye(b) {
return me(b);
}
function ke(b) {
{
var V = typeof Symbol == "function" && Symbol.toStringTag, j = V && b[Symbol.toStringTag] || b.constructor.name || "Object";
return j;
}
}
function Ie(b) {
try {
return Te(b), !1;
} catch {
return !0;
}
}
function Te(b) {
return "" + b;
}
function Ge(b) {
if (Ie(b))
return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ke(b)), Te(b);
}
var xe = p.ReactCurrentOwner, ue = {
key: !0,
ref: !0,
__self: !0,
__source: !0
}, q, ee;
function le(b) {
if (pe.call(b, "ref")) {
var V = Object.getOwnPropertyDescriptor(b, "ref").get;
if (V && V.isReactWarning)
return !1;
}
return b.ref !== void 0;
}
function we(b) {
if (pe.call(b, "key")) {
var V = Object.getOwnPropertyDescriptor(b, "key").get;
if (V && V.isReactWarning)
return !1;
}
return b.key !== void 0;
}
function Ne(b, V) {
typeof b.ref == "string" && xe.current;
}
function Ee(b, V) {
{
var j = function() {
q || (q = !0, y("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", V));
};
j.isReactWarning = !0, Object.defineProperty(b, "key", {
get: j,
configurable: !0
});
}
}
function je(b, V) {
{
var j = function() {
ee || (ee = !0, y("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", V));
};
j.isReactWarning = !0, Object.defineProperty(b, "ref", {
get: j,
configurable: !0
});
}
}
var Be = function(b, V, j, B, Q, te, J) {
var K = {
// This tag allows us to uniquely identify this as a React Element
$$typeof: t,
// Built-in properties that belong on the element
type: b,
key: V,
ref: j,
props: J,
// Record the component responsible for creating this element.
_owner: te
};
return K._store = {}, Object.defineProperty(K._store, "validated", {
configurable: !1,
enumerable: !1,
writable: !0,
value: !1
}), Object.defineProperty(K, "_self", {
configurable: !1,
enumerable: !1,
writable: !1,
value: B
}), Object.defineProperty(K, "_source", {
configurable: !1,
enumerable: !1,
writable: !1,
value: Q
}), Object.freeze && (Object.freeze(K.props), Object.freeze(K)), K;
};
function qe(b, V, j, B, Q) {
{
var te, J = {}, K = null, ce = null;
j !== void 0 && (Ge(j), K = "" + j), we(V) && (Ge(V.key), K = "" + V.key), le(V) && (ce = V.ref, Ne(V, Q));
for (te in V)
pe.call(V, te) && !ue.hasOwnProperty(te) && (J[te] = V[te]);
if (b && b.defaultProps) {
var re = b.defaultProps;
for (te in re)
J[te] === void 0 && (J[te] = re[te]);
}
if (K || ce) {
var ie = typeof b == "function" ? b.displayName || b.name || "Unknown" : b;
K && Ee(J, ie), ce && je(J, ie);
}
return Be(b, K, ce, Q, B, xe.current, J);
}
}
var He = p.ReactCurrentOwner, Fe = p.ReactDebugCurrentFrame;
function Se(b) {
if (b) {
var V = b._owner, j = U(b.type, b._source, V ? V.type : null);
Fe.setExtraStackFrame(j);
} else
Fe.setExtraStackFrame(null);
}
var Ve;
Ve = !1;
function Re(b) {
return typeof b == "object" && b !== null && b.$$typeof === t;
}
function Oe() {
{
if (He.current) {
var b = I(He.current.type);
if (b)
return `
Check the render method of \`` + b + "`.";
}
return "";
}
}
function Ke(b) {
return "";
}
var Ue = {};
function Ye(b) {
{
var V = Oe();
if (!V) {
var j = typeof b == "string" ? b : b.displayName || b.name;
j && (V = `
Check the top-level render call using <` + j + ">.");
}
return V;
}
}
function Ze(b, V) {
{
if (!b._store || b._store.validated || b.key != null)
return;
b._store.validated = !0;
var j = Ye(V);
if (Ue[j])
return;
Ue[j] = !0;
var B = "";
b && b._owner && b._owner !== He.current && (B = " It was passed a child from " + I(b._owner.type) + "."), Se(b), y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', j, B), Se(null);
}
}
function De(b, V) {
{
if (typeof b != "object")
return;
if (ye(b))
for (var j = 0; j < b.length; j++) {
var B = b[j];
Re(B) && Ze(B, V);
}
else if (Re(b))
b._store && (b._store.validated = !0);
else if (b) {
var Q = h(b);
if (typeof Q == "function" && Q !== b.entries)
for (var te = Q.call(b), J; !(J = te.next()).done; )
Re(J.value) && Ze(J.value, V);
}
}
}
function Je(b) {
{
var V = b.type;
if (V == null || typeof V == "string")
return;
var j;
if (typeof V == "function")
j = V.propTypes;
else if (typeof V == "object" && (V.$$typeof === l || // Note: Memo only checks outer props here.
// Inner props are checked in the reconciler.
V.$$typeof === c))
j = V.propTypes;
else
return;
if (j) {
var B = I(V);
se(j, b.props, "prop", B, b);
} else if (V.PropTypes !== void 0 && !Ve) {
Ve = !0;
var Q = I(V);
y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", Q || "Unknown");
}
typeof V.getDefaultProps == "function" && !V.getDefaultProps.isReactClassApproved && y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
}
}
function Xe(b) {
{
for (var V = Object.keys(b.props), j = 0; j < V.length; j++) {
var B = V[j];
if (B !== "children" && B !== "key") {
Se(b), y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", B), Se(null);
break;
}
}
b.ref !== null && (Se(b), y("Invalid attribute `ref` supplied to `React.Fragment`."), Se(null));
}
}
var ze = {};
function We(b, V, j, B, Q, te) {
{
var J = S(b);
if (!J) {
var K = "";
(b === void 0 || typeof b == "object" && b !== null && Object.keys(b).length === 0) && (K += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
var ce = Ke();
ce ? K += ce : K += Oe();
var re;
b === null ? re = "null" : ye(b) ? re = "array" : b !== void 0 && b.$$typeof === t ? (re = "<" + (I(b.type) || "Unknown") + " />", K = " Did you accidentally export a JSX literal instead of a component?") : re = typeof b, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", re, K);
}
var ie = qe(b, V, j, Q, te);
if (ie == null)
return ie;
if (J) {
var Ce = V.children;
if (Ce !== void 0)
if (B)
if (ye(Ce)) {
for (var Ae = 0; Ae < Ce.length; Ae++)
De(Ce[Ae], b);
Object.freeze && Object.freeze(Ce);
} else
y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
else
De(Ce, b);
}
if (pe.call(V, "key")) {
var Me = I(b), ge = Object.keys(V).filter(function(ot) {
return ot !== "key";
}), Pe = ge.length > 0 ? "{key: someKey, " + ge.join(": ..., ") + ": ...}" : "{key: someKey}";
if (!ze[Me + Pe]) {
var nt = ge.length > 0 ? "{" + ge.join(": ..., ") + ": ...}" : "{}";
y(`A props object containing a "key" prop is being spread into JSX:
let props = %s;
<%s {...props} />
React keys must be passed directly to JSX without using spread:
let props = %s;
<%s key={someKey} {...props} />`, Pe, Me, nt, Me), ze[Me + Pe] = !0;
}
}
return b === o ? Xe(ie) : Je(ie), ie;
}
}
function Qe(b, V, j) {
return We(b, V, j, !0);
}
function $e(b, V, j) {
return We(b, V, j, !1);
}
var et = $e, tt = Qe;
reactJsxRuntime_development.Fragment = o, reactJsxRuntime_development.jsx = et, reactJsxRuntime_development.jsxs = tt;
}()), reactJsxRuntime_development;
}
process.env.NODE_ENV === "production" ? jsxRuntime.exports = requireReactJsxRuntime_production_min() : jsxRuntime.exports = requireReactJsxRuntime_development();
var jsxRuntimeExports = jsxRuntime.exports;
const Cobrowse = (e) => /* @__PURE__ */ jsxRuntimeExports.jsx(
"iframe",
{
src: e.url,
className: "glance-cobrowse-iframe",
title: "Cobrowse",
referrerPolicy: "no-referrer-when-downgrade",
allowFullScreen: !0,
allow: "camera *;microphone *"
}
), baseurl = {
dw1: "dw1.myglance.org",
dw2: "dw2.myglance.org",
dw3: "dw3.myglance.org",
dw4: "dw4.myglance.org",
qa: "qa.myglance.org",
staging: "www.myglance.net",
beta: "beta.glance.net",
production: "www.glance.net"
}, Logo$1 = (e) => {
const t = e.color || "#019ada";
return /* @__PURE__ */ jsxRuntimeExports.jsxs(
"svg",
{
className: "glance-logo",
id: "uuid-3dcb1d1f-954e-41f3-87a8-da702614a98d",
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 191 294",
children: [
/* @__PURE__ */ jsxRuntimeExports.jsx(
"rect",
{
className: "uuid-872a4a21-0cac-4dba-9ba0-c09d2a317485",
fill: t,
x: "105",
y: "105",
width: "84",
height: "84"
}
),
/* @__PURE__ */ jsxRuntimeExports.jsx(
"path",
{
className: "uuid-872a4a21-0cac-4dba-9ba0-c09d2a317485",
fill: t,
d: "m105,209h84c0,46.361-37.639,84-84,84h0v-84h0Z"
}
),
/* @__PURE__ */ jsxRuntimeExports.jsx(
"path",
{
className: "uuid-872a4a21-0cac-4dba-9ba0-c09d2a317485",
fill: t,
d: "m105,1h0c46.361,0,84,37.639,84,84h-84V1h0Z"
}
),
/* @__PURE__ */ jsxRuntimeExports.jsx(
"path",
{
className: "uuid-872a4a21-0cac-4dba-9ba0-c09d2a317485",
fill: t,
d: "m1,105h84v84h0C38.639,189,1,151.361,1,105h0Z"
}
),
/* @__PURE__ */ jsxRuntimeExports.jsx(
"path",
{
className: "uuid-872a4a21-0cac-4dba-9ba0-c09d2a317485",
fill: t,
d: "m1,209h84v84h0c-46.361,0-84-37.639-84-84h0Z"
}
),
/* @__PURE__ */ jsxRuntimeExports.jsx(
"path",
{
className: "uuid-872a4a21-0cac-4dba-9ba0-c09d2a317485",
fill: t,
d: "m85,1h0v84H1C1,38.639,38.639,1,85,1Z"
}
)
]
}
);
}, sessionInvite = async (e, t) => {
const n = `https://${e.baseUrl}/api/SessionInvitation/smsInvite?groupid=${e.groupId}`, o = {
Authorization: `Bearer GKEY ${e.groupId}&${encodeURIComponent(
e.puid
)}&${e.loginKey}`,
"Content-Type": "application/json"
}, r = await fetch(n, {
method: "POST",
headers: o,
body: JSON.stringify(t)
});
if (r?.ok)
return r.json();
{
const i = new Error("ExternalServiceError");
if (r?.status) {
const s = await r.json();
["ExternalError", "InvalidParameter"].includes(s?.code) && (i.name = "ExternalServiceHandledError", i.message = s?.detail);
}
return new Promise((s, a) => {
a(i);
});
}
}, GlanceAgent = function() {
var goog = goog || {};
goog.global = this || self, goog.exportPath_ = function(e, t, n, o) {
e = e.split("."), o = o || goog.global, e[0] in o || typeof o.execScript > "u" || o.execScript("var " + e[0]);
for (var r; e.length && (r = e.shift()); )
if (e.length || t === void 0)
o = o[r] && o[r] !== Object.prototype[r] ? o[r] : o[r] = {};
else if (!n && goog.isObject(t) && goog.isObject(o[r]))
for (var i in t)
t.hasOwnProperty(i) && (o[r][i] = t[i]);
else
o[r] = t;
}, goog.define = function(e, t) {
return t;
}, goog.FEATURESET_YEAR = 2012, goog.DEBUG = !0, goog.LOCALE = "en", goog.TRUSTED_SITE = !0, goog.DISALLOW_TEST_ONLY_CODE = !goog.DEBUG, goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING = !1, goog.provide = function(e) {
if (goog.isInModuleLoader_())
throw Error("goog.provide cannot be used within a module.");
goog.constructNamespace_(e);
}, goog.constructNamespace_ = function(e, t, n) {
goog.exportPath_(e, t, n);
}, goog.getScriptNonce = function(e) {
return e && e != goog.global ? goog.getScriptNonce_(e.document) : (goog.cspNonce_ === null && (goog.cspNonce_ = goog.getScriptNonce_(goog.global.document)), goog.cspNonce_);
}, goog.NONCE_PATTERN_ = /^[\w+/_-]+[=]{0,2}$/, goog.cspNonce_ = null, goog.getScriptNonce_ = function(e) {
return (e = e.querySelector && e.querySelector("script[nonce]")) && (e = e.nonce || e.getAttribute("nonce")) && goog.NONCE_PATTERN_.test(e) ? e : "";
}, goog.VALID_MODULE_RE_ = /^[a-zA-Z_$][a-zA-Z0-9._$]*$/, goog.module = function(e) {
if (typeof e != "string" || !e || e.search(goog.VALID_MODULE_RE_) == -1)
throw Error("Invalid module identifier");
if (!goog.isInGoogModuleLoader_())
throw Error(
"Module " + e + " has been loaded incorrectly. Note, modules cannot be loaded as normal scripts. They require some kind of pre-processing step. You're likely trying to load a module via a script tag or as a part of a concatenated bundle without rewriting the module. For more info see: https://github.com/google/closure-library/wiki/goog.module:-an-ES6-module-like-alternative-to-goog.provide."
);
if (goog.moduleLoaderState_.moduleName)
throw Error("goog.module may only be called once per module.");
goog.moduleLoaderState_.moduleName = e;
}, goog.module.get = function(e) {
return goog.module.getInternal_(e);
}, goog.module.getInternal_ = function(e) {
return null;
}, goog.ModuleType = { ES6: "es6", GOOG: "goog" }, goog.moduleLoaderState_ = null, goog.isInModuleLoader_ = function() {
return goog.isInGoogModuleLoader_() || goog.isInEs6ModuleLoader_();
}, goog.isInGoogModuleLoader_ = function() {
return !!goog.moduleLoaderState_ && goog.moduleLoaderState_.type == goog.ModuleType.GOOG;
}, goog.isInEs6ModuleLoader_ = function() {
if (goog.moduleLoaderState_ && goog.moduleLoaderState_.type == goog.ModuleType.ES6)
return !0;
var e = goog.global.$jscomp;
return e ? typeof e.getCurrentModulePath != "function" ? !1 : !!e.getCurrentModulePath() : !1;
}, goog.module.declareLegacyNamespace = function() {
goog.moduleLoaderState_.declareLegacyNamespace = !0;
}, goog.declareModuleId = function(e) {
if (goog.moduleLoaderState_)
goog.moduleLoaderState_.moduleName = e;
else {
var t = goog.global.$jscomp;
if (!t || typeof t.getCurrentModulePath != "function")
throw Error(
'Module with namespace "' + e + '" has been loaded incorrectly.'
);
t = t.require(
t.getCurrentModulePath()
), goog.loadedModules_[e] = {
exports: t,
type: goog.ModuleType.ES6,
moduleId: e
};
}
}, goog.setTestOnly = function(e) {
if (goog.DISALLOW_TEST_ONLY_CODE)
throw e = e || "", Error(
"Importing test-only code into non-debug environment" + (e ? ": " + e : ".")
);
}, goog.forwardDeclare = function(e) {
}, goog.getObjectByName = function(e, t) {
e = e.split("."), t = t || goog.global;
for (var n = 0; n < e.length; n++)
if (t = t[e[n]], t == null)
return null;
return t;
}, goog.addDependency = function(e, t, n, o) {
}, goog.ENABLE_DEBUG_LOADER = !0, goog.logToConsole_ = function(e) {
goog.global.console && goog.global.console.error(e);
}, goog.require = function(e) {
}, goog.requireType = function(e) {
return {};
}, goog.basePath = "", goog.nullFunction = function() {
}, goog.abstractMethod = function() {
throw Error("unimplemented abstract method");
}, goog.addSingletonGetter = function(e) {
e.instance_ = void 0, e.getInstance = function() {
return e.instance_ ? e.instance_ : (goog.DEBUG && (goog.instantiatedSingletons_[goog.instantiatedSingletons_.length] = e), e.instance_ = new e());
};
}, goog.instantiatedSingletons_ = [], goog.LOAD_MODULE_USING_EVAL = !0, goog.SEAL_MODULE_EXPORTS = goog.DEBUG, goog.loadedModules_ = {}, goog.DEPENDENCIES_ENABLED = !1, goog.TRANSPILE = "detect", goog.ASSUME_ES_MODULES_TRANSPILED = !1, goog.TRANSPILE_TO_LANGUAGE = "", goog.TRANSPILER = "transpile.js", goog.hasBadLetScoping = null, goog.loadModule = function(e) {
var t = goog.moduleLoaderState_;
try {
goog.moduleLoaderState_ = {
moduleName: "",
declareLegacyNamespace: !1,
type: goog.ModuleType.GOOG
};
var n = {}, o = n;
if (typeof e == "function")
o = e.call(void 0, o);
else if (typeof e == "string")
o = goog.loadModuleFromSource_.call(
void 0,
o,
e
);
else
throw Error("Invalid module definition");
var r = goog.moduleLoaderState_.moduleName;
if (typeof r == "string" && r)
goog.moduleLoaderState_.declareLegacyNamespace ? goog.constructNamespace_(
r,
o,
n !== o
) : goog.SEAL_MODULE_EXPORTS && Object.seal && typeof o == "object" && o != null && Object.seal(o), goog.loadedModules_[r] = {
exports: o,
type: goog.ModuleType.GOOG,
moduleId: goog.moduleLoaderState_.moduleName
};
else
throw Error('Invalid module name "' + r + '"');
} finally {
goog.moduleLoaderState_ = t;
}
}, goog.loadModuleFromSource_ = function($exports$$, $JSCompiler_OptimizeArgumentsArray_p0$$) {
return eval(
goog.CLOSURE_EVAL_PREFILTER_.createScript(
$JSCompiler_OptimizeArgumentsArray_p0$$
)
), $exports$$;
}, goog.normalizePath_ = function(e) {
e = e.split("/");
for (var t = 0; t < e.length; )
e[t] == "." ? e.splice(t, 1) : t && e[t] == ".." && e[t - 1] && e[t - 1] != ".." ? e.splice(--t, 2) : t++;
return e.join("/");
}, goog.loadFileSync_ = function(e) {
if (goog.global.CLOSURE_LOAD_FILE_SYNC)
return goog.global.CLOSURE_LOAD_FILE_SYNC(e);
try {
var t = new goog.global.XMLHttpRequest();
return t.open("get", e, !1), t.send(), t.status == 0 || t.status == 200 ? t.responseText : null;
} catch {
return null;
}
}, goog.transpile_ = function(e, t, n) {
var o = goog.global.$jscomp;
o || (goog.global.$jscomp = o = {});
var r = o.transpile;
if (!r) {
var i = goog.basePath + goog.TRANSPILER, s = goog.loadFileSync_(i);
if (s) {
if (function() {
(0, eval)(s + `
//# sourceURL=` + i);
}.call(goog.global), goog.global.$gwtExport && goog.global.$gwtExport.$jscomp && !goog.global.$gwtExport.$jscomp.transpile)
throw Error(
'The transpiler did not properly export the "transpile" method. $gwtExport: ' + JSON.stringify(goog.global.$gwtExport)
);
goog.global.$jscomp.transpile = goog.global.$gwtExport.$jscomp.transpile, o = goog.global.$jscomp, r = o.transpile;
}
}
return r || (r = o.transpile = function(a, l) {
return goog.logToConsole_(
l + " requires transpilation but no transpiler was found."
), a;
}), r(e, t, n);
}, goog.typeOf = function(e) {
var t = typeof e;
return t != "object" ? t : e ? Array.isArray(e) ? "array" : t : "null";
}, goog.isArrayLike = function(e) {
var t = goog.typeOf(e);
return t == "array" || t == "object" && typeof e.length == "number";
}, goog.isDateLike = function(e) {
return goog.isObject(e) && typeof e.getFullYear == "function";
}, goog.isObject = function(e) {
var t = typeof e;
return t == "object" && e != null || t == "function";
}, goog.getUid = function(e) {
return Object.prototype.hasOwnProperty.call(e, goog.UID_PROPERTY_) && e[goog.UID_PROPERTY_] || (e[goog.UID_PROPERTY_] = ++goog.uidCounter_);
}, goog.hasUid = function(e) {
return !!e[goog.UID_PROPERTY_];
}, goog.removeUid = function(e) {
e !== null && "removeAttribute" in e && e.removeAttribute(goog.UID_PROPERTY_);
try {
delete e[goog.UID_PROPERTY_];
} catch {
}
}, goog.UID_PROPERTY_ = "closure_uid_" + (1e9 * Math.random() >>> 0), goog.uidCounter_ = 0, goog.cloneObject = function(e) {
var t = goog.typeOf(e);
if (t == "object" || t == "array") {
if (typeof e.clone == "function")
return e.clone();
t = t == "array" ? [] : {};
for (var n in e)
t[n] = goog.cloneObject(e[n]);
return t;
}
return e;
}, goog.bindNative_ = function(e, t, n) {
return e.call.apply(e.bind, arguments);
}, goog.bindJs_ = function(e, t, n) {
if (!e)
throw Error();
if (2 < arguments.length) {
var o = Array.prototype.slice.call(arguments, 2);
return function() {
var r = Array.prototype.slice.call(arguments);
return Array.prototype.unshift.apply(r, o), e.apply(t, r);
};
}
return function() {
return e.apply(t, arguments);
};
}, goog.bind = function(e, t, n) {
return Function.prototype.bind && Function.prototype.bind.toString().indexOf("native code") != -1 ? goog.bind = goog.bindNative_ : goog.bind = goog.bindJs_, goog.bind.apply(null, arguments);
}, goog.partial = function(e, t) {
var n = Array.prototype.slice.call(arguments, 1);
return function() {
var o = n.slice();
return o.push.apply(o, arguments), e.apply(this, o);
};
}, goog.mixin = function(e, t) {
for (var n in t)
e[n] = t[n];
}, goog.now = function() {
return Date.now();
}, goog.globalEval = function(e) {
(0, eval)(e);
}, goog.getCssName = function(e, t) {
if (String(e).charAt(0) == ".")
throw Error(
'className passed in goog.getCssName must not start with ".". You passed: ' + e
);
var n = function(r) {
return goog.cssNameMapping_[r] || r;
}, o = function(r) {
r = r.split("-");
for (var i = [], s = 0; s < r.length; s++)
i.push(n(r[s]));
return i.join("-");
};
return o = goog.cssNameMapping_ ? goog.cssNameMappingStyle_ == "BY_WHOLE" ? n : o : function(r) {
return r;
}, e = t ? e + "-" + o(t) : o(e), goog.global.CLOSURE_CSS_NAME_MAP_FN ? goog.global.CLOSURE_CSS_NAME_MAP_FN(e) : e;
}, goog.setCssNameMapping = function(e, t) {
goog.cssNameMapping_ = e, goog.cssNameMappingStyle_ = t;
}, goog.getMsg = function(e, t, n) {
return n && n.html && (e = e.replace(/</g, "<")), n && n.unescapeHtmlEntities && (e = e.replace(/</g, "<").replace(/>/g, ">").replace(/'/g, "'").replace(/"/g, '"').replace(/&/g, "&")), t && (e = e.replace(/\{\$([^}]+)}/g, function(o, r) {
return t != null && r in t ? t[r] : o;
})), e;
}, goog.getMsgWithFallback = function(e, t) {
return e;
}, goog.exportSymbol = function(e, t, n) {
goog.exportPath_(e, t, !0, n);
}, goog.exportProperty = function(e, t, n) {
e[t] = n;
}, goog.inherits = function(e, t) {
function n() {
}
n.prototype = t.prototype, e.superClass_ = t.prototype, e.prototype = new n(), e.prototype.constructor = e, e.base = function(o, r, i) {
for (var s = Array(arguments.length - 2), a = 2; a < arguments.length; a++)
s[a - 2] = arguments[a];
return t.prototype[r].apply(o, s);
};
}, goog.scope = function(e) {
if (goog.isInModuleLoader_())
throw Error("goog.scope is not supported within a module.");
e.call(goog.global);
}, goog.defineClass = function(e, t) {
var n = t.constructor, o = t.statics;
return n && n != Object.prototype.constructor || (n = function() {
throw Error(
"cannot instantiate an interface (no constructor defined)."
);
}), n = goog.defineClass.createSealingConstructor_(
n,
e
), e && goog.inherits(n, e), delete t.constructor, delete t.statics, goog.defineClass.applyProperties_(n.prototype, t), o != null && (o instanceof Function ? o(n) : goog.defineClass.applyProperties_(n, o)), n;
}, goog.defineClass.SEAL_CLASS_INSTANCES = goog.DEBUG, goog.defineClass.createSealingConstructor_ = function(e, t) {
return goog.defineClass.SEAL_CLASS_INSTANCES ? function() {
var n = e.apply(this, arguments) || this;
return n[goog.UID_PROPERTY_] = n[goog.UID_PROPERTY_], n;
} : e;
}, goog.defineClass.OBJECT_PROTOTYPE_FIELDS_ = "constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(
" "
), goog.defineClass.applyProperties_ = function(e, t) {
for (var n in t)
Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
for (var o = 0; o < goog.defineClass.OBJECT_PROTOTYPE_FIELDS_.length; o++)
n = goog.defineClass.OBJECT_PROTOTYPE_FIELDS_[o], Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
}, goog.TRUSTED_TYPES_POLICY_NAME = "goog", goog.identity_ = function(e) {
return e;
}, goog.createTrustedTypesPolicy = function(e) {
var t = null, n = goog.global.trustedTypes;
if (!n || !n.createPolicy)
return t;
try {
t = n.createPolicy(e, {
createHTML: goog.identity_,
createScript: goog.identity_,
createScriptURL: goog.identity_
});
} catch (o) {
goog.logToConsole_(o.message);
}
return t;
};
var CONFIG = "debug", GLANCE_VERSION = "6.3.0.2", GCommon = { Defs: {} };
GCommon.Defs.Version = GLANCE_VERSION.split(".").slice(0, 3).join("."), GCommon.Defs.Config = CONFIG, GCommon.Type = {}, GCommon.Domain = {}, GCommon.Domain.set = function() {
document.domain = window.location.host.split(".").splice(-2).join(".");
}, GCommon.Domain.match = function(e, t) {
return e.match(new RegExp("\\." + t + "$", "i")) !== null;
}, GCommon.Domain.getGlanceDomain = function() {
return document.domain.split(".").splice(-2).join(".");
}, GCommon.Geometry = {}, GCommon.Geometry.Rect = function(e) {
this.top = e.top, this.left = e.left, this.right = e.right, this.bottom = e.bottom;
}, GCommon.Geometry.Rect.prototype.Union = function(e) {
this.left = Math.min(this.left, e.left), this.top = Math.min(this.top, e.top), this.right = Math.max(this.right, e.right), this.bottom = Math.max(this.bottom, e.bottom);
}, GCommon.Geometry.Rect.prototype.width = function() {
return this.right - this.left;
}, GCommon.Geometry.Rect.prototype.height = function() {
return this.bottom - this.top;
}, GCommon.Time = {}, GCommon.Time.UTCNow = function() {
var e = /* @__PURE__ */ new Date();
return e.getUTCFullYear() + "/" + (e.getUTCMonth() + 1) + "/" + e.getUTCDate() + " " + GCommon.String.zeropad(e.getUTCHours(), 2) + ":" + GCommon.String.zeropad(e.getUTCMinutes(), 2) + ":" + GCommon.String.zeropad(e.getUTCSeconds(), 2);
}, GCommon.Time.Timer = function() {
this.set();
}, GCommon.Time.Timer.prototype.elapsed = function(e) {
var t = (/* @__PURE__ */ new Date()).getTime(), n = t - this.t;
return e && (this.t = t), n;
}, GCommon.Time.Timer.prototype.set = function() {
this.t = (/* @__PURE__ */ new Date()).getTime();
}, GCommon.String = {}, GCommon.String.zeropad = function(e, t) {
for (e = e.toString(); e.length < t; )
e = "0" + e;
return e;
}, GCommon.String.queryStringParam = function(e, t) {
return e = new RegExp("[\\?&]" + t + "=([^&#]*)").exec(
e
), e === null ? "" : e[1];
}, GCommon.String.queryString = function(e) {
var t = [];
return Object.keys(e).forEach(function(n) {
t.push(n + "=" + e[n]);
}), t.join("&");
}, GCommon.Url = window.URL || window.webkitURL, Uint8Array.prototype.slice || (Uint8Array.prototype.slice = function(e, t) {
return new Uint8Array(this.subarray(e, t));
}), ArrayBuffer.prototype.slice || (ArrayBuffer.prototype.slice = function(e, t) {
if (e === void 0 && (e = 0), t === void 0 && (t = this.byteLength), e = Math.floor(e), t = Math.floor(t), 0 > e && (e += this.byteLength), 0 > t && (t += this.byteLength), e = Math.min(Math.max(0, e), this.byteLength), t = Math.min(Math.max(0, t), this.byteLength), 0 >= t - e)
return new ArrayBuffer(0);
var n = new ArrayBuffer(t - e), o = new Uint8Array(n);
return e = new Uint8Array(this, e, t - e), o.set(e), n;
}), GCommon.Browser = function() {
var e = navigator.userAgent.toLowerCase(), t = navigator.platform.toLowerCase(), n = e.match(/(edge)[\s\/:]([\w\d\.]+)?/) || e.match(
/(opera|ie|firefox|chrome|version)[\s\/:]([\w\d\.]+)?.*?(safari|version[\s\/:]([\w\d\.]+)|$)/
) || e.match(/(rv):([\w\d\.]+)/) || [null, "unknown", 0];
return n[1] === "rv" && (n[1] = "ie"), {
name: n[1] === "version" ? n[3] : n[1],
version: n[1] === "ie" && document.documentMode || parseFloat(n[1] === "opera" && n[4] ? n[4] : n[2]),
platform: e.match(/ip(?:ad|od|hone)/) ? "ios" : (e.match(/(?:webos|android)/) || t.match(/mac|win|linux/) || ["other"])[0]
};
}(), GCommon.Elem = {}, GCommon.Elem.makeUnselectable = function(e) {
e.on("selectstart dragstart", function(t) {
return t.preventDefault(), !1;
});
};
var INFOLOG = GCommon.Defs.Config === "Debug" && !0;
GCommon.Log = {}, GCommon.Log.logstring = function(e) {
for (var t = "", n = 0; n < e.length; n++)
t += (typeof e[n] == "object" ? JSON.stringify(e[n]) : e[n]) + " ";
return t.replace(/[\r\n]/g, " ").replace("<", "<").replace(">", ">");
}, GCommon.Log.log = function(e) {
window.console && window.console.log && (!window.GLANCE_COBROWSE || !window.GLANCE_COBROWSE.disableLogging) && window.console.log(GCommon.Log.logstring(arguments));
}, GCommon.Log.error = function(e) {
window.console && window.console.error && window.console.error(GCommon.Log.logstring(arguments));
}, GCommon.Defs.Config === "Debug" && (GCommon.Log.debuglog = function(e, t) {
t = Array.prototype.slice.call(t), t.unshift(e), window.console && window.console.log && window.console.log(GCommon.Log.logstring(t));
}), GCommon.Log.msglog = function(e) {
}, GCommon.Log.commlog = function(e) {
}, GCommon.Log.paintlog = function(e) {
}, GCommon.Log.eventslog = function(e) {
}, GCommon.Log.infolog = INFOLOG ? function(e) {
GCommon.Log.debuglog("INFO:", arguments);
} : function(e) {
}, GCommon.Log.framelog = function(e) {
}, GCommon.Log.drawlog = function(e) {
}, GCommon.Log.rclog = function(e) {
}, GCommon.Log.statslog = function(e) {
}, GCommon.Diags = {}, GCommon.Diags.blobToString = function(e) {
return new Promise(function(t, n) {
n = new FileReader(), n.onload = function() {
var o = new Uint8Array(this.result);
t(o.toString());
}, n.readAsArrayBuffer(e);
});
}, GCommon.assert = GCommon.Defs.Config === "Debug" ? function(e) {
if (!e)
throw Error("assert failed");
} : function(e) {
}, GCommon.Stats = {}, GCommon.Stats.tracker = function(e, t, n) {
this.stats = {}, this.statcounts = {}, this.stattypes = {}, this.interval = e, this.logfunc = t, this.notifyfunc = n;
var o = this;
0 < e && window.setInterval(function() {
o.report();
}, 1e3 * e);
}, GCommon.Stats.tracker.statType = {
STAT_AVERAGE: 0,
STAT_PERSEC: 1,
STAT_TOTAL: 2
}, GCommon.Stats.tracker.prototype.track = function(e, t, n) {
this.stattypes[e] = n, this.stats[e] = this.stats[e] || 0, this.stats[e] += t, this.statcounts[e] = (this.statcounts[e] || 0) + 1;
}, GCommon.Stats.tracker.prototype.report = function() {
if (this.notifyfunc && this.notifyfunc(), this.logfunc)
for (var e in this.stats)
switch (this.stattypes[e]) {
case GCommon.Stats.tracker.statType.STAT_AVERAGE:
this.logfunc(
Math.round(
this.stats[e] / this.statcounts[e] * 100
) / 100,
"average",
e
);
break;
case GCommon.Stats.tracker.statType.STAT_PERSEC:
this.logfunc(
Math.round(this.stats[e] / this.interval * 100) / 100,
e + "/sec"
);
break;
case GCommon.Stats.tracker.statType.STAT_TOTAL:
this.logfunc(Math.round(100 * this.stats[e]) / 100, e);
}
this.stats = {}, this.statcounts = {};
}, GCommon.EventListeners = function() {
this._listeners = {};
}, GCommon.EventListeners.prototype.add = function(e, t) {
this._listeners[e] || (this._listeners[e] = this._listeners[e] || [], this._listeners[e].push(t));
}, GCommon.EventListeners.prototype.remove = function(e, t) {
e = this._listeners[e], e !== void 0 && (t = e.indexOf(
t
), 0 <= t && e.splice(t, 1));
}, GCommon.EventListeners.prototype.fire = function(e, t) {
GCommon.Log.eventslog(
"fire ",
e,
" ",
t ? JSON.stringify(t) : ""
);
var n = this._listeners[e], o = !0;
if (n === void 0)
return !0;
for (e = 0; e < n.length; e++)
n[e](t) || (o = !1);
return o;
};
var GlanceLogger = {
sanitize: function(e) {
return e.replace(/[\r\n]/g, " ").replace("<", "<");
},
_log: function(e, ...t) {
!window.console || !window.console[e] || window.GLANCE_COBROWSE && window.GLANCE_COBROWSE.disableLogging || (t = t.map((n) => {
if (typeof n == "object")
try {
n = JSON.stringify(n);
} catch (o) {
console.error(o), n = "unable to convert object to string";
}
return typeof n == "string" ? GlanceLogger.sanitize(n) : n;
}), window.console[e](...t));
},
log: function(...e) {
GlanceLogger._log("log", ...e);
},
error: function(...e) {
GlanceLogger._log("error", ...e);
}
}, diffslog = function() {
}, diffdetlog = function() {
}, preslog = function(...e) {
GlanceLogger.log("PRES:", ...e);
}, scrolllog = function() {
}, eventslog = function() {
};
function errorlog(...e) {
GlanceLogger.error("GLANCE:", ...e);
}
var GLANCE = GLANCE || {};
GLANCE.Lib = GLANCE.Lib || {}, GLANCE.VERSION = "6.3.0.2", GLANCE.PATCH = "", window.GLANCE = window.GLANCE || {}, window.GLANCE.VERSION = GLANCE.VERSION, window.GLANCE.PATCH = GLANCE.PATCH, window.GLANCE.Lib = window.GLANCE.Lib || {}, GLANCE.Lib.KEYTYPE = { RANDOM: "GLANCE_KEYTYPE_RANDOM" }, GLANCE.Lib.KEYTYPE = { RANDOM: "GLANCE_KEYTYPE_RANDOM" }, GLANCE.Lib.MESSAGES = {
GLANCE_INVOKE_MSG: "glance_invoke",
GLANCE_SCREENSHARE: "glance_screenshare",
GLANCE_SCREENSHAREPREVIEW: "glance_screensharepreview",
GLANCE_VISITOR_SCREENSHAREPREVIEW: "glance_visitor_screensharepreview",
GLANCE_AGENTVIDEO: "glance_agentvideo",
GLANCE_VIDEOPREVIEW: "glance_videopreview"
}, GLANCE.Lib.Const = { GID: "data-gid", GCID: "data-gcid", SDID: "data-sdid" }, GLANCE.Lib.scriptId = function(e) {
return ("glance_" + e).toLowerCase();
}, GLANCE.Lib.CallFlags = {
None: 0,
Reconnect: 1,
Reverse: 2,
Declined: 4,
Rcrequested: 8,
Closing: 16,
Beta: 32,
MultipleGuestsOk: 64,
Anonymous: 128,
Showback: 256,
GuestNameRequired: 512,
GuestEmailRequired: 1024,
GuestPhoneRequired: 2048,
GuestNameHidden: 4096,
GuestEmailHidden: 8192,
GuestPhoneHidden: 16384,
GuestInfo: 32256,
Encrypt: 32768,
ForceAjax: 65536,
Persist: 131072,
PresenceStart: 262144,
StagingSession: 524288,
HDAgentVideoEnabled: 2097152
}, GLANCE.Lib.IntVersion = function() {
var e = GLANCE.VERSION.split(".");
return 1e6 * parseInt(e[0]) + 1e3 * parseInt(e[1]) + parseInt(e[2]);
}(), GLANCE.Lib.VideoJoinURL = function(e, t) {
return t = t || "clip", `https://${URL.toString().includes("[native code]") ? new URL(e).hostname : GLANCE.Lib.GElement.nativeInstance("URL", e).hostname}/viv/VideoPlayer.html?offer=${e}&scaling=${t}&noendpage=1&guestid={guestid}&conntype={role}`;
}, GLANCE.Lib.Browser = function() {
var e = navigator.userAgent.toLowerCase(), t = navigator.pla