@sqsoffice/slide 0.0.0-stage → 0.1.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/LICENSE +202 -0
- package/README.md +81 -2
- package/dist/THIRD-PARTY-NOTICES.txt +19871 -0
- package/dist/api-CLyi4j4N.js +4030 -0
- package/dist/api.js +1 -0
- package/dist/assets/engine/files-worker.js +1 -0
- package/dist/assets/engine/host-artifact-jgAXg8CH.js +1 -0
- package/dist/assets/engine/host-load-wasm-DyYR5qIL.js +1 -0
- package/dist/assets/engine/host-manifest.json +42 -0
- package/dist/assets/engine/host-pdf-import-BOPMPpUS.js +1 -0
- package/dist/assets/engine/host.js +1 -0
- package/dist/assets/engine/manifest.json +66 -0
- package/dist/assets/engine/office_web.js +1491 -0
- package/dist/assets/engine/office_web_bg.wasm +4 -0
- package/dist/assets/engine/worker.js +1 -0
- package/dist/assets/fonts/source-han-sans/2.005/LICENSE.txt +96 -0
- package/dist/assets/fonts/source-han-sans/2.005/SourceHanSansCN-Bold.otf +0 -0
- package/dist/assets/fonts/source-han-sans/2.005/SourceHanSansCN-Regular.otf +0 -0
- package/dist/assets/fonts/source-han-sans/2.005/manifest.json +20 -0
- package/dist/index.js +835 -0
- package/dist/package-manifest.json +181 -0
- package/dist/style.css +2 -0
- package/dist/types/app/lib/automation/protocol.d.ts +25 -0
- package/dist/types/app/lib/engine/client.d.ts +129 -0
- package/dist/types/app/lib/engine/docx.d.ts +67 -0
- package/dist/types/app/lib/engine/grid.d.ts +330 -0
- package/dist/types/app/lib/engine/image.d.ts +15 -0
- package/dist/types/app/lib/engine/markdown.d.ts +220 -0
- package/dist/types/app/lib/engine/pdf-import.d.ts +18 -0
- package/dist/types/app/lib/engine/pdf-ocr.d.ts +70 -0
- package/dist/types/app/lib/engine/pdf-output.d.ts +22 -0
- package/dist/types/app/lib/engine/pdf.d.ts +191 -0
- package/dist/types/app/lib/engine/presentation-clipboard.d.ts +26 -0
- package/dist/types/app/lib/engine/presentation-media.d.ts +156 -0
- package/dist/types/app/lib/engine/presentation.d.ts +145 -0
- package/dist/types/app/lib/engine/printing.d.ts +91 -0
- package/dist/types/app/lib/engine/protocol.d.ts +233 -0
- package/dist/types/app/lib/engine/script.d.ts +46 -0
- package/dist/types/app/lib/engine/sheet-clipboard.d.ts +42 -0
- package/dist/types/app/lib/engine/sheet-validation.d.ts +19 -0
- package/dist/types/app/lib/engine/view.d.ts +186 -0
- package/dist/types/app/lib/files/session.d.ts +114 -0
- package/dist/types/app/lib/files/storage.d.ts +20 -0
- package/dist/types/packages/slide/api.d.ts +4 -0
- package/dist/types/packages/slide/index.d.ts +5 -0
- package/dist/types/sdk/types.d.ts +59 -0
- package/package.json +40 -3
|
@@ -0,0 +1,4030 @@
|
|
|
1
|
+
// node_modules/@vue/shared/dist/shared.esm-bundler.js
|
|
2
|
+
// @__NO_SIDE_EFFECTS__
|
|
3
|
+
function e(e) {
|
|
4
|
+
let t = /* @__PURE__ */ Object.create(null);
|
|
5
|
+
for (let n of e.split(",")) t[n] = 1;
|
|
6
|
+
return (e) => e in t;
|
|
7
|
+
}
|
|
8
|
+
var t = {}, n = [], r = () => {}, i = () => !1, a = (e) => e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && (e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97), o = (e) => e.startsWith("onUpdate:"), s = Object.assign, c = (e, t) => {
|
|
9
|
+
let n = e.indexOf(t);
|
|
10
|
+
n > -1 && e.splice(n, 1);
|
|
11
|
+
}, l = Object.prototype.hasOwnProperty, u = (e, t) => l.call(e, t), d = Array.isArray, f = (e) => x(e) === "[object Map]", p = (e) => x(e) === "[object Set]", m = (e) => x(e) === "[object Date]", h = (e) => typeof e == "function", g = (e) => typeof e == "string", _ = (e) => typeof e == "symbol", v = (e) => typeof e == "object" && !!e, y = (e) => (v(e) || h(e)) && h(e.then) && h(e.catch), b = Object.prototype.toString, x = (e) => b.call(e), S = (e) => x(e).slice(8, -1), C = (e) => x(e) === "[object Object]", w = (e) => g(e) && e !== "NaN" && e[0] !== "-" && "" + parseInt(e, 10) === e, ee = /* @__PURE__ */ e(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"), te = (e) => {
|
|
12
|
+
let t = /* @__PURE__ */ Object.create(null);
|
|
13
|
+
return ((n) => t[n] || (t[n] = e(n)));
|
|
14
|
+
}, ne = /-\w/g, T = te((e) => e.replace(ne, (e) => e.slice(1).toUpperCase())), re = /\B([A-Z])/g, E = te((e) => e.replace(re, "-$1").toLowerCase()), ie = te((e) => e.charAt(0).toUpperCase() + e.slice(1)), ae = te((e) => e ? `on${ie(e)}` : ""), D = (e, t) => !Object.is(e, t), oe = (e, ...t) => {
|
|
15
|
+
for (let n = 0; n < e.length; n++) e[n](...t);
|
|
16
|
+
}, O = (e, t, n, r = !1) => {
|
|
17
|
+
Object.defineProperty(e, t, {
|
|
18
|
+
configurable: !0,
|
|
19
|
+
enumerable: !1,
|
|
20
|
+
writable: r,
|
|
21
|
+
value: n
|
|
22
|
+
});
|
|
23
|
+
}, se = (e) => {
|
|
24
|
+
let t = parseFloat(e);
|
|
25
|
+
return isNaN(t) ? e : t;
|
|
26
|
+
}, ce, le = () => ce ||= typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {};
|
|
27
|
+
function ue(e) {
|
|
28
|
+
if (d(e)) {
|
|
29
|
+
let t = {};
|
|
30
|
+
for (let n = 0; n < e.length; n++) {
|
|
31
|
+
let r = e[n], i = g(r) ? me(r) : ue(r);
|
|
32
|
+
if (i) for (let e in i) t[e] = i[e];
|
|
33
|
+
}
|
|
34
|
+
return t;
|
|
35
|
+
}
|
|
36
|
+
if (g(e) || v(e)) return e;
|
|
37
|
+
}
|
|
38
|
+
var de = /;(?![^(]*\))/g, fe = /:([^]+)/, pe = /"(?:[^"\\]|\\[^])*"|'(?:[^'\\]|\\[^])*'|\\[^]|\/\*[^]*?\*\//g;
|
|
39
|
+
function me(e) {
|
|
40
|
+
let t = {};
|
|
41
|
+
return e.replace(pe, (e) => e.startsWith("/*") ? "" : e).split(de).forEach((e) => {
|
|
42
|
+
if (e) {
|
|
43
|
+
let n = e.split(fe);
|
|
44
|
+
n.length > 1 && (t[n[0].trim()] = n[1].trim());
|
|
45
|
+
}
|
|
46
|
+
}), t;
|
|
47
|
+
}
|
|
48
|
+
function k(e) {
|
|
49
|
+
let t = "";
|
|
50
|
+
if (g(e)) t = e;
|
|
51
|
+
else if (d(e)) for (let n = 0; n < e.length; n++) {
|
|
52
|
+
let r = k(e[n]);
|
|
53
|
+
r && (t += r + " ");
|
|
54
|
+
}
|
|
55
|
+
else if (v(e)) for (let n in e) e[n] && (t += n + " ");
|
|
56
|
+
return t.trim();
|
|
57
|
+
}
|
|
58
|
+
var he = /* @__PURE__ */ e("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,playsinline,readonly");
|
|
59
|
+
function ge(e) {
|
|
60
|
+
return !!e || e === "";
|
|
61
|
+
}
|
|
62
|
+
function _e(e, t, n) {
|
|
63
|
+
if (e.length !== t.length) return !1;
|
|
64
|
+
let r = !0;
|
|
65
|
+
for (let i = 0; r && i < e.length; i++) r = xe(e[i], t[i], n);
|
|
66
|
+
return r;
|
|
67
|
+
}
|
|
68
|
+
function ve(e, t, n) {
|
|
69
|
+
if (e.size !== t.size) return !1;
|
|
70
|
+
let r = Array.from(t), i = new Uint8Array(r.length);
|
|
71
|
+
for (let t of e) {
|
|
72
|
+
let e = -1;
|
|
73
|
+
for (let a = 0; a < r.length; a++) if (!i[a] && xe(t, r[a], n)) {
|
|
74
|
+
e = a;
|
|
75
|
+
break;
|
|
76
|
+
}
|
|
77
|
+
if (e < 0) return !1;
|
|
78
|
+
i[e] = 1;
|
|
79
|
+
}
|
|
80
|
+
return !0;
|
|
81
|
+
}
|
|
82
|
+
function ye(e, t, n) {
|
|
83
|
+
let r = f(e), i = f(t);
|
|
84
|
+
if (r || i || (r = p(e), i = p(t), r || i)) return r && i ? ve(e, t, n) : !1;
|
|
85
|
+
if (Object.keys(e).length !== Object.keys(t).length) return !1;
|
|
86
|
+
for (let r in e) {
|
|
87
|
+
let i = e.hasOwnProperty(r), a = t.hasOwnProperty(r);
|
|
88
|
+
if (i && !a || !i && a || !xe(e[r], t[r], n)) return !1;
|
|
89
|
+
}
|
|
90
|
+
return String(e) === String(t);
|
|
91
|
+
}
|
|
92
|
+
function be(e, t, n, r) {
|
|
93
|
+
n ||= [/* @__PURE__ */ new Map(), /* @__PURE__ */ new Map()];
|
|
94
|
+
let [i, a] = n;
|
|
95
|
+
if (i.has(e) || a.has(t)) return i.get(e) === t && a.get(t) === e;
|
|
96
|
+
i.set(e, t), a.set(t, e);
|
|
97
|
+
let o = r(e, t, n);
|
|
98
|
+
return i.delete(e), a.delete(t), o;
|
|
99
|
+
}
|
|
100
|
+
function xe(e, t, n) {
|
|
101
|
+
if (e === t) return !0;
|
|
102
|
+
let r = m(e), i = m(t);
|
|
103
|
+
return r || i ? r && i ? e.getTime() === t.getTime() : !1 : (r = _(e), i = _(t), r || i ? e === t : (r = d(e), i = d(t), r || i ? r && i ? be(e, t, n, _e) : !1 : (r = v(e), i = v(t), r || i ? !r || !i ? !1 : be(e, t, n, ye) : String(e) === String(t))));
|
|
104
|
+
}
|
|
105
|
+
var Se = (e) => !!(e && e.__v_isRef === !0), Ce = (e) => g(e) ? e : e == null ? "" : d(e) || v(e) && (e.toString === b || !h(e.toString)) ? Se(e) ? Ce(e.value) : JSON.stringify(e, we, 2) : String(e), we = (e, t) => Se(t) ? we(e, t.value) : f(t) ? { [`Map(${t.size})`]: [...t.entries()].reduce((e, [t, n], r) => (e[Te(t, r) + " =>"] = n, e), {}) } : p(t) ? { [`Set(${t.size})`]: [...t.values()].map((e) => Te(e)) } : _(t) ? Te(t) : v(t) && !d(t) && !C(t) ? String(t) : t, Te = (e, t = "") => _(e) ? `Symbol(${e.description ?? t})` : e, A, Ee = class {
|
|
106
|
+
constructor(e = !1) {
|
|
107
|
+
this.detached = e, this._active = !0, this._on = 0, this.effects = [], this.cleanups = [], this._isPaused = !1, this._warnOnRun = !0, this.__v_skip = !0, !e && A && (A.active ? (this.parent = A, this.index = (A.scopes || (A.scopes = [])).push(this) - 1) : (this._active = !1, this._warnOnRun = !1));
|
|
108
|
+
}
|
|
109
|
+
get active() {
|
|
110
|
+
return this._active;
|
|
111
|
+
}
|
|
112
|
+
pause() {
|
|
113
|
+
if (this._active) {
|
|
114
|
+
this._isPaused = !0;
|
|
115
|
+
let e, t;
|
|
116
|
+
if (this.scopes) {
|
|
117
|
+
let n = this.scopes.slice();
|
|
118
|
+
for (e = 0, t = n.length; e < t; e++) n[e].pause();
|
|
119
|
+
}
|
|
120
|
+
for (e = 0, t = this.effects.length; e < t; e++) this.effects[e].pause();
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
resume() {
|
|
124
|
+
if (this._active && this._isPaused) {
|
|
125
|
+
this._isPaused = !1;
|
|
126
|
+
let e, t;
|
|
127
|
+
if (this.scopes) {
|
|
128
|
+
let n = this.scopes.slice();
|
|
129
|
+
for (e = 0, t = n.length; e < t; e++) n[e].resume();
|
|
130
|
+
}
|
|
131
|
+
let n = this.effects.slice();
|
|
132
|
+
for (e = 0, t = n.length; e < t; e++) n[e].resume();
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
run(e) {
|
|
136
|
+
if (this._active) {
|
|
137
|
+
let t = A;
|
|
138
|
+
try {
|
|
139
|
+
return A = this, e();
|
|
140
|
+
} finally {
|
|
141
|
+
A = t;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
on() {
|
|
146
|
+
++this._on === 1 && (this.prevScope = A, A = this);
|
|
147
|
+
}
|
|
148
|
+
off() {
|
|
149
|
+
if (this._on > 0 && --this._on === 0) {
|
|
150
|
+
if (A === this) A = this.prevScope;
|
|
151
|
+
else {
|
|
152
|
+
let e = A;
|
|
153
|
+
for (; e;) {
|
|
154
|
+
if (e.prevScope === this) {
|
|
155
|
+
e.prevScope = this.prevScope;
|
|
156
|
+
break;
|
|
157
|
+
}
|
|
158
|
+
e = e.prevScope;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
this.prevScope = void 0;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
stop(e) {
|
|
165
|
+
if (this._active) {
|
|
166
|
+
this._active = !1;
|
|
167
|
+
let t, n;
|
|
168
|
+
for (t = 0, n = this.effects.length; t < n; t++) this.effects[t].stop();
|
|
169
|
+
for (this.effects.length = 0, t = 0, n = this.cleanups.length; t < n; t++) this.cleanups[t]();
|
|
170
|
+
if (this.cleanups.length = 0, this.scopes) {
|
|
171
|
+
let e = this.scopes.slice();
|
|
172
|
+
for (t = 0, n = e.length; t < n; t++) e[t].stop(!0);
|
|
173
|
+
this.scopes.length = 0;
|
|
174
|
+
}
|
|
175
|
+
if (!this.detached && this.parent && !e) {
|
|
176
|
+
let e = this.parent.scopes.pop();
|
|
177
|
+
e && e !== this && (this.parent.scopes[this.index] = e, e.index = this.index);
|
|
178
|
+
}
|
|
179
|
+
this.parent = void 0;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
};
|
|
183
|
+
function De() {
|
|
184
|
+
return A;
|
|
185
|
+
}
|
|
186
|
+
var j, Oe = /* @__PURE__ */ new WeakSet(), ke = class {
|
|
187
|
+
constructor(e) {
|
|
188
|
+
this.fn = e, this.deps = void 0, this.depsTail = void 0, this.flags = 5, this.next = void 0, this.cleanup = void 0, this.scheduler = void 0, A && (A.active ? A.effects.push(this) : this.flags &= -2);
|
|
189
|
+
}
|
|
190
|
+
pause() {
|
|
191
|
+
this.flags |= 64;
|
|
192
|
+
}
|
|
193
|
+
resume() {
|
|
194
|
+
this.flags & 64 && (this.flags &= -65, Oe.has(this) && (Oe.delete(this), this.trigger()));
|
|
195
|
+
}
|
|
196
|
+
notify() {
|
|
197
|
+
this.flags & 2 && !(this.flags & 32) || this.flags & 8 || Ne(this);
|
|
198
|
+
}
|
|
199
|
+
run() {
|
|
200
|
+
if (!(this.flags & 1)) return this.fn();
|
|
201
|
+
this.flags |= 2, Ue(this), Ie(this);
|
|
202
|
+
let e = j, t = M;
|
|
203
|
+
j = this, M = !0;
|
|
204
|
+
try {
|
|
205
|
+
return this.fn();
|
|
206
|
+
} finally {
|
|
207
|
+
Le(this), j = e, M = t, this.flags &= -3;
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
stop() {
|
|
211
|
+
if (this.flags & 1) {
|
|
212
|
+
for (let e = this.deps; e; e = e.nextDep) Be(e);
|
|
213
|
+
this.deps = this.depsTail = void 0, Ue(this), this.onStop && this.onStop(), this.flags &= -2;
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
trigger() {
|
|
217
|
+
this.flags & 64 ? Oe.add(this) : this.scheduler ? this.scheduler() : this.runIfDirty();
|
|
218
|
+
}
|
|
219
|
+
runIfDirty() {
|
|
220
|
+
Re(this) && this.run();
|
|
221
|
+
}
|
|
222
|
+
get dirty() {
|
|
223
|
+
return Re(this);
|
|
224
|
+
}
|
|
225
|
+
}, Ae = 0, je, Me;
|
|
226
|
+
function Ne(e, t = !1) {
|
|
227
|
+
e.flags |= 8, t ? (e.next = Me, Me = e) : (e.next = je, je = e);
|
|
228
|
+
}
|
|
229
|
+
function Pe() {
|
|
230
|
+
Ae++;
|
|
231
|
+
}
|
|
232
|
+
function Fe() {
|
|
233
|
+
if (--Ae > 0) return;
|
|
234
|
+
if (Me) {
|
|
235
|
+
let e = Me;
|
|
236
|
+
for (Me = void 0; e;) {
|
|
237
|
+
let t = e.next;
|
|
238
|
+
e.next = void 0, e.flags &= -9, e = t;
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
let e;
|
|
242
|
+
for (; je;) {
|
|
243
|
+
let t = je;
|
|
244
|
+
for (je = void 0; t;) {
|
|
245
|
+
let n = t.next;
|
|
246
|
+
if (t.next = void 0, t.flags &= -9, t.flags & 1) try {
|
|
247
|
+
t.trigger();
|
|
248
|
+
} catch (t) {
|
|
249
|
+
e ||= t;
|
|
250
|
+
}
|
|
251
|
+
t = n;
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
if (e) throw e;
|
|
255
|
+
}
|
|
256
|
+
function Ie(e) {
|
|
257
|
+
for (let t = e.deps; t; t = t.nextDep) t.version = -1, t.prevActiveLink = t.dep.activeLink, t.dep.activeLink = t;
|
|
258
|
+
}
|
|
259
|
+
function Le(e) {
|
|
260
|
+
let t, n = e.depsTail, r = n;
|
|
261
|
+
for (; r;) {
|
|
262
|
+
let e = r.prevDep;
|
|
263
|
+
r.version === -1 ? (r === n && (n = e), Be(r), Ve(r)) : t = r, r.dep.activeLink = r.prevActiveLink, r.prevActiveLink = void 0, r = e;
|
|
264
|
+
}
|
|
265
|
+
e.deps = t, e.depsTail = n;
|
|
266
|
+
}
|
|
267
|
+
function Re(e) {
|
|
268
|
+
for (let t = e.deps; t; t = t.nextDep) if (t.dep.version !== t.version || t.dep.computed && (ze(t.dep.computed) || t.dep.version !== t.version)) return !0;
|
|
269
|
+
return !!e._dirty;
|
|
270
|
+
}
|
|
271
|
+
function ze(e) {
|
|
272
|
+
if (e.flags & 4 && !(e.flags & 16) || (e.flags &= -17, e.globalVersion === We) || (e.globalVersion = We, !e.isSSR && e.flags & 128 && (!e.deps && !e._dirty || !Re(e)))) return;
|
|
273
|
+
e.flags |= 2;
|
|
274
|
+
let t = e.dep, n = j, r = M;
|
|
275
|
+
j = e, M = !0;
|
|
276
|
+
try {
|
|
277
|
+
Ie(e);
|
|
278
|
+
let n = e.fn(e._value);
|
|
279
|
+
(t.version === 0 || D(n, e._value)) && (e.flags |= 128, e._value = n, t.version++);
|
|
280
|
+
} catch (e) {
|
|
281
|
+
throw t.version++, e;
|
|
282
|
+
} finally {
|
|
283
|
+
j = n, M = r, Le(e), e.flags &= -3;
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
function Be(e, t = !1) {
|
|
287
|
+
let { dep: n, prevSub: r, nextSub: i } = e;
|
|
288
|
+
if (r && (r.nextSub = i, e.prevSub = void 0), i && (i.prevSub = r, e.nextSub = void 0), n.subs === e && (n.subs = r, !r && n.computed)) {
|
|
289
|
+
n.computed.flags &= -5;
|
|
290
|
+
for (let e = n.computed.deps; e; e = e.nextDep) Be(e, !0);
|
|
291
|
+
}
|
|
292
|
+
!t && !--n.sc && n.map && n.map.delete(n.key);
|
|
293
|
+
}
|
|
294
|
+
function Ve(e) {
|
|
295
|
+
let { prevDep: t, nextDep: n } = e;
|
|
296
|
+
t && (t.nextDep = n, e.prevDep = void 0), n && (n.prevDep = t, e.nextDep = void 0);
|
|
297
|
+
}
|
|
298
|
+
var M = !0, He = [];
|
|
299
|
+
function N() {
|
|
300
|
+
He.push(M), M = !1;
|
|
301
|
+
}
|
|
302
|
+
function P() {
|
|
303
|
+
let e = He.pop();
|
|
304
|
+
M = e === void 0 || e;
|
|
305
|
+
}
|
|
306
|
+
function Ue(e) {
|
|
307
|
+
let { cleanup: t } = e;
|
|
308
|
+
if (e.cleanup = void 0, t) {
|
|
309
|
+
let e = j;
|
|
310
|
+
j = void 0;
|
|
311
|
+
try {
|
|
312
|
+
t();
|
|
313
|
+
} finally {
|
|
314
|
+
j = e;
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
var We = 0, Ge = class {
|
|
319
|
+
constructor(e, t) {
|
|
320
|
+
this.sub = e, this.dep = t, this.version = t.version, this.nextDep = this.prevDep = this.nextSub = this.prevSub = this.prevActiveLink = void 0;
|
|
321
|
+
}
|
|
322
|
+
}, Ke = class {
|
|
323
|
+
constructor(e) {
|
|
324
|
+
this.computed = e, this.version = 0, this.activeLink = void 0, this.subs = void 0, this.map = void 0, this.key = void 0, this.sc = 0, this.__v_skip = !0;
|
|
325
|
+
}
|
|
326
|
+
track(e) {
|
|
327
|
+
if (!j || !M || j === this.computed) return;
|
|
328
|
+
let t = this.activeLink;
|
|
329
|
+
if (t === void 0 || t.sub !== j) t = this.activeLink = new Ge(j, this), j.deps ? (t.prevDep = j.depsTail, j.depsTail.nextDep = t, j.depsTail = t) : j.deps = j.depsTail = t, qe(t);
|
|
330
|
+
else if (t.version === -1 && (t.version = this.version, t.nextDep)) {
|
|
331
|
+
let e = t.nextDep;
|
|
332
|
+
e.prevDep = t.prevDep, t.prevDep && (t.prevDep.nextDep = e), t.prevDep = j.depsTail, t.nextDep = void 0, j.depsTail.nextDep = t, j.depsTail = t, j.deps === t && (j.deps = e);
|
|
333
|
+
}
|
|
334
|
+
return t;
|
|
335
|
+
}
|
|
336
|
+
trigger(e) {
|
|
337
|
+
this.version++, We++, this.notify(e);
|
|
338
|
+
}
|
|
339
|
+
notify(e) {
|
|
340
|
+
Pe();
|
|
341
|
+
try {
|
|
342
|
+
for (let e = this.subs; e; e = e.prevSub) e.sub.notify() && e.sub.dep.notify();
|
|
343
|
+
} finally {
|
|
344
|
+
Fe();
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
};
|
|
348
|
+
function qe(e) {
|
|
349
|
+
if (e.dep.sc++, e.sub.flags & 4) {
|
|
350
|
+
let t = e.dep.computed;
|
|
351
|
+
if (t && !e.dep.subs) {
|
|
352
|
+
t.flags |= 20;
|
|
353
|
+
for (let e = t.deps; e; e = e.nextDep) qe(e);
|
|
354
|
+
}
|
|
355
|
+
let n = e.dep.subs;
|
|
356
|
+
n !== e && (e.prevSub = n, n && (n.nextSub = e)), e.dep.subs = e;
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
var Je = /* @__PURE__ */ new WeakMap(), Ye = /* @__PURE__ */ Symbol(""), Xe = /* @__PURE__ */ Symbol(""), Ze = /* @__PURE__ */ Symbol("");
|
|
360
|
+
function F(e, t, n) {
|
|
361
|
+
if (M && j) {
|
|
362
|
+
let t = Je.get(e);
|
|
363
|
+
t || Je.set(e, t = /* @__PURE__ */ new Map());
|
|
364
|
+
let r = t.get(n);
|
|
365
|
+
r || (t.set(n, r = new Ke()), r.map = t, r.key = n), r.track();
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
function Qe(e, t, n, r, i, a) {
|
|
369
|
+
let o = Je.get(e);
|
|
370
|
+
if (!o) {
|
|
371
|
+
We++;
|
|
372
|
+
return;
|
|
373
|
+
}
|
|
374
|
+
let s = (e) => {
|
|
375
|
+
e && e.trigger();
|
|
376
|
+
};
|
|
377
|
+
if (Pe(), t === "clear") o.forEach(s);
|
|
378
|
+
else {
|
|
379
|
+
let i = d(e), a = i && w(n);
|
|
380
|
+
if (i && n === "length") {
|
|
381
|
+
let e = Number(r);
|
|
382
|
+
o.forEach((t, n) => {
|
|
383
|
+
(n === "length" || n === Ze || !_(n) && n >= e) && s(t);
|
|
384
|
+
});
|
|
385
|
+
} else switch ((n !== void 0 || o.has(void 0)) && s(o.get(n)), a && s(o.get(Ze)), t) {
|
|
386
|
+
case "add":
|
|
387
|
+
i ? a && s(o.get("length")) : (s(o.get(Ye)), f(e) && s(o.get(Xe)));
|
|
388
|
+
break;
|
|
389
|
+
case "delete":
|
|
390
|
+
i || (s(o.get(Ye)), f(e) && s(o.get(Xe)));
|
|
391
|
+
break;
|
|
392
|
+
case "set": f(e) && s(o.get(Ye));
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
Fe();
|
|
396
|
+
}
|
|
397
|
+
function $e(e) {
|
|
398
|
+
let t = /* @__PURE__ */ L(e);
|
|
399
|
+
return t === e || (F(t, "iterate", Ze), /* @__PURE__ */ I(e)) ? t : /* @__PURE__ */ Rt(e) ? /* @__PURE__ */ Lt(e) ? t.map((e) => Vt(R(e))) : t.map(Vt) : t.map(R);
|
|
400
|
+
}
|
|
401
|
+
function et(e) {
|
|
402
|
+
return F(e = /* @__PURE__ */ L(e), "iterate", Ze), e;
|
|
403
|
+
}
|
|
404
|
+
function tt(e, t) {
|
|
405
|
+
return /* @__PURE__ */ Rt(e) ? Vt(/* @__PURE__ */ Lt(e) ? R(t) : t) : R(t);
|
|
406
|
+
}
|
|
407
|
+
var nt = {
|
|
408
|
+
__proto__: null,
|
|
409
|
+
[Symbol.iterator]() {
|
|
410
|
+
return rt(this, Symbol.iterator, (e) => tt(this, e));
|
|
411
|
+
},
|
|
412
|
+
concat(...e) {
|
|
413
|
+
return $e(this).concat(...e.map((e) => d(e) ? $e(e) : e));
|
|
414
|
+
},
|
|
415
|
+
entries() {
|
|
416
|
+
return rt(this, "entries", (e) => (e[1] = tt(this, e[1]), e));
|
|
417
|
+
},
|
|
418
|
+
every(e, t) {
|
|
419
|
+
return ot(this, "every", e, t, void 0, arguments);
|
|
420
|
+
},
|
|
421
|
+
filter(e, t) {
|
|
422
|
+
return ot(this, "filter", e, t, (e) => e.map((e) => tt(this, e)), arguments);
|
|
423
|
+
},
|
|
424
|
+
find(e, t) {
|
|
425
|
+
return ot(this, "find", e, t, (e) => tt(this, e), arguments);
|
|
426
|
+
},
|
|
427
|
+
findIndex(e, t) {
|
|
428
|
+
return ot(this, "findIndex", e, t, void 0, arguments);
|
|
429
|
+
},
|
|
430
|
+
findLast(e, t) {
|
|
431
|
+
return ot(this, "findLast", e, t, (e) => tt(this, e), arguments);
|
|
432
|
+
},
|
|
433
|
+
findLastIndex(e, t) {
|
|
434
|
+
return ot(this, "findLastIndex", e, t, void 0, arguments);
|
|
435
|
+
},
|
|
436
|
+
forEach(e, t) {
|
|
437
|
+
return ot(this, "forEach", e, t, void 0, arguments);
|
|
438
|
+
},
|
|
439
|
+
includes(...e) {
|
|
440
|
+
return ct(this, "includes", e);
|
|
441
|
+
},
|
|
442
|
+
indexOf(...e) {
|
|
443
|
+
return ct(this, "indexOf", e);
|
|
444
|
+
},
|
|
445
|
+
join(e) {
|
|
446
|
+
return $e(this).join(e);
|
|
447
|
+
},
|
|
448
|
+
lastIndexOf(...e) {
|
|
449
|
+
return ct(this, "lastIndexOf", e);
|
|
450
|
+
},
|
|
451
|
+
map(e, t) {
|
|
452
|
+
return ot(this, "map", e, t, void 0, arguments);
|
|
453
|
+
},
|
|
454
|
+
pop() {
|
|
455
|
+
return lt(this, "pop");
|
|
456
|
+
},
|
|
457
|
+
push(...e) {
|
|
458
|
+
return lt(this, "push", e);
|
|
459
|
+
},
|
|
460
|
+
reduce(e, ...t) {
|
|
461
|
+
return st(this, "reduce", e, t);
|
|
462
|
+
},
|
|
463
|
+
reduceRight(e, ...t) {
|
|
464
|
+
return st(this, "reduceRight", e, t);
|
|
465
|
+
},
|
|
466
|
+
shift() {
|
|
467
|
+
return lt(this, "shift");
|
|
468
|
+
},
|
|
469
|
+
some(e, t) {
|
|
470
|
+
return ot(this, "some", e, t, void 0, arguments);
|
|
471
|
+
},
|
|
472
|
+
splice(...e) {
|
|
473
|
+
return lt(this, "splice", e);
|
|
474
|
+
},
|
|
475
|
+
toReversed() {
|
|
476
|
+
return $e(this).toReversed();
|
|
477
|
+
},
|
|
478
|
+
toSorted(e) {
|
|
479
|
+
return $e(this).toSorted(e);
|
|
480
|
+
},
|
|
481
|
+
toSpliced(...e) {
|
|
482
|
+
return $e(this).toSpliced(...e);
|
|
483
|
+
},
|
|
484
|
+
unshift(...e) {
|
|
485
|
+
return lt(this, "unshift", e);
|
|
486
|
+
},
|
|
487
|
+
values() {
|
|
488
|
+
return rt(this, "values", (e) => tt(this, e));
|
|
489
|
+
}
|
|
490
|
+
};
|
|
491
|
+
function rt(e, t, n) {
|
|
492
|
+
let r = et(e), i = r[t], a = i.call(r);
|
|
493
|
+
if (r !== e && !/* @__PURE__ */ I(e)) {
|
|
494
|
+
if (a[Symbol.toStringTag] === "Array Iterator") {
|
|
495
|
+
let e = Object.create(Object.getPrototypeOf(a));
|
|
496
|
+
return e.next = () => it(a.next(), n), i !== at[t] && Object.defineProperties(e, {
|
|
497
|
+
return: { get() {
|
|
498
|
+
let e = a.return;
|
|
499
|
+
return typeof e == "function" ? e.bind(a) : e;
|
|
500
|
+
} },
|
|
501
|
+
throw: { get() {
|
|
502
|
+
let e = a.throw;
|
|
503
|
+
return typeof e == "function" ? e.bind(a) : e;
|
|
504
|
+
} }
|
|
505
|
+
}), e;
|
|
506
|
+
}
|
|
507
|
+
a._next = a.next, a.next = () => it(a._next(), n);
|
|
508
|
+
}
|
|
509
|
+
return a;
|
|
510
|
+
}
|
|
511
|
+
function it(e, t) {
|
|
512
|
+
return e.done || (e.value = t(e.value)), e;
|
|
513
|
+
}
|
|
514
|
+
var at = Array.prototype;
|
|
515
|
+
function ot(e, t, n, r, i, a) {
|
|
516
|
+
let o = et(e), s = o !== e && !/* @__PURE__ */ I(e), c = o[t];
|
|
517
|
+
if (c !== at[t]) {
|
|
518
|
+
let t = c.apply(e, a);
|
|
519
|
+
return s ? R(t) : t;
|
|
520
|
+
}
|
|
521
|
+
let l = n;
|
|
522
|
+
o !== e && (s ? l = function(t, r) {
|
|
523
|
+
return n.call(this, tt(e, t), r, e);
|
|
524
|
+
} : n.length > 2 && (l = function(t, r) {
|
|
525
|
+
return n.call(this, t, r, e);
|
|
526
|
+
}));
|
|
527
|
+
let u = c.call(o, l, r);
|
|
528
|
+
return s && i ? i(u) : u;
|
|
529
|
+
}
|
|
530
|
+
function st(e, t, n, r) {
|
|
531
|
+
let i = et(e), a = i !== e && !/* @__PURE__ */ I(e), o = n, s = !1;
|
|
532
|
+
i !== e && (a ? (s = r.length === 0, o = function(t, r, i) {
|
|
533
|
+
return s && (s = !1, t = tt(e, t)), n.call(this, t, tt(e, r), i, e);
|
|
534
|
+
}) : n.length > 3 && (o = function(t, r, i) {
|
|
535
|
+
return n.call(this, t, r, i, e);
|
|
536
|
+
}));
|
|
537
|
+
let c = i[t](o, ...r);
|
|
538
|
+
return s ? tt(e, c) : c;
|
|
539
|
+
}
|
|
540
|
+
function ct(e, t, n) {
|
|
541
|
+
let r = /* @__PURE__ */ L(e);
|
|
542
|
+
F(r, "iterate", Ze);
|
|
543
|
+
let i = r[t](...n);
|
|
544
|
+
return (i === -1 || i === !1) && /* @__PURE__ */ zt(n[0]) ? (n[0] = /* @__PURE__ */ L(n[0]), r[t](...n)) : i;
|
|
545
|
+
}
|
|
546
|
+
function lt(e, t, n = []) {
|
|
547
|
+
N(), Pe();
|
|
548
|
+
let r = (/* @__PURE__ */ L(e))[t].apply(e, n);
|
|
549
|
+
return Fe(), P(), r;
|
|
550
|
+
}
|
|
551
|
+
var ut = /* @__PURE__ */ e("__proto__,__v_isRef,__isVue"), dt = new Set(/* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(_));
|
|
552
|
+
function ft(e) {
|
|
553
|
+
_(e) || (e = String(e));
|
|
554
|
+
let t = /* @__PURE__ */ L(this);
|
|
555
|
+
return F(t, "has", e), t.hasOwnProperty(e);
|
|
556
|
+
}
|
|
557
|
+
var pt = class {
|
|
558
|
+
constructor(e = !1, t = !1) {
|
|
559
|
+
this._isReadonly = e, this._isShallow = t;
|
|
560
|
+
}
|
|
561
|
+
get(e, t, n) {
|
|
562
|
+
if (t === "__v_skip") return e.__v_skip;
|
|
563
|
+
let r = this._isReadonly, i = this._isShallow;
|
|
564
|
+
if (t === "__v_isReactive") return !r;
|
|
565
|
+
if (t === "__v_isReadonly") return r;
|
|
566
|
+
if (t === "__v_isShallow") return i;
|
|
567
|
+
if (t === "__v_raw") return n === (r ? i ? jt : At : i ? kt : Ot).get(e) || Object.getPrototypeOf(e) === Object.getPrototypeOf(n) ? e : void 0;
|
|
568
|
+
let a = d(e);
|
|
569
|
+
if (!r) {
|
|
570
|
+
let e;
|
|
571
|
+
if (a && (e = nt[t])) return e;
|
|
572
|
+
if (t === "hasOwnProperty") return ft;
|
|
573
|
+
}
|
|
574
|
+
let o = Reflect.get(e, t, /* @__PURE__ */ z(e) ? e : n);
|
|
575
|
+
if ((_(t) ? dt.has(t) : ut(t)) || (r || F(e, "get", t), i)) return o;
|
|
576
|
+
if (/* @__PURE__ */ z(o)) {
|
|
577
|
+
let e = a && w(t) ? o : o.value;
|
|
578
|
+
return r && v(e) ? /* @__PURE__ */ Ft(e) : e;
|
|
579
|
+
}
|
|
580
|
+
return v(o) ? r ? /* @__PURE__ */ Ft(o) : /* @__PURE__ */ Nt(o) : o;
|
|
581
|
+
}
|
|
582
|
+
}, mt = class extends pt {
|
|
583
|
+
constructor(e = !1) {
|
|
584
|
+
super(!1, e);
|
|
585
|
+
}
|
|
586
|
+
set(e, t, n, r) {
|
|
587
|
+
let i = e[t], a = d(e) && w(t);
|
|
588
|
+
if (!this._isShallow) {
|
|
589
|
+
let e = /* @__PURE__ */ Rt(i);
|
|
590
|
+
if (!/* @__PURE__ */ I(n) && !/* @__PURE__ */ Rt(n) && (i = /* @__PURE__ */ L(i), n = /* @__PURE__ */ L(n)), !a && /* @__PURE__ */ z(i) && !/* @__PURE__ */ z(n)) return e || (i.value = n), !0;
|
|
591
|
+
}
|
|
592
|
+
let o = a ? Number(t) < e.length : u(e, t), s = Reflect.set(e, t, n, /* @__PURE__ */ z(e) ? e : r);
|
|
593
|
+
return e === /* @__PURE__ */ L(r) && s && (o ? D(n, i) && Qe(e, "set", t, n, i) : Qe(e, "add", t, n)), s;
|
|
594
|
+
}
|
|
595
|
+
deleteProperty(e, t) {
|
|
596
|
+
let n = u(e, t), r = e[t], i = Reflect.deleteProperty(e, t);
|
|
597
|
+
return i && n && Qe(e, "delete", t, void 0, r), i;
|
|
598
|
+
}
|
|
599
|
+
has(e, t) {
|
|
600
|
+
let n = Reflect.has(e, t);
|
|
601
|
+
return _(t) && dt.has(t) || F(e, "has", t), n;
|
|
602
|
+
}
|
|
603
|
+
ownKeys(e) {
|
|
604
|
+
return F(e, "iterate", d(e) ? "length" : Ye), Reflect.ownKeys(e);
|
|
605
|
+
}
|
|
606
|
+
}, ht = class extends pt {
|
|
607
|
+
constructor(e = !1) {
|
|
608
|
+
super(!0, e);
|
|
609
|
+
}
|
|
610
|
+
set(e, t) {
|
|
611
|
+
return !0;
|
|
612
|
+
}
|
|
613
|
+
deleteProperty(e, t) {
|
|
614
|
+
return !0;
|
|
615
|
+
}
|
|
616
|
+
}, gt = /* @__PURE__ */ new mt(), _t = /* @__PURE__ */ new ht(), vt = /* @__PURE__ */ new mt(!0), yt = (e) => e, bt = (e) => Reflect.getPrototypeOf(e);
|
|
617
|
+
function xt(e, t, n) {
|
|
618
|
+
return function(...r) {
|
|
619
|
+
let i = this.__v_raw, a = /* @__PURE__ */ L(i), o = f(a), c = e === "entries" || e === Symbol.iterator && o, l = e === "keys" && o, u = i[e](...r), d = n ? yt : t ? Vt : R;
|
|
620
|
+
return !t && F(a, "iterate", l ? Xe : Ye), s(Object.create(u), { next() {
|
|
621
|
+
let { value: e, done: t } = u.next();
|
|
622
|
+
return t ? {
|
|
623
|
+
value: e,
|
|
624
|
+
done: t
|
|
625
|
+
} : {
|
|
626
|
+
value: c ? [d(e[0]), d(e[1])] : d(e),
|
|
627
|
+
done: t
|
|
628
|
+
};
|
|
629
|
+
} });
|
|
630
|
+
};
|
|
631
|
+
}
|
|
632
|
+
function St(e) {
|
|
633
|
+
return function(...t) {
|
|
634
|
+
return e === "delete" ? !1 : e === "clear" ? void 0 : this;
|
|
635
|
+
};
|
|
636
|
+
}
|
|
637
|
+
function Ct(e, t) {
|
|
638
|
+
let n = {
|
|
639
|
+
get(n) {
|
|
640
|
+
let r = this.__v_raw, i = /* @__PURE__ */ L(r), a = /* @__PURE__ */ L(n);
|
|
641
|
+
e || (D(n, a) && F(i, "get", n), F(i, "get", a));
|
|
642
|
+
let { has: o } = bt(i), s = t ? yt : e ? Vt : R;
|
|
643
|
+
if (o.call(i, n)) return s(r.get(n));
|
|
644
|
+
if (o.call(i, a)) return s(r.get(a));
|
|
645
|
+
r !== i && r.get(n);
|
|
646
|
+
},
|
|
647
|
+
get size() {
|
|
648
|
+
let t = this.__v_raw;
|
|
649
|
+
return !e && F(/* @__PURE__ */ L(t), "iterate", Ye), t.size;
|
|
650
|
+
},
|
|
651
|
+
has(t) {
|
|
652
|
+
let n = this.__v_raw, r = /* @__PURE__ */ L(n), i = /* @__PURE__ */ L(t);
|
|
653
|
+
return e || (D(t, i) && F(r, "has", t), F(r, "has", i)), t === i ? n.has(t) : n.has(t) || n.has(i);
|
|
654
|
+
},
|
|
655
|
+
forEach(n, r) {
|
|
656
|
+
let i = this, a = i.__v_raw, o = /* @__PURE__ */ L(a), s = t ? yt : e ? Vt : R;
|
|
657
|
+
return !e && F(o, "iterate", Ye), a.forEach((e, t) => n.call(r, s(e), s(t), i));
|
|
658
|
+
}
|
|
659
|
+
};
|
|
660
|
+
return s(n, e ? {
|
|
661
|
+
add: St("add"),
|
|
662
|
+
set: St("set"),
|
|
663
|
+
delete: St("delete"),
|
|
664
|
+
clear: St("clear")
|
|
665
|
+
} : {
|
|
666
|
+
add(e) {
|
|
667
|
+
let n = /* @__PURE__ */ L(this), r = bt(n), i = /* @__PURE__ */ L(e), a = !t && !/* @__PURE__ */ I(e) && !/* @__PURE__ */ Rt(e) ? i : e;
|
|
668
|
+
return r.has.call(n, a) || D(e, a) && r.has.call(n, e) || D(i, a) && r.has.call(n, i) || (n.add(a), Qe(n, "add", a, a)), this;
|
|
669
|
+
},
|
|
670
|
+
set(e, n) {
|
|
671
|
+
t || /* @__PURE__ */ I(n) || /* @__PURE__ */ Rt(n) || (n = /* @__PURE__ */ L(n));
|
|
672
|
+
let r = /* @__PURE__ */ L(this), { has: i, get: a } = bt(r), o = i.call(r, e);
|
|
673
|
+
o ||= (e = /* @__PURE__ */ L(e), i.call(r, e));
|
|
674
|
+
let s = a.call(r, e);
|
|
675
|
+
return r.set(e, n), o ? D(n, s) && Qe(r, "set", e, n, s) : Qe(r, "add", e, n), this;
|
|
676
|
+
},
|
|
677
|
+
delete(e) {
|
|
678
|
+
let t = /* @__PURE__ */ L(this), { has: n, get: r } = bt(t), i = n.call(t, e);
|
|
679
|
+
i ||= (e = /* @__PURE__ */ L(e), n.call(t, e));
|
|
680
|
+
let a = r ? r.call(t, e) : void 0, o = t.delete(e);
|
|
681
|
+
return i && Qe(t, "delete", e, void 0, a), o;
|
|
682
|
+
},
|
|
683
|
+
clear() {
|
|
684
|
+
let e = /* @__PURE__ */ L(this), t = e.size !== 0, n = e.clear();
|
|
685
|
+
return t && Qe(e, "clear", void 0, void 0, void 0), n;
|
|
686
|
+
}
|
|
687
|
+
}), [
|
|
688
|
+
"keys",
|
|
689
|
+
"values",
|
|
690
|
+
"entries",
|
|
691
|
+
Symbol.iterator
|
|
692
|
+
].forEach((r) => {
|
|
693
|
+
n[r] = xt(r, e, t);
|
|
694
|
+
}), n;
|
|
695
|
+
}
|
|
696
|
+
function wt(e, t) {
|
|
697
|
+
let n = Ct(e, t);
|
|
698
|
+
return (r, i, a) => i === "__v_isReactive" ? !e : i === "__v_isReadonly" ? e : i === "__v_isShallow" ? t : i === "__v_raw" ? r : Reflect.get(u(n, i) && i in r ? n : r, i, a);
|
|
699
|
+
}
|
|
700
|
+
var Tt = { get: /* @__PURE__ */ wt(!1, !1) }, Et = { get: /* @__PURE__ */ wt(!1, !0) }, Dt = { get: /* @__PURE__ */ wt(!0, !1) }, Ot = /* @__PURE__ */ new WeakMap(), kt = /* @__PURE__ */ new WeakMap(), At = /* @__PURE__ */ new WeakMap(), jt = /* @__PURE__ */ new WeakMap();
|
|
701
|
+
function Mt(e) {
|
|
702
|
+
switch (e) {
|
|
703
|
+
case "Object":
|
|
704
|
+
case "Array": return 1;
|
|
705
|
+
case "Map":
|
|
706
|
+
case "Set":
|
|
707
|
+
case "WeakMap":
|
|
708
|
+
case "WeakSet": return 2;
|
|
709
|
+
default: return 0;
|
|
710
|
+
}
|
|
711
|
+
}
|
|
712
|
+
// @__NO_SIDE_EFFECTS__
|
|
713
|
+
function Nt(e) {
|
|
714
|
+
return /* @__PURE__ */ Rt(e) ? e : It(e, !1, gt, Tt, Ot);
|
|
715
|
+
}
|
|
716
|
+
// @__NO_SIDE_EFFECTS__
|
|
717
|
+
function Pt(e) {
|
|
718
|
+
return It(e, !1, vt, Et, kt);
|
|
719
|
+
}
|
|
720
|
+
// @__NO_SIDE_EFFECTS__
|
|
721
|
+
function Ft(e) {
|
|
722
|
+
return It(e, !0, _t, Dt, At);
|
|
723
|
+
}
|
|
724
|
+
function It(e, t, n, r, i) {
|
|
725
|
+
if (!v(e) || e.__v_raw && !(t && e.__v_isReactive) || e.__v_skip || !Object.isExtensible(e)) return e;
|
|
726
|
+
let a = i.get(e);
|
|
727
|
+
if (a) return a;
|
|
728
|
+
let o = Mt(S(e));
|
|
729
|
+
if (o === 0) return e;
|
|
730
|
+
let s = new Proxy(e, o === 2 ? r : n);
|
|
731
|
+
return i.set(e, s), s;
|
|
732
|
+
}
|
|
733
|
+
// @__NO_SIDE_EFFECTS__
|
|
734
|
+
function Lt(e) {
|
|
735
|
+
return /* @__PURE__ */ Rt(e) ? /* @__PURE__ */ Lt(e.__v_raw) : !!(e && e.__v_isReactive);
|
|
736
|
+
}
|
|
737
|
+
// @__NO_SIDE_EFFECTS__
|
|
738
|
+
function Rt(e) {
|
|
739
|
+
return !!(e && e.__v_isReadonly);
|
|
740
|
+
}
|
|
741
|
+
// @__NO_SIDE_EFFECTS__
|
|
742
|
+
function I(e) {
|
|
743
|
+
return !!(e && e.__v_isShallow);
|
|
744
|
+
}
|
|
745
|
+
// @__NO_SIDE_EFFECTS__
|
|
746
|
+
function zt(e) {
|
|
747
|
+
return e ? !!e.__v_raw : !1;
|
|
748
|
+
}
|
|
749
|
+
// @__NO_SIDE_EFFECTS__
|
|
750
|
+
function L(e) {
|
|
751
|
+
let t = e && e.__v_raw;
|
|
752
|
+
return t ? /* @__PURE__ */ L(t) : e;
|
|
753
|
+
}
|
|
754
|
+
function Bt(e) {
|
|
755
|
+
return !u(e, "__v_skip") && Object.isExtensible(e) && O(e, "__v_skip", !0), e;
|
|
756
|
+
}
|
|
757
|
+
var R = (e) => v(e) ? /* @__PURE__ */ Nt(e) : e, Vt = (e) => v(e) ? /* @__PURE__ */ Ft(e) : e;
|
|
758
|
+
// @__NO_SIDE_EFFECTS__
|
|
759
|
+
function z(e) {
|
|
760
|
+
return e ? e.__v_isRef === !0 : !1;
|
|
761
|
+
}
|
|
762
|
+
// @__NO_SIDE_EFFECTS__
|
|
763
|
+
function Ht(e) {
|
|
764
|
+
return Wt(e, !1);
|
|
765
|
+
}
|
|
766
|
+
// @__NO_SIDE_EFFECTS__
|
|
767
|
+
function Ut(e) {
|
|
768
|
+
return Wt(e, !0);
|
|
769
|
+
}
|
|
770
|
+
function Wt(e, t) {
|
|
771
|
+
return /* @__PURE__ */ z(e) ? e : new Gt(e, t);
|
|
772
|
+
}
|
|
773
|
+
var Gt = class {
|
|
774
|
+
constructor(e, t) {
|
|
775
|
+
this.dep = new Ke(), this.__v_isRef = !0, this.__v_isShallow = !1, this._rawValue = t ? e : /* @__PURE__ */ L(e), this._value = t ? e : R(e), this.__v_isShallow = t;
|
|
776
|
+
}
|
|
777
|
+
get value() {
|
|
778
|
+
return this.dep.track(), this._value;
|
|
779
|
+
}
|
|
780
|
+
set value(e) {
|
|
781
|
+
let t = this._rawValue, n = this.__v_isShallow || /* @__PURE__ */ I(e) || /* @__PURE__ */ Rt(e);
|
|
782
|
+
e = n ? e : /* @__PURE__ */ L(e), D(e, t) && (this._rawValue = e, this._value = n ? e : R(e), this.dep.trigger());
|
|
783
|
+
}
|
|
784
|
+
};
|
|
785
|
+
function Kt(e) {
|
|
786
|
+
return /* @__PURE__ */ z(e) ? e.value : e;
|
|
787
|
+
}
|
|
788
|
+
var qt = {
|
|
789
|
+
get: (e, t, n) => t === "__v_raw" ? e : Kt(Reflect.get(e, t, n)),
|
|
790
|
+
set: (e, t, n, r) => {
|
|
791
|
+
let i = e[t];
|
|
792
|
+
return /* @__PURE__ */ z(i) && !/* @__PURE__ */ z(n) ? (i.value = n, !0) : Reflect.set(e, t, n, r);
|
|
793
|
+
}
|
|
794
|
+
};
|
|
795
|
+
function Jt(e) {
|
|
796
|
+
return /* @__PURE__ */ Lt(e) ? e : new Proxy(e, qt);
|
|
797
|
+
}
|
|
798
|
+
var Yt = class {
|
|
799
|
+
constructor(e, t, n) {
|
|
800
|
+
this.fn = e, this.setter = t, this._value = void 0, this.dep = new Ke(this), this.__v_isRef = !0, this.deps = void 0, this.depsTail = void 0, this.flags = 16, this.globalVersion = We - 1, this.next = void 0, this.effect = this, this.__v_isReadonly = !t, this.isSSR = n;
|
|
801
|
+
}
|
|
802
|
+
notify() {
|
|
803
|
+
if (this.flags |= 16, !(this.flags & 8) && j !== this) return Ne(this, !0), !0;
|
|
804
|
+
}
|
|
805
|
+
get value() {
|
|
806
|
+
let e = this.dep.track();
|
|
807
|
+
return ze(this), e && (e.version = this.dep.version), this._value;
|
|
808
|
+
}
|
|
809
|
+
set value(e) {
|
|
810
|
+
this.setter && this.setter(e);
|
|
811
|
+
}
|
|
812
|
+
};
|
|
813
|
+
// @__NO_SIDE_EFFECTS__
|
|
814
|
+
function Xt(e, t, n = !1) {
|
|
815
|
+
let r, i;
|
|
816
|
+
return h(e) ? r = e : (r = e.get, i = e.set), new Yt(r, i, n);
|
|
817
|
+
}
|
|
818
|
+
var Zt = {}, Qt = /* @__PURE__ */ new WeakMap(), $t = void 0;
|
|
819
|
+
function en(e, t = !1, n = $t) {
|
|
820
|
+
if (n) {
|
|
821
|
+
let t = Qt.get(n);
|
|
822
|
+
t || Qt.set(n, t = []), t.push(e);
|
|
823
|
+
}
|
|
824
|
+
}
|
|
825
|
+
function tn(e, n, i = t) {
|
|
826
|
+
let { immediate: a, deep: o, once: s, scheduler: l, augmentJob: u, call: f } = i, p = (e) => o ? e : /* @__PURE__ */ I(e) || o === !1 || o === 0 ? nn(e, 1) : nn(e), m, g, _, v, y = !1, b = !1;
|
|
827
|
+
if (/* @__PURE__ */ z(e) ? (g = () => e.value, y = /* @__PURE__ */ I(e)) : /* @__PURE__ */ Lt(e) ? (g = () => p(e), y = !0) : d(e) ? (b = !0, y = e.some((e) => /* @__PURE__ */ Lt(e) || /* @__PURE__ */ I(e)), g = () => e.map((e) => {
|
|
828
|
+
if (/* @__PURE__ */ z(e)) return e.value;
|
|
829
|
+
if (/* @__PURE__ */ Lt(e)) return p(e);
|
|
830
|
+
if (h(e)) return f ? f(e, 2) : e();
|
|
831
|
+
})) : g = h(e) ? n ? f ? () => f(e, 2) : e : () => {
|
|
832
|
+
if (_) {
|
|
833
|
+
N();
|
|
834
|
+
try {
|
|
835
|
+
_();
|
|
836
|
+
} finally {
|
|
837
|
+
P();
|
|
838
|
+
}
|
|
839
|
+
}
|
|
840
|
+
let t = $t;
|
|
841
|
+
$t = m;
|
|
842
|
+
try {
|
|
843
|
+
return f ? f(e, 3, [v]) : e(v);
|
|
844
|
+
} finally {
|
|
845
|
+
$t = t;
|
|
846
|
+
}
|
|
847
|
+
} : r, n && o) {
|
|
848
|
+
let e = g, t = o === !0 ? Infinity : o;
|
|
849
|
+
g = () => nn(e(), t);
|
|
850
|
+
}
|
|
851
|
+
let x = De(), S = () => {
|
|
852
|
+
m.stop(), x && x.active && c(x.effects, m);
|
|
853
|
+
};
|
|
854
|
+
if (s && n) {
|
|
855
|
+
let e = n;
|
|
856
|
+
n = (...t) => {
|
|
857
|
+
try {
|
|
858
|
+
return e(...t);
|
|
859
|
+
} finally {
|
|
860
|
+
S();
|
|
861
|
+
}
|
|
862
|
+
};
|
|
863
|
+
}
|
|
864
|
+
let C = b ? Array(e.length).fill(Zt) : Zt, w = (e) => {
|
|
865
|
+
if (m.flags & 1 && (m.dirty || e)) {
|
|
866
|
+
if (n) {
|
|
867
|
+
let t = m.run();
|
|
868
|
+
if (e || o || y || (b ? t.some((e, t) => D(e, C[t])) : D(t, C))) {
|
|
869
|
+
let e = $t;
|
|
870
|
+
N();
|
|
871
|
+
try {
|
|
872
|
+
_ && _(), $t = m;
|
|
873
|
+
let e = [
|
|
874
|
+
t,
|
|
875
|
+
C === Zt ? void 0 : b && C[0] === Zt ? [] : C,
|
|
876
|
+
v
|
|
877
|
+
];
|
|
878
|
+
C = t, f ? f(n, 3, e) : n(...e);
|
|
879
|
+
} finally {
|
|
880
|
+
$t = e, P();
|
|
881
|
+
}
|
|
882
|
+
}
|
|
883
|
+
} else m.run();
|
|
884
|
+
}
|
|
885
|
+
};
|
|
886
|
+
return u && u(w), m = new ke(g), m.scheduler = l ? () => l(w, !1) : w, v = (e) => en(e, !1, m), _ = m.onStop = () => {
|
|
887
|
+
let e = Qt.get(m);
|
|
888
|
+
if (e) {
|
|
889
|
+
if (f) f(e, 4);
|
|
890
|
+
else for (let t of e) t();
|
|
891
|
+
Qt.delete(m);
|
|
892
|
+
}
|
|
893
|
+
}, n ? a ? w(!0) : C = m.run() : l ? l(w.bind(null, !0), !0) : m.run(), S.pause = m.pause.bind(m), S.resume = m.resume.bind(m), S.stop = S, S;
|
|
894
|
+
}
|
|
895
|
+
function nn(e, t = Infinity, n) {
|
|
896
|
+
if (t <= 0 || !v(e) || e.__v_skip || (n ||= /* @__PURE__ */ new Map(), (n.get(e) || 0) >= t)) return e;
|
|
897
|
+
if (n.set(e, t), t--, /* @__PURE__ */ z(e)) nn(e.value, t, n);
|
|
898
|
+
else if (d(e)) for (let r = 0; r < e.length; r++) nn(e[r], t, n);
|
|
899
|
+
else if (p(e) || f(e)) e.forEach((e) => {
|
|
900
|
+
nn(e, t, n);
|
|
901
|
+
});
|
|
902
|
+
else if (C(e)) {
|
|
903
|
+
for (let r in e) nn(e[r], t, n);
|
|
904
|
+
for (let r of Object.getOwnPropertySymbols(e)) Object.prototype.propertyIsEnumerable.call(e, r) && nn(e[r], t, n);
|
|
905
|
+
}
|
|
906
|
+
return e;
|
|
907
|
+
}
|
|
908
|
+
// node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js
|
|
909
|
+
function rn(e, t, n, r) {
|
|
910
|
+
try {
|
|
911
|
+
return r ? e(...r) : e();
|
|
912
|
+
} catch (e) {
|
|
913
|
+
on(e, t, n);
|
|
914
|
+
}
|
|
915
|
+
}
|
|
916
|
+
function an(e, t, n, r) {
|
|
917
|
+
if (h(e)) {
|
|
918
|
+
let i = rn(e, t, n, r);
|
|
919
|
+
return i && y(i) && i.catch((e) => {
|
|
920
|
+
on(e, t, n);
|
|
921
|
+
}), i;
|
|
922
|
+
}
|
|
923
|
+
if (d(e)) {
|
|
924
|
+
let i = [];
|
|
925
|
+
for (let a = 0; a < e.length; a++) i.push(an(e[a], t, n, r));
|
|
926
|
+
return i;
|
|
927
|
+
}
|
|
928
|
+
}
|
|
929
|
+
function on(e, n, r, i = !0) {
|
|
930
|
+
let a = n ? n.vnode : null, { errorHandler: o, throwUnhandledErrorInProduction: s } = n && n.appContext.config || t;
|
|
931
|
+
if (n) {
|
|
932
|
+
let t = n.parent, i = n.proxy, a = `https://vuejs.org/error-reference/#runtime-${r}`;
|
|
933
|
+
for (; t;) {
|
|
934
|
+
let n = t.ec;
|
|
935
|
+
if (n) {
|
|
936
|
+
for (let t = 0; t < n.length; t++) if (n[t](e, i, a) === !1) return;
|
|
937
|
+
}
|
|
938
|
+
t = t.parent;
|
|
939
|
+
}
|
|
940
|
+
if (o) {
|
|
941
|
+
N(), rn(o, null, 10, [
|
|
942
|
+
e,
|
|
943
|
+
i,
|
|
944
|
+
a
|
|
945
|
+
]), P();
|
|
946
|
+
return;
|
|
947
|
+
}
|
|
948
|
+
}
|
|
949
|
+
sn(e, r, a, i, s);
|
|
950
|
+
}
|
|
951
|
+
function sn(e, t, n, r = !0, i = !1) {
|
|
952
|
+
if (i) throw e;
|
|
953
|
+
console.error(e);
|
|
954
|
+
}
|
|
955
|
+
var B = [], V = -1, cn = [], ln = null, un = 0, dn = /* @__PURE__ */ Promise.resolve(), fn = null;
|
|
956
|
+
function pn(e) {
|
|
957
|
+
let t = fn || dn;
|
|
958
|
+
return e ? t.then(this ? e.bind(this) : e) : t;
|
|
959
|
+
}
|
|
960
|
+
function mn(e) {
|
|
961
|
+
let t = V + 1, n = B.length;
|
|
962
|
+
for (; t < n;) {
|
|
963
|
+
let r = t + n >>> 1, i = B[r], a = Sn(i);
|
|
964
|
+
a < e || a === e && i.flags & 2 ? t = r + 1 : n = r;
|
|
965
|
+
}
|
|
966
|
+
return t;
|
|
967
|
+
}
|
|
968
|
+
function hn(e) {
|
|
969
|
+
if (!(e.flags & 1)) {
|
|
970
|
+
let t = Sn(e), n = B[B.length - 1];
|
|
971
|
+
!n || !(e.flags & 2) && t >= Sn(n) ? B.push(e) : B.splice(mn(t), 0, e), e.flags |= 1, gn();
|
|
972
|
+
}
|
|
973
|
+
}
|
|
974
|
+
function gn() {
|
|
975
|
+
fn ||= dn.then(Cn);
|
|
976
|
+
}
|
|
977
|
+
function _n(e) {
|
|
978
|
+
if (!d(e)) ln && e.id === -1 ? ln.splice(un + 1, 0, e) : e.flags & 1 || (cn.push(e), e.flags |= 1);
|
|
979
|
+
else for (let t = 0; t < e.length; t++) cn.push(e[t]);
|
|
980
|
+
gn();
|
|
981
|
+
}
|
|
982
|
+
function vn(e, t, n, r = V + 1) {
|
|
983
|
+
for (; r < B.length; r++) {
|
|
984
|
+
let n = B[r];
|
|
985
|
+
if (n && n.flags & 2) {
|
|
986
|
+
if (e && n.id !== e.uid || t !== void 0 && !(n.id >= t)) continue;
|
|
987
|
+
B.splice(r, 1), r = e ? r - 1 : V, n.flags & 4 && (n.flags &= -2), n(), n.flags & 4 || (n.flags &= -2);
|
|
988
|
+
}
|
|
989
|
+
}
|
|
990
|
+
}
|
|
991
|
+
function yn(e, t, n = 0) {
|
|
992
|
+
if (cn.length) {
|
|
993
|
+
let e = cn, r = 0;
|
|
994
|
+
if (t) {
|
|
995
|
+
e = [];
|
|
996
|
+
for (let i = 0; i < cn.length; i++) {
|
|
997
|
+
let a = cn[i];
|
|
998
|
+
(a.i === void 0 ? t.has(a) : !a.i || a.i.uid < n) ? cn[r++] = a : e.push(a);
|
|
999
|
+
}
|
|
1000
|
+
}
|
|
1001
|
+
let i = [...new Set(e)].sort((e, t) => Sn(e) - Sn(t));
|
|
1002
|
+
if (cn.length = r, ln) {
|
|
1003
|
+
for (let e = 0; e < i.length; e++) ln.push(i[e]);
|
|
1004
|
+
return;
|
|
1005
|
+
}
|
|
1006
|
+
for (ln = i, un = 0; un < ln.length; un++) {
|
|
1007
|
+
let e = ln[un];
|
|
1008
|
+
e.flags & 4 && (e.flags &= -2), e.flags & 8 || e(), e.flags &= -2;
|
|
1009
|
+
}
|
|
1010
|
+
ln = null, un = 0;
|
|
1011
|
+
}
|
|
1012
|
+
}
|
|
1013
|
+
var bn = !1;
|
|
1014
|
+
function xn(e, t) {
|
|
1015
|
+
if (bn) {
|
|
1016
|
+
e();
|
|
1017
|
+
return;
|
|
1018
|
+
}
|
|
1019
|
+
let n = t === void 0 ? void 0 : new Set(cn);
|
|
1020
|
+
e(), bn = !0;
|
|
1021
|
+
try {
|
|
1022
|
+
vn(void 0, t), yn(void 0, n, t);
|
|
1023
|
+
} finally {
|
|
1024
|
+
bn = !1;
|
|
1025
|
+
}
|
|
1026
|
+
}
|
|
1027
|
+
var Sn = (e) => e.id == null ? e.flags & 2 ? -1 : Infinity : e.id;
|
|
1028
|
+
function Cn(e) {
|
|
1029
|
+
try {
|
|
1030
|
+
for (V = 0; V < B.length; V++) {
|
|
1031
|
+
let e = B[V];
|
|
1032
|
+
e && !(e.flags & 8) && (e.flags & 4 && (e.flags &= -2), rn(e, e.i, e.i ? 15 : 14), e.flags & 4 || (e.flags &= -2));
|
|
1033
|
+
}
|
|
1034
|
+
} finally {
|
|
1035
|
+
for (; V < B.length; V++) {
|
|
1036
|
+
let e = B[V];
|
|
1037
|
+
e && (e.flags &= -2);
|
|
1038
|
+
}
|
|
1039
|
+
V = -1, B.length = 0, yn(e), fn = null, (B.length || cn.length) && Cn(e);
|
|
1040
|
+
}
|
|
1041
|
+
}
|
|
1042
|
+
var H = null, wn = null;
|
|
1043
|
+
function Tn(e) {
|
|
1044
|
+
let t = H;
|
|
1045
|
+
return H = e, wn = e && e.type.__scopeId || null, t;
|
|
1046
|
+
}
|
|
1047
|
+
function En(e, t = H, n) {
|
|
1048
|
+
if (!t || e._n) return e;
|
|
1049
|
+
let r = (...n) => {
|
|
1050
|
+
r._d && Pi(-1);
|
|
1051
|
+
let i = Tn(t), a = Ai.length, o;
|
|
1052
|
+
try {
|
|
1053
|
+
o = e(...n);
|
|
1054
|
+
} finally {
|
|
1055
|
+
for (let e = Ai.length; e > a; e--) Mi();
|
|
1056
|
+
Tn(i), r._d && Pi(1);
|
|
1057
|
+
}
|
|
1058
|
+
return o;
|
|
1059
|
+
};
|
|
1060
|
+
return r._n = !0, r._c = !0, r._d = !0, r;
|
|
1061
|
+
}
|
|
1062
|
+
function Dn(e, n) {
|
|
1063
|
+
if (H === null) return e;
|
|
1064
|
+
let r = ga(H), i = e.dirs ||= [];
|
|
1065
|
+
for (let e = 0; e < n.length; e++) {
|
|
1066
|
+
let [a, o, s, c = t] = n[e];
|
|
1067
|
+
a && (h(a) && (a = {
|
|
1068
|
+
mounted: a,
|
|
1069
|
+
updated: a
|
|
1070
|
+
}), a.deep && nn(o), i.push({
|
|
1071
|
+
dir: a,
|
|
1072
|
+
instance: r,
|
|
1073
|
+
value: o,
|
|
1074
|
+
oldValue: void 0,
|
|
1075
|
+
arg: s,
|
|
1076
|
+
modifiers: c
|
|
1077
|
+
}));
|
|
1078
|
+
}
|
|
1079
|
+
return e;
|
|
1080
|
+
}
|
|
1081
|
+
function On(e, t, n, r) {
|
|
1082
|
+
let i = e.dirs, a = t && t.dirs;
|
|
1083
|
+
for (let o = 0; o < i.length; o++) {
|
|
1084
|
+
let s = i[o];
|
|
1085
|
+
a && (s.oldValue = a[o].value);
|
|
1086
|
+
let c = s.dir[r];
|
|
1087
|
+
c && (N(), an(c, n, 8, [
|
|
1088
|
+
e.el,
|
|
1089
|
+
s,
|
|
1090
|
+
e,
|
|
1091
|
+
t
|
|
1092
|
+
]), P());
|
|
1093
|
+
}
|
|
1094
|
+
}
|
|
1095
|
+
function kn(e, t) {
|
|
1096
|
+
if (Y) {
|
|
1097
|
+
let n = Y.provides, r = Y.parent && Y.parent.provides;
|
|
1098
|
+
r === n && (n = Y.provides = Object.create(r)), n[e] = t;
|
|
1099
|
+
}
|
|
1100
|
+
}
|
|
1101
|
+
function An(e, t, n = !1) {
|
|
1102
|
+
let r = ra();
|
|
1103
|
+
if (r || Rr) {
|
|
1104
|
+
let i = Rr ? Rr._context.provides : r ? r.parent == null || r.ce ? r.vnode.appContext && r.vnode.appContext.provides : r.parent.provides : void 0;
|
|
1105
|
+
if (i && e in i) return i[e];
|
|
1106
|
+
if (arguments.length > 1) return n && h(t) ? t.call(r && r.proxy) : t;
|
|
1107
|
+
}
|
|
1108
|
+
}
|
|
1109
|
+
var jn = /* @__PURE__ */ Symbol.for("v-scx"), Mn = () => An(jn);
|
|
1110
|
+
function Nn(e, t, n) {
|
|
1111
|
+
return Pn(e, t, n);
|
|
1112
|
+
}
|
|
1113
|
+
function Pn(e, n, i = t) {
|
|
1114
|
+
let { immediate: a, deep: o, flush: c, once: l } = i, u = s({}, i), d = n && a || !n && c !== "post", f;
|
|
1115
|
+
if (la) {
|
|
1116
|
+
if (c === "sync") {
|
|
1117
|
+
let e = Mn();
|
|
1118
|
+
f = e.__watcherHandles ||= [];
|
|
1119
|
+
} else if (!d) {
|
|
1120
|
+
let e = () => {};
|
|
1121
|
+
return e.stop = r, e.resume = r, e.pause = r, e;
|
|
1122
|
+
}
|
|
1123
|
+
}
|
|
1124
|
+
let p = Y;
|
|
1125
|
+
u.call = (e, t, n) => an(e, p, t, n);
|
|
1126
|
+
let m = !1;
|
|
1127
|
+
c === "post" ? u.scheduler = (e) => {
|
|
1128
|
+
e.i = p, W(e, p && p.suspense);
|
|
1129
|
+
} : c !== "sync" && (m = !0, u.scheduler = (e, t) => {
|
|
1130
|
+
t ? e() : hn(e);
|
|
1131
|
+
}), u.augmentJob = (e) => {
|
|
1132
|
+
n && (e.flags |= 4), m && (e.flags |= 2, p && (e.id = p.uid, e.i = p));
|
|
1133
|
+
};
|
|
1134
|
+
let h = tn(e, n, u);
|
|
1135
|
+
return la && (f ? f.push(h) : d && h()), h;
|
|
1136
|
+
}
|
|
1137
|
+
function Fn(e, t, n) {
|
|
1138
|
+
let r = this.proxy, i = g(e) ? e.includes(".") ? In(r, e) : () => r[e] : e.bind(r, r), a;
|
|
1139
|
+
h(t) ? a = t : (a = t.handler, n = t);
|
|
1140
|
+
let o = oa(this), s = Pn(i, a.bind(r), n);
|
|
1141
|
+
return o(), s;
|
|
1142
|
+
}
|
|
1143
|
+
function In(e, t) {
|
|
1144
|
+
let n = t.split(".");
|
|
1145
|
+
return () => {
|
|
1146
|
+
let t = e;
|
|
1147
|
+
for (let e = 0; e < n.length && t; e++) t = t[n[e]];
|
|
1148
|
+
return t;
|
|
1149
|
+
};
|
|
1150
|
+
}
|
|
1151
|
+
var Ln = /* @__PURE__ */ Symbol("_vte"), Rn = (e) => e.__isTeleport, zn = /* @__PURE__ */ Symbol("_leaveCb");
|
|
1152
|
+
function Bn(e) {
|
|
1153
|
+
let t = e[0];
|
|
1154
|
+
if (e.length > 1) {
|
|
1155
|
+
for (let n of e) if (n.type !== K) {
|
|
1156
|
+
t = n;
|
|
1157
|
+
break;
|
|
1158
|
+
}
|
|
1159
|
+
}
|
|
1160
|
+
return t;
|
|
1161
|
+
}
|
|
1162
|
+
function Vn(e) {
|
|
1163
|
+
if (!Zn(e)) return Rn(e.type) && e.children ? Bn(e.children) : e;
|
|
1164
|
+
if (e.component) return e.component.subTree;
|
|
1165
|
+
let { shapeFlag: t, children: n } = e;
|
|
1166
|
+
if (n) {
|
|
1167
|
+
if (t & 16) return n[0];
|
|
1168
|
+
if (t & 32 && h(n.default)) return n.default();
|
|
1169
|
+
}
|
|
1170
|
+
}
|
|
1171
|
+
function Hn(e, t) {
|
|
1172
|
+
if (e.shapeFlag & 6 && e.component) {
|
|
1173
|
+
e.transition = t;
|
|
1174
|
+
let n = e.component.subTree;
|
|
1175
|
+
Hn(Rn(n.type) && Vn(n) || n, t);
|
|
1176
|
+
} else if (e.shapeFlag & 128) e.ssContent.transition = t.clone(e.ssContent), e.ssFallback.transition = t.clone(e.ssFallback);
|
|
1177
|
+
else if (e.transition = t, e.type === G && d(e.children)) {
|
|
1178
|
+
let n = Gr(e.children, !1);
|
|
1179
|
+
n && Hn(n, t);
|
|
1180
|
+
}
|
|
1181
|
+
}
|
|
1182
|
+
function Un(e) {
|
|
1183
|
+
if (e.component) return Un(e.component.subTree);
|
|
1184
|
+
if (e.type === G) {
|
|
1185
|
+
let t = d(e.children) && Gr(e.children, !1);
|
|
1186
|
+
return t ? Un(t) : void 0;
|
|
1187
|
+
}
|
|
1188
|
+
if (e.type !== K) return e;
|
|
1189
|
+
}
|
|
1190
|
+
// @__NO_SIDE_EFFECTS__
|
|
1191
|
+
function Wn(e, t) {
|
|
1192
|
+
return h(e) ? /* @__PURE__ */ s({ name: e.name }, t, { setup: e }) : e;
|
|
1193
|
+
}
|
|
1194
|
+
function Gn(e) {
|
|
1195
|
+
e.ids = [
|
|
1196
|
+
e.ids[0] + e.ids[2]++ + "-",
|
|
1197
|
+
0,
|
|
1198
|
+
0
|
|
1199
|
+
];
|
|
1200
|
+
}
|
|
1201
|
+
function Kn(e, t) {
|
|
1202
|
+
let n;
|
|
1203
|
+
return !!((n = Object.getOwnPropertyDescriptor(e, t)) && !n.configurable);
|
|
1204
|
+
}
|
|
1205
|
+
var qn = /* @__PURE__ */ new WeakMap();
|
|
1206
|
+
function Jn(e, n, r, a, o = !1) {
|
|
1207
|
+
if (d(e)) {
|
|
1208
|
+
e.forEach((e, t) => Jn(e, n && (d(n) ? n[t] : n), r, a, o));
|
|
1209
|
+
return;
|
|
1210
|
+
}
|
|
1211
|
+
if (Xn(a) && !o) {
|
|
1212
|
+
a.shapeFlag & 512 && a.type.__asyncResolved && a.component.subTree.component && Jn(e, n, r, a.component.subTree);
|
|
1213
|
+
return;
|
|
1214
|
+
}
|
|
1215
|
+
let s = a.shapeFlag & 4 ? ga(a.component) : a.el, l = o ? null : s, { i: f, r: p } = e, m = n && n.r, _ = f.refs === t ? f.refs = {} : f.refs, v = f.setupState, y = /* @__PURE__ */ L(v), b = v === t ? i : (e) => !Kn(_, e) && u(y, e), x = (e, t) => !(t && Kn(_, t));
|
|
1216
|
+
if (m != null && m !== p) {
|
|
1217
|
+
if (Yn(n), g(m)) _[m] = null, b(m) && (v[m] = null);
|
|
1218
|
+
else if (/* @__PURE__ */ z(m)) {
|
|
1219
|
+
let e = n;
|
|
1220
|
+
x(m, e.k) && (m.value = null), e.k && (_[e.k] = null);
|
|
1221
|
+
}
|
|
1222
|
+
}
|
|
1223
|
+
if (h(p)) rn(p, f, 12, [l, _]);
|
|
1224
|
+
else {
|
|
1225
|
+
let t = g(p), n = /* @__PURE__ */ z(p);
|
|
1226
|
+
if (t || n) {
|
|
1227
|
+
let i = () => {
|
|
1228
|
+
if (e.f) {
|
|
1229
|
+
let n = t ? b(p) ? v[p] : _[p] : x(p) || !e.k ? p.value : _[e.k];
|
|
1230
|
+
if (o) d(n) && c(n, s);
|
|
1231
|
+
else if (d(n)) n.includes(s) || n.push(s);
|
|
1232
|
+
else if (t) _[p] = [s], b(p) && (v[p] = _[p]);
|
|
1233
|
+
else {
|
|
1234
|
+
let t = [s];
|
|
1235
|
+
x(p, e.k) && (p.value = t), e.k && (_[e.k] = t);
|
|
1236
|
+
}
|
|
1237
|
+
} else t ? (_[p] = l, b(p) && (v[p] = l)) : n && (x(p, e.k) && (p.value = l), e.k && (_[e.k] = l));
|
|
1238
|
+
};
|
|
1239
|
+
if (l) {
|
|
1240
|
+
let t = () => {
|
|
1241
|
+
i(), qn.delete(e);
|
|
1242
|
+
};
|
|
1243
|
+
t.id = -1, qn.set(e, t), W(t, r);
|
|
1244
|
+
} else Yn(e), i();
|
|
1245
|
+
}
|
|
1246
|
+
}
|
|
1247
|
+
}
|
|
1248
|
+
function Yn(e) {
|
|
1249
|
+
let t = qn.get(e);
|
|
1250
|
+
t && (t.flags |= 8, qn.delete(e));
|
|
1251
|
+
}
|
|
1252
|
+
le().requestIdleCallback, le().cancelIdleCallback;
|
|
1253
|
+
var Xn = (e) => !!e.type.__asyncLoader, Zn = (e) => e.type.__isKeepAlive;
|
|
1254
|
+
function Qn(e, t) {
|
|
1255
|
+
er(e, "a", t);
|
|
1256
|
+
}
|
|
1257
|
+
function $n(e, t) {
|
|
1258
|
+
er(e, "da", t);
|
|
1259
|
+
}
|
|
1260
|
+
function er(e, t, n = Y) {
|
|
1261
|
+
let r = e.__wdc ||= () => {
|
|
1262
|
+
let t = n;
|
|
1263
|
+
for (; t;) {
|
|
1264
|
+
if (t.isDeactivated) return;
|
|
1265
|
+
t = t.parent;
|
|
1266
|
+
}
|
|
1267
|
+
return e();
|
|
1268
|
+
};
|
|
1269
|
+
if (nr(t, r, n), n) {
|
|
1270
|
+
let e = n.parent;
|
|
1271
|
+
for (; e && e.parent;) Zn(e.parent.vnode) && tr(r, t, n, e), e = e.parent;
|
|
1272
|
+
}
|
|
1273
|
+
}
|
|
1274
|
+
function tr(e, t, n, r) {
|
|
1275
|
+
let i = nr(t, e, r, !0);
|
|
1276
|
+
lr(() => {
|
|
1277
|
+
c(r[t], i);
|
|
1278
|
+
}, n);
|
|
1279
|
+
}
|
|
1280
|
+
function nr(e, t, n = Y, r = !1) {
|
|
1281
|
+
if (n) {
|
|
1282
|
+
let i = n[e] || (n[e] = []), a = t.__weh ||= (...r) => {
|
|
1283
|
+
N();
|
|
1284
|
+
let i = oa(n), a = an(t, n, e, r);
|
|
1285
|
+
return i(), P(), a;
|
|
1286
|
+
};
|
|
1287
|
+
return r ? i.unshift(a) : i.push(a), a;
|
|
1288
|
+
}
|
|
1289
|
+
}
|
|
1290
|
+
var rr = (e) => (t, n = Y) => {
|
|
1291
|
+
la && e !== "sp" || nr(e, (...e) => t(...e), n);
|
|
1292
|
+
}, ir = rr("bm"), ar = rr("m"), or = rr("bu"), sr = rr("u"), cr = rr("bum"), lr = rr("um"), ur = rr("sp"), dr = rr("rtg"), fr = rr("rtc");
|
|
1293
|
+
function pr(e, t = Y) {
|
|
1294
|
+
nr("ec", e, t);
|
|
1295
|
+
}
|
|
1296
|
+
var mr = /* @__PURE__ */ Symbol.for("v-ndc");
|
|
1297
|
+
function hr(e, t, n, r) {
|
|
1298
|
+
let i, a = n && n[r], o = d(e);
|
|
1299
|
+
if (o || g(e)) {
|
|
1300
|
+
let n = o && /* @__PURE__ */ Lt(e), r = !1, s = !1;
|
|
1301
|
+
n && (r = !/* @__PURE__ */ I(e), s = /* @__PURE__ */ Rt(e), e = et(e)), i = Array(e.length);
|
|
1302
|
+
for (let n = 0, o = e.length; n < o; n++) i[n] = t(r ? s ? Vt(R(e[n])) : R(e[n]) : e[n], n, void 0, a && a[n]);
|
|
1303
|
+
} else if (typeof e == "number") {
|
|
1304
|
+
if (!Number.isInteger(e) || e < 0) i = [];
|
|
1305
|
+
else {
|
|
1306
|
+
i = Array(e);
|
|
1307
|
+
for (let n = 0; n < e; n++) i[n] = t(n + 1, n, void 0, a && a[n]);
|
|
1308
|
+
}
|
|
1309
|
+
} else if (v(e)) {
|
|
1310
|
+
if (e[Symbol.iterator]) i = Array.from(e, (e, n) => t(e, n, void 0, a && a[n]));
|
|
1311
|
+
else {
|
|
1312
|
+
let n = Object.keys(e);
|
|
1313
|
+
i = Array(n.length);
|
|
1314
|
+
for (let r = 0, o = n.length; r < o; r++) {
|
|
1315
|
+
let o = n[r];
|
|
1316
|
+
i[r] = t(e[o], o, r, a && a[r]);
|
|
1317
|
+
}
|
|
1318
|
+
}
|
|
1319
|
+
} else i = [];
|
|
1320
|
+
return n && (n[r] = i), i;
|
|
1321
|
+
}
|
|
1322
|
+
var gr = (e) => e ? ca(e) ? ga(e) : gr(e.parent) : null, _r = /* @__PURE__ */ s(/* @__PURE__ */ Object.create(null), {
|
|
1323
|
+
$: (e) => e,
|
|
1324
|
+
$el: (e) => e.vnode.el,
|
|
1325
|
+
$data: (e) => e.data,
|
|
1326
|
+
$props: (e) => e.props,
|
|
1327
|
+
$attrs: (e) => e.attrs,
|
|
1328
|
+
$slots: (e) => e.slots,
|
|
1329
|
+
$refs: (e) => e.refs,
|
|
1330
|
+
$parent: (e) => gr(e.parent),
|
|
1331
|
+
$root: (e) => gr(e.root),
|
|
1332
|
+
$host: (e) => e.ce,
|
|
1333
|
+
$emit: (e) => e.emit,
|
|
1334
|
+
$options: (e) => Er(e),
|
|
1335
|
+
$forceUpdate: (e) => e.f ||= () => {
|
|
1336
|
+
hn(e.update);
|
|
1337
|
+
},
|
|
1338
|
+
$nextTick: (e) => e.n ||= pn.bind(e.proxy),
|
|
1339
|
+
$watch: (e) => Fn.bind(e)
|
|
1340
|
+
}), vr = (e, n) => e !== t && !e.__isScriptSetup && u(e, n), yr = {
|
|
1341
|
+
get({ _: e }, n) {
|
|
1342
|
+
if (n === "__v_skip") return !0;
|
|
1343
|
+
let { ctx: r, setupState: i, data: a, props: o, accessCache: s, type: c, appContext: l } = e;
|
|
1344
|
+
if (n[0] !== "$") {
|
|
1345
|
+
let e = s[n];
|
|
1346
|
+
if (e !== void 0) switch (e) {
|
|
1347
|
+
case 1: return i[n];
|
|
1348
|
+
case 2: return a[n];
|
|
1349
|
+
case 4: return r[n];
|
|
1350
|
+
case 3: return o[n];
|
|
1351
|
+
}
|
|
1352
|
+
else if (vr(i, n)) return s[n] = 1, i[n];
|
|
1353
|
+
else if (a !== t && u(a, n)) return s[n] = 2, a[n];
|
|
1354
|
+
else if (u(o, n)) return s[n] = 3, o[n];
|
|
1355
|
+
else if (r !== t && u(r, n)) return s[n] = 4, r[n];
|
|
1356
|
+
else xr && (s[n] = 0);
|
|
1357
|
+
}
|
|
1358
|
+
let d = _r[n], f, p;
|
|
1359
|
+
if (d) return n === "$attrs" && F(e.attrs, "get", ""), d(e);
|
|
1360
|
+
if ((f = c.__cssModules) && (f = f[n])) return f;
|
|
1361
|
+
if (r !== t && u(r, n)) return s[n] = 4, r[n];
|
|
1362
|
+
if (p = l.config.globalProperties, u(p, n)) return p[n];
|
|
1363
|
+
},
|
|
1364
|
+
set({ _: e }, n, r) {
|
|
1365
|
+
let { data: i, setupState: a, ctx: o } = e;
|
|
1366
|
+
return vr(a, n) ? (a[n] = r, !0) : i !== t && u(i, n) ? (i[n] = r, !0) : u(e.props, n) || n[0] === "$" && n.slice(1) in e ? !1 : (o[n] = r, !0);
|
|
1367
|
+
},
|
|
1368
|
+
has({ _: { data: e, setupState: n, accessCache: r, ctx: i, appContext: a, props: o, type: s } }, c) {
|
|
1369
|
+
let l;
|
|
1370
|
+
return !!(r[c] || e !== t && c[0] !== "$" && u(e, c) || vr(n, c) || u(o, c) || u(i, c) || u(_r, c) || u(a.config.globalProperties, c) || (l = s.__cssModules) && l[c]);
|
|
1371
|
+
},
|
|
1372
|
+
defineProperty(e, t, n) {
|
|
1373
|
+
return n.get == null ? u(n, "value") && this.set(e, t, n.value, null) : e._.accessCache[t] = 0, Reflect.defineProperty(e, t, n);
|
|
1374
|
+
}
|
|
1375
|
+
};
|
|
1376
|
+
function br(e) {
|
|
1377
|
+
return d(e) ? e.reduce((e, t) => (e[t] = null, e), {}) : e;
|
|
1378
|
+
}
|
|
1379
|
+
var xr = !0;
|
|
1380
|
+
function Sr(e) {
|
|
1381
|
+
let t = Er(e), n = e.proxy, i = e.ctx;
|
|
1382
|
+
xr = !1, t.beforeCreate && wr(t.beforeCreate, e, "bc");
|
|
1383
|
+
let { data: a, computed: o, methods: s, watch: c, provide: l, inject: u, created: f, beforeMount: p, mounted: m, beforeUpdate: g, updated: _, activated: y, deactivated: b, beforeDestroy: x, beforeUnmount: S, destroyed: C, unmounted: w, render: ee, renderTracked: te, renderTriggered: ne, errorCaptured: T, serverPrefetch: re, expose: E, inheritAttrs: ie, components: ae, directives: D, filters: oe } = t;
|
|
1384
|
+
if (u && Cr(u, i, null), s) for (let e in s) {
|
|
1385
|
+
let t = s[e];
|
|
1386
|
+
h(t) && (i[e] = t.bind(n));
|
|
1387
|
+
}
|
|
1388
|
+
if (a) {
|
|
1389
|
+
let t = a.call(n, n);
|
|
1390
|
+
v(t) && (e.data = /* @__PURE__ */ Nt(t));
|
|
1391
|
+
}
|
|
1392
|
+
if (xr = !0, o) for (let e in o) {
|
|
1393
|
+
let t = o[e], a = va({
|
|
1394
|
+
get: h(t) ? t.bind(n, n) : h(t.get) ? t.get.bind(n, n) : r,
|
|
1395
|
+
set: !h(t) && h(t.set) ? t.set.bind(n) : r
|
|
1396
|
+
});
|
|
1397
|
+
Object.defineProperty(i, e, {
|
|
1398
|
+
enumerable: !0,
|
|
1399
|
+
configurable: !0,
|
|
1400
|
+
get: () => a.value,
|
|
1401
|
+
set: (e) => a.value = e
|
|
1402
|
+
});
|
|
1403
|
+
}
|
|
1404
|
+
if (c) for (let e in c) Tr(c[e], i, n, e);
|
|
1405
|
+
if (l) {
|
|
1406
|
+
let e = h(l) ? l.call(n) : l;
|
|
1407
|
+
Reflect.ownKeys(e).forEach((t) => {
|
|
1408
|
+
kn(t, e[t]);
|
|
1409
|
+
});
|
|
1410
|
+
}
|
|
1411
|
+
f && wr(f, e, "c");
|
|
1412
|
+
function O(e, t) {
|
|
1413
|
+
d(t) ? t.forEach((t) => e(t.bind(n))) : t && e(t.bind(n));
|
|
1414
|
+
}
|
|
1415
|
+
if (O(ir, p), O(ar, m), O(or, g), O(sr, _), O(Qn, y), O($n, b), O(pr, T), O(fr, te), O(dr, ne), O(cr, S), O(lr, w), O(ur, re), d(E)) {
|
|
1416
|
+
if (E.length) {
|
|
1417
|
+
let t = e.exposed ||= {};
|
|
1418
|
+
E.forEach((e) => {
|
|
1419
|
+
Object.defineProperty(t, e, {
|
|
1420
|
+
get: () => n[e],
|
|
1421
|
+
set: (t) => n[e] = t,
|
|
1422
|
+
enumerable: !0
|
|
1423
|
+
});
|
|
1424
|
+
});
|
|
1425
|
+
} else e.exposed ||= {};
|
|
1426
|
+
}
|
|
1427
|
+
ee && e.render === r && (e.render = ee), ie != null && (e.inheritAttrs = ie), ae && (e.components = ae), D && (e.directives = D), re && Gn(e);
|
|
1428
|
+
}
|
|
1429
|
+
function Cr(e, t, n = r) {
|
|
1430
|
+
d(e) && (e = jr(e));
|
|
1431
|
+
for (let n in e) {
|
|
1432
|
+
let r = e[n], i;
|
|
1433
|
+
i = v(r) ? "default" in r ? An(r.from || n, r.default, !0) : An(r.from || n) : An(r), /* @__PURE__ */ z(i) ? Object.defineProperty(t, n, {
|
|
1434
|
+
enumerable: !0,
|
|
1435
|
+
configurable: !0,
|
|
1436
|
+
get: () => i.value,
|
|
1437
|
+
set: (e) => i.value = e
|
|
1438
|
+
}) : t[n] = i;
|
|
1439
|
+
}
|
|
1440
|
+
}
|
|
1441
|
+
function wr(e, t, n) {
|
|
1442
|
+
an(d(e) ? e.map((e) => e.bind(t.proxy)) : e.bind(t.proxy), t, n);
|
|
1443
|
+
}
|
|
1444
|
+
function Tr(e, t, n, r) {
|
|
1445
|
+
let i = r.includes(".") ? In(n, r) : () => n[r];
|
|
1446
|
+
if (g(e)) {
|
|
1447
|
+
let n = t[e];
|
|
1448
|
+
h(n) && Nn(i, n);
|
|
1449
|
+
} else if (h(e)) Nn(i, e.bind(n));
|
|
1450
|
+
else if (v(e)) {
|
|
1451
|
+
if (d(e)) e.forEach((e) => Tr(e, t, n, r));
|
|
1452
|
+
else {
|
|
1453
|
+
let r = h(e.handler) ? e.handler.bind(n) : t[e.handler];
|
|
1454
|
+
h(r) && Nn(i, r, e);
|
|
1455
|
+
}
|
|
1456
|
+
}
|
|
1457
|
+
}
|
|
1458
|
+
function Er(e) {
|
|
1459
|
+
let t = e.type, { mixins: n, extends: r } = t, { mixins: i, optionsCache: a, config: { optionMergeStrategies: o } } = e.appContext, s = a.get(t), c;
|
|
1460
|
+
return s ? c = s : !i.length && !n && !r ? c = t : (c = {}, i.length && i.forEach((e) => Dr(c, e, o, !0)), Dr(c, t, o)), v(t) && a.set(t, c), c;
|
|
1461
|
+
}
|
|
1462
|
+
function Dr(e, t, n, r = !1) {
|
|
1463
|
+
let { mixins: i, extends: a } = t;
|
|
1464
|
+
a && Dr(e, a, n, !0), i && i.forEach((t) => Dr(e, t, n, !0));
|
|
1465
|
+
for (let i in t) if (!(r && i === "expose")) {
|
|
1466
|
+
let r = Or[i] || n && n[i];
|
|
1467
|
+
e[i] = r ? r(e[i], t[i]) : t[i];
|
|
1468
|
+
}
|
|
1469
|
+
return e;
|
|
1470
|
+
}
|
|
1471
|
+
var Or = {
|
|
1472
|
+
data: kr,
|
|
1473
|
+
props: Nr,
|
|
1474
|
+
emits: Nr,
|
|
1475
|
+
methods: Mr,
|
|
1476
|
+
computed: Mr,
|
|
1477
|
+
beforeCreate: U,
|
|
1478
|
+
created: U,
|
|
1479
|
+
beforeMount: U,
|
|
1480
|
+
mounted: U,
|
|
1481
|
+
beforeUpdate: U,
|
|
1482
|
+
updated: U,
|
|
1483
|
+
beforeDestroy: U,
|
|
1484
|
+
beforeUnmount: U,
|
|
1485
|
+
destroyed: U,
|
|
1486
|
+
unmounted: U,
|
|
1487
|
+
activated: U,
|
|
1488
|
+
deactivated: U,
|
|
1489
|
+
errorCaptured: U,
|
|
1490
|
+
serverPrefetch: U,
|
|
1491
|
+
components: Mr,
|
|
1492
|
+
directives: Mr,
|
|
1493
|
+
watch: Pr,
|
|
1494
|
+
provide: kr,
|
|
1495
|
+
inject: Ar
|
|
1496
|
+
};
|
|
1497
|
+
function kr(e, t) {
|
|
1498
|
+
return t ? e ? function() {
|
|
1499
|
+
return s(h(e) ? e.call(this, this) : e, h(t) ? t.call(this, this) : t);
|
|
1500
|
+
} : t : e;
|
|
1501
|
+
}
|
|
1502
|
+
function Ar(e, t) {
|
|
1503
|
+
return Mr(jr(e), jr(t));
|
|
1504
|
+
}
|
|
1505
|
+
function jr(e) {
|
|
1506
|
+
if (d(e)) {
|
|
1507
|
+
let t = {};
|
|
1508
|
+
for (let n = 0; n < e.length; n++) t[e[n]] = e[n];
|
|
1509
|
+
return t;
|
|
1510
|
+
}
|
|
1511
|
+
return e;
|
|
1512
|
+
}
|
|
1513
|
+
function U(e, t) {
|
|
1514
|
+
return e ? [...new Set([].concat(e, t))] : t;
|
|
1515
|
+
}
|
|
1516
|
+
function Mr(e, t) {
|
|
1517
|
+
return e ? s(/* @__PURE__ */ Object.create(null), e, t) : t;
|
|
1518
|
+
}
|
|
1519
|
+
function Nr(e, t) {
|
|
1520
|
+
return e ? d(e) && d(t) ? [.../* @__PURE__ */ new Set([...e, ...t])] : s(/* @__PURE__ */ Object.create(null), br(e), br(t ?? {})) : t;
|
|
1521
|
+
}
|
|
1522
|
+
function Pr(e, t) {
|
|
1523
|
+
if (!e) return t;
|
|
1524
|
+
if (!t) return e;
|
|
1525
|
+
let n = s(/* @__PURE__ */ Object.create(null), e);
|
|
1526
|
+
for (let r in t) n[r] = U(e[r], t[r]);
|
|
1527
|
+
return n;
|
|
1528
|
+
}
|
|
1529
|
+
function Fr() {
|
|
1530
|
+
return {
|
|
1531
|
+
app: null,
|
|
1532
|
+
config: {
|
|
1533
|
+
isNativeTag: i,
|
|
1534
|
+
performance: !1,
|
|
1535
|
+
globalProperties: {},
|
|
1536
|
+
optionMergeStrategies: {},
|
|
1537
|
+
errorHandler: void 0,
|
|
1538
|
+
warnHandler: void 0,
|
|
1539
|
+
compilerOptions: {}
|
|
1540
|
+
},
|
|
1541
|
+
mixins: [],
|
|
1542
|
+
components: {},
|
|
1543
|
+
directives: {},
|
|
1544
|
+
provides: /* @__PURE__ */ Object.create(null),
|
|
1545
|
+
optionsCache: /* @__PURE__ */ new WeakMap(),
|
|
1546
|
+
propsCache: /* @__PURE__ */ new WeakMap(),
|
|
1547
|
+
emitsCache: /* @__PURE__ */ new WeakMap()
|
|
1548
|
+
};
|
|
1549
|
+
}
|
|
1550
|
+
var Ir = 0;
|
|
1551
|
+
function Lr(e, t) {
|
|
1552
|
+
return function(n, r = null) {
|
|
1553
|
+
h(n) || (n = s({}, n)), r != null && !v(r) && (r = null);
|
|
1554
|
+
let i = Fr(), a = /* @__PURE__ */ new WeakSet(), o = [], c = !1, l = i.app = {
|
|
1555
|
+
_uid: Ir++,
|
|
1556
|
+
_component: n,
|
|
1557
|
+
_props: r,
|
|
1558
|
+
_container: null,
|
|
1559
|
+
_context: i,
|
|
1560
|
+
_instance: null,
|
|
1561
|
+
version: ba,
|
|
1562
|
+
get config() {
|
|
1563
|
+
return i.config;
|
|
1564
|
+
},
|
|
1565
|
+
set config(e) {},
|
|
1566
|
+
use(e, ...t) {
|
|
1567
|
+
return a.has(e) || (e && h(e.install) ? (a.add(e), e.install(l, ...t)) : h(e) && (a.add(e), e(l, ...t))), l;
|
|
1568
|
+
},
|
|
1569
|
+
mixin(e) {
|
|
1570
|
+
return i.mixins.includes(e) || i.mixins.push(e), l;
|
|
1571
|
+
},
|
|
1572
|
+
component(e, t) {
|
|
1573
|
+
return t ? (i.components[e] = t, l) : i.components[e];
|
|
1574
|
+
},
|
|
1575
|
+
directive(e, t) {
|
|
1576
|
+
return t ? (i.directives[e] = t, l) : i.directives[e];
|
|
1577
|
+
},
|
|
1578
|
+
mount(a, o, s) {
|
|
1579
|
+
if (!c) {
|
|
1580
|
+
let u = l._ceVNode || J(n, r);
|
|
1581
|
+
return u.appContext = i, s === !0 ? s = "svg" : s === !1 && (s = void 0), o && t ? t(u, a) : e(u, a, s), c = !0, l._container = a, a.__vue_app__ = l, ga(u.component);
|
|
1582
|
+
}
|
|
1583
|
+
},
|
|
1584
|
+
onUnmount(e) {
|
|
1585
|
+
o.push(e);
|
|
1586
|
+
},
|
|
1587
|
+
unmount() {
|
|
1588
|
+
c && (an(o, l._instance, 16), e(null, l._container), delete l._container.__vue_app__);
|
|
1589
|
+
},
|
|
1590
|
+
provide(e, t) {
|
|
1591
|
+
return i.provides[e] = t, l;
|
|
1592
|
+
},
|
|
1593
|
+
runWithContext(e) {
|
|
1594
|
+
let t = Rr;
|
|
1595
|
+
Rr = l;
|
|
1596
|
+
try {
|
|
1597
|
+
return e();
|
|
1598
|
+
} finally {
|
|
1599
|
+
Rr = t;
|
|
1600
|
+
}
|
|
1601
|
+
}
|
|
1602
|
+
};
|
|
1603
|
+
return l;
|
|
1604
|
+
};
|
|
1605
|
+
}
|
|
1606
|
+
var Rr = null, zr = (e, t) => t === "modelValue" || t === "model-value" ? e.modelModifiers : e[`${t}Modifiers`] || e[`${T(t)}Modifiers`] || e[`${E(t)}Modifiers`];
|
|
1607
|
+
function Br(e, n, ...r) {
|
|
1608
|
+
if (e.isUnmounted) return;
|
|
1609
|
+
let i = e.vnode.props || t, a = r, o = n.startsWith("update:"), s = o && zr(i, n.slice(7));
|
|
1610
|
+
s && (s.trim && (a = r.map((e) => g(e) ? e.trim() : e)), s.number && (a = a.map(se)));
|
|
1611
|
+
let c, l = i[c = ae(n)] || i[c = ae(T(n))];
|
|
1612
|
+
!l && o && (l = i[c = ae(E(n))]), l && an(l, e, 6, a);
|
|
1613
|
+
let u = i[c + "Once"];
|
|
1614
|
+
if (u) {
|
|
1615
|
+
if (!e.emitted) e.emitted = {};
|
|
1616
|
+
else if (e.emitted[c]) return;
|
|
1617
|
+
e.emitted[c] = !0, an(u, e, 6, a);
|
|
1618
|
+
}
|
|
1619
|
+
}
|
|
1620
|
+
var Vr = /* @__PURE__ */ new WeakMap();
|
|
1621
|
+
function Hr(e, t, n = !1) {
|
|
1622
|
+
let r = n ? Vr : t.emitsCache, i = r.get(e);
|
|
1623
|
+
if (i !== void 0) return i;
|
|
1624
|
+
let a = e.emits, o = {}, c = !1;
|
|
1625
|
+
if (!h(e)) {
|
|
1626
|
+
let r = (e) => {
|
|
1627
|
+
let n = Hr(e, t, !0);
|
|
1628
|
+
n && (c = !0, s(o, n));
|
|
1629
|
+
};
|
|
1630
|
+
!n && t.mixins.length && t.mixins.forEach(r), e.extends && r(e.extends), e.mixins && e.mixins.forEach(r);
|
|
1631
|
+
}
|
|
1632
|
+
return !a && !c ? (v(e) && r.set(e, null), null) : (d(a) ? a.forEach((e) => o[e] = null) : s(o, a), v(e) && r.set(e, o), o);
|
|
1633
|
+
}
|
|
1634
|
+
function Ur(e, t) {
|
|
1635
|
+
return !e || !a(t) ? !1 : (t = t.slice(2), t = t === "Once" ? t : t.replace(/Once$/, ""), u(e, t[0].toLowerCase() + t.slice(1)) || u(e, E(t)) || u(e, t));
|
|
1636
|
+
}
|
|
1637
|
+
function Wr(e) {
|
|
1638
|
+
let { type: t, vnode: n, proxy: r, withProxy: i, propsOptions: [a], slots: s, attrs: c, emit: l, render: u, renderCache: d, props: f, data: p, setupState: m, ctx: h, inheritAttrs: g } = e, _ = Tn(e), v, y;
|
|
1639
|
+
try {
|
|
1640
|
+
if (n.shapeFlag & 4) {
|
|
1641
|
+
let e = i || r, t = e;
|
|
1642
|
+
v = Ji(u.call(t, e, d, f, m, p, h)), y = c;
|
|
1643
|
+
} else {
|
|
1644
|
+
let e = t;
|
|
1645
|
+
v = Ji(e.length > 1 ? e(f, {
|
|
1646
|
+
attrs: c,
|
|
1647
|
+
slots: s,
|
|
1648
|
+
emit: l
|
|
1649
|
+
}) : e(f, null)), y = t.props ? c : Kr(c);
|
|
1650
|
+
}
|
|
1651
|
+
} catch (t) {
|
|
1652
|
+
Ai.length = 0, on(t, e, 1), v = J(K);
|
|
1653
|
+
}
|
|
1654
|
+
let b = v;
|
|
1655
|
+
if (y && g !== !1) {
|
|
1656
|
+
let e = Object.keys(y), { shapeFlag: t } = b;
|
|
1657
|
+
e.length && t & 7 && (a && e.some(o) && (y = qr(y, a)), b = Gi(b, y, !1, !0));
|
|
1658
|
+
}
|
|
1659
|
+
return n.dirs && (b = Gi(b, null, !1, !0), b.dirs = b.dirs ? b.dirs.concat(n.dirs) : n.dirs), n.transition && Hn(Rn(b.type) && Vn(b) || b, n.transition), v = b, Tn(_), v;
|
|
1660
|
+
}
|
|
1661
|
+
function Gr(e, t = !0) {
|
|
1662
|
+
let n;
|
|
1663
|
+
for (let t = 0; t < e.length; t++) {
|
|
1664
|
+
let r = e[t];
|
|
1665
|
+
if (Ri(r)) {
|
|
1666
|
+
if (r.type !== K || r.children === "v-if") {
|
|
1667
|
+
if (n) return;
|
|
1668
|
+
n = r;
|
|
1669
|
+
}
|
|
1670
|
+
} else return;
|
|
1671
|
+
}
|
|
1672
|
+
return n;
|
|
1673
|
+
}
|
|
1674
|
+
var Kr = (e) => {
|
|
1675
|
+
let t;
|
|
1676
|
+
for (let n in e) (n === "class" || n === "style" || a(n)) && ((t ||= {})[n] = e[n]);
|
|
1677
|
+
return t;
|
|
1678
|
+
}, qr = (e, t) => {
|
|
1679
|
+
let n = {};
|
|
1680
|
+
for (let r in e) o(r) && r.slice(9) in t || (n[r] = e[r]);
|
|
1681
|
+
return n;
|
|
1682
|
+
};
|
|
1683
|
+
function Jr(e, t, n) {
|
|
1684
|
+
let { props: r, children: i, component: a } = e, { props: o, children: s, patchFlag: c } = t, l = a.emitsOptions;
|
|
1685
|
+
if (t.dirs || t.transition) return !0;
|
|
1686
|
+
if (n && c >= 0) {
|
|
1687
|
+
if (c & 1024) return !0;
|
|
1688
|
+
if (c & 16) return r ? Yr(r, o, l) : !!o;
|
|
1689
|
+
if (c & 8) {
|
|
1690
|
+
let e = t.dynamicProps;
|
|
1691
|
+
for (let t = 0; t < e.length; t++) {
|
|
1692
|
+
let n = e[t];
|
|
1693
|
+
if (Xr(o, r, n) && !Ur(l, n)) return !0;
|
|
1694
|
+
}
|
|
1695
|
+
}
|
|
1696
|
+
} else return (i || s) && (!s || !s.$stable) ? !0 : r === o ? !1 : r ? !o || Yr(r, o, l) : !!o;
|
|
1697
|
+
return !1;
|
|
1698
|
+
}
|
|
1699
|
+
function Yr(e, t, n) {
|
|
1700
|
+
let r = Object.keys(t);
|
|
1701
|
+
if (r.length !== Object.keys(e).length) return !0;
|
|
1702
|
+
for (let i = 0; i < r.length; i++) {
|
|
1703
|
+
let a = r[i];
|
|
1704
|
+
if (!u(e, a) || Xr(t, e, a) && !Ur(n, a)) return !0;
|
|
1705
|
+
}
|
|
1706
|
+
return !1;
|
|
1707
|
+
}
|
|
1708
|
+
function Xr(e, t, n) {
|
|
1709
|
+
let r = e[n], i = t[n];
|
|
1710
|
+
return n === "style" && v(r) && v(i) ? !xe(r, i) : r !== i;
|
|
1711
|
+
}
|
|
1712
|
+
function Zr({ vnode: e, parent: t, suspense: n }, r) {
|
|
1713
|
+
for (; t;) {
|
|
1714
|
+
let n = t.subTree;
|
|
1715
|
+
if (n.suspense && n.suspense.activeBranch === e && (n.suspense.vnode.el = n.el = r, e = n), n === e) (e = t.vnode).el = r, t = t.parent;
|
|
1716
|
+
else break;
|
|
1717
|
+
}
|
|
1718
|
+
n && n.activeBranch === e && (n.vnode.el = r);
|
|
1719
|
+
}
|
|
1720
|
+
var Qr = {}, $r = () => Object.create(Qr), ei = (e) => Object.getPrototypeOf(e) === Qr;
|
|
1721
|
+
function ti(e, t, n, r = !1) {
|
|
1722
|
+
let i = {}, a = $r();
|
|
1723
|
+
e.propsDefaults = /* @__PURE__ */ Object.create(null), ri(e, t, i, a);
|
|
1724
|
+
for (let t in e.propsOptions[0]) t in i || (i[t] = void 0);
|
|
1725
|
+
e.props = n ? r ? i : /* @__PURE__ */ Pt(i) : e.type.props ? i : a, e.attrs = a;
|
|
1726
|
+
}
|
|
1727
|
+
function ni(e, t, n, r) {
|
|
1728
|
+
let { props: i, attrs: a, vnode: { patchFlag: o } } = e, s = /* @__PURE__ */ L(i), [c] = e.propsOptions, l = !1;
|
|
1729
|
+
if ((r || o > 0) && !(o & 16)) {
|
|
1730
|
+
if (o & 8) {
|
|
1731
|
+
let n = e.vnode.dynamicProps;
|
|
1732
|
+
for (let r = 0; r < n.length; r++) {
|
|
1733
|
+
let o = n[r];
|
|
1734
|
+
if (Ur(e.emitsOptions, o)) continue;
|
|
1735
|
+
let d = t[o];
|
|
1736
|
+
if (c) {
|
|
1737
|
+
if (u(a, o)) d !== a[o] && (a[o] = d, l = !0);
|
|
1738
|
+
else {
|
|
1739
|
+
let t = T(o);
|
|
1740
|
+
i[t] = ii(c, s, t, d, e, !1);
|
|
1741
|
+
}
|
|
1742
|
+
} else d !== a[o] && (a[o] = d, l = !0);
|
|
1743
|
+
}
|
|
1744
|
+
}
|
|
1745
|
+
} else {
|
|
1746
|
+
ri(e, t, i, a) && (l = !0);
|
|
1747
|
+
let r;
|
|
1748
|
+
for (let a in s) t && (u(t, a) || (r = E(a)) !== a && u(t, r)) || (c ? n && (n[a] !== void 0 || n[r] !== void 0) && (i[a] = ii(c, s, a, void 0, e, !0)) : delete i[a]);
|
|
1749
|
+
if (a !== s) for (let e in a) t && u(t, e) || (delete a[e], l = !0);
|
|
1750
|
+
}
|
|
1751
|
+
l && Qe(e.attrs, "set", "");
|
|
1752
|
+
}
|
|
1753
|
+
function ri(e, n, r, i) {
|
|
1754
|
+
let [a, o] = e.propsOptions, s = !1, c;
|
|
1755
|
+
if (n) for (let t in n) {
|
|
1756
|
+
if (ee(t)) continue;
|
|
1757
|
+
let l = n[t], d;
|
|
1758
|
+
a && u(a, d = T(t)) ? !o || !o.includes(d) ? r[d] = l : (c ||= {})[d] = l : Ur(e.emitsOptions, t) || t in i && l === i[t] || (i[t] = l, s = !0);
|
|
1759
|
+
}
|
|
1760
|
+
if (o) {
|
|
1761
|
+
let n = /* @__PURE__ */ L(r), i = c || t;
|
|
1762
|
+
for (let t = 0; t < o.length; t++) {
|
|
1763
|
+
let s = o[t];
|
|
1764
|
+
r[s] = ii(a, n, s, i[s], e, !u(i, s));
|
|
1765
|
+
}
|
|
1766
|
+
}
|
|
1767
|
+
return s;
|
|
1768
|
+
}
|
|
1769
|
+
function ii(e, t, n, r, i, a) {
|
|
1770
|
+
let o = e[n];
|
|
1771
|
+
if (o != null) {
|
|
1772
|
+
let e = u(o, "default");
|
|
1773
|
+
if (e && r === void 0) {
|
|
1774
|
+
let e = o.default;
|
|
1775
|
+
if (o.type !== Function && !o.skipFactory && h(e)) {
|
|
1776
|
+
let { propsDefaults: a } = i;
|
|
1777
|
+
if (n in a) r = a[n];
|
|
1778
|
+
else {
|
|
1779
|
+
let o = oa(i);
|
|
1780
|
+
r = a[n] = e.call(null, t), o();
|
|
1781
|
+
}
|
|
1782
|
+
} else r = e;
|
|
1783
|
+
i.ce && i.ce._setProp(n, r);
|
|
1784
|
+
}
|
|
1785
|
+
o[0] && (a && !e ? r = !1 : o[1] && (r === "" || r === E(n)) && (r = !0));
|
|
1786
|
+
}
|
|
1787
|
+
return r;
|
|
1788
|
+
}
|
|
1789
|
+
var ai = /* @__PURE__ */ new WeakMap();
|
|
1790
|
+
function oi(e, r, i = !1) {
|
|
1791
|
+
let a = i ? ai : r.propsCache, o = a.get(e);
|
|
1792
|
+
if (o) return o;
|
|
1793
|
+
let c = e.props, l = {}, f = [], p = !1;
|
|
1794
|
+
if (!h(e)) {
|
|
1795
|
+
let t = (e) => {
|
|
1796
|
+
p = !0;
|
|
1797
|
+
let [t, n] = oi(e, r, !0);
|
|
1798
|
+
s(l, t), n && f.push(...n);
|
|
1799
|
+
};
|
|
1800
|
+
!i && r.mixins.length && r.mixins.forEach(t), e.extends && t(e.extends), e.mixins && e.mixins.forEach(t);
|
|
1801
|
+
}
|
|
1802
|
+
if (!c && !p) return v(e) && a.set(e, n), n;
|
|
1803
|
+
if (d(c)) for (let e = 0; e < c.length; e++) {
|
|
1804
|
+
let n = T(c[e]);
|
|
1805
|
+
si(n) && (l[n] = t);
|
|
1806
|
+
}
|
|
1807
|
+
else if (c) for (let e in c) {
|
|
1808
|
+
let t = T(e);
|
|
1809
|
+
if (si(t)) {
|
|
1810
|
+
let n = c[e], r = l[t] = d(n) || h(n) ? { type: n } : s({}, n), i = r.type, a = !1, o = !0;
|
|
1811
|
+
if (d(i)) for (let e = 0; e < i.length; ++e) {
|
|
1812
|
+
let t = i[e], n = h(t) && t.name;
|
|
1813
|
+
if (n === "Boolean") {
|
|
1814
|
+
a = !0;
|
|
1815
|
+
break;
|
|
1816
|
+
}
|
|
1817
|
+
n === "String" && (o = !1);
|
|
1818
|
+
}
|
|
1819
|
+
else a = h(i) && i.name === "Boolean";
|
|
1820
|
+
r[0] = a, r[1] = o, (a || u(r, "default")) && f.push(t);
|
|
1821
|
+
}
|
|
1822
|
+
}
|
|
1823
|
+
let m = [l, f];
|
|
1824
|
+
return v(e) && a.set(e, m), m;
|
|
1825
|
+
}
|
|
1826
|
+
function si(e) {
|
|
1827
|
+
return e[0] !== "$" && !ee(e);
|
|
1828
|
+
}
|
|
1829
|
+
var ci = (e) => e === "_" || e === "_ctx" || e === "$stable", li = (e) => d(e) ? e.map(Ji) : [Ji(e)], ui = (e, t, n) => {
|
|
1830
|
+
if (t._n) return t;
|
|
1831
|
+
let r = En((...e) => li(t(...e)), n);
|
|
1832
|
+
return r._c = !1, r;
|
|
1833
|
+
}, di = (e, t, n) => {
|
|
1834
|
+
let r = e._ctx;
|
|
1835
|
+
for (let n in e) {
|
|
1836
|
+
if (ci(n)) continue;
|
|
1837
|
+
let i = e[n];
|
|
1838
|
+
if (h(i)) t[n] = ui(n, i, r);
|
|
1839
|
+
else if (i != null) {
|
|
1840
|
+
let e = li(i);
|
|
1841
|
+
t[n] = () => e;
|
|
1842
|
+
}
|
|
1843
|
+
}
|
|
1844
|
+
}, fi = (e, t) => {
|
|
1845
|
+
let n = li(t);
|
|
1846
|
+
e.slots.default = () => n;
|
|
1847
|
+
}, pi = (e, t, n) => {
|
|
1848
|
+
for (let r in t) (n || !ci(r)) && (e[r] = t[r]);
|
|
1849
|
+
}, mi = (e, t, n) => {
|
|
1850
|
+
let r = e.slots = $r();
|
|
1851
|
+
if (e.vnode.shapeFlag & 32) {
|
|
1852
|
+
let e = t._;
|
|
1853
|
+
e ? (pi(r, t, n), n && O(r, "_", e, !0)) : di(t, r);
|
|
1854
|
+
} else t && fi(e, t);
|
|
1855
|
+
}, hi = (e, n, r) => {
|
|
1856
|
+
let { vnode: i, slots: a } = e, o = !0, s = t;
|
|
1857
|
+
if (i.shapeFlag & 32) {
|
|
1858
|
+
let e = n._;
|
|
1859
|
+
e ? r && e === 1 ? o = !1 : pi(a, n, r) : (o = !n.$stable, di(n, a)), s = n;
|
|
1860
|
+
} else n && (fi(e, n), s = { default: 1 });
|
|
1861
|
+
if (o) for (let e in a) !ci(e) && s[e] == null && delete a[e];
|
|
1862
|
+
}, W = Di;
|
|
1863
|
+
function gi(e) {
|
|
1864
|
+
return _i(e);
|
|
1865
|
+
}
|
|
1866
|
+
function _i(e, i) {
|
|
1867
|
+
let a = le();
|
|
1868
|
+
a.__VUE__ = !0;
|
|
1869
|
+
let { insert: o, remove: s, patchProp: c, createElement: l, createText: u, createComment: d, setText: f, setElementText: p, parentNode: m, nextSibling: h, setScopeId: g = r, insertStaticContent: _ } = e, v = (e, t, r, i = null, a = null, o = null, s = void 0, c = null, l = !!t.dynamicChildren) => {
|
|
1870
|
+
if (e === t) return;
|
|
1871
|
+
e && !zi(e, t) && (i = ye(e), k(e, a, o, !0), e = null), t.patchFlag === -2 && (l = !1, t.dynamicChildren = null), t.dynamicChildren && e && e.dynamicChildren && e.dynamicChildren.hasOnce && (t.dynamicChildren === n && (t.dynamicChildren = []), t.dynamicChildren.hasOnce = !0);
|
|
1872
|
+
let { type: u, ref: d, shapeFlag: f } = t;
|
|
1873
|
+
switch (u) {
|
|
1874
|
+
case Oi:
|
|
1875
|
+
y(e, t, r, i);
|
|
1876
|
+
break;
|
|
1877
|
+
case K:
|
|
1878
|
+
b(e, t, r, i);
|
|
1879
|
+
break;
|
|
1880
|
+
case ki:
|
|
1881
|
+
e ?? x(t, r, i, s);
|
|
1882
|
+
break;
|
|
1883
|
+
case G:
|
|
1884
|
+
ae(e, t, r, i, a, o, s, c, l);
|
|
1885
|
+
break;
|
|
1886
|
+
default: f & 1 ? w(e, t, r, i, a, o, s, c, l) : f & 6 ? D(e, t, r, i, a, o, s, c, l) : (f & 64 || f & 128) && u.process(e, t, r, i, a, o, s, c, l, xe);
|
|
1887
|
+
}
|
|
1888
|
+
d != null && a ? Jn(d, e && e.ref, o, t || e, !t) : d == null && e && e.ref != null && Jn(e.ref, null, o, e, !0);
|
|
1889
|
+
}, y = (e, t, n, r) => {
|
|
1890
|
+
if (e == null) o(t.el = u(t.children), n, r);
|
|
1891
|
+
else {
|
|
1892
|
+
let n = t.el = e.el;
|
|
1893
|
+
t.children !== e.children && f(n, t.children);
|
|
1894
|
+
}
|
|
1895
|
+
}, b = (e, t, n, r) => {
|
|
1896
|
+
e == null ? o(t.el = d(t.children || ""), n, r) : t.el = e.el;
|
|
1897
|
+
}, x = (e, t, n, r) => {
|
|
1898
|
+
[e.el, e.anchor] = _(e.children, t, n, r, e.el, e.anchor);
|
|
1899
|
+
}, S = ({ el: e, anchor: t }, n, r) => {
|
|
1900
|
+
let i;
|
|
1901
|
+
for (; e && e !== t;) i = h(e), o(e, n, r), e = i;
|
|
1902
|
+
o(t, n, r);
|
|
1903
|
+
}, C = ({ el: e, anchor: t }) => {
|
|
1904
|
+
let n;
|
|
1905
|
+
for (; e && e !== t;) n = h(e), s(e), e = n;
|
|
1906
|
+
s(t);
|
|
1907
|
+
}, w = (e, t, n, r, i, a, o, s, c) => {
|
|
1908
|
+
if (t.type === "svg" ? o = "svg" : t.type === "math" && (o = "mathml"), e == null) te(t, n, r, i, a, o, s, c);
|
|
1909
|
+
else {
|
|
1910
|
+
let n = e.el && e.el._isVueCE ? e.el : null;
|
|
1911
|
+
try {
|
|
1912
|
+
n && n._beginPatch(), re(e, t, i, a, o, s, c);
|
|
1913
|
+
} finally {
|
|
1914
|
+
n && n._endPatch();
|
|
1915
|
+
}
|
|
1916
|
+
}
|
|
1917
|
+
}, te = (e, t, n, r, i, a, s, u) => {
|
|
1918
|
+
let d, f, { props: m, shapeFlag: h, transition: g, dirs: _ } = e;
|
|
1919
|
+
if (d = e.el = l(e.type, a, m && m.is, m), h & 8 ? p(d, e.children) : h & 16 && T(e.children, d, null, r, i, vi(e, a), s, u), _ && On(e, null, r, "created"), ne(d, e, e.scopeId, s, r), m) {
|
|
1920
|
+
for (let e in m) e !== "value" && !ee(e) && c(d, e, null, m[e], a, r);
|
|
1921
|
+
"value" in m && c(d, "value", null, m.value, a), (f = m.onVnodeBeforeMount) && Qi(f, r, e);
|
|
1922
|
+
}
|
|
1923
|
+
_ && On(e, null, r, "beforeMount");
|
|
1924
|
+
let v = bi(i, g);
|
|
1925
|
+
v && g.beforeEnter(d), o(d, t, n), ((f = m && m.onVnodeMounted) || v || _) && W(() => {
|
|
1926
|
+
try {
|
|
1927
|
+
f && Qi(f, r, e), v && g.enter(d), _ && On(e, null, r, "mounted");
|
|
1928
|
+
} finally {}
|
|
1929
|
+
}, i);
|
|
1930
|
+
}, ne = (e, t, n, r, i) => {
|
|
1931
|
+
if (n && g(e, n), r) for (let t = 0; t < r.length; t++) g(e, r[t]);
|
|
1932
|
+
if (i) {
|
|
1933
|
+
let n = i.subTree;
|
|
1934
|
+
if (t === n || Ei(n.type) && (n.ssContent === t || n.ssFallback === t)) {
|
|
1935
|
+
let t = i.vnode;
|
|
1936
|
+
ne(e, t, t.scopeId, t.slotScopeIds, i.parent);
|
|
1937
|
+
}
|
|
1938
|
+
}
|
|
1939
|
+
}, T = (e, t, n, r, i, a, o, s, c = 0) => {
|
|
1940
|
+
for (let l = c; l < e.length; l++) {
|
|
1941
|
+
let c = e[l] = s ? Yi(e[l]) : Ji(e[l]);
|
|
1942
|
+
v(null, c, t, n, r, i, a, o, s);
|
|
1943
|
+
}
|
|
1944
|
+
}, re = (e, n, r, i, a, o, s) => {
|
|
1945
|
+
let l = n.el = e.el, { patchFlag: u, dynamicChildren: d, dirs: f } = n;
|
|
1946
|
+
u |= e.patchFlag & 16;
|
|
1947
|
+
let m = e.props || t, h = n.props || t, g;
|
|
1948
|
+
if (r && yi(r, !1), (g = h.onVnodeBeforeUpdate) && Qi(g, r, n, e), f && On(n, e, r, "beforeUpdate"), r && yi(r, !0), d && (!e.dynamicChildren || e.dynamicChildren.length !== d.length) && (u = 0, s = !1, d = null), (m.innerHTML && h.innerHTML == null || m.textContent && h.textContent == null) && p(l, ""), d ? E(e.dynamicChildren, d, l, r, i, vi(n, a), o) : s || de(e, n, l, null, r, i, vi(n, a), o, !1), u > 0) {
|
|
1949
|
+
if (u & 16) ie(l, m, h, r, a);
|
|
1950
|
+
else if (u & 2 && m.class !== h.class && c(l, "class", null, h.class, a), u & 4 && c(l, "style", m.style, h.style, a), u & 8) {
|
|
1951
|
+
let e = n.dynamicProps;
|
|
1952
|
+
for (let t = 0; t < e.length; t++) {
|
|
1953
|
+
let n = e[t], i = m[n], o = h[n];
|
|
1954
|
+
(o !== i || n === "value") && c(l, n, i, o, a, r);
|
|
1955
|
+
}
|
|
1956
|
+
}
|
|
1957
|
+
u & 1 && e.children !== n.children && p(l, n.children);
|
|
1958
|
+
} else !s && d == null && ie(l, m, h, r, a);
|
|
1959
|
+
((g = h.onVnodeUpdated) || f) && W(() => {
|
|
1960
|
+
g && Qi(g, r, n, e), f && On(n, e, r, "updated");
|
|
1961
|
+
}, i);
|
|
1962
|
+
}, E = (e, t, n, r, i, a, o) => {
|
|
1963
|
+
for (let s = 0; s < t.length; s++) {
|
|
1964
|
+
let c = e[s], l = t[s], u = c.el || Ti(c), d = u && (c.type === G || !zi(c, l) || c.shapeFlag & 198) ? m(u) : n;
|
|
1965
|
+
v(c, l, d, null, r, i, a, o, !0);
|
|
1966
|
+
}
|
|
1967
|
+
}, ie = (e, n, r, i, a) => {
|
|
1968
|
+
if (n !== r) {
|
|
1969
|
+
if (n !== t) for (let t in n) !ee(t) && !(t in r) && c(e, t, n[t], null, a, i);
|
|
1970
|
+
for (let t in r) {
|
|
1971
|
+
if (ee(t)) continue;
|
|
1972
|
+
let o = r[t], s = n[t];
|
|
1973
|
+
o !== s && t !== "value" && c(e, t, s, o, a, i);
|
|
1974
|
+
}
|
|
1975
|
+
"value" in r && c(e, "value", n.value, r.value, a);
|
|
1976
|
+
}
|
|
1977
|
+
}, ae = (e, t, n, r, i, a, s, c, l) => {
|
|
1978
|
+
let d = t.el = e ? e.el : u(""), f = t.anchor = e ? e.anchor : u(""), { patchFlag: p, dynamicChildren: m, slotScopeIds: h } = t;
|
|
1979
|
+
h && (c = c ? c.concat(h) : h), e == null ? (o(d, n, r), o(f, n, r), T(t.children || [], n, f, i, a, s, c, l)) : p > 0 && p & 64 && m && e.dynamicChildren && e.dynamicChildren.length === m.length ? (E(e.dynamicChildren, m, n, i, a, s, c), (t.key != null || i && t === i.subTree) && xi(e, t, !0)) : de(e, t, n, f, i, a, s, c, l);
|
|
1980
|
+
}, D = (e, t, n, r, i, a, o, s, c) => {
|
|
1981
|
+
t.slotScopeIds = s, e == null ? t.shapeFlag & 512 ? i.ctx.activate(t, n, r, o, c) : O(t, n, r, i, a, o, c) : se(e, t, c);
|
|
1982
|
+
}, O = (e, t, n, r, i, a, o) => {
|
|
1983
|
+
let s = e.component = na(e, r, i);
|
|
1984
|
+
if (Zn(e) && (s.ctx.renderer = xe), ua(s, !1, o), s.asyncDep) {
|
|
1985
|
+
if (i && i.registerDep(s, ce, o, a), !e.el) {
|
|
1986
|
+
let r = s.subTree = J(K);
|
|
1987
|
+
b(null, r, t, n), e.placeholder = r.el;
|
|
1988
|
+
}
|
|
1989
|
+
} else ce(s, e, t, n, i, a, o);
|
|
1990
|
+
}, se = (e, t, n) => {
|
|
1991
|
+
let r = t.component = e.component;
|
|
1992
|
+
if (Jr(e, t, n)) {
|
|
1993
|
+
if (r.asyncDep && !r.asyncResolved) {
|
|
1994
|
+
t.el = e.el, t.placeholder = e.placeholder, ue(r, t, n);
|
|
1995
|
+
return;
|
|
1996
|
+
}
|
|
1997
|
+
r.next = t, r.update();
|
|
1998
|
+
} else t.el = e.el, t.placeholder = e.placeholder, r.vnode = t;
|
|
1999
|
+
}, ce = (e, t, n, r, i, a, o) => {
|
|
2000
|
+
let s = () => {
|
|
2001
|
+
if (e.isMounted) {
|
|
2002
|
+
let { next: t, bu: n, u: r, parent: s, vnode: c } = e;
|
|
2003
|
+
{
|
|
2004
|
+
let n = Ci(e);
|
|
2005
|
+
if (n) {
|
|
2006
|
+
t && (t.el = c.el, ue(e, t, o)), n.asyncDep.then(() => {
|
|
2007
|
+
W(() => {
|
|
2008
|
+
e.isUnmounted || l();
|
|
2009
|
+
}, i);
|
|
2010
|
+
});
|
|
2011
|
+
return;
|
|
2012
|
+
}
|
|
2013
|
+
}
|
|
2014
|
+
let u = t, d;
|
|
2015
|
+
yi(e, !1), t ? (t.el = c.el, ue(e, t, o)) : t = c, n && oe(n), (d = t.props && t.props.onVnodeBeforeUpdate) && Qi(d, s, t, c), yi(e, !0);
|
|
2016
|
+
let f = Wr(e), p = e.subTree;
|
|
2017
|
+
e.subTree = f, v(p, f, m(p.el), ye(p), e, i, a), t.el = f.el, u === null && Zr(e, f.el), r && W(r, i), (d = t.props && t.props.onVnodeUpdated) && W(() => Qi(d, s, t, c), i);
|
|
2018
|
+
} else {
|
|
2019
|
+
let o, { el: s, props: c } = t, { bm: l, m: u, parent: d, root: f, type: p } = e, m = Xn(t);
|
|
2020
|
+
if (yi(e, !1), l && oe(l), !m && (o = c && c.onVnodeBeforeMount) && Qi(o, d, t), yi(e, !0), s && Ce) {
|
|
2021
|
+
let t = () => {
|
|
2022
|
+
e.subTree = Wr(e), Ce(s, e.subTree, e, i, null);
|
|
2023
|
+
};
|
|
2024
|
+
m && p.__asyncHydrate ? p.__asyncHydrate(s, e, t) : t();
|
|
2025
|
+
} else {
|
|
2026
|
+
f.ce && f.ce._hasShadowRoot() && f.ce._injectChildStyle(p, e.parent ? e.parent.type : void 0);
|
|
2027
|
+
let o = e.subTree = Wr(e);
|
|
2028
|
+
v(null, o, n, r, e, i, a), t.el = o.el;
|
|
2029
|
+
}
|
|
2030
|
+
if (u && W(u, i), !m && (o = c && c.onVnodeMounted)) {
|
|
2031
|
+
let e = t;
|
|
2032
|
+
W(() => Qi(o, d, e), i);
|
|
2033
|
+
}
|
|
2034
|
+
(t.shapeFlag & 256 || d && Xn(d.vnode) && d.vnode.shapeFlag & 256) && e.a && W(e.a, i), e.isMounted = !0, t = n = r = null;
|
|
2035
|
+
}
|
|
2036
|
+
};
|
|
2037
|
+
e.scope.on();
|
|
2038
|
+
let c = e.effect = new ke(s);
|
|
2039
|
+
e.scope.off();
|
|
2040
|
+
let l = e.update = c.run.bind(c), u = e.job = c.runIfDirty.bind(c);
|
|
2041
|
+
u.i = e, u.id = e.uid, c.scheduler = () => hn(u), yi(e, !0), l();
|
|
2042
|
+
}, ue = (e, t, n) => {
|
|
2043
|
+
t.component = e;
|
|
2044
|
+
let r = e.vnode.props;
|
|
2045
|
+
e.vnode = t, e.next = null, ni(e, t.props, r, n), hi(e, t.children, n), N(), vn(e), P();
|
|
2046
|
+
}, de = (e, t, n, r, i, a, o, s, c = !1) => {
|
|
2047
|
+
let l = e && e.children, u = e ? e.shapeFlag : 0, d = t.children, { patchFlag: f, shapeFlag: m } = t;
|
|
2048
|
+
if (f > 0) {
|
|
2049
|
+
if (f & 128) {
|
|
2050
|
+
pe(l, d, n, r, i, a, o, s, c);
|
|
2051
|
+
return;
|
|
2052
|
+
}
|
|
2053
|
+
if (f & 256) {
|
|
2054
|
+
fe(l, d, n, r, i, a, o, s, c);
|
|
2055
|
+
return;
|
|
2056
|
+
}
|
|
2057
|
+
}
|
|
2058
|
+
m & 8 ? (u & 16 && ve(l, i, a), d !== l && p(n, d)) : u & 16 ? m & 16 ? pe(l, d, n, r, i, a, o, s, c) : ve(l, i, a, !0) : (u & 8 && p(n, ""), m & 16 && T(d, n, r, i, a, o, s, c));
|
|
2059
|
+
}, fe = (e, t, r, i, a, o, s, c, l) => {
|
|
2060
|
+
e ||= n, t ||= n;
|
|
2061
|
+
let u = e.length, d = t.length, f = Math.min(u, d), p = 0;
|
|
2062
|
+
for (; p < f; p++) {
|
|
2063
|
+
let n = t[p] = l ? Yi(t[p]) : Ji(t[p]);
|
|
2064
|
+
v(e[p], n, r, null, a, o, s, c, l);
|
|
2065
|
+
}
|
|
2066
|
+
u > d ? ve(e, a, o, !0, !1, f) : T(t, r, i, a, o, s, c, l, f);
|
|
2067
|
+
}, pe = (e, t, r, i, a, o, s, c, l) => {
|
|
2068
|
+
let u = 0, d = t.length, f = e.length - 1, p = d - 1;
|
|
2069
|
+
for (; u <= f && u <= p;) {
|
|
2070
|
+
let n = e[u], i = t[u] = l ? Yi(t[u]) : Ji(t[u]);
|
|
2071
|
+
if (zi(n, i)) v(n, i, r, null, a, o, s, c, l);
|
|
2072
|
+
else break;
|
|
2073
|
+
u++;
|
|
2074
|
+
}
|
|
2075
|
+
for (; u <= f && u <= p;) {
|
|
2076
|
+
let n = e[f], i = t[p] = l ? Yi(t[p]) : Ji(t[p]);
|
|
2077
|
+
if (zi(n, i)) v(n, i, r, null, a, o, s, c, l);
|
|
2078
|
+
else break;
|
|
2079
|
+
f--, p--;
|
|
2080
|
+
}
|
|
2081
|
+
if (u > f) {
|
|
2082
|
+
if (u <= p) {
|
|
2083
|
+
let e = p + 1, n = e < d ? t[e].el : i;
|
|
2084
|
+
for (; u <= p;) v(null, t[u] = l ? Yi(t[u]) : Ji(t[u]), r, n, a, o, s, c, l), u++;
|
|
2085
|
+
}
|
|
2086
|
+
} else if (u > p) for (; u <= f;) k(e[u], a, o, !0), u++;
|
|
2087
|
+
else {
|
|
2088
|
+
let m = u, h = u, g = /* @__PURE__ */ new Map();
|
|
2089
|
+
for (u = h; u <= p; u++) {
|
|
2090
|
+
let e = t[u] = l ? Yi(t[u]) : Ji(t[u]);
|
|
2091
|
+
e.key != null && g.set(e.key, u);
|
|
2092
|
+
}
|
|
2093
|
+
let _, y = 0, b = p - h + 1, x = !1, S = 0, C = Array(b);
|
|
2094
|
+
for (u = 0; u < b; u++) C[u] = 0;
|
|
2095
|
+
for (u = m; u <= f; u++) {
|
|
2096
|
+
let n = e[u];
|
|
2097
|
+
if (y >= b) {
|
|
2098
|
+
k(n, a, o, !0);
|
|
2099
|
+
continue;
|
|
2100
|
+
}
|
|
2101
|
+
let i;
|
|
2102
|
+
if (n.key != null) i = g.get(n.key);
|
|
2103
|
+
else for (_ = h; _ <= p; _++) if (C[_ - h] === 0 && zi(n, t[_])) {
|
|
2104
|
+
i = _;
|
|
2105
|
+
break;
|
|
2106
|
+
}
|
|
2107
|
+
i === void 0 ? k(n, a, o, !0) : (C[i - h] = u + 1, i >= S ? S = i : x = !0, v(n, t[i], r, null, a, o, s, c, l), y++);
|
|
2108
|
+
}
|
|
2109
|
+
let w = x ? Si(C) : n;
|
|
2110
|
+
for (_ = w.length - 1, u = b - 1; u >= 0; u--) {
|
|
2111
|
+
let e = h + u, n = t[e], f = t[e + 1], p = e + 1 < d ? f.el || Ti(f) : i;
|
|
2112
|
+
C[u] === 0 ? v(null, n, r, p, a, o, s, c, l) : x && (_ < 0 || u !== w[_] ? me(n, r, p, 2) : _--);
|
|
2113
|
+
}
|
|
2114
|
+
}
|
|
2115
|
+
}, me = (e, t, n, r, i = null) => {
|
|
2116
|
+
let { el: a, type: c, transition: l, children: u, shapeFlag: d } = e;
|
|
2117
|
+
if (d & 6) me(e.component.subTree, t, n, r);
|
|
2118
|
+
else if (d & 128) e.suspense.move(t, n, r);
|
|
2119
|
+
else if (d & 64) c.move(e, t, n, xe);
|
|
2120
|
+
else if (c === G) {
|
|
2121
|
+
o(a, t, n);
|
|
2122
|
+
for (let e = 0; e < u.length; e++) me(u[e], t, n, r);
|
|
2123
|
+
o(e.anchor, t, n);
|
|
2124
|
+
} else if (c === ki) S(e, t, n);
|
|
2125
|
+
else if (r !== 2 && d & 1 && l) {
|
|
2126
|
+
if (r === 0) l.persisted && !a[zn] ? o(a, t, n) : (l.beforeEnter(a), o(a, t, n), W(() => l.enter(a), i));
|
|
2127
|
+
else {
|
|
2128
|
+
let { leave: r, delayLeave: i, afterLeave: c } = l, u = () => {
|
|
2129
|
+
e.ctx.isUnmounted ? s(a) : o(a, t, n);
|
|
2130
|
+
}, d = () => {
|
|
2131
|
+
let e = a._isLeaving || !!a[zn];
|
|
2132
|
+
a._isLeaving && a[zn](!0), l.persisted && !e ? u() : r(a, () => {
|
|
2133
|
+
u(), c && c();
|
|
2134
|
+
});
|
|
2135
|
+
};
|
|
2136
|
+
i ? i(a, u, d) : d();
|
|
2137
|
+
}
|
|
2138
|
+
} else o(a, t, n);
|
|
2139
|
+
}, k = (e, t, n, r = !1, i = !1) => {
|
|
2140
|
+
let { type: a, props: o, ref: s, children: c, dynamicChildren: l, shapeFlag: u, patchFlag: d, dirs: f, cacheIndex: p, memo: m } = e;
|
|
2141
|
+
if ((d === -2 || l && l.hasOnce) && (i = !1), s != null && (N(), Jn(s, null, n, e, !0), P()), p == null || e.ctx && e.ctx !== t || (t.renderCache[p] = void 0), u & 256) {
|
|
2142
|
+
t.ctx.deactivate(e);
|
|
2143
|
+
return;
|
|
2144
|
+
}
|
|
2145
|
+
let h = u & 1 && f, g = !Xn(e), _;
|
|
2146
|
+
if (g && (_ = o && o.onVnodeBeforeUnmount) && Qi(_, t, e), u & 6) _e(e.component, n, r);
|
|
2147
|
+
else {
|
|
2148
|
+
if (u & 128) {
|
|
2149
|
+
e.suspense.unmount(n, r);
|
|
2150
|
+
return;
|
|
2151
|
+
}
|
|
2152
|
+
h && On(e, null, t, "beforeUnmount"), u & 64 ? e.type.remove(e, t, n, xe, r) : l && !l.hasOnce && (a !== G || d > 0 && d & 64) ? ve(l, t, n, !1, !0) : (a === G && d & 384 || !i && u & 16) && ve(c, t, n), r && he(e);
|
|
2153
|
+
}
|
|
2154
|
+
let v = m != null && p == null;
|
|
2155
|
+
(g && (_ = o && o.onVnodeUnmounted) || h || v) && W(() => {
|
|
2156
|
+
_ && Qi(_, t, e), h && On(e, null, t, "unmounted"), v && (e.el = null);
|
|
2157
|
+
}, n);
|
|
2158
|
+
}, he = (e) => {
|
|
2159
|
+
let { type: t, el: n, anchor: r, transition: i } = e, a = t === G;
|
|
2160
|
+
if (a && !i) {
|
|
2161
|
+
ge(n, r);
|
|
2162
|
+
return;
|
|
2163
|
+
}
|
|
2164
|
+
if (t === ki) {
|
|
2165
|
+
C(e), i && !i.persisted && i.afterLeave && i.afterLeave();
|
|
2166
|
+
return;
|
|
2167
|
+
}
|
|
2168
|
+
let o = a ? Un(e) : e, c = () => {
|
|
2169
|
+
a ? m(n) && ge(n, r) : s(n), i && !i.persisted && i.afterLeave && i.afterLeave();
|
|
2170
|
+
};
|
|
2171
|
+
if (o && o.shapeFlag & 1 && i && !i.persisted) {
|
|
2172
|
+
let { leave: e, delayLeave: t } = i, n = o.el, r = () => e(n, c);
|
|
2173
|
+
t ? t(n, c, r) : r();
|
|
2174
|
+
} else c();
|
|
2175
|
+
}, ge = (e, t) => {
|
|
2176
|
+
let n;
|
|
2177
|
+
for (; e !== t;) n = h(e), s(e), e = n;
|
|
2178
|
+
s(t);
|
|
2179
|
+
}, _e = (e, t, n) => {
|
|
2180
|
+
let { bum: r, scope: i, job: a, subTree: o, um: s, m: c, a: l } = e;
|
|
2181
|
+
wi(c), wi(l), r && oe(r), i.stop(), a ? (a.flags |= 8, k(o, e, t, n)) : e.vnode.el && o && (o.transition = e.vnode.transition, k(o, e, t, n)), s && W(s, t), W(() => {
|
|
2182
|
+
e.isUnmounted = !0;
|
|
2183
|
+
}, t);
|
|
2184
|
+
}, ve = (e, t, n, r = !1, i = !1, a = 0) => {
|
|
2185
|
+
for (let o = a; o < e.length; o++) k(e[o], t, n, r, i);
|
|
2186
|
+
}, ye = (e) => {
|
|
2187
|
+
if (e.shapeFlag & 6) return ye(e.component.subTree);
|
|
2188
|
+
if (e.shapeFlag & 128) return e.suspense.next();
|
|
2189
|
+
let t = h(e.anchor || e.el), n = t && t[Ln];
|
|
2190
|
+
return n ? h(n) : t;
|
|
2191
|
+
}, be = (e, t, n) => {
|
|
2192
|
+
xn(() => {
|
|
2193
|
+
e == null ? t._vnode && k(t._vnode, null, null, !0) : v(t._vnode || null, e, t, null, null, null, n), t._vnode = e;
|
|
2194
|
+
}, e && t._vnode ? void 0 : e && e.component ? e.component.uid : ta());
|
|
2195
|
+
}, xe = {
|
|
2196
|
+
p: v,
|
|
2197
|
+
um: k,
|
|
2198
|
+
m: me,
|
|
2199
|
+
r: he,
|
|
2200
|
+
mt: O,
|
|
2201
|
+
mc: T,
|
|
2202
|
+
pc: de,
|
|
2203
|
+
pbc: E,
|
|
2204
|
+
n: ye,
|
|
2205
|
+
o: e
|
|
2206
|
+
}, Se, Ce;
|
|
2207
|
+
return i && ([Se, Ce] = i(xe)), {
|
|
2208
|
+
render: be,
|
|
2209
|
+
hydrate: Se,
|
|
2210
|
+
createApp: Lr(be, Se)
|
|
2211
|
+
};
|
|
2212
|
+
}
|
|
2213
|
+
function vi({ type: e, props: t }, n) {
|
|
2214
|
+
return n === "svg" && e === "foreignObject" || n === "mathml" && e === "annotation-xml" && t && t.encoding && t.encoding.includes("html") ? void 0 : n;
|
|
2215
|
+
}
|
|
2216
|
+
function yi({ effect: e, job: t }, n) {
|
|
2217
|
+
n ? (e.flags |= 32, t.flags |= 4) : (e.flags &= -33, t.flags &= -5);
|
|
2218
|
+
}
|
|
2219
|
+
function bi(e, t) {
|
|
2220
|
+
return (!e || e && !e.pendingBranch) && t && !t.persisted;
|
|
2221
|
+
}
|
|
2222
|
+
function xi(e, t, n = !1) {
|
|
2223
|
+
let r = e.children, i = t.children;
|
|
2224
|
+
if (d(r) && d(i)) for (let e = 0; e < r.length; e++) {
|
|
2225
|
+
let t = r[e], a = i[e];
|
|
2226
|
+
a.shapeFlag & 1 && !a.dynamicChildren && ((a.patchFlag <= 0 || a.patchFlag === 32) && (a = i[e] = Yi(i[e]), a.el = t.el), !n && a.patchFlag !== -2 && xi(t, a)), a.type === Oi && (a.patchFlag === -1 && (a = i[e] = Yi(a)), a.el = t.el), a.type === K && !a.el && (a.el = t.el);
|
|
2227
|
+
}
|
|
2228
|
+
}
|
|
2229
|
+
function Si(e) {
|
|
2230
|
+
let t = e.slice(), n = [0], r, i, a, o, s, c = e.length;
|
|
2231
|
+
for (r = 0; r < c; r++) {
|
|
2232
|
+
let c = e[r];
|
|
2233
|
+
if (c !== 0) {
|
|
2234
|
+
if (i = n[n.length - 1], e[i] < c) {
|
|
2235
|
+
t[r] = i, n.push(r);
|
|
2236
|
+
continue;
|
|
2237
|
+
}
|
|
2238
|
+
for (a = 0, o = n.length - 1; a < o;) s = a + o >> 1, e[n[s]] < c ? a = s + 1 : o = s;
|
|
2239
|
+
c < e[n[a]] && (a > 0 && (t[r] = n[a - 1]), n[a] = r);
|
|
2240
|
+
}
|
|
2241
|
+
}
|
|
2242
|
+
for (a = n.length, o = n[a - 1]; a-- > 0;) n[a] = o, o = t[o];
|
|
2243
|
+
return n;
|
|
2244
|
+
}
|
|
2245
|
+
function Ci(e) {
|
|
2246
|
+
let t = e.subTree.component;
|
|
2247
|
+
if (t) return t.asyncDep && !t.asyncResolved ? t : Ci(t);
|
|
2248
|
+
}
|
|
2249
|
+
function wi(e) {
|
|
2250
|
+
if (e) for (let t = 0; t < e.length; t++) e[t].flags |= 8;
|
|
2251
|
+
}
|
|
2252
|
+
function Ti(e) {
|
|
2253
|
+
if (e.placeholder) return e.placeholder;
|
|
2254
|
+
let t = e.component;
|
|
2255
|
+
return t ? Ti(t.subTree) : null;
|
|
2256
|
+
}
|
|
2257
|
+
var Ei = (e) => e.__isSuspense;
|
|
2258
|
+
function Di(e, t) {
|
|
2259
|
+
t && t.pendingBranch ? d(e) ? t.effects.push(...e) : t.effects.push(e) : _n(e);
|
|
2260
|
+
}
|
|
2261
|
+
var G = /* @__PURE__ */ Symbol.for("v-fgt"), Oi = /* @__PURE__ */ Symbol.for("v-txt"), K = /* @__PURE__ */ Symbol.for("v-cmt"), ki = /* @__PURE__ */ Symbol.for("v-stc"), Ai = [], q = null;
|
|
2262
|
+
function ji(e = !1) {
|
|
2263
|
+
Ai.push(q = e ? null : []);
|
|
2264
|
+
}
|
|
2265
|
+
function Mi() {
|
|
2266
|
+
Ai.pop(), q = Ai[Ai.length - 1] || null;
|
|
2267
|
+
}
|
|
2268
|
+
var Ni = 1;
|
|
2269
|
+
function Pi(e, t = !1) {
|
|
2270
|
+
Ni += e, e < 0 && q && t && (q.hasOnce = !0);
|
|
2271
|
+
}
|
|
2272
|
+
function Fi(e) {
|
|
2273
|
+
return e.dynamicChildren = Ni > 0 ? q || n : null, Mi(), Ni > 0 && q && q.push(e), e;
|
|
2274
|
+
}
|
|
2275
|
+
function Ii(e, t, n, r, i, a) {
|
|
2276
|
+
return Fi(Hi(e, t, n, r, i, a, !0));
|
|
2277
|
+
}
|
|
2278
|
+
function Li(e, t, n, r, i) {
|
|
2279
|
+
return Fi(J(e, t, n, r, i, !0));
|
|
2280
|
+
}
|
|
2281
|
+
function Ri(e) {
|
|
2282
|
+
return e ? e.__v_isVNode === !0 : !1;
|
|
2283
|
+
}
|
|
2284
|
+
function zi(e, t) {
|
|
2285
|
+
return e.type === t.type && e.key === t.key;
|
|
2286
|
+
}
|
|
2287
|
+
var Bi = ({ key: e }) => e ?? null, Vi = ({ ref: e, ref_key: t, ref_for: n }) => (typeof e == "number" && (e = "" + e), e == null ? null : g(e) || /* @__PURE__ */ z(e) || h(e) ? {
|
|
2288
|
+
i: H,
|
|
2289
|
+
r: e,
|
|
2290
|
+
k: t,
|
|
2291
|
+
f: !!n
|
|
2292
|
+
} : e);
|
|
2293
|
+
function Hi(e, t = null, n = null, r = 0, i = null, a = e === G ? 0 : 1, o = !1, s = !1) {
|
|
2294
|
+
let c = {
|
|
2295
|
+
__v_isVNode: !0,
|
|
2296
|
+
__v_skip: !0,
|
|
2297
|
+
type: e,
|
|
2298
|
+
props: t,
|
|
2299
|
+
key: t && Bi(t),
|
|
2300
|
+
ref: t && Vi(t),
|
|
2301
|
+
scopeId: wn,
|
|
2302
|
+
slotScopeIds: null,
|
|
2303
|
+
children: n,
|
|
2304
|
+
component: null,
|
|
2305
|
+
suspense: null,
|
|
2306
|
+
ssContent: null,
|
|
2307
|
+
ssFallback: null,
|
|
2308
|
+
dirs: null,
|
|
2309
|
+
transition: null,
|
|
2310
|
+
el: null,
|
|
2311
|
+
anchor: null,
|
|
2312
|
+
target: null,
|
|
2313
|
+
targetStart: null,
|
|
2314
|
+
targetAnchor: null,
|
|
2315
|
+
staticCount: 0,
|
|
2316
|
+
shapeFlag: a,
|
|
2317
|
+
patchFlag: r,
|
|
2318
|
+
dynamicProps: i,
|
|
2319
|
+
dynamicChildren: null,
|
|
2320
|
+
appContext: null,
|
|
2321
|
+
ctx: H
|
|
2322
|
+
};
|
|
2323
|
+
return s ? (Xi(c, n), a & 128 && e.normalize(c)) : n && (c.shapeFlag |= g(n) ? 8 : 16), Ni > 0 && !o && q && (c.patchFlag > 0 || a & 6) && c.patchFlag !== 32 && q.push(c), c;
|
|
2324
|
+
}
|
|
2325
|
+
var J = Ui;
|
|
2326
|
+
function Ui(e, t = null, n = null, r = 0, i = null, a = !1) {
|
|
2327
|
+
if (e && e !== mr || (e = K), Ri(e)) {
|
|
2328
|
+
let r = Gi(e, t, !0);
|
|
2329
|
+
return n && Xi(r, n), Ni > 0 && !a && q && (r.shapeFlag & 6 ? q[q.indexOf(e)] = r : q.push(r)), r.patchFlag = -2, r;
|
|
2330
|
+
}
|
|
2331
|
+
if (_a(e) && (e = e.__vccOpts), t) {
|
|
2332
|
+
t = Wi(t);
|
|
2333
|
+
let { class: e, style: n } = t;
|
|
2334
|
+
e && !g(e) && (t.class = k(e)), v(n) && (/* @__PURE__ */ zt(n) && !d(n) && (n = s({}, n)), t.style = ue(n));
|
|
2335
|
+
}
|
|
2336
|
+
let o = g(e) ? 1 : Ei(e) ? 128 : Rn(e) ? 64 : v(e) ? 4 : h(e) ? 2 : 0;
|
|
2337
|
+
return Hi(e, t, n, r, i, o, a, !0);
|
|
2338
|
+
}
|
|
2339
|
+
function Wi(e) {
|
|
2340
|
+
return e ? /* @__PURE__ */ zt(e) || ei(e) ? s({}, e) : e : null;
|
|
2341
|
+
}
|
|
2342
|
+
function Gi(e, t, n = !1, r = !1) {
|
|
2343
|
+
let { props: i, ref: a, patchFlag: o, children: s, transition: c } = e, l = t ? Zi(i || {}, t) : i, u = {
|
|
2344
|
+
__v_isVNode: !0,
|
|
2345
|
+
__v_skip: !0,
|
|
2346
|
+
type: e.type,
|
|
2347
|
+
props: l,
|
|
2348
|
+
key: l && Bi(l),
|
|
2349
|
+
ref: t && t.ref ? n && a ? d(a) ? a.concat(Vi(t)) : [a, Vi(t)] : Vi(t) : a,
|
|
2350
|
+
scopeId: e.scopeId,
|
|
2351
|
+
slotScopeIds: e.slotScopeIds,
|
|
2352
|
+
children: s,
|
|
2353
|
+
target: e.target,
|
|
2354
|
+
targetStart: e.targetStart,
|
|
2355
|
+
targetAnchor: e.targetAnchor,
|
|
2356
|
+
staticCount: e.staticCount,
|
|
2357
|
+
shapeFlag: e.shapeFlag,
|
|
2358
|
+
patchFlag: t && e.type !== G ? o === -1 ? 16 : o | 16 : o,
|
|
2359
|
+
dynamicProps: e.dynamicProps,
|
|
2360
|
+
dynamicChildren: e.dynamicChildren,
|
|
2361
|
+
appContext: e.appContext,
|
|
2362
|
+
dirs: e.dirs,
|
|
2363
|
+
transition: c,
|
|
2364
|
+
component: e.component,
|
|
2365
|
+
suspense: e.suspense,
|
|
2366
|
+
ssContent: e.ssContent && Gi(e.ssContent),
|
|
2367
|
+
ssFallback: e.ssFallback && Gi(e.ssFallback),
|
|
2368
|
+
placeholder: e.placeholder,
|
|
2369
|
+
el: e.el,
|
|
2370
|
+
anchor: e.anchor,
|
|
2371
|
+
ctx: e.ctx,
|
|
2372
|
+
ce: e.ce,
|
|
2373
|
+
cacheIndex: e.cacheIndex
|
|
2374
|
+
};
|
|
2375
|
+
return c && r && Hn(u, c.clone(u)), u;
|
|
2376
|
+
}
|
|
2377
|
+
function Ki(e = " ", t = 0) {
|
|
2378
|
+
return J(Oi, null, e, t);
|
|
2379
|
+
}
|
|
2380
|
+
function qi(e = "", t = !1) {
|
|
2381
|
+
return t ? (ji(), Li(K, null, e)) : J(K, null, e);
|
|
2382
|
+
}
|
|
2383
|
+
function Ji(e) {
|
|
2384
|
+
return e == null || typeof e == "boolean" ? J(K) : d(e) ? J(G, null, e.slice()) : Ri(e) ? Yi(e) : J(Oi, null, String(e));
|
|
2385
|
+
}
|
|
2386
|
+
function Yi(e) {
|
|
2387
|
+
return e.el === null && e.patchFlag !== -1 || e.memo ? e : Gi(e);
|
|
2388
|
+
}
|
|
2389
|
+
function Xi(e, t) {
|
|
2390
|
+
let n = 0, { shapeFlag: r } = e;
|
|
2391
|
+
if (t == null) t = null;
|
|
2392
|
+
else if (d(t)) n = 16;
|
|
2393
|
+
else if (typeof t == "object") {
|
|
2394
|
+
if (r & 65) {
|
|
2395
|
+
let n = t.default;
|
|
2396
|
+
n && (n._c && (n._d = !1), Xi(e, n()), n._c && (n._d = !0));
|
|
2397
|
+
return;
|
|
2398
|
+
}
|
|
2399
|
+
{
|
|
2400
|
+
n = 32;
|
|
2401
|
+
let r = t._;
|
|
2402
|
+
!r && !ei(t) ? t._ctx = H : r === 3 && H && (H.slots._ === 1 ? t._ = 1 : (t._ = 2, e.patchFlag |= 1024));
|
|
2403
|
+
}
|
|
2404
|
+
} else if (h(t)) {
|
|
2405
|
+
if (r & 65) {
|
|
2406
|
+
Xi(e, { default: t });
|
|
2407
|
+
return;
|
|
2408
|
+
}
|
|
2409
|
+
t = {
|
|
2410
|
+
default: t,
|
|
2411
|
+
_ctx: H
|
|
2412
|
+
}, n = 32;
|
|
2413
|
+
} else t = String(t), r & 64 ? (n = 16, t = [Ki(t)]) : n = 8;
|
|
2414
|
+
e.children = t, e.shapeFlag |= n;
|
|
2415
|
+
}
|
|
2416
|
+
function Zi(...e) {
|
|
2417
|
+
let t = {};
|
|
2418
|
+
for (let n = 0; n < e.length; n++) {
|
|
2419
|
+
let r = e[n];
|
|
2420
|
+
for (let e in r) if (e === "class") t.class !== r.class && (t.class = k([t.class, r.class]));
|
|
2421
|
+
else if (e === "style") t.style = ue([t.style, r.style]);
|
|
2422
|
+
else if (a(e)) {
|
|
2423
|
+
let n = t[e], i = r[e];
|
|
2424
|
+
i && n !== i && !(d(n) && n.includes(i)) ? t[e] = n ? [].concat(n, i) : i : i == null && n == null && !o(e) && (t[e] = i);
|
|
2425
|
+
} else e !== "" && (t[e] = r[e]);
|
|
2426
|
+
}
|
|
2427
|
+
return t;
|
|
2428
|
+
}
|
|
2429
|
+
function Qi(e, t, n, r = null) {
|
|
2430
|
+
an(e, t, 7, [n, r]);
|
|
2431
|
+
}
|
|
2432
|
+
var $i = Fr(), ea = 0;
|
|
2433
|
+
function ta() {
|
|
2434
|
+
return ea;
|
|
2435
|
+
}
|
|
2436
|
+
function na(e, n, r) {
|
|
2437
|
+
let i = e.type, a = (n ? n.appContext : e.appContext) || $i, o = {
|
|
2438
|
+
uid: ea++,
|
|
2439
|
+
vnode: e,
|
|
2440
|
+
type: i,
|
|
2441
|
+
parent: n,
|
|
2442
|
+
appContext: a,
|
|
2443
|
+
root: null,
|
|
2444
|
+
next: null,
|
|
2445
|
+
subTree: null,
|
|
2446
|
+
effect: null,
|
|
2447
|
+
update: null,
|
|
2448
|
+
job: null,
|
|
2449
|
+
scope: new Ee(!0),
|
|
2450
|
+
render: null,
|
|
2451
|
+
proxy: null,
|
|
2452
|
+
exposed: null,
|
|
2453
|
+
exposeProxy: null,
|
|
2454
|
+
withProxy: null,
|
|
2455
|
+
provides: n ? n.provides : Object.create(a.provides),
|
|
2456
|
+
ids: n ? n.ids : [
|
|
2457
|
+
"",
|
|
2458
|
+
0,
|
|
2459
|
+
0
|
|
2460
|
+
],
|
|
2461
|
+
accessCache: null,
|
|
2462
|
+
renderCache: [],
|
|
2463
|
+
components: null,
|
|
2464
|
+
directives: null,
|
|
2465
|
+
propsOptions: oi(i, a),
|
|
2466
|
+
emitsOptions: Hr(i, a),
|
|
2467
|
+
emit: null,
|
|
2468
|
+
emitted: null,
|
|
2469
|
+
propsDefaults: t,
|
|
2470
|
+
inheritAttrs: i.inheritAttrs,
|
|
2471
|
+
ctx: t,
|
|
2472
|
+
data: t,
|
|
2473
|
+
props: t,
|
|
2474
|
+
attrs: t,
|
|
2475
|
+
slots: t,
|
|
2476
|
+
refs: t,
|
|
2477
|
+
setupState: t,
|
|
2478
|
+
setupContext: null,
|
|
2479
|
+
suspense: r,
|
|
2480
|
+
suspenseId: r ? r.pendingId : 0,
|
|
2481
|
+
asyncDep: null,
|
|
2482
|
+
asyncResolved: !1,
|
|
2483
|
+
isMounted: !1,
|
|
2484
|
+
isUnmounted: !1,
|
|
2485
|
+
isDeactivated: !1,
|
|
2486
|
+
bc: null,
|
|
2487
|
+
c: null,
|
|
2488
|
+
bm: null,
|
|
2489
|
+
m: null,
|
|
2490
|
+
bu: null,
|
|
2491
|
+
u: null,
|
|
2492
|
+
um: null,
|
|
2493
|
+
bum: null,
|
|
2494
|
+
da: null,
|
|
2495
|
+
a: null,
|
|
2496
|
+
rtg: null,
|
|
2497
|
+
rtc: null,
|
|
2498
|
+
ec: null,
|
|
2499
|
+
sp: null
|
|
2500
|
+
};
|
|
2501
|
+
return o.ctx = { _: o }, o.root = n ? n.root : o, o.emit = Br.bind(null, o), e.ce && e.ce(o), o;
|
|
2502
|
+
}
|
|
2503
|
+
var Y = null, ra = () => Y || H, ia, aa;
|
|
2504
|
+
{
|
|
2505
|
+
let e = le(), t = (t, n) => {
|
|
2506
|
+
let r;
|
|
2507
|
+
return (r = e[t]) || (r = e[t] = []), r.push(n), (e) => {
|
|
2508
|
+
r.length > 1 ? r.forEach((t) => t(e)) : r[0](e);
|
|
2509
|
+
};
|
|
2510
|
+
};
|
|
2511
|
+
ia = t("__VUE_INSTANCE_SETTERS__", (e) => Y = e), aa = t("__VUE_SSR_SETTERS__", (e) => la = e);
|
|
2512
|
+
}
|
|
2513
|
+
var oa = (e) => {
|
|
2514
|
+
let t = Y;
|
|
2515
|
+
return ia(e), e.scope.on(), () => {
|
|
2516
|
+
e.scope.off(), ia(t);
|
|
2517
|
+
};
|
|
2518
|
+
}, sa = () => {
|
|
2519
|
+
Y && Y.scope.off(), ia(null);
|
|
2520
|
+
};
|
|
2521
|
+
function ca(e) {
|
|
2522
|
+
return e.vnode.shapeFlag & 4;
|
|
2523
|
+
}
|
|
2524
|
+
var la = !1;
|
|
2525
|
+
function ua(e, t = !1, n = !1) {
|
|
2526
|
+
t && aa(t);
|
|
2527
|
+
let { props: r, children: i } = e.vnode, a = ca(e);
|
|
2528
|
+
ti(e, r, a, t), mi(e, i, n || t);
|
|
2529
|
+
let o = a ? da(e, t) : void 0;
|
|
2530
|
+
return t && aa(!1), o;
|
|
2531
|
+
}
|
|
2532
|
+
function da(e, t) {
|
|
2533
|
+
let n = e.type;
|
|
2534
|
+
e.accessCache = /* @__PURE__ */ Object.create(null), e.proxy = new Proxy(e.ctx, yr);
|
|
2535
|
+
let { setup: r } = n;
|
|
2536
|
+
if (r) {
|
|
2537
|
+
N();
|
|
2538
|
+
let n = e.setupContext = r.length > 1 ? ha(e) : null, i = oa(e), a = rn(r, e, 0, [e.props, n]), o = y(a);
|
|
2539
|
+
if (P(), i(), (o || e.sp) && !Xn(e) && Gn(e), o) {
|
|
2540
|
+
if (a.then(sa, sa), t) return a.then((n) => {
|
|
2541
|
+
aa(!0);
|
|
2542
|
+
try {
|
|
2543
|
+
fa(e, n, t);
|
|
2544
|
+
} finally {
|
|
2545
|
+
aa(!1);
|
|
2546
|
+
}
|
|
2547
|
+
}).catch((t) => {
|
|
2548
|
+
on(t, e, 0);
|
|
2549
|
+
});
|
|
2550
|
+
e.asyncDep = a;
|
|
2551
|
+
} else fa(e, a, t);
|
|
2552
|
+
} else pa(e, t);
|
|
2553
|
+
}
|
|
2554
|
+
function fa(e, t, n) {
|
|
2555
|
+
h(t) ? e.type.__ssrInlineRender ? e.ssrRender = t : e.render = t : v(t) && (e.setupState = Jt(t)), pa(e, n);
|
|
2556
|
+
}
|
|
2557
|
+
function pa(e, t, n) {
|
|
2558
|
+
let i = e.type;
|
|
2559
|
+
e.render ||= i.render || r;
|
|
2560
|
+
{
|
|
2561
|
+
let t = oa(e);
|
|
2562
|
+
N();
|
|
2563
|
+
try {
|
|
2564
|
+
Sr(e);
|
|
2565
|
+
} finally {
|
|
2566
|
+
P(), t();
|
|
2567
|
+
}
|
|
2568
|
+
}
|
|
2569
|
+
}
|
|
2570
|
+
var ma = { get(e, t) {
|
|
2571
|
+
return F(e, "get", ""), e[t];
|
|
2572
|
+
} };
|
|
2573
|
+
function ha(e) {
|
|
2574
|
+
return {
|
|
2575
|
+
attrs: new Proxy(e.attrs, ma),
|
|
2576
|
+
slots: e.slots,
|
|
2577
|
+
emit: e.emit,
|
|
2578
|
+
expose: (t) => {
|
|
2579
|
+
e.exposed = t || {};
|
|
2580
|
+
}
|
|
2581
|
+
};
|
|
2582
|
+
}
|
|
2583
|
+
function ga(e) {
|
|
2584
|
+
return e.exposed ? e.exposeProxy ||= new Proxy(Jt(Bt(e.exposed)), {
|
|
2585
|
+
get(t, n) {
|
|
2586
|
+
if (n in t) return t[n];
|
|
2587
|
+
if (n in _r) return _r[n](e);
|
|
2588
|
+
},
|
|
2589
|
+
has(e, t) {
|
|
2590
|
+
return t in e || t in _r;
|
|
2591
|
+
}
|
|
2592
|
+
}) : e.proxy;
|
|
2593
|
+
}
|
|
2594
|
+
function _a(e) {
|
|
2595
|
+
return h(e) && "__vccOpts" in e;
|
|
2596
|
+
}
|
|
2597
|
+
var va = (e, t) => /* @__PURE__ */ Xt(e, t, la);
|
|
2598
|
+
function ya(e, t, n) {
|
|
2599
|
+
try {
|
|
2600
|
+
Pi(-1);
|
|
2601
|
+
let r = arguments.length;
|
|
2602
|
+
return r === 2 ? v(t) && !d(t) ? Ri(t) ? J(e, null, [t]) : J(e, t) : J(e, null, t) : (r > 3 ? n = Array.prototype.slice.call(arguments, 2) : r === 3 && Ri(n) && (n = [n]), J(e, t, n));
|
|
2603
|
+
} finally {
|
|
2604
|
+
Pi(1);
|
|
2605
|
+
}
|
|
2606
|
+
}
|
|
2607
|
+
var ba = "3.5.44", xa = {
|
|
2608
|
+
protocol: 1,
|
|
2609
|
+
replay: 2
|
|
2610
|
+
}, Sa = xa.replay, Ca = xa.protocol, X = {
|
|
2611
|
+
sourceBytes: 33554432,
|
|
2612
|
+
commandBytes: 4194304,
|
|
2613
|
+
queuedTasks: 32,
|
|
2614
|
+
queuedBytes: 8388608,
|
|
2615
|
+
replayEntries: 1024,
|
|
2616
|
+
replayBytes: 16777216,
|
|
2617
|
+
artifactBytes: 33554432,
|
|
2618
|
+
cancelGraceMs: 400
|
|
2619
|
+
};
|
|
2620
|
+
function wa(e) {
|
|
2621
|
+
return [
|
|
2622
|
+
"docx_write",
|
|
2623
|
+
"xlsx_write",
|
|
2624
|
+
"pptx_write",
|
|
2625
|
+
"pdf_write",
|
|
2626
|
+
"markdown_write",
|
|
2627
|
+
"text_write"
|
|
2628
|
+
].includes(e.kind) && !e.dry_run;
|
|
2629
|
+
}
|
|
2630
|
+
// app/lib/engine/pdf-import.ts
|
|
2631
|
+
function Ta(e) {
|
|
2632
|
+
return e.sources.reduce((e, t) => e + t.bytes.byteLength, 0);
|
|
2633
|
+
}
|
|
2634
|
+
function Ea(e) {
|
|
2635
|
+
return JSON.stringify({
|
|
2636
|
+
at: e.at,
|
|
2637
|
+
sources: e.sources.map(({ bytes: e, ...t }) => t)
|
|
2638
|
+
});
|
|
2639
|
+
}
|
|
2640
|
+
function Da(e, t = !1) {
|
|
2641
|
+
if (!e || !Number.isSafeInteger(e.at) || e.at < 0 || e.at > 1e4 || !Array.isArray(e.sources) || e.sources.length < 1 || e.sources.length > 16) throw Error("PDF 导入设置无效");
|
|
2642
|
+
let n = 0;
|
|
2643
|
+
for (let r of e.sources) {
|
|
2644
|
+
if (!r || typeof r.name != "string" || !r.name.length || r.name.length > 1024 || /[/\\\0]/.test(r.name) || !(r.bytes instanceof ArrayBuffer) || !r.bytes.byteLength || r.bytes.byteLength > X.sourceBytes || r.password !== void 0 && (typeof r.password != "string" || r.password.length > 4096 || t && r.password.length > 0) || r.pages !== void 0 && (!Array.isArray(r.pages) || !r.pages.length || r.pages.length > 1e4 || r.pages.some((e) => !Number.isSafeInteger(e) || e < 0 || e >= 1e4))) throw Error("PDF 来源文件、密码或页码无效");
|
|
2645
|
+
n += r.bytes.byteLength;
|
|
2646
|
+
}
|
|
2647
|
+
if (n > X.sourceBytes || new TextEncoder().encode(Ea(e)).byteLength > 262144) throw Error("PDF 导入源或设置超过容量上限");
|
|
2648
|
+
}
|
|
2649
|
+
// app/lib/engine/assets.ts
|
|
2650
|
+
function Oa() {
|
|
2651
|
+
return typeof document > "u" && typeof location < "u" ? Aa(new URL("../", location.href).href) : typeof new URL("./assets/", import.meta.url).pathname == "string" ? Aa(new URL("./assets/", import.meta.url).pathname) : new URL(
|
|
2652
|
+
/* @vite-ignore */
|
|
2653
|
+
"../",
|
|
2654
|
+
import.meta.url
|
|
2655
|
+
).pathname;
|
|
2656
|
+
}
|
|
2657
|
+
function ka(e) {
|
|
2658
|
+
return typeof e == "string" && e.startsWith("/") && !e.startsWith("//") && e.endsWith("/") && !/[?#\\]/.test(e) && !Array.from(e).some((e) => e.charCodeAt(0) <= 32) && !e.split("/").some((e) => e === "." || e === "..");
|
|
2659
|
+
}
|
|
2660
|
+
function Aa(e) {
|
|
2661
|
+
if (typeof location > "u") throw Error("Office resources require a browser");
|
|
2662
|
+
if (typeof e != "string" || !e.trim()) throw Error("Office assetBase must be a nonempty resource directory");
|
|
2663
|
+
let t = new URL(e, location.href);
|
|
2664
|
+
if (!["http:", "https:"].includes(t.protocol) || t.origin !== location.origin || t.username || t.password || t.search || t.hash) throw Error("Office assetBase must be an HTTP(S) directory on the current origin");
|
|
2665
|
+
let n = t.pathname.endsWith("/") ? t.pathname : `${t.pathname}/`;
|
|
2666
|
+
if (!ka(n)) throw Error("Invalid Office resource directory");
|
|
2667
|
+
return n;
|
|
2668
|
+
}
|
|
2669
|
+
function ja(e, t = Oa()) {
|
|
2670
|
+
if (!ka(t) || e.startsWith("/") || e.split("/").includes("..")) throw Error("Invalid release resource path");
|
|
2671
|
+
return `${t}${e}`;
|
|
2672
|
+
}
|
|
2673
|
+
// app/lib/engine/client.ts
|
|
2674
|
+
var Z = class extends Error {
|
|
2675
|
+
code;
|
|
2676
|
+
constructor(e, t) {
|
|
2677
|
+
super(t), this.code = e, this.name = "EngineError";
|
|
2678
|
+
}
|
|
2679
|
+
};
|
|
2680
|
+
function Ma() {
|
|
2681
|
+
let e = Date.now(), t = crypto.getRandomValues(/* @__PURE__ */ new Uint32Array(2));
|
|
2682
|
+
return {
|
|
2683
|
+
seconds: String(Math.floor(e / 1e3)),
|
|
2684
|
+
nanos: e % 1e3 * 1e6,
|
|
2685
|
+
offset: -new Date(e).getTimezoneOffset() * 60,
|
|
2686
|
+
seed: String(BigInt(t[0]) << 32n | BigInt(t[1]))
|
|
2687
|
+
};
|
|
2688
|
+
}
|
|
2689
|
+
var Na = () => new Z("cancelled", "请求已取消"), Q = (e) => new TextEncoder().encode(JSON.stringify(e)).byteLength, Pa = (e) => Q(e) + (e.kind === "pdf_import" ? Ta(e.request) : 0);
|
|
2690
|
+
function Fa(e) {
|
|
2691
|
+
return e.kind === "source_remote_resource" ? e.bytes ? [e.bytes] : [] : e.kind === "pdf_merge_copy" ? e.sources : e.kind === "presentation_frame" ? e.video ? [e.video.pixels] : [] : e.kind === "pdf_ocr_load" ? [
|
|
2692
|
+
e.detection,
|
|
2693
|
+
e.recognition,
|
|
2694
|
+
e.dictionary
|
|
2695
|
+
] : e.kind === "pdf_signed_output" ? [e.certificate, e.privateKey] : [];
|
|
2696
|
+
}
|
|
2697
|
+
function Ia(e) {
|
|
2698
|
+
if (e.kind === "open" && (e.password = void 0), e.kind === "pdf_import") for (let t of e.request.sources) t.password = void 0;
|
|
2699
|
+
if (e.kind === "view" && (e.request.kind === "pdf_authenticate" && (e.request.password = ""), e.request.kind === "pdf_merge_copy" && (e.request.passwords = void 0), e.request.kind === "pdf_signed_output")) for (let t of Fa(e.request)) t.byteLength && new Uint8Array(t).fill(0);
|
|
2700
|
+
}
|
|
2701
|
+
var La = class {
|
|
2702
|
+
worker;
|
|
2703
|
+
workerEpoch = 0;
|
|
2704
|
+
ready = !1;
|
|
2705
|
+
closed = !1;
|
|
2706
|
+
recovering = !1;
|
|
2707
|
+
failed = !1;
|
|
2708
|
+
allowRecovery = !0;
|
|
2709
|
+
recoveryWaiters = [];
|
|
2710
|
+
listeners = /* @__PURE__ */ new Set();
|
|
2711
|
+
queue = [];
|
|
2712
|
+
active;
|
|
2713
|
+
counter = 0;
|
|
2714
|
+
cancelTimer;
|
|
2715
|
+
source;
|
|
2716
|
+
currentName = "";
|
|
2717
|
+
saving;
|
|
2718
|
+
replay = [];
|
|
2719
|
+
replayBytes = 0;
|
|
2720
|
+
calculated = !1;
|
|
2721
|
+
inputLocale = "en-US";
|
|
2722
|
+
currentValidationPolicy = "rules";
|
|
2723
|
+
validationHandler;
|
|
2724
|
+
currentGeneration = 0;
|
|
2725
|
+
currentRevision = 0;
|
|
2726
|
+
activeCell;
|
|
2727
|
+
engineIdentity = "";
|
|
2728
|
+
resourceBase;
|
|
2729
|
+
constructor(e = {}) {
|
|
2730
|
+
this.resourceBase = e.assetBase === void 0 ? Oa() : Aa(e.assetBase), this.spawn();
|
|
2731
|
+
}
|
|
2732
|
+
get generation() {
|
|
2733
|
+
return this.currentGeneration;
|
|
2734
|
+
}
|
|
2735
|
+
get revision() {
|
|
2736
|
+
return this.currentRevision;
|
|
2737
|
+
}
|
|
2738
|
+
get name() {
|
|
2739
|
+
return this.currentName;
|
|
2740
|
+
}
|
|
2741
|
+
get savePending() {
|
|
2742
|
+
return !!this.saving;
|
|
2743
|
+
}
|
|
2744
|
+
get preparedSaveReceipt() {
|
|
2745
|
+
return this.saving?.receipt ? structuredClone(this.saving.receipt) : void 0;
|
|
2746
|
+
}
|
|
2747
|
+
get identity() {
|
|
2748
|
+
return this.engineIdentity;
|
|
2749
|
+
}
|
|
2750
|
+
get recoveryAllowed() {
|
|
2751
|
+
return this.allowRecovery;
|
|
2752
|
+
}
|
|
2753
|
+
whenReady() {
|
|
2754
|
+
return this.closed ? Promise.reject(new Z("closed", "会话已经关闭")) : this.failed ? Promise.reject(new Z("engine_failure", "文档引擎不可用")) : this.ready && !this.recovering ? Promise.resolve() : new Promise((e, t) => {
|
|
2755
|
+
let n = this.subscribe((r) => {
|
|
2756
|
+
r.phase === "ready" && (n(), e()), (r.phase === "failed" || r.phase === "closed") && (n(), t(new Z(r.phase === "closed" ? "closed" : "engine_failure", "文档引擎未能就绪")));
|
|
2757
|
+
});
|
|
2758
|
+
});
|
|
2759
|
+
}
|
|
2760
|
+
whenIdle() {
|
|
2761
|
+
if (this.closed) return Promise.reject(new Z("closed", "会话已经关闭"));
|
|
2762
|
+
if (this.failed) return Promise.reject(new Z("engine_failure", "文档引擎不可用"));
|
|
2763
|
+
let e = () => this.ready && !this.recovering && !this.active && !this.queue.length;
|
|
2764
|
+
return e() ? Promise.resolve() : new Promise((t, n) => {
|
|
2765
|
+
let r = this.subscribe((i) => {
|
|
2766
|
+
i.phase === "failed" || i.phase === "closed" ? (r(), n(new Z("engine_failure", "文档引擎未能恢复就绪"))) : e() && (r(), t());
|
|
2767
|
+
});
|
|
2768
|
+
});
|
|
2769
|
+
}
|
|
2770
|
+
history(e, t = {}) {
|
|
2771
|
+
return this.checkMutable(), this.enqueue({
|
|
2772
|
+
kind: "history",
|
|
2773
|
+
action: e
|
|
2774
|
+
}, t);
|
|
2775
|
+
}
|
|
2776
|
+
sheetClipboard(e, t = {}) {
|
|
2777
|
+
if (this.checkMutable(), t.replaceKey) throw new Z("invalid_argument", "剪贴板操作不能合并或覆盖");
|
|
2778
|
+
let n = JSON.stringify(e);
|
|
2779
|
+
if (Q(e) > X.commandBytes) throw new Z("limit_exceeded", "剪贴板请求超过 4 MiB");
|
|
2780
|
+
return this.enqueue({
|
|
2781
|
+
kind: "sheet_clipboard",
|
|
2782
|
+
request: JSON.parse(n)
|
|
2783
|
+
}, t);
|
|
2784
|
+
}
|
|
2785
|
+
get locale() {
|
|
2786
|
+
return this.inputLocale;
|
|
2787
|
+
}
|
|
2788
|
+
presentationClipboard(e, t = {}) {
|
|
2789
|
+
if (this.checkMutable(), t.replaceKey) throw new Z("invalid_argument", "剪贴板操作不能合并或覆盖");
|
|
2790
|
+
if (Q(e) > X.commandBytes) throw new Z("limit_exceeded", "剪贴板请求超过 4 MiB");
|
|
2791
|
+
return this.enqueue({
|
|
2792
|
+
kind: "presentation_clipboard",
|
|
2793
|
+
request: JSON.parse(JSON.stringify(e))
|
|
2794
|
+
}, t);
|
|
2795
|
+
}
|
|
2796
|
+
importPdfPages(e, t = {}) {
|
|
2797
|
+
if (this.checkMutable(), t.replaceKey) throw new Z("invalid_argument", "插入页面操作不能合并或覆盖");
|
|
2798
|
+
try {
|
|
2799
|
+
Da(e);
|
|
2800
|
+
} catch (e) {
|
|
2801
|
+
throw new Z("invalid_argument", e instanceof Error ? e.message : "PDF 导入设置无效");
|
|
2802
|
+
}
|
|
2803
|
+
return this.enqueue({
|
|
2804
|
+
kind: "pdf_import",
|
|
2805
|
+
request: structuredClone(e)
|
|
2806
|
+
}, t);
|
|
2807
|
+
}
|
|
2808
|
+
setInputLocale(e) {
|
|
2809
|
+
if (this.checkMutable(), ![
|
|
2810
|
+
"zh-CN",
|
|
2811
|
+
"en-US",
|
|
2812
|
+
"de-DE",
|
|
2813
|
+
"en-GB",
|
|
2814
|
+
"fr-FR"
|
|
2815
|
+
].includes(e)) throw new Z("invalid_argument", "输入地区无效");
|
|
2816
|
+
this.inputLocale !== e && (this.calculated = !1), this.inputLocale = e;
|
|
2817
|
+
}
|
|
2818
|
+
get validationPolicy() {
|
|
2819
|
+
return this.currentValidationPolicy;
|
|
2820
|
+
}
|
|
2821
|
+
setValidationPolicy(e) {
|
|
2822
|
+
if (this.checkMutable(), ![
|
|
2823
|
+
"rules",
|
|
2824
|
+
"reject",
|
|
2825
|
+
"prompt",
|
|
2826
|
+
"allow"
|
|
2827
|
+
].includes(e)) throw new Z("invalid_argument", "输入验证策略无效");
|
|
2828
|
+
this.currentValidationPolicy = e;
|
|
2829
|
+
}
|
|
2830
|
+
setValidationHandler(e) {
|
|
2831
|
+
this.validationHandler = e, !e && this.active?.phase === "confirming" && this.cancel(this.active);
|
|
2832
|
+
}
|
|
2833
|
+
prepareSave(e = this.currentName, t = {}) {
|
|
2834
|
+
if (this.checkAvailable(), this.checkMutable(), !e || e.length > 1024 || /[/\\\0]/.test(e)) throw new Z("invalid_argument", "需要有效的保存文件名");
|
|
2835
|
+
let n = crypto.randomUUID();
|
|
2836
|
+
this.saving = {
|
|
2837
|
+
id: n,
|
|
2838
|
+
name: e
|
|
2839
|
+
};
|
|
2840
|
+
try {
|
|
2841
|
+
let r = this.enqueue({
|
|
2842
|
+
kind: "prepare_save",
|
|
2843
|
+
id: n,
|
|
2844
|
+
name: e
|
|
2845
|
+
}, t), i = r.result.catch((e) => {
|
|
2846
|
+
throw this.saving?.id === n && (this.saving = void 0), e;
|
|
2847
|
+
});
|
|
2848
|
+
return {
|
|
2849
|
+
...r,
|
|
2850
|
+
result: i
|
|
2851
|
+
};
|
|
2852
|
+
} catch (e) {
|
|
2853
|
+
throw this.saving = void 0, e;
|
|
2854
|
+
}
|
|
2855
|
+
}
|
|
2856
|
+
commitSave(e) {
|
|
2857
|
+
if (this.saving?.id !== e || !this.saving.receipt) throw new Z("busy", "保存候选不存在或尚未准备完成");
|
|
2858
|
+
return this.enqueue({
|
|
2859
|
+
kind: "commit_save",
|
|
2860
|
+
receipt: structuredClone(this.saving.receipt)
|
|
2861
|
+
}, {});
|
|
2862
|
+
}
|
|
2863
|
+
discardSave(e) {
|
|
2864
|
+
if (this.saving?.id !== e) throw new Z("busy", "保存候选不存在或已经失效");
|
|
2865
|
+
return this.enqueue({
|
|
2866
|
+
kind: "discard_save",
|
|
2867
|
+
id: e
|
|
2868
|
+
}, {});
|
|
2869
|
+
}
|
|
2870
|
+
readPreparedSave() {
|
|
2871
|
+
if (!this.saving?.receipt) throw new Z("busy", "没有已准备的保存副本");
|
|
2872
|
+
return this.enqueue({
|
|
2873
|
+
kind: "read_save",
|
|
2874
|
+
receipt: structuredClone(this.saving.receipt)
|
|
2875
|
+
}, {});
|
|
2876
|
+
}
|
|
2877
|
+
get cancellationMode() {
|
|
2878
|
+
return globalThis.crossOriginIsolated && typeof SharedArrayBuffer < "u" ? "cooperative" : "restart";
|
|
2879
|
+
}
|
|
2880
|
+
subscribe(e) {
|
|
2881
|
+
return this.listeners.add(e), () => this.listeners.delete(e);
|
|
2882
|
+
}
|
|
2883
|
+
open(e, t, n = {}, r) {
|
|
2884
|
+
if (this.checkAvailable(), this.checkMutable(), t.byteLength > X.sourceBytes) throw new Z("limit_exceeded", "文件超过 32 MiB 输入上限");
|
|
2885
|
+
if (r !== void 0 && r.length > 2048) throw new Z("invalid_argument", "PDF 密码过长");
|
|
2886
|
+
return n.signal?.aborted || (this.cancelPending(), this.currentGeneration++), this.enqueue({
|
|
2887
|
+
kind: "open",
|
|
2888
|
+
name: e,
|
|
2889
|
+
bytes: t.slice(0),
|
|
2890
|
+
password: r
|
|
2891
|
+
}, n);
|
|
2892
|
+
}
|
|
2893
|
+
command(e, t = {}) {
|
|
2894
|
+
e.kind !== "status" && this.checkMutable();
|
|
2895
|
+
let n = JSON.stringify(e);
|
|
2896
|
+
if (new TextEncoder().encode(n).byteLength > X.commandBytes) throw new Z("limit_exceeded", "命令超过 4 MiB 上限");
|
|
2897
|
+
if (t.replaceKey && wa(e)) throw new Z("invalid_argument", "编辑命令不能合并或覆盖");
|
|
2898
|
+
return this.enqueue({
|
|
2899
|
+
kind: "command",
|
|
2900
|
+
command: JSON.parse(n)
|
|
2901
|
+
}, t);
|
|
2902
|
+
}
|
|
2903
|
+
exportBytes(e = {}) {
|
|
2904
|
+
return this.checkMutable(), this.enqueue({ kind: "export" }, e);
|
|
2905
|
+
}
|
|
2906
|
+
exportCopy(e, t = {}) {
|
|
2907
|
+
return this.checkMutable(), this.enqueue({
|
|
2908
|
+
kind: "export_copy",
|
|
2909
|
+
format: e
|
|
2910
|
+
}, t);
|
|
2911
|
+
}
|
|
2912
|
+
view(e, t = {}) {
|
|
2913
|
+
if (this.checkMutable(), e.kind === "presentation_frame" && e.video) {
|
|
2914
|
+
let { width: t, height: n, pixels: r } = e.video;
|
|
2915
|
+
if (!Number.isSafeInteger(t) || !Number.isSafeInteger(n) || t < 1 || n < 1 || t > 960 || n > 540 || !(r instanceof ArrayBuffer) || r.byteLength !== t * n * 4) throw new Z("limit_exceeded", "视频采样帧无效或超过 960 × 540 像素上限");
|
|
2916
|
+
}
|
|
2917
|
+
let n = Fa(e), r = e.kind === "pdf_ocr_load" || e.kind === "pdf_merge_copy" ? 33554432 : e.kind === "source_remote_resource" ? 16777216 : X.queuedBytes;
|
|
2918
|
+
if (n.some((e) => !(e instanceof ArrayBuffer)) || n.reduce((e, t) => e + t.byteLength, 0) > r) throw new Z("limit_exceeded", "请求中的二进制内容超过上限");
|
|
2919
|
+
if (e.kind === "pdf_signed_output" && (e.certificate.byteLength > 1048576 || e.privateKey.byteLength > 65536)) throw new Z("limit_exceeded", "证书限 1 MiB,私钥限 64 KiB");
|
|
2920
|
+
if (e.kind === "pdf_authenticate" && e.password.length > 2048) throw new Z("invalid_argument", "PDF 密码过长");
|
|
2921
|
+
if (e.kind === "pdf_merge_copy" && (e.sources.length < 1 || e.sources.length > 15 || e.passwords && (e.passwords.length !== e.sources.length || e.passwords.some((e) => e.length > 2048)))) throw new Z("invalid_argument", "合并需要 1~15 份追加 PDF 及匹配的密码列表");
|
|
2922
|
+
let i = {
|
|
2923
|
+
kind: "view",
|
|
2924
|
+
request: e.kind === "source_remote_resource" ? structuredClone(e, { transfer: n }) : structuredClone(e)
|
|
2925
|
+
};
|
|
2926
|
+
try {
|
|
2927
|
+
return this.enqueue(i, t);
|
|
2928
|
+
} catch (e) {
|
|
2929
|
+
throw Ia(i), e;
|
|
2930
|
+
}
|
|
2931
|
+
}
|
|
2932
|
+
input(e, t = {}) {
|
|
2933
|
+
if (this.checkMutable(), t.replaceKey) throw new Z("invalid_argument", "输入操作不能合并或覆盖");
|
|
2934
|
+
if (Q(e) > X.commandBytes) throw new Z("limit_exceeded", "输入内容超过 4 MiB 上限");
|
|
2935
|
+
return this.enqueue({
|
|
2936
|
+
kind: "input",
|
|
2937
|
+
input: structuredClone(e)
|
|
2938
|
+
}, t);
|
|
2939
|
+
}
|
|
2940
|
+
runScript(e, t = {}) {
|
|
2941
|
+
if (this.checkMutable(), t.replaceKey) throw new Z("invalid_argument", "脚本运行不能合并或覆盖");
|
|
2942
|
+
if (new TextEncoder().encode(e.source).byteLength > 262144) throw new Z("limit_exceeded", "脚本超过 256 KiB 上限");
|
|
2943
|
+
return this.enqueue({
|
|
2944
|
+
kind: "script",
|
|
2945
|
+
request: structuredClone(e)
|
|
2946
|
+
}, t);
|
|
2947
|
+
}
|
|
2948
|
+
runMcp(e, t = {}) {
|
|
2949
|
+
if (this.checkMutable(), t.replaceKey) throw new Z("invalid_argument", "MCP 请求不能合并或覆盖");
|
|
2950
|
+
if (Q(e) > X.commandBytes) throw new Z("limit_exceeded", "MCP 请求超过 4 MiB");
|
|
2951
|
+
return this.enqueue({
|
|
2952
|
+
kind: "mcp",
|
|
2953
|
+
request: structuredClone(e)
|
|
2954
|
+
}, t);
|
|
2955
|
+
}
|
|
2956
|
+
recover() {
|
|
2957
|
+
if (this.closed) return Promise.reject(new Z("closed", "会话已经关闭"));
|
|
2958
|
+
if (!this.allowRecovery) return Promise.reject(new Z("unsupported", "此会话的安全设置不允许自动恢复,请先保存副本再重新打开。"));
|
|
2959
|
+
let e = new Promise((e, t) => this.recoveryWaiters.push({
|
|
2960
|
+
resolve: e,
|
|
2961
|
+
reject: t
|
|
2962
|
+
}));
|
|
2963
|
+
return this.recovering || this.restart(), e;
|
|
2964
|
+
}
|
|
2965
|
+
close() {
|
|
2966
|
+
this.closed || (this.closed = !0, this.worker.terminate(), clearTimeout(this.cancelTimer), this.failPending(new Z("closed", "会话已经关闭")), this.recoveryWaiters.splice(0).forEach(({ reject: e }) => e(new Z("closed", "会话已经关闭"))), this.source = void 0, this.saving = void 0, this.replay = [], this.replayBytes = 0, this.currentGeneration++, this.emit("closed"), this.listeners.clear());
|
|
2967
|
+
}
|
|
2968
|
+
emit(e, t) {
|
|
2969
|
+
let n = {
|
|
2970
|
+
phase: e,
|
|
2971
|
+
requestId: t?.id,
|
|
2972
|
+
generation: t?.generation ?? this.currentGeneration,
|
|
2973
|
+
revision: this.currentRevision,
|
|
2974
|
+
queued: this.queue.length
|
|
2975
|
+
};
|
|
2976
|
+
for (let e of this.listeners) try {
|
|
2977
|
+
e(n);
|
|
2978
|
+
} catch (e) {
|
|
2979
|
+
globalThis.reportError(e);
|
|
2980
|
+
}
|
|
2981
|
+
}
|
|
2982
|
+
enqueue(e, t) {
|
|
2983
|
+
if (this.checkAvailable(), t = { ...t }, t.replaceKey) for (let e of [...this.queue, ...this.active ? [this.active] : []]) e.options.replaceKey === t.replaceKey && this.cancel(e);
|
|
2984
|
+
let n = e.kind === "open" ? e.bytes.byteLength : Q(e) + (e.kind === "view" ? Fa(e.request).reduce((e, t) => e + t.byteLength, 0) : e.kind === "pdf_import" ? Ta(e.request) : 0), r = e.kind === "pdf_import" || e.kind === "view" && (e.request.kind === "pdf_ocr_load" || e.request.kind === "pdf_merge_copy" || e.request.kind === "source_remote_resource") ? 33619968 : X.queuedBytes, i = this.queue.reduce((e, t) => e + (t.operation.kind === "open" ? 0 : t.bytes), 0);
|
|
2985
|
+
if (this.queue.length >= X.queuedTasks || e.kind !== "open" && i + n > r) throw new Z("busy", "等待中的请求过多,请稍后重试");
|
|
2986
|
+
let a, o, s = new Promise((e, t) => {
|
|
2987
|
+
a = (t) => e(t), o = t;
|
|
2988
|
+
}), c = {
|
|
2989
|
+
id: ++this.counter,
|
|
2990
|
+
generation: this.currentGeneration,
|
|
2991
|
+
revision: this.currentRevision,
|
|
2992
|
+
operation: e,
|
|
2993
|
+
options: t,
|
|
2994
|
+
bytes: n,
|
|
2995
|
+
environment: {
|
|
2996
|
+
...Ma(),
|
|
2997
|
+
locale: this.inputLocale,
|
|
2998
|
+
validationPolicy: this.currentValidationPolicy,
|
|
2999
|
+
...e.kind !== "open" && this.activeCell ? { activeCell: { ...this.activeCell } } : {}
|
|
3000
|
+
},
|
|
3001
|
+
phase: "queued",
|
|
3002
|
+
settled: !1,
|
|
3003
|
+
resolve: a,
|
|
3004
|
+
reject: o,
|
|
3005
|
+
cleanup: () => {},
|
|
3006
|
+
replay: []
|
|
3007
|
+
}, l = () => this.cancel(c);
|
|
3008
|
+
return c.cleanup = () => t.signal?.removeEventListener("abort", l), t.signal?.addEventListener("abort", l, { once: !0 }), this.queue.push(c), t.signal?.aborted ? this.cancel(c) : (this.emit("queued", c), this.pump()), {
|
|
3009
|
+
id: c.id,
|
|
3010
|
+
result: s,
|
|
3011
|
+
cancel: () => this.cancel(c)
|
|
3012
|
+
};
|
|
3013
|
+
}
|
|
3014
|
+
checkAvailable() {
|
|
3015
|
+
if (this.closed) throw new Z("closed", "会话已经关闭");
|
|
3016
|
+
if (this.failed) throw new Z("engine_failure", "引擎不可用,请先恢复会话");
|
|
3017
|
+
if (this.recovering) throw new Z("busy", "正在恢复最后确认的文档状态");
|
|
3018
|
+
}
|
|
3019
|
+
checkMutable() {
|
|
3020
|
+
if (this.saving) throw new Z("busy", "正在保存当前版本,请等待保存完成或取消保存");
|
|
3021
|
+
}
|
|
3022
|
+
cancel(e) {
|
|
3023
|
+
if (e.settled || e.phase === "committing" || e.operation.kind === "commit_save" || e.operation.kind === "discard_save") return !1;
|
|
3024
|
+
let t = e.phase === "confirming";
|
|
3025
|
+
return this.settle(e, Na()), this.active === e ? (e.phase = "cancelling", t ? (this.acknowledge(e, !0), !0) : (e.flag && Atomics.store(e.flag, 0, 1), this.allowRecovery && (this.cancelTimer = setTimeout(() => {
|
|
3026
|
+
this.active === e && e.phase === "cancelling" && this.restart();
|
|
3027
|
+
}, e.flag ? X.cancelGraceMs : 0)), this.emit("cancelling", e), !0)) : (this.queue = this.queue.filter((t) => t !== e), this.emit("cancelled", e), !0);
|
|
3028
|
+
}
|
|
3029
|
+
cancelPending() {
|
|
3030
|
+
for (let e of [...this.queue, ...this.active ? [this.active] : []]) this.cancel(e);
|
|
3031
|
+
}
|
|
3032
|
+
settle(e, t, n) {
|
|
3033
|
+
e.settled || (e.settled = !0, e.confirmation?.abort(), e.cleanup(), Ia(e.operation), t ? e.reject(t) : e.resolve({
|
|
3034
|
+
requestId: e.id,
|
|
3035
|
+
generation: e.generation,
|
|
3036
|
+
revision: this.currentRevision,
|
|
3037
|
+
value: n,
|
|
3038
|
+
notices: e.response?.input?.warnings
|
|
3039
|
+
}));
|
|
3040
|
+
}
|
|
3041
|
+
pump() {
|
|
3042
|
+
if (!this.ready || this.active || this.closed || this.recovering) return;
|
|
3043
|
+
let e = this.queue.shift();
|
|
3044
|
+
if (!e) return;
|
|
3045
|
+
if (e.options.expectedRevision !== void 0 && e.options.expectedRevision !== this.currentRevision) {
|
|
3046
|
+
this.settle(e, new Z("busy", "文档已经变化,请刷新当前结果后重试")), this.pump();
|
|
3047
|
+
return;
|
|
3048
|
+
}
|
|
3049
|
+
let t = e.operation.kind === "command" && wa(e.operation.command) || e.operation.kind === "input" && ("kind" in e.operation.input || e.operation.input.action !== "move") || e.operation.kind === "script" || e.operation.kind === "mcp" || e.operation.kind === "pdf_import" || e.operation.kind === "sheet_clipboard" && e.operation.request.action !== "inspect" || e.operation.kind === "presentation_clipboard" && e.operation.request.action !== "inspect" || e.operation.kind === "history", n = e.operation.kind === "prepare_save", r = /\.(xlsx?|csv|tsv|sxs(?:\.zip)?)$/i.test(this.currentName), i = r && (e.operation.kind === "export" || e.operation.kind === "view" || e.operation.kind === "command" && e.operation.command.kind !== "status"), a = n ? 2 : t && r ? 3 : 1, o = n ? 36864 : t ? e.bytes + (r ? 1536 : 512) : 512;
|
|
3050
|
+
if (e.operation.kind !== "open" && (t || n || i && !this.calculated) && (this.replay.length + a > X.replayEntries || this.replayBytes + o > X.replayBytes)) {
|
|
3051
|
+
this.settle(e, new Z("limit_exceeded", "本次会话恢复记录达到上限,请导出副本后重新打开")), this.pump();
|
|
3052
|
+
return;
|
|
3053
|
+
}
|
|
3054
|
+
this.active = e, e.revision = this.currentRevision, e.phase = "running", this.cancellationMode === "cooperative" && (e.flag = new Int32Array(new SharedArrayBuffer(4)));
|
|
3055
|
+
let s = e.operation.kind === "open" ? {
|
|
3056
|
+
...e.operation,
|
|
3057
|
+
bytes: e.operation.bytes.slice(0)
|
|
3058
|
+
} : e.operation;
|
|
3059
|
+
this.post({
|
|
3060
|
+
kind: "run",
|
|
3061
|
+
id: e.id,
|
|
3062
|
+
generation: e.generation,
|
|
3063
|
+
revision: e.revision,
|
|
3064
|
+
operation: s,
|
|
3065
|
+
environment: e.environment,
|
|
3066
|
+
cancellation: e.flag?.buffer
|
|
3067
|
+
}, s.kind === "open" ? [s.bytes] : s.kind === "view" && (s.request.kind === "pdf_signed_output" || s.request.kind === "pdf_merge_copy" || s.request.kind === "pdf_ocr_load" || s.request.kind === "source_remote_resource") ? Fa(s.request) : []);
|
|
3068
|
+
}
|
|
3069
|
+
post(e, t = []) {
|
|
3070
|
+
this.worker.postMessage(e, t);
|
|
3071
|
+
}
|
|
3072
|
+
spawn() {
|
|
3073
|
+
let e = ++this.workerEpoch;
|
|
3074
|
+
this.ready = !1, this.failed = !1, this.worker = new Worker(ja("engine/worker.js", this.resourceBase), {
|
|
3075
|
+
type: "module",
|
|
3076
|
+
name: "office-document"
|
|
3077
|
+
}), this.worker.onmessage = ({ data: t }) => {
|
|
3078
|
+
e === this.workerEpoch && !this.closed && this.receive(t);
|
|
3079
|
+
}, this.worker.onerror = (t) => {
|
|
3080
|
+
t.preventDefault(), e === this.workerEpoch && this.workerFailed();
|
|
3081
|
+
}, this.worker.onmessageerror = () => {
|
|
3082
|
+
e === this.workerEpoch && this.workerFailed();
|
|
3083
|
+
};
|
|
3084
|
+
}
|
|
3085
|
+
receive(e) {
|
|
3086
|
+
if (e.kind === "fatal") {
|
|
3087
|
+
this.workerFailed();
|
|
3088
|
+
return;
|
|
3089
|
+
}
|
|
3090
|
+
if (e.kind === "ready") {
|
|
3091
|
+
if (e.protocolVersion !== Ca || e.replayVersion !== Sa || this.engineIdentity && this.engineIdentity !== e.engine) {
|
|
3092
|
+
this.worker.terminate(), this.ready = !1, this.recovering = !1, this.failed = !0;
|
|
3093
|
+
let e = new Z("incompatible_engine", "文档引擎版本不兼容,当前会话未被替换");
|
|
3094
|
+
this.failPending(e), this.recoveryWaiters.splice(0).forEach(({ reject: t }) => t(e)), this.emit("failed");
|
|
3095
|
+
return;
|
|
3096
|
+
}
|
|
3097
|
+
this.engineIdentity = e.engine, this.ready = !0, this.recovering ? this.sendRestore() : (this.emit("ready"), this.pump());
|
|
3098
|
+
return;
|
|
3099
|
+
}
|
|
3100
|
+
if (e.kind === "restored") {
|
|
3101
|
+
if (e.generation !== this.currentGeneration || e.revision !== this.currentRevision) {
|
|
3102
|
+
this.workerFailed();
|
|
3103
|
+
return;
|
|
3104
|
+
}
|
|
3105
|
+
this.recovering = !1, this.recoveryWaiters.splice(0).forEach(({ resolve: e }) => e()), this.emit("ready"), this.pump();
|
|
3106
|
+
return;
|
|
3107
|
+
}
|
|
3108
|
+
let t = this.active;
|
|
3109
|
+
if (t && t.id === e.id && t.generation === e.generation) {
|
|
3110
|
+
if (e.kind === "running") t.phase === "running" && this.emit("running", t);
|
|
3111
|
+
else if (e.kind === "prepared") {
|
|
3112
|
+
if (clearTimeout(this.cancelTimer), t.response = e, e.calculated && t.operation.kind !== "open" && t.replay.push({
|
|
3113
|
+
kind: "command",
|
|
3114
|
+
command: {
|
|
3115
|
+
kind: "xlsx_write",
|
|
3116
|
+
target: "active",
|
|
3117
|
+
write: {
|
|
3118
|
+
op: "batch_update",
|
|
3119
|
+
requests: [{ op: "recalculate" }]
|
|
3120
|
+
},
|
|
3121
|
+
dry_run: !1
|
|
3122
|
+
},
|
|
3123
|
+
environment: e.calculationEnvironment ?? t.environment,
|
|
3124
|
+
revision: t.revision
|
|
3125
|
+
}), e.input?.command) {
|
|
3126
|
+
let n = Q(e.input.command), r = e.input.sourceSelection ? Q(e.input.sourceSelection) : 0;
|
|
3127
|
+
(!wa(e.input.command) || n > X.commandBytes || this.replayBytes + n + r + Q(t.replay) + 512 > X.replayBytes) && (e.error = {
|
|
3128
|
+
code: "limit_exceeded",
|
|
3129
|
+
message: "输入超过本次会话恢复记录上限"
|
|
3130
|
+
});
|
|
3131
|
+
}
|
|
3132
|
+
let n = e.script?.replay ?? e.mcp?.replay;
|
|
3133
|
+
if (n) {
|
|
3134
|
+
let t = Q(n);
|
|
3135
|
+
(t > X.commandBytes || this.replay.length + 1 > X.replayEntries || this.replayBytes + t + 1024 > X.replayBytes) && (e.error = {
|
|
3136
|
+
code: "limit_exceeded",
|
|
3137
|
+
message: "脚本修改超过本次会话恢复记录上限,修改未提交"
|
|
3138
|
+
});
|
|
3139
|
+
}
|
|
3140
|
+
let r = e.error ?? (e.response?.kind === "error" ? e.response : void 0), i = t.settled || t.generation !== this.currentGeneration || !!r;
|
|
3141
|
+
if (!i && e.validation) {
|
|
3142
|
+
this.confirmValidation(t, e.validation);
|
|
3143
|
+
return;
|
|
3144
|
+
}
|
|
3145
|
+
this.acknowledge(t, i);
|
|
3146
|
+
} else if (e.kind === "committed" || e.kind === "discarded") {
|
|
3147
|
+
if (e.kind === "committed") {
|
|
3148
|
+
if (this.currentRevision = e.revision, this.allowRecovery = (t.operation.kind === "open" || this.allowRecovery) && e.recoveryAllowed !== !1, this.allowRecovery || (this.replay = [], this.replayBytes = 0), t.operation.kind === "open") this.source = {
|
|
3149
|
+
name: t.operation.name,
|
|
3150
|
+
bytes: t.operation.bytes
|
|
3151
|
+
}, this.currentName = t.operation.name, this.replay = [], this.replayBytes = 0, this.calculated = !1;
|
|
3152
|
+
else if (t.operation.kind === "command" && wa(t.operation.command) || t.operation.kind === "input" && t.response?.input?.command) t.replay.push({
|
|
3153
|
+
kind: "command",
|
|
3154
|
+
command: t.operation.kind === "command" ? t.operation.command : t.response.input.command,
|
|
3155
|
+
environment: t.environment,
|
|
3156
|
+
revision: e.revision,
|
|
3157
|
+
...t.operation.kind === "input" && t.response?.input?.sourceSelection ? { sourceSelection: t.response.input.sourceSelection } : {},
|
|
3158
|
+
...t.validationConfirmed ? { validationConfirmed: !0 } : {}
|
|
3159
|
+
}), this.calculated = !1;
|
|
3160
|
+
else if ((t.operation.kind === "script" || t.operation.kind === "mcp") && (t.response?.script?.replay || t.response?.mcp?.replay)) t.replay.push({
|
|
3161
|
+
kind: "script",
|
|
3162
|
+
replay: t.response.script?.replay ?? t.response.mcp?.replay,
|
|
3163
|
+
environment: t.environment,
|
|
3164
|
+
revision: e.revision
|
|
3165
|
+
});
|
|
3166
|
+
else if (t.operation.kind === "sheet_clipboard" && t.operation.request.action !== "inspect") t.replay.push({
|
|
3167
|
+
kind: "sheet_clipboard",
|
|
3168
|
+
request: t.operation.request,
|
|
3169
|
+
environment: t.operation.request.action === "capture" ? t.response?.calculationEnvironment ?? t.environment : t.environment,
|
|
3170
|
+
revision: e.revision,
|
|
3171
|
+
...t.validationConfirmed ? { validationConfirmed: !0 } : {}
|
|
3172
|
+
});
|
|
3173
|
+
else if (t.operation.kind === "presentation_clipboard" && t.operation.request.action !== "inspect") t.replay.push({
|
|
3174
|
+
kind: "presentation_clipboard",
|
|
3175
|
+
request: t.operation.request,
|
|
3176
|
+
environment: t.environment,
|
|
3177
|
+
revision: e.revision
|
|
3178
|
+
});
|
|
3179
|
+
else if (t.operation.kind === "pdf_import") t.replay.push({
|
|
3180
|
+
kind: "pdf_import",
|
|
3181
|
+
request: t.operation.request,
|
|
3182
|
+
environment: t.environment,
|
|
3183
|
+
revision: e.revision
|
|
3184
|
+
});
|
|
3185
|
+
else if (t.operation.kind === "history") t.replay.push({
|
|
3186
|
+
kind: "history",
|
|
3187
|
+
action: t.operation.action,
|
|
3188
|
+
environment: t.environment,
|
|
3189
|
+
revision: e.revision
|
|
3190
|
+
});
|
|
3191
|
+
else if (t.operation.kind === "prepare_save" && t.response?.save) {
|
|
3192
|
+
let e = {
|
|
3193
|
+
id: t.response.save.id,
|
|
3194
|
+
name: t.response.save.name,
|
|
3195
|
+
manifest: t.response.save.manifest
|
|
3196
|
+
};
|
|
3197
|
+
this.saving = {
|
|
3198
|
+
id: e.id,
|
|
3199
|
+
name: e.name,
|
|
3200
|
+
receipt: structuredClone(e),
|
|
3201
|
+
environment: t.environment
|
|
3202
|
+
};
|
|
3203
|
+
} else t.operation.kind === "commit_save" ? (t.replay.push({
|
|
3204
|
+
kind: "save",
|
|
3205
|
+
receipt: t.operation.receipt,
|
|
3206
|
+
environment: this.saving?.environment ?? t.environment,
|
|
3207
|
+
revision: e.revision
|
|
3208
|
+
}), this.currentName = t.operation.receipt.name, this.saving = void 0) : t.operation.kind === "discard_save" && this.saving?.id === t.operation.id && (this.saving = void 0);
|
|
3209
|
+
}
|
|
3210
|
+
for (let e of this.allowRecovery ? t.replay : []) this.replay.push(e), this.replayBytes += Pa(e);
|
|
3211
|
+
this.calculated = e.calculated;
|
|
3212
|
+
let n = (e.response?.kind === "error" ? e.response : void 0) ?? t.response?.error ?? (t.response?.response?.kind === "error" ? t.response.response : void 0);
|
|
3213
|
+
if (n) this.settle(t, new Z(n.code, n.message));
|
|
3214
|
+
else if (e.kind === "discarded" || t.generation !== this.currentGeneration) this.settle(t, Na());
|
|
3215
|
+
else {
|
|
3216
|
+
if (t.operation.kind === "open") this.activeCell = void 0;
|
|
3217
|
+
else if (t.operation.kind === "view" && t.operation.request.kind === "grid_selection") {
|
|
3218
|
+
let e = t.response?.view;
|
|
3219
|
+
if (e?.context) {
|
|
3220
|
+
let t = e.selection.active ?? e.selection.focus;
|
|
3221
|
+
this.activeCell = {
|
|
3222
|
+
sheet: e.context.sheet_id,
|
|
3223
|
+
row: t.row,
|
|
3224
|
+
column: t.column
|
|
3225
|
+
};
|
|
3226
|
+
}
|
|
3227
|
+
}
|
|
3228
|
+
this.settle(t, void 0, e.response ?? t.response?.script ?? t.response?.mcp ?? t.response?.clipboard ?? t.response?.presentationClipboard ?? t.response?.pdfImport ?? t.response?.input?.selection ?? t.response?.view ?? t.response?.save ?? t.response?.copyExport ?? t.response?.bytes ?? t.response?.response);
|
|
3229
|
+
}
|
|
3230
|
+
this.active = void 0, this.emit(e.kind === "committed" ? "completed" : "cancelled", t), this.pump();
|
|
3231
|
+
}
|
|
3232
|
+
}
|
|
3233
|
+
}
|
|
3234
|
+
failPending(e) {
|
|
3235
|
+
this.active && this.settle(this.active, e);
|
|
3236
|
+
for (let t of this.queue) this.settle(t, e);
|
|
3237
|
+
this.active = void 0, this.queue = [];
|
|
3238
|
+
}
|
|
3239
|
+
acknowledge(e, t, n = !1) {
|
|
3240
|
+
this.active !== e || this.closed || (t || (e.phase = "committing", e.validationConfirmed = n, this.emit("committing", e)), this.post({
|
|
3241
|
+
kind: t ? "discard" : "accept",
|
|
3242
|
+
id: e.id,
|
|
3243
|
+
generation: e.generation,
|
|
3244
|
+
revision: e.revision,
|
|
3245
|
+
...n ? { confirmValidation: !0 } : {}
|
|
3246
|
+
}));
|
|
3247
|
+
}
|
|
3248
|
+
async confirmValidation(e, t) {
|
|
3249
|
+
e.phase = "confirming", e.confirmation = new AbortController(), clearTimeout(this.cancelTimer), this.emit("confirming", e);
|
|
3250
|
+
let n = !1;
|
|
3251
|
+
try {
|
|
3252
|
+
this.validationHandler ? n = await this.validationHandler(t, e.confirmation.signal) : e.response && (e.response.error = {
|
|
3253
|
+
code: "validation_confirmation",
|
|
3254
|
+
message: "输入不符合数据验证规则,整批修改未应用"
|
|
3255
|
+
});
|
|
3256
|
+
} catch {
|
|
3257
|
+
n = !1;
|
|
3258
|
+
}
|
|
3259
|
+
this.active !== e || e.settled || e.confirmation.signal.aborted || this.closed || (!t.can_override && e.response && (e.response.error = {
|
|
3260
|
+
code: "validation_rejected",
|
|
3261
|
+
message: "输入不符合数据验证规则,整批修改未应用"
|
|
3262
|
+
}), this.acknowledge(e, !n || !t.can_override, n && t.can_override));
|
|
3263
|
+
}
|
|
3264
|
+
sendRestore() {
|
|
3265
|
+
let e = this.source ? {
|
|
3266
|
+
name: this.source.name,
|
|
3267
|
+
bytes: this.source.bytes.slice(0)
|
|
3268
|
+
} : void 0;
|
|
3269
|
+
this.post({
|
|
3270
|
+
kind: "restore",
|
|
3271
|
+
generation: this.currentGeneration,
|
|
3272
|
+
revision: this.currentRevision,
|
|
3273
|
+
source: e,
|
|
3274
|
+
entries: this.replay,
|
|
3275
|
+
save: this.saving?.receipt && this.saving.environment ? {
|
|
3276
|
+
receipt: this.saving.receipt,
|
|
3277
|
+
environment: this.saving.environment
|
|
3278
|
+
} : void 0
|
|
3279
|
+
}, e ? [e.bytes] : []);
|
|
3280
|
+
}
|
|
3281
|
+
restart() {
|
|
3282
|
+
if (this.closed || this.recovering || !this.allowRecovery) return;
|
|
3283
|
+
clearTimeout(this.cancelTimer), this.worker.terminate();
|
|
3284
|
+
let e = this.queue.findLast((e) => e.operation.kind === "open");
|
|
3285
|
+
this.queue = this.queue.filter((t) => t !== e), this.failPending(new Z("worker_restarted", "引擎已重新启动,未确认的请求已取消")), this.recovering = !0, this.currentGeneration++, e && (e.generation = this.currentGeneration, this.queue.push(e)), this.emit("recovering"), this.closed || this.spawn();
|
|
3286
|
+
}
|
|
3287
|
+
workerFailed() {
|
|
3288
|
+
if (!this.recovering && this.ready && this.allowRecovery) {
|
|
3289
|
+
this.restart();
|
|
3290
|
+
return;
|
|
3291
|
+
}
|
|
3292
|
+
this.worker.terminate(), this.ready = !1, this.recovering = !1, this.failed = !0;
|
|
3293
|
+
let e = new Z("engine_failure", this.allowRecovery ? "引擎恢复失败,最后确认的文档仍保留,可重试恢复" : "文档引擎已停止;此会话的安全设置禁止自动恢复,请重新打开已保存文件。");
|
|
3294
|
+
this.failPending(e), this.recoveryWaiters.splice(0).forEach(({ reject: t }) => t(e)), this.emit("failed");
|
|
3295
|
+
}
|
|
3296
|
+
};
|
|
3297
|
+
// app/lib/engine/artifact.ts
|
|
3298
|
+
async function Ra(e) {
|
|
3299
|
+
let t = await crypto.subtle.digest("SHA-256", e);
|
|
3300
|
+
return [...new Uint8Array(t)].map((e) => e.toString(16).padStart(2, "0")).join("");
|
|
3301
|
+
}
|
|
3302
|
+
// app/lib/files/directory.ts
|
|
3303
|
+
async function za(e, t, n, r) {
|
|
3304
|
+
if (t?.aborted) throw new Z("cancelled", "目录导入已取消");
|
|
3305
|
+
if (!e.length || e.length > 1024) throw new Z("limit_exceeded", "目录最多包含 1024 个文件,总计不超过 32 MiB");
|
|
3306
|
+
let i = n ?? e.map((e) => e.webkitRelativePath || e.name);
|
|
3307
|
+
if (i.length !== e.length) throw new Z("invalid_argument", "目录文件与路径不一致");
|
|
3308
|
+
let a = i.filter((e) => /\.(sds|sxs|md|markdown)$/i.test(e));
|
|
3309
|
+
if (a.length !== 1) throw new Z("invalid_argument", "请选择仅包含一份 SDS、SXS 或 Markdown 文档及其资源的目录");
|
|
3310
|
+
let o = a[0], s = o.slice(0, o.lastIndexOf("/") + 1);
|
|
3311
|
+
if (i.some((e) => !e.startsWith(s))) throw new Z("invalid_argument", "资源必须位于主文档所在目录内");
|
|
3312
|
+
let c = o.slice(s.length), l = /\.(md|markdown)$/i.test(c), u = e.map((e, t) => ({
|
|
3313
|
+
file: e,
|
|
3314
|
+
path: i[t].slice(s.length)
|
|
3315
|
+
})).filter(({ path: e }) => l || e === c || e === `${c}.raw.xml` || e.startsWith(`${c}.assets/`));
|
|
3316
|
+
if (u.reduce((e, t) => e + t.file.size, 0) > X.sourceBytes) throw new Z("limit_exceeded", "所选文档及资源超过 32 MiB 上限");
|
|
3317
|
+
let d = u.map(({ path: e }) => e), f = l ? "markdown" : c.toLowerCase().endsWith(".sds") ? "sds" : "sxs", p = [];
|
|
3318
|
+
for (let { file: e } of u) {
|
|
3319
|
+
if (t?.aborted) throw new Z("cancelled", "目录导入已取消");
|
|
3320
|
+
p.push(await e.arrayBuffer());
|
|
3321
|
+
}
|
|
3322
|
+
return new Promise((e, n) => {
|
|
3323
|
+
let i = new Worker(ja("engine/files-worker.js", r), {
|
|
3324
|
+
type: "module",
|
|
3325
|
+
name: "office-file-import"
|
|
3326
|
+
}), a = () => {
|
|
3327
|
+
i.terminate(), t?.removeEventListener("abort", o);
|
|
3328
|
+
}, o = () => {
|
|
3329
|
+
a(), n(new Z("cancelled", "目录导入已取消"));
|
|
3330
|
+
};
|
|
3331
|
+
t?.addEventListener("abort", o, { once: !0 }), i.onmessage = ({ data: t }) => {
|
|
3332
|
+
a(), t.bytes ? e({
|
|
3333
|
+
name: `${c}.zip`,
|
|
3334
|
+
bytes: t.bytes
|
|
3335
|
+
}) : n(new Z(t.code ?? "open_failed", t.message ?? "无法读取完整资源目录"));
|
|
3336
|
+
}, i.onerror = (e) => {
|
|
3337
|
+
e.preventDefault(), a(), n(new Z("engine_failure", "资源导入失败,原文件未改变"));
|
|
3338
|
+
}, i.onmessageerror = () => {
|
|
3339
|
+
a(), n(new Z("engine_failure", "资源导入结果无法读取"));
|
|
3340
|
+
}, t?.aborted ? o() : i.postMessage({
|
|
3341
|
+
format: f,
|
|
3342
|
+
main: c,
|
|
3343
|
+
paths: d,
|
|
3344
|
+
buffers: p
|
|
3345
|
+
}, p);
|
|
3346
|
+
});
|
|
3347
|
+
}
|
|
3348
|
+
async function Ba(e, t) {
|
|
3349
|
+
let n = [], r = [], i = 0, a = 0;
|
|
3350
|
+
async function o(e, s, c) {
|
|
3351
|
+
if (c > 32) throw new Z("limit_exceeded", "资源目录嵌套过深");
|
|
3352
|
+
let l = e;
|
|
3353
|
+
if (typeof l.values != "function") throw new Z("unsupported_operation", "当前浏览器无法遍历拖放目录,请使用目录选择器");
|
|
3354
|
+
for await (let e of l.values()) {
|
|
3355
|
+
if (t?.aborted) throw new Z("cancelled", "目录导入已取消");
|
|
3356
|
+
if (++i > 1024) throw new Z("limit_exceeded", "资源目录项目超过 1024 个");
|
|
3357
|
+
let l = `${s}${e.name}`;
|
|
3358
|
+
if (e.kind === "directory") await o(e, `${l}/`, c + 1);
|
|
3359
|
+
else {
|
|
3360
|
+
let t = await e.getFile();
|
|
3361
|
+
if (a += t.size, a > X.sourceBytes) throw new Z("limit_exceeded", "资源目录超过 32 MiB 上限");
|
|
3362
|
+
n.push(t), r.push(l);
|
|
3363
|
+
}
|
|
3364
|
+
}
|
|
3365
|
+
}
|
|
3366
|
+
return await o(e, "", 0), {
|
|
3367
|
+
files: n,
|
|
3368
|
+
paths: r
|
|
3369
|
+
};
|
|
3370
|
+
}
|
|
3371
|
+
// app/lib/files/download.ts
|
|
3372
|
+
var Va = Symbol.for("office.retained-download");
|
|
3373
|
+
function Ha(e, t) {
|
|
3374
|
+
let n = window, r = n[Va];
|
|
3375
|
+
if (!r) {
|
|
3376
|
+
r = {}, n[Va] = r;
|
|
3377
|
+
let e = r;
|
|
3378
|
+
window.addEventListener("pagehide", (t) => {
|
|
3379
|
+
!t.persisted && e.url && (URL.revokeObjectURL(e.url), e.url = void 0);
|
|
3380
|
+
});
|
|
3381
|
+
}
|
|
3382
|
+
r.url && URL.revokeObjectURL(r.url), r.url = void 0;
|
|
3383
|
+
let i = typeof e == "string" ? e : URL.createObjectURL(e);
|
|
3384
|
+
typeof e != "string" && (r.url = i);
|
|
3385
|
+
let a = document.createElement("a");
|
|
3386
|
+
a.href = i, a.download = t, a.hidden = !0, document.body.append(a);
|
|
3387
|
+
try {
|
|
3388
|
+
a.click();
|
|
3389
|
+
} finally {
|
|
3390
|
+
a.remove();
|
|
3391
|
+
}
|
|
3392
|
+
}
|
|
3393
|
+
// app/lib/files/session.ts
|
|
3394
|
+
var Ua = [{
|
|
3395
|
+
description: "文档、文本、图片和完整资源包",
|
|
3396
|
+
accept: {
|
|
3397
|
+
"application/msword": [".doc"],
|
|
3398
|
+
"application/vnd.openxmlformats-officedocument.wordprocessingml.document": [".docx"],
|
|
3399
|
+
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": [".xlsx"],
|
|
3400
|
+
"application/vnd.ms-excel": [".xls"],
|
|
3401
|
+
"application/vnd.ms-powerpoint": [".ppt"],
|
|
3402
|
+
"application/pdf": [".pdf"],
|
|
3403
|
+
"application/vnd.openxmlformats-officedocument.presentationml.presentation": [".pptx"],
|
|
3404
|
+
"text/csv": [".csv"],
|
|
3405
|
+
"text/tab-separated-values": [".tsv"],
|
|
3406
|
+
"text/markdown": [".md", ".markdown"],
|
|
3407
|
+
"text/plain": [".txt", ".log"],
|
|
3408
|
+
"image/svg+xml": [".svg", ".svgz"],
|
|
3409
|
+
"image/png": [".png"],
|
|
3410
|
+
"image/jpeg": [".jpg", ".jpeg"],
|
|
3411
|
+
"image/bmp": [".bmp"],
|
|
3412
|
+
"image/webp": [".webp"],
|
|
3413
|
+
"application/json": [".sds", ".sxs"],
|
|
3414
|
+
"application/zip": [".zip"]
|
|
3415
|
+
}
|
|
3416
|
+
}], Wa = (e) => /\.(doc|docx|xls|xlsx|csv|tsv|ppt|pptx|pdf|sds|sxs|md|markdown|txt|log|svg|svgz|png|jpg|jpeg|bmp|webp|(?:sds|sxs|md|markdown)\.zip)$/i.test(e);
|
|
3417
|
+
function $(e, t) {
|
|
3418
|
+
throw new Z(e, t);
|
|
3419
|
+
}
|
|
3420
|
+
var Ga = (e) => {
|
|
3421
|
+
e?.aborted && $("cancelled", "操作已取消");
|
|
3422
|
+
};
|
|
3423
|
+
async function Ka(e) {
|
|
3424
|
+
let t = await e.getFile();
|
|
3425
|
+
return t.size > X.sourceBytes && $("limit_exceeded", "文件超过 32 MiB 上限"), {
|
|
3426
|
+
bytes: t.size,
|
|
3427
|
+
modified: t.lastModified,
|
|
3428
|
+
sha256: await Ra(await t.arrayBuffer())
|
|
3429
|
+
};
|
|
3430
|
+
}
|
|
3431
|
+
var qa = (e, t) => e.bytes === t.bytes && e.sha256 === t.sha256, Ja = class {
|
|
3432
|
+
validationHandler;
|
|
3433
|
+
requestPassword;
|
|
3434
|
+
confirmDiscard;
|
|
3435
|
+
engine;
|
|
3436
|
+
assetBase;
|
|
3437
|
+
access;
|
|
3438
|
+
detachEngine;
|
|
3439
|
+
listeners = /* @__PURE__ */ new Set();
|
|
3440
|
+
lifecycle = /* @__PURE__ */ new Set();
|
|
3441
|
+
handle;
|
|
3442
|
+
baseline;
|
|
3443
|
+
publication;
|
|
3444
|
+
fileAction = !1;
|
|
3445
|
+
deferFilePublication = !1;
|
|
3446
|
+
deferredFileEvent;
|
|
3447
|
+
selection = new AbortController();
|
|
3448
|
+
detachSelection;
|
|
3449
|
+
closed = !1;
|
|
3450
|
+
value = {
|
|
3451
|
+
id: crypto.randomUUID(),
|
|
3452
|
+
name: "",
|
|
3453
|
+
dirty: !1,
|
|
3454
|
+
inputPending: !1,
|
|
3455
|
+
revision: 0,
|
|
3456
|
+
savePhase: "idle"
|
|
3457
|
+
};
|
|
3458
|
+
beforeFileChange;
|
|
3459
|
+
whenIdle() {
|
|
3460
|
+
return this.engine.whenIdle();
|
|
3461
|
+
}
|
|
3462
|
+
constructor(e = {}) {
|
|
3463
|
+
this.assetBase = e.assetBase === void 0 ? Oa() : Aa(e.assetBase), this.access = e.access ? Object.freeze({ ...e.access }) : void 0, this.engine = new La({ assetBase: this.assetBase }), this.attach();
|
|
3464
|
+
}
|
|
3465
|
+
get state() {
|
|
3466
|
+
return { ...this.value };
|
|
3467
|
+
}
|
|
3468
|
+
get changingFile() {
|
|
3469
|
+
return this.fileAction;
|
|
3470
|
+
}
|
|
3471
|
+
setInputPending(e, t) {
|
|
3472
|
+
e && this.checkWritable(), !(this.closed || this.value.id !== t || this.value.inputPending === e) && (this.value.inputPending = e, this.emit());
|
|
3473
|
+
}
|
|
3474
|
+
cancelOpen() {
|
|
3475
|
+
this.selection.abort();
|
|
3476
|
+
}
|
|
3477
|
+
subscribe(e) {
|
|
3478
|
+
return this.listeners.add(e), () => this.listeners.delete(e);
|
|
3479
|
+
}
|
|
3480
|
+
emit(e) {
|
|
3481
|
+
if (this.deferFilePublication) {
|
|
3482
|
+
e && (this.deferredFileEvent = e);
|
|
3483
|
+
return;
|
|
3484
|
+
}
|
|
3485
|
+
let t = e ?? this.deferredFileEvent;
|
|
3486
|
+
this.deferredFileEvent = void 0;
|
|
3487
|
+
for (let e of this.listeners) try {
|
|
3488
|
+
e({ ...this.value }, t);
|
|
3489
|
+
} catch (e) {
|
|
3490
|
+
globalThis.reportError(e);
|
|
3491
|
+
}
|
|
3492
|
+
}
|
|
3493
|
+
attach() {
|
|
3494
|
+
this.engine.setValidationHandler(this.validationHandler), this.detachEngine = this.engine.subscribe((e) => this.emit(e));
|
|
3495
|
+
}
|
|
3496
|
+
check() {
|
|
3497
|
+
this.closed && $("closed", "文件会话已经关闭"), this.fileAction && $("busy", "正在切换文件,请稍后重试");
|
|
3498
|
+
}
|
|
3499
|
+
checkChanging() {
|
|
3500
|
+
this.check(), this.value.savePhase !== "idle" && $("busy", "请先完成当前保存事务");
|
|
3501
|
+
}
|
|
3502
|
+
checkWritable() {
|
|
3503
|
+
this.access?.readOnly && $("read_only", "此包仅提供浏览功能,请使用 @sqsoffice/kit 编辑");
|
|
3504
|
+
}
|
|
3505
|
+
beginSelection(e) {
|
|
3506
|
+
this.selection.abort(), this.detachSelection?.();
|
|
3507
|
+
let t = new AbortController();
|
|
3508
|
+
this.selection = t;
|
|
3509
|
+
let n = () => t.abort();
|
|
3510
|
+
return e?.addEventListener("abort", n, { once: !0 }), e?.aborted && n(), this.detachSelection = () => e?.removeEventListener("abort", n), t;
|
|
3511
|
+
}
|
|
3512
|
+
checkSelection(e) {
|
|
3513
|
+
(this.closed || e !== this.selection || e.signal.aborted) && $("cancelled", "文件选择已被取消或替换");
|
|
3514
|
+
}
|
|
3515
|
+
async status() {
|
|
3516
|
+
let e = (await this.engine.command({ kind: "status" }).result).value;
|
|
3517
|
+
if (e.kind === "error") throw new Z(e.code, e.message);
|
|
3518
|
+
let t = e.value;
|
|
3519
|
+
this.value.dirty = t.unsaved === !0, this.value.canUndo = t.can_undo === !0, this.value.canRedo = t.can_redo === !0, this.value.sourceFormat = t.source_format, this.value.canSaveSource = t.can_save_source !== !1, this.value.importReport = t.import_report, this.value.recoveryAllowed = this.engine.recoveryAllowed, this.value.revision = this.engine.revision, this.value.name = this.engine.name, this.emit();
|
|
3520
|
+
}
|
|
3521
|
+
async command(e, t = {}) {
|
|
3522
|
+
this.check(), this.access?.checkCommand(e), e.kind !== "status" && this.checkChanging();
|
|
3523
|
+
let n = await this.engine.command(e, t).result;
|
|
3524
|
+
return wa(e) && await this.status(), n;
|
|
3525
|
+
}
|
|
3526
|
+
async history(e, t = {}) {
|
|
3527
|
+
this.checkWritable(), this.checkChanging();
|
|
3528
|
+
let n = await this.engine.history(e, t).result;
|
|
3529
|
+
return await this.status(), n;
|
|
3530
|
+
}
|
|
3531
|
+
async sheetClipboard(e, t = {}) {
|
|
3532
|
+
this.checkWritable(), this.checkChanging();
|
|
3533
|
+
let n = await this.engine.sheetClipboard(e, t).result;
|
|
3534
|
+
return (e.action === "paste" || e.action === "paste_external") && await this.status(), n;
|
|
3535
|
+
}
|
|
3536
|
+
get inputLocale() {
|
|
3537
|
+
return this.engine.locale;
|
|
3538
|
+
}
|
|
3539
|
+
async importPdfPages(e, t = {}) {
|
|
3540
|
+
this.checkWritable(), this.checkChanging();
|
|
3541
|
+
let n = await this.engine.importPdfPages(e, t).result;
|
|
3542
|
+
return await this.status(), n;
|
|
3543
|
+
}
|
|
3544
|
+
async presentationClipboard(e, t = {}) {
|
|
3545
|
+
this.checkWritable(), this.checkChanging();
|
|
3546
|
+
let n = await this.engine.presentationClipboard(e, t).result;
|
|
3547
|
+
return e.action === "paste" && await this.status(), n;
|
|
3548
|
+
}
|
|
3549
|
+
setInputLocale(e) {
|
|
3550
|
+
this.checkWritable(), this.checkChanging(), this.engine.setInputLocale(e);
|
|
3551
|
+
}
|
|
3552
|
+
get validationPolicy() {
|
|
3553
|
+
return this.engine.validationPolicy;
|
|
3554
|
+
}
|
|
3555
|
+
setValidationPolicy(e) {
|
|
3556
|
+
this.checkWritable(), this.checkChanging(), this.engine.setValidationPolicy(e);
|
|
3557
|
+
}
|
|
3558
|
+
setValidationHandler(e) {
|
|
3559
|
+
this.checkWritable(), this.validationHandler = e, this.engine.setValidationHandler(e);
|
|
3560
|
+
}
|
|
3561
|
+
async view(e, t = {}) {
|
|
3562
|
+
return this.checkChanging(), this.access?.checkView(e), this.engine.view(e, t).result;
|
|
3563
|
+
}
|
|
3564
|
+
async input(e, t = {}) {
|
|
3565
|
+
this.checkWritable(), this.checkChanging();
|
|
3566
|
+
let n = await this.engine.input(e, t).result;
|
|
3567
|
+
return n.revision !== this.value.revision && await this.status(), n;
|
|
3568
|
+
}
|
|
3569
|
+
async openFile(e, t) {
|
|
3570
|
+
this.checkChanging(), await this.openSelectedFile(e, t, this.beginSelection());
|
|
3571
|
+
}
|
|
3572
|
+
async runScript(e, t = {}) {
|
|
3573
|
+
this.checkWritable(), this.checkChanging();
|
|
3574
|
+
let n = await this.engine.runScript(e, t).result.catch(async (e) => {
|
|
3575
|
+
throw await this.engine.whenIdle().catch(() => {}), e;
|
|
3576
|
+
});
|
|
3577
|
+
return await this.status(), n;
|
|
3578
|
+
}
|
|
3579
|
+
async runMcp(e, t = {}) {
|
|
3580
|
+
this.checkWritable(), this.checkChanging();
|
|
3581
|
+
let n = await this.engine.runMcp(e, t).result.catch(async (e) => {
|
|
3582
|
+
throw await this.engine.whenIdle().catch(() => {}), e;
|
|
3583
|
+
});
|
|
3584
|
+
return await this.status(), n;
|
|
3585
|
+
}
|
|
3586
|
+
async authenticatePdf(e) {
|
|
3587
|
+
this.checkChanging(), this.access?.checkView({
|
|
3588
|
+
kind: "pdf_authenticate",
|
|
3589
|
+
password: e
|
|
3590
|
+
}), await this.engine.view({
|
|
3591
|
+
kind: "pdf_authenticate",
|
|
3592
|
+
password: e
|
|
3593
|
+
}).result, await this.status();
|
|
3594
|
+
}
|
|
3595
|
+
async openSelectedFile(e, t, n) {
|
|
3596
|
+
this.access?.checkFile(e.name), await this.beforeFileChange?.(), this.checkChanging(), this.checkSelection(n), Wa(e.name) || $("unsupported_operation", "请选择受支持的文字、表格、演示、Markdown、文本、SVG、图片或完整资源包"), e.size > X.sourceBytes && $("limit_exceeded", "文件超过 32 MiB 上限"), this.fileAction = !0, this.deferFilePublication = !0;
|
|
3597
|
+
try {
|
|
3598
|
+
if (this.value.name && (await this.status(), (this.value.dirty || this.value.inputPending) && !await this.confirmDiscard?.(this.value.name))) throw new DOMException("已保留当前文档", "AbortError");
|
|
3599
|
+
let r = await e.arrayBuffer(), i = {
|
|
3600
|
+
bytes: r.byteLength,
|
|
3601
|
+
modified: e.lastModified,
|
|
3602
|
+
sha256: await Ra(r)
|
|
3603
|
+
};
|
|
3604
|
+
this.checkSelection(n);
|
|
3605
|
+
let a;
|
|
3606
|
+
try {
|
|
3607
|
+
for (;;) {
|
|
3608
|
+
this.checkSelection(n);
|
|
3609
|
+
try {
|
|
3610
|
+
await this.engine.open(e.name, r, { signal: n.signal }, a).result;
|
|
3611
|
+
break;
|
|
3612
|
+
} catch (t) {
|
|
3613
|
+
if (!(t instanceof Z && t.code === "unauthorized" && /^PDF_PASSWORD_(REQUIRED|INVALID)/.test(t.message)) || !this.requestPassword) throw t;
|
|
3614
|
+
if (a = await this.requestPassword(e.name, t.message.startsWith("PDF_PASSWORD_INVALID")), a === void 0) throw new DOMException("已取消密码输入", "AbortError");
|
|
3615
|
+
}
|
|
3616
|
+
}
|
|
3617
|
+
} finally {
|
|
3618
|
+
a = void 0;
|
|
3619
|
+
}
|
|
3620
|
+
this.value.id = crypto.randomUUID(), this.value.name = this.engine.name, this.value.revision = this.engine.revision, this.value.dirty = !1, this.value.inputPending = !1, this.handle = /\.(doc|xls|csv|tsv)$/i.test(e.name) ? void 0 : t, this.baseline = i, this.publication = void 0, this.value.savePhase = "idle", this.value.saveError = void 0, await this.status();
|
|
3621
|
+
} finally {
|
|
3622
|
+
this.fileAction = !1, n === this.selection && (this.detachSelection?.(), this.detachSelection = void 0), this.deferFilePublication = !1, this.emit();
|
|
3623
|
+
}
|
|
3624
|
+
}
|
|
3625
|
+
async pickFile(e) {
|
|
3626
|
+
this.checkChanging();
|
|
3627
|
+
let t = this.beginSelection(), n = window.showOpenFilePicker;
|
|
3628
|
+
if (n) {
|
|
3629
|
+
let r = (await n.call(window, {
|
|
3630
|
+
multiple: !1,
|
|
3631
|
+
types: Ua
|
|
3632
|
+
}))[0];
|
|
3633
|
+
r && (await e?.(), await this.openSelectedFile(await r.getFile(), r, t));
|
|
3634
|
+
return;
|
|
3635
|
+
}
|
|
3636
|
+
let r = await new Promise((e) => {
|
|
3637
|
+
let t = document.createElement("input");
|
|
3638
|
+
t.type = "file", t.accept = ".doc,.docx,.xls,.xlsx,.csv,.tsv,.ppt,.pptx,.pdf,.sds,.sxs,.md,.markdown,.txt,.log,.svg,.svgz,.png,.jpg,.jpeg,.bmp,.webp,.zip", t.addEventListener("change", () => e(t.files?.[0]), { once: !0 }), t.addEventListener("cancel", () => e(void 0), { once: !0 }), t.click();
|
|
3639
|
+
});
|
|
3640
|
+
r && (await e?.(), await this.openSelectedFile(r, void 0, t));
|
|
3641
|
+
}
|
|
3642
|
+
async openDrop(e, t) {
|
|
3643
|
+
this.checkChanging();
|
|
3644
|
+
let n = this.beginSelection(t), r = [...e.items].find((e) => e.kind === "file")?.getAsFileSystemHandle?.(), i = [...e.files], a = await r;
|
|
3645
|
+
if (this.checkSelection(n), a?.kind === "directory") {
|
|
3646
|
+
let e = await Ba(a, n.signal), t = await za(e.files, n.signal, e.paths, this.assetBase);
|
|
3647
|
+
await this.openSelectedFile(new File([t.bytes], t.name, { type: "application/zip" }), void 0, n);
|
|
3648
|
+
} else if (i.length > 1 || i.some((e) => e.webkitRelativePath)) {
|
|
3649
|
+
let e = await za(i, n.signal, void 0, this.assetBase);
|
|
3650
|
+
await this.openSelectedFile(new File([e.bytes], e.name, { type: "application/zip" }), void 0, n);
|
|
3651
|
+
} else if (a?.kind === "file") {
|
|
3652
|
+
let e = a;
|
|
3653
|
+
await this.openSelectedFile(await e.getFile(), e, n);
|
|
3654
|
+
} else i[0] ? await this.openSelectedFile(i[0], void 0, n) : $("unsupported_operation", "请通过目录选择器选择完整资源目录");
|
|
3655
|
+
}
|
|
3656
|
+
async openDirectory(e, t) {
|
|
3657
|
+
this.checkChanging();
|
|
3658
|
+
let n = this.beginSelection(t), r = await za(e, n.signal, void 0, this.assetBase);
|
|
3659
|
+
await this.openSelectedFile(new File([r.bytes], r.name, { type: "application/zip" }), void 0, n);
|
|
3660
|
+
}
|
|
3661
|
+
async pickDirectory(e) {
|
|
3662
|
+
this.checkChanging();
|
|
3663
|
+
let t = this.beginSelection(e), n = await new Promise((e) => {
|
|
3664
|
+
let t = document.createElement("input");
|
|
3665
|
+
t.type = "file", t.webkitdirectory = !0, t.addEventListener("change", () => e([...t.files ?? []]), { once: !0 }), t.addEventListener("cancel", () => e([]), { once: !0 }), t.click();
|
|
3666
|
+
});
|
|
3667
|
+
if (n.length) {
|
|
3668
|
+
let e = await za(n, t.signal, void 0, this.assetBase);
|
|
3669
|
+
await this.openSelectedFile(new File([e.bytes], e.name, { type: "application/zip" }), void 0, t);
|
|
3670
|
+
}
|
|
3671
|
+
}
|
|
3672
|
+
async pickSaveTarget() {
|
|
3673
|
+
this.checkWritable(), this.checkChanging(), this.value.canSaveSource === !1 && $("unsupported", "当前格式请通过导出副本保存");
|
|
3674
|
+
let e = this.handle;
|
|
3675
|
+
if (!e) {
|
|
3676
|
+
let t = window.showSaveFilePicker;
|
|
3677
|
+
t || $("unsupported_operation", "当前浏览器不支持直接写回文件,请下载副本"), e = await t.call(window, {
|
|
3678
|
+
suggestedName: this.value.name,
|
|
3679
|
+
types: Ua
|
|
3680
|
+
});
|
|
3681
|
+
}
|
|
3682
|
+
return e.requestPermission && await e.requestPermission({ mode: "readwrite" }) !== "granted" && $("permission_denied", "未获得文件写入权限,当前文档仍保留在本页"), e;
|
|
3683
|
+
}
|
|
3684
|
+
async save(e, t) {
|
|
3685
|
+
this.checkWritable(), this.check(), this.value.name || $("no_document", "尚未打开文档"), this.value.canSaveSource === !1 && $("unsupported", "此格式不支持原文件写回,请使用下载副本"), this.value.savePhase !== "idle" && $("busy", "已有保存事务等待完成");
|
|
3686
|
+
let n, r, i = !1, a = !1;
|
|
3687
|
+
this.value.saveError = void 0, this.value.savePhase = "permission", this.emit();
|
|
3688
|
+
try {
|
|
3689
|
+
let o = e ?? this.handle;
|
|
3690
|
+
if (!o) {
|
|
3691
|
+
let e = window.showSaveFilePicker;
|
|
3692
|
+
e || $("unsupported_operation", "当前浏览器不支持直接写回文件,请下载副本"), o = await e.call(window, {
|
|
3693
|
+
suggestedName: this.value.name,
|
|
3694
|
+
types: Ua
|
|
3695
|
+
});
|
|
3696
|
+
}
|
|
3697
|
+
o.requestPermission && await o.requestPermission({ mode: "readwrite" }) !== "granted" && $("permission_denied", "未获得文件写入权限,当前文档仍保留在本页"), Ga(t);
|
|
3698
|
+
let s = await Ka(o);
|
|
3699
|
+
this.handle && this.baseline && await o.isSameEntry(this.handle) && !qa(s, this.baseline) && $("conflict", "原文件已被其他应用修改,请另存副本或重新打开"), this.value.savePhase = "preparing", this.emit(), n = (await this.engine.prepareSave(o.name, { signal: t }).result).value, this.publication = {
|
|
3700
|
+
stage: "prepared",
|
|
3701
|
+
handle: o,
|
|
3702
|
+
before: s
|
|
3703
|
+
}, await this.status(), Ga(t), qa(s, await Ka(o)) || $("conflict", "文件在准备保存期间发生了变化"), this.value.savePhase = "writing", this.emit(), r = await o.createWritable({ keepExistingData: !1 }), await Ra(n.files[0]) !== n.manifest.files[0].sha256 && $("invalid_argument", "保存候选内容已变化,未写入原文件"), await r.write(n.files[0]), Ga(t), qa(s, await Ka(o)) || $("conflict", "原文件在写入期间发生变化,保存已中止"), i = !0, await r.close(), r = void 0;
|
|
3704
|
+
let c = await Ka(o);
|
|
3705
|
+
return (c.sha256 !== n.manifest.files[0].sha256 || c.bytes !== n.manifest.files[0].bytes) && $("conflict", "写入后的文件与保存候选不一致,文档仍保留未保存状态"), this.publication = {
|
|
3706
|
+
stage: "published",
|
|
3707
|
+
handle: o,
|
|
3708
|
+
before: s,
|
|
3709
|
+
after: c
|
|
3710
|
+
}, this.value.savePhase = "confirming", this.emit(), await this.confirm(n.id), a = !0, this.handle = o, this.baseline = c, this.publication = void 0, this.value.savePhase = "idle", this.value.name = this.engine.name, this.value.revision = this.engine.revision, this.value.dirty = !1, this.emit(), {
|
|
3711
|
+
published: !0,
|
|
3712
|
+
confirmed: !0
|
|
3713
|
+
};
|
|
3714
|
+
} catch (e) {
|
|
3715
|
+
if (a) return this.value.savePhase = "idle", this.value.saveError = e instanceof Error ? e.message : "文件已保存,状态更新未完成", this.emit(), {
|
|
3716
|
+
published: !0,
|
|
3717
|
+
confirmed: !0
|
|
3718
|
+
};
|
|
3719
|
+
if (r && !i && await r.abort().catch(() => {}), i && n) return this.value.savePhase = "pending", this.value.saveError = e instanceof Error ? e.message : "保存确认待恢复", this.emit(), {
|
|
3720
|
+
published: this.publication?.stage === "published",
|
|
3721
|
+
confirmed: !1
|
|
3722
|
+
};
|
|
3723
|
+
if (n) try {
|
|
3724
|
+
await this.engine.discardSave(n.id).result;
|
|
3725
|
+
} catch {
|
|
3726
|
+
if (this.engine.preparedSaveReceipt?.id === n.id) throw this.value.savePhase = "pending", this.value.saveError = e instanceof Error ? e.message : "保存取消待恢复", this.emit(), e;
|
|
3727
|
+
}
|
|
3728
|
+
throw this.publication = void 0, this.value.savePhase = "idle", this.emit(), e;
|
|
3729
|
+
}
|
|
3730
|
+
}
|
|
3731
|
+
async confirm(e) {
|
|
3732
|
+
try {
|
|
3733
|
+
await this.engine.commitSave(e).result;
|
|
3734
|
+
} catch (t) {
|
|
3735
|
+
if (!(t instanceof Z) || !["worker_restarted", "engine_failure"].includes(t.code)) throw t;
|
|
3736
|
+
await this.engine.recover(), await this.engine.commitSave(e).result;
|
|
3737
|
+
}
|
|
3738
|
+
}
|
|
3739
|
+
async resumeSave() {
|
|
3740
|
+
this.checkWritable(), this.check();
|
|
3741
|
+
let e = this.publication, t = this.engine.preparedSaveReceipt;
|
|
3742
|
+
e && t || $("busy", "没有待确认保存"), this.value.savePhase !== "pending" && $("busy", "保存确认正在进行");
|
|
3743
|
+
let n = this.value.id;
|
|
3744
|
+
this.value.savePhase = "confirming", this.emit();
|
|
3745
|
+
let r = !1;
|
|
3746
|
+
try {
|
|
3747
|
+
e.handle.requestPermission && await e.handle.requestPermission({ mode: "read" }) !== "granted" && $("permission_denied", "未获得文件访问权限,待确认内容仍保留在本页");
|
|
3748
|
+
let i = await Ka(e.handle), a = t.manifest.files[0];
|
|
3749
|
+
(this.value.id !== n || this.engine.preparedSaveReceipt?.id !== t.id) && $("busy", "保存候选已经变化"), (i.sha256 !== a.sha256 || i.bytes !== a.bytes) && $("conflict", "目标文件没有已准备的内容;请取消本次保存确认后重新保存副本"), this.publication = {
|
|
3750
|
+
...e,
|
|
3751
|
+
stage: "published",
|
|
3752
|
+
after: i
|
|
3753
|
+
}, await this.confirm(t.id), r = !0, this.handle = e.handle, this.baseline = i, this.publication = void 0, this.value.name = this.engine.name, this.value.revision = this.engine.revision, this.value.dirty = !1, this.value.saveError = void 0;
|
|
3754
|
+
} finally {
|
|
3755
|
+
this.value.savePhase = r ? "idle" : "pending", this.emit();
|
|
3756
|
+
}
|
|
3757
|
+
}
|
|
3758
|
+
async recover() {
|
|
3759
|
+
this.check(), await this.engine.recover(), await this.status();
|
|
3760
|
+
}
|
|
3761
|
+
async cancelPendingSave() {
|
|
3762
|
+
this.checkWritable(), this.check();
|
|
3763
|
+
let e = this.engine.preparedSaveReceipt;
|
|
3764
|
+
if (!e) return;
|
|
3765
|
+
this.value.savePhase !== "pending" && $("busy", "保存正在进行,请等待当前写入结束"), this.value.savePhase = "cancelling", this.emit();
|
|
3766
|
+
let t = !1;
|
|
3767
|
+
try {
|
|
3768
|
+
await this.engine.discardSave(e.id).result, t = !0, this.publication = void 0, await this.status(), this.value.saveError = void 0;
|
|
3769
|
+
} finally {
|
|
3770
|
+
this.value.savePhase = t ? "idle" : "pending", this.emit();
|
|
3771
|
+
}
|
|
3772
|
+
}
|
|
3773
|
+
async downloadCopy() {
|
|
3774
|
+
this.checkWritable(), this.check(), this.value.canSaveSource === !1 && $("unsupported_operation", "兼容导入的文件需要选择导出新的文档或工作簿副本");
|
|
3775
|
+
let e = this.engine.savePending ? (await this.engine.readPreparedSave().result).value.files[0] : (await this.engine.exportBytes().result).value, t = /\.(sds|sxs)$/i.test(this.value.name) ? `${this.value.name}.zip` : this.value.name;
|
|
3776
|
+
Ha(new Blob([e], { type: "application/octet-stream" }), t);
|
|
3777
|
+
}
|
|
3778
|
+
async downloadExportCopy(e) {
|
|
3779
|
+
this.checkWritable(), this.checkChanging();
|
|
3780
|
+
let t = (await this.engine.exportCopy(e).result).value, n = this.value.name.replace(/\.(docx?|xlsx?|pptx?|pdf|csv|tsv|s[dx]s(?:\.zip)?|(?:md|markdown)(?:\.zip)?|txt|log|svgz?|png|jpe?g|bmp|webp)$/i, ""), r = e === "original" ? this.value.name : `${n}.${{
|
|
3781
|
+
docx: "docx",
|
|
3782
|
+
sds: "sds.zip",
|
|
3783
|
+
xlsx: "xlsx",
|
|
3784
|
+
sxs: "sxs.zip",
|
|
3785
|
+
pptx: "pptx",
|
|
3786
|
+
pdf: "pdf",
|
|
3787
|
+
markdown: "md",
|
|
3788
|
+
markdown_bundle: "md.zip",
|
|
3789
|
+
text: "txt",
|
|
3790
|
+
html: "html",
|
|
3791
|
+
original: "",
|
|
3792
|
+
png: "png"
|
|
3793
|
+
}[e]}`;
|
|
3794
|
+
return Ha(new Blob([t.bytes], { type: "application/octet-stream" }), r), t.report;
|
|
3795
|
+
}
|
|
3796
|
+
bindLifecycle(e = window) {
|
|
3797
|
+
let t = (e) => {
|
|
3798
|
+
(this.value.dirty || this.value.inputPending || this.value.savePhase !== "idle") && (e.preventDefault(), e.returnValue = "");
|
|
3799
|
+
};
|
|
3800
|
+
e.addEventListener("beforeunload", t);
|
|
3801
|
+
let n = () => {
|
|
3802
|
+
e.removeEventListener("beforeunload", t), this.lifecycle.delete(n);
|
|
3803
|
+
};
|
|
3804
|
+
return this.lifecycle.add(n), n;
|
|
3805
|
+
}
|
|
3806
|
+
async close(e = {}) {
|
|
3807
|
+
if (!this.closed) {
|
|
3808
|
+
await this.beforeFileChange?.(), this.check(), ["idle", "pending"].includes(this.value.savePhase) || $("busy", "请等待文件写入结束后关闭"), this.fileAction = !0;
|
|
3809
|
+
try {
|
|
3810
|
+
if (this.value.name && !e.discard && (await this.status().catch(() => {
|
|
3811
|
+
this.value.dirty = !0;
|
|
3812
|
+
}), (this.value.dirty || this.value.inputPending || this.value.savePhase === "pending") && !await this.confirmDiscard?.(this.value.name))) throw new DOMException("已保留当前文档", "AbortError");
|
|
3813
|
+
this.closed = !0, this.selection.abort(), this.detachSelection?.(), this.detachEngine?.(), this.engine.close(), this.listeners.clear();
|
|
3814
|
+
for (let e of [...this.lifecycle]) e();
|
|
3815
|
+
} finally {
|
|
3816
|
+
this.fileAction = !1;
|
|
3817
|
+
}
|
|
3818
|
+
}
|
|
3819
|
+
}
|
|
3820
|
+
}, Ya = class {
|
|
3821
|
+
session;
|
|
3822
|
+
state;
|
|
3823
|
+
task = /* @__PURE__ */ Ut();
|
|
3824
|
+
error = /* @__PURE__ */ Ut("");
|
|
3825
|
+
operationBusy = /* @__PURE__ */ Ut(!1);
|
|
3826
|
+
recovering = /* @__PURE__ */ Ut(!1);
|
|
3827
|
+
busy = va(() => this.operationBusy.value || this.recovering.value);
|
|
3828
|
+
prompt = /* @__PURE__ */ Ut();
|
|
3829
|
+
constructor(e = {}) {
|
|
3830
|
+
this.session = new Ja(e), this.state = /* @__PURE__ */ Ut(this.session.state), this.session.requestPassword = (e, t) => this.requestPassword(e, t), this.session.confirmDiscard = async (e) => await this.ask({
|
|
3831
|
+
kind: "discard",
|
|
3832
|
+
name: e
|
|
3833
|
+
}) === "discard", this.session.subscribe((e, t) => {
|
|
3834
|
+
this.state.value = e, t && (this.task.value = t, t.phase === "recovering" ? this.recovering.value = !0 : [
|
|
3835
|
+
"ready",
|
|
3836
|
+
"failed",
|
|
3837
|
+
"closed"
|
|
3838
|
+
].includes(t.phase) && (this.recovering.value = !1));
|
|
3839
|
+
}), e.bindLifecycle !== !1 && this.session.bindLifecycle();
|
|
3840
|
+
}
|
|
3841
|
+
ask(e) {
|
|
3842
|
+
return this.prompt.value?.resolve(), new Promise((t) => {
|
|
3843
|
+
this.prompt.value = {
|
|
3844
|
+
...e,
|
|
3845
|
+
resolve: (e) => {
|
|
3846
|
+
this.prompt.value = void 0, t(e);
|
|
3847
|
+
}
|
|
3848
|
+
};
|
|
3849
|
+
});
|
|
3850
|
+
}
|
|
3851
|
+
requestPassword(e, t = !1) {
|
|
3852
|
+
return this.ask({
|
|
3853
|
+
kind: "password",
|
|
3854
|
+
name: e,
|
|
3855
|
+
retry: t
|
|
3856
|
+
});
|
|
3857
|
+
}
|
|
3858
|
+
showError(e) {
|
|
3859
|
+
e instanceof Z && e.code === "busy" && this.session.changingFile || (this.error.value = e instanceof Error ? e.message : "操作未完成,请重试");
|
|
3860
|
+
}
|
|
3861
|
+
clearError() {
|
|
3862
|
+
this.error.value = "";
|
|
3863
|
+
}
|
|
3864
|
+
async run(e) {
|
|
3865
|
+
if (this.busy.value) return !1;
|
|
3866
|
+
this.operationBusy.value = !0, this.error.value = "";
|
|
3867
|
+
try {
|
|
3868
|
+
return await e(), !0;
|
|
3869
|
+
} catch (e) {
|
|
3870
|
+
return e instanceof DOMException && e.name === "AbortError" || this.showError(e), !1;
|
|
3871
|
+
} finally {
|
|
3872
|
+
this.operationBusy.value = !1;
|
|
3873
|
+
}
|
|
3874
|
+
}
|
|
3875
|
+
};
|
|
3876
|
+
function Xa(e = {}) {
|
|
3877
|
+
if (typeof window > "u") throw Error("Workspace is available in the browser");
|
|
3878
|
+
return new Ya(e);
|
|
3879
|
+
}
|
|
3880
|
+
// sdk/api.ts
|
|
3881
|
+
var Za = {
|
|
3882
|
+
pdf: /\.pdf$/i,
|
|
3883
|
+
word: /\.(docx?|sds\.zip)$/i,
|
|
3884
|
+
grid: /\.(xlsx?|csv|tsv|sxs\.zip)$/i,
|
|
3885
|
+
slide: /\.pptx?$/i
|
|
3886
|
+
}, Qa = {
|
|
3887
|
+
pdf: ["pdf", "pdf_view"],
|
|
3888
|
+
word: ["docx", "body"],
|
|
3889
|
+
grid: ["xlsx"],
|
|
3890
|
+
slide: ["pptx"],
|
|
3891
|
+
kit: [
|
|
3892
|
+
"docx",
|
|
3893
|
+
"body",
|
|
3894
|
+
"xlsx",
|
|
3895
|
+
"pptx",
|
|
3896
|
+
"pdf",
|
|
3897
|
+
"pdf_view",
|
|
3898
|
+
"markdown",
|
|
3899
|
+
"text"
|
|
3900
|
+
]
|
|
3901
|
+
}, $a = /* @__PURE__ */ new Set([
|
|
3902
|
+
"status",
|
|
3903
|
+
"info",
|
|
3904
|
+
"search",
|
|
3905
|
+
"to_markdown"
|
|
3906
|
+
]), eo = {
|
|
3907
|
+
pdf: /* @__PURE__ */ new Set([
|
|
3908
|
+
"tile",
|
|
3909
|
+
"pdf_state",
|
|
3910
|
+
"pdf_reading",
|
|
3911
|
+
"pdf_selection",
|
|
3912
|
+
"pdf_hit",
|
|
3913
|
+
"pdf_text_selection",
|
|
3914
|
+
"pdf_tools",
|
|
3915
|
+
"pdf_authenticate"
|
|
3916
|
+
]),
|
|
3917
|
+
word: /* @__PURE__ */ new Set([
|
|
3918
|
+
"layout",
|
|
3919
|
+
"tile",
|
|
3920
|
+
"hit",
|
|
3921
|
+
"selection",
|
|
3922
|
+
"text_review",
|
|
3923
|
+
"text_statistics",
|
|
3924
|
+
"text_objects"
|
|
3925
|
+
]),
|
|
3926
|
+
grid: /* @__PURE__ */ new Set([
|
|
3927
|
+
"grid_layout",
|
|
3928
|
+
"grid_tile",
|
|
3929
|
+
"grid_hit",
|
|
3930
|
+
"grid_selection"
|
|
3931
|
+
]),
|
|
3932
|
+
slide: /* @__PURE__ */ new Set([
|
|
3933
|
+
"tile",
|
|
3934
|
+
"presentation_state",
|
|
3935
|
+
"presentation_selection",
|
|
3936
|
+
"presentation_hit",
|
|
3937
|
+
"presentation_playback",
|
|
3938
|
+
"presentation_frame",
|
|
3939
|
+
"presentation_media"
|
|
3940
|
+
])
|
|
3941
|
+
};
|
|
3942
|
+
function to(e, t) {
|
|
3943
|
+
if (!t || typeof t != "object" || !$a.has(t.kind) && !Qa[e].includes(t.kind)) throw new Z("read_only", `@sqsoffice/${e} 的读取接口不支持此命令`);
|
|
3944
|
+
if (t.target !== void 0 && t.target !== "active") throw new Z("invalid_argument", "浏览器读取接口仅支持当前打开的文档");
|
|
3945
|
+
}
|
|
3946
|
+
function no(e) {
|
|
3947
|
+
return {
|
|
3948
|
+
readOnly: !0,
|
|
3949
|
+
checkFile(t) {
|
|
3950
|
+
if (!Za[e].test(t)) throw new Z("unsupported", `@sqsoffice/${e} 不支持打开此文件格式`);
|
|
3951
|
+
},
|
|
3952
|
+
checkCommand(t) {
|
|
3953
|
+
to(e, t);
|
|
3954
|
+
},
|
|
3955
|
+
checkView(t) {
|
|
3956
|
+
if (!t || typeof t != "object" || !eo[e].has(t.kind)) throw new Z("read_only", `@sqsoffice/${e} 不支持此呈现或输出请求`);
|
|
3957
|
+
}
|
|
3958
|
+
};
|
|
3959
|
+
}
|
|
3960
|
+
function ro(e, t = {}) {
|
|
3961
|
+
if (![
|
|
3962
|
+
"pdf",
|
|
3963
|
+
"word",
|
|
3964
|
+
"grid",
|
|
3965
|
+
"slide",
|
|
3966
|
+
"kit"
|
|
3967
|
+
].includes(e)) throw new Z("invalid_argument", "未知的 Office 包类型");
|
|
3968
|
+
let n = Aa(t.assetBase ?? Oa()), r = e === "kit" ? void 0 : no(e), i = Xa({
|
|
3969
|
+
assetBase: n,
|
|
3970
|
+
bindLifecycle: t.bindLifecycle,
|
|
3971
|
+
access: r
|
|
3972
|
+
}), a = i.session;
|
|
3973
|
+
t.requestPassword && (a.requestPassword = t.requestPassword), t.confirmDiscard && (a.confirmDiscard = t.confirmDiscard);
|
|
3974
|
+
let o = {
|
|
3975
|
+
kind: e,
|
|
3976
|
+
assetBase: n,
|
|
3977
|
+
get state() {
|
|
3978
|
+
return a.state;
|
|
3979
|
+
},
|
|
3980
|
+
async open(e, t) {
|
|
3981
|
+
if (typeof e == "string") {
|
|
3982
|
+
if (r?.checkFile(e), !(t instanceof ArrayBuffer) && !(t instanceof Uint8Array)) throw new Z("invalid_argument", "打开文档需要 ArrayBuffer 或 Uint8Array");
|
|
3983
|
+
if (t.byteLength > X.sourceBytes) throw new Z("limit_exceeded", "文件超过 32 MiB 输入上限");
|
|
3984
|
+
let n = t instanceof ArrayBuffer ? t.slice(0) : new Uint8Array(t).buffer;
|
|
3985
|
+
await a.openFile(new File([n], e));
|
|
3986
|
+
} else {
|
|
3987
|
+
if (!(e instanceof File)) throw new Z("invalid_argument", "打开文档需要 File 或文件名与字节");
|
|
3988
|
+
await a.openFile(e);
|
|
3989
|
+
}
|
|
3990
|
+
},
|
|
3991
|
+
read(t, n) {
|
|
3992
|
+
return to(e, t), a.command(t, n);
|
|
3993
|
+
},
|
|
3994
|
+
view: (e, t) => a.view(e, t),
|
|
3995
|
+
subscribe: (e) => a.subscribe(e),
|
|
3996
|
+
whenIdle: () => a.whenIdle(),
|
|
3997
|
+
close: (e) => a.close(e)
|
|
3998
|
+
};
|
|
3999
|
+
return {
|
|
4000
|
+
api: Object.freeze(Object.defineProperties(e === "kit" ? {
|
|
4001
|
+
...o,
|
|
4002
|
+
readOnly: !1,
|
|
4003
|
+
session: a
|
|
4004
|
+
} : {
|
|
4005
|
+
...o,
|
|
4006
|
+
readOnly: !0
|
|
4007
|
+
}, { state: {
|
|
4008
|
+
enumerable: !0,
|
|
4009
|
+
get: () => a.state
|
|
4010
|
+
} })),
|
|
4011
|
+
workspace: i,
|
|
4012
|
+
assetBase: n
|
|
4013
|
+
};
|
|
4014
|
+
}
|
|
4015
|
+
function io(e, t = {}) {
|
|
4016
|
+
let n = ro(e, t);
|
|
4017
|
+
return n.workspace.session.requestPassword = t.requestPassword, n.workspace.session.confirmDiscard = t.confirmDiscard, n.api;
|
|
4018
|
+
}
|
|
4019
|
+
// packages/slide/api.ts
|
|
4020
|
+
function ao(e = {}) {
|
|
4021
|
+
return io("slide", {
|
|
4022
|
+
...e,
|
|
4023
|
+
assetBase: e.assetBase ?? new URL(
|
|
4024
|
+
/* @vite-ignore */
|
|
4025
|
+
"./assets/",
|
|
4026
|
+
import.meta.url
|
|
4027
|
+
).pathname
|
|
4028
|
+
});
|
|
4029
|
+
}
|
|
4030
|
+
export { ge as A, k as B, Ht as C, ie as D, T as E, a as F, Ce as H, he as I, g as L, d as M, h as N, s as O, o as P, _ as R, Dn as S, Kt as T, ue as V, cr as _, an as a, hr as b, Li as c, gi as d, Ki as f, pn as g, ya as h, G as i, oe as j, E as k, qi as l, Wn as m, ro as n, va as o, J as p, Z as r, Hi as s, ao as t, Ii as u, ar as v, Ut as w, Nn as x, ji as y, se as z };
|