@netless/app-slide 0.2.80 → 0.2.81

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
@@ -12611,13 +12611,13 @@ var Slide = function(t) {
12611
12611
  i.r(e), i.d(e, "ErrorType", function() {
12612
12612
  return gm;
12613
12613
  }), i.d(e, "delay", function() {
12614
- return mT;
12615
- }), i.d(e, "waitUntil", function() {
12616
12614
  return gT;
12617
- }), i.d(e, "SLIDE_EVENTS", function() {
12615
+ }), i.d(e, "waitUntil", function() {
12618
12616
  return vT;
12617
+ }), i.d(e, "SLIDE_EVENTS", function() {
12618
+ return _T;
12619
12619
  }), i.d(e, "Slide", function() {
12620
- return bT;
12620
+ return TT;
12621
12621
  });
12622
12622
  const n = [];
12623
12623
  for (let t2 = 0; t2 < 256; t2++)
@@ -30700,7 +30700,7 @@ void main(void){
30700
30700
  var o2;
30701
30701
  this.iterateElements = [], this.paragraphs = [], this.effectList = [], this.container = new Oh.b(), this.textContainer = new Oh.b(), this.textColorFilter = new vg(), this.json = t2, this.ctx = e2, this.shapeRotation = r2, this.parentGlobalPos = n2, this.iterateType = i2, 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;
30702
30702
  const s2 = new Jd();
30703
- s2.drawRect(0, 0, t2.width, t2.height), this.container.addChild(s2), this.container.addChild(this.textContainer), this.textColorFilter.currentColor = "#000000FF", this.textColorFilter.designColor = "#000000FF", this.effectList = null !== (o2 = t2.effectList) && void 0 !== o2 ? o2 : [];
30703
+ s2.drawRect(0, 0, t2.width, t2.height), this.container.addChild(s2), this.container.addChild(this.textContainer), this.textColorFilter.currentColor = "#000000FF", this.textColorFilter.designColor = "#000000FF", this.effectList = null !== (o2 = t2.effectList) && void 0 !== o2 ? o2 : [], this.json.rot && (this.container.pivot.x += this.json.width / 2, this.container.pivot.y += this.json.height / 2, this.container.rotation = this.json.rot * Math.PI / 180, this.container.position.x += this.json.width / 2 * this.container.scale.x, this.container.position.y += this.json.height / 2 * this.container.scale.y);
30704
30704
  }
30705
30705
  getTextElement(t2, e2) {
30706
30706
  return "paragraph" === t2 ? this.paragraphs[e2[0]] : null;
@@ -35825,7 +35825,14 @@ void main(void){
35825
35825
  }, t2.prototype.destroy = function() {
35826
35826
  this.isDestroy = true;
35827
35827
  }, t2;
35828
- }(), nT = function(t2, e2, i2, n2) {
35828
+ }(), nT = function() {
35829
+ return (nT = Object.assign || function(t2) {
35830
+ for (var e2, i2 = 1, n2 = arguments.length; i2 < n2; i2++)
35831
+ for (var r2 in e2 = arguments[i2])
35832
+ Object.prototype.hasOwnProperty.call(e2, r2) && (t2[r2] = e2[r2]);
35833
+ return t2;
35834
+ }).apply(this, arguments);
35835
+ }, rT = function(t2, e2, i2, n2) {
35829
35836
  return new (i2 || (i2 = Promise))(function(r2, o2) {
35830
35837
  function s2(t3) {
35831
35838
  try {
@@ -35849,7 +35856,7 @@ void main(void){
35849
35856
  }
35850
35857
  l2((n2 = n2.apply(t2, e2 || [])).next());
35851
35858
  });
35852
- }, rT = function(t2, e2) {
35859
+ }, oT = function(t2, e2) {
35853
35860
  var i2, n2, r2, o2, s2 = { label: 0, sent: function() {
35854
35861
  if (1 & r2[0])
35855
35862
  throw r2[1];
@@ -35912,20 +35919,188 @@ void main(void){
35912
35919
  }([o3, a3]);
35913
35920
  };
35914
35921
  }
35915
- }, oT = function() {
35922
+ }, sT = function() {
35916
35923
  function t2() {
35917
35924
  var t3 = this;
35918
- this.logList = [], this.checkTimer = null, this.retryTimes = 0, this.enable = false, this.uploadLoggerGlobalEvent = function(e2) {
35925
+ this.logList = [], this.checkTimer = null, this.retryTimes = 0, this.enable = false, this.db = null, this.useIndexedDB = false, this.DB_NAME = "__slide_logs_report__", this.STORE_NAME = "logs", this.BATCH_SIZE = 1e3, this.uploadLoggerGlobalEvent = function(e2) {
35919
35926
  "@slide/_upload_log_" === e2.data.type && t3.start();
35920
- }, this.config = { checkTime: 3e3, buffer: 300 }, window.addEventListener("message", this.uploadLoggerGlobalEvent), this.start();
35921
- }
35922
- return t2.prototype.start = function() {
35923
- return nT(this, void 0, void 0, function() {
35927
+ }, this.config = { checkTime: 5e3, buffer: 300 }, window.addEventListener("message", this.uploadLoggerGlobalEvent), this.initIndexedDB();
35928
+ }
35929
+ return t2.prototype.initIndexedDB = function() {
35930
+ return rT(this, void 0, void 0, function() {
35931
+ var t3, e2 = this;
35932
+ return oT(this, function(i2) {
35933
+ if (!("indexedDB" in window))
35934
+ return this.useIndexedDB = false, this.start(), [2];
35935
+ try {
35936
+ (t3 = indexedDB.open(this.DB_NAME, 1)).onerror = function() {
35937
+ e2.useIndexedDB = false;
35938
+ }, t3.onsuccess = function() {
35939
+ e2.start(), e2.db = t3.result, e2.useIndexedDB = true;
35940
+ }, t3.onupgradeneeded = function(t4) {
35941
+ var i3 = t4.target.result;
35942
+ i3.objectStoreNames.contains(e2.STORE_NAME) || i3.createObjectStore(e2.STORE_NAME, { keyPath: "id", autoIncrement: true }).createIndex("timestamp", "timestamp");
35943
+ };
35944
+ } catch (t4) {
35945
+ this.useIndexedDB = false;
35946
+ }
35947
+ return [2];
35948
+ });
35949
+ });
35950
+ }, t2.prototype.storeLogInIndexedDB = function(t3) {
35951
+ return rT(this, void 0, void 0, function() {
35952
+ var e2, i2 = this;
35953
+ return oT(this, function(n2) {
35954
+ switch (n2.label) {
35955
+ case 0:
35956
+ if (!this.useIndexedDB)
35957
+ return [2];
35958
+ n2.label = 1;
35959
+ case 1:
35960
+ return n2.trys.push([1, 4, , 5]), this.db && this.isDatabaseHealthy() ? [3, 3] : [4, this.recreateDatabase()];
35961
+ case 2:
35962
+ if (n2.sent(), !this.db || !this.useIndexedDB)
35963
+ throw new Error("Database not available after recreation attempt");
35964
+ n2.label = 3;
35965
+ case 3:
35966
+ return [2, new Promise(function(e3, n3) {
35967
+ var r2 = i2.db.transaction([i2.STORE_NAME], "readwrite"), o2 = r2.objectStore(i2.STORE_NAME).add(t3);
35968
+ r2.onerror = function() {
35969
+ i2.recreateDatabase().then(function() {
35970
+ if (i2.db && i2.useIndexedDB) {
35971
+ var r3 = i2.db.transaction([i2.STORE_NAME], "readwrite").objectStore(i2.STORE_NAME).add(t3);
35972
+ r3.onsuccess = function() {
35973
+ return e3();
35974
+ }, r3.onerror = function() {
35975
+ return n3(r3.error);
35976
+ };
35977
+ } else
35978
+ n3(new Error("Database recreation failed"));
35979
+ }).catch(function(t4) {
35980
+ console.warn("Database recreation failed:", t4), i2.useIndexedDB = false, n3(t4);
35981
+ });
35982
+ }, o2.onsuccess = function() {
35983
+ return e3();
35984
+ }, o2.onerror = function() {
35985
+ var t4, e4;
35986
+ "UnknownError" === (null === (t4 = o2.error) || void 0 === t4 ? void 0 : t4.name) || "NotFoundError" === (null === (e4 = o2.error) || void 0 === e4 ? void 0 : e4.name) ? i2.recreateDatabase().catch(function(t5) {
35987
+ console.warn("Database recreation failed:", t5), i2.useIndexedDB = false;
35988
+ }).finally(function() {
35989
+ return n3(o2.error);
35990
+ }) : n3(o2.error);
35991
+ };
35992
+ })];
35993
+ case 4:
35994
+ throw e2 = n2.sent(), this.useIndexedDB = false, e2;
35995
+ case 5:
35996
+ return [2];
35997
+ }
35998
+ });
35999
+ });
36000
+ }, t2.prototype.getLogsFromIndexedDB = function(t3) {
36001
+ return rT(this, void 0, void 0, function() {
36002
+ var e2 = this;
36003
+ return oT(this, function(i2) {
36004
+ switch (i2.label) {
36005
+ case 0:
36006
+ if (!this.useIndexedDB)
36007
+ return [2, []];
36008
+ i2.label = 1;
36009
+ case 1:
36010
+ return i2.trys.push([1, 4, , 5]), this.db && this.isDatabaseHealthy() ? [3, 3] : [4, this.recreateDatabase()];
36011
+ case 2:
36012
+ if (i2.sent(), !this.db || !this.useIndexedDB)
36013
+ return [2, []];
36014
+ i2.label = 3;
36015
+ case 3:
36016
+ return [2, new Promise(function(i3, n2) {
36017
+ var r2 = e2.db.transaction([e2.STORE_NAME], "readonly"), o2 = r2.objectStore(e2.STORE_NAME).index("timestamp").openCursor(null, "next"), s2 = [];
36018
+ r2.onerror = function() {
36019
+ var t4, o3;
36020
+ "UnknownError" === (null === (t4 = r2.error) || void 0 === t4 ? void 0 : t4.name) || "NotFoundError" === (null === (o3 = r2.error) || void 0 === o3 ? void 0 : o3.name) ? e2.recreateDatabase().catch(function(t5) {
36021
+ console.warn("Database recreation failed:", t5), e2.useIndexedDB = false;
36022
+ }).finally(function() {
36023
+ return i3([]);
36024
+ }) : n2(r2.error);
36025
+ }, o2.onsuccess = function(e3) {
36026
+ var n3 = e3.target.result;
36027
+ n3 && s2.length < t3 ? (s2.push(n3.value), n3.continue()) : i3(s2.map(function(t4) {
36028
+ var e4;
36029
+ return nT(nT({}, t4), { id: null === (e4 = t4.id) || void 0 === e4 ? void 0 : e4.toString() });
36030
+ }));
36031
+ }, o2.onerror = function() {
36032
+ var t4, r3;
36033
+ "UnknownError" === (null === (t4 = o2.error) || void 0 === t4 ? void 0 : t4.name) || "NotFoundError" === (null === (r3 = o2.error) || void 0 === r3 ? void 0 : r3.name) ? e2.recreateDatabase().catch(function(t5) {
36034
+ console.warn("Database recreation failed:", t5), e2.useIndexedDB = false;
36035
+ }).finally(function() {
36036
+ return i3([]);
36037
+ }) : n2(o2.error);
36038
+ };
36039
+ })];
36040
+ case 4:
36041
+ return i2.sent(), this.useIndexedDB = false, [2, []];
36042
+ case 5:
36043
+ return [2];
36044
+ }
36045
+ });
36046
+ });
36047
+ }, t2.prototype.deleteLogsFromIndexedDB = function(t3) {
36048
+ return rT(this, void 0, void 0, function() {
36049
+ var e2 = this;
36050
+ return oT(this, function(i2) {
36051
+ switch (i2.label) {
36052
+ case 0:
36053
+ if (!this.useIndexedDB || 0 === t3.length)
36054
+ return [2];
36055
+ i2.label = 1;
36056
+ case 1:
36057
+ return i2.trys.push([1, 4, , 5]), this.db && this.isDatabaseHealthy() ? [3, 3] : [4, this.recreateDatabase()];
36058
+ case 2:
36059
+ if (i2.sent(), !this.db || !this.useIndexedDB)
36060
+ return [2];
36061
+ i2.label = 3;
36062
+ case 3:
36063
+ return [2, new Promise(function(i3, n2) {
36064
+ var r2 = e2.db.transaction([e2.STORE_NAME], "readwrite"), o2 = r2.objectStore(e2.STORE_NAME), s2 = t3.map(function(t4) {
36065
+ return new Promise(function(e3, i4) {
36066
+ var n3 = Number(t4.id);
36067
+ if (n3) {
36068
+ var r3 = o2.delete(n3);
36069
+ r3.onsuccess = function() {
36070
+ return e3();
36071
+ }, r3.onerror = function() {
36072
+ var t5, n4;
36073
+ "UnknownError" === (null === (t5 = r3.error) || void 0 === t5 ? void 0 : t5.name) || "NotFoundError" === (null === (n4 = r3.error) || void 0 === n4 ? void 0 : n4.name) ? e3() : i4(r3.error);
36074
+ };
36075
+ } else
36076
+ e3();
36077
+ });
36078
+ });
36079
+ r2.onerror = function() {
36080
+ var t4, o3;
36081
+ "UnknownError" === (null === (t4 = r2.error) || void 0 === t4 ? void 0 : t4.name) || "NotFoundError" === (null === (o3 = r2.error) || void 0 === o3 ? void 0 : o3.name) ? e2.recreateDatabase().catch(function(t5) {
36082
+ console.warn("Database recreation failed:", t5), e2.useIndexedDB = false;
36083
+ }).finally(function() {
36084
+ return i3();
36085
+ }) : n2(r2.error);
36086
+ }, Promise.all(s2).then(function() {
36087
+ return i3();
36088
+ }).catch(n2);
36089
+ })];
36090
+ case 4:
36091
+ return i2.sent(), this.useIndexedDB = false, [3, 5];
36092
+ case 5:
36093
+ return [2];
36094
+ }
36095
+ });
36096
+ });
36097
+ }, t2.prototype.start = function() {
36098
+ return rT(this, void 0, void 0, function() {
35924
36099
  var t3 = this;
35925
- return rT(this, function(e2) {
36100
+ return oT(this, function(e2) {
35926
36101
  return clearInterval(this.checkTimer), this.checkTimer = setInterval(function() {
35927
- return nT(t3, void 0, void 0, function() {
35928
- return rT(this, function(t4) {
36102
+ return rT(t3, void 0, void 0, function() {
36103
+ return oT(this, function(t4) {
35929
36104
  switch (t4.label) {
35930
36105
  case 0:
35931
36106
  return [4, this.uploadLog()];
@@ -35940,27 +36115,94 @@ void main(void){
35940
36115
  }, t2.prototype.pause = function() {
35941
36116
  clearInterval(this.checkTimer);
35942
36117
  }, t2.prototype.addLog = function(t3, e2, i2, n2) {
35943
- this.logList.push({ level: e2, taskId: i2, message: t3, randomId: n2 });
36118
+ return rT(this, void 0, void 0, function() {
36119
+ var r2;
36120
+ return oT(this, function(o2) {
36121
+ switch (o2.label) {
36122
+ case 0:
36123
+ if (r2 = { level: e2, taskId: i2, message: t3, randomId: n2, timestamp: Date.now().toString() }, !this.useIndexedDB)
36124
+ return [3, 5];
36125
+ o2.label = 1;
36126
+ case 1:
36127
+ return o2.trys.push([1, 3, , 4]), [4, this.storeLogInIndexedDB(r2)];
36128
+ case 2:
36129
+ return o2.sent(), [3, 4];
36130
+ case 3:
36131
+ return o2.sent(), this.logList.push(r2), [3, 4];
36132
+ case 4:
36133
+ return [3, 6];
36134
+ case 5:
36135
+ this.logList.push(r2), o2.label = 6;
36136
+ case 6:
36137
+ return [2];
36138
+ }
36139
+ });
36140
+ });
36141
+ }, t2.prototype.isDatabaseHealthy = function() {
36142
+ if (!this.db)
36143
+ return false;
36144
+ try {
36145
+ this.db.transaction([this.STORE_NAME], "readonly").objectStore(this.STORE_NAME).index("timestamp");
36146
+ return true;
36147
+ } catch (t3) {
36148
+ return console.warn("Database health check failed:", t3), false;
36149
+ }
36150
+ }, t2.prototype.recreateDatabase = function() {
36151
+ return rT(this, void 0, void 0, function() {
36152
+ var t3 = this;
36153
+ return oT(this, function(e2) {
36154
+ return [2, new Promise(function(e3, i2) {
36155
+ try {
36156
+ t3.db && (t3.db.close(), t3.db = null);
36157
+ var n2 = indexedDB.open(t3.DB_NAME, 1);
36158
+ n2.onerror = function() {
36159
+ t3.useIndexedDB = false, i2(n2.error);
36160
+ }, n2.onsuccess = function() {
36161
+ t3.db = n2.result, t3.useIndexedDB = true, e3();
36162
+ }, n2.onupgradeneeded = function(e4) {
36163
+ var i3 = e4.target.result;
36164
+ i3.objectStoreNames.contains(t3.STORE_NAME) || i3.createObjectStore(t3.STORE_NAME, { keyPath: "id", autoIncrement: true }).createIndex("timestamp", "timestamp");
36165
+ };
36166
+ } catch (e4) {
36167
+ t3.useIndexedDB = false, i2(e4);
36168
+ }
36169
+ })];
36170
+ });
36171
+ });
35944
36172
  }, t2.prototype.destroy = function() {
35945
- clearInterval(this.checkTimer), window.removeEventListener("message", this.uploadLoggerGlobalEvent);
36173
+ clearInterval(this.checkTimer), window.removeEventListener("message", this.uploadLoggerGlobalEvent), this.db && (this.db.close(), this.db = null);
35946
36174
  }, t2.prototype.uploadLog = function(t3) {
35947
- return void 0 === t3 && (t3 = false), nT(this, void 0, void 0, function() {
36175
+ return void 0 === t3 && (t3 = false), rT(this, void 0, void 0, function() {
35948
36176
  var e2, i2, n2, r2 = this;
35949
- return rT(this, function(o2) {
36177
+ return oT(this, function(o2) {
35950
36178
  switch (o2.label) {
35951
36179
  case 0:
35952
- if (!(this.logList.length >= this.config.buffer || t3))
35953
- return [2];
35954
- e2 = this.logList.splice(0), i2 = function() {
35955
- r2.logList = e2.concat(r2.logList), r2.retryTimes > 3 && r2.pause(), r2.retryTimes += 1;
35956
- }, o2.label = 1;
36180
+ return e2 = [], this.useIndexedDB ? [4, this.getLogsFromIndexedDB(this.BATCH_SIZE)] : [3, 2];
35957
36181
  case 1:
35958
- return o2.trys.push([1, 3, , 4]), [4, fetch("https://netless-ppt-plugin-dev.cn-hangzhou.log.aliyuncs.com/logstores/netless-ppt-plugin-dev/track", { method: "POST", headers: { "x-log-apiversion": "0.6.0", "Content-Type": "application/json", Accept: "*/*" }, body: JSON.stringify({ __topic__: "netless-ppt-plugin-dev", __source__: "netless-ppt-plugin-dev", __logs__: e2 }) })];
36182
+ return 0 === (e2 = o2.sent()).length ? [2] : [3, 3];
35959
36183
  case 2:
35960
- return o2.sent().ok ? this.retryTimes = 0 : i2(), [3, 4];
36184
+ if (!(this.logList.length >= this.config.buffer || t3))
36185
+ return [2];
36186
+ e2 = this.logList.splice(0), o2.label = 3;
35961
36187
  case 3:
35962
- return n2 = o2.sent(), console.warn(n2), i2(), [3, 4];
36188
+ i2 = function() {
36189
+ r2.useIndexedDB || (r2.logList = e2.concat(r2.logList)), r2.retryTimes > 3 && r2.pause(), r2.retryTimes += 1;
36190
+ }, o2.label = 4;
35963
36191
  case 4:
36192
+ return o2.trys.push([4, 10, , 11]), [4, fetch("https://netless-ppt-plugin-dev.cn-hangzhou.log.aliyuncs.com/logstores/netless-ppt-plugin-dev/track", { method: "POST", headers: { "x-log-apiversion": "0.6.0", "Content-Type": "application/json", Accept: "*/*" }, body: JSON.stringify({ __topic__: "netless-ppt-plugin-dev", __source__: "netless-ppt-plugin-dev", __logs__: e2 }) })];
36193
+ case 5:
36194
+ return o2.sent().ok ? (this.retryTimes = 0, this.useIndexedDB ? [4, this.deleteLogsFromIndexedDB(e2)] : [3, 7]) : [3, 8];
36195
+ case 6:
36196
+ o2.sent(), o2.label = 7;
36197
+ case 7:
36198
+ return [3, 9];
36199
+ case 8:
36200
+ i2(), o2.label = 9;
36201
+ case 9:
36202
+ return [3, 11];
36203
+ case 10:
36204
+ return n2 = o2.sent(), console.warn(n2), i2(), [3, 11];
36205
+ case 11:
35964
36206
  return [2];
35965
36207
  }
35966
36208
  });
@@ -35968,7 +36210,7 @@ void main(void){
35968
36210
  }, t2.prototype.setEnable = function(t3) {
35969
36211
  this.enable !== t3 && (t3 ? this.start() : this.pause());
35970
36212
  }, t2;
35971
- }(), sT = function(t2, e2, i2, n2) {
36213
+ }(), aT = function(t2, e2, i2, n2) {
35972
36214
  return new (i2 || (i2 = Promise))(function(r2, o2) {
35973
36215
  function s2(t3) {
35974
36216
  try {
@@ -35992,7 +36234,7 @@ void main(void){
35992
36234
  }
35993
36235
  l2((n2 = n2.apply(t2, e2 || [])).next());
35994
36236
  });
35995
- }, aT = function(t2, e2) {
36237
+ }, lT = function(t2, e2) {
35996
36238
  var i2, n2, r2, o2, s2 = { label: 0, sent: function() {
35997
36239
  if (1 & r2[0])
35998
36240
  throw r2[1];
@@ -36056,13 +36298,13 @@ void main(void){
36056
36298
  };
36057
36299
  }
36058
36300
  };
36059
- function lT(t2, e2, i2, n2, r2) {
36060
- return sT(this, void 0, void 0, function() {
36301
+ function hT(t2, e2, i2, n2, r2) {
36302
+ return aT(this, void 0, void 0, function() {
36061
36303
  var o2, s2, a2, l2, h2, u2;
36062
- return aT(this, function(c2) {
36304
+ return lT(this, function(c2) {
36063
36305
  switch (c2.label) {
36064
36306
  case 0:
36065
- return o2 = document.createElement("div"), (s2 = new bT({ anchor: o2, renderOptions: { minFPS: 1, maxFPS: 1, resolution: 1, maxResolutionLevel: i2, forceCanvas: true }, mode: "local", interactive: false, useLocalCache: true })).setResource(t2, e2), [4, s2.getSlideCountAsync()];
36307
+ return o2 = document.createElement("div"), (s2 = new TT({ anchor: o2, renderOptions: { minFPS: 1, maxFPS: 1, resolution: 1, maxResolutionLevel: i2, forceCanvas: true }, mode: "local", interactive: false, useLocalCache: true })).setResource(t2, e2), [4, s2.getSlideCountAsync()];
36066
36308
  case 1:
36067
36309
  a2 = c2.sent(), c2.label = 2;
36068
36310
  case 2:
@@ -36099,7 +36341,7 @@ void main(void){
36099
36341
  });
36100
36342
  });
36101
36343
  }
36102
- var hT = function() {
36344
+ var uT = function() {
36103
36345
  var t2 = function(e2, i2) {
36104
36346
  return (t2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t3, e3) {
36105
36347
  t3.__proto__ = e3;
@@ -36116,14 +36358,14 @@ void main(void){
36116
36358
  }
36117
36359
  t2(e2, i2), e2.prototype = null === i2 ? Object.create(i2) : (n2.prototype = i2.prototype, new n2());
36118
36360
  };
36119
- }(), uT = function() {
36120
- return (uT = Object.assign || function(t2) {
36361
+ }(), cT = function() {
36362
+ return (cT = Object.assign || function(t2) {
36121
36363
  for (var e2, i2 = 1, n2 = arguments.length; i2 < n2; i2++)
36122
36364
  for (var r2 in e2 = arguments[i2])
36123
36365
  Object.prototype.hasOwnProperty.call(e2, r2) && (t2[r2] = e2[r2]);
36124
36366
  return t2;
36125
36367
  }).apply(this, arguments);
36126
- }, cT = function(t2, e2, i2, n2) {
36368
+ }, dT = function(t2, e2, i2, n2) {
36127
36369
  var r2, o2 = arguments.length, s2 = o2 < 3 ? e2 : null === n2 ? n2 = Object.getOwnPropertyDescriptor(e2, i2) : n2;
36128
36370
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate)
36129
36371
  s2 = Reflect.decorate(t2, e2, i2, n2);
@@ -36131,7 +36373,7 @@ void main(void){
36131
36373
  for (var a2 = t2.length - 1; a2 >= 0; a2--)
36132
36374
  (r2 = t2[a2]) && (s2 = (o2 < 3 ? r2(s2) : o2 > 3 ? r2(e2, i2, s2) : r2(e2, i2)) || s2);
36133
36375
  return o2 > 3 && s2 && Object.defineProperty(e2, i2, s2), s2;
36134
- }, dT = function(t2, e2, i2, n2) {
36376
+ }, pT = function(t2, e2, i2, n2) {
36135
36377
  return new (i2 || (i2 = Promise))(function(r2, o2) {
36136
36378
  function s2(t3) {
36137
36379
  try {
@@ -36155,7 +36397,7 @@ void main(void){
36155
36397
  }
36156
36398
  l2((n2 = n2.apply(t2, e2 || [])).next());
36157
36399
  });
36158
- }, pT = function(t2, e2) {
36400
+ }, fT = function(t2, e2) {
36159
36401
  var i2, n2, r2, o2, s2 = { label: 0, sent: function() {
36160
36402
  if (1 & r2[0])
36161
36403
  throw r2[1];
@@ -36218,20 +36460,20 @@ void main(void){
36218
36460
  }([o3, a3]);
36219
36461
  };
36220
36462
  }
36221
- }, fT = window.ResizeObserver || Gx, mT = function(t2) {
36463
+ }, mT = window.ResizeObserver || Gx, gT = function(t2) {
36222
36464
  return new Promise(function(e2) {
36223
36465
  return setTimeout(e2, t2);
36224
36466
  });
36225
36467
  };
36226
- function gT(t2, e2) {
36227
- return dT(this, void 0, void 0, function() {
36468
+ function vT(t2, e2) {
36469
+ return pT(this, void 0, void 0, function() {
36228
36470
  var i2;
36229
- return pT(this, function(n2) {
36471
+ return fT(this, function(n2) {
36230
36472
  switch (n2.label) {
36231
36473
  case 0:
36232
36474
  i2 = Date.now(), n2.label = 1;
36233
36475
  case 1:
36234
- return !t2() && Date.now() - i2 < e2 ? [4, mT(50)] : [3, 3];
36476
+ return !t2() && Date.now() - i2 < e2 ? [4, gT(50)] : [3, 3];
36235
36477
  case 2:
36236
36478
  return n2.sent(), i2 = Date.now(), [3, 1];
36237
36479
  case 3:
@@ -36240,24 +36482,24 @@ void main(void){
36240
36482
  });
36241
36483
  });
36242
36484
  }
36243
- var vT = { 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", useraddLink: "useraddLink" }, _T = { taskId: "", url: "", currentSlideIndex: -1, mainSeqStep: -1, mainSeqState: null, mediaState: /* @__PURE__ */ Object.create(null), interactiveSeqState: /* @__PURE__ */ Object.create(null) }, yT = "";
36485
+ var _T = { 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", useraddLink: "useraddLink" }, yT = { taskId: "", url: "", currentSlideIndex: -1, mainSeqStep: -1, mainSeqState: null, mediaState: /* @__PURE__ */ Object.create(null), interactiveSeqState: /* @__PURE__ */ Object.create(null) }, xT = "";
36244
36486
  try {
36245
- yT = "1.4.36";
36487
+ xT = "1.4.37";
36246
36488
  } catch (t2) {
36247
- yT = "-dev-";
36489
+ xT = "-dev-";
36248
36490
  }
36249
- var xT = null;
36491
+ var bT = null;
36250
36492
  try {
36251
- (xT = o.createInstance({ name: "__slide_local_log__", driver: o.INDEXEDDB, version: 1 })).ready(function(t2) {
36493
+ (bT = o.createInstance({ name: "__slide_local_log__", driver: o.INDEXEDDB, version: 1 })).ready(function(t2) {
36252
36494
  }).catch(function(t2) {
36253
36495
  });
36254
36496
  } catch (t2) {
36255
36497
  }
36256
36498
  navigator.userAgent.toUpperCase().includes("HUAWEI") && document.createElement("canvas").getContext("2d").fillText("\u9065\u9065\u9886\u5148", 0, 10);
36257
- var bT = function(t2) {
36499
+ var TT = function(t2) {
36258
36500
  function e2(i3) {
36259
36501
  var n3 = t2.call(this) || this;
36260
- return n3.iosResetCache = [], n3.version = yT, n3.__slideState = ex()(_T), n3.userInputTime = 0, n3.isSyncingSlideState = false, n3.frozenTaskManager = new iT(), n3.randomId = r(), n3.resize = false, n3.isAnimating = false, n3.renderingTaskManager = new Vx(), n3.isLoading = false, n3.interactive = true, n3.renderingIndex = 0, n3.frameWidth = 1, n3.frameHeight = 1, n3.frame = document.createElement("div"), n3.canvasContainer = document.createElement("div"), n3.medianController = document.createElement("div"), n3.frameResizeObserver = new fT(function() {
36502
+ return n3.iosResetCache = [], n3.version = xT, n3.__slideState = ex()(yT), n3.userInputTime = 0, n3.isSyncingSlideState = false, n3.frozenTaskManager = new iT(), n3.randomId = r(), n3.resize = false, n3.isAnimating = false, n3.renderingTaskManager = new Vx(), n3.isLoading = false, n3.interactive = true, n3.renderingIndex = 0, n3.frameWidth = 1, n3.frameHeight = 1, n3.frame = document.createElement("div"), n3.canvasContainer = document.createElement("div"), n3.medianController = document.createElement("div"), n3.frameResizeObserver = new mT(function() {
36261
36503
  return n3.frameResizeHandler();
36262
36504
  }), n3.timestamp = function() {
36263
36505
  return Date.now();
@@ -36275,9 +36517,9 @@ void main(void){
36275
36517
  });
36276
36518
  }
36277
36519
  }, n3.urlInterrupter = function(t3) {
36278
- return dT(n3, void 0, void 0, function() {
36520
+ return pT(n3, void 0, void 0, function() {
36279
36521
  var e3, i4;
36280
- return pT(this, function(n4) {
36522
+ return fT(this, function(n4) {
36281
36523
  return e3 = t3, this.resourceList.length > 0 && (i4 = t3.replace(/^.*__internal__/, ""), e3 = this.resourceList.find(function(t4) {
36282
36524
  return t4.indexOf(i4) >= 0;
36283
36525
  }) || t3), this.config.urlInterrupter ? [2, this.config.urlInterrupter(e3)] : [2, Promise.resolve(e3)];
@@ -36297,12 +36539,12 @@ void main(void){
36297
36539
  var i4 = Number(t3.detail.value);
36298
36540
  i4 > 0 && Number.isInteger(i4) && (e2.__stageCountLimit = i4);
36299
36541
  }, n3.receiveSyncHandler = function(t3) {
36300
- return dT(n3, void 0, void 0, function() {
36542
+ return pT(n3, void 0, void 0, function() {
36301
36543
  var e3, i4, n4, r2, o2, s2 = this;
36302
- return pT(this, function(a2) {
36544
+ return fT(this, function(a2) {
36303
36545
  switch (a2.label) {
36304
36546
  case 0:
36305
- return Vm()(t3.incrId) && (t3.incrId && t3.incrId - this._receiveIncrId != 1 && this.emit(vT.syncEventLag), this._receiveIncrId = t3.incrId || 0), this.logger.info("sync receive " + JSON.stringify(t3), this.taskId), "nextStep" !== t3.type ? [3, 1] : (this.mainSeqStep !== t3.next - 1 && this.mainSeqStep + 1 !== this.mainSeqLength && this.player ? (this.setMainSeqStep(t3.next, "start"), this.player.nextTick(function() {
36547
+ return Vm()(t3.incrId) && (t3.incrId && t3.incrId - this._receiveIncrId != 1 && this.emit(_T.syncEventLag), this._receiveIncrId = t3.incrId || 0), this.logger.info("sync receive " + JSON.stringify(t3), this.taskId), "nextStep" !== t3.type ? [3, 1] : (this.mainSeqStep !== t3.next - 1 && this.mainSeqStep + 1 !== this.mainSeqLength && this.player ? (this.setMainSeqStep(t3.next, "start"), this.player.nextTick(function() {
36306
36548
  s2.doNextStep(true, t3.clientId || "");
36307
36549
  })) : this.doNextStep(true, t3.clientId || ""), [3, 6]);
36308
36550
  case 1:
@@ -36325,16 +36567,16 @@ void main(void){
36325
36567
  }, n3.flushDebounce = function() {
36326
36568
  n3.resizeView.flush(), n3.handleViewClick.flush();
36327
36569
  }, n3.handlePrevSlide = function(t3) {
36328
- return void 0 === t3 && (t3 = false), dT(n3, void 0, void 0, function() {
36570
+ return void 0 === t3 && (t3 = false), pT(n3, void 0, void 0, function() {
36329
36571
  var e3, i4;
36330
- return pT(this, function(n4) {
36572
+ return fT(this, function(n4) {
36331
36573
  return this.player ? ((e3 = this.player.prevSlideIndex) >= 1 && ((null === (i4 = this.config.navigatorDelegate) || void 0 === i4 ? void 0 : i4.gotoPage) ? this.config.navigatorDelegate.gotoPage(e3) : t3 ? this.doRenderSlide(e3, false) : this.renderSlide(e3, false)), [2]) : [2];
36332
36574
  });
36333
36575
  });
36334
36576
  }, n3.handleNextSlide = function(t3) {
36335
- return void 0 === t3 && (t3 = false), dT(n3, void 0, void 0, function() {
36577
+ return void 0 === t3 && (t3 = false), pT(n3, void 0, void 0, function() {
36336
36578
  var e3, i4;
36337
- return pT(this, function(n4) {
36579
+ return fT(this, function(n4) {
36338
36580
  return this.player ? ((e3 = this.player.nextSlideIndex) <= this.slideCount && ((null === (i4 = this.config.navigatorDelegate) || void 0 === i4 ? void 0 : i4.gotoPage) ? this.config.navigatorDelegate.gotoPage(e3) : t3 ? this.doRenderSlide(e3, true) : this.renderSlide(e3, true)), [2]) : [2];
36339
36581
  });
36340
36582
  });
@@ -36345,7 +36587,7 @@ void main(void){
36345
36587
  } else
36346
36588
  -1 === t3 && n3.renderSlide(n3.slideCount, true);
36347
36589
  }, e2.instances.push(n3), n3.config = n3.initSlideConfig(i3), n3.tracker = function(t3) {
36348
- i3.whiteTracker && i3.whiteTracker.commit({ name: t3.name, reason: t3.reason, result: t3.result, payload: uT(uT({}, t3.payload), { slideId: n3.randomId, taskId: n3.taskId }) }, { slideVersion: n3.version || "" });
36590
+ i3.whiteTracker && i3.whiteTracker.commit({ name: t3.name, reason: t3.reason, result: t3.result, payload: cT(cT({}, t3.payload), { slideId: n3.randomId, taskId: n3.taskId }) }, { slideVersion: n3.version || "" });
36349
36591
  }, e2.trackLogger.setEnable(!!n3.config.enableTracking), n3.logger = { info: function(t3, i4) {
36350
36592
  var r2;
36351
36593
  e2.appendLogString("INFO - " + new Date().toISOString() + " - {" + n3.randomId + "}[" + i4 + "] " + t3 + "\n"), e2.trackLogger.addLog(t3, "info", i4, n3.randomId);
@@ -36361,7 +36603,7 @@ void main(void){
36361
36603
  e2.appendLogString("ERROR - " + new Date().toISOString() + " - {" + n3.randomId + "}[" + i4 + "] " + t3 + "\n"), e2.trackLogger.addLog(t3, "error", i4, n3.randomId);
36362
36604
  var o2 = null === (r2 = n3.config.logger) || void 0 === r2 ? void 0 : r2.error;
36363
36605
  o2 && o2("[" + i4 + "] " + t3);
36364
- } }, n3.logger.info("new slide with clientId: " + n3.config.clientId + ", version: " + n3.version, n3.taskId), n3.tracker({ name: "initSlide", result: "", reason: "", payload: { taskId: n3.taskId } }), n3.anchor = n3.config.anchor, n3.syncQueue = new tT(n3.receiveSyncHandler), n3.lock = new eT("interactive" === n3.mode), n3.cacheImage.style.position = "absolute", n3.cacheImage.style.display = "block", n3.cacheImage.style.zIndex = "100", n3.setMedianControllerAttribute(), n3.canvasContainer.style.position = "relative", n3.canvasContainer.style.fontSize = "0", n3.canvasContainer.appendChild(n3.medianController), n3.frame.appendChild(n3.canvasContainer), n3.frame.appendChild(n3.cacheImage), n3.frameResizeObserver.observe(n3.frame), n3.on(vT.syncReceive, function(t3) {
36606
+ } }, n3.logger.info("new slide with clientId: " + n3.config.clientId + ", version: " + n3.version, n3.taskId), n3.tracker({ name: "initSlide", result: "", reason: "", payload: { taskId: n3.taskId } }), n3.anchor = n3.config.anchor, n3.syncQueue = new tT(n3.receiveSyncHandler), n3.lock = new eT("interactive" === n3.mode), n3.cacheImage.style.position = "absolute", n3.cacheImage.style.display = "block", n3.cacheImage.style.zIndex = "100", n3.setMedianControllerAttribute(), n3.canvasContainer.style.position = "relative", n3.canvasContainer.style.fontSize = "0", n3.canvasContainer.appendChild(n3.medianController), n3.frame.appendChild(n3.canvasContainer), n3.frame.appendChild(n3.cacheImage), n3.frameResizeObserver.observe(n3.frame), n3.on(_T.syncReceive, function(t3) {
36365
36607
  n3.lock.unlock(t3.type, t3.uuid), !n3.player && n3.config.skipActionWhenFrozen || "sync" === n3.mode && n3.config.clientId === t3.clientId || n3.syncQueue.addTask(t3);
36366
36608
  }), n3.renderingTaskManager.eventHub.on("task-error", function(t3) {
36367
36609
  var e3 = t3.error, i4 = t3.task, r2 = Tm.transform(e3);
@@ -36372,16 +36614,16 @@ void main(void){
36372
36614
  }), window.addEventListener("message", n3.recoverHandler), e2.volumeAdjuster.on("update", n3._updateVolumeByStaticAdjuster), n3.volumeAdjuster.volume = e2.volumeAdjuster.volume, n3;
36373
36615
  }
36374
36616
  var i2, n2;
36375
- return hT(e2, t2), e2.flushLog = function(t3) {
36376
- return void 0 === t3 && (t3 = false), dT(this, void 0, void 0, function() {
36377
- return pT(this, function(i3) {
36617
+ return uT(e2, t2), e2.flushLog = function(t3) {
36618
+ return void 0 === t3 && (t3 = false), pT(this, void 0, void 0, function() {
36619
+ return fT(this, function(i3) {
36378
36620
  switch (i3.label) {
36379
36621
  case 0:
36380
36622
  if (!(e2._tempLog.length > 131072 || t3 && e2._tempLog.length > 0))
36381
36623
  return [3, 5];
36382
36624
  i3.label = 1;
36383
36625
  case 1:
36384
- return i3.trys.push([1, 3, , 4]), [4, null == xT ? void 0 : xT.setItem("run_time_log_" + e2._tempLogIndex, e2._tempLog)];
36626
+ return i3.trys.push([1, 3, , 4]), [4, null == bT ? void 0 : bT.setItem("run_time_log_" + e2._tempLogIndex, e2._tempLog)];
36385
36627
  case 2:
36386
36628
  return i3.sent(), [3, 4];
36387
36629
  case 3:
@@ -36396,18 +36638,18 @@ void main(void){
36396
36638
  }, e2.stopRemoteLog = function() {
36397
36639
  e2.remoteLogAddress = null;
36398
36640
  }, e2.startRemoteLog = function(t3) {
36399
- return dT(this, void 0, void 0, function() {
36641
+ return pT(this, void 0, void 0, function() {
36400
36642
  var i3, n3, r2, o2, s2;
36401
- return pT(this, function(a2) {
36643
+ return fT(this, function(a2) {
36402
36644
  switch (a2.label) {
36403
36645
  case 0:
36404
36646
  return e2.remoteLogAddress = t3, [4, e2.flushLog(true)];
36405
36647
  case 1:
36406
- if (a2.sent(), !xT)
36648
+ if (a2.sent(), !bT)
36407
36649
  return [3, 13];
36408
36650
  i3 = [], a2.label = 2;
36409
36651
  case 2:
36410
- return a2.trys.push([2, 4, , 5]), [4, xT.keys()];
36652
+ return a2.trys.push([2, 4, , 5]), [4, bT.keys()];
36411
36653
  case 3:
36412
36654
  return i3 = (a2.sent() || []).sort(function(t4, e3) {
36413
36655
  return parseInt(t4.replace("run_time_log_", "")) - parseInt(e3.replace("run_time_log_", ""));
@@ -36421,7 +36663,7 @@ void main(void){
36421
36663
  return [3, 13];
36422
36664
  o2 = r2[n3], o2.replace("run_time_log_", ""), s2 = "", a2.label = 7;
36423
36665
  case 7:
36424
- return a2.trys.push([7, 9, , 10]), [4, xT.getItem(o2)];
36666
+ return a2.trys.push([7, 9, , 10]), [4, bT.getItem(o2)];
36425
36667
  case 8:
36426
36668
  return s2 = a2.sent() || "", [3, 10];
36427
36669
  case 9:
@@ -36447,17 +36689,17 @@ void main(void){
36447
36689
  }, Object.defineProperty(e2.prototype, "dispatchIncrId", { get: function() {
36448
36690
  return this._dispatchIncrId++;
36449
36691
  }, enumerable: false, configurable: true }), e2.prototype.reportError = function(t3, i3) {
36450
- this.emit(vT.renderError, { error: t3, index: i3 }), window.postMessage({ type: "@slide/_error_", errorType: t3.errorType, errorMsg: t3.errorMsg, slideId: this.randomId, slideIndex: i3, customMessage: "@slide/_error_" }, "*"), e2.trackLogger.uploadLog(true);
36692
+ this.emit(_T.renderError, { error: t3, index: i3 }), window.postMessage({ type: "@slide/_error_", errorType: t3.errorType, errorMsg: t3.errorMsg, slideId: this.randomId, slideIndex: i3 || -1, customMessage: "@slide/_error_" }, "*"), e2.trackLogger.uploadLog(true);
36451
36693
  }, e2.prototype.initSlideConfig = function(t3) {
36452
36694
  return t3.timestamp && (this.timestamp = t3.timestamp), t3.rtcAudio && (Yy.RtcAudioClazz = t3.rtcAudio), false !== t3.enableWebAudio && (t3.enableWebAudio = true), this.mode = t3.mode, this.anchor = t3.anchor, this.anchor.appendChild(this.frame), this.enableGlobalClick = !$a()(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;
36453
36695
  }, e2.prototype.initPlayer = function(t3) {
36454
36696
  var e3, i3, n3, r2 = this, o2 = new Yy({ mode: this.mode, useLocalCache: !!$a()(this.config.useLocalCache) || this.config.useLocalCache, logger: this.logger, resourceTimeout: $a()(this.config.resourceTimeout) ? 15e3 : this.config.resourceTimeout, loadDelegate: this.config.loaderDelegate, volumeAdjuster: this.volumeAdjuster, urlInterrupter: this.urlInterrupter, tracker: this.tracker, enableWebAudio: this.config.enableWebAudio, enableAutoForward: this.config.enableAutoForward, customLinks: this.config.customLinks }, t3.renderOptions);
36455
36697
  return o2.setInteractive(this.interactive), o2.updateConfig(t3.renderOptions || {}), o2.on(Xy.renderStart, function(t4) {
36456
- r2.isLoading = true, r2.emit(vT.renderStart, t4), window.postMessage({ type: "@slide/_render_start_", taskId: r2.taskId, index: t4 }, "*");
36698
+ r2.isLoading = true, r2.emit(_T.renderStart, t4), window.postMessage({ type: "@slide/_render_start_", taskId: r2.taskId, index: t4 }, "*");
36457
36699
  }), o2.on(Xy.renderEnd, function(t4) {
36458
- 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.cacheImage.style.maxWidth = r2.player.designWidth + "px", r2.cacheImage.style.minWidth = r2.player.designHeight + "px", r2._slideCount = r2.player.slideCount), r2.emit(vT.renderEnd, t4), window.postMessage({ type: "@slide/_render_end_", taskId: r2.taskId, index: t4 }, "*");
36700
+ 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.cacheImage.style.maxWidth = r2.player.designWidth + "px", r2.cacheImage.style.minWidth = r2.player.designHeight + "px", r2._slideCount = r2.player.slideCount), r2.emit(_T.renderEnd, t4), window.postMessage({ type: "@slide/_render_end_", taskId: r2.taskId, index: t4 }, "*");
36459
36701
  }), o2.on(Xy.slideChange, function(t4) {
36460
- r2.__slideState.currentSlideIndex = t4, r2.emitStateChange(), r2.emit(vT.slideChange, t4);
36702
+ r2.__slideState.currentSlideIndex = t4, r2.emitStateChange(), r2.emit(_T.slideChange, t4);
36461
36703
  }), o2.on(Xy.mainSeqStateChange, function(t4) {
36462
36704
  r2.__slideState.mainSeqState = t4, r2.emitStateChange();
36463
36705
  }), o2.on(Xy.mainSeqStepChange, function(t4) {
@@ -36466,16 +36708,16 @@ void main(void){
36466
36708
  var e4 = t4.id, i4 = t4.state;
36467
36709
  r2.__slideState.interactiveSeqState[e4] = i4, r2.emitStateChange();
36468
36710
  }), o2.on(Xy.animateStart, function() {
36469
- true !== r2.isAnimating && (r2.isAnimating = true, r2.emit(vT.animateStart));
36711
+ true !== r2.isAnimating && (r2.isAnimating = true, r2.emit(_T.animateStart));
36470
36712
  }), o2.on(Xy.animateEnd, function() {
36471
- false !== r2.isAnimating && (r2.isAnimating = false, r2.emit(vT.animateEnd));
36713
+ false !== r2.isAnimating && (r2.isAnimating = false, r2.emit(_T.animateEnd));
36472
36714
  }), o2.on(Xy.interactiveSeqAction, function(t4) {
36473
36715
  var e4 = t4.action, i4 = t4.seqId;
36474
36716
  r2.emitSyncDispatch({ slideIndex: r2.__slideState.currentSlideIndex, type: "interactiveAnim", action: e4, seqId: i4 }), r2.emitStateChange();
36475
36717
  }), o2.on(Xy.mainSeqStepStart, function(t4) {
36476
- r2.emit(vT.mainSeqStepStart, t4);
36718
+ r2.emit(_T.mainSeqStepStart, t4);
36477
36719
  }), o2.on(Xy.mainSeqStepEnd, function(t4) {
36478
- r2.emit(vT.mainSeqStepEnd, t4);
36720
+ r2.emit(_T.mainSeqStepEnd, t4);
36479
36721
  }), o2.on(Xy.mediaPlay, function(t4) {
36480
36722
  var e4, i4 = null !== (e4 = r2.__slideState.mediaState[t4.id]) && void 0 !== e4 ? e4 : {};
36481
36723
  i4.type = "play", i4.time = r2.timestamp() - 1e3 * t4.time, r2.__slideState.mediaState[t4.id] = i4, t4._stateOnly ? "interactive" === r2.config.mode && r2.receiveSyncHandler({ slideIndex: r2.__slideState.currentSlideIndex, type: "mediaPlay", id: t4.id, state: i4 }).catch(function(t5) {
@@ -36498,7 +36740,7 @@ void main(void){
36498
36740
  }), o2.on(Xy.requestNextSlide, function(t4) {
36499
36741
  r2.handleNextSlide(t4);
36500
36742
  }), o2.on(Xy.useraddLink, function(t4) {
36501
- r2.emit(vT.useraddLink, r2.taskId, r2.renderingIndex, t4);
36743
+ r2.emit(_T.useraddLink, r2.taskId, r2.renderingIndex, t4);
36502
36744
  }), o2.on(Xy.requestGotoSlide, function(t4) {
36503
36745
  var e4;
36504
36746
  (null === (e4 = r2.config.navigatorDelegate) || void 0 === e4 ? void 0 : e4.gotoPage) ? r2.config.navigatorDelegate.gotoPage(t4) : r2.handleGotoSlide(t4);
@@ -36540,9 +36782,9 @@ void main(void){
36540
36782
  }
36541
36783
  }, e2.prototype.setSlideState = function(t3) {
36542
36784
  var e3, i3, n3;
36543
- return dT(this, void 0, void 0, function() {
36785
+ return pT(this, void 0, void 0, function() {
36544
36786
  var r2, o2 = this;
36545
- return pT(this, function(s2) {
36787
+ return fT(this, function(s2) {
36546
36788
  switch (s2.label) {
36547
36789
  case 0:
36548
36790
  return this.isSyncingSlideState = true, this.logger.info("stateChange receive " + JSON.stringify(t3), this.taskId), t3.taskId && t3.taskId !== this.__slideState.taskId && (this.__slideState.taskId = t3.taskId, null === (e3 = this.player) || void 0 === e3 || e3.setResourceData(t3.taskId, this.__slideState.url)), t3.url && t3.url !== this.__slideState.url && (this.__slideState.url = t3.url, null === (i3 = this.player) || void 0 === i3 || i3.setResourceData(this.__slideState.taskId, t3.url)), Number.isInteger(t3.currentSlideIndex) && t3.currentSlideIndex !== this.__slideState.currentSlideIndex ? (this.__slideState.currentSlideIndex = t3.currentSlideIndex, [4, this.doRenderSlide(t3.currentSlideIndex)]) : [3, 2];
@@ -36554,7 +36796,7 @@ void main(void){
36554
36796
  return (null === (e4 = o2.player) || void 0 === e4 ? void 0 : e4.currentIndex) === t3.currentSlideIndex && (null === (i4 = o2.player) || void 0 === i4 ? void 0 : i4.currentStage);
36555
36797
  }, 3e3)];
36556
36798
  case 3:
36557
- return s2.sent(), r2 = false, Number.isInteger(t3.mainSeqStep) && t3.mainSeqStep !== this.__slideState.mainSeqStep && (r2 = true, this.__slideState.mainSeqStep = t3.mainSeqStep), t3.mainSeqState && t3.mainSeqState !== this.__slideState.mainSeqState && (r2 = true, this.__slideState.mainSeqState = t3.mainSeqState), r2 && this.setMainSeqStep(this.__slideState.mainSeqStep, "idle" === this.__slideState.mainSeqState ? "start" : "end"), t3.interactiveSeqState && (this.initInteractiveSeq(t3), this.__slideState.interactiveSeqState = t3.interactiveSeqState), [4, mT(1500)];
36799
+ return s2.sent(), r2 = false, Number.isInteger(t3.mainSeqStep) && t3.mainSeqStep !== this.__slideState.mainSeqStep && (r2 = true, this.__slideState.mainSeqStep = t3.mainSeqStep), t3.mainSeqState && t3.mainSeqState !== this.__slideState.mainSeqState && (r2 = true, this.__slideState.mainSeqState = t3.mainSeqState), r2 && this.setMainSeqStep(this.__slideState.mainSeqStep, "idle" === this.__slideState.mainSeqState ? "start" : "end"), t3.interactiveSeqState && (this.initInteractiveSeq(t3), this.__slideState.interactiveSeqState = t3.interactiveSeqState), [4, gT(1500)];
36558
36800
  case 4:
36559
36801
  return s2.sent(), t3.mediaState && (this.initMedia(t3), this.__slideState.mediaState = t3.mediaState), this.isSyncingSlideState = false, [2];
36560
36802
  }
@@ -36580,9 +36822,9 @@ void main(void){
36580
36822
  }, Object.defineProperty(e2.prototype, "slideCount", { get: function() {
36581
36823
  return this._slideCount;
36582
36824
  }, enumerable: false, configurable: true }), e2.prototype.getSizeAsync = function() {
36583
- return dT(this, void 0, void 0, function() {
36825
+ return pT(this, void 0, void 0, function() {
36584
36826
  var t3;
36585
- return pT(this, function(e3) {
36827
+ return fT(this, function(e3) {
36586
36828
  switch (e3.label) {
36587
36829
  case 0:
36588
36830
  if (this.width > 0 && this.height > 0)
@@ -36602,8 +36844,8 @@ void main(void){
36602
36844
  });
36603
36845
  });
36604
36846
  }, e2.prototype.getSlideCountAsync = function() {
36605
- return dT(this, void 0, void 0, function() {
36606
- return pT(this, function(t3) {
36847
+ return pT(this, void 0, void 0, function() {
36848
+ return fT(this, function(t3) {
36607
36849
  switch (t3.label) {
36608
36850
  case 0:
36609
36851
  if (this._slideCount > 0)
@@ -36662,9 +36904,9 @@ void main(void){
36662
36904
  this.taskId = t3, this.resourceList = e3, null === (i3 = this.player) || void 0 === i3 || i3.setResourceData(t3, "__internal__"), this.__slideState.taskId = t3, this.__slideState.url = "__internal__";
36663
36905
  }, e2.prototype._renderSlide = function(t3) {
36664
36906
  var e3;
36665
- return dT(this, void 0, void 0, function() {
36907
+ return pT(this, void 0, void 0, function() {
36666
36908
  var i3 = this;
36667
- return pT(this, function(n3) {
36909
+ return fT(this, function(n3) {
36668
36910
  switch (n3.label) {
36669
36911
  case 0:
36670
36912
  return this.renderingIndex = t3, this.player && t3 === this.player.currentIndex ? [2] : ((Yy.platform.isIOS() || Yy.platform.isAndroid()) && this.iosResetCache.indexOf(t3) < 0 && this.iosResetCache.push(t3), this.flushDebounce(), [4, null === (e3 = this.player) || void 0 === e3 ? void 0 : e3.renderSlide(t3)]);
@@ -36705,7 +36947,7 @@ void main(void){
36705
36947
  var t3, e3;
36706
36948
  return null !== (e3 = null === (t3 = this.player) || void 0 === t3 ? void 0 : t3.getSnapshot()) && void 0 !== e3 ? e3 : null;
36707
36949
  }, e2.prototype.nextStep = function() {
36708
- !this.isLoading && this.player && this.interactive ? (this.hasNextStep() || this.emit(vT.slideStepEnd), this.player.mainSeqHasNextStep() ? "interactive" === this.mode ? this.emitSyncDispatch({ slideIndex: this.__slideState.currentSlideIndex, type: "nextStep", next: this.player.mainSeqStep() + 1 }) : "sync" === this.mode ? (this.doNextStep(false, ""), this.emitSyncDispatch({ slideIndex: this.__slideState.currentSlideIndex, type: "nextStep", next: this.player.mainSeqStep() })) : this.doNextStep(false, "") : this.handleNextSlide()) : this.logger.info("prevent nextStep. isLoading: " + this.isLoading + ", player: " + !!this.player + ", interactive: " + this.interactive, this.taskId);
36950
+ !this.isLoading && this.player && this.interactive ? (this.hasNextStep() || this.emit(_T.slideStepEnd), this.player.mainSeqHasNextStep() ? "interactive" === this.mode ? this.emitSyncDispatch({ slideIndex: this.__slideState.currentSlideIndex, type: "nextStep", next: this.player.mainSeqStep() + 1 }) : "sync" === this.mode ? (this.doNextStep(false, ""), this.emitSyncDispatch({ slideIndex: this.__slideState.currentSlideIndex, type: "nextStep", next: this.player.mainSeqStep() })) : this.doNextStep(false, "") : this.handleNextSlide()) : this.logger.info("prevent nextStep. isLoading: " + this.isLoading + ", player: " + !!this.player + ", interactive: " + this.interactive, this.taskId);
36709
36951
  }, e2.prototype.doNextStep = function(t3, e3) {
36710
36952
  if (this.player) {
36711
36953
  var i3 = !this.config.clientId || e3 === this.config.clientId;
@@ -36714,7 +36956,7 @@ void main(void){
36714
36956
  this.__slideState.mainSeqStep = n3, this.emitStateChange();
36715
36957
  }
36716
36958
  }, e2.prototype.prevStep = function() {
36717
- !this.isLoading && this.player && this.interactive ? (this.hasPrevStep() || this.emit(vT.slideStepStart), this.player.mainSeqHasPrevStep() ? "interactive" === this.mode ? this.emitSyncDispatch({ type: "prevStep", slideIndex: this.__slideState.currentSlideIndex, next: this.player.mainSeqStep() - 1 }) : "sync" === this.mode ? (this.doPrevStep(), this.emitSyncDispatch({ slideIndex: this.__slideState.currentSlideIndex, type: "prevStep", next: this.player.mainSeqStep() })) : this.doPrevStep() : this.handlePrevSlide()) : this.logger.info("prevent nextStep. isLoading: " + this.isLoading + ", player: " + this.player + ", interactive: " + this.interactive, this.taskId);
36959
+ !this.isLoading && this.player && this.interactive ? (this.hasPrevStep() || this.emit(_T.slideStepStart), this.player.mainSeqHasPrevStep() ? "interactive" === this.mode ? this.emitSyncDispatch({ type: "prevStep", slideIndex: this.__slideState.currentSlideIndex, next: this.player.mainSeqStep() - 1 }) : "sync" === this.mode ? (this.doPrevStep(), this.emitSyncDispatch({ slideIndex: this.__slideState.currentSlideIndex, type: "prevStep", next: this.player.mainSeqStep() })) : this.doPrevStep() : this.handlePrevSlide()) : this.logger.info("prevent nextStep. isLoading: " + this.isLoading + ", player: " + this.player + ", interactive: " + this.interactive, this.taskId);
36718
36960
  }, e2.prototype.doPrevStep = function(t3) {
36719
36961
  if (void 0 === t3 && (t3 = false), this.player) {
36720
36962
  this.player.prevStep(t3);
@@ -36726,14 +36968,14 @@ void main(void){
36726
36968
  }, e2.prototype.emitStateChange = function() {
36727
36969
  if ("local" !== this.mode && !this.isSyncingSlideState) {
36728
36970
  var t3 = this.slideState;
36729
- !Ky()(this.lastEmitedState, t3) && this.isSlideStateReady(t3) && (this.lastEmitedState = t3, this.emit(vT.stateChange, t3), this.logger.info("stateChange dispatch " + JSON.stringify(this.slideState), this.taskId));
36971
+ !Ky()(this.lastEmitedState, t3) && this.isSlideStateReady(t3) && (this.lastEmitedState = t3, this.emit(_T.stateChange, t3), this.logger.info("stateChange dispatch " + JSON.stringify(this.slideState), this.taskId));
36730
36972
  }
36731
36973
  }, e2.prototype.emitSyncDispatch = function(t3) {
36732
36974
  if (!this.lock.isLocked(t3.type)) {
36733
36975
  var e3 = Math.random().toString(32).substr(2);
36734
36976
  this.lock.addLock(t3.type, e3);
36735
- var i3 = uT(uT({}, t3), { uuid: e3, clientId: this.config.clientId });
36736
- "sync" === this.config.mode && (i3.incrId = this.dispatchIncrId), this.emit(vT.syncDispatch, i3), this.logger.info("sync dispatch " + JSON.stringify(i3), this.taskId);
36977
+ var i3 = cT(cT({}, t3), { uuid: e3, clientId: this.config.clientId });
36978
+ "sync" === this.config.mode && (i3.incrId = this.dispatchIncrId), this.emit(_T.syncDispatch, i3), this.logger.info("sync dispatch " + JSON.stringify(i3), this.taskId);
36737
36979
  }
36738
36980
  }, e2.prototype.setMainSeqStep = function(t3, e3) {
36739
36981
  var i3;
@@ -36749,9 +36991,9 @@ void main(void){
36749
36991
  null === (t3 = this.player) || void 0 === t3 || t3.resume();
36750
36992
  }, e2.prototype._doFrozen = function(t3) {
36751
36993
  var e3;
36752
- return dT(this, void 0, void 0, function() {
36994
+ return pT(this, void 0, void 0, function() {
36753
36995
  var i3, n3, r2, o2 = this;
36754
- return pT(this, function(s2) {
36996
+ return fT(this, function(s2) {
36755
36997
  switch (s2.label) {
36756
36998
  case 0:
36757
36999
  return this.logger.info("do frozen with player[" + !!this.player + "]", this.taskId), this.tracker({ name: "frozenSlide", reason: "", result: "", payload: { taskId: this.taskId } }), this.view && this.player ? [4, this.player.clock.waitUntil(function() {
@@ -36759,7 +37001,7 @@ void main(void){
36759
37001
  }, 6e4)] : [3, 2];
36760
37002
  case 1:
36761
37003
  for (n3 in s2.sent(), i3 = this.player.getSnapshot() || "", this.cacheImage.src = i3, this.cacheImage.style.display = "block", this.player.destroy(), null === (e3 = this.playerController) || void 0 === e3 || e3.destroy(), this.player = void 0, this.__slideState.mediaState)
36762
- r2 = this.__slideState.mediaState[n3], this.__slideState.mediaState[n3] = uT(uT({}, r2), { frozenTime: this.timestamp() });
37004
+ r2 = this.__slideState.mediaState[n3], this.__slideState.mediaState[n3] = cT(cT({}, r2), { frozenTime: this.timestamp() });
36763
37005
  s2.label = 2;
36764
37006
  case 2:
36765
37007
  return t3 && t3(), [2];
@@ -36773,14 +37015,14 @@ void main(void){
36773
37015
  });
36774
37016
  }, e2.prototype._doRelease = function(t3) {
36775
37017
  var e3, i3;
36776
- return dT(this, void 0, void 0, function() {
37018
+ return pT(this, void 0, void 0, function() {
36777
37019
  var n3, r2, o2, s2;
36778
- return pT(this, function(a2) {
37020
+ return fT(this, function(a2) {
36779
37021
  switch (a2.label) {
36780
37022
  case 0:
36781
37023
  if (this.logger.info("do release slide", this.taskId), this.tracker({ name: "releaseSlide", reason: "", result: "", payload: { taskId: this.taskId } }), this.player)
36782
37024
  return [2];
36783
- for (r2 in this.player = this.initPlayer(this.config), (null === (e3 = this.config) || void 0 === e3 ? void 0 : e3.controller) && this.createController(), this.player.view && (this.canvasContainer.appendChild(this.player.view), this.player.view.style.visibility = "hidden"), n3 = this.__slideState, this.__slideState = ex()(_T), n3.mediaState)
37025
+ for (r2 in this.player = this.initPlayer(this.config), (null === (e3 = this.config) || void 0 === e3 ? void 0 : e3.controller) && this.createController(), this.player.view && (this.canvasContainer.appendChild(this.player.view), this.player.view.style.visibility = "hidden"), n3 = this.__slideState, this.__slideState = ex()(yT), n3.mediaState)
36784
37026
  "play" === (o2 = n3.mediaState[r2]).type && (s2 = Math.max(null !== (i3 = o2.frozenTime) && void 0 !== i3 ? i3 : 0, o2.time), o2.time = this.timestamp() - (s2 - o2.time), o2.frozenTime = void 0);
36785
37027
  return [4, this.setSlideState(n3)];
36786
37028
  case 1:
@@ -36820,14 +37062,14 @@ void main(void){
36820
37062
  }
36821
37063
  e2.volumeAdjuster.off("update", this._updateVolumeByStaticAdjuster);
36822
37064
  }, e2.prototype.waitLoadEnd = function() {
36823
- return dT(this, void 0, void 0, function() {
37065
+ return pT(this, void 0, void 0, function() {
36824
37066
  var t3;
36825
- return pT(this, function(e3) {
37067
+ return fT(this, function(e3) {
36826
37068
  switch (e3.label) {
36827
37069
  case 0:
36828
37070
  t3 = 0, e3.label = 1;
36829
37071
  case 1:
36830
- return this.isLoading && t3 < 10 ? [4, mT(100)] : [3, 3];
37072
+ return this.isLoading && t3 < 10 ? [4, gT(100)] : [3, 3];
36831
37073
  case 2:
36832
37074
  return e3.sent(), t3 += 1, [3, 1];
36833
37075
  case 3:
@@ -36858,14 +37100,14 @@ void main(void){
36858
37100
  var t3 = 1 === this.player.currentIndex, e3 = 0 === this.mainSeqLength || 0 === this.mainSeqStep, i3 = "idle" === this.mainSeqState || null === this.mainSeqState;
36859
37101
  return !(t3 && e3 && i3);
36860
37102
  }, e2.prototype.snapshot = function() {
36861
- return dT(this, void 0, void 0, function() {
36862
- return pT(this, function(t3) {
37103
+ return pT(this, void 0, void 0, function() {
37104
+ return fT(this, function(t3) {
36863
37105
  return this.player ? [2, this.player.getSnapshot()] : [2, null];
36864
37106
  });
36865
37107
  });
36866
37108
  }, e2.prototype.snapshotWithTimingEnd = function(t3) {
36867
- return dT(this, void 0, void 0, function() {
36868
- return pT(this, function(e3) {
37109
+ return pT(this, void 0, void 0, function() {
37110
+ return fT(this, function(e3) {
36869
37111
  return this.player ? [2, this.player.snapshotWithTimingEnd(t3)] : [2, null];
36870
37112
  });
36871
37113
  });
@@ -36876,7 +37118,7 @@ void main(void){
36876
37118
  }, e2.clearLocalCache = function() {
36877
37119
  Yy.clearLocalCache();
36878
37120
  }, e2.disposeLocalCache = function() {
36879
- }, i2 = e2, e2.preloadResource = lT, e2.instances = [], e2._tempFrozenIds = [], e2._tempLog = "", e2._tempLogIndex = 1, e2.remoteLogAddress = null, e2.usePlugin = function(t3) {
37121
+ }, i2 = e2, e2.preloadResource = hT, e2.instances = [], e2._tempFrozenIds = [], e2._tempLog = "", e2._tempLogIndex = 1, e2.remoteLogAddress = null, e2.usePlugin = function(t3) {
36880
37122
  t3.context({ logger: { info: function(t4) {
36881
37123
  e2.appendLogString("INFO - " + new Date().toISOString() + " - " + t4 + "\n");
36882
37124
  }, warn: function(t4) {
@@ -36887,7 +37129,7 @@ void main(void){
36887
37129
  var e3 = qy.get(t4.hookPoint) || [];
36888
37130
  e3.push(t4), qy.set(t4.hookPoint, e3);
36889
37131
  }(t3);
36890
- }, e2.volumeAdjuster = new zy(), e2.__stageCountLimit = -1, e2.trackLogger = new oT(), e2.handleFrozenAllSlide = function() {
37132
+ }, e2.volumeAdjuster = new zy(), e2.__stageCountLimit = -1, e2.trackLogger = new sT(), e2.handleFrozenAllSlide = function() {
36891
37133
  e2.instances.forEach(function(t3) {
36892
37134
  t3.player && (e2._tempFrozenIds.push(t3.randomId), t3.frozen());
36893
37135
  });
@@ -36899,18 +37141,18 @@ void main(void){
36899
37141
  i3 && i3.release();
36900
37142
  }), e2._tempFrozenIds = [];
36901
37143
  }, e2.handleLogReport = function(t3) {
36902
- return dT(void 0, void 0, void 0, function() {
37144
+ return pT(void 0, void 0, void 0, function() {
36903
37145
  var n3, r2, o2, s2, a2, l2;
36904
- return pT(i2, function(i3) {
37146
+ return fT(i2, function(i3) {
36905
37147
  switch (i3.label) {
36906
37148
  case 0:
36907
37149
  return [4, e2.flushLog(true)];
36908
37150
  case 1:
36909
- if (i3.sent(), !xT)
37151
+ if (i3.sent(), !bT)
36910
37152
  return [3, 12];
36911
37153
  n3 = [], i3.label = 2;
36912
37154
  case 2:
36913
- return i3.trys.push([2, 4, , 5]), [4, xT.keys()];
37155
+ return i3.trys.push([2, 4, , 5]), [4, bT.keys()];
36914
37156
  case 3:
36915
37157
  return n3 = (i3.sent() || []).sort(function(t4, e3) {
36916
37158
  return parseInt(t4.replace("run_time_log_", "")) - parseInt(e3.replace("run_time_log_", ""));
@@ -36926,7 +37168,7 @@ void main(void){
36926
37168
  return [3, 12];
36927
37169
  s2 = o2[r2], a2 = s2.replace("run_time_log_", ""), l2 = "", i3.label = 7;
36928
37170
  case 7:
36929
- return i3.trys.push([7, 9, , 10]), [4, xT.getItem(s2)];
37171
+ return i3.trys.push([7, 9, , 10]), [4, bT.getItem(s2)];
36930
37172
  case 8:
36931
37173
  return l2 = i3.sent() || "", [3, 10];
36932
37174
  case 9:
@@ -36941,20 +37183,20 @@ void main(void){
36941
37183
  });
36942
37184
  });
36943
37185
  }, e2.handleLogDownload = function() {
36944
- return dT(void 0, void 0, void 0, function() {
37186
+ return pT(void 0, void 0, void 0, function() {
36945
37187
  var t3, n3, r2, o2, s2, a2, l2;
36946
- return pT(i2, function(i3) {
37188
+ return fT(i2, function(i3) {
36947
37189
  switch (i3.label) {
36948
37190
  case 0:
36949
37191
  return i3.trys.push([0, 7, , 8]), [4, e2.flushLog(true)];
36950
37192
  case 1:
36951
- return i3.sent(), t3 = "", xT ? [4, xT.keys()] : [3, 6];
37193
+ return i3.sent(), t3 = "", bT ? [4, bT.keys()] : [3, 6];
36952
37194
  case 2:
36953
37195
  n3 = (i3.sent() || []).sort(function(t4, e3) {
36954
37196
  return parseInt(t4.replace("run_time_log_", "")) - parseInt(e3.replace("run_time_log_", ""));
36955
37197
  }), r2 = 0, o2 = n3, i3.label = 3;
36956
37198
  case 3:
36957
- return r2 < o2.length ? (s2 = o2[r2], a2 = t3, [4, xT.getItem(s2)]) : [3, 6];
37199
+ return r2 < o2.length ? (s2 = o2[r2], a2 = t3, [4, bT.getItem(s2)]) : [3, 6];
36958
37200
  case 4:
36959
37201
  t3 = a2 + (i3.sent() || ""), i3.label = 5;
36960
37202
  case 5:
@@ -36968,7 +37210,7 @@ void main(void){
36968
37210
  }
36969
37211
  });
36970
37212
  });
36971
- }, cT([(n2 = "Slide.initConfig", function(t3, e3, i3) {
37213
+ }, dT([(n2 = "Slide.initConfig", function(t3, e3, i3) {
36972
37214
  var r2 = i3.value;
36973
37215
  i3.value = function() {
36974
37216
  for (var t4 = [], e4 = 0; e4 < arguments.length; e4++)
@@ -36995,35 +37237,35 @@ void main(void){
36995
37237
  };
36996
37238
  })], e2.prototype, "initSlideConfig", null), e2;
36997
37239
  }(Za.a);
36998
- null == xT || xT.clear().catch(function() {
36999
- }), window.addEventListener("__slide_log__", bT.handleLogDownload), window.addEventListener("message", function(t2) {
37240
+ null == bT || bT.clear().catch(function() {
37241
+ }), window.addEventListener("__slide_log__", TT.handleLogDownload), window.addEventListener("message", function(t2) {
37000
37242
  var e2;
37001
37243
  if ("@slide/_request_log_" === t2.data.type)
37002
- bT.handleLogReport(t2.data.sessionId).catch(function() {
37244
+ TT.handleLogReport(t2.data.sessionId).catch(function() {
37003
37245
  });
37004
37246
  else if ("@slide/_request_frozen_" === t2.data.type)
37005
- bT.handleFrozenAllSlide();
37247
+ TT.handleFrozenAllSlide();
37006
37248
  else if ("@slide/_request_release_" === t2.data.type)
37007
- bT.handleReleaseAllSlide();
37249
+ TT.handleReleaseAllSlide();
37008
37250
  else if ("@slide/_update_volume_" === t2.data.type) {
37009
37251
  var i2 = 0.5;
37010
37252
  try {
37011
37253
  i2 = parseFloat(t2.data.volume.toString());
37012
37254
  } catch (t3) {
37013
37255
  }
37014
- bT.volumeAdjuster.volume = i2;
37256
+ TT.volumeAdjuster.volume = i2;
37015
37257
  } else if ("@slide/_get_volume_" === t2.data.type)
37016
- window.postMessage({ type: "@slide/_report_volume_", volume: bT.volumeAdjuster.volume, customMessage: "@slide/_report_volume_" }, "*");
37258
+ window.postMessage({ type: "@slide/_report_volume_", volume: TT.volumeAdjuster.volume, customMessage: "@slide/_report_volume_" }, "*");
37017
37259
  else if ("@slide/_preload_slide_" === t2.data.type) {
37018
37260
  var n2 = null !== (e2 = t2.data.sessionId) && void 0 !== e2 ? e2 : Math.random().toString(32).substr(2);
37019
- bT.preloadResource(t2.data.taskId, t2.data.prefix, t2.data.maxResolutionLevel, function(e3) {
37261
+ TT.preloadResource(t2.data.taskId, t2.data.prefix, t2.data.maxResolutionLevel, function(e3) {
37020
37262
  window.postMessage({ type: "@slide/_preload_slide_progress_", sessionId: n2, taskId: t2.data.taskId, progress: e3 }, "*");
37021
37263
  }, t2.data.pages).catch(function(e3) {
37022
37264
  window.postMessage({ type: "@slide/_preload_slide_error_", sessionId: n2, taskId: t2.data.taskId, error: e3 }, "*");
37023
37265
  });
37024
37266
  }
37025
37267
  }), window.setInterval(function() {
37026
- bT.flushLog().catch(function() {
37268
+ TT.flushLog().catch(function() {
37027
37269
  });
37028
37270
  }, 2e3);
37029
37271
  }]);
@@ -39542,7 +39784,7 @@ class SlidePreviewer {
39542
39784
  }
39543
39785
  }
39544
39786
  const usePlugin = /* @__PURE__ */ Slide.Slide.usePlugin.bind(Slide.Slide);
39545
- const version = "0.2.80";
39787
+ const version = "0.2.81";
39546
39788
  const SlideApp = {
39547
39789
  kind: "Slide",
39548
39790
  setup(context) {