vela-h5-sdk 0.0.1 → 0.0.2

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.
@@ -266,86 +266,86 @@ var N = class extends HTMLElement {
266
266
  N.elementStyles = [], N.shadowRootOptions = { mode: "open" }, N[k("elementProperties")] = /* @__PURE__ */ new Map(), N[k("finalized")] = /* @__PURE__ */ new Map(), O?.({ ReactiveElement: N }), (T.reactiveElementVersions ??= []).push("2.1.2");
267
267
  //#endregion
268
268
  //#region node_modules/lit-html/lit-html.js
269
- var P = globalThis, ee = (e) => e, F = P.trustedTypes, I = F ? F.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, L = "$lit$", R = `lit$${Math.random().toFixed(9).slice(2)}$`, te = "?" + R, ne = `<${te}>`, z = document, re = () => z.createComment(""), B = (e) => e === null || typeof e != "object" && typeof e != "function", V = Array.isArray, H = (e) => V(e) || typeof e?.[Symbol.iterator] == "function", U = "[ \n\f\r]", W = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, ie = /-->/g, ae = />/g, G = RegExp(`>|${U}(?:([^\\s"'>=/]+)(${U}*=${U}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`, "g"), oe = /'/g, se = /"/g, ce = /^(?:script|style|textarea|title)$/i, K = ((e) => (t, ...n) => ({
269
+ var P = globalThis, ee = (e) => e, te = P.trustedTypes, F = te ? te.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, I = "$lit$", L = `lit$${Math.random().toFixed(9).slice(2)}$`, ne = "?" + L, re = `<${ne}>`, R = document, ie = () => R.createComment(""), z = (e) => e === null || typeof e != "object" && typeof e != "function", B = Array.isArray, V = (e) => B(e) || typeof e?.[Symbol.iterator] == "function", H = "[ \n\f\r]", ae = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, oe = /-->/g, se = />/g, U = RegExp(`>|${H}(?:([^\\s"'>=/]+)(${H}*=${H}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`, "g"), ce = /'/g, le = /"/g, ue = /^(?:script|style|textarea|title)$/i, W = ((e) => (t, ...n) => ({
270
270
  _$litType$: e,
271
271
  strings: t,
272
272
  values: n
273
- }))(1), q = Symbol.for("lit-noChange"), J = Symbol.for("lit-nothing"), le = /* @__PURE__ */ new WeakMap(), Y = z.createTreeWalker(z, 129);
274
- function ue(e, t) {
275
- if (!V(e) || !e.hasOwnProperty("raw")) throw Error("invalid template strings array");
276
- return I === void 0 ? t : I.createHTML(t);
273
+ }))(1), G = Symbol.for("lit-noChange"), K = Symbol.for("lit-nothing"), de = /* @__PURE__ */ new WeakMap(), q = R.createTreeWalker(R, 129);
274
+ function fe(e, t) {
275
+ if (!B(e) || !e.hasOwnProperty("raw")) throw Error("invalid template strings array");
276
+ return F === void 0 ? t : F.createHTML(t);
277
277
  }
278
- var de = (e, t) => {
279
- let n = e.length - 1, r = [], i, a = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", o = W;
278
+ var pe = (e, t) => {
279
+ let n = e.length - 1, r = [], i, a = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", o = ae;
280
280
  for (let t = 0; t < n; t++) {
281
281
  let n = e[t], s, c, l = -1, u = 0;
282
- for (; u < n.length && (o.lastIndex = u, c = o.exec(n), c !== null);) u = o.lastIndex, o === W ? c[1] === "!--" ? o = ie : c[1] === void 0 ? c[2] === void 0 ? c[3] !== void 0 && (o = G) : (ce.test(c[2]) && (i = RegExp("</" + c[2], "g")), o = G) : o = ae : o === G ? c[0] === ">" ? (o = i ?? W, l = -1) : c[1] === void 0 ? l = -2 : (l = o.lastIndex - c[2].length, s = c[1], o = c[3] === void 0 ? G : c[3] === "\"" ? se : oe) : o === se || o === oe ? o = G : o === ie || o === ae ? o = W : (o = G, i = void 0);
283
- let d = o === G && e[t + 1].startsWith("/>") ? " " : "";
284
- a += o === W ? n + ne : l >= 0 ? (r.push(s), n.slice(0, l) + L + n.slice(l) + R + d) : n + R + (l === -2 ? t : d);
282
+ for (; u < n.length && (o.lastIndex = u, c = o.exec(n), c !== null);) u = o.lastIndex, o === ae ? c[1] === "!--" ? o = oe : c[1] === void 0 ? c[2] === void 0 ? c[3] !== void 0 && (o = U) : (ue.test(c[2]) && (i = RegExp("</" + c[2], "g")), o = U) : o = se : o === U ? c[0] === ">" ? (o = i ?? ae, l = -1) : c[1] === void 0 ? l = -2 : (l = o.lastIndex - c[2].length, s = c[1], o = c[3] === void 0 ? U : c[3] === "\"" ? le : ce) : o === le || o === ce ? o = U : o === oe || o === se ? o = ae : (o = U, i = void 0);
283
+ let d = o === U && e[t + 1].startsWith("/>") ? " " : "";
284
+ a += o === ae ? n + re : l >= 0 ? (r.push(s), n.slice(0, l) + I + n.slice(l) + L + d) : n + L + (l === -2 ? t : d);
285
285
  }
286
- return [ue(e, a + (e[n] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), r];
287
- }, fe = class e {
286
+ return [fe(e, a + (e[n] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), r];
287
+ }, me = class e {
288
288
  constructor({ strings: t, _$litType$: n }, r) {
289
289
  let i;
290
290
  this.parts = [];
291
- let a = 0, o = 0, s = t.length - 1, c = this.parts, [l, u] = de(t, n);
292
- if (this.el = e.createElement(l, r), Y.currentNode = this.el.content, n === 2 || n === 3) {
291
+ let a = 0, o = 0, s = t.length - 1, c = this.parts, [l, u] = pe(t, n);
292
+ if (this.el = e.createElement(l, r), q.currentNode = this.el.content, n === 2 || n === 3) {
293
293
  let e = this.el.content.firstChild;
294
294
  e.replaceWith(...e.childNodes);
295
295
  }
296
- for (; (i = Y.nextNode()) !== null && c.length < s;) {
296
+ for (; (i = q.nextNode()) !== null && c.length < s;) {
297
297
  if (i.nodeType === 1) {
298
- if (i.hasAttributes()) for (let e of i.getAttributeNames()) if (e.endsWith(L)) {
299
- let t = u[o++], n = i.getAttribute(e).split(R), r = /([.?@])?(.*)/.exec(t);
298
+ if (i.hasAttributes()) for (let e of i.getAttributeNames()) if (e.endsWith(I)) {
299
+ let t = u[o++], n = i.getAttribute(e).split(L), r = /([.?@])?(.*)/.exec(t);
300
300
  c.push({
301
301
  type: 1,
302
302
  index: a,
303
303
  name: r[2],
304
304
  strings: n,
305
- ctor: r[1] === "." ? _e : r[1] === "?" ? ve : r[1] === "@" ? ye : ge
305
+ ctor: r[1] === "." ? ye : r[1] === "?" ? be : r[1] === "@" ? xe : ve
306
306
  }), i.removeAttribute(e);
307
- } else e.startsWith(R) && (c.push({
307
+ } else e.startsWith(L) && (c.push({
308
308
  type: 6,
309
309
  index: a
310
310
  }), i.removeAttribute(e));
311
- if (ce.test(i.tagName)) {
312
- let e = i.textContent.split(R), t = e.length - 1;
311
+ if (ue.test(i.tagName)) {
312
+ let e = i.textContent.split(L), t = e.length - 1;
313
313
  if (t > 0) {
314
- i.textContent = F ? F.emptyScript : "";
315
- for (let n = 0; n < t; n++) i.append(e[n], re()), Y.nextNode(), c.push({
314
+ i.textContent = te ? te.emptyScript : "";
315
+ for (let n = 0; n < t; n++) i.append(e[n], ie()), q.nextNode(), c.push({
316
316
  type: 2,
317
317
  index: ++a
318
318
  });
319
- i.append(e[t], re());
319
+ i.append(e[t], ie());
320
320
  }
321
321
  }
322
322
  } else if (i.nodeType === 8) {
323
- if (i.data === te) c.push({
323
+ if (i.data === ne) c.push({
324
324
  type: 2,
325
325
  index: a
326
326
  });
327
327
  else {
328
328
  let e = -1;
329
- for (; (e = i.data.indexOf(R, e + 1)) !== -1;) c.push({
329
+ for (; (e = i.data.indexOf(L, e + 1)) !== -1;) c.push({
330
330
  type: 7,
331
331
  index: a
332
- }), e += R.length - 1;
332
+ }), e += L.length - 1;
333
333
  }
334
334
  }
335
335
  a++;
336
336
  }
337
337
  }
338
338
  static createElement(e, t) {
339
- let n = z.createElement("template");
339
+ let n = R.createElement("template");
340
340
  return n.innerHTML = e, n;
341
341
  }
342
342
  };
343
- function pe(e, t, n = e, r) {
344
- if (t === q) return t;
345
- let i = r === void 0 ? n._$Cl : n._$Co?.[r], a = B(t) ? void 0 : t._$litDirective$;
346
- return i?.constructor !== a && (i?._$AO?.(!1), a === void 0 ? i = void 0 : (i = new a(e), i._$AT(e, n, r)), r === void 0 ? n._$Cl = i : (n._$Co ??= [])[r] = i), i !== void 0 && (t = pe(e, i._$AS(e, t.values), i, r)), t;
343
+ function he(e, t, n = e, r) {
344
+ if (t === G) return t;
345
+ let i = r === void 0 ? n._$Cl : n._$Co?.[r], a = z(t) ? void 0 : t._$litDirective$;
346
+ return i?.constructor !== a && (i?._$AO?.(!1), a === void 0 ? i = void 0 : (i = new a(e), i._$AT(e, n, r)), r === void 0 ? n._$Cl = i : (n._$Co ??= [])[r] = i), i !== void 0 && (t = he(e, i._$AS(e, t.values), i, r)), t;
347
347
  }
348
- var me = class {
348
+ var ge = class {
349
349
  constructor(e, t) {
350
350
  this._$AV = [], this._$AN = void 0, this._$AD = e, this._$AM = t;
351
351
  }
@@ -356,28 +356,28 @@ var me = class {
356
356
  return this._$AM._$AU;
357
357
  }
358
358
  u(e) {
359
- let { el: { content: t }, parts: n } = this._$AD, r = (e?.creationScope ?? z).importNode(t, !0);
360
- Y.currentNode = r;
361
- let i = Y.nextNode(), a = 0, o = 0, s = n[0];
359
+ let { el: { content: t }, parts: n } = this._$AD, r = (e?.creationScope ?? R).importNode(t, !0);
360
+ q.currentNode = r;
361
+ let i = q.nextNode(), a = 0, o = 0, s = n[0];
362
362
  for (; s !== void 0;) {
363
363
  if (a === s.index) {
364
364
  let t;
365
- s.type === 2 ? t = new he(i, i.nextSibling, this, e) : s.type === 1 ? t = new s.ctor(i, s.name, s.strings, this, e) : s.type === 6 && (t = new be(i, this, e)), this._$AV.push(t), s = n[++o];
365
+ s.type === 2 ? t = new _e(i, i.nextSibling, this, e) : s.type === 1 ? t = new s.ctor(i, s.name, s.strings, this, e) : s.type === 6 && (t = new Se(i, this, e)), this._$AV.push(t), s = n[++o];
366
366
  }
367
- a !== s?.index && (i = Y.nextNode(), a++);
367
+ a !== s?.index && (i = q.nextNode(), a++);
368
368
  }
369
- return Y.currentNode = z, r;
369
+ return q.currentNode = R, r;
370
370
  }
371
371
  p(e) {
372
372
  let t = 0;
373
373
  for (let n of this._$AV) n !== void 0 && (n.strings === void 0 ? n._$AI(e[t]) : (n._$AI(e, n, t), t += n.strings.length - 2)), t++;
374
374
  }
375
- }, he = class e {
375
+ }, _e = class e {
376
376
  get _$AU() {
377
377
  return this._$AM?._$AU ?? this._$Cv;
378
378
  }
379
379
  constructor(e, t, n, r) {
380
- this.type = 2, this._$AH = J, this._$AN = void 0, this._$AA = e, this._$AB = t, this._$AM = n, this.options = r, this._$Cv = r?.isConnected ?? !0;
380
+ this.type = 2, this._$AH = K, this._$AN = void 0, this._$AA = e, this._$AB = t, this._$AM = n, this.options = r, this._$Cv = r?.isConnected ?? !0;
381
381
  }
382
382
  get parentNode() {
383
383
  let e = this._$AA.parentNode, t = this._$AM;
@@ -390,7 +390,7 @@ var me = class {
390
390
  return this._$AB;
391
391
  }
392
392
  _$AI(e, t = this) {
393
- e = pe(this, e, t), B(e) ? e === J || e == null || e === "" ? (this._$AH !== J && this._$AR(), this._$AH = J) : e !== this._$AH && e !== q && this._(e) : e._$litType$ === void 0 ? e.nodeType === void 0 ? H(e) ? this.k(e) : this._(e) : this.T(e) : this.$(e);
393
+ e = he(this, e, t), z(e) ? e === K || e == null || e === "" ? (this._$AH !== K && this._$AR(), this._$AH = K) : e !== this._$AH && e !== G && this._(e) : e._$litType$ === void 0 ? e.nodeType === void 0 ? V(e) ? this.k(e) : this._(e) : this.T(e) : this.$(e);
394
394
  }
395
395
  O(e) {
396
396
  return this._$AA.parentNode.insertBefore(e, this._$AB);
@@ -399,24 +399,24 @@ var me = class {
399
399
  this._$AH !== e && (this._$AR(), this._$AH = this.O(e));
400
400
  }
401
401
  _(e) {
402
- this._$AH !== J && B(this._$AH) ? this._$AA.nextSibling.data = e : this.T(z.createTextNode(e)), this._$AH = e;
402
+ this._$AH !== K && z(this._$AH) ? this._$AA.nextSibling.data = e : this.T(R.createTextNode(e)), this._$AH = e;
403
403
  }
404
404
  $(e) {
405
- let { values: t, _$litType$: n } = e, r = typeof n == "number" ? this._$AC(e) : (n.el === void 0 && (n.el = fe.createElement(ue(n.h, n.h[0]), this.options)), n);
405
+ let { values: t, _$litType$: n } = e, r = typeof n == "number" ? this._$AC(e) : (n.el === void 0 && (n.el = me.createElement(fe(n.h, n.h[0]), this.options)), n);
406
406
  if (this._$AH?._$AD === r) this._$AH.p(t);
407
407
  else {
408
- let e = new me(r, this), n = e.u(this.options);
408
+ let e = new ge(r, this), n = e.u(this.options);
409
409
  e.p(t), this.T(n), this._$AH = e;
410
410
  }
411
411
  }
412
412
  _$AC(e) {
413
- let t = le.get(e.strings);
414
- return t === void 0 && le.set(e.strings, t = new fe(e)), t;
413
+ let t = de.get(e.strings);
414
+ return t === void 0 && de.set(e.strings, t = new me(e)), t;
415
415
  }
416
416
  k(t) {
417
- V(this._$AH) || (this._$AH = [], this._$AR());
417
+ B(this._$AH) || (this._$AH = [], this._$AR());
418
418
  let n = this._$AH, r, i = 0;
419
- for (let a of t) i === n.length ? n.push(r = new e(this.O(re()), this.O(re()), this, this.options)) : r = n[i], r._$AI(a), i++;
419
+ for (let a of t) i === n.length ? n.push(r = new e(this.O(ie()), this.O(ie()), this, this.options)) : r = n[i], r._$AI(a), i++;
420
420
  i < n.length && (this._$AR(r && r._$AB.nextSibling, i), n.length = i);
421
421
  }
422
422
  _$AR(e = this._$AA.nextSibling, t) {
@@ -428,7 +428,7 @@ var me = class {
428
428
  setConnected(e) {
429
429
  this._$AM === void 0 && (this._$Cv = e, this._$AP?.(e));
430
430
  }
431
- }, ge = class {
431
+ }, ve = class {
432
432
  get tagName() {
433
433
  return this.element.tagName;
434
434
  }
@@ -436,47 +436,47 @@ var me = class {
436
436
  return this._$AM._$AU;
437
437
  }
438
438
  constructor(e, t, n, r, i) {
439
- this.type = 1, this._$AH = J, this._$AN = void 0, this.element = e, this.name = t, this._$AM = r, this.options = i, n.length > 2 || n[0] !== "" || n[1] !== "" ? (this._$AH = Array(n.length - 1).fill(/* @__PURE__ */ new String()), this.strings = n) : this._$AH = J;
439
+ this.type = 1, this._$AH = K, this._$AN = void 0, this.element = e, this.name = t, this._$AM = r, this.options = i, n.length > 2 || n[0] !== "" || n[1] !== "" ? (this._$AH = Array(n.length - 1).fill(/* @__PURE__ */ new String()), this.strings = n) : this._$AH = K;
440
440
  }
441
441
  _$AI(e, t = this, n, r) {
442
442
  let i = this.strings, a = !1;
443
- if (i === void 0) e = pe(this, e, t, 0), a = !B(e) || e !== this._$AH && e !== q, a && (this._$AH = e);
443
+ if (i === void 0) e = he(this, e, t, 0), a = !z(e) || e !== this._$AH && e !== G, a && (this._$AH = e);
444
444
  else {
445
445
  let r = e, o, s;
446
- for (e = i[0], o = 0; o < i.length - 1; o++) s = pe(this, r[n + o], t, o), s === q && (s = this._$AH[o]), a ||= !B(s) || s !== this._$AH[o], s === J ? e = J : e !== J && (e += (s ?? "") + i[o + 1]), this._$AH[o] = s;
446
+ for (e = i[0], o = 0; o < i.length - 1; o++) s = he(this, r[n + o], t, o), s === G && (s = this._$AH[o]), a ||= !z(s) || s !== this._$AH[o], s === K ? e = K : e !== K && (e += (s ?? "") + i[o + 1]), this._$AH[o] = s;
447
447
  }
448
448
  a && !r && this.j(e);
449
449
  }
450
450
  j(e) {
451
- e === J ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e ?? "");
451
+ e === K ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e ?? "");
452
452
  }
453
- }, _e = class extends ge {
453
+ }, ye = class extends ve {
454
454
  constructor() {
455
455
  super(...arguments), this.type = 3;
456
456
  }
457
457
  j(e) {
458
- this.element[this.name] = e === J ? void 0 : e;
458
+ this.element[this.name] = e === K ? void 0 : e;
459
459
  }
460
- }, ve = class extends ge {
460
+ }, be = class extends ve {
461
461
  constructor() {
462
462
  super(...arguments), this.type = 4;
463
463
  }
464
464
  j(e) {
465
- this.element.toggleAttribute(this.name, !!e && e !== J);
465
+ this.element.toggleAttribute(this.name, !!e && e !== K);
466
466
  }
467
- }, ye = class extends ge {
467
+ }, xe = class extends ve {
468
468
  constructor(e, t, n, r, i) {
469
469
  super(e, t, n, r, i), this.type = 5;
470
470
  }
471
471
  _$AI(e, t = this) {
472
- if ((e = pe(this, e, t, 0) ?? J) === q) return;
473
- let n = this._$AH, r = e === J && n !== J || e.capture !== n.capture || e.once !== n.once || e.passive !== n.passive, i = e !== J && (n === J || r);
472
+ if ((e = he(this, e, t, 0) ?? K) === G) return;
473
+ let n = this._$AH, r = e === K && n !== K || e.capture !== n.capture || e.once !== n.once || e.passive !== n.passive, i = e !== K && (n === K || r);
474
474
  r && this.element.removeEventListener(this.name, this, n), i && this.element.addEventListener(this.name, this, e), this._$AH = e;
475
475
  }
476
476
  handleEvent(e) {
477
477
  typeof this._$AH == "function" ? this._$AH.call(this.options?.host ?? this.element, e) : this._$AH.handleEvent(e);
478
478
  }
479
- }, be = class {
479
+ }, Se = class {
480
480
  constructor(e, t, n) {
481
481
  this.element = e, this.type = 6, this._$AN = void 0, this._$AM = t, this.options = n;
482
482
  }
@@ -484,18 +484,18 @@ var me = class {
484
484
  return this._$AM._$AU;
485
485
  }
486
486
  _$AI(e) {
487
- pe(this, e);
487
+ he(this, e);
488
488
  }
489
- }, xe = P.litHtmlPolyfillSupport;
490
- xe?.(fe, he), (P.litHtmlVersions ??= []).push("3.3.3");
491
- var Se = (e, t, n) => {
489
+ }, Ce = P.litHtmlPolyfillSupport;
490
+ Ce?.(me, _e), (P.litHtmlVersions ??= []).push("3.3.3");
491
+ var we = (e, t, n) => {
492
492
  let r = n?.renderBefore ?? t, i = r._$litPart$;
493
493
  if (i === void 0) {
494
494
  let e = n?.renderBefore ?? null;
495
- r._$litPart$ = i = new he(t.insertBefore(re(), e), e, void 0, n ?? {});
495
+ r._$litPart$ = i = new _e(t.insertBefore(ie(), e), e, void 0, n ?? {});
496
496
  }
497
497
  return i._$AI(e), i;
498
- }, Ce = globalThis, we = class extends N {
498
+ }, Te = globalThis, Ee = class extends N {
499
499
  constructor() {
500
500
  super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
501
501
  }
@@ -505,7 +505,7 @@ var Se = (e, t, n) => {
505
505
  }
506
506
  update(e) {
507
507
  let t = this.render();
508
- this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do = Se(t, this.renderRoot, this.renderOptions);
508
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do = we(t, this.renderRoot, this.renderOptions);
509
509
  }
510
510
  connectedCallback() {
511
511
  super.connectedCallback(), this._$Do?.setConnected(!0);
@@ -514,25 +514,25 @@ var Se = (e, t, n) => {
514
514
  super.disconnectedCallback(), this._$Do?.setConnected(!1);
515
515
  }
516
516
  render() {
517
- return q;
517
+ return G;
518
518
  }
519
519
  };
520
- we._$litElement$ = !0, we.finalized = !0, Ce.litElementHydrateSupport?.({ LitElement: we });
521
- var Te = Ce.litElementPolyfillSupport;
522
- Te?.({ LitElement: we }), (Ce.litElementVersions ??= []).push("4.2.2");
520
+ Ee._$litElement$ = !0, Ee.finalized = !0, Te.litElementHydrateSupport?.({ LitElement: Ee });
521
+ var De = Te.litElementPolyfillSupport;
522
+ De?.({ LitElement: Ee }), (Te.litElementVersions ??= []).push("4.2.2");
523
523
  //#endregion
524
524
  //#region node_modules/@lit/reactive-element/decorators/custom-element.js
525
- var X = (e) => (t, n) => {
525
+ var J = (e) => (t, n) => {
526
526
  n === void 0 ? customElements.define(e, t) : n.addInitializer(() => {
527
527
  customElements.define(e, t);
528
528
  });
529
- }, Ee = {
529
+ }, Oe = {
530
530
  attribute: !0,
531
531
  type: String,
532
532
  converter: A,
533
533
  reflect: !1,
534
534
  hasChanged: j
535
- }, De = (e = Ee, t, n) => {
535
+ }, ke = (e = Oe, t, n) => {
536
536
  let { kind: r, metadata: i } = n, a = globalThis.litPropertyMetadata.get(i);
537
537
  if (a === void 0 && globalThis.litPropertyMetadata.set(i, a = /* @__PURE__ */ new Map()), r === "setter" && ((e = Object.create(e)).wrapped = !0), a.set(n.name, e), r === "accessor") {
538
538
  let { name: r } = n;
@@ -555,16 +555,16 @@ var X = (e) => (t, n) => {
555
555
  }
556
556
  throw Error("Unsupported decorator location: " + r);
557
557
  };
558
- function Oe(e) {
559
- return (t, n) => typeof n == "object" ? De(e, t, n) : ((e, t, n) => {
558
+ function Ae(e) {
559
+ return (t, n) => typeof n == "object" ? ke(e, t, n) : ((e, t, n) => {
560
560
  let r = t.hasOwnProperty(n);
561
561
  return t.constructor.createProperty(n, e), r ? Object.getOwnPropertyDescriptor(t, n) : void 0;
562
562
  })(e, t, n);
563
563
  }
564
564
  //#endregion
565
565
  //#region node_modules/@lit/reactive-element/decorators/state.js
566
- function ke(e) {
567
- return Oe({
566
+ function je(e) {
567
+ return Ae({
568
568
  ...e,
569
569
  state: !0,
570
570
  attribute: !1
@@ -572,16 +572,16 @@ function ke(e) {
572
572
  }
573
573
  //#endregion
574
574
  //#region __vite-browser-external
575
- var Ae = /* @__PURE__ */ o(((e, t) => {
575
+ var Me = /* @__PURE__ */ o(((e, t) => {
576
576
  t.exports = {};
577
- })), Z = /* @__PURE__ */ o(((e, t) => {
577
+ })), Y = /* @__PURE__ */ o(((e, t) => {
578
578
  (function(n, r) {
579
579
  typeof e == "object" ? t.exports = e = r() : typeof define == "function" && define.amd ? define([], r) : n.CryptoJS = r();
580
580
  })(e, function() {
581
581
  var e = e || function(e, t) {
582
582
  var n;
583
583
  if (typeof window < "u" && window.crypto && (n = window.crypto), typeof self < "u" && self.crypto && (n = self.crypto), typeof globalThis < "u" && globalThis.crypto && (n = globalThis.crypto), !n && typeof window < "u" && window.msCrypto && (n = window.msCrypto), !n && typeof global < "u" && global.crypto && (n = global.crypto), !n && typeof l == "function") try {
584
- n = Ae();
584
+ n = Me();
585
585
  } catch {}
586
586
  var r = function() {
587
587
  if (n) {
@@ -737,9 +737,9 @@ var Ae = /* @__PURE__ */ o(((e, t) => {
737
737
  }(Math);
738
738
  return e;
739
739
  });
740
- })), je = /* @__PURE__ */ o(((e, t) => {
740
+ })), Ne = /* @__PURE__ */ o(((e, t) => {
741
741
  (function(n, r) {
742
- typeof e == "object" ? t.exports = e = r(Z()) : typeof define == "function" && define.amd ? define(["./core"], r) : r(n.CryptoJS);
742
+ typeof e == "object" ? t.exports = e = r(Y()) : typeof define == "function" && define.amd ? define(["./core"], r) : r(n.CryptoJS);
743
743
  })(e, function(e) {
744
744
  return (function(t) {
745
745
  var n = e, r = n.lib, i = r.Base, a = r.WordArray, o = n.x64 = {};
@@ -763,9 +763,9 @@ var Ae = /* @__PURE__ */ o(((e, t) => {
763
763
  });
764
764
  })(), e;
765
765
  });
766
- })), Me = /* @__PURE__ */ o(((e, t) => {
766
+ })), Pe = /* @__PURE__ */ o(((e, t) => {
767
767
  (function(n, r) {
768
- typeof e == "object" ? t.exports = e = r(Z()) : typeof define == "function" && define.amd ? define(["./core"], r) : r(n.CryptoJS);
768
+ typeof e == "object" ? t.exports = e = r(Y()) : typeof define == "function" && define.amd ? define(["./core"], r) : r(n.CryptoJS);
769
769
  })(e, function(e) {
770
770
  return (function() {
771
771
  if (typeof ArrayBuffer == "function") {
@@ -779,9 +779,9 @@ var Ae = /* @__PURE__ */ o(((e, t) => {
779
779
  }
780
780
  })(), e.lib.WordArray;
781
781
  });
782
- })), Ne = /* @__PURE__ */ o(((e, t) => {
782
+ })), Fe = /* @__PURE__ */ o(((e, t) => {
783
783
  (function(n, r) {
784
- typeof e == "object" ? t.exports = e = r(Z()) : typeof define == "function" && define.amd ? define(["./core"], r) : r(n.CryptoJS);
784
+ typeof e == "object" ? t.exports = e = r(Y()) : typeof define == "function" && define.amd ? define(["./core"], r) : r(n.CryptoJS);
785
785
  })(e, function(e) {
786
786
  return (function() {
787
787
  var t = e, n = t.lib.WordArray, r = t.enc;
@@ -815,9 +815,9 @@ var Ae = /* @__PURE__ */ o(((e, t) => {
815
815
  }
816
816
  })(), e.enc.Utf16;
817
817
  });
818
- })), Pe = /* @__PURE__ */ o(((e, t) => {
818
+ })), Ie = /* @__PURE__ */ o(((e, t) => {
819
819
  (function(n, r) {
820
- typeof e == "object" ? t.exports = e = r(Z()) : typeof define == "function" && define.amd ? define(["./core"], r) : r(n.CryptoJS);
820
+ typeof e == "object" ? t.exports = e = r(Y()) : typeof define == "function" && define.amd ? define(["./core"], r) : r(n.CryptoJS);
821
821
  })(e, function(e) {
822
822
  return (function() {
823
823
  var t = e, n = t.lib.WordArray, r = t.enc;
@@ -854,9 +854,9 @@ var Ae = /* @__PURE__ */ o(((e, t) => {
854
854
  }
855
855
  })(), e.enc.Base64;
856
856
  });
857
- })), Fe = /* @__PURE__ */ o(((e, t) => {
857
+ })), Le = /* @__PURE__ */ o(((e, t) => {
858
858
  (function(n, r) {
859
- typeof e == "object" ? t.exports = e = r(Z()) : typeof define == "function" && define.amd ? define(["./core"], r) : r(n.CryptoJS);
859
+ typeof e == "object" ? t.exports = e = r(Y()) : typeof define == "function" && define.amd ? define(["./core"], r) : r(n.CryptoJS);
860
860
  })(e, function(e) {
861
861
  return (function() {
862
862
  var t = e, n = t.lib.WordArray, r = t.enc;
@@ -896,9 +896,9 @@ var Ae = /* @__PURE__ */ o(((e, t) => {
896
896
  }
897
897
  })(), e.enc.Base64url;
898
898
  });
899
- })), Ie = /* @__PURE__ */ o(((e, t) => {
899
+ })), Re = /* @__PURE__ */ o(((e, t) => {
900
900
  (function(n, r) {
901
- typeof e == "object" ? t.exports = e = r(Z()) : typeof define == "function" && define.amd ? define(["./core"], r) : r(n.CryptoJS);
901
+ typeof e == "object" ? t.exports = e = r(Y()) : typeof define == "function" && define.amd ? define(["./core"], r) : r(n.CryptoJS);
902
902
  })(e, function(e) {
903
903
  return (function(t) {
904
904
  var n = e, r = n.lib, i = r.WordArray, a = r.Hasher, o = n.algo, s = [];
@@ -957,9 +957,9 @@ var Ae = /* @__PURE__ */ o(((e, t) => {
957
957
  n.MD5 = a._createHelper(c), n.HmacMD5 = a._createHmacHelper(c);
958
958
  })(Math), e.MD5;
959
959
  });
960
- })), Le = /* @__PURE__ */ o(((e, t) => {
960
+ })), ze = /* @__PURE__ */ o(((e, t) => {
961
961
  (function(n, r) {
962
- typeof e == "object" ? t.exports = e = r(Z()) : typeof define == "function" && define.amd ? define(["./core"], r) : r(n.CryptoJS);
962
+ typeof e == "object" ? t.exports = e = r(Y()) : typeof define == "function" && define.amd ? define(["./core"], r) : r(n.CryptoJS);
963
963
  })(e, function(e) {
964
964
  return (function() {
965
965
  var t = e, n = t.lib, r = n.WordArray, i = n.Hasher, a = t.algo, o = [], s = a.SHA1 = i.extend({
@@ -996,9 +996,9 @@ var Ae = /* @__PURE__ */ o(((e, t) => {
996
996
  t.SHA1 = i._createHelper(s), t.HmacSHA1 = i._createHmacHelper(s);
997
997
  })(), e.SHA1;
998
998
  });
999
- })), Re = /* @__PURE__ */ o(((e, t) => {
999
+ })), Be = /* @__PURE__ */ o(((e, t) => {
1000
1000
  (function(n, r) {
1001
- typeof e == "object" ? t.exports = e = r(Z()) : typeof define == "function" && define.amd ? define(["./core"], r) : r(n.CryptoJS);
1001
+ typeof e == "object" ? t.exports = e = r(Y()) : typeof define == "function" && define.amd ? define(["./core"], r) : r(n.CryptoJS);
1002
1002
  })(e, function(e) {
1003
1003
  return (function(t) {
1004
1004
  var n = e, r = n.lib, i = r.WordArray, a = r.Hasher, o = n.algo, s = [], c = [];
@@ -1040,9 +1040,9 @@ var Ae = /* @__PURE__ */ o(((e, t) => {
1040
1040
  n.SHA256 = a._createHelper(u), n.HmacSHA256 = a._createHmacHelper(u);
1041
1041
  })(Math), e.SHA256;
1042
1042
  });
1043
- })), ze = /* @__PURE__ */ o(((e, t) => {
1043
+ })), Ve = /* @__PURE__ */ o(((e, t) => {
1044
1044
  (function(n, r, i) {
1045
- typeof e == "object" ? t.exports = e = r(Z(), Re()) : typeof define == "function" && define.amd ? define(["./core", "./sha256"], r) : r(n.CryptoJS);
1045
+ typeof e == "object" ? t.exports = e = r(Y(), Be()) : typeof define == "function" && define.amd ? define(["./core", "./sha256"], r) : r(n.CryptoJS);
1046
1046
  })(e, function(e) {
1047
1047
  return (function() {
1048
1048
  var t = e, n = t.lib.WordArray, r = t.algo, i = r.SHA256, a = r.SHA224 = i.extend({
@@ -1066,9 +1066,9 @@ var Ae = /* @__PURE__ */ o(((e, t) => {
1066
1066
  t.SHA224 = i._createHelper(a), t.HmacSHA224 = i._createHmacHelper(a);
1067
1067
  })(), e.SHA224;
1068
1068
  });
1069
- })), Be = /* @__PURE__ */ o(((e, t) => {
1069
+ })), He = /* @__PURE__ */ o(((e, t) => {
1070
1070
  (function(n, r, i) {
1071
- typeof e == "object" ? t.exports = e = r(Z(), je()) : typeof define == "function" && define.amd ? define(["./core", "./x64-core"], r) : r(n.CryptoJS);
1071
+ typeof e == "object" ? t.exports = e = r(Y(), Ne()) : typeof define == "function" && define.amd ? define(["./core", "./x64-core"], r) : r(n.CryptoJS);
1072
1072
  })(e, function(e) {
1073
1073
  return (function() {
1074
1074
  var t = e, n = t.lib.Hasher, r = t.x64, i = r.Word, a = r.WordArray, o = t.algo;
@@ -1174,17 +1174,17 @@ var Ae = /* @__PURE__ */ o(((e, t) => {
1174
1174
  ]);
1175
1175
  },
1176
1176
  _doProcessBlock: function(e, t) {
1177
- for (var n = this._hash.words, r = n[0], i = n[1], a = n[2], o = n[3], s = n[4], u = n[5], d = n[6], f = n[7], p = r.high, m = r.low, h = i.high, g = i.low, _ = a.high, v = a.low, y = o.high, b = o.low, x = s.high, S = s.low, C = u.high, w = u.low, T = d.high, E = d.low, D = f.high, O = f.low, k = p, A = m, j = h, M = g, N = _, P = v, ee = y, F = b, I = x, L = S, R = C, te = w, ne = T, z = E, re = D, B = O, V = 0; V < 80; V++) {
1178
- var H, U, W = l[V];
1179
- if (V < 16) U = W.high = e[t + V * 2] | 0, H = W.low = e[t + V * 2 + 1] | 0;
1177
+ for (var n = this._hash.words, r = n[0], i = n[1], a = n[2], o = n[3], s = n[4], u = n[5], d = n[6], f = n[7], p = r.high, m = r.low, h = i.high, g = i.low, _ = a.high, v = a.low, y = o.high, b = o.low, x = s.high, S = s.low, C = u.high, w = u.low, T = d.high, E = d.low, D = f.high, O = f.low, k = p, A = m, j = h, M = g, N = _, P = v, ee = y, te = b, F = x, I = S, L = C, ne = w, re = T, R = E, ie = D, z = O, B = 0; B < 80; B++) {
1178
+ var V, H, ae = l[B];
1179
+ if (B < 16) H = ae.high = e[t + B * 2] | 0, V = ae.low = e[t + B * 2 + 1] | 0;
1180
1180
  else {
1181
- var ie = l[V - 15], ae = ie.high, G = ie.low, oe = (ae >>> 1 | G << 31) ^ (ae >>> 8 | G << 24) ^ ae >>> 7, se = (G >>> 1 | ae << 31) ^ (G >>> 8 | ae << 24) ^ (G >>> 7 | ae << 25), ce = l[V - 2], K = ce.high, q = ce.low, J = (K >>> 19 | q << 13) ^ (K << 3 | q >>> 29) ^ K >>> 6, le = (q >>> 19 | K << 13) ^ (q << 3 | K >>> 29) ^ (q >>> 6 | K << 26), Y = l[V - 7], ue = Y.high, de = Y.low, fe = l[V - 16], pe = fe.high, me = fe.low;
1182
- H = se + de, U = oe + ue + +(H >>> 0 < se >>> 0), H += le, U = U + J + +(H >>> 0 < le >>> 0), H += me, U = U + pe + +(H >>> 0 < me >>> 0), W.high = U, W.low = H;
1181
+ var oe = l[B - 15], se = oe.high, U = oe.low, ce = (se >>> 1 | U << 31) ^ (se >>> 8 | U << 24) ^ se >>> 7, le = (U >>> 1 | se << 31) ^ (U >>> 8 | se << 24) ^ (U >>> 7 | se << 25), ue = l[B - 2], W = ue.high, G = ue.low, K = (W >>> 19 | G << 13) ^ (W << 3 | G >>> 29) ^ W >>> 6, de = (G >>> 19 | W << 13) ^ (G << 3 | W >>> 29) ^ (G >>> 6 | W << 26), q = l[B - 7], fe = q.high, pe = q.low, me = l[B - 16], he = me.high, ge = me.low;
1182
+ V = le + pe, H = ce + fe + +(V >>> 0 < le >>> 0), V += de, H = H + K + +(V >>> 0 < de >>> 0), V += ge, H = H + he + +(V >>> 0 < ge >>> 0), ae.high = H, ae.low = V;
1183
1183
  }
1184
- var he = I & R ^ ~I & ne, ge = L & te ^ ~L & z, _e = k & j ^ k & N ^ j & N, ve = A & M ^ A & P ^ M & P, ye = (k >>> 28 | A << 4) ^ (k << 30 | A >>> 2) ^ (k << 25 | A >>> 7), be = (A >>> 28 | k << 4) ^ (A << 30 | k >>> 2) ^ (A << 25 | k >>> 7), xe = (I >>> 14 | L << 18) ^ (I >>> 18 | L << 14) ^ (I << 23 | L >>> 9), Se = (L >>> 14 | I << 18) ^ (L >>> 18 | I << 14) ^ (L << 23 | I >>> 9), Ce = c[V], we = Ce.high, Te = Ce.low, X = B + Se, Ee = re + xe + +(X >>> 0 < B >>> 0), X = X + ge, Ee = Ee + he + +(X >>> 0 < ge >>> 0), X = X + Te, Ee = Ee + we + +(X >>> 0 < Te >>> 0), X = X + H, Ee = Ee + U + +(X >>> 0 < H >>> 0), De = be + ve, Oe = ye + _e + +(De >>> 0 < be >>> 0);
1185
- re = ne, B = z, ne = R, z = te, R = I, te = L, L = F + X | 0, I = ee + Ee + +(L >>> 0 < F >>> 0) | 0, ee = N, F = P, N = j, P = M, j = k, M = A, A = X + De | 0, k = Ee + Oe + +(A >>> 0 < X >>> 0) | 0;
1184
+ var _e = F & L ^ ~F & re, ve = I & ne ^ ~I & R, ye = k & j ^ k & N ^ j & N, be = A & M ^ A & P ^ M & P, xe = (k >>> 28 | A << 4) ^ (k << 30 | A >>> 2) ^ (k << 25 | A >>> 7), Se = (A >>> 28 | k << 4) ^ (A << 30 | k >>> 2) ^ (A << 25 | k >>> 7), Ce = (F >>> 14 | I << 18) ^ (F >>> 18 | I << 14) ^ (F << 23 | I >>> 9), we = (I >>> 14 | F << 18) ^ (I >>> 18 | F << 14) ^ (I << 23 | F >>> 9), Te = c[B], Ee = Te.high, De = Te.low, J = z + we, Oe = ie + Ce + +(J >>> 0 < z >>> 0), J = J + ve, Oe = Oe + _e + +(J >>> 0 < ve >>> 0), J = J + De, Oe = Oe + Ee + +(J >>> 0 < De >>> 0), J = J + V, Oe = Oe + H + +(J >>> 0 < V >>> 0), ke = Se + be, Ae = xe + ye + +(ke >>> 0 < Se >>> 0);
1185
+ ie = re, z = R, re = L, R = ne, L = F, ne = I, I = te + J | 0, F = ee + Oe + +(I >>> 0 < te >>> 0) | 0, ee = N, te = P, N = j, P = M, j = k, M = A, A = J + ke | 0, k = Oe + Ae + +(A >>> 0 < J >>> 0) | 0;
1186
1186
  }
1187
- m = r.low = m + A, r.high = p + k + +(m >>> 0 < A >>> 0), g = i.low = g + M, i.high = h + j + +(g >>> 0 < M >>> 0), v = a.low = v + P, a.high = _ + N + +(v >>> 0 < P >>> 0), b = o.low = b + F, o.high = y + ee + +(b >>> 0 < F >>> 0), S = s.low = S + L, s.high = x + I + +(S >>> 0 < L >>> 0), w = u.low = w + te, u.high = C + R + +(w >>> 0 < te >>> 0), E = d.low = E + z, d.high = T + ne + +(E >>> 0 < z >>> 0), O = f.low = O + B, f.high = D + re + +(O >>> 0 < B >>> 0);
1187
+ m = r.low = m + A, r.high = p + k + +(m >>> 0 < A >>> 0), g = i.low = g + M, i.high = h + j + +(g >>> 0 < M >>> 0), v = a.low = v + P, a.high = _ + N + +(v >>> 0 < P >>> 0), b = o.low = b + te, o.high = y + ee + +(b >>> 0 < te >>> 0), S = s.low = S + I, s.high = x + F + +(S >>> 0 < I >>> 0), w = u.low = w + ne, u.high = C + L + +(w >>> 0 < ne >>> 0), E = d.low = E + R, d.high = T + re + +(E >>> 0 < R >>> 0), O = f.low = O + z, f.high = D + ie + +(O >>> 0 < z >>> 0);
1188
1188
  },
1189
1189
  _doFinalize: function() {
1190
1190
  var e = this._data, t = e.words, n = this._nDataBytes * 8, r = e.sigBytes * 8;
@@ -1199,9 +1199,9 @@ var Ae = /* @__PURE__ */ o(((e, t) => {
1199
1199
  t.SHA512 = n._createHelper(u), t.HmacSHA512 = n._createHmacHelper(u);
1200
1200
  })(), e.SHA512;
1201
1201
  });
1202
- })), Ve = /* @__PURE__ */ o(((e, t) => {
1202
+ })), Ue = /* @__PURE__ */ o(((e, t) => {
1203
1203
  (function(n, r, i) {
1204
- typeof e == "object" ? t.exports = e = r(Z(), je(), Be()) : typeof define == "function" && define.amd ? define([
1204
+ typeof e == "object" ? t.exports = e = r(Y(), Ne(), He()) : typeof define == "function" && define.amd ? define([
1205
1205
  "./core",
1206
1206
  "./x64-core",
1207
1207
  "./sha512"
@@ -1229,9 +1229,9 @@ var Ae = /* @__PURE__ */ o(((e, t) => {
1229
1229
  t.SHA384 = o._createHelper(s), t.HmacSHA384 = o._createHmacHelper(s);
1230
1230
  })(), e.SHA384;
1231
1231
  });
1232
- })), He = /* @__PURE__ */ o(((e, t) => {
1232
+ })), We = /* @__PURE__ */ o(((e, t) => {
1233
1233
  (function(n, r, i) {
1234
- typeof e == "object" ? t.exports = e = r(Z(), je()) : typeof define == "function" && define.amd ? define(["./core", "./x64-core"], r) : r(n.CryptoJS);
1234
+ typeof e == "object" ? t.exports = e = r(Y(), Ne()) : typeof define == "function" && define.amd ? define(["./core", "./x64-core"], r) : r(n.CryptoJS);
1235
1235
  })(e, function(e) {
1236
1236
  return (function(t) {
1237
1237
  var n = e, r = n.lib, i = r.WordArray, a = r.Hasher, o = n.x64.Word, s = n.algo, c = [], l = [], u = [];
@@ -1318,9 +1318,9 @@ var Ae = /* @__PURE__ */ o(((e, t) => {
1318
1318
  n.SHA3 = a._createHelper(f), n.HmacSHA3 = a._createHmacHelper(f);
1319
1319
  })(Math), e.SHA3;
1320
1320
  });
1321
- })), Ue = /* @__PURE__ */ o(((e, t) => {
1321
+ })), Ge = /* @__PURE__ */ o(((e, t) => {
1322
1322
  (function(n, r) {
1323
- typeof e == "object" ? t.exports = e = r(Z()) : typeof define == "function" && define.amd ? define(["./core"], r) : r(n.CryptoJS);
1323
+ typeof e == "object" ? t.exports = e = r(Y()) : typeof define == "function" && define.amd ? define(["./core"], r) : r(n.CryptoJS);
1324
1324
  })(e, function(e) {
1325
1325
  return (function(t) {
1326
1326
  var n = e, r = n.lib, i = r.WordArray, a = r.Hasher, o = n.algo, s = i.create([
@@ -1712,9 +1712,9 @@ var Ae = /* @__PURE__ */ o(((e, t) => {
1712
1712
  n.RIPEMD160 = a._createHelper(p), n.HmacRIPEMD160 = a._createHmacHelper(p);
1713
1713
  })(Math), e.RIPEMD160;
1714
1714
  });
1715
- })), We = /* @__PURE__ */ o(((e, t) => {
1715
+ })), Ke = /* @__PURE__ */ o(((e, t) => {
1716
1716
  (function(n, r) {
1717
- typeof e == "object" ? t.exports = e = r(Z()) : typeof define == "function" && define.amd ? define(["./core"], r) : r(n.CryptoJS);
1717
+ typeof e == "object" ? t.exports = e = r(Y()) : typeof define == "function" && define.amd ? define(["./core"], r) : r(n.CryptoJS);
1718
1718
  })(e, function(e) {
1719
1719
  (function() {
1720
1720
  var t = e, n = t.lib.Base, r = t.enc.Utf8, i = t.algo;
@@ -1740,9 +1740,9 @@ var Ae = /* @__PURE__ */ o(((e, t) => {
1740
1740
  });
1741
1741
  })();
1742
1742
  });
1743
- })), Ge = /* @__PURE__ */ o(((e, t) => {
1743
+ })), qe = /* @__PURE__ */ o(((e, t) => {
1744
1744
  (function(n, r, i) {
1745
- typeof e == "object" ? t.exports = e = r(Z(), Re(), We()) : typeof define == "function" && define.amd ? define([
1745
+ typeof e == "object" ? t.exports = e = r(Y(), Be(), Ke()) : typeof define == "function" && define.amd ? define([
1746
1746
  "./core",
1747
1747
  "./sha256",
1748
1748
  "./hmac"
@@ -1776,9 +1776,9 @@ var Ae = /* @__PURE__ */ o(((e, t) => {
1776
1776
  };
1777
1777
  })(), e.PBKDF2;
1778
1778
  });
1779
- })), Ke = /* @__PURE__ */ o(((e, t) => {
1779
+ })), Je = /* @__PURE__ */ o(((e, t) => {
1780
1780
  (function(n, r, i) {
1781
- typeof e == "object" ? t.exports = e = r(Z(), Le(), We()) : typeof define == "function" && define.amd ? define([
1781
+ typeof e == "object" ? t.exports = e = r(Y(), ze(), Ke()) : typeof define == "function" && define.amd ? define([
1782
1782
  "./core",
1783
1783
  "./sha1",
1784
1784
  "./hmac"
@@ -1808,9 +1808,9 @@ var Ae = /* @__PURE__ */ o(((e, t) => {
1808
1808
  };
1809
1809
  })(), e.EvpKDF;
1810
1810
  });
1811
- })), Q = /* @__PURE__ */ o(((e, t) => {
1811
+ })), X = /* @__PURE__ */ o(((e, t) => {
1812
1812
  (function(n, r, i) {
1813
- typeof e == "object" ? t.exports = e = r(Z(), Ke()) : typeof define == "function" && define.amd ? define(["./core", "./evpkdf"], r) : r(n.CryptoJS);
1813
+ typeof e == "object" ? t.exports = e = r(Y(), Je()) : typeof define == "function" && define.amd ? define(["./core", "./evpkdf"], r) : r(n.CryptoJS);
1814
1814
  })(e, function(e) {
1815
1815
  e.lib.Cipher || function(t) {
1816
1816
  var n = e, r = n.lib, i = r.Base, a = r.WordArray, o = r.BufferedBlockAlgorithm, s = n.enc;
@@ -1987,9 +1987,9 @@ var Ae = /* @__PURE__ */ o(((e, t) => {
1987
1987
  });
1988
1988
  }();
1989
1989
  });
1990
- })), qe = /* @__PURE__ */ o(((e, t) => {
1990
+ })), Ye = /* @__PURE__ */ o(((e, t) => {
1991
1991
  (function(n, r, i) {
1992
- typeof e == "object" ? t.exports = e = r(Z(), Q()) : typeof define == "function" && define.amd ? define(["./core", "./cipher-core"], r) : r(n.CryptoJS);
1992
+ typeof e == "object" ? t.exports = e = r(Y(), X()) : typeof define == "function" && define.amd ? define(["./core", "./cipher-core"], r) : r(n.CryptoJS);
1993
1993
  })(e, function(e) {
1994
1994
  return e.mode.CFB = function() {
1995
1995
  var t = e.lib.BlockCipherMode.extend();
@@ -2008,9 +2008,9 @@ var Ae = /* @__PURE__ */ o(((e, t) => {
2008
2008
  return t;
2009
2009
  }(), e.mode.CFB;
2010
2010
  });
2011
- })), Je = /* @__PURE__ */ o(((e, t) => {
2011
+ })), Xe = /* @__PURE__ */ o(((e, t) => {
2012
2012
  (function(n, r, i) {
2013
- typeof e == "object" ? t.exports = e = r(Z(), Q()) : typeof define == "function" && define.amd ? define(["./core", "./cipher-core"], r) : r(n.CryptoJS);
2013
+ typeof e == "object" ? t.exports = e = r(Y(), X()) : typeof define == "function" && define.amd ? define(["./core", "./cipher-core"], r) : r(n.CryptoJS);
2014
2014
  })(e, function(e) {
2015
2015
  return e.mode.CTR = function() {
2016
2016
  var t = e.lib.BlockCipherMode.extend();
@@ -2023,9 +2023,9 @@ var Ae = /* @__PURE__ */ o(((e, t) => {
2023
2023
  } }), t;
2024
2024
  }(), e.mode.CTR;
2025
2025
  });
2026
- })), Ye = /* @__PURE__ */ o(((e, t) => {
2026
+ })), Ze = /* @__PURE__ */ o(((e, t) => {
2027
2027
  (function(n, r, i) {
2028
- typeof e == "object" ? t.exports = e = r(Z(), Q()) : typeof define == "function" && define.amd ? define(["./core", "./cipher-core"], r) : r(n.CryptoJS);
2028
+ typeof e == "object" ? t.exports = e = r(Y(), X()) : typeof define == "function" && define.amd ? define(["./core", "./cipher-core"], r) : r(n.CryptoJS);
2029
2029
  })(e, function(e) {
2030
2030
  return e.mode.CTRGladman = function() {
2031
2031
  var t = e.lib.BlockCipherMode.extend();
@@ -2048,9 +2048,9 @@ var Ae = /* @__PURE__ */ o(((e, t) => {
2048
2048
  } }), t;
2049
2049
  }(), e.mode.CTRGladman;
2050
2050
  });
2051
- })), Xe = /* @__PURE__ */ o(((e, t) => {
2051
+ })), Qe = /* @__PURE__ */ o(((e, t) => {
2052
2052
  (function(n, r, i) {
2053
- typeof e == "object" ? t.exports = e = r(Z(), Q()) : typeof define == "function" && define.amd ? define(["./core", "./cipher-core"], r) : r(n.CryptoJS);
2053
+ typeof e == "object" ? t.exports = e = r(Y(), X()) : typeof define == "function" && define.amd ? define(["./core", "./cipher-core"], r) : r(n.CryptoJS);
2054
2054
  })(e, function(e) {
2055
2055
  return e.mode.OFB = function() {
2056
2056
  var t = e.lib.BlockCipherMode.extend();
@@ -2061,9 +2061,9 @@ var Ae = /* @__PURE__ */ o(((e, t) => {
2061
2061
  } }), t;
2062
2062
  }(), e.mode.OFB;
2063
2063
  });
2064
- })), Ze = /* @__PURE__ */ o(((e, t) => {
2064
+ })), $e = /* @__PURE__ */ o(((e, t) => {
2065
2065
  (function(n, r, i) {
2066
- typeof e == "object" ? t.exports = e = r(Z(), Q()) : typeof define == "function" && define.amd ? define(["./core", "./cipher-core"], r) : r(n.CryptoJS);
2066
+ typeof e == "object" ? t.exports = e = r(Y(), X()) : typeof define == "function" && define.amd ? define(["./core", "./cipher-core"], r) : r(n.CryptoJS);
2067
2067
  })(e, function(e) {
2068
2068
  return e.mode.ECB = function() {
2069
2069
  var t = e.lib.BlockCipherMode.extend();
@@ -2074,9 +2074,9 @@ var Ae = /* @__PURE__ */ o(((e, t) => {
2074
2074
  } }), t;
2075
2075
  }(), e.mode.ECB;
2076
2076
  });
2077
- })), Qe = /* @__PURE__ */ o(((e, t) => {
2077
+ })), et = /* @__PURE__ */ o(((e, t) => {
2078
2078
  (function(n, r, i) {
2079
- typeof e == "object" ? t.exports = e = r(Z(), Q()) : typeof define == "function" && define.amd ? define(["./core", "./cipher-core"], r) : r(n.CryptoJS);
2079
+ typeof e == "object" ? t.exports = e = r(Y(), X()) : typeof define == "function" && define.amd ? define(["./core", "./cipher-core"], r) : r(n.CryptoJS);
2080
2080
  })(e, function(e) {
2081
2081
  return e.pad.AnsiX923 = {
2082
2082
  pad: function(e, t) {
@@ -2089,9 +2089,9 @@ var Ae = /* @__PURE__ */ o(((e, t) => {
2089
2089
  }
2090
2090
  }, e.pad.Ansix923;
2091
2091
  });
2092
- })), $e = /* @__PURE__ */ o(((e, t) => {
2092
+ })), tt = /* @__PURE__ */ o(((e, t) => {
2093
2093
  (function(n, r, i) {
2094
- typeof e == "object" ? t.exports = e = r(Z(), Q()) : typeof define == "function" && define.amd ? define(["./core", "./cipher-core"], r) : r(n.CryptoJS);
2094
+ typeof e == "object" ? t.exports = e = r(Y(), X()) : typeof define == "function" && define.amd ? define(["./core", "./cipher-core"], r) : r(n.CryptoJS);
2095
2095
  })(e, function(e) {
2096
2096
  return e.pad.Iso10126 = {
2097
2097
  pad: function(t, n) {
@@ -2104,9 +2104,9 @@ var Ae = /* @__PURE__ */ o(((e, t) => {
2104
2104
  }
2105
2105
  }, e.pad.Iso10126;
2106
2106
  });
2107
- })), et = /* @__PURE__ */ o(((e, t) => {
2107
+ })), nt = /* @__PURE__ */ o(((e, t) => {
2108
2108
  (function(n, r, i) {
2109
- typeof e == "object" ? t.exports = e = r(Z(), Q()) : typeof define == "function" && define.amd ? define(["./core", "./cipher-core"], r) : r(n.CryptoJS);
2109
+ typeof e == "object" ? t.exports = e = r(Y(), X()) : typeof define == "function" && define.amd ? define(["./core", "./cipher-core"], r) : r(n.CryptoJS);
2110
2110
  })(e, function(e) {
2111
2111
  return e.pad.Iso97971 = {
2112
2112
  pad: function(t, n) {
@@ -2117,9 +2117,9 @@ var Ae = /* @__PURE__ */ o(((e, t) => {
2117
2117
  }
2118
2118
  }, e.pad.Iso97971;
2119
2119
  });
2120
- })), tt = /* @__PURE__ */ o(((e, t) => {
2120
+ })), rt = /* @__PURE__ */ o(((e, t) => {
2121
2121
  (function(n, r, i) {
2122
- typeof e == "object" ? t.exports = e = r(Z(), Q()) : typeof define == "function" && define.amd ? define(["./core", "./cipher-core"], r) : r(n.CryptoJS);
2122
+ typeof e == "object" ? t.exports = e = r(Y(), X()) : typeof define == "function" && define.amd ? define(["./core", "./cipher-core"], r) : r(n.CryptoJS);
2123
2123
  })(e, function(e) {
2124
2124
  return e.pad.ZeroPadding = {
2125
2125
  pad: function(e, t) {
@@ -2134,18 +2134,18 @@ var Ae = /* @__PURE__ */ o(((e, t) => {
2134
2134
  }
2135
2135
  }, e.pad.ZeroPadding;
2136
2136
  });
2137
- })), nt = /* @__PURE__ */ o(((e, t) => {
2137
+ })), it = /* @__PURE__ */ o(((e, t) => {
2138
2138
  (function(n, r, i) {
2139
- typeof e == "object" ? t.exports = e = r(Z(), Q()) : typeof define == "function" && define.amd ? define(["./core", "./cipher-core"], r) : r(n.CryptoJS);
2139
+ typeof e == "object" ? t.exports = e = r(Y(), X()) : typeof define == "function" && define.amd ? define(["./core", "./cipher-core"], r) : r(n.CryptoJS);
2140
2140
  })(e, function(e) {
2141
2141
  return e.pad.NoPadding = {
2142
2142
  pad: function() {},
2143
2143
  unpad: function() {}
2144
2144
  }, e.pad.NoPadding;
2145
2145
  });
2146
- })), rt = /* @__PURE__ */ o(((e, t) => {
2146
+ })), at = /* @__PURE__ */ o(((e, t) => {
2147
2147
  (function(n, r, i) {
2148
- typeof e == "object" ? t.exports = e = r(Z(), Q()) : typeof define == "function" && define.amd ? define(["./core", "./cipher-core"], r) : r(n.CryptoJS);
2148
+ typeof e == "object" ? t.exports = e = r(Y(), X()) : typeof define == "function" && define.amd ? define(["./core", "./cipher-core"], r) : r(n.CryptoJS);
2149
2149
  })(e, function(e) {
2150
2150
  return (function(t) {
2151
2151
  var n = e, r = n.lib.CipherParams, i = n.enc.Hex, a = n.format;
@@ -2160,9 +2160,9 @@ var Ae = /* @__PURE__ */ o(((e, t) => {
2160
2160
  };
2161
2161
  })(), e.format.Hex;
2162
2162
  });
2163
- })), it = /* @__PURE__ */ o(((e, t) => {
2163
+ })), ot = /* @__PURE__ */ o(((e, t) => {
2164
2164
  (function(n, r, i) {
2165
- typeof e == "object" ? t.exports = e = r(Z(), Pe(), Ie(), Ke(), Q()) : typeof define == "function" && define.amd ? define([
2165
+ typeof e == "object" ? t.exports = e = r(Y(), Ie(), Re(), Je(), X()) : typeof define == "function" && define.amd ? define([
2166
2166
  "./core",
2167
2167
  "./enc-base64",
2168
2168
  "./md5",
@@ -2230,9 +2230,9 @@ var Ae = /* @__PURE__ */ o(((e, t) => {
2230
2230
  t.AES = n._createHelper(h);
2231
2231
  })(), e.AES;
2232
2232
  });
2233
- })), at = /* @__PURE__ */ o(((e, t) => {
2233
+ })), st = /* @__PURE__ */ o(((e, t) => {
2234
2234
  (function(n, r, i) {
2235
- typeof e == "object" ? t.exports = e = r(Z(), Pe(), Ie(), Ke(), Q()) : typeof define == "function" && define.amd ? define([
2235
+ typeof e == "object" ? t.exports = e = r(Y(), Ie(), Re(), Je(), X()) : typeof define == "function" && define.amd ? define([
2236
2236
  "./core",
2237
2237
  "./enc-base64",
2238
2238
  "./md5",
@@ -2964,9 +2964,9 @@ var Ae = /* @__PURE__ */ o(((e, t) => {
2964
2964
  t.TripleDES = i._createHelper(m);
2965
2965
  })(), e.TripleDES;
2966
2966
  });
2967
- })), ot = /* @__PURE__ */ o(((e, t) => {
2967
+ })), ct = /* @__PURE__ */ o(((e, t) => {
2968
2968
  (function(n, r, i) {
2969
- typeof e == "object" ? t.exports = e = r(Z(), Pe(), Ie(), Ke(), Q()) : typeof define == "function" && define.amd ? define([
2969
+ typeof e == "object" ? t.exports = e = r(Y(), Ie(), Re(), Je(), X()) : typeof define == "function" && define.amd ? define([
2970
2970
  "./core",
2971
2971
  "./enc-base64",
2972
2972
  "./md5",
@@ -3011,9 +3011,9 @@ var Ae = /* @__PURE__ */ o(((e, t) => {
3011
3011
  t.RC4Drop = n._createHelper(o);
3012
3012
  })(), e.RC4;
3013
3013
  });
3014
- })), st = /* @__PURE__ */ o(((e, t) => {
3014
+ })), lt = /* @__PURE__ */ o(((e, t) => {
3015
3015
  (function(n, r, i) {
3016
- typeof e == "object" ? t.exports = e = r(Z(), Pe(), Ie(), Ke(), Q()) : typeof define == "function" && define.amd ? define([
3016
+ typeof e == "object" ? t.exports = e = r(Y(), Ie(), Re(), Je(), X()) : typeof define == "function" && define.amd ? define([
3017
3017
  "./core",
3018
3018
  "./enc-base64",
3019
3019
  "./md5",
@@ -3073,9 +3073,9 @@ var Ae = /* @__PURE__ */ o(((e, t) => {
3073
3073
  t.Rabbit = n._createHelper(s);
3074
3074
  })(), e.Rabbit;
3075
3075
  });
3076
- })), ct = /* @__PURE__ */ o(((e, t) => {
3076
+ })), ut = /* @__PURE__ */ o(((e, t) => {
3077
3077
  (function(n, r, i) {
3078
- typeof e == "object" ? t.exports = e = r(Z(), Pe(), Ie(), Ke(), Q()) : typeof define == "function" && define.amd ? define([
3078
+ typeof e == "object" ? t.exports = e = r(Y(), Ie(), Re(), Je(), X()) : typeof define == "function" && define.amd ? define([
3079
3079
  "./core",
3080
3080
  "./enc-base64",
3081
3081
  "./md5",
@@ -3134,9 +3134,9 @@ var Ae = /* @__PURE__ */ o(((e, t) => {
3134
3134
  t.RabbitLegacy = n._createHelper(s);
3135
3135
  })(), e.RabbitLegacy;
3136
3136
  });
3137
- })), lt = /* @__PURE__ */ o(((e, t) => {
3137
+ })), dt = /* @__PURE__ */ o(((e, t) => {
3138
3138
  (function(n, r, i) {
3139
- typeof e == "object" ? t.exports = e = r(Z(), Pe(), Ie(), Ke(), Q()) : typeof define == "function" && define.amd ? define([
3139
+ typeof e == "object" ? t.exports = e = r(Y(), Ie(), Re(), Je(), X()) : typeof define == "function" && define.amd ? define([
3140
3140
  "./core",
3141
3141
  "./enc-base64",
3142
3142
  "./md5",
@@ -4257,20 +4257,20 @@ var Ae = /* @__PURE__ */ o(((e, t) => {
4257
4257
  t.Blowfish = n._createHelper(d);
4258
4258
  })(), e.Blowfish;
4259
4259
  });
4260
- })), ut = /* @__PURE__ */ c((/* @__PURE__ */ o(((e, t) => {
4260
+ })), ft = /* @__PURE__ */ c((/* @__PURE__ */ o(((e, t) => {
4261
4261
  (function(n, r, i) {
4262
- typeof e == "object" ? t.exports = e = r(Z(), je(), Me(), Ne(), Pe(), Fe(), Ie(), Le(), Re(), ze(), Be(), Ve(), He(), Ue(), We(), Ge(), Ke(), Q(), qe(), Je(), Ye(), Xe(), Ze(), Qe(), $e(), et(), tt(), nt(), rt(), it(), at(), ot(), st(), ct(), lt()) : typeof define == "function" && define.amd ? define(/* @__PURE__ */ "./core,./x64-core,./lib-typedarrays,./enc-utf16,./enc-base64,./enc-base64url,./md5,./sha1,./sha256,./sha224,./sha512,./sha384,./sha3,./ripemd160,./hmac,./pbkdf2,./evpkdf,./cipher-core,./mode-cfb,./mode-ctr,./mode-ctr-gladman,./mode-ofb,./mode-ecb,./pad-ansix923,./pad-iso10126,./pad-iso97971,./pad-zeropadding,./pad-nopadding,./format-hex,./aes,./tripledes,./rc4,./rabbit,./rabbit-legacy,./blowfish".split(","), r) : n.CryptoJS = r(n.CryptoJS);
4262
+ typeof e == "object" ? t.exports = e = r(Y(), Ne(), Pe(), Fe(), Ie(), Le(), Re(), ze(), Be(), Ve(), He(), Ue(), We(), Ge(), Ke(), qe(), Je(), X(), Ye(), Xe(), Ze(), Qe(), $e(), et(), tt(), nt(), rt(), it(), at(), ot(), st(), ct(), lt(), ut(), dt()) : typeof define == "function" && define.amd ? define(/* @__PURE__ */ "./core,./x64-core,./lib-typedarrays,./enc-utf16,./enc-base64,./enc-base64url,./md5,./sha1,./sha256,./sha224,./sha512,./sha384,./sha3,./ripemd160,./hmac,./pbkdf2,./evpkdf,./cipher-core,./mode-cfb,./mode-ctr,./mode-ctr-gladman,./mode-ofb,./mode-ecb,./pad-ansix923,./pad-iso10126,./pad-iso97971,./pad-zeropadding,./pad-nopadding,./format-hex,./aes,./tripledes,./rc4,./rabbit,./rabbit-legacy,./blowfish".split(","), r) : n.CryptoJS = r(n.CryptoJS);
4263
4263
  })(e, function(e) {
4264
4264
  return e;
4265
4265
  });
4266
- })))(), 1), dt = {
4266
+ })))(), 1), pt = {
4267
4267
  url_sdk_user_login: "/api/web/login",
4268
4268
  url_sdk_user_account: "/api/web/account",
4269
4269
  url_sdk_pay_create: "/api/web/order",
4270
4270
  url_sdk_pay_goods: "/api/web/goods",
4271
4271
  url_sdk_pay_method: "/storage/pay_project/app_id.json"
4272
4272
  };
4273
- function ft(e) {
4273
+ function mt(e) {
4274
4274
  if (!e.type || !e.url || !e.success) {
4275
4275
  console.error("Missing required options for ajax call");
4276
4276
  return;
@@ -4287,10 +4287,10 @@ function ft(e) {
4287
4287
  e.timeout && (s = window.setTimeout(() => {
4288
4288
  i.abort();
4289
4289
  }, e.timeout)), i.onreadystatechange = function() {
4290
- i.readyState === 4 && (s && clearTimeout(s), i.status >= 200 && i.status < 300 || i.status === 304 ? e.success(i.responseText) : (console.error("HTTP Error:", i.status, i.statusText), i.status === 401 && mt(), typeof e.error == "function" && e.error(i)));
4290
+ i.readyState === 4 && (s && clearTimeout(s), i.status >= 200 && i.status < 300 || i.status === 304 ? e.success(i.responseText) : (console.error("HTTP Error:", i.status, i.statusText), i.status === 401 && gt(), typeof e.error == "function" && e.error(i)));
4291
4291
  }, i.send(r);
4292
4292
  }
4293
- function pt(e) {
4293
+ function ht(e) {
4294
4294
  if (!e.type || !e.url || !e.success) {
4295
4295
  console.error("Missing required options for fetch call");
4296
4296
  return;
@@ -4305,7 +4305,7 @@ function pt(e) {
4305
4305
  headers: a,
4306
4306
  body: r
4307
4307
  }).then((t) => {
4308
- if (t.status === 401 && mt(), !t.ok) {
4308
+ if (t.status === 401 && gt(), !t.ok) {
4309
4309
  console.error("Fetch Error:", t), typeof e.error == "function" && e.error(t);
4310
4310
  return;
4311
4311
  }
@@ -4316,15 +4316,15 @@ function pt(e) {
4316
4316
  console.error("Fetch Catch Error:", t), typeof e.error == "function" && e.error(t);
4317
4317
  });
4318
4318
  }
4319
- function mt() {
4319
+ function gt() {
4320
4320
  console.warn("Authentication failed or Token expired."), localStorage.removeItem("vela_user_token"), localStorage.removeItem("vela_user_id");
4321
4321
  }
4322
- var $ = {
4323
- urls: dt,
4322
+ var Z = {
4323
+ urls: pt,
4324
4324
  request: {
4325
4325
  async: {
4326
4326
  get: (e, t, n) => {
4327
- ft({
4327
+ mt({
4328
4328
  type: "GET",
4329
4329
  url: e,
4330
4330
  data: t,
@@ -4333,7 +4333,7 @@ var $ = {
4333
4333
  });
4334
4334
  },
4335
4335
  post: (e, t, n) => {
4336
- ft({
4336
+ mt({
4337
4337
  type: "POST",
4338
4338
  url: e,
4339
4339
  data: t,
@@ -4344,7 +4344,7 @@ var $ = {
4344
4344
  },
4345
4345
  sync: {
4346
4346
  get: (e, t, n) => {
4347
- ft({
4347
+ mt({
4348
4348
  type: "GET",
4349
4349
  url: e,
4350
4350
  data: t,
@@ -4353,7 +4353,7 @@ var $ = {
4353
4353
  });
4354
4354
  },
4355
4355
  post: (e, t, n) => {
4356
- ft({
4356
+ mt({
4357
4357
  type: "POST",
4358
4358
  url: e,
4359
4359
  data: t,
@@ -4364,7 +4364,7 @@ var $ = {
4364
4364
  },
4365
4365
  fetch: {
4366
4366
  get: (e, t, n) => {
4367
- pt({
4367
+ ht({
4368
4368
  type: "GET",
4369
4369
  url: e,
4370
4370
  data: t,
@@ -4372,7 +4372,7 @@ var $ = {
4372
4372
  });
4373
4373
  },
4374
4374
  post: (e, t, n) => {
4375
- pt({
4375
+ ht({
4376
4376
  type: "POST",
4377
4377
  url: e,
4378
4378
  data: t,
@@ -4384,7 +4384,7 @@ var $ = {
4384
4384
  request2: {
4385
4385
  async: {
4386
4386
  get: (e, t) => new Promise((n, r) => {
4387
- ft({
4387
+ mt({
4388
4388
  type: "GET",
4389
4389
  url: e,
4390
4390
  data: t,
@@ -4394,7 +4394,7 @@ var $ = {
4394
4394
  });
4395
4395
  }),
4396
4396
  post: (e, t) => new Promise((n, r) => {
4397
- ft({
4397
+ mt({
4398
4398
  type: "POST",
4399
4399
  url: e,
4400
4400
  data: t,
@@ -4406,7 +4406,7 @@ var $ = {
4406
4406
  },
4407
4407
  sync: {
4408
4408
  get: (e, t) => new Promise((n, r) => {
4409
- ft({
4409
+ mt({
4410
4410
  type: "GET",
4411
4411
  url: e,
4412
4412
  data: t,
@@ -4416,7 +4416,7 @@ var $ = {
4416
4416
  });
4417
4417
  }),
4418
4418
  post: (e, t) => new Promise((n, r) => {
4419
- ft({
4419
+ mt({
4420
4420
  type: "POST",
4421
4421
  url: e,
4422
4422
  data: t,
@@ -4428,7 +4428,7 @@ var $ = {
4428
4428
  },
4429
4429
  fetch: {
4430
4430
  get: (e, t) => new Promise((n, r) => {
4431
- pt({
4431
+ ht({
4432
4432
  type: "GET",
4433
4433
  url: e,
4434
4434
  data: t,
@@ -4437,7 +4437,7 @@ var $ = {
4437
4437
  });
4438
4438
  }),
4439
4439
  post: (e, t) => new Promise((n, r) => {
4440
- pt({
4440
+ ht({
4441
4441
  type: "POST",
4442
4442
  url: e,
4443
4443
  data: t,
@@ -4447,10 +4447,10 @@ var $ = {
4447
4447
  })
4448
4448
  }
4449
4449
  }
4450
- }, ht = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFgAAABYCAIAAAD+96djAAAACXBIWXMAAAsTAAALEwEAmpwYAAAFGmlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDggNzkuMTY0MDM2LCAyMDE5LzA4LzEzLTAxOjA2OjU3ICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5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Z6/Vyn/VzExMTtEMIIU5OTrjP+rmysrLn52faIcbHx7nPUmVlZYVwhdvb23/117qampp0Ok01xPT0NPdBGszOzpKskEgkjEYj9zUamEymWCymfYju7m7uUzRzOp2ZTEbLCn6/n/sIIqOjo6pXODg4KC4u1rthod4v8C4cDiuK4nK5DIZPfzKenZ1tbW1tbGycnp7e39/X19cXFn6qdHx83NPT8/T0lJ+eedLV1bWzs5NKpS4uLhYXF1taWv54wGKxTE5O7u3tXV9fHx4eTk1NSZLEUhUAAAAAAAAAAAAAAAAAAOA/8Bsz/BT0EQGCAgAAAABJRU5ErkJggg==", vt = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAlmVYSWZNTQAqAAAACAAFARIAAwAAAAEAAQAAARoABQAAAAEAAABKARsABQAAAAEAAABSATEAAgAAABIAAABah2kABAAAAAEAAABsAAAAAAAAAJAAAAABAAAAkAAAAAFQYWludC5ORVQgdjMuNS4xMQAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAUKADAAQAAAABAAAAUAAAAAANg8EYAAAACXBIWXMAABYlAAAWJQFJUiTwAAACMGlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iWE1QIENvcmUgNi4wLjAiPgogICA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPgogICAgICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgICAgICAgICB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iCiAgICAgICAgICAgIHhtbG5zOnRpZmY9Imh0dHA6Ly9ucy5hZG9iZS5jb20v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MzJFIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjg4QjI0ODJBMzI1RTExRThBNjcyODkyMERCNjZGMzJFIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6ODhCMjQ4MjczMjVFMTFFOEE2NzI4OTIwREI2NkYzMkUiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6ODhCMjQ4MjgzMjVFMTFFOEE2NzI4OTIwREI2NkYzMkUiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz6RNiMaAAABVUlEQVR42ryXz2rCQBCHt9MItT5ePdiDBXuL6LEvIejV2kJtEeoj6GO13sXOwAaCbHZnZne68EvI3+9LdndCbg7H49I5N8VsMXPM2dm2HuYdM8IsKg+/w9SYAebZUILge8yD364BF5+tE54wH5jbf4BT+yKBGWZnLBGCbzAv4F/3xFCiC05dfgG/w0oiCqcNaB0oLZGEXwuUlGDBQwIlJNjwLoEcCRE8JqCREMNTAhIJFZxaxejTRoLauCXhfNkGLZwrkJIYaOESgZSECs4ZA5wxoYZrBJpr7gP7+5r7SS8Ijfassg2Z8E1u2a4y4XXrIUJT9FziDRD8OzLVsr4dwIQPE6O9S2KbkoAC8JjEOCUBheBqCWDCXwVFRiQBTPhUWOHYEmAAF0mAEZwtURnCY1/RZj0hgTdDeEriRF3waAyPdceIBOj3/AezMoRfS6wxv8T8E2AAh96kgmJqOI8AAAAASUVORK5CYII=";
4451
4451
  //#endregion
4452
4452
  //#region \0@oxc-project+runtime@0.147.0/helpers/esm/decorate.js
4453
- function vt(e, t, n, r) {
4453
+ function Q(e, t, n, r) {
4454
4454
  var i = arguments.length, a = i < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, n) : r, o;
4455
4455
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function") a = Reflect.decorate(e, t, n, r);
4456
4456
  else for (var s = e.length - 1; s >= 0; s--) (o = e[s]) && (a = (i < 3 ? o(a) : i > 3 ? o(t, n, a) : o(t, n)) || a);
@@ -4458,9 +4458,9 @@ function vt(e, t, n, r) {
4458
4458
  }
4459
4459
  //#endregion
4460
4460
  //#region src/VelaLogin.ts
4461
- var yt = class extends we {
4461
+ var $ = class extends Ee {
4462
4462
  constructor(...e) {
4463
- super(...e), this.visible = !1, this.userInfo = null, this.currentView = "login", this.appId = "4", this.phone = "", this.passcode = "", this.confirmPasscode = "", this.STORAGE_KEY = "vela_sdk_user_info", this.quickLoginResolve = null;
4463
+ super(...e), this.visible = !1, this.userInfo = null, this.currentView = "login", this.appId = "4", this._isLoading = !1, this.phone = "", this.passcode = "", this.confirmPasscode = "", this.reset_password = "", this.reset_new_password = "", this.reset_new_confirm_password = "", this.STORAGE_KEY = "vela_sdk_user_info", this.quickLoginResolve = null;
4464
4464
  }
4465
4465
  connectedCallback() {
4466
4466
  super.connectedCallback(), this.initUserInfoFromStorage();
@@ -4498,6 +4498,14 @@ var yt = class extends we {
4498
4498
  return console.warn("VelaSDK: 本地凭证失效/快登失败,清除旧缓存并拉起 UI..."), this.clearUserInfo(), this.suspendAndOpenUI("login");
4499
4499
  }
4500
4500
  }
4501
+ async userCenter() {
4502
+ if (this.quickLoginResolve) return {
4503
+ success: !1,
4504
+ reason: "ALREADY_PENDING"
4505
+ };
4506
+ let e = this.userInfo;
4507
+ return (!e || !e.uid || !e.token) && console.warn("VelaSDK: 本地无缓存凭证,直接拉起 UI 登录..."), this.suspendAndOpenUI("userCenter");
4508
+ }
4501
4509
  saveUserInfo(e) {
4502
4510
  this.userInfo = e;
4503
4511
  try {
@@ -4526,7 +4534,7 @@ var yt = class extends we {
4526
4534
  }), null), this.dispatchEvent(new CustomEvent("vela-login-success", { detail: e }));
4527
4535
  }
4528
4536
  open(e = "login") {
4529
- this.visible = !0, this.currentView = e === "userCenter" && (!this.userInfo || !this.userInfo.uid) ? "login" : e;
4537
+ this.visible = !0, this.currentView = e;
4530
4538
  }
4531
4539
  close() {
4532
4540
  this.visible = !1, this.quickLoginResolve &&= (this.quickLoginResolve({
@@ -4540,6 +4548,18 @@ var yt = class extends we {
4540
4548
  switchToLogin() {
4541
4549
  this.currentView = "login", this.clearInputs();
4542
4550
  }
4551
+ switchToUserCenter() {
4552
+ this.currentView = "userCenter", this.clearInputs();
4553
+ }
4554
+ switchToUserCenterResetPassword() {
4555
+ this.currentView = "userCenter-reset-password", this.clearInputs();
4556
+ }
4557
+ switchToBindingResetPassword() {
4558
+ this.currentView = "binding-reset-password", this.clearInputs();
4559
+ }
4560
+ switchToUserBinding() {
4561
+ this.currentView = "userCenter-binding", this.clearInputs();
4562
+ }
4543
4563
  clearInputs() {
4544
4564
  this.phone = "", this.passcode = "", this.confirmPasscode = "";
4545
4565
  }
@@ -4550,7 +4570,23 @@ var yt = class extends we {
4550
4570
  }
4551
4571
  console.log("执行注册...", this.phone, this.passcode);
4552
4572
  try {
4553
- let e = await $.request2.fetch.post("/api/web/register", {
4573
+ let e = await Z.request2.fetch.post("/api/web/register", {
4574
+ phone: this.phone,
4575
+ passcode: this.passcode
4576
+ });
4577
+ alert("สมัครสมาชิกสำเร็จ! (注册成功)"), this.handleManualLoginSuccess(e.data);
4578
+ } catch (e) {
4579
+ console.error(e);
4580
+ }
4581
+ }
4582
+ async handleResetPasswordSubmit(e) {
4583
+ if (e.preventDefault(), this.passcode !== this.confirmPasscode) {
4584
+ alert("รหัสผ่านไม่ตรงกัน (两次输入的密码不一致)");
4585
+ return;
4586
+ }
4587
+ console.log("执行注册...", this.phone, this.passcode);
4588
+ try {
4589
+ let e = await Z.request2.fetch.post("/api/web/register", {
4554
4590
  phone: this.phone,
4555
4591
  passcode: this.passcode
4556
4592
  });
@@ -4578,6 +4614,39 @@ var yt = class extends we {
4578
4614
  -webkit-text-size-adjust: none;
4579
4615
  }
4580
4616
 
4617
+ /* --- 全局遮罩加載指示器樣式 --- */
4618
+ .loading-overlay {
4619
+ position: fixed;
4620
+ top: 0;
4621
+ left: 0;
4622
+ width: 100%;
4623
+ height: 100%;
4624
+ background: rgba(0, 0, 0, 0.4); /* 半透明背景 */
4625
+ display: flex;
4626
+ flex-direction: column;
4627
+ justify-content: center;
4628
+ align-items: center;
4629
+ z-index: 9999; /* 確保在最上層 */
4630
+ color: white;
4631
+ font-size: 14px;
4632
+ }
4633
+
4634
+ /* 旋轉動畫 */
4635
+ .spinner {
4636
+ width: 40px;
4637
+ height: 40px;
4638
+ border: 4px solid rgba(255, 255, 255, 0.3);
4639
+ border-top: 4px solid #ffffff;
4640
+ border-radius: 50%;
4641
+ animation: spin 1s linear infinite;
4642
+ margin-bottom: 10px;
4643
+ }
4644
+
4645
+ @keyframes spin {
4646
+ 0% { transform: rotate(0deg); }
4647
+ 100% { transform: rotate(360deg); }
4648
+ }
4649
+
4581
4650
  .login img {
4582
4651
  width: 45px;
4583
4652
  height: 45px;
@@ -4808,6 +4877,98 @@ var yt = class extends we {
4808
4877
  padding: 12px;
4809
4878
  }
4810
4879
 
4880
+ .center-btn-list {
4881
+ display: flex;
4882
+ flex-direction: column;
4883
+ gap: 12px; /* 按钮之间的间距,可根据需要调整 */
4884
+ width: 100%; /* 确保容器占满 */
4885
+ box-sizing: border-box;
4886
+ margin-top: 10px;
4887
+ margin-bottom: 20px;
4888
+ }
4889
+
4890
+ .center-title {
4891
+ font-size: 18px;
4892
+ color: #020202;
4893
+ margin: 0px;
4894
+ }
4895
+
4896
+ .center-id {
4897
+ font-size: 12px;
4898
+ color: #868686;
4899
+ margin: 0px;
4900
+ }
4901
+
4902
+ .binding-content {
4903
+ width: 100%;
4904
+ margin-top: 10px;
4905
+ margin-bottom: 30px;
4906
+ background-color: white;
4907
+ font-size: 12px;
4908
+ }
4909
+
4910
+ .binding-title {
4911
+ font-size: 18px;
4912
+ color: #020202;
4913
+ margin: 0px;
4914
+ }
4915
+
4916
+ .binding-id {
4917
+ font-size: 12px;
4918
+ color: #868686;
4919
+ margin: 0px;
4920
+ }
4921
+
4922
+ .binding-item {
4923
+ display: flex;
4924
+ justify-content: space-between;
4925
+ align-items: center;
4926
+ width: 100%; /* 占满 form 宽度 */
4927
+ }
4928
+
4929
+ /* 解綁按鈕樣式(可根據你的設計調整顏色) */
4930
+ .unbind-btn {
4931
+ background-color: transparent;
4932
+ color: #b09849; /* 警告紅,也可以用 #1890ff 藍色 */
4933
+ border: 1px solid #b09849;
4934
+ border-radius: 4px;
4935
+ padding: 4px 12px;
4936
+ font-size: 14px;
4937
+ cursor: pointer;
4938
+ transition: all 0.3s;
4939
+ flex-shrink: 0; /* 防止按鈕被擠壓變形 */
4940
+ }
4941
+
4942
+ .binding-field-group {
4943
+ display: flex;
4944
+ flex-direction: column; /* 上下排列 */
4945
+ align-items: flex-start; /* 左对齐 */
4946
+ flex: 1; /* 佔滿剩餘空間 */
4947
+ min-width: 0; /* 防止內容過長撐破佈局 */
4948
+ }
4949
+
4950
+ .center-btn-list .btn {
4951
+ width: 100%; /* 按钮宽度占满 */
4952
+ padding: 12px 24px; /* 按钮内边距,提供舒适 affection */
4953
+ background: transparent; /* 空心效果 */
4954
+ color: #b09849; /* 字体颜色改为黄色(可根据设计调整) */
4955
+ border: 2px solid #b09849; /* 黄色边框 */
4956
+ border-radius: 8px; /* 圆角大小 */
4957
+ font-size: 16px; /* 字体大小 */
4958
+ font-weight: 500;
4959
+ cursor: pointer;
4960
+ transition: all 0.2s ease; /* 增加过渡动画 */
4961
+ box-sizing: border-box;
4962
+ }
4963
+
4964
+ /* 鼠标悬停和点击时的反馈效果 */
4965
+ .center-btn-list .btn:hover {
4966
+ background: rgba(255, 193, 7, 0.1); /* 悬停时有淡淡的黄色背景 */
4967
+ }
4968
+
4969
+ .center-btn-list .btn:active {
4970
+ transform: scale(0.98); /* 点击时微弱缩放反馈 */
4971
+ }
4811
4972
  `;
4812
4973
  }
4813
4974
  firstUpdated() {
@@ -4818,8 +4979,8 @@ var yt = class extends we {
4818
4979
  alert("账号和密码不能为空!");
4819
4980
  return;
4820
4981
  }
4821
- let t = ut.default.MD5(this.phone).toString(), n = ut.default.MD5(this.passcode).toString();
4822
- $.request.async.get($.urls.url_sdk_user_account, {
4982
+ let t = ft.default.MD5(this.phone).toString(), n = ft.default.MD5(this.passcode).toString();
4983
+ Z.request.async.get(Z.urls.url_sdk_user_account, {
4823
4984
  app_id: this.appId,
4824
4985
  name: t,
4825
4986
  password: n
@@ -4842,7 +5003,7 @@ var yt = class extends we {
4842
5003
  usePopup: !0
4843
5004
  }), document.addEventListener("AppleIDSignInOnSuccess", (e) => {
4844
5005
  let t = e.detail.authorization.id_token;
4845
- $.request.async.get($.urls.url_sdk_user_login, {
5006
+ Z.request.async.get(Z.urls.url_sdk_user_login, {
4846
5007
  app_id: this.appId,
4847
5008
  type: "3",
4848
5009
  open_id: t
@@ -4859,7 +5020,7 @@ var yt = class extends we {
4859
5020
  let e = document.createElement("script");
4860
5021
  e.src = "https://accounts.google.com/gsi/client", e.async = !0, e.onload = () => {
4861
5022
  window.handleGoogleSignIn = (e) => {
4862
- console.log("Google JWT: ", e.credential), $.request.async.get($.urls.url_sdk_user_login, {
5023
+ console.log("Google JWT: ", e.credential), Z.request.async.get(Z.urls.url_sdk_user_login, {
4863
5024
  app_id: this.appId,
4864
5025
  type: "2",
4865
5026
  open_id: e.credential
@@ -4884,12 +5045,12 @@ var yt = class extends we {
4884
5045
  return;
4885
5046
  }
4886
5047
  window.FB.getLoginStatus((e) => {
4887
- e.authResponse ? $.request.async.get($.urls.url_sdk_user_login, {
5048
+ e.authResponse ? Z.request.async.get(Z.urls.url_sdk_user_login, {
4888
5049
  app_id: this.appId,
4889
5050
  type: "1",
4890
5051
  open_id: e.authResponse.userID
4891
5052
  }, (e) => this.parseLoginResult(e)) : window.FB.login((e) => {
4892
- e.authResponse ? $.request.async.get($.urls.url_sdk_user_login, {
5053
+ e.authResponse ? Z.request.async.get(Z.urls.url_sdk_user_login, {
4893
5054
  app_id: this.appId,
4894
5055
  type: "1",
4895
5056
  open_id: e.authResponse.userID
@@ -4897,26 +5058,55 @@ var yt = class extends we {
4897
5058
  }, { scope: "public_profile" });
4898
5059
  });
4899
5060
  }
5061
+ handleDeleteAccount() {}
5062
+ renderView() {
5063
+ switch (this.currentView) {
5064
+ case "login": return this.renderLoginForm();
5065
+ case "register": return this.renderRegisterForm();
5066
+ case "userCenter": return this.renderCenterForm();
5067
+ case "userCenter-reset-password":
5068
+ case "binding-reset-password": return this.renderResetPasswordForm();
5069
+ case "userCenter-binding": return this.renderBindingForm();
5070
+ }
5071
+ }
5072
+ closeBtnTap() {
5073
+ return this.currentView === "register" ? this.switchToLogin() : this.currentView.startsWith("userCenter-") ? this.switchToUserCenter() : this.currentView.startsWith("binding-") ? this.switchToUserBinding() : this.close();
5074
+ }
5075
+ async handleUnbind(e) {
5076
+ if (e === "Account") this.switchToBindingResetPassword();
5077
+ else if (confirm(`您確定要解綁 ${e} 帳戶嗎?`)) try {
5078
+ this._isLoading = !0, console.log(`正在請求解綁: ${e}`), await new Promise((e) => setTimeout(e, 2e3)), alert(`${e} 帳戶解綁成功!`);
5079
+ } catch (e) {
5080
+ console.error(e), alert("操作失敗,請稍後再試");
5081
+ } finally {
5082
+ this._isLoading = !1;
5083
+ }
5084
+ }
4900
5085
  render() {
4901
- return this.visible ? K`
5086
+ return this.visible ? W`
4902
5087
  <div class="dialog-box active"> <!-- active 控制显示 -->
4903
5088
  <div class="dialog-wrap">
4904
5089
  <div class="dialog-conmain">
4905
5090
  <!-- 关闭按钮 -->
4906
- <a href="javascript:void(0)" @click="${this.currentView === "register" ? this.switchToLogin : this.close}" class="dialog-close">
4907
- <em class="closeImage" style="background: url(${_t}) no-repeat 50%; background-size: 100%; position: absolute; width: 100%; height: 100%;"></em>
5091
+ <a href="javascript:void(0)" @click="${this.closeBtnTap}" class="dialog-close">
5092
+ <em class="closeImage" style="background: url(${yt}) no-repeat 50%; background-size: 100%; position: absolute; width: 100%; height: 100%;"></em>
4908
5093
  </a>
4909
5094
  <!-- 登录内容(从之前迁移的 HTML 复制过来) -->
4910
5095
  <div class="content">
4911
- ${this.currentView === "register" ? this.renderRegisterForm() : this.renderLoginForm()}
5096
+ ${this.renderView()}
4912
5097
  </div>
4913
5098
  </div>
4914
5099
  </div>
4915
5100
  </div>
4916
- ` : K``;
5101
+ ${this._isLoading ? W`
5102
+ <div class="loading-overlay">
5103
+ <div class="spinner"></div>
5104
+ </div>
5105
+ ` : ""}
5106
+ ` : W``;
4917
5107
  }
4918
5108
  renderLoginForm() {
4919
- return K`
5109
+ return W`
4920
5110
  <form @submit="${this.handleSubmit}">
4921
5111
  <div class="field-group">
4922
5112
  <label class="input-label" for="phone">Account:</label>
@@ -4944,7 +5134,7 @@ var yt = class extends we {
4944
5134
  <div class="login-other-method">
4945
5135
  <!-- Apple -->
4946
5136
  <div class="login" @click="${this.handleAppleClick}">
4947
- <img src="${ht}" alt="" style="width: 40px; height: 40px; border-radius: 5px;">
5137
+ <img src="${_t}" alt="" style="width: 40px; height: 40px; border-radius: 5px;">
4948
5138
  <p>Apple</p>
4949
5139
  </div>
4950
5140
  <!-- Google -->
@@ -4968,7 +5158,7 @@ var yt = class extends we {
4968
5158
  </div>
4969
5159
  <!-- Facebook -->
4970
5160
  <div class="login login-facebook" @click="${this.handleFacebookClick}">
4971
- <img src="${gt}" alt="" style="width: 40px; height: 40px; border-radius: 5px;">
5161
+ <img src="${vt}" alt="" style="width: 40px; height: 40px; border-radius: 5px;">
4972
5162
  <p>Facebook</p>
4973
5163
  </div>
4974
5164
  </div>
@@ -4982,7 +5172,7 @@ var yt = class extends we {
4982
5172
  `;
4983
5173
  }
4984
5174
  renderRegisterForm() {
4985
- return K`
5175
+ return W`
4986
5176
  <form @submit="${this.handleRegisterSubmit}">
4987
5177
  <div class="field-group">
4988
5178
  <label class="input-label" for="reg-phone">Account:</label>
@@ -5013,11 +5203,115 @@ var yt = class extends we {
5013
5203
  </form>
5014
5204
  `;
5015
5205
  }
5206
+ renderCenterForm() {
5207
+ return W`
5208
+ <div class="center-btn-list">
5209
+ <div>
5210
+ <div class="center-title">账号中心</div>
5211
+ <div class="center-id">aa_123</div>
5212
+ </div>
5213
+ <!-- 重置密码 -->
5214
+ <button class="btn btn-list-item" type="button" @click="${this.switchToUserCenterResetPassword}">
5215
+ 重置密码
5216
+ </button>
5217
+
5218
+ <!-- 绑定账号 -->
5219
+ <button class="btn btn-list-item" type="button" @click="${this.switchToUserBinding}">
5220
+ 绑定账号
5221
+ </button>
5222
+
5223
+ <!-- 切换账号 -->
5224
+ <button class="btn btn-list-item" type="button" @click="${this.switchToLogin}">
5225
+ 切换账号
5226
+ </button>
5227
+
5228
+ <!-- 删除账号 -->
5229
+ <button class="btn btn-list-item btn-danger" type="button" @click="${this.handleDeleteAccount}">
5230
+ 删除账号
5231
+ </button>
5232
+ </div>
5233
+ `;
5234
+ }
5235
+ renderResetPasswordForm() {
5236
+ return W`
5237
+ <form @submit="${this.handleResetPasswordSubmit}">
5238
+ <div class="field-group">
5239
+ <label class="input-label" for="reg-passcode">Old Password:</label>
5240
+ <input class="pwd input-underline" id="reg-passcode" type="password" placeholder="กรุณากรอกรหัสผ่าน"
5241
+ .value="${this.reset_password}" @input="${(e) => this.passcode = e.target.value}">
5242
+ </div>
5243
+ <div class="input-line"></div>
5244
+
5245
+ <div class="field-group">
5246
+ <label class="input-label" for="reg-passcode">New Password:</label>
5247
+ <input class="pwd input-underline" id="reg-passcode" type="password" placeholder="กรุณากรอกรหัสผ่าน"
5248
+ .value="${this.reset_new_password}" @input="${(e) => this.passcode = e.target.value}">
5249
+ </div>
5250
+ <div class="input-line"></div>
5251
+
5252
+ <!-- 注册特有的“确认密码”输入框 -->
5253
+ <div class="field-group">
5254
+ <label class="input-label" for="confirm-passcode">Confirm New Password:</label>
5255
+ <input class="pwd input-underline" id="confirm-passcode" type="password" placeholder="กรุณากรอกรหัสผ่านอีกครั้ง"
5256
+ .value="${this.reset_new_confirm_password}" @input="${(e) => this.confirmPasscode = e.target.value}">
5257
+ </div>
5258
+ <div class="input-line"></div>
5259
+
5260
+ <!-- 注册模式下的双按钮(主次顺序颠倒) -->
5261
+ <div class="btn-group">
5262
+ <button class="btn btn-reg-sub" type="submit">ยืนยันการสมัคร</button>
5263
+ </div>
5264
+ </form>
5265
+ `;
5266
+ }
5267
+ renderBindingForm() {
5268
+ return W`
5269
+ <div class="binding-content">
5270
+ <div class="center-title">账户绑定</div>
5271
+ <div class="center-id">aa_123</div>
5272
+ <div class="binding-item">
5273
+ <div class="binding-field-group">
5274
+ <label class="input-label">Account:</label>
5275
+ <div>test222</div>
5276
+ </div>
5277
+ <button class="unbind-btn" @click="${() => this.handleUnbind("Account")}">修改密码</button>
5278
+ </div>
5279
+ <div class="input-line"></div>
5280
+
5281
+ <div class="binding-item">
5282
+ <div class="binding-field-group">
5283
+ <label class="input-label" for="reg-passcode">Google:</label>
5284
+ <div>222@gmail.com</div>
5285
+ </div>
5286
+ <button class="unbind-btn" @click="${() => this.handleUnbind("Google")}">解绑</button>
5287
+ </div>
5288
+ <div class="input-line"></div>
5289
+
5290
+ <div class="binding-item">
5291
+ <div class="binding-field-group">
5292
+ <label class="input-label" for="confirm-passcode">Facebook:</label>
5293
+ <div>73429734623423409 | csdfe55@qq.com</div>
5294
+ </div>
5295
+ <button class="unbind-btn" @click="${() => this.handleUnbind("Facebook")}">解绑</button>
5296
+ </div>
5297
+ <div class="input-line"></div>
5298
+
5299
+ <div class="binding-item">
5300
+ <div class="binding-field-group">
5301
+ <label class="input-label" for="confirm-passcode">Apple:</label>
5302
+ <div>private7yeufijfjw9jffff@apple.com</div>
5303
+ </div>
5304
+ <button class="unbind-btn" @click="${() => this.handleUnbind("Apple")}">解绑</button>
5305
+ </div>
5306
+ <div class="input-line"></div>
5307
+ </div>
5308
+ `;
5309
+ }
5016
5310
  };
5017
- vt([Oe({
5311
+ Q([Ae({
5018
5312
  type: Boolean,
5019
5313
  reflect: !0
5020
- })], yt.prototype, "visible", void 0), vt([ke()], yt.prototype, "userInfo", void 0), vt([ke()], yt.prototype, "currentView", void 0), vt([Oe({ type: String })], yt.prototype, "appId", void 0), vt([ke()], yt.prototype, "phone", void 0), vt([ke()], yt.prototype, "passcode", void 0), vt([ke()], yt.prototype, "confirmPasscode", void 0), yt = vt([X("vela-login")], yt);
5314
+ })], $.prototype, "visible", void 0), Q([je()], $.prototype, "userInfo", void 0), Q([je()], $.prototype, "currentView", void 0), Q([Ae({ type: String })], $.prototype, "appId", void 0), Q([je()], $.prototype, "_isLoading", void 0), Q([je()], $.prototype, "phone", void 0), Q([je()], $.prototype, "passcode", void 0), Q([je()], $.prototype, "confirmPasscode", void 0), Q([je()], $.prototype, "reset_password", void 0), Q([je()], $.prototype, "reset_new_password", void 0), Q([je()], $.prototype, "reset_new_confirm_password", void 0), $ = Q([J("vela-login")], $);
5021
5315
  var bt = class {
5022
5316
  static {
5023
5317
  this.instance = null;
@@ -5034,6 +5328,18 @@ var bt = class {
5034
5328
  if (console.log("==== [SDK 日志 6] 准备挂起 Promise 传递控制权... ===="), console.log("==== [SDK 日志 6-check] 检查组件上是否存在 updateComplete:", "updateComplete" in this.instance), this.instance) return console.log("==== [SDK 日志 8] 开始调用内部 quickLogin ===="), await this.instance.quickLogin();
5035
5329
  console.error("==== [SDK 错误] this.instance 意外不存在 ====");
5036
5330
  }
5331
+ static async userCenter() {
5332
+ if (console.log("==== [SDK 日志 1] 进入了 VelaLogin.userCenter() 方法 ===="), this.instance) console.log("==== [SDK 日志 2-alt] 发现已有实例,直接复用:", this.instance);
5333
+ else {
5334
+ console.log("==== [SDK 日志 2] 发现没有实例,开始创建并挂载标签... ====");
5335
+ let e = "vela-login";
5336
+ console.log(`==== [SDK 日志 3] 准备 createElement: <${e}> ====`);
5337
+ let t = document.createElement(e);
5338
+ console.log("==== [SDK 日志 4] 准备 appendChild 到 body ===="), document.body.appendChild(t), this.instance = t, console.log("==== [SDK 日志 5] 标签挂载成功,当前 this.instance:", this.instance);
5339
+ }
5340
+ if (console.log("==== [SDK 日志 6] 准备挂起 Promise 传递控制权... ===="), console.log("==== [SDK 日志 6-check] 检查组件上是否存在 updateComplete:", "updateComplete" in this.instance), this.instance) return console.log("==== [SDK 日志 8] 开始调用内部 userCenter ===="), await this.instance.userCenter();
5341
+ console.error("==== [SDK 错误] this.instance 意外不存在 ====");
5342
+ }
5037
5343
  static close() {
5038
5344
  this.instance &&= (document.body.removeChild(this.instance), null);
5039
5345
  }