@e1011/es-kit 1.0.2 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (247) hide show
  1. package/dist/hooks/esm/node_modules/core-js/internals/document-all.js +1 -0
  2. package/dist/hooks/esm/node_modules/core-js/internals/document-all.js.map +1 -1
  3. package/dist/hooks/esm/node_modules/core-js/internals/shared.js +2 -2
  4. package/dist/hooks/esm/node_modules/core-js/internals/shared.js.map +1 -1
  5. package/dist/hooks/esm/node_modules/lodash-es/_Symbol.js +9 -0
  6. package/dist/hooks/esm/node_modules/lodash-es/_Symbol.js.map +1 -0
  7. package/dist/hooks/esm/node_modules/lodash-es/_baseGetTag.js +29 -0
  8. package/dist/hooks/esm/node_modules/lodash-es/_baseGetTag.js.map +1 -0
  9. package/dist/hooks/esm/node_modules/lodash-es/_baseTrim.js +20 -0
  10. package/dist/hooks/esm/node_modules/lodash-es/_baseTrim.js.map +1 -0
  11. package/dist/hooks/esm/node_modules/lodash-es/_freeGlobal.js +7 -0
  12. package/dist/hooks/esm/node_modules/lodash-es/_freeGlobal.js.map +1 -0
  13. package/dist/hooks/esm/node_modules/lodash-es/_getRawTag.js +47 -0
  14. package/dist/hooks/esm/node_modules/lodash-es/_getRawTag.js.map +1 -0
  15. package/dist/hooks/esm/node_modules/lodash-es/_objectToString.js +23 -0
  16. package/dist/hooks/esm/node_modules/lodash-es/_objectToString.js.map +1 -0
  17. package/dist/hooks/esm/node_modules/lodash-es/_root.js +12 -0
  18. package/dist/hooks/esm/node_modules/lodash-es/_root.js.map +1 -0
  19. package/dist/hooks/esm/node_modules/lodash-es/_trimmedEndIndex.js +20 -0
  20. package/dist/hooks/esm/node_modules/lodash-es/_trimmedEndIndex.js.map +1 -0
  21. package/dist/hooks/esm/node_modules/lodash-es/debounce.js +192 -0
  22. package/dist/hooks/esm/node_modules/lodash-es/debounce.js.map +1 -0
  23. package/dist/hooks/esm/node_modules/lodash-es/isObject.js +32 -0
  24. package/dist/hooks/esm/node_modules/lodash-es/isObject.js.map +1 -0
  25. package/dist/hooks/esm/node_modules/lodash-es/isObjectLike.js +30 -0
  26. package/dist/hooks/esm/node_modules/lodash-es/isObjectLike.js.map +1 -0
  27. package/dist/hooks/esm/node_modules/lodash-es/isSymbol.js +30 -0
  28. package/dist/hooks/esm/node_modules/lodash-es/isSymbol.js.map +1 -0
  29. package/dist/hooks/esm/node_modules/lodash-es/now.js +26 -0
  30. package/dist/hooks/esm/node_modules/lodash-es/now.js.map +1 -0
  31. package/dist/hooks/esm/node_modules/lodash-es/toNumber.js +65 -0
  32. package/dist/hooks/esm/node_modules/lodash-es/toNumber.js.map +1 -0
  33. package/dist/hooks/esm/src/core/hooks/index.js +1 -0
  34. package/dist/hooks/esm/src/core/hooks/index.js.map +1 -1
  35. package/dist/hooks/esm/src/core/hooks/useResize.js +66 -0
  36. package/dist/hooks/esm/src/core/hooks/useResize.js.map +1 -0
  37. package/dist/hooks/node_modules/core-js/internals/document-all.js +1 -0
  38. package/dist/hooks/node_modules/core-js/internals/document-all.js.map +1 -1
  39. package/dist/hooks/node_modules/core-js/internals/shared.js +2 -2
  40. package/dist/hooks/node_modules/core-js/internals/shared.js.map +1 -1
  41. package/dist/hooks/node_modules/lodash-es/_Symbol.js +11 -0
  42. package/dist/hooks/node_modules/lodash-es/_Symbol.js.map +1 -0
  43. package/dist/hooks/node_modules/lodash-es/_baseGetTag.js +31 -0
  44. package/dist/hooks/node_modules/lodash-es/_baseGetTag.js.map +1 -0
  45. package/dist/hooks/node_modules/lodash-es/_baseTrim.js +22 -0
  46. package/dist/hooks/node_modules/lodash-es/_baseTrim.js.map +1 -0
  47. package/dist/hooks/node_modules/lodash-es/_freeGlobal.js +9 -0
  48. package/dist/hooks/node_modules/lodash-es/_freeGlobal.js.map +1 -0
  49. package/dist/hooks/node_modules/lodash-es/_getRawTag.js +49 -0
  50. package/dist/hooks/node_modules/lodash-es/_getRawTag.js.map +1 -0
  51. package/dist/hooks/node_modules/lodash-es/_objectToString.js +25 -0
  52. package/dist/hooks/node_modules/lodash-es/_objectToString.js.map +1 -0
  53. package/dist/hooks/node_modules/lodash-es/_root.js +14 -0
  54. package/dist/hooks/node_modules/lodash-es/_root.js.map +1 -0
  55. package/dist/hooks/node_modules/lodash-es/_trimmedEndIndex.js +22 -0
  56. package/dist/hooks/node_modules/lodash-es/_trimmedEndIndex.js.map +1 -0
  57. package/dist/hooks/node_modules/lodash-es/debounce.js +194 -0
  58. package/dist/hooks/node_modules/lodash-es/debounce.js.map +1 -0
  59. package/dist/hooks/node_modules/lodash-es/isObject.js +34 -0
  60. package/dist/hooks/node_modules/lodash-es/isObject.js.map +1 -0
  61. package/dist/hooks/node_modules/lodash-es/isObjectLike.js +32 -0
  62. package/dist/hooks/node_modules/lodash-es/isObjectLike.js.map +1 -0
  63. package/dist/hooks/node_modules/lodash-es/isSymbol.js +32 -0
  64. package/dist/hooks/node_modules/lodash-es/isSymbol.js.map +1 -0
  65. package/dist/hooks/node_modules/lodash-es/now.js +28 -0
  66. package/dist/hooks/node_modules/lodash-es/now.js.map +1 -0
  67. package/dist/hooks/node_modules/lodash-es/toNumber.js +67 -0
  68. package/dist/hooks/node_modules/lodash-es/toNumber.js.map +1 -0
  69. package/dist/hooks/src/core/hooks/index.js +2 -0
  70. package/dist/hooks/src/core/hooks/index.js.map +1 -1
  71. package/dist/hooks/src/core/hooks/useResize.js +70 -0
  72. package/dist/hooks/src/core/hooks/useResize.js.map +1 -0
  73. package/dist/lib/cjs/_virtual/is-pure.js +8 -0
  74. package/dist/lib/cjs/_virtual/is-pure.js.map +1 -0
  75. package/dist/lib/cjs/_virtual/path.js +8 -0
  76. package/dist/lib/cjs/_virtual/path.js.map +1 -0
  77. package/dist/lib/cjs/node_modules/core-js/internals/document-all.js +1 -0
  78. package/dist/lib/cjs/node_modules/core-js/internals/document-all.js.map +1 -1
  79. package/dist/lib/cjs/node_modules/core-js/internals/is-pure.js +9 -0
  80. package/dist/lib/cjs/node_modules/core-js/internals/is-pure.js.map +1 -0
  81. package/dist/lib/cjs/node_modules/core-js/internals/path.js +11 -0
  82. package/dist/lib/cjs/node_modules/core-js/internals/path.js.map +1 -0
  83. package/dist/lib/cjs/node_modules/core-js/internals/shared.js +2 -2
  84. package/dist/lib/cjs/node_modules/core-js/internals/shared.js.map +1 -1
  85. package/dist/lib/cjs/node_modules/core-js/modules/es.number.constructor.js +32 -18
  86. package/dist/lib/cjs/node_modules/core-js/modules/es.number.constructor.js.map +1 -1
  87. package/dist/lib/cjs/node_modules/lodash-es/_Symbol.js +11 -0
  88. package/dist/lib/cjs/node_modules/lodash-es/_Symbol.js.map +1 -0
  89. package/dist/lib/cjs/node_modules/lodash-es/_baseGetTag.js +31 -0
  90. package/dist/lib/cjs/node_modules/lodash-es/_baseGetTag.js.map +1 -0
  91. package/dist/lib/cjs/node_modules/lodash-es/_baseTrim.js +22 -0
  92. package/dist/lib/cjs/node_modules/lodash-es/_baseTrim.js.map +1 -0
  93. package/dist/lib/cjs/node_modules/lodash-es/_freeGlobal.js +9 -0
  94. package/dist/lib/cjs/node_modules/lodash-es/_freeGlobal.js.map +1 -0
  95. package/dist/lib/cjs/node_modules/lodash-es/_getRawTag.js +49 -0
  96. package/dist/lib/cjs/node_modules/lodash-es/_getRawTag.js.map +1 -0
  97. package/dist/lib/cjs/node_modules/lodash-es/_objectToString.js +25 -0
  98. package/dist/lib/cjs/node_modules/lodash-es/_objectToString.js.map +1 -0
  99. package/dist/lib/cjs/node_modules/lodash-es/_root.js +14 -0
  100. package/dist/lib/cjs/node_modules/lodash-es/_root.js.map +1 -0
  101. package/dist/lib/cjs/node_modules/lodash-es/_trimmedEndIndex.js +22 -0
  102. package/dist/lib/cjs/node_modules/lodash-es/_trimmedEndIndex.js.map +1 -0
  103. package/dist/lib/cjs/node_modules/lodash-es/debounce.js +194 -0
  104. package/dist/lib/cjs/node_modules/lodash-es/debounce.js.map +1 -0
  105. package/dist/lib/cjs/node_modules/lodash-es/isObject.js +34 -0
  106. package/dist/lib/cjs/node_modules/lodash-es/isObject.js.map +1 -0
  107. package/dist/lib/cjs/node_modules/lodash-es/isObjectLike.js +32 -0
  108. package/dist/lib/cjs/node_modules/lodash-es/isObjectLike.js.map +1 -0
  109. package/dist/lib/cjs/node_modules/lodash-es/isSymbol.js +32 -0
  110. package/dist/lib/cjs/node_modules/lodash-es/isSymbol.js.map +1 -0
  111. package/dist/lib/cjs/node_modules/lodash-es/now.js +28 -0
  112. package/dist/lib/cjs/node_modules/lodash-es/now.js.map +1 -0
  113. package/dist/lib/cjs/node_modules/lodash-es/toNumber.js +67 -0
  114. package/dist/lib/cjs/node_modules/lodash-es/toNumber.js.map +1 -0
  115. package/dist/lib/cjs/src/core/hooks/useResize.js +70 -0
  116. package/dist/lib/cjs/src/core/hooks/useResize.js.map +1 -0
  117. package/dist/lib/cjs/src/core/ui/components/container/Container.js +2 -2
  118. package/dist/lib/cjs/src/core/ui/components/container/Container.js.map +1 -1
  119. package/dist/lib/cjs/src/core/ui/components/container/Flex.js +18 -3
  120. package/dist/lib/cjs/src/core/ui/components/container/Flex.js.map +1 -1
  121. package/dist/lib/cjs/src/core/ui/components/container/Placeholder.js +1 -1
  122. package/dist/lib/cjs/src/core/ui/components/dividers/DividerLine.js +1 -1
  123. package/dist/lib/cjs/src/core/ui/components/dividers/DividerLine.js.map +1 -1
  124. package/dist/lib/cjs/src/core/ui/components/field/Field.js +5 -5
  125. package/dist/lib/cjs/src/core/ui/components/field/Field.js.map +1 -1
  126. package/dist/lib/cjs/src/index.js +3 -0
  127. package/dist/lib/cjs/src/index.js.map +1 -1
  128. package/dist/lib/esm/_virtual/is-pure.js +3 -0
  129. package/dist/lib/esm/_virtual/is-pure.js.map +1 -0
  130. package/dist/lib/esm/_virtual/path.js +3 -0
  131. package/dist/lib/esm/_virtual/path.js.map +1 -0
  132. package/dist/lib/esm/node_modules/core-js/internals/document-all.js +1 -0
  133. package/dist/lib/esm/node_modules/core-js/internals/document-all.js.map +1 -1
  134. package/dist/lib/esm/node_modules/core-js/internals/is-pure.js +4 -0
  135. package/dist/lib/esm/node_modules/core-js/internals/is-pure.js.map +1 -0
  136. package/dist/lib/esm/node_modules/core-js/internals/path.js +6 -0
  137. package/dist/lib/esm/node_modules/core-js/internals/path.js.map +1 -0
  138. package/dist/lib/esm/node_modules/core-js/internals/shared.js +2 -2
  139. package/dist/lib/esm/node_modules/core-js/internals/shared.js.map +1 -1
  140. package/dist/lib/esm/node_modules/core-js/modules/es.number.constructor.js +32 -18
  141. package/dist/lib/esm/node_modules/core-js/modules/es.number.constructor.js.map +1 -1
  142. package/dist/lib/esm/node_modules/lodash-es/_Symbol.js +9 -0
  143. package/dist/lib/esm/node_modules/lodash-es/_Symbol.js.map +1 -0
  144. package/dist/lib/esm/node_modules/lodash-es/_baseGetTag.js +29 -0
  145. package/dist/lib/esm/node_modules/lodash-es/_baseGetTag.js.map +1 -0
  146. package/dist/lib/esm/node_modules/lodash-es/_baseTrim.js +20 -0
  147. package/dist/lib/esm/node_modules/lodash-es/_baseTrim.js.map +1 -0
  148. package/dist/lib/esm/node_modules/lodash-es/_freeGlobal.js +7 -0
  149. package/dist/lib/esm/node_modules/lodash-es/_freeGlobal.js.map +1 -0
  150. package/dist/lib/esm/node_modules/lodash-es/_getRawTag.js +47 -0
  151. package/dist/lib/esm/node_modules/lodash-es/_getRawTag.js.map +1 -0
  152. package/dist/lib/esm/node_modules/lodash-es/_objectToString.js +23 -0
  153. package/dist/lib/esm/node_modules/lodash-es/_objectToString.js.map +1 -0
  154. package/dist/lib/esm/node_modules/lodash-es/_root.js +12 -0
  155. package/dist/lib/esm/node_modules/lodash-es/_root.js.map +1 -0
  156. package/dist/lib/esm/node_modules/lodash-es/_trimmedEndIndex.js +20 -0
  157. package/dist/lib/esm/node_modules/lodash-es/_trimmedEndIndex.js.map +1 -0
  158. package/dist/lib/esm/node_modules/lodash-es/debounce.js +192 -0
  159. package/dist/lib/esm/node_modules/lodash-es/debounce.js.map +1 -0
  160. package/dist/lib/esm/node_modules/lodash-es/isObject.js +32 -0
  161. package/dist/lib/esm/node_modules/lodash-es/isObject.js.map +1 -0
  162. package/dist/lib/esm/node_modules/lodash-es/isObjectLike.js +30 -0
  163. package/dist/lib/esm/node_modules/lodash-es/isObjectLike.js.map +1 -0
  164. package/dist/lib/esm/node_modules/lodash-es/isSymbol.js +30 -0
  165. package/dist/lib/esm/node_modules/lodash-es/isSymbol.js.map +1 -0
  166. package/dist/lib/esm/node_modules/lodash-es/now.js +26 -0
  167. package/dist/lib/esm/node_modules/lodash-es/now.js.map +1 -0
  168. package/dist/lib/esm/node_modules/lodash-es/toNumber.js +65 -0
  169. package/dist/lib/esm/node_modules/lodash-es/toNumber.js.map +1 -0
  170. package/dist/lib/esm/src/core/hooks/useResize.js +66 -0
  171. package/dist/lib/esm/src/core/hooks/useResize.js.map +1 -0
  172. package/dist/lib/esm/src/core/ui/components/container/Container.js +2 -2
  173. package/dist/lib/esm/src/core/ui/components/container/Container.js.map +1 -1
  174. package/dist/lib/esm/src/core/ui/components/container/Flex.js +18 -4
  175. package/dist/lib/esm/src/core/ui/components/container/Flex.js.map +1 -1
  176. package/dist/lib/esm/src/core/ui/components/container/Placeholder.js +1 -1
  177. package/dist/lib/esm/src/core/ui/components/dividers/DividerLine.js +1 -1
  178. package/dist/lib/esm/src/core/ui/components/dividers/DividerLine.js.map +1 -1
  179. package/dist/lib/esm/src/core/ui/components/field/Field.js +5 -5
  180. package/dist/lib/esm/src/core/ui/components/field/Field.js.map +1 -1
  181. package/dist/lib/esm/src/index.js +2 -1
  182. package/dist/lib/esm/src/index.js.map +1 -1
  183. package/dist/lib/src/core/hooks/useResize.js +1 -1
  184. package/dist/lib/src/core/hooks/useResize.js.map +1 -1
  185. package/dist/lib/src/core/ui/components/container/Flex.js +11 -1
  186. package/dist/lib/src/core/ui/components/container/Flex.js.map +1 -1
  187. package/dist/types/src/core/hooks/useResize.d.ts.map +1 -1
  188. package/dist/types/src/core/ui/components/container/Flex.d.ts +29 -0
  189. package/dist/types/src/core/ui/components/container/Flex.d.ts.map +1 -1
  190. package/dist/ui/esm/node_modules/core-js/internals/document-all.js +1 -0
  191. package/dist/ui/esm/node_modules/core-js/internals/document-all.js.map +1 -1
  192. package/dist/ui/esm/node_modules/core-js/internals/shared.js +2 -2
  193. package/dist/ui/esm/node_modules/core-js/internals/shared.js.map +1 -1
  194. package/dist/ui/esm/src/core/ui/components/container/Container.js +2 -2
  195. package/dist/ui/esm/src/core/ui/components/container/Container.js.map +1 -1
  196. package/dist/ui/esm/src/core/ui/components/container/Flex.js +18 -4
  197. package/dist/ui/esm/src/core/ui/components/container/Flex.js.map +1 -1
  198. package/dist/ui/esm/src/core/ui/components/container/Placeholder.js +1 -1
  199. package/dist/ui/esm/src/core/ui/components/dividers/DividerLine.js +1 -1
  200. package/dist/ui/esm/src/core/ui/components/dividers/DividerLine.js.map +1 -1
  201. package/dist/ui/esm/src/core/ui/components/field/Field.js +5 -5
  202. package/dist/ui/esm/src/core/ui/components/field/Field.js.map +1 -1
  203. package/dist/ui/esm/src/core/ui/index.js +1 -1
  204. package/dist/ui/node_modules/core-js/internals/document-all.js +1 -0
  205. package/dist/ui/node_modules/core-js/internals/document-all.js.map +1 -1
  206. package/dist/ui/node_modules/core-js/internals/shared.js +2 -2
  207. package/dist/ui/node_modules/core-js/internals/shared.js.map +1 -1
  208. package/dist/ui/src/core/ui/components/container/Container.js +2 -2
  209. package/dist/ui/src/core/ui/components/container/Container.js.map +1 -1
  210. package/dist/ui/src/core/ui/components/container/Flex.js +18 -3
  211. package/dist/ui/src/core/ui/components/container/Flex.js.map +1 -1
  212. package/dist/ui/src/core/ui/components/container/Placeholder.js +1 -1
  213. package/dist/ui/src/core/ui/components/dividers/DividerLine.js +1 -1
  214. package/dist/ui/src/core/ui/components/dividers/DividerLine.js.map +1 -1
  215. package/dist/ui/src/core/ui/components/field/Field.js +5 -5
  216. package/dist/ui/src/core/ui/components/field/Field.js.map +1 -1
  217. package/dist/ui/src/core/ui/index.js +1 -0
  218. package/dist/ui/src/core/ui/index.js.map +1 -1
  219. package/dist/utils/_virtual/is-pure.js +8 -0
  220. package/dist/utils/_virtual/is-pure.js.map +1 -0
  221. package/dist/utils/_virtual/path.js +8 -0
  222. package/dist/utils/_virtual/path.js.map +1 -0
  223. package/dist/utils/esm/_virtual/is-pure.js +3 -0
  224. package/dist/utils/esm/_virtual/is-pure.js.map +1 -0
  225. package/dist/utils/esm/_virtual/path.js +3 -0
  226. package/dist/utils/esm/_virtual/path.js.map +1 -0
  227. package/dist/utils/esm/node_modules/core-js/internals/document-all.js +1 -0
  228. package/dist/utils/esm/node_modules/core-js/internals/document-all.js.map +1 -1
  229. package/dist/utils/esm/node_modules/core-js/internals/is-pure.js +4 -0
  230. package/dist/utils/esm/node_modules/core-js/internals/is-pure.js.map +1 -0
  231. package/dist/utils/esm/node_modules/core-js/internals/path.js +6 -0
  232. package/dist/utils/esm/node_modules/core-js/internals/path.js.map +1 -0
  233. package/dist/utils/esm/node_modules/core-js/internals/shared.js +2 -2
  234. package/dist/utils/esm/node_modules/core-js/internals/shared.js.map +1 -1
  235. package/dist/utils/esm/node_modules/core-js/modules/es.number.constructor.js +32 -18
  236. package/dist/utils/esm/node_modules/core-js/modules/es.number.constructor.js.map +1 -1
  237. package/dist/utils/node_modules/core-js/internals/document-all.js +1 -0
  238. package/dist/utils/node_modules/core-js/internals/document-all.js.map +1 -1
  239. package/dist/utils/node_modules/core-js/internals/is-pure.js +9 -0
  240. package/dist/utils/node_modules/core-js/internals/is-pure.js.map +1 -0
  241. package/dist/utils/node_modules/core-js/internals/path.js +11 -0
  242. package/dist/utils/node_modules/core-js/internals/path.js.map +1 -0
  243. package/dist/utils/node_modules/core-js/internals/shared.js +2 -2
  244. package/dist/utils/node_modules/core-js/internals/shared.js.map +1 -1
  245. package/dist/utils/node_modules/core-js/modules/es.number.constructor.js +32 -18
  246. package/dist/utils/node_modules/core-js/modules/es.number.constructor.js.map +1 -1
  247. package/package.json +1 -1
@@ -0,0 +1,31 @@
1
+ 'use strict';
2
+
3
+ var _Symbol = require('./_Symbol.js');
4
+ var _getRawTag = require('./_getRawTag.js');
5
+ var _objectToString = require('./_objectToString.js');
6
+
7
+ /** `Object#toString` result references. */
8
+ var nullTag = '[object Null]',
9
+ undefinedTag = '[object Undefined]';
10
+
11
+ /** Built-in value references. */
12
+ var symToStringTag = _Symbol ? _Symbol.toStringTag : undefined;
13
+
14
+ /**
15
+ * The base implementation of `getTag` without fallbacks for buggy environments.
16
+ *
17
+ * @private
18
+ * @param {*} value The value to query.
19
+ * @returns {string} Returns the `toStringTag`.
20
+ */
21
+ function baseGetTag(value) {
22
+ if (value == null) {
23
+ return value === undefined ? undefinedTag : nullTag;
24
+ }
25
+ return (symToStringTag && symToStringTag in Object(value))
26
+ ? _getRawTag(value)
27
+ : _objectToString(value);
28
+ }
29
+
30
+ module.exports = baseGetTag;
31
+ //# sourceMappingURL=_baseGetTag.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_baseGetTag.js","sources":["../../../../../node_modules/lodash-es/_baseGetTag.js"],"sourcesContent":["import Symbol from './_Symbol.js';\nimport getRawTag from './_getRawTag.js';\nimport objectToString from './_objectToString.js';\n\n/** `Object#toString` result references. */\nvar nullTag = '[object Null]',\n undefinedTag = '[object Undefined]';\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nfunction baseGetTag(value) {\n if (value == null) {\n return value === undefined ? undefinedTag : nullTag;\n }\n return (symToStringTag && symToStringTag in Object(value))\n ? getRawTag(value)\n : objectToString(value);\n}\n\nexport default baseGetTag;\n"],"names":["Symbol","getRawTag","objectToString"],"mappings":";;;;;;AAIA;AACA,IAAI,OAAO,GAAG,eAAe;AAC7B,IAAI,YAAY,GAAG,oBAAoB,CAAC;AACxC;AACA;AACA,IAAI,cAAc,GAAGA,OAAM,GAAGA,OAAM,CAAC,WAAW,GAAG,SAAS,CAAC;AAC7D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,UAAU,CAAC,KAAK,EAAE;AAC3B,EAAE,IAAI,KAAK,IAAI,IAAI,EAAE;AACrB,IAAI,OAAO,KAAK,KAAK,SAAS,GAAG,YAAY,GAAG,OAAO,CAAC;AACxD,GAAG;AACH,EAAE,OAAO,CAAC,cAAc,IAAI,cAAc,IAAI,MAAM,CAAC,KAAK,CAAC;AAC3D,MAAMC,UAAS,CAAC,KAAK,CAAC;AACtB,MAAMC,eAAc,CAAC,KAAK,CAAC,CAAC;AAC5B;;;;"}
@@ -0,0 +1,22 @@
1
+ 'use strict';
2
+
3
+ var _trimmedEndIndex = require('./_trimmedEndIndex.js');
4
+
5
+ /** Used to match leading whitespace. */
6
+ var reTrimStart = /^\s+/;
7
+
8
+ /**
9
+ * The base implementation of `_.trim`.
10
+ *
11
+ * @private
12
+ * @param {string} string The string to trim.
13
+ * @returns {string} Returns the trimmed string.
14
+ */
15
+ function baseTrim(string) {
16
+ return string
17
+ ? string.slice(0, _trimmedEndIndex(string) + 1).replace(reTrimStart, '')
18
+ : string;
19
+ }
20
+
21
+ module.exports = baseTrim;
22
+ //# sourceMappingURL=_baseTrim.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_baseTrim.js","sources":["../../../../../node_modules/lodash-es/_baseTrim.js"],"sourcesContent":["import trimmedEndIndex from './_trimmedEndIndex.js';\n\n/** Used to match leading whitespace. */\nvar reTrimStart = /^\\s+/;\n\n/**\n * The base implementation of `_.trim`.\n *\n * @private\n * @param {string} string The string to trim.\n * @returns {string} Returns the trimmed string.\n */\nfunction baseTrim(string) {\n return string\n ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')\n : string;\n}\n\nexport default baseTrim;\n"],"names":["trimmedEndIndex"],"mappings":";;;;AAEA;AACA,IAAI,WAAW,GAAG,MAAM,CAAC;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,QAAQ,CAAC,MAAM,EAAE;AAC1B,EAAE,OAAO,MAAM;AACf,MAAM,MAAM,CAAC,KAAK,CAAC,CAAC,EAAEA,gBAAe,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,OAAO,CAAC,WAAW,EAAE,EAAE,CAAC;AAC3E,MAAM,MAAM,CAAC;AACb;;;;"}
@@ -0,0 +1,9 @@
1
+ 'use strict';
2
+
3
+ /** Detect free variable `global` from Node.js. */
4
+ var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
5
+
6
+ var freeGlobal$1 = freeGlobal;
7
+
8
+ module.exports = freeGlobal$1;
9
+ //# sourceMappingURL=_freeGlobal.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_freeGlobal.js","sources":["../../../../../node_modules/lodash-es/_freeGlobal.js"],"sourcesContent":["/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\nexport default freeGlobal;\n"],"names":[],"mappings":";;AAAA;AACA,IAAI,UAAU,GAAG,OAAO,MAAM,IAAI,QAAQ,IAAI,MAAM,IAAI,MAAM,CAAC,MAAM,KAAK,MAAM,IAAI,MAAM,CAAC;AAC3F;AACA,mBAAe,UAAU;;;;"}
@@ -0,0 +1,49 @@
1
+ 'use strict';
2
+
3
+ var _Symbol = require('./_Symbol.js');
4
+
5
+ /** Used for built-in method references. */
6
+ var objectProto = Object.prototype;
7
+
8
+ /** Used to check objects for own properties. */
9
+ var hasOwnProperty = objectProto.hasOwnProperty;
10
+
11
+ /**
12
+ * Used to resolve the
13
+ * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
14
+ * of values.
15
+ */
16
+ var nativeObjectToString = objectProto.toString;
17
+
18
+ /** Built-in value references. */
19
+ var symToStringTag = _Symbol ? _Symbol.toStringTag : undefined;
20
+
21
+ /**
22
+ * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
23
+ *
24
+ * @private
25
+ * @param {*} value The value to query.
26
+ * @returns {string} Returns the raw `toStringTag`.
27
+ */
28
+ function getRawTag(value) {
29
+ var isOwn = hasOwnProperty.call(value, symToStringTag),
30
+ tag = value[symToStringTag];
31
+
32
+ try {
33
+ value[symToStringTag] = undefined;
34
+ var unmasked = true;
35
+ } catch (e) {}
36
+
37
+ var result = nativeObjectToString.call(value);
38
+ if (unmasked) {
39
+ if (isOwn) {
40
+ value[symToStringTag] = tag;
41
+ } else {
42
+ delete value[symToStringTag];
43
+ }
44
+ }
45
+ return result;
46
+ }
47
+
48
+ module.exports = getRawTag;
49
+ //# sourceMappingURL=_getRawTag.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_getRawTag.js","sources":["../../../../../node_modules/lodash-es/_getRawTag.js"],"sourcesContent":["import Symbol from './_Symbol.js';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\nfunction getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag),\n tag = value[symToStringTag];\n\n try {\n value[symToStringTag] = undefined;\n var unmasked = true;\n } catch (e) {}\n\n var result = nativeObjectToString.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag] = tag;\n } else {\n delete value[symToStringTag];\n }\n }\n return result;\n}\n\nexport default getRawTag;\n"],"names":["Symbol"],"mappings":";;;;AAEA;AACA,IAAI,WAAW,GAAG,MAAM,CAAC,SAAS,CAAC;AACnC;AACA;AACA,IAAI,cAAc,GAAG,WAAW,CAAC,cAAc,CAAC;AAChD;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,oBAAoB,GAAG,WAAW,CAAC,QAAQ,CAAC;AAChD;AACA;AACA,IAAI,cAAc,GAAGA,OAAM,GAAGA,OAAM,CAAC,WAAW,GAAG,SAAS,CAAC;AAC7D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,SAAS,CAAC,KAAK,EAAE;AAC1B,EAAE,IAAI,KAAK,GAAG,cAAc,CAAC,IAAI,CAAC,KAAK,EAAE,cAAc,CAAC;AACxD,MAAM,GAAG,GAAG,KAAK,CAAC,cAAc,CAAC,CAAC;AAClC;AACA,EAAE,IAAI;AACN,IAAI,KAAK,CAAC,cAAc,CAAC,GAAG,SAAS,CAAC;AACtC,IAAI,IAAI,QAAQ,GAAG,IAAI,CAAC;AACxB,GAAG,CAAC,OAAO,CAAC,EAAE,EAAE;AAChB;AACA,EAAE,IAAI,MAAM,GAAG,oBAAoB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AAChD,EAAE,IAAI,QAAQ,EAAE;AAChB,IAAI,IAAI,KAAK,EAAE;AACf,MAAM,KAAK,CAAC,cAAc,CAAC,GAAG,GAAG,CAAC;AAClC,KAAK,MAAM;AACX,MAAM,OAAO,KAAK,CAAC,cAAc,CAAC,CAAC;AACnC,KAAK;AACL,GAAG;AACH,EAAE,OAAO,MAAM,CAAC;AAChB;;;;"}
@@ -0,0 +1,25 @@
1
+ 'use strict';
2
+
3
+ /** Used for built-in method references. */
4
+ var objectProto = Object.prototype;
5
+
6
+ /**
7
+ * Used to resolve the
8
+ * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
9
+ * of values.
10
+ */
11
+ var nativeObjectToString = objectProto.toString;
12
+
13
+ /**
14
+ * Converts `value` to a string using `Object.prototype.toString`.
15
+ *
16
+ * @private
17
+ * @param {*} value The value to convert.
18
+ * @returns {string} Returns the converted string.
19
+ */
20
+ function objectToString(value) {
21
+ return nativeObjectToString.call(value);
22
+ }
23
+
24
+ module.exports = objectToString;
25
+ //# sourceMappingURL=_objectToString.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_objectToString.js","sources":["../../../../../node_modules/lodash-es/_objectToString.js"],"sourcesContent":["/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\nfunction objectToString(value) {\n return nativeObjectToString.call(value);\n}\n\nexport default objectToString;\n"],"names":[],"mappings":";;AAAA;AACA,IAAI,WAAW,GAAG,MAAM,CAAC,SAAS,CAAC;AACnC;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,oBAAoB,GAAG,WAAW,CAAC,QAAQ,CAAC;AAChD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,cAAc,CAAC,KAAK,EAAE;AAC/B,EAAE,OAAO,oBAAoB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AAC1C;;;;"}
@@ -0,0 +1,14 @@
1
+ 'use strict';
2
+
3
+ var _freeGlobal = require('./_freeGlobal.js');
4
+
5
+ /** Detect free variable `self`. */
6
+ var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
7
+
8
+ /** Used as a reference to the global object. */
9
+ var root = _freeGlobal || freeSelf || Function('return this')();
10
+
11
+ var root$1 = root;
12
+
13
+ module.exports = root$1;
14
+ //# sourceMappingURL=_root.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_root.js","sources":["../../../../../node_modules/lodash-es/_root.js"],"sourcesContent":["import freeGlobal from './_freeGlobal.js';\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\nexport default root;\n"],"names":["freeGlobal"],"mappings":";;;;AAEA;AACA,IAAI,QAAQ,GAAG,OAAO,IAAI,IAAI,QAAQ,IAAI,IAAI,IAAI,IAAI,CAAC,MAAM,KAAK,MAAM,IAAI,IAAI,CAAC;AACjF;AACA;AACA,IAAI,IAAI,GAAGA,WAAU,IAAI,QAAQ,IAAI,QAAQ,CAAC,aAAa,CAAC,EAAE,CAAC;AAC/D;AACA,aAAe,IAAI;;;;"}
@@ -0,0 +1,22 @@
1
+ 'use strict';
2
+
3
+ /** Used to match a single whitespace character. */
4
+ var reWhitespace = /\s/;
5
+
6
+ /**
7
+ * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace
8
+ * character of `string`.
9
+ *
10
+ * @private
11
+ * @param {string} string The string to inspect.
12
+ * @returns {number} Returns the index of the last non-whitespace character.
13
+ */
14
+ function trimmedEndIndex(string) {
15
+ var index = string.length;
16
+
17
+ while (index-- && reWhitespace.test(string.charAt(index))) {}
18
+ return index;
19
+ }
20
+
21
+ module.exports = trimmedEndIndex;
22
+ //# sourceMappingURL=_trimmedEndIndex.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_trimmedEndIndex.js","sources":["../../../../../node_modules/lodash-es/_trimmedEndIndex.js"],"sourcesContent":["/** Used to match a single whitespace character. */\nvar reWhitespace = /\\s/;\n\n/**\n * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace\n * character of `string`.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {number} Returns the index of the last non-whitespace character.\n */\nfunction trimmedEndIndex(string) {\n var index = string.length;\n\n while (index-- && reWhitespace.test(string.charAt(index))) {}\n return index;\n}\n\nexport default trimmedEndIndex;\n"],"names":[],"mappings":";;AAAA;AACA,IAAI,YAAY,GAAG,IAAI,CAAC;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,eAAe,CAAC,MAAM,EAAE;AACjC,EAAE,IAAI,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC;AAC5B;AACA,EAAE,OAAO,KAAK,EAAE,IAAI,YAAY,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE;AAC/D,EAAE,OAAO,KAAK,CAAC;AACf;;;;"}
@@ -0,0 +1,194 @@
1
+ 'use strict';
2
+
3
+ var isObject = require('./isObject.js');
4
+ var now = require('./now.js');
5
+ var toNumber = require('./toNumber.js');
6
+
7
+ /** Error message constants. */
8
+ var FUNC_ERROR_TEXT = 'Expected a function';
9
+
10
+ /* Built-in method references for those with the same name as other `lodash` methods. */
11
+ var nativeMax = Math.max,
12
+ nativeMin = Math.min;
13
+
14
+ /**
15
+ * Creates a debounced function that delays invoking `func` until after `wait`
16
+ * milliseconds have elapsed since the last time the debounced function was
17
+ * invoked. The debounced function comes with a `cancel` method to cancel
18
+ * delayed `func` invocations and a `flush` method to immediately invoke them.
19
+ * Provide `options` to indicate whether `func` should be invoked on the
20
+ * leading and/or trailing edge of the `wait` timeout. The `func` is invoked
21
+ * with the last arguments provided to the debounced function. Subsequent
22
+ * calls to the debounced function return the result of the last `func`
23
+ * invocation.
24
+ *
25
+ * **Note:** If `leading` and `trailing` options are `true`, `func` is
26
+ * invoked on the trailing edge of the timeout only if the debounced function
27
+ * is invoked more than once during the `wait` timeout.
28
+ *
29
+ * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
30
+ * until to the next tick, similar to `setTimeout` with a timeout of `0`.
31
+ *
32
+ * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
33
+ * for details over the differences between `_.debounce` and `_.throttle`.
34
+ *
35
+ * @static
36
+ * @memberOf _
37
+ * @since 0.1.0
38
+ * @category Function
39
+ * @param {Function} func The function to debounce.
40
+ * @param {number} [wait=0] The number of milliseconds to delay.
41
+ * @param {Object} [options={}] The options object.
42
+ * @param {boolean} [options.leading=false]
43
+ * Specify invoking on the leading edge of the timeout.
44
+ * @param {number} [options.maxWait]
45
+ * The maximum time `func` is allowed to be delayed before it's invoked.
46
+ * @param {boolean} [options.trailing=true]
47
+ * Specify invoking on the trailing edge of the timeout.
48
+ * @returns {Function} Returns the new debounced function.
49
+ * @example
50
+ *
51
+ * // Avoid costly calculations while the window size is in flux.
52
+ * jQuery(window).on('resize', _.debounce(calculateLayout, 150));
53
+ *
54
+ * // Invoke `sendMail` when clicked, debouncing subsequent calls.
55
+ * jQuery(element).on('click', _.debounce(sendMail, 300, {
56
+ * 'leading': true,
57
+ * 'trailing': false
58
+ * }));
59
+ *
60
+ * // Ensure `batchLog` is invoked once after 1 second of debounced calls.
61
+ * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
62
+ * var source = new EventSource('/stream');
63
+ * jQuery(source).on('message', debounced);
64
+ *
65
+ * // Cancel the trailing debounced invocation.
66
+ * jQuery(window).on('popstate', debounced.cancel);
67
+ */
68
+ function debounce(func, wait, options) {
69
+ var lastArgs,
70
+ lastThis,
71
+ maxWait,
72
+ result,
73
+ timerId,
74
+ lastCallTime,
75
+ lastInvokeTime = 0,
76
+ leading = false,
77
+ maxing = false,
78
+ trailing = true;
79
+
80
+ if (typeof func != 'function') {
81
+ throw new TypeError(FUNC_ERROR_TEXT);
82
+ }
83
+ wait = toNumber(wait) || 0;
84
+ if (isObject(options)) {
85
+ leading = !!options.leading;
86
+ maxing = 'maxWait' in options;
87
+ maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
88
+ trailing = 'trailing' in options ? !!options.trailing : trailing;
89
+ }
90
+
91
+ function invokeFunc(time) {
92
+ var args = lastArgs,
93
+ thisArg = lastThis;
94
+
95
+ lastArgs = lastThis = undefined;
96
+ lastInvokeTime = time;
97
+ result = func.apply(thisArg, args);
98
+ return result;
99
+ }
100
+
101
+ function leadingEdge(time) {
102
+ // Reset any `maxWait` timer.
103
+ lastInvokeTime = time;
104
+ // Start the timer for the trailing edge.
105
+ timerId = setTimeout(timerExpired, wait);
106
+ // Invoke the leading edge.
107
+ return leading ? invokeFunc(time) : result;
108
+ }
109
+
110
+ function remainingWait(time) {
111
+ var timeSinceLastCall = time - lastCallTime,
112
+ timeSinceLastInvoke = time - lastInvokeTime,
113
+ timeWaiting = wait - timeSinceLastCall;
114
+
115
+ return maxing
116
+ ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)
117
+ : timeWaiting;
118
+ }
119
+
120
+ function shouldInvoke(time) {
121
+ var timeSinceLastCall = time - lastCallTime,
122
+ timeSinceLastInvoke = time - lastInvokeTime;
123
+
124
+ // Either this is the first call, activity has stopped and we're at the
125
+ // trailing edge, the system time has gone backwards and we're treating
126
+ // it as the trailing edge, or we've hit the `maxWait` limit.
127
+ return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||
128
+ (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));
129
+ }
130
+
131
+ function timerExpired() {
132
+ var time = now();
133
+ if (shouldInvoke(time)) {
134
+ return trailingEdge(time);
135
+ }
136
+ // Restart the timer.
137
+ timerId = setTimeout(timerExpired, remainingWait(time));
138
+ }
139
+
140
+ function trailingEdge(time) {
141
+ timerId = undefined;
142
+
143
+ // Only invoke if we have `lastArgs` which means `func` has been
144
+ // debounced at least once.
145
+ if (trailing && lastArgs) {
146
+ return invokeFunc(time);
147
+ }
148
+ lastArgs = lastThis = undefined;
149
+ return result;
150
+ }
151
+
152
+ function cancel() {
153
+ if (timerId !== undefined) {
154
+ clearTimeout(timerId);
155
+ }
156
+ lastInvokeTime = 0;
157
+ lastArgs = lastCallTime = lastThis = timerId = undefined;
158
+ }
159
+
160
+ function flush() {
161
+ return timerId === undefined ? result : trailingEdge(now());
162
+ }
163
+
164
+ function debounced() {
165
+ var time = now(),
166
+ isInvoking = shouldInvoke(time);
167
+
168
+ lastArgs = arguments;
169
+ lastThis = this;
170
+ lastCallTime = time;
171
+
172
+ if (isInvoking) {
173
+ if (timerId === undefined) {
174
+ return leadingEdge(lastCallTime);
175
+ }
176
+ if (maxing) {
177
+ // Handle invocations in a tight loop.
178
+ clearTimeout(timerId);
179
+ timerId = setTimeout(timerExpired, wait);
180
+ return invokeFunc(lastCallTime);
181
+ }
182
+ }
183
+ if (timerId === undefined) {
184
+ timerId = setTimeout(timerExpired, wait);
185
+ }
186
+ return result;
187
+ }
188
+ debounced.cancel = cancel;
189
+ debounced.flush = flush;
190
+ return debounced;
191
+ }
192
+
193
+ module.exports = debounce;
194
+ //# sourceMappingURL=debounce.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"debounce.js","sources":["../../../../../node_modules/lodash-es/debounce.js"],"sourcesContent":["import isObject from './isObject.js';\nimport now from './now.js';\nimport toNumber from './toNumber.js';\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max,\n nativeMin = Math.min;\n\n/**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked. The debounced function comes with a `cancel` method to cancel\n * delayed `func` invocations and a `flush` method to immediately invoke them.\n * Provide `options` to indicate whether `func` should be invoked on the\n * leading and/or trailing edge of the `wait` timeout. The `func` is invoked\n * with the last arguments provided to the debounced function. Subsequent\n * calls to the debounced function return the result of the last `func`\n * invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.debounce` and `_.throttle`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0] The number of milliseconds to delay.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=false]\n * Specify invoking on the leading edge of the timeout.\n * @param {number} [options.maxWait]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * jQuery(window).on('resize', _.debounce(calculateLayout, 150));\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * jQuery(element).on('click', _.debounce(sendMail, 300, {\n * 'leading': true,\n * 'trailing': false\n * }));\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });\n * var source = new EventSource('/stream');\n * jQuery(source).on('message', debounced);\n *\n * // Cancel the trailing debounced invocation.\n * jQuery(window).on('popstate', debounced.cancel);\n */\nfunction debounce(func, wait, options) {\n var lastArgs,\n lastThis,\n maxWait,\n result,\n timerId,\n lastCallTime,\n lastInvokeTime = 0,\n leading = false,\n maxing = false,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n wait = toNumber(wait) || 0;\n if (isObject(options)) {\n leading = !!options.leading;\n maxing = 'maxWait' in options;\n maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n\n function invokeFunc(time) {\n var args = lastArgs,\n thisArg = lastThis;\n\n lastArgs = lastThis = undefined;\n lastInvokeTime = time;\n result = func.apply(thisArg, args);\n return result;\n }\n\n function leadingEdge(time) {\n // Reset any `maxWait` timer.\n lastInvokeTime = time;\n // Start the timer for the trailing edge.\n timerId = setTimeout(timerExpired, wait);\n // Invoke the leading edge.\n return leading ? invokeFunc(time) : result;\n }\n\n function remainingWait(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime,\n timeWaiting = wait - timeSinceLastCall;\n\n return maxing\n ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)\n : timeWaiting;\n }\n\n function shouldInvoke(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime;\n\n // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||\n (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));\n }\n\n function timerExpired() {\n var time = now();\n if (shouldInvoke(time)) {\n return trailingEdge(time);\n }\n // Restart the timer.\n timerId = setTimeout(timerExpired, remainingWait(time));\n }\n\n function trailingEdge(time) {\n timerId = undefined;\n\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs) {\n return invokeFunc(time);\n }\n lastArgs = lastThis = undefined;\n return result;\n }\n\n function cancel() {\n if (timerId !== undefined) {\n clearTimeout(timerId);\n }\n lastInvokeTime = 0;\n lastArgs = lastCallTime = lastThis = timerId = undefined;\n }\n\n function flush() {\n return timerId === undefined ? result : trailingEdge(now());\n }\n\n function debounced() {\n var time = now(),\n isInvoking = shouldInvoke(time);\n\n lastArgs = arguments;\n lastThis = this;\n lastCallTime = time;\n\n if (isInvoking) {\n if (timerId === undefined) {\n return leadingEdge(lastCallTime);\n }\n if (maxing) {\n // Handle invocations in a tight loop.\n clearTimeout(timerId);\n timerId = setTimeout(timerExpired, wait);\n return invokeFunc(lastCallTime);\n }\n }\n if (timerId === undefined) {\n timerId = setTimeout(timerExpired, wait);\n }\n return result;\n }\n debounced.cancel = cancel;\n debounced.flush = flush;\n return debounced;\n}\n\nexport default debounce;\n"],"names":[],"mappings":"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"}
@@ -0,0 +1,34 @@
1
+ 'use strict';
2
+
3
+ /**
4
+ * Checks if `value` is the
5
+ * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
6
+ * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
7
+ *
8
+ * @static
9
+ * @memberOf _
10
+ * @since 0.1.0
11
+ * @category Lang
12
+ * @param {*} value The value to check.
13
+ * @returns {boolean} Returns `true` if `value` is an object, else `false`.
14
+ * @example
15
+ *
16
+ * _.isObject({});
17
+ * // => true
18
+ *
19
+ * _.isObject([1, 2, 3]);
20
+ * // => true
21
+ *
22
+ * _.isObject(_.noop);
23
+ * // => true
24
+ *
25
+ * _.isObject(null);
26
+ * // => false
27
+ */
28
+ function isObject(value) {
29
+ var type = typeof value;
30
+ return value != null && (type == 'object' || type == 'function');
31
+ }
32
+
33
+ module.exports = isObject;
34
+ //# sourceMappingURL=isObject.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isObject.js","sources":["../../../../../node_modules/lodash-es/isObject.js"],"sourcesContent":["/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = typeof value;\n return value != null && (type == 'object' || type == 'function');\n}\n\nexport default isObject;\n"],"names":[],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,QAAQ,CAAC,KAAK,EAAE;AACzB,EAAE,IAAI,IAAI,GAAG,OAAO,KAAK,CAAC;AAC1B,EAAE,OAAO,KAAK,IAAI,IAAI,KAAK,IAAI,IAAI,QAAQ,IAAI,IAAI,IAAI,UAAU,CAAC,CAAC;AACnE;;;;"}
@@ -0,0 +1,32 @@
1
+ 'use strict';
2
+
3
+ /**
4
+ * Checks if `value` is object-like. A value is object-like if it's not `null`
5
+ * and has a `typeof` result of "object".
6
+ *
7
+ * @static
8
+ * @memberOf _
9
+ * @since 4.0.0
10
+ * @category Lang
11
+ * @param {*} value The value to check.
12
+ * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
13
+ * @example
14
+ *
15
+ * _.isObjectLike({});
16
+ * // => true
17
+ *
18
+ * _.isObjectLike([1, 2, 3]);
19
+ * // => true
20
+ *
21
+ * _.isObjectLike(_.noop);
22
+ * // => false
23
+ *
24
+ * _.isObjectLike(null);
25
+ * // => false
26
+ */
27
+ function isObjectLike(value) {
28
+ return value != null && typeof value == 'object';
29
+ }
30
+
31
+ module.exports = isObjectLike;
32
+ //# sourceMappingURL=isObjectLike.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isObjectLike.js","sources":["../../../../../node_modules/lodash-es/isObjectLike.js"],"sourcesContent":["/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return value != null && typeof value == 'object';\n}\n\nexport default isObjectLike;\n"],"names":[],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,YAAY,CAAC,KAAK,EAAE;AAC7B,EAAE,OAAO,KAAK,IAAI,IAAI,IAAI,OAAO,KAAK,IAAI,QAAQ,CAAC;AACnD;;;;"}
@@ -0,0 +1,32 @@
1
+ 'use strict';
2
+
3
+ var _baseGetTag = require('./_baseGetTag.js');
4
+ var isObjectLike = require('./isObjectLike.js');
5
+
6
+ /** `Object#toString` result references. */
7
+ var symbolTag = '[object Symbol]';
8
+
9
+ /**
10
+ * Checks if `value` is classified as a `Symbol` primitive or object.
11
+ *
12
+ * @static
13
+ * @memberOf _
14
+ * @since 4.0.0
15
+ * @category Lang
16
+ * @param {*} value The value to check.
17
+ * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
18
+ * @example
19
+ *
20
+ * _.isSymbol(Symbol.iterator);
21
+ * // => true
22
+ *
23
+ * _.isSymbol('abc');
24
+ * // => false
25
+ */
26
+ function isSymbol(value) {
27
+ return typeof value == 'symbol' ||
28
+ (isObjectLike(value) && _baseGetTag(value) == symbolTag);
29
+ }
30
+
31
+ module.exports = isSymbol;
32
+ //# sourceMappingURL=isSymbol.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isSymbol.js","sources":["../../../../../node_modules/lodash-es/isSymbol.js"],"sourcesContent":["import baseGetTag from './_baseGetTag.js';\nimport isObjectLike from './isObjectLike.js';\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && baseGetTag(value) == symbolTag);\n}\n\nexport default isSymbol;\n"],"names":["baseGetTag"],"mappings":";;;;;AAGA;AACA,IAAI,SAAS,GAAG,iBAAiB,CAAC;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,QAAQ,CAAC,KAAK,EAAE;AACzB,EAAE,OAAO,OAAO,KAAK,IAAI,QAAQ;AACjC,KAAK,YAAY,CAAC,KAAK,CAAC,IAAIA,WAAU,CAAC,KAAK,CAAC,IAAI,SAAS,CAAC,CAAC;AAC5D;;;;"}
@@ -0,0 +1,28 @@
1
+ 'use strict';
2
+
3
+ var _root = require('./_root.js');
4
+
5
+ /**
6
+ * Gets the timestamp of the number of milliseconds that have elapsed since
7
+ * the Unix epoch (1 January 1970 00:00:00 UTC).
8
+ *
9
+ * @static
10
+ * @memberOf _
11
+ * @since 2.4.0
12
+ * @category Date
13
+ * @returns {number} Returns the timestamp.
14
+ * @example
15
+ *
16
+ * _.defer(function(stamp) {
17
+ * console.log(_.now() - stamp);
18
+ * }, _.now());
19
+ * // => Logs the number of milliseconds it took for the deferred invocation.
20
+ */
21
+ var now = function() {
22
+ return _root.Date.now();
23
+ };
24
+
25
+ var now$1 = now;
26
+
27
+ module.exports = now$1;
28
+ //# sourceMappingURL=now.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"now.js","sources":["../../../../../node_modules/lodash-es/now.js"],"sourcesContent":["import root from './_root.js';\n\n/**\n * Gets the timestamp of the number of milliseconds that have elapsed since\n * the Unix epoch (1 January 1970 00:00:00 UTC).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Date\n * @returns {number} Returns the timestamp.\n * @example\n *\n * _.defer(function(stamp) {\n * console.log(_.now() - stamp);\n * }, _.now());\n * // => Logs the number of milliseconds it took for the deferred invocation.\n */\nvar now = function() {\n return root.Date.now();\n};\n\nexport default now;\n"],"names":["root"],"mappings":";;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,GAAG,GAAG,WAAW;AACrB,EAAE,OAAOA,KAAI,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC;AACzB,CAAC,CAAC;AACF;AACA,YAAe,GAAG;;;;"}
@@ -0,0 +1,67 @@
1
+ 'use strict';
2
+
3
+ var _baseTrim = require('./_baseTrim.js');
4
+ var isObject = require('./isObject.js');
5
+ var isSymbol = require('./isSymbol.js');
6
+
7
+ /** Used as references for various `Number` constants. */
8
+ var NAN = 0 / 0;
9
+
10
+ /** Used to detect bad signed hexadecimal string values. */
11
+ var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
12
+
13
+ /** Used to detect binary string values. */
14
+ var reIsBinary = /^0b[01]+$/i;
15
+
16
+ /** Used to detect octal string values. */
17
+ var reIsOctal = /^0o[0-7]+$/i;
18
+
19
+ /** Built-in method references without a dependency on `root`. */
20
+ var freeParseInt = parseInt;
21
+
22
+ /**
23
+ * Converts `value` to a number.
24
+ *
25
+ * @static
26
+ * @memberOf _
27
+ * @since 4.0.0
28
+ * @category Lang
29
+ * @param {*} value The value to process.
30
+ * @returns {number} Returns the number.
31
+ * @example
32
+ *
33
+ * _.toNumber(3.2);
34
+ * // => 3.2
35
+ *
36
+ * _.toNumber(Number.MIN_VALUE);
37
+ * // => 5e-324
38
+ *
39
+ * _.toNumber(Infinity);
40
+ * // => Infinity
41
+ *
42
+ * _.toNumber('3.2');
43
+ * // => 3.2
44
+ */
45
+ function toNumber(value) {
46
+ if (typeof value == 'number') {
47
+ return value;
48
+ }
49
+ if (isSymbol(value)) {
50
+ return NAN;
51
+ }
52
+ if (isObject(value)) {
53
+ var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
54
+ value = isObject(other) ? (other + '') : other;
55
+ }
56
+ if (typeof value != 'string') {
57
+ return value === 0 ? value : +value;
58
+ }
59
+ value = _baseTrim(value);
60
+ var isBinary = reIsBinary.test(value);
61
+ return (isBinary || reIsOctal.test(value))
62
+ ? freeParseInt(value.slice(2), isBinary ? 2 : 8)
63
+ : (reIsBadHex.test(value) ? NAN : +value);
64
+ }
65
+
66
+ module.exports = toNumber;
67
+ //# sourceMappingURL=toNumber.js.map