@netless/app-slide 0.2.25 → 0.2.26-beta.1

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/main.es.js CHANGED
@@ -28934,7 +28934,14 @@ void main() {
28934
28934
  return n2 === Rm ? Rm : n2;
28935
28935
  });
28936
28936
  }
28937
- var Im = function(t2, e2, n2, i2) {
28937
+ function Im(t2, e2) {
28938
+ return Am(this, void 0, void 0, function* () {
28939
+ const n2 = Date.now();
28940
+ for (; !t2() && Date.now() - n2 < e2; )
28941
+ yield Cm(16);
28942
+ });
28943
+ }
28944
+ var Om = function(t2, e2, n2, i2) {
28938
28945
  return new (n2 || (n2 = Promise))(function(r2, o2) {
28939
28946
  function s2(t3) {
28940
28947
  try {
@@ -28959,8 +28966,8 @@ void main() {
28959
28966
  l2((i2 = i2.apply(t2, e2 || [])).next());
28960
28967
  });
28961
28968
  };
28962
- function Om(t2, e2) {
28963
- return Im(this, void 0, void 0, function* () {
28969
+ function Nm(t2, e2) {
28970
+ return Om(this, void 0, void 0, function* () {
28964
28971
  const n2 = yield Pm(() => fetch(t2), e2);
28965
28972
  if (n2 === Rm)
28966
28973
  throw new Tm(gm.ResourceError, `"${t2}" loaded timeout"`);
@@ -28969,7 +28976,7 @@ void main() {
28969
28976
  return n2;
28970
28977
  });
28971
28978
  }
28972
- class Nm {
28979
+ class Lm {
28973
28980
  constructor(t2, e2, n2, i2, r2) {
28974
28981
  this.timeout = 15e3, this.useCache = false, this.taskId = "", this.delegate = null, this.useCache = e2, this.localStorage = t2, this.logger = n2, this.timeout = i2, this.delegate = r2 || null;
28975
28982
  }
@@ -28977,7 +28984,7 @@ void main() {
28977
28984
  this.taskId = t2;
28978
28985
  }
28979
28986
  fetchJson(t2) {
28980
- return Im(this, void 0, void 0, function* () {
28987
+ return Om(this, void 0, void 0, function* () {
28981
28988
  let e2;
28982
28989
  if (this.useCache && (this.logger.info("load resource from cache. " + t2, this.taskId || ""), e2 = yield this.localStorage.getItem(t2)), e2)
28983
28990
  return this.logger.info("cache hit. " + t2, this.taskId || ""), e2;
@@ -28990,14 +28997,14 @@ void main() {
28990
28997
  throw new Tm(gm.ResourceError, `"${t2}" loaded timeout"`);
28991
28998
  e3 = JSON.parse(n2);
28992
28999
  } else
28993
- this.logger.info("load resource from server. " + t2, this.taskId || ""), e3 = yield (yield Om("" + t2, this.timeout)).json();
29000
+ this.logger.info("load resource from server. " + t2, this.taskId || ""), e3 = yield (yield Nm("" + t2, this.timeout)).json();
28994
29001
  return this.logger.info("load end. " + t2, this.taskId || ""), this.useCache && this.localStorage.setItem(t2, e3).catch(() => {
28995
29002
  }), e3;
28996
29003
  }
28997
29004
  });
28998
29005
  }
28999
29006
  fetchPng(t2, e2) {
29000
- return Im(this, void 0, void 0, function* () {
29007
+ return Om(this, void 0, void 0, function* () {
29001
29008
  let n2;
29002
29009
  const i2 = t2 + "-v2";
29003
29010
  if (this.useCache && (this.logger.info("load resource from cache. " + t2, this.taskId || ""), n2 = yield this.localStorage.getItem(i2)), n2) {
@@ -29012,7 +29019,7 @@ void main() {
29012
29019
  throw new Tm(gm.ResourceError, `"${t2}" loaded timeout"`);
29013
29020
  } else {
29014
29021
  this.logger.info("load resource from server. " + t2, this.taskId || "");
29015
- const e3 = yield Om(t2, this.timeout);
29022
+ const e3 = yield Nm(t2, this.timeout);
29016
29023
  r2 = yield e3.blob();
29017
29024
  }
29018
29025
  n2 = yield function(t3) {
@@ -29048,7 +29055,7 @@ void main() {
29048
29055
  destroy() {
29049
29056
  }
29050
29057
  }
29051
- var Lm = function(t2, e2, n2, i2) {
29058
+ var Dm = function(t2, e2, n2, i2) {
29052
29059
  return new (n2 || (n2 = Promise))(function(r2, o2) {
29053
29060
  function s2(t3) {
29054
29061
  try {
@@ -29073,7 +29080,7 @@ void main() {
29073
29080
  l2((i2 = i2.apply(t2, e2 || [])).next());
29074
29081
  });
29075
29082
  };
29076
- class Dm {
29083
+ class Fm {
29077
29084
  constructor(t2) {
29078
29085
  this.isPaused = false, this.timestamp = 0, this.callbackList = [], this.onTimeUpdate = (t3) => {
29079
29086
  const e2 = t3 / (md.b.TARGET_FPMS || 0.06);
@@ -29105,7 +29112,7 @@ void main() {
29105
29112
  });
29106
29113
  }
29107
29114
  waitUntil(t2, e2) {
29108
- return Lm(this, void 0, void 0, function* () {
29115
+ return Dm(this, void 0, void 0, function* () {
29109
29116
  const n2 = this.timestamp;
29110
29117
  for (; !t2() && this.timestamp - n2 < e2; )
29111
29118
  yield this.delay(50);
@@ -29118,7 +29125,7 @@ void main() {
29118
29125
  this.isPaused = false;
29119
29126
  }
29120
29127
  }
29121
- var Fm = function(t2, e2, n2, i2) {
29128
+ var Bm = function(t2, e2, n2, i2) {
29122
29129
  return new (n2 || (n2 = Promise))(function(r2, o2) {
29123
29130
  function s2(t3) {
29124
29131
  try {
@@ -29143,11 +29150,11 @@ void main() {
29143
29150
  l2((i2 = i2.apply(t2, e2 || [])).next());
29144
29151
  });
29145
29152
  };
29146
- function Bm(t2, e2, n2) {
29153
+ function Um(t2, e2, n2) {
29147
29154
  return n2 ? Math.floor(parseFloat(t2) * e2) : Math.ceil(parseFloat(t2) * e2);
29148
29155
  }
29149
- const Um = { w: true, h: true, x: true, y: true };
29150
- class km {
29156
+ const km = { w: true, h: true, x: true, y: true };
29157
+ class Gm {
29151
29158
  constructor(t2) {
29152
29159
  this.gifs = /* @__PURE__ */ Object.create(null), this.textures = /* @__PURE__ */ Object.create(null), this.frames = /* @__PURE__ */ Object.create(null), this.spriteSheets = [], this.loader = t2;
29153
29160
  }
@@ -29161,18 +29168,18 @@ void main() {
29161
29168
  return this.gifs[t2] ? this.gifs[t2].filter((t3) => !!t3) : [];
29162
29169
  }
29163
29170
  loadSpriteSheetItem(t2, e2, n2, i2) {
29164
- return Fm(this, void 0, void 0, function* () {
29171
+ return Bm(this, void 0, void 0, function* () {
29165
29172
  const r2 = yield this.loader.fetchJson(`${t2}/${e2}/jsonOutput/${n2}.json`), { baseTexture: o2, scale: s2 } = yield this.loader.fetchPng(`${t2}/${e2}/jsonOutput/${n2}.png`, i2);
29166
29173
  !function(t3, e3) {
29167
29174
  t3.meta && t3.meta.size && ["w", "h"].forEach((n3) => {
29168
- t3.meta.size[n3] = Bm(t3.meta.size[n3], e3, Um[n3]);
29175
+ t3.meta.size[n3] = Um(t3.meta.size[n3], e3, km[n3]);
29169
29176
  }), t3.frames && Object.keys(t3.frames).forEach((n3) => {
29170
29177
  t3.frames[n3].frame && ["x", "y", "w", "h"].forEach((i3) => {
29171
- t3.frames[n3].frame[i3] = Bm(t3.frames[n3].frame[i3], e3, Um[i3]);
29178
+ t3.frames[n3].frame[i3] = Um(t3.frames[n3].frame[i3], e3, km[i3]);
29172
29179
  }), t3.frames[n3].spriteSourceSize && ["x", "y", "w", "h"].forEach((i3) => {
29173
- t3.frames[n3].spriteSourceSize[i3] = Bm(t3.frames[n3].spriteSourceSize[i3], e3, Um[i3]);
29180
+ t3.frames[n3].spriteSourceSize[i3] = Um(t3.frames[n3].spriteSourceSize[i3], e3, km[i3]);
29174
29181
  }), t3.frames[n3].sourceSize && ["w", "h"].forEach((i3) => {
29175
- t3.frames[n3].sourceSize[i3] = Bm(t3.frames[n3].sourceSize[i3], e3, Um[i3]);
29182
+ t3.frames[n3].sourceSize[i3] = Um(t3.frames[n3].sourceSize[i3], e3, km[i3]);
29176
29183
  });
29177
29184
  });
29178
29185
  }(r2, s2);
@@ -29195,8 +29202,8 @@ void main() {
29195
29202
  this.spriteSheets.forEach((t2) => t2.destroy(true)), this.spriteSheets = [], this.gifs = /* @__PURE__ */ Object.create(null), this.textures = /* @__PURE__ */ Object.create(null), this.frames = /* @__PURE__ */ Object.create(null);
29196
29203
  }
29197
29204
  }
29198
- var Gm = n(18), Hm = n.n(Gm), jm = n(13), zm = n.n(jm);
29199
- function Vm(t2, e2, n2) {
29205
+ var Hm = n(18), jm = n.n(Hm), zm = n(13), Vm = n.n(zm);
29206
+ function Xm(t2, e2, n2) {
29200
29207
  let i2, r2;
29201
29208
  const o2 = Math.round(t2) % 360;
29202
29209
  if (o2 % 180 == 0)
@@ -29212,7 +29219,7 @@ void main() {
29212
29219
  }
29213
29220
  return { x: i2, y: r2 };
29214
29221
  }
29215
- function Xm(t2, e2, n2, i2, r2, o2) {
29222
+ function Wm(t2, e2, n2, i2, r2, o2) {
29216
29223
  const s2 = t2, a2 = e2;
29217
29224
  let l2, h2, u2, c2, d2;
29218
29225
  if (Math.round(i2) === 0)
@@ -29220,12 +29227,12 @@ void main() {
29220
29227
  else if (Math.round(i2) >= 360)
29221
29228
  l2 = r2, h2 = o2, u2 = r2 + 2 * t2 * Math.abs(Math.cos(-n2 / 180 * Math.PI)), c2 = o2 + 2 * e2 * Math.sin(-n2 / 180 * Math.PI), d2 = 1;
29222
29229
  else {
29223
- const t3 = -n2, e3 = -(n2 + i2), { x: u3, y: c3 } = Vm(t3, s2, a2), p2 = r2 - u3, f2 = o2 + c3, { x: m2, y: g2 } = Vm(e3, s2, a2);
29230
+ const t3 = -n2, e3 = -(n2 + i2), { x: u3, y: c3 } = Xm(t3, s2, a2), p2 = r2 - u3, f2 = o2 + c3, { x: m2, y: g2 } = Xm(e3, s2, a2);
29224
29231
  l2 = m2 + p2, h2 = f2 - g2, d2 = i2 >= -360 && i2 < -180 ? 1 : i2 >= -180 && i2 < 0 || i2 > 0 && i2 < 180 ? 0 : 1;
29225
29232
  }
29226
29233
  return { radiusX: s2, radiusY: a2, xAxisRotation: 0, largeArcFlag: d2, sweepFlag: i2 > 0 ? 1 : 0, endX: l2, endY: h2, middleX: u2, middleY: c2 };
29227
29234
  }
29228
- class Wm {
29235
+ class Ym {
29229
29236
  constructor() {
29230
29237
  this.pool = [];
29231
29238
  }
@@ -29246,7 +29253,7 @@ void main() {
29246
29253
  this.pool.filter((e2) => e2.group === t2).forEach((t3) => this.collectObject(t3.obj));
29247
29254
  }
29248
29255
  }
29249
- const Ym = new class extends Wm {
29256
+ const qm = new class extends Ym {
29250
29257
  createObject() {
29251
29258
  const t2 = document.createElementNS("http://www.w3.org/2000/svg", "svg");
29252
29259
  return t2.setAttribute("xmlns", "http://www.w3.org/2000/svg"), t2.setAttribute("version", "1.1"), t2;
@@ -29255,7 +29262,7 @@ void main() {
29255
29262
  t2.removeAttribute("viewBox"), t2.removeAttribute("width"), t2.removeAttribute("height"), t2.innerHTML = "";
29256
29263
  }
29257
29264
  }();
29258
- const qm = new class extends Wm {
29265
+ const Zm = new class extends Ym {
29259
29266
  createObject() {
29260
29267
  return document.createElement("img");
29261
29268
  }
@@ -29263,7 +29270,7 @@ void main() {
29263
29270
  t2.removeAttribute("src");
29264
29271
  }
29265
29272
  }();
29266
- var Zm = function(t2, e2, n2, i2) {
29273
+ var Jm = function(t2, e2, n2, i2) {
29267
29274
  return new (n2 || (n2 = Promise))(function(r2, o2) {
29268
29275
  function s2(t3) {
29269
29276
  try {
@@ -29288,13 +29295,13 @@ void main() {
29288
29295
  l2((i2 = i2.apply(t2, e2 || [])).next());
29289
29296
  });
29290
29297
  };
29291
- class Jm {
29298
+ class Km {
29292
29299
  constructor() {
29293
29300
  this.imgElements = [], this.svgElements = [], this.idToHashMap = /* @__PURE__ */ Object.create(null), this.textures = /* @__PURE__ */ Object.create(null), this.graphics = [], this.hashToIdMap = /* @__PURE__ */ Object.create(null);
29294
29301
  }
29295
29302
  render(t2, e2, n2) {
29296
- return Zm(this, void 0, void 0, function* () {
29297
- const { items: e3, width: i2, height: r2 } = t2, o2 = qm.getObject(n2), s2 = new Uh.h(o2, { width: i2, height: r2, resolution: 1 }), a2 = Ym.getObject(n2);
29303
+ return Jm(this, void 0, void 0, function* () {
29304
+ const { items: e3, width: i2, height: r2 } = t2, o2 = Zm.getObject(n2), s2 = new Uh.h(o2, { width: i2, height: r2, resolution: 1 }), a2 = qm.getObject(n2);
29298
29305
  this.imgElements.push(o2), this.svgElements.push(a2), a2.setAttribute("viewBox", `0 0 ${i2} ${r2}`), a2.setAttribute("width", "" + i2), a2.setAttribute("height", "" + r2);
29299
29306
  const l2 = {}, h2 = {};
29300
29307
  e3.forEach((t3) => {
@@ -29302,7 +29309,7 @@ void main() {
29302
29309
  e4.pathsData.forEach((t4) => {
29303
29310
  let e5 = "";
29304
29311
  t4.cmds.forEach(([n4, i4]) => {
29305
- e5 += n4 + " ", e5 += i4.map((e6) => (zm()(e6) || (e6.x = e6.x + t4.offset.x + r3, e6.y = e6.y + t4.offset.y + o3), e6)).reduce((t5, e6) => (zm()(e6) ? t5 += e6 + " " : t5 += `${e6.x} ${e6.y} `, t5), ""), e5 += " ";
29312
+ e5 += n4 + " ", e5 += i4.map((e6) => (Vm()(e6) || (e6.x = e6.x + t4.offset.x + r3, e6.y = e6.y + t4.offset.y + o3), e6)).reduce((t5, e6) => (Vm()(e6) ? t5 += e6 + " " : t5 += `${e6.x} ${e6.y} `, t5), ""), e5 += " ";
29306
29313
  }), t4.pathElement.setAttribute("d", e5), a2.appendChild(t4.pathElement);
29307
29314
  });
29308
29315
  const u3 = e4.width - 4 - 2 * e4.padding, c3 = e4.height - 4 - 2 * e4.padding;
@@ -29323,7 +29330,7 @@ void main() {
29323
29330
  var c2, d2;
29324
29331
  if (!s2 && !l2)
29325
29332
  return t2;
29326
- const p2 = Hm()(n2 + ((d2 = (c2 = s2 == null ? void 0 : s2.width) === null || c2 === void 0 ? void 0 : c2.toString()) !== null && d2 !== void 0 ? d2 : 0) + l2 + h2 + u2);
29333
+ const p2 = jm()(n2 + ((d2 = (c2 = s2 == null ? void 0 : s2.width) === null || c2 === void 0 ? void 0 : c2.toString()) !== null && d2 !== void 0 ? d2 : 0) + l2 + h2 + u2);
29327
29334
  if (this.hashToIdMap[p2] || (this.hashToIdMap[p2] = []), this.hashToIdMap[p2].push(t2), this.idToHashMap[t2] = p2, this.graphics.findIndex((t3) => t3.hash === p2) < 0) {
29328
29335
  const { graphicsWidth: t3, graphicsHeight: n3, pathsData: a3, pivot: c3, padding: d3 } = function(t4, e3, n4, i3, r3, o3, s3, a4, l3) {
29329
29336
  var h3;
@@ -29342,7 +29349,7 @@ void main() {
29342
29349
  let [t7, e6] = i4.split(",").map((t8) => Number(t8));
29343
29350
  o4 = { x: t7, y: e6 }, t7 = t7 / 9525 * n5.x, e6 = e6 / 9525 * n5.y, l4.cmds.push(["M", [{ x: t7, y: e6 }]]);
29344
29351
  } else if (e5 === "A") {
29345
- const [t7, e6, r5, s4] = i4.split(",").map((t8) => Number(t8)), a5 = r5 / Math.PI * 180, h4 = s4 / Math.PI * 180, u4 = Xm(t7, e6, a5, h4, o4.x, o4.y);
29352
+ const [t7, e6, r5, s4] = i4.split(",").map((t8) => Number(t8)), a5 = r5 / Math.PI * 180, h4 = s4 / Math.PI * 180, u4 = Wm(t7, e6, a5, h4, o4.x, o4.y);
29346
29353
  Math.round(h4) >= 360 ? (o4 = { x: u4.endX, y: u4.endY }, l4.cmds.push(["A", [u4.radiusX / 9525 * n5.x, u4.radiusY / 9525 * n5.y, u4.xAxisRotation, u4.largeArcFlag, u4.sweepFlag, { x: u4.middleX / 9525 * n5.x, y: u4.middleY / 9525 * n5.y }]]), l4.cmds.push(["A", [u4.radiusX / 9525 * n5.x, u4.radiusY / 9525 * n5.y, u4.xAxisRotation, u4.largeArcFlag, u4.sweepFlag, { x: u4.endX / 9525 * n5.x, y: u4.endY / 9525 * n5.y }]])) : (o4 = { x: u4.endX, y: u4.endY }, l4.cmds.push(["A", [u4.radiusX / 9525 * n5.x, u4.radiusY / 9525 * n5.y, u4.xAxisRotation, u4.largeArcFlag, u4.sweepFlag, { x: u4.endX / 9525 * n5.x, y: u4.endY / 9525 * n5.y }]]));
29347
29354
  } else if (e5 === "L") {
29348
29355
  let [t7, e6] = i4.split(",").map((t8) => Number(t8));
@@ -29387,10 +29394,10 @@ void main() {
29387
29394
  Object.keys(this.textures).forEach((t2) => {
29388
29395
  var e2;
29389
29396
  (e2 = this.textures[t2]) === null || e2 === void 0 || e2.texture.destroy(true);
29390
- }), this.textures = /* @__PURE__ */ Object.create(null), this.imgElements.forEach((t2) => qm.collectObject(t2)), this.svgElements.forEach((t2) => Ym.collectObject(t2)), this.graphics = [];
29397
+ }), this.textures = /* @__PURE__ */ Object.create(null), this.imgElements.forEach((t2) => Zm.collectObject(t2)), this.svgElements.forEach((t2) => qm.collectObject(t2)), this.graphics = [];
29391
29398
  }
29392
29399
  }
29393
- class Km {
29400
+ class Qm {
29394
29401
  constructor() {
29395
29402
  this.runningTimeNodes = {};
29396
29403
  }
@@ -29408,7 +29415,7 @@ void main() {
29408
29415
  delete this.runningTimeNodes[n2];
29409
29416
  }
29410
29417
  }
29411
- class Qm {
29418
+ class $m {
29412
29419
  constructor(t2) {
29413
29420
  this.eventHub = t2, this.targets = /* @__PURE__ */ Object.create(null);
29414
29421
  }
@@ -29430,7 +29437,7 @@ void main() {
29430
29437
  this.targets = /* @__PURE__ */ Object.create(null);
29431
29438
  }
29432
29439
  }
29433
- class $m {
29440
+ class tg {
29434
29441
  constructor(t2) {
29435
29442
  this.target = t2;
29436
29443
  }
@@ -29447,14 +29454,14 @@ void main() {
29447
29454
  this.target.strokeActive = t2 === "true";
29448
29455
  }
29449
29456
  }
29450
- class tg {
29457
+ class eg {
29451
29458
  constructor(t2) {
29452
29459
  this.applyCommand = (t3, e2) => {
29453
29460
  this.target.applyCommand(t3, e2);
29454
29461
  }, this.target = t2;
29455
29462
  }
29456
29463
  }
29457
- class eg {
29464
+ class ng {
29458
29465
  constructor(t2) {
29459
29466
  this.target = t2;
29460
29467
  }
@@ -29477,7 +29484,7 @@ void main() {
29477
29484
  return this.color;
29478
29485
  }
29479
29486
  }
29480
- class ng {
29487
+ class ig {
29481
29488
  constructor(t2) {
29482
29489
  this.target = t2;
29483
29490
  }
@@ -29497,7 +29504,7 @@ void main() {
29497
29504
  return this.target.fillColorFilter.designColor;
29498
29505
  }
29499
29506
  }
29500
- class ig {
29507
+ class rg {
29501
29508
  constructor(t2, e2, n2) {
29502
29509
  this.hardHidden = false, this.designRotation = 0, this.target = t2, e2 === true && (this.hardHidden = true), this.designRotation = n2;
29503
29510
  }
@@ -29520,7 +29527,7 @@ void main() {
29520
29527
  this.visibility === t2 || this.hardHidden || (this.target.visible = t2 === "visible");
29521
29528
  }
29522
29529
  }
29523
- class rg {
29530
+ class og {
29524
29531
  constructor(t2, e2) {
29525
29532
  this.actions = [], this.ctx = e2, this.object = t2, this.object.interactive = true;
29526
29533
  }
@@ -29545,68 +29552,68 @@ void main() {
29545
29552
  return this.object.hitArea ? this.object.hitArea : new Rh.k(0, 0, this.object.width, this.object.height);
29546
29553
  }
29547
29554
  handleAction(t2, e2 = false) {
29548
- this.proxy && !e2 || (this.ctx.eventHub.emit(By.hyperlinkTrigger, t2), this.execAction(t2));
29555
+ this.proxy && !e2 || (this.ctx.eventHub.emit(Uy.hyperlinkTrigger, t2), this.execAction(t2));
29549
29556
  }
29550
29557
  execAction(t2) {
29551
29558
  var e2;
29552
- if (this.ctx.eventHub.emit(By.userInput), t2.action === "ppaction://hlinksldjump") {
29559
+ if (this.ctx.eventHub.emit(Uy.userInput), t2.action === "ppaction://hlinksldjump") {
29553
29560
  const n2 = ((e2 = t2 == null ? void 0 : t2.target) !== null && e2 !== void 0 ? e2 : "").match(/slide(\d+)\.xml/);
29554
- n2 && n2[1] && this.ctx.eventHub.emit(By.requestGotoSlide, Number(n2[1]));
29561
+ n2 && n2[1] && this.ctx.eventHub.emit(Uy.requestGotoSlide, Number(n2[1]));
29555
29562
  } else if (t2.action === "ppaction://hlinkshowjump?jump=nextslide")
29556
- this.ctx.eventHub.emit(By.requestNextSlide);
29563
+ this.ctx.eventHub.emit(Uy.requestNextSlide);
29557
29564
  else if (t2.action === "ppaction://hlinkshowjump?jump=previousslide")
29558
- this.ctx.eventHub.emit(By.requestPrevSlide);
29565
+ this.ctx.eventHub.emit(Uy.requestPrevSlide);
29559
29566
  else if (t2.action === "ppaction://hlinkshowjump?jump=firstslide")
29560
- this.ctx.eventHub.emit(By.requestGotoSlide, 1);
29567
+ this.ctx.eventHub.emit(Uy.requestGotoSlide, 1);
29561
29568
  else if (t2.action === "ppaction://hlinkshowjump?jump=lastslide")
29562
- this.ctx.eventHub.emit(By.requestGotoSlide, -1);
29569
+ this.ctx.eventHub.emit(Uy.requestGotoSlide, -1);
29563
29570
  else if (t2.action === "ppaction://hlinkshowjump?jump=lastslideviewed") {
29564
29571
  const t3 = this.ctx.lastViewedIndex;
29565
- this.ctx.eventHub.emit(By.requestGotoSlide, t3);
29572
+ this.ctx.eventHub.emit(Uy.requestGotoSlide, t3);
29566
29573
  } else
29567
- t2.action === "ppaction://hlinkshowjump?jump=endshow" && this.ctx.eventHub.emit(By.requestGotoSlide, -1);
29574
+ t2.action === "ppaction://hlinkshowjump?jump=endshow" && this.ctx.eventHub.emit(Uy.requestGotoSlide, -1);
29568
29575
  }
29569
29576
  }
29570
- function og(t2, e2, n2 = 5) {
29577
+ function sg(t2, e2, n2 = 5) {
29571
29578
  return Math.abs(t2 - e2) <= Math.pow(10, -n2);
29572
29579
  }
29573
- function sg(t2) {
29580
+ function ag(t2) {
29574
29581
  return Math.floor(1e6 * t2) / 1e6;
29575
29582
  }
29576
- class ag {
29583
+ class lg {
29577
29584
  constructor() {
29578
29585
  this.point = { x: 0, y: 0 }, this.slope = Math.PI / 4;
29579
29586
  }
29580
29587
  static fromPointSlope(t2, e2) {
29581
- const n2 = new ag();
29588
+ const n2 = new lg();
29582
29589
  return n2.point = t2, n2.slope = e2, n2;
29583
29590
  }
29584
29591
  resolveY(t2) {
29585
29592
  return Math.tan(this.slope) * (t2 - this.point.x) + this.point.y;
29586
29593
  }
29587
29594
  distanceToLinearEquation(t2) {
29588
- return og(this.slope, t2.slope) ? this.distanceToPoint(t2.point) : -1;
29595
+ return sg(this.slope, t2.slope) ? this.distanceToPoint(t2.point) : -1;
29589
29596
  }
29590
29597
  distanceToPoint(t2) {
29591
29598
  let e2 = 0;
29592
29599
  if (Math.tan(this.slope) * (t2.x - this.point.x) + this.point.y === t2.y)
29593
29600
  return 0;
29594
29601
  e2 = this.slope >= Math.PI / 2 ? this.slope - Math.PI / 2 : Math.PI / 2 + this.slope;
29595
- const n2 = ag.fromPointSlope(t2, e2), i2 = this.crossPoint(n2);
29602
+ const n2 = lg.fromPointSlope(t2, e2), i2 = this.crossPoint(n2);
29596
29603
  return i2 ? Math.ceil(Math.sqrt(Math.pow(i2.x - t2.x, 2) + Math.pow(i2.y - t2.y, 2))) : 0;
29597
29604
  }
29598
29605
  crossPoint(t2) {
29599
- if (og(t2.slope, this.slope))
29606
+ if (sg(t2.slope, this.slope))
29600
29607
  return null;
29601
29608
  let e2 = 0, n2 = 0;
29602
29609
  const i2 = Math.tan(t2.slope), r2 = Math.tan(this.slope), { x: o2, y: s2 } = this.point, { x: a2, y: l2 } = t2.point;
29603
- return og(this.slope, Math.PI / 2) ? (e2 = this.point.x, n2 = i2 * (e2 - a2) + l2) : og(t2.slope, Math.PI / 2) ? (e2 = t2.point.x, n2 = r2 * (e2 - o2) + s2) : og(this.slope, Math.PI) || og(this.slope, 0) ? (n2 = this.point.y, e2 = (n2 - l2) / i2 + a2) : og(t2.slope, Math.PI) || og(t2.slope, 0) ? (n2 = t2.point.y, e2 = (n2 - s2) / r2 + o2) : (e2 = (i2 * a2 - l2 + s2 - r2 * o2) / (i2 - r2), n2 = r2 * (e2 - o2) + s2), { x: e2, y: n2 };
29610
+ return sg(this.slope, Math.PI / 2) ? (e2 = this.point.x, n2 = i2 * (e2 - a2) + l2) : sg(t2.slope, Math.PI / 2) ? (e2 = t2.point.x, n2 = r2 * (e2 - o2) + s2) : sg(this.slope, Math.PI) || sg(this.slope, 0) ? (n2 = this.point.y, e2 = (n2 - l2) / i2 + a2) : sg(t2.slope, Math.PI) || sg(t2.slope, 0) ? (n2 = t2.point.y, e2 = (n2 - s2) / r2 + o2) : (e2 = (i2 * a2 - l2 + s2 - r2 * o2) / (i2 - r2), n2 = r2 * (e2 - o2) + s2), { x: e2, y: n2 };
29604
29611
  }
29605
29612
  }
29606
- class lg {
29613
+ class hg {
29607
29614
  constructor(t2, e2, n2) {
29608
29615
  var i2, r2, o2, s2, a2, l2;
29609
- this.scaleExt = { x: 1, y: 1 }, this.scaleOrigin = { x: 1, y: 1 }, this.designScale = { x: 1, y: 1 }, this.bound = new Rh.j(0, 0, 1, 1), this.pptX = 0, this.pptY = 0, this.presetSubType = 0, this.designWidth = 0, this.designHeight = 0, this.designX = 0, this.designY = 0, this.hasPreset = false, this.container = new wh.b(), this.animationFilterQueue = [], this.ctx = e2, this.style = new ig(this.container, !!t2.hardHidden, t2.rotation || 0), this.designGlobalPosition = { x: n2.x + ((r2 = (i2 = t2.position) === null || i2 === void 0 ? void 0 : i2.x) !== null && r2 !== void 0 ? r2 : 0), y: n2.y + ((s2 = (o2 = t2.position) === null || o2 === void 0 ? void 0 : o2.y) !== null && s2 !== void 0 ? s2 : 0) }, this.container.interactive = true, (t2.hlinkClick || t2.hlinkHover) && (this.hyperlink = new rg(this.container, this.ctx), t2.hlinkHover && ((a2 = this.hyperlink) === null || a2 === void 0 || a2.addAction(t2.hlinkHover, "hover")), t2.hlinkClick && ((l2 = this.hyperlink) === null || l2 === void 0 || l2.addAction(t2.hlinkClick, "click"))), this.ctx.clock.waitUntil(() => {
29616
+ this.scaleExt = { x: 1, y: 1 }, this.scaleOrigin = { x: 1, y: 1 }, this.designScale = { x: 1, y: 1 }, this.bound = new Rh.j(0, 0, 1, 1), this.pptX = 0, this.pptY = 0, this.presetSubType = 0, this.designWidth = 0, this.designHeight = 0, this.designX = 0, this.designY = 0, this.hasPreset = false, this.container = new wh.b(), this.animationFilterQueue = [], this.ctx = e2, this.style = new rg(this.container, !!t2.hardHidden, t2.rotation || 0), this.designGlobalPosition = { x: n2.x + ((r2 = (i2 = t2.position) === null || i2 === void 0 ? void 0 : i2.x) !== null && r2 !== void 0 ? r2 : 0), y: n2.y + ((s2 = (o2 = t2.position) === null || o2 === void 0 ? void 0 : o2.y) !== null && s2 !== void 0 ? s2 : 0) }, this.container.interactive = true, (t2.hlinkClick || t2.hlinkHover) && (this.hyperlink = new og(this.container, this.ctx), t2.hlinkHover && ((a2 = this.hyperlink) === null || a2 === void 0 || a2.addAction(t2.hlinkHover, "hover")), t2.hlinkClick && ((l2 = this.hyperlink) === null || l2 === void 0 || l2.addAction(t2.hlinkClick, "click"))), this.ctx.clock.waitUntil(() => {
29610
29617
  try {
29611
29618
  return !!this.container.width;
29612
29619
  } catch (t3) {
@@ -29660,16 +29667,16 @@ void main() {
29660
29667
  this.scaleOrigin.x = t2.x, this.scaleOrigin.y = t2.y, this.updateScale();
29661
29668
  }
29662
29669
  get design_ppt_w() {
29663
- return sg(this.designWidth / this.ctx.stageWidth);
29670
+ return ag(this.designWidth / this.ctx.stageWidth);
29664
29671
  }
29665
29672
  get design_ppt_h() {
29666
- return sg((this.designHeight || this.container.height) / this.ctx.stageHeight);
29673
+ return ag((this.designHeight || this.container.height) / this.ctx.stageHeight);
29667
29674
  }
29668
29675
  get design_ppt_x() {
29669
- return sg(this.designX / this.ctx.stageWidth);
29676
+ return ag(this.designX / this.ctx.stageWidth);
29670
29677
  }
29671
29678
  get design_ppt_y() {
29672
- return sg(this.designY / this.ctx.stageHeight);
29679
+ return ag(this.designY / this.ctx.stageHeight);
29673
29680
  }
29674
29681
  get ppt_w() {
29675
29682
  return this.scaleExt.x * this.scaleOrigin.x * this.designWidth / this.ctx.stageWidth;
@@ -29719,8 +29726,8 @@ void main() {
29719
29726
  return this.container.skew.y;
29720
29727
  }
29721
29728
  }
29722
- var hg = n(108), ug = n.n(hg);
29723
- class cg {
29729
+ var ug = n(108), cg = n.n(ug);
29730
+ class dg {
29724
29731
  constructor(t2) {
29725
29732
  if (this._isInit = false, this.h = 0, this.s = 0, this.l = 0, this.a = 1, t2) {
29726
29733
  this._isInit = true;
@@ -29735,7 +29742,7 @@ void main() {
29735
29742
  e2.h = Math.max(Math.min(this.h + t2.h, 359), 0), e2.s = Math.max(Math.min(this.s + t2.s, 1), 0), e2.l = Math.max(Math.min(this.l + t2.l, 1), 0), e2.a = Math.max(Math.min(this.a + t2.a, 1), 0);
29736
29743
  }
29737
29744
  fromHexString(t2) {
29738
- const [e2, n2, i2, r2] = fg(t2);
29745
+ const [e2, n2, i2, r2] = mg(t2);
29739
29746
  let o2 = 0, s2 = 0, a2 = 0;
29740
29747
  const l2 = Math.max(e2, n2, i2), h2 = Math.min(e2, n2, i2), u2 = l2 - h2;
29741
29748
  a2 = (l2 + h2) / 2, u2 === 0 ? o2 = 0 : l2 === e2 ? o2 = (n2 - i2) / u2 % 6 * 60 : l2 === n2 ? o2 = 60 * ((i2 - e2) / u2 + 2) : l2 === i2 && (o2 = 60 * ((e2 - n2) / u2 + 4)), s2 = u2 === 0 ? 0 : u2 / (1 - Math.abs(2 * a2 - 1)), this.h = o2, this.s = s2, this.l = a2, this.a = r2;
@@ -29752,15 +29759,15 @@ void main() {
29752
29759
  const a2 = (1 - Math.abs(2 * i2 - 1)) * n2, l2 = a2 * (1 - Math.abs(e2 / 60 % 2 - 1)), h2 = i2 - a2 / 2;
29753
29760
  [r2, o2, s2] = e2 >= 0 && e2 < 60 ? [a2, l2, 0] : e2 >= 60 && e2 < 120 ? [l2, a2, 0] : e2 >= 120 && e2 < 180 ? [0, a2, l2] : e2 >= 180 && e2 < 240 ? [0, l2, a2] : e2 >= 240 && e2 < 300 ? [l2, 0, a2] : [a2, 0, l2], t2 = [r2 + h2, o2 + h2, s2 + h2, this.a];
29754
29761
  }
29755
- return mg(t2);
29762
+ return gg(t2);
29756
29763
  }
29757
29764
  }
29758
- class dg {
29765
+ class pg {
29759
29766
  constructor(t2) {
29760
29767
  this._isInit = false, this.r = 0, this.g = 0, this.b = 0, this.a = 0, t2 && (this._isInit = true, this.fromHexString(t2));
29761
29768
  }
29762
29769
  fromHexString(t2) {
29763
- const [e2, n2, i2, r2] = fg(t2);
29770
+ const [e2, n2, i2, r2] = mg(t2);
29764
29771
  this.r = e2, this.g = n2, this.b = i2, this.a = r2;
29765
29772
  }
29766
29773
  isInit() {
@@ -29773,48 +29780,48 @@ void main() {
29773
29780
  e2.r = Math.min(Math.max(this.r + t2.r, 0), 255), e2.g = Math.min(Math.max(this.g + t2.g, 0), 255), e2.b = Math.min(Math.max(this.b + t2.b, 0), 255), e2.a = Math.min(Math.max(this.a + t2.a, 0), 1);
29774
29781
  }
29775
29782
  toHexString() {
29776
- return mg([this.r, this.g, this.b, this.a]);
29783
+ return gg([this.r, this.g, this.b, this.a]);
29777
29784
  }
29778
29785
  }
29779
- function pg(t2) {
29786
+ function fg(t2) {
29780
29787
  const e2 = t2.substring(1);
29781
29788
  return [parseInt(e2.substring(0, 6), 16), parseInt(e2.substring(6, 8), 16) / 255];
29782
29789
  }
29783
- function fg(t2) {
29790
+ function mg(t2) {
29784
29791
  return (t2 = t2.replace(/^#/, "")).substring(6, 8).length === 0 && (t2 += "FF"), [parseInt(t2.substring(0, 2).padStart(8, "0"), 16) / 255, parseInt(t2.substring(2, 4).padStart(8, "0"), 16) / 255, parseInt(t2.substring(4, 6).padStart(8, "0"), 16) / 255, parseInt(t2.substring(6, 8).padStart(8, "0"), 16) / 255];
29785
29792
  }
29786
- function mg(t2) {
29793
+ function gg(t2) {
29787
29794
  return "#" + Math.round(255 * t2[0]).toString(16).padStart(2, "0") + Math.round(255 * t2[1]).toString(16).padStart(2, "0") + Math.round(255 * t2[2]).toString(16).padStart(2, "0") + Math.round(255 * t2[3]).toString(16).padStart(2, "0");
29788
29795
  }
29789
- function gg(t2, e2, n2) {
29790
- const i2 = fg(t2), r2 = fg(e2), o2 = Math.round(255 * (i2[0] + (r2[0] - i2[0]) * n2)), s2 = Math.round(255 * (i2[1] + (r2[1] - i2[1]) * n2)), a2 = Math.round(255 * (i2[2] + (r2[2] - i2[2]) * n2)), l2 = Math.round(255 * (i2[3] + (r2[3] - i2[3]) * n2));
29796
+ function vg(t2, e2, n2) {
29797
+ const i2 = mg(t2), r2 = mg(e2), o2 = Math.round(255 * (i2[0] + (r2[0] - i2[0]) * n2)), s2 = Math.round(255 * (i2[1] + (r2[1] - i2[1]) * n2)), a2 = Math.round(255 * (i2[2] + (r2[2] - i2[2]) * n2)), l2 = Math.round(255 * (i2[3] + (r2[3] - i2[3]) * n2));
29791
29798
  return "#" + o2.toString(16).padStart(2, "0") + s2.toString(16).padStart(2, "0") + a2.toString(16).padStart(2, "0") + l2.toString(16).padStart(2, "0");
29792
29799
  }
29793
- class vg extends Uh.u {
29800
+ class _g extends Uh.u {
29794
29801
  constructor() {
29795
29802
  super(void 0, "\nvarying vec2 vTextureCoord;\n\nuniform vec4 color;\nuniform sampler2D uSampler;\n\nvoid main(void){\n vec4 texColor = texture2D(uSampler, vTextureCoord);\n\n if (texColor.a > 0.0) {\n vec4 resultColor = color;\n resultColor = resultColor * texColor.a;\n gl_FragColor = resultColor;\n } else {\n gl_FragColor = texColor;\n }\n}\n", { color: new Float32Array([0, 0, 0, 0]), active: 0 }), this.currentColor = "#FFFFFFFF", this.designColor = "#FFFFFFFF";
29796
29803
  }
29797
29804
  set color(t2) {
29798
29805
  this.currentColor = t2;
29799
- const e2 = fg(t2);
29806
+ const e2 = mg(t2);
29800
29807
  this.uniforms.color = Float32Array.from(e2);
29801
29808
  }
29802
29809
  get color() {
29803
29810
  return this.currentColor;
29804
29811
  }
29805
29812
  }
29806
- const _g = new rm.ColorMatrixFilter();
29807
- _g.matrix = [1, 0, 0, 0, -0.2, 0, 1, 0, 0, -0.2, 0, 0, 1, 0, -0.2, 0, 0, 0, 1, 0];
29808
29813
  const yg = new rm.ColorMatrixFilter();
29809
- yg.matrix = [1, 0, 0, 0, -0.1, 0, 1, 0, 0, -0.1, 0, 0, 1, 0, -0.1, 0, 0, 0, 1, 0];
29814
+ yg.matrix = [1, 0, 0, 0, -0.2, 0, 1, 0, 0, -0.2, 0, 0, 1, 0, -0.2, 0, 0, 0, 1, 0];
29810
29815
  const xg = new rm.ColorMatrixFilter();
29811
- xg.matrix = [1, 0, 0, 0, 0.2, 0, 1, 0, 0, 0.2, 0, 0, 1, 0, 0.2, 0, 0, 0, 1, 0];
29816
+ xg.matrix = [1, 0, 0, 0, -0.1, 0, 1, 0, 0, -0.1, 0, 0, 1, 0, -0.1, 0, 0, 0, 1, 0];
29812
29817
  const bg = new rm.ColorMatrixFilter();
29813
- bg.matrix = [1, 0, 0, 0, 0.1, 0, 1, 0, 0, 0.1, 0, 0, 1, 0, 0.1, 0, 0, 0, 1, 0];
29814
- const Tg = { darken: _g, darkenLess: yg, lightenLess: bg, lighten: xg };
29815
- class Eg extends lg {
29818
+ bg.matrix = [1, 0, 0, 0, 0.2, 0, 1, 0, 0, 0.2, 0, 0, 1, 0, 0.2, 0, 0, 0, 1, 0];
29819
+ const Tg = new rm.ColorMatrixFilter();
29820
+ Tg.matrix = [1, 0, 0, 0, 0.1, 0, 1, 0, 0, 0.1, 0, 0, 1, 0, 0.1, 0, 0, 0, 1, 0];
29821
+ const Eg = { darken: yg, darkenLess: xg, lightenLess: Tg, lighten: bg };
29822
+ class Sg extends hg {
29816
29823
  constructor(t2, e2, n2) {
29817
- super({ position: { x: t2.x, y: t2.y }, width: t2.width, height: t2.height }, e2, n2), this.fillColorFilter = new vg(), this.fill = new ng(this), this.json = t2, this.ctx = e2, this.parentGlobalPos = n2, this.global = { x: n2.x + t2.x, y: n2.y + t2.y }, this.updateTransform({ position: { x: t2.x, y: t2.y }, width: t2.width, height: t2.height });
29824
+ super({ position: { x: t2.x, y: t2.y }, width: t2.width, height: t2.height }, e2, n2), this.fillColorFilter = new _g(), this.fill = new ig(this), this.json = t2, this.ctx = e2, this.parentGlobalPos = n2, this.global = { x: n2.x + t2.x, y: n2.y + t2.y }, this.updateTransform({ position: { x: t2.x, y: t2.y }, width: t2.width, height: t2.height });
29818
29825
  }
29819
29826
  get fillActive() {
29820
29827
  var t2, e2;
@@ -29855,13 +29862,13 @@ void main() {
29855
29862
  this.container.position.y = this.designY + e2 + this.container.pivot.y * n2;
29856
29863
  }
29857
29864
  get design_ppt_x() {
29858
- return sg(this.global.x / this.ctx.stageWidth);
29865
+ return ag(this.global.x / this.ctx.stageWidth);
29859
29866
  }
29860
29867
  get design_ppt_y() {
29861
- return sg(this.global.y / this.ctx.stageHeight);
29868
+ return ag(this.global.y / this.ctx.stageHeight);
29862
29869
  }
29863
29870
  }
29864
- class Sg {
29871
+ class wg {
29865
29872
  constructor(t2, e2, n2, i2, r2, o2, s2, a2, l2, h2, u2) {
29866
29873
  this.ctx = t2, this.type = e2, this.lineWidth = n2, this.width = i2, this.height = r2, this.fillColor = o2, this.isHorz = s2, this.renderContainer = new wh.b(), this.ghcTextureId = `${a2}-text-p${l2}-l${h2}-u${u2}-underLine`;
29867
29874
  }
@@ -29870,7 +29877,7 @@ void main() {
29870
29877
  return null;
29871
29878
  {
29872
29879
  let t2 = `M 0,0 L ${9525 * this.width},0`, [e2, n2] = [this.width, this.lineWidth];
29873
- return this.isHorz || (t2 = "M 0,0 L 0," + 9525 * this.height, [e2, n2] = [this.lineWidth, this.height]), { paths: [{ id: Mm(), path: t2, fill: "norm", hasStroke: true, scale: { x: 1, y: 1 }, hash: Hm()(t2) }], width: e2, height: n2 };
29880
+ return this.isHorz || (t2 = "M 0,0 L 0," + 9525 * this.height, [e2, n2] = [this.lineWidth, this.height]), { paths: [{ id: Mm(), path: t2, fill: "norm", hasStroke: true, scale: { x: 1, y: 1 }, hash: jm()(t2) }], width: e2, height: n2 };
29874
29881
  }
29875
29882
  }
29876
29883
  getLineStyle() {
@@ -29895,8 +29902,8 @@ void main() {
29895
29902
  (t2 = this.sprite) === null || t2 === void 0 || t2.destroy({ texture: true });
29896
29903
  }
29897
29904
  }
29898
- const wg = 134217729;
29899
- function Ag(t2, e2, n2, i2, r2) {
29905
+ const Ag = 134217729;
29906
+ function Mg(t2, e2, n2, i2, r2) {
29900
29907
  let o2, s2, a2, l2, h2 = e2[0], u2 = i2[0], c2 = 0, d2 = 0;
29901
29908
  u2 > h2 == u2 > -h2 ? (o2 = h2, h2 = e2[++c2]) : (o2 = u2, u2 = i2[++d2]);
29902
29909
  let p2 = 0;
@@ -29909,17 +29916,17 @@ void main() {
29909
29916
  s2 = o2 + u2, l2 = s2 - o2, a2 = o2 - (s2 - l2) + (u2 - l2), u2 = i2[++d2], o2 = s2, a2 !== 0 && (r2[p2++] = a2);
29910
29917
  return o2 === 0 && p2 !== 0 || (r2[p2++] = o2), p2;
29911
29918
  }
29912
- function Mg(t2, e2) {
29919
+ function Rg(t2, e2) {
29913
29920
  let n2 = e2[0];
29914
29921
  for (let i2 = 1; i2 < t2; i2++)
29915
29922
  n2 += e2[i2];
29916
29923
  return n2;
29917
29924
  }
29918
- function Rg(t2) {
29925
+ function Cg(t2) {
29919
29926
  return new Float64Array(t2);
29920
29927
  }
29921
- const Cg = Rg(4), Pg = Rg(8), Ig = Rg(12), Og = Rg(16), Ng = Rg(4);
29922
- function Lg(t2, e2, n2, i2, r2, o2) {
29928
+ const Pg = Cg(4), Ig = Cg(8), Og = Cg(12), Ng = Cg(16), Lg = Cg(4);
29929
+ function Dg(t2, e2, n2, i2, r2, o2) {
29923
29930
  const s2 = (e2 - o2) * (n2 - r2), a2 = (t2 - r2) * (i2 - o2), l2 = s2 - a2;
29924
29931
  if (s2 === 0 || a2 === 0 || s2 > 0 != a2 > 0)
29925
29932
  return l2;
@@ -29927,32 +29934,32 @@ void main() {
29927
29934
  return Math.abs(l2) >= 33306690738754716e-32 * h2 ? l2 : -function(t3, e3, n3, i3, r3, o3, s3) {
29928
29935
  let a3, l3, h3, u2, c2, d2, p2, f2, m2, g2, v2, _2, y2, x2, b2, T2, E2, S2;
29929
29936
  const w2 = t3 - r3, A2 = n3 - r3, M2 = e3 - o3, R2 = i3 - o3;
29930
- x2 = w2 * R2, d2 = wg * w2, p2 = d2 - (d2 - w2), f2 = w2 - p2, d2 = wg * R2, m2 = d2 - (d2 - R2), g2 = R2 - m2, b2 = f2 * g2 - (x2 - p2 * m2 - f2 * m2 - p2 * g2), T2 = M2 * A2, d2 = wg * M2, p2 = d2 - (d2 - M2), f2 = M2 - p2, d2 = wg * A2, m2 = d2 - (d2 - A2), g2 = A2 - m2, E2 = f2 * g2 - (T2 - p2 * m2 - f2 * m2 - p2 * g2), v2 = b2 - E2, c2 = b2 - v2, Cg[0] = b2 - (v2 + c2) + (c2 - E2), _2 = x2 + v2, c2 = _2 - x2, y2 = x2 - (_2 - c2) + (v2 - c2), v2 = y2 - T2, c2 = y2 - v2, Cg[1] = y2 - (v2 + c2) + (c2 - T2), S2 = _2 + v2, c2 = S2 - _2, Cg[2] = _2 - (S2 - c2) + (v2 - c2), Cg[3] = S2;
29931
- let C2 = Mg(4, Cg), P2 = 22204460492503146e-32 * s3;
29937
+ x2 = w2 * R2, d2 = Ag * w2, p2 = d2 - (d2 - w2), f2 = w2 - p2, d2 = Ag * R2, m2 = d2 - (d2 - R2), g2 = R2 - m2, b2 = f2 * g2 - (x2 - p2 * m2 - f2 * m2 - p2 * g2), T2 = M2 * A2, d2 = Ag * M2, p2 = d2 - (d2 - M2), f2 = M2 - p2, d2 = Ag * A2, m2 = d2 - (d2 - A2), g2 = A2 - m2, E2 = f2 * g2 - (T2 - p2 * m2 - f2 * m2 - p2 * g2), v2 = b2 - E2, c2 = b2 - v2, Pg[0] = b2 - (v2 + c2) + (c2 - E2), _2 = x2 + v2, c2 = _2 - x2, y2 = x2 - (_2 - c2) + (v2 - c2), v2 = y2 - T2, c2 = y2 - v2, Pg[1] = y2 - (v2 + c2) + (c2 - T2), S2 = _2 + v2, c2 = S2 - _2, Pg[2] = _2 - (S2 - c2) + (v2 - c2), Pg[3] = S2;
29938
+ let C2 = Rg(4, Pg), P2 = 22204460492503146e-32 * s3;
29932
29939
  if (C2 >= P2 || -C2 >= P2)
29933
29940
  return C2;
29934
29941
  if (c2 = t3 - w2, a3 = t3 - (w2 + c2) + (c2 - r3), c2 = n3 - A2, h3 = n3 - (A2 + c2) + (c2 - r3), c2 = e3 - M2, l3 = e3 - (M2 + c2) + (c2 - o3), c2 = i3 - R2, u2 = i3 - (R2 + c2) + (c2 - o3), a3 === 0 && l3 === 0 && h3 === 0 && u2 === 0)
29935
29942
  return C2;
29936
29943
  if (P2 = 11093356479670487e-47 * s3 + 33306690738754706e-32 * Math.abs(C2), C2 += w2 * u2 + R2 * a3 - (M2 * h3 + A2 * l3), C2 >= P2 || -C2 >= P2)
29937
29944
  return C2;
29938
- x2 = a3 * R2, d2 = wg * a3, p2 = d2 - (d2 - a3), f2 = a3 - p2, d2 = wg * R2, m2 = d2 - (d2 - R2), g2 = R2 - m2, b2 = f2 * g2 - (x2 - p2 * m2 - f2 * m2 - p2 * g2), T2 = l3 * A2, d2 = wg * l3, p2 = d2 - (d2 - l3), f2 = l3 - p2, d2 = wg * A2, m2 = d2 - (d2 - A2), g2 = A2 - m2, E2 = f2 * g2 - (T2 - p2 * m2 - f2 * m2 - p2 * g2), v2 = b2 - E2, c2 = b2 - v2, Ng[0] = b2 - (v2 + c2) + (c2 - E2), _2 = x2 + v2, c2 = _2 - x2, y2 = x2 - (_2 - c2) + (v2 - c2), v2 = y2 - T2, c2 = y2 - v2, Ng[1] = y2 - (v2 + c2) + (c2 - T2), S2 = _2 + v2, c2 = S2 - _2, Ng[2] = _2 - (S2 - c2) + (v2 - c2), Ng[3] = S2;
29939
- const I2 = Ag(4, Cg, 4, Ng, Pg);
29940
- x2 = w2 * u2, d2 = wg * w2, p2 = d2 - (d2 - w2), f2 = w2 - p2, d2 = wg * u2, m2 = d2 - (d2 - u2), g2 = u2 - m2, b2 = f2 * g2 - (x2 - p2 * m2 - f2 * m2 - p2 * g2), T2 = M2 * h3, d2 = wg * M2, p2 = d2 - (d2 - M2), f2 = M2 - p2, d2 = wg * h3, m2 = d2 - (d2 - h3), g2 = h3 - m2, E2 = f2 * g2 - (T2 - p2 * m2 - f2 * m2 - p2 * g2), v2 = b2 - E2, c2 = b2 - v2, Ng[0] = b2 - (v2 + c2) + (c2 - E2), _2 = x2 + v2, c2 = _2 - x2, y2 = x2 - (_2 - c2) + (v2 - c2), v2 = y2 - T2, c2 = y2 - v2, Ng[1] = y2 - (v2 + c2) + (c2 - T2), S2 = _2 + v2, c2 = S2 - _2, Ng[2] = _2 - (S2 - c2) + (v2 - c2), Ng[3] = S2;
29941
- const O2 = Ag(I2, Pg, 4, Ng, Ig);
29942
- x2 = a3 * u2, d2 = wg * a3, p2 = d2 - (d2 - a3), f2 = a3 - p2, d2 = wg * u2, m2 = d2 - (d2 - u2), g2 = u2 - m2, b2 = f2 * g2 - (x2 - p2 * m2 - f2 * m2 - p2 * g2), T2 = l3 * h3, d2 = wg * l3, p2 = d2 - (d2 - l3), f2 = l3 - p2, d2 = wg * h3, m2 = d2 - (d2 - h3), g2 = h3 - m2, E2 = f2 * g2 - (T2 - p2 * m2 - f2 * m2 - p2 * g2), v2 = b2 - E2, c2 = b2 - v2, Ng[0] = b2 - (v2 + c2) + (c2 - E2), _2 = x2 + v2, c2 = _2 - x2, y2 = x2 - (_2 - c2) + (v2 - c2), v2 = y2 - T2, c2 = y2 - v2, Ng[1] = y2 - (v2 + c2) + (c2 - T2), S2 = _2 + v2, c2 = S2 - _2, Ng[2] = _2 - (S2 - c2) + (v2 - c2), Ng[3] = S2;
29943
- const N2 = Ag(O2, Ig, 4, Ng, Og);
29944
- return Og[N2 - 1];
29945
+ x2 = a3 * R2, d2 = Ag * a3, p2 = d2 - (d2 - a3), f2 = a3 - p2, d2 = Ag * R2, m2 = d2 - (d2 - R2), g2 = R2 - m2, b2 = f2 * g2 - (x2 - p2 * m2 - f2 * m2 - p2 * g2), T2 = l3 * A2, d2 = Ag * l3, p2 = d2 - (d2 - l3), f2 = l3 - p2, d2 = Ag * A2, m2 = d2 - (d2 - A2), g2 = A2 - m2, E2 = f2 * g2 - (T2 - p2 * m2 - f2 * m2 - p2 * g2), v2 = b2 - E2, c2 = b2 - v2, Lg[0] = b2 - (v2 + c2) + (c2 - E2), _2 = x2 + v2, c2 = _2 - x2, y2 = x2 - (_2 - c2) + (v2 - c2), v2 = y2 - T2, c2 = y2 - v2, Lg[1] = y2 - (v2 + c2) + (c2 - T2), S2 = _2 + v2, c2 = S2 - _2, Lg[2] = _2 - (S2 - c2) + (v2 - c2), Lg[3] = S2;
29946
+ const I2 = Mg(4, Pg, 4, Lg, Ig);
29947
+ x2 = w2 * u2, d2 = Ag * w2, p2 = d2 - (d2 - w2), f2 = w2 - p2, d2 = Ag * u2, m2 = d2 - (d2 - u2), g2 = u2 - m2, b2 = f2 * g2 - (x2 - p2 * m2 - f2 * m2 - p2 * g2), T2 = M2 * h3, d2 = Ag * M2, p2 = d2 - (d2 - M2), f2 = M2 - p2, d2 = Ag * h3, m2 = d2 - (d2 - h3), g2 = h3 - m2, E2 = f2 * g2 - (T2 - p2 * m2 - f2 * m2 - p2 * g2), v2 = b2 - E2, c2 = b2 - v2, Lg[0] = b2 - (v2 + c2) + (c2 - E2), _2 = x2 + v2, c2 = _2 - x2, y2 = x2 - (_2 - c2) + (v2 - c2), v2 = y2 - T2, c2 = y2 - v2, Lg[1] = y2 - (v2 + c2) + (c2 - T2), S2 = _2 + v2, c2 = S2 - _2, Lg[2] = _2 - (S2 - c2) + (v2 - c2), Lg[3] = S2;
29948
+ const O2 = Mg(I2, Ig, 4, Lg, Og);
29949
+ x2 = a3 * u2, d2 = Ag * a3, p2 = d2 - (d2 - a3), f2 = a3 - p2, d2 = Ag * u2, m2 = d2 - (d2 - u2), g2 = u2 - m2, b2 = f2 * g2 - (x2 - p2 * m2 - f2 * m2 - p2 * g2), T2 = l3 * h3, d2 = Ag * l3, p2 = d2 - (d2 - l3), f2 = l3 - p2, d2 = Ag * h3, m2 = d2 - (d2 - h3), g2 = h3 - m2, E2 = f2 * g2 - (T2 - p2 * m2 - f2 * m2 - p2 * g2), v2 = b2 - E2, c2 = b2 - v2, Lg[0] = b2 - (v2 + c2) + (c2 - E2), _2 = x2 + v2, c2 = _2 - x2, y2 = x2 - (_2 - c2) + (v2 - c2), v2 = y2 - T2, c2 = y2 - v2, Lg[1] = y2 - (v2 + c2) + (c2 - T2), S2 = _2 + v2, c2 = S2 - _2, Lg[2] = _2 - (S2 - c2) + (v2 - c2), Lg[3] = S2;
29950
+ const N2 = Mg(O2, Og, 4, Lg, Ng);
29951
+ return Ng[N2 - 1];
29945
29952
  }(t2, e2, n2, i2, r2, o2, h2);
29946
29953
  }
29947
- const Dg = Math.pow(2, -52), Fg = new Uint32Array(512);
29948
- class Bg {
29949
- static from(t2, e2 = zg, n2 = Vg) {
29954
+ const Fg = Math.pow(2, -52), Bg = new Uint32Array(512);
29955
+ class Ug {
29956
+ static from(t2, e2 = Vg, n2 = Xg) {
29950
29957
  const i2 = t2.length, r2 = new Float64Array(2 * i2);
29951
29958
  for (let o2 = 0; o2 < i2; o2++) {
29952
29959
  const i3 = t2[o2];
29953
29960
  r2[2 * o2] = e2(i3), r2[2 * o2 + 1] = n2(i3);
29954
29961
  }
29955
- return new Bg(r2);
29962
+ return new Ug(r2);
29956
29963
  }
29957
29964
  constructor(t2) {
29958
29965
  const e2 = t2.length >> 1;
@@ -29972,7 +29979,7 @@ void main() {
29972
29979
  const u2 = (s2 + l2) / 2, c2 = (a2 + h2) / 2;
29973
29980
  let d2, p2, f2, m2 = 1 / 0;
29974
29981
  for (let e3 = 0; e3 < o2; e3++) {
29975
- const n3 = Ug(u2, c2, t2[2 * e3], t2[2 * e3 + 1]);
29982
+ const n3 = kg(u2, c2, t2[2 * e3], t2[2 * e3 + 1]);
29976
29983
  n3 < m2 && (d2 = e3, m2 = n3);
29977
29984
  }
29978
29985
  const g2 = t2[2 * d2], v2 = t2[2 * d2 + 1];
@@ -29980,21 +29987,21 @@ void main() {
29980
29987
  for (let e3 = 0; e3 < o2; e3++) {
29981
29988
  if (e3 === d2)
29982
29989
  continue;
29983
- const n3 = Ug(g2, v2, t2[2 * e3], t2[2 * e3 + 1]);
29990
+ const n3 = kg(g2, v2, t2[2 * e3], t2[2 * e3 + 1]);
29984
29991
  n3 < m2 && n3 > 0 && (p2 = e3, m2 = n3);
29985
29992
  }
29986
29993
  let _2 = t2[2 * p2], y2 = t2[2 * p2 + 1], x2 = 1 / 0;
29987
29994
  for (let e3 = 0; e3 < o2; e3++) {
29988
29995
  if (e3 === d2 || e3 === p2)
29989
29996
  continue;
29990
- const n3 = Gg(g2, v2, _2, y2, t2[2 * e3], t2[2 * e3 + 1]);
29997
+ const n3 = Hg(g2, v2, _2, y2, t2[2 * e3], t2[2 * e3 + 1]);
29991
29998
  n3 < x2 && (f2 = e3, x2 = n3);
29992
29999
  }
29993
30000
  let b2 = t2[2 * f2], T2 = t2[2 * f2 + 1];
29994
30001
  if (x2 === 1 / 0) {
29995
30002
  for (let e4 = 0; e4 < o2; e4++)
29996
30003
  this._dists[e4] = t2[2 * e4] - t2[0] || t2[2 * e4 + 1] - t2[1];
29997
- Hg(this._ids, this._dists, 0, o2 - 1);
30004
+ jg(this._ids, this._dists, 0, o2 - 1);
29998
30005
  const e3 = new Uint32Array(o2);
29999
30006
  let n3 = 0;
30000
30007
  for (let t3 = 0, i3 = -1 / 0; t3 < o2; t3++) {
@@ -30003,7 +30010,7 @@ void main() {
30003
30010
  }
30004
30011
  return this.hull = e3.subarray(0, n3), this.triangles = new Uint32Array(0), void (this.halfedges = new Uint32Array(0));
30005
30012
  }
30006
- if (Lg(g2, v2, _2, y2, b2, T2) < 0) {
30013
+ if (Dg(g2, v2, _2, y2, b2, T2) < 0) {
30007
30014
  const t3 = p2, e3 = _2, n3 = y2;
30008
30015
  p2 = f2, _2 = b2, y2 = T2, f2 = t3, b2 = e3, T2 = n3;
30009
30016
  }
@@ -30013,13 +30020,13 @@ void main() {
30013
30020
  }(g2, v2, _2, y2, b2, T2);
30014
30021
  this._cx = E2.x, this._cy = E2.y;
30015
30022
  for (let e3 = 0; e3 < o2; e3++)
30016
- this._dists[e3] = Ug(t2[2 * e3], t2[2 * e3 + 1], E2.x, E2.y);
30017
- Hg(this._ids, this._dists, 0, o2 - 1), this._hullStart = d2;
30023
+ this._dists[e3] = kg(t2[2 * e3], t2[2 * e3 + 1], E2.x, E2.y);
30024
+ jg(this._ids, this._dists, 0, o2 - 1), this._hullStart = d2;
30018
30025
  let S2 = 3;
30019
30026
  n2[d2] = e2[f2] = p2, n2[p2] = e2[d2] = f2, n2[f2] = e2[p2] = d2, i2[d2] = 0, i2[p2] = 1, i2[f2] = 2, r2.fill(-1), r2[this._hashKey(g2, v2)] = d2, r2[this._hashKey(_2, y2)] = p2, r2[this._hashKey(b2, T2)] = f2, this.trianglesLen = 0, this._addTriangle(d2, p2, f2, -1, -1, -1);
30020
30027
  for (let o3, s3, a3 = 0; a3 < this._ids.length; a3++) {
30021
30028
  const l3 = this._ids[a3], h3 = t2[2 * l3], u3 = t2[2 * l3 + 1];
30022
- if (a3 > 0 && Math.abs(h3 - o3) <= Dg && Math.abs(u3 - s3) <= Dg)
30029
+ if (a3 > 0 && Math.abs(h3 - o3) <= Fg && Math.abs(u3 - s3) <= Fg)
30023
30030
  continue;
30024
30031
  if (o3 = h3, s3 = u3, l3 === d2 || l3 === p2 || l3 === f2)
30025
30032
  continue;
@@ -30028,7 +30035,7 @@ void main() {
30028
30035
  ;
30029
30036
  c3 = e2[c3];
30030
30037
  let m3, g3 = c3;
30031
- for (; m3 = n2[g3], Lg(h3, u3, t2[2 * g3], t2[2 * g3 + 1], t2[2 * m3], t2[2 * m3 + 1]) >= 0; )
30038
+ for (; m3 = n2[g3], Dg(h3, u3, t2[2 * g3], t2[2 * g3 + 1], t2[2 * m3], t2[2 * m3 + 1]) >= 0; )
30032
30039
  if (g3 = m3, g3 === c3) {
30033
30040
  g3 = -1;
30034
30041
  break;
@@ -30038,10 +30045,10 @@ void main() {
30038
30045
  let v3 = this._addTriangle(g3, l3, n2[g3], -1, -1, i2[g3]);
30039
30046
  i2[l3] = this._legalize(v3 + 2), i2[g3] = v3, S2++;
30040
30047
  let _3 = n2[g3];
30041
- for (; m3 = n2[_3], Lg(h3, u3, t2[2 * _3], t2[2 * _3 + 1], t2[2 * m3], t2[2 * m3 + 1]) < 0; )
30048
+ for (; m3 = n2[_3], Dg(h3, u3, t2[2 * _3], t2[2 * _3 + 1], t2[2 * m3], t2[2 * m3 + 1]) < 0; )
30042
30049
  v3 = this._addTriangle(_3, l3, m3, i2[l3], -1, i2[_3]), i2[l3] = this._legalize(v3 + 2), n2[_3] = _3, S2--, _3 = m3;
30043
30050
  if (g3 === c3)
30044
- for (; m3 = e2[g3], Lg(h3, u3, t2[2 * m3], t2[2 * m3 + 1], t2[2 * g3], t2[2 * g3 + 1]) < 0; )
30051
+ for (; m3 = e2[g3], Dg(h3, u3, t2[2 * m3], t2[2 * m3 + 1], t2[2 * g3], t2[2 * g3 + 1]) < 0; )
30045
30052
  v3 = this._addTriangle(m3, l3, g3, -1, i2[g3], i2[m3]), this._legalize(v3 + 2), i2[m3] = v3, n2[g3] = g3, S2--, g3 = m3;
30046
30053
  this._hullStart = e2[l3] = g3, n2[g3] = e2[_3] = l3, n2[l3] = _3, r2[this._hashKey(h3, u3)] = l3, r2[this._hashKey(t2[2 * g3], t2[2 * g3 + 1])] = g3;
30047
30054
  }
@@ -30064,11 +30071,11 @@ void main() {
30064
30071
  if (o2 = a2 + (t2 + 2) % 3, s2 === -1) {
30065
30072
  if (r2 === 0)
30066
30073
  break;
30067
- t2 = Fg[--r2];
30074
+ t2 = Bg[--r2];
30068
30075
  continue;
30069
30076
  }
30070
30077
  const l2 = s2 - s2 % 3, h2 = a2 + (t2 + 1) % 3, u2 = l2 + (s2 + 2) % 3, c2 = e2[o2], d2 = e2[t2], p2 = e2[h2], f2 = e2[u2];
30071
- if (kg(i2[2 * c2], i2[2 * c2 + 1], i2[2 * d2], i2[2 * d2 + 1], i2[2 * p2], i2[2 * p2 + 1], i2[2 * f2], i2[2 * f2 + 1])) {
30078
+ if (Gg(i2[2 * c2], i2[2 * c2 + 1], i2[2 * d2], i2[2 * d2 + 1], i2[2 * p2], i2[2 * p2 + 1], i2[2 * f2], i2[2 * f2 + 1])) {
30072
30079
  e2[t2] = f2, e2[s2] = c2;
30073
30080
  const i3 = n2[u2];
30074
30081
  if (i3 === -1) {
@@ -30083,11 +30090,11 @@ void main() {
30083
30090
  }
30084
30091
  this._link(t2, i3), this._link(s2, n2[o2]), this._link(o2, u2);
30085
30092
  const a3 = l2 + (s2 + 1) % 3;
30086
- r2 < Fg.length && (Fg[r2++] = a3);
30093
+ r2 < Bg.length && (Bg[r2++] = a3);
30087
30094
  } else {
30088
30095
  if (r2 === 0)
30089
30096
  break;
30090
- t2 = Fg[--r2];
30097
+ t2 = Bg[--r2];
30091
30098
  }
30092
30099
  }
30093
30100
  return o2;
@@ -30100,19 +30107,19 @@ void main() {
30100
30107
  return this._triangles[s2] = t2, this._triangles[s2 + 1] = e2, this._triangles[s2 + 2] = n2, this._link(s2, i2), this._link(s2 + 1, r2), this._link(s2 + 2, o2), this.trianglesLen += 3, s2;
30101
30108
  }
30102
30109
  }
30103
- function Ug(t2, e2, n2, i2) {
30110
+ function kg(t2, e2, n2, i2) {
30104
30111
  const r2 = t2 - n2, o2 = e2 - i2;
30105
30112
  return r2 * r2 + o2 * o2;
30106
30113
  }
30107
- function kg(t2, e2, n2, i2, r2, o2, s2, a2) {
30114
+ function Gg(t2, e2, n2, i2, r2, o2, s2, a2) {
30108
30115
  const l2 = t2 - s2, h2 = e2 - a2, u2 = n2 - s2, c2 = i2 - a2, d2 = r2 - s2, p2 = o2 - a2, f2 = u2 * u2 + c2 * c2, m2 = d2 * d2 + p2 * p2;
30109
30116
  return l2 * (c2 * m2 - f2 * p2) - h2 * (u2 * m2 - f2 * d2) + (l2 * l2 + h2 * h2) * (u2 * p2 - c2 * d2) < 0;
30110
30117
  }
30111
- function Gg(t2, e2, n2, i2, r2, o2) {
30118
+ function Hg(t2, e2, n2, i2, r2, o2) {
30112
30119
  const s2 = n2 - t2, a2 = i2 - e2, l2 = r2 - t2, h2 = o2 - e2, u2 = s2 * s2 + a2 * a2, c2 = l2 * l2 + h2 * h2, d2 = 0.5 / (s2 * h2 - a2 * l2), p2 = (h2 * u2 - a2 * c2) * d2, f2 = (s2 * c2 - l2 * u2) * d2;
30113
30120
  return p2 * p2 + f2 * f2;
30114
30121
  }
30115
- function Hg(t2, e2, n2, i2) {
30122
+ function jg(t2, e2, n2, i2) {
30116
30123
  if (i2 - n2 <= 20)
30117
30124
  for (let r2 = n2 + 1; r2 <= i2; r2++) {
30118
30125
  const i3 = t2[r2], o2 = e2[i3];
@@ -30123,7 +30130,7 @@ void main() {
30123
30130
  }
30124
30131
  else {
30125
30132
  let r2 = n2 + 1, o2 = i2;
30126
- jg(t2, n2 + i2 >> 1, r2), e2[t2[n2]] > e2[t2[i2]] && jg(t2, n2, i2), e2[t2[r2]] > e2[t2[i2]] && jg(t2, r2, i2), e2[t2[n2]] > e2[t2[r2]] && jg(t2, n2, r2);
30133
+ zg(t2, n2 + i2 >> 1, r2), e2[t2[n2]] > e2[t2[i2]] && zg(t2, n2, i2), e2[t2[r2]] > e2[t2[i2]] && zg(t2, r2, i2), e2[t2[n2]] > e2[t2[r2]] && zg(t2, n2, r2);
30127
30134
  const s2 = t2[r2], a2 = e2[s2];
30128
30135
  for (; ; ) {
30129
30136
  do {
@@ -30134,22 +30141,22 @@ void main() {
30134
30141
  } while (e2[t2[o2]] > a2);
30135
30142
  if (o2 < r2)
30136
30143
  break;
30137
- jg(t2, r2, o2);
30144
+ zg(t2, r2, o2);
30138
30145
  }
30139
- t2[n2 + 1] = t2[o2], t2[o2] = s2, i2 - r2 + 1 >= o2 - n2 ? (Hg(t2, e2, r2, i2), Hg(t2, e2, n2, o2 - 1)) : (Hg(t2, e2, n2, o2 - 1), Hg(t2, e2, r2, i2));
30146
+ t2[n2 + 1] = t2[o2], t2[o2] = s2, i2 - r2 + 1 >= o2 - n2 ? (jg(t2, e2, r2, i2), jg(t2, e2, n2, o2 - 1)) : (jg(t2, e2, n2, o2 - 1), jg(t2, e2, r2, i2));
30140
30147
  }
30141
30148
  }
30142
- function jg(t2, e2, n2) {
30149
+ function zg(t2, e2, n2) {
30143
30150
  const i2 = t2[e2];
30144
30151
  t2[e2] = t2[n2], t2[n2] = i2;
30145
30152
  }
30146
- function zg(t2) {
30153
+ function Vg(t2) {
30147
30154
  return t2[0];
30148
30155
  }
30149
- function Vg(t2) {
30156
+ function Xg(t2) {
30150
30157
  return t2[1];
30151
30158
  }
30152
- function Xg(t2, e2, n2) {
30159
+ function Wg(t2, e2, n2) {
30153
30160
  let i2 = null;
30154
30161
  const r2 = new wh.b();
30155
30162
  if (t2.stopList.sort((t3, e3) => t3.pos - e3.pos), !t2.stopList.find((t3) => t3.pos === 0)) {
@@ -30163,12 +30170,12 @@ void main() {
30163
30170
  const o2 = (t3) => {
30164
30171
  const e3 = [];
30165
30172
  for (let n3 = 0, i3 = t3.length; n3 < i3 - 1; n3++) {
30166
- const i4 = t3[n3], r3 = t3[n3 + 1], o3 = i4.pos + 0.5 * (r3.pos - i4.pos), s2 = gg(i4.color, r3.color, 0.5), a2 = 2 * n3;
30173
+ const i4 = t3[n3], r3 = t3[n3 + 1], o3 = i4.pos + 0.5 * (r3.pos - i4.pos), s2 = vg(i4.color, r3.color, 0.5), a2 = 2 * n3;
30167
30174
  e3[a2] = i4, e3[a2 + 1] = { color: s2, pos: o3 }, e3[a2 + 2] = r3;
30168
30175
  }
30169
30176
  return e3;
30170
30177
  };
30171
- if (t2.stopList = o2(t2.stopList), t2.stopList = o2(t2.stopList), i2 = t2.line ? Wg(t2, e2, n2) : t2.path ? function(t3, e3, n3) {
30178
+ if (t2.stopList = o2(t2.stopList), t2.stopList = o2(t2.stopList), i2 = t2.line ? Yg(t2, e2, n2) : t2.path ? function(t3, e3, n3) {
30172
30179
  var i3, r3, o3;
30173
30180
  const s2 = [], a2 = { x: 0, y: 0 };
30174
30181
  if (((i3 = t3.path) === null || i3 === void 0 ? void 0 : i3.path) === "circle" || ((r3 = t3.path) === null || r3 === void 0 ? void 0 : r3.path) === "rect" || ((o3 = t3.path) === null || o3 === void 0 ? void 0 : o3.path) === "shape") {
@@ -30186,10 +30193,10 @@ void main() {
30186
30193
  });
30187
30194
  }
30188
30195
  return { points: s2, position: a2 };
30189
- }(t2, e2, n2) : Wg(t2, e2, n2), i2) {
30190
- const t3 = [], o3 = [], { position: s2, points: a2 } = i2, l2 = Bg.from(a2, (t4) => t4.point.x, (t4) => t4.point.y);
30196
+ }(t2, e2, n2) : Yg(t2, e2, n2), i2) {
30197
+ const t3 = [], o3 = [], { position: s2, points: a2 } = i2, l2 = Ug.from(a2, (t4) => t4.point.x, (t4) => t4.point.y);
30191
30198
  for (let e3 = 0; e3 < l2.triangles.length; e3 += 3)
30192
- t3.push(a2[l2.triangles[e3]].point.x, a2[l2.triangles[e3]].point.y), t3.push(a2[l2.triangles[e3 + 1]].point.x, a2[l2.triangles[e3 + 1]].point.y), t3.push(a2[l2.triangles[e3 + 2]].point.x, a2[l2.triangles[e3 + 2]].point.y), o3.push(...fg(a2[l2.triangles[e3]].color)), o3.push(...fg(a2[l2.triangles[e3 + 1]].color)), o3.push(...fg(a2[l2.triangles[e3 + 2]].color));
30199
+ t3.push(a2[l2.triangles[e3]].point.x, a2[l2.triangles[e3]].point.y), t3.push(a2[l2.triangles[e3 + 1]].point.x, a2[l2.triangles[e3 + 1]].point.y), t3.push(a2[l2.triangles[e3 + 2]].point.x, a2[l2.triangles[e3 + 2]].point.y), o3.push(...mg(a2[l2.triangles[e3]].color)), o3.push(...mg(a2[l2.triangles[e3 + 1]].color)), o3.push(...mg(a2[l2.triangles[e3 + 2]].color));
30193
30200
  const h2 = new Uh.C();
30194
30201
  h2.addAttribute("aVertexPosition", t3, 2), h2.addAttribute("aColor", o3, 4);
30195
30202
  const u2 = Uh.W.from("\n precision mediump float;\n attribute vec2 aVertexPosition;\n attribute vec4 aColor;\n uniform mat3 translationMatrix;\n uniform mat3 projectionMatrix;\n varying vec4 vColor;\n void main() {\n vColor = aColor;\n gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n }", "precision mediump float; \n varying vec4 vColor;\n void main() {\n float alpha = vColor.a;\n vec4 color = vColor;\n color.a = 1.0;\n gl_FragColor = color * alpha;\n }\n "), c2 = new Xd();
@@ -30199,8 +30206,8 @@ void main() {
30199
30206
  }
30200
30207
  return r2;
30201
30208
  }
30202
- function Wg(t2, e2, n2) {
30203
- const i2 = e2 / 2, r2 = n2 / 2, o2 = [{ x: -i2, y: r2 }, { x: -i2, y: -r2 }, { x: i2, y: r2 }, { x: i2, y: -r2 }], s2 = [ag.fromPointSlope({ x: -i2, y: 0 }, Math.PI / 2), ag.fromPointSlope({ x: 0, y: r2 }, 0), ag.fromPointSlope({ x: i2, y: 0 }, Math.PI / 2), ag.fromPointSlope({ x: 0, y: -r2 }, 0)], a2 = [], l2 = t2.stopList.slice(1, t2.stopList.length - 1).map((o3) => {
30209
+ function Yg(t2, e2, n2) {
30210
+ const i2 = e2 / 2, r2 = n2 / 2, o2 = [{ x: -i2, y: r2 }, { x: -i2, y: -r2 }, { x: i2, y: r2 }, { x: i2, y: -r2 }], s2 = [lg.fromPointSlope({ x: -i2, y: 0 }, Math.PI / 2), lg.fromPointSlope({ x: 0, y: r2 }, 0), lg.fromPointSlope({ x: i2, y: 0 }, Math.PI / 2), lg.fromPointSlope({ x: 0, y: -r2 }, 0)], a2 = [], l2 = t2.stopList.slice(1, t2.stopList.length - 1).map((o3) => {
30204
30211
  var l3, h3, u3;
30205
30212
  const c3 = 2 * Math.PI;
30206
30213
  let d3 = (h3 = (l3 = t2.line) === null || l3 === void 0 ? void 0 : l3.ang) !== null && h3 !== void 0 ? h3 : 0;
@@ -30209,8 +30216,8 @@ void main() {
30209
30216
  for (; d3 < 0; )
30210
30217
  d3 += c3;
30211
30218
  const p3 = { x: 0, y: 0 };
30212
- og(d3, Math.PI / 2) ? (p3.x = 0, p3.y = n2 / 2 - o3.pos * n2) : og(d3, 0) ? (p3.x = o3.pos * e2 - e2 / 2, p3.y = 0) : (p3.x = o3.pos * e2 - e2 / 2, p3.y = n2 / 2 - o3.pos * n2), d3 > Math.PI / 2 && d3 <= Math.PI && (p3.x *= -1), d3 > Math.PI && d3 <= 2 * Math.PI && (p3.y *= -1);
30213
- const f2 = ag.fromPointSlope(p3, Math.PI / 2 - (((u3 = t2.line) === null || u3 === void 0 ? void 0 : u3.ang) || 0)), m2 = s2.map((t3) => f2.crossPoint(t3)).filter((t3) => t3 && t3.x <= i2 && t3.x >= -i2 && t3.y <= r2 && t3.y >= -r2).map((t3) => ({ point: t3, color: o3.color })).sort((t3, e3) => e3.point.y - t3.point.y);
30219
+ sg(d3, Math.PI / 2) ? (p3.x = 0, p3.y = n2 / 2 - o3.pos * n2) : sg(d3, 0) ? (p3.x = o3.pos * e2 - e2 / 2, p3.y = 0) : (p3.x = o3.pos * e2 - e2 / 2, p3.y = n2 / 2 - o3.pos * n2), d3 > Math.PI / 2 && d3 <= Math.PI && (p3.x *= -1), d3 > Math.PI && d3 <= 2 * Math.PI && (p3.y *= -1);
30220
+ const f2 = lg.fromPointSlope(p3, Math.PI / 2 - (((u3 = t2.line) === null || u3 === void 0 ? void 0 : u3.ang) || 0)), m2 = s2.map((t3) => f2.crossPoint(t3)).filter((t3) => t3 && t3.x <= i2 && t3.x >= -i2 && t3.y <= r2 && t3.y >= -r2).map((t3) => ({ point: t3, color: o3.color })).sort((t3, e3) => e3.point.y - t3.point.y);
30214
30221
  a2.push(...m2);
30215
30222
  let g2 = Math.abs(m2[1].point.x - m2[0].point.x) / 10;
30216
30223
  for (let t3 = 20; t3--; ) {
@@ -30226,7 +30233,7 @@ void main() {
30226
30233
  for (let e4 = 0; e4 < l2.length - 1; e4++) {
30227
30234
  const i4 = l2[e4], r4 = l2[e4 + 1], o3 = i4.distanceToLinearEquation(r4), s4 = i4.distanceToPoint(n3), h3 = r4.distanceToPoint(n3);
30228
30235
  if (s4 < o3 && h3 < o3) {
30229
- const i5 = t2.stopList.slice(1, t2.stopList.length - 1)[e4], r5 = t2.stopList.slice(1, t2.stopList.length - 1)[e4 + 1], l3 = gg(i5.color, r5.color, s4 / o3);
30236
+ const i5 = t2.stopList.slice(1, t2.stopList.length - 1)[e4], r5 = t2.stopList.slice(1, t2.stopList.length - 1)[e4 + 1], l3 = vg(i5.color, r5.color, s4 / o3);
30230
30237
  a2.splice(e4 + 1, 0, { point: n3, color: l3 });
30231
30238
  continue t;
30232
30239
  }
@@ -30240,7 +30247,7 @@ void main() {
30240
30247
  return { point: e3.point, color: t2.stopList[0].color };
30241
30248
  {
30242
30249
  const n4 = t2.stopList[0].color, i3 = t2.stopList[1].color;
30243
- return { point: e3.point, color: gg(n4, i3, 1 - (h2[0].dis === 0 ? 1 : e3.dis / h2[0].dis)) };
30250
+ return { point: e3.point, color: vg(n4, i3, 1 - (h2[0].dis === 0 ? 1 : e3.dis / h2[0].dis)) };
30244
30251
  }
30245
30252
  }).sort((t3, e3) => e3.point.y - t3.point.y);
30246
30253
  u2 = u2.sort((t3, e3) => e3.dis - t3.dis);
@@ -30249,24 +30256,24 @@ void main() {
30249
30256
  return { point: e3.point, color: t2.stopList[t2.stopList.length - 1].color };
30250
30257
  {
30251
30258
  const n4 = t2.stopList[t2.stopList.length - 2].color, i3 = t2.stopList[t2.stopList.length - 1].color;
30252
- return { point: e3.point, color: gg(n4, i3, u2[0].dis === 0 ? 0 : e3.dis / u2[0].dis) };
30259
+ return { point: e3.point, color: vg(n4, i3, u2[0].dis === 0 ? 0 : e3.dis / u2[0].dis) };
30253
30260
  }
30254
30261
  }).sort((t3, e3) => e3.point.y - t3.point.y), p2 = c2.concat(...a2).concat(d2);
30255
30262
  for (let t3 = 0; t3 < p2.length; t3++)
30256
30263
  p2[t3].point.x += i2, p2[t3].point.y = -p2[t3].point.y + r2;
30257
30264
  return { points: p2, position: { x: 0, y: 0 } };
30258
30265
  }
30259
- const Yg = "\nvec3 rgb2hsl(vec3 rgb) {\n float cMax = max(max(rgb.r, rgb.g), rgb.b);\n float cMin = min(min(rgb.r, rgb.g), rgb.b);\n float delta = cMax - cMin;\n \n float h = 0.0;\n if (delta == 0.0) {\n h = 0.0;\n } else if (cMax == rgb.r) {\n h = 60.0 * mod(((rgb.g - rgb.b) / delta), 6.0);\n } else if (cMax == rgb.g ) {\n h = 60.0 * ((rgb.b - rgb.r) / delta + 2.0);\n } else if (cMax == rgb.b) {\n h = 60.0 * ((rgb.r - rgb.g) / delta + 4.0);\n }\n \n float l = (cMax + cMin) / 2.0;\n \n float s = 0.0;\n if (delta == 0.0) {\n s = 0.0;\n } else {\n s = delta / (1.0 - abs(2.0 * l - 1.0));\n }\n \n return vec3(h, s, l);\n}\n", qg = [Yg], Zg = { biLevel: "\nvec4 transform(vec4 texColor, float arg) {\n mat3 rgb2yuv = mat3(\n 0.2126, 0.7152, 0.0722,\n -0.09991, -0.33609, 0.43600,\n 0.615, -0.5586, -0.05639\n );\n vec3 yuv = texColor.rgb * rgb2yuv;\n if (yuv.x >= 0.49 || texColor.a < 0.9) {\n return vec4(1.0, 1.0, 1.0, 1.0) * texColor.a;\n } else {\n return vec4(0.0, 0.0, 0.0, 1.0) * texColor.a;\n }\n}\n", alphaModFix: "\nvec4 transform(vec4 texColor, float arg) {\n return texColor * arg;\n}\n", alphaBiLevel: "\nvec4 transform(vec4 texColor, float arg) {\n vec4 result = vec4(texColor);\n result.rgb = result.rgb / texColor.a;\n if (texColor.a < arg) {\n result.a = 0.0;\n } else {\n result.a = 1.0;\n }\n return result;\n}\n", alphaCeiling: "\nvec4 transform(vec4 texColor, float arg) {\n vec4 result = vec4(texColor);\n result.rgb = result.rgb / texColor.a;\n if (texColor.a > 0.0) {\n result.a = 1.0;\n }\n return result;\n}\n", alphaFloor: "\nvec4 transform(vec4 texColor, float arg) {\n vec4 result = vec4(texColor);\n result.rgb = result.rgb / texColor.a;\n if (texColor.a < 1.0) {\n result.a = 0.0;\n }\n return result;\n}\n", grayscl: "\nvec4 transform(vec4 texColor, float arg) {\n float avg = (texColor.r + texColor.g + texColor.b) / 3.0;\n return vec4(avg, avg, avg, texColor.a);\n}\n" };
30260
- class Jg extends Uh.u {
30266
+ const qg = "\nvec3 rgb2hsl(vec3 rgb) {\n float cMax = max(max(rgb.r, rgb.g), rgb.b);\n float cMin = min(min(rgb.r, rgb.g), rgb.b);\n float delta = cMax - cMin;\n \n float h = 0.0;\n if (delta == 0.0) {\n h = 0.0;\n } else if (cMax == rgb.r) {\n h = 60.0 * mod(((rgb.g - rgb.b) / delta), 6.0);\n } else if (cMax == rgb.g ) {\n h = 60.0 * ((rgb.b - rgb.r) / delta + 2.0);\n } else if (cMax == rgb.b) {\n h = 60.0 * ((rgb.r - rgb.g) / delta + 4.0);\n }\n \n float l = (cMax + cMin) / 2.0;\n \n float s = 0.0;\n if (delta == 0.0) {\n s = 0.0;\n } else {\n s = delta / (1.0 - abs(2.0 * l - 1.0));\n }\n \n return vec3(h, s, l);\n}\n", Zg = [qg], Jg = { biLevel: "\nvec4 transform(vec4 texColor, float arg) {\n mat3 rgb2yuv = mat3(\n 0.2126, 0.7152, 0.0722,\n -0.09991, -0.33609, 0.43600,\n 0.615, -0.5586, -0.05639\n );\n vec3 yuv = texColor.rgb * rgb2yuv;\n if (yuv.x >= 0.49 || texColor.a < 0.9) {\n return vec4(1.0, 1.0, 1.0, 1.0) * texColor.a;\n } else {\n return vec4(0.0, 0.0, 0.0, 1.0) * texColor.a;\n }\n}\n", alphaModFix: "\nvec4 transform(vec4 texColor, float arg) {\n return texColor * arg;\n}\n", alphaBiLevel: "\nvec4 transform(vec4 texColor, float arg) {\n vec4 result = vec4(texColor);\n result.rgb = result.rgb / texColor.a;\n if (texColor.a < arg) {\n result.a = 0.0;\n } else {\n result.a = 1.0;\n }\n return result;\n}\n", alphaCeiling: "\nvec4 transform(vec4 texColor, float arg) {\n vec4 result = vec4(texColor);\n result.rgb = result.rgb / texColor.a;\n if (texColor.a > 0.0) {\n result.a = 1.0;\n }\n return result;\n}\n", alphaFloor: "\nvec4 transform(vec4 texColor, float arg) {\n vec4 result = vec4(texColor);\n result.rgb = result.rgb / texColor.a;\n if (texColor.a < 1.0) {\n result.a = 0.0;\n }\n return result;\n}\n", grayscl: "\nvec4 transform(vec4 texColor, float arg) {\n float avg = (texColor.r + texColor.g + texColor.b) / 3.0;\n return vec4(avg, avg, avg, texColor.a);\n}\n" };
30267
+ class Kg extends Uh.u {
30261
30268
  constructor(t2, e2) {
30262
30269
  var n2;
30263
- super(void 0, (n2 = Zg[t2], `
30270
+ super(void 0, (n2 = Jg[t2], `
30264
30271
  varying vec2 vTextureCoord;
30265
30272
 
30266
30273
  uniform float arg;
30267
30274
  uniform sampler2D uSampler;
30268
30275
 
30269
- ${qg.map((t3) => t3 + "\n").join("\n")}
30276
+ ${Zg.map((t3) => t3 + "\n").join("\n")}
30270
30277
 
30271
30278
  ${n2}
30272
30279
 
@@ -30277,18 +30284,18 @@ void main(void){
30277
30284
  `), { arg: e2 });
30278
30285
  }
30279
30286
  }
30280
- const Kg = [Yg], Qg = { clrChange: "\nvec4 transform(vec4 texColor, vec4 arg1, vec4 arg2) {\n float epsilon = 0.001;\n vec3 colorDiff = arg1.rgb - (texColor.rgb / max(texColor.a, 0.0000000001));\n float colorDistance = length(colorDiff);\n if (colorDistance < epsilon) {\n arg2.rgb *= arg2.a;\n return arg2;\n } else {\n return texColor;\n }\n}\n", changeBulletColor: "\nvec4 transform(vec4 texColor, vec4 arg1, vec4 arg2) {\n if (texColor.a == 0.0) {\n return texColor;\n } else {\n return arg2;\n }\n}\n", duotone: "\nvec4 transform(vec4 texColor, vec4 arg1, vec4 arg2) {\n float avg = (texColor.r + texColor.g + texColor.b) / 3.0;\n\n vec3 hsl = rgb2hsl(vec3(avg, avg, avg));\n\n vec3 result = arg2.rgb * hsl.z + arg1.rgb * (1.0 - hsl.z);\n\n return vec4(result * texColor.a, texColor.a);\n}\n" };
30281
- class $g extends Uh.u {
30287
+ const Qg = [qg], $g = { clrChange: "\nvec4 transform(vec4 texColor, vec4 arg1, vec4 arg2) {\n float epsilon = 0.001;\n vec3 colorDiff = arg1.rgb - (texColor.rgb / max(texColor.a, 0.0000000001));\n float colorDistance = length(colorDiff);\n if (colorDistance < epsilon) {\n arg2.rgb *= arg2.a;\n return arg2;\n } else {\n return texColor;\n }\n}\n", changeBulletColor: "\nvec4 transform(vec4 texColor, vec4 arg1, vec4 arg2) {\n if (texColor.a == 0.0) {\n return texColor;\n } else {\n return arg2;\n }\n}\n", duotone: "\nvec4 transform(vec4 texColor, vec4 arg1, vec4 arg2) {\n float avg = (texColor.r + texColor.g + texColor.b) / 3.0;\n\n vec3 hsl = rgb2hsl(vec3(avg, avg, avg));\n\n vec3 result = arg2.rgb * hsl.z + arg1.rgb * (1.0 - hsl.z);\n\n return vec4(result * texColor.a, texColor.a);\n}\n" };
30288
+ class tv extends Uh.u {
30282
30289
  constructor(t2, e2, n2) {
30283
30290
  var i2;
30284
- super(void 0, (i2 = Qg[t2], `
30291
+ super(void 0, (i2 = $g[t2], `
30285
30292
  varying vec2 vTextureCoord;
30286
30293
 
30287
30294
  uniform vec4 arg1;
30288
30295
  uniform vec4 arg2;
30289
30296
  uniform sampler2D uSampler;
30290
30297
 
30291
- ${Kg.map((t3) => t3 + "\n").join("\n")}
30298
+ ${Qg.map((t3) => t3 + "\n").join("\n")}
30292
30299
 
30293
30300
  ${i2}
30294
30301
 
@@ -30299,18 +30306,18 @@ void main(void){
30299
30306
  `), { arg1: Float32Array.from(e2), arg2: Float32Array.from(n2) });
30300
30307
  }
30301
30308
  }
30302
- const tv = [Yg], ev = { lum: "\nvec4 transform(vec4 texColor, float arg1, float arg2) {\n vec3 rgb = texColor.rgb / texColor.a;\n\n // \u5BF9\u6BD4\u5EA6\n float C = arg2 * 255.0;\n float F = (259.0 * (255.0 + C)) / (255.0 * (259.0 - C));\n rgb.rgb = F * (rgb.rgb - 0.5) + 0.5;\n\n // \u4EAE\u5EA6\n rgb.rgb += arg1;\n\n rgb.rgb *= texColor.a;\n return vec4(rgb, texColor.a);\n}\n" };
30303
- class nv extends Uh.u {
30309
+ const ev = [qg], nv = { lum: "\nvec4 transform(vec4 texColor, float arg1, float arg2) {\n vec3 rgb = texColor.rgb / texColor.a;\n\n // \u5BF9\u6BD4\u5EA6\n float C = arg2 * 255.0;\n float F = (259.0 * (255.0 + C)) / (255.0 * (259.0 - C));\n rgb.rgb = F * (rgb.rgb - 0.5) + 0.5;\n\n // \u4EAE\u5EA6\n rgb.rgb += arg1;\n\n rgb.rgb *= texColor.a;\n return vec4(rgb, texColor.a);\n}\n" };
30310
+ class iv extends Uh.u {
30304
30311
  constructor(t2, e2, n2) {
30305
30312
  var i2;
30306
- super(void 0, (i2 = ev[t2], `
30313
+ super(void 0, (i2 = nv[t2], `
30307
30314
  varying vec2 vTextureCoord;
30308
30315
 
30309
30316
  uniform float arg1;
30310
30317
  uniform float arg2;
30311
30318
  uniform sampler2D uSampler;
30312
30319
 
30313
- ${tv.map((t3) => t3 + "\n").join("\n")}
30320
+ ${ev.map((t3) => t3 + "\n").join("\n")}
30314
30321
 
30315
30322
  ${i2}
30316
30323
 
@@ -30321,17 +30328,17 @@ void main(void){
30321
30328
  `), { arg1: e2, arg2: n2 });
30322
30329
  }
30323
30330
  }
30324
- const iv = [Yg], rv = { alphaInv: "\nvec4 transform(vec4 texColor, vec4 arg1) {\n float alpha = 1.0 - texColor.a;\n arg1.rgb = arg1.rgb * alpha;\n arg1.a = alpha;\n return arg1;\n}\n" };
30325
- class ov extends Uh.u {
30331
+ const rv = [qg], ov = { alphaInv: "\nvec4 transform(vec4 texColor, vec4 arg1) {\n float alpha = 1.0 - texColor.a;\n arg1.rgb = arg1.rgb * alpha;\n arg1.a = alpha;\n return arg1;\n}\n" };
30332
+ class sv extends Uh.u {
30326
30333
  constructor(t2, e2) {
30327
30334
  var n2;
30328
- super(void 0, (n2 = rv[t2], `
30335
+ super(void 0, (n2 = ov[t2], `
30329
30336
  varying vec2 vTextureCoord;
30330
30337
 
30331
30338
  uniform vec4 arg1;
30332
30339
  uniform sampler2D uSampler;
30333
30340
 
30334
- ${iv.map((t3) => t3 + "\n").join("\n")}
30341
+ ${rv.map((t3) => t3 + "\n").join("\n")}
30335
30342
 
30336
30343
  ${n2}
30337
30344
 
@@ -30342,9 +30349,9 @@ void main(void){
30342
30349
  `), { arg1: Float32Array.from(e2) });
30343
30350
  }
30344
30351
  }
30345
- class sv {
30352
+ class av {
30346
30353
  constructor(t2, e2, n2, i2, r2) {
30347
- this.ctx = t2, this.fillStyle = e2, this.width = n2, this.height = i2, this.config = r2, this.clonedObjects = [], this._displayObject = null, this.gradientHash = Hm()(`${JSON.stringify(e2)}${Math.ceil(n2)}${Math.ceil(i2)}`);
30354
+ this.ctx = t2, this.fillStyle = e2, this.width = n2, this.height = i2, this.config = r2, this.clonedObjects = [], this._displayObject = null, this.gradientHash = jm()(`${JSON.stringify(e2)}${Math.ceil(n2)}${Math.ceil(i2)}`);
30348
30355
  }
30349
30356
  get displayObject() {
30350
30357
  return this._displayObject || (this._displayObject = this.createDisplayObject()), this._displayObject;
@@ -30366,7 +30373,7 @@ void main(void){
30366
30373
  if (this.fillStyle.fillType === "solidFill" || this.fillStyle.fillType === "noFill")
30367
30374
  return null;
30368
30375
  if (this.fillStyle.fillType === "gradientFill") {
30369
- const t3 = new Kd(), e2 = Xg(this.fillStyle, this.width, this.height), n2 = Uh.P.create({ width: this.width, height: this.height, resolution: this.ctx.renderer.resolution });
30376
+ const t3 = new Kd(), e2 = Wg(this.fillStyle, this.width, this.height), n2 = Uh.P.create({ width: this.width, height: this.height, resolution: this.ctx.renderer.resolution });
30370
30377
  return this.ctx.renderer.render(e2, { renderTexture: n2 }), e2.destroy({ children: true, texture: true }), t3.texture = n2, t3;
30371
30378
  }
30372
30379
  if (this.fillStyle.fillType === "blipFill") {
@@ -30378,15 +30385,15 @@ void main(void){
30378
30385
  return t3.forEach((t4) => {
30379
30386
  const i3 = ((e4 == null ? void 0 : e4.filter) || []).indexOf(t4.type) >= 0;
30380
30387
  if (["biLevel", "alphaBiLevel", "alphaCeiling", "alphaModFix", "alphaFloor", "grayscl"].indexOf(t4.type) >= 0 && i3)
30381
- n3.push(new Jg(t4.type, t4.args[0] || 0));
30388
+ n3.push(new Kg(t4.type, t4.args[0] || 0));
30382
30389
  else if (["clrChange", "changeBulletColor", "duotone"].indexOf(t4.type) >= 0 && i3) {
30383
- const e5 = fg(t4.args[0]), i4 = fg(t4.args[1]);
30384
- n3.push(new $g(t4.type, e5, i4));
30390
+ const e5 = mg(t4.args[0]), i4 = mg(t4.args[1]);
30391
+ n3.push(new tv(t4.type, e5, i4));
30385
30392
  } else if (t4.type === "lum" && i3)
30386
- n3.push(new nv(t4.type, t4.args[0], t4.args[1]));
30393
+ n3.push(new iv(t4.type, t4.args[0], t4.args[1]));
30387
30394
  else if (t4.type === "alphaInv" && i3) {
30388
- const e5 = fg(t4.args[0]);
30389
- n3.push(new ov(t4.type, e5));
30395
+ const e5 = mg(t4.args[0]);
30396
+ n3.push(new sv(t4.type, e5));
30390
30397
  }
30391
30398
  }), n3;
30392
30399
  }(n2, this.ctx.featureList)), this.config.fillFloat) {
@@ -30428,7 +30435,7 @@ void main(void){
30428
30435
  }), this.clonedObjects = [];
30429
30436
  }
30430
30437
  }
30431
- var av = function(t2, e2, n2, i2) {
30438
+ var lv = function(t2, e2, n2, i2) {
30432
30439
  return new (n2 || (n2 = Promise))(function(r2, o2) {
30433
30440
  function s2(t3) {
30434
30441
  try {
@@ -30453,28 +30460,28 @@ void main(void){
30453
30460
  l2((i2 = i2.apply(t2, e2 || [])).next());
30454
30461
  });
30455
30462
  };
30456
- class lv extends Eg {
30463
+ class hv extends Sg {
30457
30464
  constructor(t2, e2, n2) {
30458
30465
  var i2;
30459
30466
  super(t2, e2, n2), this.textureContainer = new wh.b(), this.underline = null, this.cacheSprite = new Kd();
30460
30467
  const { shapeId: r2, paragraphIndex: o2, lineIndex: s2, unitIndex: a2, lineHeight: l2, width: h2, underLine: u2, fill: c2, height: d2, isHorz: p2, lineWidth: f2 } = t2, m2 = ((i2 = c2 == null ? void 0 : c2.fill) === null || i2 === void 0 ? void 0 : i2.fillType) === "solidFill" ? c2.fill.color : null;
30461
30468
  if (u2) {
30462
30469
  const t3 = p2 ? l2 / 16 : f2 / 16;
30463
- this.underline = new Sg(e2, u2.type, t3, h2, d2, m2, p2, r2, o2, s2, a2);
30470
+ this.underline = new wg(e2, u2.type, t3, h2, d2, m2, p2, r2, o2, s2, a2);
30464
30471
  }
30465
30472
  this.textGraphics = this.createTextGraphics(), this.textFill = this.createTextFill(), this.strokeGraphics = this.createStrokeGraphics(), this.strokeFill = this.createStrokeFill();
30466
30473
  }
30467
30474
  createStrokeFill() {
30468
30475
  const { stroke: t2, lineWidth: e2, lineHeight: n2 } = this.json;
30469
- return new sv(this.ctx, t2 == null ? void 0 : t2.fill, e2, n2, { useFilter: false, useSlideBackgroundFill: false });
30476
+ return new av(this.ctx, t2 == null ? void 0 : t2.fill, e2, n2, { useFilter: false, useSlideBackgroundFill: false });
30470
30477
  }
30471
30478
  createStrokeGraphics() {
30472
30479
  const { stroke: t2 } = this.json, e2 = (t2 == null ? void 0 : t2.key) ? { fillType: "blipFill", src: t2.key, filters: [] } : void 0;
30473
- return new sv(this.ctx, e2, (t2 == null ? void 0 : t2.width) || 0, (t2 == null ? void 0 : t2.height) || 0, { useFilter: false, useSlideBackgroundFill: false });
30480
+ return new av(this.ctx, e2, (t2 == null ? void 0 : t2.width) || 0, (t2 == null ? void 0 : t2.height) || 0, { useFilter: false, useSlideBackgroundFill: false });
30474
30481
  }
30475
30482
  createTextFill() {
30476
30483
  const { isHorz: t2, fill: e2, lineWidth: n2, lineHeight: i2, fillLineHeight: r2 } = this.json;
30477
- return t2 ? new sv(this.ctx, e2 == null ? void 0 : e2.fill, n2, Math.max(r2, i2), { useFilter: false, useSlideBackgroundFill: false }) : new sv(this.ctx, e2 == null ? void 0 : e2.fill, r2, i2, { useFilter: false, useSlideBackgroundFill: false });
30484
+ return t2 ? new av(this.ctx, e2 == null ? void 0 : e2.fill, n2, Math.max(r2, i2), { useFilter: false, useSlideBackgroundFill: false }) : new av(this.ctx, e2 == null ? void 0 : e2.fill, r2, i2, { useFilter: false, useSlideBackgroundFill: false });
30478
30485
  }
30479
30486
  createTextGraphics() {
30480
30487
  var t2;
@@ -30482,7 +30489,7 @@ void main(void){
30482
30489
  let i2 = "#000000";
30483
30490
  ((t2 = e2 == null ? void 0 : e2.fill) === null || t2 === void 0 ? void 0 : t2.fillType) === "solidFill" && (i2 = e2.fill.color);
30484
30491
  const r2 = (e2 == null ? void 0 : e2.key) ? { fillType: "blipFill", src: e2.key, filters: [{ type: "changeBulletColor", args: ["#000000", i2] }] } : void 0;
30485
- return new sv(this.ctx, r2, (e2 == null ? void 0 : e2.width) || 0, (e2 == null ? void 0 : e2.height) || 0, { useFilter: n2 === "\u25FE", useSlideBackgroundFill: false });
30492
+ return new av(this.ctx, r2, (e2 == null ? void 0 : e2.width) || 0, (e2 == null ? void 0 : e2.height) || 0, { useFilter: n2 === "\u25FE", useSlideBackgroundFill: false });
30486
30493
  }
30487
30494
  getIterateEntry() {
30488
30495
  return null;
@@ -30500,7 +30507,7 @@ void main(void){
30500
30507
  (t2 = this.underline) === null || t2 === void 0 || t2.preRender();
30501
30508
  }
30502
30509
  render(t2) {
30503
- t2.addSubMTask(() => av(this, void 0, void 0, function* () {
30510
+ t2.addSubMTask(() => lv(this, void 0, void 0, function* () {
30504
30511
  this.doRender();
30505
30512
  }), "@TextUnitImpl[doRender]");
30506
30513
  }
@@ -30509,7 +30516,7 @@ void main(void){
30509
30516
  const { lineWidth: e2, lineHeight: n2, baseLine: i2, isHorz: r2, underline: o2, height: s2, width: a2, highlightColor: l2, x: h2, y: u2, content: c2, fillLineHeight: d2, fill: p2 } = this.json;
30510
30517
  let f2 = this.json.needFill !== false;
30511
30518
  if (p2 && p2.fill && p2.fill.fillType !== "solidFill" && (f2 = true), l2) {
30512
- const t3 = new Xd(), [i3, o3] = pg(l2);
30519
+ const t3 = new Xd(), [i3, o3] = fg(l2);
30513
30520
  t3.beginFill(i3, o3), t3.drawRect(0, 0, r2 ? a2 : e2, r2 ? n2 : s2), t3.endFill(), this.textureContainer.addChild(t3);
30514
30521
  }
30515
30522
  if (this.textGraphics.displayObject) {
@@ -30519,7 +30526,7 @@ void main(void){
30519
30526
  if (n3)
30520
30527
  n3.mask = e3, n3.addChild(e3), n3.position.x = -h2, e3.position.x += h2, t2 = true, this.textureContainer.addChild(n3);
30521
30528
  else if (this.textFill.isSolidFill()) {
30522
- const n4 = new vg();
30529
+ const n4 = new _g();
30523
30530
  n4.color = this.textFill.getSolidFillColor(), e3.filters = [n4], t2 = true, this.textureContainer.addChild(e3);
30524
30531
  }
30525
30532
  } else
@@ -30533,7 +30540,7 @@ void main(void){
30533
30540
  n3.mask = e3, n3.addChild(e3), r2 ? n3.position.y = u2 > 0 ? u2 : 0 : n3.position.x = h2, this.textureContainer.addChild(n3);
30534
30541
  else if (this.strokeFill.isSolidFill()) {
30535
30542
  r2 ? e3.position.y = u2 > 0 ? u2 : 0 : e3.position.x = h2;
30536
- const n4 = new vg();
30543
+ const n4 = new _g();
30537
30544
  n4.color = this.strokeFill.getSolidFillColor(), e3.filters = [n4], t2 = true, this.textureContainer.addChild(e3);
30538
30545
  }
30539
30546
  } else
@@ -30555,7 +30562,7 @@ void main(void){
30555
30562
  this.textFill.destroy(), this.textGraphics.destroy(), this.strokeFill.destroy(), this.strokeGraphics.destroy(), this.cacheSprite.texture.destroy(true), this.cacheSprite.destroy(), this.textureContainer.destroy(), this.container.destroy();
30556
30563
  }
30557
30564
  }
30558
- var hv = function(t2, e2, n2, i2) {
30565
+ var uv = function(t2, e2, n2, i2) {
30559
30566
  return new (n2 || (n2 = Promise))(function(r2, o2) {
30560
30567
  function s2(t3) {
30561
30568
  try {
@@ -30580,7 +30587,7 @@ void main(void){
30580
30587
  l2((i2 = i2.apply(t2, e2 || [])).next());
30581
30588
  });
30582
30589
  };
30583
- class uv extends Eg {
30590
+ class cv extends Sg {
30584
30591
  constructor() {
30585
30592
  super(...arguments), this.units = [], this.isHorz = true;
30586
30593
  }
@@ -30594,14 +30601,14 @@ void main(void){
30594
30601
  }
30595
30602
  createUnits(t2, e2, n2, i2) {
30596
30603
  for (let r2 = 0, o2 = this.json.textUnits.length; r2 < o2; r2++)
30597
- i2.addSubMTask(() => hv(this, void 0, void 0, function* () {
30598
- const i3 = this.json.textUnits[r2], { height: o3, width: s2, fillHeight: a2, baseline: l2, y: h2, underline: u2 } = this.json, c2 = new lv(Object.assign(Object.assign({}, i3), { lineHeight: o3, lineWidth: s2, baseLine: l2 - h2, underline: u2, fillLineHeight: a2 || o3, isHorz: this.isHorz, shapeId: t2, paragraphIndex: e2, lineIndex: n2, unitIndex: r2 }), this.ctx, this.global);
30604
+ i2.addSubMTask(() => uv(this, void 0, void 0, function* () {
30605
+ const i3 = this.json.textUnits[r2], { height: o3, width: s2, fillHeight: a2, baseline: l2, y: h2, underline: u2 } = this.json, c2 = new hv(Object.assign(Object.assign({}, i3), { lineHeight: o3, lineWidth: s2, baseLine: l2 - h2, underline: u2, fillLineHeight: a2 || o3, isHorz: this.isHorz, shapeId: t2, paragraphIndex: e2, lineIndex: n2, unitIndex: r2 }), this.ctx, this.global);
30599
30606
  c2.preRender(), this.units.push(c2);
30600
30607
  }), "@TextLineImpl[createUnits]");
30601
30608
  }
30602
30609
  render(t2) {
30603
30610
  for (const e2 of this.units.reverse())
30604
- e2.render(t2), t2.addSubMTask(() => hv(this, void 0, void 0, function* () {
30611
+ e2.render(t2), t2.addSubMTask(() => uv(this, void 0, void 0, function* () {
30605
30612
  this.container.addChild(e2.container);
30606
30613
  }), "@TextLineImpl[container.addChild]");
30607
30614
  }
@@ -30611,7 +30618,7 @@ void main(void){
30611
30618
  }), this.container.destroy({ children: false });
30612
30619
  }
30613
30620
  }
30614
- var cv = function(t2, e2, n2, i2) {
30621
+ var dv = function(t2, e2, n2, i2) {
30615
30622
  return new (n2 || (n2 = Promise))(function(r2, o2) {
30616
30623
  function s2(t3) {
30617
30624
  try {
@@ -30636,7 +30643,7 @@ void main(void){
30636
30643
  l2((i2 = i2.apply(t2, e2 || [])).next());
30637
30644
  });
30638
30645
  };
30639
- class dv extends Eg {
30646
+ class pv extends Sg {
30640
30647
  constructor() {
30641
30648
  super(...arguments), this.iterateElements = [], this.lines = [], this.isHorz = true;
30642
30649
  }
@@ -30654,14 +30661,14 @@ void main(void){
30654
30661
  }
30655
30662
  createLines(t2, e2, n2) {
30656
30663
  for (let i2 = 0, r2 = this.json.lines.length; i2 < r2; i2++)
30657
- n2.addSubMTask(() => cv(this, void 0, void 0, function* () {
30658
- const r3 = this.json.lines[i2], o2 = new uv(r3, this.ctx, this.global);
30664
+ n2.addSubMTask(() => dv(this, void 0, void 0, function* () {
30665
+ const r3 = this.json.lines[i2], o2 = new cv(r3, this.ctx, this.global);
30659
30666
  o2.isHorz = this.isHorz, o2.container.name = "line-" + i2, o2.createUnits(t2, e2, i2, n2), this.lines.push(o2);
30660
30667
  }), "@TextParagraphImpl[createLines]");
30661
30668
  }
30662
30669
  render(t2) {
30663
30670
  for (const e2 of this.lines)
30664
- e2.render(t2), t2.addSubMTask(() => cv(this, void 0, void 0, function* () {
30671
+ e2.render(t2), t2.addSubMTask(() => dv(this, void 0, void 0, function* () {
30665
30672
  this.container.addChild(e2.container);
30666
30673
  }), "@TextParagraphImpl[container.addChild]");
30667
30674
  }
@@ -30671,7 +30678,7 @@ void main(void){
30671
30678
  }), this.container.destroy({ children: false });
30672
30679
  }
30673
30680
  }
30674
- function pv(t2, e2, n2) {
30681
+ function fv(t2, e2, n2) {
30675
30682
  let i2, r2;
30676
30683
  const o2 = Math.round(t2) % 360;
30677
30684
  if (o2 % 180 == 0)
@@ -30684,11 +30691,11 @@ void main(void){
30684
30691
  }
30685
30692
  return { x: i2, y: r2 };
30686
30693
  }
30687
- function fv(t2, e2, n2, i2, r2, o2) {
30688
- const s2 = pv((r2 = -r2) / Math.PI * 180, n2, i2), a2 = t2.x - s2.x, l2 = t2.y - s2.y;
30694
+ function mv(t2, e2, n2, i2, r2, o2) {
30695
+ const s2 = fv((r2 = -r2) / Math.PI * 180, n2, i2), a2 = t2.x - s2.x, l2 = t2.y - s2.y;
30689
30696
  return { centerX: a2 / 9525 * e2.x, centerY: l2 / 9525 * e2.y, rx: n2 / 9525 * e2.x, ry: i2 / 9525 * e2.y, st: -r2, end: -r2 + o2, aClockWise: o2 < 0 };
30690
30697
  }
30691
- function mv(t2) {
30698
+ function gv(t2) {
30692
30699
  const e2 = new Vs(), { scale: n2 } = t2;
30693
30700
  let i2 = { x: 0, y: 0 };
30694
30701
  const r2 = t2.path.trim().split(" ");
@@ -30698,7 +30705,7 @@ void main(void){
30698
30705
  let [t4, r3] = s2.split(",").map((t5) => Number(t5));
30699
30706
  i2 = { x: t4, y: r3 }, t4 = t4 / 9525 * n2.x, r3 = r3 / 9525 * n2.y, e2.moveTo(t4, r3);
30700
30707
  } else if (o2 === "A") {
30701
- const [t4, r3, o3, a2] = s2.split(",").map((t5) => Number(t5)), { centerX: l2, centerY: h2, rx: u2, ry: c2, st: d2, end: p2, aClockWise: f2 } = fv(i2, n2, t4, r3, o3, a2);
30708
+ const [t4, r3, o3, a2] = s2.split(",").map((t5) => Number(t5)), { centerX: l2, centerY: h2, rx: u2, ry: c2, st: d2, end: p2, aClockWise: f2 } = mv(i2, n2, t4, r3, o3, a2);
30702
30709
  e2.absellipse(l2, h2, u2, c2, d2, p2, f2, 0);
30703
30710
  } else if (o2 === "L") {
30704
30711
  let [t4, r3] = s2.split(",").map((t5) => Number(t5));
@@ -30717,11 +30724,11 @@ void main(void){
30717
30724
  }
30718
30725
  return e2;
30719
30726
  }
30720
- function gv(t2, e2) {
30727
+ function vv(t2, e2) {
30721
30728
  return t2.curves.map((t3) => t3.getPoints(e2)).reduce((t3, e3) => t3.concat(e3), []);
30722
30729
  }
30723
- const vv = { textCirclePour: { top: (t2) => t2.getPoints(360), bottom: (t2) => t2.getPoints(360) }, textStop: { top: (t2) => gv(t2, 100), bottom: (t2) => gv(t2, 100) }, textPlain: { top: (t2) => gv(t2, 100), bottom: (t2) => gv(t2, 100) }, textTriangle: { top: (t2) => gv(t2, 50), bottom: (t2) => gv(t2, 101) }, textTriangleInverted: { bottom: (t2) => gv(t2, 50), top: (t2) => gv(t2, 101) }, textChevron: { bottom: (t2) => gv(t2, 50), top: (t2) => gv(t2, 50) }, textChevronInverted: { bottom: (t2) => gv(t2, 50), top: (t2) => gv(t2, 50) }, textRingInside: { top: (t2) => t2.getPoints(360), bottom: (t2) => t2.getPoints(360) }, textRingOutside: { top: (t2) => t2.getPoints(360), bottom: (t2) => t2.getPoints(360) }, textArchUpPour: { top: (t2) => t2.getPoints(360), bottom: (t2) => t2.getPoints(360) }, textArchDownPour: { top: (t2) => t2.getPoints(360), bottom: (t2) => t2.getPoints(360) }, textCurveUp: { top: (t2) => t2.getPoints(360), bottom: (t2) => t2.getPoints(360) }, textCurveDown: { top: (t2) => t2.getPoints(360), bottom: (t2) => t2.getPoints(360) }, textCanUp: { top: (t2) => t2.getPoints(360), bottom: (t2) => t2.getPoints(360) }, textCanDown: { top: (t2) => t2.getPoints(360), bottom: (t2) => t2.getPoints(360) }, textWave1: { top: (t2) => t2.getPoints(180), bottom: (t2) => t2.getPoints(180) }, textWave2: { top: (t2) => t2.getPoints(180), bottom: (t2) => t2.getPoints(180) }, textDoubleWave1: { top: (t2) => t2.getPoints(360), bottom: (t2) => t2.getPoints(360) }, textWave4: { top: (t2) => t2.getPoints(360), bottom: (t2) => t2.getPoints(360) }, textInflate: { top: (t2) => t2.getPoints(180), bottom: (t2) => t2.getPoints(180) }, textDeflate: { top: (t2) => t2.getPoints(180), bottom: (t2) => t2.getPoints(180) }, textInflateBottom: { top: (t2) => gv(t2, 180), bottom: (t2) => t2.getPoints(180) }, textDeflateBottom: { top: (t2) => gv(t2, 180), bottom: (t2) => t2.getPoints(180) }, textInflateTop: { bottom: (t2) => gv(t2, 180), top: (t2) => t2.getPoints(180) }, textDeflateTop: { bottom: (t2) => gv(t2, 180), top: (t2) => t2.getPoints(180) }, textFadeRight: { bottom: (t2) => gv(t2, 180), top: (t2) => gv(t2, 180) }, textFadeLeft: { bottom: (t2) => gv(t2, 180), top: (t2) => gv(t2, 180) }, textFadeUp: { bottom: (t2) => gv(t2, 180), top: (t2) => gv(t2, 180) }, textFadeDown: { bottom: (t2) => gv(t2, 180), top: (t2) => gv(t2, 180) }, textSlantUp: { bottom: (t2) => gv(t2, 180), top: (t2) => gv(t2, 180) }, textSlantDown: { bottom: (t2) => gv(t2, 180), top: (t2) => gv(t2, 180) }, textCascadeUp: { bottom: (t2) => gv(t2, 180), top: (t2) => gv(t2, 180) }, textCascadeDown: { bottom: (t2) => gv(t2, 180), top: (t2) => gv(t2, 180) } };
30724
- var _v = function(t2, e2, n2, i2) {
30730
+ const _v = { textCirclePour: { top: (t2) => t2.getPoints(360), bottom: (t2) => t2.getPoints(360) }, textStop: { top: (t2) => vv(t2, 100), bottom: (t2) => vv(t2, 100) }, textPlain: { top: (t2) => vv(t2, 100), bottom: (t2) => vv(t2, 100) }, textTriangle: { top: (t2) => vv(t2, 50), bottom: (t2) => vv(t2, 101) }, textTriangleInverted: { bottom: (t2) => vv(t2, 50), top: (t2) => vv(t2, 101) }, textChevron: { bottom: (t2) => vv(t2, 50), top: (t2) => vv(t2, 50) }, textChevronInverted: { bottom: (t2) => vv(t2, 50), top: (t2) => vv(t2, 50) }, textRingInside: { top: (t2) => t2.getPoints(360), bottom: (t2) => t2.getPoints(360) }, textRingOutside: { top: (t2) => t2.getPoints(360), bottom: (t2) => t2.getPoints(360) }, textArchUpPour: { top: (t2) => t2.getPoints(360), bottom: (t2) => t2.getPoints(360) }, textArchDownPour: { top: (t2) => t2.getPoints(360), bottom: (t2) => t2.getPoints(360) }, textCurveUp: { top: (t2) => t2.getPoints(360), bottom: (t2) => t2.getPoints(360) }, textCurveDown: { top: (t2) => t2.getPoints(360), bottom: (t2) => t2.getPoints(360) }, textCanUp: { top: (t2) => t2.getPoints(360), bottom: (t2) => t2.getPoints(360) }, textCanDown: { top: (t2) => t2.getPoints(360), bottom: (t2) => t2.getPoints(360) }, textWave1: { top: (t2) => t2.getPoints(180), bottom: (t2) => t2.getPoints(180) }, textWave2: { top: (t2) => t2.getPoints(180), bottom: (t2) => t2.getPoints(180) }, textDoubleWave1: { top: (t2) => t2.getPoints(360), bottom: (t2) => t2.getPoints(360) }, textWave4: { top: (t2) => t2.getPoints(360), bottom: (t2) => t2.getPoints(360) }, textInflate: { top: (t2) => t2.getPoints(180), bottom: (t2) => t2.getPoints(180) }, textDeflate: { top: (t2) => t2.getPoints(180), bottom: (t2) => t2.getPoints(180) }, textInflateBottom: { top: (t2) => vv(t2, 180), bottom: (t2) => t2.getPoints(180) }, textDeflateBottom: { top: (t2) => vv(t2, 180), bottom: (t2) => t2.getPoints(180) }, textInflateTop: { bottom: (t2) => vv(t2, 180), top: (t2) => t2.getPoints(180) }, textDeflateTop: { bottom: (t2) => vv(t2, 180), top: (t2) => t2.getPoints(180) }, textFadeRight: { bottom: (t2) => vv(t2, 180), top: (t2) => vv(t2, 180) }, textFadeLeft: { bottom: (t2) => vv(t2, 180), top: (t2) => vv(t2, 180) }, textFadeUp: { bottom: (t2) => vv(t2, 180), top: (t2) => vv(t2, 180) }, textFadeDown: { bottom: (t2) => vv(t2, 180), top: (t2) => vv(t2, 180) }, textSlantUp: { bottom: (t2) => vv(t2, 180), top: (t2) => vv(t2, 180) }, textSlantDown: { bottom: (t2) => vv(t2, 180), top: (t2) => vv(t2, 180) }, textCascadeUp: { bottom: (t2) => vv(t2, 180), top: (t2) => vv(t2, 180) }, textCascadeDown: { bottom: (t2) => vv(t2, 180), top: (t2) => vv(t2, 180) } };
30731
+ var yv = function(t2, e2, n2, i2) {
30725
30732
  return new (n2 || (n2 = Promise))(function(r2, o2) {
30726
30733
  function s2(t3) {
30727
30734
  try {
@@ -30746,7 +30753,7 @@ void main(void){
30746
30753
  l2((i2 = i2.apply(t2, e2 || [])).next());
30747
30754
  });
30748
30755
  };
30749
- class yv {
30756
+ class xv {
30750
30757
  constructor(t2, e2, n2, i2, r2) {
30751
30758
  this.iterateElements = [], this.paragraphs = [], this.container = new wh.b(), this.textContainer = new wh.b(), this.json = t2, this.ctx = e2, this.shapeRotation = r2, this.parentGlobalPos = i2, this.iterateType = n2, this.container.name = "textBody", this.global = { x: this.parentGlobalPos.x + t2.position.x, y: this.parentGlobalPos.y + t2.position.y }, this.container.position.x = t2.position.x, this.container.position.y = t2.position.y, this.container.scale.x = t2.scale.x, this.container.scale.y = t2.scale.y;
30752
30759
  const o2 = new Xd();
@@ -30777,32 +30784,34 @@ void main(void){
30777
30784
  }
30778
30785
  createParagraphs(t2, e2) {
30779
30786
  for (let n2 = 0, i2 = this.json.paragraphs.length; n2 < i2; n2++)
30780
- e2.addSubMTask(() => _v(this, void 0, void 0, function* () {
30787
+ e2.addSubMTask(() => yv(this, void 0, void 0, function* () {
30781
30788
  var i3;
30782
- const r2 = this.json.paragraphs[n2], o2 = new dv(r2, this.ctx, this.global);
30783
- o2.isHorz = (i3 = this.json.isHorz) === null || i3 === void 0 || i3, o2.createLines(t2, n2, e2), e2.addSubMTask(() => _v(this, void 0, void 0, function* () {
30789
+ const r2 = this.json.paragraphs[n2], o2 = new pv(r2, this.ctx, this.global);
30790
+ o2.isHorz = (i3 = this.json.isHorz) === null || i3 === void 0 || i3, o2.createLines(t2, n2, e2), e2.addSubMTask(() => yv(this, void 0, void 0, function* () {
30784
30791
  this.iterateElements = this.iterateElements.concat(o2.getIterateElements()), o2.container.name = "\u6BB5\u843D-" + n2, this.paragraphs.push(o2);
30785
30792
  }), "@TextBodyImpl[paragraphs.push]");
30786
30793
  }), "@TextBodyImpl[createParagraphs]");
30787
30794
  }
30788
30795
  render(t2) {
30789
30796
  for (const e2 of this.paragraphs)
30790
- e2.render(t2), t2.addSubMTask(() => _v(this, void 0, void 0, function* () {
30797
+ e2.render(t2), t2.addSubMTask(() => yv(this, void 0, void 0, function* () {
30791
30798
  this.textContainer.addChild(e2.container);
30792
30799
  }), "@TextBodyImpl[container.addChild]");
30793
- t2.addSubMTask(() => _v(this, void 0, void 0, function* () {
30800
+ t2.addSubMTask(() => yv(this, void 0, void 0, function* () {
30794
30801
  const { width: t3 } = this.container;
30795
30802
  this.container.scale.x < 0 && (this.container.x += -1 * t3);
30796
- }), "@TextBodyImpl[reset width]"), t2.addSubMTask(() => _v(this, void 0, void 0, function* () {
30803
+ }), "@TextBodyImpl[reset width]"), t2.addSubMTask(() => yv(this, void 0, void 0, function* () {
30797
30804
  if (this.json.presetTextShape) {
30798
30805
  const t3 = this.json.paragraphs.map((t4) => t4.x).reduce((t4, e3) => Math.min(t4, e3)), e2 = this.json.paragraphs[0].y, n2 = this.textContainer.getBounds(), { width: i2, height: r2 } = n2, { geometry: o2, type: s2 } = this.json.presetTextShape;
30799
30806
  if (o2.paths) {
30800
30807
  const n3 = Uh.P.create({ width: i2, height: r2, resolution: this.ctx.renderer.resolution }), a2 = new Rh.d();
30801
30808
  a2.translate(-t3, -e2), this.ctx.renderer.render(this.textContainer, { renderTexture: n3, transform: a2 });
30802
- const l2 = this.json.isHorz !== void 0 && !this.json.isHorz, h2 = function(t4, e3, n4, i3) {
30803
- if (!vv[n4])
30809
+ const l2 = this.json.isHorz !== void 0 && !this.json.isHorz;
30810
+ this.json.presetTextShape.type;
30811
+ const h2 = function(t4, e3, n4, i3) {
30812
+ if (!_v[n4])
30804
30813
  return null;
30805
- const r3 = vv[n4].top(mv(e3)), o3 = vv[n4].bottom(mv(t4));
30814
+ const r3 = _v[n4].top(gv(e3)), o3 = _v[n4].bottom(gv(t4));
30806
30815
  if (r3.length !== o3.length)
30807
30816
  return null;
30808
30817
  const s3 = Math.min(r3.length, o3.length), a3 = 1 / (s3 - 1), l3 = [], h3 = [], u2 = new Array(2 * s3).fill("").map((t5, e4) => e4);
@@ -30819,7 +30828,7 @@ void main(void){
30819
30828
  }), "presetTextShape");
30820
30829
  }
30821
30830
  }
30822
- class xv {
30831
+ class bv {
30823
30832
  constructor(t2) {
30824
30833
  this.scaleX = 1, this.scaleY = 1, this.pivot = { x: 0, y: 0 }, this.paths = [], this.hash = "", this.width = 0, this.height = 0, this.graphicsId = "", this.textureId = "", this.id = t2.id, this.type = t2.type, this.heightSize = t2.heightSize, this.widthSize = t2.widthSize, this.fillStyle = t2.fillStyle || { fillType: "solidFill", color: "#ffffffff" }, this.lineWidth = t2.lineWidth || 1, this.position = t2.position || { x: 0, y: 0 }, this.rotate = t2.rotation || 1, this.path = this.getUnitPath(), this.setScaleFromLineWidth(), this.setScaleFromSize(), this.generatePaths(), this.setPivot();
30825
30834
  }
@@ -30839,7 +30848,7 @@ void main(void){
30839
30848
  }
30840
30849
  }
30841
30850
  generatePaths() {
30842
- this.hash = "arrow-" + Hm()(this.path + this.scaleX + this.scaleY), this.paths = [{ id: this.id, path: this.path, fill: "norm", hasStroke: false, hash: this.hash, scale: { x: this.scaleX, y: this.scaleY } }];
30851
+ this.hash = "arrow-" + jm()(this.path + this.scaleX + this.scaleY), this.paths = [{ id: this.id, path: this.path, fill: "norm", hasStroke: false, hash: this.hash, scale: { x: this.scaleX, y: this.scaleY } }];
30843
30852
  }
30844
30853
  getUnitPath() {
30845
30854
  switch (this.type) {
@@ -30905,7 +30914,7 @@ void main(void){
30905
30914
  this.width = 10 * this.scaleX, this.height = 10 * this.scaleY;
30906
30915
  }
30907
30916
  }
30908
- class bv {
30917
+ class Tv {
30909
30918
  constructor(t2, e2, n2, i2, r2, o2, s2, a2, l2, h2, u2) {
30910
30919
  this.id = t2, this.ctx = e2, this.paths = n2, this.hash = i2, this.nept = r2, this.width = o2, this.height = s2, this.lineStyle = a2, this.shouldFill = l2, this.bgColor = h2, this.lnColor = u2, this.clonedObjects = [], this._displayObject = null, this.isRectangle = false, this.isPureRect = false, this.isColoredPureRect = false, this.isRectangle = this.rectangleDetect(n2), this.isRectangle && l2 ? this.bgColor ? this.isColoredPureRect = true : this.isPureRect = true : this.ctx.graphicsTexture.addGraphics(this.id, this.paths, this.hash, this.nept, this.width, this.height, this.lineStyle, this.ctx.objectPoolGroup, this.shouldFill, this.bgColor, this.lnColor);
30911
30920
  }
@@ -30937,7 +30946,7 @@ void main(void){
30937
30946
  if (Number.isNaN(r2) || Number.isNaN(o2))
30938
30947
  return false;
30939
30948
  const s2 = { x: r2, y: o2 };
30940
- return og(this.pointDis(s2, i2[0]), this.pointDis(s2, i2[1])) && og(this.pointDis(s2, i2[0]), this.pointDis(s2, i2[2])) && og(this.pointDis(s2, i2[0]), this.pointDis(s2, i2[3])) && this.pointDis(s2, i2[0]) === this.pointDis(s2, i2[1]);
30949
+ return sg(this.pointDis(s2, i2[0]), this.pointDis(s2, i2[1])) && sg(this.pointDis(s2, i2[0]), this.pointDis(s2, i2[2])) && sg(this.pointDis(s2, i2[0]), this.pointDis(s2, i2[3])) && this.pointDis(s2, i2[0]) === this.pointDis(s2, i2[1]);
30941
30950
  }
30942
30951
  createDisplayObject() {
30943
30952
  if (this.isPureRect) {
@@ -30945,7 +30954,7 @@ void main(void){
30945
30954
  return t2.beginFill(0, 1), t2.drawRect(0, 0, this.width, this.height), t2;
30946
30955
  }
30947
30956
  if (this.isColoredPureRect && this.bgColor) {
30948
- const t2 = new Xd(), [e2, n2] = pg(this.bgColor);
30957
+ const t2 = new Xd(), [e2, n2] = fg(this.bgColor);
30949
30958
  return t2.beginFill(e2, n2), t2.drawRect(0, 0, this.width, this.height), t2;
30950
30959
  }
30951
30960
  {
@@ -30975,12 +30984,12 @@ void main(void){
30975
30984
  }), this.clonedObjects = [];
30976
30985
  }
30977
30986
  }
30978
- class Tv extends Uh.u {
30987
+ class Ev extends Uh.u {
30979
30988
  }
30980
- var Ev = n(109), Sv = n.n(Ev), wv = n(110), Av = n.n(wv);
30981
- class Mv extends Tv {
30989
+ var Sv = n(109), wv = n.n(Sv), Av = n(110), Mv = n.n(Av);
30990
+ class Rv extends Ev {
30982
30991
  constructor(t2) {
30983
- super(Sv.a, Av.a, { uShapeFilterArea: new Float32Array([0, 0, 0, 0]), uGlowColor: fg(t2.color), uSdfSampler: Uh.db.WHITE, uSdfReady: 0, uSdfMaxDis: 0, uRad: t2.rad / 2, uSdfPosition: new Float32Array([0, 0]) }), this.priority = 3, this.json = t2;
30992
+ super(wv.a, Mv.a, { uShapeFilterArea: new Float32Array([0, 0, 0, 0]), uGlowColor: mg(t2.color), uSdfSampler: Uh.db.WHITE, uSdfReady: 0, uSdfMaxDis: 0, uRad: t2.rad / 2, uSdfPosition: new Float32Array([0, 0]) }), this.priority = 3, this.json = t2;
30984
30993
  }
30985
30994
  filterAreaJustify(t2) {
30986
30995
  const e2 = Math.ceil(this.json.rad), n2 = Math.ceil(t2.width + 2 * e2), i2 = Math.ceil(t2.height + 2 * e2);
@@ -30991,10 +31000,10 @@ void main(void){
30991
31000
  return new Rh.j(n2, n2, i2, r2);
30992
31001
  }
30993
31002
  }
30994
- var Rv = n(19), Cv = n.n(Rv), Pv = n(111), Iv = n.n(Pv);
30995
- class Ov extends Tv {
31003
+ var Cv = n(19), Pv = n.n(Cv), Iv = n(111), Ov = n.n(Iv);
31004
+ class Nv extends Ev {
30996
31005
  constructor(t2) {
30997
- super(Cv.a, Iv.a, { uShapeFilterArea: new Float32Array([0, 0, 0, 0]), uRad: t2.rad, uSdfSampler: Uh.db.WHITE, uSdfReady: 0, uSdfMaxDis: 1 }), this.priority = 2, this.json = t2;
31006
+ super(Pv.a, Ov.a, { uShapeFilterArea: new Float32Array([0, 0, 0, 0]), uRad: t2.rad, uSdfSampler: Uh.db.WHITE, uSdfReady: 0, uSdfMaxDis: 1 }), this.priority = 2, this.json = t2;
30998
31007
  }
30999
31008
  filterAreaJustify(t2) {
31000
31009
  return t2;
@@ -31003,17 +31012,17 @@ void main(void){
31003
31012
  return new Rh.j(0, 0, t2, e2);
31004
31013
  }
31005
31014
  }
31006
- class Nv {
31015
+ class Lv {
31007
31016
  }
31008
- var Lv = n(112), Dv = n.n(Lv);
31009
- class Fv extends Uh.u {
31017
+ var Dv = n(112), Fv = n.n(Dv);
31018
+ class Bv extends Uh.u {
31010
31019
  constructor(t2) {
31011
- super(Cv.a, Dv.a, { uColor: fg(t2) });
31020
+ super(Pv.a, Fv.a, { uColor: mg(t2) });
31012
31021
  }
31013
31022
  }
31014
- class Bv extends Nv {
31023
+ class Uv extends Lv {
31015
31024
  constructor(t2, e2, n2) {
31016
- super(), this.order = 1, this.outputTexture = Uh.db.WHITE, this.frameTextures = [], this.json = t2, this.effectContainer = e2, this.outputSprite = new Kd(), this.targetScale = n2, this.outputSprite.scale.x = this.json.sx, this.outputSprite.scale.y = this.json.sy, this.outputSprite.skew.x = (this.targetScale.x > 0 ? 1 : -1) * this.json.kx, this.outputSprite.skew.y = (this.targetScale.y > 0 ? 1 : -1) * this.json.ky, this.outputSprite.filters = [new rm.BlurFilter(this.json.blurRad / 2, 4), new Fv(this.json.color)];
31025
+ super(), this.order = 1, this.outputTexture = Uh.db.WHITE, this.frameTextures = [], this.json = t2, this.effectContainer = e2, this.outputSprite = new Kd(), this.targetScale = n2, this.outputSprite.scale.x = this.json.sx, this.outputSprite.scale.y = this.json.sy, this.outputSprite.skew.x = (this.targetScale.x > 0 ? 1 : -1) * this.json.kx, this.outputSprite.skew.y = (this.targetScale.y > 0 ? 1 : -1) * this.json.ky, this.outputSprite.filters = [new rm.BlurFilter(this.json.blurRad / 2, 4), new Bv(this.json.color)];
31017
31026
  }
31018
31027
  updateFrame(t2) {
31019
31028
  const e2 = this.frameTextures[t2];
@@ -31062,17 +31071,17 @@ void main(void){
31062
31071
  console.log(t2, e2);
31063
31072
  }
31064
31073
  }
31065
- var Uv = n(113), kv = n.n(Uv);
31066
- class Gv extends Uh.u {
31074
+ var kv = n(113), Gv = n.n(kv);
31075
+ class Hv extends Uh.u {
31067
31076
  constructor(t2, e2) {
31068
- super(Cv.a, kv.a, { uStartAlpha: t2.startAlpha, uEndAlpha: t2.endAlpha, uStartPos: t2.startPos, uEndPos: t2.endPos, uHeight: e2 }), console.log(this);
31077
+ super(Pv.a, Gv.a, { uStartAlpha: t2.startAlpha, uEndAlpha: t2.endAlpha, uStartPos: t2.startPos, uEndPos: t2.endPos, uHeight: e2 }), console.log(this);
31069
31078
  }
31070
31079
  }
31071
- class Hv extends Nv {
31080
+ class jv extends Lv {
31072
31081
  constructor(t2, e2, n2, i2, r2) {
31073
31082
  super(), this.order = 2, this.outputSprite = new Kd(), this.outputTexture = Uh.db.WHITE, this.frameTextures = [], this.json = t2, this.shapeScaleX = i2, this.effectContainer = e2, this.rotation = n2, this.ctx = r2, this.outputSprite.anchor.x = 0.5, this.outputSprite.anchor.y = 0.5;
31074
31083
  const o2 = this.effectContainer.getBounds();
31075
- this.outputSprite.filters = [new rm.BlurFilter(this.json.blurRad / 2, 4), new Gv(this.json, o2.height)], this.outputSprite.alpha = 0.5, this.outputSprite.rotation = this.shapeScaleX === -1 ? Math.PI + 2 * this.rotation : Math.PI - 2 * this.rotation, this.outputSprite.scale.x = -1;
31084
+ this.outputSprite.filters = [new rm.BlurFilter(this.json.blurRad / 2, 4), new Hv(this.json, o2.height)], this.outputSprite.alpha = 0.5, this.outputSprite.rotation = this.shapeScaleX === -1 ? Math.PI + 2 * this.rotation : Math.PI - 2 * this.rotation, this.outputSprite.scale.x = -1;
31076
31085
  }
31077
31086
  updateFrame(t2) {
31078
31087
  const e2 = this.frameTextures[t2];
@@ -31086,10 +31095,10 @@ void main(void){
31086
31095
  this.outputSprite.position.x = o2.x + t2, this.outputSprite.position.y = o2.y + e2;
31087
31096
  }
31088
31097
  }
31089
- var jv = n(114), zv = n.n(jv);
31090
- class Vv extends Tv {
31098
+ var zv = n(114), Vv = n.n(zv);
31099
+ class Xv extends Ev {
31091
31100
  constructor(t2) {
31092
- super(Cv.a, zv.a, {}), this.priority = 1, this.json = t2;
31101
+ super(Pv.a, Vv.a, {}), this.priority = 1, this.json = t2;
31093
31102
  }
31094
31103
  filterAreaJustify(t2) {
31095
31104
  return t2;
@@ -31098,7 +31107,7 @@ void main(void){
31098
31107
  return null;
31099
31108
  }
31100
31109
  }
31101
- var Xv = function(t2, e2, n2, i2) {
31110
+ var Wv = function(t2, e2, n2, i2) {
31102
31111
  return new (n2 || (n2 = Promise))(function(r2, o2) {
31103
31112
  function s2(t3) {
31104
31113
  try {
@@ -31123,25 +31132,25 @@ void main(void){
31123
31132
  l2((i2 = i2.apply(t2, e2 || [])).next());
31124
31133
  });
31125
31134
  };
31126
- class Wv extends Ja.a {
31135
+ class Yv extends Ja.a {
31127
31136
  constructor(t2, e2, n2, i2, r2, o2) {
31128
31137
  super(), this.effects = [], this.attachs = [], this.frames = /* @__PURE__ */ new Map(), this._targetContainer = new wh.b(), this.frameCount = 1, this.ctx = i2, this.originWidth = t2.width, this.originHeight = t2.height, this.cacheKey = n2, this.sourceSprite = new Kd();
31129
31138
  for (const n3 of e2)
31130
31139
  switch (n3.type) {
31131
31140
  case "innerShadow":
31132
- this.effects.push(new Vv(n3));
31141
+ this.effects.push(new Xv(n3));
31133
31142
  break;
31134
31143
  case "softEdge":
31135
- this.effects.push(new Ov(n3));
31144
+ this.effects.push(new Nv(n3));
31136
31145
  break;
31137
31146
  case "glow":
31138
- this.effects.push(new Mv(n3));
31147
+ this.effects.push(new Rv(n3));
31139
31148
  break;
31140
31149
  case "reflection":
31141
- this.attachs.push(new Hv(n3, t2, r2, o2.x, this.ctx));
31150
+ this.attachs.push(new jv(n3, t2, r2, o2.x, this.ctx));
31142
31151
  break;
31143
31152
  case "outerShadow":
31144
- this.attachs.push(new Bv(n3, t2, o2));
31153
+ this.attachs.push(new Uv(n3, t2, o2));
31145
31154
  }
31146
31155
  this.effects = this.effects.sort((t3, e3) => t3.priority - e3.priority), this.attachs = this.attachs.sort((t3, e3) => t3.order - e3.order);
31147
31156
  for (const t3 of this.attachs)
@@ -31154,7 +31163,7 @@ void main(void){
31154
31163
  return this._targetContainer;
31155
31164
  }
31156
31165
  getSdfTexture(t2, e2) {
31157
- return Xv(this, void 0, void 0, function* () {
31166
+ return Wv(this, void 0, void 0, function* () {
31158
31167
  const n2 = `${this.cacheKey}_${t2}`, i2 = this.effects.map((t3) => ({ sdfRect: t3.sdfBox(e2.width, e2.height) })).reduce((t3, e3) => e3.sdfRect ? (t3.width < e3.sdfRect.width && (t3.width = e3.sdfRect.width), t3.height < e3.sdfRect.height && (t3.height = e3.sdfRect.height), t3) : t3, new Rh.j(0, 0));
31159
31168
  return i2.width === 0 || i2.height === 0 ? null : this.ctx.sdfManager.getSdf(e2, i2, n2);
31160
31169
  });
@@ -31178,7 +31187,7 @@ void main(void){
31178
31187
  }
31179
31188
  createFrame(t2, e2) {
31180
31189
  var n2, i2;
31181
- return Xv(this, void 0, void 0, function* () {
31190
+ return Wv(this, void 0, void 0, function* () {
31182
31191
  const r2 = e2.width, o2 = e2.height;
31183
31192
  if (this.frames.has(t2))
31184
31193
  return;
@@ -31198,7 +31207,7 @@ void main(void){
31198
31207
  });
31199
31208
  }
31200
31209
  }
31201
- var Yv = function(t2, e2, n2, i2) {
31210
+ var qv = function(t2, e2, n2, i2) {
31202
31211
  return new (n2 || (n2 = Promise))(function(r2, o2) {
31203
31212
  function s2(t3) {
31204
31213
  try {
@@ -31223,14 +31232,14 @@ void main(void){
31223
31232
  l2((i2 = i2.apply(t2, e2 || [])).next());
31224
31233
  });
31225
31234
  };
31226
- const qv = { pivot: { x: 0, y: 0 }, width: 0, height: 0 };
31227
- class Zv extends lg {
31235
+ const Zv = { pivot: { x: 0, y: 0 }, width: 0, height: 0 };
31236
+ class Jv extends hg {
31228
31237
  constructor(t2, e2, n2, i2) {
31229
31238
  var r2;
31230
- super(t2, e2, n2), this.renderContainer = new wh.b(), this.needCacheAsBitMap = false, this.backgroundGraphics = null, this.effectList = [], this.strokeGraphics = null, this.arrowList = [], this.fillColorFilter = new vg(), this.strokeColorFilter = new vg(), this.pptColorFilter = new vg(), this.id = "", this.ppt_c = new eg(this), this.fill = new ng(this), this.stroke = new $m(this), this.effectObject = null, this.effectContainer = new wh.b(), this.effectDisposer = () => {
31239
+ super(t2, e2, n2), this.renderContainer = new wh.b(), this.needCacheAsBitMap = false, this.backgroundGraphics = null, this.effectList = [], this.strokeGraphics = null, this.arrowList = [], this.fillColorFilter = new _g(), this.strokeColorFilter = new _g(), this.pptColorFilter = new _g(), this.id = "", this.ppt_c = new ng(this), this.fill = new ig(this), this.stroke = new tg(this), this.effectObject = null, this.effectContainer = new wh.b(), this.effectDisposer = () => {
31231
31240
  }, this.json = t2, this.json.fillStyle && this.json.fillStyle.fillType === "groupFill" && i2 && (this.json.fillStyle = i2), this.id = t2.id;
31232
31241
  const { fillStyle: o2, lineStyle: s2 } = this.json;
31233
- this.container.sortableChildren = true, this.container.name = t2.id + "_container_[Shape]", this.effectContainer.name = "effect-container", this.effectContainer.zIndex = 1, this.container.addChild(this.effectContainer), this.renderContainer.name = t2.id + "_render_container_[Shape]", this.generateArrowList(), this.backgroundFill = this.createBackgroundFill(), this.backgroundGraphics = this.createBackgroundGraphics(), this.strokeFill = this.createStrokeFill(), this.strokeGraphics = this.createStrokeGraphics(), this.ctx.timingTargets.addTarget(this.id, this), (o2 == null ? void 0 : o2.fillType) === "solidFill" && (this.fillColorFilter.currentColor = o2.color, this.fillColorFilter.designColor = o2.color), ((r2 = s2 == null ? void 0 : s2.fill) === null || r2 === void 0 ? void 0 : r2.fillType) === "solidFill" && (this.strokeColorFilter.currentColor = s2.fill.color, this.strokeColorFilter.designColor = s2.fill.color), this.updateTransform(this.json), t2.textBody && (this.text = new yv(t2.textBody, this.ctx, t2.textBody.iterateType, { x: this.designGlobalPosition.x, y: this.designGlobalPosition.y }, this.json.rotation || 0)), this.container.hitArea = new Rh.k(1, 1, this.json.width, this.json.height), this.ctx.slideScopeEventHub.once("slide-render", (t3) => {
31242
+ this.container.sortableChildren = true, this.container.name = t2.id + "_container_[Shape]", this.effectContainer.name = "effect-container", this.effectContainer.zIndex = 1, this.container.addChild(this.effectContainer), this.renderContainer.name = t2.id + "_render_container_[Shape]", this.generateArrowList(), this.backgroundFill = this.createBackgroundFill(), this.backgroundGraphics = this.createBackgroundGraphics(), this.strokeFill = this.createStrokeFill(), this.strokeGraphics = this.createStrokeGraphics(), this.ctx.timingTargets.addTarget(this.id, this), (o2 == null ? void 0 : o2.fillType) === "solidFill" && (this.fillColorFilter.currentColor = o2.color, this.fillColorFilter.designColor = o2.color), ((r2 = s2 == null ? void 0 : s2.fill) === null || r2 === void 0 ? void 0 : r2.fillType) === "solidFill" && (this.strokeColorFilter.currentColor = s2.fill.color, this.strokeColorFilter.designColor = s2.fill.color), this.updateTransform(this.json), t2.textBody && (this.text = new xv(t2.textBody, this.ctx, t2.textBody.iterateType, { x: this.designGlobalPosition.x, y: this.designGlobalPosition.y }, this.json.rotation || 0)), this.container.hitArea = new Rh.k(1, 1, this.json.width, this.json.height), this.ctx.slideScopeEventHub.once("slide-render", (t3) => {
31234
31243
  if (this.ctx.slideIndex === t3 && this.effectObject) {
31235
31244
  const t4 = this.getEffectTexture();
31236
31245
  if (t4) {
@@ -31290,26 +31299,26 @@ void main(void){
31290
31299
  }
31291
31300
  createStrokeGraphics() {
31292
31301
  var t2, e2, n2, i2;
31293
- const { id: r2, geometry: o2, lineStyle: s2 } = this.json, { width: a2, height: l2, pivot: h2 } = (o2 == null ? void 0 : o2.lineTransform) || qv, u2 = a2 || this.json.width, c2 = l2 || this.json.height, d2 = ((t2 = s2 == null ? void 0 : s2.fill) === null || t2 === void 0 ? void 0 : t2.fillType) === "solidFill" ? s2.fill.color : null;
31294
- return s2 && ((e2 = s2.fill) === null || e2 === void 0 ? void 0 : e2.fillType) !== "noFill" ? new bv(r2 + "-path-graphics", this.ctx, (n2 = o2 == null ? void 0 : o2.paths) !== null && n2 !== void 0 ? n2 : [], (i2 = o2 == null ? void 0 : o2.hash) !== null && i2 !== void 0 ? i2 : "", h2 || { x: 0, y: 0 }, u2, c2, s2, false, null, d2) : null;
31302
+ const { id: r2, geometry: o2, lineStyle: s2 } = this.json, { width: a2, height: l2, pivot: h2 } = (o2 == null ? void 0 : o2.lineTransform) || Zv, u2 = a2 || this.json.width, c2 = l2 || this.json.height, d2 = ((t2 = s2 == null ? void 0 : s2.fill) === null || t2 === void 0 ? void 0 : t2.fillType) === "solidFill" ? s2.fill.color : null;
31303
+ return s2 && ((e2 = s2.fill) === null || e2 === void 0 ? void 0 : e2.fillType) !== "noFill" ? new Tv(r2 + "-path-graphics", this.ctx, (n2 = o2 == null ? void 0 : o2.paths) !== null && n2 !== void 0 ? n2 : [], (i2 = o2 == null ? void 0 : o2.hash) !== null && i2 !== void 0 ? i2 : "", h2 || { x: 0, y: 0 }, u2, c2, s2, false, null, d2) : null;
31295
31304
  }
31296
31305
  createStrokeFill() {
31297
- const [t2, e2] = this.calculateFillObjectOffset(), { geometry: n2, lineStyle: i2, width: r2, height: o2 } = this.json, s2 = (n2 == null ? void 0 : n2.lineTransform) || qv, a2 = zm()(i2 == null ? void 0 : i2.width) ? i2.width : 1;
31298
- return new sv(this.ctx, i2 == null ? void 0 : i2.fill, (s2.width || r2) + a2 + t2, Math.max((s2.height || o2) + a2, e2), { useFilter: true, useSlideBackgroundFill: false });
31306
+ const [t2, e2] = this.calculateFillObjectOffset(), { geometry: n2, lineStyle: i2, width: r2, height: o2 } = this.json, s2 = (n2 == null ? void 0 : n2.lineTransform) || Zv, a2 = Vm()(i2 == null ? void 0 : i2.width) ? i2.width : 1;
31307
+ return new av(this.ctx, i2 == null ? void 0 : i2.fill, (s2.width || r2) + a2 + t2, Math.max((s2.height || o2) + a2, e2), { useFilter: true, useSlideBackgroundFill: false });
31299
31308
  }
31300
31309
  createBackgroundGraphics() {
31301
31310
  var t2;
31302
- const { geometry: e2, lineStyle: n2, fillStyle: i2, id: r2 } = this.json, { width: o2, height: s2, pivot: a2 } = (e2 == null ? void 0 : e2.lineTransform) || qv, l2 = o2 || this.json.width, h2 = s2 || this.json.height, u2 = (i2 == null ? void 0 : i2.fillType) === "solidFill" ? i2.color : null;
31303
- return i2 && i2.fillType !== "noFill" || this.json.isPicture ? new bv(r2 + "-bg-graphics", this.ctx, (t2 = e2 == null ? void 0 : e2.paths) !== null && t2 !== void 0 ? t2 : [], (e2 == null ? void 0 : e2.hash) || "", a2 || { x: 0, y: 0 }, l2, h2, n2, true, u2, null) : null;
31311
+ const { geometry: e2, lineStyle: n2, fillStyle: i2, id: r2 } = this.json, { width: o2, height: s2, pivot: a2 } = (e2 == null ? void 0 : e2.lineTransform) || Zv, l2 = o2 || this.json.width, h2 = s2 || this.json.height, u2 = (i2 == null ? void 0 : i2.fillType) === "solidFill" ? i2.color : null;
31312
+ return i2 && i2.fillType !== "noFill" || this.json.isPicture ? new Tv(r2 + "-bg-graphics", this.ctx, (t2 = e2 == null ? void 0 : e2.paths) !== null && t2 !== void 0 ? t2 : [], (e2 == null ? void 0 : e2.hash) || "", a2 || { x: 0, y: 0 }, l2, h2, n2, true, u2, null) : null;
31304
31313
  }
31305
31314
  createBackgroundFill() {
31306
31315
  var t2, e2;
31307
- const { fillStyle: n2, width: i2, height: r2, lineStyle: o2, geometry: s2 } = this.json, a2 = (s2 == null ? void 0 : s2.fillTransform) || qv;
31308
- return new sv(this.ctx, n2, (a2.width || i2) + ((t2 = o2 == null ? void 0 : o2.width) !== null && t2 !== void 0 ? t2 : 0), (a2.height || r2) + ((e2 = o2 == null ? void 0 : o2.width) !== null && e2 !== void 0 ? e2 : 0), { useFilter: true, useSlideBackgroundFill: this.json.useBgFill, fillFloat: this.json.fillFloat, shapeRotation: this.json.rotation });
31316
+ const { fillStyle: n2, width: i2, height: r2, lineStyle: o2, geometry: s2 } = this.json, a2 = (s2 == null ? void 0 : s2.fillTransform) || Zv;
31317
+ return new av(this.ctx, n2, (a2.width || i2) + ((t2 = o2 == null ? void 0 : o2.width) !== null && t2 !== void 0 ? t2 : 0), (a2.height || r2) + ((e2 = o2 == null ? void 0 : o2.width) !== null && e2 !== void 0 ? e2 : 0), { useFilter: true, useSlideBackgroundFill: this.json.useBgFill, fillFloat: this.json.fillFloat, shapeRotation: this.json.rotation });
31309
31318
  }
31310
31319
  createBackground() {
31311
31320
  var t2, e2, n2, i2, r2, o2, s2, a2;
31312
- const { pivot: l2, width: h2, height: u2 } = ((t2 = this.json.geometry) === null || t2 === void 0 ? void 0 : t2.fillTransform) || qv, { displayObject: c2 } = this.backgroundFill;
31321
+ const { pivot: l2, width: h2, height: u2 } = ((t2 = this.json.geometry) === null || t2 === void 0 ? void 0 : t2.fillTransform) || Zv, { displayObject: c2 } = this.backgroundFill;
31313
31322
  c2 ? (this.json.useBgFill && ((n2 = this.backgroundGraphics) === null || n2 === void 0 ? void 0 : n2.displayObject) ? (this.needCacheAsBitMap = true, c2.mask = this.backgroundGraphics.displayObject, c2.pivot.x = ((i2 = this.json.position) === null || i2 === void 0 ? void 0 : i2.x) || 0, c2.pivot.y = ((r2 = this.json.position) === null || r2 === void 0 ? void 0 : r2.y) || 0, this.effectContainer.addChild(this.backgroundGraphics.displayObject)) : ((o2 = this.json.fillStyle) === null || o2 === void 0 ? void 0 : o2.fillType) === "gifFill" ? (c2.height = u2 || this.designHeight, c2.width = h2 || this.designWidth, c2 instanceof em && c2.play(), ((s2 = this.backgroundGraphics) === null || s2 === void 0 ? void 0 : s2.isNeedMask(c2.width, c2.height)) && (c2.mask = this.backgroundGraphics.displayObject, this.backgroundGraphics.displayObject && this.effectContainer.addChild(this.backgroundGraphics.displayObject))) : ((a2 = this.backgroundGraphics) === null || a2 === void 0 ? void 0 : a2.isNeedMask(c2.width, c2.height)) && (this.json.fillFloat || (this.needCacheAsBitMap = true, c2.mask = this.backgroundGraphics.displayObject, this.backgroundGraphics.displayObject && this.effectContainer.addChild(this.backgroundGraphics.displayObject))), this.json.fillFloat || (c2.x = l2.x, c2.y = l2.y), this.effectContainer.addChild(c2)) : this.backgroundFill.hasFill && ((e2 = this.backgroundGraphics) === null || e2 === void 0 ? void 0 : e2.displayObject) && this.effectContainer.addChild(this.backgroundGraphics.displayObject);
31314
31323
  }
31315
31324
  createPathFill() {
@@ -31326,7 +31335,7 @@ void main(void){
31326
31335
  const i3 = new Kd(e3.texture);
31327
31336
  i3.pivot.x = e3.pivot.x, i3.pivot.y = e3.pivot.y;
31328
31337
  const r2 = this.backgroundFill.getClonedDisplayObject(), o2 = (n2 = this.backgroundGraphics) === null || n2 === void 0 ? void 0 : n2.getClonedDisplayObject(), s2 = r2 || o2;
31329
- s2 && (this.backgroundFill.displayObject && (s2.pivot.x = this.backgroundFill.displayObject.pivot.x, s2.pivot.y = this.backgroundFill.displayObject.pivot.y), s2.mask = i3, s2.filters = [Tg[t3.fill]], this.needCacheAsBitMap = true, this.effectContainer.addChild(s2), this.effectContainer.addChild(i3));
31338
+ s2 && (this.backgroundFill.displayObject && (s2.pivot.x = this.backgroundFill.displayObject.pivot.x, s2.pivot.y = this.backgroundFill.displayObject.pivot.y), s2.mask = i3, s2.filters = [Eg[t3.fill]], this.needCacheAsBitMap = true, this.effectContainer.addChild(s2), this.effectContainer.addChild(i3));
31330
31339
  }
31331
31340
  }
31332
31341
  }
@@ -31345,7 +31354,7 @@ void main(void){
31345
31354
  const { lineArrowList: n2, lineStyle: i2, id: r2 } = this.json, o2 = ((t2 = i2 == null ? void 0 : i2.fill) === null || t2 === void 0 ? void 0 : t2.fillType) === "solidFill" ? i2.fill.color : null;
31346
31355
  (e2 = n2 || []) === null || e2 === void 0 || e2.forEach((t3, e3) => {
31347
31356
  var n3, s2;
31348
- const a2 = new xv(Object.assign(Object.assign({}, t3), { fillStyle: i2 == null ? void 0 : i2.fill, lineWidth: (n3 = i2 == null ? void 0 : i2.width) !== null && n3 !== void 0 ? n3 : 0 }));
31357
+ const a2 = new bv(Object.assign(Object.assign({}, t3), { fillStyle: i2 == null ? void 0 : i2.fill, lineWidth: (n3 = i2 == null ? void 0 : i2.width) !== null && n3 !== void 0 ? n3 : 0 }));
31349
31358
  a2.graphicsId = `${r2}-arrow-${e3}-graphics`, a2.textureId = `${r2}-arrow-${e3}-fill`, this.ctx.graphicsTexture.addGraphics(a2.graphicsId, (s2 = a2.paths) !== null && s2 !== void 0 ? s2 : [], a2.hash, { x: 0, y: 0 }, a2.width, a2.height, void 0, this.ctx.objectPoolGroup, true, o2, null), this.arrowList.push(a2);
31350
31359
  });
31351
31360
  }
@@ -31355,19 +31364,19 @@ void main(void){
31355
31364
  }
31356
31365
  preRender(t2) {
31357
31366
  var e2, n2, i2;
31358
- const { lineStyle: r2, geometry: o2 } = this.json, { width: s2, height: a2 } = (o2 == null ? void 0 : o2.lineTransform) || qv, l2 = s2 || this.json.width, h2 = a2 || this.json.height, u2 = ((e2 = o2 == null ? void 0 : o2.paths) === null || e2 === void 0 ? void 0 : e2.filter((t3) => t3.fill !== "none" && t3.fill !== "norm")) || [], c2 = ((n2 = r2 == null ? void 0 : r2.fill) === null || n2 === void 0 ? void 0 : n2.fillType) === "solidFill" ? r2.fill.color : null;
31359
- t2.addSubMTask(() => Yv(this, void 0, void 0, function* () {
31367
+ const { lineStyle: r2, geometry: o2 } = this.json, { width: s2, height: a2 } = (o2 == null ? void 0 : o2.lineTransform) || Zv, l2 = s2 || this.json.width, h2 = a2 || this.json.height, u2 = ((e2 = o2 == null ? void 0 : o2.paths) === null || e2 === void 0 ? void 0 : e2.filter((t3) => t3.fill !== "none" && t3.fill !== "norm")) || [], c2 = ((n2 = r2 == null ? void 0 : r2.fill) === null || n2 === void 0 ? void 0 : n2.fillType) === "solidFill" ? r2.fill.color : null;
31368
+ t2.addSubMTask(() => qv(this, void 0, void 0, function* () {
31360
31369
  for (const t3 of u2)
31361
- this.ctx.graphicsTexture.addGraphics(t3.id, [t3], t3.hash, ((o2 == null ? void 0 : o2.lineTransform) || qv).pivot, l2, h2, r2, this.ctx.objectPoolGroup, true, null, c2);
31370
+ this.ctx.graphicsTexture.addGraphics(t3.id, [t3], t3.hash, ((o2 == null ? void 0 : o2.lineTransform) || Zv).pivot, l2, h2, r2, this.ctx.objectPoolGroup, true, null, c2);
31362
31371
  }), "@ShapeImpl[addGraphics]"), (i2 = this.text) === null || i2 === void 0 || i2.createParagraphs(this.json.id, t2);
31363
31372
  }
31364
31373
  subClassRender() {
31365
31374
  }
31366
31375
  render(t2) {
31367
- t2.addSubMTask(() => Yv(this, void 0, void 0, function* () {
31376
+ t2.addSubMTask(() => qv(this, void 0, void 0, function* () {
31368
31377
  var t3, e2;
31369
31378
  (t3 = this.strokeGraphics) === null || t3 === void 0 || t3.render(), (e2 = this.backgroundGraphics) === null || e2 === void 0 || e2.render(), this.createBackground(), this.subClassRender(), this.createFilledPathMask(), this.createPathFill(), this.createArrow();
31370
- }), "@ShapeImpl[render]"), this.text && this.text.render(t2), t2.addSubMTask(() => Yv(this, void 0, void 0, function* () {
31379
+ }), "@ShapeImpl[render]"), this.text && this.text.render(t2), t2.addSubMTask(() => qv(this, void 0, void 0, function* () {
31371
31380
  var t3, e2, n2, i2, r2, o2, s2, a2, l2, h2, u2;
31372
31381
  if (((t3 = this.json.textBody) === null || t3 === void 0 ? void 0 : t3.iterateType) === "wd" || ((e2 = this.json.textBody) === null || e2 === void 0 ? void 0 : e2.iterateType) === "lt") {
31373
31382
  if (this.renderContainer.addChild(this.container), this.text) {
@@ -31376,7 +31385,7 @@ void main(void){
31376
31385
  }
31377
31386
  } else {
31378
31387
  if (this.text) {
31379
- if (ug()(this.json.textRotateWithShape) && !this.json.textRotateWithShape) {
31388
+ if (cg()(this.json.textRotateWithShape) && !this.json.textRotateWithShape) {
31380
31389
  const t5 = this.json.rotation || 0;
31381
31390
  this.text.container.rotation = -t5;
31382
31391
  const { width: e3 } = this.text;
@@ -31392,7 +31401,7 @@ void main(void){
31392
31401
  const t4 = Uh.P.create({ width: this.json.width, height: this.json.height, resolution: Math.ceil(this.ctx.renderer.resolution) });
31393
31402
  this.ctx.renderer.render(this.renderContainer, { renderTexture: t4 }), this.ctx.bgTexture = t4;
31394
31403
  }
31395
- this.json.effectList && this.json.effectList.length > 0 && ((l2 = this.ctx.featureList) === null || l2 === void 0 ? void 0 : l2.effect) && !this.ctx.forceCanvas && (this.effectObject = new Wv(this.effectContainer, this.json.effectList, `${this.ctx.taskId}_${this.ctx.slideIndex}_${this.json.id}`, this.ctx, this.json.rotation || 0, new Rh.g(((h2 = this.json.scale) === null || h2 === void 0 ? void 0 : h2.x) || 1, ((u2 = this.json.scale) === null || u2 === void 0 ? void 0 : u2.y) || 1)), function(t4) {
31404
+ this.json.effectList && this.json.effectList.length > 0 && ((l2 = this.ctx.featureList) === null || l2 === void 0 ? void 0 : l2.effect) && !this.ctx.forceCanvas && (this.effectObject = new Yv(this.effectContainer, this.json.effectList, `${this.ctx.taskId}_${this.ctx.slideIndex}_${this.json.id}`, this.ctx, this.json.rotation || 0, new Rh.g(((h2 = this.json.scale) === null || h2 === void 0 ? void 0 : h2.x) || 1, ((u2 = this.json.scale) === null || u2 === void 0 ? void 0 : u2.y) || 1)), function(t4) {
31396
31405
  var e3, n3, i3;
31397
31406
  return ((e3 = t4.fillStyle) === null || e3 === void 0 ? void 0 : e3.fillType) === "gifFill" || (((i3 = (n3 = t4.lineStyle) === null || n3 === void 0 ? void 0 : n3.fill) === null || i3 === void 0 ? void 0 : i3.fillType) === "gifFill" || !!t4.picFill && t4.picFill.fillType === "gifFill");
31398
31407
  }(this.json) && this.effectObject.setFrameCount(-1), this.effectObject.on("ready", () => {
@@ -31410,7 +31419,7 @@ void main(void){
31410
31419
  (t2 = this.text) === null || t2 === void 0 || t2.destroy(), this.fillColorFilter.destroy(), this.strokeColorFilter.destroy(), this.backgroundFill.destroy(), (e2 = this.backgroundGraphics) === null || e2 === void 0 || e2.destroy(), this.strokeFill.destroy(), (n2 = this.strokeGraphics) === null || n2 === void 0 || n2.destroy(), this.renderContainer.destroy(), (i2 = this.arrowRenderTexture) === null || i2 === void 0 || i2.destroy(true), this.arrowList = [], this.effectDisposer();
31411
31420
  }
31412
31421
  }
31413
- var Jv = function(t2, e2, n2, i2) {
31422
+ var Kv = function(t2, e2, n2, i2) {
31414
31423
  return new (n2 || (n2 = Promise))(function(r2, o2) {
31415
31424
  function s2(t3) {
31416
31425
  try {
@@ -31435,37 +31444,38 @@ void main(void){
31435
31444
  l2((i2 = i2.apply(t2, e2 || [])).next());
31436
31445
  });
31437
31446
  };
31438
- function Kv(t2, e2) {
31447
+ function Qv(t2, e2) {
31439
31448
  for (const n2 in e2)
31440
31449
  t2.style[n2] = e2[n2];
31441
31450
  }
31442
- class Qv {
31451
+ class $v {
31443
31452
  constructor(t2) {
31444
31453
  var e2, n2;
31445
- this.progress = document.createElement("div"), this.totalTime = document.createElement("span"), this.playButton = document.createElement("div"), this.pauseButton = document.createElement("div"), this.currentTime = document.createElement("span"), this.mediaController = document.createElement("div"), this.currentProgress = document.createElement("div"), this.medianIsEnd = false, this.pickBookmarkIndex = 0, this.playCallBackList = [], this.duration = 0, this.start = 0, this.end = 0, this.changeMediaProgress = (t3) => {
31454
+ this.progress = document.createElement("div"), this.totalTime = document.createElement("span"), this.playButton = document.createElement("div"), this.pauseButton = document.createElement("div"), this.currentTime = document.createElement("span"), this.mediaController = document.createElement("div"), this.currentProgress = document.createElement("div"), this.fullScreenButton = document.createElement("div"), this.exitFullScreenButton = document.createElement("div"), this.medianIsEnd = false, this.pickBookmarkIndex = 0, this.playCallBackList = [], this.duration = 0, this.isVideo = false, this.start = 0, this.end = 0, this.changeMediaProgress = (t3) => {
31446
31455
  if (this.ctx.isPlayerPaused())
31447
31456
  return void this.ctx.logger.info("Media controller prevent seek event with paused state", this.ctx.taskId);
31448
31457
  t3.stopPropagation();
31449
31458
  const e3 = t3.offsetX / this.progress.clientWidth * this.duration;
31450
- this.medianIsEnd = false, this.ctx.mode !== "interactive" && this.jumpToTime(e3), this.ctx.mode !== "local" && this.ctx.eventHub.emit(By.mediaSeek, { id: this.targetId, time: e3, isPlaying: this.media.isPlaying });
31451
- }, this.jumpToTime = (t3 = 0) => {
31459
+ this.medianIsEnd = false, this.ctx.mode !== "interactive" && this.jumpToTime(e3), this.ctx.mode !== "local" && this.ctx.eventHub.emit(Uy.mediaSeek, { id: this.targetId, time: e3, isPlaying: this.media.isPlaying });
31460
+ }, this.jumpToTime = (t3 = 0) => Kv(this, void 0, void 0, function* () {
31461
+ yield Im(() => !!this.duration, 3e3);
31452
31462
  const e3 = Math.floor(t3) + this.start;
31453
31463
  this.media.currentTime !== e3 && (this.media.currentTime = e3, this.changeBookmarkIndex(e3, e3 > this.media.currentTime));
31454
- }, this.showController = (t3) => {
31464
+ }), this.showController = (t3) => {
31455
31465
  t3.stopPropagation(), this.show();
31456
31466
  }, this.getMediaDuration = () => {
31457
- this.duration && !Number.isNaN(this.duration) || (this.duration = this.media.duration, this.start && (this.duration -= this.start, this.jumpToTime()), this.end && (this.duration -= this.end)), this.totalTime.innerText = Qv.formatTime(this.duration);
31458
- }, this.playMedia = () => Jv(this, void 0, void 0, function* () {
31467
+ this.duration && !Number.isNaN(this.duration) || (this.duration = this.media.duration, this.start && (this.duration -= this.start, this.jumpToTime()), this.end && (this.duration -= this.end)), this.totalTime.innerText = $v.formatTime(this.duration);
31468
+ }, this.playMedia = () => Kv(this, void 0, void 0, function* () {
31459
31469
  this.playButton.style.display = "none", this.pauseButton.style.display = "block", yield this.media.play(), this.medianIsEnd && (this.medianIsEnd = false, this.jumpToTime()), this.playCallBackList.forEach((t3) => {
31460
31470
  t3();
31461
31471
  });
31462
- }), this.pauseMedia = () => Jv(this, void 0, void 0, function* () {
31472
+ }), this.pauseMedia = () => Kv(this, void 0, void 0, function* () {
31463
31473
  this.playButton.style.display = "block", this.pauseButton.style.display = "none", yield this.media.pause();
31464
31474
  }), this.onMouseOut = (t3) => {
31465
31475
  t3.stopPropagation(), this.mediaController.style.display = "none";
31466
- }, this.mediaTimeUpdate = () => Jv(this, void 0, void 0, function* () {
31476
+ }, this.mediaTimeUpdate = () => Kv(this, void 0, void 0, function* () {
31467
31477
  const t3 = this.media.currentTime - this.start;
31468
- if (this.duration > 0 && (t3 > this.duration || this.media.ended) && (yield this.pauseMedia(), this.medianIsEnd = true, this.jumpToTime(), this.ctx.eventHub.emit(By.mediaStop, { id: this.targetId })), this.currentTime.innerText = Qv.formatTime(t3), this.currentProgress.style.flex = (t3 / this.duration).toString(), !this.bookmarkList || this.bookmarkList.length === 0)
31478
+ if (this.duration > 0 && (t3 > this.duration || this.media.ended) && (yield this.pauseMedia(), this.medianIsEnd = true, this.jumpToTime(), this.ctx.eventHub.emit(Uy.mediaStop, { id: this.targetId })), this.currentTime.innerText = $v.formatTime(t3), this.currentProgress.style.flex = (t3 / this.duration).toString(), !this.bookmarkList || this.bookmarkList.length === 0)
31469
31479
  return;
31470
31480
  const e3 = this.bookmarkList[this.pickBookmarkIndex];
31471
31481
  e3 && e3.time.toFixed(0) === this.media.currentTime.toFixed(0) && (this.ctx.timingEventHub.emit(`shape ${this.shapeId} onMediaBookmark ${e3.name}`), this.pickBookmarkIndex += 1);
@@ -31476,10 +31486,20 @@ void main(void){
31476
31486
  t3();
31477
31487
  });
31478
31488
  }, this.playMediaFromCtrl = () => {
31479
- this.ctx.isPlayerPaused() ? this.ctx.logger.info("Media controller prevent play event with paused state", this.ctx.taskId) : (this.ctx.mode !== "interactive" && this.playMedia(), this.ctx.mode !== "local" && this.ctx.eventHub.emit(By.mediaPlay, { id: this.targetId, time: this.media.currentTime - this.start }));
31489
+ this.ctx.isPlayerPaused() ? this.ctx.logger.info("Media controller prevent play event with paused state", this.ctx.taskId) : (this.ctx.mode !== "interactive" && this.playMedia(), this.ctx.mode !== "local" && this.ctx.eventHub.emit(Uy.mediaPlay, { id: this.targetId, time: this.media.currentTime - this.start }));
31480
31490
  }, this.pauseMediaFromCtrl = () => {
31481
- this.ctx.isPlayerPaused() ? this.ctx.logger.info("Media controller prevent pause event with paused state", this.ctx.taskId) : (this.ctx.mode !== "interactive" && this.pauseMedia(), this.ctx.mode !== "local" && this.ctx.eventHub.emit(By.mediaPause, { id: this.targetId, time: this.media.currentTime - this.start }));
31482
- }, this.targetId = t2.targetId, this.ctx = t2.ctx, this.height = t2.height, this.width = t2.width, this.target = t2.target, this.media = t2.media, this.info = t2.info, this.shapeId = t2.shapeId, this.canvasElement = t2.canvasElement, this.getMedianContainer(), this.createMediaController(), this.info.cut && (this.start = (e2 = this.info.cut.start) !== null && e2 !== void 0 ? e2 : 0, this.end = (n2 = this.info.cut.end) !== null && n2 !== void 0 ? n2 : 0), this.info.bookmarkList && (this.bookmarkList = this.info.bookmarkList.sort((t3, e3) => t3.time - e3.time));
31491
+ this.ctx.isPlayerPaused() ? this.ctx.logger.info("Media controller prevent pause event with paused state", this.ctx.taskId) : (this.ctx.mode !== "interactive" && this.pauseMedia(), this.ctx.mode !== "local" && this.ctx.eventHub.emit(Uy.mediaPause, { id: this.targetId, time: this.media.currentTime - this.start }));
31492
+ }, this.onClickFullScreenButtonHandle = () => {
31493
+ this.media.requestFullscreen(), this.ctx.eventHub.emit(Uy.fullscreenChange, { targetId: this.targetId, state: true });
31494
+ }, this.onClickCancelFullScreenButtonHandle = () => {
31495
+ this.media.requestCancelFullscreen(), this.ctx.eventHub.emit(Uy.fullscreenChange, { targetId: this.targetId, state: false });
31496
+ }, this.onFullScreenChange = (t3) => {
31497
+ const { status: e3, targetId: n3, slideIndex: i2 } = t3;
31498
+ this.changeFullScreenState(e3, n3, i2);
31499
+ }, this.targetId = t2.targetId, this.ctx = t2.ctx, this.height = t2.height, this.width = t2.width, this.target = t2.target, this.media = t2.media, this.info = t2.info, this.shapeId = t2.shapeId, this.canvasElement = t2.canvasElement, this.media.type === "video" && (this.isVideo = true), this.getMedianContainer(), this.createMediaController(), this.info.cut && (this.start = (e2 = this.info.cut.start) !== null && e2 !== void 0 ? e2 : 0, this.end = (n2 = this.info.cut.end) !== null && n2 !== void 0 ? n2 : 0), this.info.bookmarkList && (this.bookmarkList = this.info.bookmarkList.sort((t3, e3) => t3.time - e3.time));
31500
+ }
31501
+ get clippedDuration() {
31502
+ return this.duration;
31483
31503
  }
31484
31504
  getMedianContainer() {
31485
31505
  var t2;
@@ -31502,30 +31522,48 @@ void main(void){
31502
31522
  }
31503
31523
  generatePauseButton(t2 = 20, e2 = 20) {
31504
31524
  const n2 = document.createElementNS("http://www.w3.org/2000/svg", "svg");
31505
- Kv(n2, { height: "20px" }), n2.setAttributeNS(null, "viewBox", "0 0 512 512"), n2.setAttributeNS(null, "height", t2.toString()), n2.setAttributeNS(null, "width", e2.toString());
31525
+ Qv(n2, { height: t2 + "px" }), n2.setAttributeNS(null, "viewBox", "0 0 512 512"), n2.setAttributeNS(null, "height", t2.toString()), n2.setAttributeNS(null, "width", e2.toString());
31506
31526
  const i2 = document.createElementNS("http://www.w3.org/2000/svg", "rect");
31507
31527
  i2.setAttributeNS(null, "x", "35"), i2.setAttributeNS(null, "y", "0"), i2.setAttributeNS(null, "width", "148"), i2.setAttributeNS(null, "height", "512");
31508
31528
  const r2 = i2.cloneNode(true);
31509
31529
  return r2.setAttributeNS(null, "x", "330"), n2.append(i2, r2), n2;
31510
31530
  }
31531
+ generateFullScreenButton(t2 = 20, e2 = 20) {
31532
+ const n2 = document.createElementNS("http://www.w3.org/2000/svg", "svg");
31533
+ Qv(n2, { height: t2 + "px", width: e2 + "px" }), n2.setAttributeNS(null, "width", e2.toString()), n2.setAttributeNS(null, "height", t2.toString()), n2.setAttributeNS(null, "viewBox", "0 0 1024 1024");
31534
+ const i2 = document.createElementNS("http://www.w3.org/2000/svg", "path");
31535
+ return i2.setAttributeNS(null, "d", "M918.116352 107.409408c10.186752 10.175488 10.186752 26.691584 0 36.87936L653.734912 407.038976c-10.187776 10.187776-26.703872 10.187776-36.891648 0-10.175488-10.187776-10.175488-26.703872 0.013312-36.891648l264.38144-262.73792c10.174464-10.187776 26.69056-10.200064 36.87936-0.013312L918.117376 107.409408zM878.281728 148.096l-161.155072-0.44544c-11.283456 0.279552-20.85888-8.226816-21.90336-19.458048l0-13.421568c0.318464-10.671104 8.889344-19.241984 19.560448-19.560448l187.030528 0.827392c0.1792-0.037888 0.357376-0.0768 0.523264-0.089088l9.549824-0.229376c5.005312-0.152576 9.843712 1.770496 13.372416 5.336064 3.32288 3.629056 4.9664 8.49408 4.545536 13.40928l-1.032192 9.537536c0 0.191488 0.70144 0.318464 0.70144 0.49664l-0.534528 188.279808c-0.54784 9.984-9.092096 17.637376-19.076096 17.089536-0.165888-0.012288-0.319488-0.0256-0.484352-0.037888L896.009216 329.8304c-10.379264-0.0512-18.733056-8.506368-18.681856-18.885632 0.013312-0.191488 0.013312-0.381952 0.013312-0.585728L878.281728 148.096zM105.884672 916.661248c-10.187776-10.175488-10.200064-26.691584-0.013312-36.87936 0 0 0-0.013312 0.013312-0.013312l265.19552-262.73792c10.35264-10.008576 26.86976-9.729024 36.866048 0.636928 9.766912 10.110976 9.766912 26.131456 0 36.242432L143.579136 916.661248C133.072896 926.848 116.3776 926.848 105.884672 916.661248L105.884672 916.661248zM146.533376 875.973632l161.154048 0.433152c11.283456-0.292864 20.85888 8.213504 21.891072 19.458048l0 13.38368c-0.292864 10.672128-8.876032 19.255296-19.560448 19.561472l-187.858944-0.828416c-0.165888 0.037888-0.344064 0.075776-0.509952 0.089088l-9.550848 0.229376c-5.004288 0.152576-9.831424-1.782784-13.35808-5.336064-3.323904-3.629056-4.979712-8.493056-4.54656-13.395968l1.031168-9.537536c0-0.191488-0.712704-0.330752-0.700416-0.509952l0.534528-188.278784c0.534528-9.984 9.066496-17.625088 19.050496-17.089536 0.165888 0.013312 0.330752 0.0256 0.508928 0.037888l14.212096 0c10.365952 0.0512 18.719744 8.507392 18.656256 18.873344 0 0.191488 0 0.395264-0.013312 0.598016L146.533376 875.973632zM918.116352 916.661248c10.186752-10.175488 10.200064-26.691584 0.012288-36.87936 0 0 0-0.013312-0.012288-0.013312l-264.38144-262.73792c-10.365952-10.008576-26.86976-9.729024-36.87936 0.636928-9.766912 10.110976-9.766912 26.131456 0 36.242432L881.22368 916.661248c10.186752 10.186752 26.703872 10.186752 36.891648 0.013312L918.115328 916.661248 918.116352 916.661248zM878.281728 875.973632l-161.168384 0.433152c-11.270144-0.292864-20.845568 8.213504-21.890048 19.458048l0 13.38368c0.306176 10.672128 8.889344 19.241984 19.560448 19.561472l187.030528-0.828416c0.1792 0.037888 0.357376 0.075776 0.523264 0.089088l9.549824 0.229376c5.005312 0.152576 9.843712-1.782784 13.372416-5.336064 3.32288-3.629056 4.978688-8.493056 4.545536-13.395968l-1.032192-9.537536c0-0.191488 0.70144-0.330752 0.70144-0.509952l-0.534528-188.278784c-0.54784-9.984-9.092096-17.637376-19.076096-17.089536-0.165888 0.013312-0.319488 0.0256-0.484352 0.037888L896.009216 694.19008c-10.379264 0.0512-18.733056 8.507392-18.681856 18.885632 0 0.191488 0.013312 0.381952 0.013312 0.584704L878.281728 875.973632zM105.884672 107.409408c-10.187776 10.175488-10.187776 26.691584 0 36.87936l265.19552 262.750208c10.187776 10.187776 26.691584 10.187776 36.87936 0s10.175488-26.703872-0.012288-36.891648l-264.368128-262.73792C133.072896 97.222656 116.3776 97.222656 105.884672 107.409408L105.884672 107.409408zM146.533376 148.096l161.154048-0.44544c11.283456 0.292864 20.85888-8.213504 21.891072-19.458048l0-13.421568c-0.306176-10.671104-8.889344-19.241984-19.560448-19.560448l-187.858944 0.827392c-0.165888-0.0512-0.344064-0.0768-0.509952-0.089088l-9.550848-0.229376c-5.004288-0.152576-9.831424 1.782784-13.35808 5.336064-3.323904 3.629056-4.979712 8.49408-4.54656 13.40928l1.031168 9.537536c0 0.191488-0.712704 0.318464-0.700416 0.49664l0.534528 188.279808c0.534528 9.970688 9.066496 17.624064 19.050496 17.089536 0.165888-0.012288 0.330752-0.0256 0.508928-0.037888l14.212096 0c10.365952-0.0512 18.719744-8.506368 18.656256-18.87232 0-0.191488 0-0.395264-0.013312-0.598016L146.533376 148.096z"), n2.appendChild(i2), document.body.appendChild(n2), n2;
31536
+ }
31537
+ generateExitFullScreenButton(t2 = 20, e2 = 20) {
31538
+ const n2 = document.createElementNS("http://www.w3.org/2000/svg", "svg");
31539
+ Qv(n2, { height: t2 + "px", width: e2 + "px" }), n2.setAttributeNS(null, "width", e2.toString()), n2.setAttributeNS(null, "height", t2.toString()), n2.setAttributeNS(null, "viewBox", "0 0 1024 1024");
31540
+ const i2 = document.createElementNS("http://www.w3.org/2000/svg", "path"), r2 = document.createElementNS("http://www.w3.org/2000/svg", "path");
31541
+ return i2.setAttributeNS(null, "d", "M716.8 998.4a25.6 25.6 0 0 1-25.6-25.6v-256a25.6 25.6 0 0 1 25.6-25.6h256a25.6 25.6 0 1 1 0 51.2h-230.4v230.4a25.6 25.6 0 0 1-25.6 25.6zM307.2 998.4a25.6 25.6 0 0 1-25.6-25.6v-230.4H51.2a25.6 25.6 0 1 1 0-51.2h256a25.6 25.6 0 0 1 25.6 25.6v256a25.6 25.6 0 0 1-25.6 25.6zM972.8 332.8h-256a25.6 25.6 0 0 1-25.6-25.6v-256a25.6 25.6 0 1 1 51.2 0v230.4h230.4a25.6 25.6 0 1 1 0 51.2zM307.2 332.8h-256a25.6 25.6 0 1 1 0-51.2h230.4V51.2a25.6 25.6 0 1 1 51.2 0v256a25.6 25.6 0 0 1-25.6 25.6z"), r2.setAttributeNS(null, "d", "M307.2 332.8a25.6 25.6 0 0 1-18.112-7.488L56.896 93.12a25.6 25.6 0 0 1 36.224-36.224l232.192 232.192A25.6 25.6 0 0 1 307.2 332.8zM716.8 332.8a25.6 25.6 0 0 1-18.112-43.712L930.88 56.896a25.6 25.6 0 0 1 36.224 36.224l-232.192 232.192a25.472 25.472 0 0 1-18.112 7.488zM948.992 974.592a25.6 25.6 0 0 1-18.112-7.488l-232.192-232.192a25.6 25.6 0 0 1 36.224-36.224l232.192 232.192a25.6 25.6 0 0 1-18.112 43.712zM75.008 974.592a25.6 25.6 0 0 1-18.112-43.712l232.192-232.192a25.6 25.6 0 0 1 36.224 36.224l-232.192 232.192a25.472 25.472 0 0 1-18.112 7.488z"), n2.appendChild(i2), n2.appendChild(r2), document.body.appendChild(n2), n2;
31542
+ }
31511
31543
  createButton() {
31512
- const t2 = { marginLeft: "15px", marginRight: "10px", fontSize: "0", height: "20px" };
31513
- Kv(this.playButton, Object.assign(Object.assign({}, t2), { display: "block" }));
31544
+ const t2 = { marginLeft: "15px", marginRight: "10px", fontSize: "0", height: "20px", display: "flex", justifyContent: "center", alignItems: "center" };
31545
+ Qv(this.playButton, Object.assign(Object.assign({}, t2), { display: "block" }));
31514
31546
  const e2 = this.generatePlayButton();
31515
- Kv(e2, { height: "20px" }), this.playButton.appendChild(e2), Kv(this.pauseButton, Object.assign(Object.assign({}, t2), { display: "none" }));
31547
+ Qv(e2, { height: "20px" }), this.playButton.appendChild(e2), Qv(this.pauseButton, Object.assign(Object.assign({}, t2), { display: "none" }));
31516
31548
  const n2 = this.generatePauseButton();
31517
- Kv(n2, { height: "20px" }), this.pauseButton.appendChild(n2);
31549
+ if (Qv(n2, { height: "20px" }), this.pauseButton.appendChild(n2), !this.isVideo)
31550
+ return;
31551
+ const i2 = this.generateFullScreenButton(20, 20);
31552
+ this.fullScreenButton.appendChild(i2), Qv(this.fullScreenButton, Object.assign(Object.assign({}, t2), { display: "block" }));
31553
+ const r2 = this.generateExitFullScreenButton(20, 20);
31554
+ this.exitFullScreenButton.appendChild(r2), Qv(this.exitFullScreenButton, Object.assign(Object.assign({}, t2), { display: "none" }));
31518
31555
  }
31519
31556
  createTimer() {
31520
31557
  const t2 = document.createElement("div");
31521
- Kv(t2, { width: "100px" }), this.currentTime.innerText = "00:00";
31558
+ Qv(t2, { width: "100px" }), this.currentTime.innerText = "00:00";
31522
31559
  const e2 = document.createElement("span");
31523
31560
  return e2.innerText = "/", t2.append(this.currentTime, e2, this.totalTime), t2;
31524
31561
  }
31525
31562
  createProgress() {
31526
- Kv(this.progress, { flex: "1", position: "relative", marginRight: "10px" });
31527
- const t2 = document.createElement("div");
31528
- Kv(t2, { background: "#D9D9D9", position: "relative", height: "10px", display: "flex" }), this.progress.appendChild(t2), Kv(this.currentProgress, { background: "#4F4F4F", top: "0px", left: "0", height: "10px", flex: "0" }), t2.appendChild(this.currentProgress);
31563
+ const t2 = { flex: "1", position: "relative" };
31564
+ this.isVideo || (t2.marginRight = "10px"), Qv(this.progress, t2);
31565
+ const e2 = document.createElement("div");
31566
+ Qv(e2, { background: "#D9D9D9", position: "relative", height: "10px", display: "flex" }), this.progress.appendChild(e2), Qv(this.currentProgress, { background: "#4F4F4F", top: "0px", left: "0", height: "10px", flex: "0" }), e2.appendChild(this.currentProgress);
31529
31567
  }
31530
31568
  changeBookmarkIndex(t2, e2) {
31531
31569
  if (this.bookmarkList && this.bookmarkList.length !== 0) {
@@ -31548,24 +31586,27 @@ void main(void){
31548
31586
  }
31549
31587
  }
31550
31588
  }
31551
- bindEvent() {
31552
- this.mediaController.addEventListener("mouseover", this.showController, false), this.mediaController.addEventListener("mouseout", this.onMouseOut, false), this.progress.addEventListener("mousedown", this.changeMediaProgress, false), this.playButton.addEventListener("click", this.playMediaFromCtrl, false), this.pauseButton.addEventListener("click", this.pauseMediaFromCtrl, false), this.media.on("durationchange", this.getMediaDuration, false), this.media.on("timeupdate", this.mediaTimeUpdate, false), this.media.on("pause", this.onPauseMedia, false), this.media.on("play", this.onPlayMedia, false);
31553
- }
31554
31589
  setControllerPosition() {
31555
31590
  var t2;
31556
31591
  const { target: e2 } = this, { stageWidth: n2, stageHeight: i2 } = this.ctx, r2 = e2.getGlobalPosition(), o2 = Number((t2 = this.container) === null || t2 === void 0 ? void 0 : t2.getAttribute("data-scale")), s2 = n2 * o2, a2 = 1 / o2 * (300 > s2 ? s2 / 300 : 1);
31557
- r2.y = r2.y + this.height - 50, r2.x = Math.max(r2.x, 0), r2.x = Math.min(r2.x, n2 - 300 * a2), r2.y = Math.max(r2.y, 0), r2.y = Math.min(r2.y, i2 - 50), Kv(this.mediaController, { height: "50px", borderRadius: "25px", width: "300px", flexDirection: "row", alignItems: "center", position: "absolute", left: r2.x + "px", top: r2.y + "px", display: "none", background: "#fff", zIndex: "2", border: "1px solid #ccc", transform: `scale(${a2})`, transformOrigin: "0 100%" });
31592
+ r2.y = r2.y + this.height - 50, r2.x = Math.max(r2.x, 0), r2.x = Math.min(r2.x, n2 - 300 * a2), r2.y = Math.max(r2.y, 0), r2.y = Math.min(r2.y, i2 - 50), Qv(this.mediaController, { height: "50px", borderRadius: "25px", width: "300px", flexDirection: "row", alignItems: "center", position: "absolute", left: r2.x + "px", top: r2.y + "px", display: "none", background: "#fff", zIndex: "2", border: "1px solid #ccc", transform: `scale(${a2})`, transformOrigin: "0 100%" });
31558
31593
  }
31559
31594
  createMediaController() {
31560
31595
  this.setControllerPosition(), this.createButton();
31561
31596
  const t2 = this.createTimer();
31562
- this.createProgress(), this.mediaController.append(this.playButton, this.pauseButton, t2, this.progress), this.container.appendChild(this.mediaController), this.bindEvent();
31597
+ this.createProgress(), this.mediaController.append(this.playButton, this.pauseButton, t2, this.progress), this.isVideo && this.mediaController.append(this.fullScreenButton, this.exitFullScreenButton), this.container.appendChild(this.mediaController), this.bindEvent();
31563
31598
  }
31564
31599
  addPlayCallBack(t2) {
31565
31600
  this.playCallBackList.push(t2);
31566
31601
  }
31602
+ changeFullScreenState(t2, e2, n2) {
31603
+ n2 === this.ctx.slideIndex ? t2 && this.targetId === e2 ? (this.fullScreenButton.style.display = "none", this.exitFullScreenButton.style.display = "block", this.mediaController.style.display = "flex", this.mediaController.removeEventListener("mouseout", this.onMouseOut, false)) : (this.fullScreenButton.style.display = "block", this.exitFullScreenButton.style.display = "none", this.mediaController.style.display = "none", this.mediaController.addEventListener("mouseout", this.onMouseOut, false)) : this.ctx.logger.info("Media controller prevent fullscreen event with different slide index", this.ctx.taskId);
31604
+ }
31605
+ bindEvent() {
31606
+ this.mediaController.addEventListener("mouseover", this.showController, false), this.mediaController.addEventListener("mouseout", this.onMouseOut, false), this.progress.addEventListener("mousedown", this.changeMediaProgress, false), this.playButton.addEventListener("click", this.playMediaFromCtrl, false), this.pauseButton.addEventListener("click", this.pauseMediaFromCtrl, false), this.media.on("durationchange", this.getMediaDuration, false), this.media.on("timeupdate", this.mediaTimeUpdate, false), this.media.on("pause", this.onPauseMedia, false), this.media.on("play", this.onPlayMedia, false), this.isVideo && (this.ctx.globalEventHub.on("onFullscreenChange", this.onFullScreenChange), this.fullScreenButton.addEventListener("click", this.onClickFullScreenButtonHandle, false), this.exitFullScreenButton.addEventListener("click", this.onClickCancelFullScreenButtonHandle, false));
31607
+ }
31567
31608
  unbindEvent() {
31568
- this.mediaController.removeEventListener("mouseover", this.showController, false), this.mediaController.removeEventListener("mouseout", this.onMouseOut, false), this.progress.removeEventListener("mousedown", this.changeMediaProgress, false), this.playButton.removeEventListener("click", this.playMediaFromCtrl, false), this.pauseButton.removeEventListener("click", this.pauseMediaFromCtrl, false), this.media.removeAllListeners();
31609
+ this.mediaController.removeEventListener("mouseover", this.showController, false), this.mediaController.removeEventListener("mouseout", this.onMouseOut, false), this.progress.removeEventListener("mousedown", this.changeMediaProgress, false), this.playButton.removeEventListener("click", this.playMediaFromCtrl, false), this.pauseButton.removeEventListener("click", this.pauseMediaFromCtrl, false), this.media.removeAllListeners(), this.isVideo && (this.ctx.globalEventHub.removeListener("onFullscreenChange", this.onFullScreenChange), this.fullScreenButton.removeEventListener("click", this.onClickFullScreenButtonHandle, false), this.exitFullScreenButton.removeEventListener("click", this.onClickCancelFullScreenButtonHandle, false));
31569
31610
  }
31570
31611
  show() {
31571
31612
  this.setControllerPosition(), this.mediaController.style.display = "flex";
@@ -31578,10 +31619,10 @@ void main(void){
31578
31619
  this.unbindEvent(), this.playCallBackList = [], (t2 = this.container) === null || t2 === void 0 || t2.removeChild(this.mediaController);
31579
31620
  }
31580
31621
  }
31581
- var $v = n(115);
31582
- class t_ extends Ja.a {
31622
+ var t_ = n(115);
31623
+ class e_ extends Ja.a {
31583
31624
  constructor(t2, e2) {
31584
- super(), this.isGlobalPause = false, this.lastTime = -1, this.howl = null, this.rctClient = null, this.isHowlEnd = false, this.isHowlLoadEmit = false, this.url = t2, this.runningAudio = e2, Uy.RtcAudioClazz ? (this.rctClient = new Uy.RtcAudioClazz(t2), this.rctClient.on("load", () => this.emit("load")), this.rctClient.on("pause", () => this.emit("pause")), this.rctClient.on("play", () => this.emit("play"))) : (this.howl = new $v.Howl({ src: [t2] }), this.howl.load(), this.howl.on("load", () => {
31625
+ super(), this.isGlobalPause = false, this.lastTime = -1, this.howl = null, this.rctClient = null, this.isHowlEnd = false, this.isHowlLoadEmit = false, this.url = t2, this.runningAudio = e2, ky.RtcAudioClazz ? (this.rctClient = new ky.RtcAudioClazz(t2), this.rctClient.on("load", () => this.emit("load")), this.rctClient.on("pause", () => this.emit("pause")), this.rctClient.on("play", () => this.emit("play"))) : (this.howl = new t_.Howl({ src: [t2] }), this.howl.load(), this.howl.on("load", () => {
31585
31626
  this.isHowlLoadEmit = true, this.emit("load");
31586
31627
  }), this.howl.on("pause", () => this.emit("pause")), this.howl.on("play", () => {
31587
31628
  this.isHowlLoadEmit || this.emit("load"), this.isHowlEnd = false, this.emit("play");
@@ -31633,7 +31674,7 @@ void main(void){
31633
31674
  this.rctClient ? this.rctClient.volume(t2) : this.howl && this.howl.volume(t2);
31634
31675
  }
31635
31676
  }
31636
- var e_ = function(t2, e2, n2, i2) {
31677
+ var n_ = function(t2, e2, n2, i2) {
31637
31678
  return new (n2 || (n2 = Promise))(function(r2, o2) {
31638
31679
  function s2(t3) {
31639
31680
  try {
@@ -31658,24 +31699,29 @@ void main(void){
31658
31699
  l2((i2 = i2.apply(t2, e2 || [])).next());
31659
31700
  });
31660
31701
  };
31661
- class n_ extends Ja.a {
31702
+ class i_ extends Ja.a {
31662
31703
  constructor(t2) {
31663
- var e2, n2;
31664
- super(), this.type = "video", this.sprite = new Kd(), this.isPlaying = false, this.isGlobalPause = false, this.updateVolume = (t3) => {
31665
- Uy.RtcAudioClazz ? this.rtcAudio.volume(t3) : this.videoResource.source && (this.videoResource.source.volume = t3);
31666
- }, this.id = t2.id, this.start = (e2 = t2.video.cut) === null || e2 === void 0 ? void 0 : e2.start, this.end = (n2 = t2.video.cut) === null || n2 === void 0 ? void 0 : n2.end, this.container = t2.container, this.ctx = t2.ctx, this.ctx.medias[this.id] = this;
31667
- let i2 = t2.video.src;
31668
- this.ctx.loaderDelegate && (i2 = this.ctx.loaderDelegate.redirectMedia(i2), this.ctx.logger.info(`redirect media url from ${t2.video.src} to ${i2} by delegate.`, t2.ctx.taskId)), this.videoResource = new Uh.jb(i2, { autoLoad: true, autoPlay: false, updateFPS: 30, crossorigin: true });
31669
- let r2 = t2.video.src.replace(/4$/, "3");
31670
- this.ctx.loaderDelegate && (r2 = this.ctx.loaderDelegate.redirectMedia(r2), this.ctx.logger.info(`redirect media url from ${t2.video.src.replace(/4$/, "3")} to ${r2} by delegate.`, t2.ctx.taskId)), this.rtcAudio = new t_(r2, t2.ctx.runningAudio);
31671
- const { video: o2, width: s2, height: a2, target: l2 } = t2;
31672
- this.controller = new Qv({ targetId: t2.id, shapeId: t2.shapeId, ctx: t2.ctx, width: s2, height: a2, target: l2, media: this, info: o2, canvasElement: t2.canvasElement }), this.controller.addPlayCallBack(() => {
31673
- this.sprite.width = s2, this.sprite.height = a2, this.ctx.clock.setTimeout(() => {
31704
+ var e2, n2, i2;
31705
+ super(), this.type = "video", this.sprite = new Kd(), this.isPlaying = false, this.isGlobalPause = false, this.fullscreen = false, this.url = "", this.onVideoStalled = () => {
31706
+ this.ctx.logger.warn(this.url + ", Failed to fetch data, but trying.", this.ctx.taskId);
31707
+ }, this.updateVolume = (t3) => {
31708
+ ky.RtcAudioClazz ? this.rtcAudio.volume(t3) : this.videoResource.source && (this.videoResource.source.volume = t3);
31709
+ }, this.syncFullscreenVideoState = (t3) => {
31710
+ const { targetId: e3, state: n3, slideIndex: i3 } = t3;
31711
+ i3 === this.ctx.slideIndex && e3 === this.id && (n3 ? this.requestFullscreen() : this.requestCancelFullscreen());
31712
+ }, this.id = t2.id, this.start = (e2 = t2.video.cut) === null || e2 === void 0 ? void 0 : e2.start, this.end = (n2 = t2.video.cut) === null || n2 === void 0 ? void 0 : n2.end, this.fullscreen = (i2 = t2.video.fullscreen) !== null && i2 !== void 0 && i2, this.container = t2.container, this.ctx = t2.ctx, this.ctx.medias[this.id] = this;
31713
+ let r2 = t2.video.src;
31714
+ this.ctx.loaderDelegate && (r2 = this.ctx.loaderDelegate.redirectMedia(r2), this.ctx.logger.info(`redirect media url from ${t2.video.src} to ${r2} by delegate.`, t2.ctx.taskId)), this.videoResource = new Uh.jb(r2, { autoLoad: true, autoPlay: false, updateFPS: 30, crossorigin: true }), this.videoResource.source.addEventListener("stalled", this.onVideoStalled), this.url = t2.video.src;
31715
+ let o2 = t2.video.src.replace(/4$/, "3");
31716
+ this.ctx.loaderDelegate && (o2 = this.ctx.loaderDelegate.redirectMedia(o2), this.ctx.logger.info(`redirect media url from ${t2.video.src.replace(/4$/, "3")} to ${o2} by delegate.`, t2.ctx.taskId)), this.rtcAudio = new e_(o2, t2.ctx.runningAudio);
31717
+ const { video: s2, width: a2, height: l2, target: h2 } = t2;
31718
+ this.controller = new $v({ targetId: t2.id, shapeId: t2.shapeId, ctx: t2.ctx, width: a2, height: l2, target: h2, media: this, info: s2, canvasElement: t2.canvasElement }), this.controller.addPlayCallBack(() => {
31719
+ this.sprite.width = a2, this.sprite.height = l2, this.ctx.clock.setTimeout(() => {
31674
31720
  this.sprite.visible = true;
31675
31721
  }, 50);
31676
31722
  });
31677
- const h2 = new Uh.h(null, { height: a2, width: s2 });
31678
- h2.resource = this.videoResource, this.videoResource.bind(h2), this.sprite = new Kd(), this.sprite.visible = false, this.sprite.texture = new Uh.db(h2), this.sprite.interactive = true, this.container.addChild(this.sprite), this.sprite.on("mouseover", (t3) => {
31723
+ const u2 = new Uh.h(null, { height: l2, width: a2 });
31724
+ u2.resource = this.videoResource, this.videoResource.bind(u2), this.sprite = new Kd(), this.sprite.visible = false, this.sprite.texture = new Uh.db(u2), this.sprite.interactive = true, this.container.addChild(this.sprite), this.sprite.on("mouseover", (t3) => {
31679
31725
  t3.stopPropagation(), this.controller.show();
31680
31726
  }), this.sprite.on("mouseout", (t3) => {
31681
31727
  t3.stopPropagation(), this.controller.hide();
@@ -31683,14 +31729,14 @@ void main(void){
31683
31729
  this.videoResource.source.addEventListener(t3, () => {
31684
31730
  t3 === "timeupdate" && this.isPlaying, this.emit(t3);
31685
31731
  });
31686
- }), this.ctx.activeMedia.add(this), this.ctx.volumeAdjuster.on("update", this.updateVolume);
31732
+ }), this.ctx.activeMedia.add(this), this.ctx.volumeAdjuster.on("update", this.updateVolume), this.ctx.globalEventHub.on("syncFullscreenVideoState", this.syncFullscreenVideoState);
31687
31733
  }
31688
31734
  get currentTime() {
31689
31735
  var t2, e2;
31690
31736
  return (e2 = (t2 = this.videoResource.source) === null || t2 === void 0 ? void 0 : t2.currentTime) !== null && e2 !== void 0 ? e2 : 0;
31691
31737
  }
31692
31738
  set currentTime(t2) {
31693
- Uy.RtcAudioClazz && (this.rtcAudio.currentTime = t2), this.videoResource.source && (this.videoResource.source.currentTime = t2);
31739
+ ky.RtcAudioClazz && (this.rtcAudio.currentTime = t2), this.videoResource.source && (this.videoResource.source.currentTime = t2);
31694
31740
  }
31695
31741
  get paused() {
31696
31742
  var t2, e2;
@@ -31704,6 +31750,9 @@ void main(void){
31704
31750
  var t2, e2;
31705
31751
  return (e2 = (t2 = this.videoResource.source) === null || t2 === void 0 ? void 0 : t2.duration) !== null && e2 !== void 0 ? e2 : 0;
31706
31752
  }
31753
+ get clippedDuration() {
31754
+ return this.controller.clippedDuration;
31755
+ }
31707
31756
  showController() {
31708
31757
  this.controller.show();
31709
31758
  }
@@ -31712,16 +31761,16 @@ void main(void){
31712
31761
  }
31713
31762
  play() {
31714
31763
  var t2;
31715
- return e_(this, void 0, void 0, function* () {
31764
+ return n_(this, void 0, void 0, function* () {
31716
31765
  this.isPlaying = true, this.updateVolume(this.ctx.volumeAdjuster.volume), yield this.load(), yield this.ctx.clock.waitUntil(() => {
31717
31766
  const t3 = this.videoResource.source;
31718
31767
  return !!(t3 && t3.videoWidth > 0);
31719
31768
  }, 3e3);
31720
31769
  const e2 = this.videoResource.source;
31721
- e2 && e2.videoWidth <= 0 || (Uy.RtcAudioClazz ? (this.videoResource.source.volume = 0, this.videoResource.source.muted = true, this.rtcAudio.once("play", () => {
31770
+ e2 && e2.videoWidth <= 0 || (ky.RtcAudioClazz ? (this.videoResource.source.volume = 0, this.videoResource.source.muted = true, this.rtcAudio.once("play", () => {
31722
31771
  var t3;
31723
- (t3 = this.videoResource.source) === null || t3 === void 0 || t3.play();
31724
- }), this.rtcAudio.play()) : yield (t2 = this.videoResource.source) === null || t2 === void 0 ? void 0 : t2.play());
31772
+ this.fullscreen && (this.requestFullscreen(), this.ctx.eventHub.emit(Uy.fullscreenChange, { targetId: this.id, state: true })), (t3 = this.videoResource.source) === null || t3 === void 0 || t3.play();
31773
+ }), this.rtcAudio.play()) : (this.fullscreen && (this.requestFullscreen(), this.ctx.eventHub.emit(Uy.fullscreenChange, { targetId: this.id, state: true })), yield (t2 = this.videoResource.source) === null || t2 === void 0 ? void 0 : t2.play()));
31725
31774
  });
31726
31775
  }
31727
31776
  load() {
@@ -31729,7 +31778,7 @@ void main(void){
31729
31778
  }
31730
31779
  pause() {
31731
31780
  var t2;
31732
- this.isPlaying = false, Uy.RtcAudioClazz ? (this.rtcAudio.once("pause", () => {
31781
+ this.isPlaying = false, this.ctx.logger.warn(this.url + ", pause video manual.", this.ctx.taskId), ky.RtcAudioClazz ? (this.ctx.logger.warn(this.url + ", pause rtc audio manual.", this.ctx.taskId), this.rtcAudio.once("pause", () => {
31733
31782
  var t3;
31734
31783
  (t3 = this.videoResource.source) === null || t3 === void 0 || t3.pause();
31735
31784
  }), this.rtcAudio.pause()) : (t2 = this.videoResource.source) === null || t2 === void 0 || t2.pause();
@@ -31747,14 +31796,21 @@ void main(void){
31747
31796
  this.controller.jumpToTime(t2);
31748
31797
  }
31749
31798
  stop() {
31750
- this.seek(0), this.pause();
31799
+ this.seek(0), this.pause(), this.ctx.eventHub.emit(Uy.mediaStop);
31800
+ }
31801
+ requestFullscreen() {
31802
+ const t2 = new Uh.db(this.sprite.texture.baseTexture);
31803
+ this.ctx.globalEventHub.emit("requestFullscreen", { texture: t2, index: this.ctx.slideIndex, targetId: this.id });
31804
+ }
31805
+ requestCancelFullscreen() {
31806
+ this.ctx.globalEventHub.emit("requestCancelFullscreen", { targetId: this.id, index: this.ctx.slideIndex });
31751
31807
  }
31752
31808
  destroy() {
31753
31809
  var t2;
31754
- this.ctx.volumeAdjuster.removeListener("update", this.updateVolume), this.sprite.interactive = false, this.sprite.destroy({ texture: true, baseTexture: true }), (t2 = this.videoResource) === null || t2 === void 0 || t2.destroy(), this.rtcAudio.destroy(), this.controller.destroy(), this.ctx.activeMedia.delete(this);
31810
+ this.ctx.volumeAdjuster.removeListener("update", this.updateVolume), this.ctx.globalEventHub.removeListener("syncFullscreenVideoState", this.syncFullscreenVideoState), this.sprite.interactive = false, this.sprite.destroy({ texture: true, baseTexture: true }), (t2 = this.videoResource) === null || t2 === void 0 || t2.destroy(), this.rtcAudio.destroy(), this.stop(), this.controller.destroy(), this.ctx.activeMedia.delete(this);
31755
31811
  }
31756
31812
  }
31757
- var i_ = function(t2, e2, n2, i2) {
31813
+ var r_ = function(t2, e2, n2, i2) {
31758
31814
  return new (n2 || (n2 = Promise))(function(r2, o2) {
31759
31815
  function s2(t3) {
31760
31816
  try {
@@ -31779,15 +31835,15 @@ void main(void){
31779
31835
  l2((i2 = i2.apply(t2, e2 || [])).next());
31780
31836
  });
31781
31837
  };
31782
- class r_ extends Ja.a {
31838
+ class o_ extends Ja.a {
31783
31839
  constructor(t2) {
31784
31840
  super(), this.type = "audio", this.isPlaying = false, this.isGlobalPause = false, this.updateVolume = (t3) => {
31785
31841
  this.audioPlayer.volume(t3);
31786
31842
  }, this.id = t2.id;
31787
31843
  let e2 = t2.audio.src;
31788
- /mp4$/.test(e2) && (e2 = e2.replace(/mp4$/, "mp3")), t2.ctx.loaderDelegate && (e2 = t2.ctx.loaderDelegate.redirectMedia(e2), t2.ctx.logger.info(`redirect media url from ${t2.audio.src} to ${e2} by delegate.`, t2.ctx.taskId)), this.audioPlayer = new t_(e2, t2.ctx.runningAudio), t2.audio.cut && (this.start = t2.audio.cut.start, this.end = t2.audio.cut.end), this.ctx = t2.ctx, this.ctx.medias[this.id] = this;
31844
+ /mp4$/.test(e2) && (e2 = e2.replace(/mp4$/, "mp3")), t2.ctx.loaderDelegate && (e2 = t2.ctx.loaderDelegate.redirectMedia(e2), t2.ctx.logger.info(`redirect media url from ${t2.audio.src} to ${e2} by delegate.`, t2.ctx.taskId)), this.audioPlayer = new e_(e2, t2.ctx.runningAudio), t2.audio.cut && (this.start = t2.audio.cut.start, this.end = t2.audio.cut.end), this.ctx = t2.ctx, this.ctx.medias[this.id] = this;
31789
31845
  const { width: n2, height: i2, target: r2 } = t2;
31790
- this.controller = new Qv({ targetId: t2.id, shapeId: t2.shapeId, ctx: t2.ctx, height: i2, width: n2, target: r2, media: this, info: t2.audio, canvasElement: t2.canvasElement }), this.audioPlayer.on("load", () => this.emit("durationchange")), this.audioPlayer.on("timeupdate", () => this.emit("timeupdate")), this.audioPlayer.on("pause", () => this.emit("pause")), this.audioPlayer.on("play", () => this.emit("play")), this.ctx.activeMedia.add(this), this.ctx.volumeAdjuster.on("update", this.updateVolume);
31846
+ this.controller = new $v({ targetId: t2.id, shapeId: t2.shapeId, ctx: t2.ctx, height: i2, width: n2, target: r2, media: this, info: t2.audio, canvasElement: t2.canvasElement }), this.audioPlayer.on("load", () => this.emit("durationchange")), this.audioPlayer.on("timeupdate", () => this.emit("timeupdate")), this.audioPlayer.on("pause", () => this.emit("pause")), this.audioPlayer.on("play", () => this.emit("play")), this.ctx.activeMedia.add(this), this.ctx.volumeAdjuster.on("update", this.updateVolume);
31791
31847
  }
31792
31848
  get currentTime() {
31793
31849
  return this.audioPlayer.currentTime;
@@ -31795,6 +31851,9 @@ void main(void){
31795
31851
  set currentTime(t2) {
31796
31852
  this.audioPlayer.currentTime = t2;
31797
31853
  }
31854
+ get clippedDuration() {
31855
+ return this.controller.clippedDuration;
31856
+ }
31798
31857
  get paused() {
31799
31858
  return this.audioPlayer.isPaused;
31800
31859
  }
@@ -31817,7 +31876,7 @@ void main(void){
31817
31876
  this.controller.hide();
31818
31877
  }
31819
31878
  play() {
31820
- return i_(this, void 0, void 0, function* () {
31879
+ return r_(this, void 0, void 0, function* () {
31821
31880
  this.ctx.isPlayerPaused() ? this.ctx.logger.info("Audio player prevent play event with paused state", this.ctx.taskId) : (this.updateVolume(this.ctx.volumeAdjuster.volume), this.isPlaying = true, this.audioPlayer.play());
31822
31881
  });
31823
31882
  }
@@ -31837,18 +31896,22 @@ void main(void){
31837
31896
  this.ctx.isPlayerPaused() ? this.ctx.logger.info("Audio player prevent seek event with paused state", this.ctx.taskId) : this.controller.jumpToTime(t2);
31838
31897
  }
31839
31898
  stop() {
31840
- this.seek(0), this.pause();
31899
+ this.seek(0), this.pause(), this.ctx.eventHub.emit(Uy.mediaStop);
31900
+ }
31901
+ requestFullscreen() {
31902
+ }
31903
+ requestCancelFullscreen() {
31841
31904
  }
31842
31905
  destroy() {
31843
- this.ctx.volumeAdjuster.removeListener("update", this.updateVolume), this.audioPlayer.pause(), this.controller.destroy(), this.ctx.activeMedia.delete(this);
31906
+ this.ctx.volumeAdjuster.removeListener("update", this.updateVolume), this.stop(), this.controller.destroy(), this.ctx.activeMedia.delete(this);
31844
31907
  }
31845
31908
  }
31846
- class o_ extends Zv {
31909
+ class s_ extends Jv {
31847
31910
  constructor(t2, e2, n2, i2) {
31848
- super(Object.assign(Object.assign({}, t2), { type: "Shape", useBgFill: false, textRotateWithShape: true, isPicture: true }), e2, n2, i2), this.isInteractiveOutside = false, this.cmd = new tg(this), this.media = t2 == null ? void 0 : t2.media, this.container.name = t2.id + "_container_[Picture]", this.renderContainer.name = t2.id + "_render_container_[Picture]", this.picFill = new sv(this.ctx, t2.picFill, t2.width, t2.height, { useFilter: true, useSlideBackgroundFill: false });
31911
+ super(Object.assign(Object.assign({}, t2), { type: "Shape", useBgFill: false, textRotateWithShape: true, isPicture: true }), e2, n2, i2), this.isInteractiveOutside = false, this.cmd = new eg(this), this.media = t2 == null ? void 0 : t2.media, this.container.name = t2.id + "_container_[Picture]", this.renderContainer.name = t2.id + "_render_container_[Picture]", this.picFill = new av(this.ctx, t2.picFill, t2.width, t2.height, { useFilter: true, useSlideBackgroundFill: false });
31849
31912
  }
31850
31913
  applyCommand(t2, e2) {
31851
- var n2, i2, r2, o2, s2;
31914
+ var n2, i2, r2, o2;
31852
31915
  if (e2 === "call")
31853
31916
  if (/playFrom\(([0-9.]+)\)/.test(t2)) {
31854
31917
  const e3 = t2.match(/playFrom\(([0-9.]+)\)/), i3 = Number(e3[1] || "0");
@@ -31857,7 +31920,7 @@ void main(void){
31857
31920
  (t3 = this.mediaPlayer) === null || t3 === void 0 || t3.seek(i3);
31858
31921
  });
31859
31922
  } else
31860
- t2 === "custom-pause" ? (i2 = this.mediaPlayer) === null || i2 === void 0 || i2.pause() : t2 === "togglePause" ? (r2 = this.mediaPlayer) === null || r2 === void 0 || r2.togglePause() : t2 === "stop" && ((o2 = this.mediaPlayer) === null || o2 === void 0 || o2.pause(), (s2 = this.mediaPlayer) === null || s2 === void 0 || s2.seek(0));
31923
+ t2 === "custom-pause" ? (i2 = this.mediaPlayer) === null || i2 === void 0 || i2.pause() : t2 === "togglePause" ? (r2 = this.mediaPlayer) === null || r2 === void 0 || r2.togglePause() : t2 === "stop" && ((o2 = this.mediaPlayer) === null || o2 === void 0 || o2.stop());
31861
31924
  }
31862
31925
  renderPic() {
31863
31926
  var t2, e2, n2, i2, r2, o2;
@@ -31877,12 +31940,12 @@ void main(void){
31877
31940
  }
31878
31941
  });
31879
31942
  }), this.effectContainer.addChild(s2), ((n2 = this.media) === null || n2 === void 0 ? void 0 : n2.type) === "video" && this.media.src) {
31880
- if (this.mediaPlayer = new n_({ id: this.json.id + "-video", shapeId: this.json.id, ctx: this.ctx, video: this.media, height: this.designHeight, width: this.designWidth, target: s2, container: this.effectContainer, canvasElement: this.ctx.view }), ((i2 = this.mediaPlayer) === null || i2 === void 0 ? void 0 : i2.sprite) && a2) {
31943
+ if (this.mediaPlayer = new i_({ id: this.json.id + "-video", shapeId: this.json.id, ctx: this.ctx, video: this.media, height: this.designHeight, width: this.designWidth, target: s2, container: this.effectContainer, canvasElement: this.ctx.view }), ((i2 = this.mediaPlayer) === null || i2 === void 0 ? void 0 : i2.sprite) && a2) {
31881
31944
  const t3 = (r2 = this.backgroundGraphics) === null || r2 === void 0 ? void 0 : r2.getClonedDisplayObject();
31882
31945
  t3 && (this.mediaPlayer.sprite.mask = t3, this.container.addChild(t3));
31883
31946
  }
31884
31947
  } else
31885
- ((o2 = this.media) === null || o2 === void 0 ? void 0 : o2.type) === "audio" && this.media.src && (this.mediaPlayer = new r_({ id: this.json.id + "-audio", shapeId: this.json.id, ctx: this.ctx, audio: this.media, height: this.designHeight, width: this.designWidth, target: s2, canvasElement: this.ctx.view }));
31948
+ ((o2 = this.media) === null || o2 === void 0 ? void 0 : o2.type) === "audio" && this.media.src && (this.mediaPlayer = new o_({ id: this.json.id + "-audio", shapeId: this.json.id, ctx: this.ctx, audio: this.media, height: this.designHeight, width: this.designWidth, target: s2, canvasElement: this.ctx.view }));
31886
31949
  this.mediaPlayer && (this.isInteractiveOutside = !!this.container.interactive, this.container.interactive = true, this.container.on("mouseover", () => {
31887
31950
  this.mediaPlayer.showController();
31888
31951
  }), this.container.on("mouseout", () => {
@@ -31906,7 +31969,7 @@ void main(void){
31906
31969
  this.mediaPlayer && (this.picFill.displayObject && !this.isInteractiveOutside && (this.container.interactive = false), this.mediaPlayer.destroy(), this.mediaPlayer = void 0), this.picFill.destroy();
31907
31970
  }
31908
31971
  }
31909
- var s_ = function(t2, e2, n2, i2) {
31972
+ var a_ = function(t2, e2, n2, i2) {
31910
31973
  return new (n2 || (n2 = Promise))(function(r2, o2) {
31911
31974
  function s2(t3) {
31912
31975
  try {
@@ -31931,18 +31994,18 @@ void main(void){
31931
31994
  l2((i2 = i2.apply(t2, e2 || [])).next());
31932
31995
  });
31933
31996
  };
31934
- class a_ extends lg {
31997
+ class l_ extends hg {
31935
31998
  constructor(t2, e2, n2, i2, r2) {
31936
- super(t2, e2, n2), this.children = [], this.cacheSprite = new Kd(), this.cacheContainer = new wh.b(), this.json = t2, this.json.fillStyle && this.json.fillStyle.fillType === "groupFill" && i2 && (this.json.fillStyle = i2), this.container.name = t2.id + "_container_[Container]", this.cacheContainer.name = t2.id + "_cache_container_[Container]", this.ctx.timingTargets.addTarget(t2.id, this), this.updateTransform(this.json), this.fillObject = new sv(this.ctx, t2.fillStyle, t2.width, t2.height, { useFilter: false, useSlideBackgroundFill: false }), this.createChildren(r2);
31999
+ super(t2, e2, n2), this.children = [], this.cacheSprite = new Kd(), this.cacheContainer = new wh.b(), this.json = t2, this.json.fillStyle && this.json.fillStyle.fillType === "groupFill" && i2 && (this.json.fillStyle = i2), this.container.name = t2.id + "_container_[Container]", this.cacheContainer.name = t2.id + "_cache_container_[Container]", this.ctx.timingTargets.addTarget(t2.id, this), this.updateTransform(this.json), this.fillObject = new av(this.ctx, t2.fillStyle, t2.width, t2.height, { useFilter: false, useSlideBackgroundFill: false }), this.createChildren(r2);
31937
32000
  }
31938
32001
  createChildren(t2) {
31939
32002
  var e2, n2, i2, r2;
31940
32003
  const o2 = { x: (n2 = (e2 = this.json.position) === null || e2 === void 0 ? void 0 : e2.x) !== null && n2 !== void 0 ? n2 : 0, y: (r2 = (i2 = this.json.position) === null || i2 === void 0 ? void 0 : i2.y) !== null && r2 !== void 0 ? r2 : 0 };
31941
32004
  for (let e3 = 0, n3 = this.json.children.length; e3 < n3; e3++)
31942
- t2.addSubMTask(() => s_(this, void 0, void 0, function* () {
32005
+ t2.addSubMTask(() => a_(this, void 0, void 0, function* () {
31943
32006
  const n4 = this.json.children[e3];
31944
32007
  let i3 = null;
31945
- (n4 == null ? void 0 : n4.type) === "Shape" ? i3 = new Zv(n4, this.ctx, o2, this.json.fillStyle) : (n4 == null ? void 0 : n4.type) === "Picture" ? i3 = new o_(n4, this.ctx, o2, this.json.fillStyle) : (n4 == null ? void 0 : n4.type) === "Container" && (i3 = new a_(n4, this.ctx, o2, this.json.fillStyle, t2)), i3 && this.children.push(i3);
32008
+ (n4 == null ? void 0 : n4.type) === "Shape" ? i3 = new Jv(n4, this.ctx, o2, this.json.fillStyle) : (n4 == null ? void 0 : n4.type) === "Picture" ? i3 = new s_(n4, this.ctx, o2, this.json.fillStyle) : (n4 == null ? void 0 : n4.type) === "Container" && (i3 = new l_(n4, this.ctx, o2, this.json.fillStyle, t2)), i3 && this.children.push(i3);
31946
32009
  }), "@ContainerImpl[child.init]");
31947
32010
  }
31948
32011
  get interactiveContainer() {
@@ -31953,7 +32016,7 @@ void main(void){
31953
32016
  }
31954
32017
  preRender(t2) {
31955
32018
  for (const e2 of this.children)
31956
- t2.addSubMTask(() => s_(this, void 0, void 0, function* () {
32019
+ t2.addSubMTask(() => a_(this, void 0, void 0, function* () {
31957
32020
  e2.preRender(t2);
31958
32021
  }), "@ContainerImpl[child.preRender]");
31959
32022
  }
@@ -31968,11 +32031,11 @@ void main(void){
31968
32031
  }
31969
32032
  render(t2) {
31970
32033
  for (const e2 of this.children)
31971
- e2.render(t2), t2.addSubMTask(() => s_(this, void 0, void 0, function* () {
32034
+ e2.render(t2), t2.addSubMTask(() => a_(this, void 0, void 0, function* () {
31972
32035
  var t3;
31973
32036
  this.cacheContainer.addChild(e2.renderContainer), (e2.json.hlinkHover || e2.json.hlinkClick) && ((t3 = e2.hyperlink) === null || t3 === void 0 || t3.addProxy(this.container));
31974
32037
  }), "@ContainerImpl[child.render]");
31975
- t2.addSubMTask(() => s_(this, void 0, void 0, function* () {
32038
+ t2.addSubMTask(() => a_(this, void 0, void 0, function* () {
31976
32039
  this.container.addChild(this.cacheContainer);
31977
32040
  }), "@ContainerImpl[child.append]");
31978
32041
  }
@@ -31992,7 +32055,7 @@ void main(void){
31992
32055
  this.cacheSprite && this.cacheSprite.destroy({ texture: true }), this.children.forEach((t2) => t2.destroy()), this.container.destroy({ children: true, texture: true, baseTexture: true }), this.cacheContainer.destroy({ children: true, texture: true, baseTexture: true });
31993
32056
  }
31994
32057
  }
31995
- class l_ extends Ja.a {
32058
+ class h_ extends Ja.a {
31996
32059
  constructor(t2, e2, n2, i2) {
31997
32060
  super(), this.cond = {}, this.timeoutIds = [], this.condHandle = (t3, e3 = {}) => {
31998
32061
  if (t3)
@@ -32039,7 +32102,7 @@ void main(void){
32039
32102
  }), this.timeoutIds.forEach((t2) => this.ctx.clock.clearTimeout(t2));
32040
32103
  }
32041
32104
  }
32042
- class h_ extends Ja.a {
32105
+ class u_ extends Ja.a {
32043
32106
  constructor(t2) {
32044
32107
  super(), this.isTimeNodeEndSync = false, this.interactiveListeners = [], this.runtimeNodeEventHub = new Ja.a(), this._currentSeqIndex = 0, this._currentSeqState = "idle", this.isForward = true, this.autoPlay = false, this.handlePrev = (t3 = false) => {
32045
32108
  var e3, n3, i3, r3, o3, s3;
@@ -32058,16 +32121,16 @@ void main(void){
32058
32121
  }
32059
32122
  };
32060
32123
  const { json: e2, iterateType: n2, isIterate: i2, isSub: r2, parent: o2, ctx: s2, eventHub: a2, iterateIndex: l2, iterateId: h2, isInInteractiveSeq: u2 } = t2;
32061
- this.isMainSeq = e2.ctn.nodeType === "mainSeq", this.isInteractiveSeq = e2.ctn.nodeType === "interactiveSeq", this.id = e2.ctn.id, this.isIterate = i2, this.json = e2, this.ctx = s2, this.globalEventHub = a2, this.commonTimeNode = new uy({ json: e2.ctn, isSub: r2, eventHubs: { global: a2, runtime: this.runtimeNodeEventHub }, ctx: s2, parent: o2, isIterate: false, iterateType: n2, iterateIndex: l2, iterateId: h2, isInInteractiveSeq: u2 || this.isInteractiveSeq, fromSeqId: this.isInteractiveSeq ? this.json.ctn.id : "" }), this.bindShapeEvent(), this.nextConds = new l_("mainSeq", e2.nextCondLst, { global: a2, runtime: this.runtimeNodeEventHub }, this.ctx), this.prevConds = new l_("mainSeq", e2.preCondLst, { global: a2, runtime: this.runtimeNodeEventHub }, this.ctx), this.commonTimeNode.on("timeNodeRestart", () => {
32124
+ this.isMainSeq = e2.ctn.nodeType === "mainSeq", this.isInteractiveSeq = e2.ctn.nodeType === "interactiveSeq", this.id = e2.ctn.id, this.isIterate = i2, this.json = e2, this.ctx = s2, this.globalEventHub = a2, this.commonTimeNode = new cy({ json: e2.ctn, isSub: r2, eventHubs: { global: a2, runtime: this.runtimeNodeEventHub }, ctx: s2, parent: o2, isIterate: false, iterateType: n2, iterateIndex: l2, iterateId: h2, isInInteractiveSeq: u2 || this.isInteractiveSeq, fromSeqId: this.isInteractiveSeq ? this.json.ctn.id : "" }), this.bindShapeEvent(), this.nextConds = new h_("mainSeq", e2.nextCondLst, { global: a2, runtime: this.runtimeNodeEventHub }, this.ctx), this.prevConds = new h_("mainSeq", e2.preCondLst, { global: a2, runtime: this.runtimeNodeEventHub }, this.ctx), this.commonTimeNode.on("timeNodeRestart", () => {
32062
32125
  this.currentSeqIndex = 0, this.currentSeqState = "idle";
32063
32126
  }), this.commonTimeNode.on("childTimeNodeStart", (t3) => {
32064
32127
  const e3 = this.commonTimeNode.children.findIndex((e4) => e4.commonTimeNode.uuid === t3.id);
32065
- e3 >= 0 && (this.currentSeqIndex = e3), this.currentSeqState = "running", this.isMainSeq && this.ctx.eventHub.emit(By.mainSeqStepStart, e3);
32128
+ e3 >= 0 && (this.currentSeqIndex = e3), this.currentSeqState = "running", this.isMainSeq && this.ctx.eventHub.emit(Uy.mainSeqStepStart, e3);
32066
32129
  }), this.commonTimeNode.on("childTimeNodeEnd", (t3) => {
32067
32130
  const e3 = this.commonTimeNode.children.findIndex((e4) => e4.commonTimeNode.uuid === t3.id);
32068
32131
  e3 >= 0 && (this.currentSeqIndex = e3), this.currentSeqState = "end", this.autoPlay && this.ctx.clock.setTimeout(() => {
32069
32132
  this.handleNext(false, true);
32070
- }), this.isMainSeq && this.ctx.eventHub.emit(By.mainSeqStepEnd, e3);
32133
+ }), this.isMainSeq && this.ctx.eventHub.emit(Uy.mainSeqStepEnd, e3);
32071
32134
  }), this.commonTimeNode.on("timeNodeEndSync", () => {
32072
32135
  this.isTimeNodeEndSync = true, this.commonTimeNode.resetForRepeat();
32073
32136
  }), this.commonTimeNode.on("timeNodeDestroy", () => {
@@ -32084,13 +32147,13 @@ void main(void){
32084
32147
  return this._currentSeqIndex;
32085
32148
  }
32086
32149
  set currentSeqIndex(t2) {
32087
- this._currentSeqIndex = t2, this.isMainSeq ? this.ctx.eventHub.emit(By.mainSeqStepChange, t2) : this.isInteractiveSeq && this.ctx.eventHub.emit(By.interactiveSeqStateChange, { id: this.json.ctn.id, state: { step: t2, state: this._currentSeqState } });
32150
+ this._currentSeqIndex = t2, this.isMainSeq ? this.ctx.eventHub.emit(Uy.mainSeqStepChange, t2) : this.isInteractiveSeq && this.ctx.eventHub.emit(Uy.interactiveSeqStateChange, { id: this.json.ctn.id, state: { step: t2, state: this._currentSeqState } });
32088
32151
  }
32089
32152
  get currentSeqState() {
32090
32153
  return this._currentSeqState;
32091
32154
  }
32092
32155
  set currentSeqState(t2) {
32093
- this._currentSeqState = t2, this.isMainSeq ? this.ctx.eventHub.emit(By.mainSeqStateChange, t2) : this.isInteractiveSeq && this.ctx.eventHub.emit(By.interactiveSeqStateChange, { id: this.json.ctn.id, state: { step: this._currentSeqIndex, state: t2 } });
32156
+ this._currentSeqState = t2, this.isMainSeq ? this.ctx.eventHub.emit(Uy.mainSeqStateChange, t2) : this.isInteractiveSeq && this.ctx.eventHub.emit(Uy.interactiveSeqStateChange, { id: this.json.ctn.id, state: { step: this._currentSeqIndex, state: t2 } });
32094
32157
  }
32095
32158
  get stepLength() {
32096
32159
  return this.commonTimeNode.children.length;
@@ -32128,9 +32191,9 @@ void main(void){
32128
32191
  if (t3) {
32129
32192
  t3.interactiveContainer.interactive = true, t3.interactiveContainer.cursor = "pointer";
32130
32193
  const n2 = () => {
32131
- this.ctx.eventHub.emit(By.userInput);
32194
+ this.ctx.eventHub.emit(Uy.userInput);
32132
32195
  const t4 = `shape ${e2} onClick`, { mode: n3 } = this.ctx;
32133
- n3 !== "interactive" && n3 !== "sync" || this.ctx.eventHub.emit(By.interactiveSeqAction, { action: t4, seqId: this.json.ctn.id }), n3 !== "sync" && n3 !== "local" || this.globalEventHub.emit(t4);
32196
+ n3 !== "interactive" && n3 !== "sync" || this.ctx.eventHub.emit(Uy.interactiveSeqAction, { action: t4, seqId: this.json.ctn.id }), n3 !== "sync" && n3 !== "local" || this.globalEventHub.emit(t4);
32134
32197
  };
32135
32198
  t3.interactiveContainer.on("pointerdown", n2), this.interactiveListeners.push([t3, n2]);
32136
32199
  }
@@ -32154,7 +32217,7 @@ void main(void){
32154
32217
  }
32155
32218
  }
32156
32219
  }
32157
- function u_(t2, e2, n2) {
32220
+ function c_(t2, e2, n2) {
32158
32221
  const i2 = e2.split(".");
32159
32222
  i2.reduce((r2, o2, s2) => {
32160
32223
  if (r2)
@@ -32162,7 +32225,7 @@ void main(void){
32162
32225
  console.warn(`${t2} not support ${e2}`);
32163
32226
  }, t2);
32164
32227
  }
32165
- function c_(t2, e2) {
32228
+ function d_(t2, e2) {
32166
32229
  if (!e2)
32167
32230
  return null;
32168
32231
  return e2.split(".").reduce((n2, i2) => {
@@ -32171,7 +32234,7 @@ void main(void){
32171
32234
  console.warn(`${t2} not support ${e2}`);
32172
32235
  }, t2);
32173
32236
  }
32174
- class d_ {
32237
+ class p_ {
32175
32238
  constructor(t2) {
32176
32239
  this.timingTarget = null, this.runtimeNodeEventHub = new Ja.a(), this.basicOnTimeNodeEnd = () => {
32177
32240
  if (this.isConflict) {
@@ -32189,29 +32252,29 @@ void main(void){
32189
32252
  }
32190
32253
  };
32191
32254
  const { isIterate: e2, isSub: n2, json: i2, ctx: r2, parent: o2, eventHub: s2, iterateType: a2, iterateIndex: l2, iterateId: h2, isInInteractiveSeq: u2, fromSeqId: c2 } = t2;
32192
- this.json = i2, this.id = i2.cBhvr.ctn.id, this.ctx = r2, this.globalEventHub = s2, this.commonTimeNode = new uy({ json: i2.cBhvr.ctn, isSub: n2, eventHubs: { global: s2, runtime: this.runtimeNodeEventHub }, ctx: r2, parent: o2, isIterate: e2, iterateType: a2, iterateIndex: l2, iterateId: h2, isInInteractiveSeq: u2, fromSeqId: c2 }), this.timingTarget = this.ctx.timingTargets.getTarget(i2.cBhvr.target, e2, { type: a2, index: l2, id: h2 }), this.commonTimeNode.on("seekToStart", () => this.onSeekToStart()), this.commonTimeNode.on("seekToEnd", () => this.onSeekToEnd()), this.commonTimeNode.on("timelineStart", this.basicOnTimeLineStart), this.commonTimeNode.on("timeNodeEnd", this.basicOnTimeNodeEnd);
32255
+ this.json = i2, this.id = i2.cBhvr.ctn.id, this.ctx = r2, this.globalEventHub = s2, this.commonTimeNode = new cy({ json: i2.cBhvr.ctn, isSub: n2, eventHubs: { global: s2, runtime: this.runtimeNodeEventHub }, ctx: r2, parent: o2, isIterate: e2, iterateType: a2, iterateIndex: l2, iterateId: h2, isInInteractiveSeq: u2, fromSeqId: c2 }), this.timingTarget = this.ctx.timingTargets.getTarget(i2.cBhvr.target, e2, { type: a2, index: l2, id: h2 }), this.commonTimeNode.on("seekToStart", () => this.onSeekToStart()), this.commonTimeNode.on("seekToEnd", () => this.onSeekToEnd()), this.commonTimeNode.on("timelineStart", this.basicOnTimeLineStart), this.commonTimeNode.on("timeNodeEnd", this.basicOnTimeNodeEnd);
32193
32256
  }
32194
32257
  getTargetId(t2) {
32195
32258
  let e2 = t2.id;
32196
32259
  return t2.type === "shape" && t2.txEl && (e2 = `${e2}-txEl-${t2.txEl.range[0]}`), this.commonTimeNode.isIterate && (e2 = `${e2}-iterate-${this.commonTimeNode.iterateIndex}`), e2;
32197
32260
  }
32198
32261
  }
32199
- class p_ extends d_ {
32262
+ class f_ extends p_ {
32200
32263
  constructor(t2) {
32201
32264
  super(t2), this.isConflict = false, this.activeWhenConflict = "next", this.startVal = null, this.updateStartValue = () => {
32202
- this.timingTarget && (this.startVal = c_(this.timingTarget, this.json.cBhvr.attrList[0]));
32265
+ this.timingTarget && (this.startVal = d_(this.timingTarget, this.json.cBhvr.attrList[0]));
32203
32266
  }, this.onSeekToStart = () => {
32204
32267
  const t3 = this.json.cBhvr.attrList[0];
32205
- this.startVal !== null && this.timingTarget && u_(this.timingTarget, t3, this.startVal);
32268
+ this.startVal !== null && this.timingTarget && c_(this.timingTarget, t3, this.startVal);
32206
32269
  }, this.onSeekToEnd = () => {
32207
32270
  const t3 = this.json.cBhvr.attrList[0], e2 = this.json.cBhvr.to || this.json.to;
32208
- e2 && this.timingTarget && u_(this.timingTarget, t3, e2);
32271
+ e2 && this.timingTarget && c_(this.timingTarget, t3, e2);
32209
32272
  }, this.commonTimeNode.on("timeNodeStart", this.updateStartValue), this.commonTimeNode.on("timeNodeCreate", this.updateStartValue), this.commonTimeNode.on("timeUpdate", ({ duration: t3, delta: e2 }) => {
32210
32273
  if (e2 / t3 >= 1) {
32211
32274
  const t4 = this.json.cBhvr.attrList[0];
32212
32275
  this.json.cBhvr.attrList.length > 1 && console.warn("this.json.cBhvr.attrList.length > 0");
32213
32276
  const e3 = this.json.cBhvr.to || this.json.to;
32214
- e3 && this.timingTarget && u_(this.timingTarget, t4, e3);
32277
+ e3 && this.timingTarget && c_(this.timingTarget, t4, e3);
32215
32278
  }
32216
32279
  });
32217
32280
  }
@@ -32219,7 +32282,7 @@ void main(void){
32219
32282
  return this.json.cBhvr.attrList[0];
32220
32283
  }
32221
32284
  }
32222
- var f_ = function(t2, e2, n2, i2) {
32285
+ var m_ = function(t2, e2, n2, i2) {
32223
32286
  var r2, o2 = arguments.length, s2 = o2 < 3 ? e2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(e2, n2) : i2;
32224
32287
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
32225
32288
  s2 = Reflect.decorate(t2, e2, n2, i2);
@@ -32228,7 +32291,7 @@ void main(void){
32228
32291
  (r2 = t2[a2]) && (s2 = (o2 < 3 ? r2(s2) : o2 > 3 ? r2(e2, n2, s2) : r2(e2, n2)) || s2);
32229
32292
  return o2 > 3 && s2 && Object.defineProperty(e2, n2, s2), s2;
32230
32293
  };
32231
- class m_ {
32294
+ class g_ {
32232
32295
  constructor(t2, e2) {
32233
32296
  this.math = { pi: Math.PI, e: Math.E, abs: Math.abs, acos: Math.acos, asin: Math.asin, atan: Math.atan, ceil: Math.ceil, cos: Math.cos, cosh: Math.cosh, deg: (t3) => t3 / Math.PI * 180, exp: Math.exp, floor: Math.floor, ln: Math.log, max: Math.max, min: Math.min, rad: (t3) => t3 / 180 * Math.PI, rand: Math.random, sin: Math.sin, sinh: Math.sinh, sqrt: Math.sqrt, tan: Math.tan, tanh: Math.tanh }, this.timingTarget = e2, this.val = t2.val.value, this.time = t2.time, t2.fmla && (this.fmla = this.parseFmla(t2.fmla));
32234
32297
  }
@@ -32240,7 +32303,7 @@ void main(void){
32240
32303
  }), new Function("vars", "math", "$", "return " + e2);
32241
32304
  }
32242
32305
  }
32243
- class g_ extends m_ {
32306
+ class v_ extends g_ {
32244
32307
  constructor(t2, e2, n2) {
32245
32308
  super(t2, e2), this.value = t2.val.value, n2 && (this.fmla = this.parseFmla(n2));
32246
32309
  }
@@ -32252,8 +32315,8 @@ void main(void){
32252
32315
  return t2.fmla ? t2.fmla(n2, this.math, r2) : r2;
32253
32316
  }
32254
32317
  }
32255
- f_([Em()], g_.prototype, "interpolationFrom", null);
32256
- class v_ extends m_ {
32318
+ m_([Em()], v_.prototype, "interpolationFrom", null);
32319
+ class __ extends g_ {
32257
32320
  constructor(t2, e2) {
32258
32321
  var n2;
32259
32322
  super(t2, e2), this.value = (n2 = t2.val) === null || n2 === void 0 ? void 0 : n2.value;
@@ -32266,8 +32329,8 @@ void main(void){
32266
32329
  return this.value || "";
32267
32330
  }
32268
32331
  }
32269
- f_([Em()], v_.prototype, "interpolationFrom", null);
32270
- class __ extends m_ {
32332
+ m_([Em()], __.prototype, "interpolationFrom", null);
32333
+ class y_ extends g_ {
32271
32334
  constructor(t2, e2) {
32272
32335
  super(t2, e2), this.fn = this.parseFmla(this.val);
32273
32336
  }
@@ -32279,23 +32342,23 @@ void main(void){
32279
32342
  return t2.fmla ? t2.fmla(n2, this.math, r2) : r2;
32280
32343
  }
32281
32344
  }
32282
- f_([Em()], __.prototype, "interpolationFrom", null);
32283
- class y_ extends m_ {
32345
+ m_([Em()], y_.prototype, "interpolationFrom", null);
32346
+ class x_ extends g_ {
32284
32347
  constructor(t2, e2) {
32285
32348
  super(t2, e2), this.value = t2.val.value;
32286
32349
  }
32287
32350
  interpolationFrom(t2, e2) {
32288
- return gg(t2.resolveValue(), this.value, e2);
32351
+ return vg(t2.resolveValue(), this.value, e2);
32289
32352
  }
32290
32353
  resolveValue() {
32291
32354
  return this.value;
32292
32355
  }
32293
32356
  }
32294
- f_([Em()], y_.prototype, "interpolationFrom", null);
32295
- class x_ extends d_ {
32357
+ m_([Em()], x_.prototype, "interpolationFrom", null);
32358
+ class b_ extends p_ {
32296
32359
  constructor(t2) {
32297
32360
  super(t2), this.isConflict = true, this.activeWhenConflict = "next", this.startVal = null, this.vars = { ppt_x: 0, ppt_y: 0, ppt_w: 0, ppt_h: 0 }, this.keyFrames = [], this.isColorAnim = false, this.onTimeNodeStart = () => {
32298
- this.timingTarget && (this.startVal = c_(this.timingTarget, this.json.cBhvr.attrList[0]));
32361
+ this.timingTarget && (this.startVal = d_(this.timingTarget, this.json.cBhvr.attrList[0]));
32299
32362
  }, this.updateVars = () => {
32300
32363
  var t3, e2, n2, i2;
32301
32364
  ((t3 = this.timingTarget) === null || t3 === void 0 ? void 0 : t3.ppt_h) && (this.vars.ppt_h = this.timingTarget.ppt_h), ((e2 = this.timingTarget) === null || e2 === void 0 ? void 0 : e2.ppt_w) && (this.vars.ppt_w = this.timingTarget.ppt_w), ((n2 = this.timingTarget) === null || n2 === void 0 ? void 0 : n2.ppt_x) && (this.vars.ppt_x = this.timingTarget.ppt_x), ((i2 = this.timingTarget) === null || i2 === void 0 ? void 0 : i2.ppt_y) && (this.vars.ppt_y = this.timingTarget.ppt_y), this.isColorAnim;
@@ -32303,12 +32366,12 @@ void main(void){
32303
32366
  const n2 = e2 / t3, i2 = this.keyFrames.findIndex((t4) => n2 <= t4[0]), { attrList: r2 } = this.json.cBhvr;
32304
32367
  if (i2 < 0) {
32305
32368
  const t4 = this.keyFrames[this.keyFrames.length - 1];
32306
- return void (this.timingTarget && r2 && r2[0] && u_(this.timingTarget, r2[0], t4[1].resolveValue(this.vars)));
32369
+ return void (this.timingTarget && r2 && r2[0] && c_(this.timingTarget, r2[0], t4[1].resolveValue(this.vars)));
32307
32370
  }
32308
32371
  const o2 = i2 - 1, s2 = this.keyFrames[i2], a2 = this.keyFrames[o2] || s2, l2 = s2[0] - a2[0] == 0 ? 1 : (n2 - a2[0]) / (s2[0] - a2[0]), h2 = s2[1].interpolationFrom(a2[1], l2, this.vars);
32309
- this.timingTarget && r2 && r2[0] && u_(this.timingTarget, r2[0], h2);
32372
+ this.timingTarget && r2 && r2[0] && c_(this.timingTarget, r2[0], h2);
32310
32373
  }, this.onSeekToStart = () => {
32311
- this.startVal !== null && this.timingTarget && u_(this.timingTarget, this.json.cBhvr.attrList[0], this.startVal);
32374
+ this.startVal !== null && this.timingTarget && c_(this.timingTarget, this.json.cBhvr.attrList[0], this.startVal);
32312
32375
  }, this.onSeekToEnd = () => {
32313
32376
  this.onTimeUpdate({ duration: 1, delta: 1, isReverse: false });
32314
32377
  }, this.initKeyFrames(), this.commonTimeNode.on("timeUpdate", this.onTimeUpdate), this.commonTimeNode.on("timelineStart", this.updateVars), this.commonTimeNode.on("timeNodeStart", this.onTimeNodeStart), this.commonTimeNode.on("timeNodeCreate", this.onTimeNodeStart);
@@ -32324,24 +32387,24 @@ void main(void){
32324
32387
  if (this.json.from || this.startVal) {
32325
32388
  const t4 = { time: 0, val: { type: "string", value: this.json.from || this.startVal.toString() }, fmla: "" };
32326
32389
  if (e2 === "num" && this.timingTarget) {
32327
- const e3 = new __(t4, this.timingTarget);
32390
+ const e3 = new y_(t4, this.timingTarget);
32328
32391
  this.keyFrames.push([t4.time, e3]);
32329
32392
  }
32330
32393
  }
32331
32394
  const t3 = { time: 1, val: { type: "string", value: this.json.to }, fmla: "" };
32332
32395
  if (e2 === "num" && this.timingTarget) {
32333
- const e3 = new __(t3, this.timingTarget);
32396
+ const e3 = new y_(t3, this.timingTarget);
32334
32397
  this.keyFrames.push([t3.time, e3]);
32335
32398
  }
32336
32399
  } else if (this.json.by) {
32337
32400
  const n2 = { time: 0, val: { type: "string", value: this.json.cBhvr.attrList[0] }, fmla: "" };
32338
32401
  if (e2 === "num" && this.timingTarget) {
32339
- const t3 = new __(n2, this.timingTarget);
32402
+ const t3 = new y_(n2, this.timingTarget);
32340
32403
  this.keyFrames.push([n2.time, t3]);
32341
32404
  }
32342
32405
  const i2 = { time: 1, val: { type: "string", value: (((t2 = n2.val) === null || t2 === void 0 ? void 0 : t2.value) || "") + "+" + this.json.by }, fmla: "" };
32343
32406
  if (e2 === "num" && this.timingTarget) {
32344
- const t3 = new __(i2, this.timingTarget);
32407
+ const t3 = new y_(i2, this.timingTarget);
32345
32408
  this.keyFrames.push([i2.time, t3]);
32346
32409
  }
32347
32410
  }
@@ -32350,12 +32413,12 @@ void main(void){
32350
32413
  for (const t3 of this.json.tavLst)
32351
32414
  if (t3.val && this.timingTarget) {
32352
32415
  let n2 = null;
32353
- t3.val.type === "string" ? e2 === "num" ? n2 = new __(t3, this.timingTarget) : e2 === "str" && (n2 = new v_(t3, this.timingTarget)) : t3.val.type === "number" ? n2 = new g_(t3, this.timingTarget) : t3.val.type === "color" ? (this.isColorAnim = true, n2 = new y_(t3, this.timingTarget)) : t3.val.type === "boolean" && console.warn("not implements"), n2 && this.keyFrames.push([t3.time, n2]);
32416
+ t3.val.type === "string" ? e2 === "num" ? n2 = new y_(t3, this.timingTarget) : e2 === "str" && (n2 = new __(t3, this.timingTarget)) : t3.val.type === "number" ? n2 = new v_(t3, this.timingTarget) : t3.val.type === "color" ? (this.isColorAnim = true, n2 = new x_(t3, this.timingTarget)) : t3.val.type === "boolean" && console.warn("not implements"), n2 && this.keyFrames.push([t3.time, n2]);
32354
32417
  }
32355
32418
  }
32356
32419
  }
32357
32420
  }
32358
- class b_ extends Uh.u {
32421
+ class T_ extends Uh.u {
32359
32422
  constructor(t2, e2, n2) {
32360
32423
  super(t2, e2, n2);
32361
32424
  }
@@ -32366,89 +32429,89 @@ void main(void){
32366
32429
  this.uniforms.transition = t2;
32367
32430
  }
32368
32431
  }
32369
- var T_ = n(116), E_ = n.n(T_), S_ = n(117), w_ = n.n(S_);
32370
- var A_ = n(118), M_ = n.n(A_);
32371
- var R_ = n(119), C_ = n.n(R_), P_ = n(9), I_ = n.n(P_);
32372
- var O_ = n(120), N_ = n.n(O_);
32373
- var L_ = n(121), D_ = n.n(L_);
32374
- const F_ = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAAAXNSR0IB2cksfwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAr5QTFRFAAAATwAAOQAAZgAAKwAAPAAAPQAA7AAA/wAA/QAAugAA5QAAsQAAwQAAsAAAfwAAawAASQAAZAAAOAAAJwAALAAALQAAqQAAiwAAmgAA5AAA7QAAtQAAhQAALwAAfAAAXwAAYQAAigAAuQAAfgAAswAAcgAArQAAqgAAZwAAaQAAMgAAGAAAiAAAjwAA1gAA6QAA+wAA7wAA2AAAbQAA2gAA3QAAuwAA3wAA2QAAxQAA0QAAzwAA0gAAXQAAYAAADAAADwAAGQAALgAAjgAAcAAAzQAAwgAA+gAA3AAAGwAAoAAAowAAcQAAVwAA1QAAIQAAWQAA5wAAsgAAuAAASwAAbwAARwAAMAAAnAAAUQAAaAAA9wAA4gAAPwAAbAAAOwAAlwAA0wAAjQAAvAAAwwAAkwAAQQAAvgAAnwAAvQAA0AAA2wAAwAAAWwAATQAACwAABwAAQgAAtgAAgwAAvwAAgQAAlgAAEAAAxgAAtwAAmAAARgAAjAAAdwAAqwAArwAAywAAYgAACAAAmwAAHwAApQAA8QAAdAAA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ofshihnLQd4CU5ABpVcMX/5Hg39Jm55k+hgxugBCGIR5KmY+qz6US5/wKYimBbjTOSBlyD9OiYpWxtoLH6PcoaUdK0dW4vKR121dfMwumvgSBf8g0fsVN0w8jbplh7Df1FVC9wZuTbZStSswGJu6IngHRvBgOFag8F3hwPVNuUYjxNngNURuMvnnOvway+3l+1sK7aILbzdSzAxUCtG9/CaaHsBFIVzMWEH7upNL6Hr6P+oI4i+VqT6NyQrYUMkRXYd2P1ZjEMDaJ1rrurxTBgTfMw9cZe8SHIAz0JA7jpgDmr+InVbg0HrkFNZVhQ2uBKn75tLEZwfMp2azBhkglsAXDPx2BccwTDGmnsjRDh2jHh9ynTQY4vLqcuv/NWRlP8sFHWyxSmm38ikF1UoTywoZL0oFE4I4ujqIcvCuo+0ABPohIMdyq8EqgTcogXcYNCGdgvytDCA/fwt2eG78+OAANOgmKkOI8WdjE3FaFdqW6rx/oOBunJoqMLOwnPtv67Cw7PY8c4jFvek2G/hk1Thivu5Pf2iV8YDA8DyziBPz6MKlF9XQlRt7ZRV09nZrygwo00ME7IpFuOiEsUrd14UcCvNC/DPkbFmqB1uQIg477mFiq2niVADUYnvdjiQPNpFfMTo4yg4X+tDW3rmH2WE9E2rY0ES40wM6QRwaQL5/fepJULkj3Zc6L1ItuWmO6zXbvou399GBCPcQwB2+rRpubsw03qWL2iRyHH9Afl/YHuFYa8v7zEXDEigXJo9RAtTM4BTzElQhSgePv55AmHTo4W9v4SmkPDlLIhOpcXBK4GO2AnyzeN0MaKP7umX9bZAfc5LA84bxj3frYCxezbP9KG7QeJzevIhiAU4p/j+y2OyMV2mxNgAAAABJRU5ErkJggg==";
32375
- var B_ = n(122), U_ = n.n(B_);
32376
- var k_ = n(123), G_ = n.n(k_);
32377
- var H_ = n(124), j_ = n.n(H_);
32378
- var z_ = n(125), V_ = n.n(z_);
32379
- var X_ = n(126), W_ = n.n(X_);
32380
- var Y_ = n(127), q_ = n.n(Y_);
32381
- var Z_ = n(128), J_ = n.n(Z_);
32382
- var K_ = n(129), Q_ = n.n(K_);
32383
- var $_ = n(130), ty = n.n($_);
32384
- const ey = { wipe: class extends b_ {
32432
+ var E_ = n(116), S_ = n.n(E_), w_ = n(117), A_ = n.n(w_);
32433
+ var M_ = n(118), R_ = n.n(M_);
32434
+ var C_ = n(119), P_ = n.n(C_), I_ = n(9), O_ = n.n(I_);
32435
+ var N_ = n(120), L_ = n.n(N_);
32436
+ var D_ = n(121), F_ = n.n(D_);
32437
+ const B_ = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAAAXNSR0IB2cksfwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAr5QTFRFAAAATwAAOQAAZgAAKwAAPAAAPQAA7AAA/wAA/QAAugAA5QAAsQAAwQAAsAAAfwAAawAASQAAZAAAOAAAJwAALAAALQAAqQAAiwAAmgAA5AAA7QAAtQAAhQAALwAAfAAAXwAAYQAAigAAuQAAfgAAswAAcgAArQAAqgAAZwAAaQAAMgAAGAAAiAAAjwAA1gAA6QAA+wAA7wAA2AAAbQAA2gAA3QAAuwAA3wAA2QAAxQAA0QAAzwAA0gAAXQAAYAAADAAADwAAGQAALgAAjgAAcAAAzQAAwgAA+gAA3AAAGwAAoAAAowAAcQAAVwAA1QAAIQAAWQAA5wAAsgAAuAAASwAAbwAARwAAMAAAnAAAUQAAaAAA9wAA4gAAPwAAbAAAOwAAlwAA0wAAjQAAvAAAwwAAkwAAQQAAvgAAnwAAvQAA0AAA2wAAwAAAWwAATQAACwAABwAAQgAAtgAAgwAAvwAAgQAAlgAAEAAAxgAAtwAAmAAARgAAjAAAdwAAqwAArwAAywAAYgAACAAAmwAAHwAApQAA8QAAdAAAbgAAFgAAgAAAogAAewAAXgAA6AAA9gAA/AAAzgAA3gAAkgAAngAAdQAARAAAmQAATgAAUgAAJQAAIgAAqAAARQAAPgAAxwAACQAAAgAAMQAAiQAAhwAA4AAAUAAABQAAeQAAygAA9AAAFQAAVQAAyAAANQA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Fag8F3hwPVNuUYjxNngNURuMvnnOvway+3l+1sK7aILbzdSzAxUCtG9/CaaHsBFIVzMWEH7upNL6Hr6P+oI4i+VqT6NyQrYUMkRXYd2P1ZjEMDaJ1rrurxTBgTfMw9cZe8SHIAz0JA7jpgDmr+InVbg0HrkFNZVhQ2uBKn75tLEZwfMp2azBhkglsAXDPx2BccwTDGmnsjRDh2jHh9ynTQY4vLqcuv/NWRlP8sFHWyxSmm38ikF1UoTywoZL0oFE4I4ujqIcvCuo+0ABPohIMdyq8EqgTcogXcYNCGdgvytDCA/fwt2eG78+OAANOgmKkOI8WdjE3FaFdqW6rx/oOBunJoqMLOwnPtv67Cw7PY8c4jFvek2G/hk1Thivu5Pf2iV8YDA8DyziBPz6MKlF9XQlRt7ZRV09nZrygwo00ME7IpFuOiEsUrd14UcCvNC/DPkbFmqB1uQIg477mFiq2niVADUYnvdjiQPNpFfMTo4yg4X+tDW3rmH2WE9E2rY0ES40wM6QRwaQL5/fepJULkj3Zc6L1ItuWmO6zXbvou399GBCPcQwB2+rRpubsw03qWL2iRyHH9Afl/YHuFYa8v7zEXDEigXJo9RAtTM4BTzElQhSgePv55AmHTo4W9v4SmkPDlLIhOpcXBK4GO2AnyzeN0MaKP7umX9bZAfc5LA84bxj3frYCxezbP9KG7QeJzevIhiAU4p/j+y2OyMV2mxNgAAAABJRU5ErkJggg==";
32438
+ var U_ = n(122), k_ = n.n(U_);
32439
+ var G_ = n(123), H_ = n.n(G_);
32440
+ var j_ = n(124), z_ = n.n(j_);
32441
+ var V_ = n(125), X_ = n.n(V_);
32442
+ var W_ = n(126), Y_ = n.n(W_);
32443
+ var q_ = n(127), Z_ = n.n(q_);
32444
+ var J_ = n(128), K_ = n.n(J_);
32445
+ var Q_ = n(129), $_ = n.n(Q_);
32446
+ var ty = n(130), ey = n.n(ty);
32447
+ const ny = { wipe: class extends T_ {
32385
32448
  constructor(t2) {
32386
- super(w_.a, E_.a, { percent: 0, direction: 1, transition: 0 });
32449
+ super(A_.a, S_.a, { percent: 0, direction: 1, transition: 0 });
32387
32450
  let e2 = 1;
32388
32451
  t2 === "up" ? e2 = 1 : t2 === "down" ? e2 = 2 : t2 === "left" ? e2 = 3 : t2 === "right" && (e2 = 4), this.uniforms.direction = e2;
32389
32452
  }
32390
- }, fade: class extends b_ {
32453
+ }, fade: class extends T_ {
32391
32454
  constructor(t2) {
32392
- super(void 0, M_.a, { percent: 0, transition: 1 });
32455
+ super(void 0, R_.a, { percent: 0, transition: 1 });
32393
32456
  let e2 = 1;
32394
32457
  t2 === "out" ? e2 = -1 : t2 === "in" && (e2 = 1), this.uniforms.transition = Math.pow(e2, e2);
32395
32458
  }
32396
- }, blinds: class extends b_ {
32459
+ }, blinds: class extends T_ {
32397
32460
  constructor(t2) {
32398
- super(I_.a, C_.a, { percent: 0, transition: 1, rect: new Float32Array([0, 0, 0, 0]) }), this.uniforms.option = t2 === "vertical" ? 1 : 0;
32461
+ super(O_.a, P_.a, { percent: 0, transition: 1, rect: new Float32Array([0, 0, 0, 0]) }), this.uniforms.option = t2 === "vertical" ? 1 : 0;
32399
32462
  }
32400
- }, checkerboard: class extends b_ {
32463
+ }, checkerboard: class extends T_ {
32401
32464
  constructor(t2) {
32402
- super(I_.a, N_.a, { percent: 0, transition: 1, rect: new Float32Array([0, 0, 0, 0]) }), this.uniforms.option = t2 === "down" ? 1 : 0;
32465
+ super(O_.a, L_.a, { percent: 0, transition: 1, rect: new Float32Array([0, 0, 0, 0]) }), this.uniforms.option = t2 === "down" ? 1 : 0;
32403
32466
  }
32404
- }, dissolve: class extends b_ {
32467
+ }, dissolve: class extends T_ {
32405
32468
  constructor(t2) {
32406
- super(I_.a, D_.a, { percent: 0, transition: 1, rect: new Float32Array([0, 0, 0, 0]) }), this.setTextTure();
32469
+ super(O_.a, F_.a, { percent: 0, transition: 1, rect: new Float32Array([0, 0, 0, 0]) }), this.setTextTure();
32407
32470
  }
32408
32471
  setTextTure() {
32409
- this.uniforms.dissolveSampler = Uh.db.from(F_);
32472
+ this.uniforms.dissolveSampler = Uh.db.from(B_);
32410
32473
  }
32411
- }, randombar: class extends b_ {
32474
+ }, randombar: class extends T_ {
32412
32475
  constructor(t2) {
32413
- super(I_.a, U_.a, { percent: 0, transition: 1, rect: new Float32Array([0, 0, 0, 0]) }), this.uniforms.option = t2 === "vertical" ? 1 : 0, this.setTextTure();
32476
+ super(O_.a, k_.a, { percent: 0, transition: 1, rect: new Float32Array([0, 0, 0, 0]) }), this.uniforms.option = t2 === "vertical" ? 1 : 0, this.setTextTure();
32414
32477
  }
32415
32478
  setTextTure() {
32416
- this.uniforms.dissolveSampler = Uh.db.from(F_);
32479
+ this.uniforms.dissolveSampler = Uh.db.from(B_);
32417
32480
  }
32418
- }, circle: class extends b_ {
32481
+ }, circle: class extends T_ {
32419
32482
  constructor(t2) {
32420
- super(I_.a, G_.a, { percent: 0, transition: 1, rect: new Float32Array([0, 0, 0, 0]) }), this.uniforms.option = t2 === "out" ? 1 : 0;
32483
+ super(O_.a, H_.a, { percent: 0, transition: 1, rect: new Float32Array([0, 0, 0, 0]) }), this.uniforms.option = t2 === "out" ? 1 : 0;
32421
32484
  }
32422
- }, box: class extends b_ {
32485
+ }, box: class extends T_ {
32423
32486
  constructor(t2) {
32424
- super(I_.a, j_.a, { percent: 0, transition: 1, rect: new Float32Array([0, 0, 0, 0]) }), this.uniforms.option = t2 === "out" ? 1 : 0;
32487
+ super(O_.a, z_.a, { percent: 0, transition: 1, rect: new Float32Array([0, 0, 0, 0]) }), this.uniforms.option = t2 === "out" ? 1 : 0;
32425
32488
  }
32426
- }, diamond: class extends b_ {
32489
+ }, diamond: class extends T_ {
32427
32490
  constructor(t2) {
32428
- super(I_.a, V_.a, { percent: 0, transition: 1, rect: new Float32Array([0, 0, 0, 0]) }), this.uniforms.option = t2 === "out" ? 1 : 0;
32491
+ super(O_.a, X_.a, { percent: 0, transition: 1, rect: new Float32Array([0, 0, 0, 0]) }), this.uniforms.option = t2 === "out" ? 1 : 0;
32429
32492
  }
32430
- }, plus: class extends b_ {
32493
+ }, plus: class extends T_ {
32431
32494
  constructor(t2) {
32432
- super(I_.a, W_.a, { percent: 0, transition: 1, rect: new Float32Array([0, 0, 0, 0]) }), this.uniforms.option = t2 === "out" ? 1 : 0;
32495
+ super(O_.a, Y_.a, { percent: 0, transition: 1, rect: new Float32Array([0, 0, 0, 0]) }), this.uniforms.option = t2 === "out" ? 1 : 0;
32433
32496
  }
32434
- }, barn: class extends b_ {
32497
+ }, barn: class extends T_ {
32435
32498
  constructor(t2) {
32436
- super(I_.a, q_.a, { percent: 0, transition: 1, rect: new Float32Array([0, 0, 0, 0]) }), this.uniforms.option = t2 === "inHorizontal" ? 1 : t2 === "outHorizontal" ? 2 : t2 === "outVertical" ? 3 : 0;
32499
+ super(O_.a, Z_.a, { percent: 0, transition: 1, rect: new Float32Array([0, 0, 0, 0]) }), this.uniforms.option = t2 === "inHorizontal" ? 1 : t2 === "outHorizontal" ? 2 : t2 === "outVertical" ? 3 : 0;
32437
32500
  }
32438
- }, strips: class extends b_ {
32501
+ }, strips: class extends T_ {
32439
32502
  constructor(t2) {
32440
- super(I_.a, J_.a, { percent: 0, transition: 1, rect: new Float32Array([0, 0, 0, 0]) }), this.uniforms.option = t2 === "upLeft" ? 1 : t2 === "downRight" ? 2 : t2 === "upRight" ? 3 : 0;
32503
+ super(O_.a, K_.a, { percent: 0, transition: 1, rect: new Float32Array([0, 0, 0, 0]) }), this.uniforms.option = t2 === "upLeft" ? 1 : t2 === "downRight" ? 2 : t2 === "upRight" ? 3 : 0;
32441
32504
  }
32442
- }, wedge: class extends b_ {
32505
+ }, wedge: class extends T_ {
32443
32506
  constructor(t2) {
32444
- super(I_.a, Q_.a, { percent: 0, transition: 1, rect: new Float32Array([0, 0, 0, 0]) });
32507
+ super(O_.a, $_.a, { percent: 0, transition: 1, rect: new Float32Array([0, 0, 0, 0]) });
32445
32508
  }
32446
- }, wheel: class extends b_ {
32509
+ }, wheel: class extends T_ {
32447
32510
  constructor(t2) {
32448
- super(I_.a, ty.a, { percent: 0, transition: 1, rect: new Float32Array([0, 0, 0, 0]) }), this.uniforms.option = Number(t2) || 1;
32511
+ super(O_.a, ey.a, { percent: 0, transition: 1, rect: new Float32Array([0, 0, 0, 0]) }), this.uniforms.option = Number(t2) || 1;
32449
32512
  }
32450
32513
  } };
32451
- class ny extends d_ {
32514
+ class iy extends p_ {
32452
32515
  constructor(t2) {
32453
32516
  var e2;
32454
32517
  super(t2), this.filterType = "", this.isConflict = false, this.activeWhenConflict = "prev", this.onTimeUpdate = ({ duration: t3, delta: e3 }) => {
@@ -32479,14 +32542,14 @@ void main(void){
32479
32542
  const i2 = (e2 = t2.json.filter) === null || e2 === void 0 ? void 0 : e2.match(/^([a-zA-Z]+)(\((.+)\))?/);
32480
32543
  if (i2) {
32481
32544
  const t3 = i2[1], e3 = i2[3];
32482
- ey[t3] && (this.filter = new ey[t3](e3), this.filterType = `${t3}-${e3}`, this.filter && (this.filter.transition = n2));
32545
+ ny[t3] && (this.filter = new ny[t3](e3), this.filterType = `${t3}-${e3}`, this.filter && (this.filter.transition = n2));
32483
32546
  }
32484
32547
  }
32485
32548
  get modifyAttrKey() {
32486
32549
  return this.filterType;
32487
32550
  }
32488
32551
  }
32489
- class iy extends d_ {
32552
+ class ry extends p_ {
32490
32553
  constructor(t2) {
32491
32554
  super(t2), this.isConflict = true, this.activeWhenConflict = "next", this.startPos = null, this.onTimeNodeStart = () => {
32492
32555
  var t3, e2;
@@ -32539,7 +32602,7 @@ void main(void){
32539
32602
  this.path = e2;
32540
32603
  }
32541
32604
  }
32542
- class ry extends d_ {
32605
+ class oy extends p_ {
32543
32606
  constructor(t2) {
32544
32607
  super(t2), this.isConflict = true, this.activeWhenConflict = "next", this.startVal = null, this.onTimelineStart = (t3) => {
32545
32608
  t3.isReverse || this.updateCurrentValue();
@@ -32569,19 +32632,19 @@ void main(void){
32569
32632
  this.timingTarget && (this.current = { x: this.timingTarget.scale.x, y: this.timingTarget.scale.y });
32570
32633
  }
32571
32634
  }
32572
- class oy extends d_ {
32635
+ class sy extends p_ {
32573
32636
  constructor(t2) {
32574
32637
  super(t2), this.isConflict = false, this.activeWhenConflict = "next", this.isTimelineStart = false, this.startColorString = null, this.currentColorString = "#FFFFFFFF", this.onTimelineStart = (t3) => {
32575
32638
  if (this.isTimelineStart)
32576
32639
  return;
32577
32640
  this.isTimelineStart = true, t3.isReverse || this.updateCurrentValue(), this.from.isInit() || this.from.fromHexString(this.currentColorString), this.to.isInit() || this.from.by(this.by, this.to);
32578
32641
  const [e2] = this.json.cBhvr.attrList[0].split(".");
32579
- u_(this.timingTarget, e2 + ".on", "true");
32642
+ c_(this.timingTarget, e2 + ".on", "true");
32580
32643
  }, this.onTimeNodeEnd = () => {
32581
32644
  let t3 = this.json.cBhvr.attrList[0];
32582
32645
  if (t3 === "ppt_c" && (t3 = "ppt_c.color"), this.json.cBhvr.ctn.fill === "remove") {
32583
32646
  const [e2] = t3.split(".");
32584
- u_(this.timingTarget, e2 + ".on", "false");
32647
+ c_(this.timingTarget, e2 + ".on", "false");
32585
32648
  }
32586
32649
  this.isTimelineStart = false;
32587
32650
  }, this.onSeekToStart = () => {
@@ -32589,24 +32652,24 @@ void main(void){
32589
32652
  let e2 = this.json.cBhvr.attrList[0];
32590
32653
  if (e2 === "ppt_c" && (e2 = "ppt_c.color"), this.timingTarget && (this.onTimeUpdate({ duration: 1, delta: 0 }), ((t3 = this.timingTarget.fill) === null || t3 === void 0 ? void 0 : t3.designColor.toUpperCase()) === this.from.toHexString().toUpperCase() || e2 === "ppt_c.color")) {
32591
32654
  const [t4] = e2.split(".");
32592
- u_(this.timingTarget, t4 + ".on", "false");
32655
+ c_(this.timingTarget, t4 + ".on", "false");
32593
32656
  }
32594
32657
  }, this.onTimeNodeStart = () => {
32595
32658
  if (this.timingTarget) {
32596
32659
  let t3 = this.json.cBhvr.attrList[0];
32597
32660
  t3 === "ppt_c" && (t3 = "ppt_c.color");
32598
- const e2 = c_(this.timingTarget, t3);
32661
+ const e2 = d_(this.timingTarget, t3);
32599
32662
  e2 && (this.startColorString = e2);
32600
32663
  }
32601
32664
  }, this.onTimeUpdate = ({ delta: t3, duration: e2 }) => {
32602
32665
  const n2 = t3 / e2;
32603
32666
  if (this.to.interpolationFrom(this.from, n2, this.target), this.timingTarget) {
32604
32667
  let t4 = this.json.cBhvr.attrList[0];
32605
- t4 === "ppt_c" && (t4 = "ppt_c.color"), u_(this.timingTarget, t4, this.target.toHexString());
32668
+ t4 === "ppt_c" && (t4 = "ppt_c.color"), c_(this.timingTarget, t4, this.target.toHexString());
32606
32669
  }
32607
32670
  }, this.onSeekToEnd = () => {
32608
32671
  this.isTimelineStart || this.onTimelineStart({ isReverse: false, activeCount: 0, id: "" }), this.onTimeUpdate({ duration: 1, delta: 1 });
32609
- }, this.json.clrSpc === "rgb" ? (this.from = new dg(this.json.from), this.to = new dg(this.json.to), this.by = new dg(this.json.by), this.target = new dg()) : (this.from = new cg(this.json.from), this.to = new cg(this.json.to), this.by = new cg(this.json.by), this.target = new cg()), this.commonTimeNode.on("timeNodeStart", this.onTimeNodeStart), this.commonTimeNode.on("timeNodeCreate", this.onTimeNodeStart), this.commonTimeNode.on("timelineStart", this.onTimelineStart), this.commonTimeNode.on("timeNodeEnd", this.onTimeNodeEnd), this.commonTimeNode.on("timeUpdate", this.onTimeUpdate);
32672
+ }, this.json.clrSpc === "rgb" ? (this.from = new pg(this.json.from), this.to = new pg(this.json.to), this.by = new pg(this.json.by), this.target = new pg()) : (this.from = new dg(this.json.from), this.to = new dg(this.json.to), this.by = new dg(this.json.by), this.target = new dg()), this.commonTimeNode.on("timeNodeStart", this.onTimeNodeStart), this.commonTimeNode.on("timeNodeCreate", this.onTimeNodeStart), this.commonTimeNode.on("timelineStart", this.onTimelineStart), this.commonTimeNode.on("timeNodeEnd", this.onTimeNodeEnd), this.commonTimeNode.on("timeUpdate", this.onTimeUpdate);
32610
32673
  }
32611
32674
  get modifyAttrKey() {
32612
32675
  return this.json.cBhvr.attrList[0];
@@ -32615,12 +32678,12 @@ void main(void){
32615
32678
  if (this.timingTarget) {
32616
32679
  let t2 = this.json.cBhvr.attrList[0];
32617
32680
  t2 === "ppt_c" && (t2 = "ppt_c.color");
32618
- const e2 = c_(this.timingTarget, t2);
32681
+ const e2 = d_(this.timingTarget, t2);
32619
32682
  e2 && (this.currentColorString = e2);
32620
32683
  }
32621
32684
  }
32622
32685
  }
32623
- class sy extends d_ {
32686
+ class ay extends p_ {
32624
32687
  constructor(t2) {
32625
32688
  super(t2), this.isConflict = false, this.activeWhenConflict = "next", this.startVal = null, this.lastVal = null, this.onTimelineStart = (t3) => {
32626
32689
  this.lastVal = null, t3.isReverse || this.updateCurrentValue();
@@ -32638,7 +32701,7 @@ void main(void){
32638
32701
  }
32639
32702
  }, this.onTimeNodeStart = () => {
32640
32703
  var t3;
32641
- zm()((t3 = this.timingTarget) === null || t3 === void 0 ? void 0 : t3.r) && (this.startVal = this.timingTarget.r);
32704
+ Vm()((t3 = this.timingTarget) === null || t3 === void 0 ? void 0 : t3.r) && (this.startVal = this.timingTarget.r);
32642
32705
  }, this.onSeekToStart = () => {
32643
32706
  this.timingTarget && this.startVal !== null && (this.timingTarget.r = this.startVal);
32644
32707
  }, this.onSeekToEnd = () => {
@@ -32653,7 +32716,7 @@ void main(void){
32653
32716
  this.currentVal = (t2 = this.timingTarget) === null || t2 === void 0 ? void 0 : t2.r;
32654
32717
  }
32655
32718
  }
32656
- class ay extends d_ {
32719
+ class ly extends p_ {
32657
32720
  constructor(t2) {
32658
32721
  super(t2), this.isConflict = false, this.activeWhenConflict = "next", this.isApplied = false, this.onTimeUpdate = () => {
32659
32722
  var t3, e2;
@@ -32674,7 +32737,7 @@ void main(void){
32674
32737
  return ((e2 = (t2 = this.json) === null || t2 === void 0 ? void 0 : t2.cmd) !== null && e2 !== void 0 ? e2 : "") + ((i2 = (n2 = this.json) === null || n2 === void 0 ? void 0 : n2.cmdType) !== null && i2 !== void 0 ? i2 : "");
32675
32738
  }
32676
32739
  }
32677
- class ly {
32740
+ class hy {
32678
32741
  constructor(t2) {
32679
32742
  this.runtimeNodeEventHub = new Ja.a(), this.onVolumeUpdate = (t3) => {
32680
32743
  this.audio.volume(t3);
@@ -32684,14 +32747,14 @@ void main(void){
32684
32747
  this.stopAudio(), this.audio.destroy(), this.ctx.activeMedia.delete(this.audio), this.ctx.volumeAdjuster.off("update", this.onVolumeUpdate);
32685
32748
  };
32686
32749
  const { json: e2, isIterate: n2, isSub: i2, eventHub: r2, ctx: o2, parent: s2, iterateType: a2, iterateIndex: l2, iterateId: h2, isInInteractiveSeq: u2, fromSeqId: c2 } = t2;
32687
- this.json = e2, this.id = e2.cMediaNode.ctn.id, this.commonTimeNode = new uy({ json: e2.cMediaNode.ctn, isSub: i2, eventHubs: { global: r2, runtime: this.runtimeNodeEventHub }, ctx: o2, parent: s2, isIterate: n2, iterateType: a2, iterateIndex: l2, iterateId: h2, isInInteractiveSeq: u2, fromSeqId: c2 });
32750
+ this.json = e2, this.id = e2.cMediaNode.ctn.id, this.commonTimeNode = new cy({ json: e2.cMediaNode.ctn, isSub: i2, eventHubs: { global: r2, runtime: this.runtimeNodeEventHub }, ctx: o2, parent: s2, isIterate: n2, iterateType: a2, iterateIndex: l2, iterateId: h2, isInInteractiveSeq: u2, fromSeqId: c2 });
32688
32751
  let d2 = e2.cMediaNode.tgtEl;
32689
- o2.loaderDelegate && (d2 = o2.loaderDelegate.redirectMedia(d2), o2.logger.info(`redirect media url from ${e2.cMediaNode.tgtEl} to ${d2} by delegate.`, o2.taskId)), this.audio = new t_(d2, o2.runningAudio), o2.activeMedia.add(this.audio), this.commonTimeNode.on("timelineStart", () => {
32752
+ o2.loaderDelegate && (d2 = o2.loaderDelegate.redirectMedia(d2), o2.logger.info(`redirect media url from ${e2.cMediaNode.tgtEl} to ${d2} by delegate.`, o2.taskId)), this.audio = new e_(d2, o2.runningAudio), o2.activeMedia.add(this.audio), this.commonTimeNode.on("timelineStart", () => {
32690
32753
  this.audio.volume(o2.volumeAdjuster.volume), this.audio.play();
32691
32754
  }), this.commonTimeNode.on("seekToStart", this.stopAudio), this.commonTimeNode.on("seekToEnd", this.stopAudio), this.commonTimeNode.on("timeNodeDestroy", this.destroy), this.ctx = o2, this.ctx.volumeAdjuster.on("update", this.onVolumeUpdate);
32692
32755
  }
32693
32756
  }
32694
- var hy = function(t2, e2, n2, i2) {
32757
+ var uy = function(t2, e2, n2, i2) {
32695
32758
  return new (n2 || (n2 = Promise))(function(r2, o2) {
32696
32759
  function s2(t3) {
32697
32760
  try {
@@ -32716,7 +32779,7 @@ void main(void){
32716
32779
  l2((i2 = i2.apply(t2, e2 || [])).next());
32717
32780
  });
32718
32781
  };
32719
- class uy extends Ja.a {
32782
+ class cy extends Ja.a {
32720
32783
  constructor(t2) {
32721
32784
  var e2, n2;
32722
32785
  super(), this.uuid = Mm(), this.isSub = false, this.isShadow = false, this.startCount = 0, this.applyCount = 0, this.isReverse = false, this.isConflictDispose = false, this.isIterateEnd = false, this.parentTimeNode = null, this.isActive = false, this.isDestroy = false, this.shouldSeekOnStart = false, this.repeatTimeoutId = "", this.iterateShadows = [], this.isEndEventsEmitted = false, this.tmFilter = [], this.timeDelta = 0, this.isIterate = false, this.iterateType = "el", this.iterateIndex = 0, this.children = [], this.subList = [], this.duration = 0, this.isNegativeSpeed = false, this.handleEndCond = () => {
@@ -32737,7 +32800,7 @@ void main(void){
32737
32800
  const { isSub: i2, isIterate: r2, ctx: o2, eventHubs: s2, parent: a2, json: l2, iterateType: h2, iterateId: u2, iterateIndex: c2, isInInteractiveSeq: d2, fromSeqId: p2 } = t2;
32738
32801
  this.isSub = i2, this.fromSeqId = p2, this.isInInteractiveSeq = d2, this.isIterate = r2, this.parentTimeNode = a2, this.json = l2, this.ctx = o2, this.iterateIndex = c2, this.eventHubs = s2, this.iterateType = h2, this.iterateId = u2, this.tmFilter = (n2 = (e2 = l2.tmFilter) === null || e2 === void 0 ? void 0 : e2.split(";").map((t3) => t3.split(",").map((t4) => parseFloat(t4.trim())))) !== null && n2 !== void 0 ? n2 : [];
32739
32802
  const f2 = Number(this.json.dur), m2 = this.json.spd || 1;
32740
- if (this.isNegativeSpeed = m2 < 0, Number.isNaN(f2) || (this.duration = f2 / Math.abs(m2)), this.uuid += "--" + this.json.id, this.setPreStyle(), l2.childTnLst && this.createChildren(l2.childTnLst), this.startConds = new l_(this.json.id || "", l2.stCondLst, s2, this.ctx), this.endConds = new l_(this.json.id || "", l2.endCondLst, s2, this.ctx), l2.endSync && (this.endSync = new l_(this.json.id || "", [l2.endSync], s2, this.ctx), this.endSync.on("active", () => {
32803
+ if (this.isNegativeSpeed = m2 < 0, Number.isNaN(f2) || (this.duration = f2 / Math.abs(m2)), this.uuid += "--" + this.json.id, this.setPreStyle(), l2.childTnLst && this.createChildren(l2.childTnLst), this.startConds = new h_(this.json.id || "", l2.stCondLst, s2, this.ctx), this.endConds = new h_(this.json.id || "", l2.endCondLst, s2, this.ctx), l2.endSync && (this.endSync = new h_(this.json.id || "", [l2.endSync], s2, this.ctx), this.endSync.on("active", () => {
32741
32804
  var t3;
32742
32805
  this.json.nodeType === "interactiveSeq" && (this.isActive = false, this.shouldSeekOnStart = true, this.emit("timeNodeEndSync"), (t3 = this.endSync) === null || t3 === void 0 || t3.reset());
32743
32806
  })), this.startConds.on("active", (t3) => {
@@ -32759,7 +32822,7 @@ void main(void){
32759
32822
  n3 === t2 && (e2 = false, this.ctx.eventHub.removeListener("IterateTimeNodeEnd", i2));
32760
32823
  };
32761
32824
  for (this.ctx.eventHub.on("IterateTimeNodeEnd", i2); e2; ) {
32762
- const e3 = JSON.parse(JSON.stringify(this.json)), i3 = new uy({ json: e3, isSub: false, eventHubs: this.eventHubs, ctx: this.ctx, parent: null, isIterate: true, iterateType: e3.iterate.type, iterateIndex: n2, iterateId: t2, isInInteractiveSeq: this.isInInteractiveSeq, fromSeqId: this.fromSeqId });
32825
+ const e3 = JSON.parse(JSON.stringify(this.json)), i3 = new cy({ json: e3, isSub: false, eventHubs: this.eventHubs, ctx: this.ctx, parent: null, isIterate: true, iterateType: e3.iterate.type, iterateIndex: n2, iterateId: t2, isInInteractiveSeq: this.isInInteractiveSeq, fromSeqId: this.fromSeqId });
32763
32826
  this.iterateShadows[n2] = i3, n2 += 1;
32764
32827
  }
32765
32828
  }
@@ -32775,7 +32838,7 @@ void main(void){
32775
32838
  createTimeNode(t2, e2) {
32776
32839
  let n2 = null;
32777
32840
  const i2 = { json: t2, isSub: e2, isIterate: this.isIterate, eventHub: this.eventHubs.global, ctx: this.ctx, parent: this, iterateType: this.iterateType, iterateIndex: this.iterateIndex, iterateId: this.iterateId, isInInteractiveSeq: this.isInInteractiveSeq, fromSeqId: this.fromSeqId };
32778
- return t2.type === "seq" ? n2 = new h_(i2) : t2.type === "par" ? n2 = new cy(i2) : t2.type === "set" ? n2 = new p_(i2) : t2.type === "anim" ? n2 = new x_(i2) : t2.type === "animEffect" ? n2 = new ny(i2) : t2.type === "animMotion" ? n2 = new iy(i2) : t2.type === "animScale" ? n2 = new ry(i2) : t2.type === "animClr" ? n2 = new oy(i2) : t2.type === "animRot" ? n2 = new sy(i2) : t2.type === "cmd" ? n2 = new ay(i2) : t2.type === "audio" && (n2 = new ly(i2)), n2;
32841
+ return t2.type === "seq" ? n2 = new u_(i2) : t2.type === "par" ? n2 = new dy(i2) : t2.type === "set" ? n2 = new f_(i2) : t2.type === "anim" ? n2 = new b_(i2) : t2.type === "animEffect" ? n2 = new iy(i2) : t2.type === "animMotion" ? n2 = new ry(i2) : t2.type === "animScale" ? n2 = new oy(i2) : t2.type === "animClr" ? n2 = new sy(i2) : t2.type === "animRot" ? n2 = new ay(i2) : t2.type === "cmd" ? n2 = new ly(i2) : t2.type === "audio" && (n2 = new hy(i2)), n2;
32779
32842
  }
32780
32843
  createSubList(t2) {
32781
32844
  this.subList && this.subList.forEach((t3) => t3.commonTimeNode.destroy()), this.subList = [], t2.forEach((t3) => {
@@ -32805,9 +32868,9 @@ void main(void){
32805
32868
  [...t2].sort((t3, n2) => {
32806
32869
  var i2, r2;
32807
32870
  return ((i2 = e2(t3)) !== null && i2 !== void 0 ? i2 : 0) - ((r2 = e2(n2)) !== null && r2 !== void 0 ? r2 : 0);
32808
- }).forEach((e3) => {
32809
- const n2 = t2.findIndex((t3) => t3 === e3), i2 = this.createTimeNode(e3, false);
32810
- i2 && (this.bindCommonTimeNodeEvent(i2), this.children[n2] = i2);
32871
+ }).forEach((t3) => {
32872
+ const e3 = this.createTimeNode(t3, false);
32873
+ e3 && (this.bindCommonTimeNodeEvent(e3), this.children.push(e3));
32811
32874
  });
32812
32875
  } else
32813
32876
  t2.forEach((t3) => {
@@ -32836,7 +32899,7 @@ void main(void){
32836
32899
  startReverseTimeLine() {
32837
32900
  this.isEndEventsEmitted = false, this.timeDelta = 0;
32838
32901
  const t2 = 1e3 / this.ctx.ticker.maxFPS;
32839
- this.duration <= t2 && this.duration > 0 ? (this.emit("timeUpdate", { delta: this.duration, duration: this.duration, isReverse: this.isReverse }), this.ctx.eventHub.emit(By.animateEnd), this.ctx.ticker.remove(this.updateTimeLine)) : this.duration > t2 && (this.ctx.eventHub.emit(By.animateStart), this.ctx.ticker.add(this.updateTimeLine));
32902
+ this.duration <= t2 && this.duration > 0 ? (this.emit("timeUpdate", { delta: this.duration, duration: this.duration, isReverse: this.isReverse }), this.ctx.eventHub.emit(Uy.animateEnd), this.ctx.ticker.remove(this.updateTimeLine)) : this.duration > t2 && (this.ctx.eventHub.emit(Uy.animateStart), this.ctx.ticker.add(this.updateTimeLine));
32840
32903
  }
32841
32904
  startTimeLine(t2 = true) {
32842
32905
  if (t2 && (this.isEndEventsEmitted = false, this.eventHubs.global.emit(`time ${this.json.id} begin`), this.eventHubs.global.emit(`time ${this.json.id} onBegin`), this.eventHubs.runtime.emit(`runtime ${this.json.id} begin`)), this.json.iterate)
@@ -32845,10 +32908,10 @@ void main(void){
32845
32908
  const e2 = 1e3 / this.ctx.ticker.maxFPS;
32846
32909
  this.duration <= e2 && this.duration > 0 ? (this.timeDelta = this.isReverse ? 0 : this.duration, this.emit("timeUpdate", { delta: this.timeDelta, duration: this.duration, isReverse: this.isReverse }), this.emit("timelineEnd", { id: this.uuid, activeCount: this.applyCount, isReverse: this.isReverse }), this.ctx.ticker.addOnce(() => {
32847
32910
  this.onTimeLineEnd();
32848
- })) : this.duration > e2 && (this.ctx.eventHub.emit(By.animateStart), this.updateTimeLine(0), this.ctx.ticker.add(this.updateTimeLine));
32911
+ })) : this.duration > e2 && (this.ctx.eventHub.emit(Uy.animateStart), this.updateTimeLine(0), this.ctx.ticker.add(this.updateTimeLine));
32849
32912
  }
32850
32913
  startIterate() {
32851
- return hy(this, void 0, void 0, function* () {
32914
+ return uy(this, void 0, void 0, function* () {
32852
32915
  if (this.json.iterate) {
32853
32916
  this.isIterateEnd = false;
32854
32917
  for (const t2 of this.iterateShadows) {
@@ -32863,7 +32926,7 @@ void main(void){
32863
32926
  });
32864
32927
  }
32865
32928
  applyTimeFilter(t2) {
32866
- if (!this.tmFilter.every((t3) => zm()(t3[0]) && zm()(t3[1])))
32929
+ if (!this.tmFilter.every((t3) => Vm()(t3[0]) && Vm()(t3[1])))
32867
32930
  return t2;
32868
32931
  for (let e2 = 0; e2 < this.tmFilter.length; e2++) {
32869
32932
  const n2 = this.tmFilter[e2];
@@ -32954,7 +33017,7 @@ void main(void){
32954
33017
  });
32955
33018
  }
32956
33019
  dispose(t2 = false) {
32957
- this.isConflictDispose = t2, this.ctx.clock.clearTimeout(this.repeatTimeoutId), this.ctx.eventHub.emit(By.animateEnd);
33020
+ this.isConflictDispose = t2, this.ctx.clock.clearTimeout(this.repeatTimeoutId), this.ctx.eventHub.emit(Uy.animateEnd);
32958
33021
  try {
32959
33022
  this.ctx.ticker.remove(this.updateTimeLine);
32960
33023
  } catch (t3) {
@@ -32990,11 +33053,11 @@ void main(void){
32990
33053
  this.emit("timeNodeDestroy"), this.isDestroy = true, this.dispose(), this.startConds.removeAllListeners(), this.endConds.removeAllListeners(), this.children.forEach((t2) => t2.commonTimeNode.destroy()), this.clearSubList();
32991
33054
  }
32992
33055
  }
32993
- class cy extends Ja.a {
33056
+ class dy extends Ja.a {
32994
33057
  constructor(t2) {
32995
33058
  super(), this.isRunning = false, this.runtimeNodeEventHub = new Ja.a();
32996
33059
  const { json: e2, iterateType: n2, isIterate: i2, isSub: r2, parent: o2, ctx: s2, eventHub: a2, iterateIndex: l2, iterateId: h2, isInInteractiveSeq: u2, fromSeqId: c2 } = t2;
32997
- this.id = e2.ctn.id, this.json = e2, this.ctx = s2, this.isIterate = i2, this.globalEventHub = a2, this.commonTimeNode = new uy({ json: e2.ctn, isSub: r2, eventHubs: { global: a2, runtime: this.runtimeNodeEventHub }, ctx: s2, parent: o2, isIterate: false, iterateType: n2, iterateIndex: l2, iterateId: h2, isInInteractiveSeq: u2, fromSeqId: c2 }), this.commonTimeNode.on("timeNodeStart", () => {
33060
+ this.id = e2.ctn.id, this.json = e2, this.ctx = s2, this.isIterate = i2, this.globalEventHub = a2, this.commonTimeNode = new cy({ json: e2.ctn, isSub: r2, eventHubs: { global: a2, runtime: this.runtimeNodeEventHub }, ctx: s2, parent: o2, isIterate: false, iterateType: n2, iterateIndex: l2, iterateId: h2, isInInteractiveSeq: u2, fromSeqId: c2 }), this.commonTimeNode.on("timeNodeStart", () => {
32998
33061
  this.commonTimeNode.children.forEach((t3) => {
32999
33062
  t3.commonTimeNode.setReverse(this.commonTimeNode.getReverse()), t3.commonTimeNode.startTimeNode();
33000
33063
  }), this.isRunning || (this.isRunning = true, this.globalEventHub.emit(`runtime ${this.id} begin`), this.emit("begin"));
@@ -33007,7 +33070,7 @@ void main(void){
33007
33070
  });
33008
33071
  }
33009
33072
  }
33010
- var dy = function(t2, e2, n2, i2) {
33073
+ var py = function(t2, e2, n2, i2) {
33011
33074
  return new (n2 || (n2 = Promise))(function(r2, o2) {
33012
33075
  function s2(t3) {
33013
33076
  try {
@@ -33032,11 +33095,11 @@ void main(void){
33032
33095
  l2((i2 = i2.apply(t2, e2 || [])).next());
33033
33096
  });
33034
33097
  };
33035
- class py {
33098
+ class fy {
33036
33099
  constructor(t2, e2, n2) {
33037
33100
  this.json = t2, this.ctx = n2, this.globalEventHub = e2;
33038
33101
  const i2 = t2.timeNodeList.find((t3) => t3.type === "par" && t3.ctn.nodeType === "tmRoot");
33039
- i2 && (this.tmRoot = new cy({ json: i2, isSub: false, isIterate: false, eventHub: e2, ctx: n2, parent: null, iterateType: "el", iterateIndex: 0, iterateId: "", isInInteractiveSeq: false, fromSeqId: "" }), this.mainSeq = this.tmRoot.commonTimeNode.children.find((t3) => {
33102
+ i2 && (this.tmRoot = new dy({ json: i2, isSub: false, isIterate: false, eventHub: e2, ctx: n2, parent: null, iterateType: "el", iterateIndex: 0, iterateId: "", isInInteractiveSeq: false, fromSeqId: "" }), this.mainSeq = this.tmRoot.commonTimeNode.children.find((t3) => {
33040
33103
  var e3, n3, i3;
33041
33104
  return ((e3 = t3.json) === null || e3 === void 0 ? void 0 : e3.type) === "seq" && ((i3 = (n3 = t3.json) === null || n3 === void 0 ? void 0 : n3.ctn) === null || i3 === void 0 ? void 0 : i3.nodeType) === "mainSeq";
33042
33105
  }));
@@ -33050,7 +33113,7 @@ void main(void){
33050
33113
  }
33051
33114
  start() {
33052
33115
  var t2, e2;
33053
- return dy(this, void 0, void 0, function* () {
33116
+ return py(this, void 0, void 0, function* () {
33054
33117
  this.json.autoPlayMainSeq ? (yield this.ctx.clock.delay(16), (t2 = this.mainSeq) === null || t2 === void 0 || t2.commonTimeNode.startTimeNode()) : (e2 = this.mainSeq) === null || e2 === void 0 || e2.commonTimeNode.startTimeNode();
33055
33118
  });
33056
33119
  }
@@ -33108,7 +33171,7 @@ void main(void){
33108
33171
  this.globalEventHub.emit(t2);
33109
33172
  }
33110
33173
  }
33111
- var fy = function(t2, e2, n2, i2) {
33174
+ var my = function(t2, e2, n2, i2) {
33112
33175
  return new (n2 || (n2 = Promise))(function(r2, o2) {
33113
33176
  function s2(t3) {
33114
33177
  try {
@@ -33133,7 +33196,7 @@ void main(void){
33133
33196
  l2((i2 = i2.apply(t2, e2 || [])).next());
33134
33197
  });
33135
33198
  };
33136
- class my extends a_ {
33199
+ class gy extends l_ {
33137
33200
  constructor(t2, e2, n2, i2) {
33138
33201
  super({ id: "stage", width: t2.width, height: t2.height, type: "Container", children: t2.children }, e2, n2, void 0, i2), this.isRendered = false, this.isTimingStartValueCollected = false, this.json = t2, e2.hasBackgroundFillShape = this.detectUseBackgroundFill(this.json), this.container.visible = false, this.ctx = e2;
33139
33202
  const r2 = new Xd();
@@ -33144,9 +33207,9 @@ void main(void){
33144
33207
  }
33145
33208
  initOnReuse() {
33146
33209
  super.initOnReuse(), this.ctx.timingEventHub.on("c:prev slide", (t2) => {
33147
- this.ctx.eventHub.emit(By.requestPrevSlide, t2);
33210
+ this.ctx.eventHub.emit(Uy.requestPrevSlide, t2);
33148
33211
  }), this.ctx.timingEventHub.on("c:next slide", (t2, e2) => {
33149
- this.ctx.eventHub.emit(By.requestNextSlide, t2, e2);
33212
+ this.ctx.eventHub.emit(Uy.requestNextSlide, t2, e2);
33150
33213
  });
33151
33214
  }
33152
33215
  get interactiveContainer() {
@@ -33155,7 +33218,7 @@ void main(void){
33155
33218
  render(t2) {
33156
33219
  if (this.isRendered)
33157
33220
  return;
33158
- this.collectAnimatedIds().forEach((t3) => this.ctx.animatedIds.add(t3)), this.isRendered = true, super.render(t2), t2.addSubMTask(() => fy(this, void 0, void 0, function* () {
33221
+ this.collectAnimatedIds().forEach((t3) => this.ctx.animatedIds.add(t3)), this.isRendered = true, super.render(t2), t2.addSubMTask(() => my(this, void 0, void 0, function* () {
33159
33222
  this.ctx.eventHub.emit("StageRenderEnd");
33160
33223
  }), "@StageImpl[emit.StageRenderEnd]");
33161
33224
  }
@@ -33178,7 +33241,7 @@ void main(void){
33178
33241
  }), t2;
33179
33242
  }
33180
33243
  createTiming() {
33181
- this.json.timing && !this.timing && (this.timing = new py(this.json.timing, this.ctx.timingEventHub, this.ctx));
33244
+ this.json.timing && !this.timing && (this.timing = new fy(this.json.timing, this.ctx.timingEventHub, this.ctx));
33182
33245
  }
33183
33246
  startTiming() {
33184
33247
  var t2;
@@ -33233,11 +33296,11 @@ void main(void){
33233
33296
  }
33234
33297
  nextStep(t2, e2) {
33235
33298
  var n2;
33236
- this.hasTiming() && ((n2 = this.timing) === null || n2 === void 0 ? void 0 : n2.hasMainSeq()) ? (this.ctx.timingEventHub.emit("shape slide onStopAudio"), this.ctx.timingEventHub.emit("shape slide onNext", t2, e2)) : this.ctx.eventHub.emit(By.requestNextSlide, t2, e2);
33299
+ this.hasTiming() && ((n2 = this.timing) === null || n2 === void 0 ? void 0 : n2.hasMainSeq()) ? (this.ctx.timingEventHub.emit("shape slide onStopAudio"), this.ctx.timingEventHub.emit("shape slide onNext", t2, e2)) : this.ctx.eventHub.emit(Uy.requestNextSlide, t2, e2);
33237
33300
  }
33238
33301
  prevStep(t2 = false) {
33239
33302
  var e2;
33240
- this.hasTiming() && ((e2 = this.timing) === null || e2 === void 0 ? void 0 : e2.hasMainSeq()) ? (this.ctx.timingEventHub.emit("shape slide onStopAudio"), this.ctx.timingEventHub.emit("shape slide onPrev", t2)) : this.ctx.eventHub.emit(By.requestPrevSlide, t2);
33303
+ this.hasTiming() && ((e2 = this.timing) === null || e2 === void 0 ? void 0 : e2.hasMainSeq()) ? (this.ctx.timingEventHub.emit("shape slide onStopAudio"), this.ctx.timingEventHub.emit("shape slide onPrev", t2)) : this.ctx.eventHub.emit(Uy.requestPrevSlide, t2);
33241
33304
  }
33242
33305
  applyInteractiveAction(t2) {
33243
33306
  var e2;
@@ -33251,10 +33314,12 @@ void main(void){
33251
33314
  var i2;
33252
33315
  (i2 = this.timing) === null || i2 === void 0 || i2.setInteractiveSeqState(t2, e2, n2);
33253
33316
  }
33254
- setMediaState(t2, e2) {
33255
- return fy(this, void 0, void 0, function* () {
33256
- const n2 = this.ctx.medias[t2];
33257
- n2 && (e2 ? yield n2.play() : yield n2.pause());
33317
+ setMediaState(t2, e2, n2) {
33318
+ return my(this, void 0, void 0, function* () {
33319
+ const i2 = this.ctx.medias[t2];
33320
+ i2 && (e2 ? n2 ? (yield Im(() => i2.clippedDuration > 0, 5e3), n2 < i2.clippedDuration && (i2.once("play", () => {
33321
+ i2.seek(n2);
33322
+ }), yield i2.play())) : yield i2.play() : (n2 && i2.seek(n2), yield i2.pause()));
33258
33323
  });
33259
33324
  }
33260
33325
  setMediaCurrentTime(t2, e2) {
@@ -33262,7 +33327,7 @@ void main(void){
33262
33327
  n2 && n2.seek(e2);
33263
33328
  }
33264
33329
  }
33265
- class gy {
33330
+ class vy {
33266
33331
  constructor(t2) {
33267
33332
  this.ticker = t2, this.tasks = [], this.couldRunning = false, this.applyNext = () => {
33268
33333
  const t3 = this.tasks[0];
@@ -33285,7 +33350,7 @@ void main(void){
33285
33350
  this.couldRunning = false;
33286
33351
  }
33287
33352
  }
33288
- var vy = function(t2, e2, n2, i2) {
33353
+ var _y = function(t2, e2, n2, i2) {
33289
33354
  return new (n2 || (n2 = Promise))(function(r2, o2) {
33290
33355
  function s2(t3) {
33291
33356
  try {
@@ -33310,8 +33375,8 @@ void main(void){
33310
33375
  l2((i2 = i2.apply(t2, e2 || [])).next());
33311
33376
  });
33312
33377
  };
33313
- const _y = (t2) => new Promise((e2) => setTimeout(e2, t2));
33314
- class yy extends Ja.a {
33378
+ const yy = (t2) => new Promise((e2) => setTimeout(e2, t2));
33379
+ class xy extends Ja.a {
33315
33380
  constructor(t2, e2, n2) {
33316
33381
  super(), this.slideIndex = t2, this.taskId = e2, this.logger = n2, this.uuid = Mm(), this.isCancel = false, this.tasks = [];
33317
33382
  }
@@ -33343,10 +33408,10 @@ void main(void){
33343
33408
  }));
33344
33409
  }
33345
33410
  applyAll() {
33346
- return vy(this, void 0, void 0, function* () {
33411
+ return _y(this, void 0, void 0, function* () {
33347
33412
  for (; !this.tasks.every((t2) => t2.state === "finish"); )
33348
33413
  if (this.tasks.some((t2) => t2.state === "running"))
33349
- yield _y(16);
33414
+ yield yy(16);
33350
33415
  else {
33351
33416
  if (this.tasks.some((t2) => t2.state === "error"))
33352
33417
  return;
@@ -33373,16 +33438,16 @@ void main(void){
33373
33438
  });
33374
33439
  }
33375
33440
  }
33376
- var xy = n(131);
33377
- const by = new (n.n(xy)).a(), Ty = by.getDevice(), Ey = by.getBrowser(), Sy = by.getOS(), wy = { isDesktop() {
33441
+ var by = n(131);
33442
+ const Ty = new (n.n(by)).a(), Ey = Ty.getDevice(), Sy = Ty.getBrowser(), wy = Ty.getOS(), Ay = { isDesktop() {
33378
33443
  let t2 = true;
33379
- return Ty.type === "mobile" && (t2 = false), /Samsung/.test(Ey.name || "") && (t2 = false), window.__nativeTags && window.__nativeTags.platform && (t2 = false), t2;
33444
+ return Ey.type === "mobile" && (t2 = false), /Samsung/.test(Sy.name || "") && (t2 = false), window.__nativeTags && window.__nativeTags.platform && (t2 = false), t2;
33380
33445
  }, isIOS() {
33381
33446
  let t2 = false;
33382
- return window.__nativeTags && window.__nativeTags.platform && /^ios/i.test(window.__nativeTags.platform) && (t2 = true), Sy.name && /iOS/.test(Sy.name) && (t2 = true), t2;
33447
+ return window.__nativeTags && window.__nativeTags.platform && /^ios/i.test(window.__nativeTags.platform) && (t2 = true), wy.name && /iOS/.test(wy.name) && (t2 = true), t2;
33383
33448
  }, isAndroid() {
33384
33449
  let t2 = false;
33385
- return window.__nativeTags && window.__nativeTags.platform && /^android/i.test(window.__nativeTags.platform) && (t2 = true), Sy.name && /android/i.test(Sy.name) && (t2 = true), t2;
33450
+ return window.__nativeTags && window.__nativeTags.platform && /^android/i.test(window.__nativeTags.platform) && (t2 = true), wy.name && /android/i.test(wy.name) && (t2 = true), t2;
33386
33451
  }, isLowGpuMemory() {
33387
33452
  var t2, e2;
33388
33453
  const n2 = (e2 = (t2 = window.__nativeTags) === null || t2 === void 0 ? void 0 : t2.platform) !== null && e2 !== void 0 ? e2 : "";
@@ -33403,7 +33468,7 @@ void main(void){
33403
33468
  }
33404
33469
  return true;
33405
33470
  } };
33406
- var Ay = function(t2, e2, n2, i2) {
33471
+ var My = function(t2, e2, n2, i2) {
33407
33472
  return new (n2 || (n2 = Promise))(function(r2, o2) {
33408
33473
  function s2(t3) {
33409
33474
  try {
@@ -33428,11 +33493,11 @@ void main(void){
33428
33493
  l2((i2 = i2.apply(t2, e2 || [])).next());
33429
33494
  });
33430
33495
  };
33431
- class My {
33496
+ class Ry {
33432
33497
  constructor(t2, e2) {
33433
- if (this.renderer = t2, this.localStorage = e2, this.outputData = /* @__PURE__ */ new Map(), this.loadingSdfKeys = /* @__PURE__ */ new Set(), !My.worker) {
33498
+ if (this.renderer = t2, this.localStorage = e2, this.outputData = /* @__PURE__ */ new Map(), this.loadingSdfKeys = /* @__PURE__ */ new Set(), !Ry.worker) {
33434
33499
  const t3 = new Blob(['\nself.onmessage = function(e) {\n var data = e.data.data;\n var key = e.data.key;\n var height = Math.ceil(e.data.height);\n var width = Math.ceil(e.data.width);\n if (!data || !key) {\n return;\n }\n var maxDis = 0;\n var d = [];\n var p = [];\n var maxInt = Number.MAX_SAFE_INTEGER || 255 * 255 * 255;\n var setD = function(x, y, v) { d[y * width + x] = v; };\n var getD = function(x, y) { return d[y * width + x]; };\n var setP = function(x, y, v) { p[y * width + x] = v; };\n var getP = function(x, y) { return p[y * width + x]; };\n var isContains = function(x, y) { return x >= 0 && x < width && y >= 0 && y < height; };\n var isInterior = function(x, y) { return data[(y * width + x) * 4 + 3] > 10; };\n for (var y = 0; y < height; ++ y) {\n for (var x = 0; x < width; ++ x) {\n var c = isInterior(x, y);\n var t = isContains(x, y - 1) ? isInterior(x, y - 1) : false;\n var b = isContains(x, y + 1) ? isInterior(x, y + 1) : false;\n var l = isContains(x - 1, y) ? isInterior(x - 1, y) : false;\n var r = isContains(x + 1, y) ? isInterior(x + 1, y) : false;\n if (c !== t || c !== b || c !== l || c !== r) {\n setD(x, y, 0);\n setP(x, y, [x, y]);\n } else {\n setD(x, y, maxInt);\n setP(x, y, [-1, -1]);\n }\n }\n }\n \n var f = function (x, y, dir) {\n var d1 = 1;\n var d2 = Math.sqrt(2);\n var dx;\n var dy;\n var od;\n switch (dir) {\n case "TL": dx = -1; dy = -1; od = d2; break;\n case "T": dx = 0; dy = -1; od = d1; break;\n case "TR": dx = 1; dy = -1; od = d2; break;\n case "L": dx = -1; dy = 0; od = d1; break;\n case "R": dx = 1; dy = 0; od = d1; break;\n case "BL": dx = -1; dy = 1; od = d2; break;\n case "B": dx = 0; dy = 1; od = d1; break;\n case "BR": dx = 1; dy = 1; od = d2; break;\n }\n var b = isContains(x + dx, y + dy);\n var cb = b ? getD(x + dx, y + dy) : maxInt;\n if (cb + od < getD(x, y)) {\n var p = b ? getP(x + dx, y + dy) : [-1, -1];\n var dis = Math.sqrt(Math.pow(x - p[0], 2) + Math.pow(y - p[1], 2));\n setP(x, y, p);\n setD(x, y, dis);\n if (dis > maxDis) {\n maxDis = dis;\n }\n }\n };\n \n for (var y = 0; y < height; ++ y) {\n for (var x = 0; x < width; ++ x) {\n var dirs = ["TL", "T", "TR", "L"];\n for (var i = 0; i < dirs.length; ++ i) {\n var dir = dirs[i];\n f(x, y, dir);\n }\n }\n }\n\n for (var y = height - 1; y >= 0; -- y) {\n for (var x = width - 1; x >= 0; -- x) {\n var dirs = ["R", "BL", "B", "BR"];\n for (var i = 0; i < dirs.length; ++ i) {\n var dir = dirs[i];\n f(x, y, dir);\n }\n }\n }\n\n var outputData = [];\n for (var y = 0; y < height; ++ y) {\n for (var x = 0; x < width; ++ x) {\n outputData.push(isInterior(x, y) ? 255: 0);\n outputData.push(0);\n outputData.push(0);\n outputData.push(Math.ceil(getD(x, y) / maxDis * 255));\n }\n }\n self.postMessage({\n key, outputData, maxDis\n });\n};\n'], { type: "text/javascript" });
33435
- My.worker = new Worker(URL.createObjectURL(t3)), My.worker.onmessage = (t4) => {
33500
+ Ry.worker = new Worker(URL.createObjectURL(t3)), Ry.worker.onmessage = (t4) => {
33436
33501
  this.outputData.set(t4.data.key, { data: t4.data.outputData, maxDis: t4.data.maxDis });
33437
33502
  }, this.outputData.set("111", "222");
33438
33503
  }
@@ -33441,11 +33506,11 @@ void main(void){
33441
33506
  const l2 = document.createElement("canvas");
33442
33507
  l2.width = r2, l2.height = o2;
33443
33508
  const h2 = l2.getContext("2d");
33444
- if (!h2 || !My.worker)
33509
+ if (!h2 || !Ry.worker)
33445
33510
  return;
33446
33511
  h2.drawImage(s2, t2, e2, n2, i2);
33447
33512
  const { data: u2 } = h2.getImageData(0, 0, r2, o2);
33448
- My.worker.postMessage({ data: u2, key: a2, width: r2, height: o2 });
33513
+ Ry.worker.postMessage({ data: u2, key: a2, width: r2, height: o2 });
33449
33514
  }
33450
33515
  createSdf(t2, e2, n2) {
33451
33516
  const i2 = document.createElement("canvas");
@@ -33526,7 +33591,7 @@ void main(void){
33526
33591
  return r2.putImageData(new ImageData(Uint8ClampedArray.from(g2), t2, e2), 0, 0), { src: i2.toDataURL("image/png"), maxDis: o2 };
33527
33592
  }
33528
33593
  getSdf(t2, e2, n2) {
33529
- return Ay(this, void 0, void 0, function* () {
33594
+ return My(this, void 0, void 0, function* () {
33530
33595
  const i2 = Math.ceil(e2.width), r2 = Math.ceil(e2.height), o2 = Math.ceil(e2.width - t2.width) / 2, s2 = Math.ceil(e2.height - t2.height) / 2;
33531
33596
  let a2 = yield this.localStorage.getItem(`sdf-${n2}-src`), l2 = yield this.localStorage.getItem(`sdf-${n2}-maxDis`);
33532
33597
  if (!(a2 && l2 || this.loadingSdfKeys.has(n2))) {
@@ -33534,13 +33599,7 @@ void main(void){
33534
33599
  const e3 = this.renderer.plugins.extract.image(t2, "image/png");
33535
33600
  e3.addEventListener("load", () => {
33536
33601
  this.createSdfByWorker(o2, s2, t2.width, t2.height, i2, r2, e3, n2);
33537
- }), e3.addEventListener("error", () => null), yield function(t3, e4) {
33538
- return Am(this, void 0, void 0, function* () {
33539
- const n3 = Date.now();
33540
- for (; !t3() && Date.now() - n3 < e4; )
33541
- yield Cm(16);
33542
- });
33543
- }(() => !!this.outputData.has(n2), 2e3), this.loadingSdfKeys.delete(n2);
33602
+ }), e3.addEventListener("error", () => null), yield Im(() => !!this.outputData.has(n2), 2e3), this.loadingSdfKeys.delete(n2);
33544
33603
  const h2 = this.outputData.get(n2);
33545
33604
  if (h2) {
33546
33605
  this.outputData.delete(n2);
@@ -33560,8 +33619,8 @@ void main(void){
33560
33619
  });
33561
33620
  }
33562
33621
  }
33563
- My.worker = null;
33564
- var Ry = function(t2, e2, n2, i2) {
33622
+ Ry.worker = null;
33623
+ var Cy = function(t2, e2, n2, i2) {
33565
33624
  return new (n2 || (n2 = Promise))(function(r2, o2) {
33566
33625
  function s2(t3) {
33567
33626
  try {
@@ -33586,23 +33645,23 @@ void main(void){
33586
33645
  l2((i2 = i2.apply(t2, e2 || [])).next());
33587
33646
  });
33588
33647
  };
33589
- class Cy {
33590
- constructor(t2, e2, n2, i2, r2, o2, s2, a2, l2, h2, u2, c2, d2, p2, f2) {
33591
- this.loader = t2, this.mode = e2, this.renderer = n2, this.ticker = i2, this.view = r2, this.clock = o2, this.objPoolGroup = s2, this.errorChannel = a2, this.localstorage = l2, this.logger = h2, this.loaderDelegate = u2, this.isPlayerPaused = c2, this.maxResolution = d2, this.volumeAdjuster = p2, this.forceCanvas = f2, this.currentStageIndex = 0, this.cacheCount = wy.isDesktop() ? 2 : 1, this.stageStates = /* @__PURE__ */ Object.create(null), this.stageJsons = /* @__PURE__ */ Object.create(null), this.stageCtxs = /* @__PURE__ */ Object.create(null), this.stageImpls = /* @__PURE__ */ Object.create(null), this.taskId = "", this.url = "", this.runningAudio = /* @__PURE__ */ new Map(), this.activeMedia = /* @__PURE__ */ new Set(), this.microTaskManager = new gy(i2), this.sdfManager = new My(n2, l2);
33648
+ class Py {
33649
+ constructor(t2, e2, n2, i2, r2, o2, s2, a2, l2, h2, u2, c2, d2, p2, f2, m2) {
33650
+ this.loader = t2, this.mode = e2, this.renderer = n2, this.ticker = i2, this.view = r2, this.clock = o2, this.objPoolGroup = s2, this.errorChannel = a2, this.localstorage = l2, this.logger = h2, this.loaderDelegate = u2, this.isPlayerPaused = c2, this.maxResolution = d2, this.volumeAdjuster = p2, this.forceCanvas = f2, this.globalEventHub = m2, this.currentStageIndex = 0, this.cacheCount = Ay.isDesktop() ? 2 : 1, this.stageStates = /* @__PURE__ */ Object.create(null), this.stageJsons = /* @__PURE__ */ Object.create(null), this.stageCtxs = /* @__PURE__ */ Object.create(null), this.stageImpls = /* @__PURE__ */ Object.create(null), this.taskId = "", this.url = "", this.runningAudio = /* @__PURE__ */ new Map(), this.activeMedia = /* @__PURE__ */ new Set(), this.microTaskManager = new vy(i2), this.sdfManager = new Ry(n2, l2);
33592
33651
  }
33593
33652
  setResourceData(t2, e2) {
33594
33653
  this.taskId = t2, this.url = e2;
33595
33654
  }
33596
33655
  createCtx(t2) {
33597
33656
  const { task: e2 } = this.stageStates[t2];
33598
- e2.addMTask(() => Ry(this, void 0, void 0, function* () {
33599
- const e3 = new km(this.loader), n2 = new Ja.a(), i2 = { taskId: this.taskId, mode: this.mode, renderer: this.renderer, graphicsTexture: new Jm(), stageWidth: 0, stageHeight: 0, ticker: this.ticker, timingTargets: new Qm(n2), eventHub: n2, view: this.view, medias: /* @__PURE__ */ Object.create(null), lastViewedIndex: 0, conflictTimeNodeManager: new Km(), clock: this.clock, spriteTexture: e3, slideIndex: t2, objectPoolGroup: this.objPoolGroup, hasBackgroundFillShape: false, slideScopeEventHub: new Ja.a(), logger: this.logger, sdfManager: this.sdfManager, loaderDelegate: this.loaderDelegate, runningAudio: this.runningAudio, activeMedia: this.activeMedia, isPlayerPaused: this.isPlayerPaused, timingEventHub: new Ja.a(), maxResolution: this.maxResolution, animatedIds: /* @__PURE__ */ new Set(), volumeAdjuster: this.volumeAdjuster, forceCanvas: this.forceCanvas };
33657
+ e2.addMTask(() => Cy(this, void 0, void 0, function* () {
33658
+ const e3 = new Gm(this.loader), n2 = new Ja.a(), i2 = { taskId: this.taskId, mode: this.mode, renderer: this.renderer, graphicsTexture: new Km(), stageWidth: 0, stageHeight: 0, ticker: this.ticker, timingTargets: new $m(n2), eventHub: n2, view: this.view, medias: /* @__PURE__ */ Object.create(null), lastViewedIndex: 0, conflictTimeNodeManager: new Qm(), clock: this.clock, spriteTexture: e3, slideIndex: t2, objectPoolGroup: this.objPoolGroup, hasBackgroundFillShape: false, slideScopeEventHub: new Ja.a(), logger: this.logger, sdfManager: this.sdfManager, loaderDelegate: this.loaderDelegate, runningAudio: this.runningAudio, activeMedia: this.activeMedia, isPlayerPaused: this.isPlayerPaused, timingEventHub: new Ja.a(), maxResolution: this.maxResolution, animatedIds: /* @__PURE__ */ new Set(), volumeAdjuster: this.volumeAdjuster, forceCanvas: this.forceCanvas, globalEventHub: this.globalEventHub };
33600
33659
  this.stageCtxs[t2] = i2;
33601
33660
  }), "@StagePool[createCtx]");
33602
33661
  }
33603
33662
  loadStageJson(t2) {
33604
33663
  const { task: e2 } = this.stageStates[t2];
33605
- e2.addMTask(() => Ry(this, void 0, void 0, function* () {
33664
+ e2.addMTask(() => Cy(this, void 0, void 0, function* () {
33606
33665
  const e3 = yield this.loader.fetchJson(`${this.url}/${this.taskId}/jsonOutput/slide-${t2}.json`);
33607
33666
  this.stageJsons[t2] = e3, this.stageCtxs[t2].stageWidth = e3.width, this.stageCtxs[t2].stageHeight = e3.height, this.stageCtxs[t2].featureList = e3.featureList;
33608
33667
  }), "@StagePool[loadStageJson]");
@@ -33627,7 +33686,7 @@ void main(void){
33627
33686
  createStage(t2) {
33628
33687
  const { task: e2 } = this.stageStates[t2];
33629
33688
  e2.addMTask(() => {
33630
- const n2 = this.stageJsons[t2], i2 = this.stageCtxs[t2], r2 = new my(n2, i2, { x: 0, y: 0 }, e2);
33689
+ const n2 = this.stageJsons[t2], i2 = this.stageCtxs[t2], r2 = new gy(n2, i2, { x: 0, y: 0 }, e2);
33631
33690
  return this.stageImpls[t2] = r2, Promise.resolve();
33632
33691
  }, "@StagePool[createStage]");
33633
33692
  }
@@ -33637,7 +33696,7 @@ void main(void){
33637
33696
  }
33638
33697
  createGraphicsTexture(t2) {
33639
33698
  const { task: e2 } = this.stageStates[t2];
33640
- e2.addMTask(() => Ry(this, void 0, void 0, function* () {
33699
+ e2.addMTask(() => Cy(this, void 0, void 0, function* () {
33641
33700
  const n2 = this.stageCtxs[t2];
33642
33701
  n2.graphicsTexture.pack().forEach((t3, i2) => {
33643
33702
  e2.addSubMTask(() => n2.graphicsTexture.render(t3, i2, this.objPoolGroup), "@StagePool[graphicsTexture.render]");
@@ -33646,7 +33705,7 @@ void main(void){
33646
33705
  }
33647
33706
  renderStage(t2) {
33648
33707
  const { task: e2 } = this.stageStates[t2];
33649
- e2.addMTask(() => Ry(this, void 0, void 0, function* () {
33708
+ e2.addMTask(() => Cy(this, void 0, void 0, function* () {
33650
33709
  const n2 = this.stageImpls[t2];
33651
33710
  yield n2.render(e2);
33652
33711
  }), "@StagePool[renderStage]");
@@ -33670,7 +33729,7 @@ void main(void){
33670
33729
  preload(t2, e2 = false) {
33671
33730
  if (this.stageImpls[t2] || this.stageStates[t2])
33672
33731
  return Promise.resolve();
33673
- const n2 = new yy(t2, this.taskId, this.logger);
33732
+ const n2 = new xy(t2, this.taskId, this.logger);
33674
33733
  return n2.on("task-error", (t3, e3) => {
33675
33734
  delete this.stageStates[e3], delete this.stageImpls[e3], delete this.stageCtxs[e3], this.errorChannel.emit("error", t3, e3);
33676
33735
  }), this.stageStates[t2] = { state: "load", task: n2 }, this.createCtx(t2), this.loadStageJson(t2), this.loadSpriteSheets(t2), this.createStage(t2), this.preRenderStage(t2), this.createGraphicsTexture(t2), this.renderStage(t2), this.microTaskManager.addTask(n2), e2 ? n2.applyAll() : new Promise((e3) => {
@@ -33684,7 +33743,7 @@ void main(void){
33684
33743
  return this.stageJsons[t2] || null;
33685
33744
  }
33686
33745
  getStage(t2) {
33687
- return Ry(this, void 0, void 0, function* () {
33746
+ return Cy(this, void 0, void 0, function* () {
33688
33747
  this.currentStageIndex = t2;
33689
33748
  const e2 = this.stageStates[t2];
33690
33749
  return (e2 == null ? void 0 : e2.state) === "finish" && this.stageImpls[t2] ? this.stageImpls[t2] : (e2 == null ? void 0 : e2.state) === "load" ? (yield e2.task.applyAll(), this.stageImpls[t2]) : (yield this.preload(t2, true), this.stageImpls[t2]);
@@ -33694,7 +33753,7 @@ void main(void){
33694
33753
  this.runningAudio.clear();
33695
33754
  }
33696
33755
  }
33697
- var Py = function(t2, e2, n2, i2) {
33756
+ var Iy = function(t2, e2, n2, i2) {
33698
33757
  return new (n2 || (n2 = Promise))(function(r2, o2) {
33699
33758
  function s2(t3) {
33700
33759
  try {
@@ -33719,10 +33778,10 @@ void main(void){
33719
33778
  l2((i2 = i2.apply(t2, e2 || [])).next());
33720
33779
  });
33721
33780
  };
33722
- class Iy {
33781
+ class Oy {
33723
33782
  constructor(t2) {
33724
33783
  var e2;
33725
- this.logger = t2, this.taskId = "", this.isIndexDBReady = false, this.memoryCache = /* @__PURE__ */ new Map(), (e2 = Iy.localCache) === null || e2 === void 0 || e2.ready((t3) => {
33784
+ this.logger = t2, this.taskId = "", this.isIndexDBReady = false, this.memoryCache = /* @__PURE__ */ new Map(), (e2 = Oy.localCache) === null || e2 === void 0 || e2.ready((t3) => {
33726
33785
  t3 || (this.isIndexDBReady = true);
33727
33786
  }).catch(() => {
33728
33787
  t2.warn("local storage not ready", this.taskId);
@@ -33735,24 +33794,24 @@ void main(void){
33735
33794
  this.taskId = t2;
33736
33795
  }
33737
33796
  getItem(t2) {
33738
- return Py(this, void 0, void 0, function* () {
33797
+ return Iy(this, void 0, void 0, function* () {
33739
33798
  let e2 = null;
33740
- if (this.couldUseIndexDBCache && Iy.localCache)
33799
+ if (this.couldUseIndexDBCache && Oy.localCache)
33741
33800
  try {
33742
- e2 = yield Pm(() => Iy.localCache.getItem(`${this.taskId}/${t2}`), 500);
33801
+ e2 = yield Pm(() => Oy.localCache.getItem(`${this.taskId}/${t2}`), 500);
33743
33802
  } catch (t3) {
33744
33803
  }
33745
33804
  return e2 = e2 === Rm ? null : e2, e2 || this.memoryCache.get(t2) || null;
33746
33805
  });
33747
33806
  }
33748
33807
  setItem(t2, e2, n2 = false) {
33749
- return Py(this, void 0, void 0, function* () {
33808
+ return Iy(this, void 0, void 0, function* () {
33750
33809
  if (!this.couldUseIndexDBCache)
33751
33810
  return n2 && this.memoryCache.set(t2, e2), Promise.resolve();
33752
- if (Iy.localCache) {
33811
+ if (Oy.localCache) {
33753
33812
  let i2 = null;
33754
33813
  try {
33755
- i2 = yield Pm(() => Iy.localCache.setItem(`${this.taskId}/${t2}`, e2).catch(() => {
33814
+ i2 = yield Pm(() => Oy.localCache.setItem(`${this.taskId}/${t2}`, e2).catch(() => {
33756
33815
  n2 && this.memoryCache.set(t2, e2);
33757
33816
  }), 500);
33758
33817
  } catch (t3) {
@@ -33763,29 +33822,29 @@ void main(void){
33763
33822
  }
33764
33823
  dispose() {
33765
33824
  var t2;
33766
- this.memoryCache = /* @__PURE__ */ new Map(), this.couldUseIndexDBCache && ((t2 = Iy.localCache) === null || t2 === void 0 || t2.keys().then((t3) => {
33825
+ this.memoryCache = /* @__PURE__ */ new Map(), this.couldUseIndexDBCache && ((t2 = Oy.localCache) === null || t2 === void 0 || t2.keys().then((t3) => {
33767
33826
  t3.filter((t4) => t4.indexOf(this.taskId) >= 0).forEach((t4) => {
33768
33827
  var e2;
33769
- (e2 = Iy.localCache) === null || e2 === void 0 || e2.removeItem(t4).catch(() => {
33828
+ (e2 = Oy.localCache) === null || e2 === void 0 || e2.removeItem(t4).catch(() => {
33770
33829
  });
33771
33830
  });
33772
33831
  }).catch(() => {
33773
33832
  }));
33774
33833
  }
33775
33834
  }
33776
- Iy.localCache = null;
33835
+ Oy.localCache = null;
33777
33836
  try {
33778
- Iy.localCache = s.createInstance({ name: "slide_local_cache", driver: s.INDEXEDDB, version: 1 });
33837
+ Oy.localCache = s.createInstance({ name: "slide_local_cache", driver: s.INDEXEDDB, version: 1 });
33779
33838
  } catch (t2) {
33780
33839
  }
33781
- const Oy = new Rh.j();
33782
- class Ny {
33840
+ const Ny = new Rh.j();
33841
+ class Ly {
33783
33842
  constructor(t2) {
33784
33843
  this.localStorage = t2;
33785
33844
  }
33786
33845
  canvas(t2, e2, n2, i2) {
33787
33846
  let r2, o2, s2, a2 = false, l2 = false;
33788
- t2 && (t2 instanceof Uh.P ? s2 = t2 : (s2 = e2.generateTexture(t2), l2 = true)), s2 ? (r2 = s2.baseTexture.resolution, o2 = s2.frame, a2 = false, e2.renderTexture.bind(s2)) : (r2 = e2.resolution, a2 = true, o2 = Oy, o2.width = e2.width, o2.height = e2.height, e2.renderTexture.bind(null));
33847
+ t2 && (t2 instanceof Uh.P ? s2 = t2 : (s2 = e2.generateTexture(t2), l2 = true)), s2 ? (r2 = s2.baseTexture.resolution, o2 = s2.frame, a2 = false, e2.renderTexture.bind(s2)) : (r2 = e2.resolution, a2 = true, o2 = Ny, o2.width = e2.width, o2.height = e2.height, e2.renderTexture.bind(null));
33789
33848
  const h2 = Math.floor(o2.width * r2 + 1e-4), u2 = Math.floor(o2.height * r2 + 1e-4);
33790
33849
  let c2 = document.createElement("canvas");
33791
33850
  c2.width = h2, c2.height = u2;
@@ -33796,7 +33855,7 @@ void main(void){
33796
33855
  d2.putImageData(n2, 0, 0);
33797
33856
  else {
33798
33857
  const t3 = d2.getImageData(0, 0, h2, u2), n3 = new Uint8Array(4 * h2 * u2), { gl: s3 } = e2;
33799
- s3.readPixels(o2.x * r2, o2.y * r2, h2, u2, s3.RGBA, s3.UNSIGNED_BYTE, n3), Ny.arrayPostDivide(n3, t3.data), d2.putImageData(t3, 0, 0), i2 && this.localStorage.setItem(i2, t3).catch(() => {
33858
+ s3.readPixels(o2.x * r2, o2.y * r2, h2, u2, s3.RGBA, s3.UNSIGNED_BYTE, n3), Ly.arrayPostDivide(n3, t3.data), d2.putImageData(t3, 0, 0), i2 && this.localStorage.setItem(i2, t3).catch(() => {
33800
33859
  });
33801
33860
  }
33802
33861
  if (a2) {
@@ -33814,7 +33873,7 @@ void main(void){
33814
33873
  }
33815
33874
  }
33816
33875
  }
33817
- class Ly extends Ja.a {
33876
+ class Dy extends Ja.a {
33818
33877
  constructor() {
33819
33878
  super(...arguments), this._volume = 0.5;
33820
33879
  }
@@ -33825,7 +33884,7 @@ void main(void){
33825
33884
  t2 < 0 && (t2 = 0), t2 > 1 && (t2 = 1), this._volume = t2, this.emit("update", this._volume);
33826
33885
  }
33827
33886
  }
33828
- var Dy = function(t2, e2, n2, i2) {
33887
+ var Fy = function(t2, e2, n2, i2) {
33829
33888
  return new (n2 || (n2 = Promise))(function(r2, o2) {
33830
33889
  function s2(t3) {
33831
33890
  try {
@@ -33851,12 +33910,17 @@ void main(void){
33851
33910
  });
33852
33911
  };
33853
33912
  window.PIXI = i, Sh.skipHello();
33854
- const Fy = { randomBar: "RandomLines", circle: "Shape", ripple: "Ripples", wipe: "Erase", dissolve: "Dissolve", morph: "Smooth", fade: "FadeInOut", push: "Push", split: "Separation", reveal: "Display", pull: "Uncover", cover: "Cover", flash: "Flash", checker: "Checkerboard", blinds: "WindowShades", curtains: "Curtain", fallOver: "Fall", drape: "Suspension", wheel: "Clock", comb: "Combing", warp: "Scale", peelOff: "PeelOff", flip: "Flip" }, By = { mainSeqStepChange: "mainSeqStepChange", mainSeqStateChange: "mainSeqStateChange", interactiveSeqStateChange: "interactiveSeqStateChange", interactiveSeqAction: "interactiveSeqAction", mainSeqStepStart: "mainSeqStepStart", mainSeqStepEnd: "mainSeqStepEnd", slideChange: "slideChange", renderStart: "renderStart", renderEnd: "renderEnd", hyperlinkTrigger: "hyperlinkTrigger", animateStart: "animateStart", animateEnd: "animateEnd", mediaSeek: "mediaSeek", mediaPlay: "mediaPlay", mediaPause: "mediaPause", mediaStop: "mediaStop", requestNextSlide: "requestNextSlide", requestPrevSlide: "requestPrevSlide", requestGotoSlide: "requestGotoSlide", userInput: "userInput" };
33855
- class Uy extends Ja.a {
33913
+ const By = { randomBar: "RandomLines", circle: "Shape", ripple: "Ripples", wipe: "Erase", dissolve: "Dissolve", morph: "Smooth", fade: "FadeInOut", push: "Push", split: "Separation", reveal: "Display", pull: "Uncover", cover: "Cover", flash: "Flash", checker: "Checkerboard", blinds: "WindowShades", curtains: "Curtain", fallOver: "Fall", drape: "Suspension", wheel: "Clock", comb: "Combing", warp: "Scale", peelOff: "PeelOff", flip: "Flip" }, Uy = { mainSeqStepChange: "mainSeqStepChange", mainSeqStateChange: "mainSeqStateChange", interactiveSeqStateChange: "interactiveSeqStateChange", interactiveSeqAction: "interactiveSeqAction", mainSeqStepStart: "mainSeqStepStart", mainSeqStepEnd: "mainSeqStepEnd", slideChange: "slideChange", renderStart: "renderStart", renderEnd: "renderEnd", hyperlinkTrigger: "hyperlinkTrigger", animateStart: "animateStart", animateEnd: "animateEnd", mediaSeek: "mediaSeek", mediaPlay: "mediaPlay", mediaPause: "mediaPause", mediaStop: "mediaStop", requestNextSlide: "requestNextSlide", requestPrevSlide: "requestPrevSlide", requestGotoSlide: "requestGotoSlide", userInput: "userInput", fullscreenChange: "fullscreenChange" };
33914
+ class ky extends Ja.a {
33856
33915
  constructor(t2, e2 = {}) {
33857
- super(), this.errorChannel = new Ja.a(), this.transactionPlayer = null, this.isForward = true, this.drawCall = 0, this.scale = 1, this._isPaused = false, this.maxResolution = new Rh.g(0, 0), this.isNVIDIA = false, this.fps = new bm(), this.designWidth = 0, this.designHeight = 0, this.currentIndex = 0, this.slideCount = 0, this.runtime = { drawCall: 0, fps: 0 }, this.isPlayerPaused = () => this._isPaused, this.onWebGLLost = () => {
33916
+ super(), this.errorChannel = new Ja.a(), this.transactionPlayer = null, this.isForward = true, this.drawCall = 0, this.scale = 1, this._isPaused = false, this.maxResolution = new Rh.g(0, 0), this.isNVIDIA = false, this.fps = new bm(), this.designWidth = 0, this.designHeight = 0, this.currentIndex = 0, this.slideCount = 0, this.runtime = { drawCall: 0, fps: 0 }, this.globalEventHub = new Ja.a(), this.globalVideoSprite = new Kd(), this.isPlayerPaused = () => this._isPaused, this.onWebGLLost = () => {
33858
33917
  this.errorChannel.emit("error", new Tm(gm.CanvasCrash, "webgl context lost."));
33859
- }, this.logger = t2.logger, this.mode = t2.mode, this.volumeAdjuster = t2.volumeAdjuster, this.localStorage = new Iy(this.logger), this.cachedExtract = new Ny(this.localStorage), this.config = { minFPS: tl()(e2.minFPS) ? 30 : e2.minFPS, maxFPS: tl()(e2.maxFPS) ? 40 : e2.maxFPS, resolution: tl()(e2.resolution) ? 1 : e2.resolution, autoFPS: !tl()(e2.autoFPS) && e2.autoFPS, autoResolution: !tl()(e2.autoResolution) && e2.autoResolution, transactionBgColor: tl()(e2.transactionBgColor) ? 0 : e2.transactionBgColor, maxResolutionLevel: this.getMaxResolution(e2.maxResolutionLevel), forceCanvas: !tl()(e2.forceCanvas) && e2.forceCanvas, enableNvidiaDetect: !tl()(e2.enableNvidiaDetect) && e2.enableNvidiaDetect }, this.updateMaxResolutionLevel(this.config.maxResolutionLevel), this.loader = new Nm(this.localStorage, t2.useLocalCache, this.logger, t2.resourceTimeout, t2.loadDelegate), this.app = new kh({ antialias: true, autoDensity: false, backgroundColor: 16777215, forceCanvas: this.config.forceCanvas }), this.updateConfig(this.config), this.app.ticker.maxFPS = 60, this.app.ticker.minFPS = this.config.minFPS, this.app.ticker.maxFPS = this.config.maxFPS, this.app.view.style.zIndex = "1", this.app.stage.sortableChildren = true;
33918
+ }, this.onRequestFullscreenVideo = (t3) => {
33919
+ const { texture: e3, index: n3, targetId: i2 } = t3;
33920
+ n3 === this.currentIndex && (this.onRequestCancelFullscreenVideo(), this.globalVideoSprite.texture = e3, this.globalVideoSprite.width = this.designWidth, this.globalVideoSprite.height = this.designHeight, this.globalVideoSprite.interactive = true, this.app.stage.addChild(this.globalVideoSprite), this.globalEventHub.emit("onFullscreenChange", { status: true, targetId: i2, slideIndex: this.currentIndex }));
33921
+ }, this.onRequestCancelFullscreenVideo = () => {
33922
+ this.globalVideoSprite.texture.destroy(false), this.app.stage.removeChild(this.globalVideoSprite), this.globalEventHub.emit("onFullscreenChange", { status: false, slideIndex: this.currentIndex });
33923
+ }, this.logger = t2.logger, this.mode = t2.mode, this.volumeAdjuster = t2.volumeAdjuster, this.localStorage = new Oy(this.logger), this.cachedExtract = new Ly(this.localStorage), this.config = { minFPS: tl()(e2.minFPS) ? 30 : e2.minFPS, maxFPS: tl()(e2.maxFPS) ? 40 : e2.maxFPS, resolution: tl()(e2.resolution) ? 1 : e2.resolution, autoFPS: !tl()(e2.autoFPS) && e2.autoFPS, autoResolution: !tl()(e2.autoResolution) && e2.autoResolution, transactionBgColor: tl()(e2.transactionBgColor) ? 0 : e2.transactionBgColor, maxResolutionLevel: this.getMaxResolution(e2.maxResolutionLevel), forceCanvas: !tl()(e2.forceCanvas) && e2.forceCanvas, enableNvidiaDetect: !tl()(e2.enableNvidiaDetect) && e2.enableNvidiaDetect }, this.updateMaxResolutionLevel(this.config.maxResolutionLevel), this.loader = new Lm(this.localStorage, t2.useLocalCache, this.logger, t2.resourceTimeout, t2.loadDelegate), this.app = new kh({ antialias: true, autoDensity: false, backgroundColor: 16777215, forceCanvas: this.config.forceCanvas }), this.updateConfig(this.config), this.app.ticker.maxFPS = 60, this.app.ticker.minFPS = this.config.minFPS, this.app.ticker.maxFPS = this.config.maxFPS, this.app.view.style.zIndex = "1", this.app.stage.sortableChildren = true;
33860
33924
  const n2 = this.app.renderer;
33861
33925
  if (n2.gl) {
33862
33926
  const { drawElements: t3 } = n2.gl, e3 = n2.gl.getExtension("WEBGL_debug_renderer_info"), i2 = n2.gl.getParameter(e3.UNMASKED_RENDERER_WEBGL);
@@ -33876,12 +33940,13 @@ void main(void){
33876
33940
  }
33877
33941
  }), this.app.ticker.add(() => {
33878
33942
  this.runtime.drawCall = this.drawCall, this.runtime.fps = Math.floor(this.app.ticker.minFPS), this.drawCall = 0;
33879
- }, null, Ch.c.LOW), this.clock = new Dm(this.app.ticker), this.objPoolGroup = Mm(), this.stagePool = new Cy(this.loader, this.mode, this.app.renderer, this.app.ticker, this.app.view, this.clock, this.objPoolGroup, this.errorChannel, this.localStorage, this.logger, t2.loadDelegate, this.isPlayerPaused, this.maxResolution, this.volumeAdjuster, this.config.forceCanvas), this.app.view.addEventListener("webglcontextlost", this.onWebGLLost);
33943
+ }, null, Ch.c.LOW), this.clock = new Fm(this.app.ticker), this.objPoolGroup = Mm(), this.stagePool = new Py(this.loader, this.mode, this.app.renderer, this.app.ticker, this.app.view, this.clock, this.objPoolGroup, this.errorChannel, this.localStorage, this.logger, t2.loadDelegate, this.isPlayerPaused, this.maxResolution, this.volumeAdjuster, this.config.forceCanvas, this.globalEventHub), this.app.view.addEventListener("webglcontextlost", this.onWebGLLost);
33880
33944
  try {
33881
33945
  this.config.forceCanvas || (this.transactionPlayer = new Eh());
33882
33946
  } catch (t3) {
33883
33947
  /Error creating WebGL context/.test(t3.message) ? this.errorChannel.emit("error", new Tm(gm.CanvasCrash, "webgl context lost.")) : this.errorChannel.emit("error", new Tm(gm.RuntimeWarn, t3.message));
33884
33948
  }
33949
+ this.globalEventHub.on("requestFullscreen", this.onRequestFullscreenVideo), this.globalEventHub.on("requestCancelFullscreen", this.onRequestCancelFullscreenVideo);
33885
33950
  }
33886
33951
  get view() {
33887
33952
  return this.app.renderer ? this.app.view : null;
@@ -33895,7 +33960,7 @@ void main(void){
33895
33960
  return ((t2 = this.currentStage) === null || t2 === void 0 ? void 0 : t2.json.prevIndex) ? this.currentStage.json.prevIndex : this.currentIndex - 1;
33896
33961
  }
33897
33962
  getMaxResolution(t2) {
33898
- return !tl()(t2) && Number.isInteger(t2) ? (t2 < 1 && (t2 = 1), t2 > 4 && (t2 = 4), t2) : Uy.platform.isAndroid() || Uy.platform.isIOS() ? 2 : 4;
33963
+ return !tl()(t2) && Number.isInteger(t2) ? (t2 < 1 && (t2 = 1), t2 > 4 && (t2 = 4), t2) : ky.platform.isAndroid() || ky.platform.isIOS() ? 2 : 4;
33899
33964
  }
33900
33965
  updateMaxResolutionLevel(t2) {
33901
33966
  t2 < 1 && (t2 = 1), t2 > 4 && (t2 = 4);
@@ -33906,7 +33971,7 @@ void main(void){
33906
33971
  tl()(t2.maxFPS) || tl()(t2.minFPS) || (this.config.maxFPS = t2.maxFPS, this.app.ticker.maxFPS = t2.maxFPS, this.config.minFPS = t2.minFPS, this.app.ticker.minFPS = t2.minFPS), tl()(t2.resolution) || (this.config.resolution = t2.resolution, this.updateResolution(this.scale * this.config.resolution)), tl()(t2.autoFPS) || (this.config.autoFPS = t2.autoFPS), tl()(t2.autoResolution) || (this.config.autoResolution = t2.autoResolution), tl()(t2.transactionBgColor) || (this.config.transactionBgColor = t2.transactionBgColor), this.taskId && this.logger.info("ppt player update config: " + JSON.stringify(this.config), this.taskId), tl()(t2.maxResolutionLevel) || (this.config.maxResolutionLevel = t2.maxResolutionLevel, this.updateMaxResolutionLevel(this.config.maxResolutionLevel));
33907
33972
  }
33908
33973
  preload(t2) {
33909
- return Dy(this, void 0, void 0, function* () {
33974
+ return Fy(this, void 0, void 0, function* () {
33910
33975
  t2 < 1 || t2 > this.slideCount || (this.logger.info(`preload slide ${t2} begin`, this.taskId), yield this.stagePool.preload(t2), this.logger.info(`preload slide ${t2} end`, this.taskId));
33911
33976
  });
33912
33977
  }
@@ -33925,18 +33990,18 @@ void main(void){
33925
33990
  }
33926
33991
  renderSlide(t2) {
33927
33992
  var e2, n2, i2;
33928
- return Dy(this, void 0, void 0, function* () {
33993
+ return Fy(this, void 0, void 0, function* () {
33929
33994
  if (this._isPaused)
33930
33995
  return void this.logger.info("ppt play prevent render slide with paused state", this.taskId);
33931
- this.logger.info("render slide " + t2, this.taskId), this.emit(By.renderStart, t2);
33996
+ this.logger.info("render slide " + t2, this.taskId), this.emit(Uy.renderStart, t2);
33932
33997
  const r2 = yield this.stagePool.getStage(t2), o2 = `snapshot-${t2}-${this.isForward ? "start" : "end"}`, s2 = yield this.localStorage.getItem(o2);
33933
33998
  if (!r2)
33934
33999
  return;
33935
- this.translateEvent(r2.ctx.eventHub, [By.mainSeqStepChange, By.mainSeqStateChange, By.hyperlinkTrigger, By.interactiveSeqAction, By.mainSeqStepStart, By.mainSeqStepEnd, By.animateStart, By.animateEnd, By.mediaPlay, By.mediaPause, By.mediaSeek, By.mediaStop, By.requestGotoSlide, By.requestNextSlide, By.requestPrevSlide, By.interactiveSeqStateChange, By.userInput]), this.currentIndex = Number(t2);
34000
+ this.translateEvent(r2.ctx.eventHub, [Uy.mainSeqStepChange, Uy.mainSeqStateChange, Uy.hyperlinkTrigger, Uy.interactiveSeqAction, Uy.mainSeqStepStart, Uy.mainSeqStepEnd, Uy.animateStart, Uy.animateEnd, Uy.mediaPlay, Uy.mediaPause, Uy.mediaSeek, Uy.mediaStop, Uy.requestGotoSlide, Uy.requestNextSlide, Uy.requestPrevSlide, Uy.interactiveSeqStateChange, Uy.userInput, Uy.fullscreenChange]), this.currentIndex = Number(t2);
33936
34001
  const { width: a2, height: l2, slideCount: h2 } = r2.json;
33937
34002
  this.slideCount = h2, this.designWidth = a2, this.designHeight = l2, (e2 = this.currentStage) === null || e2 === void 0 || e2.clearOnSlideChange();
33938
34003
  const u2 = this.currentStage;
33939
- this.currentStage = r2, r2.initOnReuse(), r2.createTiming(), r2.container.visible = true, r2.collectMainSeqStartValue(), this.isForward ? r2.setMainSeqStep(0, "start") : r2.setMainSeqStep(-1, "end");
34004
+ this.currentStage = r2, r2.initOnReuse(), r2.createTiming(), r2.container.visible = true, r2.collectMainSeqStartValue(), this.isForward ? r2.setMainSeqStep(0, "start") : r2.setMainSeqStep(-1, "end"), this.onRequestCancelFullscreenVideo();
33940
34005
  let c2 = false;
33941
34006
  if (r2.json.transition && r2.json.transition.type && this.app.stage.children.length > 0 && this.view && u2) {
33942
34007
  let { transition: t3 } = r2.json;
@@ -33955,7 +34020,7 @@ void main(void){
33955
34020
  }
33956
34021
  (i2 = this.transactionPlayer) === null || i2 === void 0 || i2.dispose();
33957
34022
  }
33958
- this.isForward ? yield r2.startTiming() : r2.setMainSeqApplied(), r2.ctx.slideScopeEventHub.emit("slide-render", r2.ctx.slideIndex), this.emit(By.renderEnd, t2), this.emit(By.slideChange, t2), this.preload(t2 + 1).catch((e3) => {
34023
+ this.isForward ? yield r2.startTiming() : r2.setMainSeqApplied(), r2.ctx.slideScopeEventHub.emit("slide-render", r2.ctx.slideIndex), this.emit(Uy.renderEnd, t2), this.emit(Uy.slideChange, t2), this.preload(t2 + 1).catch((e3) => {
33959
34024
  this.errorChannel.emit("error", Tm.transform(e3), t2 + 1);
33960
34025
  }), this.preload(t2 - 1).catch((e3) => {
33961
34026
  this.errorChannel.emit("error", Tm.transform(e3), t2 - 1);
@@ -33969,7 +34034,7 @@ void main(void){
33969
34034
  return new T(o2);
33970
34035
  }
33971
34036
  renderToBase64(t2, e2, n2) {
33972
- return Dy(this, void 0, void 0, function* () {
34037
+ return Fy(this, void 0, void 0, function* () {
33973
34038
  const i2 = yield this.stagePool.getStage(t2);
33974
34039
  if (i2) {
33975
34040
  const { width: r2, height: o2 } = i2.json;
@@ -33983,7 +34048,7 @@ void main(void){
33983
34048
  });
33984
34049
  }
33985
34050
  renderMainSeqToBase64(t2, e2, n2) {
33986
- return Dy(this, void 0, void 0, function* () {
34051
+ return Fy(this, void 0, void 0, function* () {
33987
34052
  const i2 = [], r2 = yield this.stagePool.getStage(t2);
33988
34053
  if (r2.createTiming(), r2) {
33989
34054
  const { width: t3, height: o2 } = r2.json;
@@ -34004,7 +34069,7 @@ void main(void){
34004
34069
  });
34005
34070
  }
34006
34071
  snapshotWithTimingEnd(t2) {
34007
- return Dy(this, void 0, void 0, function* () {
34072
+ return Fy(this, void 0, void 0, function* () {
34008
34073
  const e2 = yield this.stagePool.getStage(t2);
34009
34074
  if (e2) {
34010
34075
  const { width: n2, height: i2 } = e2.json;
@@ -34028,9 +34093,9 @@ void main(void){
34028
34093
  initTransactionPlayer(t2) {
34029
34094
  var e2, n2, i2, r2, o2;
34030
34095
  const s2 = (e2 = this.view) === null || e2 === void 0 ? void 0 : e2.parentElement;
34031
- if (this.view && s2 && Fy[t2.type] && this.transactionPlayer) {
34096
+ if (this.view && s2 && By[t2.type] && this.transactionPlayer) {
34032
34097
  const e3 = (n2 = this.transactionPlayer) === null || n2 === void 0 ? void 0 : n2.renderer.domElement;
34033
- this.transactionPlayer.initPlayer({ reverse: !this.isForward, stageWidth: this.view.width, stageHeight: this.view.height, presetType: Fy[t2.type], duration: (r2 = (i2 = this.currentStage) === null || i2 === void 0 ? void 0 : i2.json.transition) === null || r2 === void 0 ? void 0 : r2.dur, delay: 0, clearColor: this.config.transactionBgColor, maxFPS: Math.ceil((o2 = this.config.maxFPS) !== null && o2 !== void 0 ? o2 : 60), options: t2.options }), e3 && (e3.style.position = "absolute", e3.style.zIndex = "9", e3.style.left = "0", e3.style.top = "0", e3.style.width = this.view.style.width, e3.style.height = this.view.style.height), s2.appendChild(e3);
34098
+ this.transactionPlayer.initPlayer({ reverse: !this.isForward, stageWidth: this.view.width, stageHeight: this.view.height, presetType: By[t2.type], duration: (r2 = (i2 = this.currentStage) === null || i2 === void 0 ? void 0 : i2.json.transition) === null || r2 === void 0 ? void 0 : r2.dur, delay: 0, clearColor: this.config.transactionBgColor, maxFPS: Math.ceil((o2 = this.config.maxFPS) !== null && o2 !== void 0 ? o2 : 60), options: t2.options }), e3 && (e3.style.position = "absolute", e3.style.zIndex = "9", e3.style.left = "0", e3.style.top = "0", e3.style.width = this.view.style.width, e3.style.height = this.view.style.height), s2.appendChild(e3);
34034
34099
  }
34035
34100
  }
34036
34101
  scaleView(t2, e2, n2) {
@@ -34045,7 +34110,7 @@ void main(void){
34045
34110
  }
34046
34111
  updateResolution(t2, e2) {
34047
34112
  this.app.ticker.addOnce(() => {
34048
- let n2 = wy.isDesktop() ? t2 : 1;
34113
+ let n2 = Ay.isDesktop() ? t2 : 1;
34049
34114
  for (; n2 * this.designWidth > this.maxResolution.x || n2 * this.designHeight > this.maxResolution.y; )
34050
34115
  n2 -= 0.1;
34051
34116
  this.app.renderer.resolution = n2, this.app.renderer.plugins.interaction.resolution = this.app.renderer.resolution, this.app.renderer.resize(this.designWidth, this.designHeight), Qa()(e2) && e2();
@@ -34058,7 +34123,7 @@ void main(void){
34058
34123
  else {
34059
34124
  this.logger.info("ppt play trigger next step", this.taskId);
34060
34125
  try {
34061
- (n2 = this.currentStage) === null || n2 === void 0 || n2.nextStep(t2, e2);
34126
+ this.onRequestCancelFullscreenVideo(), (n2 = this.currentStage) === null || n2 === void 0 || n2.nextStep(t2, e2);
34062
34127
  } catch (t3) {
34063
34128
  this.errorChannel.emit("error", Tm.transform(t3), this.currentIndex);
34064
34129
  }
@@ -34071,7 +34136,7 @@ void main(void){
34071
34136
  else {
34072
34137
  this.logger.info("ppt play trigger prev step", this.taskId);
34073
34138
  try {
34074
- (e2 = this.currentStage) === null || e2 === void 0 || e2.prevStep(t2);
34139
+ this.onRequestCancelFullscreenVideo(), (e2 = this.currentStage) === null || e2 === void 0 || e2.prevStep(t2);
34075
34140
  } catch (t3) {
34076
34141
  this.errorChannel.emit("error", Tm.transform(t3), this.currentIndex);
34077
34142
  }
@@ -34118,10 +34183,10 @@ void main(void){
34118
34183
  var i2;
34119
34184
  (i2 = this.currentStage) === null || i2 === void 0 || i2.setInteractiveSeqState(t2, e2, n2);
34120
34185
  }
34121
- setMediaState(t2, e2) {
34122
- var n2;
34123
- return Dy(this, void 0, void 0, function* () {
34124
- yield (n2 = this.currentStage) === null || n2 === void 0 ? void 0 : n2.setMediaState(t2, e2);
34186
+ setMediaState(t2, e2, n2) {
34187
+ var i2;
34188
+ return Fy(this, void 0, void 0, function* () {
34189
+ yield (i2 = this.currentStage) === null || i2 === void 0 ? void 0 : i2.setMediaState(t2, e2, n2);
34125
34190
  });
34126
34191
  }
34127
34192
  setMediaCurrentTime(t2, e2) {
@@ -34148,9 +34213,12 @@ void main(void){
34148
34213
  }
34149
34214
  static clearLocalCache() {
34150
34215
  var t2;
34151
- (t2 = Iy.localCache) === null || t2 === void 0 || t2.clear().catch(() => {
34216
+ (t2 = Oy.localCache) === null || t2 === void 0 || t2.clear().catch(() => {
34152
34217
  });
34153
34218
  }
34219
+ syncFullscreenVideoState(t2) {
34220
+ this.globalEventHub.emit("syncFullscreenVideoState", t2);
34221
+ }
34154
34222
  destroy() {
34155
34223
  var t2, e2;
34156
34224
  try {
@@ -34159,22 +34227,18 @@ void main(void){
34159
34227
  this.app.renderer.filter.texturePool.clear(true);
34160
34228
  } catch (t3) {
34161
34229
  }
34162
- Ym.collectObjectByGroup(this.objPoolGroup), qm.collectObjectByGroup(this.objPoolGroup), (t2 = this.transactionPlayer) === null || t2 === void 0 || t2.destroy(), this.loader.destroy(), this.fps.destroy(), this.stagePool.destroyAllStage(), this.stagePool.destroy();
34230
+ qm.collectObjectByGroup(this.objPoolGroup), Zm.collectObjectByGroup(this.objPoolGroup), (t2 = this.transactionPlayer) === null || t2 === void 0 || t2.destroy(), this.loader.destroy(), this.fps.destroy(), this.stagePool.destroyAllStage(), this.stagePool.destroy();
34163
34231
  try {
34164
34232
  this.app.renderer.gl.getExtension("WEBGL_lose_context").loseContext();
34165
34233
  } catch (t3) {
34166
34234
  }
34167
- this.app.destroy(true, { children: true, texture: true, baseTexture: true }), (e2 = My.worker) === null || e2 === void 0 || e2.terminate();
34235
+ this.app.destroy(true, { children: true, texture: true, baseTexture: true }), (e2 = Ry.worker) === null || e2 === void 0 || e2.terminate();
34168
34236
  } catch (t3) {
34169
34237
  }
34170
34238
  }
34171
34239
  }
34172
- Uy.platform = wy, Uy.RtcAudioClazz = null;
34173
- var ky = /* @__PURE__ */ new Map();
34174
- function Gy(t2) {
34175
- var e2 = ky.get(t2.hookPoint) || [];
34176
- e2.push(t2), ky.set(t2.hookPoint, e2);
34177
- }
34240
+ ky.platform = Ay, ky.RtcAudioClazz = null;
34241
+ var Gy = /* @__PURE__ */ new Map();
34178
34242
  var Hy, jy = n(132), zy = n.n(jy), Vy = n(47), Xy = n.n(Vy), Wy = n(48), Yy = n.n(Wy), qy = [], Zy = "ResizeObserver loop completed with undelivered notifications.";
34179
34243
  !function(t2) {
34180
34244
  t2.BORDER_BOX = "border-box", t2.CONTENT_BOX = "content-box", t2.DEVICE_PIXEL_CONTENT_BOX = "device-pixel-content-box";
@@ -35871,7 +35935,7 @@ void main(void){
35871
35935
  }
35872
35936
  var sT = { syncDispatch: "syncDispatch", syncReceive: "syncReceive", syncEventLag: "syncEventLag", renderStart: "renderStart", renderEnd: "renderEnd", renderError: "renderError", slideChange: "slideChange", mainSeqStepStart: "mainSeqStepStart", mainSeqStepEnd: "mainSeqStepEnd", animateStart: "animateStart", animateEnd: "animateEnd", stateChange: "stateChange", slideStepEnd: "slideEnd", slideStepStart: "slideStart" }, aT = { taskId: "", url: "", currentSlideIndex: -1, mainSeqStep: -1, mainSeqState: null, mediaState: /* @__PURE__ */ Object.create(null), interactiveSeqState: /* @__PURE__ */ Object.create(null) }, lT = "";
35873
35937
  try {
35874
- lT = "0.8.6";
35938
+ lT = "0.8.7-deta-1";
35875
35939
  } catch (t2) {
35876
35940
  lT = "dev";
35877
35941
  }
@@ -35889,7 +35953,7 @@ void main(void){
35889
35953
  return i3.frameResizeHandler();
35890
35954
  }), i3.timestamp = function() {
35891
35955
  return Date.now();
35892
- }, i3.mode = "local", i3.enableGlobalClick = false, i3.lastEmitedState = null, i3.playerController = null, i3.isInitResized = false, i3.cacheImage = document.createElement("img"), i3.isTouchStart = false, i3.touchStartId = void 0, i3.taskId = "", i3.volumeAdjuster = new Ly(), i3.designWidth = 0, i3.designHeight = 0, i3._slideCount = 0, i3._dispatchIncrId = 0, i3._receiveIncrId = 0, i3.recoverHandler = function(t3) {
35956
+ }, i3.mode = "local", i3.enableGlobalClick = false, i3.lastEmitedState = null, i3.playerController = null, i3.isInitResized = false, i3.cacheImage = document.createElement("img"), i3.isTouchStart = false, i3.touchStartId = void 0, i3.taskId = "", i3.volumeAdjuster = new Dy(), i3.designWidth = 0, i3.designHeight = 0, i3._slideCount = 0, i3._dispatchIncrId = 0, i3._receiveIncrId = 0, i3.recoverHandler = function(t3) {
35893
35957
  if (t3.data.type === "@slide/_recover_" && t3.data.slideId === i3.randomId) {
35894
35958
  var e3 = t3.data, n4 = e3.recoverBy, r2 = e3.payload;
35895
35959
  if (!r2)
@@ -35917,25 +35981,25 @@ void main(void){
35917
35981
  console.log(i3), window.__slide = i3;
35918
35982
  }, i3.receiveSyncHandler = function(t3) {
35919
35983
  return eT(i3, void 0, void 0, function() {
35920
- var e3, n4, i4, r2, o2 = this;
35921
- return nT(this, function(s2) {
35922
- switch (s2.label) {
35984
+ var e3, n4, i4, r2, o2, s2 = this;
35985
+ return nT(this, function(a2) {
35986
+ switch (a2.label) {
35923
35987
  case 0:
35924
- return zm()(t3.incrId) && (t3.incrId && t3.incrId - this._receiveIncrId != 1 && this.emit(sT.syncEventLag), this._receiveIncrId = t3.incrId || 0), this.logger.info("sync receive " + JSON.stringify(t3), this.taskId), t3.type !== "nextStep" ? [3, 1] : (this.mainSeqStep !== t3.next - 1 && this.mainSeqStep + 1 !== this.mainSeqLength && this.player ? (this.setMainSeqStep(t3.next, "start"), this.player.nextTick(function() {
35925
- o2.doNextStep(true, t3.clientId || "");
35988
+ return Vm()(t3.incrId) && (t3.incrId && t3.incrId - this._receiveIncrId != 1 && this.emit(sT.syncEventLag), this._receiveIncrId = t3.incrId || 0), this.logger.info("sync receive " + JSON.stringify(t3), this.taskId), t3.type !== "nextStep" ? [3, 1] : (this.mainSeqStep !== t3.next - 1 && this.mainSeqStep + 1 !== this.mainSeqLength && this.player ? (this.setMainSeqStep(t3.next, "start"), this.player.nextTick(function() {
35989
+ s2.doNextStep(true, t3.clientId || "");
35926
35990
  })) : this.doNextStep(true, t3.clientId || ""), [3, 6]);
35927
35991
  case 1:
35928
35992
  return t3.type !== "prevStep" ? [3, 2] : (this.mainSeqStep === 0 && this.mainSeqState === "idle" || this.mainSeqStep === t3.next + 1 || this.mainSeqStep + 1 === this.mainSeqLength ? this.doPrevStep(true) : (this.setMainSeqStep(t3.next + 1, "start"), (e3 = this.player) === null || e3 === void 0 || e3.nextTick(function() {
35929
- o2.doPrevStep(true);
35993
+ s2.doPrevStep(true);
35930
35994
  })), [3, 6]);
35931
35995
  case 2:
35932
35996
  return t3.type !== "interactiveAnim" ? [3, 3] : (this.player ? this.player.applyInteractiveAction(t3.action) : this.__slideState.interactiveSeqState[t3.seqId] ? this.__slideState.interactiveSeqState[t3.seqId].step += 1 : this.__slideState.interactiveSeqState[t3.seqId] = { step: 0, state: "end" }, [3, 6]);
35933
35997
  case 3:
35934
35998
  return t3.type !== "renderSlide" ? [3, 5] : [4, this.doRenderSlide(t3.index, t3.isForward)];
35935
35999
  case 4:
35936
- return s2.sent(), [3, 6];
36000
+ return a2.sent(), [3, 6];
35937
36001
  case 5:
35938
- t3.type === "mediaPlay" ? ((n4 = this.player) === null || n4 === void 0 || n4.setMediaState(t3.id, true), this.__slideState.mediaState[t3.id] = t3.state) : t3.type === "mediaPause" ? ((i4 = this.player) === null || i4 === void 0 || i4.setMediaState(t3.id, false), this.__slideState.mediaState[t3.id] = t3.state) : t3.type === "mediaSeek" && ((r2 = this.player) === null || r2 === void 0 || r2.setMediaCurrentTime(t3.id, t3.time), this.__slideState.mediaState[t3.id] = t3.state), s2.label = 6;
36002
+ t3.type === "mediaPlay" ? ((n4 = this.player) === null || n4 === void 0 || n4.setMediaState(t3.id, true), this.__slideState.mediaState[t3.id] = t3.state) : t3.type === "mediaPause" ? ((i4 = this.player) === null || i4 === void 0 || i4.setMediaState(t3.id, false), this.__slideState.mediaState[t3.id] = t3.state) : t3.type === "mediaSeek" ? ((r2 = this.player) === null || r2 === void 0 || r2.setMediaCurrentTime(t3.id, t3.time), this.__slideState.mediaState[t3.id] = t3.state) : t3.type === "mediaFullscreen" && ((o2 = this.player) === null || o2 === void 0 || o2.syncFullscreenVideoState({ targetId: t3.targetId, state: t3.state, slideIndex: t3.slideIndex })), a2.label = 6;
35939
36003
  case 6:
35940
36004
  return [2];
35941
36005
  }
@@ -35963,17 +36027,17 @@ void main(void){
35963
36027
  t3 === -1 && i3.renderSlide(i3.slideCount, true);
35964
36028
  }, e2.instances.push(i3), i3.config = i3.initSlideConfig(n3), i3.logger = { info: function(t3, n4) {
35965
36029
  var r2;
35966
- e2._tempLog += "INFO - " + new Date().toISOString() + " - {" + i3.randomId + "}[" + n4 + "] " + t3 + "\n";
36030
+ e2.appendLogString("INFO - " + new Date().toISOString() + " - {" + i3.randomId + "}[" + n4 + "] " + t3 + "\n");
35967
36031
  var o2 = (r2 = i3.config.logger) === null || r2 === void 0 ? void 0 : r2.info;
35968
36032
  o2 && o2("[" + n4 + "] " + t3);
35969
36033
  }, warn: function(t3, n4) {
35970
36034
  var r2;
35971
- e2._tempLog += "WARN - " + new Date().toISOString() + " - {" + i3.randomId + "}[" + n4 + "] " + t3 + "\n";
36035
+ e2.appendLogString("WARN - " + new Date().toISOString() + " - {" + i3.randomId + "}[" + n4 + "] " + t3 + "\n");
35972
36036
  var o2 = (r2 = i3.config.logger) === null || r2 === void 0 ? void 0 : r2.warn;
35973
36037
  o2 && o2("[" + n4 + "] " + t3);
35974
36038
  }, error: function(t3, n4) {
35975
36039
  var r2;
35976
- e2._tempLog += "ERROR - " + new Date().toISOString() + " - {" + i3.randomId + "}[" + n4 + "] " + t3 + "\n";
36040
+ e2.appendLogString("ERROR - " + new Date().toISOString() + " - {" + i3.randomId + "}[" + n4 + "] " + t3 + "\n");
35977
36041
  var o2 = (r2 = i3.config.logger) === null || r2 === void 0 ? void 0 : r2.error;
35978
36042
  o2 && o2("[" + n4 + "] " + t3);
35979
36043
  } }, i3.logger.info("new slide with clientId: " + i3.config.clientId, i3.taskId), i3.anchor = i3.config.anchor, i3.syncQueue = new Wb(i3.receiveSyncHandler), i3.lock = new Yb(i3.mode === "interactive"), i3.cacheImage.style.position = "absolute", i3.cacheImage.style.zIndex = "100", i3.setMedianControllerAttribute(), i3.canvasContainer.style.position = "relative", i3.canvasContainer.appendChild(i3.medianController), i3.frame.appendChild(i3.canvasContainer), i3.frameResizeObserver.observe(i3.frame), i3.on(sT.syncReceive, function(t3) {
@@ -36008,56 +36072,109 @@ void main(void){
36008
36072
  }
36009
36073
  });
36010
36074
  });
36075
+ }, e2.stopRemoteLog = function() {
36076
+ e2.remoteLogAddress = null;
36077
+ }, e2.startRemoteLog = function(t3) {
36078
+ return eT(this, void 0, void 0, function() {
36079
+ var n3, i3, r2, o2, s2;
36080
+ return nT(this, function(a2) {
36081
+ switch (a2.label) {
36082
+ case 0:
36083
+ return e2.remoteLogAddress = t3, [4, e2.flushLog(true)];
36084
+ case 1:
36085
+ if (a2.sent(), !hT)
36086
+ return [3, 13];
36087
+ n3 = [], a2.label = 2;
36088
+ case 2:
36089
+ return a2.trys.push([2, 4, , 5]), [4, hT.keys()];
36090
+ case 3:
36091
+ return n3 = (a2.sent() || []).sort(function(t4, e3) {
36092
+ return parseInt(t4.replace("run_time_log_", "")) - parseInt(e3.replace("run_time_log_", ""));
36093
+ }), [3, 5];
36094
+ case 4:
36095
+ return a2.sent(), [3, 5];
36096
+ case 5:
36097
+ i3 = 0, r2 = n3, a2.label = 6;
36098
+ case 6:
36099
+ if (!(i3 < r2.length))
36100
+ return [3, 13];
36101
+ o2 = r2[i3], o2.replace("run_time_log_", ""), s2 = "", a2.label = 7;
36102
+ case 7:
36103
+ return a2.trys.push([7, 9, , 10]), [4, hT.getItem(o2)];
36104
+ case 8:
36105
+ return s2 = a2.sent() || "", [3, 10];
36106
+ case 9:
36107
+ return a2.sent(), [3, 10];
36108
+ case 10:
36109
+ return [4, fetch(e2.remoteLogAddress + "/logs", { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ log: s2 }) })];
36110
+ case 11:
36111
+ a2.sent(), a2.label = 12;
36112
+ case 12:
36113
+ return i3++, [3, 6];
36114
+ case 13:
36115
+ return [2];
36116
+ }
36117
+ });
36118
+ });
36119
+ }, e2.appendLogString = function(t3) {
36120
+ e2._tempLog += t3, e2.remoteLogAddress && fetch(e2.remoteLogAddress + "/logs", { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ log: t3 }) }).catch(function() {
36121
+ });
36011
36122
  }, Object.defineProperty(e2.prototype, "dispatchIncrId", { get: function() {
36012
36123
  return this._dispatchIncrId++;
36013
36124
  }, enumerable: false, configurable: true }), e2.prototype.reportError = function(t3, e3) {
36014
36125
  this.emit(sT.renderError, { error: t3, index: e3 }), window.postMessage({ type: "@slide/_error_", errorType: t3.errorType, errorMsg: t3.errorMsg, slideId: this.randomId, slideIndex: e3, customMessage: "@slide/_error_" }, "*");
36015
36126
  }, e2.prototype.initSlideConfig = function(t3) {
36016
- return t3.timestamp && (this.timestamp = t3.timestamp), t3.rtcAudio && (Uy.RtcAudioClazz = t3.rtcAudio), this.mode = t3.mode, this.anchor = t3.anchor, this.anchor.appendChild(this.frame), this.enableGlobalClick = !tl()(t3.enableGlobalClick) && t3.enableGlobalClick, this.resize = t3.resize || false, this.interactive = t3.interactive, this.frame.style.cssText = t3.fixedFrameSize ? "width:" + t3.fixedFrameSize.width + "px;height:" + t3.fixedFrameSize.height + "px;" : "width:100%;height:100%", this.frame.style.cssText += "display:flex;justify-content:center;align-items:center;visibility:hidden;position:relative;z-index:1;", t3.fixedFrameSize && (this.frameWidth = t3.fixedFrameSize.width, this.frameHeight = t3.fixedFrameSize.height), t3;
36127
+ return t3.timestamp && (this.timestamp = t3.timestamp), t3.rtcAudio && (ky.RtcAudioClazz = t3.rtcAudio), this.mode = t3.mode, this.anchor = t3.anchor, this.anchor.appendChild(this.frame), this.enableGlobalClick = !tl()(t3.enableGlobalClick) && t3.enableGlobalClick, this.resize = t3.resize || false, this.interactive = t3.interactive, this.frame.style.cssText = t3.fixedFrameSize ? "width:" + t3.fixedFrameSize.width + "px;height:" + t3.fixedFrameSize.height + "px;" : "width:100%;height:100%", this.frame.style.cssText += "display:flex;justify-content:center;align-items:center;visibility:hidden;position:relative;z-index:1;", t3.fixedFrameSize && (this.frameWidth = t3.fixedFrameSize.width, this.frameHeight = t3.fixedFrameSize.height), t3;
36017
36128
  }, e2.prototype.initPlayer = function(t3) {
36018
- var e3, n3, i3, r2 = this, o2 = new Uy({ mode: this.mode, useLocalCache: !!tl()(this.config.useLocalCache) || this.config.useLocalCache, logger: this.logger, resourceTimeout: tl()(this.config.resourceTimeout) ? 15e3 : this.config.resourceTimeout, loadDelegate: this.config.loaderDelegate, volumeAdjuster: this.volumeAdjuster }, t3.renderOptions);
36019
- return o2.setInteractive(this.interactive), o2.updateConfig(t3.renderOptions || {}), o2.on(By.renderStart, function(t4) {
36129
+ var e3, n3, i3, r2 = this, o2 = new ky({ mode: this.mode, useLocalCache: !!tl()(this.config.useLocalCache) || this.config.useLocalCache, logger: this.logger, resourceTimeout: tl()(this.config.resourceTimeout) ? 15e3 : this.config.resourceTimeout, loadDelegate: this.config.loaderDelegate, volumeAdjuster: this.volumeAdjuster }, t3.renderOptions);
36130
+ return o2.setInteractive(this.interactive), o2.updateConfig(t3.renderOptions || {}), o2.on(Uy.renderStart, function(t4) {
36020
36131
  r2.isLoading = true, r2.emit(sT.renderStart, t4);
36021
- }), o2.on(By.renderEnd, function(t4) {
36132
+ }), o2.on(Uy.renderEnd, function(t4) {
36022
36133
  r2.isLoading = false, r2.player && (r2.designHeight = r2.player.designHeight, r2.designWidth = r2.player.designWidth, r2.cacheImage.style.width = r2.player.designWidth + "px", r2.cacheImage.style.height = r2.player.designHeight + "px", r2._slideCount = r2.player.slideCount), r2.emit(sT.renderEnd, t4);
36023
- }), o2.on(By.slideChange, function(t4) {
36134
+ }), o2.on(Uy.slideChange, function(t4) {
36024
36135
  r2.__slideState.currentSlideIndex = t4, r2.emitStateChange(), r2.emit(sT.slideChange, t4);
36025
- }), o2.on(By.mainSeqStateChange, function(t4) {
36136
+ }), o2.on(Uy.mainSeqStateChange, function(t4) {
36026
36137
  r2.__slideState.mainSeqState = t4, r2.emitStateChange();
36027
- }), o2.on(By.mainSeqStepChange, function(t4) {
36138
+ }), o2.on(Uy.mainSeqStepChange, function(t4) {
36028
36139
  r2.__slideState.mainSeqStep = t4, r2.emitStateChange();
36029
- }), o2.on(By.interactiveSeqStateChange, function(t4) {
36140
+ }), o2.on(Uy.interactiveSeqStateChange, function(t4) {
36030
36141
  var e4 = t4.id, n4 = t4.state;
36031
36142
  r2.__slideState.interactiveSeqState[e4] = n4, r2.emitStateChange();
36032
- }), o2.on(By.animateStart, function() {
36143
+ }), o2.on(Uy.animateStart, function() {
36033
36144
  r2.isAnimating !== true && (r2.isAnimating = true, r2.emit(sT.animateStart));
36034
- }), o2.on(By.animateEnd, function() {
36145
+ }), o2.on(Uy.animateEnd, function() {
36035
36146
  r2.isAnimating !== false && (r2.isAnimating = false, r2.emit(sT.animateEnd));
36036
- }), o2.on(By.interactiveSeqAction, function(t4) {
36147
+ }), o2.on(Uy.interactiveSeqAction, function(t4) {
36037
36148
  var e4 = t4.action, n4 = t4.seqId;
36038
36149
  r2.emitSyncDispatch({ slideIndex: r2.__slideState.currentSlideIndex, type: "interactiveAnim", action: e4, seqId: n4 }), r2.emitStateChange();
36039
- }), o2.on(By.mainSeqStepStart, function(t4) {
36150
+ }), o2.on(Uy.mainSeqStepStart, function(t4) {
36040
36151
  r2.emit(sT.mainSeqStepStart, t4);
36041
- }), o2.on(By.mainSeqStepEnd, function(t4) {
36152
+ }), o2.on(Uy.mainSeqStepEnd, function(t4) {
36042
36153
  r2.emit(sT.mainSeqStepEnd, t4);
36043
- }), o2.on(By.mediaPlay, function(t4) {
36044
- var e4 = { type: "play", time: r2.timestamp() - 1e3 * t4.time };
36045
- r2.__slideState.mediaState[t4.id] = e4, r2.emitSyncDispatch({ slideIndex: r2.__slideState.currentSlideIndex, type: "mediaPlay", id: t4.id, state: e4 }), r2.emitStateChange();
36046
- }), o2.on(By.mediaStop, function(t4) {
36154
+ }), o2.on(Uy.mediaPlay, function(t4) {
36155
+ var e4, n4 = (e4 = r2.__slideState.mediaState[t4.id]) !== null && e4 !== void 0 ? e4 : {};
36156
+ n4.type = "play", n4.time = r2.timestamp() - 1e3 * t4.time, r2.__slideState.mediaState[t4.id] = n4, r2.emitSyncDispatch({ slideIndex: r2.__slideState.currentSlideIndex, type: "mediaPlay", id: t4.id, state: n4 }), r2.emitStateChange();
36157
+ }), o2.on(Uy.mediaStop, function(t4) {
36047
36158
  delete r2.__slideState.mediaState[t4.id], r2.emitStateChange();
36048
- }), o2.on(By.mediaPause, function(t4) {
36049
- var e4 = { type: "pause", time: t4.time };
36050
- r2.__slideState.mediaState[t4.id] = e4, r2.emitSyncDispatch({ slideIndex: r2.__slideState.currentSlideIndex, type: "mediaPause", id: t4.id, state: e4 }), r2.emitStateChange();
36051
- }), o2.on(By.mediaSeek, function(t4) {
36052
- var e4 = { type: "pause", time: 0 };
36053
- t4.isPlaying ? (e4.type = "play", e4.time = r2.timestamp() - 1e3 * t4.time, r2.__slideState.mediaState[t4.id] = e4) : (e4.type = "pause", e4.time = t4.time, r2.__slideState.mediaState[t4.id] = e4), r2.emitSyncDispatch({ slideIndex: r2.__slideState.currentSlideIndex, type: "mediaSeek", id: t4.id, time: t4.time, state: e4 }), r2.emitStateChange();
36054
- }), o2.on(By.requestPrevSlide, function(t4) {
36159
+ }), o2.on(Uy.mediaPause, function(t4) {
36160
+ var e4, n4 = (e4 = r2.__slideState.mediaState[t4.id]) !== null && e4 !== void 0 ? e4 : {};
36161
+ n4.type = "pause", n4.time = t4.time, r2.__slideState.mediaState[t4.id] = n4, r2.emitSyncDispatch({ slideIndex: r2.__slideState.currentSlideIndex, type: "mediaPause", id: t4.id, state: n4 }), r2.emitStateChange();
36162
+ }), o2.on(Uy.mediaSeek, function(t4) {
36163
+ var e4, n4 = (e4 = r2.__slideState.mediaState[t4.id]) !== null && e4 !== void 0 ? e4 : {};
36164
+ t4.isPlaying ? (n4.type = "play", n4.time = r2.timestamp() - 1e3 * t4.time) : (n4.type = "pause", n4.time = t4.time), r2.__slideState.mediaState[t4.id] = n4, r2.emitSyncDispatch({ slideIndex: r2.__slideState.currentSlideIndex, type: "mediaSeek", id: t4.id, time: t4.time, state: n4 }), r2.emitStateChange();
36165
+ }), o2.on(Uy.requestPrevSlide, function(t4) {
36055
36166
  r2.handlePrevSlide(t4);
36056
- }), o2.on(By.requestNextSlide, function(t4) {
36167
+ }), o2.on(Uy.requestNextSlide, function(t4) {
36057
36168
  r2.handleNextSlide(t4);
36058
- }), o2.on(By.requestGotoSlide, function(t4) {
36169
+ }), o2.on(Uy.requestGotoSlide, function(t4) {
36059
36170
  r2.config.navigatorDelegate ? r2.config.navigatorDelegate.gotoPage(t4) : r2.handleGotoSlide(t4);
36060
- }), (e3 = o2.view) === null || e3 === void 0 || e3.addEventListener("touchend", this.handleViewTouchEnd), (n3 = o2.view) === null || n3 === void 0 || n3.addEventListener("touchstart", this.handleViewTouchStart), (i3 = o2.view) === null || i3 === void 0 || i3.addEventListener("click", this.handleViewClick), o2.on(By.userInput, this.userInputHandle), o2;
36171
+ }), o2.on(Uy.fullscreenChange, function(t4) {
36172
+ var e4, n4 = t4.targetId, i4 = t4.state;
36173
+ if (r2.emitSyncDispatch({ slideIndex: r2.__slideState.currentSlideIndex, type: "mediaFullscreen", targetId: n4, state: i4 }), n4) {
36174
+ var o3 = (e4 = r2.__slideState.mediaState[n4]) !== null && e4 !== void 0 ? e4 : {};
36175
+ o3.fullscreen = i4, r2.__slideState.mediaState[n4] = o3, r2.emitStateChange();
36176
+ }
36177
+ }), (e3 = o2.view) === null || e3 === void 0 || e3.addEventListener("touchend", this.handleViewTouchEnd), (n3 = o2.view) === null || n3 === void 0 || n3.addEventListener("touchstart", this.handleViewTouchStart), (i3 = o2.view) === null || i3 === void 0 || i3.addEventListener("click", this.handleViewClick), o2.on(Uy.userInput, this.userInputHandle), o2;
36061
36178
  }, e2.prototype.createController = function() {
36062
36179
  this.player && (this.playerController = new Xb(this.player, this.frame));
36063
36180
  }, e2.prototype.setMedianControllerAttribute = function() {
@@ -36104,20 +36221,16 @@ void main(void){
36104
36221
  (e3 = this.player) === null || e3 === void 0 || e3.setInteractiveSeqState(n3, i3.step, i3.state === "idle" ? "start" : "end");
36105
36222
  }
36106
36223
  }, e2.prototype.initMedia = function(t3) {
36107
- var e3, n3, i3 = this, r2 = function(r3) {
36108
- var s3 = t3.mediaState[r3], a2 = o2.__slideState.mediaState[r3];
36109
- if (a2 && s3.type === a2.type && s3.time === a2.time)
36110
- return "continue";
36111
- s3.type === "play" ? (e3 = o2.player) === null || e3 === void 0 || e3.setMediaState(r3, true).then(function() {
36112
- var t4, e4 = i3.timestamp();
36113
- (t4 = i3.player) === null || t4 === void 0 || t4.setMediaCurrentTime(r3, (e4 - s3.time) / 1e3);
36114
- }) : (n3 = o2.player) === null || n3 === void 0 || n3.setMediaState(r3, false).then(function() {
36115
- var t4;
36116
- (t4 = i3.player) === null || t4 === void 0 || t4.setMediaCurrentTime(r3, s3.time);
36117
- });
36118
- }, o2 = this;
36119
- for (var s2 in t3.mediaState)
36120
- r2(s2);
36224
+ var e3, n3;
36225
+ for (var i3 in t3.mediaState) {
36226
+ var r2 = t3.mediaState[i3], o2 = this.__slideState.mediaState[i3];
36227
+ if (!o2 || r2.type !== o2.type || r2.time !== o2.time)
36228
+ if (r2.type === "play") {
36229
+ var s2 = (this.timestamp() - r2.time) / 1e3;
36230
+ (e3 = this.player) === null || e3 === void 0 || e3.setMediaState(i3, true, s2);
36231
+ } else
36232
+ (n3 = this.player) === null || n3 === void 0 || n3.setMediaState(i3, false, r2.time);
36233
+ }
36121
36234
  }, Object.defineProperty(e2.prototype, "slideCount", { get: function() {
36122
36235
  return this._slideCount;
36123
36236
  }, enumerable: false, configurable: true }), e2.prototype.getSizeAsync = function() {
@@ -36205,9 +36318,9 @@ void main(void){
36205
36318
  return nT(this, function(i3) {
36206
36319
  switch (i3.label) {
36207
36320
  case 0:
36208
- return this.renderingIndex = t3, this.player && t3 === this.player.currentIndex ? [2] : ((Uy.platform.isIOS() || Uy.platform.isAndroid()) && this.iosResetCache.indexOf(t3) < 0 && this.iosResetCache.push(t3), [4, (e3 = this.player) === null || e3 === void 0 ? void 0 : e3.renderSlide(t3)]);
36321
+ return this.renderingIndex = t3, this.player && t3 === this.player.currentIndex ? [2] : ((ky.platform.isIOS() || ky.platform.isAndroid()) && this.iosResetCache.indexOf(t3) < 0 && this.iosResetCache.push(t3), [4, (e3 = this.player) === null || e3 === void 0 ? void 0 : e3.renderSlide(t3)]);
36209
36322
  case 1:
36210
- return i3.sent(), this.__slideState.currentSlideIndex = t3, this.resizeView(), this.__slideState.interactiveSeqState = {}, this.emitStateChange(), setTimeout(function() {
36323
+ return i3.sent(), this.__slideState.currentSlideIndex = t3, this.resizeView(), this.__slideState.interactiveSeqState = {}, this.__slideState.mediaState = {}, this.emitStateChange(), setTimeout(function() {
36211
36324
  var t4, e4;
36212
36325
  if (((e4 = (t4 = n3.player) === null || t4 === void 0 ? void 0 : t4.view) === null || e4 === void 0 ? void 0 : e4.style.visibility) === "hidden" && (n3.player.view.style.visibility = "visible"), n3.frame.style.visibility === "hidden" && (n3.frame.style.visibility = "visible"), n3.needClearCacheImage)
36213
36326
  try {
@@ -36224,8 +36337,8 @@ void main(void){
36224
36337
  (n3 !== this.player.currentIndex || this.renderingTaskManager.hasStartTask()) && (n3 > this.slideCount && this.slideCount > 0 || this.poseRenderSlide(n3, e3));
36225
36338
  }
36226
36339
  }, e2.prototype.needCreateNewPlayer = function() {
36227
- var t3 = Uy.platform.isLowGpuMemory() ? 15 : 30;
36228
- return (Uy.platform.isIOS() || Uy.platform.isAndroid()) && this.iosResetCache.length > t3;
36340
+ var t3 = ky.platform.isLowGpuMemory() ? 15 : 30;
36341
+ return (ky.platform.isIOS() || ky.platform.isAndroid()) && this.iosResetCache.length > t3;
36229
36342
  }, e2.prototype.poseRenderSlide = function(t3, e3) {
36230
36343
  this.mode === "interactive" ? this.emitSyncDispatch({ slideIndex: this.__slideState.currentSlideIndex, type: "renderSlide", index: t3, isForward: e3 }) : this.mode === "sync" ? (this.doRenderSlide(t3, e3), this.emitSyncDispatch({ slideIndex: this.__slideState.currentSlideIndex, type: "renderSlide", index: t3, isForward: e3 })) : this.doRenderSlide(t3, e3);
36231
36344
  }, e2.prototype.doRenderSlide = function(t3, e3) {
@@ -36411,9 +36524,20 @@ void main(void){
36411
36524
  }, e2.prototype.getGlobalVolume = function() {
36412
36525
  return this.volumeAdjuster.volume;
36413
36526
  }, e2.clearLocalCache = function() {
36414
- Uy.clearLocalCache();
36527
+ ky.clearLocalCache();
36415
36528
  }, e2.disposeLocalCache = function() {
36416
- }, n2 = e2, e2.instances = [], e2._tempFrozenIds = [], e2._tempLog = "", e2._tempLogIndex = 1, e2.usePlugin = Gy, e2.handleFrozenAllSlide = function() {
36529
+ }, n2 = e2, e2.instances = [], e2._tempFrozenIds = [], e2._tempLog = "", e2._tempLogIndex = 1, e2.remoteLogAddress = null, e2.usePlugin = function(t3) {
36530
+ t3.context({ logger: { info: function(t4) {
36531
+ e2.appendLogString("INFO - " + new Date().toISOString() + " - " + t4 + "\n");
36532
+ }, warn: function(t4) {
36533
+ e2.appendLogString("WARN - " + new Date().toISOString() + " - " + t4 + "\n");
36534
+ }, error: function(t4) {
36535
+ e2.appendLogString("ERROR - " + new Date().toISOString() + " - " + t4 + "\n");
36536
+ } } }), function(t4) {
36537
+ var e3 = Gy.get(t4.hookPoint) || [];
36538
+ e3.push(t4), Gy.set(t4.hookPoint, e3);
36539
+ }(t3);
36540
+ }, e2.handleFrozenAllSlide = function() {
36417
36541
  e2.instances.forEach(function(t3) {
36418
36542
  t3.player && (e2._tempFrozenIds.push(t3.randomId), t3.frozen());
36419
36543
  });
@@ -36499,7 +36623,7 @@ void main(void){
36499
36623
  n3.value = function() {
36500
36624
  for (var t4 = [], e4 = 0; e4 < arguments.length; e4++)
36501
36625
  t4[e4] = arguments[e4];
36502
- for (var n4 = ky.get(i2) || [], o2 = t4, s2 = 0, a2 = n4; s2 < a2.length; s2++) {
36626
+ for (var n4 = Gy.get(i2) || [], o2 = t4, s2 = 0, a2 = n4; s2 < a2.length; s2++) {
36503
36627
  var l2 = a2[s2];
36504
36628
  try {
36505
36629
  o2 = l2.before(o2);
@@ -38874,7 +38998,7 @@ class SlidePreviewer {
38874
38998
  }
38875
38999
  }
38876
39000
  const usePlugin = /* @__PURE__ */ Slide.Slide.usePlugin.bind(Slide.Slide);
38877
- const version = "0.2.25";
39001
+ const version = "0.2.26-beta.1";
38878
39002
  const SlideApp = {
38879
39003
  kind: "Slide",
38880
39004
  setup(context) {