@wp-playground/blueprints 0.9.1 → 0.9.4

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 (3) hide show
  1. package/index.cjs +26 -26
  2. package/index.js +983 -983
  3. package/package.json +2 -2
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- const is = function() {
1
+ const ss = function() {
2
2
  var e;
3
3
  return typeof process < "u" && ((e = process.release) == null ? void 0 : e.name) === "node" ? "NODE" : typeof window < "u" ? "WEB" : (
4
4
  // @ts-ignore
@@ -6,7 +6,7 @@ const is = function() {
6
6
  self instanceof WorkerGlobalScope ? "WORKER" : "NODE"
7
7
  );
8
8
  }();
9
- if (is === "NODE") {
9
+ if (ss === "NODE") {
10
10
  let e = function(r) {
11
11
  return new Promise(function(s, n) {
12
12
  r.onload = r.onerror = function(i) {
@@ -23,10 +23,10 @@ if (is === "NODE") {
23
23
  };
24
24
  if (typeof File > "u") {
25
25
  class r extends Blob {
26
- constructor(n, i, l) {
26
+ constructor(n, i, c) {
27
27
  super(n);
28
28
  let a;
29
- l != null && l.lastModified && (a = /* @__PURE__ */ new Date()), (!a || isNaN(a.getFullYear())) && (a = /* @__PURE__ */ new Date()), this.lastModifiedDate = a, this.lastModified = a.getMilliseconds(), this.name = i || "";
29
+ c != null && c.lastModified && (a = /* @__PURE__ */ new Date()), (!a || isNaN(a.getFullYear())) && (a = /* @__PURE__ */ new Date()), this.lastModifiedDate = a, this.lastModified = a.getMilliseconds(), this.name = i || "";
30
30
  }
31
31
  }
32
32
  global.File = r;
@@ -57,7 +57,7 @@ if (is === "NODE") {
57
57
  });
58
58
  });
59
59
  }
60
- if (is === "NODE" && typeof CustomEvent > "u") {
60
+ if (ss === "NODE" && typeof CustomEvent > "u") {
61
61
  class e extends Event {
62
62
  constructor(r, s = {}) {
63
63
  super(r, s), this.detail = s.detail;
@@ -67,7 +67,7 @@ if (is === "NODE" && typeof CustomEvent > "u") {
67
67
  }
68
68
  globalThis.CustomEvent = e;
69
69
  }
70
- const os = [
70
+ const is = [
71
71
  "db.php",
72
72
  "plugins/akismet",
73
73
  "plugins/hello.php",
@@ -75,6 +75,7 @@ const os = [
75
75
  "mu-plugins/sqlite-database-integration",
76
76
  "mu-plugins/playground-includes",
77
77
  "mu-plugins/0-playground.php",
78
+ "mu-plugins/0-sqlite.php",
78
79
  /*
79
80
  * Listing core themes like that here isn't ideal, especially since
80
81
  * developers may actually want to use one of them.
@@ -87,18 +88,18 @@ const os = [
87
88
  "themes/twentytwentyfour",
88
89
  "themes/twentytwentyfive",
89
90
  "themes/twentytwentysix"
90
- ], as = Symbol("SleepFinished");
91
- function ti(e) {
91
+ ], os = Symbol("SleepFinished");
92
+ function Xs(e) {
92
93
  return new Promise((t) => {
93
- setTimeout(() => t(as), e);
94
+ setTimeout(() => t(os), e);
94
95
  });
95
96
  }
96
- class ri extends Error {
97
+ class ei extends Error {
97
98
  constructor() {
98
99
  super("Acquiring lock timed out");
99
100
  }
100
101
  }
101
- class ni {
102
+ class ti {
102
103
  constructor({ concurrency: t, timeout: r }) {
103
104
  this._running = 0, this.concurrency = t, this.timeout = r, this.queue = [];
104
105
  }
@@ -114,10 +115,10 @@ class ni {
114
115
  const t = new Promise((r) => {
115
116
  this.queue.push(r);
116
117
  });
117
- this.timeout !== void 0 ? await Promise.race([t, ti(this.timeout)]).then(
118
+ this.timeout !== void 0 ? await Promise.race([t, Xs(this.timeout)]).then(
118
119
  (r) => {
119
- if (r === as)
120
- throw new ri();
120
+ if (r === os)
121
+ throw new ei();
121
122
  }
122
123
  ) : await t;
123
124
  } else {
@@ -140,23 +141,23 @@ class ni {
140
141
  function ye(...e) {
141
142
  let t = e.join("/");
142
143
  const r = t[0] === "/", s = t.substring(t.length - 1) === "/";
143
- return t = ls(t), !t && !r && (t = "."), t && s && (t += "/"), t;
144
+ return t = cs(t), !t && !r && (t = "."), t && s && (t += "/"), t;
144
145
  }
145
- function cs(e) {
146
+ function as(e) {
146
147
  if (e === "/")
147
148
  return "/";
148
- e = ls(e);
149
+ e = cs(e);
149
150
  const t = e.lastIndexOf("/");
150
151
  return t === -1 ? "" : t === 0 ? "/" : e.substr(0, t);
151
152
  }
152
- function ls(e) {
153
+ function cs(e) {
153
154
  const t = e[0] === "/";
154
- return e = si(
155
+ return e = ri(
155
156
  e.split("/").filter((r) => !!r),
156
157
  !t
157
158
  ).join("/"), (t ? "/" : "") + e.replace(/\/$/, "");
158
159
  }
159
- function si(e, t) {
160
+ function ri(e, t) {
160
161
  let r = 0;
161
162
  for (let s = e.length - 1; s >= 0; s--) {
162
163
  const n = e[s];
@@ -167,18 +168,18 @@ function si(e, t) {
167
168
  e.unshift("..");
168
169
  return e;
169
170
  }
170
- function us(e = 36, t = "!@#$%^&*()_+=-[]/.,<>?") {
171
+ function ls(e = 36, t = "!@#$%^&*()_+=-[]/.,<>?") {
171
172
  const r = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" + t;
172
173
  let s = "";
173
174
  for (let n = e; n > 0; --n)
174
175
  s += r[Math.floor(Math.random() * r.length)];
175
176
  return s;
176
177
  }
177
- function ii() {
178
- return us(36, "-_");
178
+ function ni() {
179
+ return ls(36, "-_");
179
180
  }
180
181
  function ve(e) {
181
- return `json_decode(base64_decode('${oi(
182
+ return `json_decode(base64_decode('${si(
182
183
  JSON.stringify(e)
183
184
  )}'), true)`;
184
185
  }
@@ -188,23 +189,23 @@ function ur(e) {
188
189
  t[r] = ve(e[r]);
189
190
  return t;
190
191
  }
191
- function oi(e) {
192
- return ai(new TextEncoder().encode(e));
192
+ function si(e) {
193
+ return ii(new TextEncoder().encode(e));
193
194
  }
194
- function ai(e) {
195
+ function ii(e) {
195
196
  const t = String.fromCodePoint(...e);
196
197
  return btoa(t);
197
198
  }
198
- const ci = "playground-log", Dn = (e, ...t) => {
199
+ const oi = "playground-log", jn = (e, ...t) => {
199
200
  Te.dispatchEvent(
200
- new CustomEvent(ci, {
201
+ new CustomEvent(oi, {
201
202
  detail: {
202
203
  log: e,
203
204
  args: t
204
205
  }
205
206
  })
206
207
  );
207
- }, li = (e, ...t) => {
208
+ }, ai = (e, ...t) => {
208
209
  switch (typeof e.message == "string" ? e.message = Pr(e.message) : e.message.message && typeof e.message.message == "string" && (e.message.message = Pr(e.message.message)), e.severity) {
209
210
  case "Debug":
210
211
  console.debug(e.message, ...t);
@@ -224,22 +225,22 @@ const ci = "playground-log", Dn = (e, ...t) => {
224
225
  default:
225
226
  console.log(e.message, ...t);
226
227
  }
227
- }, ui = (e) => e instanceof Error ? [e.message, e.stack].join(`
228
- `) : JSON.stringify(e, null, 2), ds = [], An = (e) => {
229
- ds.push(e);
228
+ }, ci = (e) => e instanceof Error ? [e.message, e.stack].join(`
229
+ `) : JSON.stringify(e, null, 2), us = [], Dn = (e) => {
230
+ us.push(e);
230
231
  }, Er = (e) => {
231
232
  if (e.raw === !0)
232
- An(e.message);
233
+ Dn(e.message);
233
234
  else {
234
- const t = pi(
235
- typeof e.message == "object" ? ui(e.message) : e.message,
235
+ const t = di(
236
+ typeof e.message == "object" ? ci(e.message) : e.message,
236
237
  e.severity ?? "Info",
237
238
  e.prefix ?? "JavaScript"
238
239
  );
239
- An(t);
240
+ Dn(t);
240
241
  }
241
242
  };
242
- class di extends EventTarget {
243
+ class li extends EventTarget {
243
244
  // constructor
244
245
  constructor(t = []) {
245
246
  super(), this.handlers = t, this.fatalErrorEvent = "playground-fatal-error";
@@ -249,7 +250,7 @@ class di extends EventTarget {
249
250
  * @returns string[]
250
251
  */
251
252
  getLogs() {
252
- return this.handlers.includes(Er) ? [...ds] : (this.error(`Logs aren't stored because the logToMemory handler isn't registered.
253
+ return this.handlers.includes(Er) ? [...us] : (this.error(`Logs aren't stored because the logToMemory handler isn't registered.
253
254
  If you're using a custom logger instance, make sure to register logToMemory handler.
254
255
  `), []);
255
256
  }
@@ -351,14 +352,14 @@ class di extends EventTarget {
351
352
  );
352
353
  }
353
354
  }
354
- const fi = () => {
355
+ const ui = () => {
355
356
  try {
356
357
  if (process.env.NODE_ENV === "test")
357
- return [Er, Dn];
358
+ return [Er, jn];
358
359
  } catch {
359
360
  }
360
- return [Er, li, Dn];
361
- }, Te = new di(fi()), Pr = (e) => e.replace(/\t/g, ""), pi = (e, t, r) => {
361
+ return [Er, ai, jn];
362
+ }, Te = new li(ui()), Pr = (e) => e.replace(/\t/g, ""), di = (e, t, r) => {
362
363
  const s = /* @__PURE__ */ new Date(), n = new Intl.DateTimeFormat("en-GB", {
363
364
  year: "numeric",
364
365
  month: "short",
@@ -371,8 +372,8 @@ const fi = () => {
371
372
  hour12: !1,
372
373
  timeZone: "UTC",
373
374
  timeZoneName: "short"
374
- }).format(s), l = n + " " + i;
375
- return e = Pr(e), `[${l}] ${r} ${t}: ${e}`;
375
+ }).format(s), c = n + " " + i;
376
+ return e = Pr(e), `[${c}] ${r} ${t}: ${e}`;
376
377
  }, Dr = async (e, { pluginPath: t, pluginName: r }, s) => {
377
378
  s == null || s.tracker.setCaption(`Activating ${r || t}`);
378
379
  const n = await e.documentRoot, i = await e.run({
@@ -414,7 +415,7 @@ const fi = () => {
414
415
  throw Te.debug(i), new Error(
415
416
  `Plugin ${t} could not be activated – WordPress exited with no error. Sometimes, when $_SERVER or site options are not configured correctly, WordPress exits early with a 301 redirect. Inspect the "debug" logs in the console for more details`
416
417
  );
417
- }, fs = async (e, { themeFolderName: t }, r) => {
418
+ }, ds = async (e, { themeFolderName: t }, r) => {
418
419
  r == null || r.tracker.setCaption(`Activating ${t}`);
419
420
  const s = await e.documentRoot, n = `${s}/wp-content/themes/${t}`;
420
421
  if (!await e.fileExists(n))
@@ -449,16 +450,16 @@ const fi = () => {
449
450
  throw Te.debug(i), new Error(
450
451
  `Theme ${t} could not be activated – WordPress exited with no error. Sometimes, when $_SERVER or site options are not configured correctly, WordPress exits early with a 301 redirect. Inspect the "debug" logs in the console for more details`
451
452
  );
452
- }, hi = async (e, { code: t }) => await e.run({ code: t }), mi = async (e, { options: t }) => await e.run(t), ps = async (e, { path: t }) => {
453
+ }, fi = async (e, { code: t }) => await e.run({ code: t }), pi = async (e, { options: t }) => await e.run(t), fs = async (e, { path: t }) => {
453
454
  await e.unlink(t);
454
- }, yi = async (e, { sql: t }, r) => {
455
+ }, hi = async (e, { sql: t }, r) => {
455
456
  r == null || r.tracker.setCaption("Executing SQL Queries");
456
- const s = `/tmp/${ii()}.sql`;
457
+ const s = `/tmp/${ni()}.sql`;
457
458
  await e.writeFile(
458
459
  s,
459
460
  new Uint8Array(await t.arrayBuffer())
460
461
  );
461
- const n = await e.documentRoot, i = ur({ docroot: n, sqlFilename: s }), l = await e.run({
462
+ const n = await e.documentRoot, i = ur({ docroot: n, sqlFilename: s }), c = await e.run({
462
463
  code: `<?php
463
464
  require_once ${i.docroot} . '/wp-load.php';
464
465
 
@@ -480,7 +481,7 @@ const fi = () => {
480
481
  }
481
482
  `
482
483
  });
483
- return await ps(e, { path: s }), l;
484
+ return await fs(e, { path: s }), c;
484
485
  }, Sr = async (e, { request: t }) => {
485
486
  Te.warn(
486
487
  'Deprecated: The Blueprint step "request" is deprecated and will be removed in a future release.'
@@ -491,7 +492,7 @@ const fi = () => {
491
492
  `Request failed with status ${r.httpStatusCode}`
492
493
  );
493
494
  return r;
494
- }, gi = `<?php
495
+ }, mi = `<?php
495
496
 
496
497
  /**
497
498
  * Rewrites the wp-config.php file to ensure specific constants are defined
@@ -825,32 +826,32 @@ function skip_whitespace($tokens) {
825
826
  `, sr = async (e, { consts: t, method: r = "define-before-run" }) => {
826
827
  switch (r) {
827
828
  case "define-before-run":
828
- await $i(e, t);
829
+ await yi(e, t);
829
830
  break;
830
831
  case "rewrite-wp-config": {
831
- const s = await e.documentRoot, n = ye(s, "/wp-config.php"), i = await e.readFileAsText(n), l = await _i(
832
+ const s = await e.documentRoot, n = ye(s, "/wp-config.php"), i = await e.readFileAsText(n), c = await gi(
832
833
  e,
833
834
  i,
834
835
  t
835
836
  );
836
- await e.writeFile(n, l);
837
+ await e.writeFile(n, c);
837
838
  break;
838
839
  }
839
840
  default:
840
841
  throw new Error(`Invalid method: ${r}`);
841
842
  }
842
843
  };
843
- async function $i(e, t) {
844
+ async function yi(e, t) {
844
845
  for (const r in t)
845
846
  await e.defineConstant(r, t[r]);
846
847
  }
847
- async function _i(e, t, r) {
848
+ async function gi(e, t, r) {
848
849
  await e.writeFile("/tmp/code.php", t);
849
850
  const s = ur({
850
851
  consts: r
851
852
  });
852
853
  return await e.run({
853
- code: `${gi}
854
+ code: `${mi}
854
855
  $wp_config_path = '/tmp/code.php';
855
856
  $wp_config = file_get_contents($wp_config_path);
856
857
  $new_wp_config = rewrite_wp_config_to_define_constants($wp_config, ${s.consts});
@@ -859,7 +860,7 @@ async function _i(e, t, r) {
859
860
  }), await e.readFileAsText("/tmp/code.php");
860
861
  }
861
862
  const Tr = async (e, { username: t = "admin", password: r = "password" } = {}, s) => {
862
- var i, l, a;
863
+ var i, c, a;
863
864
  s == null || s.tracker.setCaption((s == null ? void 0 : s.initialCaption) || "Logging in"), await e.request({
864
865
  url: "/wp-login.php"
865
866
  });
@@ -872,14 +873,14 @@ const Tr = async (e, { username: t = "admin", password: r = "password" } = {}, s
872
873
  rememberme: "forever"
873
874
  }
874
875
  });
875
- if (!((a = (l = (i = n.headers) == null ? void 0 : i.location) == null ? void 0 : l[0]) != null && a.includes("/wp-admin/")))
876
+ if (!((a = (c = (i = n.headers) == null ? void 0 : i.location) == null ? void 0 : c[0]) != null && a.includes("/wp-admin/")))
876
877
  throw Te.warn("WordPress response was", {
877
878
  response: n,
878
879
  text: n.text
879
880
  }), new Error(
880
881
  `Failed to log in as ${t} with password ${r}`
881
882
  );
882
- }, hs = async (e, { options: t }) => {
883
+ }, ps = async (e, { options: t }) => {
883
884
  const r = await e.documentRoot;
884
885
  await e.run({
885
886
  code: `<?php
@@ -891,7 +892,7 @@ const Tr = async (e, { username: t = "admin", password: r = "password" } = {}, s
891
892
  echo "Success";
892
893
  `
893
894
  });
894
- }, vi = async (e, { meta: t, userId: r }) => {
895
+ }, $i = async (e, { meta: t, userId: r }) => {
895
896
  const s = await e.documentRoot;
896
897
  await e.run({
897
898
  code: `<?php
@@ -903,13 +904,13 @@ const Tr = async (e, { username: t = "admin", password: r = "password" } = {}, s
903
904
  `
904
905
  });
905
906
  };
906
- function ms(e) {
907
+ function hs(e) {
907
908
  return e.pathname.startsWith("/scope:");
908
909
  }
909
- function wi(e) {
910
- return ms(e) ? e.pathname.split("/")[1].split(":")[1] : null;
910
+ function _i(e) {
911
+ return hs(e) ? e.pathname.split("/")[1].split(":")[1] : null;
911
912
  }
912
- const bi = async (e) => {
913
+ const vi = async (e) => {
913
914
  var P;
914
915
  await sr(e, {
915
916
  consts: {
@@ -922,13 +923,13 @@ const bi = async (e) => {
922
923
  throw t.hostname === "localhost" && (b += " For development, you can set up a playground.test domain using the instructions at https://wordpress.github.io/wordpress-playground/contributing/code."), new Error(b);
923
924
  }
924
925
  const r = t.pathname.replace(/\/$/, "") + "/", s = `${t.protocol}//${t.hostname}${r}`;
925
- await hs(e, {
926
+ await ps(e, {
926
927
  options: {
927
928
  siteurl: s,
928
929
  home: s
929
930
  }
930
931
  }), await Tr(e, {});
931
- const n = await e.documentRoot, l = (await e.run({
932
+ const n = await e.documentRoot, c = (await e.run({
932
933
  code: `<?php
933
934
  define( 'WP_ADMIN', true );
934
935
  require_once(${ve(n)} . "/wp-load.php");
@@ -975,7 +976,7 @@ echo json_encode($deactivated_plugins);
975
976
  headers: {
976
977
  "Content-Type": "application/x-www-form-urlencoded"
977
978
  },
978
- body: Ei({
979
+ body: wi({
979
980
  _wpnonce: u,
980
981
  _wp_http_referer: r + "wp-admin/network.php",
981
982
  sitename: "My WordPress Website Sites",
@@ -1002,7 +1003,7 @@ echo json_encode($deactivated_plugins);
1002
1003
  PATH_CURRENT_SITE: r
1003
1004
  }
1004
1005
  });
1005
- const f = new URL(await e.absoluteUrl), y = ms(f) ? "scope:" + wi(f) : null;
1006
+ const f = new URL(await e.absoluteUrl), y = hs(f) ? "scope:" + _i(f) : null;
1006
1007
  await e.writeFile(
1007
1008
  "/internal/shared/preload/sunrise.php",
1008
1009
  `<?php
@@ -1020,39 +1021,39 @@ echo json_encode($deactivated_plugins);
1020
1021
  }
1021
1022
  `
1022
1023
  ), await Tr(e, {});
1023
- for (const b of l)
1024
+ for (const b of c)
1024
1025
  await Dr(e, {
1025
1026
  pluginPath: b
1026
1027
  });
1027
1028
  };
1028
- function Ei(e) {
1029
+ function wi(e) {
1029
1030
  return Object.keys(e).map(
1030
1031
  (t) => encodeURIComponent(t) + "=" + encodeURIComponent(e[t])
1031
1032
  ).join("&");
1032
1033
  }
1033
- const Pi = async (e, { fromPath: t, toPath: r }) => {
1034
+ const bi = async (e, { fromPath: t, toPath: r }) => {
1034
1035
  await e.writeFile(
1035
1036
  r,
1036
1037
  await e.readFileAsBuffer(t)
1037
1038
  );
1038
- }, Si = async (e, { fromPath: t, toPath: r }) => {
1039
+ }, Ei = async (e, { fromPath: t, toPath: r }) => {
1039
1040
  await e.mv(t, r);
1040
- }, Ti = async (e, { path: t }) => {
1041
+ }, Pi = async (e, { path: t }) => {
1041
1042
  await e.mkdir(t);
1042
- }, Ri = async (e, { path: t }) => {
1043
+ }, Si = async (e, { path: t }) => {
1043
1044
  await e.rmdir(t);
1044
- }, ys = async (e, { path: t, data: r }) => {
1045
+ }, ms = async (e, { path: t, data: r }) => {
1045
1046
  r instanceof File && (r = new Uint8Array(await r.arrayBuffer())), t.startsWith("/wordpress/wp-content/mu-plugins") && !await e.fileExists("/wordpress/wp-content/mu-plugins") && await e.mkdir("/wordpress/wp-content/mu-plugins"), await e.writeFile(t, r);
1046
- }, gs = async (e, { siteUrl: t }) => {
1047
+ }, ys = async (e, { siteUrl: t }) => {
1047
1048
  await sr(e, {
1048
1049
  consts: {
1049
1050
  WP_HOME: t,
1050
1051
  WP_SITEURL: t
1051
1052
  }
1052
1053
  });
1053
- }, ki = async (e, { file: t }, r) => {
1054
+ }, Ti = async (e, { file: t }, r) => {
1054
1055
  var n;
1055
- (n = r == null ? void 0 : r.tracker) == null || n.setCaption("Importing content"), await ys(e, {
1056
+ (n = r == null ? void 0 : r.tracker) == null || n.setCaption("Importing content"), await ms(e, {
1056
1057
  path: "/tmp/import.wxr",
1057
1058
  data: t
1058
1059
  });
@@ -1080,7 +1081,7 @@ const Pi = async (e, { fromPath: t, toPath: r }) => {
1080
1081
  $result = $importer->import( '/tmp/import.wxr' );
1081
1082
  `
1082
1083
  });
1083
- }, gr = "/tmp/file.zip", Oi = async (e, t, r) => {
1084
+ }, gr = "/tmp/file.zip", Ri = async (e, t, r) => {
1084
1085
  if (t instanceof File) {
1085
1086
  const n = t;
1086
1087
  t = gr, await e.writeFile(
@@ -1119,23 +1120,23 @@ const Pi = async (e, { fromPath: t, toPath: r }) => {
1119
1120
  );
1120
1121
  else if (!t)
1121
1122
  throw new Error("Either zipPath or zipFile must be provided");
1122
- await Oi(e, t || r, s);
1123
- }, Ni = async (e, { wordPressFilesZip: t, pathInZip: r = "" }) => {
1123
+ await Ri(e, t || r, s);
1124
+ }, ki = async (e, { wordPressFilesZip: t, pathInZip: r = "" }) => {
1124
1125
  const s = await e.documentRoot;
1125
1126
  let n = ye("/tmp", "import");
1126
1127
  await e.mkdir(n), await Ar(e, {
1127
1128
  zipFile: t,
1128
1129
  extractToPath: n
1129
1130
  }), n = ye(n, r);
1130
- const i = ye(n, "wp-content"), l = ye(s, "wp-content");
1131
- for (const f of os) {
1131
+ const i = ye(n, "wp-content"), c = ye(s, "wp-content");
1132
+ for (const f of is) {
1132
1133
  const y = ye(
1133
1134
  i,
1134
1135
  f
1135
1136
  );
1136
- await Mn(e, y);
1137
- const P = ye(l, f);
1138
- await e.fileExists(P) && (await e.mkdir(cs(y)), await e.mv(P, y));
1137
+ await An(e, y);
1138
+ const P = ye(c, f);
1139
+ await e.fileExists(P) && (await e.mkdir(as(y)), await e.mv(P, y));
1139
1140
  }
1140
1141
  const a = ye(
1141
1142
  n,
@@ -1148,11 +1149,11 @@ const Pi = async (e, { fromPath: t, toPath: r }) => {
1148
1149
  );
1149
1150
  const u = await e.listFiles(n);
1150
1151
  for (const f of u)
1151
- await Mn(e, ye(s, f)), await e.mv(
1152
+ await An(e, ye(s, f)), await e.mv(
1152
1153
  ye(n, f),
1153
1154
  ye(s, f)
1154
1155
  );
1155
- await e.rmdir(n), await gs(e, {
1156
+ await e.rmdir(n), await ys(e, {
1156
1157
  siteUrl: await e.absoluteUrl
1157
1158
  });
1158
1159
  const d = ve(
@@ -1165,21 +1166,21 @@ const Pi = async (e, { fromPath: t, toPath: r }) => {
1165
1166
  `
1166
1167
  });
1167
1168
  };
1168
- async function Mn(e, t) {
1169
+ async function An(e, t) {
1169
1170
  await e.fileExists(t) && (await e.isDir(t) ? await e.rmdir(t) : await e.unlink(t));
1170
1171
  }
1171
- async function Ci(e) {
1172
+ async function Oi(e) {
1172
1173
  const t = await e.request({
1173
1174
  url: "/wp-admin/export.php?download=true&content=all"
1174
1175
  });
1175
1176
  return new File([t.bytes], "export.xml");
1176
1177
  }
1177
- async function $s(e, {
1178
+ async function gs(e, {
1178
1179
  targetPath: t,
1179
1180
  zipFile: r,
1180
1181
  ifAlreadyInstalled: s = "overwrite"
1181
1182
  }) {
1182
- const i = r.name.replace(/\.zip$/, ""), l = ye(await e.documentRoot, "wp-content"), a = ye(l, us()), u = ye(a, "assets", i);
1183
+ const i = r.name.replace(/\.zip$/, ""), c = ye(await e.documentRoot, "wp-content"), a = ye(c, ls()), u = ye(a, "assets", i);
1183
1184
  await e.fileExists(u) && await e.rmdir(a, {
1184
1185
  recursive: !0
1185
1186
  }), await e.mkdir(a);
@@ -1230,10 +1231,10 @@ function dr(e) {
1230
1231
  const t = e.split(".").shift().replace(/-/g, " ");
1231
1232
  return t.charAt(0).toUpperCase() + t.slice(1).toLowerCase();
1232
1233
  }
1233
- const Ii = async (e, { pluginZipFile: t, ifAlreadyInstalled: r, options: s = {} }, n) => {
1234
- const i = t.name.split("/").pop() || "plugin.zip", l = dr(i);
1235
- n == null || n.tracker.setCaption(`Installing the ${l} plugin`);
1236
- const { assetFolderPath: a } = await $s(e, {
1234
+ const Ni = async (e, { pluginZipFile: t, ifAlreadyInstalled: r, options: s = {} }, n) => {
1235
+ const i = t.name.split("/").pop() || "plugin.zip", c = dr(i);
1236
+ n == null || n.tracker.setCaption(`Installing the ${c} plugin`);
1237
+ const { assetFolderPath: a } = await gs(e, {
1237
1238
  ifAlreadyInstalled: r,
1238
1239
  zipFile: t,
1239
1240
  targetPath: `${await e.documentRoot}/wp-content/plugins`
@@ -1242,26 +1243,26 @@ const Ii = async (e, { pluginZipFile: t, ifAlreadyInstalled: r, options: s = {}
1242
1243
  e,
1243
1244
  {
1244
1245
  pluginPath: a,
1245
- pluginName: l
1246
+ pluginName: c
1246
1247
  },
1247
1248
  n
1248
1249
  );
1249
- }, ji = async (e, { themeZipFile: t, ifAlreadyInstalled: r, options: s = {} }, n) => {
1250
+ }, Ci = async (e, { themeZipFile: t, ifAlreadyInstalled: r, options: s = {} }, n) => {
1250
1251
  const i = dr(t.name);
1251
1252
  n == null || n.tracker.setCaption(`Installing the ${i} theme`);
1252
- const { assetFolderName: l } = await $s(e, {
1253
+ const { assetFolderName: c } = await gs(e, {
1253
1254
  ifAlreadyInstalled: r,
1254
1255
  zipFile: t,
1255
1256
  targetPath: `${await e.documentRoot}/wp-content/themes`
1256
1257
  });
1257
- ("activate" in s ? s.activate : !0) && await fs(
1258
+ ("activate" in s ? s.activate : !0) && await ds(
1258
1259
  e,
1259
1260
  {
1260
- themeFolderName: l
1261
+ themeFolderName: c
1261
1262
  },
1262
1263
  n
1263
1264
  );
1264
- }, Di = async (e, t, r) => {
1265
+ }, Ii = async (e, t, r) => {
1265
1266
  var n;
1266
1267
  (n = r == null ? void 0 : r.tracker) == null || n.setCaption("Resetting WordPress data");
1267
1268
  const s = await e.documentRoot;
@@ -1285,7 +1286,7 @@ const Ii = async (e, { pluginZipFile: t, ifAlreadyInstalled: r, options: s = {}
1285
1286
  $GLOBALS['@pdo']->query("UPDATE SQLITE_SEQUENCE SET SEQ=0 WHERE NAME='wp_commentmeta'");
1286
1287
  `
1287
1288
  });
1288
- }, Ai = async (e, { options: t }) => {
1289
+ }, ji = async (e, { options: t }) => {
1289
1290
  await e.request({
1290
1291
  url: "/wp-admin/install.php?step=2",
1291
1292
  method: "POST",
@@ -1302,13 +1303,13 @@ const Ii = async (e, { pluginZipFile: t, ifAlreadyInstalled: r, options: s = {}
1302
1303
  admin_email: "admin@localhost.com"
1303
1304
  }
1304
1305
  });
1305
- }, Mi = async (e, { selfContained: t = !1 } = {}) => {
1306
+ }, Di = async (e, { selfContained: t = !1 } = {}) => {
1306
1307
  const r = "/tmp/wordpress-playground.zip", s = await e.documentRoot, n = ye(s, "wp-content");
1307
- let i = os;
1308
+ let i = is;
1308
1309
  t && (i = i.filter((u) => !u.startsWith("themes/twenty")).filter(
1309
1310
  (u) => u !== "mu-plugins/sqlite-database-integration"
1310
1311
  ));
1311
- const l = ur({
1312
+ const c = ur({
1312
1313
  zipPath: r,
1313
1314
  wpContentPath: n,
1314
1315
  documentRoot: s,
@@ -1319,17 +1320,17 @@ const Ii = async (e, { pluginZipFile: t, ifAlreadyInstalled: r, options: s = {}
1319
1320
  [ye(s, "wp-config.php")]: "wp-config.php"
1320
1321
  } : {}
1321
1322
  });
1322
- await qi(
1323
+ await Mi(
1323
1324
  e,
1324
- `zipDir(${l.wpContentPath}, ${l.zipPath}, array(
1325
- 'exclude_paths' => ${l.exceptPaths},
1326
- 'zip_root' => ${l.documentRoot},
1327
- 'additional_paths' => ${l.additionalPaths}
1325
+ `zipDir(${c.wpContentPath}, ${c.zipPath}, array(
1326
+ 'exclude_paths' => ${c.exceptPaths},
1327
+ 'zip_root' => ${c.documentRoot},
1328
+ 'additional_paths' => ${c.additionalPaths}
1328
1329
  ));`
1329
1330
  );
1330
1331
  const a = await e.readFileAsBuffer(r);
1331
1332
  return e.unlink(r), a;
1332
- }, Fi = `<?php
1333
+ }, Ai = `<?php
1333
1334
 
1334
1335
  function zipDir($root, $output, $options = array())
1335
1336
  {
@@ -1389,16 +1390,16 @@ function join_paths()
1389
1390
  return preg_replace('#/+#', '/', join('/', $paths));
1390
1391
  }
1391
1392
  `;
1392
- async function qi(e, t) {
1393
+ async function Mi(e, t) {
1393
1394
  return await e.run({
1394
- code: Fi + t
1395
+ code: Ai + t
1395
1396
  });
1396
1397
  }
1397
- const Li = async (e, { command: t, wpCliPath: r = "/tmp/wp-cli.phar" }) => {
1398
+ const Fi = async (e, { command: t, wpCliPath: r = "/tmp/wp-cli.phar" }) => {
1398
1399
  if (!await e.fileExists(r))
1399
1400
  throw new Error(`wp-cli.phar not found at ${r}`);
1400
1401
  let s;
1401
- if (typeof t == "string" ? (t = t.trim(), s = Ui(t)) : s = t, s.shift() !== "wp")
1402
+ if (typeof t == "string" ? (t = t.trim(), s = qi(t)) : s = t, s.shift() !== "wp")
1402
1403
  throw new Error('The first argument must be "wp".');
1403
1404
  await e.writeFile("/tmp/stdout", ""), await e.writeFile("/tmp/stderr", ""), await e.writeFile(
1404
1405
  "/wordpress/run-cli.php",
@@ -1433,55 +1434,55 @@ const Li = async (e, { command: t, wpCliPath: r = "/tmp/wp-cli.phar" }) => {
1433
1434
  throw new Error(i.errors);
1434
1435
  return i;
1435
1436
  };
1436
- function Ui(e) {
1437
+ function qi(e) {
1437
1438
  let s = 0, n = "";
1438
1439
  const i = [];
1439
- let l = "";
1440
+ let c = "";
1440
1441
  for (let a = 0; a < e.length; a++) {
1441
1442
  const u = e[a];
1442
- s === 0 ? u === '"' || u === "'" ? (s = 1, n = u) : u.match(/\s/) ? (l && i.push(l), l = "") : l += u : s === 1 && (u === "\\" ? (a++, l += e[a]) : u === n ? (s = 0, n = "") : l += u);
1443
+ s === 0 ? u === '"' || u === "'" ? (s = 1, n = u) : u.match(/\s/) ? (c && i.push(c), c = "") : c += u : s === 1 && (u === "\\" ? (a++, c += e[a]) : u === n ? (s = 0, n = "") : c += u);
1443
1444
  }
1444
- return l && i.push(l), i;
1445
+ return c && i.push(c), i;
1445
1446
  }
1446
- const Vi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1447
+ const Li = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1447
1448
  __proto__: null,
1448
1449
  activatePlugin: Dr,
1449
- activateTheme: fs,
1450
- cp: Pi,
1451
- defineSiteUrl: gs,
1450
+ activateTheme: ds,
1451
+ cp: bi,
1452
+ defineSiteUrl: ys,
1452
1453
  defineWpConfigConsts: sr,
1453
- enableMultisite: bi,
1454
- exportWXR: Ci,
1455
- importWordPressFiles: Ni,
1456
- importWxr: ki,
1457
- installPlugin: Ii,
1458
- installTheme: ji,
1454
+ enableMultisite: vi,
1455
+ exportWXR: Oi,
1456
+ importWordPressFiles: ki,
1457
+ importWxr: Ti,
1458
+ installPlugin: Ni,
1459
+ installTheme: Ci,
1459
1460
  login: Tr,
1460
- mkdir: Ti,
1461
- mv: Si,
1461
+ mkdir: Pi,
1462
+ mv: Ei,
1462
1463
  request: Sr,
1463
- resetData: Di,
1464
- rm: ps,
1465
- rmdir: Ri,
1466
- runPHP: hi,
1467
- runPHPWithOptions: mi,
1468
- runSql: yi,
1469
- runWpInstallationWizard: Ai,
1470
- setSiteOptions: hs,
1464
+ resetData: Ii,
1465
+ rm: fs,
1466
+ rmdir: Si,
1467
+ runPHP: fi,
1468
+ runPHPWithOptions: pi,
1469
+ runSql: hi,
1470
+ runWpInstallationWizard: ji,
1471
+ setSiteOptions: ps,
1471
1472
  unzip: Ar,
1472
- updateUserMeta: vi,
1473
- wpCLI: Li,
1474
- writeFile: ys,
1475
- zipWpContent: Mi
1476
- }, Symbol.toStringTag, { value: "Module" })), zi = 5 * 1024 * 1024;
1477
- function Wi(e, t) {
1478
- const r = e.headers.get("content-length") || "", s = parseInt(r, 10) || zi;
1479
- function n(i, l) {
1473
+ updateUserMeta: $i,
1474
+ wpCLI: Fi,
1475
+ writeFile: ms,
1476
+ zipWpContent: Di
1477
+ }, Symbol.toStringTag, { value: "Module" })), Ui = 5 * 1024 * 1024;
1478
+ function Vi(e, t) {
1479
+ const r = e.headers.get("content-length") || "", s = parseInt(r, 10) || Ui;
1480
+ function n(i, c) {
1480
1481
  t(
1481
1482
  new CustomEvent("progress", {
1482
1483
  detail: {
1483
1484
  loaded: i,
1484
- total: l
1485
+ total: c
1485
1486
  }
1486
1487
  })
1487
1488
  );
@@ -1493,11 +1494,11 @@ function Wi(e, t) {
1493
1494
  i.close();
1494
1495
  return;
1495
1496
  }
1496
- const l = e.body.getReader();
1497
+ const c = e.body.getReader();
1497
1498
  let a = 0;
1498
1499
  for (; ; )
1499
1500
  try {
1500
- const { done: u, value: d } = await l.read();
1501
+ const { done: u, value: d } = await c.read();
1501
1502
  if (d && (a += d.byteLength), u) {
1502
1503
  n(a, a), i.close();
1503
1504
  break;
@@ -1762,7 +1763,7 @@ const ir = {
1762
1763
  75: "Cross-device link.",
1763
1764
  76: "Extension: Capabilities insufficient."
1764
1765
  };
1765
- function Bi(e) {
1766
+ function zi(e) {
1766
1767
  const t = typeof e == "object" ? e == null ? void 0 : e.errno : null;
1767
1768
  if (t in ir)
1768
1769
  return ir[t];
@@ -1770,13 +1771,13 @@ function Bi(e) {
1770
1771
  function He(e = "") {
1771
1772
  return function(r, s, n) {
1772
1773
  const i = n.value;
1773
- n.value = function(...l) {
1774
+ n.value = function(...c) {
1774
1775
  try {
1775
- return i.apply(this, l);
1776
+ return i.apply(this, c);
1776
1777
  } catch (a) {
1777
1778
  const u = typeof a == "object" ? a == null ? void 0 : a.errno : null;
1778
1779
  if (u in ir) {
1779
- const d = ir[u], f = typeof l[1] == "string" ? l[1] : null, y = f !== null ? e.replaceAll("{path}", f) : e;
1780
+ const d = ir[u], f = typeof c[1] == "string" ? c[1] : null, y = f !== null ? e.replaceAll("{path}", f) : e;
1780
1781
  throw new Error(`${y}: ${d}`, {
1781
1782
  cause: a
1782
1783
  });
@@ -1786,10 +1787,10 @@ function He(e = "") {
1786
1787
  };
1787
1788
  };
1788
1789
  }
1789
- var Hi = Object.defineProperty, Gi = Object.getOwnPropertyDescriptor, Ge = (e, t, r, s) => {
1790
- for (var n = s > 1 ? void 0 : s ? Gi(t, r) : t, i = e.length - 1, l; i >= 0; i--)
1791
- (l = e[i]) && (n = (s ? l(t, r, n) : l(n)) || n);
1792
- return s && n && Hi(t, r, n), n;
1790
+ var Wi = Object.defineProperty, Bi = Object.getOwnPropertyDescriptor, Ge = (e, t, r, s) => {
1791
+ for (var n = s > 1 ? void 0 : s ? Bi(t, r) : t, i = e.length - 1, c; i >= 0; i--)
1792
+ (c = e[i]) && (n = (s ? c(t, r, n) : c(n)) || n);
1793
+ return s && n && Wi(t, r, n), n;
1793
1794
  };
1794
1795
  const xe = class je {
1795
1796
  static readFileAsText(t, r) {
@@ -1813,10 +1814,10 @@ const xe = class je {
1813
1814
  */
1814
1815
  static mv(t, r, s) {
1815
1816
  try {
1816
- const n = t.lookupPath(r).node.mount, i = je.fileExists(t, s) ? t.lookupPath(s).node.mount : t.lookupPath(cs(s)).node.mount;
1817
+ const n = t.lookupPath(r).node.mount, i = je.fileExists(t, s) ? t.lookupPath(s).node.mount : t.lookupPath(as(s)).node.mount;
1817
1818
  n.mountpoint !== i.mountpoint ? (je.copyRecursive(t, r, s), je.rmdir(t, r, { recursive: !0 })) : t.rename(r, s);
1818
1819
  } catch (n) {
1819
- const i = Bi(n);
1820
+ const i = zi(n);
1820
1821
  throw i ? new Error(
1821
1822
  `Could not move ${r} to ${s}: ${i}`,
1822
1823
  {
@@ -1840,7 +1841,7 @@ const xe = class je {
1840
1841
  );
1841
1842
  if (s.prependPath) {
1842
1843
  const i = r.replace(/\/$/, "");
1843
- return n.map((l) => `${i}/${l}`);
1844
+ return n.map((c) => `${i}/${c}`);
1844
1845
  }
1845
1846
  return n;
1846
1847
  } catch (n) {
@@ -1865,13 +1866,13 @@ const xe = class je {
1865
1866
  if (t.isDir(n.mode)) {
1866
1867
  t.mkdirTree(s);
1867
1868
  const i = t.readdir(r).filter(
1868
- (l) => l !== "." && l !== ".."
1869
+ (c) => c !== "." && c !== ".."
1869
1870
  );
1870
- for (const l of i)
1871
+ for (const c of i)
1871
1872
  je.copyRecursive(
1872
1873
  t,
1873
- ye(r, l),
1874
- ye(s, l)
1874
+ ye(r, c),
1875
+ ye(s, c)
1875
1876
  );
1876
1877
  } else
1877
1878
  t.writeFile(s, t.readFile(r));
@@ -1911,8 +1912,8 @@ Ge([
1911
1912
  var e;
1912
1913
  return typeof process < "u" && ((e = process.release) == null ? void 0 : e.name) === "node" ? "NODE" : typeof window < "u" ? "WEB" : typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope ? "WORKER" : "NODE";
1913
1914
  })();
1914
- var xi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
1915
- function Ki(e) {
1915
+ var Hi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
1916
+ function Gi(e) {
1916
1917
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1917
1918
  }
1918
1919
  ReadableStream.prototype[Symbol.asyncIterator] || (ReadableStream.prototype[Symbol.asyncIterator] = async function* () {
@@ -1929,7 +1930,7 @@ ReadableStream.prototype[Symbol.asyncIterator] || (ReadableStream.prototype[Symb
1929
1930
  }
1930
1931
  }, ReadableStream.prototype.iterate = // @ts-ignore
1931
1932
  ReadableStream.prototype[Symbol.asyncIterator]);
1932
- const _s = [
1933
+ const $s = [
1933
1934
  "8.3",
1934
1935
  "8.2",
1935
1936
  "8.1",
@@ -1939,23 +1940,23 @@ const _s = [
1939
1940
  "7.2",
1940
1941
  "7.1",
1941
1942
  "7.0"
1942
- ], Ji = _s[0], vs = [
1943
+ ], xi = $s[0], _s = [
1943
1944
  "iconv",
1944
1945
  "mbstring",
1945
1946
  "xml-bundle",
1946
1947
  "gd"
1947
- ], Fn = {
1948
- "kitchen-sink": vs,
1948
+ ], Mn = {
1949
+ "kitchen-sink": _s,
1949
1950
  light: []
1950
- }, Qi = [
1951
+ }, Ki = [
1951
1952
  "vfs",
1952
1953
  "literal",
1953
1954
  "wordpress.org/themes",
1954
1955
  "wordpress.org/plugins",
1955
1956
  "url"
1956
1957
  ];
1957
- function Zi(e) {
1958
- return e && typeof e == "object" && typeof e.resource == "string" && Qi.includes(e.resource);
1958
+ function Ji(e) {
1959
+ return e && typeof e == "object" && typeof e.resource == "string" && Ki.includes(e.resource);
1959
1960
  }
1960
1961
  class yt {
1961
1962
  /**
@@ -1969,24 +1970,24 @@ class yt {
1969
1970
  let n;
1970
1971
  switch (t.resource) {
1971
1972
  case "vfs":
1972
- n = new Yi(t, s);
1973
+ n = new Qi(t, s);
1973
1974
  break;
1974
1975
  case "literal":
1975
- n = new Xi(t, s);
1976
+ n = new Zi(t, s);
1976
1977
  break;
1977
1978
  case "wordpress.org/themes":
1978
- n = new ro(t, s);
1979
+ n = new eo(t, s);
1979
1980
  break;
1980
1981
  case "wordpress.org/plugins":
1981
- n = new no(t, s);
1982
+ n = new to(t, s);
1982
1983
  break;
1983
1984
  case "url":
1984
- n = new to(t, s);
1985
+ n = new Xi(t, s);
1985
1986
  break;
1986
1987
  default:
1987
1988
  throw new Error(`Invalid resource: ${t}`);
1988
1989
  }
1989
- return n = new so(n), r && (n = new io(n, r)), n;
1990
+ return n = new ro(n), r && (n = new no(n, r)), n;
1990
1991
  }
1991
1992
  setPlayground(t) {
1992
1993
  this.playground = t;
@@ -1996,7 +1997,7 @@ class yt {
1996
1997
  return !1;
1997
1998
  }
1998
1999
  }
1999
- class Yi extends yt {
2000
+ class Qi extends yt {
2000
2001
  /**
2001
2002
  * Creates a new instance of `VFSResource`.
2002
2003
  * @param playground The playground client.
@@ -2019,7 +2020,7 @@ class Yi extends yt {
2019
2020
  return this.resource.path.split("/").pop() || "";
2020
2021
  }
2021
2022
  }
2022
- class Xi extends yt {
2023
+ class Zi extends yt {
2023
2024
  /**
2024
2025
  * Creates a new instance of `LiteralResource`.
2025
2026
  * @param resource The literal reference.
@@ -2055,9 +2056,9 @@ class Fr extends yt {
2055
2056
  let n = await fetch(t);
2056
2057
  if (!n.ok)
2057
2058
  throw new Error(`Could not download "${t}"`);
2058
- if (n = await Wi(
2059
+ if (n = await Vi(
2059
2060
  n,
2060
- ((s = this.progress) == null ? void 0 : s.loadingListener) ?? eo
2061
+ ((s = this.progress) == null ? void 0 : s.loadingListener) ?? Yi
2061
2062
  ), n.status !== 200)
2062
2063
  throw new Error(`Could not download "${t}"`);
2063
2064
  return new File([await n.blob()], this.name);
@@ -2111,9 +2112,9 @@ class Fr extends yt {
2111
2112
  return !0;
2112
2113
  }
2113
2114
  }
2114
- const eo = () => {
2115
+ const Yi = () => {
2115
2116
  };
2116
- class to extends Fr {
2117
+ class Xi extends Fr {
2117
2118
  /**
2118
2119
  * Creates a new instance of `UrlResource`.
2119
2120
  * @param resource The URL reference.
@@ -2131,7 +2132,7 @@ class to extends Fr {
2131
2132
  return this.resource.caption ?? super.caption;
2132
2133
  }
2133
2134
  }
2134
- class ro extends Fr {
2135
+ class eo extends Fr {
2135
2136
  constructor(t, r) {
2136
2137
  super(r), this.resource = t;
2137
2138
  }
@@ -2139,10 +2140,10 @@ class ro extends Fr {
2139
2140
  return dr(this.resource.slug);
2140
2141
  }
2141
2142
  getURL() {
2142
- return `https://downloads.wordpress.org/theme/${ws(this.resource.slug)}`;
2143
+ return `https://downloads.wordpress.org/theme/${vs(this.resource.slug)}`;
2143
2144
  }
2144
2145
  }
2145
- class no extends Fr {
2146
+ class to extends Fr {
2146
2147
  constructor(t, r) {
2147
2148
  super(r), this.resource = t;
2148
2149
  }
@@ -2152,13 +2153,13 @@ class no extends Fr {
2152
2153
  }
2153
2154
  /** @inheritDoc */
2154
2155
  getURL() {
2155
- return `https://downloads.wordpress.org/plugin/${ws(this.resource.slug)}`;
2156
+ return `https://downloads.wordpress.org/plugin/${vs(this.resource.slug)}`;
2156
2157
  }
2157
2158
  }
2158
- function ws(e) {
2159
+ function vs(e) {
2159
2160
  return !e || e.endsWith(".zip") ? e : e + ".latest-stable.zip";
2160
2161
  }
2161
- class bs extends yt {
2162
+ class ws extends yt {
2162
2163
  constructor(t) {
2163
2164
  super(), this.resource = t;
2164
2165
  }
@@ -2187,13 +2188,13 @@ class bs extends yt {
2187
2188
  return this.resource.isAsync;
2188
2189
  }
2189
2190
  }
2190
- class so extends bs {
2191
+ class ro extends ws {
2191
2192
  /** @inheritDoc */
2192
2193
  async resolve() {
2193
2194
  return this.promise || (this.promise = super.resolve()), this.promise;
2194
2195
  }
2195
2196
  }
2196
- class io extends bs {
2197
+ class no extends ws {
2197
2198
  constructor(t, r) {
2198
2199
  super(t), this.semaphore = r;
2199
2200
  }
@@ -2202,7 +2203,7 @@ class io extends bs {
2202
2203
  return this.isAsync ? this.semaphore.run(() => super.resolve()) : super.resolve();
2203
2204
  }
2204
2205
  }
2205
- var Rr = { exports: {} }, Es = {}, Ze = {}, ut = {}, Ut = {}, ee = {}, qt = {};
2206
+ var Rr = { exports: {} }, bs = {}, Ze = {}, ut = {}, Ut = {}, ee = {}, qt = {};
2206
2207
  (function(e) {
2207
2208
  Object.defineProperty(e, "__esModule", { value: !0 }), e.regexpCode = e.getEsmExportName = e.getProperty = e.safeStringify = e.stringify = e.strConcat = e.addCodeArg = e.str = e._ = e.nil = e._Code = e.Name = e.IDENTIFIER = e._CodeOrName = void 0;
2208
2209
  class t {
@@ -2257,14 +2258,14 @@ var Rr = { exports: {} }, Es = {}, Ze = {}, ut = {}, Ut = {}, ee = {}, qt = {};
2257
2258
  }
2258
2259
  e._ = n;
2259
2260
  const i = new s("+");
2260
- function l(g, ...v) {
2261
+ function c(g, ...v) {
2261
2262
  const T = [b(g[0])];
2262
2263
  let j = 0;
2263
2264
  for (; j < v.length; )
2264
2265
  T.push(i), a(T, v[j]), T.push(i, b(g[++j]));
2265
2266
  return u(T), new s(T);
2266
2267
  }
2267
- e.str = l;
2268
+ e.str = c;
2268
2269
  function a(g, v) {
2269
2270
  v instanceof s ? g.push(...v._items) : v instanceof r ? g.push(v) : g.push(y(v));
2270
2271
  }
@@ -2294,7 +2295,7 @@ var Rr = { exports: {} }, Es = {}, Ze = {}, ut = {}, Ut = {}, ee = {}, qt = {};
2294
2295
  return `"${g}${v.slice(1)}`;
2295
2296
  }
2296
2297
  function f(g, v) {
2297
- return v.emptyStr() ? g : g.emptyStr() ? v : l`${g}${v}`;
2298
+ return v.emptyStr() ? g : g.emptyStr() ? v : c`${g}${v}`;
2298
2299
  }
2299
2300
  e.strConcat = f;
2300
2301
  function y(g) {
@@ -2371,10 +2372,10 @@ var kr = {};
2371
2372
  }
2372
2373
  }
2373
2374
  e.ValueScopeName = i;
2374
- const l = (0, t._)`\n`;
2375
+ const c = (0, t._)`\n`;
2375
2376
  class a extends n {
2376
2377
  constructor(d) {
2377
- super(d), this._values = {}, this._scope = d.scope, this.opts = { ...d, _n: d.lines ? l : t.nil };
2378
+ super(d), this._values = {}, this._scope = d.scope, this.opts = { ...d, _n: d.lines ? c : t.nil };
2378
2379
  }
2379
2380
  get() {
2380
2381
  return this._scope;
@@ -2494,7 +2495,7 @@ var kr = {};
2494
2495
  return this;
2495
2496
  }
2496
2497
  }
2497
- class l extends i {
2498
+ class c extends i {
2498
2499
  constructor(o, h, D) {
2499
2500
  super(), this.varKind = o, this.name = h, this.rhs = D;
2500
2501
  }
@@ -2779,7 +2780,7 @@ var kr = {};
2779
2780
  }
2780
2781
  _def(o, h, D, V) {
2781
2782
  const z = this._scope.toName(h);
2782
- return D !== void 0 && V && (this._constants[z.str] = D), this._leafNode(new l(o, z, D)), z;
2783
+ return D !== void 0 && V && (this._constants[z.str] = D), this._leafNode(new c(o, z, D)), z;
2783
2784
  }
2784
2785
  // `const` declaration (`var` in es5 mode)
2785
2786
  const(o, h, D) {
@@ -3015,7 +3016,7 @@ var ne = {};
3015
3016
  }
3016
3017
  e.toHash = s;
3017
3018
  function n(S, I) {
3018
- return typeof I == "boolean" ? I : Object.keys(I).length === 0 ? !0 : (i(S, I), !l(I, S.self.RULES.all));
3019
+ return typeof I == "boolean" ? I : Object.keys(I).length === 0 ? !0 : (i(S, I), !c(I, S.self.RULES.all));
3019
3020
  }
3020
3021
  e.alwaysValidSchema = n;
3021
3022
  function i(S, I = S.schema) {
@@ -3027,7 +3028,7 @@ var ne = {};
3027
3028
  J[ie] || F(S, `unknown keyword: "${ie}"`);
3028
3029
  }
3029
3030
  e.checkUnknownRules = i;
3030
- function l(S, I) {
3031
+ function c(S, I) {
3031
3032
  if (typeof S == "boolean")
3032
3033
  return !S;
3033
3034
  for (const q in S)
@@ -3035,7 +3036,7 @@ var ne = {};
3035
3036
  return !0;
3036
3037
  return !1;
3037
3038
  }
3038
- e.schemaHasRules = l;
3039
+ e.schemaHasRules = c;
3039
3040
  function a(S, I) {
3040
3041
  if (typeof S == "boolean")
3041
3042
  return !S;
@@ -3145,7 +3146,7 @@ var ne = {};
3145
3146
  })(ne);
3146
3147
  var Ke = {};
3147
3148
  Object.defineProperty(Ke, "__esModule", { value: !0 });
3148
- const Se = ee, oo = {
3149
+ const Se = ee, so = {
3149
3150
  // validation function arguments
3150
3151
  data: new Se.Name("data"),
3151
3152
  // args passed from referencing schema
@@ -3168,7 +3169,7 @@ const Se = ee, oo = {
3168
3169
  jsonLen: new Se.Name("jsonLen"),
3169
3170
  jsonPart: new Se.Name("jsonPart")
3170
3171
  };
3171
- Ke.default = oo;
3172
+ Ke.default = so;
3172
3173
  (function(e) {
3173
3174
  Object.defineProperty(e, "__esModule", { value: !0 }), e.extendErrors = e.resetErrorsCount = e.reportExtraError = e.reportError = e.keyword$DataError = e.keywordError = void 0;
3174
3175
  const t = ee, r = ne, s = Ke;
@@ -3187,10 +3188,10 @@ Ke.default = oo;
3187
3188
  u(j, I), F || S || d(T, s.default.vErrors);
3188
3189
  }
3189
3190
  e.reportExtraError = i;
3190
- function l(w, g) {
3191
+ function c(w, g) {
3191
3192
  w.assign(s.default.errors, g), w.if((0, t._)`${s.default.vErrors} !== null`, () => w.if(g, () => w.assign((0, t._)`${s.default.vErrors}.length`, g), () => w.assign(s.default.vErrors, null)));
3192
3193
  }
3193
- e.resetErrorsCount = l;
3194
+ e.resetErrorsCount = c;
3194
3195
  function a({ gen: w, keyword: g, schemaValue: v, data: T, errsCount: j, it: F }) {
3195
3196
  if (j === void 0)
3196
3197
  throw new Error("ajv implementation error");
@@ -3241,25 +3242,25 @@ Ke.default = oo;
3241
3242
  T.push([f.keyword, j], [f.params, typeof g == "function" ? g(w) : g || (0, t._)`{}`]), q.messages && T.push([f.message, typeof v == "function" ? v(w) : v]), q.verbose && T.push([f.schema, S], [f.parentSchema, (0, t._)`${J}${ie}`], [s.default.data, F]), G && T.push([f.propertyName, G]);
3242
3243
  }
3243
3244
  })(Ut);
3244
- var qn;
3245
- function ao() {
3246
- if (qn)
3245
+ var Fn;
3246
+ function io() {
3247
+ if (Fn)
3247
3248
  return ut;
3248
- qn = 1, Object.defineProperty(ut, "__esModule", { value: !0 }), ut.boolOrEmptySchema = ut.topBoolOrEmptySchema = void 0;
3249
+ Fn = 1, Object.defineProperty(ut, "__esModule", { value: !0 }), ut.boolOrEmptySchema = ut.topBoolOrEmptySchema = void 0;
3249
3250
  const e = Ut, t = ee, r = Ke, s = {
3250
3251
  message: "boolean schema is false"
3251
3252
  };
3252
3253
  function n(a) {
3253
3254
  const { gen: u, schema: d, validateName: f } = a;
3254
- d === !1 ? l(a, !1) : typeof d == "object" && d.$async === !0 ? u.return(r.default.data) : (u.assign((0, t._)`${f}.errors`, null), u.return(!0));
3255
+ d === !1 ? c(a, !1) : typeof d == "object" && d.$async === !0 ? u.return(r.default.data) : (u.assign((0, t._)`${f}.errors`, null), u.return(!0));
3255
3256
  }
3256
3257
  ut.topBoolOrEmptySchema = n;
3257
3258
  function i(a, u) {
3258
3259
  const { gen: d, schema: f } = a;
3259
- f === !1 ? (d.var(u, !1), l(a)) : d.var(u, !0);
3260
+ f === !1 ? (d.var(u, !1), c(a)) : d.var(u, !0);
3260
3261
  }
3261
3262
  ut.boolOrEmptySchema = i;
3262
- function l(a, u) {
3263
+ function c(a, u) {
3263
3264
  const { gen: d, data: f } = a, y = {
3264
3265
  gen: d,
3265
3266
  keyword: "false schema",
@@ -3277,12 +3278,12 @@ function ao() {
3277
3278
  var Lt = {}, ht = {};
3278
3279
  Object.defineProperty(ht, "__esModule", { value: !0 });
3279
3280
  ht.getRules = ht.isJSONType = void 0;
3280
- const co = ["string", "number", "integer", "boolean", "null", "object", "array"], lo = new Set(co);
3281
- function uo(e) {
3282
- return typeof e == "string" && lo.has(e);
3281
+ const oo = ["string", "number", "integer", "boolean", "null", "object", "array"], ao = new Set(oo);
3282
+ function co(e) {
3283
+ return typeof e == "string" && ao.has(e);
3283
3284
  }
3284
- ht.isJSONType = uo;
3285
- function fo() {
3285
+ ht.isJSONType = co;
3286
+ function lo() {
3286
3287
  const e = {
3287
3288
  number: { type: "number", rules: [] },
3288
3289
  string: { type: "string", rules: [] },
@@ -3297,31 +3298,34 @@ function fo() {
3297
3298
  keywords: {}
3298
3299
  };
3299
3300
  }
3300
- ht.getRules = fo;
3301
- var Xe = {};
3302
- Object.defineProperty(Xe, "__esModule", { value: !0 });
3303
- Xe.shouldUseRule = Xe.shouldUseGroup = Xe.schemaHasRulesForType = void 0;
3304
- function po({ schema: e, self: t }, r) {
3305
- const s = t.RULES.types[r];
3306
- return s && s !== !0 && Ps(e, s);
3307
- }
3308
- Xe.schemaHasRulesForType = po;
3309
- function Ps(e, t) {
3310
- return t.rules.some((r) => Ss(e, r));
3311
- }
3312
- Xe.shouldUseGroup = Ps;
3313
- function Ss(e, t) {
3314
- var r;
3315
- return e[t.keyword] !== void 0 || ((r = t.definition.implements) === null || r === void 0 ? void 0 : r.some((s) => e[s] !== void 0));
3301
+ ht.getRules = lo;
3302
+ var Ye = {}, qn;
3303
+ function Es() {
3304
+ if (qn)
3305
+ return Ye;
3306
+ qn = 1, Object.defineProperty(Ye, "__esModule", { value: !0 }), Ye.shouldUseRule = Ye.shouldUseGroup = Ye.schemaHasRulesForType = void 0;
3307
+ function e({ schema: s, self: n }, i) {
3308
+ const c = n.RULES.types[i];
3309
+ return c && c !== !0 && t(s, c);
3310
+ }
3311
+ Ye.schemaHasRulesForType = e;
3312
+ function t(s, n) {
3313
+ return n.rules.some((i) => r(s, i));
3314
+ }
3315
+ Ye.shouldUseGroup = t;
3316
+ function r(s, n) {
3317
+ var i;
3318
+ return s[n.keyword] !== void 0 || ((i = n.definition.implements) === null || i === void 0 ? void 0 : i.some((c) => s[c] !== void 0));
3319
+ }
3320
+ return Ye.shouldUseRule = r, Ye;
3316
3321
  }
3317
- Xe.shouldUseRule = Ss;
3318
3322
  (function(e) {
3319
3323
  Object.defineProperty(e, "__esModule", { value: !0 }), e.reportTypeError = e.checkDataTypes = e.checkDataType = e.coerceAndCheckDataType = e.getJSONTypes = e.getSchemaTypes = e.DataType = void 0;
3320
- const t = ht, r = Xe, s = Ut, n = ee, i = ne;
3321
- var l;
3324
+ const t = ht, r = Es(), s = Ut, n = ee, i = ne;
3325
+ var c;
3322
3326
  (function(T) {
3323
3327
  T[T.Correct = 0] = "Correct", T[T.Wrong = 1] = "Wrong";
3324
- })(l = e.DataType || (e.DataType = {}));
3328
+ })(c = e.DataType || (e.DataType = {}));
3325
3329
  function a(T) {
3326
3330
  const j = u(T.type);
3327
3331
  if (j.includes("null")) {
@@ -3345,7 +3349,7 @@ Xe.shouldUseRule = Ss;
3345
3349
  function d(T, j) {
3346
3350
  const { gen: F, data: S, opts: I } = T, q = y(j, I.coerceTypes), G = j.length > 0 && !(q.length === 0 && j.length === 1 && (0, r.schemaHasRulesForType)(T, j[0]));
3347
3351
  if (G) {
3348
- const J = E(j, S, I.strictNumbers, l.Wrong);
3352
+ const J = E(j, S, I.strictNumbers, c.Wrong);
3349
3353
  F.if(J, () => {
3350
3354
  q.length ? P(T, j, q) : g(T);
3351
3355
  });
@@ -3393,8 +3397,8 @@ Xe.shouldUseRule = Ss;
3393
3397
  function b({ gen: T, parentData: j, parentDataProperty: F }, S) {
3394
3398
  T.if((0, n._)`${j} !== undefined`, () => T.assign((0, n._)`${j}[${F}]`, S));
3395
3399
  }
3396
- function _(T, j, F, S = l.Correct) {
3397
- const I = S === l.Correct ? n.operators.EQ : n.operators.NEQ;
3400
+ function _(T, j, F, S = c.Correct) {
3401
+ const I = S === c.Correct ? n.operators.EQ : n.operators.NEQ;
3398
3402
  let q;
3399
3403
  switch (T) {
3400
3404
  case "null":
@@ -3414,7 +3418,7 @@ Xe.shouldUseRule = Ss;
3414
3418
  default:
3415
3419
  return (0, n._)`typeof ${j} ${I} ${T}`;
3416
3420
  }
3417
- return S === l.Correct ? q : (0, n.not)(q);
3421
+ return S === c.Correct ? q : (0, n.not)(q);
3418
3422
  function G(J = n.nil) {
3419
3423
  return (0, n.and)((0, n._)`typeof ${j} == "number"`, J, F ? (0, n._)`isFinite(${j})` : n.nil);
3420
3424
  }
@@ -3461,23 +3465,23 @@ Xe.shouldUseRule = Ss;
3461
3465
  }
3462
3466
  })(Lt);
3463
3467
  var Ct = {}, Ln;
3464
- function ho() {
3468
+ function uo() {
3465
3469
  if (Ln)
3466
3470
  return Ct;
3467
3471
  Ln = 1, Object.defineProperty(Ct, "__esModule", { value: !0 }), Ct.assignDefaults = void 0;
3468
3472
  const e = ee, t = ne;
3469
3473
  function r(n, i) {
3470
- const { properties: l, items: a } = n.schema;
3471
- if (i === "object" && l)
3472
- for (const u in l)
3473
- s(n, u, l[u].default);
3474
+ const { properties: c, items: a } = n.schema;
3475
+ if (i === "object" && c)
3476
+ for (const u in c)
3477
+ s(n, u, c[u].default);
3474
3478
  else
3475
3479
  i === "array" && Array.isArray(a) && a.forEach((u, d) => s(n, d, u.default));
3476
3480
  }
3477
3481
  Ct.assignDefaults = r;
3478
- function s(n, i, l) {
3482
+ function s(n, i, c) {
3479
3483
  const { gen: a, compositeRule: u, data: d, opts: f } = n;
3480
- if (l === void 0)
3484
+ if (c === void 0)
3481
3485
  return;
3482
3486
  const y = (0, e._)`${d}${(0, e.getProperty)(i)}`;
3483
3487
  if (u) {
@@ -3485,89 +3489,89 @@ function ho() {
3485
3489
  return;
3486
3490
  }
3487
3491
  let P = (0, e._)`${y} === undefined`;
3488
- f.useDefaults === "empty" && (P = (0, e._)`${P} || ${y} === null || ${y} === ""`), a.if(P, (0, e._)`${y} = ${(0, e.stringify)(l)}`);
3492
+ f.useDefaults === "empty" && (P = (0, e._)`${P} || ${y} === null || ${y} === ""`), a.if(P, (0, e._)`${y} = ${(0, e.stringify)(c)}`);
3489
3493
  }
3490
3494
  return Ct;
3491
3495
  }
3492
3496
  var Me = {}, X = {};
3493
3497
  Object.defineProperty(X, "__esModule", { value: !0 });
3494
3498
  X.validateUnion = X.validateArray = X.usePattern = X.callValidateCode = X.schemaProperties = X.allSchemaProperties = X.noPropertyInData = X.propertyInData = X.isOwnProperty = X.hasPropFunc = X.reportMissingProp = X.checkMissingProp = X.checkReportMissingProp = void 0;
3495
- const le = ee, qr = ne, rt = Ke, mo = ne;
3496
- function yo(e, t) {
3499
+ const le = ee, qr = ne, rt = Ke, fo = ne;
3500
+ function po(e, t) {
3497
3501
  const { gen: r, data: s, it: n } = e;
3498
3502
  r.if(Ur(r, s, t, n.opts.ownProperties), () => {
3499
3503
  e.setParams({ missingProperty: (0, le._)`${t}` }, !0), e.error();
3500
3504
  });
3501
3505
  }
3502
- X.checkReportMissingProp = yo;
3503
- function go({ gen: e, data: t, it: { opts: r } }, s, n) {
3506
+ X.checkReportMissingProp = po;
3507
+ function ho({ gen: e, data: t, it: { opts: r } }, s, n) {
3504
3508
  return (0, le.or)(...s.map((i) => (0, le.and)(Ur(e, t, i, r.ownProperties), (0, le._)`${n} = ${i}`)));
3505
3509
  }
3506
- X.checkMissingProp = go;
3507
- function $o(e, t) {
3510
+ X.checkMissingProp = ho;
3511
+ function mo(e, t) {
3508
3512
  e.setParams({ missingProperty: t }, !0), e.error();
3509
3513
  }
3510
- X.reportMissingProp = $o;
3511
- function Ts(e) {
3514
+ X.reportMissingProp = mo;
3515
+ function Ps(e) {
3512
3516
  return e.scopeValue("func", {
3513
3517
  // eslint-disable-next-line @typescript-eslint/unbound-method
3514
3518
  ref: Object.prototype.hasOwnProperty,
3515
3519
  code: (0, le._)`Object.prototype.hasOwnProperty`
3516
3520
  });
3517
3521
  }
3518
- X.hasPropFunc = Ts;
3522
+ X.hasPropFunc = Ps;
3519
3523
  function Lr(e, t, r) {
3520
- return (0, le._)`${Ts(e)}.call(${t}, ${r})`;
3524
+ return (0, le._)`${Ps(e)}.call(${t}, ${r})`;
3521
3525
  }
3522
3526
  X.isOwnProperty = Lr;
3523
- function _o(e, t, r, s) {
3527
+ function yo(e, t, r, s) {
3524
3528
  const n = (0, le._)`${t}${(0, le.getProperty)(r)} !== undefined`;
3525
3529
  return s ? (0, le._)`${n} && ${Lr(e, t, r)}` : n;
3526
3530
  }
3527
- X.propertyInData = _o;
3531
+ X.propertyInData = yo;
3528
3532
  function Ur(e, t, r, s) {
3529
3533
  const n = (0, le._)`${t}${(0, le.getProperty)(r)} === undefined`;
3530
3534
  return s ? (0, le.or)(n, (0, le.not)(Lr(e, t, r))) : n;
3531
3535
  }
3532
3536
  X.noPropertyInData = Ur;
3533
- function Rs(e) {
3537
+ function Ss(e) {
3534
3538
  return e ? Object.keys(e).filter((t) => t !== "__proto__") : [];
3535
3539
  }
3536
- X.allSchemaProperties = Rs;
3537
- function vo(e, t) {
3538
- return Rs(t).filter((r) => !(0, qr.alwaysValidSchema)(e, t[r]));
3540
+ X.allSchemaProperties = Ss;
3541
+ function go(e, t) {
3542
+ return Ss(t).filter((r) => !(0, qr.alwaysValidSchema)(e, t[r]));
3539
3543
  }
3540
- X.schemaProperties = vo;
3541
- function wo({ schemaCode: e, data: t, it: { gen: r, topSchemaRef: s, schemaPath: n, errorPath: i }, it: l }, a, u, d) {
3544
+ X.schemaProperties = go;
3545
+ function $o({ schemaCode: e, data: t, it: { gen: r, topSchemaRef: s, schemaPath: n, errorPath: i }, it: c }, a, u, d) {
3542
3546
  const f = d ? (0, le._)`${e}, ${t}, ${s}${n}` : t, y = [
3543
3547
  [rt.default.instancePath, (0, le.strConcat)(rt.default.instancePath, i)],
3544
- [rt.default.parentData, l.parentData],
3545
- [rt.default.parentDataProperty, l.parentDataProperty],
3548
+ [rt.default.parentData, c.parentData],
3549
+ [rt.default.parentDataProperty, c.parentDataProperty],
3546
3550
  [rt.default.rootData, rt.default.rootData]
3547
3551
  ];
3548
- l.opts.dynamicRef && y.push([rt.default.dynamicAnchors, rt.default.dynamicAnchors]);
3552
+ c.opts.dynamicRef && y.push([rt.default.dynamicAnchors, rt.default.dynamicAnchors]);
3549
3553
  const P = (0, le._)`${f}, ${r.object(...y)}`;
3550
3554
  return u !== le.nil ? (0, le._)`${a}.call(${u}, ${P})` : (0, le._)`${a}(${P})`;
3551
3555
  }
3552
- X.callValidateCode = wo;
3553
- const bo = (0, le._)`new RegExp`;
3554
- function Eo({ gen: e, it: { opts: t } }, r) {
3556
+ X.callValidateCode = $o;
3557
+ const _o = (0, le._)`new RegExp`;
3558
+ function vo({ gen: e, it: { opts: t } }, r) {
3555
3559
  const s = t.unicodeRegExp ? "u" : "", { regExp: n } = t.code, i = n(r, s);
3556
3560
  return e.scopeValue("pattern", {
3557
3561
  key: i.toString(),
3558
3562
  ref: i,
3559
- code: (0, le._)`${n.code === "new RegExp" ? bo : (0, mo.useFunc)(e, n)}(${r}, ${s})`
3563
+ code: (0, le._)`${n.code === "new RegExp" ? _o : (0, fo.useFunc)(e, n)}(${r}, ${s})`
3560
3564
  });
3561
3565
  }
3562
- X.usePattern = Eo;
3563
- function Po(e) {
3566
+ X.usePattern = vo;
3567
+ function wo(e) {
3564
3568
  const { gen: t, data: r, keyword: s, it: n } = e, i = t.name("valid");
3565
3569
  if (n.allErrors) {
3566
3570
  const a = t.let("valid", !0);
3567
- return l(() => t.assign(a, !1)), a;
3571
+ return c(() => t.assign(a, !1)), a;
3568
3572
  }
3569
- return t.var(i, !0), l(() => t.break()), i;
3570
- function l(a) {
3573
+ return t.var(i, !0), c(() => t.break()), i;
3574
+ function c(a) {
3571
3575
  const u = t.const("len", (0, le._)`${r}.length`);
3572
3576
  t.forRange("i", 0, u, (d) => {
3573
3577
  e.subschema({
@@ -3578,26 +3582,26 @@ function Po(e) {
3578
3582
  });
3579
3583
  }
3580
3584
  }
3581
- X.validateArray = Po;
3582
- function So(e) {
3585
+ X.validateArray = wo;
3586
+ function bo(e) {
3583
3587
  const { gen: t, schema: r, keyword: s, it: n } = e;
3584
3588
  if (!Array.isArray(r))
3585
3589
  throw new Error("ajv implementation error");
3586
3590
  if (r.some((u) => (0, qr.alwaysValidSchema)(n, u)) && !n.opts.unevaluated)
3587
3591
  return;
3588
- const l = t.let("valid", !1), a = t.name("_valid");
3592
+ const c = t.let("valid", !1), a = t.name("_valid");
3589
3593
  t.block(() => r.forEach((u, d) => {
3590
3594
  const f = e.subschema({
3591
3595
  keyword: s,
3592
3596
  schemaProp: d,
3593
3597
  compositeRule: !0
3594
3598
  }, a);
3595
- t.assign(l, (0, le._)`${l} || ${a}`), e.mergeValidEvaluated(f, a) || t.if((0, le.not)(l));
3596
- })), e.result(l, () => e.reset(), () => e.error(!0));
3599
+ t.assign(c, (0, le._)`${c} || ${a}`), e.mergeValidEvaluated(f, a) || t.if((0, le.not)(c));
3600
+ })), e.result(c, () => e.reset(), () => e.error(!0));
3597
3601
  }
3598
- X.validateUnion = So;
3602
+ X.validateUnion = bo;
3599
3603
  var Un;
3600
- function To() {
3604
+ function Eo() {
3601
3605
  if (Un)
3602
3606
  return Me;
3603
3607
  Un = 1, Object.defineProperty(Me, "__esModule", { value: !0 }), Me.validateKeywordUsage = Me.validSchemaType = Me.funcKeywordCode = Me.macroKeywordCode = void 0;
@@ -3623,10 +3627,10 @@ function To() {
3623
3627
  P.block$data(I, q), P.ok((_ = b.valid) !== null && _ !== void 0 ? _ : I);
3624
3628
  function q() {
3625
3629
  if (b.errors === !1)
3626
- ie(), b.modifying && l(P), Q(() => P.error());
3630
+ ie(), b.modifying && c(P), Q(() => P.error());
3627
3631
  else {
3628
3632
  const oe = b.async ? G() : J();
3629
- b.modifying && l(P), Q(() => a(P, oe));
3633
+ b.modifying && c(P), Q(() => a(P, oe));
3630
3634
  }
3631
3635
  }
3632
3636
  function G() {
@@ -3647,7 +3651,7 @@ function To() {
3647
3651
  }
3648
3652
  }
3649
3653
  Me.funcKeywordCode = i;
3650
- function l(P) {
3654
+ function c(P) {
3651
3655
  const { gen: b, data: _, it: E } = P;
3652
3656
  b.if(E.parentData, () => b.assign(_, (0, e._)`${E.parentData}[${E.parentDataProperty}]`));
3653
3657
  }
@@ -3686,25 +3690,25 @@ function To() {
3686
3690
  }
3687
3691
  return Me.validateKeywordUsage = y, Me;
3688
3692
  }
3689
- var Ye = {}, Vn;
3690
- function Ro() {
3693
+ var Xe = {}, Vn;
3694
+ function Po() {
3691
3695
  if (Vn)
3692
- return Ye;
3693
- Vn = 1, Object.defineProperty(Ye, "__esModule", { value: !0 }), Ye.extendSubschemaMode = Ye.extendSubschemaData = Ye.getSubschema = void 0;
3696
+ return Xe;
3697
+ Vn = 1, Object.defineProperty(Xe, "__esModule", { value: !0 }), Xe.extendSubschemaMode = Xe.extendSubschemaData = Xe.getSubschema = void 0;
3694
3698
  const e = ee, t = ne;
3695
- function r(i, { keyword: l, schemaProp: a, schema: u, schemaPath: d, errSchemaPath: f, topSchemaRef: y }) {
3696
- if (l !== void 0 && u !== void 0)
3699
+ function r(i, { keyword: c, schemaProp: a, schema: u, schemaPath: d, errSchemaPath: f, topSchemaRef: y }) {
3700
+ if (c !== void 0 && u !== void 0)
3697
3701
  throw new Error('both "keyword" and "schema" passed, only one allowed');
3698
- if (l !== void 0) {
3699
- const P = i.schema[l];
3702
+ if (c !== void 0) {
3703
+ const P = i.schema[c];
3700
3704
  return a === void 0 ? {
3701
3705
  schema: P,
3702
- schemaPath: (0, e._)`${i.schemaPath}${(0, e.getProperty)(l)}`,
3703
- errSchemaPath: `${i.errSchemaPath}/${l}`
3706
+ schemaPath: (0, e._)`${i.schemaPath}${(0, e.getProperty)(c)}`,
3707
+ errSchemaPath: `${i.errSchemaPath}/${c}`
3704
3708
  } : {
3705
3709
  schema: P[a],
3706
- schemaPath: (0, e._)`${i.schemaPath}${(0, e.getProperty)(l)}${(0, e.getProperty)(a)}`,
3707
- errSchemaPath: `${i.errSchemaPath}/${l}/${(0, t.escapeFragment)(a)}`
3710
+ schemaPath: (0, e._)`${i.schemaPath}${(0, e.getProperty)(c)}${(0, e.getProperty)(a)}`,
3711
+ errSchemaPath: `${i.errSchemaPath}/${c}/${(0, t.escapeFragment)(a)}`
3708
3712
  };
3709
3713
  }
3710
3714
  if (u !== void 0) {
@@ -3719,13 +3723,13 @@ function Ro() {
3719
3723
  }
3720
3724
  throw new Error('either "keyword" or "schema" must be passed');
3721
3725
  }
3722
- Ye.getSubschema = r;
3723
- function s(i, l, { dataProp: a, dataPropType: u, data: d, dataTypes: f, propertyName: y }) {
3726
+ Xe.getSubschema = r;
3727
+ function s(i, c, { dataProp: a, dataPropType: u, data: d, dataTypes: f, propertyName: y }) {
3724
3728
  if (d !== void 0 && a !== void 0)
3725
3729
  throw new Error('both "data" and "dataProp" passed, only one allowed');
3726
- const { gen: P } = l;
3730
+ const { gen: P } = c;
3727
3731
  if (a !== void 0) {
3728
- const { errorPath: _, dataPathArr: E, opts: w } = l, g = P.let("data", (0, e._)`${l.data}${(0, e.getProperty)(a)}`, !0);
3732
+ const { errorPath: _, dataPathArr: E, opts: w } = c, g = P.let("data", (0, e._)`${c.data}${(0, e.getProperty)(a)}`, !0);
3729
3733
  b(g), i.errorPath = (0, e.str)`${_}${(0, t.getErrorPath)(a, u, w.jsPropertySyntax)}`, i.parentDataProperty = (0, e._)`${a}`, i.dataPathArr = [...E, i.parentDataProperty];
3730
3734
  }
3731
3735
  if (d !== void 0) {
@@ -3734,16 +3738,16 @@ function Ro() {
3734
3738
  }
3735
3739
  f && (i.dataTypes = f);
3736
3740
  function b(_) {
3737
- i.data = _, i.dataLevel = l.dataLevel + 1, i.dataTypes = [], l.definedProperties = /* @__PURE__ */ new Set(), i.parentData = l.data, i.dataNames = [...l.dataNames, _];
3741
+ i.data = _, i.dataLevel = c.dataLevel + 1, i.dataTypes = [], c.definedProperties = /* @__PURE__ */ new Set(), i.parentData = c.data, i.dataNames = [...c.dataNames, _];
3738
3742
  }
3739
3743
  }
3740
- Ye.extendSubschemaData = s;
3741
- function n(i, { jtdDiscriminator: l, jtdMetadata: a, compositeRule: u, createErrors: d, allErrors: f }) {
3742
- u !== void 0 && (i.compositeRule = u), d !== void 0 && (i.createErrors = d), f !== void 0 && (i.allErrors = f), i.jtdDiscriminator = l, i.jtdMetadata = a;
3744
+ Xe.extendSubschemaData = s;
3745
+ function n(i, { jtdDiscriminator: c, jtdMetadata: a, compositeRule: u, createErrors: d, allErrors: f }) {
3746
+ u !== void 0 && (i.compositeRule = u), d !== void 0 && (i.createErrors = d), f !== void 0 && (i.allErrors = f), i.jtdDiscriminator = c, i.jtdMetadata = a;
3743
3747
  }
3744
- return Ye.extendSubschemaMode = n, Ye;
3748
+ return Xe.extendSubschemaMode = n, Xe;
3745
3749
  }
3746
- var Pe = {}, ks = function e(t, r) {
3750
+ var Pe = {}, Ts = function e(t, r) {
3747
3751
  if (t === r)
3748
3752
  return !0;
3749
3753
  if (t && r && typeof t == "object" && typeof r == "object") {
@@ -3770,14 +3774,14 @@ var Pe = {}, ks = function e(t, r) {
3770
3774
  if (!Object.prototype.hasOwnProperty.call(r, i[n]))
3771
3775
  return !1;
3772
3776
  for (n = s; n-- !== 0; ) {
3773
- var l = i[n];
3774
- if (!e(t[l], r[l]))
3777
+ var c = i[n];
3778
+ if (!e(t[c], r[c]))
3775
3779
  return !1;
3776
3780
  }
3777
3781
  return !0;
3778
3782
  }
3779
3783
  return t !== t && r !== r;
3780
- }, Os = { exports: {} }, st = Os.exports = function(e, t, r) {
3784
+ }, Rs = { exports: {} }, st = Rs.exports = function(e, t, r) {
3781
3785
  typeof t == "function" && (r = t, t = {}), r = t.cb || r;
3782
3786
  var s = typeof r == "function" ? r : r.pre || function() {
3783
3787
  }, n = r.post || function() {
@@ -3828,9 +3832,9 @@ st.skipKeywords = {
3828
3832
  maxProperties: !0,
3829
3833
  minProperties: !0
3830
3834
  };
3831
- function er(e, t, r, s, n, i, l, a, u, d) {
3835
+ function er(e, t, r, s, n, i, c, a, u, d) {
3832
3836
  if (s && typeof s == "object" && !Array.isArray(s)) {
3833
- t(s, n, i, l, a, u, d);
3837
+ t(s, n, i, c, a, u, d);
3834
3838
  for (var f in s) {
3835
3839
  var y = s[f];
3836
3840
  if (Array.isArray(y)) {
@@ -3840,20 +3844,20 @@ function er(e, t, r, s, n, i, l, a, u, d) {
3840
3844
  } else if (f in st.propsKeywords) {
3841
3845
  if (y && typeof y == "object")
3842
3846
  for (var b in y)
3843
- er(e, t, r, y[b], n + "/" + f + "/" + ko(b), i, n, f, s, b);
3847
+ er(e, t, r, y[b], n + "/" + f + "/" + So(b), i, n, f, s, b);
3844
3848
  } else
3845
3849
  (f in st.keywords || e.allKeys && !(f in st.skipKeywords)) && er(e, t, r, y, n + "/" + f, i, n, f, s);
3846
3850
  }
3847
- r(s, n, i, l, a, u, d);
3851
+ r(s, n, i, c, a, u, d);
3848
3852
  }
3849
3853
  }
3850
- function ko(e) {
3854
+ function So(e) {
3851
3855
  return e.replace(/~/g, "~0").replace(/\//g, "~1");
3852
3856
  }
3853
- var Oo = Os.exports;
3857
+ var To = Rs.exports;
3854
3858
  Object.defineProperty(Pe, "__esModule", { value: !0 });
3855
3859
  Pe.getSchemaRefs = Pe.resolveUrl = Pe.normalizeId = Pe._getFullPath = Pe.getFullPath = Pe.inlineRef = void 0;
3856
- const No = ne, Co = ks, Io = Oo, jo = /* @__PURE__ */ new Set([
3860
+ const Ro = ne, ko = Ts, Oo = To, No = /* @__PURE__ */ new Set([
3857
3861
  "type",
3858
3862
  "format",
3859
3863
  "pattern",
@@ -3871,11 +3875,11 @@ const No = ne, Co = ks, Io = Oo, jo = /* @__PURE__ */ new Set([
3871
3875
  "enum",
3872
3876
  "const"
3873
3877
  ]);
3874
- function Do(e, t = !0) {
3875
- return typeof e == "boolean" ? !0 : t === !0 ? !Or(e) : t ? Ns(e) <= t : !1;
3878
+ function Co(e, t = !0) {
3879
+ return typeof e == "boolean" ? !0 : t === !0 ? !Or(e) : t ? ks(e) <= t : !1;
3876
3880
  }
3877
- Pe.inlineRef = Do;
3878
- const Ao = /* @__PURE__ */ new Set([
3881
+ Pe.inlineRef = Co;
3882
+ const Io = /* @__PURE__ */ new Set([
3879
3883
  "$ref",
3880
3884
  "$recursiveRef",
3881
3885
  "$recursiveAnchor",
@@ -3884,7 +3888,7 @@ const Ao = /* @__PURE__ */ new Set([
3884
3888
  ]);
3885
3889
  function Or(e) {
3886
3890
  for (const t in e) {
3887
- if (Ao.has(t))
3891
+ if (Io.has(t))
3888
3892
  return !0;
3889
3893
  const r = e[t];
3890
3894
  if (Array.isArray(r) && r.some(Or) || typeof r == "object" && Or(r))
@@ -3892,44 +3896,44 @@ function Or(e) {
3892
3896
  }
3893
3897
  return !1;
3894
3898
  }
3895
- function Ns(e) {
3899
+ function ks(e) {
3896
3900
  let t = 0;
3897
3901
  for (const r in e) {
3898
3902
  if (r === "$ref")
3899
3903
  return 1 / 0;
3900
- if (t++, !jo.has(r) && (typeof e[r] == "object" && (0, No.eachItem)(e[r], (s) => t += Ns(s)), t === 1 / 0))
3904
+ if (t++, !No.has(r) && (typeof e[r] == "object" && (0, Ro.eachItem)(e[r], (s) => t += ks(s)), t === 1 / 0))
3901
3905
  return 1 / 0;
3902
3906
  }
3903
3907
  return t;
3904
3908
  }
3905
- function Cs(e, t = "", r) {
3909
+ function Os(e, t = "", r) {
3906
3910
  r !== !1 && (t = bt(t));
3907
3911
  const s = e.parse(t);
3908
- return Is(e, s);
3912
+ return Ns(e, s);
3909
3913
  }
3910
- Pe.getFullPath = Cs;
3911
- function Is(e, t) {
3914
+ Pe.getFullPath = Os;
3915
+ function Ns(e, t) {
3912
3916
  return e.serialize(t).split("#")[0] + "#";
3913
3917
  }
3914
- Pe._getFullPath = Is;
3915
- const Mo = /#\/?$/;
3918
+ Pe._getFullPath = Ns;
3919
+ const jo = /#\/?$/;
3916
3920
  function bt(e) {
3917
- return e ? e.replace(Mo, "") : "";
3921
+ return e ? e.replace(jo, "") : "";
3918
3922
  }
3919
3923
  Pe.normalizeId = bt;
3920
- function Fo(e, t, r) {
3924
+ function Do(e, t, r) {
3921
3925
  return r = bt(r), e.resolve(t, r);
3922
3926
  }
3923
- Pe.resolveUrl = Fo;
3924
- const qo = /^[a-z_][-a-z0-9._]*$/i;
3925
- function Lo(e, t) {
3927
+ Pe.resolveUrl = Do;
3928
+ const Ao = /^[a-z_][-a-z0-9._]*$/i;
3929
+ function Mo(e, t) {
3926
3930
  if (typeof e == "boolean")
3927
3931
  return {};
3928
- const { schemaId: r, uriResolver: s } = this.opts, n = bt(e[r] || t), i = { "": n }, l = Cs(s, n, !1), a = {}, u = /* @__PURE__ */ new Set();
3929
- return Io(e, { allKeys: !0 }, (y, P, b, _) => {
3932
+ const { schemaId: r, uriResolver: s } = this.opts, n = bt(e[r] || t), i = { "": n }, c = Os(s, n, !1), a = {}, u = /* @__PURE__ */ new Set();
3933
+ return Oo(e, { allKeys: !0 }, (y, P, b, _) => {
3930
3934
  if (_ === void 0)
3931
3935
  return;
3932
- const E = l + P;
3936
+ const E = c + P;
3933
3937
  let w = i[_];
3934
3938
  typeof y[r] == "string" && (w = g.call(this, y[r])), v.call(this, y.$anchor), v.call(this, y.$dynamicAnchor), i[P] = w;
3935
3939
  function g(T) {
@@ -3942,27 +3946,27 @@ function Lo(e, t) {
3942
3946
  }
3943
3947
  function v(T) {
3944
3948
  if (typeof T == "string") {
3945
- if (!qo.test(T))
3949
+ if (!Ao.test(T))
3946
3950
  throw new Error(`invalid anchor "${T}"`);
3947
3951
  g.call(this, `#${T}`);
3948
3952
  }
3949
3953
  }
3950
3954
  }), a;
3951
3955
  function d(y, P, b) {
3952
- if (P !== void 0 && !Co(y, P))
3956
+ if (P !== void 0 && !ko(y, P))
3953
3957
  throw f(b);
3954
3958
  }
3955
3959
  function f(y) {
3956
3960
  return new Error(`reference "${y}" resolves to more than one schema`);
3957
3961
  }
3958
3962
  }
3959
- Pe.getSchemaRefs = Lo;
3963
+ Pe.getSchemaRefs = Mo;
3960
3964
  var zn;
3961
3965
  function fr() {
3962
3966
  if (zn)
3963
3967
  return Ze;
3964
3968
  zn = 1, Object.defineProperty(Ze, "__esModule", { value: !0 }), Ze.getData = Ze.KeywordCxt = Ze.validateFunctionCode = void 0;
3965
- const e = ao(), t = Lt, r = Xe, s = Lt, n = ho(), i = To(), l = Ro(), a = ee, u = Ke, d = Pe, f = ne, y = Ut;
3969
+ const e = io(), t = Lt, r = Es(), s = Lt, n = uo(), i = Eo(), c = Po(), a = ee, u = Ke, d = Pe, f = ne, y = Ut;
3966
3970
  function P($) {
3967
3971
  if (F($) && (I($), j($))) {
3968
3972
  w($);
@@ -4216,8 +4220,8 @@ function fr() {
4216
4220
  }
4217
4221
  }
4218
4222
  subschema(k, A) {
4219
- const L = (0, l.getSubschema)(this.it, k);
4220
- (0, l.extendSubschemaData)(L, this.it, k), (0, l.extendSubschemaMode)(L, k);
4223
+ const L = (0, c.getSubschema)(this.it, k);
4224
+ (0, c.extendSubschemaData)(L, this.it, k), (0, c.extendSubschemaMode)(L, k);
4221
4225
  const W = { ...this.it, ...L, items: void 0, props: void 0 };
4222
4226
  return T(W, A), W;
4223
4227
  }
@@ -4271,31 +4275,27 @@ function fr() {
4271
4275
  }
4272
4276
  return Ze.getData = Y, Ze;
4273
4277
  }
4274
- var xt = {}, Wn;
4275
- function Vr() {
4276
- if (Wn)
4277
- return xt;
4278
- Wn = 1, Object.defineProperty(xt, "__esModule", { value: !0 });
4279
- class e extends Error {
4280
- constructor(r) {
4281
- super("validation failed"), this.errors = r, this.ajv = this.validation = !0;
4282
- }
4283
- }
4284
- return xt.default = e, xt;
4285
- }
4286
4278
  var Vt = {};
4287
4279
  Object.defineProperty(Vt, "__esModule", { value: !0 });
4280
+ class Fo extends Error {
4281
+ constructor(t) {
4282
+ super("validation failed"), this.errors = t, this.ajv = this.validation = !0;
4283
+ }
4284
+ }
4285
+ Vt.default = Fo;
4286
+ var zt = {};
4287
+ Object.defineProperty(zt, "__esModule", { value: !0 });
4288
4288
  const _r = Pe;
4289
- class Uo extends Error {
4289
+ class qo extends Error {
4290
4290
  constructor(t, r, s, n) {
4291
4291
  super(n || `can't resolve reference ${s} from id ${r}`), this.missingRef = (0, _r.resolveUrl)(t, r, s), this.missingSchema = (0, _r.normalizeId)((0, _r.getFullPath)(t, this.missingRef));
4292
4292
  }
4293
4293
  }
4294
- Vt.default = Uo;
4294
+ zt.default = qo;
4295
4295
  var Oe = {};
4296
4296
  Object.defineProperty(Oe, "__esModule", { value: !0 });
4297
4297
  Oe.resolveSchema = Oe.getCompilingSchema = Oe.resolveRef = Oe.compileSchema = Oe.SchemaEnv = void 0;
4298
- const Fe = ee, Vo = Vr(), dt = Ke, Le = Pe, Bn = ne, zo = fr();
4298
+ const Fe = ee, Lo = Vt, dt = Ke, Le = Pe, Wn = ne, Uo = fr();
4299
4299
  class pr {
4300
4300
  constructor(t) {
4301
4301
  var r;
@@ -4305,20 +4305,20 @@ class pr {
4305
4305
  }
4306
4306
  }
4307
4307
  Oe.SchemaEnv = pr;
4308
- function zr(e) {
4309
- const t = js.call(this, e);
4308
+ function Vr(e) {
4309
+ const t = Cs.call(this, e);
4310
4310
  if (t)
4311
4311
  return t;
4312
- const r = (0, Le.getFullPath)(this.opts.uriResolver, e.root.baseId), { es5: s, lines: n } = this.opts.code, { ownProperties: i } = this.opts, l = new Fe.CodeGen(this.scope, { es5: s, lines: n, ownProperties: i });
4312
+ const r = (0, Le.getFullPath)(this.opts.uriResolver, e.root.baseId), { es5: s, lines: n } = this.opts.code, { ownProperties: i } = this.opts, c = new Fe.CodeGen(this.scope, { es5: s, lines: n, ownProperties: i });
4313
4313
  let a;
4314
- e.$async && (a = l.scopeValue("Error", {
4315
- ref: Vo.default,
4314
+ e.$async && (a = c.scopeValue("Error", {
4315
+ ref: Lo.default,
4316
4316
  code: (0, Fe._)`require("ajv/dist/runtime/validation_error").default`
4317
4317
  }));
4318
- const u = l.scopeName("validate");
4318
+ const u = c.scopeName("validate");
4319
4319
  e.validateName = u;
4320
4320
  const d = {
4321
- gen: l,
4321
+ gen: c,
4322
4322
  allErrors: this.opts.allErrors,
4323
4323
  data: dt.default.data,
4324
4324
  parentData: dt.default.parentData,
@@ -4328,7 +4328,7 @@ function zr(e) {
4328
4328
  dataLevel: 0,
4329
4329
  dataTypes: [],
4330
4330
  definedProperties: /* @__PURE__ */ new Set(),
4331
- topSchemaRef: l.scopeValue("schema", this.opts.code.source === !0 ? { ref: e.schema, code: (0, Fe.stringify)(e.schema) } : { ref: e.schema }),
4331
+ topSchemaRef: c.scopeValue("schema", this.opts.code.source === !0 ? { ref: e.schema, code: (0, Fe.stringify)(e.schema) } : { ref: e.schema }),
4332
4332
  validateName: u,
4333
4333
  ValidationError: a,
4334
4334
  schema: e.schema,
@@ -4343,11 +4343,11 @@ function zr(e) {
4343
4343
  };
4344
4344
  let f;
4345
4345
  try {
4346
- this._compilations.add(e), (0, zo.validateFunctionCode)(d), l.optimize(this.opts.code.optimize);
4347
- const y = l.toString();
4348
- f = `${l.scopeRefs(dt.default.scope)}return ${y}`, this.opts.code.process && (f = this.opts.code.process(f, e));
4346
+ this._compilations.add(e), (0, Uo.validateFunctionCode)(d), c.optimize(this.opts.code.optimize);
4347
+ const y = c.toString();
4348
+ f = `${c.scopeRefs(dt.default.scope)}return ${y}`, this.opts.code.process && (f = this.opts.code.process(f, e));
4349
4349
  const b = new Function(`${dt.default.self}`, `${dt.default.scope}`, f)(this, this.scope.get());
4350
- if (this.scope.value(u, { ref: b }), b.errors = null, b.schema = e.schema, b.schemaEnv = e, e.$async && (b.$async = !0), this.opts.code.source === !0 && (b.source = { validateName: u, validateCode: y, scopeValues: l._values }), this.opts.unevaluated) {
4350
+ if (this.scope.value(u, { ref: b }), b.errors = null, b.schema = e.schema, b.schemaEnv = e, e.$async && (b.$async = !0), this.opts.code.source === !0 && (b.source = { validateName: u, validateCode: y, scopeValues: c._values }), this.opts.unevaluated) {
4351
4351
  const { props: _, items: E } = d;
4352
4352
  b.evaluated = {
4353
4353
  props: _ instanceof Fe.Name ? void 0 : _,
@@ -4363,35 +4363,35 @@ function zr(e) {
4363
4363
  this._compilations.delete(e);
4364
4364
  }
4365
4365
  }
4366
- Oe.compileSchema = zr;
4367
- function Wo(e, t, r) {
4366
+ Oe.compileSchema = Vr;
4367
+ function Vo(e, t, r) {
4368
4368
  var s;
4369
4369
  r = (0, Le.resolveUrl)(this.opts.uriResolver, t, r);
4370
4370
  const n = e.refs[r];
4371
4371
  if (n)
4372
4372
  return n;
4373
- let i = Go.call(this, e, r);
4373
+ let i = Bo.call(this, e, r);
4374
4374
  if (i === void 0) {
4375
- const l = (s = e.localRefs) === null || s === void 0 ? void 0 : s[r], { schemaId: a } = this.opts;
4376
- l && (i = new pr({ schema: l, schemaId: a, root: e, baseId: t }));
4375
+ const c = (s = e.localRefs) === null || s === void 0 ? void 0 : s[r], { schemaId: a } = this.opts;
4376
+ c && (i = new pr({ schema: c, schemaId: a, root: e, baseId: t }));
4377
4377
  }
4378
4378
  if (i !== void 0)
4379
- return e.refs[r] = Bo.call(this, i);
4379
+ return e.refs[r] = zo.call(this, i);
4380
4380
  }
4381
- Oe.resolveRef = Wo;
4382
- function Bo(e) {
4383
- return (0, Le.inlineRef)(e.schema, this.opts.inlineRefs) ? e.schema : e.validate ? e : zr.call(this, e);
4381
+ Oe.resolveRef = Vo;
4382
+ function zo(e) {
4383
+ return (0, Le.inlineRef)(e.schema, this.opts.inlineRefs) ? e.schema : e.validate ? e : Vr.call(this, e);
4384
4384
  }
4385
- function js(e) {
4385
+ function Cs(e) {
4386
4386
  for (const t of this._compilations)
4387
- if (Ho(t, e))
4387
+ if (Wo(t, e))
4388
4388
  return t;
4389
4389
  }
4390
- Oe.getCompilingSchema = js;
4391
- function Ho(e, t) {
4390
+ Oe.getCompilingSchema = Cs;
4391
+ function Wo(e, t) {
4392
4392
  return e.schema === t.schema && e.root === t.root && e.baseId === t.baseId;
4393
4393
  }
4394
- function Go(e, t) {
4394
+ function Bo(e, t) {
4395
4395
  let r;
4396
4396
  for (; typeof (r = this.refs[t]) == "string"; )
4397
4397
  t = r;
@@ -4402,21 +4402,21 @@ function hr(e, t) {
4402
4402
  let n = (0, Le.getFullPath)(this.opts.uriResolver, e.baseId, void 0);
4403
4403
  if (Object.keys(e.schema).length > 0 && s === n)
4404
4404
  return vr.call(this, r, e);
4405
- const i = (0, Le.normalizeId)(s), l = this.refs[i] || this.schemas[i];
4406
- if (typeof l == "string") {
4407
- const a = hr.call(this, e, l);
4405
+ const i = (0, Le.normalizeId)(s), c = this.refs[i] || this.schemas[i];
4406
+ if (typeof c == "string") {
4407
+ const a = hr.call(this, e, c);
4408
4408
  return typeof (a == null ? void 0 : a.schema) != "object" ? void 0 : vr.call(this, r, a);
4409
4409
  }
4410
- if (typeof (l == null ? void 0 : l.schema) == "object") {
4411
- if (l.validate || zr.call(this, l), i === (0, Le.normalizeId)(t)) {
4412
- const { schema: a } = l, { schemaId: u } = this.opts, d = a[u];
4410
+ if (typeof (c == null ? void 0 : c.schema) == "object") {
4411
+ if (c.validate || Vr.call(this, c), i === (0, Le.normalizeId)(t)) {
4412
+ const { schema: a } = c, { schemaId: u } = this.opts, d = a[u];
4413
4413
  return d && (n = (0, Le.resolveUrl)(this.opts.uriResolver, n, d)), new pr({ schema: a, schemaId: u, root: e, baseId: n });
4414
4414
  }
4415
- return vr.call(this, r, l);
4415
+ return vr.call(this, r, c);
4416
4416
  }
4417
4417
  }
4418
4418
  Oe.resolveSchema = hr;
4419
- const xo = /* @__PURE__ */ new Set([
4419
+ const Ho = /* @__PURE__ */ new Set([
4420
4420
  "properties",
4421
4421
  "patternProperties",
4422
4422
  "enum",
@@ -4430,25 +4430,25 @@ function vr(e, { baseId: t, schema: r, root: s }) {
4430
4430
  for (const a of e.fragment.slice(1).split("/")) {
4431
4431
  if (typeof r == "boolean")
4432
4432
  return;
4433
- const u = r[(0, Bn.unescapeFragment)(a)];
4433
+ const u = r[(0, Wn.unescapeFragment)(a)];
4434
4434
  if (u === void 0)
4435
4435
  return;
4436
4436
  r = u;
4437
4437
  const d = typeof r == "object" && r[this.opts.schemaId];
4438
- !xo.has(a) && d && (t = (0, Le.resolveUrl)(this.opts.uriResolver, t, d));
4438
+ !Ho.has(a) && d && (t = (0, Le.resolveUrl)(this.opts.uriResolver, t, d));
4439
4439
  }
4440
4440
  let i;
4441
- if (typeof r != "boolean" && r.$ref && !(0, Bn.schemaHasRulesButRef)(r, this.RULES)) {
4441
+ if (typeof r != "boolean" && r.$ref && !(0, Wn.schemaHasRulesButRef)(r, this.RULES)) {
4442
4442
  const a = (0, Le.resolveUrl)(this.opts.uriResolver, t, r.$ref);
4443
4443
  i = hr.call(this, s, a);
4444
4444
  }
4445
- const { schemaId: l } = this.opts;
4446
- if (i = i || new pr({ schema: r, schemaId: l, root: s, baseId: t }), i.schema !== i.root.schema)
4445
+ const { schemaId: c } = this.opts;
4446
+ if (i = i || new pr({ schema: r, schemaId: c, root: s, baseId: t }), i.schema !== i.root.schema)
4447
4447
  return i;
4448
4448
  }
4449
- const Ko = "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#", Jo = "Meta-schema for $data reference (JSON AnySchema extension proposal)", Qo = "object", Zo = [
4449
+ const Go = "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#", xo = "Meta-schema for $data reference (JSON AnySchema extension proposal)", Ko = "object", Jo = [
4450
4450
  "$data"
4451
- ], Yo = {
4451
+ ], Qo = {
4452
4452
  $data: {
4453
4453
  type: "string",
4454
4454
  anyOf: [
@@ -4460,30 +4460,30 @@ const Ko = "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/
4460
4460
  }
4461
4461
  ]
4462
4462
  }
4463
- }, Xo = !1, ea = {
4464
- $id: Ko,
4465
- description: Jo,
4466
- type: Qo,
4467
- required: Zo,
4468
- properties: Yo,
4469
- additionalProperties: Xo
4463
+ }, Zo = !1, Yo = {
4464
+ $id: Go,
4465
+ description: xo,
4466
+ type: Ko,
4467
+ required: Jo,
4468
+ properties: Qo,
4469
+ additionalProperties: Zo
4470
4470
  };
4471
- var Wr = {}, Nr = { exports: {} };
4471
+ var zr = {}, Nr = { exports: {} };
4472
4472
  /** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */
4473
4473
  (function(e, t) {
4474
4474
  (function(r, s) {
4475
4475
  s(t);
4476
- })(xi, function(r) {
4476
+ })(Hi, function(r) {
4477
4477
  function s() {
4478
- for (var p = arguments.length, c = Array(p), m = 0; m < p; m++)
4479
- c[m] = arguments[m];
4480
- if (c.length > 1) {
4481
- c[0] = c[0].slice(0, -1);
4482
- for (var C = c.length - 1, N = 1; N < C; ++N)
4483
- c[N] = c[N].slice(1, -1);
4484
- return c[C] = c[C].slice(1), c.join("");
4478
+ for (var p = arguments.length, l = Array(p), m = 0; m < p; m++)
4479
+ l[m] = arguments[m];
4480
+ if (l.length > 1) {
4481
+ l[0] = l[0].slice(0, -1);
4482
+ for (var C = l.length - 1, N = 1; N < C; ++N)
4483
+ l[N] = l[N].slice(1, -1);
4484
+ return l[C] = l[C].slice(1), l.join("");
4485
4485
  } else
4486
- return c[0];
4486
+ return l[0];
4487
4487
  }
4488
4488
  function n(p) {
4489
4489
  return "(?:" + p + ")";
@@ -4491,27 +4491,27 @@ var Wr = {}, Nr = { exports: {} };
4491
4491
  function i(p) {
4492
4492
  return p === void 0 ? "undefined" : p === null ? "null" : Object.prototype.toString.call(p).split(" ").pop().split("]").shift().toLowerCase();
4493
4493
  }
4494
- function l(p) {
4494
+ function c(p) {
4495
4495
  return p.toUpperCase();
4496
4496
  }
4497
4497
  function a(p) {
4498
4498
  return p != null ? p instanceof Array ? p : typeof p.length != "number" || p.split || p.setInterval || p.call ? [p] : Array.prototype.slice.call(p) : [];
4499
4499
  }
4500
- function u(p, c) {
4500
+ function u(p, l) {
4501
4501
  var m = p;
4502
- if (c)
4503
- for (var C in c)
4504
- m[C] = c[C];
4502
+ if (l)
4503
+ for (var C in l)
4504
+ m[C] = l[C];
4505
4505
  return m;
4506
4506
  }
4507
4507
  function d(p) {
4508
- var c = "[A-Za-z]", m = "[0-9]", C = s(m, "[A-Fa-f]"), N = n(n("%[EFef]" + C + "%" + C + C + "%" + C + C) + "|" + n("%[89A-Fa-f]" + C + "%" + C + C) + "|" + n("%" + C + C)), B = "[\\:\\/\\?\\#\\[\\]\\@]", H = "[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]", re = s(B, H), ce = p ? "[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]" : "[]", pe = p ? "[\\uE000-\\uF8FF]" : "[]", te = s(c, m, "[\\-\\.\\_\\~]", ce);
4509
- n(c + s(c, m, "[\\+\\-\\.]") + "*"), n(n(N + "|" + s(te, H, "[\\:]")) + "*");
4508
+ var l = "[A-Za-z]", m = "[0-9]", C = s(m, "[A-Fa-f]"), N = n(n("%[EFef]" + C + "%" + C + C + "%" + C + C) + "|" + n("%[89A-Fa-f]" + C + "%" + C + C) + "|" + n("%" + C + C)), B = "[\\:\\/\\?\\#\\[\\]\\@]", H = "[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]", re = s(B, H), ce = p ? "[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]" : "[]", pe = p ? "[\\uE000-\\uF8FF]" : "[]", te = s(l, m, "[\\-\\.\\_\\~]", ce);
4509
+ n(l + s(l, m, "[\\+\\-\\.]") + "*"), n(n(N + "|" + s(te, H, "[\\:]")) + "*");
4510
4510
  var ae = n(n("25[0-5]") + "|" + n("2[0-4]" + m) + "|" + n("1" + m + m) + "|" + n("0?[1-9]" + m) + "|0?0?" + m), he = n(ae + "\\." + ae + "\\." + ae + "\\." + ae), K = n(C + "{1,4}"), ue = n(n(K + "\\:" + K) + "|" + he), ge = n(n(K + "\\:") + "{6}" + ue), de = n("\\:\\:" + n(K + "\\:") + "{5}" + ue), tt = n(n(K) + "?\\:\\:" + n(K + "\\:") + "{4}" + ue), ze = n(n(n(K + "\\:") + "{0,1}" + K) + "?\\:\\:" + n(K + "\\:") + "{3}" + ue), We = n(n(n(K + "\\:") + "{0,2}" + K) + "?\\:\\:" + n(K + "\\:") + "{2}" + ue), _t = n(n(n(K + "\\:") + "{0,3}" + K) + "?\\:\\:" + K + "\\:" + ue), ct = n(n(n(K + "\\:") + "{0,4}" + K) + "?\\:\\:" + ue), Ie = n(n(n(K + "\\:") + "{0,5}" + K) + "?\\:\\:" + K), Be = n(n(n(K + "\\:") + "{0,6}" + K) + "?\\:\\:"), lt = n([ge, de, tt, ze, We, _t, ct, Ie, Be].join("|")), Qe = n(n(te + "|" + N) + "+");
4511
4511
  n("[vV]" + C + "+\\." + s(te, H, "[\\:]") + "+"), n(n(N + "|" + s(te, H)) + "*");
4512
4512
  var Ot = n(N + "|" + s(te, H, "[\\:\\@]"));
4513
4513
  return n(n(N + "|" + s(te, H, "[\\@]")) + "+"), n(n(Ot + "|" + s("[\\/\\?]", pe)) + "*"), {
4514
- NOT_SCHEME: new RegExp(s("[^]", c, m, "[\\+\\-\\.]"), "g"),
4514
+ NOT_SCHEME: new RegExp(s("[^]", l, m, "[\\+\\-\\.]"), "g"),
4515
4515
  NOT_USERINFO: new RegExp(s("[^\\%\\:]", te, H), "g"),
4516
4516
  NOT_HOST: new RegExp(s("[^\\%\\[\\]\\:]", te, H), "g"),
4517
4517
  NOT_PATH: new RegExp(s("[^\\%\\/\\:\\@]", te, H), "g"),
@@ -4528,10 +4528,10 @@ var Wr = {}, Nr = { exports: {} };
4528
4528
  };
4529
4529
  }
4530
4530
  var f = d(!1), y = d(!0), P = function() {
4531
- function p(c, m) {
4531
+ function p(l, m) {
4532
4532
  var C = [], N = !0, B = !1, H = void 0;
4533
4533
  try {
4534
- for (var re = c[Symbol.iterator](), ce; !(N = (ce = re.next()).done) && (C.push(ce.value), !(m && C.length === m)); N = !0)
4534
+ for (var re = l[Symbol.iterator](), ce; !(N = (ce = re.next()).done) && (C.push(ce.value), !(m && C.length === m)); N = !0)
4535
4535
  ;
4536
4536
  } catch (pe) {
4537
4537
  B = !0, H = pe;
@@ -4545,17 +4545,17 @@ var Wr = {}, Nr = { exports: {} };
4545
4545
  }
4546
4546
  return C;
4547
4547
  }
4548
- return function(c, m) {
4549
- if (Array.isArray(c))
4550
- return c;
4551
- if (Symbol.iterator in Object(c))
4552
- return p(c, m);
4548
+ return function(l, m) {
4549
+ if (Array.isArray(l))
4550
+ return l;
4551
+ if (Symbol.iterator in Object(l))
4552
+ return p(l, m);
4553
4553
  throw new TypeError("Invalid attempt to destructure non-iterable instance");
4554
4554
  };
4555
4555
  }(), b = function(p) {
4556
4556
  if (Array.isArray(p)) {
4557
- for (var c = 0, m = Array(p.length); c < p.length; c++)
4558
- m[c] = p[c];
4557
+ for (var l = 0, m = Array(p.length); l < p.length; l++)
4558
+ m[l] = p[l];
4559
4559
  return m;
4560
4560
  } else
4561
4561
  return Array.from(p);
@@ -4567,49 +4567,49 @@ var Wr = {}, Nr = { exports: {} };
4567
4567
  function se(p) {
4568
4568
  throw new RangeError(J[p]);
4569
4569
  }
4570
- function Ae(p, c) {
4570
+ function Ae(p, l) {
4571
4571
  for (var m = [], C = p.length; C--; )
4572
- m[C] = c(p[C]);
4572
+ m[C] = l(p[C]);
4573
4573
  return m;
4574
4574
  }
4575
- function Ue(p, c) {
4575
+ function Ue(p, l) {
4576
4576
  var m = p.split("@"), C = "";
4577
4577
  m.length > 1 && (C = m[0] + "@", p = m[1]), p = p.replace(G, ".");
4578
- var N = p.split("."), B = Ae(N, c).join(".");
4578
+ var N = p.split("."), B = Ae(N, l).join(".");
4579
4579
  return C + B;
4580
4580
  }
4581
4581
  function Je(p) {
4582
- for (var c = [], m = 0, C = p.length; m < C; ) {
4582
+ for (var l = [], m = 0, C = p.length; m < C; ) {
4583
4583
  var N = p.charCodeAt(m++);
4584
4584
  if (N >= 55296 && N <= 56319 && m < C) {
4585
4585
  var B = p.charCodeAt(m++);
4586
- (B & 64512) == 56320 ? c.push(((N & 1023) << 10) + (B & 1023) + 65536) : (c.push(N), m--);
4586
+ (B & 64512) == 56320 ? l.push(((N & 1023) << 10) + (B & 1023) + 65536) : (l.push(N), m--);
4587
4587
  } else
4588
- c.push(N);
4588
+ l.push(N);
4589
4589
  }
4590
- return c;
4591
- }
4592
- var it = function(c) {
4593
- return String.fromCodePoint.apply(String, b(c));
4594
- }, et = function(c) {
4595
- return c - 48 < 10 ? c - 22 : c - 65 < 26 ? c - 65 : c - 97 < 26 ? c - 97 : E;
4596
- }, U = function(c, m) {
4597
- return c + 22 + 75 * (c < 26) - ((m != 0) << 5);
4598
- }, R = function(c, m, C) {
4590
+ return l;
4591
+ }
4592
+ var it = function(l) {
4593
+ return String.fromCodePoint.apply(String, b(l));
4594
+ }, et = function(l) {
4595
+ return l - 48 < 10 ? l - 22 : l - 65 < 26 ? l - 65 : l - 97 < 26 ? l - 97 : E;
4596
+ }, U = function(l, m) {
4597
+ return l + 22 + 75 * (l < 26) - ((m != 0) << 5);
4598
+ }, R = function(l, m, C) {
4599
4599
  var N = 0;
4600
4600
  for (
4601
- c = C ? Q(c / T) : c >> 1, c += Q(c / m);
4601
+ l = C ? Q(l / T) : l >> 1, l += Q(l / m);
4602
4602
  /* no initialization */
4603
- c > ie * g >> 1;
4603
+ l > ie * g >> 1;
4604
4604
  N += E
4605
4605
  )
4606
- c = Q(c / ie);
4607
- return Q(N + (ie + 1) * c / (c + v));
4608
- }, M = function(c) {
4609
- var m = [], C = c.length, N = 0, B = F, H = j, re = c.lastIndexOf(S);
4606
+ l = Q(l / ie);
4607
+ return Q(N + (ie + 1) * l / (l + v));
4608
+ }, M = function(l) {
4609
+ var m = [], C = l.length, N = 0, B = F, H = j, re = l.lastIndexOf(S);
4610
4610
  re < 0 && (re = 0);
4611
4611
  for (var ce = 0; ce < re; ++ce)
4612
- c.charCodeAt(ce) >= 128 && se("not-basic"), m.push(c.charCodeAt(ce));
4612
+ l.charCodeAt(ce) >= 128 && se("not-basic"), m.push(l.charCodeAt(ce));
4613
4613
  for (var pe = re > 0 ? re + 1 : 0; pe < C; ) {
4614
4614
  for (
4615
4615
  var te = N, ae = 1, he = E;
@@ -4618,7 +4618,7 @@ var Wr = {}, Nr = { exports: {} };
4618
4618
  he += E
4619
4619
  ) {
4620
4620
  pe >= C && se("invalid-input");
4621
- var K = et(c.charCodeAt(pe++));
4621
+ var K = et(l.charCodeAt(pe++));
4622
4622
  (K >= E || K > Q((_ - N) / ae)) && se("overflow"), N += K * ae;
4623
4623
  var ue = he <= H ? w : he >= H + g ? g : he - H;
4624
4624
  if (K < ue)
@@ -4630,12 +4630,12 @@ var Wr = {}, Nr = { exports: {} };
4630
4630
  H = R(N - te, de, te == 0), Q(N / de) > _ - B && se("overflow"), B += Q(N / de), N %= de, m.splice(N++, 0, B);
4631
4631
  }
4632
4632
  return String.fromCodePoint.apply(String, m);
4633
- }, O = function(c) {
4633
+ }, O = function(l) {
4634
4634
  var m = [];
4635
- c = Je(c);
4636
- var C = c.length, N = F, B = 0, H = j, re = !0, ce = !1, pe = void 0;
4635
+ l = Je(l);
4636
+ var C = l.length, N = F, B = 0, H = j, re = !0, ce = !1, pe = void 0;
4637
4637
  try {
4638
- for (var te = c[Symbol.iterator](), ae; !(re = (ae = te.next()).done); re = !0) {
4638
+ for (var te = l[Symbol.iterator](), ae; !(re = (ae = te.next()).done); re = !0) {
4639
4639
  var he = ae.value;
4640
4640
  he < 128 && m.push(oe(he));
4641
4641
  }
@@ -4653,7 +4653,7 @@ var Wr = {}, Nr = { exports: {} };
4653
4653
  for (K && m.push(S); ue < C; ) {
4654
4654
  var ge = _, de = !0, tt = !1, ze = void 0;
4655
4655
  try {
4656
- for (var We = c[Symbol.iterator](), _t; !(de = (_t = We.next()).done); de = !0) {
4656
+ for (var We = l[Symbol.iterator](), _t; !(de = (_t = We.next()).done); de = !0) {
4657
4657
  var ct = _t.value;
4658
4658
  ct >= N && ct < ge && (ge = ct);
4659
4659
  }
@@ -4671,22 +4671,22 @@ var Wr = {}, Nr = { exports: {} };
4671
4671
  ge - N > Q((_ - B) / Ie) && se("overflow"), B += (ge - N) * Ie, N = ge;
4672
4672
  var Be = !0, lt = !1, Qe = void 0;
4673
4673
  try {
4674
- for (var Ot = c[Symbol.iterator](), Nn; !(Be = (Nn = Ot.next()).done); Be = !0) {
4675
- var Cn = Nn.value;
4676
- if (Cn < N && ++B > _ && se("overflow"), Cn == N) {
4674
+ for (var Ot = l[Symbol.iterator](), On; !(Be = (On = Ot.next()).done); Be = !0) {
4675
+ var Nn = On.value;
4676
+ if (Nn < N && ++B > _ && se("overflow"), Nn == N) {
4677
4677
  for (
4678
- var Bt = B, Ht = E;
4678
+ var Ht = B, Gt = E;
4679
4679
  ;
4680
4680
  /* no condition */
4681
- Ht += E
4681
+ Gt += E
4682
4682
  ) {
4683
- var Gt = Ht <= H ? w : Ht >= H + g ? g : Ht - H;
4684
- if (Bt < Gt)
4683
+ var xt = Gt <= H ? w : Gt >= H + g ? g : Gt - H;
4684
+ if (Ht < xt)
4685
4685
  break;
4686
- var In = Bt - Gt, jn = E - Gt;
4687
- m.push(oe(U(Gt + In % jn, 0))), Bt = Q(In / jn);
4686
+ var Cn = Ht - xt, In = E - xt;
4687
+ m.push(oe(U(xt + Cn % In, 0))), Ht = Q(Cn / In);
4688
4688
  }
4689
- m.push(oe(U(Bt, 0))), H = R(B, Ie, ue == K), B = 0, ++ue;
4689
+ m.push(oe(U(Ht, 0))), H = R(B, Ie, ue == K), B = 0, ++ue;
4690
4690
  }
4691
4691
  }
4692
4692
  } catch (Nt) {
@@ -4702,12 +4702,12 @@ var Wr = {}, Nr = { exports: {} };
4702
4702
  ++B, ++N;
4703
4703
  }
4704
4704
  return m.join("");
4705
- }, o = function(c) {
4706
- return Ue(c, function(m) {
4705
+ }, o = function(l) {
4706
+ return Ue(l, function(m) {
4707
4707
  return I.test(m) ? M(m.slice(4).toLowerCase()) : m;
4708
4708
  });
4709
- }, h = function(c) {
4710
- return Ue(c, function(m) {
4709
+ }, h = function(l) {
4710
+ return Ue(l, function(m) {
4711
4711
  return q.test(m) ? "xn--" + O(m) : m;
4712
4712
  });
4713
4713
  }, D = {
@@ -4734,53 +4734,53 @@ var Wr = {}, Nr = { exports: {} };
4734
4734
  toUnicode: o
4735
4735
  }, V = {};
4736
4736
  function z(p) {
4737
- var c = p.charCodeAt(0), m = void 0;
4738
- return c < 16 ? m = "%0" + c.toString(16).toUpperCase() : c < 128 ? m = "%" + c.toString(16).toUpperCase() : c < 2048 ? m = "%" + (c >> 6 | 192).toString(16).toUpperCase() + "%" + (c & 63 | 128).toString(16).toUpperCase() : m = "%" + (c >> 12 | 224).toString(16).toUpperCase() + "%" + (c >> 6 & 63 | 128).toString(16).toUpperCase() + "%" + (c & 63 | 128).toString(16).toUpperCase(), m;
4737
+ var l = p.charCodeAt(0), m = void 0;
4738
+ return l < 16 ? m = "%0" + l.toString(16).toUpperCase() : l < 128 ? m = "%" + l.toString(16).toUpperCase() : l < 2048 ? m = "%" + (l >> 6 | 192).toString(16).toUpperCase() + "%" + (l & 63 | 128).toString(16).toUpperCase() : m = "%" + (l >> 12 | 224).toString(16).toUpperCase() + "%" + (l >> 6 & 63 | 128).toString(16).toUpperCase() + "%" + (l & 63 | 128).toString(16).toUpperCase(), m;
4739
4739
  }
4740
4740
  function Z(p) {
4741
- for (var c = "", m = 0, C = p.length; m < C; ) {
4741
+ for (var l = "", m = 0, C = p.length; m < C; ) {
4742
4742
  var N = parseInt(p.substr(m + 1, 2), 16);
4743
4743
  if (N < 128)
4744
- c += String.fromCharCode(N), m += 3;
4744
+ l += String.fromCharCode(N), m += 3;
4745
4745
  else if (N >= 194 && N < 224) {
4746
4746
  if (C - m >= 6) {
4747
4747
  var B = parseInt(p.substr(m + 4, 2), 16);
4748
- c += String.fromCharCode((N & 31) << 6 | B & 63);
4748
+ l += String.fromCharCode((N & 31) << 6 | B & 63);
4749
4749
  } else
4750
- c += p.substr(m, 6);
4750
+ l += p.substr(m, 6);
4751
4751
  m += 6;
4752
4752
  } else if (N >= 224) {
4753
4753
  if (C - m >= 9) {
4754
4754
  var H = parseInt(p.substr(m + 4, 2), 16), re = parseInt(p.substr(m + 7, 2), 16);
4755
- c += String.fromCharCode((N & 15) << 12 | (H & 63) << 6 | re & 63);
4755
+ l += String.fromCharCode((N & 15) << 12 | (H & 63) << 6 | re & 63);
4756
4756
  } else
4757
- c += p.substr(m, 9);
4757
+ l += p.substr(m, 9);
4758
4758
  m += 9;
4759
4759
  } else
4760
- c += p.substr(m, 3), m += 3;
4760
+ l += p.substr(m, 3), m += 3;
4761
4761
  }
4762
- return c;
4762
+ return l;
4763
4763
  }
4764
- function Y(p, c) {
4764
+ function Y(p, l) {
4765
4765
  function m(C) {
4766
4766
  var N = Z(C);
4767
- return N.match(c.UNRESERVED) ? N : C;
4767
+ return N.match(l.UNRESERVED) ? N : C;
4768
4768
  }
4769
- return p.scheme && (p.scheme = String(p.scheme).replace(c.PCT_ENCODED, m).toLowerCase().replace(c.NOT_SCHEME, "")), p.userinfo !== void 0 && (p.userinfo = String(p.userinfo).replace(c.PCT_ENCODED, m).replace(c.NOT_USERINFO, z).replace(c.PCT_ENCODED, l)), p.host !== void 0 && (p.host = String(p.host).replace(c.PCT_ENCODED, m).toLowerCase().replace(c.NOT_HOST, z).replace(c.PCT_ENCODED, l)), p.path !== void 0 && (p.path = String(p.path).replace(c.PCT_ENCODED, m).replace(p.scheme ? c.NOT_PATH : c.NOT_PATH_NOSCHEME, z).replace(c.PCT_ENCODED, l)), p.query !== void 0 && (p.query = String(p.query).replace(c.PCT_ENCODED, m).replace(c.NOT_QUERY, z).replace(c.PCT_ENCODED, l)), p.fragment !== void 0 && (p.fragment = String(p.fragment).replace(c.PCT_ENCODED, m).replace(c.NOT_FRAGMENT, z).replace(c.PCT_ENCODED, l)), p;
4769
+ return p.scheme && (p.scheme = String(p.scheme).replace(l.PCT_ENCODED, m).toLowerCase().replace(l.NOT_SCHEME, "")), p.userinfo !== void 0 && (p.userinfo = String(p.userinfo).replace(l.PCT_ENCODED, m).replace(l.NOT_USERINFO, z).replace(l.PCT_ENCODED, c)), p.host !== void 0 && (p.host = String(p.host).replace(l.PCT_ENCODED, m).toLowerCase().replace(l.NOT_HOST, z).replace(l.PCT_ENCODED, c)), p.path !== void 0 && (p.path = String(p.path).replace(l.PCT_ENCODED, m).replace(p.scheme ? l.NOT_PATH : l.NOT_PATH_NOSCHEME, z).replace(l.PCT_ENCODED, c)), p.query !== void 0 && (p.query = String(p.query).replace(l.PCT_ENCODED, m).replace(l.NOT_QUERY, z).replace(l.PCT_ENCODED, c)), p.fragment !== void 0 && (p.fragment = String(p.fragment).replace(l.PCT_ENCODED, m).replace(l.NOT_FRAGMENT, z).replace(l.PCT_ENCODED, c)), p;
4770
4770
  }
4771
4771
  function $(p) {
4772
4772
  return p.replace(/^0*(.*)/, "$1") || "0";
4773
4773
  }
4774
- function k(p, c) {
4775
- var m = p.match(c.IPV4ADDRESS) || [], C = P(m, 2), N = C[1];
4774
+ function k(p, l) {
4775
+ var m = p.match(l.IPV4ADDRESS) || [], C = P(m, 2), N = C[1];
4776
4776
  return N ? N.split(".").map($).join(".") : p;
4777
4777
  }
4778
- function A(p, c) {
4779
- var m = p.match(c.IPV6ADDRESS) || [], C = P(m, 3), N = C[1], B = C[2];
4778
+ function A(p, l) {
4779
+ var m = p.match(l.IPV6ADDRESS) || [], C = P(m, 3), N = C[1], B = C[2];
4780
4780
  if (N) {
4781
- for (var H = N.toLowerCase().split("::").reverse(), re = P(H, 2), ce = re[0], pe = re[1], te = pe ? pe.split(":").map($) : [], ae = ce.split(":").map($), he = c.IPV4ADDRESS.test(ae[ae.length - 1]), K = he ? 7 : 8, ue = ae.length - K, ge = Array(K), de = 0; de < K; ++de)
4781
+ for (var H = N.toLowerCase().split("::").reverse(), re = P(H, 2), ce = re[0], pe = re[1], te = pe ? pe.split(":").map($) : [], ae = ce.split(":").map($), he = l.IPV4ADDRESS.test(ae[ae.length - 1]), K = he ? 7 : 8, ue = ae.length - K, ge = Array(K), de = 0; de < K; ++de)
4782
4782
  ge[de] = te[de] || ae[ue + de] || "";
4783
- he && (ge[K - 1] = k(ge[K - 1], c));
4783
+ he && (ge[K - 1] = k(ge[K - 1], l));
4784
4784
  var tt = ge.reduce(function(Ie, Be, lt) {
4785
4785
  if (!Be || Be === "0") {
4786
4786
  var Qe = Ie[Ie.length - 1];
@@ -4801,14 +4801,14 @@ var Wr = {}, Nr = { exports: {} };
4801
4801
  }
4802
4802
  var L = /^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i, W = "".match(/(){0}/)[1] === void 0;
4803
4803
  function x(p) {
4804
- var c = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, m = {}, C = c.iri !== !1 ? y : f;
4805
- c.reference === "suffix" && (p = (c.scheme ? c.scheme + ":" : "") + "//" + p);
4804
+ var l = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, m = {}, C = l.iri !== !1 ? y : f;
4805
+ l.reference === "suffix" && (p = (l.scheme ? l.scheme + ":" : "") + "//" + p);
4806
4806
  var N = p.match(L);
4807
4807
  if (N) {
4808
- W ? (m.scheme = N[1], m.userinfo = N[3], m.host = N[4], m.port = parseInt(N[5], 10), m.path = N[6] || "", m.query = N[7], m.fragment = N[8], isNaN(m.port) && (m.port = N[5])) : (m.scheme = N[1] || void 0, m.userinfo = p.indexOf("@") !== -1 ? N[3] : void 0, m.host = p.indexOf("//") !== -1 ? N[4] : void 0, m.port = parseInt(N[5], 10), m.path = N[6] || "", m.query = p.indexOf("?") !== -1 ? N[7] : void 0, m.fragment = p.indexOf("#") !== -1 ? N[8] : void 0, isNaN(m.port) && (m.port = p.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/) ? N[4] : void 0)), m.host && (m.host = A(k(m.host, C), C)), m.scheme === void 0 && m.userinfo === void 0 && m.host === void 0 && m.port === void 0 && !m.path && m.query === void 0 ? m.reference = "same-document" : m.scheme === void 0 ? m.reference = "relative" : m.fragment === void 0 ? m.reference = "absolute" : m.reference = "uri", c.reference && c.reference !== "suffix" && c.reference !== m.reference && (m.error = m.error || "URI is not a " + c.reference + " reference.");
4809
- var B = V[(c.scheme || m.scheme || "").toLowerCase()];
4810
- if (!c.unicodeSupport && (!B || !B.unicodeSupport)) {
4811
- if (m.host && (c.domainHost || B && B.domainHost))
4808
+ W ? (m.scheme = N[1], m.userinfo = N[3], m.host = N[4], m.port = parseInt(N[5], 10), m.path = N[6] || "", m.query = N[7], m.fragment = N[8], isNaN(m.port) && (m.port = N[5])) : (m.scheme = N[1] || void 0, m.userinfo = p.indexOf("@") !== -1 ? N[3] : void 0, m.host = p.indexOf("//") !== -1 ? N[4] : void 0, m.port = parseInt(N[5], 10), m.path = N[6] || "", m.query = p.indexOf("?") !== -1 ? N[7] : void 0, m.fragment = p.indexOf("#") !== -1 ? N[8] : void 0, isNaN(m.port) && (m.port = p.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/) ? N[4] : void 0)), m.host && (m.host = A(k(m.host, C), C)), m.scheme === void 0 && m.userinfo === void 0 && m.host === void 0 && m.port === void 0 && !m.path && m.query === void 0 ? m.reference = "same-document" : m.scheme === void 0 ? m.reference = "relative" : m.fragment === void 0 ? m.reference = "absolute" : m.reference = "uri", l.reference && l.reference !== "suffix" && l.reference !== m.reference && (m.error = m.error || "URI is not a " + l.reference + " reference.");
4809
+ var B = V[(l.scheme || m.scheme || "").toLowerCase()];
4810
+ if (!l.unicodeSupport && (!B || !B.unicodeSupport)) {
4811
+ if (m.host && (l.domainHost || B && B.domainHost))
4812
4812
  try {
4813
4813
  m.host = D.toASCII(m.host.replace(C.PCT_ENCODED, Z).toLowerCase());
4814
4814
  } catch (H) {
@@ -4817,123 +4817,123 @@ var Wr = {}, Nr = { exports: {} };
4817
4817
  Y(m, f);
4818
4818
  } else
4819
4819
  Y(m, C);
4820
- B && B.parse && B.parse(m, c);
4820
+ B && B.parse && B.parse(m, l);
4821
4821
  } else
4822
4822
  m.error = m.error || "URI can not be parsed.";
4823
4823
  return m;
4824
4824
  }
4825
- function $e(p, c) {
4826
- var m = c.iri !== !1 ? y : f, C = [];
4825
+ function $e(p, l) {
4826
+ var m = l.iri !== !1 ? y : f, C = [];
4827
4827
  return p.userinfo !== void 0 && (C.push(p.userinfo), C.push("@")), p.host !== void 0 && C.push(A(k(String(p.host), m), m).replace(m.IPV6ADDRESS, function(N, B, H) {
4828
4828
  return "[" + B + (H ? "%25" + H : "") + "]";
4829
4829
  })), (typeof p.port == "number" || typeof p.port == "string") && (C.push(":"), C.push(String(p.port))), C.length ? C.join("") : void 0;
4830
4830
  }
4831
4831
  var Re = /^\.\.?\//, we = /^\/\.(\/|$)/, be = /^\/\.\.(\/|$)/, _e = /^\/?(?:.|\n)*?(?=\/|$)/;
4832
4832
  function Ne(p) {
4833
- for (var c = []; p.length; )
4833
+ for (var l = []; p.length; )
4834
4834
  if (p.match(Re))
4835
4835
  p = p.replace(Re, "");
4836
4836
  else if (p.match(we))
4837
4837
  p = p.replace(we, "/");
4838
4838
  else if (p.match(be))
4839
- p = p.replace(be, "/"), c.pop();
4839
+ p = p.replace(be, "/"), l.pop();
4840
4840
  else if (p === "." || p === "..")
4841
4841
  p = "";
4842
4842
  else {
4843
4843
  var m = p.match(_e);
4844
4844
  if (m) {
4845
4845
  var C = m[0];
4846
- p = p.slice(C.length), c.push(C);
4846
+ p = p.slice(C.length), l.push(C);
4847
4847
  } else
4848
4848
  throw new Error("Unexpected dot segment condition");
4849
4849
  }
4850
- return c.join("");
4850
+ return l.join("");
4851
4851
  }
4852
4852
  function fe(p) {
4853
- var c = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, m = c.iri ? y : f, C = [], N = V[(c.scheme || p.scheme || "").toLowerCase()];
4854
- if (N && N.serialize && N.serialize(p, c), p.host && !m.IPV6ADDRESS.test(p.host)) {
4855
- if (c.domainHost || N && N.domainHost)
4853
+ var l = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, m = l.iri ? y : f, C = [], N = V[(l.scheme || p.scheme || "").toLowerCase()];
4854
+ if (N && N.serialize && N.serialize(p, l), p.host && !m.IPV6ADDRESS.test(p.host)) {
4855
+ if (l.domainHost || N && N.domainHost)
4856
4856
  try {
4857
- p.host = c.iri ? D.toUnicode(p.host) : D.toASCII(p.host.replace(m.PCT_ENCODED, Z).toLowerCase());
4857
+ p.host = l.iri ? D.toUnicode(p.host) : D.toASCII(p.host.replace(m.PCT_ENCODED, Z).toLowerCase());
4858
4858
  } catch (re) {
4859
- p.error = p.error || "Host's domain name can not be converted to " + (c.iri ? "Unicode" : "ASCII") + " via punycode: " + re;
4859
+ p.error = p.error || "Host's domain name can not be converted to " + (l.iri ? "Unicode" : "ASCII") + " via punycode: " + re;
4860
4860
  }
4861
4861
  }
4862
- Y(p, m), c.reference !== "suffix" && p.scheme && (C.push(p.scheme), C.push(":"));
4863
- var B = $e(p, c);
4864
- if (B !== void 0 && (c.reference !== "suffix" && C.push("//"), C.push(B), p.path && p.path.charAt(0) !== "/" && C.push("/")), p.path !== void 0) {
4862
+ Y(p, m), l.reference !== "suffix" && p.scheme && (C.push(p.scheme), C.push(":"));
4863
+ var B = $e(p, l);
4864
+ if (B !== void 0 && (l.reference !== "suffix" && C.push("//"), C.push(B), p.path && p.path.charAt(0) !== "/" && C.push("/")), p.path !== void 0) {
4865
4865
  var H = p.path;
4866
- !c.absolutePath && (!N || !N.absolutePath) && (H = Ne(H)), B === void 0 && (H = H.replace(/^\/\//, "/%2F")), C.push(H);
4866
+ !l.absolutePath && (!N || !N.absolutePath) && (H = Ne(H)), B === void 0 && (H = H.replace(/^\/\//, "/%2F")), C.push(H);
4867
4867
  }
4868
4868
  return p.query !== void 0 && (C.push("?"), C.push(p.query)), p.fragment !== void 0 && (C.push("#"), C.push(p.fragment)), C.join("");
4869
4869
  }
4870
- function gt(p, c) {
4870
+ function gt(p, l) {
4871
4871
  var m = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, C = arguments[3], N = {};
4872
- return C || (p = x(fe(p, m), m), c = x(fe(c, m), m)), m = m || {}, !m.tolerant && c.scheme ? (N.scheme = c.scheme, N.userinfo = c.userinfo, N.host = c.host, N.port = c.port, N.path = Ne(c.path || ""), N.query = c.query) : (c.userinfo !== void 0 || c.host !== void 0 || c.port !== void 0 ? (N.userinfo = c.userinfo, N.host = c.host, N.port = c.port, N.path = Ne(c.path || ""), N.query = c.query) : (c.path ? (c.path.charAt(0) === "/" ? N.path = Ne(c.path) : ((p.userinfo !== void 0 || p.host !== void 0 || p.port !== void 0) && !p.path ? N.path = "/" + c.path : p.path ? N.path = p.path.slice(0, p.path.lastIndexOf("/") + 1) + c.path : N.path = c.path, N.path = Ne(N.path)), N.query = c.query) : (N.path = p.path, c.query !== void 0 ? N.query = c.query : N.query = p.query), N.userinfo = p.userinfo, N.host = p.host, N.port = p.port), N.scheme = p.scheme), N.fragment = c.fragment, N;
4872
+ return C || (p = x(fe(p, m), m), l = x(fe(l, m), m)), m = m || {}, !m.tolerant && l.scheme ? (N.scheme = l.scheme, N.userinfo = l.userinfo, N.host = l.host, N.port = l.port, N.path = Ne(l.path || ""), N.query = l.query) : (l.userinfo !== void 0 || l.host !== void 0 || l.port !== void 0 ? (N.userinfo = l.userinfo, N.host = l.host, N.port = l.port, N.path = Ne(l.path || ""), N.query = l.query) : (l.path ? (l.path.charAt(0) === "/" ? N.path = Ne(l.path) : ((p.userinfo !== void 0 || p.host !== void 0 || p.port !== void 0) && !p.path ? N.path = "/" + l.path : p.path ? N.path = p.path.slice(0, p.path.lastIndexOf("/") + 1) + l.path : N.path = l.path, N.path = Ne(N.path)), N.query = l.query) : (N.path = p.path, l.query !== void 0 ? N.query = l.query : N.query = p.query), N.userinfo = p.userinfo, N.host = p.host, N.port = p.port), N.scheme = p.scheme), N.fragment = l.fragment, N;
4873
4873
  }
4874
- function Tt(p, c, m) {
4874
+ function Tt(p, l, m) {
4875
4875
  var C = u({ scheme: "null" }, m);
4876
- return fe(gt(x(p, C), x(c, C), C, !0), C);
4876
+ return fe(gt(x(p, C), x(l, C), C, !0), C);
4877
4877
  }
4878
- function ot(p, c) {
4879
- return typeof p == "string" ? p = fe(x(p, c), c) : i(p) === "object" && (p = x(fe(p, c), c)), p;
4878
+ function ot(p, l) {
4879
+ return typeof p == "string" ? p = fe(x(p, l), l) : i(p) === "object" && (p = x(fe(p, l), l)), p;
4880
4880
  }
4881
- function Rt(p, c, m) {
4882
- return typeof p == "string" ? p = fe(x(p, m), m) : i(p) === "object" && (p = fe(p, m)), typeof c == "string" ? c = fe(x(c, m), m) : i(c) === "object" && (c = fe(c, m)), p === c;
4881
+ function Rt(p, l, m) {
4882
+ return typeof p == "string" ? p = fe(x(p, m), m) : i(p) === "object" && (p = fe(p, m)), typeof l == "string" ? l = fe(x(l, m), m) : i(l) === "object" && (l = fe(l, m)), p === l;
4883
4883
  }
4884
- function Wt(p, c) {
4885
- return p && p.toString().replace(!c || !c.iri ? f.ESCAPE : y.ESCAPE, z);
4884
+ function Bt(p, l) {
4885
+ return p && p.toString().replace(!l || !l.iri ? f.ESCAPE : y.ESCAPE, z);
4886
4886
  }
4887
- function Ce(p, c) {
4888
- return p && p.toString().replace(!c || !c.iri ? f.PCT_ENCODED : y.PCT_ENCODED, Z);
4887
+ function Ce(p, l) {
4888
+ return p && p.toString().replace(!l || !l.iri ? f.PCT_ENCODED : y.PCT_ENCODED, Z);
4889
4889
  }
4890
4890
  var at = {
4891
4891
  scheme: "http",
4892
4892
  domainHost: !0,
4893
- parse: function(c, m) {
4894
- return c.host || (c.error = c.error || "HTTP URIs must have a host."), c;
4893
+ parse: function(l, m) {
4894
+ return l.host || (l.error = l.error || "HTTP URIs must have a host."), l;
4895
4895
  },
4896
- serialize: function(c, m) {
4897
- var C = String(c.scheme).toLowerCase() === "https";
4898
- return (c.port === (C ? 443 : 80) || c.port === "") && (c.port = void 0), c.path || (c.path = "/"), c;
4896
+ serialize: function(l, m) {
4897
+ var C = String(l.scheme).toLowerCase() === "https";
4898
+ return (l.port === (C ? 443 : 80) || l.port === "") && (l.port = void 0), l.path || (l.path = "/"), l;
4899
4899
  }
4900
- }, bn = {
4900
+ }, wn = {
4901
4901
  scheme: "https",
4902
4902
  domainHost: at.domainHost,
4903
4903
  parse: at.parse,
4904
4904
  serialize: at.serialize
4905
4905
  };
4906
- function En(p) {
4906
+ function bn(p) {
4907
4907
  return typeof p.secure == "boolean" ? p.secure : String(p.scheme).toLowerCase() === "wss";
4908
4908
  }
4909
4909
  var kt = {
4910
4910
  scheme: "ws",
4911
4911
  domainHost: !0,
4912
- parse: function(c, m) {
4913
- var C = c;
4914
- return C.secure = En(C), C.resourceName = (C.path || "/") + (C.query ? "?" + C.query : ""), C.path = void 0, C.query = void 0, C;
4912
+ parse: function(l, m) {
4913
+ var C = l;
4914
+ return C.secure = bn(C), C.resourceName = (C.path || "/") + (C.query ? "?" + C.query : ""), C.path = void 0, C.query = void 0, C;
4915
4915
  },
4916
- serialize: function(c, m) {
4917
- if ((c.port === (En(c) ? 443 : 80) || c.port === "") && (c.port = void 0), typeof c.secure == "boolean" && (c.scheme = c.secure ? "wss" : "ws", c.secure = void 0), c.resourceName) {
4918
- var C = c.resourceName.split("?"), N = P(C, 2), B = N[0], H = N[1];
4919
- c.path = B && B !== "/" ? B : void 0, c.query = H, c.resourceName = void 0;
4916
+ serialize: function(l, m) {
4917
+ if ((l.port === (bn(l) ? 443 : 80) || l.port === "") && (l.port = void 0), typeof l.secure == "boolean" && (l.scheme = l.secure ? "wss" : "ws", l.secure = void 0), l.resourceName) {
4918
+ var C = l.resourceName.split("?"), N = P(C, 2), B = N[0], H = N[1];
4919
+ l.path = B && B !== "/" ? B : void 0, l.query = H, l.resourceName = void 0;
4920
4920
  }
4921
- return c.fragment = void 0, c;
4921
+ return l.fragment = void 0, l;
4922
4922
  }
4923
- }, Pn = {
4923
+ }, En = {
4924
4924
  scheme: "wss",
4925
4925
  domainHost: kt.domainHost,
4926
4926
  parse: kt.parse,
4927
4927
  serialize: kt.serialize
4928
- }, Bs = {}, Sn = "[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]", Ve = "[0-9A-Fa-f]", Hs = n(n("%[EFef]" + Ve + "%" + Ve + Ve + "%" + Ve + Ve) + "|" + n("%[89A-Fa-f]" + Ve + "%" + Ve + Ve) + "|" + n("%" + Ve + Ve)), Gs = "[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]", xs = "[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]", Ks = s(xs, '[\\"\\\\]'), Js = "[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]", Qs = new RegExp(Sn, "g"), $t = new RegExp(Hs, "g"), Zs = new RegExp(s("[^]", Gs, "[\\.]", '[\\"]', Ks), "g"), Tn = new RegExp(s("[^]", Sn, Js), "g"), Ys = Tn;
4928
+ }, zs = {}, Pn = "[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]", Ve = "[0-9A-Fa-f]", Ws = n(n("%[EFef]" + Ve + "%" + Ve + Ve + "%" + Ve + Ve) + "|" + n("%[89A-Fa-f]" + Ve + "%" + Ve + Ve) + "|" + n("%" + Ve + Ve)), Bs = "[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]", Hs = "[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]", Gs = s(Hs, '[\\"\\\\]'), xs = "[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]", Ks = new RegExp(Pn, "g"), $t = new RegExp(Ws, "g"), Js = new RegExp(s("[^]", Bs, "[\\.]", '[\\"]', Gs), "g"), Sn = new RegExp(s("[^]", Pn, xs), "g"), Qs = Sn;
4929
4929
  function yr(p) {
4930
- var c = Z(p);
4931
- return c.match(Qs) ? c : p;
4930
+ var l = Z(p);
4931
+ return l.match(Ks) ? l : p;
4932
4932
  }
4933
- var Rn = {
4933
+ var Tn = {
4934
4934
  scheme: "mailto",
4935
- parse: function(c, m) {
4936
- var C = c, N = C.to = C.path ? C.path.split(",") : [];
4935
+ parse: function(l, m) {
4936
+ var C = l, N = C.to = C.path ? C.path.split(",") : [];
4937
4937
  if (C.path = void 0, C.query) {
4938
4938
  for (var B = !1, H = {}, re = C.query.split("&"), ce = 0, pe = re.length; ce < pe; ++ce) {
4939
4939
  var te = re[ce].split("=");
@@ -4970,11 +4970,11 @@ var Wr = {}, Nr = { exports: {} };
4970
4970
  }
4971
4971
  return C;
4972
4972
  },
4973
- serialize: function(c, m) {
4974
- var C = c, N = a(c.to);
4973
+ serialize: function(l, m) {
4974
+ var C = l, N = a(l.to);
4975
4975
  if (N) {
4976
4976
  for (var B = 0, H = N.length; B < H; ++B) {
4977
- var re = String(N[B]), ce = re.lastIndexOf("@"), pe = re.slice(0, ce).replace($t, yr).replace($t, l).replace(Zs, z), te = re.slice(ce + 1);
4977
+ var re = String(N[B]), ce = re.lastIndexOf("@"), pe = re.slice(0, ce).replace($t, yr).replace($t, c).replace(Js, z), te = re.slice(ce + 1);
4978
4978
  try {
4979
4979
  te = m.iri ? D.toUnicode(te) : D.toASCII(Ce(te, m).toLowerCase());
4980
4980
  } catch (ue) {
@@ -4984,17 +4984,17 @@ var Wr = {}, Nr = { exports: {} };
4984
4984
  }
4985
4985
  C.path = N.join(",");
4986
4986
  }
4987
- var ae = c.headers = c.headers || {};
4988
- c.subject && (ae.subject = c.subject), c.body && (ae.body = c.body);
4987
+ var ae = l.headers = l.headers || {};
4988
+ l.subject && (ae.subject = l.subject), l.body && (ae.body = l.body);
4989
4989
  var he = [];
4990
4990
  for (var K in ae)
4991
- ae[K] !== Bs[K] && he.push(K.replace($t, yr).replace($t, l).replace(Tn, z) + "=" + ae[K].replace($t, yr).replace($t, l).replace(Ys, z));
4991
+ ae[K] !== zs[K] && he.push(K.replace($t, yr).replace($t, c).replace(Sn, z) + "=" + ae[K].replace($t, yr).replace($t, c).replace(Qs, z));
4992
4992
  return he.length && (C.query = he.join("&")), C;
4993
4993
  }
4994
- }, Xs = /^([^\:]+)\:(.*)/, kn = {
4994
+ }, Zs = /^([^\:]+)\:(.*)/, Rn = {
4995
4995
  scheme: "urn",
4996
- parse: function(c, m) {
4997
- var C = c.path && c.path.match(Xs), N = c;
4996
+ parse: function(l, m) {
4997
+ var C = l.path && l.path.match(Zs), N = l;
4998
4998
  if (C) {
4999
4999
  var B = m.scheme || N.scheme || "urn", H = C[1].toLowerCase(), re = C[2], ce = B + ":" + (m.nid || H), pe = V[ce];
5000
5000
  N.nid = H, N.nss = re, N.path = void 0, pe && (N = pe.parse(N, m));
@@ -5002,31 +5002,31 @@ var Wr = {}, Nr = { exports: {} };
5002
5002
  N.error = N.error || "URN can not be parsed.";
5003
5003
  return N;
5004
5004
  },
5005
- serialize: function(c, m) {
5006
- var C = m.scheme || c.scheme || "urn", N = c.nid, B = C + ":" + (m.nid || N), H = V[B];
5007
- H && (c = H.serialize(c, m));
5008
- var re = c, ce = c.nss;
5005
+ serialize: function(l, m) {
5006
+ var C = m.scheme || l.scheme || "urn", N = l.nid, B = C + ":" + (m.nid || N), H = V[B];
5007
+ H && (l = H.serialize(l, m));
5008
+ var re = l, ce = l.nss;
5009
5009
  return re.path = (N || m.nid) + ":" + ce, re;
5010
5010
  }
5011
- }, ei = /^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/, On = {
5011
+ }, Ys = /^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/, kn = {
5012
5012
  scheme: "urn:uuid",
5013
- parse: function(c, m) {
5014
- var C = c;
5015
- return C.uuid = C.nss, C.nss = void 0, !m.tolerant && (!C.uuid || !C.uuid.match(ei)) && (C.error = C.error || "UUID is not valid."), C;
5013
+ parse: function(l, m) {
5014
+ var C = l;
5015
+ return C.uuid = C.nss, C.nss = void 0, !m.tolerant && (!C.uuid || !C.uuid.match(Ys)) && (C.error = C.error || "UUID is not valid."), C;
5016
5016
  },
5017
- serialize: function(c, m) {
5018
- var C = c;
5019
- return C.nss = (c.uuid || "").toLowerCase(), C;
5017
+ serialize: function(l, m) {
5018
+ var C = l;
5019
+ return C.nss = (l.uuid || "").toLowerCase(), C;
5020
5020
  }
5021
5021
  };
5022
- V[at.scheme] = at, V[bn.scheme] = bn, V[kt.scheme] = kt, V[Pn.scheme] = Pn, V[Rn.scheme] = Rn, V[kn.scheme] = kn, V[On.scheme] = On, r.SCHEMES = V, r.pctEncChar = z, r.pctDecChars = Z, r.parse = x, r.removeDotSegments = Ne, r.serialize = fe, r.resolveComponents = gt, r.resolve = Tt, r.normalize = ot, r.equal = Rt, r.escapeComponent = Wt, r.unescapeComponent = Ce, Object.defineProperty(r, "__esModule", { value: !0 });
5022
+ V[at.scheme] = at, V[wn.scheme] = wn, V[kt.scheme] = kt, V[En.scheme] = En, V[Tn.scheme] = Tn, V[Rn.scheme] = Rn, V[kn.scheme] = kn, r.SCHEMES = V, r.pctEncChar = z, r.pctDecChars = Z, r.parse = x, r.removeDotSegments = Ne, r.serialize = fe, r.resolveComponents = gt, r.resolve = Tt, r.normalize = ot, r.equal = Rt, r.escapeComponent = Bt, r.unescapeComponent = Ce, Object.defineProperty(r, "__esModule", { value: !0 });
5023
5023
  });
5024
5024
  })(Nr, Nr.exports);
5025
- var ta = Nr.exports;
5026
- Object.defineProperty(Wr, "__esModule", { value: !0 });
5027
- const Ds = ta;
5028
- Ds.code = 'require("ajv/dist/runtime/uri").default';
5029
- Wr.default = Ds;
5025
+ var Xo = Nr.exports;
5026
+ Object.defineProperty(zr, "__esModule", { value: !0 });
5027
+ const Is = Xo;
5028
+ Is.code = 'require("ajv/dist/runtime/uri").default';
5029
+ zr.default = Is;
5030
5030
  (function(e) {
5031
5031
  Object.defineProperty(e, "__esModule", { value: !0 }), e.CodeGen = e.Name = e.nil = e.stringify = e.str = e._ = e.KeywordCxt = void 0;
5032
5032
  var t = fr();
@@ -5047,7 +5047,7 @@ Wr.default = Ds;
5047
5047
  } }), Object.defineProperty(e, "CodeGen", { enumerable: !0, get: function() {
5048
5048
  return r.CodeGen;
5049
5049
  } });
5050
- const s = Vr(), n = Vt, i = ht, l = Oe, a = ee, u = Pe, d = Lt, f = ne, y = ea, P = Wr, b = (U, R) => new RegExp(U, R);
5050
+ const s = Vt, n = zt, i = ht, c = Oe, a = ee, u = Pe, d = Lt, f = ne, y = Yo, P = zr, b = (U, R) => new RegExp(U, R);
5051
5051
  b.code = "new RegExp";
5052
5052
  const _ = ["removeAdditional", "useDefaults", "coerceTypes"], E = /* @__PURE__ */ new Set([
5053
5053
  "validate",
@@ -5086,14 +5086,14 @@ Wr.default = Ds;
5086
5086
  }, v = 200;
5087
5087
  function T(U) {
5088
5088
  var R, M, O, o, h, D, V, z, Z, Y, $, k, A, L, W, x, $e, Re, we, be, _e, Ne, fe, gt, Tt;
5089
- const ot = U.strict, Rt = (R = U.code) === null || R === void 0 ? void 0 : R.optimize, Wt = Rt === !0 || Rt === void 0 ? 1 : Rt || 0, Ce = (O = (M = U.code) === null || M === void 0 ? void 0 : M.regExp) !== null && O !== void 0 ? O : b, at = (o = U.uriResolver) !== null && o !== void 0 ? o : P.default;
5089
+ const ot = U.strict, Rt = (R = U.code) === null || R === void 0 ? void 0 : R.optimize, Bt = Rt === !0 || Rt === void 0 ? 1 : Rt || 0, Ce = (O = (M = U.code) === null || M === void 0 ? void 0 : M.regExp) !== null && O !== void 0 ? O : b, at = (o = U.uriResolver) !== null && o !== void 0 ? o : P.default;
5090
5090
  return {
5091
5091
  strictSchema: (D = (h = U.strictSchema) !== null && h !== void 0 ? h : ot) !== null && D !== void 0 ? D : !0,
5092
5092
  strictNumbers: (z = (V = U.strictNumbers) !== null && V !== void 0 ? V : ot) !== null && z !== void 0 ? z : !0,
5093
5093
  strictTypes: (Y = (Z = U.strictTypes) !== null && Z !== void 0 ? Z : ot) !== null && Y !== void 0 ? Y : "log",
5094
5094
  strictTuples: (k = ($ = U.strictTuples) !== null && $ !== void 0 ? $ : ot) !== null && k !== void 0 ? k : "log",
5095
5095
  strictRequired: (L = (A = U.strictRequired) !== null && A !== void 0 ? A : ot) !== null && L !== void 0 ? L : !1,
5096
- code: U.code ? { ...U.code, optimize: Wt, regExp: Ce } : { optimize: Wt, regExp: Ce },
5096
+ code: U.code ? { ...U.code, optimize: Bt, regExp: Ce } : { optimize: Bt, regExp: Ce },
5097
5097
  loopRequired: (W = U.loopRequired) !== null && W !== void 0 ? W : v,
5098
5098
  loopEnum: (x = U.loopEnum) !== null && x !== void 0 ? x : v,
5099
5099
  meta: ($e = U.meta) !== null && $e !== void 0 ? $e : !0,
@@ -5229,8 +5229,8 @@ Wr.default = Ds;
5229
5229
  for (; typeof (M = S.call(this, R)) == "string"; )
5230
5230
  R = M;
5231
5231
  if (M === void 0) {
5232
- const { schemaId: O } = this.opts, o = new l.SchemaEnv({ schema: {}, schemaId: O });
5233
- if (M = l.resolveSchema.call(this, o, R), !M)
5232
+ const { schemaId: O } = this.opts, o = new c.SchemaEnv({ schema: {}, schemaId: O });
5233
+ if (M = c.resolveSchema.call(this, o, R), !M)
5234
5234
  return;
5235
5235
  this.refs[R] = M;
5236
5236
  }
@@ -5346,14 +5346,14 @@ Wr.default = Ds;
5346
5346
  return z;
5347
5347
  O = (0, u.normalizeId)(D || O);
5348
5348
  const Z = u.getSchemaRefs.call(this, R, O);
5349
- return z = new l.SchemaEnv({ schema: R, schemaId: V, meta: M, baseId: O, localRefs: Z }), this._cache.set(z.schema, z), h && !O.startsWith("#") && (O && this._checkUnique(O), this.refs[O] = z), o && this.validateSchema(R, !0), z;
5349
+ return z = new c.SchemaEnv({ schema: R, schemaId: V, meta: M, baseId: O, localRefs: Z }), this._cache.set(z.schema, z), h && !O.startsWith("#") && (O && this._checkUnique(O), this.refs[O] = z), o && this.validateSchema(R, !0), z;
5350
5350
  }
5351
5351
  _checkUnique(R) {
5352
5352
  if (this.schemas[R] || this.refs[R])
5353
5353
  throw new Error(`schema with key or id "${R}" already exists`);
5354
5354
  }
5355
5355
  _compileSchemaEnv(R) {
5356
- if (R.meta ? this._compileMetaSchema(R) : l.compileSchema.call(this, R), !R.validate)
5356
+ if (R.meta ? this._compileMetaSchema(R) : c.compileSchema.call(this, R), !R.validate)
5357
5357
  throw new Error("ajv implementation error");
5358
5358
  return R.validate;
5359
5359
  }
@@ -5361,7 +5361,7 @@ Wr.default = Ds;
5361
5361
  const M = this.opts;
5362
5362
  this.opts = this._metaOpts;
5363
5363
  try {
5364
- l.compileSchema.call(this, R);
5364
+ c.compileSchema.call(this, R);
5365
5365
  } finally {
5366
5366
  this.opts = M;
5367
5367
  }
@@ -5466,40 +5466,40 @@ Wr.default = Ds;
5466
5466
  function et(U) {
5467
5467
  return { anyOf: [U, it] };
5468
5468
  }
5469
- })(Es);
5470
- var Br = {}, Hr = {}, Gr = {};
5471
- Object.defineProperty(Gr, "__esModule", { value: !0 });
5472
- const ra = {
5469
+ })(bs);
5470
+ var Wr = {}, Br = {}, Hr = {};
5471
+ Object.defineProperty(Hr, "__esModule", { value: !0 });
5472
+ const ea = {
5473
5473
  keyword: "id",
5474
5474
  code() {
5475
5475
  throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID');
5476
5476
  }
5477
5477
  };
5478
- Gr.default = ra;
5478
+ Hr.default = ea;
5479
5479
  var mt = {};
5480
5480
  Object.defineProperty(mt, "__esModule", { value: !0 });
5481
5481
  mt.callRef = mt.getValidate = void 0;
5482
- const na = Vt, Hn = X, ke = ee, vt = Ke, Gn = Oe, Kt = ne, sa = {
5482
+ const ta = zt, Bn = X, ke = ee, vt = Ke, Hn = Oe, Kt = ne, ra = {
5483
5483
  keyword: "$ref",
5484
5484
  schemaType: "string",
5485
5485
  code(e) {
5486
- const { gen: t, schema: r, it: s } = e, { baseId: n, schemaEnv: i, validateName: l, opts: a, self: u } = s, { root: d } = i;
5486
+ const { gen: t, schema: r, it: s } = e, { baseId: n, schemaEnv: i, validateName: c, opts: a, self: u } = s, { root: d } = i;
5487
5487
  if ((r === "#" || r === "#/") && n === d.baseId)
5488
5488
  return y();
5489
- const f = Gn.resolveRef.call(u, d, n, r);
5489
+ const f = Hn.resolveRef.call(u, d, n, r);
5490
5490
  if (f === void 0)
5491
- throw new na.default(s.opts.uriResolver, n, r);
5492
- if (f instanceof Gn.SchemaEnv)
5491
+ throw new ta.default(s.opts.uriResolver, n, r);
5492
+ if (f instanceof Hn.SchemaEnv)
5493
5493
  return P(f);
5494
5494
  return b(f);
5495
5495
  function y() {
5496
5496
  if (i === d)
5497
- return tr(e, l, i, i.$async);
5497
+ return tr(e, c, i, i.$async);
5498
5498
  const _ = t.scopeValue("root", { ref: d });
5499
5499
  return tr(e, (0, ke._)`${_}.validate`, d, d.$async);
5500
5500
  }
5501
5501
  function P(_) {
5502
- const E = As(e, _);
5502
+ const E = js(e, _);
5503
5503
  tr(e, E, _, _.$async);
5504
5504
  }
5505
5505
  function b(_) {
@@ -5514,26 +5514,26 @@ const na = Vt, Hn = X, ke = ee, vt = Ke, Gn = Oe, Kt = ne, sa = {
5514
5514
  }
5515
5515
  }
5516
5516
  };
5517
- function As(e, t) {
5517
+ function js(e, t) {
5518
5518
  const { gen: r } = e;
5519
5519
  return t.validate ? r.scopeValue("validate", { ref: t.validate }) : (0, ke._)`${r.scopeValue("wrapper", { ref: t })}.validate`;
5520
5520
  }
5521
- mt.getValidate = As;
5521
+ mt.getValidate = js;
5522
5522
  function tr(e, t, r, s) {
5523
- const { gen: n, it: i } = e, { allErrors: l, schemaEnv: a, opts: u } = i, d = u.passContext ? vt.default.this : ke.nil;
5523
+ const { gen: n, it: i } = e, { allErrors: c, schemaEnv: a, opts: u } = i, d = u.passContext ? vt.default.this : ke.nil;
5524
5524
  s ? f() : y();
5525
5525
  function f() {
5526
5526
  if (!a.$async)
5527
5527
  throw new Error("async schema referenced by sync schema");
5528
5528
  const _ = n.let("valid");
5529
5529
  n.try(() => {
5530
- n.code((0, ke._)`await ${(0, Hn.callValidateCode)(e, t, d)}`), b(t), l || n.assign(_, !0);
5530
+ n.code((0, ke._)`await ${(0, Bn.callValidateCode)(e, t, d)}`), b(t), c || n.assign(_, !0);
5531
5531
  }, (E) => {
5532
- n.if((0, ke._)`!(${E} instanceof ${i.ValidationError})`, () => n.throw(E)), P(E), l || n.assign(_, !1);
5532
+ n.if((0, ke._)`!(${E} instanceof ${i.ValidationError})`, () => n.throw(E)), P(E), c || n.assign(_, !1);
5533
5533
  }), e.ok(_);
5534
5534
  }
5535
5535
  function y() {
5536
- e.result((0, Hn.callValidateCode)(e, t, d), () => b(t), () => P(t));
5536
+ e.result((0, Bn.callValidateCode)(e, t, d), () => b(t), () => P(t));
5537
5537
  }
5538
5538
  function P(_) {
5539
5539
  const E = (0, ke._)`${_}.errors`;
@@ -5561,147 +5561,147 @@ function tr(e, t, r, s) {
5561
5561
  }
5562
5562
  }
5563
5563
  mt.callRef = tr;
5564
- mt.default = sa;
5565
- Object.defineProperty(Hr, "__esModule", { value: !0 });
5566
- const ia = Gr, oa = mt, aa = [
5564
+ mt.default = ra;
5565
+ Object.defineProperty(Br, "__esModule", { value: !0 });
5566
+ const na = Hr, sa = mt, ia = [
5567
5567
  "$schema",
5568
5568
  "$id",
5569
5569
  "$defs",
5570
5570
  "$vocabulary",
5571
5571
  { keyword: "$comment" },
5572
5572
  "definitions",
5573
- ia.default,
5574
- oa.default
5573
+ na.default,
5574
+ sa.default
5575
5575
  ];
5576
- Hr.default = aa;
5577
- var xr = {}, Kr = {};
5578
- Object.defineProperty(Kr, "__esModule", { value: !0 });
5576
+ Br.default = ia;
5577
+ var Gr = {}, xr = {};
5578
+ Object.defineProperty(xr, "__esModule", { value: !0 });
5579
5579
  const or = ee, nt = or.operators, ar = {
5580
5580
  maximum: { okStr: "<=", ok: nt.LTE, fail: nt.GT },
5581
5581
  minimum: { okStr: ">=", ok: nt.GTE, fail: nt.LT },
5582
5582
  exclusiveMaximum: { okStr: "<", ok: nt.LT, fail: nt.GTE },
5583
5583
  exclusiveMinimum: { okStr: ">", ok: nt.GT, fail: nt.LTE }
5584
- }, ca = {
5584
+ }, oa = {
5585
5585
  message: ({ keyword: e, schemaCode: t }) => (0, or.str)`must be ${ar[e].okStr} ${t}`,
5586
5586
  params: ({ keyword: e, schemaCode: t }) => (0, or._)`{comparison: ${ar[e].okStr}, limit: ${t}}`
5587
- }, la = {
5587
+ }, aa = {
5588
5588
  keyword: Object.keys(ar),
5589
5589
  type: "number",
5590
5590
  schemaType: "number",
5591
5591
  $data: !0,
5592
- error: ca,
5592
+ error: oa,
5593
5593
  code(e) {
5594
5594
  const { keyword: t, data: r, schemaCode: s } = e;
5595
5595
  e.fail$data((0, or._)`${r} ${ar[t].fail} ${s} || isNaN(${r})`);
5596
5596
  }
5597
5597
  };
5598
- Kr.default = la;
5599
- var Jr = {};
5600
- Object.defineProperty(Jr, "__esModule", { value: !0 });
5601
- const Dt = ee, ua = {
5598
+ xr.default = aa;
5599
+ var Kr = {};
5600
+ Object.defineProperty(Kr, "__esModule", { value: !0 });
5601
+ const Dt = ee, ca = {
5602
5602
  message: ({ schemaCode: e }) => (0, Dt.str)`must be multiple of ${e}`,
5603
5603
  params: ({ schemaCode: e }) => (0, Dt._)`{multipleOf: ${e}}`
5604
- }, da = {
5604
+ }, la = {
5605
5605
  keyword: "multipleOf",
5606
5606
  type: "number",
5607
5607
  schemaType: "number",
5608
5608
  $data: !0,
5609
- error: ua,
5609
+ error: ca,
5610
5610
  code(e) {
5611
- const { gen: t, data: r, schemaCode: s, it: n } = e, i = n.opts.multipleOfPrecision, l = t.let("res"), a = i ? (0, Dt._)`Math.abs(Math.round(${l}) - ${l}) > 1e-${i}` : (0, Dt._)`${l} !== parseInt(${l})`;
5612
- e.fail$data((0, Dt._)`(${s} === 0 || (${l} = ${r}/${s}, ${a}))`);
5611
+ const { gen: t, data: r, schemaCode: s, it: n } = e, i = n.opts.multipleOfPrecision, c = t.let("res"), a = i ? (0, Dt._)`Math.abs(Math.round(${c}) - ${c}) > 1e-${i}` : (0, Dt._)`${c} !== parseInt(${c})`;
5612
+ e.fail$data((0, Dt._)`(${s} === 0 || (${c} = ${r}/${s}, ${a}))`);
5613
5613
  }
5614
5614
  };
5615
- Jr.default = da;
5616
- var Qr = {}, Zr = {};
5617
- Object.defineProperty(Zr, "__esModule", { value: !0 });
5618
- function Ms(e) {
5615
+ Kr.default = la;
5616
+ var Jr = {}, Qr = {};
5617
+ Object.defineProperty(Qr, "__esModule", { value: !0 });
5618
+ function Ds(e) {
5619
5619
  const t = e.length;
5620
5620
  let r = 0, s = 0, n;
5621
5621
  for (; s < t; )
5622
5622
  r++, n = e.charCodeAt(s++), n >= 55296 && n <= 56319 && s < t && (n = e.charCodeAt(s), (n & 64512) === 56320 && s++);
5623
5623
  return r;
5624
5624
  }
5625
- Zr.default = Ms;
5626
- Ms.code = 'require("ajv/dist/runtime/ucs2length").default';
5627
- Object.defineProperty(Qr, "__esModule", { value: !0 });
5628
- const ft = ee, fa = ne, pa = Zr, ha = {
5625
+ Qr.default = Ds;
5626
+ Ds.code = 'require("ajv/dist/runtime/ucs2length").default';
5627
+ Object.defineProperty(Jr, "__esModule", { value: !0 });
5628
+ const ft = ee, ua = ne, da = Qr, fa = {
5629
5629
  message({ keyword: e, schemaCode: t }) {
5630
5630
  const r = e === "maxLength" ? "more" : "fewer";
5631
5631
  return (0, ft.str)`must NOT have ${r} than ${t} characters`;
5632
5632
  },
5633
5633
  params: ({ schemaCode: e }) => (0, ft._)`{limit: ${e}}`
5634
- }, ma = {
5634
+ }, pa = {
5635
5635
  keyword: ["maxLength", "minLength"],
5636
5636
  type: "string",
5637
5637
  schemaType: "number",
5638
5638
  $data: !0,
5639
- error: ha,
5639
+ error: fa,
5640
5640
  code(e) {
5641
- const { keyword: t, data: r, schemaCode: s, it: n } = e, i = t === "maxLength" ? ft.operators.GT : ft.operators.LT, l = n.opts.unicode === !1 ? (0, ft._)`${r}.length` : (0, ft._)`${(0, fa.useFunc)(e.gen, pa.default)}(${r})`;
5642
- e.fail$data((0, ft._)`${l} ${i} ${s}`);
5641
+ const { keyword: t, data: r, schemaCode: s, it: n } = e, i = t === "maxLength" ? ft.operators.GT : ft.operators.LT, c = n.opts.unicode === !1 ? (0, ft._)`${r}.length` : (0, ft._)`${(0, ua.useFunc)(e.gen, da.default)}(${r})`;
5642
+ e.fail$data((0, ft._)`${c} ${i} ${s}`);
5643
5643
  }
5644
5644
  };
5645
- Qr.default = ma;
5646
- var Yr = {};
5647
- Object.defineProperty(Yr, "__esModule", { value: !0 });
5648
- const ya = X, cr = ee, ga = {
5645
+ Jr.default = pa;
5646
+ var Zr = {};
5647
+ Object.defineProperty(Zr, "__esModule", { value: !0 });
5648
+ const ha = X, cr = ee, ma = {
5649
5649
  message: ({ schemaCode: e }) => (0, cr.str)`must match pattern "${e}"`,
5650
5650
  params: ({ schemaCode: e }) => (0, cr._)`{pattern: ${e}}`
5651
- }, $a = {
5651
+ }, ya = {
5652
5652
  keyword: "pattern",
5653
5653
  type: "string",
5654
5654
  schemaType: "string",
5655
5655
  $data: !0,
5656
- error: ga,
5656
+ error: ma,
5657
5657
  code(e) {
5658
- const { data: t, $data: r, schema: s, schemaCode: n, it: i } = e, l = i.opts.unicodeRegExp ? "u" : "", a = r ? (0, cr._)`(new RegExp(${n}, ${l}))` : (0, ya.usePattern)(e, s);
5658
+ const { data: t, $data: r, schema: s, schemaCode: n, it: i } = e, c = i.opts.unicodeRegExp ? "u" : "", a = r ? (0, cr._)`(new RegExp(${n}, ${c}))` : (0, ha.usePattern)(e, s);
5659
5659
  e.fail$data((0, cr._)`!${a}.test(${t})`);
5660
5660
  }
5661
5661
  };
5662
- Yr.default = $a;
5663
- var Xr = {};
5664
- Object.defineProperty(Xr, "__esModule", { value: !0 });
5665
- const At = ee, _a = {
5662
+ Zr.default = ya;
5663
+ var Yr = {};
5664
+ Object.defineProperty(Yr, "__esModule", { value: !0 });
5665
+ const At = ee, ga = {
5666
5666
  message({ keyword: e, schemaCode: t }) {
5667
5667
  const r = e === "maxProperties" ? "more" : "fewer";
5668
5668
  return (0, At.str)`must NOT have ${r} than ${t} properties`;
5669
5669
  },
5670
5670
  params: ({ schemaCode: e }) => (0, At._)`{limit: ${e}}`
5671
- }, va = {
5671
+ }, $a = {
5672
5672
  keyword: ["maxProperties", "minProperties"],
5673
5673
  type: "object",
5674
5674
  schemaType: "number",
5675
5675
  $data: !0,
5676
- error: _a,
5676
+ error: ga,
5677
5677
  code(e) {
5678
5678
  const { keyword: t, data: r, schemaCode: s } = e, n = t === "maxProperties" ? At.operators.GT : At.operators.LT;
5679
5679
  e.fail$data((0, At._)`Object.keys(${r}).length ${n} ${s}`);
5680
5680
  }
5681
5681
  };
5682
- Xr.default = va;
5683
- var en = {};
5684
- Object.defineProperty(en, "__esModule", { value: !0 });
5685
- const It = X, Mt = ee, wa = ne, ba = {
5682
+ Yr.default = $a;
5683
+ var Xr = {};
5684
+ Object.defineProperty(Xr, "__esModule", { value: !0 });
5685
+ const It = X, Mt = ee, _a = ne, va = {
5686
5686
  message: ({ params: { missingProperty: e } }) => (0, Mt.str)`must have required property '${e}'`,
5687
5687
  params: ({ params: { missingProperty: e } }) => (0, Mt._)`{missingProperty: ${e}}`
5688
- }, Ea = {
5688
+ }, wa = {
5689
5689
  keyword: "required",
5690
5690
  type: "object",
5691
5691
  schemaType: "array",
5692
5692
  $data: !0,
5693
- error: ba,
5693
+ error: va,
5694
5694
  code(e) {
5695
- const { gen: t, schema: r, schemaCode: s, data: n, $data: i, it: l } = e, { opts: a } = l;
5695
+ const { gen: t, schema: r, schemaCode: s, data: n, $data: i, it: c } = e, { opts: a } = c;
5696
5696
  if (!i && r.length === 0)
5697
5697
  return;
5698
5698
  const u = r.length >= a.loopRequired;
5699
- if (l.allErrors ? d() : f(), a.strictRequired) {
5699
+ if (c.allErrors ? d() : f(), a.strictRequired) {
5700
5700
  const b = e.parentSchema.properties, { definedProperties: _ } = e.it;
5701
5701
  for (const E of r)
5702
5702
  if ((b == null ? void 0 : b[E]) === void 0 && !_.has(E)) {
5703
- const w = l.schemaEnv.baseId + l.errSchemaPath, g = `required property "${E}" is not defined at "${w}" (strictRequired)`;
5704
- (0, wa.checkStrictMode)(l, g, l.opts.strictRequired);
5703
+ const w = c.schemaEnv.baseId + c.errSchemaPath, g = `required property "${E}" is not defined at "${w}" (strictRequired)`;
5704
+ (0, _a.checkStrictMode)(c, g, c.opts.strictRequired);
5705
5705
  }
5706
5706
  }
5707
5707
  function d() {
@@ -5733,48 +5733,48 @@ const It = X, Mt = ee, wa = ne, ba = {
5733
5733
  }
5734
5734
  }
5735
5735
  };
5736
- en.default = Ea;
5737
- var tn = {};
5738
- Object.defineProperty(tn, "__esModule", { value: !0 });
5739
- const Ft = ee, Pa = {
5736
+ Xr.default = wa;
5737
+ var en = {};
5738
+ Object.defineProperty(en, "__esModule", { value: !0 });
5739
+ const Ft = ee, ba = {
5740
5740
  message({ keyword: e, schemaCode: t }) {
5741
5741
  const r = e === "maxItems" ? "more" : "fewer";
5742
5742
  return (0, Ft.str)`must NOT have ${r} than ${t} items`;
5743
5743
  },
5744
5744
  params: ({ schemaCode: e }) => (0, Ft._)`{limit: ${e}}`
5745
- }, Sa = {
5745
+ }, Ea = {
5746
5746
  keyword: ["maxItems", "minItems"],
5747
5747
  type: "array",
5748
5748
  schemaType: "number",
5749
5749
  $data: !0,
5750
- error: Pa,
5750
+ error: ba,
5751
5751
  code(e) {
5752
5752
  const { keyword: t, data: r, schemaCode: s } = e, n = t === "maxItems" ? Ft.operators.GT : Ft.operators.LT;
5753
5753
  e.fail$data((0, Ft._)`${r}.length ${n} ${s}`);
5754
5754
  }
5755
5755
  };
5756
- tn.default = Sa;
5757
- var rn = {}, zt = {};
5758
- Object.defineProperty(zt, "__esModule", { value: !0 });
5759
- const Fs = ks;
5760
- Fs.code = 'require("ajv/dist/runtime/equal").default';
5761
- zt.default = Fs;
5762
- Object.defineProperty(rn, "__esModule", { value: !0 });
5763
- const wr = Lt, Ee = ee, Ta = ne, Ra = zt, ka = {
5756
+ en.default = Ea;
5757
+ var tn = {}, Wt = {};
5758
+ Object.defineProperty(Wt, "__esModule", { value: !0 });
5759
+ const As = Ts;
5760
+ As.code = 'require("ajv/dist/runtime/equal").default';
5761
+ Wt.default = As;
5762
+ Object.defineProperty(tn, "__esModule", { value: !0 });
5763
+ const wr = Lt, Ee = ee, Pa = ne, Sa = Wt, Ta = {
5764
5764
  message: ({ params: { i: e, j: t } }) => (0, Ee.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,
5765
5765
  params: ({ params: { i: e, j: t } }) => (0, Ee._)`{i: ${e}, j: ${t}}`
5766
- }, Oa = {
5766
+ }, Ra = {
5767
5767
  keyword: "uniqueItems",
5768
5768
  type: "array",
5769
5769
  schemaType: "boolean",
5770
5770
  $data: !0,
5771
- error: ka,
5771
+ error: Ta,
5772
5772
  code(e) {
5773
- const { gen: t, data: r, $data: s, schema: n, parentSchema: i, schemaCode: l, it: a } = e;
5773
+ const { gen: t, data: r, $data: s, schema: n, parentSchema: i, schemaCode: c, it: a } = e;
5774
5774
  if (!s && !n)
5775
5775
  return;
5776
5776
  const u = t.let("valid"), d = i.items ? (0, wr.getSchemaTypes)(i.items) : [];
5777
- e.block$data(u, f, (0, Ee._)`${l} === false`), e.ok(u);
5777
+ e.block$data(u, f, (0, Ee._)`${c} === false`), e.ok(u);
5778
5778
  function f() {
5779
5779
  const _ = t.let("i", (0, Ee._)`${r}.length`), E = t.let("j");
5780
5780
  e.setParams({ i: _, j: E }), t.assign(u, !0), t.if((0, Ee._)`${_} > 1`, () => (y() ? P : b)(_, E));
@@ -5791,46 +5791,46 @@ const wr = Lt, Ee = ee, Ta = ne, Ra = zt, ka = {
5791
5791
  });
5792
5792
  }
5793
5793
  function b(_, E) {
5794
- const w = (0, Ta.useFunc)(t, Ra.default), g = t.name("outer");
5794
+ const w = (0, Pa.useFunc)(t, Sa.default), g = t.name("outer");
5795
5795
  t.label(g).for((0, Ee._)`;${_}--;`, () => t.for((0, Ee._)`${E} = ${_}; ${E}--;`, () => t.if((0, Ee._)`${w}(${r}[${_}], ${r}[${E}])`, () => {
5796
5796
  e.error(), t.assign(u, !1).break(g);
5797
5797
  })));
5798
5798
  }
5799
5799
  }
5800
5800
  };
5801
- rn.default = Oa;
5802
- var nn = {};
5803
- Object.defineProperty(nn, "__esModule", { value: !0 });
5804
- const Cr = ee, Na = ne, Ca = zt, Ia = {
5801
+ tn.default = Ra;
5802
+ var rn = {};
5803
+ Object.defineProperty(rn, "__esModule", { value: !0 });
5804
+ const Cr = ee, ka = ne, Oa = Wt, Na = {
5805
5805
  message: "must be equal to constant",
5806
5806
  params: ({ schemaCode: e }) => (0, Cr._)`{allowedValue: ${e}}`
5807
- }, ja = {
5807
+ }, Ca = {
5808
5808
  keyword: "const",
5809
5809
  $data: !0,
5810
- error: Ia,
5810
+ error: Na,
5811
5811
  code(e) {
5812
5812
  const { gen: t, data: r, $data: s, schemaCode: n, schema: i } = e;
5813
- s || i && typeof i == "object" ? e.fail$data((0, Cr._)`!${(0, Na.useFunc)(t, Ca.default)}(${r}, ${n})`) : e.fail((0, Cr._)`${i} !== ${r}`);
5813
+ s || i && typeof i == "object" ? e.fail$data((0, Cr._)`!${(0, ka.useFunc)(t, Oa.default)}(${r}, ${n})`) : e.fail((0, Cr._)`${i} !== ${r}`);
5814
5814
  }
5815
5815
  };
5816
- nn.default = ja;
5817
- var sn = {};
5818
- Object.defineProperty(sn, "__esModule", { value: !0 });
5819
- const jt = ee, Da = ne, Aa = zt, Ma = {
5816
+ rn.default = Ca;
5817
+ var nn = {};
5818
+ Object.defineProperty(nn, "__esModule", { value: !0 });
5819
+ const jt = ee, Ia = ne, ja = Wt, Da = {
5820
5820
  message: "must be equal to one of the allowed values",
5821
5821
  params: ({ schemaCode: e }) => (0, jt._)`{allowedValues: ${e}}`
5822
- }, Fa = {
5822
+ }, Aa = {
5823
5823
  keyword: "enum",
5824
5824
  schemaType: "array",
5825
5825
  $data: !0,
5826
- error: Ma,
5826
+ error: Da,
5827
5827
  code(e) {
5828
- const { gen: t, data: r, $data: s, schema: n, schemaCode: i, it: l } = e;
5828
+ const { gen: t, data: r, $data: s, schema: n, schemaCode: i, it: c } = e;
5829
5829
  if (!s && n.length === 0)
5830
5830
  throw new Error("enum must have non-empty array");
5831
- const a = n.length >= l.opts.loopEnum;
5831
+ const a = n.length >= c.opts.loopEnum;
5832
5832
  let u;
5833
- const d = () => u ?? (u = (0, Da.useFunc)(t, Aa.default));
5833
+ const d = () => u ?? (u = (0, Ia.useFunc)(t, ja.default));
5834
5834
  let f;
5835
5835
  if (a || s)
5836
5836
  f = t.let("valid"), e.block$data(f, y);
@@ -5850,71 +5850,71 @@ const jt = ee, Da = ne, Aa = zt, Ma = {
5850
5850
  }
5851
5851
  }
5852
5852
  };
5853
- sn.default = Fa;
5854
- Object.defineProperty(xr, "__esModule", { value: !0 });
5855
- const qa = Kr, La = Jr, Ua = Qr, Va = Yr, za = Xr, Wa = en, Ba = tn, Ha = rn, Ga = nn, xa = sn, Ka = [
5853
+ nn.default = Aa;
5854
+ Object.defineProperty(Gr, "__esModule", { value: !0 });
5855
+ const Ma = xr, Fa = Kr, qa = Jr, La = Zr, Ua = Yr, Va = Xr, za = en, Wa = tn, Ba = rn, Ha = nn, Ga = [
5856
5856
  // number
5857
+ Ma.default,
5858
+ Fa.default,
5859
+ // string
5857
5860
  qa.default,
5858
5861
  La.default,
5859
- // string
5862
+ // object
5860
5863
  Ua.default,
5861
5864
  Va.default,
5862
- // object
5865
+ // array
5863
5866
  za.default,
5864
5867
  Wa.default,
5865
- // array
5866
- Ba.default,
5867
- Ha.default,
5868
5868
  // any
5869
5869
  { keyword: "type", schemaType: ["string", "array"] },
5870
5870
  { keyword: "nullable", schemaType: "boolean" },
5871
- Ga.default,
5872
- xa.default
5871
+ Ba.default,
5872
+ Ha.default
5873
5873
  ];
5874
- xr.default = Ka;
5875
- var on = {}, Pt = {};
5874
+ Gr.default = Ga;
5875
+ var sn = {}, Pt = {};
5876
5876
  Object.defineProperty(Pt, "__esModule", { value: !0 });
5877
5877
  Pt.validateAdditionalItems = void 0;
5878
- const pt = ee, Ir = ne, Ja = {
5878
+ const pt = ee, Ir = ne, xa = {
5879
5879
  message: ({ params: { len: e } }) => (0, pt.str)`must NOT have more than ${e} items`,
5880
5880
  params: ({ params: { len: e } }) => (0, pt._)`{limit: ${e}}`
5881
- }, Qa = {
5881
+ }, Ka = {
5882
5882
  keyword: "additionalItems",
5883
5883
  type: "array",
5884
5884
  schemaType: ["boolean", "object"],
5885
5885
  before: "uniqueItems",
5886
- error: Ja,
5886
+ error: xa,
5887
5887
  code(e) {
5888
5888
  const { parentSchema: t, it: r } = e, { items: s } = t;
5889
5889
  if (!Array.isArray(s)) {
5890
5890
  (0, Ir.checkStrictMode)(r, '"additionalItems" is ignored when "items" is not an array of schemas');
5891
5891
  return;
5892
5892
  }
5893
- qs(e, s);
5893
+ Ms(e, s);
5894
5894
  }
5895
5895
  };
5896
- function qs(e, t) {
5897
- const { gen: r, schema: s, data: n, keyword: i, it: l } = e;
5898
- l.items = !0;
5896
+ function Ms(e, t) {
5897
+ const { gen: r, schema: s, data: n, keyword: i, it: c } = e;
5898
+ c.items = !0;
5899
5899
  const a = r.const("len", (0, pt._)`${n}.length`);
5900
5900
  if (s === !1)
5901
5901
  e.setParams({ len: t.length }), e.pass((0, pt._)`${a} <= ${t.length}`);
5902
- else if (typeof s == "object" && !(0, Ir.alwaysValidSchema)(l, s)) {
5902
+ else if (typeof s == "object" && !(0, Ir.alwaysValidSchema)(c, s)) {
5903
5903
  const d = r.var("valid", (0, pt._)`${a} <= ${t.length}`);
5904
5904
  r.if((0, pt.not)(d), () => u(d)), e.ok(d);
5905
5905
  }
5906
5906
  function u(d) {
5907
5907
  r.forRange("i", t.length, a, (f) => {
5908
- e.subschema({ keyword: i, dataProp: f, dataPropType: Ir.Type.Num }, d), l.allErrors || r.if((0, pt.not)(d), () => r.break());
5908
+ e.subschema({ keyword: i, dataProp: f, dataPropType: Ir.Type.Num }, d), c.allErrors || r.if((0, pt.not)(d), () => r.break());
5909
5909
  });
5910
5910
  }
5911
5911
  }
5912
- Pt.validateAdditionalItems = qs;
5913
- Pt.default = Qa;
5914
- var an = {}, St = {};
5912
+ Pt.validateAdditionalItems = Ms;
5913
+ Pt.default = Ka;
5914
+ var on = {}, St = {};
5915
5915
  Object.defineProperty(St, "__esModule", { value: !0 });
5916
5916
  St.validateTuple = void 0;
5917
- const xn = ee, rr = ne, Za = X, Ya = {
5917
+ const Gn = ee, rr = ne, Ja = X, Qa = {
5918
5918
  keyword: "items",
5919
5919
  type: "array",
5920
5920
  schemaType: ["object", "array", "boolean"],
@@ -5922,17 +5922,17 @@ const xn = ee, rr = ne, Za = X, Ya = {
5922
5922
  code(e) {
5923
5923
  const { schema: t, it: r } = e;
5924
5924
  if (Array.isArray(t))
5925
- return Ls(e, "additionalItems", t);
5926
- r.items = !0, !(0, rr.alwaysValidSchema)(r, t) && e.ok((0, Za.validateArray)(e));
5925
+ return Fs(e, "additionalItems", t);
5926
+ r.items = !0, !(0, rr.alwaysValidSchema)(r, t) && e.ok((0, Ja.validateArray)(e));
5927
5927
  }
5928
5928
  };
5929
- function Ls(e, t, r = e.schema) {
5930
- const { gen: s, parentSchema: n, data: i, keyword: l, it: a } = e;
5929
+ function Fs(e, t, r = e.schema) {
5930
+ const { gen: s, parentSchema: n, data: i, keyword: c, it: a } = e;
5931
5931
  f(n), a.opts.unevaluated && r.length && a.items !== !0 && (a.items = rr.mergeEvaluated.items(s, r.length, a.items));
5932
- const u = s.name("valid"), d = s.const("len", (0, xn._)`${i}.length`);
5932
+ const u = s.name("valid"), d = s.const("len", (0, Gn._)`${i}.length`);
5933
5933
  r.forEach((y, P) => {
5934
- (0, rr.alwaysValidSchema)(a, y) || (s.if((0, xn._)`${d} > ${P}`, () => e.subschema({
5935
- keyword: l,
5934
+ (0, rr.alwaysValidSchema)(a, y) || (s.if((0, Gn._)`${d} > ${P}`, () => e.subschema({
5935
+ keyword: c,
5936
5936
  schemaProp: P,
5937
5937
  dataProp: P
5938
5938
  }, u)), e.ok(u));
@@ -5940,73 +5940,73 @@ function Ls(e, t, r = e.schema) {
5940
5940
  function f(y) {
5941
5941
  const { opts: P, errSchemaPath: b } = a, _ = r.length, E = _ === y.minItems && (_ === y.maxItems || y[t] === !1);
5942
5942
  if (P.strictTuples && !E) {
5943
- const w = `"${l}" is ${_}-tuple, but minItems or maxItems/${t} are not specified or different at path "${b}"`;
5943
+ const w = `"${c}" is ${_}-tuple, but minItems or maxItems/${t} are not specified or different at path "${b}"`;
5944
5944
  (0, rr.checkStrictMode)(a, w, P.strictTuples);
5945
5945
  }
5946
5946
  }
5947
5947
  }
5948
- St.validateTuple = Ls;
5949
- St.default = Ya;
5950
- Object.defineProperty(an, "__esModule", { value: !0 });
5951
- const Xa = St, ec = {
5948
+ St.validateTuple = Fs;
5949
+ St.default = Qa;
5950
+ Object.defineProperty(on, "__esModule", { value: !0 });
5951
+ const Za = St, Ya = {
5952
5952
  keyword: "prefixItems",
5953
5953
  type: "array",
5954
5954
  schemaType: ["array"],
5955
5955
  before: "uniqueItems",
5956
- code: (e) => (0, Xa.validateTuple)(e, "items")
5956
+ code: (e) => (0, Za.validateTuple)(e, "items")
5957
5957
  };
5958
- an.default = ec;
5959
- var cn = {};
5960
- Object.defineProperty(cn, "__esModule", { value: !0 });
5961
- const Kn = ee, tc = ne, rc = X, nc = Pt, sc = {
5962
- message: ({ params: { len: e } }) => (0, Kn.str)`must NOT have more than ${e} items`,
5963
- params: ({ params: { len: e } }) => (0, Kn._)`{limit: ${e}}`
5964
- }, ic = {
5958
+ on.default = Ya;
5959
+ var an = {};
5960
+ Object.defineProperty(an, "__esModule", { value: !0 });
5961
+ const xn = ee, Xa = ne, ec = X, tc = Pt, rc = {
5962
+ message: ({ params: { len: e } }) => (0, xn.str)`must NOT have more than ${e} items`,
5963
+ params: ({ params: { len: e } }) => (0, xn._)`{limit: ${e}}`
5964
+ }, nc = {
5965
5965
  keyword: "items",
5966
5966
  type: "array",
5967
5967
  schemaType: ["object", "boolean"],
5968
5968
  before: "uniqueItems",
5969
- error: sc,
5969
+ error: rc,
5970
5970
  code(e) {
5971
5971
  const { schema: t, parentSchema: r, it: s } = e, { prefixItems: n } = r;
5972
- s.items = !0, !(0, tc.alwaysValidSchema)(s, t) && (n ? (0, nc.validateAdditionalItems)(e, n) : e.ok((0, rc.validateArray)(e)));
5972
+ s.items = !0, !(0, Xa.alwaysValidSchema)(s, t) && (n ? (0, tc.validateAdditionalItems)(e, n) : e.ok((0, ec.validateArray)(e)));
5973
5973
  }
5974
5974
  };
5975
- cn.default = ic;
5976
- var ln = {};
5977
- Object.defineProperty(ln, "__esModule", { value: !0 });
5978
- const De = ee, Jt = ne, oc = {
5975
+ an.default = nc;
5976
+ var cn = {};
5977
+ Object.defineProperty(cn, "__esModule", { value: !0 });
5978
+ const De = ee, Jt = ne, sc = {
5979
5979
  message: ({ params: { min: e, max: t } }) => t === void 0 ? (0, De.str)`must contain at least ${e} valid item(s)` : (0, De.str)`must contain at least ${e} and no more than ${t} valid item(s)`,
5980
5980
  params: ({ params: { min: e, max: t } }) => t === void 0 ? (0, De._)`{minContains: ${e}}` : (0, De._)`{minContains: ${e}, maxContains: ${t}}`
5981
- }, ac = {
5981
+ }, ic = {
5982
5982
  keyword: "contains",
5983
5983
  type: "array",
5984
5984
  schemaType: ["object", "boolean"],
5985
5985
  before: "uniqueItems",
5986
5986
  trackErrors: !0,
5987
- error: oc,
5987
+ error: sc,
5988
5988
  code(e) {
5989
5989
  const { gen: t, schema: r, parentSchema: s, data: n, it: i } = e;
5990
- let l, a;
5990
+ let c, a;
5991
5991
  const { minContains: u, maxContains: d } = s;
5992
- i.opts.next ? (l = u === void 0 ? 1 : u, a = d) : l = 1;
5992
+ i.opts.next ? (c = u === void 0 ? 1 : u, a = d) : c = 1;
5993
5993
  const f = t.const("len", (0, De._)`${n}.length`);
5994
- if (e.setParams({ min: l, max: a }), a === void 0 && l === 0) {
5994
+ if (e.setParams({ min: c, max: a }), a === void 0 && c === 0) {
5995
5995
  (0, Jt.checkStrictMode)(i, '"minContains" == 0 without "maxContains": "contains" keyword ignored');
5996
5996
  return;
5997
5997
  }
5998
- if (a !== void 0 && l > a) {
5998
+ if (a !== void 0 && c > a) {
5999
5999
  (0, Jt.checkStrictMode)(i, '"minContains" > "maxContains" is always invalid'), e.fail();
6000
6000
  return;
6001
6001
  }
6002
6002
  if ((0, Jt.alwaysValidSchema)(i, r)) {
6003
- let E = (0, De._)`${f} >= ${l}`;
6003
+ let E = (0, De._)`${f} >= ${c}`;
6004
6004
  a !== void 0 && (E = (0, De._)`${E} && ${f} <= ${a}`), e.pass(E);
6005
6005
  return;
6006
6006
  }
6007
6007
  i.items = !0;
6008
6008
  const y = t.name("valid");
6009
- a === void 0 && l === 1 ? b(y, () => t.if(y, () => t.break())) : l === 0 ? (t.let(y, !0), a !== void 0 && t.if((0, De._)`${n}.length > 0`, P)) : (t.let(y, !1), P()), e.result(y, () => e.reset());
6009
+ a === void 0 && c === 1 ? b(y, () => t.if(y, () => t.break())) : c === 0 ? (t.let(y, !0), a !== void 0 && t.if((0, De._)`${n}.length > 0`, P)) : (t.let(y, !1), P()), e.result(y, () => e.reset());
6010
6010
  function P() {
6011
6011
  const E = t.name("_valid"), w = t.let("count", 0);
6012
6012
  b(E, () => t.if(E, () => _(w)));
@@ -6022,12 +6022,12 @@ const De = ee, Jt = ne, oc = {
6022
6022
  });
6023
6023
  }
6024
6024
  function _(E) {
6025
- t.code((0, De._)`${E}++`), a === void 0 ? t.if((0, De._)`${E} >= ${l}`, () => t.assign(y, !0).break()) : (t.if((0, De._)`${E} > ${a}`, () => t.assign(y, !1).break()), l === 1 ? t.assign(y, !0) : t.if((0, De._)`${E} >= ${l}`, () => t.assign(y, !0)));
6025
+ t.code((0, De._)`${E}++`), a === void 0 ? t.if((0, De._)`${E} >= ${c}`, () => t.assign(y, !0).break()) : (t.if((0, De._)`${E} > ${a}`, () => t.assign(y, !1).break()), c === 1 ? t.assign(y, !0) : t.if((0, De._)`${E} >= ${c}`, () => t.assign(y, !0)));
6026
6026
  }
6027
6027
  }
6028
6028
  };
6029
- ln.default = ac;
6030
- var Us = {};
6029
+ cn.default = ic;
6030
+ var qs = {};
6031
6031
  (function(e) {
6032
6032
  Object.defineProperty(e, "__esModule", { value: !0 }), e.validateSchemaDeps = e.validatePropertyDeps = e.error = void 0;
6033
6033
  const t = ee, r = ne, s = X;
@@ -6049,7 +6049,7 @@ var Us = {};
6049
6049
  error: e.error,
6050
6050
  code(u) {
6051
6051
  const [d, f] = i(u);
6052
- l(u, d), a(u, f);
6052
+ c(u, d), a(u, f);
6053
6053
  }
6054
6054
  };
6055
6055
  function i({ schema: u }) {
@@ -6062,7 +6062,7 @@ var Us = {};
6062
6062
  }
6063
6063
  return [d, f];
6064
6064
  }
6065
- function l(u, d = u.schema) {
6065
+ function c(u, d = u.schema) {
6066
6066
  const { gen: f, data: y, it: P } = u;
6067
6067
  if (Object.keys(d).length === 0)
6068
6068
  return;
@@ -6082,7 +6082,7 @@ var Us = {};
6082
6082
  }) : (f.if((0, t._)`${w} && (${(0, s.checkMissingProp)(u, E, b)})`), (0, s.reportMissingProp)(u, b), f.else());
6083
6083
  }
6084
6084
  }
6085
- e.validatePropertyDeps = l;
6085
+ e.validatePropertyDeps = c;
6086
6086
  function a(u, d = u.schema) {
6087
6087
  const { gen: f, data: y, keyword: P, it: b } = u, _ = f.name("valid");
6088
6088
  for (const E in d)
@@ -6097,57 +6097,57 @@ var Us = {};
6097
6097
  ), u.ok(_));
6098
6098
  }
6099
6099
  e.validateSchemaDeps = a, e.default = n;
6100
- })(Us);
6101
- var un = {};
6102
- Object.defineProperty(un, "__esModule", { value: !0 });
6103
- const Vs = ee, cc = ne, lc = {
6100
+ })(qs);
6101
+ var ln = {};
6102
+ Object.defineProperty(ln, "__esModule", { value: !0 });
6103
+ const Ls = ee, oc = ne, ac = {
6104
6104
  message: "property name must be valid",
6105
- params: ({ params: e }) => (0, Vs._)`{propertyName: ${e.propertyName}}`
6106
- }, uc = {
6105
+ params: ({ params: e }) => (0, Ls._)`{propertyName: ${e.propertyName}}`
6106
+ }, cc = {
6107
6107
  keyword: "propertyNames",
6108
6108
  type: "object",
6109
6109
  schemaType: ["object", "boolean"],
6110
- error: lc,
6110
+ error: ac,
6111
6111
  code(e) {
6112
6112
  const { gen: t, schema: r, data: s, it: n } = e;
6113
- if ((0, cc.alwaysValidSchema)(n, r))
6113
+ if ((0, oc.alwaysValidSchema)(n, r))
6114
6114
  return;
6115
6115
  const i = t.name("valid");
6116
- t.forIn("key", s, (l) => {
6117
- e.setParams({ propertyName: l }), e.subschema({
6116
+ t.forIn("key", s, (c) => {
6117
+ e.setParams({ propertyName: c }), e.subschema({
6118
6118
  keyword: "propertyNames",
6119
- data: l,
6119
+ data: c,
6120
6120
  dataTypes: ["string"],
6121
- propertyName: l,
6121
+ propertyName: c,
6122
6122
  compositeRule: !0
6123
- }, i), t.if((0, Vs.not)(i), () => {
6123
+ }, i), t.if((0, Ls.not)(i), () => {
6124
6124
  e.error(!0), n.allErrors || t.break();
6125
6125
  });
6126
6126
  }), e.ok(i);
6127
6127
  }
6128
6128
  };
6129
- un.default = uc;
6129
+ ln.default = cc;
6130
6130
  var mr = {};
6131
6131
  Object.defineProperty(mr, "__esModule", { value: !0 });
6132
- const Qt = X, qe = ee, dc = Ke, Zt = ne, fc = {
6132
+ const Qt = X, qe = ee, lc = Ke, Zt = ne, uc = {
6133
6133
  message: "must NOT have additional properties",
6134
6134
  params: ({ params: e }) => (0, qe._)`{additionalProperty: ${e.additionalProperty}}`
6135
- }, pc = {
6135
+ }, dc = {
6136
6136
  keyword: "additionalProperties",
6137
6137
  type: ["object"],
6138
6138
  schemaType: ["boolean", "object"],
6139
6139
  allowUndefined: !0,
6140
6140
  trackErrors: !0,
6141
- error: fc,
6141
+ error: uc,
6142
6142
  code(e) {
6143
- const { gen: t, schema: r, parentSchema: s, data: n, errsCount: i, it: l } = e;
6143
+ const { gen: t, schema: r, parentSchema: s, data: n, errsCount: i, it: c } = e;
6144
6144
  if (!i)
6145
6145
  throw new Error("ajv implementation error");
6146
- const { allErrors: a, opts: u } = l;
6147
- if (l.props = !0, u.removeAdditional !== "all" && (0, Zt.alwaysValidSchema)(l, r))
6146
+ const { allErrors: a, opts: u } = c;
6147
+ if (c.props = !0, u.removeAdditional !== "all" && (0, Zt.alwaysValidSchema)(c, r))
6148
6148
  return;
6149
6149
  const d = (0, Qt.allSchemaProperties)(s.properties), f = (0, Qt.allSchemaProperties)(s.patternProperties);
6150
- y(), e.ok((0, qe._)`${i} === ${dc.default.errors}`);
6150
+ y(), e.ok((0, qe._)`${i} === ${lc.default.errors}`);
6151
6151
  function y() {
6152
6152
  t.forIn("key", n, (w) => {
6153
6153
  !d.length && !f.length ? _(w) : t.if(P(w), () => _(w));
@@ -6156,7 +6156,7 @@ const Qt = X, qe = ee, dc = Ke, Zt = ne, fc = {
6156
6156
  function P(w) {
6157
6157
  let g;
6158
6158
  if (d.length > 8) {
6159
- const v = (0, Zt.schemaRefOrVal)(l, s.properties, "properties");
6159
+ const v = (0, Zt.schemaRefOrVal)(c, s.properties, "properties");
6160
6160
  g = (0, Qt.isOwnProperty)(t, v, w);
6161
6161
  } else
6162
6162
  d.length ? g = (0, qe.or)(...d.map((v) => (0, qe._)`${w} === ${v}`)) : g = qe.nil;
@@ -6174,7 +6174,7 @@ const Qt = X, qe = ee, dc = Ke, Zt = ne, fc = {
6174
6174
  e.setParams({ additionalProperty: w }), e.error(), a || t.break();
6175
6175
  return;
6176
6176
  }
6177
- if (typeof r == "object" && !(0, Zt.alwaysValidSchema)(l, r)) {
6177
+ if (typeof r == "object" && !(0, Zt.alwaysValidSchema)(c, r)) {
6178
6178
  const g = t.name("valid");
6179
6179
  u.removeAdditional === "failing" ? (E(w, g, !1), t.if((0, qe.not)(g), () => {
6180
6180
  e.reset(), b(w);
@@ -6195,26 +6195,26 @@ const Qt = X, qe = ee, dc = Ke, Zt = ne, fc = {
6195
6195
  }
6196
6196
  }
6197
6197
  };
6198
- mr.default = pc;
6199
- var dn = {};
6200
- Object.defineProperty(dn, "__esModule", { value: !0 });
6201
- const hc = fr(), Jn = X, br = ne, Qn = mr, mc = {
6198
+ mr.default = dc;
6199
+ var un = {};
6200
+ Object.defineProperty(un, "__esModule", { value: !0 });
6201
+ const fc = fr(), Kn = X, br = ne, Jn = mr, pc = {
6202
6202
  keyword: "properties",
6203
6203
  type: "object",
6204
6204
  schemaType: "object",
6205
6205
  code(e) {
6206
6206
  const { gen: t, schema: r, parentSchema: s, data: n, it: i } = e;
6207
- i.opts.removeAdditional === "all" && s.additionalProperties === void 0 && Qn.default.code(new hc.KeywordCxt(i, Qn.default, "additionalProperties"));
6208
- const l = (0, Jn.allSchemaProperties)(r);
6209
- for (const y of l)
6207
+ i.opts.removeAdditional === "all" && s.additionalProperties === void 0 && Jn.default.code(new fc.KeywordCxt(i, Jn.default, "additionalProperties"));
6208
+ const c = (0, Kn.allSchemaProperties)(r);
6209
+ for (const y of c)
6210
6210
  i.definedProperties.add(y);
6211
- i.opts.unevaluated && l.length && i.props !== !0 && (i.props = br.mergeEvaluated.props(t, (0, br.toHash)(l), i.props));
6212
- const a = l.filter((y) => !(0, br.alwaysValidSchema)(i, r[y]));
6211
+ i.opts.unevaluated && c.length && i.props !== !0 && (i.props = br.mergeEvaluated.props(t, (0, br.toHash)(c), i.props));
6212
+ const a = c.filter((y) => !(0, br.alwaysValidSchema)(i, r[y]));
6213
6213
  if (a.length === 0)
6214
6214
  return;
6215
6215
  const u = t.name("valid");
6216
6216
  for (const y of a)
6217
- d(y) ? f(y) : (t.if((0, Jn.propertyInData)(t, n, y, i.opts.ownProperties)), f(y), i.allErrors || t.else().var(u, !0), t.endIf()), e.it.definedProperties.add(y), e.ok(u);
6217
+ d(y) ? f(y) : (t.if((0, Kn.propertyInData)(t, n, y, i.opts.ownProperties)), f(y), i.allErrors || t.else().var(u, !0), t.endIf()), e.it.definedProperties.add(y), e.ok(u);
6218
6218
  function d(y) {
6219
6219
  return i.opts.useDefaults && !i.compositeRule && r[y].default !== void 0;
6220
6220
  }
@@ -6227,19 +6227,19 @@ const hc = fr(), Jn = X, br = ne, Qn = mr, mc = {
6227
6227
  }
6228
6228
  }
6229
6229
  };
6230
- dn.default = mc;
6231
- var fn = {};
6232
- Object.defineProperty(fn, "__esModule", { value: !0 });
6233
- const Zn = X, Yt = ee, Yn = ne, Xn = ne, yc = {
6230
+ un.default = pc;
6231
+ var dn = {};
6232
+ Object.defineProperty(dn, "__esModule", { value: !0 });
6233
+ const Qn = X, Yt = ee, Zn = ne, Yn = ne, hc = {
6234
6234
  keyword: "patternProperties",
6235
6235
  type: "object",
6236
6236
  schemaType: "object",
6237
6237
  code(e) {
6238
- const { gen: t, schema: r, data: s, parentSchema: n, it: i } = e, { opts: l } = i, a = (0, Zn.allSchemaProperties)(r), u = a.filter((E) => (0, Yn.alwaysValidSchema)(i, r[E]));
6238
+ const { gen: t, schema: r, data: s, parentSchema: n, it: i } = e, { opts: c } = i, a = (0, Qn.allSchemaProperties)(r), u = a.filter((E) => (0, Zn.alwaysValidSchema)(i, r[E]));
6239
6239
  if (a.length === 0 || u.length === a.length && (!i.opts.unevaluated || i.props === !0))
6240
6240
  return;
6241
- const d = l.strictSchema && !l.allowMatchingProperties && n.properties, f = t.name("valid");
6242
- i.props !== !0 && !(i.props instanceof Yt.Name) && (i.props = (0, Xn.evaluatedPropsToName)(t, i.props));
6241
+ const d = c.strictSchema && !c.allowMatchingProperties && n.properties, f = t.name("valid");
6242
+ i.props !== !0 && !(i.props instanceof Yt.Name) && (i.props = (0, Yn.evaluatedPropsToName)(t, i.props));
6243
6243
  const { props: y } = i;
6244
6244
  P();
6245
6245
  function P() {
@@ -6248,33 +6248,33 @@ const Zn = X, Yt = ee, Yn = ne, Xn = ne, yc = {
6248
6248
  }
6249
6249
  function b(E) {
6250
6250
  for (const w in d)
6251
- new RegExp(E).test(w) && (0, Yn.checkStrictMode)(i, `property ${w} matches pattern ${E} (use allowMatchingProperties)`);
6251
+ new RegExp(E).test(w) && (0, Zn.checkStrictMode)(i, `property ${w} matches pattern ${E} (use allowMatchingProperties)`);
6252
6252
  }
6253
6253
  function _(E) {
6254
6254
  t.forIn("key", s, (w) => {
6255
- t.if((0, Yt._)`${(0, Zn.usePattern)(e, E)}.test(${w})`, () => {
6255
+ t.if((0, Yt._)`${(0, Qn.usePattern)(e, E)}.test(${w})`, () => {
6256
6256
  const g = u.includes(E);
6257
6257
  g || e.subschema({
6258
6258
  keyword: "patternProperties",
6259
6259
  schemaProp: E,
6260
6260
  dataProp: w,
6261
- dataPropType: Xn.Type.Str
6261
+ dataPropType: Yn.Type.Str
6262
6262
  }, f), i.opts.unevaluated && y !== !0 ? t.assign((0, Yt._)`${y}[${w}]`, !0) : !g && !i.allErrors && t.if((0, Yt.not)(f), () => t.break());
6263
6263
  });
6264
6264
  });
6265
6265
  }
6266
6266
  }
6267
6267
  };
6268
- fn.default = yc;
6269
- var pn = {};
6270
- Object.defineProperty(pn, "__esModule", { value: !0 });
6271
- const gc = ne, $c = {
6268
+ dn.default = hc;
6269
+ var fn = {};
6270
+ Object.defineProperty(fn, "__esModule", { value: !0 });
6271
+ const mc = ne, yc = {
6272
6272
  keyword: "not",
6273
6273
  schemaType: ["object", "boolean"],
6274
6274
  trackErrors: !0,
6275
6275
  code(e) {
6276
6276
  const { gen: t, schema: r, it: s } = e;
6277
- if ((0, gc.alwaysValidSchema)(s, r)) {
6277
+ if ((0, mc.alwaysValidSchema)(s, r)) {
6278
6278
  e.fail();
6279
6279
  return;
6280
6280
  }
@@ -6288,53 +6288,53 @@ const gc = ne, $c = {
6288
6288
  },
6289
6289
  error: { message: "must NOT be valid" }
6290
6290
  };
6291
- pn.default = $c;
6292
- var hn = {};
6293
- Object.defineProperty(hn, "__esModule", { value: !0 });
6294
- const _c = X, vc = {
6291
+ fn.default = yc;
6292
+ var pn = {};
6293
+ Object.defineProperty(pn, "__esModule", { value: !0 });
6294
+ const gc = X, $c = {
6295
6295
  keyword: "anyOf",
6296
6296
  schemaType: "array",
6297
6297
  trackErrors: !0,
6298
- code: _c.validateUnion,
6298
+ code: gc.validateUnion,
6299
6299
  error: { message: "must match a schema in anyOf" }
6300
6300
  };
6301
- hn.default = vc;
6302
- var mn = {};
6303
- Object.defineProperty(mn, "__esModule", { value: !0 });
6304
- const nr = ee, wc = ne, bc = {
6301
+ pn.default = $c;
6302
+ var hn = {};
6303
+ Object.defineProperty(hn, "__esModule", { value: !0 });
6304
+ const nr = ee, _c = ne, vc = {
6305
6305
  message: "must match exactly one schema in oneOf",
6306
6306
  params: ({ params: e }) => (0, nr._)`{passingSchemas: ${e.passing}}`
6307
- }, Ec = {
6307
+ }, wc = {
6308
6308
  keyword: "oneOf",
6309
6309
  schemaType: "array",
6310
6310
  trackErrors: !0,
6311
- error: bc,
6311
+ error: vc,
6312
6312
  code(e) {
6313
6313
  const { gen: t, schema: r, parentSchema: s, it: n } = e;
6314
6314
  if (!Array.isArray(r))
6315
6315
  throw new Error("ajv implementation error");
6316
6316
  if (n.opts.discriminator && s.discriminator)
6317
6317
  return;
6318
- const i = r, l = t.let("valid", !1), a = t.let("passing", null), u = t.name("_valid");
6319
- e.setParams({ passing: a }), t.block(d), e.result(l, () => e.reset(), () => e.error(!0));
6318
+ const i = r, c = t.let("valid", !1), a = t.let("passing", null), u = t.name("_valid");
6319
+ e.setParams({ passing: a }), t.block(d), e.result(c, () => e.reset(), () => e.error(!0));
6320
6320
  function d() {
6321
6321
  i.forEach((f, y) => {
6322
6322
  let P;
6323
- (0, wc.alwaysValidSchema)(n, f) ? t.var(u, !0) : P = e.subschema({
6323
+ (0, _c.alwaysValidSchema)(n, f) ? t.var(u, !0) : P = e.subschema({
6324
6324
  keyword: "oneOf",
6325
6325
  schemaProp: y,
6326
6326
  compositeRule: !0
6327
- }, u), y > 0 && t.if((0, nr._)`${u} && ${l}`).assign(l, !1).assign(a, (0, nr._)`[${a}, ${y}]`).else(), t.if(u, () => {
6328
- t.assign(l, !0), t.assign(a, y), P && e.mergeEvaluated(P, nr.Name);
6327
+ }, u), y > 0 && t.if((0, nr._)`${u} && ${c}`).assign(c, !1).assign(a, (0, nr._)`[${a}, ${y}]`).else(), t.if(u, () => {
6328
+ t.assign(c, !0), t.assign(a, y), P && e.mergeEvaluated(P, nr.Name);
6329
6329
  });
6330
6330
  });
6331
6331
  }
6332
6332
  }
6333
6333
  };
6334
- mn.default = Ec;
6335
- var yn = {};
6336
- Object.defineProperty(yn, "__esModule", { value: !0 });
6337
- const Pc = ne, Sc = {
6334
+ hn.default = wc;
6335
+ var mn = {};
6336
+ Object.defineProperty(mn, "__esModule", { value: !0 });
6337
+ const bc = ne, Ec = {
6338
6338
  keyword: "allOf",
6339
6339
  schemaType: "array",
6340
6340
  code(e) {
@@ -6342,38 +6342,38 @@ const Pc = ne, Sc = {
6342
6342
  if (!Array.isArray(r))
6343
6343
  throw new Error("ajv implementation error");
6344
6344
  const n = t.name("valid");
6345
- r.forEach((i, l) => {
6346
- if ((0, Pc.alwaysValidSchema)(s, i))
6345
+ r.forEach((i, c) => {
6346
+ if ((0, bc.alwaysValidSchema)(s, i))
6347
6347
  return;
6348
- const a = e.subschema({ keyword: "allOf", schemaProp: l }, n);
6348
+ const a = e.subschema({ keyword: "allOf", schemaProp: c }, n);
6349
6349
  e.ok(n), e.mergeEvaluated(a);
6350
6350
  });
6351
6351
  }
6352
6352
  };
6353
- yn.default = Sc;
6354
- var gn = {};
6355
- Object.defineProperty(gn, "__esModule", { value: !0 });
6356
- const lr = ee, zs = ne, Tc = {
6353
+ mn.default = Ec;
6354
+ var yn = {};
6355
+ Object.defineProperty(yn, "__esModule", { value: !0 });
6356
+ const lr = ee, Us = ne, Pc = {
6357
6357
  message: ({ params: e }) => (0, lr.str)`must match "${e.ifClause}" schema`,
6358
6358
  params: ({ params: e }) => (0, lr._)`{failingKeyword: ${e.ifClause}}`
6359
- }, Rc = {
6359
+ }, Sc = {
6360
6360
  keyword: "if",
6361
6361
  schemaType: ["object", "boolean"],
6362
6362
  trackErrors: !0,
6363
- error: Tc,
6363
+ error: Pc,
6364
6364
  code(e) {
6365
6365
  const { gen: t, parentSchema: r, it: s } = e;
6366
- r.then === void 0 && r.else === void 0 && (0, zs.checkStrictMode)(s, '"if" without "then" and "else" is ignored');
6367
- const n = es(s, "then"), i = es(s, "else");
6366
+ r.then === void 0 && r.else === void 0 && (0, Us.checkStrictMode)(s, '"if" without "then" and "else" is ignored');
6367
+ const n = Xn(s, "then"), i = Xn(s, "else");
6368
6368
  if (!n && !i)
6369
6369
  return;
6370
- const l = t.let("valid", !0), a = t.name("_valid");
6370
+ const c = t.let("valid", !0), a = t.name("_valid");
6371
6371
  if (u(), e.reset(), n && i) {
6372
6372
  const f = t.let("ifClause");
6373
6373
  e.setParams({ ifClause: f }), t.if(a, d("then", f), d("else", f));
6374
6374
  } else
6375
6375
  n ? t.if(a, d("then")) : t.if((0, lr.not)(a), d("else"));
6376
- e.pass(l, () => e.error(!0));
6376
+ e.pass(c, () => e.error(!0));
6377
6377
  function u() {
6378
6378
  const f = e.subschema({
6379
6379
  keyword: "if",
@@ -6386,60 +6386,60 @@ const lr = ee, zs = ne, Tc = {
6386
6386
  function d(f, y) {
6387
6387
  return () => {
6388
6388
  const P = e.subschema({ keyword: f }, a);
6389
- t.assign(l, a), e.mergeValidEvaluated(P, l), y ? t.assign(y, (0, lr._)`${f}`) : e.setParams({ ifClause: f });
6389
+ t.assign(c, a), e.mergeValidEvaluated(P, c), y ? t.assign(y, (0, lr._)`${f}`) : e.setParams({ ifClause: f });
6390
6390
  };
6391
6391
  }
6392
6392
  }
6393
6393
  };
6394
- function es(e, t) {
6394
+ function Xn(e, t) {
6395
6395
  const r = e.schema[t];
6396
- return r !== void 0 && !(0, zs.alwaysValidSchema)(e, r);
6396
+ return r !== void 0 && !(0, Us.alwaysValidSchema)(e, r);
6397
6397
  }
6398
- gn.default = Rc;
6399
- var $n = {};
6400
- Object.defineProperty($n, "__esModule", { value: !0 });
6401
- const kc = ne, Oc = {
6398
+ yn.default = Sc;
6399
+ var gn = {};
6400
+ Object.defineProperty(gn, "__esModule", { value: !0 });
6401
+ const Tc = ne, Rc = {
6402
6402
  keyword: ["then", "else"],
6403
6403
  schemaType: ["object", "boolean"],
6404
6404
  code({ keyword: e, parentSchema: t, it: r }) {
6405
- t.if === void 0 && (0, kc.checkStrictMode)(r, `"${e}" without "if" is ignored`);
6405
+ t.if === void 0 && (0, Tc.checkStrictMode)(r, `"${e}" without "if" is ignored`);
6406
6406
  }
6407
6407
  };
6408
- $n.default = Oc;
6409
- Object.defineProperty(on, "__esModule", { value: !0 });
6410
- const Nc = Pt, Cc = an, Ic = St, jc = cn, Dc = ln, Ac = Us, Mc = un, Fc = mr, qc = dn, Lc = fn, Uc = pn, Vc = hn, zc = mn, Wc = yn, Bc = gn, Hc = $n;
6411
- function Gc(e = !1) {
6408
+ gn.default = Rc;
6409
+ Object.defineProperty(sn, "__esModule", { value: !0 });
6410
+ const kc = Pt, Oc = on, Nc = St, Cc = an, Ic = cn, jc = qs, Dc = ln, Ac = mr, Mc = un, Fc = dn, qc = fn, Lc = pn, Uc = hn, Vc = mn, zc = yn, Wc = gn;
6411
+ function Bc(e = !1) {
6412
6412
  const t = [
6413
6413
  // any
6414
+ qc.default,
6415
+ Lc.default,
6414
6416
  Uc.default,
6415
6417
  Vc.default,
6416
6418
  zc.default,
6417
6419
  Wc.default,
6418
- Bc.default,
6419
- Hc.default,
6420
6420
  // object
6421
- Mc.default,
6422
- Fc.default,
6421
+ Dc.default,
6423
6422
  Ac.default,
6424
- qc.default,
6425
- Lc.default
6423
+ jc.default,
6424
+ Mc.default,
6425
+ Fc.default
6426
6426
  ];
6427
- return e ? t.push(Cc.default, jc.default) : t.push(Nc.default, Ic.default), t.push(Dc.default), t;
6427
+ return e ? t.push(Oc.default, Cc.default) : t.push(kc.default, Nc.default), t.push(Ic.default), t;
6428
6428
  }
6429
- on.default = Gc;
6430
- var _n = {}, vn = {};
6431
- Object.defineProperty(vn, "__esModule", { value: !0 });
6432
- const me = ee, xc = {
6429
+ sn.default = Bc;
6430
+ var $n = {}, _n = {};
6431
+ Object.defineProperty(_n, "__esModule", { value: !0 });
6432
+ const me = ee, Hc = {
6433
6433
  message: ({ schemaCode: e }) => (0, me.str)`must match format "${e}"`,
6434
6434
  params: ({ schemaCode: e }) => (0, me._)`{format: ${e}}`
6435
- }, Kc = {
6435
+ }, Gc = {
6436
6436
  keyword: "format",
6437
6437
  type: ["number", "string"],
6438
6438
  schemaType: "string",
6439
6439
  $data: !0,
6440
- error: xc,
6440
+ error: Hc,
6441
6441
  code(e, t) {
6442
- const { gen: r, data: s, $data: n, schema: i, schemaCode: l, it: a } = e, { opts: u, errSchemaPath: d, schemaEnv: f, self: y } = a;
6442
+ const { gen: r, data: s, $data: n, schema: i, schemaCode: c, it: a } = e, { opts: u, errSchemaPath: d, schemaEnv: f, self: y } = a;
6443
6443
  if (!u.validateFormats)
6444
6444
  return;
6445
6445
  n ? P() : b();
@@ -6447,10 +6447,10 @@ const me = ee, xc = {
6447
6447
  const _ = r.scopeValue("formats", {
6448
6448
  ref: y.formats,
6449
6449
  code: u.code.formats
6450
- }), E = r.const("fDef", (0, me._)`${_}[${l}]`), w = r.let("fType"), g = r.let("format");
6450
+ }), E = r.const("fDef", (0, me._)`${_}[${c}]`), w = r.let("fType"), g = r.let("format");
6451
6451
  r.if((0, me._)`typeof ${E} == "object" && !(${E} instanceof RegExp)`, () => r.assign(w, (0, me._)`${E}.type || "string"`).assign(g, (0, me._)`${E}.validate`), () => r.assign(w, (0, me._)`"string"`).assign(g, E)), e.fail$data((0, me.or)(v(), T()));
6452
6452
  function v() {
6453
- return u.strictSchema === !1 ? me.nil : (0, me._)`${l} && !${g}`;
6453
+ return u.strictSchema === !1 ? me.nil : (0, me._)`${c} && !${g}`;
6454
6454
  }
6455
6455
  function T() {
6456
6456
  const j = f.$async ? (0, me._)`(${E}.async ? await ${g}(${s}) : ${g}(${s}))` : (0, me._)`${g}(${s})`, F = (0, me._)`(typeof ${g} == "function" ? ${j} : ${g}.test(${s}))`;
@@ -6492,10 +6492,10 @@ const me = ee, xc = {
6492
6492
  }
6493
6493
  }
6494
6494
  };
6495
- vn.default = Kc;
6496
- Object.defineProperty(_n, "__esModule", { value: !0 });
6497
- const Jc = vn, Qc = [Jc.default];
6498
- _n.default = Qc;
6495
+ _n.default = Gc;
6496
+ Object.defineProperty($n, "__esModule", { value: !0 });
6497
+ const xc = _n, Kc = [xc.default];
6498
+ $n.default = Kc;
6499
6499
  var Et = {};
6500
6500
  Object.defineProperty(Et, "__esModule", { value: !0 });
6501
6501
  Et.contentVocabulary = Et.metadataVocabulary = void 0;
@@ -6513,33 +6513,33 @@ Et.contentVocabulary = [
6513
6513
  "contentEncoding",
6514
6514
  "contentSchema"
6515
6515
  ];
6516
- Object.defineProperty(Br, "__esModule", { value: !0 });
6517
- const Zc = Hr, Yc = xr, Xc = on, el = _n, ts = Et, tl = [
6518
- Zc.default,
6516
+ Object.defineProperty(Wr, "__esModule", { value: !0 });
6517
+ const Jc = Br, Qc = Gr, Zc = sn, Yc = $n, es = Et, Xc = [
6518
+ Jc.default,
6519
+ Qc.default,
6520
+ (0, Zc.default)(),
6519
6521
  Yc.default,
6520
- (0, Xc.default)(),
6521
- el.default,
6522
- ts.metadataVocabulary,
6523
- ts.contentVocabulary
6522
+ es.metadataVocabulary,
6523
+ es.contentVocabulary
6524
6524
  ];
6525
- Br.default = tl;
6526
- var wn = {}, Ws = {};
6525
+ Wr.default = Xc;
6526
+ var vn = {}, Vs = {};
6527
6527
  (function(e) {
6528
6528
  Object.defineProperty(e, "__esModule", { value: !0 }), e.DiscrError = void 0, function(t) {
6529
6529
  t.Tag = "tag", t.Mapping = "mapping";
6530
6530
  }(e.DiscrError || (e.DiscrError = {}));
6531
- })(Ws);
6532
- Object.defineProperty(wn, "__esModule", { value: !0 });
6533
- const wt = ee, jr = Ws, rs = Oe, rl = ne, nl = {
6531
+ })(Vs);
6532
+ Object.defineProperty(vn, "__esModule", { value: !0 });
6533
+ const wt = ee, jr = Vs, ts = Oe, el = ne, tl = {
6534
6534
  message: ({ params: { discrError: e, tagName: t } }) => e === jr.DiscrError.Tag ? `tag "${t}" must be string` : `value of tag "${t}" must be in oneOf`,
6535
6535
  params: ({ params: { discrError: e, tag: t, tagName: r } }) => (0, wt._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`
6536
- }, sl = {
6536
+ }, rl = {
6537
6537
  keyword: "discriminator",
6538
6538
  type: "object",
6539
6539
  schemaType: "object",
6540
- error: nl,
6540
+ error: tl,
6541
6541
  code(e) {
6542
- const { gen: t, data: r, schema: s, parentSchema: n, it: i } = e, { oneOf: l } = n;
6542
+ const { gen: t, data: r, schema: s, parentSchema: n, it: i } = e, { oneOf: c } = n;
6543
6543
  if (!i.opts.discriminator)
6544
6544
  throw new Error("discriminator: requires discriminator option");
6545
6545
  const a = s.propertyName;
@@ -6547,7 +6547,7 @@ const wt = ee, jr = Ws, rs = Oe, rl = ne, nl = {
6547
6547
  throw new Error("discriminator: requires propertyName");
6548
6548
  if (s.mapping)
6549
6549
  throw new Error("discriminator: mapping is not supported");
6550
- if (!l)
6550
+ if (!c)
6551
6551
  throw new Error("discriminator: requires oneOf keyword");
6552
6552
  const u = t.let("valid", !1), d = t.const("tag", (0, wt._)`${r}${(0, wt.getProperty)(a)}`);
6553
6553
  t.if((0, wt._)`typeof ${d} == "string"`, () => f(), () => e.error(!1, { discrError: jr.DiscrError.Tag, tag: d, tagName: a })), e.ok(u);
@@ -6566,9 +6566,9 @@ const wt = ee, jr = Ws, rs = Oe, rl = ne, nl = {
6566
6566
  var b;
6567
6567
  const _ = {}, E = g(n);
6568
6568
  let w = !0;
6569
- for (let j = 0; j < l.length; j++) {
6570
- let F = l[j];
6571
- F != null && F.$ref && !(0, rl.schemaHasRulesButRef)(F, i.self.RULES) && (F = rs.resolveRef.call(i.self, i.schemaEnv.root, i.baseId, F == null ? void 0 : F.$ref), F instanceof rs.SchemaEnv && (F = F.schema));
6569
+ for (let j = 0; j < c.length; j++) {
6570
+ let F = c[j];
6571
+ F != null && F.$ref && !(0, el.schemaHasRulesButRef)(F, i.self.RULES) && (F = ts.resolveRef.call(i.self, i.schemaEnv.root, i.baseId, F == null ? void 0 : F.$ref), F instanceof ts.SchemaEnv && (F = F.schema));
6572
6572
  const S = (b = F == null ? void 0 : F.properties) === null || b === void 0 ? void 0 : b[a];
6573
6573
  if (typeof S != "object")
6574
6574
  throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${a}"`);
@@ -6597,8 +6597,8 @@ const wt = ee, jr = Ws, rs = Oe, rl = ne, nl = {
6597
6597
  }
6598
6598
  }
6599
6599
  };
6600
- wn.default = sl;
6601
- const il = "http://json-schema.org/draft-07/schema#", ol = "http://json-schema.org/draft-07/schema#", al = "Core schema meta-schema", cl = {
6600
+ vn.default = rl;
6601
+ const nl = "http://json-schema.org/draft-07/schema#", sl = "http://json-schema.org/draft-07/schema#", il = "Core schema meta-schema", ol = {
6602
6602
  schemaArray: {
6603
6603
  type: "array",
6604
6604
  minItems: 1,
@@ -6639,10 +6639,10 @@ const il = "http://json-schema.org/draft-07/schema#", ol = "http://json-schema.o
6639
6639
  uniqueItems: !0,
6640
6640
  default: []
6641
6641
  }
6642
- }, ll = [
6642
+ }, al = [
6643
6643
  "object",
6644
6644
  "boolean"
6645
- ], ul = {
6645
+ ], cl = {
6646
6646
  $id: {
6647
6647
  type: "string",
6648
6648
  format: "uri-reference"
@@ -6830,18 +6830,18 @@ const il = "http://json-schema.org/draft-07/schema#", ol = "http://json-schema.o
6830
6830
  not: {
6831
6831
  $ref: "#"
6832
6832
  }
6833
- }, dl = {
6834
- $schema: il,
6835
- $id: ol,
6836
- title: al,
6837
- definitions: cl,
6838
- type: ll,
6839
- properties: ul,
6833
+ }, ll = {
6834
+ $schema: nl,
6835
+ $id: sl,
6836
+ title: il,
6837
+ definitions: ol,
6838
+ type: al,
6839
+ properties: cl,
6840
6840
  default: !0
6841
6841
  };
6842
6842
  (function(e, t) {
6843
6843
  Object.defineProperty(t, "__esModule", { value: !0 }), t.MissingRefError = t.ValidationError = t.CodeGen = t.Name = t.nil = t.stringify = t.str = t._ = t.KeywordCxt = void 0;
6844
- const r = Es, s = Br, n = wn, i = dl, l = ["/properties"], a = "http://json-schema.org/draft-07/schema";
6844
+ const r = bs, s = Wr, n = vn, i = ll, c = ["/properties"], a = "http://json-schema.org/draft-07/schema";
6845
6845
  class u extends r.default {
6846
6846
  _addVocabularies() {
6847
6847
  super._addVocabularies(), s.default.forEach((_) => this.addVocabulary(_)), this.opts.discriminator && this.addKeyword(n.default);
@@ -6849,7 +6849,7 @@ const il = "http://json-schema.org/draft-07/schema#", ol = "http://json-schema.o
6849
6849
  _addDefaultMetaSchema() {
6850
6850
  if (super._addDefaultMetaSchema(), !this.opts.meta)
6851
6851
  return;
6852
- const _ = this.opts.$data ? this.$dataMetaSchema(i, l) : i;
6852
+ const _ = this.opts.$data ? this.$dataMetaSchema(i, c) : i;
6853
6853
  this.addMetaSchema(_, a, !1), this.refs["http://json-schema.org/schema"] = a;
6854
6854
  }
6855
6855
  defaultMeta() {
@@ -6875,17 +6875,17 @@ const il = "http://json-schema.org/draft-07/schema#", ol = "http://json-schema.o
6875
6875
  } }), Object.defineProperty(t, "CodeGen", { enumerable: !0, get: function() {
6876
6876
  return f.CodeGen;
6877
6877
  } });
6878
- var y = Vr();
6878
+ var y = Vt;
6879
6879
  Object.defineProperty(t, "ValidationError", { enumerable: !0, get: function() {
6880
6880
  return y.default;
6881
6881
  } });
6882
- var P = Vt;
6882
+ var P = zt;
6883
6883
  Object.defineProperty(t, "MissingRefError", { enumerable: !0, get: function() {
6884
6884
  return P.default;
6885
6885
  } });
6886
6886
  })(Rr, Rr.exports);
6887
- var fl = Rr.exports;
6888
- const pl = /* @__PURE__ */ Ki(fl), hl = "http://json-schema.org/schema", ml = "#/definitions/Blueprint", yl = {
6887
+ var ul = Rr.exports;
6888
+ const dl = /* @__PURE__ */ Gi(ul), fl = "http://json-schema.org/schema", pl = "#/definitions/Blueprint", hl = {
6889
6889
  Blueprint: {
6890
6890
  type: "object",
6891
6891
  properties: {
@@ -8464,25 +8464,25 @@ for existing apps using this option.`
8464
8464
  },
8465
8465
  additionalProperties: !1
8466
8466
  }
8467
- }, gl = {
8468
- $schema: hl,
8469
- $ref: ml,
8470
- definitions: yl
8471
- }, { wpCLI: $l, ...ns } = Vi, _l = {
8472
- ...ns,
8473
- "wp-cli": $l,
8474
- importFile: ns.importWxr
8467
+ }, ml = {
8468
+ $schema: fl,
8469
+ $ref: pl,
8470
+ definitions: hl
8471
+ }, { wpCLI: yl, ...rs } = Li, gl = {
8472
+ ...rs,
8473
+ "wp-cli": yl,
8474
+ importFile: rs.importWxr
8475
8475
  };
8476
- function kl(e, {
8476
+ function Tl(e, {
8477
8477
  progress: t = new Mr(),
8478
- semaphore: r = new ni({ concurrency: 3 }),
8478
+ semaphore: r = new ti({ concurrency: 3 }),
8479
8479
  onStepCompleted: s = () => {
8480
8480
  }
8481
8481
  } = {}) {
8482
8482
  var y, P, b, _, E, w, g;
8483
8483
  e = {
8484
8484
  ...e,
8485
- steps: (e.steps || []).filter(Pl).filter(Sl)
8485
+ steps: (e.steps || []).filter(bl).filter(El)
8486
8486
  };
8487
8487
  for (const v of e.steps)
8488
8488
  typeof v == "object" && v.step === "importFile" && (v.step = "importWxr", Te.warn(
@@ -8551,8 +8551,8 @@ function kl(e, {
8551
8551
  caption: "Downloading the WordPress Importer plugin"
8552
8552
  }
8553
8553
  }));
8554
- const { valid: l, errors: a } = wl(e);
8555
- if (!l) {
8554
+ const { valid: c, errors: a } = _l(e);
8555
+ if (!c) {
8556
8556
  const v = new Error(
8557
8557
  `Invalid blueprint: ${a[0].message} at ${a[0].instancePath}`
8558
8558
  );
@@ -8565,7 +8565,7 @@ function kl(e, {
8565
8565
  },
8566
8566
  0
8567
8567
  ), f = u.map(
8568
- (v) => Tl(v, {
8568
+ (v) => Pl(v, {
8569
8569
  semaphore: r,
8570
8570
  rootProgressTracker: t,
8571
8571
  totalProgressWeight: d
@@ -8573,14 +8573,14 @@ function kl(e, {
8573
8573
  );
8574
8574
  return {
8575
8575
  versions: {
8576
- php: bl(
8576
+ php: vl(
8577
8577
  (E = e.preferredVersions) == null ? void 0 : E.php,
8578
- _s,
8579
- Ji
8578
+ $s,
8579
+ xi
8580
8580
  ),
8581
8581
  wp: ((w = e.preferredVersions) == null ? void 0 : w.wp) || "latest"
8582
8582
  },
8583
- phpExtensions: El(
8583
+ phpExtensions: wl(
8584
8584
  [],
8585
8585
  e.phpExtensionBundles || []
8586
8586
  ),
@@ -8617,11 +8617,11 @@ function kl(e, {
8617
8617
  }
8618
8618
  };
8619
8619
  }
8620
- const vl = new pl({ discriminator: !0 });
8620
+ const $l = new dl({ discriminator: !0 });
8621
8621
  let Xt;
8622
- function wl(e) {
8622
+ function _l(e) {
8623
8623
  var n;
8624
- Xt = vl.compile(gl);
8624
+ Xt = $l.compile(ml);
8625
8625
  const t = Xt(e);
8626
8626
  if (t)
8627
8627
  return { valid: t };
@@ -8636,26 +8636,26 @@ function wl(e) {
8636
8636
  errors: s
8637
8637
  };
8638
8638
  }
8639
- function bl(e, t, r) {
8639
+ function vl(e, t, r) {
8640
8640
  return e && t.includes(e) ? e : r;
8641
8641
  }
8642
- function El(e, t) {
8643
- const r = vs.filter(
8642
+ function wl(e, t) {
8643
+ const r = _s.filter(
8644
8644
  (n) => e.includes(n)
8645
8645
  ), s = t.flatMap(
8646
- (n) => n in Fn ? Fn[n] : []
8646
+ (n) => n in Mn ? Mn[n] : []
8647
8647
  );
8648
8648
  return Array.from(/* @__PURE__ */ new Set([...r, ...s]));
8649
8649
  }
8650
- function Pl(e) {
8650
+ function bl(e) {
8651
8651
  return !!(typeof e == "object" && e);
8652
8652
  }
8653
- function Sl(e) {
8653
+ function El(e) {
8654
8654
  return ["setPhpIniEntry", "request"].includes(e.step) ? (Te.warn(
8655
8655
  `The "${e.step}" Blueprint is no longer supported and you can remove it from your Blueprint.`
8656
8656
  ), !1) : !0;
8657
8657
  }
8658
- function Tl(e, {
8658
+ function Pl(e, {
8659
8659
  semaphore: t,
8660
8660
  rootProgressTracker: r,
8661
8661
  totalProgressWeight: s
@@ -8666,16 +8666,16 @@ function Tl(e, {
8666
8666
  ), i = {};
8667
8667
  for (const y of Object.keys(e)) {
8668
8668
  let P = e[y];
8669
- Zi(P) && (P = yt.create(P, {
8669
+ Ji(P) && (P = yt.create(P, {
8670
8670
  semaphore: t
8671
8671
  })), i[y] = P;
8672
8672
  }
8673
- const l = async (y) => {
8673
+ const c = async (y) => {
8674
8674
  var P;
8675
8675
  try {
8676
- return n.fillSlowly(), await _l[e.step](
8676
+ return n.fillSlowly(), await gl[e.step](
8677
8677
  y,
8678
- await Rl(i),
8678
+ await Sl(i),
8679
8679
  {
8680
8680
  tracker: n,
8681
8681
  initialCaption: (P = e.progress) == null ? void 0 : P.caption
@@ -8684,14 +8684,14 @@ function Tl(e, {
8684
8684
  } finally {
8685
8685
  n.finish();
8686
8686
  }
8687
- }, a = ss(i), u = ss(i).filter(
8687
+ }, a = ns(i), u = ns(i).filter(
8688
8688
  (y) => y.isAsync
8689
8689
  ), d = 1 / (u.length + 1);
8690
8690
  for (const y of u)
8691
8691
  y.progress = n.stage(d);
8692
- return { run: l, step: e, resources: a };
8692
+ return { run: c, step: e, resources: a };
8693
8693
  }
8694
- function ss(e) {
8694
+ function ns(e) {
8695
8695
  const t = [];
8696
8696
  for (const r in e) {
8697
8697
  const s = e[r];
@@ -8699,7 +8699,7 @@ function ss(e) {
8699
8699
  }
8700
8700
  return t;
8701
8701
  }
8702
- async function Rl(e) {
8702
+ async function Sl(e) {
8703
8703
  const t = {};
8704
8704
  for (const r in e) {
8705
8705
  const s = e[r];
@@ -8707,42 +8707,42 @@ async function Rl(e) {
8707
8707
  }
8708
8708
  return t;
8709
8709
  }
8710
- async function Ol(e, t) {
8710
+ async function Rl(e, t) {
8711
8711
  await e.run(t);
8712
8712
  }
8713
- function Nl() {
8713
+ function kl() {
8714
8714
  }
8715
8715
  export {
8716
8716
  Dr as activatePlugin,
8717
- fs as activateTheme,
8718
- kl as compileBlueprint,
8719
- Pi as cp,
8720
- gs as defineSiteUrl,
8717
+ ds as activateTheme,
8718
+ Tl as compileBlueprint,
8719
+ bi as cp,
8720
+ ys as defineSiteUrl,
8721
8721
  sr as defineWpConfigConsts,
8722
- bi as enableMultisite,
8723
- Ci as exportWXR,
8724
- Ni as importWordPressFiles,
8725
- ki as importWxr,
8726
- Ii as installPlugin,
8727
- ji as installTheme,
8722
+ vi as enableMultisite,
8723
+ Oi as exportWXR,
8724
+ ki as importWordPressFiles,
8725
+ Ti as importWxr,
8726
+ Ni as installPlugin,
8727
+ Ci as installTheme,
8728
8728
  Tr as login,
8729
- Ti as mkdir,
8730
- Si as mv,
8729
+ Pi as mkdir,
8730
+ Ei as mv,
8731
8731
  Sr as request,
8732
- Di as resetData,
8733
- ps as rm,
8734
- Ri as rmdir,
8735
- Ol as runBlueprintSteps,
8736
- hi as runPHP,
8737
- mi as runPHPWithOptions,
8738
- yi as runSql,
8739
- Ai as runWpInstallationWizard,
8740
- Nl as setPluginProxyURL,
8741
- hs as setSiteOptions,
8732
+ Ii as resetData,
8733
+ fs as rm,
8734
+ Si as rmdir,
8735
+ Rl as runBlueprintSteps,
8736
+ fi as runPHP,
8737
+ pi as runPHPWithOptions,
8738
+ hi as runSql,
8739
+ ji as runWpInstallationWizard,
8740
+ kl as setPluginProxyURL,
8741
+ ps as setSiteOptions,
8742
8742
  Ar as unzip,
8743
- vi as updateUserMeta,
8744
- Li as wpCLI,
8745
- os as wpContentFilesExcludedFromExport,
8746
- ys as writeFile,
8747
- Mi as zipWpContent
8743
+ $i as updateUserMeta,
8744
+ Fi as wpCLI,
8745
+ is as wpContentFilesExcludedFromExport,
8746
+ ms as writeFile,
8747
+ Di as zipWpContent
8748
8748
  };