@mattisvensson/strapi-plugin-webatlas 0.2.5 → 0.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/dist/_chunks/{index-BjbgWZrg.mjs → index-BMQSVj43.mjs} +11 -7
  2. package/dist/_chunks/{index-B5ilx6DT.mjs → index-BMlQpLGa.mjs} +1 -1
  3. package/dist/_chunks/{index-BxuR805w.mjs → index-B_RPO9ty.mjs} +1 -1
  4. package/dist/_chunks/{index-kz3NL7uv.js → index-BvXbuF1E.js} +1 -1
  5. package/dist/_chunks/{index-B-ABW-o6.js → index-D4IHmUrH.js} +1 -1
  6. package/dist/_chunks/{index-B7vKSyAn.js → index-DIyVy-8D.js} +20 -14
  7. package/dist/_chunks/{index-CAjBRbaH.js → index-DrlYDm6a.js} +11 -7
  8. package/dist/_chunks/{index-D_OdzeaU.mjs → index-uoH_HJQr.mjs} +1 -1
  9. package/dist/admin/index.js +1 -1
  10. package/dist/admin/index.mjs +1 -1
  11. package/dist/admin/src/components/CMEditViewAside/Alias.d.ts +1 -1
  12. package/dist/server/index.js +12 -12
  13. package/dist/server/index.js.map +1 -1
  14. package/dist/server/index.mjs +12 -12
  15. package/dist/server/index.mjs.map +1 -1
  16. package/dist/server/src/content-types/index.d.ts +5 -5
  17. package/dist/server/src/content-types/navigation/index.d.ts +1 -1
  18. package/dist/server/src/content-types/navigation/schema.d.ts +1 -1
  19. package/dist/server/src/content-types/navitem/index.d.ts +3 -3
  20. package/dist/server/src/content-types/navitem/schema.d.ts +3 -3
  21. package/dist/server/src/content-types/route/index.d.ts +1 -1
  22. package/dist/server/src/content-types/route/schema.d.ts +1 -1
  23. package/dist/server/src/index.d.ts +5 -5
  24. package/package.json +1 -1
  25. package/dist/_chunks/EmptyBox-7D4LrvdH.mjs.map +0 -1
  26. package/dist/_chunks/EmptyBox-DT6D5gcf.js.map +0 -1
  27. package/dist/_chunks/_baseConvert-CDjccxdO.mjs +0 -859
  28. package/dist/_chunks/_baseConvert-CDjccxdO.mjs.map +0 -1
  29. package/dist/_chunks/_baseConvert-DVIhGQH6.js +0 -858
  30. package/dist/_chunks/_baseConvert-DVIhGQH6.js.map +0 -1
  31. package/dist/_chunks/en-B4KWt_jN.js.map +0 -1
  32. package/dist/_chunks/en-Byx4XI2L.mjs.map +0 -1
  33. package/dist/_chunks/index-1VNPebOd.mjs +0 -45
  34. package/dist/_chunks/index-1VNPebOd.mjs.map +0 -1
  35. package/dist/_chunks/index-B7vKSyAn.js.map +0 -1
  36. package/dist/_chunks/index-CPE1Ne_e.js +0 -4102
  37. package/dist/_chunks/index-CPE1Ne_e.js.map +0 -1
  38. package/dist/_chunks/index-ChOgKZGK.mjs +0 -9924
  39. package/dist/_chunks/index-ChOgKZGK.mjs.map +0 -1
  40. package/dist/_chunks/index-Cs_oxZfX.js +0 -17134
  41. package/dist/_chunks/index-CuMn96qA.js +0 -9924
  42. package/dist/_chunks/index-CuMn96qA.js.map +0 -1
  43. package/dist/_chunks/index-Djk_-mU6.js +0 -45
  44. package/dist/_chunks/index-Djk_-mU6.js.map +0 -1
  45. package/dist/_chunks/index-HHBjOGX5.mjs +0 -17130
  46. package/dist/_chunks/index-HHBjOGX5.mjs.map +0 -1
  47. package/dist/_chunks/index-yLrZAFVv.mjs +0 -4086
  48. package/dist/_chunks/index-yLrZAFVv.mjs.map +0 -1
  49. package/dist/admin/index.js.map +0 -1
  50. package/dist/admin/index.mjs.map +0 -1
@@ -1,858 +0,0 @@
1
- "use strict";
2
- var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
3
- function getDefaultExportFromCjs(x) {
4
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
5
- }
6
- function getAugmentedNamespace(n) {
7
- if (n.__esModule) return n;
8
- var f = n.default;
9
- if (typeof f == "function") {
10
- var a = function a2() {
11
- if (this instanceof a2) {
12
- return Reflect.construct(f, arguments, this.constructor);
13
- }
14
- return f.apply(this, arguments);
15
- };
16
- a.prototype = f.prototype;
17
- } else a = {};
18
- Object.defineProperty(a, "__esModule", { value: true });
19
- Object.keys(n).forEach(function(k) {
20
- var d = Object.getOwnPropertyDescriptor(n, k);
21
- Object.defineProperty(a, k, d.get ? d : {
22
- enumerable: true,
23
- get: function() {
24
- return n[k];
25
- }
26
- });
27
- });
28
- return a;
29
- }
30
- var _mapping = {};
31
- (function(exports2) {
32
- exports2.aliasToReal = {
33
- // Lodash aliases.
34
- "each": "forEach",
35
- "eachRight": "forEachRight",
36
- "entries": "toPairs",
37
- "entriesIn": "toPairsIn",
38
- "extend": "assignIn",
39
- "extendAll": "assignInAll",
40
- "extendAllWith": "assignInAllWith",
41
- "extendWith": "assignInWith",
42
- "first": "head",
43
- // Methods that are curried variants of others.
44
- "conforms": "conformsTo",
45
- "matches": "isMatch",
46
- "property": "get",
47
- // Ramda aliases.
48
- "__": "placeholder",
49
- "F": "stubFalse",
50
- "T": "stubTrue",
51
- "all": "every",
52
- "allPass": "overEvery",
53
- "always": "constant",
54
- "any": "some",
55
- "anyPass": "overSome",
56
- "apply": "spread",
57
- "assoc": "set",
58
- "assocPath": "set",
59
- "complement": "negate",
60
- "compose": "flowRight",
61
- "contains": "includes",
62
- "dissoc": "unset",
63
- "dissocPath": "unset",
64
- "dropLast": "dropRight",
65
- "dropLastWhile": "dropRightWhile",
66
- "equals": "isEqual",
67
- "identical": "eq",
68
- "indexBy": "keyBy",
69
- "init": "initial",
70
- "invertObj": "invert",
71
- "juxt": "over",
72
- "omitAll": "omit",
73
- "nAry": "ary",
74
- "path": "get",
75
- "pathEq": "matchesProperty",
76
- "pathOr": "getOr",
77
- "paths": "at",
78
- "pickAll": "pick",
79
- "pipe": "flow",
80
- "pluck": "map",
81
- "prop": "get",
82
- "propEq": "matchesProperty",
83
- "propOr": "getOr",
84
- "props": "at",
85
- "symmetricDifference": "xor",
86
- "symmetricDifferenceBy": "xorBy",
87
- "symmetricDifferenceWith": "xorWith",
88
- "takeLast": "takeRight",
89
- "takeLastWhile": "takeRightWhile",
90
- "unapply": "rest",
91
- "unnest": "flatten",
92
- "useWith": "overArgs",
93
- "where": "conformsTo",
94
- "whereEq": "isMatch",
95
- "zipObj": "zipObject"
96
- };
97
- exports2.aryMethod = {
98
- "1": [
99
- "assignAll",
100
- "assignInAll",
101
- "attempt",
102
- "castArray",
103
- "ceil",
104
- "create",
105
- "curry",
106
- "curryRight",
107
- "defaultsAll",
108
- "defaultsDeepAll",
109
- "floor",
110
- "flow",
111
- "flowRight",
112
- "fromPairs",
113
- "invert",
114
- "iteratee",
115
- "memoize",
116
- "method",
117
- "mergeAll",
118
- "methodOf",
119
- "mixin",
120
- "nthArg",
121
- "over",
122
- "overEvery",
123
- "overSome",
124
- "rest",
125
- "reverse",
126
- "round",
127
- "runInContext",
128
- "spread",
129
- "template",
130
- "trim",
131
- "trimEnd",
132
- "trimStart",
133
- "uniqueId",
134
- "words",
135
- "zipAll"
136
- ],
137
- "2": [
138
- "add",
139
- "after",
140
- "ary",
141
- "assign",
142
- "assignAllWith",
143
- "assignIn",
144
- "assignInAllWith",
145
- "at",
146
- "before",
147
- "bind",
148
- "bindAll",
149
- "bindKey",
150
- "chunk",
151
- "cloneDeepWith",
152
- "cloneWith",
153
- "concat",
154
- "conformsTo",
155
- "countBy",
156
- "curryN",
157
- "curryRightN",
158
- "debounce",
159
- "defaults",
160
- "defaultsDeep",
161
- "defaultTo",
162
- "delay",
163
- "difference",
164
- "divide",
165
- "drop",
166
- "dropRight",
167
- "dropRightWhile",
168
- "dropWhile",
169
- "endsWith",
170
- "eq",
171
- "every",
172
- "filter",
173
- "find",
174
- "findIndex",
175
- "findKey",
176
- "findLast",
177
- "findLastIndex",
178
- "findLastKey",
179
- "flatMap",
180
- "flatMapDeep",
181
- "flattenDepth",
182
- "forEach",
183
- "forEachRight",
184
- "forIn",
185
- "forInRight",
186
- "forOwn",
187
- "forOwnRight",
188
- "get",
189
- "groupBy",
190
- "gt",
191
- "gte",
192
- "has",
193
- "hasIn",
194
- "includes",
195
- "indexOf",
196
- "intersection",
197
- "invertBy",
198
- "invoke",
199
- "invokeMap",
200
- "isEqual",
201
- "isMatch",
202
- "join",
203
- "keyBy",
204
- "lastIndexOf",
205
- "lt",
206
- "lte",
207
- "map",
208
- "mapKeys",
209
- "mapValues",
210
- "matchesProperty",
211
- "maxBy",
212
- "meanBy",
213
- "merge",
214
- "mergeAllWith",
215
- "minBy",
216
- "multiply",
217
- "nth",
218
- "omit",
219
- "omitBy",
220
- "overArgs",
221
- "pad",
222
- "padEnd",
223
- "padStart",
224
- "parseInt",
225
- "partial",
226
- "partialRight",
227
- "partition",
228
- "pick",
229
- "pickBy",
230
- "propertyOf",
231
- "pull",
232
- "pullAll",
233
- "pullAt",
234
- "random",
235
- "range",
236
- "rangeRight",
237
- "rearg",
238
- "reject",
239
- "remove",
240
- "repeat",
241
- "restFrom",
242
- "result",
243
- "sampleSize",
244
- "some",
245
- "sortBy",
246
- "sortedIndex",
247
- "sortedIndexOf",
248
- "sortedLastIndex",
249
- "sortedLastIndexOf",
250
- "sortedUniqBy",
251
- "split",
252
- "spreadFrom",
253
- "startsWith",
254
- "subtract",
255
- "sumBy",
256
- "take",
257
- "takeRight",
258
- "takeRightWhile",
259
- "takeWhile",
260
- "tap",
261
- "throttle",
262
- "thru",
263
- "times",
264
- "trimChars",
265
- "trimCharsEnd",
266
- "trimCharsStart",
267
- "truncate",
268
- "union",
269
- "uniqBy",
270
- "uniqWith",
271
- "unset",
272
- "unzipWith",
273
- "without",
274
- "wrap",
275
- "xor",
276
- "zip",
277
- "zipObject",
278
- "zipObjectDeep"
279
- ],
280
- "3": [
281
- "assignInWith",
282
- "assignWith",
283
- "clamp",
284
- "differenceBy",
285
- "differenceWith",
286
- "findFrom",
287
- "findIndexFrom",
288
- "findLastFrom",
289
- "findLastIndexFrom",
290
- "getOr",
291
- "includesFrom",
292
- "indexOfFrom",
293
- "inRange",
294
- "intersectionBy",
295
- "intersectionWith",
296
- "invokeArgs",
297
- "invokeArgsMap",
298
- "isEqualWith",
299
- "isMatchWith",
300
- "flatMapDepth",
301
- "lastIndexOfFrom",
302
- "mergeWith",
303
- "orderBy",
304
- "padChars",
305
- "padCharsEnd",
306
- "padCharsStart",
307
- "pullAllBy",
308
- "pullAllWith",
309
- "rangeStep",
310
- "rangeStepRight",
311
- "reduce",
312
- "reduceRight",
313
- "replace",
314
- "set",
315
- "slice",
316
- "sortedIndexBy",
317
- "sortedLastIndexBy",
318
- "transform",
319
- "unionBy",
320
- "unionWith",
321
- "update",
322
- "xorBy",
323
- "xorWith",
324
- "zipWith"
325
- ],
326
- "4": [
327
- "fill",
328
- "setWith",
329
- "updateWith"
330
- ]
331
- };
332
- exports2.aryRearg = {
333
- "2": [1, 0],
334
- "3": [2, 0, 1],
335
- "4": [3, 2, 0, 1]
336
- };
337
- exports2.iterateeAry = {
338
- "dropRightWhile": 1,
339
- "dropWhile": 1,
340
- "every": 1,
341
- "filter": 1,
342
- "find": 1,
343
- "findFrom": 1,
344
- "findIndex": 1,
345
- "findIndexFrom": 1,
346
- "findKey": 1,
347
- "findLast": 1,
348
- "findLastFrom": 1,
349
- "findLastIndex": 1,
350
- "findLastIndexFrom": 1,
351
- "findLastKey": 1,
352
- "flatMap": 1,
353
- "flatMapDeep": 1,
354
- "flatMapDepth": 1,
355
- "forEach": 1,
356
- "forEachRight": 1,
357
- "forIn": 1,
358
- "forInRight": 1,
359
- "forOwn": 1,
360
- "forOwnRight": 1,
361
- "map": 1,
362
- "mapKeys": 1,
363
- "mapValues": 1,
364
- "partition": 1,
365
- "reduce": 2,
366
- "reduceRight": 2,
367
- "reject": 1,
368
- "remove": 1,
369
- "some": 1,
370
- "takeRightWhile": 1,
371
- "takeWhile": 1,
372
- "times": 1,
373
- "transform": 2
374
- };
375
- exports2.iterateeRearg = {
376
- "mapKeys": [1],
377
- "reduceRight": [1, 0]
378
- };
379
- exports2.methodRearg = {
380
- "assignInAllWith": [1, 0],
381
- "assignInWith": [1, 2, 0],
382
- "assignAllWith": [1, 0],
383
- "assignWith": [1, 2, 0],
384
- "differenceBy": [1, 2, 0],
385
- "differenceWith": [1, 2, 0],
386
- "getOr": [2, 1, 0],
387
- "intersectionBy": [1, 2, 0],
388
- "intersectionWith": [1, 2, 0],
389
- "isEqualWith": [1, 2, 0],
390
- "isMatchWith": [2, 1, 0],
391
- "mergeAllWith": [1, 0],
392
- "mergeWith": [1, 2, 0],
393
- "padChars": [2, 1, 0],
394
- "padCharsEnd": [2, 1, 0],
395
- "padCharsStart": [2, 1, 0],
396
- "pullAllBy": [2, 1, 0],
397
- "pullAllWith": [2, 1, 0],
398
- "rangeStep": [1, 2, 0],
399
- "rangeStepRight": [1, 2, 0],
400
- "setWith": [3, 1, 2, 0],
401
- "sortedIndexBy": [2, 1, 0],
402
- "sortedLastIndexBy": [2, 1, 0],
403
- "unionBy": [1, 2, 0],
404
- "unionWith": [1, 2, 0],
405
- "updateWith": [3, 1, 2, 0],
406
- "xorBy": [1, 2, 0],
407
- "xorWith": [1, 2, 0],
408
- "zipWith": [1, 2, 0]
409
- };
410
- exports2.methodSpread = {
411
- "assignAll": { "start": 0 },
412
- "assignAllWith": { "start": 0 },
413
- "assignInAll": { "start": 0 },
414
- "assignInAllWith": { "start": 0 },
415
- "defaultsAll": { "start": 0 },
416
- "defaultsDeepAll": { "start": 0 },
417
- "invokeArgs": { "start": 2 },
418
- "invokeArgsMap": { "start": 2 },
419
- "mergeAll": { "start": 0 },
420
- "mergeAllWith": { "start": 0 },
421
- "partial": { "start": 1 },
422
- "partialRight": { "start": 1 },
423
- "without": { "start": 1 },
424
- "zipAll": { "start": 0 }
425
- };
426
- exports2.mutate = {
427
- "array": {
428
- "fill": true,
429
- "pull": true,
430
- "pullAll": true,
431
- "pullAllBy": true,
432
- "pullAllWith": true,
433
- "pullAt": true,
434
- "remove": true,
435
- "reverse": true
436
- },
437
- "object": {
438
- "assign": true,
439
- "assignAll": true,
440
- "assignAllWith": true,
441
- "assignIn": true,
442
- "assignInAll": true,
443
- "assignInAllWith": true,
444
- "assignInWith": true,
445
- "assignWith": true,
446
- "defaults": true,
447
- "defaultsAll": true,
448
- "defaultsDeep": true,
449
- "defaultsDeepAll": true,
450
- "merge": true,
451
- "mergeAll": true,
452
- "mergeAllWith": true,
453
- "mergeWith": true
454
- },
455
- "set": {
456
- "set": true,
457
- "setWith": true,
458
- "unset": true,
459
- "update": true,
460
- "updateWith": true
461
- }
462
- };
463
- exports2.realToAlias = function() {
464
- var hasOwnProperty = Object.prototype.hasOwnProperty, object = exports2.aliasToReal, result = {};
465
- for (var key in object) {
466
- var value = object[key];
467
- if (hasOwnProperty.call(result, value)) {
468
- result[value].push(key);
469
- } else {
470
- result[value] = [key];
471
- }
472
- }
473
- return result;
474
- }();
475
- exports2.remap = {
476
- "assignAll": "assign",
477
- "assignAllWith": "assignWith",
478
- "assignInAll": "assignIn",
479
- "assignInAllWith": "assignInWith",
480
- "curryN": "curry",
481
- "curryRightN": "curryRight",
482
- "defaultsAll": "defaults",
483
- "defaultsDeepAll": "defaultsDeep",
484
- "findFrom": "find",
485
- "findIndexFrom": "findIndex",
486
- "findLastFrom": "findLast",
487
- "findLastIndexFrom": "findLastIndex",
488
- "getOr": "get",
489
- "includesFrom": "includes",
490
- "indexOfFrom": "indexOf",
491
- "invokeArgs": "invoke",
492
- "invokeArgsMap": "invokeMap",
493
- "lastIndexOfFrom": "lastIndexOf",
494
- "mergeAll": "merge",
495
- "mergeAllWith": "mergeWith",
496
- "padChars": "pad",
497
- "padCharsEnd": "padEnd",
498
- "padCharsStart": "padStart",
499
- "propertyOf": "get",
500
- "rangeStep": "range",
501
- "rangeStepRight": "rangeRight",
502
- "restFrom": "rest",
503
- "spreadFrom": "spread",
504
- "trimChars": "trim",
505
- "trimCharsEnd": "trimEnd",
506
- "trimCharsStart": "trimStart",
507
- "zipAll": "zip"
508
- };
509
- exports2.skipFixed = {
510
- "castArray": true,
511
- "flow": true,
512
- "flowRight": true,
513
- "iteratee": true,
514
- "mixin": true,
515
- "rearg": true,
516
- "runInContext": true
517
- };
518
- exports2.skipRearg = {
519
- "add": true,
520
- "assign": true,
521
- "assignIn": true,
522
- "bind": true,
523
- "bindKey": true,
524
- "concat": true,
525
- "difference": true,
526
- "divide": true,
527
- "eq": true,
528
- "gt": true,
529
- "gte": true,
530
- "isEqual": true,
531
- "lt": true,
532
- "lte": true,
533
- "matchesProperty": true,
534
- "merge": true,
535
- "multiply": true,
536
- "overArgs": true,
537
- "partial": true,
538
- "partialRight": true,
539
- "propertyOf": true,
540
- "random": true,
541
- "range": true,
542
- "rangeRight": true,
543
- "subtract": true,
544
- "zip": true,
545
- "zipObject": true,
546
- "zipObjectDeep": true
547
- };
548
- })(_mapping);
549
- var placeholder = {};
550
- var mapping = _mapping, fallbackHolder = placeholder;
551
- var push = Array.prototype.push;
552
- function baseArity(func, n) {
553
- return n == 2 ? function(a, b) {
554
- return func.apply(void 0, arguments);
555
- } : function(a) {
556
- return func.apply(void 0, arguments);
557
- };
558
- }
559
- function baseAry(func, n) {
560
- return n == 2 ? function(a, b) {
561
- return func(a, b);
562
- } : function(a) {
563
- return func(a);
564
- };
565
- }
566
- function cloneArray(array) {
567
- var length = array ? array.length : 0, result = Array(length);
568
- while (length--) {
569
- result[length] = array[length];
570
- }
571
- return result;
572
- }
573
- function createCloner(func) {
574
- return function(object) {
575
- return func({}, object);
576
- };
577
- }
578
- function flatSpread(func, start) {
579
- return function() {
580
- var length = arguments.length, lastIndex = length - 1, args = Array(length);
581
- while (length--) {
582
- args[length] = arguments[length];
583
- }
584
- var array = args[start], otherArgs = args.slice(0, start);
585
- if (array) {
586
- push.apply(otherArgs, array);
587
- }
588
- if (start != lastIndex) {
589
- push.apply(otherArgs, args.slice(start + 1));
590
- }
591
- return func.apply(this, otherArgs);
592
- };
593
- }
594
- function wrapImmutable(func, cloner) {
595
- return function() {
596
- var length = arguments.length;
597
- if (!length) {
598
- return;
599
- }
600
- var args = Array(length);
601
- while (length--) {
602
- args[length] = arguments[length];
603
- }
604
- var result = args[0] = cloner.apply(void 0, args);
605
- func.apply(void 0, args);
606
- return result;
607
- };
608
- }
609
- function baseConvert(util, name, func, options) {
610
- var isLib = typeof name == "function", isObj = name === Object(name);
611
- if (isObj) {
612
- options = func;
613
- func = name;
614
- name = void 0;
615
- }
616
- if (func == null) {
617
- throw new TypeError();
618
- }
619
- options || (options = {});
620
- var config = {
621
- "cap": "cap" in options ? options.cap : true,
622
- "curry": "curry" in options ? options.curry : true,
623
- "fixed": "fixed" in options ? options.fixed : true,
624
- "immutable": "immutable" in options ? options.immutable : true,
625
- "rearg": "rearg" in options ? options.rearg : true
626
- };
627
- var defaultHolder = isLib ? func : fallbackHolder, forceCurry = "curry" in options && options.curry, forceFixed = "fixed" in options && options.fixed, forceRearg = "rearg" in options && options.rearg, pristine = isLib ? func.runInContext() : void 0;
628
- var helpers = isLib ? func : {
629
- "ary": util.ary,
630
- "assign": util.assign,
631
- "clone": util.clone,
632
- "curry": util.curry,
633
- "forEach": util.forEach,
634
- "isArray": util.isArray,
635
- "isError": util.isError,
636
- "isFunction": util.isFunction,
637
- "isWeakMap": util.isWeakMap,
638
- "iteratee": util.iteratee,
639
- "keys": util.keys,
640
- "rearg": util.rearg,
641
- "toInteger": util.toInteger,
642
- "toPath": util.toPath
643
- };
644
- var ary = helpers.ary, assign = helpers.assign, clone = helpers.clone, curry = helpers.curry, each = helpers.forEach, isArray = helpers.isArray, isError = helpers.isError, isFunction = helpers.isFunction, isWeakMap = helpers.isWeakMap, keys = helpers.keys, rearg = helpers.rearg, toInteger = helpers.toInteger, toPath = helpers.toPath;
645
- var aryMethodKeys = keys(mapping.aryMethod);
646
- var wrappers = {
647
- "castArray": function(castArray) {
648
- return function() {
649
- var value = arguments[0];
650
- return isArray(value) ? castArray(cloneArray(value)) : castArray.apply(void 0, arguments);
651
- };
652
- },
653
- "iteratee": function(iteratee) {
654
- return function() {
655
- var func2 = arguments[0], arity = arguments[1], result = iteratee(func2, arity), length = result.length;
656
- if (config.cap && typeof arity == "number") {
657
- arity = arity > 2 ? arity - 2 : 1;
658
- return length && length <= arity ? result : baseAry(result, arity);
659
- }
660
- return result;
661
- };
662
- },
663
- "mixin": function(mixin) {
664
- return function(source) {
665
- var func2 = this;
666
- if (!isFunction(func2)) {
667
- return mixin(func2, Object(source));
668
- }
669
- var pairs2 = [];
670
- each(keys(source), function(key) {
671
- if (isFunction(source[key])) {
672
- pairs2.push([key, func2.prototype[key]]);
673
- }
674
- });
675
- mixin(func2, Object(source));
676
- each(pairs2, function(pair) {
677
- var value = pair[1];
678
- if (isFunction(value)) {
679
- func2.prototype[pair[0]] = value;
680
- } else {
681
- delete func2.prototype[pair[0]];
682
- }
683
- });
684
- return func2;
685
- };
686
- },
687
- "nthArg": function(nthArg) {
688
- return function(n) {
689
- var arity = n < 0 ? 1 : toInteger(n) + 1;
690
- return curry(nthArg(n), arity);
691
- };
692
- },
693
- "rearg": function(rearg2) {
694
- return function(func2, indexes) {
695
- var arity = indexes ? indexes.length : 0;
696
- return curry(rearg2(func2, indexes), arity);
697
- };
698
- },
699
- "runInContext": function(runInContext) {
700
- return function(context) {
701
- return baseConvert(util, runInContext(context), options);
702
- };
703
- }
704
- };
705
- function castCap(name2, func2) {
706
- if (config.cap) {
707
- var indexes = mapping.iterateeRearg[name2];
708
- if (indexes) {
709
- return iterateeRearg(func2, indexes);
710
- }
711
- var n = !isLib && mapping.iterateeAry[name2];
712
- if (n) {
713
- return iterateeAry(func2, n);
714
- }
715
- }
716
- return func2;
717
- }
718
- function castCurry(name2, func2, n) {
719
- return forceCurry || config.curry && n > 1 ? curry(func2, n) : func2;
720
- }
721
- function castFixed(name2, func2, n) {
722
- if (config.fixed && (forceFixed || !mapping.skipFixed[name2])) {
723
- var data = mapping.methodSpread[name2], start = data && data.start;
724
- return start === void 0 ? ary(func2, n) : flatSpread(func2, start);
725
- }
726
- return func2;
727
- }
728
- function castRearg(name2, func2, n) {
729
- return config.rearg && n > 1 && (forceRearg || !mapping.skipRearg[name2]) ? rearg(func2, mapping.methodRearg[name2] || mapping.aryRearg[n]) : func2;
730
- }
731
- function cloneByPath(object, path) {
732
- path = toPath(path);
733
- var index = -1, length = path.length, lastIndex = length - 1, result = clone(Object(object)), nested = result;
734
- while (nested != null && ++index < length) {
735
- var key = path[index], value = nested[key];
736
- if (value != null && !(isFunction(value) || isError(value) || isWeakMap(value))) {
737
- nested[key] = clone(index == lastIndex ? value : Object(value));
738
- }
739
- nested = nested[key];
740
- }
741
- return result;
742
- }
743
- function convertLib(options2) {
744
- return _.runInContext.convert(options2)(void 0);
745
- }
746
- function createConverter(name2, func2) {
747
- var realName = mapping.aliasToReal[name2] || name2, methodName = mapping.remap[realName] || realName, oldOptions = options;
748
- return function(options2) {
749
- var newUtil = isLib ? pristine : helpers, newFunc = isLib ? pristine[methodName] : func2, newOptions = assign(assign({}, oldOptions), options2);
750
- return baseConvert(newUtil, realName, newFunc, newOptions);
751
- };
752
- }
753
- function iterateeAry(func2, n) {
754
- return overArg(func2, function(func3) {
755
- return typeof func3 == "function" ? baseAry(func3, n) : func3;
756
- });
757
- }
758
- function iterateeRearg(func2, indexes) {
759
- return overArg(func2, function(func3) {
760
- var n = indexes.length;
761
- return baseArity(rearg(baseAry(func3, n), indexes), n);
762
- });
763
- }
764
- function overArg(func2, transform) {
765
- return function() {
766
- var length = arguments.length;
767
- if (!length) {
768
- return func2();
769
- }
770
- var args = Array(length);
771
- while (length--) {
772
- args[length] = arguments[length];
773
- }
774
- var index = config.rearg ? 0 : length - 1;
775
- args[index] = transform(args[index]);
776
- return func2.apply(void 0, args);
777
- };
778
- }
779
- function wrap(name2, func2, placeholder2) {
780
- var result, realName = mapping.aliasToReal[name2] || name2, wrapped = func2, wrapper = wrappers[realName];
781
- if (wrapper) {
782
- wrapped = wrapper(func2);
783
- } else if (config.immutable) {
784
- if (mapping.mutate.array[realName]) {
785
- wrapped = wrapImmutable(func2, cloneArray);
786
- } else if (mapping.mutate.object[realName]) {
787
- wrapped = wrapImmutable(func2, createCloner(func2));
788
- } else if (mapping.mutate.set[realName]) {
789
- wrapped = wrapImmutable(func2, cloneByPath);
790
- }
791
- }
792
- each(aryMethodKeys, function(aryKey) {
793
- each(mapping.aryMethod[aryKey], function(otherName) {
794
- if (realName == otherName) {
795
- var data = mapping.methodSpread[realName], afterRearg = data && data.afterRearg;
796
- result = afterRearg ? castFixed(realName, castRearg(realName, wrapped, aryKey), aryKey) : castRearg(realName, castFixed(realName, wrapped, aryKey), aryKey);
797
- result = castCap(realName, result);
798
- result = castCurry(realName, result, aryKey);
799
- return false;
800
- }
801
- });
802
- return !result;
803
- });
804
- result || (result = wrapped);
805
- if (result == func2) {
806
- result = forceCurry ? curry(result, 1) : function() {
807
- return func2.apply(this, arguments);
808
- };
809
- }
810
- result.convert = createConverter(realName, func2);
811
- result.placeholder = func2.placeholder = placeholder2;
812
- return result;
813
- }
814
- if (!isObj) {
815
- return wrap(name, func, defaultHolder);
816
- }
817
- var _ = func;
818
- var pairs = [];
819
- each(aryMethodKeys, function(aryKey) {
820
- each(mapping.aryMethod[aryKey], function(key) {
821
- var func2 = _[mapping.remap[key] || key];
822
- if (func2) {
823
- pairs.push([key, wrap(key, func2, _)]);
824
- }
825
- });
826
- });
827
- each(keys(_), function(key) {
828
- var func2 = _[key];
829
- if (typeof func2 == "function") {
830
- var length = pairs.length;
831
- while (length--) {
832
- if (pairs[length][0] == key) {
833
- return;
834
- }
835
- }
836
- func2.convert = createConverter(key, func2);
837
- pairs.push([key, func2]);
838
- }
839
- });
840
- each(pairs, function(pair) {
841
- _[pair[0]] = pair[1];
842
- });
843
- _.convert = convertLib;
844
- _.placeholder = _;
845
- each(keys(_), function(key) {
846
- each(mapping.realToAlias[key] || [], function(alias) {
847
- _[alias] = _[key];
848
- });
849
- });
850
- return _;
851
- }
852
- var _baseConvert = baseConvert;
853
- exports._baseConvert = _baseConvert;
854
- exports.commonjsGlobal = commonjsGlobal;
855
- exports.getAugmentedNamespace = getAugmentedNamespace;
856
- exports.getDefaultExportFromCjs = getDefaultExportFromCjs;
857
- exports.placeholder = placeholder;
858
- //# sourceMappingURL=_baseConvert-DVIhGQH6.js.map