@mattisvensson/strapi-plugin-webatlas 0.2.0 → 0.2.1

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