@wix/cli-app 1.1.135 → 1.1.136

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 (65) hide show
  1. package/build/{AddPermissionCommand-J747FJOD.js → AddPermissionCommand-PY4AHB6R.js} +2 -2
  2. package/build/{DevCommand-WHO2FPZA.js → DevCommand-ISDC4MHV.js} +10 -10
  3. package/build/{GenerateCommand-G7GZAQRU.js → GenerateCommand-ODFS3XEP.js} +24 -90
  4. package/build/GenerateCommand-ODFS3XEP.js.map +1 -0
  5. package/build/{LogsCommand-UYRXNYT6.js → LogsCommand-NWGI7M3J.js} +3 -3
  6. package/build/PreviewCommand-IBKLT7L6.js +19 -0
  7. package/build/ReleaseCommand-3R7L4L4Q.js +23 -0
  8. package/build/{ServeCommand-P52GP36W.js → ServeCommand-BKVUQU6Z.js} +3 -3
  9. package/build/{build-QHEECRN2.js → build-WIGZJZ2F.js} +6 -6
  10. package/build/{chunk-RPHZ4OP3.js → chunk-4NPCZKRM.js} +3 -3
  11. package/build/{chunk-QVI67Q6A.js → chunk-7V53BNUW.js} +2 -2
  12. package/build/{chunk-W6OUY5DV.js → chunk-ARZCCDRS.js} +6 -6
  13. package/build/{chunk-IPSCL6EX.js → chunk-B22AJKHI.js} +4 -4
  14. package/build/{chunk-CXBQHWIM.js → chunk-DLEIX5QO.js} +2 -2
  15. package/build/{chunk-4GVN5OSZ.js → chunk-EGR4TFTB.js} +353 -192
  16. package/build/{chunk-4GVN5OSZ.js.map → chunk-EGR4TFTB.js.map} +1 -1
  17. package/build/{chunk-MFPD7G6B.js → chunk-I4WO73WU.js} +2 -2
  18. package/build/chunk-KLJX222C.js +4368 -0
  19. package/build/chunk-KLJX222C.js.map +1 -0
  20. package/build/{chunk-KJXVS3IU.js → chunk-LB4VGXAD.js} +4 -4
  21. package/build/{chunk-5I6K4LMZ.js → chunk-NPN5MDTH.js} +21 -12
  22. package/build/{chunk-5I6K4LMZ.js.map → chunk-NPN5MDTH.js.map} +1 -1
  23. package/build/{chunk-HBEVHWYL.js → chunk-QOSYJ7VZ.js} +2 -2
  24. package/build/{chunk-Z6H5SRVH.js → chunk-RWOFL3ZS.js} +2 -2
  25. package/build/{chunk-SMEOB2J6.js → chunk-UPH67AUZ.js} +6 -6
  26. package/build/{chunk-I2JVZXWM.js → chunk-VKSE3NXG.js} +2 -2
  27. package/build/{chunk-L6XIG76V.js → chunk-WRTYT6JY.js} +2 -2
  28. package/build/{chunk-HPHTU6UB.js → chunk-YDPB2XX7.js} +3 -3
  29. package/build/{chunk-3FSEHEJA.js → chunk-ZFPAKKA2.js} +2 -2
  30. package/build/index.js +23 -23
  31. package/build/platform-sdk/editor.js +4 -4
  32. package/build/platform-sdk/editor.js.map +1 -1
  33. package/build/{preview-3ABHWSP4.js → preview-ROLBQIJC.js} +12 -12
  34. package/build/{release-DZGPFN7M.js → release-FJFBIINL.js} +14 -14
  35. package/build/{render-command-TDM7CFXE.js → render-command-KOCRZBFR.js} +5 -5
  36. package/package.json +5 -5
  37. package/build/GenerateCommand-G7GZAQRU.js.map +0 -1
  38. package/build/PreviewCommand-AK7QEFIM.js +0 -19
  39. package/build/ReleaseCommand-DK24QEHP.js +0 -23
  40. package/build/chunk-V4VNLYCR.js +0 -9388
  41. package/build/chunk-V4VNLYCR.js.map +0 -1
  42. /package/build/{AddPermissionCommand-J747FJOD.js.map → AddPermissionCommand-PY4AHB6R.js.map} +0 -0
  43. /package/build/{DevCommand-WHO2FPZA.js.map → DevCommand-ISDC4MHV.js.map} +0 -0
  44. /package/build/{LogsCommand-UYRXNYT6.js.map → LogsCommand-NWGI7M3J.js.map} +0 -0
  45. /package/build/{PreviewCommand-AK7QEFIM.js.map → PreviewCommand-IBKLT7L6.js.map} +0 -0
  46. /package/build/{ReleaseCommand-DK24QEHP.js.map → ReleaseCommand-3R7L4L4Q.js.map} +0 -0
  47. /package/build/{ServeCommand-P52GP36W.js.map → ServeCommand-BKVUQU6Z.js.map} +0 -0
  48. /package/build/{build-QHEECRN2.js.map → build-WIGZJZ2F.js.map} +0 -0
  49. /package/build/{chunk-RPHZ4OP3.js.map → chunk-4NPCZKRM.js.map} +0 -0
  50. /package/build/{chunk-QVI67Q6A.js.map → chunk-7V53BNUW.js.map} +0 -0
  51. /package/build/{chunk-W6OUY5DV.js.map → chunk-ARZCCDRS.js.map} +0 -0
  52. /package/build/{chunk-IPSCL6EX.js.map → chunk-B22AJKHI.js.map} +0 -0
  53. /package/build/{chunk-CXBQHWIM.js.map → chunk-DLEIX5QO.js.map} +0 -0
  54. /package/build/{chunk-MFPD7G6B.js.map → chunk-I4WO73WU.js.map} +0 -0
  55. /package/build/{chunk-KJXVS3IU.js.map → chunk-LB4VGXAD.js.map} +0 -0
  56. /package/build/{chunk-HBEVHWYL.js.map → chunk-QOSYJ7VZ.js.map} +0 -0
  57. /package/build/{chunk-Z6H5SRVH.js.map → chunk-RWOFL3ZS.js.map} +0 -0
  58. /package/build/{chunk-SMEOB2J6.js.map → chunk-UPH67AUZ.js.map} +0 -0
  59. /package/build/{chunk-I2JVZXWM.js.map → chunk-VKSE3NXG.js.map} +0 -0
  60. /package/build/{chunk-L6XIG76V.js.map → chunk-WRTYT6JY.js.map} +0 -0
  61. /package/build/{chunk-HPHTU6UB.js.map → chunk-YDPB2XX7.js.map} +0 -0
  62. /package/build/{chunk-3FSEHEJA.js.map → chunk-ZFPAKKA2.js.map} +0 -0
  63. /package/build/{preview-3ABHWSP4.js.map → preview-ROLBQIJC.js.map} +0 -0
  64. /package/build/{release-DZGPFN7M.js.map → release-FJFBIINL.js.map} +0 -0
  65. /package/build/{render-command-TDM7CFXE.js.map → render-command-KOCRZBFR.js.map} +0 -0
@@ -0,0 +1,4368 @@
1
+ import { createRequire as _createRequire } from 'node:module';
2
+ const require = _createRequire(import.meta.url);
3
+ import {
4
+ CliError,
5
+ CliErrorCode,
6
+ DevCenterComponent,
7
+ external_exports,
8
+ globby,
9
+ outputDir,
10
+ outputFile,
11
+ pathExists,
12
+ readJson,
13
+ readPackageJson,
14
+ require_Symbol,
15
+ require_isSymbol,
16
+ require_lib,
17
+ require_react,
18
+ useProjectModel,
19
+ writePackageJson
20
+ } from "./chunk-EGR4TFTB.js";
21
+ import {
22
+ __commonJS,
23
+ __require,
24
+ __toESM,
25
+ init_esm_shims
26
+ } from "./chunk-4EFJZ3GQ.js";
27
+
28
+ // ../../node_modules/lodash/_arrayReduce.js
29
+ var require_arrayReduce = __commonJS({
30
+ "../../node_modules/lodash/_arrayReduce.js"(exports, module) {
31
+ "use strict";
32
+ init_esm_shims();
33
+ function arrayReduce(array, iteratee, accumulator, initAccum) {
34
+ var index = -1, length = array == null ? 0 : array.length;
35
+ if (initAccum && length) {
36
+ accumulator = array[++index];
37
+ }
38
+ while (++index < length) {
39
+ accumulator = iteratee(accumulator, array[index], index, array);
40
+ }
41
+ return accumulator;
42
+ }
43
+ module.exports = arrayReduce;
44
+ }
45
+ });
46
+
47
+ // ../../node_modules/lodash/_basePropertyOf.js
48
+ var require_basePropertyOf = __commonJS({
49
+ "../../node_modules/lodash/_basePropertyOf.js"(exports, module) {
50
+ "use strict";
51
+ init_esm_shims();
52
+ function basePropertyOf(object) {
53
+ return function(key) {
54
+ return object == null ? void 0 : object[key];
55
+ };
56
+ }
57
+ module.exports = basePropertyOf;
58
+ }
59
+ });
60
+
61
+ // ../../node_modules/lodash/_deburrLetter.js
62
+ var require_deburrLetter = __commonJS({
63
+ "../../node_modules/lodash/_deburrLetter.js"(exports, module) {
64
+ "use strict";
65
+ init_esm_shims();
66
+ var basePropertyOf = require_basePropertyOf();
67
+ var deburredLetters = {
68
+ // Latin-1 Supplement block.
69
+ "\xC0": "A",
70
+ "\xC1": "A",
71
+ "\xC2": "A",
72
+ "\xC3": "A",
73
+ "\xC4": "A",
74
+ "\xC5": "A",
75
+ "\xE0": "a",
76
+ "\xE1": "a",
77
+ "\xE2": "a",
78
+ "\xE3": "a",
79
+ "\xE4": "a",
80
+ "\xE5": "a",
81
+ "\xC7": "C",
82
+ "\xE7": "c",
83
+ "\xD0": "D",
84
+ "\xF0": "d",
85
+ "\xC8": "E",
86
+ "\xC9": "E",
87
+ "\xCA": "E",
88
+ "\xCB": "E",
89
+ "\xE8": "e",
90
+ "\xE9": "e",
91
+ "\xEA": "e",
92
+ "\xEB": "e",
93
+ "\xCC": "I",
94
+ "\xCD": "I",
95
+ "\xCE": "I",
96
+ "\xCF": "I",
97
+ "\xEC": "i",
98
+ "\xED": "i",
99
+ "\xEE": "i",
100
+ "\xEF": "i",
101
+ "\xD1": "N",
102
+ "\xF1": "n",
103
+ "\xD2": "O",
104
+ "\xD3": "O",
105
+ "\xD4": "O",
106
+ "\xD5": "O",
107
+ "\xD6": "O",
108
+ "\xD8": "O",
109
+ "\xF2": "o",
110
+ "\xF3": "o",
111
+ "\xF4": "o",
112
+ "\xF5": "o",
113
+ "\xF6": "o",
114
+ "\xF8": "o",
115
+ "\xD9": "U",
116
+ "\xDA": "U",
117
+ "\xDB": "U",
118
+ "\xDC": "U",
119
+ "\xF9": "u",
120
+ "\xFA": "u",
121
+ "\xFB": "u",
122
+ "\xFC": "u",
123
+ "\xDD": "Y",
124
+ "\xFD": "y",
125
+ "\xFF": "y",
126
+ "\xC6": "Ae",
127
+ "\xE6": "ae",
128
+ "\xDE": "Th",
129
+ "\xFE": "th",
130
+ "\xDF": "ss",
131
+ // Latin Extended-A block.
132
+ "\u0100": "A",
133
+ "\u0102": "A",
134
+ "\u0104": "A",
135
+ "\u0101": "a",
136
+ "\u0103": "a",
137
+ "\u0105": "a",
138
+ "\u0106": "C",
139
+ "\u0108": "C",
140
+ "\u010A": "C",
141
+ "\u010C": "C",
142
+ "\u0107": "c",
143
+ "\u0109": "c",
144
+ "\u010B": "c",
145
+ "\u010D": "c",
146
+ "\u010E": "D",
147
+ "\u0110": "D",
148
+ "\u010F": "d",
149
+ "\u0111": "d",
150
+ "\u0112": "E",
151
+ "\u0114": "E",
152
+ "\u0116": "E",
153
+ "\u0118": "E",
154
+ "\u011A": "E",
155
+ "\u0113": "e",
156
+ "\u0115": "e",
157
+ "\u0117": "e",
158
+ "\u0119": "e",
159
+ "\u011B": "e",
160
+ "\u011C": "G",
161
+ "\u011E": "G",
162
+ "\u0120": "G",
163
+ "\u0122": "G",
164
+ "\u011D": "g",
165
+ "\u011F": "g",
166
+ "\u0121": "g",
167
+ "\u0123": "g",
168
+ "\u0124": "H",
169
+ "\u0126": "H",
170
+ "\u0125": "h",
171
+ "\u0127": "h",
172
+ "\u0128": "I",
173
+ "\u012A": "I",
174
+ "\u012C": "I",
175
+ "\u012E": "I",
176
+ "\u0130": "I",
177
+ "\u0129": "i",
178
+ "\u012B": "i",
179
+ "\u012D": "i",
180
+ "\u012F": "i",
181
+ "\u0131": "i",
182
+ "\u0134": "J",
183
+ "\u0135": "j",
184
+ "\u0136": "K",
185
+ "\u0137": "k",
186
+ "\u0138": "k",
187
+ "\u0139": "L",
188
+ "\u013B": "L",
189
+ "\u013D": "L",
190
+ "\u013F": "L",
191
+ "\u0141": "L",
192
+ "\u013A": "l",
193
+ "\u013C": "l",
194
+ "\u013E": "l",
195
+ "\u0140": "l",
196
+ "\u0142": "l",
197
+ "\u0143": "N",
198
+ "\u0145": "N",
199
+ "\u0147": "N",
200
+ "\u014A": "N",
201
+ "\u0144": "n",
202
+ "\u0146": "n",
203
+ "\u0148": "n",
204
+ "\u014B": "n",
205
+ "\u014C": "O",
206
+ "\u014E": "O",
207
+ "\u0150": "O",
208
+ "\u014D": "o",
209
+ "\u014F": "o",
210
+ "\u0151": "o",
211
+ "\u0154": "R",
212
+ "\u0156": "R",
213
+ "\u0158": "R",
214
+ "\u0155": "r",
215
+ "\u0157": "r",
216
+ "\u0159": "r",
217
+ "\u015A": "S",
218
+ "\u015C": "S",
219
+ "\u015E": "S",
220
+ "\u0160": "S",
221
+ "\u015B": "s",
222
+ "\u015D": "s",
223
+ "\u015F": "s",
224
+ "\u0161": "s",
225
+ "\u0162": "T",
226
+ "\u0164": "T",
227
+ "\u0166": "T",
228
+ "\u0163": "t",
229
+ "\u0165": "t",
230
+ "\u0167": "t",
231
+ "\u0168": "U",
232
+ "\u016A": "U",
233
+ "\u016C": "U",
234
+ "\u016E": "U",
235
+ "\u0170": "U",
236
+ "\u0172": "U",
237
+ "\u0169": "u",
238
+ "\u016B": "u",
239
+ "\u016D": "u",
240
+ "\u016F": "u",
241
+ "\u0171": "u",
242
+ "\u0173": "u",
243
+ "\u0174": "W",
244
+ "\u0175": "w",
245
+ "\u0176": "Y",
246
+ "\u0177": "y",
247
+ "\u0178": "Y",
248
+ "\u0179": "Z",
249
+ "\u017B": "Z",
250
+ "\u017D": "Z",
251
+ "\u017A": "z",
252
+ "\u017C": "z",
253
+ "\u017E": "z",
254
+ "\u0132": "IJ",
255
+ "\u0133": "ij",
256
+ "\u0152": "Oe",
257
+ "\u0153": "oe",
258
+ "\u0149": "'n",
259
+ "\u017F": "s"
260
+ };
261
+ var deburrLetter = basePropertyOf(deburredLetters);
262
+ module.exports = deburrLetter;
263
+ }
264
+ });
265
+
266
+ // ../../node_modules/lodash/_arrayMap.js
267
+ var require_arrayMap = __commonJS({
268
+ "../../node_modules/lodash/_arrayMap.js"(exports, module) {
269
+ "use strict";
270
+ init_esm_shims();
271
+ function arrayMap(array, iteratee) {
272
+ var index = -1, length = array == null ? 0 : array.length, result = Array(length);
273
+ while (++index < length) {
274
+ result[index] = iteratee(array[index], index, array);
275
+ }
276
+ return result;
277
+ }
278
+ module.exports = arrayMap;
279
+ }
280
+ });
281
+
282
+ // ../../node_modules/lodash/isArray.js
283
+ var require_isArray = __commonJS({
284
+ "../../node_modules/lodash/isArray.js"(exports, module) {
285
+ "use strict";
286
+ init_esm_shims();
287
+ var isArray = Array.isArray;
288
+ module.exports = isArray;
289
+ }
290
+ });
291
+
292
+ // ../../node_modules/lodash/_baseToString.js
293
+ var require_baseToString = __commonJS({
294
+ "../../node_modules/lodash/_baseToString.js"(exports, module) {
295
+ "use strict";
296
+ init_esm_shims();
297
+ var Symbol = require_Symbol();
298
+ var arrayMap = require_arrayMap();
299
+ var isArray = require_isArray();
300
+ var isSymbol = require_isSymbol();
301
+ var INFINITY = 1 / 0;
302
+ var symbolProto = Symbol ? Symbol.prototype : void 0;
303
+ var symbolToString = symbolProto ? symbolProto.toString : void 0;
304
+ function baseToString(value) {
305
+ if (typeof value == "string") {
306
+ return value;
307
+ }
308
+ if (isArray(value)) {
309
+ return arrayMap(value, baseToString) + "";
310
+ }
311
+ if (isSymbol(value)) {
312
+ return symbolToString ? symbolToString.call(value) : "";
313
+ }
314
+ var result = value + "";
315
+ return result == "0" && 1 / value == -INFINITY ? "-0" : result;
316
+ }
317
+ module.exports = baseToString;
318
+ }
319
+ });
320
+
321
+ // ../../node_modules/lodash/toString.js
322
+ var require_toString = __commonJS({
323
+ "../../node_modules/lodash/toString.js"(exports, module) {
324
+ "use strict";
325
+ init_esm_shims();
326
+ var baseToString = require_baseToString();
327
+ function toString(value) {
328
+ return value == null ? "" : baseToString(value);
329
+ }
330
+ module.exports = toString;
331
+ }
332
+ });
333
+
334
+ // ../../node_modules/lodash/deburr.js
335
+ var require_deburr = __commonJS({
336
+ "../../node_modules/lodash/deburr.js"(exports, module) {
337
+ "use strict";
338
+ init_esm_shims();
339
+ var deburrLetter = require_deburrLetter();
340
+ var toString = require_toString();
341
+ var reLatin = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g;
342
+ var rsComboMarksRange = "\\u0300-\\u036f";
343
+ var reComboHalfMarksRange = "\\ufe20-\\ufe2f";
344
+ var rsComboSymbolsRange = "\\u20d0-\\u20ff";
345
+ var rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange;
346
+ var rsCombo = "[" + rsComboRange + "]";
347
+ var reComboMark = RegExp(rsCombo, "g");
348
+ function deburr(string) {
349
+ string = toString(string);
350
+ return string && string.replace(reLatin, deburrLetter).replace(reComboMark, "");
351
+ }
352
+ module.exports = deburr;
353
+ }
354
+ });
355
+
356
+ // ../../node_modules/lodash/_asciiWords.js
357
+ var require_asciiWords = __commonJS({
358
+ "../../node_modules/lodash/_asciiWords.js"(exports, module) {
359
+ "use strict";
360
+ init_esm_shims();
361
+ var reAsciiWord = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
362
+ function asciiWords(string) {
363
+ return string.match(reAsciiWord) || [];
364
+ }
365
+ module.exports = asciiWords;
366
+ }
367
+ });
368
+
369
+ // ../../node_modules/lodash/_hasUnicodeWord.js
370
+ var require_hasUnicodeWord = __commonJS({
371
+ "../../node_modules/lodash/_hasUnicodeWord.js"(exports, module) {
372
+ "use strict";
373
+ init_esm_shims();
374
+ var reHasUnicodeWord = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;
375
+ function hasUnicodeWord(string) {
376
+ return reHasUnicodeWord.test(string);
377
+ }
378
+ module.exports = hasUnicodeWord;
379
+ }
380
+ });
381
+
382
+ // ../../node_modules/lodash/_unicodeWords.js
383
+ var require_unicodeWords = __commonJS({
384
+ "../../node_modules/lodash/_unicodeWords.js"(exports, module) {
385
+ "use strict";
386
+ init_esm_shims();
387
+ var rsAstralRange = "\\ud800-\\udfff";
388
+ var rsComboMarksRange = "\\u0300-\\u036f";
389
+ var reComboHalfMarksRange = "\\ufe20-\\ufe2f";
390
+ var rsComboSymbolsRange = "\\u20d0-\\u20ff";
391
+ var rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange;
392
+ var rsDingbatRange = "\\u2700-\\u27bf";
393
+ var rsLowerRange = "a-z\\xdf-\\xf6\\xf8-\\xff";
394
+ var rsMathOpRange = "\\xac\\xb1\\xd7\\xf7";
395
+ var rsNonCharRange = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf";
396
+ var rsPunctuationRange = "\\u2000-\\u206f";
397
+ var rsSpaceRange = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000";
398
+ var rsUpperRange = "A-Z\\xc0-\\xd6\\xd8-\\xde";
399
+ var rsVarRange = "\\ufe0e\\ufe0f";
400
+ var rsBreakRange = rsMathOpRange + rsNonCharRange + rsPunctuationRange + rsSpaceRange;
401
+ var rsApos = "['\u2019]";
402
+ var rsBreak = "[" + rsBreakRange + "]";
403
+ var rsCombo = "[" + rsComboRange + "]";
404
+ var rsDigits = "\\d+";
405
+ var rsDingbat = "[" + rsDingbatRange + "]";
406
+ var rsLower = "[" + rsLowerRange + "]";
407
+ var rsMisc = "[^" + rsAstralRange + rsBreakRange + rsDigits + rsDingbatRange + rsLowerRange + rsUpperRange + "]";
408
+ var rsFitz = "\\ud83c[\\udffb-\\udfff]";
409
+ var rsModifier = "(?:" + rsCombo + "|" + rsFitz + ")";
410
+ var rsNonAstral = "[^" + rsAstralRange + "]";
411
+ var rsRegional = "(?:\\ud83c[\\udde6-\\uddff]){2}";
412
+ var rsSurrPair = "[\\ud800-\\udbff][\\udc00-\\udfff]";
413
+ var rsUpper = "[" + rsUpperRange + "]";
414
+ var rsZWJ = "\\u200d";
415
+ var rsMiscLower = "(?:" + rsLower + "|" + rsMisc + ")";
416
+ var rsMiscUpper = "(?:" + rsUpper + "|" + rsMisc + ")";
417
+ var rsOptContrLower = "(?:" + rsApos + "(?:d|ll|m|re|s|t|ve))?";
418
+ var rsOptContrUpper = "(?:" + rsApos + "(?:D|LL|M|RE|S|T|VE))?";
419
+ var reOptMod = rsModifier + "?";
420
+ var rsOptVar = "[" + rsVarRange + "]?";
421
+ var rsOptJoin = "(?:" + rsZWJ + "(?:" + [rsNonAstral, rsRegional, rsSurrPair].join("|") + ")" + rsOptVar + reOptMod + ")*";
422
+ var rsOrdLower = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])";
423
+ var rsOrdUpper = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])";
424
+ var rsSeq = rsOptVar + reOptMod + rsOptJoin;
425
+ var rsEmoji = "(?:" + [rsDingbat, rsRegional, rsSurrPair].join("|") + ")" + rsSeq;
426
+ var reUnicodeWord = RegExp([
427
+ rsUpper + "?" + rsLower + "+" + rsOptContrLower + "(?=" + [rsBreak, rsUpper, "$"].join("|") + ")",
428
+ rsMiscUpper + "+" + rsOptContrUpper + "(?=" + [rsBreak, rsUpper + rsMiscLower, "$"].join("|") + ")",
429
+ rsUpper + "?" + rsMiscLower + "+" + rsOptContrLower,
430
+ rsUpper + "+" + rsOptContrUpper,
431
+ rsOrdUpper,
432
+ rsOrdLower,
433
+ rsDigits,
434
+ rsEmoji
435
+ ].join("|"), "g");
436
+ function unicodeWords(string) {
437
+ return string.match(reUnicodeWord) || [];
438
+ }
439
+ module.exports = unicodeWords;
440
+ }
441
+ });
442
+
443
+ // ../../node_modules/lodash/words.js
444
+ var require_words = __commonJS({
445
+ "../../node_modules/lodash/words.js"(exports, module) {
446
+ "use strict";
447
+ init_esm_shims();
448
+ var asciiWords = require_asciiWords();
449
+ var hasUnicodeWord = require_hasUnicodeWord();
450
+ var toString = require_toString();
451
+ var unicodeWords = require_unicodeWords();
452
+ function words(string, pattern, guard) {
453
+ string = toString(string);
454
+ pattern = guard ? void 0 : pattern;
455
+ if (pattern === void 0) {
456
+ return hasUnicodeWord(string) ? unicodeWords(string) : asciiWords(string);
457
+ }
458
+ return string.match(pattern) || [];
459
+ }
460
+ module.exports = words;
461
+ }
462
+ });
463
+
464
+ // ../../node_modules/lodash/_createCompounder.js
465
+ var require_createCompounder = __commonJS({
466
+ "../../node_modules/lodash/_createCompounder.js"(exports, module) {
467
+ "use strict";
468
+ init_esm_shims();
469
+ var arrayReduce = require_arrayReduce();
470
+ var deburr = require_deburr();
471
+ var words = require_words();
472
+ var rsApos = "['\u2019]";
473
+ var reApos = RegExp(rsApos, "g");
474
+ function createCompounder(callback) {
475
+ return function(string) {
476
+ return arrayReduce(words(deburr(string).replace(reApos, "")), callback, "");
477
+ };
478
+ }
479
+ module.exports = createCompounder;
480
+ }
481
+ });
482
+
483
+ // ../../node_modules/lodash/kebabCase.js
484
+ var require_kebabCase = __commonJS({
485
+ "../../node_modules/lodash/kebabCase.js"(exports, module) {
486
+ "use strict";
487
+ init_esm_shims();
488
+ var createCompounder = require_createCompounder();
489
+ var kebabCase = createCompounder(function(result, word, index) {
490
+ return result + (index ? "-" : "") + word.toLowerCase();
491
+ });
492
+ module.exports = kebabCase;
493
+ }
494
+ });
495
+
496
+ // ../../node_modules/ejs/lib/utils.js
497
+ var require_utils = __commonJS({
498
+ "../../node_modules/ejs/lib/utils.js"(exports) {
499
+ "use strict";
500
+ init_esm_shims();
501
+ var regExpChars = /[|\\{}()[\]^$+*?.]/g;
502
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
503
+ var hasOwn = function(obj, key) {
504
+ return hasOwnProperty.apply(obj, [key]);
505
+ };
506
+ exports.escapeRegExpChars = function(string) {
507
+ if (!string) {
508
+ return "";
509
+ }
510
+ return String(string).replace(regExpChars, "\\$&");
511
+ };
512
+ var _ENCODE_HTML_RULES = {
513
+ "&": "&amp;",
514
+ "<": "&lt;",
515
+ ">": "&gt;",
516
+ '"': "&#34;",
517
+ "'": "&#39;"
518
+ };
519
+ var _MATCH_HTML = /[&<>'"]/g;
520
+ function encode_char(c) {
521
+ return _ENCODE_HTML_RULES[c] || c;
522
+ }
523
+ var escapeFuncStr = `var _ENCODE_HTML_RULES = {
524
+ "&": "&amp;"
525
+ , "<": "&lt;"
526
+ , ">": "&gt;"
527
+ , '"': "&#34;"
528
+ , "'": "&#39;"
529
+ }
530
+ , _MATCH_HTML = /[&<>'"]/g;
531
+ function encode_char(c) {
532
+ return _ENCODE_HTML_RULES[c] || c;
533
+ };
534
+ `;
535
+ exports.escapeXML = function(markup) {
536
+ return markup == void 0 ? "" : String(markup).replace(_MATCH_HTML, encode_char);
537
+ };
538
+ function escapeXMLToString() {
539
+ return Function.prototype.toString.call(this) + ";\n" + escapeFuncStr;
540
+ }
541
+ try {
542
+ if (typeof Object.defineProperty === "function") {
543
+ Object.defineProperty(exports.escapeXML, "toString", { value: escapeXMLToString });
544
+ } else {
545
+ exports.escapeXML.toString = escapeXMLToString;
546
+ }
547
+ } catch (err) {
548
+ console.warn("Unable to set escapeXML.toString (is the Function prototype frozen?)");
549
+ }
550
+ exports.shallowCopy = function(to, from) {
551
+ from = from || {};
552
+ if (to !== null && to !== void 0) {
553
+ for (var p in from) {
554
+ if (!hasOwn(from, p)) {
555
+ continue;
556
+ }
557
+ if (p === "__proto__" || p === "constructor") {
558
+ continue;
559
+ }
560
+ to[p] = from[p];
561
+ }
562
+ }
563
+ return to;
564
+ };
565
+ exports.shallowCopyFromList = function(to, from, list) {
566
+ list = list || [];
567
+ from = from || {};
568
+ if (to !== null && to !== void 0) {
569
+ for (var i = 0; i < list.length; i++) {
570
+ var p = list[i];
571
+ if (typeof from[p] != "undefined") {
572
+ if (!hasOwn(from, p)) {
573
+ continue;
574
+ }
575
+ if (p === "__proto__" || p === "constructor") {
576
+ continue;
577
+ }
578
+ to[p] = from[p];
579
+ }
580
+ }
581
+ }
582
+ return to;
583
+ };
584
+ exports.cache = {
585
+ _data: {},
586
+ set: function(key, val) {
587
+ this._data[key] = val;
588
+ },
589
+ get: function(key) {
590
+ return this._data[key];
591
+ },
592
+ remove: function(key) {
593
+ delete this._data[key];
594
+ },
595
+ reset: function() {
596
+ this._data = {};
597
+ }
598
+ };
599
+ exports.hyphenToCamel = function(str) {
600
+ return str.replace(/-[a-z]/g, function(match) {
601
+ return match[1].toUpperCase();
602
+ });
603
+ };
604
+ exports.createNullProtoObjWherePossible = function() {
605
+ if (typeof Object.create == "function") {
606
+ return function() {
607
+ return /* @__PURE__ */ Object.create(null);
608
+ };
609
+ }
610
+ if (!({ __proto__: null } instanceof Object)) {
611
+ return function() {
612
+ return { __proto__: null };
613
+ };
614
+ }
615
+ return function() {
616
+ return {};
617
+ };
618
+ }();
619
+ exports.hasOwnOnlyObject = function(obj) {
620
+ var o = exports.createNullProtoObjWherePossible();
621
+ for (var p in obj) {
622
+ if (hasOwn(obj, p)) {
623
+ o[p] = obj[p];
624
+ }
625
+ }
626
+ return o;
627
+ };
628
+ }
629
+ });
630
+
631
+ // ../../node_modules/ejs/package.json
632
+ var require_package = __commonJS({
633
+ "../../node_modules/ejs/package.json"(exports, module) {
634
+ module.exports = {
635
+ name: "ejs",
636
+ description: "Embedded JavaScript templates",
637
+ keywords: [
638
+ "template",
639
+ "engine",
640
+ "ejs"
641
+ ],
642
+ version: "3.1.10",
643
+ author: "Matthew Eernisse <mde@fleegix.org> (http://fleegix.org)",
644
+ license: "Apache-2.0",
645
+ bin: {
646
+ ejs: "./bin/cli.js"
647
+ },
648
+ main: "./lib/ejs.js",
649
+ jsdelivr: "ejs.min.js",
650
+ unpkg: "ejs.min.js",
651
+ repository: {
652
+ type: "git",
653
+ url: "git://github.com/mde/ejs.git"
654
+ },
655
+ bugs: "https://github.com/mde/ejs/issues",
656
+ homepage: "https://github.com/mde/ejs",
657
+ dependencies: {
658
+ jake: "^10.8.5"
659
+ },
660
+ devDependencies: {
661
+ browserify: "^16.5.1",
662
+ eslint: "^6.8.0",
663
+ "git-directory-deploy": "^1.5.1",
664
+ jsdoc: "^4.0.2",
665
+ "lru-cache": "^4.0.1",
666
+ mocha: "^10.2.0",
667
+ "uglify-js": "^3.3.16"
668
+ },
669
+ engines: {
670
+ node: ">=0.10.0"
671
+ },
672
+ scripts: {
673
+ test: "npx jake test"
674
+ }
675
+ };
676
+ }
677
+ });
678
+
679
+ // ../../node_modules/ejs/lib/ejs.js
680
+ var require_ejs = __commonJS({
681
+ "../../node_modules/ejs/lib/ejs.js"(exports) {
682
+ "use strict";
683
+ init_esm_shims();
684
+ var fs = __require("fs");
685
+ var path = __require("path");
686
+ var utils = require_utils();
687
+ var scopeOptionWarned = false;
688
+ var _VERSION_STRING = require_package().version;
689
+ var _DEFAULT_OPEN_DELIMITER = "<";
690
+ var _DEFAULT_CLOSE_DELIMITER = ">";
691
+ var _DEFAULT_DELIMITER = "%";
692
+ var _DEFAULT_LOCALS_NAME = "locals";
693
+ var _NAME = "ejs";
694
+ var _REGEX_STRING = "(<%%|%%>|<%=|<%-|<%_|<%#|<%|%>|-%>|_%>)";
695
+ var _OPTS_PASSABLE_WITH_DATA = [
696
+ "delimiter",
697
+ "scope",
698
+ "context",
699
+ "debug",
700
+ "compileDebug",
701
+ "client",
702
+ "_with",
703
+ "rmWhitespace",
704
+ "strict",
705
+ "filename",
706
+ "async"
707
+ ];
708
+ var _OPTS_PASSABLE_WITH_DATA_EXPRESS = _OPTS_PASSABLE_WITH_DATA.concat("cache");
709
+ var _BOM = /^\uFEFF/;
710
+ var _JS_IDENTIFIER = /^[a-zA-Z_$][0-9a-zA-Z_$]*$/;
711
+ exports.cache = utils.cache;
712
+ exports.fileLoader = fs.readFileSync;
713
+ exports.localsName = _DEFAULT_LOCALS_NAME;
714
+ exports.promiseImpl = new Function("return this;")().Promise;
715
+ exports.resolveInclude = function(name, filename, isDir) {
716
+ var dirname2 = path.dirname;
717
+ var extname2 = path.extname;
718
+ var resolve3 = path.resolve;
719
+ var includePath = resolve3(isDir ? filename : dirname2(filename), name);
720
+ var ext = extname2(name);
721
+ if (!ext) {
722
+ includePath += ".ejs";
723
+ }
724
+ return includePath;
725
+ };
726
+ function resolvePaths(name, paths) {
727
+ var filePath;
728
+ if (paths.some(function(v) {
729
+ filePath = exports.resolveInclude(name, v, true);
730
+ return fs.existsSync(filePath);
731
+ })) {
732
+ return filePath;
733
+ }
734
+ }
735
+ function getIncludePath(path2, options) {
736
+ var includePath;
737
+ var filePath;
738
+ var views = options.views;
739
+ var match = /^[A-Za-z]+:\\|^\//.exec(path2);
740
+ if (match && match.length) {
741
+ path2 = path2.replace(/^\/*/, "");
742
+ if (Array.isArray(options.root)) {
743
+ includePath = resolvePaths(path2, options.root);
744
+ } else {
745
+ includePath = exports.resolveInclude(path2, options.root || "/", true);
746
+ }
747
+ } else {
748
+ if (options.filename) {
749
+ filePath = exports.resolveInclude(path2, options.filename);
750
+ if (fs.existsSync(filePath)) {
751
+ includePath = filePath;
752
+ }
753
+ }
754
+ if (!includePath && Array.isArray(views)) {
755
+ includePath = resolvePaths(path2, views);
756
+ }
757
+ if (!includePath && typeof options.includer !== "function") {
758
+ throw new Error('Could not find the include file "' + options.escapeFunction(path2) + '"');
759
+ }
760
+ }
761
+ return includePath;
762
+ }
763
+ function handleCache(options, template) {
764
+ var func;
765
+ var filename = options.filename;
766
+ var hasTemplate = arguments.length > 1;
767
+ if (options.cache) {
768
+ if (!filename) {
769
+ throw new Error("cache option requires a filename");
770
+ }
771
+ func = exports.cache.get(filename);
772
+ if (func) {
773
+ return func;
774
+ }
775
+ if (!hasTemplate) {
776
+ template = fileLoader(filename).toString().replace(_BOM, "");
777
+ }
778
+ } else if (!hasTemplate) {
779
+ if (!filename) {
780
+ throw new Error("Internal EJS error: no file name or template provided");
781
+ }
782
+ template = fileLoader(filename).toString().replace(_BOM, "");
783
+ }
784
+ func = exports.compile(template, options);
785
+ if (options.cache) {
786
+ exports.cache.set(filename, func);
787
+ }
788
+ return func;
789
+ }
790
+ function tryHandleCache(options, data, cb) {
791
+ var result;
792
+ if (!cb) {
793
+ if (typeof exports.promiseImpl == "function") {
794
+ return new exports.promiseImpl(function(resolve3, reject) {
795
+ try {
796
+ result = handleCache(options)(data);
797
+ resolve3(result);
798
+ } catch (err) {
799
+ reject(err);
800
+ }
801
+ });
802
+ } else {
803
+ throw new Error("Please provide a callback function");
804
+ }
805
+ } else {
806
+ try {
807
+ result = handleCache(options)(data);
808
+ } catch (err) {
809
+ return cb(err);
810
+ }
811
+ cb(null, result);
812
+ }
813
+ }
814
+ function fileLoader(filePath) {
815
+ return exports.fileLoader(filePath);
816
+ }
817
+ function includeFile(path2, options) {
818
+ var opts = utils.shallowCopy(utils.createNullProtoObjWherePossible(), options);
819
+ opts.filename = getIncludePath(path2, opts);
820
+ if (typeof options.includer === "function") {
821
+ var includerResult = options.includer(path2, opts.filename);
822
+ if (includerResult) {
823
+ if (includerResult.filename) {
824
+ opts.filename = includerResult.filename;
825
+ }
826
+ if (includerResult.template) {
827
+ return handleCache(opts, includerResult.template);
828
+ }
829
+ }
830
+ }
831
+ return handleCache(opts);
832
+ }
833
+ function rethrow(err, str, flnm, lineno, esc) {
834
+ var lines = str.split("\n");
835
+ var start = Math.max(lineno - 3, 0);
836
+ var end = Math.min(lines.length, lineno + 3);
837
+ var filename = esc(flnm);
838
+ var context = lines.slice(start, end).map(function(line, i) {
839
+ var curr = i + start + 1;
840
+ return (curr == lineno ? " >> " : " ") + curr + "| " + line;
841
+ }).join("\n");
842
+ err.path = filename;
843
+ err.message = (filename || "ejs") + ":" + lineno + "\n" + context + "\n\n" + err.message;
844
+ throw err;
845
+ }
846
+ function stripSemi(str) {
847
+ return str.replace(/;(\s*$)/, "$1");
848
+ }
849
+ exports.compile = function compile(template, opts) {
850
+ var templ;
851
+ if (opts && opts.scope) {
852
+ if (!scopeOptionWarned) {
853
+ console.warn("`scope` option is deprecated and will be removed in EJS 3");
854
+ scopeOptionWarned = true;
855
+ }
856
+ if (!opts.context) {
857
+ opts.context = opts.scope;
858
+ }
859
+ delete opts.scope;
860
+ }
861
+ templ = new Template(template, opts);
862
+ return templ.compile();
863
+ };
864
+ exports.render = function(template, d, o) {
865
+ var data = d || utils.createNullProtoObjWherePossible();
866
+ var opts = o || utils.createNullProtoObjWherePossible();
867
+ if (arguments.length == 2) {
868
+ utils.shallowCopyFromList(opts, data, _OPTS_PASSABLE_WITH_DATA);
869
+ }
870
+ return handleCache(opts, template)(data);
871
+ };
872
+ exports.renderFile = function() {
873
+ var args = Array.prototype.slice.call(arguments);
874
+ var filename = args.shift();
875
+ var cb;
876
+ var opts = { filename };
877
+ var data;
878
+ var viewOpts;
879
+ if (typeof arguments[arguments.length - 1] == "function") {
880
+ cb = args.pop();
881
+ }
882
+ if (args.length) {
883
+ data = args.shift();
884
+ if (args.length) {
885
+ utils.shallowCopy(opts, args.pop());
886
+ } else {
887
+ if (data.settings) {
888
+ if (data.settings.views) {
889
+ opts.views = data.settings.views;
890
+ }
891
+ if (data.settings["view cache"]) {
892
+ opts.cache = true;
893
+ }
894
+ viewOpts = data.settings["view options"];
895
+ if (viewOpts) {
896
+ utils.shallowCopy(opts, viewOpts);
897
+ }
898
+ }
899
+ utils.shallowCopyFromList(opts, data, _OPTS_PASSABLE_WITH_DATA_EXPRESS);
900
+ }
901
+ opts.filename = filename;
902
+ } else {
903
+ data = utils.createNullProtoObjWherePossible();
904
+ }
905
+ return tryHandleCache(opts, data, cb);
906
+ };
907
+ exports.Template = Template;
908
+ exports.clearCache = function() {
909
+ exports.cache.reset();
910
+ };
911
+ function Template(text, optsParam) {
912
+ var opts = utils.hasOwnOnlyObject(optsParam);
913
+ var options = utils.createNullProtoObjWherePossible();
914
+ this.templateText = text;
915
+ this.mode = null;
916
+ this.truncate = false;
917
+ this.currentLine = 1;
918
+ this.source = "";
919
+ options.client = opts.client || false;
920
+ options.escapeFunction = opts.escape || opts.escapeFunction || utils.escapeXML;
921
+ options.compileDebug = opts.compileDebug !== false;
922
+ options.debug = !!opts.debug;
923
+ options.filename = opts.filename;
924
+ options.openDelimiter = opts.openDelimiter || exports.openDelimiter || _DEFAULT_OPEN_DELIMITER;
925
+ options.closeDelimiter = opts.closeDelimiter || exports.closeDelimiter || _DEFAULT_CLOSE_DELIMITER;
926
+ options.delimiter = opts.delimiter || exports.delimiter || _DEFAULT_DELIMITER;
927
+ options.strict = opts.strict || false;
928
+ options.context = opts.context;
929
+ options.cache = opts.cache || false;
930
+ options.rmWhitespace = opts.rmWhitespace;
931
+ options.root = opts.root;
932
+ options.includer = opts.includer;
933
+ options.outputFunctionName = opts.outputFunctionName;
934
+ options.localsName = opts.localsName || exports.localsName || _DEFAULT_LOCALS_NAME;
935
+ options.views = opts.views;
936
+ options.async = opts.async;
937
+ options.destructuredLocals = opts.destructuredLocals;
938
+ options.legacyInclude = typeof opts.legacyInclude != "undefined" ? !!opts.legacyInclude : true;
939
+ if (options.strict) {
940
+ options._with = false;
941
+ } else {
942
+ options._with = typeof opts._with != "undefined" ? opts._with : true;
943
+ }
944
+ this.opts = options;
945
+ this.regex = this.createRegex();
946
+ }
947
+ Template.modes = {
948
+ EVAL: "eval",
949
+ ESCAPED: "escaped",
950
+ RAW: "raw",
951
+ COMMENT: "comment",
952
+ LITERAL: "literal"
953
+ };
954
+ Template.prototype = {
955
+ createRegex: function() {
956
+ var str = _REGEX_STRING;
957
+ var delim = utils.escapeRegExpChars(this.opts.delimiter);
958
+ var open = utils.escapeRegExpChars(this.opts.openDelimiter);
959
+ var close = utils.escapeRegExpChars(this.opts.closeDelimiter);
960
+ str = str.replace(/%/g, delim).replace(/</g, open).replace(/>/g, close);
961
+ return new RegExp(str);
962
+ },
963
+ compile: function() {
964
+ var src;
965
+ var fn;
966
+ var opts = this.opts;
967
+ var prepended = "";
968
+ var appended = "";
969
+ var escapeFn = opts.escapeFunction;
970
+ var ctor;
971
+ var sanitizedFilename = opts.filename ? JSON.stringify(opts.filename) : "undefined";
972
+ if (!this.source) {
973
+ this.generateSource();
974
+ prepended += ' var __output = "";\n function __append(s) { if (s !== undefined && s !== null) __output += s }\n';
975
+ if (opts.outputFunctionName) {
976
+ if (!_JS_IDENTIFIER.test(opts.outputFunctionName)) {
977
+ throw new Error("outputFunctionName is not a valid JS identifier.");
978
+ }
979
+ prepended += " var " + opts.outputFunctionName + " = __append;\n";
980
+ }
981
+ if (opts.localsName && !_JS_IDENTIFIER.test(opts.localsName)) {
982
+ throw new Error("localsName is not a valid JS identifier.");
983
+ }
984
+ if (opts.destructuredLocals && opts.destructuredLocals.length) {
985
+ var destructuring = " var __locals = (" + opts.localsName + " || {}),\n";
986
+ for (var i = 0; i < opts.destructuredLocals.length; i++) {
987
+ var name = opts.destructuredLocals[i];
988
+ if (!_JS_IDENTIFIER.test(name)) {
989
+ throw new Error("destructuredLocals[" + i + "] is not a valid JS identifier.");
990
+ }
991
+ if (i > 0) {
992
+ destructuring += ",\n ";
993
+ }
994
+ destructuring += name + " = __locals." + name;
995
+ }
996
+ prepended += destructuring + ";\n";
997
+ }
998
+ if (opts._with !== false) {
999
+ prepended += " with (" + opts.localsName + " || {}) {\n";
1000
+ appended += " }\n";
1001
+ }
1002
+ appended += " return __output;\n";
1003
+ this.source = prepended + this.source + appended;
1004
+ }
1005
+ if (opts.compileDebug) {
1006
+ src = "var __line = 1\n , __lines = " + JSON.stringify(this.templateText) + "\n , __filename = " + sanitizedFilename + ";\ntry {\n" + this.source + "} catch (e) {\n rethrow(e, __lines, __filename, __line, escapeFn);\n}\n";
1007
+ } else {
1008
+ src = this.source;
1009
+ }
1010
+ if (opts.client) {
1011
+ src = "escapeFn = escapeFn || " + escapeFn.toString() + ";\n" + src;
1012
+ if (opts.compileDebug) {
1013
+ src = "rethrow = rethrow || " + rethrow.toString() + ";\n" + src;
1014
+ }
1015
+ }
1016
+ if (opts.strict) {
1017
+ src = '"use strict";\n' + src;
1018
+ }
1019
+ if (opts.debug) {
1020
+ console.log(src);
1021
+ }
1022
+ if (opts.compileDebug && opts.filename) {
1023
+ src = src + "\n//# sourceURL=" + sanitizedFilename + "\n";
1024
+ }
1025
+ try {
1026
+ if (opts.async) {
1027
+ try {
1028
+ ctor = new Function("return (async function(){}).constructor;")();
1029
+ } catch (e) {
1030
+ if (e instanceof SyntaxError) {
1031
+ throw new Error("This environment does not support async/await");
1032
+ } else {
1033
+ throw e;
1034
+ }
1035
+ }
1036
+ } else {
1037
+ ctor = Function;
1038
+ }
1039
+ fn = new ctor(opts.localsName + ", escapeFn, include, rethrow", src);
1040
+ } catch (e) {
1041
+ if (e instanceof SyntaxError) {
1042
+ if (opts.filename) {
1043
+ e.message += " in " + opts.filename;
1044
+ }
1045
+ e.message += " while compiling ejs\n\n";
1046
+ e.message += "If the above error is not helpful, you may want to try EJS-Lint:\n";
1047
+ e.message += "https://github.com/RyanZim/EJS-Lint";
1048
+ if (!opts.async) {
1049
+ e.message += "\n";
1050
+ e.message += "Or, if you meant to create an async function, pass `async: true` as an option.";
1051
+ }
1052
+ }
1053
+ throw e;
1054
+ }
1055
+ var returnedFn = opts.client ? fn : function anonymous(data) {
1056
+ var include = function(path2, includeData) {
1057
+ var d = utils.shallowCopy(utils.createNullProtoObjWherePossible(), data);
1058
+ if (includeData) {
1059
+ d = utils.shallowCopy(d, includeData);
1060
+ }
1061
+ return includeFile(path2, opts)(d);
1062
+ };
1063
+ return fn.apply(
1064
+ opts.context,
1065
+ [data || utils.createNullProtoObjWherePossible(), escapeFn, include, rethrow]
1066
+ );
1067
+ };
1068
+ if (opts.filename && typeof Object.defineProperty === "function") {
1069
+ var filename = opts.filename;
1070
+ var basename = path.basename(filename, path.extname(filename));
1071
+ try {
1072
+ Object.defineProperty(returnedFn, "name", {
1073
+ value: basename,
1074
+ writable: false,
1075
+ enumerable: false,
1076
+ configurable: true
1077
+ });
1078
+ } catch (e) {
1079
+ }
1080
+ }
1081
+ return returnedFn;
1082
+ },
1083
+ generateSource: function() {
1084
+ var opts = this.opts;
1085
+ if (opts.rmWhitespace) {
1086
+ this.templateText = this.templateText.replace(/[\r\n]+/g, "\n").replace(/^\s+|\s+$/gm, "");
1087
+ }
1088
+ this.templateText = this.templateText.replace(/[ \t]*<%_/gm, "<%_").replace(/_%>[ \t]*/gm, "_%>");
1089
+ var self = this;
1090
+ var matches = this.parseTemplateText();
1091
+ var d = this.opts.delimiter;
1092
+ var o = this.opts.openDelimiter;
1093
+ var c = this.opts.closeDelimiter;
1094
+ if (matches && matches.length) {
1095
+ matches.forEach(function(line, index) {
1096
+ var closing;
1097
+ if (line.indexOf(o + d) === 0 && line.indexOf(o + d + d) !== 0) {
1098
+ closing = matches[index + 2];
1099
+ if (!(closing == d + c || closing == "-" + d + c || closing == "_" + d + c)) {
1100
+ throw new Error('Could not find matching close tag for "' + line + '".');
1101
+ }
1102
+ }
1103
+ self.scanLine(line);
1104
+ });
1105
+ }
1106
+ },
1107
+ parseTemplateText: function() {
1108
+ var str = this.templateText;
1109
+ var pat = this.regex;
1110
+ var result = pat.exec(str);
1111
+ var arr = [];
1112
+ var firstPos;
1113
+ while (result) {
1114
+ firstPos = result.index;
1115
+ if (firstPos !== 0) {
1116
+ arr.push(str.substring(0, firstPos));
1117
+ str = str.slice(firstPos);
1118
+ }
1119
+ arr.push(result[0]);
1120
+ str = str.slice(result[0].length);
1121
+ result = pat.exec(str);
1122
+ }
1123
+ if (str) {
1124
+ arr.push(str);
1125
+ }
1126
+ return arr;
1127
+ },
1128
+ _addOutput: function(line) {
1129
+ if (this.truncate) {
1130
+ line = line.replace(/^(?:\r\n|\r|\n)/, "");
1131
+ this.truncate = false;
1132
+ }
1133
+ if (!line) {
1134
+ return line;
1135
+ }
1136
+ line = line.replace(/\\/g, "\\\\");
1137
+ line = line.replace(/\n/g, "\\n");
1138
+ line = line.replace(/\r/g, "\\r");
1139
+ line = line.replace(/"/g, '\\"');
1140
+ this.source += ' ; __append("' + line + '")\n';
1141
+ },
1142
+ scanLine: function(line) {
1143
+ var self = this;
1144
+ var d = this.opts.delimiter;
1145
+ var o = this.opts.openDelimiter;
1146
+ var c = this.opts.closeDelimiter;
1147
+ var newLineCount = 0;
1148
+ newLineCount = line.split("\n").length - 1;
1149
+ switch (line) {
1150
+ case o + d:
1151
+ case o + d + "_":
1152
+ this.mode = Template.modes.EVAL;
1153
+ break;
1154
+ case o + d + "=":
1155
+ this.mode = Template.modes.ESCAPED;
1156
+ break;
1157
+ case o + d + "-":
1158
+ this.mode = Template.modes.RAW;
1159
+ break;
1160
+ case o + d + "#":
1161
+ this.mode = Template.modes.COMMENT;
1162
+ break;
1163
+ case o + d + d:
1164
+ this.mode = Template.modes.LITERAL;
1165
+ this.source += ' ; __append("' + line.replace(o + d + d, o + d) + '")\n';
1166
+ break;
1167
+ case d + d + c:
1168
+ this.mode = Template.modes.LITERAL;
1169
+ this.source += ' ; __append("' + line.replace(d + d + c, d + c) + '")\n';
1170
+ break;
1171
+ case d + c:
1172
+ case "-" + d + c:
1173
+ case "_" + d + c:
1174
+ if (this.mode == Template.modes.LITERAL) {
1175
+ this._addOutput(line);
1176
+ }
1177
+ this.mode = null;
1178
+ this.truncate = line.indexOf("-") === 0 || line.indexOf("_") === 0;
1179
+ break;
1180
+ default:
1181
+ if (this.mode) {
1182
+ switch (this.mode) {
1183
+ case Template.modes.EVAL:
1184
+ case Template.modes.ESCAPED:
1185
+ case Template.modes.RAW:
1186
+ if (line.lastIndexOf("//") > line.lastIndexOf("\n")) {
1187
+ line += "\n";
1188
+ }
1189
+ }
1190
+ switch (this.mode) {
1191
+ // Just executing code
1192
+ case Template.modes.EVAL:
1193
+ this.source += " ; " + line + "\n";
1194
+ break;
1195
+ // Exec, esc, and output
1196
+ case Template.modes.ESCAPED:
1197
+ this.source += " ; __append(escapeFn(" + stripSemi(line) + "))\n";
1198
+ break;
1199
+ // Exec and output
1200
+ case Template.modes.RAW:
1201
+ this.source += " ; __append(" + stripSemi(line) + ")\n";
1202
+ break;
1203
+ case Template.modes.COMMENT:
1204
+ break;
1205
+ // Literal <%% mode, append as raw output
1206
+ case Template.modes.LITERAL:
1207
+ this._addOutput(line);
1208
+ break;
1209
+ }
1210
+ } else {
1211
+ this._addOutput(line);
1212
+ }
1213
+ }
1214
+ if (self.opts.compileDebug && newLineCount) {
1215
+ this.currentLine += newLineCount;
1216
+ this.source += " ; __line = " + this.currentLine + "\n";
1217
+ }
1218
+ }
1219
+ };
1220
+ exports.escapeXML = utils.escapeXML;
1221
+ exports.__express = exports.renderFile;
1222
+ exports.VERSION = _VERSION_STRING;
1223
+ exports.name = _NAME;
1224
+ if (typeof window != "undefined") {
1225
+ window.ejs = exports;
1226
+ }
1227
+ }
1228
+ });
1229
+
1230
+ // ../../node_modules/front-matter/node_modules/js-yaml/lib/js-yaml/common.js
1231
+ var require_common = __commonJS({
1232
+ "../../node_modules/front-matter/node_modules/js-yaml/lib/js-yaml/common.js"(exports, module) {
1233
+ "use strict";
1234
+ init_esm_shims();
1235
+ function isNothing(subject) {
1236
+ return typeof subject === "undefined" || subject === null;
1237
+ }
1238
+ function isObject(subject) {
1239
+ return typeof subject === "object" && subject !== null;
1240
+ }
1241
+ function toArray(sequence) {
1242
+ if (Array.isArray(sequence)) return sequence;
1243
+ else if (isNothing(sequence)) return [];
1244
+ return [sequence];
1245
+ }
1246
+ function extend(target, source) {
1247
+ var index, length, key, sourceKeys;
1248
+ if (source) {
1249
+ sourceKeys = Object.keys(source);
1250
+ for (index = 0, length = sourceKeys.length; index < length; index += 1) {
1251
+ key = sourceKeys[index];
1252
+ target[key] = source[key];
1253
+ }
1254
+ }
1255
+ return target;
1256
+ }
1257
+ function repeat(string, count) {
1258
+ var result = "", cycle;
1259
+ for (cycle = 0; cycle < count; cycle += 1) {
1260
+ result += string;
1261
+ }
1262
+ return result;
1263
+ }
1264
+ function isNegativeZero(number) {
1265
+ return number === 0 && Number.NEGATIVE_INFINITY === 1 / number;
1266
+ }
1267
+ module.exports.isNothing = isNothing;
1268
+ module.exports.isObject = isObject;
1269
+ module.exports.toArray = toArray;
1270
+ module.exports.repeat = repeat;
1271
+ module.exports.isNegativeZero = isNegativeZero;
1272
+ module.exports.extend = extend;
1273
+ }
1274
+ });
1275
+
1276
+ // ../../node_modules/front-matter/node_modules/js-yaml/lib/js-yaml/exception.js
1277
+ var require_exception = __commonJS({
1278
+ "../../node_modules/front-matter/node_modules/js-yaml/lib/js-yaml/exception.js"(exports, module) {
1279
+ "use strict";
1280
+ init_esm_shims();
1281
+ function YAMLException(reason, mark) {
1282
+ Error.call(this);
1283
+ this.name = "YAMLException";
1284
+ this.reason = reason;
1285
+ this.mark = mark;
1286
+ this.message = (this.reason || "(unknown reason)") + (this.mark ? " " + this.mark.toString() : "");
1287
+ if (Error.captureStackTrace) {
1288
+ Error.captureStackTrace(this, this.constructor);
1289
+ } else {
1290
+ this.stack = new Error().stack || "";
1291
+ }
1292
+ }
1293
+ YAMLException.prototype = Object.create(Error.prototype);
1294
+ YAMLException.prototype.constructor = YAMLException;
1295
+ YAMLException.prototype.toString = function toString(compact) {
1296
+ var result = this.name + ": ";
1297
+ result += this.reason || "(unknown reason)";
1298
+ if (!compact && this.mark) {
1299
+ result += " " + this.mark.toString();
1300
+ }
1301
+ return result;
1302
+ };
1303
+ module.exports = YAMLException;
1304
+ }
1305
+ });
1306
+
1307
+ // ../../node_modules/front-matter/node_modules/js-yaml/lib/js-yaml/mark.js
1308
+ var require_mark = __commonJS({
1309
+ "../../node_modules/front-matter/node_modules/js-yaml/lib/js-yaml/mark.js"(exports, module) {
1310
+ "use strict";
1311
+ init_esm_shims();
1312
+ var common = require_common();
1313
+ function Mark(name, buffer, position, line, column) {
1314
+ this.name = name;
1315
+ this.buffer = buffer;
1316
+ this.position = position;
1317
+ this.line = line;
1318
+ this.column = column;
1319
+ }
1320
+ Mark.prototype.getSnippet = function getSnippet(indent, maxLength) {
1321
+ var head, start, tail, end, snippet;
1322
+ if (!this.buffer) return null;
1323
+ indent = indent || 4;
1324
+ maxLength = maxLength || 75;
1325
+ head = "";
1326
+ start = this.position;
1327
+ while (start > 0 && "\0\r\n\x85\u2028\u2029".indexOf(this.buffer.charAt(start - 1)) === -1) {
1328
+ start -= 1;
1329
+ if (this.position - start > maxLength / 2 - 1) {
1330
+ head = " ... ";
1331
+ start += 5;
1332
+ break;
1333
+ }
1334
+ }
1335
+ tail = "";
1336
+ end = this.position;
1337
+ while (end < this.buffer.length && "\0\r\n\x85\u2028\u2029".indexOf(this.buffer.charAt(end)) === -1) {
1338
+ end += 1;
1339
+ if (end - this.position > maxLength / 2 - 1) {
1340
+ tail = " ... ";
1341
+ end -= 5;
1342
+ break;
1343
+ }
1344
+ }
1345
+ snippet = this.buffer.slice(start, end);
1346
+ return common.repeat(" ", indent) + head + snippet + tail + "\n" + common.repeat(" ", indent + this.position - start + head.length) + "^";
1347
+ };
1348
+ Mark.prototype.toString = function toString(compact) {
1349
+ var snippet, where = "";
1350
+ if (this.name) {
1351
+ where += 'in "' + this.name + '" ';
1352
+ }
1353
+ where += "at line " + (this.line + 1) + ", column " + (this.column + 1);
1354
+ if (!compact) {
1355
+ snippet = this.getSnippet();
1356
+ if (snippet) {
1357
+ where += ":\n" + snippet;
1358
+ }
1359
+ }
1360
+ return where;
1361
+ };
1362
+ module.exports = Mark;
1363
+ }
1364
+ });
1365
+
1366
+ // ../../node_modules/front-matter/node_modules/js-yaml/lib/js-yaml/type.js
1367
+ var require_type = __commonJS({
1368
+ "../../node_modules/front-matter/node_modules/js-yaml/lib/js-yaml/type.js"(exports, module) {
1369
+ "use strict";
1370
+ init_esm_shims();
1371
+ var YAMLException = require_exception();
1372
+ var TYPE_CONSTRUCTOR_OPTIONS = [
1373
+ "kind",
1374
+ "resolve",
1375
+ "construct",
1376
+ "instanceOf",
1377
+ "predicate",
1378
+ "represent",
1379
+ "defaultStyle",
1380
+ "styleAliases"
1381
+ ];
1382
+ var YAML_NODE_KINDS = [
1383
+ "scalar",
1384
+ "sequence",
1385
+ "mapping"
1386
+ ];
1387
+ function compileStyleAliases(map) {
1388
+ var result = {};
1389
+ if (map !== null) {
1390
+ Object.keys(map).forEach(function(style) {
1391
+ map[style].forEach(function(alias) {
1392
+ result[String(alias)] = style;
1393
+ });
1394
+ });
1395
+ }
1396
+ return result;
1397
+ }
1398
+ function Type(tag, options) {
1399
+ options = options || {};
1400
+ Object.keys(options).forEach(function(name) {
1401
+ if (TYPE_CONSTRUCTOR_OPTIONS.indexOf(name) === -1) {
1402
+ throw new YAMLException('Unknown option "' + name + '" is met in definition of "' + tag + '" YAML type.');
1403
+ }
1404
+ });
1405
+ this.tag = tag;
1406
+ this.kind = options["kind"] || null;
1407
+ this.resolve = options["resolve"] || function() {
1408
+ return true;
1409
+ };
1410
+ this.construct = options["construct"] || function(data) {
1411
+ return data;
1412
+ };
1413
+ this.instanceOf = options["instanceOf"] || null;
1414
+ this.predicate = options["predicate"] || null;
1415
+ this.represent = options["represent"] || null;
1416
+ this.defaultStyle = options["defaultStyle"] || null;
1417
+ this.styleAliases = compileStyleAliases(options["styleAliases"] || null);
1418
+ if (YAML_NODE_KINDS.indexOf(this.kind) === -1) {
1419
+ throw new YAMLException('Unknown kind "' + this.kind + '" is specified for "' + tag + '" YAML type.');
1420
+ }
1421
+ }
1422
+ module.exports = Type;
1423
+ }
1424
+ });
1425
+
1426
+ // ../../node_modules/front-matter/node_modules/js-yaml/lib/js-yaml/schema.js
1427
+ var require_schema = __commonJS({
1428
+ "../../node_modules/front-matter/node_modules/js-yaml/lib/js-yaml/schema.js"(exports, module) {
1429
+ "use strict";
1430
+ init_esm_shims();
1431
+ var common = require_common();
1432
+ var YAMLException = require_exception();
1433
+ var Type = require_type();
1434
+ function compileList(schema, name, result) {
1435
+ var exclude = [];
1436
+ schema.include.forEach(function(includedSchema) {
1437
+ result = compileList(includedSchema, name, result);
1438
+ });
1439
+ schema[name].forEach(function(currentType) {
1440
+ result.forEach(function(previousType, previousIndex) {
1441
+ if (previousType.tag === currentType.tag && previousType.kind === currentType.kind) {
1442
+ exclude.push(previousIndex);
1443
+ }
1444
+ });
1445
+ result.push(currentType);
1446
+ });
1447
+ return result.filter(function(type, index) {
1448
+ return exclude.indexOf(index) === -1;
1449
+ });
1450
+ }
1451
+ function compileMap() {
1452
+ var result = {
1453
+ scalar: {},
1454
+ sequence: {},
1455
+ mapping: {},
1456
+ fallback: {}
1457
+ }, index, length;
1458
+ function collectType(type) {
1459
+ result[type.kind][type.tag] = result["fallback"][type.tag] = type;
1460
+ }
1461
+ for (index = 0, length = arguments.length; index < length; index += 1) {
1462
+ arguments[index].forEach(collectType);
1463
+ }
1464
+ return result;
1465
+ }
1466
+ function Schema(definition) {
1467
+ this.include = definition.include || [];
1468
+ this.implicit = definition.implicit || [];
1469
+ this.explicit = definition.explicit || [];
1470
+ this.implicit.forEach(function(type) {
1471
+ if (type.loadKind && type.loadKind !== "scalar") {
1472
+ throw new YAMLException("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
1473
+ }
1474
+ });
1475
+ this.compiledImplicit = compileList(this, "implicit", []);
1476
+ this.compiledExplicit = compileList(this, "explicit", []);
1477
+ this.compiledTypeMap = compileMap(this.compiledImplicit, this.compiledExplicit);
1478
+ }
1479
+ Schema.DEFAULT = null;
1480
+ Schema.create = function createSchema() {
1481
+ var schemas, types;
1482
+ switch (arguments.length) {
1483
+ case 1:
1484
+ schemas = Schema.DEFAULT;
1485
+ types = arguments[0];
1486
+ break;
1487
+ case 2:
1488
+ schemas = arguments[0];
1489
+ types = arguments[1];
1490
+ break;
1491
+ default:
1492
+ throw new YAMLException("Wrong number of arguments for Schema.create function");
1493
+ }
1494
+ schemas = common.toArray(schemas);
1495
+ types = common.toArray(types);
1496
+ if (!schemas.every(function(schema) {
1497
+ return schema instanceof Schema;
1498
+ })) {
1499
+ throw new YAMLException("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");
1500
+ }
1501
+ if (!types.every(function(type) {
1502
+ return type instanceof Type;
1503
+ })) {
1504
+ throw new YAMLException("Specified list of YAML types (or a single Type object) contains a non-Type object.");
1505
+ }
1506
+ return new Schema({
1507
+ include: schemas,
1508
+ explicit: types
1509
+ });
1510
+ };
1511
+ module.exports = Schema;
1512
+ }
1513
+ });
1514
+
1515
+ // ../../node_modules/front-matter/node_modules/js-yaml/lib/js-yaml/type/str.js
1516
+ var require_str = __commonJS({
1517
+ "../../node_modules/front-matter/node_modules/js-yaml/lib/js-yaml/type/str.js"(exports, module) {
1518
+ "use strict";
1519
+ init_esm_shims();
1520
+ var Type = require_type();
1521
+ module.exports = new Type("tag:yaml.org,2002:str", {
1522
+ kind: "scalar",
1523
+ construct: function(data) {
1524
+ return data !== null ? data : "";
1525
+ }
1526
+ });
1527
+ }
1528
+ });
1529
+
1530
+ // ../../node_modules/front-matter/node_modules/js-yaml/lib/js-yaml/type/seq.js
1531
+ var require_seq = __commonJS({
1532
+ "../../node_modules/front-matter/node_modules/js-yaml/lib/js-yaml/type/seq.js"(exports, module) {
1533
+ "use strict";
1534
+ init_esm_shims();
1535
+ var Type = require_type();
1536
+ module.exports = new Type("tag:yaml.org,2002:seq", {
1537
+ kind: "sequence",
1538
+ construct: function(data) {
1539
+ return data !== null ? data : [];
1540
+ }
1541
+ });
1542
+ }
1543
+ });
1544
+
1545
+ // ../../node_modules/front-matter/node_modules/js-yaml/lib/js-yaml/type/map.js
1546
+ var require_map = __commonJS({
1547
+ "../../node_modules/front-matter/node_modules/js-yaml/lib/js-yaml/type/map.js"(exports, module) {
1548
+ "use strict";
1549
+ init_esm_shims();
1550
+ var Type = require_type();
1551
+ module.exports = new Type("tag:yaml.org,2002:map", {
1552
+ kind: "mapping",
1553
+ construct: function(data) {
1554
+ return data !== null ? data : {};
1555
+ }
1556
+ });
1557
+ }
1558
+ });
1559
+
1560
+ // ../../node_modules/front-matter/node_modules/js-yaml/lib/js-yaml/schema/failsafe.js
1561
+ var require_failsafe = __commonJS({
1562
+ "../../node_modules/front-matter/node_modules/js-yaml/lib/js-yaml/schema/failsafe.js"(exports, module) {
1563
+ "use strict";
1564
+ init_esm_shims();
1565
+ var Schema = require_schema();
1566
+ module.exports = new Schema({
1567
+ explicit: [
1568
+ require_str(),
1569
+ require_seq(),
1570
+ require_map()
1571
+ ]
1572
+ });
1573
+ }
1574
+ });
1575
+
1576
+ // ../../node_modules/front-matter/node_modules/js-yaml/lib/js-yaml/type/null.js
1577
+ var require_null = __commonJS({
1578
+ "../../node_modules/front-matter/node_modules/js-yaml/lib/js-yaml/type/null.js"(exports, module) {
1579
+ "use strict";
1580
+ init_esm_shims();
1581
+ var Type = require_type();
1582
+ function resolveYamlNull(data) {
1583
+ if (data === null) return true;
1584
+ var max = data.length;
1585
+ return max === 1 && data === "~" || max === 4 && (data === "null" || data === "Null" || data === "NULL");
1586
+ }
1587
+ function constructYamlNull() {
1588
+ return null;
1589
+ }
1590
+ function isNull(object) {
1591
+ return object === null;
1592
+ }
1593
+ module.exports = new Type("tag:yaml.org,2002:null", {
1594
+ kind: "scalar",
1595
+ resolve: resolveYamlNull,
1596
+ construct: constructYamlNull,
1597
+ predicate: isNull,
1598
+ represent: {
1599
+ canonical: function() {
1600
+ return "~";
1601
+ },
1602
+ lowercase: function() {
1603
+ return "null";
1604
+ },
1605
+ uppercase: function() {
1606
+ return "NULL";
1607
+ },
1608
+ camelcase: function() {
1609
+ return "Null";
1610
+ }
1611
+ },
1612
+ defaultStyle: "lowercase"
1613
+ });
1614
+ }
1615
+ });
1616
+
1617
+ // ../../node_modules/front-matter/node_modules/js-yaml/lib/js-yaml/type/bool.js
1618
+ var require_bool = __commonJS({
1619
+ "../../node_modules/front-matter/node_modules/js-yaml/lib/js-yaml/type/bool.js"(exports, module) {
1620
+ "use strict";
1621
+ init_esm_shims();
1622
+ var Type = require_type();
1623
+ function resolveYamlBoolean(data) {
1624
+ if (data === null) return false;
1625
+ var max = data.length;
1626
+ return max === 4 && (data === "true" || data === "True" || data === "TRUE") || max === 5 && (data === "false" || data === "False" || data === "FALSE");
1627
+ }
1628
+ function constructYamlBoolean(data) {
1629
+ return data === "true" || data === "True" || data === "TRUE";
1630
+ }
1631
+ function isBoolean(object) {
1632
+ return Object.prototype.toString.call(object) === "[object Boolean]";
1633
+ }
1634
+ module.exports = new Type("tag:yaml.org,2002:bool", {
1635
+ kind: "scalar",
1636
+ resolve: resolveYamlBoolean,
1637
+ construct: constructYamlBoolean,
1638
+ predicate: isBoolean,
1639
+ represent: {
1640
+ lowercase: function(object) {
1641
+ return object ? "true" : "false";
1642
+ },
1643
+ uppercase: function(object) {
1644
+ return object ? "TRUE" : "FALSE";
1645
+ },
1646
+ camelcase: function(object) {
1647
+ return object ? "True" : "False";
1648
+ }
1649
+ },
1650
+ defaultStyle: "lowercase"
1651
+ });
1652
+ }
1653
+ });
1654
+
1655
+ // ../../node_modules/front-matter/node_modules/js-yaml/lib/js-yaml/type/int.js
1656
+ var require_int = __commonJS({
1657
+ "../../node_modules/front-matter/node_modules/js-yaml/lib/js-yaml/type/int.js"(exports, module) {
1658
+ "use strict";
1659
+ init_esm_shims();
1660
+ var common = require_common();
1661
+ var Type = require_type();
1662
+ function isHexCode(c) {
1663
+ return 48 <= c && c <= 57 || 65 <= c && c <= 70 || 97 <= c && c <= 102;
1664
+ }
1665
+ function isOctCode(c) {
1666
+ return 48 <= c && c <= 55;
1667
+ }
1668
+ function isDecCode(c) {
1669
+ return 48 <= c && c <= 57;
1670
+ }
1671
+ function resolveYamlInteger(data) {
1672
+ if (data === null) return false;
1673
+ var max = data.length, index = 0, hasDigits = false, ch;
1674
+ if (!max) return false;
1675
+ ch = data[index];
1676
+ if (ch === "-" || ch === "+") {
1677
+ ch = data[++index];
1678
+ }
1679
+ if (ch === "0") {
1680
+ if (index + 1 === max) return true;
1681
+ ch = data[++index];
1682
+ if (ch === "b") {
1683
+ index++;
1684
+ for (; index < max; index++) {
1685
+ ch = data[index];
1686
+ if (ch === "_") continue;
1687
+ if (ch !== "0" && ch !== "1") return false;
1688
+ hasDigits = true;
1689
+ }
1690
+ return hasDigits && ch !== "_";
1691
+ }
1692
+ if (ch === "x") {
1693
+ index++;
1694
+ for (; index < max; index++) {
1695
+ ch = data[index];
1696
+ if (ch === "_") continue;
1697
+ if (!isHexCode(data.charCodeAt(index))) return false;
1698
+ hasDigits = true;
1699
+ }
1700
+ return hasDigits && ch !== "_";
1701
+ }
1702
+ for (; index < max; index++) {
1703
+ ch = data[index];
1704
+ if (ch === "_") continue;
1705
+ if (!isOctCode(data.charCodeAt(index))) return false;
1706
+ hasDigits = true;
1707
+ }
1708
+ return hasDigits && ch !== "_";
1709
+ }
1710
+ if (ch === "_") return false;
1711
+ for (; index < max; index++) {
1712
+ ch = data[index];
1713
+ if (ch === "_") continue;
1714
+ if (ch === ":") break;
1715
+ if (!isDecCode(data.charCodeAt(index))) {
1716
+ return false;
1717
+ }
1718
+ hasDigits = true;
1719
+ }
1720
+ if (!hasDigits || ch === "_") return false;
1721
+ if (ch !== ":") return true;
1722
+ return /^(:[0-5]?[0-9])+$/.test(data.slice(index));
1723
+ }
1724
+ function constructYamlInteger(data) {
1725
+ var value = data, sign = 1, ch, base, digits = [];
1726
+ if (value.indexOf("_") !== -1) {
1727
+ value = value.replace(/_/g, "");
1728
+ }
1729
+ ch = value[0];
1730
+ if (ch === "-" || ch === "+") {
1731
+ if (ch === "-") sign = -1;
1732
+ value = value.slice(1);
1733
+ ch = value[0];
1734
+ }
1735
+ if (value === "0") return 0;
1736
+ if (ch === "0") {
1737
+ if (value[1] === "b") return sign * parseInt(value.slice(2), 2);
1738
+ if (value[1] === "x") return sign * parseInt(value, 16);
1739
+ return sign * parseInt(value, 8);
1740
+ }
1741
+ if (value.indexOf(":") !== -1) {
1742
+ value.split(":").forEach(function(v) {
1743
+ digits.unshift(parseInt(v, 10));
1744
+ });
1745
+ value = 0;
1746
+ base = 1;
1747
+ digits.forEach(function(d) {
1748
+ value += d * base;
1749
+ base *= 60;
1750
+ });
1751
+ return sign * value;
1752
+ }
1753
+ return sign * parseInt(value, 10);
1754
+ }
1755
+ function isInteger(object) {
1756
+ return Object.prototype.toString.call(object) === "[object Number]" && (object % 1 === 0 && !common.isNegativeZero(object));
1757
+ }
1758
+ module.exports = new Type("tag:yaml.org,2002:int", {
1759
+ kind: "scalar",
1760
+ resolve: resolveYamlInteger,
1761
+ construct: constructYamlInteger,
1762
+ predicate: isInteger,
1763
+ represent: {
1764
+ binary: function(obj) {
1765
+ return obj >= 0 ? "0b" + obj.toString(2) : "-0b" + obj.toString(2).slice(1);
1766
+ },
1767
+ octal: function(obj) {
1768
+ return obj >= 0 ? "0" + obj.toString(8) : "-0" + obj.toString(8).slice(1);
1769
+ },
1770
+ decimal: function(obj) {
1771
+ return obj.toString(10);
1772
+ },
1773
+ /* eslint-disable max-len */
1774
+ hexadecimal: function(obj) {
1775
+ return obj >= 0 ? "0x" + obj.toString(16).toUpperCase() : "-0x" + obj.toString(16).toUpperCase().slice(1);
1776
+ }
1777
+ },
1778
+ defaultStyle: "decimal",
1779
+ styleAliases: {
1780
+ binary: [2, "bin"],
1781
+ octal: [8, "oct"],
1782
+ decimal: [10, "dec"],
1783
+ hexadecimal: [16, "hex"]
1784
+ }
1785
+ });
1786
+ }
1787
+ });
1788
+
1789
+ // ../../node_modules/front-matter/node_modules/js-yaml/lib/js-yaml/type/float.js
1790
+ var require_float = __commonJS({
1791
+ "../../node_modules/front-matter/node_modules/js-yaml/lib/js-yaml/type/float.js"(exports, module) {
1792
+ "use strict";
1793
+ init_esm_shims();
1794
+ var common = require_common();
1795
+ var Type = require_type();
1796
+ var YAML_FLOAT_PATTERN = new RegExp(
1797
+ // 2.5e4, 2.5 and integers
1798
+ "^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"
1799
+ );
1800
+ function resolveYamlFloat(data) {
1801
+ if (data === null) return false;
1802
+ if (!YAML_FLOAT_PATTERN.test(data) || // Quick hack to not allow integers end with `_`
1803
+ // Probably should update regexp & check speed
1804
+ data[data.length - 1] === "_") {
1805
+ return false;
1806
+ }
1807
+ return true;
1808
+ }
1809
+ function constructYamlFloat(data) {
1810
+ var value, sign, base, digits;
1811
+ value = data.replace(/_/g, "").toLowerCase();
1812
+ sign = value[0] === "-" ? -1 : 1;
1813
+ digits = [];
1814
+ if ("+-".indexOf(value[0]) >= 0) {
1815
+ value = value.slice(1);
1816
+ }
1817
+ if (value === ".inf") {
1818
+ return sign === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY;
1819
+ } else if (value === ".nan") {
1820
+ return NaN;
1821
+ } else if (value.indexOf(":") >= 0) {
1822
+ value.split(":").forEach(function(v) {
1823
+ digits.unshift(parseFloat(v, 10));
1824
+ });
1825
+ value = 0;
1826
+ base = 1;
1827
+ digits.forEach(function(d) {
1828
+ value += d * base;
1829
+ base *= 60;
1830
+ });
1831
+ return sign * value;
1832
+ }
1833
+ return sign * parseFloat(value, 10);
1834
+ }
1835
+ var SCIENTIFIC_WITHOUT_DOT = /^[-+]?[0-9]+e/;
1836
+ function representYamlFloat(object, style) {
1837
+ var res;
1838
+ if (isNaN(object)) {
1839
+ switch (style) {
1840
+ case "lowercase":
1841
+ return ".nan";
1842
+ case "uppercase":
1843
+ return ".NAN";
1844
+ case "camelcase":
1845
+ return ".NaN";
1846
+ }
1847
+ } else if (Number.POSITIVE_INFINITY === object) {
1848
+ switch (style) {
1849
+ case "lowercase":
1850
+ return ".inf";
1851
+ case "uppercase":
1852
+ return ".INF";
1853
+ case "camelcase":
1854
+ return ".Inf";
1855
+ }
1856
+ } else if (Number.NEGATIVE_INFINITY === object) {
1857
+ switch (style) {
1858
+ case "lowercase":
1859
+ return "-.inf";
1860
+ case "uppercase":
1861
+ return "-.INF";
1862
+ case "camelcase":
1863
+ return "-.Inf";
1864
+ }
1865
+ } else if (common.isNegativeZero(object)) {
1866
+ return "-0.0";
1867
+ }
1868
+ res = object.toString(10);
1869
+ return SCIENTIFIC_WITHOUT_DOT.test(res) ? res.replace("e", ".e") : res;
1870
+ }
1871
+ function isFloat(object) {
1872
+ return Object.prototype.toString.call(object) === "[object Number]" && (object % 1 !== 0 || common.isNegativeZero(object));
1873
+ }
1874
+ module.exports = new Type("tag:yaml.org,2002:float", {
1875
+ kind: "scalar",
1876
+ resolve: resolveYamlFloat,
1877
+ construct: constructYamlFloat,
1878
+ predicate: isFloat,
1879
+ represent: representYamlFloat,
1880
+ defaultStyle: "lowercase"
1881
+ });
1882
+ }
1883
+ });
1884
+
1885
+ // ../../node_modules/front-matter/node_modules/js-yaml/lib/js-yaml/schema/json.js
1886
+ var require_json = __commonJS({
1887
+ "../../node_modules/front-matter/node_modules/js-yaml/lib/js-yaml/schema/json.js"(exports, module) {
1888
+ "use strict";
1889
+ init_esm_shims();
1890
+ var Schema = require_schema();
1891
+ module.exports = new Schema({
1892
+ include: [
1893
+ require_failsafe()
1894
+ ],
1895
+ implicit: [
1896
+ require_null(),
1897
+ require_bool(),
1898
+ require_int(),
1899
+ require_float()
1900
+ ]
1901
+ });
1902
+ }
1903
+ });
1904
+
1905
+ // ../../node_modules/front-matter/node_modules/js-yaml/lib/js-yaml/schema/core.js
1906
+ var require_core = __commonJS({
1907
+ "../../node_modules/front-matter/node_modules/js-yaml/lib/js-yaml/schema/core.js"(exports, module) {
1908
+ "use strict";
1909
+ init_esm_shims();
1910
+ var Schema = require_schema();
1911
+ module.exports = new Schema({
1912
+ include: [
1913
+ require_json()
1914
+ ]
1915
+ });
1916
+ }
1917
+ });
1918
+
1919
+ // ../../node_modules/front-matter/node_modules/js-yaml/lib/js-yaml/type/timestamp.js
1920
+ var require_timestamp = __commonJS({
1921
+ "../../node_modules/front-matter/node_modules/js-yaml/lib/js-yaml/type/timestamp.js"(exports, module) {
1922
+ "use strict";
1923
+ init_esm_shims();
1924
+ var Type = require_type();
1925
+ var YAML_DATE_REGEXP = new RegExp(
1926
+ "^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"
1927
+ );
1928
+ var YAML_TIMESTAMP_REGEXP = new RegExp(
1929
+ "^([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]))?))?$"
1930
+ );
1931
+ function resolveYamlTimestamp(data) {
1932
+ if (data === null) return false;
1933
+ if (YAML_DATE_REGEXP.exec(data) !== null) return true;
1934
+ if (YAML_TIMESTAMP_REGEXP.exec(data) !== null) return true;
1935
+ return false;
1936
+ }
1937
+ function constructYamlTimestamp(data) {
1938
+ var match, year, month, day, hour, minute, second, fraction = 0, delta = null, tz_hour, tz_minute, date;
1939
+ match = YAML_DATE_REGEXP.exec(data);
1940
+ if (match === null) match = YAML_TIMESTAMP_REGEXP.exec(data);
1941
+ if (match === null) throw new Error("Date resolve error");
1942
+ year = +match[1];
1943
+ month = +match[2] - 1;
1944
+ day = +match[3];
1945
+ if (!match[4]) {
1946
+ return new Date(Date.UTC(year, month, day));
1947
+ }
1948
+ hour = +match[4];
1949
+ minute = +match[5];
1950
+ second = +match[6];
1951
+ if (match[7]) {
1952
+ fraction = match[7].slice(0, 3);
1953
+ while (fraction.length < 3) {
1954
+ fraction += "0";
1955
+ }
1956
+ fraction = +fraction;
1957
+ }
1958
+ if (match[9]) {
1959
+ tz_hour = +match[10];
1960
+ tz_minute = +(match[11] || 0);
1961
+ delta = (tz_hour * 60 + tz_minute) * 6e4;
1962
+ if (match[9] === "-") delta = -delta;
1963
+ }
1964
+ date = new Date(Date.UTC(year, month, day, hour, minute, second, fraction));
1965
+ if (delta) date.setTime(date.getTime() - delta);
1966
+ return date;
1967
+ }
1968
+ function representYamlTimestamp(object) {
1969
+ return object.toISOString();
1970
+ }
1971
+ module.exports = new Type("tag:yaml.org,2002:timestamp", {
1972
+ kind: "scalar",
1973
+ resolve: resolveYamlTimestamp,
1974
+ construct: constructYamlTimestamp,
1975
+ instanceOf: Date,
1976
+ represent: representYamlTimestamp
1977
+ });
1978
+ }
1979
+ });
1980
+
1981
+ // ../../node_modules/front-matter/node_modules/js-yaml/lib/js-yaml/type/merge.js
1982
+ var require_merge = __commonJS({
1983
+ "../../node_modules/front-matter/node_modules/js-yaml/lib/js-yaml/type/merge.js"(exports, module) {
1984
+ "use strict";
1985
+ init_esm_shims();
1986
+ var Type = require_type();
1987
+ function resolveYamlMerge(data) {
1988
+ return data === "<<" || data === null;
1989
+ }
1990
+ module.exports = new Type("tag:yaml.org,2002:merge", {
1991
+ kind: "scalar",
1992
+ resolve: resolveYamlMerge
1993
+ });
1994
+ }
1995
+ });
1996
+
1997
+ // ../../node_modules/front-matter/node_modules/js-yaml/lib/js-yaml/type/binary.js
1998
+ var require_binary = __commonJS({
1999
+ "../../node_modules/front-matter/node_modules/js-yaml/lib/js-yaml/type/binary.js"(exports, module) {
2000
+ "use strict";
2001
+ init_esm_shims();
2002
+ var NodeBuffer;
2003
+ try {
2004
+ _require = __require;
2005
+ NodeBuffer = _require("buffer").Buffer;
2006
+ } catch (__) {
2007
+ }
2008
+ var _require;
2009
+ var Type = require_type();
2010
+ var BASE64_MAP = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";
2011
+ function resolveYamlBinary(data) {
2012
+ if (data === null) return false;
2013
+ var code, idx, bitlen = 0, max = data.length, map = BASE64_MAP;
2014
+ for (idx = 0; idx < max; idx++) {
2015
+ code = map.indexOf(data.charAt(idx));
2016
+ if (code > 64) continue;
2017
+ if (code < 0) return false;
2018
+ bitlen += 6;
2019
+ }
2020
+ return bitlen % 8 === 0;
2021
+ }
2022
+ function constructYamlBinary(data) {
2023
+ var idx, tailbits, input = data.replace(/[\r\n=]/g, ""), max = input.length, map = BASE64_MAP, bits = 0, result = [];
2024
+ for (idx = 0; idx < max; idx++) {
2025
+ if (idx % 4 === 0 && idx) {
2026
+ result.push(bits >> 16 & 255);
2027
+ result.push(bits >> 8 & 255);
2028
+ result.push(bits & 255);
2029
+ }
2030
+ bits = bits << 6 | map.indexOf(input.charAt(idx));
2031
+ }
2032
+ tailbits = max % 4 * 6;
2033
+ if (tailbits === 0) {
2034
+ result.push(bits >> 16 & 255);
2035
+ result.push(bits >> 8 & 255);
2036
+ result.push(bits & 255);
2037
+ } else if (tailbits === 18) {
2038
+ result.push(bits >> 10 & 255);
2039
+ result.push(bits >> 2 & 255);
2040
+ } else if (tailbits === 12) {
2041
+ result.push(bits >> 4 & 255);
2042
+ }
2043
+ if (NodeBuffer) {
2044
+ return NodeBuffer.from ? NodeBuffer.from(result) : new NodeBuffer(result);
2045
+ }
2046
+ return result;
2047
+ }
2048
+ function representYamlBinary(object) {
2049
+ var result = "", bits = 0, idx, tail, max = object.length, map = BASE64_MAP;
2050
+ for (idx = 0; idx < max; idx++) {
2051
+ if (idx % 3 === 0 && idx) {
2052
+ result += map[bits >> 18 & 63];
2053
+ result += map[bits >> 12 & 63];
2054
+ result += map[bits >> 6 & 63];
2055
+ result += map[bits & 63];
2056
+ }
2057
+ bits = (bits << 8) + object[idx];
2058
+ }
2059
+ tail = max % 3;
2060
+ if (tail === 0) {
2061
+ result += map[bits >> 18 & 63];
2062
+ result += map[bits >> 12 & 63];
2063
+ result += map[bits >> 6 & 63];
2064
+ result += map[bits & 63];
2065
+ } else if (tail === 2) {
2066
+ result += map[bits >> 10 & 63];
2067
+ result += map[bits >> 4 & 63];
2068
+ result += map[bits << 2 & 63];
2069
+ result += map[64];
2070
+ } else if (tail === 1) {
2071
+ result += map[bits >> 2 & 63];
2072
+ result += map[bits << 4 & 63];
2073
+ result += map[64];
2074
+ result += map[64];
2075
+ }
2076
+ return result;
2077
+ }
2078
+ function isBinary(object) {
2079
+ return NodeBuffer && NodeBuffer.isBuffer(object);
2080
+ }
2081
+ module.exports = new Type("tag:yaml.org,2002:binary", {
2082
+ kind: "scalar",
2083
+ resolve: resolveYamlBinary,
2084
+ construct: constructYamlBinary,
2085
+ predicate: isBinary,
2086
+ represent: representYamlBinary
2087
+ });
2088
+ }
2089
+ });
2090
+
2091
+ // ../../node_modules/front-matter/node_modules/js-yaml/lib/js-yaml/type/omap.js
2092
+ var require_omap = __commonJS({
2093
+ "../../node_modules/front-matter/node_modules/js-yaml/lib/js-yaml/type/omap.js"(exports, module) {
2094
+ "use strict";
2095
+ init_esm_shims();
2096
+ var Type = require_type();
2097
+ var _hasOwnProperty = Object.prototype.hasOwnProperty;
2098
+ var _toString = Object.prototype.toString;
2099
+ function resolveYamlOmap(data) {
2100
+ if (data === null) return true;
2101
+ var objectKeys = [], index, length, pair, pairKey, pairHasKey, object = data;
2102
+ for (index = 0, length = object.length; index < length; index += 1) {
2103
+ pair = object[index];
2104
+ pairHasKey = false;
2105
+ if (_toString.call(pair) !== "[object Object]") return false;
2106
+ for (pairKey in pair) {
2107
+ if (_hasOwnProperty.call(pair, pairKey)) {
2108
+ if (!pairHasKey) pairHasKey = true;
2109
+ else return false;
2110
+ }
2111
+ }
2112
+ if (!pairHasKey) return false;
2113
+ if (objectKeys.indexOf(pairKey) === -1) objectKeys.push(pairKey);
2114
+ else return false;
2115
+ }
2116
+ return true;
2117
+ }
2118
+ function constructYamlOmap(data) {
2119
+ return data !== null ? data : [];
2120
+ }
2121
+ module.exports = new Type("tag:yaml.org,2002:omap", {
2122
+ kind: "sequence",
2123
+ resolve: resolveYamlOmap,
2124
+ construct: constructYamlOmap
2125
+ });
2126
+ }
2127
+ });
2128
+
2129
+ // ../../node_modules/front-matter/node_modules/js-yaml/lib/js-yaml/type/pairs.js
2130
+ var require_pairs = __commonJS({
2131
+ "../../node_modules/front-matter/node_modules/js-yaml/lib/js-yaml/type/pairs.js"(exports, module) {
2132
+ "use strict";
2133
+ init_esm_shims();
2134
+ var Type = require_type();
2135
+ var _toString = Object.prototype.toString;
2136
+ function resolveYamlPairs(data) {
2137
+ if (data === null) return true;
2138
+ var index, length, pair, keys, result, object = data;
2139
+ result = new Array(object.length);
2140
+ for (index = 0, length = object.length; index < length; index += 1) {
2141
+ pair = object[index];
2142
+ if (_toString.call(pair) !== "[object Object]") return false;
2143
+ keys = Object.keys(pair);
2144
+ if (keys.length !== 1) return false;
2145
+ result[index] = [keys[0], pair[keys[0]]];
2146
+ }
2147
+ return true;
2148
+ }
2149
+ function constructYamlPairs(data) {
2150
+ if (data === null) return [];
2151
+ var index, length, pair, keys, result, object = data;
2152
+ result = new Array(object.length);
2153
+ for (index = 0, length = object.length; index < length; index += 1) {
2154
+ pair = object[index];
2155
+ keys = Object.keys(pair);
2156
+ result[index] = [keys[0], pair[keys[0]]];
2157
+ }
2158
+ return result;
2159
+ }
2160
+ module.exports = new Type("tag:yaml.org,2002:pairs", {
2161
+ kind: "sequence",
2162
+ resolve: resolveYamlPairs,
2163
+ construct: constructYamlPairs
2164
+ });
2165
+ }
2166
+ });
2167
+
2168
+ // ../../node_modules/front-matter/node_modules/js-yaml/lib/js-yaml/type/set.js
2169
+ var require_set = __commonJS({
2170
+ "../../node_modules/front-matter/node_modules/js-yaml/lib/js-yaml/type/set.js"(exports, module) {
2171
+ "use strict";
2172
+ init_esm_shims();
2173
+ var Type = require_type();
2174
+ var _hasOwnProperty = Object.prototype.hasOwnProperty;
2175
+ function resolveYamlSet(data) {
2176
+ if (data === null) return true;
2177
+ var key, object = data;
2178
+ for (key in object) {
2179
+ if (_hasOwnProperty.call(object, key)) {
2180
+ if (object[key] !== null) return false;
2181
+ }
2182
+ }
2183
+ return true;
2184
+ }
2185
+ function constructYamlSet(data) {
2186
+ return data !== null ? data : {};
2187
+ }
2188
+ module.exports = new Type("tag:yaml.org,2002:set", {
2189
+ kind: "mapping",
2190
+ resolve: resolveYamlSet,
2191
+ construct: constructYamlSet
2192
+ });
2193
+ }
2194
+ });
2195
+
2196
+ // ../../node_modules/front-matter/node_modules/js-yaml/lib/js-yaml/schema/default_safe.js
2197
+ var require_default_safe = __commonJS({
2198
+ "../../node_modules/front-matter/node_modules/js-yaml/lib/js-yaml/schema/default_safe.js"(exports, module) {
2199
+ "use strict";
2200
+ init_esm_shims();
2201
+ var Schema = require_schema();
2202
+ module.exports = new Schema({
2203
+ include: [
2204
+ require_core()
2205
+ ],
2206
+ implicit: [
2207
+ require_timestamp(),
2208
+ require_merge()
2209
+ ],
2210
+ explicit: [
2211
+ require_binary(),
2212
+ require_omap(),
2213
+ require_pairs(),
2214
+ require_set()
2215
+ ]
2216
+ });
2217
+ }
2218
+ });
2219
+
2220
+ // ../../node_modules/front-matter/node_modules/js-yaml/lib/js-yaml/type/js/undefined.js
2221
+ var require_undefined = __commonJS({
2222
+ "../../node_modules/front-matter/node_modules/js-yaml/lib/js-yaml/type/js/undefined.js"(exports, module) {
2223
+ "use strict";
2224
+ init_esm_shims();
2225
+ var Type = require_type();
2226
+ function resolveJavascriptUndefined() {
2227
+ return true;
2228
+ }
2229
+ function constructJavascriptUndefined() {
2230
+ return void 0;
2231
+ }
2232
+ function representJavascriptUndefined() {
2233
+ return "";
2234
+ }
2235
+ function isUndefined(object) {
2236
+ return typeof object === "undefined";
2237
+ }
2238
+ module.exports = new Type("tag:yaml.org,2002:js/undefined", {
2239
+ kind: "scalar",
2240
+ resolve: resolveJavascriptUndefined,
2241
+ construct: constructJavascriptUndefined,
2242
+ predicate: isUndefined,
2243
+ represent: representJavascriptUndefined
2244
+ });
2245
+ }
2246
+ });
2247
+
2248
+ // ../../node_modules/front-matter/node_modules/js-yaml/lib/js-yaml/type/js/regexp.js
2249
+ var require_regexp = __commonJS({
2250
+ "../../node_modules/front-matter/node_modules/js-yaml/lib/js-yaml/type/js/regexp.js"(exports, module) {
2251
+ "use strict";
2252
+ init_esm_shims();
2253
+ var Type = require_type();
2254
+ function resolveJavascriptRegExp(data) {
2255
+ if (data === null) return false;
2256
+ if (data.length === 0) return false;
2257
+ var regexp = data, tail = /\/([gim]*)$/.exec(data), modifiers = "";
2258
+ if (regexp[0] === "/") {
2259
+ if (tail) modifiers = tail[1];
2260
+ if (modifiers.length > 3) return false;
2261
+ if (regexp[regexp.length - modifiers.length - 1] !== "/") return false;
2262
+ }
2263
+ return true;
2264
+ }
2265
+ function constructJavascriptRegExp(data) {
2266
+ var regexp = data, tail = /\/([gim]*)$/.exec(data), modifiers = "";
2267
+ if (regexp[0] === "/") {
2268
+ if (tail) modifiers = tail[1];
2269
+ regexp = regexp.slice(1, regexp.length - modifiers.length - 1);
2270
+ }
2271
+ return new RegExp(regexp, modifiers);
2272
+ }
2273
+ function representJavascriptRegExp(object) {
2274
+ var result = "/" + object.source + "/";
2275
+ if (object.global) result += "g";
2276
+ if (object.multiline) result += "m";
2277
+ if (object.ignoreCase) result += "i";
2278
+ return result;
2279
+ }
2280
+ function isRegExp(object) {
2281
+ return Object.prototype.toString.call(object) === "[object RegExp]";
2282
+ }
2283
+ module.exports = new Type("tag:yaml.org,2002:js/regexp", {
2284
+ kind: "scalar",
2285
+ resolve: resolveJavascriptRegExp,
2286
+ construct: constructJavascriptRegExp,
2287
+ predicate: isRegExp,
2288
+ represent: representJavascriptRegExp
2289
+ });
2290
+ }
2291
+ });
2292
+
2293
+ // ../../node_modules/front-matter/node_modules/js-yaml/lib/js-yaml/type/js/function.js
2294
+ var require_function = __commonJS({
2295
+ "../../node_modules/front-matter/node_modules/js-yaml/lib/js-yaml/type/js/function.js"(exports, module) {
2296
+ "use strict";
2297
+ init_esm_shims();
2298
+ var esprima;
2299
+ try {
2300
+ _require = __require;
2301
+ esprima = _require("esprima");
2302
+ } catch (_) {
2303
+ if (typeof window !== "undefined") esprima = window.esprima;
2304
+ }
2305
+ var _require;
2306
+ var Type = require_type();
2307
+ function resolveJavascriptFunction(data) {
2308
+ if (data === null) return false;
2309
+ try {
2310
+ var source = "(" + data + ")", ast = esprima.parse(source, { range: true });
2311
+ if (ast.type !== "Program" || ast.body.length !== 1 || ast.body[0].type !== "ExpressionStatement" || ast.body[0].expression.type !== "ArrowFunctionExpression" && ast.body[0].expression.type !== "FunctionExpression") {
2312
+ return false;
2313
+ }
2314
+ return true;
2315
+ } catch (err) {
2316
+ return false;
2317
+ }
2318
+ }
2319
+ function constructJavascriptFunction(data) {
2320
+ var source = "(" + data + ")", ast = esprima.parse(source, { range: true }), params = [], body;
2321
+ if (ast.type !== "Program" || ast.body.length !== 1 || ast.body[0].type !== "ExpressionStatement" || ast.body[0].expression.type !== "ArrowFunctionExpression" && ast.body[0].expression.type !== "FunctionExpression") {
2322
+ throw new Error("Failed to resolve function");
2323
+ }
2324
+ ast.body[0].expression.params.forEach(function(param) {
2325
+ params.push(param.name);
2326
+ });
2327
+ body = ast.body[0].expression.body.range;
2328
+ if (ast.body[0].expression.body.type === "BlockStatement") {
2329
+ return new Function(params, source.slice(body[0] + 1, body[1] - 1));
2330
+ }
2331
+ return new Function(params, "return " + source.slice(body[0], body[1]));
2332
+ }
2333
+ function representJavascriptFunction(object) {
2334
+ return object.toString();
2335
+ }
2336
+ function isFunction(object) {
2337
+ return Object.prototype.toString.call(object) === "[object Function]";
2338
+ }
2339
+ module.exports = new Type("tag:yaml.org,2002:js/function", {
2340
+ kind: "scalar",
2341
+ resolve: resolveJavascriptFunction,
2342
+ construct: constructJavascriptFunction,
2343
+ predicate: isFunction,
2344
+ represent: representJavascriptFunction
2345
+ });
2346
+ }
2347
+ });
2348
+
2349
+ // ../../node_modules/front-matter/node_modules/js-yaml/lib/js-yaml/schema/default_full.js
2350
+ var require_default_full = __commonJS({
2351
+ "../../node_modules/front-matter/node_modules/js-yaml/lib/js-yaml/schema/default_full.js"(exports, module) {
2352
+ "use strict";
2353
+ init_esm_shims();
2354
+ var Schema = require_schema();
2355
+ module.exports = Schema.DEFAULT = new Schema({
2356
+ include: [
2357
+ require_default_safe()
2358
+ ],
2359
+ explicit: [
2360
+ require_undefined(),
2361
+ require_regexp(),
2362
+ require_function()
2363
+ ]
2364
+ });
2365
+ }
2366
+ });
2367
+
2368
+ // ../../node_modules/front-matter/node_modules/js-yaml/lib/js-yaml/loader.js
2369
+ var require_loader = __commonJS({
2370
+ "../../node_modules/front-matter/node_modules/js-yaml/lib/js-yaml/loader.js"(exports, module) {
2371
+ "use strict";
2372
+ init_esm_shims();
2373
+ var common = require_common();
2374
+ var YAMLException = require_exception();
2375
+ var Mark = require_mark();
2376
+ var DEFAULT_SAFE_SCHEMA = require_default_safe();
2377
+ var DEFAULT_FULL_SCHEMA = require_default_full();
2378
+ var _hasOwnProperty = Object.prototype.hasOwnProperty;
2379
+ var CONTEXT_FLOW_IN = 1;
2380
+ var CONTEXT_FLOW_OUT = 2;
2381
+ var CONTEXT_BLOCK_IN = 3;
2382
+ var CONTEXT_BLOCK_OUT = 4;
2383
+ var CHOMPING_CLIP = 1;
2384
+ var CHOMPING_STRIP = 2;
2385
+ var CHOMPING_KEEP = 3;
2386
+ var PATTERN_NON_PRINTABLE = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;
2387
+ var PATTERN_NON_ASCII_LINE_BREAKS = /[\x85\u2028\u2029]/;
2388
+ var PATTERN_FLOW_INDICATORS = /[,\[\]\{\}]/;
2389
+ var PATTERN_TAG_HANDLE = /^(?:!|!!|![a-z\-]+!)$/i;
2390
+ var PATTERN_TAG_URI = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
2391
+ function _class(obj) {
2392
+ return Object.prototype.toString.call(obj);
2393
+ }
2394
+ function is_EOL(c) {
2395
+ return c === 10 || c === 13;
2396
+ }
2397
+ function is_WHITE_SPACE(c) {
2398
+ return c === 9 || c === 32;
2399
+ }
2400
+ function is_WS_OR_EOL(c) {
2401
+ return c === 9 || c === 32 || c === 10 || c === 13;
2402
+ }
2403
+ function is_FLOW_INDICATOR(c) {
2404
+ return c === 44 || c === 91 || c === 93 || c === 123 || c === 125;
2405
+ }
2406
+ function fromHexCode(c) {
2407
+ var lc;
2408
+ if (48 <= c && c <= 57) {
2409
+ return c - 48;
2410
+ }
2411
+ lc = c | 32;
2412
+ if (97 <= lc && lc <= 102) {
2413
+ return lc - 97 + 10;
2414
+ }
2415
+ return -1;
2416
+ }
2417
+ function escapedHexLen(c) {
2418
+ if (c === 120) {
2419
+ return 2;
2420
+ }
2421
+ if (c === 117) {
2422
+ return 4;
2423
+ }
2424
+ if (c === 85) {
2425
+ return 8;
2426
+ }
2427
+ return 0;
2428
+ }
2429
+ function fromDecimalCode(c) {
2430
+ if (48 <= c && c <= 57) {
2431
+ return c - 48;
2432
+ }
2433
+ return -1;
2434
+ }
2435
+ function simpleEscapeSequence(c) {
2436
+ return c === 48 ? "\0" : c === 97 ? "\x07" : c === 98 ? "\b" : c === 116 ? " " : c === 9 ? " " : c === 110 ? "\n" : c === 118 ? "\v" : c === 102 ? "\f" : c === 114 ? "\r" : c === 101 ? "\x1B" : c === 32 ? " " : c === 34 ? '"' : c === 47 ? "/" : c === 92 ? "\\" : c === 78 ? "\x85" : c === 95 ? "\xA0" : c === 76 ? "\u2028" : c === 80 ? "\u2029" : "";
2437
+ }
2438
+ function charFromCodepoint(c) {
2439
+ if (c <= 65535) {
2440
+ return String.fromCharCode(c);
2441
+ }
2442
+ return String.fromCharCode(
2443
+ (c - 65536 >> 10) + 55296,
2444
+ (c - 65536 & 1023) + 56320
2445
+ );
2446
+ }
2447
+ var simpleEscapeCheck = new Array(256);
2448
+ var simpleEscapeMap = new Array(256);
2449
+ for (i = 0; i < 256; i++) {
2450
+ simpleEscapeCheck[i] = simpleEscapeSequence(i) ? 1 : 0;
2451
+ simpleEscapeMap[i] = simpleEscapeSequence(i);
2452
+ }
2453
+ var i;
2454
+ function State(input, options) {
2455
+ this.input = input;
2456
+ this.filename = options["filename"] || null;
2457
+ this.schema = options["schema"] || DEFAULT_FULL_SCHEMA;
2458
+ this.onWarning = options["onWarning"] || null;
2459
+ this.legacy = options["legacy"] || false;
2460
+ this.json = options["json"] || false;
2461
+ this.listener = options["listener"] || null;
2462
+ this.implicitTypes = this.schema.compiledImplicit;
2463
+ this.typeMap = this.schema.compiledTypeMap;
2464
+ this.length = input.length;
2465
+ this.position = 0;
2466
+ this.line = 0;
2467
+ this.lineStart = 0;
2468
+ this.lineIndent = 0;
2469
+ this.documents = [];
2470
+ }
2471
+ function generateError(state, message) {
2472
+ return new YAMLException(
2473
+ message,
2474
+ new Mark(state.filename, state.input, state.position, state.line, state.position - state.lineStart)
2475
+ );
2476
+ }
2477
+ function throwError(state, message) {
2478
+ throw generateError(state, message);
2479
+ }
2480
+ function throwWarning(state, message) {
2481
+ if (state.onWarning) {
2482
+ state.onWarning.call(null, generateError(state, message));
2483
+ }
2484
+ }
2485
+ var directiveHandlers = {
2486
+ YAML: function handleYamlDirective(state, name, args) {
2487
+ var match, major, minor;
2488
+ if (state.version !== null) {
2489
+ throwError(state, "duplication of %YAML directive");
2490
+ }
2491
+ if (args.length !== 1) {
2492
+ throwError(state, "YAML directive accepts exactly one argument");
2493
+ }
2494
+ match = /^([0-9]+)\.([0-9]+)$/.exec(args[0]);
2495
+ if (match === null) {
2496
+ throwError(state, "ill-formed argument of the YAML directive");
2497
+ }
2498
+ major = parseInt(match[1], 10);
2499
+ minor = parseInt(match[2], 10);
2500
+ if (major !== 1) {
2501
+ throwError(state, "unacceptable YAML version of the document");
2502
+ }
2503
+ state.version = args[0];
2504
+ state.checkLineBreaks = minor < 2;
2505
+ if (minor !== 1 && minor !== 2) {
2506
+ throwWarning(state, "unsupported YAML version of the document");
2507
+ }
2508
+ },
2509
+ TAG: function handleTagDirective(state, name, args) {
2510
+ var handle, prefix;
2511
+ if (args.length !== 2) {
2512
+ throwError(state, "TAG directive accepts exactly two arguments");
2513
+ }
2514
+ handle = args[0];
2515
+ prefix = args[1];
2516
+ if (!PATTERN_TAG_HANDLE.test(handle)) {
2517
+ throwError(state, "ill-formed tag handle (first argument) of the TAG directive");
2518
+ }
2519
+ if (_hasOwnProperty.call(state.tagMap, handle)) {
2520
+ throwError(state, 'there is a previously declared suffix for "' + handle + '" tag handle');
2521
+ }
2522
+ if (!PATTERN_TAG_URI.test(prefix)) {
2523
+ throwError(state, "ill-formed tag prefix (second argument) of the TAG directive");
2524
+ }
2525
+ state.tagMap[handle] = prefix;
2526
+ }
2527
+ };
2528
+ function captureSegment(state, start, end, checkJson) {
2529
+ var _position, _length, _character, _result;
2530
+ if (start < end) {
2531
+ _result = state.input.slice(start, end);
2532
+ if (checkJson) {
2533
+ for (_position = 0, _length = _result.length; _position < _length; _position += 1) {
2534
+ _character = _result.charCodeAt(_position);
2535
+ if (!(_character === 9 || 32 <= _character && _character <= 1114111)) {
2536
+ throwError(state, "expected valid JSON character");
2537
+ }
2538
+ }
2539
+ } else if (PATTERN_NON_PRINTABLE.test(_result)) {
2540
+ throwError(state, "the stream contains non-printable characters");
2541
+ }
2542
+ state.result += _result;
2543
+ }
2544
+ }
2545
+ function mergeMappings(state, destination, source, overridableKeys) {
2546
+ var sourceKeys, key, index, quantity;
2547
+ if (!common.isObject(source)) {
2548
+ throwError(state, "cannot merge mappings; the provided source object is unacceptable");
2549
+ }
2550
+ sourceKeys = Object.keys(source);
2551
+ for (index = 0, quantity = sourceKeys.length; index < quantity; index += 1) {
2552
+ key = sourceKeys[index];
2553
+ if (!_hasOwnProperty.call(destination, key)) {
2554
+ destination[key] = source[key];
2555
+ overridableKeys[key] = true;
2556
+ }
2557
+ }
2558
+ }
2559
+ function storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, startLine, startPos) {
2560
+ var index, quantity;
2561
+ if (Array.isArray(keyNode)) {
2562
+ keyNode = Array.prototype.slice.call(keyNode);
2563
+ for (index = 0, quantity = keyNode.length; index < quantity; index += 1) {
2564
+ if (Array.isArray(keyNode[index])) {
2565
+ throwError(state, "nested arrays are not supported inside keys");
2566
+ }
2567
+ if (typeof keyNode === "object" && _class(keyNode[index]) === "[object Object]") {
2568
+ keyNode[index] = "[object Object]";
2569
+ }
2570
+ }
2571
+ }
2572
+ if (typeof keyNode === "object" && _class(keyNode) === "[object Object]") {
2573
+ keyNode = "[object Object]";
2574
+ }
2575
+ keyNode = String(keyNode);
2576
+ if (_result === null) {
2577
+ _result = {};
2578
+ }
2579
+ if (keyTag === "tag:yaml.org,2002:merge") {
2580
+ if (Array.isArray(valueNode)) {
2581
+ for (index = 0, quantity = valueNode.length; index < quantity; index += 1) {
2582
+ mergeMappings(state, _result, valueNode[index], overridableKeys);
2583
+ }
2584
+ } else {
2585
+ mergeMappings(state, _result, valueNode, overridableKeys);
2586
+ }
2587
+ } else {
2588
+ if (!state.json && !_hasOwnProperty.call(overridableKeys, keyNode) && _hasOwnProperty.call(_result, keyNode)) {
2589
+ state.line = startLine || state.line;
2590
+ state.position = startPos || state.position;
2591
+ throwError(state, "duplicated mapping key");
2592
+ }
2593
+ _result[keyNode] = valueNode;
2594
+ delete overridableKeys[keyNode];
2595
+ }
2596
+ return _result;
2597
+ }
2598
+ function readLineBreak(state) {
2599
+ var ch;
2600
+ ch = state.input.charCodeAt(state.position);
2601
+ if (ch === 10) {
2602
+ state.position++;
2603
+ } else if (ch === 13) {
2604
+ state.position++;
2605
+ if (state.input.charCodeAt(state.position) === 10) {
2606
+ state.position++;
2607
+ }
2608
+ } else {
2609
+ throwError(state, "a line break is expected");
2610
+ }
2611
+ state.line += 1;
2612
+ state.lineStart = state.position;
2613
+ }
2614
+ function skipSeparationSpace(state, allowComments, checkIndent) {
2615
+ var lineBreaks = 0, ch = state.input.charCodeAt(state.position);
2616
+ while (ch !== 0) {
2617
+ while (is_WHITE_SPACE(ch)) {
2618
+ ch = state.input.charCodeAt(++state.position);
2619
+ }
2620
+ if (allowComments && ch === 35) {
2621
+ do {
2622
+ ch = state.input.charCodeAt(++state.position);
2623
+ } while (ch !== 10 && ch !== 13 && ch !== 0);
2624
+ }
2625
+ if (is_EOL(ch)) {
2626
+ readLineBreak(state);
2627
+ ch = state.input.charCodeAt(state.position);
2628
+ lineBreaks++;
2629
+ state.lineIndent = 0;
2630
+ while (ch === 32) {
2631
+ state.lineIndent++;
2632
+ ch = state.input.charCodeAt(++state.position);
2633
+ }
2634
+ } else {
2635
+ break;
2636
+ }
2637
+ }
2638
+ if (checkIndent !== -1 && lineBreaks !== 0 && state.lineIndent < checkIndent) {
2639
+ throwWarning(state, "deficient indentation");
2640
+ }
2641
+ return lineBreaks;
2642
+ }
2643
+ function testDocumentSeparator(state) {
2644
+ var _position = state.position, ch;
2645
+ ch = state.input.charCodeAt(_position);
2646
+ if ((ch === 45 || ch === 46) && ch === state.input.charCodeAt(_position + 1) && ch === state.input.charCodeAt(_position + 2)) {
2647
+ _position += 3;
2648
+ ch = state.input.charCodeAt(_position);
2649
+ if (ch === 0 || is_WS_OR_EOL(ch)) {
2650
+ return true;
2651
+ }
2652
+ }
2653
+ return false;
2654
+ }
2655
+ function writeFoldedLines(state, count) {
2656
+ if (count === 1) {
2657
+ state.result += " ";
2658
+ } else if (count > 1) {
2659
+ state.result += common.repeat("\n", count - 1);
2660
+ }
2661
+ }
2662
+ function readPlainScalar(state, nodeIndent, withinFlowCollection) {
2663
+ var preceding, following, captureStart, captureEnd, hasPendingContent, _line, _lineStart, _lineIndent, _kind = state.kind, _result = state.result, ch;
2664
+ ch = state.input.charCodeAt(state.position);
2665
+ if (is_WS_OR_EOL(ch) || is_FLOW_INDICATOR(ch) || ch === 35 || ch === 38 || ch === 42 || ch === 33 || ch === 124 || ch === 62 || ch === 39 || ch === 34 || ch === 37 || ch === 64 || ch === 96) {
2666
+ return false;
2667
+ }
2668
+ if (ch === 63 || ch === 45) {
2669
+ following = state.input.charCodeAt(state.position + 1);
2670
+ if (is_WS_OR_EOL(following) || withinFlowCollection && is_FLOW_INDICATOR(following)) {
2671
+ return false;
2672
+ }
2673
+ }
2674
+ state.kind = "scalar";
2675
+ state.result = "";
2676
+ captureStart = captureEnd = state.position;
2677
+ hasPendingContent = false;
2678
+ while (ch !== 0) {
2679
+ if (ch === 58) {
2680
+ following = state.input.charCodeAt(state.position + 1);
2681
+ if (is_WS_OR_EOL(following) || withinFlowCollection && is_FLOW_INDICATOR(following)) {
2682
+ break;
2683
+ }
2684
+ } else if (ch === 35) {
2685
+ preceding = state.input.charCodeAt(state.position - 1);
2686
+ if (is_WS_OR_EOL(preceding)) {
2687
+ break;
2688
+ }
2689
+ } else if (state.position === state.lineStart && testDocumentSeparator(state) || withinFlowCollection && is_FLOW_INDICATOR(ch)) {
2690
+ break;
2691
+ } else if (is_EOL(ch)) {
2692
+ _line = state.line;
2693
+ _lineStart = state.lineStart;
2694
+ _lineIndent = state.lineIndent;
2695
+ skipSeparationSpace(state, false, -1);
2696
+ if (state.lineIndent >= nodeIndent) {
2697
+ hasPendingContent = true;
2698
+ ch = state.input.charCodeAt(state.position);
2699
+ continue;
2700
+ } else {
2701
+ state.position = captureEnd;
2702
+ state.line = _line;
2703
+ state.lineStart = _lineStart;
2704
+ state.lineIndent = _lineIndent;
2705
+ break;
2706
+ }
2707
+ }
2708
+ if (hasPendingContent) {
2709
+ captureSegment(state, captureStart, captureEnd, false);
2710
+ writeFoldedLines(state, state.line - _line);
2711
+ captureStart = captureEnd = state.position;
2712
+ hasPendingContent = false;
2713
+ }
2714
+ if (!is_WHITE_SPACE(ch)) {
2715
+ captureEnd = state.position + 1;
2716
+ }
2717
+ ch = state.input.charCodeAt(++state.position);
2718
+ }
2719
+ captureSegment(state, captureStart, captureEnd, false);
2720
+ if (state.result) {
2721
+ return true;
2722
+ }
2723
+ state.kind = _kind;
2724
+ state.result = _result;
2725
+ return false;
2726
+ }
2727
+ function readSingleQuotedScalar(state, nodeIndent) {
2728
+ var ch, captureStart, captureEnd;
2729
+ ch = state.input.charCodeAt(state.position);
2730
+ if (ch !== 39) {
2731
+ return false;
2732
+ }
2733
+ state.kind = "scalar";
2734
+ state.result = "";
2735
+ state.position++;
2736
+ captureStart = captureEnd = state.position;
2737
+ while ((ch = state.input.charCodeAt(state.position)) !== 0) {
2738
+ if (ch === 39) {
2739
+ captureSegment(state, captureStart, state.position, true);
2740
+ ch = state.input.charCodeAt(++state.position);
2741
+ if (ch === 39) {
2742
+ captureStart = state.position;
2743
+ state.position++;
2744
+ captureEnd = state.position;
2745
+ } else {
2746
+ return true;
2747
+ }
2748
+ } else if (is_EOL(ch)) {
2749
+ captureSegment(state, captureStart, captureEnd, true);
2750
+ writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));
2751
+ captureStart = captureEnd = state.position;
2752
+ } else if (state.position === state.lineStart && testDocumentSeparator(state)) {
2753
+ throwError(state, "unexpected end of the document within a single quoted scalar");
2754
+ } else {
2755
+ state.position++;
2756
+ captureEnd = state.position;
2757
+ }
2758
+ }
2759
+ throwError(state, "unexpected end of the stream within a single quoted scalar");
2760
+ }
2761
+ function readDoubleQuotedScalar(state, nodeIndent) {
2762
+ var captureStart, captureEnd, hexLength, hexResult, tmp, ch;
2763
+ ch = state.input.charCodeAt(state.position);
2764
+ if (ch !== 34) {
2765
+ return false;
2766
+ }
2767
+ state.kind = "scalar";
2768
+ state.result = "";
2769
+ state.position++;
2770
+ captureStart = captureEnd = state.position;
2771
+ while ((ch = state.input.charCodeAt(state.position)) !== 0) {
2772
+ if (ch === 34) {
2773
+ captureSegment(state, captureStart, state.position, true);
2774
+ state.position++;
2775
+ return true;
2776
+ } else if (ch === 92) {
2777
+ captureSegment(state, captureStart, state.position, true);
2778
+ ch = state.input.charCodeAt(++state.position);
2779
+ if (is_EOL(ch)) {
2780
+ skipSeparationSpace(state, false, nodeIndent);
2781
+ } else if (ch < 256 && simpleEscapeCheck[ch]) {
2782
+ state.result += simpleEscapeMap[ch];
2783
+ state.position++;
2784
+ } else if ((tmp = escapedHexLen(ch)) > 0) {
2785
+ hexLength = tmp;
2786
+ hexResult = 0;
2787
+ for (; hexLength > 0; hexLength--) {
2788
+ ch = state.input.charCodeAt(++state.position);
2789
+ if ((tmp = fromHexCode(ch)) >= 0) {
2790
+ hexResult = (hexResult << 4) + tmp;
2791
+ } else {
2792
+ throwError(state, "expected hexadecimal character");
2793
+ }
2794
+ }
2795
+ state.result += charFromCodepoint(hexResult);
2796
+ state.position++;
2797
+ } else {
2798
+ throwError(state, "unknown escape sequence");
2799
+ }
2800
+ captureStart = captureEnd = state.position;
2801
+ } else if (is_EOL(ch)) {
2802
+ captureSegment(state, captureStart, captureEnd, true);
2803
+ writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));
2804
+ captureStart = captureEnd = state.position;
2805
+ } else if (state.position === state.lineStart && testDocumentSeparator(state)) {
2806
+ throwError(state, "unexpected end of the document within a double quoted scalar");
2807
+ } else {
2808
+ state.position++;
2809
+ captureEnd = state.position;
2810
+ }
2811
+ }
2812
+ throwError(state, "unexpected end of the stream within a double quoted scalar");
2813
+ }
2814
+ function readFlowCollection(state, nodeIndent) {
2815
+ var readNext = true, _line, _tag = state.tag, _result, _anchor = state.anchor, following, terminator, isPair, isExplicitPair, isMapping, overridableKeys = {}, keyNode, keyTag, valueNode, ch;
2816
+ ch = state.input.charCodeAt(state.position);
2817
+ if (ch === 91) {
2818
+ terminator = 93;
2819
+ isMapping = false;
2820
+ _result = [];
2821
+ } else if (ch === 123) {
2822
+ terminator = 125;
2823
+ isMapping = true;
2824
+ _result = {};
2825
+ } else {
2826
+ return false;
2827
+ }
2828
+ if (state.anchor !== null) {
2829
+ state.anchorMap[state.anchor] = _result;
2830
+ }
2831
+ ch = state.input.charCodeAt(++state.position);
2832
+ while (ch !== 0) {
2833
+ skipSeparationSpace(state, true, nodeIndent);
2834
+ ch = state.input.charCodeAt(state.position);
2835
+ if (ch === terminator) {
2836
+ state.position++;
2837
+ state.tag = _tag;
2838
+ state.anchor = _anchor;
2839
+ state.kind = isMapping ? "mapping" : "sequence";
2840
+ state.result = _result;
2841
+ return true;
2842
+ } else if (!readNext) {
2843
+ throwError(state, "missed comma between flow collection entries");
2844
+ }
2845
+ keyTag = keyNode = valueNode = null;
2846
+ isPair = isExplicitPair = false;
2847
+ if (ch === 63) {
2848
+ following = state.input.charCodeAt(state.position + 1);
2849
+ if (is_WS_OR_EOL(following)) {
2850
+ isPair = isExplicitPair = true;
2851
+ state.position++;
2852
+ skipSeparationSpace(state, true, nodeIndent);
2853
+ }
2854
+ }
2855
+ _line = state.line;
2856
+ composeNode(state, nodeIndent, CONTEXT_FLOW_IN, false, true);
2857
+ keyTag = state.tag;
2858
+ keyNode = state.result;
2859
+ skipSeparationSpace(state, true, nodeIndent);
2860
+ ch = state.input.charCodeAt(state.position);
2861
+ if ((isExplicitPair || state.line === _line) && ch === 58) {
2862
+ isPair = true;
2863
+ ch = state.input.charCodeAt(++state.position);
2864
+ skipSeparationSpace(state, true, nodeIndent);
2865
+ composeNode(state, nodeIndent, CONTEXT_FLOW_IN, false, true);
2866
+ valueNode = state.result;
2867
+ }
2868
+ if (isMapping) {
2869
+ storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode);
2870
+ } else if (isPair) {
2871
+ _result.push(storeMappingPair(state, null, overridableKeys, keyTag, keyNode, valueNode));
2872
+ } else {
2873
+ _result.push(keyNode);
2874
+ }
2875
+ skipSeparationSpace(state, true, nodeIndent);
2876
+ ch = state.input.charCodeAt(state.position);
2877
+ if (ch === 44) {
2878
+ readNext = true;
2879
+ ch = state.input.charCodeAt(++state.position);
2880
+ } else {
2881
+ readNext = false;
2882
+ }
2883
+ }
2884
+ throwError(state, "unexpected end of the stream within a flow collection");
2885
+ }
2886
+ function readBlockScalar(state, nodeIndent) {
2887
+ var captureStart, folding, chomping = CHOMPING_CLIP, didReadContent = false, detectedIndent = false, textIndent = nodeIndent, emptyLines = 0, atMoreIndented = false, tmp, ch;
2888
+ ch = state.input.charCodeAt(state.position);
2889
+ if (ch === 124) {
2890
+ folding = false;
2891
+ } else if (ch === 62) {
2892
+ folding = true;
2893
+ } else {
2894
+ return false;
2895
+ }
2896
+ state.kind = "scalar";
2897
+ state.result = "";
2898
+ while (ch !== 0) {
2899
+ ch = state.input.charCodeAt(++state.position);
2900
+ if (ch === 43 || ch === 45) {
2901
+ if (CHOMPING_CLIP === chomping) {
2902
+ chomping = ch === 43 ? CHOMPING_KEEP : CHOMPING_STRIP;
2903
+ } else {
2904
+ throwError(state, "repeat of a chomping mode identifier");
2905
+ }
2906
+ } else if ((tmp = fromDecimalCode(ch)) >= 0) {
2907
+ if (tmp === 0) {
2908
+ throwError(state, "bad explicit indentation width of a block scalar; it cannot be less than one");
2909
+ } else if (!detectedIndent) {
2910
+ textIndent = nodeIndent + tmp - 1;
2911
+ detectedIndent = true;
2912
+ } else {
2913
+ throwError(state, "repeat of an indentation width identifier");
2914
+ }
2915
+ } else {
2916
+ break;
2917
+ }
2918
+ }
2919
+ if (is_WHITE_SPACE(ch)) {
2920
+ do {
2921
+ ch = state.input.charCodeAt(++state.position);
2922
+ } while (is_WHITE_SPACE(ch));
2923
+ if (ch === 35) {
2924
+ do {
2925
+ ch = state.input.charCodeAt(++state.position);
2926
+ } while (!is_EOL(ch) && ch !== 0);
2927
+ }
2928
+ }
2929
+ while (ch !== 0) {
2930
+ readLineBreak(state);
2931
+ state.lineIndent = 0;
2932
+ ch = state.input.charCodeAt(state.position);
2933
+ while ((!detectedIndent || state.lineIndent < textIndent) && ch === 32) {
2934
+ state.lineIndent++;
2935
+ ch = state.input.charCodeAt(++state.position);
2936
+ }
2937
+ if (!detectedIndent && state.lineIndent > textIndent) {
2938
+ textIndent = state.lineIndent;
2939
+ }
2940
+ if (is_EOL(ch)) {
2941
+ emptyLines++;
2942
+ continue;
2943
+ }
2944
+ if (state.lineIndent < textIndent) {
2945
+ if (chomping === CHOMPING_KEEP) {
2946
+ state.result += common.repeat("\n", didReadContent ? 1 + emptyLines : emptyLines);
2947
+ } else if (chomping === CHOMPING_CLIP) {
2948
+ if (didReadContent) {
2949
+ state.result += "\n";
2950
+ }
2951
+ }
2952
+ break;
2953
+ }
2954
+ if (folding) {
2955
+ if (is_WHITE_SPACE(ch)) {
2956
+ atMoreIndented = true;
2957
+ state.result += common.repeat("\n", didReadContent ? 1 + emptyLines : emptyLines);
2958
+ } else if (atMoreIndented) {
2959
+ atMoreIndented = false;
2960
+ state.result += common.repeat("\n", emptyLines + 1);
2961
+ } else if (emptyLines === 0) {
2962
+ if (didReadContent) {
2963
+ state.result += " ";
2964
+ }
2965
+ } else {
2966
+ state.result += common.repeat("\n", emptyLines);
2967
+ }
2968
+ } else {
2969
+ state.result += common.repeat("\n", didReadContent ? 1 + emptyLines : emptyLines);
2970
+ }
2971
+ didReadContent = true;
2972
+ detectedIndent = true;
2973
+ emptyLines = 0;
2974
+ captureStart = state.position;
2975
+ while (!is_EOL(ch) && ch !== 0) {
2976
+ ch = state.input.charCodeAt(++state.position);
2977
+ }
2978
+ captureSegment(state, captureStart, state.position, false);
2979
+ }
2980
+ return true;
2981
+ }
2982
+ function readBlockSequence(state, nodeIndent) {
2983
+ var _line, _tag = state.tag, _anchor = state.anchor, _result = [], following, detected = false, ch;
2984
+ if (state.anchor !== null) {
2985
+ state.anchorMap[state.anchor] = _result;
2986
+ }
2987
+ ch = state.input.charCodeAt(state.position);
2988
+ while (ch !== 0) {
2989
+ if (ch !== 45) {
2990
+ break;
2991
+ }
2992
+ following = state.input.charCodeAt(state.position + 1);
2993
+ if (!is_WS_OR_EOL(following)) {
2994
+ break;
2995
+ }
2996
+ detected = true;
2997
+ state.position++;
2998
+ if (skipSeparationSpace(state, true, -1)) {
2999
+ if (state.lineIndent <= nodeIndent) {
3000
+ _result.push(null);
3001
+ ch = state.input.charCodeAt(state.position);
3002
+ continue;
3003
+ }
3004
+ }
3005
+ _line = state.line;
3006
+ composeNode(state, nodeIndent, CONTEXT_BLOCK_IN, false, true);
3007
+ _result.push(state.result);
3008
+ skipSeparationSpace(state, true, -1);
3009
+ ch = state.input.charCodeAt(state.position);
3010
+ if ((state.line === _line || state.lineIndent > nodeIndent) && ch !== 0) {
3011
+ throwError(state, "bad indentation of a sequence entry");
3012
+ } else if (state.lineIndent < nodeIndent) {
3013
+ break;
3014
+ }
3015
+ }
3016
+ if (detected) {
3017
+ state.tag = _tag;
3018
+ state.anchor = _anchor;
3019
+ state.kind = "sequence";
3020
+ state.result = _result;
3021
+ return true;
3022
+ }
3023
+ return false;
3024
+ }
3025
+ function readBlockMapping(state, nodeIndent, flowIndent) {
3026
+ var following, allowCompact, _line, _pos, _tag = state.tag, _anchor = state.anchor, _result = {}, overridableKeys = {}, keyTag = null, keyNode = null, valueNode = null, atExplicitKey = false, detected = false, ch;
3027
+ if (state.anchor !== null) {
3028
+ state.anchorMap[state.anchor] = _result;
3029
+ }
3030
+ ch = state.input.charCodeAt(state.position);
3031
+ while (ch !== 0) {
3032
+ following = state.input.charCodeAt(state.position + 1);
3033
+ _line = state.line;
3034
+ _pos = state.position;
3035
+ if ((ch === 63 || ch === 58) && is_WS_OR_EOL(following)) {
3036
+ if (ch === 63) {
3037
+ if (atExplicitKey) {
3038
+ storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null);
3039
+ keyTag = keyNode = valueNode = null;
3040
+ }
3041
+ detected = true;
3042
+ atExplicitKey = true;
3043
+ allowCompact = true;
3044
+ } else if (atExplicitKey) {
3045
+ atExplicitKey = false;
3046
+ allowCompact = true;
3047
+ } else {
3048
+ throwError(state, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line");
3049
+ }
3050
+ state.position += 1;
3051
+ ch = following;
3052
+ } else if (composeNode(state, flowIndent, CONTEXT_FLOW_OUT, false, true)) {
3053
+ if (state.line === _line) {
3054
+ ch = state.input.charCodeAt(state.position);
3055
+ while (is_WHITE_SPACE(ch)) {
3056
+ ch = state.input.charCodeAt(++state.position);
3057
+ }
3058
+ if (ch === 58) {
3059
+ ch = state.input.charCodeAt(++state.position);
3060
+ if (!is_WS_OR_EOL(ch)) {
3061
+ throwError(state, "a whitespace character is expected after the key-value separator within a block mapping");
3062
+ }
3063
+ if (atExplicitKey) {
3064
+ storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null);
3065
+ keyTag = keyNode = valueNode = null;
3066
+ }
3067
+ detected = true;
3068
+ atExplicitKey = false;
3069
+ allowCompact = false;
3070
+ keyTag = state.tag;
3071
+ keyNode = state.result;
3072
+ } else if (detected) {
3073
+ throwError(state, "can not read an implicit mapping pair; a colon is missed");
3074
+ } else {
3075
+ state.tag = _tag;
3076
+ state.anchor = _anchor;
3077
+ return true;
3078
+ }
3079
+ } else if (detected) {
3080
+ throwError(state, "can not read a block mapping entry; a multiline key may not be an implicit key");
3081
+ } else {
3082
+ state.tag = _tag;
3083
+ state.anchor = _anchor;
3084
+ return true;
3085
+ }
3086
+ } else {
3087
+ break;
3088
+ }
3089
+ if (state.line === _line || state.lineIndent > nodeIndent) {
3090
+ if (composeNode(state, nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact)) {
3091
+ if (atExplicitKey) {
3092
+ keyNode = state.result;
3093
+ } else {
3094
+ valueNode = state.result;
3095
+ }
3096
+ }
3097
+ if (!atExplicitKey) {
3098
+ storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _line, _pos);
3099
+ keyTag = keyNode = valueNode = null;
3100
+ }
3101
+ skipSeparationSpace(state, true, -1);
3102
+ ch = state.input.charCodeAt(state.position);
3103
+ }
3104
+ if (state.lineIndent > nodeIndent && ch !== 0) {
3105
+ throwError(state, "bad indentation of a mapping entry");
3106
+ } else if (state.lineIndent < nodeIndent) {
3107
+ break;
3108
+ }
3109
+ }
3110
+ if (atExplicitKey) {
3111
+ storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null);
3112
+ }
3113
+ if (detected) {
3114
+ state.tag = _tag;
3115
+ state.anchor = _anchor;
3116
+ state.kind = "mapping";
3117
+ state.result = _result;
3118
+ }
3119
+ return detected;
3120
+ }
3121
+ function readTagProperty(state) {
3122
+ var _position, isVerbatim = false, isNamed = false, tagHandle, tagName, ch;
3123
+ ch = state.input.charCodeAt(state.position);
3124
+ if (ch !== 33) return false;
3125
+ if (state.tag !== null) {
3126
+ throwError(state, "duplication of a tag property");
3127
+ }
3128
+ ch = state.input.charCodeAt(++state.position);
3129
+ if (ch === 60) {
3130
+ isVerbatim = true;
3131
+ ch = state.input.charCodeAt(++state.position);
3132
+ } else if (ch === 33) {
3133
+ isNamed = true;
3134
+ tagHandle = "!!";
3135
+ ch = state.input.charCodeAt(++state.position);
3136
+ } else {
3137
+ tagHandle = "!";
3138
+ }
3139
+ _position = state.position;
3140
+ if (isVerbatim) {
3141
+ do {
3142
+ ch = state.input.charCodeAt(++state.position);
3143
+ } while (ch !== 0 && ch !== 62);
3144
+ if (state.position < state.length) {
3145
+ tagName = state.input.slice(_position, state.position);
3146
+ ch = state.input.charCodeAt(++state.position);
3147
+ } else {
3148
+ throwError(state, "unexpected end of the stream within a verbatim tag");
3149
+ }
3150
+ } else {
3151
+ while (ch !== 0 && !is_WS_OR_EOL(ch)) {
3152
+ if (ch === 33) {
3153
+ if (!isNamed) {
3154
+ tagHandle = state.input.slice(_position - 1, state.position + 1);
3155
+ if (!PATTERN_TAG_HANDLE.test(tagHandle)) {
3156
+ throwError(state, "named tag handle cannot contain such characters");
3157
+ }
3158
+ isNamed = true;
3159
+ _position = state.position + 1;
3160
+ } else {
3161
+ throwError(state, "tag suffix cannot contain exclamation marks");
3162
+ }
3163
+ }
3164
+ ch = state.input.charCodeAt(++state.position);
3165
+ }
3166
+ tagName = state.input.slice(_position, state.position);
3167
+ if (PATTERN_FLOW_INDICATORS.test(tagName)) {
3168
+ throwError(state, "tag suffix cannot contain flow indicator characters");
3169
+ }
3170
+ }
3171
+ if (tagName && !PATTERN_TAG_URI.test(tagName)) {
3172
+ throwError(state, "tag name cannot contain such characters: " + tagName);
3173
+ }
3174
+ if (isVerbatim) {
3175
+ state.tag = tagName;
3176
+ } else if (_hasOwnProperty.call(state.tagMap, tagHandle)) {
3177
+ state.tag = state.tagMap[tagHandle] + tagName;
3178
+ } else if (tagHandle === "!") {
3179
+ state.tag = "!" + tagName;
3180
+ } else if (tagHandle === "!!") {
3181
+ state.tag = "tag:yaml.org,2002:" + tagName;
3182
+ } else {
3183
+ throwError(state, 'undeclared tag handle "' + tagHandle + '"');
3184
+ }
3185
+ return true;
3186
+ }
3187
+ function readAnchorProperty(state) {
3188
+ var _position, ch;
3189
+ ch = state.input.charCodeAt(state.position);
3190
+ if (ch !== 38) return false;
3191
+ if (state.anchor !== null) {
3192
+ throwError(state, "duplication of an anchor property");
3193
+ }
3194
+ ch = state.input.charCodeAt(++state.position);
3195
+ _position = state.position;
3196
+ while (ch !== 0 && !is_WS_OR_EOL(ch) && !is_FLOW_INDICATOR(ch)) {
3197
+ ch = state.input.charCodeAt(++state.position);
3198
+ }
3199
+ if (state.position === _position) {
3200
+ throwError(state, "name of an anchor node must contain at least one character");
3201
+ }
3202
+ state.anchor = state.input.slice(_position, state.position);
3203
+ return true;
3204
+ }
3205
+ function readAlias(state) {
3206
+ var _position, alias, ch;
3207
+ ch = state.input.charCodeAt(state.position);
3208
+ if (ch !== 42) return false;
3209
+ ch = state.input.charCodeAt(++state.position);
3210
+ _position = state.position;
3211
+ while (ch !== 0 && !is_WS_OR_EOL(ch) && !is_FLOW_INDICATOR(ch)) {
3212
+ ch = state.input.charCodeAt(++state.position);
3213
+ }
3214
+ if (state.position === _position) {
3215
+ throwError(state, "name of an alias node must contain at least one character");
3216
+ }
3217
+ alias = state.input.slice(_position, state.position);
3218
+ if (!_hasOwnProperty.call(state.anchorMap, alias)) {
3219
+ throwError(state, 'unidentified alias "' + alias + '"');
3220
+ }
3221
+ state.result = state.anchorMap[alias];
3222
+ skipSeparationSpace(state, true, -1);
3223
+ return true;
3224
+ }
3225
+ function composeNode(state, parentIndent, nodeContext, allowToSeek, allowCompact) {
3226
+ var allowBlockStyles, allowBlockScalars, allowBlockCollections, indentStatus = 1, atNewLine = false, hasContent = false, typeIndex, typeQuantity, type, flowIndent, blockIndent;
3227
+ if (state.listener !== null) {
3228
+ state.listener("open", state);
3229
+ }
3230
+ state.tag = null;
3231
+ state.anchor = null;
3232
+ state.kind = null;
3233
+ state.result = null;
3234
+ allowBlockStyles = allowBlockScalars = allowBlockCollections = CONTEXT_BLOCK_OUT === nodeContext || CONTEXT_BLOCK_IN === nodeContext;
3235
+ if (allowToSeek) {
3236
+ if (skipSeparationSpace(state, true, -1)) {
3237
+ atNewLine = true;
3238
+ if (state.lineIndent > parentIndent) {
3239
+ indentStatus = 1;
3240
+ } else if (state.lineIndent === parentIndent) {
3241
+ indentStatus = 0;
3242
+ } else if (state.lineIndent < parentIndent) {
3243
+ indentStatus = -1;
3244
+ }
3245
+ }
3246
+ }
3247
+ if (indentStatus === 1) {
3248
+ while (readTagProperty(state) || readAnchorProperty(state)) {
3249
+ if (skipSeparationSpace(state, true, -1)) {
3250
+ atNewLine = true;
3251
+ allowBlockCollections = allowBlockStyles;
3252
+ if (state.lineIndent > parentIndent) {
3253
+ indentStatus = 1;
3254
+ } else if (state.lineIndent === parentIndent) {
3255
+ indentStatus = 0;
3256
+ } else if (state.lineIndent < parentIndent) {
3257
+ indentStatus = -1;
3258
+ }
3259
+ } else {
3260
+ allowBlockCollections = false;
3261
+ }
3262
+ }
3263
+ }
3264
+ if (allowBlockCollections) {
3265
+ allowBlockCollections = atNewLine || allowCompact;
3266
+ }
3267
+ if (indentStatus === 1 || CONTEXT_BLOCK_OUT === nodeContext) {
3268
+ if (CONTEXT_FLOW_IN === nodeContext || CONTEXT_FLOW_OUT === nodeContext) {
3269
+ flowIndent = parentIndent;
3270
+ } else {
3271
+ flowIndent = parentIndent + 1;
3272
+ }
3273
+ blockIndent = state.position - state.lineStart;
3274
+ if (indentStatus === 1) {
3275
+ if (allowBlockCollections && (readBlockSequence(state, blockIndent) || readBlockMapping(state, blockIndent, flowIndent)) || readFlowCollection(state, flowIndent)) {
3276
+ hasContent = true;
3277
+ } else {
3278
+ if (allowBlockScalars && readBlockScalar(state, flowIndent) || readSingleQuotedScalar(state, flowIndent) || readDoubleQuotedScalar(state, flowIndent)) {
3279
+ hasContent = true;
3280
+ } else if (readAlias(state)) {
3281
+ hasContent = true;
3282
+ if (state.tag !== null || state.anchor !== null) {
3283
+ throwError(state, "alias node should not have any properties");
3284
+ }
3285
+ } else if (readPlainScalar(state, flowIndent, CONTEXT_FLOW_IN === nodeContext)) {
3286
+ hasContent = true;
3287
+ if (state.tag === null) {
3288
+ state.tag = "?";
3289
+ }
3290
+ }
3291
+ if (state.anchor !== null) {
3292
+ state.anchorMap[state.anchor] = state.result;
3293
+ }
3294
+ }
3295
+ } else if (indentStatus === 0) {
3296
+ hasContent = allowBlockCollections && readBlockSequence(state, blockIndent);
3297
+ }
3298
+ }
3299
+ if (state.tag !== null && state.tag !== "!") {
3300
+ if (state.tag === "?") {
3301
+ if (state.result !== null && state.kind !== "scalar") {
3302
+ throwError(state, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + state.kind + '"');
3303
+ }
3304
+ for (typeIndex = 0, typeQuantity = state.implicitTypes.length; typeIndex < typeQuantity; typeIndex += 1) {
3305
+ type = state.implicitTypes[typeIndex];
3306
+ if (type.resolve(state.result)) {
3307
+ state.result = type.construct(state.result);
3308
+ state.tag = type.tag;
3309
+ if (state.anchor !== null) {
3310
+ state.anchorMap[state.anchor] = state.result;
3311
+ }
3312
+ break;
3313
+ }
3314
+ }
3315
+ } else if (_hasOwnProperty.call(state.typeMap[state.kind || "fallback"], state.tag)) {
3316
+ type = state.typeMap[state.kind || "fallback"][state.tag];
3317
+ if (state.result !== null && type.kind !== state.kind) {
3318
+ throwError(state, "unacceptable node kind for !<" + state.tag + '> tag; it should be "' + type.kind + '", not "' + state.kind + '"');
3319
+ }
3320
+ if (!type.resolve(state.result)) {
3321
+ throwError(state, "cannot resolve a node with !<" + state.tag + "> explicit tag");
3322
+ } else {
3323
+ state.result = type.construct(state.result);
3324
+ if (state.anchor !== null) {
3325
+ state.anchorMap[state.anchor] = state.result;
3326
+ }
3327
+ }
3328
+ } else {
3329
+ throwError(state, "unknown tag !<" + state.tag + ">");
3330
+ }
3331
+ }
3332
+ if (state.listener !== null) {
3333
+ state.listener("close", state);
3334
+ }
3335
+ return state.tag !== null || state.anchor !== null || hasContent;
3336
+ }
3337
+ function readDocument(state) {
3338
+ var documentStart = state.position, _position, directiveName, directiveArgs, hasDirectives = false, ch;
3339
+ state.version = null;
3340
+ state.checkLineBreaks = state.legacy;
3341
+ state.tagMap = {};
3342
+ state.anchorMap = {};
3343
+ while ((ch = state.input.charCodeAt(state.position)) !== 0) {
3344
+ skipSeparationSpace(state, true, -1);
3345
+ ch = state.input.charCodeAt(state.position);
3346
+ if (state.lineIndent > 0 || ch !== 37) {
3347
+ break;
3348
+ }
3349
+ hasDirectives = true;
3350
+ ch = state.input.charCodeAt(++state.position);
3351
+ _position = state.position;
3352
+ while (ch !== 0 && !is_WS_OR_EOL(ch)) {
3353
+ ch = state.input.charCodeAt(++state.position);
3354
+ }
3355
+ directiveName = state.input.slice(_position, state.position);
3356
+ directiveArgs = [];
3357
+ if (directiveName.length < 1) {
3358
+ throwError(state, "directive name must not be less than one character in length");
3359
+ }
3360
+ while (ch !== 0) {
3361
+ while (is_WHITE_SPACE(ch)) {
3362
+ ch = state.input.charCodeAt(++state.position);
3363
+ }
3364
+ if (ch === 35) {
3365
+ do {
3366
+ ch = state.input.charCodeAt(++state.position);
3367
+ } while (ch !== 0 && !is_EOL(ch));
3368
+ break;
3369
+ }
3370
+ if (is_EOL(ch)) break;
3371
+ _position = state.position;
3372
+ while (ch !== 0 && !is_WS_OR_EOL(ch)) {
3373
+ ch = state.input.charCodeAt(++state.position);
3374
+ }
3375
+ directiveArgs.push(state.input.slice(_position, state.position));
3376
+ }
3377
+ if (ch !== 0) readLineBreak(state);
3378
+ if (_hasOwnProperty.call(directiveHandlers, directiveName)) {
3379
+ directiveHandlers[directiveName](state, directiveName, directiveArgs);
3380
+ } else {
3381
+ throwWarning(state, 'unknown document directive "' + directiveName + '"');
3382
+ }
3383
+ }
3384
+ skipSeparationSpace(state, true, -1);
3385
+ if (state.lineIndent === 0 && state.input.charCodeAt(state.position) === 45 && state.input.charCodeAt(state.position + 1) === 45 && state.input.charCodeAt(state.position + 2) === 45) {
3386
+ state.position += 3;
3387
+ skipSeparationSpace(state, true, -1);
3388
+ } else if (hasDirectives) {
3389
+ throwError(state, "directives end mark is expected");
3390
+ }
3391
+ composeNode(state, state.lineIndent - 1, CONTEXT_BLOCK_OUT, false, true);
3392
+ skipSeparationSpace(state, true, -1);
3393
+ if (state.checkLineBreaks && PATTERN_NON_ASCII_LINE_BREAKS.test(state.input.slice(documentStart, state.position))) {
3394
+ throwWarning(state, "non-ASCII line breaks are interpreted as content");
3395
+ }
3396
+ state.documents.push(state.result);
3397
+ if (state.position === state.lineStart && testDocumentSeparator(state)) {
3398
+ if (state.input.charCodeAt(state.position) === 46) {
3399
+ state.position += 3;
3400
+ skipSeparationSpace(state, true, -1);
3401
+ }
3402
+ return;
3403
+ }
3404
+ if (state.position < state.length - 1) {
3405
+ throwError(state, "end of the stream or a document separator is expected");
3406
+ } else {
3407
+ return;
3408
+ }
3409
+ }
3410
+ function loadDocuments(input, options) {
3411
+ input = String(input);
3412
+ options = options || {};
3413
+ if (input.length !== 0) {
3414
+ if (input.charCodeAt(input.length - 1) !== 10 && input.charCodeAt(input.length - 1) !== 13) {
3415
+ input += "\n";
3416
+ }
3417
+ if (input.charCodeAt(0) === 65279) {
3418
+ input = input.slice(1);
3419
+ }
3420
+ }
3421
+ var state = new State(input, options);
3422
+ var nullpos = input.indexOf("\0");
3423
+ if (nullpos !== -1) {
3424
+ state.position = nullpos;
3425
+ throwError(state, "null byte is not allowed in input");
3426
+ }
3427
+ state.input += "\0";
3428
+ while (state.input.charCodeAt(state.position) === 32) {
3429
+ state.lineIndent += 1;
3430
+ state.position += 1;
3431
+ }
3432
+ while (state.position < state.length - 1) {
3433
+ readDocument(state);
3434
+ }
3435
+ return state.documents;
3436
+ }
3437
+ function loadAll(input, iterator, options) {
3438
+ if (iterator !== null && typeof iterator === "object" && typeof options === "undefined") {
3439
+ options = iterator;
3440
+ iterator = null;
3441
+ }
3442
+ var documents = loadDocuments(input, options);
3443
+ if (typeof iterator !== "function") {
3444
+ return documents;
3445
+ }
3446
+ for (var index = 0, length = documents.length; index < length; index += 1) {
3447
+ iterator(documents[index]);
3448
+ }
3449
+ }
3450
+ function load(input, options) {
3451
+ var documents = loadDocuments(input, options);
3452
+ if (documents.length === 0) {
3453
+ return void 0;
3454
+ } else if (documents.length === 1) {
3455
+ return documents[0];
3456
+ }
3457
+ throw new YAMLException("expected a single document in the stream, but found more");
3458
+ }
3459
+ function safeLoadAll(input, iterator, options) {
3460
+ if (typeof iterator === "object" && iterator !== null && typeof options === "undefined") {
3461
+ options = iterator;
3462
+ iterator = null;
3463
+ }
3464
+ return loadAll(input, iterator, common.extend({ schema: DEFAULT_SAFE_SCHEMA }, options));
3465
+ }
3466
+ function safeLoad(input, options) {
3467
+ return load(input, common.extend({ schema: DEFAULT_SAFE_SCHEMA }, options));
3468
+ }
3469
+ module.exports.loadAll = loadAll;
3470
+ module.exports.load = load;
3471
+ module.exports.safeLoadAll = safeLoadAll;
3472
+ module.exports.safeLoad = safeLoad;
3473
+ }
3474
+ });
3475
+
3476
+ // ../../node_modules/front-matter/node_modules/js-yaml/lib/js-yaml/dumper.js
3477
+ var require_dumper = __commonJS({
3478
+ "../../node_modules/front-matter/node_modules/js-yaml/lib/js-yaml/dumper.js"(exports, module) {
3479
+ "use strict";
3480
+ init_esm_shims();
3481
+ var common = require_common();
3482
+ var YAMLException = require_exception();
3483
+ var DEFAULT_FULL_SCHEMA = require_default_full();
3484
+ var DEFAULT_SAFE_SCHEMA = require_default_safe();
3485
+ var _toString = Object.prototype.toString;
3486
+ var _hasOwnProperty = Object.prototype.hasOwnProperty;
3487
+ var CHAR_TAB = 9;
3488
+ var CHAR_LINE_FEED = 10;
3489
+ var CHAR_CARRIAGE_RETURN = 13;
3490
+ var CHAR_SPACE = 32;
3491
+ var CHAR_EXCLAMATION = 33;
3492
+ var CHAR_DOUBLE_QUOTE = 34;
3493
+ var CHAR_SHARP = 35;
3494
+ var CHAR_PERCENT = 37;
3495
+ var CHAR_AMPERSAND = 38;
3496
+ var CHAR_SINGLE_QUOTE = 39;
3497
+ var CHAR_ASTERISK = 42;
3498
+ var CHAR_COMMA = 44;
3499
+ var CHAR_MINUS = 45;
3500
+ var CHAR_COLON = 58;
3501
+ var CHAR_EQUALS = 61;
3502
+ var CHAR_GREATER_THAN = 62;
3503
+ var CHAR_QUESTION = 63;
3504
+ var CHAR_COMMERCIAL_AT = 64;
3505
+ var CHAR_LEFT_SQUARE_BRACKET = 91;
3506
+ var CHAR_RIGHT_SQUARE_BRACKET = 93;
3507
+ var CHAR_GRAVE_ACCENT = 96;
3508
+ var CHAR_LEFT_CURLY_BRACKET = 123;
3509
+ var CHAR_VERTICAL_LINE = 124;
3510
+ var CHAR_RIGHT_CURLY_BRACKET = 125;
3511
+ var ESCAPE_SEQUENCES = {};
3512
+ ESCAPE_SEQUENCES[0] = "\\0";
3513
+ ESCAPE_SEQUENCES[7] = "\\a";
3514
+ ESCAPE_SEQUENCES[8] = "\\b";
3515
+ ESCAPE_SEQUENCES[9] = "\\t";
3516
+ ESCAPE_SEQUENCES[10] = "\\n";
3517
+ ESCAPE_SEQUENCES[11] = "\\v";
3518
+ ESCAPE_SEQUENCES[12] = "\\f";
3519
+ ESCAPE_SEQUENCES[13] = "\\r";
3520
+ ESCAPE_SEQUENCES[27] = "\\e";
3521
+ ESCAPE_SEQUENCES[34] = '\\"';
3522
+ ESCAPE_SEQUENCES[92] = "\\\\";
3523
+ ESCAPE_SEQUENCES[133] = "\\N";
3524
+ ESCAPE_SEQUENCES[160] = "\\_";
3525
+ ESCAPE_SEQUENCES[8232] = "\\L";
3526
+ ESCAPE_SEQUENCES[8233] = "\\P";
3527
+ var DEPRECATED_BOOLEANS_SYNTAX = [
3528
+ "y",
3529
+ "Y",
3530
+ "yes",
3531
+ "Yes",
3532
+ "YES",
3533
+ "on",
3534
+ "On",
3535
+ "ON",
3536
+ "n",
3537
+ "N",
3538
+ "no",
3539
+ "No",
3540
+ "NO",
3541
+ "off",
3542
+ "Off",
3543
+ "OFF"
3544
+ ];
3545
+ function compileStyleMap(schema, map) {
3546
+ var result, keys, index, length, tag, style, type;
3547
+ if (map === null) return {};
3548
+ result = {};
3549
+ keys = Object.keys(map);
3550
+ for (index = 0, length = keys.length; index < length; index += 1) {
3551
+ tag = keys[index];
3552
+ style = String(map[tag]);
3553
+ if (tag.slice(0, 2) === "!!") {
3554
+ tag = "tag:yaml.org,2002:" + tag.slice(2);
3555
+ }
3556
+ type = schema.compiledTypeMap["fallback"][tag];
3557
+ if (type && _hasOwnProperty.call(type.styleAliases, style)) {
3558
+ style = type.styleAliases[style];
3559
+ }
3560
+ result[tag] = style;
3561
+ }
3562
+ return result;
3563
+ }
3564
+ function encodeHex(character) {
3565
+ var string, handle, length;
3566
+ string = character.toString(16).toUpperCase();
3567
+ if (character <= 255) {
3568
+ handle = "x";
3569
+ length = 2;
3570
+ } else if (character <= 65535) {
3571
+ handle = "u";
3572
+ length = 4;
3573
+ } else if (character <= 4294967295) {
3574
+ handle = "U";
3575
+ length = 8;
3576
+ } else {
3577
+ throw new YAMLException("code point within a string may not be greater than 0xFFFFFFFF");
3578
+ }
3579
+ return "\\" + handle + common.repeat("0", length - string.length) + string;
3580
+ }
3581
+ function State(options) {
3582
+ this.schema = options["schema"] || DEFAULT_FULL_SCHEMA;
3583
+ this.indent = Math.max(1, options["indent"] || 2);
3584
+ this.noArrayIndent = options["noArrayIndent"] || false;
3585
+ this.skipInvalid = options["skipInvalid"] || false;
3586
+ this.flowLevel = common.isNothing(options["flowLevel"]) ? -1 : options["flowLevel"];
3587
+ this.styleMap = compileStyleMap(this.schema, options["styles"] || null);
3588
+ this.sortKeys = options["sortKeys"] || false;
3589
+ this.lineWidth = options["lineWidth"] || 80;
3590
+ this.noRefs = options["noRefs"] || false;
3591
+ this.noCompatMode = options["noCompatMode"] || false;
3592
+ this.condenseFlow = options["condenseFlow"] || false;
3593
+ this.implicitTypes = this.schema.compiledImplicit;
3594
+ this.explicitTypes = this.schema.compiledExplicit;
3595
+ this.tag = null;
3596
+ this.result = "";
3597
+ this.duplicates = [];
3598
+ this.usedDuplicates = null;
3599
+ }
3600
+ function indentString(string, spaces) {
3601
+ var ind = common.repeat(" ", spaces), position = 0, next = -1, result = "", line, length = string.length;
3602
+ while (position < length) {
3603
+ next = string.indexOf("\n", position);
3604
+ if (next === -1) {
3605
+ line = string.slice(position);
3606
+ position = length;
3607
+ } else {
3608
+ line = string.slice(position, next + 1);
3609
+ position = next + 1;
3610
+ }
3611
+ if (line.length && line !== "\n") result += ind;
3612
+ result += line;
3613
+ }
3614
+ return result;
3615
+ }
3616
+ function generateNextLine(state, level) {
3617
+ return "\n" + common.repeat(" ", state.indent * level);
3618
+ }
3619
+ function testImplicitResolving(state, str) {
3620
+ var index, length, type;
3621
+ for (index = 0, length = state.implicitTypes.length; index < length; index += 1) {
3622
+ type = state.implicitTypes[index];
3623
+ if (type.resolve(str)) {
3624
+ return true;
3625
+ }
3626
+ }
3627
+ return false;
3628
+ }
3629
+ function isWhitespace(c) {
3630
+ return c === CHAR_SPACE || c === CHAR_TAB;
3631
+ }
3632
+ function isPrintable(c) {
3633
+ return 32 <= c && c <= 126 || 161 <= c && c <= 55295 && c !== 8232 && c !== 8233 || 57344 <= c && c <= 65533 && c !== 65279 || 65536 <= c && c <= 1114111;
3634
+ }
3635
+ function isNsChar(c) {
3636
+ return isPrintable(c) && !isWhitespace(c) && c !== 65279 && c !== CHAR_CARRIAGE_RETURN && c !== CHAR_LINE_FEED;
3637
+ }
3638
+ function isPlainSafe(c, prev) {
3639
+ return isPrintable(c) && c !== 65279 && c !== CHAR_COMMA && c !== CHAR_LEFT_SQUARE_BRACKET && c !== CHAR_RIGHT_SQUARE_BRACKET && c !== CHAR_LEFT_CURLY_BRACKET && c !== CHAR_RIGHT_CURLY_BRACKET && c !== CHAR_COLON && (c !== CHAR_SHARP || prev && isNsChar(prev));
3640
+ }
3641
+ function isPlainSafeFirst(c) {
3642
+ return isPrintable(c) && c !== 65279 && !isWhitespace(c) && c !== CHAR_MINUS && c !== CHAR_QUESTION && c !== CHAR_COLON && c !== CHAR_COMMA && c !== CHAR_LEFT_SQUARE_BRACKET && c !== CHAR_RIGHT_SQUARE_BRACKET && c !== CHAR_LEFT_CURLY_BRACKET && c !== CHAR_RIGHT_CURLY_BRACKET && c !== CHAR_SHARP && c !== CHAR_AMPERSAND && c !== CHAR_ASTERISK && c !== CHAR_EXCLAMATION && c !== CHAR_VERTICAL_LINE && c !== CHAR_EQUALS && c !== CHAR_GREATER_THAN && c !== CHAR_SINGLE_QUOTE && c !== CHAR_DOUBLE_QUOTE && c !== CHAR_PERCENT && c !== CHAR_COMMERCIAL_AT && c !== CHAR_GRAVE_ACCENT;
3643
+ }
3644
+ function needIndentIndicator(string) {
3645
+ var leadingSpaceRe = /^\n* /;
3646
+ return leadingSpaceRe.test(string);
3647
+ }
3648
+ var STYLE_PLAIN = 1;
3649
+ var STYLE_SINGLE = 2;
3650
+ var STYLE_LITERAL = 3;
3651
+ var STYLE_FOLDED = 4;
3652
+ var STYLE_DOUBLE = 5;
3653
+ function chooseScalarStyle(string, singleLineOnly, indentPerLevel, lineWidth, testAmbiguousType) {
3654
+ var i;
3655
+ var char, prev_char;
3656
+ var hasLineBreak = false;
3657
+ var hasFoldableLine = false;
3658
+ var shouldTrackWidth = lineWidth !== -1;
3659
+ var previousLineBreak = -1;
3660
+ var plain = isPlainSafeFirst(string.charCodeAt(0)) && !isWhitespace(string.charCodeAt(string.length - 1));
3661
+ if (singleLineOnly) {
3662
+ for (i = 0; i < string.length; i++) {
3663
+ char = string.charCodeAt(i);
3664
+ if (!isPrintable(char)) {
3665
+ return STYLE_DOUBLE;
3666
+ }
3667
+ prev_char = i > 0 ? string.charCodeAt(i - 1) : null;
3668
+ plain = plain && isPlainSafe(char, prev_char);
3669
+ }
3670
+ } else {
3671
+ for (i = 0; i < string.length; i++) {
3672
+ char = string.charCodeAt(i);
3673
+ if (char === CHAR_LINE_FEED) {
3674
+ hasLineBreak = true;
3675
+ if (shouldTrackWidth) {
3676
+ hasFoldableLine = hasFoldableLine || // Foldable line = too long, and not more-indented.
3677
+ i - previousLineBreak - 1 > lineWidth && string[previousLineBreak + 1] !== " ";
3678
+ previousLineBreak = i;
3679
+ }
3680
+ } else if (!isPrintable(char)) {
3681
+ return STYLE_DOUBLE;
3682
+ }
3683
+ prev_char = i > 0 ? string.charCodeAt(i - 1) : null;
3684
+ plain = plain && isPlainSafe(char, prev_char);
3685
+ }
3686
+ hasFoldableLine = hasFoldableLine || shouldTrackWidth && (i - previousLineBreak - 1 > lineWidth && string[previousLineBreak + 1] !== " ");
3687
+ }
3688
+ if (!hasLineBreak && !hasFoldableLine) {
3689
+ return plain && !testAmbiguousType(string) ? STYLE_PLAIN : STYLE_SINGLE;
3690
+ }
3691
+ if (indentPerLevel > 9 && needIndentIndicator(string)) {
3692
+ return STYLE_DOUBLE;
3693
+ }
3694
+ return hasFoldableLine ? STYLE_FOLDED : STYLE_LITERAL;
3695
+ }
3696
+ function writeScalar(state, string, level, iskey) {
3697
+ state.dump = function() {
3698
+ if (string.length === 0) {
3699
+ return "''";
3700
+ }
3701
+ if (!state.noCompatMode && DEPRECATED_BOOLEANS_SYNTAX.indexOf(string) !== -1) {
3702
+ return "'" + string + "'";
3703
+ }
3704
+ var indent = state.indent * Math.max(1, level);
3705
+ var lineWidth = state.lineWidth === -1 ? -1 : Math.max(Math.min(state.lineWidth, 40), state.lineWidth - indent);
3706
+ var singleLineOnly = iskey || state.flowLevel > -1 && level >= state.flowLevel;
3707
+ function testAmbiguity(string2) {
3708
+ return testImplicitResolving(state, string2);
3709
+ }
3710
+ switch (chooseScalarStyle(string, singleLineOnly, state.indent, lineWidth, testAmbiguity)) {
3711
+ case STYLE_PLAIN:
3712
+ return string;
3713
+ case STYLE_SINGLE:
3714
+ return "'" + string.replace(/'/g, "''") + "'";
3715
+ case STYLE_LITERAL:
3716
+ return "|" + blockHeader(string, state.indent) + dropEndingNewline(indentString(string, indent));
3717
+ case STYLE_FOLDED:
3718
+ return ">" + blockHeader(string, state.indent) + dropEndingNewline(indentString(foldString(string, lineWidth), indent));
3719
+ case STYLE_DOUBLE:
3720
+ return '"' + escapeString(string, lineWidth) + '"';
3721
+ default:
3722
+ throw new YAMLException("impossible error: invalid scalar style");
3723
+ }
3724
+ }();
3725
+ }
3726
+ function blockHeader(string, indentPerLevel) {
3727
+ var indentIndicator = needIndentIndicator(string) ? String(indentPerLevel) : "";
3728
+ var clip = string[string.length - 1] === "\n";
3729
+ var keep = clip && (string[string.length - 2] === "\n" || string === "\n");
3730
+ var chomp = keep ? "+" : clip ? "" : "-";
3731
+ return indentIndicator + chomp + "\n";
3732
+ }
3733
+ function dropEndingNewline(string) {
3734
+ return string[string.length - 1] === "\n" ? string.slice(0, -1) : string;
3735
+ }
3736
+ function foldString(string, width) {
3737
+ var lineRe = /(\n+)([^\n]*)/g;
3738
+ var result = function() {
3739
+ var nextLF = string.indexOf("\n");
3740
+ nextLF = nextLF !== -1 ? nextLF : string.length;
3741
+ lineRe.lastIndex = nextLF;
3742
+ return foldLine(string.slice(0, nextLF), width);
3743
+ }();
3744
+ var prevMoreIndented = string[0] === "\n" || string[0] === " ";
3745
+ var moreIndented;
3746
+ var match;
3747
+ while (match = lineRe.exec(string)) {
3748
+ var prefix = match[1], line = match[2];
3749
+ moreIndented = line[0] === " ";
3750
+ result += prefix + (!prevMoreIndented && !moreIndented && line !== "" ? "\n" : "") + foldLine(line, width);
3751
+ prevMoreIndented = moreIndented;
3752
+ }
3753
+ return result;
3754
+ }
3755
+ function foldLine(line, width) {
3756
+ if (line === "" || line[0] === " ") return line;
3757
+ var breakRe = / [^ ]/g;
3758
+ var match;
3759
+ var start = 0, end, curr = 0, next = 0;
3760
+ var result = "";
3761
+ while (match = breakRe.exec(line)) {
3762
+ next = match.index;
3763
+ if (next - start > width) {
3764
+ end = curr > start ? curr : next;
3765
+ result += "\n" + line.slice(start, end);
3766
+ start = end + 1;
3767
+ }
3768
+ curr = next;
3769
+ }
3770
+ result += "\n";
3771
+ if (line.length - start > width && curr > start) {
3772
+ result += line.slice(start, curr) + "\n" + line.slice(curr + 1);
3773
+ } else {
3774
+ result += line.slice(start);
3775
+ }
3776
+ return result.slice(1);
3777
+ }
3778
+ function escapeString(string) {
3779
+ var result = "";
3780
+ var char, nextChar;
3781
+ var escapeSeq;
3782
+ for (var i = 0; i < string.length; i++) {
3783
+ char = string.charCodeAt(i);
3784
+ if (char >= 55296 && char <= 56319) {
3785
+ nextChar = string.charCodeAt(i + 1);
3786
+ if (nextChar >= 56320 && nextChar <= 57343) {
3787
+ result += encodeHex((char - 55296) * 1024 + nextChar - 56320 + 65536);
3788
+ i++;
3789
+ continue;
3790
+ }
3791
+ }
3792
+ escapeSeq = ESCAPE_SEQUENCES[char];
3793
+ result += !escapeSeq && isPrintable(char) ? string[i] : escapeSeq || encodeHex(char);
3794
+ }
3795
+ return result;
3796
+ }
3797
+ function writeFlowSequence(state, level, object) {
3798
+ var _result = "", _tag = state.tag, index, length;
3799
+ for (index = 0, length = object.length; index < length; index += 1) {
3800
+ if (writeNode(state, level, object[index], false, false)) {
3801
+ if (index !== 0) _result += "," + (!state.condenseFlow ? " " : "");
3802
+ _result += state.dump;
3803
+ }
3804
+ }
3805
+ state.tag = _tag;
3806
+ state.dump = "[" + _result + "]";
3807
+ }
3808
+ function writeBlockSequence(state, level, object, compact) {
3809
+ var _result = "", _tag = state.tag, index, length;
3810
+ for (index = 0, length = object.length; index < length; index += 1) {
3811
+ if (writeNode(state, level + 1, object[index], true, true)) {
3812
+ if (!compact || index !== 0) {
3813
+ _result += generateNextLine(state, level);
3814
+ }
3815
+ if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
3816
+ _result += "-";
3817
+ } else {
3818
+ _result += "- ";
3819
+ }
3820
+ _result += state.dump;
3821
+ }
3822
+ }
3823
+ state.tag = _tag;
3824
+ state.dump = _result || "[]";
3825
+ }
3826
+ function writeFlowMapping(state, level, object) {
3827
+ var _result = "", _tag = state.tag, objectKeyList = Object.keys(object), index, length, objectKey, objectValue, pairBuffer;
3828
+ for (index = 0, length = objectKeyList.length; index < length; index += 1) {
3829
+ pairBuffer = "";
3830
+ if (index !== 0) pairBuffer += ", ";
3831
+ if (state.condenseFlow) pairBuffer += '"';
3832
+ objectKey = objectKeyList[index];
3833
+ objectValue = object[objectKey];
3834
+ if (!writeNode(state, level, objectKey, false, false)) {
3835
+ continue;
3836
+ }
3837
+ if (state.dump.length > 1024) pairBuffer += "? ";
3838
+ pairBuffer += state.dump + (state.condenseFlow ? '"' : "") + ":" + (state.condenseFlow ? "" : " ");
3839
+ if (!writeNode(state, level, objectValue, false, false)) {
3840
+ continue;
3841
+ }
3842
+ pairBuffer += state.dump;
3843
+ _result += pairBuffer;
3844
+ }
3845
+ state.tag = _tag;
3846
+ state.dump = "{" + _result + "}";
3847
+ }
3848
+ function writeBlockMapping(state, level, object, compact) {
3849
+ var _result = "", _tag = state.tag, objectKeyList = Object.keys(object), index, length, objectKey, objectValue, explicitPair, pairBuffer;
3850
+ if (state.sortKeys === true) {
3851
+ objectKeyList.sort();
3852
+ } else if (typeof state.sortKeys === "function") {
3853
+ objectKeyList.sort(state.sortKeys);
3854
+ } else if (state.sortKeys) {
3855
+ throw new YAMLException("sortKeys must be a boolean or a function");
3856
+ }
3857
+ for (index = 0, length = objectKeyList.length; index < length; index += 1) {
3858
+ pairBuffer = "";
3859
+ if (!compact || index !== 0) {
3860
+ pairBuffer += generateNextLine(state, level);
3861
+ }
3862
+ objectKey = objectKeyList[index];
3863
+ objectValue = object[objectKey];
3864
+ if (!writeNode(state, level + 1, objectKey, true, true, true)) {
3865
+ continue;
3866
+ }
3867
+ explicitPair = state.tag !== null && state.tag !== "?" || state.dump && state.dump.length > 1024;
3868
+ if (explicitPair) {
3869
+ if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
3870
+ pairBuffer += "?";
3871
+ } else {
3872
+ pairBuffer += "? ";
3873
+ }
3874
+ }
3875
+ pairBuffer += state.dump;
3876
+ if (explicitPair) {
3877
+ pairBuffer += generateNextLine(state, level);
3878
+ }
3879
+ if (!writeNode(state, level + 1, objectValue, true, explicitPair)) {
3880
+ continue;
3881
+ }
3882
+ if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
3883
+ pairBuffer += ":";
3884
+ } else {
3885
+ pairBuffer += ": ";
3886
+ }
3887
+ pairBuffer += state.dump;
3888
+ _result += pairBuffer;
3889
+ }
3890
+ state.tag = _tag;
3891
+ state.dump = _result || "{}";
3892
+ }
3893
+ function detectType(state, object, explicit) {
3894
+ var _result, typeList, index, length, type, style;
3895
+ typeList = explicit ? state.explicitTypes : state.implicitTypes;
3896
+ for (index = 0, length = typeList.length; index < length; index += 1) {
3897
+ type = typeList[index];
3898
+ if ((type.instanceOf || type.predicate) && (!type.instanceOf || typeof object === "object" && object instanceof type.instanceOf) && (!type.predicate || type.predicate(object))) {
3899
+ state.tag = explicit ? type.tag : "?";
3900
+ if (type.represent) {
3901
+ style = state.styleMap[type.tag] || type.defaultStyle;
3902
+ if (_toString.call(type.represent) === "[object Function]") {
3903
+ _result = type.represent(object, style);
3904
+ } else if (_hasOwnProperty.call(type.represent, style)) {
3905
+ _result = type.represent[style](object, style);
3906
+ } else {
3907
+ throw new YAMLException("!<" + type.tag + '> tag resolver accepts not "' + style + '" style');
3908
+ }
3909
+ state.dump = _result;
3910
+ }
3911
+ return true;
3912
+ }
3913
+ }
3914
+ return false;
3915
+ }
3916
+ function writeNode(state, level, object, block, compact, iskey) {
3917
+ state.tag = null;
3918
+ state.dump = object;
3919
+ if (!detectType(state, object, false)) {
3920
+ detectType(state, object, true);
3921
+ }
3922
+ var type = _toString.call(state.dump);
3923
+ if (block) {
3924
+ block = state.flowLevel < 0 || state.flowLevel > level;
3925
+ }
3926
+ var objectOrArray = type === "[object Object]" || type === "[object Array]", duplicateIndex, duplicate;
3927
+ if (objectOrArray) {
3928
+ duplicateIndex = state.duplicates.indexOf(object);
3929
+ duplicate = duplicateIndex !== -1;
3930
+ }
3931
+ if (state.tag !== null && state.tag !== "?" || duplicate || state.indent !== 2 && level > 0) {
3932
+ compact = false;
3933
+ }
3934
+ if (duplicate && state.usedDuplicates[duplicateIndex]) {
3935
+ state.dump = "*ref_" + duplicateIndex;
3936
+ } else {
3937
+ if (objectOrArray && duplicate && !state.usedDuplicates[duplicateIndex]) {
3938
+ state.usedDuplicates[duplicateIndex] = true;
3939
+ }
3940
+ if (type === "[object Object]") {
3941
+ if (block && Object.keys(state.dump).length !== 0) {
3942
+ writeBlockMapping(state, level, state.dump, compact);
3943
+ if (duplicate) {
3944
+ state.dump = "&ref_" + duplicateIndex + state.dump;
3945
+ }
3946
+ } else {
3947
+ writeFlowMapping(state, level, state.dump);
3948
+ if (duplicate) {
3949
+ state.dump = "&ref_" + duplicateIndex + " " + state.dump;
3950
+ }
3951
+ }
3952
+ } else if (type === "[object Array]") {
3953
+ var arrayLevel = state.noArrayIndent && level > 0 ? level - 1 : level;
3954
+ if (block && state.dump.length !== 0) {
3955
+ writeBlockSequence(state, arrayLevel, state.dump, compact);
3956
+ if (duplicate) {
3957
+ state.dump = "&ref_" + duplicateIndex + state.dump;
3958
+ }
3959
+ } else {
3960
+ writeFlowSequence(state, arrayLevel, state.dump);
3961
+ if (duplicate) {
3962
+ state.dump = "&ref_" + duplicateIndex + " " + state.dump;
3963
+ }
3964
+ }
3965
+ } else if (type === "[object String]") {
3966
+ if (state.tag !== "?") {
3967
+ writeScalar(state, state.dump, level, iskey);
3968
+ }
3969
+ } else {
3970
+ if (state.skipInvalid) return false;
3971
+ throw new YAMLException("unacceptable kind of an object to dump " + type);
3972
+ }
3973
+ if (state.tag !== null && state.tag !== "?") {
3974
+ state.dump = "!<" + state.tag + "> " + state.dump;
3975
+ }
3976
+ }
3977
+ return true;
3978
+ }
3979
+ function getDuplicateReferences(object, state) {
3980
+ var objects = [], duplicatesIndexes = [], index, length;
3981
+ inspectNode(object, objects, duplicatesIndexes);
3982
+ for (index = 0, length = duplicatesIndexes.length; index < length; index += 1) {
3983
+ state.duplicates.push(objects[duplicatesIndexes[index]]);
3984
+ }
3985
+ state.usedDuplicates = new Array(length);
3986
+ }
3987
+ function inspectNode(object, objects, duplicatesIndexes) {
3988
+ var objectKeyList, index, length;
3989
+ if (object !== null && typeof object === "object") {
3990
+ index = objects.indexOf(object);
3991
+ if (index !== -1) {
3992
+ if (duplicatesIndexes.indexOf(index) === -1) {
3993
+ duplicatesIndexes.push(index);
3994
+ }
3995
+ } else {
3996
+ objects.push(object);
3997
+ if (Array.isArray(object)) {
3998
+ for (index = 0, length = object.length; index < length; index += 1) {
3999
+ inspectNode(object[index], objects, duplicatesIndexes);
4000
+ }
4001
+ } else {
4002
+ objectKeyList = Object.keys(object);
4003
+ for (index = 0, length = objectKeyList.length; index < length; index += 1) {
4004
+ inspectNode(object[objectKeyList[index]], objects, duplicatesIndexes);
4005
+ }
4006
+ }
4007
+ }
4008
+ }
4009
+ }
4010
+ function dump(input, options) {
4011
+ options = options || {};
4012
+ var state = new State(options);
4013
+ if (!state.noRefs) getDuplicateReferences(input, state);
4014
+ if (writeNode(state, 0, input, true, true)) return state.dump + "\n";
4015
+ return "";
4016
+ }
4017
+ function safeDump(input, options) {
4018
+ return dump(input, common.extend({ schema: DEFAULT_SAFE_SCHEMA }, options));
4019
+ }
4020
+ module.exports.dump = dump;
4021
+ module.exports.safeDump = safeDump;
4022
+ }
4023
+ });
4024
+
4025
+ // ../../node_modules/front-matter/node_modules/js-yaml/lib/js-yaml.js
4026
+ var require_js_yaml = __commonJS({
4027
+ "../../node_modules/front-matter/node_modules/js-yaml/lib/js-yaml.js"(exports, module) {
4028
+ "use strict";
4029
+ init_esm_shims();
4030
+ var loader = require_loader();
4031
+ var dumper = require_dumper();
4032
+ function deprecated(name) {
4033
+ return function() {
4034
+ throw new Error("Function " + name + " is deprecated and cannot be used.");
4035
+ };
4036
+ }
4037
+ module.exports.Type = require_type();
4038
+ module.exports.Schema = require_schema();
4039
+ module.exports.FAILSAFE_SCHEMA = require_failsafe();
4040
+ module.exports.JSON_SCHEMA = require_json();
4041
+ module.exports.CORE_SCHEMA = require_core();
4042
+ module.exports.DEFAULT_SAFE_SCHEMA = require_default_safe();
4043
+ module.exports.DEFAULT_FULL_SCHEMA = require_default_full();
4044
+ module.exports.load = loader.load;
4045
+ module.exports.loadAll = loader.loadAll;
4046
+ module.exports.safeLoad = loader.safeLoad;
4047
+ module.exports.safeLoadAll = loader.safeLoadAll;
4048
+ module.exports.dump = dumper.dump;
4049
+ module.exports.safeDump = dumper.safeDump;
4050
+ module.exports.YAMLException = require_exception();
4051
+ module.exports.MINIMAL_SCHEMA = require_failsafe();
4052
+ module.exports.SAFE_SCHEMA = require_default_safe();
4053
+ module.exports.DEFAULT_SCHEMA = require_default_full();
4054
+ module.exports.scan = deprecated("scan");
4055
+ module.exports.parse = deprecated("parse");
4056
+ module.exports.compose = deprecated("compose");
4057
+ module.exports.addConstructor = deprecated("addConstructor");
4058
+ }
4059
+ });
4060
+
4061
+ // ../../node_modules/front-matter/node_modules/js-yaml/index.js
4062
+ var require_js_yaml2 = __commonJS({
4063
+ "../../node_modules/front-matter/node_modules/js-yaml/index.js"(exports, module) {
4064
+ "use strict";
4065
+ init_esm_shims();
4066
+ var yaml = require_js_yaml();
4067
+ module.exports = yaml;
4068
+ }
4069
+ });
4070
+
4071
+ // ../../node_modules/front-matter/index.js
4072
+ var require_front_matter = __commonJS({
4073
+ "../../node_modules/front-matter/index.js"(exports, module) {
4074
+ "use strict";
4075
+ init_esm_shims();
4076
+ var parser = require_js_yaml2();
4077
+ var optionalByteOrderMark = "\\ufeff?";
4078
+ var platform = typeof process !== "undefined" ? process.platform : "";
4079
+ var pattern = "^(" + optionalByteOrderMark + "(= yaml =|---)$([\\s\\S]*?)^(?:\\2|\\.\\.\\.)\\s*$" + (platform === "win32" ? "\\r?" : "") + "(?:\\n)?)";
4080
+ var regex = new RegExp(pattern, "m");
4081
+ module.exports = extractor;
4082
+ module.exports.test = test;
4083
+ function extractor(string, options) {
4084
+ string = string || "";
4085
+ var defaultOptions = { allowUnsafe: false };
4086
+ options = options instanceof Object ? { ...defaultOptions, ...options } : defaultOptions;
4087
+ options.allowUnsafe = Boolean(options.allowUnsafe);
4088
+ var lines = string.split(/(\r?\n)/);
4089
+ if (lines[0] && /= yaml =|---/.test(lines[0])) {
4090
+ return parse(string, options.allowUnsafe);
4091
+ } else {
4092
+ return {
4093
+ attributes: {},
4094
+ body: string,
4095
+ bodyBegin: 1
4096
+ };
4097
+ }
4098
+ }
4099
+ function computeLocation(match, body) {
4100
+ var line = 1;
4101
+ var pos = body.indexOf("\n");
4102
+ var offset = match.index + match[0].length;
4103
+ while (pos !== -1) {
4104
+ if (pos >= offset) {
4105
+ return line;
4106
+ }
4107
+ line++;
4108
+ pos = body.indexOf("\n", pos + 1);
4109
+ }
4110
+ return line;
4111
+ }
4112
+ function parse(string, allowUnsafe) {
4113
+ var match = regex.exec(string);
4114
+ if (!match) {
4115
+ return {
4116
+ attributes: {},
4117
+ body: string,
4118
+ bodyBegin: 1
4119
+ };
4120
+ }
4121
+ var loader = allowUnsafe ? parser.load : parser.safeLoad;
4122
+ var yaml = match[match.length - 1].replace(/^\s+|\s+$/g, "");
4123
+ var attributes = loader(yaml) || {};
4124
+ var body = string.replace(match[0], "");
4125
+ var line = computeLocation(match, string);
4126
+ return {
4127
+ attributes,
4128
+ body,
4129
+ bodyBegin: line,
4130
+ frontmatter: yaml
4131
+ };
4132
+ }
4133
+ function test(string) {
4134
+ string = string || "";
4135
+ return regex.test(string);
4136
+ }
4137
+ }
4138
+ });
4139
+
4140
+ // src/backend/useBackendComponents.ts
4141
+ init_esm_shims();
4142
+ var import_react = __toESM(require_react(), 1);
4143
+ var import_variant = __toESM(require_lib(), 1);
4144
+ function useBackendComponents() {
4145
+ const { model } = useProjectModel();
4146
+ const backendComponentsByType = (0, import_react.useMemo)(() => {
4147
+ const Api = model.components.filter((0, import_variant.isType)(DevCenterComponent.Api)).sort((a, b) => a.title.localeCompare(b.title));
4148
+ const WebMethod = model.components.filter((0, import_variant.isType)(DevCenterComponent.WebMethod)).sort((a, b) => a.relativePath.localeCompare(b.relativePath));
4149
+ const Event = model.components.filter((0, import_variant.isType)(DevCenterComponent.Event)).sort((a, b) => a.title.localeCompare(b.title));
4150
+ const ServicePlugin = model.components.filter((0, import_variant.isType)(DevCenterComponent.ServicePlugin)).sort((a, b) => a.servicePlugin.name.localeCompare(b.servicePlugin.name));
4151
+ return {
4152
+ Api,
4153
+ WebMethod,
4154
+ Event,
4155
+ ServicePlugin
4156
+ };
4157
+ }, [model.components]);
4158
+ return {
4159
+ backendComponents: [
4160
+ ...backendComponentsByType.Api,
4161
+ ...backendComponentsByType.WebMethod,
4162
+ ...backendComponentsByType.Event,
4163
+ ...backendComponentsByType.ServicePlugin
4164
+ ],
4165
+ backendComponentsByType
4166
+ };
4167
+ }
4168
+
4169
+ // ../gena/src/component-generator.ts
4170
+ init_esm_shims();
4171
+ import { join as join2 } from "node:path";
4172
+
4173
+ // ../gena/src/generator.ts
4174
+ init_esm_shims();
4175
+ var import_ejs = __toESM(require_ejs(), 1);
4176
+ var import_front_matter = __toESM(require_front_matter(), 1);
4177
+ import { resolve, dirname, extname } from "node:path";
4178
+ import { readFile, copyFile } from "node:fs/promises";
4179
+
4180
+ // ../gena/src/fs-extra.ts
4181
+ init_esm_shims();
4182
+ function getFiles(cwd) {
4183
+ return globby(["**"], { cwd, dot: true, onlyFiles: true });
4184
+ }
4185
+
4186
+ // ../gena/src/generator.ts
4187
+ var fm = import_front_matter.default;
4188
+ function shouldSkipParsing(file) {
4189
+ return [".png", ".jpg", ".gif", ".astro"].includes(
4190
+ extname(file).toLowerCase()
4191
+ );
4192
+ }
4193
+ async function justCopy({
4194
+ cwd,
4195
+ template,
4196
+ path
4197
+ }) {
4198
+ const to = resolve(cwd, template);
4199
+ await outputDir(dirname(to));
4200
+ await copyFile(path, to);
4201
+ return to;
4202
+ }
4203
+ async function generator(opts) {
4204
+ const { template: templateRoot, data, cwd } = opts;
4205
+ const templates = await getFiles(templateRoot);
4206
+ const generatedFiles = await Promise.all(
4207
+ templates.map(async (template) => {
4208
+ const path = resolve(templateRoot, template);
4209
+ if (shouldSkipParsing(path)) {
4210
+ return justCopy({ cwd, template, path });
4211
+ }
4212
+ const raw = await readFile(path, "utf8");
4213
+ const content = (0, import_ejs.render)(raw, data);
4214
+ const { attributes, body } = fm(content);
4215
+ if (attributes.skip_if === true) {
4216
+ return;
4217
+ }
4218
+ const file = resolve(cwd, attributes.to ?? template);
4219
+ await outputFile(file, body);
4220
+ return file;
4221
+ })
4222
+ );
4223
+ return generatedFiles.filter((file) => file !== void 0);
4224
+ }
4225
+
4226
+ // ../gena/src/dependencies-updater.ts
4227
+ init_esm_shims();
4228
+ var dependenciesJsonSchema = external_exports.object({
4229
+ dependencies: external_exports.record(external_exports.string()).optional(),
4230
+ devDependencies: external_exports.record(external_exports.string()).optional()
4231
+ });
4232
+ async function readDependenciesJson(filePath) {
4233
+ const json = await readJson(filePath);
4234
+ const parsedJson = await dependenciesJsonSchema.safeParseAsync(json);
4235
+ if (!parsedJson.success) {
4236
+ throw new CliError({
4237
+ code: CliErrorCode.InvalidDependenciesJsonSchemaError({
4238
+ path: filePath,
4239
+ zodError: parsedJson.error
4240
+ }),
4241
+ cause: parsedJson.error
4242
+ });
4243
+ }
4244
+ return parsedJson.data;
4245
+ }
4246
+ async function dependenciesUpdater(opts) {
4247
+ const { projectFolder, dependenciesJsonPath, dynamicPackages } = opts;
4248
+ const addedDependencies = [];
4249
+ if (!await pathExists(dependenciesJsonPath)) {
4250
+ return addedDependencies;
4251
+ }
4252
+ const dependenciesConfig = await readDependenciesJson(dependenciesJsonPath);
4253
+ const packageJson = await readPackageJson(projectFolder);
4254
+ const packageJsonDependencies = {
4255
+ ...packageJson.dependencies,
4256
+ ...packageJson.devDependencies
4257
+ };
4258
+ if (dependenciesConfig.dependencies) {
4259
+ for (const [dependencyPackageName, version] of Object.entries(
4260
+ dependenciesConfig.dependencies
4261
+ )) {
4262
+ if (!packageJsonDependencies[dependencyPackageName]) {
4263
+ if (!packageJson.dependencies) {
4264
+ packageJson.dependencies = {};
4265
+ }
4266
+ packageJson.dependencies[dependencyPackageName] = version;
4267
+ addedDependencies.push(dependencyPackageName);
4268
+ }
4269
+ }
4270
+ }
4271
+ if (dynamicPackages) {
4272
+ for (const [dependencyPackageName, version] of Object.entries(
4273
+ dynamicPackages
4274
+ )) {
4275
+ if (!packageJsonDependencies[dependencyPackageName]) {
4276
+ if (!packageJson.dependencies) {
4277
+ packageJson.dependencies = {};
4278
+ }
4279
+ packageJson.dependencies[dependencyPackageName] = version;
4280
+ addedDependencies.push(dependencyPackageName);
4281
+ }
4282
+ }
4283
+ }
4284
+ if (dependenciesConfig.devDependencies) {
4285
+ for (const [dependencyPackageName, version] of Object.entries(
4286
+ dependenciesConfig.devDependencies
4287
+ )) {
4288
+ if (!packageJsonDependencies[dependencyPackageName]) {
4289
+ if (!packageJson.devDependencies) {
4290
+ packageJson.devDependencies = {};
4291
+ }
4292
+ packageJson.devDependencies[dependencyPackageName] = version;
4293
+ addedDependencies.push(dependencyPackageName);
4294
+ }
4295
+ }
4296
+ }
4297
+ if (addedDependencies.length) {
4298
+ await writePackageJson(projectFolder, packageJson);
4299
+ }
4300
+ return addedDependencies;
4301
+ }
4302
+
4303
+ // ../gena/src/assets-generator.ts
4304
+ init_esm_shims();
4305
+ import { resolve as resolve2, join } from "node:path";
4306
+ import { copyFile as copyFile2, mkdir } from "node:fs/promises";
4307
+ async function assetsGenerator(opts) {
4308
+ const { templateRoot, projectFolder, outputPath } = opts;
4309
+ const assets = join(templateRoot, "assets");
4310
+ if (await pathExists(assets)) {
4311
+ const publicDir = join(projectFolder, "src/assets", outputPath ?? "");
4312
+ const publicFiles = await getFiles(assets);
4313
+ await mkdir(publicDir, { recursive: true });
4314
+ await Promise.all(
4315
+ publicFiles.map(async (file) => {
4316
+ const from = resolve2(assets, file);
4317
+ const to = resolve2(publicDir, file);
4318
+ await copyFile2(from, to);
4319
+ })
4320
+ );
4321
+ }
4322
+ }
4323
+
4324
+ // ../gena/src/component-generator.ts
4325
+ async function componentGenerator(opts) {
4326
+ const { template, projectFolder, assetsOutputPath, ...generatorOpts } = opts;
4327
+ const newFiles = await generator({
4328
+ ...generatorOpts,
4329
+ template: join2(template, "files")
4330
+ });
4331
+ await assetsGenerator({
4332
+ templateRoot: template,
4333
+ projectFolder,
4334
+ outputPath: assetsOutputPath
4335
+ });
4336
+ const newDependencies = await dependenciesUpdater({
4337
+ projectFolder,
4338
+ dependenciesJsonPath: join2(template, "dependencies.json"),
4339
+ ...opts.importData?.packageName ? {
4340
+ dynamicPackages: { [opts.importData.packageName]: "^1.0.0" }
4341
+ } : {}
4342
+ });
4343
+ return { newDependencies, newFiles };
4344
+ }
4345
+
4346
+ // ../gena/src/index.ts
4347
+ init_esm_shims();
4348
+
4349
+ export {
4350
+ useBackendComponents,
4351
+ require_isArray,
4352
+ require_toString,
4353
+ require_kebabCase,
4354
+ dependenciesUpdater,
4355
+ componentGenerator
4356
+ };
4357
+ /*! Bundled license information:
4358
+
4359
+ ejs/lib/ejs.js:
4360
+ (**
4361
+ * @file Embedded JavaScript templating engine. {@link http://ejs.co}
4362
+ * @author Matthew Eernisse <mde@fleegix.org>
4363
+ * @author Tiancheng "Timothy" Gu <timothygu99@gmail.com>
4364
+ * @project EJS
4365
+ * @license {@link http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0}
4366
+ *)
4367
+ */
4368
+ //# sourceMappingURL=chunk-KLJX222C.js.map