UNPKG

37.5 kBJavaScriptView Raw
1'use strict';
2
3var _ = require('lodash'),
4 util = require('./util'),
5 Hash = util.Hash;
6
7/*----------------------------------------------------------------------------*/
8
9/** Used to map aliases to their real names. */
10exports.aliasToReal = new Hash({
11 'commit': 'wrapperCommit',
12 'each': 'forEach',
13 'eachRight': 'forEachRight',
14 'entries': 'toPairs',
15 'entriesIn': 'toPairsIn',
16 'extend': 'assignIn',
17 'extendWith': 'assignInWith',
18 'first': 'head',
19 'next': 'wrapperNext',
20 'plant': 'wrapperPlant',
21 'toIterator': 'wrapperToIterator',
22 'toJSON': 'wrapperValue',
23 'valueOf': 'wrapperValue',
24 'value': 'wrapperValue',
25 'wrapperLodash': 'lodash'
26});
27
28/** Used to track the category of identifiers. */
29exports.category = new Hash({
30 'Array': [
31 'chunk',
32 'compact',
33 'concat',
34 'difference',
35 'differenceBy',
36 'differenceWith',
37 'drop',
38 'dropRight',
39 'dropRightWhile',
40 'dropWhile',
41 'fill',
42 'findIndex',
43 'findLastIndex',
44 'flatten',
45 'flattenDeep',
46 'flattenDepth',
47 'fromPairs',
48 'head',
49 'indexOf',
50 'initial',
51 'intersection',
52 'intersectionBy',
53 'intersectionWith',
54 'join',
55 'last',
56 'lastIndexOf',
57 'nth',
58 'pull',
59 'pullAll',
60 'pullAllBy',
61 'pullAllWith',
62 'pullAt',
63 'remove',
64 'reverse',
65 'slice',
66 'sortedIndex',
67 'sortedIndexBy',
68 'sortedIndexOf',
69 'sortedLastIndex',
70 'sortedLastIndexBy',
71 'sortedLastIndexOf',
72 'sortedUniq',
73 'sortedUniqBy',
74 'tail',
75 'take',
76 'takeRight',
77 'takeRightWhile',
78 'takeWhile',
79 'union',
80 'unionBy',
81 'unionWith',
82 'uniq',
83 'uniqBy',
84 'uniqWith',
85 'unzip',
86 'unzipWith',
87 'without',
88 'xor',
89 'xorBy',
90 'xorWith',
91 'zip',
92 'zipObject',
93 'zipObjectDeep',
94 'zipWith'
95 ],
96 'Collection': [
97 'countBy',
98 'every',
99 'filter',
100 'find',
101 'findLast',
102 'flatMap',
103 'flatMapDeep',
104 'flatMapDepth',
105 'forEach',
106 'forEachRight',
107 'groupBy',
108 'includes',
109 'invokeMap',
110 'keyBy',
111 'map',
112 'orderBy',
113 'partition',
114 'reduce',
115 'reduceRight',
116 'reject',
117 'sample',
118 'sampleSize',
119 'shuffle',
120 'size',
121 'some',
122 'sortBy'
123 ],
124 'Date': [
125 'now'
126 ],
127 'Function': [
128 'after',
129 'ary',
130 'before',
131 'bind',
132 'bindKey',
133 'curry',
134 'curryRight',
135 'debounce',
136 'defer',
137 'delay',
138 'flip',
139 'memoize',
140 'negate',
141 'once',
142 'overArgs',
143 'partial',
144 'partialRight',
145 'rearg',
146 'rest',
147 'spread',
148 'throttle',
149 'unary',
150 'wrap'
151 ],
152 'Lang': [
153 'castArray',
154 'clone',
155 'cloneDeep',
156 'cloneDeepWith',
157 'cloneWith',
158 'conformsTo',
159 'eq',
160 'gt',
161 'gte',
162 'isArguments',
163 'isArray',
164 'isArrayBuffer',
165 'isArrayLike',
166 'isArrayLikeObject',
167 'isBoolean',
168 'isBuffer',
169 'isDate',
170 'isElement',
171 'isEmpty',
172 'isEqual',
173 'isEqualWith',
174 'isError',
175 'isFinite',
176 'isFunction',
177 'isInteger',
178 'isLength',
179 'isMap',
180 'isMatch',
181 'isMatchWith',
182 'isNaN',
183 'isNative',
184 'isNil',
185 'isNull',
186 'isNumber',
187 'isObject',
188 'isObjectLike',
189 'isPlainObject',
190 'isRegExp',
191 'isSafeInteger',
192 'isSet',
193 'isString',
194 'isSymbol',
195 'isTypedArray',
196 'isUndefined',
197 'isWeakMap',
198 'isWeakSet',
199 'lt',
200 'lte',
201 'toArray',
202 'toFinite',
203 'toInteger',
204 'toLength',
205 'toNumber',
206 'toPlainObject',
207 'toSafeInteger',
208 'toString'
209 ],
210 'Math': [
211 'add',
212 'ceil',
213 'divide',
214 'floor',
215 'max',
216 'maxBy',
217 'mean',
218 'meanBy',
219 'min',
220 'minBy',
221 'multiply',
222 'round',
223 'subtract',
224 'sum',
225 'sumBy'
226 ],
227 'Number': [
228 'clamp',
229 'random',
230 'inRange'
231 ],
232 'Object': [
233 'assign',
234 'assignIn',
235 'assignInWith',
236 'assignWith',
237 'at',
238 'create',
239 'defaults',
240 'defaultsDeep',
241 'findKey',
242 'findLastKey',
243 'forIn',
244 'forInRight',
245 'forOwn',
246 'forOwnRight',
247 'functions',
248 'functionsIn',
249 'get',
250 'has',
251 'hasIn',
252 'invert',
253 'invertBy',
254 'invoke',
255 'keys',
256 'keysIn',
257 'mapKeys',
258 'mapValues',
259 'merge',
260 'mergeWith',
261 'omit',
262 'omitBy',
263 'pick',
264 'pickBy',
265 'result',
266 'set',
267 'setWith',
268 'toPairs',
269 'toPairsIn',
270 'transform',
271 'unset',
272 'update',
273 'updateWith',
274 'values',
275 'valuesIn'
276 ],
277 'Seq': [
278 'chain',
279 'lodash',
280 'tap',
281 'thru',
282 'wrapperAt',
283 'wrapperChain',
284 'wrapperCommit',
285 'wrapperNext',
286 'wrapperPlant',
287 'wrapperReverse',
288 'wrapperToIterator',
289 'wrapperValue'
290 ],
291 'String': [
292 'camelCase',
293 'capitalize',
294 'deburr',
295 'endsWith',
296 'escape',
297 'escapeRegExp',
298 'kebabCase',
299 'lowerCase',
300 'lowerFirst',
301 'pad',
302 'padEnd',
303 'padStart',
304 'parseInt',
305 'repeat',
306 'replace',
307 'snakeCase',
308 'split',
309 'startCase',
310 'startsWith',
311 'template',
312 'templateSettings',
313 'toLower',
314 'toUpper',
315 'trim',
316 'trimEnd',
317 'trimStart',
318 'truncate',
319 'unescape',
320 'upperCase',
321 'upperFirst',
322 'words'
323 ],
324 'Util': [
325 'attempt',
326 'bindAll',
327 'cond',
328 'conforms',
329 'constant',
330 'defaultTo',
331 'flow',
332 'flowRight',
333 'identity',
334 'iteratee',
335 'matches',
336 'matchesProperty',
337 'method',
338 'methodOf',
339 'mixin',
340 'noConflict',
341 'noop',
342 'nthArg',
343 'over',
344 'overEvery',
345 'overSome',
346 'property',
347 'propertyOf',
348 'range',
349 'rangeRight',
350 'runInContext',
351 'stubArray',
352 'stubFalse',
353 'stubObject',
354 'stubString',
355 'stubTrue',
356 'times',
357 'toPath',
358 'uniqueId'
359 ]
360});
361
362/* Used to map categories to their dependency name. */
363exports.categoryToDepName = new Hash({
364 'Array': 'array',
365 'Collection': 'collection',
366 'Date': 'date',
367 'Function': 'func',
368 'Lang': 'lang',
369 'Math': 'math',
370 'Number': 'number',
371 'Object': 'object',
372 'Seq': 'seq',
373 'String': 'string',
374 'Util': 'util'
375});
376
377/* Used to force referencing identifers by their alias. */
378exports.forceAlias = new Hash({
379 'lodash': 'wrapperLodash',
380 'wrapperCommit': 'commit',
381 'wrapperNext': 'next',
382 'wrapperPlant': 'plant',
383 'wrapperToIterator': 'toIterator'
384});
385
386/** Used to track function dependencies. */
387exports.funcDep = new Hash({
388
389 // Dependencies of variables.
390 'metaMap': ['WeakMap'],
391
392 // Dependencies of built-ins.
393 'DataView': ['getNative'],
394 'Map': ['getNative'],
395 'Promise': ['getNative'],
396 'Set': ['getNative'],
397 'Symbol': [],
398 'Uint8Array': [],
399 'WeakMap': ['getNative'],
400
401 // Dependencies of lodash properties.
402 'templateSettings': ['escape'],
403
404 // Dependencies of the main module.
405 'main': ['lodash', 'Symbol'],
406
407 // Dependencies of `Hash` functions.
408 'Hash': ['hashClear', 'hashDelete', 'hashGet', 'hashHas', 'hashSet'],
409 'hashClear': ['nativeCreate'],
410 'hashDelete': [],
411 'hashGet': ['nativeCreate'],
412 'hashHas': ['nativeCreate'],
413 'hashSet': ['nativeCreate'],
414
415 // Dependencies of `LazyWrapper` functions.
416 'LazyWrapper': ['baseCreate', 'baseLodash'],
417 'lazyClone': ['copyArray', 'LazyWrapper'],
418 'lazyReverse': ['LazyWrapper'],
419 'lazyValue': ['baseWrapperValue', 'getView', 'isArray'],
420
421 // Dependencies of `LodashWrapper` functions.
422 'LodashWrapper': ['baseCreate', 'baseLodash'],
423 'wrapperAt': ['baseAt', 'flatRest', 'isIndex', 'LazyWrapper', 'LodashWrapper', 'thru'],
424 'wrapperChain': ['chain'],
425 'wrapperClone': ['copyArray', 'LazyWrapper', 'LodashWrapper'],
426 'wrapperCommit': ['LodashWrapper'],
427 'wrapperNext': ['toArray'],
428 'wrapperPlant': ['baseLodash', 'wrapperClone'],
429 'wrapperReverse': ['LazyWrapper', 'LodashWrapper', 'reverse', 'thru'],
430 'wrapperToIterator': [],
431 'wrapperValue': ['baseWrapperValue'],
432
433 // Dependencies of `ListCache` functions.
434 'ListCache': ['listCacheClear', 'listCacheDelete', 'listCacheGet', 'listCacheHas', 'listCacheSet'],
435 'listCacheClear': [],
436 'listCacheDelete': ['assocIndexOf'],
437 'listCacheGet': ['assocIndexOf'],
438 'listCacheHas': ['assocIndexOf'],
439 'listCacheSet': ['assocIndexOf'],
440
441 // Dependencies of `MapCache` functions.
442 'MapCache': ['mapCacheClear', 'mapCacheDelete', 'mapCacheGet', 'mapCacheHas', 'mapCacheSet'],
443 'mapCacheClear': ['Hash', 'ListCache', 'Map'],
444 'mapCacheDelete': ['getMapData'],
445 'mapCacheGet': ['getMapData'],
446 'mapCacheHas': ['getMapData'],
447 'mapCacheSet': ['getMapData'],
448
449 // Dependencies of `SetCache` functions.
450 'SetCache': ['MapCache', 'setCacheAdd', 'setCacheHas'],
451 'setCacheAdd': [],
452 'setCacheHas': [],
453
454 // Dependencies of `Stack` functions.
455 'Stack': ['ListCache', 'stackClear', 'stackDelete', 'stackGet', 'stackHas', 'stackSet'],
456 'stackClear': ['ListCache'],
457 'stackDelete': [],
458 'stackGet': [],
459 'stackHas': [],
460 'stackSet': ['ListCache', 'Map', 'MapCache'],
461
462 // Dependencies of lodash methods.
463 'add': ['createMathOperation'],
464 'after': ['toInteger'],
465 'ary': ['createWrap'],
466 'assign': ['assignValue', 'copyObject', 'createAssigner', 'isArrayLike', 'isPrototype', 'keys'],
467 'assignIn': ['copyObject', 'createAssigner', 'keysIn'],
468 'assignInWith': ['copyObject', 'createAssigner', 'keysIn'],
469 'assignWith': ['copyObject', 'createAssigner', 'keys'],
470 'at': ['baseAt', 'flatRest'],
471 'attempt': ['apply', 'baseRest', 'isError'],
472 'before': ['toInteger'],
473 'bind': ['baseRest', 'createWrap', 'getHolder', 'replaceHolders'],
474 'bindAll': ['arrayEach', 'baseAssignValue', 'bind', 'flatRest', 'toKey'],
475 'bindKey': ['baseRest', 'createWrap', 'getHolder', 'replaceHolders'],
476 'camelCase': ['capitalize', 'createCompounder'],
477 'capitalize': ['toString', 'upperFirst'],
478 'castArray': ['isArray'],
479 'ceil': ['createRound'],
480 'chain': ['lodash'],
481 'chunk': ['baseSlice', 'isIterateeCall', 'toInteger'],
482 'clamp': ['baseClamp', 'toNumber'],
483 'clone': ['baseClone'],
484 'cloneDeep': ['baseClone'],
485 'cloneDeepWith': ['baseClone'],
486 'cloneWith': ['baseClone'],
487 'compact': [],
488 'concat': ['arrayPush', 'baseFlatten', 'copyArray', 'isArray'],
489 'cond': ['apply', 'arrayMap', 'baseRest', 'getIteratee'],
490 'conforms': ['baseClone', 'baseConforms'],
491 'conformsTo': ['baseConformsTo', 'keys'],
492 'constant': [],
493 'countBy': ['baseAssignValue', 'createAggregator'],
494 'create': ['baseAssign', 'baseCreate'],
495 'curry': ['createWrap'],
496 'curryRight': ['createWrap'],
497 'debounce': ['clearTimeout', 'isObject', 'now', 'setTimeout', 'toNumber'],
498 'deburr': ['deburrLetter', 'toString'],
499 'defaults': ['apply', 'assignInDefaults', 'assignInWith', 'baseRest'],
500 'defaultsDeep': ['apply', 'baseRest', 'mergeDefaults', 'mergeWith'],
501 'defaultTo': [],
502 'defer': ['baseDelay', 'baseRest'],
503 'delay': ['baseDelay', 'baseRest', 'toNumber'],
504 'difference': ['baseDifference', 'baseFlatten', 'baseRest', 'isArrayLikeObject'],
505 'differenceBy': ['baseDifference', 'baseFlatten', 'baseRest', 'getIteratee', 'isArrayLikeObject', 'last'],
506 'differenceWith': ['baseDifference', 'baseFlatten', 'baseRest', 'isArrayLikeObject', 'last'],
507 'divide': ['createMathOperation'],
508 'drop': ['baseSlice', 'toInteger'],
509 'dropRight': ['baseSlice', 'toInteger'],
510 'dropRightWhile': ['baseWhile', 'getIteratee'],
511 'dropWhile': ['baseWhile', 'getIteratee'],
512 'endsWith': ['baseClamp', 'baseToString', 'toInteger', 'toString'],
513 'eq': [],
514 'escape': ['escapeHtmlChar', 'toString'],
515 'escapeRegExp': ['toString'],
516 'every': ['arrayEvery', 'baseEvery', 'getIteratee', 'isArray', 'isIterateeCall'],
517 'fill': ['baseFill', 'isIterateeCall'],
518 'filter': ['arrayFilter', 'baseFilter', 'getIteratee', 'isArray'],
519 'find': ['createFind', 'findIndex'],
520 'findIndex': ['baseFindIndex', 'getIteratee', 'toInteger'],
521 'findKey': ['baseFindKey', 'baseForOwn', 'getIteratee'],
522 'findLast': ['createFind', 'findLastIndex'],
523 'findLastIndex': ['baseFindIndex', 'getIteratee', 'toInteger'],
524 'findLastKey': ['baseFindKey', 'baseForOwnRight', 'getIteratee'],
525 'flatMap': ['baseFlatten', 'map'],
526 'flatMapDeep': ['baseFlatten', 'map'],
527 'flatMapDepth': ['baseFlatten', 'map', 'toInteger'],
528 'flatten': ['baseFlatten'],
529 'flattenDeep': ['baseFlatten'],
530 'flattenDepth': ['baseFlatten', 'toInteger'],
531 'flip': ['createWrap'],
532 'floor': ['createRound'],
533 'flow': ['createFlow'],
534 'flowRight': ['createFlow'],
535 'forEach': ['arrayEach', 'baseEach', 'getIteratee', 'isArray'],
536 'forEachRight': ['arrayEachRight', 'baseEachRight', 'getIteratee', 'isArray'],
537 'forIn': ['baseFor', 'getIteratee', 'keysIn'],
538 'forInRight': ['baseForRight', 'getIteratee', 'keysIn'],
539 'forOwn': ['baseForOwn', 'getIteratee'],
540 'forOwnRight': ['baseForOwnRight', 'getIteratee'],
541 'fromPairs': [],
542 'functions': ['baseFunctions', 'keys'],
543 'functionsIn': ['baseFunctions', 'keysIn'],
544 'get': ['baseGet'],
545 'groupBy': ['baseAssignValue', 'createAggregator'],
546 'gt': ['baseGt', 'createRelationalOperation'],
547 'gte': ['createRelationalOperation'],
548 'has': ['baseHas', 'hasPath'],
549 'hasIn': ['baseHasIn', 'hasPath'],
550 'head': [],
551 'identity': [],
552 'includes': ['baseIndexOf', 'isArrayLike', 'isString', 'toInteger', 'values'],
553 'indexOf': ['baseIndexOf', 'toInteger'],
554 'initial': ['baseSlice'],
555 'inRange': ['baseInRange', 'toFinite', 'toNumber'],
556 'intersection': ['arrayMap', 'baseIntersection', 'baseRest', 'castArrayLikeObject'],
557 'intersectionBy': ['arrayMap', 'baseIntersection', 'baseRest', 'castArrayLikeObject', 'getIteratee', 'last'],
558 'intersectionWith': ['arrayMap', 'baseIntersection', 'last', 'baseRest', 'castArrayLikeObject'],
559 'invert': ['constant', 'createInverter', 'identity'],
560 'invertBy': ['createInverter', 'getIteratee'],
561 'invokeMap': ['apply', 'baseEach', 'baseInvoke', 'baseRest', 'isKey', 'isArrayLike'],
562 'invoke': ['baseInvoke', 'baseRest'],
563 'isArguments': ['baseIsArguments', 'isObjectLike'],
564 'isArray': [],
565 'isArrayBuffer': ['baseIsArrayBuffer', 'baseUnary'],
566 'isArrayLike': ['isFunction', 'isLength'],
567 'isArrayLikeObject': ['isArrayLike', 'isObjectLike'],
568 'isBoolean': ['baseGetTag', 'isObjectLike'],
569 'isBuffer': ['stubFalse'],
570 'isDate': ['baseIsDate', 'baseUnary'],
571 'isElement': ['isObjectLike', 'isPlainObject'],
572 'isEmpty': ['baseKeys', 'getTag', 'isArguments', 'isArray', 'isArrayLike', 'isBuffer', 'isPrototype', 'isTypedArray'],
573 'isEqual': ['baseIsEqual'],
574 'isEqualWith': ['baseIsEqual'],
575 'isError': ['baseGetTag', 'isObjectLike', 'isPlainObject'],
576 'isFinite': [],
577 'isFunction': ['baseGetTag', 'isObject'],
578 'isInteger': ['toInteger'],
579 'isLength': [],
580 'isMap': ['baseIsMap', 'baseUnary'],
581 'isMatch': ['baseIsMatch', 'getMatchData'],
582 'isMatchWith': ['baseIsMatch', 'getMatchData'],
583 'isNaN': ['isNumber'],
584 'isNative': ['baseIsNative', 'isMaskable'],
585 'isNil': [],
586 'isNull': [],
587 'isNumber': ['baseGetTag', 'isObjectLike'],
588 'isObject': [],
589 'isObjectLike': [],
590 'isPlainObject': ['baseGetTag', 'getPrototype', 'isObjectLike'],
591 'isRegExp': ['baseIsRegExp', 'baseUnary'],
592 'isSafeInteger': ['isInteger'],
593 'isSet': ['baseIsSet', 'baseUnary'],
594 'isString': ['baseGetTag', 'isArray', 'isObjectLike'],
595 'isSymbol': ['baseGetTag', 'isObjectLike'],
596 'isTypedArray': ['baseIsTypedArray', 'baseUnary'],
597 'isUndefined': [],
598 'isWeakMap': ['getTag', 'isObjectLike'],
599 'isWeakSet': ['baseGetTag', 'isObjectLike'],
600 'iteratee': ['baseClone', 'baseIteratee'],
601 'join': [],
602 'kebabCase': ['createCompounder'],
603 'keyBy': ['baseAssignValue', 'createAggregator'],
604 'keys': ['arrayLikeKeys', 'baseKeys', 'isArrayLike'],
605 'keysIn': ['arrayLikeKeys', 'baseKeysIn', 'isArrayLike'],
606 'last': [],
607 'lastIndexOf': ['baseFindIndex', 'baseIsNaN', 'strictLastIndexOf', 'toInteger'],
608 'lodash': ['baseLodash', 'isArray', 'isObjectLike', 'LazyWrapper', 'LodashWrapper', 'wrapperClone'],
609 'lowerCase': ['createCompounder'],
610 'lowerFirst': ['createCaseFirst'],
611 'lt': ['baseLt', 'createRelationalOperation'],
612 'lte': ['createRelationalOperation'],
613 'map': ['arrayMap', 'baseMap', 'getIteratee', 'isArray'],
614 'mapKeys': ['baseAssignValue', 'baseForOwn', 'getIteratee'],
615 'mapValues': ['baseAssignValue', 'baseForOwn', 'getIteratee'],
616 'matches': ['baseClone', 'baseMatches'],
617 'matchesProperty': ['baseClone', 'baseMatchesProperty'],
618 'method': ['baseInvoke', 'baseRest'],
619 'methodOf': ['baseInvoke', 'baseRest'],
620 'max': ['baseExtremum', 'baseGt', 'identity'],
621 'maxBy': ['baseExtremum', 'baseGt', 'getIteratee'],
622 'mean': ['baseMean', 'identity'],
623 'meanBy': ['baseMean', 'getIteratee'],
624 'memoize': ['MapCache'],
625 'merge': ['baseMerge', 'createAssigner'],
626 'mergeWith': ['baseMerge', 'createAssigner'],
627 'min': ['baseExtremum', 'baseLt', 'identity'],
628 'minBy': ['baseExtremum', 'baseLt', 'getIteratee'],
629 'mixin': ['arrayEach', 'arrayPush', 'baseFunctions', 'copyArray', 'isFunction', 'isObject', 'keys'],
630 'multiply': ['createMathOperation'],
631 'negate': [],
632 'noConflict': [],
633 'noop': [],
634 'now': [],
635 'nth': ['baseNth', 'toInteger'],
636 'nthArg': ['baseNth', 'baseRest', 'toInteger'],
637 'omit': ['arrayMap', 'baseDifference', 'basePick', 'flatRest', 'getAllKeysIn', 'toKey'],
638 'omitBy': ['negate', 'pickBy', 'getIteratee'],
639 'once': ['before'],
640 'orderBy': ['baseOrderBy', 'isArray'],
641 'over': ['arrayMap', 'createOver'],
642 'overArgs': ['apply', 'arrayMap', 'baseFlatten', 'baseRest', 'baseUnary', 'castRest', 'getIteratee', 'isArray'],
643 'overEvery': ['arrayEvery', 'createOver'],
644 'overSome': ['arraySome', 'createOver'],
645 'pad': ['createPadding', 'stringSize', 'toInteger', 'toString'],
646 'padEnd': ['createPadding', 'stringSize', 'toInteger', 'toString'],
647 'padStart': ['createPadding', 'stringSize', 'toInteger', 'toString'],
648 'parseInt': ['toString'],
649 'partial': ['baseRest', 'createWrap', 'getHolder', 'replaceHolders'],
650 'partialRight': ['baseRest', 'createWrap', 'getHolder', 'replaceHolders'],
651 'partition': ['createAggregator'],
652 'pick': ['arrayMap', 'basePick', 'flatRest', 'toKey'],
653 'pickBy': ['basePickBy', 'getAllKeysIn', 'getIteratee'],
654 'property': ['baseProperty', 'basePropertyDeep', 'isKey', 'toKey'],
655 'propertyOf': ['baseGet'],
656 'pull': ['baseRest', 'pullAll'],
657 'pullAll': ['basePullAll'],
658 'pullAllBy': ['basePullAll', 'getIteratee'],
659 'pullAllWith': ['basePullAll'],
660 'pullAt': ['arrayMap', 'baseAt', 'basePullAt', 'compareAscending', 'flatRest', 'isIndex'],
661 'random': ['baseRandom', 'isIterateeCall', 'toFinite'],
662 'range': ['createRange'],
663 'rangeRight': ['createRange'],
664 'rearg': ['createWrap', 'flatRest'],
665 'reduce': ['arrayReduce', 'baseEach', 'baseReduce', 'getIteratee', 'isArray'],
666 'reduceRight': ['arrayReduceRight', 'baseEachRight', 'baseReduce', 'getIteratee', 'isArray'],
667 'reject': ['arrayFilter', 'baseFilter', 'getIteratee', 'isArray', 'negate'],
668 'remove': ['basePullAt', 'getIteratee'],
669 'repeat': ['baseRepeat', 'isIterateeCall', 'toInteger', 'toString'],
670 'replace': ['toString'],
671 'rest': ['baseRest', 'toInteger'],
672 'result': ['castPath', 'isFunction', 'isKey', 'toKey'],
673 'reverse': [],
674 'round': ['createRound'],
675 'runInContext': ['defaults', 'pick'],
676 'sample': ['arraySample', 'baseSample', 'isArray'],
677 'sampleSize': ['arraySampleSize', 'baseSampleSize', 'isArray', 'isIterateeCall', 'toInteger'],
678 'set': ['baseSet'],
679 'setWith': ['baseSet'],
680 'shuffle': ['arrayShuffle', 'baseShuffle', 'isArray'],
681 'size': ['baseKeys', 'isArrayLike', 'isString', 'getTag', 'stringSize'],
682 'slice': ['baseSlice', 'isIterateeCall', 'toInteger'],
683 'snakeCase': ['createCompounder'],
684 'some': ['arraySome', 'baseSome', 'getIteratee', 'isArray', 'isIterateeCall'],
685 'sortBy': ['baseFlatten', 'baseOrderBy', 'baseRest', 'isIterateeCall'],
686 'sortedIndex': ['baseSortedIndex'],
687 'sortedIndexBy': ['baseSortedIndexBy', 'getIteratee'],
688 'sortedIndexOf': ['baseSortedIndex', 'eq'],
689 'sortedLastIndex': ['baseSortedIndex'],
690 'sortedLastIndexBy': ['baseSortedIndexBy', 'getIteratee'],
691 'sortedLastIndexOf': ['baseSortedIndex', 'eq'],
692 'sortedUniq': ['baseSortedUniq'],
693 'sortedUniqBy': ['baseSortedUniq', 'getIteratee'],
694 'split': ['baseToString', 'castSlice', 'hasUnicode', 'isIterateeCall', 'isRegExp', 'stringToArray', 'toString'],
695 'spread': ['apply', 'arrayPush', 'baseRest', 'castSlice', 'toInteger'],
696 'startCase': ['createCompounder', 'upperFirst'],
697 'startsWith': ['baseClamp', 'baseToString', 'toInteger', 'toString'],
698 'stubArray': [],
699 'stubFalse': [],
700 'stubObject': [],
701 'stubString': [],
702 'stubTrue': [],
703 'subtract': ['createMathOperation'],
704 'sum': ['baseSum', 'identity'],
705 'sumBy': ['baseSum', 'getIteratee'],
706 'tail': ['baseSlice'],
707 'take': ['baseSlice', 'toInteger'],
708 'takeRight': ['baseSlice', 'toInteger'],
709 'takeRightWhile': ['baseWhile', 'getIteratee'],
710 'takeWhile': ['baseWhile', 'getIteratee'],
711 'tap': [],
712 'template': ['assignInDefaults', 'assignInWith', 'attempt', 'baseValues', 'escapeStringChar', 'isError', 'isIterateeCall', 'keys', 'toString'],
713 'throttle': ['debounce', 'isObject'],
714 'thru': [],
715 'times': ['baseTimes', 'getIteratee', 'toInteger'],
716 'toArray': ['copyArray', 'getTag', 'isArrayLike', 'isString', 'iteratorToArray', 'mapToArray', 'setToArray', 'stringToArray', 'Symbol', 'values'],
717 'toFinite': ['toNumber'],
718 'toInteger': ['toFinite'],
719 'toLength': ['baseClamp', 'toInteger'],
720 'toLower': ['toString'],
721 'toNumber': ['isObject', 'isSymbol'],
722 'toPairs': ['createToPairs', 'keys'],
723 'toPairsIn': ['createToPairs', 'keysIn'],
724 'toPath': ['arrayMap', 'copyArray', 'isArray', 'isSymbol', 'stringToPath', 'toKey'],
725 'toPlainObject': ['copyObject', 'keysIn'],
726 'toSafeInteger': ['baseClamp', 'toInteger'],
727 'toString': ['baseToString'],
728 'toUpper': ['toString'],
729 'transform': ['arrayEach', 'baseCreate', 'baseForOwn', 'getIteratee', 'getPrototype', 'isArray', 'isBuffer', 'isFunction', 'isObject', 'isTypedArray'],
730 'trim': ['baseToString', 'castSlice', 'charsEndIndex', 'charsStartIndex', 'stringToArray', 'toString'],
731 'trimEnd': ['baseToString', 'castSlice', 'charsEndIndex', 'stringToArray', 'toString'],
732 'trimStart': ['baseToString', 'castSlice', 'charsStartIndex', 'stringToArray', 'toString'],
733 'truncate': ['baseToString', 'castSlice', 'hasUnicode', 'isObject', 'isRegExp', 'stringSize', 'stringToArray', 'toInteger', 'toString'],
734 'unary': ['ary'],
735 'unescape': ['toString', 'unescapeHtmlChar'],
736 'union': ['baseFlatten', 'baseRest', 'baseUniq', 'isArrayLikeObject'],
737 'unionBy': ['baseFlatten', 'baseRest', 'baseUniq', 'getIteratee', 'isArrayLikeObject', 'last'],
738 'unionWith': ['baseFlatten', 'baseRest', 'baseUniq', 'isArrayLikeObject', 'last'],
739 'uniq': ['baseUniq'],
740 'uniqBy': ['baseUniq', 'getIteratee'],
741 'uniqWith': ['baseUniq'],
742 'uniqueId': ['toString'],
743 'unset': ['baseUnset'],
744 'unzip': ['arrayMap', 'arrayFilter', 'baseProperty', 'baseTimes', 'isArrayLikeObject'],
745 'unzipWith': ['apply', 'arrayMap', 'unzip'],
746 'update': ['castFunction', 'baseUpdate'],
747 'updateWith': ['castFunction', 'baseUpdate'],
748 'upperCase': ['createCompounder'],
749 'upperFirst': ['createCaseFirst'],
750 'values': ['baseValues', 'keys'],
751 'valuesIn': ['baseValues', 'keysIn'],
752 'without': ['baseDifference', 'baseRest', 'isArrayLikeObject'],
753 'words': ['asciiWords', 'hasUnicodeWord', 'toString', 'unicodeWords'],
754 'wrap': ['castFunction', 'partial'],
755 'xor': ['arrayFilter', 'baseRest', 'baseXor', 'isArrayLikeObject'],
756 'xorBy': ['arrayFilter', 'baseRest', 'baseXor', 'getIteratee', 'isArrayLikeObject', 'last'],
757 'xorWith': ['arrayFilter', 'baseRest', 'baseXor', 'isArrayLikeObject', 'last'],
758 'zip': ['baseRest', 'unzip'],
759 'zipObject': ['assignValue', 'baseZipObject'],
760 'zipObjectDeep': ['baseSet', 'baseZipObject'],
761 'zipWith': ['baseRest', 'unzipWith'],
762
763 // Dependencies of private functions.
764 'addMapEntry': [],
765 'addSetEntry': [],
766 'apply': [],
767 'arrayAggregator': [],
768 'arrayEach': [],
769 'arrayEachRight': [],
770 'arrayEvery': [],
771 'arrayFilter': [],
772 'arrayIncludes': ['baseIndexOf'],
773 'arrayIncludesWith': [],
774 'arrayLikeKeys': ['baseTimes', 'isArguments', 'isArray', 'isBuffer', 'isIndex', 'isTypedArray'],
775 'arrayMap': [],
776 'arrayPush': [],
777 'arrayReduce': [],
778 'arrayReduceRight': [],
779 'arraySample': ['baseRandom'],
780 'arraySampleSize': ['baseClamp', 'copyArray', 'shuffleSelf'],
781 'arrayShuffle': ['copyArray', 'shuffleSelf'],
782 'arraySome': [],
783 'asciiSize': ['baseProperty'],
784 'asciiToArray': [],
785 'asciiWords': [],
786 'assignInDefaults': ['eq'],
787 'assignMergeValue': ['baseAssignValue', 'eq'],
788 'assignValue': ['baseAssignValue', 'eq'],
789 'assocIndexOf': ['eq'],
790 'baseAggregator': ['baseEach'],
791 'baseAssign': ['copyObject', 'keys'],
792 'baseAssignValue': ['defineProperty'],
793 'baseAt': ['get'],
794 'baseClamp': [],
795 'baseClone': ['arrayEach', 'assignValue', 'baseAssign', 'cloneBuffer', 'copyArray', 'copySymbols', 'getAllKeys', 'getTag', 'initCloneArray', 'initCloneByTag', 'initCloneObject', 'isArray', 'isBuffer', 'isObject', 'keys', 'Stack'],
796 'baseConforms': ['baseConformsTo', 'keys'],
797 'baseConformsTo': [],
798 'baseCreate': ['isObject'],
799 'baseDelay': ['setTimeout'],
800 'baseDifference': ['arrayIncludes', 'arrayIncludesWith', 'arrayMap', 'baseUnary', 'cacheHas', 'SetCache'],
801 'baseEach': ['baseForOwn', 'createBaseEach'],
802 'baseEachRight': ['baseForOwnRight', 'createBaseEach'],
803 'baseEvery': ['baseEach'],
804 'baseExtremum': ['isSymbol'],
805 'baseFill': ['toInteger', 'toLength'],
806 'baseFilter': ['baseEach'],
807 'baseFindIndex': [],
808 'baseFindKey': [],
809 'baseFlatten': ['arrayPush', 'isFlattenable'],
810 'baseFor': ['createBaseFor'],
811 'baseForOwn': ['baseFor', 'keys'],
812 'baseForOwnRight': ['baseForRight', 'keys'],
813 'baseForRight': ['createBaseFor'],
814 'baseFunctions': ['arrayFilter', 'isFunction'],
815 'baseGet': ['castPath', 'isKey', 'toKey'],
816 'baseGetAllKeys': ['arrayPush', 'isArray'],
817 'baseGetTag': ['getRawTag', 'objectToString', 'Symbol'],
818 'baseGt': [],
819 'baseHas': [],
820 'baseHasIn': [],
821 'baseIndexOf': ['baseFindIndex', 'baseIsNaN', 'strictIndexOf'],
822 'baseIndexOfWith': [],
823 'baseInRange': [],
824 'baseIntersection': ['arrayIncludes', 'arrayIncludesWith', 'arrayMap', 'baseUnary', 'cacheHas', 'SetCache'],
825 'baseInverter':['baseForOwn'],
826 'baseInvoke': ['apply', 'castPath', 'isKey', 'last', 'parent', 'toKey'],
827 'baseIsArguments': ['baseGetTag', 'isObjectLike'],
828 'baseIsArrayBuffer': ['baseGetTag', 'isObjectLike'],
829 'baseIsDate': ['baseGetTag', 'isObjectLike'],
830 'baseIsEqual': ['baseIsEqualDeep', 'isObject', 'isObjectLike'],
831 'baseIsEqualDeep': ['equalArrays', 'equalByTag', 'equalObjects', 'getTag', 'isArray', 'isBuffer', 'isTypedArray', 'Stack'],
832 'baseIsFunction': ['baseGetTag'],
833 'baseIsMap': ['getTag', 'isObjectLike'],
834 'baseIsMatch': ['baseIsEqual', 'Stack'],
835 'baseIsNaN': [],
836 'baseIsNative': ['isFunction', 'isMasked', 'isObject', 'toSource'],
837 'baseIsRegExp': ['baseGetTag', 'isObjectLike'],
838 'baseIsSet': ['getTag', 'isObjectLike'],
839 'baseIsTypedArray': ['baseGetTag', 'isLength', 'isObjectLike'],
840 'baseIteratee': ['baseMatches', 'baseMatchesProperty', 'identity', 'isArray', 'property'],
841 'baseKeys': ['isPrototype', 'nativeKeys'],
842 'baseKeysIn': ['isObject', 'isPrototype', 'nativeKeysIn'],
843 'baseLodash': [],
844 'baseLt': [],
845 'baseMap': ['baseEach', 'isArrayLike'],
846 'baseMatches': ['baseIsMatch', 'getMatchData', 'matchesStrictComparable'],
847 'baseMatchesProperty': ['baseIsEqual', 'hasIn', 'get', 'isKey', 'isStrictComparable', 'matchesStrictComparable', 'toKey'],
848 'baseMean': ['baseSum'],
849 'baseMerge': ['assignMergeValue', 'baseFor', 'baseMergeDeep', 'isObject', 'keysIn', 'Stack'],
850 'baseMergeDeep': ['assignMergeValue', 'cloneBuffer', 'cloneTypedArray', 'copyArray', 'initCloneObject', 'isArguments', 'isArray', 'isArrayLikeObject', 'isBuffer', 'isFunction', 'isObject', 'isPlainObject', 'isTypedArray', 'toPlainObject'],
851 'baseNth': ['isIndex'],
852 'baseOrderBy': ['arrayMap', 'baseMap', 'baseSortBy', 'baseUnary', 'compareMultiple', 'getIteratee', 'identity'],
853 'basePick': ['basePickBy'],
854 'basePickBy': ['baseAssignValue'],
855 'baseProperty': [],
856 'basePropertyOf': [],
857 'basePropertyDeep': ['baseGet'],
858 'basePullAll': ['arrayMap', 'baseIndexOf', 'baseIndexOfWith', 'baseUnary', 'copyArray'],
859 'basePullAt': ['castPath', 'isIndex', 'isKey', 'last', 'parent', 'toKey'],
860 'baseRandom': [],
861 'baseRange': [],
862 'baseReduce': [],
863 'baseRepeat': [],
864 'baseRest': ['identity', 'overRest', 'setToString'],
865 'baseSample': ['arraySample', 'values'],
866 'baseSampleSize': ['baseClamp', 'shuffleSelf', 'values'],
867 'baseSet': ['assignValue', 'castPath', 'isIndex', 'isKey', 'isObject', 'toKey'],
868 'baseSetData': ['identity'],
869 'baseSetToString': ['constant', 'defineProperty', 'identity'],
870 'baseShuffle': ['shuffleSelf', 'values'],
871 'baseSlice': [],
872 'baseSome': ['baseEach'],
873 'baseSortBy': [],
874 'baseSortedIndex': ['baseSortedIndexBy', 'identity', 'isSymbol'],
875 'baseSortedIndexBy': ['isSymbol'],
876 'baseSortedUniq': ['eq'],
877 'baseSum': [],
878 'baseTimes': [],
879 'baseToPairs': ['arrayMap'],
880 'baseToNumber': ['isSymbol'],
881 'baseToString': ['arrayMap', 'isArray', 'isSymbol', 'Symbol'],
882 'baseUnary': [],
883 'baseUniq': ['arrayIncludes', 'arrayIncludesWith', 'cacheHas', 'createSet', 'SetCache', 'setToArray'],
884 'baseUnset': ['castPath', 'isKey', 'last', 'parent', 'toKey'],
885 'baseUpdate': ['baseGet', 'baseSet'],
886 'baseValues': ['arrayMap'],
887 'baseWhile': ['baseSlice'],
888 'baseWrapperValue': ['arrayPush', 'arrayReduce', 'LazyWrapper'],
889 'baseXor': ['baseDifference', 'baseFlatten', 'baseUniq'],
890 'baseZipObject': [],
891 'cacheHas': [],
892 'castArrayLikeObject': ['isArrayLikeObject'],
893 'castFunction': ['identity'],
894 'castPath': ['isArray', 'stringToPath'],
895 'castRest': ['baseRest'],
896 'castSlice': ['baseSlice'],
897 'charAtCallback': [],
898 'charsStartIndex': ['baseIndexOf'],
899 'charsEndIndex': ['baseIndexOf'],
900 'clearTimeout': [],
901 'cloneArrayBuffer': ['Uint8Array'],
902 'cloneBuffer': [],
903 'cloneDataView': ['cloneArrayBuffer'],
904 'cloneMap': ['addMapEntry', 'arrayReduce', 'mapToArray'],
905 'cloneRegExp': [],
906 'cloneSet': ['addSetEntry', 'arrayReduce', 'setToArray'],
907 'cloneSymbol': ['Symbol'],
908 'cloneTypedArray': ['cloneArrayBuffer'],
909 'compareAscending': ['isSymbol'],
910 'compareMultiple': ['compareAscending'],
911 'composeArgs': [],
912 'composeArgsRight': [],
913 'copyArray': [],
914 'copyObject': ['assignValue', 'baseAssignValue'],
915 'copySymbols': ['copyObject', 'getSymbols'],
916 'countHolders': [],
917 'createAggregator': ['arrayAggregator', 'baseAggregator', 'getIteratee', 'isArray'],
918 'createAssigner': ['baseRest', 'isIterateeCall'],
919 'createBaseEach': ['isArrayLike'],
920 'createBaseFor': [],
921 'createBind': ['createCtor'],
922 'createCaseFirst': ['castSlice', 'hasUnicode', 'stringToArray', 'toString'],
923 'createCompounder': ['arrayReduce', 'deburr', 'words'],
924 'createCtor': ['baseCreate', 'isObject'],
925 'createCurry': ['apply', 'createCtor', 'createHybrid', 'createRecurry', 'getHolder', 'replaceHolders'],
926 'createFind': ['getIteratee', 'isArrayLike', 'keys'],
927 'createFlow': ['flatRest', 'getData', 'getFuncName', 'isArray', 'isLaziable', 'LodashWrapper'],
928 'createHybrid': ['composeArgs', 'composeArgsRight', 'countHolders', 'createCtor', 'createRecurry', 'getHolder', 'reorder', 'replaceHolders'],
929 'createInverter': ['baseInverter'],
930 'createMathOperation': ['baseToNumber', 'baseToString'],
931 'createOver': ['apply', 'arrayMap', 'baseRest', 'baseUnary', 'flatRest', 'getIteratee'],
932 'createPadding': ['baseRepeat', 'baseToString', 'castSlice', 'hasUnicode', 'stringSize', 'stringToArray'],
933 'createPartial': ['apply', 'createCtor'],
934 'createRange': ['baseRange', 'isIterateeCall', 'toFinite'],
935 'createRecurry': ['isLaziable', 'setData', 'setWrapToString'],
936 'createRelationalOperation': ['toNumber'],
937 'createRound': ['toInteger', 'toNumber', 'toString'],
938 'createSet': ['noop', 'Set', 'setToArray'],
939 'createToPairs': ['baseToPairs', 'getTag', 'mapToArray', 'setToPairs'],
940 'createWrap': ['baseSetData', 'createBind', 'createCurry', 'createHybrid', 'createPartial', 'getData', 'mergeData', 'setData', 'setWrapToString', 'toInteger'],
941 'deburrLetter': ['basePropertyOf'],
942 'defineProperty': ['getNative'],
943 'escapeHtmlChar': ['basePropertyOf'],
944 'escapeStringChar': [],
945 'equalArrays': ['arraySome', 'cacheHas', 'SetCache'],
946 'equalByTag': ['eq', 'equalArrays', 'mapToArray', 'setToArray', 'Symbol', 'Uint8Array'],
947 'equalObjects': ['keys'],
948 'extremumBy': ['baseEach'],
949 'flatRest': ['flatten', 'overRest', 'setToString'],
950 'getAllKeys': ['baseGetAllKeys', 'getSymbols', 'keys'],
951 'getAllKeysIn': ['baseGetAllKeys', 'getSymbolsIn', 'keysIn'],
952 'getData': ['noop'],
953 'getFuncName': [],
954 'getHolder': ['lodash'],
955 'getIteratee': ['baseIteratee', 'iteratee'],
956 'getMapData': ['isKeyable'],
957 'getMatchData': ['isStrictComparable', 'keys'],
958 'getNative': ['baseIsNative', 'getValue'],
959 'getPrototype': ['overArg'],
960 'getRawTag': ['Symbol'],
961 'getSymbols': ['overArg', 'stubArray'],
962 'getSymbolsIn': ['arrayPush', 'getPrototype', 'getSymbols', 'stubArray'],
963 'getTag': ['baseGetTag', 'DataView', 'Map', 'Promise', 'Set', 'toSource', 'WeakMap'],
964 'getValue': [],
965 'getView': [],
966 'getWrapDetails': [],
967 'hasPath': ['castPath', 'isArguments', 'isArray', 'isIndex', 'isKey', 'isLength', 'toKey'],
968 'hasUnicode': [],
969 'hasUnicodeWord': [],
970 'initCloneArray': [],
971 'initCloneByTag': ['cloneArrayBuffer', 'cloneDataView', 'cloneMap', 'cloneRegExp', 'cloneSet', 'cloneSymbol', 'cloneTypedArray'],
972 'initCloneObject': ['baseCreate', 'getPrototype', 'isPrototype'],
973 'insertWrapDetails': [],
974 'isFlattenable': ['isArguments', 'isArray', 'Symbol'],
975 'isIndex': [],
976 'isIterateeCall': ['eq', 'isArrayLike', 'isIndex', 'isObject'],
977 'isKey': ['isArray', 'isSymbol'],
978 'isKeyable': [],
979 'isLaziable': ['getData', 'getFuncName', 'LazyWrapper', 'lodash'],
980 'isMaskable': ['isFunction', 'stubFalse'],
981 'isMasked': [],
982 'isPrototype': [],
983 'isStrictComparable': ['isObject'],
984 'iteratorToArray': [],
985 'mapToArray': [],
986 'matchesStrictComparable': [],
987 'memoizeCapped': ['memoize'],
988 'mergeData': ['composeArgs', 'composeArgsRight', 'replaceHolders'],
989 'mergeDefaults': ['baseMerge', 'isObject'],
990 'nativeCreate': ['getNative'],
991 'nativeKeys': ['overArg'],
992 'nativeKeysIn': [],
993 'objectToString': [],
994 'overArg': [],
995 'overRest': ['apply'],
996 'parent': ['baseGet', 'baseSlice'],
997 'reorder': ['copyArray', 'isIndex'],
998 'replaceHolders': [],
999 'setData': ['baseSetData', 'shortOut'],
1000 'setTimeout': [],
1001 'setToArray': [],
1002 'setToPairs': [],
1003 'setToString': ['baseSetToString', 'shortOut'],
1004 'setWrapToString': ['getWrapDetails', 'insertWrapDetails', 'setToString', 'updateWrapDetails'],
1005 'shimKeys': ['isArguments', 'isArray', 'isIndex', 'isLength', 'isString', 'keysIn'],
1006 'shortOut': [],
1007 'shuffleSelf': ['baseRandom'],
1008 'strictIndexOf': [],
1009 'strictLastIndexOf': [],
1010 'stringSize': ['asciiSize', 'hasUnicode', 'unicodeSize'],
1011 'stringToArray': ['asciiToArray', 'hasUnicode', 'unicodeToArray'],
1012 'stringToPath': ['memoizeCapped', 'toString'],
1013 'toKey': ['isSymbol'],
1014 'toSource': [],
1015 'unescapeHtmlChar': ['basePropertyOf'],
1016 'unicodeSize': [],
1017 'unicodeToArray': [],
1018 'unicodeWords': [],
1019 'updateWrapDetails': ['arrayEach', 'arrayIncludes']
1020});
1021
1022/** Used to map real names to their aliases. */
1023exports.realToAlias = new Hash(_.invertBy(exports.aliasToReal));
1024
1025/* Used to track dependencies for sequences. */
1026exports.seqDep = new Hash({
1027 'funcDep': [
1028 'arrayEach', 'arrayPush', 'baseForOwn', 'baseInvoke', 'baseRest', 'chain',
1029 'createHybrid', 'getIteratee', 'identity', 'isArray', 'last', 'lazyClone',
1030 'lazyReverse', 'lazyValue', 'LazyWrapper', 'LodashWrapper', 'mixin', 'negate',
1031 'tap', 'thru', 'toInteger', 'wrapperAt', 'wrapperChain', 'wrapperCommit',
1032 'wrapperNext', 'wrapperPlant', 'wrapperReverse', 'wrapperToIterator',
1033 'wrapperValue'
1034 ],
1035 'varDep': ['realNames']
1036});
1037
1038/* Used to rename sequence wrapper modules. */
1039exports.wrapperToReal = new Hash({
1040 'wrapperAt': 'at',
1041 'wrapperCommit': 'commit',
1042 'wrapperLodash': 'lodash',
1043 'wrapperNext': 'next',
1044 'wrapperPlant': 'plant',
1045 'wrapperReverse': 'reverse',
1046 'wrapperToIterator': 'toIterator',
1047 'wrapperValue': 'value'
1048});
1049
1050/** Used to track variable dependencies of identifiers. */
1051exports.varDep = new Hash({
1052
1053 // Dependencies of variables.
1054 'coreJsData': ['root'],
1055 'nodeUtil': ['freeGlobal'],
1056 'root': ['freeGlobal'],
1057
1058 // Dependencies of built-ins.
1059 'DataView': ['root'],
1060 'Map': ['root'],
1061 'Promise': ['root'],
1062 'Set': ['root'],
1063 'Symbol': ['root'],
1064 'Uint8Array': ['root'],
1065 'WeakMap': ['root'],
1066
1067 // Dependencies of lodash properties.
1068 'templateSettings': ['reEscape', 'reEvaluate', 'reInterpolate'],
1069
1070 // Dependencies of the main module.
1071 'main': ['realNames'],
1072
1073 // Dependencies of lodash methods.
1074 'isArrayBuffer': ['nodeUtil'],
1075 'isBuffer': ['root'],
1076 'isDate': ['nodeUtil'],
1077 'isFinite': ['root'],
1078 'isMap': ['nodeUtil'],
1079 'isRegExp': ['nodeUtil'],
1080 'isSet': ['nodeUtil'],
1081 'isTypedArray': ['nodeUtil'],
1082 'noConflict': ['root'],
1083 'now': ['root'],
1084 'parseInt': ['root'],
1085 'template': ['reInterpolate', 'templateSettings'],
1086
1087 // Dependencies of private functions.
1088 'baseSetData': ['metaMap'],
1089 'clearTimeout': ['root'],
1090 'cloneBuffer': ['root'],
1091 'createBind': ['root'],
1092 'createCurry': ['root'],
1093 'createHybrid': ['root'],
1094 'createPartial': ['root'],
1095 'getData': ['metaMap'],
1096 'getFuncName': ['realNames'],
1097 'isMasked': ['coreJsData'],
1098 'isMaskable': ['coreJsData'],
1099 'setTimeout': ['root']
1100});