@prosopo/cli 3.6.73 → 3.6.75

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 (59) hide show
  1. package/.turbo/turbo-build$colon$cjs.log +37 -27
  2. package/.turbo/turbo-build$colon$tsc.log +27 -27
  3. package/.turbo/turbo-build.log +30 -27
  4. package/CHANGELOG.md +32 -0
  5. package/dist/RateLimiter.js +118 -118
  6. package/dist/_virtual/_rolldown/runtime.js +3 -0
  7. package/dist/argv.js +37 -36
  8. package/dist/bundle/decodeBehavior-BnJdECMR.js +233 -0
  9. package/dist/bundle/decodeSimd-hDznYwxo.js +218 -0
  10. package/dist/bundle/i18nBackend-C078WszN.js +3553 -0
  11. package/dist/bundle/i18nFrontend-pIqw8hl9.js +850 -0
  12. package/dist/bundle/i18next-q3w8LsnI.js +1213 -0
  13. package/dist/bundle/node-ponyfill-BXKwLYwg.js +1534 -0
  14. package/dist/bundle/provider.cli.bundle.js +102274 -131288
  15. package/dist/bundle/src-DhRyWllF.js +1880 -0
  16. package/dist/cjs/RateLimiter.cjs +118 -118
  17. package/dist/cjs/_virtual/_rolldown/runtime.cjs +23 -0
  18. package/dist/cjs/argv.cjs +41 -38
  19. package/dist/cjs/cli.cjs +32 -43
  20. package/dist/cjs/commands/ensureExternalIndexes.cjs +26 -27
  21. package/dist/cjs/commands/ensureIndexes.cjs +24 -25
  22. package/dist/cjs/commands/index.cjs +18 -20
  23. package/dist/cjs/commands/migrateAbuserScoreThreshold.cjs +54 -65
  24. package/dist/cjs/commands/providerSetDataset.cjs +45 -59
  25. package/dist/cjs/commands/siteKeyRegister.cjs +93 -105
  26. package/dist/cjs/commands/siteKeyRegisterApi.cjs +84 -102
  27. package/dist/cjs/commands/storeCaptchasExternally.cjs +24 -24
  28. package/dist/cjs/commands/updateSpamEmailDomains.cjs +42 -49
  29. package/dist/cjs/commands/validators.cjs +18 -37
  30. package/dist/cjs/commands/version.cjs +14 -15
  31. package/dist/cjs/files.cjs +32 -30
  32. package/dist/cjs/index.cjs +15 -17
  33. package/dist/cjs/process.env.cjs +14 -25
  34. package/dist/cjs/prosopo.config.cjs +108 -132
  35. package/dist/cjs/reloader.cjs +54 -63
  36. package/dist/cjs/start.cjs +59 -81
  37. package/dist/cli.js +27 -37
  38. package/dist/commands/ensureExternalIndexes.js +24 -26
  39. package/dist/commands/ensureIndexes.js +22 -24
  40. package/dist/commands/index.js +10 -20
  41. package/dist/commands/migrateAbuserScoreThreshold.js +52 -64
  42. package/dist/commands/providerSetDataset.js +41 -41
  43. package/dist/commands/siteKeyRegister.js +90 -103
  44. package/dist/commands/siteKeyRegisterApi.js +82 -101
  45. package/dist/commands/storeCaptchasExternally.js +22 -23
  46. package/dist/commands/updateSpamEmailDomains.js +40 -48
  47. package/dist/commands/validators.js +15 -37
  48. package/dist/commands/version.js +13 -15
  49. package/dist/files.js +28 -30
  50. package/dist/index.js +5 -16
  51. package/dist/process.env.js +14 -28
  52. package/dist/prosopo.config.js +108 -131
  53. package/dist/reloader.js +49 -61
  54. package/dist/start.js +57 -79
  55. package/package.json +16 -16
  56. package/dist/bundle/decodeBehavior-Btp_pZCR.js +0 -224
  57. package/dist/bundle/decodeSimd-Cz4sdHHN.js +0 -212
  58. package/dist/bundle/i18nBackend-BiuZSvrn.js +0 -5366
  59. package/dist/bundle/index-DUVLsNmB.js +0 -2371
@@ -0,0 +1,3553 @@
1
+ import { n as e, t } from "./i18next-q3w8LsnI.js";
2
+ import { i as n, l as r, r as i, s as a } from "./provider.cli.bundle.js";
3
+ import o from "node:path";
4
+ //#region ../locale/dist/util.js
5
+ var s = () => !!(typeof window < "u" && window.document && window.document.createElement), c = () => !s(), l = /* @__PURE__ */ n(((e) => {
6
+ Object.defineProperty(e, "__esModule", { value: !0 }), e.debounce = p, e.defaults = c, e.getPath = _, e.interpolate = y, e.interpolatePath = b, e.isSafeLangSegment = u, e.isSafeNsSegment = d, e.isSafePathSegment = void 0, e.pushPath = g, e.setPath = h;
7
+ function t(e, t) {
8
+ var r = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
9
+ if (!r) {
10
+ if (Array.isArray(e) || (r = n(e)) || t && e && typeof e.length == "number") {
11
+ r && (e = r);
12
+ var i = 0, a = function() {};
13
+ return {
14
+ s: a,
15
+ n: function() {
16
+ return i >= e.length ? { done: !0 } : {
17
+ done: !1,
18
+ value: e[i++]
19
+ };
20
+ },
21
+ e: function(e) {
22
+ throw e;
23
+ },
24
+ f: a
25
+ };
26
+ }
27
+ throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
28
+ }
29
+ var o, s = !0, c = !1;
30
+ return {
31
+ s: function() {
32
+ r = r.call(e);
33
+ },
34
+ n: function() {
35
+ var e = r.next();
36
+ return s = e.done, e;
37
+ },
38
+ e: function(e) {
39
+ c = !0, o = e;
40
+ },
41
+ f: function() {
42
+ try {
43
+ s || r.return == null || r.return();
44
+ } finally {
45
+ if (c) throw o;
46
+ }
47
+ }
48
+ };
49
+ }
50
+ function n(e, t) {
51
+ if (e) {
52
+ if (typeof e == "string") return r(e, t);
53
+ var n = {}.toString.call(e).slice(8, -1);
54
+ return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? r(e, t) : void 0;
55
+ }
56
+ }
57
+ function r(e, t) {
58
+ (t == null || t > e.length) && (t = e.length);
59
+ for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
60
+ return r;
61
+ }
62
+ var i = [], a = i.forEach, o = i.slice, s = [
63
+ "__proto__",
64
+ "constructor",
65
+ "prototype"
66
+ ];
67
+ function c(e) {
68
+ return a.call(o.call(arguments, 1), function(t) {
69
+ if (t) for (var n = 0, r = Object.keys(t); n < r.length; n++) {
70
+ var i = r[n];
71
+ s.indexOf(i) > -1 || e[i] === void 0 && (e[i] = t[i]);
72
+ }
73
+ }), e;
74
+ }
75
+ function l(e) {
76
+ return !(typeof e != "string" || e.length === 0 || e.length > 128 || s.indexOf(e) > -1 || e.indexOf("..") > -1 || e.indexOf("\\") > -1 || /[\x00-\x1F\x7F]/.test(e));
77
+ }
78
+ function u(e) {
79
+ return !(!l(e) || e.indexOf("/") > -1);
80
+ }
81
+ function d(e) {
82
+ return l(e);
83
+ }
84
+ e.isSafePathSegment = u;
85
+ var f = {
86
+ lng: u,
87
+ ns: d
88
+ };
89
+ function p(e, t, n) {
90
+ var r;
91
+ return function() {
92
+ var i = this, a = arguments, o = function() {
93
+ r = null, n || e.apply(i, a);
94
+ }, s = n && !r;
95
+ clearTimeout(r), r = setTimeout(o, t), s && e.apply(i, a);
96
+ };
97
+ }
98
+ function m(e, t, n) {
99
+ function r(e) {
100
+ return e && e.indexOf("###") > -1 ? e.replace(/###/g, ".") : e;
101
+ }
102
+ for (var i = typeof t == "string" ? t.split(".") : [].concat(t); i.length > 1;) {
103
+ if (!e) return {};
104
+ var a = r(i.shift());
105
+ if (s.indexOf(a) > -1) return {};
106
+ !e[a] && n && (e[a] = new n()), e = e[a];
107
+ }
108
+ if (!e) return {};
109
+ var o = r(i.shift());
110
+ return s.indexOf(o) > -1 ? {} : {
111
+ obj: e,
112
+ k: o
113
+ };
114
+ }
115
+ function h(e, t, n) {
116
+ var r = m(e, t, Object), i = r.obj, a = r.k;
117
+ if (i !== void 0) {
118
+ if (Array.isArray(i) && isNaN(a)) throw Error(`Cannot create property "${a}" here since object is an array`);
119
+ i[a] = n;
120
+ }
121
+ }
122
+ function g(e, t, n, r) {
123
+ var i = m(e, t, Object), a = i.obj, o = i.k;
124
+ a !== void 0 && (a[o] = a[o] || [], r && (a[o] = a[o].concat(n)), r || a[o].push(n));
125
+ }
126
+ function _(e, t) {
127
+ var n = m(e, t), r = n.obj, i = n.k;
128
+ if (r) return r[i];
129
+ }
130
+ var v = /\{\{(.+?)\}\}/g;
131
+ function y(e, t) {
132
+ return e.replace(v, function(e, n) {
133
+ var r = n.trim();
134
+ return s.indexOf(r) > -1 ? e : t[r] ?? e;
135
+ });
136
+ }
137
+ function b(e, n) {
138
+ var r = !1, i = e.replace(v, function(e, i) {
139
+ var a = i.trim();
140
+ if (s.indexOf(a) > -1) return e;
141
+ var o = n[a];
142
+ if (o == null) return e;
143
+ var c = f[a] || u, l = String(o).split("+"), d = t(l), p;
144
+ try {
145
+ for (d.s(); !(p = d.n()).done;) {
146
+ var m = p.value;
147
+ if (!c(m)) return r = !0, e;
148
+ }
149
+ } catch (e) {
150
+ d.e(e);
151
+ } finally {
152
+ d.f();
153
+ }
154
+ return l.join("+");
155
+ });
156
+ return r ? null : i;
157
+ }
158
+ })), u = /* @__PURE__ */ n(((e, t) => {
159
+ Object.defineProperty(e, "__esModule", { value: !0 }), e.default = void 0;
160
+ function n(e, t) {
161
+ var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
162
+ if (!n) {
163
+ if (Array.isArray(e) || (n = r(e)) || t && e && typeof e.length == "number") {
164
+ n && (e = n);
165
+ var i = 0, a = function() {};
166
+ return {
167
+ s: a,
168
+ n: function() {
169
+ return i >= e.length ? { done: !0 } : {
170
+ done: !1,
171
+ value: e[i++]
172
+ };
173
+ },
174
+ e: function(e) {
175
+ throw e;
176
+ },
177
+ f: a
178
+ };
179
+ }
180
+ throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
181
+ }
182
+ var o, s = !0, c = !1;
183
+ return {
184
+ s: function() {
185
+ n = n.call(e);
186
+ },
187
+ n: function() {
188
+ var e = n.next();
189
+ return s = e.done, e;
190
+ },
191
+ e: function(e) {
192
+ c = !0, o = e;
193
+ },
194
+ f: function() {
195
+ try {
196
+ s || n.return == null || n.return();
197
+ } finally {
198
+ if (c) throw o;
199
+ }
200
+ }
201
+ };
202
+ }
203
+ function r(e, t) {
204
+ if (e) {
205
+ if (typeof e == "string") return i(e, t);
206
+ var n = {}.toString.call(e).slice(8, -1);
207
+ return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? i(e, t) : void 0;
208
+ }
209
+ }
210
+ function i(e, t) {
211
+ (t == null || t > e.length) && (t = e.length);
212
+ for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
213
+ return r;
214
+ }
215
+ function a(e) {
216
+ "@babel/helpers - typeof";
217
+ return a = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
218
+ return typeof e;
219
+ } : function(e) {
220
+ return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
221
+ }, a(e);
222
+ }
223
+ var o = {
224
+ Space_Separator: /[\u1680\u2000-\u200A\u202F\u205F\u3000]/,
225
+ ID_Start: /[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,
226
+ ID_Continue: /[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/
227
+ }, s = {
228
+ isSpaceSeparator: function(e) {
229
+ return typeof e == "string" && o.Space_Separator.test(e);
230
+ },
231
+ isIdStartChar: function(e) {
232
+ return typeof e == "string" && (e >= "a" && e <= "z" || e >= "A" && e <= "Z" || e === "$" || e === "_" || o.ID_Start.test(e));
233
+ },
234
+ isIdContinueChar: function(e) {
235
+ return typeof e == "string" && (e >= "a" && e <= "z" || e >= "A" && e <= "Z" || e >= "0" && e <= "9" || e === "$" || e === "_" || e === "‌" || e === "‍" || o.ID_Continue.test(e));
236
+ },
237
+ isDigit: function(e) {
238
+ return typeof e == "string" && /[0-9]/.test(e);
239
+ },
240
+ isHexDigit: function(e) {
241
+ return typeof e == "string" && /[0-9A-Fa-f]/.test(e);
242
+ }
243
+ }, c, l, u, d, f, p, m, h, g, _ = function(e, t) {
244
+ c = String(e), l = "start", u = [], d = 0, f = 1, p = 0, m = void 0, h = void 0, g = void 0;
245
+ do
246
+ m = w(), N[l]();
247
+ while (m.type !== "eof");
248
+ return typeof t == "function" ? v({ "": g }, "", t) : g;
249
+ };
250
+ function v(e, t, n) {
251
+ var r = e[t];
252
+ if (r != null && a(r) === "object") if (Array.isArray(r)) for (var i = 0; i < r.length; i++) {
253
+ var o = String(i), s = v(r, o, n);
254
+ s === void 0 ? delete r[o] : Object.defineProperty(r, o, {
255
+ value: s,
256
+ writable: !0,
257
+ enumerable: !0,
258
+ configurable: !0
259
+ });
260
+ }
261
+ else for (var c in r) {
262
+ var l = v(r, c, n);
263
+ l === void 0 ? delete r[c] : Object.defineProperty(r, c, {
264
+ value: l,
265
+ writable: !0,
266
+ enumerable: !0,
267
+ configurable: !0
268
+ });
269
+ }
270
+ return n.call(e, t, r);
271
+ }
272
+ var y, b, x, S, C;
273
+ function w() {
274
+ for (y = "default", b = "", x = !1, S = 1;;) {
275
+ C = T();
276
+ var e = D[y]();
277
+ if (e) return e;
278
+ }
279
+ }
280
+ function T() {
281
+ if (c[d]) return String.fromCodePoint(c.codePointAt(d));
282
+ }
283
+ function E() {
284
+ var e = T();
285
+ return e === "\n" ? (f++, p = 0) : e ? p += e.length : p++, e && (d += e.length), e;
286
+ }
287
+ var D = {
288
+ default: function() {
289
+ switch (C) {
290
+ case " ":
291
+ case "\v":
292
+ case "\f":
293
+ case " ":
294
+ case "\xA0":
295
+ case "":
296
+ case "\n":
297
+ case "\r":
298
+ case "\u2028":
299
+ case "\u2029":
300
+ E();
301
+ return;
302
+ case "/":
303
+ E(), y = "comment";
304
+ return;
305
+ case void 0: return E(), O("eof");
306
+ }
307
+ if (s.isSpaceSeparator(C)) {
308
+ E();
309
+ return;
310
+ }
311
+ return D[l]();
312
+ },
313
+ comment: function() {
314
+ switch (C) {
315
+ case "*":
316
+ E(), y = "multiLineComment";
317
+ return;
318
+ case "/":
319
+ E(), y = "singleLineComment";
320
+ return;
321
+ }
322
+ throw I(E());
323
+ },
324
+ multiLineComment: function() {
325
+ switch (C) {
326
+ case "*":
327
+ E(), y = "multiLineCommentAsterisk";
328
+ return;
329
+ case void 0: throw I(E());
330
+ }
331
+ E();
332
+ },
333
+ multiLineCommentAsterisk: function() {
334
+ switch (C) {
335
+ case "*":
336
+ E();
337
+ return;
338
+ case "/":
339
+ E(), y = "default";
340
+ return;
341
+ case void 0: throw I(E());
342
+ }
343
+ E(), y = "multiLineComment";
344
+ },
345
+ singleLineComment: function() {
346
+ switch (C) {
347
+ case "\n":
348
+ case "\r":
349
+ case "\u2028":
350
+ case "\u2029":
351
+ E(), y = "default";
352
+ return;
353
+ case void 0: return E(), O("eof");
354
+ }
355
+ E();
356
+ },
357
+ value: function() {
358
+ switch (C) {
359
+ case "{":
360
+ case "[": return O("punctuator", E());
361
+ case "n": return E(), k("ull"), O("null", null);
362
+ case "t": return E(), k("rue"), O("boolean", !0);
363
+ case "f": return E(), k("alse"), O("boolean", !1);
364
+ case "-":
365
+ case "+":
366
+ E() === "-" && (S = -1), y = "sign";
367
+ return;
368
+ case ".":
369
+ b = E(), y = "decimalPointLeading";
370
+ return;
371
+ case "0":
372
+ b = E(), y = "zero";
373
+ return;
374
+ case "1":
375
+ case "2":
376
+ case "3":
377
+ case "4":
378
+ case "5":
379
+ case "6":
380
+ case "7":
381
+ case "8":
382
+ case "9":
383
+ b = E(), y = "decimalInteger";
384
+ return;
385
+ case "I": return E(), k("nfinity"), O("numeric", Infinity);
386
+ case "N": return E(), k("aN"), O("numeric", NaN);
387
+ case "\"":
388
+ case "'":
389
+ x = E() === "\"", b = "", y = "string";
390
+ return;
391
+ }
392
+ throw I(E());
393
+ },
394
+ identifierNameStartEscape: function() {
395
+ if (C !== "u") throw I(E());
396
+ E();
397
+ var e = M();
398
+ switch (e) {
399
+ case "$":
400
+ case "_": break;
401
+ default:
402
+ if (!s.isIdStartChar(e)) throw R();
403
+ break;
404
+ }
405
+ b += e, y = "identifierName";
406
+ },
407
+ identifierName: function() {
408
+ switch (C) {
409
+ case "$":
410
+ case "_":
411
+ case "‌":
412
+ case "‍":
413
+ b += E();
414
+ return;
415
+ case "\\":
416
+ E(), y = "identifierNameEscape";
417
+ return;
418
+ }
419
+ if (s.isIdContinueChar(C)) {
420
+ b += E();
421
+ return;
422
+ }
423
+ return O("identifier", b);
424
+ },
425
+ identifierNameEscape: function() {
426
+ if (C !== "u") throw I(E());
427
+ E();
428
+ var e = M();
429
+ switch (e) {
430
+ case "$":
431
+ case "_":
432
+ case "‌":
433
+ case "‍": break;
434
+ default:
435
+ if (!s.isIdContinueChar(e)) throw R();
436
+ break;
437
+ }
438
+ b += e, y = "identifierName";
439
+ },
440
+ sign: function() {
441
+ switch (C) {
442
+ case ".":
443
+ b = E(), y = "decimalPointLeading";
444
+ return;
445
+ case "0":
446
+ b = E(), y = "zero";
447
+ return;
448
+ case "1":
449
+ case "2":
450
+ case "3":
451
+ case "4":
452
+ case "5":
453
+ case "6":
454
+ case "7":
455
+ case "8":
456
+ case "9":
457
+ b = E(), y = "decimalInteger";
458
+ return;
459
+ case "I": return E(), k("nfinity"), O("numeric", S * Infinity);
460
+ case "N": return E(), k("aN"), O("numeric", NaN);
461
+ }
462
+ throw I(E());
463
+ },
464
+ zero: function() {
465
+ switch (C) {
466
+ case ".":
467
+ b += E(), y = "decimalPoint";
468
+ return;
469
+ case "e":
470
+ case "E":
471
+ b += E(), y = "decimalExponent";
472
+ return;
473
+ case "x":
474
+ case "X":
475
+ b += E(), y = "hexadecimal";
476
+ return;
477
+ }
478
+ return O("numeric", S * 0);
479
+ },
480
+ decimalInteger: function() {
481
+ switch (C) {
482
+ case ".":
483
+ b += E(), y = "decimalPoint";
484
+ return;
485
+ case "e":
486
+ case "E":
487
+ b += E(), y = "decimalExponent";
488
+ return;
489
+ }
490
+ if (s.isDigit(C)) {
491
+ b += E();
492
+ return;
493
+ }
494
+ return O("numeric", S * Number(b));
495
+ },
496
+ decimalPointLeading: function() {
497
+ if (s.isDigit(C)) {
498
+ b += E(), y = "decimalFraction";
499
+ return;
500
+ }
501
+ throw I(E());
502
+ },
503
+ decimalPoint: function() {
504
+ switch (C) {
505
+ case "e":
506
+ case "E":
507
+ b += E(), y = "decimalExponent";
508
+ return;
509
+ }
510
+ if (s.isDigit(C)) {
511
+ b += E(), y = "decimalFraction";
512
+ return;
513
+ }
514
+ return O("numeric", S * Number(b));
515
+ },
516
+ decimalFraction: function() {
517
+ switch (C) {
518
+ case "e":
519
+ case "E":
520
+ b += E(), y = "decimalExponent";
521
+ return;
522
+ }
523
+ if (s.isDigit(C)) {
524
+ b += E();
525
+ return;
526
+ }
527
+ return O("numeric", S * Number(b));
528
+ },
529
+ decimalExponent: function() {
530
+ switch (C) {
531
+ case "+":
532
+ case "-":
533
+ b += E(), y = "decimalExponentSign";
534
+ return;
535
+ }
536
+ if (s.isDigit(C)) {
537
+ b += E(), y = "decimalExponentInteger";
538
+ return;
539
+ }
540
+ throw I(E());
541
+ },
542
+ decimalExponentSign: function() {
543
+ if (s.isDigit(C)) {
544
+ b += E(), y = "decimalExponentInteger";
545
+ return;
546
+ }
547
+ throw I(E());
548
+ },
549
+ decimalExponentInteger: function() {
550
+ if (s.isDigit(C)) {
551
+ b += E();
552
+ return;
553
+ }
554
+ return O("numeric", S * Number(b));
555
+ },
556
+ hexadecimal: function() {
557
+ if (s.isHexDigit(C)) {
558
+ b += E(), y = "hexadecimalInteger";
559
+ return;
560
+ }
561
+ throw I(E());
562
+ },
563
+ hexadecimalInteger: function() {
564
+ if (s.isHexDigit(C)) {
565
+ b += E();
566
+ return;
567
+ }
568
+ return O("numeric", S * Number(b));
569
+ },
570
+ string: function() {
571
+ switch (C) {
572
+ case "\\":
573
+ E(), b += A();
574
+ return;
575
+ case "\"":
576
+ if (x) return E(), O("string", b);
577
+ b += E();
578
+ return;
579
+ case "'":
580
+ if (!x) return E(), O("string", b);
581
+ b += E();
582
+ return;
583
+ case "\n":
584
+ case "\r": throw I(E());
585
+ case "\u2028":
586
+ case "\u2029":
587
+ ee(C);
588
+ break;
589
+ case void 0: throw I(E());
590
+ }
591
+ b += E();
592
+ },
593
+ start: function() {
594
+ switch (C) {
595
+ case "{":
596
+ case "[": return O("punctuator", E());
597
+ }
598
+ y = "value";
599
+ },
600
+ beforePropertyName: function() {
601
+ switch (C) {
602
+ case "$":
603
+ case "_":
604
+ b = E(), y = "identifierName";
605
+ return;
606
+ case "\\":
607
+ E(), y = "identifierNameStartEscape";
608
+ return;
609
+ case "}": return O("punctuator", E());
610
+ case "\"":
611
+ case "'":
612
+ x = E() === "\"", y = "string";
613
+ return;
614
+ }
615
+ if (s.isIdStartChar(C)) {
616
+ b += E(), y = "identifierName";
617
+ return;
618
+ }
619
+ throw I(E());
620
+ },
621
+ afterPropertyName: function() {
622
+ if (C === ":") return O("punctuator", E());
623
+ throw I(E());
624
+ },
625
+ beforePropertyValue: function() {
626
+ y = "value";
627
+ },
628
+ afterPropertyValue: function() {
629
+ switch (C) {
630
+ case ",":
631
+ case "}": return O("punctuator", E());
632
+ }
633
+ throw I(E());
634
+ },
635
+ beforeArrayValue: function() {
636
+ if (C === "]") return O("punctuator", E());
637
+ y = "value";
638
+ },
639
+ afterArrayValue: function() {
640
+ switch (C) {
641
+ case ",":
642
+ case "]": return O("punctuator", E());
643
+ }
644
+ throw I(E());
645
+ },
646
+ end: function() {
647
+ throw I(E());
648
+ }
649
+ };
650
+ function O(e, t) {
651
+ return {
652
+ type: e,
653
+ value: t,
654
+ line: f,
655
+ column: p
656
+ };
657
+ }
658
+ function k(e) {
659
+ var t = n(e), r;
660
+ try {
661
+ for (t.s(); !(r = t.n()).done;) {
662
+ var i = r.value;
663
+ if (T() !== i) throw I(E());
664
+ E();
665
+ }
666
+ } catch (e) {
667
+ t.e(e);
668
+ } finally {
669
+ t.f();
670
+ }
671
+ }
672
+ function A() {
673
+ switch (T()) {
674
+ case "b": return E(), "\b";
675
+ case "f": return E(), "\f";
676
+ case "n": return E(), "\n";
677
+ case "r": return E(), "\r";
678
+ case "t": return E(), " ";
679
+ case "v": return E(), "\v";
680
+ case "0":
681
+ if (E(), s.isDigit(T())) throw I(E());
682
+ return "\0";
683
+ case "x": return E(), j();
684
+ case "u": return E(), M();
685
+ case "\n":
686
+ case "\u2028":
687
+ case "\u2029": return E(), "";
688
+ case "\r": return E(), T() === "\n" && E(), "";
689
+ case "1":
690
+ case "2":
691
+ case "3":
692
+ case "4":
693
+ case "5":
694
+ case "6":
695
+ case "7":
696
+ case "8":
697
+ case "9": throw I(E());
698
+ case void 0: throw I(E());
699
+ }
700
+ return E();
701
+ }
702
+ function j() {
703
+ var e = "", t = T();
704
+ if (!s.isHexDigit(t) || (e += E(), t = T(), !s.isHexDigit(t))) throw I(E());
705
+ return e += E(), String.fromCodePoint(parseInt(e, 16));
706
+ }
707
+ function M() {
708
+ for (var e = "", t = 4; t-- > 0;) {
709
+ var n = T();
710
+ if (!s.isHexDigit(n)) throw I(E());
711
+ e += E();
712
+ }
713
+ return String.fromCodePoint(parseInt(e, 16));
714
+ }
715
+ var N = {
716
+ start: function() {
717
+ if (m.type === "eof") throw L();
718
+ P();
719
+ },
720
+ beforePropertyName: function() {
721
+ switch (m.type) {
722
+ case "identifier":
723
+ case "string":
724
+ h = m.value, l = "afterPropertyName";
725
+ return;
726
+ case "punctuator":
727
+ F();
728
+ return;
729
+ case "eof": throw L();
730
+ }
731
+ },
732
+ afterPropertyName: function() {
733
+ if (m.type === "eof") throw L();
734
+ l = "beforePropertyValue";
735
+ },
736
+ beforePropertyValue: function() {
737
+ if (m.type === "eof") throw L();
738
+ P();
739
+ },
740
+ beforeArrayValue: function() {
741
+ if (m.type === "eof") throw L();
742
+ if (m.type === "punctuator" && m.value === "]") {
743
+ F();
744
+ return;
745
+ }
746
+ P();
747
+ },
748
+ afterPropertyValue: function() {
749
+ if (m.type === "eof") throw L();
750
+ switch (m.value) {
751
+ case ",":
752
+ l = "beforePropertyName";
753
+ return;
754
+ case "}": F();
755
+ }
756
+ },
757
+ afterArrayValue: function() {
758
+ if (m.type === "eof") throw L();
759
+ switch (m.value) {
760
+ case ",":
761
+ l = "beforeArrayValue";
762
+ return;
763
+ case "]": F();
764
+ }
765
+ },
766
+ end: function() {}
767
+ };
768
+ function P() {
769
+ var e;
770
+ switch (m.type) {
771
+ case "punctuator":
772
+ switch (m.value) {
773
+ case "{":
774
+ e = {};
775
+ break;
776
+ case "[":
777
+ e = [];
778
+ break;
779
+ }
780
+ break;
781
+ case "null":
782
+ case "boolean":
783
+ case "numeric":
784
+ case "string":
785
+ e = m.value;
786
+ break;
787
+ }
788
+ if (g === void 0) g = e;
789
+ else {
790
+ var t = u[u.length - 1];
791
+ Array.isArray(t) ? t.push(e) : Object.defineProperty(t, h, {
792
+ value: e,
793
+ writable: !0,
794
+ enumerable: !0,
795
+ configurable: !0
796
+ });
797
+ }
798
+ if (e !== null && a(e) === "object") u.push(e), l = Array.isArray(e) ? "beforeArrayValue" : "beforePropertyName";
799
+ else {
800
+ var n = u[u.length - 1];
801
+ l = n == null ? "end" : Array.isArray(n) ? "afterArrayValue" : "afterPropertyValue";
802
+ }
803
+ }
804
+ function F() {
805
+ u.pop();
806
+ var e = u[u.length - 1];
807
+ l = e == null ? "end" : Array.isArray(e) ? "afterArrayValue" : "afterPropertyValue";
808
+ }
809
+ function I(e) {
810
+ return z(e === void 0 ? `JSON5: invalid end of input at ${f}:${p}` : `JSON5: invalid character '${te(e)}' at ${f}:${p}`);
811
+ }
812
+ function L() {
813
+ return z(`JSON5: invalid end of input at ${f}:${p}`);
814
+ }
815
+ function R() {
816
+ return p -= 5, z(`JSON5: invalid identifier character at ${f}:${p}`);
817
+ }
818
+ function ee(e) {
819
+ console.warn(`JSON5: '${te(e)}' in strings is not valid ECMAScript; consider escaping`);
820
+ }
821
+ function te(e) {
822
+ var t = {
823
+ "'": "\\'",
824
+ "\"": "\\\"",
825
+ "\\": "\\\\",
826
+ "\b": "\\b",
827
+ "\f": "\\f",
828
+ "\n": "\\n",
829
+ "\r": "\\r",
830
+ " ": "\\t",
831
+ "\v": "\\v",
832
+ "\0": "\\0",
833
+ "\u2028": "\\u2028",
834
+ "\u2029": "\\u2029"
835
+ };
836
+ if (t[e]) return t[e];
837
+ if (e < " ") {
838
+ var n = e.charCodeAt(0).toString(16);
839
+ return "\\x" + ("00" + n).substring(n.length);
840
+ }
841
+ return e;
842
+ }
843
+ function z(e) {
844
+ var t = SyntaxError(e);
845
+ return t.lineNumber = f, t.columnNumber = p, t;
846
+ }
847
+ e.default = {
848
+ parse: _,
849
+ stringify: function(e, t, r) {
850
+ var i = [], o = "", c, l, u = "", d;
851
+ if (t != null && a(t) === "object" && !Array.isArray(t) && (r = t.space, d = t.quote, t = t.replacer), typeof t == "function") l = t;
852
+ else if (Array.isArray(t)) {
853
+ c = [];
854
+ var f = n(t), p;
855
+ try {
856
+ for (f.s(); !(p = f.n()).done;) {
857
+ var m = p.value, h = void 0;
858
+ typeof m == "string" ? h = m : (typeof m == "number" || m instanceof String || m instanceof Number) && (h = String(m)), h !== void 0 && c.indexOf(h) < 0 && c.push(h);
859
+ }
860
+ } catch (e) {
861
+ f.e(e);
862
+ } finally {
863
+ f.f();
864
+ }
865
+ }
866
+ return r instanceof Number ? r = Number(r) : r instanceof String && (r = String(r)), typeof r == "number" ? r > 0 && (r = Math.min(10, Math.floor(r)), u = " ".substr(0, r)) : typeof r == "string" && (u = r.substr(0, 10)), g("", { "": e });
867
+ function g(e, t) {
868
+ var n = t[e];
869
+ switch (n != null && (typeof n.toJSON5 == "function" ? n = n.toJSON5(e) : typeof n.toJSON == "function" && (n = n.toJSON(e))), l && (n = l.call(t, e, n)), n instanceof Number ? n = Number(n) : n instanceof String ? n = String(n) : n instanceof Boolean && (n = n.valueOf()), n) {
870
+ case null: return "null";
871
+ case !0: return "true";
872
+ case !1: return "false";
873
+ }
874
+ if (typeof n == "string") return _(n, !1);
875
+ if (typeof n == "number") return String(n);
876
+ if (a(n) === "object") return Array.isArray(n) ? b(n) : v(n);
877
+ }
878
+ function _(e) {
879
+ for (var t = {
880
+ "'": .1,
881
+ "\"": .2
882
+ }, n = {
883
+ "'": "\\'",
884
+ "\"": "\\\"",
885
+ "\\": "\\\\",
886
+ "\b": "\\b",
887
+ "\f": "\\f",
888
+ "\n": "\\n",
889
+ "\r": "\\r",
890
+ " ": "\\t",
891
+ "\v": "\\v",
892
+ "\0": "\\0",
893
+ "\u2028": "\\u2028",
894
+ "\u2029": "\\u2029"
895
+ }, r = "", i = 0; i < e.length; i++) {
896
+ var a = e[i];
897
+ switch (a) {
898
+ case "'":
899
+ case "\"":
900
+ t[a]++, r += a;
901
+ continue;
902
+ case "\0": if (s.isDigit(e[i + 1])) {
903
+ r += "\\x00";
904
+ continue;
905
+ }
906
+ }
907
+ if (n[a]) {
908
+ r += n[a];
909
+ continue;
910
+ }
911
+ if (a < " ") {
912
+ var o = a.charCodeAt(0).toString(16);
913
+ r += "\\x" + ("00" + o).substring(o.length);
914
+ continue;
915
+ }
916
+ r += a;
917
+ }
918
+ var c = d || Object.keys(t).reduce(function(e, n) {
919
+ return t[e] < t[n] ? e : n;
920
+ });
921
+ return r = r.replace(new RegExp(c, "g"), n[c]), c + r + c;
922
+ }
923
+ function v(e) {
924
+ if (i.indexOf(e) >= 0) throw TypeError("Converting circular structure to JSON5");
925
+ i.push(e);
926
+ var t = o;
927
+ o += u;
928
+ var r = c || Object.keys(e), a = [], s = n(r), l;
929
+ try {
930
+ for (s.s(); !(l = s.n()).done;) {
931
+ var d = l.value, f = g(d, e);
932
+ if (f !== void 0) {
933
+ var p = y(d) + ":";
934
+ u !== "" && (p += " "), p += f, a.push(p);
935
+ }
936
+ }
937
+ } catch (e) {
938
+ s.e(e);
939
+ } finally {
940
+ s.f();
941
+ }
942
+ var m;
943
+ if (a.length === 0) m = "{}";
944
+ else {
945
+ var h;
946
+ if (u === "") h = a.join(","), m = "{" + h + "}";
947
+ else {
948
+ var _ = ",\n" + o;
949
+ h = a.join(_), m = "{\n" + o + h + ",\n" + t + "}";
950
+ }
951
+ }
952
+ return i.pop(), o = t, m;
953
+ }
954
+ function y(e) {
955
+ if (e.length === 0) return _(e, !0);
956
+ var t = String.fromCodePoint(e.codePointAt(0));
957
+ if (!s.isIdStartChar(t)) return _(e, !0);
958
+ for (var n = t.length; n < e.length; n++) if (!s.isIdContinueChar(String.fromCodePoint(e.codePointAt(n)))) return _(e, !0);
959
+ return e;
960
+ }
961
+ function b(e) {
962
+ if (i.indexOf(e) >= 0) throw TypeError("Converting circular structure to JSON5");
963
+ i.push(e);
964
+ var t = o;
965
+ o += u;
966
+ for (var n = [], r = 0; r < e.length; r++) {
967
+ var a = g(String(r), e);
968
+ n.push(a === void 0 ? "null" : a);
969
+ }
970
+ var s;
971
+ if (n.length === 0) s = "[]";
972
+ else if (u === "") s = "[" + n.join(",") + "]";
973
+ else {
974
+ var c = ",\n" + o, l = n.join(c);
975
+ s = "[\n" + o + l + ",\n" + t + "]";
976
+ }
977
+ return i.pop(), o = t, s;
978
+ }
979
+ }
980
+ }, t.exports = e.default;
981
+ })), d = /* @__PURE__ */ n(((e) => {
982
+ Object.defineProperty(e, "__esModule", { value: !0 }), e.SyntaxKind = e.ScanError = e.ParseErrorCode = void 0, e.applyEdits = ae, e.findNodeAtOffset = e.findNodeAtLocation = e.createScanner = void 0, e.format = re, e.getNodeValue = e.getNodePath = e.getLocation = void 0, e.modify = ie, e.parseTree = e.parse = void 0, e.printParseErrorCode = ne, e.visit = e.stripComments = void 0;
983
+ function t(e, t) {
984
+ var n = Object.keys(e);
985
+ if (Object.getOwnPropertySymbols) {
986
+ var r = Object.getOwnPropertySymbols(e);
987
+ t && (r = r.filter(function(t) {
988
+ return Object.getOwnPropertyDescriptor(e, t).enumerable;
989
+ })), n.push.apply(n, r);
990
+ }
991
+ return n;
992
+ }
993
+ function n(e) {
994
+ for (var n = 1; n < arguments.length; n++) {
995
+ var i = arguments[n] == null ? {} : arguments[n];
996
+ n % 2 ? t(Object(i), !0).forEach(function(t) {
997
+ r(e, t, i[t]);
998
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(i)) : t(Object(i)).forEach(function(t) {
999
+ Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(i, t));
1000
+ });
1001
+ }
1002
+ return e;
1003
+ }
1004
+ function r(e, t, n) {
1005
+ return (t = i(t)) in e ? Object.defineProperty(e, t, {
1006
+ value: n,
1007
+ enumerable: !0,
1008
+ configurable: !0,
1009
+ writable: !0
1010
+ }) : e[t] = n, e;
1011
+ }
1012
+ function i(e) {
1013
+ var t = a(e, "string");
1014
+ return o(t) == "symbol" ? t : t + "";
1015
+ }
1016
+ function a(e, t) {
1017
+ if (o(e) != "object" || !e) return e;
1018
+ var n = e[Symbol.toPrimitive];
1019
+ if (n !== void 0) {
1020
+ var r = n.call(e, t || "default");
1021
+ if (o(r) != "object") return r;
1022
+ throw TypeError("@@toPrimitive must return a primitive value.");
1023
+ }
1024
+ return (t === "string" ? String : Number)(e);
1025
+ }
1026
+ function o(e) {
1027
+ "@babel/helpers - typeof";
1028
+ return o = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
1029
+ return typeof e;
1030
+ } : function(e) {
1031
+ return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
1032
+ }, o(e);
1033
+ }
1034
+ function s(e, t) {
1035
+ var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
1036
+ if (!n) {
1037
+ if (Array.isArray(e) || (n = c(e)) || t && e && typeof e.length == "number") {
1038
+ n && (e = n);
1039
+ var r = 0, i = function() {};
1040
+ return {
1041
+ s: i,
1042
+ n: function() {
1043
+ return r >= e.length ? { done: !0 } : {
1044
+ done: !1,
1045
+ value: e[r++]
1046
+ };
1047
+ },
1048
+ e: function(e) {
1049
+ throw e;
1050
+ },
1051
+ f: i
1052
+ };
1053
+ }
1054
+ throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1055
+ }
1056
+ var a, o = !0, s = !1;
1057
+ return {
1058
+ s: function() {
1059
+ n = n.call(e);
1060
+ },
1061
+ n: function() {
1062
+ var e = n.next();
1063
+ return o = e.done, e;
1064
+ },
1065
+ e: function(e) {
1066
+ s = !0, a = e;
1067
+ },
1068
+ f: function() {
1069
+ try {
1070
+ o || n.return == null || n.return();
1071
+ } finally {
1072
+ if (s) throw a;
1073
+ }
1074
+ }
1075
+ };
1076
+ }
1077
+ function c(e, t) {
1078
+ if (e) {
1079
+ if (typeof e == "string") return l(e, t);
1080
+ var n = {}.toString.call(e).slice(8, -1);
1081
+ return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? l(e, t) : void 0;
1082
+ }
1083
+ }
1084
+ function l(e, t) {
1085
+ (t == null || t > e.length) && (t = e.length);
1086
+ for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
1087
+ return r;
1088
+ }
1089
+ function u(e) {
1090
+ var t = arguments.length > 1 && arguments[1] !== void 0 && arguments[1], n = e.length, r = 0, i = "", a = 0, o = 16, s = 0, c = 0, l = 0, u = 0, m = 0;
1091
+ function h(t, n) {
1092
+ for (var i = 0, a = 0; i < t || !n;) {
1093
+ var o = e.charCodeAt(r);
1094
+ if (o >= 48 && o <= 57) a = a * 16 + o - 48;
1095
+ else if (o >= 65 && o <= 70) a = a * 16 + o - 65 + 10;
1096
+ else if (o >= 97 && o <= 102) a = a * 16 + o - 97 + 10;
1097
+ else break;
1098
+ r++, i++;
1099
+ }
1100
+ return i < t && (a = -1), a;
1101
+ }
1102
+ function g(e) {
1103
+ r = e, i = "", a = 0, o = 16, m = 0;
1104
+ }
1105
+ function _() {
1106
+ var t = r;
1107
+ if (e.charCodeAt(r) === 48) r++;
1108
+ else for (r++; r < e.length && p(e.charCodeAt(r));) r++;
1109
+ if (r < e.length && e.charCodeAt(r) === 46) if (r++, r < e.length && p(e.charCodeAt(r))) for (r++; r < e.length && p(e.charCodeAt(r));) r++;
1110
+ else return m = 3, e.substring(t, r);
1111
+ var n = r;
1112
+ if (r < e.length && (e.charCodeAt(r) === 69 || e.charCodeAt(r) === 101)) if (r++, (r < e.length && e.charCodeAt(r) === 43 || e.charCodeAt(r) === 45) && r++, r < e.length && p(e.charCodeAt(r))) {
1113
+ for (r++; r < e.length && p(e.charCodeAt(r));) r++;
1114
+ n = r;
1115
+ } else m = 3;
1116
+ return e.substring(t, n);
1117
+ }
1118
+ function v() {
1119
+ for (var t = "", i = r;;) {
1120
+ if (r >= n) {
1121
+ t += e.substring(i, r), m = 2;
1122
+ break;
1123
+ }
1124
+ var a = e.charCodeAt(r);
1125
+ if (a === 34) {
1126
+ t += e.substring(i, r), r++;
1127
+ break;
1128
+ }
1129
+ if (a === 92) {
1130
+ if (t += e.substring(i, r), r++, r >= n) {
1131
+ m = 2;
1132
+ break;
1133
+ }
1134
+ switch (e.charCodeAt(r++)) {
1135
+ case 34:
1136
+ t += "\"";
1137
+ break;
1138
+ case 92:
1139
+ t += "\\";
1140
+ break;
1141
+ case 47:
1142
+ t += "/";
1143
+ break;
1144
+ case 98:
1145
+ t += "\b";
1146
+ break;
1147
+ case 102:
1148
+ t += "\f";
1149
+ break;
1150
+ case 110:
1151
+ t += "\n";
1152
+ break;
1153
+ case 114:
1154
+ t += "\r";
1155
+ break;
1156
+ case 116:
1157
+ t += " ";
1158
+ break;
1159
+ case 117:
1160
+ var o = h(4, !0);
1161
+ o >= 0 ? t += String.fromCharCode(o) : m = 4;
1162
+ break;
1163
+ default: m = 5;
1164
+ }
1165
+ i = r;
1166
+ continue;
1167
+ }
1168
+ if (a >= 0 && a <= 31) if (f(a)) {
1169
+ t += e.substring(i, r), m = 2;
1170
+ break;
1171
+ } else m = 6;
1172
+ r++;
1173
+ }
1174
+ return t;
1175
+ }
1176
+ function y() {
1177
+ if (i = "", m = 0, a = r, c = s, u = l, r >= n) return a = n, o = 17;
1178
+ var t = e.charCodeAt(r);
1179
+ if (d(t)) {
1180
+ do
1181
+ r++, i += String.fromCharCode(t), t = e.charCodeAt(r);
1182
+ while (d(t));
1183
+ return o = 15;
1184
+ }
1185
+ if (f(t)) return r++, i += String.fromCharCode(t), t === 13 && e.charCodeAt(r) === 10 && (r++, i += "\n"), s++, l = r, o = 14;
1186
+ switch (t) {
1187
+ case 123: return r++, o = 1;
1188
+ case 125: return r++, o = 2;
1189
+ case 91: return r++, o = 3;
1190
+ case 93: return r++, o = 4;
1191
+ case 58: return r++, o = 6;
1192
+ case 44: return r++, o = 5;
1193
+ case 34: return r++, i = v(), o = 10;
1194
+ case 47:
1195
+ var h = r - 1;
1196
+ if (e.charCodeAt(r + 1) === 47) {
1197
+ for (r += 2; r < n && !f(e.charCodeAt(r));) r++;
1198
+ return i = e.substring(h, r), o = 12;
1199
+ }
1200
+ if (e.charCodeAt(r + 1) === 42) {
1201
+ r += 2;
1202
+ for (var g = n - 1, y = !1; r < g;) {
1203
+ var x = e.charCodeAt(r);
1204
+ if (x === 42 && e.charCodeAt(r + 1) === 47) {
1205
+ r += 2, y = !0;
1206
+ break;
1207
+ }
1208
+ r++, f(x) && (x === 13 && e.charCodeAt(r) === 10 && r++, s++, l = r);
1209
+ }
1210
+ return y || (r++, m = 1), i = e.substring(h, r), o = 13;
1211
+ }
1212
+ return i += String.fromCharCode(t), r++, o = 16;
1213
+ case 45: if (i += String.fromCharCode(t), r++, r === n || !p(e.charCodeAt(r))) return o = 16;
1214
+ case 48:
1215
+ case 49:
1216
+ case 50:
1217
+ case 51:
1218
+ case 52:
1219
+ case 53:
1220
+ case 54:
1221
+ case 55:
1222
+ case 56:
1223
+ case 57: return i += _(), o = 11;
1224
+ default:
1225
+ for (; r < n && b(t);) r++, t = e.charCodeAt(r);
1226
+ if (a !== r) {
1227
+ switch (i = e.substring(a, r), i) {
1228
+ case "true": return o = 8;
1229
+ case "false": return o = 9;
1230
+ case "null": return o = 7;
1231
+ }
1232
+ return o = 16;
1233
+ }
1234
+ return i += String.fromCharCode(t), r++, o = 16;
1235
+ }
1236
+ }
1237
+ function b(e) {
1238
+ if (d(e) || f(e)) return !1;
1239
+ switch (e) {
1240
+ case 125:
1241
+ case 93:
1242
+ case 123:
1243
+ case 91:
1244
+ case 34:
1245
+ case 58:
1246
+ case 44:
1247
+ case 47: return !1;
1248
+ }
1249
+ return !0;
1250
+ }
1251
+ function x() {
1252
+ var e;
1253
+ do
1254
+ e = y();
1255
+ while (e >= 12 && e <= 15);
1256
+ return e;
1257
+ }
1258
+ return {
1259
+ setPosition: g,
1260
+ getPosition: function() {
1261
+ return r;
1262
+ },
1263
+ scan: t ? x : y,
1264
+ getToken: function() {
1265
+ return o;
1266
+ },
1267
+ getTokenValue: function() {
1268
+ return i;
1269
+ },
1270
+ getTokenOffset: function() {
1271
+ return a;
1272
+ },
1273
+ getTokenLength: function() {
1274
+ return r - a;
1275
+ },
1276
+ getTokenStartLine: function() {
1277
+ return c;
1278
+ },
1279
+ getTokenStartCharacter: function() {
1280
+ return a - u;
1281
+ },
1282
+ getTokenError: function() {
1283
+ return m;
1284
+ }
1285
+ };
1286
+ }
1287
+ function d(e) {
1288
+ return e === 32 || e === 9;
1289
+ }
1290
+ function f(e) {
1291
+ return e === 10 || e === 13;
1292
+ }
1293
+ function p(e) {
1294
+ return e >= 48 && e <= 57;
1295
+ }
1296
+ var m;
1297
+ (function(e) {
1298
+ e[e.lineFeed = 10] = "lineFeed", e[e.carriageReturn = 13] = "carriageReturn", e[e.space = 32] = "space", e[e._0 = 48] = "_0", e[e._1 = 49] = "_1", e[e._2 = 50] = "_2", e[e._3 = 51] = "_3", e[e._4 = 52] = "_4", e[e._5 = 53] = "_5", e[e._6 = 54] = "_6", e[e._7 = 55] = "_7", e[e._8 = 56] = "_8", e[e._9 = 57] = "_9", e[e.a = 97] = "a", e[e.b = 98] = "b", e[e.c = 99] = "c", e[e.d = 100] = "d", e[e.e = 101] = "e", e[e.f = 102] = "f", e[e.g = 103] = "g", e[e.h = 104] = "h", e[e.i = 105] = "i", e[e.j = 106] = "j", e[e.k = 107] = "k", e[e.l = 108] = "l", e[e.m = 109] = "m", e[e.n = 110] = "n", e[e.o = 111] = "o", e[e.p = 112] = "p", e[e.q = 113] = "q", e[e.r = 114] = "r", e[e.s = 115] = "s", e[e.t = 116] = "t", e[e.u = 117] = "u", e[e.v = 118] = "v", e[e.w = 119] = "w", e[e.x = 120] = "x", e[e.y = 121] = "y", e[e.z = 122] = "z", e[e.A = 65] = "A", e[e.B = 66] = "B", e[e.C = 67] = "C", e[e.D = 68] = "D", e[e.E = 69] = "E", e[e.F = 70] = "F", e[e.G = 71] = "G", e[e.H = 72] = "H", e[e.I = 73] = "I", e[e.J = 74] = "J", e[e.K = 75] = "K", e[e.L = 76] = "L", e[e.M = 77] = "M", e[e.N = 78] = "N", e[e.O = 79] = "O", e[e.P = 80] = "P", e[e.Q = 81] = "Q", e[e.R = 82] = "R", e[e.S = 83] = "S", e[e.T = 84] = "T", e[e.U = 85] = "U", e[e.V = 86] = "V", e[e.W = 87] = "W", e[e.X = 88] = "X", e[e.Y = 89] = "Y", e[e.Z = 90] = "Z", e[e.asterisk = 42] = "asterisk", e[e.backslash = 92] = "backslash", e[e.closeBrace = 125] = "closeBrace", e[e.closeBracket = 93] = "closeBracket", e[e.colon = 58] = "colon", e[e.comma = 44] = "comma", e[e.dot = 46] = "dot", e[e.doubleQuote = 34] = "doubleQuote", e[e.minus = 45] = "minus", e[e.openBrace = 123] = "openBrace", e[e.openBracket = 91] = "openBracket", e[e.plus = 43] = "plus", e[e.slash = 47] = "slash", e[e.formFeed = 12] = "formFeed", e[e.tab = 9] = "tab";
1299
+ })(m ||= {});
1300
+ var h = Array(20).fill(0).map(function(e, t) {
1301
+ return " ".repeat(t);
1302
+ }), g = 200, _ = {
1303
+ " ": {
1304
+ "\n": Array(g).fill(0).map(function(e, t) {
1305
+ return "\n" + " ".repeat(t);
1306
+ }),
1307
+ "\r": Array(g).fill(0).map(function(e, t) {
1308
+ return "\r" + " ".repeat(t);
1309
+ }),
1310
+ "\r\n": Array(g).fill(0).map(function(e, t) {
1311
+ return "\r\n" + " ".repeat(t);
1312
+ })
1313
+ },
1314
+ " ": {
1315
+ "\n": Array(g).fill(0).map(function(e, t) {
1316
+ return "\n" + " ".repeat(t);
1317
+ }),
1318
+ "\r": Array(g).fill(0).map(function(e, t) {
1319
+ return "\r" + " ".repeat(t);
1320
+ }),
1321
+ "\r\n": Array(g).fill(0).map(function(e, t) {
1322
+ return "\r\n" + " ".repeat(t);
1323
+ })
1324
+ }
1325
+ }, v = [
1326
+ "\n",
1327
+ "\r",
1328
+ "\r\n"
1329
+ ];
1330
+ function y(e, t, n) {
1331
+ var r, i, a, o, s;
1332
+ if (t) {
1333
+ for (o = t.offset, s = o + t.length, a = o; a > 0 && !C(e, a - 1);) a--;
1334
+ for (var c = s; c < e.length && !C(e, c);) c++;
1335
+ i = e.substring(a, c), r = x(i, n);
1336
+ } else i = e, r = 0, a = 0, o = 0, s = e.length;
1337
+ var l = S(n, e), d = v.includes(l), f = 0, p = 0, m = n.insertSpaces ? h[n.tabSize || 4] ?? b(h[1], n.tabSize || 4) : " ", g = m === " " ? " " : " ", y = u(i, !1), w = !1;
1338
+ function T() {
1339
+ if (f > 1) return b(l, f) + b(m, r + p);
1340
+ var e = m.length * (r + p);
1341
+ return !d || e > _[g][l].length ? l + b(m, r + p) : e <= 0 ? l : _[g][l][e];
1342
+ }
1343
+ function E() {
1344
+ var e = y.scan();
1345
+ for (f = 0; e === 15 || e === 14;) e === 14 && n.keepLines ? f += 1 : e === 14 && (f = 1), e = y.scan();
1346
+ return w = e === 16 || y.getTokenError() !== 0, e;
1347
+ }
1348
+ var D = [];
1349
+ function O(n, r, i) {
1350
+ !w && (!t || r < s && i > o) && e.substring(r, i) !== n && D.push({
1351
+ offset: r,
1352
+ length: i - r,
1353
+ content: n
1354
+ });
1355
+ }
1356
+ var k = E();
1357
+ if (n.keepLines && f > 0 && O(b(l, f), 0, 0), k !== 17) {
1358
+ var A = y.getTokenOffset() + a;
1359
+ O(m.length * r < 20 && n.insertSpaces ? h[m.length * r] : b(m, r), a, A);
1360
+ }
1361
+ for (; k !== 17;) {
1362
+ for (var j = y.getTokenOffset() + y.getTokenLength() + a, M = E(), N = "", P = !1; f === 0 && (M === 12 || M === 13);) {
1363
+ var F = y.getTokenOffset() + a;
1364
+ O(h[1], j, F), j = y.getTokenOffset() + y.getTokenLength() + a, P = M === 12, N = P ? T() : "", M = E();
1365
+ }
1366
+ if (M === 2) k !== 1 && p--, n.keepLines && f > 0 || !n.keepLines && k !== 1 ? N = T() : n.keepLines && (N = h[1]);
1367
+ else if (M === 4) k !== 3 && p--, n.keepLines && f > 0 || !n.keepLines && k !== 3 ? N = T() : n.keepLines && (N = h[1]);
1368
+ else {
1369
+ switch (k) {
1370
+ case 3:
1371
+ case 1:
1372
+ p++, N = n.keepLines && f > 0 || !n.keepLines ? T() : h[1];
1373
+ break;
1374
+ case 5:
1375
+ N = n.keepLines && f > 0 || !n.keepLines ? T() : h[1];
1376
+ break;
1377
+ case 12:
1378
+ N = T();
1379
+ break;
1380
+ case 13:
1381
+ f > 0 ? N = T() : P || (N = h[1]);
1382
+ break;
1383
+ case 6:
1384
+ n.keepLines && f > 0 ? N = T() : P || (N = h[1]);
1385
+ break;
1386
+ case 10:
1387
+ n.keepLines && f > 0 ? N = T() : M === 6 && !P && (N = "");
1388
+ break;
1389
+ case 7:
1390
+ case 8:
1391
+ case 9:
1392
+ case 11:
1393
+ case 2:
1394
+ case 4:
1395
+ n.keepLines && f > 0 ? N = T() : (M === 12 || M === 13) && !P ? N = h[1] : M !== 5 && M !== 17 && (w = !0);
1396
+ break;
1397
+ case 16:
1398
+ w = !0;
1399
+ break;
1400
+ }
1401
+ f > 0 && (M === 12 || M === 13) && (N = T());
1402
+ }
1403
+ M === 17 && (N = n.keepLines && f > 0 ? T() : n.insertFinalNewline ? l : "");
1404
+ var I = y.getTokenOffset() + a;
1405
+ O(N, j, I), k = M;
1406
+ }
1407
+ return D;
1408
+ }
1409
+ function b(e, t) {
1410
+ for (var n = "", r = 0; r < t; r++) n += e;
1411
+ return n;
1412
+ }
1413
+ function x(e, t) {
1414
+ for (var n = 0, r = 0, i = t.tabSize || 4; n < e.length;) {
1415
+ var a = e.charAt(n);
1416
+ if (a === h[1]) r++;
1417
+ else if (a === " ") r += i;
1418
+ else break;
1419
+ n++;
1420
+ }
1421
+ return Math.floor(r / i);
1422
+ }
1423
+ function S(e, t) {
1424
+ for (var n = 0; n < t.length; n++) {
1425
+ var r = t.charAt(n);
1426
+ if (r === "\r") return n + 1 < t.length && t.charAt(n + 1) === "\n" ? "\r\n" : "\r";
1427
+ if (r === "\n") return "\n";
1428
+ }
1429
+ return e && e.eol || "\n";
1430
+ }
1431
+ function C(e, t) {
1432
+ return "\r\n".indexOf(e.charAt(t)) !== -1;
1433
+ }
1434
+ var w;
1435
+ (function(e) {
1436
+ e.DEFAULT = { allowTrailingComma: !1 };
1437
+ })(w ||= {});
1438
+ function T(e, t) {
1439
+ var n = [], r = {}, i = void 0, a = {
1440
+ value: {},
1441
+ offset: 0,
1442
+ length: 0,
1443
+ type: "object",
1444
+ parent: void 0
1445
+ }, o = !1;
1446
+ function s(e, t, n, r) {
1447
+ a.value = e, a.offset = t, a.length = n, a.type = r, a.colonOffset = void 0, i = a;
1448
+ }
1449
+ try {
1450
+ N(e, {
1451
+ onObjectBegin: function(e, a) {
1452
+ if (t <= e) throw r;
1453
+ i = void 0, o = t > e, n.push("");
1454
+ },
1455
+ onObjectProperty: function(e, i, a) {
1456
+ if (t < i || (s(e, i, a, "property"), n[n.length - 1] = e, t <= i + a)) throw r;
1457
+ },
1458
+ onObjectEnd: function(e, a) {
1459
+ if (t <= e) throw r;
1460
+ i = void 0, n.pop();
1461
+ },
1462
+ onArrayBegin: function(e, a) {
1463
+ if (t <= e) throw r;
1464
+ i = void 0, n.push(0);
1465
+ },
1466
+ onArrayEnd: function(e, a) {
1467
+ if (t <= e) throw r;
1468
+ i = void 0, n.pop();
1469
+ },
1470
+ onLiteralValue: function(e, n, i) {
1471
+ if (t < n || (s(e, n, i, F(e)), t <= n + i)) throw r;
1472
+ },
1473
+ onSeparator: function(e, a, s) {
1474
+ if (t <= a) throw r;
1475
+ if (e === ":" && i && i.type === "property") i.colonOffset = a, o = !1, i = void 0;
1476
+ else if (e === ",") {
1477
+ var c = n[n.length - 1];
1478
+ typeof c == "number" ? n[n.length - 1] = c + 1 : (o = !0, n[n.length - 1] = ""), i = void 0;
1479
+ }
1480
+ }
1481
+ });
1482
+ } catch (e) {
1483
+ if (e !== r) throw e;
1484
+ }
1485
+ return {
1486
+ path: n,
1487
+ previousNode: i,
1488
+ isAtPropertyKey: o,
1489
+ matches: function(e) {
1490
+ for (var t = 0, r = 0; t < e.length && r < n.length; r++) if (e[t] === n[r] || e[t] === "*") t++;
1491
+ else if (e[t] !== "**") return !1;
1492
+ return t === e.length;
1493
+ }
1494
+ };
1495
+ }
1496
+ function E(e) {
1497
+ var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [], n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : w.DEFAULT, r = null, i = [], a = [];
1498
+ function o(e) {
1499
+ Array.isArray(i) ? i.push(e) : r !== null && (i[r] = e);
1500
+ }
1501
+ return N(e, {
1502
+ onObjectBegin: function() {
1503
+ var e = {};
1504
+ o(e), a.push(i), i = e, r = null;
1505
+ },
1506
+ onObjectProperty: function(e) {
1507
+ r = e;
1508
+ },
1509
+ onObjectEnd: function() {
1510
+ i = a.pop();
1511
+ },
1512
+ onArrayBegin: function() {
1513
+ var e = [];
1514
+ o(e), a.push(i), i = e, r = null;
1515
+ },
1516
+ onArrayEnd: function() {
1517
+ i = a.pop();
1518
+ },
1519
+ onLiteralValue: o,
1520
+ onError: function(e, n, r) {
1521
+ t.push({
1522
+ error: e,
1523
+ offset: n,
1524
+ length: r
1525
+ });
1526
+ }
1527
+ }, n), i[0];
1528
+ }
1529
+ function D(e) {
1530
+ var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [], n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : w.DEFAULT, r = {
1531
+ type: "array",
1532
+ offset: -1,
1533
+ length: -1,
1534
+ children: [],
1535
+ parent: void 0
1536
+ };
1537
+ function i(e) {
1538
+ r.type === "property" && (r.length = e - r.offset, r = r.parent);
1539
+ }
1540
+ function a(e) {
1541
+ return r.children.push(e), e;
1542
+ }
1543
+ N(e, {
1544
+ onObjectBegin: function(e) {
1545
+ r = a({
1546
+ type: "object",
1547
+ offset: e,
1548
+ length: -1,
1549
+ parent: r,
1550
+ children: []
1551
+ });
1552
+ },
1553
+ onObjectProperty: function(e, t, n) {
1554
+ r = a({
1555
+ type: "property",
1556
+ offset: t,
1557
+ length: -1,
1558
+ parent: r,
1559
+ children: []
1560
+ }), r.children.push({
1561
+ type: "string",
1562
+ value: e,
1563
+ offset: t,
1564
+ length: n,
1565
+ parent: r
1566
+ });
1567
+ },
1568
+ onObjectEnd: function(e, t) {
1569
+ i(e + t), r.length = e + t - r.offset, r = r.parent, i(e + t);
1570
+ },
1571
+ onArrayBegin: function(e, t) {
1572
+ r = a({
1573
+ type: "array",
1574
+ offset: e,
1575
+ length: -1,
1576
+ parent: r,
1577
+ children: []
1578
+ });
1579
+ },
1580
+ onArrayEnd: function(e, t) {
1581
+ r.length = e + t - r.offset, r = r.parent, i(e + t);
1582
+ },
1583
+ onLiteralValue: function(e, t, n) {
1584
+ a({
1585
+ type: F(e),
1586
+ offset: t,
1587
+ length: n,
1588
+ parent: r,
1589
+ value: e
1590
+ }), i(t + n);
1591
+ },
1592
+ onSeparator: function(e, t, n) {
1593
+ r.type === "property" && (e === ":" ? r.colonOffset = t : e === "," && i(t));
1594
+ },
1595
+ onError: function(e, n, r) {
1596
+ t.push({
1597
+ error: e,
1598
+ offset: n,
1599
+ length: r
1600
+ });
1601
+ }
1602
+ }, n);
1603
+ var o = r.children[0];
1604
+ return o && delete o.parent, o;
1605
+ }
1606
+ function O(e, t) {
1607
+ if (e) {
1608
+ var n = e, r = s(t), i;
1609
+ try {
1610
+ for (r.s(); !(i = r.n()).done;) {
1611
+ var a = i.value;
1612
+ if (typeof a == "string") {
1613
+ if (n.type !== "object" || !Array.isArray(n.children)) return;
1614
+ var o = !1, c = s(n.children), l;
1615
+ try {
1616
+ for (c.s(); !(l = c.n()).done;) {
1617
+ var u = l.value;
1618
+ if (Array.isArray(u.children) && u.children[0].value === a && u.children.length === 2) {
1619
+ n = u.children[1], o = !0;
1620
+ break;
1621
+ }
1622
+ }
1623
+ } catch (e) {
1624
+ c.e(e);
1625
+ } finally {
1626
+ c.f();
1627
+ }
1628
+ if (!o) return;
1629
+ } else {
1630
+ var d = a;
1631
+ if (n.type !== "array" || d < 0 || !Array.isArray(n.children) || d >= n.children.length) return;
1632
+ n = n.children[d];
1633
+ }
1634
+ }
1635
+ } catch (e) {
1636
+ r.e(e);
1637
+ } finally {
1638
+ r.f();
1639
+ }
1640
+ return n;
1641
+ }
1642
+ }
1643
+ function k(e) {
1644
+ if (!e.parent || !e.parent.children) return [];
1645
+ var t = k(e.parent);
1646
+ if (e.parent.type === "property") {
1647
+ var n = e.parent.children[0].value;
1648
+ t.push(n);
1649
+ } else if (e.parent.type === "array") {
1650
+ var r = e.parent.children.indexOf(e);
1651
+ r !== -1 && t.push(r);
1652
+ }
1653
+ return t;
1654
+ }
1655
+ function A(e) {
1656
+ switch (e.type) {
1657
+ case "array": return e.children.map(A);
1658
+ case "object":
1659
+ var t = Object.create(null), n = s(e.children), r;
1660
+ try {
1661
+ for (n.s(); !(r = n.n()).done;) {
1662
+ var i = r.value, a = i.children[1];
1663
+ a && (t[i.children[0].value] = A(a));
1664
+ }
1665
+ } catch (e) {
1666
+ n.e(e);
1667
+ } finally {
1668
+ n.f();
1669
+ }
1670
+ return t;
1671
+ case "null":
1672
+ case "string":
1673
+ case "number":
1674
+ case "boolean": return e.value;
1675
+ default: return;
1676
+ }
1677
+ }
1678
+ function j(e, t) {
1679
+ var n = arguments.length > 2 && arguments[2] !== void 0 && arguments[2];
1680
+ return t >= e.offset && t < e.offset + e.length || n && t === e.offset + e.length;
1681
+ }
1682
+ function M(e, t) {
1683
+ var n = arguments.length > 2 && arguments[2] !== void 0 && arguments[2];
1684
+ if (j(e, t, n)) {
1685
+ var r = e.children;
1686
+ if (Array.isArray(r)) for (var i = 0; i < r.length && r[i].offset <= t; i++) {
1687
+ var a = M(r[i], t, n);
1688
+ if (a) return a;
1689
+ }
1690
+ return e;
1691
+ }
1692
+ }
1693
+ function N(e, t) {
1694
+ var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : w.DEFAULT, r = u(e, !1), i = [], a = 0;
1695
+ function o(e) {
1696
+ return e ? function() {
1697
+ return a === 0 && e(r.getTokenOffset(), r.getTokenLength(), r.getTokenStartLine(), r.getTokenStartCharacter());
1698
+ } : function() {
1699
+ return !0;
1700
+ };
1701
+ }
1702
+ function s(e) {
1703
+ return e ? function(t) {
1704
+ return a === 0 && e(t, r.getTokenOffset(), r.getTokenLength(), r.getTokenStartLine(), r.getTokenStartCharacter());
1705
+ } : function() {
1706
+ return !0;
1707
+ };
1708
+ }
1709
+ function c(e) {
1710
+ return e ? function(t) {
1711
+ return a === 0 && e(t, r.getTokenOffset(), r.getTokenLength(), r.getTokenStartLine(), r.getTokenStartCharacter(), function() {
1712
+ return i.slice();
1713
+ });
1714
+ } : function() {
1715
+ return !0;
1716
+ };
1717
+ }
1718
+ function l(e) {
1719
+ return e ? function() {
1720
+ a > 0 ? a++ : e(r.getTokenOffset(), r.getTokenLength(), r.getTokenStartLine(), r.getTokenStartCharacter(), function() {
1721
+ return i.slice();
1722
+ }) === !1 && (a = 1);
1723
+ } : function() {
1724
+ return !0;
1725
+ };
1726
+ }
1727
+ function d(e) {
1728
+ return e ? function() {
1729
+ a > 0 && a--, a === 0 && e(r.getTokenOffset(), r.getTokenLength(), r.getTokenStartLine(), r.getTokenStartCharacter());
1730
+ } : function() {
1731
+ return !0;
1732
+ };
1733
+ }
1734
+ var f = l(t.onObjectBegin), p = c(t.onObjectProperty), m = d(t.onObjectEnd), h = l(t.onArrayBegin), g = d(t.onArrayEnd), _ = c(t.onLiteralValue), v = s(t.onSeparator), y = o(t.onComment), b = s(t.onError), x = n && n.disallowComments, S = n && n.allowTrailingComma;
1735
+ function C() {
1736
+ for (;;) {
1737
+ var e = r.scan();
1738
+ switch (r.getTokenError()) {
1739
+ case 4:
1740
+ T(14);
1741
+ break;
1742
+ case 5:
1743
+ T(15);
1744
+ break;
1745
+ case 3:
1746
+ T(13);
1747
+ break;
1748
+ case 1:
1749
+ x || T(11);
1750
+ break;
1751
+ case 2:
1752
+ T(12);
1753
+ break;
1754
+ case 6:
1755
+ T(16);
1756
+ break;
1757
+ }
1758
+ switch (e) {
1759
+ case 12:
1760
+ case 13:
1761
+ x ? T(10) : y();
1762
+ break;
1763
+ case 16:
1764
+ T(1);
1765
+ break;
1766
+ case 15:
1767
+ case 14: break;
1768
+ default: return e;
1769
+ }
1770
+ }
1771
+ }
1772
+ function T(e) {
1773
+ var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [], n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : [];
1774
+ if (b(e), t.length + n.length > 0) for (var i = r.getToken(); i !== 17;) {
1775
+ if (t.indexOf(i) !== -1) {
1776
+ C();
1777
+ break;
1778
+ } else if (n.indexOf(i) !== -1) break;
1779
+ i = C();
1780
+ }
1781
+ }
1782
+ function E(e) {
1783
+ var t = r.getTokenValue();
1784
+ return e ? _(t) : (p(t), i.push(t)), C(), !0;
1785
+ }
1786
+ function D() {
1787
+ switch (r.getToken()) {
1788
+ case 11:
1789
+ var e = r.getTokenValue(), t = Number(e);
1790
+ isNaN(t) && (T(2), t = 0), _(t);
1791
+ break;
1792
+ case 7:
1793
+ _(null);
1794
+ break;
1795
+ case 8:
1796
+ _(!0);
1797
+ break;
1798
+ case 9:
1799
+ _(!1);
1800
+ break;
1801
+ default: return !1;
1802
+ }
1803
+ return C(), !0;
1804
+ }
1805
+ function O() {
1806
+ return r.getToken() === 10 ? (E(!1), r.getToken() === 6 ? (v(":"), C(), j() || T(4, [], [2, 5])) : T(5, [], [2, 5]), i.pop(), !0) : (T(3, [], [2, 5]), !1);
1807
+ }
1808
+ function k() {
1809
+ f(), C();
1810
+ for (var e = !1; r.getToken() !== 2 && r.getToken() !== 17;) {
1811
+ if (r.getToken() === 5) {
1812
+ if (e || T(4, [], []), v(","), C(), r.getToken() === 2 && S) break;
1813
+ } else e && T(6, [], []);
1814
+ O() || T(4, [], [2, 5]), e = !0;
1815
+ }
1816
+ return m(), r.getToken() === 2 ? C() : T(7, [2], []), !0;
1817
+ }
1818
+ function A() {
1819
+ h(), C();
1820
+ for (var e = !0, t = !1; r.getToken() !== 4 && r.getToken() !== 17;) {
1821
+ if (r.getToken() === 5) {
1822
+ if (t || T(4, [], []), v(","), C(), r.getToken() === 4 && S) break;
1823
+ } else t && T(6, [], []);
1824
+ e ? (i.push(0), e = !1) : i[i.length - 1]++, j() || T(4, [], [4, 5]), t = !0;
1825
+ }
1826
+ return g(), e || i.pop(), r.getToken() === 4 ? C() : T(8, [4], []), !0;
1827
+ }
1828
+ function j() {
1829
+ switch (r.getToken()) {
1830
+ case 3: return A();
1831
+ case 1: return k();
1832
+ case 10: return E(!0);
1833
+ default: return D();
1834
+ }
1835
+ }
1836
+ return C(), r.getToken() === 17 ? n.allowEmptyContent ? !0 : (T(4, [], []), !1) : j() ? (r.getToken() !== 17 && T(9, [], []), !0) : (T(4, [], []), !1);
1837
+ }
1838
+ function P(e, t) {
1839
+ var n = u(e), r = [], i, a = 0, o;
1840
+ do
1841
+ switch (o = n.getPosition(), i = n.scan(), i) {
1842
+ case 12:
1843
+ case 13:
1844
+ case 17:
1845
+ a !== o && r.push(e.substring(a, o)), t !== void 0 && r.push(n.getTokenValue().replace(/[^\r\n]/g, t)), a = n.getPosition();
1846
+ break;
1847
+ }
1848
+ while (i !== 17);
1849
+ return r.join("");
1850
+ }
1851
+ function F(e) {
1852
+ switch (o(e)) {
1853
+ case "boolean": return "boolean";
1854
+ case "number": return "number";
1855
+ case "string": return "string";
1856
+ case "object": return e ? Array.isArray(e) ? "array" : "object" : "null";
1857
+ default: return "null";
1858
+ }
1859
+ }
1860
+ function I(e, t, n, i) {
1861
+ for (var a = t.slice(), o = D(e, []), s = void 0, c = void 0; a.length > 0 && (c = a.pop(), s = O(o, a), s === void 0 && n !== void 0);) n = typeof c == "string" ? r({}, c, n) : [n];
1862
+ if (!s) {
1863
+ if (n === void 0) throw Error("Can not delete in empty document");
1864
+ return L(e, {
1865
+ offset: o ? o.offset : 0,
1866
+ length: o ? o.length : 0,
1867
+ content: JSON.stringify(n)
1868
+ }, i);
1869
+ } else if (s.type === "object" && typeof c == "string" && Array.isArray(s.children)) {
1870
+ var l = O(s, [c]);
1871
+ if (l !== void 0) if (n === void 0) {
1872
+ if (!l.parent) throw Error("Malformed AST");
1873
+ var u = s.children.indexOf(l.parent), d, f = l.parent.offset + l.parent.length;
1874
+ if (u > 0) {
1875
+ var p = s.children[u - 1];
1876
+ d = p.offset + p.length;
1877
+ } else d = s.offset + 1, s.children.length > 1 && (f = s.children[1].offset);
1878
+ return L(e, {
1879
+ offset: d,
1880
+ length: f - d,
1881
+ content: ""
1882
+ }, i);
1883
+ } else return L(e, {
1884
+ offset: l.offset,
1885
+ length: l.length,
1886
+ content: JSON.stringify(n)
1887
+ }, i);
1888
+ else {
1889
+ if (n === void 0) return [];
1890
+ var m = `${JSON.stringify(c)}: ${JSON.stringify(n)}`, h = i.getInsertionIndex ? i.getInsertionIndex(s.children.map(function(e) {
1891
+ return e.children[0].value;
1892
+ })) : s.children.length, g;
1893
+ if (h > 0) {
1894
+ var _ = s.children[h - 1];
1895
+ g = {
1896
+ offset: _.offset + _.length,
1897
+ length: 0,
1898
+ content: "," + m
1899
+ };
1900
+ } else g = s.children.length === 0 ? {
1901
+ offset: s.offset + 1,
1902
+ length: 0,
1903
+ content: m
1904
+ } : {
1905
+ offset: s.offset + 1,
1906
+ length: 0,
1907
+ content: m + ","
1908
+ };
1909
+ return L(e, g, i);
1910
+ }
1911
+ } else if (s.type === "array" && typeof c == "number" && Array.isArray(s.children)) {
1912
+ var v = c;
1913
+ if (v === -1) {
1914
+ var y = `${JSON.stringify(n)}`, b;
1915
+ if (s.children.length === 0) b = {
1916
+ offset: s.offset + 1,
1917
+ length: 0,
1918
+ content: y
1919
+ };
1920
+ else {
1921
+ var x = s.children[s.children.length - 1];
1922
+ b = {
1923
+ offset: x.offset + x.length,
1924
+ length: 0,
1925
+ content: "," + y
1926
+ };
1927
+ }
1928
+ return L(e, b, i);
1929
+ } else if (n === void 0 && s.children.length >= 0) {
1930
+ var S = c, C = s.children[S], w;
1931
+ if (s.children.length === 1) w = {
1932
+ offset: s.offset + 1,
1933
+ length: s.length - 2,
1934
+ content: ""
1935
+ };
1936
+ else if (s.children.length - 1 === S) {
1937
+ var T = s.children[S - 1], E = T.offset + T.length;
1938
+ w = {
1939
+ offset: E,
1940
+ length: s.offset + s.length - 2 - E,
1941
+ content: ""
1942
+ };
1943
+ } else w = {
1944
+ offset: C.offset,
1945
+ length: s.children[S + 1].offset - C.offset,
1946
+ content: ""
1947
+ };
1948
+ return L(e, w, i);
1949
+ } else if (n !== void 0) {
1950
+ var k, A = `${JSON.stringify(n)}`;
1951
+ if (!i.isArrayInsertion && s.children.length > c) {
1952
+ var j = s.children[c];
1953
+ k = {
1954
+ offset: j.offset,
1955
+ length: j.length,
1956
+ content: A
1957
+ };
1958
+ } else if (s.children.length === 0 || c === 0) k = {
1959
+ offset: s.offset + 1,
1960
+ length: 0,
1961
+ content: s.children.length === 0 ? A : A + ","
1962
+ };
1963
+ else {
1964
+ var M = c > s.children.length ? s.children.length : c, N = s.children[M - 1];
1965
+ k = {
1966
+ offset: N.offset + N.length,
1967
+ length: 0,
1968
+ content: "," + A
1969
+ };
1970
+ }
1971
+ return L(e, k, i);
1972
+ } else throw Error(`Can not ${n === void 0 ? "remove" : i.isArrayInsertion ? "insert" : "modify"} Array index ${v} as length is not sufficient`);
1973
+ } else throw Error(`Can not add ${typeof c == "number" ? "property" : "index"} to parent of type ${s.type}`);
1974
+ }
1975
+ function L(e, t, r) {
1976
+ if (!r.formattingOptions) return [t];
1977
+ var i = R(e, t), a = t.offset, o = t.offset + t.content.length;
1978
+ if (t.length === 0 || t.content.length === 0) {
1979
+ for (; a > 0 && !C(i, a - 1);) a--;
1980
+ for (; o < i.length && !C(i, o);) o++;
1981
+ }
1982
+ for (var s = y(i, {
1983
+ offset: a,
1984
+ length: o - a
1985
+ }, n(n({}, r.formattingOptions), {}, { keepLines: !1 })), c = s.length - 1; c >= 0; c--) {
1986
+ var l = s[c];
1987
+ i = R(i, l), a = Math.min(a, l.offset), o = Math.max(o, l.offset + l.length), o += l.content.length - l.length;
1988
+ }
1989
+ var u = e.length - (i.length - o) - a;
1990
+ return [{
1991
+ offset: a,
1992
+ length: u,
1993
+ content: i.substring(a, o)
1994
+ }];
1995
+ }
1996
+ function R(e, t) {
1997
+ return e.substring(0, t.offset) + t.content + e.substring(t.offset + t.length);
1998
+ }
1999
+ e.createScanner = u;
2000
+ var ee;
2001
+ (function(e) {
2002
+ e[e.None = 0] = "None", e[e.UnexpectedEndOfComment = 1] = "UnexpectedEndOfComment", e[e.UnexpectedEndOfString = 2] = "UnexpectedEndOfString", e[e.UnexpectedEndOfNumber = 3] = "UnexpectedEndOfNumber", e[e.InvalidUnicode = 4] = "InvalidUnicode", e[e.InvalidEscapeCharacter = 5] = "InvalidEscapeCharacter", e[e.InvalidCharacter = 6] = "InvalidCharacter";
2003
+ })(ee || (e.ScanError = ee = {}));
2004
+ var te;
2005
+ (function(e) {
2006
+ e[e.OpenBraceToken = 1] = "OpenBraceToken", e[e.CloseBraceToken = 2] = "CloseBraceToken", e[e.OpenBracketToken = 3] = "OpenBracketToken", e[e.CloseBracketToken = 4] = "CloseBracketToken", e[e.CommaToken = 5] = "CommaToken", e[e.ColonToken = 6] = "ColonToken", e[e.NullKeyword = 7] = "NullKeyword", e[e.TrueKeyword = 8] = "TrueKeyword", e[e.FalseKeyword = 9] = "FalseKeyword", e[e.StringLiteral = 10] = "StringLiteral", e[e.NumericLiteral = 11] = "NumericLiteral", e[e.LineCommentTrivia = 12] = "LineCommentTrivia", e[e.BlockCommentTrivia = 13] = "BlockCommentTrivia", e[e.LineBreakTrivia = 14] = "LineBreakTrivia", e[e.Trivia = 15] = "Trivia", e[e.Unknown = 16] = "Unknown", e[e.EOF = 17] = "EOF";
2007
+ })(te || (e.SyntaxKind = te = {})), e.getLocation = T, e.parse = E, e.parseTree = D, e.findNodeAtLocation = O, e.findNodeAtOffset = M, e.getNodePath = k, e.getNodeValue = A, e.visit = N, e.stripComments = P;
2008
+ var z;
2009
+ (function(e) {
2010
+ e[e.InvalidSymbol = 1] = "InvalidSymbol", e[e.InvalidNumberFormat = 2] = "InvalidNumberFormat", e[e.PropertyNameExpected = 3] = "PropertyNameExpected", e[e.ValueExpected = 4] = "ValueExpected", e[e.ColonExpected = 5] = "ColonExpected", e[e.CommaExpected = 6] = "CommaExpected", e[e.CloseBraceExpected = 7] = "CloseBraceExpected", e[e.CloseBracketExpected = 8] = "CloseBracketExpected", e[e.EndOfFileExpected = 9] = "EndOfFileExpected", e[e.InvalidCommentToken = 10] = "InvalidCommentToken", e[e.UnexpectedEndOfComment = 11] = "UnexpectedEndOfComment", e[e.UnexpectedEndOfString = 12] = "UnexpectedEndOfString", e[e.UnexpectedEndOfNumber = 13] = "UnexpectedEndOfNumber", e[e.InvalidUnicode = 14] = "InvalidUnicode", e[e.InvalidEscapeCharacter = 15] = "InvalidEscapeCharacter", e[e.InvalidCharacter = 16] = "InvalidCharacter";
2011
+ })(z || (e.ParseErrorCode = z = {}));
2012
+ function ne(e) {
2013
+ switch (e) {
2014
+ case 1: return "InvalidSymbol";
2015
+ case 2: return "InvalidNumberFormat";
2016
+ case 3: return "PropertyNameExpected";
2017
+ case 4: return "ValueExpected";
2018
+ case 5: return "ColonExpected";
2019
+ case 6: return "CommaExpected";
2020
+ case 7: return "CloseBraceExpected";
2021
+ case 8: return "CloseBracketExpected";
2022
+ case 9: return "EndOfFileExpected";
2023
+ case 10: return "InvalidCommentToken";
2024
+ case 11: return "UnexpectedEndOfComment";
2025
+ case 12: return "UnexpectedEndOfString";
2026
+ case 13: return "UnexpectedEndOfNumber";
2027
+ case 14: return "InvalidUnicode";
2028
+ case 15: return "InvalidEscapeCharacter";
2029
+ case 16: return "InvalidCharacter";
2030
+ }
2031
+ return "<unknown ParseErrorCode>";
2032
+ }
2033
+ function re(e, t, n) {
2034
+ return y(e, t, n);
2035
+ }
2036
+ function ie(e, t, n, r) {
2037
+ return I(e, t, n, r);
2038
+ }
2039
+ function ae(e, t) {
2040
+ for (var n = t.slice(0).sort(function(e, t) {
2041
+ var n = e.offset - t.offset;
2042
+ return n === 0 ? e.length - t.length : n;
2043
+ }), r = e.length, i = n.length - 1; i >= 0; i--) {
2044
+ var a = n[i];
2045
+ if (a.offset + a.length <= r) e = R(e, a);
2046
+ else throw Error("Overlapping edit");
2047
+ r = a.offset;
2048
+ }
2049
+ return e;
2050
+ }
2051
+ })), f = /* @__PURE__ */ n(((e) => {
2052
+ Object.defineProperty(e, "__esModule", { value: !0 }), e.types = e.safeLoadAll = e.safeLoad = e.safeDump = e.loadAll = e.load = e.dump = e.default = e.YAMLException = e.Type = e.Schema = e.JSON_SCHEMA = e.FAILSAFE_SCHEMA = e.DEFAULT_SCHEMA = e.CORE_SCHEMA = void 0;
2053
+ function t(e) {
2054
+ "@babel/helpers - typeof";
2055
+ return t = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
2056
+ return typeof e;
2057
+ } : function(e) {
2058
+ return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
2059
+ }, t(e);
2060
+ }
2061
+ function n(e) {
2062
+ return e == null;
2063
+ }
2064
+ function r(e) {
2065
+ return t(e) === "object" && e !== null;
2066
+ }
2067
+ function i(e) {
2068
+ return Array.isArray(e) ? e : n(e) ? [] : [e];
2069
+ }
2070
+ function a(e, t) {
2071
+ var n, r, i, a;
2072
+ if (t) for (a = Object.keys(t), n = 0, r = a.length; n < r; n += 1) i = a[n], e[i] = t[i];
2073
+ return e;
2074
+ }
2075
+ function o(e, t) {
2076
+ var n = "", r;
2077
+ for (r = 0; r < t; r += 1) n += e;
2078
+ return n;
2079
+ }
2080
+ function s(e) {
2081
+ return e === 0 && 1 / e == -Infinity;
2082
+ }
2083
+ var c = {
2084
+ isNothing: n,
2085
+ isObject: r,
2086
+ toArray: i,
2087
+ repeat: o,
2088
+ isNegativeZero: s,
2089
+ extend: a
2090
+ };
2091
+ function l(e, t) {
2092
+ var n = "", r = e.reason || "(unknown reason)";
2093
+ return e.mark ? (e.mark.name && (n += "in \"" + e.mark.name + "\" "), n += "(" + (e.mark.line + 1) + ":" + (e.mark.column + 1) + ")", !t && e.mark.snippet && (n += "\n\n" + e.mark.snippet), r + " " + n) : r;
2094
+ }
2095
+ function u(e, t) {
2096
+ Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = t, this.message = l(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = (/* @__PURE__ */ Error()).stack || "";
2097
+ }
2098
+ u.prototype = Object.create(Error.prototype), u.prototype.constructor = u, u.prototype.toString = function(e) {
2099
+ return this.name + ": " + l(this, e);
2100
+ };
2101
+ var d = u;
2102
+ function f(e, t, n, r, i) {
2103
+ var a = "", o = "", s = Math.floor(i / 2) - 1;
2104
+ return r - t > s && (a = " ... ", t = r - s + a.length), n - r > s && (o = " ...", n = r + s - o.length), {
2105
+ str: a + e.slice(t, n).replace(/\t/g, "→") + o,
2106
+ pos: r - t + a.length
2107
+ };
2108
+ }
2109
+ function p(e, t) {
2110
+ return c.repeat(" ", t - e.length) + e;
2111
+ }
2112
+ function m(e, t) {
2113
+ if (t = Object.create(t || null), !e.buffer) return null;
2114
+ t.maxLength ||= 79, typeof t.indent != "number" && (t.indent = 1), typeof t.linesBefore != "number" && (t.linesBefore = 3), typeof t.linesAfter != "number" && (t.linesAfter = 2);
2115
+ for (var n = /\r?\n|\r|\0/g, r = [0], i = [], a, o = -1; a = n.exec(e.buffer);) i.push(a.index), r.push(a.index + a[0].length), e.position <= a.index && o < 0 && (o = r.length - 2);
2116
+ o < 0 && (o = r.length - 1);
2117
+ var s = "", l, u, d = Math.min(e.line + t.linesAfter, i.length).toString().length, m = t.maxLength - (t.indent + d + 3);
2118
+ for (l = 1; l <= t.linesBefore && !(o - l < 0); l++) u = f(e.buffer, r[o - l], i[o - l], e.position - (r[o] - r[o - l]), m), s = c.repeat(" ", t.indent) + p((e.line - l + 1).toString(), d) + " | " + u.str + "\n" + s;
2119
+ for (u = f(e.buffer, r[o], i[o], e.position, m), s += c.repeat(" ", t.indent) + p((e.line + 1).toString(), d) + " | " + u.str + "\n", s += c.repeat("-", t.indent + d + 3 + u.pos) + "^\n", l = 1; l <= t.linesAfter && !(o + l >= i.length); l++) u = f(e.buffer, r[o + l], i[o + l], e.position - (r[o] - r[o + l]), m), s += c.repeat(" ", t.indent) + p((e.line + l + 1).toString(), d) + " | " + u.str + "\n";
2120
+ return s.replace(/\n$/, "");
2121
+ }
2122
+ var h = m, g = [
2123
+ "kind",
2124
+ "multi",
2125
+ "resolve",
2126
+ "construct",
2127
+ "instanceOf",
2128
+ "predicate",
2129
+ "represent",
2130
+ "representName",
2131
+ "defaultStyle",
2132
+ "styleAliases"
2133
+ ], _ = [
2134
+ "scalar",
2135
+ "sequence",
2136
+ "mapping"
2137
+ ];
2138
+ function v(e) {
2139
+ var t = {};
2140
+ return e !== null && Object.keys(e).forEach(function(n) {
2141
+ e[n].forEach(function(e) {
2142
+ t[String(e)] = n;
2143
+ });
2144
+ }), t;
2145
+ }
2146
+ function y(e, t) {
2147
+ if (t ||= {}, Object.keys(t).forEach(function(t) {
2148
+ if (g.indexOf(t) === -1) throw new d("Unknown option \"" + t + "\" is met in definition of \"" + e + "\" YAML type.");
2149
+ }), this.options = t, this.tag = e, this.kind = t.kind || null, this.resolve = t.resolve || function() {
2150
+ return !0;
2151
+ }, this.construct = t.construct || function(e) {
2152
+ return e;
2153
+ }, this.instanceOf = t.instanceOf || null, this.predicate = t.predicate || null, this.represent = t.represent || null, this.representName = t.representName || null, this.defaultStyle = t.defaultStyle || null, this.multi = t.multi || !1, this.styleAliases = v(t.styleAliases || null), _.indexOf(this.kind) === -1) throw new d("Unknown kind \"" + this.kind + "\" is specified for \"" + e + "\" YAML type.");
2154
+ }
2155
+ var b = y;
2156
+ function x(e, t) {
2157
+ var n = [];
2158
+ return e[t].forEach(function(e) {
2159
+ var t = n.length;
2160
+ n.forEach(function(n, r) {
2161
+ n.tag === e.tag && n.kind === e.kind && n.multi === e.multi && (t = r);
2162
+ }), n[t] = e;
2163
+ }), n;
2164
+ }
2165
+ function S() {
2166
+ var e = {
2167
+ scalar: {},
2168
+ sequence: {},
2169
+ mapping: {},
2170
+ fallback: {},
2171
+ multi: {
2172
+ scalar: [],
2173
+ sequence: [],
2174
+ mapping: [],
2175
+ fallback: []
2176
+ }
2177
+ }, t, n;
2178
+ function r(t) {
2179
+ t.multi ? (e.multi[t.kind].push(t), e.multi.fallback.push(t)) : e[t.kind][t.tag] = e.fallback[t.tag] = t;
2180
+ }
2181
+ for (t = 0, n = arguments.length; t < n; t += 1) arguments[t].forEach(r);
2182
+ return e;
2183
+ }
2184
+ function C(e) {
2185
+ return this.extend(e);
2186
+ }
2187
+ C.prototype.extend = function(e) {
2188
+ var t = [], n = [];
2189
+ if (e instanceof b) n.push(e);
2190
+ else if (Array.isArray(e)) n = n.concat(e);
2191
+ else if (e && (Array.isArray(e.implicit) || Array.isArray(e.explicit))) e.implicit && (t = t.concat(e.implicit)), e.explicit && (n = n.concat(e.explicit));
2192
+ else throw new d("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
2193
+ t.forEach(function(e) {
2194
+ if (!(e instanceof b)) throw new d("Specified list of YAML types (or a single Type object) contains a non-Type object.");
2195
+ if (e.loadKind && e.loadKind !== "scalar") throw new d("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
2196
+ if (e.multi) throw new d("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
2197
+ }), n.forEach(function(e) {
2198
+ if (!(e instanceof b)) throw new d("Specified list of YAML types (or a single Type object) contains a non-Type object.");
2199
+ });
2200
+ var r = Object.create(C.prototype);
2201
+ return r.implicit = (this.implicit || []).concat(t), r.explicit = (this.explicit || []).concat(n), r.compiledImplicit = x(r, "implicit"), r.compiledExplicit = x(r, "explicit"), r.compiledTypeMap = S(r.compiledImplicit, r.compiledExplicit), r;
2202
+ };
2203
+ var w = C, T = new b("tag:yaml.org,2002:str", {
2204
+ kind: "scalar",
2205
+ construct: function(e) {
2206
+ return e === null ? "" : e;
2207
+ }
2208
+ }), E = new b("tag:yaml.org,2002:seq", {
2209
+ kind: "sequence",
2210
+ construct: function(e) {
2211
+ return e === null ? [] : e;
2212
+ }
2213
+ }), D = new b("tag:yaml.org,2002:map", {
2214
+ kind: "mapping",
2215
+ construct: function(e) {
2216
+ return e === null ? {} : e;
2217
+ }
2218
+ }), O = new w({ explicit: [
2219
+ T,
2220
+ E,
2221
+ D
2222
+ ] });
2223
+ function k(e) {
2224
+ if (e === null) return !0;
2225
+ var t = e.length;
2226
+ return t === 1 && e === "~" || t === 4 && (e === "null" || e === "Null" || e === "NULL");
2227
+ }
2228
+ function A() {
2229
+ return null;
2230
+ }
2231
+ function j(e) {
2232
+ return e === null;
2233
+ }
2234
+ var M = new b("tag:yaml.org,2002:null", {
2235
+ kind: "scalar",
2236
+ resolve: k,
2237
+ construct: A,
2238
+ predicate: j,
2239
+ represent: {
2240
+ canonical: function() {
2241
+ return "~";
2242
+ },
2243
+ lowercase: function() {
2244
+ return "null";
2245
+ },
2246
+ uppercase: function() {
2247
+ return "NULL";
2248
+ },
2249
+ camelcase: function() {
2250
+ return "Null";
2251
+ },
2252
+ empty: function() {
2253
+ return "";
2254
+ }
2255
+ },
2256
+ defaultStyle: "lowercase"
2257
+ });
2258
+ function N(e) {
2259
+ if (e === null) return !1;
2260
+ var t = e.length;
2261
+ return t === 4 && (e === "true" || e === "True" || e === "TRUE") || t === 5 && (e === "false" || e === "False" || e === "FALSE");
2262
+ }
2263
+ function P(e) {
2264
+ return e === "true" || e === "True" || e === "TRUE";
2265
+ }
2266
+ function F(e) {
2267
+ return Object.prototype.toString.call(e) === "[object Boolean]";
2268
+ }
2269
+ var I = new b("tag:yaml.org,2002:bool", {
2270
+ kind: "scalar",
2271
+ resolve: N,
2272
+ construct: P,
2273
+ predicate: F,
2274
+ represent: {
2275
+ lowercase: function(e) {
2276
+ return e ? "true" : "false";
2277
+ },
2278
+ uppercase: function(e) {
2279
+ return e ? "TRUE" : "FALSE";
2280
+ },
2281
+ camelcase: function(e) {
2282
+ return e ? "True" : "False";
2283
+ }
2284
+ },
2285
+ defaultStyle: "lowercase"
2286
+ });
2287
+ function L(e) {
2288
+ return 48 <= e && e <= 57 || 65 <= e && e <= 70 || 97 <= e && e <= 102;
2289
+ }
2290
+ function R(e) {
2291
+ return 48 <= e && e <= 55;
2292
+ }
2293
+ function ee(e) {
2294
+ return 48 <= e && e <= 57;
2295
+ }
2296
+ function te(e) {
2297
+ if (e === null) return !1;
2298
+ var t = e.length, n = 0, r = !1, i;
2299
+ if (!t) return !1;
2300
+ if (i = e[n], (i === "-" || i === "+") && (i = e[++n]), i === "0") {
2301
+ if (n + 1 === t) return !0;
2302
+ if (i = e[++n], i === "b") {
2303
+ for (n++; n < t; n++) if (i = e[n], i !== "_") {
2304
+ if (i !== "0" && i !== "1") return !1;
2305
+ r = !0;
2306
+ }
2307
+ return r && i !== "_";
2308
+ }
2309
+ if (i === "x") {
2310
+ for (n++; n < t; n++) if (i = e[n], i !== "_") {
2311
+ if (!L(e.charCodeAt(n))) return !1;
2312
+ r = !0;
2313
+ }
2314
+ return r && i !== "_";
2315
+ }
2316
+ if (i === "o") {
2317
+ for (n++; n < t; n++) if (i = e[n], i !== "_") {
2318
+ if (!R(e.charCodeAt(n))) return !1;
2319
+ r = !0;
2320
+ }
2321
+ return r && i !== "_";
2322
+ }
2323
+ }
2324
+ if (i === "_") return !1;
2325
+ for (; n < t; n++) if (i = e[n], i !== "_") {
2326
+ if (!ee(e.charCodeAt(n))) return !1;
2327
+ r = !0;
2328
+ }
2329
+ return !(!r || i === "_");
2330
+ }
2331
+ function z(e) {
2332
+ var t = e, n = 1, r;
2333
+ if (t.indexOf("_") !== -1 && (t = t.replace(/_/g, "")), r = t[0], (r === "-" || r === "+") && (r === "-" && (n = -1), t = t.slice(1), r = t[0]), t === "0") return 0;
2334
+ if (r === "0") {
2335
+ if (t[1] === "b") return n * parseInt(t.slice(2), 2);
2336
+ if (t[1] === "x") return n * parseInt(t.slice(2), 16);
2337
+ if (t[1] === "o") return n * parseInt(t.slice(2), 8);
2338
+ }
2339
+ return n * parseInt(t, 10);
2340
+ }
2341
+ function ne(e) {
2342
+ return Object.prototype.toString.call(e) === "[object Number]" && e % 1 == 0 && !c.isNegativeZero(e);
2343
+ }
2344
+ var re = new b("tag:yaml.org,2002:int", {
2345
+ kind: "scalar",
2346
+ resolve: te,
2347
+ construct: z,
2348
+ predicate: ne,
2349
+ represent: {
2350
+ binary: function(e) {
2351
+ return e >= 0 ? "0b" + e.toString(2) : "-0b" + e.toString(2).slice(1);
2352
+ },
2353
+ octal: function(e) {
2354
+ return e >= 0 ? "0o" + e.toString(8) : "-0o" + e.toString(8).slice(1);
2355
+ },
2356
+ decimal: function(e) {
2357
+ return e.toString(10);
2358
+ },
2359
+ hexadecimal: function(e) {
2360
+ return e >= 0 ? "0x" + e.toString(16).toUpperCase() : "-0x" + e.toString(16).toUpperCase().slice(1);
2361
+ }
2362
+ },
2363
+ defaultStyle: "decimal",
2364
+ styleAliases: {
2365
+ binary: [2, "bin"],
2366
+ octal: [8, "oct"],
2367
+ decimal: [10, "dec"],
2368
+ hexadecimal: [16, "hex"]
2369
+ }
2370
+ }), ie = /* @__PURE__ */ RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
2371
+ function ae(e) {
2372
+ return !(e === null || !ie.test(e) || e[e.length - 1] === "_");
2373
+ }
2374
+ function oe(e) {
2375
+ var t = e.replace(/_/g, "").toLowerCase(), n = t[0] === "-" ? -1 : 1;
2376
+ return "+-".indexOf(t[0]) >= 0 && (t = t.slice(1)), t === ".inf" ? n === 1 ? Infinity : -Infinity : t === ".nan" ? NaN : n * parseFloat(t, 10);
2377
+ }
2378
+ var se = /^[-+]?[0-9]+e/;
2379
+ function ce(e, t) {
2380
+ var n;
2381
+ if (isNaN(e)) switch (t) {
2382
+ case "lowercase": return ".nan";
2383
+ case "uppercase": return ".NAN";
2384
+ case "camelcase": return ".NaN";
2385
+ }
2386
+ else if (e === Infinity) switch (t) {
2387
+ case "lowercase": return ".inf";
2388
+ case "uppercase": return ".INF";
2389
+ case "camelcase": return ".Inf";
2390
+ }
2391
+ else if (e === -Infinity) switch (t) {
2392
+ case "lowercase": return "-.inf";
2393
+ case "uppercase": return "-.INF";
2394
+ case "camelcase": return "-.Inf";
2395
+ }
2396
+ else if (c.isNegativeZero(e)) return "-0.0";
2397
+ return n = e.toString(10), se.test(n) ? n.replace("e", ".e") : n;
2398
+ }
2399
+ function le(e) {
2400
+ return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 != 0 || c.isNegativeZero(e));
2401
+ }
2402
+ var ue = new b("tag:yaml.org,2002:float", {
2403
+ kind: "scalar",
2404
+ resolve: ae,
2405
+ construct: oe,
2406
+ predicate: le,
2407
+ represent: ce,
2408
+ defaultStyle: "lowercase"
2409
+ }), de = O.extend({ implicit: [
2410
+ M,
2411
+ I,
2412
+ re,
2413
+ ue
2414
+ ] }), fe = de, pe = /* @__PURE__ */ RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"), me = /* @__PURE__ */ RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");
2415
+ function he(e) {
2416
+ return e === null ? !1 : pe.exec(e) !== null || me.exec(e) !== null;
2417
+ }
2418
+ function ge(e) {
2419
+ var t, n, r, i, a, o, s, c = 0, l = null, u, d, f;
2420
+ if (t = pe.exec(e), t === null && (t = me.exec(e)), t === null) throw Error("Date resolve error");
2421
+ if (n = +t[1], r = t[2] - 1, i = +t[3], !t[4]) return new Date(Date.UTC(n, r, i));
2422
+ if (a = +t[4], o = +t[5], s = +t[6], t[7]) {
2423
+ for (c = t[7].slice(0, 3); c.length < 3;) c += "0";
2424
+ c = +c;
2425
+ }
2426
+ return t[9] && (u = +t[10], d = +(t[11] || 0), l = (u * 60 + d) * 6e4, t[9] === "-" && (l = -l)), f = new Date(Date.UTC(n, r, i, a, o, s, c)), l && f.setTime(f.getTime() - l), f;
2427
+ }
2428
+ function _e(e) {
2429
+ return e.toISOString();
2430
+ }
2431
+ var ve = new b("tag:yaml.org,2002:timestamp", {
2432
+ kind: "scalar",
2433
+ resolve: he,
2434
+ construct: ge,
2435
+ instanceOf: Date,
2436
+ represent: _e
2437
+ });
2438
+ function ye(e) {
2439
+ return e === "<<" || e === null;
2440
+ }
2441
+ var be = new b("tag:yaml.org,2002:merge", {
2442
+ kind: "scalar",
2443
+ resolve: ye
2444
+ }), xe = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";
2445
+ function Se(e) {
2446
+ if (e === null) return !1;
2447
+ var t, n, r = 0, i = e.length, a = xe;
2448
+ for (n = 0; n < i; n++) if (t = a.indexOf(e.charAt(n)), !(t > 64)) {
2449
+ if (t < 0) return !1;
2450
+ r += 6;
2451
+ }
2452
+ return r % 8 == 0;
2453
+ }
2454
+ function Ce(e) {
2455
+ var t, n, r = e.replace(/[\r\n=]/g, ""), i = r.length, a = xe, o = 0, s = [];
2456
+ for (t = 0; t < i; t++) t % 4 == 0 && t && (s.push(o >> 16 & 255), s.push(o >> 8 & 255), s.push(o & 255)), o = o << 6 | a.indexOf(r.charAt(t));
2457
+ return n = i % 4 * 6, n === 0 ? (s.push(o >> 16 & 255), s.push(o >> 8 & 255), s.push(o & 255)) : n === 18 ? (s.push(o >> 10 & 255), s.push(o >> 2 & 255)) : n === 12 && s.push(o >> 4 & 255), new Uint8Array(s);
2458
+ }
2459
+ function we(e) {
2460
+ var t = "", n = 0, r, i, a = e.length, o = xe;
2461
+ for (r = 0; r < a; r++) r % 3 == 0 && r && (t += o[n >> 18 & 63], t += o[n >> 12 & 63], t += o[n >> 6 & 63], t += o[n & 63]), n = (n << 8) + e[r];
2462
+ return i = a % 3, i === 0 ? (t += o[n >> 18 & 63], t += o[n >> 12 & 63], t += o[n >> 6 & 63], t += o[n & 63]) : i === 2 ? (t += o[n >> 10 & 63], t += o[n >> 4 & 63], t += o[n << 2 & 63], t += o[64]) : i === 1 && (t += o[n >> 2 & 63], t += o[n << 4 & 63], t += o[64], t += o[64]), t;
2463
+ }
2464
+ function Te(e) {
2465
+ return Object.prototype.toString.call(e) === "[object Uint8Array]";
2466
+ }
2467
+ var Ee = new b("tag:yaml.org,2002:binary", {
2468
+ kind: "scalar",
2469
+ resolve: Se,
2470
+ construct: Ce,
2471
+ predicate: Te,
2472
+ represent: we
2473
+ }), De = Object.prototype.hasOwnProperty, Oe = Object.prototype.toString;
2474
+ function ke(e) {
2475
+ if (e === null) return !0;
2476
+ var t = [], n, r, i, a, o, s = e;
2477
+ for (n = 0, r = s.length; n < r; n += 1) {
2478
+ if (i = s[n], o = !1, Oe.call(i) !== "[object Object]") return !1;
2479
+ for (a in i) if (De.call(i, a)) if (!o) o = !0;
2480
+ else return !1;
2481
+ if (!o) return !1;
2482
+ if (t.indexOf(a) === -1) t.push(a);
2483
+ else return !1;
2484
+ }
2485
+ return !0;
2486
+ }
2487
+ function Ae(e) {
2488
+ return e === null ? [] : e;
2489
+ }
2490
+ var je = new b("tag:yaml.org,2002:omap", {
2491
+ kind: "sequence",
2492
+ resolve: ke,
2493
+ construct: Ae
2494
+ }), Me = Object.prototype.toString;
2495
+ function Ne(e) {
2496
+ if (e === null) return !0;
2497
+ var t, n, r, i, a, o = e;
2498
+ for (a = Array(o.length), t = 0, n = o.length; t < n; t += 1) {
2499
+ if (r = o[t], Me.call(r) !== "[object Object]" || (i = Object.keys(r), i.length !== 1)) return !1;
2500
+ a[t] = [i[0], r[i[0]]];
2501
+ }
2502
+ return !0;
2503
+ }
2504
+ function Pe(e) {
2505
+ if (e === null) return [];
2506
+ var t, n, r, i, a, o = e;
2507
+ for (a = Array(o.length), t = 0, n = o.length; t < n; t += 1) r = o[t], i = Object.keys(r), a[t] = [i[0], r[i[0]]];
2508
+ return a;
2509
+ }
2510
+ var Fe = new b("tag:yaml.org,2002:pairs", {
2511
+ kind: "sequence",
2512
+ resolve: Ne,
2513
+ construct: Pe
2514
+ }), Ie = Object.prototype.hasOwnProperty;
2515
+ function Le(e) {
2516
+ if (e === null) return !0;
2517
+ var t, n = e;
2518
+ for (t in n) if (Ie.call(n, t) && n[t] !== null) return !1;
2519
+ return !0;
2520
+ }
2521
+ function Re(e) {
2522
+ return e === null ? {} : e;
2523
+ }
2524
+ var ze = new b("tag:yaml.org,2002:set", {
2525
+ kind: "mapping",
2526
+ resolve: Le,
2527
+ construct: Re
2528
+ }), Be = fe.extend({
2529
+ implicit: [ve, be],
2530
+ explicit: [
2531
+ Ee,
2532
+ je,
2533
+ Fe,
2534
+ ze
2535
+ ]
2536
+ }), B = Object.prototype.hasOwnProperty, Ve = 1, He = 2, Ue = 3, We = 4, Ge = 1, Ke = 2, qe = 3, Je = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Ye = /[\x85\u2028\u2029]/, Xe = /[,\[\]\{\}]/, Ze = /^(?:!|!!|![a-z\-]+!)$/i, Qe = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
2537
+ function $e(e) {
2538
+ return Object.prototype.toString.call(e);
2539
+ }
2540
+ function V(e) {
2541
+ return e === 10 || e === 13;
2542
+ }
2543
+ function H(e) {
2544
+ return e === 9 || e === 32;
2545
+ }
2546
+ function U(e) {
2547
+ return e === 9 || e === 32 || e === 10 || e === 13;
2548
+ }
2549
+ function W(e) {
2550
+ return e === 44 || e === 91 || e === 93 || e === 123 || e === 125;
2551
+ }
2552
+ function et(e) {
2553
+ var t;
2554
+ return 48 <= e && e <= 57 ? e - 48 : (t = e | 32, 97 <= t && t <= 102 ? t - 97 + 10 : -1);
2555
+ }
2556
+ function tt(e) {
2557
+ return e === 120 ? 2 : e === 117 ? 4 : e === 85 ? 8 : 0;
2558
+ }
2559
+ function nt(e) {
2560
+ return 48 <= e && e <= 57 ? e - 48 : -1;
2561
+ }
2562
+ function rt(e) {
2563
+ return e === 48 ? "\0" : e === 97 ? "\x07" : e === 98 ? "\b" : e === 116 || e === 9 ? " " : e === 110 ? "\n" : e === 118 ? "\v" : e === 102 ? "\f" : e === 114 ? "\r" : e === 101 ? "\x1B" : e === 32 ? " " : e === 34 ? "\"" : e === 47 ? "/" : e === 92 ? "\\" : e === 78 ? "…" : e === 95 ? "\xA0" : e === 76 ? "\u2028" : e === 80 ? "\u2029" : "";
2564
+ }
2565
+ function it(e) {
2566
+ return e <= 65535 ? String.fromCharCode(e) : String.fromCharCode((e - 65536 >> 10) + 55296, (e - 65536 & 1023) + 56320);
2567
+ }
2568
+ function at(e, t, n) {
2569
+ t === "__proto__" ? Object.defineProperty(e, t, {
2570
+ configurable: !0,
2571
+ enumerable: !0,
2572
+ writable: !0,
2573
+ value: n
2574
+ }) : e[t] = n;
2575
+ }
2576
+ for (var ot = Array(256), st = Array(256), G = 0; G < 256; G++) ot[G] = +!!rt(G), st[G] = rt(G);
2577
+ function ct(e, t) {
2578
+ this.input = e, this.filename = t.filename || null, this.schema = t.schema || Be, this.onWarning = t.onWarning || null, this.legacy = t.legacy || !1, this.json = t.json || !1, this.listener = t.listener || null, this.implicitTypes = this.schema.compiledImplicit, this.typeMap = this.schema.compiledTypeMap, this.length = e.length, this.position = 0, this.line = 0, this.lineStart = 0, this.lineIndent = 0, this.firstTabInLine = -1, this.documents = [];
2579
+ }
2580
+ function lt(e, t) {
2581
+ var n = {
2582
+ name: e.filename,
2583
+ buffer: e.input.slice(0, -1),
2584
+ position: e.position,
2585
+ line: e.line,
2586
+ column: e.position - e.lineStart
2587
+ };
2588
+ return n.snippet = h(n), new d(t, n);
2589
+ }
2590
+ function K(e, t) {
2591
+ throw lt(e, t);
2592
+ }
2593
+ function ut(e, t) {
2594
+ e.onWarning && e.onWarning.call(null, lt(e, t));
2595
+ }
2596
+ var dt = {
2597
+ YAML: function(e, t, n) {
2598
+ var r, i, a;
2599
+ e.version !== null && K(e, "duplication of %YAML directive"), n.length !== 1 && K(e, "YAML directive accepts exactly one argument"), r = /^([0-9]+)\.([0-9]+)$/.exec(n[0]), r === null && K(e, "ill-formed argument of the YAML directive"), i = parseInt(r[1], 10), a = parseInt(r[2], 10), i !== 1 && K(e, "unacceptable YAML version of the document"), e.version = n[0], e.checkLineBreaks = a < 2, a !== 1 && a !== 2 && ut(e, "unsupported YAML version of the document");
2600
+ },
2601
+ TAG: function(e, t, n) {
2602
+ var r, i;
2603
+ n.length !== 2 && K(e, "TAG directive accepts exactly two arguments"), r = n[0], i = n[1], Ze.test(r) || K(e, "ill-formed tag handle (first argument) of the TAG directive"), B.call(e.tagMap, r) && K(e, "there is a previously declared suffix for \"" + r + "\" tag handle"), Qe.test(i) || K(e, "ill-formed tag prefix (second argument) of the TAG directive");
2604
+ try {
2605
+ i = decodeURIComponent(i);
2606
+ } catch {
2607
+ K(e, "tag prefix is malformed: " + i);
2608
+ }
2609
+ e.tagMap[r] = i;
2610
+ }
2611
+ };
2612
+ function q(e, t, n, r) {
2613
+ var i, a, o, s;
2614
+ if (t < n) {
2615
+ if (s = e.input.slice(t, n), r) for (i = 0, a = s.length; i < a; i += 1) o = s.charCodeAt(i), o === 9 || 32 <= o && o <= 1114111 || K(e, "expected valid JSON character");
2616
+ else Je.test(s) && K(e, "the stream contains non-printable characters");
2617
+ e.result += s;
2618
+ }
2619
+ }
2620
+ function ft(e, t, n, r) {
2621
+ var i, a, o, s;
2622
+ for (c.isObject(n) || K(e, "cannot merge mappings; the provided source object is unacceptable"), i = Object.keys(n), o = 0, s = i.length; o < s; o += 1) a = i[o], B.call(t, a) || (at(t, a, n[a]), r[a] = !0);
2623
+ }
2624
+ function J(e, n, r, i, a, o, s, c, l) {
2625
+ var u, d;
2626
+ if (Array.isArray(a)) for (a = Array.prototype.slice.call(a), u = 0, d = a.length; u < d; u += 1) Array.isArray(a[u]) && K(e, "nested arrays are not supported inside keys"), t(a) === "object" && $e(a[u]) === "[object Object]" && (a[u] = "[object Object]");
2627
+ if (t(a) === "object" && $e(a) === "[object Object]" && (a = "[object Object]"), a = String(a), n === null && (n = {}), i === "tag:yaml.org,2002:merge") if (Array.isArray(o)) for (u = 0, d = o.length; u < d; u += 1) ft(e, n, o[u], r);
2628
+ else ft(e, n, o, r);
2629
+ else !e.json && !B.call(r, a) && B.call(n, a) && (e.line = s || e.line, e.lineStart = c || e.lineStart, e.position = l || e.position, K(e, "duplicated mapping key")), at(n, a, o), delete r[a];
2630
+ return n;
2631
+ }
2632
+ function pt(e) {
2633
+ var t = e.input.charCodeAt(e.position);
2634
+ t === 10 ? e.position++ : t === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) : K(e, "a line break is expected"), e.line += 1, e.lineStart = e.position, e.firstTabInLine = -1;
2635
+ }
2636
+ function Y(e, t, n) {
2637
+ for (var r = 0, i = e.input.charCodeAt(e.position); i !== 0;) {
2638
+ for (; H(i);) i === 9 && e.firstTabInLine === -1 && (e.firstTabInLine = e.position), i = e.input.charCodeAt(++e.position);
2639
+ if (t && i === 35) do
2640
+ i = e.input.charCodeAt(++e.position);
2641
+ while (i !== 10 && i !== 13 && i !== 0);
2642
+ if (V(i)) for (pt(e), i = e.input.charCodeAt(e.position), r++, e.lineIndent = 0; i === 32;) e.lineIndent++, i = e.input.charCodeAt(++e.position);
2643
+ else break;
2644
+ }
2645
+ return n !== -1 && r !== 0 && e.lineIndent < n && ut(e, "deficient indentation"), r;
2646
+ }
2647
+ function mt(e) {
2648
+ var t = e.position, n = e.input.charCodeAt(t);
2649
+ return !!((n === 45 || n === 46) && n === e.input.charCodeAt(t + 1) && n === e.input.charCodeAt(t + 2) && (t += 3, n = e.input.charCodeAt(t), n === 0 || U(n)));
2650
+ }
2651
+ function ht(e, t) {
2652
+ t === 1 ? e.result += " " : t > 1 && (e.result += c.repeat("\n", t - 1));
2653
+ }
2654
+ function gt(e, t, n) {
2655
+ var r, i, a, o, s, c, l, u, d = e.kind, f = e.result, p = e.input.charCodeAt(e.position);
2656
+ if (U(p) || W(p) || p === 35 || p === 38 || p === 42 || p === 33 || p === 124 || p === 62 || p === 39 || p === 34 || p === 37 || p === 64 || p === 96 || (p === 63 || p === 45) && (i = e.input.charCodeAt(e.position + 1), U(i) || n && W(i))) return !1;
2657
+ for (e.kind = "scalar", e.result = "", a = o = e.position, s = !1; p !== 0;) {
2658
+ if (p === 58) {
2659
+ if (i = e.input.charCodeAt(e.position + 1), U(i) || n && W(i)) break;
2660
+ } else if (p === 35) {
2661
+ if (r = e.input.charCodeAt(e.position - 1), U(r)) break;
2662
+ } else if (e.position === e.lineStart && mt(e) || n && W(p)) break;
2663
+ else if (V(p)) if (c = e.line, l = e.lineStart, u = e.lineIndent, Y(e, !1, -1), e.lineIndent >= t) {
2664
+ s = !0, p = e.input.charCodeAt(e.position);
2665
+ continue;
2666
+ } else {
2667
+ e.position = o, e.line = c, e.lineStart = l, e.lineIndent = u;
2668
+ break;
2669
+ }
2670
+ s &&= (q(e, a, o, !1), ht(e, e.line - c), a = o = e.position, !1), H(p) || (o = e.position + 1), p = e.input.charCodeAt(++e.position);
2671
+ }
2672
+ return q(e, a, o, !1), e.result ? !0 : (e.kind = d, e.result = f, !1);
2673
+ }
2674
+ function _t(e, t) {
2675
+ var n = e.input.charCodeAt(e.position), r, i;
2676
+ if (n !== 39) return !1;
2677
+ for (e.kind = "scalar", e.result = "", e.position++, r = i = e.position; (n = e.input.charCodeAt(e.position)) !== 0;) if (n === 39) if (q(e, r, e.position, !0), n = e.input.charCodeAt(++e.position), n === 39) r = e.position, e.position++, i = e.position;
2678
+ else return !0;
2679
+ else V(n) ? (q(e, r, i, !0), ht(e, Y(e, !1, t)), r = i = e.position) : e.position === e.lineStart && mt(e) ? K(e, "unexpected end of the document within a single quoted scalar") : (e.position++, i = e.position);
2680
+ K(e, "unexpected end of the stream within a single quoted scalar");
2681
+ }
2682
+ function vt(e, t) {
2683
+ var n, r, i, a, o, s = e.input.charCodeAt(e.position);
2684
+ if (s !== 34) return !1;
2685
+ for (e.kind = "scalar", e.result = "", e.position++, n = r = e.position; (s = e.input.charCodeAt(e.position)) !== 0;) if (s === 34) return q(e, n, e.position, !0), e.position++, !0;
2686
+ else if (s === 92) {
2687
+ if (q(e, n, e.position, !0), s = e.input.charCodeAt(++e.position), V(s)) Y(e, !1, t);
2688
+ else if (s < 256 && ot[s]) e.result += st[s], e.position++;
2689
+ else if ((o = tt(s)) > 0) {
2690
+ for (i = o, a = 0; i > 0; i--) s = e.input.charCodeAt(++e.position), (o = et(s)) >= 0 ? a = (a << 4) + o : K(e, "expected hexadecimal character");
2691
+ e.result += it(a), e.position++;
2692
+ } else K(e, "unknown escape sequence");
2693
+ n = r = e.position;
2694
+ } else V(s) ? (q(e, n, r, !0), ht(e, Y(e, !1, t)), n = r = e.position) : e.position === e.lineStart && mt(e) ? K(e, "unexpected end of the document within a double quoted scalar") : (e.position++, r = e.position);
2695
+ K(e, "unexpected end of the stream within a double quoted scalar");
2696
+ }
2697
+ function yt(e, t) {
2698
+ var n = !0, r, i, a, o = e.tag, s, c = e.anchor, l, u, d, f, p, m = Object.create(null), h, g, _, v = e.input.charCodeAt(e.position);
2699
+ if (v === 91) u = 93, p = !1, s = [];
2700
+ else if (v === 123) u = 125, p = !0, s = {};
2701
+ else return !1;
2702
+ for (e.anchor !== null && (e.anchorMap[e.anchor] = s), v = e.input.charCodeAt(++e.position); v !== 0;) {
2703
+ if (Y(e, !0, t), v = e.input.charCodeAt(e.position), v === u) return e.position++, e.tag = o, e.anchor = c, e.kind = p ? "mapping" : "sequence", e.result = s, !0;
2704
+ n ? v === 44 && K(e, "expected the node content, but found ','") : K(e, "missed comma between flow collection entries"), g = h = _ = null, d = f = !1, v === 63 && (l = e.input.charCodeAt(e.position + 1), U(l) && (d = f = !0, e.position++, Y(e, !0, t))), r = e.line, i = e.lineStart, a = e.position, X(e, t, Ve, !1, !0), g = e.tag, h = e.result, Y(e, !0, t), v = e.input.charCodeAt(e.position), (f || e.line === r) && v === 58 && (d = !0, v = e.input.charCodeAt(++e.position), Y(e, !0, t), X(e, t, Ve, !1, !0), _ = e.result), p ? J(e, s, m, g, h, _, r, i, a) : d ? s.push(J(e, null, m, g, h, _, r, i, a)) : s.push(h), Y(e, !0, t), v = e.input.charCodeAt(e.position), v === 44 ? (n = !0, v = e.input.charCodeAt(++e.position)) : n = !1;
2705
+ }
2706
+ K(e, "unexpected end of the stream within a flow collection");
2707
+ }
2708
+ function bt(e, t) {
2709
+ var n, r, i = Ge, a = !1, o = !1, s = t, l = 0, u = !1, d, f = e.input.charCodeAt(e.position);
2710
+ if (f === 124) r = !1;
2711
+ else if (f === 62) r = !0;
2712
+ else return !1;
2713
+ for (e.kind = "scalar", e.result = ""; f !== 0;) if (f = e.input.charCodeAt(++e.position), f === 43 || f === 45) Ge === i ? i = f === 43 ? qe : Ke : K(e, "repeat of a chomping mode identifier");
2714
+ else if ((d = nt(f)) >= 0) d === 0 ? K(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : o ? K(e, "repeat of an indentation width identifier") : (s = t + d - 1, o = !0);
2715
+ else break;
2716
+ if (H(f)) {
2717
+ do
2718
+ f = e.input.charCodeAt(++e.position);
2719
+ while (H(f));
2720
+ if (f === 35) do
2721
+ f = e.input.charCodeAt(++e.position);
2722
+ while (!V(f) && f !== 0);
2723
+ }
2724
+ for (; f !== 0;) {
2725
+ for (pt(e), e.lineIndent = 0, f = e.input.charCodeAt(e.position); (!o || e.lineIndent < s) && f === 32;) e.lineIndent++, f = e.input.charCodeAt(++e.position);
2726
+ if (!o && e.lineIndent > s && (s = e.lineIndent), V(f)) {
2727
+ l++;
2728
+ continue;
2729
+ }
2730
+ if (e.lineIndent < s) {
2731
+ i === qe ? e.result += c.repeat("\n", a ? 1 + l : l) : i === Ge && a && (e.result += "\n");
2732
+ break;
2733
+ }
2734
+ for (r ? H(f) ? (u = !0, e.result += c.repeat("\n", a ? 1 + l : l)) : u ? (u = !1, e.result += c.repeat("\n", l + 1)) : l === 0 ? a && (e.result += " ") : e.result += c.repeat("\n", l) : e.result += c.repeat("\n", a ? 1 + l : l), a = !0, o = !0, l = 0, n = e.position; !V(f) && f !== 0;) f = e.input.charCodeAt(++e.position);
2735
+ q(e, n, e.position, !1);
2736
+ }
2737
+ return !0;
2738
+ }
2739
+ function xt(e, t) {
2740
+ var n, r = e.tag, i = e.anchor, a = [], o, s = !1, c;
2741
+ if (e.firstTabInLine !== -1) return !1;
2742
+ for (e.anchor !== null && (e.anchorMap[e.anchor] = a), c = e.input.charCodeAt(e.position); c !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, K(e, "tab characters must not be used in indentation")), !(c !== 45 || (o = e.input.charCodeAt(e.position + 1), !U(o))));) {
2743
+ if (s = !0, e.position++, Y(e, !0, -1) && e.lineIndent <= t) {
2744
+ a.push(null), c = e.input.charCodeAt(e.position);
2745
+ continue;
2746
+ }
2747
+ if (n = e.line, X(e, t, Ue, !1, !0), a.push(e.result), Y(e, !0, -1), c = e.input.charCodeAt(e.position), (e.line === n || e.lineIndent > t) && c !== 0) K(e, "bad indentation of a sequence entry");
2748
+ else if (e.lineIndent < t) break;
2749
+ }
2750
+ return s ? (e.tag = r, e.anchor = i, e.kind = "sequence", e.result = a, !0) : !1;
2751
+ }
2752
+ function St(e, t, n) {
2753
+ var r, i, a, o, s, c, l = e.tag, u = e.anchor, d = {}, f = Object.create(null), p = null, m = null, h = null, g = !1, _ = !1, v;
2754
+ if (e.firstTabInLine !== -1) return !1;
2755
+ for (e.anchor !== null && (e.anchorMap[e.anchor] = d), v = e.input.charCodeAt(e.position); v !== 0;) {
2756
+ if (!g && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, K(e, "tab characters must not be used in indentation")), r = e.input.charCodeAt(e.position + 1), a = e.line, (v === 63 || v === 58) && U(r)) v === 63 ? (g && (J(e, d, f, p, m, null, o, s, c), p = m = h = null), _ = !0, g = !0, i = !0) : g ? (g = !1, i = !0) : K(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, v = r;
2757
+ else {
2758
+ if (o = e.line, s = e.lineStart, c = e.position, !X(e, n, He, !1, !0)) break;
2759
+ if (e.line === a) {
2760
+ for (v = e.input.charCodeAt(e.position); H(v);) v = e.input.charCodeAt(++e.position);
2761
+ if (v === 58) v = e.input.charCodeAt(++e.position), U(v) || K(e, "a whitespace character is expected after the key-value separator within a block mapping"), g && (J(e, d, f, p, m, null, o, s, c), p = m = h = null), _ = !0, g = !1, i = !1, p = e.tag, m = e.result;
2762
+ else if (_) K(e, "can not read an implicit mapping pair; a colon is missed");
2763
+ else return e.tag = l, e.anchor = u, !0;
2764
+ } else if (_) K(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
2765
+ else return e.tag = l, e.anchor = u, !0;
2766
+ }
2767
+ if ((e.line === a || e.lineIndent > t) && (g && (o = e.line, s = e.lineStart, c = e.position), X(e, t, We, !0, i) && (g ? m = e.result : h = e.result), g || (J(e, d, f, p, m, h, o, s, c), p = m = h = null), Y(e, !0, -1), v = e.input.charCodeAt(e.position)), (e.line === a || e.lineIndent > t) && v !== 0) K(e, "bad indentation of a mapping entry");
2768
+ else if (e.lineIndent < t) break;
2769
+ }
2770
+ return g && J(e, d, f, p, m, null, o, s, c), _ && (e.tag = l, e.anchor = u, e.kind = "mapping", e.result = d), _;
2771
+ }
2772
+ function Ct(e) {
2773
+ var t, n = !1, r = !1, i, a, o = e.input.charCodeAt(e.position);
2774
+ if (o !== 33) return !1;
2775
+ if (e.tag !== null && K(e, "duplication of a tag property"), o = e.input.charCodeAt(++e.position), o === 60 ? (n = !0, o = e.input.charCodeAt(++e.position)) : o === 33 ? (r = !0, i = "!!", o = e.input.charCodeAt(++e.position)) : i = "!", t = e.position, n) {
2776
+ do
2777
+ o = e.input.charCodeAt(++e.position);
2778
+ while (o !== 0 && o !== 62);
2779
+ e.position < e.length ? (a = e.input.slice(t, e.position), o = e.input.charCodeAt(++e.position)) : K(e, "unexpected end of the stream within a verbatim tag");
2780
+ } else {
2781
+ for (; o !== 0 && !U(o);) o === 33 && (r ? K(e, "tag suffix cannot contain exclamation marks") : (i = e.input.slice(t - 1, e.position + 1), Ze.test(i) || K(e, "named tag handle cannot contain such characters"), r = !0, t = e.position + 1)), o = e.input.charCodeAt(++e.position);
2782
+ a = e.input.slice(t, e.position), Xe.test(a) && K(e, "tag suffix cannot contain flow indicator characters");
2783
+ }
2784
+ a && !Qe.test(a) && K(e, "tag name cannot contain such characters: " + a);
2785
+ try {
2786
+ a = decodeURIComponent(a);
2787
+ } catch {
2788
+ K(e, "tag name is malformed: " + a);
2789
+ }
2790
+ return n ? e.tag = a : B.call(e.tagMap, i) ? e.tag = e.tagMap[i] + a : i === "!" ? e.tag = "!" + a : i === "!!" ? e.tag = "tag:yaml.org,2002:" + a : K(e, "undeclared tag handle \"" + i + "\""), !0;
2791
+ }
2792
+ function wt(e) {
2793
+ var t, n = e.input.charCodeAt(e.position);
2794
+ if (n !== 38) return !1;
2795
+ for (e.anchor !== null && K(e, "duplication of an anchor property"), n = e.input.charCodeAt(++e.position), t = e.position; n !== 0 && !U(n) && !W(n);) n = e.input.charCodeAt(++e.position);
2796
+ return e.position === t && K(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(t, e.position), !0;
2797
+ }
2798
+ function Tt(e) {
2799
+ var t, n, r = e.input.charCodeAt(e.position);
2800
+ if (r !== 42) return !1;
2801
+ for (r = e.input.charCodeAt(++e.position), t = e.position; r !== 0 && !U(r) && !W(r);) r = e.input.charCodeAt(++e.position);
2802
+ return e.position === t && K(e, "name of an alias node must contain at least one character"), n = e.input.slice(t, e.position), B.call(e.anchorMap, n) || K(e, "unidentified alias \"" + n + "\""), e.result = e.anchorMap[n], Y(e, !0, -1), !0;
2803
+ }
2804
+ function X(e, t, n, r, i) {
2805
+ var a, o, s, c = 1, l = !1, u = !1, d, f, p, m, h, g;
2806
+ if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, a = o = s = We === n || Ue === n, r && Y(e, !0, -1) && (l = !0, e.lineIndent > t ? c = 1 : e.lineIndent === t ? c = 0 : e.lineIndent < t && (c = -1)), c === 1) for (; Ct(e) || wt(e);) Y(e, !0, -1) ? (l = !0, s = a, e.lineIndent > t ? c = 1 : e.lineIndent === t ? c = 0 : e.lineIndent < t && (c = -1)) : s = !1;
2807
+ if (s &&= l || i, (c === 1 || We === n) && (h = Ve === n || He === n ? t : t + 1, g = e.position - e.lineStart, c === 1 ? s && (xt(e, g) || St(e, g, h)) || yt(e, h) ? u = !0 : (o && bt(e, h) || _t(e, h) || vt(e, h) ? u = !0 : Tt(e) ? (u = !0, (e.tag !== null || e.anchor !== null) && K(e, "alias node should not have any properties")) : gt(e, h, Ve === n) && (u = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : c === 0 && (u = s && xt(e, g))), e.tag === null) e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
2808
+ else if (e.tag === "?") {
2809
+ for (e.result !== null && e.kind !== "scalar" && K(e, "unacceptable node kind for !<?> tag; it should be \"scalar\", not \"" + e.kind + "\""), d = 0, f = e.implicitTypes.length; d < f; d += 1) if (m = e.implicitTypes[d], m.resolve(e.result)) {
2810
+ e.result = m.construct(e.result), e.tag = m.tag, e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
2811
+ break;
2812
+ }
2813
+ } else if (e.tag !== "!") {
2814
+ if (B.call(e.typeMap[e.kind || "fallback"], e.tag)) m = e.typeMap[e.kind || "fallback"][e.tag];
2815
+ else for (m = null, p = e.typeMap.multi[e.kind || "fallback"], d = 0, f = p.length; d < f; d += 1) if (e.tag.slice(0, p[d].tag.length) === p[d].tag) {
2816
+ m = p[d];
2817
+ break;
2818
+ }
2819
+ m || K(e, "unknown tag !<" + e.tag + ">"), e.result !== null && m.kind !== e.kind && K(e, "unacceptable node kind for !<" + e.tag + "> tag; it should be \"" + m.kind + "\", not \"" + e.kind + "\""), m.resolve(e.result, e.tag) ? (e.result = m.construct(e.result, e.tag), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : K(e, "cannot resolve a node with !<" + e.tag + "> explicit tag");
2820
+ }
2821
+ return e.listener !== null && e.listener("close", e), e.tag !== null || e.anchor !== null || u;
2822
+ }
2823
+ function Et(e) {
2824
+ var t = e.position, n, r, i, a = !1, o;
2825
+ for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = Object.create(null), e.anchorMap = Object.create(null); (o = e.input.charCodeAt(e.position)) !== 0 && (Y(e, !0, -1), o = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || o !== 37));) {
2826
+ for (a = !0, o = e.input.charCodeAt(++e.position), n = e.position; o !== 0 && !U(o);) o = e.input.charCodeAt(++e.position);
2827
+ for (r = e.input.slice(n, e.position), i = [], r.length < 1 && K(e, "directive name must not be less than one character in length"); o !== 0;) {
2828
+ for (; H(o);) o = e.input.charCodeAt(++e.position);
2829
+ if (o === 35) {
2830
+ do
2831
+ o = e.input.charCodeAt(++e.position);
2832
+ while (o !== 0 && !V(o));
2833
+ break;
2834
+ }
2835
+ if (V(o)) break;
2836
+ for (n = e.position; o !== 0 && !U(o);) o = e.input.charCodeAt(++e.position);
2837
+ i.push(e.input.slice(n, e.position));
2838
+ }
2839
+ o !== 0 && pt(e), B.call(dt, r) ? dt[r](e, r, i) : ut(e, "unknown document directive \"" + r + "\"");
2840
+ }
2841
+ if (Y(e, !0, -1), e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 ? (e.position += 3, Y(e, !0, -1)) : a && K(e, "directives end mark is expected"), X(e, e.lineIndent - 1, We, !1, !0), Y(e, !0, -1), e.checkLineBreaks && Ye.test(e.input.slice(t, e.position)) && ut(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && mt(e)) {
2842
+ e.input.charCodeAt(e.position) === 46 && (e.position += 3, Y(e, !0, -1));
2843
+ return;
2844
+ }
2845
+ if (e.position < e.length - 1) K(e, "end of the stream or a document separator is expected");
2846
+ else return;
2847
+ }
2848
+ function Dt(e, t) {
2849
+ e = String(e), t ||= {}, e.length !== 0 && (e.charCodeAt(e.length - 1) !== 10 && e.charCodeAt(e.length - 1) !== 13 && (e += "\n"), e.charCodeAt(0) === 65279 && (e = e.slice(1)));
2850
+ var n = new ct(e, t), r = e.indexOf("\0");
2851
+ for (r !== -1 && (n.position = r, K(n, "null byte is not allowed in input")), n.input += "\0"; n.input.charCodeAt(n.position) === 32;) n.lineIndent += 1, n.position += 1;
2852
+ for (; n.position < n.length - 1;) Et(n);
2853
+ return n.documents;
2854
+ }
2855
+ function Ot(e, n, r) {
2856
+ n !== null && t(n) === "object" && r === void 0 && (r = n, n = null);
2857
+ var i = Dt(e, r);
2858
+ if (typeof n != "function") return i;
2859
+ for (var a = 0, o = i.length; a < o; a += 1) n(i[a]);
2860
+ }
2861
+ function kt(e, t) {
2862
+ var n = Dt(e, t);
2863
+ if (n.length !== 0) {
2864
+ if (n.length === 1) return n[0];
2865
+ throw new d("expected a single document in the stream, but found more");
2866
+ }
2867
+ }
2868
+ var At = {
2869
+ loadAll: Ot,
2870
+ load: kt
2871
+ }, jt = Object.prototype.toString, Mt = Object.prototype.hasOwnProperty, Nt = 65279, Pt = 9, Ft = 10, It = 13, Lt = 32, Rt = 33, zt = 34, Bt = 35, Vt = 37, Ht = 38, Ut = 39, Wt = 42, Gt = 44, Kt = 45, qt = 58, Jt = 61, Yt = 62, Xt = 63, Zt = 64, Qt = 91, $t = 93, en = 96, tn = 123, nn = 124, rn = 125, Z = {};
2872
+ Z[0] = "\\0", Z[7] = "\\a", Z[8] = "\\b", Z[9] = "\\t", Z[10] = "\\n", Z[11] = "\\v", Z[12] = "\\f", Z[13] = "\\r", Z[27] = "\\e", Z[34] = "\\\"", Z[92] = "\\\\", Z[133] = "\\N", Z[160] = "\\_", Z[8232] = "\\L", Z[8233] = "\\P";
2873
+ var an = [
2874
+ "y",
2875
+ "Y",
2876
+ "yes",
2877
+ "Yes",
2878
+ "YES",
2879
+ "on",
2880
+ "On",
2881
+ "ON",
2882
+ "n",
2883
+ "N",
2884
+ "no",
2885
+ "No",
2886
+ "NO",
2887
+ "off",
2888
+ "Off",
2889
+ "OFF"
2890
+ ], on = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
2891
+ function sn(e, t) {
2892
+ var n, r, i, a, o, s, c;
2893
+ if (t === null) return {};
2894
+ for (n = {}, r = Object.keys(t), i = 0, a = r.length; i < a; i += 1) o = r[i], s = String(t[o]), o.slice(0, 2) === "!!" && (o = "tag:yaml.org,2002:" + o.slice(2)), c = e.compiledTypeMap.fallback[o], c && Mt.call(c.styleAliases, s) && (s = c.styleAliases[s]), n[o] = s;
2895
+ return n;
2896
+ }
2897
+ function cn(e) {
2898
+ var t = e.toString(16).toUpperCase(), n, r;
2899
+ if (e <= 255) n = "x", r = 2;
2900
+ else if (e <= 65535) n = "u", r = 4;
2901
+ else if (e <= 4294967295) n = "U", r = 8;
2902
+ else throw new d("code point within a string may not be greater than 0xFFFFFFFF");
2903
+ return "\\" + n + c.repeat("0", r - t.length) + t;
2904
+ }
2905
+ var ln = 1, un = 2;
2906
+ function dn(e) {
2907
+ this.schema = e.schema || Be, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = c.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = sn(this.schema, e.styles || null), this.sortKeys = e.sortKeys || !1, this.lineWidth = e.lineWidth || 80, this.noRefs = e.noRefs || !1, this.noCompatMode = e.noCompatMode || !1, this.condenseFlow = e.condenseFlow || !1, this.quotingType = e.quotingType === "\"" ? un : ln, this.forceQuotes = e.forceQuotes || !1, this.replacer = typeof e.replacer == "function" ? e.replacer : null, this.implicitTypes = this.schema.compiledImplicit, this.explicitTypes = this.schema.compiledExplicit, this.tag = null, this.result = "", this.duplicates = [], this.usedDuplicates = null;
2908
+ }
2909
+ function fn(e, t) {
2910
+ for (var n = c.repeat(" ", t), r = 0, i = -1, a = "", o, s = e.length; r < s;) i = e.indexOf("\n", r), i === -1 ? (o = e.slice(r), r = s) : (o = e.slice(r, i + 1), r = i + 1), o.length && o !== "\n" && (a += n), a += o;
2911
+ return a;
2912
+ }
2913
+ function pn(e, t) {
2914
+ return "\n" + c.repeat(" ", e.indent * t);
2915
+ }
2916
+ function mn(e, t) {
2917
+ var n, r, i;
2918
+ for (n = 0, r = e.implicitTypes.length; n < r; n += 1) if (i = e.implicitTypes[n], i.resolve(t)) return !0;
2919
+ return !1;
2920
+ }
2921
+ function hn(e) {
2922
+ return e === Lt || e === Pt;
2923
+ }
2924
+ function gn(e) {
2925
+ return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !== Nt || 65536 <= e && e <= 1114111;
2926
+ }
2927
+ function _n(e) {
2928
+ return gn(e) && e !== Nt && e !== It && e !== Ft;
2929
+ }
2930
+ function vn(e, t, n) {
2931
+ var r = _n(e), i = r && !hn(e);
2932
+ return (n ? r : r && e !== Gt && e !== Qt && e !== $t && e !== tn && e !== rn) && e !== Bt && !(t === qt && !i) || _n(t) && !hn(t) && e === Bt || t === qt && i;
2933
+ }
2934
+ function yn(e) {
2935
+ return gn(e) && e !== Nt && !hn(e) && e !== Kt && e !== Xt && e !== qt && e !== Gt && e !== Qt && e !== $t && e !== tn && e !== rn && e !== Bt && e !== Ht && e !== Wt && e !== Rt && e !== nn && e !== Jt && e !== Yt && e !== Ut && e !== zt && e !== Vt && e !== Zt && e !== en;
2936
+ }
2937
+ function bn(e) {
2938
+ return !hn(e) && e !== qt;
2939
+ }
2940
+ function xn(e, t) {
2941
+ var n = e.charCodeAt(t), r;
2942
+ return n >= 55296 && n <= 56319 && t + 1 < e.length && (r = e.charCodeAt(t + 1), r >= 56320 && r <= 57343) ? (n - 55296) * 1024 + r - 56320 + 65536 : n;
2943
+ }
2944
+ function Sn(e) {
2945
+ return /^\n* /.test(e);
2946
+ }
2947
+ var Cn = 1, wn = 2, Tn = 3, En = 4, Q = 5;
2948
+ function Dn(e, t, n, r, i, a, o, s) {
2949
+ var c, l = 0, u = null, d = !1, f = !1, p = r !== -1, m = -1, h = yn(xn(e, 0)) && bn(xn(e, e.length - 1));
2950
+ if (t || o) for (c = 0; c < e.length; l >= 65536 ? c += 2 : c++) {
2951
+ if (l = xn(e, c), !gn(l)) return Q;
2952
+ h &&= vn(l, u, s), u = l;
2953
+ }
2954
+ else {
2955
+ for (c = 0; c < e.length; l >= 65536 ? c += 2 : c++) {
2956
+ if (l = xn(e, c), l === Ft) d = !0, p && (f ||= c - m - 1 > r && e[m + 1] !== " ", m = c);
2957
+ else if (!gn(l)) return Q;
2958
+ h &&= vn(l, u, s), u = l;
2959
+ }
2960
+ f ||= p && c - m - 1 > r && e[m + 1] !== " ";
2961
+ }
2962
+ return !d && !f ? h && !o && !i(e) ? Cn : a === un ? Q : wn : n > 9 && Sn(e) ? Q : o ? a === un ? Q : wn : f ? En : Tn;
2963
+ }
2964
+ function On(e, t, n, r, i) {
2965
+ e.dump = function() {
2966
+ if (t.length === 0) return e.quotingType === un ? "\"\"" : "''";
2967
+ if (!e.noCompatMode && (an.indexOf(t) !== -1 || on.test(t))) return e.quotingType === un ? "\"" + t + "\"" : "'" + t + "'";
2968
+ var a = e.indent * Math.max(1, n), o = e.lineWidth === -1 ? -1 : Math.max(Math.min(e.lineWidth, 40), e.lineWidth - a), s = r || e.flowLevel > -1 && n >= e.flowLevel;
2969
+ function c(t) {
2970
+ return mn(e, t);
2971
+ }
2972
+ switch (Dn(t, s, e.indent, o, c, e.quotingType, e.forceQuotes && !r, i)) {
2973
+ case Cn: return t;
2974
+ case wn: return "'" + t.replace(/'/g, "''") + "'";
2975
+ case Tn: return "|" + kn(t, e.indent) + An(fn(t, a));
2976
+ case En: return ">" + kn(t, e.indent) + An(fn(jn(t, o), a));
2977
+ case Q: return "\"" + Nn(t) + "\"";
2978
+ default: throw new d("impossible error: invalid scalar style");
2979
+ }
2980
+ }();
2981
+ }
2982
+ function kn(e, t) {
2983
+ var n = Sn(e) ? String(t) : "", r = e[e.length - 1] === "\n";
2984
+ return n + (r && (e[e.length - 2] === "\n" || e === "\n") ? "+" : r ? "" : "-") + "\n";
2985
+ }
2986
+ function An(e) {
2987
+ return e[e.length - 1] === "\n" ? e.slice(0, -1) : e;
2988
+ }
2989
+ function jn(e, t) {
2990
+ for (var n = /(\n+)([^\n]*)/g, r = function() {
2991
+ var r = e.indexOf("\n");
2992
+ return r = r === -1 ? e.length : r, n.lastIndex = r, Mn(e.slice(0, r), t);
2993
+ }(), i = e[0] === "\n" || e[0] === " ", a, o; o = n.exec(e);) {
2994
+ var s = o[1], c = o[2];
2995
+ a = c[0] === " ", r += s + (!i && !a && c !== "" ? "\n" : "") + Mn(c, t), i = a;
2996
+ }
2997
+ return r;
2998
+ }
2999
+ function Mn(e, t) {
3000
+ if (e === "" || e[0] === " ") return e;
3001
+ for (var n = / [^ ]/g, r, i = 0, a, o = 0, s = 0, c = ""; r = n.exec(e);) s = r.index, s - i > t && (a = o > i ? o : s, c += "\n" + e.slice(i, a), i = a + 1), o = s;
3002
+ return c += "\n", e.length - i > t && o > i ? c += e.slice(i, o) + "\n" + e.slice(o + 1) : c += e.slice(i), c.slice(1);
3003
+ }
3004
+ function Nn(e) {
3005
+ for (var t = "", n = 0, r, i = 0; i < e.length; n >= 65536 ? i += 2 : i++) n = xn(e, i), r = Z[n], !r && gn(n) ? (t += e[i], n >= 65536 && (t += e[i + 1])) : t += r || cn(n);
3006
+ return t;
3007
+ }
3008
+ function Pn(e, t, n) {
3009
+ var r = "", i = e.tag, a, o, s;
3010
+ for (a = 0, o = n.length; a < o; a += 1) s = n[a], e.replacer && (s = e.replacer.call(n, String(a), s)), ($(e, t, s, !1, !1) || s === void 0 && $(e, t, null, !1, !1)) && (r !== "" && (r += "," + (e.condenseFlow ? "" : " ")), r += e.dump);
3011
+ e.tag = i, e.dump = "[" + r + "]";
3012
+ }
3013
+ function Fn(e, t, n, r) {
3014
+ var i = "", a = e.tag, o, s, c;
3015
+ for (o = 0, s = n.length; o < s; o += 1) c = n[o], e.replacer && (c = e.replacer.call(n, String(o), c)), ($(e, t + 1, c, !0, !0, !1, !0) || c === void 0 && $(e, t + 1, null, !0, !0, !1, !0)) && ((!r || i !== "") && (i += pn(e, t)), e.dump && Ft === e.dump.charCodeAt(0) ? i += "-" : i += "- ", i += e.dump);
3016
+ e.tag = a, e.dump = i || "[]";
3017
+ }
3018
+ function In(e, t, n) {
3019
+ var r = "", i = e.tag, a = Object.keys(n), o, s, c, l, u;
3020
+ for (o = 0, s = a.length; o < s; o += 1) u = "", r !== "" && (u += ", "), e.condenseFlow && (u += "\""), c = a[o], l = n[c], e.replacer && (l = e.replacer.call(n, c, l)), $(e, t, c, !1, !1) && (e.dump.length > 1024 && (u += "? "), u += e.dump + (e.condenseFlow ? "\"" : "") + ":" + (e.condenseFlow ? "" : " "), $(e, t, l, !1, !1) && (u += e.dump, r += u));
3021
+ e.tag = i, e.dump = "{" + r + "}";
3022
+ }
3023
+ function Ln(e, t, n, r) {
3024
+ var i = "", a = e.tag, o = Object.keys(n), s, c, l, u, f, p;
3025
+ if (e.sortKeys === !0) o.sort();
3026
+ else if (typeof e.sortKeys == "function") o.sort(e.sortKeys);
3027
+ else if (e.sortKeys) throw new d("sortKeys must be a boolean or a function");
3028
+ for (s = 0, c = o.length; s < c; s += 1) p = "", (!r || i !== "") && (p += pn(e, t)), l = o[s], u = n[l], e.replacer && (u = e.replacer.call(n, l, u)), $(e, t + 1, l, !0, !0, !0) && (f = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, f && (e.dump && Ft === e.dump.charCodeAt(0) ? p += "?" : p += "? "), p += e.dump, f && (p += pn(e, t)), $(e, t + 1, u, !0, f) && (e.dump && Ft === e.dump.charCodeAt(0) ? p += ":" : p += ": ", p += e.dump, i += p));
3029
+ e.tag = a, e.dump = i || "{}";
3030
+ }
3031
+ function Rn(e, n, r) {
3032
+ var i, a = r ? e.explicitTypes : e.implicitTypes, o, s, c, l;
3033
+ for (o = 0, s = a.length; o < s; o += 1) if (c = a[o], (c.instanceOf || c.predicate) && (!c.instanceOf || t(n) === "object" && n instanceof c.instanceOf) && (!c.predicate || c.predicate(n))) {
3034
+ if (r ? c.multi && c.representName ? e.tag = c.representName(n) : e.tag = c.tag : e.tag = "?", c.represent) {
3035
+ if (l = e.styleMap[c.tag] || c.defaultStyle, jt.call(c.represent) === "[object Function]") i = c.represent(n, l);
3036
+ else if (Mt.call(c.represent, l)) i = c.represent[l](n, l);
3037
+ else throw new d("!<" + c.tag + "> tag resolver accepts not \"" + l + "\" style");
3038
+ e.dump = i;
3039
+ }
3040
+ return !0;
3041
+ }
3042
+ return !1;
3043
+ }
3044
+ function $(e, t, n, r, i, a, o) {
3045
+ e.tag = null, e.dump = n, Rn(e, n, !1) || Rn(e, n, !0);
3046
+ var s = jt.call(e.dump), c = r, l;
3047
+ r &&= e.flowLevel < 0 || e.flowLevel > t;
3048
+ var u = s === "[object Object]" || s === "[object Array]", f, p;
3049
+ if (u && (f = e.duplicates.indexOf(n), p = f !== -1), (e.tag !== null && e.tag !== "?" || p || e.indent !== 2 && t > 0) && (i = !1), p && e.usedDuplicates[f]) e.dump = "*ref_" + f;
3050
+ else {
3051
+ if (u && p && !e.usedDuplicates[f] && (e.usedDuplicates[f] = !0), s === "[object Object]") r && Object.keys(e.dump).length !== 0 ? (Ln(e, t, e.dump, i), p && (e.dump = "&ref_" + f + e.dump)) : (In(e, t, e.dump), p && (e.dump = "&ref_" + f + " " + e.dump));
3052
+ else if (s === "[object Array]") r && e.dump.length !== 0 ? (e.noArrayIndent && !o && t > 0 ? Fn(e, t - 1, e.dump, i) : Fn(e, t, e.dump, i), p && (e.dump = "&ref_" + f + e.dump)) : (Pn(e, t, e.dump), p && (e.dump = "&ref_" + f + " " + e.dump));
3053
+ else if (s === "[object String]") e.tag !== "?" && On(e, e.dump, t, a, c);
3054
+ else if (s === "[object Undefined]") return !1;
3055
+ else {
3056
+ if (e.skipInvalid) return !1;
3057
+ throw new d("unacceptable kind of an object to dump " + s);
3058
+ }
3059
+ e.tag !== null && e.tag !== "?" && (l = encodeURI(e.tag[0] === "!" ? e.tag.slice(1) : e.tag).replace(/!/g, "%21"), l = e.tag[0] === "!" ? "!" + l : l.slice(0, 18) === "tag:yaml.org,2002:" ? "!!" + l.slice(18) : "!<" + l + ">", e.dump = l + " " + e.dump);
3060
+ }
3061
+ return !0;
3062
+ }
3063
+ function zn(e, t) {
3064
+ var n = [], r = [], i, a;
3065
+ for (Bn(e, n, r), i = 0, a = r.length; i < a; i += 1) t.duplicates.push(n[r[i]]);
3066
+ t.usedDuplicates = Array(a);
3067
+ }
3068
+ function Bn(e, n, r) {
3069
+ var i, a, o;
3070
+ if (e !== null && t(e) === "object") if (a = n.indexOf(e), a !== -1) r.indexOf(a) === -1 && r.push(a);
3071
+ else if (n.push(e), Array.isArray(e)) for (a = 0, o = e.length; a < o; a += 1) Bn(e[a], n, r);
3072
+ else for (i = Object.keys(e), a = 0, o = i.length; a < o; a += 1) Bn(e[i[a]], n, r);
3073
+ }
3074
+ function Vn(e, t) {
3075
+ t ||= {};
3076
+ var n = new dn(t);
3077
+ n.noRefs || zn(e, n);
3078
+ var r = e;
3079
+ return n.replacer && (r = n.replacer.call({ "": r }, "", r)), $(n, 0, r, !0, !0) ? n.dump + "\n" : "";
3080
+ }
3081
+ var Hn = { dump: Vn };
3082
+ function Un(e, t) {
3083
+ return function() {
3084
+ throw Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + t + " instead, which is now safe by default.");
3085
+ };
3086
+ }
3087
+ e.default = {
3088
+ Type: e.Type = b,
3089
+ Schema: e.Schema = w,
3090
+ FAILSAFE_SCHEMA: e.FAILSAFE_SCHEMA = O,
3091
+ JSON_SCHEMA: e.JSON_SCHEMA = de,
3092
+ CORE_SCHEMA: e.CORE_SCHEMA = fe,
3093
+ DEFAULT_SCHEMA: e.DEFAULT_SCHEMA = Be,
3094
+ load: e.load = At.load,
3095
+ loadAll: e.loadAll = At.loadAll,
3096
+ dump: e.dump = Hn.dump,
3097
+ YAMLException: e.YAMLException = d,
3098
+ types: e.types = {
3099
+ binary: Ee,
3100
+ float: ue,
3101
+ map: D,
3102
+ null: M,
3103
+ pairs: Fe,
3104
+ set: ze,
3105
+ timestamp: ve,
3106
+ bool: I,
3107
+ int: re,
3108
+ merge: be,
3109
+ omap: je,
3110
+ seq: E,
3111
+ str: T
3112
+ },
3113
+ safeLoad: e.safeLoad = Un("safeLoad", "load"),
3114
+ safeLoadAll: e.safeLoadAll = Un("safeLoadAll", "loadAll"),
3115
+ safeDump: e.safeDump = Un("safeDump", "dump")
3116
+ };
3117
+ })), p = /* @__PURE__ */ n(((e, t) => {
3118
+ Object.defineProperty(e, "__esModule", { value: !0 }), e.default = void 0, e.default = function(e) {
3119
+ if (!(e.indexOf(".") < 0)) return `.${e.split(".").pop()}`;
3120
+ }, t.exports = e.default;
3121
+ })), m = /* @__PURE__ */ n(((e, t) => {
3122
+ Object.defineProperty(e, "__esModule", { value: !0 }), e.readFile = E, e.readFileSync = T;
3123
+ var n = s(u()), r = d(), i = s(f()), o = s(p());
3124
+ function s(e) {
3125
+ return e && e.__esModule ? e : { default: e };
3126
+ }
3127
+ var c = typeof Deno < "u", l = typeof Bun < "u", m = i.default !== void 0 && i.default.load ? i.default : void 0, h = c ? void 0 : a("node:fs"), g = eval, _ = function(e) {
3128
+ var t = h.readFileSync(e, "utf8"), n;
3129
+ try {
3130
+ n = h.statSync(e);
3131
+ } catch {}
3132
+ return {
3133
+ data: t,
3134
+ stat: n
3135
+ };
3136
+ }, v = function(e) {
3137
+ return new Promise(function(t, n) {
3138
+ h.readFile(e, "utf8", function(r, i) {
3139
+ if (r) return n(r);
3140
+ h.stat(e, function(e, n) {
3141
+ return t(e ? { data: i } : {
3142
+ data: i,
3143
+ stat: n
3144
+ });
3145
+ });
3146
+ });
3147
+ });
3148
+ }, y = function(e) {
3149
+ var t = new TextDecoder("utf-8"), n = Deno.readFileSync(e), r = t.decode(n), i;
3150
+ try {
3151
+ i = Deno.statSync(e);
3152
+ } catch {}
3153
+ return {
3154
+ data: r,
3155
+ stat: i
3156
+ };
3157
+ }, b = function(e) {
3158
+ return new Promise(function(t, n) {
3159
+ var r = new TextDecoder("utf-8");
3160
+ Deno.readFile(e).then(function(n) {
3161
+ var i = r.decode(n);
3162
+ Deno.stat(e).then(function(e) {
3163
+ return t({
3164
+ data: i,
3165
+ stat: e
3166
+ });
3167
+ }).catch(function() {
3168
+ return t({ data: i });
3169
+ });
3170
+ }).catch(n);
3171
+ });
3172
+ }, x = _, S = v, C = function(e, t, n) {
3173
+ var r = e.lastIndexOf(t);
3174
+ return r > -1 ? e.substring(0, r) + n + e.substring(r + t.length) : e.toString();
3175
+ }, w = function(e, i, a) {
3176
+ i = i.replace(/^\uFEFF/, "");
3177
+ var o = {};
3178
+ switch (e) {
3179
+ case ".js":
3180
+ case ".ts":
3181
+ t === void 0 && (i.indexOf("exports") > -1 ? i = `(${C(i.substring(i.indexOf("=") + 1), "};", "")})` : i.indexOf("export default ") > -1 && (i = `(${C(i.substring(i.indexOf("export default ") + 15), "};", "")})`)), o = g(i);
3182
+ break;
3183
+ case ".json5":
3184
+ o = n.default.parse(i);
3185
+ break;
3186
+ case ".jsonc":
3187
+ o = (0, r.parse)(i);
3188
+ break;
3189
+ case ".yml":
3190
+ case ".yaml":
3191
+ o = m.load(i);
3192
+ break;
3193
+ default: o = a.parse(i);
3194
+ }
3195
+ return o;
3196
+ };
3197
+ function T(e, t) {
3198
+ var n = (0, o.default)(e), r, i;
3199
+ if (l) {
3200
+ var a = x(e);
3201
+ r = a.data, i = a.stat;
3202
+ } else if (c) {
3203
+ var s = y(e);
3204
+ r = s.data, i = s.stat;
3205
+ } else {
3206
+ var u = _(e);
3207
+ r = u.data, i = u.stat;
3208
+ }
3209
+ return {
3210
+ data: w(n, r, t),
3211
+ stat: i
3212
+ };
3213
+ }
3214
+ function E(e) {
3215
+ var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : { parse: JSON.parse }, n = (0, o.default)(e), r = l ? S : c ? b : v;
3216
+ return new Promise(function(i, a) {
3217
+ r(e).then(function(r) {
3218
+ var o = r.data, s = r.stat;
3219
+ try {
3220
+ i({
3221
+ data: w(n, o, t),
3222
+ stat: s
3223
+ });
3224
+ } catch (t) {
3225
+ t.message = "error parsing " + e + ": " + t.message, a(t);
3226
+ }
3227
+ }).catch(a);
3228
+ });
3229
+ }
3230
+ })), h = /* @__PURE__ */ n(((e, t) => {
3231
+ Object.defineProperty(e, "__esModule", { value: !0 }), e.removeFile = j, e.removeFileSync = A, e.writeFile = k, e.writeFileSync = O;
3232
+ var n = o(u()), r = o(f()), i = o(p());
3233
+ function o(e) {
3234
+ return e && e.__esModule ? e : { default: e };
3235
+ }
3236
+ var s = typeof Deno < "u", c = typeof Bun < "u", l = r.default !== void 0 && r.default.load ? r.default : void 0, d = s ? void 0 : a("node:fs");
3237
+ function m(e) {
3238
+ if (e.length === 0) return ".";
3239
+ for (var t = e.charCodeAt(0), n = t === 47, r = -1, i = !0, a = e.length - 1; a >= 1; --a) if (t = e.charCodeAt(a), t === 47) {
3240
+ if (!i) {
3241
+ r = a;
3242
+ break;
3243
+ }
3244
+ } else i = !1;
3245
+ return r === -1 ? n ? "/" : "." : n && r === 1 ? "//" : e.slice(0, r);
3246
+ }
3247
+ var h = function(e, t) {
3248
+ try {
3249
+ d.mkdirSync(m(e), { recursive: !0 });
3250
+ } catch {}
3251
+ return d.writeFileSync(e, t, "utf8");
3252
+ }, g = function(e, t) {
3253
+ return new Promise(function(n, r) {
3254
+ d.mkdir(m(e), { recursive: !0 }, function() {
3255
+ d.writeFile(e, t, "utf8", function(e, t) {
3256
+ return e ? r(e) : n(t);
3257
+ });
3258
+ });
3259
+ });
3260
+ }, _ = function(e) {
3261
+ return d.unlinkSync(e);
3262
+ }, v = function(e) {
3263
+ return new Promise(function(t, n) {
3264
+ return d.unlink(e, function(e) {
3265
+ return e ? n(e) : t();
3266
+ });
3267
+ });
3268
+ }, y = function(e, t) {
3269
+ var n = new TextEncoder().encode(t);
3270
+ try {
3271
+ Deno.mkdirSync(m(e), { recursive: !0 });
3272
+ } catch {}
3273
+ Deno.writeFileSync(e, n);
3274
+ }, b = function(e, t) {
3275
+ var n = new TextEncoder().encode(t);
3276
+ return new Promise(function(t, r) {
3277
+ Deno.mkdir(m(e), { recursive: !0 }).then(function() {
3278
+ Deno.writeFile(e, n).then(t, r);
3279
+ }).catch(function() {
3280
+ Deno.writeFile(e, n).then(t, r);
3281
+ });
3282
+ });
3283
+ }, x = function(e) {
3284
+ Deno.removeSync(e);
3285
+ }, S = function(e) {
3286
+ return Deno.remove(e);
3287
+ }, C = h, w = g, T = _, E = v, D = function(e, r, i) {
3288
+ var a = "";
3289
+ switch (e) {
3290
+ case ".js":
3291
+ case ".ts":
3292
+ a = t === void 0 ? `export default ${i.stringify(r, null, i.ident)}` : `module.exports = ${i.stringify(r, null, i.ident)}`;
3293
+ break;
3294
+ case ".json5":
3295
+ a = n.default.stringify(r, null, i.ident);
3296
+ break;
3297
+ case ".yml":
3298
+ case ".yaml":
3299
+ a = l.dump(r, { ident: i.indent });
3300
+ break;
3301
+ default: a = i.stringify(r, null, i.ident);
3302
+ }
3303
+ return a;
3304
+ };
3305
+ function O(e, t, n) {
3306
+ var r = (0, i.default)(e), a;
3307
+ try {
3308
+ a = D(r, t, n);
3309
+ } catch (t) {
3310
+ throw t.message = "error stringifying " + e + ": " + t.message, t;
3311
+ }
3312
+ return c ? C(e, a) : s ? y(e, a) : h(e, a);
3313
+ }
3314
+ function k(e, t) {
3315
+ var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
3316
+ stringify: JSON.stringify,
3317
+ ident: 2
3318
+ }, r = (0, i.default)(e), a;
3319
+ try {
3320
+ a = D(r, t, n);
3321
+ } catch (t) {
3322
+ throw t.message = "error stringifying " + e + ": " + t.message, t;
3323
+ }
3324
+ return (c ? w : s ? b : g)(e, a);
3325
+ }
3326
+ function A(e) {
3327
+ return c ? T(e) : s ? x(e) : _(e);
3328
+ }
3329
+ function j(e) {
3330
+ return (c ? E : s ? S : v)(e);
3331
+ }
3332
+ })), g = /* @__PURE__ */ r((/* @__PURE__ */ n(((e, t) => {
3333
+ Object.defineProperty(e, "__esModule", { value: !0 }), e.default = void 0;
3334
+ var n = l(), r = m(), i = h();
3335
+ function a(e) {
3336
+ "@babel/helpers - typeof";
3337
+ return a = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
3338
+ return typeof e;
3339
+ } : function(e) {
3340
+ return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
3341
+ }, a(e);
3342
+ }
3343
+ function o(e, t) {
3344
+ if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
3345
+ }
3346
+ function s(e, t) {
3347
+ for (var n = 0; n < t.length; n++) {
3348
+ var r = t[n];
3349
+ r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, u(r.key), r);
3350
+ }
3351
+ }
3352
+ function c(e, t, n) {
3353
+ return t && s(e.prototype, t), n && s(e, n), Object.defineProperty(e, "prototype", { writable: !1 }), e;
3354
+ }
3355
+ function u(e) {
3356
+ var t = d(e, "string");
3357
+ return a(t) == "symbol" ? t : t + "";
3358
+ }
3359
+ function d(e, t) {
3360
+ if (a(e) != "object" || !e) return e;
3361
+ var n = e[Symbol.toPrimitive];
3362
+ if (n !== void 0) {
3363
+ var r = n.call(e, t || "default");
3364
+ if (a(r) != "object") return r;
3365
+ throw TypeError("@@toPrimitive must return a primitive value.");
3366
+ }
3367
+ return (t === "string" ? String : Number)(e);
3368
+ }
3369
+ var f = function() {
3370
+ return {
3371
+ loadPath: "/locales/{{lng}}/{{ns}}.json",
3372
+ addPath: "/locales/{{lng}}/{{ns}}.missing.json",
3373
+ ident: 2,
3374
+ parse: JSON.parse,
3375
+ stringify: JSON.stringify
3376
+ };
3377
+ }, p = function() {
3378
+ function e(t) {
3379
+ var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
3380
+ o(this, e), this.services = t, this.options = n, this.allOptions = r, this.type = "backend", this.init(t, n, r);
3381
+ }
3382
+ return c(e, [
3383
+ {
3384
+ key: "init",
3385
+ value: function(e) {
3386
+ var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
3387
+ this.services = e, this.options = (0, n.defaults)(t, this.options || {}, f()), this.allOptions = r, this.queuedWrites = {}, this.debouncedWrite = (0, n.debounce)(this.write, 250);
3388
+ }
3389
+ },
3390
+ {
3391
+ key: "read",
3392
+ value: function(e, t, i) {
3393
+ var a = this, o = this.options.loadPath;
3394
+ typeof this.options.loadPath == "function" && (o = this.options.loadPath(e, t));
3395
+ var s = (0, n.interpolatePath)(o, {
3396
+ lng: e,
3397
+ ns: t
3398
+ });
3399
+ if (s == null) return i(/* @__PURE__ */ Error("i18next-fs-backend: unsafe lng/ns value — refusing to build filesystem path"), !1);
3400
+ if (this.allOptions.initAsync === !1 || this.allOptions.initImmediate === !1) {
3401
+ try {
3402
+ var c = (0, r.readFileSync)(s, this.options), l = c.data, u = c.stat, d = u && u.mtime && u.mtime.getTime();
3403
+ if (this.options.expirationTime && d && d + this.options.expirationTime < Date.now()) return this.removeFile(e, t), i(/* @__PURE__ */ Error("File expired!"), !1);
3404
+ i(null, l, d);
3405
+ } catch (e) {
3406
+ i(e, !1);
3407
+ }
3408
+ return;
3409
+ }
3410
+ (0, r.readFile)(s, this.options).then(function(n) {
3411
+ var r = n.data, o = n.stat, s = o && o.mtime && o.mtime.getTime();
3412
+ if (a.options.expirationTime && s && s + a.options.expirationTime < Date.now()) return a.removeFile(e, t), i(/* @__PURE__ */ Error("File expired!"), !1);
3413
+ i(null, r, s);
3414
+ }).catch(function(e) {
3415
+ return i(e, !1);
3416
+ });
3417
+ }
3418
+ },
3419
+ {
3420
+ key: "create",
3421
+ value: function(e, t, n, r, i) {
3422
+ var a = this;
3423
+ typeof i != "function" && (i = function() {}), typeof e == "string" && (e = [e]);
3424
+ var o = e.length, s = function() {
3425
+ --o || i();
3426
+ };
3427
+ e.forEach(function(e) {
3428
+ a.queue.call(a, e, t, n, r, s);
3429
+ });
3430
+ }
3431
+ },
3432
+ {
3433
+ key: "save",
3434
+ value: function(e, t, n, r) {
3435
+ var i = this;
3436
+ r ||= function() {};
3437
+ var a = Object.keys(n), o = a.length, s = function() {
3438
+ --o || r();
3439
+ };
3440
+ a.forEach(function(r) {
3441
+ i.queue.call(i, e, t, r, n[r], s);
3442
+ });
3443
+ }
3444
+ },
3445
+ {
3446
+ key: "removeFile",
3447
+ value: function(e, t) {
3448
+ var r = this.options.addPath;
3449
+ typeof this.options.addPath == "function" && (r = this.options.addPath(e, t));
3450
+ var a = (0, n.interpolatePath)(r, {
3451
+ lng: e,
3452
+ ns: t
3453
+ });
3454
+ a != null && (0, i.removeFile)(a, this.options).then(function() {}).catch(function() {});
3455
+ }
3456
+ },
3457
+ {
3458
+ key: "write",
3459
+ value: function() {
3460
+ for (var e in this.queuedWrites) {
3461
+ var t = this.queuedWrites[e];
3462
+ if (e !== "locks") for (var n in t) this.writeFile(e, n);
3463
+ }
3464
+ }
3465
+ },
3466
+ {
3467
+ key: "writeFile",
3468
+ value: function(e, t) {
3469
+ var a = this;
3470
+ if (!(0, n.getPath)(this.queuedWrites, [
3471
+ "locks",
3472
+ e,
3473
+ t
3474
+ ])) {
3475
+ var o = this.options.addPath;
3476
+ typeof this.options.addPath == "function" && (o = this.options.addPath(e, t));
3477
+ var s = (0, n.interpolatePath)(o, {
3478
+ lng: e,
3479
+ ns: t
3480
+ });
3481
+ if (s == null) {
3482
+ (0, n.setPath)(this.queuedWrites, [e, t], []);
3483
+ return;
3484
+ }
3485
+ var c = (0, n.getPath)(this.queuedWrites, [e, t]);
3486
+ if ((0, n.setPath)(this.queuedWrites, [e, t], []), c.length) {
3487
+ (0, n.setPath)(this.queuedWrites, [
3488
+ "locks",
3489
+ e,
3490
+ t
3491
+ ], !0);
3492
+ var l = function(r) {
3493
+ var o = r.data;
3494
+ c.forEach(function(e) {
3495
+ var t = a.allOptions.keySeparator === !1 ? [e.key] : e.key.split(a.allOptions.keySeparator || ".");
3496
+ try {
3497
+ (0, n.setPath)(o, t, e.fallbackValue);
3498
+ } catch (r) {
3499
+ if (t.length < 2 || !r.message || r.message.indexOf("Cannot create property") < 0) throw r;
3500
+ (0, n.setPath)(o, [e.key], e.fallbackValue);
3501
+ }
3502
+ });
3503
+ var l = function() {
3504
+ (0, n.setPath)(a.queuedWrites, [
3505
+ "locks",
3506
+ e,
3507
+ t
3508
+ ], !1), c.forEach(function(e) {
3509
+ e.callback && e.callback();
3510
+ }), a.debouncedWrite();
3511
+ };
3512
+ (0, i.writeFile)(s, o, a.options).then(l).catch(l);
3513
+ };
3514
+ (0, r.readFile)(s, this.options).then(l).catch(function() {
3515
+ return l({ data: {} });
3516
+ });
3517
+ }
3518
+ }
3519
+ }
3520
+ },
3521
+ {
3522
+ key: "queue",
3523
+ value: function(e, t, r, i, a) {
3524
+ (0, n.pushPath)(this.queuedWrites, [e, t], {
3525
+ key: r,
3526
+ fallbackValue: i || "",
3527
+ callback: a
3528
+ }), this.debouncedWrite();
3529
+ }
3530
+ }
3531
+ ]);
3532
+ }();
3533
+ p.type = "backend", e.default = p, t.exports = e.default;
3534
+ })))(), 1), _ = `${o.dirname(import.meta.url)}/locales/{{lng}}/{{ns}}.json`.replace("file://", "");
3535
+ function v(n) {
3536
+ if (!t.isInitialized && c()) {
3537
+ let r = new i(null, { order: [
3538
+ "header",
3539
+ "query",
3540
+ "cookie"
3541
+ ] });
3542
+ t.use(g.default).use(r).init({
3543
+ ...e,
3544
+ ns: ["translation"],
3545
+ backend: { loadPath: _ }
3546
+ }), t.on("loaded", () => {
3547
+ n?.(t);
3548
+ });
3549
+ }
3550
+ return t;
3551
+ }
3552
+ //#endregion
3553
+ export { v as default, v as initializeI18n };