@jsonui/react 0.8.0 → 0.8.3

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 (89) hide show
  1. package/README.md +4 -2
  2. package/dist/cjs/index.js +31 -3888
  3. package/dist/cjs/index.js.map +1 -1
  4. package/dist/esm/index.js +27 -3884
  5. package/dist/esm/index.js.map +1 -1
  6. package/dist/index.d.ts +10 -22
  7. package/package.json +6 -8
  8. package/dist/cjs/types/ErrorBoundary.d.ts +0 -22
  9. package/dist/cjs/types/MessageReceiver.d.ts +0 -2
  10. package/dist/cjs/types/MessageReceiverContext.d.ts +0 -8
  11. package/dist/cjs/types/ReduxProviders.d.ts +0 -9
  12. package/dist/cjs/types/Renderer.d.ts +0 -10
  13. package/dist/cjs/types/ViewerWeb.d.ts +0 -3
  14. package/dist/cjs/types/Wrapper.d.ts +0 -6
  15. package/dist/cjs/types/index.d.ts +0 -7
  16. package/dist/cjs/types/indexWeb.d.ts +0 -1
  17. package/dist/cjs/types/stock/components/Button.d.ts +0 -2
  18. package/dist/cjs/types/stock/components/Edit.d.ts +0 -2
  19. package/dist/cjs/types/stock/components/FormResult.d.ts +0 -4
  20. package/dist/cjs/types/stock/components/Fragment.d.ts +0 -2
  21. package/dist/cjs/types/stock/components/HelperText.d.ts +0 -2
  22. package/dist/cjs/types/stock/components/Image.d.ts +0 -2
  23. package/dist/cjs/types/stock/components/Label.d.ts +0 -9
  24. package/dist/cjs/types/stock/components/PrimitiveProp.d.ts +0 -2
  25. package/dist/cjs/types/stock/components/Text.d.ts +0 -2
  26. package/dist/cjs/types/stock/components/Undefined.d.ts +0 -2
  27. package/dist/cjs/types/stock/components/View.d.ts +0 -2
  28. package/dist/cjs/types/stock/components.d.ts +0 -18
  29. package/dist/cjs/types/stock/stockToRenderer.d.ts +0 -20
  30. package/dist/cjs/types/stories/JsonUI.stories.d.ts +0 -5
  31. package/dist/cjs/types/stories/MultiChild.stories.d.ts +0 -4
  32. package/dist/cjs/types/stories/PartialValueUpdateTest/PushNotificationTest.stories.d.ts +0 -4
  33. package/dist/cjs/types/stories/PerformansTest1.stories.d.ts +0 -4
  34. package/dist/cjs/types/stories/PerformansTest2.stories.d.ts +0 -4
  35. package/dist/cjs/types/stories/ReduxTest.stories.d.ts +0 -5
  36. package/dist/cjs/types/stories/Simple.stories.d.ts +0 -4
  37. package/dist/cjs/types/stories/StateSaveTest/StateSaveTest.stories.d.ts +0 -4
  38. package/dist/cjs/types/stories/Table.stories.d.ts +0 -4
  39. package/dist/cjs/types/stories/Validation.stories.d.ts +0 -11
  40. package/dist/cjs/types/tests/action.test.d.ts +0 -1
  41. package/dist/cjs/types/tests/button.test.d.ts +0 -1
  42. package/dist/cjs/types/tests/input.test.d.ts +0 -13
  43. package/dist/cjs/types/tests/modifier.test.d.ts +0 -1
  44. package/dist/cjs/types/tests/pathModifier.test.d.ts +0 -1
  45. package/dist/cjs/types/tests/primitive_simple.test.d.ts +0 -1
  46. package/dist/cjs/types/tests/redux.test.d.ts +0 -13
  47. package/dist/cjs/types/tests/simple.test.d.ts +0 -1
  48. package/dist/cjs/types/types.d.ts +0 -26
  49. package/dist/esm/types/ErrorBoundary.d.ts +0 -22
  50. package/dist/esm/types/MessageReceiver.d.ts +0 -2
  51. package/dist/esm/types/MessageReceiverContext.d.ts +0 -8
  52. package/dist/esm/types/ReduxProviders.d.ts +0 -9
  53. package/dist/esm/types/Renderer.d.ts +0 -10
  54. package/dist/esm/types/ViewerWeb.d.ts +0 -3
  55. package/dist/esm/types/Wrapper.d.ts +0 -6
  56. package/dist/esm/types/index.d.ts +0 -7
  57. package/dist/esm/types/indexWeb.d.ts +0 -1
  58. package/dist/esm/types/stock/components/Button.d.ts +0 -2
  59. package/dist/esm/types/stock/components/Edit.d.ts +0 -2
  60. package/dist/esm/types/stock/components/FormResult.d.ts +0 -4
  61. package/dist/esm/types/stock/components/Fragment.d.ts +0 -2
  62. package/dist/esm/types/stock/components/HelperText.d.ts +0 -2
  63. package/dist/esm/types/stock/components/Image.d.ts +0 -2
  64. package/dist/esm/types/stock/components/Label.d.ts +0 -9
  65. package/dist/esm/types/stock/components/PrimitiveProp.d.ts +0 -2
  66. package/dist/esm/types/stock/components/Text.d.ts +0 -2
  67. package/dist/esm/types/stock/components/Undefined.d.ts +0 -2
  68. package/dist/esm/types/stock/components/View.d.ts +0 -2
  69. package/dist/esm/types/stock/components.d.ts +0 -18
  70. package/dist/esm/types/stock/stockToRenderer.d.ts +0 -20
  71. package/dist/esm/types/stories/JsonUI.stories.d.ts +0 -5
  72. package/dist/esm/types/stories/MultiChild.stories.d.ts +0 -4
  73. package/dist/esm/types/stories/PartialValueUpdateTest/PushNotificationTest.stories.d.ts +0 -4
  74. package/dist/esm/types/stories/PerformansTest1.stories.d.ts +0 -4
  75. package/dist/esm/types/stories/PerformansTest2.stories.d.ts +0 -4
  76. package/dist/esm/types/stories/ReduxTest.stories.d.ts +0 -5
  77. package/dist/esm/types/stories/Simple.stories.d.ts +0 -4
  78. package/dist/esm/types/stories/StateSaveTest/StateSaveTest.stories.d.ts +0 -4
  79. package/dist/esm/types/stories/Table.stories.d.ts +0 -4
  80. package/dist/esm/types/stories/Validation.stories.d.ts +0 -11
  81. package/dist/esm/types/tests/action.test.d.ts +0 -1
  82. package/dist/esm/types/tests/button.test.d.ts +0 -1
  83. package/dist/esm/types/tests/input.test.d.ts +0 -13
  84. package/dist/esm/types/tests/modifier.test.d.ts +0 -1
  85. package/dist/esm/types/tests/pathModifier.test.d.ts +0 -1
  86. package/dist/esm/types/tests/primitive_simple.test.d.ts +0 -1
  87. package/dist/esm/types/tests/redux.test.d.ts +0 -13
  88. package/dist/esm/types/tests/simple.test.d.ts +0 -1
  89. package/dist/esm/types/types.d.ts +0 -26
package/dist/esm/index.js CHANGED
@@ -1,3878 +1,21 @@
1
+ import { jsx, jsxs, Fragment as Fragment$1 } from 'react/jsx-runtime';
2
+ import { __rest } from '/Users/istvanfodor/Documents/gitHub/jsonui/node_modules/tslib/tslib.es6.js';
3
+ import defaultsDeep from 'lodash/defaultsDeep';
4
+ import { constants, stockFunctions, Stock, I18n, utils, storeReducers, PathModifierContext, StockContext, wrapperUtil, compSelectorHook } from '@jsonui/core';
1
5
  import React, { createContext, useContext, useEffect, useMemo } from 'react';
2
- import { constants, stockFunctions, Stock, I18n, util, storeReducers, PathModifierContext, StockContext, wrapperUtil, compSelectorHook } from '@jsonui/core';
3
6
  import { Provider, useDispatch, useSelector, shallowEqual, useStore } from 'react-redux';
4
7
  import { createStore } from 'redux';
5
8
  import { ClassNames } from '@emotion/react';
6
9
  import { cloneDeep } from 'lodash';
7
10
 
8
- var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
9
-
10
- function getDefaultExportFromCjs (x) {
11
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
12
- }
13
-
14
- var jsxRuntime = {exports: {}};
15
-
16
- var reactJsxRuntime_production = {};
17
-
18
- /**
19
- * @license React
20
- * react-jsx-runtime.production.js
21
- *
22
- * Copyright (c) Meta Platforms, Inc. and affiliates.
23
- *
24
- * This source code is licensed under the MIT license found in the
25
- * LICENSE file in the root directory of this source tree.
26
- */
27
-
28
- var hasRequiredReactJsxRuntime_production;
29
-
30
- function requireReactJsxRuntime_production () {
31
- if (hasRequiredReactJsxRuntime_production) return reactJsxRuntime_production;
32
- hasRequiredReactJsxRuntime_production = 1;
33
- var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
34
- REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
35
- function jsxProd(type, config, maybeKey) {
36
- var key = null;
37
- void 0 !== maybeKey && (key = "" + maybeKey);
38
- void 0 !== config.key && (key = "" + config.key);
39
- if ("key" in config) {
40
- maybeKey = {};
41
- for (var propName in config)
42
- "key" !== propName && (maybeKey[propName] = config[propName]);
43
- } else maybeKey = config;
44
- config = maybeKey.ref;
45
- return {
46
- $$typeof: REACT_ELEMENT_TYPE,
47
- type: type,
48
- key: key,
49
- ref: void 0 !== config ? config : null,
50
- props: maybeKey
51
- };
52
- }
53
- reactJsxRuntime_production.Fragment = REACT_FRAGMENT_TYPE;
54
- reactJsxRuntime_production.jsx = jsxProd;
55
- reactJsxRuntime_production.jsxs = jsxProd;
56
- return reactJsxRuntime_production;
57
- }
58
-
59
- var reactJsxRuntime_development = {};
60
-
61
- /**
62
- * @license React
63
- * react-jsx-runtime.development.js
64
- *
65
- * Copyright (c) Meta Platforms, Inc. and affiliates.
66
- *
67
- * This source code is licensed under the MIT license found in the
68
- * LICENSE file in the root directory of this source tree.
69
- */
70
-
71
- var hasRequiredReactJsxRuntime_development;
72
-
73
- function requireReactJsxRuntime_development () {
74
- if (hasRequiredReactJsxRuntime_development) return reactJsxRuntime_development;
75
- hasRequiredReactJsxRuntime_development = 1;
76
- "production" !== process.env.NODE_ENV &&
77
- (function () {
78
- function getComponentNameFromType(type) {
79
- if (null == type) return null;
80
- if ("function" === typeof type)
81
- return type.$$typeof === REACT_CLIENT_REFERENCE
82
- ? null
83
- : type.displayName || type.name || null;
84
- if ("string" === typeof type) return type;
85
- switch (type) {
86
- case REACT_FRAGMENT_TYPE:
87
- return "Fragment";
88
- case REACT_PROFILER_TYPE:
89
- return "Profiler";
90
- case REACT_STRICT_MODE_TYPE:
91
- return "StrictMode";
92
- case REACT_SUSPENSE_TYPE:
93
- return "Suspense";
94
- case REACT_SUSPENSE_LIST_TYPE:
95
- return "SuspenseList";
96
- case REACT_ACTIVITY_TYPE:
97
- return "Activity";
98
- }
99
- if ("object" === typeof type)
100
- switch (
101
- ("number" === typeof type.tag &&
102
- console.error(
103
- "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
104
- ),
105
- type.$$typeof)
106
- ) {
107
- case REACT_PORTAL_TYPE:
108
- return "Portal";
109
- case REACT_CONTEXT_TYPE:
110
- return type.displayName || "Context";
111
- case REACT_CONSUMER_TYPE:
112
- return (type._context.displayName || "Context") + ".Consumer";
113
- case REACT_FORWARD_REF_TYPE:
114
- var innerType = type.render;
115
- type = type.displayName;
116
- type ||
117
- ((type = innerType.displayName || innerType.name || ""),
118
- (type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef"));
119
- return type;
120
- case REACT_MEMO_TYPE:
121
- return (
122
- (innerType = type.displayName || null),
123
- null !== innerType
124
- ? innerType
125
- : getComponentNameFromType(type.type) || "Memo"
126
- );
127
- case REACT_LAZY_TYPE:
128
- innerType = type._payload;
129
- type = type._init;
130
- try {
131
- return getComponentNameFromType(type(innerType));
132
- } catch (x) {}
133
- }
134
- return null;
135
- }
136
- function testStringCoercion(value) {
137
- return "" + value;
138
- }
139
- function checkKeyStringCoercion(value) {
140
- try {
141
- testStringCoercion(value);
142
- var JSCompiler_inline_result = !1;
143
- } catch (e) {
144
- JSCompiler_inline_result = true;
145
- }
146
- if (JSCompiler_inline_result) {
147
- JSCompiler_inline_result = console;
148
- var JSCompiler_temp_const = JSCompiler_inline_result.error;
149
- var JSCompiler_inline_result$jscomp$0 =
150
- ("function" === typeof Symbol &&
151
- Symbol.toStringTag &&
152
- value[Symbol.toStringTag]) ||
153
- value.constructor.name ||
154
- "Object";
155
- JSCompiler_temp_const.call(
156
- JSCompiler_inline_result,
157
- "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
158
- JSCompiler_inline_result$jscomp$0
159
- );
160
- return testStringCoercion(value);
161
- }
162
- }
163
- function getTaskName(type) {
164
- if (type === REACT_FRAGMENT_TYPE) return "<>";
165
- if (
166
- "object" === typeof type &&
167
- null !== type &&
168
- type.$$typeof === REACT_LAZY_TYPE
169
- )
170
- return "<...>";
171
- try {
172
- var name = getComponentNameFromType(type);
173
- return name ? "<" + name + ">" : "<...>";
174
- } catch (x) {
175
- return "<...>";
176
- }
177
- }
178
- function getOwner() {
179
- var dispatcher = ReactSharedInternals.A;
180
- return null === dispatcher ? null : dispatcher.getOwner();
181
- }
182
- function UnknownOwner() {
183
- return Error("react-stack-top-frame");
184
- }
185
- function hasValidKey(config) {
186
- if (hasOwnProperty.call(config, "key")) {
187
- var getter = Object.getOwnPropertyDescriptor(config, "key").get;
188
- if (getter && getter.isReactWarning) return false;
189
- }
190
- return void 0 !== config.key;
191
- }
192
- function defineKeyPropWarningGetter(props, displayName) {
193
- function warnAboutAccessingKey() {
194
- specialPropKeyWarningShown ||
195
- ((specialPropKeyWarningShown = true),
196
- console.error(
197
- "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
198
- displayName
199
- ));
200
- }
201
- warnAboutAccessingKey.isReactWarning = true;
202
- Object.defineProperty(props, "key", {
203
- get: warnAboutAccessingKey,
204
- configurable: true
205
- });
206
- }
207
- function elementRefGetterWithDeprecationWarning() {
208
- var componentName = getComponentNameFromType(this.type);
209
- didWarnAboutElementRef[componentName] ||
210
- ((didWarnAboutElementRef[componentName] = true),
211
- console.error(
212
- "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
213
- ));
214
- componentName = this.props.ref;
215
- return void 0 !== componentName ? componentName : null;
216
- }
217
- function ReactElement(type, key, props, owner, debugStack, debugTask) {
218
- var refProp = props.ref;
219
- type = {
220
- $$typeof: REACT_ELEMENT_TYPE,
221
- type: type,
222
- key: key,
223
- props: props,
224
- _owner: owner
225
- };
226
- null !== (void 0 !== refProp ? refProp : null)
227
- ? Object.defineProperty(type, "ref", {
228
- enumerable: false,
229
- get: elementRefGetterWithDeprecationWarning
230
- })
231
- : Object.defineProperty(type, "ref", { enumerable: false, value: null });
232
- type._store = {};
233
- Object.defineProperty(type._store, "validated", {
234
- configurable: false,
235
- enumerable: false,
236
- writable: true,
237
- value: 0
238
- });
239
- Object.defineProperty(type, "_debugInfo", {
240
- configurable: false,
241
- enumerable: false,
242
- writable: true,
243
- value: null
244
- });
245
- Object.defineProperty(type, "_debugStack", {
246
- configurable: false,
247
- enumerable: false,
248
- writable: true,
249
- value: debugStack
250
- });
251
- Object.defineProperty(type, "_debugTask", {
252
- configurable: false,
253
- enumerable: false,
254
- writable: true,
255
- value: debugTask
256
- });
257
- Object.freeze && (Object.freeze(type.props), Object.freeze(type));
258
- return type;
259
- }
260
- function jsxDEVImpl(
261
- type,
262
- config,
263
- maybeKey,
264
- isStaticChildren,
265
- debugStack,
266
- debugTask
267
- ) {
268
- var children = config.children;
269
- if (void 0 !== children)
270
- if (isStaticChildren)
271
- if (isArrayImpl(children)) {
272
- for (
273
- isStaticChildren = 0;
274
- isStaticChildren < children.length;
275
- isStaticChildren++
276
- )
277
- validateChildKeys(children[isStaticChildren]);
278
- Object.freeze && Object.freeze(children);
279
- } else
280
- console.error(
281
- "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
282
- );
283
- else validateChildKeys(children);
284
- if (hasOwnProperty.call(config, "key")) {
285
- children = getComponentNameFromType(type);
286
- var keys = Object.keys(config).filter(function (k) {
287
- return "key" !== k;
288
- });
289
- isStaticChildren =
290
- 0 < keys.length
291
- ? "{key: someKey, " + keys.join(": ..., ") + ": ...}"
292
- : "{key: someKey}";
293
- didWarnAboutKeySpread[children + isStaticChildren] ||
294
- ((keys =
295
- 0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}"),
296
- console.error(
297
- 'A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',
298
- isStaticChildren,
299
- children,
300
- keys,
301
- children
302
- ),
303
- (didWarnAboutKeySpread[children + isStaticChildren] = true));
304
- }
305
- children = null;
306
- void 0 !== maybeKey &&
307
- (checkKeyStringCoercion(maybeKey), (children = "" + maybeKey));
308
- hasValidKey(config) &&
309
- (checkKeyStringCoercion(config.key), (children = "" + config.key));
310
- if ("key" in config) {
311
- maybeKey = {};
312
- for (var propName in config)
313
- "key" !== propName && (maybeKey[propName] = config[propName]);
314
- } else maybeKey = config;
315
- children &&
316
- defineKeyPropWarningGetter(
317
- maybeKey,
318
- "function" === typeof type
319
- ? type.displayName || type.name || "Unknown"
320
- : type
321
- );
322
- return ReactElement(
323
- type,
324
- children,
325
- maybeKey,
326
- getOwner(),
327
- debugStack,
328
- debugTask
329
- );
330
- }
331
- function validateChildKeys(node) {
332
- isValidElement(node)
333
- ? node._store && (node._store.validated = 1)
334
- : "object" === typeof node &&
335
- null !== node &&
336
- node.$$typeof === REACT_LAZY_TYPE &&
337
- ("fulfilled" === node._payload.status
338
- ? isValidElement(node._payload.value) &&
339
- node._payload.value._store &&
340
- (node._payload.value._store.validated = 1)
341
- : node._store && (node._store.validated = 1));
342
- }
343
- function isValidElement(object) {
344
- return (
345
- "object" === typeof object &&
346
- null !== object &&
347
- object.$$typeof === REACT_ELEMENT_TYPE
348
- );
349
- }
350
- var React$1 = React,
351
- REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
352
- REACT_PORTAL_TYPE = Symbol.for("react.portal"),
353
- REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
354
- REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
355
- REACT_PROFILER_TYPE = Symbol.for("react.profiler"),
356
- REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
357
- REACT_CONTEXT_TYPE = Symbol.for("react.context"),
358
- REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
359
- REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
360
- REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"),
361
- REACT_MEMO_TYPE = Symbol.for("react.memo"),
362
- REACT_LAZY_TYPE = Symbol.for("react.lazy"),
363
- REACT_ACTIVITY_TYPE = Symbol.for("react.activity"),
364
- REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"),
365
- ReactSharedInternals =
366
- React$1.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
367
- hasOwnProperty = Object.prototype.hasOwnProperty,
368
- isArrayImpl = Array.isArray,
369
- createTask = console.createTask
370
- ? console.createTask
371
- : function () {
372
- return null;
373
- };
374
- React$1 = {
375
- react_stack_bottom_frame: function (callStackForError) {
376
- return callStackForError();
377
- }
378
- };
379
- var specialPropKeyWarningShown;
380
- var didWarnAboutElementRef = {};
381
- var unknownOwnerDebugStack = React$1.react_stack_bottom_frame.bind(
382
- React$1,
383
- UnknownOwner
384
- )();
385
- var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
386
- var didWarnAboutKeySpread = {};
387
- reactJsxRuntime_development.Fragment = REACT_FRAGMENT_TYPE;
388
- reactJsxRuntime_development.jsx = function (type, config, maybeKey) {
389
- var trackActualOwner =
390
- 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
391
- return jsxDEVImpl(
392
- type,
393
- config,
394
- maybeKey,
395
- false,
396
- trackActualOwner
397
- ? Error("react-stack-top-frame")
398
- : unknownOwnerDebugStack,
399
- trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
400
- );
401
- };
402
- reactJsxRuntime_development.jsxs = function (type, config, maybeKey) {
403
- var trackActualOwner =
404
- 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
405
- return jsxDEVImpl(
406
- type,
407
- config,
408
- maybeKey,
409
- true,
410
- trackActualOwner
411
- ? Error("react-stack-top-frame")
412
- : unknownOwnerDebugStack,
413
- trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
414
- );
415
- };
416
- })();
417
- return reactJsxRuntime_development;
418
- }
419
-
420
- var hasRequiredJsxRuntime;
421
-
422
- function requireJsxRuntime () {
423
- if (hasRequiredJsxRuntime) return jsxRuntime.exports;
424
- hasRequiredJsxRuntime = 1;
425
-
426
- if (process.env.NODE_ENV === 'production') {
427
- jsxRuntime.exports = requireReactJsxRuntime_production();
428
- } else {
429
- jsxRuntime.exports = requireReactJsxRuntime_development();
430
- }
431
- return jsxRuntime.exports;
432
- }
433
-
434
- var jsxRuntimeExports = requireJsxRuntime();
435
-
436
- /*! *****************************************************************************
437
- Copyright (c) Microsoft Corporation.
438
-
439
- Permission to use, copy, modify, and/or distribute this software for any
440
- purpose with or without fee is hereby granted.
441
-
442
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
443
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
444
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
445
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
446
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
447
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
448
- PERFORMANCE OF THIS SOFTWARE.
449
- ***************************************************************************** */
450
- /* global Reflect, Promise */
451
-
452
-
453
- function __rest(s, e) {
454
- var t = {};
455
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
456
- t[p] = s[p];
457
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
458
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
459
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
460
- t[p[i]] = s[p[i]];
461
- }
462
- return t;
463
- }
464
-
465
- /**
466
- * A faster alternative to `Function#apply`, this function invokes `func`
467
- * with the `this` binding of `thisArg` and the arguments of `args`.
468
- *
469
- * @private
470
- * @param {Function} func The function to invoke.
471
- * @param {*} thisArg The `this` binding of `func`.
472
- * @param {Array} args The arguments to invoke `func` with.
473
- * @returns {*} Returns the result of `func`.
474
- */
475
-
476
- var _apply;
477
- var hasRequired_apply;
478
-
479
- function require_apply () {
480
- if (hasRequired_apply) return _apply;
481
- hasRequired_apply = 1;
482
- function apply(func, thisArg, args) {
483
- switch (args.length) {
484
- case 0: return func.call(thisArg);
485
- case 1: return func.call(thisArg, args[0]);
486
- case 2: return func.call(thisArg, args[0], args[1]);
487
- case 3: return func.call(thisArg, args[0], args[1], args[2]);
488
- }
489
- return func.apply(thisArg, args);
490
- }
491
-
492
- _apply = apply;
493
- return _apply;
494
- }
495
-
496
- /**
497
- * This method returns the first argument it receives.
498
- *
499
- * @static
500
- * @since 0.1.0
501
- * @memberOf _
502
- * @category Util
503
- * @param {*} value Any value.
504
- * @returns {*} Returns `value`.
505
- * @example
506
- *
507
- * var object = { 'a': 1 };
508
- *
509
- * console.log(_.identity(object) === object);
510
- * // => true
511
- */
512
-
513
- var identity_1;
514
- var hasRequiredIdentity;
515
-
516
- function requireIdentity () {
517
- if (hasRequiredIdentity) return identity_1;
518
- hasRequiredIdentity = 1;
519
- function identity(value) {
520
- return value;
521
- }
522
-
523
- identity_1 = identity;
524
- return identity_1;
525
- }
526
-
527
- var _overRest;
528
- var hasRequired_overRest;
529
-
530
- function require_overRest () {
531
- if (hasRequired_overRest) return _overRest;
532
- hasRequired_overRest = 1;
533
- var apply = require_apply();
534
-
535
- /* Built-in method references for those with the same name as other `lodash` methods. */
536
- var nativeMax = Math.max;
537
-
538
- /**
539
- * A specialized version of `baseRest` which transforms the rest array.
540
- *
541
- * @private
542
- * @param {Function} func The function to apply a rest parameter to.
543
- * @param {number} [start=func.length-1] The start position of the rest parameter.
544
- * @param {Function} transform The rest array transform.
545
- * @returns {Function} Returns the new function.
546
- */
547
- function overRest(func, start, transform) {
548
- start = nativeMax(start === undefined ? (func.length - 1) : start, 0);
549
- return function() {
550
- var args = arguments,
551
- index = -1,
552
- length = nativeMax(args.length - start, 0),
553
- array = Array(length);
554
-
555
- while (++index < length) {
556
- array[index] = args[start + index];
557
- }
558
- index = -1;
559
- var otherArgs = Array(start + 1);
560
- while (++index < start) {
561
- otherArgs[index] = args[index];
562
- }
563
- otherArgs[start] = transform(array);
564
- return apply(func, this, otherArgs);
565
- };
566
- }
567
-
568
- _overRest = overRest;
569
- return _overRest;
570
- }
571
-
572
- /**
573
- * Creates a function that returns `value`.
574
- *
575
- * @static
576
- * @memberOf _
577
- * @since 2.4.0
578
- * @category Util
579
- * @param {*} value The value to return from the new function.
580
- * @returns {Function} Returns the new constant function.
581
- * @example
582
- *
583
- * var objects = _.times(2, _.constant({ 'a': 1 }));
584
- *
585
- * console.log(objects);
586
- * // => [{ 'a': 1 }, { 'a': 1 }]
587
- *
588
- * console.log(objects[0] === objects[1]);
589
- * // => true
590
- */
591
-
592
- var constant_1;
593
- var hasRequiredConstant;
594
-
595
- function requireConstant () {
596
- if (hasRequiredConstant) return constant_1;
597
- hasRequiredConstant = 1;
598
- function constant(value) {
599
- return function() {
600
- return value;
601
- };
602
- }
603
-
604
- constant_1 = constant;
605
- return constant_1;
606
- }
607
-
608
- /** Detect free variable `global` from Node.js. */
609
-
610
- var _freeGlobal;
611
- var hasRequired_freeGlobal;
612
-
613
- function require_freeGlobal () {
614
- if (hasRequired_freeGlobal) return _freeGlobal;
615
- hasRequired_freeGlobal = 1;
616
- var freeGlobal = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
617
-
618
- _freeGlobal = freeGlobal;
619
- return _freeGlobal;
620
- }
621
-
622
- var _root;
623
- var hasRequired_root;
624
-
625
- function require_root () {
626
- if (hasRequired_root) return _root;
627
- hasRequired_root = 1;
628
- var freeGlobal = require_freeGlobal();
629
-
630
- /** Detect free variable `self`. */
631
- var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
632
-
633
- /** Used as a reference to the global object. */
634
- var root = freeGlobal || freeSelf || Function('return this')();
635
-
636
- _root = root;
637
- return _root;
638
- }
639
-
640
- var _Symbol;
641
- var hasRequired_Symbol;
642
-
643
- function require_Symbol () {
644
- if (hasRequired_Symbol) return _Symbol;
645
- hasRequired_Symbol = 1;
646
- var root = require_root();
647
-
648
- /** Built-in value references. */
649
- var Symbol = root.Symbol;
650
-
651
- _Symbol = Symbol;
652
- return _Symbol;
653
- }
654
-
655
- var _getRawTag;
656
- var hasRequired_getRawTag;
657
-
658
- function require_getRawTag () {
659
- if (hasRequired_getRawTag) return _getRawTag;
660
- hasRequired_getRawTag = 1;
661
- var Symbol = require_Symbol();
662
-
663
- /** Used for built-in method references. */
664
- var objectProto = Object.prototype;
665
-
666
- /** Used to check objects for own properties. */
667
- var hasOwnProperty = objectProto.hasOwnProperty;
668
-
669
- /**
670
- * Used to resolve the
671
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
672
- * of values.
673
- */
674
- var nativeObjectToString = objectProto.toString;
675
-
676
- /** Built-in value references. */
677
- var symToStringTag = Symbol ? Symbol.toStringTag : undefined;
678
-
679
- /**
680
- * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
681
- *
682
- * @private
683
- * @param {*} value The value to query.
684
- * @returns {string} Returns the raw `toStringTag`.
685
- */
686
- function getRawTag(value) {
687
- var isOwn = hasOwnProperty.call(value, symToStringTag),
688
- tag = value[symToStringTag];
689
-
690
- try {
691
- value[symToStringTag] = undefined;
692
- var unmasked = true;
693
- } catch (e) {}
694
-
695
- var result = nativeObjectToString.call(value);
696
- if (unmasked) {
697
- if (isOwn) {
698
- value[symToStringTag] = tag;
699
- } else {
700
- delete value[symToStringTag];
701
- }
702
- }
703
- return result;
704
- }
705
-
706
- _getRawTag = getRawTag;
707
- return _getRawTag;
708
- }
709
-
710
- /** Used for built-in method references. */
711
-
712
- var _objectToString;
713
- var hasRequired_objectToString;
714
-
715
- function require_objectToString () {
716
- if (hasRequired_objectToString) return _objectToString;
717
- hasRequired_objectToString = 1;
718
- var objectProto = Object.prototype;
719
-
720
- /**
721
- * Used to resolve the
722
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
723
- * of values.
724
- */
725
- var nativeObjectToString = objectProto.toString;
726
-
727
- /**
728
- * Converts `value` to a string using `Object.prototype.toString`.
729
- *
730
- * @private
731
- * @param {*} value The value to convert.
732
- * @returns {string} Returns the converted string.
733
- */
734
- function objectToString(value) {
735
- return nativeObjectToString.call(value);
736
- }
737
-
738
- _objectToString = objectToString;
739
- return _objectToString;
740
- }
741
-
742
- var _baseGetTag;
743
- var hasRequired_baseGetTag;
744
-
745
- function require_baseGetTag () {
746
- if (hasRequired_baseGetTag) return _baseGetTag;
747
- hasRequired_baseGetTag = 1;
748
- var Symbol = require_Symbol(),
749
- getRawTag = require_getRawTag(),
750
- objectToString = require_objectToString();
751
-
752
- /** `Object#toString` result references. */
753
- var nullTag = '[object Null]',
754
- undefinedTag = '[object Undefined]';
755
-
756
- /** Built-in value references. */
757
- var symToStringTag = Symbol ? Symbol.toStringTag : undefined;
758
-
759
- /**
760
- * The base implementation of `getTag` without fallbacks for buggy environments.
761
- *
762
- * @private
763
- * @param {*} value The value to query.
764
- * @returns {string} Returns the `toStringTag`.
765
- */
766
- function baseGetTag(value) {
767
- if (value == null) {
768
- return value === undefined ? undefinedTag : nullTag;
769
- }
770
- return (symToStringTag && symToStringTag in Object(value))
771
- ? getRawTag(value)
772
- : objectToString(value);
773
- }
774
-
775
- _baseGetTag = baseGetTag;
776
- return _baseGetTag;
777
- }
778
-
779
- /**
780
- * Checks if `value` is the
781
- * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
782
- * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
783
- *
784
- * @static
785
- * @memberOf _
786
- * @since 0.1.0
787
- * @category Lang
788
- * @param {*} value The value to check.
789
- * @returns {boolean} Returns `true` if `value` is an object, else `false`.
790
- * @example
791
- *
792
- * _.isObject({});
793
- * // => true
794
- *
795
- * _.isObject([1, 2, 3]);
796
- * // => true
797
- *
798
- * _.isObject(_.noop);
799
- * // => true
800
- *
801
- * _.isObject(null);
802
- * // => false
803
- */
804
-
805
- var isObject_1;
806
- var hasRequiredIsObject;
807
-
808
- function requireIsObject () {
809
- if (hasRequiredIsObject) return isObject_1;
810
- hasRequiredIsObject = 1;
811
- function isObject(value) {
812
- var type = typeof value;
813
- return value != null && (type == 'object' || type == 'function');
814
- }
815
-
816
- isObject_1 = isObject;
817
- return isObject_1;
818
- }
819
-
820
- var isFunction_1;
821
- var hasRequiredIsFunction;
822
-
823
- function requireIsFunction () {
824
- if (hasRequiredIsFunction) return isFunction_1;
825
- hasRequiredIsFunction = 1;
826
- var baseGetTag = require_baseGetTag(),
827
- isObject = requireIsObject();
828
-
829
- /** `Object#toString` result references. */
830
- var asyncTag = '[object AsyncFunction]',
831
- funcTag = '[object Function]',
832
- genTag = '[object GeneratorFunction]',
833
- proxyTag = '[object Proxy]';
834
-
835
- /**
836
- * Checks if `value` is classified as a `Function` object.
837
- *
838
- * @static
839
- * @memberOf _
840
- * @since 0.1.0
841
- * @category Lang
842
- * @param {*} value The value to check.
843
- * @returns {boolean} Returns `true` if `value` is a function, else `false`.
844
- * @example
845
- *
846
- * _.isFunction(_);
847
- * // => true
848
- *
849
- * _.isFunction(/abc/);
850
- * // => false
851
- */
852
- function isFunction(value) {
853
- if (!isObject(value)) {
854
- return false;
855
- }
856
- // The use of `Object#toString` avoids issues with the `typeof` operator
857
- // in Safari 9 which returns 'object' for typed arrays and other constructors.
858
- var tag = baseGetTag(value);
859
- return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
860
- }
861
-
862
- isFunction_1 = isFunction;
863
- return isFunction_1;
864
- }
865
-
866
- var _coreJsData;
867
- var hasRequired_coreJsData;
868
-
869
- function require_coreJsData () {
870
- if (hasRequired_coreJsData) return _coreJsData;
871
- hasRequired_coreJsData = 1;
872
- var root = require_root();
873
-
874
- /** Used to detect overreaching core-js shims. */
875
- var coreJsData = root['__core-js_shared__'];
876
-
877
- _coreJsData = coreJsData;
878
- return _coreJsData;
879
- }
880
-
881
- var _isMasked;
882
- var hasRequired_isMasked;
883
-
884
- function require_isMasked () {
885
- if (hasRequired_isMasked) return _isMasked;
886
- hasRequired_isMasked = 1;
887
- var coreJsData = require_coreJsData();
888
-
889
- /** Used to detect methods masquerading as native. */
890
- var maskSrcKey = (function() {
891
- var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
892
- return uid ? ('Symbol(src)_1.' + uid) : '';
893
- }());
894
-
895
- /**
896
- * Checks if `func` has its source masked.
897
- *
898
- * @private
899
- * @param {Function} func The function to check.
900
- * @returns {boolean} Returns `true` if `func` is masked, else `false`.
901
- */
902
- function isMasked(func) {
903
- return !!maskSrcKey && (maskSrcKey in func);
904
- }
905
-
906
- _isMasked = isMasked;
907
- return _isMasked;
908
- }
909
-
910
- /** Used for built-in method references. */
911
-
912
- var _toSource;
913
- var hasRequired_toSource;
914
-
915
- function require_toSource () {
916
- if (hasRequired_toSource) return _toSource;
917
- hasRequired_toSource = 1;
918
- var funcProto = Function.prototype;
919
-
920
- /** Used to resolve the decompiled source of functions. */
921
- var funcToString = funcProto.toString;
922
-
923
- /**
924
- * Converts `func` to its source code.
925
- *
926
- * @private
927
- * @param {Function} func The function to convert.
928
- * @returns {string} Returns the source code.
929
- */
930
- function toSource(func) {
931
- if (func != null) {
932
- try {
933
- return funcToString.call(func);
934
- } catch (e) {}
935
- try {
936
- return (func + '');
937
- } catch (e) {}
938
- }
939
- return '';
940
- }
941
-
942
- _toSource = toSource;
943
- return _toSource;
944
- }
945
-
946
- var _baseIsNative;
947
- var hasRequired_baseIsNative;
948
-
949
- function require_baseIsNative () {
950
- if (hasRequired_baseIsNative) return _baseIsNative;
951
- hasRequired_baseIsNative = 1;
952
- var isFunction = requireIsFunction(),
953
- isMasked = require_isMasked(),
954
- isObject = requireIsObject(),
955
- toSource = require_toSource();
956
-
957
- /**
958
- * Used to match `RegExp`
959
- * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
960
- */
961
- var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
962
-
963
- /** Used to detect host constructors (Safari). */
964
- var reIsHostCtor = /^\[object .+?Constructor\]$/;
965
-
966
- /** Used for built-in method references. */
967
- var funcProto = Function.prototype,
968
- objectProto = Object.prototype;
969
-
970
- /** Used to resolve the decompiled source of functions. */
971
- var funcToString = funcProto.toString;
972
-
973
- /** Used to check objects for own properties. */
974
- var hasOwnProperty = objectProto.hasOwnProperty;
975
-
976
- /** Used to detect if a method is native. */
977
- var reIsNative = RegExp('^' +
978
- funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&')
979
- .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
980
- );
981
-
982
- /**
983
- * The base implementation of `_.isNative` without bad shim checks.
984
- *
985
- * @private
986
- * @param {*} value The value to check.
987
- * @returns {boolean} Returns `true` if `value` is a native function,
988
- * else `false`.
989
- */
990
- function baseIsNative(value) {
991
- if (!isObject(value) || isMasked(value)) {
992
- return false;
993
- }
994
- var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
995
- return pattern.test(toSource(value));
996
- }
997
-
998
- _baseIsNative = baseIsNative;
999
- return _baseIsNative;
1000
- }
1001
-
1002
- /**
1003
- * Gets the value at `key` of `object`.
1004
- *
1005
- * @private
1006
- * @param {Object} [object] The object to query.
1007
- * @param {string} key The key of the property to get.
1008
- * @returns {*} Returns the property value.
1009
- */
1010
-
1011
- var _getValue;
1012
- var hasRequired_getValue;
1013
-
1014
- function require_getValue () {
1015
- if (hasRequired_getValue) return _getValue;
1016
- hasRequired_getValue = 1;
1017
- function getValue(object, key) {
1018
- return object == null ? undefined : object[key];
1019
- }
1020
-
1021
- _getValue = getValue;
1022
- return _getValue;
1023
- }
1024
-
1025
- var _getNative;
1026
- var hasRequired_getNative;
1027
-
1028
- function require_getNative () {
1029
- if (hasRequired_getNative) return _getNative;
1030
- hasRequired_getNative = 1;
1031
- var baseIsNative = require_baseIsNative(),
1032
- getValue = require_getValue();
1033
-
1034
- /**
1035
- * Gets the native function at `key` of `object`.
1036
- *
1037
- * @private
1038
- * @param {Object} object The object to query.
1039
- * @param {string} key The key of the method to get.
1040
- * @returns {*} Returns the function if it's native, else `undefined`.
1041
- */
1042
- function getNative(object, key) {
1043
- var value = getValue(object, key);
1044
- return baseIsNative(value) ? value : undefined;
1045
- }
1046
-
1047
- _getNative = getNative;
1048
- return _getNative;
1049
- }
1050
-
1051
- var _defineProperty;
1052
- var hasRequired_defineProperty;
1053
-
1054
- function require_defineProperty () {
1055
- if (hasRequired_defineProperty) return _defineProperty;
1056
- hasRequired_defineProperty = 1;
1057
- var getNative = require_getNative();
1058
-
1059
- var defineProperty = (function() {
1060
- try {
1061
- var func = getNative(Object, 'defineProperty');
1062
- func({}, '', {});
1063
- return func;
1064
- } catch (e) {}
1065
- }());
1066
-
1067
- _defineProperty = defineProperty;
1068
- return _defineProperty;
1069
- }
1070
-
1071
- var _baseSetToString;
1072
- var hasRequired_baseSetToString;
1073
-
1074
- function require_baseSetToString () {
1075
- if (hasRequired_baseSetToString) return _baseSetToString;
1076
- hasRequired_baseSetToString = 1;
1077
- var constant = requireConstant(),
1078
- defineProperty = require_defineProperty(),
1079
- identity = requireIdentity();
1080
-
1081
- /**
1082
- * The base implementation of `setToString` without support for hot loop shorting.
1083
- *
1084
- * @private
1085
- * @param {Function} func The function to modify.
1086
- * @param {Function} string The `toString` result.
1087
- * @returns {Function} Returns `func`.
1088
- */
1089
- var baseSetToString = !defineProperty ? identity : function(func, string) {
1090
- return defineProperty(func, 'toString', {
1091
- 'configurable': true,
1092
- 'enumerable': false,
1093
- 'value': constant(string),
1094
- 'writable': true
1095
- });
1096
- };
1097
-
1098
- _baseSetToString = baseSetToString;
1099
- return _baseSetToString;
1100
- }
1101
-
1102
- /** Used to detect hot functions by number of calls within a span of milliseconds. */
1103
-
1104
- var _shortOut;
1105
- var hasRequired_shortOut;
1106
-
1107
- function require_shortOut () {
1108
- if (hasRequired_shortOut) return _shortOut;
1109
- hasRequired_shortOut = 1;
1110
- var HOT_COUNT = 800,
1111
- HOT_SPAN = 16;
1112
-
1113
- /* Built-in method references for those with the same name as other `lodash` methods. */
1114
- var nativeNow = Date.now;
1115
-
1116
- /**
1117
- * Creates a function that'll short out and invoke `identity` instead
1118
- * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`
1119
- * milliseconds.
1120
- *
1121
- * @private
1122
- * @param {Function} func The function to restrict.
1123
- * @returns {Function} Returns the new shortable function.
1124
- */
1125
- function shortOut(func) {
1126
- var count = 0,
1127
- lastCalled = 0;
1128
-
1129
- return function() {
1130
- var stamp = nativeNow(),
1131
- remaining = HOT_SPAN - (stamp - lastCalled);
1132
-
1133
- lastCalled = stamp;
1134
- if (remaining > 0) {
1135
- if (++count >= HOT_COUNT) {
1136
- return arguments[0];
1137
- }
1138
- } else {
1139
- count = 0;
1140
- }
1141
- return func.apply(undefined, arguments);
1142
- };
1143
- }
1144
-
1145
- _shortOut = shortOut;
1146
- return _shortOut;
1147
- }
1148
-
1149
- var _setToString;
1150
- var hasRequired_setToString;
1151
-
1152
- function require_setToString () {
1153
- if (hasRequired_setToString) return _setToString;
1154
- hasRequired_setToString = 1;
1155
- var baseSetToString = require_baseSetToString(),
1156
- shortOut = require_shortOut();
1157
-
1158
- /**
1159
- * Sets the `toString` method of `func` to return `string`.
1160
- *
1161
- * @private
1162
- * @param {Function} func The function to modify.
1163
- * @param {Function} string The `toString` result.
1164
- * @returns {Function} Returns `func`.
1165
- */
1166
- var setToString = shortOut(baseSetToString);
1167
-
1168
- _setToString = setToString;
1169
- return _setToString;
1170
- }
1171
-
1172
- var _baseRest;
1173
- var hasRequired_baseRest;
1174
-
1175
- function require_baseRest () {
1176
- if (hasRequired_baseRest) return _baseRest;
1177
- hasRequired_baseRest = 1;
1178
- var identity = requireIdentity(),
1179
- overRest = require_overRest(),
1180
- setToString = require_setToString();
1181
-
1182
- /**
1183
- * The base implementation of `_.rest` which doesn't validate or coerce arguments.
1184
- *
1185
- * @private
1186
- * @param {Function} func The function to apply a rest parameter to.
1187
- * @param {number} [start=func.length-1] The start position of the rest parameter.
1188
- * @returns {Function} Returns the new function.
1189
- */
1190
- function baseRest(func, start) {
1191
- return setToString(overRest(func, start, identity), func + '');
1192
- }
1193
-
1194
- _baseRest = baseRest;
1195
- return _baseRest;
1196
- }
1197
-
1198
- /**
1199
- * Removes all key-value entries from the list cache.
1200
- *
1201
- * @private
1202
- * @name clear
1203
- * @memberOf ListCache
1204
- */
1205
-
1206
- var _listCacheClear;
1207
- var hasRequired_listCacheClear;
1208
-
1209
- function require_listCacheClear () {
1210
- if (hasRequired_listCacheClear) return _listCacheClear;
1211
- hasRequired_listCacheClear = 1;
1212
- function listCacheClear() {
1213
- this.__data__ = [];
1214
- this.size = 0;
1215
- }
1216
-
1217
- _listCacheClear = listCacheClear;
1218
- return _listCacheClear;
1219
- }
1220
-
1221
- /**
1222
- * Performs a
1223
- * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
1224
- * comparison between two values to determine if they are equivalent.
1225
- *
1226
- * @static
1227
- * @memberOf _
1228
- * @since 4.0.0
1229
- * @category Lang
1230
- * @param {*} value The value to compare.
1231
- * @param {*} other The other value to compare.
1232
- * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
1233
- * @example
1234
- *
1235
- * var object = { 'a': 1 };
1236
- * var other = { 'a': 1 };
1237
- *
1238
- * _.eq(object, object);
1239
- * // => true
1240
- *
1241
- * _.eq(object, other);
1242
- * // => false
1243
- *
1244
- * _.eq('a', 'a');
1245
- * // => true
1246
- *
1247
- * _.eq('a', Object('a'));
1248
- * // => false
1249
- *
1250
- * _.eq(NaN, NaN);
1251
- * // => true
1252
- */
1253
-
1254
- var eq_1;
1255
- var hasRequiredEq;
1256
-
1257
- function requireEq () {
1258
- if (hasRequiredEq) return eq_1;
1259
- hasRequiredEq = 1;
1260
- function eq(value, other) {
1261
- return value === other || (value !== value && other !== other);
1262
- }
1263
-
1264
- eq_1 = eq;
1265
- return eq_1;
1266
- }
1267
-
1268
- var _assocIndexOf;
1269
- var hasRequired_assocIndexOf;
1270
-
1271
- function require_assocIndexOf () {
1272
- if (hasRequired_assocIndexOf) return _assocIndexOf;
1273
- hasRequired_assocIndexOf = 1;
1274
- var eq = requireEq();
1275
-
1276
- /**
1277
- * Gets the index at which the `key` is found in `array` of key-value pairs.
1278
- *
1279
- * @private
1280
- * @param {Array} array The array to inspect.
1281
- * @param {*} key The key to search for.
1282
- * @returns {number} Returns the index of the matched value, else `-1`.
1283
- */
1284
- function assocIndexOf(array, key) {
1285
- var length = array.length;
1286
- while (length--) {
1287
- if (eq(array[length][0], key)) {
1288
- return length;
1289
- }
1290
- }
1291
- return -1;
1292
- }
1293
-
1294
- _assocIndexOf = assocIndexOf;
1295
- return _assocIndexOf;
1296
- }
1297
-
1298
- var _listCacheDelete;
1299
- var hasRequired_listCacheDelete;
1300
-
1301
- function require_listCacheDelete () {
1302
- if (hasRequired_listCacheDelete) return _listCacheDelete;
1303
- hasRequired_listCacheDelete = 1;
1304
- var assocIndexOf = require_assocIndexOf();
1305
-
1306
- /** Used for built-in method references. */
1307
- var arrayProto = Array.prototype;
1308
-
1309
- /** Built-in value references. */
1310
- var splice = arrayProto.splice;
1311
-
1312
- /**
1313
- * Removes `key` and its value from the list cache.
1314
- *
1315
- * @private
1316
- * @name delete
1317
- * @memberOf ListCache
1318
- * @param {string} key The key of the value to remove.
1319
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
1320
- */
1321
- function listCacheDelete(key) {
1322
- var data = this.__data__,
1323
- index = assocIndexOf(data, key);
1324
-
1325
- if (index < 0) {
1326
- return false;
1327
- }
1328
- var lastIndex = data.length - 1;
1329
- if (index == lastIndex) {
1330
- data.pop();
1331
- } else {
1332
- splice.call(data, index, 1);
1333
- }
1334
- --this.size;
1335
- return true;
1336
- }
1337
-
1338
- _listCacheDelete = listCacheDelete;
1339
- return _listCacheDelete;
1340
- }
1341
-
1342
- var _listCacheGet;
1343
- var hasRequired_listCacheGet;
1344
-
1345
- function require_listCacheGet () {
1346
- if (hasRequired_listCacheGet) return _listCacheGet;
1347
- hasRequired_listCacheGet = 1;
1348
- var assocIndexOf = require_assocIndexOf();
1349
-
1350
- /**
1351
- * Gets the list cache value for `key`.
1352
- *
1353
- * @private
1354
- * @name get
1355
- * @memberOf ListCache
1356
- * @param {string} key The key of the value to get.
1357
- * @returns {*} Returns the entry value.
1358
- */
1359
- function listCacheGet(key) {
1360
- var data = this.__data__,
1361
- index = assocIndexOf(data, key);
1362
-
1363
- return index < 0 ? undefined : data[index][1];
1364
- }
1365
-
1366
- _listCacheGet = listCacheGet;
1367
- return _listCacheGet;
1368
- }
1369
-
1370
- var _listCacheHas;
1371
- var hasRequired_listCacheHas;
1372
-
1373
- function require_listCacheHas () {
1374
- if (hasRequired_listCacheHas) return _listCacheHas;
1375
- hasRequired_listCacheHas = 1;
1376
- var assocIndexOf = require_assocIndexOf();
1377
-
1378
- /**
1379
- * Checks if a list cache value for `key` exists.
1380
- *
1381
- * @private
1382
- * @name has
1383
- * @memberOf ListCache
1384
- * @param {string} key The key of the entry to check.
1385
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
1386
- */
1387
- function listCacheHas(key) {
1388
- return assocIndexOf(this.__data__, key) > -1;
1389
- }
1390
-
1391
- _listCacheHas = listCacheHas;
1392
- return _listCacheHas;
1393
- }
1394
-
1395
- var _listCacheSet;
1396
- var hasRequired_listCacheSet;
1397
-
1398
- function require_listCacheSet () {
1399
- if (hasRequired_listCacheSet) return _listCacheSet;
1400
- hasRequired_listCacheSet = 1;
1401
- var assocIndexOf = require_assocIndexOf();
1402
-
1403
- /**
1404
- * Sets the list cache `key` to `value`.
1405
- *
1406
- * @private
1407
- * @name set
1408
- * @memberOf ListCache
1409
- * @param {string} key The key of the value to set.
1410
- * @param {*} value The value to set.
1411
- * @returns {Object} Returns the list cache instance.
1412
- */
1413
- function listCacheSet(key, value) {
1414
- var data = this.__data__,
1415
- index = assocIndexOf(data, key);
1416
-
1417
- if (index < 0) {
1418
- ++this.size;
1419
- data.push([key, value]);
1420
- } else {
1421
- data[index][1] = value;
1422
- }
1423
- return this;
1424
- }
1425
-
1426
- _listCacheSet = listCacheSet;
1427
- return _listCacheSet;
1428
- }
1429
-
1430
- var _ListCache;
1431
- var hasRequired_ListCache;
1432
-
1433
- function require_ListCache () {
1434
- if (hasRequired_ListCache) return _ListCache;
1435
- hasRequired_ListCache = 1;
1436
- var listCacheClear = require_listCacheClear(),
1437
- listCacheDelete = require_listCacheDelete(),
1438
- listCacheGet = require_listCacheGet(),
1439
- listCacheHas = require_listCacheHas(),
1440
- listCacheSet = require_listCacheSet();
1441
-
1442
- /**
1443
- * Creates an list cache object.
1444
- *
1445
- * @private
1446
- * @constructor
1447
- * @param {Array} [entries] The key-value pairs to cache.
1448
- */
1449
- function ListCache(entries) {
1450
- var index = -1,
1451
- length = entries == null ? 0 : entries.length;
1452
-
1453
- this.clear();
1454
- while (++index < length) {
1455
- var entry = entries[index];
1456
- this.set(entry[0], entry[1]);
1457
- }
1458
- }
1459
-
1460
- // Add methods to `ListCache`.
1461
- ListCache.prototype.clear = listCacheClear;
1462
- ListCache.prototype['delete'] = listCacheDelete;
1463
- ListCache.prototype.get = listCacheGet;
1464
- ListCache.prototype.has = listCacheHas;
1465
- ListCache.prototype.set = listCacheSet;
1466
-
1467
- _ListCache = ListCache;
1468
- return _ListCache;
1469
- }
1470
-
1471
- var _stackClear;
1472
- var hasRequired_stackClear;
1473
-
1474
- function require_stackClear () {
1475
- if (hasRequired_stackClear) return _stackClear;
1476
- hasRequired_stackClear = 1;
1477
- var ListCache = require_ListCache();
1478
-
1479
- /**
1480
- * Removes all key-value entries from the stack.
1481
- *
1482
- * @private
1483
- * @name clear
1484
- * @memberOf Stack
1485
- */
1486
- function stackClear() {
1487
- this.__data__ = new ListCache;
1488
- this.size = 0;
1489
- }
1490
-
1491
- _stackClear = stackClear;
1492
- return _stackClear;
1493
- }
1494
-
1495
- /**
1496
- * Removes `key` and its value from the stack.
1497
- *
1498
- * @private
1499
- * @name delete
1500
- * @memberOf Stack
1501
- * @param {string} key The key of the value to remove.
1502
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
1503
- */
1504
-
1505
- var _stackDelete;
1506
- var hasRequired_stackDelete;
1507
-
1508
- function require_stackDelete () {
1509
- if (hasRequired_stackDelete) return _stackDelete;
1510
- hasRequired_stackDelete = 1;
1511
- function stackDelete(key) {
1512
- var data = this.__data__,
1513
- result = data['delete'](key);
1514
-
1515
- this.size = data.size;
1516
- return result;
1517
- }
1518
-
1519
- _stackDelete = stackDelete;
1520
- return _stackDelete;
1521
- }
1522
-
1523
- /**
1524
- * Gets the stack value for `key`.
1525
- *
1526
- * @private
1527
- * @name get
1528
- * @memberOf Stack
1529
- * @param {string} key The key of the value to get.
1530
- * @returns {*} Returns the entry value.
1531
- */
1532
-
1533
- var _stackGet;
1534
- var hasRequired_stackGet;
1535
-
1536
- function require_stackGet () {
1537
- if (hasRequired_stackGet) return _stackGet;
1538
- hasRequired_stackGet = 1;
1539
- function stackGet(key) {
1540
- return this.__data__.get(key);
1541
- }
1542
-
1543
- _stackGet = stackGet;
1544
- return _stackGet;
1545
- }
1546
-
1547
- /**
1548
- * Checks if a stack value for `key` exists.
1549
- *
1550
- * @private
1551
- * @name has
1552
- * @memberOf Stack
1553
- * @param {string} key The key of the entry to check.
1554
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
1555
- */
1556
-
1557
- var _stackHas;
1558
- var hasRequired_stackHas;
1559
-
1560
- function require_stackHas () {
1561
- if (hasRequired_stackHas) return _stackHas;
1562
- hasRequired_stackHas = 1;
1563
- function stackHas(key) {
1564
- return this.__data__.has(key);
1565
- }
1566
-
1567
- _stackHas = stackHas;
1568
- return _stackHas;
1569
- }
1570
-
1571
- var _Map;
1572
- var hasRequired_Map;
1573
-
1574
- function require_Map () {
1575
- if (hasRequired_Map) return _Map;
1576
- hasRequired_Map = 1;
1577
- var getNative = require_getNative(),
1578
- root = require_root();
1579
-
1580
- /* Built-in method references that are verified to be native. */
1581
- var Map = getNative(root, 'Map');
1582
-
1583
- _Map = Map;
1584
- return _Map;
1585
- }
1586
-
1587
- var _nativeCreate;
1588
- var hasRequired_nativeCreate;
1589
-
1590
- function require_nativeCreate () {
1591
- if (hasRequired_nativeCreate) return _nativeCreate;
1592
- hasRequired_nativeCreate = 1;
1593
- var getNative = require_getNative();
1594
-
1595
- /* Built-in method references that are verified to be native. */
1596
- var nativeCreate = getNative(Object, 'create');
1597
-
1598
- _nativeCreate = nativeCreate;
1599
- return _nativeCreate;
1600
- }
1601
-
1602
- var _hashClear;
1603
- var hasRequired_hashClear;
1604
-
1605
- function require_hashClear () {
1606
- if (hasRequired_hashClear) return _hashClear;
1607
- hasRequired_hashClear = 1;
1608
- var nativeCreate = require_nativeCreate();
1609
-
1610
- /**
1611
- * Removes all key-value entries from the hash.
1612
- *
1613
- * @private
1614
- * @name clear
1615
- * @memberOf Hash
1616
- */
1617
- function hashClear() {
1618
- this.__data__ = nativeCreate ? nativeCreate(null) : {};
1619
- this.size = 0;
1620
- }
1621
-
1622
- _hashClear = hashClear;
1623
- return _hashClear;
1624
- }
1625
-
1626
- /**
1627
- * Removes `key` and its value from the hash.
1628
- *
1629
- * @private
1630
- * @name delete
1631
- * @memberOf Hash
1632
- * @param {Object} hash The hash to modify.
1633
- * @param {string} key The key of the value to remove.
1634
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
1635
- */
1636
-
1637
- var _hashDelete;
1638
- var hasRequired_hashDelete;
1639
-
1640
- function require_hashDelete () {
1641
- if (hasRequired_hashDelete) return _hashDelete;
1642
- hasRequired_hashDelete = 1;
1643
- function hashDelete(key) {
1644
- var result = this.has(key) && delete this.__data__[key];
1645
- this.size -= result ? 1 : 0;
1646
- return result;
1647
- }
1648
-
1649
- _hashDelete = hashDelete;
1650
- return _hashDelete;
1651
- }
1652
-
1653
- var _hashGet;
1654
- var hasRequired_hashGet;
1655
-
1656
- function require_hashGet () {
1657
- if (hasRequired_hashGet) return _hashGet;
1658
- hasRequired_hashGet = 1;
1659
- var nativeCreate = require_nativeCreate();
1660
-
1661
- /** Used to stand-in for `undefined` hash values. */
1662
- var HASH_UNDEFINED = '__lodash_hash_undefined__';
1663
-
1664
- /** Used for built-in method references. */
1665
- var objectProto = Object.prototype;
1666
-
1667
- /** Used to check objects for own properties. */
1668
- var hasOwnProperty = objectProto.hasOwnProperty;
1669
-
1670
- /**
1671
- * Gets the hash value for `key`.
1672
- *
1673
- * @private
1674
- * @name get
1675
- * @memberOf Hash
1676
- * @param {string} key The key of the value to get.
1677
- * @returns {*} Returns the entry value.
1678
- */
1679
- function hashGet(key) {
1680
- var data = this.__data__;
1681
- if (nativeCreate) {
1682
- var result = data[key];
1683
- return result === HASH_UNDEFINED ? undefined : result;
1684
- }
1685
- return hasOwnProperty.call(data, key) ? data[key] : undefined;
1686
- }
1687
-
1688
- _hashGet = hashGet;
1689
- return _hashGet;
1690
- }
1691
-
1692
- var _hashHas;
1693
- var hasRequired_hashHas;
1694
-
1695
- function require_hashHas () {
1696
- if (hasRequired_hashHas) return _hashHas;
1697
- hasRequired_hashHas = 1;
1698
- var nativeCreate = require_nativeCreate();
1699
-
1700
- /** Used for built-in method references. */
1701
- var objectProto = Object.prototype;
1702
-
1703
- /** Used to check objects for own properties. */
1704
- var hasOwnProperty = objectProto.hasOwnProperty;
1705
-
1706
- /**
1707
- * Checks if a hash value for `key` exists.
1708
- *
1709
- * @private
1710
- * @name has
1711
- * @memberOf Hash
1712
- * @param {string} key The key of the entry to check.
1713
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
1714
- */
1715
- function hashHas(key) {
1716
- var data = this.__data__;
1717
- return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);
1718
- }
1719
-
1720
- _hashHas = hashHas;
1721
- return _hashHas;
1722
- }
1723
-
1724
- var _hashSet;
1725
- var hasRequired_hashSet;
1726
-
1727
- function require_hashSet () {
1728
- if (hasRequired_hashSet) return _hashSet;
1729
- hasRequired_hashSet = 1;
1730
- var nativeCreate = require_nativeCreate();
1731
-
1732
- /** Used to stand-in for `undefined` hash values. */
1733
- var HASH_UNDEFINED = '__lodash_hash_undefined__';
1734
-
1735
- /**
1736
- * Sets the hash `key` to `value`.
1737
- *
1738
- * @private
1739
- * @name set
1740
- * @memberOf Hash
1741
- * @param {string} key The key of the value to set.
1742
- * @param {*} value The value to set.
1743
- * @returns {Object} Returns the hash instance.
1744
- */
1745
- function hashSet(key, value) {
1746
- var data = this.__data__;
1747
- this.size += this.has(key) ? 0 : 1;
1748
- data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
1749
- return this;
1750
- }
1751
-
1752
- _hashSet = hashSet;
1753
- return _hashSet;
1754
- }
1755
-
1756
- var _Hash;
1757
- var hasRequired_Hash;
1758
-
1759
- function require_Hash () {
1760
- if (hasRequired_Hash) return _Hash;
1761
- hasRequired_Hash = 1;
1762
- var hashClear = require_hashClear(),
1763
- hashDelete = require_hashDelete(),
1764
- hashGet = require_hashGet(),
1765
- hashHas = require_hashHas(),
1766
- hashSet = require_hashSet();
1767
-
1768
- /**
1769
- * Creates a hash object.
1770
- *
1771
- * @private
1772
- * @constructor
1773
- * @param {Array} [entries] The key-value pairs to cache.
1774
- */
1775
- function Hash(entries) {
1776
- var index = -1,
1777
- length = entries == null ? 0 : entries.length;
1778
-
1779
- this.clear();
1780
- while (++index < length) {
1781
- var entry = entries[index];
1782
- this.set(entry[0], entry[1]);
1783
- }
1784
- }
1785
-
1786
- // Add methods to `Hash`.
1787
- Hash.prototype.clear = hashClear;
1788
- Hash.prototype['delete'] = hashDelete;
1789
- Hash.prototype.get = hashGet;
1790
- Hash.prototype.has = hashHas;
1791
- Hash.prototype.set = hashSet;
1792
-
1793
- _Hash = Hash;
1794
- return _Hash;
1795
- }
1796
-
1797
- var _mapCacheClear;
1798
- var hasRequired_mapCacheClear;
1799
-
1800
- function require_mapCacheClear () {
1801
- if (hasRequired_mapCacheClear) return _mapCacheClear;
1802
- hasRequired_mapCacheClear = 1;
1803
- var Hash = require_Hash(),
1804
- ListCache = require_ListCache(),
1805
- Map = require_Map();
1806
-
1807
- /**
1808
- * Removes all key-value entries from the map.
1809
- *
1810
- * @private
1811
- * @name clear
1812
- * @memberOf MapCache
1813
- */
1814
- function mapCacheClear() {
1815
- this.size = 0;
1816
- this.__data__ = {
1817
- 'hash': new Hash,
1818
- 'map': new (Map || ListCache),
1819
- 'string': new Hash
1820
- };
1821
- }
1822
-
1823
- _mapCacheClear = mapCacheClear;
1824
- return _mapCacheClear;
1825
- }
1826
-
1827
- /**
1828
- * Checks if `value` is suitable for use as unique object key.
1829
- *
1830
- * @private
1831
- * @param {*} value The value to check.
1832
- * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
1833
- */
1834
-
1835
- var _isKeyable;
1836
- var hasRequired_isKeyable;
1837
-
1838
- function require_isKeyable () {
1839
- if (hasRequired_isKeyable) return _isKeyable;
1840
- hasRequired_isKeyable = 1;
1841
- function isKeyable(value) {
1842
- var type = typeof value;
1843
- return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
1844
- ? (value !== '__proto__')
1845
- : (value === null);
1846
- }
1847
-
1848
- _isKeyable = isKeyable;
1849
- return _isKeyable;
1850
- }
1851
-
1852
- var _getMapData;
1853
- var hasRequired_getMapData;
1854
-
1855
- function require_getMapData () {
1856
- if (hasRequired_getMapData) return _getMapData;
1857
- hasRequired_getMapData = 1;
1858
- var isKeyable = require_isKeyable();
1859
-
1860
- /**
1861
- * Gets the data for `map`.
1862
- *
1863
- * @private
1864
- * @param {Object} map The map to query.
1865
- * @param {string} key The reference key.
1866
- * @returns {*} Returns the map data.
1867
- */
1868
- function getMapData(map, key) {
1869
- var data = map.__data__;
1870
- return isKeyable(key)
1871
- ? data[typeof key == 'string' ? 'string' : 'hash']
1872
- : data.map;
1873
- }
1874
-
1875
- _getMapData = getMapData;
1876
- return _getMapData;
1877
- }
1878
-
1879
- var _mapCacheDelete;
1880
- var hasRequired_mapCacheDelete;
1881
-
1882
- function require_mapCacheDelete () {
1883
- if (hasRequired_mapCacheDelete) return _mapCacheDelete;
1884
- hasRequired_mapCacheDelete = 1;
1885
- var getMapData = require_getMapData();
1886
-
1887
- /**
1888
- * Removes `key` and its value from the map.
1889
- *
1890
- * @private
1891
- * @name delete
1892
- * @memberOf MapCache
1893
- * @param {string} key The key of the value to remove.
1894
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
1895
- */
1896
- function mapCacheDelete(key) {
1897
- var result = getMapData(this, key)['delete'](key);
1898
- this.size -= result ? 1 : 0;
1899
- return result;
1900
- }
1901
-
1902
- _mapCacheDelete = mapCacheDelete;
1903
- return _mapCacheDelete;
1904
- }
1905
-
1906
- var _mapCacheGet;
1907
- var hasRequired_mapCacheGet;
1908
-
1909
- function require_mapCacheGet () {
1910
- if (hasRequired_mapCacheGet) return _mapCacheGet;
1911
- hasRequired_mapCacheGet = 1;
1912
- var getMapData = require_getMapData();
1913
-
1914
- /**
1915
- * Gets the map value for `key`.
1916
- *
1917
- * @private
1918
- * @name get
1919
- * @memberOf MapCache
1920
- * @param {string} key The key of the value to get.
1921
- * @returns {*} Returns the entry value.
1922
- */
1923
- function mapCacheGet(key) {
1924
- return getMapData(this, key).get(key);
1925
- }
1926
-
1927
- _mapCacheGet = mapCacheGet;
1928
- return _mapCacheGet;
1929
- }
1930
-
1931
- var _mapCacheHas;
1932
- var hasRequired_mapCacheHas;
1933
-
1934
- function require_mapCacheHas () {
1935
- if (hasRequired_mapCacheHas) return _mapCacheHas;
1936
- hasRequired_mapCacheHas = 1;
1937
- var getMapData = require_getMapData();
1938
-
1939
- /**
1940
- * Checks if a map value for `key` exists.
1941
- *
1942
- * @private
1943
- * @name has
1944
- * @memberOf MapCache
1945
- * @param {string} key The key of the entry to check.
1946
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
1947
- */
1948
- function mapCacheHas(key) {
1949
- return getMapData(this, key).has(key);
1950
- }
1951
-
1952
- _mapCacheHas = mapCacheHas;
1953
- return _mapCacheHas;
1954
- }
1955
-
1956
- var _mapCacheSet;
1957
- var hasRequired_mapCacheSet;
1958
-
1959
- function require_mapCacheSet () {
1960
- if (hasRequired_mapCacheSet) return _mapCacheSet;
1961
- hasRequired_mapCacheSet = 1;
1962
- var getMapData = require_getMapData();
1963
-
1964
- /**
1965
- * Sets the map `key` to `value`.
1966
- *
1967
- * @private
1968
- * @name set
1969
- * @memberOf MapCache
1970
- * @param {string} key The key of the value to set.
1971
- * @param {*} value The value to set.
1972
- * @returns {Object} Returns the map cache instance.
1973
- */
1974
- function mapCacheSet(key, value) {
1975
- var data = getMapData(this, key),
1976
- size = data.size;
1977
-
1978
- data.set(key, value);
1979
- this.size += data.size == size ? 0 : 1;
1980
- return this;
1981
- }
1982
-
1983
- _mapCacheSet = mapCacheSet;
1984
- return _mapCacheSet;
1985
- }
1986
-
1987
- var _MapCache;
1988
- var hasRequired_MapCache;
1989
-
1990
- function require_MapCache () {
1991
- if (hasRequired_MapCache) return _MapCache;
1992
- hasRequired_MapCache = 1;
1993
- var mapCacheClear = require_mapCacheClear(),
1994
- mapCacheDelete = require_mapCacheDelete(),
1995
- mapCacheGet = require_mapCacheGet(),
1996
- mapCacheHas = require_mapCacheHas(),
1997
- mapCacheSet = require_mapCacheSet();
1998
-
1999
- /**
2000
- * Creates a map cache object to store key-value pairs.
2001
- *
2002
- * @private
2003
- * @constructor
2004
- * @param {Array} [entries] The key-value pairs to cache.
2005
- */
2006
- function MapCache(entries) {
2007
- var index = -1,
2008
- length = entries == null ? 0 : entries.length;
2009
-
2010
- this.clear();
2011
- while (++index < length) {
2012
- var entry = entries[index];
2013
- this.set(entry[0], entry[1]);
2014
- }
2015
- }
2016
-
2017
- // Add methods to `MapCache`.
2018
- MapCache.prototype.clear = mapCacheClear;
2019
- MapCache.prototype['delete'] = mapCacheDelete;
2020
- MapCache.prototype.get = mapCacheGet;
2021
- MapCache.prototype.has = mapCacheHas;
2022
- MapCache.prototype.set = mapCacheSet;
2023
-
2024
- _MapCache = MapCache;
2025
- return _MapCache;
2026
- }
2027
-
2028
- var _stackSet;
2029
- var hasRequired_stackSet;
2030
-
2031
- function require_stackSet () {
2032
- if (hasRequired_stackSet) return _stackSet;
2033
- hasRequired_stackSet = 1;
2034
- var ListCache = require_ListCache(),
2035
- Map = require_Map(),
2036
- MapCache = require_MapCache();
2037
-
2038
- /** Used as the size to enable large array optimizations. */
2039
- var LARGE_ARRAY_SIZE = 200;
2040
-
2041
- /**
2042
- * Sets the stack `key` to `value`.
2043
- *
2044
- * @private
2045
- * @name set
2046
- * @memberOf Stack
2047
- * @param {string} key The key of the value to set.
2048
- * @param {*} value The value to set.
2049
- * @returns {Object} Returns the stack cache instance.
2050
- */
2051
- function stackSet(key, value) {
2052
- var data = this.__data__;
2053
- if (data instanceof ListCache) {
2054
- var pairs = data.__data__;
2055
- if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {
2056
- pairs.push([key, value]);
2057
- this.size = ++data.size;
2058
- return this;
2059
- }
2060
- data = this.__data__ = new MapCache(pairs);
2061
- }
2062
- data.set(key, value);
2063
- this.size = data.size;
2064
- return this;
2065
- }
2066
-
2067
- _stackSet = stackSet;
2068
- return _stackSet;
2069
- }
2070
-
2071
- var _Stack;
2072
- var hasRequired_Stack;
2073
-
2074
- function require_Stack () {
2075
- if (hasRequired_Stack) return _Stack;
2076
- hasRequired_Stack = 1;
2077
- var ListCache = require_ListCache(),
2078
- stackClear = require_stackClear(),
2079
- stackDelete = require_stackDelete(),
2080
- stackGet = require_stackGet(),
2081
- stackHas = require_stackHas(),
2082
- stackSet = require_stackSet();
2083
-
2084
- /**
2085
- * Creates a stack cache object to store key-value pairs.
2086
- *
2087
- * @private
2088
- * @constructor
2089
- * @param {Array} [entries] The key-value pairs to cache.
2090
- */
2091
- function Stack(entries) {
2092
- var data = this.__data__ = new ListCache(entries);
2093
- this.size = data.size;
2094
- }
2095
-
2096
- // Add methods to `Stack`.
2097
- Stack.prototype.clear = stackClear;
2098
- Stack.prototype['delete'] = stackDelete;
2099
- Stack.prototype.get = stackGet;
2100
- Stack.prototype.has = stackHas;
2101
- Stack.prototype.set = stackSet;
2102
-
2103
- _Stack = Stack;
2104
- return _Stack;
2105
- }
2106
-
2107
- var _baseAssignValue;
2108
- var hasRequired_baseAssignValue;
2109
-
2110
- function require_baseAssignValue () {
2111
- if (hasRequired_baseAssignValue) return _baseAssignValue;
2112
- hasRequired_baseAssignValue = 1;
2113
- var defineProperty = require_defineProperty();
2114
-
2115
- /**
2116
- * The base implementation of `assignValue` and `assignMergeValue` without
2117
- * value checks.
2118
- *
2119
- * @private
2120
- * @param {Object} object The object to modify.
2121
- * @param {string} key The key of the property to assign.
2122
- * @param {*} value The value to assign.
2123
- */
2124
- function baseAssignValue(object, key, value) {
2125
- if (key == '__proto__' && defineProperty) {
2126
- defineProperty(object, key, {
2127
- 'configurable': true,
2128
- 'enumerable': true,
2129
- 'value': value,
2130
- 'writable': true
2131
- });
2132
- } else {
2133
- object[key] = value;
2134
- }
2135
- }
2136
-
2137
- _baseAssignValue = baseAssignValue;
2138
- return _baseAssignValue;
2139
- }
2140
-
2141
- var _assignMergeValue;
2142
- var hasRequired_assignMergeValue;
2143
-
2144
- function require_assignMergeValue () {
2145
- if (hasRequired_assignMergeValue) return _assignMergeValue;
2146
- hasRequired_assignMergeValue = 1;
2147
- var baseAssignValue = require_baseAssignValue(),
2148
- eq = requireEq();
2149
-
2150
- /**
2151
- * This function is like `assignValue` except that it doesn't assign
2152
- * `undefined` values.
2153
- *
2154
- * @private
2155
- * @param {Object} object The object to modify.
2156
- * @param {string} key The key of the property to assign.
2157
- * @param {*} value The value to assign.
2158
- */
2159
- function assignMergeValue(object, key, value) {
2160
- if ((value !== undefined && !eq(object[key], value)) ||
2161
- (value === undefined && !(key in object))) {
2162
- baseAssignValue(object, key, value);
2163
- }
2164
- }
2165
-
2166
- _assignMergeValue = assignMergeValue;
2167
- return _assignMergeValue;
2168
- }
2169
-
2170
- /**
2171
- * Creates a base function for methods like `_.forIn` and `_.forOwn`.
2172
- *
2173
- * @private
2174
- * @param {boolean} [fromRight] Specify iterating from right to left.
2175
- * @returns {Function} Returns the new base function.
2176
- */
2177
-
2178
- var _createBaseFor;
2179
- var hasRequired_createBaseFor;
2180
-
2181
- function require_createBaseFor () {
2182
- if (hasRequired_createBaseFor) return _createBaseFor;
2183
- hasRequired_createBaseFor = 1;
2184
- function createBaseFor(fromRight) {
2185
- return function(object, iteratee, keysFunc) {
2186
- var index = -1,
2187
- iterable = Object(object),
2188
- props = keysFunc(object),
2189
- length = props.length;
2190
-
2191
- while (length--) {
2192
- var key = props[fromRight ? length : ++index];
2193
- if (iteratee(iterable[key], key, iterable) === false) {
2194
- break;
2195
- }
2196
- }
2197
- return object;
2198
- };
2199
- }
2200
-
2201
- _createBaseFor = createBaseFor;
2202
- return _createBaseFor;
2203
- }
2204
-
2205
- var _baseFor;
2206
- var hasRequired_baseFor;
2207
-
2208
- function require_baseFor () {
2209
- if (hasRequired_baseFor) return _baseFor;
2210
- hasRequired_baseFor = 1;
2211
- var createBaseFor = require_createBaseFor();
2212
-
2213
- /**
2214
- * The base implementation of `baseForOwn` which iterates over `object`
2215
- * properties returned by `keysFunc` and invokes `iteratee` for each property.
2216
- * Iteratee functions may exit iteration early by explicitly returning `false`.
2217
- *
2218
- * @private
2219
- * @param {Object} object The object to iterate over.
2220
- * @param {Function} iteratee The function invoked per iteration.
2221
- * @param {Function} keysFunc The function to get the keys of `object`.
2222
- * @returns {Object} Returns `object`.
2223
- */
2224
- var baseFor = createBaseFor();
2225
-
2226
- _baseFor = baseFor;
2227
- return _baseFor;
2228
- }
2229
-
2230
- var _cloneBuffer = {exports: {}};
2231
-
2232
- _cloneBuffer.exports;
2233
-
2234
- var hasRequired_cloneBuffer;
2235
-
2236
- function require_cloneBuffer () {
2237
- if (hasRequired_cloneBuffer) return _cloneBuffer.exports;
2238
- hasRequired_cloneBuffer = 1;
2239
- (function (module, exports$1) {
2240
- var root = require_root();
2241
-
2242
- /** Detect free variable `exports`. */
2243
- var freeExports = exports$1 && !exports$1.nodeType && exports$1;
2244
-
2245
- /** Detect free variable `module`. */
2246
- var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
2247
-
2248
- /** Detect the popular CommonJS extension `module.exports`. */
2249
- var moduleExports = freeModule && freeModule.exports === freeExports;
2250
-
2251
- /** Built-in value references. */
2252
- var Buffer = moduleExports ? root.Buffer : undefined,
2253
- allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined;
2254
-
2255
- /**
2256
- * Creates a clone of `buffer`.
2257
- *
2258
- * @private
2259
- * @param {Buffer} buffer The buffer to clone.
2260
- * @param {boolean} [isDeep] Specify a deep clone.
2261
- * @returns {Buffer} Returns the cloned buffer.
2262
- */
2263
- function cloneBuffer(buffer, isDeep) {
2264
- if (isDeep) {
2265
- return buffer.slice();
2266
- }
2267
- var length = buffer.length,
2268
- result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
2269
-
2270
- buffer.copy(result);
2271
- return result;
2272
- }
2273
-
2274
- module.exports = cloneBuffer;
2275
- } (_cloneBuffer, _cloneBuffer.exports));
2276
- return _cloneBuffer.exports;
2277
- }
2278
-
2279
- var _Uint8Array;
2280
- var hasRequired_Uint8Array;
2281
-
2282
- function require_Uint8Array () {
2283
- if (hasRequired_Uint8Array) return _Uint8Array;
2284
- hasRequired_Uint8Array = 1;
2285
- var root = require_root();
2286
-
2287
- /** Built-in value references. */
2288
- var Uint8Array = root.Uint8Array;
2289
-
2290
- _Uint8Array = Uint8Array;
2291
- return _Uint8Array;
2292
- }
2293
-
2294
- var _cloneArrayBuffer;
2295
- var hasRequired_cloneArrayBuffer;
2296
-
2297
- function require_cloneArrayBuffer () {
2298
- if (hasRequired_cloneArrayBuffer) return _cloneArrayBuffer;
2299
- hasRequired_cloneArrayBuffer = 1;
2300
- var Uint8Array = require_Uint8Array();
2301
-
2302
- /**
2303
- * Creates a clone of `arrayBuffer`.
2304
- *
2305
- * @private
2306
- * @param {ArrayBuffer} arrayBuffer The array buffer to clone.
2307
- * @returns {ArrayBuffer} Returns the cloned array buffer.
2308
- */
2309
- function cloneArrayBuffer(arrayBuffer) {
2310
- var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
2311
- new Uint8Array(result).set(new Uint8Array(arrayBuffer));
2312
- return result;
2313
- }
2314
-
2315
- _cloneArrayBuffer = cloneArrayBuffer;
2316
- return _cloneArrayBuffer;
2317
- }
2318
-
2319
- var _cloneTypedArray;
2320
- var hasRequired_cloneTypedArray;
2321
-
2322
- function require_cloneTypedArray () {
2323
- if (hasRequired_cloneTypedArray) return _cloneTypedArray;
2324
- hasRequired_cloneTypedArray = 1;
2325
- var cloneArrayBuffer = require_cloneArrayBuffer();
2326
-
2327
- /**
2328
- * Creates a clone of `typedArray`.
2329
- *
2330
- * @private
2331
- * @param {Object} typedArray The typed array to clone.
2332
- * @param {boolean} [isDeep] Specify a deep clone.
2333
- * @returns {Object} Returns the cloned typed array.
2334
- */
2335
- function cloneTypedArray(typedArray, isDeep) {
2336
- var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;
2337
- return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
2338
- }
2339
-
2340
- _cloneTypedArray = cloneTypedArray;
2341
- return _cloneTypedArray;
2342
- }
2343
-
2344
- /**
2345
- * Copies the values of `source` to `array`.
2346
- *
2347
- * @private
2348
- * @param {Array} source The array to copy values from.
2349
- * @param {Array} [array=[]] The array to copy values to.
2350
- * @returns {Array} Returns `array`.
2351
- */
2352
-
2353
- var _copyArray;
2354
- var hasRequired_copyArray;
2355
-
2356
- function require_copyArray () {
2357
- if (hasRequired_copyArray) return _copyArray;
2358
- hasRequired_copyArray = 1;
2359
- function copyArray(source, array) {
2360
- var index = -1,
2361
- length = source.length;
2362
-
2363
- array || (array = Array(length));
2364
- while (++index < length) {
2365
- array[index] = source[index];
2366
- }
2367
- return array;
2368
- }
2369
-
2370
- _copyArray = copyArray;
2371
- return _copyArray;
2372
- }
2373
-
2374
- var _baseCreate;
2375
- var hasRequired_baseCreate;
2376
-
2377
- function require_baseCreate () {
2378
- if (hasRequired_baseCreate) return _baseCreate;
2379
- hasRequired_baseCreate = 1;
2380
- var isObject = requireIsObject();
2381
-
2382
- /** Built-in value references. */
2383
- var objectCreate = Object.create;
2384
-
2385
- /**
2386
- * The base implementation of `_.create` without support for assigning
2387
- * properties to the created object.
2388
- *
2389
- * @private
2390
- * @param {Object} proto The object to inherit from.
2391
- * @returns {Object} Returns the new object.
2392
- */
2393
- var baseCreate = (function() {
2394
- function object() {}
2395
- return function(proto) {
2396
- if (!isObject(proto)) {
2397
- return {};
2398
- }
2399
- if (objectCreate) {
2400
- return objectCreate(proto);
2401
- }
2402
- object.prototype = proto;
2403
- var result = new object;
2404
- object.prototype = undefined;
2405
- return result;
2406
- };
2407
- }());
2408
-
2409
- _baseCreate = baseCreate;
2410
- return _baseCreate;
2411
- }
2412
-
2413
- /**
2414
- * Creates a unary function that invokes `func` with its argument transformed.
2415
- *
2416
- * @private
2417
- * @param {Function} func The function to wrap.
2418
- * @param {Function} transform The argument transform.
2419
- * @returns {Function} Returns the new function.
2420
- */
2421
-
2422
- var _overArg;
2423
- var hasRequired_overArg;
2424
-
2425
- function require_overArg () {
2426
- if (hasRequired_overArg) return _overArg;
2427
- hasRequired_overArg = 1;
2428
- function overArg(func, transform) {
2429
- return function(arg) {
2430
- return func(transform(arg));
2431
- };
2432
- }
2433
-
2434
- _overArg = overArg;
2435
- return _overArg;
2436
- }
2437
-
2438
- var _getPrototype;
2439
- var hasRequired_getPrototype;
2440
-
2441
- function require_getPrototype () {
2442
- if (hasRequired_getPrototype) return _getPrototype;
2443
- hasRequired_getPrototype = 1;
2444
- var overArg = require_overArg();
2445
-
2446
- /** Built-in value references. */
2447
- var getPrototype = overArg(Object.getPrototypeOf, Object);
2448
-
2449
- _getPrototype = getPrototype;
2450
- return _getPrototype;
2451
- }
2452
-
2453
- /** Used for built-in method references. */
2454
-
2455
- var _isPrototype;
2456
- var hasRequired_isPrototype;
2457
-
2458
- function require_isPrototype () {
2459
- if (hasRequired_isPrototype) return _isPrototype;
2460
- hasRequired_isPrototype = 1;
2461
- var objectProto = Object.prototype;
2462
-
2463
- /**
2464
- * Checks if `value` is likely a prototype object.
2465
- *
2466
- * @private
2467
- * @param {*} value The value to check.
2468
- * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
2469
- */
2470
- function isPrototype(value) {
2471
- var Ctor = value && value.constructor,
2472
- proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;
2473
-
2474
- return value === proto;
2475
- }
2476
-
2477
- _isPrototype = isPrototype;
2478
- return _isPrototype;
2479
- }
2480
-
2481
- var _initCloneObject;
2482
- var hasRequired_initCloneObject;
2483
-
2484
- function require_initCloneObject () {
2485
- if (hasRequired_initCloneObject) return _initCloneObject;
2486
- hasRequired_initCloneObject = 1;
2487
- var baseCreate = require_baseCreate(),
2488
- getPrototype = require_getPrototype(),
2489
- isPrototype = require_isPrototype();
2490
-
2491
- /**
2492
- * Initializes an object clone.
2493
- *
2494
- * @private
2495
- * @param {Object} object The object to clone.
2496
- * @returns {Object} Returns the initialized clone.
2497
- */
2498
- function initCloneObject(object) {
2499
- return (typeof object.constructor == 'function' && !isPrototype(object))
2500
- ? baseCreate(getPrototype(object))
2501
- : {};
2502
- }
2503
-
2504
- _initCloneObject = initCloneObject;
2505
- return _initCloneObject;
2506
- }
2507
-
2508
- /**
2509
- * Checks if `value` is object-like. A value is object-like if it's not `null`
2510
- * and has a `typeof` result of "object".
2511
- *
2512
- * @static
2513
- * @memberOf _
2514
- * @since 4.0.0
2515
- * @category Lang
2516
- * @param {*} value The value to check.
2517
- * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
2518
- * @example
2519
- *
2520
- * _.isObjectLike({});
2521
- * // => true
2522
- *
2523
- * _.isObjectLike([1, 2, 3]);
2524
- * // => true
2525
- *
2526
- * _.isObjectLike(_.noop);
2527
- * // => false
2528
- *
2529
- * _.isObjectLike(null);
2530
- * // => false
2531
- */
2532
-
2533
- var isObjectLike_1;
2534
- var hasRequiredIsObjectLike;
2535
-
2536
- function requireIsObjectLike () {
2537
- if (hasRequiredIsObjectLike) return isObjectLike_1;
2538
- hasRequiredIsObjectLike = 1;
2539
- function isObjectLike(value) {
2540
- return value != null && typeof value == 'object';
2541
- }
2542
-
2543
- isObjectLike_1 = isObjectLike;
2544
- return isObjectLike_1;
2545
- }
2546
-
2547
- var _baseIsArguments;
2548
- var hasRequired_baseIsArguments;
2549
-
2550
- function require_baseIsArguments () {
2551
- if (hasRequired_baseIsArguments) return _baseIsArguments;
2552
- hasRequired_baseIsArguments = 1;
2553
- var baseGetTag = require_baseGetTag(),
2554
- isObjectLike = requireIsObjectLike();
2555
-
2556
- /** `Object#toString` result references. */
2557
- var argsTag = '[object Arguments]';
2558
-
2559
- /**
2560
- * The base implementation of `_.isArguments`.
2561
- *
2562
- * @private
2563
- * @param {*} value The value to check.
2564
- * @returns {boolean} Returns `true` if `value` is an `arguments` object,
2565
- */
2566
- function baseIsArguments(value) {
2567
- return isObjectLike(value) && baseGetTag(value) == argsTag;
2568
- }
2569
-
2570
- _baseIsArguments = baseIsArguments;
2571
- return _baseIsArguments;
2572
- }
2573
-
2574
- var isArguments_1;
2575
- var hasRequiredIsArguments;
2576
-
2577
- function requireIsArguments () {
2578
- if (hasRequiredIsArguments) return isArguments_1;
2579
- hasRequiredIsArguments = 1;
2580
- var baseIsArguments = require_baseIsArguments(),
2581
- isObjectLike = requireIsObjectLike();
2582
-
2583
- /** Used for built-in method references. */
2584
- var objectProto = Object.prototype;
2585
-
2586
- /** Used to check objects for own properties. */
2587
- var hasOwnProperty = objectProto.hasOwnProperty;
2588
-
2589
- /** Built-in value references. */
2590
- var propertyIsEnumerable = objectProto.propertyIsEnumerable;
2591
-
2592
- /**
2593
- * Checks if `value` is likely an `arguments` object.
2594
- *
2595
- * @static
2596
- * @memberOf _
2597
- * @since 0.1.0
2598
- * @category Lang
2599
- * @param {*} value The value to check.
2600
- * @returns {boolean} Returns `true` if `value` is an `arguments` object,
2601
- * else `false`.
2602
- * @example
2603
- *
2604
- * _.isArguments(function() { return arguments; }());
2605
- * // => true
2606
- *
2607
- * _.isArguments([1, 2, 3]);
2608
- * // => false
2609
- */
2610
- var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {
2611
- return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&
2612
- !propertyIsEnumerable.call(value, 'callee');
2613
- };
2614
-
2615
- isArguments_1 = isArguments;
2616
- return isArguments_1;
2617
- }
2618
-
2619
- /**
2620
- * Checks if `value` is classified as an `Array` object.
2621
- *
2622
- * @static
2623
- * @memberOf _
2624
- * @since 0.1.0
2625
- * @category Lang
2626
- * @param {*} value The value to check.
2627
- * @returns {boolean} Returns `true` if `value` is an array, else `false`.
2628
- * @example
2629
- *
2630
- * _.isArray([1, 2, 3]);
2631
- * // => true
2632
- *
2633
- * _.isArray(document.body.children);
2634
- * // => false
2635
- *
2636
- * _.isArray('abc');
2637
- * // => false
2638
- *
2639
- * _.isArray(_.noop);
2640
- * // => false
2641
- */
2642
-
2643
- var isArray_1;
2644
- var hasRequiredIsArray;
2645
-
2646
- function requireIsArray () {
2647
- if (hasRequiredIsArray) return isArray_1;
2648
- hasRequiredIsArray = 1;
2649
- var isArray = Array.isArray;
2650
-
2651
- isArray_1 = isArray;
2652
- return isArray_1;
2653
- }
2654
-
2655
- /** Used as references for various `Number` constants. */
2656
-
2657
- var isLength_1;
2658
- var hasRequiredIsLength;
2659
-
2660
- function requireIsLength () {
2661
- if (hasRequiredIsLength) return isLength_1;
2662
- hasRequiredIsLength = 1;
2663
- var MAX_SAFE_INTEGER = 9007199254740991;
2664
-
2665
- /**
2666
- * Checks if `value` is a valid array-like length.
2667
- *
2668
- * **Note:** This method is loosely based on
2669
- * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
2670
- *
2671
- * @static
2672
- * @memberOf _
2673
- * @since 4.0.0
2674
- * @category Lang
2675
- * @param {*} value The value to check.
2676
- * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
2677
- * @example
2678
- *
2679
- * _.isLength(3);
2680
- * // => true
2681
- *
2682
- * _.isLength(Number.MIN_VALUE);
2683
- * // => false
2684
- *
2685
- * _.isLength(Infinity);
2686
- * // => false
2687
- *
2688
- * _.isLength('3');
2689
- * // => false
2690
- */
2691
- function isLength(value) {
2692
- return typeof value == 'number' &&
2693
- value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
2694
- }
2695
-
2696
- isLength_1 = isLength;
2697
- return isLength_1;
2698
- }
2699
-
2700
- var isArrayLike_1;
2701
- var hasRequiredIsArrayLike;
2702
-
2703
- function requireIsArrayLike () {
2704
- if (hasRequiredIsArrayLike) return isArrayLike_1;
2705
- hasRequiredIsArrayLike = 1;
2706
- var isFunction = requireIsFunction(),
2707
- isLength = requireIsLength();
2708
-
2709
- /**
2710
- * Checks if `value` is array-like. A value is considered array-like if it's
2711
- * not a function and has a `value.length` that's an integer greater than or
2712
- * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
2713
- *
2714
- * @static
2715
- * @memberOf _
2716
- * @since 4.0.0
2717
- * @category Lang
2718
- * @param {*} value The value to check.
2719
- * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
2720
- * @example
2721
- *
2722
- * _.isArrayLike([1, 2, 3]);
2723
- * // => true
2724
- *
2725
- * _.isArrayLike(document.body.children);
2726
- * // => true
2727
- *
2728
- * _.isArrayLike('abc');
2729
- * // => true
2730
- *
2731
- * _.isArrayLike(_.noop);
2732
- * // => false
2733
- */
2734
- function isArrayLike(value) {
2735
- return value != null && isLength(value.length) && !isFunction(value);
2736
- }
2737
-
2738
- isArrayLike_1 = isArrayLike;
2739
- return isArrayLike_1;
2740
- }
2741
-
2742
- var isArrayLikeObject_1;
2743
- var hasRequiredIsArrayLikeObject;
2744
-
2745
- function requireIsArrayLikeObject () {
2746
- if (hasRequiredIsArrayLikeObject) return isArrayLikeObject_1;
2747
- hasRequiredIsArrayLikeObject = 1;
2748
- var isArrayLike = requireIsArrayLike(),
2749
- isObjectLike = requireIsObjectLike();
2750
-
2751
- /**
2752
- * This method is like `_.isArrayLike` except that it also checks if `value`
2753
- * is an object.
2754
- *
2755
- * @static
2756
- * @memberOf _
2757
- * @since 4.0.0
2758
- * @category Lang
2759
- * @param {*} value The value to check.
2760
- * @returns {boolean} Returns `true` if `value` is an array-like object,
2761
- * else `false`.
2762
- * @example
2763
- *
2764
- * _.isArrayLikeObject([1, 2, 3]);
2765
- * // => true
2766
- *
2767
- * _.isArrayLikeObject(document.body.children);
2768
- * // => true
2769
- *
2770
- * _.isArrayLikeObject('abc');
2771
- * // => false
2772
- *
2773
- * _.isArrayLikeObject(_.noop);
2774
- * // => false
2775
- */
2776
- function isArrayLikeObject(value) {
2777
- return isObjectLike(value) && isArrayLike(value);
2778
- }
2779
-
2780
- isArrayLikeObject_1 = isArrayLikeObject;
2781
- return isArrayLikeObject_1;
2782
- }
2783
-
2784
- var isBuffer = {exports: {}};
2785
-
2786
- /**
2787
- * This method returns `false`.
2788
- *
2789
- * @static
2790
- * @memberOf _
2791
- * @since 4.13.0
2792
- * @category Util
2793
- * @returns {boolean} Returns `false`.
2794
- * @example
2795
- *
2796
- * _.times(2, _.stubFalse);
2797
- * // => [false, false]
2798
- */
2799
-
2800
- var stubFalse_1;
2801
- var hasRequiredStubFalse;
2802
-
2803
- function requireStubFalse () {
2804
- if (hasRequiredStubFalse) return stubFalse_1;
2805
- hasRequiredStubFalse = 1;
2806
- function stubFalse() {
2807
- return false;
2808
- }
2809
-
2810
- stubFalse_1 = stubFalse;
2811
- return stubFalse_1;
2812
- }
2813
-
2814
- isBuffer.exports;
2815
-
2816
- var hasRequiredIsBuffer;
2817
-
2818
- function requireIsBuffer () {
2819
- if (hasRequiredIsBuffer) return isBuffer.exports;
2820
- hasRequiredIsBuffer = 1;
2821
- (function (module, exports$1) {
2822
- var root = require_root(),
2823
- stubFalse = requireStubFalse();
2824
-
2825
- /** Detect free variable `exports`. */
2826
- var freeExports = exports$1 && !exports$1.nodeType && exports$1;
2827
-
2828
- /** Detect free variable `module`. */
2829
- var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
2830
-
2831
- /** Detect the popular CommonJS extension `module.exports`. */
2832
- var moduleExports = freeModule && freeModule.exports === freeExports;
2833
-
2834
- /** Built-in value references. */
2835
- var Buffer = moduleExports ? root.Buffer : undefined;
2836
-
2837
- /* Built-in method references for those with the same name as other `lodash` methods. */
2838
- var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;
2839
-
2840
- /**
2841
- * Checks if `value` is a buffer.
2842
- *
2843
- * @static
2844
- * @memberOf _
2845
- * @since 4.3.0
2846
- * @category Lang
2847
- * @param {*} value The value to check.
2848
- * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
2849
- * @example
2850
- *
2851
- * _.isBuffer(new Buffer(2));
2852
- * // => true
2853
- *
2854
- * _.isBuffer(new Uint8Array(2));
2855
- * // => false
2856
- */
2857
- var isBuffer = nativeIsBuffer || stubFalse;
2858
-
2859
- module.exports = isBuffer;
2860
- } (isBuffer, isBuffer.exports));
2861
- return isBuffer.exports;
2862
- }
2863
-
2864
- var isPlainObject_1;
2865
- var hasRequiredIsPlainObject;
2866
-
2867
- function requireIsPlainObject () {
2868
- if (hasRequiredIsPlainObject) return isPlainObject_1;
2869
- hasRequiredIsPlainObject = 1;
2870
- var baseGetTag = require_baseGetTag(),
2871
- getPrototype = require_getPrototype(),
2872
- isObjectLike = requireIsObjectLike();
2873
-
2874
- /** `Object#toString` result references. */
2875
- var objectTag = '[object Object]';
2876
-
2877
- /** Used for built-in method references. */
2878
- var funcProto = Function.prototype,
2879
- objectProto = Object.prototype;
2880
-
2881
- /** Used to resolve the decompiled source of functions. */
2882
- var funcToString = funcProto.toString;
2883
-
2884
- /** Used to check objects for own properties. */
2885
- var hasOwnProperty = objectProto.hasOwnProperty;
2886
-
2887
- /** Used to infer the `Object` constructor. */
2888
- var objectCtorString = funcToString.call(Object);
2889
-
2890
- /**
2891
- * Checks if `value` is a plain object, that is, an object created by the
2892
- * `Object` constructor or one with a `[[Prototype]]` of `null`.
2893
- *
2894
- * @static
2895
- * @memberOf _
2896
- * @since 0.8.0
2897
- * @category Lang
2898
- * @param {*} value The value to check.
2899
- * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
2900
- * @example
2901
- *
2902
- * function Foo() {
2903
- * this.a = 1;
2904
- * }
2905
- *
2906
- * _.isPlainObject(new Foo);
2907
- * // => false
2908
- *
2909
- * _.isPlainObject([1, 2, 3]);
2910
- * // => false
2911
- *
2912
- * _.isPlainObject({ 'x': 0, 'y': 0 });
2913
- * // => true
2914
- *
2915
- * _.isPlainObject(Object.create(null));
2916
- * // => true
2917
- */
2918
- function isPlainObject(value) {
2919
- if (!isObjectLike(value) || baseGetTag(value) != objectTag) {
2920
- return false;
2921
- }
2922
- var proto = getPrototype(value);
2923
- if (proto === null) {
2924
- return true;
2925
- }
2926
- var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;
2927
- return typeof Ctor == 'function' && Ctor instanceof Ctor &&
2928
- funcToString.call(Ctor) == objectCtorString;
2929
- }
2930
-
2931
- isPlainObject_1 = isPlainObject;
2932
- return isPlainObject_1;
2933
- }
2934
-
2935
- var _baseIsTypedArray;
2936
- var hasRequired_baseIsTypedArray;
2937
-
2938
- function require_baseIsTypedArray () {
2939
- if (hasRequired_baseIsTypedArray) return _baseIsTypedArray;
2940
- hasRequired_baseIsTypedArray = 1;
2941
- var baseGetTag = require_baseGetTag(),
2942
- isLength = requireIsLength(),
2943
- isObjectLike = requireIsObjectLike();
2944
-
2945
- /** `Object#toString` result references. */
2946
- var argsTag = '[object Arguments]',
2947
- arrayTag = '[object Array]',
2948
- boolTag = '[object Boolean]',
2949
- dateTag = '[object Date]',
2950
- errorTag = '[object Error]',
2951
- funcTag = '[object Function]',
2952
- mapTag = '[object Map]',
2953
- numberTag = '[object Number]',
2954
- objectTag = '[object Object]',
2955
- regexpTag = '[object RegExp]',
2956
- setTag = '[object Set]',
2957
- stringTag = '[object String]',
2958
- weakMapTag = '[object WeakMap]';
2959
-
2960
- var arrayBufferTag = '[object ArrayBuffer]',
2961
- dataViewTag = '[object DataView]',
2962
- float32Tag = '[object Float32Array]',
2963
- float64Tag = '[object Float64Array]',
2964
- int8Tag = '[object Int8Array]',
2965
- int16Tag = '[object Int16Array]',
2966
- int32Tag = '[object Int32Array]',
2967
- uint8Tag = '[object Uint8Array]',
2968
- uint8ClampedTag = '[object Uint8ClampedArray]',
2969
- uint16Tag = '[object Uint16Array]',
2970
- uint32Tag = '[object Uint32Array]';
2971
-
2972
- /** Used to identify `toStringTag` values of typed arrays. */
2973
- var typedArrayTags = {};
2974
- typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =
2975
- typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =
2976
- typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =
2977
- typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =
2978
- typedArrayTags[uint32Tag] = true;
2979
- typedArrayTags[argsTag] = typedArrayTags[arrayTag] =
2980
- typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =
2981
- typedArrayTags[dataViewTag] = typedArrayTags[dateTag] =
2982
- typedArrayTags[errorTag] = typedArrayTags[funcTag] =
2983
- typedArrayTags[mapTag] = typedArrayTags[numberTag] =
2984
- typedArrayTags[objectTag] = typedArrayTags[regexpTag] =
2985
- typedArrayTags[setTag] = typedArrayTags[stringTag] =
2986
- typedArrayTags[weakMapTag] = false;
2987
-
2988
- /**
2989
- * The base implementation of `_.isTypedArray` without Node.js optimizations.
2990
- *
2991
- * @private
2992
- * @param {*} value The value to check.
2993
- * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
2994
- */
2995
- function baseIsTypedArray(value) {
2996
- return isObjectLike(value) &&
2997
- isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
2998
- }
2999
-
3000
- _baseIsTypedArray = baseIsTypedArray;
3001
- return _baseIsTypedArray;
3002
- }
3003
-
3004
- /**
3005
- * The base implementation of `_.unary` without support for storing metadata.
3006
- *
3007
- * @private
3008
- * @param {Function} func The function to cap arguments for.
3009
- * @returns {Function} Returns the new capped function.
3010
- */
3011
-
3012
- var _baseUnary;
3013
- var hasRequired_baseUnary;
3014
-
3015
- function require_baseUnary () {
3016
- if (hasRequired_baseUnary) return _baseUnary;
3017
- hasRequired_baseUnary = 1;
3018
- function baseUnary(func) {
3019
- return function(value) {
3020
- return func(value);
3021
- };
3022
- }
3023
-
3024
- _baseUnary = baseUnary;
3025
- return _baseUnary;
3026
- }
3027
-
3028
- var _nodeUtil = {exports: {}};
3029
-
3030
- _nodeUtil.exports;
3031
-
3032
- var hasRequired_nodeUtil;
3033
-
3034
- function require_nodeUtil () {
3035
- if (hasRequired_nodeUtil) return _nodeUtil.exports;
3036
- hasRequired_nodeUtil = 1;
3037
- (function (module, exports$1) {
3038
- var freeGlobal = require_freeGlobal();
3039
-
3040
- /** Detect free variable `exports`. */
3041
- var freeExports = exports$1 && !exports$1.nodeType && exports$1;
3042
-
3043
- /** Detect free variable `module`. */
3044
- var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
3045
-
3046
- /** Detect the popular CommonJS extension `module.exports`. */
3047
- var moduleExports = freeModule && freeModule.exports === freeExports;
3048
-
3049
- /** Detect free variable `process` from Node.js. */
3050
- var freeProcess = moduleExports && freeGlobal.process;
3051
-
3052
- /** Used to access faster Node.js helpers. */
3053
- var nodeUtil = (function() {
3054
- try {
3055
- // Use `util.types` for Node.js 10+.
3056
- var types = freeModule && freeModule.require && freeModule.require('util').types;
3057
-
3058
- if (types) {
3059
- return types;
3060
- }
3061
-
3062
- // Legacy `process.binding('util')` for Node.js < 10.
3063
- return freeProcess && freeProcess.binding && freeProcess.binding('util');
3064
- } catch (e) {}
3065
- }());
3066
-
3067
- module.exports = nodeUtil;
3068
- } (_nodeUtil, _nodeUtil.exports));
3069
- return _nodeUtil.exports;
3070
- }
3071
-
3072
- var isTypedArray_1;
3073
- var hasRequiredIsTypedArray;
3074
-
3075
- function requireIsTypedArray () {
3076
- if (hasRequiredIsTypedArray) return isTypedArray_1;
3077
- hasRequiredIsTypedArray = 1;
3078
- var baseIsTypedArray = require_baseIsTypedArray(),
3079
- baseUnary = require_baseUnary(),
3080
- nodeUtil = require_nodeUtil();
3081
-
3082
- /* Node.js helper references. */
3083
- var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
3084
-
3085
- /**
3086
- * Checks if `value` is classified as a typed array.
3087
- *
3088
- * @static
3089
- * @memberOf _
3090
- * @since 3.0.0
3091
- * @category Lang
3092
- * @param {*} value The value to check.
3093
- * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
3094
- * @example
3095
- *
3096
- * _.isTypedArray(new Uint8Array);
3097
- * // => true
3098
- *
3099
- * _.isTypedArray([]);
3100
- * // => false
3101
- */
3102
- var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
3103
-
3104
- isTypedArray_1 = isTypedArray;
3105
- return isTypedArray_1;
3106
- }
3107
-
3108
- /**
3109
- * Gets the value at `key`, unless `key` is "__proto__" or "constructor".
3110
- *
3111
- * @private
3112
- * @param {Object} object The object to query.
3113
- * @param {string} key The key of the property to get.
3114
- * @returns {*} Returns the property value.
3115
- */
3116
-
3117
- var _safeGet;
3118
- var hasRequired_safeGet;
3119
-
3120
- function require_safeGet () {
3121
- if (hasRequired_safeGet) return _safeGet;
3122
- hasRequired_safeGet = 1;
3123
- function safeGet(object, key) {
3124
- if (key === 'constructor' && typeof object[key] === 'function') {
3125
- return;
3126
- }
3127
-
3128
- if (key == '__proto__') {
3129
- return;
3130
- }
3131
-
3132
- return object[key];
3133
- }
3134
-
3135
- _safeGet = safeGet;
3136
- return _safeGet;
3137
- }
3138
-
3139
- var _assignValue;
3140
- var hasRequired_assignValue;
3141
-
3142
- function require_assignValue () {
3143
- if (hasRequired_assignValue) return _assignValue;
3144
- hasRequired_assignValue = 1;
3145
- var baseAssignValue = require_baseAssignValue(),
3146
- eq = requireEq();
3147
-
3148
- /** Used for built-in method references. */
3149
- var objectProto = Object.prototype;
3150
-
3151
- /** Used to check objects for own properties. */
3152
- var hasOwnProperty = objectProto.hasOwnProperty;
3153
-
3154
- /**
3155
- * Assigns `value` to `key` of `object` if the existing value is not equivalent
3156
- * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
3157
- * for equality comparisons.
3158
- *
3159
- * @private
3160
- * @param {Object} object The object to modify.
3161
- * @param {string} key The key of the property to assign.
3162
- * @param {*} value The value to assign.
3163
- */
3164
- function assignValue(object, key, value) {
3165
- var objValue = object[key];
3166
- if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||
3167
- (value === undefined && !(key in object))) {
3168
- baseAssignValue(object, key, value);
3169
- }
3170
- }
3171
-
3172
- _assignValue = assignValue;
3173
- return _assignValue;
3174
- }
3175
-
3176
- var _copyObject;
3177
- var hasRequired_copyObject;
3178
-
3179
- function require_copyObject () {
3180
- if (hasRequired_copyObject) return _copyObject;
3181
- hasRequired_copyObject = 1;
3182
- var assignValue = require_assignValue(),
3183
- baseAssignValue = require_baseAssignValue();
3184
-
3185
- /**
3186
- * Copies properties of `source` to `object`.
3187
- *
3188
- * @private
3189
- * @param {Object} source The object to copy properties from.
3190
- * @param {Array} props The property identifiers to copy.
3191
- * @param {Object} [object={}] The object to copy properties to.
3192
- * @param {Function} [customizer] The function to customize copied values.
3193
- * @returns {Object} Returns `object`.
3194
- */
3195
- function copyObject(source, props, object, customizer) {
3196
- var isNew = !object;
3197
- object || (object = {});
3198
-
3199
- var index = -1,
3200
- length = props.length;
3201
-
3202
- while (++index < length) {
3203
- var key = props[index];
3204
-
3205
- var newValue = customizer
3206
- ? customizer(object[key], source[key], key, object, source)
3207
- : undefined;
3208
-
3209
- if (newValue === undefined) {
3210
- newValue = source[key];
3211
- }
3212
- if (isNew) {
3213
- baseAssignValue(object, key, newValue);
3214
- } else {
3215
- assignValue(object, key, newValue);
3216
- }
3217
- }
3218
- return object;
3219
- }
3220
-
3221
- _copyObject = copyObject;
3222
- return _copyObject;
3223
- }
3224
-
3225
- /**
3226
- * The base implementation of `_.times` without support for iteratee shorthands
3227
- * or max array length checks.
3228
- *
3229
- * @private
3230
- * @param {number} n The number of times to invoke `iteratee`.
3231
- * @param {Function} iteratee The function invoked per iteration.
3232
- * @returns {Array} Returns the array of results.
3233
- */
3234
-
3235
- var _baseTimes;
3236
- var hasRequired_baseTimes;
3237
-
3238
- function require_baseTimes () {
3239
- if (hasRequired_baseTimes) return _baseTimes;
3240
- hasRequired_baseTimes = 1;
3241
- function baseTimes(n, iteratee) {
3242
- var index = -1,
3243
- result = Array(n);
3244
-
3245
- while (++index < n) {
3246
- result[index] = iteratee(index);
3247
- }
3248
- return result;
3249
- }
3250
-
3251
- _baseTimes = baseTimes;
3252
- return _baseTimes;
3253
- }
3254
-
3255
- /** Used as references for various `Number` constants. */
3256
-
3257
- var _isIndex;
3258
- var hasRequired_isIndex;
3259
-
3260
- function require_isIndex () {
3261
- if (hasRequired_isIndex) return _isIndex;
3262
- hasRequired_isIndex = 1;
3263
- var MAX_SAFE_INTEGER = 9007199254740991;
3264
-
3265
- /** Used to detect unsigned integer values. */
3266
- var reIsUint = /^(?:0|[1-9]\d*)$/;
3267
-
3268
- /**
3269
- * Checks if `value` is a valid array-like index.
3270
- *
3271
- * @private
3272
- * @param {*} value The value to check.
3273
- * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
3274
- * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
3275
- */
3276
- function isIndex(value, length) {
3277
- var type = typeof value;
3278
- length = length == null ? MAX_SAFE_INTEGER : length;
3279
-
3280
- return !!length &&
3281
- (type == 'number' ||
3282
- (type != 'symbol' && reIsUint.test(value))) &&
3283
- (value > -1 && value % 1 == 0 && value < length);
3284
- }
3285
-
3286
- _isIndex = isIndex;
3287
- return _isIndex;
3288
- }
3289
-
3290
- var _arrayLikeKeys;
3291
- var hasRequired_arrayLikeKeys;
3292
-
3293
- function require_arrayLikeKeys () {
3294
- if (hasRequired_arrayLikeKeys) return _arrayLikeKeys;
3295
- hasRequired_arrayLikeKeys = 1;
3296
- var baseTimes = require_baseTimes(),
3297
- isArguments = requireIsArguments(),
3298
- isArray = requireIsArray(),
3299
- isBuffer = requireIsBuffer(),
3300
- isIndex = require_isIndex(),
3301
- isTypedArray = requireIsTypedArray();
3302
-
3303
- /** Used for built-in method references. */
3304
- var objectProto = Object.prototype;
3305
-
3306
- /** Used to check objects for own properties. */
3307
- var hasOwnProperty = objectProto.hasOwnProperty;
3308
-
3309
- /**
3310
- * Creates an array of the enumerable property names of the array-like `value`.
3311
- *
3312
- * @private
3313
- * @param {*} value The value to query.
3314
- * @param {boolean} inherited Specify returning inherited property names.
3315
- * @returns {Array} Returns the array of property names.
3316
- */
3317
- function arrayLikeKeys(value, inherited) {
3318
- var isArr = isArray(value),
3319
- isArg = !isArr && isArguments(value),
3320
- isBuff = !isArr && !isArg && isBuffer(value),
3321
- isType = !isArr && !isArg && !isBuff && isTypedArray(value),
3322
- skipIndexes = isArr || isArg || isBuff || isType,
3323
- result = skipIndexes ? baseTimes(value.length, String) : [],
3324
- length = result.length;
3325
-
3326
- for (var key in value) {
3327
- if ((inherited || hasOwnProperty.call(value, key)) &&
3328
- !(skipIndexes && (
3329
- // Safari 9 has enumerable `arguments.length` in strict mode.
3330
- key == 'length' ||
3331
- // Node.js 0.10 has enumerable non-index properties on buffers.
3332
- (isBuff && (key == 'offset' || key == 'parent')) ||
3333
- // PhantomJS 2 has enumerable non-index properties on typed arrays.
3334
- (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||
3335
- // Skip index properties.
3336
- isIndex(key, length)
3337
- ))) {
3338
- result.push(key);
3339
- }
3340
- }
3341
- return result;
3342
- }
3343
-
3344
- _arrayLikeKeys = arrayLikeKeys;
3345
- return _arrayLikeKeys;
3346
- }
3347
-
3348
- /**
3349
- * This function is like
3350
- * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
3351
- * except that it includes inherited enumerable properties.
3352
- *
3353
- * @private
3354
- * @param {Object} object The object to query.
3355
- * @returns {Array} Returns the array of property names.
3356
- */
3357
-
3358
- var _nativeKeysIn;
3359
- var hasRequired_nativeKeysIn;
3360
-
3361
- function require_nativeKeysIn () {
3362
- if (hasRequired_nativeKeysIn) return _nativeKeysIn;
3363
- hasRequired_nativeKeysIn = 1;
3364
- function nativeKeysIn(object) {
3365
- var result = [];
3366
- if (object != null) {
3367
- for (var key in Object(object)) {
3368
- result.push(key);
3369
- }
3370
- }
3371
- return result;
3372
- }
3373
-
3374
- _nativeKeysIn = nativeKeysIn;
3375
- return _nativeKeysIn;
3376
- }
3377
-
3378
- var _baseKeysIn;
3379
- var hasRequired_baseKeysIn;
3380
-
3381
- function require_baseKeysIn () {
3382
- if (hasRequired_baseKeysIn) return _baseKeysIn;
3383
- hasRequired_baseKeysIn = 1;
3384
- var isObject = requireIsObject(),
3385
- isPrototype = require_isPrototype(),
3386
- nativeKeysIn = require_nativeKeysIn();
3387
-
3388
- /** Used for built-in method references. */
3389
- var objectProto = Object.prototype;
3390
-
3391
- /** Used to check objects for own properties. */
3392
- var hasOwnProperty = objectProto.hasOwnProperty;
3393
-
3394
- /**
3395
- * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.
3396
- *
3397
- * @private
3398
- * @param {Object} object The object to query.
3399
- * @returns {Array} Returns the array of property names.
3400
- */
3401
- function baseKeysIn(object) {
3402
- if (!isObject(object)) {
3403
- return nativeKeysIn(object);
3404
- }
3405
- var isProto = isPrototype(object),
3406
- result = [];
3407
-
3408
- for (var key in object) {
3409
- if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {
3410
- result.push(key);
3411
- }
3412
- }
3413
- return result;
3414
- }
3415
-
3416
- _baseKeysIn = baseKeysIn;
3417
- return _baseKeysIn;
3418
- }
3419
-
3420
- var keysIn_1;
3421
- var hasRequiredKeysIn;
3422
-
3423
- function requireKeysIn () {
3424
- if (hasRequiredKeysIn) return keysIn_1;
3425
- hasRequiredKeysIn = 1;
3426
- var arrayLikeKeys = require_arrayLikeKeys(),
3427
- baseKeysIn = require_baseKeysIn(),
3428
- isArrayLike = requireIsArrayLike();
3429
-
3430
- /**
3431
- * Creates an array of the own and inherited enumerable property names of `object`.
3432
- *
3433
- * **Note:** Non-object values are coerced to objects.
3434
- *
3435
- * @static
3436
- * @memberOf _
3437
- * @since 3.0.0
3438
- * @category Object
3439
- * @param {Object} object The object to query.
3440
- * @returns {Array} Returns the array of property names.
3441
- * @example
3442
- *
3443
- * function Foo() {
3444
- * this.a = 1;
3445
- * this.b = 2;
3446
- * }
3447
- *
3448
- * Foo.prototype.c = 3;
3449
- *
3450
- * _.keysIn(new Foo);
3451
- * // => ['a', 'b', 'c'] (iteration order is not guaranteed)
3452
- */
3453
- function keysIn(object) {
3454
- return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
3455
- }
3456
-
3457
- keysIn_1 = keysIn;
3458
- return keysIn_1;
3459
- }
3460
-
3461
- var toPlainObject_1;
3462
- var hasRequiredToPlainObject;
3463
-
3464
- function requireToPlainObject () {
3465
- if (hasRequiredToPlainObject) return toPlainObject_1;
3466
- hasRequiredToPlainObject = 1;
3467
- var copyObject = require_copyObject(),
3468
- keysIn = requireKeysIn();
3469
-
3470
- /**
3471
- * Converts `value` to a plain object flattening inherited enumerable string
3472
- * keyed properties of `value` to own properties of the plain object.
3473
- *
3474
- * @static
3475
- * @memberOf _
3476
- * @since 3.0.0
3477
- * @category Lang
3478
- * @param {*} value The value to convert.
3479
- * @returns {Object} Returns the converted plain object.
3480
- * @example
3481
- *
3482
- * function Foo() {
3483
- * this.b = 2;
3484
- * }
3485
- *
3486
- * Foo.prototype.c = 3;
3487
- *
3488
- * _.assign({ 'a': 1 }, new Foo);
3489
- * // => { 'a': 1, 'b': 2 }
3490
- *
3491
- * _.assign({ 'a': 1 }, _.toPlainObject(new Foo));
3492
- * // => { 'a': 1, 'b': 2, 'c': 3 }
3493
- */
3494
- function toPlainObject(value) {
3495
- return copyObject(value, keysIn(value));
3496
- }
3497
-
3498
- toPlainObject_1 = toPlainObject;
3499
- return toPlainObject_1;
3500
- }
3501
-
3502
- var _baseMergeDeep;
3503
- var hasRequired_baseMergeDeep;
3504
-
3505
- function require_baseMergeDeep () {
3506
- if (hasRequired_baseMergeDeep) return _baseMergeDeep;
3507
- hasRequired_baseMergeDeep = 1;
3508
- var assignMergeValue = require_assignMergeValue(),
3509
- cloneBuffer = require_cloneBuffer(),
3510
- cloneTypedArray = require_cloneTypedArray(),
3511
- copyArray = require_copyArray(),
3512
- initCloneObject = require_initCloneObject(),
3513
- isArguments = requireIsArguments(),
3514
- isArray = requireIsArray(),
3515
- isArrayLikeObject = requireIsArrayLikeObject(),
3516
- isBuffer = requireIsBuffer(),
3517
- isFunction = requireIsFunction(),
3518
- isObject = requireIsObject(),
3519
- isPlainObject = requireIsPlainObject(),
3520
- isTypedArray = requireIsTypedArray(),
3521
- safeGet = require_safeGet(),
3522
- toPlainObject = requireToPlainObject();
3523
-
3524
- /**
3525
- * A specialized version of `baseMerge` for arrays and objects which performs
3526
- * deep merges and tracks traversed objects enabling objects with circular
3527
- * references to be merged.
3528
- *
3529
- * @private
3530
- * @param {Object} object The destination object.
3531
- * @param {Object} source The source object.
3532
- * @param {string} key The key of the value to merge.
3533
- * @param {number} srcIndex The index of `source`.
3534
- * @param {Function} mergeFunc The function to merge values.
3535
- * @param {Function} [customizer] The function to customize assigned values.
3536
- * @param {Object} [stack] Tracks traversed source values and their merged
3537
- * counterparts.
3538
- */
3539
- function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {
3540
- var objValue = safeGet(object, key),
3541
- srcValue = safeGet(source, key),
3542
- stacked = stack.get(srcValue);
3543
-
3544
- if (stacked) {
3545
- assignMergeValue(object, key, stacked);
3546
- return;
3547
- }
3548
- var newValue = customizer
3549
- ? customizer(objValue, srcValue, (key + ''), object, source, stack)
3550
- : undefined;
3551
-
3552
- var isCommon = newValue === undefined;
3553
-
3554
- if (isCommon) {
3555
- var isArr = isArray(srcValue),
3556
- isBuff = !isArr && isBuffer(srcValue),
3557
- isTyped = !isArr && !isBuff && isTypedArray(srcValue);
3558
-
3559
- newValue = srcValue;
3560
- if (isArr || isBuff || isTyped) {
3561
- if (isArray(objValue)) {
3562
- newValue = objValue;
3563
- }
3564
- else if (isArrayLikeObject(objValue)) {
3565
- newValue = copyArray(objValue);
3566
- }
3567
- else if (isBuff) {
3568
- isCommon = false;
3569
- newValue = cloneBuffer(srcValue, true);
3570
- }
3571
- else if (isTyped) {
3572
- isCommon = false;
3573
- newValue = cloneTypedArray(srcValue, true);
3574
- }
3575
- else {
3576
- newValue = [];
3577
- }
3578
- }
3579
- else if (isPlainObject(srcValue) || isArguments(srcValue)) {
3580
- newValue = objValue;
3581
- if (isArguments(objValue)) {
3582
- newValue = toPlainObject(objValue);
3583
- }
3584
- else if (!isObject(objValue) || isFunction(objValue)) {
3585
- newValue = initCloneObject(srcValue);
3586
- }
3587
- }
3588
- else {
3589
- isCommon = false;
3590
- }
3591
- }
3592
- if (isCommon) {
3593
- // Recursively merge objects and arrays (susceptible to call stack limits).
3594
- stack.set(srcValue, newValue);
3595
- mergeFunc(newValue, srcValue, srcIndex, customizer, stack);
3596
- stack['delete'](srcValue);
3597
- }
3598
- assignMergeValue(object, key, newValue);
3599
- }
3600
-
3601
- _baseMergeDeep = baseMergeDeep;
3602
- return _baseMergeDeep;
3603
- }
3604
-
3605
- var _baseMerge;
3606
- var hasRequired_baseMerge;
3607
-
3608
- function require_baseMerge () {
3609
- if (hasRequired_baseMerge) return _baseMerge;
3610
- hasRequired_baseMerge = 1;
3611
- var Stack = require_Stack(),
3612
- assignMergeValue = require_assignMergeValue(),
3613
- baseFor = require_baseFor(),
3614
- baseMergeDeep = require_baseMergeDeep(),
3615
- isObject = requireIsObject(),
3616
- keysIn = requireKeysIn(),
3617
- safeGet = require_safeGet();
3618
-
3619
- /**
3620
- * The base implementation of `_.merge` without support for multiple sources.
3621
- *
3622
- * @private
3623
- * @param {Object} object The destination object.
3624
- * @param {Object} source The source object.
3625
- * @param {number} srcIndex The index of `source`.
3626
- * @param {Function} [customizer] The function to customize merged values.
3627
- * @param {Object} [stack] Tracks traversed source values and their merged
3628
- * counterparts.
3629
- */
3630
- function baseMerge(object, source, srcIndex, customizer, stack) {
3631
- if (object === source) {
3632
- return;
3633
- }
3634
- baseFor(source, function(srcValue, key) {
3635
- stack || (stack = new Stack);
3636
- if (isObject(srcValue)) {
3637
- baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);
3638
- }
3639
- else {
3640
- var newValue = customizer
3641
- ? customizer(safeGet(object, key), srcValue, (key + ''), object, source, stack)
3642
- : undefined;
3643
-
3644
- if (newValue === undefined) {
3645
- newValue = srcValue;
3646
- }
3647
- assignMergeValue(object, key, newValue);
3648
- }
3649
- }, keysIn);
3650
- }
3651
-
3652
- _baseMerge = baseMerge;
3653
- return _baseMerge;
3654
- }
3655
-
3656
- var _customDefaultsMerge;
3657
- var hasRequired_customDefaultsMerge;
3658
-
3659
- function require_customDefaultsMerge () {
3660
- if (hasRequired_customDefaultsMerge) return _customDefaultsMerge;
3661
- hasRequired_customDefaultsMerge = 1;
3662
- var baseMerge = require_baseMerge(),
3663
- isObject = requireIsObject();
3664
-
3665
- /**
3666
- * Used by `_.defaultsDeep` to customize its `_.merge` use to merge source
3667
- * objects into destination objects that are passed thru.
3668
- *
3669
- * @private
3670
- * @param {*} objValue The destination value.
3671
- * @param {*} srcValue The source value.
3672
- * @param {string} key The key of the property to merge.
3673
- * @param {Object} object The parent object of `objValue`.
3674
- * @param {Object} source The parent object of `srcValue`.
3675
- * @param {Object} [stack] Tracks traversed source values and their merged
3676
- * counterparts.
3677
- * @returns {*} Returns the value to assign.
3678
- */
3679
- function customDefaultsMerge(objValue, srcValue, key, object, source, stack) {
3680
- if (isObject(objValue) && isObject(srcValue)) {
3681
- // Recursively merge objects and arrays (susceptible to call stack limits).
3682
- stack.set(srcValue, objValue);
3683
- baseMerge(objValue, srcValue, undefined, customDefaultsMerge, stack);
3684
- stack['delete'](srcValue);
3685
- }
3686
- return objValue;
3687
- }
3688
-
3689
- _customDefaultsMerge = customDefaultsMerge;
3690
- return _customDefaultsMerge;
3691
- }
3692
-
3693
- var _isIterateeCall;
3694
- var hasRequired_isIterateeCall;
3695
-
3696
- function require_isIterateeCall () {
3697
- if (hasRequired_isIterateeCall) return _isIterateeCall;
3698
- hasRequired_isIterateeCall = 1;
3699
- var eq = requireEq(),
3700
- isArrayLike = requireIsArrayLike(),
3701
- isIndex = require_isIndex(),
3702
- isObject = requireIsObject();
3703
-
3704
- /**
3705
- * Checks if the given arguments are from an iteratee call.
3706
- *
3707
- * @private
3708
- * @param {*} value The potential iteratee value argument.
3709
- * @param {*} index The potential iteratee index or key argument.
3710
- * @param {*} object The potential iteratee object argument.
3711
- * @returns {boolean} Returns `true` if the arguments are from an iteratee call,
3712
- * else `false`.
3713
- */
3714
- function isIterateeCall(value, index, object) {
3715
- if (!isObject(object)) {
3716
- return false;
3717
- }
3718
- var type = typeof index;
3719
- if (type == 'number'
3720
- ? (isArrayLike(object) && isIndex(index, object.length))
3721
- : (type == 'string' && index in object)
3722
- ) {
3723
- return eq(object[index], value);
3724
- }
3725
- return false;
3726
- }
3727
-
3728
- _isIterateeCall = isIterateeCall;
3729
- return _isIterateeCall;
3730
- }
3731
-
3732
- var _createAssigner;
3733
- var hasRequired_createAssigner;
3734
-
3735
- function require_createAssigner () {
3736
- if (hasRequired_createAssigner) return _createAssigner;
3737
- hasRequired_createAssigner = 1;
3738
- var baseRest = require_baseRest(),
3739
- isIterateeCall = require_isIterateeCall();
3740
-
3741
- /**
3742
- * Creates a function like `_.assign`.
3743
- *
3744
- * @private
3745
- * @param {Function} assigner The function to assign values.
3746
- * @returns {Function} Returns the new assigner function.
3747
- */
3748
- function createAssigner(assigner) {
3749
- return baseRest(function(object, sources) {
3750
- var index = -1,
3751
- length = sources.length,
3752
- customizer = length > 1 ? sources[length - 1] : undefined,
3753
- guard = length > 2 ? sources[2] : undefined;
3754
-
3755
- customizer = (assigner.length > 3 && typeof customizer == 'function')
3756
- ? (length--, customizer)
3757
- : undefined;
3758
-
3759
- if (guard && isIterateeCall(sources[0], sources[1], guard)) {
3760
- customizer = length < 3 ? undefined : customizer;
3761
- length = 1;
3762
- }
3763
- object = Object(object);
3764
- while (++index < length) {
3765
- var source = sources[index];
3766
- if (source) {
3767
- assigner(object, source, index, customizer);
3768
- }
3769
- }
3770
- return object;
3771
- });
3772
- }
3773
-
3774
- _createAssigner = createAssigner;
3775
- return _createAssigner;
3776
- }
3777
-
3778
- var mergeWith_1;
3779
- var hasRequiredMergeWith;
3780
-
3781
- function requireMergeWith () {
3782
- if (hasRequiredMergeWith) return mergeWith_1;
3783
- hasRequiredMergeWith = 1;
3784
- var baseMerge = require_baseMerge(),
3785
- createAssigner = require_createAssigner();
3786
-
3787
- /**
3788
- * This method is like `_.merge` except that it accepts `customizer` which
3789
- * is invoked to produce the merged values of the destination and source
3790
- * properties. If `customizer` returns `undefined`, merging is handled by the
3791
- * method instead. The `customizer` is invoked with six arguments:
3792
- * (objValue, srcValue, key, object, source, stack).
3793
- *
3794
- * **Note:** This method mutates `object`.
3795
- *
3796
- * @static
3797
- * @memberOf _
3798
- * @since 4.0.0
3799
- * @category Object
3800
- * @param {Object} object The destination object.
3801
- * @param {...Object} sources The source objects.
3802
- * @param {Function} customizer The function to customize assigned values.
3803
- * @returns {Object} Returns `object`.
3804
- * @example
3805
- *
3806
- * function customizer(objValue, srcValue) {
3807
- * if (_.isArray(objValue)) {
3808
- * return objValue.concat(srcValue);
3809
- * }
3810
- * }
3811
- *
3812
- * var object = { 'a': [1], 'b': [2] };
3813
- * var other = { 'a': [3], 'b': [4] };
3814
- *
3815
- * _.mergeWith(object, other, customizer);
3816
- * // => { 'a': [1, 3], 'b': [2, 4] }
3817
- */
3818
- var mergeWith = createAssigner(function(object, source, srcIndex, customizer) {
3819
- baseMerge(object, source, srcIndex, customizer);
3820
- });
3821
-
3822
- mergeWith_1 = mergeWith;
3823
- return mergeWith_1;
3824
- }
3825
-
3826
- var defaultsDeep_1;
3827
- var hasRequiredDefaultsDeep;
3828
-
3829
- function requireDefaultsDeep () {
3830
- if (hasRequiredDefaultsDeep) return defaultsDeep_1;
3831
- hasRequiredDefaultsDeep = 1;
3832
- var apply = require_apply(),
3833
- baseRest = require_baseRest(),
3834
- customDefaultsMerge = require_customDefaultsMerge(),
3835
- mergeWith = requireMergeWith();
3836
-
3837
- /**
3838
- * This method is like `_.defaults` except that it recursively assigns
3839
- * default properties.
3840
- *
3841
- * **Note:** This method mutates `object`.
3842
- *
3843
- * @static
3844
- * @memberOf _
3845
- * @since 3.10.0
3846
- * @category Object
3847
- * @param {Object} object The destination object.
3848
- * @param {...Object} [sources] The source objects.
3849
- * @returns {Object} Returns `object`.
3850
- * @see _.defaults
3851
- * @example
3852
- *
3853
- * _.defaultsDeep({ 'a': { 'b': 2 } }, { 'a': { 'b': 1, 'c': 3 } });
3854
- * // => { 'a': { 'b': 2, 'c': 3 } }
3855
- */
3856
- var defaultsDeep = baseRest(function(args) {
3857
- args.push(undefined, customDefaultsMerge);
3858
- return apply(mergeWith, undefined, args);
3859
- });
3860
-
3861
- defaultsDeep_1 = defaultsDeep;
3862
- return defaultsDeep_1;
3863
- }
3864
-
3865
- var defaultsDeepExports = requireDefaultsDeep();
3866
- var defaultsDeep = /*@__PURE__*/getDefaultExportFromCjs(defaultsDeepExports);
3867
-
3868
11
  function Text(_a) {
3869
12
  var { value, children } = _a, props = __rest(_a, ["value", "children"]);
3870
- return jsxRuntimeExports.jsx("p", Object.assign({}, props, { children: value || children }));
13
+ return jsx("p", Object.assign({}, props, { children: value || children }));
3871
14
  }
3872
15
 
3873
16
  function Button(_a) {
3874
17
  var { children, type } = _a, props = __rest(_a, ["children", "type"]);
3875
- return (jsxRuntimeExports.jsx("button", Object.assign({ type: "button" }, props, { children: children })));
18
+ return (jsx("button", Object.assign({ type: "button" }, props, { children: children })));
3876
19
  }
3877
20
 
3878
21
  const convertErrorToString = (fieldErrors) => {
@@ -3891,16 +34,16 @@ function Edit(props) {
3891
34
  };
3892
35
  const { fieldErrors, fieldTouched, validation, value, label, helperText, onChange } = props, ownProps = __rest(props, ["fieldErrors", "fieldTouched", "validation", "value", "label", "helperText", "onChange"]);
3893
36
  const error = !!fieldErrors;
3894
- return (jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [label && (jsxRuntimeExports.jsxs("p", { style: { fontSize: 20, color: error ? 'red' : undefined }, children: [label, " ", fieldTouched ? '[touched]' : ''] })), jsxRuntimeExports.jsx("input", Object.assign({}, ownProps, { value: value || '', onChange: handleChange })), (helperText || error) && (jsxRuntimeExports.jsx("p", { style: { fontSize: 10, color: error && fieldTouched ? 'red' : undefined }, children: error && fieldTouched ? convertErrorToString(fieldErrors) : helperText }))] }));
37
+ return (jsxs(Fragment$1, { children: [label && (jsxs("p", { style: { fontSize: 20, color: error ? 'red' : undefined }, children: [label, " ", fieldTouched ? '[touched]' : ''] })), jsx("input", Object.assign({}, ownProps, { value: value || '', onChange: handleChange })), (helperText || error) && (jsx("p", { style: { fontSize: 10, color: error && fieldTouched ? 'red' : undefined }, children: error && fieldTouched ? convertErrorToString(fieldErrors) : helperText }))] }));
3895
38
  }
3896
39
 
3897
40
  function View(props) {
3898
- return jsxRuntimeExports.jsx("div", Object.assign({}, props));
41
+ return jsx("div", Object.assign({}, props));
3899
42
  }
3900
43
 
3901
44
  function Image(props) {
3902
45
  const { src } = props;
3903
- return jsxRuntimeExports.jsx("img", Object.assign({ alt: "" }, props, { src: src && src.uri ? src.uri : src }));
46
+ return jsx("img", Object.assign({ alt: "" }, props, { src: src && src.uri ? src.uri : src }));
3904
47
  }
3905
48
 
3906
49
  const styles = {
@@ -3930,7 +73,7 @@ const getName = (props) => {
3930
73
  }
3931
74
  return 'Unknown';
3932
75
  };
3933
- const getLabel = (props) => (jsxRuntimeExports.jsx("span", { style: styles.labelCont, children: jsxRuntimeExports.jsx("span", { style: styles.label, children: getName(props) }) }));
76
+ const getLabel = (props) => (jsx("span", { style: styles.labelCont, children: jsx("span", { style: styles.label, children: getName(props) }) }));
3934
77
  class InfoBox extends React.PureComponent {
3935
78
  constructor(props) {
3936
79
  super(props);
@@ -3953,12 +96,12 @@ class InfoBox extends React.PureComponent {
3953
96
  if (filter && Array.isArray(filter) && Object.keys(filter).length !== 0 && !filter.includes(id)) {
3954
97
  return null;
3955
98
  }
3956
- return (jsxRuntimeExports.jsx("span", { style: styles.labelCont, children: jsxRuntimeExports.jsxs("span", { style: styles.label, children: ["rendered: ", this.counter] }) }));
99
+ return (jsx("span", { style: styles.labelCont, children: jsxs("span", { style: styles.label, children: ["rendered: ", this.counter] }) }));
3957
100
  }
3958
101
  }
3959
102
 
3960
103
  function Undefined(props) {
3961
- return (jsxRuntimeExports.jsx("p", { style: {
104
+ return (jsx("p", { style: {
3962
105
  flex: 1,
3963
106
  minWidth: 100,
3964
107
  minHeight: 20,
@@ -3969,7 +112,7 @@ function Undefined(props) {
3969
112
  }
3970
113
 
3971
114
  function PrimitiveProp({ children }) {
3972
- return jsxRuntimeExports.jsx("span", { children: !constants.SIMPLE_DATA_TYPES.includes(typeof children) || typeof children === 'boolean' ? JSON.stringify(children) : children });
115
+ return jsx("span", { children: !constants.SIMPLE_DATA_TYPES.includes(typeof children) || typeof children === 'boolean' ? JSON.stringify(children) : children });
3973
116
  }
3974
117
 
3975
118
  const Fragment = ({ children }) => children;
@@ -3995,10 +138,10 @@ const getStock = (stockInit, model, Wrapper, reduxStore) => {
3995
138
  language: (navigator.languages && navigator.languages[0]) || // Chrome / Firefox
3996
139
  navigator.language || // All browsers
3997
140
  navigator.userLanguage, // IE <= 10
3998
- resources: util.collectObjMerge(constants.REF_LOCALES, model),
141
+ resources: utils.collectObjMerge(constants.REF_LOCALES, model),
3999
142
  });
4000
143
  // get Validations
4001
- stock.validations = util.collectObjToArray(constants.REF_VALIDATES, model, true);
144
+ stock.validations = utils.collectObjToArray(constants.REF_VALIDATES, model, true);
4002
145
  stock.registerFunction('t', (p) => i18n.t(p.keys, p.options));
4003
146
  stock.registerFunction('test', () => 'Test is ok');
4004
147
  return stock;
@@ -4016,7 +159,7 @@ const Providers = ({ children, defaultValues: root, getFormState: getState }) =>
4016
159
  // eslint-disable-next-line no-param-reassign, @typescript-eslint/no-unused-vars
4017
160
  getState.current = () => { var _a; return (_a = store.getState()) === null || _a === void 0 ? void 0 : _a.root; }; // root contanins form data
4018
161
  }
4019
- return jsxRuntimeExports.jsx(Provider, { store: store, children: children });
162
+ return jsx(Provider, { store: store, children: children });
4020
163
  };
4021
164
 
4022
165
  class MessageHandler {
@@ -4064,19 +207,19 @@ class ErrorBoundary extends React.Component {
4064
207
  const { type, id, children } = this.props;
4065
208
  if (hasError) {
4066
209
  if (type === 'component') {
4067
- return (jsxRuntimeExports.jsx("div", { style: {
210
+ return (jsx("div", { style: {
4068
211
  flex: 1,
4069
212
  flexDirection: 'column',
4070
213
  borderColor: 'orange',
4071
214
  borderWidth: 2,
4072
- }, children: jsxRuntimeExports.jsxs("div", { children: [jsxRuntimeExports.jsx("div", { style: { backgroundColor: 'red', alignItems: 'center' }, children: jsxRuntimeExports.jsxs("p", { style: { fontSize: 12, padding: 2 }, children: [id, "Error:"] }) }), jsxRuntimeExports.jsx("div", { children: jsxRuntimeExports.jsxs("p", { style: { fontSize: 10, padding: 2 }, children: [" ", printObj(error)] }) })] }) }));
215
+ }, children: jsxs("div", { children: [jsx("div", { style: { backgroundColor: 'red', alignItems: 'center' }, children: jsxs("p", { style: { fontSize: 12, padding: 2 }, children: [id, "Error:"] }) }), jsx("div", { children: jsxs("p", { style: { fontSize: 10, padding: 2 }, children: [" ", printObj(error)] }) })] }) }));
4073
216
  }
4074
- return (jsxRuntimeExports.jsx("div", { style: { flexDirection: 'column', margin: 20, height: '100%' }, children: jsxRuntimeExports.jsxs("div", { children: [jsxRuntimeExports.jsx("div", { style: {
217
+ return (jsx("div", { style: { flexDirection: 'column', margin: 20, height: '100%' }, children: jsxs("div", { children: [jsx("div", { style: {
4075
218
  flex: 1,
4076
219
  backgroundColor: 'red',
4077
220
  padding: 10,
4078
221
  alignItems: 'center',
4079
- }, children: jsxRuntimeExports.jsxs("p", { style: { fontSize: 30 }, children: ["Error type:", type, id] }) }), jsxRuntimeExports.jsx("div", { children: jsxRuntimeExports.jsx("p", { style: { fontSize: 20, marginTop: 30 }, children: printObj(error) }) }), jsxRuntimeExports.jsx("div", { children: jsxRuntimeExports.jsx("p", { style: { marginTop: 20 }, children: printObj(didInfo) }) })] }) }));
222
+ }, children: jsxs("p", { style: { fontSize: 30 }, children: ["Error type:", type, id] }) }), jsx("div", { children: jsx("p", { style: { fontSize: 20, marginTop: 30 }, children: printObj(error) }) }), jsx("div", { children: jsx("p", { style: { marginTop: 20 }, children: printObj(didInfo) }) })] }) }));
4080
223
  }
4081
224
  return children;
4082
225
  }
@@ -4122,7 +265,7 @@ function Wrapper({ props: origProps }) {
4122
265
  throw `The Component(${component}) is not available`;
4123
266
  }
4124
267
  const newStyle = props.style || props[constants.STYLE_WEB_NAME] ? getStyle(props, component) : undefined;
4125
- return (jsxRuntimeExports.jsx(ErrorBoundary, { type: "wrapper", id: props.id, children: jsxRuntimeExports.jsx(ClassNames, { children: ({ css, cx }) => {
268
+ return (jsx(ErrorBoundary, { type: "wrapper", id: props.id, children: jsx(ClassNames, { children: ({ css, cx }) => {
4126
269
  props.className = newStyle ? cx(css(newStyle)) : undefined;
4127
270
  const newProps = Object.keys(props).reduce((newObj, childName) => {
4128
271
  // eslint-disable-next-line no-param-reassign
@@ -4145,7 +288,7 @@ function Wrapper({ props: origProps }) {
4145
288
  return newObj;
4146
289
  }, {});
4147
290
  // children was {wrapperUtil.generateChildren(ownProps, stock)}
4148
- return props[constants.PATH_MODIFIERS_KEY] ? (jsxRuntimeExports.jsxs(PathModifierContext.Provider, { value: props[constants.CURRENT_PATH_NAME], children: [jsxRuntimeExports.jsx(Comp, Object.assign({}, newProps)), infobox] })) : (jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsx(Comp, Object.assign({}, newProps)), infobox] }));
291
+ return props[constants.PATH_MODIFIERS_KEY] ? (jsxs(PathModifierContext.Provider, { value: props[constants.CURRENT_PATH_NAME], children: [jsx(Comp, Object.assign({}, newProps)), infobox] })) : (jsxs(Fragment$1, { children: [jsx(Comp, Object.assign({}, newProps)), infobox] }));
4149
292
  } }) }));
4150
293
  }
4151
294
 
@@ -4154,12 +297,12 @@ const Renderer = ({ model, stockInit, reduxStore }) => {
4154
297
  if (model === undefined) {
4155
298
  return null;
4156
299
  }
4157
- return (jsxRuntimeExports.jsx(StockContext.Provider, { value: stock, children: jsxRuntimeExports.jsxs(PathModifierContext.Provider, { value: {}, children: [jsxRuntimeExports.jsx(MessageReceiver, {}), jsxRuntimeExports.jsx(Wrapper, { props: model })] }) }));
300
+ return (jsx(StockContext.Provider, { value: stock, children: jsxs(PathModifierContext.Provider, { value: {}, children: [jsx(MessageReceiver, {}), jsx(Wrapper, { props: model })] }) }));
4158
301
  };
4159
302
  const rendererFunc = (props) => {
4160
303
  // TODO remove this and merge to Renderer
4161
304
  const reduxStore = useStore();
4162
- return (jsxRuntimeExports.jsx(ErrorBoundary, { type: "rendererFunc", children: jsxRuntimeExports.jsx(Renderer, Object.assign({}, props, { reduxStore: reduxStore })) }));
305
+ return (jsx(ErrorBoundary, { type: "rendererFunc", children: jsx(Renderer, Object.assign({}, props, { reduxStore: reduxStore })) }));
4163
306
  };
4164
307
 
4165
308
  function Viewer({ model, components, functions }) {
@@ -4167,14 +310,14 @@ function Viewer({ model, components, functions }) {
4167
310
  components: Object.assign(Object.assign({}, stock.components), components),
4168
311
  functions: Object.assign(Object.assign({}, stock.functions), functions),
4169
312
  };
4170
- return jsxRuntimeExports.jsx(rendererFunc, { model: model, stockInit: stockInit });
313
+ return jsx(rendererFunc, { model: model, stockInit: stockInit });
4171
314
  }
4172
315
  function ViewerWeb(_a) {
4173
316
  var { defaultValues, getFormState } = _a, props = __rest(_a, ["defaultValues", "getFormState"]);
4174
- return (jsxRuntimeExports.jsx(ErrorBoundary, { type: "viewer", children: jsxRuntimeExports.jsx(Providers, { defaultValues: defaultValues, getFormState: getFormState, children: jsxRuntimeExports.jsx(Viewer, Object.assign({}, props)) }) }));
317
+ return (jsx(ErrorBoundary, { type: "viewer", children: jsx(Providers, { defaultValues: defaultValues, getFormState: getFormState, children: jsx(Viewer, Object.assign({}, props)) }) }));
4175
318
  }
4176
319
 
4177
- const JsonUI = (props) => jsxRuntimeExports.jsx(ViewerWeb, Object.assign({}, props));
320
+ const JsonUI = (props) => jsx(ViewerWeb, Object.assign({}, props));
4178
321
 
4179
322
  export { JsonUI, MessageHandler, MessageHandlerContext, JsonUI as default };
4180
323
  //# sourceMappingURL=index.js.map