@naersen/tts-rich-text 0.3.0 → 0.4.0

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/index.js CHANGED
@@ -15,7 +15,7 @@ var lo = { exports: {} };
15
15
  (function(t, i) {
16
16
  e.exports = i();
17
17
  })(io, function() {
18
- var t = 1e3, i = 6e4, o = 36e5, l = "millisecond", s = "second", r = "minute", h = "hour", u = "day", g = "week", a = "month", c = "quarter", d = "year", f = "date", p = "Invalid Date", y = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, z = /\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, C = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(q) {
18
+ var t = 1e3, i = 6e4, o = 36e5, l = "millisecond", s = "second", r = "minute", h = "hour", u = "day", g = "week", a = "month", c = "quarter", d = "year", f = "date", m = "Invalid Date", y = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, z = /\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, C = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(q) {
19
19
  var I = ["th", "st", "nd", "rd"], b = q % 100;
20
20
  return "[" + q + (I[(b - 20) % 10] || I[b] || I[0]) + "]";
21
21
  } }, S = function(q, I, b) {
@@ -55,8 +55,8 @@ var lo = { exports: {} };
55
55
  if (H(q)) return q.clone();
56
56
  var b = typeof I == "object" ? I : {};
57
57
  return b.date = q, b.args = arguments, new Z(b);
58
- }, m = W;
59
- m.l = F, m.i = H, m.w = function(q, I) {
58
+ }, p = W;
59
+ p.l = F, p.i = H, p.w = function(q, I) {
60
60
  return v(q, { locale: I.$L, utc: I.$u, x: I.$x, $offset: I.$offset });
61
61
  };
62
62
  var Z = function() {
@@ -68,7 +68,7 @@ var lo = { exports: {} };
68
68
  this.$d = function(w) {
69
69
  var x = w.date, G = w.utc;
70
70
  if (x === null) return /* @__PURE__ */ new Date(NaN);
71
- if (m.u(x)) return /* @__PURE__ */ new Date();
71
+ if (p.u(x)) return /* @__PURE__ */ new Date();
72
72
  if (x instanceof Date) return new Date(x);
73
73
  if (typeof x == "string" && !/Z$/i.test(x)) {
74
74
  var R = x.match(y);
@@ -83,9 +83,9 @@ var lo = { exports: {} };
83
83
  var b = this.$d;
84
84
  this.$y = b.getFullYear(), this.$M = b.getMonth(), this.$D = b.getDate(), this.$W = b.getDay(), this.$H = b.getHours(), this.$m = b.getMinutes(), this.$s = b.getSeconds(), this.$ms = b.getMilliseconds();
85
85
  }, I.$utils = function() {
86
- return m;
86
+ return p;
87
87
  }, I.isValid = function() {
88
- return this.$d.toString() !== p;
88
+ return this.$d.toString() !== m;
89
89
  }, I.isSame = function(b, w) {
90
90
  var x = v(b);
91
91
  return this.startOf(w) <= x && x <= this.endOf(w);
@@ -94,17 +94,17 @@ var lo = { exports: {} };
94
94
  }, I.isBefore = function(b, w) {
95
95
  return this.endOf(w) < v(b);
96
96
  }, I.$g = function(b, w, x) {
97
- return m.u(b) ? this[w] : this.set(x, b);
97
+ return p.u(b) ? this[w] : this.set(x, b);
98
98
  }, I.unix = function() {
99
99
  return Math.floor(this.valueOf() / 1e3);
100
100
  }, I.valueOf = function() {
101
101
  return this.$d.getTime();
102
102
  }, I.startOf = function(b, w) {
103
- var x = this, G = !!m.u(w) || w, R = m.p(b), Q = function(Qn, mn) {
104
- var Rn = m.w(x.$u ? Date.UTC(x.$y, mn, Qn) : new Date(x.$y, mn, Qn), x);
103
+ var x = this, G = !!p.u(w) || w, R = p.p(b), Q = function(Qn, mn) {
104
+ var Rn = p.w(x.$u ? Date.UTC(x.$y, mn, Qn) : new Date(x.$y, mn, Qn), x);
105
105
  return G ? Rn : Rn.endOf(u);
106
106
  }, en = function(Qn, mn) {
107
- return m.w(x.toDate()[Qn].apply(x.toDate("s"), (G ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(mn)), x);
107
+ return p.w(x.toDate()[Qn].apply(x.toDate("s"), (G ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(mn)), x);
108
108
  }, rn = this.$W, an = this.$M, zn = this.$D, re = "set" + (this.$u ? "UTC" : "");
109
109
  switch (R) {
110
110
  case d:
@@ -129,7 +129,7 @@ var lo = { exports: {} };
129
129
  }, I.endOf = function(b) {
130
130
  return this.startOf(b, !1);
131
131
  }, I.$set = function(b, w) {
132
- var x, G = m.p(b), R = "set" + (this.$u ? "UTC" : ""), Q = (x = {}, x[u] = R + "Date", x[f] = R + "Date", x[a] = R + "Month", x[d] = R + "FullYear", x[h] = R + "Hours", x[r] = R + "Minutes", x[s] = R + "Seconds", x[l] = R + "Milliseconds", x)[G], en = G === u ? this.$D + (w - this.$W) : w;
132
+ var x, G = p.p(b), R = "set" + (this.$u ? "UTC" : ""), Q = (x = {}, x[u] = R + "Date", x[f] = R + "Date", x[a] = R + "Month", x[d] = R + "FullYear", x[h] = R + "Hours", x[r] = R + "Minutes", x[s] = R + "Seconds", x[l] = R + "Milliseconds", x)[G], en = G === u ? this.$D + (w - this.$W) : w;
133
133
  if (G === a || G === d) {
134
134
  var rn = this.clone().set(f, 1);
135
135
  rn.$d[Q](en), rn.init(), this.$d = rn.set(f, Math.min(this.$D, rn.daysInMonth())).$d;
@@ -138,29 +138,29 @@ var lo = { exports: {} };
138
138
  }, I.set = function(b, w) {
139
139
  return this.clone().$set(b, w);
140
140
  }, I.get = function(b) {
141
- return this[m.p(b)]();
141
+ return this[p.p(b)]();
142
142
  }, I.add = function(b, w) {
143
143
  var x, G = this;
144
144
  b = Number(b);
145
- var R = m.p(w), Q = function(an) {
145
+ var R = p.p(w), Q = function(an) {
146
146
  var zn = v(G);
147
- return m.w(zn.date(zn.date() + Math.round(an * b)), G);
147
+ return p.w(zn.date(zn.date() + Math.round(an * b)), G);
148
148
  };
149
149
  if (R === a) return this.set(a, this.$M + b);
150
150
  if (R === d) return this.set(d, this.$y + b);
151
151
  if (R === u) return Q(1);
152
152
  if (R === g) return Q(7);
153
153
  var en = (x = {}, x[r] = i, x[h] = o, x[s] = t, x)[R] || 1, rn = this.$d.getTime() + b * en;
154
- return m.w(rn, this);
154
+ return p.w(rn, this);
155
155
  }, I.subtract = function(b, w) {
156
156
  return this.add(-1 * b, w);
157
157
  }, I.format = function(b) {
158
158
  var w = this, x = this.$locale();
159
- if (!this.isValid()) return x.invalidDate || p;
160
- var G = b || "YYYY-MM-DDTHH:mm:ssZ", R = m.z(this), Q = this.$H, en = this.$m, rn = this.$M, an = x.weekdays, zn = x.months, re = x.meridiem, Bn = function(mn, Rn, be, Ke) {
159
+ if (!this.isValid()) return x.invalidDate || m;
160
+ var G = b || "YYYY-MM-DDTHH:mm:ssZ", R = p.z(this), Q = this.$H, en = this.$m, rn = this.$M, an = x.weekdays, zn = x.months, re = x.meridiem, Bn = function(mn, Rn, be, Ke) {
161
161
  return mn && (mn[Rn] || mn(w, G)) || be[Rn].slice(0, Ke);
162
162
  }, ze = function(mn) {
163
- return m.s(Q % 12 || 12, mn, "0");
163
+ return p.s(Q % 12 || 12, mn, "0");
164
164
  }, Qn = re || function(mn, Rn, be) {
165
165
  var Ke = mn < 12 ? "AM" : "PM";
166
166
  return be ? Ke.toLowerCase() : Ke;
@@ -171,11 +171,11 @@ var lo = { exports: {} };
171
171
  case "YY":
172
172
  return String(w.$y).slice(-2);
173
173
  case "YYYY":
174
- return m.s(w.$y, 4, "0");
174
+ return p.s(w.$y, 4, "0");
175
175
  case "M":
176
176
  return rn + 1;
177
177
  case "MM":
178
- return m.s(rn + 1, 2, "0");
178
+ return p.s(rn + 1, 2, "0");
179
179
  case "MMM":
180
180
  return Bn(x.monthsShort, rn, zn, 3);
181
181
  case "MMMM":
@@ -183,7 +183,7 @@ var lo = { exports: {} };
183
183
  case "D":
184
184
  return w.$D;
185
185
  case "DD":
186
- return m.s(w.$D, 2, "0");
186
+ return p.s(w.$D, 2, "0");
187
187
  case "d":
188
188
  return String(w.$W);
189
189
  case "dd":
@@ -195,7 +195,7 @@ var lo = { exports: {} };
195
195
  case "H":
196
196
  return String(Q);
197
197
  case "HH":
198
- return m.s(Q, 2, "0");
198
+ return p.s(Q, 2, "0");
199
199
  case "h":
200
200
  return ze(1);
201
201
  case "hh":
@@ -207,13 +207,13 @@ var lo = { exports: {} };
207
207
  case "m":
208
208
  return String(en);
209
209
  case "mm":
210
- return m.s(en, 2, "0");
210
+ return p.s(en, 2, "0");
211
211
  case "s":
212
212
  return String(w.$s);
213
213
  case "ss":
214
- return m.s(w.$s, 2, "0");
214
+ return p.s(w.$s, 2, "0");
215
215
  case "SSS":
216
- return m.s(w.$ms, 3, "0");
216
+ return p.s(w.$ms, 3, "0");
217
217
  case "Z":
218
218
  return R;
219
219
  }
@@ -223,8 +223,8 @@ var lo = { exports: {} };
223
223
  }, I.utcOffset = function() {
224
224
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
225
225
  }, I.diff = function(b, w, x) {
226
- var G, R = this, Q = m.p(w), en = v(b), rn = (en.utcOffset() - this.utcOffset()) * i, an = this - en, zn = function() {
227
- return m.m(R, en);
226
+ var G, R = this, Q = p.p(w), en = v(b), rn = (en.utcOffset() - this.utcOffset()) * i, an = this - en, zn = function() {
227
+ return p.m(R, en);
228
228
  };
229
229
  switch (Q) {
230
230
  case d:
@@ -254,7 +254,7 @@ var lo = { exports: {} };
254
254
  default:
255
255
  G = an;
256
256
  }
257
- return x ? G : m.a(G);
257
+ return x ? G : p.a(G);
258
258
  }, I.daysInMonth = function() {
259
259
  return this.endOf(a).$D;
260
260
  }, I.$locale = function() {
@@ -264,7 +264,7 @@ var lo = { exports: {} };
264
264
  var x = this.clone(), G = F(b, w, !0);
265
265
  return G && (x.$L = G), x;
266
266
  }, I.clone = function() {
267
- return m.w(this.$d, this);
267
+ return p.w(this.$d, this);
268
268
  }, I.toDate = function() {
269
269
  return new Date(this.valueOf());
270
270
  }, I.toJSON = function() {
@@ -296,38 +296,38 @@ var ro = { exports: {} };
296
296
  var t = "minute", i = /[+-]\d\d(?::?\d\d)?/g, o = /([+-]|\d\d)/g;
297
297
  return function(l, s, r) {
298
298
  var h = s.prototype;
299
- r.utc = function(p) {
300
- var y = { date: p, utc: !0, args: arguments };
299
+ r.utc = function(m) {
300
+ var y = { date: m, utc: !0, args: arguments };
301
301
  return new s(y);
302
- }, h.utc = function(p) {
302
+ }, h.utc = function(m) {
303
303
  var y = r(this.toDate(), { locale: this.$L, utc: !0 });
304
- return p ? y.add(this.utcOffset(), t) : y;
304
+ return m ? y.add(this.utcOffset(), t) : y;
305
305
  }, h.local = function() {
306
306
  return r(this.toDate(), { locale: this.$L, utc: !1 });
307
307
  };
308
308
  var u = h.parse;
309
- h.parse = function(p) {
310
- p.utc && (this.$u = !0), this.$utils().u(p.$offset) || (this.$offset = p.$offset), u.call(this, p);
309
+ h.parse = function(m) {
310
+ m.utc && (this.$u = !0), this.$utils().u(m.$offset) || (this.$offset = m.$offset), u.call(this, m);
311
311
  };
312
312
  var g = h.init;
313
313
  h.init = function() {
314
314
  if (this.$u) {
315
- var p = this.$d;
316
- this.$y = p.getUTCFullYear(), this.$M = p.getUTCMonth(), this.$D = p.getUTCDate(), this.$W = p.getUTCDay(), this.$H = p.getUTCHours(), this.$m = p.getUTCMinutes(), this.$s = p.getUTCSeconds(), this.$ms = p.getUTCMilliseconds();
315
+ var m = this.$d;
316
+ this.$y = m.getUTCFullYear(), this.$M = m.getUTCMonth(), this.$D = m.getUTCDate(), this.$W = m.getUTCDay(), this.$H = m.getUTCHours(), this.$m = m.getUTCMinutes(), this.$s = m.getUTCSeconds(), this.$ms = m.getUTCMilliseconds();
317
317
  } else g.call(this);
318
318
  };
319
319
  var a = h.utcOffset;
320
- h.utcOffset = function(p, y) {
320
+ h.utcOffset = function(m, y) {
321
321
  var z = this.$utils().u;
322
- if (z(p)) return this.$u ? 0 : z(this.$offset) ? a.call(this) : this.$offset;
323
- if (typeof p == "string" && (p = function(X) {
322
+ if (z(m)) return this.$u ? 0 : z(this.$offset) ? a.call(this) : this.$offset;
323
+ if (typeof m == "string" && (m = function(X) {
324
324
  X === void 0 && (X = "");
325
325
  var K = X.match(i);
326
326
  if (!K) return null;
327
327
  var V = ("" + K[0]).match(o) || ["-", 0, 0], H = V[0], F = 60 * +V[1] + +V[2];
328
328
  return F === 0 ? 0 : H === "+" ? F : -F;
329
- }(p), p === null)) return this;
330
- var C = Math.abs(p) <= 16 ? 60 * p : p;
329
+ }(m), m === null)) return this;
330
+ var C = Math.abs(m) <= 16 ? 60 * m : m;
331
331
  if (C === 0) return this.utc(y);
332
332
  var S = this.clone();
333
333
  if (y) return S.$offset = C, S.$u = !1, S;
@@ -335,12 +335,12 @@ var ro = { exports: {} };
335
335
  return (S = this.local().add(C + W, t)).$offset = C, S.$x.$localOffset = W, S;
336
336
  };
337
337
  var c = h.format;
338
- h.format = function(p) {
339
- var y = p || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
338
+ h.format = function(m) {
339
+ var y = m || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
340
340
  return c.call(this, y);
341
341
  }, h.valueOf = function() {
342
- var p = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset());
343
- return this.$d.valueOf() - 6e4 * p;
342
+ var m = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset());
343
+ return this.$d.valueOf() - 6e4 * m;
344
344
  }, h.isUTC = function() {
345
345
  return !!this.$u;
346
346
  }, h.toISOString = function() {
@@ -349,13 +349,13 @@ var ro = { exports: {} };
349
349
  return this.toDate().toUTCString();
350
350
  };
351
351
  var d = h.toDate;
352
- h.toDate = function(p) {
353
- return p === "s" && this.$offset ? r(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : d.call(this);
352
+ h.toDate = function(m) {
353
+ return m === "s" && this.$offset ? r(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : d.call(this);
354
354
  };
355
355
  var f = h.diff;
356
- h.diff = function(p, y, z) {
357
- if (p && this.$u === p.$u) return f.call(this, p, y, z);
358
- var C = this.local(), S = r(p).local();
356
+ h.diff = function(m, y, z) {
357
+ if (m && this.$u === m.$u) return f.call(this, m, y, z);
358
+ var C = this.local(), S = r(m).local();
359
359
  return f.call(C, S, y, z);
360
360
  };
361
361
  };
@@ -595,8 +595,8 @@ const Ln = (e) => {
595
595
  "../../assets/icons-editor/editor-upload.svg": sr
596
596
  })).reduce(
597
597
  (a, [c, d]) => {
598
- var p;
599
- const f = (p = c.split("/").pop()) == null ? void 0 : p.replace(/\.svg$/, "");
598
+ var m;
599
+ const f = (m = c.split("/").pop()) == null ? void 0 : m.replace(/\.svg$/, "");
600
600
  return f && (a[f] = d), a;
601
601
  },
602
602
  {}
@@ -887,9 +887,9 @@ function Wr(e = {}) {
887
887
  }
888
888
  u.value && t && U(["copy", "cut"], d);
889
889
  async function f(C = nn(i)) {
890
- u.value && C != null && (s.value && z(h.value) ? await n.clipboard.writeText(C) : p(C), g.value = C, a.value = !0, c.start());
890
+ u.value && C != null && (s.value && z(h.value) ? await n.clipboard.writeText(C) : m(C), g.value = C, a.value = !0, c.start());
891
891
  }
892
- function p(C) {
892
+ function m(C) {
893
893
  const S = document.createElement("textarea");
894
894
  S.value = C ?? "", S.style.position = "absolute", S.style.opacity = "0", document.body.appendChild(S), S.select(), document.execCommand("copy"), S.remove();
895
895
  }
@@ -912,44 +912,44 @@ function wr(e, n = {}) {
912
912
  const o = k(!1), l = At(null);
913
913
  let s = 0, r = !0;
914
914
  if (ke) {
915
- const h = typeof n == "function" ? { onDrop: n } : n, u = (t = h.multiple) != null ? t : !0, g = (i = h.preventDefaultForUnhandled) != null ? i : !1, a = (p) => {
915
+ const h = typeof n == "function" ? { onDrop: n } : n, u = (t = h.multiple) != null ? t : !0, g = (i = h.preventDefaultForUnhandled) != null ? i : !1, a = (m) => {
916
916
  var y, z;
917
- const C = Array.from((z = (y = p.dataTransfer) == null ? void 0 : y.files) != null ? z : []);
917
+ const C = Array.from((z = (y = m.dataTransfer) == null ? void 0 : y.files) != null ? z : []);
918
918
  return C.length === 0 ? null : u ? C : [C[0]];
919
- }, c = (p) => {
919
+ }, c = (m) => {
920
920
  if (h.dataTypes) {
921
921
  const y = j(h.dataTypes);
922
- return typeof y == "function" ? y(p) : y ? y.some((z) => p.includes(z)) : !0;
922
+ return typeof y == "function" ? y(m) : y ? y.some((z) => m.includes(z)) : !0;
923
923
  }
924
924
  return !0;
925
- }, d = (p) => {
925
+ }, d = (m) => {
926
926
  var y, z;
927
- const C = Array.from((z = (y = p.dataTransfer) == null ? void 0 : y.items) != null ? z : []), S = C.map((K) => K.type), W = c(S), X = u || C.length <= 1;
927
+ const C = Array.from((z = (y = m.dataTransfer) == null ? void 0 : y.items) != null ? z : []), S = C.map((K) => K.type), W = c(S), X = u || C.length <= 1;
928
928
  return W && X;
929
- }, f = (p, y) => {
929
+ }, f = (m, y) => {
930
930
  var z, C, S, W;
931
- if (r = d(p), !r) {
932
- g && p.preventDefault(), p.dataTransfer && (p.dataTransfer.dropEffect = "none");
931
+ if (r = d(m), !r) {
932
+ g && m.preventDefault(), m.dataTransfer && (m.dataTransfer.dropEffect = "none");
933
933
  return;
934
934
  }
935
- p.preventDefault(), p.dataTransfer && (p.dataTransfer.dropEffect = "copy");
936
- const X = a(p);
935
+ m.preventDefault(), m.dataTransfer && (m.dataTransfer.dropEffect = "copy");
936
+ const X = a(m);
937
937
  switch (y) {
938
938
  case "enter":
939
- s += 1, o.value = !0, (z = h.onEnter) == null || z.call(h, null, p);
939
+ s += 1, o.value = !0, (z = h.onEnter) == null || z.call(h, null, m);
940
940
  break;
941
941
  case "over":
942
- (C = h.onOver) == null || C.call(h, null, p);
942
+ (C = h.onOver) == null || C.call(h, null, m);
943
943
  break;
944
944
  case "leave":
945
- s -= 1, s === 0 && (o.value = !1), (S = h.onLeave) == null || S.call(h, null, p);
945
+ s -= 1, s === 0 && (o.value = !1), (S = h.onLeave) == null || S.call(h, null, m);
946
946
  break;
947
947
  case "drop":
948
- s = 0, o.value = !1, r && (l.value = X, (W = h.onDrop) == null || W.call(h, X, p));
948
+ s = 0, o.value = !1, r && (l.value = X, (W = h.onDrop) == null || W.call(h, X, m));
949
949
  break;
950
950
  }
951
951
  };
952
- U(e, "dragenter", (p) => f(p, "enter")), U(e, "dragover", (p) => f(p, "over")), U(e, "dragleave", (p) => f(p, "leave")), U(e, "drop", (p) => f(p, "drop"));
952
+ U(e, "dragenter", (m) => f(m, "enter")), U(e, "dragover", (m) => f(m, "over")), U(e, "dragleave", (m) => f(m, "leave")), U(e, "drop", (m) => f(m, "drop"));
953
953
  }
954
954
  return {
955
955
  files: l,
@@ -998,7 +998,7 @@ function Sr(e, n = { width: 0, height: 0 }, t = {}) {
998
998
  }
999
999
  } else if (c) {
1000
1000
  const d = Array.isArray(c) ? c : [c];
1001
- s.value = d.reduce((f, { inlineSize: p }) => f + p, 0), r.value = d.reduce((f, { blockSize: p }) => f + p, 0);
1001
+ s.value = d.reduce((f, { inlineSize: m }) => f + m, 0), r.value = d.reduce((f, { blockSize: m }) => f + m, 0);
1002
1002
  } else
1003
1003
  s.value = a.contentRect.width, r.value = a.contentRect.height;
1004
1004
  },
@@ -1112,67 +1112,67 @@ function Gr(e, n = {}) {
1112
1112
  };
1113
1113
  const {
1114
1114
  document: t = fo
1115
- } = n, i = k(0), o = k(0), l = k(!1), s = k(1), r = k(!1), h = k(!1), u = k(!1), g = k(1), a = k(!1), c = k([]), d = k([]), f = k(-1), p = k(!1), y = k(!1), z = t && "pictureInPictureEnabled" in t, C = Ee(), S = Ee(), W = (m) => {
1115
+ } = n, i = k(0), o = k(0), l = k(!1), s = k(1), r = k(!1), h = k(!1), u = k(!1), g = k(1), a = k(!1), c = k([]), d = k([]), f = k(-1), m = k(!1), y = k(!1), z = t && "pictureInPictureEnabled" in t, C = Ee(), S = Ee(), W = (p) => {
1116
1116
  at(e, (Z) => {
1117
- if (m) {
1118
- const O = typeof m == "number" ? m : m.id;
1117
+ if (p) {
1118
+ const O = typeof p == "number" ? p : p.id;
1119
1119
  Z.textTracks[O].mode = "disabled";
1120
1120
  } else
1121
1121
  for (let O = 0; O < Z.textTracks.length; ++O)
1122
1122
  Z.textTracks[O].mode = "disabled";
1123
1123
  f.value = -1;
1124
1124
  });
1125
- }, X = (m, Z = !0) => {
1125
+ }, X = (p, Z = !0) => {
1126
1126
  at(e, (O) => {
1127
- const q = typeof m == "number" ? m : m.id;
1127
+ const q = typeof p == "number" ? p : p.id;
1128
1128
  Z && W(), O.textTracks[q].mode = "showing", f.value = q;
1129
1129
  });
1130
- }, K = () => new Promise((m, Z) => {
1130
+ }, K = () => new Promise((p, Z) => {
1131
1131
  at(e, async (O) => {
1132
- z && (p.value ? t.exitPictureInPicture().then(m).catch(Z) : O.requestPictureInPicture().then(m).catch(Z));
1132
+ z && (m.value ? t.exitPictureInPicture().then(p).catch(Z) : O.requestPictureInPicture().then(p).catch(Z));
1133
1133
  });
1134
1134
  });
1135
1135
  oi(() => {
1136
1136
  if (!t)
1137
1137
  return;
1138
- const m = nn(e);
1139
- if (!m)
1138
+ const p = nn(e);
1139
+ if (!p)
1140
1140
  return;
1141
1141
  const Z = nn(n.src);
1142
1142
  let O = [];
1143
- Z && (typeof Z == "string" ? O = [{ src: Z }] : Array.isArray(Z) ? O = Z : mo(Z) && (O = [Z]), m.querySelectorAll("source").forEach((q) => {
1143
+ Z && (typeof Z == "string" ? O = [{ src: Z }] : Array.isArray(Z) ? O = Z : mo(Z) && (O = [Z]), p.querySelectorAll("source").forEach((q) => {
1144
1144
  q.removeEventListener("error", C.trigger), q.remove();
1145
1145
  }), O.forEach(({ src: q, type: I }) => {
1146
1146
  const b = t.createElement("source");
1147
- b.setAttribute("src", q), b.setAttribute("type", I || ""), b.addEventListener("error", C.trigger), m.appendChild(b);
1148
- }), m.load());
1147
+ b.setAttribute("src", q), b.setAttribute("type", I || ""), b.addEventListener("error", C.trigger), p.appendChild(b);
1148
+ }), p.load());
1149
1149
  }), pe(() => {
1150
- const m = nn(e);
1151
- m && m.querySelectorAll("source").forEach((Z) => Z.removeEventListener("error", C.trigger));
1150
+ const p = nn(e);
1151
+ p && p.querySelectorAll("source").forEach((Z) => Z.removeEventListener("error", C.trigger));
1152
1152
  }), cn([e, s], () => {
1153
- const m = nn(e);
1154
- m && (m.volume = s.value);
1153
+ const p = nn(e);
1154
+ p && (p.volume = s.value);
1155
1155
  }), cn([e, y], () => {
1156
- const m = nn(e);
1157
- m && (m.muted = y.value);
1156
+ const p = nn(e);
1157
+ p && (p.muted = y.value);
1158
1158
  }), cn([e, g], () => {
1159
- const m = nn(e);
1160
- m && (m.playbackRate = g.value);
1159
+ const p = nn(e);
1160
+ p && (p.playbackRate = g.value);
1161
1161
  }), oi(() => {
1162
1162
  if (!t)
1163
1163
  return;
1164
- const m = nn(n.tracks), Z = nn(e);
1165
- !m || !m.length || !Z || (Z.querySelectorAll("track").forEach((O) => O.remove()), m.forEach(({ default: O, kind: q, label: I, src: b, srcLang: w }, x) => {
1164
+ const p = nn(n.tracks), Z = nn(e);
1165
+ !p || !p.length || !Z || (Z.querySelectorAll("track").forEach((O) => O.remove()), p.forEach(({ default: O, kind: q, label: I, src: b, srcLang: w }, x) => {
1166
1166
  const G = t.createElement("track");
1167
1167
  G.default = O || !1, G.kind = q, G.label = I, G.src = b, G.srclang = w, G.default && (f.value = x), Z.appendChild(G);
1168
1168
  }));
1169
1169
  });
1170
- const { ignoreUpdates: V } = ui(i, (m) => {
1170
+ const { ignoreUpdates: V } = ui(i, (p) => {
1171
1171
  const Z = nn(e);
1172
- Z && (Z.currentTime = m);
1173
- }), { ignoreUpdates: H } = ui(u, (m) => {
1172
+ Z && (Z.currentTime = p);
1173
+ }), { ignoreUpdates: H } = ui(u, (p) => {
1174
1174
  const Z = nn(e);
1175
- Z && (m ? Z.play().catch((O) => {
1175
+ Z && (p ? Z.play().catch((O) => {
1176
1176
  throw S.trigger(O), O;
1177
1177
  }) : Z.pause());
1178
1178
  });
@@ -1180,15 +1180,15 @@ function Gr(e, n = {}) {
1180
1180
  r.value = !0, H(() => u.value = !1);
1181
1181
  }), U(e, "loadeddata", () => r.value = !1), U(e, "playing", () => {
1182
1182
  r.value = !1, h.value = !1, H(() => u.value = !0);
1183
- }), U(e, "ratechange", () => g.value = nn(e).playbackRate), U(e, "stalled", () => a.value = !0), U(e, "ended", () => h.value = !0), U(e, "pause", () => H(() => u.value = !1)), U(e, "play", () => H(() => u.value = !0)), U(e, "enterpictureinpicture", () => p.value = !0), U(e, "leavepictureinpicture", () => p.value = !1), U(e, "volumechange", () => {
1184
- const m = nn(e);
1185
- m && (s.value = m.volume, y.value = m.muted);
1183
+ }), U(e, "ratechange", () => g.value = nn(e).playbackRate), U(e, "stalled", () => a.value = !0), U(e, "ended", () => h.value = !0), U(e, "pause", () => H(() => u.value = !1)), U(e, "play", () => H(() => u.value = !0)), U(e, "enterpictureinpicture", () => m.value = !0), U(e, "leavepictureinpicture", () => m.value = !1), U(e, "volumechange", () => {
1184
+ const p = nn(e);
1185
+ p && (s.value = p.volume, y.value = p.muted);
1186
1186
  });
1187
1187
  const F = [], v = cn([e], () => {
1188
- const m = nn(e);
1189
- m && (v(), F[0] = U(m.textTracks, "addtrack", () => d.value = gt(m.textTracks)), F[1] = U(m.textTracks, "removetrack", () => d.value = gt(m.textTracks)), F[2] = U(m.textTracks, "change", () => d.value = gt(m.textTracks)));
1188
+ const p = nn(e);
1189
+ p && (v(), F[0] = U(p.textTracks, "addtrack", () => d.value = gt(p.textTracks)), F[1] = U(p.textTracks, "removetrack", () => d.value = gt(p.textTracks)), F[2] = U(p.textTracks, "change", () => d.value = gt(p.textTracks)));
1190
1190
  });
1191
- return pe(() => F.forEach((m) => m())), {
1191
+ return pe(() => F.forEach((p) => p())), {
1192
1192
  currentTime: i,
1193
1193
  duration: o,
1194
1194
  waiting: r,
@@ -1209,7 +1209,7 @@ function Gr(e, n = {}) {
1209
1209
  // Picture in Picture
1210
1210
  supportsPictureInPicture: z,
1211
1211
  togglePictureInPicture: K,
1212
- isPictureInPicture: p,
1212
+ isPictureInPicture: m,
1213
1213
  // Events
1214
1214
  onSourceError: C.on,
1215
1215
  onPlaybackError: S.on
@@ -1235,34 +1235,34 @@ const Xr = { class: "cx-radio-group" }, Jr = ["onClick"], Lr = {
1235
1235
  },
1236
1236
  emits: ["update:modelValue", "change"],
1237
1237
  setup(e, { emit: n }) {
1238
- Bi((p) => ({
1239
- v74036a63: p.background,
1240
- v41a8ae01: p.activeBackgound,
1241
- c15225e4: p.color,
1238
+ Bi((m) => ({
1239
+ v74036a63: m.background,
1240
+ v41a8ae01: m.activeBackgound,
1241
+ c15225e4: m.color,
1242
1242
  v9294f916: j(r),
1243
1243
  v5c0c1e88: j(h),
1244
- v69c0c568: p.activeColor
1244
+ v69c0c568: m.activeColor
1245
1245
  }));
1246
1246
  const t = e, i = n, { modelValue: o, defaultValue: l, options: s, hoverBackground: r, hoverColor: h } = Lt(t), u = co(
1247
1247
  o,
1248
1248
  l.value || s.value[0].value,
1249
- (p) => {
1250
- i("update:modelValue", p), i("change", p);
1249
+ (m) => {
1250
+ i("update:modelValue", m), i("change", m);
1251
1251
  }
1252
- ), g = k([]), a = k(), c = (p = 18) => {
1253
- const y = Ln(p);
1252
+ ), g = k([]), a = k(), c = (m = 18) => {
1253
+ const y = Ln(m);
1254
1254
  return {
1255
1255
  width: y,
1256
1256
  height: y,
1257
1257
  fontSize: y
1258
1258
  };
1259
- }, d = (p) => {
1260
- u.value !== p && (u.value = p);
1259
+ }, d = (m) => {
1260
+ u.value !== m && (u.value = m);
1261
1261
  }, f = async () => {
1262
1262
  await ye();
1263
- const p = s.value.findIndex(
1263
+ const m = s.value.findIndex(
1264
1264
  (C) => C.value === u.value
1265
- ), y = p === -1 ? 0 : p, z = g.value[y];
1265
+ ), y = m === -1 ? 0 : m, z = g.value[y];
1266
1266
  a.value = {
1267
1267
  ...t.sliderStyle || {},
1268
1268
  width: Ln(z == null ? void 0 : z.offsetWidth),
@@ -1273,7 +1273,7 @@ const Xr = { class: "cx-radio-group" }, Jr = ["onClick"], Lr = {
1273
1273
  immediate: !0
1274
1274
  }), Ft(g, f, {
1275
1275
  box: "border-box"
1276
- }), (p, y) => (Y(), L("div", Xr, [
1276
+ }), (m, y) => (Y(), L("div", Xr, [
1277
1277
  A("div", {
1278
1278
  class: "cx-radio-slider",
1279
1279
  style: ae(a.value)
@@ -1371,7 +1371,7 @@ const Xr = { class: "cx-radio-group" }, Jr = ["onClick"], Lr = {
1371
1371
  reset: !0
1372
1372
  });
1373
1373
  c((W) => z(W && [...W]));
1374
- const f = k(), { isOverDropZone: p } = wr(f, {
1374
+ const f = k(), { isOverDropZone: m } = wr(f, {
1375
1375
  preventDefaultForUnhandled: !0,
1376
1376
  onDrop: (W) => z(W)
1377
1377
  }), y = () => {
@@ -1392,7 +1392,7 @@ const Xr = { class: "cx-radio-group" }, Jr = ["onClick"], Lr = {
1392
1392
  class: bn([
1393
1393
  "cx-upload-wrapper",
1394
1394
  {
1395
- "cx-upload-dragging": j(p),
1395
+ "cx-upload-dragging": j(m),
1396
1396
  "cx-upload-has-value": j(g).length > 0,
1397
1397
  "cx-upload-disabled": j(u)
1398
1398
  }
@@ -1647,7 +1647,7 @@ const Xr = { class: "cx-radio-group" }, Jr = ["onClick"], Lr = {
1647
1647
  console.warn("无法获取节点位置");
1648
1648
  return;
1649
1649
  }
1650
- const d = n.node.textContent, f = c, p = c + n.node.nodeSize, y = g.schema.text(d), z = g.tr.replaceWith(f, p, y);
1650
+ const d = n.node.textContent, f = c, m = c + n.node.nodeSize, y = g.schema.text(d), z = g.tr.replaceWith(f, m, y);
1651
1651
  a(z);
1652
1652
  }, s = () => {
1653
1653
  const u = M[o.value];
@@ -2272,8 +2272,8 @@ class pn {
2272
2272
  let c = u ? n == h ? -1 : n == a ? 1 : t : t, d = h + o + (c < 0 ? 0 : g);
2273
2273
  if (i)
2274
2274
  return d;
2275
- let f = n == (t < 0 ? h : a) ? null : ph(r / 3, n - h), p = n == h ? Wo : n == a ? Io : Me;
2276
- return (t < 0 ? n != h : n != a) && (p |= wo), new di(d, p, f);
2275
+ let f = n == (t < 0 ? h : a) ? null : ph(r / 3, n - h), m = n == h ? Wo : n == a ? Io : Me;
2276
+ return (t < 0 ? n != h : n != a) && (m |= wo), new di(d, m, f);
2277
2277
  }
2278
2278
  o += g - u;
2279
2279
  }
@@ -3369,9 +3369,9 @@ function xh(e = {}) {
3369
3369
  editable: l = k(!0),
3370
3370
  services: s = k({}),
3371
3371
  features: r = k({})
3372
- } = e, h = e.getGenerateAudioParams ?? (() => ({})), u = k(ih.TEXT), g = k(""), a = (v, m = "") => {
3372
+ } = e, h = e.getGenerateAudioParams ?? (() => ({})), u = k(ih.TEXT), g = k(""), a = (v, p = "") => {
3373
3373
  const { from: Z, to: O, empty: q } = v.state.selection;
3374
- return q ? "" : v.state.doc.textBetween(Z, O, m);
3374
+ return q ? "" : v.state.doc.textBetween(Z, O, p);
3375
3375
  }, c = (v) => {
3376
3376
  g.value = a(v);
3377
3377
  }, d = $l({
@@ -3406,22 +3406,22 @@ function xh(e = {}) {
3406
3406
  }
3407
3407
  },
3408
3408
  onCreate({ editor: v }) {
3409
- var m;
3410
- c(v), (m = e.onCreate) == null || m.call(e, v);
3409
+ var p;
3410
+ c(v), (p = e.onCreate) == null || p.call(e, v);
3411
3411
  },
3412
3412
  onUpdate({ editor: v }) {
3413
- var m, Z;
3414
- c(v), (m = e.onChange) == null || m.call(e, v), (Z = e.onUpdate) == null || Z.call(e, v.getJSON(), v);
3413
+ var p, Z;
3414
+ c(v), (p = e.onChange) == null || p.call(e, v), (Z = e.onUpdate) == null || Z.call(e, v.getJSON(), v);
3415
3415
  },
3416
3416
  onSelectionUpdate({ editor: v }) {
3417
3417
  c(v);
3418
3418
  }
3419
3419
  });
3420
3420
  cn(l, (v) => {
3421
- var m;
3422
- return (m = d.value) == null ? void 0 : m.setEditable(v);
3421
+ var p;
3422
+ return (p = d.value) == null ? void 0 : p.setEditable(v);
3423
3423
  });
3424
- const f = T(() => g.value.length > 0), p = T(() => /^\d+$/.test(g.value)), y = () => d.value ? a(d.value) : "", z = () => {
3424
+ const f = T(() => g.value.length > 0), m = T(() => /^\d+$/.test(g.value)), y = () => d.value ? a(d.value) : "", z = () => {
3425
3425
  if (!d.value) return null;
3426
3426
  const { empty: v } = d.value.state.selection;
3427
3427
  return v ? null : d.value.state.selection.content().toJSON();
@@ -3429,8 +3429,8 @@ function xh(e = {}) {
3429
3429
  function C(v) {
3430
3430
  var Z;
3431
3431
  if (!d.value) return;
3432
- const { empty: m } = d.value.state.selection;
3433
- m && ((Z = d.value) == null || Z.chain().focus().insertContent({
3432
+ const { empty: p } = d.value.state.selection;
3433
+ p && ((Z = d.value) == null || Z.chain().focus().insertContent({
3434
3434
  type: fe,
3435
3435
  attrs: {
3436
3436
  id: Ot(16),
@@ -3440,9 +3440,9 @@ function xh(e = {}) {
3440
3440
  }
3441
3441
  function S(v) {
3442
3442
  if (!d.value) return;
3443
- const { from: m, to: Z, empty: O } = d.value.state.selection;
3443
+ const { from: p, to: Z, empty: O } = d.value.state.selection;
3444
3444
  if (O) return;
3445
- const q = O ? "" : d.value.state.doc.textBetween(m, Z, ""), I = d.value.chain().focus().deleteRange({ from: m, to: Z }).insertContent({
3445
+ const q = O ? "" : d.value.state.doc.textBetween(p, Z, ""), I = d.value.chain().focus().deleteRange({ from: p, to: Z }).insertContent({
3446
3446
  type: fe,
3447
3447
  attrs: {
3448
3448
  id: Ot(16),
@@ -3450,13 +3450,13 @@ function xh(e = {}) {
3450
3450
  },
3451
3451
  content: q ? [{ type: "text", text: q }] : []
3452
3452
  });
3453
- O && I.setTextSelection(m + 1), I.run();
3453
+ O && I.setTextSelection(p + 1), I.run();
3454
3454
  }
3455
3455
  const W = () => {
3456
3456
  if (!d.value) return null;
3457
- const { empty: v, head: m } = d.value.state.selection;
3457
+ const { empty: v, head: p } = d.value.state.selection;
3458
3458
  if (v) return null;
3459
- const Z = d.value.view.coordsAtPos(m);
3459
+ const Z = d.value.view.coordsAtPos(p);
3460
3460
  return {
3461
3461
  getBoundingClientRect() {
3462
3462
  return {
@@ -3477,18 +3477,18 @@ function xh(e = {}) {
3477
3477
  (v = d.value) == null || v.commands.setContent(ge());
3478
3478
  }
3479
3479
  const K = (v) => {
3480
- var m;
3481
- (m = d.value) == null || m.commands.setContent(v, { emitUpdate: !1 });
3480
+ var p;
3481
+ (p = d.value) == null || p.commands.setContent(v, { emitUpdate: !1 });
3482
3482
  }, V = (v) => {
3483
3483
  var Z, O;
3484
- const m = St(v);
3485
- if (!m) {
3484
+ const p = St(v);
3485
+ if (!p) {
3486
3486
  (Z = d.value) == null || Z.commands.setContent(ge());
3487
3487
  return;
3488
3488
  }
3489
3489
  (O = d.value) == null || O.commands.setContent({
3490
3490
  type: "doc",
3491
- content: m.split(`
3491
+ content: p.split(`
3492
3492
  `).map((q) => ({
3493
3493
  type: "paragraph",
3494
3494
  content: q ? [{ type: "text", text: q }] : []
@@ -3509,17 +3509,17 @@ function xh(e = {}) {
3509
3509
  getSelectedJson: z,
3510
3510
  selectedText: g,
3511
3511
  hasSelectedText: f,
3512
- isSelectedPureNumber: p,
3512
+ isSelectedPureNumber: m,
3513
3513
  textLimitLength: t,
3514
3514
  getGenerateAudioParams: h,
3515
3515
  services: s,
3516
3516
  features: r,
3517
- notify: (v, m) => {
3517
+ notify: (v, p) => {
3518
3518
  if (s.value.notify) {
3519
- s.value.notify(v, m);
3519
+ s.value.notify(v, p);
3520
3520
  return;
3521
3521
  }
3522
- xt({ type: v, message: m });
3522
+ xt({ type: v, message: p });
3523
3523
  },
3524
3524
  getReferencedVirtualElement: W,
3525
3525
  replaceContentWithText: V,
@@ -3901,14 +3901,14 @@ const Uh = [
3901
3901
  hasSelectedText: h,
3902
3902
  isSelectedPureNumber: u
3903
3903
  } = e, { features: g, notify: a, services: c } = e, d = T(() => {
3904
- const m = Dh[t.value] ?? Bh;
3904
+ const p = Dh[t.value] ?? Bh;
3905
3905
  return {
3906
- visibleToolTypes: g.value.tools ?? m.visibleToolTypes,
3907
- languageOptions: g.value.languages ?? m.languageOptions,
3908
- maxPinyinLength: g.value.maxPinyinLength ?? m.maxPinyinLength,
3909
- maxNumberLength: g.value.maxNumberLength ?? m.maxNumberLength
3906
+ visibleToolTypes: g.value.tools ?? p.visibleToolTypes,
3907
+ languageOptions: g.value.languages ?? p.languageOptions,
3908
+ maxPinyinLength: g.value.maxPinyinLength ?? p.maxPinyinLength,
3909
+ maxNumberLength: g.value.maxNumberLength ?? p.maxNumberLength
3910
3910
  };
3911
- }), f = () => !h.value, p = () => {
3911
+ }), f = () => !h.value, m = () => {
3912
3912
  var O;
3913
3913
  const Z = (((O = s()) == null ? void 0 : O.content) || []).some(
3914
3914
  (q) => {
@@ -3917,7 +3917,7 @@ const Uh = [
3917
3917
  }
3918
3918
  );
3919
3919
  return Z && a("info", "请选择纯文本"), Z;
3920
- }, y = (m) => Qh.test(m) ? Array.from(m).length > d.value.maxPinyinLength ? (a(
3920
+ }, y = (p) => Qh.test(p) ? Array.from(p).length > d.value.maxPinyinLength ? (a(
3921
3921
  "info",
3922
3922
  `最多选择${d.value.maxPinyinLength}个中文`
3923
3923
  ), !0) : !1 : (a("info", "请选择中文"), !0), z = [
@@ -3932,23 +3932,23 @@ const Uh = [
3932
3932
  tool: M.continue,
3933
3933
  disabled: f,
3934
3934
  onClick: () => {
3935
- p() || o({ categ: "continue", payload: {} });
3935
+ m() || o({ categ: "continue", payload: {} });
3936
3936
  }
3937
3937
  },
3938
3938
  {
3939
3939
  tool: M.pinyin,
3940
3940
  disabled: f,
3941
3941
  onClick: () => {
3942
- const m = l();
3943
- !m || p() || y(m) || n.pinyin(m);
3942
+ const p = l();
3943
+ !p || m() || y(p) || n.pinyin(p);
3944
3944
  }
3945
3945
  },
3946
3946
  {
3947
3947
  tool: M.replace,
3948
3948
  disabled: f,
3949
3949
  onClick: () => {
3950
- const m = l();
3951
- !m || p() || n.replace(m);
3950
+ const p = l();
3951
+ !p || m() || n.replace(p);
3952
3952
  }
3953
3953
  },
3954
3954
  {
@@ -3963,8 +3963,8 @@ const Uh = [
3963
3963
  tool: M.formula,
3964
3964
  disabled: f,
3965
3965
  onClick: () => {
3966
- const m = l();
3967
- !m || p() || n.formula(m);
3966
+ const p = l();
3967
+ !p || m() || n.formula(p);
3968
3968
  }
3969
3969
  },
3970
3970
  {
@@ -3976,29 +3976,29 @@ const Uh = [
3976
3976
  onClick: n.upload
3977
3977
  }
3978
3978
  ], C = T(() => {
3979
- const m = new Set(d.value.visibleToolTypes);
3980
- return z.filter((Z) => m.has(Z.tool.type));
3981
- }), S = T(() => d.value.languageOptions), W = T(() => u.value ? Uh.map((m) => ({
3982
- label: m.label,
3983
- value: m.func(r.value)
3984
- })) : []), X = (m) => m === M.formula.type ? !c.value.readFormula : m === M.aiRewrite.type ? !c.value.generateDraft : m === M.upload.type ? !c.value.parseDocument : !1;
3979
+ const p = new Set(d.value.visibleToolTypes);
3980
+ return z.filter((Z) => p.has(Z.tool.type));
3981
+ }), S = T(() => d.value.languageOptions), W = T(() => u.value ? Uh.map((p) => ({
3982
+ label: p.label,
3983
+ value: p.func(r.value)
3984
+ })) : []), X = (p) => p === M.formula.type ? !c.value.readFormula : p === M.aiRewrite.type ? !c.value.generateDraft : p === M.upload.type ? !c.value.parseDocument : !1;
3985
3985
  return {
3986
3986
  toolList: C,
3987
3987
  languageOptions: S,
3988
3988
  numberToTextList: W,
3989
- isToolDisabled: (m) => {
3989
+ isToolDisabled: (p) => {
3990
3990
  var Z;
3991
- return (((Z = m.disabled) == null ? void 0 : Z.call(m)) ?? !1) || X(m.tool.type);
3991
+ return (((Z = p.disabled) == null ? void 0 : Z.call(p)) ?? !1) || X(p.tool.type);
3992
3992
  },
3993
- insertCustomStop: (m) => {
3994
- i({ categ: "customStop", payload: { time: m } });
3993
+ insertCustomStop: (p) => {
3994
+ i({ categ: "customStop", payload: { time: p } });
3995
3995
  },
3996
- setLanguage: (m) => p() ? !1 : (o({ categ: "language", payload: { code: m } }), !0),
3997
- replaceText: (m) => {
3998
- o({ categ: "replace", payload: { text: m } });
3996
+ setLanguage: (p) => m() ? !1 : (o({ categ: "language", payload: { code: p } }), !0),
3997
+ replaceText: (p) => {
3998
+ o({ categ: "replace", payload: { text: p } });
3999
3999
  },
4000
- markPinyin: (m) => {
4001
- o({ categ: "pinyin", payload: { text: m } });
4000
+ markPinyin: (p) => {
4001
+ o({ categ: "pinyin", payload: { text: p } });
4002
4002
  }
4003
4003
  };
4004
4004
  }, $h = {
@@ -4012,7 +4012,7 @@ const Uh = [
4012
4012
  var i, o;
4013
4013
  const t = $h[n];
4014
4014
  return t != null && t.size ? e.type === fe && t.has((i = e.attrs) == null ? void 0 : i.categ) ? !0 : ((o = e.content) == null ? void 0 : o.some((l) => Ro(l, n))) ?? !1 : !1;
4015
- }, rd = (e) => {
4015
+ }, nu = (e) => {
4016
4016
  const { richTextEditor: n } = e, t = (r) => `V${r}`, i = (r) => r === 2 ? "#00a2ff" : "#ff9900", o = (r, h) => {
4017
4017
  const u = t(r), g = t(h);
4018
4018
  return `
@@ -4051,7 +4051,7 @@ const Uh = [
4051
4051
  const g = await l(r, h);
4052
4052
  return g && n.clearContent(), g;
4053
4053
  } };
4054
- }, nu = /* @__PURE__ */ $({
4054
+ }, eu = /* @__PURE__ */ $({
4055
4055
  __name: "index",
4056
4056
  setup(e) {
4057
4057
  const { editor: n } = Mn();
@@ -4061,10 +4061,10 @@ const Uh = [
4061
4061
  editor: j(n)
4062
4062
  }, null, 8, ["editor"])) : yn("", !0);
4063
4063
  }
4064
- }), eu = /* @__PURE__ */ sn(nu, [["__scopeId", "data-v-d764ae22"]]), Fo = ["top", "right", "bottom", "left"], bi = ["start", "end"], ji = /* @__PURE__ */ Fo.reduce((e, n) => e.concat(n, n + "-" + bi[0], n + "-" + bi[1]), []), Yn = Math.min, Cn = Math.max, Be = Math.round, Tn = (e) => ({
4064
+ }), tu = /* @__PURE__ */ sn(eu, [["__scopeId", "data-v-d764ae22"]]), Fo = ["top", "right", "bottom", "left"], bi = ["start", "end"], ji = /* @__PURE__ */ Fo.reduce((e, n) => e.concat(n, n + "-" + bi[0], n + "-" + bi[1]), []), Yn = Math.min, Cn = Math.max, Be = Math.round, Tn = (e) => ({
4065
4065
  x: e,
4066
4066
  y: e
4067
- }), tu = {
4067
+ }), iu = {
4068
4068
  left: "right",
4069
4069
  right: "left",
4070
4070
  bottom: "top",
@@ -4101,36 +4101,36 @@ function Uo(e, n, t) {
4101
4101
  let s = o === "x" ? i === (t ? "end" : "start") ? "right" : "left" : i === "start" ? "bottom" : "top";
4102
4102
  return n.reference[l] > n.floating[l] && (s = _e(s)), [s, _e(s)];
4103
4103
  }
4104
- function iu(e) {
4104
+ function ou(e) {
4105
4105
  const n = _e(e);
4106
4106
  return [Qe(e), n, Qe(n)];
4107
4107
  }
4108
4108
  function Qe(e) {
4109
4109
  return e.includes("start") ? e.replace("start", "end") : e.replace("end", "start");
4110
4110
  }
4111
- const vi = ["left", "right"], Ai = ["right", "left"], ou = ["top", "bottom"], lu = ["bottom", "top"];
4112
- function su(e, n, t) {
4111
+ const vi = ["left", "right"], Ai = ["right", "left"], lu = ["top", "bottom"], su = ["bottom", "top"];
4112
+ function ru(e, n, t) {
4113
4113
  switch (e) {
4114
4114
  case "top":
4115
4115
  case "bottom":
4116
4116
  return t ? n ? Ai : vi : n ? vi : Ai;
4117
4117
  case "left":
4118
4118
  case "right":
4119
- return n ? ou : lu;
4119
+ return n ? lu : su;
4120
4120
  default:
4121
4121
  return [];
4122
4122
  }
4123
4123
  }
4124
- function ru(e, n, t, i) {
4124
+ function hu(e, n, t, i) {
4125
4125
  const o = In(e);
4126
- let l = su(Wn(e), t === "start", i);
4126
+ let l = ru(Wn(e), t === "start", i);
4127
4127
  return o && (l = l.map((s) => s + "-" + o), n && (l = l.concat(l.map(Qe)))), l;
4128
4128
  }
4129
4129
  function _e(e) {
4130
4130
  const n = Wn(e);
4131
- return tu[n] + e.slice(n.length);
4131
+ return iu[n] + e.slice(n.length);
4132
4132
  }
4133
- function hu(e) {
4133
+ function uu(e) {
4134
4134
  var n, t, i, o;
4135
4135
  return {
4136
4136
  top: (n = e.top) != null ? n : 0,
@@ -4140,7 +4140,7 @@ function hu(e) {
4140
4140
  };
4141
4141
  }
4142
4142
  function Qt(e) {
4143
- return typeof e != "number" ? hu(e) : {
4143
+ return typeof e != "number" ? uu(e) : {
4144
4144
  top: e,
4145
4145
  right: e,
4146
4146
  bottom: e,
@@ -4206,7 +4206,7 @@ function Zi(e, n, t) {
4206
4206
  const f = In(n);
4207
4207
  return f && (d[s] += c * (f === "end" ? 1 : -1) * (t && u ? -1 : 1)), d;
4208
4208
  }
4209
- async function uu(e, n) {
4209
+ async function au(e, n) {
4210
4210
  var t;
4211
4211
  n === void 0 && (n = {});
4212
4212
  const {
@@ -4248,7 +4248,7 @@ async function uu(e, n) {
4248
4248
  right: (X.right - z.right + f.right) / W.x
4249
4249
  };
4250
4250
  }
4251
- const au = 50, gu = async (e, n, t) => {
4251
+ const gu = 50, cu = async (e, n, t) => {
4252
4252
  const {
4253
4253
  placement: i = "bottom",
4254
4254
  strategy: o = "absolute",
@@ -4256,7 +4256,7 @@ const au = 50, gu = async (e, n, t) => {
4256
4256
  platform: s
4257
4257
  } = t, r = s.detectOverflow ? s : {
4258
4258
  ...s,
4259
- detectOverflow: uu
4259
+ detectOverflow: au
4260
4260
  }, h = await (s.isRTL == null ? void 0 : s.isRTL(n));
4261
4261
  let u = await s.getElementRects({
4262
4262
  reference: e,
@@ -4267,8 +4267,8 @@ const au = 50, gu = async (e, n, t) => {
4267
4267
  y: a
4268
4268
  } = Zi(u, i, h), c = i, d = 0;
4269
4269
  const f = {};
4270
- for (let p = 0; p < l.length; p++) {
4271
- const y = l[p];
4270
+ for (let m = 0; m < l.length; m++) {
4271
+ const y = l[m];
4272
4272
  if (!y)
4273
4273
  continue;
4274
4274
  const {
@@ -4296,14 +4296,14 @@ const au = 50, gu = async (e, n, t) => {
4296
4296
  g = S ?? g, a = W ?? a, f[z] = {
4297
4297
  ...f[z],
4298
4298
  ...X
4299
- }, K && d < au && (d++, typeof K == "object" && (K.placement && (c = K.placement), K.rects && (u = K.rects === !0 ? await s.getElementRects({
4299
+ }, K && d < gu && (d++, typeof K == "object" && (K.placement && (c = K.placement), K.rects && (u = K.rects === !0 ? await s.getElementRects({
4300
4300
  reference: e,
4301
4301
  floating: n,
4302
4302
  strategy: o
4303
4303
  }) : K.rects), {
4304
4304
  x: g,
4305
4305
  y: a
4306
- } = Zi(u, c, h)), p = -1);
4306
+ } = Zi(u, c, h)), m = -1);
4307
4307
  }
4308
4308
  return {
4309
4309
  x: g,
@@ -4312,7 +4312,7 @@ const au = 50, gu = async (e, n, t) => {
4312
4312
  strategy: o,
4313
4313
  middlewareData: f
4314
4314
  };
4315
- }, cu = (e) => ({
4315
+ }, du = (e) => ({
4316
4316
  name: "arrow",
4317
4317
  options: e,
4318
4318
  async fn(n) {
@@ -4333,10 +4333,10 @@ const au = 50, gu = async (e, n, t) => {
4333
4333
  const a = Qt(g), c = {
4334
4334
  x: t,
4335
4335
  y: i
4336
- }, d = Bt(o), f = Dt(d), p = await s.getDimensions(u), y = d === "y", z = y ? "top" : "left", C = y ? "bottom" : "right", S = y ? "clientHeight" : "clientWidth", W = l.reference[f] + l.reference[d] - c[d] - l.floating[f], X = c[d] - l.reference[d], K = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(u));
4336
+ }, d = Bt(o), f = Dt(d), m = await s.getDimensions(u), y = d === "y", z = y ? "top" : "left", C = y ? "bottom" : "right", S = y ? "clientHeight" : "clientWidth", W = l.reference[f] + l.reference[d] - c[d] - l.floating[f], X = c[d] - l.reference[d], K = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(u));
4337
4337
  let V = K ? K[S] : 0;
4338
4338
  (!V || !await (s.isElement == null ? void 0 : s.isElement(K))) && (V = r.floating[S] || l.floating[f]);
4339
- const H = W / 2 - X / 2, F = V / 2 - p[f] / 2 - 1, v = Yn(a[z], F), m = Yn(a[C], F), Z = V - p[f] - m, O = V / 2 - p[f] / 2 + H, q = Po(v, O, Z), I = !h.arrow && In(o) != null && O !== q && l.reference[f] / 2 - (O < v ? v : m) - p[f] / 2 < 0, b = I ? O < v ? O - v : O - Z : 0;
4339
+ const H = W / 2 - X / 2, F = V / 2 - m[f] / 2 - 1, v = Yn(a[z], F), p = Yn(a[C], F), Z = V - m[f] - p, O = V / 2 - m[f] / 2 + H, q = Po(v, O, Z), I = !h.arrow && In(o) != null && O !== q && l.reference[f] / 2 - (O < v ? v : p) - m[f] / 2 < 0, b = I ? O < v ? O - v : O - Z : 0;
4340
4340
  return {
4341
4341
  [d]: c[d] + b,
4342
4342
  data: {
@@ -4350,10 +4350,10 @@ const au = 50, gu = async (e, n, t) => {
4350
4350
  };
4351
4351
  }
4352
4352
  });
4353
- function du(e, n, t) {
4353
+ function mu(e, n, t) {
4354
4354
  return (e ? [...t.filter((o) => In(o) === e), ...t.filter((o) => In(o) !== e)] : t.filter((o) => Wn(o) === o)).filter((o) => e ? In(o) === e || (n ? Qe(o) !== o : !1) : !0);
4355
4355
  }
4356
- const mu = function(e) {
4356
+ const pu = function(e) {
4357
4357
  return e === void 0 && (e = {}), {
4358
4358
  name: "autoPlacement",
4359
4359
  options: e,
@@ -4371,19 +4371,19 @@ const mu = function(e) {
4371
4371
  allowedPlacements: c = ji,
4372
4372
  autoAlignment: d = !0,
4373
4373
  ...f
4374
- } = Nn(e, n), p = a !== void 0 || c === ji ? du(a || null, d, c) : c, y = ((t = s.autoPlacement) == null ? void 0 : t.index) || 0, z = p[y];
4374
+ } = Nn(e, n), m = a !== void 0 || c === ji ? mu(a || null, d, c) : c, y = ((t = s.autoPlacement) == null ? void 0 : t.index) || 0, z = m[y];
4375
4375
  if (z == null)
4376
4376
  return {};
4377
4377
  if (r !== z)
4378
4378
  return {
4379
4379
  reset: {
4380
- placement: p[0]
4380
+ placement: m[0]
4381
4381
  }
4382
4382
  };
4383
4383
  const C = await h.detectOverflow(n, f), S = Uo(z, l, await (h.isRTL == null ? void 0 : h.isRTL(u.floating))), W = [C[Wn(z)], C[S[0]], C[S[1]]], X = [...((i = s.autoPlacement) == null ? void 0 : i.overflows) || [], {
4384
4384
  placement: z,
4385
4385
  overflows: W
4386
- }], K = p[y + 1];
4386
+ }], K = m[y + 1];
4387
4387
  if (K)
4388
4388
  return {
4389
4389
  data: {
@@ -4395,20 +4395,20 @@ const mu = function(e) {
4395
4395
  }
4396
4396
  };
4397
4397
  const V = X.map((v) => {
4398
- const m = In(v.placement);
4399
- return [v.placement, m && g ? (
4398
+ const p = In(v.placement);
4399
+ return [v.placement, p && g ? (
4400
4400
  // Check along the mainAxis and main crossAxis side.
4401
4401
  v.overflows.slice(0, 2).reduce((Z, O) => Z + O, 0)
4402
4402
  ) : (
4403
4403
  // Check only the mainAxis.
4404
4404
  v.overflows[0]
4405
4405
  ), v.overflows];
4406
- }).sort((v, m) => v[1] - m[1]), F = ((o = V.filter((v) => v[2].slice(
4406
+ }).sort((v, p) => v[1] - p[1]), F = ((o = V.filter((v) => v[2].slice(
4407
4407
  0,
4408
4408
  // Aligned placements should not check their opposite crossAxis
4409
4409
  // side.
4410
4410
  In(v[0]) ? 2 : 3
4411
- ).every((m) => m <= 0))[0]) == null ? void 0 : o[0]) || V[0][0];
4411
+ ).every((p) => p <= 0))[0]) == null ? void 0 : o[0]) || V[0][0];
4412
4412
  return F !== r ? {
4413
4413
  data: {
4414
4414
  index: y + 1,
@@ -4420,7 +4420,7 @@ const mu = function(e) {
4420
4420
  } : {};
4421
4421
  }
4422
4422
  };
4423
- }, pu = function(e) {
4423
+ }, fu = function(e) {
4424
4424
  return e === void 0 && (e = {}), {
4425
4425
  name: "flip",
4426
4426
  options: e,
@@ -4439,13 +4439,13 @@ const mu = function(e) {
4439
4439
  fallbackPlacements: c,
4440
4440
  fallbackStrategy: d = "bestFit",
4441
4441
  fallbackAxisSideDirection: f = "none",
4442
- flipAlignment: p = !0,
4442
+ flipAlignment: m = !0,
4443
4443
  ...y
4444
4444
  } = Nn(e, n);
4445
4445
  if ((t = l.arrow) != null && t.alignmentOffset)
4446
4446
  return {};
4447
- const z = Wn(o), C = Sn(r), S = Wn(r) === r, W = await (h.isRTL == null ? void 0 : h.isRTL(u.floating)), X = c || (S || !p ? [_e(r)] : iu(r)), K = f !== "none";
4448
- !c && K && X.push(...ru(r, p, f, W));
4447
+ const z = Wn(o), C = Sn(r), S = Wn(r) === r, W = await (h.isRTL == null ? void 0 : h.isRTL(u.floating)), X = c || (S || !m ? [_e(r)] : ou(r)), K = f !== "none";
4448
+ !c && K && X.push(...hu(r, m, f, W));
4449
4449
  const V = [r, ...X], H = await h.detectOverflow(n, y), F = [];
4450
4450
  let v = ((i = l.flip) == null ? void 0 : i.overflows) || [];
4451
4451
  if (g && F.push(H[z]), a) {
@@ -4456,8 +4456,8 @@ const mu = function(e) {
4456
4456
  placement: o,
4457
4457
  overflows: F
4458
4458
  }], !F.every((q) => q <= 0)) {
4459
- var m, Z;
4460
- const q = (((m = l.flip) == null ? void 0 : m.index) || 0) + 1, I = V[q];
4459
+ var p, Z;
4460
+ const q = (((p = l.flip) == null ? void 0 : p.index) || 0) + 1, I = V[q];
4461
4461
  if (I && (!(a === "alignment" ? C !== Sn(I) : !1) || // We leave the current main axis only if every placement on that axis
4462
4462
  // overflows the main axis.
4463
4463
  v.every((x) => Sn(x.placement) === C ? x.overflows[0] > 0 : !0)))
@@ -4513,7 +4513,7 @@ function xi(e, n) {
4513
4513
  function Ci(e) {
4514
4514
  return Fo.some((n) => e[n] >= 0);
4515
4515
  }
4516
- const fu = function(e) {
4516
+ const yu = function(e) {
4517
4517
  return e === void 0 && (e = {}), {
4518
4518
  name: "hide",
4519
4519
  options: e,
@@ -4565,7 +4565,7 @@ function Do(e) {
4565
4565
  height: o - t
4566
4566
  };
4567
4567
  }
4568
- function yu(e) {
4568
+ function qu(e) {
4569
4569
  const n = e.slice().sort((o, l) => o.y - l.y), t = [];
4570
4570
  let i = null;
4571
4571
  for (let o = 0; o < n.length; o++) {
@@ -4574,7 +4574,7 @@ function yu(e) {
4574
4574
  }
4575
4575
  return t.map((o) => Fn(Do(o)));
4576
4576
  }
4577
- const qu = function(e) {
4577
+ const zu = function(e) {
4578
4578
  return e === void 0 && (e = {}), {
4579
4579
  name: "inline",
4580
4580
  options: e,
@@ -4592,17 +4592,17 @@ const qu = function(e) {
4592
4592
  } = Nn(e, n), g = Array.from(await (l.getClientRects == null ? void 0 : l.getClientRects(i.reference)) || []);
4593
4593
  if (!g.length)
4594
4594
  return {};
4595
- const a = yu(g), c = Fn(Do(g)), d = Qt(r);
4595
+ const a = qu(g), c = Fn(Do(g)), d = Qt(r);
4596
4596
  function f() {
4597
4597
  if (a.length === 2 && (a[0].left > a[1].right || a[1].left > a[0].right) && h != null && u != null)
4598
4598
  return a.find((y) => h > y.left - d.left && h < y.right + d.right && u > y.top - d.top && u < y.bottom + d.bottom) || c;
4599
4599
  if (a.length >= 2) {
4600
4600
  if (Sn(t) === "y") {
4601
- const K = a[0], V = a[a.length - 1], H = Wn(t) === "top", F = K.top, v = V.bottom, m = H ? K.left : V.left, Z = H ? K.right : V.right;
4601
+ const K = a[0], V = a[a.length - 1], H = Wn(t) === "top", F = K.top, v = V.bottom, p = H ? K.left : V.left, Z = H ? K.right : V.right;
4602
4602
  return Fn({
4603
- x: m,
4603
+ x: p,
4604
4604
  y: F,
4605
- width: Z - m,
4605
+ width: Z - p,
4606
4606
  height: v - F
4607
4607
  });
4608
4608
  }
@@ -4616,27 +4616,27 @@ const qu = function(e) {
4616
4616
  }
4617
4617
  return c;
4618
4618
  }
4619
- const p = await l.getElementRects({
4619
+ const m = await l.getElementRects({
4620
4620
  reference: {
4621
4621
  getBoundingClientRect: f
4622
4622
  },
4623
4623
  floating: i.floating,
4624
4624
  strategy: s
4625
4625
  });
4626
- return o.reference.x !== p.reference.x || o.reference.y !== p.reference.y || o.reference.width !== p.reference.width || o.reference.height !== p.reference.height ? {
4626
+ return o.reference.x !== m.reference.x || o.reference.y !== m.reference.y || o.reference.width !== m.reference.width || o.reference.height !== m.reference.height ? {
4627
4627
  reset: {
4628
- rects: p
4628
+ rects: m
4629
4629
  }
4630
4630
  } : {};
4631
4631
  }
4632
4632
  };
4633
- }, zu = /* @__PURE__ */ new Set(["left", "top"]);
4634
- async function bu(e, n) {
4633
+ }, bu = /* @__PURE__ */ new Set(["left", "top"]);
4634
+ async function ju(e, n) {
4635
4635
  const {
4636
4636
  placement: t,
4637
4637
  platform: i,
4638
4638
  elements: o
4639
- } = e, l = await (i.isRTL == null ? void 0 : i.isRTL(o.floating)), s = Wn(t), r = In(t), h = Sn(t) === "y", u = zu.has(s) ? -1 : 1, g = l && h ? -1 : 1, a = Nn(n, e);
4639
+ } = e, l = await (i.isRTL == null ? void 0 : i.isRTL(o.floating)), s = Wn(t), r = In(t), h = Sn(t) === "y", u = bu.has(s) ? -1 : 1, g = l && h ? -1 : 1, a = Nn(n, e);
4640
4640
  let {
4641
4641
  mainAxis: c,
4642
4642
  crossAxis: d,
@@ -4658,7 +4658,7 @@ async function bu(e, n) {
4658
4658
  y: d * g
4659
4659
  };
4660
4660
  }
4661
- const ju = function(e) {
4661
+ const vu = function(e) {
4662
4662
  return e === void 0 && (e = 0), {
4663
4663
  name: "offset",
4664
4664
  options: e,
@@ -4669,7 +4669,7 @@ const ju = function(e) {
4669
4669
  y: l,
4670
4670
  placement: s,
4671
4671
  middlewareData: r
4672
- } = n, h = await bu(n, e);
4672
+ } = n, h = await ju(n, e);
4673
4673
  return s === ((t = r.offset) == null ? void 0 : t.placement) && (i = r.arrow) != null && i.alignmentOffset ? {} : {
4674
4674
  x: o + h.x,
4675
4675
  y: l + h.y,
@@ -4680,7 +4680,7 @@ const ju = function(e) {
4680
4680
  };
4681
4681
  }
4682
4682
  };
4683
- }, vu = function(e) {
4683
+ }, Au = function(e) {
4684
4684
  return e === void 0 && (e = {}), {
4685
4685
  name: "shift",
4686
4686
  options: e,
@@ -4710,13 +4710,13 @@ const ju = function(e) {
4710
4710
  x: t,
4711
4711
  y: i
4712
4712
  }, a = await l.detectOverflow(n, u), c = Sn(o), d = Eo(c);
4713
- let f = g[d], p = g[c];
4713
+ let f = g[d], m = g[c];
4714
4714
  const y = (C, S) => Po(S + a[C === "y" ? "top" : "left"], S, S - a[C === "y" ? "bottom" : "right"]);
4715
- s && (f = y(d, f)), r && (p = y(c, p));
4715
+ s && (f = y(d, f)), r && (m = y(c, m));
4716
4716
  const z = h.fn({
4717
4717
  ...n,
4718
4718
  [d]: f,
4719
- [c]: p
4719
+ [c]: m
4720
4720
  });
4721
4721
  return {
4722
4722
  ...z,
@@ -4731,7 +4731,7 @@ const ju = function(e) {
4731
4731
  };
4732
4732
  }
4733
4733
  };
4734
- }, Au = function(e) {
4734
+ }, Zu = function(e) {
4735
4735
  return e === void 0 && (e = {}), {
4736
4736
  name: "size",
4737
4737
  options: e,
@@ -4749,9 +4749,9 @@ const ju = function(e) {
4749
4749
  width: c,
4750
4750
  height: d
4751
4751
  } = i.floating;
4752
- let f, p;
4753
- u === "top" || u === "bottom" ? (f = u, p = g === (await (o.isRTL == null ? void 0 : o.isRTL(l.floating)) ? "start" : "end") ? "left" : "right") : (p = u, f = g === "end" ? "top" : "bottom");
4754
- const y = d - h.top - h.bottom, z = c - h.left - h.right, C = Yn(d - h[f], y), S = Yn(c - h[p], z), W = n.middlewareData.shift, X = !W;
4752
+ let f, m;
4753
+ u === "top" || u === "bottom" ? (f = u, m = g === (await (o.isRTL == null ? void 0 : o.isRTL(l.floating)) ? "start" : "end") ? "left" : "right") : (m = u, f = g === "end" ? "top" : "bottom");
4754
+ const y = d - h.top - h.bottom, z = c - h.left - h.right, C = Yn(d - h[f], y), S = Yn(c - h[m], z), W = n.middlewareData.shift, X = !W;
4755
4755
  let K = C, V = S;
4756
4756
  W != null && W.enabled.x && (V = z), W != null && W.enabled.y && (K = y), X && !g && (a ? V = c - 2 * Cn(h.left, h.right) : K = d - 2 * Cn(h.top, h.bottom)), await s({
4757
4757
  ...n,
@@ -4802,7 +4802,7 @@ function lt(e) {
4802
4802
  } = Kn(e);
4803
4803
  return /auto|scroll|overlay|hidden|clip/.test(n + i + t) && o !== "inline" && o !== "contents";
4804
4804
  }
4805
- function Zu(e) {
4805
+ function xu(e) {
4806
4806
  return /^(table|td|th)$/.test(qe(e));
4807
4807
  }
4808
4808
  function st(e) {
@@ -4817,13 +4817,13 @@ function st(e) {
4817
4817
  return !1;
4818
4818
  }
4819
4819
  }
4820
- const xu = /transform|translate|scale|rotate|perspective|filter/, Cu = /paint|layout|strict|content/, _n = (e) => !!e && e !== "none";
4820
+ const Cu = /transform|translate|scale|rotate|perspective|filter/, Iu = /paint|layout|strict|content/, _n = (e) => !!e && e !== "none";
4821
4821
  let yt;
4822
4822
  function _t(e) {
4823
4823
  const n = kn(e) ? Kn(e) : e;
4824
- return _n(n.transform) || _n(n.translate) || _n(n.scale) || _n(n.rotate) || _n(n.perspective) || !$t() && (_n(n.backdropFilter) || _n(n.filter)) || xu.test(n.willChange || "") || Cu.test(n.contain || "");
4824
+ return _n(n.transform) || _n(n.translate) || _n(n.scale) || _n(n.rotate) || _n(n.perspective) || !$t() && (_n(n.backdropFilter) || _n(n.filter)) || Cu.test(n.willChange || "") || Iu.test(n.contain || "");
4825
4825
  }
4826
- function Iu(e) {
4826
+ function Wu(e) {
4827
4827
  let n = oe(e);
4828
4828
  for (; Dn(n) && !We(n); ) {
4829
4829
  if (_t(n))
@@ -4905,15 +4905,15 @@ function de(e) {
4905
4905
  y: r
4906
4906
  };
4907
4907
  }
4908
- const Wu = /* @__PURE__ */ Tn(0);
4908
+ const wu = /* @__PURE__ */ Tn(0);
4909
4909
  function el(e) {
4910
4910
  const n = fn(e);
4911
- return !$t() || !n.visualViewport ? Wu : {
4911
+ return !$t() || !n.visualViewport ? wu : {
4912
4912
  x: n.visualViewport.offsetLeft,
4913
4913
  y: n.visualViewport.offsetTop
4914
4914
  };
4915
4915
  }
4916
- function wu(e, n, t) {
4916
+ function Su(e, n, t) {
4917
4917
  return n === void 0 && (n = !1), !!t && n && t === fn(e);
4918
4918
  }
4919
4919
  function we(e, n, t, i) {
@@ -4921,14 +4921,14 @@ function we(e, n, t, i) {
4921
4921
  const o = e.getBoundingClientRect(), l = nl(e);
4922
4922
  let s = Tn(1);
4923
4923
  n && (i ? kn(i) && (s = de(i)) : s = de(e));
4924
- const r = wu(l, t, i) ? el(l) : Tn(0);
4924
+ const r = Su(l, t, i) ? el(l) : Tn(0);
4925
4925
  let h = (o.left + r.x) / s.x, u = (o.top + r.y) / s.y, g = o.width / s.x, a = o.height / s.y;
4926
4926
  if (l && i) {
4927
4927
  const c = fn(l), d = kn(i) ? fn(i) : i;
4928
- let f = c, p = Kt(f);
4929
- for (; p && d !== f; ) {
4930
- const y = de(p), z = p.getBoundingClientRect(), C = Kn(p), S = z.left + (p.clientLeft + parseFloat(C.paddingLeft)) * y.x, W = z.top + (p.clientTop + parseFloat(C.paddingTop)) * y.y;
4931
- h *= y.x, u *= y.y, g *= y.x, a *= y.y, h += S, u += W, f = fn(p), p = Kt(f);
4928
+ let f = c, m = Kt(f);
4929
+ for (; m && d !== f; ) {
4930
+ const y = de(m), z = m.getBoundingClientRect(), C = Kn(m), S = z.left + (m.clientLeft + parseFloat(C.paddingLeft)) * y.x, W = z.top + (m.clientTop + parseFloat(C.paddingTop)) * y.y;
4931
+ h *= y.x, u *= y.y, g *= y.x, a *= y.y, h += S, u += W, f = fn(m), m = Kt(f);
4932
4932
  }
4933
4933
  }
4934
4934
  return Fn({
@@ -4949,7 +4949,7 @@ function tl(e, n) {
4949
4949
  y: o
4950
4950
  };
4951
4951
  }
4952
- function Su(e) {
4952
+ function Ou(e) {
4953
4953
  let {
4954
4954
  elements: n,
4955
4955
  rect: t,
@@ -4976,10 +4976,10 @@ function Su(e) {
4976
4976
  y: t.y * u.y - h.scrollTop * u.y + g.y + c.y
4977
4977
  };
4978
4978
  }
4979
- function Ou(e) {
4979
+ function Yu(e) {
4980
4980
  return e.getClientRects ? Array.from(e.getClientRects()) : [];
4981
4981
  }
4982
- function Yu(e) {
4982
+ function ku(e) {
4983
4983
  const n = rt(e), t = e.ownerDocument.body, i = Cn(e.scrollWidth, e.clientWidth, t.scrollWidth, t.clientWidth), o = Cn(e.scrollHeight, e.clientHeight, t.scrollHeight, t.clientHeight);
4984
4984
  let l = -n.scrollLeft + ht(e);
4985
4985
  const s = -n.scrollTop;
@@ -4990,8 +4990,8 @@ function Yu(e) {
4990
4990
  y: s
4991
4991
  };
4992
4992
  }
4993
- const ku = 25;
4994
- function Ku(e, n, t) {
4993
+ const Ku = 25;
4994
+ function Vu(e, n, t) {
4995
4995
  t === void 0 && (t = "viewport");
4996
4996
  const i = t === "layoutViewport", o = fn(e), l = Un(e), s = o.visualViewport;
4997
4997
  let r = l.clientWidth, h = l.clientHeight, u = 0, g = 0;
@@ -5000,8 +5000,8 @@ function Ku(e, n, t) {
5000
5000
  i ? c || (u = -s.offsetLeft, g = -s.offsetTop) : (r = s.width, h = s.height, c && (u = s.offsetLeft, g = s.offsetTop));
5001
5001
  }
5002
5002
  if (ht(l) <= 0) {
5003
- const c = l.ownerDocument, d = c.body, f = getComputedStyle(d), p = c.compatMode === "CSS1Compat" && parseFloat(f.marginLeft) + parseFloat(f.marginRight) || 0, y = Math.abs(l.clientWidth - d.clientWidth - p), z = getComputedStyle(l).scrollbarGutter === "stable both-edges" ? y / 2 : y;
5004
- z <= ku && (r -= z);
5003
+ const c = l.ownerDocument, d = c.body, f = getComputedStyle(d), m = c.compatMode === "CSS1Compat" && parseFloat(f.marginLeft) + parseFloat(f.marginRight) || 0, y = Math.abs(l.clientWidth - d.clientWidth - m), z = getComputedStyle(l).scrollbarGutter === "stable both-edges" ? y / 2 : y;
5004
+ z <= Ku && (r -= z);
5005
5005
  }
5006
5006
  return {
5007
5007
  width: r,
@@ -5010,7 +5010,7 @@ function Ku(e, n, t) {
5010
5010
  y: g
5011
5011
  };
5012
5012
  }
5013
- function Vu(e, n) {
5013
+ function Gu(e, n) {
5014
5014
  const t = we(e, !0, n === "fixed"), i = t.top + e.clientTop, o = t.left + e.clientLeft, l = de(e), s = e.clientWidth * l.x, r = e.clientHeight * l.y, h = o * l.x, u = i * l.y;
5015
5015
  return {
5016
5016
  width: s,
@@ -5022,11 +5022,11 @@ function Vu(e, n) {
5022
5022
  function Wi(e, n, t) {
5023
5023
  let i;
5024
5024
  if (n === "viewport" || n === "layoutViewport")
5025
- i = Ku(e, t, n);
5025
+ i = Vu(e, t, n);
5026
5026
  else if (n === "document")
5027
- i = Yu(Un(e));
5027
+ i = ku(Un(e));
5028
5028
  else if (kn(n))
5029
- i = Vu(n, t);
5029
+ i = Gu(n, t);
5030
5030
  else {
5031
5031
  const o = el(e);
5032
5032
  i = {
@@ -5038,7 +5038,7 @@ function Wi(e, n, t) {
5038
5038
  }
5039
5039
  return Fn(i);
5040
5040
  }
5041
- function Gu(e, n) {
5041
+ function Xu(e, n) {
5042
5042
  const t = n.get(e);
5043
5043
  if (t)
5044
5044
  return t;
@@ -5051,14 +5051,14 @@ function Gu(e, n) {
5051
5051
  }
5052
5052
  return n.set(e, i), i;
5053
5053
  }
5054
- function Xu(e) {
5054
+ function Ju(e) {
5055
5055
  let {
5056
5056
  element: n,
5057
5057
  boundary: t,
5058
5058
  rootBoundary: i,
5059
5059
  strategy: o
5060
5060
  } = e;
5061
- const s = [...t === "clippingAncestors" ? st(n) ? [] : Gu(n, this._c) : [].concat(t), i], r = Wi(n, s[0], o);
5061
+ const s = [...t === "clippingAncestors" ? st(n) ? [] : Xu(n, this._c) : [].concat(t), i], r = Wi(n, s[0], o);
5062
5062
  let h = r.top, u = r.right, g = r.bottom, a = r.left;
5063
5063
  for (let c = 1; c < s.length; c++) {
5064
5064
  const d = Wi(n, s[c], o);
@@ -5071,7 +5071,7 @@ function Xu(e) {
5071
5071
  y: h
5072
5072
  };
5073
5073
  }
5074
- function Ju(e) {
5074
+ function Lu(e) {
5075
5075
  const {
5076
5076
  width: n,
5077
5077
  height: t
@@ -5081,7 +5081,7 @@ function Ju(e) {
5081
5081
  height: t
5082
5082
  };
5083
5083
  }
5084
- function Lu(e, n, t) {
5084
+ function Hu(e, n, t) {
5085
5085
  const i = Dn(n), o = Un(n), l = t === "fixed", s = we(e, !0, l, n);
5086
5086
  let r = {
5087
5087
  scrollLeft: 0,
@@ -5126,14 +5126,14 @@ function il(e, n) {
5126
5126
  return t;
5127
5127
  }
5128
5128
  let i = wi(e, n);
5129
- for (; i && Zu(i) && qt(i); )
5129
+ for (; i && xu(i) && qt(i); )
5130
5130
  i = wi(i, n);
5131
- return i && We(i) && qt(i) && !_t(i) ? t : i || Iu(e) || t;
5131
+ return i && We(i) && qt(i) && !_t(i) ? t : i || Wu(e) || t;
5132
5132
  }
5133
- const Hu = async function(e) {
5133
+ const Tu = async function(e) {
5134
5134
  const n = this.getOffsetParent || il, t = this.getDimensions, i = await t(e.floating);
5135
5135
  return {
5136
- reference: Lu(e.reference, await n(e.floating), e.strategy),
5136
+ reference: Hu(e.reference, await n(e.floating), e.strategy),
5137
5137
  floating: {
5138
5138
  x: 0,
5139
5139
  y: 0,
@@ -5142,27 +5142,27 @@ const Hu = async function(e) {
5142
5142
  }
5143
5143
  };
5144
5144
  };
5145
- function Tu(e) {
5145
+ function Mu(e) {
5146
5146
  return Kn(e).direction === "rtl";
5147
5147
  }
5148
- const Mu = {
5149
- convertOffsetParentRelativeRectToViewportRelativeRect: Su,
5148
+ const Nu = {
5149
+ convertOffsetParentRelativeRectToViewportRelativeRect: Ou,
5150
5150
  getDocumentElement: Un,
5151
- getClippingRect: Xu,
5151
+ getClippingRect: Ju,
5152
5152
  getOffsetParent: il,
5153
- getElementRects: Hu,
5154
- getClientRects: Ou,
5155
- getDimensions: Ju,
5153
+ getElementRects: Tu,
5154
+ getClientRects: Yu,
5155
+ getDimensions: Lu,
5156
5156
  getScale: de,
5157
5157
  isElement: kn,
5158
- isRTL: Tu
5159
- }, ol = ju, ll = mu, sl = vu, rl = pu, hl = Au, ul = fu, al = cu, gl = qu, cl = (e, n, t) => {
5158
+ isRTL: Mu
5159
+ }, ol = vu, ll = pu, sl = Au, rl = fu, hl = Zu, ul = yu, al = du, gl = zu, cl = (e, n, t) => {
5160
5160
  const i = /* @__PURE__ */ new Map(), o = t ?? {}, l = {
5161
- ...Mu,
5161
+ ...Nu,
5162
5162
  ...o.platform,
5163
5163
  _c: i
5164
5164
  };
5165
- return gu(e, n, {
5165
+ return cu(e, n, {
5166
5166
  ...o,
5167
5167
  platform: l
5168
5168
  });
@@ -5245,18 +5245,18 @@ var Pn = {
5245
5245
  220: "|",
5246
5246
  221: "}",
5247
5247
  222: '"'
5248
- }, Nu = typeof navigator < "u" && /Mac/.test(navigator.platform), Ru = typeof navigator < "u" && /MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);
5248
+ }, Ru = typeof navigator < "u" && /Mac/.test(navigator.platform), Fu = typeof navigator < "u" && /MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);
5249
5249
  for (var un = 0; un < 10; un++) Pn[48 + un] = Pn[96 + un] = String(un);
5250
5250
  for (var un = 1; un <= 24; un++) Pn[un + 111] = "F" + un;
5251
5251
  for (var un = 65; un <= 90; un++)
5252
5252
  Pn[un] = String.fromCharCode(un + 32), $e[un] = String.fromCharCode(un);
5253
5253
  for (var zt in Pn) $e.hasOwnProperty(zt) || ($e[zt] = Pn[zt]);
5254
- function Fu(e) {
5255
- var n = Nu && e.metaKey && e.shiftKey && !e.ctrlKey && !e.altKey || Ru && e.shiftKey && e.key && e.key.length == 1 || e.key == "Unidentified", t = !n && e.key || (e.shiftKey ? $e : Pn)[e.keyCode] || e.key || "Unidentified";
5254
+ function Pu(e) {
5255
+ var n = Ru && e.metaKey && e.shiftKey && !e.ctrlKey && !e.altKey || Fu && e.shiftKey && e.key && e.key.length == 1 || e.key == "Unidentified", t = !n && e.key || (e.shiftKey ? $e : Pn)[e.keyCode] || e.key || "Unidentified";
5256
5256
  return t == "Esc" && (t = "Escape"), t == "Del" && (t = "Delete"), t == "Left" && (t = "ArrowLeft"), t == "Up" && (t = "ArrowUp"), t == "Right" && (t = "ArrowRight"), t == "Down" && (t = "ArrowDown"), t;
5257
5257
  }
5258
- const Pu = typeof navigator < "u" && /Mac|iP(hone|[oa]d)/.test(navigator.platform), Eu = typeof navigator < "u" && /Win/.test(navigator.platform);
5259
- function Uu(e) {
5258
+ const Eu = typeof navigator < "u" && /Mac|iP(hone|[oa]d)/.test(navigator.platform), Uu = typeof navigator < "u" && /Win/.test(navigator.platform);
5259
+ function Du(e) {
5260
5260
  let n = e.split(/-(?!$)/), t = n[n.length - 1];
5261
5261
  t == "Space" && (t = " ");
5262
5262
  let i, o, l, s;
@@ -5271,25 +5271,25 @@ function Uu(e) {
5271
5271
  else if (/^s(hift)?$/i.test(h))
5272
5272
  l = !0;
5273
5273
  else if (/^mod$/i.test(h))
5274
- Pu ? s = !0 : o = !0;
5274
+ Eu ? s = !0 : o = !0;
5275
5275
  else
5276
5276
  throw new Error("Unrecognized modifier name: " + h);
5277
5277
  }
5278
5278
  return i && (t = "Alt-" + t), o && (t = "Ctrl-" + t), s && (t = "Meta-" + t), l && (t = "Shift-" + t), t;
5279
5279
  }
5280
- function Du(e) {
5280
+ function Bu(e) {
5281
5281
  let n = /* @__PURE__ */ Object.create(null);
5282
5282
  for (let t in e)
5283
- n[Uu(t)] = e[t];
5283
+ n[Du(t)] = e[t];
5284
5284
  return n;
5285
5285
  }
5286
5286
  function bt(e, n, t = !0) {
5287
5287
  return n.altKey && (e = "Alt-" + e), n.ctrlKey && (e = "Ctrl-" + e), n.metaKey && (e = "Meta-" + e), t && n.shiftKey && (e = "Shift-" + e), e;
5288
5288
  }
5289
- function Bu(e) {
5290
- let n = Du(e);
5289
+ function Qu(e) {
5290
+ let n = Bu(e);
5291
5291
  return function(t, i) {
5292
- let o = Fu(i), l, s = n[bt(o, i)];
5292
+ let o = Pu(i), l, s = n[bt(o, i)];
5293
5293
  if (s && s(t.state, t.dispatch, t))
5294
5294
  return !0;
5295
5295
  if (o.length == 1 && o != " ") {
@@ -5299,7 +5299,7 @@ function Bu(e) {
5299
5299
  return !0;
5300
5300
  }
5301
5301
  if ((i.altKey || i.metaKey || i.ctrlKey) && // Ctrl-Alt may be used for AltGr on Windows
5302
- !(Eu && i.ctrlKey && i.altKey) && (l = Pn[i.keyCode]) && l != o) {
5302
+ !(Uu && i.ctrlKey && i.altKey) && (l = Pn[i.keyCode]) && l != o) {
5303
5303
  let r = n[bt(l, i)];
5304
5304
  if (r && r(t.state, t.dispatch, t))
5305
5305
  return !0;
@@ -5378,12 +5378,12 @@ var Xn = class {
5378
5378
  }
5379
5379
  }
5380
5380
  static get(e) {
5381
- return Vt(e) || Gt(e, Qu(e));
5381
+ return Vt(e) || Gt(e, _u(e));
5382
5382
  }
5383
5383
  };
5384
- function Qu(e) {
5384
+ function _u(e) {
5385
5385
  if (e.type.spec.tableRole != "table") throw new RangeError("Not a table node: " + e.type.name);
5386
- const n = _u(e), t = e.childCount, i = [];
5386
+ const n = $u(e), t = e.childCount, i = [];
5387
5387
  let o = 0, l = null;
5388
5388
  const s = [];
5389
5389
  for (let u = 0, g = n * t; u < g; u++) i[u] = 0;
@@ -5393,7 +5393,7 @@ function Qu(e) {
5393
5393
  for (let f = 0; ; f++) {
5394
5394
  for (; o < i.length && i[o] != 0; ) o++;
5395
5395
  if (f == a.childCount) break;
5396
- const p = a.child(f), { colspan: y, rowspan: z, colwidth: C } = p.attrs;
5396
+ const m = a.child(f), { colspan: y, rowspan: z, colwidth: C } = m.attrs;
5397
5397
  for (let S = 0; S < z; S++) {
5398
5398
  if (S + u >= t) {
5399
5399
  (l || (l = [])).push({
@@ -5418,7 +5418,7 @@ function Qu(e) {
5418
5418
  }
5419
5419
  }
5420
5420
  }
5421
- o += y, g += p.nodeSize;
5421
+ o += y, g += m.nodeSize;
5422
5422
  }
5423
5423
  const c = (u + 1) * n;
5424
5424
  let d = 0;
@@ -5433,9 +5433,9 @@ function Qu(e) {
5433
5433
  const r = new Xn(n, t, i, l);
5434
5434
  let h = !1;
5435
5435
  for (let u = 0; !h && u < s.length; u += 2) s[u] != null && s[u + 1] < t && (h = !0);
5436
- return h && $u(r, s, e), r;
5436
+ return h && na(r, s, e), r;
5437
5437
  }
5438
- function _u(e) {
5438
+ function $u(e) {
5439
5439
  let n = -1, t = !1;
5440
5440
  for (let i = 0; i < e.childCount; i++) {
5441
5441
  const o = e.child(i);
@@ -5455,7 +5455,7 @@ function _u(e) {
5455
5455
  }
5456
5456
  return n;
5457
5457
  }
5458
- function $u(e, n, t) {
5458
+ function na(e, n, t) {
5459
5459
  e.problems || (e.problems = []);
5460
5460
  const i = {};
5461
5461
  for (let o = 0; o < e.map.length; o++) {
@@ -5468,7 +5468,7 @@ function $u(e, n, t) {
5468
5468
  const h = s.attrs;
5469
5469
  for (let u = 0; u < h.colspan; u++) {
5470
5470
  const g = n[(o + u) % e.width * 2];
5471
- g != null && (!h.colwidth || h.colwidth[u] != g) && ((r || (r = na(h)))[u] = g);
5471
+ g != null && (!h.colwidth || h.colwidth[u] != g) && ((r || (r = ea(h)))[u] = g);
5472
5472
  }
5473
5473
  r && e.problems.unshift({
5474
5474
  type: "colwidth mismatch",
@@ -5477,7 +5477,7 @@ function $u(e, n, t) {
5477
5477
  });
5478
5478
  }
5479
5479
  }
5480
- function na(e) {
5480
+ function ea(e) {
5481
5481
  if (e.colwidth) return e.colwidth.slice();
5482
5482
  const n = [];
5483
5483
  for (let t = 0; t < e.colspan; t++) n.push(0);
@@ -5495,7 +5495,7 @@ function ni(e) {
5495
5495
  return n;
5496
5496
  }
5497
5497
  new En("selectingCells");
5498
- function ea(e) {
5498
+ function ta(e) {
5499
5499
  for (let n = e.depth - 1; n > 0; n--) if (e.node(n).type.spec.tableRole == "row") return e.node(0).resolve(e.before(n + 1));
5500
5500
  return null;
5501
5501
  }
@@ -5504,15 +5504,15 @@ function dl(e) {
5504
5504
  for (let t = n.depth; t > 0; t--) if (n.node(t).type.spec.tableRole == "row") return !0;
5505
5505
  return !1;
5506
5506
  }
5507
- function ta(e) {
5507
+ function ia(e) {
5508
5508
  const n = e.selection;
5509
5509
  if ("$anchorCell" in n && n.$anchorCell) return n.$anchorCell.pos > n.$headCell.pos ? n.$anchorCell : n.$headCell;
5510
5510
  if ("node" in n && n.node && n.node.type.spec.tableRole == "cell") return n.$anchor;
5511
- const t = ea(n.$head) || ia(n.$head);
5511
+ const t = ta(n.$head) || oa(n.$head);
5512
5512
  if (t) return t;
5513
5513
  throw new RangeError(`No cell found around position ${n.head}`);
5514
5514
  }
5515
- function ia(e) {
5515
+ function oa(e) {
5516
5516
  for (let n = e.nodeAfter, t = e.pos; n; n = n.firstChild, t++) {
5517
5517
  const i = n.type.spec.tableRole;
5518
5518
  if (i == "cell" || i == "header_cell") return e.doc.resolve(t);
@@ -5570,10 +5570,10 @@ var On = class Gn extends B {
5570
5570
  const d = t.findCell(c);
5571
5571
  let f = n.nodeAt(c);
5572
5572
  if (!f) throw new RangeError(`No cell with offset ${c} found`);
5573
- const p = o.left - d.left, y = d.right - o.right;
5574
- if (p > 0 || y > 0) {
5573
+ const m = o.left - d.left, y = d.right - o.right;
5574
+ if (m > 0 || y > 0) {
5575
5575
  let z = f.attrs;
5576
- if (p > 0 && (z = Oi(z, 0, p)), y > 0 && (z = Oi(z, z.colspan - y, y)), d.left < o.left) {
5576
+ if (m > 0 && (z = Oi(z, 0, m)), y > 0 && (z = Oi(z, z.colspan - y, y)), d.left < o.left) {
5577
5577
  if (f = f.type.createAndFill(z), !f) throw new RangeError(`Could not create cell with attrs ${JSON.stringify(z)}`);
5578
5578
  } else f = f.type.create(z, f.content);
5579
5579
  }
@@ -5644,12 +5644,12 @@ var On = class Gn extends B {
5644
5644
  return new Gn(n.resolve(t), n.resolve(i));
5645
5645
  }
5646
5646
  getBookmark() {
5647
- return new oa(this.$anchorCell.pos, this.$headCell.pos);
5647
+ return new la(this.$anchorCell.pos, this.$headCell.pos);
5648
5648
  }
5649
5649
  };
5650
5650
  On.prototype.visible = !1;
5651
5651
  B.jsonID("cell", On);
5652
- var oa = class fl {
5652
+ var la = class fl {
5653
5653
  constructor(n, t) {
5654
5654
  this.anchor = n, this.head = t;
5655
5655
  }
@@ -5663,7 +5663,7 @@ var oa = class fl {
5663
5663
  };
5664
5664
  new En("fix-tables");
5665
5665
  function yl(e) {
5666
- const n = e.selection, t = ta(e), i = t.node(-1), o = t.start(-1), l = Xn.get(i);
5666
+ const n = e.selection, t = ia(e), i = t.node(-1), o = t.start(-1), l = Xn.get(i);
5667
5667
  return {
5668
5668
  ...n instanceof On ? l.rectBetween(n.$anchorCell.pos - o, n.$headCell.pos - o) : l.findCell(t.pos - o),
5669
5669
  tableStart: o,
@@ -5671,7 +5671,7 @@ function yl(e) {
5671
5671
  table: i
5672
5672
  };
5673
5673
  }
5674
- function la(e) {
5674
+ function sa(e) {
5675
5675
  return function(n, t) {
5676
5676
  if (!dl(n)) return !1;
5677
5677
  if (t) {
@@ -5707,7 +5707,7 @@ function Yi(e, n, t) {
5707
5707
  return !0;
5708
5708
  }
5709
5709
  function ei(e, n) {
5710
- return n = n || { useDeprecatedLogic: !1 }, n.useDeprecatedLogic ? la(e) : function(t, i) {
5710
+ return n = n || { useDeprecatedLogic: !1 }, n.useDeprecatedLogic ? sa(e) : function(t, i) {
5711
5711
  if (!dl(t)) return !1;
5712
5712
  if (i) {
5713
5713
  const o = ni(t.schema), l = yl(t), s = t.tr, r = Yi("row", l, o), h = Yi("column", l, o), u = (e === "column" ? r : e === "row" && h) ? 1 : 0, g = e == "column" ? {
@@ -5743,7 +5743,7 @@ function Le(e, n) {
5743
5743
  }
5744
5744
  return !0;
5745
5745
  }
5746
- Bu({
5746
+ Qu({
5747
5747
  ArrowLeft: He("horiz", -1),
5748
5748
  ArrowRight: He("horiz", 1),
5749
5749
  ArrowUp: He("vert", -1),
@@ -5805,11 +5805,11 @@ function ql(e, n, t) {
5805
5805
  return null;
5806
5806
  }
5807
5807
  new En("tableColumnResizing");
5808
- function sa(e, n) {
5808
+ function ra(e, n) {
5809
5809
  const t = Math.min(e.top, n.top), i = Math.max(e.bottom, n.bottom), o = Math.min(e.left, n.left), s = Math.max(e.right, n.right) - o, r = i - t, h = o, u = t;
5810
5810
  return new DOMRect(h, u, s, r);
5811
5811
  }
5812
- var ra = class {
5812
+ var ha = class {
5813
5813
  constructor({
5814
5814
  editor: e,
5815
5815
  element: n,
@@ -5843,7 +5843,7 @@ var ra = class {
5843
5843
  from: d,
5844
5844
  to: f
5845
5845
  }) => {
5846
- const { doc: p, selection: y } = c, { empty: z } = y, C = !p.textBetween(d, f).length && El(c.selection), S = this.element.contains(document.activeElement);
5846
+ const { doc: m, selection: y } = c, { empty: z } = y, C = !m.textBetween(d, f).length && El(c.selection), S = this.element.contains(document.activeElement);
5847
5847
  return !(!(a.hasFocus() || S) || z || C || !this.editor.isEditable);
5848
5848
  }, this.mousedownHandler = () => {
5849
5849
  this.preventHide = !0;
@@ -5872,8 +5872,8 @@ var ra = class {
5872
5872
  this.updateHandler(a, d, f, c);
5873
5873
  }, this.updateDelay));
5874
5874
  }, this.updateHandler = (a, c, d, f) => {
5875
- const { composing: p } = a;
5876
- if (p || !c && !d)
5875
+ const { composing: m } = a;
5876
+ if (m || !c && !d)
5877
5877
  return;
5878
5878
  if (!this.getShouldShow(f)) {
5879
5879
  this.hide();
@@ -5946,7 +5946,7 @@ var ra = class {
5946
5946
  const { $anchorCell: r, $headCell: h } = i, u = r ? r.pos : h.pos, g = h ? h.pos : r.pos, a = this.view.nodeDOM(u), c = this.view.nodeDOM(g);
5947
5947
  if (!a || !c)
5948
5948
  return;
5949
- const d = a === c ? a.getBoundingClientRect() : sa(
5949
+ const d = a === c ? a.getBoundingClientRect() : ra(
5950
5950
  a.getBoundingClientRect(),
5951
5951
  c.getBoundingClientRect()
5952
5952
  );
@@ -6022,10 +6022,10 @@ var ra = class {
6022
6022
  destroy() {
6023
6023
  this.hide(), this.element.removeEventListener("mousedown", this.mousedownHandler, { capture: !0 }), this.view.dom.removeEventListener("dragstart", this.dragstartHandler), window.removeEventListener("resize", this.resizeHandler), this.scrollTarget.removeEventListener("scroll", this.resizeHandler), this.editor.off("focus", this.focusHandler), this.editor.off("blur", this.blurHandler), this.editor.off("transaction", this.transactionHandler), this.floatingUIOptions.onDestroy && this.floatingUIOptions.onDestroy();
6024
6024
  }
6025
- }, ha = (e) => new Ut({
6025
+ }, ua = (e) => new Ut({
6026
6026
  key: typeof e.pluginKey == "string" ? new En(e.pluginKey) : e.pluginKey,
6027
- view: (n) => new ra({ view: n, ...e })
6028
- }), ua = $({
6027
+ view: (n) => new ha({ view: n, ...e })
6028
+ }), aa = $({
6029
6029
  name: "BubbleMenu",
6030
6030
  inheritAttrs: !1,
6031
6031
  props: {
@@ -6077,7 +6077,7 @@ var ra = class {
6077
6077
  } = e, d = o.value;
6078
6078
  d && (d.style.visibility = "hidden", d.style.position = "absolute", d.remove(), ye(() => {
6079
6079
  s.registerPlugin(
6080
- ha({
6080
+ ua({
6081
6081
  editor: s,
6082
6082
  element: d,
6083
6083
  options: r,
@@ -6098,7 +6098,7 @@ var ra = class {
6098
6098
  return no("div", { ref: o, ...t }, (s = n.default) == null ? void 0 : s.call(n));
6099
6099
  };
6100
6100
  }
6101
- }), aa = class {
6101
+ }), ga = class {
6102
6102
  constructor({
6103
6103
  editor: e,
6104
6104
  element: n,
@@ -6111,8 +6111,8 @@ var ra = class {
6111
6111
  shouldShow: h
6112
6112
  }) {
6113
6113
  this.preventHide = !1, this.isVisible = !1, this.scrollTarget = window, this.shouldShow = ({ view: g, state: a }) => {
6114
- const { selection: c } = a, { $anchor: d, empty: f } = c, p = d.depth === 1, y = d.parent.isTextblock && !d.parent.type.spec.code && !d.parent.textContent && d.parent.childCount === 0 && !this.getTextContent(d.parent);
6115
- return !(!g.hasFocus() || !f || !p || !y || !this.editor.isEditable);
6114
+ const { selection: c } = a, { $anchor: d, empty: f } = c, m = d.depth === 1, y = d.parent.isTextblock && !d.parent.type.spec.code && !d.parent.textContent && d.parent.childCount === 0 && !this.getTextContent(d.parent);
6115
+ return !(!g.hasFocus() || !f || !m || !y || !this.editor.isEditable);
6116
6116
  }, this.floatingUIOptions = {
6117
6117
  strategy: "absolute",
6118
6118
  placement: "right",
@@ -6254,9 +6254,9 @@ var ra = class {
6254
6254
  destroy() {
6255
6255
  this.hide(), this.element.removeEventListener("mousedown", this.mousedownHandler, { capture: !0 }), window.removeEventListener("resize", this.resizeHandler), this.scrollTarget.removeEventListener("scroll", this.resizeHandler), this.editor.off("focus", this.focusHandler), this.editor.off("blur", this.blurHandler), this.editor.off("transaction", this.transactionHandler), this.floatingUIOptions.onDestroy && this.floatingUIOptions.onDestroy();
6256
6256
  }
6257
- }, ga = (e) => new Ut({
6257
+ }, ca = (e) => new Ut({
6258
6258
  key: typeof e.pluginKey == "string" ? new En(e.pluginKey) : e.pluginKey,
6259
- view: (n) => new aa({ view: n, ...e })
6259
+ view: (n) => new ga({ view: n, ...e })
6260
6260
  });
6261
6261
  $({
6262
6262
  name: "FloatingMenu",
@@ -6299,7 +6299,7 @@ $({
6299
6299
  return Oe(() => {
6300
6300
  const { editor: s, updateDelay: r, resizeDelay: h, options: u, appendTo: g, shouldShow: a } = e, c = o.value;
6301
6301
  c && (c.style.visibility = "hidden", c.style.position = "absolute", c.remove(), s.registerPlugin(
6302
- ga({
6302
+ ca({
6303
6303
  pluginKey: l,
6304
6304
  editor: s,
6305
6305
  element: c,
@@ -6319,26 +6319,26 @@ $({
6319
6319
  };
6320
6320
  }
6321
6321
  });
6322
- const ca = Symbol("stop-audio"), da = (e) => {
6323
- const n = Or(ca);
6322
+ const da = Symbol("stop-audio"), ma = (e) => {
6323
+ const n = Or(da);
6324
6324
  return n.on(e.on), n;
6325
- }, ma = (e) => {
6325
+ }, pa = (e) => {
6326
6326
  const n = e == null ? void 0 : e.toLowerCase();
6327
6327
  return n === "mp3" ? "audio/mpeg" : n === "wav" ? "audio/wav" : n === "ogg" ? "audio/ogg" : n ? `audio/${n}` : "audio/wav";
6328
- }, pa = (e) => typeof e.duration == "number" ? e.duration : typeof e.start == "number" && typeof e.end == "number" ? Math.max(0, e.end - e.start) : 0, fa = (e, n) => {
6328
+ }, fa = (e) => typeof e.duration == "number" ? e.duration : typeof e.start == "number" && typeof e.end == "number" ? Math.max(0, e.end - e.start) : 0, ya = (e, n) => {
6329
6329
  const t = e.includes(",") ? e.split(",").pop() || "" : e, i = atob(t), o = new Uint8Array(i.length);
6330
6330
  for (let l = 0; l < i.length; l += 1)
6331
6331
  o[l] = i.charCodeAt(l);
6332
6332
  return URL.createObjectURL(
6333
- new Blob([o], { type: ma(n) })
6333
+ new Blob([o], { type: pa(n) })
6334
6334
  );
6335
- }, ya = (e) => {
6335
+ }, qa = (e) => {
6336
6336
  const { services: n } = Mn(), t = k(!1), i = k([]), o = k(-1), l = k("idle"), s = k(!1), r = k(!1);
6337
6337
  let h = null, u = null;
6338
6338
  const g = T(() => {
6339
6339
  var q;
6340
6340
  return o.value < 0 ? "" : ((q = i.value[o.value]) == null ? void 0 : q.src) || "";
6341
- }), a = Gr(e, { src: g }), { playing: c } = a, d = T(() => l.value === "playing"), f = T(() => i.value.length > 0), p = T(
6341
+ }), a = Gr(e, { src: g }), { playing: c } = a, d = T(() => l.value === "playing"), f = T(() => i.value.length > 0), m = T(
6342
6342
  () => i.value.reduce((q, I) => q + I.duration, 0)
6343
6343
  ), y = T(() => o.value <= 0 ? 0 : i.value.slice(0, o.value).reduce((q, I) => q + I.duration, 0)), z = T({
6344
6344
  get() {
@@ -6359,7 +6359,7 @@ const ca = Symbol("stop-audio"), da = (e) => {
6359
6359
  ...a,
6360
6360
  playing: C,
6361
6361
  currentTime: z,
6362
- duration: p
6362
+ duration: m
6363
6363
  }, W = async () => {
6364
6364
  s.value = !1, await ye(), c.value = !0;
6365
6365
  }, X = async () => {
@@ -6377,7 +6377,7 @@ const ca = Symbol("stop-audio"), da = (e) => {
6377
6377
  await K();
6378
6378
  return;
6379
6379
  }
6380
- if (p.value > 0 && z.value >= p.value) {
6380
+ if (m.value > 0 && z.value >= m.value) {
6381
6381
  await X();
6382
6382
  return;
6383
6383
  }
@@ -6396,14 +6396,14 @@ const ca = Symbol("stop-audio"), da = (e) => {
6396
6396
  i.value.forEach((q) => URL.revokeObjectURL(q.src)), i.value = [], o.value = -1, a.currentTime.value = 0, s.value = !1, r.value = !1;
6397
6397
  }, v = () => {
6398
6398
  r.value = !0, s.value && o.value >= i.value.length - 1 && (s.value = !1, l.value = "idle"), t.value = !1;
6399
- }, m = (q) => {
6399
+ }, p = (q) => {
6400
6400
  if (q.done) {
6401
6401
  v(), u = q;
6402
6402
  return;
6403
6403
  }
6404
6404
  q.audio_base64 && (i.value[q.index] = {
6405
- src: fa(q.audio_base64, q.audio_format),
6406
- duration: pa(q)
6405
+ src: ya(q.audio_base64, q.audio_format),
6406
+ duration: fa(q)
6407
6407
  }, l.value === "playing" && (o.value < 0 || s.value) && K());
6408
6408
  }, Z = (q) => {
6409
6409
  const I = q instanceof Blob ? URL.createObjectURL(q) : q;
@@ -6419,7 +6419,7 @@ const ca = Symbol("stop-audio"), da = (e) => {
6419
6419
  u = await I(q, {
6420
6420
  signal: w.signal,
6421
6421
  onMessage: (x) => {
6422
- w.signal.aborted || m(x);
6422
+ w.signal.aborted || p(x);
6423
6423
  }
6424
6424
  }), r.value || v();
6425
6425
  else if (b) {
@@ -6448,7 +6448,7 @@ const ca = Symbol("stop-audio"), da = (e) => {
6448
6448
  shouldAutoPlay: d,
6449
6449
  hasAudio: f
6450
6450
  };
6451
- }, qa = { key: 0 }, za = ["onClick"], ba = /* @__PURE__ */ $({
6451
+ }, za = { key: 0 }, ba = ["onClick"], ja = /* @__PURE__ */ $({
6452
6452
  __name: "selection-menu",
6453
6453
  setup(e) {
6454
6454
  const n = Mn(), {
@@ -6460,7 +6460,7 @@ const ca = Symbol("stop-audio"), da = (e) => {
6460
6460
  services: r
6461
6461
  } = n, h = T(
6462
6462
  () => n.features.value.enablePreview !== !1 && !!(r.value.synthesizePreviewStream || r.value.synthesizePreview)
6463
- ), u = `tts-rich-text-preview-${Ot(6)}`, g = k(), a = ya(g), c = da({
6463
+ ), u = `tts-rich-text-preview-${Ot(6)}`, g = k(), a = qa(g), c = ma({
6464
6464
  on: () => {
6465
6465
  a.abort();
6466
6466
  }
@@ -6469,7 +6469,7 @@ const ca = Symbol("stop-audio"), da = (e) => {
6469
6469
  (y = t.value) == null || y.view.dispatch(
6470
6470
  t.value.state.tr.setMeta(u, "hide")
6471
6471
  );
6472
- }, p = [
6472
+ }, m = [
6473
6473
  {
6474
6474
  label: "试听",
6475
6475
  value: "test",
@@ -6492,8 +6492,8 @@ const ca = Symbol("stop-audio"), da = (e) => {
6492
6492
  }
6493
6493
  }
6494
6494
  ];
6495
- return (y, z) => h.value ? (Y(), L("div", qa, [
6496
- j(t) ? (Y(), _(j(ua), {
6495
+ return (y, z) => h.value ? (Y(), L("div", za, [
6496
+ j(t) ? (Y(), _(j(aa), {
6497
6497
  key: 0,
6498
6498
  "plugin-key": u,
6499
6499
  editor: j(t),
@@ -6501,12 +6501,12 @@ const ca = Symbol("stop-audio"), da = (e) => {
6501
6501
  class: "lsh-menu-box"
6502
6502
  }, {
6503
6503
  default: N(() => [
6504
- (Y(), L(tn, null, gn(p, (C) => A("button", {
6504
+ (Y(), L(tn, null, gn(m, (C) => A("button", {
6505
6505
  key: C.value,
6506
6506
  type: "button",
6507
6507
  class: "lsh-menu-item",
6508
6508
  onClick: C.onClick
6509
- }, P(C.label), 9, za)), 64))
6509
+ }, P(C.label), 9, ba)), 64))
6510
6510
  ]),
6511
6511
  _: 1
6512
6512
  }, 8, ["editor", "get-referenced-virtual-element"])) : yn("", !0),
@@ -6517,7 +6517,7 @@ const ca = Symbol("stop-audio"), da = (e) => {
6517
6517
  }, null, 512)
6518
6518
  ])) : yn("", !0);
6519
6519
  }
6520
- }), ja = /* @__PURE__ */ sn(ba, [["__scopeId", "data-v-3171f4b7"]]), va = /* @__PURE__ */ $({
6520
+ }), va = /* @__PURE__ */ sn(ja, [["__scopeId", "data-v-3171f4b7"]]), Aa = /* @__PURE__ */ $({
6521
6521
  __name: "index",
6522
6522
  props: {
6523
6523
  textLimit: { default: 8e3 },
@@ -6536,47 +6536,52 @@ const ca = Symbol("stop-audio"), da = (e) => {
6536
6536
  content: i.initialContent,
6537
6537
  textLimitLength: i.textLimit,
6538
6538
  getGenerateAudioParams: () => {
6539
- var f;
6540
- return ((f = i.getPreviewParams) == null ? void 0 : f.call(i)) ?? {};
6539
+ var m;
6540
+ return ((m = i.getPreviewParams) == null ? void 0 : m.call(i)) ?? {};
6541
6541
  },
6542
6542
  voiceVersion: l,
6543
6543
  placeholder: i.placeholder,
6544
6544
  editable: s,
6545
6545
  services: r,
6546
6546
  features: h,
6547
- onCreate: (f) => o("ready", f),
6547
+ onCreate: (m) => o("ready", m),
6548
6548
  onChange: () => o("change")
6549
6549
  }), { editor: g, clearContent: a, replaceContentWithText: c } = u;
6550
- return Ch(u), n({
6550
+ Ch(u);
6551
+ const { handleChangeVoice: d } = nu({
6552
+ richTextEditor: u
6553
+ });
6554
+ return n({
6551
6555
  ...u,
6552
6556
  ...{
6553
6557
  clear: a,
6554
6558
  focus: () => {
6555
- var f;
6556
- return (f = g.value) == null ? void 0 : f.commands.focus();
6559
+ var m;
6560
+ return (m = g.value) == null ? void 0 : m.commands.focus();
6557
6561
  },
6558
6562
  getJson: () => {
6559
- var f;
6560
- return ((f = g.value) == null ? void 0 : f.getJSON()) ?? ge();
6563
+ var m;
6564
+ return ((m = g.value) == null ? void 0 : m.getJSON()) ?? ge();
6561
6565
  },
6562
6566
  getTtsData: () => {
6563
- var f;
6564
- return Ho(((f = g.value) == null ? void 0 : f.getJSON()) ?? ge());
6567
+ var m;
6568
+ return Ho(((m = g.value) == null ? void 0 : m.getJSON()) ?? ge());
6565
6569
  },
6566
- replaceText: c
6570
+ replaceText: c,
6571
+ handleChangeVoice: d
6567
6572
  }
6568
- }), (f, p) => (Y(), L(tn, null, [
6569
- wn(f.$slots, "default"),
6570
- i.showSelectionMenu ? (Y(), _(ja, { key: 0 })) : yn("", !0)
6573
+ }), (m, y) => (Y(), L(tn, null, [
6574
+ wn(m.$slots, "default"),
6575
+ i.showSelectionMenu ? (Y(), _(va, { key: 0 })) : yn("", !0)
6571
6576
  ], 64));
6572
6577
  }
6573
- }), Aa = (e) => e ? typeof e == "function" ? e() : e.value : null, zl = (e) => {
6578
+ }), Za = (e) => e ? typeof e == "function" ? e() : e.value : null, zl = (e) => {
6574
6579
  const n = k(!1), t = k("");
6575
6580
  let i = null, o = null;
6576
6581
  const l = () => {
6577
6582
  !e.scrollTarget || o !== null || (o = requestAnimationFrame(async () => {
6578
6583
  o = null, await ye();
6579
- const h = Aa(e.scrollTarget);
6584
+ const h = Za(e.scrollTarget);
6580
6585
  h && (h.scrollTop = h.scrollHeight);
6581
6586
  }));
6582
6587
  }, s = async (h = {}) => {
@@ -6609,16 +6614,16 @@ const ca = Symbol("stop-audio"), da = (e) => {
6609
6614
  loading: n,
6610
6615
  abort: r
6611
6616
  };
6612
- }, Za = { class: "lsh-content-box" }, xa = { class: "lsh-form-box" }, Ca = { class: "lsh-form-top" }, Ia = { class: "lsh-form-bottom" }, Wa = { class: "lsh-form-item" }, wa = { class: "lsh-form-item-top" }, Sa = { class: "lsh-tip" }, Oa = ["onUpdate:modelValue", "placeholder", "maxlength"], Ya = { class: "lsh-form-box" }, ka = {
6617
+ }, xa = { class: "lsh-content-box" }, Ca = { class: "lsh-form-box" }, Ia = { class: "lsh-form-top" }, Wa = { class: "lsh-form-bottom" }, wa = { class: "lsh-form-item" }, Sa = { class: "lsh-form-item-top" }, Oa = { class: "lsh-tip" }, Ya = ["onUpdate:modelValue", "placeholder", "maxlength"], ka = { class: "lsh-form-box" }, Ka = {
6613
6618
  key: 0,
6614
6619
  class: "lsh-form-bottom gray"
6615
- }, Ka = { class: "lsh-tip" }, Va = {
6620
+ }, Va = { class: "lsh-tip" }, Ga = {
6616
6621
  key: 1,
6617
6622
  class: "lsh-form-bottom gray"
6618
- }, Ga = { class: "lsh-result-box" }, Xa = {
6623
+ }, Xa = { class: "lsh-result-box" }, Ja = {
6619
6624
  key: 2,
6620
6625
  class: "lsh-form-bottom gray"
6621
- }, Ja = { class: "lsh-result-box" }, La = /* @__PURE__ */ $({
6626
+ }, La = { class: "lsh-result-box" }, Ha = /* @__PURE__ */ $({
6622
6627
  __name: "ai-rewrite-modal",
6623
6628
  emits: ["confirm"],
6624
6629
  setup(e, { expose: n, emit: t }) {
@@ -6635,7 +6640,7 @@ const ca = Symbol("stop-audio"), da = (e) => {
6635
6640
  )) ?? Promise.resolve();
6636
6641
  },
6637
6642
  scrollTarget: l
6638
- }), { loading: a, result: c } = g, d = k(""), f = k(""), { copy: p } = Wr({ source: c }), y = k(!1), z = [
6643
+ }), { loading: a, result: c } = g, d = k(""), f = k(""), { copy: m } = Wr({ source: c }), y = k(!1), z = [
6639
6644
  {
6640
6645
  label: "文稿主题",
6641
6646
  modelValue: d,
@@ -6662,7 +6667,7 @@ const ca = Symbol("stop-audio"), da = (e) => {
6662
6667
  i("confirm", c.value), C();
6663
6668
  }, X = async () => {
6664
6669
  try {
6665
- await p(), r("success", "复制成功");
6670
+ await m(), r("success", "复制成功");
6666
6671
  } catch (Z) {
6667
6672
  console.log(Z);
6668
6673
  }
@@ -6674,7 +6679,7 @@ const ca = Symbol("stop-audio"), da = (e) => {
6674
6679
  }), y.value = !0;
6675
6680
  } catch {
6676
6681
  }
6677
- }, V = T(() => !d.value || !f.value), H = T(() => u), F = T(() => c.value.length > H.value), v = T(() => a.value || !c.value), m = T(() => v.value || F.value);
6682
+ }, V = T(() => !d.value || !f.value), H = T(() => u), F = T(() => c.value.length > H.value), v = T(() => a.value || !c.value), p = T(() => v.value || F.value);
6678
6683
  return n({
6679
6684
  open: () => {
6680
6685
  C();
@@ -6709,7 +6714,7 @@ const ca = Symbol("stop-audio"), da = (e) => {
6709
6714
  J(j(on), {
6710
6715
  type: "info",
6711
6716
  onClick: W,
6712
- disabled: m.value,
6717
+ disabled: p.value,
6713
6718
  loading: j(a)
6714
6719
  }, {
6715
6720
  default: N(() => [...O[9] || (O[9] = [
@@ -6719,9 +6724,9 @@ const ca = Symbol("stop-audio"), da = (e) => {
6719
6724
  }, 8, ["disabled", "loading"])
6720
6725
  ]),
6721
6726
  default: N(() => [
6722
- A("div", Za, [
6723
- A("div", xa, [
6724
- A("div", Ca, [
6727
+ A("div", xa, [
6728
+ A("div", Ca, [
6729
+ A("div", Ia, [
6725
6730
  O[4] || (O[4] = A("span", { class: "lsh-title" }, "文稿关键词", -1)),
6726
6731
  j(a) ? (Y(), _(j(on), {
6727
6732
  key: 1,
@@ -6750,11 +6755,11 @@ const ca = Symbol("stop-audio"), da = (e) => {
6750
6755
  _: 1
6751
6756
  }, 8, ["disabled"]))
6752
6757
  ]),
6753
- A("div", Ia, [
6754
- (Y(), L(tn, null, gn(z, (q) => A("div", Wa, [
6755
- A("div", wa, [
6758
+ A("div", Wa, [
6759
+ (Y(), L(tn, null, gn(z, (q) => A("div", wa, [
6760
+ A("div", Sa, [
6756
6761
  A("span", null, P(q.label), 1),
6757
- A("span", Sa, P(q.modelValue.value.length) + "/" + P(q.maxLength), 1)
6762
+ A("span", Oa, P(q.modelValue.value.length) + "/" + P(q.maxLength), 1)
6758
6763
  ]),
6759
6764
  Re(A("textarea", {
6760
6765
  class: "lsh-textarea",
@@ -6763,17 +6768,17 @@ const ca = Symbol("stop-audio"), da = (e) => {
6763
6768
  style: ae({ height: q.inputHeight + "px" }),
6764
6769
  resizable: !1,
6765
6770
  maxlength: q.maxLength
6766
- }, null, 12, Oa), [
6771
+ }, null, 12, Ya), [
6767
6772
  [Fe, q.modelValue.value]
6768
6773
  ])
6769
6774
  ])), 64))
6770
6775
  ])
6771
6776
  ]),
6772
- A("div", Ya, [
6777
+ A("div", ka, [
6773
6778
  O[6] || (O[6] = A("div", { class: "lsh-form-top" }, [
6774
6779
  A("span", { class: "lsh-title" }, "AI写稿结果")
6775
6780
  ], -1)),
6776
- j(c) || y.value ? (Y(), L("div", ka, [
6781
+ j(c) || y.value ? (Y(), L("div", Ka, [
6777
6782
  Re(A("textarea", {
6778
6783
  class: "lsh-textarea lsh-result-box",
6779
6784
  ref_key: "textBoxRef",
@@ -6782,7 +6787,7 @@ const ca = Symbol("stop-audio"), da = (e) => {
6782
6787
  }, null, 512), [
6783
6788
  [Fe, j(c)]
6784
6789
  ]),
6785
- A("div", Ka, [
6790
+ A("div", Va, [
6786
6791
  O[5] || (O[5] = A("span", null, "内容由AI生成,仅供参考", -1)),
6787
6792
  A("span", {
6788
6793
  class: bn({
@@ -6790,15 +6795,15 @@ const ca = Symbol("stop-audio"), da = (e) => {
6790
6795
  })
6791
6796
  }, P(j(c).length) + "/" + P(H.value), 3)
6792
6797
  ])
6793
- ])) : j(a) ? (Y(), L("div", Va, [
6794
- A("div", Ga, [
6798
+ ])) : j(a) ? (Y(), L("div", Ga, [
6799
+ A("div", Xa, [
6795
6800
  J(j(qo), {
6796
6801
  loading: "",
6797
6802
  text: "正在生成中,请稍候..."
6798
6803
  })
6799
6804
  ])
6800
- ])) : (Y(), L("div", Xa, [
6801
- A("div", Ja, [
6805
+ ])) : (Y(), L("div", Ja, [
6806
+ A("div", La, [
6802
6807
  J(j(yr), {
6803
6808
  style: { height: "100%" },
6804
6809
  description: "暂无内容,请先输入关键词"
@@ -6811,16 +6816,16 @@ const ca = Symbol("stop-audio"), da = (e) => {
6811
6816
  _: 1
6812
6817
  }, 8, ["modelValue"]));
6813
6818
  }
6814
- }), Ha = /* @__PURE__ */ sn(La, [["__scopeId", "data-v-259be8b7"]]), Ta = { class: "lsh-footer-box" }, Ma = { class: "lsh-option-item gray" }, Na = { class: "lsh-option-item gray" }, Ra = /* @__PURE__ */ $({
6819
+ }), Ta = /* @__PURE__ */ sn(Ha, [["__scopeId", "data-v-259be8b7"]]), Ma = { class: "lsh-footer-box" }, Na = { class: "lsh-option-item gray" }, Ra = { class: "lsh-option-item gray" }, Fa = /* @__PURE__ */ $({
6815
6820
  __name: "editor-footer",
6816
6821
  setup(e) {
6817
6822
  const n = Mn(), { clearContent: t, textLimitLength: i, textLength: o } = n, l = T(() => As(o.value / 2));
6818
- return (s, r) => (Y(), L("div", Ta, [
6819
- A("div", Ma, [
6823
+ return (s, r) => (Y(), L("div", Ma, [
6824
+ A("div", Na, [
6820
6825
  J(j(hn), { name: "editor-text" }),
6821
6826
  A("span", null, P(j(o)) + "/" + P(j(i)), 1)
6822
6827
  ]),
6823
- A("div", Na, [
6828
+ A("div", Ra, [
6824
6829
  J(j(hn), { name: "editor-time" }),
6825
6830
  A("span", null, P(l.value), 1)
6826
6831
  ]),
@@ -6835,7 +6840,7 @@ const ca = Symbol("stop-audio"), da = (e) => {
6835
6840
  ], 2)
6836
6841
  ]));
6837
6842
  }
6838
- }), Fa = /* @__PURE__ */ sn(Ra, [["__scopeId", "data-v-8bafee79"]]), Pa = ({
6843
+ }), Pa = /* @__PURE__ */ sn(Fa, [["__scopeId", "data-v-8bafee79"]]), Ea = ({
6839
6844
  list: e,
6840
6845
  toolbarRef: n,
6841
6846
  measureRef: t,
@@ -6852,9 +6857,9 @@ const ca = Symbol("stop-audio"), da = (e) => {
6852
6857
  if (!c || !d) return;
6853
6858
  const f = c.clientWidth;
6854
6859
  if (f <= 0) return;
6855
- const p = Array.from(
6860
+ const m = Array.from(
6856
6861
  d.querySelectorAll(i)
6857
- ), y = ((S = p[p.length - 1]) == null ? void 0 : S.offsetWidth) || 0, z = p.slice(0, -1).map((W) => W.offsetWidth);
6862
+ ), y = ((S = m[m.length - 1]) == null ? void 0 : S.offsetWidth) || 0, z = m.slice(0, -1).map((W) => W.offsetWidth);
6858
6863
  if (!y || z.some((W) => !W)) return;
6859
6864
  let C = 0;
6860
6865
  s.value = z.length;
@@ -6908,13 +6913,13 @@ const ca = Symbol("stop-audio"), da = (e) => {
6908
6913
  _: 1
6909
6914
  }, 8, ["plain", "disabled"]));
6910
6915
  }
6911
- }), Ea = { class: "lsh-content-box" }, Ua = { class: "lsh-form-box" }, Da = { class: "lsh-form-bottom gray" }, Ba = { class: "lsh-form-box" }, Qa = { class: "lsh-form-top" }, _a = {
6916
+ }), Ua = { class: "lsh-content-box" }, Da = { class: "lsh-form-box" }, Ba = { class: "lsh-form-bottom gray" }, Qa = { class: "lsh-form-box" }, _a = { class: "lsh-form-top" }, $a = {
6912
6917
  key: 0,
6913
6918
  class: "lsh-form-bottom"
6914
- }, $a = { class: "lsh-tip" }, ng = {
6919
+ }, ng = { class: "lsh-tip" }, eg = {
6915
6920
  key: 1,
6916
6921
  class: "lsh-form-bottom"
6917
- }, eg = { class: "lsh-result-box" }, tg = /* @__PURE__ */ $({
6922
+ }, tg = { class: "lsh-result-box" }, ig = /* @__PURE__ */ $({
6918
6923
  __name: "formula-modal",
6919
6924
  emits: ["confirm"],
6920
6925
  setup(e, { expose: n, emit: t }) {
@@ -6924,12 +6929,12 @@ const ca = Symbol("stop-audio"), da = (e) => {
6924
6929
  return ((F = (H = h.value).readFormula) == null ? void 0 : F.call(H, String(K.formula ?? ""), V)) ?? Promise.resolve();
6925
6930
  },
6926
6931
  scrollTarget: s
6927
- }), { loading: c, result: d } = a, f = k(!1), p = () => {
6932
+ }), { loading: c, result: d } = a, f = k(!1), m = () => {
6928
6933
  o.value = !o.value;
6929
6934
  }, y = () => {
6930
- p();
6935
+ m();
6931
6936
  }, z = () => {
6932
- i("confirm", d.value), p();
6937
+ i("confirm", d.value), m();
6933
6938
  }, C = async () => {
6934
6939
  try {
6935
6940
  await a.exec({
@@ -6940,7 +6945,7 @@ const ca = Symbol("stop-audio"), da = (e) => {
6940
6945
  }, S = T(() => g - u.value + l.value.length), W = T(() => d.value.length > S.value), X = T(() => c.value || !d.value || W.value);
6941
6946
  return n({
6942
6947
  open: (K) => {
6943
- l.value = K, C(), p();
6948
+ l.value = K, C(), m();
6944
6949
  }
6945
6950
  }), (K, V) => (Y(), _(j(Ye), {
6946
6951
  modelValue: o.value,
@@ -6972,17 +6977,17 @@ const ca = Symbol("stop-audio"), da = (e) => {
6972
6977
  }, 8, ["disabled", "loading"])
6973
6978
  ]),
6974
6979
  default: N(() => [
6975
- A("div", Ea, [
6976
- A("div", Ua, [
6980
+ A("div", Ua, [
6981
+ A("div", Da, [
6977
6982
  V[3] || (V[3] = A("div", { class: "lsh-form-top" }, [
6978
6983
  A("span", { class: "lsh-title" }, "原始文本")
6979
6984
  ], -1)),
6980
- A("div", Da, [
6985
+ A("div", Ba, [
6981
6986
  A("span", null, P(l.value), 1)
6982
6987
  ])
6983
6988
  ]),
6984
- A("div", Ba, [
6985
- A("div", Qa, [
6989
+ A("div", Qa, [
6990
+ A("div", _a, [
6986
6991
  V[6] || (V[6] = A("span", { class: "lsh-title" }, "AI读公式结果", -1)),
6987
6992
  j(c) ? (Y(), L("div", {
6988
6993
  key: 1,
@@ -7001,7 +7006,7 @@ const ca = Symbol("stop-audio"), da = (e) => {
7001
7006
  V[4] || (V[4] = A("span", null, "重新生成 ", -1))
7002
7007
  ]))
7003
7008
  ]),
7004
- j(d) || f.value ? (Y(), L("div", _a, [
7009
+ j(d) || f.value ? (Y(), L("div", $a, [
7005
7010
  Re(A("textarea", {
7006
7011
  class: "lsh-textarea lsh-result-box",
7007
7012
  ref_key: "textBoxRef",
@@ -7010,7 +7015,7 @@ const ca = Symbol("stop-audio"), da = (e) => {
7010
7015
  }, null, 512), [
7011
7016
  [Fe, j(d)]
7012
7017
  ]),
7013
- A("div", $a, [
7018
+ A("div", ng, [
7014
7019
  V[7] || (V[7] = A("span", null, "内容由AI生成,仅供参考", -1)),
7015
7020
  A("span", {
7016
7021
  class: bn({
@@ -7018,8 +7023,8 @@ const ca = Symbol("stop-audio"), da = (e) => {
7018
7023
  })
7019
7024
  }, P(j(d).length) + "/" + P(S.value), 3)
7020
7025
  ])
7021
- ])) : (Y(), L("div", ng, [
7022
- A("div", eg, [
7026
+ ])) : (Y(), L("div", eg, [
7027
+ A("div", tg, [
7023
7028
  J(j(qo), {
7024
7029
  loading: "",
7025
7030
  text: "正在生成中,请稍候..."
@@ -7032,7 +7037,7 @@ const ca = Symbol("stop-audio"), da = (e) => {
7032
7037
  _: 1
7033
7038
  }, 8, ["modelValue"]));
7034
7039
  }
7035
- }), ig = /* @__PURE__ */ sn(tg, [["__scopeId", "data-v-e743e5e3"]]), og = /^[\uD800-\uDBFF]$/, lg = /^[\uDC00-\uDFFF]$/, sg = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g;
7040
+ }), og = /* @__PURE__ */ sn(ig, [["__scopeId", "data-v-e743e5e3"]]), lg = /^[\uD800-\uDBFF]$/, sg = /^[\uDC00-\uDFFF]$/, rg = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g;
7036
7041
  var ki;
7037
7042
  (function(e) {
7038
7043
  e[e.Unknown = 1e-13] = "Unknown", e[e.Rule = 1e-12] = "Rule", e[e.DICT = 2e-8] = "DICT", e[e.Surname = 1] = "Surname", e[e.Custom = 1] = "Custom";
@@ -7044,14 +7049,14 @@ const qn = {
7044
7049
  };
7045
7050
  function xn(e) {
7046
7051
  var n;
7047
- return e.length - (((n = e.match(sg)) === null || n === void 0 ? void 0 : n.length) || 0);
7052
+ return e.length - (((n = e.match(rg)) === null || n === void 0 ? void 0 : n.length) || 0);
7048
7053
  }
7049
7054
  function nt(e) {
7050
7055
  const n = [];
7051
7056
  let t = 0;
7052
7057
  for (; t < e.length; ) {
7053
7058
  const i = e[t];
7054
- og.test(i) && lg.test(e[t + 1]) ? (n.push(e.substring(t, t + 2)), t += 2) : (n.push(i), t += 1);
7059
+ lg.test(i) && sg.test(e[t + 1]) ? (n.push(e.substring(t, t + 2)), t += 2) : (n.push(i), t += 1);
7055
7060
  }
7056
7061
  return n;
7057
7062
  }
@@ -7079,7 +7084,7 @@ class ti {
7079
7084
  this.NumberDICT = [], this.StringDICT.clear();
7080
7085
  }
7081
7086
  }
7082
- const rg = [
7087
+ const hg = [
7083
7088
  "zh",
7084
7089
  "ch",
7085
7090
  "sh",
@@ -7104,7 +7109,7 @@ const rg = [
7104
7109
  "y",
7105
7110
  "w",
7106
7111
  ""
7107
- ], hg = ["j", "q", "x"], ug = [
7112
+ ], ug = ["j", "q", "x"], ag = [
7108
7113
  "uān",
7109
7114
  "uán",
7110
7115
  "uǎn",
@@ -7125,7 +7130,7 @@ const rg = [
7125
7130
  "ǔ",
7126
7131
  "ù",
7127
7132
  "u"
7128
- ], ag = {
7133
+ ], gg = {
7129
7134
  uān: "üān",
7130
7135
  uán: "üán",
7131
7136
  uǎn: "üǎn",
@@ -7146,7 +7151,7 @@ const rg = [
7146
7151
  ǔ: "ǚ",
7147
7152
  ù: "ǜ",
7148
7153
  u: "ü"
7149
- }, gg = [
7154
+ }, cg = [
7150
7155
  "ia",
7151
7156
  "ian",
7152
7157
  "iang",
@@ -7196,7 +7201,7 @@ const rg = [
7196
7201
  斗: "dǒu",
7197
7202
  更: "gēng"
7198
7203
  };
7199
- function cg() {
7204
+ function dg() {
7200
7205
  const e = {
7201
7206
  零一: "líng yī",
7202
7207
  "〇一": "líng yī",
@@ -7212,7 +7217,7 @@ function cg() {
7212
7217
  }
7213
7218
  return e;
7214
7219
  }
7215
- const Gi = cg(), dg = Object.keys(Gi).map((e) => ({
7220
+ const Gi = dg(), mg = Object.keys(Gi).map((e) => ({
7216
7221
  zh: e,
7217
7222
  pinyin: Gi[e],
7218
7223
  probability: 1e-12,
@@ -7229,10 +7234,10 @@ const Gi = cg(), dg = Object.keys(Gi).map((e) => ({
7229
7234
  yí: [4],
7230
7235
  yì: [1, 2, 3]
7231
7236
  }
7232
- }, mg = {
7237
+ }, pg = {
7233
7238
  不: ["的", "而", "之", "后", "也", "还", "地"],
7234
7239
  一: ["的", "而", "之", "后", "也", "还", "是"]
7235
- }, pg = Object.keys(bl), Xt = {
7240
+ }, fg = Object.keys(bl), Xt = {
7236
7241
  南宫: "nán gōng",
7237
7242
  第五: "dì wǔ",
7238
7243
  万俟: "mò qí",
@@ -7725,7 +7730,7 @@ const Gi = cg(), dg = Object.keys(Gi).map((e) => ({
7725
7730
  六: "lù",
7726
7731
  啜: "chuài",
7727
7732
  行: "xíng"
7728
- }, fg = Object.keys(Xt).map((e) => ({
7733
+ }, yg = Object.keys(Xt).map((e) => ({
7729
7734
  zh: e,
7730
7735
  pinyin: Xt[e],
7731
7736
  probability: 1 + xn(e),
@@ -28555,7 +28560,7 @@ const Ji = {
28555
28560
  曲肱: "qū gōng",
28556
28561
  曲意: "qū yì",
28557
28562
  仡佬: "gē lǎo"
28558
- }, yg = Object.keys(Ji).map((e) => ({
28563
+ }, qg = Object.keys(Ji).map((e) => ({
28559
28564
  zh: e,
28560
28565
  pinyin: Ji[e],
28561
28566
  probability: 2e-8,
@@ -28888,7 +28893,7 @@ const Ji = {
28888
28893
  干哪行: "gàn nǎ háng",
28889
28894
  干一行: "gàn yì háng",
28890
28895
  曲别针: "qū bié zhēn"
28891
- }, qg = Object.keys(Li).map((e) => ({
28896
+ }, zg = Object.keys(Li).map((e) => ({
28892
28897
  zh: e,
28893
28898
  pinyin: Li[e],
28894
28899
  probability: 2e-8,
@@ -30491,7 +30496,7 @@ const Ji = {
30491
30496
  曲意逢迎: "qū yì féng yíng",
30492
30497
  一行不行: "yì háng bù xíng",
30493
30498
  行行不行: "háng háng bù xíng"
30494
- }, zg = Object.keys(Hi).map((e) => ({
30499
+ }, bg = Object.keys(Hi).map((e) => ({
30495
30500
  zh: e,
30496
30501
  pinyin: Hi[e],
30497
30502
  probability: 2e-8,
@@ -30514,7 +30519,7 @@ const Ji = {
30514
30519
  亚得里亚海: "yà dé lǐ yà hǎi",
30515
30520
  眼不见为净: "yǎn bú jiàn wéi jìng",
30516
30521
  竹筒倒豆子: "zhú tǒng dào dòu zi"
30517
- }, bg = Object.keys(Ti).map((e) => ({
30522
+ }, jg = Object.keys(Ti).map((e) => ({
30518
30523
  zh: e,
30519
30524
  pinyin: Ti[e],
30520
30525
  probability: 2e-8,
@@ -30528,10 +30533,10 @@ function Mi(e, n) {
30528
30533
  function Ni(e) {
30529
30534
  e.probability < 1e-300 && (e.probability *= 1e300, e.decimal += 1);
30530
30535
  }
30531
- function jg(e) {
30536
+ function vg(e) {
30532
30537
  return e.priority === qn.Custom ? -(e.length * e.length * 100) : e.priority === qn.Surname ? -(e.length * e.length * 10) : 0;
30533
30538
  }
30534
- function vg(e, n) {
30539
+ function Ag(e, n) {
30535
30540
  const t = [];
30536
30541
  let i = e.length - 1, o = e[i];
30537
30542
  for (let l = n - 1; l >= 0; l--) {
@@ -30539,7 +30544,7 @@ function vg(e, n) {
30539
30544
  for (; o && o.index + o.length - 1 === l; ) {
30540
30545
  const h = o.index, u = {
30541
30546
  probability: o.probability * s.probability,
30542
- decimal: s.decimal + jg(o),
30547
+ decimal: s.decimal + vg(o),
30543
30548
  patterns: s.patterns,
30544
30549
  concatPattern: o
30545
30550
  };
@@ -30557,17 +30562,17 @@ function vg(e, n) {
30557
30562
  function Ri(e, n) {
30558
30563
  return e && e.count <= n.count ? e : n;
30559
30564
  }
30560
- function Ag(e) {
30565
+ function Zg(e) {
30561
30566
  return e.priority === qn.Custom ? -(e.length * e.length * 1e5) : e.priority === qn.Surname ? -(e.length * e.length * 100) : 1;
30562
30567
  }
30563
- function Zg(e, n) {
30568
+ function xg(e, n) {
30564
30569
  const t = [];
30565
30570
  let i = e.length - 1, o = e[i];
30566
30571
  for (let l = n - 1; l >= 0; l--) {
30567
30572
  const s = l + 1 >= n ? { count: 0, patterns: [] } : t[l + 1];
30568
30573
  for (; o && o.index + o.length - 1 === l; ) {
30569
30574
  const h = o.index, u = {
30570
- count: Ag(o) + s.count,
30575
+ count: Zg(o) + s.count,
30571
30576
  patterns: s.patterns,
30572
30577
  concatPattern: o
30573
30578
  };
@@ -30581,15 +30586,15 @@ function Zg(e, n) {
30581
30586
  }
30582
30587
  return t[0].patterns.reverse();
30583
30588
  }
30584
- function xg(e, n) {
30589
+ function Cg(e, n) {
30585
30590
  return !(n.index + n.length <= e.index || n.priority > e.priority || n.priority === e.priority && n.length > e.length);
30586
30591
  }
30587
- function Cg(e) {
30592
+ function Ig(e) {
30588
30593
  const n = [];
30589
30594
  for (let t = e.length - 1; t >= 0; ) {
30590
30595
  const { index: i } = e[t];
30591
30596
  let o = t - 1;
30592
- for (; o >= 0 && xg(e[t], e[o]); )
30597
+ for (; o >= 0 && Cg(e[t], e[o]); )
30593
30598
  o--;
30594
30599
  (o < 0 || e[o].index + e[o].length <= i) && n.push(e[t]), t = o;
30595
30600
  }
@@ -30604,7 +30609,7 @@ class Pi {
30604
30609
  this.children = /* @__PURE__ */ new Map(), this.fail = null, this.patterns = [], this.parent = n, this.prefix = t, this.key = i;
30605
30610
  }
30606
30611
  }
30607
- class Ig {
30612
+ class Wg {
30608
30613
  constructor() {
30609
30614
  this.dictMap = /* @__PURE__ */ new Map(), this.queues = [], this.root = new Pi(null);
30610
30615
  }
@@ -30691,34 +30696,34 @@ class Ig {
30691
30696
  }
30692
30697
  search(n, t, i = 2) {
30693
30698
  const o = this.match(n, t);
30694
- return i === 1 ? Cg(o) : i === 3 ? Zg(o, xn(n)) : vg(o, xn(n));
30699
+ return i === 1 ? Ig(o) : i === 3 ? xg(o, xn(n)) : Ag(o, xn(n));
30695
30700
  }
30696
30701
  }
30697
- const Wg = [
30702
+ const wg = [
30703
+ ...jg,
30698
30704
  ...bg,
30699
30705
  ...zg,
30700
30706
  ...qg,
30701
- ...yg,
30702
- ...dg,
30703
- ...fg
30704
- ], jl = new Ig();
30705
- jl.build(Wg);
30706
- const wg = new ti(), Sg = new ti(), Og = () => wg, Yg = () => Sg, kg = [];
30707
- function Kg() {
30708
- return kg;
30707
+ ...mg,
30708
+ ...yg
30709
+ ], jl = new Wg();
30710
+ jl.build(wg);
30711
+ const Sg = new ti(), Og = new ti(), Yg = () => Sg, kg = () => Og, Kg = [];
30712
+ function Vg() {
30713
+ return Kg;
30709
30714
  }
30710
30715
  const Ae = (e) => {
30711
30716
  const n = Vn.get(e);
30712
30717
  return n ? n.split(" ")[0] : e;
30713
- }, Vg = (e) => {
30714
- const n = [], t = Kg();
30718
+ }, Gg = (e) => {
30719
+ const n = [], t = Vg();
30715
30720
  for (let i = 0; i < e.length; i++) {
30716
30721
  const o = e[i], l = o.charCodeAt(0);
30717
30722
  t[l] ? n[i] = t[l] : n[i] = o;
30718
30723
  }
30719
30724
  return n.join("");
30720
- }, Gg = (e, n, t, i, o) => {
30721
- const l = o ? Vg(e) : e, s = jl.search(l, t, i);
30725
+ }, Xg = (e, n, t, i, o) => {
30726
+ const l = o ? Gg(e) : e, s = jl.search(l, t, i);
30722
30727
  let r = 0;
30723
30728
  const h = nt(e);
30724
30729
  for (let u = 0; u < h.length; ) {
@@ -30760,7 +30765,7 @@ const Ae = (e) => {
30760
30765
  }
30761
30766
  return { list: n, matches: s };
30762
30767
  }, le = (e) => e.replace(/(ā|á|ǎ|à)/g, "a").replace(/(ō|ó|ǒ|ò)/g, "o").replace(/(ē|é|ě|è)/g, "e").replace(/(ī|í|ǐ|ì)/g, "i").replace(/(ū|ú|ǔ|ù)/g, "u").replace(/(ǖ|ǘ|ǚ|ǜ)/g, "ü").replace(/(n̄|ń|ň|ǹ)/g, "n").replace(/(m̄|ḿ|m̌|m̀)/g, "m").replace(/(ê̄|ế|ê̌|ề)/g, "ê"), vl = (e, n = "off") => {
30763
- const t = Og();
30768
+ const t = Yg();
30764
30769
  let i = Vn.get(e) ? Vn.get(e).split(" ") : [];
30765
30770
  if (t.get(e))
30766
30771
  i = t.get(e).split(" ");
@@ -30769,7 +30774,7 @@ const Ae = (e) => {
30769
30774
  o && (i = [o].concat(i.filter((l) => l !== o)));
30770
30775
  }
30771
30776
  return i;
30772
- }, Xg = (e, n = "off") => {
30777
+ }, Jg = (e, n = "off") => {
30773
30778
  let t = vl(e, n);
30774
30779
  return t.length > 0 ? t.map((i) => ({
30775
30780
  origin: e,
@@ -30787,10 +30792,10 @@ const Ae = (e) => {
30787
30792
  }, Se = (e, n) => {
30788
30793
  const t = e.split(" "), i = [], o = [];
30789
30794
  for (let l of t)
30790
- for (let s of rg)
30795
+ for (let s of hg)
30791
30796
  if (l.startsWith(s)) {
30792
30797
  let r = l.slice(s.length);
30793
- hg.indexOf(s) !== -1 && ug.indexOf(r) !== -1 && (r = ag[r]), i.push(s), o.push(r);
30798
+ ug.indexOf(s) !== -1 && ag.indexOf(r) !== -1 && (r = gg[r]), i.push(s), o.push(r);
30794
30799
  break;
30795
30800
  }
30796
30801
  return n === "standard" && i.forEach((l, s) => {
@@ -30803,13 +30808,13 @@ const Ae = (e) => {
30803
30808
  }, xe = (e) => {
30804
30809
  const { final: n } = Se(e);
30805
30810
  let t = "", i = "", o = "";
30806
- return gg.indexOf(le(n)) !== -1 ? (t = n[0], i = n[1], o = n.slice(2)) : (i = n[0] || "", o = n.slice(1) || ""), { head: t, body: i, tail: o };
30811
+ return cg.indexOf(le(n)) !== -1 ? (t = n[0], i = n[1], o = n.slice(2)) : (i = n[0] || "", o = n.slice(1) || ""), { head: t, body: i, tail: o };
30807
30812
  }, se = (e) => {
30808
30813
  const n = /(ā|ō|ē|ī|ū|ǖ|n̄|m̄|ê̄)/, t = /(á|ó|é|í|ú|ǘ|ń|ḿ|ế)/, i = /(ǎ|ǒ|ě|ǐ|ǔ|ǚ|ň|m̌|ê̌)/, o = /(à|ò|è|ì|ù|ǜ|ǹ|m̀|ề)/, l = /(a|o|e|i|u|ü|ê)/, s = /(n|m)$/, r = [];
30809
30814
  return e.split(" ").forEach((u) => {
30810
30815
  n.test(u) ? r.push("1") : t.test(u) ? r.push("2") : i.test(u) ? r.push("3") : o.test(u) ? r.push("4") : l.test(u) || s.test(u) ? r.push("0") : r.push("");
30811
30816
  }), r.join(" ");
30812
- }, Jg = (e, n) => {
30817
+ }, Lg = (e, n) => {
30813
30818
  const t = le(e).split(" "), i = se(n).split(" "), o = [];
30814
30819
  return t.forEach((l, s) => {
30815
30820
  o.push(`${l}${i[s]}`);
@@ -30820,12 +30825,12 @@ const Ae = (e) => {
30820
30825
  t.push(n ? o[0] : o);
30821
30826
  }), t.join(" ");
30822
30827
  };
30823
- function Lg(e, n, t) {
30824
- if (pg.indexOf(e) === -1)
30828
+ function Hg(e, n, t) {
30829
+ if (fg.indexOf(e) === -1)
30825
30830
  return Ae(e);
30826
30831
  if (n === t && n && Ae(n) !== n)
30827
30832
  return le(Ae(e));
30828
- if (t && !mg[e].includes(t)) {
30833
+ if (t && !pg[e].includes(t)) {
30829
30834
  const i = Ae(t);
30830
30835
  if (i !== t) {
30831
30836
  const o = se(i), l = bl[e];
@@ -30835,16 +30840,16 @@ function Lg(e, n, t) {
30835
30840
  }
30836
30841
  }
30837
30842
  }
30838
- function Hg(e, n) {
30843
+ function Tg(e, n) {
30839
30844
  if (e === "了" && (!n || !Vn.get(n)))
30840
30845
  return "liǎo";
30841
30846
  }
30842
- function Tg(e, n) {
30847
+ function Mg(e, n) {
30843
30848
  if (e === "々")
30844
30849
  return !n || !Vn.get(n) ? "tóng" : Vn.get(n).split(" ")[0];
30845
30850
  }
30846
30851
  function Ei(e, n, t) {
30847
- return Tg(e, n) || Hg(e, n) || Lg(e, n, t) || Ae(e);
30852
+ return Mg(e, n) || Tg(e, n) || Hg(e, n, t) || Ae(e);
30848
30853
  }
30849
30854
  const Al = (e) => typeof e != "string" ? (console.error("The first param of pinyin is error: " + e + ' is not assignable to type "string".'), !1) : !0;
30850
30855
  function vt(e, n) {
@@ -30862,7 +30867,7 @@ const Zl = (e, n) => {
30862
30867
  return e.filter((i) => !i.delete);
30863
30868
  } else
30864
30869
  return e;
30865
- }, Ui = (e, n) => xn(e) === 1 && n.multiple ? Xg(e, n.surname) : !1, xl = (e, n) => {
30870
+ }, Ui = (e, n) => xn(e) === 1 && n.multiple ? Jg(e, n.surname) : !1, xl = (e, n) => {
30866
30871
  switch (n.pattern) {
30867
30872
  case "pinyin":
30868
30873
  break;
@@ -30913,7 +30918,7 @@ const Zl = (e, n) => {
30913
30918
  break;
30914
30919
  case "num": {
30915
30920
  e.forEach((t) => {
30916
- t.isZh && (t.result = Jg(t.result, t.originPinyin));
30921
+ t.isZh && (t.result = Lg(t.result, t.originPinyin));
30917
30922
  });
30918
30923
  break;
30919
30924
  }
@@ -30922,7 +30927,7 @@ const Zl = (e, n) => {
30922
30927
  n.v && e.forEach((t) => {
30923
30928
  t.isZh && (t.result = t.result.replace(/ü/g, typeof n.v == "string" ? n.v : "v"));
30924
30929
  });
30925
- }, Mg = (e, n, t) => {
30930
+ }, Ng = (e, n, t) => {
30926
30931
  if (n.multiple && xn(t) === 1) {
30927
30932
  let i = "";
30928
30933
  e = e.filter((o) => {
@@ -30949,9 +30954,9 @@ const Zl = (e, n) => {
30949
30954
  result: i.result
30950
30955
  };
30951
30956
  }) : e.map((i) => i.result).join(n.separator);
30952
- }, Ng = (e, n) => (n === !1 && e.forEach((t) => {
30957
+ }, Rg = (e, n) => (n === !1 && e.forEach((t) => {
30953
30958
  t.origin === "一" ? t.result = t.originPinyin = "yī" : t.origin === "不" && (t.result = t.originPinyin = "bù");
30954
- }), e), Rg = {
30959
+ }), e), Fg = {
30955
30960
  pattern: "pinyin",
30956
30961
  toneType: "symbol",
30957
30962
  type: "string",
@@ -30964,37 +30969,37 @@ const Zl = (e, n) => {
30964
30969
  toneSandhi: !0,
30965
30970
  segmentit: 2
30966
30971
  };
30967
- function Fg(e, n) {
30968
- if (n = Object.assign(Object.assign({}, Rg), n || {}), !Al(e))
30972
+ function Pg(e, n) {
30973
+ if (n = Object.assign(Object.assign({}, Fg), n || {}), !Al(e))
30969
30974
  return e;
30970
30975
  if (e === "")
30971
30976
  return n.type === "array" || n.type === "all" ? [] : "";
30972
30977
  n.surname === void 0 && (n.mode === "surname" ? n.surname = "all" : n.surname = "off"), n.type === "all" && (n.pattern = "pinyin"), n.pattern === "num" && (n.toneType = "none"), n.removeNonZh && (n.nonZh = "removed");
30973
- let i = Array(xn(e)), { list: o } = Gg(e, i, n.surname, n.segmentit, n.traditional);
30974
- return o = Ng(o, n.toneSandhi), o = Zl(o, n), Ui(e, n) && (o = Ui(e, n)), xl(o, n), Cl(o, n), Il(o, n), Mg(o, n, e);
30978
+ let i = Array(xn(e)), { list: o } = Xg(e, i, n.surname, n.segmentit, n.traditional);
30979
+ return o = Rg(o, n.toneSandhi), o = Zl(o, n), Ui(e, n) && (o = Ui(e, n)), xl(o, n), Cl(o, n), Il(o, n), Ng(o, n, e);
30975
30980
  }
30976
- const Pg = {
30981
+ const Eg = {
30977
30982
  pattern: "pinyin",
30978
30983
  toneType: "symbol",
30979
30984
  type: "string",
30980
30985
  v: !1,
30981
30986
  nonZh: "spaced"
30982
30987
  };
30983
- function Eg(e, n = Pg) {
30988
+ function Ug(e, n = Eg) {
30984
30989
  if (!Al(e))
30985
30990
  return [];
30986
30991
  if (e === "")
30987
30992
  return [];
30988
30993
  n.type === "all" && (n.pattern = "pinyin"), n.pattern === "num" && (n.toneType = "none"), n.removeNonZh && (n.nonZh = "removed");
30989
- let i = Ug(e);
30994
+ let i = Dg(e);
30990
30995
  i = Zl(i, n);
30991
- const o = Dg(i), l = [];
30996
+ const o = Bg(i), l = [];
30992
30997
  for (const s of o)
30993
- xl(s, n), Cl(s, n), Il(s, n), l.push(Bg(s, n));
30998
+ xl(s, n), Cl(s, n), Il(s, n), l.push(Qg(s, n));
30994
30999
  return l;
30995
31000
  }
30996
- const Ug = (e) => {
30997
- const n = Yg();
31001
+ const Dg = (e) => {
31002
+ const n = kg();
30998
31003
  return nt(e).map((t) => {
30999
31004
  const i = n.get(t) || Vn.get(t) || t;
31000
31005
  return {
@@ -31004,7 +31009,7 @@ const Ug = (e) => {
31004
31009
  originPinyin: i
31005
31010
  };
31006
31011
  });
31007
- }, Dg = (e) => e.map((n) => n.isZh ? n.result.includes(" ") ? n.result.split(" ").map((t) => ({
31012
+ }, Bg = (e) => e.map((n) => n.isZh ? n.result.includes(" ") ? n.result.split(" ").map((t) => ({
31008
31013
  origin: n.origin,
31009
31014
  result: t,
31010
31015
  isZh: !0,
@@ -31016,7 +31021,7 @@ const Ug = (e) => {
31016
31021
  isZh: !0,
31017
31022
  originPinyin: n.result
31018
31023
  }
31019
- ] : [n]), Bg = (e, n) => {
31024
+ ] : [n]), Qg = (e, n) => {
31020
31025
  if (n.type !== "all") {
31021
31026
  const i = /* @__PURE__ */ new Set();
31022
31027
  for (const l of e)
@@ -31042,7 +31047,7 @@ const Ug = (e) => {
31042
31047
  });
31043
31048
  }
31044
31049
  return t;
31045
- }, Qg = {
31050
+ }, _g = {
31046
31051
  separator: " ",
31047
31052
  format: "numToSymbol"
31048
31053
  }, Di = {
@@ -31059,15 +31064,15 @@ const Ug = (e) => {
31059
31064
  m: ["m", "m̄", "ḿ", "m̌", "m̀"],
31060
31065
  ê: ["ê", "ê̄", "ế", "ê̌", "ề"]
31061
31066
  };
31062
- function _g(e, n) {
31063
- n = Object.assign(Object.assign({}, Qg), n || {});
31067
+ function $g(e, n) {
31068
+ n = Object.assign(Object.assign({}, _g), n || {});
31064
31069
  const t = typeof e;
31065
31070
  return typeof e == "string" && (e = e.split(n.separator)), e = e.map((i) => {
31066
31071
  const o = n.format;
31067
- return o === "numToSymbol" ? $g(i) : o === "symbolToNum" ? nc(i) : o === "toneNone" ? ec(i) : i;
31072
+ return o === "numToSymbol" ? nc(i) : o === "symbolToNum" ? ec(i) : o === "toneNone" ? tc(i) : i;
31068
31073
  }), t === "string" ? e.join(n.separator) : e;
31069
31074
  }
31070
- function $g(e) {
31075
+ function nc(e) {
31071
31076
  let n = "";
31072
31077
  if (e.length > 2 && e.endsWith("r")) {
31073
31078
  const i = Number(e[e.length - 2]);
@@ -31082,7 +31087,7 @@ function $g(e) {
31082
31087
  } else
31083
31088
  return e + n;
31084
31089
  }
31085
- function nc(e) {
31090
+ function ec(e) {
31086
31091
  if (e.endsWith("r") && e.length > 1 && !/^[eēéěè]r$/.test(e)) {
31087
31092
  const n = e.slice(0, -1), t = se(n);
31088
31093
  if (t !== "" && t !== "0")
@@ -31090,7 +31095,7 @@ function nc(e) {
31090
31095
  }
31091
31096
  return `${le(e)}${se(e)}`;
31092
31097
  }
31093
- function ec(e) {
31098
+ function tc(e) {
31094
31099
  return le(e);
31095
31100
  }
31096
31101
  var Jt;
@@ -31098,22 +31103,22 @@ var Jt;
31098
31103
  e[e.AllSegment = 1] = "AllSegment", e[e.AllArray = 2] = "AllArray", e[e.AllString = 3] = "AllString", e[e.PinyinSegment = 4] = "PinyinSegment", e[e.PinyinArray = 5] = "PinyinArray", e[e.PinyinString = 6] = "PinyinString", e[e.ZhSegment = 7] = "ZhSegment", e[e.ZhArray = 8] = "ZhArray", e[e.ZhString = 9] = "ZhString";
31099
31104
  })(Jt || (Jt = {}));
31100
31105
  Jt.AllSegment;
31101
- const tc = { class: "lsh-header-content" }, ic = { class: "lsh-content-box" }, oc = {
31106
+ const ic = { class: "lsh-header-content" }, oc = { class: "lsh-content-box" }, lc = {
31102
31107
  key: 1,
31103
31108
  class: "lsh-text-box"
31104
- }, lc = {
31109
+ }, sc = {
31105
31110
  key: 0,
31106
31111
  style: { "margin-top": "24px" }
31107
- }, sc = { class: "lsh-text-box" }, rc = {
31112
+ }, rc = { class: "lsh-text-box" }, hc = {
31108
31113
  key: 0,
31109
31114
  class: "lsh-polyphonic-box"
31110
- }, hc = { class: "lsh-polyphonic-list" }, uc = { class: "lsh-polyphonic-char" }, ac = { class: "lsh-polyphonic-options" }, gc = ["onClick"], cc = { class: "lsh-manual-text-box" }, dc = { class: "lsh-manual-text-list" }, mc = ["onClick"], pc = { class: "lsh-manual-pinyin" }, fc = { class: "lsh-options-box" }, yc = {
31115
+ }, uc = { class: "lsh-polyphonic-list" }, ac = { class: "lsh-polyphonic-char" }, gc = { class: "lsh-polyphonic-options" }, cc = ["onClick"], dc = { class: "lsh-manual-text-box" }, mc = { class: "lsh-manual-text-list" }, pc = ["onClick"], fc = { class: "lsh-manual-pinyin" }, yc = { class: "lsh-options-box" }, qc = {
31111
31116
  class: "lsh-options",
31112
31117
  style: { width: "294px" }
31113
- }, qc = { class: "lsh-initials" }, zc = ["onClick"], bc = {
31118
+ }, zc = { class: "lsh-initials" }, bc = ["onClick"], jc = {
31114
31119
  class: "lsh-options",
31115
31120
  style: { flex: "1" }
31116
- }, jc = { class: "lsh-final-box" }, vc = { class: "lsh-final-list" }, Ac = ["onClick"], Zc = /* @__PURE__ */ $({
31121
+ }, vc = { class: "lsh-final-box" }, Ac = { class: "lsh-final-list" }, Zc = ["onClick"], xc = /* @__PURE__ */ $({
31117
31122
  __name: "mark-pinyin-modal",
31118
31123
  emits: ["confirm"],
31119
31124
  setup(e, { expose: n, emit: t }) {
@@ -31136,41 +31141,41 @@ const tc = { class: "lsh-header-content" }, ic = { class: "lsh-content-box" }, o
31136
31141
  }, c = () => {
31137
31142
  a();
31138
31143
  }, d = () => {
31139
- const v = r.value === "auto" ? H(g.autoPinyin) : K.value, m = o.value === 1 ? _g(v, { format: "numToSymbol" }) : v;
31140
- l.value = !1, i("confirm", m);
31144
+ const v = r.value === "auto" ? H(g.autoPinyin) : K.value, p = o.value === 1 ? $g(v, { format: "numToSymbol" }) : v;
31145
+ l.value = !1, i("confirm", p);
31141
31146
  }, f = (v) => {
31142
31147
  W.value.initial = v === W.value.initial ? "" : v;
31143
- }, p = (v) => {
31148
+ }, m = (v) => {
31144
31149
  W.value.final = v;
31145
31150
  }, y = (v) => {
31146
31151
  var Z, O;
31147
31152
  u.value = v;
31148
- const m = ((Z = g.manualPinyin[v]) == null ? void 0 : Z.final) ?? "";
31149
- h.value = ((O = he.find((q) => q.options.includes(m))) == null ? void 0 : O.value) ?? he[0].value;
31150
- }, z = (v, m) => {
31153
+ const p = ((Z = g.manualPinyin[v]) == null ? void 0 : Z.final) ?? "";
31154
+ h.value = ((O = he.find((q) => q.options.includes(p))) == null ? void 0 : O.value) ?? he[0].value;
31155
+ }, z = (v, p) => {
31151
31156
  const Z = g.autoPinyin.split(" ");
31152
- Z[v] = m, g.autoPinyin = Z.join(" ");
31157
+ Z[v] = p, g.autoPinyin = Z.join(" ");
31153
31158
  }, C = T(() => {
31154
31159
  var v;
31155
- return ((v = he.find((m) => m.value === h.value)) == null ? void 0 : v.options) || [];
31160
+ return ((v = he.find((p) => p.value === h.value)) == null ? void 0 : v.options) || [];
31156
31161
  }), S = T(() => r.value === "auto" ? !g.autoPinyin.length : g.manualPinyin.some((v) => !v.final)), W = T(
31157
31162
  () => g.manualPinyin[u.value]
31158
31163
  ), X = (v) => {
31159
- const m = ["0", "5"].includes(v.tone) ? "" : v.tone;
31160
- return `${v.initial}${v.final}${v.final ? m : ""}`;
31164
+ const p = ["0", "5"].includes(v.tone) ? "" : v.tone;
31165
+ return `${v.initial}${v.final}${v.final ? p : ""}`;
31161
31166
  }, K = T(() => r.value === "auto" ? g.autoPinyin : g.manualPinyin.map(X).join(" ")), V = (v) => v.replace(/ü/g, "v").replace(/[05]$/, ""), H = (v) => v.trim().split(/\s+/).map(V).join(" "), F = (v) => {
31162
31167
  try {
31163
- const m = Fg(v, {
31168
+ const p = Pg(v, {
31164
31169
  type: "all",
31165
31170
  toneType: "num",
31166
31171
  nonZh: "consecutive"
31167
- }), Z = Eg(v, {
31172
+ }), Z = Ug(v, {
31168
31173
  type: "array",
31169
31174
  toneType: "num",
31170
31175
  nonZh: "consecutive"
31171
31176
  });
31172
31177
  let O = 0;
31173
- g.autoPinyin = m.filter((q) => q.isZh && q.pinyin).map((q) => V(q.pinyin)).join(" "), g.pinyinOptions = m.reduce((q, I, b) => {
31178
+ g.autoPinyin = p.filter((q) => q.isZh && q.pinyin).map((q) => V(q.pinyin)).join(" "), g.pinyinOptions = p.reduce((q, I, b) => {
31174
31179
  if (!I.isZh || !I.pinyin) return q;
31175
31180
  const w = Array.from(
31176
31181
  /* @__PURE__ */ new Set([
@@ -31192,27 +31197,27 @@ const tc = { class: "lsh-header-content" }, ic = { class: "lsh-content-box" }, o
31192
31197
  };
31193
31198
  return n({
31194
31199
  open: (v) => {
31195
- g.text = v, g.autoPinyin = "", g.manualPinyin = Array.from(v, (m) => ({
31196
- text: m,
31200
+ g.text = v, g.autoPinyin = "", g.manualPinyin = Array.from(v, (p) => ({
31201
+ text: p,
31197
31202
  initial: "",
31198
31203
  tone: gi[4].value,
31199
31204
  final: ""
31200
31205
  })), u.value = 0, h.value = he[0].value, g.pinyinOptions = [], F(v), a();
31201
31206
  }
31202
- }), (v, m) => (Y(), _(j(Ye), {
31207
+ }), (v, p) => (Y(), _(j(Ye), {
31203
31208
  modelValue: l.value,
31204
- "onUpdate:modelValue": m[4] || (m[4] = (Z) => l.value = Z),
31209
+ "onUpdate:modelValue": p[4] || (p[4] = (Z) => l.value = Z),
31205
31210
  width: 800,
31206
31211
  "header-class": "lsh-modal-header"
31207
31212
  }, {
31208
31213
  header: N(() => [
31209
- A("div", tc, [
31210
- m[5] || (m[5] = A("span", { class: "lsh-title" }, "拼音标注助手", -1)),
31214
+ A("div", ic, [
31215
+ p[5] || (p[5] = A("span", { class: "lsh-title" }, "拼音标注助手", -1)),
31211
31216
  J(j(ct), {
31212
31217
  class: "lsh-radio-group",
31213
31218
  options: s,
31214
31219
  modelValue: r.value,
31215
- "onUpdate:modelValue": m[0] || (m[0] = (Z) => r.value = Z),
31220
+ "onUpdate:modelValue": p[0] || (p[0] = (Z) => r.value = Z),
31216
31221
  style: { "border-radius": "9px" }
31217
31222
  }, null, 8, ["modelValue"])
31218
31223
  ])
@@ -31222,7 +31227,7 @@ const tc = { class: "lsh-header-content" }, ic = { class: "lsh-content-box" }, o
31222
31227
  plain: "",
31223
31228
  onClick: c
31224
31229
  }, {
31225
- default: N(() => [...m[12] || (m[12] = [
31230
+ default: N(() => [...p[12] || (p[12] = [
31226
31231
  An("取消", -1)
31227
31232
  ])]),
31228
31233
  _: 1
@@ -31232,76 +31237,76 @@ const tc = { class: "lsh-header-content" }, ic = { class: "lsh-content-box" }, o
31232
31237
  onClick: d,
31233
31238
  disabled: S.value
31234
31239
  }, {
31235
- default: N(() => [...m[13] || (m[13] = [
31240
+ default: N(() => [...p[13] || (p[13] = [
31236
31241
  An(" 确认 ", -1)
31237
31242
  ])]),
31238
31243
  _: 1
31239
31244
  }, 8, ["disabled"])
31240
31245
  ]),
31241
31246
  default: N(() => [
31242
- A("div", ic, [
31247
+ A("div", oc, [
31243
31248
  A("div", null, [
31244
- m[6] || (m[6] = A("div", { class: "lsh-label" }, "拼音", -1)),
31249
+ p[6] || (p[6] = A("div", { class: "lsh-label" }, "拼音", -1)),
31245
31250
  r.value === "auto" ? Re((Y(), L("input", {
31246
31251
  key: 0,
31247
31252
  class: "lsh-text-box",
31248
- "onUpdate:modelValue": m[1] || (m[1] = (Z) => g.autoPinyin = Z)
31253
+ "onUpdate:modelValue": p[1] || (p[1] = (Z) => g.autoPinyin = Z)
31249
31254
  }, null, 512)), [
31250
31255
  [Fe, g.autoPinyin]
31251
- ]) : (Y(), L("div", oc, P(K.value), 1))
31256
+ ]) : (Y(), L("div", lc, P(K.value), 1))
31252
31257
  ]),
31253
- r.value === "auto" ? (Y(), L("div", lc, [
31254
- m[8] || (m[8] = A("div", { class: "lsh-label" }, "汉字", -1)),
31255
- A("div", sc, P(g.text), 1),
31256
- g.pinyinOptions.length ? (Y(), L("div", rc, [
31257
- m[7] || (m[7] = A("div", { class: "lsh-label" }, "多音字候选", -1)),
31258
- A("div", hc, [
31258
+ r.value === "auto" ? (Y(), L("div", sc, [
31259
+ p[8] || (p[8] = A("div", { class: "lsh-label" }, "汉字", -1)),
31260
+ A("div", rc, P(g.text), 1),
31261
+ g.pinyinOptions.length ? (Y(), L("div", hc, [
31262
+ p[7] || (p[7] = A("div", { class: "lsh-label" }, "多音字候选", -1)),
31263
+ A("div", uc, [
31259
31264
  (Y(!0), L(tn, null, gn(g.pinyinOptions, (Z) => (Y(), L("div", {
31260
31265
  class: "lsh-polyphonic-item",
31261
31266
  key: `${Z.text}-${Z.index}`
31262
31267
  }, [
31263
- A("span", uc, P(Z.text), 1),
31264
- A("div", ac, [
31268
+ A("span", ac, P(Z.text), 1),
31269
+ A("div", gc, [
31265
31270
  (Y(!0), L(tn, null, gn(Z.options, (O) => (Y(), L("div", {
31266
31271
  class: bn(["lsh-polyphonic-option", {
31267
31272
  active: O === g.autoPinyin.split(" ")[Z.index]
31268
31273
  }]),
31269
31274
  key: O,
31270
31275
  onClick: (q) => z(Z.index, O)
31271
- }, P(O), 11, gc))), 128))
31276
+ }, P(O), 11, cc))), 128))
31272
31277
  ])
31273
31278
  ]))), 128))
31274
31279
  ])
31275
31280
  ])) : yn("", !0)
31276
31281
  ])) : (Y(), L(tn, { key: 1 }, [
31277
- A("div", cc, [
31278
- m[9] || (m[9] = A("div", { class: "lsh-label" }, "汉字", -1)),
31279
- A("div", dc, [
31282
+ A("div", dc, [
31283
+ p[9] || (p[9] = A("div", { class: "lsh-label" }, "汉字", -1)),
31284
+ A("div", mc, [
31280
31285
  (Y(!0), L(tn, null, gn(g.manualPinyin, (Z, O) => (Y(), L("div", {
31281
31286
  class: bn(["lsh-manual-text-item", { active: O === u.value }]),
31282
31287
  key: `${Z.text}-${O}`,
31283
31288
  onClick: (q) => y(O)
31284
31289
  }, [
31285
31290
  A("span", null, P(Z.text), 1),
31286
- A("span", pc, P(X(Z) || "-"), 1)
31287
- ], 10, mc))), 128))
31291
+ A("span", fc, P(X(Z) || "-"), 1)
31292
+ ], 10, pc))), 128))
31288
31293
  ])
31289
31294
  ]),
31290
- A("div", fc, [
31291
- A("div", yc, [
31292
- m[10] || (m[10] = A("div", { class: "lsh-label" }, "声母", -1)),
31293
- A("div", qc, [
31295
+ A("div", yc, [
31296
+ A("div", qc, [
31297
+ p[10] || (p[10] = A("div", { class: "lsh-label" }, "声母", -1)),
31298
+ A("div", zc, [
31294
31299
  (Y(!0), L(tn, null, gn(j(lh), (Z) => (Y(), L("div", {
31295
31300
  class: bn(["lsh-initial-btn", {
31296
31301
  active: Z === W.value.initial
31297
31302
  }]),
31298
31303
  key: Z,
31299
31304
  onClick: (O) => f(Z)
31300
- }, P(Z), 11, zc))), 128))
31305
+ }, P(Z), 11, bc))), 128))
31301
31306
  ])
31302
31307
  ]),
31303
- A("div", bc, [
31304
- m[11] || (m[11] = A("div", { class: "lsh-label" }, "韵母", -1)),
31308
+ A("div", jc, [
31309
+ p[11] || (p[11] = A("div", { class: "lsh-label" }, "韵母", -1)),
31305
31310
  J(j(ct), {
31306
31311
  class: "lsh-radio-group-white",
31307
31312
  options: j(gi),
@@ -31311,13 +31316,13 @@ const tc = { class: "lsh-header-content" }, ic = { class: "lsh-content-box" }, o
31311
31316
  "active-backgound": "#fff",
31312
31317
  style: { width: "284px" },
31313
31318
  modelValue: W.value.tone,
31314
- "onUpdate:modelValue": m[2] || (m[2] = (Z) => W.value.tone = Z),
31319
+ "onUpdate:modelValue": p[2] || (p[2] = (Z) => W.value.tone = Z),
31315
31320
  "slider-style": {
31316
31321
  borderRadius: "10px",
31317
31322
  boxShadow: "0 1px 4px 0 rgba(0, 0, 0, 0.10)"
31318
31323
  }
31319
31324
  }, null, 8, ["options", "modelValue"]),
31320
- A("div", jc, [
31325
+ A("div", vc, [
31321
31326
  J(j(ct), {
31322
31327
  class: "lsh-radio-group-white",
31323
31328
  options: j(he),
@@ -31326,20 +31331,20 @@ const tc = { class: "lsh-header-content" }, ic = { class: "lsh-content-box" }, o
31326
31331
  background: "#F1F2F5",
31327
31332
  "active-backgound": "#fff",
31328
31333
  modelValue: h.value,
31329
- "onUpdate:modelValue": m[3] || (m[3] = (Z) => h.value = Z),
31334
+ "onUpdate:modelValue": p[3] || (p[3] = (Z) => h.value = Z),
31330
31335
  "slider-style": {
31331
31336
  borderRadius: "10px",
31332
31337
  boxShadow: "0 1px 4px 0 rgba(0, 0, 0, 0.10)"
31333
31338
  }
31334
31339
  }, null, 8, ["options", "modelValue"]),
31335
- A("div", vc, [
31340
+ A("div", Ac, [
31336
31341
  (Y(!0), L(tn, null, gn(C.value, (Z) => (Y(), L("div", {
31337
31342
  class: bn(["lsh-final-item", {
31338
31343
  active: Z === W.value.final
31339
31344
  }]),
31340
31345
  key: Z,
31341
- onClick: (O) => p(Z)
31342
- }, P(Z), 11, Ac))), 128))
31346
+ onClick: (O) => m(Z)
31347
+ }, P(Z), 11, Zc))), 128))
31343
31348
  ])
31344
31349
  ])
31345
31350
  ])
@@ -31350,7 +31355,7 @@ const tc = { class: "lsh-header-content" }, ic = { class: "lsh-content-box" }, o
31350
31355
  _: 1
31351
31356
  }, 8, ["modelValue"]));
31352
31357
  }
31353
- }), xc = /* @__PURE__ */ sn(Zc, [["__scopeId", "data-v-44be22ad"]]), Cc = { class: "lsh-content-box" }, Ic = /* @__PURE__ */ $({
31358
+ }), Cc = /* @__PURE__ */ sn(xc, [["__scopeId", "data-v-44be22ad"]]), Ic = { class: "lsh-content-box" }, Wc = /* @__PURE__ */ $({
31354
31359
  __name: "replace-text-modal",
31355
31360
  emits: ["confirm"],
31356
31361
  setup(e, { expose: n, emit: t }) {
@@ -31405,7 +31410,7 @@ const tc = { class: "lsh-header-content" }, ic = { class: "lsh-content-box" }, o
31405
31410
  }, 8, ["disabled"])
31406
31411
  ]),
31407
31412
  default: N(() => [
31408
- A("div", Cc, [
31413
+ A("div", Ic, [
31409
31414
  A("div", null, [
31410
31415
  a[4] || (a[4] = A("div", { class: "lsh-form-item-label" }, "原文", -1)),
31411
31416
  J(j(li), {
@@ -31427,7 +31432,7 @@ const tc = { class: "lsh-header-content" }, ic = { class: "lsh-content-box" }, o
31427
31432
  _: 1
31428
31433
  }, 8, ["modelValue"]));
31429
31434
  }
31430
- }), Wc = /* @__PURE__ */ sn(Ic, [["__scopeId", "data-v-7c709cca"]]), wc = { class: "lsh-language-list" }, Sc = /* @__PURE__ */ $({
31435
+ }), wc = /* @__PURE__ */ sn(Wc, [["__scopeId", "data-v-7c709cca"]]), Sc = { class: "lsh-language-list" }, Oc = /* @__PURE__ */ $({
31431
31436
  __name: "language-popover",
31432
31437
  props: /* @__PURE__ */ me({
31433
31438
  virtualRef: {},
@@ -31450,7 +31455,7 @@ const tc = { class: "lsh-header-content" }, ic = { class: "lsh-content-box" }, o
31450
31455
  placement: "top"
31451
31456
  }, {
31452
31457
  default: N(() => [
31453
- A("div", wc, [
31458
+ A("div", Sc, [
31454
31459
  (Y(!0), L(tn, null, gn(e.options, (s) => (Y(), _(j(on), {
31455
31460
  key: s.value,
31456
31461
  onClick: (r) => i("select", s.value)
@@ -31466,7 +31471,7 @@ const tc = { class: "lsh-header-content" }, ic = { class: "lsh-content-box" }, o
31466
31471
  _: 1
31467
31472
  }, 8, ["virtual-ref", "visible"]));
31468
31473
  }
31469
- }), Oc = /* @__PURE__ */ sn(Sc, [["__scopeId", "data-v-931bb88d"]]), Yc = { class: "lsh-number-list" }, kc = { class: "lsh-number-label" }, Kc = { class: "text-ellipsis" }, Vc = /* @__PURE__ */ $({
31474
+ }), Yc = /* @__PURE__ */ sn(Oc, [["__scopeId", "data-v-931bb88d"]]), kc = { class: "lsh-number-list" }, Kc = { class: "lsh-number-label" }, Vc = { class: "text-ellipsis" }, Gc = /* @__PURE__ */ $({
31470
31475
  __name: "number-reading-popover",
31471
31476
  props: /* @__PURE__ */ me({
31472
31477
  virtualRef: {},
@@ -31489,14 +31494,14 @@ const tc = { class: "lsh-header-content" }, ic = { class: "lsh-content-box" }, o
31489
31494
  placement: "top"
31490
31495
  }, {
31491
31496
  default: N(() => [
31492
- A("div", Yc, [
31497
+ A("div", kc, [
31493
31498
  (Y(!0), L(tn, null, gn(e.options, (s) => (Y(), _(j(on), {
31494
31499
  key: s.label,
31495
31500
  onClick: (r) => i("select", s.value)
31496
31501
  }, {
31497
31502
  default: N(() => [
31498
- A("span", kc, P(s.label) + ":", 1),
31499
- A("span", Kc, " " + P(s.value), 1)
31503
+ A("span", Kc, P(s.label) + ":", 1),
31504
+ A("span", Vc, " " + P(s.value), 1)
31500
31505
  ]),
31501
31506
  _: 2
31502
31507
  }, 1032, ["onClick"]))), 128))
@@ -31505,7 +31510,7 @@ const tc = { class: "lsh-header-content" }, ic = { class: "lsh-content-box" }, o
31505
31510
  _: 1
31506
31511
  }, 8, ["virtual-ref", "visible"]));
31507
31512
  }
31508
- }), Gc = /* @__PURE__ */ sn(Vc, [["__scopeId", "data-v-9fa42093"]]), Xc = { class: "lsh-stop-list" }, Jc = /* @__PURE__ */ $({
31513
+ }), Xc = /* @__PURE__ */ sn(Gc, [["__scopeId", "data-v-9fa42093"]]), Jc = { class: "lsh-stop-list" }, Lc = /* @__PURE__ */ $({
31509
31514
  __name: "stop-popover",
31510
31515
  props: /* @__PURE__ */ me({
31511
31516
  virtualRef: {}
@@ -31529,7 +31534,7 @@ const tc = { class: "lsh-header-content" }, ic = { class: "lsh-content-box" }, o
31529
31534
  placement: "top"
31530
31535
  }, {
31531
31536
  default: N(() => [
31532
- A("div", Xc, [
31537
+ A("div", Jc, [
31533
31538
  (Y(!0), L(tn, null, gn(j(oh), (h) => (Y(), _(j(on), {
31534
31539
  key: h.label,
31535
31540
  onClick: (u) => l(h.value)
@@ -31563,7 +31568,7 @@ const tc = { class: "lsh-header-content" }, ic = { class: "lsh-content-box" }, o
31563
31568
  _: 1
31564
31569
  }, 8, ["virtual-ref", "visible"]));
31565
31570
  }
31566
- }), Lc = /* @__PURE__ */ sn(Jc, [["__scopeId", "data-v-0d7c92b5"]]), Hc = { class: "lsh-content-box" }, Tc = { class: "lsh-tip-box" }, Mc = { class: "lsh-tip-text" }, Nc = /* @__PURE__ */ $({
31571
+ }), Hc = /* @__PURE__ */ sn(Lc, [["__scopeId", "data-v-0d7c92b5"]]), Tc = { class: "lsh-content-box" }, Mc = { class: "lsh-tip-box" }, Nc = { class: "lsh-tip-text" }, Rc = /* @__PURE__ */ $({
31567
31572
  __name: "upload-modal",
31568
31573
  emits: ["confirm"],
31569
31574
  setup(e, { expose: n, emit: t }) {
@@ -31577,11 +31582,11 @@ const tc = { class: "lsh-header-content" }, ic = { class: "lsh-content-box" }, o
31577
31582
  }, c = () => {
31578
31583
  u == null || u.abort(), a();
31579
31584
  }, d = async () => {
31580
- const p = r.value[0], y = l.value.parseDocument;
31581
- if (!(!p || !y)) {
31585
+ const m = r.value[0], y = l.value.parseDocument;
31586
+ if (!(!m || !y)) {
31582
31587
  h.value = !0, u == null || u.abort(), u = new AbortController();
31583
31588
  try {
31584
- const z = await y(p, u.signal);
31589
+ const z = await y(m, u.signal);
31585
31590
  i("confirm", z), a();
31586
31591
  } catch (z) {
31587
31592
  z instanceof Error && z.name === "AbortError" || o("error", "解析失败");
@@ -31594,7 +31599,7 @@ const tc = { class: "lsh-header-content" }, ic = { class: "lsh-content-box" }, o
31594
31599
  open: () => {
31595
31600
  a();
31596
31601
  }
31597
- }), et(() => u == null ? void 0 : u.abort()), (p, y) => (Y(), _(j(Ye), {
31602
+ }), et(() => u == null ? void 0 : u.abort()), (m, y) => (Y(), _(j(Ye), {
31598
31603
  modelValue: s.value,
31599
31604
  "onUpdate:modelValue": y[1] || (y[1] = (z) => s.value = z),
31600
31605
  width: 800,
@@ -31624,7 +31629,7 @@ const tc = { class: "lsh-header-content" }, ic = { class: "lsh-content-box" }, o
31624
31629
  }, 8, ["disabled", "loading"])
31625
31630
  ]),
31626
31631
  default: N(() => [
31627
- A("div", Hc, [
31632
+ A("div", Tc, [
31628
31633
  J(th, {
31629
31634
  class: "lsh-audio-upload",
31630
31635
  accept: [".txt", ".docx"],
@@ -31635,9 +31640,9 @@ const tc = { class: "lsh-header-content" }, ic = { class: "lsh-content-box" }, o
31635
31640
  modelValue: r.value,
31636
31641
  "onUpdate:modelValue": y[0] || (y[0] = (z) => r.value = z)
31637
31642
  }, null, 8, ["modelValue"]),
31638
- A("div", Tc, [
31643
+ A("div", Mc, [
31639
31644
  y[2] || (y[2] = A("div", { class: "lsh-title" }, "注意事项:", -1)),
31640
- (Y(), L(tn, null, gn(g, (z, C) => A("div", Mc, [
31645
+ (Y(), L(tn, null, gn(g, (z, C) => A("div", Nc, [
31641
31646
  A("span", null, P(C + 1) + ".", 1),
31642
31647
  A("span", null, P(z), 1)
31643
31648
  ])), 64))
@@ -31647,7 +31652,7 @@ const tc = { class: "lsh-header-content" }, ic = { class: "lsh-content-box" }, o
31647
31652
  _: 1
31648
31653
  }, 8, ["modelValue"]));
31649
31654
  }
31650
- }), Rc = /* @__PURE__ */ sn(Nc, [["__scopeId", "data-v-cdac4822"]]), Fc = { class: "lsh-more-list" }, Pc = /* @__PURE__ */ $({
31655
+ }), Fc = /* @__PURE__ */ sn(Rc, [["__scopeId", "data-v-cdac4822"]]), Pc = { class: "lsh-more-list" }, Ec = /* @__PURE__ */ $({
31651
31656
  __name: "editor-toolbar",
31652
31657
  setup(e) {
31653
31658
  const n = Mn(), { replaceContentWithText: t } = n, i = k(), o = k(), l = k(/* @__PURE__ */ new Map()), s = k(""), r = k(!1), h = Tt({
@@ -31656,7 +31661,7 @@ const tc = { class: "lsh-header-content" }, ic = { class: "lsh-content-box" }, o
31656
31661
  number: !1
31657
31662
  }), u = k(), g = k(), a = k(), c = k(), d = k(), {
31658
31663
  toolList: f,
31659
- languageOptions: p,
31664
+ languageOptions: m,
31660
31665
  numberToTextList: y,
31661
31666
  isToolDisabled: z,
31662
31667
  insertCustomStop: C,
@@ -31687,7 +31692,7 @@ const tc = { class: "lsh-header-content" }, ic = { class: "lsh-content-box" }, o
31687
31692
  return (b = a.value) == null ? void 0 : b.open();
31688
31693
  }
31689
31694
  }
31690
- }), { visibleList: K, hiddenList: V } = Pa({
31695
+ }), { visibleList: K, hiddenList: V } = Ea({
31691
31696
  list: f,
31692
31697
  toolbarRef: i,
31693
31698
  measureRef: o
@@ -31702,7 +31707,7 @@ const tc = { class: "lsh-header-content" }, ic = { class: "lsh-content-box" }, o
31702
31707
  ]), v = (b) => {
31703
31708
  var w;
31704
31709
  z(b) || ((w = b.onClick) == null || w.call(b), s.value = b.tool.type);
31705
- }, m = (b) => {
31710
+ }, p = (b) => {
31706
31711
  v(b), F.has(b.tool.type) || (r.value = !1);
31707
31712
  }, Z = (b) => {
31708
31713
  C(b), h.customStop = !1;
@@ -31755,7 +31760,7 @@ const tc = { class: "lsh-header-content" }, ic = { class: "lsh-content-box" }, o
31755
31760
  }, 8, ["plain"])
31756
31761
  ]),
31757
31762
  default: N(() => [
31758
- A("div", Fc, [
31763
+ A("div", Pc, [
31759
31764
  (Y(!0), L(tn, null, gn(j(V), (x) => (Y(), _(jt, {
31760
31765
  key: x.tool.label,
31761
31766
  ref_for: !0,
@@ -31764,7 +31769,7 @@ const tc = { class: "lsh-header-content" }, ic = { class: "lsh-content-box" }, o
31764
31769
  item: x,
31765
31770
  plain: I(x.tool.type),
31766
31771
  disabled: j(z)(x),
31767
- onClick: (G) => m(x)
31772
+ onClick: (G) => p(x)
31768
31773
  }, null, 8, ["item", "plain", "disabled", "onClick"]))), 128))
31769
31774
  ])
31770
31775
  ]),
@@ -31793,54 +31798,54 @@ const tc = { class: "lsh-header-content" }, ic = { class: "lsh-content-box" }, o
31793
31798
  _: 1
31794
31799
  })
31795
31800
  ], 512),
31796
- J(Lc, {
31801
+ J(Hc, {
31797
31802
  visible: h.customStop,
31798
31803
  "onUpdate:visible": w[1] || (w[1] = (x) => h.customStop = x),
31799
31804
  "virtual-ref": l.value.get(j(M).customStop.type),
31800
31805
  onSelect: Z
31801
31806
  }, null, 8, ["visible", "virtual-ref"]),
31802
- J(Oc, {
31807
+ J(Yc, {
31803
31808
  visible: h.language,
31804
31809
  "onUpdate:visible": w[2] || (w[2] = (x) => h.language = x),
31805
31810
  "virtual-ref": l.value.get(j(M).language.type),
31806
- options: j(p),
31811
+ options: j(m),
31807
31812
  onSelect: O
31808
31813
  }, null, 8, ["visible", "virtual-ref", "options"]),
31809
- J(Gc, {
31814
+ J(Xc, {
31810
31815
  visible: h.number,
31811
31816
  "onUpdate:visible": w[3] || (w[3] = (x) => h.number = x),
31812
31817
  "virtual-ref": l.value.get(j(M).number.type),
31813
31818
  options: j(y),
31814
31819
  onSelect: q
31815
31820
  }, null, 8, ["visible", "virtual-ref", "options"]),
31816
- J(Wc, {
31821
+ J(wc, {
31817
31822
  ref_key: "replaceTextModalRef",
31818
31823
  ref: u,
31819
31824
  onConfirm: j(W)
31820
31825
  }, null, 8, ["onConfirm"]),
31821
- J(xc, {
31826
+ J(Cc, {
31822
31827
  ref_key: "markPinyinModalRef",
31823
31828
  ref: g,
31824
31829
  onConfirm: j(X)
31825
31830
  }, null, 8, ["onConfirm"]),
31826
- J(Rc, {
31831
+ J(Fc, {
31827
31832
  ref_key: "uploadModalRef",
31828
31833
  ref: a,
31829
31834
  onConfirm: j(t)
31830
31835
  }, null, 8, ["onConfirm"]),
31831
- J(ig, {
31836
+ J(og, {
31832
31837
  ref_key: "formulaModalRef",
31833
31838
  ref: c,
31834
31839
  onConfirm: j(W)
31835
31840
  }, null, 8, ["onConfirm"]),
31836
- J(Ha, {
31841
+ J(Ta, {
31837
31842
  ref_key: "aiRewriteModalRef",
31838
31843
  ref: d,
31839
31844
  onConfirm: j(t)
31840
31845
  }, null, 8, ["onConfirm"])
31841
31846
  ], 512));
31842
31847
  }
31843
- }), Ec = /* @__PURE__ */ sn(Pc, [["__scopeId", "data-v-ef10ee9b"]]), Uc = { class: "lsh-editor-box" }, Dc = { class: "lsh-top" }, Bc = ["title"], Qc = { class: "lsh-middle" }, _c = { class: "lsh-bottom" }, $c = /* @__PURE__ */ $({
31848
+ }), Uc = /* @__PURE__ */ sn(Ec, [["__scopeId", "data-v-ef10ee9b"]]), Dc = { class: "lsh-editor-box" }, Bc = { class: "lsh-top" }, Qc = ["title"], _c = { class: "lsh-middle" }, $c = { class: "lsh-bottom" }, nd = /* @__PURE__ */ $({
31844
31849
  __name: "index",
31845
31850
  props: {
31846
31851
  modelValue: { default: ut },
@@ -31894,8 +31899,12 @@ const tc = { class: "lsh-header-content" }, ic = { class: "lsh-content-box" }, o
31894
31899
  replaceText: (a) => {
31895
31900
  var c;
31896
31901
  return (c = s.value) == null ? void 0 : c.replaceText(a);
31902
+ },
31903
+ handleChangeVoice: (a, c) => {
31904
+ var d;
31905
+ return ((d = s.value) == null ? void 0 : d.handleChangeVoice(a, c)) ?? Promise.resolve(!1);
31897
31906
  }
31898
- }), (a, c) => (Y(), _(j(va), {
31907
+ }), (a, c) => (Y(), _(j(Aa), {
31899
31908
  ref_key: "rootRef",
31900
31909
  ref: s,
31901
31910
  "initial-content": i.modelValue,
@@ -31911,7 +31920,7 @@ const tc = { class: "lsh-header-content" }, ic = { class: "lsh-content-box" }, o
31911
31920
  onReady: u
31912
31921
  }, {
31913
31922
  default: N(() => {
31914
- var d, f, p, y, z, C, S;
31923
+ var d, f, m, y, z, C, S;
31915
31924
  return [
31916
31925
  A("div", {
31917
31926
  class: bn([
@@ -31922,12 +31931,12 @@ const tc = { class: "lsh-header-content" }, ic = { class: "lsh-content-box" }, o
31922
31931
  }
31923
31932
  ])
31924
31933
  }, [
31925
- A("div", Uc, [
31926
- A("div", Dc, [
31934
+ A("div", Dc, [
31935
+ A("div", Bc, [
31927
31936
  wn(a.$slots, "toolbar-before", {
31928
31937
  editor: (d = s.value) == null ? void 0 : d.editor
31929
31938
  }, void 0, !0),
31930
- J(Ec),
31939
+ J(Uc),
31931
31940
  wn(a.$slots, "toolbar-after", {
31932
31941
  editor: (f = s.value) == null ? void 0 : f.editor
31933
31942
  }, void 0, !0),
@@ -31942,20 +31951,20 @@ const tc = { class: "lsh-header-content" }, ic = { class: "lsh-content-box" }, o
31942
31951
  name: `editor-fullscreen-${l.value ? "shrink" : "expand"}`,
31943
31952
  size: "20"
31944
31953
  }, null, 8, ["name"])
31945
- ], 8, Bc)) : yn("", !0)
31954
+ ], 8, Qc)) : yn("", !0)
31946
31955
  ]),
31947
- A("div", Qc, [
31948
- J(j(eu), { class: "editor-shell" }),
31956
+ A("div", _c, [
31957
+ J(j(tu), { class: "editor-shell" }),
31949
31958
  wn(a.$slots, "editor-after", {
31950
- editor: (p = s.value) == null ? void 0 : p.editor
31959
+ editor: (m = s.value) == null ? void 0 : m.editor
31951
31960
  }, void 0, !0)
31952
31961
  ]),
31953
- A("div", _c, [
31962
+ A("div", $c, [
31954
31963
  wn(a.$slots, "footer-before", {
31955
31964
  editor: (y = s.value) == null ? void 0 : y.editor,
31956
31965
  textLength: ((z = s.value) == null ? void 0 : z.textLength) ?? 0
31957
31966
  }, void 0, !0),
31958
- J(Fa),
31967
+ J(Pa),
31959
31968
  wn(a.$slots, "footer-after", {
31960
31969
  editor: (C = s.value) == null ? void 0 : C.editor,
31961
31970
  textLength: ((S = s.value) == null ? void 0 : S.textLength) ?? 0
@@ -31968,7 +31977,7 @@ const tc = { class: "lsh-header-content" }, ic = { class: "lsh-content-box" }, o
31968
31977
  _: 3
31969
31978
  }, 8, ["initial-content", "text-limit", "voice-version", "placeholder", "disabled", "features", "services", "get-preview-params", "show-selection-menu"]));
31970
31979
  }
31971
- }), hd = /* @__PURE__ */ sn($c, [["__scopeId", "data-v-09118d0a"]]);
31980
+ }), hd = /* @__PURE__ */ sn(nd, [["__scopeId", "data-v-139882dc"]]);
31972
31981
  export {
31973
31982
  fe as CustomTagName,
31974
31983
  on as CxButton,
@@ -31982,18 +31991,18 @@ export {
31982
31991
  md as StopOptions,
31983
31992
  hn as SvgIcon,
31984
31993
  pd as ToolConfig,
31985
- Ha as TtsAiRewriteModal,
31986
- eu as TtsEditorContent,
31987
- Fa as TtsEditorFooter,
31988
- va as TtsEditorRoot,
31989
- Ec as TtsEditorToolbar,
31990
- ig as TtsFormulaModal,
31991
- xc as TtsMarkPinyinModal,
31992
- Wc as TtsReplaceTextModal,
31994
+ Ta as TtsAiRewriteModal,
31995
+ tu as TtsEditorContent,
31996
+ Pa as TtsEditorFooter,
31997
+ Aa as TtsEditorRoot,
31998
+ Uc as TtsEditorToolbar,
31999
+ og as TtsFormulaModal,
32000
+ Cc as TtsMarkPinyinModal,
32001
+ wc as TtsReplaceTextModal,
31993
32002
  hd as TtsRichTextEditor,
31994
- ja as TtsSelectionMenu,
32003
+ va as TtsSelectionMenu,
31995
32004
  gh as TtsTagNodeView,
31996
- Rc as TtsUploadModal,
32005
+ Fc as TtsUploadModal,
31997
32006
  fd as allToolTypes,
31998
32007
  Wl as convertToTtsFormat,
31999
32008
  dh as createCustomTagNode,
@@ -32012,5 +32021,5 @@ export {
32012
32021
  Mn as useEditorContext,
32013
32022
  Ch as useEditorProvider,
32014
32023
  xh as useRichTextEditor,
32015
- rd as useVoiceChangeConfirm
32024
+ nu as useVoiceChangeConfirm
32016
32025
  };