victory-vendor 36.4.0

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 (279) hide show
  1. package/LICENSE.txt +30 -0
  2. package/README.md +70 -0
  3. package/d3-array.js +7 -0
  4. package/d3-ease.js +7 -0
  5. package/d3-interpolate.js +7 -0
  6. package/d3-scale.js +7 -0
  7. package/d3-shape.js +7 -0
  8. package/d3-time.js +7 -0
  9. package/d3-timer.js +7 -0
  10. package/es/d3-array.js +6 -0
  11. package/es/d3-color.js +6 -0
  12. package/es/d3-ease.js +6 -0
  13. package/es/d3-format.js +6 -0
  14. package/es/d3-interpolate.js +6 -0
  15. package/es/d3-path.js +6 -0
  16. package/es/d3-scale.js +6 -0
  17. package/es/d3-shape.js +6 -0
  18. package/es/d3-time-format.js +6 -0
  19. package/es/d3-time.js +6 -0
  20. package/es/d3-timer.js +6 -0
  21. package/es/internmap.js +6 -0
  22. package/lib/d3-array.js +6 -0
  23. package/lib/d3-color.js +6 -0
  24. package/lib/d3-ease.js +6 -0
  25. package/lib/d3-format.js +6 -0
  26. package/lib/d3-interpolate.js +6 -0
  27. package/lib/d3-path.js +6 -0
  28. package/lib/d3-scale.js +6 -0
  29. package/lib/d3-shape.js +6 -0
  30. package/lib/d3-time-format.js +6 -0
  31. package/lib/d3-time.js +6 -0
  32. package/lib/d3-timer.js +6 -0
  33. package/lib/internmap.js +6 -0
  34. package/lib-vendor/d3-array/LICENSE +13 -0
  35. package/lib-vendor/d3-array/src/array.js +11 -0
  36. package/lib-vendor/d3-array/src/ascending.js +10 -0
  37. package/lib-vendor/d3-array/src/bin.js +142 -0
  38. package/lib-vendor/d3-array/src/bisect.js +24 -0
  39. package/lib-vendor/d3-array/src/bisector.js +73 -0
  40. package/lib-vendor/d3-array/src/constant.js +10 -0
  41. package/lib-vendor/d3-array/src/count.js +28 -0
  42. package/lib-vendor/d3-array/src/cross.js +42 -0
  43. package/lib-vendor/d3-array/src/cumsum.js +12 -0
  44. package/lib-vendor/d3-array/src/descending.js +10 -0
  45. package/lib-vendor/d3-array/src/deviation.js +15 -0
  46. package/lib-vendor/d3-array/src/difference.js +20 -0
  47. package/lib-vendor/d3-array/src/disjoint.js +29 -0
  48. package/lib-vendor/d3-array/src/every.js +19 -0
  49. package/lib-vendor/d3-array/src/extent.js +39 -0
  50. package/lib-vendor/d3-array/src/filter.js +20 -0
  51. package/lib-vendor/d3-array/src/fsum.js +93 -0
  52. package/lib-vendor/d3-array/src/greatest.js +38 -0
  53. package/lib-vendor/d3-array/src/greatestIndex.js +30 -0
  54. package/lib-vendor/d3-array/src/group.js +85 -0
  55. package/lib-vendor/d3-array/src/groupSort.js +22 -0
  56. package/lib-vendor/d3-array/src/identity.js +10 -0
  57. package/lib-vendor/d3-array/src/index.js +567 -0
  58. package/lib-vendor/d3-array/src/intersection.js +28 -0
  59. package/lib-vendor/d3-array/src/least.js +38 -0
  60. package/lib-vendor/d3-array/src/leastIndex.js +30 -0
  61. package/lib-vendor/d3-array/src/map.js +12 -0
  62. package/lib-vendor/d3-array/src/max.js +28 -0
  63. package/lib-vendor/d3-array/src/maxIndex.js +30 -0
  64. package/lib-vendor/d3-array/src/mean.js +29 -0
  65. package/lib-vendor/d3-array/src/median.js +14 -0
  66. package/lib-vendor/d3-array/src/merge.js +16 -0
  67. package/lib-vendor/d3-array/src/min.js +28 -0
  68. package/lib-vendor/d3-array/src/minIndex.js +30 -0
  69. package/lib-vendor/d3-array/src/mode.js +40 -0
  70. package/lib-vendor/d3-array/src/nice.js +28 -0
  71. package/lib-vendor/d3-array/src/number.js +29 -0
  72. package/lib-vendor/d3-array/src/pairs.js +25 -0
  73. package/lib-vendor/d3-array/src/permute.js +10 -0
  74. package/lib-vendor/d3-array/src/quantile.js +46 -0
  75. package/lib-vendor/d3-array/src/quickselect.js +53 -0
  76. package/lib-vendor/d3-array/src/range.js +19 -0
  77. package/lib-vendor/d3-array/src/rank.js +34 -0
  78. package/lib-vendor/d3-array/src/reduce.js +32 -0
  79. package/lib-vendor/d3-array/src/reverse.js +11 -0
  80. package/lib-vendor/d3-array/src/scan.js +15 -0
  81. package/lib-vendor/d3-array/src/shuffle.js +26 -0
  82. package/lib-vendor/d3-array/src/some.js +19 -0
  83. package/lib-vendor/d3-array/src/sort.js +55 -0
  84. package/lib-vendor/d3-array/src/subset.js +14 -0
  85. package/lib-vendor/d3-array/src/sum.js +28 -0
  86. package/lib-vendor/d3-array/src/superset.js +33 -0
  87. package/lib-vendor/d3-array/src/threshold/freedmanDiaconis.js +16 -0
  88. package/lib-vendor/d3-array/src/threshold/scott.js +16 -0
  89. package/lib-vendor/d3-array/src/threshold/sturges.js +14 -0
  90. package/lib-vendor/d3-array/src/ticks.js +60 -0
  91. package/lib-vendor/d3-array/src/transpose.js +26 -0
  92. package/lib-vendor/d3-array/src/union.js +20 -0
  93. package/lib-vendor/d3-array/src/variance.js +35 -0
  94. package/lib-vendor/d3-array/src/zip.js +14 -0
  95. package/lib-vendor/d3-color/LICENSE +13 -0
  96. package/lib-vendor/d3-color/src/color.js +413 -0
  97. package/lib-vendor/d3-color/src/cubehelix.js +74 -0
  98. package/lib-vendor/d3-color/src/define.js +20 -0
  99. package/lib-vendor/d3-color/src/index.js +65 -0
  100. package/lib-vendor/d3-color/src/lab.js +146 -0
  101. package/lib-vendor/d3-color/src/math.js +10 -0
  102. package/lib-vendor/d3-ease/LICENSE +28 -0
  103. package/lib-vendor/d3-ease/src/back.js +46 -0
  104. package/lib-vendor/d3-ease/src/bounce.js +30 -0
  105. package/lib-vendor/d3-ease/src/circle.js +20 -0
  106. package/lib-vendor/d3-ease/src/cubic.js +20 -0
  107. package/lib-vendor/d3-ease/src/elastic.js +72 -0
  108. package/lib-vendor/d3-ease/src/exp.js +22 -0
  109. package/lib-vendor/d3-ease/src/index.js +247 -0
  110. package/lib-vendor/d3-ease/src/linear.js +10 -0
  111. package/lib-vendor/d3-ease/src/math.js +11 -0
  112. package/lib-vendor/d3-ease/src/poly.js +46 -0
  113. package/lib-vendor/d3-ease/src/quad.js +20 -0
  114. package/lib-vendor/d3-ease/src/sin.js +22 -0
  115. package/lib-vendor/d3-format/LICENSE +13 -0
  116. package/lib-vendor/d3-format/src/defaultLocale.js +29 -0
  117. package/lib-vendor/d3-format/src/exponent.js +12 -0
  118. package/lib-vendor/d3-format/src/formatDecimal.js +24 -0
  119. package/lib-vendor/d3-format/src/formatGroup.js +25 -0
  120. package/lib-vendor/d3-format/src/formatNumerals.js +14 -0
  121. package/lib-vendor/d3-format/src/formatPrefixAuto.js +22 -0
  122. package/lib-vendor/d3-format/src/formatRounded.js +16 -0
  123. package/lib-vendor/d3-format/src/formatSpecifier.js +45 -0
  124. package/lib-vendor/d3-format/src/formatTrim.js +29 -0
  125. package/lib-vendor/d3-format/src/formatTypes.js +31 -0
  126. package/lib-vendor/d3-format/src/identity.js +10 -0
  127. package/lib-vendor/d3-format/src/index.js +77 -0
  128. package/lib-vendor/d3-format/src/locale.js +159 -0
  129. package/lib-vendor/d3-format/src/precisionFixed.js +14 -0
  130. package/lib-vendor/d3-format/src/precisionPrefix.js +14 -0
  131. package/lib-vendor/d3-format/src/precisionRound.js +15 -0
  132. package/lib-vendor/d3-interpolate/LICENSE +13 -0
  133. package/lib-vendor/d3-interpolate/src/array.js +39 -0
  134. package/lib-vendor/d3-interpolate/src/basis.js +25 -0
  135. package/lib-vendor/d3-interpolate/src/basisClosed.js +20 -0
  136. package/lib-vendor/d3-interpolate/src/color.js +40 -0
  137. package/lib-vendor/d3-interpolate/src/constant.js +10 -0
  138. package/lib-vendor/d3-interpolate/src/cubehelix.js +43 -0
  139. package/lib-vendor/d3-interpolate/src/date.js +13 -0
  140. package/lib-vendor/d3-interpolate/src/discrete.js +13 -0
  141. package/lib-vendor/d3-interpolate/src/hcl.js +36 -0
  142. package/lib-vendor/d3-interpolate/src/hsl.js +36 -0
  143. package/lib-vendor/d3-interpolate/src/hue.js +16 -0
  144. package/lib-vendor/d3-interpolate/src/index.js +215 -0
  145. package/lib-vendor/d3-interpolate/src/lab.js +26 -0
  146. package/lib-vendor/d3-interpolate/src/number.js +12 -0
  147. package/lib-vendor/d3-interpolate/src/numberArray.js +23 -0
  148. package/lib-vendor/d3-interpolate/src/object.js +32 -0
  149. package/lib-vendor/d3-interpolate/src/piecewise.js +25 -0
  150. package/lib-vendor/d3-interpolate/src/quantize.js +14 -0
  151. package/lib-vendor/d3-interpolate/src/rgb.js +77 -0
  152. package/lib-vendor/d3-interpolate/src/round.js +12 -0
  153. package/lib-vendor/d3-interpolate/src/string.js +83 -0
  154. package/lib-vendor/d3-interpolate/src/transform/decompose.js +33 -0
  155. package/lib-vendor/d3-interpolate/src/transform/index.js +100 -0
  156. package/lib-vendor/d3-interpolate/src/transform/parse.js +30 -0
  157. package/lib-vendor/d3-interpolate/src/value.js +36 -0
  158. package/lib-vendor/d3-interpolate/src/zoom.js +75 -0
  159. package/lib-vendor/d3-path/LICENSE +13 -0
  160. package/lib-vendor/d3-path/src/index.js +15 -0
  161. package/lib-vendor/d3-path/src/path.js +120 -0
  162. package/lib-vendor/d3-scale/LICENSE +13 -0
  163. package/lib-vendor/d3-scale/src/band.js +109 -0
  164. package/lib-vendor/d3-scale/src/colors.js +12 -0
  165. package/lib-vendor/d3-scale/src/constant.js +12 -0
  166. package/lib-vendor/d3-scale/src/continuous.js +140 -0
  167. package/lib-vendor/d3-scale/src/diverging.js +121 -0
  168. package/lib-vendor/d3-scale/src/identity.js +37 -0
  169. package/lib-vendor/d3-scale/src/index.js +213 -0
  170. package/lib-vendor/d3-scale/src/init.js +46 -0
  171. package/lib-vendor/d3-scale/src/linear.js +88 -0
  172. package/lib-vendor/d3-scale/src/log.js +156 -0
  173. package/lib-vendor/d3-scale/src/nice.js +24 -0
  174. package/lib-vendor/d3-scale/src/number.js +10 -0
  175. package/lib-vendor/d3-scale/src/ordinal.js +60 -0
  176. package/lib-vendor/d3-scale/src/pow.js +59 -0
  177. package/lib-vendor/d3-scale/src/quantile.js +64 -0
  178. package/lib-vendor/d3-scale/src/quantize.js +61 -0
  179. package/lib-vendor/d3-scale/src/radial.js +72 -0
  180. package/lib-vendor/d3-scale/src/sequential.js +120 -0
  181. package/lib-vendor/d3-scale/src/sequentialQuantile.js +51 -0
  182. package/lib-vendor/d3-scale/src/symlog.js +46 -0
  183. package/lib-vendor/d3-scale/src/threshold.js +44 -0
  184. package/lib-vendor/d3-scale/src/tickFormat.js +44 -0
  185. package/lib-vendor/d3-scale/src/time.js +82 -0
  186. package/lib-vendor/d3-scale/src/utcTime.js +18 -0
  187. package/lib-vendor/d3-shape/LICENSE +13 -0
  188. package/lib-vendor/d3-shape/src/arc.js +243 -0
  189. package/lib-vendor/d3-shape/src/area.js +125 -0
  190. package/lib-vendor/d3-shape/src/areaRadial.js +51 -0
  191. package/lib-vendor/d3-shape/src/array.js +14 -0
  192. package/lib-vendor/d3-shape/src/constant.js +12 -0
  193. package/lib-vendor/d3-shape/src/curve/basis.js +76 -0
  194. package/lib-vendor/d3-shape/src/curve/basisClosed.js +90 -0
  195. package/lib-vendor/d3-shape/src/curve/basisOpen.js +64 -0
  196. package/lib-vendor/d3-shape/src/curve/bump.js +104 -0
  197. package/lib-vendor/d3-shape/src/curve/bundle.js +65 -0
  198. package/lib-vendor/d3-shape/src/curve/cardinal.js +85 -0
  199. package/lib-vendor/d3-shape/src/curve/cardinalClosed.js +99 -0
  200. package/lib-vendor/d3-shape/src/curve/cardinalOpen.js +74 -0
  201. package/lib-vendor/d3-shape/src/curve/catmullRom.js +114 -0
  202. package/lib-vendor/d3-shape/src/curve/catmullRomClosed.js +108 -0
  203. package/lib-vendor/d3-shape/src/curve/catmullRomOpen.js +83 -0
  204. package/lib-vendor/d3-shape/src/curve/linear.js +49 -0
  205. package/lib-vendor/d3-shape/src/curve/linearClosed.js +33 -0
  206. package/lib-vendor/d3-shape/src/curve/monotone.js +139 -0
  207. package/lib-vendor/d3-shape/src/curve/natural.js +82 -0
  208. package/lib-vendor/d3-shape/src/curve/radial.js +45 -0
  209. package/lib-vendor/d3-shape/src/curve/step.js +76 -0
  210. package/lib-vendor/d3-shape/src/descending.js +10 -0
  211. package/lib-vendor/d3-shape/src/identity.js +10 -0
  212. package/lib-vendor/d3-shape/src/index.js +483 -0
  213. package/lib-vendor/d3-shape/src/line.js +68 -0
  214. package/lib-vendor/d3-shape/src/lineRadial.js +33 -0
  215. package/lib-vendor/d3-shape/src/link.js +90 -0
  216. package/lib-vendor/d3-shape/src/math.js +39 -0
  217. package/lib-vendor/d3-shape/src/noop.js +8 -0
  218. package/lib-vendor/d3-shape/src/offset/diverging.js +22 -0
  219. package/lib-vendor/d3-shape/src/offset/expand.js +22 -0
  220. package/lib-vendor/d3-shape/src/offset/none.js +18 -0
  221. package/lib-vendor/d3-shape/src/offset/silhouette.js +22 -0
  222. package/lib-vendor/d3-shape/src/offset/wiggle.js +38 -0
  223. package/lib-vendor/d3-shape/src/order/appearance.js +29 -0
  224. package/lib-vendor/d3-shape/src/order/ascending.js +29 -0
  225. package/lib-vendor/d3-shape/src/order/descending.js +14 -0
  226. package/lib-vendor/d3-shape/src/order/insideOut.js +38 -0
  227. package/lib-vendor/d3-shape/src/order/none.js +15 -0
  228. package/lib-vendor/d3-shape/src/order/reverse.js +14 -0
  229. package/lib-vendor/d3-shape/src/pie.js +95 -0
  230. package/lib-vendor/d3-shape/src/point.js +15 -0
  231. package/lib-vendor/d3-shape/src/pointRadial.js +10 -0
  232. package/lib-vendor/d3-shape/src/stack.js +72 -0
  233. package/lib-vendor/d3-shape/src/symbol/asterisk.js +25 -0
  234. package/lib-vendor/d3-shape/src/symbol/circle.js +18 -0
  235. package/lib-vendor/d3-shape/src/symbol/cross.js +29 -0
  236. package/lib-vendor/d3-shape/src/symbol/diamond.js +24 -0
  237. package/lib-vendor/d3-shape/src/symbol/diamond2.js +21 -0
  238. package/lib-vendor/d3-shape/src/symbol/plus.js +20 -0
  239. package/lib-vendor/d3-shape/src/symbol/square.js +18 -0
  240. package/lib-vendor/d3-shape/src/symbol/square2.js +21 -0
  241. package/lib-vendor/d3-shape/src/symbol/star.js +34 -0
  242. package/lib-vendor/d3-shape/src/symbol/triangle.js +21 -0
  243. package/lib-vendor/d3-shape/src/symbol/triangle2.js +24 -0
  244. package/lib-vendor/d3-shape/src/symbol/wye.js +36 -0
  245. package/lib-vendor/d3-shape/src/symbol/x.js +20 -0
  246. package/lib-vendor/d3-shape/src/symbol.js +73 -0
  247. package/lib-vendor/d3-time/LICENSE +13 -0
  248. package/lib-vendor/d3-time/src/day.js +18 -0
  249. package/lib-vendor/d3-time/src/duration.js +20 -0
  250. package/lib-vendor/d3-time/src/hour.js +26 -0
  251. package/lib-vendor/d3-time/src/index.js +433 -0
  252. package/lib-vendor/d3-time/src/interval.js +79 -0
  253. package/lib-vendor/d3-time/src/millisecond.js +35 -0
  254. package/lib-vendor/d3-time/src/minute.js +26 -0
  255. package/lib-vendor/d3-time/src/month.js +25 -0
  256. package/lib-vendor/d3-time/src/second.js +26 -0
  257. package/lib-vendor/d3-time/src/ticks.js +71 -0
  258. package/lib-vendor/d3-time/src/utcDay.js +26 -0
  259. package/lib-vendor/d3-time/src/utcHour.js +26 -0
  260. package/lib-vendor/d3-time/src/utcMinute.js +26 -0
  261. package/lib-vendor/d3-time/src/utcMonth.js +25 -0
  262. package/lib-vendor/d3-time/src/utcWeek.js +52 -0
  263. package/lib-vendor/d3-time/src/utcYear.js +36 -0
  264. package/lib-vendor/d3-time/src/week.js +52 -0
  265. package/lib-vendor/d3-time/src/year.js +36 -0
  266. package/lib-vendor/d3-time-format/LICENSE +13 -0
  267. package/lib-vendor/d3-time-format/src/defaultLocale.js +40 -0
  268. package/lib-vendor/d3-time-format/src/index.js +67 -0
  269. package/lib-vendor/d3-time-format/src/isoFormat.js +19 -0
  270. package/lib-vendor/d3-time-format/src/isoParse.js +19 -0
  271. package/lib-vendor/d3-time-format/src/locale.js +713 -0
  272. package/lib-vendor/d3-timer/LICENSE +13 -0
  273. package/lib-vendor/d3-timer/src/index.js +43 -0
  274. package/lib-vendor/d3-timer/src/interval.js +30 -0
  275. package/lib-vendor/d3-timer/src/timeout.js +18 -0
  276. package/lib-vendor/d3-timer/src/timer.js +138 -0
  277. package/lib-vendor/internmap/LICENSE +13 -0
  278. package/lib-vendor/internmap/src/index.js +111 -0
  279. package/package.json +43 -0
package/LICENSE.txt ADDED
@@ -0,0 +1,30 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2015-2020 Formidable Labs.
4
+
5
+ Copyright (c) 2016-2020 Alexey Svetliakov <https://github.com/asvetliakov>,
6
+ snerks <https://github.com/snerks>, Krzysztof Cebula <https://github.com
7
+ Havret>, Vitaliy Polyanskiy <https://github.com/alreadyExisted>, James Lismore
8
+ <https://github.com/jlismore>, Stack Builders <https://github.com
9
+ stackbuilders>, Esteban Ibarra <https://github.com/ibarrae>, Dominic Lee
10
+ <https://github.com/dominictwlee>, Dave Vedder <https://github.com
11
+ veddermatic>, Alec Flett <https://github.com/alecf> and potentially other
12
+ DefinitelyTyped contributors.
13
+
14
+ Permission is hereby granted, free of charge, to any person obtaining a copy
15
+ of this software and associated documentation files (the "Software"), to deal
16
+ in the Software without restriction, including without limitation the rights
17
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
18
+ copies of the Software, and to permit persons to whom the Software is
19
+ furnished to do so, subject to the following conditions:
20
+
21
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
26
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
27
+ SOFTWARE.
28
+
29
+ The above copyright notice and this permission notice shall be included in all
30
+ copies or substantial portions of the Software.
package/README.md ADDED
@@ -0,0 +1,70 @@
1
+ # VictoryVendor
2
+
3
+ Vendored dependencies for Victory.
4
+
5
+ ## Background
6
+
7
+ D3 has released most of its libraries as ESM-only. This means that consumers in Node.js applications can no longer just `require()` anything with a d3 transitive dependency, including much of Victory.
8
+
9
+ To help provide an easy path to folks still using CommonJS in their Node.js applications that consume Victory, we now provide this package to vendor in various d3-related packages.
10
+
11
+ ## Packages
12
+
13
+ We presently provide the following top-level libraries:
14
+ <!-- cat packages/victory-vendor/package.json | egrep '"d3-' | egrep -o 'd3-[^"]*'| sor t-->
15
+
16
+ - d3-ease
17
+ - d3-interpolate
18
+ - d3-scale
19
+ - d3-shape
20
+ - d3-timer
21
+
22
+ This is the total list of top and transitive libraries we vendor:
23
+ <!-- ls packages/victory-vendor/lib-vendor | sort -->
24
+
25
+ - d3-array
26
+ - d3-color
27
+ - d3-ease
28
+ - d3-format
29
+ - d3-interpolate
30
+ - d3-path
31
+ - d3-scale
32
+ - d3-shape
33
+ - d3-time
34
+ - d3-time-format
35
+ - d3-timer
36
+ - internmap
37
+
38
+ Note that this does _not_ include the following D3 libraries that still support CommonJS:
39
+
40
+ - d3-voronoi
41
+
42
+ ## How it works
43
+
44
+ We provide two alternate paths and behaviors -- for ESM and CommonJS
45
+
46
+ ### ESM
47
+
48
+ If you do a Node.js import like:
49
+
50
+ ```js
51
+ import { interpolate } from "victory-vendor/d3-interpolate";
52
+ ```
53
+
54
+ under the hood it's going to just re-export and pass you through to `node_modules/d3-interpolate`, the **real** ESM library from D3.
55
+
56
+ ### CommonJS
57
+
58
+ If you do a Node.js import like:
59
+
60
+ ```js
61
+ const { interpolate } = require("victory-vendor/d3-interpolate");
62
+ ```
63
+
64
+ under the hood it's going to will go to an alternate path that contains the transpiled version of the underlying d3 library to be found at `victory-vendor/lib-vendor/d3-interpolate/**/*.js`. This futher has internally consistent import references to other `victory-vendor/lib-vendor/<pkg-name>` paths.
65
+
66
+ Note that for some tooling (like Jest) that doesn't play well with `package.json:exports` routing to this CommonJS path, we **also** output a root file in the form of `victory-vendor/d3-interpolate.js`.
67
+
68
+ ## Licenses
69
+
70
+ This project is released under the MIT license, but the vendor'ed in libraries include other licenses (e.g. ISC) that we enumerate in our `package.json:license` field.
package/d3-array.js ADDED
@@ -0,0 +1,7 @@
1
+
2
+ // `victory-vendor/d3-array` (CommonJS)
3
+ // See upstream license: https://github.com/d3/d3-array/blob/main/LICENSE
4
+ //
5
+ // This file only exists for tooling that doesn't work yet with package.json:exports
6
+ // by proxying through the CommonJS version.
7
+ module.exports = require("./lib/d3-array");
package/d3-ease.js ADDED
@@ -0,0 +1,7 @@
1
+
2
+ // `victory-vendor/d3-ease` (CommonJS)
3
+ // See upstream license: https://github.com/d3/d3-ease/blob/main/LICENSE
4
+ //
5
+ // This file only exists for tooling that doesn't work yet with package.json:exports
6
+ // by proxying through the CommonJS version.
7
+ module.exports = require("./lib/d3-ease");
@@ -0,0 +1,7 @@
1
+
2
+ // `victory-vendor/d3-interpolate` (CommonJS)
3
+ // See upstream license: https://github.com/d3/d3-interpolate/blob/main/LICENSE
4
+ //
5
+ // This file only exists for tooling that doesn't work yet with package.json:exports
6
+ // by proxying through the CommonJS version.
7
+ module.exports = require("./lib/d3-interpolate");
package/d3-scale.js ADDED
@@ -0,0 +1,7 @@
1
+
2
+ // `victory-vendor/d3-scale` (CommonJS)
3
+ // See upstream license: https://github.com/d3/d3-scale/blob/main/LICENSE
4
+ //
5
+ // This file only exists for tooling that doesn't work yet with package.json:exports
6
+ // by proxying through the CommonJS version.
7
+ module.exports = require("./lib/d3-scale");
package/d3-shape.js ADDED
@@ -0,0 +1,7 @@
1
+
2
+ // `victory-vendor/d3-shape` (CommonJS)
3
+ // See upstream license: https://github.com/d3/d3-shape/blob/main/LICENSE
4
+ //
5
+ // This file only exists for tooling that doesn't work yet with package.json:exports
6
+ // by proxying through the CommonJS version.
7
+ module.exports = require("./lib/d3-shape");
package/d3-time.js ADDED
@@ -0,0 +1,7 @@
1
+
2
+ // `victory-vendor/d3-time` (CommonJS)
3
+ // See upstream license: https://github.com/d3/d3-time/blob/main/LICENSE
4
+ //
5
+ // This file only exists for tooling that doesn't work yet with package.json:exports
6
+ // by proxying through the CommonJS version.
7
+ module.exports = require("./lib/d3-time");
package/d3-timer.js ADDED
@@ -0,0 +1,7 @@
1
+
2
+ // `victory-vendor/d3-timer` (CommonJS)
3
+ // See upstream license: https://github.com/d3/d3-timer/blob/main/LICENSE
4
+ //
5
+ // This file only exists for tooling that doesn't work yet with package.json:exports
6
+ // by proxying through the CommonJS version.
7
+ module.exports = require("./lib/d3-timer");
package/es/d3-array.js ADDED
@@ -0,0 +1,6 @@
1
+
2
+ // `victory-vendor/d3-array` (ESM)
3
+ // See upstream license: https://github.com/d3/d3-array/blob/main/LICENSE
4
+ //
5
+ // Our ESM package uses the underlying installed dependencies of `node_modules/d3-array`
6
+ export * from "d3-array";
package/es/d3-color.js ADDED
@@ -0,0 +1,6 @@
1
+
2
+ // `victory-vendor/d3-color` (ESM)
3
+ // See upstream license: https://github.com/d3/d3-color/blob/main/LICENSE
4
+ //
5
+ // Our ESM package uses the underlying installed dependencies of `node_modules/d3-color`
6
+ export * from "d3-color";
package/es/d3-ease.js ADDED
@@ -0,0 +1,6 @@
1
+
2
+ // `victory-vendor/d3-ease` (ESM)
3
+ // See upstream license: https://github.com/d3/d3-ease/blob/main/LICENSE
4
+ //
5
+ // Our ESM package uses the underlying installed dependencies of `node_modules/d3-ease`
6
+ export * from "d3-ease";
@@ -0,0 +1,6 @@
1
+
2
+ // `victory-vendor/d3-format` (ESM)
3
+ // See upstream license: https://github.com/d3/d3-format/blob/main/LICENSE
4
+ //
5
+ // Our ESM package uses the underlying installed dependencies of `node_modules/d3-format`
6
+ export * from "d3-format";
@@ -0,0 +1,6 @@
1
+
2
+ // `victory-vendor/d3-interpolate` (ESM)
3
+ // See upstream license: https://github.com/d3/d3-interpolate/blob/main/LICENSE
4
+ //
5
+ // Our ESM package uses the underlying installed dependencies of `node_modules/d3-interpolate`
6
+ export * from "d3-interpolate";
package/es/d3-path.js ADDED
@@ -0,0 +1,6 @@
1
+
2
+ // `victory-vendor/d3-path` (ESM)
3
+ // See upstream license: https://github.com/d3/d3-path/blob/main/LICENSE
4
+ //
5
+ // Our ESM package uses the underlying installed dependencies of `node_modules/d3-path`
6
+ export * from "d3-path";
package/es/d3-scale.js ADDED
@@ -0,0 +1,6 @@
1
+
2
+ // `victory-vendor/d3-scale` (ESM)
3
+ // See upstream license: https://github.com/d3/d3-scale/blob/main/LICENSE
4
+ //
5
+ // Our ESM package uses the underlying installed dependencies of `node_modules/d3-scale`
6
+ export * from "d3-scale";
package/es/d3-shape.js ADDED
@@ -0,0 +1,6 @@
1
+
2
+ // `victory-vendor/d3-shape` (ESM)
3
+ // See upstream license: https://github.com/d3/d3-shape/blob/main/LICENSE
4
+ //
5
+ // Our ESM package uses the underlying installed dependencies of `node_modules/d3-shape`
6
+ export * from "d3-shape";
@@ -0,0 +1,6 @@
1
+
2
+ // `victory-vendor/d3-time-format` (ESM)
3
+ // See upstream license: https://github.com/d3/d3-time-format/blob/main/LICENSE
4
+ //
5
+ // Our ESM package uses the underlying installed dependencies of `node_modules/d3-time-format`
6
+ export * from "d3-time-format";
package/es/d3-time.js ADDED
@@ -0,0 +1,6 @@
1
+
2
+ // `victory-vendor/d3-time` (ESM)
3
+ // See upstream license: https://github.com/d3/d3-time/blob/main/LICENSE
4
+ //
5
+ // Our ESM package uses the underlying installed dependencies of `node_modules/d3-time`
6
+ export * from "d3-time";
package/es/d3-timer.js ADDED
@@ -0,0 +1,6 @@
1
+
2
+ // `victory-vendor/d3-timer` (ESM)
3
+ // See upstream license: https://github.com/d3/d3-timer/blob/main/LICENSE
4
+ //
5
+ // Our ESM package uses the underlying installed dependencies of `node_modules/d3-timer`
6
+ export * from "d3-timer";
@@ -0,0 +1,6 @@
1
+
2
+ // `victory-vendor/internmap` (ESM)
3
+ // See upstream license: https://github.com/mbostock/internmap/blob/main/LICENSE
4
+ //
5
+ // Our ESM package uses the underlying installed dependencies of `node_modules/internmap`
6
+ export * from "internmap";
@@ -0,0 +1,6 @@
1
+
2
+ // `victory-vendor/d3-array` (CommonJS)
3
+ // See upstream license: https://github.com/d3/d3-array/blob/main/LICENSE
4
+ //
5
+ // Our CommonJS package relies on transpiled vendor files in `lib-vendor/d3-array`
6
+ module.exports = require("../lib-vendor/d3-array/src/index.js");
@@ -0,0 +1,6 @@
1
+
2
+ // `victory-vendor/d3-color` (CommonJS)
3
+ // See upstream license: https://github.com/d3/d3-color/blob/main/LICENSE
4
+ //
5
+ // Our CommonJS package relies on transpiled vendor files in `lib-vendor/d3-color`
6
+ module.exports = require("../lib-vendor/d3-color/src/index.js");
package/lib/d3-ease.js ADDED
@@ -0,0 +1,6 @@
1
+
2
+ // `victory-vendor/d3-ease` (CommonJS)
3
+ // See upstream license: https://github.com/d3/d3-ease/blob/main/LICENSE
4
+ //
5
+ // Our CommonJS package relies on transpiled vendor files in `lib-vendor/d3-ease`
6
+ module.exports = require("../lib-vendor/d3-ease/src/index.js");
@@ -0,0 +1,6 @@
1
+
2
+ // `victory-vendor/d3-format` (CommonJS)
3
+ // See upstream license: https://github.com/d3/d3-format/blob/main/LICENSE
4
+ //
5
+ // Our CommonJS package relies on transpiled vendor files in `lib-vendor/d3-format`
6
+ module.exports = require("../lib-vendor/d3-format/src/index.js");
@@ -0,0 +1,6 @@
1
+
2
+ // `victory-vendor/d3-interpolate` (CommonJS)
3
+ // See upstream license: https://github.com/d3/d3-interpolate/blob/main/LICENSE
4
+ //
5
+ // Our CommonJS package relies on transpiled vendor files in `lib-vendor/d3-interpolate`
6
+ module.exports = require("../lib-vendor/d3-interpolate/src/index.js");
package/lib/d3-path.js ADDED
@@ -0,0 +1,6 @@
1
+
2
+ // `victory-vendor/d3-path` (CommonJS)
3
+ // See upstream license: https://github.com/d3/d3-path/blob/main/LICENSE
4
+ //
5
+ // Our CommonJS package relies on transpiled vendor files in `lib-vendor/d3-path`
6
+ module.exports = require("../lib-vendor/d3-path/src/index.js");
@@ -0,0 +1,6 @@
1
+
2
+ // `victory-vendor/d3-scale` (CommonJS)
3
+ // See upstream license: https://github.com/d3/d3-scale/blob/main/LICENSE
4
+ //
5
+ // Our CommonJS package relies on transpiled vendor files in `lib-vendor/d3-scale`
6
+ module.exports = require("../lib-vendor/d3-scale/src/index.js");
@@ -0,0 +1,6 @@
1
+
2
+ // `victory-vendor/d3-shape` (CommonJS)
3
+ // See upstream license: https://github.com/d3/d3-shape/blob/main/LICENSE
4
+ //
5
+ // Our CommonJS package relies on transpiled vendor files in `lib-vendor/d3-shape`
6
+ module.exports = require("../lib-vendor/d3-shape/src/index.js");
@@ -0,0 +1,6 @@
1
+
2
+ // `victory-vendor/d3-time-format` (CommonJS)
3
+ // See upstream license: https://github.com/d3/d3-time-format/blob/main/LICENSE
4
+ //
5
+ // Our CommonJS package relies on transpiled vendor files in `lib-vendor/d3-time-format`
6
+ module.exports = require("../lib-vendor/d3-time-format/src/index.js");
package/lib/d3-time.js ADDED
@@ -0,0 +1,6 @@
1
+
2
+ // `victory-vendor/d3-time` (CommonJS)
3
+ // See upstream license: https://github.com/d3/d3-time/blob/main/LICENSE
4
+ //
5
+ // Our CommonJS package relies on transpiled vendor files in `lib-vendor/d3-time`
6
+ module.exports = require("../lib-vendor/d3-time/src/index.js");
@@ -0,0 +1,6 @@
1
+
2
+ // `victory-vendor/d3-timer` (CommonJS)
3
+ // See upstream license: https://github.com/d3/d3-timer/blob/main/LICENSE
4
+ //
5
+ // Our CommonJS package relies on transpiled vendor files in `lib-vendor/d3-timer`
6
+ module.exports = require("../lib-vendor/d3-timer/src/index.js");
@@ -0,0 +1,6 @@
1
+
2
+ // `victory-vendor/internmap` (CommonJS)
3
+ // See upstream license: https://github.com/mbostock/internmap/blob/main/LICENSE
4
+ //
5
+ // Our CommonJS package relies on transpiled vendor files in `lib-vendor/internmap`
6
+ module.exports = require("../lib-vendor/internmap/src/index.js");
@@ -0,0 +1,13 @@
1
+ Copyright 2010-2022 Mike Bostock
2
+
3
+ Permission to use, copy, modify, and/or distribute this software for any purpose
4
+ with or without fee is hereby granted, provided that the above copyright notice
5
+ and this permission notice appear in all copies.
6
+
7
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
8
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
9
+ FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
10
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
11
+ OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
12
+ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
13
+ THIS SOFTWARE.
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.slice = exports.map = void 0;
7
+ var array = Array.prototype;
8
+ var slice = array.slice;
9
+ exports.slice = slice;
10
+ var map = array.map;
11
+ exports.map = map;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = ascending;
7
+
8
+ function ascending(a, b) {
9
+ return a == null || b == null ? NaN : a < b ? -1 : a > b ? 1 : a >= b ? 0 : NaN;
10
+ }
@@ -0,0 +1,142 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = bin;
7
+
8
+ var _array = require("./array.js");
9
+
10
+ var _bisect = _interopRequireDefault(require("./bisect.js"));
11
+
12
+ var _constant = _interopRequireDefault(require("./constant.js"));
13
+
14
+ var _extent = _interopRequireDefault(require("./extent.js"));
15
+
16
+ var _identity = _interopRequireDefault(require("./identity.js"));
17
+
18
+ var _nice = _interopRequireDefault(require("./nice.js"));
19
+
20
+ var _ticks = _interopRequireWildcard(require("./ticks.js"));
21
+
22
+ var _sturges = _interopRequireDefault(require("./threshold/sturges.js"));
23
+
24
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
25
+
26
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
27
+
28
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
29
+
30
+ function bin() {
31
+ var value = _identity.default,
32
+ domain = _extent.default,
33
+ threshold = _sturges.default;
34
+
35
+ function histogram(data) {
36
+ if (!Array.isArray(data)) data = Array.from(data);
37
+ var i,
38
+ n = data.length,
39
+ x,
40
+ step,
41
+ values = new Array(n);
42
+
43
+ for (i = 0; i < n; ++i) {
44
+ values[i] = value(data[i], i, data);
45
+ }
46
+
47
+ var xz = domain(values),
48
+ x0 = xz[0],
49
+ x1 = xz[1],
50
+ tz = threshold(values, x0, x1); // Convert number of thresholds into uniform thresholds, and nice the
51
+ // default domain accordingly.
52
+
53
+ if (!Array.isArray(tz)) {
54
+ const max = x1,
55
+ tn = +tz;
56
+ if (domain === _extent.default) [x0, x1] = (0, _nice.default)(x0, x1, tn);
57
+ tz = (0, _ticks.default)(x0, x1, tn); // If the domain is aligned with the first tick (which it will by
58
+ // default), then we can use quantization rather than bisection to bin
59
+ // values, which is substantially faster.
60
+
61
+ if (tz[0] <= x0) step = (0, _ticks.tickIncrement)(x0, x1, tn); // If the last threshold is coincident with the domain’s upper bound, the
62
+ // last bin will be zero-width. If the default domain is used, and this
63
+ // last threshold is coincident with the maximum input value, we can
64
+ // extend the niced upper bound by one tick to ensure uniform bin widths;
65
+ // otherwise, we simply remove the last threshold. Note that we don’t
66
+ // coerce values or the domain to numbers, and thus must be careful to
67
+ // compare order (>=) rather than strict equality (===)!
68
+
69
+ if (tz[tz.length - 1] >= x1) {
70
+ if (max >= x1 && domain === _extent.default) {
71
+ const step = (0, _ticks.tickIncrement)(x0, x1, tn);
72
+
73
+ if (isFinite(step)) {
74
+ if (step > 0) {
75
+ x1 = (Math.floor(x1 / step) + 1) * step;
76
+ } else if (step < 0) {
77
+ x1 = (Math.ceil(x1 * -step) + 1) / -step;
78
+ }
79
+ }
80
+ } else {
81
+ tz.pop();
82
+ }
83
+ }
84
+ } // Remove any thresholds outside the domain.
85
+
86
+
87
+ var m = tz.length;
88
+
89
+ while (tz[0] <= x0) tz.shift(), --m;
90
+
91
+ while (tz[m - 1] > x1) tz.pop(), --m;
92
+
93
+ var bins = new Array(m + 1),
94
+ bin; // Initialize bins.
95
+
96
+ for (i = 0; i <= m; ++i) {
97
+ bin = bins[i] = [];
98
+ bin.x0 = i > 0 ? tz[i - 1] : x0;
99
+ bin.x1 = i < m ? tz[i] : x1;
100
+ } // Assign data to bins by value, ignoring any outside the domain.
101
+
102
+
103
+ if (isFinite(step)) {
104
+ if (step > 0) {
105
+ for (i = 0; i < n; ++i) {
106
+ if ((x = values[i]) != null && x0 <= x && x <= x1) {
107
+ bins[Math.min(m, Math.floor((x - x0) / step))].push(data[i]);
108
+ }
109
+ }
110
+ } else if (step < 0) {
111
+ for (i = 0; i < n; ++i) {
112
+ if ((x = values[i]) != null && x0 <= x && x <= x1) {
113
+ const j = Math.floor((x0 - x) * step);
114
+ bins[Math.min(m, j + (tz[j] <= x))].push(data[i]); // handle off-by-one due to rounding
115
+ }
116
+ }
117
+ }
118
+ } else {
119
+ for (i = 0; i < n; ++i) {
120
+ if ((x = values[i]) != null && x0 <= x && x <= x1) {
121
+ bins[(0, _bisect.default)(tz, x, 0, m)].push(data[i]);
122
+ }
123
+ }
124
+ }
125
+
126
+ return bins;
127
+ }
128
+
129
+ histogram.value = function (_) {
130
+ return arguments.length ? (value = typeof _ === "function" ? _ : (0, _constant.default)(_), histogram) : value;
131
+ };
132
+
133
+ histogram.domain = function (_) {
134
+ return arguments.length ? (domain = typeof _ === "function" ? _ : (0, _constant.default)([_[0], _[1]]), histogram) : domain;
135
+ };
136
+
137
+ histogram.thresholds = function (_) {
138
+ return arguments.length ? (threshold = typeof _ === "function" ? _ : Array.isArray(_) ? (0, _constant.default)(_array.slice.call(_)) : (0, _constant.default)(_), histogram) : threshold;
139
+ };
140
+
141
+ return histogram;
142
+ }
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = exports.bisectRight = exports.bisectLeft = exports.bisectCenter = void 0;
7
+
8
+ var _ascending = _interopRequireDefault(require("./ascending.js"));
9
+
10
+ var _bisector = _interopRequireDefault(require("./bisector.js"));
11
+
12
+ var _number = _interopRequireDefault(require("./number.js"));
13
+
14
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
+
16
+ const ascendingBisect = (0, _bisector.default)(_ascending.default);
17
+ const bisectRight = ascendingBisect.right;
18
+ exports.bisectRight = bisectRight;
19
+ const bisectLeft = ascendingBisect.left;
20
+ exports.bisectLeft = bisectLeft;
21
+ const bisectCenter = (0, _bisector.default)(_number.default).center;
22
+ exports.bisectCenter = bisectCenter;
23
+ var _default = bisectRight;
24
+ exports.default = _default;
@@ -0,0 +1,73 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = bisector;
7
+
8
+ var _ascending = _interopRequireDefault(require("./ascending.js"));
9
+
10
+ var _descending = _interopRequireDefault(require("./descending.js"));
11
+
12
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
+
14
+ function bisector(f) {
15
+ let compare1, compare2, delta; // If an accessor is specified, promote it to a comparator. In this case we
16
+ // can test whether the search value is (self-) comparable. We can’t do this
17
+ // for a comparator (except for specific, known comparators) because we can’t
18
+ // tell if the comparator is symmetric, and an asymmetric comparator can’t be
19
+ // used to test whether a single value is comparable.
20
+
21
+ if (f.length !== 2) {
22
+ compare1 = _ascending.default;
23
+
24
+ compare2 = (d, x) => (0, _ascending.default)(f(d), x);
25
+
26
+ delta = (d, x) => f(d) - x;
27
+ } else {
28
+ compare1 = f === _ascending.default || f === _descending.default ? f : zero;
29
+ compare2 = f;
30
+ delta = f;
31
+ }
32
+
33
+ function left(a, x, lo = 0, hi = a.length) {
34
+ if (lo < hi) {
35
+ if (compare1(x, x) !== 0) return hi;
36
+
37
+ do {
38
+ const mid = lo + hi >>> 1;
39
+ if (compare2(a[mid], x) < 0) lo = mid + 1;else hi = mid;
40
+ } while (lo < hi);
41
+ }
42
+
43
+ return lo;
44
+ }
45
+
46
+ function right(a, x, lo = 0, hi = a.length) {
47
+ if (lo < hi) {
48
+ if (compare1(x, x) !== 0) return hi;
49
+
50
+ do {
51
+ const mid = lo + hi >>> 1;
52
+ if (compare2(a[mid], x) <= 0) lo = mid + 1;else hi = mid;
53
+ } while (lo < hi);
54
+ }
55
+
56
+ return lo;
57
+ }
58
+
59
+ function center(a, x, lo = 0, hi = a.length) {
60
+ const i = left(a, x, lo, hi - 1);
61
+ return i > lo && delta(a[i - 1], x) > -delta(a[i], x) ? i - 1 : i;
62
+ }
63
+
64
+ return {
65
+ left,
66
+ center,
67
+ right
68
+ };
69
+ }
70
+
71
+ function zero() {
72
+ return 0;
73
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = constant;
7
+
8
+ function constant(x) {
9
+ return () => x;
10
+ }