@lark-apaas/fullstack-nestjs-core 1.1.33-alpha.13 → 1.1.33-alpha.14
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.
- package/dist/index.cjs +172 -1074
- package/dist/index.js +173 -1075
- package/package.json +8 -8
package/dist/index.cjs
CHANGED
|
@@ -1590,9 +1590,9 @@ var require_safer = __commonJS({
|
|
|
1590
1590
|
}
|
|
1591
1591
|
});
|
|
1592
1592
|
|
|
1593
|
-
// ../../../node_modules/
|
|
1593
|
+
// ../../../node_modules/iconv-lite/lib/bom-handling.js
|
|
1594
1594
|
var require_bom_handling = __commonJS({
|
|
1595
|
-
"../../../node_modules/
|
|
1595
|
+
"../../../node_modules/iconv-lite/lib/bom-handling.js"(exports2) {
|
|
1596
1596
|
"use strict";
|
|
1597
1597
|
var BOMChar = "\uFEFF";
|
|
1598
1598
|
exports2.PrependBOM = PrependBOMWrapper;
|
|
@@ -1634,9 +1634,9 @@ var require_bom_handling = __commonJS({
|
|
|
1634
1634
|
}
|
|
1635
1635
|
});
|
|
1636
1636
|
|
|
1637
|
-
// ../../../node_modules/
|
|
1637
|
+
// ../../../node_modules/iconv-lite/encodings/internal.js
|
|
1638
1638
|
var require_internal = __commonJS({
|
|
1639
|
-
"../../../node_modules/
|
|
1639
|
+
"../../../node_modules/iconv-lite/encodings/internal.js"(exports2, module2) {
|
|
1640
1640
|
"use strict";
|
|
1641
1641
|
var Buffer2 = require_safer().Buffer;
|
|
1642
1642
|
module2.exports = {
|
|
@@ -1793,9 +1793,9 @@ var require_internal = __commonJS({
|
|
|
1793
1793
|
}
|
|
1794
1794
|
});
|
|
1795
1795
|
|
|
1796
|
-
// ../../../node_modules/
|
|
1796
|
+
// ../../../node_modules/iconv-lite/encodings/utf16.js
|
|
1797
1797
|
var require_utf16 = __commonJS({
|
|
1798
|
-
"../../../node_modules/
|
|
1798
|
+
"../../../node_modules/iconv-lite/encodings/utf16.js"(exports2) {
|
|
1799
1799
|
"use strict";
|
|
1800
1800
|
var Buffer2 = require_safer().Buffer;
|
|
1801
1801
|
exports2.utf16be = Utf16BECodec;
|
|
@@ -1909,9 +1909,9 @@ var require_utf16 = __commonJS({
|
|
|
1909
1909
|
}
|
|
1910
1910
|
});
|
|
1911
1911
|
|
|
1912
|
-
// ../../../node_modules/
|
|
1912
|
+
// ../../../node_modules/iconv-lite/encodings/utf7.js
|
|
1913
1913
|
var require_utf7 = __commonJS({
|
|
1914
|
-
"../../../node_modules/
|
|
1914
|
+
"../../../node_modules/iconv-lite/encodings/utf7.js"(exports2) {
|
|
1915
1915
|
"use strict";
|
|
1916
1916
|
var Buffer2 = require_safer().Buffer;
|
|
1917
1917
|
exports2.utf7 = Utf7Codec;
|
|
@@ -2110,9 +2110,9 @@ var require_utf7 = __commonJS({
|
|
|
2110
2110
|
}
|
|
2111
2111
|
});
|
|
2112
2112
|
|
|
2113
|
-
// ../../../node_modules/
|
|
2113
|
+
// ../../../node_modules/iconv-lite/encodings/sbcs-codec.js
|
|
2114
2114
|
var require_sbcs_codec = __commonJS({
|
|
2115
|
-
"../../../node_modules/
|
|
2115
|
+
"../../../node_modules/iconv-lite/encodings/sbcs-codec.js"(exports2) {
|
|
2116
2116
|
"use strict";
|
|
2117
2117
|
var Buffer2 = require_safer().Buffer;
|
|
2118
2118
|
exports2._sbcs = SBCSCodec;
|
|
@@ -2164,9 +2164,9 @@ var require_sbcs_codec = __commonJS({
|
|
|
2164
2164
|
}
|
|
2165
2165
|
});
|
|
2166
2166
|
|
|
2167
|
-
// ../../../node_modules/
|
|
2167
|
+
// ../../../node_modules/iconv-lite/encodings/sbcs-data.js
|
|
2168
2168
|
var require_sbcs_data = __commonJS({
|
|
2169
|
-
"../../../node_modules/
|
|
2169
|
+
"../../../node_modules/iconv-lite/encodings/sbcs-data.js"(exports2, module2) {
|
|
2170
2170
|
"use strict";
|
|
2171
2171
|
module2.exports = {
|
|
2172
2172
|
// Not supported by iconv, not sure why.
|
|
@@ -2313,9 +2313,9 @@ var require_sbcs_data = __commonJS({
|
|
|
2313
2313
|
}
|
|
2314
2314
|
});
|
|
2315
2315
|
|
|
2316
|
-
// ../../../node_modules/
|
|
2316
|
+
// ../../../node_modules/iconv-lite/encodings/sbcs-data-generated.js
|
|
2317
2317
|
var require_sbcs_data_generated = __commonJS({
|
|
2318
|
-
"../../../node_modules/
|
|
2318
|
+
"../../../node_modules/iconv-lite/encodings/sbcs-data-generated.js"(exports2, module2) {
|
|
2319
2319
|
"use strict";
|
|
2320
2320
|
module2.exports = {
|
|
2321
2321
|
"437": "cp437",
|
|
@@ -2768,9 +2768,9 @@ var require_sbcs_data_generated = __commonJS({
|
|
|
2768
2768
|
}
|
|
2769
2769
|
});
|
|
2770
2770
|
|
|
2771
|
-
// ../../../node_modules/
|
|
2771
|
+
// ../../../node_modules/iconv-lite/encodings/dbcs-codec.js
|
|
2772
2772
|
var require_dbcs_codec = __commonJS({
|
|
2773
|
-
"../../../node_modules/
|
|
2773
|
+
"../../../node_modules/iconv-lite/encodings/dbcs-codec.js"(exports2) {
|
|
2774
2774
|
"use strict";
|
|
2775
2775
|
var Buffer2 = require_safer().Buffer;
|
|
2776
2776
|
exports2._dbcs = DBCSCodec;
|
|
@@ -3115,9 +3115,9 @@ var require_dbcs_codec = __commonJS({
|
|
|
3115
3115
|
}
|
|
3116
3116
|
});
|
|
3117
3117
|
|
|
3118
|
-
// ../../../node_modules/
|
|
3118
|
+
// ../../../node_modules/iconv-lite/encodings/tables/shiftjis.json
|
|
3119
3119
|
var require_shiftjis = __commonJS({
|
|
3120
|
-
"../../../node_modules/
|
|
3120
|
+
"../../../node_modules/iconv-lite/encodings/tables/shiftjis.json"(exports2, module2) {
|
|
3121
3121
|
module2.exports = [
|
|
3122
3122
|
["0", "\0", 128],
|
|
3123
3123
|
["a1", "\uFF61", 62],
|
|
@@ -3246,9 +3246,9 @@ var require_shiftjis = __commonJS({
|
|
|
3246
3246
|
}
|
|
3247
3247
|
});
|
|
3248
3248
|
|
|
3249
|
-
// ../../../node_modules/
|
|
3249
|
+
// ../../../node_modules/iconv-lite/encodings/tables/eucjp.json
|
|
3250
3250
|
var require_eucjp = __commonJS({
|
|
3251
|
-
"../../../node_modules/
|
|
3251
|
+
"../../../node_modules/iconv-lite/encodings/tables/eucjp.json"(exports2, module2) {
|
|
3252
3252
|
module2.exports = [
|
|
3253
3253
|
["0", "\0", 127],
|
|
3254
3254
|
["8ea1", "\uFF61", 62],
|
|
@@ -3434,9 +3434,9 @@ var require_eucjp = __commonJS({
|
|
|
3434
3434
|
}
|
|
3435
3435
|
});
|
|
3436
3436
|
|
|
3437
|
-
// ../../../node_modules/
|
|
3437
|
+
// ../../../node_modules/iconv-lite/encodings/tables/cp936.json
|
|
3438
3438
|
var require_cp936 = __commonJS({
|
|
3439
|
-
"../../../node_modules/
|
|
3439
|
+
"../../../node_modules/iconv-lite/encodings/tables/cp936.json"(exports2, module2) {
|
|
3440
3440
|
module2.exports = [
|
|
3441
3441
|
["0", "\0", 127, "\u20AC"],
|
|
3442
3442
|
["8140", "\u4E02\u4E04\u4E05\u4E06\u4E0F\u4E12\u4E17\u4E1F\u4E20\u4E21\u4E23\u4E26\u4E29\u4E2E\u4E2F\u4E31\u4E33\u4E35\u4E37\u4E3C\u4E40\u4E41\u4E42\u4E44\u4E46\u4E4A\u4E51\u4E55\u4E57\u4E5A\u4E5B\u4E62\u4E63\u4E64\u4E65\u4E67\u4E68\u4E6A", 5, "\u4E72\u4E74", 9, "\u4E7F", 6, "\u4E87\u4E8A"],
|
|
@@ -3704,9 +3704,9 @@ var require_cp936 = __commonJS({
|
|
|
3704
3704
|
}
|
|
3705
3705
|
});
|
|
3706
3706
|
|
|
3707
|
-
// ../../../node_modules/
|
|
3707
|
+
// ../../../node_modules/iconv-lite/encodings/tables/gbk-added.json
|
|
3708
3708
|
var require_gbk_added = __commonJS({
|
|
3709
|
-
"../../../node_modules/
|
|
3709
|
+
"../../../node_modules/iconv-lite/encodings/tables/gbk-added.json"(exports2, module2) {
|
|
3710
3710
|
module2.exports = [
|
|
3711
3711
|
["a140", "\uE4C6", 62],
|
|
3712
3712
|
["a180", "\uE505", 32],
|
|
@@ -3765,16 +3765,16 @@ var require_gbk_added = __commonJS({
|
|
|
3765
3765
|
}
|
|
3766
3766
|
});
|
|
3767
3767
|
|
|
3768
|
-
// ../../../node_modules/
|
|
3768
|
+
// ../../../node_modules/iconv-lite/encodings/tables/gb18030-ranges.json
|
|
3769
3769
|
var require_gb18030_ranges = __commonJS({
|
|
3770
|
-
"../../../node_modules/
|
|
3770
|
+
"../../../node_modules/iconv-lite/encodings/tables/gb18030-ranges.json"(exports2, module2) {
|
|
3771
3771
|
module2.exports = { uChars: [128, 165, 169, 178, 184, 216, 226, 235, 238, 244, 248, 251, 253, 258, 276, 284, 300, 325, 329, 334, 364, 463, 465, 467, 469, 471, 473, 475, 477, 506, 594, 610, 712, 716, 730, 930, 938, 962, 970, 1026, 1104, 1106, 8209, 8215, 8218, 8222, 8231, 8241, 8244, 8246, 8252, 8365, 8452, 8454, 8458, 8471, 8482, 8556, 8570, 8596, 8602, 8713, 8720, 8722, 8726, 8731, 8737, 8740, 8742, 8748, 8751, 8760, 8766, 8777, 8781, 8787, 8802, 8808, 8816, 8854, 8858, 8870, 8896, 8979, 9322, 9372, 9548, 9588, 9616, 9622, 9634, 9652, 9662, 9672, 9676, 9680, 9702, 9735, 9738, 9793, 9795, 11906, 11909, 11913, 11917, 11928, 11944, 11947, 11951, 11956, 11960, 11964, 11979, 12284, 12292, 12312, 12319, 12330, 12351, 12436, 12447, 12535, 12543, 12586, 12842, 12850, 12964, 13200, 13215, 13218, 13253, 13263, 13267, 13270, 13384, 13428, 13727, 13839, 13851, 14617, 14703, 14801, 14816, 14964, 15183, 15471, 15585, 16471, 16736, 17208, 17325, 17330, 17374, 17623, 17997, 18018, 18212, 18218, 18301, 18318, 18760, 18811, 18814, 18820, 18823, 18844, 18848, 18872, 19576, 19620, 19738, 19887, 40870, 59244, 59336, 59367, 59413, 59417, 59423, 59431, 59437, 59443, 59452, 59460, 59478, 59493, 63789, 63866, 63894, 63976, 63986, 64016, 64018, 64021, 64025, 64034, 64037, 64042, 65074, 65093, 65107, 65112, 65127, 65132, 65375, 65510, 65536], gbChars: [0, 36, 38, 45, 50, 81, 89, 95, 96, 100, 103, 104, 105, 109, 126, 133, 148, 172, 175, 179, 208, 306, 307, 308, 309, 310, 311, 312, 313, 341, 428, 443, 544, 545, 558, 741, 742, 749, 750, 805, 819, 820, 7922, 7924, 7925, 7927, 7934, 7943, 7944, 7945, 7950, 8062, 8148, 8149, 8152, 8164, 8174, 8236, 8240, 8262, 8264, 8374, 8380, 8381, 8384, 8388, 8390, 8392, 8393, 8394, 8396, 8401, 8406, 8416, 8419, 8424, 8437, 8439, 8445, 8482, 8485, 8496, 8521, 8603, 8936, 8946, 9046, 9050, 9063, 9066, 9076, 9092, 9100, 9108, 9111, 9113, 9131, 9162, 9164, 9218, 9219, 11329, 11331, 11334, 11336, 11346, 11361, 11363, 11366, 11370, 11372, 11375, 11389, 11682, 11686, 11687, 11692, 11694, 11714, 11716, 11723, 11725, 11730, 11736, 11982, 11989, 12102, 12336, 12348, 12350, 12384, 12393, 12395, 12397, 12510, 12553, 12851, 12962, 12973, 13738, 13823, 13919, 13933, 14080, 14298, 14585, 14698, 15583, 15847, 16318, 16434, 16438, 16481, 16729, 17102, 17122, 17315, 17320, 17402, 17418, 17859, 17909, 17911, 17915, 17916, 17936, 17939, 17961, 18664, 18703, 18814, 18962, 19043, 33469, 33470, 33471, 33484, 33485, 33490, 33497, 33501, 33505, 33513, 33520, 33536, 33550, 37845, 37921, 37948, 38029, 38038, 38064, 38065, 38066, 38069, 38075, 38076, 38078, 39108, 39109, 39113, 39114, 39115, 39116, 39265, 39394, 189e3] };
|
|
3772
3772
|
}
|
|
3773
3773
|
});
|
|
3774
3774
|
|
|
3775
|
-
// ../../../node_modules/
|
|
3775
|
+
// ../../../node_modules/iconv-lite/encodings/tables/cp949.json
|
|
3776
3776
|
var require_cp949 = __commonJS({
|
|
3777
|
-
"../../../node_modules/
|
|
3777
|
+
"../../../node_modules/iconv-lite/encodings/tables/cp949.json"(exports2, module2) {
|
|
3778
3778
|
module2.exports = [
|
|
3779
3779
|
["0", "\0", 127],
|
|
3780
3780
|
["8141", "\uAC02\uAC03\uAC05\uAC06\uAC0B", 4, "\uAC18\uAC1E\uAC1F\uAC21\uAC22\uAC23\uAC25", 6, "\uAC2E\uAC32\uAC33\uAC34"],
|
|
@@ -4051,9 +4051,9 @@ var require_cp949 = __commonJS({
|
|
|
4051
4051
|
}
|
|
4052
4052
|
});
|
|
4053
4053
|
|
|
4054
|
-
// ../../../node_modules/
|
|
4054
|
+
// ../../../node_modules/iconv-lite/encodings/tables/cp950.json
|
|
4055
4055
|
var require_cp950 = __commonJS({
|
|
4056
|
-
"../../../node_modules/
|
|
4056
|
+
"../../../node_modules/iconv-lite/encodings/tables/cp950.json"(exports2, module2) {
|
|
4057
4057
|
module2.exports = [
|
|
4058
4058
|
["0", "\0", 127],
|
|
4059
4059
|
["a140", "\u3000\uFF0C\u3001\u3002\uFF0E\u2027\uFF1B\uFF1A\uFF1F\uFF01\uFE30\u2026\u2025\uFE50\uFE51\uFE52\xB7\uFE54\uFE55\uFE56\uFE57\uFF5C\u2013\uFE31\u2014\uFE33\u2574\uFE34\uFE4F\uFF08\uFF09\uFE35\uFE36\uFF5B\uFF5D\uFE37\uFE38\u3014\u3015\uFE39\uFE3A\u3010\u3011\uFE3B\uFE3C\u300A\u300B\uFE3D\uFE3E\u3008\u3009\uFE3F\uFE40\u300C\u300D\uFE41\uFE42\u300E\u300F\uFE43\uFE44\uFE59\uFE5A"],
|
|
@@ -4234,9 +4234,9 @@ var require_cp950 = __commonJS({
|
|
|
4234
4234
|
}
|
|
4235
4235
|
});
|
|
4236
4236
|
|
|
4237
|
-
// ../../../node_modules/
|
|
4237
|
+
// ../../../node_modules/iconv-lite/encodings/tables/big5-added.json
|
|
4238
4238
|
var require_big5_added = __commonJS({
|
|
4239
|
-
"../../../node_modules/
|
|
4239
|
+
"../../../node_modules/iconv-lite/encodings/tables/big5-added.json"(exports2, module2) {
|
|
4240
4240
|
module2.exports = [
|
|
4241
4241
|
["8740", "\u43F0\u4C32\u4603\u45A6\u4578\u{27267}\u4D77\u45B3\u{27CB1}\u4CE2\u{27CC5}\u3B95\u4736\u4744\u4C47\u4C40\u{242BF}\u{23617}\u{27352}\u{26E8B}\u{270D2}\u4C57\u{2A351}\u474F\u45DA\u4C85\u{27C6C}\u4D07\u4AA4\u46A1\u{26B23}\u7225\u{25A54}\u{21A63}\u{23E06}\u{23F61}\u664D\u56FB"],
|
|
4242
4242
|
["8767", "\u7D95\u591D\u{28BB9}\u3DF4\u9734\u{27BEF}\u5BDB\u{21D5E}\u5AA4\u3625\u{29EB0}\u5AD1\u5BB7\u5CFC\u676E\u8593\u{29945}\u7461\u749D\u3875\u{21D53}\u{2369E}\u{26021}\u3EEC"],
|
|
@@ -4362,9 +4362,9 @@ var require_big5_added = __commonJS({
|
|
|
4362
4362
|
}
|
|
4363
4363
|
});
|
|
4364
4364
|
|
|
4365
|
-
// ../../../node_modules/
|
|
4365
|
+
// ../../../node_modules/iconv-lite/encodings/dbcs-data.js
|
|
4366
4366
|
var require_dbcs_data = __commonJS({
|
|
4367
|
-
"../../../node_modules/
|
|
4367
|
+
"../../../node_modules/iconv-lite/encodings/dbcs-data.js"(exports2, module2) {
|
|
4368
4368
|
"use strict";
|
|
4369
4369
|
module2.exports = {
|
|
4370
4370
|
// == Japanese/ShiftJIS ====================================================
|
|
@@ -4554,9 +4554,9 @@ var require_dbcs_data = __commonJS({
|
|
|
4554
4554
|
}
|
|
4555
4555
|
});
|
|
4556
4556
|
|
|
4557
|
-
// ../../../node_modules/
|
|
4557
|
+
// ../../../node_modules/iconv-lite/encodings/index.js
|
|
4558
4558
|
var require_encodings = __commonJS({
|
|
4559
|
-
"../../../node_modules/
|
|
4559
|
+
"../../../node_modules/iconv-lite/encodings/index.js"(exports2, module2) {
|
|
4560
4560
|
"use strict";
|
|
4561
4561
|
var modules = [
|
|
4562
4562
|
require_internal(),
|
|
@@ -4578,9 +4578,9 @@ var require_encodings = __commonJS({
|
|
|
4578
4578
|
}
|
|
4579
4579
|
});
|
|
4580
4580
|
|
|
4581
|
-
// ../../../node_modules/
|
|
4581
|
+
// ../../../node_modules/iconv-lite/lib/streams.js
|
|
4582
4582
|
var require_streams = __commonJS({
|
|
4583
|
-
"../../../node_modules/
|
|
4583
|
+
"../../../node_modules/iconv-lite/lib/streams.js"(exports2, module2) {
|
|
4584
4584
|
"use strict";
|
|
4585
4585
|
var Buffer2 = require("buffer").Buffer;
|
|
4586
4586
|
var Transform = require("stream").Transform;
|
|
@@ -4683,9 +4683,9 @@ var require_streams = __commonJS({
|
|
|
4683
4683
|
}
|
|
4684
4684
|
});
|
|
4685
4685
|
|
|
4686
|
-
// ../../../node_modules/
|
|
4686
|
+
// ../../../node_modules/iconv-lite/lib/extend-node.js
|
|
4687
4687
|
var require_extend_node = __commonJS({
|
|
4688
|
-
"../../../node_modules/
|
|
4688
|
+
"../../../node_modules/iconv-lite/lib/extend-node.js"(exports2, module2) {
|
|
4689
4689
|
"use strict";
|
|
4690
4690
|
var Buffer2 = require("buffer").Buffer;
|
|
4691
4691
|
module2.exports = function(iconv) {
|
|
@@ -4836,9 +4836,9 @@ var require_extend_node = __commonJS({
|
|
|
4836
4836
|
}
|
|
4837
4837
|
});
|
|
4838
4838
|
|
|
4839
|
-
// ../../../node_modules/
|
|
4839
|
+
// ../../../node_modules/iconv-lite/lib/index.js
|
|
4840
4840
|
var require_lib = __commonJS({
|
|
4841
|
-
"../../../node_modules/
|
|
4841
|
+
"../../../node_modules/iconv-lite/lib/index.js"(exports2, module2) {
|
|
4842
4842
|
"use strict";
|
|
4843
4843
|
var Buffer2 = require_safer().Buffer;
|
|
4844
4844
|
var bomHandling = require_bom_handling();
|
|
@@ -5492,9 +5492,9 @@ var require_read = __commonJS({
|
|
|
5492
5492
|
}
|
|
5493
5493
|
});
|
|
5494
5494
|
|
|
5495
|
-
// ../../../node_modules/
|
|
5495
|
+
// ../../../node_modules/media-typer/index.js
|
|
5496
5496
|
var require_media_typer = __commonJS({
|
|
5497
|
-
"../../../node_modules/
|
|
5497
|
+
"../../../node_modules/media-typer/index.js"(exports2) {
|
|
5498
5498
|
"use strict";
|
|
5499
5499
|
var paramRegExp = /; *([!#$%&'\*\+\-\.0-9A-Z\^_`a-z\|~]+) *= *("(?:[ !\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u0020-\u007e])*"|[!#$%&'\*\+\-\.0-9A-Z\^_`a-z\|~]+) */g;
|
|
5500
5500
|
var textRegExp = /^[\u0020-\u007e\u0080-\u00ff]+$/;
|
|
@@ -16502,9 +16502,9 @@ var require_side_channel = __commonJS({
|
|
|
16502
16502
|
}
|
|
16503
16503
|
});
|
|
16504
16504
|
|
|
16505
|
-
// ../../../node_modules/
|
|
16505
|
+
// ../../../node_modules/qs/lib/formats.js
|
|
16506
16506
|
var require_formats = __commonJS({
|
|
16507
|
-
"../../../node_modules/
|
|
16507
|
+
"../../../node_modules/qs/lib/formats.js"(exports2, module2) {
|
|
16508
16508
|
"use strict";
|
|
16509
16509
|
var replace = String.prototype.replace;
|
|
16510
16510
|
var percentTwenties = /%20/g;
|
|
@@ -16528,9 +16528,9 @@ var require_formats = __commonJS({
|
|
|
16528
16528
|
}
|
|
16529
16529
|
});
|
|
16530
16530
|
|
|
16531
|
-
// ../../../node_modules/
|
|
16531
|
+
// ../../../node_modules/qs/lib/utils.js
|
|
16532
16532
|
var require_utils = __commonJS({
|
|
16533
|
-
"../../../node_modules/
|
|
16533
|
+
"../../../node_modules/qs/lib/utils.js"(exports2, module2) {
|
|
16534
16534
|
"use strict";
|
|
16535
16535
|
var formats = require_formats();
|
|
16536
16536
|
var getSideChannel = require_side_channel();
|
|
@@ -16553,7 +16553,7 @@ var require_utils = __commonJS({
|
|
|
16553
16553
|
var hexTable = (function() {
|
|
16554
16554
|
var array = [];
|
|
16555
16555
|
for (var i = 0; i < 256; ++i) {
|
|
16556
|
-
array
|
|
16556
|
+
array.push("%" + ((i < 16 ? "0" : "") + i.toString(16)).toUpperCase());
|
|
16557
16557
|
}
|
|
16558
16558
|
return array;
|
|
16559
16559
|
})();
|
|
@@ -16565,7 +16565,7 @@ var require_utils = __commonJS({
|
|
|
16565
16565
|
var compacted = [];
|
|
16566
16566
|
for (var j = 0; j < obj.length; ++j) {
|
|
16567
16567
|
if (typeof obj[j] !== "undefined") {
|
|
16568
|
-
compacted
|
|
16568
|
+
compacted.push(obj[j]);
|
|
16569
16569
|
}
|
|
16570
16570
|
}
|
|
16571
16571
|
item.obj[item.prop] = compacted;
|
|
@@ -16589,11 +16589,7 @@ var require_utils = __commonJS({
|
|
|
16589
16589
|
}
|
|
16590
16590
|
if (typeof source !== "object" && typeof source !== "function") {
|
|
16591
16591
|
if (isArray(target)) {
|
|
16592
|
-
|
|
16593
|
-
if (options && typeof options.arrayLimit === "number" && nextIndex > options.arrayLimit) {
|
|
16594
|
-
return markOverflow(arrayToObject(target.concat(source), options), nextIndex);
|
|
16595
|
-
}
|
|
16596
|
-
target[nextIndex] = source;
|
|
16592
|
+
target.push(source);
|
|
16597
16593
|
} else if (target && typeof target === "object") {
|
|
16598
16594
|
if (isOverflow(target)) {
|
|
16599
16595
|
var newIndex = getMaxIndex(target) + 1;
|
|
@@ -16625,13 +16621,9 @@ var require_utils = __commonJS({
|
|
|
16625
16621
|
}
|
|
16626
16622
|
return markOverflow(result, getMaxIndex(source) + 1);
|
|
16627
16623
|
}
|
|
16628
|
-
|
|
16624
|
+
return [
|
|
16629
16625
|
target
|
|
16630
16626
|
].concat(source);
|
|
16631
|
-
if (options && typeof options.arrayLimit === "number" && combined.length > options.arrayLimit) {
|
|
16632
|
-
return markOverflow(arrayToObject(combined, options), combined.length - 1);
|
|
16633
|
-
}
|
|
16634
|
-
return combined;
|
|
16635
16627
|
}
|
|
16636
16628
|
var mergeTarget = target;
|
|
16637
16629
|
if (isArray(target) && !isArray(source)) {
|
|
@@ -16644,7 +16636,7 @@ var require_utils = __commonJS({
|
|
|
16644
16636
|
if (targetItem && typeof targetItem === "object" && item && typeof item === "object") {
|
|
16645
16637
|
target[i] = merge2(targetItem, item, options);
|
|
16646
16638
|
} else {
|
|
16647
|
-
target
|
|
16639
|
+
target.push(item);
|
|
16648
16640
|
}
|
|
16649
16641
|
} else {
|
|
16650
16642
|
target[i] = item;
|
|
@@ -16659,15 +16651,6 @@ var require_utils = __commonJS({
|
|
|
16659
16651
|
} else {
|
|
16660
16652
|
acc[key] = value;
|
|
16661
16653
|
}
|
|
16662
|
-
if (isOverflow(source) && !isOverflow(acc)) {
|
|
16663
|
-
markOverflow(acc, getMaxIndex(source));
|
|
16664
|
-
}
|
|
16665
|
-
if (isOverflow(acc)) {
|
|
16666
|
-
var keyNum = parseInt(key, 10);
|
|
16667
|
-
if (String(keyNum) === key && keyNum >= 0 && keyNum > getMaxIndex(acc)) {
|
|
16668
|
-
setMaxIndex(acc, keyNum);
|
|
16669
|
-
}
|
|
16670
|
-
}
|
|
16671
16654
|
return acc;
|
|
16672
16655
|
}, mergeTarget);
|
|
16673
16656
|
}, "merge");
|
|
@@ -16752,11 +16735,11 @@ var require_utils = __commonJS({
|
|
|
16752
16735
|
var key = keys[j];
|
|
16753
16736
|
var val = obj[key];
|
|
16754
16737
|
if (typeof val === "object" && val !== null && refs.indexOf(val) === -1) {
|
|
16755
|
-
queue
|
|
16738
|
+
queue.push({
|
|
16756
16739
|
obj,
|
|
16757
16740
|
prop: key
|
|
16758
|
-
};
|
|
16759
|
-
refs
|
|
16741
|
+
});
|
|
16742
|
+
refs.push(val);
|
|
16760
16743
|
}
|
|
16761
16744
|
}
|
|
16762
16745
|
}
|
|
@@ -16791,7 +16774,7 @@ var require_utils = __commonJS({
|
|
|
16791
16774
|
if (isArray(val)) {
|
|
16792
16775
|
var mapped = [];
|
|
16793
16776
|
for (var i = 0; i < val.length; i += 1) {
|
|
16794
|
-
mapped
|
|
16777
|
+
mapped.push(fn(val[i]));
|
|
16795
16778
|
}
|
|
16796
16779
|
return mapped;
|
|
16797
16780
|
}
|
|
@@ -16807,16 +16790,15 @@ var require_utils = __commonJS({
|
|
|
16807
16790
|
isBuffer,
|
|
16808
16791
|
isOverflow,
|
|
16809
16792
|
isRegExp,
|
|
16810
|
-
markOverflow,
|
|
16811
16793
|
maybeMap,
|
|
16812
16794
|
merge
|
|
16813
16795
|
};
|
|
16814
16796
|
}
|
|
16815
16797
|
});
|
|
16816
16798
|
|
|
16817
|
-
// ../../../node_modules/
|
|
16799
|
+
// ../../../node_modules/qs/lib/stringify.js
|
|
16818
16800
|
var require_stringify = __commonJS({
|
|
16819
|
-
"../../../node_modules/
|
|
16801
|
+
"../../../node_modules/qs/lib/stringify.js"(exports2, module2) {
|
|
16820
16802
|
"use strict";
|
|
16821
16803
|
var getSideChannel = require_side_channel();
|
|
16822
16804
|
var utils = require_utils();
|
|
@@ -17069,9 +17051,9 @@ var require_stringify = __commonJS({
|
|
|
17069
17051
|
}
|
|
17070
17052
|
});
|
|
17071
17053
|
|
|
17072
|
-
// ../../../node_modules/
|
|
17054
|
+
// ../../../node_modules/qs/lib/parse.js
|
|
17073
17055
|
var require_parse = __commonJS({
|
|
17074
|
-
"../../../node_modules/
|
|
17056
|
+
"../../../node_modules/qs/lib/parse.js"(exports2, module2) {
|
|
17075
17057
|
"use strict";
|
|
17076
17058
|
var utils = require_utils();
|
|
17077
17059
|
var has = Object.prototype.hasOwnProperty;
|
|
@@ -17170,12 +17152,6 @@ var require_parse = __commonJS({
|
|
|
17170
17152
|
val
|
|
17171
17153
|
] : val;
|
|
17172
17154
|
}
|
|
17173
|
-
if (options.comma && isArray(val) && val.length > options.arrayLimit) {
|
|
17174
|
-
if (options.throwOnLimitExceeded) {
|
|
17175
|
-
throw new RangeError("Array limit exceeded. Only " + options.arrayLimit + " element" + (options.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
|
|
17176
|
-
}
|
|
17177
|
-
val = utils.combine([], val, options.arrayLimit, options.plainObjects);
|
|
17178
|
-
}
|
|
17179
17155
|
if (key !== null) {
|
|
17180
17156
|
var existing = has.call(obj, key);
|
|
17181
17157
|
if (existing && options.duplicates === "combine") {
|
|
@@ -17210,19 +17186,13 @@ var require_parse = __commonJS({
|
|
|
17210
17186
|
var cleanRoot = root.charAt(0) === "[" && root.charAt(root.length - 1) === "]" ? root.slice(1, -1) : root;
|
|
17211
17187
|
var decodedRoot = options.decodeDotInKeys ? cleanRoot.replace(/%2E/g, ".") : cleanRoot;
|
|
17212
17188
|
var index = parseInt(decodedRoot, 10);
|
|
17213
|
-
var isValidArrayIndex = !isNaN(index) && root !== decodedRoot && String(index) === decodedRoot && index >= 0 && options.parseArrays;
|
|
17214
17189
|
if (!options.parseArrays && decodedRoot === "") {
|
|
17215
17190
|
obj = {
|
|
17216
17191
|
0: leaf
|
|
17217
17192
|
};
|
|
17218
|
-
} else if (
|
|
17193
|
+
} else if (!isNaN(index) && root !== decodedRoot && String(index) === decodedRoot && index >= 0 && options.parseArrays && index <= options.arrayLimit) {
|
|
17219
17194
|
obj = [];
|
|
17220
17195
|
obj[index] = leaf;
|
|
17221
|
-
} else if (isValidArrayIndex && options.throwOnLimitExceeded) {
|
|
17222
|
-
throw new RangeError("Array limit exceeded. Only " + options.arrayLimit + " element" + (options.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
|
|
17223
|
-
} else if (isValidArrayIndex) {
|
|
17224
|
-
obj[index] = leaf;
|
|
17225
|
-
utils.markOverflow(obj, index);
|
|
17226
17196
|
} else if (decodedRoot !== "__proto__") {
|
|
17227
17197
|
obj[decodedRoot] = leaf;
|
|
17228
17198
|
}
|
|
@@ -17254,7 +17224,7 @@ var require_parse = __commonJS({
|
|
|
17254
17224
|
return;
|
|
17255
17225
|
}
|
|
17256
17226
|
}
|
|
17257
|
-
keys
|
|
17227
|
+
keys.push(parent);
|
|
17258
17228
|
}
|
|
17259
17229
|
var i = 0;
|
|
17260
17230
|
while ((segment = child.exec(key)) !== null && i < options.depth) {
|
|
@@ -17265,13 +17235,13 @@ var require_parse = __commonJS({
|
|
|
17265
17235
|
return;
|
|
17266
17236
|
}
|
|
17267
17237
|
}
|
|
17268
|
-
keys
|
|
17238
|
+
keys.push(segment[1]);
|
|
17269
17239
|
}
|
|
17270
17240
|
if (segment) {
|
|
17271
17241
|
if (options.strictDepth === true) {
|
|
17272
17242
|
throw new RangeError("Input depth exceeded depth option of " + options.depth + " and strictDepth is true");
|
|
17273
17243
|
}
|
|
17274
|
-
keys
|
|
17244
|
+
keys.push("[" + key.slice(segment.index) + "]");
|
|
17275
17245
|
}
|
|
17276
17246
|
return keys;
|
|
17277
17247
|
}, "splitKeyIntoSegments");
|
|
@@ -17360,9 +17330,9 @@ var require_parse = __commonJS({
|
|
|
17360
17330
|
}
|
|
17361
17331
|
});
|
|
17362
17332
|
|
|
17363
|
-
// ../../../node_modules/
|
|
17333
|
+
// ../../../node_modules/qs/lib/index.js
|
|
17364
17334
|
var require_lib2 = __commonJS({
|
|
17365
|
-
"../../../node_modules/
|
|
17335
|
+
"../../../node_modules/qs/lib/index.js"(exports2, module2) {
|
|
17366
17336
|
"use strict";
|
|
17367
17337
|
var stringify = require_stringify();
|
|
17368
17338
|
var parse = require_parse();
|
|
@@ -19727,983 +19697,110 @@ var require_init = __commonJS({
|
|
|
19727
19697
|
}
|
|
19728
19698
|
});
|
|
19729
19699
|
|
|
19730
|
-
// ../../../node_modules/express/
|
|
19731
|
-
var
|
|
19732
|
-
"../../../node_modules/express/
|
|
19700
|
+
// ../../../node_modules/express/lib/middleware/query.js
|
|
19701
|
+
var require_query = __commonJS({
|
|
19702
|
+
"../../../node_modules/express/lib/middleware/query.js"(exports2, module2) {
|
|
19733
19703
|
"use strict";
|
|
19734
|
-
var
|
|
19735
|
-
var
|
|
19736
|
-
var
|
|
19737
|
-
|
|
19738
|
-
|
|
19739
|
-
|
|
19740
|
-
|
|
19741
|
-
|
|
19742
|
-
|
|
19743
|
-
|
|
19744
|
-
|
|
19745
|
-
|
|
19746
|
-
|
|
19747
|
-
|
|
19748
|
-
|
|
19749
|
-
|
|
19750
|
-
|
|
19751
|
-
|
|
19752
|
-
|
|
19704
|
+
var merge = require_utils_merge();
|
|
19705
|
+
var parseUrl = require_parseurl();
|
|
19706
|
+
var qs = require_lib2();
|
|
19707
|
+
module2.exports = /* @__PURE__ */ __name(function query(options) {
|
|
19708
|
+
var opts = merge({}, options);
|
|
19709
|
+
var queryparse = qs.parse;
|
|
19710
|
+
if (typeof options === "function") {
|
|
19711
|
+
queryparse = options;
|
|
19712
|
+
opts = void 0;
|
|
19713
|
+
}
|
|
19714
|
+
if (opts !== void 0 && opts.allowPrototypes === void 0) {
|
|
19715
|
+
opts.allowPrototypes = true;
|
|
19716
|
+
}
|
|
19717
|
+
return /* @__PURE__ */ __name(function query2(req, res, next) {
|
|
19718
|
+
if (!req.query) {
|
|
19719
|
+
var val = parseUrl(req).query;
|
|
19720
|
+
req.query = queryparse(val, opts);
|
|
19721
|
+
}
|
|
19722
|
+
next();
|
|
19723
|
+
}, "query");
|
|
19724
|
+
}, "query");
|
|
19753
19725
|
}
|
|
19754
19726
|
});
|
|
19755
19727
|
|
|
19756
|
-
// ../../../node_modules/express/
|
|
19757
|
-
var
|
|
19758
|
-
"../../../node_modules/express/
|
|
19728
|
+
// ../../../node_modules/express/lib/view.js
|
|
19729
|
+
var require_view = __commonJS({
|
|
19730
|
+
"../../../node_modules/express/lib/view.js"(exports2, module2) {
|
|
19759
19731
|
"use strict";
|
|
19760
|
-
var
|
|
19761
|
-
var
|
|
19762
|
-
var
|
|
19763
|
-
var
|
|
19764
|
-
var
|
|
19765
|
-
var
|
|
19766
|
-
|
|
19767
|
-
|
|
19768
|
-
|
|
19769
|
-
|
|
19770
|
-
|
|
19771
|
-
|
|
19772
|
-
|
|
19773
|
-
|
|
19774
|
-
|
|
19775
|
-
|
|
19776
|
-
|
|
19777
|
-
}, "setMaxIndex");
|
|
19778
|
-
var hexTable = (function() {
|
|
19779
|
-
var array = [];
|
|
19780
|
-
for (var i = 0; i < 256; ++i) {
|
|
19781
|
-
array[array.length] = "%" + ((i < 16 ? "0" : "") + i.toString(16)).toUpperCase();
|
|
19782
|
-
}
|
|
19783
|
-
return array;
|
|
19784
|
-
})();
|
|
19785
|
-
var compactQueue = /* @__PURE__ */ __name(function compactQueue2(queue) {
|
|
19786
|
-
while (queue.length > 1) {
|
|
19787
|
-
var item = queue.pop();
|
|
19788
|
-
var obj = item.obj[item.prop];
|
|
19789
|
-
if (isArray(obj)) {
|
|
19790
|
-
var compacted = [];
|
|
19791
|
-
for (var j = 0; j < obj.length; ++j) {
|
|
19792
|
-
if (typeof obj[j] !== "undefined") {
|
|
19793
|
-
compacted[compacted.length] = obj[j];
|
|
19794
|
-
}
|
|
19795
|
-
}
|
|
19796
|
-
item.obj[item.prop] = compacted;
|
|
19797
|
-
}
|
|
19798
|
-
}
|
|
19799
|
-
}, "compactQueue");
|
|
19800
|
-
var arrayToObject = /* @__PURE__ */ __name(function arrayToObject2(source, options) {
|
|
19801
|
-
var obj = options && options.plainObjects ? {
|
|
19802
|
-
__proto__: null
|
|
19803
|
-
} : {};
|
|
19804
|
-
for (var i = 0; i < source.length; ++i) {
|
|
19805
|
-
if (typeof source[i] !== "undefined") {
|
|
19806
|
-
obj[i] = source[i];
|
|
19807
|
-
}
|
|
19808
|
-
}
|
|
19809
|
-
return obj;
|
|
19810
|
-
}, "arrayToObject");
|
|
19811
|
-
var merge = /* @__PURE__ */ __name(function merge2(target, source, options) {
|
|
19812
|
-
if (!source) {
|
|
19813
|
-
return target;
|
|
19732
|
+
var debug = require_src3()("express:view");
|
|
19733
|
+
var path2 = require("path");
|
|
19734
|
+
var fs2 = require("fs");
|
|
19735
|
+
var dirname = path2.dirname;
|
|
19736
|
+
var basename = path2.basename;
|
|
19737
|
+
var extname2 = path2.extname;
|
|
19738
|
+
var join2 = path2.join;
|
|
19739
|
+
var resolve2 = path2.resolve;
|
|
19740
|
+
module2.exports = View;
|
|
19741
|
+
function View(name, options) {
|
|
19742
|
+
var opts = options || {};
|
|
19743
|
+
this.defaultEngine = opts.defaultEngine;
|
|
19744
|
+
this.ext = extname2(name);
|
|
19745
|
+
this.name = name;
|
|
19746
|
+
this.root = opts.root;
|
|
19747
|
+
if (!this.ext && !this.defaultEngine) {
|
|
19748
|
+
throw new Error("No default engine was specified and no extension was provided.");
|
|
19814
19749
|
}
|
|
19815
|
-
|
|
19816
|
-
|
|
19817
|
-
|
|
19818
|
-
|
|
19819
|
-
return markOverflow(arrayToObject(target.concat(source), options), nextIndex);
|
|
19820
|
-
}
|
|
19821
|
-
target[nextIndex] = source;
|
|
19822
|
-
} else if (target && typeof target === "object") {
|
|
19823
|
-
if (isOverflow(target)) {
|
|
19824
|
-
var newIndex = getMaxIndex(target) + 1;
|
|
19825
|
-
target[newIndex] = source;
|
|
19826
|
-
setMaxIndex(target, newIndex);
|
|
19827
|
-
} else if (options && (options.plainObjects || options.allowPrototypes) || !has.call(Object.prototype, source)) {
|
|
19828
|
-
target[source] = true;
|
|
19829
|
-
}
|
|
19830
|
-
} else {
|
|
19831
|
-
return [
|
|
19832
|
-
target,
|
|
19833
|
-
source
|
|
19834
|
-
];
|
|
19835
|
-
}
|
|
19836
|
-
return target;
|
|
19750
|
+
var fileName = name;
|
|
19751
|
+
if (!this.ext) {
|
|
19752
|
+
this.ext = this.defaultEngine[0] !== "." ? "." + this.defaultEngine : this.defaultEngine;
|
|
19753
|
+
fileName += this.ext;
|
|
19837
19754
|
}
|
|
19838
|
-
if (!
|
|
19839
|
-
|
|
19840
|
-
|
|
19841
|
-
|
|
19842
|
-
|
|
19843
|
-
|
|
19844
|
-
} : {
|
|
19845
|
-
0: target
|
|
19846
|
-
};
|
|
19847
|
-
for (var m = 0; m < sourceKeys.length; m++) {
|
|
19848
|
-
var oldKey = parseInt(sourceKeys[m], 10);
|
|
19849
|
-
result[oldKey + 1] = source[sourceKeys[m]];
|
|
19850
|
-
}
|
|
19851
|
-
return markOverflow(result, getMaxIndex(source) + 1);
|
|
19852
|
-
}
|
|
19853
|
-
var combined = [
|
|
19854
|
-
target
|
|
19855
|
-
].concat(source);
|
|
19856
|
-
if (options && typeof options.arrayLimit === "number" && combined.length > options.arrayLimit) {
|
|
19857
|
-
return markOverflow(arrayToObject(combined, options), combined.length - 1);
|
|
19755
|
+
if (!opts.engines[this.ext]) {
|
|
19756
|
+
var mod = this.ext.slice(1);
|
|
19757
|
+
debug('require "%s"', mod);
|
|
19758
|
+
var fn = require(mod).__express;
|
|
19759
|
+
if (typeof fn !== "function") {
|
|
19760
|
+
throw new Error('Module "' + mod + '" does not provide a view engine.');
|
|
19858
19761
|
}
|
|
19859
|
-
|
|
19762
|
+
opts.engines[this.ext] = fn;
|
|
19860
19763
|
}
|
|
19861
|
-
|
|
19862
|
-
|
|
19863
|
-
|
|
19764
|
+
this.engine = opts.engines[this.ext];
|
|
19765
|
+
this.path = this.lookup(fileName);
|
|
19766
|
+
}
|
|
19767
|
+
__name(View, "View");
|
|
19768
|
+
View.prototype.lookup = /* @__PURE__ */ __name(function lookup(name) {
|
|
19769
|
+
var path3;
|
|
19770
|
+
var roots = [].concat(this.root);
|
|
19771
|
+
debug('lookup "%s"', name);
|
|
19772
|
+
for (var i = 0; i < roots.length && !path3; i++) {
|
|
19773
|
+
var root = roots[i];
|
|
19774
|
+
var loc = resolve2(root, name);
|
|
19775
|
+
var dir = dirname(loc);
|
|
19776
|
+
var file = basename(loc);
|
|
19777
|
+
path3 = this.resolve(dir, file);
|
|
19864
19778
|
}
|
|
19865
|
-
|
|
19866
|
-
|
|
19867
|
-
|
|
19868
|
-
|
|
19869
|
-
|
|
19870
|
-
|
|
19871
|
-
|
|
19872
|
-
|
|
19873
|
-
|
|
19874
|
-
|
|
19875
|
-
|
|
19876
|
-
|
|
19877
|
-
});
|
|
19878
|
-
return target;
|
|
19779
|
+
return path3;
|
|
19780
|
+
}, "lookup");
|
|
19781
|
+
View.prototype.render = /* @__PURE__ */ __name(function render(options, callback) {
|
|
19782
|
+
debug('render "%s"', this.path);
|
|
19783
|
+
this.engine(this.path, options, callback);
|
|
19784
|
+
}, "render");
|
|
19785
|
+
View.prototype.resolve = /* @__PURE__ */ __name(function resolve3(dir, file) {
|
|
19786
|
+
var ext = this.ext;
|
|
19787
|
+
var path3 = join2(dir, file);
|
|
19788
|
+
var stat = tryStat(path3);
|
|
19789
|
+
if (stat && stat.isFile()) {
|
|
19790
|
+
return path3;
|
|
19879
19791
|
}
|
|
19880
|
-
|
|
19881
|
-
|
|
19882
|
-
|
|
19883
|
-
|
|
19884
|
-
} else {
|
|
19885
|
-
acc[key] = value;
|
|
19886
|
-
}
|
|
19887
|
-
if (isOverflow(source) && !isOverflow(acc)) {
|
|
19888
|
-
markOverflow(acc, getMaxIndex(source));
|
|
19889
|
-
}
|
|
19890
|
-
if (isOverflow(acc)) {
|
|
19891
|
-
var keyNum = parseInt(key, 10);
|
|
19892
|
-
if (String(keyNum) === key && keyNum >= 0 && keyNum > getMaxIndex(acc)) {
|
|
19893
|
-
setMaxIndex(acc, keyNum);
|
|
19894
|
-
}
|
|
19895
|
-
}
|
|
19896
|
-
return acc;
|
|
19897
|
-
}, mergeTarget);
|
|
19898
|
-
}, "merge");
|
|
19899
|
-
var assign = /* @__PURE__ */ __name(function assignSingleSource(target, source) {
|
|
19900
|
-
return Object.keys(source).reduce(function(acc, key) {
|
|
19901
|
-
acc[key] = source[key];
|
|
19902
|
-
return acc;
|
|
19903
|
-
}, target);
|
|
19904
|
-
}, "assignSingleSource");
|
|
19905
|
-
var decode = /* @__PURE__ */ __name(function(str, defaultDecoder, charset) {
|
|
19906
|
-
var strWithoutPlus = str.replace(/\+/g, " ");
|
|
19907
|
-
if (charset === "iso-8859-1") {
|
|
19908
|
-
return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape);
|
|
19792
|
+
path3 = join2(dir, basename(file, ext), "index" + ext);
|
|
19793
|
+
stat = tryStat(path3);
|
|
19794
|
+
if (stat && stat.isFile()) {
|
|
19795
|
+
return path3;
|
|
19909
19796
|
}
|
|
19797
|
+
}, "resolve");
|
|
19798
|
+
function tryStat(path3) {
|
|
19799
|
+
debug('stat "%s"', path3);
|
|
19910
19800
|
try {
|
|
19911
|
-
return
|
|
19801
|
+
return fs2.statSync(path3);
|
|
19912
19802
|
} catch (e) {
|
|
19913
|
-
return
|
|
19914
|
-
}
|
|
19915
|
-
}, "decode");
|
|
19916
|
-
var limit = 1024;
|
|
19917
|
-
var encode = /* @__PURE__ */ __name(function encode2(str, defaultEncoder, charset, kind, format) {
|
|
19918
|
-
if (str.length === 0) {
|
|
19919
|
-
return str;
|
|
19920
|
-
}
|
|
19921
|
-
var string = str;
|
|
19922
|
-
if (typeof str === "symbol") {
|
|
19923
|
-
string = Symbol.prototype.toString.call(str);
|
|
19924
|
-
} else if (typeof str !== "string") {
|
|
19925
|
-
string = String(str);
|
|
19926
|
-
}
|
|
19927
|
-
if (charset === "iso-8859-1") {
|
|
19928
|
-
return escape(string).replace(/%u[0-9a-f]{4}/gi, function($0) {
|
|
19929
|
-
return "%26%23" + parseInt($0.slice(2), 16) + "%3B";
|
|
19930
|
-
});
|
|
19931
|
-
}
|
|
19932
|
-
var out = "";
|
|
19933
|
-
for (var j = 0; j < string.length; j += limit) {
|
|
19934
|
-
var segment = string.length >= limit ? string.slice(j, j + limit) : string;
|
|
19935
|
-
var arr = [];
|
|
19936
|
-
for (var i = 0; i < segment.length; ++i) {
|
|
19937
|
-
var c = segment.charCodeAt(i);
|
|
19938
|
-
if (c === 45 || c === 46 || c === 95 || c === 126 || c >= 48 && c <= 57 || c >= 65 && c <= 90 || c >= 97 && c <= 122 || format === formats.RFC1738 && (c === 40 || c === 41)) {
|
|
19939
|
-
arr[arr.length] = segment.charAt(i);
|
|
19940
|
-
continue;
|
|
19941
|
-
}
|
|
19942
|
-
if (c < 128) {
|
|
19943
|
-
arr[arr.length] = hexTable[c];
|
|
19944
|
-
continue;
|
|
19945
|
-
}
|
|
19946
|
-
if (c < 2048) {
|
|
19947
|
-
arr[arr.length] = hexTable[192 | c >> 6] + hexTable[128 | c & 63];
|
|
19948
|
-
continue;
|
|
19949
|
-
}
|
|
19950
|
-
if (c < 55296 || c >= 57344) {
|
|
19951
|
-
arr[arr.length] = hexTable[224 | c >> 12] + hexTable[128 | c >> 6 & 63] + hexTable[128 | c & 63];
|
|
19952
|
-
continue;
|
|
19953
|
-
}
|
|
19954
|
-
i += 1;
|
|
19955
|
-
c = 65536 + ((c & 1023) << 10 | segment.charCodeAt(i) & 1023);
|
|
19956
|
-
arr[arr.length] = hexTable[240 | c >> 18] + hexTable[128 | c >> 12 & 63] + hexTable[128 | c >> 6 & 63] + hexTable[128 | c & 63];
|
|
19957
|
-
}
|
|
19958
|
-
out += arr.join("");
|
|
19959
|
-
}
|
|
19960
|
-
return out;
|
|
19961
|
-
}, "encode");
|
|
19962
|
-
var compact = /* @__PURE__ */ __name(function compact2(value) {
|
|
19963
|
-
var queue = [
|
|
19964
|
-
{
|
|
19965
|
-
obj: {
|
|
19966
|
-
o: value
|
|
19967
|
-
},
|
|
19968
|
-
prop: "o"
|
|
19969
|
-
}
|
|
19970
|
-
];
|
|
19971
|
-
var refs = [];
|
|
19972
|
-
for (var i = 0; i < queue.length; ++i) {
|
|
19973
|
-
var item = queue[i];
|
|
19974
|
-
var obj = item.obj[item.prop];
|
|
19975
|
-
var keys = Object.keys(obj);
|
|
19976
|
-
for (var j = 0; j < keys.length; ++j) {
|
|
19977
|
-
var key = keys[j];
|
|
19978
|
-
var val = obj[key];
|
|
19979
|
-
if (typeof val === "object" && val !== null && refs.indexOf(val) === -1) {
|
|
19980
|
-
queue[queue.length] = {
|
|
19981
|
-
obj,
|
|
19982
|
-
prop: key
|
|
19983
|
-
};
|
|
19984
|
-
refs[refs.length] = val;
|
|
19985
|
-
}
|
|
19986
|
-
}
|
|
19987
|
-
}
|
|
19988
|
-
compactQueue(queue);
|
|
19989
|
-
return value;
|
|
19990
|
-
}, "compact");
|
|
19991
|
-
var isRegExp = /* @__PURE__ */ __name(function isRegExp2(obj) {
|
|
19992
|
-
return Object.prototype.toString.call(obj) === "[object RegExp]";
|
|
19993
|
-
}, "isRegExp");
|
|
19994
|
-
var isBuffer = /* @__PURE__ */ __name(function isBuffer2(obj) {
|
|
19995
|
-
if (!obj || typeof obj !== "object") {
|
|
19996
|
-
return false;
|
|
19997
|
-
}
|
|
19998
|
-
return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));
|
|
19999
|
-
}, "isBuffer");
|
|
20000
|
-
var combine = /* @__PURE__ */ __name(function combine2(a, b, arrayLimit, plainObjects) {
|
|
20001
|
-
if (isOverflow(a)) {
|
|
20002
|
-
var newIndex = getMaxIndex(a) + 1;
|
|
20003
|
-
a[newIndex] = b;
|
|
20004
|
-
setMaxIndex(a, newIndex);
|
|
20005
|
-
return a;
|
|
20006
|
-
}
|
|
20007
|
-
var result = [].concat(a, b);
|
|
20008
|
-
if (result.length > arrayLimit) {
|
|
20009
|
-
return markOverflow(arrayToObject(result, {
|
|
20010
|
-
plainObjects
|
|
20011
|
-
}), result.length - 1);
|
|
20012
|
-
}
|
|
20013
|
-
return result;
|
|
20014
|
-
}, "combine");
|
|
20015
|
-
var maybeMap = /* @__PURE__ */ __name(function maybeMap2(val, fn) {
|
|
20016
|
-
if (isArray(val)) {
|
|
20017
|
-
var mapped = [];
|
|
20018
|
-
for (var i = 0; i < val.length; i += 1) {
|
|
20019
|
-
mapped[mapped.length] = fn(val[i]);
|
|
20020
|
-
}
|
|
20021
|
-
return mapped;
|
|
20022
|
-
}
|
|
20023
|
-
return fn(val);
|
|
20024
|
-
}, "maybeMap");
|
|
20025
|
-
module2.exports = {
|
|
20026
|
-
arrayToObject,
|
|
20027
|
-
assign,
|
|
20028
|
-
combine,
|
|
20029
|
-
compact,
|
|
20030
|
-
decode,
|
|
20031
|
-
encode,
|
|
20032
|
-
isBuffer,
|
|
20033
|
-
isOverflow,
|
|
20034
|
-
isRegExp,
|
|
20035
|
-
markOverflow,
|
|
20036
|
-
maybeMap,
|
|
20037
|
-
merge
|
|
20038
|
-
};
|
|
20039
|
-
}
|
|
20040
|
-
});
|
|
20041
|
-
|
|
20042
|
-
// ../../../node_modules/express/node_modules/qs/lib/stringify.js
|
|
20043
|
-
var require_stringify2 = __commonJS({
|
|
20044
|
-
"../../../node_modules/express/node_modules/qs/lib/stringify.js"(exports2, module2) {
|
|
20045
|
-
"use strict";
|
|
20046
|
-
var getSideChannel = require_side_channel();
|
|
20047
|
-
var utils = require_utils2();
|
|
20048
|
-
var formats = require_formats2();
|
|
20049
|
-
var has = Object.prototype.hasOwnProperty;
|
|
20050
|
-
var arrayPrefixGenerators = {
|
|
20051
|
-
brackets: /* @__PURE__ */ __name(function brackets(prefix) {
|
|
20052
|
-
return prefix + "[]";
|
|
20053
|
-
}, "brackets"),
|
|
20054
|
-
comma: "comma",
|
|
20055
|
-
indices: /* @__PURE__ */ __name(function indices(prefix, key) {
|
|
20056
|
-
return prefix + "[" + key + "]";
|
|
20057
|
-
}, "indices"),
|
|
20058
|
-
repeat: /* @__PURE__ */ __name(function repeat(prefix) {
|
|
20059
|
-
return prefix;
|
|
20060
|
-
}, "repeat")
|
|
20061
|
-
};
|
|
20062
|
-
var isArray = Array.isArray;
|
|
20063
|
-
var push = Array.prototype.push;
|
|
20064
|
-
var pushToArray = /* @__PURE__ */ __name(function(arr, valueOrArray) {
|
|
20065
|
-
push.apply(arr, isArray(valueOrArray) ? valueOrArray : [
|
|
20066
|
-
valueOrArray
|
|
20067
|
-
]);
|
|
20068
|
-
}, "pushToArray");
|
|
20069
|
-
var toISO = Date.prototype.toISOString;
|
|
20070
|
-
var defaultFormat = formats["default"];
|
|
20071
|
-
var defaults = {
|
|
20072
|
-
addQueryPrefix: false,
|
|
20073
|
-
allowDots: false,
|
|
20074
|
-
allowEmptyArrays: false,
|
|
20075
|
-
arrayFormat: "indices",
|
|
20076
|
-
charset: "utf-8",
|
|
20077
|
-
charsetSentinel: false,
|
|
20078
|
-
commaRoundTrip: false,
|
|
20079
|
-
delimiter: "&",
|
|
20080
|
-
encode: true,
|
|
20081
|
-
encodeDotInKeys: false,
|
|
20082
|
-
encoder: utils.encode,
|
|
20083
|
-
encodeValuesOnly: false,
|
|
20084
|
-
filter: void 0,
|
|
20085
|
-
format: defaultFormat,
|
|
20086
|
-
formatter: formats.formatters[defaultFormat],
|
|
20087
|
-
// deprecated
|
|
20088
|
-
indices: false,
|
|
20089
|
-
serializeDate: /* @__PURE__ */ __name(function serializeDate(date) {
|
|
20090
|
-
return toISO.call(date);
|
|
20091
|
-
}, "serializeDate"),
|
|
20092
|
-
skipNulls: false,
|
|
20093
|
-
strictNullHandling: false
|
|
20094
|
-
};
|
|
20095
|
-
var isNonNullishPrimitive = /* @__PURE__ */ __name(function isNonNullishPrimitive2(v) {
|
|
20096
|
-
return typeof v === "string" || typeof v === "number" || typeof v === "boolean" || typeof v === "symbol" || typeof v === "bigint";
|
|
20097
|
-
}, "isNonNullishPrimitive");
|
|
20098
|
-
var sentinel = {};
|
|
20099
|
-
var stringify = /* @__PURE__ */ __name(function stringify2(object, prefix, generateArrayPrefix, commaRoundTrip, allowEmptyArrays, strictNullHandling, skipNulls, encodeDotInKeys, encoder, filter, sort, allowDots, serializeDate, format, formatter, encodeValuesOnly, charset, sideChannel) {
|
|
20100
|
-
var obj = object;
|
|
20101
|
-
var tmpSc = sideChannel;
|
|
20102
|
-
var step = 0;
|
|
20103
|
-
var findFlag = false;
|
|
20104
|
-
while ((tmpSc = tmpSc.get(sentinel)) !== void 0 && !findFlag) {
|
|
20105
|
-
var pos = tmpSc.get(object);
|
|
20106
|
-
step += 1;
|
|
20107
|
-
if (typeof pos !== "undefined") {
|
|
20108
|
-
if (pos === step) {
|
|
20109
|
-
throw new RangeError("Cyclic object value");
|
|
20110
|
-
} else {
|
|
20111
|
-
findFlag = true;
|
|
20112
|
-
}
|
|
20113
|
-
}
|
|
20114
|
-
if (typeof tmpSc.get(sentinel) === "undefined") {
|
|
20115
|
-
step = 0;
|
|
20116
|
-
}
|
|
20117
|
-
}
|
|
20118
|
-
if (typeof filter === "function") {
|
|
20119
|
-
obj = filter(prefix, obj);
|
|
20120
|
-
} else if (obj instanceof Date) {
|
|
20121
|
-
obj = serializeDate(obj);
|
|
20122
|
-
} else if (generateArrayPrefix === "comma" && isArray(obj)) {
|
|
20123
|
-
obj = utils.maybeMap(obj, function(value2) {
|
|
20124
|
-
if (value2 instanceof Date) {
|
|
20125
|
-
return serializeDate(value2);
|
|
20126
|
-
}
|
|
20127
|
-
return value2;
|
|
20128
|
-
});
|
|
20129
|
-
}
|
|
20130
|
-
if (obj === null) {
|
|
20131
|
-
if (strictNullHandling) {
|
|
20132
|
-
return encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset, "key", format) : prefix;
|
|
20133
|
-
}
|
|
20134
|
-
obj = "";
|
|
20135
|
-
}
|
|
20136
|
-
if (isNonNullishPrimitive(obj) || utils.isBuffer(obj)) {
|
|
20137
|
-
if (encoder) {
|
|
20138
|
-
var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder, charset, "key", format);
|
|
20139
|
-
return [
|
|
20140
|
-
formatter(keyValue) + "=" + formatter(encoder(obj, defaults.encoder, charset, "value", format))
|
|
20141
|
-
];
|
|
20142
|
-
}
|
|
20143
|
-
return [
|
|
20144
|
-
formatter(prefix) + "=" + formatter(String(obj))
|
|
20145
|
-
];
|
|
20146
|
-
}
|
|
20147
|
-
var values = [];
|
|
20148
|
-
if (typeof obj === "undefined") {
|
|
20149
|
-
return values;
|
|
20150
|
-
}
|
|
20151
|
-
var objKeys;
|
|
20152
|
-
if (generateArrayPrefix === "comma" && isArray(obj)) {
|
|
20153
|
-
if (encodeValuesOnly && encoder) {
|
|
20154
|
-
obj = utils.maybeMap(obj, encoder);
|
|
20155
|
-
}
|
|
20156
|
-
objKeys = [
|
|
20157
|
-
{
|
|
20158
|
-
value: obj.length > 0 ? obj.join(",") || null : void 0
|
|
20159
|
-
}
|
|
20160
|
-
];
|
|
20161
|
-
} else if (isArray(filter)) {
|
|
20162
|
-
objKeys = filter;
|
|
20163
|
-
} else {
|
|
20164
|
-
var keys = Object.keys(obj);
|
|
20165
|
-
objKeys = sort ? keys.sort(sort) : keys;
|
|
20166
|
-
}
|
|
20167
|
-
var encodedPrefix = encodeDotInKeys ? String(prefix).replace(/\./g, "%2E") : String(prefix);
|
|
20168
|
-
var adjustedPrefix = commaRoundTrip && isArray(obj) && obj.length === 1 ? encodedPrefix + "[]" : encodedPrefix;
|
|
20169
|
-
if (allowEmptyArrays && isArray(obj) && obj.length === 0) {
|
|
20170
|
-
return adjustedPrefix + "[]";
|
|
20171
|
-
}
|
|
20172
|
-
for (var j = 0; j < objKeys.length; ++j) {
|
|
20173
|
-
var key = objKeys[j];
|
|
20174
|
-
var value = typeof key === "object" && key && typeof key.value !== "undefined" ? key.value : obj[key];
|
|
20175
|
-
if (skipNulls && value === null) {
|
|
20176
|
-
continue;
|
|
20177
|
-
}
|
|
20178
|
-
var encodedKey = allowDots && encodeDotInKeys ? String(key).replace(/\./g, "%2E") : String(key);
|
|
20179
|
-
var keyPrefix = isArray(obj) ? typeof generateArrayPrefix === "function" ? generateArrayPrefix(adjustedPrefix, encodedKey) : adjustedPrefix : adjustedPrefix + (allowDots ? "." + encodedKey : "[" + encodedKey + "]");
|
|
20180
|
-
sideChannel.set(object, step);
|
|
20181
|
-
var valueSideChannel = getSideChannel();
|
|
20182
|
-
valueSideChannel.set(sentinel, sideChannel);
|
|
20183
|
-
pushToArray(values, stringify2(value, keyPrefix, generateArrayPrefix, commaRoundTrip, allowEmptyArrays, strictNullHandling, skipNulls, encodeDotInKeys, generateArrayPrefix === "comma" && encodeValuesOnly && isArray(obj) ? null : encoder, filter, sort, allowDots, serializeDate, format, formatter, encodeValuesOnly, charset, valueSideChannel));
|
|
20184
|
-
}
|
|
20185
|
-
return values;
|
|
20186
|
-
}, "stringify");
|
|
20187
|
-
var normalizeStringifyOptions = /* @__PURE__ */ __name(function normalizeStringifyOptions2(opts) {
|
|
20188
|
-
if (!opts) {
|
|
20189
|
-
return defaults;
|
|
20190
|
-
}
|
|
20191
|
-
if (typeof opts.allowEmptyArrays !== "undefined" && typeof opts.allowEmptyArrays !== "boolean") {
|
|
20192
|
-
throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
|
|
20193
|
-
}
|
|
20194
|
-
if (typeof opts.encodeDotInKeys !== "undefined" && typeof opts.encodeDotInKeys !== "boolean") {
|
|
20195
|
-
throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");
|
|
20196
|
-
}
|
|
20197
|
-
if (opts.encoder !== null && typeof opts.encoder !== "undefined" && typeof opts.encoder !== "function") {
|
|
20198
|
-
throw new TypeError("Encoder has to be a function.");
|
|
20199
|
-
}
|
|
20200
|
-
var charset = opts.charset || defaults.charset;
|
|
20201
|
-
if (typeof opts.charset !== "undefined" && opts.charset !== "utf-8" && opts.charset !== "iso-8859-1") {
|
|
20202
|
-
throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
|
|
20203
|
-
}
|
|
20204
|
-
var format = formats["default"];
|
|
20205
|
-
if (typeof opts.format !== "undefined") {
|
|
20206
|
-
if (!has.call(formats.formatters, opts.format)) {
|
|
20207
|
-
throw new TypeError("Unknown format option provided.");
|
|
20208
|
-
}
|
|
20209
|
-
format = opts.format;
|
|
20210
|
-
}
|
|
20211
|
-
var formatter = formats.formatters[format];
|
|
20212
|
-
var filter = defaults.filter;
|
|
20213
|
-
if (typeof opts.filter === "function" || isArray(opts.filter)) {
|
|
20214
|
-
filter = opts.filter;
|
|
20215
|
-
}
|
|
20216
|
-
var arrayFormat;
|
|
20217
|
-
if (opts.arrayFormat in arrayPrefixGenerators) {
|
|
20218
|
-
arrayFormat = opts.arrayFormat;
|
|
20219
|
-
} else if ("indices" in opts) {
|
|
20220
|
-
arrayFormat = opts.indices ? "indices" : "repeat";
|
|
20221
|
-
} else {
|
|
20222
|
-
arrayFormat = defaults.arrayFormat;
|
|
20223
|
-
}
|
|
20224
|
-
if ("commaRoundTrip" in opts && typeof opts.commaRoundTrip !== "boolean") {
|
|
20225
|
-
throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
|
|
20226
|
-
}
|
|
20227
|
-
var allowDots = typeof opts.allowDots === "undefined" ? opts.encodeDotInKeys === true ? true : defaults.allowDots : !!opts.allowDots;
|
|
20228
|
-
return {
|
|
20229
|
-
addQueryPrefix: typeof opts.addQueryPrefix === "boolean" ? opts.addQueryPrefix : defaults.addQueryPrefix,
|
|
20230
|
-
allowDots,
|
|
20231
|
-
allowEmptyArrays: typeof opts.allowEmptyArrays === "boolean" ? !!opts.allowEmptyArrays : defaults.allowEmptyArrays,
|
|
20232
|
-
arrayFormat,
|
|
20233
|
-
charset,
|
|
20234
|
-
charsetSentinel: typeof opts.charsetSentinel === "boolean" ? opts.charsetSentinel : defaults.charsetSentinel,
|
|
20235
|
-
commaRoundTrip: !!opts.commaRoundTrip,
|
|
20236
|
-
delimiter: typeof opts.delimiter === "undefined" ? defaults.delimiter : opts.delimiter,
|
|
20237
|
-
encode: typeof opts.encode === "boolean" ? opts.encode : defaults.encode,
|
|
20238
|
-
encodeDotInKeys: typeof opts.encodeDotInKeys === "boolean" ? opts.encodeDotInKeys : defaults.encodeDotInKeys,
|
|
20239
|
-
encoder: typeof opts.encoder === "function" ? opts.encoder : defaults.encoder,
|
|
20240
|
-
encodeValuesOnly: typeof opts.encodeValuesOnly === "boolean" ? opts.encodeValuesOnly : defaults.encodeValuesOnly,
|
|
20241
|
-
filter,
|
|
20242
|
-
format,
|
|
20243
|
-
formatter,
|
|
20244
|
-
serializeDate: typeof opts.serializeDate === "function" ? opts.serializeDate : defaults.serializeDate,
|
|
20245
|
-
skipNulls: typeof opts.skipNulls === "boolean" ? opts.skipNulls : defaults.skipNulls,
|
|
20246
|
-
sort: typeof opts.sort === "function" ? opts.sort : null,
|
|
20247
|
-
strictNullHandling: typeof opts.strictNullHandling === "boolean" ? opts.strictNullHandling : defaults.strictNullHandling
|
|
20248
|
-
};
|
|
20249
|
-
}, "normalizeStringifyOptions");
|
|
20250
|
-
module2.exports = function(object, opts) {
|
|
20251
|
-
var obj = object;
|
|
20252
|
-
var options = normalizeStringifyOptions(opts);
|
|
20253
|
-
var objKeys;
|
|
20254
|
-
var filter;
|
|
20255
|
-
if (typeof options.filter === "function") {
|
|
20256
|
-
filter = options.filter;
|
|
20257
|
-
obj = filter("", obj);
|
|
20258
|
-
} else if (isArray(options.filter)) {
|
|
20259
|
-
filter = options.filter;
|
|
20260
|
-
objKeys = filter;
|
|
20261
|
-
}
|
|
20262
|
-
var keys = [];
|
|
20263
|
-
if (typeof obj !== "object" || obj === null) {
|
|
20264
|
-
return "";
|
|
20265
|
-
}
|
|
20266
|
-
var generateArrayPrefix = arrayPrefixGenerators[options.arrayFormat];
|
|
20267
|
-
var commaRoundTrip = generateArrayPrefix === "comma" && options.commaRoundTrip;
|
|
20268
|
-
if (!objKeys) {
|
|
20269
|
-
objKeys = Object.keys(obj);
|
|
20270
|
-
}
|
|
20271
|
-
if (options.sort) {
|
|
20272
|
-
objKeys.sort(options.sort);
|
|
20273
|
-
}
|
|
20274
|
-
var sideChannel = getSideChannel();
|
|
20275
|
-
for (var i = 0; i < objKeys.length; ++i) {
|
|
20276
|
-
var key = objKeys[i];
|
|
20277
|
-
var value = obj[key];
|
|
20278
|
-
if (options.skipNulls && value === null) {
|
|
20279
|
-
continue;
|
|
20280
|
-
}
|
|
20281
|
-
pushToArray(keys, stringify(value, key, generateArrayPrefix, commaRoundTrip, options.allowEmptyArrays, options.strictNullHandling, options.skipNulls, options.encodeDotInKeys, options.encode ? options.encoder : null, options.filter, options.sort, options.allowDots, options.serializeDate, options.format, options.formatter, options.encodeValuesOnly, options.charset, sideChannel));
|
|
20282
|
-
}
|
|
20283
|
-
var joined = keys.join(options.delimiter);
|
|
20284
|
-
var prefix = options.addQueryPrefix === true ? "?" : "";
|
|
20285
|
-
if (options.charsetSentinel) {
|
|
20286
|
-
if (options.charset === "iso-8859-1") {
|
|
20287
|
-
prefix += "utf8=%26%2310003%3B&";
|
|
20288
|
-
} else {
|
|
20289
|
-
prefix += "utf8=%E2%9C%93&";
|
|
20290
|
-
}
|
|
20291
|
-
}
|
|
20292
|
-
return joined.length > 0 ? prefix + joined : "";
|
|
20293
|
-
};
|
|
20294
|
-
}
|
|
20295
|
-
});
|
|
20296
|
-
|
|
20297
|
-
// ../../../node_modules/express/node_modules/qs/lib/parse.js
|
|
20298
|
-
var require_parse2 = __commonJS({
|
|
20299
|
-
"../../../node_modules/express/node_modules/qs/lib/parse.js"(exports2, module2) {
|
|
20300
|
-
"use strict";
|
|
20301
|
-
var utils = require_utils2();
|
|
20302
|
-
var has = Object.prototype.hasOwnProperty;
|
|
20303
|
-
var isArray = Array.isArray;
|
|
20304
|
-
var defaults = {
|
|
20305
|
-
allowDots: false,
|
|
20306
|
-
allowEmptyArrays: false,
|
|
20307
|
-
allowPrototypes: false,
|
|
20308
|
-
allowSparse: false,
|
|
20309
|
-
arrayLimit: 20,
|
|
20310
|
-
charset: "utf-8",
|
|
20311
|
-
charsetSentinel: false,
|
|
20312
|
-
comma: false,
|
|
20313
|
-
decodeDotInKeys: false,
|
|
20314
|
-
decoder: utils.decode,
|
|
20315
|
-
delimiter: "&",
|
|
20316
|
-
depth: 5,
|
|
20317
|
-
duplicates: "combine",
|
|
20318
|
-
ignoreQueryPrefix: false,
|
|
20319
|
-
interpretNumericEntities: false,
|
|
20320
|
-
parameterLimit: 1e3,
|
|
20321
|
-
parseArrays: true,
|
|
20322
|
-
plainObjects: false,
|
|
20323
|
-
strictDepth: false,
|
|
20324
|
-
strictNullHandling: false,
|
|
20325
|
-
throwOnLimitExceeded: false
|
|
20326
|
-
};
|
|
20327
|
-
var interpretNumericEntities = /* @__PURE__ */ __name(function(str) {
|
|
20328
|
-
return str.replace(/&#(\d+);/g, function($0, numberStr) {
|
|
20329
|
-
return String.fromCharCode(parseInt(numberStr, 10));
|
|
20330
|
-
});
|
|
20331
|
-
}, "interpretNumericEntities");
|
|
20332
|
-
var parseArrayValue = /* @__PURE__ */ __name(function(val, options, currentArrayLength) {
|
|
20333
|
-
if (val && typeof val === "string" && options.comma && val.indexOf(",") > -1) {
|
|
20334
|
-
return val.split(",");
|
|
20335
|
-
}
|
|
20336
|
-
if (options.throwOnLimitExceeded && currentArrayLength >= options.arrayLimit) {
|
|
20337
|
-
throw new RangeError("Array limit exceeded. Only " + options.arrayLimit + " element" + (options.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
|
|
20338
|
-
}
|
|
20339
|
-
return val;
|
|
20340
|
-
}, "parseArrayValue");
|
|
20341
|
-
var isoSentinel = "utf8=%26%2310003%3B";
|
|
20342
|
-
var charsetSentinel = "utf8=%E2%9C%93";
|
|
20343
|
-
var parseValues = /* @__PURE__ */ __name(function parseQueryStringValues(str, options) {
|
|
20344
|
-
var obj = {
|
|
20345
|
-
__proto__: null
|
|
20346
|
-
};
|
|
20347
|
-
var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, "") : str;
|
|
20348
|
-
cleanStr = cleanStr.replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
20349
|
-
var limit = options.parameterLimit === Infinity ? void 0 : options.parameterLimit;
|
|
20350
|
-
var parts = cleanStr.split(options.delimiter, options.throwOnLimitExceeded ? limit + 1 : limit);
|
|
20351
|
-
if (options.throwOnLimitExceeded && parts.length > limit) {
|
|
20352
|
-
throw new RangeError("Parameter limit exceeded. Only " + limit + " parameter" + (limit === 1 ? "" : "s") + " allowed.");
|
|
20353
|
-
}
|
|
20354
|
-
var skipIndex = -1;
|
|
20355
|
-
var i;
|
|
20356
|
-
var charset = options.charset;
|
|
20357
|
-
if (options.charsetSentinel) {
|
|
20358
|
-
for (i = 0; i < parts.length; ++i) {
|
|
20359
|
-
if (parts[i].indexOf("utf8=") === 0) {
|
|
20360
|
-
if (parts[i] === charsetSentinel) {
|
|
20361
|
-
charset = "utf-8";
|
|
20362
|
-
} else if (parts[i] === isoSentinel) {
|
|
20363
|
-
charset = "iso-8859-1";
|
|
20364
|
-
}
|
|
20365
|
-
skipIndex = i;
|
|
20366
|
-
i = parts.length;
|
|
20367
|
-
}
|
|
20368
|
-
}
|
|
20369
|
-
}
|
|
20370
|
-
for (i = 0; i < parts.length; ++i) {
|
|
20371
|
-
if (i === skipIndex) {
|
|
20372
|
-
continue;
|
|
20373
|
-
}
|
|
20374
|
-
var part = parts[i];
|
|
20375
|
-
var bracketEqualsPos = part.indexOf("]=");
|
|
20376
|
-
var pos = bracketEqualsPos === -1 ? part.indexOf("=") : bracketEqualsPos + 1;
|
|
20377
|
-
var key;
|
|
20378
|
-
var val;
|
|
20379
|
-
if (pos === -1) {
|
|
20380
|
-
key = options.decoder(part, defaults.decoder, charset, "key");
|
|
20381
|
-
val = options.strictNullHandling ? null : "";
|
|
20382
|
-
} else {
|
|
20383
|
-
key = options.decoder(part.slice(0, pos), defaults.decoder, charset, "key");
|
|
20384
|
-
if (key !== null) {
|
|
20385
|
-
val = utils.maybeMap(parseArrayValue(part.slice(pos + 1), options, isArray(obj[key]) ? obj[key].length : 0), function(encodedVal) {
|
|
20386
|
-
return options.decoder(encodedVal, defaults.decoder, charset, "value");
|
|
20387
|
-
});
|
|
20388
|
-
}
|
|
20389
|
-
}
|
|
20390
|
-
if (val && options.interpretNumericEntities && charset === "iso-8859-1") {
|
|
20391
|
-
val = interpretNumericEntities(String(val));
|
|
20392
|
-
}
|
|
20393
|
-
if (part.indexOf("[]=") > -1) {
|
|
20394
|
-
val = isArray(val) ? [
|
|
20395
|
-
val
|
|
20396
|
-
] : val;
|
|
20397
|
-
}
|
|
20398
|
-
if (options.comma && isArray(val) && val.length > options.arrayLimit) {
|
|
20399
|
-
if (options.throwOnLimitExceeded) {
|
|
20400
|
-
throw new RangeError("Array limit exceeded. Only " + options.arrayLimit + " element" + (options.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
|
|
20401
|
-
}
|
|
20402
|
-
val = utils.combine([], val, options.arrayLimit, options.plainObjects);
|
|
20403
|
-
}
|
|
20404
|
-
if (key !== null) {
|
|
20405
|
-
var existing = has.call(obj, key);
|
|
20406
|
-
if (existing && options.duplicates === "combine") {
|
|
20407
|
-
obj[key] = utils.combine(obj[key], val, options.arrayLimit, options.plainObjects);
|
|
20408
|
-
} else if (!existing || options.duplicates === "last") {
|
|
20409
|
-
obj[key] = val;
|
|
20410
|
-
}
|
|
20411
|
-
}
|
|
20412
|
-
}
|
|
20413
|
-
return obj;
|
|
20414
|
-
}, "parseQueryStringValues");
|
|
20415
|
-
var parseObject = /* @__PURE__ */ __name(function(chain, val, options, valuesParsed) {
|
|
20416
|
-
var currentArrayLength = 0;
|
|
20417
|
-
if (chain.length > 0 && chain[chain.length - 1] === "[]") {
|
|
20418
|
-
var parentKey = chain.slice(0, -1).join("");
|
|
20419
|
-
currentArrayLength = Array.isArray(val) && val[parentKey] ? val[parentKey].length : 0;
|
|
20420
|
-
}
|
|
20421
|
-
var leaf = valuesParsed ? val : parseArrayValue(val, options, currentArrayLength);
|
|
20422
|
-
for (var i = chain.length - 1; i >= 0; --i) {
|
|
20423
|
-
var obj;
|
|
20424
|
-
var root = chain[i];
|
|
20425
|
-
if (root === "[]" && options.parseArrays) {
|
|
20426
|
-
if (utils.isOverflow(leaf)) {
|
|
20427
|
-
obj = leaf;
|
|
20428
|
-
} else {
|
|
20429
|
-
obj = options.allowEmptyArrays && (leaf === "" || options.strictNullHandling && leaf === null) ? [] : utils.combine([], leaf, options.arrayLimit, options.plainObjects);
|
|
20430
|
-
}
|
|
20431
|
-
} else {
|
|
20432
|
-
obj = options.plainObjects ? {
|
|
20433
|
-
__proto__: null
|
|
20434
|
-
} : {};
|
|
20435
|
-
var cleanRoot = root.charAt(0) === "[" && root.charAt(root.length - 1) === "]" ? root.slice(1, -1) : root;
|
|
20436
|
-
var decodedRoot = options.decodeDotInKeys ? cleanRoot.replace(/%2E/g, ".") : cleanRoot;
|
|
20437
|
-
var index = parseInt(decodedRoot, 10);
|
|
20438
|
-
var isValidArrayIndex = !isNaN(index) && root !== decodedRoot && String(index) === decodedRoot && index >= 0 && options.parseArrays;
|
|
20439
|
-
if (!options.parseArrays && decodedRoot === "") {
|
|
20440
|
-
obj = {
|
|
20441
|
-
0: leaf
|
|
20442
|
-
};
|
|
20443
|
-
} else if (isValidArrayIndex && index < options.arrayLimit) {
|
|
20444
|
-
obj = [];
|
|
20445
|
-
obj[index] = leaf;
|
|
20446
|
-
} else if (isValidArrayIndex && options.throwOnLimitExceeded) {
|
|
20447
|
-
throw new RangeError("Array limit exceeded. Only " + options.arrayLimit + " element" + (options.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
|
|
20448
|
-
} else if (isValidArrayIndex) {
|
|
20449
|
-
obj[index] = leaf;
|
|
20450
|
-
utils.markOverflow(obj, index);
|
|
20451
|
-
} else if (decodedRoot !== "__proto__") {
|
|
20452
|
-
obj[decodedRoot] = leaf;
|
|
20453
|
-
}
|
|
20454
|
-
}
|
|
20455
|
-
leaf = obj;
|
|
20456
|
-
}
|
|
20457
|
-
return leaf;
|
|
20458
|
-
}, "parseObject");
|
|
20459
|
-
var splitKeyIntoSegments = /* @__PURE__ */ __name(function splitKeyIntoSegments2(givenKey, options) {
|
|
20460
|
-
var key = options.allowDots ? givenKey.replace(/\.([^.[]+)/g, "[$1]") : givenKey;
|
|
20461
|
-
if (options.depth <= 0) {
|
|
20462
|
-
if (!options.plainObjects && has.call(Object.prototype, key)) {
|
|
20463
|
-
if (!options.allowPrototypes) {
|
|
20464
|
-
return;
|
|
20465
|
-
}
|
|
20466
|
-
}
|
|
20467
|
-
return [
|
|
20468
|
-
key
|
|
20469
|
-
];
|
|
20470
|
-
}
|
|
20471
|
-
var brackets = /(\[[^[\]]*])/;
|
|
20472
|
-
var child = /(\[[^[\]]*])/g;
|
|
20473
|
-
var segment = brackets.exec(key);
|
|
20474
|
-
var parent = segment ? key.slice(0, segment.index) : key;
|
|
20475
|
-
var keys = [];
|
|
20476
|
-
if (parent) {
|
|
20477
|
-
if (!options.plainObjects && has.call(Object.prototype, parent)) {
|
|
20478
|
-
if (!options.allowPrototypes) {
|
|
20479
|
-
return;
|
|
20480
|
-
}
|
|
20481
|
-
}
|
|
20482
|
-
keys[keys.length] = parent;
|
|
20483
|
-
}
|
|
20484
|
-
var i = 0;
|
|
20485
|
-
while ((segment = child.exec(key)) !== null && i < options.depth) {
|
|
20486
|
-
i += 1;
|
|
20487
|
-
var segmentContent = segment[1].slice(1, -1);
|
|
20488
|
-
if (!options.plainObjects && has.call(Object.prototype, segmentContent)) {
|
|
20489
|
-
if (!options.allowPrototypes) {
|
|
20490
|
-
return;
|
|
20491
|
-
}
|
|
20492
|
-
}
|
|
20493
|
-
keys[keys.length] = segment[1];
|
|
20494
|
-
}
|
|
20495
|
-
if (segment) {
|
|
20496
|
-
if (options.strictDepth === true) {
|
|
20497
|
-
throw new RangeError("Input depth exceeded depth option of " + options.depth + " and strictDepth is true");
|
|
20498
|
-
}
|
|
20499
|
-
keys[keys.length] = "[" + key.slice(segment.index) + "]";
|
|
20500
|
-
}
|
|
20501
|
-
return keys;
|
|
20502
|
-
}, "splitKeyIntoSegments");
|
|
20503
|
-
var parseKeys = /* @__PURE__ */ __name(function parseQueryStringKeys(givenKey, val, options, valuesParsed) {
|
|
20504
|
-
if (!givenKey) {
|
|
20505
|
-
return;
|
|
20506
|
-
}
|
|
20507
|
-
var keys = splitKeyIntoSegments(givenKey, options);
|
|
20508
|
-
if (!keys) {
|
|
20509
|
-
return;
|
|
20510
|
-
}
|
|
20511
|
-
return parseObject(keys, val, options, valuesParsed);
|
|
20512
|
-
}, "parseQueryStringKeys");
|
|
20513
|
-
var normalizeParseOptions = /* @__PURE__ */ __name(function normalizeParseOptions2(opts) {
|
|
20514
|
-
if (!opts) {
|
|
20515
|
-
return defaults;
|
|
20516
|
-
}
|
|
20517
|
-
if (typeof opts.allowEmptyArrays !== "undefined" && typeof opts.allowEmptyArrays !== "boolean") {
|
|
20518
|
-
throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
|
|
20519
|
-
}
|
|
20520
|
-
if (typeof opts.decodeDotInKeys !== "undefined" && typeof opts.decodeDotInKeys !== "boolean") {
|
|
20521
|
-
throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");
|
|
20522
|
-
}
|
|
20523
|
-
if (opts.decoder !== null && typeof opts.decoder !== "undefined" && typeof opts.decoder !== "function") {
|
|
20524
|
-
throw new TypeError("Decoder has to be a function.");
|
|
20525
|
-
}
|
|
20526
|
-
if (typeof opts.charset !== "undefined" && opts.charset !== "utf-8" && opts.charset !== "iso-8859-1") {
|
|
20527
|
-
throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
|
|
20528
|
-
}
|
|
20529
|
-
if (typeof opts.throwOnLimitExceeded !== "undefined" && typeof opts.throwOnLimitExceeded !== "boolean") {
|
|
20530
|
-
throw new TypeError("`throwOnLimitExceeded` option must be a boolean");
|
|
20531
|
-
}
|
|
20532
|
-
var charset = typeof opts.charset === "undefined" ? defaults.charset : opts.charset;
|
|
20533
|
-
var duplicates = typeof opts.duplicates === "undefined" ? defaults.duplicates : opts.duplicates;
|
|
20534
|
-
if (duplicates !== "combine" && duplicates !== "first" && duplicates !== "last") {
|
|
20535
|
-
throw new TypeError("The duplicates option must be either combine, first, or last");
|
|
20536
|
-
}
|
|
20537
|
-
var allowDots = typeof opts.allowDots === "undefined" ? opts.decodeDotInKeys === true ? true : defaults.allowDots : !!opts.allowDots;
|
|
20538
|
-
return {
|
|
20539
|
-
allowDots,
|
|
20540
|
-
allowEmptyArrays: typeof opts.allowEmptyArrays === "boolean" ? !!opts.allowEmptyArrays : defaults.allowEmptyArrays,
|
|
20541
|
-
allowPrototypes: typeof opts.allowPrototypes === "boolean" ? opts.allowPrototypes : defaults.allowPrototypes,
|
|
20542
|
-
allowSparse: typeof opts.allowSparse === "boolean" ? opts.allowSparse : defaults.allowSparse,
|
|
20543
|
-
arrayLimit: typeof opts.arrayLimit === "number" ? opts.arrayLimit : defaults.arrayLimit,
|
|
20544
|
-
charset,
|
|
20545
|
-
charsetSentinel: typeof opts.charsetSentinel === "boolean" ? opts.charsetSentinel : defaults.charsetSentinel,
|
|
20546
|
-
comma: typeof opts.comma === "boolean" ? opts.comma : defaults.comma,
|
|
20547
|
-
decodeDotInKeys: typeof opts.decodeDotInKeys === "boolean" ? opts.decodeDotInKeys : defaults.decodeDotInKeys,
|
|
20548
|
-
decoder: typeof opts.decoder === "function" ? opts.decoder : defaults.decoder,
|
|
20549
|
-
delimiter: typeof opts.delimiter === "string" || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter,
|
|
20550
|
-
// eslint-disable-next-line no-implicit-coercion, no-extra-parens
|
|
20551
|
-
depth: typeof opts.depth === "number" || opts.depth === false ? +opts.depth : defaults.depth,
|
|
20552
|
-
duplicates,
|
|
20553
|
-
ignoreQueryPrefix: opts.ignoreQueryPrefix === true,
|
|
20554
|
-
interpretNumericEntities: typeof opts.interpretNumericEntities === "boolean" ? opts.interpretNumericEntities : defaults.interpretNumericEntities,
|
|
20555
|
-
parameterLimit: typeof opts.parameterLimit === "number" ? opts.parameterLimit : defaults.parameterLimit,
|
|
20556
|
-
parseArrays: opts.parseArrays !== false,
|
|
20557
|
-
plainObjects: typeof opts.plainObjects === "boolean" ? opts.plainObjects : defaults.plainObjects,
|
|
20558
|
-
strictDepth: typeof opts.strictDepth === "boolean" ? !!opts.strictDepth : defaults.strictDepth,
|
|
20559
|
-
strictNullHandling: typeof opts.strictNullHandling === "boolean" ? opts.strictNullHandling : defaults.strictNullHandling,
|
|
20560
|
-
throwOnLimitExceeded: typeof opts.throwOnLimitExceeded === "boolean" ? opts.throwOnLimitExceeded : false
|
|
20561
|
-
};
|
|
20562
|
-
}, "normalizeParseOptions");
|
|
20563
|
-
module2.exports = function(str, opts) {
|
|
20564
|
-
var options = normalizeParseOptions(opts);
|
|
20565
|
-
if (str === "" || str === null || typeof str === "undefined") {
|
|
20566
|
-
return options.plainObjects ? {
|
|
20567
|
-
__proto__: null
|
|
20568
|
-
} : {};
|
|
20569
|
-
}
|
|
20570
|
-
var tempObj = typeof str === "string" ? parseValues(str, options) : str;
|
|
20571
|
-
var obj = options.plainObjects ? {
|
|
20572
|
-
__proto__: null
|
|
20573
|
-
} : {};
|
|
20574
|
-
var keys = Object.keys(tempObj);
|
|
20575
|
-
for (var i = 0; i < keys.length; ++i) {
|
|
20576
|
-
var key = keys[i];
|
|
20577
|
-
var newObj = parseKeys(key, tempObj[key], options, typeof str === "string");
|
|
20578
|
-
obj = utils.merge(obj, newObj, options);
|
|
20579
|
-
}
|
|
20580
|
-
if (options.allowSparse === true) {
|
|
20581
|
-
return obj;
|
|
20582
|
-
}
|
|
20583
|
-
return utils.compact(obj);
|
|
20584
|
-
};
|
|
20585
|
-
}
|
|
20586
|
-
});
|
|
20587
|
-
|
|
20588
|
-
// ../../../node_modules/express/node_modules/qs/lib/index.js
|
|
20589
|
-
var require_lib3 = __commonJS({
|
|
20590
|
-
"../../../node_modules/express/node_modules/qs/lib/index.js"(exports2, module2) {
|
|
20591
|
-
"use strict";
|
|
20592
|
-
var stringify = require_stringify2();
|
|
20593
|
-
var parse = require_parse2();
|
|
20594
|
-
var formats = require_formats2();
|
|
20595
|
-
module2.exports = {
|
|
20596
|
-
formats,
|
|
20597
|
-
parse,
|
|
20598
|
-
stringify
|
|
20599
|
-
};
|
|
20600
|
-
}
|
|
20601
|
-
});
|
|
20602
|
-
|
|
20603
|
-
// ../../../node_modules/express/lib/middleware/query.js
|
|
20604
|
-
var require_query = __commonJS({
|
|
20605
|
-
"../../../node_modules/express/lib/middleware/query.js"(exports2, module2) {
|
|
20606
|
-
"use strict";
|
|
20607
|
-
var merge = require_utils_merge();
|
|
20608
|
-
var parseUrl = require_parseurl();
|
|
20609
|
-
var qs = require_lib3();
|
|
20610
|
-
module2.exports = /* @__PURE__ */ __name(function query(options) {
|
|
20611
|
-
var opts = merge({}, options);
|
|
20612
|
-
var queryparse = qs.parse;
|
|
20613
|
-
if (typeof options === "function") {
|
|
20614
|
-
queryparse = options;
|
|
20615
|
-
opts = void 0;
|
|
20616
|
-
}
|
|
20617
|
-
if (opts !== void 0 && opts.allowPrototypes === void 0) {
|
|
20618
|
-
opts.allowPrototypes = true;
|
|
20619
|
-
}
|
|
20620
|
-
return /* @__PURE__ */ __name(function query2(req, res, next) {
|
|
20621
|
-
if (!req.query) {
|
|
20622
|
-
var val = parseUrl(req).query;
|
|
20623
|
-
req.query = queryparse(val, opts);
|
|
20624
|
-
}
|
|
20625
|
-
next();
|
|
20626
|
-
}, "query");
|
|
20627
|
-
}, "query");
|
|
20628
|
-
}
|
|
20629
|
-
});
|
|
20630
|
-
|
|
20631
|
-
// ../../../node_modules/express/lib/view.js
|
|
20632
|
-
var require_view = __commonJS({
|
|
20633
|
-
"../../../node_modules/express/lib/view.js"(exports2, module2) {
|
|
20634
|
-
"use strict";
|
|
20635
|
-
var debug = require_src3()("express:view");
|
|
20636
|
-
var path2 = require("path");
|
|
20637
|
-
var fs2 = require("fs");
|
|
20638
|
-
var dirname = path2.dirname;
|
|
20639
|
-
var basename = path2.basename;
|
|
20640
|
-
var extname2 = path2.extname;
|
|
20641
|
-
var join2 = path2.join;
|
|
20642
|
-
var resolve2 = path2.resolve;
|
|
20643
|
-
module2.exports = View;
|
|
20644
|
-
function View(name, options) {
|
|
20645
|
-
var opts = options || {};
|
|
20646
|
-
this.defaultEngine = opts.defaultEngine;
|
|
20647
|
-
this.ext = extname2(name);
|
|
20648
|
-
this.name = name;
|
|
20649
|
-
this.root = opts.root;
|
|
20650
|
-
if (!this.ext && !this.defaultEngine) {
|
|
20651
|
-
throw new Error("No default engine was specified and no extension was provided.");
|
|
20652
|
-
}
|
|
20653
|
-
var fileName = name;
|
|
20654
|
-
if (!this.ext) {
|
|
20655
|
-
this.ext = this.defaultEngine[0] !== "." ? "." + this.defaultEngine : this.defaultEngine;
|
|
20656
|
-
fileName += this.ext;
|
|
20657
|
-
}
|
|
20658
|
-
if (!opts.engines[this.ext]) {
|
|
20659
|
-
var mod = this.ext.slice(1);
|
|
20660
|
-
debug('require "%s"', mod);
|
|
20661
|
-
var fn = require(mod).__express;
|
|
20662
|
-
if (typeof fn !== "function") {
|
|
20663
|
-
throw new Error('Module "' + mod + '" does not provide a view engine.');
|
|
20664
|
-
}
|
|
20665
|
-
opts.engines[this.ext] = fn;
|
|
20666
|
-
}
|
|
20667
|
-
this.engine = opts.engines[this.ext];
|
|
20668
|
-
this.path = this.lookup(fileName);
|
|
20669
|
-
}
|
|
20670
|
-
__name(View, "View");
|
|
20671
|
-
View.prototype.lookup = /* @__PURE__ */ __name(function lookup(name) {
|
|
20672
|
-
var path3;
|
|
20673
|
-
var roots = [].concat(this.root);
|
|
20674
|
-
debug('lookup "%s"', name);
|
|
20675
|
-
for (var i = 0; i < roots.length && !path3; i++) {
|
|
20676
|
-
var root = roots[i];
|
|
20677
|
-
var loc = resolve2(root, name);
|
|
20678
|
-
var dir = dirname(loc);
|
|
20679
|
-
var file = basename(loc);
|
|
20680
|
-
path3 = this.resolve(dir, file);
|
|
20681
|
-
}
|
|
20682
|
-
return path3;
|
|
20683
|
-
}, "lookup");
|
|
20684
|
-
View.prototype.render = /* @__PURE__ */ __name(function render(options, callback) {
|
|
20685
|
-
debug('render "%s"', this.path);
|
|
20686
|
-
this.engine(this.path, options, callback);
|
|
20687
|
-
}, "render");
|
|
20688
|
-
View.prototype.resolve = /* @__PURE__ */ __name(function resolve3(dir, file) {
|
|
20689
|
-
var ext = this.ext;
|
|
20690
|
-
var path3 = join2(dir, file);
|
|
20691
|
-
var stat = tryStat(path3);
|
|
20692
|
-
if (stat && stat.isFile()) {
|
|
20693
|
-
return path3;
|
|
20694
|
-
}
|
|
20695
|
-
path3 = join2(dir, basename(file, ext), "index" + ext);
|
|
20696
|
-
stat = tryStat(path3);
|
|
20697
|
-
if (stat && stat.isFile()) {
|
|
20698
|
-
return path3;
|
|
20699
|
-
}
|
|
20700
|
-
}, "resolve");
|
|
20701
|
-
function tryStat(path3) {
|
|
20702
|
-
debug('stat "%s"', path3);
|
|
20703
|
-
try {
|
|
20704
|
-
return fs2.statSync(path3);
|
|
20705
|
-
} catch (e) {
|
|
20706
|
-
return void 0;
|
|
19803
|
+
return void 0;
|
|
20707
19804
|
}
|
|
20708
19805
|
}
|
|
20709
19806
|
__name(tryStat, "tryStat");
|
|
@@ -22408,9 +21505,9 @@ var require_forwarded = __commonJS({
|
|
|
22408
21505
|
}
|
|
22409
21506
|
});
|
|
22410
21507
|
|
|
22411
|
-
// ../../../node_modules/
|
|
21508
|
+
// ../../../node_modules/ipaddr.js/lib/ipaddr.js
|
|
22412
21509
|
var require_ipaddr = __commonJS({
|
|
22413
|
-
"../../../node_modules/
|
|
21510
|
+
"../../../node_modules/ipaddr.js/lib/ipaddr.js"(exports2, module2) {
|
|
22414
21511
|
"use strict";
|
|
22415
21512
|
(function() {
|
|
22416
21513
|
var expandIPv6, ipaddr, ipv4Part, ipv4Regexes, ipv6Part, ipv6Regexes, matchCIDR, root, zoneIndex;
|
|
@@ -23522,7 +22619,7 @@ var require_proxy_addr = __commonJS({
|
|
|
23522
22619
|
});
|
|
23523
22620
|
|
|
23524
22621
|
// ../../../node_modules/express/lib/utils.js
|
|
23525
|
-
var
|
|
22622
|
+
var require_utils2 = __commonJS({
|
|
23526
22623
|
"../../../node_modules/express/lib/utils.js"(exports2) {
|
|
23527
22624
|
"use strict";
|
|
23528
22625
|
var Buffer2 = require_safe_buffer().Buffer;
|
|
@@ -23533,7 +22630,7 @@ var require_utils3 = __commonJS({
|
|
|
23533
22630
|
var mime = require_send().mime;
|
|
23534
22631
|
var etag = require_etag();
|
|
23535
22632
|
var proxyaddr = require_proxy_addr();
|
|
23536
|
-
var qs =
|
|
22633
|
+
var qs = require_lib2();
|
|
23537
22634
|
var querystring = require("querystring");
|
|
23538
22635
|
exports2.etag = createETagGenerator({
|
|
23539
22636
|
weak: false
|
|
@@ -23679,9 +22776,9 @@ var require_application = __commonJS({
|
|
|
23679
22776
|
var debug = require_src3()("express:application");
|
|
23680
22777
|
var View = require_view();
|
|
23681
22778
|
var http = require("http");
|
|
23682
|
-
var compileETag =
|
|
23683
|
-
var compileQueryParser =
|
|
23684
|
-
var compileTrust =
|
|
22779
|
+
var compileETag = require_utils2().compileETag;
|
|
22780
|
+
var compileQueryParser = require_utils2().compileQueryParser;
|
|
22781
|
+
var compileTrust = require_utils2().compileTrust;
|
|
23685
22782
|
var deprecate = require_depd()("express");
|
|
23686
22783
|
var flatten = require_array_flatten();
|
|
23687
22784
|
var merge = require_utils_merge();
|
|
@@ -33658,15 +32755,15 @@ var require_response = __commonJS({
|
|
|
33658
32755
|
var encodeUrl = require_encodeurl();
|
|
33659
32756
|
var escapeHtml = require_escape_html();
|
|
33660
32757
|
var http = require("http");
|
|
33661
|
-
var isAbsolute =
|
|
32758
|
+
var isAbsolute = require_utils2().isAbsolute;
|
|
33662
32759
|
var onFinished = require_on_finished();
|
|
33663
32760
|
var path2 = require("path");
|
|
33664
32761
|
var statuses = require_statuses();
|
|
33665
32762
|
var merge = require_utils_merge();
|
|
33666
32763
|
var sign = require_cookie_signature().sign;
|
|
33667
|
-
var normalizeType =
|
|
33668
|
-
var normalizeTypes =
|
|
33669
|
-
var setCharset =
|
|
32764
|
+
var normalizeType = require_utils2().normalizeType;
|
|
32765
|
+
var normalizeTypes = require_utils2().normalizeTypes;
|
|
32766
|
+
var setCharset = require_utils2().setCharset;
|
|
33670
32767
|
var cookie = require_cookie();
|
|
33671
32768
|
var send = require_send();
|
|
33672
32769
|
var extname2 = path2.extname;
|
|
@@ -34814,8 +33911,8 @@ var RequestContextMiddleware = class {
|
|
|
34814
33911
|
const path2 = req.originalUrl ?? req.url;
|
|
34815
33912
|
const userContext = req.userContext ?? {};
|
|
34816
33913
|
const ttEnv = req.headers["x-tt-env"];
|
|
34817
|
-
const
|
|
34818
|
-
const
|
|
33914
|
+
const refererPath = req.headers["rpc-persist-apaas-observability-referer-path"];
|
|
33915
|
+
const observabilityApi = req.headers["rpc-persist-apaas-observability-api"];
|
|
34819
33916
|
this.requestContext.run({
|
|
34820
33917
|
path: path2,
|
|
34821
33918
|
method: req.method,
|
|
@@ -34824,7 +33921,8 @@ var RequestContextMiddleware = class {
|
|
|
34824
33921
|
appId: userContext.appId,
|
|
34825
33922
|
isSystemAccount: userContext.isSystemAccount,
|
|
34826
33923
|
ttEnv,
|
|
34827
|
-
|
|
33924
|
+
refererPath,
|
|
33925
|
+
observabilityApi
|
|
34828
33926
|
}, () => next());
|
|
34829
33927
|
}
|
|
34830
33928
|
};
|