path-serializer 0.0.6 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/esm/main.js CHANGED
@@ -1,10 +1,10 @@
1
- import { createRequire as __WEBPACK_EXTERNAL_createRequire } from "module";
1
+ import * as __WEBPACK_EXTERNAL_MODULE_path__ from "path";
2
2
  import * as __WEBPACK_EXTERNAL_MODULE_node_fs__ from "node:fs";
3
3
  import * as __WEBPACK_EXTERNAL_MODULE_node_os__ from "node:os";
4
4
  import * as __WEBPACK_EXTERNAL_MODULE_node_path__ from "node:path";
5
- var __webpack_modules__ = ({
6
- "./node_modules/.pnpm/upath@2.0.1/node_modules/upath/build/code/upath.js": (function (__unused_webpack_module, exports, __webpack_require__) {
7
- /**
5
+ var __webpack_modules__ = {
6
+ "./node_modules/.pnpm/upath@2.0.1/node_modules/upath/build/code/upath.js": function(__unused_webpack_module, exports, __webpack_require__) {
7
+ /**
8
8
  * upath http://github.com/anodynos/upath/
9
9
  *
10
10
  * A proxy to `path`, replacing `\` with `/` for all results (supports UNC paths) & new methods to normalize & join keeping leading `./` and add, change, default, trim file extensions.
@@ -12,246 +12,164 @@ var __webpack_modules__ = ({
12
12
  * Repository git://github.com/anodynos/upath
13
13
  * Copyright(c) 2020 Angelos Pikoulas <agelos.pikoulas@gmail.com>
14
14
  * License MIT
15
- */
16
-
17
- // Generated by uRequire v0.7.0-beta.33 target: 'lib' template: 'nodejs'
18
-
19
-
20
- var VERSION = '2.0.1'; // injected by urequire-rc-inject-version
21
-
22
- var extraFn, extraFunctions, isFunction, isString, isValidExt, name, path, propName, propValue, toUnix, upath, slice = [].slice, indexOf = [].indexOf || function (item) {
23
- for (var i = 0, l = this.length; i < l; i++) {
24
- if (i in this && this[i] === item)
25
- return i;
26
- }
27
- return -1;
28
- }, hasProp = {}.hasOwnProperty;
29
- path = __webpack_require__("path");
30
- isFunction = function (val) {
31
- return typeof val === "function";
32
- };
33
- isString = function (val) {
34
- return typeof val === "string" || !!val && typeof val === "object" && Object.prototype.toString.call(val) === "[object String]";
35
- };
36
- upath = exports;
37
- upath.VERSION = typeof VERSION !== "undefined" && VERSION !== null ? VERSION : "NO-VERSION";
38
- toUnix = function (p) {
39
- p = p.replace(/\\/g, "/");
40
- p = p.replace(/(?<!^)\/+/g, "/");
41
- return p;
42
- };
43
- for (propName in path) {
44
- propValue = path[propName];
45
- if (isFunction(propValue)) {
46
- upath[propName] = function (propName) {
47
- return function () {
48
- var args, result;
49
- args = 1 <= arguments.length ? slice.call(arguments, 0) : [];
50
- args = args.map(function (p) {
51
- if (isString(p)) {
52
- return toUnix(p);
53
- } else {
15
+ */ // Generated by uRequire v0.7.0-beta.33 target: 'lib' template: 'nodejs'
16
+ var VERSION = '2.0.1'; // injected by urequire-rc-inject-version
17
+ var extraFn, extraFunctions, isFunction, isString, isValidExt, name, path, propName, propValue, toUnix, upath, slice = [].slice, indexOf = [].indexOf || function(item) {
18
+ for(var i = 0, l = this.length; i < l; i++)if (i in this && this[i] === item) return i;
19
+ return -1;
20
+ }, hasProp = {}.hasOwnProperty;
21
+ path = __webpack_require__("path");
22
+ isFunction = function(val) {
23
+ return "function" == typeof val;
24
+ };
25
+ isString = function(val) {
26
+ return "string" == typeof val || !!val && "object" == typeof val && "[object String]" === Object.prototype.toString.call(val);
27
+ };
28
+ upath = exports;
29
+ upath.VERSION = null != VERSION ? VERSION : "NO-VERSION";
30
+ toUnix = function(p) {
31
+ p = p.replace(/\\/g, "/");
32
+ p = p.replace(/(?<!^)\/+/g, "/");
54
33
  return p;
55
- }
56
- });
57
- result = path[propName].apply(path, args);
58
- if (isString(result)) {
59
- return toUnix(result);
60
- } else {
61
- return result;
34
+ };
35
+ for(propName in path){
36
+ propValue = path[propName];
37
+ if (isFunction(propValue)) upath[propName] = function(propName) {
38
+ return function() {
39
+ var args, result;
40
+ args = 1 <= arguments.length ? slice.call(arguments, 0) : [];
41
+ args = args.map(function(p) {
42
+ if (isString(p)) return toUnix(p);
43
+ return p;
44
+ });
45
+ result = path[propName].apply(path, args);
46
+ if (isString(result)) return toUnix(result);
47
+ return result;
48
+ };
49
+ }(propName);
50
+ else upath[propName] = propValue;
62
51
  }
63
- };
64
- }(propName);
65
- } else {
66
- upath[propName] = propValue;
67
- }
68
- }
69
- upath.sep = "/";
70
- extraFunctions = {
71
- toUnix: toUnix,
72
- normalizeSafe: function (p) {
73
- var result;
74
- p = toUnix(p);
75
- result = upath.normalize(p);
76
- if (p.startsWith("./") && !result.startsWith("./") && !result.startsWith("..")) {
77
- result = "./" + result;
78
- } else if (p.startsWith("//") && !result.startsWith("//")) {
79
- if (p.startsWith("//./")) {
80
- result = "//." + result;
81
- } else {
82
- result = "/" + result;
83
- }
84
- }
85
- return result;
86
- },
87
- normalizeTrim: function (p) {
88
- p = upath.normalizeSafe(p);
89
- if (p.endsWith("/")) {
90
- return p.slice(0, +(p.length - 2) + 1 || 9000000000);
91
- } else {
92
- return p;
93
- }
94
- },
95
- joinSafe: function () {
96
- var p, p0, result;
97
- p = 1 <= arguments.length ? slice.call(arguments, 0) : [];
98
- result = upath.join.apply(null, p);
99
- if (p.length > 0) {
100
- p0 = toUnix(p[0]);
101
- if (p0.startsWith("./") && !result.startsWith("./") && !result.startsWith("..")) {
102
- result = "./" + result;
103
- } else if (p0.startsWith("//") && !result.startsWith("//")) {
104
- if (p0.startsWith("//./")) {
105
- result = "//." + result;
106
- } else {
107
- result = "/" + result;
52
+ upath.sep = "/";
53
+ extraFunctions = {
54
+ toUnix: toUnix,
55
+ normalizeSafe: function(p) {
56
+ var result;
57
+ p = toUnix(p);
58
+ result = upath.normalize(p);
59
+ if (!p.startsWith("./") || result.startsWith("./") || result.startsWith("..")) {
60
+ if (p.startsWith("//") && !result.startsWith("//")) result = p.startsWith("//./") ? "//." + result : "/" + result;
61
+ } else result = "./" + result;
62
+ return result;
63
+ },
64
+ normalizeTrim: function(p) {
65
+ p = upath.normalizeSafe(p);
66
+ if (p.endsWith("/")) return p.slice(0, +(p.length - 2) + 1 || 9000000000);
67
+ return p;
68
+ },
69
+ joinSafe: function() {
70
+ var p, p0, result;
71
+ p = 1 <= arguments.length ? slice.call(arguments, 0) : [];
72
+ result = upath.join.apply(null, p);
73
+ if (p.length > 0) {
74
+ p0 = toUnix(p[0]);
75
+ if (!p0.startsWith("./") || result.startsWith("./") || result.startsWith("..")) {
76
+ if (p0.startsWith("//") && !result.startsWith("//")) result = p0.startsWith("//./") ? "//." + result : "/" + result;
77
+ } else result = "./" + result;
78
+ }
79
+ return result;
80
+ },
81
+ addExt: function(file, ext) {
82
+ if (!ext) return file;
83
+ if ("." !== ext[0]) ext = "." + ext;
84
+ return file + (file.endsWith(ext) ? "" : ext);
85
+ },
86
+ trimExt: function(filename, ignoreExts, maxSize) {
87
+ var oldExt;
88
+ if (null == maxSize) maxSize = 7;
89
+ oldExt = upath.extname(filename);
90
+ if (isValidExt(oldExt, ignoreExts, maxSize)) return filename.slice(0, +(filename.length - oldExt.length - 1) + 1 || 9000000000);
91
+ return filename;
92
+ },
93
+ removeExt: function(filename, ext) {
94
+ if (!ext) return filename;
95
+ ext = "." === ext[0] ? ext : "." + ext;
96
+ if (upath.extname(filename) === ext) return upath.trimExt(filename, [], ext.length);
97
+ return filename;
98
+ },
99
+ changeExt: function(filename, ext, ignoreExts, maxSize) {
100
+ if (null == maxSize) maxSize = 7;
101
+ return upath.trimExt(filename, ignoreExts, maxSize) + (ext ? "." === ext[0] ? ext : "." + ext : "");
102
+ },
103
+ defaultExt: function(filename, ext, ignoreExts, maxSize) {
104
+ var oldExt;
105
+ if (null == maxSize) maxSize = 7;
106
+ oldExt = upath.extname(filename);
107
+ if (isValidExt(oldExt, ignoreExts, maxSize)) return filename;
108
+ return upath.addExt(filename, ext);
109
+ }
110
+ };
111
+ isValidExt = function(ext, ignoreExts, maxSize) {
112
+ if (null == ignoreExts) ignoreExts = [];
113
+ return ext && ext.length <= maxSize && indexOf.call(ignoreExts.map(function(e) {
114
+ return (e && "." !== e[0] ? "." : "") + e;
115
+ }), ext) < 0;
116
+ };
117
+ for(name in extraFunctions)if (!!hasProp.call(extraFunctions, name)) {
118
+ extraFn = extraFunctions[name];
119
+ if (void 0 !== upath[name]) throw new Error("path." + name + " already exists.");
120
+ upath[name] = extraFn;
108
121
  }
109
- }
110
- }
111
- return result;
112
- },
113
- addExt: function (file, ext) {
114
- if (!ext) {
115
- return file;
116
- } else {
117
- if (ext[0] !== ".") {
118
- ext = "." + ext;
119
- }
120
- return file + (file.endsWith(ext) ? "" : ext);
121
- }
122
- },
123
- trimExt: function (filename, ignoreExts, maxSize) {
124
- var oldExt;
125
- if (maxSize == null) {
126
- maxSize = 7;
127
- }
128
- oldExt = upath.extname(filename);
129
- if (isValidExt(oldExt, ignoreExts, maxSize)) {
130
- return filename.slice(0, +(filename.length - oldExt.length - 1) + 1 || 9000000000);
131
- } else {
132
- return filename;
122
+ },
123
+ path: function(module) {
124
+ module.exports = __WEBPACK_EXTERNAL_MODULE_path__;
133
125
  }
134
- },
135
- removeExt: function (filename, ext) {
136
- if (!ext) {
137
- return filename;
138
- } else {
139
- ext = ext[0] === "." ? ext : "." + ext;
140
- if (upath.extname(filename) === ext) {
141
- return upath.trimExt(filename, [], ext.length);
142
- } else {
143
- return filename;
144
- }
145
- }
146
- },
147
- changeExt: function (filename, ext, ignoreExts, maxSize) {
148
- if (maxSize == null) {
149
- maxSize = 7;
150
- }
151
- return upath.trimExt(filename, ignoreExts, maxSize) + (!ext ? "" : ext[0] === "." ? ext : "." + ext);
152
- },
153
- defaultExt: function (filename, ext, ignoreExts, maxSize) {
154
- var oldExt;
155
- if (maxSize == null) {
156
- maxSize = 7;
157
- }
158
- oldExt = upath.extname(filename);
159
- if (isValidExt(oldExt, ignoreExts, maxSize)) {
160
- return filename;
161
- } else {
162
- return upath.addExt(filename, ext);
163
- }
164
- }
165
126
  };
166
- isValidExt = function (ext, ignoreExts, maxSize) {
167
- if (ignoreExts == null) {
168
- ignoreExts = [];
169
- }
170
- return ext && ext.length <= maxSize && indexOf.call(ignoreExts.map(function (e) {
171
- return (e && e[0] !== "." ? "." : "") + e;
172
- }), ext) < 0;
173
- };
174
- for (name in extraFunctions) {
175
- if (!hasProp.call(extraFunctions, name))
176
- continue;
177
- extraFn = extraFunctions[name];
178
- if (upath[name] !== void 0) {
179
- throw new Error("path." + name + " already exists.");
180
- } else {
181
- upath[name] = extraFn;
182
- }
183
- }
184
-
185
- ;
186
-
187
- }),
188
- "path": (function (module) {
189
- module.exports = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("path");
190
-
191
- }),
192
-
193
- });
194
- /************************************************************************/
195
- // The module cache
127
+ /************************************************************************/ // The module cache
196
128
  var __webpack_module_cache__ = {};
197
-
198
129
  // The require function
199
130
  function __webpack_require__(moduleId) {
200
-
201
- // Check if module is in cache
202
- var cachedModule = __webpack_module_cache__[moduleId];
203
- if (cachedModule !== undefined) {
204
- return cachedModule.exports;
205
- }
206
- // Create a new module (and put it into the cache)
207
- var module = (__webpack_module_cache__[moduleId] = {
208
- exports: {}
209
- });
210
- // Execute the module function
211
- __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
212
-
213
- // Return the exports of the module
214
- return module.exports;
215
-
131
+ // Check if module is in cache
132
+ var cachedModule = __webpack_module_cache__[moduleId];
133
+ if (void 0 !== cachedModule) return cachedModule.exports;
134
+ // Create a new module (and put it into the cache)
135
+ var module = __webpack_module_cache__[moduleId] = {
136
+ exports: {}
137
+ };
138
+ // Execute the module function
139
+ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
140
+ // Return the exports of the module
141
+ return module.exports;
216
142
  }
217
-
218
- /************************************************************************/
219
- // webpack/runtime/compat_get_default_export
220
- (() => {
221
- // getDefaultExport function for compatibility with non-harmony modules
222
- __webpack_require__.n = function (module) {
223
- var getter = module && module.__esModule ?
224
- function () { return module['default']; } :
225
- function () { return module; };
226
- __webpack_require__.d(getter, { a: getter });
227
- return getter;
228
- };
229
-
230
-
231
-
232
-
143
+ /************************************************************************/ // webpack/runtime/compat_get_default_export
144
+ (()=>{
145
+ // getDefaultExport function for compatibility with non-harmony modules
146
+ __webpack_require__.n = function(module) {
147
+ var getter = module && module.__esModule ? function() {
148
+ return module['default'];
149
+ } : function() {
150
+ return module;
151
+ };
152
+ __webpack_require__.d(getter, {
153
+ a: getter
154
+ });
155
+ return getter;
156
+ };
233
157
  })();
234
158
  // webpack/runtime/define_property_getters
235
- (() => {
236
- __webpack_require__.d = function(exports, definition) {
237
- for(var key in definition) {
238
- if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
239
- Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
240
- }
241
- }
242
- };
159
+ (()=>{
160
+ __webpack_require__.d = function(exports, definition) {
161
+ for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) Object.defineProperty(exports, key, {
162
+ enumerable: true,
163
+ get: definition[key]
164
+ });
165
+ };
243
166
  })();
244
167
  // webpack/runtime/has_own_property
245
- (() => {
246
- __webpack_require__.o = function (obj, prop) {
247
- return Object.prototype.hasOwnProperty.call(obj, prop);
248
- };
249
-
168
+ (()=>{
169
+ __webpack_require__.o = function(obj, prop) {
170
+ return Object.prototype.hasOwnProperty.call(obj, prop);
171
+ };
250
172
  })();
251
- /************************************************************************/
252
- var __webpack_exports__ = {};
253
-
254
- ;// CONCATENATED MODULE: ./node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayReduce.js
255
173
  /**
256
174
  * A specialized version of `_.reduce` for arrays without support for
257
175
  * iteratee shorthands.
@@ -263,99 +181,219 @@ var __webpack_exports__ = {};
263
181
  * @param {boolean} [initAccum] Specify using the first element of `array` as
264
182
  * the initial value.
265
183
  * @returns {*} Returns the accumulated value.
266
- */
267
- function arrayReduce(array, iteratee, accumulator, initAccum) {
268
- var index = -1,
269
- length = array == null ? 0 : array.length;
270
-
271
- if (initAccum && length) {
272
- accumulator = array[++index];
273
- }
274
- while (++index < length) {
275
- accumulator = iteratee(accumulator, array[index], index, array);
276
- }
277
- return accumulator;
184
+ */ function arrayReduce(array, iteratee, accumulator, initAccum) {
185
+ var index = -1, length = null == array ? 0 : array.length;
186
+ if (initAccum && length) accumulator = array[++index];
187
+ while(++index < length)accumulator = iteratee(accumulator, array[index], index, array);
188
+ return accumulator;
278
189
  }
279
-
280
- /* harmony default export */ const _arrayReduce = (arrayReduce);
281
-
282
- ;// CONCATENATED MODULE: ./node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_basePropertyOf.js
190
+ /* harmony default export */ const _arrayReduce = arrayReduce;
283
191
  /**
284
192
  * The base implementation of `_.propertyOf` without support for deep paths.
285
193
  *
286
194
  * @private
287
195
  * @param {Object} object The object to query.
288
196
  * @returns {Function} Returns the new accessor function.
289
- */
290
- function basePropertyOf(object) {
291
- return function(key) {
292
- return object == null ? undefined : object[key];
293
- };
197
+ */ function basePropertyOf(object) {
198
+ return function(key) {
199
+ return null == object ? void 0 : object[key];
200
+ };
294
201
  }
295
-
296
- /* harmony default export */ const _basePropertyOf = (basePropertyOf);
297
-
298
- ;// CONCATENATED MODULE: ./node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_deburrLetter.js
299
-
300
-
301
- /** Used to map Latin Unicode letters to basic Latin letters. */
302
- var deburredLetters = {
303
- // Latin-1 Supplement block.
304
- '\xc0': 'A', '\xc1': 'A', '\xc2': 'A', '\xc3': 'A', '\xc4': 'A', '\xc5': 'A',
305
- '\xe0': 'a', '\xe1': 'a', '\xe2': 'a', '\xe3': 'a', '\xe4': 'a', '\xe5': 'a',
306
- '\xc7': 'C', '\xe7': 'c',
307
- '\xd0': 'D', '\xf0': 'd',
308
- '\xc8': 'E', '\xc9': 'E', '\xca': 'E', '\xcb': 'E',
309
- '\xe8': 'e', '\xe9': 'e', '\xea': 'e', '\xeb': 'e',
310
- '\xcc': 'I', '\xcd': 'I', '\xce': 'I', '\xcf': 'I',
311
- '\xec': 'i', '\xed': 'i', '\xee': 'i', '\xef': 'i',
312
- '\xd1': 'N', '\xf1': 'n',
313
- '\xd2': 'O', '\xd3': 'O', '\xd4': 'O', '\xd5': 'O', '\xd6': 'O', '\xd8': 'O',
314
- '\xf2': 'o', '\xf3': 'o', '\xf4': 'o', '\xf5': 'o', '\xf6': 'o', '\xf8': 'o',
315
- '\xd9': 'U', '\xda': 'U', '\xdb': 'U', '\xdc': 'U',
316
- '\xf9': 'u', '\xfa': 'u', '\xfb': 'u', '\xfc': 'u',
317
- '\xdd': 'Y', '\xfd': 'y', '\xff': 'y',
318
- '\xc6': 'Ae', '\xe6': 'ae',
319
- '\xde': 'Th', '\xfe': 'th',
320
- '\xdf': 'ss',
321
- // Latin Extended-A block.
322
- '\u0100': 'A', '\u0102': 'A', '\u0104': 'A',
323
- '\u0101': 'a', '\u0103': 'a', '\u0105': 'a',
324
- '\u0106': 'C', '\u0108': 'C', '\u010a': 'C', '\u010c': 'C',
325
- '\u0107': 'c', '\u0109': 'c', '\u010b': 'c', '\u010d': 'c',
326
- '\u010e': 'D', '\u0110': 'D', '\u010f': 'd', '\u0111': 'd',
327
- '\u0112': 'E', '\u0114': 'E', '\u0116': 'E', '\u0118': 'E', '\u011a': 'E',
328
- '\u0113': 'e', '\u0115': 'e', '\u0117': 'e', '\u0119': 'e', '\u011b': 'e',
329
- '\u011c': 'G', '\u011e': 'G', '\u0120': 'G', '\u0122': 'G',
330
- '\u011d': 'g', '\u011f': 'g', '\u0121': 'g', '\u0123': 'g',
331
- '\u0124': 'H', '\u0126': 'H', '\u0125': 'h', '\u0127': 'h',
332
- '\u0128': 'I', '\u012a': 'I', '\u012c': 'I', '\u012e': 'I', '\u0130': 'I',
333
- '\u0129': 'i', '\u012b': 'i', '\u012d': 'i', '\u012f': 'i', '\u0131': 'i',
334
- '\u0134': 'J', '\u0135': 'j',
335
- '\u0136': 'K', '\u0137': 'k', '\u0138': 'k',
336
- '\u0139': 'L', '\u013b': 'L', '\u013d': 'L', '\u013f': 'L', '\u0141': 'L',
337
- '\u013a': 'l', '\u013c': 'l', '\u013e': 'l', '\u0140': 'l', '\u0142': 'l',
338
- '\u0143': 'N', '\u0145': 'N', '\u0147': 'N', '\u014a': 'N',
339
- '\u0144': 'n', '\u0146': 'n', '\u0148': 'n', '\u014b': 'n',
340
- '\u014c': 'O', '\u014e': 'O', '\u0150': 'O',
341
- '\u014d': 'o', '\u014f': 'o', '\u0151': 'o',
342
- '\u0154': 'R', '\u0156': 'R', '\u0158': 'R',
343
- '\u0155': 'r', '\u0157': 'r', '\u0159': 'r',
344
- '\u015a': 'S', '\u015c': 'S', '\u015e': 'S', '\u0160': 'S',
345
- '\u015b': 's', '\u015d': 's', '\u015f': 's', '\u0161': 's',
346
- '\u0162': 'T', '\u0164': 'T', '\u0166': 'T',
347
- '\u0163': 't', '\u0165': 't', '\u0167': 't',
348
- '\u0168': 'U', '\u016a': 'U', '\u016c': 'U', '\u016e': 'U', '\u0170': 'U', '\u0172': 'U',
349
- '\u0169': 'u', '\u016b': 'u', '\u016d': 'u', '\u016f': 'u', '\u0171': 'u', '\u0173': 'u',
350
- '\u0174': 'W', '\u0175': 'w',
351
- '\u0176': 'Y', '\u0177': 'y', '\u0178': 'Y',
352
- '\u0179': 'Z', '\u017b': 'Z', '\u017d': 'Z',
353
- '\u017a': 'z', '\u017c': 'z', '\u017e': 'z',
354
- '\u0132': 'IJ', '\u0133': 'ij',
355
- '\u0152': 'Oe', '\u0153': 'oe',
356
- '\u0149': "'n", '\u017f': 's'
202
+ /* harmony default export */ const _basePropertyOf = basePropertyOf;
203
+ /** Used to map Latin Unicode letters to basic Latin letters. */ var deburredLetters = {
204
+ // Latin-1 Supplement block.
205
+ À: 'A',
206
+ Á: 'A',
207
+ Â: 'A',
208
+ Ã: 'A',
209
+ Ä: 'A',
210
+ Å: 'A',
211
+ à: 'a',
212
+ á: 'a',
213
+ â: 'a',
214
+ ã: 'a',
215
+ ä: 'a',
216
+ å: 'a',
217
+ Ç: 'C',
218
+ ç: 'c',
219
+ Ð: 'D',
220
+ ð: 'd',
221
+ È: 'E',
222
+ É: 'E',
223
+ Ê: 'E',
224
+ Ë: 'E',
225
+ è: 'e',
226
+ é: 'e',
227
+ ê: 'e',
228
+ ë: 'e',
229
+ Ì: 'I',
230
+ Í: 'I',
231
+ Î: 'I',
232
+ Ï: 'I',
233
+ ì: 'i',
234
+ í: 'i',
235
+ î: 'i',
236
+ ï: 'i',
237
+ Ñ: 'N',
238
+ ñ: 'n',
239
+ Ò: 'O',
240
+ Ó: 'O',
241
+ Ô: 'O',
242
+ Õ: 'O',
243
+ Ö: 'O',
244
+ Ø: 'O',
245
+ ò: 'o',
246
+ ó: 'o',
247
+ ô: 'o',
248
+ õ: 'o',
249
+ ö: 'o',
250
+ ø: 'o',
251
+ Ù: 'U',
252
+ Ú: 'U',
253
+ Û: 'U',
254
+ Ü: 'U',
255
+ ù: 'u',
256
+ ú: 'u',
257
+ û: 'u',
258
+ ü: 'u',
259
+ Ý: 'Y',
260
+ ý: 'y',
261
+ ÿ: 'y',
262
+ Æ: 'Ae',
263
+ æ: 'ae',
264
+ Þ: 'Th',
265
+ þ: 'th',
266
+ ß: 'ss',
267
+ // Latin Extended-A block.
268
+ Ā: 'A',
269
+ Ă: 'A',
270
+ Ą: 'A',
271
+ ā: 'a',
272
+ ă: 'a',
273
+ ą: 'a',
274
+ Ć: 'C',
275
+ Ĉ: 'C',
276
+ Ċ: 'C',
277
+ Č: 'C',
278
+ ć: 'c',
279
+ ĉ: 'c',
280
+ ċ: 'c',
281
+ č: 'c',
282
+ Ď: 'D',
283
+ Đ: 'D',
284
+ ď: 'd',
285
+ đ: 'd',
286
+ Ē: 'E',
287
+ Ĕ: 'E',
288
+ Ė: 'E',
289
+ Ę: 'E',
290
+ Ě: 'E',
291
+ ē: 'e',
292
+ ĕ: 'e',
293
+ ė: 'e',
294
+ ę: 'e',
295
+ ě: 'e',
296
+ Ĝ: 'G',
297
+ Ğ: 'G',
298
+ Ġ: 'G',
299
+ Ģ: 'G',
300
+ ĝ: 'g',
301
+ ğ: 'g',
302
+ ġ: 'g',
303
+ ģ: 'g',
304
+ Ĥ: 'H',
305
+ Ħ: 'H',
306
+ ĥ: 'h',
307
+ ħ: 'h',
308
+ Ĩ: 'I',
309
+ Ī: 'I',
310
+ Ĭ: 'I',
311
+ Į: 'I',
312
+ İ: 'I',
313
+ ĩ: 'i',
314
+ ī: 'i',
315
+ ĭ: 'i',
316
+ į: 'i',
317
+ ı: 'i',
318
+ Ĵ: 'J',
319
+ ĵ: 'j',
320
+ Ķ: 'K',
321
+ ķ: 'k',
322
+ ĸ: 'k',
323
+ Ĺ: 'L',
324
+ Ļ: 'L',
325
+ Ľ: 'L',
326
+ Ŀ: 'L',
327
+ Ł: 'L',
328
+ ĺ: 'l',
329
+ ļ: 'l',
330
+ ľ: 'l',
331
+ ŀ: 'l',
332
+ ł: 'l',
333
+ Ń: 'N',
334
+ Ņ: 'N',
335
+ Ň: 'N',
336
+ Ŋ: 'N',
337
+ ń: 'n',
338
+ ņ: 'n',
339
+ ň: 'n',
340
+ ŋ: 'n',
341
+ Ō: 'O',
342
+ Ŏ: 'O',
343
+ Ő: 'O',
344
+ ō: 'o',
345
+ ŏ: 'o',
346
+ ő: 'o',
347
+ Ŕ: 'R',
348
+ Ŗ: 'R',
349
+ Ř: 'R',
350
+ ŕ: 'r',
351
+ ŗ: 'r',
352
+ ř: 'r',
353
+ Ś: 'S',
354
+ Ŝ: 'S',
355
+ Ş: 'S',
356
+ Š: 'S',
357
+ ś: 's',
358
+ ŝ: 's',
359
+ ş: 's',
360
+ š: 's',
361
+ Ţ: 'T',
362
+ Ť: 'T',
363
+ Ŧ: 'T',
364
+ ţ: 't',
365
+ ť: 't',
366
+ ŧ: 't',
367
+ Ũ: 'U',
368
+ Ū: 'U',
369
+ Ŭ: 'U',
370
+ Ů: 'U',
371
+ Ű: 'U',
372
+ Ų: 'U',
373
+ ũ: 'u',
374
+ ū: 'u',
375
+ ŭ: 'u',
376
+ ů: 'u',
377
+ ű: 'u',
378
+ ų: 'u',
379
+ Ŵ: 'W',
380
+ ŵ: 'w',
381
+ Ŷ: 'Y',
382
+ ŷ: 'y',
383
+ Ÿ: 'Y',
384
+ Ź: 'Z',
385
+ Ż: 'Z',
386
+ Ž: 'Z',
387
+ ź: 'z',
388
+ ż: 'z',
389
+ ž: 'z',
390
+ IJ: 'IJ',
391
+ ij: 'ij',
392
+ Œ: 'Oe',
393
+ œ: 'oe',
394
+ ʼn: "'n",
395
+ ſ: 's'
357
396
  };
358
-
359
397
  /**
360
398
  * Used by `_.deburr` to convert Latin-1 Supplement and Latin Extended-A
361
399
  * letters to basic Latin letters.
@@ -363,37 +401,15 @@ var deburredLetters = {
363
401
  * @private
364
402
  * @param {string} letter The matched letter to deburr.
365
403
  * @returns {string} Returns the deburred letter.
366
- */
367
- var deburrLetter = _basePropertyOf(deburredLetters);
368
-
369
- /* harmony default export */ const _deburrLetter = (deburrLetter);
370
-
371
- ;// CONCATENATED MODULE: ./node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_freeGlobal.js
372
- /** Detect free variable `global` from Node.js. */
373
- var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
374
-
375
- /* harmony default export */ const _freeGlobal = (freeGlobal);
376
-
377
- ;// CONCATENATED MODULE: ./node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_root.js
378
-
379
-
380
- /** Detect free variable `self`. */
381
- var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
382
-
383
- /** Used as a reference to the global object. */
384
- var root = _freeGlobal || freeSelf || Function('return this')();
385
-
386
- /* harmony default export */ const _root = (root);
387
-
388
- ;// CONCATENATED MODULE: ./node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Symbol.js
389
-
390
-
391
- /** Built-in value references. */
392
- var Symbol = _root.Symbol;
393
-
394
- /* harmony default export */ const _Symbol = (Symbol);
395
-
396
- ;// CONCATENATED MODULE: ./node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayMap.js
404
+ */ var deburrLetter = _basePropertyOf(deburredLetters);
405
+ /* harmony default export */ const _deburrLetter = deburrLetter;
406
+ /** Detect free variable `global` from Node.js. */ var freeGlobal = 'object' == typeof global && global && global.Object === Object && global;
407
+ /* harmony default export */ const _freeGlobal = freeGlobal;
408
+ /** Detect free variable `self`. */ var freeSelf = 'object' == typeof self && self && self.Object === Object && self;
409
+ /** Used as a reference to the global object. */ var root = _freeGlobal || freeSelf || Function('return this')();
410
+ /* harmony default export */ const _root = root;
411
+ /** Built-in value references. */ var Symbol = _root.Symbol;
412
+ /* harmony default export */ const _Symbol = Symbol;
397
413
  /**
398
414
  * A specialized version of `_.map` for arrays without support for iteratee
399
415
  * shorthands.
@@ -402,21 +418,12 @@ var Symbol = _root.Symbol;
402
418
  * @param {Array} [array] The array to iterate over.
403
419
  * @param {Function} iteratee The function invoked per iteration.
404
420
  * @returns {Array} Returns the new mapped array.
405
- */
406
- function arrayMap(array, iteratee) {
407
- var index = -1,
408
- length = array == null ? 0 : array.length,
409
- result = Array(length);
410
-
411
- while (++index < length) {
412
- result[index] = iteratee(array[index], index, array);
413
- }
414
- return result;
421
+ */ function arrayMap(array, iteratee) {
422
+ var index = -1, length = null == array ? 0 : array.length, result = Array(length);
423
+ while(++index < length)result[index] = iteratee(array[index], index, array);
424
+ return result;
415
425
  }
416
-
417
- /* harmony default export */ const _arrayMap = (arrayMap);
418
-
419
- ;// CONCATENATED MODULE: ./node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArray.js
426
+ /* harmony default export */ const _arrayMap = arrayMap;
420
427
  /**
421
428
  * Checks if `value` is classified as an `Array` object.
422
429
  *
@@ -439,114 +446,65 @@ function arrayMap(array, iteratee) {
439
446
  *
440
447
  * _.isArray(_.noop);
441
448
  * // => false
442
- */
443
- var isArray_isArray = Array.isArray;
444
-
445
- /* harmony default export */ const isArray = (isArray_isArray);
446
-
447
- ;// CONCATENATED MODULE: ./node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getRawTag.js
448
-
449
-
450
- /** Used for built-in method references. */
451
- var objectProto = Object.prototype;
452
-
453
- /** Used to check objects for own properties. */
454
- var _getRawTag_hasOwnProperty = objectProto.hasOwnProperty;
455
-
449
+ */ var isArray_isArray = Array.isArray;
450
+ /* harmony default export */ const isArray = isArray_isArray;
451
+ /** Used for built-in method references. */ var objectProto = Object.prototype;
452
+ /** Used to check objects for own properties. */ var _getRawTag_hasOwnProperty = objectProto.hasOwnProperty;
456
453
  /**
457
454
  * Used to resolve the
458
455
  * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
459
456
  * of values.
460
- */
461
- var nativeObjectToString = objectProto.toString;
462
-
463
- /** Built-in value references. */
464
- var symToStringTag = _Symbol ? _Symbol.toStringTag : undefined;
465
-
457
+ */ var nativeObjectToString = objectProto.toString;
458
+ /** Built-in value references. */ var symToStringTag = _Symbol ? _Symbol.toStringTag : void 0;
466
459
  /**
467
460
  * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
468
461
  *
469
462
  * @private
470
463
  * @param {*} value The value to query.
471
464
  * @returns {string} Returns the raw `toStringTag`.
472
- */
473
- function getRawTag(value) {
474
- var isOwn = _getRawTag_hasOwnProperty.call(value, symToStringTag),
475
- tag = value[symToStringTag];
476
-
477
- try {
478
- value[symToStringTag] = undefined;
479
- var unmasked = true;
480
- } catch (e) {}
481
-
482
- var result = nativeObjectToString.call(value);
483
- if (unmasked) {
484
- if (isOwn) {
485
- value[symToStringTag] = tag;
486
- } else {
487
- delete value[symToStringTag];
465
+ */ function getRawTag(value) {
466
+ var isOwn = _getRawTag_hasOwnProperty.call(value, symToStringTag), tag = value[symToStringTag];
467
+ try {
468
+ value[symToStringTag] = void 0;
469
+ var unmasked = true;
470
+ } catch (e) {}
471
+ var result = nativeObjectToString.call(value);
472
+ if (unmasked) {
473
+ if (isOwn) value[symToStringTag] = tag;
474
+ else delete value[symToStringTag];
488
475
  }
489
- }
490
- return result;
476
+ return result;
491
477
  }
492
-
493
- /* harmony default export */ const _getRawTag = (getRawTag);
494
-
495
- ;// CONCATENATED MODULE: ./node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_objectToString.js
496
- /** Used for built-in method references. */
497
- var _objectToString_objectProto = Object.prototype;
498
-
478
+ /* harmony default export */ const _getRawTag = getRawTag;
479
+ /** Used for built-in method references. */ var _objectToString_objectProto = Object.prototype;
499
480
  /**
500
481
  * Used to resolve the
501
482
  * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
502
483
  * of values.
503
- */
504
- var _objectToString_nativeObjectToString = _objectToString_objectProto.toString;
505
-
484
+ */ var _objectToString_nativeObjectToString = _objectToString_objectProto.toString;
506
485
  /**
507
486
  * Converts `value` to a string using `Object.prototype.toString`.
508
487
  *
509
488
  * @private
510
489
  * @param {*} value The value to convert.
511
490
  * @returns {string} Returns the converted string.
512
- */
513
- function objectToString(value) {
514
- return _objectToString_nativeObjectToString.call(value);
491
+ */ function objectToString(value) {
492
+ return _objectToString_nativeObjectToString.call(value);
515
493
  }
516
-
517
- /* harmony default export */ const _objectToString = (objectToString);
518
-
519
- ;// CONCATENATED MODULE: ./node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetTag.js
520
-
521
-
522
-
523
-
524
- /** `Object#toString` result references. */
525
- var nullTag = '[object Null]',
526
- undefinedTag = '[object Undefined]';
527
-
528
- /** Built-in value references. */
529
- var _baseGetTag_symToStringTag = _Symbol ? _Symbol.toStringTag : undefined;
530
-
494
+ /* harmony default export */ const _objectToString = objectToString;
495
+ /** `Object#toString` result references. */ var nullTag = '[object Null]', undefinedTag = '[object Undefined]';
496
+ /** Built-in value references. */ var _baseGetTag_symToStringTag = _Symbol ? _Symbol.toStringTag : void 0;
531
497
  /**
532
498
  * The base implementation of `getTag` without fallbacks for buggy environments.
533
499
  *
534
500
  * @private
535
501
  * @param {*} value The value to query.
536
502
  * @returns {string} Returns the `toStringTag`.
537
- */
538
- function baseGetTag(value) {
539
- if (value == null) {
540
- return value === undefined ? undefinedTag : nullTag;
541
- }
542
- return (_baseGetTag_symToStringTag && _baseGetTag_symToStringTag in Object(value))
543
- ? _getRawTag(value)
544
- : _objectToString(value);
503
+ */ function baseGetTag(value) {
504
+ if (null == value) return void 0 === value ? undefinedTag : nullTag;
505
+ return _baseGetTag_symToStringTag && _baseGetTag_symToStringTag in Object(value) ? _getRawTag(value) : _objectToString(value);
545
506
  }
546
-
547
- /* harmony default export */ const _baseGetTag = (baseGetTag);
548
-
549
- ;// CONCATENATED MODULE: ./node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObjectLike.js
507
+ /* harmony default export */ const _baseGetTag = baseGetTag;
550
508
  /**
551
509
  * Checks if `value` is object-like. A value is object-like if it's not `null`
552
510
  * and has a `typeof` result of "object".
@@ -570,20 +528,11 @@ function baseGetTag(value) {
570
528
  *
571
529
  * _.isObjectLike(null);
572
530
  * // => false
573
- */
574
- function isObjectLike(value) {
575
- return value != null && typeof value == 'object';
531
+ */ function isObjectLike(value) {
532
+ return null != value && 'object' == typeof value;
576
533
  }
577
-
578
- /* harmony default export */ const lodash_es_isObjectLike = (isObjectLike);
579
-
580
- ;// CONCATENATED MODULE: ./node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isSymbol.js
581
-
582
-
583
-
584
- /** `Object#toString` result references. */
585
- var symbolTag = '[object Symbol]';
586
-
534
+ /* harmony default export */ const lodash_es_isObjectLike = isObjectLike;
535
+ /** `Object#toString` result references. */ var symbolTag = '[object Symbol]';
587
536
  /**
588
537
  * Checks if `value` is classified as a `Symbol` primitive or object.
589
538
  *
@@ -600,27 +549,12 @@ var symbolTag = '[object Symbol]';
600
549
  *
601
550
  * _.isSymbol('abc');
602
551
  * // => false
603
- */
604
- function isSymbol_isSymbol(value) {
605
- return typeof value == 'symbol' ||
606
- (lodash_es_isObjectLike(value) && _baseGetTag(value) == symbolTag);
552
+ */ function isSymbol_isSymbol(value) {
553
+ return 'symbol' == typeof value || lodash_es_isObjectLike(value) && _baseGetTag(value) == symbolTag;
607
554
  }
608
-
609
- /* harmony default export */ const isSymbol = (isSymbol_isSymbol);
610
-
611
- ;// CONCATENATED MODULE: ./node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseToString.js
612
-
613
-
614
-
615
-
616
-
617
- /** Used as references for various `Number` constants. */
618
- var INFINITY = 1 / 0;
619
-
620
- /** Used to convert symbols to primitives and strings. */
621
- var symbolProto = _Symbol ? _Symbol.prototype : undefined,
622
- symbolToString = symbolProto ? symbolProto.toString : undefined;
623
-
555
+ /* harmony default export */ const isSymbol = isSymbol_isSymbol;
556
+ /** Used as references for various `Number` constants. */ var INFINITY = 1 / 0;
557
+ /** Used to convert symbols to primitives and strings. */ var symbolProto = _Symbol ? _Symbol.prototype : void 0, symbolToString = symbolProto ? symbolProto.toString : void 0;
624
558
  /**
625
559
  * The base implementation of `_.toString` which doesn't convert nullish
626
560
  * values to empty strings.
@@ -628,28 +562,16 @@ var symbolProto = _Symbol ? _Symbol.prototype : undefined,
628
562
  * @private
629
563
  * @param {*} value The value to process.
630
564
  * @returns {string} Returns the string.
631
- */
632
- function baseToString(value) {
633
- // Exit early for strings to avoid a performance hit in some environments.
634
- if (typeof value == 'string') {
635
- return value;
636
- }
637
- if (isArray(value)) {
638
- // Recursively convert values (susceptible to call stack limits).
565
+ */ function baseToString(value) {
566
+ // Exit early for strings to avoid a performance hit in some environments.
567
+ if ('string' == typeof value) return value;
568
+ if (isArray(value)) // Recursively convert values (susceptible to call stack limits).
639
569
  return _arrayMap(value, baseToString) + '';
640
- }
641
- if (isSymbol(value)) {
642
- return symbolToString ? symbolToString.call(value) : '';
643
- }
644
- var result = (value + '');
645
- return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
570
+ if (isSymbol(value)) return symbolToString ? symbolToString.call(value) : '';
571
+ var result = value + '';
572
+ return '0' == result && 1 / value == -INFINITY ? '-0' : result;
646
573
  }
647
-
648
- /* harmony default export */ const _baseToString = (baseToString);
649
-
650
- ;// CONCATENATED MODULE: ./node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/toString.js
651
-
652
-
574
+ /* harmony default export */ const _baseToString = baseToString;
653
575
  /**
654
576
  * Converts `value` to a string. An empty string is returned for `null`
655
577
  * and `undefined` values. The sign of `-0` is preserved.
@@ -670,35 +592,17 @@ function baseToString(value) {
670
592
  *
671
593
  * _.toString([1, 2, 3]);
672
594
  * // => '1,2,3'
673
- */
674
- function toString_toString(value) {
675
- return value == null ? '' : _baseToString(value);
595
+ */ function toString_toString(value) {
596
+ return null == value ? '' : _baseToString(value);
676
597
  }
677
-
678
- /* harmony default export */ const lodash_es_toString = (toString_toString);
679
-
680
- ;// CONCATENATED MODULE: ./node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/deburr.js
681
-
682
-
683
-
684
- /** Used to match Latin Unicode letters (excluding mathematical operators). */
685
- var reLatin = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g;
686
-
687
- /** Used to compose unicode character classes. */
688
- var rsComboMarksRange = '\\u0300-\\u036f',
689
- reComboHalfMarksRange = '\\ufe20-\\ufe2f',
690
- rsComboSymbolsRange = '\\u20d0-\\u20ff',
691
- rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange;
692
-
693
- /** Used to compose unicode capture groups. */
694
- var rsCombo = '[' + rsComboRange + ']';
695
-
598
+ /* harmony default export */ const lodash_es_toString = toString_toString;
599
+ /** Used to match Latin Unicode letters (excluding mathematical operators). */ var reLatin = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g;
600
+ /** Used to compose unicode character classes. */ var rsComboMarksRange = '\\u0300-\\u036f', reComboHalfMarksRange = '\\ufe20-\\ufe2f', rsComboSymbolsRange = '\\u20d0-\\u20ff', rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange;
601
+ /** Used to compose unicode capture groups. */ var rsCombo = '[' + rsComboRange + ']';
696
602
  /**
697
603
  * Used to match [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks) and
698
604
  * [combining diacritical marks for symbols](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks_for_Symbols).
699
- */
700
- var reComboMark = RegExp(rsCombo, 'g');
701
-
605
+ */ var reComboMark = RegExp(rsCombo, 'g');
702
606
  /**
703
607
  * Deburrs `string` by converting
704
608
  * [Latin-1 Supplement](https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)#Character_table)
@@ -716,125 +620,72 @@ var reComboMark = RegExp(rsCombo, 'g');
716
620
  *
717
621
  * _.deburr('déjà vu');
718
622
  * // => 'deja vu'
719
- */
720
- function deburr_deburr(string) {
721
- string = lodash_es_toString(string);
722
- return string && string.replace(reLatin, _deburrLetter).replace(reComboMark, '');
623
+ */ function deburr_deburr(string) {
624
+ string = lodash_es_toString(string);
625
+ return string && string.replace(reLatin, _deburrLetter).replace(reComboMark, '');
723
626
  }
724
-
725
- /* harmony default export */ const deburr = (deburr_deburr);
726
-
727
- ;// CONCATENATED MODULE: ./node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_asciiWords.js
728
- /** Used to match words composed of alphanumeric characters. */
729
- var reAsciiWord = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
730
-
627
+ /* harmony default export */ const deburr = deburr_deburr;
628
+ /** Used to match words composed of alphanumeric characters. */ var reAsciiWord = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
731
629
  /**
732
630
  * Splits an ASCII `string` into an array of its words.
733
631
  *
734
632
  * @private
735
633
  * @param {string} The string to inspect.
736
634
  * @returns {Array} Returns the words of `string`.
737
- */
738
- function asciiWords(string) {
739
- return string.match(reAsciiWord) || [];
635
+ */ function asciiWords(string) {
636
+ return string.match(reAsciiWord) || [];
740
637
  }
741
-
742
- /* harmony default export */ const _asciiWords = (asciiWords);
743
-
744
- ;// CONCATENATED MODULE: ./node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hasUnicodeWord.js
745
- /** Used to detect strings that need a more robust regexp to match words. */
746
- 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 ]/;
747
-
638
+ /* harmony default export */ const _asciiWords = asciiWords;
639
+ /** Used to detect strings that need a more robust regexp to match words. */ 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 ]/;
748
640
  /**
749
641
  * Checks if `string` contains a word composed of Unicode symbols.
750
642
  *
751
643
  * @private
752
644
  * @param {string} string The string to inspect.
753
645
  * @returns {boolean} Returns `true` if a word is found, else `false`.
754
- */
755
- function hasUnicodeWord(string) {
756
- return reHasUnicodeWord.test(string);
646
+ */ function hasUnicodeWord(string) {
647
+ return reHasUnicodeWord.test(string);
757
648
  }
758
-
759
- /* harmony default export */ const _hasUnicodeWord = (hasUnicodeWord);
760
-
761
- ;// CONCATENATED MODULE: ./node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_unicodeWords.js
762
- /** Used to compose unicode character classes. */
763
- var rsAstralRange = '\\ud800-\\udfff',
764
- _unicodeWords_rsComboMarksRange = '\\u0300-\\u036f',
765
- _unicodeWords_reComboHalfMarksRange = '\\ufe20-\\ufe2f',
766
- _unicodeWords_rsComboSymbolsRange = '\\u20d0-\\u20ff',
767
- _unicodeWords_rsComboRange = _unicodeWords_rsComboMarksRange + _unicodeWords_reComboHalfMarksRange + _unicodeWords_rsComboSymbolsRange,
768
- rsDingbatRange = '\\u2700-\\u27bf',
769
- rsLowerRange = 'a-z\\xdf-\\xf6\\xf8-\\xff',
770
- rsMathOpRange = '\\xac\\xb1\\xd7\\xf7',
771
- rsNonCharRange = '\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf',
772
- rsPunctuationRange = '\\u2000-\\u206f',
773
- 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',
774
- rsUpperRange = 'A-Z\\xc0-\\xd6\\xd8-\\xde',
775
- rsVarRange = '\\ufe0e\\ufe0f',
776
- rsBreakRange = rsMathOpRange + rsNonCharRange + rsPunctuationRange + rsSpaceRange;
777
-
778
- /** Used to compose unicode capture groups. */
779
- var rsApos = "['\u2019]",
780
- rsBreak = '[' + rsBreakRange + ']',
781
- _unicodeWords_rsCombo = '[' + _unicodeWords_rsComboRange + ']',
782
- rsDigits = '\\d+',
783
- rsDingbat = '[' + rsDingbatRange + ']',
784
- rsLower = '[' + rsLowerRange + ']',
785
- rsMisc = '[^' + rsAstralRange + rsBreakRange + rsDigits + rsDingbatRange + rsLowerRange + rsUpperRange + ']',
786
- rsFitz = '\\ud83c[\\udffb-\\udfff]',
787
- rsModifier = '(?:' + _unicodeWords_rsCombo + '|' + rsFitz + ')',
788
- rsNonAstral = '[^' + rsAstralRange + ']',
789
- rsRegional = '(?:\\ud83c[\\udde6-\\uddff]){2}',
790
- rsSurrPair = '[\\ud800-\\udbff][\\udc00-\\udfff]',
791
- rsUpper = '[' + rsUpperRange + ']',
792
- rsZWJ = '\\u200d';
793
-
794
- /** Used to compose unicode regexes. */
795
- var rsMiscLower = '(?:' + rsLower + '|' + rsMisc + ')',
796
- rsMiscUpper = '(?:' + rsUpper + '|' + rsMisc + ')',
797
- rsOptContrLower = '(?:' + rsApos + '(?:d|ll|m|re|s|t|ve))?',
798
- rsOptContrUpper = '(?:' + rsApos + '(?:D|LL|M|RE|S|T|VE))?',
799
- reOptMod = rsModifier + '?',
800
- rsOptVar = '[' + rsVarRange + ']?',
801
- rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',
802
- rsOrdLower = '\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])',
803
- rsOrdUpper = '\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])',
804
- rsSeq = rsOptVar + reOptMod + rsOptJoin,
805
- rsEmoji = '(?:' + [rsDingbat, rsRegional, rsSurrPair].join('|') + ')' + rsSeq;
806
-
807
- /** Used to match complex or compound words. */
808
- var reUnicodeWord = RegExp([
809
- rsUpper + '?' + rsLower + '+' + rsOptContrLower + '(?=' + [rsBreak, rsUpper, '$'].join('|') + ')',
810
- rsMiscUpper + '+' + rsOptContrUpper + '(?=' + [rsBreak, rsUpper + rsMiscLower, '$'].join('|') + ')',
811
- rsUpper + '?' + rsMiscLower + '+' + rsOptContrLower,
812
- rsUpper + '+' + rsOptContrUpper,
813
- rsOrdUpper,
814
- rsOrdLower,
815
- rsDigits,
816
- rsEmoji
649
+ /* harmony default export */ const _hasUnicodeWord = hasUnicodeWord;
650
+ /** Used to compose unicode character classes. */ var rsAstralRange = '\\ud800-\\udfff', _unicodeWords_rsComboMarksRange = '\\u0300-\\u036f', _unicodeWords_reComboHalfMarksRange = '\\ufe20-\\ufe2f', _unicodeWords_rsComboSymbolsRange = '\\u20d0-\\u20ff', _unicodeWords_rsComboRange = _unicodeWords_rsComboMarksRange + _unicodeWords_reComboHalfMarksRange + _unicodeWords_rsComboSymbolsRange, rsDingbatRange = '\\u2700-\\u27bf', rsLowerRange = 'a-z\\xdf-\\xf6\\xf8-\\xff', rsMathOpRange = '\\xac\\xb1\\xd7\\xf7', rsNonCharRange = '\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf', rsPunctuationRange = '\\u2000-\\u206f', 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', rsUpperRange = 'A-Z\\xc0-\\xd6\\xd8-\\xde', rsVarRange = '\\ufe0e\\ufe0f', rsBreakRange = rsMathOpRange + rsNonCharRange + rsPunctuationRange + rsSpaceRange;
651
+ /** Used to compose unicode capture groups. */ var rsApos = "['\u2019]", rsBreak = '[' + rsBreakRange + ']', _unicodeWords_rsCombo = '[' + _unicodeWords_rsComboRange + ']', rsDigits = '\\d+', rsDingbat = '[' + rsDingbatRange + ']', rsLower = '[' + rsLowerRange + ']', rsMisc = '[^' + rsAstralRange + rsBreakRange + rsDigits + rsDingbatRange + rsLowerRange + rsUpperRange + ']', rsFitz = '\\ud83c[\\udffb-\\udfff]', rsModifier = '(?:' + _unicodeWords_rsCombo + '|' + rsFitz + ')', rsNonAstral = '[^' + rsAstralRange + ']', rsRegional = '(?:\\ud83c[\\udde6-\\uddff]){2}', rsSurrPair = '[\\ud800-\\udbff][\\udc00-\\udfff]', rsUpper = '[' + rsUpperRange + ']', rsZWJ = '\\u200d';
652
+ /** Used to compose unicode regexes. */ var rsMiscLower = '(?:' + rsLower + '|' + rsMisc + ')', rsMiscUpper = '(?:' + rsUpper + '|' + rsMisc + ')', rsOptContrLower = '(?:' + rsApos + '(?:d|ll|m|re|s|t|ve))?', rsOptContrUpper = '(?:' + rsApos + '(?:D|LL|M|RE|S|T|VE))?', reOptMod = rsModifier + '?', rsOptVar = '[' + rsVarRange + ']?', rsOptJoin = '(?:' + rsZWJ + '(?:' + [
653
+ rsNonAstral,
654
+ rsRegional,
655
+ rsSurrPair
656
+ ].join('|') + ')' + rsOptVar + reOptMod + ')*', rsOrdLower = '\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])', rsOrdUpper = '\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])', rsSeq = rsOptVar + reOptMod + rsOptJoin, rsEmoji = '(?:' + [
657
+ rsDingbat,
658
+ rsRegional,
659
+ rsSurrPair
660
+ ].join('|') + ')' + rsSeq;
661
+ /** Used to match complex or compound words. */ var reUnicodeWord = RegExp([
662
+ rsUpper + '?' + rsLower + '+' + rsOptContrLower + '(?=' + [
663
+ rsBreak,
664
+ rsUpper,
665
+ '$'
666
+ ].join('|') + ')',
667
+ rsMiscUpper + '+' + rsOptContrUpper + '(?=' + [
668
+ rsBreak,
669
+ rsUpper + rsMiscLower,
670
+ '$'
671
+ ].join('|') + ')',
672
+ rsUpper + '?' + rsMiscLower + '+' + rsOptContrLower,
673
+ rsUpper + '+' + rsOptContrUpper,
674
+ rsOrdUpper,
675
+ rsOrdLower,
676
+ rsDigits,
677
+ rsEmoji
817
678
  ].join('|'), 'g');
818
-
819
679
  /**
820
680
  * Splits a Unicode `string` into an array of its words.
821
681
  *
822
682
  * @private
823
683
  * @param {string} The string to inspect.
824
684
  * @returns {Array} Returns the words of `string`.
825
- */
826
- function unicodeWords(string) {
827
- return string.match(reUnicodeWord) || [];
685
+ */ function unicodeWords(string) {
686
+ return string.match(reUnicodeWord) || [];
828
687
  }
829
-
830
- /* harmony default export */ const _unicodeWords = (unicodeWords);
831
-
832
- ;// CONCATENATED MODULE: ./node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/words.js
833
-
834
-
835
-
836
-
837
-
688
+ /* harmony default export */ const _unicodeWords = unicodeWords;
838
689
  /**
839
690
  * Splits `string` into an array of its words.
840
691
  *
@@ -853,48 +704,27 @@ function unicodeWords(string) {
853
704
  *
854
705
  * _.words('fred, barney, & pebbles', /[^, ]+/g);
855
706
  * // => ['fred', 'barney', '&', 'pebbles']
856
- */
857
- function words_words(string, pattern, guard) {
858
- string = lodash_es_toString(string);
859
- pattern = guard ? undefined : pattern;
860
-
861
- if (pattern === undefined) {
862
- return _hasUnicodeWord(string) ? _unicodeWords(string) : _asciiWords(string);
863
- }
864
- return string.match(pattern) || [];
707
+ */ function words_words(string, pattern, guard) {
708
+ string = lodash_es_toString(string);
709
+ pattern = guard ? void 0 : pattern;
710
+ if (void 0 === pattern) return _hasUnicodeWord(string) ? _unicodeWords(string) : _asciiWords(string);
711
+ return string.match(pattern) || [];
865
712
  }
866
-
867
- /* harmony default export */ const words = (words_words);
868
-
869
- ;// CONCATENATED MODULE: ./node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_createCompounder.js
870
-
871
-
872
-
873
-
874
- /** Used to compose unicode capture groups. */
875
- var _createCompounder_rsApos = "['\u2019]";
876
-
877
- /** Used to match apostrophes. */
878
- var reApos = RegExp(_createCompounder_rsApos, 'g');
879
-
713
+ /* harmony default export */ const words = words_words;
714
+ /** Used to compose unicode capture groups. */ var _createCompounder_rsApos = "['\u2019]";
715
+ /** Used to match apostrophes. */ var reApos = RegExp(_createCompounder_rsApos, 'g');
880
716
  /**
881
717
  * Creates a function like `_.camelCase`.
882
718
  *
883
719
  * @private
884
720
  * @param {Function} callback The function to combine each word.
885
721
  * @returns {Function} Returns the new compounder function.
886
- */
887
- function createCompounder(callback) {
888
- return function(string) {
889
- return _arrayReduce(words(deburr(string).replace(reApos, '')), callback, '');
890
- };
722
+ */ function createCompounder(callback) {
723
+ return function(string) {
724
+ return _arrayReduce(words(deburr(string).replace(reApos, '')), callback, '');
725
+ };
891
726
  }
892
-
893
- /* harmony default export */ const _createCompounder = (createCompounder);
894
-
895
- ;// CONCATENATED MODULE: ./node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/snakeCase.js
896
-
897
-
727
+ /* harmony default export */ const _createCompounder = createCompounder;
898
728
  /**
899
729
  * Converts `string` to
900
730
  * [snake case](https://en.wikipedia.org/wiki/Snake_case).
@@ -915,41 +745,14 @@ function createCompounder(callback) {
915
745
  *
916
746
  * _.snakeCase('--FOO-BAR--');
917
747
  * // => 'foo_bar'
918
- */
919
- var snakeCase_snakeCase = _createCompounder(function(result, word, index) {
920
- return result + (index ? '_' : '') + word.toLowerCase();
748
+ */ var snakeCase_snakeCase = _createCompounder(function(result, word, index) {
749
+ return result + (index ? '_' : '') + word.toLowerCase();
921
750
  });
922
-
923
- /* harmony default export */ const snakeCase = (snakeCase_snakeCase);
924
-
925
- ;// CONCATENATED MODULE: external "node:fs"
926
-
927
- var external_node_fs_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
928
- var external_node_fs_y = x => () => x
929
- var external_node_fs_namespaceObject = __WEBPACK_EXTERNAL_MODULE_node_fs__;
930
-
931
- ;// CONCATENATED MODULE: external "node:os"
932
-
933
- var external_node_os_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
934
- var external_node_os_y = x => () => x
935
- var external_node_os_namespaceObject = __WEBPACK_EXTERNAL_MODULE_node_os__;
936
-
937
- ;// CONCATENATED MODULE: external "node:path"
938
-
939
- var external_node_path_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
940
- var external_node_path_y = x => () => x
941
- var external_node_path_namespaceObject = __WEBPACK_EXTERNAL_MODULE_node_path__;
942
-
943
- ;// CONCATENATED MODULE: ./node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/escapeRegExp.js
944
-
945
-
751
+ /* harmony default export */ const snakeCase = snakeCase_snakeCase;
946
752
  /**
947
753
  * Used to match `RegExp`
948
754
  * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
949
- */
950
- var reRegExpChar = /[\\^$.*+?()[\]{}|]/g,
951
- reHasRegExpChar = RegExp(reRegExpChar.source);
952
-
755
+ */ var reRegExpChar = /[\\^$.*+?()[\]{}|]/g, reHasRegExpChar = RegExp(reRegExpChar.source);
953
756
  /**
954
757
  * Escapes the `RegExp` special characters "^", "$", "\", ".", "*", "+",
955
758
  * "?", "(", ")", "[", "]", "{", "}", and "|" in `string`.
@@ -964,145 +767,103 @@ var reRegExpChar = /[\\^$.*+?()[\]{}|]/g,
964
767
  *
965
768
  * _.escapeRegExp('[lodash](https://lodash.com/)');
966
769
  * // => '\[lodash\]\(https://lodash\.com/\)'
967
- */
968
- function escapeRegExp(string) {
969
- string = lodash_es_toString(string);
970
- return (string && reHasRegExpChar.test(string))
971
- ? string.replace(reRegExpChar, '\\$&')
972
- : string;
770
+ */ function escapeRegExp(string) {
771
+ string = lodash_es_toString(string);
772
+ return string && reHasRegExpChar.test(string) ? string.replace(reRegExpChar, '\\$&') : string;
973
773
  }
974
-
975
- /* harmony default export */ const lodash_es_escapeRegExp = (escapeRegExp);
976
-
774
+ /* harmony default export */ const lodash_es_escapeRegExp = escapeRegExp;
977
775
  // EXTERNAL MODULE: ./node_modules/.pnpm/upath@2.0.1/node_modules/upath/build/code/upath.js
978
776
  var upath = __webpack_require__("./node_modules/.pnpm/upath@2.0.1/node_modules/upath/build/code/upath.js");
979
- var upath_default = /*#__PURE__*/__webpack_require__.n(upath);
980
- ;// CONCATENATED MODULE: ./src/utils.ts
981
-
982
-
983
-
984
-
985
-
986
- const isPathString = (test)=>external_node_path_namespaceObject["default"].posix.basename(test) !== test || external_node_path_namespaceObject["default"].win32.basename(test) !== test;
777
+ var upath_default = /*#__PURE__*/ __webpack_require__.n(upath);
987
778
  function getRealTemporaryDirectory() {
988
779
  let ret = null;
989
780
  try {
990
- ret = external_node_os_namespaceObject["default"].tmpdir();
991
- ret = external_node_fs_namespaceObject["default"].realpathSync(ret);
781
+ ret = __WEBPACK_EXTERNAL_MODULE_node_os__["default"].tmpdir();
782
+ ret = __WEBPACK_EXTERNAL_MODULE_node_fs__["default"].realpathSync(ret);
992
783
  } catch {}
993
784
  return ret;
994
785
  }
995
- const normalizeToPosixPath = (p)=>{
996
- return upath_default().normalizeSafe(external_node_path_namespaceObject["default"].normalize(p || '')).replace(/^([a-zA-Z]+):/, (_, m)=>`/${m.toLowerCase()}`);
997
- };
786
+ const normalizeToPosixPath = (p)=>upath_default().normalizeSafe(__WEBPACK_EXTERNAL_MODULE_node_path__["default"].normalize(p || '')).replace(/^([a-zA-Z]+):/, (_, m)=>`/${m.toLowerCase()}`);
998
787
  /**
999
788
  * Compile path string to RegExp.
1000
789
  * @note Only support posix path.
1001
790
  */ function compilePathMatcherRegExp(match) {
1002
- if (typeof match !== 'string') {
1003
- return match;
1004
- }
791
+ if ('string' != typeof match) return match;
1005
792
  const escaped = lodash_es_escapeRegExp(match);
1006
793
  return new RegExp(`(?<=\\W|^)${escaped}(?=\\W|$)`, 'g');
1007
794
  }
1008
795
  function splitPathString(str) {
1009
796
  return str.split(/[\\/]/);
1010
797
  }
1011
-
1012
- ;// CONCATENATED MODULE: ./src/applyMatcherReplacement.ts
1013
-
1014
-
1015
798
  function applyPathMatcher(matcher, str, options = {}) {
1016
799
  const regex = compilePathMatcherRegExp(matcher.match);
1017
800
  const replacer = (substring, ...args)=>{
1018
- if (options.minPartials && splitPathString(substring).length < options.minPartials) {
1019
- return substring;
1020
- }
1021
- const ret = typeof matcher.mark === 'string' ? matcher.mark : matcher.mark(substring, ...args);
801
+ if (options.minPartials && splitPathString(substring).length < options.minPartials) return substring;
802
+ const ret = 'string' == typeof matcher.mark ? matcher.mark : matcher.mark(substring, ...args);
1022
803
  return `<${snakeCase(ret).toUpperCase()}>`;
1023
804
  };
1024
805
  return str.replace(regex, replacer);
1025
806
  }
1026
807
  function applyMatcherReplacement(matchers, str, options = {}) {
1027
- return matchers.reduce((ret, matcher)=>{
1028
- return applyPathMatcher(matcher, ret, options);
1029
- }, str);
808
+ return matchers.reduce((ret, matcher)=>applyPathMatcher(matcher, ret, options), str);
1030
809
  }
1031
-
1032
- ;// CONCATENATED MODULE: ./src/createDefaultPathMatchers.ts
1033
-
1034
-
1035
- const createDefaultPathMatchers = ()=>{
1036
- const ret = [
1037
- {
1038
- match: /(?<=\/)(\.pnpm\/.+?\/node_modules)(?=\/)/g,
1039
- mark: 'pnpmInner'
1040
- }
1041
- ];
810
+ const createTmpDirMatchers = ()=>{
811
+ const ret = [];
1042
812
  const tmpdir = getRealTemporaryDirectory();
1043
813
  tmpdir && ret.push({
1044
814
  match: tmpdir,
1045
815
  mark: 'temp'
1046
816
  });
1047
817
  ret.push({
1048
- match: external_node_os_namespaceObject["default"].tmpdir(),
818
+ match: __WEBPACK_EXTERNAL_MODULE_node_os__["default"].tmpdir(),
1049
819
  mark: 'temp'
1050
820
  });
1051
821
  ret.push({
1052
- match: external_node_os_namespaceObject["default"].homedir(),
822
+ match: __WEBPACK_EXTERNAL_MODULE_node_os__["default"].homedir(),
1053
823
  mark: 'home'
1054
824
  });
1055
825
  return ret;
1056
826
  };
1057
-
1058
- ;// CONCATENATED MODULE: ./src/transformCodeToPosixPath.ts
1059
-
1060
827
  function transformCodeToPosixPath(code) {
1061
- return code.replace(// windows absolute path
1062
- // ignore http, https, file
1063
- /(?<![a-zA-Z])([a-zA-Z]:[\\/])([-\u4e00-\u9fa5\w\s.()~!@#$%^&()\[\]{}+=]+[\\/])*/g, (match, _diskName)=>{
1064
- return normalizeToPosixPath(match);
1065
- });
828
+ return code.replace(// ignore http, https, file
829
+ /(?<![a-zA-Z])([a-zA-Z]:[\\/])([-\u4e00-\u9fa5\w\s.()~!@#$%^&()\[\]{}+=]+[\\/])*/g, (match, _diskName)=>normalizeToPosixPath(match));
1066
830
  }
1067
-
1068
-
1069
- ;// CONCATENATED MODULE: ./src/createSnapshotSerializer.ts
1070
-
1071
-
1072
-
1073
-
1074
831
  function createSnapshotSerializer(options) {
1075
- const { cwd = process.cwd(), workspace = process.cwd(), replace: customMatchers = [] } = options || {};
1076
- const pathMatchers = [
1077
- {
832
+ const { cwd = process.cwd(), workspace = process.cwd(), replace: customMatchers = [], features = {} } = options || {};
833
+ const { replaceRoot = true, replaceWorkspace = true, replacePnpmInner = true, replaceTmpDir = true, ansiDoubleQuotes = true, addDoubleQuotes = true } = features;
834
+ function createPathMatchers() {
835
+ const pathMatchers = [];
836
+ if (replaceRoot) pathMatchers.push({
1078
837
  mark: 'root',
1079
838
  match: cwd
1080
- },
1081
- {
839
+ });
840
+ if (replaceWorkspace) pathMatchers.push({
1082
841
  mark: 'workspace',
1083
842
  match: workspace
1084
- },
1085
- ...customMatchers,
1086
- ...createDefaultPathMatchers()
1087
- ];
1088
- for (const matcher of pathMatchers){
1089
- if (typeof matcher.match === 'string') {
1090
- matcher.match = normalizeToPosixPath(matcher.match);
1091
- }
843
+ });
844
+ if (replacePnpmInner) pathMatchers.push({
845
+ match: /(?<=\/)(\.pnpm\/.+?\/node_modules)(?=\/)/g,
846
+ mark: 'pnpmInner'
847
+ });
848
+ if (replaceTmpDir) pathMatchers.push(...createTmpDirMatchers());
849
+ pathMatchers.push(...customMatchers);
850
+ return pathMatchers;
1092
851
  }
1093
- return {
1094
- pathMatchers,
852
+ const pathMatchers = createPathMatchers();
853
+ for (const matcher of pathMatchers)if ('string' == typeof matcher.match) matcher.match = normalizeToPosixPath(matcher.match);
854
+ const serializer = {
1095
855
  // match path-format string
1096
- test: (val)=>typeof val === 'string' && isPathString(val),
1097
- print: (val)=>{
856
+ test (val) {
857
+ return 'string' == typeof val;
858
+ },
859
+ serialize (val, _config, _indentation, _depth, _refs, _printer) {
1098
860
  const normalized = transformCodeToPosixPath(val);
1099
- const replaced = applyMatcherReplacement(pathMatchers, normalized).replace(/"/g, '\\"');
1100
- return `"${replaced}"`;
861
+ let replaced = applyMatcherReplacement(pathMatchers, normalized);
862
+ if (ansiDoubleQuotes) replaced = replaced.replace(/"/g, '\\"');
863
+ if (addDoubleQuotes) replaced = `"${replaced}"`;
864
+ return replaced;
1101
865
  }
1102
866
  };
867
+ return serializer;
1103
868
  }
1104
-
1105
- ;// CONCATENATED MODULE: ./src/index.ts
1106
-
1107
-
1108
869
  export { createSnapshotSerializer };