holostaff-widget 3.0.1 → 3.0.2
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/{BufferResource-BsetVigd.js → BufferResource-6mO-PO_c.js} +4 -4
- package/dist/{BufferResource-BsetVigd.js.map → BufferResource-6mO-PO_c.js.map} +1 -1
- package/dist/{CanvasRenderer-Cnd4gbWc.js → CanvasRenderer-BL1L0Zug.js} +5 -5
- package/dist/{CanvasRenderer-Cnd4gbWc.js.map → CanvasRenderer-BL1L0Zug.js.map} +1 -1
- package/dist/{Geometry-C_hP7eDY.js → Geometry-B-K9I6MO.js} +2 -2
- package/dist/{Geometry-C_hP7eDY.js.map → Geometry-B-K9I6MO.js.map} +1 -1
- package/dist/{RenderTargetSystem-oYKzpCzn.js → RenderTargetSystem-CahYKOD4.js} +3 -3
- package/dist/{RenderTargetSystem-oYKzpCzn.js.map → RenderTargetSystem-CahYKOD4.js.map} +1 -1
- package/dist/{WebGLRenderer-CnlX2m2i.js → WebGLRenderer-Ci14rIHw.js} +5 -5
- package/dist/{WebGLRenderer-CnlX2m2i.js.map → WebGLRenderer-Ci14rIHw.js.map} +1 -1
- package/dist/{WebGPURenderer-CwI3VE9f.js → WebGPURenderer-SF1OSYpo.js} +6 -6
- package/dist/{WebGPURenderer-CwI3VE9f.js.map → WebGPURenderer-SF1OSYpo.js.map} +1 -1
- package/dist/{browserAll-DrS3vkVd.js → browserAll-B97ymwYI.js} +3 -3
- package/dist/{browserAll-DrS3vkVd.js.map → browserAll-B97ymwYI.js.map} +1 -1
- package/dist/{getTextureBatchBindGroup-C0vQRfwn.js → getTextureBatchBindGroup-BPB_9pp9.js} +3 -3
- package/dist/{getTextureBatchBindGroup-C0vQRfwn.js.map → getTextureBatchBindGroup-BPB_9pp9.js.map} +1 -1
- package/dist/hs-widget.es.js +1 -1
- package/dist/hs-widget.umd.js +44 -44
- package/dist/hs-widget.umd.js.map +1 -1
- package/dist/{index-B7aJuEyO.js → index-qJyFW51-.js} +266 -266
- package/dist/{index-B7aJuEyO.js.map → index-qJyFW51-.js.map} +1 -1
- package/dist/{webworkerAll-BNR1nfRY.js → webworkerAll-DYG_wBG4.js} +3 -3
- package/dist/{webworkerAll-BNR1nfRY.js.map → webworkerAll-DYG_wBG4.js.map} +1 -1
- package/package.json +1 -1
|
@@ -12,7 +12,7 @@ const Ne = {
|
|
|
12
12
|
visionWsUrl: null,
|
|
13
13
|
visionConsent: "auto"
|
|
14
14
|
};
|
|
15
|
-
function
|
|
15
|
+
function Fo(i) {
|
|
16
16
|
const e = i.dataset.staffId;
|
|
17
17
|
if (!e)
|
|
18
18
|
throw new Error("[HolostaffWidget] data-staff-id attribute is required");
|
|
@@ -32,13 +32,13 @@ function Po(i) {
|
|
|
32
32
|
visionConsent: i.dataset.hsConsent ?? Ne.visionConsent
|
|
33
33
|
};
|
|
34
34
|
}
|
|
35
|
-
const
|
|
36
|
-
function
|
|
35
|
+
const Po = ["bottom-center", "bottom-left", "bottom-right"], Uo = ["scroll", "delay", "immediate"], Wo = ["light", "dark", "auto"];
|
|
36
|
+
function Go(i, e, t) {
|
|
37
37
|
const s = { ...i };
|
|
38
|
-
return !e.dataset.trigger && t.trigger &&
|
|
38
|
+
return !e.dataset.trigger && t.trigger && Uo.includes(t.trigger) && (s.trigger = t.trigger), !e.dataset.position && t.position && Po.includes(t.position) && (s.position = t.position), !e.dataset.theme && t.theme && Wo.includes(t.theme) && (s.theme = t.theme), !e.dataset.scrollThreshold && t.scrollThreshold != null && (s.scrollThreshold = t.scrollThreshold), !e.dataset.delayMs && t.delayMs != null && (s.delayMs = t.delayMs), !e.dataset.visionWsUrl && t.visionWsUrl && (s.visionWsUrl = t.visionWsUrl), s;
|
|
39
39
|
}
|
|
40
40
|
const Ts = "https://us-central1-holostaff-ai.cloudfunctions.net";
|
|
41
|
-
async function
|
|
41
|
+
async function Vo(i, e = Ts) {
|
|
42
42
|
const t = await fetch(`${e}/widgetSession`, {
|
|
43
43
|
method: "POST",
|
|
44
44
|
headers: { "Content-Type": "application/json" },
|
|
@@ -50,7 +50,7 @@ async function Ho(i, e = Ts) {
|
|
|
50
50
|
}
|
|
51
51
|
return t.json();
|
|
52
52
|
}
|
|
53
|
-
class
|
|
53
|
+
class Ho extends Error {
|
|
54
54
|
constructor(e) {
|
|
55
55
|
super(e), this.name = "WidgetDisabledError";
|
|
56
56
|
}
|
|
@@ -61,7 +61,7 @@ async function $o(i, e = Ts) {
|
|
|
61
61
|
);
|
|
62
62
|
if (!t.ok) {
|
|
63
63
|
const s = await t.json().catch(() => ({ error: t.statusText }));
|
|
64
|
-
throw s.disabled === !0 || t.status === 404 ? new
|
|
64
|
+
throw s.disabled === !0 || t.status === 404 ? new Ho(s.error || "Agent not available") : new Error(s.error || `Config request failed: ${t.status}`);
|
|
65
65
|
}
|
|
66
66
|
return t.json();
|
|
67
67
|
}
|
|
@@ -287,7 +287,7 @@ const cs = (i) => {
|
|
|
287
287
|
},
|
|
288
288
|
test: () => !0,
|
|
289
289
|
load: async () => {
|
|
290
|
-
await import("./browserAll-
|
|
290
|
+
await import("./browserAll-B97ymwYI.js");
|
|
291
291
|
}
|
|
292
292
|
}, Yo = {
|
|
293
293
|
extension: {
|
|
@@ -297,7 +297,7 @@ const cs = (i) => {
|
|
|
297
297
|
},
|
|
298
298
|
test: () => typeof self < "u" && self.WorkerGlobalScope !== void 0,
|
|
299
299
|
load: async () => {
|
|
300
|
-
await import("./webworkerAll-
|
|
300
|
+
await import("./webworkerAll-DYG_wBG4.js");
|
|
301
301
|
}
|
|
302
302
|
};
|
|
303
303
|
class ye {
|
|
@@ -1377,7 +1377,7 @@ class Y {
|
|
|
1377
1377
|
return ea.identity();
|
|
1378
1378
|
}
|
|
1379
1379
|
}
|
|
1380
|
-
const ea = new Y(), ta = new Y(), mt = [1, 1, 0, -1, -1, -1, 0, 1, 1, 1, 0, -1, -1, -1, 0, 1], gt = [0, 1, 1, 1, 0, -1, -1, -1, 0, 1, 1, 1, 0, -1, -1, -1], yt = [0, -1, -1, -1, 0, 1, 1, 1, 0, 1, 1, 1, 0, -1, -1, -1], Ct = [1, 1, 0, -1, -1, -1, 0, 1, -1, -1, 0, 1, 1, 1, 0, -1], ds = [],
|
|
1380
|
+
const ea = new Y(), ta = new Y(), mt = [1, 1, 0, -1, -1, -1, 0, 1, 1, 1, 0, -1, -1, -1, 0, 1], gt = [0, 1, 1, 1, 0, -1, -1, -1, 0, 1, 1, 1, 0, -1, -1, -1], yt = [0, -1, -1, -1, 0, 1, 1, 1, 0, 1, 1, 1, 0, -1, -1, -1], Ct = [1, 1, 0, -1, -1, -1, 0, 1, -1, -1, 0, 1, 1, 1, 0, -1], ds = [], $n = [], fi = Math.sign;
|
|
1381
1381
|
function ia() {
|
|
1382
1382
|
for (let i = 0; i < 16; i++) {
|
|
1383
1383
|
const e = [];
|
|
@@ -1393,7 +1393,7 @@ function ia() {
|
|
|
1393
1393
|
}
|
|
1394
1394
|
for (let i = 0; i < 16; i++) {
|
|
1395
1395
|
const e = new Y();
|
|
1396
|
-
e.set(mt[i], gt[i], yt[i], Ct[i], 0, 0),
|
|
1396
|
+
e.set(mt[i], gt[i], yt[i], Ct[i], 0, 0), $n.push(e);
|
|
1397
1397
|
}
|
|
1398
1398
|
}
|
|
1399
1399
|
ia();
|
|
@@ -1593,7 +1593,7 @@ const V = {
|
|
|
1593
1593
|
* @param {number} dh - sprite height
|
|
1594
1594
|
*/
|
|
1595
1595
|
matrixAppendRotationInv: (i, e, t = 0, s = 0, n = 0, r = 0) => {
|
|
1596
|
-
const a =
|
|
1596
|
+
const a = $n[V.inv(e)], o = a.a, h = a.b, d = a.c, f = a.d, u = t - Math.min(0, o * n, d * r, o * n + d * r), y = s - Math.min(0, h * n, f * r, h * n + f * r), g = i.a, C = i.b, _ = i.c, E = i.d;
|
|
1597
1597
|
i.a = o * g + h * _, i.b = o * C + h * E, i.c = d * g + f * _, i.d = d * C + f * E, i.tx = u * g + y * _ + i.tx, i.ty = u * C + y * E + i.ty;
|
|
1598
1598
|
},
|
|
1599
1599
|
/**
|
|
@@ -2196,7 +2196,7 @@ Object.defineProperties(Oe, {
|
|
|
2196
2196
|
configurable: !1
|
|
2197
2197
|
}
|
|
2198
2198
|
});
|
|
2199
|
-
const
|
|
2199
|
+
const jn = () => {
|
|
2200
2200
|
};
|
|
2201
2201
|
function Gs(i) {
|
|
2202
2202
|
return i += i === 0 ? 1 : 0, --i, i |= i >>> 1, i |= i >>> 2, i |= i >>> 4, i |= i >>> 8, i |= i >>> 16, i + 1;
|
|
@@ -2215,12 +2215,12 @@ function na(i) {
|
|
|
2215
2215
|
const e = Hs[i];
|
|
2216
2216
|
return e === void 0 && (Hs[i] = Ze("resource")), e;
|
|
2217
2217
|
}
|
|
2218
|
-
const
|
|
2218
|
+
const zn = class Yn extends ai {
|
|
2219
2219
|
/**
|
|
2220
2220
|
* @param options - options for the style
|
|
2221
2221
|
*/
|
|
2222
2222
|
constructor(e = {}) {
|
|
2223
|
-
super(), this._resourceType = "textureSampler", this._touched = 0, this._maxAnisotropy = 1, this.destroyed = !1, e = { ...
|
|
2223
|
+
super(), this._resourceType = "textureSampler", this._touched = 0, this._maxAnisotropy = 1, this.destroyed = !1, e = { ...Yn.defaultOptions, ...e }, this.addressMode = e.addressMode, this.addressModeU = e.addressModeU ?? this.addressModeU, this.addressModeV = e.addressModeV ?? this.addressModeV, this.addressModeW = e.addressModeW ?? this.addressModeW, this.scaleMode = e.scaleMode, this.magFilter = e.magFilter ?? this.magFilter, this.minFilter = e.minFilter ?? this.minFilter, this.mipmapFilter = e.mipmapFilter ?? this.mipmapFilter, this.lodMinClamp = e.lodMinClamp, this.lodMaxClamp = e.lodMaxClamp, this.compare = e.compare, this.maxAnisotropy = e.maxAnisotropy ?? 1;
|
|
2224
2224
|
}
|
|
2225
2225
|
set addressMode(e) {
|
|
2226
2226
|
this.addressModeU = e, this.addressModeV = e, this.addressModeW = e;
|
|
@@ -2265,17 +2265,17 @@ const Yn = class Xn extends ai {
|
|
|
2265
2265
|
this.destroyed = !0, this.emit("destroy", this), this.emit("change", this), this.removeAllListeners();
|
|
2266
2266
|
}
|
|
2267
2267
|
};
|
|
2268
|
-
|
|
2268
|
+
zn.defaultOptions = {
|
|
2269
2269
|
addressMode: "clamp-to-edge",
|
|
2270
2270
|
scaleMode: "linear"
|
|
2271
2271
|
};
|
|
2272
|
-
let
|
|
2273
|
-
const
|
|
2272
|
+
let Xn = zn;
|
|
2273
|
+
const qn = class Kn extends ai {
|
|
2274
2274
|
/**
|
|
2275
2275
|
* @param options - options for creating a new TextureSource
|
|
2276
2276
|
*/
|
|
2277
2277
|
constructor(e = {}) {
|
|
2278
|
-
super(), this.options = e, this._gpuData = /* @__PURE__ */ Object.create(null), this._gcLastUsed = -1, this.uid = Ze("textureSource"), this._resourceType = "textureSource", this._resourceId = Ze("resource"), this.uploadMethodId = "unknown", this._resolution = 1, this.pixelWidth = 1, this.pixelHeight = 1, this.width = 1, this.height = 1, this.sampleCount = 1, this.mipLevelCount = 1, this.autoGenerateMipmaps = !1, this.format = "rgba8unorm", this.dimension = "2d", this.viewDimension = "2d", this.arrayLayerCount = 1, this.antialias = !1, this._touched = 0, this._batchTick = -1, this._textureBindLocation = -1, e = { ...
|
|
2278
|
+
super(), this.options = e, this._gpuData = /* @__PURE__ */ Object.create(null), this._gcLastUsed = -1, this.uid = Ze("textureSource"), this._resourceType = "textureSource", this._resourceId = Ze("resource"), this.uploadMethodId = "unknown", this._resolution = 1, this.pixelWidth = 1, this.pixelHeight = 1, this.width = 1, this.height = 1, this.sampleCount = 1, this.mipLevelCount = 1, this.autoGenerateMipmaps = !1, this.format = "rgba8unorm", this.dimension = "2d", this.viewDimension = "2d", this.arrayLayerCount = 1, this.antialias = !1, this._touched = 0, this._batchTick = -1, this._textureBindLocation = -1, e = { ...Kn.defaultOptions, ...e }, this.label = e.label ?? "", this.resource = e.resource, this.autoGarbageCollect = e.autoGarbageCollect, this._resolution = e.resolution, e.width ? this.pixelWidth = e.width * this._resolution : this.pixelWidth = this.resource ? this.resourceWidth ?? 1 : 1, e.height ? this.pixelHeight = e.height * this._resolution : this.pixelHeight = this.resource ? this.resourceHeight ?? 1 : 1, this.width = this.pixelWidth / this._resolution, this.height = this.pixelHeight / this._resolution, this.format = e.format, this.dimension = e.dimensions, this.viewDimension = e.viewDimension ?? e.dimensions, this.arrayLayerCount = e.arrayLayerCount, this.mipLevelCount = e.mipLevelCount, this.autoGenerateMipmaps = e.autoGenerateMipmaps, this.sampleCount = e.sampleCount, this.antialias = e.antialias, this.alphaMode = e.alphaMode, this.style = new Xn(sa(e)), this.destroyed = !1, this._refreshPOT();
|
|
2279
2279
|
}
|
|
2280
2280
|
/** returns itself */
|
|
2281
2281
|
get source() {
|
|
@@ -2443,7 +2443,7 @@ const Kn = class Zn extends ai {
|
|
|
2443
2443
|
throw new Error("Unimplemented");
|
|
2444
2444
|
}
|
|
2445
2445
|
};
|
|
2446
|
-
|
|
2446
|
+
qn.defaultOptions = {
|
|
2447
2447
|
resolution: 1,
|
|
2448
2448
|
format: "bgra8unorm",
|
|
2449
2449
|
alphaMode: "premultiply-alpha-on-upload",
|
|
@@ -2456,7 +2456,7 @@ Kn.defaultOptions = {
|
|
|
2456
2456
|
antialias: !1,
|
|
2457
2457
|
autoGarbageCollect: !1
|
|
2458
2458
|
};
|
|
2459
|
-
let Ge =
|
|
2459
|
+
let Ge = qn;
|
|
2460
2460
|
class Rs extends Ge {
|
|
2461
2461
|
constructor(e) {
|
|
2462
2462
|
const t = e.resource || new Float32Array(e.width * e.height * 4);
|
|
@@ -2604,7 +2604,7 @@ ie.EMPTY = new ie({
|
|
|
2604
2604
|
label: "EMPTY"
|
|
2605
2605
|
})
|
|
2606
2606
|
});
|
|
2607
|
-
ie.EMPTY.destroy =
|
|
2607
|
+
ie.EMPTY.destroy = jn;
|
|
2608
2608
|
ie.WHITE = new ie({
|
|
2609
2609
|
source: new Rs({
|
|
2610
2610
|
resource: new Uint8Array([255, 255, 255, 255]),
|
|
@@ -2615,7 +2615,7 @@ ie.WHITE = new ie({
|
|
|
2615
2615
|
}),
|
|
2616
2616
|
label: "WHITE"
|
|
2617
2617
|
});
|
|
2618
|
-
ie.WHITE.destroy =
|
|
2618
|
+
ie.WHITE.destroy = jn;
|
|
2619
2619
|
function oa(i, e, t) {
|
|
2620
2620
|
const { width: s, height: n } = t.orig, r = t.trim;
|
|
2621
2621
|
if (r) {
|
|
@@ -3243,7 +3243,7 @@ var aa = { grad: 0.9, turn: 360, rad: 360 / (2 * Math.PI) }, Ke = function(i) {
|
|
|
3243
3243
|
return e === void 0 && (e = 0), t === void 0 && (t = Math.pow(10, e)), Math.round(t * i) / t + 0;
|
|
3244
3244
|
}, Le = function(i, e, t) {
|
|
3245
3245
|
return e === void 0 && (e = 0), t === void 0 && (t = 1), i > t ? t : i > e ? i : e;
|
|
3246
|
-
},
|
|
3246
|
+
}, Zn = function(i) {
|
|
3247
3247
|
return (i = isFinite(i) ? i % 360 : 0) > 0 ? i : i + 360;
|
|
3248
3248
|
}, zs = function(i) {
|
|
3249
3249
|
return { r: Le(i.r, 0, 255), g: Le(i.g, 0, 255), b: Le(i.b, 0, 255), a: Le(i.a) };
|
|
@@ -3252,23 +3252,23 @@ var aa = { grad: 0.9, turn: 360, rad: 360 / (2 * Math.PI) }, Ke = function(i) {
|
|
|
3252
3252
|
}, la = /^#([0-9a-f]{3,8})$/i, mi = function(i) {
|
|
3253
3253
|
var e = i.toString(16);
|
|
3254
3254
|
return e.length < 2 ? "0" + e : e;
|
|
3255
|
-
},
|
|
3255
|
+
}, Jn = function(i) {
|
|
3256
3256
|
var e = i.r, t = i.g, s = i.b, n = i.a, r = Math.max(e, t, s), a = r - Math.min(e, t, s), o = a ? r === e ? (t - s) / a : r === t ? 2 + (s - e) / a : 4 + (e - t) / a : 0;
|
|
3257
3257
|
return { h: 60 * (o < 0 ? o + 6 : o), s: r ? a / r * 100 : 0, v: r / 255 * 100, a: n };
|
|
3258
|
-
},
|
|
3258
|
+
}, Qn = function(i) {
|
|
3259
3259
|
var e = i.h, t = i.s, s = i.v, n = i.a;
|
|
3260
3260
|
e = e / 360 * 6, t /= 100, s /= 100;
|
|
3261
3261
|
var r = Math.floor(e), a = s * (1 - t), o = s * (1 - (e - r) * t), h = s * (1 - (1 - e + r) * t), d = r % 6;
|
|
3262
3262
|
return { r: 255 * [s, o, a, a, h, s][d], g: 255 * [h, s, s, o, a, a][d], b: 255 * [a, a, h, s, s, o][d], a: n };
|
|
3263
3263
|
}, Ys = function(i) {
|
|
3264
|
-
return { h:
|
|
3264
|
+
return { h: Zn(i.h), s: Le(i.s, 0, 100), l: Le(i.l, 0, 100), a: Le(i.a) };
|
|
3265
3265
|
}, Xs = function(i) {
|
|
3266
3266
|
return { h: le(i.h), s: le(i.s), l: le(i.l), a: le(i.a, 3) };
|
|
3267
3267
|
}, qs = function(i) {
|
|
3268
|
-
return
|
|
3268
|
+
return Qn((t = (e = i).s, { h: e.h, s: (t *= ((s = e.l) < 50 ? s : 100 - s) / 100) > 0 ? 2 * t / (s + t) * 100 : 0, v: s + t, a: e.a }));
|
|
3269
3269
|
var e, t, s;
|
|
3270
3270
|
}, Zt = function(i) {
|
|
3271
|
-
return { h: (e =
|
|
3271
|
+
return { h: (e = Jn(i)).h, s: (n = (200 - (t = e.s)) * (s = e.v) / 100) > 0 && n < 200 ? t * s / 100 / (n <= 100 ? n : 200 - n) * 100 : 0, l: n / 2, a: e.a };
|
|
3272
3272
|
var e, t, s, n;
|
|
3273
3273
|
}, ha = /^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i, ca = /^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i, da = /^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i, ua = /^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i, us = { string: [[function(i) {
|
|
3274
3274
|
var e = la.exec(i);
|
|
@@ -3293,9 +3293,9 @@ var aa = { grad: 0.9, turn: 360, rad: 360 / (2 * Math.PI) }, Ke = function(i) {
|
|
|
3293
3293
|
var e = i.h, t = i.s, s = i.v, n = i.a, r = n === void 0 ? 1 : n;
|
|
3294
3294
|
if (!Ke(e) || !Ke(t) || !Ke(s)) return null;
|
|
3295
3295
|
var a = (function(o) {
|
|
3296
|
-
return { h:
|
|
3296
|
+
return { h: Zn(o.h), s: Le(o.s, 0, 100), v: Le(o.v, 0, 100), a: Le(o.a) };
|
|
3297
3297
|
})({ h: Number(e), s: Number(t), v: Number(s), a: Number(r) });
|
|
3298
|
-
return
|
|
3298
|
+
return Qn(a);
|
|
3299
3299
|
}, "hsv"]] }, Ks = function(i, e) {
|
|
3300
3300
|
for (var t = 0; t < e.length; t++) {
|
|
3301
3301
|
var s = e[t][0](i);
|
|
@@ -3338,7 +3338,7 @@ var aa = { grad: 0.9, turn: 360, rad: 360 / (2 * Math.PI) }, Ke = function(i) {
|
|
|
3338
3338
|
return e = Xs(Zt(this.rgba)), t = e.h, s = e.s, n = e.l, (r = e.a) < 1 ? "hsla(" + t + ", " + s + "%, " + n + "%, " + r + ")" : "hsl(" + t + ", " + s + "%, " + n + "%)";
|
|
3339
3339
|
var e, t, s, n, r;
|
|
3340
3340
|
}, i.prototype.toHsv = function() {
|
|
3341
|
-
return e =
|
|
3341
|
+
return e = Jn(this.rgba), { h: le(e.h), s: le(e.s), v: le(e.v), a: le(e.a, 3) };
|
|
3342
3342
|
var e;
|
|
3343
3343
|
}, i.prototype.invert = function() {
|
|
3344
3344
|
return He({ r: 255 - (e = this.rgba).r, g: 255 - e.g, b: 255 - e.b, a: e.a });
|
|
@@ -4553,12 +4553,12 @@ const Ia = {
|
|
|
4553
4553
|
} else this.renderGroup && (e.addBounds(s, this.relativeGroupTransform), Je.return(s));
|
|
4554
4554
|
}
|
|
4555
4555
|
};
|
|
4556
|
-
function
|
|
4556
|
+
function er(i, e, t) {
|
|
4557
4557
|
t.clear();
|
|
4558
4558
|
let s, n;
|
|
4559
|
-
return i.parent ? e ? s = i.parent.worldTransform : (n = Se.get().identity(), s = ks(i, n)) : s = Y.IDENTITY,
|
|
4559
|
+
return i.parent ? e ? s = i.parent.worldTransform : (n = Se.get().identity(), s = ks(i, n)) : s = Y.IDENTITY, tr(i, t, s, e), n && Se.return(n), t.isValid || t.set(0, 0, 0, 0), t;
|
|
4560
4560
|
}
|
|
4561
|
-
function
|
|
4561
|
+
function tr(i, e, t, s) {
|
|
4562
4562
|
var o, h;
|
|
4563
4563
|
if (!i.visible || !i.measurable) return;
|
|
4564
4564
|
let n;
|
|
@@ -4570,7 +4570,7 @@ function ir(i, e, t, s) {
|
|
|
4570
4570
|
const d = i.bounds;
|
|
4571
4571
|
d && !d.isEmpty() && (e.matrix = n, e.addBounds(d));
|
|
4572
4572
|
for (let f = 0; f < i.children.length; f++)
|
|
4573
|
-
|
|
4573
|
+
tr(i.children[f], e, n, s);
|
|
4574
4574
|
}
|
|
4575
4575
|
if (a) {
|
|
4576
4576
|
for (let d = 0; d < i.effects.length; d++)
|
|
@@ -4623,10 +4623,10 @@ const Ra = {
|
|
|
4623
4623
|
return Ai(e);
|
|
4624
4624
|
}
|
|
4625
4625
|
};
|
|
4626
|
-
function
|
|
4627
|
-
return e.clear(), t || (t = Y.IDENTITY),
|
|
4626
|
+
function ir(i, e, t) {
|
|
4627
|
+
return e.clear(), t || (t = Y.IDENTITY), sr(i, e, t, i, !0), e.isValid || e.set(0, 0, 0, 0), e;
|
|
4628
4628
|
}
|
|
4629
|
-
function
|
|
4629
|
+
function sr(i, e, t, s, n) {
|
|
4630
4630
|
var h, d;
|
|
4631
4631
|
let r;
|
|
4632
4632
|
if (n)
|
|
@@ -4644,7 +4644,7 @@ function nr(i, e, t, s, n) {
|
|
|
4644
4644
|
i.renderPipeId && (e.matrix = r, e.addBounds(i.bounds));
|
|
4645
4645
|
const f = i.children;
|
|
4646
4646
|
for (let u = 0; u < f.length; u++)
|
|
4647
|
-
|
|
4647
|
+
sr(f[u], e, r, s, !1);
|
|
4648
4648
|
}
|
|
4649
4649
|
if (o) {
|
|
4650
4650
|
for (let f = 0; f < i.effects.length; f++)
|
|
@@ -4653,11 +4653,11 @@ function nr(i, e, t, s, n) {
|
|
|
4653
4653
|
}
|
|
4654
4654
|
Se.return(r);
|
|
4655
4655
|
}
|
|
4656
|
-
function
|
|
4656
|
+
function nr(i, e) {
|
|
4657
4657
|
const t = i.children;
|
|
4658
4658
|
for (let s = 0; s < t.length; s++) {
|
|
4659
4659
|
const n = t[s], r = n.uid, a = (n._didViewChangeTick & 65535) << 16 | n._didContainerChangeTick & 65535, o = e.index;
|
|
4660
|
-
(e.data[o] !== r || e.data[o + 1] !== a) && (e.data[e.index] = r, e.data[e.index + 1] = a, e.didChange = !0), e.index = o + 2, n.children.length &&
|
|
4660
|
+
(e.data[o] !== r || e.data[o + 1] !== a) && (e.data[e.index] = r, e.data[e.index + 1] = a, e.didChange = !0), e.index = o + 2, n.children.length && nr(n, e);
|
|
4661
4661
|
}
|
|
4662
4662
|
return e.didChange;
|
|
4663
4663
|
}
|
|
@@ -4680,10 +4680,10 @@ const Oa = new Y(), ka = {
|
|
|
4680
4680
|
localBounds: new ft()
|
|
4681
4681
|
});
|
|
4682
4682
|
const i = this._localBoundsCacheData;
|
|
4683
|
-
return i.index = 1, i.didChange = !1, i.data[0] !== this._didViewChangeTick && (i.didChange = !0, i.data[0] = this._didViewChangeTick),
|
|
4683
|
+
return i.index = 1, i.didChange = !1, i.data[0] !== this._didViewChangeTick && (i.didChange = !0, i.data[0] = this._didViewChangeTick), nr(this, i), i.didChange && ir(this, i.localBounds, Oa), i.localBounds;
|
|
4684
4684
|
},
|
|
4685
4685
|
getBounds(i, e) {
|
|
4686
|
-
return
|
|
4686
|
+
return er(this, i, e || new ft());
|
|
4687
4687
|
}
|
|
4688
4688
|
}, Ma = {
|
|
4689
4689
|
_onRender: null,
|
|
@@ -4769,7 +4769,7 @@ class Pa {
|
|
|
4769
4769
|
* @param {SCALE_MODE} [textureOptions.scaleMode] - See {@link SCALE_MODE} for possible values.
|
|
4770
4770
|
*/
|
|
4771
4771
|
constructor(e) {
|
|
4772
|
-
this._poolKeyHash = /* @__PURE__ */ Object.create(null), this._texturePool = {}, this.textureOptions = e || {}, this.enableFullScreen = !1, this.textureStyle = new
|
|
4772
|
+
this._poolKeyHash = /* @__PURE__ */ Object.create(null), this._texturePool = {}, this.textureOptions = e || {}, this.enableFullScreen = !1, this.textureStyle = new Xn(this.textureOptions);
|
|
4773
4773
|
}
|
|
4774
4774
|
/**
|
|
4775
4775
|
* Creates texture with params that were specified in pool constructor.
|
|
@@ -4854,8 +4854,8 @@ class Pa {
|
|
|
4854
4854
|
this._texturePool = {};
|
|
4855
4855
|
}
|
|
4856
4856
|
}
|
|
4857
|
-
const
|
|
4858
|
-
Os.register(
|
|
4857
|
+
const rr = new Pa();
|
|
4858
|
+
Os.register(rr);
|
|
4859
4859
|
class Ua {
|
|
4860
4860
|
constructor() {
|
|
4861
4861
|
this.renderPipeId = "renderGroup", this.root = null, this.canBundle = !1, this.renderGroupParent = null, this.renderGroupChildren = [], this.worldTransform = new Y(), this.worldColorAlpha = 4294967295, this.worldColor = 16777215, this.worldAlpha = 1, this.childrenToUpdate = /* @__PURE__ */ Object.create(null), this.updateTick = 0, this.gcTick = 0, this.childrenRenderablesToUpdate = { list: [], index: 0 }, this.structureDidChange = !0, this.instructionSet = new Ba(), this._onRenderContainers = [], this.textureNeedsUpdate = !0, this.isCachedAsTexture = !1, this._matrixDirty = 7;
|
|
@@ -4872,7 +4872,7 @@ class Ua {
|
|
|
4872
4872
|
this.textureOptions = e, this.isCachedAsTexture = !0, this.textureNeedsUpdate = !0;
|
|
4873
4873
|
}
|
|
4874
4874
|
disableCacheAsTexture() {
|
|
4875
|
-
this.isCachedAsTexture = !1, this.texture && (
|
|
4875
|
+
this.isCachedAsTexture = !1, this.texture && (rr.returnTexture(this.texture, !0), this.texture = null);
|
|
4876
4876
|
}
|
|
4877
4877
|
updateCacheTexture() {
|
|
4878
4878
|
this.textureNeedsUpdate = !0;
|
|
@@ -6078,20 +6078,20 @@ class vt extends Va {
|
|
|
6078
6078
|
}
|
|
6079
6079
|
}
|
|
6080
6080
|
const Ha = new ft();
|
|
6081
|
-
function
|
|
6081
|
+
function or(i, e, t) {
|
|
6082
6082
|
const s = Ha;
|
|
6083
|
-
i.measurable = !0,
|
|
6083
|
+
i.measurable = !0, er(i, t, s), e.addBoundsMask(s), i.measurable = !1;
|
|
6084
6084
|
}
|
|
6085
|
-
function
|
|
6085
|
+
function ar(i, e, t) {
|
|
6086
6086
|
const s = Je.get();
|
|
6087
6087
|
i.measurable = !0;
|
|
6088
|
-
const n = Se.get().identity(), r =
|
|
6089
|
-
|
|
6088
|
+
const n = Se.get().identity(), r = lr(i, t, n);
|
|
6089
|
+
ir(i, s, r), i.measurable = !1, e.addBoundsMask(s), Se.return(n), Je.return(s);
|
|
6090
6090
|
}
|
|
6091
|
-
function
|
|
6092
|
-
return i ? (i !== e && (
|
|
6091
|
+
function lr(i, e, t) {
|
|
6092
|
+
return i ? (i !== e && (lr(i.parent, e, t), i.updateLocalTransform(), t.append(i.localTransform)), t) : (ct("Mask bounds, renderable is not inside the root container"), t);
|
|
6093
6093
|
}
|
|
6094
|
-
class
|
|
6094
|
+
class hr {
|
|
6095
6095
|
constructor(e) {
|
|
6096
6096
|
this.priority = 0, this.inverse = !1, this.pipe = "alphaMask", e != null && e.mask && this.init(e.mask);
|
|
6097
6097
|
}
|
|
@@ -6102,10 +6102,10 @@ class cr {
|
|
|
6102
6102
|
this.mask !== null && (this.mask.measurable = !0, this.mask = null);
|
|
6103
6103
|
}
|
|
6104
6104
|
addBounds(e, t) {
|
|
6105
|
-
this.inverse ||
|
|
6105
|
+
this.inverse || or(this.mask, e, t);
|
|
6106
6106
|
}
|
|
6107
6107
|
addLocalBounds(e, t) {
|
|
6108
|
-
|
|
6108
|
+
ar(this.mask, e, t);
|
|
6109
6109
|
}
|
|
6110
6110
|
containsPoint(e, t) {
|
|
6111
6111
|
const s = this.mask;
|
|
@@ -6118,8 +6118,8 @@ class cr {
|
|
|
6118
6118
|
return e instanceof vt;
|
|
6119
6119
|
}
|
|
6120
6120
|
}
|
|
6121
|
-
|
|
6122
|
-
class
|
|
6121
|
+
hr.extension = Z.MaskEffect;
|
|
6122
|
+
class cr {
|
|
6123
6123
|
constructor(e) {
|
|
6124
6124
|
this.priority = 0, this.pipe = "colorMask", e != null && e.mask && this.init(e.mask);
|
|
6125
6125
|
}
|
|
@@ -6132,8 +6132,8 @@ class dr {
|
|
|
6132
6132
|
return typeof e == "number";
|
|
6133
6133
|
}
|
|
6134
6134
|
}
|
|
6135
|
-
|
|
6136
|
-
class
|
|
6135
|
+
cr.extension = Z.MaskEffect;
|
|
6136
|
+
class dr {
|
|
6137
6137
|
constructor(e) {
|
|
6138
6138
|
this.priority = 0, this.pipe = "stencilMask", e != null && e.mask && this.init(e.mask);
|
|
6139
6139
|
}
|
|
@@ -6144,10 +6144,10 @@ class ur {
|
|
|
6144
6144
|
this.mask !== null && (this.mask.measurable = !0, this.mask.includeInBuild = !0, this.mask = null);
|
|
6145
6145
|
}
|
|
6146
6146
|
addBounds(e, t) {
|
|
6147
|
-
|
|
6147
|
+
or(this.mask, e, t);
|
|
6148
6148
|
}
|
|
6149
6149
|
addLocalBounds(e, t) {
|
|
6150
|
-
|
|
6150
|
+
ar(this.mask, e, t);
|
|
6151
6151
|
}
|
|
6152
6152
|
containsPoint(e, t) {
|
|
6153
6153
|
const s = this.mask;
|
|
@@ -6160,7 +6160,7 @@ class ur {
|
|
|
6160
6160
|
return e instanceof We;
|
|
6161
6161
|
}
|
|
6162
6162
|
}
|
|
6163
|
-
|
|
6163
|
+
dr.extension = Z.MaskEffect;
|
|
6164
6164
|
const $a = {
|
|
6165
6165
|
createCanvas: (i, e) => {
|
|
6166
6166
|
const t = document.createElement("canvas");
|
|
@@ -6192,7 +6192,7 @@ const Ft = {
|
|
|
6192
6192
|
rn = i;
|
|
6193
6193
|
}
|
|
6194
6194
|
};
|
|
6195
|
-
class
|
|
6195
|
+
class ur extends Ge {
|
|
6196
6196
|
constructor(e) {
|
|
6197
6197
|
e.resource || (e.resource = Ft.get().createCanvas()), e.width || (e.width = e.resource.width, e.autoDensity || (e.width /= e.resolution)), e.height || (e.height = e.resource.height, e.autoDensity || (e.height /= e.resolution)), super(e), this.uploadMethodId = "image", this.autoDensity = e.autoDensity, this.resizeCanvas(), this.transparent = !!e.transparent;
|
|
6198
6198
|
}
|
|
@@ -6215,8 +6215,8 @@ class fr extends Ge {
|
|
|
6215
6215
|
return this._context2D || (this._context2D = this.resource.getContext("2d"));
|
|
6216
6216
|
}
|
|
6217
6217
|
}
|
|
6218
|
-
|
|
6219
|
-
class
|
|
6218
|
+
ur.extension = Z.TextureSource;
|
|
6219
|
+
class fr extends Ge {
|
|
6220
6220
|
constructor(e) {
|
|
6221
6221
|
super(e), this.uploadMethodId = "image", this.autoGarbageCollect = !0;
|
|
6222
6222
|
}
|
|
@@ -6224,7 +6224,7 @@ class pr extends Ge {
|
|
|
6224
6224
|
return globalThis.HTMLImageElement && e instanceof HTMLImageElement || typeof ImageBitmap < "u" && e instanceof ImageBitmap || globalThis.VideoFrame && e instanceof VideoFrame;
|
|
6225
6225
|
}
|
|
6226
6226
|
}
|
|
6227
|
-
|
|
6227
|
+
fr.extension = Z.TextureSource;
|
|
6228
6228
|
var Ri = /* @__PURE__ */ ((i) => (i[i.INTERACTION = 50] = "INTERACTION", i[i.HIGH = 25] = "HIGH", i[i.NORMAL = 0] = "NORMAL", i[i.LOW = -25] = "LOW", i[i.UTILITY = -50] = "UTILITY", i))(Ri || {});
|
|
6229
6229
|
class Qi {
|
|
6230
6230
|
/**
|
|
@@ -6276,7 +6276,7 @@ class Qi {
|
|
|
6276
6276
|
return this.next = e ? null : t, this.previous = null, t;
|
|
6277
6277
|
}
|
|
6278
6278
|
}
|
|
6279
|
-
const
|
|
6279
|
+
const pr = class Te {
|
|
6280
6280
|
constructor() {
|
|
6281
6281
|
this.autoStart = !1, this.deltaTime = 1, this.lastTime = -1, this.speed = 1, this.started = !1, this._requestId = null, this._maxElapsedMS = 100, this._minElapsedMS = 0, this._protected = !1, this._lastFrame = -1, this._head = new Qi(null, null, 1 / 0), this.deltaMS = 1 / Te.targetFPMS, this.elapsedMS = 1 / Te.targetFPMS, this._tick = (e) => {
|
|
6282
6282
|
this._requestId = null, this.started && (this.update(e), this.started && this._requestId === null && this._head.next && (this._requestId = requestAnimationFrame(this._tick)));
|
|
@@ -6706,8 +6706,8 @@ const mr = class Te {
|
|
|
6706
6706
|
return Te._system;
|
|
6707
6707
|
}
|
|
6708
6708
|
};
|
|
6709
|
-
|
|
6710
|
-
let Mt =
|
|
6709
|
+
pr.targetFPMS = 0.06;
|
|
6710
|
+
let Mt = pr, es;
|
|
6711
6711
|
async function ja() {
|
|
6712
6712
|
return es ?? (es = (async () => {
|
|
6713
6713
|
var a;
|
|
@@ -6734,10 +6734,10 @@ async function ja() {
|
|
|
6734
6734
|
return e.readPixels(0, 0, 1, 1, e.RGBA, e.UNSIGNED_BYTE, r), e.deleteFramebuffer(n), e.deleteTexture(s), (a = e.getExtension("WEBGL_lose_context")) == null || a.loseContext(), r[0] <= r[3] ? "premultiplied-alpha" : "premultiply-alpha-on-upload";
|
|
6735
6735
|
})()), es;
|
|
6736
6736
|
}
|
|
6737
|
-
const Bi = class
|
|
6737
|
+
const Bi = class mr extends Ge {
|
|
6738
6738
|
constructor(e) {
|
|
6739
6739
|
super(e), this.isReady = !1, this.uploadMethodId = "video", e = {
|
|
6740
|
-
...
|
|
6740
|
+
...mr.defaultOptions,
|
|
6741
6741
|
...e
|
|
6742
6742
|
}, this._autoUpdate = !0, this._isConnectedToTicker = !1, this._updateFPS = e.updateFPS || 0, this._msToNextUpdate = 0, this.autoPlay = e.autoPlay !== !1, this.alphaMode = e.alphaMode ?? "premultiply-alpha-on-upload", this._videoFrameRequestCallback = this._videoFrameRequestCallback.bind(this), this._videoFrameRequestCallbackHandle = null, this._load = null, this._resolve = null, this._reject = null, this._onCanPlay = this._onCanPlay.bind(this), this._onCanPlayThrough = this._onCanPlayThrough.bind(this), this._onError = this._onError.bind(this), this._onPlayStart = this._onPlayStart.bind(this), this._onPlayStop = this._onPlayStop.bind(this), this._onSeeked = this._onSeeked.bind(this), e.autoLoad !== !1 && this.load();
|
|
6743
6743
|
}
|
|
@@ -6976,7 +6976,7 @@ class Ya {
|
|
|
6976
6976
|
}
|
|
6977
6977
|
const Rt = new Ya(), ms = [];
|
|
6978
6978
|
De.handleByList(Z.TextureSource, ms);
|
|
6979
|
-
function
|
|
6979
|
+
function gr(i = {}) {
|
|
6980
6980
|
const e = i && i.resource, t = e ? i.resource : i, s = e ? i : { resource: i };
|
|
6981
6981
|
for (let n = 0; n < ms.length; n++) {
|
|
6982
6982
|
const r = ms[n];
|
|
@@ -6989,7 +6989,7 @@ function Xa(i = {}, e = !1) {
|
|
|
6989
6989
|
const t = i && i.resource, s = t ? i.resource : i, n = t ? i : { resource: i };
|
|
6990
6990
|
if (!e && Rt.has(s))
|
|
6991
6991
|
return Rt.get(s);
|
|
6992
|
-
const r = new ie({ source:
|
|
6992
|
+
const r = new ie({ source: gr(n) });
|
|
6993
6993
|
return r.on("destroy", () => {
|
|
6994
6994
|
Rt.has(s) && Rt.remove(s);
|
|
6995
6995
|
}), e || Rt.set(s, r), r;
|
|
@@ -6998,9 +6998,9 @@ function qa(i, e = !1) {
|
|
|
6998
6998
|
return typeof i == "string" ? Rt.get(i) : i instanceof Ge ? new ie({ source: i }) : Xa(i, e);
|
|
6999
6999
|
}
|
|
7000
7000
|
ie.from = qa;
|
|
7001
|
-
Ge.from =
|
|
7002
|
-
De.add(cr, dr,
|
|
7003
|
-
var
|
|
7001
|
+
Ge.from = gr;
|
|
7002
|
+
De.add(hr, cr, dr, za, fr, ur, Rs);
|
|
7003
|
+
var yr = /* @__PURE__ */ ((i) => (i[i.Low = 0] = "Low", i[i.Normal = 1] = "Normal", i[i.High = 2] = "High", i))(yr || {});
|
|
7004
7004
|
function Fe(i) {
|
|
7005
7005
|
if (typeof i != "string")
|
|
7006
7006
|
throw new TypeError(`Path must be a string. Received ${JSON.stringify(i)}`);
|
|
@@ -7401,11 +7401,11 @@ const si = {
|
|
|
7401
7401
|
delimiter: ":",
|
|
7402
7402
|
joinExtensions: [".html"]
|
|
7403
7403
|
};
|
|
7404
|
-
function
|
|
7404
|
+
function Cr(i, e, t, s, n) {
|
|
7405
7405
|
const r = e[t];
|
|
7406
7406
|
for (let a = 0; a < r.length; a++) {
|
|
7407
7407
|
const o = r[a];
|
|
7408
|
-
t < e.length - 1 ?
|
|
7408
|
+
t < e.length - 1 ? Cr(i.replace(s[t], o), e, t + 1, s, n) : n.push(i.replace(s[t], o));
|
|
7409
7409
|
}
|
|
7410
7410
|
}
|
|
7411
7411
|
function Qa(i) {
|
|
@@ -7415,13 +7415,13 @@ function Qa(i) {
|
|
|
7415
7415
|
t.forEach((r) => {
|
|
7416
7416
|
const a = r.substring(1, r.length - 1).split(",");
|
|
7417
7417
|
n.push(a);
|
|
7418
|
-
}),
|
|
7418
|
+
}), Cr(i, n, 0, t, s);
|
|
7419
7419
|
} else
|
|
7420
7420
|
s.push(i);
|
|
7421
7421
|
return s;
|
|
7422
7422
|
}
|
|
7423
7423
|
const on = (i) => !Array.isArray(i);
|
|
7424
|
-
class
|
|
7424
|
+
class br {
|
|
7425
7425
|
constructor() {
|
|
7426
7426
|
this._defaultBundleIdentifierOptions = {
|
|
7427
7427
|
connector: "-",
|
|
@@ -7846,14 +7846,14 @@ class _r {
|
|
|
7846
7846
|
return (this._basePath || this._rootPath) && (e.src = si.toAbsolute(e.src, this._basePath, this._rootPath)), e.alias = s ?? e.alias ?? [e.src], e.src = this._appendDefaultSearchParams(e.src), e.data = { ...n || {}, ...e.data }, e.loadParser = r ?? e.loadParser, e.parser = a ?? e.parser, e.format = o ?? e.format ?? el(e.src), h !== void 0 && (e.progressSize = h), e;
|
|
7847
7847
|
}
|
|
7848
7848
|
}
|
|
7849
|
-
|
|
7849
|
+
br.RETINA_PREFIX = /@([0-9\.]+)x/;
|
|
7850
7850
|
function el(i) {
|
|
7851
7851
|
return i.split(".").pop().split("?").shift().split("#").shift();
|
|
7852
7852
|
}
|
|
7853
7853
|
const an = (i, e) => {
|
|
7854
7854
|
const t = e.split("?")[1];
|
|
7855
7855
|
return t && (i += `?${t}`), i;
|
|
7856
|
-
},
|
|
7856
|
+
}, _r = class Xt {
|
|
7857
7857
|
constructor(e, t) {
|
|
7858
7858
|
this.linkedSheets = [];
|
|
7859
7859
|
let s = e;
|
|
@@ -7968,8 +7968,8 @@ const an = (i, e) => {
|
|
|
7968
7968
|
this._frames = null, this._frameKeys = null, this.data = null, this.textures = null, e && ((t = this._texture) == null || t.destroy(), this.textureSource.destroy()), this._texture = null, this.textureSource = null, this.linkedSheets = [];
|
|
7969
7969
|
}
|
|
7970
7970
|
};
|
|
7971
|
-
|
|
7972
|
-
let ln =
|
|
7971
|
+
_r.BATCH_SIZE = 1e3;
|
|
7972
|
+
let ln = _r;
|
|
7973
7973
|
const tl = [
|
|
7974
7974
|
"jpg",
|
|
7975
7975
|
"png",
|
|
@@ -7988,7 +7988,7 @@ const tl = [
|
|
|
7988
7988
|
"eac",
|
|
7989
7989
|
"astc"
|
|
7990
7990
|
];
|
|
7991
|
-
function
|
|
7991
|
+
function Er(i, e, t) {
|
|
7992
7992
|
const s = {};
|
|
7993
7993
|
if (i.forEach((n) => {
|
|
7994
7994
|
s[n] = e;
|
|
@@ -7997,7 +7997,7 @@ function vr(i, e, t) {
|
|
|
7997
7997
|
}), !t) {
|
|
7998
7998
|
const n = si.dirname(i[0]);
|
|
7999
7999
|
e.linkedSheets.forEach((r, a) => {
|
|
8000
|
-
const o =
|
|
8000
|
+
const o = Er([`${n}/${e.data.meta.related_multi_packs[a]}`], r, !0);
|
|
8001
8001
|
Object.assign(s, o);
|
|
8002
8002
|
});
|
|
8003
8003
|
}
|
|
@@ -8008,7 +8008,7 @@ const il = {
|
|
|
8008
8008
|
/** Handle the caching of the related Spritesheet Textures */
|
|
8009
8009
|
cache: {
|
|
8010
8010
|
test: (i) => i instanceof ln,
|
|
8011
|
-
getCacheableAssets: (i, e) =>
|
|
8011
|
+
getCacheableAssets: (i, e) => Er(i, e, !1)
|
|
8012
8012
|
},
|
|
8013
8013
|
/** Resolve the resolution of the asset. */
|
|
8014
8014
|
resolver: {
|
|
@@ -8024,7 +8024,7 @@ const il = {
|
|
|
8024
8024
|
var t;
|
|
8025
8025
|
const e = i.split(".");
|
|
8026
8026
|
return {
|
|
8027
|
-
resolution: parseFloat(((t =
|
|
8027
|
+
resolution: parseFloat(((t = br.RETINA_PREFIX.exec(i)) == null ? void 0 : t[1]) ?? "1"),
|
|
8028
8028
|
format: e[e.length - 2],
|
|
8029
8029
|
src: i
|
|
8030
8030
|
};
|
|
@@ -8042,7 +8042,7 @@ const il = {
|
|
|
8042
8042
|
id: "spritesheet",
|
|
8043
8043
|
extension: {
|
|
8044
8044
|
type: Z.LoadParser,
|
|
8045
|
-
priority:
|
|
8045
|
+
priority: yr.Normal,
|
|
8046
8046
|
name: "spritesheetLoader"
|
|
8047
8047
|
},
|
|
8048
8048
|
async testParse(i, e) {
|
|
@@ -8126,7 +8126,7 @@ function nl() {
|
|
|
8126
8126
|
}
|
|
8127
8127
|
return $t;
|
|
8128
8128
|
}
|
|
8129
|
-
var
|
|
8129
|
+
var vr = /* @__PURE__ */ ((i) => (i[i.NONE = 0] = "NONE", i[i.COLOR = 16384] = "COLOR", i[i.STENCIL = 1024] = "STENCIL", i[i.DEPTH = 256] = "DEPTH", i[i.COLOR_DEPTH = 16640] = "COLOR_DEPTH", i[i.COLOR_STENCIL = 17408] = "COLOR_STENCIL", i[i.DEPTH_STENCIL = 1280] = "DEPTH_STENCIL", i[i.ALL = 17664] = "ALL", i))(vr || {});
|
|
8130
8130
|
class rl {
|
|
8131
8131
|
/**
|
|
8132
8132
|
* @param name - The function name that will be executed on the listeners added to this Runner.
|
|
@@ -8217,7 +8217,7 @@ const ol = [
|
|
|
8217
8217
|
"update",
|
|
8218
8218
|
"postrender",
|
|
8219
8219
|
"prerender"
|
|
8220
|
-
],
|
|
8220
|
+
], Sr = class Ir extends ai {
|
|
8221
8221
|
/**
|
|
8222
8222
|
* Set up a system with a collection of SystemClasses and runners.
|
|
8223
8223
|
* Systems are attached dynamically to this class when added.
|
|
@@ -8237,7 +8237,7 @@ const ol = [
|
|
|
8237
8237
|
await sl(t), this._addSystems(this.config.systems), this._addPipes(this.config.renderPipes, this.config.renderPipeAdaptors);
|
|
8238
8238
|
for (const s in this._systemsHash)
|
|
8239
8239
|
e = { ...this._systemsHash[s].constructor.defaultOptions, ...e };
|
|
8240
|
-
e = { ...
|
|
8240
|
+
e = { ...Ir.defaultOptions, ...e }, this._roundPixels = e.roundPixels ? 1 : 0;
|
|
8241
8241
|
for (let s = 0; s < this.runners.init.items.length; s++)
|
|
8242
8242
|
await this.runners.init.items[s].init(e);
|
|
8243
8243
|
this._initOptions = e;
|
|
@@ -8271,7 +8271,7 @@ const ol = [
|
|
|
8271
8271
|
*/
|
|
8272
8272
|
clear(e = {}) {
|
|
8273
8273
|
const t = this;
|
|
8274
|
-
e.target || (e.target = t.renderTarget.renderTarget), e.clearColor || (e.clearColor = this.background.colorRgba), e.clear ?? (e.clear =
|
|
8274
|
+
e.target || (e.target = t.renderTarget.renderTarget), e.clearColor || (e.clearColor = this.background.colorRgba), e.clear ?? (e.clear = vr.ALL);
|
|
8275
8275
|
const { clear: s, clearColor: n, target: r, mipLevel: a, layer: o } = e;
|
|
8276
8276
|
Ii.shared.setValue(n ?? this.background.colorRgba), t.renderTarget.clear(r, s, Ii.shared.toArray(), a ?? 0, o ?? 0);
|
|
8277
8277
|
}
|
|
@@ -8429,7 +8429,7 @@ const ol = [
|
|
|
8429
8429
|
this.runners.resetState.emit();
|
|
8430
8430
|
}
|
|
8431
8431
|
};
|
|
8432
|
-
|
|
8432
|
+
Sr.defaultOptions = {
|
|
8433
8433
|
/**
|
|
8434
8434
|
* Default resolution / device pixel ratio of the renderer.
|
|
8435
8435
|
* @default 1
|
|
@@ -8464,13 +8464,13 @@ Ir.defaultOptions = {
|
|
|
8464
8464
|
*/
|
|
8465
8465
|
roundPixels: !1
|
|
8466
8466
|
};
|
|
8467
|
-
let
|
|
8467
|
+
let Ar = Sr, Ci;
|
|
8468
8468
|
function al(i) {
|
|
8469
8469
|
return Ci !== void 0 || (Ci = (() => {
|
|
8470
8470
|
var t;
|
|
8471
8471
|
const e = {
|
|
8472
8472
|
stencil: !0,
|
|
8473
|
-
failIfMajorPerformanceCaveat: i ??
|
|
8473
|
+
failIfMajorPerformanceCaveat: i ?? Ar.defaultOptions.failIfMajorPerformanceCaveat
|
|
8474
8474
|
};
|
|
8475
8475
|
try {
|
|
8476
8476
|
if (!Ft.get().getWebGLRenderingContext())
|
|
@@ -8510,17 +8510,17 @@ async function hl(i) {
|
|
|
8510
8510
|
for (let r = 0; r < e.length; r++) {
|
|
8511
8511
|
const a = e[r];
|
|
8512
8512
|
if (a === "webgpu" && await ll()) {
|
|
8513
|
-
const { WebGPURenderer: o } = await import("./WebGPURenderer-
|
|
8513
|
+
const { WebGPURenderer: o } = await import("./WebGPURenderer-SF1OSYpo.js");
|
|
8514
8514
|
t = o, s = { ...i, ...i.webgpu };
|
|
8515
8515
|
break;
|
|
8516
8516
|
} else if (a === "webgl" && al(
|
|
8517
|
-
i.failIfMajorPerformanceCaveat ??
|
|
8517
|
+
i.failIfMajorPerformanceCaveat ?? Ar.defaultOptions.failIfMajorPerformanceCaveat
|
|
8518
8518
|
)) {
|
|
8519
|
-
const { WebGLRenderer: o } = await import("./WebGLRenderer-
|
|
8519
|
+
const { WebGLRenderer: o } = await import("./WebGLRenderer-Ci14rIHw.js");
|
|
8520
8520
|
t = o, s = { ...i, ...i.webgl };
|
|
8521
8521
|
break;
|
|
8522
8522
|
} else if (a === "canvas") {
|
|
8523
|
-
const { CanvasRenderer: o } = await import("./CanvasRenderer-
|
|
8523
|
+
const { CanvasRenderer: o } = await import("./CanvasRenderer-BL1L0Zug.js");
|
|
8524
8524
|
t = o, s = { ...i, ...i.canvasOptions };
|
|
8525
8525
|
break;
|
|
8526
8526
|
}
|
|
@@ -8530,23 +8530,23 @@ async function hl(i) {
|
|
|
8530
8530
|
const n = new t();
|
|
8531
8531
|
return await n.init(s), n;
|
|
8532
8532
|
}
|
|
8533
|
-
const
|
|
8534
|
-
class
|
|
8533
|
+
const wr = "8.17.1";
|
|
8534
|
+
class xr {
|
|
8535
8535
|
static init() {
|
|
8536
8536
|
var e;
|
|
8537
|
-
(e = globalThis.__PIXI_APP_INIT__) == null || e.call(globalThis, this,
|
|
8537
|
+
(e = globalThis.__PIXI_APP_INIT__) == null || e.call(globalThis, this, wr);
|
|
8538
8538
|
}
|
|
8539
8539
|
static destroy() {
|
|
8540
8540
|
}
|
|
8541
8541
|
}
|
|
8542
|
-
|
|
8542
|
+
xr.extension = Z.Application;
|
|
8543
8543
|
class cl {
|
|
8544
8544
|
constructor(e) {
|
|
8545
8545
|
this._renderer = e;
|
|
8546
8546
|
}
|
|
8547
8547
|
init() {
|
|
8548
8548
|
var e;
|
|
8549
|
-
(e = globalThis.__PIXI_RENDERER_INIT__) == null || e.call(globalThis, this._renderer,
|
|
8549
|
+
(e = globalThis.__PIXI_RENDERER_INIT__) == null || e.call(globalThis, this._renderer, wr);
|
|
8550
8550
|
}
|
|
8551
8551
|
destroy() {
|
|
8552
8552
|
this._renderer = null;
|
|
@@ -8560,7 +8560,7 @@ cl.extension = {
|
|
|
8560
8560
|
name: "initHook",
|
|
8561
8561
|
priority: -10
|
|
8562
8562
|
};
|
|
8563
|
-
class
|
|
8563
|
+
class Tr {
|
|
8564
8564
|
/**
|
|
8565
8565
|
* Initialize the plugin with scope of application instance
|
|
8566
8566
|
* @private
|
|
@@ -8605,8 +8605,8 @@ class Rr {
|
|
|
8605
8605
|
globalThis.removeEventListener("resize", this.queueResize), this._cancelResize(), this._cancelResize = null, this.queueResize = null, this.resizeTo = null, this.resize = null;
|
|
8606
8606
|
}
|
|
8607
8607
|
}
|
|
8608
|
-
|
|
8609
|
-
class
|
|
8608
|
+
Tr.extension = Z.Application;
|
|
8609
|
+
class Rr {
|
|
8610
8610
|
/**
|
|
8611
8611
|
* Initialize the plugin with scope of application instance
|
|
8612
8612
|
* @private
|
|
@@ -8645,10 +8645,10 @@ class Or {
|
|
|
8645
8645
|
}
|
|
8646
8646
|
}
|
|
8647
8647
|
}
|
|
8648
|
-
|
|
8648
|
+
Rr.extension = Z.Application;
|
|
8649
|
+
De.add(Tr);
|
|
8649
8650
|
De.add(Rr);
|
|
8650
|
-
|
|
8651
|
-
const kr = class ys {
|
|
8651
|
+
const Or = class ys {
|
|
8652
8652
|
constructor(...e) {
|
|
8653
8653
|
this.stage = new We(), e[0] !== void 0 && Oe(Qe, "Application constructor options are deprecated, please use Application.init() instead.");
|
|
8654
8654
|
}
|
|
@@ -8810,15 +8810,15 @@ const kr = class ys {
|
|
|
8810
8810
|
}), this.stage.destroy(t), this.stage = null, this.renderer.destroy(e), this.renderer = null;
|
|
8811
8811
|
}
|
|
8812
8812
|
};
|
|
8813
|
-
|
|
8814
|
-
let
|
|
8815
|
-
De.handleByList(Z.Application,
|
|
8816
|
-
De.add(
|
|
8813
|
+
Or._plugins = [];
|
|
8814
|
+
let kr = Or;
|
|
8815
|
+
De.handleByList(Z.Application, kr._plugins);
|
|
8816
|
+
De.add(xr);
|
|
8817
8817
|
De.add(zo, Yo);
|
|
8818
8818
|
const It = 480, jt = 480;
|
|
8819
8819
|
class dl {
|
|
8820
8820
|
constructor() {
|
|
8821
|
-
this.container = null, this.resizeObserver = null, this.mode = "floating", this.targetEl = null, this.app = new
|
|
8821
|
+
this.container = null, this.resizeObserver = null, this.mode = "floating", this.targetEl = null, this.app = new kr();
|
|
8822
8822
|
}
|
|
8823
8823
|
/**
|
|
8824
8824
|
* Initialize the stage.
|
|
@@ -9796,13 +9796,13 @@ function Al() {
|
|
|
9796
9796
|
return di(Gi(l, p.length - c), p, c, m);
|
|
9797
9797
|
}
|
|
9798
9798
|
function X(p, l, c, m) {
|
|
9799
|
-
return di(
|
|
9799
|
+
return di(No(l), p, c, m);
|
|
9800
9800
|
}
|
|
9801
9801
|
function ce(p, l, c, m) {
|
|
9802
9802
|
return di(Ps(l), p, c, m);
|
|
9803
9803
|
}
|
|
9804
9804
|
function fe(p, l, c, m) {
|
|
9805
|
-
return di(
|
|
9805
|
+
return di(Lo(l, p.length - c), p, c, m);
|
|
9806
9806
|
}
|
|
9807
9807
|
o.prototype.write = function(l, c, m, b) {
|
|
9808
9808
|
if (c === void 0)
|
|
@@ -9910,7 +9910,7 @@ function Al() {
|
|
|
9910
9910
|
(!l || l < 0) && (l = 0), (!c || c < 0 || c > m) && (c = m);
|
|
9911
9911
|
let b = "";
|
|
9912
9912
|
for (let v = l; v < c; ++v)
|
|
9913
|
-
b +=
|
|
9913
|
+
b += Do[p[v]];
|
|
9914
9914
|
return b;
|
|
9915
9915
|
}
|
|
9916
9916
|
function be(p, l, c) {
|
|
@@ -10235,7 +10235,7 @@ function Al() {
|
|
|
10235
10235
|
);
|
|
10236
10236
|
}
|
|
10237
10237
|
const Vt = /[^+/0-9A-Za-z-_]/g;
|
|
10238
|
-
function
|
|
10238
|
+
function Mo(p) {
|
|
10239
10239
|
if (p = p.split("=")[0], p = p.trim().replace(Vt, ""), p.length < 2) return "";
|
|
10240
10240
|
for (; p.length % 4 !== 0; )
|
|
10241
10241
|
p = p + "=";
|
|
@@ -10295,13 +10295,13 @@ function Al() {
|
|
|
10295
10295
|
}
|
|
10296
10296
|
return v;
|
|
10297
10297
|
}
|
|
10298
|
-
function
|
|
10298
|
+
function No(p) {
|
|
10299
10299
|
const l = [];
|
|
10300
10300
|
for (let c = 0; c < p.length; ++c)
|
|
10301
10301
|
l.push(p.charCodeAt(c) & 255);
|
|
10302
10302
|
return l;
|
|
10303
10303
|
}
|
|
10304
|
-
function
|
|
10304
|
+
function Lo(p, l) {
|
|
10305
10305
|
let c, m, b;
|
|
10306
10306
|
const v = [];
|
|
10307
10307
|
for (let w = 0; w < p.length && !((l -= 2) < 0); ++w)
|
|
@@ -10309,7 +10309,7 @@ function Al() {
|
|
|
10309
10309
|
return v;
|
|
10310
10310
|
}
|
|
10311
10311
|
function Ps(p) {
|
|
10312
|
-
return e.toByteArray(
|
|
10312
|
+
return e.toByteArray(Mo(p));
|
|
10313
10313
|
}
|
|
10314
10314
|
function di(p, l, c, m) {
|
|
10315
10315
|
let b;
|
|
@@ -10323,7 +10323,7 @@ function Al() {
|
|
|
10323
10323
|
function Vi(p) {
|
|
10324
10324
|
return p !== p;
|
|
10325
10325
|
}
|
|
10326
|
-
const
|
|
10326
|
+
const Do = (function() {
|
|
10327
10327
|
const p = "0123456789abcdef", l = new Array(256);
|
|
10328
10328
|
for (let c = 0; c < 16; ++c) {
|
|
10329
10329
|
const m = c * 16;
|
|
@@ -10333,15 +10333,15 @@ function Al() {
|
|
|
10333
10333
|
return l;
|
|
10334
10334
|
})();
|
|
10335
10335
|
function it(p) {
|
|
10336
|
-
return typeof BigInt > "u" ?
|
|
10336
|
+
return typeof BigInt > "u" ? Bo : p;
|
|
10337
10337
|
}
|
|
10338
|
-
function
|
|
10338
|
+
function Bo() {
|
|
10339
10339
|
throw new Error("BigInt not supported");
|
|
10340
10340
|
}
|
|
10341
10341
|
})(ts)), ts;
|
|
10342
10342
|
}
|
|
10343
10343
|
var wl = Al();
|
|
10344
|
-
const xl = "https://api.anam.ai", Tl = "/v1",
|
|
10344
|
+
const xl = "https://api.anam.ai", Tl = "/v1", Mr = {
|
|
10345
10345
|
client: "js-sdk",
|
|
10346
10346
|
version: "4.12.0"
|
|
10347
10347
|
};
|
|
@@ -10372,18 +10372,18 @@ var Rl = function(i, e, t, s) {
|
|
|
10372
10372
|
d((s = s.apply(i, e || [])).next());
|
|
10373
10373
|
});
|
|
10374
10374
|
};
|
|
10375
|
-
const
|
|
10375
|
+
const Nr = "https://api.anam.ai", Ms = "/v1";
|
|
10376
10376
|
var et;
|
|
10377
10377
|
(function(i) {
|
|
10378
10378
|
i.CLIENT_METRIC_MEASUREMENT_ERROR = "client_error", i.CLIENT_METRIC_MEASUREMENT_CONNECTION_CLOSED = "client_connection_closed", i.CLIENT_METRIC_MEASUREMENT_CONNECTION_ESTABLISHED = "client_connection_established", i.CLIENT_METRIC_MEASUREMENT_SESSION_ATTEMPT = "client_session_attempt", i.CLIENT_METRIC_MEASUREMENT_SESSION_SUCCESS = "client_session_success";
|
|
10379
10379
|
})(et || (et = {}));
|
|
10380
|
-
let Cs =
|
|
10380
|
+
let Cs = Nr, Lr = Ms, rt, Dr = !1;
|
|
10381
10381
|
const Ol = (i, e = Ms) => {
|
|
10382
|
-
Cs = i,
|
|
10382
|
+
Cs = i, Lr = e;
|
|
10383
10383
|
}, kl = (i) => {
|
|
10384
10384
|
rt = i;
|
|
10385
10385
|
}, Ml = (i) => {
|
|
10386
|
-
|
|
10386
|
+
Dr = i;
|
|
10387
10387
|
};
|
|
10388
10388
|
let ot = {
|
|
10389
10389
|
sessionId: null,
|
|
@@ -10393,11 +10393,11 @@ let ot = {
|
|
|
10393
10393
|
const At = (i) => {
|
|
10394
10394
|
ot = Object.assign(Object.assign({}, ot), i);
|
|
10395
10395
|
}, St = (i, e, t) => Rl(void 0, void 0, void 0, function* () {
|
|
10396
|
-
if (!
|
|
10396
|
+
if (!Dr)
|
|
10397
10397
|
try {
|
|
10398
|
-
const s = Object.assign(Object.assign({},
|
|
10398
|
+
const s = Object.assign(Object.assign({}, Mr), t);
|
|
10399
10399
|
ot.sessionId && (s.sessionId = ot.sessionId), ot.organizationId && (s.organizationId = ot.organizationId), ot.attemptCorrelationId && (s.attemptCorrelationId = ot.attemptCorrelationId);
|
|
10400
|
-
const n = `${
|
|
10400
|
+
const n = `${Lr}/metrics/client`;
|
|
10401
10401
|
let r, a = {
|
|
10402
10402
|
"Content-Type": "application/json"
|
|
10403
10403
|
};
|
|
@@ -10827,7 +10827,7 @@ class Wl {
|
|
|
10827
10827
|
body: JSON.stringify({
|
|
10828
10828
|
personaConfig: e,
|
|
10829
10829
|
sessionOptions: t,
|
|
10830
|
-
clientMetadata:
|
|
10830
|
+
clientMetadata: Mr
|
|
10831
10831
|
})
|
|
10832
10832
|
}), o = yield a.json(), h = o.error;
|
|
10833
10833
|
switch (a.status) {
|
|
@@ -11144,7 +11144,7 @@ const gn = (i, e) => {
|
|
|
11144
11144
|
const t = e - i;
|
|
11145
11145
|
return t > 0 ? t : 0;
|
|
11146
11146
|
};
|
|
11147
|
-
class
|
|
11147
|
+
class Br {
|
|
11148
11148
|
constructor(e) {
|
|
11149
11149
|
this.handlers = /* @__PURE__ */ Object.create(null), this.pendingCalls = /* @__PURE__ */ Object.create(null), this.publicEventEmitter = e;
|
|
11150
11150
|
}
|
|
@@ -11598,7 +11598,7 @@ class Kl {
|
|
|
11598
11598
|
case $e.CLIENT_TOOL_EVENT:
|
|
11599
11599
|
const h = o.data;
|
|
11600
11600
|
this.internalEventEmitter.emit(oe.WEBRTC_CLIENT_TOOL_EVENT_RECEIVED, h);
|
|
11601
|
-
const d =
|
|
11601
|
+
const d = Br.WebRTCClientToolEventToClientToolEvent(h);
|
|
11602
11602
|
this.publicEventEmitter.emit(k.CLIENT_TOOL_EVENT_RECEIVED, d);
|
|
11603
11603
|
break;
|
|
11604
11604
|
case $e.TOOL_CALL_STARTED_EVENT:
|
|
@@ -11797,7 +11797,7 @@ class Jl {
|
|
|
11797
11797
|
const d = this.validateClientConfig(e, t, s);
|
|
11798
11798
|
if (d)
|
|
11799
11799
|
throw new re(d, ue.CLIENT_ERROR_CODE_CONFIGURATION_ERROR, 400);
|
|
11800
|
-
this.personaConfig = t, this.clientOptions = s, (!((n = s == null ? void 0 : s.api) === null || n === void 0) && n.baseUrl || !((r = s == null ? void 0 : s.api) === null || r === void 0) && r.apiVersion) && Ol(s.api.baseUrl ||
|
|
11800
|
+
this.personaConfig = t, this.clientOptions = s, (!((n = s == null ? void 0 : s.api) === null || n === void 0) && n.baseUrl || !((r = s == null ? void 0 : s.api) === null || r === void 0) && r.apiVersion) && Ol(s.api.baseUrl || Nr, s.api.apiVersion || Ms), !((o = (a = s == null ? void 0 : s.api) === null || a === void 0 ? void 0 : a.apiGateway) === null || o === void 0) && o.enabled && kl(s.api.apiGateway), !((h = s == null ? void 0 : s.metrics) === null || h === void 0) && h.disableClientMetrics && Ml(!0), this.publicEventEmitter = new jl(), this.internalEventEmitter = new Hl(), this.toolCallManager = new Br(this.publicEventEmitter), this.apiClient = new Wl(e, s == null ? void 0 : s.apiKey, s == null ? void 0 : s.api), this.messageHistoryClient = new $l(this.publicEventEmitter, this.internalEventEmitter), this.reasoningHistoryClient = new Zl(this.publicEventEmitter, this.internalEventEmitter);
|
|
11801
11801
|
}
|
|
11802
11802
|
decodeJwt(e) {
|
|
11803
11803
|
try {
|
|
@@ -12635,12 +12635,12 @@ function ph(i) {
|
|
|
12635
12635
|
function bs(i) {
|
|
12636
12636
|
try {
|
|
12637
12637
|
var e = i.rules || i.cssRules;
|
|
12638
|
-
return e ? ph(Array.from(e).map(
|
|
12638
|
+
return e ? ph(Array.from(e).map(Fr).join("")) : null;
|
|
12639
12639
|
} catch {
|
|
12640
12640
|
return null;
|
|
12641
12641
|
}
|
|
12642
12642
|
}
|
|
12643
|
-
function
|
|
12643
|
+
function Fr(i) {
|
|
12644
12644
|
var e = i.cssText;
|
|
12645
12645
|
if (mh(i))
|
|
12646
12646
|
try {
|
|
@@ -12652,7 +12652,7 @@ function Pr(i) {
|
|
|
12652
12652
|
function mh(i) {
|
|
12653
12653
|
return "styleSheet" in i;
|
|
12654
12654
|
}
|
|
12655
|
-
var
|
|
12655
|
+
var Pr = (function() {
|
|
12656
12656
|
function i() {
|
|
12657
12657
|
this.idNodeMap = /* @__PURE__ */ new Map(), this.nodeMetaMap = /* @__PURE__ */ new WeakMap();
|
|
12658
12658
|
}
|
|
@@ -12692,7 +12692,7 @@ var Ur = (function() {
|
|
|
12692
12692
|
}, i;
|
|
12693
12693
|
})();
|
|
12694
12694
|
function gh() {
|
|
12695
|
-
return new
|
|
12695
|
+
return new Pr();
|
|
12696
12696
|
}
|
|
12697
12697
|
function Ns(i) {
|
|
12698
12698
|
var e = i.maskInputOptions, t = i.tagName, s = i.type, n = i.value, r = i.maskInputFn, a = n || "";
|
|
@@ -12714,7 +12714,7 @@ function yh(i) {
|
|
|
12714
12714
|
return !0;
|
|
12715
12715
|
}
|
|
12716
12716
|
var Ch = 1, bh = new RegExp("[^a-z0-9-_:]"), ni = -2;
|
|
12717
|
-
function
|
|
12717
|
+
function Ur() {
|
|
12718
12718
|
return Ch++;
|
|
12719
12719
|
}
|
|
12720
12720
|
function _h(i) {
|
|
@@ -12797,7 +12797,7 @@ function Ls() {
|
|
|
12797
12797
|
var i = document.createElement("a");
|
|
12798
12798
|
return i.href = "", i.href;
|
|
12799
12799
|
}
|
|
12800
|
-
function
|
|
12800
|
+
function Wr(i, e, t, s) {
|
|
12801
12801
|
return t === "src" || t === "href" && s && !(e === "use" && s[0] === "#") || t === "xlink:href" && s && s[0] !== "#" || t === "background" && s && (e === "table" || e === "td" || e === "th") ? Nt(i, s) : t === "srcset" && s ? Th(i, s) : t === "style" && s ? ki(s, Ls()) : e === "object" && t === "data" && s ? Nt(i, s) : s;
|
|
12802
12802
|
}
|
|
12803
12803
|
function Oh(i, e, t) {
|
|
@@ -12824,7 +12824,7 @@ function Mi(i, e, t) {
|
|
|
12824
12824
|
}
|
|
12825
12825
|
return t ? Mi(i.parentNode, e, t) : !1;
|
|
12826
12826
|
}
|
|
12827
|
-
function
|
|
12827
|
+
function Gr(i, e, t) {
|
|
12828
12828
|
var s = i.nodeType === i.ELEMENT_NODE ? i : i.parentElement;
|
|
12829
12829
|
if (s === null)
|
|
12830
12830
|
return !1;
|
|
@@ -12949,7 +12949,7 @@ function Dh(i, e) {
|
|
|
12949
12949
|
}
|
|
12950
12950
|
h = ki(h, Ls());
|
|
12951
12951
|
}
|
|
12952
|
-
return f && (h = "SCRIPT_PLACEHOLDER"), !d && !f && h &&
|
|
12952
|
+
return f && (h = "SCRIPT_PLACEHOLDER"), !d && !f && h && Gr(i, s, n) && (h = r ? r(h) : h.replace(/[\S]/g, "*")), {
|
|
12953
12953
|
type: he.Text,
|
|
12954
12954
|
textContent: h || "",
|
|
12955
12955
|
isStyle: d,
|
|
@@ -12959,7 +12959,7 @@ function Dh(i, e) {
|
|
|
12959
12959
|
function Bh(i, e) {
|
|
12960
12960
|
for (var t = e.doc, s = e.blockClass, n = e.blockSelector, r = e.inlineStylesheet, a = e.maskInputOptions, o = a === void 0 ? {} : a, h = e.maskInputFn, d = e.dataURLOptions, f = d === void 0 ? {} : d, u = e.inlineImages, y = e.recordCanvas, g = e.keepIframeSrcFn, C = e.newlyAddedElement, _ = C === void 0 ? !1 : C, E = e.rootId, A = Oh(i, s, n), I = _h(i), S = {}, x = i.attributes.length, T = 0; T < x; T++) {
|
|
12961
12961
|
var M = i.attributes[T];
|
|
12962
|
-
S[M.name] =
|
|
12962
|
+
S[M.name] = Wr(t, I, M.name, M.value);
|
|
12963
12963
|
}
|
|
12964
12964
|
if (I === "link" && r) {
|
|
12965
12965
|
var F = Array.from(t.styleSheets).find(function(be) {
|
|
@@ -13074,7 +13074,7 @@ function Lt(i, e) {
|
|
|
13074
13074
|
if (!be)
|
|
13075
13075
|
return console.warn(i, "not serialized"), null;
|
|
13076
13076
|
var W;
|
|
13077
|
-
s.hasNode(i) ? W = s.getId(i) : Fh(be, E) || !me && be.type === he.Text && !be.isStyle && !be.textContent.replace(/^\s+|\s+$/gm, "").length ? W = ni : W =
|
|
13077
|
+
s.hasNode(i) ? W = s.getId(i) : Fh(be, E) || !me && be.type === he.Text && !be.isStyle && !be.textContent.replace(/^\s+|\s+$/gm, "").length ? W = ni : W = Ur();
|
|
13078
13078
|
var D = Object.assign(be, { id: W });
|
|
13079
13079
|
if (s.add(i, D), W === ni)
|
|
13080
13080
|
return null;
|
|
@@ -13180,7 +13180,7 @@ function Lt(i, e) {
|
|
|
13180
13180
|
}, pe), D;
|
|
13181
13181
|
}
|
|
13182
13182
|
function Ph(i, e) {
|
|
13183
|
-
var t = e || {}, s = t.mirror, n = s === void 0 ? new
|
|
13183
|
+
var t = e || {}, s = t.mirror, n = s === void 0 ? new Pr() : s, r = t.blockClass, a = r === void 0 ? "rr-block" : r, o = t.blockSelector, h = o === void 0 ? null : o, d = t.maskTextClass, f = d === void 0 ? "rr-mask" : d, u = t.maskTextSelector, y = u === void 0 ? null : u, g = t.inlineStylesheet, C = g === void 0 ? !0 : g, _ = t.inlineImages, E = _ === void 0 ? !1 : _, A = t.recordCanvas, I = A === void 0 ? !1 : A, S = t.maskAllInputs, x = S === void 0 ? !1 : S, T = t.maskTextFn, M = t.maskInputFn, F = t.slimDOM, L = F === void 0 ? !1 : F, J = t.dataURLOptions, X = t.preserveWhiteSpace, ce = t.onSerialize, fe = t.onIframeLoad, pe = t.iframeLoadTimeout, H = t.onStylesheetLoad, se = t.stylesheetLoadTimeout, Ae = t.keepIframeSrcFn, ke = Ae === void 0 ? function() {
|
|
13184
13184
|
return !1;
|
|
13185
13185
|
} : Ae, Be = x === !0 ? {
|
|
13186
13186
|
color: !0,
|
|
@@ -13309,10 +13309,10 @@ function Pt(i, e, t) {
|
|
|
13309
13309
|
};
|
|
13310
13310
|
}
|
|
13311
13311
|
}
|
|
13312
|
-
function
|
|
13312
|
+
function Vr() {
|
|
13313
13313
|
return window.innerHeight || document.documentElement && document.documentElement.clientHeight || document.body && document.body.clientHeight;
|
|
13314
13314
|
}
|
|
13315
|
-
function
|
|
13315
|
+
function Hr() {
|
|
13316
13316
|
return window.innerWidth || document.documentElement && document.documentElement.clientWidth || document.body && document.body.clientWidth;
|
|
13317
13317
|
}
|
|
13318
13318
|
function ve(i, e, t, s) {
|
|
@@ -13334,13 +13334,13 @@ function Uh(i, e) {
|
|
|
13334
13334
|
function ns(i, e) {
|
|
13335
13335
|
return e.getId(i) === ni;
|
|
13336
13336
|
}
|
|
13337
|
-
function
|
|
13337
|
+
function $r(i, e) {
|
|
13338
13338
|
if (Jt(i))
|
|
13339
13339
|
return !1;
|
|
13340
13340
|
const t = e.getId(i);
|
|
13341
|
-
return e.has(t) ? i.parentNode && i.parentNode.nodeType === i.DOCUMENT_NODE ? !1 : i.parentNode ?
|
|
13341
|
+
return e.has(t) ? i.parentNode && i.parentNode.nodeType === i.DOCUMENT_NODE ? !1 : i.parentNode ? $r(i.parentNode, e) : !0 : !0;
|
|
13342
13342
|
}
|
|
13343
|
-
function
|
|
13343
|
+
function jr(i) {
|
|
13344
13344
|
return !!i.changedTouches;
|
|
13345
13345
|
}
|
|
13346
13346
|
function Wh(i = window) {
|
|
@@ -13355,13 +13355,13 @@ function Wh(i = window) {
|
|
|
13355
13355
|
return !1;
|
|
13356
13356
|
});
|
|
13357
13357
|
}
|
|
13358
|
-
function
|
|
13358
|
+
function zr(i, e) {
|
|
13359
13359
|
return !!(i.nodeName === "IFRAME" && e.getMeta(i));
|
|
13360
13360
|
}
|
|
13361
|
-
function
|
|
13361
|
+
function Yr(i, e) {
|
|
13362
13362
|
return !!(i.nodeName === "LINK" && i.nodeType === i.ELEMENT_NODE && i.getAttribute && i.getAttribute("rel") === "stylesheet" && e.getMeta(i));
|
|
13363
13363
|
}
|
|
13364
|
-
function
|
|
13364
|
+
function Xr(i) {
|
|
13365
13365
|
return !!(i != null && i.shadowRoot);
|
|
13366
13366
|
}
|
|
13367
13367
|
class Gh {
|
|
@@ -13472,7 +13472,7 @@ class Hh {
|
|
|
13472
13472
|
recordCanvas: this.recordCanvas,
|
|
13473
13473
|
inlineImages: this.inlineImages,
|
|
13474
13474
|
onSerialize: (I) => {
|
|
13475
|
-
|
|
13475
|
+
zr(I, this.mirror) && this.iframeManager.addIframe(I), Yr(I, this.mirror) && this.stylesheetManager.trackLinkElement(I), Xr(o) && this.shadowDomManager.addShadowRoot(o.shadowRoot, this.doc);
|
|
13476
13476
|
},
|
|
13477
13477
|
onIframeLoad: (I, S) => {
|
|
13478
13478
|
this.iframeManager.attachIframe(I, S), this.shadowDomManager.observeAttachShadow(I);
|
|
@@ -13548,7 +13548,7 @@ class Hh {
|
|
|
13548
13548
|
case "characterData": {
|
|
13549
13549
|
const t = e.target.textContent;
|
|
13550
13550
|
!ve(e.target, this.blockClass, this.blockSelector, !1) && t !== e.oldValue && this.texts.push({
|
|
13551
|
-
value:
|
|
13551
|
+
value: Gr(e.target, this.maskTextClass, this.maskTextSelector) && t ? this.maskTextFn ? this.maskTextFn(t) : t.replace(/[\S]/g, "*") : t,
|
|
13552
13552
|
node: e.target
|
|
13553
13553
|
});
|
|
13554
13554
|
break;
|
|
@@ -13584,7 +13584,7 @@ class Hh {
|
|
|
13584
13584
|
for (const o of Array.from(r.style))
|
|
13585
13585
|
t.style.getPropertyValue(o) === "" && (a[o] = !1);
|
|
13586
13586
|
} else
|
|
13587
|
-
n.attributes[e.attributeName] =
|
|
13587
|
+
n.attributes[e.attributeName] = Wr(this.doc, t.tagName, e.attributeName, s);
|
|
13588
13588
|
break;
|
|
13589
13589
|
}
|
|
13590
13590
|
case "childList": {
|
|
@@ -13592,7 +13592,7 @@ class Hh {
|
|
|
13592
13592
|
return;
|
|
13593
13593
|
e.addedNodes.forEach((t) => this.genAdds(t, e.target)), e.removedNodes.forEach((t) => {
|
|
13594
13594
|
const s = this.mirror.getId(t), n = Jt(e.target) ? this.mirror.getId(e.target.host) : this.mirror.getId(e.target);
|
|
13595
|
-
ve(e.target, this.blockClass, this.blockSelector, !1) || ns(t, this.mirror) || !Uh(t, this.mirror) || (this.addedSet.has(t) ? (Es(this.addedSet, t), this.droppedSet.add(t)) : this.addedSet.has(e.target) && s === -1 ||
|
|
13595
|
+
ve(e.target, this.blockClass, this.blockSelector, !1) || ns(t, this.mirror) || !Uh(t, this.mirror) || (this.addedSet.has(t) ? (Es(this.addedSet, t), this.droppedSet.add(t)) : this.addedSet.has(e.target) && s === -1 || $r(e.target, this.mirror) || (this.movedSet.has(t) && this.movedMap[En(s, n)] ? Es(this.movedSet, t) : this.removes.push({
|
|
13596
13596
|
parentId: n,
|
|
13597
13597
|
id: s,
|
|
13598
13598
|
isShadow: Jt(e.target) && Qt(e.target) ? !0 : void 0
|
|
@@ -13662,23 +13662,23 @@ function Es(i, e) {
|
|
|
13662
13662
|
i.delete(e), e.childNodes.forEach((t) => Es(i, t));
|
|
13663
13663
|
}
|
|
13664
13664
|
function vn(i, e, t) {
|
|
13665
|
-
return i.length === 0 ? !1 :
|
|
13665
|
+
return i.length === 0 ? !1 : qr(i, e, t);
|
|
13666
13666
|
}
|
|
13667
|
-
function
|
|
13667
|
+
function qr(i, e, t) {
|
|
13668
13668
|
const { parentNode: s } = e;
|
|
13669
13669
|
if (!s)
|
|
13670
13670
|
return !1;
|
|
13671
13671
|
const n = t.getId(s);
|
|
13672
|
-
return i.some((r) => r.id === n) ? !0 :
|
|
13672
|
+
return i.some((r) => r.id === n) ? !0 : qr(i, s, t);
|
|
13673
13673
|
}
|
|
13674
13674
|
function Sn(i, e) {
|
|
13675
|
-
return i.size === 0 ? !1 :
|
|
13675
|
+
return i.size === 0 ? !1 : Kr(i, e);
|
|
13676
13676
|
}
|
|
13677
|
-
function
|
|
13677
|
+
function Kr(i, e) {
|
|
13678
13678
|
const { parentNode: t } = e;
|
|
13679
|
-
return t ? i.has(t) ? !0 :
|
|
13679
|
+
return t ? i.has(t) ? !0 : Kr(i, t) : !1;
|
|
13680
13680
|
}
|
|
13681
|
-
const bt = [],
|
|
13681
|
+
const bt = [], Zr = typeof CSSGroupingRule < "u", Jr = typeof CSSMediaRule < "u", Qr = typeof CSSSupportsRule < "u", eo = typeof CSSConditionRule < "u";
|
|
13682
13682
|
function li(i) {
|
|
13683
13683
|
try {
|
|
13684
13684
|
if ("composedPath" in i) {
|
|
@@ -13692,7 +13692,7 @@ function li(i) {
|
|
|
13692
13692
|
return i.target;
|
|
13693
13693
|
}
|
|
13694
13694
|
}
|
|
13695
|
-
function
|
|
13695
|
+
function to(i, e) {
|
|
13696
13696
|
var t, s;
|
|
13697
13697
|
const n = new Hh();
|
|
13698
13698
|
bt.push(n), n.init(i);
|
|
@@ -13719,7 +13719,7 @@ function $h({ mousemoveCb: i, sampling: e, doc: t, mirror: s }) {
|
|
|
13719
13719
|
const y = Date.now() - o;
|
|
13720
13720
|
i(a.map((g) => (g.timeOffset -= y, g)), u), a = [], o = null;
|
|
13721
13721
|
}, r), d = ri((u) => {
|
|
13722
|
-
const y = li(u), { clientX: g, clientY: C } =
|
|
13722
|
+
const y = li(u), { clientX: g, clientY: C } = jr(u) ? u.changedTouches[0] : u;
|
|
13723
13723
|
o || (o = Date.now()), a.push({
|
|
13724
13724
|
x: g,
|
|
13725
13725
|
y: C,
|
|
@@ -13745,7 +13745,7 @@ function jh({ mouseInteractionCb: i, doc: e, mirror: t, blockClass: s, blockSele
|
|
|
13745
13745
|
const u = li(f);
|
|
13746
13746
|
if (ve(u, s, n, !0))
|
|
13747
13747
|
return;
|
|
13748
|
-
const y =
|
|
13748
|
+
const y = jr(f) ? f.changedTouches[0] : f;
|
|
13749
13749
|
if (!y)
|
|
13750
13750
|
return;
|
|
13751
13751
|
const g = t.getId(u), { clientX: C, clientY: _ } = y;
|
|
@@ -13763,7 +13763,7 @@ function jh({ mouseInteractionCb: i, doc: e, mirror: t, blockClass: s, blockSele
|
|
|
13763
13763
|
o.forEach((d) => d());
|
|
13764
13764
|
};
|
|
13765
13765
|
}
|
|
13766
|
-
function
|
|
13766
|
+
function io({ scrollCb: i, doc: e, mirror: t, blockClass: s, blockSelector: n, sampling: r }) {
|
|
13767
13767
|
const a = ri((o) => {
|
|
13768
13768
|
const h = li(o);
|
|
13769
13769
|
if (!h || ve(h, s, n, !0))
|
|
@@ -13788,7 +13788,7 @@ function so({ scrollCb: i, doc: e, mirror: t, blockClass: s, blockSelector: n, s
|
|
|
13788
13788
|
function zh({ viewportResizeCb: i }) {
|
|
13789
13789
|
let e = -1, t = -1;
|
|
13790
13790
|
const s = ri(() => {
|
|
13791
|
-
const n =
|
|
13791
|
+
const n = Vr(), r = Hr();
|
|
13792
13792
|
(e !== n || t !== r) && (i({
|
|
13793
13793
|
width: Number(r),
|
|
13794
13794
|
height: Number(n)
|
|
@@ -13859,7 +13859,7 @@ function Xh({ inputCb: i, doc: e, mirror: t, blockClass: s, blockSelector: n, ig
|
|
|
13859
13859
|
function Ni(i) {
|
|
13860
13860
|
const e = [];
|
|
13861
13861
|
function t(s, n) {
|
|
13862
|
-
if (
|
|
13862
|
+
if (Zr && s.parentRule instanceof CSSGroupingRule || Jr && s.parentRule instanceof CSSMediaRule || Qr && s.parentRule instanceof CSSSupportsRule || eo && s.parentRule instanceof CSSConditionRule) {
|
|
13863
13863
|
const a = Array.from(s.parentRule.cssRules).indexOf(s);
|
|
13864
13864
|
n.unshift(a);
|
|
13865
13865
|
} else if (s.parentStyleSheet) {
|
|
@@ -13915,7 +13915,7 @@ function qh({ styleSheetRuleCb: i, mirror: e, stylesheetManager: t }, { win: s }
|
|
|
13915
13915
|
}), o.apply(this, [f]);
|
|
13916
13916
|
});
|
|
13917
13917
|
const h = {};
|
|
13918
|
-
|
|
13918
|
+
Zr ? h.CSSGroupingRule = s.CSSGroupingRule : (Jr && (h.CSSMediaRule = s.CSSMediaRule), eo && (h.CSSConditionRule = s.CSSConditionRule), Qr && (h.CSSSupportsRule = s.CSSSupportsRule));
|
|
13919
13919
|
const d = {};
|
|
13920
13920
|
return Object.entries(h).forEach(([f, u]) => {
|
|
13921
13921
|
d[f] = {
|
|
@@ -13952,7 +13952,7 @@ function qh({ styleSheetRuleCb: i, mirror: e, stylesheetManager: t }, { win: s }
|
|
|
13952
13952
|
});
|
|
13953
13953
|
};
|
|
13954
13954
|
}
|
|
13955
|
-
function
|
|
13955
|
+
function so({ mirror: i, stylesheetManager: e }, t) {
|
|
13956
13956
|
var s, n, r;
|
|
13957
13957
|
let a = null;
|
|
13958
13958
|
t.nodeName === "#document" ? a = i.getId(t) : a = i.getId(t.host);
|
|
@@ -14130,7 +14130,7 @@ function tc(i, e = {}) {
|
|
|
14130
14130
|
return () => {
|
|
14131
14131
|
};
|
|
14132
14132
|
ec(i, e);
|
|
14133
|
-
const s =
|
|
14133
|
+
const s = to(i, i.doc), n = $h(i), r = jh(i), a = io(i), o = zh(i), h = Xh(i), d = Zh(i), f = qh(i, { win: t }), u = so(i, i.doc), y = Kh(i, {
|
|
14134
14134
|
win: t
|
|
14135
14135
|
}), g = i.collectFonts ? Jh(i) : () => {
|
|
14136
14136
|
}, C = Qh(i), _ = [];
|
|
@@ -14182,7 +14182,7 @@ class wn {
|
|
|
14182
14182
|
}
|
|
14183
14183
|
class ic {
|
|
14184
14184
|
constructor(e) {
|
|
14185
|
-
this.iframes = /* @__PURE__ */ new WeakMap(), this.crossOriginIframeMap = /* @__PURE__ */ new WeakMap(), this.crossOriginIframeMirror = new wn(
|
|
14185
|
+
this.iframes = /* @__PURE__ */ new WeakMap(), this.crossOriginIframeMap = /* @__PURE__ */ new WeakMap(), this.crossOriginIframeMirror = new wn(Ur), this.mutationCb = e.mutationCb, this.wrappedEmit = e.wrappedEmit, this.stylesheetManager = e.stylesheetManager, this.recordCrossOriginIframes = e.recordCrossOriginIframes, this.crossOriginIframeStyleMirror = new wn(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)), this.mirror = e.mirror, this.recordCrossOriginIframes && window.addEventListener("message", this.handleMessage.bind(this));
|
|
14186
14186
|
}
|
|
14187
14187
|
addIframe(e) {
|
|
14188
14188
|
this.iframes.set(e, !0), e.contentWindow && this.crossOriginIframeMap.set(e.contentWindow, e);
|
|
@@ -14322,8 +14322,8 @@ class sc {
|
|
|
14322
14322
|
}));
|
|
14323
14323
|
}
|
|
14324
14324
|
addShadowRoot(e, t) {
|
|
14325
|
-
Qt(e) && (this.shadowDoms.has(e) || (this.shadowDoms.add(e),
|
|
14326
|
-
e.adoptedStyleSheets && e.adoptedStyleSheets.length > 0 && this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets, this.mirror.getId(e.host)),
|
|
14325
|
+
Qt(e) && (this.shadowDoms.has(e) || (this.shadowDoms.add(e), to(Object.assign(Object.assign({}, this.bypassOptions), { doc: t, mutationCb: this.mutationCb, mirror: this.mirror, shadowDomManager: this }), e), io(Object.assign(Object.assign({}, this.bypassOptions), { scrollCb: this.scrollCb, doc: e, mirror: this.mirror })), setTimeout(() => {
|
|
14326
|
+
e.adoptedStyleSheets && e.adoptedStyleSheets.length > 0 && this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets, this.mirror.getId(e.host)), so({
|
|
14327
14327
|
mirror: this.mirror,
|
|
14328
14328
|
stylesheetManager: this.bypassOptions.stylesheetManager
|
|
14329
14329
|
}, e);
|
|
@@ -14407,8 +14407,8 @@ function lc(i, e) {
|
|
|
14407
14407
|
let t = xn.get(i);
|
|
14408
14408
|
return t || (t = /* @__PURE__ */ new Map(), xn.set(i, t)), t.has(e) || t.set(e, []), t.get(e);
|
|
14409
14409
|
}
|
|
14410
|
-
const
|
|
14411
|
-
if (!i || !(
|
|
14410
|
+
const no = (i, e, t) => {
|
|
14411
|
+
if (!i || !(oo(i, e) || typeof i == "object"))
|
|
14412
14412
|
return;
|
|
14413
14413
|
const s = i.constructor.name, n = lc(t, s);
|
|
14414
14414
|
let r = n.indexOf(i);
|
|
@@ -14458,8 +14458,8 @@ function wi(i, e, t) {
|
|
|
14458
14458
|
rr_type: i.constructor.name,
|
|
14459
14459
|
args: [wi(i.data, e, t), i.width, i.height]
|
|
14460
14460
|
};
|
|
14461
|
-
if (
|
|
14462
|
-
const s = i.constructor.name, n =
|
|
14461
|
+
if (oo(i, e) || typeof i == "object") {
|
|
14462
|
+
const s = i.constructor.name, n = no(i, e, t);
|
|
14463
14463
|
return {
|
|
14464
14464
|
rr_type: s,
|
|
14465
14465
|
index: n
|
|
@@ -14469,7 +14469,7 @@ function wi(i, e, t) {
|
|
|
14469
14469
|
}
|
|
14470
14470
|
return i;
|
|
14471
14471
|
}
|
|
14472
|
-
const
|
|
14472
|
+
const ro = (i, e, t) => [...i].map((s) => wi(s, e, t)), oo = (i, e) => !![
|
|
14473
14473
|
"WebGLActiveInfo",
|
|
14474
14474
|
"WebGLBuffer",
|
|
14475
14475
|
"WebGLFramebuffer",
|
|
@@ -14491,7 +14491,7 @@ function hc(i, e, t, s) {
|
|
|
14491
14491
|
const o = Pt(e.CanvasRenderingContext2D.prototype, a, function(h) {
|
|
14492
14492
|
return function(...d) {
|
|
14493
14493
|
return ve(this.canvas, t, s, !0) || setTimeout(() => {
|
|
14494
|
-
const f =
|
|
14494
|
+
const f = ro([...d], e, this);
|
|
14495
14495
|
i(this.canvas, {
|
|
14496
14496
|
type: Ut["2D"],
|
|
14497
14497
|
property: a,
|
|
@@ -14549,8 +14549,8 @@ function Rn(i, e, t, s, n, r, a) {
|
|
|
14549
14549
|
const f = Pt(i, d, function(u) {
|
|
14550
14550
|
return function(...y) {
|
|
14551
14551
|
const g = u.apply(this, y);
|
|
14552
|
-
if (
|
|
14553
|
-
const C =
|
|
14552
|
+
if (no(g, a, this), !ve(this.canvas, s, n, !0)) {
|
|
14553
|
+
const C = ro([...y], a, this), _ = {
|
|
14554
14554
|
type: e,
|
|
14555
14555
|
property: d,
|
|
14556
14556
|
args: C
|
|
@@ -14582,10 +14582,10 @@ function cc(i, e, t, s, n) {
|
|
|
14582
14582
|
r.forEach((a) => a());
|
|
14583
14583
|
};
|
|
14584
14584
|
}
|
|
14585
|
-
var
|
|
14585
|
+
var ao = null;
|
|
14586
14586
|
try {
|
|
14587
14587
|
var dc = typeof module < "u" && typeof module.require == "function" && module.require("worker_threads") || typeof __non_webpack_require__ == "function" && __non_webpack_require__("worker_threads") || typeof require == "function" && require("worker_threads");
|
|
14588
|
-
|
|
14588
|
+
ao = dc.Worker;
|
|
14589
14589
|
} catch {
|
|
14590
14590
|
}
|
|
14591
14591
|
function uc(i, e) {
|
|
@@ -14595,7 +14595,7 @@ function fc(i, e, t) {
|
|
|
14595
14595
|
var s = uc(i), n = s.indexOf(`
|
|
14596
14596
|
`, 10) + 1, r = s.substring(n) + "";
|
|
14597
14597
|
return function(o) {
|
|
14598
|
-
return new
|
|
14598
|
+
return new ao(r, Object.assign({}, o, { eval: !0 }));
|
|
14599
14599
|
};
|
|
14600
14600
|
}
|
|
14601
14601
|
function pc(i, e) {
|
|
@@ -14785,7 +14785,7 @@ class vc {
|
|
|
14785
14785
|
n.push({
|
|
14786
14786
|
styleId: a,
|
|
14787
14787
|
rules: o.map((h, d) => ({
|
|
14788
|
-
rule:
|
|
14788
|
+
rule: Fr(h),
|
|
14789
14789
|
index: d
|
|
14790
14790
|
}))
|
|
14791
14791
|
});
|
|
@@ -14945,8 +14945,8 @@ function Wt(i = {}) {
|
|
|
14945
14945
|
type: U.Meta,
|
|
14946
14946
|
data: {
|
|
14947
14947
|
href: window.location.href,
|
|
14948
|
-
width:
|
|
14949
|
-
height:
|
|
14948
|
+
width: Hr(),
|
|
14949
|
+
height: Vr()
|
|
14950
14950
|
}
|
|
14951
14951
|
}), O), Ie.reset(), bt.forEach((ee) => ee.lock());
|
|
14952
14952
|
const Me = Ph(document, {
|
|
@@ -14963,7 +14963,7 @@ function Wt(i = {}) {
|
|
|
14963
14963
|
recordCanvas: x,
|
|
14964
14964
|
inlineImages: L,
|
|
14965
14965
|
onSerialize: (ee) => {
|
|
14966
|
-
|
|
14966
|
+
zr(ee, Pe) && we.addIframe(ee), Yr(ee, Pe) && Ie.trackLinkElement(ee), Xr(ee) && qe.addShadowRoot(ee.shadowRoot, document);
|
|
14967
14967
|
},
|
|
14968
14968
|
onIframeLoad: (ee, Vt) => {
|
|
14969
14969
|
we.attachIframe(ee, Vt), qe.observeAttachShadow(ee);
|
|
@@ -15132,7 +15132,7 @@ function xc() {
|
|
|
15132
15132
|
return !1;
|
|
15133
15133
|
});
|
|
15134
15134
|
}
|
|
15135
|
-
class
|
|
15135
|
+
class lo {
|
|
15136
15136
|
constructor() {
|
|
15137
15137
|
this.onEvent = null, this.stopFn = null, this._recording = !1, this._paused = !1;
|
|
15138
15138
|
}
|
|
@@ -15190,7 +15190,7 @@ function Tc(i) {
|
|
|
15190
15190
|
return i.startsWith("ws://") || i.startsWith("wss://") ? i : `${location.protocol === "https:" ? "wss:" : "ws:"}//${location.host}${i.startsWith("/") ? "" : "/"}${i}`;
|
|
15191
15191
|
}
|
|
15192
15192
|
const On = 1e3, Rc = 3e4, Oc = 500;
|
|
15193
|
-
class
|
|
15193
|
+
class ho {
|
|
15194
15194
|
constructor(e, t) {
|
|
15195
15195
|
this.onIntervention = null, this.onStatus = null, this.onConnected = null, this.onDisconnected = null, this.ws = null, this.eventBuffer = [], this.reconnectDelay = On, this.reconnectTimer = null, this._connected = !1, this._closed = !1, this.url = Tc(e), this.initPayload = { type: "init", ...t };
|
|
15196
15196
|
}
|
|
@@ -15433,7 +15433,7 @@ function Ye(i) {
|
|
|
15433
15433
|
d.stopPropagation(), r(d);
|
|
15434
15434
|
}), a;
|
|
15435
15435
|
}
|
|
15436
|
-
function
|
|
15436
|
+
function co(i, e) {
|
|
15437
15437
|
var t = {};
|
|
15438
15438
|
for (var s in i) Object.prototype.hasOwnProperty.call(i, s) && e.indexOf(s) < 0 && (t[s] = i[s]);
|
|
15439
15439
|
if (i != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -15498,7 +15498,7 @@ function Vc(i) {
|
|
|
15498
15498
|
return e;
|
|
15499
15499
|
}
|
|
15500
15500
|
function Ds(i) {
|
|
15501
|
-
var { from: e = 0, to: t = 1, restSpeed: s = 2, restDelta: n } = i, r =
|
|
15501
|
+
var { from: e = 0, to: t = 1, restSpeed: s = 2, restDelta: n } = i, r = co(i, ["from", "to", "restSpeed", "restDelta"]);
|
|
15502
15502
|
const a = { done: !1, value: e };
|
|
15503
15503
|
let { stiffness: o, damping: h, mass: d, velocity: f, duration: u, isResolvedFromDuration: y } = Vc(r), g = Nn, C = Nn;
|
|
15504
15504
|
function _() {
|
|
@@ -15539,10 +15539,10 @@ function Ds(i) {
|
|
|
15539
15539
|
};
|
|
15540
15540
|
}
|
|
15541
15541
|
Ds.needsInterpolation = (i, e) => typeof i == "string" || typeof e == "string";
|
|
15542
|
-
const Nn = (i) => 0,
|
|
15542
|
+
const Nn = (i) => 0, uo = (i, e, t) => {
|
|
15543
15543
|
const s = e - i;
|
|
15544
15544
|
return s === 0 ? 1 : (t - i) / s;
|
|
15545
|
-
}, Bs = (i, e, t) => -t * i + t * e + i,
|
|
15545
|
+
}, Bs = (i, e, t) => -t * i + t * e + i, fo = (i, e) => (t) => Math.max(Math.min(t, e), i), ei = (i) => i % 1 ? Number(i.toFixed(5)) : i, Di = /(-)?([\d]*\.?[\d])+/g, Is = /(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi, Hc = /^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;
|
|
15546
15546
|
function hi(i) {
|
|
15547
15547
|
return typeof i == "string";
|
|
15548
15548
|
}
|
|
@@ -15550,7 +15550,7 @@ const Pi = {
|
|
|
15550
15550
|
test: (i) => typeof i == "number",
|
|
15551
15551
|
parse: parseFloat,
|
|
15552
15552
|
transform: (i) => i
|
|
15553
|
-
},
|
|
15553
|
+
}, po = Object.assign(Object.assign({}, Pi), { transform: fo(0, 1) });
|
|
15554
15554
|
Object.assign(Object.assign({}, Pi), { default: 1 });
|
|
15555
15555
|
const $c = (i) => ({
|
|
15556
15556
|
test: (e) => hi(e) && e.endsWith(i) && e.split(" ").length === 1,
|
|
@@ -15558,7 +15558,7 @@ const $c = (i) => ({
|
|
|
15558
15558
|
transform: (e) => `${e}${i}`
|
|
15559
15559
|
}), ti = $c("%");
|
|
15560
15560
|
Object.assign(Object.assign({}, ti), { parse: (i) => ti.parse(i) / 100, transform: (i) => ti.transform(i * 100) });
|
|
15561
|
-
const Fs = (i, e) => (t) => !!(hi(t) && Hc.test(t) && t.startsWith(i) || e && Object.prototype.hasOwnProperty.call(t, e)),
|
|
15561
|
+
const Fs = (i, e) => (t) => !!(hi(t) && Hc.test(t) && t.startsWith(i) || e && Object.prototype.hasOwnProperty.call(t, e)), mo = (i, e, t) => (s) => {
|
|
15562
15562
|
if (!hi(s))
|
|
15563
15563
|
return s;
|
|
15564
15564
|
const [n, r, a, o] = s.match(Di);
|
|
@@ -15570,12 +15570,12 @@ const Fs = (i, e) => (t) => !!(hi(t) && Hc.test(t) && t.startsWith(i) || e && Ob
|
|
|
15570
15570
|
};
|
|
15571
15571
|
}, _t = {
|
|
15572
15572
|
test: Fs("hsl", "hue"),
|
|
15573
|
-
parse:
|
|
15574
|
-
transform: ({ hue: i, saturation: e, lightness: t, alpha: s = 1 }) => "hsla(" + Math.round(i) + ", " + ti.transform(ei(e)) + ", " + ti.transform(ei(t)) + ", " + ei(
|
|
15575
|
-
}, jc =
|
|
15573
|
+
parse: mo("hue", "saturation", "lightness"),
|
|
15574
|
+
transform: ({ hue: i, saturation: e, lightness: t, alpha: s = 1 }) => "hsla(" + Math.round(i) + ", " + ti.transform(ei(e)) + ", " + ti.transform(ei(t)) + ", " + ei(po.transform(s)) + ")"
|
|
15575
|
+
}, jc = fo(0, 255), as = Object.assign(Object.assign({}, Pi), { transform: (i) => Math.round(jc(i)) }), ht = {
|
|
15576
15576
|
test: Fs("rgb", "red"),
|
|
15577
|
-
parse:
|
|
15578
|
-
transform: ({ red: i, green: e, blue: t, alpha: s = 1 }) => "rgba(" + as.transform(i) + ", " + as.transform(e) + ", " + as.transform(t) + ", " + ei(
|
|
15577
|
+
parse: mo("red", "green", "blue"),
|
|
15578
|
+
transform: ({ red: i, green: e, blue: t, alpha: s = 1 }) => "rgba(" + as.transform(i) + ", " + as.transform(e) + ", " + as.transform(t) + ", " + ei(po.transform(s)) + ")"
|
|
15579
15579
|
};
|
|
15580
15580
|
function zc(i) {
|
|
15581
15581
|
let e = "", t = "", s = "", n = "";
|
|
@@ -15594,38 +15594,38 @@ const As = {
|
|
|
15594
15594
|
test: (i) => ht.test(i) || As.test(i) || _t.test(i),
|
|
15595
15595
|
parse: (i) => ht.test(i) ? ht.parse(i) : _t.test(i) ? _t.parse(i) : As.parse(i),
|
|
15596
15596
|
transform: (i) => hi(i) ? i : i.hasOwnProperty("red") ? ht.transform(i) : _t.transform(i)
|
|
15597
|
-
},
|
|
15597
|
+
}, go = "${c}", yo = "${n}";
|
|
15598
15598
|
function Yc(i) {
|
|
15599
15599
|
var e, t, s, n;
|
|
15600
15600
|
return isNaN(i) && hi(i) && ((t = (e = i.match(Di)) === null || e === void 0 ? void 0 : e.length) !== null && t !== void 0 ? t : 0) + ((n = (s = i.match(Is)) === null || s === void 0 ? void 0 : s.length) !== null && n !== void 0 ? n : 0) > 0;
|
|
15601
15601
|
}
|
|
15602
|
-
function
|
|
15602
|
+
function Co(i) {
|
|
15603
15603
|
typeof i == "number" && (i = `${i}`);
|
|
15604
15604
|
const e = [];
|
|
15605
15605
|
let t = 0;
|
|
15606
15606
|
const s = i.match(Is);
|
|
15607
|
-
s && (t = s.length, i = i.replace(Is,
|
|
15607
|
+
s && (t = s.length, i = i.replace(Is, go), e.push(...s.map(Ui.parse)));
|
|
15608
15608
|
const n = i.match(Di);
|
|
15609
|
-
return n && (i = i.replace(Di,
|
|
15609
|
+
return n && (i = i.replace(Di, yo), e.push(...n.map(Pi.parse))), { values: e, numColors: t, tokenised: i };
|
|
15610
15610
|
}
|
|
15611
|
-
function
|
|
15612
|
-
return
|
|
15611
|
+
function bo(i) {
|
|
15612
|
+
return Co(i).values;
|
|
15613
15613
|
}
|
|
15614
|
-
function
|
|
15615
|
-
const { values: e, numColors: t, tokenised: s } =
|
|
15614
|
+
function _o(i) {
|
|
15615
|
+
const { values: e, numColors: t, tokenised: s } = Co(i), n = e.length;
|
|
15616
15616
|
return (r) => {
|
|
15617
15617
|
let a = s;
|
|
15618
15618
|
for (let o = 0; o < n; o++)
|
|
15619
|
-
a = a.replace(o < t ?
|
|
15619
|
+
a = a.replace(o < t ? go : yo, o < t ? Ui.transform(r[o]) : ei(r[o]));
|
|
15620
15620
|
return a;
|
|
15621
15621
|
};
|
|
15622
15622
|
}
|
|
15623
15623
|
const Xc = (i) => typeof i == "number" ? 0 : i;
|
|
15624
15624
|
function qc(i) {
|
|
15625
|
-
const e =
|
|
15626
|
-
return
|
|
15625
|
+
const e = bo(i);
|
|
15626
|
+
return _o(i)(e.map(Xc));
|
|
15627
15627
|
}
|
|
15628
|
-
const
|
|
15628
|
+
const Eo = { test: Yc, parse: bo, createTransformer: _o, getAnimatableNone: qc };
|
|
15629
15629
|
function ls(i, e, t) {
|
|
15630
15630
|
return t < 0 && (t += 1), t > 1 && (t -= 1), t < 1 / 6 ? i + (e - i) * 6 * t : t < 1 / 2 ? e : t < 2 / 3 ? i + (e - i) * (2 / 3 - t) * 6 : i;
|
|
15631
15631
|
}
|
|
@@ -15648,7 +15648,7 @@ function Ln({ hue: i, saturation: e, lightness: t, alpha: s }) {
|
|
|
15648
15648
|
const Kc = (i, e, t) => {
|
|
15649
15649
|
const s = i * i, n = e * e;
|
|
15650
15650
|
return Math.sqrt(Math.max(0, t * (n - s) + s));
|
|
15651
|
-
}, Zc = [As, ht, _t], Dn = (i) => Zc.find((e) => e.test(i)),
|
|
15651
|
+
}, Zc = [As, ht, _t], Dn = (i) => Zc.find((e) => e.test(i)), vo = (i, e) => {
|
|
15652
15652
|
let t = Dn(i), s = Dn(e), n = t.parse(i), r = s.parse(e);
|
|
15653
15653
|
t === _t && (n = Ln(n), t = ht), s === _t && (r = Ln(r), s = ht);
|
|
15654
15654
|
const a = Object.assign({}, n);
|
|
@@ -15657,12 +15657,12 @@ const Kc = (i, e, t) => {
|
|
|
15657
15657
|
h !== "alpha" && (a[h] = Kc(n[h], r[h], o));
|
|
15658
15658
|
return a.alpha = Bs(n.alpha, r.alpha, o), t.transform(a);
|
|
15659
15659
|
};
|
|
15660
|
-
}, Jc = (i) => typeof i == "number", Qc = (i, e) => (t) => e(i(t)),
|
|
15661
|
-
function
|
|
15662
|
-
return Jc(i) ? (t) => Bs(i, e, t) : Ui.test(i) ?
|
|
15660
|
+
}, Jc = (i) => typeof i == "number", Qc = (i, e) => (t) => e(i(t)), So = (...i) => i.reduce(Qc);
|
|
15661
|
+
function Io(i, e) {
|
|
15662
|
+
return Jc(i) ? (t) => Bs(i, e, t) : Ui.test(i) ? vo(i, e) : wo(i, e);
|
|
15663
15663
|
}
|
|
15664
|
-
const
|
|
15665
|
-
const t = [...i], s = t.length, n = i.map((r, a) =>
|
|
15664
|
+
const Ao = (i, e) => {
|
|
15665
|
+
const t = [...i], s = t.length, n = i.map((r, a) => Io(r, e[a]));
|
|
15666
15666
|
return (r) => {
|
|
15667
15667
|
for (let a = 0; a < s; a++)
|
|
15668
15668
|
t[a] = n[a](r);
|
|
@@ -15671,7 +15671,7 @@ const wo = (i, e) => {
|
|
|
15671
15671
|
}, ed = (i, e) => {
|
|
15672
15672
|
const t = Object.assign(Object.assign({}, i), e), s = {};
|
|
15673
15673
|
for (const n in t)
|
|
15674
|
-
i[n] !== void 0 && e[n] !== void 0 && (s[n] =
|
|
15674
|
+
i[n] !== void 0 && e[n] !== void 0 && (s[n] = Io(i[n], e[n]));
|
|
15675
15675
|
return (n) => {
|
|
15676
15676
|
for (const r in s)
|
|
15677
15677
|
t[r] = s[r](n);
|
|
@@ -15679,23 +15679,23 @@ const wo = (i, e) => {
|
|
|
15679
15679
|
};
|
|
15680
15680
|
};
|
|
15681
15681
|
function Bn(i) {
|
|
15682
|
-
const e =
|
|
15682
|
+
const e = Eo.parse(i), t = e.length;
|
|
15683
15683
|
let s = 0, n = 0, r = 0;
|
|
15684
15684
|
for (let a = 0; a < t; a++)
|
|
15685
15685
|
s || typeof e[a] == "number" ? s++ : e[a].hue !== void 0 ? r++ : n++;
|
|
15686
15686
|
return { parsed: e, numNumbers: s, numRGB: n, numHSL: r };
|
|
15687
15687
|
}
|
|
15688
|
-
const
|
|
15689
|
-
const t =
|
|
15690
|
-
return s.numHSL === n.numHSL && s.numRGB === n.numRGB && s.numNumbers >= n.numNumbers ?
|
|
15688
|
+
const wo = (i, e) => {
|
|
15689
|
+
const t = Eo.createTransformer(e), s = Bn(i), n = Bn(e);
|
|
15690
|
+
return s.numHSL === n.numHSL && s.numRGB === n.numRGB && s.numNumbers >= n.numNumbers ? So(Ao(s.parsed, n.parsed), t) : (a) => `${a > 0 ? e : i}`;
|
|
15691
15691
|
}, td = (i, e) => (t) => Bs(i, e, t);
|
|
15692
15692
|
function id(i) {
|
|
15693
15693
|
if (typeof i == "number")
|
|
15694
15694
|
return td;
|
|
15695
15695
|
if (typeof i == "string")
|
|
15696
|
-
return Ui.test(i) ?
|
|
15696
|
+
return Ui.test(i) ? vo : wo;
|
|
15697
15697
|
if (Array.isArray(i))
|
|
15698
|
-
return
|
|
15698
|
+
return Ao;
|
|
15699
15699
|
if (typeof i == "object")
|
|
15700
15700
|
return ed;
|
|
15701
15701
|
}
|
|
@@ -15705,14 +15705,14 @@ function sd(i, e, t) {
|
|
|
15705
15705
|
let o = n(i[a], i[a + 1]);
|
|
15706
15706
|
if (e) {
|
|
15707
15707
|
const h = Array.isArray(e) ? e[a] : e;
|
|
15708
|
-
o =
|
|
15708
|
+
o = So(h, o);
|
|
15709
15709
|
}
|
|
15710
15710
|
s.push(o);
|
|
15711
15711
|
}
|
|
15712
15712
|
return s;
|
|
15713
15713
|
}
|
|
15714
15714
|
function nd([i, e], [t]) {
|
|
15715
|
-
return (s) => t(
|
|
15715
|
+
return (s) => t(uo(i, e, s));
|
|
15716
15716
|
}
|
|
15717
15717
|
function rd(i, e) {
|
|
15718
15718
|
const t = i.length, s = t - 1;
|
|
@@ -15724,11 +15724,11 @@ function rd(i, e) {
|
|
|
15724
15724
|
;
|
|
15725
15725
|
r = h - 1;
|
|
15726
15726
|
}
|
|
15727
|
-
const o =
|
|
15727
|
+
const o = uo(i[r], i[r + 1], n);
|
|
15728
15728
|
return e[r](o);
|
|
15729
15729
|
};
|
|
15730
15730
|
}
|
|
15731
|
-
function
|
|
15731
|
+
function xo(i, e, { clamp: t = !0, ease: s, mixer: n } = {}) {
|
|
15732
15732
|
const r = i.length;
|
|
15733
15733
|
kn(r === e.length), kn(!s || !Array.isArray(s) || s.length === r - 1), i[0] > i[r - 1] && (i = [].concat(i), e = [].concat(e), i.reverse(), e.reverse());
|
|
15734
15734
|
const a = sd(e, s, n), o = r === 2 ? nd(i, a) : rd(i, a);
|
|
@@ -15748,7 +15748,7 @@ function ud(i, e) {
|
|
|
15748
15748
|
function Ti({ from: i = 0, to: e = 1, ease: t, offset: s, duration: n = 300 }) {
|
|
15749
15749
|
const r = { done: !1, value: i }, a = Array.isArray(e) ? e : [i, e], o = ud(s && s.length === a.length ? s : dd(a), n);
|
|
15750
15750
|
function h() {
|
|
15751
|
-
return
|
|
15751
|
+
return xo(o, a, {
|
|
15752
15752
|
ease: Array.isArray(t) ? t : cd(a, t)
|
|
15753
15753
|
});
|
|
15754
15754
|
}
|
|
@@ -15782,7 +15782,7 @@ function pd(i) {
|
|
|
15782
15782
|
const e = new Set(Object.keys(i));
|
|
15783
15783
|
return e.has("ease") || e.has("duration") && !e.has("dampingRatio") ? Ti : e.has("dampingRatio") || e.has("stiffness") || e.has("mass") || e.has("damping") || e.has("restSpeed") || e.has("restDelta") ? Ds : Ti;
|
|
15784
15784
|
}
|
|
15785
|
-
const
|
|
15785
|
+
const To = 1 / 60 * 1e3, md = typeof performance < "u" ? () => performance.now() : () => Date.now(), Ro = typeof window < "u" ? (i) => window.requestAnimationFrame(i) : (i) => setTimeout(() => i(md()), To);
|
|
15786
15786
|
function gd(i) {
|
|
15787
15787
|
let e = [], t = [], s = 0, n = !1, r = !1;
|
|
15788
15788
|
const a = /* @__PURE__ */ new WeakSet(), o = {
|
|
@@ -15825,16 +15825,16 @@ const ii = {
|
|
|
15825
15825
|
return i[e] = (s, n = !1, r = !1) => (oi || Ed(), t.schedule(s, n, r)), i;
|
|
15826
15826
|
}, {}), bd = ci.reduce((i, e) => (i[e] = Wi[e].cancel, i), {});
|
|
15827
15827
|
ci.reduce((i, e) => (i[e] = () => Wi[e].process(ii), i), {});
|
|
15828
|
-
const _d = (i) => Wi[i].process(ii),
|
|
15829
|
-
oi = !1, ii.delta = ws ?
|
|
15828
|
+
const _d = (i) => Wi[i].process(ii), Oo = (i) => {
|
|
15829
|
+
oi = !1, ii.delta = ws ? To : Math.max(Math.min(i - ii.timestamp, yd), 1), ii.timestamp = i, xs = !0, ci.forEach(_d), xs = !1, oi && (ws = !1, Ro(Oo));
|
|
15830
15830
|
}, Ed = () => {
|
|
15831
|
-
oi = !0, ws = !0, xs || Oo
|
|
15831
|
+
oi = !0, ws = !0, xs || Ro(Oo);
|
|
15832
15832
|
};
|
|
15833
|
-
function
|
|
15833
|
+
function ko(i, e, t = 0) {
|
|
15834
15834
|
return i - e - t;
|
|
15835
15835
|
}
|
|
15836
15836
|
function vd(i, e, t = 0, s = !0) {
|
|
15837
|
-
return s ?
|
|
15837
|
+
return s ? ko(e + -i, e, t) : e - (i - e) + t;
|
|
15838
15838
|
}
|
|
15839
15839
|
function Sd(i, e, t, s) {
|
|
15840
15840
|
return s ? i >= e + t : i <= -t;
|
|
@@ -15847,15 +15847,15 @@ const Id = (i) => {
|
|
|
15847
15847
|
};
|
|
15848
15848
|
};
|
|
15849
15849
|
function Ad(i) {
|
|
15850
|
-
var e, t, { from: s, autoplay: n = !0, driver: r = Id, elapsed: a = 0, repeat: o = 0, repeatType: h = "loop", repeatDelay: d = 0, onPlay: f, onStop: u, onComplete: y, onRepeat: g, onUpdate: C } = i, _ =
|
|
15850
|
+
var e, t, { from: s, autoplay: n = !0, driver: r = Id, elapsed: a = 0, repeat: o = 0, repeatType: h = "loop", repeatDelay: d = 0, onPlay: f, onStop: u, onComplete: y, onRepeat: g, onUpdate: C } = i, _ = co(i, ["from", "autoplay", "driver", "elapsed", "repeat", "repeatType", "repeatDelay", "onPlay", "onStop", "onComplete", "onRepeat", "onUpdate"]);
|
|
15851
15851
|
let { to: E } = _, A, I = 0, S = _.duration, x, T = !1, M = !0, F;
|
|
15852
15852
|
const L = pd(_);
|
|
15853
|
-
!((t = (e = L).needsInterpolation) === null || t === void 0) && t.call(e, s, E) && (F =
|
|
15853
|
+
!((t = (e = L).needsInterpolation) === null || t === void 0) && t.call(e, s, E) && (F = xo([0, 100], [s, E], {
|
|
15854
15854
|
clamp: !1
|
|
15855
15855
|
}), s = 0, E = 100);
|
|
15856
15856
|
const J = L(Object.assign(Object.assign({}, _), { from: s, to: E }));
|
|
15857
15857
|
function X() {
|
|
15858
|
-
I++, h === "reverse" ? (M = I % 2 === 0, a = vd(a, S, d, M)) : (a =
|
|
15858
|
+
I++, h === "reverse" ? (M = I % 2 === 0, a = vd(a, S, d, M)) : (a = ko(a, S, d), h === "mirror" && J.flipTarget()), T = !1, g && g();
|
|
15859
15859
|
}
|
|
15860
15860
|
function ce() {
|
|
15861
15861
|
A.stop(), y && y();
|
|
@@ -17415,7 +17415,7 @@ class su {
|
|
|
17415
17415
|
}
|
|
17416
17416
|
console.log("[HolostaffWidget] Starting conversation...");
|
|
17417
17417
|
try {
|
|
17418
|
-
this.sessionResponse = await
|
|
17418
|
+
this.sessionResponse = await Vo(
|
|
17419
17419
|
this.config.staffId,
|
|
17420
17420
|
this.config.backendUrl
|
|
17421
17421
|
), console.log("[HolostaffWidget] Session tokens received"), this.logger = new uh({
|
|
@@ -17722,7 +17722,7 @@ All actions except form filling require the visitor to confirm before executing.
|
|
|
17722
17722
|
return;
|
|
17723
17723
|
}
|
|
17724
17724
|
const e = this.config.visionWsUrl;
|
|
17725
|
-
e && (this.rrwebRecorder = new
|
|
17725
|
+
e && (this.rrwebRecorder = new lo(), this.visionWs = new ho(e, {
|
|
17726
17726
|
staffId: this.config.staffId,
|
|
17727
17727
|
visitorId: this.visitorId,
|
|
17728
17728
|
pageUrl: location.href,
|
|
@@ -17838,13 +17838,13 @@ function lu() {
|
|
|
17838
17838
|
const d = new su(n, a);
|
|
17839
17839
|
return o && h && d.setObserver(o, h), r != null && r.idleVideoUrl ? d.setIdleVideo(r.idleVideoUrl) : r != null && r.avatarImageUrl && d.setIdleImage(r.avatarImageUrl), r && d.setStaffInfo(r.name, r.avatarImageUrl), d;
|
|
17840
17840
|
};
|
|
17841
|
-
const t =
|
|
17841
|
+
const t = Fo(i);
|
|
17842
17842
|
async function s() {
|
|
17843
17843
|
let n = t, r = null, a = null;
|
|
17844
17844
|
try {
|
|
17845
|
-
a = await $o(t.staffId, t.backendUrl), n =
|
|
17845
|
+
a = await $o(t.staffId, t.backendUrl), n = Go(t, i, a), r = a.widgetPrompts;
|
|
17846
17846
|
} catch (C) {
|
|
17847
|
-
if (C
|
|
17847
|
+
if (C.name === "WidgetDisabledError") {
|
|
17848
17848
|
console.log("[HolostaffWidget] Agent is not active — widget suppressed");
|
|
17849
17849
|
return;
|
|
17850
17850
|
}
|
|
@@ -17852,7 +17852,7 @@ function lu() {
|
|
|
17852
17852
|
}
|
|
17853
17853
|
const o = nu(a == null ? void 0 : a.pagePatterns), h = au();
|
|
17854
17854
|
let d = null, f = null;
|
|
17855
|
-
n.visionWsUrl && (d = new
|
|
17855
|
+
n.visionWsUrl && (d = new lo(), f = new ho(n.visionWsUrl, {
|
|
17856
17856
|
staffId: n.staffId,
|
|
17857
17857
|
visitorId: h,
|
|
17858
17858
|
pageUrl: location.href,
|
|
@@ -17891,7 +17891,7 @@ function lu() {
|
|
|
17891
17891
|
}
|
|
17892
17892
|
lu();
|
|
17893
17893
|
export {
|
|
17894
|
-
|
|
17894
|
+
Ar as A,
|
|
17895
17895
|
ft as B,
|
|
17896
17896
|
We as C,
|
|
17897
17897
|
Ft as D,
|
|
@@ -17899,15 +17899,15 @@ export {
|
|
|
17899
17899
|
en as F,
|
|
17900
17900
|
Os as G,
|
|
17901
17901
|
sn as H,
|
|
17902
|
-
|
|
17902
|
+
fr as I,
|
|
17903
17903
|
Ji as J,
|
|
17904
17904
|
nn as K,
|
|
17905
17905
|
Ga as L,
|
|
17906
17906
|
Y as M,
|
|
17907
|
-
|
|
17908
|
-
|
|
17907
|
+
Xn as N,
|
|
17908
|
+
ir as O,
|
|
17909
17909
|
ze as P,
|
|
17910
|
-
|
|
17910
|
+
wr as Q,
|
|
17911
17911
|
Ue as R,
|
|
17912
17912
|
vt as S,
|
|
17913
17913
|
ie as T,
|
|
@@ -17919,9 +17919,9 @@ export {
|
|
|
17919
17919
|
Ze as a,
|
|
17920
17920
|
Mt as b,
|
|
17921
17921
|
Z as c,
|
|
17922
|
-
|
|
17922
|
+
vr as d,
|
|
17923
17923
|
De as e,
|
|
17924
|
-
|
|
17924
|
+
ur as f,
|
|
17925
17925
|
Ge as g,
|
|
17926
17926
|
Xo as h,
|
|
17927
17927
|
Oe as i,
|
|
@@ -17939,8 +17939,8 @@ export {
|
|
|
17939
17939
|
nl as u,
|
|
17940
17940
|
hu as v,
|
|
17941
17941
|
ct as w,
|
|
17942
|
-
|
|
17943
|
-
|
|
17942
|
+
er as x,
|
|
17943
|
+
rr as y,
|
|
17944
17944
|
Ua as z
|
|
17945
17945
|
};
|
|
17946
|
-
//# sourceMappingURL=index-
|
|
17946
|
+
//# sourceMappingURL=index-qJyFW51-.js.map
|