my-header-yichong 1.0.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/my-header.js +4370 -0
- package/my-header.umd.cjs +15 -0
- package/package.json +12 -0
- package/style.css +1 -0
- package/vite.svg +1 -0
package/my-header.js
ADDED
|
@@ -0,0 +1,4370 @@
|
|
|
1
|
+
import { warn as io, inject as k, ref as C, computed as E, unref as z, isRef as le, getCurrentInstance as ln, provide as fe, reactive as cn, defineComponent as G, h as L, Transition as ao, withCtx as Ht, withDirectives as Ge, createVNode as ye, vShow as nr, createApp as lo, toRefs as Qt, nextTick as He, cloneVNode as co, Fragment as Ue, watchEffect as pe, onMounted as Q, onUnmounted as ee, watch as Ve, Teleport as uo, shallowRef as fo, openBlock as D, createElementBlock as T, createElementVNode as v, toDisplayString as X, createTextVNode as tt, vModelText as Rt, createCommentVNode as B, pushScopeId as ft, popScopeId as pt, resolveComponent as po, hasInjectionContext as ho, markRaw as Fe, effectScope as mo, isReactive as un, toRef as Tt, toRaw as go, getCurrentScope as vo, onScopeDispose as wo, renderList as xn, createBlock as jt } from "vue";
|
|
2
|
+
const yo = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAAEsCAYAAAB5fY51AAAABHNCSVQICAgIfAhkiAAAAF96VFh0UmF3IHByb2ZpbGUgdHlwZSBBUFAxAAAImeNKT81LLcpMVigoyk/LzEnlUgADYxMuE0sTS6NEAwMDCwMIMDQwMDYEkkZAtjlUKNEABZiYm6UBoblZspkpiM8FAE+6FWgbLdiMAAAgAElEQVR4nOzdeXxU1d0/8M/3nHtnyQbZCYQthC2QgCLihvu+W6u1m9a2VmsX22qtT/en7dPn6d5q++u+2L12s3VB64a7KKgQBIEECATInkCSWe5yvr8/JiDJTEICCcmE7/v1QmTmzj13kskn554VEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQ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RyN8FlRNSzdpmjt9cZAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/nEB9PYcwLGU0OwAAAAASUVORK5CYII=";
|
|
3
|
+
function rr(e, t) {
|
|
4
|
+
return function() {
|
|
5
|
+
return e.apply(t, arguments);
|
|
6
|
+
};
|
|
7
|
+
}
|
|
8
|
+
const { toString: bo } = Object.prototype, { getPrototypeOf: dn } = Object, ht = ((e) => (t) => {
|
|
9
|
+
const n = bo.call(t);
|
|
10
|
+
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
11
|
+
})(/* @__PURE__ */ Object.create(null)), Z = (e) => (e = e.toLowerCase(), (t) => ht(t) === e), mt = (e) => (t) => typeof t === e, { isArray: Ae } = Array, Qe = mt("undefined");
|
|
12
|
+
function Eo(e) {
|
|
13
|
+
return e !== null && !Qe(e) && e.constructor !== null && !Qe(e.constructor) && H(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
14
|
+
}
|
|
15
|
+
const or = Z("ArrayBuffer");
|
|
16
|
+
function Ao(e) {
|
|
17
|
+
let t;
|
|
18
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && or(e.buffer), t;
|
|
19
|
+
}
|
|
20
|
+
const xo = mt("string"), H = mt("function"), sr = mt("number"), gt = (e) => e !== null && typeof e == "object", Co = (e) => e === !0 || e === !1, nt = (e) => {
|
|
21
|
+
if (ht(e) !== "object")
|
|
22
|
+
return !1;
|
|
23
|
+
const t = dn(e);
|
|
24
|
+
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
|
|
25
|
+
}, So = Z("Date"), Oo = Z("File"), Po = Z("Blob"), Do = Z("FileList"), No = (e) => gt(e) && H(e.pipe), Ro = (e) => {
|
|
26
|
+
let t;
|
|
27
|
+
return e && (typeof FormData == "function" && e instanceof FormData || H(e.append) && ((t = ht(e)) === "formdata" || // detect form-data instance
|
|
28
|
+
t === "object" && H(e.toString) && e.toString() === "[object FormData]"));
|
|
29
|
+
}, To = Z("URLSearchParams"), jo = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
30
|
+
function Je(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
31
|
+
if (e === null || typeof e > "u")
|
|
32
|
+
return;
|
|
33
|
+
let r, o;
|
|
34
|
+
if (typeof e != "object" && (e = [e]), Ae(e))
|
|
35
|
+
for (r = 0, o = e.length; r < o; r++)
|
|
36
|
+
t.call(null, e[r], r, e);
|
|
37
|
+
else {
|
|
38
|
+
const s = n ? Object.getOwnPropertyNames(e) : Object.keys(e), i = s.length;
|
|
39
|
+
let a;
|
|
40
|
+
for (r = 0; r < i; r++)
|
|
41
|
+
a = s[r], t.call(null, e[a], a, e);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
function ir(e, t) {
|
|
45
|
+
t = t.toLowerCase();
|
|
46
|
+
const n = Object.keys(e);
|
|
47
|
+
let r = n.length, o;
|
|
48
|
+
for (; r-- > 0; )
|
|
49
|
+
if (o = n[r], t === o.toLowerCase())
|
|
50
|
+
return o;
|
|
51
|
+
return null;
|
|
52
|
+
}
|
|
53
|
+
const ar = (() => typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global)(), lr = (e) => !Qe(e) && e !== ar;
|
|
54
|
+
function Yt() {
|
|
55
|
+
const { caseless: e } = lr(this) && this || {}, t = {}, n = (r, o) => {
|
|
56
|
+
const s = e && ir(t, o) || o;
|
|
57
|
+
nt(t[s]) && nt(r) ? t[s] = Yt(t[s], r) : nt(r) ? t[s] = Yt({}, r) : Ae(r) ? t[s] = r.slice() : t[s] = r;
|
|
58
|
+
};
|
|
59
|
+
for (let r = 0, o = arguments.length; r < o; r++)
|
|
60
|
+
arguments[r] && Je(arguments[r], n);
|
|
61
|
+
return t;
|
|
62
|
+
}
|
|
63
|
+
const Lo = (e, t, n, { allOwnKeys: r } = {}) => (Je(t, (o, s) => {
|
|
64
|
+
n && H(o) ? e[s] = rr(o, n) : e[s] = o;
|
|
65
|
+
}, { allOwnKeys: r }), e), Io = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Fo = (e, t, n, r) => {
|
|
66
|
+
e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
67
|
+
value: t.prototype
|
|
68
|
+
}), n && Object.assign(e.prototype, n);
|
|
69
|
+
}, _o = (e, t, n, r) => {
|
|
70
|
+
let o, s, i;
|
|
71
|
+
const a = {};
|
|
72
|
+
if (t = t || {}, e == null)
|
|
73
|
+
return t;
|
|
74
|
+
do {
|
|
75
|
+
for (o = Object.getOwnPropertyNames(e), s = o.length; s-- > 0; )
|
|
76
|
+
i = o[s], (!r || r(i, e, t)) && !a[i] && (t[i] = e[i], a[i] = !0);
|
|
77
|
+
e = n !== !1 && dn(e);
|
|
78
|
+
} while (e && (!n || n(e, t)) && e !== Object.prototype);
|
|
79
|
+
return t;
|
|
80
|
+
}, Mo = (e, t, n) => {
|
|
81
|
+
e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
|
|
82
|
+
const r = e.indexOf(t, n);
|
|
83
|
+
return r !== -1 && r === n;
|
|
84
|
+
}, ko = (e) => {
|
|
85
|
+
if (!e)
|
|
86
|
+
return null;
|
|
87
|
+
if (Ae(e))
|
|
88
|
+
return e;
|
|
89
|
+
let t = e.length;
|
|
90
|
+
if (!sr(t))
|
|
91
|
+
return null;
|
|
92
|
+
const n = new Array(t);
|
|
93
|
+
for (; t-- > 0; )
|
|
94
|
+
n[t] = e[t];
|
|
95
|
+
return n;
|
|
96
|
+
}, Bo = ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && dn(Uint8Array)), Go = (e, t) => {
|
|
97
|
+
const r = (e && e[Symbol.iterator]).call(e);
|
|
98
|
+
let o;
|
|
99
|
+
for (; (o = r.next()) && !o.done; ) {
|
|
100
|
+
const s = o.value;
|
|
101
|
+
t.call(e, s[0], s[1]);
|
|
102
|
+
}
|
|
103
|
+
}, Uo = (e, t) => {
|
|
104
|
+
let n;
|
|
105
|
+
const r = [];
|
|
106
|
+
for (; (n = e.exec(t)) !== null; )
|
|
107
|
+
r.push(n);
|
|
108
|
+
return r;
|
|
109
|
+
}, zo = Z("HTMLFormElement"), Ho = (e) => e.toLowerCase().replace(
|
|
110
|
+
/[-_\s]([a-z\d])(\w*)/g,
|
|
111
|
+
function(n, r, o) {
|
|
112
|
+
return r.toUpperCase() + o;
|
|
113
|
+
}
|
|
114
|
+
), Cn = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), Qo = Z("RegExp"), cr = (e, t) => {
|
|
115
|
+
const n = Object.getOwnPropertyDescriptors(e), r = {};
|
|
116
|
+
Je(n, (o, s) => {
|
|
117
|
+
t(o, s, e) !== !1 && (r[s] = o);
|
|
118
|
+
}), Object.defineProperties(e, r);
|
|
119
|
+
}, Yo = (e) => {
|
|
120
|
+
cr(e, (t, n) => {
|
|
121
|
+
if (H(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
|
|
122
|
+
return !1;
|
|
123
|
+
const r = e[n];
|
|
124
|
+
if (H(r)) {
|
|
125
|
+
if (t.enumerable = !1, "writable" in t) {
|
|
126
|
+
t.writable = !1;
|
|
127
|
+
return;
|
|
128
|
+
}
|
|
129
|
+
t.set || (t.set = () => {
|
|
130
|
+
throw Error("Can not rewrite read-only method '" + n + "'");
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
});
|
|
134
|
+
}, Vo = (e, t) => {
|
|
135
|
+
const n = {}, r = (o) => {
|
|
136
|
+
o.forEach((s) => {
|
|
137
|
+
n[s] = !0;
|
|
138
|
+
});
|
|
139
|
+
};
|
|
140
|
+
return Ae(e) ? r(e) : r(String(e).split(t)), n;
|
|
141
|
+
}, Jo = () => {
|
|
142
|
+
}, Wo = (e, t) => (e = +e, Number.isFinite(e) ? e : t), Lt = "abcdefghijklmnopqrstuvwxyz", Sn = "0123456789", ur = {
|
|
143
|
+
DIGIT: Sn,
|
|
144
|
+
ALPHA: Lt,
|
|
145
|
+
ALPHA_DIGIT: Lt + Lt.toUpperCase() + Sn
|
|
146
|
+
}, Ko = (e = 16, t = ur.ALPHA_DIGIT) => {
|
|
147
|
+
let n = "";
|
|
148
|
+
const { length: r } = t;
|
|
149
|
+
for (; e--; )
|
|
150
|
+
n += t[Math.random() * r | 0];
|
|
151
|
+
return n;
|
|
152
|
+
};
|
|
153
|
+
function qo(e) {
|
|
154
|
+
return !!(e && H(e.append) && e[Symbol.toStringTag] === "FormData" && e[Symbol.iterator]);
|
|
155
|
+
}
|
|
156
|
+
const Zo = (e) => {
|
|
157
|
+
const t = new Array(10), n = (r, o) => {
|
|
158
|
+
if (gt(r)) {
|
|
159
|
+
if (t.indexOf(r) >= 0)
|
|
160
|
+
return;
|
|
161
|
+
if (!("toJSON" in r)) {
|
|
162
|
+
t[o] = r;
|
|
163
|
+
const s = Ae(r) ? [] : {};
|
|
164
|
+
return Je(r, (i, a) => {
|
|
165
|
+
const u = n(i, o + 1);
|
|
166
|
+
!Qe(u) && (s[a] = u);
|
|
167
|
+
}), t[o] = void 0, s;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
return r;
|
|
171
|
+
};
|
|
172
|
+
return n(e, 0);
|
|
173
|
+
}, Xo = Z("AsyncFunction"), $o = (e) => e && (gt(e) || H(e)) && H(e.then) && H(e.catch), f = {
|
|
174
|
+
isArray: Ae,
|
|
175
|
+
isArrayBuffer: or,
|
|
176
|
+
isBuffer: Eo,
|
|
177
|
+
isFormData: Ro,
|
|
178
|
+
isArrayBufferView: Ao,
|
|
179
|
+
isString: xo,
|
|
180
|
+
isNumber: sr,
|
|
181
|
+
isBoolean: Co,
|
|
182
|
+
isObject: gt,
|
|
183
|
+
isPlainObject: nt,
|
|
184
|
+
isUndefined: Qe,
|
|
185
|
+
isDate: So,
|
|
186
|
+
isFile: Oo,
|
|
187
|
+
isBlob: Po,
|
|
188
|
+
isRegExp: Qo,
|
|
189
|
+
isFunction: H,
|
|
190
|
+
isStream: No,
|
|
191
|
+
isURLSearchParams: To,
|
|
192
|
+
isTypedArray: Bo,
|
|
193
|
+
isFileList: Do,
|
|
194
|
+
forEach: Je,
|
|
195
|
+
merge: Yt,
|
|
196
|
+
extend: Lo,
|
|
197
|
+
trim: jo,
|
|
198
|
+
stripBOM: Io,
|
|
199
|
+
inherits: Fo,
|
|
200
|
+
toFlatObject: _o,
|
|
201
|
+
kindOf: ht,
|
|
202
|
+
kindOfTest: Z,
|
|
203
|
+
endsWith: Mo,
|
|
204
|
+
toArray: ko,
|
|
205
|
+
forEachEntry: Go,
|
|
206
|
+
matchAll: Uo,
|
|
207
|
+
isHTMLForm: zo,
|
|
208
|
+
hasOwnProperty: Cn,
|
|
209
|
+
hasOwnProp: Cn,
|
|
210
|
+
// an alias to avoid ESLint no-prototype-builtins detection
|
|
211
|
+
reduceDescriptors: cr,
|
|
212
|
+
freezeMethods: Yo,
|
|
213
|
+
toObjectSet: Vo,
|
|
214
|
+
toCamelCase: Ho,
|
|
215
|
+
noop: Jo,
|
|
216
|
+
toFiniteNumber: Wo,
|
|
217
|
+
findKey: ir,
|
|
218
|
+
global: ar,
|
|
219
|
+
isContextDefined: lr,
|
|
220
|
+
ALPHABET: ur,
|
|
221
|
+
generateString: Ko,
|
|
222
|
+
isSpecCompliantForm: qo,
|
|
223
|
+
toJSONObject: Zo,
|
|
224
|
+
isAsyncFn: Xo,
|
|
225
|
+
isThenable: $o
|
|
226
|
+
};
|
|
227
|
+
function S(e, t, n, r, o) {
|
|
228
|
+
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), n && (this.config = n), r && (this.request = r), o && (this.response = o);
|
|
229
|
+
}
|
|
230
|
+
f.inherits(S, Error, {
|
|
231
|
+
toJSON: function() {
|
|
232
|
+
return {
|
|
233
|
+
// Standard
|
|
234
|
+
message: this.message,
|
|
235
|
+
name: this.name,
|
|
236
|
+
// Microsoft
|
|
237
|
+
description: this.description,
|
|
238
|
+
number: this.number,
|
|
239
|
+
// Mozilla
|
|
240
|
+
fileName: this.fileName,
|
|
241
|
+
lineNumber: this.lineNumber,
|
|
242
|
+
columnNumber: this.columnNumber,
|
|
243
|
+
stack: this.stack,
|
|
244
|
+
// Axios
|
|
245
|
+
config: f.toJSONObject(this.config),
|
|
246
|
+
code: this.code,
|
|
247
|
+
status: this.response && this.response.status ? this.response.status : null
|
|
248
|
+
};
|
|
249
|
+
}
|
|
250
|
+
});
|
|
251
|
+
const dr = S.prototype, fr = {};
|
|
252
|
+
[
|
|
253
|
+
"ERR_BAD_OPTION_VALUE",
|
|
254
|
+
"ERR_BAD_OPTION",
|
|
255
|
+
"ECONNABORTED",
|
|
256
|
+
"ETIMEDOUT",
|
|
257
|
+
"ERR_NETWORK",
|
|
258
|
+
"ERR_FR_TOO_MANY_REDIRECTS",
|
|
259
|
+
"ERR_DEPRECATED",
|
|
260
|
+
"ERR_BAD_RESPONSE",
|
|
261
|
+
"ERR_BAD_REQUEST",
|
|
262
|
+
"ERR_CANCELED",
|
|
263
|
+
"ERR_NOT_SUPPORT",
|
|
264
|
+
"ERR_INVALID_URL"
|
|
265
|
+
// eslint-disable-next-line func-names
|
|
266
|
+
].forEach((e) => {
|
|
267
|
+
fr[e] = { value: e };
|
|
268
|
+
});
|
|
269
|
+
Object.defineProperties(S, fr);
|
|
270
|
+
Object.defineProperty(dr, "isAxiosError", { value: !0 });
|
|
271
|
+
S.from = (e, t, n, r, o, s) => {
|
|
272
|
+
const i = Object.create(dr);
|
|
273
|
+
return f.toFlatObject(e, i, function(u) {
|
|
274
|
+
return u !== Error.prototype;
|
|
275
|
+
}, (a) => a !== "isAxiosError"), S.call(i, e.message, t, n, r, o), i.cause = e, i.name = e.name, s && Object.assign(i, s), i;
|
|
276
|
+
};
|
|
277
|
+
const es = null;
|
|
278
|
+
function Vt(e) {
|
|
279
|
+
return f.isPlainObject(e) || f.isArray(e);
|
|
280
|
+
}
|
|
281
|
+
function pr(e) {
|
|
282
|
+
return f.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
|
283
|
+
}
|
|
284
|
+
function On(e, t, n) {
|
|
285
|
+
return e ? e.concat(t).map(function(o, s) {
|
|
286
|
+
return o = pr(o), !n && s ? "[" + o + "]" : o;
|
|
287
|
+
}).join(n ? "." : "") : t;
|
|
288
|
+
}
|
|
289
|
+
function ts(e) {
|
|
290
|
+
return f.isArray(e) && !e.some(Vt);
|
|
291
|
+
}
|
|
292
|
+
const ns = f.toFlatObject(f, {}, null, function(t) {
|
|
293
|
+
return /^is[A-Z]/.test(t);
|
|
294
|
+
});
|
|
295
|
+
function vt(e, t, n) {
|
|
296
|
+
if (!f.isObject(e))
|
|
297
|
+
throw new TypeError("target must be an object");
|
|
298
|
+
t = t || new FormData(), n = f.toFlatObject(n, {
|
|
299
|
+
metaTokens: !0,
|
|
300
|
+
dots: !1,
|
|
301
|
+
indexes: !1
|
|
302
|
+
}, !1, function(h, b) {
|
|
303
|
+
return !f.isUndefined(b[h]);
|
|
304
|
+
});
|
|
305
|
+
const r = n.metaTokens, o = n.visitor || d, s = n.dots, i = n.indexes, u = (n.Blob || typeof Blob < "u" && Blob) && f.isSpecCompliantForm(t);
|
|
306
|
+
if (!f.isFunction(o))
|
|
307
|
+
throw new TypeError("visitor must be a function");
|
|
308
|
+
function l(m) {
|
|
309
|
+
if (m === null)
|
|
310
|
+
return "";
|
|
311
|
+
if (f.isDate(m))
|
|
312
|
+
return m.toISOString();
|
|
313
|
+
if (!u && f.isBlob(m))
|
|
314
|
+
throw new S("Blob is not supported. Use a Buffer instead.");
|
|
315
|
+
return f.isArrayBuffer(m) || f.isTypedArray(m) ? u && typeof Blob == "function" ? new Blob([m]) : Buffer.from(m) : m;
|
|
316
|
+
}
|
|
317
|
+
function d(m, h, b) {
|
|
318
|
+
let x = m;
|
|
319
|
+
if (m && !b && typeof m == "object") {
|
|
320
|
+
if (f.endsWith(h, "{}"))
|
|
321
|
+
h = r ? h : h.slice(0, -2), m = JSON.stringify(m);
|
|
322
|
+
else if (f.isArray(m) && ts(m) || (f.isFileList(m) || f.endsWith(h, "[]")) && (x = f.toArray(m)))
|
|
323
|
+
return h = pr(h), x.forEach(function(j, _) {
|
|
324
|
+
!(f.isUndefined(j) || j === null) && t.append(
|
|
325
|
+
// eslint-disable-next-line no-nested-ternary
|
|
326
|
+
i === !0 ? On([h], _, s) : i === null ? h : h + "[]",
|
|
327
|
+
l(j)
|
|
328
|
+
);
|
|
329
|
+
}), !1;
|
|
330
|
+
}
|
|
331
|
+
return Vt(m) ? !0 : (t.append(On(b, h, s), l(m)), !1);
|
|
332
|
+
}
|
|
333
|
+
const c = [], p = Object.assign(ns, {
|
|
334
|
+
defaultVisitor: d,
|
|
335
|
+
convertValue: l,
|
|
336
|
+
isVisitable: Vt
|
|
337
|
+
});
|
|
338
|
+
function g(m, h) {
|
|
339
|
+
if (!f.isUndefined(m)) {
|
|
340
|
+
if (c.indexOf(m) !== -1)
|
|
341
|
+
throw Error("Circular reference detected in " + h.join("."));
|
|
342
|
+
c.push(m), f.forEach(m, function(x, N) {
|
|
343
|
+
(!(f.isUndefined(x) || x === null) && o.call(
|
|
344
|
+
t,
|
|
345
|
+
x,
|
|
346
|
+
f.isString(N) ? N.trim() : N,
|
|
347
|
+
h,
|
|
348
|
+
p
|
|
349
|
+
)) === !0 && g(x, h ? h.concat(N) : [N]);
|
|
350
|
+
}), c.pop();
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
if (!f.isObject(e))
|
|
354
|
+
throw new TypeError("data must be an object");
|
|
355
|
+
return g(e), t;
|
|
356
|
+
}
|
|
357
|
+
function Pn(e) {
|
|
358
|
+
const t = {
|
|
359
|
+
"!": "%21",
|
|
360
|
+
"'": "%27",
|
|
361
|
+
"(": "%28",
|
|
362
|
+
")": "%29",
|
|
363
|
+
"~": "%7E",
|
|
364
|
+
"%20": "+",
|
|
365
|
+
"%00": "\0"
|
|
366
|
+
};
|
|
367
|
+
return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g, function(r) {
|
|
368
|
+
return t[r];
|
|
369
|
+
});
|
|
370
|
+
}
|
|
371
|
+
function fn(e, t) {
|
|
372
|
+
this._pairs = [], e && vt(e, this, t);
|
|
373
|
+
}
|
|
374
|
+
const hr = fn.prototype;
|
|
375
|
+
hr.append = function(t, n) {
|
|
376
|
+
this._pairs.push([t, n]);
|
|
377
|
+
};
|
|
378
|
+
hr.toString = function(t) {
|
|
379
|
+
const n = t ? function(r) {
|
|
380
|
+
return t.call(this, r, Pn);
|
|
381
|
+
} : Pn;
|
|
382
|
+
return this._pairs.map(function(o) {
|
|
383
|
+
return n(o[0]) + "=" + n(o[1]);
|
|
384
|
+
}, "").join("&");
|
|
385
|
+
};
|
|
386
|
+
function rs(e) {
|
|
387
|
+
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
388
|
+
}
|
|
389
|
+
function mr(e, t, n) {
|
|
390
|
+
if (!t)
|
|
391
|
+
return e;
|
|
392
|
+
const r = n && n.encode || rs, o = n && n.serialize;
|
|
393
|
+
let s;
|
|
394
|
+
if (o ? s = o(t, n) : s = f.isURLSearchParams(t) ? t.toString() : new fn(t, n).toString(r), s) {
|
|
395
|
+
const i = e.indexOf("#");
|
|
396
|
+
i !== -1 && (e = e.slice(0, i)), e += (e.indexOf("?") === -1 ? "?" : "&") + s;
|
|
397
|
+
}
|
|
398
|
+
return e;
|
|
399
|
+
}
|
|
400
|
+
class os {
|
|
401
|
+
constructor() {
|
|
402
|
+
this.handlers = [];
|
|
403
|
+
}
|
|
404
|
+
/**
|
|
405
|
+
* Add a new interceptor to the stack
|
|
406
|
+
*
|
|
407
|
+
* @param {Function} fulfilled The function to handle `then` for a `Promise`
|
|
408
|
+
* @param {Function} rejected The function to handle `reject` for a `Promise`
|
|
409
|
+
*
|
|
410
|
+
* @return {Number} An ID used to remove interceptor later
|
|
411
|
+
*/
|
|
412
|
+
use(t, n, r) {
|
|
413
|
+
return this.handlers.push({
|
|
414
|
+
fulfilled: t,
|
|
415
|
+
rejected: n,
|
|
416
|
+
synchronous: r ? r.synchronous : !1,
|
|
417
|
+
runWhen: r ? r.runWhen : null
|
|
418
|
+
}), this.handlers.length - 1;
|
|
419
|
+
}
|
|
420
|
+
/**
|
|
421
|
+
* Remove an interceptor from the stack
|
|
422
|
+
*
|
|
423
|
+
* @param {Number} id The ID that was returned by `use`
|
|
424
|
+
*
|
|
425
|
+
* @returns {Boolean} `true` if the interceptor was removed, `false` otherwise
|
|
426
|
+
*/
|
|
427
|
+
eject(t) {
|
|
428
|
+
this.handlers[t] && (this.handlers[t] = null);
|
|
429
|
+
}
|
|
430
|
+
/**
|
|
431
|
+
* Clear all interceptors from the stack
|
|
432
|
+
*
|
|
433
|
+
* @returns {void}
|
|
434
|
+
*/
|
|
435
|
+
clear() {
|
|
436
|
+
this.handlers && (this.handlers = []);
|
|
437
|
+
}
|
|
438
|
+
/**
|
|
439
|
+
* Iterate over all the registered interceptors
|
|
440
|
+
*
|
|
441
|
+
* This method is particularly useful for skipping over any
|
|
442
|
+
* interceptors that may have become `null` calling `eject`.
|
|
443
|
+
*
|
|
444
|
+
* @param {Function} fn The function to call for each interceptor
|
|
445
|
+
*
|
|
446
|
+
* @returns {void}
|
|
447
|
+
*/
|
|
448
|
+
forEach(t) {
|
|
449
|
+
f.forEach(this.handlers, function(r) {
|
|
450
|
+
r !== null && t(r);
|
|
451
|
+
});
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
const Dn = os, gr = {
|
|
455
|
+
silentJSONParsing: !0,
|
|
456
|
+
forcedJSONParsing: !0,
|
|
457
|
+
clarifyTimeoutError: !1
|
|
458
|
+
}, ss = typeof URLSearchParams < "u" ? URLSearchParams : fn, is = typeof FormData < "u" ? FormData : null, as = typeof Blob < "u" ? Blob : null, ls = (() => {
|
|
459
|
+
let e;
|
|
460
|
+
return typeof navigator < "u" && ((e = navigator.product) === "ReactNative" || e === "NativeScript" || e === "NS") ? !1 : typeof window < "u" && typeof document < "u";
|
|
461
|
+
})(), cs = (() => typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
462
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function")(), q = {
|
|
463
|
+
isBrowser: !0,
|
|
464
|
+
classes: {
|
|
465
|
+
URLSearchParams: ss,
|
|
466
|
+
FormData: is,
|
|
467
|
+
Blob: as
|
|
468
|
+
},
|
|
469
|
+
isStandardBrowserEnv: ls,
|
|
470
|
+
isStandardBrowserWebWorkerEnv: cs,
|
|
471
|
+
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
472
|
+
};
|
|
473
|
+
function us(e, t) {
|
|
474
|
+
return vt(e, new q.classes.URLSearchParams(), Object.assign({
|
|
475
|
+
visitor: function(n, r, o, s) {
|
|
476
|
+
return q.isNode && f.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : s.defaultVisitor.apply(this, arguments);
|
|
477
|
+
}
|
|
478
|
+
}, t));
|
|
479
|
+
}
|
|
480
|
+
function ds(e) {
|
|
481
|
+
return f.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
|
|
482
|
+
}
|
|
483
|
+
function fs(e) {
|
|
484
|
+
const t = {}, n = Object.keys(e);
|
|
485
|
+
let r;
|
|
486
|
+
const o = n.length;
|
|
487
|
+
let s;
|
|
488
|
+
for (r = 0; r < o; r++)
|
|
489
|
+
s = n[r], t[s] = e[s];
|
|
490
|
+
return t;
|
|
491
|
+
}
|
|
492
|
+
function vr(e) {
|
|
493
|
+
function t(n, r, o, s) {
|
|
494
|
+
let i = n[s++];
|
|
495
|
+
const a = Number.isFinite(+i), u = s >= n.length;
|
|
496
|
+
return i = !i && f.isArray(o) ? o.length : i, u ? (f.hasOwnProp(o, i) ? o[i] = [o[i], r] : o[i] = r, !a) : ((!o[i] || !f.isObject(o[i])) && (o[i] = []), t(n, r, o[i], s) && f.isArray(o[i]) && (o[i] = fs(o[i])), !a);
|
|
497
|
+
}
|
|
498
|
+
if (f.isFormData(e) && f.isFunction(e.entries)) {
|
|
499
|
+
const n = {};
|
|
500
|
+
return f.forEachEntry(e, (r, o) => {
|
|
501
|
+
t(ds(r), o, n, 0);
|
|
502
|
+
}), n;
|
|
503
|
+
}
|
|
504
|
+
return null;
|
|
505
|
+
}
|
|
506
|
+
const ps = {
|
|
507
|
+
"Content-Type": void 0
|
|
508
|
+
};
|
|
509
|
+
function hs(e, t, n) {
|
|
510
|
+
if (f.isString(e))
|
|
511
|
+
try {
|
|
512
|
+
return (t || JSON.parse)(e), f.trim(e);
|
|
513
|
+
} catch (r) {
|
|
514
|
+
if (r.name !== "SyntaxError")
|
|
515
|
+
throw r;
|
|
516
|
+
}
|
|
517
|
+
return (n || JSON.stringify)(e);
|
|
518
|
+
}
|
|
519
|
+
const wt = {
|
|
520
|
+
transitional: gr,
|
|
521
|
+
adapter: ["xhr", "http"],
|
|
522
|
+
transformRequest: [function(t, n) {
|
|
523
|
+
const r = n.getContentType() || "", o = r.indexOf("application/json") > -1, s = f.isObject(t);
|
|
524
|
+
if (s && f.isHTMLForm(t) && (t = new FormData(t)), f.isFormData(t))
|
|
525
|
+
return o && o ? JSON.stringify(vr(t)) : t;
|
|
526
|
+
if (f.isArrayBuffer(t) || f.isBuffer(t) || f.isStream(t) || f.isFile(t) || f.isBlob(t))
|
|
527
|
+
return t;
|
|
528
|
+
if (f.isArrayBufferView(t))
|
|
529
|
+
return t.buffer;
|
|
530
|
+
if (f.isURLSearchParams(t))
|
|
531
|
+
return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
|
|
532
|
+
let a;
|
|
533
|
+
if (s) {
|
|
534
|
+
if (r.indexOf("application/x-www-form-urlencoded") > -1)
|
|
535
|
+
return us(t, this.formSerializer).toString();
|
|
536
|
+
if ((a = f.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
|
|
537
|
+
const u = this.env && this.env.FormData;
|
|
538
|
+
return vt(
|
|
539
|
+
a ? { "files[]": t } : t,
|
|
540
|
+
u && new u(),
|
|
541
|
+
this.formSerializer
|
|
542
|
+
);
|
|
543
|
+
}
|
|
544
|
+
}
|
|
545
|
+
return s || o ? (n.setContentType("application/json", !1), hs(t)) : t;
|
|
546
|
+
}],
|
|
547
|
+
transformResponse: [function(t) {
|
|
548
|
+
const n = this.transitional || wt.transitional, r = n && n.forcedJSONParsing, o = this.responseType === "json";
|
|
549
|
+
if (t && f.isString(t) && (r && !this.responseType || o)) {
|
|
550
|
+
const i = !(n && n.silentJSONParsing) && o;
|
|
551
|
+
try {
|
|
552
|
+
return JSON.parse(t);
|
|
553
|
+
} catch (a) {
|
|
554
|
+
if (i)
|
|
555
|
+
throw a.name === "SyntaxError" ? S.from(a, S.ERR_BAD_RESPONSE, this, null, this.response) : a;
|
|
556
|
+
}
|
|
557
|
+
}
|
|
558
|
+
return t;
|
|
559
|
+
}],
|
|
560
|
+
/**
|
|
561
|
+
* A timeout in milliseconds to abort a request. If set to 0 (default) a
|
|
562
|
+
* timeout is not created.
|
|
563
|
+
*/
|
|
564
|
+
timeout: 0,
|
|
565
|
+
xsrfCookieName: "XSRF-TOKEN",
|
|
566
|
+
xsrfHeaderName: "X-XSRF-TOKEN",
|
|
567
|
+
maxContentLength: -1,
|
|
568
|
+
maxBodyLength: -1,
|
|
569
|
+
env: {
|
|
570
|
+
FormData: q.classes.FormData,
|
|
571
|
+
Blob: q.classes.Blob
|
|
572
|
+
},
|
|
573
|
+
validateStatus: function(t) {
|
|
574
|
+
return t >= 200 && t < 300;
|
|
575
|
+
},
|
|
576
|
+
headers: {
|
|
577
|
+
common: {
|
|
578
|
+
Accept: "application/json, text/plain, */*"
|
|
579
|
+
}
|
|
580
|
+
}
|
|
581
|
+
};
|
|
582
|
+
f.forEach(["delete", "get", "head"], function(t) {
|
|
583
|
+
wt.headers[t] = {};
|
|
584
|
+
});
|
|
585
|
+
f.forEach(["post", "put", "patch"], function(t) {
|
|
586
|
+
wt.headers[t] = f.merge(ps);
|
|
587
|
+
});
|
|
588
|
+
const pn = wt, ms = f.toObjectSet([
|
|
589
|
+
"age",
|
|
590
|
+
"authorization",
|
|
591
|
+
"content-length",
|
|
592
|
+
"content-type",
|
|
593
|
+
"etag",
|
|
594
|
+
"expires",
|
|
595
|
+
"from",
|
|
596
|
+
"host",
|
|
597
|
+
"if-modified-since",
|
|
598
|
+
"if-unmodified-since",
|
|
599
|
+
"last-modified",
|
|
600
|
+
"location",
|
|
601
|
+
"max-forwards",
|
|
602
|
+
"proxy-authorization",
|
|
603
|
+
"referer",
|
|
604
|
+
"retry-after",
|
|
605
|
+
"user-agent"
|
|
606
|
+
]), gs = (e) => {
|
|
607
|
+
const t = {};
|
|
608
|
+
let n, r, o;
|
|
609
|
+
return e && e.split(`
|
|
610
|
+
`).forEach(function(i) {
|
|
611
|
+
o = i.indexOf(":"), n = i.substring(0, o).trim().toLowerCase(), r = i.substring(o + 1).trim(), !(!n || t[n] && ms[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
|
|
612
|
+
}), t;
|
|
613
|
+
}, Nn = Symbol("internals");
|
|
614
|
+
function Ne(e) {
|
|
615
|
+
return e && String(e).trim().toLowerCase();
|
|
616
|
+
}
|
|
617
|
+
function rt(e) {
|
|
618
|
+
return e === !1 || e == null ? e : f.isArray(e) ? e.map(rt) : String(e);
|
|
619
|
+
}
|
|
620
|
+
function vs(e) {
|
|
621
|
+
const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
622
|
+
let r;
|
|
623
|
+
for (; r = n.exec(e); )
|
|
624
|
+
t[r[1]] = r[2];
|
|
625
|
+
return t;
|
|
626
|
+
}
|
|
627
|
+
const ws = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
|
|
628
|
+
function It(e, t, n, r, o) {
|
|
629
|
+
if (f.isFunction(r))
|
|
630
|
+
return r.call(this, t, n);
|
|
631
|
+
if (o && (t = n), !!f.isString(t)) {
|
|
632
|
+
if (f.isString(r))
|
|
633
|
+
return t.indexOf(r) !== -1;
|
|
634
|
+
if (f.isRegExp(r))
|
|
635
|
+
return r.test(t);
|
|
636
|
+
}
|
|
637
|
+
}
|
|
638
|
+
function ys(e) {
|
|
639
|
+
return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r);
|
|
640
|
+
}
|
|
641
|
+
function bs(e, t) {
|
|
642
|
+
const n = f.toCamelCase(" " + t);
|
|
643
|
+
["get", "set", "has"].forEach((r) => {
|
|
644
|
+
Object.defineProperty(e, r + n, {
|
|
645
|
+
value: function(o, s, i) {
|
|
646
|
+
return this[r].call(this, t, o, s, i);
|
|
647
|
+
},
|
|
648
|
+
configurable: !0
|
|
649
|
+
});
|
|
650
|
+
});
|
|
651
|
+
}
|
|
652
|
+
class yt {
|
|
653
|
+
constructor(t) {
|
|
654
|
+
t && this.set(t);
|
|
655
|
+
}
|
|
656
|
+
set(t, n, r) {
|
|
657
|
+
const o = this;
|
|
658
|
+
function s(a, u, l) {
|
|
659
|
+
const d = Ne(u);
|
|
660
|
+
if (!d)
|
|
661
|
+
throw new Error("header name must be a non-empty string");
|
|
662
|
+
const c = f.findKey(o, d);
|
|
663
|
+
(!c || o[c] === void 0 || l === !0 || l === void 0 && o[c] !== !1) && (o[c || u] = rt(a));
|
|
664
|
+
}
|
|
665
|
+
const i = (a, u) => f.forEach(a, (l, d) => s(l, d, u));
|
|
666
|
+
return f.isPlainObject(t) || t instanceof this.constructor ? i(t, n) : f.isString(t) && (t = t.trim()) && !ws(t) ? i(gs(t), n) : t != null && s(n, t, r), this;
|
|
667
|
+
}
|
|
668
|
+
get(t, n) {
|
|
669
|
+
if (t = Ne(t), t) {
|
|
670
|
+
const r = f.findKey(this, t);
|
|
671
|
+
if (r) {
|
|
672
|
+
const o = this[r];
|
|
673
|
+
if (!n)
|
|
674
|
+
return o;
|
|
675
|
+
if (n === !0)
|
|
676
|
+
return vs(o);
|
|
677
|
+
if (f.isFunction(n))
|
|
678
|
+
return n.call(this, o, r);
|
|
679
|
+
if (f.isRegExp(n))
|
|
680
|
+
return n.exec(o);
|
|
681
|
+
throw new TypeError("parser must be boolean|regexp|function");
|
|
682
|
+
}
|
|
683
|
+
}
|
|
684
|
+
}
|
|
685
|
+
has(t, n) {
|
|
686
|
+
if (t = Ne(t), t) {
|
|
687
|
+
const r = f.findKey(this, t);
|
|
688
|
+
return !!(r && this[r] !== void 0 && (!n || It(this, this[r], r, n)));
|
|
689
|
+
}
|
|
690
|
+
return !1;
|
|
691
|
+
}
|
|
692
|
+
delete(t, n) {
|
|
693
|
+
const r = this;
|
|
694
|
+
let o = !1;
|
|
695
|
+
function s(i) {
|
|
696
|
+
if (i = Ne(i), i) {
|
|
697
|
+
const a = f.findKey(r, i);
|
|
698
|
+
a && (!n || It(r, r[a], a, n)) && (delete r[a], o = !0);
|
|
699
|
+
}
|
|
700
|
+
}
|
|
701
|
+
return f.isArray(t) ? t.forEach(s) : s(t), o;
|
|
702
|
+
}
|
|
703
|
+
clear(t) {
|
|
704
|
+
const n = Object.keys(this);
|
|
705
|
+
let r = n.length, o = !1;
|
|
706
|
+
for (; r--; ) {
|
|
707
|
+
const s = n[r];
|
|
708
|
+
(!t || It(this, this[s], s, t, !0)) && (delete this[s], o = !0);
|
|
709
|
+
}
|
|
710
|
+
return o;
|
|
711
|
+
}
|
|
712
|
+
normalize(t) {
|
|
713
|
+
const n = this, r = {};
|
|
714
|
+
return f.forEach(this, (o, s) => {
|
|
715
|
+
const i = f.findKey(r, s);
|
|
716
|
+
if (i) {
|
|
717
|
+
n[i] = rt(o), delete n[s];
|
|
718
|
+
return;
|
|
719
|
+
}
|
|
720
|
+
const a = t ? ys(s) : String(s).trim();
|
|
721
|
+
a !== s && delete n[s], n[a] = rt(o), r[a] = !0;
|
|
722
|
+
}), this;
|
|
723
|
+
}
|
|
724
|
+
concat(...t) {
|
|
725
|
+
return this.constructor.concat(this, ...t);
|
|
726
|
+
}
|
|
727
|
+
toJSON(t) {
|
|
728
|
+
const n = /* @__PURE__ */ Object.create(null);
|
|
729
|
+
return f.forEach(this, (r, o) => {
|
|
730
|
+
r != null && r !== !1 && (n[o] = t && f.isArray(r) ? r.join(", ") : r);
|
|
731
|
+
}), n;
|
|
732
|
+
}
|
|
733
|
+
[Symbol.iterator]() {
|
|
734
|
+
return Object.entries(this.toJSON())[Symbol.iterator]();
|
|
735
|
+
}
|
|
736
|
+
toString() {
|
|
737
|
+
return Object.entries(this.toJSON()).map(([t, n]) => t + ": " + n).join(`
|
|
738
|
+
`);
|
|
739
|
+
}
|
|
740
|
+
get [Symbol.toStringTag]() {
|
|
741
|
+
return "AxiosHeaders";
|
|
742
|
+
}
|
|
743
|
+
static from(t) {
|
|
744
|
+
return t instanceof this ? t : new this(t);
|
|
745
|
+
}
|
|
746
|
+
static concat(t, ...n) {
|
|
747
|
+
const r = new this(t);
|
|
748
|
+
return n.forEach((o) => r.set(o)), r;
|
|
749
|
+
}
|
|
750
|
+
static accessor(t) {
|
|
751
|
+
const r = (this[Nn] = this[Nn] = {
|
|
752
|
+
accessors: {}
|
|
753
|
+
}).accessors, o = this.prototype;
|
|
754
|
+
function s(i) {
|
|
755
|
+
const a = Ne(i);
|
|
756
|
+
r[a] || (bs(o, i), r[a] = !0);
|
|
757
|
+
}
|
|
758
|
+
return f.isArray(t) ? t.forEach(s) : s(t), this;
|
|
759
|
+
}
|
|
760
|
+
}
|
|
761
|
+
yt.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
|
762
|
+
f.freezeMethods(yt.prototype);
|
|
763
|
+
f.freezeMethods(yt);
|
|
764
|
+
const $ = yt;
|
|
765
|
+
function Ft(e, t) {
|
|
766
|
+
const n = this || pn, r = t || n, o = $.from(r.headers);
|
|
767
|
+
let s = r.data;
|
|
768
|
+
return f.forEach(e, function(a) {
|
|
769
|
+
s = a.call(n, s, o.normalize(), t ? t.status : void 0);
|
|
770
|
+
}), o.normalize(), s;
|
|
771
|
+
}
|
|
772
|
+
function wr(e) {
|
|
773
|
+
return !!(e && e.__CANCEL__);
|
|
774
|
+
}
|
|
775
|
+
function We(e, t, n) {
|
|
776
|
+
S.call(this, e ?? "canceled", S.ERR_CANCELED, t, n), this.name = "CanceledError";
|
|
777
|
+
}
|
|
778
|
+
f.inherits(We, S, {
|
|
779
|
+
__CANCEL__: !0
|
|
780
|
+
});
|
|
781
|
+
function Es(e, t, n) {
|
|
782
|
+
const r = n.config.validateStatus;
|
|
783
|
+
!n.status || !r || r(n.status) ? e(n) : t(new S(
|
|
784
|
+
"Request failed with status code " + n.status,
|
|
785
|
+
[S.ERR_BAD_REQUEST, S.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4],
|
|
786
|
+
n.config,
|
|
787
|
+
n.request,
|
|
788
|
+
n
|
|
789
|
+
));
|
|
790
|
+
}
|
|
791
|
+
const As = q.isStandardBrowserEnv ? (
|
|
792
|
+
// Standard browser envs support document.cookie
|
|
793
|
+
function() {
|
|
794
|
+
return {
|
|
795
|
+
write: function(n, r, o, s, i, a) {
|
|
796
|
+
const u = [];
|
|
797
|
+
u.push(n + "=" + encodeURIComponent(r)), f.isNumber(o) && u.push("expires=" + new Date(o).toGMTString()), f.isString(s) && u.push("path=" + s), f.isString(i) && u.push("domain=" + i), a === !0 && u.push("secure"), document.cookie = u.join("; ");
|
|
798
|
+
},
|
|
799
|
+
read: function(n) {
|
|
800
|
+
const r = document.cookie.match(new RegExp("(^|;\\s*)(" + n + ")=([^;]*)"));
|
|
801
|
+
return r ? decodeURIComponent(r[3]) : null;
|
|
802
|
+
},
|
|
803
|
+
remove: function(n) {
|
|
804
|
+
this.write(n, "", Date.now() - 864e5);
|
|
805
|
+
}
|
|
806
|
+
};
|
|
807
|
+
}()
|
|
808
|
+
) : (
|
|
809
|
+
// Non standard browser env (web workers, react-native) lack needed support.
|
|
810
|
+
function() {
|
|
811
|
+
return {
|
|
812
|
+
write: function() {
|
|
813
|
+
},
|
|
814
|
+
read: function() {
|
|
815
|
+
return null;
|
|
816
|
+
},
|
|
817
|
+
remove: function() {
|
|
818
|
+
}
|
|
819
|
+
};
|
|
820
|
+
}()
|
|
821
|
+
);
|
|
822
|
+
function xs(e) {
|
|
823
|
+
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
|
|
824
|
+
}
|
|
825
|
+
function Cs(e, t) {
|
|
826
|
+
return t ? e.replace(/\/+$/, "") + "/" + t.replace(/^\/+/, "") : e;
|
|
827
|
+
}
|
|
828
|
+
function yr(e, t) {
|
|
829
|
+
return e && !xs(t) ? Cs(e, t) : t;
|
|
830
|
+
}
|
|
831
|
+
const Ss = q.isStandardBrowserEnv ? (
|
|
832
|
+
// Standard browser envs have full support of the APIs needed to test
|
|
833
|
+
// whether the request URL is of the same origin as current location.
|
|
834
|
+
function() {
|
|
835
|
+
const t = /(msie|trident)/i.test(navigator.userAgent), n = document.createElement("a");
|
|
836
|
+
let r;
|
|
837
|
+
function o(s) {
|
|
838
|
+
let i = s;
|
|
839
|
+
return t && (n.setAttribute("href", i), i = n.href), n.setAttribute("href", i), {
|
|
840
|
+
href: n.href,
|
|
841
|
+
protocol: n.protocol ? n.protocol.replace(/:$/, "") : "",
|
|
842
|
+
host: n.host,
|
|
843
|
+
search: n.search ? n.search.replace(/^\?/, "") : "",
|
|
844
|
+
hash: n.hash ? n.hash.replace(/^#/, "") : "",
|
|
845
|
+
hostname: n.hostname,
|
|
846
|
+
port: n.port,
|
|
847
|
+
pathname: n.pathname.charAt(0) === "/" ? n.pathname : "/" + n.pathname
|
|
848
|
+
};
|
|
849
|
+
}
|
|
850
|
+
return r = o(window.location.href), function(i) {
|
|
851
|
+
const a = f.isString(i) ? o(i) : i;
|
|
852
|
+
return a.protocol === r.protocol && a.host === r.host;
|
|
853
|
+
};
|
|
854
|
+
}()
|
|
855
|
+
) : (
|
|
856
|
+
// Non standard browser envs (web workers, react-native) lack needed support.
|
|
857
|
+
function() {
|
|
858
|
+
return function() {
|
|
859
|
+
return !0;
|
|
860
|
+
};
|
|
861
|
+
}()
|
|
862
|
+
);
|
|
863
|
+
function Os(e) {
|
|
864
|
+
const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
|
|
865
|
+
return t && t[1] || "";
|
|
866
|
+
}
|
|
867
|
+
function Ps(e, t) {
|
|
868
|
+
e = e || 10;
|
|
869
|
+
const n = new Array(e), r = new Array(e);
|
|
870
|
+
let o = 0, s = 0, i;
|
|
871
|
+
return t = t !== void 0 ? t : 1e3, function(u) {
|
|
872
|
+
const l = Date.now(), d = r[s];
|
|
873
|
+
i || (i = l), n[o] = u, r[o] = l;
|
|
874
|
+
let c = s, p = 0;
|
|
875
|
+
for (; c !== o; )
|
|
876
|
+
p += n[c++], c = c % e;
|
|
877
|
+
if (o = (o + 1) % e, o === s && (s = (s + 1) % e), l - i < t)
|
|
878
|
+
return;
|
|
879
|
+
const g = d && l - d;
|
|
880
|
+
return g ? Math.round(p * 1e3 / g) : void 0;
|
|
881
|
+
};
|
|
882
|
+
}
|
|
883
|
+
function Rn(e, t) {
|
|
884
|
+
let n = 0;
|
|
885
|
+
const r = Ps(50, 250);
|
|
886
|
+
return (o) => {
|
|
887
|
+
const s = o.loaded, i = o.lengthComputable ? o.total : void 0, a = s - n, u = r(a), l = s <= i;
|
|
888
|
+
n = s;
|
|
889
|
+
const d = {
|
|
890
|
+
loaded: s,
|
|
891
|
+
total: i,
|
|
892
|
+
progress: i ? s / i : void 0,
|
|
893
|
+
bytes: a,
|
|
894
|
+
rate: u || void 0,
|
|
895
|
+
estimated: u && i && l ? (i - s) / u : void 0,
|
|
896
|
+
event: o
|
|
897
|
+
};
|
|
898
|
+
d[t ? "download" : "upload"] = !0, e(d);
|
|
899
|
+
};
|
|
900
|
+
}
|
|
901
|
+
const Ds = typeof XMLHttpRequest < "u", Ns = Ds && function(e) {
|
|
902
|
+
return new Promise(function(n, r) {
|
|
903
|
+
let o = e.data;
|
|
904
|
+
const s = $.from(e.headers).normalize(), i = e.responseType;
|
|
905
|
+
let a;
|
|
906
|
+
function u() {
|
|
907
|
+
e.cancelToken && e.cancelToken.unsubscribe(a), e.signal && e.signal.removeEventListener("abort", a);
|
|
908
|
+
}
|
|
909
|
+
f.isFormData(o) && (q.isStandardBrowserEnv || q.isStandardBrowserWebWorkerEnv ? s.setContentType(!1) : s.setContentType("multipart/form-data;", !1));
|
|
910
|
+
let l = new XMLHttpRequest();
|
|
911
|
+
if (e.auth) {
|
|
912
|
+
const g = e.auth.username || "", m = e.auth.password ? unescape(encodeURIComponent(e.auth.password)) : "";
|
|
913
|
+
s.set("Authorization", "Basic " + btoa(g + ":" + m));
|
|
914
|
+
}
|
|
915
|
+
const d = yr(e.baseURL, e.url);
|
|
916
|
+
l.open(e.method.toUpperCase(), mr(d, e.params, e.paramsSerializer), !0), l.timeout = e.timeout;
|
|
917
|
+
function c() {
|
|
918
|
+
if (!l)
|
|
919
|
+
return;
|
|
920
|
+
const g = $.from(
|
|
921
|
+
"getAllResponseHeaders" in l && l.getAllResponseHeaders()
|
|
922
|
+
), h = {
|
|
923
|
+
data: !i || i === "text" || i === "json" ? l.responseText : l.response,
|
|
924
|
+
status: l.status,
|
|
925
|
+
statusText: l.statusText,
|
|
926
|
+
headers: g,
|
|
927
|
+
config: e,
|
|
928
|
+
request: l
|
|
929
|
+
};
|
|
930
|
+
Es(function(x) {
|
|
931
|
+
n(x), u();
|
|
932
|
+
}, function(x) {
|
|
933
|
+
r(x), u();
|
|
934
|
+
}, h), l = null;
|
|
935
|
+
}
|
|
936
|
+
if ("onloadend" in l ? l.onloadend = c : l.onreadystatechange = function() {
|
|
937
|
+
!l || l.readyState !== 4 || l.status === 0 && !(l.responseURL && l.responseURL.indexOf("file:") === 0) || setTimeout(c);
|
|
938
|
+
}, l.onabort = function() {
|
|
939
|
+
l && (r(new S("Request aborted", S.ECONNABORTED, e, l)), l = null);
|
|
940
|
+
}, l.onerror = function() {
|
|
941
|
+
r(new S("Network Error", S.ERR_NETWORK, e, l)), l = null;
|
|
942
|
+
}, l.ontimeout = function() {
|
|
943
|
+
let m = e.timeout ? "timeout of " + e.timeout + "ms exceeded" : "timeout exceeded";
|
|
944
|
+
const h = e.transitional || gr;
|
|
945
|
+
e.timeoutErrorMessage && (m = e.timeoutErrorMessage), r(new S(
|
|
946
|
+
m,
|
|
947
|
+
h.clarifyTimeoutError ? S.ETIMEDOUT : S.ECONNABORTED,
|
|
948
|
+
e,
|
|
949
|
+
l
|
|
950
|
+
)), l = null;
|
|
951
|
+
}, q.isStandardBrowserEnv) {
|
|
952
|
+
const g = (e.withCredentials || Ss(d)) && e.xsrfCookieName && As.read(e.xsrfCookieName);
|
|
953
|
+
g && s.set(e.xsrfHeaderName, g);
|
|
954
|
+
}
|
|
955
|
+
o === void 0 && s.setContentType(null), "setRequestHeader" in l && f.forEach(s.toJSON(), function(m, h) {
|
|
956
|
+
l.setRequestHeader(h, m);
|
|
957
|
+
}), f.isUndefined(e.withCredentials) || (l.withCredentials = !!e.withCredentials), i && i !== "json" && (l.responseType = e.responseType), typeof e.onDownloadProgress == "function" && l.addEventListener("progress", Rn(e.onDownloadProgress, !0)), typeof e.onUploadProgress == "function" && l.upload && l.upload.addEventListener("progress", Rn(e.onUploadProgress)), (e.cancelToken || e.signal) && (a = (g) => {
|
|
958
|
+
l && (r(!g || g.type ? new We(null, e, l) : g), l.abort(), l = null);
|
|
959
|
+
}, e.cancelToken && e.cancelToken.subscribe(a), e.signal && (e.signal.aborted ? a() : e.signal.addEventListener("abort", a)));
|
|
960
|
+
const p = Os(d);
|
|
961
|
+
if (p && q.protocols.indexOf(p) === -1) {
|
|
962
|
+
r(new S("Unsupported protocol " + p + ":", S.ERR_BAD_REQUEST, e));
|
|
963
|
+
return;
|
|
964
|
+
}
|
|
965
|
+
l.send(o || null);
|
|
966
|
+
});
|
|
967
|
+
}, ot = {
|
|
968
|
+
http: es,
|
|
969
|
+
xhr: Ns
|
|
970
|
+
};
|
|
971
|
+
f.forEach(ot, (e, t) => {
|
|
972
|
+
if (e) {
|
|
973
|
+
try {
|
|
974
|
+
Object.defineProperty(e, "name", { value: t });
|
|
975
|
+
} catch {
|
|
976
|
+
}
|
|
977
|
+
Object.defineProperty(e, "adapterName", { value: t });
|
|
978
|
+
}
|
|
979
|
+
});
|
|
980
|
+
const Rs = {
|
|
981
|
+
getAdapter: (e) => {
|
|
982
|
+
e = f.isArray(e) ? e : [e];
|
|
983
|
+
const { length: t } = e;
|
|
984
|
+
let n, r;
|
|
985
|
+
for (let o = 0; o < t && (n = e[o], !(r = f.isString(n) ? ot[n.toLowerCase()] : n)); o++)
|
|
986
|
+
;
|
|
987
|
+
if (!r)
|
|
988
|
+
throw r === !1 ? new S(
|
|
989
|
+
`Adapter ${n} is not supported by the environment`,
|
|
990
|
+
"ERR_NOT_SUPPORT"
|
|
991
|
+
) : new Error(
|
|
992
|
+
f.hasOwnProp(ot, n) ? `Adapter '${n}' is not available in the build` : `Unknown adapter '${n}'`
|
|
993
|
+
);
|
|
994
|
+
if (!f.isFunction(r))
|
|
995
|
+
throw new TypeError("adapter is not a function");
|
|
996
|
+
return r;
|
|
997
|
+
},
|
|
998
|
+
adapters: ot
|
|
999
|
+
};
|
|
1000
|
+
function _t(e) {
|
|
1001
|
+
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
1002
|
+
throw new We(null, e);
|
|
1003
|
+
}
|
|
1004
|
+
function Tn(e) {
|
|
1005
|
+
return _t(e), e.headers = $.from(e.headers), e.data = Ft.call(
|
|
1006
|
+
e,
|
|
1007
|
+
e.transformRequest
|
|
1008
|
+
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Rs.getAdapter(e.adapter || pn.adapter)(e).then(function(r) {
|
|
1009
|
+
return _t(e), r.data = Ft.call(
|
|
1010
|
+
e,
|
|
1011
|
+
e.transformResponse,
|
|
1012
|
+
r
|
|
1013
|
+
), r.headers = $.from(r.headers), r;
|
|
1014
|
+
}, function(r) {
|
|
1015
|
+
return wr(r) || (_t(e), r && r.response && (r.response.data = Ft.call(
|
|
1016
|
+
e,
|
|
1017
|
+
e.transformResponse,
|
|
1018
|
+
r.response
|
|
1019
|
+
), r.response.headers = $.from(r.response.headers))), Promise.reject(r);
|
|
1020
|
+
});
|
|
1021
|
+
}
|
|
1022
|
+
const jn = (e) => e instanceof $ ? e.toJSON() : e;
|
|
1023
|
+
function be(e, t) {
|
|
1024
|
+
t = t || {};
|
|
1025
|
+
const n = {};
|
|
1026
|
+
function r(l, d, c) {
|
|
1027
|
+
return f.isPlainObject(l) && f.isPlainObject(d) ? f.merge.call({ caseless: c }, l, d) : f.isPlainObject(d) ? f.merge({}, d) : f.isArray(d) ? d.slice() : d;
|
|
1028
|
+
}
|
|
1029
|
+
function o(l, d, c) {
|
|
1030
|
+
if (f.isUndefined(d)) {
|
|
1031
|
+
if (!f.isUndefined(l))
|
|
1032
|
+
return r(void 0, l, c);
|
|
1033
|
+
} else
|
|
1034
|
+
return r(l, d, c);
|
|
1035
|
+
}
|
|
1036
|
+
function s(l, d) {
|
|
1037
|
+
if (!f.isUndefined(d))
|
|
1038
|
+
return r(void 0, d);
|
|
1039
|
+
}
|
|
1040
|
+
function i(l, d) {
|
|
1041
|
+
if (f.isUndefined(d)) {
|
|
1042
|
+
if (!f.isUndefined(l))
|
|
1043
|
+
return r(void 0, l);
|
|
1044
|
+
} else
|
|
1045
|
+
return r(void 0, d);
|
|
1046
|
+
}
|
|
1047
|
+
function a(l, d, c) {
|
|
1048
|
+
if (c in t)
|
|
1049
|
+
return r(l, d);
|
|
1050
|
+
if (c in e)
|
|
1051
|
+
return r(void 0, l);
|
|
1052
|
+
}
|
|
1053
|
+
const u = {
|
|
1054
|
+
url: s,
|
|
1055
|
+
method: s,
|
|
1056
|
+
data: s,
|
|
1057
|
+
baseURL: i,
|
|
1058
|
+
transformRequest: i,
|
|
1059
|
+
transformResponse: i,
|
|
1060
|
+
paramsSerializer: i,
|
|
1061
|
+
timeout: i,
|
|
1062
|
+
timeoutMessage: i,
|
|
1063
|
+
withCredentials: i,
|
|
1064
|
+
adapter: i,
|
|
1065
|
+
responseType: i,
|
|
1066
|
+
xsrfCookieName: i,
|
|
1067
|
+
xsrfHeaderName: i,
|
|
1068
|
+
onUploadProgress: i,
|
|
1069
|
+
onDownloadProgress: i,
|
|
1070
|
+
decompress: i,
|
|
1071
|
+
maxContentLength: i,
|
|
1072
|
+
maxBodyLength: i,
|
|
1073
|
+
beforeRedirect: i,
|
|
1074
|
+
transport: i,
|
|
1075
|
+
httpAgent: i,
|
|
1076
|
+
httpsAgent: i,
|
|
1077
|
+
cancelToken: i,
|
|
1078
|
+
socketPath: i,
|
|
1079
|
+
responseEncoding: i,
|
|
1080
|
+
validateStatus: a,
|
|
1081
|
+
headers: (l, d) => o(jn(l), jn(d), !0)
|
|
1082
|
+
};
|
|
1083
|
+
return f.forEach(Object.keys(Object.assign({}, e, t)), function(d) {
|
|
1084
|
+
const c = u[d] || o, p = c(e[d], t[d], d);
|
|
1085
|
+
f.isUndefined(p) && c !== a || (n[d] = p);
|
|
1086
|
+
}), n;
|
|
1087
|
+
}
|
|
1088
|
+
const br = "1.4.0", hn = {};
|
|
1089
|
+
["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
|
|
1090
|
+
hn[e] = function(r) {
|
|
1091
|
+
return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
|
|
1092
|
+
};
|
|
1093
|
+
});
|
|
1094
|
+
const Ln = {};
|
|
1095
|
+
hn.transitional = function(t, n, r) {
|
|
1096
|
+
function o(s, i) {
|
|
1097
|
+
return "[Axios v" + br + "] Transitional option '" + s + "'" + i + (r ? ". " + r : "");
|
|
1098
|
+
}
|
|
1099
|
+
return (s, i, a) => {
|
|
1100
|
+
if (t === !1)
|
|
1101
|
+
throw new S(
|
|
1102
|
+
o(i, " has been removed" + (n ? " in " + n : "")),
|
|
1103
|
+
S.ERR_DEPRECATED
|
|
1104
|
+
);
|
|
1105
|
+
return n && !Ln[i] && (Ln[i] = !0, console.warn(
|
|
1106
|
+
o(
|
|
1107
|
+
i,
|
|
1108
|
+
" has been deprecated since v" + n + " and will be removed in the near future"
|
|
1109
|
+
)
|
|
1110
|
+
)), t ? t(s, i, a) : !0;
|
|
1111
|
+
};
|
|
1112
|
+
};
|
|
1113
|
+
function Ts(e, t, n) {
|
|
1114
|
+
if (typeof e != "object")
|
|
1115
|
+
throw new S("options must be an object", S.ERR_BAD_OPTION_VALUE);
|
|
1116
|
+
const r = Object.keys(e);
|
|
1117
|
+
let o = r.length;
|
|
1118
|
+
for (; o-- > 0; ) {
|
|
1119
|
+
const s = r[o], i = t[s];
|
|
1120
|
+
if (i) {
|
|
1121
|
+
const a = e[s], u = a === void 0 || i(a, s, e);
|
|
1122
|
+
if (u !== !0)
|
|
1123
|
+
throw new S("option " + s + " must be " + u, S.ERR_BAD_OPTION_VALUE);
|
|
1124
|
+
continue;
|
|
1125
|
+
}
|
|
1126
|
+
if (n !== !0)
|
|
1127
|
+
throw new S("Unknown option " + s, S.ERR_BAD_OPTION);
|
|
1128
|
+
}
|
|
1129
|
+
}
|
|
1130
|
+
const Jt = {
|
|
1131
|
+
assertOptions: Ts,
|
|
1132
|
+
validators: hn
|
|
1133
|
+
}, te = Jt.validators;
|
|
1134
|
+
class at {
|
|
1135
|
+
constructor(t) {
|
|
1136
|
+
this.defaults = t, this.interceptors = {
|
|
1137
|
+
request: new Dn(),
|
|
1138
|
+
response: new Dn()
|
|
1139
|
+
};
|
|
1140
|
+
}
|
|
1141
|
+
/**
|
|
1142
|
+
* Dispatch a request
|
|
1143
|
+
*
|
|
1144
|
+
* @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
|
|
1145
|
+
* @param {?Object} config
|
|
1146
|
+
*
|
|
1147
|
+
* @returns {Promise} The Promise to be fulfilled
|
|
1148
|
+
*/
|
|
1149
|
+
request(t, n) {
|
|
1150
|
+
typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = be(this.defaults, n);
|
|
1151
|
+
const { transitional: r, paramsSerializer: o, headers: s } = n;
|
|
1152
|
+
r !== void 0 && Jt.assertOptions(r, {
|
|
1153
|
+
silentJSONParsing: te.transitional(te.boolean),
|
|
1154
|
+
forcedJSONParsing: te.transitional(te.boolean),
|
|
1155
|
+
clarifyTimeoutError: te.transitional(te.boolean)
|
|
1156
|
+
}, !1), o != null && (f.isFunction(o) ? n.paramsSerializer = {
|
|
1157
|
+
serialize: o
|
|
1158
|
+
} : Jt.assertOptions(o, {
|
|
1159
|
+
encode: te.function,
|
|
1160
|
+
serialize: te.function
|
|
1161
|
+
}, !0)), n.method = (n.method || this.defaults.method || "get").toLowerCase();
|
|
1162
|
+
let i;
|
|
1163
|
+
i = s && f.merge(
|
|
1164
|
+
s.common,
|
|
1165
|
+
s[n.method]
|
|
1166
|
+
), i && f.forEach(
|
|
1167
|
+
["delete", "get", "head", "post", "put", "patch", "common"],
|
|
1168
|
+
(m) => {
|
|
1169
|
+
delete s[m];
|
|
1170
|
+
}
|
|
1171
|
+
), n.headers = $.concat(i, s);
|
|
1172
|
+
const a = [];
|
|
1173
|
+
let u = !0;
|
|
1174
|
+
this.interceptors.request.forEach(function(h) {
|
|
1175
|
+
typeof h.runWhen == "function" && h.runWhen(n) === !1 || (u = u && h.synchronous, a.unshift(h.fulfilled, h.rejected));
|
|
1176
|
+
});
|
|
1177
|
+
const l = [];
|
|
1178
|
+
this.interceptors.response.forEach(function(h) {
|
|
1179
|
+
l.push(h.fulfilled, h.rejected);
|
|
1180
|
+
});
|
|
1181
|
+
let d, c = 0, p;
|
|
1182
|
+
if (!u) {
|
|
1183
|
+
const m = [Tn.bind(this), void 0];
|
|
1184
|
+
for (m.unshift.apply(m, a), m.push.apply(m, l), p = m.length, d = Promise.resolve(n); c < p; )
|
|
1185
|
+
d = d.then(m[c++], m[c++]);
|
|
1186
|
+
return d;
|
|
1187
|
+
}
|
|
1188
|
+
p = a.length;
|
|
1189
|
+
let g = n;
|
|
1190
|
+
for (c = 0; c < p; ) {
|
|
1191
|
+
const m = a[c++], h = a[c++];
|
|
1192
|
+
try {
|
|
1193
|
+
g = m(g);
|
|
1194
|
+
} catch (b) {
|
|
1195
|
+
h.call(this, b);
|
|
1196
|
+
break;
|
|
1197
|
+
}
|
|
1198
|
+
}
|
|
1199
|
+
try {
|
|
1200
|
+
d = Tn.call(this, g);
|
|
1201
|
+
} catch (m) {
|
|
1202
|
+
return Promise.reject(m);
|
|
1203
|
+
}
|
|
1204
|
+
for (c = 0, p = l.length; c < p; )
|
|
1205
|
+
d = d.then(l[c++], l[c++]);
|
|
1206
|
+
return d;
|
|
1207
|
+
}
|
|
1208
|
+
getUri(t) {
|
|
1209
|
+
t = be(this.defaults, t);
|
|
1210
|
+
const n = yr(t.baseURL, t.url);
|
|
1211
|
+
return mr(n, t.params, t.paramsSerializer);
|
|
1212
|
+
}
|
|
1213
|
+
}
|
|
1214
|
+
f.forEach(["delete", "get", "head", "options"], function(t) {
|
|
1215
|
+
at.prototype[t] = function(n, r) {
|
|
1216
|
+
return this.request(be(r || {}, {
|
|
1217
|
+
method: t,
|
|
1218
|
+
url: n,
|
|
1219
|
+
data: (r || {}).data
|
|
1220
|
+
}));
|
|
1221
|
+
};
|
|
1222
|
+
});
|
|
1223
|
+
f.forEach(["post", "put", "patch"], function(t) {
|
|
1224
|
+
function n(r) {
|
|
1225
|
+
return function(s, i, a) {
|
|
1226
|
+
return this.request(be(a || {}, {
|
|
1227
|
+
method: t,
|
|
1228
|
+
headers: r ? {
|
|
1229
|
+
"Content-Type": "multipart/form-data"
|
|
1230
|
+
} : {},
|
|
1231
|
+
url: s,
|
|
1232
|
+
data: i
|
|
1233
|
+
}));
|
|
1234
|
+
};
|
|
1235
|
+
}
|
|
1236
|
+
at.prototype[t] = n(), at.prototype[t + "Form"] = n(!0);
|
|
1237
|
+
});
|
|
1238
|
+
const st = at;
|
|
1239
|
+
class mn {
|
|
1240
|
+
constructor(t) {
|
|
1241
|
+
if (typeof t != "function")
|
|
1242
|
+
throw new TypeError("executor must be a function.");
|
|
1243
|
+
let n;
|
|
1244
|
+
this.promise = new Promise(function(s) {
|
|
1245
|
+
n = s;
|
|
1246
|
+
});
|
|
1247
|
+
const r = this;
|
|
1248
|
+
this.promise.then((o) => {
|
|
1249
|
+
if (!r._listeners)
|
|
1250
|
+
return;
|
|
1251
|
+
let s = r._listeners.length;
|
|
1252
|
+
for (; s-- > 0; )
|
|
1253
|
+
r._listeners[s](o);
|
|
1254
|
+
r._listeners = null;
|
|
1255
|
+
}), this.promise.then = (o) => {
|
|
1256
|
+
let s;
|
|
1257
|
+
const i = new Promise((a) => {
|
|
1258
|
+
r.subscribe(a), s = a;
|
|
1259
|
+
}).then(o);
|
|
1260
|
+
return i.cancel = function() {
|
|
1261
|
+
r.unsubscribe(s);
|
|
1262
|
+
}, i;
|
|
1263
|
+
}, t(function(s, i, a) {
|
|
1264
|
+
r.reason || (r.reason = new We(s, i, a), n(r.reason));
|
|
1265
|
+
});
|
|
1266
|
+
}
|
|
1267
|
+
/**
|
|
1268
|
+
* Throws a `CanceledError` if cancellation has been requested.
|
|
1269
|
+
*/
|
|
1270
|
+
throwIfRequested() {
|
|
1271
|
+
if (this.reason)
|
|
1272
|
+
throw this.reason;
|
|
1273
|
+
}
|
|
1274
|
+
/**
|
|
1275
|
+
* Subscribe to the cancel signal
|
|
1276
|
+
*/
|
|
1277
|
+
subscribe(t) {
|
|
1278
|
+
if (this.reason) {
|
|
1279
|
+
t(this.reason);
|
|
1280
|
+
return;
|
|
1281
|
+
}
|
|
1282
|
+
this._listeners ? this._listeners.push(t) : this._listeners = [t];
|
|
1283
|
+
}
|
|
1284
|
+
/**
|
|
1285
|
+
* Unsubscribe from the cancel signal
|
|
1286
|
+
*/
|
|
1287
|
+
unsubscribe(t) {
|
|
1288
|
+
if (!this._listeners)
|
|
1289
|
+
return;
|
|
1290
|
+
const n = this._listeners.indexOf(t);
|
|
1291
|
+
n !== -1 && this._listeners.splice(n, 1);
|
|
1292
|
+
}
|
|
1293
|
+
/**
|
|
1294
|
+
* Returns an object that contains a new `CancelToken` and a function that, when called,
|
|
1295
|
+
* cancels the `CancelToken`.
|
|
1296
|
+
*/
|
|
1297
|
+
static source() {
|
|
1298
|
+
let t;
|
|
1299
|
+
return {
|
|
1300
|
+
token: new mn(function(o) {
|
|
1301
|
+
t = o;
|
|
1302
|
+
}),
|
|
1303
|
+
cancel: t
|
|
1304
|
+
};
|
|
1305
|
+
}
|
|
1306
|
+
}
|
|
1307
|
+
const js = mn;
|
|
1308
|
+
function Ls(e) {
|
|
1309
|
+
return function(n) {
|
|
1310
|
+
return e.apply(null, n);
|
|
1311
|
+
};
|
|
1312
|
+
}
|
|
1313
|
+
function Is(e) {
|
|
1314
|
+
return f.isObject(e) && e.isAxiosError === !0;
|
|
1315
|
+
}
|
|
1316
|
+
const Wt = {
|
|
1317
|
+
Continue: 100,
|
|
1318
|
+
SwitchingProtocols: 101,
|
|
1319
|
+
Processing: 102,
|
|
1320
|
+
EarlyHints: 103,
|
|
1321
|
+
Ok: 200,
|
|
1322
|
+
Created: 201,
|
|
1323
|
+
Accepted: 202,
|
|
1324
|
+
NonAuthoritativeInformation: 203,
|
|
1325
|
+
NoContent: 204,
|
|
1326
|
+
ResetContent: 205,
|
|
1327
|
+
PartialContent: 206,
|
|
1328
|
+
MultiStatus: 207,
|
|
1329
|
+
AlreadyReported: 208,
|
|
1330
|
+
ImUsed: 226,
|
|
1331
|
+
MultipleChoices: 300,
|
|
1332
|
+
MovedPermanently: 301,
|
|
1333
|
+
Found: 302,
|
|
1334
|
+
SeeOther: 303,
|
|
1335
|
+
NotModified: 304,
|
|
1336
|
+
UseProxy: 305,
|
|
1337
|
+
Unused: 306,
|
|
1338
|
+
TemporaryRedirect: 307,
|
|
1339
|
+
PermanentRedirect: 308,
|
|
1340
|
+
BadRequest: 400,
|
|
1341
|
+
Unauthorized: 401,
|
|
1342
|
+
PaymentRequired: 402,
|
|
1343
|
+
Forbidden: 403,
|
|
1344
|
+
NotFound: 404,
|
|
1345
|
+
MethodNotAllowed: 405,
|
|
1346
|
+
NotAcceptable: 406,
|
|
1347
|
+
ProxyAuthenticationRequired: 407,
|
|
1348
|
+
RequestTimeout: 408,
|
|
1349
|
+
Conflict: 409,
|
|
1350
|
+
Gone: 410,
|
|
1351
|
+
LengthRequired: 411,
|
|
1352
|
+
PreconditionFailed: 412,
|
|
1353
|
+
PayloadTooLarge: 413,
|
|
1354
|
+
UriTooLong: 414,
|
|
1355
|
+
UnsupportedMediaType: 415,
|
|
1356
|
+
RangeNotSatisfiable: 416,
|
|
1357
|
+
ExpectationFailed: 417,
|
|
1358
|
+
ImATeapot: 418,
|
|
1359
|
+
MisdirectedRequest: 421,
|
|
1360
|
+
UnprocessableEntity: 422,
|
|
1361
|
+
Locked: 423,
|
|
1362
|
+
FailedDependency: 424,
|
|
1363
|
+
TooEarly: 425,
|
|
1364
|
+
UpgradeRequired: 426,
|
|
1365
|
+
PreconditionRequired: 428,
|
|
1366
|
+
TooManyRequests: 429,
|
|
1367
|
+
RequestHeaderFieldsTooLarge: 431,
|
|
1368
|
+
UnavailableForLegalReasons: 451,
|
|
1369
|
+
InternalServerError: 500,
|
|
1370
|
+
NotImplemented: 501,
|
|
1371
|
+
BadGateway: 502,
|
|
1372
|
+
ServiceUnavailable: 503,
|
|
1373
|
+
GatewayTimeout: 504,
|
|
1374
|
+
HttpVersionNotSupported: 505,
|
|
1375
|
+
VariantAlsoNegotiates: 506,
|
|
1376
|
+
InsufficientStorage: 507,
|
|
1377
|
+
LoopDetected: 508,
|
|
1378
|
+
NotExtended: 510,
|
|
1379
|
+
NetworkAuthenticationRequired: 511
|
|
1380
|
+
};
|
|
1381
|
+
Object.entries(Wt).forEach(([e, t]) => {
|
|
1382
|
+
Wt[t] = e;
|
|
1383
|
+
});
|
|
1384
|
+
const Fs = Wt;
|
|
1385
|
+
function Er(e) {
|
|
1386
|
+
const t = new st(e), n = rr(st.prototype.request, t);
|
|
1387
|
+
return f.extend(n, st.prototype, t, { allOwnKeys: !0 }), f.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(o) {
|
|
1388
|
+
return Er(be(e, o));
|
|
1389
|
+
}, n;
|
|
1390
|
+
}
|
|
1391
|
+
const F = Er(pn);
|
|
1392
|
+
F.Axios = st;
|
|
1393
|
+
F.CanceledError = We;
|
|
1394
|
+
F.CancelToken = js;
|
|
1395
|
+
F.isCancel = wr;
|
|
1396
|
+
F.VERSION = br;
|
|
1397
|
+
F.toFormData = vt;
|
|
1398
|
+
F.AxiosError = S;
|
|
1399
|
+
F.Cancel = F.CanceledError;
|
|
1400
|
+
F.all = function(t) {
|
|
1401
|
+
return Promise.all(t);
|
|
1402
|
+
};
|
|
1403
|
+
F.spread = Ls;
|
|
1404
|
+
F.isAxiosError = Is;
|
|
1405
|
+
F.mergeConfig = be;
|
|
1406
|
+
F.AxiosHeaders = $;
|
|
1407
|
+
F.formToJSON = (e) => vr(f.isHTMLForm(e) ? new FormData(e) : e);
|
|
1408
|
+
F.HttpStatusCode = Fs;
|
|
1409
|
+
F.default = F;
|
|
1410
|
+
const _s = F, Ar = _s.create({
|
|
1411
|
+
// 配置对象
|
|
1412
|
+
// 基础路径:发请求的时候路径当中会出现api
|
|
1413
|
+
// 请求超时的时间5s
|
|
1414
|
+
baseURL: "https://a2.imgkits.com",
|
|
1415
|
+
timeout: 1e4
|
|
1416
|
+
});
|
|
1417
|
+
Ar.interceptors.request.use((e) => (localStorage.getItem("token"), e), (e) => Promise.reject(e));
|
|
1418
|
+
Ar.interceptors.response.use((e) => e.data, (e) => Promise.reject(new Error(e)));
|
|
1419
|
+
const Mt = "@", Re = window.localStorage, In = {
|
|
1420
|
+
number: {
|
|
1421
|
+
save: (e) => e,
|
|
1422
|
+
parse: (e) => Number.parseFloat(e)
|
|
1423
|
+
},
|
|
1424
|
+
object: {
|
|
1425
|
+
save: (e) => JSON.stringify(e),
|
|
1426
|
+
parse: (e) => JSON.parse(e)
|
|
1427
|
+
},
|
|
1428
|
+
undefined: {
|
|
1429
|
+
save: (e) => e,
|
|
1430
|
+
parse: () => {
|
|
1431
|
+
}
|
|
1432
|
+
},
|
|
1433
|
+
default: {
|
|
1434
|
+
save: (e) => e,
|
|
1435
|
+
parse: (e) => e
|
|
1436
|
+
}
|
|
1437
|
+
};
|
|
1438
|
+
function Fn(e) {
|
|
1439
|
+
return In[e] || In.default;
|
|
1440
|
+
}
|
|
1441
|
+
const Ze = {
|
|
1442
|
+
get(e) {
|
|
1443
|
+
let t = Re.getItem(e);
|
|
1444
|
+
if (t) {
|
|
1445
|
+
let n = t.split("@"), r, o = Date.now();
|
|
1446
|
+
if (n.length > 2 && n[2] < o)
|
|
1447
|
+
return Re.removeItem(e), null;
|
|
1448
|
+
{
|
|
1449
|
+
let s = decodeURIComponent(n[1]);
|
|
1450
|
+
return r = Fn(n[0]).parse(s), r;
|
|
1451
|
+
}
|
|
1452
|
+
}
|
|
1453
|
+
return null;
|
|
1454
|
+
},
|
|
1455
|
+
put(e, t, n) {
|
|
1456
|
+
const r = typeof t, o = Fn(r);
|
|
1457
|
+
if (!n)
|
|
1458
|
+
t = r + Mt + encodeURIComponent(o.save(t));
|
|
1459
|
+
else {
|
|
1460
|
+
let s = n * 24 * 60 * 60 * 1e3 + (/* @__PURE__ */ new Date()).getTime();
|
|
1461
|
+
t = r + Mt + encodeURIComponent(o.save(t)) + Mt + s;
|
|
1462
|
+
}
|
|
1463
|
+
Re.setItem(e, t);
|
|
1464
|
+
},
|
|
1465
|
+
clear() {
|
|
1466
|
+
Re.clear();
|
|
1467
|
+
},
|
|
1468
|
+
remove(e) {
|
|
1469
|
+
Re.removeItem(e);
|
|
1470
|
+
}
|
|
1471
|
+
};
|
|
1472
|
+
function bt() {
|
|
1473
|
+
let e = "";
|
|
1474
|
+
return typeof app_config == "object" && app_config && Object.keys(app_config).length > 0 && (e = app_config.base_url || ""), e;
|
|
1475
|
+
}
|
|
1476
|
+
function Ms() {
|
|
1477
|
+
const e = Cr(), t = bt();
|
|
1478
|
+
return e.product ? e.product : t ? t.slice(1) : location.href.indexOf("convert") != -1 ? "convert" : location.href.indexOf("translate") != -1 ? "translate" : "recorder";
|
|
1479
|
+
}
|
|
1480
|
+
function xr(e, t) {
|
|
1481
|
+
window.__bl && __bl.error(new Error(JSON.stringify(e)), {
|
|
1482
|
+
filename: t,
|
|
1483
|
+
lineno: 384,
|
|
1484
|
+
colno: 18
|
|
1485
|
+
});
|
|
1486
|
+
}
|
|
1487
|
+
function Cr() {
|
|
1488
|
+
var e = {};
|
|
1489
|
+
if (location.search.length > 1)
|
|
1490
|
+
for (var t, n = 0, r = location.search.substr(1).split("&"); n < r.length; n++)
|
|
1491
|
+
t = r[n].split("="), e[decodeURIComponent(t[0])] = t.length > 1 ? decodeURIComponent(t[1]) : "";
|
|
1492
|
+
return e;
|
|
1493
|
+
}
|
|
1494
|
+
function xe({ url: e, data: t = null, method: n = "GET", headers: r = null, cacheKey: o, cacheTime: s }) {
|
|
1495
|
+
try {
|
|
1496
|
+
var i = new AbortController(), a = i.signal;
|
|
1497
|
+
} catch {
|
|
1498
|
+
}
|
|
1499
|
+
const u = Ms();
|
|
1500
|
+
let l = {
|
|
1501
|
+
method: n,
|
|
1502
|
+
headers: {
|
|
1503
|
+
"X-Access-Channel": u
|
|
1504
|
+
}
|
|
1505
|
+
};
|
|
1506
|
+
if (r && (l.headers = Object.assign(l.headers, r), r["Content-Type"] && r["Content-Type"].indexOf("application/x-www-form-urlencoded") != -1 && t)) {
|
|
1507
|
+
let c = "";
|
|
1508
|
+
Object.keys(t).forEach((p) => {
|
|
1509
|
+
(t[p] || t[p] == 0) && (c += `${p}=${t[p]}&`);
|
|
1510
|
+
}), t = c.slice(0, c.length - 1);
|
|
1511
|
+
}
|
|
1512
|
+
t && (typeof t == "string" ? l.body = t : l.body = JSON.stringify(t)), a && (l.signal = a);
|
|
1513
|
+
const d = () => new Promise((c, p) => {
|
|
1514
|
+
setTimeout(() => {
|
|
1515
|
+
c(new Response("timeout", { status: 504, statusText: "timeout" })), i && i.abort();
|
|
1516
|
+
}, 6e4);
|
|
1517
|
+
});
|
|
1518
|
+
return Promise.race([d(), fetch(e, l).then((c) => c.json())]).then((c) => (console.log(c), c.success == !0 || c.ok === 0 || c.code == 0 ? (o && (s ? Ze.put(o, c.data, s) : Ze.put(o, c.data)), (c.message || c.message == 0) && (window.g_message = c.message), Promise.resolve(c.data)) : c && c.image || c && c.GOOGLE_ACCESS_TOKEN ? (o && (s ? Ze.put(o, c, s) : Ze.put(o, c)), Promise.resolve(c)) : c.statusText == "timeout" ? Promise.reject("The system is busy, please try again later") : Promise.reject(c.message || c.msg && c || "failed, please check your network and try again"))).catch((c) => Promise.reject(c));
|
|
1519
|
+
}
|
|
1520
|
+
let Ce = bt();
|
|
1521
|
+
function _n() {
|
|
1522
|
+
const e = {
|
|
1523
|
+
"Content-Type": "application/x-www-form-urlencoded; charset=UTF-8"
|
|
1524
|
+
};
|
|
1525
|
+
return xe({
|
|
1526
|
+
url: Ce + "/api/user/status",
|
|
1527
|
+
method: "POST",
|
|
1528
|
+
headers: e
|
|
1529
|
+
});
|
|
1530
|
+
}
|
|
1531
|
+
const ks = (e) => xe({
|
|
1532
|
+
url: Ce + "/api/user/active-passport",
|
|
1533
|
+
data: {
|
|
1534
|
+
passport: e
|
|
1535
|
+
},
|
|
1536
|
+
method: "POST",
|
|
1537
|
+
headers: {
|
|
1538
|
+
"Content-Type": "application/json"
|
|
1539
|
+
}
|
|
1540
|
+
});
|
|
1541
|
+
function Bs(e) {
|
|
1542
|
+
return xe({
|
|
1543
|
+
url: Ce + "/api/user/facebooklogin",
|
|
1544
|
+
data: {
|
|
1545
|
+
token: e
|
|
1546
|
+
},
|
|
1547
|
+
method: "POST",
|
|
1548
|
+
headers: {
|
|
1549
|
+
"Content-Type": "application/x-www-form-urlencoded; charset=UTF-8"
|
|
1550
|
+
}
|
|
1551
|
+
});
|
|
1552
|
+
}
|
|
1553
|
+
function Sr(e) {
|
|
1554
|
+
return xe({
|
|
1555
|
+
url: Ce + "/api/user/google",
|
|
1556
|
+
data: {
|
|
1557
|
+
token: e
|
|
1558
|
+
},
|
|
1559
|
+
method: "POST",
|
|
1560
|
+
headers: {
|
|
1561
|
+
"Content-Type": "application/x-www-form-urlencoded; charset=UTF-8"
|
|
1562
|
+
}
|
|
1563
|
+
});
|
|
1564
|
+
}
|
|
1565
|
+
function Gs(e, t) {
|
|
1566
|
+
return xe({
|
|
1567
|
+
url: Ce + "/api/user/emaillogin?email=" + encodeURIComponent(e) + "&password=" + encodeURIComponent(t)
|
|
1568
|
+
// data: {
|
|
1569
|
+
// email,
|
|
1570
|
+
// password
|
|
1571
|
+
// },
|
|
1572
|
+
// method: "POST"
|
|
1573
|
+
});
|
|
1574
|
+
}
|
|
1575
|
+
function Us(e, t, n) {
|
|
1576
|
+
return xe({
|
|
1577
|
+
url: Ce + "/api/user/emailsignup?email=" + encodeURIComponent(e) + "&username=" + encodeURIComponent(t) + "&password=" + encodeURIComponent(n)
|
|
1578
|
+
// data: {
|
|
1579
|
+
// email,
|
|
1580
|
+
// username,
|
|
1581
|
+
// password
|
|
1582
|
+
// },
|
|
1583
|
+
// method: "POST"
|
|
1584
|
+
});
|
|
1585
|
+
}
|
|
1586
|
+
var zs = !1;
|
|
1587
|
+
function Xe(e, t, n) {
|
|
1588
|
+
return Array.isArray(e) ? (e.length = Math.max(e.length, t), e.splice(t, 1, n), n) : (e[t] = n, n);
|
|
1589
|
+
}
|
|
1590
|
+
function kt(e, t) {
|
|
1591
|
+
if (Array.isArray(e)) {
|
|
1592
|
+
e.splice(t, 1);
|
|
1593
|
+
return;
|
|
1594
|
+
}
|
|
1595
|
+
delete e[t];
|
|
1596
|
+
}
|
|
1597
|
+
var Mn;
|
|
1598
|
+
const gn = typeof window < "u";
|
|
1599
|
+
gn && ((Mn = window == null ? void 0 : window.navigator) != null && Mn.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
|
1600
|
+
process.env.NODE_ENV !== "production" && Object.freeze({});
|
|
1601
|
+
process.env.NODE_ENV !== "production" && Object.freeze([]);
|
|
1602
|
+
const Hs = Object.prototype.hasOwnProperty, kn = (e, t) => Hs.call(e, t), vn = (e) => typeof e == "string", Et = (e) => e !== null && typeof e == "object", Or = (e) => {
|
|
1603
|
+
const t = /* @__PURE__ */ Object.create(null);
|
|
1604
|
+
return (n) => t[n] || (t[n] = e(n));
|
|
1605
|
+
}, Qs = /-(\w)/g, Ys = Or((e) => e.replace(Qs, (t, n) => n ? n.toUpperCase() : "")), Vs = /\B([A-Z])/g, Js = Or(
|
|
1606
|
+
(e) => e.replace(Vs, "-$1").toLowerCase()
|
|
1607
|
+
);
|
|
1608
|
+
var Ws = typeof global == "object" && global && global.Object === Object && global;
|
|
1609
|
+
const Ks = Ws;
|
|
1610
|
+
var qs = typeof self == "object" && self && self.Object === Object && self, Zs = Ks || qs || Function("return this")();
|
|
1611
|
+
const wn = Zs;
|
|
1612
|
+
var Xs = wn.Symbol;
|
|
1613
|
+
const Ee = Xs;
|
|
1614
|
+
var Pr = Object.prototype, $s = Pr.hasOwnProperty, ei = Pr.toString, Te = Ee ? Ee.toStringTag : void 0;
|
|
1615
|
+
function ti(e) {
|
|
1616
|
+
var t = $s.call(e, Te), n = e[Te];
|
|
1617
|
+
try {
|
|
1618
|
+
e[Te] = void 0;
|
|
1619
|
+
var r = !0;
|
|
1620
|
+
} catch {
|
|
1621
|
+
}
|
|
1622
|
+
var o = ei.call(e);
|
|
1623
|
+
return r && (t ? e[Te] = n : delete e[Te]), o;
|
|
1624
|
+
}
|
|
1625
|
+
var ni = Object.prototype, ri = ni.toString;
|
|
1626
|
+
function oi(e) {
|
|
1627
|
+
return ri.call(e);
|
|
1628
|
+
}
|
|
1629
|
+
var si = "[object Null]", ii = "[object Undefined]", Bn = Ee ? Ee.toStringTag : void 0;
|
|
1630
|
+
function Dr(e) {
|
|
1631
|
+
return e == null ? e === void 0 ? ii : si : Bn && Bn in Object(e) ? ti(e) : oi(e);
|
|
1632
|
+
}
|
|
1633
|
+
function ai(e) {
|
|
1634
|
+
return e != null && typeof e == "object";
|
|
1635
|
+
}
|
|
1636
|
+
var li = "[object Symbol]";
|
|
1637
|
+
function yn(e) {
|
|
1638
|
+
return typeof e == "symbol" || ai(e) && Dr(e) == li;
|
|
1639
|
+
}
|
|
1640
|
+
function ci(e, t) {
|
|
1641
|
+
for (var n = -1, r = e == null ? 0 : e.length, o = Array(r); ++n < r; )
|
|
1642
|
+
o[n] = t(e[n], n, e);
|
|
1643
|
+
return o;
|
|
1644
|
+
}
|
|
1645
|
+
var ui = Array.isArray;
|
|
1646
|
+
const bn = ui;
|
|
1647
|
+
var di = 1 / 0, Gn = Ee ? Ee.prototype : void 0, Un = Gn ? Gn.toString : void 0;
|
|
1648
|
+
function Nr(e) {
|
|
1649
|
+
if (typeof e == "string")
|
|
1650
|
+
return e;
|
|
1651
|
+
if (bn(e))
|
|
1652
|
+
return ci(e, Nr) + "";
|
|
1653
|
+
if (yn(e))
|
|
1654
|
+
return Un ? Un.call(e) : "";
|
|
1655
|
+
var t = e + "";
|
|
1656
|
+
return t == "0" && 1 / e == -di ? "-0" : t;
|
|
1657
|
+
}
|
|
1658
|
+
function Rr(e) {
|
|
1659
|
+
var t = typeof e;
|
|
1660
|
+
return e != null && (t == "object" || t == "function");
|
|
1661
|
+
}
|
|
1662
|
+
var fi = "[object AsyncFunction]", pi = "[object Function]", hi = "[object GeneratorFunction]", mi = "[object Proxy]";
|
|
1663
|
+
function gi(e) {
|
|
1664
|
+
if (!Rr(e))
|
|
1665
|
+
return !1;
|
|
1666
|
+
var t = Dr(e);
|
|
1667
|
+
return t == pi || t == hi || t == fi || t == mi;
|
|
1668
|
+
}
|
|
1669
|
+
var vi = wn["__core-js_shared__"];
|
|
1670
|
+
const Bt = vi;
|
|
1671
|
+
var zn = function() {
|
|
1672
|
+
var e = /[^.]+$/.exec(Bt && Bt.keys && Bt.keys.IE_PROTO || "");
|
|
1673
|
+
return e ? "Symbol(src)_1." + e : "";
|
|
1674
|
+
}();
|
|
1675
|
+
function wi(e) {
|
|
1676
|
+
return !!zn && zn in e;
|
|
1677
|
+
}
|
|
1678
|
+
var yi = Function.prototype, bi = yi.toString;
|
|
1679
|
+
function Ei(e) {
|
|
1680
|
+
if (e != null) {
|
|
1681
|
+
try {
|
|
1682
|
+
return bi.call(e);
|
|
1683
|
+
} catch {
|
|
1684
|
+
}
|
|
1685
|
+
try {
|
|
1686
|
+
return e + "";
|
|
1687
|
+
} catch {
|
|
1688
|
+
}
|
|
1689
|
+
}
|
|
1690
|
+
return "";
|
|
1691
|
+
}
|
|
1692
|
+
var Ai = /[\\^$.*+?()[\]{}|]/g, xi = /^\[object .+?Constructor\]$/, Ci = Function.prototype, Si = Object.prototype, Oi = Ci.toString, Pi = Si.hasOwnProperty, Di = RegExp(
|
|
1693
|
+
"^" + Oi.call(Pi).replace(Ai, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
1694
|
+
);
|
|
1695
|
+
function Ni(e) {
|
|
1696
|
+
if (!Rr(e) || wi(e))
|
|
1697
|
+
return !1;
|
|
1698
|
+
var t = gi(e) ? Di : xi;
|
|
1699
|
+
return t.test(Ei(e));
|
|
1700
|
+
}
|
|
1701
|
+
function Ri(e, t) {
|
|
1702
|
+
return e == null ? void 0 : e[t];
|
|
1703
|
+
}
|
|
1704
|
+
function Tr(e, t) {
|
|
1705
|
+
var n = Ri(e, t);
|
|
1706
|
+
return Ni(n) ? n : void 0;
|
|
1707
|
+
}
|
|
1708
|
+
function Ti(e, t) {
|
|
1709
|
+
return e === t || e !== e && t !== t;
|
|
1710
|
+
}
|
|
1711
|
+
var ji = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Li = /^\w*$/;
|
|
1712
|
+
function Ii(e, t) {
|
|
1713
|
+
if (bn(e))
|
|
1714
|
+
return !1;
|
|
1715
|
+
var n = typeof e;
|
|
1716
|
+
return n == "number" || n == "symbol" || n == "boolean" || e == null || yn(e) ? !0 : Li.test(e) || !ji.test(e) || t != null && e in Object(t);
|
|
1717
|
+
}
|
|
1718
|
+
var Fi = Tr(Object, "create");
|
|
1719
|
+
const Ye = Fi;
|
|
1720
|
+
function _i() {
|
|
1721
|
+
this.__data__ = Ye ? Ye(null) : {}, this.size = 0;
|
|
1722
|
+
}
|
|
1723
|
+
function Mi(e) {
|
|
1724
|
+
var t = this.has(e) && delete this.__data__[e];
|
|
1725
|
+
return this.size -= t ? 1 : 0, t;
|
|
1726
|
+
}
|
|
1727
|
+
var ki = "__lodash_hash_undefined__", Bi = Object.prototype, Gi = Bi.hasOwnProperty;
|
|
1728
|
+
function Ui(e) {
|
|
1729
|
+
var t = this.__data__;
|
|
1730
|
+
if (Ye) {
|
|
1731
|
+
var n = t[e];
|
|
1732
|
+
return n === ki ? void 0 : n;
|
|
1733
|
+
}
|
|
1734
|
+
return Gi.call(t, e) ? t[e] : void 0;
|
|
1735
|
+
}
|
|
1736
|
+
var zi = Object.prototype, Hi = zi.hasOwnProperty;
|
|
1737
|
+
function Qi(e) {
|
|
1738
|
+
var t = this.__data__;
|
|
1739
|
+
return Ye ? t[e] !== void 0 : Hi.call(t, e);
|
|
1740
|
+
}
|
|
1741
|
+
var Yi = "__lodash_hash_undefined__";
|
|
1742
|
+
function Vi(e, t) {
|
|
1743
|
+
var n = this.__data__;
|
|
1744
|
+
return this.size += this.has(e) ? 0 : 1, n[e] = Ye && t === void 0 ? Yi : t, this;
|
|
1745
|
+
}
|
|
1746
|
+
function ce(e) {
|
|
1747
|
+
var t = -1, n = e == null ? 0 : e.length;
|
|
1748
|
+
for (this.clear(); ++t < n; ) {
|
|
1749
|
+
var r = e[t];
|
|
1750
|
+
this.set(r[0], r[1]);
|
|
1751
|
+
}
|
|
1752
|
+
}
|
|
1753
|
+
ce.prototype.clear = _i;
|
|
1754
|
+
ce.prototype.delete = Mi;
|
|
1755
|
+
ce.prototype.get = Ui;
|
|
1756
|
+
ce.prototype.has = Qi;
|
|
1757
|
+
ce.prototype.set = Vi;
|
|
1758
|
+
function Ji() {
|
|
1759
|
+
this.__data__ = [], this.size = 0;
|
|
1760
|
+
}
|
|
1761
|
+
function At(e, t) {
|
|
1762
|
+
for (var n = e.length; n--; )
|
|
1763
|
+
if (Ti(e[n][0], t))
|
|
1764
|
+
return n;
|
|
1765
|
+
return -1;
|
|
1766
|
+
}
|
|
1767
|
+
var Wi = Array.prototype, Ki = Wi.splice;
|
|
1768
|
+
function qi(e) {
|
|
1769
|
+
var t = this.__data__, n = At(t, e);
|
|
1770
|
+
if (n < 0)
|
|
1771
|
+
return !1;
|
|
1772
|
+
var r = t.length - 1;
|
|
1773
|
+
return n == r ? t.pop() : Ki.call(t, n, 1), --this.size, !0;
|
|
1774
|
+
}
|
|
1775
|
+
function Zi(e) {
|
|
1776
|
+
var t = this.__data__, n = At(t, e);
|
|
1777
|
+
return n < 0 ? void 0 : t[n][1];
|
|
1778
|
+
}
|
|
1779
|
+
function Xi(e) {
|
|
1780
|
+
return At(this.__data__, e) > -1;
|
|
1781
|
+
}
|
|
1782
|
+
function $i(e, t) {
|
|
1783
|
+
var n = this.__data__, r = At(n, e);
|
|
1784
|
+
return r < 0 ? (++this.size, n.push([e, t])) : n[r][1] = t, this;
|
|
1785
|
+
}
|
|
1786
|
+
function Se(e) {
|
|
1787
|
+
var t = -1, n = e == null ? 0 : e.length;
|
|
1788
|
+
for (this.clear(); ++t < n; ) {
|
|
1789
|
+
var r = e[t];
|
|
1790
|
+
this.set(r[0], r[1]);
|
|
1791
|
+
}
|
|
1792
|
+
}
|
|
1793
|
+
Se.prototype.clear = Ji;
|
|
1794
|
+
Se.prototype.delete = qi;
|
|
1795
|
+
Se.prototype.get = Zi;
|
|
1796
|
+
Se.prototype.has = Xi;
|
|
1797
|
+
Se.prototype.set = $i;
|
|
1798
|
+
var ea = Tr(wn, "Map");
|
|
1799
|
+
const ta = ea;
|
|
1800
|
+
function na() {
|
|
1801
|
+
this.size = 0, this.__data__ = {
|
|
1802
|
+
hash: new ce(),
|
|
1803
|
+
map: new (ta || Se)(),
|
|
1804
|
+
string: new ce()
|
|
1805
|
+
};
|
|
1806
|
+
}
|
|
1807
|
+
function ra(e) {
|
|
1808
|
+
var t = typeof e;
|
|
1809
|
+
return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
|
|
1810
|
+
}
|
|
1811
|
+
function xt(e, t) {
|
|
1812
|
+
var n = e.__data__;
|
|
1813
|
+
return ra(t) ? n[typeof t == "string" ? "string" : "hash"] : n.map;
|
|
1814
|
+
}
|
|
1815
|
+
function oa(e) {
|
|
1816
|
+
var t = xt(this, e).delete(e);
|
|
1817
|
+
return this.size -= t ? 1 : 0, t;
|
|
1818
|
+
}
|
|
1819
|
+
function sa(e) {
|
|
1820
|
+
return xt(this, e).get(e);
|
|
1821
|
+
}
|
|
1822
|
+
function ia(e) {
|
|
1823
|
+
return xt(this, e).has(e);
|
|
1824
|
+
}
|
|
1825
|
+
function aa(e, t) {
|
|
1826
|
+
var n = xt(this, e), r = n.size;
|
|
1827
|
+
return n.set(e, t), this.size += n.size == r ? 0 : 1, this;
|
|
1828
|
+
}
|
|
1829
|
+
function he(e) {
|
|
1830
|
+
var t = -1, n = e == null ? 0 : e.length;
|
|
1831
|
+
for (this.clear(); ++t < n; ) {
|
|
1832
|
+
var r = e[t];
|
|
1833
|
+
this.set(r[0], r[1]);
|
|
1834
|
+
}
|
|
1835
|
+
}
|
|
1836
|
+
he.prototype.clear = na;
|
|
1837
|
+
he.prototype.delete = oa;
|
|
1838
|
+
he.prototype.get = sa;
|
|
1839
|
+
he.prototype.has = ia;
|
|
1840
|
+
he.prototype.set = aa;
|
|
1841
|
+
var la = "Expected a function";
|
|
1842
|
+
function En(e, t) {
|
|
1843
|
+
if (typeof e != "function" || t != null && typeof t != "function")
|
|
1844
|
+
throw new TypeError(la);
|
|
1845
|
+
var n = function() {
|
|
1846
|
+
var r = arguments, o = t ? t.apply(this, r) : r[0], s = n.cache;
|
|
1847
|
+
if (s.has(o))
|
|
1848
|
+
return s.get(o);
|
|
1849
|
+
var i = e.apply(this, r);
|
|
1850
|
+
return n.cache = s.set(o, i) || s, i;
|
|
1851
|
+
};
|
|
1852
|
+
return n.cache = new (En.Cache || he)(), n;
|
|
1853
|
+
}
|
|
1854
|
+
En.Cache = he;
|
|
1855
|
+
var ca = 500;
|
|
1856
|
+
function ua(e) {
|
|
1857
|
+
var t = En(e, function(r) {
|
|
1858
|
+
return n.size === ca && n.clear(), r;
|
|
1859
|
+
}), n = t.cache;
|
|
1860
|
+
return t;
|
|
1861
|
+
}
|
|
1862
|
+
var da = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, fa = /\\(\\)?/g, pa = ua(function(e) {
|
|
1863
|
+
var t = [];
|
|
1864
|
+
return e.charCodeAt(0) === 46 && t.push(""), e.replace(da, function(n, r, o, s) {
|
|
1865
|
+
t.push(o ? s.replace(fa, "$1") : r || n);
|
|
1866
|
+
}), t;
|
|
1867
|
+
});
|
|
1868
|
+
const ha = pa;
|
|
1869
|
+
function ma(e) {
|
|
1870
|
+
return e == null ? "" : Nr(e);
|
|
1871
|
+
}
|
|
1872
|
+
function ga(e, t) {
|
|
1873
|
+
return bn(e) ? e : Ii(e, t) ? [e] : ha(ma(e));
|
|
1874
|
+
}
|
|
1875
|
+
var va = 1 / 0;
|
|
1876
|
+
function wa(e) {
|
|
1877
|
+
if (typeof e == "string" || yn(e))
|
|
1878
|
+
return e;
|
|
1879
|
+
var t = e + "";
|
|
1880
|
+
return t == "0" && 1 / e == -va ? "-0" : t;
|
|
1881
|
+
}
|
|
1882
|
+
function ya(e, t) {
|
|
1883
|
+
t = ga(t, e);
|
|
1884
|
+
for (var n = 0, r = t.length; e != null && n < r; )
|
|
1885
|
+
e = e[wa(t[n++])];
|
|
1886
|
+
return n && n == r ? e : void 0;
|
|
1887
|
+
}
|
|
1888
|
+
function ba(e, t, n) {
|
|
1889
|
+
var r = e == null ? void 0 : ya(e, t);
|
|
1890
|
+
return r === void 0 ? n : r;
|
|
1891
|
+
}
|
|
1892
|
+
const Ea = (e) => typeof e == "number", Hn = (e) => Object.keys(e);
|
|
1893
|
+
class Aa extends Error {
|
|
1894
|
+
constructor(t) {
|
|
1895
|
+
super(t), this.name = "ElementPlusError";
|
|
1896
|
+
}
|
|
1897
|
+
}
|
|
1898
|
+
function xa(e, t) {
|
|
1899
|
+
if (process.env.NODE_ENV !== "production") {
|
|
1900
|
+
const n = vn(e) ? new Aa(`[${e}] ${t}`) : e;
|
|
1901
|
+
console.warn(n);
|
|
1902
|
+
}
|
|
1903
|
+
}
|
|
1904
|
+
const jr = (e = "") => e.split(" ").filter((t) => !!t.trim()), Qn = (e, t) => {
|
|
1905
|
+
!e || !t.trim() || e.classList.add(...jr(t));
|
|
1906
|
+
}, lt = (e, t) => {
|
|
1907
|
+
!e || !t.trim() || e.classList.remove(...jr(t));
|
|
1908
|
+
}, je = (e, t) => {
|
|
1909
|
+
var n;
|
|
1910
|
+
if (!gn || !e || !t)
|
|
1911
|
+
return "";
|
|
1912
|
+
let r = Ys(t);
|
|
1913
|
+
r === "float" && (r = "cssFloat");
|
|
1914
|
+
try {
|
|
1915
|
+
const o = e.style[r];
|
|
1916
|
+
if (o)
|
|
1917
|
+
return o;
|
|
1918
|
+
const s = (n = document.defaultView) == null ? void 0 : n.getComputedStyle(e, "");
|
|
1919
|
+
return s ? s[r] : "";
|
|
1920
|
+
} catch {
|
|
1921
|
+
return e.style[r];
|
|
1922
|
+
}
|
|
1923
|
+
}, Lr = "__epPropKey", Ca = (e) => Et(e) && !!e[Lr], Sa = (e, t) => {
|
|
1924
|
+
if (!Et(e) || Ca(e))
|
|
1925
|
+
return e;
|
|
1926
|
+
const { values: n, required: r, default: o, type: s, validator: i } = e, u = {
|
|
1927
|
+
type: s,
|
|
1928
|
+
required: !!r,
|
|
1929
|
+
validator: n || i ? (l) => {
|
|
1930
|
+
let d = !1, c = [];
|
|
1931
|
+
if (n && (c = Array.from(n), kn(e, "default") && c.push(o), d || (d = c.includes(l))), i && (d || (d = i(l))), !d && c.length > 0) {
|
|
1932
|
+
const p = [...new Set(c)].map((g) => JSON.stringify(g)).join(", ");
|
|
1933
|
+
io(`Invalid prop: validation failed${t ? ` for prop "${t}"` : ""}. Expected one of [${p}], got value ${JSON.stringify(l)}.`);
|
|
1934
|
+
}
|
|
1935
|
+
return d;
|
|
1936
|
+
} : void 0,
|
|
1937
|
+
[Lr]: !0
|
|
1938
|
+
};
|
|
1939
|
+
return kn(e, "default") && (u.default = o), u;
|
|
1940
|
+
}, Oa = ["", "default", "small", "large"];
|
|
1941
|
+
var Pa = {
|
|
1942
|
+
name: "en",
|
|
1943
|
+
el: {
|
|
1944
|
+
colorpicker: {
|
|
1945
|
+
confirm: "OK",
|
|
1946
|
+
clear: "Clear",
|
|
1947
|
+
defaultLabel: "color picker",
|
|
1948
|
+
description: "current color is {color}. press enter to select a new color."
|
|
1949
|
+
},
|
|
1950
|
+
datepicker: {
|
|
1951
|
+
now: "Now",
|
|
1952
|
+
today: "Today",
|
|
1953
|
+
cancel: "Cancel",
|
|
1954
|
+
clear: "Clear",
|
|
1955
|
+
confirm: "OK",
|
|
1956
|
+
dateTablePrompt: "Use the arrow keys and enter to select the day of the month",
|
|
1957
|
+
monthTablePrompt: "Use the arrow keys and enter to select the month",
|
|
1958
|
+
yearTablePrompt: "Use the arrow keys and enter to select the year",
|
|
1959
|
+
selectedDate: "Selected date",
|
|
1960
|
+
selectDate: "Select date",
|
|
1961
|
+
selectTime: "Select time",
|
|
1962
|
+
startDate: "Start Date",
|
|
1963
|
+
startTime: "Start Time",
|
|
1964
|
+
endDate: "End Date",
|
|
1965
|
+
endTime: "End Time",
|
|
1966
|
+
prevYear: "Previous Year",
|
|
1967
|
+
nextYear: "Next Year",
|
|
1968
|
+
prevMonth: "Previous Month",
|
|
1969
|
+
nextMonth: "Next Month",
|
|
1970
|
+
year: "",
|
|
1971
|
+
month1: "January",
|
|
1972
|
+
month2: "February",
|
|
1973
|
+
month3: "March",
|
|
1974
|
+
month4: "April",
|
|
1975
|
+
month5: "May",
|
|
1976
|
+
month6: "June",
|
|
1977
|
+
month7: "July",
|
|
1978
|
+
month8: "August",
|
|
1979
|
+
month9: "September",
|
|
1980
|
+
month10: "October",
|
|
1981
|
+
month11: "November",
|
|
1982
|
+
month12: "December",
|
|
1983
|
+
week: "week",
|
|
1984
|
+
weeks: {
|
|
1985
|
+
sun: "Sun",
|
|
1986
|
+
mon: "Mon",
|
|
1987
|
+
tue: "Tue",
|
|
1988
|
+
wed: "Wed",
|
|
1989
|
+
thu: "Thu",
|
|
1990
|
+
fri: "Fri",
|
|
1991
|
+
sat: "Sat"
|
|
1992
|
+
},
|
|
1993
|
+
weeksFull: {
|
|
1994
|
+
sun: "Sunday",
|
|
1995
|
+
mon: "Monday",
|
|
1996
|
+
tue: "Tuesday",
|
|
1997
|
+
wed: "Wednesday",
|
|
1998
|
+
thu: "Thursday",
|
|
1999
|
+
fri: "Friday",
|
|
2000
|
+
sat: "Saturday"
|
|
2001
|
+
},
|
|
2002
|
+
months: {
|
|
2003
|
+
jan: "Jan",
|
|
2004
|
+
feb: "Feb",
|
|
2005
|
+
mar: "Mar",
|
|
2006
|
+
apr: "Apr",
|
|
2007
|
+
may: "May",
|
|
2008
|
+
jun: "Jun",
|
|
2009
|
+
jul: "Jul",
|
|
2010
|
+
aug: "Aug",
|
|
2011
|
+
sep: "Sep",
|
|
2012
|
+
oct: "Oct",
|
|
2013
|
+
nov: "Nov",
|
|
2014
|
+
dec: "Dec"
|
|
2015
|
+
}
|
|
2016
|
+
},
|
|
2017
|
+
inputNumber: {
|
|
2018
|
+
decrease: "decrease number",
|
|
2019
|
+
increase: "increase number"
|
|
2020
|
+
},
|
|
2021
|
+
select: {
|
|
2022
|
+
loading: "Loading",
|
|
2023
|
+
noMatch: "No matching data",
|
|
2024
|
+
noData: "No data",
|
|
2025
|
+
placeholder: "Select"
|
|
2026
|
+
},
|
|
2027
|
+
dropdown: {
|
|
2028
|
+
toggleDropdown: "Toggle Dropdown"
|
|
2029
|
+
},
|
|
2030
|
+
cascader: {
|
|
2031
|
+
noMatch: "No matching data",
|
|
2032
|
+
loading: "Loading",
|
|
2033
|
+
placeholder: "Select",
|
|
2034
|
+
noData: "No data"
|
|
2035
|
+
},
|
|
2036
|
+
pagination: {
|
|
2037
|
+
goto: "Go to",
|
|
2038
|
+
pagesize: "/page",
|
|
2039
|
+
total: "Total {total}",
|
|
2040
|
+
pageClassifier: "",
|
|
2041
|
+
page: "Page",
|
|
2042
|
+
prev: "Go to previous page",
|
|
2043
|
+
next: "Go to next page",
|
|
2044
|
+
currentPage: "page {pager}",
|
|
2045
|
+
prevPages: "Previous {pager} pages",
|
|
2046
|
+
nextPages: "Next {pager} pages",
|
|
2047
|
+
deprecationWarning: "Deprecated usages detected, please refer to the el-pagination documentation for more details"
|
|
2048
|
+
},
|
|
2049
|
+
dialog: {
|
|
2050
|
+
close: "Close this dialog"
|
|
2051
|
+
},
|
|
2052
|
+
drawer: {
|
|
2053
|
+
close: "Close this dialog"
|
|
2054
|
+
},
|
|
2055
|
+
messagebox: {
|
|
2056
|
+
title: "Message",
|
|
2057
|
+
confirm: "OK",
|
|
2058
|
+
cancel: "Cancel",
|
|
2059
|
+
error: "Illegal input",
|
|
2060
|
+
close: "Close this dialog"
|
|
2061
|
+
},
|
|
2062
|
+
upload: {
|
|
2063
|
+
deleteTip: "press delete to remove",
|
|
2064
|
+
delete: "Delete",
|
|
2065
|
+
preview: "Preview",
|
|
2066
|
+
continue: "Continue"
|
|
2067
|
+
},
|
|
2068
|
+
slider: {
|
|
2069
|
+
defaultLabel: "slider between {min} and {max}",
|
|
2070
|
+
defaultRangeStartLabel: "pick start value",
|
|
2071
|
+
defaultRangeEndLabel: "pick end value"
|
|
2072
|
+
},
|
|
2073
|
+
table: {
|
|
2074
|
+
emptyText: "No Data",
|
|
2075
|
+
confirmFilter: "Confirm",
|
|
2076
|
+
resetFilter: "Reset",
|
|
2077
|
+
clearFilter: "All",
|
|
2078
|
+
sumText: "Sum"
|
|
2079
|
+
},
|
|
2080
|
+
tree: {
|
|
2081
|
+
emptyText: "No Data"
|
|
2082
|
+
},
|
|
2083
|
+
transfer: {
|
|
2084
|
+
noMatch: "No matching data",
|
|
2085
|
+
noData: "No data",
|
|
2086
|
+
titles: ["List 1", "List 2"],
|
|
2087
|
+
filterPlaceholder: "Enter keyword",
|
|
2088
|
+
noCheckedFormat: "{total} items",
|
|
2089
|
+
hasCheckedFormat: "{checked}/{total} checked"
|
|
2090
|
+
},
|
|
2091
|
+
image: {
|
|
2092
|
+
error: "FAILED"
|
|
2093
|
+
},
|
|
2094
|
+
pageHeader: {
|
|
2095
|
+
title: "Back"
|
|
2096
|
+
},
|
|
2097
|
+
popconfirm: {
|
|
2098
|
+
confirmButtonText: "Yes",
|
|
2099
|
+
cancelButtonText: "No"
|
|
2100
|
+
}
|
|
2101
|
+
}
|
|
2102
|
+
};
|
|
2103
|
+
const Da = (e) => (t, n) => Na(t, n, z(e)), Na = (e, t, n) => ba(n, e, e).replace(/\{(\w+)\}/g, (r, o) => {
|
|
2104
|
+
var s;
|
|
2105
|
+
return `${(s = t == null ? void 0 : t[o]) != null ? s : `{${o}}`}`;
|
|
2106
|
+
}), Ra = (e) => {
|
|
2107
|
+
const t = E(() => z(e).name), n = le(e) ? e : C(e);
|
|
2108
|
+
return {
|
|
2109
|
+
lang: t,
|
|
2110
|
+
locale: n,
|
|
2111
|
+
t: Da(e)
|
|
2112
|
+
};
|
|
2113
|
+
}, Ir = Symbol("localeContextKey"), Ta = (e) => {
|
|
2114
|
+
const t = e || k(Ir, C());
|
|
2115
|
+
return Ra(E(() => t.value || Pa));
|
|
2116
|
+
}, Kt = "el", ja = "is-", oe = (e, t, n, r, o) => {
|
|
2117
|
+
let s = `${e}-${t}`;
|
|
2118
|
+
return n && (s += `-${n}`), r && (s += `__${r}`), o && (s += `--${o}`), s;
|
|
2119
|
+
}, Fr = Symbol("namespaceContextKey"), La = (e) => {
|
|
2120
|
+
const t = e || k(Fr, C(Kt));
|
|
2121
|
+
return E(() => z(t) || Kt);
|
|
2122
|
+
}, Ia = (e, t) => {
|
|
2123
|
+
const n = La(t);
|
|
2124
|
+
return {
|
|
2125
|
+
namespace: n,
|
|
2126
|
+
b: (h = "") => oe(n.value, e, h, "", ""),
|
|
2127
|
+
e: (h) => h ? oe(n.value, e, "", h, "") : "",
|
|
2128
|
+
m: (h) => h ? oe(n.value, e, "", "", h) : "",
|
|
2129
|
+
be: (h, b) => h && b ? oe(n.value, e, h, b, "") : "",
|
|
2130
|
+
em: (h, b) => h && b ? oe(n.value, e, "", h, b) : "",
|
|
2131
|
+
bm: (h, b) => h && b ? oe(n.value, e, h, "", b) : "",
|
|
2132
|
+
bem: (h, b, x) => h && b && x ? oe(n.value, e, h, b, x) : "",
|
|
2133
|
+
is: (h, ...b) => {
|
|
2134
|
+
const x = b.length >= 1 ? b[0] : !0;
|
|
2135
|
+
return h && x ? `${ja}${h}` : "";
|
|
2136
|
+
},
|
|
2137
|
+
cssVar: (h) => {
|
|
2138
|
+
const b = {};
|
|
2139
|
+
for (const x in h)
|
|
2140
|
+
h[x] && (b[`--${n.value}-${x}`] = h[x]);
|
|
2141
|
+
return b;
|
|
2142
|
+
},
|
|
2143
|
+
cssVarName: (h) => `--${n.value}-${h}`,
|
|
2144
|
+
cssVarBlock: (h) => {
|
|
2145
|
+
const b = {};
|
|
2146
|
+
for (const x in h)
|
|
2147
|
+
h[x] && (b[`--${n.value}-${e}-${x}`] = h[x]);
|
|
2148
|
+
return b;
|
|
2149
|
+
},
|
|
2150
|
+
cssVarBlockName: (h) => `--${n.value}-${e}-${h}`
|
|
2151
|
+
};
|
|
2152
|
+
}, Yn = C(0), _r = 2e3, Mr = Symbol("zIndexContextKey"), Fa = (e) => {
|
|
2153
|
+
const t = e || k(Mr, void 0), n = E(() => {
|
|
2154
|
+
const s = z(t);
|
|
2155
|
+
return Ea(s) ? s : _r;
|
|
2156
|
+
}), r = E(() => n.value + Yn.value);
|
|
2157
|
+
return {
|
|
2158
|
+
initialZIndex: n,
|
|
2159
|
+
currentZIndex: r,
|
|
2160
|
+
nextZIndex: () => (Yn.value++, r.value)
|
|
2161
|
+
};
|
|
2162
|
+
};
|
|
2163
|
+
Sa({
|
|
2164
|
+
type: String,
|
|
2165
|
+
values: Oa,
|
|
2166
|
+
required: !1
|
|
2167
|
+
});
|
|
2168
|
+
const _a = Symbol("size"), kr = Symbol(), ct = C();
|
|
2169
|
+
function Br(e, t = void 0) {
|
|
2170
|
+
const n = ln() ? k(kr, ct) : ct;
|
|
2171
|
+
return e ? E(() => {
|
|
2172
|
+
var r, o;
|
|
2173
|
+
return (o = (r = n.value) == null ? void 0 : r[e]) != null ? o : t;
|
|
2174
|
+
}) : n;
|
|
2175
|
+
}
|
|
2176
|
+
function Ma(e, t) {
|
|
2177
|
+
const n = Br(), r = Ia(e, E(() => {
|
|
2178
|
+
var a;
|
|
2179
|
+
return ((a = n.value) == null ? void 0 : a.namespace) || Kt;
|
|
2180
|
+
})), o = Ta(E(() => {
|
|
2181
|
+
var a;
|
|
2182
|
+
return (a = n.value) == null ? void 0 : a.locale;
|
|
2183
|
+
})), s = Fa(E(() => {
|
|
2184
|
+
var a;
|
|
2185
|
+
return ((a = n.value) == null ? void 0 : a.zIndex) || _r;
|
|
2186
|
+
})), i = E(() => {
|
|
2187
|
+
var a;
|
|
2188
|
+
return z(t) || ((a = n.value) == null ? void 0 : a.size) || "";
|
|
2189
|
+
});
|
|
2190
|
+
return ka(E(() => z(n) || {})), {
|
|
2191
|
+
ns: r,
|
|
2192
|
+
locale: o,
|
|
2193
|
+
zIndex: s,
|
|
2194
|
+
size: i
|
|
2195
|
+
};
|
|
2196
|
+
}
|
|
2197
|
+
const ka = (e, t, n = !1) => {
|
|
2198
|
+
var r;
|
|
2199
|
+
const o = !!ln(), s = o ? Br() : void 0, i = (r = t == null ? void 0 : t.provide) != null ? r : o ? fe : void 0;
|
|
2200
|
+
if (!i) {
|
|
2201
|
+
xa("provideGlobalConfig", "provideGlobalConfig() can only be used inside setup().");
|
|
2202
|
+
return;
|
|
2203
|
+
}
|
|
2204
|
+
const a = E(() => {
|
|
2205
|
+
const u = z(e);
|
|
2206
|
+
return s != null && s.value ? Ba(s.value, u) : u;
|
|
2207
|
+
});
|
|
2208
|
+
return i(kr, a), i(Ir, E(() => a.value.locale)), i(Fr, E(() => a.value.namespace)), i(Mr, E(() => a.value.zIndex)), i(_a, {
|
|
2209
|
+
size: E(() => a.value.size || "")
|
|
2210
|
+
}), (n || !ct.value) && (ct.value = a.value), a;
|
|
2211
|
+
}, Ba = (e, t) => {
|
|
2212
|
+
var n;
|
|
2213
|
+
const r = [.../* @__PURE__ */ new Set([...Hn(e), ...Hn(t)])], o = {};
|
|
2214
|
+
for (const s of r)
|
|
2215
|
+
o[s] = (n = t[s]) != null ? n : e[s];
|
|
2216
|
+
return o;
|
|
2217
|
+
};
|
|
2218
|
+
function Ga(e) {
|
|
2219
|
+
let t;
|
|
2220
|
+
const n = C(!1), r = cn({
|
|
2221
|
+
...e,
|
|
2222
|
+
originalPosition: "",
|
|
2223
|
+
originalOverflow: "",
|
|
2224
|
+
visible: !1
|
|
2225
|
+
});
|
|
2226
|
+
function o(p) {
|
|
2227
|
+
r.text = p;
|
|
2228
|
+
}
|
|
2229
|
+
function s() {
|
|
2230
|
+
const p = r.parent, g = c.ns;
|
|
2231
|
+
if (!p.vLoadingAddClassList) {
|
|
2232
|
+
let m = p.getAttribute("loading-number");
|
|
2233
|
+
m = Number.parseInt(m) - 1, m ? p.setAttribute("loading-number", m.toString()) : (lt(p, g.bm("parent", "relative")), p.removeAttribute("loading-number")), lt(p, g.bm("parent", "hidden"));
|
|
2234
|
+
}
|
|
2235
|
+
i(), d.unmount();
|
|
2236
|
+
}
|
|
2237
|
+
function i() {
|
|
2238
|
+
var p, g;
|
|
2239
|
+
(g = (p = c.$el) == null ? void 0 : p.parentNode) == null || g.removeChild(c.$el);
|
|
2240
|
+
}
|
|
2241
|
+
function a() {
|
|
2242
|
+
var p;
|
|
2243
|
+
e.beforeClose && !e.beforeClose() || (n.value = !0, clearTimeout(t), t = window.setTimeout(u, 400), r.visible = !1, (p = e.closed) == null || p.call(e));
|
|
2244
|
+
}
|
|
2245
|
+
function u() {
|
|
2246
|
+
if (!n.value)
|
|
2247
|
+
return;
|
|
2248
|
+
const p = r.parent;
|
|
2249
|
+
n.value = !1, p.vLoadingAddClassList = void 0, s();
|
|
2250
|
+
}
|
|
2251
|
+
const l = G({
|
|
2252
|
+
name: "ElLoading",
|
|
2253
|
+
setup(p, { expose: g }) {
|
|
2254
|
+
const { ns: m, zIndex: h } = Ma("loading");
|
|
2255
|
+
return g({
|
|
2256
|
+
ns: m,
|
|
2257
|
+
zIndex: h
|
|
2258
|
+
}), () => {
|
|
2259
|
+
const b = r.spinner || r.svg, x = L("svg", {
|
|
2260
|
+
class: "circular",
|
|
2261
|
+
viewBox: r.svgViewBox ? r.svgViewBox : "0 0 50 50",
|
|
2262
|
+
...b ? { innerHTML: b } : {}
|
|
2263
|
+
}, [
|
|
2264
|
+
L("circle", {
|
|
2265
|
+
class: "path",
|
|
2266
|
+
cx: "25",
|
|
2267
|
+
cy: "25",
|
|
2268
|
+
r: "20",
|
|
2269
|
+
fill: "none"
|
|
2270
|
+
})
|
|
2271
|
+
]), N = r.text ? L("p", { class: m.b("text") }, [r.text]) : void 0;
|
|
2272
|
+
return L(ao, {
|
|
2273
|
+
name: m.b("fade"),
|
|
2274
|
+
onAfterLeave: u
|
|
2275
|
+
}, {
|
|
2276
|
+
default: Ht(() => [
|
|
2277
|
+
Ge(ye("div", {
|
|
2278
|
+
style: {
|
|
2279
|
+
backgroundColor: r.background || ""
|
|
2280
|
+
},
|
|
2281
|
+
class: [
|
|
2282
|
+
m.b("mask"),
|
|
2283
|
+
r.customClass,
|
|
2284
|
+
r.fullscreen ? "is-fullscreen" : ""
|
|
2285
|
+
]
|
|
2286
|
+
}, [
|
|
2287
|
+
L("div", {
|
|
2288
|
+
class: m.b("spinner")
|
|
2289
|
+
}, [x, N])
|
|
2290
|
+
]), [[nr, r.visible]])
|
|
2291
|
+
])
|
|
2292
|
+
});
|
|
2293
|
+
};
|
|
2294
|
+
}
|
|
2295
|
+
}), d = lo(l), c = d.mount(document.createElement("div"));
|
|
2296
|
+
return {
|
|
2297
|
+
...Qt(r),
|
|
2298
|
+
setText: o,
|
|
2299
|
+
removeElLoadingChild: i,
|
|
2300
|
+
close: a,
|
|
2301
|
+
handleAfterLeave: u,
|
|
2302
|
+
vm: c,
|
|
2303
|
+
get $el() {
|
|
2304
|
+
return c.$el;
|
|
2305
|
+
}
|
|
2306
|
+
};
|
|
2307
|
+
}
|
|
2308
|
+
let $e;
|
|
2309
|
+
const qt = function(e = {}) {
|
|
2310
|
+
if (!gn)
|
|
2311
|
+
return;
|
|
2312
|
+
const t = Ua(e);
|
|
2313
|
+
if (t.fullscreen && $e)
|
|
2314
|
+
return $e;
|
|
2315
|
+
const n = Ga({
|
|
2316
|
+
...t,
|
|
2317
|
+
closed: () => {
|
|
2318
|
+
var o;
|
|
2319
|
+
(o = t.closed) == null || o.call(t), t.fullscreen && ($e = void 0);
|
|
2320
|
+
}
|
|
2321
|
+
});
|
|
2322
|
+
za(t, t.parent, n), Vn(t, t.parent, n), t.parent.vLoadingAddClassList = () => Vn(t, t.parent, n);
|
|
2323
|
+
let r = t.parent.getAttribute("loading-number");
|
|
2324
|
+
return r ? r = `${Number.parseInt(r) + 1}` : r = "1", t.parent.setAttribute("loading-number", r), t.parent.appendChild(n.$el), He(() => n.visible.value = t.visible), t.fullscreen && ($e = n), n;
|
|
2325
|
+
}, Ua = (e) => {
|
|
2326
|
+
var t, n, r, o;
|
|
2327
|
+
let s;
|
|
2328
|
+
return vn(e.target) ? s = (t = document.querySelector(e.target)) != null ? t : document.body : s = e.target || document.body, {
|
|
2329
|
+
parent: s === document.body || e.body ? document.body : s,
|
|
2330
|
+
background: e.background || "",
|
|
2331
|
+
svg: e.svg || "",
|
|
2332
|
+
svgViewBox: e.svgViewBox || "",
|
|
2333
|
+
spinner: e.spinner || !1,
|
|
2334
|
+
text: e.text || "",
|
|
2335
|
+
fullscreen: s === document.body && ((n = e.fullscreen) != null ? n : !0),
|
|
2336
|
+
lock: (r = e.lock) != null ? r : !1,
|
|
2337
|
+
customClass: e.customClass || "",
|
|
2338
|
+
visible: (o = e.visible) != null ? o : !0,
|
|
2339
|
+
target: s
|
|
2340
|
+
};
|
|
2341
|
+
}, za = async (e, t, n) => {
|
|
2342
|
+
const { nextZIndex: r } = n.vm.zIndex || n.vm._.exposed.zIndex, o = {};
|
|
2343
|
+
if (e.fullscreen)
|
|
2344
|
+
n.originalPosition.value = je(document.body, "position"), n.originalOverflow.value = je(document.body, "overflow"), o.zIndex = r();
|
|
2345
|
+
else if (e.parent === document.body) {
|
|
2346
|
+
n.originalPosition.value = je(document.body, "position"), await He();
|
|
2347
|
+
for (const s of ["top", "left"]) {
|
|
2348
|
+
const i = s === "top" ? "scrollTop" : "scrollLeft";
|
|
2349
|
+
o[s] = `${e.target.getBoundingClientRect()[s] + document.body[i] + document.documentElement[i] - Number.parseInt(je(document.body, `margin-${s}`), 10)}px`;
|
|
2350
|
+
}
|
|
2351
|
+
for (const s of ["height", "width"])
|
|
2352
|
+
o[s] = `${e.target.getBoundingClientRect()[s]}px`;
|
|
2353
|
+
} else
|
|
2354
|
+
n.originalPosition.value = je(t, "position");
|
|
2355
|
+
for (const [s, i] of Object.entries(o))
|
|
2356
|
+
n.$el.style[s] = i;
|
|
2357
|
+
}, Vn = (e, t, n) => {
|
|
2358
|
+
const r = n.vm.ns || n.vm._.exposed.ns;
|
|
2359
|
+
["absolute", "fixed", "sticky"].includes(n.originalPosition.value) ? lt(t, r.bm("parent", "relative")) : Qn(t, r.bm("parent", "relative")), e.fullscreen && e.lock ? Qn(t, r.bm("parent", "hidden")) : lt(t, r.bm("parent", "hidden"));
|
|
2360
|
+
}, Zt = Symbol("ElLoading"), Jn = (e, t) => {
|
|
2361
|
+
var n, r, o, s;
|
|
2362
|
+
const i = t.instance, a = (p) => Et(t.value) ? t.value[p] : void 0, u = (p) => {
|
|
2363
|
+
const g = vn(p) && (i == null ? void 0 : i[p]) || p;
|
|
2364
|
+
return g && C(g);
|
|
2365
|
+
}, l = (p) => u(a(p) || e.getAttribute(`element-loading-${Js(p)}`)), d = (n = a("fullscreen")) != null ? n : t.modifiers.fullscreen, c = {
|
|
2366
|
+
text: l("text"),
|
|
2367
|
+
svg: l("svg"),
|
|
2368
|
+
svgViewBox: l("svgViewBox"),
|
|
2369
|
+
spinner: l("spinner"),
|
|
2370
|
+
background: l("background"),
|
|
2371
|
+
customClass: l("customClass"),
|
|
2372
|
+
fullscreen: d,
|
|
2373
|
+
target: (r = a("target")) != null ? r : d ? void 0 : e,
|
|
2374
|
+
body: (o = a("body")) != null ? o : t.modifiers.body,
|
|
2375
|
+
lock: (s = a("lock")) != null ? s : t.modifiers.lock
|
|
2376
|
+
};
|
|
2377
|
+
e[Zt] = {
|
|
2378
|
+
options: c,
|
|
2379
|
+
instance: qt(c)
|
|
2380
|
+
};
|
|
2381
|
+
}, Ha = (e, t) => {
|
|
2382
|
+
for (const n of Object.keys(t))
|
|
2383
|
+
le(t[n]) && (t[n].value = e[n]);
|
|
2384
|
+
}, Wn = {
|
|
2385
|
+
mounted(e, t) {
|
|
2386
|
+
t.value && Jn(e, t);
|
|
2387
|
+
},
|
|
2388
|
+
updated(e, t) {
|
|
2389
|
+
const n = e[Zt];
|
|
2390
|
+
t.oldValue !== t.value && (t.value && !t.oldValue ? Jn(e, t) : t.value && t.oldValue ? Et(t.value) && Ha(t.value, n.options) : n == null || n.instance.close());
|
|
2391
|
+
},
|
|
2392
|
+
unmounted(e) {
|
|
2393
|
+
var t;
|
|
2394
|
+
(t = e[Zt]) == null || t.instance.close();
|
|
2395
|
+
}
|
|
2396
|
+
}, _e = {
|
|
2397
|
+
install(e) {
|
|
2398
|
+
e.directive("loading", Wn), e.config.globalProperties.$loading = qt;
|
|
2399
|
+
},
|
|
2400
|
+
directive: Wn,
|
|
2401
|
+
service: qt
|
|
2402
|
+
};
|
|
2403
|
+
function ue(e, t, ...n) {
|
|
2404
|
+
if (e in t) {
|
|
2405
|
+
let o = t[e];
|
|
2406
|
+
return typeof o == "function" ? o(...n) : o;
|
|
2407
|
+
}
|
|
2408
|
+
let r = new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map((o) => `"${o}"`).join(", ")}.`);
|
|
2409
|
+
throw Error.captureStackTrace && Error.captureStackTrace(r, ue), r;
|
|
2410
|
+
}
|
|
2411
|
+
var Xt = ((e) => (e[e.None = 0] = "None", e[e.RenderStrategy = 1] = "RenderStrategy", e[e.Static = 2] = "Static", e))(Xt || {}), Qa = ((e) => (e[e.Unmount = 0] = "Unmount", e[e.Hidden = 1] = "Hidden", e))(Qa || {});
|
|
2412
|
+
function Y({ visible: e = !0, features: t = 0, ourProps: n, theirProps: r, ...o }) {
|
|
2413
|
+
var s;
|
|
2414
|
+
let i = Ur(r, n), a = Object.assign(o, { props: i });
|
|
2415
|
+
if (e || t & 2 && i.static)
|
|
2416
|
+
return Gt(a);
|
|
2417
|
+
if (t & 1) {
|
|
2418
|
+
let u = (s = i.unmount) == null || s ? 0 : 1;
|
|
2419
|
+
return ue(u, { [0]() {
|
|
2420
|
+
return null;
|
|
2421
|
+
}, [1]() {
|
|
2422
|
+
return Gt({ ...o, props: { ...i, hidden: !0, style: { display: "none" } } });
|
|
2423
|
+
} });
|
|
2424
|
+
}
|
|
2425
|
+
return Gt(a);
|
|
2426
|
+
}
|
|
2427
|
+
function Gt({ props: e, attrs: t, slots: n, slot: r, name: o }) {
|
|
2428
|
+
var s, i;
|
|
2429
|
+
let { as: a, ...u } = Ya(e, ["unmount", "static"]), l = (s = n.default) == null ? void 0 : s.call(n, r), d = {};
|
|
2430
|
+
if (r) {
|
|
2431
|
+
let c = !1, p = [];
|
|
2432
|
+
for (let [g, m] of Object.entries(r))
|
|
2433
|
+
typeof m == "boolean" && (c = !0), m === !0 && p.push(g);
|
|
2434
|
+
c && (d["data-headlessui-state"] = p.join(" "));
|
|
2435
|
+
}
|
|
2436
|
+
if (a === "template") {
|
|
2437
|
+
if (l = Gr(l ?? []), Object.keys(u).length > 0 || Object.keys(t).length > 0) {
|
|
2438
|
+
let [c, ...p] = l ?? [];
|
|
2439
|
+
if (!Va(c) || p.length > 0)
|
|
2440
|
+
throw new Error(['Passing props on "template"!', "", `The current component <${o} /> is rendering a "template".`, "However we need to passthrough the following props:", Object.keys(u).concat(Object.keys(t)).map((h) => h.trim()).filter((h, b, x) => x.indexOf(h) === b).sort((h, b) => h.localeCompare(b)).map((h) => ` - ${h}`).join(`
|
|
2441
|
+
`), "", "You can apply a few solutions:", ['Add an `as="..."` prop, to ensure that we render an actual element instead of a "template".', "Render a single element as the child so that we can forward the props onto that element."].map((h) => ` - ${h}`).join(`
|
|
2442
|
+
`)].join(`
|
|
2443
|
+
`));
|
|
2444
|
+
let g = Ur((i = c.props) != null ? i : {}, u), m = co(c, g);
|
|
2445
|
+
for (let h in g)
|
|
2446
|
+
h.startsWith("on") && (m.props || (m.props = {}), m.props[h] = g[h]);
|
|
2447
|
+
return m;
|
|
2448
|
+
}
|
|
2449
|
+
return Array.isArray(l) && l.length === 1 ? l[0] : l;
|
|
2450
|
+
}
|
|
2451
|
+
return L(a, Object.assign({}, u, d), { default: () => l });
|
|
2452
|
+
}
|
|
2453
|
+
function Gr(e) {
|
|
2454
|
+
return e.flatMap((t) => t.type === Ue ? Gr(t.children) : [t]);
|
|
2455
|
+
}
|
|
2456
|
+
function Ur(...e) {
|
|
2457
|
+
if (e.length === 0)
|
|
2458
|
+
return {};
|
|
2459
|
+
if (e.length === 1)
|
|
2460
|
+
return e[0];
|
|
2461
|
+
let t = {}, n = {};
|
|
2462
|
+
for (let r of e)
|
|
2463
|
+
for (let o in r)
|
|
2464
|
+
o.startsWith("on") && typeof r[o] == "function" ? (n[o] != null || (n[o] = []), n[o].push(r[o])) : t[o] = r[o];
|
|
2465
|
+
if (t.disabled || t["aria-disabled"])
|
|
2466
|
+
return Object.assign(t, Object.fromEntries(Object.keys(n).map((r) => [r, void 0])));
|
|
2467
|
+
for (let r in n)
|
|
2468
|
+
Object.assign(t, { [r](o, ...s) {
|
|
2469
|
+
let i = n[r];
|
|
2470
|
+
for (let a of i) {
|
|
2471
|
+
if (o instanceof Event && o.defaultPrevented)
|
|
2472
|
+
return;
|
|
2473
|
+
a(o, ...s);
|
|
2474
|
+
}
|
|
2475
|
+
} });
|
|
2476
|
+
return t;
|
|
2477
|
+
}
|
|
2478
|
+
function Ya(e, t = []) {
|
|
2479
|
+
let n = Object.assign({}, e);
|
|
2480
|
+
for (let r of t)
|
|
2481
|
+
r in n && delete n[r];
|
|
2482
|
+
return n;
|
|
2483
|
+
}
|
|
2484
|
+
function Va(e) {
|
|
2485
|
+
return e == null ? !1 : typeof e.type == "string" || typeof e.type == "object" || typeof e.type == "function";
|
|
2486
|
+
}
|
|
2487
|
+
let Ja = 0;
|
|
2488
|
+
function Wa() {
|
|
2489
|
+
return ++Ja;
|
|
2490
|
+
}
|
|
2491
|
+
function Oe() {
|
|
2492
|
+
return Wa();
|
|
2493
|
+
}
|
|
2494
|
+
var zr = ((e) => (e.Space = " ", e.Enter = "Enter", e.Escape = "Escape", e.Backspace = "Backspace", e.Delete = "Delete", e.ArrowLeft = "ArrowLeft", e.ArrowUp = "ArrowUp", e.ArrowRight = "ArrowRight", e.ArrowDown = "ArrowDown", e.Home = "Home", e.End = "End", e.PageUp = "PageUp", e.PageDown = "PageDown", e.Tab = "Tab", e))(zr || {});
|
|
2495
|
+
function M(e) {
|
|
2496
|
+
var t;
|
|
2497
|
+
return e == null || e.value == null ? null : (t = e.value.$el) != null ? t : e.value;
|
|
2498
|
+
}
|
|
2499
|
+
let Ka = Symbol("Context");
|
|
2500
|
+
var Me = ((e) => (e[e.Open = 1] = "Open", e[e.Closed = 2] = "Closed", e[e.Closing = 4] = "Closing", e[e.Opening = 8] = "Opening", e))(Me || {});
|
|
2501
|
+
function qa() {
|
|
2502
|
+
return k(Ka, null);
|
|
2503
|
+
}
|
|
2504
|
+
var Za = Object.defineProperty, Xa = (e, t, n) => t in e ? Za(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Kn = (e, t, n) => (Xa(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
2505
|
+
class $a {
|
|
2506
|
+
constructor() {
|
|
2507
|
+
Kn(this, "current", this.detect()), Kn(this, "currentId", 0);
|
|
2508
|
+
}
|
|
2509
|
+
set(t) {
|
|
2510
|
+
this.current !== t && (this.currentId = 0, this.current = t);
|
|
2511
|
+
}
|
|
2512
|
+
reset() {
|
|
2513
|
+
this.set(this.detect());
|
|
2514
|
+
}
|
|
2515
|
+
nextId() {
|
|
2516
|
+
return ++this.currentId;
|
|
2517
|
+
}
|
|
2518
|
+
get isServer() {
|
|
2519
|
+
return this.current === "server";
|
|
2520
|
+
}
|
|
2521
|
+
get isClient() {
|
|
2522
|
+
return this.current === "client";
|
|
2523
|
+
}
|
|
2524
|
+
detect() {
|
|
2525
|
+
return typeof window > "u" || typeof document > "u" ? "server" : "client";
|
|
2526
|
+
}
|
|
2527
|
+
}
|
|
2528
|
+
let Ct = new $a();
|
|
2529
|
+
function Pe(e) {
|
|
2530
|
+
if (Ct.isServer)
|
|
2531
|
+
return null;
|
|
2532
|
+
if (e instanceof Node)
|
|
2533
|
+
return e.ownerDocument;
|
|
2534
|
+
if (e != null && e.hasOwnProperty("value")) {
|
|
2535
|
+
let t = M(e);
|
|
2536
|
+
if (t)
|
|
2537
|
+
return t.ownerDocument;
|
|
2538
|
+
}
|
|
2539
|
+
return document;
|
|
2540
|
+
}
|
|
2541
|
+
let $t = ["[contentEditable=true]", "[tabindex]", "a[href]", "area[href]", "button:not([disabled])", "iframe", "input:not([disabled])", "select:not([disabled])", "textarea:not([disabled])"].map((e) => `${e}:not([tabindex='-1'])`).join(",");
|
|
2542
|
+
var ne = ((e) => (e[e.First = 1] = "First", e[e.Previous = 2] = "Previous", e[e.Next = 4] = "Next", e[e.Last = 8] = "Last", e[e.WrapAround = 16] = "WrapAround", e[e.NoScroll = 32] = "NoScroll", e))(ne || {}), Hr = ((e) => (e[e.Error = 0] = "Error", e[e.Overflow = 1] = "Overflow", e[e.Success = 2] = "Success", e[e.Underflow = 3] = "Underflow", e))(Hr || {}), el = ((e) => (e[e.Previous = -1] = "Previous", e[e.Next = 1] = "Next", e))(el || {});
|
|
2543
|
+
function tl(e = document.body) {
|
|
2544
|
+
return e == null ? [] : Array.from(e.querySelectorAll($t)).sort((t, n) => Math.sign((t.tabIndex || Number.MAX_SAFE_INTEGER) - (n.tabIndex || Number.MAX_SAFE_INTEGER)));
|
|
2545
|
+
}
|
|
2546
|
+
var Qr = ((e) => (e[e.Strict = 0] = "Strict", e[e.Loose = 1] = "Loose", e))(Qr || {});
|
|
2547
|
+
function nl(e, t = 0) {
|
|
2548
|
+
var n;
|
|
2549
|
+
return e === ((n = Pe(e)) == null ? void 0 : n.body) ? !1 : ue(t, { [0]() {
|
|
2550
|
+
return e.matches($t);
|
|
2551
|
+
}, [1]() {
|
|
2552
|
+
let r = e;
|
|
2553
|
+
for (; r !== null; ) {
|
|
2554
|
+
if (r.matches($t))
|
|
2555
|
+
return !0;
|
|
2556
|
+
r = r.parentElement;
|
|
2557
|
+
}
|
|
2558
|
+
return !1;
|
|
2559
|
+
} });
|
|
2560
|
+
}
|
|
2561
|
+
var rl = ((e) => (e[e.Keyboard = 0] = "Keyboard", e[e.Mouse = 1] = "Mouse", e))(rl || {});
|
|
2562
|
+
typeof window < "u" && typeof document < "u" && (document.addEventListener("keydown", (e) => {
|
|
2563
|
+
e.metaKey || e.altKey || e.ctrlKey || (document.documentElement.dataset.headlessuiFocusVisible = "");
|
|
2564
|
+
}, !0), document.addEventListener("click", (e) => {
|
|
2565
|
+
e.detail === 1 ? delete document.documentElement.dataset.headlessuiFocusVisible : e.detail === 0 && (document.documentElement.dataset.headlessuiFocusVisible = "");
|
|
2566
|
+
}, !0));
|
|
2567
|
+
function ae(e) {
|
|
2568
|
+
e == null || e.focus({ preventScroll: !0 });
|
|
2569
|
+
}
|
|
2570
|
+
let ol = ["textarea", "input"].join(",");
|
|
2571
|
+
function sl(e) {
|
|
2572
|
+
var t, n;
|
|
2573
|
+
return (n = (t = e == null ? void 0 : e.matches) == null ? void 0 : t.call(e, ol)) != null ? n : !1;
|
|
2574
|
+
}
|
|
2575
|
+
function il(e, t = (n) => n) {
|
|
2576
|
+
return e.slice().sort((n, r) => {
|
|
2577
|
+
let o = t(n), s = t(r);
|
|
2578
|
+
if (o === null || s === null)
|
|
2579
|
+
return 0;
|
|
2580
|
+
let i = o.compareDocumentPosition(s);
|
|
2581
|
+
return i & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : i & Node.DOCUMENT_POSITION_PRECEDING ? 1 : 0;
|
|
2582
|
+
});
|
|
2583
|
+
}
|
|
2584
|
+
function it(e, t, { sorted: n = !0, relativeTo: r = null, skipElements: o = [] } = {}) {
|
|
2585
|
+
var s;
|
|
2586
|
+
let i = (s = Array.isArray(e) ? e.length > 0 ? e[0].ownerDocument : document : e == null ? void 0 : e.ownerDocument) != null ? s : document, a = Array.isArray(e) ? n ? il(e) : e : tl(e);
|
|
2587
|
+
o.length > 0 && a.length > 1 && (a = a.filter((m) => !o.includes(m))), r = r ?? i.activeElement;
|
|
2588
|
+
let u = (() => {
|
|
2589
|
+
if (t & 5)
|
|
2590
|
+
return 1;
|
|
2591
|
+
if (t & 10)
|
|
2592
|
+
return -1;
|
|
2593
|
+
throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last");
|
|
2594
|
+
})(), l = (() => {
|
|
2595
|
+
if (t & 1)
|
|
2596
|
+
return 0;
|
|
2597
|
+
if (t & 2)
|
|
2598
|
+
return Math.max(0, a.indexOf(r)) - 1;
|
|
2599
|
+
if (t & 4)
|
|
2600
|
+
return Math.max(0, a.indexOf(r)) + 1;
|
|
2601
|
+
if (t & 8)
|
|
2602
|
+
return a.length - 1;
|
|
2603
|
+
throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last");
|
|
2604
|
+
})(), d = t & 32 ? { preventScroll: !0 } : {}, c = 0, p = a.length, g;
|
|
2605
|
+
do {
|
|
2606
|
+
if (c >= p || c + p <= 0)
|
|
2607
|
+
return 0;
|
|
2608
|
+
let m = l + c;
|
|
2609
|
+
if (t & 16)
|
|
2610
|
+
m = (m + p) % p;
|
|
2611
|
+
else {
|
|
2612
|
+
if (m < 0)
|
|
2613
|
+
return 3;
|
|
2614
|
+
if (m >= p)
|
|
2615
|
+
return 1;
|
|
2616
|
+
}
|
|
2617
|
+
g = a[m], g == null || g.focus(d), c += u;
|
|
2618
|
+
} while (g !== i.activeElement);
|
|
2619
|
+
return t & 6 && sl(g) && g.select(), 2;
|
|
2620
|
+
}
|
|
2621
|
+
function qn(e, t, n) {
|
|
2622
|
+
Ct.isServer || pe((r) => {
|
|
2623
|
+
document.addEventListener(e, t, n), r(() => document.removeEventListener(e, t, n));
|
|
2624
|
+
});
|
|
2625
|
+
}
|
|
2626
|
+
function Yr(e, t, n) {
|
|
2627
|
+
Ct.isServer || pe((r) => {
|
|
2628
|
+
window.addEventListener(e, t, n), r(() => window.removeEventListener(e, t, n));
|
|
2629
|
+
});
|
|
2630
|
+
}
|
|
2631
|
+
function al(e, t, n = E(() => !0)) {
|
|
2632
|
+
function r(s, i) {
|
|
2633
|
+
if (!n.value || s.defaultPrevented)
|
|
2634
|
+
return;
|
|
2635
|
+
let a = i(s);
|
|
2636
|
+
if (a === null || !a.getRootNode().contains(a))
|
|
2637
|
+
return;
|
|
2638
|
+
let u = function l(d) {
|
|
2639
|
+
return typeof d == "function" ? l(d()) : Array.isArray(d) || d instanceof Set ? d : [d];
|
|
2640
|
+
}(e);
|
|
2641
|
+
for (let l of u) {
|
|
2642
|
+
if (l === null)
|
|
2643
|
+
continue;
|
|
2644
|
+
let d = l instanceof HTMLElement ? l : M(l);
|
|
2645
|
+
if (d != null && d.contains(a) || s.composed && s.composedPath().includes(d))
|
|
2646
|
+
return;
|
|
2647
|
+
}
|
|
2648
|
+
return !nl(a, Qr.Loose) && a.tabIndex !== -1 && s.preventDefault(), t(s, a);
|
|
2649
|
+
}
|
|
2650
|
+
let o = C(null);
|
|
2651
|
+
qn("mousedown", (s) => {
|
|
2652
|
+
var i, a;
|
|
2653
|
+
n.value && (o.value = ((a = (i = s.composedPath) == null ? void 0 : i.call(s)) == null ? void 0 : a[0]) || s.target);
|
|
2654
|
+
}, !0), qn("click", (s) => {
|
|
2655
|
+
o.value && (r(s, () => o.value), o.value = null);
|
|
2656
|
+
}, !0), Yr("blur", (s) => r(s, () => window.document.activeElement instanceof HTMLIFrameElement ? window.document.activeElement : null), !0);
|
|
2657
|
+
}
|
|
2658
|
+
var ut = ((e) => (e[e.None = 1] = "None", e[e.Focusable = 2] = "Focusable", e[e.Hidden = 4] = "Hidden", e))(ut || {});
|
|
2659
|
+
let en = G({ name: "Hidden", props: { as: { type: [Object, String], default: "div" }, features: { type: Number, default: 1 } }, setup(e, { slots: t, attrs: n }) {
|
|
2660
|
+
return () => {
|
|
2661
|
+
let { features: r, ...o } = e, s = { "aria-hidden": (r & 2) === 2 ? !0 : void 0, style: { position: "fixed", top: 1, left: 1, width: 1, height: 0, padding: 0, margin: -1, overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0", ...(r & 4) === 4 && (r & 2) !== 2 && { display: "none" } } };
|
|
2662
|
+
return Y({ ourProps: s, theirProps: o, slot: {}, attrs: n, slots: t, name: "Hidden" });
|
|
2663
|
+
};
|
|
2664
|
+
} });
|
|
2665
|
+
function ll() {
|
|
2666
|
+
return /iPhone/gi.test(window.navigator.platform) || /Mac/gi.test(window.navigator.platform) && window.navigator.maxTouchPoints > 0;
|
|
2667
|
+
}
|
|
2668
|
+
function Vr() {
|
|
2669
|
+
let e = [], t = { addEventListener(n, r, o, s) {
|
|
2670
|
+
return n.addEventListener(r, o, s), t.add(() => n.removeEventListener(r, o, s));
|
|
2671
|
+
}, requestAnimationFrame(...n) {
|
|
2672
|
+
let r = requestAnimationFrame(...n);
|
|
2673
|
+
t.add(() => cancelAnimationFrame(r));
|
|
2674
|
+
}, nextFrame(...n) {
|
|
2675
|
+
t.requestAnimationFrame(() => {
|
|
2676
|
+
t.requestAnimationFrame(...n);
|
|
2677
|
+
});
|
|
2678
|
+
}, setTimeout(...n) {
|
|
2679
|
+
let r = setTimeout(...n);
|
|
2680
|
+
t.add(() => clearTimeout(r));
|
|
2681
|
+
}, style(n, r, o) {
|
|
2682
|
+
let s = n.style.getPropertyValue(r);
|
|
2683
|
+
return Object.assign(n.style, { [r]: o }), this.add(() => {
|
|
2684
|
+
Object.assign(n.style, { [r]: s });
|
|
2685
|
+
});
|
|
2686
|
+
}, group(n) {
|
|
2687
|
+
let r = Vr();
|
|
2688
|
+
return n(r), this.add(() => r.dispose());
|
|
2689
|
+
}, add(n) {
|
|
2690
|
+
return e.push(n), () => {
|
|
2691
|
+
let r = e.indexOf(n);
|
|
2692
|
+
if (r >= 0)
|
|
2693
|
+
for (let o of e.splice(r, 1))
|
|
2694
|
+
o();
|
|
2695
|
+
};
|
|
2696
|
+
}, dispose() {
|
|
2697
|
+
for (let n of e.splice(0))
|
|
2698
|
+
n();
|
|
2699
|
+
} };
|
|
2700
|
+
return t;
|
|
2701
|
+
}
|
|
2702
|
+
var ke = ((e) => (e[e.Forwards = 0] = "Forwards", e[e.Backwards = 1] = "Backwards", e))(ke || {});
|
|
2703
|
+
function cl() {
|
|
2704
|
+
let e = C(0);
|
|
2705
|
+
return Yr("keydown", (t) => {
|
|
2706
|
+
t.key === "Tab" && (e.value = t.shiftKey ? 1 : 0);
|
|
2707
|
+
}), e;
|
|
2708
|
+
}
|
|
2709
|
+
function Jr(e, t, n, r) {
|
|
2710
|
+
Ct.isServer || pe((o) => {
|
|
2711
|
+
e = e ?? window, e.addEventListener(t, n, r), o(() => e.removeEventListener(t, n, r));
|
|
2712
|
+
});
|
|
2713
|
+
}
|
|
2714
|
+
function Wr(e) {
|
|
2715
|
+
typeof queueMicrotask == "function" ? queueMicrotask(e) : Promise.resolve().then(e).catch((t) => setTimeout(() => {
|
|
2716
|
+
throw t;
|
|
2717
|
+
}));
|
|
2718
|
+
}
|
|
2719
|
+
function ul(e) {
|
|
2720
|
+
function t() {
|
|
2721
|
+
document.readyState !== "loading" && (e(), document.removeEventListener("DOMContentLoaded", t));
|
|
2722
|
+
}
|
|
2723
|
+
typeof window < "u" && typeof document < "u" && (document.addEventListener("DOMContentLoaded", t), t());
|
|
2724
|
+
}
|
|
2725
|
+
function Kr(e) {
|
|
2726
|
+
if (!e)
|
|
2727
|
+
return /* @__PURE__ */ new Set();
|
|
2728
|
+
if (typeof e == "function")
|
|
2729
|
+
return new Set(e());
|
|
2730
|
+
let t = /* @__PURE__ */ new Set();
|
|
2731
|
+
for (let n of e.value) {
|
|
2732
|
+
let r = M(n);
|
|
2733
|
+
r instanceof HTMLElement && t.add(r);
|
|
2734
|
+
}
|
|
2735
|
+
return t;
|
|
2736
|
+
}
|
|
2737
|
+
var qr = ((e) => (e[e.None = 1] = "None", e[e.InitialFocus = 2] = "InitialFocus", e[e.TabLock = 4] = "TabLock", e[e.FocusLock = 8] = "FocusLock", e[e.RestoreFocus = 16] = "RestoreFocus", e[e.All = 30] = "All", e))(qr || {});
|
|
2738
|
+
let Le = Object.assign(G({ name: "FocusTrap", props: { as: { type: [Object, String], default: "div" }, initialFocus: { type: Object, default: null }, features: { type: Number, default: 30 }, containers: { type: [Object, Function], default: C(/* @__PURE__ */ new Set()) } }, inheritAttrs: !1, setup(e, { attrs: t, slots: n, expose: r }) {
|
|
2739
|
+
let o = C(null);
|
|
2740
|
+
r({ el: o, $el: o });
|
|
2741
|
+
let s = E(() => Pe(o)), i = C(!1);
|
|
2742
|
+
Q(() => i.value = !0), ee(() => i.value = !1), fl({ ownerDocument: s }, E(() => i.value && !!(e.features & 16)));
|
|
2743
|
+
let a = pl({ ownerDocument: s, container: o, initialFocus: E(() => e.initialFocus) }, E(() => i.value && !!(e.features & 2)));
|
|
2744
|
+
hl({ ownerDocument: s, container: o, containers: e.containers, previousActiveElement: a }, E(() => i.value && !!(e.features & 8)));
|
|
2745
|
+
let u = cl();
|
|
2746
|
+
function l(g) {
|
|
2747
|
+
let m = M(o);
|
|
2748
|
+
m && ((h) => h())(() => {
|
|
2749
|
+
ue(u.value, { [ke.Forwards]: () => {
|
|
2750
|
+
it(m, ne.First, { skipElements: [g.relatedTarget] });
|
|
2751
|
+
}, [ke.Backwards]: () => {
|
|
2752
|
+
it(m, ne.Last, { skipElements: [g.relatedTarget] });
|
|
2753
|
+
} });
|
|
2754
|
+
});
|
|
2755
|
+
}
|
|
2756
|
+
let d = C(!1);
|
|
2757
|
+
function c(g) {
|
|
2758
|
+
g.key === "Tab" && (d.value = !0, requestAnimationFrame(() => {
|
|
2759
|
+
d.value = !1;
|
|
2760
|
+
}));
|
|
2761
|
+
}
|
|
2762
|
+
function p(g) {
|
|
2763
|
+
if (!i.value)
|
|
2764
|
+
return;
|
|
2765
|
+
let m = Kr(e.containers);
|
|
2766
|
+
M(o) instanceof HTMLElement && m.add(M(o));
|
|
2767
|
+
let h = g.relatedTarget;
|
|
2768
|
+
h instanceof HTMLElement && h.dataset.headlessuiFocusGuard !== "true" && (Zr(m, h) || (d.value ? it(M(o), ue(u.value, { [ke.Forwards]: () => ne.Next, [ke.Backwards]: () => ne.Previous }) | ne.WrapAround, { relativeTo: g.target }) : g.target instanceof HTMLElement && ae(g.target)));
|
|
2769
|
+
}
|
|
2770
|
+
return () => {
|
|
2771
|
+
let g = {}, m = { ref: o, onKeydown: c, onFocusout: p }, { features: h, initialFocus: b, containers: x, ...N } = e;
|
|
2772
|
+
return L(Ue, [!!(h & 4) && L(en, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: l, features: ut.Focusable }), Y({ ourProps: m, theirProps: { ...t, ...N }, slot: g, attrs: t, slots: n, name: "FocusTrap" }), !!(h & 4) && L(en, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: l, features: ut.Focusable })]);
|
|
2773
|
+
};
|
|
2774
|
+
} }), { features: qr }), se = [];
|
|
2775
|
+
ul(() => {
|
|
2776
|
+
function e(t) {
|
|
2777
|
+
t.target instanceof HTMLElement && t.target !== document.body && se[0] !== t.target && (se.unshift(t.target), se = se.filter((n) => n != null && n.isConnected), se.splice(10));
|
|
2778
|
+
}
|
|
2779
|
+
window.addEventListener("click", e, { capture: !0 }), window.addEventListener("mousedown", e, { capture: !0 }), window.addEventListener("focus", e, { capture: !0 }), document.body.addEventListener("click", e, { capture: !0 }), document.body.addEventListener("mousedown", e, { capture: !0 }), document.body.addEventListener("focus", e, { capture: !0 });
|
|
2780
|
+
});
|
|
2781
|
+
function dl(e) {
|
|
2782
|
+
let t = C(se.slice());
|
|
2783
|
+
return Ve([e], ([n], [r]) => {
|
|
2784
|
+
r === !0 && n === !1 ? Wr(() => {
|
|
2785
|
+
t.value.splice(0);
|
|
2786
|
+
}) : r === !1 && n === !0 && (t.value = se.slice());
|
|
2787
|
+
}, { flush: "post" }), () => {
|
|
2788
|
+
var n;
|
|
2789
|
+
return (n = t.value.find((r) => r != null && r.isConnected)) != null ? n : null;
|
|
2790
|
+
};
|
|
2791
|
+
}
|
|
2792
|
+
function fl({ ownerDocument: e }, t) {
|
|
2793
|
+
let n = dl(t);
|
|
2794
|
+
Q(() => {
|
|
2795
|
+
pe(() => {
|
|
2796
|
+
var r, o;
|
|
2797
|
+
t.value || ((r = e.value) == null ? void 0 : r.activeElement) === ((o = e.value) == null ? void 0 : o.body) && ae(n());
|
|
2798
|
+
}, { flush: "post" });
|
|
2799
|
+
}), ee(() => {
|
|
2800
|
+
t.value && ae(n());
|
|
2801
|
+
});
|
|
2802
|
+
}
|
|
2803
|
+
function pl({ ownerDocument: e, container: t, initialFocus: n }, r) {
|
|
2804
|
+
let o = C(null), s = C(!1);
|
|
2805
|
+
return Q(() => s.value = !0), ee(() => s.value = !1), Q(() => {
|
|
2806
|
+
Ve([t, n, r], (i, a) => {
|
|
2807
|
+
if (i.every((l, d) => (a == null ? void 0 : a[d]) === l) || !r.value)
|
|
2808
|
+
return;
|
|
2809
|
+
let u = M(t);
|
|
2810
|
+
u && Wr(() => {
|
|
2811
|
+
var l, d;
|
|
2812
|
+
if (!s.value)
|
|
2813
|
+
return;
|
|
2814
|
+
let c = M(n), p = (l = e.value) == null ? void 0 : l.activeElement;
|
|
2815
|
+
if (c) {
|
|
2816
|
+
if (c === p) {
|
|
2817
|
+
o.value = p;
|
|
2818
|
+
return;
|
|
2819
|
+
}
|
|
2820
|
+
} else if (u.contains(p)) {
|
|
2821
|
+
o.value = p;
|
|
2822
|
+
return;
|
|
2823
|
+
}
|
|
2824
|
+
c ? ae(c) : it(u, ne.First | ne.NoScroll) === Hr.Error && console.warn("There are no focusable elements inside the <FocusTrap />"), o.value = (d = e.value) == null ? void 0 : d.activeElement;
|
|
2825
|
+
});
|
|
2826
|
+
}, { immediate: !0, flush: "post" });
|
|
2827
|
+
}), o;
|
|
2828
|
+
}
|
|
2829
|
+
function hl({ ownerDocument: e, container: t, containers: n, previousActiveElement: r }, o) {
|
|
2830
|
+
var s;
|
|
2831
|
+
Jr((s = e.value) == null ? void 0 : s.defaultView, "focus", (i) => {
|
|
2832
|
+
if (!o.value)
|
|
2833
|
+
return;
|
|
2834
|
+
let a = Kr(n);
|
|
2835
|
+
M(t) instanceof HTMLElement && a.add(M(t));
|
|
2836
|
+
let u = r.value;
|
|
2837
|
+
if (!u)
|
|
2838
|
+
return;
|
|
2839
|
+
let l = i.target;
|
|
2840
|
+
l && l instanceof HTMLElement ? Zr(a, l) ? (r.value = l, ae(l)) : (i.preventDefault(), i.stopPropagation(), ae(u)) : ae(r.value);
|
|
2841
|
+
}, !0);
|
|
2842
|
+
}
|
|
2843
|
+
function Zr(e, t) {
|
|
2844
|
+
for (let n of e)
|
|
2845
|
+
if (n.contains(t))
|
|
2846
|
+
return !0;
|
|
2847
|
+
return !1;
|
|
2848
|
+
}
|
|
2849
|
+
let Ut = /* @__PURE__ */ new Map(), Ie = /* @__PURE__ */ new Map();
|
|
2850
|
+
function Zn(e, t = C(!0)) {
|
|
2851
|
+
pe((n) => {
|
|
2852
|
+
var r;
|
|
2853
|
+
if (!t.value)
|
|
2854
|
+
return;
|
|
2855
|
+
let o = M(e);
|
|
2856
|
+
if (!o)
|
|
2857
|
+
return;
|
|
2858
|
+
n(function() {
|
|
2859
|
+
var i;
|
|
2860
|
+
if (!o)
|
|
2861
|
+
return;
|
|
2862
|
+
let a = (i = Ie.get(o)) != null ? i : 1;
|
|
2863
|
+
if (a === 1 ? Ie.delete(o) : Ie.set(o, a - 1), a !== 1)
|
|
2864
|
+
return;
|
|
2865
|
+
let u = Ut.get(o);
|
|
2866
|
+
u && (u["aria-hidden"] === null ? o.removeAttribute("aria-hidden") : o.setAttribute("aria-hidden", u["aria-hidden"]), o.inert = u.inert, Ut.delete(o));
|
|
2867
|
+
});
|
|
2868
|
+
let s = (r = Ie.get(o)) != null ? r : 0;
|
|
2869
|
+
Ie.set(o, s + 1), s === 0 && (Ut.set(o, { "aria-hidden": o.getAttribute("aria-hidden"), inert: o.inert }), o.setAttribute("aria-hidden", "true"), o.inert = !0);
|
|
2870
|
+
});
|
|
2871
|
+
}
|
|
2872
|
+
let Xr = Symbol("ForcePortalRootContext");
|
|
2873
|
+
function ml() {
|
|
2874
|
+
return k(Xr, !1);
|
|
2875
|
+
}
|
|
2876
|
+
let tn = G({ name: "ForcePortalRoot", props: { as: { type: [Object, String], default: "template" }, force: { type: Boolean, default: !1 } }, setup(e, { slots: t, attrs: n }) {
|
|
2877
|
+
return fe(Xr, e.force), () => {
|
|
2878
|
+
let { force: r, ...o } = e;
|
|
2879
|
+
return Y({ theirProps: o, ourProps: {}, slot: {}, slots: t, attrs: n, name: "ForcePortalRoot" });
|
|
2880
|
+
};
|
|
2881
|
+
} });
|
|
2882
|
+
function gl(e) {
|
|
2883
|
+
let t = Pe(e);
|
|
2884
|
+
if (!t) {
|
|
2885
|
+
if (e === null)
|
|
2886
|
+
return null;
|
|
2887
|
+
throw new Error(`[Headless UI]: Cannot find ownerDocument for contextElement: ${e}`);
|
|
2888
|
+
}
|
|
2889
|
+
let n = t.getElementById("headlessui-portal-root");
|
|
2890
|
+
if (n)
|
|
2891
|
+
return n;
|
|
2892
|
+
let r = t.createElement("div");
|
|
2893
|
+
return r.setAttribute("id", "headlessui-portal-root"), t.body.appendChild(r);
|
|
2894
|
+
}
|
|
2895
|
+
let $r = G({ name: "Portal", props: { as: { type: [Object, String], default: "div" } }, setup(e, { slots: t, attrs: n }) {
|
|
2896
|
+
let r = C(null), o = E(() => Pe(r)), s = ml(), i = k(eo, null), a = C(s === !0 || i == null ? gl(r.value) : i.resolveTarget());
|
|
2897
|
+
pe(() => {
|
|
2898
|
+
s || i != null && (a.value = i.resolveTarget());
|
|
2899
|
+
});
|
|
2900
|
+
let u = k(nn, null);
|
|
2901
|
+
return Q(() => {
|
|
2902
|
+
let l = M(r);
|
|
2903
|
+
l && u && ee(u.register(l));
|
|
2904
|
+
}), ee(() => {
|
|
2905
|
+
var l, d;
|
|
2906
|
+
let c = (l = o.value) == null ? void 0 : l.getElementById("headlessui-portal-root");
|
|
2907
|
+
c && a.value === c && a.value.children.length <= 0 && ((d = a.value.parentElement) == null || d.removeChild(a.value));
|
|
2908
|
+
}), () => {
|
|
2909
|
+
if (a.value === null)
|
|
2910
|
+
return null;
|
|
2911
|
+
let l = { ref: r, "data-headlessui-portal": "" };
|
|
2912
|
+
return L(uo, { to: a.value }, Y({ ourProps: l, theirProps: e, slot: {}, attrs: n, slots: t, name: "Portal" }));
|
|
2913
|
+
};
|
|
2914
|
+
} }), nn = Symbol("PortalParentContext");
|
|
2915
|
+
function vl() {
|
|
2916
|
+
let e = k(nn, null), t = C([]);
|
|
2917
|
+
function n(s) {
|
|
2918
|
+
return t.value.push(s), e && e.register(s), () => r(s);
|
|
2919
|
+
}
|
|
2920
|
+
function r(s) {
|
|
2921
|
+
let i = t.value.indexOf(s);
|
|
2922
|
+
i !== -1 && t.value.splice(i, 1), e && e.unregister(s);
|
|
2923
|
+
}
|
|
2924
|
+
let o = { register: n, unregister: r, portals: t };
|
|
2925
|
+
return [t, G({ name: "PortalWrapper", setup(s, { slots: i }) {
|
|
2926
|
+
return fe(nn, o), () => {
|
|
2927
|
+
var a;
|
|
2928
|
+
return (a = i.default) == null ? void 0 : a.call(i);
|
|
2929
|
+
};
|
|
2930
|
+
} })];
|
|
2931
|
+
}
|
|
2932
|
+
let eo = Symbol("PortalGroupContext"), wl = G({ name: "PortalGroup", props: { as: { type: [Object, String], default: "template" }, target: { type: Object, default: null } }, setup(e, { attrs: t, slots: n }) {
|
|
2933
|
+
let r = cn({ resolveTarget() {
|
|
2934
|
+
return e.target;
|
|
2935
|
+
} });
|
|
2936
|
+
return fe(eo, r), () => {
|
|
2937
|
+
let { target: o, ...s } = e;
|
|
2938
|
+
return Y({ theirProps: s, ourProps: {}, slot: {}, attrs: t, slots: n, name: "PortalGroup" });
|
|
2939
|
+
};
|
|
2940
|
+
} }), to = Symbol("StackContext");
|
|
2941
|
+
var rn = ((e) => (e[e.Add = 0] = "Add", e[e.Remove = 1] = "Remove", e))(rn || {});
|
|
2942
|
+
function yl() {
|
|
2943
|
+
return k(to, () => {
|
|
2944
|
+
});
|
|
2945
|
+
}
|
|
2946
|
+
function bl({ type: e, enabled: t, element: n, onUpdate: r }) {
|
|
2947
|
+
let o = yl();
|
|
2948
|
+
function s(...i) {
|
|
2949
|
+
r == null || r(...i), o(...i);
|
|
2950
|
+
}
|
|
2951
|
+
Q(() => {
|
|
2952
|
+
Ve(t, (i, a) => {
|
|
2953
|
+
i ? s(0, e, n) : a === !0 && s(1, e, n);
|
|
2954
|
+
}, { immediate: !0, flush: "sync" });
|
|
2955
|
+
}), ee(() => {
|
|
2956
|
+
t.value && s(1, e, n);
|
|
2957
|
+
}), fe(to, s);
|
|
2958
|
+
}
|
|
2959
|
+
let no = Symbol("DescriptionContext");
|
|
2960
|
+
function El() {
|
|
2961
|
+
let e = k(no, null);
|
|
2962
|
+
if (e === null)
|
|
2963
|
+
throw new Error("Missing parent");
|
|
2964
|
+
return e;
|
|
2965
|
+
}
|
|
2966
|
+
function Al({ slot: e = C({}), name: t = "Description", props: n = {} } = {}) {
|
|
2967
|
+
let r = C([]);
|
|
2968
|
+
function o(s) {
|
|
2969
|
+
return r.value.push(s), () => {
|
|
2970
|
+
let i = r.value.indexOf(s);
|
|
2971
|
+
i !== -1 && r.value.splice(i, 1);
|
|
2972
|
+
};
|
|
2973
|
+
}
|
|
2974
|
+
return fe(no, { register: o, slot: e, name: t, props: n }), E(() => r.value.length > 0 ? r.value.join(" ") : void 0);
|
|
2975
|
+
}
|
|
2976
|
+
G({ name: "Description", props: { as: { type: [Object, String], default: "p" }, id: { type: String, default: () => `headlessui-description-${Oe()}` } }, setup(e, { attrs: t, slots: n }) {
|
|
2977
|
+
let r = El();
|
|
2978
|
+
return Q(() => ee(r.register(e.id))), () => {
|
|
2979
|
+
let { name: o = "Description", slot: s = C({}), props: i = {} } = r, { id: a, ...u } = e, l = { ...Object.entries(i).reduce((d, [c, p]) => Object.assign(d, { [c]: z(p) }), {}), id: a };
|
|
2980
|
+
return Y({ ourProps: l, theirProps: u, slot: s.value, attrs: t, slots: n, name: o });
|
|
2981
|
+
};
|
|
2982
|
+
} });
|
|
2983
|
+
function xl(e) {
|
|
2984
|
+
let t = fo(e.getSnapshot());
|
|
2985
|
+
return ee(e.subscribe(() => {
|
|
2986
|
+
t.value = e.getSnapshot();
|
|
2987
|
+
})), t;
|
|
2988
|
+
}
|
|
2989
|
+
function Cl(e, t) {
|
|
2990
|
+
let n = e(), r = /* @__PURE__ */ new Set();
|
|
2991
|
+
return { getSnapshot() {
|
|
2992
|
+
return n;
|
|
2993
|
+
}, subscribe(o) {
|
|
2994
|
+
return r.add(o), () => r.delete(o);
|
|
2995
|
+
}, dispatch(o, ...s) {
|
|
2996
|
+
let i = t[o].call(n, ...s);
|
|
2997
|
+
i && (n = i, r.forEach((a) => a()));
|
|
2998
|
+
} };
|
|
2999
|
+
}
|
|
3000
|
+
function Sl() {
|
|
3001
|
+
let e;
|
|
3002
|
+
return { before({ doc: t }) {
|
|
3003
|
+
var n;
|
|
3004
|
+
let r = t.documentElement;
|
|
3005
|
+
e = ((n = t.defaultView) != null ? n : window).innerWidth - r.clientWidth;
|
|
3006
|
+
}, after({ doc: t, d: n }) {
|
|
3007
|
+
let r = t.documentElement, o = r.clientWidth - r.offsetWidth, s = e - o;
|
|
3008
|
+
n.style(r, "paddingRight", `${s}px`);
|
|
3009
|
+
} };
|
|
3010
|
+
}
|
|
3011
|
+
function Ol() {
|
|
3012
|
+
if (!ll())
|
|
3013
|
+
return {};
|
|
3014
|
+
let e;
|
|
3015
|
+
return { before() {
|
|
3016
|
+
e = window.pageYOffset;
|
|
3017
|
+
}, after({ doc: t, d: n, meta: r }) {
|
|
3018
|
+
function o(i) {
|
|
3019
|
+
return r.containers.flatMap((a) => a()).some((a) => a.contains(i));
|
|
3020
|
+
}
|
|
3021
|
+
n.style(t.body, "marginTop", `-${e}px`), window.scrollTo(0, 0);
|
|
3022
|
+
let s = null;
|
|
3023
|
+
n.addEventListener(t, "click", (i) => {
|
|
3024
|
+
if (i.target instanceof HTMLElement)
|
|
3025
|
+
try {
|
|
3026
|
+
let a = i.target.closest("a");
|
|
3027
|
+
if (!a)
|
|
3028
|
+
return;
|
|
3029
|
+
let { hash: u } = new URL(a.href), l = t.querySelector(u);
|
|
3030
|
+
l && !o(l) && (s = l);
|
|
3031
|
+
} catch {
|
|
3032
|
+
}
|
|
3033
|
+
}, !0), n.addEventListener(t, "touchmove", (i) => {
|
|
3034
|
+
i.target instanceof HTMLElement && !o(i.target) && i.preventDefault();
|
|
3035
|
+
}, { passive: !1 }), n.add(() => {
|
|
3036
|
+
window.scrollTo(0, window.pageYOffset + e), s && s.isConnected && (s.scrollIntoView({ block: "nearest" }), s = null);
|
|
3037
|
+
});
|
|
3038
|
+
} };
|
|
3039
|
+
}
|
|
3040
|
+
function Pl() {
|
|
3041
|
+
return { before({ doc: e, d: t }) {
|
|
3042
|
+
t.style(e.documentElement, "overflow", "hidden");
|
|
3043
|
+
} };
|
|
3044
|
+
}
|
|
3045
|
+
function Dl(e) {
|
|
3046
|
+
let t = {};
|
|
3047
|
+
for (let n of e)
|
|
3048
|
+
Object.assign(t, n(t));
|
|
3049
|
+
return t;
|
|
3050
|
+
}
|
|
3051
|
+
let ie = Cl(() => /* @__PURE__ */ new Map(), { PUSH(e, t) {
|
|
3052
|
+
var n;
|
|
3053
|
+
let r = (n = this.get(e)) != null ? n : { doc: e, count: 0, d: Vr(), meta: /* @__PURE__ */ new Set() };
|
|
3054
|
+
return r.count++, r.meta.add(t), this.set(e, r), this;
|
|
3055
|
+
}, POP(e, t) {
|
|
3056
|
+
let n = this.get(e);
|
|
3057
|
+
return n && (n.count--, n.meta.delete(t)), this;
|
|
3058
|
+
}, SCROLL_PREVENT({ doc: e, d: t, meta: n }) {
|
|
3059
|
+
let r = { doc: e, d: t, meta: Dl(n) }, o = [Ol(), Sl(), Pl()];
|
|
3060
|
+
o.forEach(({ before: s }) => s == null ? void 0 : s(r)), o.forEach(({ after: s }) => s == null ? void 0 : s(r));
|
|
3061
|
+
}, SCROLL_ALLOW({ d: e }) {
|
|
3062
|
+
e.dispose();
|
|
3063
|
+
}, TEARDOWN({ doc: e }) {
|
|
3064
|
+
this.delete(e);
|
|
3065
|
+
} });
|
|
3066
|
+
ie.subscribe(() => {
|
|
3067
|
+
let e = ie.getSnapshot(), t = /* @__PURE__ */ new Map();
|
|
3068
|
+
for (let [n] of e)
|
|
3069
|
+
t.set(n, n.documentElement.style.overflow);
|
|
3070
|
+
for (let n of e.values()) {
|
|
3071
|
+
let r = t.get(n.doc) === "hidden", o = n.count !== 0;
|
|
3072
|
+
(o && !r || !o && r) && ie.dispatch(n.count > 0 ? "SCROLL_PREVENT" : "SCROLL_ALLOW", n), n.count === 0 && ie.dispatch("TEARDOWN", n);
|
|
3073
|
+
}
|
|
3074
|
+
});
|
|
3075
|
+
function Nl(e, t, n) {
|
|
3076
|
+
let r = xl(ie), o = E(() => {
|
|
3077
|
+
let s = e.value ? r.value.get(e.value) : void 0;
|
|
3078
|
+
return s ? s.count > 0 : !1;
|
|
3079
|
+
});
|
|
3080
|
+
return Ve([e, t], ([s, i], [a], u) => {
|
|
3081
|
+
if (!s || !i)
|
|
3082
|
+
return;
|
|
3083
|
+
ie.dispatch("PUSH", s, n);
|
|
3084
|
+
let l = !1;
|
|
3085
|
+
u(() => {
|
|
3086
|
+
l || (ie.dispatch("POP", a ?? s, n), l = !0);
|
|
3087
|
+
});
|
|
3088
|
+
}, { immediate: !0 }), o;
|
|
3089
|
+
}
|
|
3090
|
+
function Rl({ defaultContainers: e = [], portals: t } = {}) {
|
|
3091
|
+
let n = C(null), r = Pe(n);
|
|
3092
|
+
function o() {
|
|
3093
|
+
var s;
|
|
3094
|
+
let i = [];
|
|
3095
|
+
for (let a of e)
|
|
3096
|
+
a !== null && (a instanceof HTMLElement ? i.push(a) : "value" in a && a.value instanceof HTMLElement && i.push(a.value));
|
|
3097
|
+
if (t != null && t.value)
|
|
3098
|
+
for (let a of t.value)
|
|
3099
|
+
i.push(a);
|
|
3100
|
+
for (let a of (s = r == null ? void 0 : r.querySelectorAll("html > *, body > *")) != null ? s : [])
|
|
3101
|
+
a !== document.body && a !== document.head && a instanceof HTMLElement && a.id !== "headlessui-portal-root" && (a.contains(M(n)) || i.some((u) => a.contains(u)) || i.push(a));
|
|
3102
|
+
return i;
|
|
3103
|
+
}
|
|
3104
|
+
return { resolveContainers: o, contains(s) {
|
|
3105
|
+
return o().some((i) => i.contains(s));
|
|
3106
|
+
}, mainTreeNodeRef: n, MainTreeNode() {
|
|
3107
|
+
return L(en, { features: ut.Hidden, ref: n });
|
|
3108
|
+
} };
|
|
3109
|
+
}
|
|
3110
|
+
var Tl = ((e) => (e[e.Open = 0] = "Open", e[e.Closed = 1] = "Closed", e))(Tl || {});
|
|
3111
|
+
let on = Symbol("DialogContext");
|
|
3112
|
+
function Ke(e) {
|
|
3113
|
+
let t = k(on, null);
|
|
3114
|
+
if (t === null) {
|
|
3115
|
+
let n = new Error(`<${e} /> is missing a parent <Dialog /> component.`);
|
|
3116
|
+
throw Error.captureStackTrace && Error.captureStackTrace(n, Ke), n;
|
|
3117
|
+
}
|
|
3118
|
+
return t;
|
|
3119
|
+
}
|
|
3120
|
+
let et = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", jl = G({ name: "Dialog", inheritAttrs: !1, props: { as: { type: [Object, String], default: "div" }, static: { type: Boolean, default: !1 }, unmount: { type: Boolean, default: !0 }, open: { type: [Boolean, String], default: et }, initialFocus: { type: Object, default: null }, id: { type: String, default: () => `headlessui-dialog-${Oe()}` } }, emits: { close: (e) => !0 }, setup(e, { emit: t, attrs: n, slots: r, expose: o }) {
|
|
3121
|
+
var s;
|
|
3122
|
+
let i = C(!1);
|
|
3123
|
+
Q(() => {
|
|
3124
|
+
i.value = !0;
|
|
3125
|
+
});
|
|
3126
|
+
let a = C(0), u = qa(), l = E(() => e.open === et && u !== null ? (u.value & Me.Open) === Me.Open : e.open), d = C(null), c = E(() => Pe(d));
|
|
3127
|
+
if (o({ el: d, $el: d }), !(e.open !== et || u !== null))
|
|
3128
|
+
throw new Error("You forgot to provide an `open` prop to the `Dialog`.");
|
|
3129
|
+
if (typeof l.value != "boolean")
|
|
3130
|
+
throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${l.value === et ? void 0 : e.open}`);
|
|
3131
|
+
let p = E(() => i.value && l.value ? 0 : 1), g = E(() => p.value === 0), m = E(() => a.value > 1), h = k(on, null) !== null, [b, x] = vl(), { resolveContainers: N, mainTreeNodeRef: j, MainTreeNode: _ } = Rl({ portals: b, defaultContainers: [E(() => {
|
|
3132
|
+
var O;
|
|
3133
|
+
return (O = I.panelRef.value) != null ? O : d.value;
|
|
3134
|
+
})] }), ge = E(() => m.value ? "parent" : "leaf"), De = E(() => u !== null ? (u.value & Me.Closing) === Me.Closing : !1), A = E(() => h || De.value ? !1 : g.value), Ot = E(() => {
|
|
3135
|
+
var O, P, W;
|
|
3136
|
+
return (W = Array.from((P = (O = c.value) == null ? void 0 : O.querySelectorAll("body > *")) != null ? P : []).find((K) => K.id === "headlessui-portal-root" ? !1 : K.contains(M(j)) && K instanceof HTMLElement)) != null ? W : null;
|
|
3137
|
+
});
|
|
3138
|
+
Zn(Ot, A);
|
|
3139
|
+
let J = E(() => m.value ? !0 : g.value), y = E(() => {
|
|
3140
|
+
var O, P, W;
|
|
3141
|
+
return (W = Array.from((P = (O = c.value) == null ? void 0 : O.querySelectorAll("[data-headlessui-portal]")) != null ? P : []).find((K) => K.contains(M(j)) && K instanceof HTMLElement)) != null ? W : null;
|
|
3142
|
+
});
|
|
3143
|
+
Zn(y, J), bl({ type: "Dialog", enabled: E(() => p.value === 0), element: d, onUpdate: (O, P) => {
|
|
3144
|
+
if (P === "Dialog")
|
|
3145
|
+
return ue(O, { [rn.Add]: () => a.value += 1, [rn.Remove]: () => a.value -= 1 });
|
|
3146
|
+
} });
|
|
3147
|
+
let w = Al({ name: "DialogDescription", slot: E(() => ({ open: l.value })) }), R = C(null), I = { titleId: R, panelRef: C(null), dialogState: p, setTitleId(O) {
|
|
3148
|
+
R.value !== O && (R.value = O);
|
|
3149
|
+
}, close() {
|
|
3150
|
+
t("close", !1);
|
|
3151
|
+
} };
|
|
3152
|
+
fe(on, I);
|
|
3153
|
+
let re = E(() => !(!g.value || m.value));
|
|
3154
|
+
al(N, (O, P) => {
|
|
3155
|
+
I.close(), He(() => P == null ? void 0 : P.focus());
|
|
3156
|
+
}, re);
|
|
3157
|
+
let Pt = E(() => !(m.value || p.value !== 0));
|
|
3158
|
+
Jr((s = c.value) == null ? void 0 : s.defaultView, "keydown", (O) => {
|
|
3159
|
+
Pt.value && (O.defaultPrevented || O.key === zr.Escape && (O.preventDefault(), O.stopPropagation(), I.close()));
|
|
3160
|
+
});
|
|
3161
|
+
let Dt = E(() => !(De.value || p.value !== 0 || h));
|
|
3162
|
+
return Nl(c, Dt, (O) => {
|
|
3163
|
+
var P;
|
|
3164
|
+
return { containers: [...(P = O.containers) != null ? P : [], N] };
|
|
3165
|
+
}), pe((O) => {
|
|
3166
|
+
if (p.value !== 0)
|
|
3167
|
+
return;
|
|
3168
|
+
let P = M(d);
|
|
3169
|
+
if (!P)
|
|
3170
|
+
return;
|
|
3171
|
+
let W = new ResizeObserver((K) => {
|
|
3172
|
+
for (let Nt of K) {
|
|
3173
|
+
let ve = Nt.target.getBoundingClientRect();
|
|
3174
|
+
ve.x === 0 && ve.y === 0 && ve.width === 0 && ve.height === 0 && I.close();
|
|
3175
|
+
}
|
|
3176
|
+
});
|
|
3177
|
+
W.observe(P), O(() => W.disconnect());
|
|
3178
|
+
}), () => {
|
|
3179
|
+
let { id: O, open: P, initialFocus: W, ...K } = e, Nt = { ...n, ref: d, id: O, role: "dialog", "aria-modal": p.value === 0 ? !0 : void 0, "aria-labelledby": R.value, "aria-describedby": w.value }, ve = { open: p.value === 0 };
|
|
3180
|
+
return L(tn, { force: !0 }, () => [L($r, () => L(wl, { target: d.value }, () => L(tn, { force: !1 }, () => L(Le, { initialFocus: W, containers: N, features: g.value ? ue(ge.value, { parent: Le.features.RestoreFocus, leaf: Le.features.All & ~Le.features.FocusLock }) : Le.features.None }, () => L(x, {}, () => Y({ ourProps: Nt, theirProps: { ...K, ...n }, slot: ve, attrs: n, slots: r, visible: p.value === 0, features: Xt.RenderStrategy | Xt.Static, name: "Dialog" })))))), L(_)]);
|
|
3181
|
+
};
|
|
3182
|
+
} });
|
|
3183
|
+
G({ name: "DialogOverlay", props: { as: { type: [Object, String], default: "div" }, id: { type: String, default: () => `headlessui-dialog-overlay-${Oe()}` } }, setup(e, { attrs: t, slots: n }) {
|
|
3184
|
+
let r = Ke("DialogOverlay");
|
|
3185
|
+
function o(s) {
|
|
3186
|
+
s.target === s.currentTarget && (s.preventDefault(), s.stopPropagation(), r.close());
|
|
3187
|
+
}
|
|
3188
|
+
return () => {
|
|
3189
|
+
let { id: s, ...i } = e;
|
|
3190
|
+
return Y({ ourProps: { id: s, "aria-hidden": !0, onClick: o }, theirProps: i, slot: { open: r.dialogState.value === 0 }, attrs: t, slots: n, name: "DialogOverlay" });
|
|
3191
|
+
};
|
|
3192
|
+
} });
|
|
3193
|
+
G({ name: "DialogBackdrop", props: { as: { type: [Object, String], default: "div" }, id: { type: String, default: () => `headlessui-dialog-backdrop-${Oe()}` } }, inheritAttrs: !1, setup(e, { attrs: t, slots: n, expose: r }) {
|
|
3194
|
+
let o = Ke("DialogBackdrop"), s = C(null);
|
|
3195
|
+
return r({ el: s, $el: s }), Q(() => {
|
|
3196
|
+
if (o.panelRef.value === null)
|
|
3197
|
+
throw new Error("A <DialogBackdrop /> component is being used, but a <DialogPanel /> component is missing.");
|
|
3198
|
+
}), () => {
|
|
3199
|
+
let { id: i, ...a } = e, u = { id: i, ref: s, "aria-hidden": !0 };
|
|
3200
|
+
return L(tn, { force: !0 }, () => L($r, () => Y({ ourProps: u, theirProps: { ...t, ...a }, slot: { open: o.dialogState.value === 0 }, attrs: t, slots: n, name: "DialogBackdrop" })));
|
|
3201
|
+
};
|
|
3202
|
+
} });
|
|
3203
|
+
let Ll = G({ name: "DialogPanel", props: { as: { type: [Object, String], default: "div" }, id: { type: String, default: () => `headlessui-dialog-panel-${Oe()}` } }, setup(e, { attrs: t, slots: n, expose: r }) {
|
|
3204
|
+
let o = Ke("DialogPanel");
|
|
3205
|
+
r({ el: o.panelRef, $el: o.panelRef });
|
|
3206
|
+
function s(i) {
|
|
3207
|
+
i.stopPropagation();
|
|
3208
|
+
}
|
|
3209
|
+
return () => {
|
|
3210
|
+
let { id: i, ...a } = e, u = { id: i, ref: o.panelRef, onClick: s };
|
|
3211
|
+
return Y({ ourProps: u, theirProps: a, slot: { open: o.dialogState.value === 0 }, attrs: t, slots: n, name: "DialogPanel" });
|
|
3212
|
+
};
|
|
3213
|
+
} });
|
|
3214
|
+
G({ name: "DialogTitle", props: { as: { type: [Object, String], default: "h2" }, id: { type: String, default: () => `headlessui-dialog-title-${Oe()}` } }, setup(e, { attrs: t, slots: n }) {
|
|
3215
|
+
let r = Ke("DialogTitle");
|
|
3216
|
+
return Q(() => {
|
|
3217
|
+
r.setTitleId(e.id), ee(() => r.setTitleId(null));
|
|
3218
|
+
}), () => {
|
|
3219
|
+
let { id: o, ...s } = e;
|
|
3220
|
+
return Y({ ourProps: { id: o }, theirProps: s, slot: { open: r.dialogState.value === 0 }, attrs: t, slots: n, name: "DialogTitle" });
|
|
3221
|
+
};
|
|
3222
|
+
} });
|
|
3223
|
+
function Il(e, t) {
|
|
3224
|
+
return D(), T("svg", {
|
|
3225
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
3226
|
+
fill: "none",
|
|
3227
|
+
viewBox: "0 0 24 24",
|
|
3228
|
+
"stroke-width": "1.5",
|
|
3229
|
+
stroke: "currentColor",
|
|
3230
|
+
"aria-hidden": "true"
|
|
3231
|
+
}, [
|
|
3232
|
+
v("path", {
|
|
3233
|
+
"stroke-linecap": "round",
|
|
3234
|
+
"stroke-linejoin": "round",
|
|
3235
|
+
d: "M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"
|
|
3236
|
+
})
|
|
3237
|
+
]);
|
|
3238
|
+
}
|
|
3239
|
+
function Fl(e, t) {
|
|
3240
|
+
return D(), T("svg", {
|
|
3241
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
3242
|
+
fill: "none",
|
|
3243
|
+
viewBox: "0 0 24 24",
|
|
3244
|
+
"stroke-width": "1.5",
|
|
3245
|
+
stroke: "currentColor",
|
|
3246
|
+
"aria-hidden": "true"
|
|
3247
|
+
}, [
|
|
3248
|
+
v("path", {
|
|
3249
|
+
"stroke-linecap": "round",
|
|
3250
|
+
"stroke-linejoin": "round",
|
|
3251
|
+
d: "M6 18L18 6M6 6l12 12"
|
|
3252
|
+
})
|
|
3253
|
+
]);
|
|
3254
|
+
}
|
|
3255
|
+
const St = (e, t) => {
|
|
3256
|
+
const n = e.__vccOpts || e;
|
|
3257
|
+
for (const [r, o] of t)
|
|
3258
|
+
n[r] = o;
|
|
3259
|
+
return n;
|
|
3260
|
+
}, _l = {
|
|
3261
|
+
data() {
|
|
3262
|
+
return {
|
|
3263
|
+
isSignup: !1,
|
|
3264
|
+
email: "",
|
|
3265
|
+
emailErrorHelp: "",
|
|
3266
|
+
name: "",
|
|
3267
|
+
password: "",
|
|
3268
|
+
passwordErrorHelp: "",
|
|
3269
|
+
errCode: 0,
|
|
3270
|
+
disabled: !1
|
|
3271
|
+
};
|
|
3272
|
+
},
|
|
3273
|
+
components: {},
|
|
3274
|
+
directives: {
|
|
3275
|
+
focus: {
|
|
3276
|
+
inserted: function(e) {
|
|
3277
|
+
e.focus();
|
|
3278
|
+
}
|
|
3279
|
+
}
|
|
3280
|
+
},
|
|
3281
|
+
mounted() {
|
|
3282
|
+
typeof google < "u" && (google.accounts.id.initialize({
|
|
3283
|
+
client_id: "704677828444-ihbv6faprun043f3iuponnrctutdssgj.apps.googleusercontent.com",
|
|
3284
|
+
callback: this.handleCredentialResponse
|
|
3285
|
+
}), google.accounts.id.renderButton(
|
|
3286
|
+
document.getElementById("buttonDiv"),
|
|
3287
|
+
{ theme: "outline", size: "large", width: "255" }
|
|
3288
|
+
));
|
|
3289
|
+
},
|
|
3290
|
+
methods: {
|
|
3291
|
+
handleFbLogin() {
|
|
3292
|
+
if (typeof FB < "u") {
|
|
3293
|
+
const e = _e.service({
|
|
3294
|
+
text: "logining...",
|
|
3295
|
+
background: "rgba(0, 0, 0, 0.7)"
|
|
3296
|
+
});
|
|
3297
|
+
FB.login((t) => {
|
|
3298
|
+
if (console.log(t), t.status === "connected")
|
|
3299
|
+
Bs(t.authResponse.accessToken).then((n) => {
|
|
3300
|
+
e.close(), this.$emit("success");
|
|
3301
|
+
try {
|
|
3302
|
+
document.body.classList.remove("el-loading-parent--relative");
|
|
3303
|
+
} catch {
|
|
3304
|
+
}
|
|
3305
|
+
}, (n) => {
|
|
3306
|
+
console.log(n, "1");
|
|
3307
|
+
});
|
|
3308
|
+
else {
|
|
3309
|
+
e.close();
|
|
3310
|
+
try {
|
|
3311
|
+
document.body.classList.remove("el-loading-parent--relative");
|
|
3312
|
+
} catch {
|
|
3313
|
+
}
|
|
3314
|
+
}
|
|
3315
|
+
}, { scope: "public_profile,email" });
|
|
3316
|
+
}
|
|
3317
|
+
},
|
|
3318
|
+
handleCredentialResponse(e) {
|
|
3319
|
+
if (console.log(e, "response"), !e || !e.credential)
|
|
3320
|
+
return;
|
|
3321
|
+
const t = _e.service({
|
|
3322
|
+
text: "logining...",
|
|
3323
|
+
background: "rgba(0, 0, 0, 0.7)"
|
|
3324
|
+
});
|
|
3325
|
+
Sr(e.credential).then((n) => {
|
|
3326
|
+
console.log("loginGoogle", n), t.close(), this.$emit("success");
|
|
3327
|
+
try {
|
|
3328
|
+
document.body.classList.remove("el-loading-parent--relative");
|
|
3329
|
+
} catch {
|
|
3330
|
+
}
|
|
3331
|
+
}, (n) => {
|
|
3332
|
+
console.log(n, 2);
|
|
3333
|
+
});
|
|
3334
|
+
},
|
|
3335
|
+
// checkLoginState() {
|
|
3336
|
+
// this.$loading.show({
|
|
3337
|
+
// loadingText: 'logining...'
|
|
3338
|
+
// })
|
|
3339
|
+
// FB.getLoginStatus((response) => {
|
|
3340
|
+
// console.log(response);
|
|
3341
|
+
// if (response.status === 'connected') {
|
|
3342
|
+
// loginFacebook(response.authResponse.accessToken).then(() => {
|
|
3343
|
+
// this.$emit('success');
|
|
3344
|
+
// }, (err) => {
|
|
3345
|
+
// this.showToast(err.msg);
|
|
3346
|
+
// })
|
|
3347
|
+
// } else {
|
|
3348
|
+
// this.$loading.hide();
|
|
3349
|
+
// }
|
|
3350
|
+
// })
|
|
3351
|
+
// },
|
|
3352
|
+
handleToLogin() {
|
|
3353
|
+
this.isSignup = !1;
|
|
3354
|
+
},
|
|
3355
|
+
handleToSignup() {
|
|
3356
|
+
this.isSignup = !0;
|
|
3357
|
+
},
|
|
3358
|
+
handleInput() {
|
|
3359
|
+
this.emailErrorHelp = "", this.passwordErrorHelp = "";
|
|
3360
|
+
},
|
|
3361
|
+
handleInputBlur() {
|
|
3362
|
+
},
|
|
3363
|
+
handleLogin() {
|
|
3364
|
+
if (!this.email) {
|
|
3365
|
+
this.showToast("Email must no be empty");
|
|
3366
|
+
return;
|
|
3367
|
+
}
|
|
3368
|
+
if (this.emailErrorHelp || this.passwordErrorHelp) {
|
|
3369
|
+
this.showToast(this.emailErrorHelp || this.passwordErrorHelp);
|
|
3370
|
+
return;
|
|
3371
|
+
}
|
|
3372
|
+
if (!this.password) {
|
|
3373
|
+
this.showToast("Password must no be empty");
|
|
3374
|
+
return;
|
|
3375
|
+
}
|
|
3376
|
+
const e = _e.service({
|
|
3377
|
+
text: "logining...",
|
|
3378
|
+
background: "rgba(0, 0, 0, 0.7)"
|
|
3379
|
+
});
|
|
3380
|
+
Gs(this.email, this.password).then((t) => {
|
|
3381
|
+
e.close(), this.$emit("success");
|
|
3382
|
+
try {
|
|
3383
|
+
document.body.classList.remove("el-loading-parent--relative");
|
|
3384
|
+
} catch {
|
|
3385
|
+
}
|
|
3386
|
+
}, (t) => {
|
|
3387
|
+
e.close(), this.passwordErrorHelp = t.msg, this.errCode = t.ok;
|
|
3388
|
+
try {
|
|
3389
|
+
document.body.classList.remove("el-loading-parent--relative");
|
|
3390
|
+
} catch {
|
|
3391
|
+
}
|
|
3392
|
+
});
|
|
3393
|
+
},
|
|
3394
|
+
handleSignup() {
|
|
3395
|
+
if (!this.email) {
|
|
3396
|
+
this.showToast("Email must no be empty");
|
|
3397
|
+
return;
|
|
3398
|
+
}
|
|
3399
|
+
if (this.emailErrorHelp) {
|
|
3400
|
+
this.showToast(this.emailErrorHelp);
|
|
3401
|
+
return;
|
|
3402
|
+
}
|
|
3403
|
+
if (!this.name) {
|
|
3404
|
+
this.showToast("Username must no be empty");
|
|
3405
|
+
return;
|
|
3406
|
+
}
|
|
3407
|
+
if (!this.password) {
|
|
3408
|
+
this.showToast("Password must no be empty");
|
|
3409
|
+
return;
|
|
3410
|
+
}
|
|
3411
|
+
const e = _e.service({
|
|
3412
|
+
text: "registering...",
|
|
3413
|
+
background: "rgba(0, 0, 0, 0.7)"
|
|
3414
|
+
});
|
|
3415
|
+
Us(this.email, this.name, this.password).then((t) => {
|
|
3416
|
+
e.close(), location.href = t.url;
|
|
3417
|
+
try {
|
|
3418
|
+
document.body.classList.remove("el-loading-parent--relative");
|
|
3419
|
+
} catch {
|
|
3420
|
+
}
|
|
3421
|
+
}, (t) => {
|
|
3422
|
+
if (t.msg, t.data && t.data.errors) {
|
|
3423
|
+
const n = t.data.errors;
|
|
3424
|
+
n.email ? typeof n.email == "string" ? n.email : n.email[0] : n.username ? typeof n.username == "string" ? n.username : n.username[0] : n.password && (typeof n.password == "string" ? n.password : n.password[0]);
|
|
3425
|
+
}
|
|
3426
|
+
console.log(t, "3");
|
|
3427
|
+
});
|
|
3428
|
+
},
|
|
3429
|
+
showToast(e) {
|
|
3430
|
+
console.log(e, 4);
|
|
3431
|
+
}
|
|
3432
|
+
}
|
|
3433
|
+
}, V = (e) => (ft("data-v-03c9907e"), e = e(), pt(), e), Ml = { class: "login-wapper" }, kl = /* @__PURE__ */ V(() => /* @__PURE__ */ v("span", null, "Login here", -1)), Bl = /* @__PURE__ */ V(() => /* @__PURE__ */ v("span", null, "Sign up here", -1)), Gl = { class: "accounts" }, Ul = /* @__PURE__ */ V(() => /* @__PURE__ */ v("div", { class: "account" }, [
|
|
3434
|
+
/* @__PURE__ */ v("div", { id: "buttonDiv" })
|
|
3435
|
+
], -1)), zl = /* @__PURE__ */ V(() => /* @__PURE__ */ v("svg", {
|
|
3436
|
+
t: "1661493482810",
|
|
3437
|
+
class: "icon",
|
|
3438
|
+
viewBox: "0 0 1024 1024",
|
|
3439
|
+
version: "1.1",
|
|
3440
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
3441
|
+
"p-id": "3146",
|
|
3442
|
+
width: "24",
|
|
3443
|
+
height: "24"
|
|
3444
|
+
}, [
|
|
3445
|
+
/* @__PURE__ */ v("path", {
|
|
3446
|
+
d: "M512.262115 959.556658c247.175132 0 447.569968-200.366167 447.569968-447.556658 0-247.16387-200.394836-447.556658-447.569968-447.556658-247.17718 0-447.556658 200.392788-447.556658 447.556658-0.001024 247.190491 200.378454 447.556658 447.556658 447.556658",
|
|
3447
|
+
fill: "#537BBC",
|
|
3448
|
+
"p-id": "3147"
|
|
3449
|
+
}),
|
|
3450
|
+
/* @__PURE__ */ v("path", {
|
|
3451
|
+
d: "M404.292383 436.216104h46.269378v-44.969044c0-19.828563 0.499656-50.408946 14.904699-69.347753 15.172957-20.05689 36.000832-33.690947 71.826579-33.690946 58.371702 0 82.952117 8.326235 82.952118 8.326235l-11.564785 68.550147s-19.285904-5.576079-37.275569-5.57608c-17.99888 0-34.111763 6.449454-34.111764 24.438095v52.269346h73.791416l-5.152191 66.958004h-68.639225v232.604221h-86.731278V503.174108h-46.269378v-66.958004z",
|
|
3452
|
+
fill: "#FFFFFF",
|
|
3453
|
+
"p-id": "3148"
|
|
3454
|
+
})
|
|
3455
|
+
], -1)), Hl = /* @__PURE__ */ V(() => /* @__PURE__ */ v("div", { style: { flex: "1", "margin-left": "5px", "font-size": "14px", "font-weight": "500" } }, "Login With Facebook", -1)), Ql = [
|
|
3456
|
+
zl,
|
|
3457
|
+
Hl
|
|
3458
|
+
], Yl = /* @__PURE__ */ V(() => /* @__PURE__ */ v("div", { class: "divider" }, [
|
|
3459
|
+
/* @__PURE__ */ v("div", null, "Or Email")
|
|
3460
|
+
], -1)), Vl = { class: "form-group" }, Jl = /* @__PURE__ */ V(() => /* @__PURE__ */ v("label", { for: "user_email" }, "Email", -1)), Wl = {
|
|
3461
|
+
key: 0,
|
|
3462
|
+
class: "help-block-error"
|
|
3463
|
+
}, Kl = {
|
|
3464
|
+
key: 0,
|
|
3465
|
+
class: "form-group"
|
|
3466
|
+
}, ql = /* @__PURE__ */ V(() => /* @__PURE__ */ v("label", { for: "user_name" }, "Username", -1)), Zl = { class: "form-group" }, Xl = /* @__PURE__ */ V(() => /* @__PURE__ */ v("label", { for: "user_password" }, "Password", -1)), $l = {
|
|
3467
|
+
key: 0,
|
|
3468
|
+
class: "help-block-error"
|
|
3469
|
+
}, ec = { key: 0 }, tc = /* @__PURE__ */ V(() => /* @__PURE__ */ v("a", {
|
|
3470
|
+
href: "/user/resend-verify",
|
|
3471
|
+
target: "_blank"
|
|
3472
|
+
}, "Resend email", -1)), nc = [
|
|
3473
|
+
tc
|
|
3474
|
+
], rc = ["disabled"], oc = ["disabled"], sc = {
|
|
3475
|
+
key: 2,
|
|
3476
|
+
class: "link"
|
|
3477
|
+
}, ic = /* @__PURE__ */ V(() => /* @__PURE__ */ v("a", {
|
|
3478
|
+
href: "/user/password-reset",
|
|
3479
|
+
target: "_blank"
|
|
3480
|
+
}, "Forgot your password?", -1)), ac = [
|
|
3481
|
+
ic
|
|
3482
|
+
];
|
|
3483
|
+
function lc(e, t, n, r, o, s) {
|
|
3484
|
+
return D(), T("div", Ml, [
|
|
3485
|
+
v("h1", null, X(o.isSignup ? "Sign Up With Live Polls" : "Welcom! Please Login"), 1),
|
|
3486
|
+
o.isSignup ? (D(), T("div", {
|
|
3487
|
+
key: 0,
|
|
3488
|
+
class: "link",
|
|
3489
|
+
onClick: t[0] || (t[0] = (...i) => s.handleToLogin && s.handleToLogin(...i))
|
|
3490
|
+
}, [
|
|
3491
|
+
tt("Already registered? "),
|
|
3492
|
+
kl
|
|
3493
|
+
])) : (D(), T("div", {
|
|
3494
|
+
key: 1,
|
|
3495
|
+
class: "link",
|
|
3496
|
+
onClick: t[1] || (t[1] = (...i) => s.handleToSignup && s.handleToSignup(...i))
|
|
3497
|
+
}, [
|
|
3498
|
+
tt("New to Live Polls? "),
|
|
3499
|
+
Bl
|
|
3500
|
+
])),
|
|
3501
|
+
v("div", Gl, [
|
|
3502
|
+
Ul,
|
|
3503
|
+
v("div", {
|
|
3504
|
+
class: "account flew-row-v-center",
|
|
3505
|
+
style: { padding: "0 12px", "border-radius": "4px" },
|
|
3506
|
+
onClick: t[2] || (t[2] = (...i) => s.handleFbLogin && s.handleFbLogin(...i))
|
|
3507
|
+
}, Ql)
|
|
3508
|
+
]),
|
|
3509
|
+
Yl,
|
|
3510
|
+
v("div", null, [
|
|
3511
|
+
v("div", Vl, [
|
|
3512
|
+
Jl,
|
|
3513
|
+
Ge(v("input", {
|
|
3514
|
+
id: "user_email",
|
|
3515
|
+
type: "email",
|
|
3516
|
+
"onUpdate:modelValue": t[3] || (t[3] = (i) => o.email = i),
|
|
3517
|
+
onInput: t[4] || (t[4] = (...i) => s.handleInput && s.handleInput(...i)),
|
|
3518
|
+
onBlur: t[5] || (t[5] = (...i) => s.handleInputBlur && s.handleInputBlur(...i))
|
|
3519
|
+
}, null, 544), [
|
|
3520
|
+
[Rt, o.email]
|
|
3521
|
+
]),
|
|
3522
|
+
o.emailErrorHelp ? (D(), T("p", Wl, X(o.emailErrorHelp), 1)) : B("", !0)
|
|
3523
|
+
]),
|
|
3524
|
+
o.isSignup ? (D(), T("div", Kl, [
|
|
3525
|
+
ql,
|
|
3526
|
+
Ge(v("input", {
|
|
3527
|
+
id: "user_name",
|
|
3528
|
+
type: "text",
|
|
3529
|
+
"onUpdate:modelValue": t[6] || (t[6] = (i) => o.name = i)
|
|
3530
|
+
}, null, 512), [
|
|
3531
|
+
[Rt, o.name]
|
|
3532
|
+
])
|
|
3533
|
+
])) : B("", !0),
|
|
3534
|
+
v("div", Zl, [
|
|
3535
|
+
Xl,
|
|
3536
|
+
Ge(v("input", {
|
|
3537
|
+
id: "user_password",
|
|
3538
|
+
type: "password",
|
|
3539
|
+
"onUpdate:modelValue": t[7] || (t[7] = (i) => o.password = i),
|
|
3540
|
+
onInput: t[8] || (t[8] = (...i) => s.handleInput && s.handleInput(...i))
|
|
3541
|
+
}, null, 544), [
|
|
3542
|
+
[Rt, o.password]
|
|
3543
|
+
]),
|
|
3544
|
+
o.passwordErrorHelp ? (D(), T("p", $l, [
|
|
3545
|
+
tt(X(o.passwordErrorHelp) + " ", 1),
|
|
3546
|
+
o.errCode == 2 ? (D(), T("span", ec, nc)) : B("", !0)
|
|
3547
|
+
])) : B("", !0)
|
|
3548
|
+
]),
|
|
3549
|
+
o.isSignup ? (D(), T("button", {
|
|
3550
|
+
key: 1,
|
|
3551
|
+
class: "form-button",
|
|
3552
|
+
disabled: o.disabled,
|
|
3553
|
+
onClick: t[9] || (t[9] = (...i) => s.handleSignup && s.handleSignup(...i))
|
|
3554
|
+
}, "Create Your Account", 8, rc)) : (D(), T("button", {
|
|
3555
|
+
key: 2,
|
|
3556
|
+
class: "form-button",
|
|
3557
|
+
disabled: o.disabled,
|
|
3558
|
+
onClick: t[10] || (t[10] = (...i) => s.handleLogin && s.handleLogin(...i))
|
|
3559
|
+
}, "Login", 8, oc))
|
|
3560
|
+
]),
|
|
3561
|
+
o.isSignup ? B("", !0) : (D(), T("div", sc, ac))
|
|
3562
|
+
]);
|
|
3563
|
+
}
|
|
3564
|
+
const cc = /* @__PURE__ */ St(_l, [["render", lc], ["__scopeId", "data-v-03c9907e"]]);
|
|
3565
|
+
const uc = {
|
|
3566
|
+
data() {
|
|
3567
|
+
return {};
|
|
3568
|
+
},
|
|
3569
|
+
components: {
|
|
3570
|
+
Login1: cc
|
|
3571
|
+
},
|
|
3572
|
+
mounted() {
|
|
3573
|
+
},
|
|
3574
|
+
methods: {
|
|
3575
|
+
handleLoginSuccess() {
|
|
3576
|
+
this.$emit("success");
|
|
3577
|
+
const e = localStorage.getItem("cache_passport");
|
|
3578
|
+
e && (ks(e), localStorage.removeItem("cache_passport"), xr({ passport: e }, "active_passport_success"));
|
|
3579
|
+
},
|
|
3580
|
+
handleClose() {
|
|
3581
|
+
this.$emit("close");
|
|
3582
|
+
}
|
|
3583
|
+
}
|
|
3584
|
+
}, dc = (e) => (ft("data-v-d71a2c81"), e = e(), pt(), e), fc = { class: "background-cover" }, pc = { class: "login-content" }, hc = /* @__PURE__ */ dc(() => /* @__PURE__ */ v("svg", {
|
|
3585
|
+
t: "1641536858080",
|
|
3586
|
+
class: "icon",
|
|
3587
|
+
viewBox: "0 0 1024 1024",
|
|
3588
|
+
version: "1.1",
|
|
3589
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
3590
|
+
"p-id": "1477",
|
|
3591
|
+
width: "32",
|
|
3592
|
+
height: "32"
|
|
3593
|
+
}, [
|
|
3594
|
+
/* @__PURE__ */ v("path", {
|
|
3595
|
+
d: "M512 455.431L794.843 172.59a8 8 0 0 1 11.313 0l45.255 45.255a8 8 0 0 1 0 11.313L568.57 512 851.41 794.843a8 8 0 0 1 0 11.313l-45.255 45.255a8 8 0 0 1-11.313 0L512 568.57 229.157 851.41a8 8 0 0 1-11.313 0l-45.255-45.255a8 8 0 0 1 0-11.313L455.43 512 172.59 229.157a8 8 0 0 1 0-11.313l45.255-45.255a8 8 0 0 1 11.313 0L512 455.43z",
|
|
3596
|
+
"p-id": "1478",
|
|
3597
|
+
fill: "#2c2c2c"
|
|
3598
|
+
})
|
|
3599
|
+
], -1)), mc = [
|
|
3600
|
+
hc
|
|
3601
|
+
];
|
|
3602
|
+
function gc(e, t, n, r, o, s) {
|
|
3603
|
+
const i = po("Login1");
|
|
3604
|
+
return D(), T("div", fc, [
|
|
3605
|
+
v("div", pc, [
|
|
3606
|
+
ye(i, { onSuccess: s.handleLoginSuccess }, null, 8, ["onSuccess"]),
|
|
3607
|
+
v("div", {
|
|
3608
|
+
class: "cancel",
|
|
3609
|
+
onClick: t[0] || (t[0] = (...a) => s.handleClose && s.handleClose(...a))
|
|
3610
|
+
}, mc)
|
|
3611
|
+
])
|
|
3612
|
+
]);
|
|
3613
|
+
}
|
|
3614
|
+
const vc = /* @__PURE__ */ St(uc, [["render", gc], ["__scopeId", "data-v-d71a2c81"]]);
|
|
3615
|
+
/*!
|
|
3616
|
+
* pinia v2.1.4
|
|
3617
|
+
* (c) 2023 Eduardo San Martin Morote
|
|
3618
|
+
* @license MIT
|
|
3619
|
+
*/
|
|
3620
|
+
let Be;
|
|
3621
|
+
const dt = (e) => Be = e, wc = process.env.NODE_ENV !== "production" ? Symbol("pinia") : (
|
|
3622
|
+
/* istanbul ignore next */
|
|
3623
|
+
Symbol()
|
|
3624
|
+
);
|
|
3625
|
+
function de(e) {
|
|
3626
|
+
return e && typeof e == "object" && Object.prototype.toString.call(e) === "[object Object]" && typeof e.toJSON != "function";
|
|
3627
|
+
}
|
|
3628
|
+
var ze;
|
|
3629
|
+
(function(e) {
|
|
3630
|
+
e.direct = "direct", e.patchObject = "patch object", e.patchFunction = "patch function";
|
|
3631
|
+
})(ze || (ze = {}));
|
|
3632
|
+
const An = typeof window < "u", zt = (process.env.NODE_ENV !== "production" || !1) && process.env.NODE_ENV !== "test" && An;
|
|
3633
|
+
function ro(e, t) {
|
|
3634
|
+
for (const n in t) {
|
|
3635
|
+
const r = t[n];
|
|
3636
|
+
if (!(n in e))
|
|
3637
|
+
continue;
|
|
3638
|
+
const o = e[n];
|
|
3639
|
+
de(o) && de(r) && !le(r) && !un(r) ? e[n] = ro(o, r) : e[n] = r;
|
|
3640
|
+
}
|
|
3641
|
+
return e;
|
|
3642
|
+
}
|
|
3643
|
+
const oo = () => {
|
|
3644
|
+
};
|
|
3645
|
+
function Xn(e, t, n, r = oo) {
|
|
3646
|
+
e.push(t);
|
|
3647
|
+
const o = () => {
|
|
3648
|
+
const s = e.indexOf(t);
|
|
3649
|
+
s > -1 && (e.splice(s, 1), r());
|
|
3650
|
+
};
|
|
3651
|
+
return !n && vo() && wo(o), o;
|
|
3652
|
+
}
|
|
3653
|
+
function we(e, ...t) {
|
|
3654
|
+
e.slice().forEach((n) => {
|
|
3655
|
+
n(...t);
|
|
3656
|
+
});
|
|
3657
|
+
}
|
|
3658
|
+
const yc = (e) => e();
|
|
3659
|
+
function sn(e, t) {
|
|
3660
|
+
e instanceof Map && t instanceof Map && t.forEach((n, r) => e.set(r, n)), e instanceof Set && t instanceof Set && t.forEach(e.add, e);
|
|
3661
|
+
for (const n in t) {
|
|
3662
|
+
if (!t.hasOwnProperty(n))
|
|
3663
|
+
continue;
|
|
3664
|
+
const r = t[n], o = e[n];
|
|
3665
|
+
de(o) && de(r) && e.hasOwnProperty(n) && !le(r) && !un(r) ? e[n] = sn(o, r) : e[n] = r;
|
|
3666
|
+
}
|
|
3667
|
+
return e;
|
|
3668
|
+
}
|
|
3669
|
+
const bc = process.env.NODE_ENV !== "production" ? Symbol("pinia:skipHydration") : (
|
|
3670
|
+
/* istanbul ignore next */
|
|
3671
|
+
Symbol()
|
|
3672
|
+
);
|
|
3673
|
+
function Ec(e) {
|
|
3674
|
+
return !de(e) || !e.hasOwnProperty(bc);
|
|
3675
|
+
}
|
|
3676
|
+
const { assign: U } = Object;
|
|
3677
|
+
function $n(e) {
|
|
3678
|
+
return !!(le(e) && e.effect);
|
|
3679
|
+
}
|
|
3680
|
+
function er(e, t, n, r) {
|
|
3681
|
+
const { state: o, actions: s, getters: i } = t, a = n.state.value[e];
|
|
3682
|
+
let u;
|
|
3683
|
+
function l() {
|
|
3684
|
+
!a && (process.env.NODE_ENV === "production" || !r) && (n.state.value[e] = o ? o() : {});
|
|
3685
|
+
const d = process.env.NODE_ENV !== "production" && r ? (
|
|
3686
|
+
// use ref() to unwrap refs inside state TODO: check if this is still necessary
|
|
3687
|
+
Qt(C(o ? o() : {}).value)
|
|
3688
|
+
) : Qt(n.state.value[e]);
|
|
3689
|
+
return U(d, s, Object.keys(i || {}).reduce((c, p) => (process.env.NODE_ENV !== "production" && p in d && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${p}" in store "${e}".`), c[p] = Fe(E(() => {
|
|
3690
|
+
dt(n);
|
|
3691
|
+
const g = n._s.get(e);
|
|
3692
|
+
return i[p].call(g, g);
|
|
3693
|
+
})), c), {}));
|
|
3694
|
+
}
|
|
3695
|
+
return u = an(e, l, t, n, r, !0), u;
|
|
3696
|
+
}
|
|
3697
|
+
function an(e, t, n = {}, r, o, s) {
|
|
3698
|
+
let i;
|
|
3699
|
+
const a = U({ actions: {} }, n);
|
|
3700
|
+
if (process.env.NODE_ENV !== "production" && !r._e.active)
|
|
3701
|
+
throw new Error("Pinia destroyed");
|
|
3702
|
+
const u = {
|
|
3703
|
+
deep: !0
|
|
3704
|
+
// flush: 'post',
|
|
3705
|
+
};
|
|
3706
|
+
process.env.NODE_ENV !== "production" && !zs && (u.onTrigger = (y) => {
|
|
3707
|
+
l ? g = y : l == !1 && !A._hotUpdating && (Array.isArray(g) ? g.push(y) : console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."));
|
|
3708
|
+
});
|
|
3709
|
+
let l, d, c = [], p = [], g;
|
|
3710
|
+
const m = r.state.value[e];
|
|
3711
|
+
!s && !m && (process.env.NODE_ENV === "production" || !o) && (r.state.value[e] = {});
|
|
3712
|
+
const h = C({});
|
|
3713
|
+
let b;
|
|
3714
|
+
function x(y) {
|
|
3715
|
+
let w;
|
|
3716
|
+
l = d = !1, process.env.NODE_ENV !== "production" && (g = []), typeof y == "function" ? (y(r.state.value[e]), w = {
|
|
3717
|
+
type: ze.patchFunction,
|
|
3718
|
+
storeId: e,
|
|
3719
|
+
events: g
|
|
3720
|
+
}) : (sn(r.state.value[e], y), w = {
|
|
3721
|
+
type: ze.patchObject,
|
|
3722
|
+
payload: y,
|
|
3723
|
+
storeId: e,
|
|
3724
|
+
events: g
|
|
3725
|
+
});
|
|
3726
|
+
const R = b = Symbol();
|
|
3727
|
+
He().then(() => {
|
|
3728
|
+
b === R && (l = !0);
|
|
3729
|
+
}), d = !0, we(c, w, r.state.value[e]);
|
|
3730
|
+
}
|
|
3731
|
+
const N = s ? function() {
|
|
3732
|
+
const { state: w } = n, R = w ? w() : {};
|
|
3733
|
+
this.$patch((I) => {
|
|
3734
|
+
U(I, R);
|
|
3735
|
+
});
|
|
3736
|
+
} : (
|
|
3737
|
+
/* istanbul ignore next */
|
|
3738
|
+
process.env.NODE_ENV !== "production" ? () => {
|
|
3739
|
+
throw new Error(`🍍: Store "${e}" is built using the setup syntax and does not implement $reset().`);
|
|
3740
|
+
} : oo
|
|
3741
|
+
);
|
|
3742
|
+
function j() {
|
|
3743
|
+
i.stop(), c = [], p = [], r._s.delete(e);
|
|
3744
|
+
}
|
|
3745
|
+
function _(y, w) {
|
|
3746
|
+
return function() {
|
|
3747
|
+
dt(r);
|
|
3748
|
+
const R = Array.from(arguments), I = [], re = [];
|
|
3749
|
+
function Pt(P) {
|
|
3750
|
+
I.push(P);
|
|
3751
|
+
}
|
|
3752
|
+
function Dt(P) {
|
|
3753
|
+
re.push(P);
|
|
3754
|
+
}
|
|
3755
|
+
we(p, {
|
|
3756
|
+
args: R,
|
|
3757
|
+
name: y,
|
|
3758
|
+
store: A,
|
|
3759
|
+
after: Pt,
|
|
3760
|
+
onError: Dt
|
|
3761
|
+
});
|
|
3762
|
+
let O;
|
|
3763
|
+
try {
|
|
3764
|
+
O = w.apply(this && this.$id === e ? this : A, R);
|
|
3765
|
+
} catch (P) {
|
|
3766
|
+
throw we(re, P), P;
|
|
3767
|
+
}
|
|
3768
|
+
return O instanceof Promise ? O.then((P) => (we(I, P), P)).catch((P) => (we(re, P), Promise.reject(P))) : (we(I, O), O);
|
|
3769
|
+
};
|
|
3770
|
+
}
|
|
3771
|
+
const ge = /* @__PURE__ */ Fe({
|
|
3772
|
+
actions: {},
|
|
3773
|
+
getters: {},
|
|
3774
|
+
state: [],
|
|
3775
|
+
hotState: h
|
|
3776
|
+
}), De = {
|
|
3777
|
+
_p: r,
|
|
3778
|
+
// _s: scope,
|
|
3779
|
+
$id: e,
|
|
3780
|
+
$onAction: Xn.bind(null, p),
|
|
3781
|
+
$patch: x,
|
|
3782
|
+
$reset: N,
|
|
3783
|
+
$subscribe(y, w = {}) {
|
|
3784
|
+
const R = Xn(c, y, w.detached, () => I()), I = i.run(() => Ve(() => r.state.value[e], (re) => {
|
|
3785
|
+
(w.flush === "sync" ? d : l) && y({
|
|
3786
|
+
storeId: e,
|
|
3787
|
+
type: ze.direct,
|
|
3788
|
+
events: g
|
|
3789
|
+
}, re);
|
|
3790
|
+
}, U({}, u, w)));
|
|
3791
|
+
return R;
|
|
3792
|
+
},
|
|
3793
|
+
$dispose: j
|
|
3794
|
+
}, A = cn(process.env.NODE_ENV !== "production" || zt ? U(
|
|
3795
|
+
{
|
|
3796
|
+
_hmrPayload: ge,
|
|
3797
|
+
_customProperties: Fe(/* @__PURE__ */ new Set())
|
|
3798
|
+
// devtools custom properties
|
|
3799
|
+
},
|
|
3800
|
+
De
|
|
3801
|
+
// must be added later
|
|
3802
|
+
// setupStore
|
|
3803
|
+
) : De);
|
|
3804
|
+
r._s.set(e, A);
|
|
3805
|
+
const Ot = r._a && r._a.runWithContext || yc, J = r._e.run(() => (i = mo(), Ot(() => i.run(t))));
|
|
3806
|
+
for (const y in J) {
|
|
3807
|
+
const w = J[y];
|
|
3808
|
+
if (le(w) && !$n(w) || un(w))
|
|
3809
|
+
process.env.NODE_ENV !== "production" && o ? Xe(h.value, y, Tt(J, y)) : s || (m && Ec(w) && (le(w) ? w.value = m[y] : sn(w, m[y])), r.state.value[e][y] = w), process.env.NODE_ENV !== "production" && ge.state.push(y);
|
|
3810
|
+
else if (typeof w == "function") {
|
|
3811
|
+
const R = process.env.NODE_ENV !== "production" && o ? w : _(y, w);
|
|
3812
|
+
J[y] = R, process.env.NODE_ENV !== "production" && (ge.actions[y] = w), a.actions[y] = w;
|
|
3813
|
+
} else
|
|
3814
|
+
process.env.NODE_ENV !== "production" && $n(w) && (ge.getters[y] = s ? (
|
|
3815
|
+
// @ts-expect-error
|
|
3816
|
+
n.getters[y]
|
|
3817
|
+
) : w, An && (J._getters || // @ts-expect-error: same
|
|
3818
|
+
(J._getters = Fe([]))).push(y));
|
|
3819
|
+
}
|
|
3820
|
+
if (U(A, J), U(go(A), J), Object.defineProperty(A, "$state", {
|
|
3821
|
+
get: () => process.env.NODE_ENV !== "production" && o ? h.value : r.state.value[e],
|
|
3822
|
+
set: (y) => {
|
|
3823
|
+
if (process.env.NODE_ENV !== "production" && o)
|
|
3824
|
+
throw new Error("cannot set hotState");
|
|
3825
|
+
x((w) => {
|
|
3826
|
+
U(w, y);
|
|
3827
|
+
});
|
|
3828
|
+
}
|
|
3829
|
+
}), process.env.NODE_ENV !== "production" && (A._hotUpdate = Fe((y) => {
|
|
3830
|
+
A._hotUpdating = !0, y._hmrPayload.state.forEach((w) => {
|
|
3831
|
+
if (w in A.$state) {
|
|
3832
|
+
const R = y.$state[w], I = A.$state[w];
|
|
3833
|
+
typeof R == "object" && de(R) && de(I) ? ro(R, I) : y.$state[w] = I;
|
|
3834
|
+
}
|
|
3835
|
+
Xe(A, w, Tt(y.$state, w));
|
|
3836
|
+
}), Object.keys(A.$state).forEach((w) => {
|
|
3837
|
+
w in y.$state || kt(A, w);
|
|
3838
|
+
}), l = !1, d = !1, r.state.value[e] = Tt(y._hmrPayload, "hotState"), d = !0, He().then(() => {
|
|
3839
|
+
l = !0;
|
|
3840
|
+
});
|
|
3841
|
+
for (const w in y._hmrPayload.actions) {
|
|
3842
|
+
const R = y[w];
|
|
3843
|
+
Xe(A, w, _(w, R));
|
|
3844
|
+
}
|
|
3845
|
+
for (const w in y._hmrPayload.getters) {
|
|
3846
|
+
const R = y._hmrPayload.getters[w], I = s ? (
|
|
3847
|
+
// special handling of options api
|
|
3848
|
+
E(() => (dt(r), R.call(A, A)))
|
|
3849
|
+
) : R;
|
|
3850
|
+
Xe(A, w, I);
|
|
3851
|
+
}
|
|
3852
|
+
Object.keys(A._hmrPayload.getters).forEach((w) => {
|
|
3853
|
+
w in y._hmrPayload.getters || kt(A, w);
|
|
3854
|
+
}), Object.keys(A._hmrPayload.actions).forEach((w) => {
|
|
3855
|
+
w in y._hmrPayload.actions || kt(A, w);
|
|
3856
|
+
}), A._hmrPayload = y._hmrPayload, A._getters = y._getters, A._hotUpdating = !1;
|
|
3857
|
+
})), zt) {
|
|
3858
|
+
const y = {
|
|
3859
|
+
writable: !0,
|
|
3860
|
+
configurable: !0,
|
|
3861
|
+
// avoid warning on devtools trying to display this property
|
|
3862
|
+
enumerable: !1
|
|
3863
|
+
};
|
|
3864
|
+
["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((w) => {
|
|
3865
|
+
Object.defineProperty(A, w, U({ value: A[w] }, y));
|
|
3866
|
+
});
|
|
3867
|
+
}
|
|
3868
|
+
return r._p.forEach((y) => {
|
|
3869
|
+
if (zt) {
|
|
3870
|
+
const w = i.run(() => y({
|
|
3871
|
+
store: A,
|
|
3872
|
+
app: r._a,
|
|
3873
|
+
pinia: r,
|
|
3874
|
+
options: a
|
|
3875
|
+
}));
|
|
3876
|
+
Object.keys(w || {}).forEach((R) => A._customProperties.add(R)), U(A, w);
|
|
3877
|
+
} else
|
|
3878
|
+
U(A, i.run(() => y({
|
|
3879
|
+
store: A,
|
|
3880
|
+
app: r._a,
|
|
3881
|
+
pinia: r,
|
|
3882
|
+
options: a
|
|
3883
|
+
})));
|
|
3884
|
+
}), process.env.NODE_ENV !== "production" && A.$state && typeof A.$state == "object" && typeof A.$state.constructor == "function" && !A.$state.constructor.toString().includes("[native code]") && console.warn(`[🍍]: The "state" must be a plain object. It cannot be
|
|
3885
|
+
state: () => new MyClass()
|
|
3886
|
+
Found in store "${A.$id}".`), m && s && n.hydrate && n.hydrate(A.$state, m), l = !0, d = !0, A;
|
|
3887
|
+
}
|
|
3888
|
+
function Ac(e, t, n) {
|
|
3889
|
+
let r, o;
|
|
3890
|
+
const s = typeof t == "function";
|
|
3891
|
+
if (typeof e == "string")
|
|
3892
|
+
r = e, o = s ? n : t;
|
|
3893
|
+
else if (o = e, r = e.id, process.env.NODE_ENV !== "production" && typeof r != "string")
|
|
3894
|
+
throw new Error('[🍍]: "defineStore()" must be passed a store id as its first argument.');
|
|
3895
|
+
function i(a, u) {
|
|
3896
|
+
const l = ho();
|
|
3897
|
+
if (a = // in test mode, ignore the argument provided as we can always retrieve a
|
|
3898
|
+
// pinia instance with getActivePinia()
|
|
3899
|
+
(process.env.NODE_ENV === "test" && Be && Be._testing ? null : a) || (l ? k(wc, null) : null), a && dt(a), process.env.NODE_ENV !== "production" && !Be)
|
|
3900
|
+
throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Did you forget to install pinia?
|
|
3901
|
+
const pinia = createPinia()
|
|
3902
|
+
app.use(pinia)
|
|
3903
|
+
This will fail in production.`);
|
|
3904
|
+
a = Be, a._s.has(r) || (s ? an(r, t, o, a) : er(r, o, a), process.env.NODE_ENV !== "production" && (i._pinia = a));
|
|
3905
|
+
const d = a._s.get(r);
|
|
3906
|
+
if (process.env.NODE_ENV !== "production" && u) {
|
|
3907
|
+
const c = "__hot:" + r, p = s ? an(c, t, o, a, !0) : er(c, U({}, o), a, !0);
|
|
3908
|
+
u._hotUpdate(p), delete a.state.value[c], a._s.delete(c);
|
|
3909
|
+
}
|
|
3910
|
+
if (process.env.NODE_ENV !== "production" && An) {
|
|
3911
|
+
const c = ln();
|
|
3912
|
+
if (c && c.proxy && // avoid adding stores that are just built for hot module replacement
|
|
3913
|
+
!u) {
|
|
3914
|
+
const p = c.proxy, g = "_pStores" in p ? p._pStores : p._pStores = {};
|
|
3915
|
+
g[r] = d;
|
|
3916
|
+
}
|
|
3917
|
+
}
|
|
3918
|
+
return d;
|
|
3919
|
+
}
|
|
3920
|
+
return i.$id = r, i;
|
|
3921
|
+
}
|
|
3922
|
+
function xc(e, t) {
|
|
3923
|
+
return Array.isArray(t) ? t.reduce((n, r) => (n[r] = function(...o) {
|
|
3924
|
+
return e(this.$pinia)[r](...o);
|
|
3925
|
+
}, n), {}) : Object.keys(t).reduce((n, r) => (n[r] = function(...o) {
|
|
3926
|
+
return e(this.$pinia)[t[r]](...o);
|
|
3927
|
+
}, n), {});
|
|
3928
|
+
}
|
|
3929
|
+
const Cc = Ac("user", {
|
|
3930
|
+
state: () => ({
|
|
3931
|
+
user: null,
|
|
3932
|
+
isShowLogin: !1,
|
|
3933
|
+
isShowToast: !1,
|
|
3934
|
+
toastContent: ""
|
|
3935
|
+
}),
|
|
3936
|
+
actions: {
|
|
3937
|
+
getUser() {
|
|
3938
|
+
return window.getUserStatusPromise = new Promise((e, t) => {
|
|
3939
|
+
_n().then(({ profile: n, subscription: r, drive: o }) => {
|
|
3940
|
+
if (n) {
|
|
3941
|
+
let { free_cnt: s, is_subscribed: i, detail: a } = r;
|
|
3942
|
+
s || (s = 0), a && a.ends_at && (i = new Date(a.ends_at) > /* @__PURE__ */ new Date());
|
|
3943
|
+
const u = { ...n, free_cnt: s, is_subscribed: i, subscribedType: i && a.name || "", detail: a, drive: o };
|
|
3944
|
+
this.user = u, window.userStatus = u;
|
|
3945
|
+
}
|
|
3946
|
+
e({ profile: n, subscription: r });
|
|
3947
|
+
}, (n) => {
|
|
3948
|
+
t(n);
|
|
3949
|
+
});
|
|
3950
|
+
});
|
|
3951
|
+
},
|
|
3952
|
+
logout() {
|
|
3953
|
+
this.user = null, window.userStatus = null;
|
|
3954
|
+
},
|
|
3955
|
+
updateUser(e = !1, t) {
|
|
3956
|
+
const n = ElLoading.service({
|
|
3957
|
+
text: "Upgrading....",
|
|
3958
|
+
background: "rgba(0, 0, 0, 0.7)"
|
|
3959
|
+
});
|
|
3960
|
+
let r = 1;
|
|
3961
|
+
const o = () => {
|
|
3962
|
+
_n().then(({ profile: s, subscription: i, drive: a }) => {
|
|
3963
|
+
let { free_cnt: u, is_subscribed: l, detail: d } = i;
|
|
3964
|
+
if (u || (u = 0), d && d.ends_at && (l = new Date(d.ends_at) > /* @__PURE__ */ new Date()), l || t == "purchase" && u) {
|
|
3965
|
+
const c = { ...s, free_cnt: u, is_subscribed: l, subscribedType: l && d.name || "", detail: d, drive: a };
|
|
3966
|
+
if (this.user = c, window.userStatus = c, window.opener) {
|
|
3967
|
+
const p = {
|
|
3968
|
+
type: "subscribed"
|
|
3969
|
+
// token: profile.token,
|
|
3970
|
+
// expire_at: profile.expire_at
|
|
3971
|
+
};
|
|
3972
|
+
xr({ message: p, user: c }, "subscribed:success"), window.opener.postMessage(p, process.env.NODE_ENV == "development" ? "http://localhost:8080" : "*");
|
|
3973
|
+
}
|
|
3974
|
+
n.close(), this.isShowToast = !0, this.toastContent = t == "purchase" ? "purchased credits" : "upgraded to a member", setTimeout(() => {
|
|
3975
|
+
if (this.isShowToast = !1, window.opener && !e)
|
|
3976
|
+
window.close();
|
|
3977
|
+
else {
|
|
3978
|
+
const p = Cr();
|
|
3979
|
+
p.product && p.product == "image_translator" && window.close();
|
|
3980
|
+
}
|
|
3981
|
+
}, 3e3);
|
|
3982
|
+
} else
|
|
3983
|
+
r > 20 ? n.close() : setTimeout(() => {
|
|
3984
|
+
r++, o();
|
|
3985
|
+
}, 2e3);
|
|
3986
|
+
}, (s) => {
|
|
3987
|
+
n.close();
|
|
3988
|
+
});
|
|
3989
|
+
};
|
|
3990
|
+
o();
|
|
3991
|
+
},
|
|
3992
|
+
showLogin(e) {
|
|
3993
|
+
this.isShowLogin = e;
|
|
3994
|
+
}
|
|
3995
|
+
}
|
|
3996
|
+
});
|
|
3997
|
+
let so = bt();
|
|
3998
|
+
console.log("childPath3", so);
|
|
3999
|
+
const Sc = {
|
|
4000
|
+
props: ["user", "from"],
|
|
4001
|
+
data() {
|
|
4002
|
+
return {
|
|
4003
|
+
path: so
|
|
4004
|
+
};
|
|
4005
|
+
},
|
|
4006
|
+
methods: {
|
|
4007
|
+
...xc(Cc, ["logout"]),
|
|
4008
|
+
handlePay() {
|
|
4009
|
+
console.log("user", this.user), this.user.is_subscribed || this.$emit("subscribe");
|
|
4010
|
+
}
|
|
4011
|
+
}
|
|
4012
|
+
}, qe = (e) => (ft("data-v-0433d3bc"), e = e(), pt(), e), Oc = { class: "user-center-content" }, Pc = { class: "user-info flew-row-v-center" }, Dc = ["src"], Nc = {
|
|
4013
|
+
class: "user-name",
|
|
4014
|
+
style: { color: "#000" }
|
|
4015
|
+
}, Rc = { class: "user-email" }, Tc = { class: "flew-row-v-center" }, jc = {
|
|
4016
|
+
key: 0,
|
|
4017
|
+
t: "1637834706702",
|
|
4018
|
+
class: "user-item-icon",
|
|
4019
|
+
viewBox: "0 0 1024 1024",
|
|
4020
|
+
version: "1.1",
|
|
4021
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4022
|
+
"p-id": "10206",
|
|
4023
|
+
width: "32",
|
|
4024
|
+
height: "32"
|
|
4025
|
+
}, Lc = /* @__PURE__ */ qe(() => /* @__PURE__ */ v("path", {
|
|
4026
|
+
d: "M319.786667 74.666667h384.490666A85.333333 85.333333 0 0 1 772.266667 108.458667l207.594666 273.834666a85.333333 85.333333 0 0 1-6.592 110.805334L573.866667 907.136a85.333333 85.333333 0 0 1-122.688 0.149333L50.88 494.144a85.333333 85.333333 0 0 1-6.805333-110.826667L251.733333 108.544A85.333333 85.333333 0 0 1 319.786667 74.666667z",
|
|
4027
|
+
fill: "#d19844",
|
|
4028
|
+
"p-id": "10207",
|
|
4029
|
+
"data-spm-anchor-id": "a313x.7781069.0.i16",
|
|
4030
|
+
class: "selected"
|
|
4031
|
+
}, null, -1)), Ic = /* @__PURE__ */ qe(() => /* @__PURE__ */ v("path", {
|
|
4032
|
+
d: "M685.482667 350.72a32 32 0 0 1 47.445333 42.816l-2.197333 2.432-196.096 196.096a32 32 0 0 1-42.837334 2.197333l-2.432-2.197333-196.096-196.096a32 32 0 0 1 42.816-47.466667l2.432 2.197334L512 524.181333l173.482667-173.482666z",
|
|
4033
|
+
fill: "#FFFFFF",
|
|
4034
|
+
"p-id": "10208"
|
|
4035
|
+
}, null, -1)), Fc = [
|
|
4036
|
+
Lc,
|
|
4037
|
+
Ic
|
|
4038
|
+
], _c = {
|
|
4039
|
+
key: 1,
|
|
4040
|
+
t: "1637055277290",
|
|
4041
|
+
class: "user-item-icon",
|
|
4042
|
+
viewBox: "0 0 1024 1024",
|
|
4043
|
+
version: "1.1",
|
|
4044
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4045
|
+
"p-id": "8080",
|
|
4046
|
+
width: "32",
|
|
4047
|
+
height: "32"
|
|
4048
|
+
}, Mc = /* @__PURE__ */ qe(() => /* @__PURE__ */ v("path", {
|
|
4049
|
+
d: "M957.942003 407.418107c4.937452-6.197142 4.954849-15.143908-0.297782-21.406542L718.393185 100.883665c-1.357927-1.623987-2.981914-2.916423-4.738931-3.89368-2.765997-5.600555-8.532327-9.42772-15.193027-9.42772L326.247924 87.562265c-6.329149 0-11.978822 3.612271-14.877849 8.930393-2.15406 0.994654-4.142343 2.469238-5.733585 4.391007L66.386478 386.011564c-3.048429 3.628644-4.340865 8.16803-3.90903 12.541641-0.464581 4.391007 0.794086 8.964162 3.859911 12.625552L501.444085 929.709497c5.997598 7.175423 16.634866 8.037047 23.825638 2.02103 3.13234-2.650363 5.086855-6.145977 5.799076-9.841136 0.38067-0.379647 0.762363-0.777713 1.110287-1.209548L953.899944 418.089144C956.533934 414.956803 957.859116 411.17978 957.942003 407.418107zM520.830621 727.291344 754.099409 449.304076c8.963139-10.686387 25.00244-12.06171 35.754319-3.032056 10.852162 9.096169 12.211113 25.035186 3.230578 35.755342L542.071388 781.172509c-5.418406 6.445806-13.387915 9.509585-21.240767 8.930393-7.837502 0.579191-15.807011-2.484587-21.224394-8.930393L248.57489 482.027361c-8.979512-10.720156-7.605212-26.659173 3.247974-35.755342 10.769274-9.029654 26.774807-7.65433 35.754319 3.032056L520.830621 727.291344z",
|
|
4050
|
+
"p-id": "8081",
|
|
4051
|
+
fill: "#969696"
|
|
4052
|
+
}, null, -1)), kc = [
|
|
4053
|
+
Mc
|
|
4054
|
+
], Bc = {
|
|
4055
|
+
key: 0,
|
|
4056
|
+
class: "user-upgrade"
|
|
4057
|
+
}, Gc = /* @__PURE__ */ qe(() => /* @__PURE__ */ v("span", null, "Upgrade", -1)), Uc = [
|
|
4058
|
+
Gc
|
|
4059
|
+
], zc = ["href"], Hc = /* @__PURE__ */ qe(() => /* @__PURE__ */ v("div", { class: "user-item user-item-active flew-row-v-center" }, [
|
|
4060
|
+
/* @__PURE__ */ v("svg", {
|
|
4061
|
+
t: "1637049676350",
|
|
4062
|
+
class: "user-item-icon",
|
|
4063
|
+
viewBox: "0 0 1025 1024",
|
|
4064
|
+
version: "1.1",
|
|
4065
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4066
|
+
"p-id": "5498",
|
|
4067
|
+
width: "32",
|
|
4068
|
+
height: "32"
|
|
4069
|
+
}, [
|
|
4070
|
+
/* @__PURE__ */ v("path", {
|
|
4071
|
+
d: "M1001.65696 463.424l-332.224-332.416C648.76096 110.4 624.05696 104.256 598.52096 113.792c-26.176 9.856-41.152 33.28-41.216 64.384L557.30496 328.32 492.28096 328.32 305.65696 328.384C266.48896 328.512 239.16096 355.712 239.03296 394.624c-0.128 78.4-0.128 156.736 0 235.072 0.128 37.696 27.776 65.28 65.792 65.664l252.48 0.064L557.24096 724.48c-0.128 40.768-0.256 81.408 0.576 122.112 0.256 15.936 6.528 33.28 16.256 45.184 11.904 14.656 28.224 22.72 45.952 22.72l0 0c17.536 0 35.2-8 49.728-22.464 110.848-110.72 221.568-221.504 332.288-332.352C1031.60896 530.176 1031.48096 493.248 1001.65696 463.424z",
|
|
4072
|
+
"p-id": "5499",
|
|
4073
|
+
fill: "#969696"
|
|
4074
|
+
}),
|
|
4075
|
+
/* @__PURE__ */ v("path", {
|
|
4076
|
+
d: "M387.70496 805.696 387.64096 805.696l-72.576 0.128-103.872-0.064c-52.48 0-82.624-30.144-82.624-82.688L128.56896 300.48c0-52.416 30.144-82.496 82.752-82.496l68.8-0.064 75.584 0.064 42.048-0.064c30.08 0 46.528-15.104 48.896-44.8 0.896-11.072 0.64-22.336 0.256-34.88C446.13696 106.944 428.60096 89.664 397.68896 89.6L321.33696 89.6C280.44096 89.6 239.54496 89.6 198.71296 89.856 186.16896 89.92 173.30496 91.328 160.44096 94.08 68.21696 113.728 0.88896 196.416 0.37696 290.688 0.12096 341.504 0.18496 392.384 0.24896 443.136l0.064 67.648L0.18496 581.76C0.12096 632.768-0.00704 683.712 0.44096 734.784c0.896 107.776 88.768 197.056 195.904 199.04 26.368 0.512 52.8 0.64 79.168 0.64l125.376-0.256c24.768 0 42.112-15.04 45.184-39.232 1.088-8.832 1.216-17.856 1.28-26.88l0-4.48c0.128-13.312 0.256-31.552-12.544-44.48C422.45696 806.784 404.66496 805.696 387.70496 805.696z",
|
|
4077
|
+
"p-id": "5500",
|
|
4078
|
+
fill: "#969696"
|
|
4079
|
+
})
|
|
4080
|
+
]),
|
|
4081
|
+
/* @__PURE__ */ v("span", null, "Logout")
|
|
4082
|
+
], -1)), Qc = [
|
|
4083
|
+
Hc
|
|
4084
|
+
];
|
|
4085
|
+
function Yc(e, t, n, r, o, s) {
|
|
4086
|
+
return D(), T("div", Oc, [
|
|
4087
|
+
v("div", Pc, [
|
|
4088
|
+
v("img", {
|
|
4089
|
+
class: "user-avatar",
|
|
4090
|
+
src: n.user.avatar || "https://statics.imgkits.com/images/default_user_avatar_black.png",
|
|
4091
|
+
alt: "user avatar"
|
|
4092
|
+
}, null, 8, Dc),
|
|
4093
|
+
v("div", null, [
|
|
4094
|
+
v("div", Nc, [
|
|
4095
|
+
v("span", null, X(n.user.username), 1)
|
|
4096
|
+
]),
|
|
4097
|
+
v("div", Rc, [
|
|
4098
|
+
v("span", null, X(n.user.email), 1)
|
|
4099
|
+
])
|
|
4100
|
+
])
|
|
4101
|
+
]),
|
|
4102
|
+
v("div", {
|
|
4103
|
+
class: "user-item flew-row-v-center space-between",
|
|
4104
|
+
onClick: t[0] || (t[0] = (...i) => s.handlePay && s.handlePay(...i))
|
|
4105
|
+
}, [
|
|
4106
|
+
v("div", Tc, [
|
|
4107
|
+
n.user.is_subscribed ? (D(), T("svg", jc, Fc)) : (D(), T("svg", _c, kc)),
|
|
4108
|
+
v("span", null, "My Plan: " + X(n.user.is_subscribed ? "Premium Plan" : "free"), 1)
|
|
4109
|
+
]),
|
|
4110
|
+
!n.user.is_subscribed && n.from == "addon" ? (D(), T("div", Bc, Uc)) : B("", !0)
|
|
4111
|
+
]),
|
|
4112
|
+
n.from != "addon" ? (D(), T("a", {
|
|
4113
|
+
key: 0,
|
|
4114
|
+
rel: "nofollow",
|
|
4115
|
+
href: o.path + "/user/logout"
|
|
4116
|
+
}, Qc, 8, zc)) : B("", !0)
|
|
4117
|
+
]);
|
|
4118
|
+
}
|
|
4119
|
+
const tr = /* @__PURE__ */ St(Sc, [["render", Yc], ["__scopeId", "data-v-0433d3bc"]]);
|
|
4120
|
+
const me = (e) => (ft("data-v-2138ae33"), e = e(), pt(), e), Vc = { class: "absolute inset-x-0 top-0 z-50" }, Jc = {
|
|
4121
|
+
class: "flex items-center justify-between p-6 lg:px-8",
|
|
4122
|
+
"aria-label": "Global"
|
|
4123
|
+
}, Wc = { class: "flex lg:flex-1" }, Kc = {
|
|
4124
|
+
href: "#",
|
|
4125
|
+
class: "-m-1.5 p-1.5"
|
|
4126
|
+
}, qc = /* @__PURE__ */ me(() => /* @__PURE__ */ v("span", { class: "sr-only" }, "Your Company", -1)), Zc = ["src"], Xc = { class: "flex lg:hidden" }, $c = /* @__PURE__ */ me(() => /* @__PURE__ */ v("span", { class: "sr-only" }, "Open main menu", -1)), eu = {
|
|
4127
|
+
key: 0,
|
|
4128
|
+
class: "hidden lg:flex lg:gap-x-12"
|
|
4129
|
+
}, tu = ["href"], nu = {
|
|
4130
|
+
key: 1,
|
|
4131
|
+
class: "hidden lg:flex lg:flex-1 lg:justify-end"
|
|
4132
|
+
}, ru = /* @__PURE__ */ me(() => /* @__PURE__ */ v("span", { "aria-hidden": "true" }, "→", -1)), ou = {
|
|
4133
|
+
key: 2,
|
|
4134
|
+
class: "hidden lg:flex lg:flex-1 lg:justify-end text-sm font-semibold leading-6 text-gray-900 items-center"
|
|
4135
|
+
}, su = { class: "pr-4" }, iu = ["src"], au = /* @__PURE__ */ me(() => /* @__PURE__ */ v("div", { class: "open-icon" }, null, -1)), lu = { class: "user-center-dialog shadow-xl" }, cu = /* @__PURE__ */ me(() => /* @__PURE__ */ v("div", { class: "fixed inset-0 z-50" }, null, -1)), uu = { class: "flex items-center justify-between" }, du = /* @__PURE__ */ me(() => /* @__PURE__ */ v("a", {
|
|
4136
|
+
href: "#",
|
|
4137
|
+
class: "-m-1.5 p-1.5"
|
|
4138
|
+
}, [
|
|
4139
|
+
/* @__PURE__ */ v("span", { class: "sr-only" }, "Your Company"),
|
|
4140
|
+
/* @__PURE__ */ v("img", {
|
|
4141
|
+
class: "h-8 w-auto",
|
|
4142
|
+
src: yo,
|
|
4143
|
+
alt: ""
|
|
4144
|
+
})
|
|
4145
|
+
], -1)), fu = /* @__PURE__ */ me(() => /* @__PURE__ */ v("span", { class: "sr-only" }, "Close menu", -1)), pu = { class: "mt-6 flow-root" }, hu = { class: "-my-6 divide-y divide-gray-500/10" }, mu = { class: "space-y-2 py-6" }, gu = ["href"], vu = {
|
|
4146
|
+
key: 0,
|
|
4147
|
+
class: "py-6"
|
|
4148
|
+
}, wu = {
|
|
4149
|
+
__name: "Header",
|
|
4150
|
+
props: {
|
|
4151
|
+
isLandingpage: {
|
|
4152
|
+
type: Boolean,
|
|
4153
|
+
default: !0
|
|
4154
|
+
},
|
|
4155
|
+
userStore: {
|
|
4156
|
+
type: Object,
|
|
4157
|
+
default: () => {
|
|
4158
|
+
}
|
|
4159
|
+
},
|
|
4160
|
+
from: {
|
|
4161
|
+
type: String,
|
|
4162
|
+
default: ""
|
|
4163
|
+
}
|
|
4164
|
+
},
|
|
4165
|
+
emits: ["allsendArray", "initTranslateList"],
|
|
4166
|
+
setup(e, { emit: t }) {
|
|
4167
|
+
const n = e;
|
|
4168
|
+
let r = {
|
|
4169
|
+
logo: "https://lh3.googleusercontent.com/-Rt2iBOrXu0M/ZKvVIrKS3aI/AAAAAAAAADU/H-qh2KKs4E84IsfLcxAru0j5aN_rdITjwCNcBGAsYHQ/s400/ff.png",
|
|
4170
|
+
name: "Video Translator"
|
|
4171
|
+
};
|
|
4172
|
+
typeof app_config == "object" && app_config && Object.keys(app_config).length > 0 && (r = app_config), console.log("appInfo", r);
|
|
4173
|
+
const o = C(r);
|
|
4174
|
+
let s = bt();
|
|
4175
|
+
const i = [
|
|
4176
|
+
{ name: "Pricing", href: s + "/pricing" },
|
|
4177
|
+
{ name: "Support", href: s + "/support" },
|
|
4178
|
+
{ name: "Privacy Policy", href: s + "/privacy" },
|
|
4179
|
+
{ name: "Company", href: s + "/terms" }
|
|
4180
|
+
], a = C(!1), u = E(() => n.userStore.user), l = () => {
|
|
4181
|
+
n.userStore.showLogin(!0);
|
|
4182
|
+
}, d = C(!1);
|
|
4183
|
+
Q(() => {
|
|
4184
|
+
n.userStore.getUser().then(({ profile: N }) => {
|
|
4185
|
+
console.log("login", N), !N && n.from != "login" && b();
|
|
4186
|
+
}, () => {
|
|
4187
|
+
});
|
|
4188
|
+
});
|
|
4189
|
+
async function c() {
|
|
4190
|
+
p();
|
|
4191
|
+
const N = _e.service({
|
|
4192
|
+
text: "logining...",
|
|
4193
|
+
background: "rgba(0, 0, 0, 0.7)"
|
|
4194
|
+
});
|
|
4195
|
+
try {
|
|
4196
|
+
await n.userStore.getUser(), t("loginSuccess");
|
|
4197
|
+
} catch {
|
|
4198
|
+
} finally {
|
|
4199
|
+
N.close();
|
|
4200
|
+
}
|
|
4201
|
+
}
|
|
4202
|
+
function p() {
|
|
4203
|
+
n.userStore.showLogin(!1);
|
|
4204
|
+
}
|
|
4205
|
+
function g() {
|
|
4206
|
+
a.value = !0;
|
|
4207
|
+
}
|
|
4208
|
+
function m() {
|
|
4209
|
+
a.value = !1;
|
|
4210
|
+
}
|
|
4211
|
+
function h() {
|
|
4212
|
+
a.value = !a.value;
|
|
4213
|
+
}
|
|
4214
|
+
function b(N) {
|
|
4215
|
+
console.log("addGoogleAccountsScript:before"), typeof google < "u" && (google.accounts.id.initialize({
|
|
4216
|
+
client_id: "704677828444-ihbv6faprun043f3iuponnrctutdssgj.apps.googleusercontent.com",
|
|
4217
|
+
callback: x
|
|
4218
|
+
}), google.accounts.id.prompt());
|
|
4219
|
+
}
|
|
4220
|
+
function x(N) {
|
|
4221
|
+
!N || !N.credential || Sr(N.credential).then((j) => {
|
|
4222
|
+
console.log("fetch_success", j), location.href = location.pathname;
|
|
4223
|
+
}, (j) => {
|
|
4224
|
+
console.log("fetch_fail", j);
|
|
4225
|
+
});
|
|
4226
|
+
}
|
|
4227
|
+
return (N, j) => (D(), T(Ue, null, [
|
|
4228
|
+
v("header", Vc, [
|
|
4229
|
+
v("nav", Jc, [
|
|
4230
|
+
v("div", Wc, [
|
|
4231
|
+
v("a", Kc, [
|
|
4232
|
+
qc,
|
|
4233
|
+
v("img", {
|
|
4234
|
+
class: "h-8 w-auto",
|
|
4235
|
+
src: o.value.logo,
|
|
4236
|
+
alt: ""
|
|
4237
|
+
}, null, 8, Zc)
|
|
4238
|
+
])
|
|
4239
|
+
]),
|
|
4240
|
+
v("div", Xc, [
|
|
4241
|
+
v("button", {
|
|
4242
|
+
type: "button",
|
|
4243
|
+
class: "-m-2.5 inline-flex items-center justify-center rounded-md p-2.5 text-gray-700",
|
|
4244
|
+
onClick: j[0] || (j[0] = (_) => d.value = !0)
|
|
4245
|
+
}, [
|
|
4246
|
+
$c,
|
|
4247
|
+
ye(z(Il), {
|
|
4248
|
+
class: "h-6 w-6",
|
|
4249
|
+
"aria-hidden": "true"
|
|
4250
|
+
})
|
|
4251
|
+
])
|
|
4252
|
+
]),
|
|
4253
|
+
e.isLandingpage ? (D(), T("div", eu, [
|
|
4254
|
+
(D(), T(Ue, null, xn(i, (_) => v("a", {
|
|
4255
|
+
key: _.name,
|
|
4256
|
+
href: _.href,
|
|
4257
|
+
class: "text-sm font-semibold leading-6 text-gray-900"
|
|
4258
|
+
}, X(_.name), 9, tu)), 64))
|
|
4259
|
+
])) : B("", !0),
|
|
4260
|
+
u.value ? B("", !0) : (D(), T("div", nu, [
|
|
4261
|
+
v("a", {
|
|
4262
|
+
onClick: l,
|
|
4263
|
+
href: "#",
|
|
4264
|
+
class: "text-sm font-semibold leading-6 text-gray-900"
|
|
4265
|
+
}, [
|
|
4266
|
+
tt("Log in"),
|
|
4267
|
+
ru
|
|
4268
|
+
])
|
|
4269
|
+
])),
|
|
4270
|
+
u.value ? (D(), T("div", ou, [
|
|
4271
|
+
v("div", {
|
|
4272
|
+
class: "flex items-center",
|
|
4273
|
+
onMouseenter: g,
|
|
4274
|
+
onMouseleave: m
|
|
4275
|
+
}, [
|
|
4276
|
+
v("div", su, [
|
|
4277
|
+
v("span", null, X(u.value.username), 1)
|
|
4278
|
+
]),
|
|
4279
|
+
v("img", {
|
|
4280
|
+
class: "user-avatar h-10 rounded-full",
|
|
4281
|
+
src: u.value.avatar || "https://statics.imgkits.com/images/default_user_avatar_black.png",
|
|
4282
|
+
alt: "user avatar"
|
|
4283
|
+
}, null, 8, iu),
|
|
4284
|
+
au,
|
|
4285
|
+
Ge(v("div", null, [
|
|
4286
|
+
v("div", lu, [
|
|
4287
|
+
u.value ? (D(), jt(tr, {
|
|
4288
|
+
key: 0,
|
|
4289
|
+
user: u.value
|
|
4290
|
+
}, null, 8, ["user"])) : B("", !0)
|
|
4291
|
+
])
|
|
4292
|
+
], 512), [
|
|
4293
|
+
[nr, a.value]
|
|
4294
|
+
])
|
|
4295
|
+
], 32)
|
|
4296
|
+
])) : B("", !0)
|
|
4297
|
+
]),
|
|
4298
|
+
ye(z(jl), {
|
|
4299
|
+
as: "div",
|
|
4300
|
+
class: "lg:hidden",
|
|
4301
|
+
onClose: j[2] || (j[2] = (_) => d.value = !1),
|
|
4302
|
+
open: d.value
|
|
4303
|
+
}, {
|
|
4304
|
+
default: Ht(() => [
|
|
4305
|
+
cu,
|
|
4306
|
+
ye(z(Ll), { class: "fixed inset-y-0 right-0 z-50 w-full overflow-y-auto bg-white px-6 py-6 sm:max-w-sm sm:ring-1 sm:ring-gray-900/10" }, {
|
|
4307
|
+
default: Ht(() => [
|
|
4308
|
+
v("div", uu, [
|
|
4309
|
+
du,
|
|
4310
|
+
v("button", {
|
|
4311
|
+
type: "button",
|
|
4312
|
+
class: "-m-2.5 rounded-md p-2.5 text-gray-700",
|
|
4313
|
+
onClick: j[1] || (j[1] = (_) => d.value = !1)
|
|
4314
|
+
}, [
|
|
4315
|
+
fu,
|
|
4316
|
+
ye(z(Fl), {
|
|
4317
|
+
class: "h-6 w-6",
|
|
4318
|
+
"aria-hidden": "true"
|
|
4319
|
+
})
|
|
4320
|
+
])
|
|
4321
|
+
]),
|
|
4322
|
+
v("div", pu, [
|
|
4323
|
+
v("div", hu, [
|
|
4324
|
+
v("div", mu, [
|
|
4325
|
+
(D(), T(Ue, null, xn(i, (_) => v("a", {
|
|
4326
|
+
key: _.name,
|
|
4327
|
+
href: _.href,
|
|
4328
|
+
class: "-mx-3 block rounded-lg px-3 py-2 text-base font-semibold leading-7 text-gray-900 hover:bg-gray-50"
|
|
4329
|
+
}, X(_.name), 9, gu)), 64))
|
|
4330
|
+
]),
|
|
4331
|
+
u.value ? (D(), T("div", {
|
|
4332
|
+
key: 1,
|
|
4333
|
+
class: "relative sm-user-center-dialog py-6 right flew-center",
|
|
4334
|
+
onClick: h
|
|
4335
|
+
}, [
|
|
4336
|
+
u.value ? (D(), jt(tr, {
|
|
4337
|
+
key: 0,
|
|
4338
|
+
user: u.value
|
|
4339
|
+
}, null, 8, ["user"])) : B("", !0)
|
|
4340
|
+
])) : (D(), T("div", vu, [
|
|
4341
|
+
v("a", {
|
|
4342
|
+
href: "#",
|
|
4343
|
+
onClick: l,
|
|
4344
|
+
class: "-mx-3 block rounded-lg px-3 py-2.5 text-base font-semibold leading-7 text-gray-900 hover:bg-gray-50"
|
|
4345
|
+
}, "Log in")
|
|
4346
|
+
]))
|
|
4347
|
+
])
|
|
4348
|
+
])
|
|
4349
|
+
]),
|
|
4350
|
+
_: 1
|
|
4351
|
+
})
|
|
4352
|
+
]),
|
|
4353
|
+
_: 1
|
|
4354
|
+
}, 8, ["open"])
|
|
4355
|
+
]),
|
|
4356
|
+
e.userStore.isShowLogin ? (D(), jt(vc, {
|
|
4357
|
+
key: 0,
|
|
4358
|
+
onSuccess: c,
|
|
4359
|
+
onClose: p
|
|
4360
|
+
})) : B("", !0)
|
|
4361
|
+
], 64));
|
|
4362
|
+
}
|
|
4363
|
+
}, yu = /* @__PURE__ */ St(wu, [["__scopeId", "data-v-2138ae33"]]), Eu = {
|
|
4364
|
+
install(e) {
|
|
4365
|
+
e.component("my-header", yu);
|
|
4366
|
+
}
|
|
4367
|
+
};
|
|
4368
|
+
export {
|
|
4369
|
+
Eu as default
|
|
4370
|
+
};
|