fast-element-plus 2.0.0 → 2.0.2

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 (450) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/README.md +4 -2
  3. package/README.zh.md +4 -2
  4. package/dist/components/avatar/index.d.ts +2 -2
  5. package/dist/components/avatar/index.mjs.map +1 -1
  6. package/dist/components/button/index.d.ts +1 -1
  7. package/dist/components/button/index.mjs.map +1 -1
  8. package/dist/components/button/src/button.mjs +1 -1
  9. package/dist/components/carNumber/src/carNumber.mjs +2 -3
  10. package/dist/components/carNumber/src/carNumber.mjs.map +1 -1
  11. package/dist/components/contextMenu/src/contextMenu.d.ts +4 -4
  12. package/dist/components/contextMenu/src/contextMenu.mjs +2 -2
  13. package/dist/components/contextMenu/src/contextMenu.type.d.ts +3 -3
  14. package/dist/components/dialog/index.d.ts +1 -1
  15. package/dist/components/dialog/index.mjs.map +1 -1
  16. package/dist/components/dialog/src/dialog.mjs +1 -1
  17. package/dist/components/drawer/index.d.ts +2 -2
  18. package/dist/components/drawer/index.mjs.map +1 -1
  19. package/dist/components/drawer/src/drawer.mjs +1 -1
  20. package/dist/components/form/index.d.ts +1 -1
  21. package/dist/components/form/index.mjs.map +1 -1
  22. package/dist/components/form/src/form.d.ts +5 -2
  23. package/dist/components/form/src/form.mjs +1 -2
  24. package/dist/components/form/src/form.mjs.map +1 -1
  25. package/dist/components/form/src/formItem.mjs +1 -1
  26. package/dist/components/formItemTip/index.d.ts +1 -1
  27. package/dist/components/formItemTip/index.mjs.map +1 -1
  28. package/dist/components/icon/index.d.ts +2 -2
  29. package/dist/components/icon/index.mjs.map +1 -1
  30. package/dist/components/iconSelector/src/iconSelector.mjs +1 -2
  31. package/dist/components/iconSelector/src/iconSelector.mjs.map +1 -1
  32. package/dist/components/image/index.d.ts +1 -1
  33. package/dist/components/image/index.mjs.map +1 -1
  34. package/dist/components/inputDialogPage/index.d.ts +1 -1
  35. package/dist/components/inputDialogPage/index.mjs.map +1 -1
  36. package/dist/components/inputDialogPage/src/inputDialogPage.d.ts +15 -15
  37. package/dist/components/inputDialogPage/src/inputDialogPage.mjs +2 -5
  38. package/dist/components/inputDialogPage/src/inputDialogPage.mjs.map +1 -1
  39. package/dist/components/layoutGrid/src/layoutGrid.mjs +1 -3
  40. package/dist/components/layoutGrid/src/layoutGrid.mjs.map +1 -1
  41. package/dist/components/layoutGrid/src/layoutGridItem.mjs +1 -1
  42. package/dist/components/layoutGrid/src/layoutGridItem.mjs.map +1 -1
  43. package/dist/components/select/index.d.ts +2 -2
  44. package/dist/components/select/index.mjs.map +1 -1
  45. package/dist/components/select/src/select.d.ts +15 -14
  46. package/dist/components/select/src/select.mjs +2 -9
  47. package/dist/components/select/src/select.mjs.map +1 -1
  48. package/dist/components/select/src/select.type.d.ts +4 -4
  49. package/dist/components/select/src/selectOption.d.ts +5 -5
  50. package/dist/components/select/src/selectOption.mjs +1 -1
  51. package/dist/components/selectPage/index.d.ts +1 -1
  52. package/dist/components/selectPage/index.mjs.map +1 -1
  53. package/dist/components/selectPage/src/selectPage.d.ts +10 -10
  54. package/dist/components/selectPage/src/selectPage.mjs +2 -9
  55. package/dist/components/selectPage/src/selectPage.mjs.map +1 -1
  56. package/dist/components/selectV2/index.d.ts +2 -2
  57. package/dist/components/selectV2/index.mjs.map +1 -1
  58. package/dist/components/selectV2/src/selectV2.d.ts +28 -36
  59. package/dist/components/selectV2/src/selectV2.mjs +2 -9
  60. package/dist/components/selectV2/src/selectV2.mjs.map +1 -1
  61. package/dist/components/table/index.d.ts +1 -1
  62. package/dist/components/table/index.mjs.map +1 -1
  63. package/dist/components/table/src/page.type.d.ts +3 -1
  64. package/dist/components/table/src/page.type.mjs.map +1 -1
  65. package/dist/components/table/src/table.d.ts +38 -39
  66. package/dist/components/table/src/table.mjs +5 -11
  67. package/dist/components/table/src/table.mjs.map +1 -1
  68. package/dist/components/table/src/table.state.d.ts +5 -5
  69. package/dist/components/table/src/table.type.d.ts +13 -10
  70. package/dist/components/table/src/table.type.mjs.map +1 -1
  71. package/dist/components/table/src/tableColumn.d.ts +3 -4
  72. package/dist/components/table/src/tableColumn.mjs +2 -7
  73. package/dist/components/table/src/tableColumn.mjs.map +1 -1
  74. package/dist/components/table/src/tableColumnSettingDialog.mjs +1 -1
  75. package/dist/components/table/src/tableColumnSettingDialog.mjs.map +1 -1
  76. package/dist/components/table/src/tablePagination.mjs +1 -2
  77. package/dist/components/table/src/tablePagination.mjs.map +1 -1
  78. package/dist/components/table/src/tableSearchForm.d.ts +1 -1
  79. package/dist/components/table/src/tableSearchForm.mjs.map +1 -1
  80. package/dist/components/table/src/tableSearchFormItem.mjs +1 -1
  81. package/dist/components/table/src/tableSearchFormItem.mjs.map +1 -1
  82. package/dist/components/table/src/useTable.d.ts +5 -5
  83. package/dist/components/table/src/useTable.mjs +1 -2
  84. package/dist/components/table/src/useTable.mjs.map +1 -1
  85. package/dist/components/table/utils/table.d.ts +3 -2
  86. package/dist/components/table/utils/table.mjs +1 -3
  87. package/dist/components/table/utils/table.mjs.map +1 -1
  88. package/dist/components/tree/index.d.ts +1 -1
  89. package/dist/components/tree/index.mjs.map +1 -1
  90. package/dist/components/tree/src/tree.d.ts +27 -25
  91. package/dist/components/tree/src/tree.mjs +5 -8
  92. package/dist/components/tree/src/tree.mjs.map +1 -1
  93. package/dist/components/tree/src/tree.props.d.ts +1 -4
  94. package/dist/components/tree/src/tree.type.d.ts +4 -4
  95. package/dist/components/treeSelect/index.d.ts +1 -1
  96. package/dist/components/treeSelect/index.mjs.map +1 -1
  97. package/dist/components/treeSelect/src/treeSelect.d.ts +32 -31
  98. package/dist/components/treeSelect/src/treeSelect.mjs +2 -9
  99. package/dist/components/treeSelect/src/treeSelect.mjs.map +1 -1
  100. package/dist/components/upload/index.d.ts +1 -1
  101. package/dist/components/upload/index.mjs.map +1 -1
  102. package/dist/components/upload/src/upload.mjs +1 -3
  103. package/dist/components/upload/src/upload.mjs.map +1 -1
  104. package/dist/components/upload/src/useUpload.mjs +3 -5
  105. package/dist/components/upload/src/useUpload.mjs.map +1 -1
  106. package/dist/components/uploadImage/index.d.ts +1 -1
  107. package/dist/components/uploadImage/index.mjs.map +1 -1
  108. package/dist/components/uploadImage/src/uploadImage.mjs +1 -3
  109. package/dist/components/uploadImage/src/uploadImage.mjs.map +1 -1
  110. package/dist/components/uploadImages/index.d.ts +2 -2
  111. package/dist/components/uploadImages/index.mjs.map +1 -1
  112. package/dist/components/uploadImages/src/uploadImages.mjs +1 -2
  113. package/dist/components/uploadImages/src/uploadImages.mjs.map +1 -1
  114. package/dist/directives/click-icon-copy/index.mjs.map +1 -1
  115. package/dist/element-plus.mjs +1 -2
  116. package/dist/element-plus.mjs.map +1 -1
  117. package/dist/hooks/use-screenFull/index.mjs +13 -13
  118. package/dist/hooks/use-screenFull/index.mjs.map +1 -1
  119. package/dist/index.d.ts +0 -2
  120. package/dist/index.global.min.js +4 -4
  121. package/dist/index.global.min.js.map +1 -1
  122. package/dist/index.mjs +2 -3
  123. package/dist/index.mjs.map +1 -1
  124. package/dist/version.d.ts +1 -1
  125. package/dist/version.mjs +1 -1
  126. package/dist/version.mjs.map +1 -1
  127. package/package.json +1 -1
  128. package/dist/_virtual/_rolldown/runtime.mjs +0 -13
  129. package/dist/components/index.mjs +0 -124
  130. package/dist/components/index.mjs.map +0 -1
  131. package/dist/node_modules/.pnpm/@vueuse_core@14.4.0_vue@3.5.41_typescript@6.0.3_/node_modules/@vueuse/core/dist/index.mjs +0 -100
  132. package/dist/node_modules/.pnpm/@vueuse_core@14.4.0_vue@3.5.41_typescript@6.0.3_/node_modules/@vueuse/core/dist/index.mjs.map +0 -1
  133. package/dist/node_modules/.pnpm/@vueuse_shared@14.4.0_vue@3.5.41_typescript@6.0.3_/node_modules/@vueuse/shared/dist/index.mjs +0 -25
  134. package/dist/node_modules/.pnpm/@vueuse_shared@14.4.0_vue@3.5.41_typescript@6.0.3_/node_modules/@vueuse/shared/dist/index.mjs.map +0 -1
  135. package/dist/node_modules/.pnpm/decimal.js@10.6.0/node_modules/decimal.js/decimal.mjs +0 -1997
  136. package/dist/node_modules/.pnpm/decimal.js@10.6.0/node_modules/decimal.js/decimal.mjs.map +0 -1
  137. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_DataView.mjs +0 -8
  138. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_DataView.mjs.map +0 -1
  139. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Hash.mjs +0 -30
  140. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Hash.mjs.map +0 -1
  141. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_ListCache.mjs +0 -30
  142. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_ListCache.mjs.map +0 -1
  143. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Map.mjs +0 -8
  144. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Map.mjs.map +0 -1
  145. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_MapCache.mjs +0 -30
  146. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_MapCache.mjs.map +0 -1
  147. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Promise.mjs +0 -8
  148. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Promise.mjs.map +0 -1
  149. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Set.mjs +0 -8
  150. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Set.mjs.map +0 -1
  151. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_SetCache.mjs +0 -23
  152. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_SetCache.mjs.map +0 -1
  153. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Stack.mjs +0 -27
  154. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Stack.mjs.map +0 -1
  155. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Symbol.mjs +0 -8
  156. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Symbol.mjs.map +0 -1
  157. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Uint8Array.mjs +0 -8
  158. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Uint8Array.mjs.map +0 -1
  159. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_WeakMap.mjs +0 -8
  160. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_WeakMap.mjs.map +0 -1
  161. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_apply.mjs +0 -24
  162. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_apply.mjs.map +0 -1
  163. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayEach.mjs +0 -19
  164. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayEach.mjs.map +0 -1
  165. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayFilter.mjs +0 -22
  166. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayFilter.mjs.map +0 -1
  167. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayLikeKeys.mjs +0 -26
  168. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayLikeKeys.mjs.map +0 -1
  169. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayMap.mjs +0 -19
  170. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayMap.mjs.map +0 -1
  171. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayPush.mjs +0 -18
  172. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayPush.mjs.map +0 -1
  173. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arraySome.mjs +0 -20
  174. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arraySome.mjs.map +0 -1
  175. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_assignValue.mjs +0 -23
  176. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_assignValue.mjs.map +0 -1
  177. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_assocIndexOf.mjs +0 -19
  178. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_assocIndexOf.mjs.map +0 -1
  179. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseAssign.mjs +0 -19
  180. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseAssign.mjs.map +0 -1
  181. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignIn.mjs +0 -19
  182. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignIn.mjs.map +0 -1
  183. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignValue.mjs +0 -24
  184. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignValue.mjs.map +0 -1
  185. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseClone.mjs +0 -118
  186. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseClone.mjs.map +0 -1
  187. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseCreate.mjs +0 -27
  188. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseCreate.mjs.map +0 -1
  189. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseFlatten.mjs +0 -31
  190. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseFlatten.mjs.map +0 -1
  191. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseGet.mjs +0 -21
  192. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseGet.mjs.map +0 -1
  193. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseGetAllKeys.mjs +0 -22
  194. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseGetAllKeys.mjs.map +0 -1
  195. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseGetTag.mjs +0 -24
  196. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseGetTag.mjs.map +0 -1
  197. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsArguments.mjs +0 -19
  198. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsArguments.mjs.map +0 -1
  199. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsEqual.mjs +0 -26
  200. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsEqual.mjs.map +0 -1
  201. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsEqualDeep.mjs +0 -61
  202. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsEqualDeep.mjs.map +0 -1
  203. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsMap.mjs +0 -19
  204. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsMap.mjs.map +0 -1
  205. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsNative.mjs +0 -37
  206. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsNative.mjs.map +0 -1
  207. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsSet.mjs +0 -19
  208. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsSet.mjs.map +0 -1
  209. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsTypedArray.mjs +0 -47
  210. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsTypedArray.mjs.map +0 -1
  211. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseKeys.mjs +0 -22
  212. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseKeys.mjs.map +0 -1
  213. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseKeysIn.mjs +0 -23
  214. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseKeysIn.mjs.map +0 -1
  215. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseSetToString.mjs +0 -24
  216. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseSetToString.mjs.map +0 -1
  217. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseSlice.mjs +0 -25
  218. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseSlice.mjs.map +0 -1
  219. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseTimes.mjs +0 -19
  220. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseTimes.mjs.map +0 -1
  221. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseToString.mjs +0 -29
  222. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseToString.mjs.map +0 -1
  223. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseUnary.mjs +0 -17
  224. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseUnary.mjs.map +0 -1
  225. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseUnset.mjs +0 -31
  226. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseUnset.mjs.map +0 -1
  227. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cacheHas.mjs +0 -16
  228. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cacheHas.mjs.map +0 -1
  229. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_castPath.mjs +0 -21
  230. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_castPath.mjs.map +0 -1
  231. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cloneArrayBuffer.mjs +0 -18
  232. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cloneArrayBuffer.mjs.map +0 -1
  233. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cloneBuffer.mjs +0 -27
  234. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cloneBuffer.mjs.map +0 -1
  235. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cloneDataView.mjs +0 -18
  236. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cloneDataView.mjs.map +0 -1
  237. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cloneRegExp.mjs +0 -19
  238. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cloneRegExp.mjs.map +0 -1
  239. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cloneSymbol.mjs +0 -19
  240. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cloneSymbol.mjs.map +0 -1
  241. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cloneTypedArray.mjs +0 -18
  242. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cloneTypedArray.mjs.map +0 -1
  243. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_copyArray.mjs +0 -19
  244. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_copyArray.mjs.map +0 -1
  245. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_copyObject.mjs +0 -30
  246. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_copyObject.mjs.map +0 -1
  247. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_copySymbols.mjs +0 -18
  248. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_copySymbols.mjs.map +0 -1
  249. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_copySymbolsIn.mjs +0 -18
  250. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_copySymbolsIn.mjs.map +0 -1
  251. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_coreJsData.mjs +0 -8
  252. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_coreJsData.mjs.map +0 -1
  253. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_customOmitClone.mjs +0 -18
  254. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_customOmitClone.mjs.map +0 -1
  255. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_defineProperty.mjs +0 -13
  256. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_defineProperty.mjs.map +0 -1
  257. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_equalArrays.mjs +0 -57
  258. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_equalArrays.mjs.map +0 -1
  259. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_equalByTag.mjs +0 -77
  260. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_equalByTag.mjs.map +0 -1
  261. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_equalObjects.mjs +0 -56
  262. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_equalObjects.mjs.map +0 -1
  263. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_flatRest.mjs +0 -18
  264. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_flatRest.mjs.map +0 -1
  265. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_freeGlobal.mjs +0 -7
  266. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_freeGlobal.mjs.map +0 -1
  267. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeys.mjs +0 -18
  268. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeys.mjs.map +0 -1
  269. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeysIn.mjs +0 -19
  270. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeysIn.mjs.map +0 -1
  271. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getMapData.mjs +0 -18
  272. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getMapData.mjs.map +0 -1
  273. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getNative.mjs +0 -19
  274. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getNative.mjs.map +0 -1
  275. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getPrototype.mjs +0 -8
  276. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getPrototype.mjs.map +0 -1
  277. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getRawTag.mjs +0 -38
  278. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getRawTag.mjs.map +0 -1
  279. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getSymbols.mjs +0 -24
  280. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getSymbols.mjs.map +0 -1
  281. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getSymbolsIn.mjs +0 -24
  282. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getSymbolsIn.mjs.map +0 -1
  283. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getTag.mjs +0 -45
  284. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getTag.mjs.map +0 -1
  285. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getValue.mjs +0 -16
  286. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getValue.mjs.map +0 -1
  287. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashClear.mjs +0 -17
  288. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashClear.mjs.map +0 -1
  289. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashDelete.mjs +0 -20
  290. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashDelete.mjs.map +0 -1
  291. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashGet.mjs +0 -27
  292. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashGet.mjs.map +0 -1
  293. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashHas.mjs +0 -21
  294. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashHas.mjs.map +0 -1
  295. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashSet.mjs +0 -24
  296. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashSet.mjs.map +0 -1
  297. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_initCloneArray.mjs +0 -22
  298. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_initCloneArray.mjs.map +0 -1
  299. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_initCloneByTag.mjs +0 -66
  300. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_initCloneByTag.mjs.map +0 -1
  301. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_initCloneObject.mjs +0 -18
  302. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_initCloneObject.mjs.map +0 -1
  303. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isFlattenable.mjs +0 -20
  304. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isFlattenable.mjs.map +0 -1
  305. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isIndex.mjs +0 -22
  306. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isIndex.mjs.map +0 -1
  307. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isKey.mjs +0 -24
  308. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isKey.mjs.map +0 -1
  309. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isKeyable.mjs +0 -16
  310. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isKeyable.mjs.map +0 -1
  311. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isMasked.mjs +0 -21
  312. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isMasked.mjs.map +0 -1
  313. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isPrototype.mjs +0 -18
  314. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isPrototype.mjs.map +0 -1
  315. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheClear.mjs +0 -16
  316. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheClear.mjs.map +0 -1
  317. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheDelete.mjs +0 -25
  318. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheDelete.mjs.map +0 -1
  319. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheGet.mjs +0 -19
  320. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheGet.mjs.map +0 -1
  321. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheHas.mjs +0 -18
  322. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheHas.mjs.map +0 -1
  323. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheSet.mjs +0 -24
  324. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheSet.mjs.map +0 -1
  325. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheClear.mjs +0 -23
  326. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheClear.mjs.map +0 -1
  327. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheDelete.mjs +0 -20
  328. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheDelete.mjs.map +0 -1
  329. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheGet.mjs +0 -18
  330. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheGet.mjs.map +0 -1
  331. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheHas.mjs +0 -18
  332. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheHas.mjs.map +0 -1
  333. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheSet.mjs +0 -22
  334. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheSet.mjs.map +0 -1
  335. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapToArray.mjs +0 -19
  336. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapToArray.mjs.map +0 -1
  337. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_memoizeCapped.mjs +0 -24
  338. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_memoizeCapped.mjs.map +0 -1
  339. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_nativeCreate.mjs +0 -7
  340. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_nativeCreate.mjs.map +0 -1
  341. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeys.mjs +0 -7
  342. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeys.mjs.map +0 -1
  343. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeysIn.mjs +0 -19
  344. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeysIn.mjs.map +0 -1
  345. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_nodeUtil.mjs +0 -20
  346. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_nodeUtil.mjs.map +0 -1
  347. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_objectToString.mjs +0 -21
  348. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_objectToString.mjs.map +0 -1
  349. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_overArg.mjs +0 -18
  350. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_overArg.mjs.map +0 -1
  351. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_overRest.mjs +0 -28
  352. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_overRest.mjs.map +0 -1
  353. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_parent.mjs +0 -18
  354. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_parent.mjs.map +0 -1
  355. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_root.mjs +0 -10
  356. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_root.mjs.map +0 -1
  357. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_setCacheAdd.mjs +0 -21
  358. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_setCacheAdd.mjs.map +0 -1
  359. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_setCacheHas.mjs +0 -17
  360. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_setCacheHas.mjs.map +0 -1
  361. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_setToArray.mjs +0 -19
  362. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_setToArray.mjs.map +0 -1
  363. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_setToString.mjs +0 -16
  364. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_setToString.mjs.map +0 -1
  365. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_shortOut.mjs +0 -29
  366. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_shortOut.mjs.map +0 -1
  367. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stackClear.mjs +0 -17
  368. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stackClear.mjs.map +0 -1
  369. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stackDelete.mjs +0 -19
  370. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stackDelete.mjs.map +0 -1
  371. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stackGet.mjs +0 -17
  372. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stackGet.mjs.map +0 -1
  373. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stackHas.mjs +0 -17
  374. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stackHas.mjs.map +0 -1
  375. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stackSet.mjs +0 -35
  376. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stackSet.mjs.map +0 -1
  377. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stringToPath.mjs +0 -25
  378. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stringToPath.mjs.map +0 -1
  379. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_toKey.mjs +0 -20
  380. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_toKey.mjs.map +0 -1
  381. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_toSource.mjs +0 -25
  382. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_toSource.mjs.map +0 -1
  383. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/constant.mjs +0 -29
  384. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/constant.mjs.map +0 -1
  385. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/eq.mjs +0 -40
  386. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/eq.mjs.map +0 -1
  387. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/flatten.mjs +0 -23
  388. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/flatten.mjs.map +0 -1
  389. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/identity.mjs +0 -24
  390. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/identity.mjs.map +0 -1
  391. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isArguments.mjs +0 -36
  392. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isArguments.mjs.map +0 -1
  393. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isArray.mjs +0 -29
  394. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isArray.mjs.map +0 -1
  395. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isArrayLike.mjs +0 -35
  396. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isArrayLike.mjs.map +0 -1
  397. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isBoolean.mjs +0 -29
  398. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isBoolean.mjs.map +0 -1
  399. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isBuffer.mjs +0 -31
  400. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isBuffer.mjs.map +0 -1
  401. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isEqual.mjs +0 -37
  402. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isEqual.mjs.map +0 -1
  403. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isFunction.mjs +0 -34
  404. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isFunction.mjs.map +0 -1
  405. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isLength.mjs +0 -36
  406. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isLength.mjs.map +0 -1
  407. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isMap.mjs +0 -27
  408. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isMap.mjs.map +0 -1
  409. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isNil.mjs +0 -28
  410. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isNil.mjs.map +0 -1
  411. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isNull.mjs +0 -25
  412. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isNull.mjs.map +0 -1
  413. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isNumber.mjs +0 -38
  414. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isNumber.mjs.map +0 -1
  415. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isObject.mjs +0 -34
  416. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isObject.mjs.map +0 -1
  417. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isObjectLike.mjs +0 -32
  418. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isObjectLike.mjs.map +0 -1
  419. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isPlainObject.mjs +0 -54
  420. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isPlainObject.mjs.map +0 -1
  421. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isSet.mjs +0 -27
  422. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isSet.mjs.map +0 -1
  423. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isString.mjs +0 -30
  424. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isString.mjs.map +0 -1
  425. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isSymbol.mjs +0 -29
  426. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isSymbol.mjs.map +0 -1
  427. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isTypedArray.mjs +0 -27
  428. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isTypedArray.mjs.map +0 -1
  429. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isUndefined.mjs +0 -25
  430. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isUndefined.mjs.map +0 -1
  431. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/keys.mjs +0 -39
  432. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/keys.mjs.map +0 -1
  433. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/keysIn.mjs +0 -34
  434. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/keysIn.mjs.map +0 -1
  435. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/last.mjs +0 -23
  436. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/last.mjs.map +0 -1
  437. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/memoize.mjs +0 -65
  438. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/memoize.mjs.map +0 -1
  439. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/omit.mjs +0 -52
  440. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/omit.mjs.map +0 -1
  441. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/stubArray.mjs +0 -26
  442. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/stubArray.mjs.map +0 -1
  443. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/stubFalse.mjs +0 -21
  444. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/stubFalse.mjs.map +0 -1
  445. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/toString.mjs +0 -30
  446. package/dist/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/toString.mjs.map +0 -1
  447. package/dist/node_modules/.pnpm/screenfull@6.0.2/node_modules/screenfull/index.mjs +0 -120
  448. package/dist/node_modules/.pnpm/screenfull@6.0.2/node_modules/screenfull/index.mjs.map +0 -1
  449. package/dist/node_modules/.pnpm/sortablejs@1.15.7/node_modules/sortablejs/modular/sortable.esm.mjs +0 -1925
  450. package/dist/node_modules/.pnpm/sortablejs@1.15.7/node_modules/sortablejs/modular/sortable.esm.mjs.map +0 -1
@@ -1,1997 +0,0 @@
1
- //#region node_modules/.pnpm/decimal.js@10.6.0/node_modules/decimal.js/decimal.mjs
2
- /*!
3
- * decimal.js v10.6.0
4
- * An arbitrary-precision Decimal type for JavaScript.
5
- * https://github.com/MikeMcl/decimal.js
6
- * Copyright (c) 2025 Michael Mclaughlin <M8ch88l@gmail.com>
7
- * MIT Licence
8
- */
9
- var EXP_LIMIT = 9e15;
10
- var MAX_DIGITS = 1e9;
11
- var NUMERALS = "0123456789abcdef";
12
- var LN10 = "2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058";
13
- var PI = "3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789";
14
- var DEFAULTS = {
15
- precision: 20,
16
- rounding: 4,
17
- modulo: 1,
18
- toExpNeg: -7,
19
- toExpPos: 21,
20
- minE: -EXP_LIMIT,
21
- maxE: EXP_LIMIT,
22
- crypto: false
23
- };
24
- var inexact;
25
- var quadrant;
26
- var external = true;
27
- var decimalError = "[DecimalError] ";
28
- var invalidArgument = decimalError + "Invalid argument: ";
29
- var precisionLimitExceeded = decimalError + "Precision limit exceeded";
30
- var cryptoUnavailable = decimalError + "crypto unavailable";
31
- var tag = "[object Decimal]";
32
- var mathfloor = Math.floor;
33
- var mathpow = Math.pow;
34
- var isBinary = /^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i;
35
- var isHex = /^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i;
36
- var isOctal = /^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i;
37
- var isDecimal = /^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;
38
- var BASE = 1e7;
39
- var LOG_BASE = 7;
40
- var MAX_SAFE_INTEGER = 9007199254740991;
41
- var LN10_PRECISION = LN10.length - 1;
42
- var PI_PRECISION = PI.length - 1;
43
- var P = { toStringTag: tag };
44
- P.absoluteValue = P.abs = function() {
45
- var x = new this.constructor(this);
46
- if (x.s < 0) x.s = 1;
47
- return finalise(x);
48
- };
49
- P.ceil = function() {
50
- return finalise(new this.constructor(this), this.e + 1, 2);
51
- };
52
- P.clampedTo = P.clamp = function(min, max) {
53
- var k, x = this, Ctor = x.constructor;
54
- min = new Ctor(min);
55
- max = new Ctor(max);
56
- if (!min.s || !max.s) return new Ctor(NaN);
57
- if (min.gt(max)) throw Error(invalidArgument + max);
58
- k = x.cmp(min);
59
- return k < 0 ? min : x.cmp(max) > 0 ? max : new Ctor(x);
60
- };
61
- P.comparedTo = P.cmp = function(y) {
62
- var i, j, xdL, ydL, x = this, xd = x.d, yd = (y = new x.constructor(y)).d, xs = x.s, ys = y.s;
63
- if (!xd || !yd) return !xs || !ys ? NaN : xs !== ys ? xs : xd === yd ? 0 : !xd ^ xs < 0 ? 1 : -1;
64
- if (!xd[0] || !yd[0]) return xd[0] ? xs : yd[0] ? -ys : 0;
65
- if (xs !== ys) return xs;
66
- if (x.e !== y.e) return x.e > y.e ^ xs < 0 ? 1 : -1;
67
- xdL = xd.length;
68
- ydL = yd.length;
69
- for (i = 0, j = xdL < ydL ? xdL : ydL; i < j; ++i) if (xd[i] !== yd[i]) return xd[i] > yd[i] ^ xs < 0 ? 1 : -1;
70
- return xdL === ydL ? 0 : xdL > ydL ^ xs < 0 ? 1 : -1;
71
- };
72
- P.cosine = P.cos = function() {
73
- var pr, rm, x = this, Ctor = x.constructor;
74
- if (!x.d) return new Ctor(NaN);
75
- if (!x.d[0]) return new Ctor(1);
76
- pr = Ctor.precision;
77
- rm = Ctor.rounding;
78
- Ctor.precision = pr + Math.max(x.e, x.sd()) + LOG_BASE;
79
- Ctor.rounding = 1;
80
- x = cosine(Ctor, toLessThanHalfPi(Ctor, x));
81
- Ctor.precision = pr;
82
- Ctor.rounding = rm;
83
- return finalise(quadrant == 2 || quadrant == 3 ? x.neg() : x, pr, rm, true);
84
- };
85
- P.cubeRoot = P.cbrt = function() {
86
- var e, m, n, r, rep, s, sd, t, t3, t3plusx, x = this, Ctor = x.constructor;
87
- if (!x.isFinite() || x.isZero()) return new Ctor(x);
88
- external = false;
89
- s = x.s * mathpow(x.s * x, 1 / 3);
90
- if (!s || Math.abs(s) == 1 / 0) {
91
- n = digitsToString(x.d);
92
- e = x.e;
93
- if (s = (e - n.length + 1) % 3) n += s == 1 || s == -2 ? "0" : "00";
94
- s = mathpow(n, 1 / 3);
95
- e = mathfloor((e + 1) / 3) - (e % 3 == (e < 0 ? -1 : 2));
96
- if (s == 1 / 0) n = "5e" + e;
97
- else {
98
- n = s.toExponential();
99
- n = n.slice(0, n.indexOf("e") + 1) + e;
100
- }
101
- r = new Ctor(n);
102
- r.s = x.s;
103
- } else r = new Ctor(s.toString());
104
- sd = (e = Ctor.precision) + 3;
105
- for (;;) {
106
- t = r;
107
- t3 = t.times(t).times(t);
108
- t3plusx = t3.plus(x);
109
- r = divide(t3plusx.plus(x).times(t), t3plusx.plus(t3), sd + 2, 1);
110
- if (digitsToString(t.d).slice(0, sd) === (n = digitsToString(r.d)).slice(0, sd)) {
111
- n = n.slice(sd - 3, sd + 1);
112
- if (n == "9999" || !rep && n == "4999") {
113
- if (!rep) {
114
- finalise(t, e + 1, 0);
115
- if (t.times(t).times(t).eq(x)) {
116
- r = t;
117
- break;
118
- }
119
- }
120
- sd += 4;
121
- rep = 1;
122
- } else {
123
- if (!+n || !+n.slice(1) && n.charAt(0) == "5") {
124
- finalise(r, e + 1, 1);
125
- m = !r.times(r).times(r).eq(x);
126
- }
127
- break;
128
- }
129
- }
130
- }
131
- external = true;
132
- return finalise(r, e, Ctor.rounding, m);
133
- };
134
- P.decimalPlaces = P.dp = function() {
135
- var w, d = this.d, n = NaN;
136
- if (d) {
137
- w = d.length - 1;
138
- n = (w - mathfloor(this.e / LOG_BASE)) * LOG_BASE;
139
- w = d[w];
140
- if (w) for (; w % 10 == 0; w /= 10) n--;
141
- if (n < 0) n = 0;
142
- }
143
- return n;
144
- };
145
- P.dividedBy = P.div = function(y) {
146
- return divide(this, new this.constructor(y));
147
- };
148
- P.dividedToIntegerBy = P.divToInt = function(y) {
149
- var x = this, Ctor = x.constructor;
150
- return finalise(divide(x, new Ctor(y), 0, 1, 1), Ctor.precision, Ctor.rounding);
151
- };
152
- P.equals = P.eq = function(y) {
153
- return this.cmp(y) === 0;
154
- };
155
- P.floor = function() {
156
- return finalise(new this.constructor(this), this.e + 1, 3);
157
- };
158
- P.greaterThan = P.gt = function(y) {
159
- return this.cmp(y) > 0;
160
- };
161
- P.greaterThanOrEqualTo = P.gte = function(y) {
162
- var k = this.cmp(y);
163
- return k == 1 || k === 0;
164
- };
165
- P.hyperbolicCosine = P.cosh = function() {
166
- var k, n, pr, rm, len, x = this, Ctor = x.constructor, one = new Ctor(1);
167
- if (!x.isFinite()) return new Ctor(x.s ? 1 / 0 : NaN);
168
- if (x.isZero()) return one;
169
- pr = Ctor.precision;
170
- rm = Ctor.rounding;
171
- Ctor.precision = pr + Math.max(x.e, x.sd()) + 4;
172
- Ctor.rounding = 1;
173
- len = x.d.length;
174
- if (len < 32) {
175
- k = Math.ceil(len / 3);
176
- n = (1 / tinyPow(4, k)).toString();
177
- } else {
178
- k = 16;
179
- n = "2.3283064365386962890625e-10";
180
- }
181
- x = taylorSeries(Ctor, 1, x.times(n), new Ctor(1), true);
182
- var cosh2_x, i = k, d8 = new Ctor(8);
183
- for (; i--;) {
184
- cosh2_x = x.times(x);
185
- x = one.minus(cosh2_x.times(d8.minus(cosh2_x.times(d8))));
186
- }
187
- return finalise(x, Ctor.precision = pr, Ctor.rounding = rm, true);
188
- };
189
- P.hyperbolicSine = P.sinh = function() {
190
- var k, pr, rm, len, x = this, Ctor = x.constructor;
191
- if (!x.isFinite() || x.isZero()) return new Ctor(x);
192
- pr = Ctor.precision;
193
- rm = Ctor.rounding;
194
- Ctor.precision = pr + Math.max(x.e, x.sd()) + 4;
195
- Ctor.rounding = 1;
196
- len = x.d.length;
197
- if (len < 3) x = taylorSeries(Ctor, 2, x, x, true);
198
- else {
199
- k = 1.4 * Math.sqrt(len);
200
- k = k > 16 ? 16 : k | 0;
201
- x = x.times(1 / tinyPow(5, k));
202
- x = taylorSeries(Ctor, 2, x, x, true);
203
- var sinh2_x, d5 = new Ctor(5), d16 = new Ctor(16), d20 = new Ctor(20);
204
- for (; k--;) {
205
- sinh2_x = x.times(x);
206
- x = x.times(d5.plus(sinh2_x.times(d16.times(sinh2_x).plus(d20))));
207
- }
208
- }
209
- Ctor.precision = pr;
210
- Ctor.rounding = rm;
211
- return finalise(x, pr, rm, true);
212
- };
213
- P.hyperbolicTangent = P.tanh = function() {
214
- var pr, rm, x = this, Ctor = x.constructor;
215
- if (!x.isFinite()) return new Ctor(x.s);
216
- if (x.isZero()) return new Ctor(x);
217
- pr = Ctor.precision;
218
- rm = Ctor.rounding;
219
- Ctor.precision = pr + 7;
220
- Ctor.rounding = 1;
221
- return divide(x.sinh(), x.cosh(), Ctor.precision = pr, Ctor.rounding = rm);
222
- };
223
- P.inverseCosine = P.acos = function() {
224
- var x = this, Ctor = x.constructor, k = x.abs().cmp(1), pr = Ctor.precision, rm = Ctor.rounding;
225
- if (k !== -1) return k === 0 ? x.isNeg() ? getPi(Ctor, pr, rm) : new Ctor(0) : new Ctor(NaN);
226
- if (x.isZero()) return getPi(Ctor, pr + 4, rm).times(.5);
227
- Ctor.precision = pr + 6;
228
- Ctor.rounding = 1;
229
- x = new Ctor(1).minus(x).div(x.plus(1)).sqrt().atan();
230
- Ctor.precision = pr;
231
- Ctor.rounding = rm;
232
- return x.times(2);
233
- };
234
- P.inverseHyperbolicCosine = P.acosh = function() {
235
- var pr, rm, x = this, Ctor = x.constructor;
236
- if (x.lte(1)) return new Ctor(x.eq(1) ? 0 : NaN);
237
- if (!x.isFinite()) return new Ctor(x);
238
- pr = Ctor.precision;
239
- rm = Ctor.rounding;
240
- Ctor.precision = pr + Math.max(Math.abs(x.e), x.sd()) + 4;
241
- Ctor.rounding = 1;
242
- external = false;
243
- x = x.times(x).minus(1).sqrt().plus(x);
244
- external = true;
245
- Ctor.precision = pr;
246
- Ctor.rounding = rm;
247
- return x.ln();
248
- };
249
- P.inverseHyperbolicSine = P.asinh = function() {
250
- var pr, rm, x = this, Ctor = x.constructor;
251
- if (!x.isFinite() || x.isZero()) return new Ctor(x);
252
- pr = Ctor.precision;
253
- rm = Ctor.rounding;
254
- Ctor.precision = pr + 2 * Math.max(Math.abs(x.e), x.sd()) + 6;
255
- Ctor.rounding = 1;
256
- external = false;
257
- x = x.times(x).plus(1).sqrt().plus(x);
258
- external = true;
259
- Ctor.precision = pr;
260
- Ctor.rounding = rm;
261
- return x.ln();
262
- };
263
- P.inverseHyperbolicTangent = P.atanh = function() {
264
- var pr, rm, wpr, xsd, x = this, Ctor = x.constructor;
265
- if (!x.isFinite()) return new Ctor(NaN);
266
- if (x.e >= 0) return new Ctor(x.abs().eq(1) ? x.s / 0 : x.isZero() ? x : NaN);
267
- pr = Ctor.precision;
268
- rm = Ctor.rounding;
269
- xsd = x.sd();
270
- if (Math.max(xsd, pr) < 2 * -x.e - 1) return finalise(new Ctor(x), pr, rm, true);
271
- Ctor.precision = wpr = xsd - x.e;
272
- x = divide(x.plus(1), new Ctor(1).minus(x), wpr + pr, 1);
273
- Ctor.precision = pr + 4;
274
- Ctor.rounding = 1;
275
- x = x.ln();
276
- Ctor.precision = pr;
277
- Ctor.rounding = rm;
278
- return x.times(.5);
279
- };
280
- P.inverseSine = P.asin = function() {
281
- var halfPi, k, pr, rm, x = this, Ctor = x.constructor;
282
- if (x.isZero()) return new Ctor(x);
283
- k = x.abs().cmp(1);
284
- pr = Ctor.precision;
285
- rm = Ctor.rounding;
286
- if (k !== -1) {
287
- if (k === 0) {
288
- halfPi = getPi(Ctor, pr + 4, rm).times(.5);
289
- halfPi.s = x.s;
290
- return halfPi;
291
- }
292
- return new Ctor(NaN);
293
- }
294
- Ctor.precision = pr + 6;
295
- Ctor.rounding = 1;
296
- x = x.div(new Ctor(1).minus(x.times(x)).sqrt().plus(1)).atan();
297
- Ctor.precision = pr;
298
- Ctor.rounding = rm;
299
- return x.times(2);
300
- };
301
- P.inverseTangent = P.atan = function() {
302
- var i, j, k, n, px, t, r, wpr, x2, x = this, Ctor = x.constructor, pr = Ctor.precision, rm = Ctor.rounding;
303
- if (!x.isFinite()) {
304
- if (!x.s) return new Ctor(NaN);
305
- if (pr + 4 <= PI_PRECISION) {
306
- r = getPi(Ctor, pr + 4, rm).times(.5);
307
- r.s = x.s;
308
- return r;
309
- }
310
- } else if (x.isZero()) return new Ctor(x);
311
- else if (x.abs().eq(1) && pr + 4 <= PI_PRECISION) {
312
- r = getPi(Ctor, pr + 4, rm).times(.25);
313
- r.s = x.s;
314
- return r;
315
- }
316
- Ctor.precision = wpr = pr + 10;
317
- Ctor.rounding = 1;
318
- k = Math.min(28, wpr / LOG_BASE + 2 | 0);
319
- for (i = k; i; --i) x = x.div(x.times(x).plus(1).sqrt().plus(1));
320
- external = false;
321
- j = Math.ceil(wpr / LOG_BASE);
322
- n = 1;
323
- x2 = x.times(x);
324
- r = new Ctor(x);
325
- px = x;
326
- for (; i !== -1;) {
327
- px = px.times(x2);
328
- t = r.minus(px.div(n += 2));
329
- px = px.times(x2);
330
- r = t.plus(px.div(n += 2));
331
- if (r.d[j] !== void 0) for (i = j; r.d[i] === t.d[i] && i--;);
332
- }
333
- if (k) r = r.times(2 << k - 1);
334
- external = true;
335
- return finalise(r, Ctor.precision = pr, Ctor.rounding = rm, true);
336
- };
337
- P.isFinite = function() {
338
- return !!this.d;
339
- };
340
- P.isInteger = P.isInt = function() {
341
- return !!this.d && mathfloor(this.e / LOG_BASE) > this.d.length - 2;
342
- };
343
- P.isNaN = function() {
344
- return !this.s;
345
- };
346
- P.isNegative = P.isNeg = function() {
347
- return this.s < 0;
348
- };
349
- P.isPositive = P.isPos = function() {
350
- return this.s > 0;
351
- };
352
- P.isZero = function() {
353
- return !!this.d && this.d[0] === 0;
354
- };
355
- P.lessThan = P.lt = function(y) {
356
- return this.cmp(y) < 0;
357
- };
358
- P.lessThanOrEqualTo = P.lte = function(y) {
359
- return this.cmp(y) < 1;
360
- };
361
- P.logarithm = P.log = function(base) {
362
- var isBase10, d, denominator, k, inf, num, sd, r, arg = this, Ctor = arg.constructor, pr = Ctor.precision, rm = Ctor.rounding, guard = 5;
363
- if (base == null) {
364
- base = new Ctor(10);
365
- isBase10 = true;
366
- } else {
367
- base = new Ctor(base);
368
- d = base.d;
369
- if (base.s < 0 || !d || !d[0] || base.eq(1)) return new Ctor(NaN);
370
- isBase10 = base.eq(10);
371
- }
372
- d = arg.d;
373
- if (arg.s < 0 || !d || !d[0] || arg.eq(1)) return new Ctor(d && !d[0] ? -1 / 0 : arg.s != 1 ? NaN : d ? 0 : 1 / 0);
374
- if (isBase10) {
375
- if (d.length > 1) inf = true;
376
- else {
377
- for (k = d[0]; k % 10 === 0;) k /= 10;
378
- inf = k !== 1;
379
- }
380
- }
381
- external = false;
382
- sd = pr + guard;
383
- num = naturalLogarithm(arg, sd);
384
- denominator = isBase10 ? getLn10(Ctor, sd + 10) : naturalLogarithm(base, sd);
385
- r = divide(num, denominator, sd, 1);
386
- if (checkRoundingDigits(r.d, k = pr, rm)) do {
387
- sd += 10;
388
- num = naturalLogarithm(arg, sd);
389
- denominator = isBase10 ? getLn10(Ctor, sd + 10) : naturalLogarithm(base, sd);
390
- r = divide(num, denominator, sd, 1);
391
- if (!inf) {
392
- if (+digitsToString(r.d).slice(k + 1, k + 15) + 1 == 0x5af3107a4000) r = finalise(r, pr + 1, 0);
393
- break;
394
- }
395
- } while (checkRoundingDigits(r.d, k += 10, rm));
396
- external = true;
397
- return finalise(r, pr, rm);
398
- };
399
- P.minus = P.sub = function(y) {
400
- var d, e, i, j, k, len, pr, rm, xd, xe, xLTy, yd, x = this, Ctor = x.constructor;
401
- y = new Ctor(y);
402
- if (!x.d || !y.d) {
403
- if (!x.s || !y.s) y = new Ctor(NaN);
404
- else if (x.d) y.s = -y.s;
405
- else y = new Ctor(y.d || x.s !== y.s ? x : NaN);
406
- return y;
407
- }
408
- if (x.s != y.s) {
409
- y.s = -y.s;
410
- return x.plus(y);
411
- }
412
- xd = x.d;
413
- yd = y.d;
414
- pr = Ctor.precision;
415
- rm = Ctor.rounding;
416
- if (!xd[0] || !yd[0]) {
417
- if (yd[0]) y.s = -y.s;
418
- else if (xd[0]) y = new Ctor(x);
419
- else return new Ctor(rm === 3 ? -0 : 0);
420
- return external ? finalise(y, pr, rm) : y;
421
- }
422
- e = mathfloor(y.e / LOG_BASE);
423
- xe = mathfloor(x.e / LOG_BASE);
424
- xd = xd.slice();
425
- k = xe - e;
426
- if (k) {
427
- xLTy = k < 0;
428
- if (xLTy) {
429
- d = xd;
430
- k = -k;
431
- len = yd.length;
432
- } else {
433
- d = yd;
434
- e = xe;
435
- len = xd.length;
436
- }
437
- i = Math.max(Math.ceil(pr / LOG_BASE), len) + 2;
438
- if (k > i) {
439
- k = i;
440
- d.length = 1;
441
- }
442
- d.reverse();
443
- for (i = k; i--;) d.push(0);
444
- d.reverse();
445
- } else {
446
- i = xd.length;
447
- len = yd.length;
448
- xLTy = i < len;
449
- if (xLTy) len = i;
450
- for (i = 0; i < len; i++) if (xd[i] != yd[i]) {
451
- xLTy = xd[i] < yd[i];
452
- break;
453
- }
454
- k = 0;
455
- }
456
- if (xLTy) {
457
- d = xd;
458
- xd = yd;
459
- yd = d;
460
- y.s = -y.s;
461
- }
462
- len = xd.length;
463
- for (i = yd.length - len; i > 0; --i) xd[len++] = 0;
464
- for (i = yd.length; i > k;) {
465
- if (xd[--i] < yd[i]) {
466
- for (j = i; j && xd[--j] === 0;) xd[j] = BASE - 1;
467
- --xd[j];
468
- xd[i] += BASE;
469
- }
470
- xd[i] -= yd[i];
471
- }
472
- for (; xd[--len] === 0;) xd.pop();
473
- for (; xd[0] === 0; xd.shift()) --e;
474
- if (!xd[0]) return new Ctor(rm === 3 ? -0 : 0);
475
- y.d = xd;
476
- y.e = getBase10Exponent(xd, e);
477
- return external ? finalise(y, pr, rm) : y;
478
- };
479
- P.modulo = P.mod = function(y) {
480
- var q, x = this, Ctor = x.constructor;
481
- y = new Ctor(y);
482
- if (!x.d || !y.s || y.d && !y.d[0]) return new Ctor(NaN);
483
- if (!y.d || x.d && !x.d[0]) return finalise(new Ctor(x), Ctor.precision, Ctor.rounding);
484
- external = false;
485
- if (Ctor.modulo == 9) {
486
- q = divide(x, y.abs(), 0, 3, 1);
487
- q.s *= y.s;
488
- } else q = divide(x, y, 0, Ctor.modulo, 1);
489
- q = q.times(y);
490
- external = true;
491
- return x.minus(q);
492
- };
493
- P.naturalExponential = P.exp = function() {
494
- return naturalExponential(this);
495
- };
496
- P.naturalLogarithm = P.ln = function() {
497
- return naturalLogarithm(this);
498
- };
499
- P.negated = P.neg = function() {
500
- var x = new this.constructor(this);
501
- x.s = -x.s;
502
- return finalise(x);
503
- };
504
- P.plus = P.add = function(y) {
505
- var carry, d, e, i, k, len, pr, rm, xd, yd, x = this, Ctor = x.constructor;
506
- y = new Ctor(y);
507
- if (!x.d || !y.d) {
508
- if (!x.s || !y.s) y = new Ctor(NaN);
509
- else if (!x.d) y = new Ctor(y.d || x.s === y.s ? x : NaN);
510
- return y;
511
- }
512
- if (x.s != y.s) {
513
- y.s = -y.s;
514
- return x.minus(y);
515
- }
516
- xd = x.d;
517
- yd = y.d;
518
- pr = Ctor.precision;
519
- rm = Ctor.rounding;
520
- if (!xd[0] || !yd[0]) {
521
- if (!yd[0]) y = new Ctor(x);
522
- return external ? finalise(y, pr, rm) : y;
523
- }
524
- k = mathfloor(x.e / LOG_BASE);
525
- e = mathfloor(y.e / LOG_BASE);
526
- xd = xd.slice();
527
- i = k - e;
528
- if (i) {
529
- if (i < 0) {
530
- d = xd;
531
- i = -i;
532
- len = yd.length;
533
- } else {
534
- d = yd;
535
- e = k;
536
- len = xd.length;
537
- }
538
- k = Math.ceil(pr / LOG_BASE);
539
- len = k > len ? k + 1 : len + 1;
540
- if (i > len) {
541
- i = len;
542
- d.length = 1;
543
- }
544
- d.reverse();
545
- for (; i--;) d.push(0);
546
- d.reverse();
547
- }
548
- len = xd.length;
549
- i = yd.length;
550
- if (len - i < 0) {
551
- i = len;
552
- d = yd;
553
- yd = xd;
554
- xd = d;
555
- }
556
- for (carry = 0; i;) {
557
- carry = (xd[--i] = xd[i] + yd[i] + carry) / BASE | 0;
558
- xd[i] %= BASE;
559
- }
560
- if (carry) {
561
- xd.unshift(carry);
562
- ++e;
563
- }
564
- for (len = xd.length; xd[--len] == 0;) xd.pop();
565
- y.d = xd;
566
- y.e = getBase10Exponent(xd, e);
567
- return external ? finalise(y, pr, rm) : y;
568
- };
569
- P.precision = P.sd = function(z) {
570
- var k, x = this;
571
- if (z !== void 0 && z !== !!z && z !== 1 && z !== 0) throw Error(invalidArgument + z);
572
- if (x.d) {
573
- k = getPrecision(x.d);
574
- if (z && x.e + 1 > k) k = x.e + 1;
575
- } else k = NaN;
576
- return k;
577
- };
578
- P.round = function() {
579
- var x = this, Ctor = x.constructor;
580
- return finalise(new Ctor(x), x.e + 1, Ctor.rounding);
581
- };
582
- P.sine = P.sin = function() {
583
- var pr, rm, x = this, Ctor = x.constructor;
584
- if (!x.isFinite()) return new Ctor(NaN);
585
- if (x.isZero()) return new Ctor(x);
586
- pr = Ctor.precision;
587
- rm = Ctor.rounding;
588
- Ctor.precision = pr + Math.max(x.e, x.sd()) + LOG_BASE;
589
- Ctor.rounding = 1;
590
- x = sine(Ctor, toLessThanHalfPi(Ctor, x));
591
- Ctor.precision = pr;
592
- Ctor.rounding = rm;
593
- return finalise(quadrant > 2 ? x.neg() : x, pr, rm, true);
594
- };
595
- P.squareRoot = P.sqrt = function() {
596
- var m, n, sd, r, rep, t, x = this, d = x.d, e = x.e, s = x.s, Ctor = x.constructor;
597
- if (s !== 1 || !d || !d[0]) return new Ctor(!s || s < 0 && (!d || d[0]) ? NaN : d ? x : 1 / 0);
598
- external = false;
599
- s = Math.sqrt(+x);
600
- if (s == 0 || s == 1 / 0) {
601
- n = digitsToString(d);
602
- if ((n.length + e) % 2 == 0) n += "0";
603
- s = Math.sqrt(n);
604
- e = mathfloor((e + 1) / 2) - (e < 0 || e % 2);
605
- if (s == 1 / 0) n = "5e" + e;
606
- else {
607
- n = s.toExponential();
608
- n = n.slice(0, n.indexOf("e") + 1) + e;
609
- }
610
- r = new Ctor(n);
611
- } else r = new Ctor(s.toString());
612
- sd = (e = Ctor.precision) + 3;
613
- for (;;) {
614
- t = r;
615
- r = t.plus(divide(x, t, sd + 2, 1)).times(.5);
616
- if (digitsToString(t.d).slice(0, sd) === (n = digitsToString(r.d)).slice(0, sd)) {
617
- n = n.slice(sd - 3, sd + 1);
618
- if (n == "9999" || !rep && n == "4999") {
619
- if (!rep) {
620
- finalise(t, e + 1, 0);
621
- if (t.times(t).eq(x)) {
622
- r = t;
623
- break;
624
- }
625
- }
626
- sd += 4;
627
- rep = 1;
628
- } else {
629
- if (!+n || !+n.slice(1) && n.charAt(0) == "5") {
630
- finalise(r, e + 1, 1);
631
- m = !r.times(r).eq(x);
632
- }
633
- break;
634
- }
635
- }
636
- }
637
- external = true;
638
- return finalise(r, e, Ctor.rounding, m);
639
- };
640
- P.tangent = P.tan = function() {
641
- var pr, rm, x = this, Ctor = x.constructor;
642
- if (!x.isFinite()) return new Ctor(NaN);
643
- if (x.isZero()) return new Ctor(x);
644
- pr = Ctor.precision;
645
- rm = Ctor.rounding;
646
- Ctor.precision = pr + 10;
647
- Ctor.rounding = 1;
648
- x = x.sin();
649
- x.s = 1;
650
- x = divide(x, new Ctor(1).minus(x.times(x)).sqrt(), pr + 10, 0);
651
- Ctor.precision = pr;
652
- Ctor.rounding = rm;
653
- return finalise(quadrant == 2 || quadrant == 4 ? x.neg() : x, pr, rm, true);
654
- };
655
- P.times = P.mul = function(y) {
656
- var carry, e, i, k, r, rL, t, xdL, ydL, x = this, Ctor = x.constructor, xd = x.d, yd = (y = new Ctor(y)).d;
657
- y.s *= x.s;
658
- if (!xd || !xd[0] || !yd || !yd[0]) return new Ctor(!y.s || xd && !xd[0] && !yd || yd && !yd[0] && !xd ? NaN : !xd || !yd ? y.s / 0 : y.s * 0);
659
- e = mathfloor(x.e / LOG_BASE) + mathfloor(y.e / LOG_BASE);
660
- xdL = xd.length;
661
- ydL = yd.length;
662
- if (xdL < ydL) {
663
- r = xd;
664
- xd = yd;
665
- yd = r;
666
- rL = xdL;
667
- xdL = ydL;
668
- ydL = rL;
669
- }
670
- r = [];
671
- rL = xdL + ydL;
672
- for (i = rL; i--;) r.push(0);
673
- for (i = ydL; --i >= 0;) {
674
- carry = 0;
675
- for (k = xdL + i; k > i;) {
676
- t = r[k] + yd[i] * xd[k - i - 1] + carry;
677
- r[k--] = t % BASE | 0;
678
- carry = t / BASE | 0;
679
- }
680
- r[k] = (r[k] + carry) % BASE | 0;
681
- }
682
- for (; !r[--rL];) r.pop();
683
- if (carry) ++e;
684
- else r.shift();
685
- y.d = r;
686
- y.e = getBase10Exponent(r, e);
687
- return external ? finalise(y, Ctor.precision, Ctor.rounding) : y;
688
- };
689
- P.toBinary = function(sd, rm) {
690
- return toStringBinary(this, 2, sd, rm);
691
- };
692
- P.toDecimalPlaces = P.toDP = function(dp, rm) {
693
- var x = this, Ctor = x.constructor;
694
- x = new Ctor(x);
695
- if (dp === void 0) return x;
696
- checkInt32(dp, 0, MAX_DIGITS);
697
- if (rm === void 0) rm = Ctor.rounding;
698
- else checkInt32(rm, 0, 8);
699
- return finalise(x, dp + x.e + 1, rm);
700
- };
701
- P.toExponential = function(dp, rm) {
702
- var str, x = this, Ctor = x.constructor;
703
- if (dp === void 0) str = finiteToString(x, true);
704
- else {
705
- checkInt32(dp, 0, MAX_DIGITS);
706
- if (rm === void 0) rm = Ctor.rounding;
707
- else checkInt32(rm, 0, 8);
708
- x = finalise(new Ctor(x), dp + 1, rm);
709
- str = finiteToString(x, true, dp + 1);
710
- }
711
- return x.isNeg() && !x.isZero() ? "-" + str : str;
712
- };
713
- P.toFixed = function(dp, rm) {
714
- var str, y, x = this, Ctor = x.constructor;
715
- if (dp === void 0) str = finiteToString(x);
716
- else {
717
- checkInt32(dp, 0, MAX_DIGITS);
718
- if (rm === void 0) rm = Ctor.rounding;
719
- else checkInt32(rm, 0, 8);
720
- y = finalise(new Ctor(x), dp + x.e + 1, rm);
721
- str = finiteToString(y, false, dp + y.e + 1);
722
- }
723
- return x.isNeg() && !x.isZero() ? "-" + str : str;
724
- };
725
- P.toFraction = function(maxD) {
726
- var d, d0, d1, d2, e, k, n, n0, n1, pr, q, r, x = this, xd = x.d, Ctor = x.constructor;
727
- if (!xd) return new Ctor(x);
728
- n1 = d0 = new Ctor(1);
729
- d1 = n0 = new Ctor(0);
730
- d = new Ctor(d1);
731
- e = d.e = getPrecision(xd) - x.e - 1;
732
- k = e % LOG_BASE;
733
- d.d[0] = mathpow(10, k < 0 ? LOG_BASE + k : k);
734
- if (maxD == null) maxD = e > 0 ? d : n1;
735
- else {
736
- n = new Ctor(maxD);
737
- if (!n.isInt() || n.lt(n1)) throw Error(invalidArgument + n);
738
- maxD = n.gt(d) ? e > 0 ? d : n1 : n;
739
- }
740
- external = false;
741
- n = new Ctor(digitsToString(xd));
742
- pr = Ctor.precision;
743
- Ctor.precision = e = xd.length * LOG_BASE * 2;
744
- for (;;) {
745
- q = divide(n, d, 0, 1, 1);
746
- d2 = d0.plus(q.times(d1));
747
- if (d2.cmp(maxD) == 1) break;
748
- d0 = d1;
749
- d1 = d2;
750
- d2 = n1;
751
- n1 = n0.plus(q.times(d2));
752
- n0 = d2;
753
- d2 = d;
754
- d = n.minus(q.times(d2));
755
- n = d2;
756
- }
757
- d2 = divide(maxD.minus(d0), d1, 0, 1, 1);
758
- n0 = n0.plus(d2.times(n1));
759
- d0 = d0.plus(d2.times(d1));
760
- n0.s = n1.s = x.s;
761
- r = divide(n1, d1, e, 1).minus(x).abs().cmp(divide(n0, d0, e, 1).minus(x).abs()) < 1 ? [n1, d1] : [n0, d0];
762
- Ctor.precision = pr;
763
- external = true;
764
- return r;
765
- };
766
- P.toHexadecimal = P.toHex = function(sd, rm) {
767
- return toStringBinary(this, 16, sd, rm);
768
- };
769
- P.toNearest = function(y, rm) {
770
- var x = this, Ctor = x.constructor;
771
- x = new Ctor(x);
772
- if (y == null) {
773
- if (!x.d) return x;
774
- y = new Ctor(1);
775
- rm = Ctor.rounding;
776
- } else {
777
- y = new Ctor(y);
778
- if (rm === void 0) rm = Ctor.rounding;
779
- else checkInt32(rm, 0, 8);
780
- if (!x.d) return y.s ? x : y;
781
- if (!y.d) {
782
- if (y.s) y.s = x.s;
783
- return y;
784
- }
785
- }
786
- if (y.d[0]) {
787
- external = false;
788
- x = divide(x, y, 0, rm, 1).times(y);
789
- external = true;
790
- finalise(x);
791
- } else {
792
- y.s = x.s;
793
- x = y;
794
- }
795
- return x;
796
- };
797
- P.toNumber = function() {
798
- return +this;
799
- };
800
- P.toOctal = function(sd, rm) {
801
- return toStringBinary(this, 8, sd, rm);
802
- };
803
- P.toPower = P.pow = function(y) {
804
- var e, k, pr, r, rm, s, x = this, Ctor = x.constructor, yn = +(y = new Ctor(y));
805
- if (!x.d || !y.d || !x.d[0] || !y.d[0]) return new Ctor(mathpow(+x, yn));
806
- x = new Ctor(x);
807
- if (x.eq(1)) return x;
808
- pr = Ctor.precision;
809
- rm = Ctor.rounding;
810
- if (y.eq(1)) return finalise(x, pr, rm);
811
- e = mathfloor(y.e / LOG_BASE);
812
- if (e >= y.d.length - 1 && (k = yn < 0 ? -yn : yn) <= MAX_SAFE_INTEGER) {
813
- r = intPow(Ctor, x, k, pr);
814
- return y.s < 0 ? new Ctor(1).div(r) : finalise(r, pr, rm);
815
- }
816
- s = x.s;
817
- if (s < 0) {
818
- if (e < y.d.length - 1) return new Ctor(NaN);
819
- if ((y.d[e] & 1) == 0) s = 1;
820
- if (x.e == 0 && x.d[0] == 1 && x.d.length == 1) {
821
- x.s = s;
822
- return x;
823
- }
824
- }
825
- k = mathpow(+x, yn);
826
- e = k == 0 || !isFinite(k) ? mathfloor(yn * (Math.log("0." + digitsToString(x.d)) / Math.LN10 + x.e + 1)) : new Ctor(k + "").e;
827
- if (e > Ctor.maxE + 1 || e < Ctor.minE - 1) return new Ctor(e > 0 ? s / 0 : 0);
828
- external = false;
829
- Ctor.rounding = x.s = 1;
830
- k = Math.min(12, (e + "").length);
831
- r = naturalExponential(y.times(naturalLogarithm(x, pr + k)), pr);
832
- if (r.d) {
833
- r = finalise(r, pr + 5, 1);
834
- if (checkRoundingDigits(r.d, pr, rm)) {
835
- e = pr + 10;
836
- r = finalise(naturalExponential(y.times(naturalLogarithm(x, e + k)), e), e + 5, 1);
837
- if (+digitsToString(r.d).slice(pr + 1, pr + 15) + 1 == 0x5af3107a4000) r = finalise(r, pr + 1, 0);
838
- }
839
- }
840
- r.s = s;
841
- external = true;
842
- Ctor.rounding = rm;
843
- return finalise(r, pr, rm);
844
- };
845
- P.toPrecision = function(sd, rm) {
846
- var str, x = this, Ctor = x.constructor;
847
- if (sd === void 0) str = finiteToString(x, x.e <= Ctor.toExpNeg || x.e >= Ctor.toExpPos);
848
- else {
849
- checkInt32(sd, 1, MAX_DIGITS);
850
- if (rm === void 0) rm = Ctor.rounding;
851
- else checkInt32(rm, 0, 8);
852
- x = finalise(new Ctor(x), sd, rm);
853
- str = finiteToString(x, sd <= x.e || x.e <= Ctor.toExpNeg, sd);
854
- }
855
- return x.isNeg() && !x.isZero() ? "-" + str : str;
856
- };
857
- P.toSignificantDigits = P.toSD = function(sd, rm) {
858
- var x = this, Ctor = x.constructor;
859
- if (sd === void 0) {
860
- sd = Ctor.precision;
861
- rm = Ctor.rounding;
862
- } else {
863
- checkInt32(sd, 1, MAX_DIGITS);
864
- if (rm === void 0) rm = Ctor.rounding;
865
- else checkInt32(rm, 0, 8);
866
- }
867
- return finalise(new Ctor(x), sd, rm);
868
- };
869
- P.toString = function() {
870
- var x = this, Ctor = x.constructor, str = finiteToString(x, x.e <= Ctor.toExpNeg || x.e >= Ctor.toExpPos);
871
- return x.isNeg() && !x.isZero() ? "-" + str : str;
872
- };
873
- P.truncated = P.trunc = function() {
874
- return finalise(new this.constructor(this), this.e + 1, 1);
875
- };
876
- P.valueOf = P.toJSON = function() {
877
- var x = this, Ctor = x.constructor, str = finiteToString(x, x.e <= Ctor.toExpNeg || x.e >= Ctor.toExpPos);
878
- return x.isNeg() ? "-" + str : str;
879
- };
880
- function digitsToString(d) {
881
- var i, k, ws, indexOfLastWord = d.length - 1, str = "", w = d[0];
882
- if (indexOfLastWord > 0) {
883
- str += w;
884
- for (i = 1; i < indexOfLastWord; i++) {
885
- ws = d[i] + "";
886
- k = LOG_BASE - ws.length;
887
- if (k) str += getZeroString(k);
888
- str += ws;
889
- }
890
- w = d[i];
891
- ws = w + "";
892
- k = LOG_BASE - ws.length;
893
- if (k) str += getZeroString(k);
894
- } else if (w === 0) return "0";
895
- for (; w % 10 === 0;) w /= 10;
896
- return str + w;
897
- }
898
- function checkInt32(i, min, max) {
899
- if (i !== ~~i || i < min || i > max) throw Error(invalidArgument + i);
900
- }
901
- function checkRoundingDigits(d, i, rm, repeating) {
902
- var di, k, r, rd;
903
- for (k = d[0]; k >= 10; k /= 10) --i;
904
- if (--i < 0) {
905
- i += LOG_BASE;
906
- di = 0;
907
- } else {
908
- di = Math.ceil((i + 1) / LOG_BASE);
909
- i %= LOG_BASE;
910
- }
911
- k = mathpow(10, LOG_BASE - i);
912
- rd = d[di] % k | 0;
913
- if (repeating == null) {
914
- if (i < 3) {
915
- if (i == 0) rd = rd / 100 | 0;
916
- else if (i == 1) rd = rd / 10 | 0;
917
- r = rm < 4 && rd == 99999 || rm > 3 && rd == 49999 || rd == 5e4 || rd == 0;
918
- } else r = (rm < 4 && rd + 1 == k || rm > 3 && rd + 1 == k / 2) && (d[di + 1] / k / 100 | 0) == mathpow(10, i - 2) - 1 || (rd == k / 2 || rd == 0) && (d[di + 1] / k / 100 | 0) == 0;
919
- } else if (i < 4) {
920
- if (i == 0) rd = rd / 1e3 | 0;
921
- else if (i == 1) rd = rd / 100 | 0;
922
- else if (i == 2) rd = rd / 10 | 0;
923
- r = (repeating || rm < 4) && rd == 9999 || !repeating && rm > 3 && rd == 4999;
924
- } else r = ((repeating || rm < 4) && rd + 1 == k || !repeating && rm > 3 && rd + 1 == k / 2) && (d[di + 1] / k / 1e3 | 0) == mathpow(10, i - 3) - 1;
925
- return r;
926
- }
927
- function convertBase(str, baseIn, baseOut) {
928
- var j, arr = [0], arrL, i = 0, strL = str.length;
929
- for (; i < strL;) {
930
- for (arrL = arr.length; arrL--;) arr[arrL] *= baseIn;
931
- arr[0] += NUMERALS.indexOf(str.charAt(i++));
932
- for (j = 0; j < arr.length; j++) if (arr[j] > baseOut - 1) {
933
- if (arr[j + 1] === void 0) arr[j + 1] = 0;
934
- arr[j + 1] += arr[j] / baseOut | 0;
935
- arr[j] %= baseOut;
936
- }
937
- }
938
- return arr.reverse();
939
- }
940
- function cosine(Ctor, x) {
941
- var k, len, y;
942
- if (x.isZero()) return x;
943
- len = x.d.length;
944
- if (len < 32) {
945
- k = Math.ceil(len / 3);
946
- y = (1 / tinyPow(4, k)).toString();
947
- } else {
948
- k = 16;
949
- y = "2.3283064365386962890625e-10";
950
- }
951
- Ctor.precision += k;
952
- x = taylorSeries(Ctor, 1, x.times(y), new Ctor(1));
953
- for (var i = k; i--;) {
954
- var cos2x = x.times(x);
955
- x = cos2x.times(cos2x).minus(cos2x).times(8).plus(1);
956
- }
957
- Ctor.precision -= k;
958
- return x;
959
- }
960
- var divide = (function() {
961
- function multiplyInteger(x, k, base) {
962
- var temp, carry = 0, i = x.length;
963
- for (x = x.slice(); i--;) {
964
- temp = x[i] * k + carry;
965
- x[i] = temp % base | 0;
966
- carry = temp / base | 0;
967
- }
968
- if (carry) x.unshift(carry);
969
- return x;
970
- }
971
- function compare(a, b, aL, bL) {
972
- var i, r;
973
- if (aL != bL) r = aL > bL ? 1 : -1;
974
- else for (i = r = 0; i < aL; i++) if (a[i] != b[i]) {
975
- r = a[i] > b[i] ? 1 : -1;
976
- break;
977
- }
978
- return r;
979
- }
980
- function subtract(a, b, aL, base) {
981
- var i = 0;
982
- for (; aL--;) {
983
- a[aL] -= i;
984
- i = a[aL] < b[aL] ? 1 : 0;
985
- a[aL] = i * base + a[aL] - b[aL];
986
- }
987
- for (; !a[0] && a.length > 1;) a.shift();
988
- }
989
- return function(x, y, pr, rm, dp, base) {
990
- var cmp, e, i, k, logBase, more, prod, prodL, q, qd, rem, remL, rem0, sd, t, xi, xL, yd0, yL, yz, Ctor = x.constructor, sign = x.s == y.s ? 1 : -1, xd = x.d, yd = y.d;
991
- if (!xd || !xd[0] || !yd || !yd[0]) return new Ctor(!x.s || !y.s || (xd ? yd && xd[0] == yd[0] : !yd) ? NaN : xd && xd[0] == 0 || !yd ? sign * 0 : sign / 0);
992
- if (base) {
993
- logBase = 1;
994
- e = x.e - y.e;
995
- } else {
996
- base = BASE;
997
- logBase = LOG_BASE;
998
- e = mathfloor(x.e / logBase) - mathfloor(y.e / logBase);
999
- }
1000
- yL = yd.length;
1001
- xL = xd.length;
1002
- q = new Ctor(sign);
1003
- qd = q.d = [];
1004
- for (i = 0; yd[i] == (xd[i] || 0); i++);
1005
- if (yd[i] > (xd[i] || 0)) e--;
1006
- if (pr == null) {
1007
- sd = pr = Ctor.precision;
1008
- rm = Ctor.rounding;
1009
- } else if (dp) sd = pr + (x.e - y.e) + 1;
1010
- else sd = pr;
1011
- if (sd < 0) {
1012
- qd.push(1);
1013
- more = true;
1014
- } else {
1015
- sd = sd / logBase + 2 | 0;
1016
- i = 0;
1017
- if (yL == 1) {
1018
- k = 0;
1019
- yd = yd[0];
1020
- sd++;
1021
- for (; (i < xL || k) && sd--; i++) {
1022
- t = k * base + (xd[i] || 0);
1023
- qd[i] = t / yd | 0;
1024
- k = t % yd | 0;
1025
- }
1026
- more = k || i < xL;
1027
- } else {
1028
- k = base / (yd[0] + 1) | 0;
1029
- if (k > 1) {
1030
- yd = multiplyInteger(yd, k, base);
1031
- xd = multiplyInteger(xd, k, base);
1032
- yL = yd.length;
1033
- xL = xd.length;
1034
- }
1035
- xi = yL;
1036
- rem = xd.slice(0, yL);
1037
- remL = rem.length;
1038
- for (; remL < yL;) rem[remL++] = 0;
1039
- yz = yd.slice();
1040
- yz.unshift(0);
1041
- yd0 = yd[0];
1042
- if (yd[1] >= base / 2) ++yd0;
1043
- do {
1044
- k = 0;
1045
- cmp = compare(yd, rem, yL, remL);
1046
- if (cmp < 0) {
1047
- rem0 = rem[0];
1048
- if (yL != remL) rem0 = rem0 * base + (rem[1] || 0);
1049
- k = rem0 / yd0 | 0;
1050
- if (k > 1) {
1051
- if (k >= base) k = base - 1;
1052
- prod = multiplyInteger(yd, k, base);
1053
- prodL = prod.length;
1054
- remL = rem.length;
1055
- cmp = compare(prod, rem, prodL, remL);
1056
- if (cmp == 1) {
1057
- k--;
1058
- subtract(prod, yL < prodL ? yz : yd, prodL, base);
1059
- }
1060
- } else {
1061
- if (k == 0) cmp = k = 1;
1062
- prod = yd.slice();
1063
- }
1064
- prodL = prod.length;
1065
- if (prodL < remL) prod.unshift(0);
1066
- subtract(rem, prod, remL, base);
1067
- if (cmp == -1) {
1068
- remL = rem.length;
1069
- cmp = compare(yd, rem, yL, remL);
1070
- if (cmp < 1) {
1071
- k++;
1072
- subtract(rem, yL < remL ? yz : yd, remL, base);
1073
- }
1074
- }
1075
- remL = rem.length;
1076
- } else if (cmp === 0) {
1077
- k++;
1078
- rem = [0];
1079
- }
1080
- qd[i++] = k;
1081
- if (cmp && rem[0]) rem[remL++] = xd[xi] || 0;
1082
- else {
1083
- rem = [xd[xi]];
1084
- remL = 1;
1085
- }
1086
- } while ((xi++ < xL || rem[0] !== void 0) && sd--);
1087
- more = rem[0] !== void 0;
1088
- }
1089
- if (!qd[0]) qd.shift();
1090
- }
1091
- if (logBase == 1) {
1092
- q.e = e;
1093
- inexact = more;
1094
- } else {
1095
- for (i = 1, k = qd[0]; k >= 10; k /= 10) i++;
1096
- q.e = i + e * logBase - 1;
1097
- finalise(q, dp ? pr + q.e + 1 : pr, rm, more);
1098
- }
1099
- return q;
1100
- };
1101
- })();
1102
- function finalise(x, sd, rm, isTruncated) {
1103
- var digits, i, j, k, rd, roundUp, w, xd, xdi, Ctor = x.constructor;
1104
- out: if (sd != null) {
1105
- xd = x.d;
1106
- if (!xd) return x;
1107
- for (digits = 1, k = xd[0]; k >= 10; k /= 10) digits++;
1108
- i = sd - digits;
1109
- if (i < 0) {
1110
- i += LOG_BASE;
1111
- j = sd;
1112
- w = xd[xdi = 0];
1113
- rd = w / mathpow(10, digits - j - 1) % 10 | 0;
1114
- } else {
1115
- xdi = Math.ceil((i + 1) / LOG_BASE);
1116
- k = xd.length;
1117
- if (xdi >= k) {
1118
- if (isTruncated) {
1119
- for (; k++ <= xdi;) xd.push(0);
1120
- w = rd = 0;
1121
- digits = 1;
1122
- i %= LOG_BASE;
1123
- j = i - LOG_BASE + 1;
1124
- } else break out;
1125
- } else {
1126
- w = k = xd[xdi];
1127
- for (digits = 1; k >= 10; k /= 10) digits++;
1128
- i %= LOG_BASE;
1129
- j = i - LOG_BASE + digits;
1130
- rd = j < 0 ? 0 : w / mathpow(10, digits - j - 1) % 10 | 0;
1131
- }
1132
- }
1133
- isTruncated = isTruncated || sd < 0 || xd[xdi + 1] !== void 0 || (j < 0 ? w : w % mathpow(10, digits - j - 1));
1134
- roundUp = rm < 4 ? (rd || isTruncated) && (rm == 0 || rm == (x.s < 0 ? 3 : 2)) : rd > 5 || rd == 5 && (rm == 4 || isTruncated || rm == 6 && (i > 0 ? j > 0 ? w / mathpow(10, digits - j) : 0 : xd[xdi - 1]) % 10 & 1 || rm == (x.s < 0 ? 8 : 7));
1135
- if (sd < 1 || !xd[0]) {
1136
- xd.length = 0;
1137
- if (roundUp) {
1138
- sd -= x.e + 1;
1139
- xd[0] = mathpow(10, (LOG_BASE - sd % LOG_BASE) % LOG_BASE);
1140
- x.e = -sd || 0;
1141
- } else xd[0] = x.e = 0;
1142
- return x;
1143
- }
1144
- if (i == 0) {
1145
- xd.length = xdi;
1146
- k = 1;
1147
- xdi--;
1148
- } else {
1149
- xd.length = xdi + 1;
1150
- k = mathpow(10, LOG_BASE - i);
1151
- xd[xdi] = j > 0 ? (w / mathpow(10, digits - j) % mathpow(10, j) | 0) * k : 0;
1152
- }
1153
- if (roundUp) for (;;) if (xdi == 0) {
1154
- for (i = 1, j = xd[0]; j >= 10; j /= 10) i++;
1155
- j = xd[0] += k;
1156
- for (k = 1; j >= 10; j /= 10) k++;
1157
- if (i != k) {
1158
- x.e++;
1159
- if (xd[0] == BASE) xd[0] = 1;
1160
- }
1161
- break;
1162
- } else {
1163
- xd[xdi] += k;
1164
- if (xd[xdi] != BASE) break;
1165
- xd[xdi--] = 0;
1166
- k = 1;
1167
- }
1168
- for (i = xd.length; xd[--i] === 0;) xd.pop();
1169
- }
1170
- if (external) {
1171
- if (x.e > Ctor.maxE) {
1172
- x.d = null;
1173
- x.e = NaN;
1174
- } else if (x.e < Ctor.minE) {
1175
- x.e = 0;
1176
- x.d = [0];
1177
- }
1178
- }
1179
- return x;
1180
- }
1181
- function finiteToString(x, isExp, sd) {
1182
- if (!x.isFinite()) return nonFiniteToString(x);
1183
- var k, e = x.e, str = digitsToString(x.d), len = str.length;
1184
- if (isExp) {
1185
- if (sd && (k = sd - len) > 0) str = str.charAt(0) + "." + str.slice(1) + getZeroString(k);
1186
- else if (len > 1) str = str.charAt(0) + "." + str.slice(1);
1187
- str = str + (x.e < 0 ? "e" : "e+") + x.e;
1188
- } else if (e < 0) {
1189
- str = "0." + getZeroString(-e - 1) + str;
1190
- if (sd && (k = sd - len) > 0) str += getZeroString(k);
1191
- } else if (e >= len) {
1192
- str += getZeroString(e + 1 - len);
1193
- if (sd && (k = sd - e - 1) > 0) str = str + "." + getZeroString(k);
1194
- } else {
1195
- if ((k = e + 1) < len) str = str.slice(0, k) + "." + str.slice(k);
1196
- if (sd && (k = sd - len) > 0) {
1197
- if (e + 1 === len) str += ".";
1198
- str += getZeroString(k);
1199
- }
1200
- }
1201
- return str;
1202
- }
1203
- function getBase10Exponent(digits, e) {
1204
- var w = digits[0];
1205
- for (e *= LOG_BASE; w >= 10; w /= 10) e++;
1206
- return e;
1207
- }
1208
- function getLn10(Ctor, sd, pr) {
1209
- if (sd > LN10_PRECISION) {
1210
- external = true;
1211
- if (pr) Ctor.precision = pr;
1212
- throw Error(precisionLimitExceeded);
1213
- }
1214
- return finalise(new Ctor(LN10), sd, 1, true);
1215
- }
1216
- function getPi(Ctor, sd, rm) {
1217
- if (sd > PI_PRECISION) throw Error(precisionLimitExceeded);
1218
- return finalise(new Ctor(PI), sd, rm, true);
1219
- }
1220
- function getPrecision(digits) {
1221
- var w = digits.length - 1, len = w * LOG_BASE + 1;
1222
- w = digits[w];
1223
- if (w) {
1224
- for (; w % 10 == 0; w /= 10) len--;
1225
- for (w = digits[0]; w >= 10; w /= 10) len++;
1226
- }
1227
- return len;
1228
- }
1229
- function getZeroString(k) {
1230
- var zs = "";
1231
- for (; k--;) zs += "0";
1232
- return zs;
1233
- }
1234
- function intPow(Ctor, x, n, pr) {
1235
- var isTruncated, r = new Ctor(1), k = Math.ceil(pr / LOG_BASE + 4);
1236
- external = false;
1237
- for (;;) {
1238
- if (n % 2) {
1239
- r = r.times(x);
1240
- if (truncate(r.d, k)) isTruncated = true;
1241
- }
1242
- n = mathfloor(n / 2);
1243
- if (n === 0) {
1244
- n = r.d.length - 1;
1245
- if (isTruncated && r.d[n] === 0) ++r.d[n];
1246
- break;
1247
- }
1248
- x = x.times(x);
1249
- truncate(x.d, k);
1250
- }
1251
- external = true;
1252
- return r;
1253
- }
1254
- function isOdd(n) {
1255
- return n.d[n.d.length - 1] & 1;
1256
- }
1257
- function maxOrMin(Ctor, args, n) {
1258
- var k, y, x = new Ctor(args[0]), i = 0;
1259
- for (; ++i < args.length;) {
1260
- y = new Ctor(args[i]);
1261
- if (!y.s) {
1262
- x = y;
1263
- break;
1264
- }
1265
- k = x.cmp(y);
1266
- if (k === n || k === 0 && x.s === n) x = y;
1267
- }
1268
- return x;
1269
- }
1270
- function naturalExponential(x, sd) {
1271
- var denominator, guard, j, pow, sum, t, wpr, rep = 0, i = 0, k = 0, Ctor = x.constructor, rm = Ctor.rounding, pr = Ctor.precision;
1272
- if (!x.d || !x.d[0] || x.e > 17) return new Ctor(x.d ? !x.d[0] ? 1 : x.s < 0 ? 0 : 1 / 0 : x.s ? x.s < 0 ? 0 : x : NaN);
1273
- if (sd == null) {
1274
- external = false;
1275
- wpr = pr;
1276
- } else wpr = sd;
1277
- t = new Ctor(.03125);
1278
- while (x.e > -2) {
1279
- x = x.times(t);
1280
- k += 5;
1281
- }
1282
- guard = Math.log(mathpow(2, k)) / Math.LN10 * 2 + 5 | 0;
1283
- wpr += guard;
1284
- denominator = pow = sum = new Ctor(1);
1285
- Ctor.precision = wpr;
1286
- for (;;) {
1287
- pow = finalise(pow.times(x), wpr, 1);
1288
- denominator = denominator.times(++i);
1289
- t = sum.plus(divide(pow, denominator, wpr, 1));
1290
- if (digitsToString(t.d).slice(0, wpr) === digitsToString(sum.d).slice(0, wpr)) {
1291
- j = k;
1292
- while (j--) sum = finalise(sum.times(sum), wpr, 1);
1293
- if (sd == null) {
1294
- if (rep < 3 && checkRoundingDigits(sum.d, wpr - guard, rm, rep)) {
1295
- Ctor.precision = wpr += 10;
1296
- denominator = pow = t = new Ctor(1);
1297
- i = 0;
1298
- rep++;
1299
- } else return finalise(sum, Ctor.precision = pr, rm, external = true);
1300
- } else {
1301
- Ctor.precision = pr;
1302
- return sum;
1303
- }
1304
- }
1305
- sum = t;
1306
- }
1307
- }
1308
- function naturalLogarithm(y, sd) {
1309
- var c, c0, denominator, e, numerator, rep, sum, t, wpr, x1, x2, n = 1, guard = 10, x = y, xd = x.d, Ctor = x.constructor, rm = Ctor.rounding, pr = Ctor.precision;
1310
- if (x.s < 0 || !xd || !xd[0] || !x.e && xd[0] == 1 && xd.length == 1) return new Ctor(xd && !xd[0] ? -1 / 0 : x.s != 1 ? NaN : xd ? 0 : x);
1311
- if (sd == null) {
1312
- external = false;
1313
- wpr = pr;
1314
- } else wpr = sd;
1315
- Ctor.precision = wpr += guard;
1316
- c = digitsToString(xd);
1317
- c0 = c.charAt(0);
1318
- if (Math.abs(e = x.e) < 0x5543df729c000) {
1319
- while (c0 < 7 && c0 != 1 || c0 == 1 && c.charAt(1) > 3) {
1320
- x = x.times(y);
1321
- c = digitsToString(x.d);
1322
- c0 = c.charAt(0);
1323
- n++;
1324
- }
1325
- e = x.e;
1326
- if (c0 > 1) {
1327
- x = new Ctor("0." + c);
1328
- e++;
1329
- } else x = new Ctor(c0 + "." + c.slice(1));
1330
- } else {
1331
- t = getLn10(Ctor, wpr + 2, pr).times(e + "");
1332
- x = naturalLogarithm(new Ctor(c0 + "." + c.slice(1)), wpr - guard).plus(t);
1333
- Ctor.precision = pr;
1334
- return sd == null ? finalise(x, pr, rm, external = true) : x;
1335
- }
1336
- x1 = x;
1337
- sum = numerator = x = divide(x.minus(1), x.plus(1), wpr, 1);
1338
- x2 = finalise(x.times(x), wpr, 1);
1339
- denominator = 3;
1340
- for (;;) {
1341
- numerator = finalise(numerator.times(x2), wpr, 1);
1342
- t = sum.plus(divide(numerator, new Ctor(denominator), wpr, 1));
1343
- if (digitsToString(t.d).slice(0, wpr) === digitsToString(sum.d).slice(0, wpr)) {
1344
- sum = sum.times(2);
1345
- if (e !== 0) sum = sum.plus(getLn10(Ctor, wpr + 2, pr).times(e + ""));
1346
- sum = divide(sum, new Ctor(n), wpr, 1);
1347
- if (sd == null) {
1348
- if (checkRoundingDigits(sum.d, wpr - guard, rm, rep)) {
1349
- Ctor.precision = wpr += guard;
1350
- t = numerator = x = divide(x1.minus(1), x1.plus(1), wpr, 1);
1351
- x2 = finalise(x.times(x), wpr, 1);
1352
- denominator = rep = 1;
1353
- } else return finalise(sum, Ctor.precision = pr, rm, external = true);
1354
- } else {
1355
- Ctor.precision = pr;
1356
- return sum;
1357
- }
1358
- }
1359
- sum = t;
1360
- denominator += 2;
1361
- }
1362
- }
1363
- function nonFiniteToString(x) {
1364
- return String(x.s * x.s / 0);
1365
- }
1366
- function parseDecimal(x, str) {
1367
- var e, i, len;
1368
- if ((e = str.indexOf(".")) > -1) str = str.replace(".", "");
1369
- if ((i = str.search(/e/i)) > 0) {
1370
- if (e < 0) e = i;
1371
- e += +str.slice(i + 1);
1372
- str = str.substring(0, i);
1373
- } else if (e < 0) e = str.length;
1374
- for (i = 0; str.charCodeAt(i) === 48; i++);
1375
- for (len = str.length; str.charCodeAt(len - 1) === 48; --len);
1376
- str = str.slice(i, len);
1377
- if (str) {
1378
- len -= i;
1379
- x.e = e = e - i - 1;
1380
- x.d = [];
1381
- i = (e + 1) % LOG_BASE;
1382
- if (e < 0) i += LOG_BASE;
1383
- if (i < len) {
1384
- if (i) x.d.push(+str.slice(0, i));
1385
- for (len -= LOG_BASE; i < len;) x.d.push(+str.slice(i, i += LOG_BASE));
1386
- str = str.slice(i);
1387
- i = LOG_BASE - str.length;
1388
- } else i -= len;
1389
- for (; i--;) str += "0";
1390
- x.d.push(+str);
1391
- if (external) {
1392
- if (x.e > x.constructor.maxE) {
1393
- x.d = null;
1394
- x.e = NaN;
1395
- } else if (x.e < x.constructor.minE) {
1396
- x.e = 0;
1397
- x.d = [0];
1398
- }
1399
- }
1400
- } else {
1401
- x.e = 0;
1402
- x.d = [0];
1403
- }
1404
- return x;
1405
- }
1406
- function parseOther(x, str) {
1407
- var base, Ctor, divisor, i, isFloat, len, p, xd, xe;
1408
- if (str.indexOf("_") > -1) {
1409
- str = str.replace(/(\d)_(?=\d)/g, "$1");
1410
- if (isDecimal.test(str)) return parseDecimal(x, str);
1411
- } else if (str === "Infinity" || str === "NaN") {
1412
- if (!+str) x.s = NaN;
1413
- x.e = NaN;
1414
- x.d = null;
1415
- return x;
1416
- }
1417
- if (isHex.test(str)) {
1418
- base = 16;
1419
- str = str.toLowerCase();
1420
- } else if (isBinary.test(str)) base = 2;
1421
- else if (isOctal.test(str)) base = 8;
1422
- else throw Error(invalidArgument + str);
1423
- i = str.search(/p/i);
1424
- if (i > 0) {
1425
- p = +str.slice(i + 1);
1426
- str = str.substring(2, i);
1427
- } else str = str.slice(2);
1428
- i = str.indexOf(".");
1429
- isFloat = i >= 0;
1430
- Ctor = x.constructor;
1431
- if (isFloat) {
1432
- str = str.replace(".", "");
1433
- len = str.length;
1434
- i = len - i;
1435
- divisor = intPow(Ctor, new Ctor(base), i, i * 2);
1436
- }
1437
- xd = convertBase(str, base, BASE);
1438
- xe = xd.length - 1;
1439
- for (i = xe; xd[i] === 0; --i) xd.pop();
1440
- if (i < 0) return new Ctor(x.s * 0);
1441
- x.e = getBase10Exponent(xd, xe);
1442
- x.d = xd;
1443
- external = false;
1444
- if (isFloat) x = divide(x, divisor, len * 4);
1445
- if (p) x = x.times(Math.abs(p) < 54 ? mathpow(2, p) : Decimal.pow(2, p));
1446
- external = true;
1447
- return x;
1448
- }
1449
- function sine(Ctor, x) {
1450
- var k, len = x.d.length;
1451
- if (len < 3) return x.isZero() ? x : taylorSeries(Ctor, 2, x, x);
1452
- k = 1.4 * Math.sqrt(len);
1453
- k = k > 16 ? 16 : k | 0;
1454
- x = x.times(1 / tinyPow(5, k));
1455
- x = taylorSeries(Ctor, 2, x, x);
1456
- var sin2_x, d5 = new Ctor(5), d16 = new Ctor(16), d20 = new Ctor(20);
1457
- for (; k--;) {
1458
- sin2_x = x.times(x);
1459
- x = x.times(d5.plus(sin2_x.times(d16.times(sin2_x).minus(d20))));
1460
- }
1461
- return x;
1462
- }
1463
- function taylorSeries(Ctor, n, x, y, isHyperbolic) {
1464
- var j, t, u, x2, i = 1, pr = Ctor.precision, k = Math.ceil(pr / LOG_BASE);
1465
- external = false;
1466
- x2 = x.times(x);
1467
- u = new Ctor(y);
1468
- for (;;) {
1469
- t = divide(u.times(x2), new Ctor(n++ * n++), pr, 1);
1470
- u = isHyperbolic ? y.plus(t) : y.minus(t);
1471
- y = divide(t.times(x2), new Ctor(n++ * n++), pr, 1);
1472
- t = u.plus(y);
1473
- if (t.d[k] !== void 0) {
1474
- for (j = k; t.d[j] === u.d[j] && j--;);
1475
- if (j == -1) break;
1476
- }
1477
- j = u;
1478
- u = y;
1479
- y = t;
1480
- t = j;
1481
- i++;
1482
- }
1483
- external = true;
1484
- t.d.length = k + 1;
1485
- return t;
1486
- }
1487
- function tinyPow(b, e) {
1488
- var n = b;
1489
- while (--e) n *= b;
1490
- return n;
1491
- }
1492
- function toLessThanHalfPi(Ctor, x) {
1493
- var t, isNeg = x.s < 0, pi = getPi(Ctor, Ctor.precision, 1), halfPi = pi.times(.5);
1494
- x = x.abs();
1495
- if (x.lte(halfPi)) {
1496
- quadrant = isNeg ? 4 : 1;
1497
- return x;
1498
- }
1499
- t = x.divToInt(pi);
1500
- if (t.isZero()) quadrant = isNeg ? 3 : 2;
1501
- else {
1502
- x = x.minus(t.times(pi));
1503
- if (x.lte(halfPi)) {
1504
- quadrant = isOdd(t) ? isNeg ? 2 : 3 : isNeg ? 4 : 1;
1505
- return x;
1506
- }
1507
- quadrant = isOdd(t) ? isNeg ? 1 : 4 : isNeg ? 3 : 2;
1508
- }
1509
- return x.minus(pi).abs();
1510
- }
1511
- function toStringBinary(x, baseOut, sd, rm) {
1512
- var base, e, i, k, len, roundUp, str, xd, y, Ctor = x.constructor, isExp = sd !== void 0;
1513
- if (isExp) {
1514
- checkInt32(sd, 1, MAX_DIGITS);
1515
- if (rm === void 0) rm = Ctor.rounding;
1516
- else checkInt32(rm, 0, 8);
1517
- } else {
1518
- sd = Ctor.precision;
1519
- rm = Ctor.rounding;
1520
- }
1521
- if (!x.isFinite()) str = nonFiniteToString(x);
1522
- else {
1523
- str = finiteToString(x);
1524
- i = str.indexOf(".");
1525
- if (isExp) {
1526
- base = 2;
1527
- if (baseOut == 16) sd = sd * 4 - 3;
1528
- else if (baseOut == 8) sd = sd * 3 - 2;
1529
- } else base = baseOut;
1530
- if (i >= 0) {
1531
- str = str.replace(".", "");
1532
- y = new Ctor(1);
1533
- y.e = str.length - i;
1534
- y.d = convertBase(finiteToString(y), 10, base);
1535
- y.e = y.d.length;
1536
- }
1537
- xd = convertBase(str, 10, base);
1538
- e = len = xd.length;
1539
- for (; xd[--len] == 0;) xd.pop();
1540
- if (!xd[0]) str = isExp ? "0p+0" : "0";
1541
- else {
1542
- if (i < 0) e--;
1543
- else {
1544
- x = new Ctor(x);
1545
- x.d = xd;
1546
- x.e = e;
1547
- x = divide(x, y, sd, rm, 0, base);
1548
- xd = x.d;
1549
- e = x.e;
1550
- roundUp = inexact;
1551
- }
1552
- i = xd[sd];
1553
- k = base / 2;
1554
- roundUp = roundUp || xd[sd + 1] !== void 0;
1555
- roundUp = rm < 4 ? (i !== void 0 || roundUp) && (rm === 0 || rm === (x.s < 0 ? 3 : 2)) : i > k || i === k && (rm === 4 || roundUp || rm === 6 && xd[sd - 1] & 1 || rm === (x.s < 0 ? 8 : 7));
1556
- xd.length = sd;
1557
- if (roundUp) for (; ++xd[--sd] > base - 1;) {
1558
- xd[sd] = 0;
1559
- if (!sd) {
1560
- ++e;
1561
- xd.unshift(1);
1562
- }
1563
- }
1564
- for (len = xd.length; !xd[len - 1]; --len);
1565
- for (i = 0, str = ""; i < len; i++) str += NUMERALS.charAt(xd[i]);
1566
- if (isExp) {
1567
- if (len > 1) {
1568
- if (baseOut == 16 || baseOut == 8) {
1569
- i = baseOut == 16 ? 4 : 3;
1570
- for (--len; len % i; len++) str += "0";
1571
- xd = convertBase(str, base, baseOut);
1572
- for (len = xd.length; !xd[len - 1]; --len);
1573
- for (i = 1, str = "1."; i < len; i++) str += NUMERALS.charAt(xd[i]);
1574
- } else str = str.charAt(0) + "." + str.slice(1);
1575
- }
1576
- str = str + (e < 0 ? "p" : "p+") + e;
1577
- } else if (e < 0) {
1578
- for (; ++e;) str = "0" + str;
1579
- str = "0." + str;
1580
- } else if (++e > len) for (e -= len; e--;) str += "0";
1581
- else if (e < len) str = str.slice(0, e) + "." + str.slice(e);
1582
- }
1583
- str = (baseOut == 16 ? "0x" : baseOut == 2 ? "0b" : baseOut == 8 ? "0o" : "") + str;
1584
- }
1585
- return x.s < 0 ? "-" + str : str;
1586
- }
1587
- function truncate(arr, len) {
1588
- if (arr.length > len) {
1589
- arr.length = len;
1590
- return true;
1591
- }
1592
- }
1593
- function abs(x) {
1594
- return new this(x).abs();
1595
- }
1596
- function acos(x) {
1597
- return new this(x).acos();
1598
- }
1599
- function acosh(x) {
1600
- return new this(x).acosh();
1601
- }
1602
- function add(x, y) {
1603
- return new this(x).plus(y);
1604
- }
1605
- function asin(x) {
1606
- return new this(x).asin();
1607
- }
1608
- function asinh(x) {
1609
- return new this(x).asinh();
1610
- }
1611
- function atan(x) {
1612
- return new this(x).atan();
1613
- }
1614
- function atanh(x) {
1615
- return new this(x).atanh();
1616
- }
1617
- function atan2(y, x) {
1618
- y = new this(y);
1619
- x = new this(x);
1620
- var r, pr = this.precision, rm = this.rounding, wpr = pr + 4;
1621
- if (!y.s || !x.s) r = new this(NaN);
1622
- else if (!y.d && !x.d) {
1623
- r = getPi(this, wpr, 1).times(x.s > 0 ? .25 : .75);
1624
- r.s = y.s;
1625
- } else if (!x.d || y.isZero()) {
1626
- r = x.s < 0 ? getPi(this, pr, rm) : new this(0);
1627
- r.s = y.s;
1628
- } else if (!y.d || x.isZero()) {
1629
- r = getPi(this, wpr, 1).times(.5);
1630
- r.s = y.s;
1631
- } else if (x.s < 0) {
1632
- this.precision = wpr;
1633
- this.rounding = 1;
1634
- r = this.atan(divide(y, x, wpr, 1));
1635
- x = getPi(this, wpr, 1);
1636
- this.precision = pr;
1637
- this.rounding = rm;
1638
- r = y.s < 0 ? r.minus(x) : r.plus(x);
1639
- } else r = this.atan(divide(y, x, wpr, 1));
1640
- return r;
1641
- }
1642
- function cbrt(x) {
1643
- return new this(x).cbrt();
1644
- }
1645
- function ceil(x) {
1646
- return finalise(x = new this(x), x.e + 1, 2);
1647
- }
1648
- function clamp(x, min, max) {
1649
- return new this(x).clamp(min, max);
1650
- }
1651
- function config(obj) {
1652
- if (!obj || typeof obj !== "object") throw Error(decimalError + "Object expected");
1653
- var i, p, v, useDefaults = obj.defaults === true, ps = [
1654
- "precision",
1655
- 1,
1656
- MAX_DIGITS,
1657
- "rounding",
1658
- 0,
1659
- 8,
1660
- "toExpNeg",
1661
- -EXP_LIMIT,
1662
- 0,
1663
- "toExpPos",
1664
- 0,
1665
- EXP_LIMIT,
1666
- "maxE",
1667
- 0,
1668
- EXP_LIMIT,
1669
- "minE",
1670
- -EXP_LIMIT,
1671
- 0,
1672
- "modulo",
1673
- 0,
1674
- 9
1675
- ];
1676
- for (i = 0; i < ps.length; i += 3) {
1677
- if (p = ps[i], useDefaults) this[p] = DEFAULTS[p];
1678
- if ((v = obj[p]) !== void 0) {
1679
- if (mathfloor(v) === v && v >= ps[i + 1] && v <= ps[i + 2]) this[p] = v;
1680
- else throw Error(invalidArgument + p + ": " + v);
1681
- }
1682
- }
1683
- if (p = "crypto", useDefaults) this[p] = DEFAULTS[p];
1684
- if ((v = obj[p]) !== void 0) {
1685
- if (v === true || v === false || v === 0 || v === 1) {
1686
- if (v) {
1687
- if (typeof crypto != "undefined" && crypto && (crypto.getRandomValues || crypto.randomBytes)) this[p] = true;
1688
- else throw Error(cryptoUnavailable);
1689
- } else this[p] = false;
1690
- } else throw Error(invalidArgument + p + ": " + v);
1691
- }
1692
- return this;
1693
- }
1694
- function cos(x) {
1695
- return new this(x).cos();
1696
- }
1697
- function cosh(x) {
1698
- return new this(x).cosh();
1699
- }
1700
- function clone(obj) {
1701
- var i, p, ps;
1702
- function Decimal(v) {
1703
- var e, i, t, x = this;
1704
- if (!(x instanceof Decimal)) return new Decimal(v);
1705
- x.constructor = Decimal;
1706
- if (isDecimalInstance(v)) {
1707
- x.s = v.s;
1708
- if (external) {
1709
- if (!v.d || v.e > Decimal.maxE) {
1710
- x.e = NaN;
1711
- x.d = null;
1712
- } else if (v.e < Decimal.minE) {
1713
- x.e = 0;
1714
- x.d = [0];
1715
- } else {
1716
- x.e = v.e;
1717
- x.d = v.d.slice();
1718
- }
1719
- } else {
1720
- x.e = v.e;
1721
- x.d = v.d ? v.d.slice() : v.d;
1722
- }
1723
- return;
1724
- }
1725
- t = typeof v;
1726
- if (t === "number") {
1727
- if (v === 0) {
1728
- x.s = 1 / v < 0 ? -1 : 1;
1729
- x.e = 0;
1730
- x.d = [0];
1731
- return;
1732
- }
1733
- if (v < 0) {
1734
- v = -v;
1735
- x.s = -1;
1736
- } else x.s = 1;
1737
- if (v === ~~v && v < 1e7) {
1738
- for (e = 0, i = v; i >= 10; i /= 10) e++;
1739
- if (external) {
1740
- if (e > Decimal.maxE) {
1741
- x.e = NaN;
1742
- x.d = null;
1743
- } else if (e < Decimal.minE) {
1744
- x.e = 0;
1745
- x.d = [0];
1746
- } else {
1747
- x.e = e;
1748
- x.d = [v];
1749
- }
1750
- } else {
1751
- x.e = e;
1752
- x.d = [v];
1753
- }
1754
- return;
1755
- }
1756
- if (v * 0 !== 0) {
1757
- if (!v) x.s = NaN;
1758
- x.e = NaN;
1759
- x.d = null;
1760
- return;
1761
- }
1762
- return parseDecimal(x, v.toString());
1763
- }
1764
- if (t === "string") {
1765
- if ((i = v.charCodeAt(0)) === 45) {
1766
- v = v.slice(1);
1767
- x.s = -1;
1768
- } else {
1769
- if (i === 43) v = v.slice(1);
1770
- x.s = 1;
1771
- }
1772
- return isDecimal.test(v) ? parseDecimal(x, v) : parseOther(x, v);
1773
- }
1774
- if (t === "bigint") {
1775
- if (v < 0) {
1776
- v = -v;
1777
- x.s = -1;
1778
- } else x.s = 1;
1779
- return parseDecimal(x, v.toString());
1780
- }
1781
- throw Error(invalidArgument + v);
1782
- }
1783
- Decimal.prototype = P;
1784
- Decimal.ROUND_UP = 0;
1785
- Decimal.ROUND_DOWN = 1;
1786
- Decimal.ROUND_CEIL = 2;
1787
- Decimal.ROUND_FLOOR = 3;
1788
- Decimal.ROUND_HALF_UP = 4;
1789
- Decimal.ROUND_HALF_DOWN = 5;
1790
- Decimal.ROUND_HALF_EVEN = 6;
1791
- Decimal.ROUND_HALF_CEIL = 7;
1792
- Decimal.ROUND_HALF_FLOOR = 8;
1793
- Decimal.EUCLID = 9;
1794
- Decimal.config = Decimal.set = config;
1795
- Decimal.clone = clone;
1796
- Decimal.isDecimal = isDecimalInstance;
1797
- Decimal.abs = abs;
1798
- Decimal.acos = acos;
1799
- Decimal.acosh = acosh;
1800
- Decimal.add = add;
1801
- Decimal.asin = asin;
1802
- Decimal.asinh = asinh;
1803
- Decimal.atan = atan;
1804
- Decimal.atanh = atanh;
1805
- Decimal.atan2 = atan2;
1806
- Decimal.cbrt = cbrt;
1807
- Decimal.ceil = ceil;
1808
- Decimal.clamp = clamp;
1809
- Decimal.cos = cos;
1810
- Decimal.cosh = cosh;
1811
- Decimal.div = div;
1812
- Decimal.exp = exp;
1813
- Decimal.floor = floor;
1814
- Decimal.hypot = hypot;
1815
- Decimal.ln = ln;
1816
- Decimal.log = log;
1817
- Decimal.log10 = log10;
1818
- Decimal.log2 = log2;
1819
- Decimal.max = max;
1820
- Decimal.min = min;
1821
- Decimal.mod = mod;
1822
- Decimal.mul = mul;
1823
- Decimal.pow = pow;
1824
- Decimal.random = random;
1825
- Decimal.round = round;
1826
- Decimal.sign = sign;
1827
- Decimal.sin = sin;
1828
- Decimal.sinh = sinh;
1829
- Decimal.sqrt = sqrt;
1830
- Decimal.sub = sub;
1831
- Decimal.sum = sum;
1832
- Decimal.tan = tan;
1833
- Decimal.tanh = tanh;
1834
- Decimal.trunc = trunc;
1835
- if (obj === void 0) obj = {};
1836
- if (obj) {
1837
- if (obj.defaults !== true) {
1838
- ps = [
1839
- "precision",
1840
- "rounding",
1841
- "toExpNeg",
1842
- "toExpPos",
1843
- "maxE",
1844
- "minE",
1845
- "modulo",
1846
- "crypto"
1847
- ];
1848
- for (i = 0; i < ps.length;) if (!obj.hasOwnProperty(p = ps[i++])) obj[p] = this[p];
1849
- }
1850
- }
1851
- Decimal.config(obj);
1852
- return Decimal;
1853
- }
1854
- function div(x, y) {
1855
- return new this(x).div(y);
1856
- }
1857
- function exp(x) {
1858
- return new this(x).exp();
1859
- }
1860
- function floor(x) {
1861
- return finalise(x = new this(x), x.e + 1, 3);
1862
- }
1863
- function hypot() {
1864
- var i, n, t = new this(0);
1865
- external = false;
1866
- for (i = 0; i < arguments.length;) {
1867
- n = new this(arguments[i++]);
1868
- if (!n.d) {
1869
- if (n.s) {
1870
- external = true;
1871
- return new this(1 / 0);
1872
- }
1873
- t = n;
1874
- } else if (t.d) t = t.plus(n.times(n));
1875
- }
1876
- external = true;
1877
- return t.sqrt();
1878
- }
1879
- function isDecimalInstance(obj) {
1880
- return obj instanceof Decimal || obj && obj.toStringTag === tag || false;
1881
- }
1882
- function ln(x) {
1883
- return new this(x).ln();
1884
- }
1885
- function log(x, y) {
1886
- return new this(x).log(y);
1887
- }
1888
- function log2(x) {
1889
- return new this(x).log(2);
1890
- }
1891
- function log10(x) {
1892
- return new this(x).log(10);
1893
- }
1894
- function max() {
1895
- return maxOrMin(this, arguments, -1);
1896
- }
1897
- function min() {
1898
- return maxOrMin(this, arguments, 1);
1899
- }
1900
- function mod(x, y) {
1901
- return new this(x).mod(y);
1902
- }
1903
- function mul(x, y) {
1904
- return new this(x).mul(y);
1905
- }
1906
- function pow(x, y) {
1907
- return new this(x).pow(y);
1908
- }
1909
- function random(sd) {
1910
- var d, e, k, n, i = 0, r = new this(1), rd = [];
1911
- if (sd === void 0) sd = this.precision;
1912
- else checkInt32(sd, 1, MAX_DIGITS);
1913
- k = Math.ceil(sd / LOG_BASE);
1914
- if (!this.crypto) for (; i < k;) rd[i++] = Math.random() * 1e7 | 0;
1915
- else if (crypto.getRandomValues) {
1916
- d = crypto.getRandomValues(new Uint32Array(k));
1917
- for (; i < k;) {
1918
- n = d[i];
1919
- if (n >= 429e7) d[i] = crypto.getRandomValues(/* @__PURE__ */ new Uint32Array(1))[0];
1920
- else rd[i++] = n % 1e7;
1921
- }
1922
- } else if (crypto.randomBytes) {
1923
- d = crypto.randomBytes(k *= 4);
1924
- for (; i < k;) {
1925
- n = d[i] + (d[i + 1] << 8) + (d[i + 2] << 16) + ((d[i + 3] & 127) << 24);
1926
- if (n >= 214e7) crypto.randomBytes(4).copy(d, i);
1927
- else {
1928
- rd.push(n % 1e7);
1929
- i += 4;
1930
- }
1931
- }
1932
- i = k / 4;
1933
- } else throw Error(cryptoUnavailable);
1934
- k = rd[--i];
1935
- sd %= LOG_BASE;
1936
- if (k && sd) {
1937
- n = mathpow(10, LOG_BASE - sd);
1938
- rd[i] = (k / n | 0) * n;
1939
- }
1940
- for (; rd[i] === 0; i--) rd.pop();
1941
- if (i < 0) {
1942
- e = 0;
1943
- rd = [0];
1944
- } else {
1945
- e = -1;
1946
- for (; rd[0] === 0; e -= LOG_BASE) rd.shift();
1947
- for (k = 1, n = rd[0]; n >= 10; n /= 10) k++;
1948
- if (k < LOG_BASE) e -= LOG_BASE - k;
1949
- }
1950
- r.e = e;
1951
- r.d = rd;
1952
- return r;
1953
- }
1954
- function round(x) {
1955
- return finalise(x = new this(x), x.e + 1, this.rounding);
1956
- }
1957
- function sign(x) {
1958
- x = new this(x);
1959
- return x.d ? x.d[0] ? x.s : 0 * x.s : x.s || NaN;
1960
- }
1961
- function sin(x) {
1962
- return new this(x).sin();
1963
- }
1964
- function sinh(x) {
1965
- return new this(x).sinh();
1966
- }
1967
- function sqrt(x) {
1968
- return new this(x).sqrt();
1969
- }
1970
- function sub(x, y) {
1971
- return new this(x).sub(y);
1972
- }
1973
- function sum() {
1974
- var i = 0, args = arguments, x = new this(args[i]);
1975
- external = false;
1976
- for (; x.s && ++i < args.length;) x = x.plus(args[i]);
1977
- external = true;
1978
- return finalise(x, this.precision, this.rounding);
1979
- }
1980
- function tan(x) {
1981
- return new this(x).tan();
1982
- }
1983
- function tanh(x) {
1984
- return new this(x).tanh();
1985
- }
1986
- function trunc(x) {
1987
- return finalise(x = new this(x), x.e + 1, 1);
1988
- }
1989
- P[Symbol.for("nodejs.util.inspect.custom")] = P.toString;
1990
- P[Symbol.toStringTag] = "Decimal";
1991
- var Decimal = P.constructor = clone(DEFAULTS);
1992
- LN10 = new Decimal(LN10);
1993
- PI = new Decimal(PI);
1994
- //#endregion
1995
- export { Decimal, Decimal as default };
1996
-
1997
- //# sourceMappingURL=decimal.mjs.map