@inpageedit/core 0.8.1 → 0.9.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.
Files changed (50) hide show
  1. package/LICENSE +20 -20
  2. package/README.md +55 -55
  3. package/dist/ActionButton-BgbTKTg7.js.map +1 -1
  4. package/dist/CheckBox-D3rHnX7I.js.map +1 -1
  5. package/dist/IconQuickEdit-CAL1HXIb.js.map +1 -1
  6. package/dist/InputBox-BV4m05Xs.js.map +1 -1
  7. package/dist/Preferences-Bg3J5Ur9.js.map +1 -1
  8. package/dist/RadioBox-nJqWsxW2.js.map +1 -1
  9. package/dist/components/index.js.map +1 -1
  10. package/dist/{index-COlXHFRg.js → index-9Z4ds-WM.js} +281 -268
  11. package/dist/index-9Z4ds-WM.js.map +1 -0
  12. package/dist/{index-DwyuBkCK.js → index-BB9MXkUv.js} +3 -3
  13. package/dist/index-BB9MXkUv.js.map +1 -0
  14. package/dist/{index-DBV8FBjA.js → index-BDVcDlsf.js} +2 -2
  15. package/dist/index-BDVcDlsf.js.map +1 -0
  16. package/dist/index-Bh70Udzi.js.map +1 -1
  17. package/dist/{index-C8dOYIIz.js → index-CADkQBg0.js} +2 -2
  18. package/dist/{index-C8dOYIIz.js.map → index-CADkQBg0.js.map} +1 -1
  19. package/dist/{index-CeXR4lOu.js → index-CBQsBfc2.js} +32 -34
  20. package/dist/{index-CeXR4lOu.js.map → index-CBQsBfc2.js.map} +1 -1
  21. package/dist/{index-mntCdHRr.js → index-CNsB3Vcb.js} +3 -3
  22. package/dist/{index-mntCdHRr.js.map → index-CNsB3Vcb.js.map} +1 -1
  23. package/dist/{index-9M1QcjCN.js → index-CYdxWw9g.js} +124 -123
  24. package/dist/index-CYdxWw9g.js.map +1 -0
  25. package/dist/index-CvhkVj_L.js.map +1 -1
  26. package/dist/{index-Ba7Wkale.js → index-D7SQwFxl.js} +2 -2
  27. package/dist/{index-Ba7Wkale.js.map → index-D7SQwFxl.js.map} +1 -1
  28. package/dist/{index-kRdAN8h3.js → index-DMNUP3fg.js} +2 -2
  29. package/dist/{index-kRdAN8h3.js.map → index-DMNUP3fg.js.map} +1 -1
  30. package/dist/{index-Tn22YSmW.js → index-G3k3kjCU.js} +2 -2
  31. package/dist/index-G3k3kjCU.js.map +1 -0
  32. package/dist/{index-OBerV4GU.js → index-dp6_MU68.js} +2 -2
  33. package/dist/index-dp6_MU68.js.map +1 -0
  34. package/dist/index-lZkYoUca.js.map +1 -1
  35. package/dist/index.js +1 -1
  36. package/dist/makeCallable-LDU0xZMJ.js.map +1 -1
  37. package/dist/noop-ClDc6zv4.js.map +1 -1
  38. package/dist/services/CurrentPageService.d.ts +1 -0
  39. package/dist/services/WikiMetadataService.d.ts +1 -1
  40. package/dist/style.css +1 -1
  41. package/lib/index.umd.js +26 -24
  42. package/lib/index.umd.js.map +1 -1
  43. package/lib/style.css +1 -1
  44. package/package.json +3 -3
  45. package/dist/index-9M1QcjCN.js.map +0 -1
  46. package/dist/index-COlXHFRg.js.map +0 -1
  47. package/dist/index-DBV8FBjA.js.map +0 -1
  48. package/dist/index-DwyuBkCK.js.map +0 -1
  49. package/dist/index-OBerV4GU.js.map +0 -1
  50. package/dist/index-Tn22YSmW.js.map +0 -1
@@ -1,11 +1,11 @@
1
1
  import { j as ne, P as di } from "./index-CvhkVj_L.js";
2
- const Nt = () => {
2
+ const Bt = () => {
3
3
  let r, e;
4
4
  return { promise: new Promise((n, i) => {
5
5
  r = n, e = i;
6
6
  }), resolve: r, reject: e };
7
7
  };
8
- Promise.withResolvers || (Promise.withResolvers = Nt);
8
+ Promise.withResolvers || (Promise.withResolvers = Bt);
9
9
  var pi = Object.defineProperty, B = (r, e) => pi(r, "name", { value: e, configurable: !0 });
10
10
  function mi() {
11
11
  }
@@ -83,17 +83,17 @@ function we(r, e) {
83
83
  return arguments.length === 1 ? (t) => we(r, t) : r in globalThis && e instanceof globalThis[r] || Object.prototype.toString.call(e).slice(8, -1) === r;
84
84
  }
85
85
  B(we, "is");
86
- function He(r) {
86
+ function We(r) {
87
87
  return we("ArrayBuffer", r) || we("SharedArrayBuffer", r);
88
88
  }
89
- B(He, "isArrayBufferLike");
89
+ B(We, "isArrayBufferLike");
90
90
  function Nr(r) {
91
- return He(r) || ArrayBuffer.isView(r);
91
+ return We(r) || ArrayBuffer.isView(r);
92
92
  }
93
93
  B(Nr, "isArrayBufferSource");
94
94
  var ue;
95
95
  ((r) => {
96
- r.is = He, r.isSource = Nr;
96
+ r.is = We, r.isSource = Nr;
97
97
  function e(o) {
98
98
  return ArrayBuffer.isView(o) ? o.buffer.slice(o.byteOffset, o.byteOffset + o.byteLength) : o;
99
99
  }
@@ -133,7 +133,7 @@ function it(r, e = /* @__PURE__ */ new Map()) {
133
133
  if (!r || typeof r != "object") return r;
134
134
  if (we("Date", r)) return new Date(r.valueOf());
135
135
  if (we("RegExp", r)) return new RegExp(r.source, r.flags);
136
- if (He(r)) return r.slice(0);
136
+ if (We(r)) return r.slice(0);
137
137
  if (ArrayBuffer.isView(r)) return r.buffer.slice(r.byteOffset, r.byteOffset + r.byteLength);
138
138
  const t = e.get(r);
139
139
  if (t) return t;
@@ -158,7 +158,7 @@ function Se(r, e, t) {
158
158
  function n(i, s) {
159
159
  return i(r) ? i(e) ? s(r, e) : !1 : i(e) ? !1 : void 0;
160
160
  }
161
- return B(n, "check"), n(Array.isArray, (i, s) => i.length === s.length && i.every((o, a) => Se(o, s[a]))) ?? n(we("Date"), (i, s) => i.valueOf() === s.valueOf()) ?? n(we("RegExp"), (i, s) => i.source === s.source && i.flags === s.flags) ?? n(He, (i, s) => {
161
+ return B(n, "check"), n(Array.isArray, (i, s) => i.length === s.length && i.every((o, a) => Se(o, s[a]))) ?? n(we("Date"), (i, s) => i.valueOf() === s.valueOf()) ?? n(we("RegExp"), (i, s) => i.source === s.source && i.flags === s.flags) ?? n(We, (i, s) => {
162
162
  if (i.byteLength !== s.byteLength) return !1;
163
163
  const o = new Uint8Array(i), a = new Uint8Array(s);
164
164
  for (let d = 0; d < o.length; d++)
@@ -179,7 +179,7 @@ function Ri(r) {
179
179
  return r.replace(/[_-][a-z]/g, (e) => e.slice(1).toUpperCase());
180
180
  }
181
181
  B(Ri, "camelCase");
182
- function Bt(r, e, t) {
182
+ function jt(r, e, t) {
183
183
  const n = [];
184
184
  let i = 0;
185
185
  for (let s = 0; s < r.length; s++) {
@@ -195,13 +195,13 @@ function Bt(r, e, t) {
195
195
  }
196
196
  return String.fromCharCode(...n);
197
197
  }
198
- B(Bt, "tokenize");
198
+ B(jt, "tokenize");
199
199
  function Ii(r) {
200
- return Bt(r, [45, 95], 45);
200
+ return jt(r, [45, 95], 45);
201
201
  }
202
202
  B(Ii, "paramCase");
203
203
  function Ai(r) {
204
- return Bt(r, [45, 95], 95);
204
+ return jt(r, [45, 95], 95);
205
205
  }
206
206
  B(Ai, "snakeCase");
207
207
  function Oi(r) {
@@ -233,8 +233,8 @@ var wr;
233
233
  }
234
234
  r.getDateNumber = i, B(i, "getDateNumber");
235
235
  function s(R, P) {
236
- const W = new Date(R * r.day);
237
- return P === void 0 && (P = e), new Date(+W + P * r.minute);
236
+ const H = new Date(R * r.day);
237
+ return P === void 0 && (P = e), new Date(+H + P * r.minute);
238
238
  }
239
239
  r.fromDateNumber = s, B(s, "fromDateNumber");
240
240
  const o = /\d+(?:\.\d+)?/.source, a = new RegExp(`^${[
@@ -292,37 +292,37 @@ var Pi = Object.defineProperty, D = (r, e) => Pi(r, "name", { value: e, configur
292
292
  }, Ti = function* () {
293
293
  }.constructor, _r = async function* () {
294
294
  }.constructor;
295
- function jt(r) {
295
+ function Ut(r) {
296
296
  return !(!r.prototype || r instanceof Ti || _r !== Function && r instanceof _r);
297
297
  }
298
- D(jt, "isConstructor");
299
- function We(r, e) {
298
+ D(Ut, "isConstructor");
299
+ function He(r, e) {
300
300
  const t = r.Config || r.schema;
301
301
  return t && r.schema !== !1 && (e = t(e)), e ?? {};
302
302
  }
303
- D(We, "resolveConfig");
303
+ D(He, "resolveConfig");
304
304
  function jr(r) {
305
305
  return [Map, Set, Date, Promise].some((e) => r instanceof e);
306
306
  }
307
307
  D(jr, "isUnproxyable");
308
- function Ut(r, e) {
308
+ function Mt(r, e) {
309
309
  if (r === Object.prototype) return e;
310
- const t = Object.create(Ut(Object.getPrototypeOf(r), e));
310
+ const t = Object.create(Mt(Object.getPrototypeOf(r), e));
311
311
  for (const n of Reflect.ownKeys(r))
312
312
  Object.defineProperty(t, n, Object.getOwnPropertyDescriptor(r, n));
313
313
  return t;
314
314
  }
315
- D(Ut, "joinPrototype");
316
- function Mt(r) {
315
+ D(Mt, "joinPrototype");
316
+ function Ft(r) {
317
317
  return r && (typeof r == "object" || typeof r == "function");
318
318
  }
319
- D(Mt, "isObject");
319
+ D(Ft, "isObject");
320
320
  function fe(r, e, t) {
321
- if (!Mt(e)) return e;
321
+ if (!Ft(e)) return e;
322
322
  if (Object.hasOwn(e, C.shadow))
323
323
  return Object.getPrototypeOf(e);
324
324
  const n = e[C.tracker];
325
- return n ? ct(r, e, n, t) : e;
325
+ return n ? lt(r, e, n, t) : e;
326
326
  }
327
327
  D(fe, "getTraceable");
328
328
  function Ue(r, e) {
@@ -339,12 +339,12 @@ function st(r, e, t) {
339
339
  }));
340
340
  }
341
341
  D(st, "withProp");
342
- function kt(r, e, t, n) {
342
+ function Rt(r, e, t, n) {
343
343
  if (!t) return n;
344
344
  const i = Reflect.getOwnPropertyDescriptor(e, t)?.value;
345
345
  return i ? st(n, t, r.extend({ [C.shadow]: i })) : n;
346
346
  }
347
- D(kt, "createShadow");
347
+ D(Rt, "createShadow");
348
348
  function Ur(r, e, t, n) {
349
349
  return new Proxy(e, {
350
350
  apply: /* @__PURE__ */ D((i, s, o) => (s === t && (s = n), o = o.map((a) => typeof a != "function" || a[C.original] ? a : new Proxy(a, {
@@ -361,7 +361,7 @@ function Ur(r, e, t, n) {
361
361
  });
362
362
  }
363
363
  D(Ur, "createShadowMethod");
364
- function ct(r, e, t, n) {
364
+ function lt(r, e, t, n) {
365
365
  r[C.shadow] && (r = Object.getPrototypeOf(r));
366
366
  const i = new Proxy(e, {
367
367
  get: /* @__PURE__ */ D((s, o, a) => {
@@ -371,8 +371,8 @@ function ct(r, e, t, n) {
371
371
  return Reflect.get(s, o, a);
372
372
  if (t.associate && r[C.internal][`${t.associate}.${o}`])
373
373
  return Reflect.get(r, `${t.associate}.${o}`, st(r, C.receiver, a));
374
- const d = kt(r, s, t.property, a), v = Reflect.get(s, o, d), _ = v?.[C.tracker];
375
- return _ ? ct(r, v, _) : !n && typeof v == "function" ? Ur(r, v, a, d) : v;
374
+ const d = Rt(r, s, t.property, a), v = Reflect.get(s, o, d), _ = v?.[C.tracker];
375
+ return _ ? lt(r, v, _) : !n && typeof v == "function" ? Ur(r, v, a, d) : v;
376
376
  }, "get"),
377
377
  set: /* @__PURE__ */ D((s, o, a, d) => {
378
378
  if (o === C.original || o === t.property) return !1;
@@ -380,26 +380,26 @@ function ct(r, e, t, n) {
380
380
  return Reflect.set(s, o, a, d);
381
381
  if (t.associate && r[C.internal][`${t.associate}.${o}`])
382
382
  return Reflect.set(r, `${t.associate}.${o}`, a, st(r, C.receiver, d));
383
- const v = kt(r, s, t.property, d);
383
+ const v = Rt(r, s, t.property, d);
384
384
  return Reflect.set(s, o, a, v);
385
385
  }, "set"),
386
- apply: /* @__PURE__ */ D((s, o, a) => Ft(i, s, o, a), "apply")
386
+ apply: /* @__PURE__ */ D((s, o, a) => zt(i, s, o, a), "apply")
387
387
  });
388
388
  return i;
389
389
  }
390
- D(ct, "createTraceable");
391
- function Ft(r, e, t, n) {
390
+ D(lt, "createTraceable");
391
+ function zt(r, e, t, n) {
392
392
  return e[C.invoke] ? e[C.invoke].apply(r, n) : Reflect.apply(e, t, n);
393
393
  }
394
- D(Ft, "applyTraceable");
395
- function Rt(r, e, t) {
394
+ D(zt, "applyTraceable");
395
+ function It(r, e, t) {
396
396
  const n = /* @__PURE__ */ D(function(...i) {
397
- const s = ct(n.ctx, n, t);
398
- return Ft(s, n, this, i);
397
+ const s = lt(n.ctx, n, t);
398
+ return zt(s, n, this, i);
399
399
  }, "self");
400
400
  return J(n, "name", r), Object.setPrototypeOf(n, e);
401
401
  }
402
- D(Rt, "createCallable");
402
+ D(It, "createCallable");
403
403
  var Ci = class Ie {
404
404
  constructor(e) {
405
405
  this.ctx = e, J(this, C.tracker, {
@@ -468,7 +468,7 @@ var Ci = class Ie {
468
468
  const i = this.ctx.root[C.internal];
469
469
  if (e in i) return;
470
470
  const s = Symbol(e);
471
- i[e] = { type: "service", builtin: n }, this.ctx.root[C.isolate][e] = s, Mt(t) && (this.ctx[C.store][s] = { value: t, source: null }, J(t, C.tracker, {
471
+ i[e] = { type: "service", builtin: n }, this.ctx.root[C.isolate][e] = s, Ft(t) && (this.ctx[C.store][s] = { value: t, source: null }, J(t, C.tracker, {
472
472
  associate: e,
473
473
  property: "ctx"
474
474
  }));
@@ -513,11 +513,11 @@ var Ci = class Ie {
513
513
  apply: /* @__PURE__ */ D((t, n, i) => t.apply(this.trace(n), i.map((s) => this.trace(s))), "apply")
514
514
  });
515
515
  }
516
- }, It = Ci;
517
- function At(r) {
516
+ }, At = Ci;
517
+ function Ot(r) {
518
518
  return r !== null && r !== !1 && r !== void 0;
519
519
  }
520
- D(At, "isBailed");
520
+ D(Ot, "isBailed");
521
521
  var Li = class {
522
522
  constructor(r) {
523
523
  this.ctx = r, J(this, C.tracker, {
@@ -554,7 +554,7 @@ var Li = class {
554
554
  const e = /* @__PURE__ */ D((t, n) => {
555
555
  if (!t.runtime.plugin) return !1;
556
556
  for (const i in t.runtime.inject)
557
- if (n === It.resolveInject(t.ctx, i)[0]) return !0;
557
+ if (n === At.resolveInject(t.ctx, i)[0]) return !0;
558
558
  return e(t.parent.scope, n);
559
559
  }, "checkInject");
560
560
  J(this.on("internal/inject", function(t) {
@@ -591,11 +591,11 @@ var Li = class {
591
591
  }
592
592
  async serial(...r) {
593
593
  for await (const e of this.dispatch("serial", r))
594
- if (At(e)) return e;
594
+ if (Ot(e)) return e;
595
595
  }
596
596
  bail(...r) {
597
597
  for (const e of this.dispatch("bail", r))
598
- if (At(e)) return e;
598
+ if (Ot(e)) return e;
599
599
  }
600
600
  register(r, e, t, n) {
601
601
  const i = n.prepend ? "unshift" : "push";
@@ -631,7 +631,7 @@ var Li = class {
631
631
  async stop() {
632
632
  this.isActive = !1, this.ctx.scope.reset();
633
633
  }
634
- }, Di = Li, Ot = class Mr extends Error {
634
+ }, Di = Li, $t = class Mr extends Error {
635
635
  constructor(e, t) {
636
636
  super(t ?? Mr.Code[e]), this.code = e;
637
637
  }
@@ -643,7 +643,7 @@ var Li = class {
643
643
  r.Code = {
644
644
  INACTIVE_EFFECT: "cannot create effect on inactive context"
645
645
  };
646
- })(Ot || (Ot = {}));
646
+ })($t || ($t = {}));
647
647
  var Fr = class {
648
648
  constructor(r, e) {
649
649
  this.parent = r, this.config = e, this.uid = r.registry ? r.registry.counter : 0, this.ctx = this.context = r.extend({ scope: this }), this.proxy = new Proxy({}, {
@@ -670,11 +670,11 @@ var Fr = class {
670
670
  }
671
671
  assertActive() {
672
672
  if (!(this.uid !== null || this.isActive))
673
- throw new Ot("INACTIVE_EFFECT");
673
+ throw new $t("INACTIVE_EFFECT");
674
674
  }
675
675
  effect(r, e) {
676
676
  this.assertActive();
677
- const t = jt(r) ? new r(this.ctx, e) : r(this.ctx, e);
677
+ const t = Ut(r) ? new r(this.ctx, e) : r(this.ctx, e);
678
678
  let n = !1;
679
679
  const i = typeof t == "function" ? t : t.dispose.bind(t), s = /* @__PURE__ */ D((...o) => {
680
680
  if (!n)
@@ -782,7 +782,7 @@ var Fr = class {
782
782
  if (n.config !== t) return;
783
783
  let i;
784
784
  try {
785
- i = We(this.runtime.plugin, r);
785
+ i = He(this.runtime.plugin, r);
786
786
  } catch (a) {
787
787
  return this.context.emit("internal/error", a), this.cancel(a);
788
788
  }
@@ -821,7 +821,7 @@ var Fr = class {
821
821
  apply = /* @__PURE__ */ D((r, e) => {
822
822
  if (typeof this.plugin != "function")
823
823
  return this.plugin.apply(r, e);
824
- if (jt(this.plugin)) {
824
+ if (Ut(this.plugin)) {
825
825
  const t = new this.plugin(r, e), n = t[re.expose];
826
826
  return n && r.set(n, t), t.fork && this.forkables.push(t.fork.bind(t)), t;
827
827
  } else
@@ -846,7 +846,7 @@ var Fr = class {
846
846
  const t = this.config;
847
847
  let n;
848
848
  try {
849
- n = We(this.runtime.plugin || this.context.constructor, r);
849
+ n = He(this.runtime.plugin || this.context.constructor, r);
850
850
  } catch (a) {
851
851
  return this.context.emit("internal/error", a), this.cancel(a);
852
852
  }
@@ -949,7 +949,7 @@ var Bi = class {
949
949
  plugin(r, e, t) {
950
950
  if (this.resolve(r, !0), this.ctx.scope.assertActive(), !t)
951
951
  try {
952
- e = We(r, e);
952
+ e = He(r, e);
953
953
  } catch (i) {
954
954
  this.context.emit(this.ctx, "internal/error", i), t = i, e = null;
955
955
  }
@@ -981,9 +981,9 @@ var Bi = class {
981
981
  return e;
982
982
  }
983
983
  constructor(e) {
984
- e = We(this.constructor, e), this[C.store] = /* @__PURE__ */ Object.create(null), this[C.isolate] = /* @__PURE__ */ Object.create(null), this[C.internal] = /* @__PURE__ */ Object.create(null), this[C.intercept] = /* @__PURE__ */ Object.create(null);
985
- const t = new Proxy(this, It.handler);
986
- t.root = t, t.reflect = new It(t), t.registry = new ji(t, e), t.lifecycle = new Di(t);
984
+ e = He(this.constructor, e), this[C.store] = /* @__PURE__ */ Object.create(null), this[C.isolate] = /* @__PURE__ */ Object.create(null), this[C.internal] = /* @__PURE__ */ Object.create(null), this[C.intercept] = /* @__PURE__ */ Object.create(null);
985
+ const t = new Proxy(this, At.handler);
986
+ t.root = t, t.reflect = new At(t), t.registry = new ji(t, e), t.lifecycle = new Di(t);
987
987
  const n = /* @__PURE__ */ D((i) => {
988
988
  if (i) {
989
989
  n(Object.getPrototypeOf(i));
@@ -1025,7 +1025,7 @@ var Bi = class {
1025
1025
  }
1026
1026
  };
1027
1027
  re.prototype[re.internal] = /* @__PURE__ */ Object.create(null);
1028
- var Pe = class Hr {
1028
+ var Pe = class Wr {
1029
1029
  static {
1030
1030
  D(this, "Service");
1031
1031
  }
@@ -1050,7 +1050,7 @@ var Pe = class Hr {
1050
1050
  associate: n,
1051
1051
  property: "ctx"
1052
1052
  };
1053
- return o[C.invoke] && (o = Rt(n, Ut(Object.getPrototypeOf(this), Function.prototype), a)), t ? o.ctx = t : o[C.setup](), o.name = n, o.config = s, J(o, C.tracker, a), o.ctx.provide(n), o.ctx.runtime.name = n, i && (t ? o[C.expose] = n : o.ctx.set(n, o)), o.ctx.on("ready", async () => {
1053
+ return o[C.invoke] && (o = It(n, Mt(Object.getPrototypeOf(this), Function.prototype), a)), t ? o.ctx = t : o[C.setup](), o.name = n, o.config = s, J(o, C.tracker, a), o.ctx.provide(n), o.ctx.runtime.name = n, i && (t ? o[C.expose] = n : o.ctx.set(n, o)), o.ctx.on("ready", async () => {
1054
1054
  await Promise.resolve(), await o.start(), i || o.ctx.set(n, o);
1055
1055
  }), o.ctx.on("dispose", () => o.stop()), o;
1056
1056
  }
@@ -1062,7 +1062,7 @@ var Pe = class Hr {
1062
1062
  }
1063
1063
  [C.extend](e) {
1064
1064
  let t;
1065
- return this[Hr.invoke] ? t = Rt(this.name, this, this[C.tracker]) : t = Object.create(this), Object.assign(t, e);
1065
+ return this[Wr.invoke] ? t = It(this.name, this, this[C.tracker]) : t = Object.create(this), Object.assign(t, e);
1066
1066
  }
1067
1067
  static [Symbol.hasInstance](e) {
1068
1068
  let t = e.constructor;
@@ -1196,7 +1196,7 @@ var Pe = class Hr {
1196
1196
  }
1197
1197
  return p;
1198
1198
  }, "simplify"), s.prototype.toString = /* @__PURE__ */ M(function(p) {
1199
- return H[this.type]?.(this, p) ?? `Schema<${this.type}>`;
1199
+ return W[this.type]?.(this, p) ?? `Schema<${this.type}>`;
1200
1200
  }, "toString"), s.prototype.role = /* @__PURE__ */ M(function(u, p) {
1201
1201
  const y = s(this);
1202
1202
  return y.meta = { ...y.meta, role: u, extra: p }, y;
@@ -1406,18 +1406,18 @@ var Pe = class Hr {
1406
1406
  const S = p.map((x, O) => P(u, O, x, y));
1407
1407
  return h ? [S] : (S.push(...u.slice(p.length)), [S]);
1408
1408
  });
1409
- function W(u, p) {
1409
+ function H(u, p) {
1410
1410
  for (const y in p)
1411
1411
  y in u || (u[y] = p[y]);
1412
1412
  }
1413
- M(W, "merge"), s.extend("object", (u, { dict: p }, y, h) => {
1413
+ M(H, "merge"), s.extend("object", (u, { dict: p }, y, h) => {
1414
1414
  if (!Ze(u)) throw new i(`expected object but got ${u}`, y);
1415
1415
  const S = {};
1416
1416
  for (const x in p) {
1417
1417
  const O = P(u, x, p[x], y);
1418
1418
  (!G(O) || x in u) && (S[x] = O);
1419
1419
  }
1420
- return h || W(S, u), [S];
1420
+ return h || H(S, u), [S];
1421
1421
  }), s.extend("union", (u, { list: p, toString: y }, h, S) => {
1422
1422
  for (const x of p)
1423
1423
  try {
@@ -1437,19 +1437,19 @@ var Pe = class Hr {
1437
1437
  if (typeof x != typeof N)
1438
1438
  throw new i(`expected ${y()} but got ${JSON.stringify(u)}`, h);
1439
1439
  if (typeof N == "object")
1440
- W(x ??= {}, N);
1440
+ H(x ??= {}, N);
1441
1441
  else if (x !== N)
1442
1442
  throw new i(`expected ${y()} but got ${JSON.stringify(u)}`, h);
1443
1443
  }
1444
1444
  }
1445
- return !S && Ze(u) && W(x, u), [x];
1445
+ return !S && Ze(u) && H(x, u), [x];
1446
1446
  }), s.extend("transform", (u, { inner: p, callback: y, preserve: h }, S) => {
1447
1447
  const [x, O = u] = s.resolve(u, p, S, !0);
1448
1448
  return h ? [y(x)] : [y(x), y(O)];
1449
1449
  });
1450
- var H = {};
1450
+ var W = {};
1451
1451
  function U(u, p, y) {
1452
- H[u] = y, Object.assign(s, {
1452
+ W[u] = y, Object.assign(s, {
1453
1453
  [u](...h) {
1454
1454
  const S = new s({ type: u });
1455
1455
  return p.forEach((x, O) => {
@@ -1495,7 +1495,7 @@ var Pe = class Hr {
1495
1495
  }), U("intersect", ["list"], ({ list: u }) => `${u.map((p) => p.toString(!0)).join(" & ")}`), U("transform", ["inner", "callback", "preserve"], ({ inner: u }, p) => u.toString(p)), e.exports = s;
1496
1496
  }
1497
1497
  });
1498
- const $t = zi();
1498
+ const Pt = zi();
1499
1499
  /**
1500
1500
  * @inpageedit/logger
1501
1501
  *
@@ -1504,10 +1504,10 @@ const $t = zi();
1504
1504
  * @author dragon-fish <dragon-fish@qq.com>
1505
1505
  * @license MIT
1506
1506
  */
1507
- var Wr = /* @__PURE__ */ ((r) => (r[r.debug = -1] = "debug", r[r.log = 0] = "log", r[r.info = 1] = "info", r[r.warn = 2] = "warn", r[r.error = 3] = "error", r[r.silent = 4] = "silent", r))(Wr || {});
1508
- const Pt = globalThis || window, Tt = Symbol.for("__IPE_LOGGER_COLOR_MAP__");
1509
- Pt[Tt] || (Pt[Tt] = /* @__PURE__ */ new Map());
1510
- const _t = Pt[Tt];
1507
+ var Hr = /* @__PURE__ */ ((r) => (r[r.debug = -1] = "debug", r[r.log = 0] = "log", r[r.info = 1] = "info", r[r.warn = 2] = "warn", r[r.error = 3] = "error", r[r.silent = 4] = "silent", r))(Hr || {});
1508
+ const Tt = globalThis || window, Ct = Symbol.for("__IPE_LOGGER_COLOR_MAP__");
1509
+ Tt[Ct] || (Tt[Ct] = /* @__PURE__ */ new Map());
1510
+ const St = Tt[Ct];
1511
1511
  function Ge(r) {
1512
1512
  let e = 2166136261;
1513
1513
  for (let t = 0; t < r.length; t++)
@@ -1526,7 +1526,7 @@ const Er = [
1526
1526
  [140, 160],
1527
1527
  [160, 180]
1528
1528
  ];
1529
- function Hi(r, e) {
1529
+ function Wi(r, e) {
1530
1530
  const t = Er.length, n = Ge(r) % t, [i, s] = Er[n], o = s - i, a = Ge(r + ":" + e), d = i + a % (o || 1), v = Ge(r + ":s"), _ = Ge(r + ":l");
1531
1531
  let w, T;
1532
1532
  if (e === "name")
@@ -1539,11 +1539,11 @@ function Hi(r, e) {
1539
1539
  }
1540
1540
  function Ve(r, e) {
1541
1541
  if (e)
1542
- return _t.set(r, e), e;
1543
- const t = _t.get(r);
1542
+ return St.set(r, e), e;
1543
+ const t = St.get(r);
1544
1544
  if (t) return t;
1545
- const n = r.startsWith("name:") ? "name" : "group", i = Hi(r, n);
1546
- return _t.set(r, i), i;
1545
+ const n = r.startsWith("name:") ? "name" : "group", i = Wi(r, n);
1546
+ return St.set(r, i), i;
1547
1547
  }
1548
1548
  /**
1549
1549
  * @inpageedit/logger
@@ -1565,7 +1565,7 @@ function Ve(r, e) {
1565
1565
  * logger.success('User created successfully')
1566
1566
  * ```
1567
1567
  */
1568
- class zt {
1568
+ class Wt {
1569
1569
  /**
1570
1570
  * Note: constructor returns a callable Proxy so that you can do `logger('group')`.
1571
1571
  */
@@ -1591,7 +1591,7 @@ class zt {
1591
1591
  }
1592
1592
  /** Create a sub-logger with a group label */
1593
1593
  group(e, t) {
1594
- return e && Ve(`group:${e}`, t?.color), new zt({
1594
+ return e && Ve(`group:${e}`, t?.color), new Wt({
1595
1595
  name: this._name,
1596
1596
  color: this._nameColor,
1597
1597
  _groupPath: [...this._groupPath, e],
@@ -1630,7 +1630,7 @@ class zt {
1630
1630
  });
1631
1631
  }
1632
1632
  _method(e) {
1633
- const t = Wi[e];
1633
+ const t = Hi[e];
1634
1634
  if (!this._enabled(t.level)) return xr;
1635
1635
  const [n, i] = this._prefix(t.label);
1636
1636
  return this._consoleMethod(e).bind(console, n, ...i);
@@ -1659,7 +1659,7 @@ class zt {
1659
1659
  }
1660
1660
  }
1661
1661
  const xr = () => {
1662
- }, kr = "color:inherit; background:transparent; text-decoration:none;", Wi = {
1662
+ }, kr = "color:inherit; background:transparent; text-decoration:none;", Hi = {
1663
1663
  debug: { level: -1, label: "", method: "debug" },
1664
1664
  log: { level: 0, label: "", method: "log" },
1665
1665
  info: { level: 1, label: "[I]", method: "info" },
@@ -1686,7 +1686,7 @@ function Ki(r) {
1686
1686
  });
1687
1687
  }
1688
1688
  function qi(r) {
1689
- return new zt(r);
1689
+ return new Wt(r);
1690
1690
  }
1691
1691
  var ie = /* @__PURE__ */ ((r) => (r.BODY_USED = "BODY_USED", r.NO_BODY_READER = "NO_BODY_READER", r.TIMEOUT = "TIMEOUT", r.NETWORK_ERROR = "NETWORK_ERROR", r.BODY_NOT_ALLOWED = "BODY_NOT_ALLOWED", r.HOOK_CONTEXT_CHANGED = "HOOK_CONTEXT_CHANGED", r.ABORTED_BY_HOOK = "ABORTED_BY_HOOK", r.INVALID_HOOK_CALLBACK = "INVALID_HOOK_CALLBACK", r.UNEXPECTED_HOOK_RETURN = "UNEXPECTED_HOOK_RETURN", r))(ie || {});
1692
1692
  let te = class extends Error {
@@ -1920,9 +1920,9 @@ let rs = class {
1920
1920
  function ns(r) {
1921
1921
  return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
1922
1922
  }
1923
- var St, Ir;
1923
+ var Et, Ir;
1924
1924
  function is() {
1925
- if (Ir) return St;
1925
+ if (Ir) return Et;
1926
1926
  Ir = 1;
1927
1927
  function r(e) {
1928
1928
  var t = this.constructor.prototype[e], n = function() {
@@ -1932,7 +1932,7 @@ function is() {
1932
1932
  Object.defineProperty(n, i, Object.getOwnPropertyDescriptor(t, i));
1933
1933
  }), n;
1934
1934
  }
1935
- return r.prototype = Object.create(Function.prototype), St = r, St;
1935
+ return r.prototype = Object.create(Function.prototype), Et = r, Et;
1936
1936
  }
1937
1937
  var ss = is();
1938
1938
  const os = /* @__PURE__ */ ns(ss), tt = class be extends os {
@@ -1971,7 +1971,7 @@ const os = /* @__PURE__ */ ns(ss), tt = class be extends os {
1971
1971
  a = await this.emit("beforeRequest", a);
1972
1972
  let R;
1973
1973
  typeof a.body < "u" && a.body !== null && (a.body instanceof Blob || a.body instanceof FormData || a.body instanceof URLSearchParams ? R = a.body : typeof a.body == "object" && a.body !== null ? (R = JSON.stringify(a.body), a.headers["content-type"] = "application/json") : R = a.body), !((o = t.headers) != null && o["content-type"]) && R && (R instanceof FormData || R instanceof URLSearchParams ? delete a.headers["content-type"] : typeof R == "string" && typeof a.body == "object" ? a.headers["content-type"] = "application/json" : R instanceof Blob && (a.headers["content-type"] = R.type)), a.body = R, a = await this.emit("afterBodyTransformed", a);
1974
- const P = a.abortController || globalThis.AbortController ? new AbortController() : void 0, W = new Request(a.url, {
1974
+ const P = a.abortController || globalThis.AbortController ? new AbortController() : void 0, H = new Request(a.url, {
1975
1975
  method: a.method || "GET",
1976
1976
  credentials: a.credentials,
1977
1977
  cache: a.cache,
@@ -1980,8 +1980,8 @@ const os = /* @__PURE__ */ ns(ss), tt = class be extends os {
1980
1980
  body: a.body,
1981
1981
  signal: P?.signal
1982
1982
  });
1983
- a.rawRequest = W, a = await this.emit("beforeActualFetch", a);
1984
- const H = a.timeout || this.baseConfigs.timeout || 60 * 1e3;
1983
+ a.rawRequest = H, a = await this.emit("beforeActualFetch", a);
1984
+ const W = a.timeout || this.baseConfigs.timeout || 60 * 1e3;
1985
1985
  if (a.url.startsWith("ws"))
1986
1986
  try {
1987
1987
  const u = new WebSocket(a.url);
@@ -1990,11 +1990,11 @@ const os = /* @__PURE__ */ ns(ss), tt = class be extends os {
1990
1990
  y(
1991
1991
  new te(
1992
1992
  ie.TIMEOUT,
1993
- `WebSocket connection timed out after ${H}ms`,
1993
+ `WebSocket connection timed out after ${W}ms`,
1994
1994
  a
1995
1995
  )
1996
1996
  );
1997
- }, H);
1997
+ }, W);
1998
1998
  u.onopen = () => {
1999
1999
  clearTimeout(h), p();
2000
2000
  }, u.onerror = (S) => {
@@ -2030,11 +2030,11 @@ const os = /* @__PURE__ */ ns(ss), tt = class be extends os {
2030
2030
  try {
2031
2031
  P && (U = setTimeout(() => {
2032
2032
  P.abort();
2033
- }, H));
2033
+ }, W));
2034
2034
  const u = await (t.fetch || this.baseConfigs.fetch || globalThis.fetch)(a.rawRequest).catch((p) => {
2035
2035
  throw U && clearTimeout(U), P != null && P.signal.aborted ? new te(
2036
2036
  ie.TIMEOUT,
2037
- `Request timed out after ${H}ms`,
2037
+ `Request timed out after ${W}ms`,
2038
2038
  a
2039
2039
  ) : new te(ie.NETWORK_ERROR, p.message, a);
2040
2040
  });
@@ -2562,7 +2562,7 @@ var ds = Object.create, Ht = Object.defineProperty, ps = Object.getOwnPropertyDe
2562
2562
  for (var P = n.length - 1; P >= 0; P--)
2563
2563
  d = vs(v, t, a = {}, r[3], T), o = (0, n[P])(i, d), a._ = 1, Xr(o) && (i = o);
2564
2564
  return ws(r, i), R && Ht(i, t, R), _ ? v ^ 4 ? s : R : i;
2565
- }, Jr, Wt, Qr;
2565
+ }, Jr, Kt, Qr;
2566
2566
  Jr = [$e(["wiki", "wikiTitle"])];
2567
2567
  class ot extends (Qr = Pe) {
2568
2568
  constructor(e) {
@@ -2575,7 +2575,7 @@ class ot extends (Qr = Pe) {
2575
2575
  window.removeEventListener("popstate", this.#r.bind(this));
2576
2576
  }
2577
2577
  async #e() {
2578
- await this.#n(), await this.#i(), await this.#s();
2578
+ await this.#i(), await this.#s(), await this.#n();
2579
2579
  }
2580
2580
  #t() {
2581
2581
  const e = Symbol.for("InPageEdit.CurrentPageService.UrlChangeListenerInstalled");
@@ -2595,18 +2595,22 @@ class ot extends (Qr = Pe) {
2595
2595
  get params() {
2596
2596
  return this.url.searchParams;
2597
2597
  }
2598
+ get canonicalUrl() {
2599
+ const e = document.querySelector('link[rel="canonical"]')?.href;
2600
+ let t = null;
2601
+ return e && (t = new URL(e, location.origin)), Reflect.defineProperty(this, "canonicalUrl", {
2602
+ get: () => t
2603
+ }), t;
2604
+ }
2598
2605
  async #n() {
2599
- let e = !1;
2600
- const t = this.url.origin + this.url.pathname;
2601
- let n = this.params.get("title") || "";
2602
- const i = parseInt(this.params.get("curid") || "0", 10);
2603
- return i ? n = (await this.ctx.wikiPage.newFromPageId(i))?.title || "" : n && (n = n[0].toUpperCase() + n.slice(1), n = n.replace(/_/g, " ")), t === this.ctx.wiki.getSciprtUrl("index.php") && n === this.ctx.wiki.mainPageName && (e = !0), e = [this.ctx.wiki.mainPageUrl, this.ctx.wiki.landingPageUrl].includes(t) && !n, Reflect.defineProperty(this, "isMainPage", {
2604
- get: () => e
2605
- }), e;
2606
+ const t = this.wikiTitle?.getMainDBKey() === this.ctx.wiki.mainPageName;
2607
+ return Reflect.defineProperty(this, "isMainPage", {
2608
+ get: () => t
2609
+ }), t;
2606
2610
  }
2607
2611
  async #i() {
2608
2612
  let e = null;
2609
- return this.isMainPage ? e = this.ctx.wikiTitle.newTitle(this.ctx.wiki.mainPageName) : e = await this.ctx.wikiTitle.newTitleFromUrl(this.url), Object.freeze(e), Reflect.defineProperty(this, "wikiTitle", {
2613
+ return this.canonicalUrl ? e = await this.ctx.wikiTitle.newTitleFromUrl(this.canonicalUrl) : e = await this.ctx.wikiTitle.newTitleFromUrl(this.url), Object.freeze(e), Reflect.defineProperty(this, "wikiTitle", {
2610
2614
  get: () => e
2611
2615
  }), e;
2612
2616
  }
@@ -2617,9 +2621,9 @@ class ot extends (Qr = Pe) {
2617
2621
  }), this.wikiAction;
2618
2622
  }
2619
2623
  }
2620
- Wt = ys(Qr);
2621
- ot = Ss(Wt, 0, "CurrentPageService", Jr, ot);
2622
- _s(Wt, 1, ot);
2624
+ Kt = ys(Qr);
2625
+ ot = Ss(Kt, 0, "CurrentPageService", Jr, ot);
2626
+ _s(Kt, 1, ot);
2623
2627
  class Es extends Pe {
2624
2628
  constructor(e) {
2625
2629
  super(e, "resourceLoader", !0), this.ctx = e;
@@ -2655,14 +2659,14 @@ class Es extends Pe {
2655
2659
  return e.startsWith("http") || e.startsWith("//") ? e : import.meta.resolve(e);
2656
2660
  }
2657
2661
  }
2658
- const lt = Object.keys;
2662
+ const ut = Object.keys;
2659
2663
  function xs(r) {
2660
2664
  return typeof r == "boolean";
2661
2665
  }
2662
2666
  function ks(r) {
2663
2667
  return r && typeof r.nodeType == "number";
2664
2668
  }
2665
- function Kt(r) {
2669
+ function qt(r) {
2666
2670
  return typeof r == "string";
2667
2671
  }
2668
2672
  function Zr(r) {
@@ -2680,15 +2684,15 @@ function Rs(r) {
2680
2684
  function Is(r) {
2681
2685
  return Ee(r) && typeof r.length == "number" && typeof r.nodeType != "number";
2682
2686
  }
2683
- function Ct(r, e) {
2687
+ function Lt(r, e) {
2684
2688
  if (r)
2685
- for (const t of lt(r))
2689
+ for (const t of ut(r))
2686
2690
  e(r[t], t);
2687
2691
  }
2688
2692
  function As(r) {
2689
2693
  return Ee(r) && "current" in r;
2690
2694
  }
2691
- const Lt = {
2695
+ const Dt = {
2692
2696
  animationIterationCount: 0,
2693
2697
  borderImageOutset: 0,
2694
2698
  borderImageSlice: 0,
@@ -2737,9 +2741,9 @@ function Os(r, e) {
2737
2741
  return r + e.charAt(0).toUpperCase() + e.substring(1);
2738
2742
  }
2739
2743
  const $s = ["Webkit", "ms", "Moz", "O"];
2740
- lt(Lt).forEach((r) => {
2744
+ ut(Dt).forEach((r) => {
2741
2745
  $s.forEach((e) => {
2742
- Lt[Os(e, r)] = 0;
2746
+ Dt[Os(e, r)] = 0;
2743
2747
  });
2744
2748
  });
2745
2749
  const Ps = Symbol.for("jsx-dom:type");
@@ -2753,8 +2757,8 @@ const Cs = "http://www.w3.org/2000/svg", Ls = "http://www.w3.org/1999/xlink", Ds
2753
2757
  function tn(r) {
2754
2758
  return !xs(r) && r != null;
2755
2759
  }
2756
- function Dt(r) {
2757
- return Array.isArray(r) ? r.map(Dt).filter(Boolean).join(" ") : Ee(r) ? Symbol.iterator in r ? Dt(Array.from(r)) : lt(r).filter((e) => r[e]).join(" ") : tn(r) ? "" + r : "";
2760
+ function Nt(r) {
2761
+ return Array.isArray(r) ? r.map(Nt).filter(Boolean).join(" ") : Ee(r) ? Symbol.iterator in r ? Nt(Array.from(r)) : ut(r).filter((e) => r[e]).join(" ") : tn(r) ? "" + r : "";
2758
2762
  }
2759
2763
  const Ns = {
2760
2764
  animate: 0,
@@ -2814,7 +2818,7 @@ const Ns = {
2814
2818
  }, Bs = /^(a(ll|t|u)|base[FP]|c(al|lipPathU|on)|di|ed|ex|filter[RU]|g(lyphR|r)|ke|l(en|im)|ma(rker[HUW]|s)|n|pat|pr|point[^e]|re[^n]|s[puy]|st[^or]|ta|textL|vi|xC|y|z)/;
2815
2819
  function js(r) {
2816
2820
  const e = document.createDocumentFragment();
2817
- return ut(r.children, e), e;
2821
+ return ft(r.children, e), e;
2818
2822
  }
2819
2823
  function Us(r, e, t) {
2820
2824
  e = {
@@ -2822,7 +2826,7 @@ function Us(r, e, t) {
2822
2826
  children: t
2823
2827
  };
2824
2828
  const n = new r(e), i = n.render();
2825
- return "ref" in e && qt(e.ref, n), i;
2829
+ return "ref" in e && Yt(e.ref, n), i;
2826
2830
  }
2827
2831
  function K(r, e) {
2828
2832
  let { children: t, ...n } = e;
@@ -2831,8 +2835,8 @@ function K(r, e) {
2831
2835
  namespaceURI: Cs
2832
2836
  });
2833
2837
  let i;
2834
- if (Kt(r)) {
2835
- if (i = n.namespaceURI ? document.createElementNS(n.namespaceURI, r) : document.createElement(r), zs(n, i), ut(t, i), i instanceof window.HTMLSelectElement && n.value != null)
2838
+ if (qt(r)) {
2839
+ if (i = n.namespaceURI ? document.createElementNS(n.namespaceURI, r) : document.createElement(r), zs(n, i), ft(t, i), i instanceof window.HTMLSelectElement && n.value != null)
2836
2840
  if (n.multiple === !0 && Array.isArray(n.value)) {
2837
2841
  const s = n.value.map((o) => String(o));
2838
2842
  i.querySelectorAll("option").forEach(
@@ -2840,7 +2844,7 @@ function K(r, e) {
2840
2844
  );
2841
2845
  } else
2842
2846
  i.value = n.value;
2843
- qt(n.ref, i);
2847
+ Yt(n.ref, i);
2844
2848
  } else if (Me(r))
2845
2849
  Ee(r.defaultProps) && (n = {
2846
2850
  ...r.defaultProps,
@@ -2853,37 +2857,37 @@ function K(r, e) {
2853
2857
  throw new TypeError(`Invalid JSX element type: ${r}`);
2854
2858
  return i;
2855
2859
  }
2856
- function qt(r, e) {
2860
+ function Yt(r, e) {
2857
2861
  As(r) ? r.current = e : Me(r) && r(e);
2858
2862
  }
2859
- function ut(r, e) {
2863
+ function ft(r, e) {
2860
2864
  if (Is(r))
2861
2865
  Ms(r, e);
2862
- else if (Kt(r) || Zr(r))
2863
- Et(document.createTextNode(r), e);
2866
+ else if (qt(r) || Zr(r))
2867
+ xt(document.createTextNode(r), e);
2864
2868
  else if (r === null)
2865
- Et(document.createComment(""), e);
2869
+ xt(document.createComment(""), e);
2866
2870
  else if (ks(r))
2867
- Et(r, e);
2871
+ xt(r, e);
2868
2872
  else if (Ts(r)) {
2869
2873
  const t = e.attachShadow(r.attr);
2870
- ut(r.children, t), qt(r.ref, t);
2874
+ ft(r.children, t), Yt(r.ref, t);
2871
2875
  }
2872
2876
  }
2873
2877
  function Ms(r, e) {
2874
2878
  for (const t of [...r])
2875
- ut(t, e);
2879
+ ft(t, e);
2876
2880
  return e;
2877
2881
  }
2878
- function Et(r, e) {
2882
+ function xt(r, e) {
2879
2883
  e instanceof window.HTMLTemplateElement ? e.content.appendChild(r) : e.appendChild(r);
2880
2884
  }
2881
2885
  function Xe(r, e) {
2882
2886
  return r.replace(/[A-Z]/g, (t) => e + t.toLowerCase());
2883
2887
  }
2884
2888
  function rn(r, e) {
2885
- e == null || e === !1 || (Array.isArray(e) ? e.forEach((t) => rn(r, t)) : Kt(e) ? r.setAttribute("style", e) : Ee(e) && Ct(e, (t, n) => {
2886
- n.indexOf("-") === 0 ? r.style.setProperty(n, t) : Zr(t) && Lt[n] !== 0 ? r.style[n] = t + "px" : r.style[n] = t;
2889
+ e == null || e === !1 || (Array.isArray(e) ? e.forEach((t) => rn(r, t)) : qt(e) ? r.setAttribute("style", e) : Ee(e) && Lt(e, (t, n) => {
2890
+ n.indexOf("-") === 0 ? r.style.setProperty(n, t) : Zr(t) && Dt[n] !== 0 ? r.style[n] = t + "px" : r.style[n] = t;
2887
2891
  }));
2888
2892
  }
2889
2893
  function Fs(r, e, t) {
@@ -2911,7 +2915,7 @@ function Fs(r, e, t) {
2911
2915
  Re(t, "for", e);
2912
2916
  return;
2913
2917
  case "dataset":
2914
- Ct(e, (n, i) => {
2918
+ Lt(e, (n, i) => {
2915
2919
  n != null && (t.dataset[i] = n);
2916
2920
  });
2917
2921
  return;
@@ -2936,7 +2940,7 @@ function Fs(r, e, t) {
2936
2940
  return;
2937
2941
  case "class":
2938
2942
  case "className":
2939
- Me(e) ? e(t) : Re(t, "class", Dt(e));
2943
+ Me(e) ? e(t) : Re(t, "class", Nt(e));
2940
2944
  return;
2941
2945
  case "ref":
2942
2946
  case "namespaceURI":
@@ -2946,7 +2950,7 @@ function Fs(r, e, t) {
2946
2950
  return;
2947
2951
  case "on":
2948
2952
  case "onCapture":
2949
- Ct(e, (n, i) => {
2953
+ Lt(e, (n, i) => {
2950
2954
  t.addEventListener(i, n, r === "onCapture");
2951
2955
  });
2952
2956
  return;
@@ -2977,13 +2981,13 @@ function Or(r, e, t, n) {
2977
2981
  r.setAttributeNS(e, t, n);
2978
2982
  }
2979
2983
  function zs(r, e) {
2980
- for (const t of lt(r))
2984
+ for (const t of ut(r))
2981
2985
  Fs(t, r[t], e);
2982
2986
  return e;
2983
2987
  }
2984
- var Yt = /* @__PURE__ */ ((r) => (r.Init = "modal.init", r.BeforeShow = "modal.beforeShow", r.Show = "modal.show", r.BeforeClose = "modal.beforeClose", r.Close = "modal.close", r.Destroy = "modal.destroy", r.ToastShow = "toast.show", r.ToastClose = "toast.close", r))(Yt || {});
2985
- let Hs = 0;
2986
- const $r = (r) => `${r}-${++Hs}`;
2988
+ var Gt = /* @__PURE__ */ ((r) => (r.Init = "modal.init", r.BeforeShow = "modal.beforeShow", r.Show = "modal.show", r.BeforeClose = "modal.beforeClose", r.Close = "modal.close", r.Destroy = "modal.destroy", r.ToastShow = "toast.show", r.ToastClose = "toast.close", r))(Gt || {});
2989
+ let Ws = 0;
2990
+ const $r = (r) => `${r}-${++Ws}`;
2987
2991
  function Ne(r) {
2988
2992
  return r instanceof Node ? r : document.createTextNode(String(r));
2989
2993
  }
@@ -3010,7 +3014,7 @@ function Z(r, e = {}) {
3010
3014
  for (const [n, i] of Object.entries(e.attrs)) t.setAttribute(n, i);
3011
3015
  return t;
3012
3016
  }
3013
- const Ws = typeof navigator < "u" && /Mac|iPhone|iPad|iPod/i.test(navigator.platform), nn = ["ctrl", "alt", "shift", "meta"];
3017
+ const Hs = typeof navigator < "u" && /Mac|iPhone|iPad|iPod/i.test(navigator.platform), nn = ["ctrl", "alt", "shift", "meta"];
3014
3018
  function Ks(r) {
3015
3019
  if (!r) return null;
3016
3020
  const e = String(r).trim().toLowerCase().split(/[+\-\s]+/g).filter(Boolean), t = [];
@@ -3037,7 +3041,7 @@ function Ks(r) {
3037
3041
  continue;
3038
3042
  }
3039
3043
  if (a === "mod") {
3040
- i(Ws ? "meta" : "ctrl");
3044
+ i(Hs ? "meta" : "ctrl");
3041
3045
  continue;
3042
3046
  }
3043
3047
  a === "esc" && (a = "escape"), a === "return" && (a = "enter"), (a === "space" || a === "spacebar") && (a = "space"), n = a;
@@ -3087,9 +3091,9 @@ class Ys {
3087
3091
  }
3088
3092
  }
3089
3093
  const ee = new Ys();
3090
- class Gt {
3094
+ class Vt {
3091
3095
  constructor(e = {}) {
3092
- this.backdropId = $r("ipe-modal-backdrop"), this.modalId = $r("ipe-modal"), this.numberId = this.modalId.split("-")[1], this._isDestroyed = !1, this.pluginName = "normalModal", this.buttonElsLeft = [], this.buttonElsRight = [], this.keyMap = /* @__PURE__ */ new Map(), this.isOpen = !1, this.isToast = !1, this.isDragging = !1, this.dragStartX = 0, this.dragStartY = 0, this.modalStartX = 0, this.modalStartY = 0, this.Event = Yt, this.DEFAULT_OPTIONS = {
3096
+ this.backdropId = $r("ipe-modal-backdrop"), this.modalId = $r("ipe-modal"), this.numberId = this.modalId.split("-")[1], this._isDestroyed = !1, this.pluginName = "normalModal", this.buttonElsLeft = [], this.buttonElsRight = [], this.keyMap = /* @__PURE__ */ new Map(), this.isOpen = !1, this.isToast = !1, this.isDragging = !1, this.dragStartX = 0, this.dragStartY = 0, this.modalStartX = 0, this.modalStartY = 0, this.Event = Gt, this.DEFAULT_OPTIONS = {
3093
3097
  className: "",
3094
3098
  sizeClass: "auto",
3095
3099
  center: !0,
@@ -3138,9 +3142,9 @@ class Gt {
3138
3142
  });
3139
3143
  if (n.modal = this, !e) {
3140
3144
  n.classList.add("no-backdrop");
3141
- const R = window.pageYOffset || document.documentElement.scrollTop, P = window.pageXOffset || document.documentElement.scrollLeft, W = window.innerWidth;
3145
+ const R = window.pageYOffset || document.documentElement.scrollTop, P = window.pageXOffset || document.documentElement.scrollLeft, H = window.innerWidth;
3142
3146
  n.style.top = `${R + 60}px`, this.once("modal.show", () => {
3143
- n.style.left = `${P + W / 2 - n.offsetWidth / 2}px`;
3147
+ n.style.left = `${P + H / 2 - n.offsetWidth / 2}px`;
3144
3148
  });
3145
3149
  }
3146
3150
  const i = Z("div", {
@@ -3493,7 +3497,7 @@ class Gt {
3493
3497
  return ee.closeAll(e, t), [..._e].forEach((s) => {
3494
3498
  const o = s.modalId, a = i.size ? i.has(s.pluginName) : !0, d = n.has(o);
3495
3499
  a && !d && s.close();
3496
- }), ee.top() ?? new Gt();
3500
+ }), ee.top() ?? new Vt();
3497
3501
  }
3498
3502
  static removeAll() {
3499
3503
  ee.removeAll(), [..._e].forEach((e) => e.destroy());
@@ -3693,7 +3697,7 @@ function Gs(r = "top right") {
3693
3697
  attrs: { id: t, "data-position": r }
3694
3698
  }), document.body.appendChild(n)), n;
3695
3699
  }
3696
- class X extends Gt {
3700
+ class X extends Vt {
3697
3701
  constructor(e = {}) {
3698
3702
  e.className ||= "", e.className += " theme-ipe", e.modalAnimation ||= {
3699
3703
  show: "ipe-modal-fade-in",
@@ -3739,7 +3743,7 @@ class X extends Gt {
3739
3743
  }
3740
3744
  class Vs {
3741
3745
  constructor(e) {
3742
- this.ctx = e, this.IPEModal = X, this.IPEModalEvent = Yt, this.show = X.show.bind(X), this.createObject = X.createObject.bind(X), this.close = X.close.bind(X), this.closeAll = X.closeAll.bind(X), this.removeAll = X.removeAll.bind(X), this.dialog = X.dialog.bind(X), this.confirm = X.confirm.bind(X), this.notify = X.notify.bind(X), e.set("modal", this);
3746
+ this.ctx = e, this.IPEModal = X, this.IPEModalEvent = Gt, this.show = X.show.bind(X), this.createObject = X.createObject.bind(X), this.close = X.close.bind(X), this.closeAll = X.closeAll.bind(X), this.removeAll = X.removeAll.bind(X), this.dialog = X.dialog.bind(X), this.confirm = X.confirm.bind(X), this.notify = X.notify.bind(X), e.set("modal", this);
3743
3747
  }
3744
3748
  }
3745
3749
  const sn = (r) => {
@@ -3771,9 +3775,9 @@ const sn = (r) => {
3771
3775
  i.set(o, a);
3772
3776
  return n.search = i.toString(), n.hash = "", n;
3773
3777
  };
3774
- var Xs = Object.create, Vt = Object.defineProperty, Js = Object.getOwnPropertyDescriptor, an = (r, e) => (e = Symbol[r]) ? e : Symbol.for("Symbol." + r), cn = (r) => {
3778
+ var Xs = Object.create, Xt = Object.defineProperty, Js = Object.getOwnPropertyDescriptor, an = (r, e) => (e = Symbol[r]) ? e : Symbol.for("Symbol." + r), cn = (r) => {
3775
3779
  throw TypeError(r);
3776
- }, Qs = (r, e, t) => e in r ? Vt(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, Zs = (r, e) => Vt(r, "name", { value: e, configurable: !0 }), eo = (r) => [, , , Xs(r?.[an("metadata")] ?? null)], to = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], ln = (r) => r !== void 0 && typeof r != "function" ? cn("Function expected") : r, ro = (r, e, t, n, i) => ({ kind: to[r], name: e, metadata: n, addInitializer: (s) => t._ ? cn("Already initialized") : i.push(ln(s || null)) }), no = (r, e) => Qs(e, an("metadata"), r[3]), io = (r, e, t, n) => {
3780
+ }, Qs = (r, e, t) => e in r ? Xt(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, Zs = (r, e) => Xt(r, "name", { value: e, configurable: !0 }), eo = (r) => [, , , Xs(r?.[an("metadata")] ?? null)], to = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], ln = (r) => r !== void 0 && typeof r != "function" ? cn("Function expected") : r, ro = (r, e, t, n, i) => ({ kind: to[r], name: e, metadata: n, addInitializer: (s) => t._ ? cn("Already initialized") : i.push(ln(s || null)) }), no = (r, e) => Qs(e, an("metadata"), r[3]), io = (r, e, t, n) => {
3777
3781
  for (var i = 0, s = r[e >> 1], o = s && s.length; i < o; i++) s[i].call(t);
3778
3782
  return n;
3779
3783
  }, so = (r, e, t, n, i, s) => {
@@ -3781,8 +3785,8 @@ var Xs = Object.create, Vt = Object.defineProperty, Js = Object.getOwnPropertyDe
3781
3785
  Zs(i, t);
3782
3786
  for (var P = n.length - 1; P >= 0; P--)
3783
3787
  d = ro(v, t, a = {}, r[3], T), o = (0, n[P])(i, d), a._ = 1, ln(o) && (i = o);
3784
- return no(r, i), R && Vt(i, t, R), _ ? v ^ 4 ? s : R : i;
3785
- }, un, Xt, fn;
3788
+ return no(r, i), R && Xt(i, t, R), _ ? v ^ 4 ? s : R : i;
3789
+ }, un, Jt, fn;
3786
3790
  un = [$e(["api", "storage"])];
3787
3791
  class at extends (fn = Pe) {
3788
3792
  constructor(e) {
@@ -3812,8 +3816,8 @@ class at extends (fn = Pe) {
3812
3816
  this.logger.info("loaded", this._data), this.ctx.set("getUrl", this.getUrl.bind(this)), this.ctx.set("getSciprtUrl", this.getSciprtUrl.bind(this)), this.ctx.set("getMainpageUrl", this.getMainpageUrl.bind(this)), this.ctx.inject(["preferences"], (t) => {
3813
3817
  t.preferences.registerCustomConfig(
3814
3818
  "WikiMetadataService",
3815
- $t.object({
3816
- WikiMetadataService: $t.const(
3819
+ Pt.object({
3820
+ WikiMetadataService: Pt.const(
3817
3821
  /* @__PURE__ */ ne("div", { children: [
3818
3822
  /* @__PURE__ */ ne("h3", { children: "Wiki Informations" }),
3819
3823
  /* @__PURE__ */ ne("ul", { children: [
@@ -3858,17 +3862,8 @@ class at extends (fn = Pe) {
3858
3862
  );
3859
3863
  });
3860
3864
  }
3861
- computeSiteIdentity() {
3862
- let e;
3863
- if (!window.mw?.config)
3864
- e = new URL(location.href).origin;
3865
- else {
3866
- const { wgServer: t, wgArticlePath: n } = window.mw.config.get();
3867
- e = `${t}${n}`;
3868
- }
3869
- return Reflect.defineProperty(this, "computeSiteIdentity", {
3870
- get: () => e
3871
- }), e;
3865
+ get metadataCacheId() {
3866
+ return this.ctx.api.config.baseURL;
3872
3867
  }
3873
3868
  async fetchFromApi() {
3874
3869
  return this.api.get({
@@ -3881,15 +3876,15 @@ class at extends (fn = Pe) {
3881
3876
  }).catch((e) => (this.logger.error("Failed to fetch metadata", e), Promise.reject(e)));
3882
3877
  }
3883
3878
  async fetchFromCache() {
3884
- const e = this.computeSiteIdentity(), t = this.mwConfig.get("wgUserId", 0), n = await this.db.get(e);
3879
+ const e = this.metadataCacheId, t = this.mwConfig.get("wgUserId", 0), n = await this.db.get(e);
3885
3880
  return n && typeof n == "object" && n.general && n.userinfo.id === t ? n : (this.logger.info(n ? "Cache mis-match" : "Missing cache"), this.invalidateCache(), null);
3886
3881
  }
3887
3882
  async saveToCache(e) {
3888
- const t = this.computeSiteIdentity();
3883
+ const t = this.metadataCacheId;
3889
3884
  return this.db.set(t, e);
3890
3885
  }
3891
3886
  async invalidateCache() {
3892
- const e = this.computeSiteIdentity();
3887
+ const e = this.metadataCacheId;
3893
3888
  return this.db.delete(e);
3894
3889
  }
3895
3890
  // shortcuts
@@ -4032,9 +4027,9 @@ class at extends (fn = Pe) {
4032
4027
  } : null;
4033
4028
  }
4034
4029
  }
4035
- Xt = eo(fn);
4036
- at = so(Xt, 0, "WikiMetadataService", un, at);
4037
- io(Xt, 1, at);
4030
+ Jt = eo(fn);
4031
+ at = so(Jt, 0, "WikiMetadataService", un, at);
4032
+ io(Jt, 1, at);
4038
4033
  var Je = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
4039
4034
  function oo(r) {
4040
4035
  return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
@@ -4042,7 +4037,7 @@ function oo(r) {
4042
4037
  function Qe(r) {
4043
4038
  throw new Error('Could not dynamically require "' + r + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
4044
4039
  }
4045
- var xt = { exports: {} };
4040
+ var kt = { exports: {} };
4046
4041
  /*!
4047
4042
  localForage -- Offline Storage, Improved
4048
4043
  Version 1.10.0
@@ -4067,8 +4062,8 @@ function ao() {
4067
4062
  }
4068
4063
  var R = i[v] = { exports: {} };
4069
4064
  n[v][0].call(R.exports, function(P) {
4070
- var W = n[v][1][P];
4071
- return o(W || P);
4065
+ var H = n[v][1][P];
4066
+ return o(H || P);
4072
4067
  }, R, R.exports, t, n, i, s);
4073
4068
  }
4074
4069
  return i[v].exports;
@@ -4091,26 +4086,26 @@ function ao() {
4091
4086
  w.port2.postMessage(0);
4092
4087
  };
4093
4088
  } else "document" in s && "onreadystatechange" in s.document.createElement("script") ? a = function() {
4094
- var H = s.document.createElement("script");
4095
- H.onreadystatechange = function() {
4096
- P(), H.onreadystatechange = null, H.parentNode.removeChild(H), H = null;
4097
- }, s.document.documentElement.appendChild(H);
4089
+ var W = s.document.createElement("script");
4090
+ W.onreadystatechange = function() {
4091
+ P(), W.onreadystatechange = null, W.parentNode.removeChild(W), W = null;
4092
+ }, s.document.documentElement.appendChild(W);
4098
4093
  } : a = function() {
4099
4094
  setTimeout(P, 0);
4100
4095
  };
4101
4096
  var T, R = [];
4102
4097
  function P() {
4103
4098
  T = !0;
4104
- for (var H, U, u = R.length; u; ) {
4105
- for (U = R, R = [], H = -1; ++H < u; )
4106
- U[H]();
4099
+ for (var W, U, u = R.length; u; ) {
4100
+ for (U = R, R = [], W = -1; ++W < u; )
4101
+ U[W]();
4107
4102
  u = R.length;
4108
4103
  }
4109
4104
  T = !1;
4110
4105
  }
4111
- n.exports = W;
4112
- function W(H) {
4113
- R.push(H) === 1 && !T && a();
4106
+ n.exports = H;
4107
+ function H(W) {
4108
+ R.push(W) === 1 && !T && a();
4114
4109
  }
4115
4110
  }).call(this, typeof Je < "u" ? Je : typeof self < "u" ? self : typeof window < "u" ? window : {});
4116
4111
  }, {}], 2: [function(t, n, i) {
@@ -4122,7 +4117,7 @@ function ao() {
4122
4117
  function w(h) {
4123
4118
  if (typeof h != "function")
4124
4119
  throw new TypeError("resolver must be a function");
4125
- this.state = _, this.queue = [], this.outcome = void 0, h !== o && W(this, h);
4120
+ this.state = _, this.queue = [], this.outcome = void 0, h !== o && H(this, h);
4126
4121
  }
4127
4122
  w.prototype.catch = function(h) {
4128
4123
  return this.then(null, h);
@@ -4161,12 +4156,12 @@ function ao() {
4161
4156
  });
4162
4157
  }
4163
4158
  a.resolve = function(h, S) {
4164
- var x = H(P, S);
4159
+ var x = W(P, S);
4165
4160
  if (x.status === "error")
4166
4161
  return a.reject(h, x.value);
4167
4162
  var O = x.value;
4168
4163
  if (O)
4169
- W(h, O);
4164
+ H(h, O);
4170
4165
  else {
4171
4166
  h.state = v, h.outcome = S;
4172
4167
  for (var N = -1, Q = h.queue.length; ++N < Q; )
@@ -4186,7 +4181,7 @@ function ao() {
4186
4181
  S.apply(h, arguments);
4187
4182
  };
4188
4183
  }
4189
- function W(h, S) {
4184
+ function H(h, S) {
4190
4185
  var x = !1;
4191
4186
  function O(oe) {
4192
4187
  x || (x = !0, a.reject(h, oe));
@@ -4197,10 +4192,10 @@ function ao() {
4197
4192
  function Q() {
4198
4193
  S(N, O);
4199
4194
  }
4200
- var se = H(Q);
4195
+ var se = W(Q);
4201
4196
  se.status === "error" && O(se.value);
4202
4197
  }
4203
- function H(h, S) {
4198
+ function W(h, S) {
4204
4199
  var x = {};
4205
4200
  try {
4206
4201
  x.value = h(S), x.status = "success";
@@ -4230,10 +4225,10 @@ function ao() {
4230
4225
  he(h[se], se);
4231
4226
  return oe;
4232
4227
  function he(Te, Ke) {
4233
- S.resolve(Te).then(ft, function(xe) {
4228
+ S.resolve(Te).then(ht, function(xe) {
4234
4229
  O || (O = !0, a.reject(oe, xe));
4235
4230
  });
4236
- function ft(xe) {
4231
+ function ht(xe) {
4237
4232
  N[Ke] = xe, ++Q === x && !O && (O = !0, a.resolve(oe, N));
4238
4233
  }
4239
4234
  }
@@ -4329,11 +4324,11 @@ function ao() {
4329
4324
  function P(c) {
4330
4325
  return typeof c != "string" && (c = String(c)), c;
4331
4326
  }
4332
- function W() {
4327
+ function H() {
4333
4328
  if (arguments.length && typeof arguments[arguments.length - 1] == "function")
4334
4329
  return arguments[arguments.length - 1];
4335
4330
  }
4336
- var H = "local-forage-detect-blob-support", U = void 0, u = {}, p = Object.prototype.toString, y = "readonly", h = "readwrite";
4331
+ var W = "local-forage-detect-blob-support", U = void 0, u = {}, p = Object.prototype.toString, y = "readonly", h = "readwrite";
4337
4332
  function S(c) {
4338
4333
  for (var f = c.length, l = new ArrayBuffer(f), g = new Uint8Array(l), b = 0; b < f; b++)
4339
4334
  g[b] = c.charCodeAt(b);
@@ -4341,8 +4336,8 @@ function ao() {
4341
4336
  }
4342
4337
  function x(c) {
4343
4338
  return new w(function(f) {
4344
- var l = c.transaction(H, h), g = _([""]);
4345
- l.objectStore(H).put(g, "key"), l.onabort = function(b) {
4339
+ var l = c.transaction(W, h), g = _([""]);
4340
+ l.objectStore(W).put(g, "key"), l.onabort = function(b) {
4346
4341
  b.preventDefault(), b.stopPropagation(), f(!1);
4347
4342
  }, l.oncomplete = function() {
4348
4343
  var b = navigator.userAgent.match(/Chrome\/(\d+)/), m = navigator.userAgent.match(/Edge\//);
@@ -4388,7 +4383,7 @@ function ao() {
4388
4383
  f && (m.onupgradeneeded = function(E) {
4389
4384
  var k = m.result;
4390
4385
  try {
4391
- k.createObjectStore(c.storeName), E.oldVersion <= 1 && k.createObjectStore(H);
4386
+ k.createObjectStore(c.storeName), E.oldVersion <= 1 && k.createObjectStore(W);
4392
4387
  } catch (I) {
4393
4388
  if (I.name !== "ConstraintError")
4394
4389
  throw I;
@@ -4422,7 +4417,7 @@ function ao() {
4422
4417
  }
4423
4418
  return !1;
4424
4419
  }
4425
- function ft(c) {
4420
+ function ht(c) {
4426
4421
  return new w(function(f, l) {
4427
4422
  var g = new FileReader();
4428
4423
  g.onerror = l, g.onloadend = function(b) {
@@ -4585,7 +4580,7 @@ function ao() {
4585
4580
  var k;
4586
4581
  g.ready().then(function() {
4587
4582
  return k = g._dbInfo, p.call(f) === "[object Blob]" ? O(k.db).then(function(I) {
4588
- return I ? f : ft(f);
4583
+ return I ? f : ht(f);
4589
4584
  }) : f;
4590
4585
  }).then(function(I) {
4591
4586
  de(g._dbInfo, h, function(A, $) {
@@ -4735,7 +4730,7 @@ function ao() {
4735
4730
  return T(l, c), l;
4736
4731
  }
4737
4732
  function kn(c, f) {
4738
- f = W.apply(this, arguments);
4733
+ f = H.apply(this, arguments);
4739
4734
  var l = this.config();
4740
4735
  c = typeof c != "function" && c || {}, c.name || (c.name = c.name || l.name, c.storeName = c.storeName || l.storeName);
4741
4736
  var g = this, b;
@@ -4833,7 +4828,7 @@ function ao() {
4833
4828
  function In() {
4834
4829
  return typeof openDatabase == "function";
4835
4830
  }
4836
- var ge = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", An = "~~local_forage_type~", tr = /^~~local_forage_type~([^~]+)~/, qe = "__lfsc__:", ht = qe.length, dt = "arbf", pt = "blob", rr = "si08", nr = "ui08", ir = "uic8", sr = "si16", or = "si32", ar = "ur16", cr = "ui32", lr = "fl32", ur = "fl64", fr = ht + dt.length, hr = Object.prototype.toString;
4831
+ var ge = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", An = "~~local_forage_type~", tr = /^~~local_forage_type~([^~]+)~/, qe = "__lfsc__:", dt = qe.length, pt = "arbf", mt = "blob", rr = "si08", nr = "ui08", ir = "uic8", sr = "si16", or = "si32", ar = "ur16", cr = "ui32", lr = "fl32", ur = "fl64", fr = dt + pt.length, hr = Object.prototype.toString;
4837
4832
  function dr(c) {
4838
4833
  var f = c.length * 0.75, l = c.length, g, b = 0, m, E, k, I;
4839
4834
  c[c.length - 1] === "=" && (f--, c[c.length - 2] === "=" && f--);
@@ -4842,7 +4837,7 @@ function ao() {
4842
4837
  m = ge.indexOf(c[g]), E = ge.indexOf(c[g + 1]), k = ge.indexOf(c[g + 2]), I = ge.indexOf(c[g + 3]), $[b++] = m << 2 | E >> 4, $[b++] = (E & 15) << 4 | k >> 2, $[b++] = (k & 3) << 6 | I & 63;
4843
4838
  return A;
4844
4839
  }
4845
- function mt(c) {
4840
+ function gt(c) {
4846
4841
  var f = new Uint8Array(c), l = "", g;
4847
4842
  for (g = 0; g < f.length; g += 3)
4848
4843
  l += ge[f[g] >> 2], l += ge[(f[g] & 3) << 4 | f[g + 1] >> 4], l += ge[(f[g + 1] & 15) << 2 | f[g + 2] >> 6], l += ge[f[g + 2] & 63];
@@ -4852,12 +4847,12 @@ function ao() {
4852
4847
  var l = "";
4853
4848
  if (c && (l = hr.call(c)), c && (l === "[object ArrayBuffer]" || c.buffer && hr.call(c.buffer) === "[object ArrayBuffer]")) {
4854
4849
  var g, b = qe;
4855
- c instanceof ArrayBuffer ? (g = c, b += dt) : (g = c.buffer, l === "[object Int8Array]" ? b += rr : l === "[object Uint8Array]" ? b += nr : l === "[object Uint8ClampedArray]" ? b += ir : l === "[object Int16Array]" ? b += sr : l === "[object Uint16Array]" ? b += ar : l === "[object Int32Array]" ? b += or : l === "[object Uint32Array]" ? b += cr : l === "[object Float32Array]" ? b += lr : l === "[object Float64Array]" ? b += ur : f(new Error("Failed to get type for BinaryArray"))), f(b + mt(g));
4850
+ c instanceof ArrayBuffer ? (g = c, b += pt) : (g = c.buffer, l === "[object Int8Array]" ? b += rr : l === "[object Uint8Array]" ? b += nr : l === "[object Uint8ClampedArray]" ? b += ir : l === "[object Int16Array]" ? b += sr : l === "[object Uint16Array]" ? b += ar : l === "[object Int32Array]" ? b += or : l === "[object Uint32Array]" ? b += cr : l === "[object Float32Array]" ? b += lr : l === "[object Float64Array]" ? b += ur : f(new Error("Failed to get type for BinaryArray"))), f(b + gt(g));
4856
4851
  } else if (l === "[object Blob]") {
4857
4852
  var m = new FileReader();
4858
4853
  m.onload = function() {
4859
- var E = An + c.type + "~" + mt(this.result);
4860
- f(qe + pt + E);
4854
+ var E = An + c.type + "~" + gt(this.result);
4855
+ f(qe + mt + E);
4861
4856
  }, m.readAsArrayBuffer(c);
4862
4857
  } else
4863
4858
  try {
@@ -4867,18 +4862,18 @@ function ao() {
4867
4862
  }
4868
4863
  }
4869
4864
  function $n(c) {
4870
- if (c.substring(0, ht) !== qe)
4865
+ if (c.substring(0, dt) !== qe)
4871
4866
  return JSON.parse(c);
4872
- var f = c.substring(fr), l = c.substring(ht, fr), g;
4873
- if (l === pt && tr.test(f)) {
4867
+ var f = c.substring(fr), l = c.substring(dt, fr), g;
4868
+ if (l === mt && tr.test(f)) {
4874
4869
  var b = f.match(tr);
4875
4870
  g = b[1], f = f.substring(b[0].length);
4876
4871
  }
4877
4872
  var m = dr(f);
4878
4873
  switch (l) {
4879
- case dt:
4880
- return m;
4881
4874
  case pt:
4875
+ return m;
4876
+ case mt:
4882
4877
  return _([m], { type: g });
4883
4878
  case rr:
4884
4879
  return new Int8Array(m);
@@ -4902,11 +4897,11 @@ function ao() {
4902
4897
  throw new Error("Unkown type: " + l);
4903
4898
  }
4904
4899
  }
4905
- var gt = {
4900
+ var yt = {
4906
4901
  serialize: On,
4907
4902
  deserialize: $n,
4908
4903
  stringToBuffer: dr,
4909
- bufferToString: mt
4904
+ bufferToString: gt
4910
4905
  };
4911
4906
  function pr(c, f, l, g) {
4912
4907
  c.executeSql("CREATE TABLE IF NOT EXISTS " + f.storeName + " (id INTEGER PRIMARY KEY, key unique, value)", [], l, g);
@@ -4932,7 +4927,7 @@ function ao() {
4932
4927
  });
4933
4928
  }, E);
4934
4929
  });
4935
- return l.serializer = gt, b;
4930
+ return l.serializer = yt, b;
4936
4931
  }
4937
4932
  function ye(c, f, l, g, b, m) {
4938
4933
  c.executeSql(l, g, b, function(E, k) {
@@ -5114,7 +5109,7 @@ function ao() {
5114
5109
  });
5115
5110
  }
5116
5111
  function Fn(c, f) {
5117
- f = W.apply(this, arguments);
5112
+ f = H.apply(this, arguments);
5118
5113
  var l = this.config();
5119
5114
  c = typeof c != "function" && c || {}, c.name || (c.name = c.name || l.name, c.storeName = c.storeName || l.storeName);
5120
5115
  var g = this, b;
@@ -5163,7 +5158,7 @@ function ao() {
5163
5158
  keys: Un,
5164
5159
  dropInstance: Fn
5165
5160
  };
5166
- function Hn() {
5161
+ function Wn() {
5167
5162
  try {
5168
5163
  return typeof localStorage < "u" && "setItem" in localStorage && // in IE8 typeof localStorage.setItem === 'object'
5169
5164
  !!localStorage.setItem;
@@ -5175,7 +5170,7 @@ function ao() {
5175
5170
  var l = c.name + "/";
5176
5171
  return c.storeName !== f.storeName && (l += c.storeName + "/"), l;
5177
5172
  }
5178
- function Wn() {
5173
+ function Hn() {
5179
5174
  var c = "_localforage_support_test";
5180
5175
  try {
5181
5176
  return localStorage.setItem(c, !0), localStorage.removeItem(c), !1;
@@ -5184,14 +5179,14 @@ function ao() {
5184
5179
  }
5185
5180
  }
5186
5181
  function Kn() {
5187
- return !Wn() || localStorage.length > 0;
5182
+ return !Hn() || localStorage.length > 0;
5188
5183
  }
5189
5184
  function qn(c) {
5190
5185
  var f = this, l = {};
5191
5186
  if (c)
5192
5187
  for (var g in c)
5193
5188
  l[g] = c[g];
5194
- return l.keyPrefix = gr(c, f._defaultConfig), Kn() ? (f._dbInfo = l, l.serializer = gt, w.resolve()) : w.reject();
5189
+ return l.keyPrefix = gr(c, f._defaultConfig), Kn() ? (f._dbInfo = l, l.serializer = yt, w.resolve()) : w.reject();
5195
5190
  }
5196
5191
  function Yn(c) {
5197
5192
  var f = this, l = f.ready().then(function() {
@@ -5284,7 +5279,7 @@ function ao() {
5284
5279
  return T(b, l), b;
5285
5280
  }
5286
5281
  function ti(c, f) {
5287
- if (f = W.apply(this, arguments), c = typeof c != "function" && c || {}, !c.name) {
5282
+ if (f = H.apply(this, arguments), c = typeof c != "function" && c || {}, !c.name) {
5288
5283
  var l = this.config();
5289
5284
  c.name = c.name || l.name, c.storeName = c.storeName || l.storeName;
5290
5285
  }
@@ -5301,7 +5296,7 @@ function ao() {
5301
5296
  var ri = {
5302
5297
  _driver: "localStorageWrapper",
5303
5298
  _initStorage: qn,
5304
- _support: Hn(),
5299
+ _support: Wn(),
5305
5300
  iterate: Vn,
5306
5301
  getItem: Gn,
5307
5302
  setItem: ei,
@@ -5326,7 +5321,7 @@ function ao() {
5326
5321
  INDEXEDDB: Rn,
5327
5322
  WEBSQL: zn,
5328
5323
  LOCALSTORAGE: ri
5329
- }, si = [ke.INDEXEDDB._driver, ke.WEBSQL._driver, ke.LOCALSTORAGE._driver], Ye = ["dropInstance"], yt = ["clear", "getItem", "iterate", "key", "keys", "length", "removeItem", "setItem"].concat(Ye), oi = {
5324
+ }, si = [ke.INDEXEDDB._driver, ke.WEBSQL._driver, ke.LOCALSTORAGE._driver], Ye = ["dropInstance"], bt = ["clear", "getItem", "iterate", "key", "keys", "length", "removeItem", "setItem"].concat(Ye), oi = {
5330
5325
  description: "",
5331
5326
  driver: si.slice(),
5332
5327
  name: "localforage",
@@ -5344,7 +5339,7 @@ function ao() {
5344
5339
  });
5345
5340
  };
5346
5341
  }
5347
- function bt() {
5342
+ function vt() {
5348
5343
  for (var c = 1; c < arguments.length; c++) {
5349
5344
  var f = arguments[c];
5350
5345
  if (f)
@@ -5361,7 +5356,7 @@ function ao() {
5361
5356
  var g = ke[l], b = g._driver;
5362
5357
  this[l] = b, Ce[b] || this.defineDriver(g);
5363
5358
  }
5364
- this._defaultConfig = bt({}, oi), this._config = bt({}, this._defaultConfig, f), this._driverSet = null, this._initDriver = null, this._ready = !1, this._dbInfo = null, this._wrapLibraryMethodsWithReady(), this.setDriver(this._config.driver).catch(function() {
5359
+ this._defaultConfig = vt({}, oi), this._config = vt({}, this._defaultConfig, f), this._driverSet = null, this._initDriver = null, this._ready = !1, this._dbInfo = null, this._wrapLibraryMethodsWithReady(), this.setDriver(this._config.driver).catch(function() {
5365
5360
  });
5366
5361
  }
5367
5362
  return c.prototype.config = function(l) {
@@ -5383,7 +5378,7 @@ function ao() {
5383
5378
  k(A);
5384
5379
  return;
5385
5380
  }
5386
- for (var $ = yt.concat("_initStorage"), L = 0, j = $.length; L < j; L++) {
5381
+ for (var $ = bt.concat("_initStorage"), L = 0, j = $.length; L < j; L++) {
5387
5382
  var F = $[L], z = !ii(Ye, F);
5388
5383
  if ((z || l[F]) && typeof l[F] != "function") {
5389
5384
  k(A);
@@ -5396,9 +5391,9 @@ function ao() {
5396
5391
  var hi = new Error("Method " + fi + " is not implemented by the current driver"), vr = w.reject(hi);
5397
5392
  return T(vr, arguments[arguments.length - 1]), vr;
5398
5393
  };
5399
- }, vt = 0, ui = Ye.length; vt < ui; vt++) {
5400
- var wt = Ye[vt];
5401
- l[wt] || (l[wt] = Le(wt));
5394
+ }, wt = 0, ui = Ye.length; wt < ui; wt++) {
5395
+ var _t = Ye[wt];
5396
+ l[_t] || (l[_t] = Le(_t));
5402
5397
  }
5403
5398
  };
5404
5399
  V();
@@ -5417,7 +5412,7 @@ function ao() {
5417
5412
  var m = Ce[l] ? w.resolve(Ce[l]) : w.reject(new Error("Driver not found."));
5418
5413
  return R(m, g, b), m;
5419
5414
  }, c.prototype.getSerializer = function(l) {
5420
- var g = w.resolve(gt);
5415
+ var g = w.resolve(yt);
5421
5416
  return R(g, l), g;
5422
5417
  }, c.prototype.ready = function(l) {
5423
5418
  var g = this, b = g._driverSet.then(function() {
@@ -5465,7 +5460,7 @@ function ao() {
5465
5460
  }, c.prototype.supports = function(l) {
5466
5461
  return !!br[l];
5467
5462
  }, c.prototype._extend = function(l) {
5468
- bt(this, l);
5463
+ vt(this, l);
5469
5464
  }, c.prototype._getSupportedDrivers = function(l) {
5470
5465
  for (var g = [], b = 0, m = l.length; b < m; b++) {
5471
5466
  var E = l[b];
@@ -5473,8 +5468,8 @@ function ao() {
5473
5468
  }
5474
5469
  return g;
5475
5470
  }, c.prototype._wrapLibraryMethodsWithReady = function() {
5476
- for (var l = 0, g = yt.length; l < g; l++)
5477
- ai(this, yt[l]);
5471
+ for (var l = 0, g = bt.length; l < g; l++)
5472
+ ai(this, bt[l]);
5478
5473
  }, c.prototype.createInstance = function(l) {
5479
5474
  return new c(l);
5480
5475
  }, c;
@@ -5482,7 +5477,7 @@ function ao() {
5482
5477
  n.exports = li;
5483
5478
  }, { 3: 3 }] }, {}, [4])(4);
5484
5479
  });
5485
- }(xt)), xt.exports;
5480
+ }(kt)), kt.exports;
5486
5481
  }
5487
5482
  var co = ao();
5488
5483
  const hn = /* @__PURE__ */ oo(co);
@@ -6011,10 +6006,19 @@ function ho(r) {
6011
6006
  const a = new i(o, -1);
6012
6007
  return this.getMainRootText() === a.getMainRootText();
6013
6008
  }
6009
+ toJSON() {
6010
+ return {
6011
+ ns: this.#t,
6012
+ text: this.getMainText(),
6013
+ title: this.getPrefixedText(),
6014
+ url: this.getURL().toString(),
6015
+ isSpecial: this.#t < 0
6016
+ };
6017
+ }
6014
6018
  }
6015
6019
  return Cr.set(r, i), i;
6016
6020
  }
6017
- class Jt extends Pe {
6021
+ class Qt extends Pe {
6018
6022
  constructor(e) {
6019
6023
  super(e, "wikiTitle", !0), this.ctx = e, this.logger = this.ctx.logger("WikiTitleService"), this._titleByPageId = /* @__PURE__ */ new Map(), this.wiki = this.ctx.wiki, this.wikiBaseUrl = this.wiki.baseUrl, this.wikiArticlePath = this.wiki.articlePath.replace("$1", ""), this.wikiArticleBaseUrl = this.wiki.articleBaseUrl.replace("$1", ""), this.wikiIndexPhpUrl = this.wiki.getSciprtUrl("index.php"), this.Title = ho(this.ctx.wiki._raw);
6020
6024
  }
@@ -6033,7 +6037,7 @@ class Jt extends Pe {
6033
6037
  return null;
6034
6038
  if (this._titleByPageId.has(e))
6035
6039
  return this._titleByPageId.get(e);
6036
- const { promise: t, resolve: n, reject: i } = Nt();
6040
+ const { promise: t, resolve: n, reject: i } = Bt();
6037
6041
  return this._titleByPageId.set(e, t), this.ctx.inject(["wikiPage"], async (s) => {
6038
6042
  try {
6039
6043
  const o = await s.wikiPage.newFromPageId(e);
@@ -6089,7 +6093,7 @@ class Jt extends Pe {
6089
6093
  this.REG_SKIPPED_HREF = /^(#|javascript:|vbscript:|file:)/i;
6090
6094
  }
6091
6095
  validateHrefAttr(e) {
6092
- return typeof e != "string" ? !1 : !Jt.REG_SKIPPED_HREF.test(e);
6096
+ return typeof e != "string" ? !1 : !Qt.REG_SKIPPED_HREF.test(e);
6093
6097
  }
6094
6098
  parseWikiLink(e) {
6095
6099
  if (!e || typeof e == "string" && !this.validateHrefAttr(e))
@@ -6123,7 +6127,7 @@ class Jt extends Pe {
6123
6127
  };
6124
6128
  }
6125
6129
  }
6126
- var Qt = /* @__PURE__ */ ((r) => (r.ANALYTICS_API_BASE = "https://analytics.ipe.wiki/api", r.ANALYTICS_DASH_URL = "https://analytics.ipe.wiki", r.GITHUB_URL = "https://github.com/inpageedit/inpageedit-next", r.HOME_URL = "https://www.ipe.wiki/", r.UPDATE_LOGS_URL = "https://www.ipe.wiki/changelogs/", r))(Qt || {});
6130
+ var ct = /* @__PURE__ */ ((r) => (r.ANALYTICS_API_BASE = "https://analytics.ipe.wiki/api", r.ANALYTICS_DASH_URL = "https://analytics.ipe.wiki", r.GITHUB_URL = "https://github.com/inpageedit/inpageedit-next", r.HOME_URL = "https://www.ipe.wiki/", r.UPDATE_LOGS_URL = "https://www.ipe.wiki/changelogs/", r))(ct || {});
6127
6131
  /**
6128
6132
  * ✏️ InPageEdit NEXT
6129
6133
  *
@@ -6138,7 +6142,7 @@ class ze extends re {
6138
6142
  constructor(e) {
6139
6143
  super({
6140
6144
  name: "InPageEdit"
6141
- }), this.version = "0.8.1", this.Endpoints = Qt, this.schema = $t, this.config = {
6145
+ }), this.version = "0.9.0", this.Endpoints = ct, this.schema = Pt, this.config = {
6142
6146
  ...ze.DEFAULT_CONFIG,
6143
6147
  ...e
6144
6148
  }, this.logger = qi({
@@ -6151,12 +6155,12 @@ class ze extends re {
6151
6155
  this.DEFAULT_CONFIG = {
6152
6156
  apiConfigs: {},
6153
6157
  legacyPreferences: {},
6154
- logLevel: Wr.info,
6158
+ logLevel: Hr.info,
6155
6159
  autoloadStyles: !0
6156
6160
  };
6157
6161
  }
6158
6162
  async #e() {
6159
- this.plugin(hs, this.config.apiConfigs), this.plugin(ot), this.plugin(Es), this.plugin(Vs), this.plugin(lo), this.plugin(at), this.plugin(fo), this.plugin(Jt), this.#t([
6163
+ this.plugin(hs, this.config.apiConfigs), this.plugin(ot), this.plugin(Es), this.plugin(Vs), this.plugin(lo), this.plugin(at), this.plugin(fo), this.plugin(Qt), this.#t([
6160
6164
  "api",
6161
6165
  "currentPage",
6162
6166
  "resourceLoader",
@@ -6182,21 +6186,21 @@ class ze extends re {
6182
6186
  // TODO: 这里不应该硬编码,暂时先这样
6183
6187
  async #r() {
6184
6188
  [
6185
- import("./index-kRdAN8h3.js").then(
6189
+ import("./index-DMNUP3fg.js").then(
6186
6190
  ({ PluginInArticleLinks: t }) => t
6187
6191
  ),
6188
- import("./index-DwyuBkCK.js").then(({ PluginPreferences: t }) => t),
6189
- import("./index-9M1QcjCN.js").then(({ PluginQuickEdit: t }) => t),
6190
- import("./index-OBerV4GU.js").then(({ PluginQuickDelete: t }) => t),
6191
- import("./index-Tn22YSmW.js").then(({ PluginQuickMove: t }) => t),
6192
- import("./index-Ba7Wkale.js").then(
6192
+ import("./index-BB9MXkUv.js").then(({ PluginPreferences: t }) => t),
6193
+ import("./index-CYdxWw9g.js").then(({ PluginQuickEdit: t }) => t),
6194
+ import("./index-dp6_MU68.js").then(({ PluginQuickDelete: t }) => t),
6195
+ import("./index-G3k3kjCU.js").then(({ PluginQuickMove: t }) => t),
6196
+ import("./index-D7SQwFxl.js").then(
6193
6197
  ({ PluginQuickPreview: t }) => t
6194
6198
  ),
6195
- import("./index-C8dOYIIz.js").then(({ PluginQuickDiff: t }) => t),
6196
- import("./index-CeXR4lOu.js").then(
6199
+ import("./index-CADkQBg0.js").then(({ PluginQuickDiff: t }) => t),
6200
+ import("./index-CBQsBfc2.js").then(
6197
6201
  ({ PluginQuickRedirect: t }) => t
6198
6202
  ),
6199
- import("./index-DBV8FBjA.js").then(({ PluginToolbox: t }) => t)
6203
+ import("./index-BDVcDlsf.js").then(({ PluginToolbox: t }) => t)
6200
6204
  ].forEach(async (t) => {
6201
6205
  this.plugin(await t);
6202
6206
  });
@@ -6208,7 +6212,7 @@ class ze extends re {
6208
6212
  });
6209
6213
  }
6210
6214
  async useScope(e) {
6211
- const { promise: t, resolve: n } = Nt();
6215
+ const { promise: t, resolve: n } = Bt();
6212
6216
  return this.inject(e, (i) => {
6213
6217
  n(i);
6214
6218
  }), t;
@@ -6272,40 +6276,49 @@ class Ro {
6272
6276
  window.RLQ ||= [];
6273
6277
  window.__IPE_MODULES__ ||= [];
6274
6278
  yo("InPageEdit#autoload", () => {
6275
- window.RLQ.push(go);
6279
+ const r = document.querySelector('meta[name="generator"][content^="MediaWiki"]') !== null, e = document.querySelector('link[rel="EditURI"]')?.href?.split("?")[0];
6280
+ r && e && go(e);
6276
6281
  });
6277
- async function go() {
6282
+ async function go(r) {
6278
6283
  typeof window?.ipe?.stop == "function" && await window.ipe.stop();
6279
- const r = window.InPageEdit || {}, e = new ze({
6284
+ const e = window.InPageEdit || {}, t = new ze({
6280
6285
  apiConfigs: {
6281
- baseURL: window.mw?.util.wikiScript("api")
6286
+ baseURL: r
6282
6287
  },
6283
- legacyPreferences: r?.myPreferences || {}
6288
+ legacyPreferences: e?.myPreferences || {}
6284
6289
  });
6285
- if (window.InPageEdit = ze, window.ipe = e, await e.start(), typeof window?.mw?.hook == "function" && window.mw.hook("InPageEdit.ready").fire(e), Array.isArray(window.__IPE_MODULES__)) {
6286
- const t = [];
6290
+ if (window.InPageEdit = ze, window.ipe = t, await t.start(), window.RLQ.push(() => {
6291
+ mw.hook("InPageEdit.ready").fire(t);
6292
+ }), Array.isArray(window.__IPE_MODULES__)) {
6293
+ const n = [];
6287
6294
  for (; window.__IPE_MODULES__.length; )
6288
6295
  try {
6289
- const n = window.__IPE_MODULES__.shift();
6290
- typeof n == "function" && n?.(e), t.push(n);
6296
+ const i = window.__IPE_MODULES__.shift();
6297
+ typeof i == "function" && i?.(t), n.push(i);
6291
6298
  } catch {
6292
6299
  }
6293
6300
  window.__IPE_MODULES__ = {
6294
- push: (n) => {
6295
- typeof n == "function" && n(e), t.push(n);
6301
+ push: (i) => {
6302
+ typeof i == "function" && i(t), n.push(i);
6296
6303
  }
6297
- }, e.on("dispose", () => {
6298
- window.__IPE_MODULES__ = t;
6304
+ }, t.on("dispose", () => {
6305
+ window.__IPE_MODULES__ = n;
6299
6306
  });
6300
6307
  }
6301
- e.logger("AUTOLOAD").info(
6302
- `${Qt.HOME_URL}
6308
+ t.logger("AUTOLOAD").info(
6309
+ `
6303
6310
  ____ ____ ______ ___ __
6304
6311
  / _/___ / __ \\____ _____ ____ / ____/___/ (_) /_
6305
6312
  / // __ \\/ /_/ / __ \`/ __ \`/ _ \\/ __/ / __ / / __/
6306
6313
  _/ // / / / ____/ /_/ / /_/ / __/ /___/ /_/ / / /_
6307
6314
  /___/_/ /_/_/ \\__,_/\\__, /\\___/_____/\\__,_/_/\\__/
6308
- /____/ v` + e.version
6315
+ /____/ v` + t.version + `
6316
+ ` + Object.entries({
6317
+ "Wiki API Base": r,
6318
+ "Document Site": ct.HOME_URL,
6319
+ "Bug reporting": ct.GITHUB_URL
6320
+ }).map(([n, i]) => `- ${n}: ${i}`).join(`
6321
+ `)
6309
6322
  );
6310
6323
  }
6311
6324
  function yo(r, e) {
@@ -6313,14 +6326,14 @@ function yo(r, e) {
6313
6326
  return window[t] ? !1 : (window[t] = !0, e(), !0);
6314
6327
  }
6315
6328
  export {
6316
- Wr as $,
6329
+ Hr as $,
6317
6330
  Ro as B,
6318
6331
  $e as I,
6319
- $t as S,
6332
+ Pt as S,
6320
6333
  dn as W,
6321
6334
  ze as a,
6322
6335
  Pe as b,
6323
6336
  qi as c,
6324
- zt as m
6337
+ Wt as m
6325
6338
  };
6326
- //# sourceMappingURL=index-COlXHFRg.js.map
6339
+ //# sourceMappingURL=index-9Z4ds-WM.js.map